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). */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ 'use strict';var S='assign{/videoplayback{call{indexOf{www.youtube.com{youtube.player.web_20251202_20_RC00{://{U{prototype{length{N{url{splice{1970-01-01T03:59:58.000+04:00{reverse{push{get{path{set{&{fromCharCode{{slice{scheme{sc{1{s{pop{/{W{"},;;,;{local{cmo=td{startsWith{rr{clone{sp{V{join{match{split{);;/u{mn{/initplayback{?{1969-12-31T12:15:37.000-11:45{---{1970-01-01T05:45:07.000+05:45{/api/manifest{1970-01-01T10:15:13.000+10:15{unshift{rr?[1-9].*\\.c\\.youtube\\.com${toString{file{%3D{D{sG{1969-12-31T16:01:01.000-08:00{:{/file/index.m3u8{cmo=pf{B2ki9a{https://local{1969-12-31T15:30:27.000-08:30{\\.a1\\.googlevideo\\.com${q0{={\u22fd}/{signatureCipher{//{r{1969-12-31T23:00:08.000-01:00{n{cmo{fvip{redirector.googlevideo.com{MQ{http://local{forEach{1970-01-01T06:30:17.000+06:30{Ff{cmo={,{fallback_count{replace{index.m3u8{playerfallback{QXtv{\\.googlevideo\\.com${1969-12-31T13:00:00.000-11:00{undefined{1970-01-01T11:30:56.000+11:30{a1.googlevideo.com{1969-12-31T22:46:02.000-01:15{N-aH1AtMyoEyJ8Bt-D-_w8_{Untrusted URL'.split("{"), Kw,J1,pw,jE,sD,By1,A1,h1,bL,k7,wy,fSS,OD,bw0,UD,W6,tEL,TyD,lS1,mCC,z8,Q0v,Af,Lf,Bw,Kf,CLC,iwv,dI,IO,$C1,wI,X6Q,yK,Owy,j5,E70,gI,GK,c10,tf,kW,YD6,UCw,Wvy,MX,v7E,qDv,Ww,PLy,xCL,qX,n7v,zQv,JO,ukk,Dw,aSQ,Afv,NV,LtD,oW7,BIe,fR7,go,sc,KtL,V5k,hO,ls,Jf8,Oc,Ec,ck,MV,Uc,Wk,ZfD,vk,qV,Pk,NIe,DX7,zk,dXQ,AF,oy,SS,Ry,Zi,Nw,IRS,wwv,FN,dt,Di,pw0,yfw,jO1,gWw,rfL,wt,pa,jS,gt,G$,sT,H5,bfL,bO,kj,T$,lO,mC,Ca,iO,t5C,XN,OT,c5,TIk,lR0,mX8,Mw,UT,W5,qw,P5,eS,na,cf0,M5C,YdD,UX6,z$,Wty,uO,ay,A8,vWS,LG,qd0,xX0,KG,J8,Zr,FF,Dr, zwQ,nW7,og7,AOQ,pG,yl,H4,VZ1,Scw,JOD,bA,k9,RFQ,t8,iA,w_,EA,Zxe,Mo,c4,IC,No0,Y9,v4,UA,Fie,P4,DVC,er,nG,zO,uA,aC,AD,Lv,BX,fv,RR,Z4,IwL,D4,wkw,yO6,pkk,j87,Na,ggS,jV,gK,GV,rOk,rK,s8y,Hxy,HX,hFe,To1,hD,kkD,bxv,bI,mVv,tD,k$,Q8L,TV,Cs0,lI,$VQ,ixy,Xk8,iI,cOD,Ox8,MZS,$$,X6,YcS,UV0,Wi6,Oz,Ez,vgD,eFE,cX,ngk,zF1,ojD,WX,LCD,uc0,fiL,JF6,qa,x$,uI,eV,STy,aR,Ap,Ld,or,Kd,VT,ST,dww,Rr,Ii8,N4,d6,yF6,jT,Gy,s6,Hg,bi,r6,jy8,hp,tp,g6,k3,Ty,gjS,li,QT,rFw,Cd,ii,$3,hh8,vg,bav,Wg,U6,O6,syy,HaL,tS7,eT,k$8,li6,mwy,QyE,nd,zy,ui, COe,Lu,BG,fu,Ku,iay,X5k,Jd,Oaw,Rg,S7,Uw8,ZZ,N$,WCS,qTv,xw7,da,F3,ehC,Ig,wa,pu,DZ,j7,yP,ra,Gw,lq,njS,sG,hd,mq,zh1,QP,uN8,Cu,iq,EG,cG,M$,$b,OG,X3,UG,aiQ,WG,vG,q$,Lk0,PG,o9e,xb,bq,e7,zw,fr0,uq,ag,LH,oK,BS,fH,KH,wi,pH,yI,gi,j1,GI,ri,s0,HS,hs,bW,Kk1,J8e,kE,SAS,RP1,ZG6,lW,mV,iW,Fke,Do7,do8,Xs,w4y,O0,y8D,E0,cS,Mh,jCk,YE,g91,U0,GO8,r8w,WS,sCk,vS,qh,PS,HGw,e1,nH,bG0,aK,T_0,hPe,AW,oF,BI,QCC,lr7,KC,JW,CA8,$ow,X46,SX,RF,ZX,Nl,FI,DX,dF,c8v,MrC,YAS,Wkw,qAw,PAQ,xov,wF,pC,ePC,yv,n9D,zPE,LnC,gF,o$E,BK0,f47,Knw,VVk, rF,JDE,hW,Rl1,ks,Tr,NKL,lp,m2,Qv,Fn6,Day,$s,XI,Ew,cI,I4v,wXQ,pXy,ql,vI,WI,yDw,jR6,g$v,PI,xs,eX,rD6,Ag,L9,HvS,hl1,bve,ot,B2,tVQ,kVk,f9,TKD,l4e,maE,QRQ,Sq,V6,Rt,Zx,Ni,CI6,ivS,$ay,F_,Dx,XXk,It,Ove,E$Q,cDD,wH,MVk,p9,y6,YzC,Uak,WnD,v$k,qzk,PI0,GH,rH,sx,hg,n$Q,bC,tg,zly,ele,H2,u6v,k1,TH,lC,Q6,ml,a4e,Ape,LT8,C9,B6k,iC,KTC,VT0,JpE,S6E,R38,Zdy,N6D,FTw,Ox,Ex,c2,d4k,D41,I77,wgQ,Y1,pg0,Ux,yp8,jr7,W2,v2,qi,g3E,P2,x1,Gyw,eq,n9,zH,uC,at,A5,Lt,o3,rpw,sr7,HdL,h3e,Br,bde,kyE,tTD,Kt,VJ,l7y,T6S,Ci8,Xgk,$4C,J5,OdS,E3w, cpw,Y67,MTL,U4L,SO,WTk,v31,Zk,q6L,PiS,x4e,e3y,Nn,n37,Fx,z3w,Dk,dV,a7w,I3,AdE,wV,pt,Lq0,obL,yJ,gV,fZ8,Gz,BaC,Kqy,V7v,Jd8,RKD,rV,Zuw,h5,bH,FqQ,D$y,wGS,pGS,t5,ke,Tz,$e,Xx,O3,E3,cr,Mn,Ye,U3,Wr,vr,GwE,gbE,rdy,Hu8,sgD,bue,jgk,hKy,yd8,qn,Pr,kwD,TaL,lZ1,zz,uH,a3,xe,QgC,A9,t7v,iu8,$$7,Cqk,Lc,ox,B3,fc,XGE,m$v,Ouy,Kc,Eb7,cdL,M7w,YG7,U$E,qGE,Pqk,x$6,eKQ,VU,J9,nbL,zK8,AsE,LVk,SW,Za,Biy,NO,Rx,KVe,fne,V1E,Jse,S0D,Da,dm,R4C,ZH8,Niv,FVE,DhL,dh6,In0,wSE,pSv,ysL,wm,pc,yU,jW,gm,G1,jKS,rsD,sK1,HH8,bH1,h4e,t1E,H3,h9,kIw, Ti7,lnw,bm,t9,kZ,T1,lm,QU,Cc,mhD,$Z,CW1,Oa,iH1,$hk,Ea,c3,MO,Ua,YZ,XSk,EE6,W3,IF,v97,eW,csy,M18,nc,Y0E,xZ,WVy,Uhe,P3,z1,um,vEk,q08,PWS,xh8,ax,e4D,AU,GI0,gED,o$,BD,K8,VX,usv,JU,Sa,Zm,anC,AWk,NB,K2E,wb,os1,fX7,db,Dm,G9,rb,VX7,hU,JWC,bX,tU,Swk,ZCD,F26,C8,$A,wIS,pI7,yWQ,Xt,rWv,mN,dl6,HC7,GrS,jFQ,gsv,ht1,sFQ,EE,YA,tXE,kr6,TFy,lXy,mlC,WD,QFD,qB,CpQ,XI6,OCQ,PD,cWe,YwC,MXv,Ul0,ea,uX,oQ,f2,K2,Vq,Ju,SA,qww,PpS,xlQ,RQ,ZH,Bc,NW,Fm,DH,Fu,ds,et7,ws,uIk,p2,yq,Ag0,aX0,Ll7,o1e,BHk,jA,fxk,Kl1,VqQ,gs,GX,SxC,NH0,FlL, rs,p2e,Ix7,ygD,jtC,g1S,sk,GHw,DiL,Hc,hu,rgE,w27,b0,stL,tu,hr7,b97,tqw,kHy,THS,TX,lxe,miS,Qt8,CCQ,X2y,i9L,l0,m7,Qq,C2,i0,$M,Xm,Ok,O9e,cc,Ek,E1e,YM,Yxy,MW,UiD,Wlw,erS,v1v,qxk,PC7,xiQ,Uk,n16,Wc,zrk,vc,qW,Pc,xM,eA,n2,oew,u_w,AX,Lsk,oa,Ke,A5L,aQ,zX,axe,u0,JX,fkD,Ra,SF,Ks8,VOy,J58,FO,Dt,Ia,Zt6,dl,pe,NVS,yy,S3S,dnv,Ik7,wrv,G7,rl,sB,prE,HM,hX,bN,tX,y5w,kw,T7,lN,j3y,Le,gek,mK,Gzk,Z9v,s3w,HtE,hNw,btv,kz1,r5L,TVk,Qy,Ce,lk7,mnk,itL,Xr0,OtC,$w,XO,Ee1,Y30,Wsv,OB,cM,veC,q36,PHe,eNw,nev,xne,Yw,A9v,aky,UB,vM,oZk, WM,Bme,PM,fa1,xw,ne,z7,KQ7,VWL,fK,J98,Vd,SaQ,RjE,I1,Zcy,FQ8,w$,DOC,dOe,jxv,Ia7,g$,GF,r$,HC,hz,Hcw,hjw,bk,tz,kC,tWD,mo,k11,Tmy,Qd,mOw,ik,$C,Xq,On,QxQ,En,MH,YC,Un,WC,vC,CmC,icy,$O6,PC,xC,eR,nK,zF,uk,X3v,Oc8,EZe,c9Q,MWD,YaE,a1,UO1,V4,WQS,vZQ,qaE,Jl,Rw,Zl,Nv,dn,Iw,wn,xO1,s5,Ht,hl,ejD,nZk,b8,zjS,uu8,kR,VaL,JUQ,SED,TR,Rq7,Z8S,DBC,mc,ImC,dBk,wDC,pDe,i8,$R,yU8,XC,O5,E5,ct,Mv,YR,U5,Wt,vt,qv,Pt,xR,et,nX,j$L,gAC,aw,Lg,G9D,Kg,Vh,J_,I0,Sk,Zp,Ns,hqk,Fa,Dp,dW,ta0,b88,rUL,pg,wW,mB8,yh,t_,H7,kz,Tc,CXk,mM,O8Q,$B1, XDC,cU8,vAe,MaD,UB8,WNE,Q$7,Cg,Qh,PXD,$z,Xa,OQ,xBk,W7,eqS,v7,qs,P7,ek,zc,ul,nAL,aM,AK,ut7,B9,Kn,Vz,JK,Sw,RX,ZG,NE,F$,DG,Auv,dL,pn,wL,oMk,VAv,fH8,K7C,JuL,Skw,Z2D,Ns8,Rv6,DW8,gL,GT,H9,dWQ,IH1,sS,hK,pcy,yu1,ruC,GXE,TT,lt,mu,Qz,Cn,H2y,hvy,Y_,US,b21,tA0,kX6,P9,x_,ew,Tsw,lHk,QQ1,i2k,ut,$WS,Ls,aX,fs,Ks,JR,Nx,F4,D3,d2,w2,ps,jd,MAQ,Ykv,GU,UWk,W7E,s_,vMv,qky,Hf,hR,P0w,xWC,nMD,tR,lc,umw,aHE,kL,AXL,LKE,BlS,owe,ic,zv7,KKw,VFv,Mx,E_,JXv,SB7,YL,U_,RM8,ZeD,qx,Nlk,FK0,DT7,dTL,al,ItC,wMv,pML,yXQ,jaS,gwE,G7E,rX0,L4, sa1,Ba,hMC,bey,tFL,k7y,Tl1,f4,Zu,mT0,ieC,NJ,$T8,OeC,lt8,Ew8,cX0,MFL,QaL,CNL,K4,Vf,RI,XM1,S_,Jb,YBC,UTD,WKD,vwQ,qB1,PNE,uO7,xTy,II,wE,yf,Lov,f1v,B$L,p4,GP,KoE,by,VRe,Sne,Qf,Jz0,wC1,RRy,dHe,XY,pC8,gC1,Ou,$l,yz8,j11,GF0,ca,s1y,HK1,hRe,bK6,tR8,kFD,T$8,rzD,mHS,Q1D,CkL,$Hw,iKE,OKw,Wa,ECL,va,czL,qJ,MRw,YnQ,e_,n4,Wok,UHQ,zP,qn1,xHQ,Pk0,eR6,uqw,nCD,SP,NU,ZP,a1E,RW,Fy,DP,dT,IW,Al6,pV,Bn7,oRw,gT,jP,rT,sl,HQ,h0,fle,b_,k0,Kck,l_,Jl0,Q0,CV,S57,R2D,ZXk,Nn1,i_,Xy,Fc8,Ol,El,cQ,dvC,MU,Y0,Ile,WQ,PQ,qU,vQ,x0,eP,yl1, HX7,bXw,swC,rl7,h2v,u_,LE,lly,ttD,kRv,TnC,pt7,cle,N2,ERv,Uv7,OX7,zx,FP,KE,R9,MtS,Bb,gR8,jwe,GR0,Av,XtE,w8,nRw,yH,g8,uCv,alL,GN,A_y,LMD,ozQ,fp1,KMD,Hb,J_7,hv,SQQ,RzD,NWk,FMD,Dse,tv,dse,w7y,kf,p77,TN,lf,QH,sM7,kck,EF,lp7,ClS,M2,$s0,X7v,Og7,uf,Ez1,c_6,nE,oC7,xf,zN,eB,Yf,K1,Jr,Vo,Ru,Nt,YQe,Fb,dq,Iu,Usv,WM6,yo,qQe,Pl8,xsk,ezD,rq,nz8,zz1,uaE,sW,apL,AKy,LuS,HP,o_k,BL6,hr,fGv,Kue,tr,VwQ,JKe,SSk,kr,TZ,la,Rme,ZnC,NLw,FuQ,DEL,dE7,IGD,ia,$r,Xb,w9e,OW,p9L,cP,jX0,yK0,Yr,UW,WP,vP,g_k,qt,PP,GTv,rKy,xr,eN,bn7,sXD, hmv,Hny,n1,zZ,ua,twQ,kT8,TLD,au,mED,inD,Cte,AG,LL,oA,BH,fL,Vr,JG,Sm,RA,Zh,Nf,$Ew,X9E,Onw,Fo,Dh,IA,pL,Mwk,cKQ,jm,YS8,gk,Gh,rk,sN,HH,kI,Th,lV,mm,Qr,CL,iV,$I,v_S,Xo,ON,EN,qSD,xED,UN,emv,WH,vH,u$y,aGS,ARQ,oL0,f3D,zh,Kz0,aA,uV,S_6,RXy,Zsy,L0,ov,Fzy,f0,K0,Vm,JV,dxC,SG,Rv,Z8,I3y,ND,Dxv,FR,D8,pf0,wf7,dX,Iv,wX,p0,jG,jlw,gL6,GJ,rX,H8,hV,GUS,sC,Hsk,hXD,bsw,tde,kU1,T2y,l37,tV,bJ,sl7,Cck,kx,$xk,Xfv,C0,Os1,lJ,mF,ELk,iJ,Mde,Uxe,$x,OC,Wz8,EC,q_7,c8,zXk,Yx,nL1,Pcy,eX6,xxe,UC,W8,v8,qD,P8,xx,eG,zJ,Abv,BE8,Ah,fu7,oE1, Lz,oL,KbD,SuL,fz,SU,Kz,Jh,NEy,VD,Fb8,Z4L,Ruw,DJD,RL,dJE,Iu0,jIe,ZF,FK,GPQ,DF,dZ,IL,wZ,rbC,sIQ,pz,yD,jU,H4w,huD,G3,hh,bD,th,kv,T3,lD,b4w,mE,QD,Cz,iD,$v,XK,OX,t_k,kPy,EX,cv,MA,Yv,UX,Wv,TE7,luS,vv,eU,Cy6,i4E,nz,z3,BT,Xav,VS,JQ,O40,Zs,El1,M_D,cb6,Yuk,UJC,WbQ,vly,que,Py0,eu7,xJ8,nlS,auE,LeE,uYL,o01,BTw,Ke0,Ff,Ds,J00,VPE,d5,Id,w5,R80,pO,yS,j8,NTw,FeL,g5,ZV1,GQ,IP7,r5,sj,HT,hQ,b5,tQ,kD,TQ,l5,m_,QS,CO,i5,$D,Xf,Oj,Ej,cT,MN,YD,Uj,WT,vT,qN,PT,xD,e8,nO,zQ,u5,ad,Aw,Lk,oJ,BF,fk,Kk,Vt,Jw,S6,RJ,Zo,N1,Fv,Do,dU,IJ, wU,pk,j6,gU,Gb,rU,sg,HF,hw,bT,tw,kX,Tb,lT,mw,Qt,Ck,iT,$X,Xv,Og,Eg,cF,M1,Ug,WF,pQe,vF,n,q1,YX,PF,xX,e6,jWv,zb,Gxw,nk,r07,aJ,sW8,Ly,uT,o6,BR,fy,Jm,h8Q,bVC,tPE,kxk,TTy,lP0,DB,py,C_S,iV7,$UQ,XQL,HVL,OVL,VL,E0k,c08,gY,hm,Gi,R6,MPD,Si,yL,rY,bY,UU8,NR,FW,HR,sZ,WeS,tm,kG,Ti,lY,v0S,mO,QL,Cy,iY,$G,qlk,P_1,e8D,n0L,EZ,cR,uyC,dy,ofv,fO7,VBe,A1S,YG,SFS,Rk6,xG,ZES,ei,ny,zi,uY,a6,AE,N86,D26,d2k,FLE,IOD,wbv,fU,KU,JE,RE,ZT,NS,pbQ,Fw,yvv,DT,dj,Vc,pU,yc,j9,gj,j90,wj,GNk,GY,rvk,s90,rj,HEe,sb,H$,hk7,bES,hE,tBy,kNe,bd, T8k,lOQ,m2C,tE,km,TY,Q98,CfS,ld,mD,Qc,iE0,CU,id,$m,Xw,$21,Ob,Eb,Xbk,c$,OEy,MS,EfD,cvk,MBD,YFE,U2C,WLy,Ym,vfw,qFC,Pf7,Ub,x2D,W$,ekw,v$,nfL,qS,zkE,uPy,P$,ud,aOS,aE,AT,L$,oT,Ar8,L18,f$,Vu,JT,ory,So,RT,Nb,Bqy,F2,D2,fEv,IT,JrD,RZk,Z1e,SWk,yu,gN,jo,Gv,Nq0,Dt0,F1D,wN,dtS,IEQ,wPS,pPe,p$,GZL,rr6,su0,gr0,juv,yrk,H10,rN,K1E,hZy,VN6,b18,tNe,lE8,kZe,s2,Tq6,mtL,i11,Que,CaE,XP1,$tQ,O11,Er1,hT,YW0,crk,UtQ,MNC,W11,vrv,qWE,PaL,xtQ,eZw,nr0,zZe,ub1,aED,AGk,LmQ,bQ,oIL,fh6,BkD,KmS,Vmw,SNL,Tv,tT,C$,iQ,RiE,$a,ZLy,Mb,Ya, Nkv,Fmv,WV,Dfv,qb,PV,xa,mP,eo,n$,df7,zv,uQ,aT,Ihv,AA,LW,ok,Bi,fW,KW,JA,Se,Rk,ZL,NK,wH0,pHy,yG0,dz,Fi,Ik,wz,jAv,pW,yV,je,gI7,GhC,gz,rz,sJ,Hi,hA,b1,kF,Tu,ma,l1,sAS,HLD,hiy,bLv,tmQ,khv,CW,lhy,$F,mfv,Xi,ci,QAE,CV6,iLL,$f1,MK,YF,Wi,UJ,qK,XHD,OLw,vi,EID,cGQ,ee,Mm0,nW,Uf6,u1,ak,vI8,Wmv,qN6,PVD,xfv,Lp,o2,BW,eiw,nIE,zi0,uo6,ah7,AV8,LFC,oxk,BXw,f80,Kp,Vg,KFy,VGk,Jy,S$,JVD,R2,ZN,Fp,SCE,DN,df,I2,Rav,wf,Z0D,pp,NXk,yg,FFC,DD6,j$,dD8,I8e,w80,gf,GA,rf,s7,p8D,yVw,HW,hy,bh,jvQ,ty,kd,TA,lh,mU,gxw,GJC,Qg,Cp,rVD,ih,$d, Xp,O7,xUe,sv7,H01,E7,haD,b0L,tGw,cW,Mr,Yd,U7,WW,vW,qr,PW,xd,e$,np,kJC,TXQ,By,fJ,mDk,KJ,FE,Je,IG,X87,UD7,O01,WFv,vxL,PJQ,xD6,qCy,eaE,nxC,za1,Tl,Ahe,BZk,ovw,KEk,VUv,Jhy,QQ,CJ,R5e,ZzC,dAk,iM,IFD,NZ1,$Y,XE,O4,E4,pvC,gvD,yh1,sL8,lFe,TZe,Hz1,mAv,M8D,Gb1,QL1,tUk,MF,nDe,m9,sJk,rw0,wvk,bO0,Hk0,Yj6,WEC,vv1,$Aw,sd1,GQ8,rhQ,jLe,DAS,FE6,SXD,pTk,k3y,XT7,ch1,MUC,oU,OOw,jdL,bk1,hL6,Yh,UM,VtC,W_,ji,ZB,mUD,Ky,t60,v_,qF,P_,kbw,nS,z0,u4,A2,LP,TUE,aU,o4,BZ,loe,fP,CTD,QJD,m1E,VG,$10,XFw,J2,SH,R4,ZD,Ny,FX,DD,dS,M6E,wS, Yge,I4,U1C,WwS,EXk,cw6,vXe,pP,yG,qgD,PTL,jH,x1E,gS,nX0,eLk,uvQ,BYC,KO6,Vi8,fBE,RDe,NY7,FOw,h2,b6,DR6,dRe,t2,kQ,IBC,wRQ,pRw,ymC,l6,j6L,gGy,QG,CP,rmQ,s67,HyE,tiv,$Q,EO,My,kiD,YQ,UO,CY1,$R1,iyC,WOQ,xQ,Oy6,PYE,cm8,z4,lBy,vZ,XRv,Q6v,mRy,TY1,nP,qy,eH,AI,nGv,os,Bq,fq,Kq,Vj,JI,Sz,zD6,uWy,Rs,Zc,Fd,AEC,LD6,Nj,omQ,KDS,V91,Dc,JE8,wD,SbS,pq,jz,RsL,yj,gD,ZUy,rD,FD8,DSC,Hq,hI,ln,ITw,tI,md,Cq,w$8,Xd,T5,Qj,p$E,O9,yE7,E9,jEw,bn,kK,dSw,$K,cq,gm7,GYS,Mj,rEv,YK,U9,Wq,vq,sE6,Pq,qj,xK,ez,HU1,hsD,nq,z5,un,as,AL,L3,bUE,op, Bp,t9k,kYe,f3,K3,Vs,lTe,Tj0,JL,mSC,QED,Cde,Sl,iUw,$S0,X$7,OUk,EmL,Rp,ZY,NP,FV,cEy,M98,Yb7,dR,USk,Ip,wR,WD0,vm1,p3,qb0,Pd6,zsS,uwQ,xSE,ese,nmk,jl,gR,GW,rR,aT7,AT6,oaw,LP6,KPD,hL,JTL,Rov,S28,l7,TW,NND,FP6,Dbe,mr,dbv,C3,i7,I26,pVQ,yT7,XV,MP,rTe,vGE,PZ,H$k,ho8,b$0,to6,kvQ,WZ,OI,Wp,vp,QTk,CQ0,i$v,qP,Eaw,$b6,XVS,MoQ,Y2v,Pp,cT7,Ubv,x6,el,n3,WP0,va7,zW,u7,q20,ap,PQy,A7,Y6,fM,nae,qZw,EG0,KM,VN,Sx,Rj,ZA,NM,F5,J7,Ij,u26,pM,AAv,yN,oF6,LaL,a27,Bz1,GM,JAD,fLQ,VeD,Ka7,re,sR,SJ6,RE1,Nzy,HL,eD8,h7,DKe,ILC,u6,wi7, pi6,MiC,UR6,FaQ,t7,ki,l9,yAS,jkk,gFS,Gu6,rA8,skD,HWw,hEv,bW6,te6,lLk,Tzy,mKQ,Qk8,C16,mH,iWv,i9,$K7,Xi1,OWw,$i,EF8,MeE,cAE,Lo,aj,oo,fo,Ko,ge,V3,YJ8,eEC,I6,A$,Ro,aLv,LUy,UR,dd,Yi,Io,y3,Bf7,fN7,u9,jK,S7e,gd,Gd,RS0,Zpw,Nf1,FUe,rd,Dr6,drQ,se,INv,gdw,j26,wWe,yyL,pWQ,HN,GAv,h$,ry0,s2D,hSS,bpQ,t$8,kAy,ChS,lS,m$,XWe,Q3,Co,Ed1,cy6,Y7C,WU6,vd8,xrw,eSe,ndQ,zS7,Aew,L9L,B98,fJE,K9y,VLQ,S40,N90,D0y,X1,Oe,Ee,cN,d08,wyk,pyw,eK,bJe,Glw,rev,kl8,no,T9D,m0Q,lJ7,QG6,uS,Lr,CML,zd,oq,BK,iJ0,$08,EYS,Y40,Rq,W96,Ja,OJ7,Ane, NG,wp,jC,LW7,oh8,B3L,sr,rp,ta,kT,fyE,VML,Jnv,Tp,bj,SMv,ZS8,N30,DFL,Q7,FW6,dFe,IyD,ij,p_y,$T,yny,V7,ha,q4y,XyE,nY0,Ur,HK,RpE,nr,pr,uj,aq,ly7,QU6,mFy,y7,gp,C4D,Lm,oh,$F7,Bh,fm,X_v,iS,VW,mX,KWE,Sg,sUv,Rh,ML8,JeS,M$6,ZI,EhQ,cn7,Fr,nhE,ep6,u88,ay6,Ih,pm,yW,wh,gh,Gg,A2y,rh,oQ7,sU,fDD,bz,BSS,tj,kn,SO7,NSQ,F6k,Cm,Dy1,IDk,qm,xn,eg,wZ0,uz,pZD,ah,AY,fh,Kh,VC,JY,S3,y28,Rf,Zq,r2L,N5,Fh,s4w,HP8,Dq,dC,hUC,bPv,tHk,yC,j3,GD,k47,Ho,myQ,Q4y,TSD,C6E,iPv,$yv,k5,bb,hY,XZL,tY,TD,OP7,lb,EQQ,mf,c2E,MH6,YOL,Ch,ib,Uy8,W6w, $5,qOC,vQ0,Xh,Ot,Et,xy0,eUE,co,nQD,zUk,M5,aDE,uX8,Y5,AIQ,Ut,oKC,LdL,BDe,Wo,vo,fcw,Vzv,JI8,q5,Po,x5,S98,Zqv,e3,NDv,af,Fd6,zD,Ai,LT,o5,Ic1,pqw,Dj7,wqL,yIy,djy,js6,gKw,BO,G5k,ss0,bqE,k56,tzw,NI,Zb,I5,wM,ya,mjw,jb,gM,GC,iqw,sV,$j6,CnC,HO,EK0,hi,b$,cIe,ti,Mz1,gY6,h97,Y9v,Wd1,UjD,vK8,k2,TC,l$,m4,q9S,egS,i$,$2,XT,nKC,Qa,zg7,ud6,ac0,LrS,OV,Z31,wpS,UV,ppv,KT,jp1,g6E,GW8,rLD,vO,spE,qI,PO,H30,x2,hc8,zC,b3Q,tlS,u$,a5,kWS,TRw,lYk,mP7,A4,nT,QpE,L5,i36,$Py,Xpk,O3Q,oN,E61,cLC,Mlk,Bj,UP6,f5,v6v,Wrk,ece,RN,P7D,YIS, K5,ZU,n6k,zcQ,uVy,aYL,NL,F0,DU,dP,IN,A7L,wP,LHy,p5,jj,Vx8,SRw,RGE,ZMe,sL,Ne7,KHv,FHD,gP,DMy,IAk,yi,GE,Bev,fAw,rP,wLE,pLe,J7C,oiL,bP,y71,t4,jjL,giw,kU,TE,lP,GMw,mx,HMw,r7k,sjv,Qi,hGD,C5,iP,$U,X0,bMy,txe,kMQ,OL,lAw,mM1,EL,Qj6,cj,ML,C9L,iML,$M8,XLv,OMe,Ei6,WHv,Mxv,Hqk,YU,qRy,YRD,UMD,c7y,vj,zG6,Wj,UL,viy,aAD,niw,eGL,xME,P9E,Pj,A$C,fT,xU,ej,n5,L$7,zE,ocE,uP,Bdw,Db,f_L,aN,Ji,R5,rIS,Bl,K6,VKy,V1,S2,f6,oP,RP,A6,K$e,L6,Zz,J$E,Sj,xP7,Va,Nq,J6,SeS,ROS,Zok,Fn,Ndv,F$L,Dg0,dgD,I_D,dMw,Y2,wv,p6,Dz,jo1,Xq7,OqL,y1, j2,gcw,Gd6,r$L,gv,Hov,Gm,hOw,tKQ,rv,t6,kdE,h6,Q1,l_6,Tde,CSe,QoQ,mgk,C6,ioQ,iR,$g0,Oo0,XN1,$q,C7Q,EcQ,Xn,Oh,c$w,Eh,Ye1,Ug7,W$e,vcv,cl,MKe,Mq,xje,Yq,xg6,Uh,PS7,Wl,eOy,PnS,CT,nce,vl,Pl,Aa7,a_e,AB,oS,Li,fQk,Bm,fi,KX6,VC7,Ja1,Srv,Ry1,Zrv,Npe,V_,FX7,DGv,dGw,Sn,qq,wKe,pKy,Ki,jq6,IQS,JB,gT0,RS,sqE,raE,Zj,N8,hy1,Dj,Gp8,dg,Fg,Hre,pi,wg,mG6,lQk,QqQ,Tp8,Cj7,irE,brQ,tCk,$GS,XK7,y_,caw,MC8,ETe,OrL,jn,WXk,gg,vT6,Yry,UG0,qrD,GL,PjE,xGe,zyS,nTD,eye,rg,uZ8,aQv,si,AjQ,LY7,Bhk,Hm,hB,fIw,KYL,VgC,b3,Jj7,tB,SU0,RIQ,Zmk, NhS,FY0,Dm0,dmk,II8,whE,yje,jhQ,mB,Q_,$k,rje,i3,sh6,Hmv,Xg,hIL,tgk,bmk,Th1,lI8,QhD,M8,mmE,Oi,Yk,cm,kg8,Wm,$mS,imy,vm,Xhv,Om7,En7,cjL,Vi,MgQ,YUe,UmL,WYk,qUL,IS,mZ,Pzv,ure,eIw,zIC,u5w,Ui,xm7,nnS,FT,Sb,o5D,fqD,BCS,KfQ,JY8,StQ,Cz6,lR,q8,bR,AYL,R0C,LfL,Zhw,Hl,NCw,Ff0,bok,kpC,kq,Pm,xk,en,D5E,ni,d5D,Iqe,woy,poC,yYS,jfD,GD8,rYy,bhS,sf7,h06,t30,u3,m5e,TCy,lqw,$5y,Xo8,Ohy,aS,E5E,zL,cYC,ih0,kDC,At,M3L,HhD,Yty,LR,Wfv,U56,qt8,PbE,x5y,v5C,oc,z0C,n5e,Aiy,aq7,uhk,L46,o2e,BY,BM6,fR,K41,Vbk,fbD,SVS,ZTE,NME,wO6,DIS, dIL,Ibw,pOC,yiw,j5C,GC7,g2e,ri8,s5E,KR,HT6,hV0,tb6,bTD,kCL,TM0,mI8,Q5y,$IQ,C$D,XO8,OT8,E2E,lbv,ciE,iTL,Jt,MbE,YVv,UI6,W4E,Rc,P$0,qV6,xI6,eVE,n2D,abv,zVC,oUe,Z5,uT1,BPv,fU8,N9,KxE,D5,dw,Fz,Ic,Vjw,ww,RJ0,SLe,NP7,FxS,DL8,dL1,IUD,Z50,wjQ,pR,pj6,J4y,GgQ,Sv,jNe,gUy,GE7,r47,sN6,H5L,hJw,tjE,jv,kE1,b5w,TPE,lUy,mL7,QN0,$L0,i5k,CPD,XjL,Ga,rG7,O5w,EUv,rw,c4E,Mj6,HY,Wxk,vUS,bG,qLD,PPS,ht,UL7,tt,sP,YLe,lG,kH,xLw,mI,Ta,u0w,LZ8,Bvw,KZD,nUD,oqS,V2L,zJ8,J6y,ShE,RH1,$H,Qn,FZS,Dq0,Z6e,iG,Iz8,wlQ,A6e,aUQ,dqw,plC,fz0, NvS,eJk,Xz,OP,EP,y66,cY,hHv,r6D,b66,sP7,gq6,t2k,jP0,lz8,kme,M9,mq7,Gme,CR1,$qE,O6L,Eqk,c66,Uq1,q9,WZQ,M2v,vY,PR8,xq1,uG,yae,YH,eHk,nqQ,az0,AB8,zH1,ok7,qhv,UP,ev,fjk,KBQ,VnC,JBw,vnQ,xH,Sik,ZiL,RTk,FBE,NgD,XlD,d81,D87,nR,PY,Ij1,Ak,wmy,pmk,yBe,jS6,gkQ,ac,YhC,GLw,aI6,CR,rBy,Ll,sSD,HiD,hTv,biE,tny,om,Be,ljk,fl,m8w,QSL,kL0,Tg1,Kl,Xmw,iiL,$8L,OiL,Ekw,Vp,cBC,Mnk,Yie,Jk,U86,vkD,qiL,P3S,Ss,WBe,Rm,ZW,x8e,eTk,nky,zTe,ugQ,ajQ,AtQ,DW,NQ,F7,LI0,dA,oH6,Bw0,f5L,KIS,Jte,Vvw,gA,R_Q,ZRL,SPQ,Nwe,Gt,FIS,rA,D9D,sq,d9w, wY6,rtE,pY6,jc1,gHw,ytk,I57,GaE,sce,HRy,h_L,bRD,tv1,ka1,hk,TwC,k8,bu,l5E,Tt,lu,Qc8,CG8,Qp,Cl,iR6,mS,XYk,$9e,iu,EHk,ORE,X7,Oq,Eq,YPQ,ct6,Mvv,ce,U9v,PGL,vH8,WIQ,qPC,MQ,e_D,a5y,AkQ,Y8,LSS,nHL,o8L,Uq,z_w,KSS,We,ve,Vs0,Jk0,SqQ,R16,Zl1,Pe,FS7,IWS,weE,peE,es,DQQ,jmk,x8,nl,zt,NA7,dQ6,uu,g8E,rke,smL,h1L,Hl0,bl6,TAS,BB,Lj,Kj,o_,ktE,tsQ,fj,lWw,V2,mQv,QmQ,CuD,Jq,Sf,il1,$QL,Xee,OlQ,E88,cke,Ms0,WS0,Yqe,v86,qq6,n87,z1w,Bue,gu,Vf1,Rd8,GB,Sv6,Jq6,L5v,oSk,u7w,aWy,fKC,ru,HB,F51,EU,K6k,Dp8,bg,kS,dpe,IK7,jf,K5E,yqS,j_E, gSD,lg,TB,Ov,rq6,s_7,Hj1,Ev,hdS,tfC,bjy,kBk,cB,Mp,TuS,Q_S,Cgw,Uv,mpe,ij0,$pL,lKy,qp,XBD,Oj1,vB,ESe,cqL,MfC,Yvw,W5S,Up6,PgL,xpD,vSw,nSy,zdE,qv0,ef,nj,uB1,BxE,zB,aKE,AP7,otw,L01,fd8,Id7,pJ8,wJL,yPe,jD7,gte,GoQ,rPk,HQD,AP,a_,DYy,LQ,hCL,bQC,sD1,Cr8,QDv,iQ7,$Ye,Ete,OQ0,XJ1,cP8,Mc0,oD,BJ,Yf1,UYk,W0S,vt0,Pr1,xY8,KQ,eCE,fQ,JP,qfv,Sc,nt7,zCD,uSw,adS,ASL,RD,LjE,ooL,KjC,Zd,VQ6,fCD,NY,FS,Dd,SYD,RWy,Zbk,JSy,Fje,N0v,Ddv,dx,ddv,ICk,pdD,gok,wdS,ySk,ID,GGL,s7y,Hbv,bb6,tQ1,wx,pQ,kGk,rSk,mdD,lCE,T0E,yF,jc,CEQ,Q77,gx, Go,rx,ibE,sf,$d7,Xd7,ObS,EoC,HJ,cS7,hP,MQD,br,YYy,tP,kt,Wj6,Ud0,voe,To,PEw,lr,m0,eWD,uAw,aCe,xdk,AZ6,BcS,f$y,Kh7,oyk,Lhw,JZy,VhE,Spe,NcQ,ir,DzS,FhC,Rxe,ZZy,dz1,I$D,$t,XS,wuL,pue,yZk,jH1,gyS,GjS,sHk,HZk,QHk,thQ,kjQ,hxD,iZL,Uf,vJ,cZv,Mh0,xt,YpD,ec,UzL,$z7,Yt,qY,vyQ,qp0,zo,xzy,nyD,exL,ur,PJ,MY,PFk,nQ,Xue,Wh6,uM6,Of,aD,a$C,A3e,WJ,OZe,AS,Lb,LGS,o7,o4v,Bd,B17,f6k,Vp0,J31,KGw,fb,S$k,Kb,VA,Rn1,ZY0,N18,FGL,deL,I66,p1C,w1v,SQ,JS,De8,y3y,g4e,G2S,jYS,r36,R7,HYL,sYE,ZC,Nd,hnE,tp8,k2D,FA,bYy,T16,l60,QYQ,DC,meE, CvL,iY6,$eE,I7,w0,E48,c3k,X1C,OYe,Mp0,pb,yA,Uee,Y$0,WG1,q$7,v4L,PvQ,g0,en1,xey,n4w,r0,znw,a6D,AN0,ul0,Hd,LR7,ou7,BQD,KR0,VyE,JNL,f91,Syy,R7E,ZI6,NQ1,FRC,DZ0,dZS,I97,w08,p08,jz6,gu0,Ge7,ko,rNL,szv,HIv,bIE,l9C,keL,mZ8,h77,mj,ty7,lE,TQQ,Cb,Co1,QzS,$o,iE,OIe,Euw,cN8,MyL,F48,WRL,UZ0,OY,cd,EY,YyC,Md,Yo,Wd,qye,vd,opE,Fg8,DcS,qd,Bgy,dcw,rM,lcy,Qsv,Pd,xo,nh,I0E,wEQ,ub,pT,sh,pE0,yCk,gpD,jVS,GSD,rCv,sV6,HF6,bFe,tDQ,kSe,TrD,hBv,OF0,EpQ,XE8,cCv,YHC,Wg7,vpe,qHS,a7,Uc1,MDe,l0k,AZ,eBw,np7,xc8,PZk,a0D,ujL,J4,Aow, oV7,fVQ,LZ,KJL,iFE,zG,LJQ,V4C,JoS,SK0,mcy,CZk,qID,Tm,uE,Rek,Bu,N4k,FJD,D7C,oH,Z_0,B4E,IVD,jeL,KZ,gVk,GsE,pAw,JZ,roy,seS,d7L,H_E,yow,he0,Sh,V$,b_0,ksC,t4Q,fZ,lVD,RH,vqw,m70,i_8,C2S,XAQ,O_y,$7C,Nz,Z$,co6,M4v,YKe,U7v,FM,WJv,vV7,aVQ,ee0,nVy,P2w,qKD,IH,Kyy,B78,dc,y$,jh,JM7,Sov,rc,uUC,bF,Z7E,hZ,Gj,Fyk,Dk6,dkw,oBy,Tj,mh,wx6,zeL,Rf0,sp,wc,pxC,iF,N7v,yMv,jny,$y,XM,gBy,Hu,fg6,GqQ,rMS,lF,sn0,tZ,H7e,ky,hj,hf0,tJv,Op,Ep,kqQ,T78,lg8,CZ,Q$,mkk,QeC,Qnk,x7w,CU7,i70,$k8,Xxw,cu,Mz,cMS,Uky,vB7,EB0,ag7,AHv,L3L,oJE,BBw, fe8,K3E,JHy,VIe,S8C,Yy,Up,Wu,R6L,ZBe,NBk,Pi,F38,vu,D6L,qz,d6y,Pu,eh,XW,IeD,SM,xNw,wn7,vy,pnL,OJ,EJ,yHy,EM,jiE,gJS,GfE,RU,LEy,rH1,siy,HBD,nZ,bBL,tIw,zj,aH,A3,kfD,m6D,Qi7,LY,CKE,TBL,iBv,lev,$6k,Xn0,OBQ,EJQ,oY,MIL,gf6,S9,zu,Y87,U60,Ay,cHe,IE,W36,vJ0,q80,B1,BV,x6D,fY,e6C,KY,VY,uF,nJ1,z6D,uG8,J3,Sp,aek,RY,Z6,Ac6,Ne,LA6,Fl,D6,oOL,BJw,YN6,d1,fv1,Vu8,KAC,IY,w1,Jc8,pY,SmQ,R$0,ZNE,NJ1,FAD,D3S,Ivk,jp,d3e,ws1,psy,yc7,jZe,sZL,gO0,GnD,rc7,h$v,tuS,kny,TJ8,bNE,g1,lvD,m3D,QZk,CxQ,iNL,r1,$3L,s$,H1,h3,XsC,ONE,cc6,Mu0, Ym0,U3w,vO7,WA8,qme,bv,t3,e$L,Pxv,x38,k4,nOQ,z$v,T2,lv,uHQ,mG,av6,QY,AJ1,CY,iv,Lpe,$4,Xl,oPe,BOy,O$,E$,fMS,c1,Kp1,V0E,W1,v1,JJS,S1Q,RAv,Fpk,NO7,qe,Duk,duL,IM7,uRy,ZAk,pzk,yJv,gPL,hQL,k8C,qC,c6;Kw=function(A,L,B,f,K,V,J,R,Z,N){var F;(A&121)==A&&(F=L!==null);(A&46)==A&&(F=f(K,V,J,R,Z,N));if((A^57)>>3>=1&&(A|9)<18){A1(1,L);var D=decodeURIComponent(L[S[16]](S[42])||S[21])[S[40]](S[82]);F=L[S[17]]===S[1]&&D[S[9]]>1&&!!D[1]}return F}; J1=function(A,L,B,f){if((A^42)>>4<1&&((A^28)&5)>=0){for(var K=L[S[40]](S[19]),V={},J=0;J>1&7)==2)if(B=B===void 0?!1:B,A1(34,L),L[S[17]]!==S[1])K=L[S[35]](),K[S[18]](S[86],S[25]),Z=K;else if(V=L[S[76]](),K=new g.ZS(V),J=L[S[16]](S[74]),R=decodeURIComponent(L[S[16]](S[42])||S[21])[S[40]](S[82]),J&&R&&R[S[9]]>1&&R[1]){V=K[S[10]];var N=V[S[84]](/^[^.]*/,S[21]);g.NC(K,(V[S[3]](S[34])===0?S[34]:S[70])+J+S[46]+R[1]+N);K=new g.Fk(K[S[52]]());K[S[18]](S[83],S[25]); Z=K}else B?(K=L[S[35]](),K[S[18]](S[83],S[25]),Z=K):(J=K[S[10]][S[39]](S[64]),K[S[10]][S[39]](S[88])?(g.NC(K,S[75]),V=K[S[52]]()):K[S[10]][S[39]](S[51])?(g.NC(K,S[4]),V=K[S[52]]()):(K=A1S(V),dy(K)&&(V=K)),K=new g.Fk(V),K[S[18]](S[60],S[25]),J&&K[S[18]](S[32],S[92]),Z=K);(A+7&16)<10&&(A>>2&11)>=6&&(V=g.y(L,LvQ)||L[S[68]],K={sG:!1,Ff:S[21],q0:S[21],s:S[21]},V?(V=I0(V),K[S[56]]=!0,K[S[80]]=V[S[11]],K[S[65]]=V[S[36]],K[S[26]]=V[S[26]],Z=K):Z=K);(A|72)==A&&(K=L[B],V=K[S[3]](S[66]),V>0?wy(32,f,K[S[22]](0, V),K[S[22]](V+1)):K&&(f[K]=S[21]),Z=[]);return Z}; pw=function(A,L,B,f,K,V){var J;(A+2&60)>=A&&(A+2&31)=A){for(var R=64,Z=[];++R-Z[S[9]]-32;){switch(R){case 58:R-=14;case 91:case 92:case 93:continue;case 123:R=47;case 94:case 95:case 96:continue;case 46:R=95}Z[S[15]](String[S[20]](R))}J=Z}A-5>>3==2&&(this[S[29]]=L,this[S[7]]=B===void 0?!1:B,this[S[37]]=this[S[17]]=this[S[23]]=S[21],this[S[10]]={},this[S[11]]=S[21]);if(!(A+5&13)){R=64;for(Z=[];++R-Z[S[9]]-32;){switch(R){case 91:R=44;continue;case 123:R=65;break; case 65:R-=18;continue;case 58:R=96;continue;case 46:R=95}Z[S[15]](String[S[20]](R))}J=Z}return J}; jE=function(A,L,B,f,K,V,J,R,Z,N,F){var D;(A|72)==A&&L[S[14]]();(A&100)==A&&B[S[9]]!=0&&(L=(L%B[S[9]]+B[S[9]])%B[S[9]],B[S[12]](0,1,B[S[12]](L,1,B[0])[0]));if((A<<1&13)>=7&&A>>1<15)throw L;((A|8)&5)==1&&(D=B(V,J,R,Z,N,F));return D}; sD=function(A,L){if(((A^3)&13)==1){A1(32,L);var B=g.gy(L[S[10]],o7k)}if((A-9^16)>=A&&(A+7^10)=A){for(var f=64,K=[];++f-K[S[9]]-32;)switch(f){case 58:f=96;continue;case 91:f=44;break;case 65:f=47;continue;case 46:f=153;case 123:f-=58;default:K[S[15]](String[S[20]](f))}var V=K}(A|2)>>3>=0&&A+3<16&&(f=L[S[3]](S[28],12),K=L[S[3]](S[28],f+1),f>0&&K>0?(B[S[17]]=L[S[22]](0,K),L=L[S[22]](K+1)):(B[S[17]]=L,L=S[21]),V=[L]);return V}; A1=function(A,L,B){if((A>>1&12)<1&&A>>1>=-43&&L[S[29]])var f=fSS(5,L);if(!(A-5&6)){L=(L%B[S[9]]+B[S[9]])%B[S[9]];f=B[0];B[0]=B[L];B[L]=f;var K=[L]}(A^20)<15&&(A>>2&5)>=3&&(L[8]<4&&(L[6]>=-8?(0,L[15])((0,L[5])(L[23]),(0,L[5])(L[20]),L[36],(0,L[5])(L[23]),L[17],L[12]):(0,L[36])((0,L[26])(L[47],L[-7+new B(S[63])/1E3]),L[61],L[49],L[23])===((0,L[61])(L[57],L[27],(0,L[6])()),L[0])(L[57],L[23])),(0,L[68])(),(0,L[41])((0,L[31])(L[39],L[30]),L[61],L[25],L[27],(0,L[18])()),K=[]);return K}; h1=function(A,L,B){(A<<1&7)>=0&&(A+8&14)<3&&B[S[15]](L);if((A<<1&7)==2&&L[S[9]]!=0){var f=A1(13,B,L);B=f[0]}if((A^35)>>4<1&&A<<1>=-71){A1(3,L);f=L[S[23]]+(L[S[23]]?S[6]:S[69])+L[S[37]]+L[S[17]];if(sD(2,L)){var K=[];g.H6(L[S[10]],function(J,R){J!==null&&K[S[15]](R+S[66]+J)}); f+=S[44]+K[S[38]](S[19])}var V=f}return V}; bL=function(A,L,B,f,K,V,J,R,Z){(A^22)>>3==2&&L[S[14]]();if((A-9^28)=A){var N;A1(2,L);if(N=L[S[10]][S[72]]||null)N=KvL[0](N),L[S[18]](S[72],N);var F=[]}(A^31)>>3==1&&(F=B(f,K,V,J,R,Z));return F}; k7=function(A,L,B,f,K,V,J){var R;(A-8|19)=A&&(R=B(K,V,J));if((A&67)==A){var Z=L[S[40]](S[28]),N=0;Z[0]||N++;for(var F={};N>4))a:if(Z=L[S[40]](S[21]),N=[VE7,null,J16,null,S[61],-225282824,Z,SDv,971282551,RQE,-88000248,Zw8,-1030189066,NyS,null,1624177671,-1258435329,FvL,-1884066279,-2081688527,-886630647,DCk,18061952,1416375861,S[67],dC0,243695351,584584133,1080626611,-1408508097,940927517,IS7,w6w,-1198777365,-1700657897,p6Q,667691795, -1369354033,y1k,S[30],function(D,I,d){var w=d[S[9]];D[S[78]](function(r,h,Q){this[S[15]](Q[h]=d[(d[S[3]](r)-d[S[3]](this[h])+h+w--)%d[S[9]]])},I[S[40]](S[21]))}, 1909008657,-747657128,189235419,function(D,I){D=(D%I[S[9]]+I[S[9]])%I[S[9]];I[S[12]](-D)[S[14]]()[S[78]](function(d){I[S[50]](d)})}, S[87],-2135883810,1770511103,Z,186904142,-1766894458,1472192630,j0L,-83527623,g7L,G8k,-1192265138,-405136233,-574383650,1976477660,1378036374,Z,425939485,-726016257,r1y,-1848270386,1298795749,S[41],-774036769,-574383650,-1094854843,-251903802,s0y,1671345774],N[1]=N,N[3]=N,N[14]=N,typeof Hw8===S[90])R=L;else{try{try{F=wy(11,N,Date)}catch(D){N[6]!=7&&(((0,N[2])((0,N[2])((0,N[67])(N[15],N[41]),N[41],N[27],N[72]),N[31],N[64],N[13]),(0,N[3])(N[2],N[36]),((0,N[32])(N[47],N[2]),N[61])(N[31],N[12]),(0,N[61])(N[36], N[56]),(0,N[61])(N[4],N[40]),((0,N[8])(N[36]),N[0])(N[new Date(S[79])/1E3],N[1],(0,N[55])()),N[8])(N[31]),N[new Date(S[93])/1E3])(N[new Date(S[45])/1E3],N[23])<<((0,N[65])(N[29]),N[37])(N[21],N[44])}finally{N[72]<-5?(0,N[20])((0,N[20])((0,N[8])(N[31]),N[44],N[61],N[57]),N[63],N[41],N[3]):(0,N[36])(((0,N[17])(N[52]),N[5])(N[20]),N[new Date(S[91])/1E3],N[52],N[22],(0,N[24])())}try{F=A1(16,N,Date)}catch(D){(N[3]<5||((((0,N[31])(N[55],N[28]),(0,N[31])(N[47],N[44]),(0,N[17])(N[28],N[35]),N[31])(N[59], N[44]),(0,N[41])((0,N[50])(N[32],N[16]),N[12],N[47],N[49]),N[63])((0,N[72])(N[54],N[26]),N[61],N[42],N[62]),0))&&(0,N[63])((0,N[71])((((((0,N[21])(N[45],N[60]),N[29])(N[55],N[70]),N[29])(N[12],N[39]),N[29])(N[55],N[49]),N[29])(N[12],N[33]),N[16],N[74],N[57],(0,N[59])()),N[71],(0,N[61])(N[38],N[74]),N[16],N[74],N[15],(0,N[59])()),N[56]<=new Date(S[47])/1E3?((0,N[63])((0,N[71])((0,N[new Date(S[57])/1E3])(N[11],N[12]),N[61],N[0],N[74]),N[44],(0,N[new Date(S[71])/1E3])(N[12]),N[47],(0,N[21])(N[25],N[12]), N[74],N[28]),N[71])((0,N[29])(N[74],N[27]),N[5],N[55],N[64]):((0,N[26])((0,N[29])(N[74],N[43]),N[71],(0,N[71])((0,N[16])(N[74],N[15],(0,N[48])()),N[52],N[12]),(0,N[29])(N[74],N[67]),(0,N[16])(N[12],N[15],(0,N[36])()),N[29],N[60],N[19]),N[8])(N[12])}}catch(D){R=S[94]+L;break a}R=Z[S[38]](S[21])}(A^59)>>3==1&&(R=L[S[29]]?L[S[29]][S[33]](S[31]):L[S[23]]===S[31]);if((A|3)>>3==3)for(Z=L[S[9]];Z;)L[S[15]](L[S[12]](--Z,1)[0]);return R}; wy=function(A,L,B,f){if((A&52)==A){if(B===S[73]){var K;(K=f[S[3]](S[66]))>=0?(B=S[81]+f[S[22]](0,K),f=f[S[22]](K+1)):(K=f[S[3]](S[54]))>=0&&(B=S[81]+f[S[22]](0,K),f=f[S[22]](K+3))}L[B]=f}if((A|1)>>3==2){A1(7,L);var V=L[S[37]]}(A-9&15)==1&&(B=(B%L[S[9]]+L[S[9]])%L[S[9]],L[S[12]](B,1));(A+6&11)==1&&(L[37]=this.length))return this[A]}; c10=function(A,L,B){A instanceof String&&(A=String(A));for(var f=A.length-1;f>=0;f--){var K=A[f];if(L.call(B,K,f,A))return{eC:f,MD:K}}return{eC:-1,MD:void 0}}; g.hf=function(A,L,B){A=A.split(".");B=B||g.rI;for(var f;A.length&&(f=A.shift());)A.length||L===void 0?B[f]&&B[f]!==Object.prototype[f]?B=B[f]:B=B[f]={}:B[f]=L}; tf=function(A,L){var B=g.bB("CLOSURE_FLAGS");A=B&&B[A];return A!=null?A:L}; g.bB=function(A,L){A=A.split(".");L=L||g.rI;for(var B=0;B2){var f=Array.prototype.slice.call(arguments,2);return function(){var K=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(K,f);return A.apply(L,K)}}return function(){return A.apply(L,arguments)}}; g.X9=function(A,L,B){g.X9=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?YD6:UCw;return g.X9.apply(null,arguments)}; g.Od=function(A,L){var B=Array.prototype.slice.call(arguments,1);return function(){var f=B.slice();f.push.apply(f,arguments);return A.apply(this,f)}}; g.Ed=function(){return Date.now()}; Wvy=function(A){g.hf("yt.abuse.playerAttLoaderRun",A)}; MX=function(A){return A}; g.Ud=function(A,L){function B(){} B.prototype=L.prototype;A.oy=L.prototype;A.prototype=new B;A.prototype.constructor=A;A.QN=function(f,K,V){for(var J=Array(arguments.length-2),R=2;R=0;--B)B in f&&L.call(void 0,f[B],B,A)}; g.Pw=function(A,L,B){L=qX(A,L,B);return L<0?null:typeof A==="string"?A.charAt(L):A[L]}; qX=function(A,L,B){for(var f=A.length,K=typeof A==="string"?A.split(""):A,V=0;V=0;f--)if(f in K&&L.call(B,K[f],f,A))return f;return-1}; g.zK=function(A,L){return eQe(A,L)>=0}; n7v=function(A){if(!Array.isArray(A))for(var L=A.length-1;L>=0;L--)delete A[L];A.length=0}; g.Lx=function(A,L){L=eQe(A,L);var B;(B=L>=0)&&g.uB(A,L);return B}; g.uB=function(A,L){return Array.prototype.splice.call(A,L,1).length==1}; g.o8=function(A,L){L=qX(A,L);L>=0&&g.uB(A,L)}; zQv=function(A,L){var B=0;xCL(A,function(f,K){L.call(void 0,f,K,A)&&g.uB(A,K)&&B++})}; g.Bk=function(A){return Array.prototype.concat.apply([],arguments)}; g.Kx=function(A){var L=A.length;if(L>0){for(var B=Array(L),f=0;f>>1),Z=void 0;B?Z=L.call(void 0,A[R],R,A):Z=L(f,A[R]);Z>0?K=R+1:(V=R,J=!Z)}return J?K:-K-1}; g.I8=function(A,L){A.sort(L||NV)}; Afv=function(A,L){var B=NV;g.I8(A,function(f,K){return B(L(f),L(K))})}; g.wo=function(A,L,B){if(!g.lB(A)||!g.lB(L)||A.length!=L.length)return!1;var f=A.length;B=B||LtD;for(var K=0;KL?1:A0&&(L[K]=f)},A); return L}; NIe=function(A){A=Pk(A);var L=[];g.H6(A,function(B,f){f in Object.prototype||typeof B!="undefined"&&L.push([f,":",B].join(""))}); return L}; DX7=function(A){Wk(A,"od",Ftk);Wk(A,"opac",nx).N=!0;Wk(A,"sbeos",nx).N=!0;Wk(A,"prf",nx).N=!0;Wk(A,"mwt",nx).N=!0;Wk(A,"iogeo",nx)}; zk=function(A,L){return A.lastIndexOf(L,0)==0}; dXQ=function(A,L){var B=A.length-L.length;return B>=0&&A.indexOf(L,B)==B}; g.us=function(A){return/^[\s\xa0]*$/.test(A)}; g.a8=function(A,L){return A.indexOf(L)!=-1}; AF=function(A,L){return g.a8(A.toLowerCase(),L.toLowerCase())}; g.B5=function(A,L){var B=0;A=La(String(A)).split(".");L=La(String(L)).split(".");for(var f=Math.max(A.length,L.length),K=0;B==0&&KL?1:0}; g.fa=function(){var A=g.rI.navigator;return A&&(A=A.userAgent)?A:""}; SS=function(A){if(!Ka&&!VR||!JF)return!1;for(var L=0;L0:!1}; Nw=function(){return Zi()?!1:Ry("Opera")}; IRS=function(){return Zi()?!1:Ry("Trident")||Ry("MSIE")}; wwv=function(){return Zi()?SS("Microsoft Edge"):Ry("Edg/")}; FN=function(){return Ry("Firefox")||Ry("FxiOS")}; dt=function(){return Ry("Safari")&&!(Di()||(Zi()?0:Ry("Coast"))||Nw()||(Zi()?0:Ry("Edge"))||wwv()||(Zi()?SS("Opera"):Ry("OPR"))||FN()||Ry("Silk")||Ry("Android"))}; Di=function(){return Zi()?SS("Chromium"):(Ry("Chrome")||Ry("CriOS"))&&!(Zi()?0:Ry("Edge"))||Ry("Silk")}; pw0=function(){return Ry("Android")&&!(Di()||FN()||Nw()||Ry("Silk"))}; yfw=function(A){var L={};A.forEach(function(B){L[B[0]]=B[1]}); return function(B){return L[B.find(function(f){return f in L})]||""}}; jO1=function(A){var L=g.fa();if(A==="Internet Explorer"){if(IRS())if((A=/rv: *([\d\.]*)/.exec(L))&&A[1])L=A[1];else{A="";var B=/MSIE +([\d\.]+)/.exec(L);if(B&&B[1])if(L=/Trident\/(\d.\d)/.exec(L),B[1]=="7.0")if(L&&L[1])switch(L[1]){case "4.0":A="8.0";break;case "5.0":A="9.0";break;case "6.0":A="10.0";break;case "7.0":A="11.0"}else A="7.0";else A=B[1];L=A}else L="";return L}var f=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");B=[];for(var K;K=f.exec(L);)B.push([K[1],K[2],K[3]||void 0]); L=yfw(B);switch(A){case "Opera":if(Nw())return L(["Version","Opera"]);if(Zi()?SS("Opera"):Ry("OPR"))return L(["OPR"]);break;case "Microsoft Edge":if(Zi()?0:Ry("Edge"))return L(["Edge"]);if(wwv())return L(["Edg"]);break;case "Chromium":if(Di())return L(["Chrome","CriOS","HeadlessChrome"])}return A==="Firefox"&&FN()||A==="Safari"&&dt()||A==="Android Browser"&&pw0()||A==="Silk"&&Ry("Silk")?(L=B[2])&&L[1]||"":""}; gWw=function(A){if(Zi()&&A!=="Silk"){var L=JF.brands.find(function(B){return B.brand===A}); if(!L||!L.version)return NaN;L=L.version.split(".")}else{L=jO1(A);if(L==="")return NaN;L=L.split(".")}return L.length===0?NaN:Number(L[0])}; rfL=function(){var A=null;if(!GKw)return A;try{var L=function(B){return B}; A=GKw.createPolicy("goog#html",{createHTML:L,createScript:L,createScriptURL:L})}catch(B){}return A}; wt=function(){Iy===void 0&&(Iy=rfL());return Iy}; pa=function(A){this.N=A}; jS=function(A){var L=wt();A=L?L.createScriptURL(A):A;return new pa(A)}; gt=function(A){if(A instanceof pa)return A.N;throw Error("");}; G$=function(A){this.N=A}; g.rt=function(A){if(A instanceof G$)return A.N;throw Error("");}; sT=function(A){this.gX=A}; H5=function(A){return new sT(function(L){return L.substr(0,A.length+1).toLowerCase()===A+":"})}; g.hF=function(A,L){L=L===void 0?sOQ:L;a:if(L=L===void 0?sOQ:L,!(A instanceof G$)){for(var B=0;B4);K++)L[UT(A[K])]||(B+="\nInner error "+f++ +": ",A[K].stack&&A[K].stack.indexOf(A[K].toString())==0||(B+=typeof A[K]==="string"?A[K]:A[K].message+"\n"),B+=Mw(A[K],L));K")!=-1&&(A=A.replace($XS,">")),A.indexOf('"')!=-1&&(A=A.replace(XwE,""")),A.indexOf("'")!=-1&&(A=A.replace(Ofw,"'")),A.indexOf("\x00")!=-1&&(A=A.replace(EW6,"�")));return A}; g.xj=function(A){return A==null?"":String(A)}; eS=function(A){for(var L=0,B=0;B>>0;return L}; na=function(A){var L=Number(A);return L==0&&g.us(A)?NaN:L}; cf0=function(A){return String(A).replace(/\-([a-z])/g,function(L,B){return B.toUpperCase()})}; M5C=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; YdD=function(A){return A.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(L,B,f){return B+f.toUpperCase()})}; UX6=function(A){var L=1;A=A.split(":");for(var B=[];L>0&&A.length;)B.push(A.shift()),L--;A.length&&B.push(A.join(":"));return B}; z$=function(){return Ka||VR?!!JF&&!!JF.platform:!1}; Wty=function(){return z$()?JF.platform==="Android":Ry("Android")}; uO=function(){return Ry("iPhone")&&!Ry("iPod")&&!Ry("iPad")}; ay=function(){return uO()||Ry("iPad")||Ry("iPod")}; A8=function(){return z$()?JF.platform==="macOS":Ry("Macintosh")}; vWS=function(){return z$()?JF.platform==="Windows":Ry("Windows")}; LG=function(A){LG[" "](A);return A}; qd0=function(A,L){try{return LG(A[L]),!0}catch(B){}return!1}; xX0=function(A,L){var B=PBv;return Object.prototype.hasOwnProperty.call(B,A)?B[A]:B[A]=L(A)}; g.oC=function(A){return xX0(A,function(){return g.B5(eww,A)>=0})}; g.B4=function(A,L,B){return Math.min(Math.max(A,L),B)}; g.fG=function(A,L){A%=L;return A*L<0?A+L:A}; KG=function(A,L,B){return A+B*(L-A)}; g.Vl=function(A,L){this.x=A!==void 0?A:0;this.y=L!==void 0?L:0}; J8=function(A,L){return A==L?!0:A&&L?A.x==L.x&&A.y==L.y:!1}; g.Sr=function(A,L){this.width=A;this.height=L}; g.RC=function(A,L){return A==L?!0:A&&L?A.width==L.width&&A.height==L.height:!1}; Zr=function(A){return A.width*A.height}; FF=function(A,L){this.N=A===No&&L||""}; Dr=function(A){if(A instanceof T$)return A;A=String(A).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return lO(A)}; zwQ=function(A){return nW7(A)}; nW7=function(A){var L=Dr("");return lO(A.map(function(B){return mC(Dr(B))}).join(mC(L).toString()))}; og7=function(A){var L;if(!u9E.test("div"))throw Error("");if(aRv.indexOf("DIV")!==-1)throw Error("");var B="":(A=zwQ(L.map(function(f){return f instanceof T$?f:Dr(String(f))})),B+=">"+A.toString()+""); return lO(B)}; AOQ=function(A){for(var L="",B=Object.keys(A),f=0;f2&&RFQ(K,J,f,2);return J}; RFQ=function(A,L,B,f){function K(R){R&&L.appendChild(typeof R==="string"?A.createTextNode(R):R)} for(;f0)K(V);else{a:{if(V&&typeof V.length=="number"){if(g.QK(V)){var J=typeof V.item=="function"||typeof V.item=="string";break a}if(typeof V==="function"){J=typeof V.item=="function";break a}}J=!1}g.yB(J?g.Kx(V):V,K)}}}; g.TO=function(A){return t8(document,A)}; t8=function(A,L){L=String(L);A.contentType==="application/xhtml+xml"&&(L=L.toLowerCase());return A.createElement(L)}; g.lA=function(A){return document.createTextNode(String(A))}; g.mk=function(A,L){A.appendChild(L)}; g.Ql=function(A){for(var L;L=A.firstChild;)A.removeChild(L)}; iA=function(A,L,B){A.insertBefore(L,A.childNodes[B]||null)}; g.$9=function(A){return A&&A.parentNode?A.parentNode.removeChild(A):null}; g.XF=function(A,L){if(!A||!L)return!1;if(A.contains&&L.nodeType==1)return A==L||A.contains(L);if(typeof A.compareDocumentPosition!="undefined")return A==L||!!(A.compareDocumentPosition(L)&16);for(;L&&A!=L;)L=L.parentNode;return L==A}; w_=function(A){return A.nodeType==9?A:A.ownerDocument||A.document}; g.OA=function(A,L){if("textContent"in A)A.textContent=L;else if(A.nodeType==3)A.data=String(L);else if(A.firstChild&&A.firstChild.nodeType==3){for(;A.lastChild!=A.firstChild;)A.removeChild(A.lastChild);A.firstChild.data=String(L)}else g.Ql(A),A.appendChild(w_(A).createTextNode(String(L)))}; EA=function(A){return A.tagName=="A"&&A.hasAttribute("href")||A.tagName=="INPUT"||A.tagName=="TEXTAREA"||A.tagName=="SELECT"||A.tagName=="BUTTON"?!A.disabled&&(!A.hasAttribute("tabindex")||Zxe(A)):A.hasAttribute("tabindex")&&Zxe(A)}; Zxe=function(A){A=A.tabIndex;return typeof A==="number"&&A>=0&&A<32768}; Mo=function(A,L,B){if(!L&&!B)return null;var f=L?String(L).toUpperCase():null;return c4(A,function(K){return(!f||K.nodeName==f)&&(!B||typeof K.className==="string"&&g.zK(K.className.split(/\s+/),B))},!0)}; c4=function(A,L,B){A&&!B&&(A=A.parentNode);for(B=0;A;){if(L(A))return A;A=A.parentNode;B++}return null}; IC=function(A){this.N=A||g.rI.document||document}; No0=function(){this.N=this.G$=null}; Y9=function(){}; v4=function(){if(!UA())throw Error();}; UA=function(){return!(!qo||!qo.performance)}; Fie=function(A){return g.h8?"webkit"+A:A.toLowerCase()}; P4=function(A){return function(){return A}}; g.x9=function(){}; DVC=function(A){var L=L||0;return function(){return A.apply(this,Array.prototype.slice.call(arguments,0,L))}}; er=function(A){var L=!1,B;return function(){L||(B=A(),L=!0);return B}}; nG=function(A){var L=A;return function(){if(L){var B=L;L=null;B()}}}; zO=function(A,L,B){var f=0;return function(K){g.rI.clearTimeout(f);var V=arguments;f=g.rI.setTimeout(function(){A.apply(B,V)},L)}}; uA=function(A,L,B,f){this.top=A;this.right=L;this.bottom=B;this.left=f}; aC=function(A){return A.right-A.left}; AD=function(A,L){return A==L?!0:A&&L?A.top==L.top&&A.right==L.right&&A.bottom==L.bottom&&A.left==L.left:!1}; Lv=function(A,L,B){L instanceof g.Vl?(A.left+=L.x,A.right+=L.x,A.top+=L.y,A.bottom+=L.y):(A.left+=L,A.right+=L,typeof B==="number"&&(A.top+=B,A.bottom+=B));return A}; g.oR=function(A,L,B,f){this.left=A;this.top=L;this.width=B;this.height=f}; BX=function(A,L){return A==L?!0:A&&L?A.left==L.left&&A.width==L.width&&A.top==L.top&&A.height==L.height:!1}; g.Kv=function(A,L,B){if(typeof L==="string")(L=fv(A,L))&&(A.style[L]=B);else for(var f in L){B=A;var K=L[f],V=fv(B,f);V&&(B.style[V]=K)}}; fv=function(A,L){var B=dVv[L];if(!B){var f=cf0(L);B=f;A.style[f]===void 0&&(f=(g.h8?"Webkit":V9?"Moz":null)+YdD(f),A.style[f]!==void 0&&(B=f));dVv[L]=B}return B}; g.SV=function(A,L){var B=A.style[cf0(L)];return typeof B!=="undefined"?B:A.style[fv(A,L)]||""}; RR=function(A,L){var B=w_(A);return B.defaultView&&B.defaultView.getComputedStyle&&(A=B.defaultView.getComputedStyle(A,null))?A[L]||A.getPropertyValue(L)||"":""}; Z4=function(A,L){return RR(A,L)||(A.currentStyle?A.currentStyle[L]:null)||A.style&&A.style[L]}; g.F6=function(A,L,B){if(L instanceof g.Vl){var f=L.x;L=L.y}else f=L,L=B;A.style.left=Na(f,!1);A.style.top=Na(L,!1)}; IwL=function(A){return new g.Vl(A.offsetLeft,A.offsetTop)}; D4=function(A){try{return A.getBoundingClientRect()}catch(L){return{left:0,top:0,right:0,bottom:0}}}; wkw=function(A){var L=w_(A),B=Z4(A,"position"),f=B=="fixed"||B=="absolute";for(A=A.parentNode;A&&A!=L;A=A.parentNode)if(A.nodeType==11&&A.host&&(A=A.host),B=Z4(A,"position"),f=f&&B=="static"&&A!=L.documentElement&&A!=L.body,!f&&(A.scrollWidth>A.clientWidth||A.scrollHeight>A.clientHeight||B=="fixed"||B=="absolute"||B=="relative"))return A;return null}; g.dK=function(A){var L=w_(A),B=new g.Vl(0,0);if(A==(L?w_(L):document).documentElement)return B;A=D4(A);L=pG(L);L=Scw(L.N);B.x=A.left+L.x;B.y=A.top+L.y;return B}; yO6=function(A,L){var B=new g.Vl(0,0),f=bA(w_(A));if(!qd0(f,"parent"))return B;do{var K=f==L?g.dK(A):pkk(A);B.x+=K.x;B.y+=K.y}while(f&&f!=L&&f!=f.parent&&(A=f.frameElement)&&(f=f.parent));return B}; g.IR=function(A,L){A=j87(A);L=j87(L);return new g.Vl(A.x-L.x,A.y-L.y)}; pkk=function(A){A=D4(A);return new g.Vl(A.left,A.top)}; j87=function(A){if(A.nodeType==1)return pkk(A);A=A.changedTouches?A.changedTouches[0]:A;return new g.Vl(A.clientX,A.clientY)}; g.wK=function(A,L,B){if(L instanceof g.Sr)B=L.height,L=L.width;else if(B==void 0)throw Error("missing height argument");A.style.width=Na(L,!0);A.style.height=Na(B,!0)}; Na=function(A,L){typeof A=="number"&&(A=(L?Math.round(A):A)+"px");return A}; g.pv=function(A){var L=ggS;if(Z4(A,"display")!="none")return L(A);var B=A.style,f=B.display,K=B.visibility,V=B.position;B.visibility="hidden";B.position="absolute";B.display="inline";A=L(A);B.display=f;B.position=V;B.visibility=K;return A}; ggS=function(A){var L=A.offsetWidth,B=A.offsetHeight,f=g.h8&&!L&&!B;return(L===void 0||f)&&A.getBoundingClientRect?(A=D4(A),new g.Sr(A.right-A.left,A.bottom-A.top)):new g.Sr(L,B)}; g.y9=function(A,L){A.style.display=L?"":"none"}; jV=function(A){return A?A.passive&&GkC()?A:A.capture||!1:!1}; gK=function(A,L,B,f){return typeof A.addEventListener==="function"?(A.addEventListener(L,B,jV(f)),!0):!1}; GV=function(A){if(A.prerendering)return 3;var L;return(L={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[A.visibilityState||A.webkitVisibilityState||A.mozVisibilityState||""])!=null?L:0}; rOk=function(){}; rK=function(A){try{return!!A&&A.location.href!=null&&qd0(A,"foo")}catch(L){return!1}}; s8y=function(A){for(var L=A;A&&A!=A.parent;)A=A.parent,rK(A)&&(L=A);return L}; Hxy=function(){return(Ka||VR)&&JF?JF.mobile:!HX()&&(Ry("iPod")||Ry("iPhone")||Ry("Android")||Ry("IEMobile"))}; HX=function(){return(Ka||VR)&&JF?!JF.mobile&&(Ry("iPad")||Ry("Android")||Ry("Silk")):Ry("iPad")||Ry("Android")&&!Ry("Mobile")||Ry("Silk")}; hFe=function(A){var L,B;return(B=(L=/https?:\/\/[^\/]+/.exec(A))==null?void 0:L[0])!=null?B:""}; To1=function(A){A=A||hD();for(var L=new bxv(g.rI.location.href,!1),B=null,f=A.length-1,K=f;K>=0;--K){var V=A[K];!B&&tZQ.test(V.url)&&(B=V);if(V.url&&!V.N){L=V;break}}K=null;V=A.length&&A[f].url;L.depth!==0&&V&&(K=A[f]);return new kkD(L,K,B)}; hD=function(){var A=g.rI,L=[],B=null;do{var f=A;if(rK(f)){var K=f.location.href;B=f.document&&f.document.referrer||null}else K=B,B=null;L.push(new bxv(K||""));try{A=f.parent}catch(V){A=null}}while(A&&f!==A);f=0;for(A=L.length-1;f<=A;++f)L[f].depth=A-f;f=g.rI;if(f.location&&f.location.ancestorOrigins&&f.location.ancestorOrigins.length===L.length-1)for(A=1;AL&&(L=B.length);return 3997-L-A.V.length-1}; lI=function(A,L){this.N=A;this.depth=L}; $VQ=function(){function A(R,Z){return R==null?Z:R} var L=hD(),B=Math.max(L.length-1,0),f=To1(L);L=f.N;var K=f.W,V=f.V,J=[];V&&J.push(new lI([V.url,V.N?2:0],A(V.depth,1)));K&&K!=V&&J.push(new lI([K.url,2],0));L.url&&L!=V&&J.push(new lI([L.url,0],A(L.depth,B)));f=g.mn(J,function(R,Z){return J.slice(0,J.length-Z)}); !L.url||(V||K)&&L!=V||(K=hFe(L.url))&&f.push([new lI([K,1],A(L.depth,B))]);f.push([]);return g.mn(f,function(R){return ixy(B,R)})}; ixy=function(A,L){g.Q9(L,function(K){return K.depth>=0}); var B=Cv(L,function(K,V){return Math.max(K,V.depth)},-1),f=oW7(B+2); f[0]=A;g.yB(L,function(K){return f[K.depth+1]=K.N}); return f}; Xk8=function(){var A=A===void 0?$VQ():A;return A.map(function(L){return TV(L)})}; iI=function(A){A.L54=!0;return A}; cOD=function(){var A=Ox8("IFRAME"),L={};g.yB(Eg8(),function(B){A.sandbox&&A.sandbox.supports&&A.sandbox.supports(B)&&(L[B]=!0)}); return L}; Ox8=function(A,L){L=L===void 0?document:L;return L.createElement(String(A).toLowerCase())}; MZS=function(A){var L=!1;L=L===void 0?!1:L;qo.google_image_requests||(qo.google_image_requests=[]);var B=Ox8("IMG",qo.document);L&&(B.attributionSrc="");B.src=A;qo.google_image_requests.push(B)}; $$=function(A){var L="Uf";if(A.Uf&&A.hasOwnProperty(L))return A.Uf;var B=new A;A.Uf=B;A.hasOwnProperty(L);return B}; X6=function(){this.W=new rOk;this.N=UA()?new v4:new Y9}; YcS=function(){Oz();var A=qo.document;return!!(A&&A.body&&A.body.getBoundingClientRect&&typeof qo.setInterval==="function"&&typeof qo.clearInterval==="function"&&typeof qo.setTimeout==="function"&&typeof qo.clearTimeout==="function")}; UV0=function(){Oz();return Xk8()}; Wi6=function(){}; Oz=function(){var A=$$(Wi6);if(!A.N){if(!qo)throw Error("Context has not been set and window is undefined.");A.N=$$(X6)}return A.N}; Ez=function(){throw Error("Invalid UTF8");}; vgD=function(A,L){L=String.fromCharCode.apply(null,L);return A==null?L:A+L}; eFE=function(A){var L=!1;L=L===void 0?!1:L;if(qcE){if(L&&(PsQ?!A.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(A)))throw Error("Found an unpaired surrogate");A=(xV1||(xV1=new TextEncoder)).encode(A)}else{for(var B=0,f=new Uint8Array(3*A.length),K=0;K>6|192;else{if(V>=55296&&V<=57343){if(V<=56319&&K=56320&&J<=57343){V=(V-55296)*1024+ J-56320+65536;f[B++]=V>>18|240;f[B++]=V>>12&63|128;f[B++]=V>>6&63|128;f[B++]=V&63|128;continue}else K--}if(L)throw Error("Found an unpaired surrogate");V=65533}f[B++]=V>>12|224;f[B++]=V>>6&63|128}f[B++]=V&63|128}}A=B===f.length?f:f.subarray(0,B)}return A}; cX=function(A){g.rI.setTimeout(function(){throw A;},0)}; ngk=function(A){return Array.prototype.map.call(A,function(L){L=L.toString(16);return L.length>1?L:"0"+L}).join("")}; zF1=function(A){for(var L=[],B=0;B>6|192:((K&64512)==55296&&f+1>18|240,L[B++]=K>>12&63|128):L[B++]=K>>12|224,L[B++]=K>>6&63|128),L[B++]=K&63|128)}return L}; g.Y$=function(A,L){L===void 0&&(L=0);uc0();L=awv[L];for(var B=Array(Math.floor(A.length/3)),f=L[64]||"",K=0,V=0;K>2];J=L[(J&3)<<4|R>>4];R=L[(R&15)<<2|Z>>6];Z=L[Z&63];B[V++]=""+N+J+R+Z}N=0;Z=f;switch(A.length-K){case 2:N=A[K+1],Z=L[(N&15)<<2]||f;case 1:A=A[K],B[V]=""+L[A>>2]+L[(A&3)<<4|N>>4]+Z+f}return B.join("")}; g.Uz=function(A,L,B){if(AF6&&!L)A=g.rI.btoa(A);else{for(var f=[],K=0,V=0;V255){var R=Error("go/unicode-to-byte-error");if(B)throw R;f[K++]=J&255;J>>=8}f[K++]=J}A=g.Y$(f,L)}return A}; ojD=function(A){var L=[];LCD(A,function(B){L.push(B)}); return L}; WX=function(A){var L=A.length,B=L*3/4;B%3?B=Math.floor(B):g.a8("=.",A[L-1])&&(B=g.a8("=.",A[L-2])?B-2:B-1);var f=new Uint8Array(B),K=0;LCD(A,function(V){f[K++]=V}); return K!==B?f.subarray(0,K):f}; LCD=function(A,L){function B(Z){for(;f>4);J!=64&&(L(V<<4&240|J>>2),R!=64&&L(J<<6&192|R))}}; uc0=function(){if(!vX){vX={};for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),L=["+/=","+/","-_=","-_.","-_"],B=0;B<5;B++){var f=A.concat(L[B].split(""));awv[B]=f;for(var K=0;K=L||(f[A]=B+1,A=Error(),lR0(A,"incident"),cX(A))}}; Ld=function(){return typeof BigInt==="function"}; or=function(A,L,B){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(B===void 0?0:B)&&Symbol.for&&A?Symbol.for(A):A!=null?Symbol(A):Symbol():L}; Kd=function(A,L){Bg||fd in A||FCC(A,DwE);A[fd]|=L}; VT=function(A,L){Bg||fd in A||FCC(A,DwE);A[fd]=L}; ST=function(A,L){return L===void 0?A.N!==Jp&&!!(2&(A.yf[fd]|0)):!!(2&L)&&A.N!==Jp}; dww=function(A,L){if(A!=null)if(typeof A==="string")A=A?new qa(A,PX):x$();else if(A.constructor!==qa)if(Zay&&A!=null&&A instanceof Uint8Array)A=A.length?new qa(new Uint8Array(A),PX):x$();else{if(!L)throw Error();A=void 0}return A}; Rr=function(A,L){if(typeof L!=="number"||L<0||L>=A.length)throw Error();}; Ii8=function(A,L,B){var f=L&128?0:-1,K=A.length,V;if(V=!!K)V=A[K-1],V=V!=null&&typeof V==="object"&&V.constructor===Object;var J=K+(V?-1:0);for(L=L&128?1:0;LL.length)return!1;if(A.lengthK)return!1;if(f>>0;pd=L;yT=(A-L)/4294967296>>>0}; Gy=function(A){if(A<0){jT(0-A);var L=g.m(g6(pd,yT));A=L.next().value;L=L.next().value;pd=A>>>0;yT=L>>>0}else jT(A)}; s6=function(A,L){var B=L*4294967296+(A>>>0);return Number.isSafeInteger(B)?B:r6(A,L)}; Hg=function(A,L){var B=L&2147483648;B&&(A=~A+1>>>0,L=~L>>>0,A==0&&(L=L+1>>>0));A=s6(A,L);return typeof A==="number"?B?-A:A:B?"-"+A:A}; bi=function(A,L){return Ld()?d6(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(L))<>>=0;A>>>=0;if(L<=2097151)var B=""+(4294967296*L+A);else Ld()?B=""+(BigInt(L)<>>24|L<<8)&16777215,L=L>>16&65535,A=(A&16777215)+B*6777216+L*6710656,B+=L*8147497,L*=2,A>=1E7&&(B+=A/1E7>>>0,A%=1E7),B>=1E7&&(L+=B/1E7>>>0,B%=1E7),B=L+jy8(B)+jy8(A));return B}; jy8=function(A){A=String(A);return"0000000".slice(A.length)+A}; hp=function(A,L){L&2147483648?Ld()?A=""+(BigInt(L|0)<>>0)):(L=g.m(g6(A,L)),A=L.next().value,L=L.next().value,A="-"+r6(A,L)):A=r6(A,L);return A}; tp=function(A){if(A.length<16)Gy(Number(A));else if(Ld())A=BigInt(A),pd=Number(A&BigInt(4294967295))>>>0,yT=Number(A>>BigInt(32)&BigInt(4294967295));else{var L=+(A[0]==="-");yT=pd=0;for(var B=A.length,f=0+L,K=(B-L)%6+L;K<=B;f=K,K+=6)f=Number(A.slice(f,K)),yT*=1E6,pd=pd*1E6+f,pd>=4294967296&&(yT+=Math.trunc(pd/4294967296),yT>>>=0,pd>>>=0);L&&(L=g.m(g6(pd,yT)),A=L.next().value,L=L.next().value,pd=A,yT=L)}}; g6=function(A,L){L=~L;A?A=~A+1:L+=1;return[A,L]}; k3=function(A){return Array.prototype.slice.call(A)}; Ty=function(A){if(A!=null&&typeof A!=="number")throw Error("Value of float/double field must be a number, found "+typeof A+": "+A);return A}; gjS=function(A){return A.displayName||A.name||"unknown type name"}; li=function(A){if(A!=null&&typeof A!=="boolean")throw Error("Expected boolean but got "+kW(A)+": "+A);return A}; QT=function(A){switch(typeof A){case "bigint":return!0;case "number":return mT(A);case "string":return G$e.test(A);default:return!1}}; rFw=function(A){if(typeof A!=="number")throw aR("int32");if(!mT(A))throw aR("int32");return A|0}; Cd=function(A){return A==null?A:rFw(A)}; ii=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return mT(A)?A|0:void 0}; $3=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return mT(A)?A>>>0:void 0}; hh8=function(A){var L=void 0;L!=null||(L=XL?1024:0);if(!QT(A))throw aR("int64");var B=typeof A;switch(L){case 512:switch(B){case "string":return O6(A);case "bigint":return String(Y3(64,A));default:return U6(A)}case 1024:switch(B){case "string":return syy(A);case "bigint":return d6(Y3(64,A));default:return HaL(A)}case 0:switch(B){case "string":return O6(A);case "bigint":return d6(Y3(64,A));default:return Wg(A)}default:return kj(L,"Unknown format requested type for int64")}}; vg=function(A){return A==null?A:hh8(A)}; bav=function(A){var L=A.length;if(A[0]==="-"?L<20||L===20&&A<="-9223372036854775808":L<19||L===19&&A<="9223372036854775807")return A;tp(A);return hp(pd,yT)}; Wg=function(A){QT(A);A=q4(A);Pg(A)||(Gy(A),A=Hg(pd,yT));return A}; U6=function(A){QT(A);A=q4(A);Pg(A)?A=String(A):(Gy(A),A=hp(pd,yT));return A}; O6=function(A){QT(A);var L=q4(Number(A));if(Pg(L))return String(L);L=A.indexOf(".");L!==-1&&(A=A.substring(0,L));return bav(A)}; syy=function(A){var L=q4(Number(A));if(Pg(L))return d6(L);L=A.indexOf(".");L!==-1&&(A=A.substring(0,L));return Ld()?d6(Y3(64,BigInt(A))):d6(bav(A))}; HaL=function(A){return Pg(A)?d6(Wg(A)):d6(U6(A))}; tS7=function(A){if(A==null)return A;if(typeof A==="bigint")return x3(A)?A=Number(A):(A=Y3(64,A),A=x3(A)?Number(A):String(A)),A;if(QT(A))return typeof A==="number"?Wg(A):O6(A)}; eT=function(A){var L=typeof A;if(A==null)return A;if(L==="bigint")return d6(Y3(64,A));if(QT(A))return L==="string"?syy(A):HaL(A)}; k$8=function(A){if(A==null)return A;var L=typeof A;if(L==="bigint")return String(Y3(64,A));if(QT(A)){if(L==="string")return O6(A);if(L==="number")return Wg(A)}}; li6=function(A){if(A==null)return A;var L=typeof A;if(L==="bigint")return String(Tt1(64,A));if(QT(A)){if(L==="string")return QT(A),L=q4(Number(A)),Pg(L)&&L>=0?A=String(L):(L=A.indexOf("."),L!==-1&&(A=A.substring(0,L)),A[0]==="-"?L=!1:(L=A.length,L=L<20?!0:L===20&&A<="18446744073709551615"),L||(tp(A),A=r6(pd,yT))),A;if(L==="number")return QT(A),A=q4(A),A>=0&&Pg(A)||(Gy(A),A=s6(pd,yT)),A}}; mwy=function(A){if(A==null||typeof A=="string"||A instanceof qa)return A}; QyE=function(A){if(typeof A!=="string")throw Error();return A}; nd=function(A){if(A!=null&&typeof A!=="string")throw Error();return A}; zy=function(A){return A==null||typeof A==="string"?A:void 0}; ui=function(A,L){if(!(A instanceof L))throw Error("Expected instanceof "+gjS(L)+" but got "+(A&&gjS(A.constructor)));return A}; COe=function(A,L,B){if(A!=null&&A[ar]===Ad)return A;if(Array.isArray(A)){var f=A[fd]|0;B=f|B&32|B&2;B!==f&&VT(A,B);return new L(A)}}; Lu=function(A){return A}; BG=function(A){var L=MX(og);return L?A[L]:void 0}; fu=function(){}; Ku=function(A,L){for(var B in A)!isNaN(B)&&L(A,+B,A[B])}; iay=function(A){var L=new fu;Ku(A,function(B,f,K){L[f]=k3(K)}); L.x8=A.x8;return L}; X5k=function(A,L){L<100||Ap($we,1)}; Jd=function(A,L,B,f){var K=f!==void 0;f=!!f;var V=MX(og),J;!K&&Bg&&V&&(J=A[V])&&Ku(J,X5k);V=[];var R=A.length;J=4294967295;var Z=!1,N=!!(L&64),F=N?L&128?0:-1:void 0;if(!(L&1)){var D=R&&A[R-1];D!=null&&typeof D==="object"&&D.constructor===Object?(R--,J=R):D=void 0;if(N&&!(L&128)&&!K){Z=!0;var I;J=((I=VP)!=null?I:Lu)(J-F,F,A,D,void 0)+F}}L=void 0;for(I=0;I=J){var w=I-F,r=void 0;((r=L)!=null?r:L={})[w]=d}else V[I]=d}if(D)for(var h in D)R=D[h],R!= null&&(R=B(R,f))!=null&&(I=+h,d=void 0,N&&!Number.isNaN(I)&&(d=I+F)0?void 0:A===0?YTE||(YTE=[0,void 0]):[-A,void 0];case "string":return[0,A];case "object":return A}}; ZZ=function(A,L){return WCS(A,L[0],L[1])}; N$=function(A,L,B){return WCS(A,L,B,2048)}; WCS=function(A,L,B,f){f=f===void 0?0:f;if(A==null){var K=32;B?(A=[B],K|=128):A=[];L&&(K=K&-16760833|(L&1023)<<14)}else{if(!Array.isArray(A))throw Error("narr");K=A[fd]|0;if(vjD&&1&K)throw Error("rfarr");2048&K&&!(2&K)&&qTv();if(K&256)throw Error("farr");if(K&64)return(K|f)!==K&&VT(A,K|f),A;if(B&&(K|=128,B!==A[0]))throw Error("mid");a:{B=A;K|=64;var V=B.length;if(V){var J=V-1,R=B[J];if(R!=null&&typeof R==="object"&&R.constructor===Object){L=K&128?0:-1;J-=L;if(J>=1024)throw Error("pvtlmt");for(var Z in R)V= +Z,V1024)throw Error("spvt");K=K&-16760833|(Z&1023)<<14}}}VT(A,K|64|f);return A}; qTv=function(){if(vjD)throw Error("carr");Ap(POw,5)}; xw7=function(A,L){if(typeof A!=="object")return A;if(Array.isArray(A)){var B=A[fd]|0;A.length===0&&B&1?A=void 0:B&2||(!L||4096&B||16&B?A=F3(A,B,!1,L&&!(B&16)):(Kd(A,34),B&4&&Object.freeze(A)));return A}if(A!=null&&A[ar]===Ad)return L=A.yf,B=L[fd]|0,ST(A,B)?A:DZ(A,L,B)?da(A,L):F3(L,B);if(A instanceof qa)return A}; da=function(A,L,B){A=new A.constructor(L);B&&(A.N=Jp);A.W=Jp;return A}; F3=function(A,L,B,f){f!=null||(f=!!(34&L));A=Jd(A,L,xw7,f);f=32;B&&(f|=2);L=L&16769217|f;VT(A,L);return A}; ehC=function(A){var L=A.yf,B=L[fd]|0;return ST(A,B)?DZ(A,L,B)?da(A,L,!0):new A.constructor(F3(L,B,!1)):A}; Ig=function(A){if(A.N!==Jp)return!1;var L=A.yf;L=F3(L,L[fd]|0);Kd(L,2048);A.yf=L;A.N=void 0;A.W=void 0;return!0}; wa=function(A){if(!Ig(A)&&ST(A,A.yf[fd]|0))throw Error();}; pu=function(A,L){L===void 0&&(L=A[fd]|0);L&32&&!(L&4096)&&VT(A,L|4096)}; DZ=function(A,L,B){return B&2?!0:B&32&&!(B&4096)?(VT(L,B|2),A.N=Jp,!0):!1}; j7=function(A,L,B,f,K){Object.isExtensible(A);L=yP(A.yf,L,B,K);if(L!==null||f&&A.W!==Jp)return L}; yP=function(A,L,B,f){if(L===-1)return null;var K=L+(B?0:-1),V=A.length-1;if(!(V<1+(B?0:-1))){if(K>=V){var J=A[V];if(J!=null&&typeof J==="object"&&J.constructor===Object){B=J[L];var R=!0}else if(K===V)B=J;else return}else B=A[K];if(f&&B!=null){f=f(B);if(f==null)return f;if(!Object.is(f,B))return R?J[L]=f:A[K]=f,f}return B}}; ra=function(A,L,B,f){wa(A);var K=A.yf;Gw(K,K[fd]|0,L,B,f);return A}; Gw=function(A,L,B,f,K){var V=B+(K?0:-1),J=A.length-1;if(J>=1+(K?0:-1)&&V>=J){var R=A[J];if(R!=null&&typeof R==="object"&&R.constructor===Object)return R[B]=f,L}if(V<=J)return A[V]=f,L;if(f!==void 0){var Z;J=((Z=L)!=null?Z:L=A[fd]|0)>>14&1023||536870912;B>=J?f!=null&&(V={},A[J+(K?0:-1)]=(V[B]=f,V)):A[V]=f}return L}; lq=function(A,L,B,f,K){var V=A.yf,J=V[fd]|0;f=ST(A,J)?1:f;K=!!K||f===3;f===2&&Ig(A)&&(V=A.yf,J=V[fd]|0);A=sG(V,L);var R=A===HG?7:A[fd]|0,Z=hd(R,J);var N=4&Z?!1:!0;if(N){4&Z&&(A=k3(A),R=0,Z=bq(Z,J),J=Gw(V,J,L,A));for(var F=0,D=0;F32)for(f|=(R&127)>>4,K=3;K<32&&R&128;K+=7)R=V[J++],f|=(R&127)<>>0,f>>>0);throw Error();}; j1=function(A,L){A.N=L;if(L>A.V)throw Error();}; GI=function(A){var L=A.W,B=A.N,f=L[B++],K=f&127;if(f&128&&(f=L[B++],K|=(f&127)<<7,f&128&&(f=L[B++],K|=(f&127)<<14,f&128&&(f=L[B++],K|=(f&127)<<21,f&128&&(f=L[B++],K|=f<<28,f&128&&L[B++]&128&&L[B++]&128&&L[B++]&128&&L[B++]&128&&L[B++]&128)))))throw Error();j1(A,B);return K}; ri=function(A){var L=A.W,B=A.N,f=L[B+0],K=L[B+1],V=L[B+2];L=L[B+3];j1(A,A.N+4);return(f<<0|K<<8|V<<16|L<<24)>>>0}; s0=function(A){var L=ri(A);A=ri(A);return s6(L,A)}; HS=function(A){var L=ri(A);A=ri(A);return d6(Ld()?BigInt.asUintN(64,(BigInt(A>>>0)<>>0)):r6(L,A))}; hs=function(A){var L=ri(A),B=ri(A);A=(B>>31)*2+1;var f=B>>>20&2047;L=4294967296*(B&1048575)+L;return f==2047?L?NaN:A*Infinity:f==0?A*4.9E-324*L:A*Math.pow(2,f-1075)*(L+4503599627370496)}; bW=function(A){for(var L=0,B=A.N,f=B+10,K=A.W;BA.V)throw Error();A.N=L;return B}; J8e=function(A,L){if(L==0)return x$();var B=Kk1(A,L);A.Gs&&A.D?B=A.W.subarray(B,B+L):(A=A.W,L=B+L,B=B===L?new Uint8Array(0):Vrv?A.slice(B,L):new Uint8Array(A.subarray(B,L)));return B.length==0?x$():new qa(B,PX)}; kE=function(A,L,B,f){if(ts.length){var K=ts.pop();K.init(A,L,B,f);A=K}else A=new yI(A,L,B,f);this.N=A;this.U=this.N.N;this.W=this.V=-1;SAS(this,f)}; SAS=function(A,L){L=L===void 0?{}:L;A.BH=L.BH===void 0?!1:L.BH}; RP1=function(A,L,B,f){if(TI.length){var K=TI.pop();SAS(K,f);K.N.init(A,L,B,f);return K}return new kE(A,L,B,f)}; ZG6=function(A){var L=A.N;if(L.N==L.V)return!1;A.U=A.N.N;var B=GI(A.N)>>>0;L=B>>>3;B&=7;if(!(B>=0&&B<=5))throw Error();if(L<1)throw Error();A.V=L;A.W=B;return!0}; lW=function(A){switch(A.W){case 0:A.W!=0?lW(A):bW(A.N);break;case 1:A=A.N;j1(A,A.N+8);break;case 2:if(A.W!=2)lW(A);else{var L=GI(A.N)>>>0;A=A.N;j1(A,A.N+L)}break;case 5:A=A.N;j1(A,A.N+4);break;case 3:L=A.V;do{if(!ZG6(A))throw Error();if(A.W==4){if(A.V!=L)throw Error();break}lW(A)}while(1);break;default:throw Error();}}; mV=function(A,L,B){var f=A.N.V,K=GI(A.N)>>>0;K=A.N.N+K;var V=K-f;V<=0&&(A.N.V=K,B(L,A,void 0,void 0,void 0),V=K-A.N.N);if(V)throw Error();A.N.N=K;A.N.V=f}; iW=function(A){var L=GI(A.N)>>>0;A=A.N;var B=Kk1(A,L);A=A.W;if(N_k){var f=A,K;(K=QI)||(K=QI=new TextDecoder("utf-8",{fatal:!0}));L=B+L;f=B===0&&L===f.length?f:f.subarray(B,L);try{var V=K.decode(f)}catch(N){if(CH===void 0){try{K.decode(new Uint8Array([128]))}catch(F){}try{K.decode(new Uint8Array([97])),CH=!0}catch(F){CH=!1}}!CH&&(QI=void 0);throw N;}}else{V=B;L=V+L;B=[];for(var J=null,R,Z;V=L?Ez():(Z=A[V++],R<194||(Z&192)!==128?(V--,Ez()):B.push((R&31)<<6|Z&63)): R<240?V>=L-1?Ez():(Z=A[V++],(Z&192)!==128||R===224&&Z<160||R===237&&Z>=160||((K=A[V++])&192)!==128?(V--,Ez()):B.push((R&15)<<12|(Z&63)<<6|K&63)):R<=244?V>=L-2?Ez():(Z=A[V++],(Z&192)!==128||(R<<28)+(Z-144)>>30!==0||((K=A[V++])&192)!==128||((f=A[V++])&192)!==128?(V--,Ez()):(R=(R&7)<<18|(Z&63)<<12|(K&63)<<6|f&63,R-=65536,B.push((R>>10&1023)+55296,(R&1023)+56320))):Ez(),B.length>=8192&&(J=vgD(J,B),B.length=0);V=vgD(J,B)}return V}; Fke=function(A){var L=GI(A.N)>>>0;return J8e(A.N,L)}; Do7=function(A,L,B){var f=GI(A.N)>>>0;for(f=A.N.N+f;A.N.N>>0;this.N=L>>>0}; w4y=function(A){if(!A)return Ir8||(Ir8=new Xs(0,0));if(!/^\d+$/.test(A))return null;tp(A);return new Xs(pd,yT)}; O0=function(A,L){this.W=A>>>0;this.N=L>>>0}; y8D=function(A){if(!A)return p41||(p41=new O0(0,0));if(!/^-?\d+$/.test(A))return null;tp(A);return new O0(pd,yT)}; E0=function(){this.N=[]}; cS=function(A,L,B){for(;B>0||L>127;)A.N.push(L&127|128),L=(L>>>7|B<<25)>>>0,B>>>=7;A.N.push(L)}; Mh=function(A,L){for(;L>127;)A.N.push(L&127|128),L>>>=7;A.N.push(L)}; jCk=function(A,L){if(L>=0)Mh(A,L);else{for(var B=0;B<9;B++)A.N.push(L&127|128),L>>=7;A.N.push(1)}}; YE=function(A,L){A.N.push(L>>>0&255);A.N.push(L>>>8&255);A.N.push(L>>>16&255);A.N.push(L>>>24&255)}; g91=function(){this.V=[];this.W=0;this.N=new E0}; U0=function(A,L){L.length!==0&&(A.V.push(L),A.W+=L.length)}; GO8=function(A,L){WS(A,L,2);L=A.N.end();U0(A,L);L.push(A.W);return L}; r8w=function(A,L){var B=L.pop();for(B=A.W+A.N.length()-B;B>127;)L.push(B&127|128),B>>>=7,A.W++;L.push(B);A.W++}; WS=function(A,L,B){Mh(A.N,L*8+B)}; sCk=function(A,L,B){if(B!=null){switch(typeof B){case "string":w4y(B)}WS(A,L,1);switch(typeof B){case "number":A=A.N;jT(B);YE(A,pd);YE(A,yT);break;case "bigint":B=BigInt.asUintN(64,B);B=new Xs(Number(B&BigInt(4294967295)),Number(B>>BigInt(32)));A=A.N;L=B.N;YE(A,B.W);YE(A,L);break;default:B=w4y(B),A=A.N,L=B.N,YE(A,B.W),YE(A,L)}}}; vS=function(A,L,B){WS(A,L,2);Mh(A.N,B.length);U0(A,A.N.end());U0(A,B)}; qh=function(){function A(){throw Error();} Object.setPrototypeOf(A,A.prototype);return A}; PS=function(A,L,B){this.yf=N$(A,L,B)}; HGw=function(A,L){if(L==null||L=="")return new A;L=JSON.parse(L);if(!Array.isArray(L))throw Error("dnarr");Kd(L,32);return new A(L)}; e1=function(A,L,B){this.hv=A;this.f1=L;A=MX(xE);this.N=!!A&&B===A||!1}; nH=function(A,L){var B=B===void 0?xE:B;return new e1(A,L,B)}; bG0=function(A,L,B,f,K){L=hPe(L,f);L!=null&&(B=GO8(A,B),K(L,A),r8w(A,B))}; aK=function(A,L,B,f){var K=f[A];if(K)return K;K={};K.JX=f;K.Ds=Uw8(f[0]);var V=f[1],J=1;V&&V.constructor===Object&&(K.extensions=V,V=f[++J],typeof V==="function"&&(K.SN=!0,zI!=null||(zI=V),uW!=null||(uW=f[J+1]),V=f[J+=2]));for(var R={};V&&Array.isArray(V)&&V.length&&typeof V[0]==="number"&&V[0]>0;){for(var Z=0;Z>BigInt(32)));cS(A.N,B.W,B.N);break;default:B=y8D(L),cS(A.N,B.W,B.N)}}}; dF=function(A,L,B){L=ii(L);L!=null&&L!=null&&(WS(A,B,0),jCk(A.N,L))}; c8v=function(A,L,B){L=L==null||typeof L==="boolean"?L:typeof L==="number"?!!L:void 0;L!=null&&(WS(A,B,0),A.N.N.push(L?1:0))}; MrC=function(A,L,B){L=zy(L);L!=null&&vS(A,B,eFE(L))}; YAS=function(A,L,B,f,K){L=hPe(L,f);L!=null&&(B=GO8(A,B),K(L,A),r8w(A,B))}; Wkw=function(A,L,B){if(B!==$E)throw Error();this.typeName=A;this.N=L;if(B!==$E)throw Error();UoC.set(A,this)}; qAw=function(){var A=IF;this.N=v97;this.isRepeated=0;this.W=WG;this.defaultValue=void 0;this.V=A.messageId!=null?Z7:void 0}; PAQ=function(A,L){return function(B,f){var K={qD:!0};f&&Object.assign(K,f);B=RP1(B,void 0,void 0,K);try{var V=new A,J=V.yf;BI(L)(J,B);var R=V}finally{B.free()}return R}}; xov=function(A){return function(){var L=new g91;$ow(this.yf,L,aK(Vv,KC,JW,A));U0(L,L.N.end());for(var B=new Uint8Array(L.W),f=L.V,K=f.length,V=0,J=0;J-1)return L.apply(null,g.x7(B));try{return A.N=A.V.N.now(),L.apply(null,g.x7(B))}finally{A.U+=A.V.N.now()-A.N,A.N=-1,A.W+=1}}}; n9D=function(A,L){this.W=A;this.V=L;this.N=new ePC(A)}; zPE=function(){this.N={}}; LnC=function(){this.V=void 0;this.W=this.T=0;this.D=-1;this.Zx=new Uc;Wk(this.Zx,"mv",uF7).N=!0;Wk(this.Zx,"omid",nx);Wk(this.Zx,"epoh",nx).N=!0;Wk(this.Zx,"epph",nx).N=!0;Wk(this.Zx,"umt",nx).N=!0;Wk(this.Zx,"phel",nx).N=!0;Wk(this.Zx,"phell",nx).N=!0;Wk(this.Zx,"oseid",arL).N=!0;var A=this.Zx;A.N.sloi||(A.N.sloi=new ck);A.N.sloi.N=!0;Wk(this.Zx,"mm",jX);Wk(this.Zx,"ovms",AD0).N=!0;Wk(this.Zx,"xdi",nx).N=!0;Wk(this.Zx,"amp",nx).N=!0;Wk(this.Zx,"prf",nx).N=!0;Wk(this.Zx,"gtx",nx).N=!0;Wk(this.Zx, "mvp_lv",nx).N=!0;Wk(this.Zx,"ssmol",nx).N=!0;Wk(this.Zx,"fmd",nx).N=!0;Wk(this.Zx,"gen204simple",nx);this.N=new n9D(Oz(),this.Zx);this.U=!1;this.flags=new zPE}; gF=function(){return $$(LnC)}; o$E=function(A,L,B,f){if(Math.random()<(f||A.N))try{if(B instanceof tD)var K=B;else K=new tD,bI(B,function(J,R){var Z=K,N=Z.U++;J=k$(R,J);Z.N.push(N);Z.W[N]=J}); var V=K.MQ(A.W,"pagead2.googlesyndication.com","/pagead/gen_204?id="+L+"&");V&&(Oz(),MZS(V))}catch(J){}}; BK0=function(A,L,B){B=B===void 0?{}:B;this.error=A;this.meta=B;this.context=L.context;this.msg=L.message||"";this.id=L.id||"jserror"}; f47=function(){var A=A===void 0?g.rI:A;return(A=A.performance)&&A.now&&A.timing?Math.floor(A.now()+A.timing.navigationStart):g.Ed()}; Knw=function(){var A=A===void 0?g.rI:A;return(A=A.performance)&&A.now?A.now():null}; VVk=function(A,L,B){this.label=A;this.type=L;this.value=B;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; rF=function(){var A=window;this.events=[];this.W=A||g.rI;var L=null;A&&(A.google_js_reporting_queue=A.google_js_reporting_queue||[],this.events=A.google_js_reporting_queue,L=A.google_measure_js_timing);this.N=Gr()||(L!=null?L:Math.random()<1)}; JDE=function(A){A&&HI&&Gr()&&(HI.clearMarks("goog_"+A.label+"_"+A.uniqueId+"_start"),HI.clearMarks("goog_"+A.label+"_"+A.uniqueId+"_end"))}; hW=function(A,L,B,f,K,V,J){var R="";A&&(R+=A+":");B&&(R+="//",L&&(R+=L+"@"),R+=B,f&&(R+=":"+f));K&&(R+=K);V&&(R+="?"+V);J&&(R+="#"+J);return R}; g.bp=function(A){return A.match(SzQ)}; Rl1=function(A){return A?decodeURI(A):A}; g.tW=function(A){return Rl1(g.bp(A)[3]||null)}; ks=function(A){return Rl1(g.bp(A)[5]||null)}; g.Zvk=function(A){A=g.bp(A);return hW(A[1],A[2],A[3],A[4])}; Tr=function(A){A=g.bp(A);return hW(null,null,null,null,A[5],A[6],A[7])}; NKL=function(A){var L=A.indexOf("#");return L<0?A:A.slice(0,L)}; lp=function(A,L){if(A){A=A.split("&");for(var B=0;B=0){var V=A[B].substring(0,f);K=A[B].substring(f+1)}else V=A[B];L(V,K?qw(K):"")}}}; m2=function(A,L){if(!L)return A;var B=A.indexOf("#");B<0&&(B=A.length);var f=A.indexOf("?");if(f<0||f>B){f=B;var K=""}else K=A.substring(f+1,B);A=[A.slice(0,f),K,A.slice(B)];B=A[1];A[1]=L?B?B+"&"+L:L:B;return A[0]+(A[1]?"?"+A[1]:"")+A[2]}; Qv=function(A,L,B){if(Array.isArray(L))for(var f=0;f=0&&LB)K=B;f+=L.length+1;return qw(A.slice(f,K!==-1?K:0))}; cI=function(A,L){for(var B=A.search(Ow),f=0,K,V=[];(K=XI(A,f,L,B))>=0;)V.push(A.substring(f,K)),f=Math.min(A.indexOf("&",K)+1||B,B);V.push(A.slice(f));return V.join("").replace(daw,"$1")}; I4v=function(A,L,B){return $s(cI(A,L),L,B)}; wXQ=function(){var A=Ml;this.N=Ys;this.gU="jserror";this.RP=!0;this.v6=null;this.W=this.rP;this.x6=A===void 0?null:A}; pXy=function(A,L,B){var f=Uw;return yv(gF().N.N,function(){try{if(f.x6&&f.x6.N){var K=f.x6.start(A.toString(),3);var V=L();f.x6.end(K)}else V=L()}catch(R){var J=f.RP;try{JDE(K),J=f.W(A,new WI(vI(R)),void 0,B)}catch(Z){f.rP(217,Z)}if(!J)throw R;}return V})()}; ql=function(A,L,B,f){return yv(gF().N.N,function(){var K=g.pf.apply(0,arguments);return pXy(A,function(){return L.apply(B,K)},f)})}; vI=function(A){var L=A.toString();A.name&&L.indexOf(A.name)==-1&&(L+=": "+A.name);A.message&&L.indexOf(A.message)==-1&&(L+=": "+A.message);if(A.stack)a:{A=A.stack;var B=L;try{A.indexOf(B)==-1&&(A=B+"\n"+A);for(var f;A!=f;)f=A,A=A.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");L=A.replace(/\n */g,"\n");break a}catch(K){L=B;break a}L=void 0}return L}; WI=function(A){BK0.call(this,Error(A),{message:A})}; yDw=function(){qo&&typeof qo.google_measure_js_timing!="undefined"&&(qo.google_measure_js_timing||Ml.disable())}; jR6=function(A){Uw.v6=function(L){g.yB(A,function(B){B(L)})}}; g$v=function(A,L){return pXy(A,L)}; PI=function(A,L){return ql(A,L)}; xs=function(A,L,B,f){Uw.rP(A,L,B,f)}; eX=function(){return Date.now()-GVC}; rD6=function(){var A=gF().V,L=nC>=0?eX()-nC:-1,B=zr?eX()-up:-1,f=aF>=0?eX()-aF:-1;if(A==947190542)return 100;if(A==79463069)return 200;A=[2E3,4E3];var K=[250,500,1E3];xs(637,Error(),.001);var V=L;B!=-1&&B1500&&f<4E3?500:J}; Ag=function(A,L,B){var f=new uA(0,0,0,0);this.time=A;this.volume=null;this.V=L;this.N=f;this.W=B}; L9=function(A,L,B,f,K,V,J,R){this.U=A;this.X=L;this.V=B;this.T=f;this.N=K;this.D=V;this.W=J;this.G=R}; HvS=function(A){var L=A!==A.top,B=A.top===s8y(A),f=-1,K=0;if(L&&B&&A.top.mraid){f=3;var V=A.top.mraid}else f=(V=A.mraid)?L?B?2:1:0:-1;V&&(V.IS_GMA_SDK||(K=2),KtL(sRE,function(J){return typeof V[J]==="function"})||(K=1)); return{t8:V,compatibility:K,A1M:f}}; hl1=function(){var A=window.document;return A&&typeof A.elementFromPoint==="function"}; bve=function(A,L,B){if(A&&L!==null&&L!=L.top){if(!L.top)return new g.Sr(-12245933,-12245933);L=L.top}try{return(B===void 0?0:B)?(new g.Sr(L.innerWidth,L.innerHeight)).round():VZ1(L||window).round()}catch(f){return new g.Sr(-12245933,-12245933)}}; ot=function(A,L,B){try{if(A){if(!L.top)return new uA(-12245933,-12245933,-12245933,-12245933);L=L.top}var f=bve(A,L,B),K=f.height,V=f.width;if(V===-12245933)return new uA(V,V,V,V);var J=pG(L.document);var R=Scw(J.N);var Z=R.x,N=R.y;return new uA(N,Z+V,N+K,Z)}catch(F){return new uA(-12245933,-12245933,-12245933,-12245933)}}; B2=function(A,L){L=Math.pow(10,L);return Math.floor(A*L)/L}; tVQ=function(A){return new uA(A.top,A.right,A.bottom,A.left)}; kVk=function(A){var L=A.top||0,B=A.left||0;return new uA(L,B+(A.width||0),L+(A.height||0),B)}; f9=function(A){return A!=null&&A>=0&&A<=1}; TKD=function(){var A=g.fa();return A?K9("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(L){return AF(A,L)})||AF(A,"OMI/")&&!AF(A,"XiaoMi/")?!0:AF(A,"Presto")&&AF(A,"Linux")&&!AF(A,"X11")&&!AF(A,"Android")&&!AF(A,"Mobi"):!1}; l4e=function(){this.V=!rK(qo.top);this.isMobileDevice=HX()||Hxy();var A=hD();this.domain=A.length>0&&A[A.length-1]!=null&&A[A.length-1].url!=null?g.tW(A[A.length-1].url)||"":"";this.N=new uA(0,0,0,0);this.U=new g.Sr(0,0);this.D=new g.Sr(0,0);this.X=new uA(0,0,0,0);this.frameOffset=new g.Vl(0,0);this.T=0;this.G=!1;this.W=!(!qo||!HvS(qo).t8);this.update(qo)}; maE=function(A,L){L&&L.screen&&(A.U=new g.Sr(L.screen.width,L.screen.height))}; QRQ=function(A,L){a:{var B=A.N?new g.Sr(aC(A.N),A.N.getHeight()):new g.Sr(0,0);L=L===void 0?qo:L;L!==null&&L!=L.top&&(L=L.top);var f=0,K=0;try{var V=L.document,J=V.body,R=V.documentElement;if(V.compatMode=="CSS1Compat"&&R.scrollHeight)f=R.scrollHeight!=B.height?R.scrollHeight:R.offsetHeight,K=R.scrollWidth!=B.width?R.scrollWidth:R.offsetWidth;else{var Z=R.scrollHeight,N=R.scrollWidth,F=R.offsetHeight,D=R.offsetWidth;R.clientHeight!=F&&(Z=J.scrollHeight,N=J.scrollWidth,F=J.offsetHeight,D=J.offsetWidth); Z>B.height?Z>F?(f=Z,K=N):(f=F,K=D):Z0||A.G)return!0;A=Oz().W.isVisible();var L=GV(Jg)===0;return A||L}; V6=function(){return $$(l4e)}; Rt=function(A){this.V=A;this.W=0;this.N=null}; Zx=function(A,L,B){this.V=A;this.Ys=B===void 0?"na":B;this.D=[];this.isInitialized=!1;this.U=new Ag(-1,!0,this);this.N=this;this.G=L;this.Wn=this.yj=!1;this.wT="uk";this.ZM=!1;this.T=!0}; Ni=function(A,L){g.zK(A.D,L)||(A.D.push(L),L.Cj(A.N),L.M2(A.U),L.cL()&&(A.yj=!0))}; CI6=function(A){A=A.N;A.Ri();A.ML();var L=V6();L.X=ot(!1,A.V,L.isMobileDevice);QRQ(V6(),A.V);A.U.N=A.Ju()}; ivS=function(A){A.yj=A.D.length?K9(A.D,function(L){return L.cL()}):!1}; $ay=function(A){var L=g.Kx(A.D);g.yB(L,function(B){B.M2(A.U)})}; F_=function(A){var L=g.Kx(A.D);g.yB(L,function(B){B.Cj(A.N)}); A.N!=A||$ay(A)}; Dx=function(A,L,B,f){this.element=A;this.N=new uA(0,0,0,0);this.V=null;this.T=new uA(0,0,0,0);this.W=L;this.Zx=B;this.ZM=f;this.Vj=!1;this.timestamp=-1;this.yj=new L9(L.U,this.element,this.N,new uA(0,0,0,0),0,0,eX(),0);this.D=void 0}; XXk=function(A,L){return A.D?new uA(Math.max(L.top+A.D.top,L.top),Math.min(L.left+A.D.right,L.right),Math.min(L.top+A.D.bottom,L.bottom),Math.max(L.left+A.D.left,L.left)):L.clone()}; It=function(A){this.D=!1;this.N=A;this.U=function(){}}; Ove=function(A,L,B){this.V=B===void 0?0:B;this.W=A;this.N=L==null?"":L}; E$Q=function(A){switch(Math.trunc(A.V)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; cDD=function(A,L){return A.VL.V?!1:A.WL.W?!1:typeof A.Ntypeof L.N?!1:A.N0?f[B]-f[B-1]:f[B]})}; k1=function(){this.W=new rH;this.Ys=this.S4=0;this.Cr=new GH;this.qp=this.X=-1;this.Ox=1E3;this.Nl=new rH([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.wT=this.Vj=-1}; TH=function(A,L){return n$Q(A.W,L===void 0?!0:L)}; lC=function(A,L,B,f){var K=K===void 0?!1:K;B=ql(f,B);gK(A,L,B,{capture:K})}; Q6=function(A,L){L=ml(L);return L===0?0:ml(A)/L}; ml=function(A){return Math.max(A.bottom-A.top,0)*Math.max(A.right-A.left,0)}; a4e=function(A,L){if(!A||!L)return!1;for(var B=0;A!==null&&B++<100;){if(A===L)return!0;try{if(A=A.parentElement||A){var f=w_(A),K=f&&bA(f),V=K&&K.frameElement;V&&(A=V)}}catch(J){break}}return!1}; Ape=function(A,L,B){if(!A||!L)return!1;L=Lv(A.clone(),-L.left,-L.top);A=(L.left+L.right)/2;L=(L.top+L.bottom)/2;rK(window.top)&&window.top&&window.top.document&&(window=window.top);if(!hl1())return!1;A=window.document.elementFromPoint(A,L);if(!A)return!1;L=(L=(L=w_(B))&&L.defaultView&&L.defaultView.frameElement)&&a4e(L,A);var f=A===B;A=!f&&A&&c4(A,function(K){return K===B}); return!(L||f||A)}; LT8=function(A,L,B,f){return V6().V?!1:aC(A)<=0||A.getHeight()<=0?!0:B&&f?g$v(208,function(){return Ape(A,L,B)}):!1}; C9=function(A,L,B){g.Y.call(this);this.position=o38.clone();this.fm=this.fU();this.XM=-2;this.timeCreated=Date.now();this.ZP=-1;this.gN=L;this.Sc=null;this.Ap=!1;this.N9=null;this.opacity=-1;this.requestSource=B;this.bVp=!1;this.nR=function(){}; this.uL=function(){}; this.q4=new No0;this.q4.G$=A;this.q4.N=A;this.g6=!1;this.v$={pR:null,uX:null};this.hJ=!0;this.VR=null;this.OV=this.aM4=!1;gF().T++;this.Ic=this.uI();this.V6=-1;this.rX=null;this.hasCompleted=this.eF4=!1;this.Zx=new Uc;DX7(this.Zx);B6k(this);this.requestSource==1?vk(this.Zx,"od",1):vk(this.Zx,"od",0)}; B6k=function(A){A=A.q4.G$;var L;if(L=A&&A.getAttribute)L=/-[a-z]/.test("googleAvInapp")?!1:f7L&&A.dataset?"googleAvInapp"in A.dataset:A.hasAttribute?A.hasAttribute("data-"+M5C()):!!A.getAttribute("data-"+M5C());L&&(V6().W=!0)}; iC=function(A,L){L!=A.OV&&(A.OV=L,A=V6(),L?A.T++:A.T>0&&A.T--)}; KTC=function(A,L){if(A.rX){if(L.getName()===A.rX.getName())return;A.rX.dispose();A.rX=null}L=L.create(A.q4.N,A.Zx,A.cL());if(L=L!=null&&L.observe()?L:null)A.rX=L}; VT0=function(A,L,B){if(!A.Sc||A.gN==-1||L.W===-1||A.Sc.W===-1)return 0;A=L.W-A.Sc.W;return A>B?0:A}; JpE=function(A,L,B){if(A.rX){A.rX.xr();var f=A.rX.yj,K=f.U,V=K.N;if(f.T!=null){var J=f.V;A.N9=new g.Vl(J.left-V.left,J.top-V.top)}V=A.e3()?Math.max(f.N,f.D):f.N;J={};K.volume!==null&&(J.volume=K.volume);K=A.kF(f);A.Sc=f;A.zL(V,L,B,!1,J,K,f.G)}}; S6E=function(A){if(A.Ap&&A.VR){var L=qV(A.Zx,"od")==1,B=V6().N,f=A.VR,K=A.rX?A.rX.getName():"ns",V=A.N9,J=new g.Sr(aC(B),B.getHeight());B=A.e3();A={KDM:K,N9:V,xVF:J,e3:B,Yb:A.Ic.Yb,hI1:L};if(L=f.W){L.xr();K=L.yj;V=K.U.N;var R=J=null;K.T!=null&&V&&(J=K.V,J=new g.Vl(J.left-V.left,J.top-V.top),R=new g.Sr(V.right-V.left,V.bottom-V.top));K=B?Math.max(K.N,K.D):K.N;B={KDM:L.getName(),N9:J,xVF:R,e3:B,hI1:!1,Yb:K}}else B=null;B&&PI0(f,A,B)}}; R38=function(A,L,B){L&&(A.nR=L);B&&(A.uL=B)}; g.$1=function(){}; g.X_=function(A){return{value:A,done:!1}}; Zdy=function(){this.U=this.N=this.V=this.W=this.D=0}; N6D=function(A){var L={};var B=g.Ed()-A.D;L=(L.ptlt=B,L);(B=A.W)&&(L.pnk=B);(B=A.V)&&(L.pnc=B);(B=A.U)&&(L.pnmm=B);(A=A.N)&&(L.pns=A);return L}; FTw=function(){go.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Ox=function(A){return f9(A.volume)&&A.volume>0}; Ex=function(A,L,B,f){B=B===void 0?!0:B;f=f===void 0?function(){return!0}:f; return function(K){var V=K[A];if(Array.isArray(V)&&f(K))return D41(V,L,B)}}; c2=function(A,L){return function(B){return L(B)?B[A]:void 0}}; d4k=function(A){return function(L){for(var B=0;B0?V[K-1]+1:0,f+1).reduce(function(J,R){return J+R},0)})}; I77=function(){this.W=this.N=""}; wgQ=function(){}; Y1=function(A,L){var B={};if(A!==void 0)if(L!=null)for(var f in L){var K=L[f];f in Object.prototype||K!=null&&(B[f]=typeof K==="function"?K(A):A[K])}else g.Xc(B,A);return y6(p9(new wH,B))}; pg0=function(){var A={};this.W=(A.vs=[1,0],A.vw=[0,1],A.am=[2,2],A.a=[4,4],A.f=[8,8],A.bm=[16,16],A.b=[32,32],A.avw=[0,64],A.avs=[64,0],A.pv=[256,256],A.gdr=[0,512],A.p=[0,1024],A.r=[0,2048],A.m=[0,4096],A.um=[0,8192],A.ef=[0,16384],A.s=[0,32768],A.pmx=[0,16777216],A.mut=[33554432,33554432],A.umutb=[67108864,67108864],A.tvoff=[134217728,134217728],A);this.N={};for(var L in this.W)this.W[L][1]>0&&(this.N[L]=0);this.V=0}; Ux=function(A,L){var B=A.W[L],f=B[1];A.V+=B[0];f>0&&A.N[L]==0&&(A.N[L]=1)}; yp8=function(A){var L=g.bs(A.W),B=0,f;for(f in A.N)g.zK(L,f)&&A.N[f]==1&&(B+=A.W[f][1],A.N[f]=2);return B}; jr7=function(A){var L=0,B;for(B in A.N){var f=A.N[B];if(f==1||f==2)L+=A.W[B][1]}return L}; W2=function(){this.N=this.W=0}; v2=function(){k1.call(this);this.V=new GH;this.Ex=this.yj=this.ZM=0;this.G=-1;this.ql=new GH;this.D=new GH;this.N=new rH;this.T=this.U=-1;this.Wn=new GH;this.Ox=2E3;this.JF=new W2;this.cn=new W2;this.sx=new W2}; qi=function(A,L,B){var f=A.Ex;zr||B||A.G==-1||(f+=L-A.G);return f}; g3E=function(){this.V=!1}; P2=function(A,L){this.V=!1;this.U=A;this.yj=L;this.D=0}; x1=function(A,L){P2.call(this,A,L);this.X=[]}; Gyw=function(){}; eq=function(){}; n9=function(A,L,B,f){Dx.call(this,A,L,B,f)}; zH=function(A,L,B){Dx.call(this,null,A,L,B);this.G=A.isActive();this.X=0}; uC=function(A){return[A.top,A.left,A.bottom,A.right]}; at=function(A,L,B,f,K,V){V=V===void 0?new eq:V;C9.call(this,L,B,f);this.Lg=K;this.oJ=0;this.wB={};this.s6=new pg0;this.Ng={};this.Ve="";this.sx=null;this.Uv=!1;this.N=[];this.Zf=V.W();this.T=V.V();this.U=null;this.V=-1;this.Ys=this.yj=void 0;this.qp=this.Wn=0;this.wT=-1;this.Ox=this.cn=!1;this.ZM=this.G=this.W=this.Oo=this.mH=0;new rH;this.JF=this.Ex=0;this.Cr=-1;this.Rn=0;this.X=g.x9;this.Vj=[this.fU()];this.zV=2;this.Ik={};this.Ik.pause="p";this.Ik.resume="r";this.Ik.skip="s";this.Ik.mute="m";this.Ik.unmute= "um";this.Ik.exitfullscreen="ef";this.D=null;this.Nl=this.ql=!1;this.jI=Math.floor(Date.now()/1E3-1704067200);this.S4=0}; A5=function(A){A.hasCompleted=!0;A.Rn!=0&&(A.Rn=3)}; Lt=function(A){return A===void 0?A:Number(A)?B2(A,3):0}; o3=function(A,L){return A.Vj[L!=null&&LMath.max(1E4,A.V/3)?0:L);var B=A.X(A)||{};B=B.currentTime!==void 0?B.currentTime:A.Wn;var f=B-A.Wn,K=0;f>=0?(A.qp+=L,A.JF+=Math.max(L-f,0),K=Math.min(f,A.qp)):A.Ex+=Math.abs(f);f!=0&&(A.qp=0);A.Cr==-1&&f>0&&(A.Cr=aF>=0?eX()-aF:-1);A.Wn=B;return K}; HdL=function(A,L){K9(A.T,function(B){return B.U==L.U})||A.T.push(L)}; h3e=function(A){var L=hg(A.n9().N,1);return Br(A,L)}; Br=function(A,L,B){return L>=15E3?!0:A.cn?(B===void 0?0:B)?!0:A.V>0?L>=A.V/2:A.wT>0?L>=A.wT:!1:!1}; bde=function(A){var L=B2(A.Ic.Yb,2),B=A.s6.V,f=A.Ic,K=o3(A),V=Lt(K.U),J=Lt(K.T),R=Lt(f.volume),Z=B2(K.X,2),N=B2(K.qp,2),F=B2(f.Yb,2),D=B2(K.Vj,2),I=B2(K.wT,2);f=B2(f.s7,2);var d=A.Gf().clone().round();A=A.rX&&A.rX.V?(A.rX?A.rX.V:null).clone().round():null;K=TH(K,!1);return{scj:L,h7:B,xG:V,nm:J,HN:R,uy:Z,zO:N,Yb:F,Q3:D,EB:I,s7:f,position:d,RO:A,aZ:K}}; kyE=function(A,L){tTD(A.N,L,function(){return{scj:0,h7:void 0,xG:-1,nm:-1,HN:-1,uy:-1,zO:-1,Yb:-1,Q3:-1,EB:-1,s7:-1,position:void 0,RO:void 0,aZ:[]}}); A.N[L]=bde(A)}; tTD=function(A,L,B){for(var f=A.length;f0?1:0;D.atos= sx(N.N);D.ssb=sx(N.Nl,!1);D.amtos=n$Q(N.N,!1);D.uac=A.mH;D.vpt=N.V.N;F=="nio"&&(D.nio=1,D.avms="nio");D.gmm="4";D.gdr=Br(A,N.V.N,!0)?1:0;D.efpf=A.zV;if(F=="gsv"||F=="nis")F=A.rX,F.X>0&&(D.nnut=F.X);D.tcm=rpw(A);D.nmt=A.Ex;D.bt=A.JF;D.pst=A.Cr;D.vpaid=A.yj;D.dur=A.V;D.vmtime=A.Wn;D.is=A.s6.V;A.N.length>=1&&(D.i0=A.N[0].h7,D.a0=[A.N[0].HN],D.c0=[A.N[0].Yb],D.ss0=[A.N[0].s7],F=A.N[0].position,V=A.N[0].RO,D.p0=F?uC(F):void 0,F&&V&&!AD(V,F)&&(D.cp0=uC(V)));A.N.length>=2&&(D.i1=A.N[1].h7,D.a1=VJ(A.N[1].xG, A.N[1].HN,A.N[1].nm),D.c1=VJ(A.N[1].uy,A.N[1].Yb,A.N[1].zO),D.ss1=VJ(A.N[1].Q3,A.N[1].s7,A.N[1].EB),F=A.N[1].position,V=A.N[1].RO,D.p1=F?uC(F):void 0,F&&V&&!AD(V,F)&&(D.cp1=uC(V)),D.mtos1=A.N[1].aZ);A.N.length>=3&&(D.i2=A.N[2].h7,D.a2=VJ(A.N[2].xG,A.N[2].HN,A.N[2].nm),D.c2=VJ(A.N[2].uy,A.N[2].Yb,A.N[2].zO),D.ss2=VJ(A.N[2].Q3,A.N[2].s7,A.N[2].EB),F=A.N[2].position,V=A.N[2].RO,D.p2=F?uC(F):void 0,F&&V&&!AD(V,F)&&(D.cp2=uC(V)),D.mtos2=A.N[2].aZ);A.N.length>=4&&(D.i3=A.N[3].h7,D.a3=VJ(A.N[3].xG,A.N[3].HN, A.N[3].nm),D.c3=VJ(A.N[3].uy,A.N[3].Yb,A.N[3].zO),D.ss3=VJ(A.N[3].Q3,A.N[3].s7,A.N[3].EB),F=A.N[3].position,V=A.N[3].RO,D.p3=F?uC(F):void 0,F&&V&&!AD(V,F)&&(D.cp3=uC(V)),D.mtos3=A.N[3].aZ);D.cs=jr7(A.s6);L&&(D.ic=yp8(A.s6),D.dvpt=N.V.W,D.dvs=tg(N.W,.5),D.dfvs=tg(N.W,1),D.davs=tg(N.N,.5),D.dafvs=tg(N.N,1),B&&(N.V.W=0,zly(N.W),zly(N.N)),A.Ft()&&(D.dtos=N.ZM,D.dav=N.yj,D.dtoss=A.oJ+1,B&&(N.ZM=0,N.yj=0,A.oJ++)),D.dat=N.D.W,D.dft=N.Wn.W,B&&(N.D.W=0,N.Wn.W=0));D.ps=[R.D.width,R.D.height];D.bs=[aC(R.N), R.N.getHeight()];D.scs=[R.U.width,R.U.height];D.dom=R.domain;A.Oo&&(D.vds=A.Oo);if(A.T.length>0||A.Zf)L=g.Kx(A.T),A.Zf&&L.push(A.Zf),D.pings=g.mn(L,function(I){return I.toString()}); L=g.mn(g.Mi(A.T,function(I){return I.T()}),function(I){return I.getId()}); ukk(L);D.ces=L;A.W&&(D.vmer=A.W);A.G&&(D.vmmk=A.G);A.ZM&&(D.vmiec=A.ZM);D.avms=A.rX?A.rX.getName():"ns";A.rX&&g.Xc(D,A.rX.q2());f?(D.c=B2(A.Ic.Yb,2),D.ss=B2(A.Ic.s7,2)):D.tth=eX()-Qrk;D.mc=B2(N.qp,2);D.nc=B2(N.X,2);D.mv=Lt(N.T);D.nv=Lt(N.U);D.lte=B2(A.XM,2);f=o3(A,K);TH(N);D.qmtos=TH(f);D.qnc=B2(f.X,2);D.qmv=Lt(f.T);D.qnv=Lt(f.U);D.qas=f.U>0?1:0;D.qi=A.Ve;D.avms||(D.avms="geo");D.psm=N.JF.N;D.psv=N.JF.getValue();D.psfv=N.cn.getValue();D.psa=N.sx.getValue();Z=NIe(Z.Zx);Z.length&&(D.veid=Z);A.D&&g.Xc(D, N6D(A.D));D.avas=A.J5();D.vs=A.X8();D.co=Ci8(A);D.tm=N.S4;D.tu=N.Ys;return D}; T6S=function(A,L){if(g.zK(idw,L))return!0;var B=A.wB[L];return B!==void 0?(A.wB[L]=!0,!B):!1}; Ci8=function(A){var L=A.S4.toString(10).padStart(2,"0");L=""+A.jI+L;A.S4<99&&A.S4++;return L}; Xgk=function(){this.N={};var A=bA();J5(this,A,document);var L=$4C();try{if("1"==L){for(var B=A.parent;B!=A.top;B=B.parent)J5(this,B,B.document);J5(this,A.top,A.top.document)}}catch(f){}}; $4C=function(){var A=document.documentElement;try{if(!rK(bA().top))return"2";var L=[],B=bA(A.ownerDocument);for(A=B;A!=B.top;A=A.parent)if(A.frameElement)L.push(A.frameElement);else break;return L&&L.length!=0?"1":"0"}catch(f){return"2"}}; J5=function(A,L,B){lC(B,"mousedown",function(){return OdS(A)},301); lC(L,"scroll",function(){return E3w(A)},302); lC(B,"touchmove",function(){return cpw(A)},303); lC(B,"mousemove",function(){return MTL(A)},304); lC(B,"keydown",function(){return Y67(A)},305)}; OdS=function(A){g.H6(A.N,function(L){L.V>1E5||++L.V})}; E3w=function(A){g.H6(A.N,function(L){L.N>1E5||++L.N})}; cpw=function(A){g.H6(A.N,function(L){L.N>1E5||++L.N})}; Y67=function(A){g.H6(A.N,function(L){L.W>1E5||++L.W})}; MTL=function(A){g.H6(A.N,function(L){L.U>1E5||++L.U})}; U4L=function(){this.N=[];this.W=[]}; SO=function(A,L){return g.Pw(A.N,function(B){return B.Ve==L})}; WTk=function(A,L){return L?g.Pw(A.N,function(B){return B.q4.G$==L}):null}; v31=function(A,L){return g.Pw(A.W,function(B){return B.Mo()==2&&B.Ve==L})}; Zk=function(){var A=R3;return A.N.length==0?A.W:A.W.length==0?A.N:g.Bk(A.W,A.N)}; q6L=function(A,L){A=L.Mo()==1?A.N:A.W;var B=qX(A,function(f){return f==L}); return B!=-1?(A.splice(B,1),L.rX&&L.rX.unobserve(),L.dispose(),!0):!1}; PiS=function(A){var L=R3;if(q6L(L,A)){switch(A.Mo()){case 0:var B=function(){return null}; case 2:B=function(){return v31(L,A.Ve)}; break;case 1:B=function(){return SO(L,A.Ve)}}for(var f=B();f;f=B())q6L(L,f)}}; x4e=function(A){var L=R3;A=g.Mi(A,function(B){return!WTk(L,B.q4.G$)}); L.N.push.apply(L.N,g.x7(A))}; e3y=function(A){var L=[];g.yB(A,function(B){K9(R3.N,function(f){return f.q4.G$===B.q4.G$&&f.Ve===B.Ve})||(R3.N.push(B),L.push(B))})}; Nn=function(){this.N=this.W=null}; n37=function(A,L){function B(f,K){L(f,K)} if(A.W==null)return!1;A.N=g.Pw(A.W,function(f){return f!=null&&f.SW()}); A.N&&(A.N.init(B)?CI6(A.N.N):L(A.N.N.TX(),A.N));return A.N!=null}; Fx=function(A){A=z3w(A);It.call(this,A.length?A[A.length-1]:new Zx(qo,0));this.V=A;this.W=null}; z3w=function(A){if(!A.length)return[];A=(0,g.Mi)(A,function(B){return B!=null&&B.j0()}); for(var L=1;LB.time?L:B},A[0])}; wV=function(A){A=A===void 0?qo:A;It.call(this,new Zx(A,2))}; pt=function(){var A=Lq0();Zx.call(this,qo.top,A,"geo")}; Lq0=function(){gF();var A=V6();return A.V||A.W?0:2}; obL=function(){}; yJ=function(){this.done=!1;this.N={yp:0,LB:0,PeF:0,Mf:0,hE:-1,K4:0,ao:0,Ga:0,vgx:0};this.D=null;this.T=!1;this.V=null;this.X=0;this.W=new Rt(this)}; gV=function(){var A=jO;A.T||(A.T=!0,BaC(A,function(){return A.U.apply(A,g.x7(g.pf.apply(0,arguments)))}),A.U())}; fZ8=function(){$$(obL);var A=$$(Nn);A.N!=null&&A.N.N?CI6(A.N.N):V6().update(qo)}; Gz=function(A,L,B){if(!A.done&&(A.W.cancel(),L.length!=0)){A.V=null;try{fZ8();var f=eX();gF().D=f;if($$(Nn).N!=null)for(var K=0;K=0?eX()-nC:-1,R=eX();K.N.hE==-1&&(J=R);var Z=V6(),N=gF(),F=Pk(N.Zx),D=Zk();try{if(D.length>0){var I=Z.N;I&&(F.bs=[aC(I),I.getHeight()]);var d=Z.D;d&&(F.ps=[d.width,d.height]);qo.screen&&(F.scs=[qo.screen.width,qo.screen.height])}else F.url=encodeURIComponent(qo.location.href.substring(0,512)),V.referrer&&(F.referrer=encodeURIComponent(V.referrer.substring(0,512))); F.tt=J;F.pt=nC;F.bin=N.W;qo.google_osd_load_pub_page_exp!==void 0&&(F.olpp=qo.google_osd_load_pub_page_exp);F.deb=[1,K.N.yp,K.N.LB,K.N.Mf,K.N.hE,0,K.W.W,K.N.K4,K.N.ao,K.N.Ga,K.N.vgx,-1].join(";");F.tvt=V7v(K,R);Z.W&&(F.inapp=1);if(qo!==null&&qo!=qo.top){D.length>0&&(F.iframe_loc=encodeURIComponent(qo.location.href.substring(0,512)));var w=Z.X;F.is=[aC(w),w.getHeight()]}}catch(r){F.error=1}jO.V=F}I=g.is(jO.V);d=gF().N;qV(d.V,"prf")==1?(w=new pC,K=d.N,V=0,K.N>-1&&(V=K.V.N.now()-K.N),w=Cu(w,1,Ty(K.U+ V),0),K=d.N,w=Cu(w,5,Cd(K.N>-1?K.W+1:K.W),0),w=Cu(w,2,vg(d.W.N.V()),"0"),w=Cu(w,3,vg(d.W.N.W()),"0"),d=Cu(w,4,vg(d.W.N.N()),"0"),w={},d=(w.pf=g.Y$(d.V()),w)):d={};g.Xc(I,d);g.Xc(L,f,B,I,A())}])}; RKD=function(){var A=SGS||qo;if(!A)return"";var L=[];if(!A.location||!A.location.href)return"";L.push("url="+encodeURIComponent(A.location.href.substring(0,512)));A.document&&A.document.referrer&&L.push("referrer="+encodeURIComponent(A.document.referrer.substring(0,512)));return L.join("&")}; rV=function(){var A="youtube.player.web_20251202_20_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20251202_20_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20251202_20_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20251202_20_RC00".match(/_(\d{8})_\d+_RC\d+$/),L;if(((L=A)==null?void 0:L.length)==2)return A[1];A="youtube.player.web_20251202_20_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var B;return((B=A)==null?void 0:B.length)==3?"20"+A[1]+A[2]:null}; Zuw=function(){return"av.default_js".includes("ima_html5_sdk")?{yz:"ima",HL:null}:"av.default_js".includes("ima_native_sdk")?{yz:"nima",HL:null}:"av.default_js".includes("admob-native-video-javascript")?{yz:"an",HL:null}:"youtube.player.web_20251202_20_RC00".includes("cast_js_sdk")?{yz:"cast",HL:rV()}:"youtube.player.web_20251202_20_RC00".includes("youtube.player.web")?{yz:"yw",HL:rV()}:"youtube.player.web_20251202_20_RC00".includes("outstream_web_client")?{yz:"out",HL:rV()}:"youtube.player.web_20251202_20_RC00".includes("drx_rewarded_web")? {yz:"r",HL:rV()}:"youtube.player.web_20251202_20_RC00".includes("gam_native_web_video")?{yz:"n",HL:rV()}:"youtube.player.web_20251202_20_RC00".includes("admob_interstitial_video")?{yz:"int",HL:rV()}:{yz:"j",HL:null}}; h5=function(A,L){var B={sv:"968"};s3!==null&&(B.v=s3);B.cb=Na8;B.nas=R3.N.length;B.msg=A;L!==void 0&&(A=FqQ(L))&&(B.e=Hr[A]);return B}; bH=function(A){return zk(A,"custom_metric_viewable")}; FqQ=function(A){var L=bH(A)?"custom_metric_viewable":A.toLowerCase();return ls(ft,function(B){return B==L})}; D$y=function(){this.N=void 0;this.W=!1;this.V=0;this.U=-1;this.D="tos"}; wGS=function(A){try{var L=A.split(",");return L.length>g.bs(d$v).length?null:Cv(L,function(B,f){f=f.toLowerCase().split("=");if(f.length!=2||IZ8[f[0]]===void 0||!IZ8[f[0]](f[1]))throw Error("Entry ("+f[0]+", "+f[1]+") is invalid.");B[f[0]]=f[1];return B},{})}catch(B){return null}}; pGS=function(A,L){if(A.N==void 0)return 0;switch(A.D){case "mtos":return A.W?bC(L.N,A.N):bC(L.W,A.N);case "tos":return A.W?hg(L.N,A.N):hg(L.W,A.N)}return 0}; t5=function(A,L,B,f){P2.call(this,L,f);this.X=A;this.G=B}; ke=function(){}; Tz=function(A){P2.call(this,"fully_viewable_audible_half_duration_impression",A)}; $e=function(A){this.N=A}; Xx=function(A,L){P2.call(this,A,L)}; O3=function(A){x1.call(this,"measurable_impression",A)}; E3=function(){$e.apply(this,arguments)}; cr=function(A,L,B){zH.call(this,A,L,B)}; Mn=function(A){A=A===void 0?qo:A;It.call(this,new Zx(A,2))}; Ye=function(A,L,B){zH.call(this,A,L,B)}; U3=function(A){A=A===void 0?qo:A;It.call(this,new Zx(A,2))}; Wr=function(){Zx.call(this,qo,2,"mraid");this.JF=0;this.qp=this.Vj=!1;this.X=null;this.W=HvS(this.V);this.U.N=new uA(0,0,0,0);this.S4=!1}; vr=function(A,L,B){A.nC("addEventListener",L,B)}; GwE=function(A){gF().U=!!A.nC("isViewable");vr(A,"viewableChange",yd8);A.nC("getState")==="loading"?vr(A,"ready",jgk):gbE(A)}; gbE=function(A){typeof A.W.t8.AFMA_LIDAR==="string"?(A.Vj=!0,rdy(A)):(A.W.compatibility=3,A.X="nc",A.fail("w"))}; rdy=function(A){A.qp=!1;var L=qV(gF().Zx,"rmmt")==1,B=!!A.nC("isViewable");(L?!B:1)&&Oz().setTimeout(PI(524,function(){A.qp||(sgD(A),xs(540,Error()),A.X="mt",A.fail("w"))}),500); Hu8(A);vr(A,A.W.t8.AFMA_LIDAR,hKy)}; Hu8=function(A){var L=qV(gF().Zx,"sneio")==1,B=A.W.t8.AFMA_LIDAR_EXP_1!==void 0,f=A.W.t8.AFMA_LIDAR_EXP_2!==void 0;(L=L&&f)&&(A.W.t8.AFMA_LIDAR_EXP_2=!0);B&&(A.W.t8.AFMA_LIDAR_EXP_1=!L)}; sgD=function(A){A.nC("removeEventListener",A.W.t8.AFMA_LIDAR,hKy);A.Vj=!1}; bue=function(A,L){if(A.nC("getState")==="loading")return new g.Sr(-1,-1);L=A.nC(L);if(!L)return new g.Sr(-1,-1);A=parseInt(L.width,10);L=parseInt(L.height,10);return isNaN(A)||isNaN(L)?new g.Sr(-1,-1):new g.Sr(A,L)}; jgk=function(){try{var A=$$(Wr);A.nC("removeEventListener","ready",jgk);gbE(A)}catch(L){xs(541,L)}}; hKy=function(A,L){try{var B=$$(Wr);B.qp=!0;var f=A?new uA(A.y,A.x+A.width,A.y+A.height,A.x):new uA(0,0,0,0);var K=eX(),V=Sq();var J=new Ag(K,V,B);J.N=f;J.volume=L;B.M2(J)}catch(R){xs(542,R)}}; yd8=function(A){var L=gF(),B=$$(Wr);A&&!L.U&&(L.U=!0,B.S4=!0,B.X&&B.fail("w",!0))}; qn=function(){this.isInitialized=!1;this.N=this.W=null;var A={};this.X=(A.start=this.TTT,A.firstquartile=this.DpL,A.midpoint=this.RFF,A.thirdquartile=this.jrs,A.complete=this.Upn,A.error=this.wns,A.pause=this.Pw,A.resume=this.tJ,A.skip=this.JFn,A.viewable_impression=this.R$,A.mute=this.G8,A.unmute=this.G8,A.fullscreen=this.M44,A.exitfullscreen=this.Zr4,A.fully_viewable_audible_half_duration_impression=this.R$,A.measurable_impression=this.R$,A.abandon=this.Pw,A.engagedview=this.R$,A.impression=this.R$, A.creativeview=this.R$,A.progress=this.G8,A.custom_metric_viewable=this.R$,A.bufferstart=this.Pw,A.bufferfinish=this.tJ,A.audio_measurable=this.R$,A.audio_audible=this.R$,A);A={};this.G=(A.overlay_resize=this.Sxp,A.abandon=this.Rq,A.close=this.Rq,A.collapse=this.Rq,A.overlay_unmeasurable_impression=function(L){return Kt(L,"overlay_unmeasurable_impression",Sq())},A.overlay_viewable_immediate_impression=function(L){return Kt(L,"overlay_viewable_immediate_impression",Sq())},A.overlay_unviewable_impression= function(L){return Kt(L,"overlay_unviewable_impression",Sq())},A.overlay_viewable_end_of_session_impression=function(L){return Kt(L,"overlay_viewable_end_of_session_impression",Sq())},A); gF().W=3;t7v(this);this.V=null}; Pr=function(A,L,B,f){A=A.JG(null,f,!0,L);A.U=B;x4e([A]);return A}; kwD=function(A,L,B){fR7(L);var f=A.N;g.yB(L,function(K){var V=g.mn(K.criteria,function(J){var R=wGS(J);if(R==null)J=null;else if(J=new D$y,R.visible!=null&&(J.N=R.visible/100),R.audible!=null&&(J.W=R.audible==1),R.time!=null){var Z=R.timetype=="mtos"?"mtos":"tos",N=dXQ(R.time,"%")?"%":"ms";R=parseInt(R.time,10);N=="%"&&(R/=100);J.setTime(R,N,Z)}return J}); K9(V,function(J){return J==null})||HdL(B,new t5(K.id,K.event,V,f))})}; TaL=function(){var A=[],L=gF();A.push($$(pt));qV(L.Zx,"mvp_lv")&&A.push($$(Wr));L=[new Mn,new U3];L.push(new Fx(A));L.push(new wV(qo));return L}; lZ1=function(A){if(!A.isInitialized){A.isInitialized=!0;try{var L=eX(),B=gF(),f=V6();nC=L;B.V=79463069;A.W!=="o"&&(SGS=s8y(qo));if(YcS()){jO.N.LB=0;jO.N.hE=eX()-L;var K=TaL(),V=$$(Nn);V.W=K;n37(V,function(){xe()})?jO.done||(Kqy(),Ni(V.N.N,A),gV()):f.V?xe():gV()}else eO=!0}catch(J){throw R3.reset(),J; }}}; zz=function(A){jO.W.cancel();nt=A;jO.done=!0}; uH=function(A){if(A.W)return A.W;var L=$$(Nn).N;if(L)switch(L.getName()){case "nis":A.W="n";break;case "gsv":A.W="m"}A.W||(A.W="h");return A.W}; a3=function(A,L,B){if(A.N==null)return L.Oo|=4,!1;A=m$v(A.N,B,L);L.Oo|=A;return A==0}; xe=function(){var A=[new wV(qo)],L=$$(Nn);L.W=A;n37(L,function(){zz("i")})?jO.done||(Kqy(),gV()):zz("i")}; QgC=function(A,L){if(!A.Uv){var B=Kt(A,"start",Sq());B=A.Lg.N(B).N;var f={id:"lidarv"};f.r=L;f.sv="968";s3!==null&&(f.v=s3);lp(B,function(K,V){return f[K]=K=="mtos"||K=="tos"?V:encodeURIComponent(V)}); L=RKD();lp(L,function(K,V){return f[K]=encodeURIComponent(V)}); L="//pagead2.googlesyndication.com/pagead/gen_204?"+y6(p9(new wH,f));v$k(L);A.Uv=!0}}; A9=function(A,L,B){Gz(jO,[A],!Sq());kyE(A,B);B!=4&&tTD(A.Vj,B,A.fU);return Kt(A,L,Sq())}; t7v=function(A){Jd8(function(){var L=Cqk();A.W!=null&&(L.sdk=A.W);var B=$$(Nn);B.N!=null&&(L.avms=B.N.getName());return L})}; iu8=function(A,L,B,f){var K=WTk(R3,B);K!==null&&K.Ve!==L&&(A.Q2(K),K=null);K||(L=A.JG(B,eX(),!1,L),R3.W.length==0&&(gF().V=79463069),e3y([L]),K=L,K.U=uH(A),f&&(K.sx=f));return K}; $$7=function(A,L){var B=A[L];B!==void 0&&B>0&&(A[L]=Math.floor(B*1E3))}; Cqk=function(){var A=V6(),L={},B={},f={};return Object.assign({},(L.sv="968",L),s3!==null&&(B.v=s3,B),(f["if"]=A.V?"1":"0",f.nas=String(R3.N.length),f))}; Lc=function(A){P2.call(this,"audio_audible",A)}; ox=function(A){x1.call(this,"audio_measurable",A)}; B3=function(){$e.apply(this,arguments)}; fc=function(){}; XGE=function(A){this.N=A}; m$v=function(A,L,B){A=A.W();if(typeof A==="function"){var f={};var K={};f=Object.assign({},s3!==null&&(f.v=s3,f),(K.sv="968",K.cb=Na8,K.e=Ouy(L),K));K=Kt(B,L,Sq());g.Xc(f,K);B.Ng[L]=K;f=B.Mo()==2?WnD(f).join("&"):B.Lg.N(f).N;try{return A(B.Ve,f,L),0}catch(V){return 2}}else return 1}; Ouy=function(A){var L=bH(A)?"custom_metric_viewable":A;A=ls(ft,function(B){return B==L}); return Hr[A]}; Kc=function(){qn.call(this);this.T=null;this.D=!1;this.U="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Eb7=function(A,L,B){B=B.opt_configurable_tracking_events;A.N!=null&&Array.isArray(B)&&kwD(A,B,L)}; cdL=function(A,L,B){var f=SO(R3,L);f||(f=B.opt_nativeTime||-1,f=Pr(A,L,uH(A),f),B.opt_osdId&&(f.sx=B.opt_osdId));return f}; M7w=function(A,L,B){var f=SO(R3,L);f||(f=Pr(A,L,"n",B.opt_nativeTime||-1));return f}; YG7=function(A,L){var B=SO(R3,L);B||(B=Pr(A,L,"h",-1));return B}; U$E=function(A){gF();switch(uH(A)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; qGE=function(A,L,B,f){B=B===void 0?{}:B;var K={};g.Xc(K,{opt_adElement:void 0,opt_fullscreen:void 0},B);var V=A.o9(L,B);B=V?V.Lg:A.fW();if(K.opt_bounds)return B.N(h5("ol",f));if(f!==void 0)if(FqQ(f)!==void 0)if(eO)A=h5("ue",f);else if(lZ1(A),nt=="i")A=h5("i",f),A["if"]=0;else if(L=A.o9(L,K)){b:{nt=="i"&&(L.g6=!0);V=K.opt_fullscreen;V!==void 0&&iC(L,!!V);var J;if(V=!V6().W)(V=AF(g.fa(),"CrKey")&&!(AF(g.fa(),"CrKey")&&AF(g.fa(),"SmartSpeaker"))||AF(g.fa(),"PlayStation")||AF(g.fa(),"Roku")||TKD()||AF(g.fa(), "Xbox"))||(V=g.fa(),V=AF(V,"AppleTV")||AF(V,"Apple TV")||AF(V,"CFNetwork")||AF(V,"tvOS")),V||(V=g.fa(),V=AF(V,"sdk_google_atv_x86")||AF(V,"Android TV")),V=!V;V&&(Oz(),V=GV(Jg)===0);if(J=V){switch(L.Mo()){case 1:QgC(L,"pv");break;case 2:A.XQ(L)}zz("pv")}V=f.toLowerCase();if(J=!J)J=qV(gF().Zx,"ssmol")&&V==="loaded"?!1:g.zK(WqL,V);if(J&&L.Rn==0){nt!="i"&&(jO.done=!1);J=K!==void 0?K.opt_nativeTime:void 0;aF=J=typeof J==="number"?J:eX();L.Ap=!0;var R=Sq();L.Rn=1;L.wB={};L.wB.start=!1;L.wB.firstquartile= !1;L.wB.midpoint=!1;L.wB.thirdquartile=!1;L.wB.complete=!1;L.wB.resume=!1;L.wB.pause=!1;L.wB.skip=!1;L.wB.mute=!1;L.wB.unmute=!1;L.wB.viewable_impression=!1;L.wB.measurable_impression=!1;L.wB.fully_viewable_audible_half_duration_impression=!1;L.wB.fullscreen=!1;L.wB.exitfullscreen=!1;L.oJ=0;R||(L.n9().G=J);Gz(jO,[L],!R)}(J=L.Ik[V])&&Ux(L.s6,J);qV(gF().Zx,"fmd")||g.zK(vb1,V)&&L.Zf&&L.Zf.W(L,null);switch(L.Mo()){case 1:var Z=bH(V)?A.X.custom_metric_viewable:A.X[V];break;case 2:Z=A.G[V]}if(Z&&(f=Z.call(A, L,K,f),qV(gF().Zx,"fmd")&&g.zK(vb1,V)&&L.Zf&&L.Zf.W(L,null),f!==void 0)){K=h5(void 0,V);g.Xc(K,f);f=K;break b}f=void 0}L.Rn==3&&A.Q2(L);A=f}else A=h5("nf",f);else A=void 0;else eO?A=h5("ue"):V?(A=h5(),g.Xc(A,l7y(V,!0,!1,!1))):A=h5("nf");return typeof A==="string"?B.N():B.N(A)}; Pqk=function(A,L){L&&(A.U=L)}; x$6=function(A){var L={};return L.viewability=A.N,L.googleViewability=A.W,L}; eKQ=function(A,L,B){B=B===void 0?{}:B;A=qGE($$(Kc),L,B,A);return x$6(A)}; VU=function(A){var L=g.pf.apply(1,arguments).filter(Boolean).join("&");if(!L)return A;var B=A.match(/[?&]adurl=/);return B?A.slice(0,B.index+1)+L+"&"+A.slice(B.index+1):A+(A.indexOf("?")<0?"?":"&")+L}; J9=function(A,L){return L?"&"+A+"="+encodeURIComponent(L):""}; nbL=function(A){var L=A.url;A=A.zRs;this.W=L;this.U=A;this.V=(new Date).getTime()-17040672E5;this.N={};for(var B=/[?&]([^&=]+)=([^&]*)/g;A=B.exec(L);)this.N[A[1]]=A[2]}; zK8=function(A){A=A.U;if(!A)return"";var L=J9("uap",A.platform)+J9("uapv",A.platformVersion)+J9("uafv",A.uaFullVersion)+J9("uaa",A.architecture)+J9("uam",A.model)+J9("uab",A.bitness);A.fullVersionList&&(L+="&uafvl="+encodeURIComponent(A.fullVersionList.map(function(B){return encodeURIComponent(B.brand)+";"+encodeURIComponent(B.version)}).join("|"))); A.wow64!=null&&(L+="&uaw="+Number(A.wow64));return L.slice(1)}; AsE=function(A,L,B,f,K){var V=window;var J=J===void 0?!1:J;var R;B?R=(J===void 0?0:J)?"//ep1.adtrafficquality.google/bg/"+P5(B)+".js":"//pagead2.googlesyndication.com/bg/"+P5(B)+".js":R="";J=J===void 0?!1:J;B=V.document;var Z={};L&&(Z._scs_=L);Z._bgu_=R;Z._bgp_=f;Z._li_="v_h.3.0.0.0";K&&(Z._upb_=K);(L=V.GoogleTyFxhY)&&typeof L.push=="function"||(L=V.GoogleTyFxhY=[]);L.push(Z);L=pG(B).createElement("SCRIPT");L.type="text/javascript";L.async=!0;A=(J===void 0?0:J)?g.d_(u3L,P5(A)+".js"):g.d_(aZL,P5(A)+ ".js");g.ET(L,A);(V=(V.GoogleTyFxhYEET||{})[L.src])?V():B.getElementsByTagName("head")[0].appendChild(L)}; LVk=function(){try{var A,L;return!!((A=window)==null?0:(L=A.top)==null?0:L.location.href)&&!1}catch(B){return!0}}; var j0L=function(A){return k7[S[2]](this,24,A)}; SW=function(A,L,B){B=B===void 0?Error():B;var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=A;L+=":";B instanceof Error?(this.message=L+B.message,this.stack=B.stack||""):(this.message=L+String(B),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; Za=function(){var A=oE1();A=A===void 0?"bevasrsg":A;return new Promise(function(L){var B=window===window.top?window:LVk()?window:window.top,f=B[A],K;((K=f)==null?0:K.bevasrs)?L(new Rx(f.bevasrs)):(f||(f={},f=(f.nqfbel=[],f),B[A]=f),f.nqfbel.push(function(V){L(new Rx(V))}))})}; Biy=function(A){var L={c:A.WL,e:A.PH,mc:A.Ra,me:A.Sl};A.Ct&&(L.co={c:A.Ct.yT,a:A.Ct.m0,s:A.Ct.dC});return L}; NO=function(A){g.Y.call(this);this.wpc=A}; Rx=function(A){g.Y.call(this);var L=this;this.Bo=A;this.V="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.W=void 0;this.Bl=this.Bo.p;this.U=this.f7.bind(this);this.addOnDisposeCallback(function(){return void fne(L)})}; KVe=function(A){var L;return g.c(function(B){if(B.N==1){if(!A.Bo.wpc)throw new SW(30,"NWA");return A.N?B.return(A.N):g.X(B,A.Bo.wpc(),2)}L=B.W;A.N=new NO(L);return B.return(A.N)})}; fne=function(A){A.W!==void 0&&(A.V.forEach(function(L){var B;(B=A.W)==null||B.removeEventListener(L,A.U)}),A.W=void 0)}; V1E=function(A){var L=L===void 0?53:L;var B=[];q$(A,Fu,6).forEach(function(f){g.nu(f,2)<=L&&B.push(g.nu(f,1))}); return B}; Jse=function(A){var L=L===void 0?53:L;var B=[];q$(A,Fu,6).forEach(function(f){g.nu(f,2)>L&&B.push(g.nu(f,1))}); return B}; S0D=function(A){A.then(function(){},function(){})}; Da=function(){g.Y.apply(this,arguments);this.W=1}; dm=function(A){return{fieldType:2,fieldName:A}}; g.Ix=function(A){return{fieldType:3,fieldName:A}}; R4C=function(A){this.N=A;A.QQ("/client_streamz/bg/frs",g.Ix("mk"))}; ZH8=function(A){this.N=A;A.QQ("/client_streamz/bg/wrl",g.Ix("mn"),dm("ac"),dm("sc"),g.Ix("rk"),g.Ix("mk"))}; Niv=function(A){this.N=A;A.gR("/client_streamz/bg/ec",g.Ix("en"),g.Ix("mk"))}; FVE=function(A){this.N=A;A.QQ("/client_streamz/bg/el",g.Ix("en"),g.Ix("mk"))}; DhL=function(A){this.N=A;A.gR("/client_streamz/bg/cec",dm("ec"),g.Ix("mk"))}; dh6=function(A){this.N=A;A.gR("/client_streamz/bg/po/csc",dm("cs"),g.Ix("mk"))}; In0=function(A){this.N=A;A.gR("/client_streamz/bg/po/ctav",g.Ix("av"),g.Ix("mk"))}; wSE=function(A){this.N=A;A.gR("/client_streamz/bg/po/cwsc",g.Ix("su"),g.Ix("mk"))}; pSv=function(A){this.yf=N$(A)}; ysL=function(A,L){return uN8(A,L,rFw)}; wm=function(A){this.yf=N$(A)}; pc=function(A){this.yf=N$(A)}; yU=function(A){this.yf=N$(A)}; jW=function(A){this.yf=N$(A)}; gm=function(A){this.yf=N$(A)}; G1=function(A){this.yf=N$(A)}; jKS=function(A){this.yf=N$(A)}; rsD=function(A){var L=new G1;L=BS(L,1,A.W);var B=gED(A);L=uN8(L,B,QyE);B=[];for(var f=[],K=g.m(A.N.keys()),V=K.next();!V.done;V=K.next())f.push(V.value.split(","));for(K=0;K>>31)&4294967295;D=K[0];var w=K[1],r=K[2],h=K[3],Q=K[4];for(d=0;d<80;d++){if(d<40)if(d<20){var l=h^w&(r^h);var C=1518500249}else l=w^r^h,C=1859775393;else d<60?(l=w&r|h&(w|r),C=2400959708):(l=w^r^h,C=3395469782);l=((D<<5|D>>>27)&4294967295)+l+Q+C+I[d]&4294967295;Q=h;h=r;r=(w<<30|w>>>2)&4294967295;w=D;D=l}K[0]=K[0]+D&4294967295;K[1]=K[1]+w&4294967295;K[2]= K[2]+r&4294967295;K[3]=K[3]+h&4294967295;K[4]=K[4]+Q&4294967295} function B(D,I){if(typeof D==="string"){D=unescape(encodeURIComponent(D));for(var d=[],w=0,r=D.length;w=56;d--)V[d]=I&255,I>>>=8;L(V);for(d=I=0;d<5;d++)for(var w=24;w>=0;w-=8)D[I++]=K[d]>>w&255;return D} for(var K=[],V=[],J=[],R=[128],Z=1;Z<64;++Z)R[Z]=0;var N,F;A();return{reset:A,update:B,digest:f,Va:function(){for(var D=f(),I="",d=0;d1)));J=J.next)K||(V=J);K&&(B.N==0&&f==1?yWQ(B,L):(V?(f=V,f.next==B.U&&(B.U=f),f.next=f.next.next):jFQ(B),gsv(B,K,3,L)))}A.V=null}else mN(A,3,L)}; Xt=function(A,L){A.W||A.N!=2&&A.N!=3||GrS(A);A.U?A.U.next=L:A.W=L;A.U=L}; rWv=function(A,L,B,f){var K=C8(null,null,null);K.N=new g.QX(function(V,J){K.V=L?function(R){try{var Z=L.call(f,R);V(Z)}catch(N){J(N)}}:V; K.W=B?function(R){try{var Z=B.call(f,R);Z===void 0&&R instanceof EE?J(R):V(Z)}catch(N){J(N)}}:J}); K.N.V=A;Xt(A,K);return K.N}; mN=function(A,L,B){A.N==0&&(A===B&&(L=3,B=new TypeError("Promise cannot resolve to itself")),A.N=1,dl6(B,A.DVp,A.MgF,A)||(A.X=B,A.N=L,A.V=null,GrS(A),L!=3||B instanceof EE||sFQ(A,B)))}; dl6=function(A,L,B,f){if(A instanceof g.QX)return pI7(A,L,B,f),!0;if(A)try{var K=!!A.$goog_Thenable}catch(J){K=!1}else K=!1;if(K)return A.then(L,B,f),!0;if(g.QK(A))try{var V=A.then;if(typeof V==="function")return HC7(A,V,L,B,f),!0}catch(J){return B.call(f,J),!0}return!1}; HC7=function(A,L,B,f,K){function V(Z){R||(R=!0,f.call(K,Z))} function J(Z){R||(R=!0,B.call(K,Z))} var R=!1;try{L.call(A,J,V)}catch(Z){V(Z)}}; GrS=function(A){A.T||(A.T=!0,g.lX(A.pG,A))}; jFQ=function(A){var L=null;A.W&&(L=A.W,A.W=L.next,L.next=null);A.W||(A.U=null);return L}; gsv=function(A,L,B,f){if(B==3&&L.W&&!L.U)for(;A&&A.D;A=A.V)A.D=!1;if(L.N)L.N.V=null,ht1(L,B,f);else try{L.U?L.V.call(L.context):ht1(L,B,f)}catch(K){bCC.call(null,K)}VX7(DlE,L)}; ht1=function(A,L,B){L==2?A.V.call(A.context,B):A.W&&A.W.call(A.context,B)}; sFQ=function(A,L){A.D=!0;g.lX(function(){A.D&&bCC.call(null,L)})}; EE=function(A){Ww.call(this,A)}; g.cD=function(A,L){g.gb.call(this);this.LV=A||1;this.Rs=L||g.rI;this.gj=(0,g.X9)(this.y2L,this);this.h3=g.Ed()}; g.MB=function(A,L,B){if(typeof A==="function")B&&(A=(0,g.X9)(A,B));else if(A&&typeof A.handleEvent=="function")A=(0,g.X9)(A.handleEvent,A);else throw Error("Invalid listener argument");return Number(L)>2147483647?-1:g.rI.setTimeout(A,L||0)}; YA=function(A,L){var B=null;return(new g.QX(function(f,K){B=g.MB(function(){f(L)},A); B==-1&&K(Error("Failed to schedule timer."))})).c9(function(f){g.rI.clearTimeout(B); throw f;})}; g.UE=function(A){g.Y.call(this);this.X=A;this.U=0;this.V=100;this.D=!1;this.W=new Map;this.T=new Set;this.flushInterval=3E4;this.N=new g.cD(this.flushInterval);this.N.listen("tick",this.Gc,!1,this);g.W(this,this.N)}; tXE=function(A){A.N.enabled||A.N.start();A.U++;A.U>=A.V&&A.Gc()}; kr6=function(A,L){return A.T.has(L)?void 0:A.W.get(L)}; TFy=function(A){for(var L=0;L2?A.N.statusText:""}catch(B){L=""}A.U=L+" ["+A.getStatus()+"]";MXv(A)}}finally{ea(A)}}}; ea=function(A,L){if(A.N){A.T&&(clearTimeout(A.T),A.T=null);var B=A.N;A.N=null;L||A.dispatchEvent("ready");try{B.onreadystatechange=null}catch(f){}}}; uX=function(A){var L=A.getStatus();a:switch(L){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var B=!0;break a;default:B=!1}if(!B){if(L=L===0)A=g.bp(String(A.G))[1]||null,!A&&g.rI.self&&g.rI.self.location&&(A=g.rI.self.location.protocol.slice(0,-1)),L=!W2D.test(A?A.toLowerCase():"");B=L}return B}; g.z9=function(A){return A.N?A.N.readyState:0}; g.a$=function(A){try{return A.N?A.N.responseText:""}catch(L){return""}}; g.Au=function(A){try{if(!A.N)return null;if("response"in A.N)return A.N.response;switch(A.ZM){case "":case "text":return A.N.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in A.N)return A.N.mozResponseArrayBuffer}return null}catch(L){return null}}; g.vse=function(A){var L={};A=(A.N&&g.z9(A)>=2?A.N.getAllResponseHeaders()||"":"").split("\r\n");for(var B=0;B>1,L),tu(A,A.length>>1)]}; b97=function(A){var L=g.m(hr7(A,kM));A=L.next().value;L=L.next().value;return A.toString(16)+L.toString(16)}; tqw=function(A,L){var B=hr7(L);A=new Uint32Array(A.buffer);L=A[0];var f=g.m(B);B=f.next().value;f=f.next().value;for(var K=1;K>>8|J<<24,J+=V|0,J^=R+38293,V=V<<3|V>>>29,V^=J,Z=Z>>>8|Z<<24,Z+=R|0,Z^=N+38293,R=R<<3|R>>>29,R^=Z;V=[V,J];A[K]^=V[0];K+1=B?(globalThis.sessionStorage.removeItem(A),["e"]):["a",new Uint8Array(f.buffer,L+4)]}; TX=function(A,L,B){B=B===void 0?[]:B;this.maxItems=A;this.N=L===void 0?0:L;this.W=B}; lxe=function(A){var L=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!L)return new TX(A);var B=L.split(",");if(B.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new TX(A);L=B.slice(1);L.length===1&&L[0]===""&&(L=[]);B=Number(B[0]);return isNaN(B)||B<0||B>L.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new TX(A)):new TX(A,B,L)}; miS=function(A,L){this.logger=L;try{var B=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(f){B=!1}B&&(this.index=lxe(A))}; Qt8=function(A,L,B,f,K){var V=A.index?Vq(A.logger,function(){return kHy(A.index,b97(L),B,f,K)},"W"):"u"; A.logger.iy(V)}; CCQ=function(A,L,B){var f=g.m(A.index?Vq(A.logger,function(){return THS(b97(L),B)},"R"):["u"]),K=f.next().value; f=f.next().value;A.logger.jc(K);return f}; X2y=function(A){function L(){B-=f;B-=K;B^=K>>>13;f-=K;f-=B;f^=B<<8;K-=B;K-=f;K^=f>>>13;B-=f;B-=K;B^=K>>>12;f-=K;f-=B;f^=B<<16;K-=B;K-=f;K^=f>>>5;B-=f;B-=K;B^=K>>>3;f-=K;f-=B;f^=B<<10;K-=B;K-=f;K^=f>>>15} A=i9L(A);for(var B=2654435769,f=2654435769,K=314159265,V=A.length,J=V,R=0;J>=12;J-=12,R+=12)B+=l0(A,R),f+=l0(A,R+4),K+=l0(A,R+8),L();K+=V;switch(J){case 11:K+=A[R+10]<<24;case 10:K+=A[R+9]<<16;case 9:K+=A[R+8]<<8;case 8:f+=A[R+7]<<24;case 7:f+=A[R+6]<<16;case 6:f+=A[R+5]<<8;case 5:f+=A[R+4];case 4:B+=A[R+3]<<24;case 3:B+=A[R+2]<<16;case 2:B+=A[R+1]<<8;case 1:B+=A[R+0]}L();return $iL.toString(K)}; i9L=function(A){for(var L=[],B=0;B>7,A.error.code]);f.set(B,4);return f}; cc=function(A,L,B){m7.call(this,A);this.U=L;this.clientState=B;this.N="S";this.W="q"}; Ek=function(A){return globalThis.TextEncoder?(new TextEncoder).encode(A):g.Ma(A)}; E1e=function(A,L,B){return A instanceof GX?NH0(A,B,L,1):A.Ix(B)}; YM=function(A){g.Y.call(this);var L=this;this.V=new g.IQ;this.U=0;this.W=void 0;this.state=2;this.Bo=A.Bo;this.Ni=A.Ni;this.S7=Object.assign({},cgk,A.S7||{});this.logger=A.Bo.xc();var B;this.onError=(B=A.onError)!=null?B:function(){}; this.bZ=A.bZ||!1;if(MqQ(A)){var f=this.Bo;this.D=function(){return p2e(f).catch(function(J){J=L.reportError(new SW(L.N?20:32,"TRG:Disposed",J));L.W=J;var R;(R=L.N)==null||R.dispose();L.N=void 0;L.V.reject(J)})}; ygD(f,function(){return void MW(L)}); f.G===2&&MW(this)}else this.D=A.ra4,MW(this);var K=this.logger.share();K.zB("o");var V=new f2(K,"o");this.V.promise.then(function(){V.done();K.eL();K.dispose()},function(){return void K.dispose()}); this.addOnDisposeCallback(function(){L.N?(L.N.dispose(),L.N=void 0):L.W?L.logger.eL():(L.W=L.reportError(new SW(32,"TNP:Disposed")),L.logger.eL(),L.V.reject(L.W))}); g.W(this,this.logger)}; Yxy=function(A,L){if(!(L instanceof SW))if(L instanceof WD){var B=Error(L.toString());B.stack=L.stack;L=new SW(11,"EBH:Error",B)}else L=new SW(12,"BSO:Unknown",L);return A.reportError(L)}; MW=function(A){var L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r;return g.c(function(h){switch(h.N){case 1:L=void 0;A.U++;B=new g.IQ;A.Bo instanceof rs&&A.Bo.U.push(B.promise);if(!A.bZ){h.Ux(2);break}f=new g.IQ;setTimeout(function(){return void f.resolve()}); return g.X(h,f.promise,2);case 2:return K=A.logger.share(),g.S5(h,4,5),A.state=5,V={},J=[],g.X(h,Hc(A.Bo.snapshot({WL:V,qg:J}),A.S7.s4r,function(){return Promise.reject(new SW(15,"MDA:Timeout"))}),7); case 7:R=h.W;if(A.TL())throw new SW(A.N?20:32,"MDA:Disposed");Z=J[0];A.state=6;return g.X(h,Hc(E1e(A.Ni,K,R),A.S7.Bs,function(){return Promise.reject(new SW(10,"BWB:Timeout"))}),8); case 8:N=h.W;if(A.TL())throw new SW(A.N?20:32,"BWB:Disposed");A.state=7;L=Vq(K,function(){var l=UiD(A,N,B,Z);l.V.promise.then(function(){return void A.D()}); return l},"i"); case 5:g.F9(h);K.dispose();g.DR(h,6);break;case 4:F=g.NX(h);(D=L)==null||D.dispose();if(!A.W){I=Yxy(A,F);B.resolve();var Q;if(Q=A.Bo instanceof rs&&A.U<2)a:if(F instanceof SW)Q=F.code!==32&&F.code!==20&&F.code!==10;else{if(F instanceof WD)switch(F.code){case 2:case 13:case 14:case 4:break;default:Q=!1;break a}Q=!0}if(Q)return d=(1+Math.random()*.25)*(A.N?6E4:1E3),w=setTimeout(function(){return void A.D()},d),A.addOnDisposeCallback(function(){return void clearTimeout(w)}),h.return(); A.W=I}K.M4(A.N?13:14);A.V.reject(A.W);return h.return();case 6:A.state=8,A.U=0,(r=A.N)==null||r.dispose(),A.N=L,A.V.resolve(),g.VK(h)}})}; UiD=function(A,L,B,f){var K=zw(L,2)*1E3;if(K<=0)throw new SW(31,"TTM:Invalid");if(uq(L,4))return new Xm(A.logger,uq(L,4),K);if(!zw(L,3))return new $M(A.logger,uI(QP(L,1)),K);if(!f)throw new SW(4,"PMD:Undefined");f=f(uI(QP(L,1)));if(typeof f!=="function")throw new SW(16,"APF:Failed");A.T=Math.floor((Date.now()+K)/1E3);A=new i0(A.logger,f,zw(L,3),K);A.addOnDisposeCallback(function(){return void B.resolve()}); return A}; Wlw=function(A,L){L=L instanceof SW?L:new SW(5,"TVD:error",L);return A.reportError(L)}; erS=function(A,L,B){try{if(A.TL())throw new SW(21,"BNT:disposed");if(!A.N&&A.W)throw A.W;var f,K;return(K=(f=v1v(A,L,B))!=null?f:qxk(A,L,B))!=null?K:PC7(A,L,B)}catch(V){if(!L.Sl)throw Wlw(A,V);return xiQ(A,B,V)}}; v1v=function(A,L,B){var f;return(f=A.N)==null?void 0:C2(f,function(){return Uk(A,L)},B,function(K){var V; if(A.N instanceof i0&&((V=L.Ct)==null?0:V.dC))try{var J;(J=A.cache)==null||Qt8(J,Uk(A,L),K,L.Ct.yT,A.T-120)}catch(R){A.reportError(new SW(24,"ELX:write",R))}})}; qxk=function(A,L,B){var f;if((f=L.Ct)!=null&&f.m0)try{var K,V=(K=A.cache)==null?void 0:CCQ(K,Uk(A,L),L.Ct.yT);return V?B?Vq(A.logger,function(){return g.Y$(V,2)},"a"):V:void 0}catch(J){A.reportError(new SW(23,"RXO:read",J))}}; PC7=function(A,L,B){var f={stack:[],error:void 0,hasError:!1};try{if(!L.Ra)throw new SW(29,"SDF:notready");return C2(v7E(f,new cc(A.logger,0,A.state)),function(){return Uk(A,L)},B)}catch(K){f.error=K,f.hasError=!0}finally{qDv(f)}}; xiQ=function(A,L,B){var f={stack:[],error:void 0,hasError:!1};try{var K=Wlw(A,B);return C2(v7E(f,new Ok(A.logger,K)),function(){return[]},L)}catch(V){f.error=V,f.hasError=!0}finally{qDv(f)}}; Uk=function(A,L){return L.PH?L.PH:L.WL?Vq(A.logger,function(){return L.PH=Ek(L.WL)},"c"):[]}; n16=function(){var A=0,L;return function(B){L||(L=new Ju);var f=new cc(L,A,1),K=C2(f,function(){return Ek(B)},!0); f.dispose();A++;return K}}; Wc=function(A){this.yf=N$(A)}; zrk=function(A,L,B){this.lO=A;this.wc=L;this.metadata=B}; vc=function(A,L){L=L===void 0?{}:L;this.P2r=A;this.metadata=L;this.status=null}; qW=function(A,L,B,f,K){this.name=A;this.methodType="unary";this.requestType=L;this.responseType=B;this.N=f;this.W=K}; Pc=function(A){this.yf=N$(A)}; xM=function(A){this.yf=N$(A)}; eA=function(A){this.yf=N$(A)}; n2=function(A,L){this.W=[];this.U=[];this.D=[];this.V=[];this.N=[];this.T=A.eTD;this.X=L;this.xhr=A.xhr;this.T&&u_w(this)}; oew=function(A,L){var B=new axe;g.Ft(A.xhr,"complete",function(){if(uX(A.xhr)){var f=g.a$(A.xhr);if(L&&A.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");f=atob(f)}try{var K=A.X(f)}catch(R){zX(A,u0(new WD(13,"Error when deserializing response data; error: "+R+(", response: "+f)),B));return}f=lXy(A.xhr.getStatus());aQ(A,AX(A));f===0?A5L(A,K):zX(A,u0(new WD(f,"Xhr succeeded but the status code is not 200"),B))}else{f=g.a$(A.xhr);K=AX(A);if(f){var V= Lsk(A,f);f=V.code;var J=V.details;V=V.metadata}else f=2,J="Rpc failed due to xhr error. uri: "+String(A.xhr.G)+", error code: "+(A.xhr.W+", error: ")+A.xhr.getLastError(),V=K;aQ(A,K);zX(A,u0(new WD(f,J,V),B))}})}; u_w=function(A){Le(A.T,"data",function(L){if("1"in L){var B=L["1"];try{var f=A.X(B)}catch(K){zX(A,new WD(13,"Error when deserializing response data; error: "+K+(", response: "+B)))}f&&A5L(A,f)}if("2"in L)for(L=Lsk(A,L["2"]),B=0;B-1&&A.splice(L,1)}; A5L=function(A,L){for(var B=0;B>4&15).toString(16)+(A&15).toString(16)}; dl=function(A,L){this.W=this.N=null;this.V=A||null;this.U=!!L}; pe=function(A){A.N||(A.N=new Map,A.W=0,A.V&&lp(A.V,function(L,B){A.add(qw(L),B)}))}; NVS=function(A,L){pe(A);L=yy(A,L);return A.N.has(L)}; g.Fsk=function(A,L,B){A.remove(L);B.length>0&&(A.V=null,A.N.set(yy(A,L),g.Kx(B)),A.W=A.W+B.length)}; yy=function(A,L){L=String(L);A.U&&(L=L.toLowerCase());return L}; S3S=function(A,L){L&&!A.U&&(pe(A),A.V=null,A.N.forEach(function(B,f){var K=f.toLowerCase();f!=K&&(this.remove(f),g.Fsk(this,K,B))},A)); A.U=L}; g.DnQ=function(A){var L="";g.H6(A,function(B,f){L+=f;L+=":";L+=B;L+="\r\n"}); return L}; g.jF=function(A,L,B){if(g.mi(B))return A;B=g.DnQ(B);if(typeof A==="string")return $s(A,g.v5(L),B);g.wl(A,L,B);return A}; g.gl=function(A){g.Y.call(this);this.W=A;this.N={}}; dnv=function(A,L,B,f,K,V){if(Array.isArray(B))for(var J=0;J=0)return!0;try{var L=new g.ZS(A)}catch(B){return g.Pw(Q3S,function(f){return A.search(f)>0})!=null}return L.T.match(CHk)?!0:g.Pw(Q3S,function(B){return A.match(B)!=null})!=null}; g.iN=function(A,L){return A.replace($n8,function(B,f){try{var K=g.QB(L,f);if(K==null||K.toString()==null)return B;K=K.toString();if(K==""||!g.us(g.xj(K)))return encodeURIComponent(K).replace(/%2C/g,",")}catch(V){}return B})}; Xr0=function(A){this.yf=N$(A,500)}; OtC=function(A){this.yf=N$(A,500)}; $w=function(A){this.yf=N$(A)}; XO=function(A){this.yf=N$(A)}; Ee1=function(A){var L=A.yf;return vG(A,L,L[fd]|0,$w,2,1)}; Y30=function(A){var L;if((L=A[c56])!=null)A=L;else{if($E!==$E)throw Error();A=A[c56]=MOC(A.N)}return A}; Wsv=function(A){var L;return(L=A[Unk])!=null?L:A[Unk]=new Map(Ee1(Y30(A)).map(function(B){return[B.getName(),g.nu(B,2)]}))}; OB=function(A,L){return Object.is(A,L)}; cM=function(A){var L=EB;EB=A;return L}; veC=function(A){if(A.Mt!==void 0){var L=MT;MT=!0;try{for(var B=A.Mt;B!==void 0;B=B.Nb){var f=B.LF;f.I$||(A=void 0,f.I$=!0,veC(f),(A=f.dj)==null||A.call(f,f))}}finally{MT=L}}}; q36=function(){var A;return((A=EB)==null?void 0:A.XX)!==!1}; PHe=function(A){A&&(A.yy=void 0,A.M1=!0);return cM(A)}; eNw=function(A){A.M1=!1;var L=A.yy,B=L!==void 0?L.LZ:A.producers;if(B!==void 0){if(Yw(A)){do B=xne(B);while(B!==void 0)}L!==void 0?L.LZ=void 0:A.producers=void 0}}; nev=function(A,L){var B=A.Et,f=Yw(A);B!==void 0?(L.Nb=B.Nb,B.Nb=L):(L.Nb=void 0,A.Mt=L);L.GE=B;A.Et=L;if(!f)for(A=A.producers;A!==void 0;A=A.LZ)nev(A.P5,A)}; xne=function(A){var L=A.P5,B=A.LZ,f=A.Nb,K=A.GE;A.Nb=void 0;A.GE=void 0;f!==void 0?f.GE=K:L.Et=K;if(K!==void 0)K.Nb=f;else if(L.Mt=f,!Yw(L))for(A=L.producers;A!==void 0;)A=xne(A);return B}; Yw=function(A){return A.iS||A.Mt!==void 0}; A9v=function(A,L){function B(){a:{if(MT)throw Error("");if(EB!==null){var K=EB.yy;if(K===void 0||K.P5!==f){var V=void 0,J=EB.M1;if(J&&(V=K!==void 0?K.LZ:EB.producers,V!==void 0&&V.P5===f)){EB.yy=V;V.dpj=f.version;break a}var R=f.Et,Z;if(!(Z=R===void 0||R.LF!==EB)){if(J){b:{Z=EB;J=Z.yy;if(J!==void 0){Z=Z.producers;do{if(Z===R){J=!0;break b}if(Z===J)break;Z=Z.LZ}while(Z!==void 0)}J=!1}J=!J}Z=J}Z&&(J=Yw(EB),V={P5:f,LF:EB,LZ:V,GE:R,dpj:f.version,Nb:void 0},EB.yy=V,K!==void 0?K.LZ=V:EB.producers=V,J&& nev(f,V))}}}return f.value} var f=Object.create(zN8);f.value=A;L!==void 0&&(f.I3=L);B[ux0]=f;return[B,function(K){return aky(f,K)}, function(K){if(!q36())throw Error();aky(f,K(f.value))}]}; aky=function(A,L){if(!q36())throw Error();A.I3(A.value,L)||(A.value=L,A.version++,LQ7++,veC(A))}; UB=function(A,L){L=L===void 0?"":L;var B={};A=A9v(A,B.equals);B=B.debugName;var f;L=B&&L?B+"__"+L:(f=B!=null?B:L)!=null?f:"[signal]";A[0][ux0].debugName=L}; vM=function(A){g.gb.call(this);var L=this;this.D=this.W=0;this.kC=A!=null?A:{pV:function(K,V){return setTimeout(K,V)}, WF:function(K){clearTimeout(K)}}; var B,f;this.N=(f=(B=window.navigator)==null?void 0:B.onLine)!=null?f:!0;this.V=function(){return g.c(function(K){return g.X(K,WM(L),0)})}; window.addEventListener("offline",this.V);window.addEventListener("online",this.V);this.D||this.yG()}; oZk=function(){var A=g.qT;vM.instance||(vM.instance=new vM(A));return vM.instance}; WM=function(A,L){return A.U?A.U:A.U=new Promise(function(B){var f,K,V,J;return g.c(function(R){switch(R.N){case 1:return f=window.AbortController?new window.AbortController:void 0,V=(K=f)==null?void 0:K.signal,J=!1,g.S5(R,2,3),f&&(A.W=A.kC.pV(function(){f.abort()},L||2E4)),g.X(R,fetch("/generate_204",{method:"HEAD", signal:V}),5);case 5:J=!0;case 3:g.F9(R);A.U=void 0;A.W&&(A.kC.WF(A.W),A.W=0);J!==A.N&&(A.N=J,A.N?A.dispatchEvent("networkstatus-online"):A.dispatchEvent("networkstatus-offline"));B(J);g.DR(R,0);break;case 2:g.NX(R),J=!1,R.Ux(3)}})})}; Bme=function(A){this.yf=N$(A)}; PM=function(){this.data=[];this.N=-1}; fa1=function(A){A.N===-1&&(A.N=A.data.reduce(function(L,B,f){return L+(B?Math.pow(2,f):0)},0)); return A.N}; xw=function(A){A.setAttribute("role","link")}; ne=function(A,L){Array.isArray(L)&&(L=L.join(" "));L===""||L==void 0?(eF||(L={},eF=(L.atomic=!1,L.autocomplete="none",L.dropeffect="none",L.haspopup=!1,L.live="off",L.multiline=!1,L.multiselectable=!1,L.orientation="vertical",L.readonly=!1,L.relevant="additions text",L.required=!1,L.sort="none",L.busy=!1,L.disabled=!1,L.hidden=!1,L.invalid="false",L)),L=eF,"label"in L?A.setAttribute("aria-label",L.label):A.removeAttribute("aria-label")):A.setAttribute("aria-label",L)}; z7=function(A){A=A.getAttribute("aria-label");return A==null||A==void 0?"":String(A)}; g.uN=function(A,L,B){g.Y.call(this);this.N=null;this.U=!1;this.T=A;this.D=B;this.W=L||window;this.V=(0,g.X9)(this.rZ,this)}; KQ7=function(A){A=A.W;return A.requestAnimationFrame||A.webkitRequestAnimationFrame||A.mozRequestAnimationFrame||A.oRequestAnimationFrame||A.msRequestAnimationFrame||null}; VWL=function(A){A=A.W;return A.cancelAnimationFrame||A.cancelRequestAnimationFrame||A.webkitCancelRequestAnimationFrame||A.mozCancelRequestAnimationFrame||A.oCancelRequestAnimationFrame||A.msCancelRequestAnimationFrame||null}; g.aa=function(A,L,B){g.Y.call(this);this.N=A;this.LV=L||0;this.W=B;this.V=(0,g.X9)(this.jW,this)}; g.Az=function(A,L){A.isActive()||A.start(L)}; g.LK=function(A){A.stop();A.jW()}; g.o1=function(A){A.isActive()&&g.LK(A)}; g.BC=function(A,L,B){g.Y.call(this);this.U=B!=null?A.bind(B):A;this.LV=L;this.V=null;this.N=!1;this.W=0;this.x6=null}; fK=function(A){A.x6=g.MB(function(){A.x6=null;A.N&&!A.W&&(A.N=!1,fK(A))},A.LV); var L=A.V;A.V=null;A.U.apply(null,L)}; g.KK=function(A,L){this.N=A[g.rI.Symbol.iterator]();this.W=L}; J98=function(A){return typeof A.className=="string"?A.className:A.getAttribute&&A.getAttribute("class")||""}; Vd=function(A){return A.classList?A.classList:J98(A).match(/\S+/g)||[]}; g.Jz=function(A,L){typeof A.className=="string"?A.className=L:A.setAttribute&&A.setAttribute("class",L)}; g.SR=function(A,L){return A.classList?A.classList.contains(L):g.zK(Vd(A),L)}; g.R1=function(A,L){if(A.classList)A.classList.add(L);else if(!g.SR(A,L)){var B=J98(A);g.Jz(A,B+(B.length>0?" "+L:L))}}; g.Z1=function(A,L){if(A.classList)Array.prototype.forEach.call(L,function(K){g.R1(A,K)}); else{var B={};Array.prototype.forEach.call(Vd(A),function(K){B[K]=!0}); Array.prototype.forEach.call(L,function(K){B[K]=!0}); L="";for(var f in B)L+=L.length>0?" "+f:f;g.Jz(A,L)}}; g.NH=function(A,L){A.classList?A.classList.remove(L):g.SR(A,L)&&g.Jz(A,Array.prototype.filter.call(Vd(A),function(B){return B!=L}).join(" "))}; g.Fq=function(A,L){A.classList?Array.prototype.forEach.call(L,function(B){g.NH(A,B)}):g.Jz(A,Array.prototype.filter.call(Vd(A),function(B){return!g.zK(L,B)}).join(" "))}; g.D1=function(A,L,B){B?g.R1(A,L):g.NH(A,L)}; SaQ=function(A,L){var B=!g.SR(A,L);g.D1(A,L,B)}; g.d$=function(){g.gb.call(this);this.N=0;this.endTime=this.startTime=null}; RjE=function(A,L){Array.isArray(L)||(L=[L]);L=L.map(function(B){return typeof B==="string"?B:B.property+" "+B.duration+"s "+B.timing+" "+B.delay+"s"}); g.Kv(A,"transition",L.join(","))}; I1=function(A,L,B,f,K){g.d$.call(this);this.W=A;this.D=L;this.T=B;this.U=f;this.X=Array.isArray(K)?K:[K]}; Zcy=function(A,L,B,f){return new I1(A,L,{opacity:B},{opacity:f},{property:"opacity",duration:L,timing:"ease-in",delay:0})}; FQ8=function(A){A=La(A);if(A=="")return null;var L=String(A.slice(0,4)).toLowerCase();if(("url("1||A&&A.split(")"),null;if(A.indexOf("(")>0){if(/"|'/.test(A))return null;L=/([\-\w]+)\(/g;for(var B;B=L.exec(A);)if(!(B[1].toLowerCase()in Nmw))return null}return A}; w$=function(A,L){A=g.rI[A];return A&&A.prototype?(L=Object.getOwnPropertyDescriptor(A.prototype,L))&&L.get||null:null}; DOC=function(A){var L=g.rI.CSSStyleDeclaration;return L&&L.prototype&&L.prototype[A]||null}; dOe=function(A,L,B,f){if(A)return A.apply(L,f);if(g.pK&&document.documentMode<10){if(!L[B].call)throw Error("IE Clobbering detected");}else if(typeof L[B]!="function")throw Error("Clobbering detected");return L[B].apply(L,f)}; jxv=function(A){if(!A)return"";var L=document.createElement("div").style;Ia7(A).forEach(function(B){var f=g.h8&&B in w3C?B:B.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");zk(f,"--")||zk(f,"var")||(B=dOe(p3Q,A,A.getPropertyValue?"getPropertyValue":"getAttribute",[B])||"",B=FQ8(B),B!=null&&dOe(y9w,L,L.setProperty?"setProperty":"setAttribute",[f,B]))}); return L.cssText||""}; Ia7=function(A){g.lB(A)?A=g.Kx(A):(A=g.bs(A),g.Lx(A,"cssText"));return A}; g.jR=function(A){var L,B=L=0,f=!1;A=A.split(gZy);for(var K=0;K.4?-1:1;return(L==0?null:L)==-1?"rtl":"ltr"}; g.sn=function(A){if(A instanceof g$||A instanceof GF||A instanceof r$)return A;if(typeof A.next=="function")return new g$(function(){return A}); if(typeof A[Symbol.iterator]=="function")return new g$(function(){return A[Symbol.iterator]()}); if(typeof A.iM=="function")return new g$(function(){return A.iM()}); throw Error("Not an iterator or iterable.");}; g$=function(A){this.W=A}; GF=function(A){this.W=A}; r$=function(A){g$.call(this,function(){return A}); this.V=A}; HC=function(A,L,B,f,K,V,J,R){this.N=A;this.X=L;this.V=B;this.D=f;this.U=K;this.T=V;this.W=J;this.G=R}; hz=function(A,L){if(L==0)return A.N;if(L==1)return A.W;var B=KG(A.N,A.V,L),f=KG(A.V,A.U,L);A=KG(A.U,A.W,L);B=KG(B,f,L);f=KG(f,A,L);return KG(B,f,L)}; Hcw=function(A,L){if(L==0)return A.X;if(L==1)return A.G;var B=KG(A.X,A.D,L),f=KG(A.D,A.T,L);A=KG(A.T,A.G,L);B=KG(B,f,L);f=KG(f,A,L);return KG(B,f,L)}; hjw=function(A,L){var B=(L-A.N)/(A.W-A.N);if(B<=0)return 0;if(B>=1)return 1;for(var f=0,K=1,V=0,J=0;J<8;J++){V=hz(A,B);var R=(hz(A,B+1E-6)-V)/1E-6;if(Math.abs(V-L)<1E-6)return B;if(Math.abs(R)<1E-6)break;else V1E-6&&J<8;J++)V=0}; g.TF=function(A){g.Y.call(this);this.T=1;this.V=[];this.U=0;this.N=[];this.W={};this.X=!!A}; tWD=function(A,L,B){g.lX(function(){A.apply(L,B)})}; g.lk=function(A){this.cq=A}; mo=function(A){this.cq=A}; k11=function(A){this.data=A}; Tmy=function(A){return A===void 0||A instanceof k11?A:new k11(A)}; Qd=function(A){this.cq=A}; g.lav=function(A){var L=A.creation;A=A.expiration;return!!A&&Ag.Ed()}; g.CK=function(A){this.cq=A}; mOw=function(){}; ik=function(){}; $C=function(A){this.N=A;this.W=null}; Xq=function(A){if(A.N==null)throw Error("Storage mechanism: Storage unavailable");A.isAvailable()||cX(Error("Storage mechanism: Storage unavailable"))}; On=function(){var A=null;try{A=g.rI.localStorage||null}catch(L){}$C.call(this,A)}; QxQ=function(){var A=null;try{A=g.rI.sessionStorage||null}catch(L){}$C.call(this,A)}; En=function(A,L){this.W=A;this.N=L+"::"}; g.cC=function(A){var L=new On;return L.isAvailable()?A?new En(L,A):L:null}; MH=function(A,L){this.N=A;this.W=L}; YC=function(A){this.N=[];if(A)a:{if(A instanceof YC){var L=A.F1();A=A.aU();if(this.N.length<=0){for(var B=this.N,f=0;f>>6:(V<65536?R[B++]=224|V>>>12:(R[B++]=240|V>>>18,R[B++]=128|V>>>12&63),R[B++]=128|V>>> 6&63),R[B++]=128|V&63);return R}; PC=function(A){for(var L=A.length;--L>=0;)A[L]=0}; xC=function(A,L,B,f,K){this.BX=A;this.KG=L;this.Qa=B;this.R1=f;this.Jwp=K;this.OG=A&&A.length}; eR=function(A,L){this.Sm=A;this.j9=0;this.Q_=L}; nK=function(A,L){A.D0[A.pending++]=L&255;A.D0[A.pending++]=L>>>8&255}; zF=function(A,L,B){A.jg>16-B?(A.X5|=L<>16-A.jg,A.jg+=B-16):(A.X5|=L<>>=1,B<<=1;while(--L>0);return B>>>1}; Oc8=function(A,L,B){var f=Array(16),K=0,V;for(V=1;V<=15;V++)f[V]=K=K+B[V-1]<<1;for(B=0;B<=L;B++)K=A[B*2+1],K!==0&&(A[B*2]=X3v(f[K]++,K))}; EZe=function(A){var L;for(L=0;L<286;L++)A.lH[L*2]=0;for(L=0;L<30;L++)A.P$[L*2]=0;for(L=0;L<19;L++)A.ac[L*2]=0;A.lH[512]=1;A.rK=A.fL=0;A.PB=A.matches=0}; c9Q=function(A){A.jg>8?nK(A,A.X5):A.jg>0&&(A.D0[A.pending++]=A.X5);A.X5=0;A.jg=0}; MWD=function(A,L,B){c9Q(A);nK(A,B);nK(A,~B);qH.CJ(A.D0,A.window,L,B,A.pending);A.pending+=B}; YaE=function(A,L,B,f){var K=L*2,V=B*2;return A[K]>>7)];uk(A,J,B);R=fX[J];R!==0&&(K-=KX[J],zF(A,K,R))}}while(f>1;J>=1;J--)a1(A,B,J);Z=V;do J=A.nw[1],A.nw[1]=A.nw[A.L5--],a1(A,B,1),f=A.nw[1],A.nw[--A.ub]=J,A.nw[--A.ub]=f,B[Z*2]=B[J*2]+B[f*2],A.depth[Z]=(A.depth[J]>=A.depth[f]?A.depth[J]:A.depth[f])+1,B[J*2+1]=B[f*2+1]=Z,A.nw[1]=Z++,a1(A,B,1);while(A.L5>= 2);A.nw[--A.ub]=A.nw[1];J=L.Sm;Z=L.j9;f=L.Q_.BX;K=L.Q_.OG;V=L.Q_.KG;var N=L.Q_.Qa,F=L.Q_.Jwp,D,I=0;for(D=0;D<=15;D++)A.f5[D]=0;J[A.nw[A.ub]*2+1]=0;for(L=A.ub+1;L<573;L++){var d=A.nw[L];D=J[J[d*2+1]*2+1]+1;D>F&&(D=F,I++);J[d*2+1]=D;if(!(d>Z)){A.f5[D]++;var w=0;d>=N&&(w=V[d-N]);var r=J[d*2];A.rK+=r*(D+w);K&&(A.fL+=r*(f[d*2+1]+w))}}if(I!==0){do{for(D=F-1;A.f5[D]===0;)D--;A.f5[D]--;A.f5[D+1]+=2;A.f5[F]--;I-=2}while(I>0);for(D=F;D!==0;D--)for(d=A.f5[D];d!==0;)f=A.nw[--L],f>Z||(J[f*2+1]!==D&&(A.rK+=(D- J[f*2+1])*J[f*2],J[f*2+1]=D),d--)}Oc8(B,R,A.f5)}; WQS=function(A,L,B){var f,K=-1,V=L[1],J=0,R=7,Z=4;V===0&&(R=138,Z=3);L[(B+1)*2+1]=65535;for(f=0;f<=B;f++){var N=V;V=L[(f+1)*2+1];++J>>=1)if(L&1&&A.lH[B*2]!==0)return 0;if(A.lH[18]!==0||A.lH[20]!==0||A.lH[26]!==0)return 1;for(B=32;B<256;B++)if(A.lH[B*2]!==0)return 1;return 0}; Jl=function(A,L,B){A.D0[A.Xf+A.PB*2]=L>>>8&255;A.D0[A.Xf+A.PB*2+1]=L&255;A.D0[A.mS+A.PB]=B&255;A.PB++;L===0?A.lH[B*2]++:(A.matches++,L--,A.lH[(Al[B]+256+1)*2]++,A.P$[(L<256?Bt[L]:Bt[256+(L>>>7)])*2]++);return A.PB===A.IF-1}; Rw=function(A,L){A.msg=St[L];return L}; Zl=function(A){for(var L=A.length;--L>=0;)A[L]=0}; Nv=function(A){var L=A.state,B=L.pending;B>A.Ke&&(B=A.Ke);B!==0&&(qH.CJ(A.output,L.D0,L.Pc,B,A.n_),A.n_+=B,L.Pc+=B,A.QS+=B,A.Ke-=B,L.pending-=B,L.pending===0&&(L.Pc=0))}; dn=function(A,L){var B=A.vF>=0?A.vF:-1,f=A.Dg-A.vF,K=0;if(A.level>0){A.E9.KW===2&&(A.E9.KW=qaE(A));V4(A,A.MJ);V4(A,A.p6);WQS(A,A.lH,A.MJ.j9);WQS(A,A.P$,A.p6.j9);V4(A,A.YO);for(K=18;K>=3&&A.ac[PmE[K]*2+1]===0;K--);A.rK+=3*(K+1)+5+5+4;var V=A.rK+3+7>>>3;var J=A.fL+3+7>>>3;J<=V&&(V=J)}else V=J=f+5;if(f+4<=V&&B!==-1)zF(A,L?1:0,3),MWD(A,B,f);else if(A.strategy===4||J===V)zF(A,2+(L?1:0),3),UO1(A,FC,Dl);else{zF(A,4+(L?1:0),3);B=A.MJ.j9+1;f=A.p6.j9+1;K+=1;zF(A,B-257,5);zF(A,f-1,5);zF(A,K-4,4);for(V=0;V>>8&255;A.D0[A.pending++]=L&255}; xO1=function(A,L){var B=A.Ia,f=A.Dg,K=A.V4,V=A.nT,J=A.Dg>A.RC-262?A.Dg-(A.RC-262):0,R=A.window,Z=A.H$,N=A.a$,F=A.Dg+258,D=R[f+K-1],I=R[f+K];A.V4>=A.iB&&(B>>=2);V>A.cz&&(V=A.cz);do{var d=L;if(R[d+K]===I&&R[d+K-1]===D&&R[d]===R[f]&&R[++d]===R[f+1]){f+=2;for(d++;R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&R[++f]===R[++d]&&fK){A.Jl=L;K=d;if(d>=V)break;D=R[f+K-1];I=R[f+K]}}}while((L=N[L&Z])>J&&--B!== 0);return K<=A.cz?K:A.cz}; s5=function(A){var L=A.RC,B;do{var f=A.lZ-A.cz-A.Dg;if(A.Dg>=L+(L-262)){qH.CJ(A.window,A.window,L,L,0);A.Jl-=L;A.Dg-=L;A.vF-=L;var K=B=A.dV;do{var V=A.head[--K];A.head[K]=V>=L?V-L:0}while(--B);K=B=L;do V=A.a$[--K],A.a$[K]=V>=L?V-L:0;while(--B);f+=L}if(A.E9.j6===0)break;K=A.E9;B=A.window;V=A.Dg+A.cz;var J=K.j6;J>f&&(J=f);J===0?B=0:(K.j6-=J,qH.CJ(B,K.input,K.d2,J,V),K.state.wrap===1?K.FO=GR(K.FO,B,J,V):K.state.wrap===2&&(K.FO=rn(K.FO,B,J,V)),K.d2+=J,K.yc+=J,B=J);A.cz+=B;if(A.cz+A.h1>=3)for(f=A.Dg-A.h1, A.s9=A.window[f],A.s9=(A.s9<=3&&(A.s9=(A.s9<=3)if(B=Jl(A,A.Dg-A.Jl,A.lQ-3),A.cz-=A.lQ,A.lQ<=A.gP&&A.cz>=3){A.lQ--;do A.Dg++,A.s9=(A.s9<=3&&(A.s9=(A.s9<4096)&&(A.lQ=2));if(A.V4>=3&&A.lQ<=A.V4){f=A.Dg+A.cz-3;B=Jl(A,A.Dg-1-A.vW,A.V4-3);A.cz-=A.V4-1;A.V4-=2;do++A.Dg<=f&&(A.s9=(A.s9<=3&&A.Dg>0&&(f=A.Dg-1,B=V[f],B===V[++f]&&B===V[++f]&&B===V[++f])){for(K=A.Dg+258;B===V[++f]&&B===V[++f]&&B===V[++f]&&B===V[++f]&&B===V[++f]&&B===V[++f]&&B===V[++f]&&B===V[++f]&&fA.cz&&(A.lQ=A.cz)}A.lQ>=3?(B=Jl(A,1,A.lQ-3),A.cz-=A.lQ,A.Dg+=A.lQ,A.lQ=0):(B=Jl(A,0,A.window[A.Dg]),A.cz--,A.Dg++);if(B&&(dn(A,!1),A.E9.Ke===0))return 1}A.h1=0;return L=== 4?(dn(A,!0),A.E9.Ke===0?3:4):A.PB&&(dn(A,!1),A.E9.Ke===0)?1:2}; nZk=function(A,L){for(var B;;){if(A.cz===0&&(s5(A),A.cz===0)){if(L===0)return 1;break}A.lQ=0;B=Jl(A,0,A.window[A.Dg]);A.cz--;A.Dg++;if(B&&(dn(A,!1),A.E9.Ke===0))return 1}A.h1=0;return L===4?(dn(A,!0),A.E9.Ke===0?3:4):A.PB&&(dn(A,!1),A.E9.Ke===0)?1:2}; b8=function(A,L,B,f,K){this.oY=A;this.Svn=L;this.pzD=B;this.RTD=f;this.func=K}; zjS=function(){this.E9=null;this.status=0;this.D0=null;this.wrap=this.pending=this.Pc=this.WA=0;this.lr=null;this.d$=0;this.method=8;this.Uu=-1;this.H$=this.VA=this.RC=0;this.window=null;this.lZ=0;this.head=this.a$=null;this.nT=this.iB=this.strategy=this.level=this.gP=this.Ia=this.V4=this.cz=this.Jl=this.Dg=this.eR=this.vW=this.lQ=this.vF=this.PY=this.BY=this.jt=this.dV=this.s9=0;this.lH=new qH.wg(1146);this.P$=new qH.wg(122);this.ac=new qH.wg(78);Zl(this.lH);Zl(this.P$);Zl(this.ac);this.YO=this.p6= this.MJ=null;this.f5=new qH.wg(16);this.nw=new qH.wg(573);Zl(this.nw);this.ub=this.L5=0;this.depth=new qH.wg(573);Zl(this.depth);this.jg=this.X5=this.h1=this.matches=this.fL=this.rK=this.Xf=this.PB=this.IF=this.mS=0}; uu8=function(A,L){if(!A||!A.state||L>5||L<0)return A?Rw(A,-2):-2;var B=A.state;if(!A.output||!A.input&&A.j6!==0||B.status===666&&L!==4)return Rw(A,A.Ke===0?-5:-2);B.E9=A;var f=B.Uu;B.Uu=L;if(B.status===42)if(B.wrap===2)A.FO=0,Iw(B,31),Iw(B,139),Iw(B,8),B.lr?(Iw(B,(B.lr.text?1:0)+(B.lr.Jq?2:0)+(B.lr.extra?4:0)+(B.lr.name?8:0)+(B.lr.comment?16:0)),Iw(B,B.lr.time&255),Iw(B,B.lr.time>>8&255),Iw(B,B.lr.time>>16&255),Iw(B,B.lr.time>>24&255),Iw(B,B.level===9?2:B.strategy>=2||B.level<2?4:0),Iw(B,B.lr.os& 255),B.lr.extra&&B.lr.extra.length&&(Iw(B,B.lr.extra.length&255),Iw(B,B.lr.extra.length>>8&255)),B.lr.Jq&&(A.FO=rn(A.FO,B.D0,B.pending,0)),B.d$=0,B.status=69):(Iw(B,0),Iw(B,0),Iw(B,0),Iw(B,0),Iw(B,0),Iw(B,B.level===9?2:B.strategy>=2||B.level<2?4:0),Iw(B,3),B.status=113);else{var K=8+(B.VA-8<<4)<<8;K|=(B.strategy>=2||B.level<2?0:B.level<6?1:B.level===6?2:3)<<6;B.Dg!==0&&(K|=32);B.status=113;wn(B,K+(31-K%31));B.Dg!==0&&(wn(B,A.FO>>>16),wn(B,A.FO&65535));A.FO=1}if(B.status===69)if(B.lr.extra){for(K= B.pending;B.d$<(B.lr.extra.length&65535)&&(B.pending!==B.WA||(B.lr.Jq&&B.pending>K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K)),Nv(A),K=B.pending,B.pending!==B.WA));)Iw(B,B.lr.extra[B.d$]&255),B.d$++;B.lr.Jq&&B.pending>K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K));B.d$===B.lr.extra.length&&(B.d$=0,B.status=73)}else B.status=73;if(B.status===73)if(B.lr.name){K=B.pending;do{if(B.pending===B.WA&&(B.lr.Jq&&B.pending>K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K)),Nv(A),K=B.pending,B.pending===B.WA)){var V=1;break}V=B.d$K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K));V===0&&(B.d$=0,B.status=91)}else B.status=91;if(B.status===91)if(B.lr.comment){K=B.pending;do{if(B.pending===B.WA&&(B.lr.Jq&&B.pending>K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K)),Nv(A),K=B.pending,B.pending===B.WA)){V=1;break}V=B.d$K&&(A.FO=rn(A.FO,B.D0,B.pending-K,K));V===0&&(B.status=103)}else B.status= 103;B.status===103&&(B.lr.Jq?(B.pending+2>B.WA&&Nv(A),B.pending+2<=B.WA&&(Iw(B,A.FO&255),Iw(B,A.FO>>8&255),A.FO=0,B.status=113)):B.status=113);if(B.pending!==0){if(Nv(A),A.Ke===0)return B.Uu=-1,0}else if(A.j6===0&&(L<<1)-(L>4?9:0)<=(f<<1)-(f>4?9:0)&&L!==4)return Rw(A,-5);if(B.status===666&&A.j6!==0)return Rw(A,-5);if(A.j6!==0||B.cz!==0||L!==0&&B.status!==666){f=B.strategy===2?nZk(B,L):B.strategy===3?ejD(B,L):tl[B.level].func(B,L);if(f===3||f===4)B.status=666;if(f===1||f===3)return A.Ke===0&&(B.Uu= -1),0;if(f===2&&(L===1?(zF(B,2,3),uk(B,256,FC),B.jg===16?(nK(B,B.X5),B.X5=0,B.jg=0):B.jg>=8&&(B.D0[B.pending++]=B.X5&255,B.X5>>=8,B.jg-=8)):L!==5&&(zF(B,0,3),MWD(B,0,0),L===3&&(Zl(B.head),B.cz===0&&(B.Dg=0,B.vF=0,B.h1=0))),Nv(A),A.Ke===0))return B.Uu=-1,0}if(L!==4)return 0;if(B.wrap<=0)return 1;B.wrap===2?(Iw(B,A.FO&255),Iw(B,A.FO>>8&255),Iw(B,A.FO>>16&255),Iw(B,A.FO>>24&255),Iw(B,A.yc&255),Iw(B,A.yc>>8&255),Iw(B,A.yc>>16&255),Iw(B,A.yc>>24&255)):(wn(B,A.FO>>>16),wn(B,A.FO&65535));Nv(A);B.wrap>0&& (B.wrap=-B.wrap);return B.pending!==0?0:1}; kR=function(A){if(!(this instanceof kR))return new kR(A);A=this.options=qH.assign({level:-1,method:8,chunkSize:16384,l8:15,Yvr:8,strategy:0,to:""},A||{});A.raw&&A.l8>0?A.l8=-A.l8:A.O8&&A.l8>0&&A.l8<16&&(A.l8+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.E9=new aaL;this.E9.Ke=0;var L=this.E9;var B=A.level,f=A.method,K=A.l8,V=A.Yvr,J=A.strategy;if(L){var R=1;B===-1&&(B=6);K<0?(R=0,K=-K):K>15&&(R=2,K-=16);if(V<1||V>9||f!==8||K<8||K>15||B<0||B>9||J<0||J>4)L=Rw(L,-2);else{K===8&&(K=9); var Z=new zjS;L.state=Z;Z.E9=L;Z.wrap=R;Z.lr=null;Z.VA=K;Z.RC=1<>=7;V<30;V++)for(KX[V]=J<<7,K=0;K<1<=N.RC&&(L===0&&(Zl(N.head),N.Dg=0,N.vF=0,N.h1=0),B=new qH.Vc(N.RC),qH.CJ(B,V,J-N.RC,N.RC,0),V=B,J=N.RC);B=A.j6;f=A.d2;K=A.input;A.j6=J;A.d2=0;A.input=V;for(s5(N);N.cz>=3;){V=N.Dg;J=N.cz-2;do N.s9=(N.s9<1?L[A[0]]=A[1]:A.length===1&&Object.assign(L,A[0])}; g.A_=function(A,L){return A in u8?u8[A]:L}; Lg=function(A){var L=u8.EXPERIMENT_FLAGS;return L?L[A]:void 0}; G9D=function(A){oM.forEach(function(L){return L(A)})}; g.fg=function(A){return A&&window.yterr?function(){try{return A.apply(this,arguments)}catch(L){g.B7(L)}}:A}; g.B7=function(A){var L=g.bB("yt.logging.errors.log");L?L(A,"ERROR",void 0,void 0,void 0,void 0,void 0):(L=g.A_("ERRORS",[]),L.push([A,"ERROR",void 0,void 0,void 0,void 0,void 0]),aw("ERRORS",L));G9D(A)}; Kg=function(A,L,B,f,K){var V=g.bB("yt.logging.errors.log");V?V(A,"WARNING",L,B,f,void 0,K):(V=g.A_("ERRORS",[]),V.push([A,"WARNING",L,B,f,void 0,K]),aw("ERRORS",V))}; Vh=function(A,L){L=A.split(L);for(var B={},f=0,K=L.length;f1?A[1]:A[0])):{}}; Zp=function(A,L){return hqk(A,L||{},!0)}; Ns=function(A,L){return hqk(A,L||{},!1)}; hqk=function(A,L,B){var f=A.split("#",2);A=f[0];f=f.length>1?"#"+f[1]:"";var K=A.split("?",2);A=K[0];K=I0(K[1]||"");for(var V in L)if(B||!g.kg(K,V))K[V]=L[V];return g.ip(A,K)+f}; Fa=function(A){if(!L)var L=window.location.href;var B=g.bp(A)[1]||null,f=g.tW(A);B&&f?(A=g.bp(A),L=g.bp(L),A=A[3]==L[3]&&A[1]==L[1]&&A[4]==L[4]):A=f?g.tW(L)===f&&(Number(g.bp(L)[4]||null)||null)===(Number(g.bp(A)[4]||null)||null):!0;return A}; Dp=function(A){A||(A=document.location.href);A=g.bp(A)[1]||null;return A!==null&&A==="https"}; dW=function(A){A=b88(A);return A===null?!1:A[0]==="com"&&A[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; ta0=function(A){A=b88(A);return A===null?!1:A[1]==="google"?!0:A[2]==="google"?A[0]==="au"&&A[1]==="com"?!0:A[0]==="uk"&&A[1]==="co"?!0:!1:!1}; b88=function(A){A=g.tW(A);return A!==null?A.split(".").reverse():null}; rUL=function(A){return A&&A.match(k91)?A:qw(A)}; pg=function(A){var L=IM;A=A===void 0?j$L():A;var B=Object,f=B.assign,K=wW(L);var V=L.N;try{var J=V.screenX;var R=V.screenY}catch(Q){}try{var Z=V.outerWidth;var N=V.outerHeight}catch(Q){}try{var F=V.innerWidth;var D=V.innerHeight}catch(Q){}try{var I=V.screenLeft;var d=V.screenTop}catch(Q){}try{F=V.innerWidth,D=V.innerHeight}catch(Q){}try{var w=V.screen.availWidth;var r=V.screen.availTop}catch(Q){}V=[I,d,J,R,w,r,Z,N,F,D];J=bve(!1,L.N.top);R={};var h=h===void 0?g.rI:h;Z=new PM;"SVGElement"in h&&"createElementNS"in h.document&&Z.set(0);N=cOD();N["allow-top-navigation-by-user-activation"]&&Z.set(1);N["allow-popups-to-escape-sandbox"]&&Z.set(2);h.crypto&&h.crypto.subtle&&Z.set(3);"TextDecoder"in h&&"TextEncoder"in h&&Z.set(4);h=fa1(Z);L=(R.bc=h,R.bih=J.height,R.biw=J.width,R.brdim=V.join(),R.vis=GV(L.W),R.wgl=!!qo.WebGLRenderingContext,R);B=f.call(B,K,L);B.ca_type="image";A&&(B.bid=A);return B}; wW=function(A){var L={};L.dt=TbC;L.flash="0";a:{try{var B=A.N.top.location.href}catch(N){A=2;break a}A=B?B===A.W.location.href?0:1:2}L=(L.frm=A,L);try{L.u_tz=-(new Date).getTimezoneOffset();try{var f=qo.history.length}catch(N){f=0}L.u_his=f;var K;L.u_h=(K=qo.screen)==null?void 0:K.height;var V;L.u_w=(V=qo.screen)==null?void 0:V.width;var J;L.u_ah=(J=qo.screen)==null?void 0:J.availHeight;var R;L.u_aw=(R=qo.screen)==null?void 0:R.availWidth;var Z;L.u_cd=(Z=qo.screen)==null?void 0:Z.colorDepth}catch(N){}return L}; mB8=function(){if(!lmE)return null;var A=lmE();return"open"in A?A:null}; g.jk=function(A){switch(yh(A)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; yh=function(A){return A&&"status"in A?A.status:-1}; g.gW=function(A,L){typeof A==="function"&&(A=g.fg(A));return window.setTimeout(A,L)}; g.Gc=function(A,L){typeof A==="function"&&(A=g.fg(A));return window.setInterval(A,L)}; g.rW=function(A){window.clearTimeout(A)}; g.sQ=function(A){window.clearInterval(A)}; g.h_=function(A){A=H7(A);return typeof A==="string"&&A==="false"?!1:!!A}; g.bl=function(A,L){A=H7(A);return A===void 0&&L!==void 0?L:Number(A||0)}; t_=function(){return g.A_("EXPERIMENTS_TOKEN","")}; H7=function(A){return g.A_("EXPERIMENT_FLAGS",{})[A]}; kz=function(){for(var A=[],L=g.A_("EXPERIMENTS_FORCED_FLAGS",{}),B=g.m(Object.keys(L)),f=B.next();!f.done;f=B.next())f=f.value,A.push({key:f,value:String(L[f])});B=g.A_("EXPERIMENT_FLAGS",{});f=g.m(Object.keys(B));for(var K=f.next();!K.done;K=f.next())K=K.value,K.startsWith("force_")&&L[K]===void 0&&A.push({key:K,value:String(B[K])});return A}; Tc=function(A,L,B,f,K,V,J,R,Z){function N(){(F&&"readyState"in F?F.readyState:0)===4&&L&&g.fg(L)(F)} B=B===void 0?"GET":B;f=f===void 0?"":f;R=R===void 0?!1:R;var F=mB8();if(!F)return null;"onloadend"in F?F.addEventListener("loadend",N,!1):F.onreadystatechange=N;g.h_("debug_forward_web_query_parameters")&&(A=Q$7(A));F.open(B,A,!0);V&&(F.responseType=V);J&&(F.withCredentials=!0);B=B==="POST"&&(window.FormData===void 0||!(f instanceof FormData));if(K=CXk(A,K))for(var D in K)F.setRequestHeader(D,K[D]),"content-type"===D.toLowerCase()&&(B=!1);B&&F.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); Z&&"onprogress"in F&&(F.onprogress=function(){Z(F.responseText)}); if(R&&"setAttributionReporting"in XMLHttpRequest.prototype){A={eventSourceEligible:!0,triggerEligible:!1};try{F.setAttributionReporting(A)}catch(I){Kg(I)}}F.send(f);return F}; CXk=function(A,L){L=L===void 0?{}:L;var B=Fa(A),f=g.A_("INNERTUBE_CLIENT_NAME"),K=g.h_("web_ajax_ignore_global_headers_if_set"),V;for(V in i8E){var J=g.A_(i8E[V]),R=V==="X-Goog-AuthUser"||V==="X-Goog-PageId";V!=="X-Goog-Visitor-Id"||J||(J=g.A_("VISITOR_DATA"));var Z;if(!(Z=!J)){if(!(Z=B||(g.tW(A)?!1:!0))){Z=A;var N;if(N=g.h_("add_auth_headers_to_remarketing_google_dot_com_ping")&&V==="Authorization"&&(f==="TVHTML5"||f==="TVHTML5_UNPLUGGED"||f==="TVHTML5_SIMPLY")&&ta0(Z))Z=ks(Z)||"",Z=Z.split("/"), Z="/"+(Z.length>1?Z[1]:""),N=Z==="/pagead";Z=N?!0:!1}Z=!Z}Z||K&&L[V]!==void 0||f==="TVHTML5_UNPLUGGED"&&R||(L[V]=J)}"X-Goog-EOM-Visitor-Id"in L&&"X-Goog-Visitor-Id"in L&&delete L["X-Goog-Visitor-Id"];if(B||!g.tW(A))L["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(B||!g.tW(A)){try{var F=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(D){}F&&(L["X-YouTube-Time-Zone"]=F)}document.location.hostname.endsWith("youtubeeducation.com")||!B&&g.tW(A)||(L["X-YouTube-Ad-Signals"]= J_(pg()));return L}; mM=function(A,L){L.method="POST";L.postParams||(L.postParams={});return g.ll(A,L)}; O8Q=function(A,L){if(window.fetch&&L.format!=="XML"){var B={method:L.method||"GET",credentials:"same-origin"};L.headers&&(B.headers=L.headers);L.priority&&(B.priority=L.priority);A=$B1(A,L);var f=XDC(A,L);f&&(B.body=f);L.withCredentials&&(B.credentials="include");var K=L.context||g.rI,V=!1,J;fetch(A,B).then(function(R){if(!V){V=!0;J&&g.rW(J);var Z=R.ok,N=function(F){F=F||{};Z?L.onSuccess&&L.onSuccess.call(K,F,R):L.onError&&L.onError.call(K,F,R);L.onFinish&&L.onFinish.call(K,F,R)}; (L.format||"JSON")==="JSON"&&(Z||R.status>=400&&R.status<500)?R.json().then(N,function(){N(null)}):N(null)}}).catch(function(){L.onError&&L.onError.call(K,{},{})}); A=L.timeout||0;L.onFetchTimeout&&A>0&&(J=g.gW(function(){V||(V=!0,g.rW(J),L.onFetchTimeout.call(L.context||g.rI))},A))}else g.ll(A,L)}; g.ll=function(A,L){var B=L.format||"JSON";A=$B1(A,L);var f=XDC(A,L),K=!1,V=EA0(A,function(Z){if(!K){K=!0;R&&g.rW(R);var N=g.jk(Z),F=null,D=400<=Z.status&&Z.status<500,I=500<=Z.status&&Z.status<600;if(N||D||I)F=cU8(A,B,Z,L.convertToSafeHtml);N&&(N=MaD(B,Z,F));F=F||{};D=L.context||g.rI;N?L.onSuccess&&L.onSuccess.call(D,Z,F):L.onError&&L.onError.call(D,Z,F);L.onFinish&&L.onFinish.call(D,Z,F)}},L.method,f,L.headers,L.responseType,L.withCredentials,!1,L.onProgress); f=L.timeout||0;if(L.onTimeout&&f>0){var J=L.onTimeout;var R=g.gW(function(){K||(K=!0,V.abort(),g.rW(R),J.call(L.context||g.rI,V))},f)}return V}; $B1=function(A,L){L.includeDomain&&(A=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+A);var B=g.A_("XSRF_FIELD_NAME");if(L=L.urlParams)L[B]&&delete L[B],A=Zp(A,L);return A}; XDC=function(A,L){var B=g.A_("XSRF_FIELD_NAME"),f=g.A_("XSRF_TOKEN"),K=L.postBody||"",V=L.postParams,J=g.A_("XSRF_FIELD_NAME"),R;L.headers&&(R=L.headers["Content-Type"]);L.excludeXsrf||g.tW(A)&&!L.withCredentials&&g.tW(A)!==document.location.hostname||L.method!=="POST"||R&&R!=="application/x-www-form-urlencoded"||L.postParams&&L.postParams[J]||(V||(V={}),V[B]=f);(g.h_("ajax_parse_query_data_only_when_filled")&&V&&Object.keys(V).length>0||V)&&typeof K==="string"&&(K=I0(K),g.Xc(K,V),K=L.postBodyFormat&& L.postBodyFormat==="JSON"?JSON.stringify(K):g.CC(K));V=K||V&&!g.mi(V);!YEe&&V&&L.method!=="POST"&&(YEe=!0,g.B7(Error("AJAX request with postData should use POST")));return K}; cU8=function(A,L,B,f){var K=null;switch(L){case "JSON":try{var V=B.responseText}catch(J){throw f=Error("Error reading responseText"),f.params=A,Kg(f),J;}A=B.getResponseHeader("Content-Type")||"";V&&A.indexOf("json")>=0&&(V.substring(0,5)===")]}'\n"&&(V=V.substring(5)),K=JSON.parse(V));break;case "XML":if(A=(A=B.responseXML)?UB8(A):null)K={},g.yB(A.getElementsByTagName("*"),function(J){K[J.tagName]=WNE(J)})}f&&vAe(K); return K}; vAe=function(A){if(g.QK(A))for(var L in A)L==="html_content"||dXQ(L,"_html")?A[L]=lO(A[L]):vAe(A[L])}; MaD=function(A,L,B){if(L&&L.status===204)return!0;switch(A){case "JSON":return!!B;case "XML":return Number(B&&B.return_code)===0;case "RAW":return!0;default:return!!B}}; UB8=function(A){return A?(A=("responseXML"in A?A.responseXML:A).getElementsByTagName("root"))&&A.length>0?A[0]:null:null}; WNE=function(A){var L="";g.yB(A.childNodes,function(B){L+=B.nodeValue}); return L}; Q$7=function(A){var L=window.location.search,B=g.tW(A);g.h_("debug_handle_relative_url_for_query_forward_killswitch")||!B&&Fa(A)&&(B=document.location.hostname);var f=ks(A);f=(B=B&&(B.endsWith("youtube.com")||B.endsWith("youtube-nocookie.com")))&&f&&f.startsWith("/api/");if(!B||f)return A;var K=I0(L),V={};g.yB(qEL,function(J){K[J]&&(V[J]=K[J])}); return Ns(A,V)}; Cg=function(A,L){var B=g.is(L),f;return(new g.QX(function(K,V){B.onSuccess=function(J){g.jk(J)?K(new PXD(J)):V(new Qh("Request failed, status="+yh(J),"net.badstatus",J))}; B.onError=function(J){V(new Qh("Unknown request error","net.unknown",J))}; B.onTimeout=function(J){V(new Qh("Request timed out","net.timeout",J))}; f=g.ll(A,B)})).c9(function(K){if(K instanceof EE){var V; (V=f)==null||V.abort()}return $A(K)})}; g.il=function(A,L,B,f,K,V){function J(Z,N,F){return Z.c9(function(D){if(N<=0||yh(D.xhr)===403)return $A(new Qh("Request retried too many times","net.retryexhausted",D.xhr,D));var I=Math.pow(2,B-N+1)*F,d=K>0?Math.min(K,I):I;return R(F).then(function(){V&&V(D,N-1);return J(Cg(A,L),N-1,d)})})} function R(Z){return new g.QX(function(N){setTimeout(N,Z)})} K=K===void 0?-1:K;return J(Cg(A,L),B-1,f)}; Qh=function(A,L,B){Ww.call(this,A+", errorCode="+L);this.errorCode=L;this.xhr=B;this.name="PromiseAjaxError"}; PXD=function(A){this.xhr=A}; $z=function(A){this.N=A===void 0?null:A;this.V=0;this.W=null}; Xa=function(A){var L=new $z;A=A===void 0?null:A;L.V=2;L.W=A===void 0?null:A;return L}; OQ=function(A){var L=new $z;A=A===void 0?null:A;L.V=1;L.W=A===void 0?null:A;return L}; g.Ms=function(A,L,B,f,K){EQ||c7.set(""+A,L,{rG:B,path:"/",domain:f===void 0?"youtube.com":f,secure:K===void 0?!1:K})}; g.Yz=function(A,L){if(!EQ)return c7.get(""+A,L)}; g.UQ=function(A,L,B){EQ||c7.remove(""+A,L===void 0?"/":L,B===void 0?"youtube.com":B)}; xBk=function(){if(!c7.isEnabled())return!1;if(!c7.isEmpty())return!0;c7.set("TESTCOOKIESENABLED","1",{rG:60});if(c7.get("TESTCOOKIESENABLED")!=="1")return!1;c7.remove("TESTCOOKIESENABLED");return!0}; g.y=function(A,L){if(A)return A[L.name]}; W7=function(A){var L=g.A_("INNERTUBE_HOST_OVERRIDE");L&&(A=String(L)+String(Tr(A)));return A}; eqS=function(A){var L={};g.h_("json_condensed_response")&&(L.prettyPrint="false");return A=Ns(A,L)}; v7=function(A,L){var B=B===void 0?{}:B;A={method:L===void 0?"POST":L,mode:Fa(A)?"same-origin":"cors",credentials:Fa(A)?"same-origin":"include"};L={};for(var f=g.m(Object.keys(B)),K=f.next();!K.done;K=f.next())K=K.value,B[K]&&(L[K]=B[K]);Object.keys(L).length>0&&(A.headers=L);return A}; qs=function(){var A=/Chrome\/(\d+)/.exec(g.fa());return A?parseFloat(A[1]):NaN}; P7=function(){var A=/\sCobalt\/(\S+)\s/.exec(g.fa());if(!A)return NaN;var L=[];A=g.m(A[1].split("."));for(var B=A.next();!B.done;B=A.next())B=parseInt(B.value,10),B>=0&&L.push(B);return parseFloat(L.join("."))}; ek=function(){return g.xz("android")&&g.xz("chrome")&&!(g.xz("trident/")||g.xz("edge/"))&&!g.xz("cobalt")}; g.ng=function(){return g.xz("cobalt")}; zc=function(){return g.xz("cobalt")&&g.xz("appletv")}; ul=function(){return g.xz("(ps3; leanback shell)")||g.xz("ps3")&&g.ng()}; nAL=function(){return g.xz("(ps4; leanback shell)")||g.xz("ps4")&&g.ng()}; g.zqD=function(){return g.ng()&&(g.xz("ps4 vr")||g.xz("ps4 pro vr"))}; aM=function(){var A=/WebKit\/([0-9]+)/.exec(g.fa());return!!(A&&parseInt(A[1],10)>=600)}; AK=function(){var A=/WebKit\/([0-9]+)/.exec(g.fa());return!!(A&&parseInt(A[1],10)>=602)}; ut7=function(){return g.xz("iemobile")||g.xz("windows phone")&&g.xz("edge")}; B9=function(){return(Ln||oX)&&g.xz("applewebkit")&&!g.xz("version")&&(!g.xz("safari")||g.xz("gsa/"))}; Kn=function(){return g.fn&&g.xz("version/")}; Vz=function(){return g.xz("smart-tv")&&g.xz("samsung")}; g.xz=function(A){var L=g.fa();return L?L.toLowerCase().indexOf(A)>=0:!1}; JK=function(){return kIw()||B9()||Kn()?!0:g.A_("EOM_VISITOR_DATA")?!1:!0}; Sw=function(A,L){return L===void 0||L===null?A:L==="1"||L===!0||L===1||L==="True"?!0:!1}; RX=function(A,L,B){for(var f in B)if(B[f]==L)return B[f];return A}; ZG=function(A,L){return L===void 0||L===null?A:Number(L)}; NE=function(A,L){return L===void 0||L===null?A:L.toString()}; F$=function(A,L){if(L){if(A==="fullwidth")return Infinity;if(A==="fullheight")return 0}return A&&(L=A.match(amy))&&(A=Number(L[2]),L=Number(L[1]),!isNaN(A)&&!isNaN(L)&&A>0)?L/A:NaN}; DG=function(A){var L=A.docid||A.video_id||A.videoId||A.id;if(L)return L;L=A.raw_player_response;L||(A=A.player_response)&&(L=JSON.parse(A));return L&&L.videoDetails&&L.videoDetails.videoId||null}; Auv=function(A){return dL(A,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.IX=function(A){return A==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||A==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; dL=function(A,L){L=(L===void 0?0:L)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(L="EMBEDDED_PLAYER_MODE_PFL");var B=A.raw_embedded_player_response;if(!B&&(A=A.embedded_player_response))try{B=JSON.parse(A)}catch(f){return L}return B?RX(L,B.embeddedPlayerMode,L71):L}; pn=function(A){Ww.call(this,A.message||A.description||A.name);this.isMissing=A instanceof wL;this.isTimeout=A instanceof Qh&&A.errorCode=="net.timeout";this.isCanceled=A instanceof EE}; wL=function(){Ww.call(this,"Biscotti ID is missing from server")}; oMk=function(){if(g.h_("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!JK())return Error("User has not consented - not fetching biscotti id.");var A=g.A_("PLAYER_VARS",{});if(g.QB(A,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Auv(A))return Error("Biscotti id fetching has been disabled for pfl.")}; VAv=function(){var A=oMk();if(A!==void 0)return $A(A);yz||(yz=Cg("//googleads.g.doubleclick.net/pagead/id",Bsw).then(fH8).c9(function(L){return K7C(2,L)})); return yz}; fH8=function(A){A=A.xhr.responseText;if(!zk(A,")]}'"))throw new wL;A=JSON.parse(A.substr(4));if((A.type||1)>1)throw new wL;A=A.id;gAC(A);yz=OQ(A);JuL(18E5,2);return A}; K7C=function(A,L){L=new pn(L);gAC("");yz=Xa(L);A>0&&JuL(12E4,A-1);throw L;}; JuL=function(A,L){g.gW(function(){Cg("//googleads.g.doubleclick.net/pagead/id",Bsw).then(fH8,function(B){return K7C(L,B)}).c9(g.x9)},A)}; Skw=function(){try{var A=g.bB("yt.ads.biscotti.getId_");return A?A():VAv()}catch(L){return $A(L)}}; Z2D=function(A){A&&(A.dataset?A.dataset[Rv6()]="true":TIk(A))}; Ns8=function(A){return A?A.dataset?A.dataset[Rv6()]:A.getAttribute("data-loaded"):null}; Rv6=function(){return F7C.loaded||(F7C.loaded="loaded".replace(/\-([a-z])/g,function(A,L){return L.toUpperCase()}))}; DW8=function(){var A=document;if("visibilityState"in A)return A.visibilityState;var L=jw+"VisibilityState";if(L in A)return A[L]}; gL=function(A,L){var B;K9(A,function(f){B=L[f];return!!B}); return B}; GT=function(A){if(A.requestFullscreen)A=A.requestFullscreen(void 0);else if(A.webkitRequestFullscreen)A=A.webkitRequestFullscreen();else if(A.mozRequestFullScreen)A=A.mozRequestFullScreen();else if(A.msRequestFullscreen)A=A.msRequestFullscreen();else if(A.webkitEnterFullscreen)A=A.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return A instanceof Promise?A:Promise.resolve()}; H9=function(A){var L;g.rL()?sS()==A&&(L=document):L=A;return L&&(A=gL(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],L))?(L=A.call(L),L instanceof Promise?L:Promise.resolve()):Promise.resolve()}; dWQ=function(A){return g.Pw(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(L){return"on"+L.toLowerCase()in A})}; IH1=function(){var A=document;return g.Pw(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(L){return"on"+L.toLowerCase()in A})}; g.rL=function(){return!!gL(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; sS=function(A){A=A===void 0?!1:A;var L=gL(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(A)for(;L&&L.shadowRoot;)L=L.shadowRoot.fullscreenElement;return L?L:null}; hK=function(A){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(A=A||window.event){this.event=A;for(var L in A)L in wc0||(this[L]=A[L]);this.scale=A.scale;this.rotation=A.rotation;var B=A.target||A.srcElement;B&&B.nodeType==3&&(B=B.parentNode);this.target=B;var f=A.relatedTarget; if(f)try{f=f.nodeName?f:null}catch(K){f=null}else this.type=="mouseover"?f=A.fromElement:this.type=="mouseout"&&(f=A.toElement);this.relatedTarget=f;this.clientX=A.clientX!=void 0?A.clientX:A.pageX;this.clientY=A.clientY!=void 0?A.clientY:A.pageY;this.keyCode=A.keyCode?A.keyCode:A.which;this.charCode=A.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=A.altKey;this.ctrlKey=A.ctrlKey;this.shiftKey=A.shiftKey;this.metaKey=A.metaKey;this.N=A.pageX;this.W=A.pageY}}catch(K){}}; pcy=function(A){if(document.body&&document.documentElement){var L=document.body.scrollTop+document.documentElement.scrollTop;A.N=A.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);A.W=A.clientY+L}}; yu1=function(A,L,B,f){f=f===void 0?{}:f;A.addEventListener&&(L!="mouseenter"||"onmouseenter"in document?L!="mouseleave"||"onmouseenter"in document?L=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(L="MozMousePixelScroll"):L="mouseout":L="mouseover");return ls(bt,function(K){var V=typeof K[4]==="boolean"&&K[4]==!!f,J=g.QK(K[4])&&g.QK(f)&&g.Cx(K[4],f);return!!K.length&&K[0]==A&&K[1]==L&&K[2]==B&&(V||J)})}; g.tK=function(A,L,B,f){f=f===void 0?{}:f;if(!A||!A.addEventListener&&!A.attachEvent)return"";var K=yu1(A,L,B,f);if(K)return K;K=++jQ8.count+"";var V=!(L!="mouseenter"&&L!="mouseleave"||!A.addEventListener||"onmouseenter"in document);var J=V?function(R){R=new hK(R);if(!c4(R.relatedTarget,function(Z){return Z==A},!0))return R.currentTarget=A,R.type=L,B.call(A,R)}:function(R){R=new hK(R); R.currentTarget=A;return B.call(A,R)}; J=g.fg(J);A.addEventListener?(L=="mouseenter"&&V?L="mouseover":L=="mouseleave"&&V?L="mouseout":L=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(L="MozMousePixelScroll"),gML()||typeof f==="boolean"?A.addEventListener(L,J,f):A.addEventListener(L,J,!!f.capture)):A.attachEvent("on"+L,J);bt[K]=[A,L,B,J,f];return K}; ruC=function(A){return GXE(A,function(L){return g.SR(L,"ytp-ad-has-logging-urls")})}; GXE=function(A,L){var B=document.body||document;return g.tK(B,"click",function(f){var K=c4(f.target,function(V){return V===B||L(V)},!0); K&&K!==B&&!K.disabled&&(f.currentTarget=K,A.call(K,f))})}; g.k_=function(A){A&&(typeof A=="string"&&(A=[A]),g.yB(A,function(L){if(L in bt){var B=bt[L],f=B[0],K=B[1],V=B[3];B=B[4];f.removeEventListener?gML()||typeof B==="boolean"?f.removeEventListener(K,V,B):f.removeEventListener(K,V,!!B.capture):f.detachEvent&&f.detachEvent("on"+K,V);delete bt[L]}}))}; TT=function(A){for(var L in bt)bt[L][0]==A&&g.k_(L)}; lt=function(A){A=A||window.event;var L;A.composedPath&&typeof A.composedPath==="function"?L=A.composedPath():L=A.path;L&&L.length?A=L[0]:(A=A||window.event,A=A.target||A.srcElement,A.nodeType==3&&(A=A.parentNode));return A}; mu=function(A){this.X=A;this.N=null;this.U=0;this.T=null;this.D=0;this.W=[];for(A=0;A<4;A++)this.W.push(0);this.V=0;this.qp=g.tK(window,"mousemove",(0,g.X9)(this.yj,this));this.G=g.Gc((0,g.X9)(this.Wn,this),25)}; Qz=function(A){g.Y.call(this);this.T=[];this.mH=A||this}; Cn=function(A,L,B,f){for(var K=0;K0?B:0;B=f?Date.now()+f*1E3:0;if((f=f?g.X$.lT():g.X$.Lo())&&window.JSON){typeof L!=="string"&&(L=JSON.stringify(L,void 0));try{f.set(A,L,B)}catch(K){f.remove(A)}}}; g.ES=function(A){var L=g.X$.Lo(),B=g.X$.lT();if(!L&&!B||!window.JSON)return null;try{var f=L.get(A)}catch(K){}if(typeof f!=="string")try{f=B.get(A)}catch(K){}if(typeof f!=="string")return null;try{f=JSON.parse(f,void 0)}catch(K){}return f}; H2y=function(){var A=g.X$.lT();if(A&&(A=A.hY("yt-player-quality")))return A.creation}; g.c9=function(A){try{var L=g.X$.Lo(),B=g.X$.lT();L&&L.remove(A);B&&B.remove(A)}catch(f){}}; g.ME=function(){return g.ES("yt-remote-session-screen-id")}; hvy=function(A){var L=this;this.W=void 0;this.N=!1;A.addEventListener("beforeinstallprompt",function(B){B.preventDefault();L.W=B}); A.addEventListener("appinstalled",function(){L.N=!0},{once:!0})}; Y_=function(){if(!g.rI.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.rI.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.rI.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.rI.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.rI.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(A){return"WEB_DISPLAY_MODE_UNKNOWN"}}; US=function(){this.qH=!0}; b21=function(){US.instance||(US.instance=new US);return US.instance}; tA0=function(A){switch(A){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}}; kX6=function(){this.N=g.A_("ALT_PREF_COOKIE_NAME","PREF");this.W=g.A_("ALT_PREF_COOKIE_DOMAIN","youtube.com");var A=g.Yz(this.N);A&&this.parse(A)}; g.v9=function(){W9||(W9=new kX6);return W9}; P9=function(A,L){var B="f"+(Math.floor(A/31)+1);A=1<10&&Z3.shift()))}; F4=function(A,L){Sd||(Rl?Rl.logEvent(A,L):(Z3.push({type:"EVENT",eventType:A,payload:L}),Z3.length>10&&Z3.shift()))}; D3=function(A){if(A.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; d2=function(A){return A.substr(0,A.indexOf(":"))||A}; g.Il=function(A,L,B,f,K){L=L===void 0?{}:L;B=B===void 0?XcQ[A]:B;f=f===void 0?O2w[A]:f;K=K===void 0?EMQ[A]:K;g.iL.call(this,B,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:A},L));this.type=A;this.message=B;this.level=f;this.N=K;Object.setPrototypeOf(this,g.Il.prototype)}; w2=function(A,L){g.Il.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:L,foundObjectStores:A},XcQ.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,w2.prototype)}; ps=function(A,L){var B=Error.call(this);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.index=A;this.objectStore=L;Object.setPrototypeOf(this,ps.prototype)}; jd=function(A,L,B,f){L=d2(L);var K=A instanceof Error?A:Error("Unexpected error: "+A);if(K instanceof g.Il)return K;A={objectStoreNames:B,dbName:L,dbVersion:f};if(K.name==="QuotaExceededError")return new g.Il("QUOTA_EXCEEDED",A);if(g.yw&&K.name==="UnknownError")return new g.Il("QUOTA_MAYBE_EXCEEDED",A);if(K instanceof ps)return new g.Il("MISSING_INDEX",Object.assign({},A,{objectStore:K.objectStore,index:K.index}));if(K.name==="InvalidStateError"&&cuL.some(function(V){return K.message.includes(V)}))return new g.Il("EXECUTE_TRANSACTION_ON_CLOSED_DB", A); if(K.name==="AbortError")return new g.Il("UNKNOWN_ABORT",A,K.message);K.args=[Object.assign({},A,{name:"IdbError",YK:K.name})];K.level="WARNING";return K}; g.g2=function(A,L,B){var f=JR();return new g.Il("IDB_NOT_SUPPORTED",{context:{caller:A,publicName:L,version:B,hasSucceededOnce:f==null?void 0:f.hasSucceededOnce}})}; MAQ=function(A){if(!A)throw Error();throw A;}; Ykv=function(A){return A}; GU=function(A){this.N=A}; g.r2=function(A){function L(K){if(f.state.status==="PENDING"){f.state={status:"REJECTED",reason:K};K=g.m(f.W);for(var V=K.next();!V.done;V=K.next())V=V.value,V()}} function B(K){if(f.state.status==="PENDING"){f.state={status:"FULFILLED",value:K};K=g.m(f.N);for(var V=K.next();!V.done;V=K.next())V=V.value,V()}} var f=this;this.state={status:"PENDING"};this.N=[];this.W=[];A=A.N;try{A(B,L)}catch(K){L(K)}}; UWk=function(A,L,B,f,K){try{if(A.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var V=B(A.state.value);V instanceof g.r2?s_(A,L,V,f,K):f(V)}catch(J){K(J)}}; W7E=function(A,L,B,f,K){try{if(A.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var V=B(A.state.reason);V instanceof g.r2?s_(A,L,V,f,K):f(V)}catch(J){K(J)}}; s_=function(A,L,B,f,K){L===B?K(new TypeError("Circular promise chain detected.")):B.then(function(V){V instanceof g.r2?s_(A,L,V,f,K):f(V)},function(V){K(V)})}; vMv=function(A,L,B){function f(){B(A.error);V()} function K(){L(A.result);V()} function V(){try{A.removeEventListener("success",K),A.removeEventListener("error",f)}catch(J){}} A.addEventListener("success",K);A.addEventListener("error",f)}; qky=function(A){return new Promise(function(L,B){vMv(A,L,B)})}; Hf=function(A){return new g.r2(new GU(function(L,B){vMv(A,L,B)}))}; hR=function(A,L){return new g.r2(new GU(function(B,f){function K(){var V=A?L(A):null;V?V.then(function(J){A=J;K()},f):B()} K()}))}; P0w=function(A,L){this.request=A;this.cursor=L}; xWC=function(A){return Hf(A).then(function(L){return L?new P0w(A,L):null})}; g.evw=function(A){A.cursor.continue(void 0);return xWC(A.request)}; nMD=function(A,L){this.N=A;this.options=L;this.transactionCount=0;this.V=Math.round((0,g.bc)());this.W=!1}; tR=function(){return g.h_("idb_immediate_commit")}; g.TU=function(A,L,B){A=A.N.createObjectStore(L,B);return new kL(A)}; lc=function(A,L){A.N.objectStoreNames.contains(L)&&A.N.deleteObjectStore(L)}; g.Cs=function(A,L,B){return g.mz(A,[L],{mode:"readwrite",Ev:!0,commit:tR()},function(f){return g.Qw(f.objectStore(L),B)})}; g.mz=function(A,L,B,f){var K,V,J,R,Z,N,F,D,I,d,w,r;return g.c(function(h){switch(h.N){case 1:var Q={mode:"readonly",Ev:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof B==="string"?Q.mode=B:Object.assign(Q,B);K=Q;A.transactionCount++;V=K.Ev?3:1;J=0;case 2:if(R){h.Ux(4);break}J++;Z=Math.round((0,g.bc)());g.S5(h,5);N=A.N.transaction(L,K.mode);Q=!!K.commit;var l=new ic(N);Q=zv7(l,f,Q);return g.X(h,Q,7);case 7:return F=h.W,D=Math.round((0,g.bc)()),umw(A,Z,D,J,void 0,L.join(),K),h.return(F);case 5:I=g.NX(h); d=Math.round((0,g.bc)());w=jd(I,A.N.name,L.join(),A.N.version);if((r=w instanceof g.Il&&!w.N)||J>=V)umw(A,Z,d,J,w,L.join(),K),R=w;h.Ux(2);break;case 4:return h.return(Promise.reject(R))}})}; umw=function(A,L,B,f,K,V,J){L=B-L;K?(K instanceof g.Il&&(K.type==="QUOTA_EXCEEDED"||K.type==="QUOTA_MAYBE_EXCEEDED")&&F4("QUOTA_EXCEEDED",{dbName:d2(A.N.name),objectStoreNames:V,transactionCount:A.transactionCount,transactionMode:J.mode}),K instanceof g.Il&&K.type==="UNKNOWN_ABORT"&&(B-=A.V,B<0&&B>=2147483648&&(B=0),F4("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:V,transactionDuration:L,transactionCount:A.transactionCount,dbDuration:B}),A.W=!0),aHE(A,!1,f,V,L,J.tag),Nx(K)):aHE(A,!0,f,V,L, J.tag)}; aHE=function(A,L,B,f,K,V){F4("TRANSACTION_ENDED",{objectStoreNames:f,connectionHasUnknownAbortedTransaction:A.W,duration:K,isSuccessful:L,tryCount:B,tag:V===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":V})}; kL=function(A){this.N=A}; g.$L=function(A,L,B){A.N.createIndex(L,B,{unique:!1})}; AXL=function(A,L){return g.X4(A,{query:L},function(B){return B.delete().then(function(){return g.O_(B)})}).then(function(){})}; LKE=function(A,L,B){var f=[];return g.X4(A,{query:L},function(K){if(!(B!==void 0&&f.length>=B))return f.push(K.getValue()),g.O_(K)}).then(function(){return f})}; BlS=function(A){return"getAllKeys"in IDBObjectStore.prototype?Hf(A.N.getAllKeys(void 0,void 0)):owe(A)}; owe=function(A){var L=[];return g.ft6(A,{query:void 0},function(B){L.push(B.cursor.primaryKey);return g.evw(B)}).then(function(){return L})}; g.Qw=function(A,L,B){return Hf(A.N.put(L,B))}; g.X4=function(A,L,B){A=A.N.openCursor(L.query,L.direction);return E_(A).then(function(f){return hR(f,B)})}; g.ft6=function(A,L,B){var f=L.query;L=L.direction;A="openKeyCursor"in IDBObjectStore.prototype?A.N.openKeyCursor(f,L):A.N.openCursor(f,L);return xWC(A).then(function(K){return hR(K,B)})}; ic=function(A){var L=this;this.N=A;this.W=new Map;this.aborted=!1;this.done=new Promise(function(B,f){L.N.addEventListener("complete",function(){B()}); L.N.addEventListener("error",function(K){K.currentTarget===K.target&&f(L.N.error)}); L.N.addEventListener("abort",function(){var K=L.N.error;if(K)f(K);else if(!L.aborted){K=g.Il;for(var V=L.N.objectStoreNames,J=[],R=0;R=B))return f.push(K.getValue()),g.O_(K)}).then(function(){return f})}; g.cf=function(A,L,B){A=A.N.openCursor(L.query===void 0?null:L.query,L.direction===void 0?"next":L.direction);return E_(A).then(function(f){return hR(f,B)})}; Mx=function(A,L){this.request=A;this.cursor=L}; E_=function(A){return Hf(A).then(function(L){return L?new Mx(A,L):null})}; g.O_=function(A){A.cursor.continue(void 0);return E_(A.request)}; JXv=function(A,L,B){return new Promise(function(f,K){function V(){I||(I=new nMD(J.result,{closed:D}));return I} var J=L!==void 0?self.indexedDB.open(A,L):self.indexedDB.open(A);var R=B.blocked,Z=B.blocking,N=B.P0r,F=B.upgrade,D=B.closed,I;J.addEventListener("upgradeneeded",function(d){try{if(d.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(J.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");d.dataLoss&&d.dataLoss!=="none"&&F4("IDB_DATA_CORRUPTED",{reason:d.dataLossMessage||"unknown reason",dbName:d2(A)});var w=V(),r=new ic(J.transaction); F&&F(w,function(h){return d.oldVersion=h},r); r.done.catch(function(h){K(h)})}catch(h){K(h)}}); J.addEventListener("success",function(){var d=J.result;Z&&d.addEventListener("versionchange",function(){Z(V())}); d.addEventListener("close",function(){F4("IDB_UNEXPECTEDLY_CLOSED",{dbName:d2(A),dbVersion:d.version});N&&N()}); f(V())}); J.addEventListener("error",function(){K(J.error)}); R&&J.addEventListener("blocked",function(){R()})})}; SB7=function(A,L,B){B=B===void 0?{}:B;return JXv(A,L,B)}; YL=function(A,L){L=L===void 0?{}:L;var B,f,K,V;return g.c(function(J){if(J.N==1)return g.S5(J,2),B=self.indexedDB.deleteDatabase(A),f=L,(K=f.blocked)&&B.addEventListener("blocked",function(){K()}),g.X(J,qky(B),4); if(J.N!=2)return g.ZR(J,0);V=g.NX(J);throw jd(V,A,"",-1);})}; U_=function(A,L){this.name=A;this.options=L;this.V=!0;this.D=this.U=0}; RM8=function(A,L){return new g.Il("INCOMPATIBLE_DB_VERSION",{dbName:A.name,oldVersion:A.options.version,newVersion:L})}; g.Wf=function(A,L){if(!L)throw g.g2("openWithToken",d2(A.name));return A.open()}; ZeD=function(A,L){var B;return g.c(function(f){if(f.N==1)return g.X(f,g.Wf(vf,L),2);B=f.W;return f.return(g.mz(B,["databases"],{Ev:!0,mode:"readwrite"},function(K){var V=K.objectStore("databases");return V.get(A.actualName).then(function(J){if(J?A.actualName!==J.actualName||A.publicName!==J.publicName||A.userIdentifier!==J.userIdentifier:1)return g.Qw(V,A).then(function(){})})}))})}; qx=function(A,L){var B;return g.c(function(f){if(f.N==1)return A?g.X(f,g.Wf(vf,L),2):f.return();B=f.W;return f.return(B.delete("databases",A))})}; Nlk=function(A,L){var B,f;return g.c(function(K){return K.N==1?(B=[],g.X(K,g.Wf(vf,L),2)):K.N!=3?(f=K.W,g.X(K,g.mz(f,["databases"],{Ev:!0,mode:"readonly"},function(V){B.length=0;return g.X4(V.objectStore("databases"),{},function(J){A(J.getValue())&&B.push(J.getValue());return g.O_(J)})}),3)):K.return(B)})}; FK0=function(A,L){return Nlk(function(B){return B.publicName===A&&B.userIdentifier!==void 0},L)}; DT7=function(){var A,L,B,f;return g.c(function(K){switch(K.N){case 1:A=JR();if((L=A)==null?0:L.hasSucceededOnce)return K.return(!0);if(ed&&aM()&&!AK()||g.ns)return K.return(!1);try{if(B=self,!(B.indexedDB&&B.IDBIndex&&B.IDBKeyRange&&B.IDBObjectStore))return K.return(!1)}catch(V){return K.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return K.return(!1);g.S5(K,2);f={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.X(K,ZeD(f,zU),4);case 4:return g.X(K,qx("yt-idb-test-do-not-use",zU),5);case 5:return K.return(!0);case 2:return g.NX(K),K.return(!1)}})}; dTL=function(){if(uc!==void 0)return uc;Sd=!0;return uc=DT7().then(function(A){Sd=!1;var L;if((L=Vw())!=null&&L.N){var B;L={hasSucceededOnce:((B=JR())==null?void 0:B.hasSucceededOnce)||A};var f;(f=Vw())==null||f.set("LAST_RESULT_ENTRY_KEY",L,2592E3,!0)}return A})}; al=function(){return g.bB("ytglobal.idbToken_")||void 0}; g.Ab=function(){var A=al();return A?Promise.resolve(A):dTL().then(function(L){(L=L?zU:void 0)&&g.hf("ytglobal.idbToken_",L);return L})}; ItC=function(A){if(!g.zT())throw A=new g.Il("AUTH_INVALID",{dbName:A}),Nx(A),A;var L=g.nn();return{actualName:A+":"+L,publicName:A,userIdentifier:L}}; wMv=function(A,L,B,f){var K,V,J,R,Z,N;return g.c(function(F){switch(F.N){case 1:return V=(K=Error().stack)!=null?K:"",g.X(F,g.Ab(),2);case 2:J=F.W;if(!J)throw R=g.g2("openDbImpl",A,L),g.h_("ytidb_async_stack_killswitch")||(R.stack=R.stack+"\n"+V.substring(V.indexOf("\n")+1)),Nx(R),R;D3(A);Z=B?{actualName:A,publicName:A,userIdentifier:void 0}:ItC(A);g.S5(F,3);return g.X(F,ZeD(Z,J),5);case 5:return g.X(F,SB7(Z.actualName,L,f),6);case 6:return F.return(F.W);case 3:return N=g.NX(F),g.S5(F,7),g.X(F,qx(Z.actualName, J),9);case 9:g.ZR(F,8);break;case 7:g.NX(F);case 8:throw N;}})}; pML=function(A,L,B){B=B===void 0?{}:B;return wMv(A,L,!1,B)}; yXQ=function(A,L,B){B=B===void 0?{}:B;return wMv(A,L,!0,B)}; jaS=function(A,L){L=L===void 0?{}:L;var B,f;return g.c(function(K){if(K.N==1)return g.X(K,g.Ab(),2);if(K.N!=3){B=K.W;if(!B)return K.return();D3(A);f=ItC(A);return g.X(K,YL(f.actualName,L),3)}return g.X(K,qx(f.actualName,B),0)})}; gwE=function(A,L,B){A=A.map(function(f){return g.c(function(K){return K.N==1?g.X(K,YL(f.actualName,L),2):g.X(K,qx(f.actualName,B),0)})}); return Promise.all(A).then(function(){})}; G7E=function(A){var L=L===void 0?{}:L;var B,f;return g.c(function(K){if(K.N==1)return g.X(K,g.Ab(),2);if(K.N!=3){B=K.W;if(!B)return K.return();D3(A);return g.X(K,FK0(A,B),3)}f=K.W;return g.X(K,gwE(f,L,B),0)})}; rX0=function(A,L){L=L===void 0?{}:L;var B;return g.c(function(f){if(f.N==1)return g.X(f,g.Ab(),2);if(f.N!=3){B=f.W;if(!B)return f.return();D3(A);return g.X(f,YL(A,L),3)}return g.X(f,qx(A,B),0)})}; L4=function(A,L){U_.call(this,A,L);this.options=L;D3(A)}; sa1=function(A,L){var B;return function(){B||(B=new L4(A,L));return B}}; g.oI=function(A,L){return sa1(A,L)}; Ba=function(A){return g.Wf(HeE(),A)}; hMC=function(A,L,B,f){var K,V,J;return g.c(function(R){switch(R.N){case 1:return K={config:A,hashData:L,timestamp:f!==void 0?f:(0,g.bc)()},g.X(R,Ba(B),2);case 2:return V=R.W,g.X(R,V.clear("hotConfigStore"),3);case 3:return g.X(R,g.Cs(V,"hotConfigStore",K),4);case 4:return J=R.W,R.return(J)}})}; bey=function(A,L,B,f,K){var V,J,R;return g.c(function(Z){switch(Z.N){case 1:return V={config:A,hashData:L,configData:B,timestamp:K!==void 0?K:(0,g.bc)()},g.X(Z,Ba(f),2);case 2:return J=Z.W,g.X(Z,J.clear("coldConfigStore"),3);case 3:return g.X(Z,g.Cs(J,"coldConfigStore",V),4);case 4:return R=Z.W,Z.return(R)}})}; tFL=function(A){var L,B;return g.c(function(f){return f.N==1?g.X(f,Ba(A),2):f.N!=3?(L=f.W,B=void 0,g.X(f,g.mz(L,["coldConfigStore"],{mode:"readwrite",Ev:!0},function(K){return g.cf(K.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(V){B=V.getValue()})}),3)):f.return(B)})}; k7y=function(A){var L,B;return g.c(function(f){return f.N==1?g.X(f,Ba(A),2):f.N!=3?(L=f.W,B=void 0,g.X(f,g.mz(L,["hotConfigStore"],{mode:"readwrite",Ev:!0},function(K){return g.cf(K.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(V){B=V.getValue()})}),3)):f.return(B)})}; Tl1=function(){return g.c(function(A){return g.X(A,G7E("ytGcfConfig"),0)})}; f4=function(){g.Y.call(this);this.W=[];this.N=[];var A=g.bB("yt.gcf.config.hotUpdateCallbacks");A?(this.W=[].concat(g.x7(A)),this.N=A):(this.N=[],g.hf("yt.gcf.config.hotUpdateCallbacks",this.N))}; Zu=function(){var A=this;this.D=!1;this.V=this.U=0;this.T=new f4;this.GV={OuT:function(){A.D=!0}, Quj:function(){return A.N}, VTr:function(L){K4(A,L)}, K3:function(L){A.K3(L)}, WMn:function(L){Vf(A,L)}, Fd:function(){return A.coldHashData}, J4:function(){return A.hotHashData}, l9p:function(){return A.W}, LLs:function(){return Jb()}, N6x:function(){return S_()}, dT1:function(){return g.bB("yt.gcf.config.coldHashData")}, yqM:function(){return g.bB("yt.gcf.config.hotHashData")}, rIM:function(){lt8(A)}, oDL:function(){A.K3(void 0);RI(A);delete Zu.instance}, Iur:function(L){A.V=L}, cVT:function(){return A.V}}}; mT0=function(){if(!Zu.instance){var A=new Zu;Zu.instance=A}return Zu.instance}; ieC=function(A){var L;g.c(function(B){if(B.N==1)return g.h_("start_client_gcf")||g.h_("delete_gcf_config_db")?g.h_("start_client_gcf")?g.X(B,g.Ab(),3):B.Ux(2):B.return();B.N!=2&&((L=B.W)&&g.zT()&&!g.h_("delete_gcf_config_db")?(A.D=!0,lt8(A)):(QaL(A),CNL(A)));return g.h_("delete_gcf_config_db")?g.X(B,Tl1(),0):B.Ux(0)})}; NJ=function(){var A;return(A=S_())!=null?A:g.A_("RAW_HOT_CONFIG_GROUP")}; $T8=function(A){var L,B,f,K,V,J;return g.c(function(R){switch(R.N){case 1:if(A.W)return R.return(S_());if(!A.D)return L=g.g2("getHotConfig IDB not initialized"),Kg(L),R.return(Promise.reject(L));B=al();f=g.A_("TIME_CREATED_MS");if(!B){K=g.g2("getHotConfig token error");Kg(K);R.Ux(2);break}return g.X(R,k7y(B),3);case 3:if((V=R.W)&&V.timestamp>f)return K4(A,V.config),A.K3(V.hashData),R.return(S_());case 2:CNL(A);if(!(B&&A.W&&A.hotHashData)){R.Ux(4);break}return g.X(R,hMC(A.W,A.hotHashData,B,f),4);case 4:return A.W? R.return(S_()):(J=new g.iL("Config not available in ytConfig"),Kg(J),R.return(Promise.reject(J)))}})}; OeC=function(A){var L,B,f,K,V,J;return g.c(function(R){switch(R.N){case 1:if(A.N)return R.return(Jb());if(!A.D)return L=g.g2("getColdConfig IDB not initialized"),Kg(L),R.return(Promise.reject(L));B=al();f=g.A_("TIME_CREATED_MS");if(!B){K=g.g2("getColdConfig");Kg(K);R.Ux(2);break}return g.X(R,tFL(B),3);case 3:if((V=R.W)&&V.timestamp>f)return Vf(A,V.config),XM1(A,V.configData),RI(A,V.hashData),R.return(Jb());case 2:QaL(A);if(!(B&&A.N&&A.coldHashData&&A.configData)){R.Ux(4);break}return g.X(R,bey(A.N, A.coldHashData,A.configData,B,f),4);case 4:return A.N?R.return(Jb()):(J=new g.iL("Config not available in ytConfig"),Kg(J),R.return(Promise.reject(J)))}})}; lt8=function(A){if(!A.W||!A.N){if(!al()){var L=g.g2("scheduleGetConfigs");Kg(L)}A.U||(A.U=g.qT.pV(function(){return g.c(function(B){switch(B.N){case 1:return g.S5(B,2),g.X(B,$T8(A),4);case 4:g.ZR(B,3);break;case 2:g.NX(B);case 3:return g.S5(B,5),g.X(B,OeC(A),7);case 7:g.ZR(B,6);break;case 5:g.NX(B);case 6:A.U&&(A.U=0),g.VK(B)}})},100))}}; Ew8=function(A,L,B){var f,K,V;return g.c(function(J){switch(J.N){case 1:if(!g.h_("start_client_gcf")){J.Ux(0);break}B&&K4(A,B);A.K3(L);f=al();if(!f){J.Ux(3);break}if(B){J.Ux(4);break}return g.X(J,k7y(f),5);case 5:K=J.W,B=(V=K)==null?void 0:V.config;case 4:return g.X(J,hMC(B,L,f),3);case 3:if(B)for(var R=B,Z=g.m(A.T.N),N=Z.next();!N.done;N=Z.next())N=N.value,N(R);g.VK(J)}})}; cX0=function(A,L,B){var f,K,V,J;return g.c(function(R){if(R.N==1){if(!g.h_("start_client_gcf"))return R.Ux(0);RI(A,L);return(f=al())?B?R.Ux(4):g.X(R,tFL(f),5):R.Ux(0)}R.N!=4&&(K=R.W,B=(V=K)==null?void 0:V.config);if(!B)return R.Ux(0);J=B.configData;return g.X(R,bey(B,L,J,f),0)})}; MFL=function(){var A=mT0(),L=(0,g.bc)()-A.V;if(!(A.V!==0&&L0&&(L.request={internalExperimentFlags:B});UTD(A,void 0,L);WKD(void 0,L);vwQ(void 0,L);qB1(A,void 0,L);PNE(void 0,L);g.h_("start_client_gcf")&&xTy(void 0,L);g.A_("DELEGATED_SESSION_ID")&& !g.h_("pageid_as_header_web")&&(L.user={onBehalfOfUser:g.A_("DELEGATED_SESSION_ID")});!g.h_("fill_delegate_context_in_gel_killswitch")&&(A=g.A_("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(L.user=Object.assign({},L.user,{serializedDelegationContext:A}));A=g.A_("INNERTUBE_CONTEXT");var f;if(g.h_("enable_persistent_device_token")&&(A==null?0:(f=A.client)==null?0:f.rolloutToken)){var K;L.client.rolloutToken=A==null?void 0:(K=A.client)==null?void 0:K.rolloutToken}f=Object;K=f.assign;A=L.client; B={};for(var V=g.m(Object.entries(I0(g.A_("DEVICE","")))),J=V.next();!J.done;J=V.next()){var R=g.m(J.value);J=R.next().value;R=R.next().value;J==="cbrand"?B.deviceMake=R:J==="cmodel"?B.deviceModel=R:J==="cbr"?B.browserName=R:J==="cbrver"?B.browserVersion=R:J==="cos"?B.osName=R:J==="cosver"?B.osVersion=R:J==="cplatform"&&(B.platform=R)}L.client=K.call(f,A,B);return L}; UTD=function(A,L,B){A=A.fE;if(A==="WEB"||A==="MWEB"||A===1||A===2)if(L){B=WG(L,$R,96)||new $R;var f=Y_();f=Object.keys(eMy).indexOf(f);f=f===-1?null:f;f!==null&&KH(B,3,f);PG(L,$R,96,B)}else B&&(B.client.mainAppWebInfo=(f=B.client.mainAppWebInfo)!=null?f:{},B.client.mainAppWebInfo.webDisplayMode=Y_())}; WKD=function(A,L){var B=g.bB("yt.embedded_player.embed_url");B&&(A?(L=WG(A,Mv,7)||new Mv,BS(L,4,B),PG(A,Mv,7,L)):L&&(L.thirdParty={embedUrl:B}))}; vwQ=function(A,L){var B;if(g.h_("web_log_memory_total_kbytes")&&((B=g.rI.navigator)==null?0:B.deviceMemory)){var f;B=(f=g.rI.navigator)==null?void 0:f.deviceMemory;A?ra(A,95,vg(B*1E6)):L&&(L.client.memoryTotalKbytes=""+B*1E6)}}; qB1=function(A,L,B){if(A.appInstallData)if(L){var f;B=(f=WG(L,i8,62))!=null?f:new i8;BS(B,6,A.appInstallData);PG(L,i8,62,B)}else B&&(B.client.configInfo=B.client.configInfo||{},B.client.configInfo.appInstallData=A.appInstallData)}; PNE=function(A,L){var B=QQ1();B&&(A?KH(A,61,nwy[B]):L&&(L.client.connectionType=B));g.h_("web_log_effective_connection_type")&&(B=i2k())&&(A?KH(A,94,zM7[B]):L&&(L.client.effectiveConnectionType=B))}; uO7=function(A,L,B){B=B===void 0?{}:B;var f={};g.A_("EOM_VISITOR_DATA")?f={"X-Goog-EOM-Visitor-Id":g.A_("EOM_VISITOR_DATA")}:f={"X-Goog-Visitor-Id":B.visitorData||g.A_("VISITOR_DATA","")};if(L&&L.includes("www.youtube-nocookie.com"))return f;L=B.U2||g.A_("AUTHORIZATION");L||(A?L="Bearer "+g.bB("gapi.auth.getToken")().access_token:(A=b21().oO(dE),g.h_("pageid_as_header_web")||delete A["X-Goog-PageId"],f=Object.assign({},f,A)));L&&(f.Authorization=L);return f}; xTy=function(A,L){var B=MFL();if(B){var f=B.coldConfigData,K=B.coldHashData;B=B.hotHashData;if(A){var V;L=(V=WG(A,i8,62))!=null?V:new i8;f=BS(L,1,f);BS(f,3,K).K3(B);PG(A,i8,62,L)}else L&&(L.client.configInfo=L.client.configInfo||{},f&&(L.client.configInfo.coldConfigData=f),K&&(L.client.configInfo.coldHashData=K),B&&(L.client.configInfo.hotHashData=B))}}; II=function(A,L){this.version=A;this.args=L}; wE=function(A,L){this.topic=A;this.N=L}; yf=function(A,L){var B=p4();B&&B.publish.call(B,A.toString(),A,L)}; Lov=function(A){var L=atw,B=p4();if(!B)return 0;var f=B.subscribe(L.toString(),function(K,V){var J=g.bB("ytPubsub2Pubsub2SkipSubKey");J&&J==f||(J=function(){if(j_[f])try{if(V&&L instanceof wE&&L!=K)try{var R=L.N,Z=V;if(!Z.args||!Z.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!R.W$){var N=new R;R.W$=N.version}var F=R.W$}catch(D){}if(!F||Z.version!=F)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{V=Reflect.construct(R, g.Kx(Z.args))}catch(D){throw D.message="yt.pubsub2.Data.deserialize(): "+D.message,D;}}catch(D){throw D.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+L.toString()+": "+D.message,D;}A.call(window,V)}catch(D){g.B7(D)}},Azv[L.toString()]?g.Bf()?g.qT.pV(J):g.gW(J,0):J())}); j_[f]=!0;gE[L.toString()]||(gE[L.toString()]=[]);gE[L.toString()].push(f);return f}; f1v=function(){var A=oC7,L=Lov(function(B){A.apply(void 0,arguments);B$L(L)}); return L}; B$L=function(A){var L=p4();L&&(typeof A==="number"&&(A=[A]),g.yB(A,function(B){L.unsubscribeByKey(B);delete j_[B]}))}; p4=function(){return g.bB("ytPubsub2Pubsub2Instance")}; GP=function(A,L,B){B=B===void 0?{sampleRate:.1}:B;Math.random()ZK6||J=DHw&&(iy++,TP=!1);dHe(L);f.headers||(f.headers={});f.headers["Content-Encoding"]="gzip";f.postBody=A;f.postParams=void 0;K(B,f)}; wC1=function(A){var L=L===void 0?!1:L;var B=B===void 0?!1:B;var f=(0,g.bc)(),K={startTime:f,ticks:{},infos:{}},V=L?g.bB("yt.logging.gzipForFetch",!1):!0;if(TP&&V){if(!A.body)return A;try{var J=B?A.body:typeof A.body==="string"?A.body:JSON.stringify(A.body);V=J;if(!B&&typeof J==="string"){var R=RRy(J);if(R!=null&&(R>ZK6||R=DHw)if(iy++,g.h_("abandon_compression_after_N_slow_zips_lr")){L=iy/C4;var N=I11/g.bl("compression_disable_point");C4>0&&C4%g.bl("compression_disable_point")===0&&L>=N&&(TP=!1)}else TP=!1;dHe(K)}}A.headers=Object.assign({},{"Content-Encoding":"gzip"},A.headers||{});A.body=V;return A}catch(F){return Kg(F),A}}else return A}; RRy=function(A){try{return(new Blob(A.split(""))).size}catch(L){return Kg(L),null}}; dHe=function(A){g.h_("gel_compression_csi_killswitch")||!g.h_("log_gel_compression_latency")&&!g.h_("log_gel_compression_latency_lr")||GP("gel_compression",A,{sampleRate:.1})}; XY=function(A){var L=this;this.V2=this.N=!1;this.potentialEsfErrorCounter=this.W=0;this.handleError=function(){}; this.sV=function(){}; this.now=Date.now;this.gq=!1;this.GV={qmj:function(F){L.uQ=F}, n3s:function(){L.u_()}, Y1:function(){L.lS()}, z3:function(F){return g.c(function(D){return g.X(D,L.z3(F),0)})}, Fs:function(F,D){return L.Fs(F,D)}, Dh:function(){L.Dh()}}; var B;this.k7=(B=A.k7)!=null?B:100;var f;this.wC=(f=A.wC)!=null?f:1;var K;this.HX=(K=A.HX)!=null?K:2592E6;var V;this.BW=(V=A.BW)!=null?V:12E4;var J;this.UP=(J=A.UP)!=null?J:5E3;var R;this.uQ=(R=A.uQ)!=null?R:void 0;this.Pb=!!A.Pb;var Z;this.T9=(Z=A.T9)!=null?Z:.1;var N;this.aS=(N=A.aS)!=null?N:10;A.handleError&&(this.handleError=A.handleError);A.sV&&(this.sV=A.sV);A.gq&&(this.gq=A.gq);A.V2&&(this.V2=A.V2);this.GL=A.GL;this.kC=A.kC;this.fh=A.fh;this.Mq=A.Mq;this.sendFn=A.sendFn;this.Qg=A.Qg;this.GA= A.GA;$l(this)&&(!this.GL||this.GL("networkless_logging"))&&pC8(this)}; pC8=function(A){$l(A)&&!A.gq&&(A.N=!0,A.Pb&&Math.random()<=A.T9&&A.fh.AX(A.uQ),A.Dh(),A.Mq.Dr()&&A.u_(),A.Mq.listen(A.Qg,A.u_.bind(A)),A.Mq.listen(A.GA,A.lS.bind(A)))}; gC1=function(A,L){if(!$l(A))throw Error("IndexedDB is not supported: updateRequestHandlers");var B=L.options.onError?L.options.onError:function(){}; L.options.onError=function(K,V){var J,R,Z,N;return g.c(function(F){switch(F.N){case 1:J=yz8(V);(R=j11(V))&&A.GL&&A.GL("web_enable_error_204")&&A.handleError(Error("Request failed due to compression"),L.url,V);if(!(A.GL&&A.GL("nwl_consider_error_code")&&J||A.GL&&!A.GL("nwl_consider_error_code")&&A.potentialEsfErrorCounter<=A.aS)){F.Ux(2);break}if(!A.Mq.Xs){F.Ux(3);break}return g.X(F,A.Mq.Xs(),3);case 3:if(A.Mq.Dr()){F.Ux(2);break}B(K,V);if(!A.GL||!A.GL("nwl_consider_error_code")||((Z=L)==null?void 0: Z.id)===void 0){F.Ux(6);break}return g.X(F,A.fh.AM(L.id,A.uQ,!1),6);case 6:return F.return();case 2:if(A.GL&&A.GL("nwl_consider_error_code")&&!J&&A.potentialEsfErrorCounter>A.aS)return F.return();A.potentialEsfErrorCounter++;if(((N=L)==null?void 0:N.id)===void 0){F.Ux(8);break}return L.sendCount=400&&A<=599?!1:!0}; j11=function(A){var L;A=A==null?void 0:(L=A.error)==null?void 0:L.code;return!(A!==400&&A!==415)}; GF0=function(){if(Eu)return Eu();var A={};Eu=g.oI("LogsDatabaseV2",{JU:(A.LogsRequestsStore={fO:2},A),shared:!1,upgrade:function(L,B,f){B(2)&&g.TU(L,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});B(3);B(5)&&(f=f.objectStore("LogsRequestsStore"),f.N.indexNames.contains("newRequest")&&f.N.deleteIndex("newRequest"),g.$L(f,"newRequestV2",["status","interface","timestamp"]));B(7)&&lc(L,"sapisid");B(9)&&lc(L,"SWHealthLog")}, version:9});return Eu()}; ca=function(A){return g.Wf(GF0(),A)}; s1y=function(A,L){var B,f,K,V;return g.c(function(J){if(J.N==1)return B={startTime:(0,g.bc)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.X(J,ca(L),2);if(J.N!=3)return f=J.W,K=Object.assign({},A,{options:JSON.parse(JSON.stringify(A.options)),interface:g.A_("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.X(J,g.Cs(f,"LogsRequestsStore",K),3);V=J.W;B.ticks.tc=(0,g.bc)();rzD(B);return J.return(V)})}; HK1=function(A,L){var B,f,K,V,J,R,Z,N,F;return g.c(function(D){if(D.N==1)return B={startTime:(0,g.bc)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.X(D,ca(L),2);if(D.N!=3)return f=D.W,K=g.A_("INNERTUBE_CONTEXT_CLIENT_NAME",0),V=[A,K,0],J=[A,K,(0,g.bc)()],R=IDBKeyRange.bound(V,J),Z="prev",g.h_("use_fifo_for_networkless")&&(Z="next"),N=void 0,F=A==="NEW"?"readwrite":"readonly",g.h_("use_readonly_for_get_most_recent_by_status_killswitch")&&(F="readwrite"),g.X(D,g.mz(f,["LogsRequestsStore"], {mode:F,Ev:!0},function(I){return g.cf(I.objectStore("LogsRequestsStore").index("newRequestV2"),{query:R,direction:Z},function(d){d.getValue()&&(N=d.getValue(),A==="NEW"&&(N.status="QUEUED",d.update(N)))})}),3); B.ticks.tc=(0,g.bc)();rzD(B);return D.return(N)})}; hRe=function(A,L){var B;return g.c(function(f){if(f.N==1)return g.X(f,ca(L),2);B=f.W;return f.return(g.mz(B,["LogsRequestsStore"],{mode:"readwrite",Ev:!0},function(K){var V=K.objectStore("LogsRequestsStore");return V.get(A).then(function(J){if(J)return J.status="QUEUED",g.Qw(V,J).then(function(){return J})})}))})}; bK6=function(A,L,B,f){B=B===void 0?!0:B;var K;return g.c(function(V){if(V.N==1)return g.X(V,ca(L),2);K=V.W;return V.return(g.mz(K,["LogsRequestsStore"],{mode:"readwrite",Ev:!0},function(J){var R=J.objectStore("LogsRequestsStore");return R.get(A).then(function(Z){return Z?(Z.status="NEW",B&&(Z.sendCount+=1),f!==void 0&&(Z.options.compress=f),g.Qw(R,Z).then(function(){return Z})):g.r2.resolve(void 0)})}))})}; tR8=function(A,L){var B;return g.c(function(f){if(f.N==1)return g.X(f,ca(L),2);B=f.W;return f.return(B.delete("LogsRequestsStore",A))})}; kFD=function(A){var L,B;return g.c(function(f){if(f.N==1)return g.X(f,ca(A),2);L=f.W;B=(0,g.bc)()-2592E6;return g.X(f,g.mz(L,["LogsRequestsStore"],{mode:"readwrite",Ev:!0},function(K){return g.X4(K.objectStore("LogsRequestsStore"),{},function(V){if(V.getValue().timestamp<=B)return V.delete().then(function(){return g.O_(V)})})}),0)})}; T$8=function(){g.c(function(A){return g.X(A,G7E("LogsDatabaseV2"),0)})}; rzD=function(A){g.h_("nwl_csi_killswitch")||GP("networkless_performance",A,{sampleRate:1})}; mHS=function(A){return g.Wf(l17(),A)}; Q1D=function(A){var L,B;g.c(function(f){if(f.N==1)return g.X(f,mHS(A),2);L=f.W;B=(0,g.bc)()-2592E6;return g.X(f,g.mz(L,["SWHealthLog"],{mode:"readwrite",Ev:!0},function(K){return g.X4(K.objectStore("SWHealthLog"),{},function(V){if(V.getValue().timestamp<=B)return V.delete().then(function(){return g.O_(V)})})}),0)})}; CkL=function(A){var L;return g.c(function(B){if(B.N==1)return g.X(B,mHS(A),2);L=B.W;return g.X(B,L.clear("SWHealthLog"),0)})}; g.MJ=function(A,L,B,f,K,V,J){K=K===void 0?"":K;V=V===void 0?!1:V;J=J===void 0?!1:J;if(A)if(B&&!g.ng())Kg(new g.iL("Legacy referrer-scrubbed ping detected")),A&&iKE(A,void 0,{scrubReferrer:!0});else if(K)Tc(A,L,"POST",K,f);else if(g.A_("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||f||J)Tc(A,L,"GET","",f,void 0,V,J);else{b:{try{c:{var R=new nbL({url:A});if(R.N.dsh==="1")var Z=null;else{var N=R.N.ae;if(N==="1"){var F=R.N.adurl;if(F)try{Z={version:3,mP:decodeURIComponent(F),Zm:VU(R.W,"act=1","ri=1",zK8(R))}; break c}catch(d){}}Z=N==="2"?{version:4,mP:VU(R.W,"dct=1","suid="+R.V,"ri=1"),Zm:VU(R.W,"act=1","ri=1","suid="+R.V)}:null}}if(Z){var D=ks(A);var I=!(!D||!D.endsWith("/aclk")||Ew(A,"ri")!=="1");break b}}catch(d){}I=!1}I?$Hw(A)?(L&&L(),B=!0):B=!1:B=!1;B||iKE(A,L)}}; $Hw=function(A,L){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(A,L===void 0?"":L))return!0}catch(B){}return!1}; iKE=function(A,L,B){B=B===void 0?{}:B;var f=new Image,K=""+XCv++;Yl[K]=f;f.onload=f.onerror=function(){L&&Yl[K]&&L();delete Yl[K]}; B.scrubReferrer&&(f.referrerPolicy="no-referrer");f.src=A}; OKw=function(A){var L;return((L=document.featurePolicy)==null?0:L.allowedFeatures().includes("attribution-reporting"))?A+"&nis=6":A+"&nis=5"}; Wa=function(){Uu||(Uu=new Ks("yt.offline"));return Uu}; ECL=function(A){if(g.h_("offline_error_handling")){var L=Wa().get("errors",!0)||{};L[A.message]={name:A.name,stack:A.stack};A.level&&(L[A.message].level=A.level);Wa().set("errors",L,2592E3,!0)}}; va=function(){this.N=new Map;this.W=!1}; czL=function(){if(!va.instance){var A=g.bB("yt.networkRequestMonitor.instance")||new va;g.hf("yt.networkRequestMonitor.instance",A);va.instance=A}return va.instance}; qJ=function(){g.gb.call(this);var A=this;this.W=!1;this.N=oZk();this.N.listen("networkstatus-online",function(){if(A.W&&g.h_("offline_error_handling")){var L=Wa().get("errors",!0);if(L){for(var B in L)if(L[B]){var f=new g.iL(B,"sent via offline_errors");f.name=L[B].name;f.stack=L[B].stack;f.level=L[B].level;g.B7(f)}Wa().set("errors",{},2592E3,!0)}}})}; MRw=function(){if(!qJ.instance){var A=g.bB("yt.networkStatusManager.instance")||new qJ;g.hf("yt.networkStatusManager.instance",A);qJ.instance=A}return qJ.instance}; g.Pa=function(A){A=A===void 0?{}:A;g.gb.call(this);var L=this;this.N=this.U=0;this.W=MRw();var B=g.bB("yt.networkStatusManager.instance.listen").bind(this.W);B&&(A.rateLimit?(this.rateLimit=A.rateLimit,B("networkstatus-online",function(){YnQ(L,"publicytnetworkstatus-online")}),B("networkstatus-offline",function(){YnQ(L,"publicytnetworkstatus-offline")})):(B("networkstatus-online",function(){L.dispatchEvent("publicytnetworkstatus-online")}),B("networkstatus-offline",function(){L.dispatchEvent("publicytnetworkstatus-offline")})))}; YnQ=function(A,L){A.rateLimit?A.N?(g.qT.WF(A.U),A.U=g.qT.pV(function(){A.V!==L&&(A.dispatchEvent(L),A.V=L,A.N=(0,g.bc)())},A.rateLimit-((0,g.bc)()-A.N))):(A.dispatchEvent(L),A.V=L,A.N=(0,g.bc)()):A.dispatchEvent(L)}; e_=function(){var A=XY.call;xl||(xl=new g.Pa({Vdr:!0,l_n:!0}));A.call(XY,this,{fh:{AX:kFD,NW:tR8,V0:HK1,ZYr:hRe,AM:bK6,set:s1y},Mq:xl,handleError:function(L,B,f){var K,V=f==null?void 0:(K=f.error)==null?void 0:K.code;if(V===400||V===415){var J;L=new g.iL(L.message,B,f==null?void 0:(J=f.error)==null?void 0:J.code);Kg(L,void 0,void 0,void 0,!0)}else g.B7(L)}, sV:Kg,sendFn:UHQ,now:g.bc,kx:ECL,kC:g.ol(),Qg:"publicytnetworkstatus-online",GA:"publicytnetworkstatus-offline",Pb:!0,T9:.1,aS:g.bl("potential_esf_error_limit",10),GL:g.h_,gq:!(g.zT()&&g.tW(document.location.toString())!=="www.youtube-nocookie.com")});this.V=new g.IQ;g.h_("networkless_immediately_drop_all_requests")&&T$8();rX0("LogsDatabaseV2")}; n4=function(){var A=g.bB("yt.networklessRequestController.instance");A||(A=new e_,g.hf("yt.networklessRequestController.instance",A),g.h_("networkless_logging")&&g.Ab().then(function(L){A.uQ=L;pC8(A);A.V.resolve();A.Pb&&Math.random()<=A.T9&&A.uQ&&Q1D(A.uQ);g.h_("networkless_immediately_drop_sw_health_store")&&Wok(A)})); return A}; Wok=function(A){var L;g.c(function(B){if(!A.uQ)throw L=g.g2("clearSWHealthLogsDb"),L;return B.return(CkL(A.uQ).catch(function(f){A.handleError(f)}))})}; UHQ=function(A,L,B,f){f=f===void 0?!1:f;L=g.h_("web_fp_via_jspb")?Object.assign({},L):L;if(g.h_("use_request_time_ms_header"))L.headers&&Fa(A)&&(L.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.bc)())));else{var K;if((K=L.postParams)==null?0:K.requestTimeMs)L.postParams.requestTimeMs=Math.round((0,g.bc)())}B&&Object.keys(L).length===0?g.MJ(A):L.compress?L.postBody?(typeof L.postBody!=="string"&&(L.postBody=JSON.stringify(L.postBody)),Qf(A,L.postBody,L,g.ll,f)):Qf(A,JSON.stringify(L.postParams), L,mM,f):g.ll(A,L)}; zP=function(A,L){g.h_("use_event_time_ms_header")&&Fa(A)&&(L.headers||(L.headers={}),L.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.bc)())));return L}; g.uy=function(A){this.config_=null;A?this.config_=A:YBC()&&(this.config_=g.FY())}; g.aI=function(A,L,B,f){function K(N){try{if((N===void 0?0:N)&&f.retry&&!f.networklessOptions.bypassNetworkless)V.method="POST",f.networklessOptions.writeThenSend?n4().writeThenSend(Z,V):n4().sendAndWrite(Z,V);else if(f.compress){var F=!f.networklessOptions.writeThenSend;if(V.postBody){var D=V.postBody;typeof D!=="string"&&(D=JSON.stringify(V.postBody));Qf(Z,D,V,g.ll,F)}else Qf(Z,JSON.stringify(V.postParams),V,mM,F)}else mM(Z,V)}catch(I){if(I.name==="InvalidAccessError")Kg(Error("An extension is blocking network request.")); else throw I;}} !g.A_("VISITOR_DATA")&&L!=="visitor_id"&&Math.random()<.01&&Kg(new g.iL("Missing VISITOR_DATA when sending innertube request.",L,B,f));if(!A.isReady())throw A=new g.iL("innertube xhrclient not ready",L,B,f),g.B7(A),A;var V={headers:f.headers||{},method:"POST",postParams:B,postBody:f.postBody,postBodyFormat:f.postBodyFormat||"JSON",onTimeout:function(){f.onTimeout()}, onFetchTimeout:f.onTimeout,onSuccess:function(N,F){if(f.onSuccess)f.onSuccess(F)}, onFetchSuccess:function(N){if(f.onSuccess)f.onSuccess(N)}, onProgress:function(N){if(f.onProgress)f.onProgress(N)}, onError:function(N,F){if(f.onError)f.onError(F)}, onFetchError:function(N){if(f.onError)f.onError(N)}, timeout:f.timeout,withCredentials:!0,compress:f.compress};V.headers["Content-Type"]||(V.headers["Content-Type"]="application/json");B="";var J=A.config_.m9;J&&(B=J);J=A.config_.Fw||!1;var R=uO7(J,B,f);Object.assign(V.headers,R);V.headers.Authorization&&!B&&J&&(V.headers["x-origin"]=window.location.origin);var Z=Zp(""+B+("/youtubei/"+A.config_.innertubeApiVersion+"/"+L),{alt:"json"});g.bB("ytNetworklessLoggingInitializationOptions")&&vCv.isNwlInitialized?dTL().then(function(N){K(N)}):K(!1)}; g.fV=function(A,L,B){var f=g.A0();if(f&&L){var K=f.subscribe(A,function(){function V(){LV[K]&&L.apply&&typeof L.apply=="function"&&L.apply(B||window,J)} var J=arguments;try{g.oW[A]?V():g.gW(V,0)}catch(R){g.B7(R)}},B); LV[K]=!0;BQ[A]||(BQ[A]=[]);BQ[A].push(K);return K}return 0}; qn1=function(A){var L=g.fV("LOGGED_IN",function(B){A.apply(void 0,arguments);g.KV(L)})}; g.KV=function(A){var L=g.A0();L&&(typeof A==="number"?A=[A]:typeof A==="string"&&(A=[parseInt(A,10)]),g.yB(A,function(B){L.unsubscribeByKey(B);delete LV[B]}))}; g.V0=function(A,L){var B=g.A0();return B?B.publish.apply(B,arguments):!1}; xHQ=function(A){var L=g.A0();if(L)if(L.clear(A),A)Pk0(A);else for(var B in BQ)Pk0(B)}; g.A0=function(){return g.rI.ytPubsubPubsubInstance}; Pk0=function(A){BQ[A]&&(A=BQ[A],g.yB(A,function(L){LV[L]&&delete LV[L]}),A.length=0)}; g.J0=function(A,L,B){eR6(A,L,B===void 0?null:B)}; eR6=function(A,L,B){B=B===void 0?null:B;var f=nCD(typeof A==="string"?A:A.toString()),K=document.getElementById(f),V=K&&Ns8(K),J=K&&!V;V?L&&L():(L&&(V=g.fV(f,L),L=""+g.$W(L),zR7[L]=V),J||(K=uqw(A,f,function(){Ns8(K)||(Z2D(K),g.V0(f),g.gW(function(){xHQ(f)},0))},B)))}; uqw=function(A,L,B,f){f=f===void 0?null:f;var K=g.TO("SCRIPT");K.id=L;K.onload=function(){B&&setTimeout(B,0)}; K.onreadystatechange=function(){switch(K.readyState){case "loaded":case "complete":K.onload()}}; f&&K.setAttribute("nonce",f);g.ET(K,typeof A==="string"?g.Q4(A):A);A=document.getElementsByTagName("head")[0]||document.body;A.insertBefore(K,A.firstChild);return K}; nCD=function(A){var L=document.createElement("a");g.tF(L,A);A=L.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+eS(A)}; SP=function(A,L){if(A===L)A=!0;else if(Array.isArray(A)&&Array.isArray(L))A=g.wo(A,L,SP);else if(g.QK(A)&&g.QK(L))a:if(g.bs(A).length!=g.bs(L).length)A=!1;else{for(var B in A)if(!SP(A[B],L[B])){A=!1;break a}A=!0}else A=!1;return A}; NU=function(A){var L=g.pf.apply(1,arguments);if(!RW(A)||L.some(function(f){return!RW(f)}))throw Error("Only objects may be merged."); L=g.m(L);for(var B=L.next();!B.done;B=L.next())ZP(A,B.value)}; ZP=function(A,L){for(var B in L)if(RW(L[B])){if(B in A&&!RW(A[B]))throw Error("Cannot merge an object into a non-object.");B in A||(A[B]={});ZP(A[B],L[B])}else if(Fy(L[B])){if(B in A&&!Fy(A[B]))throw Error("Cannot merge an array into a non-array.");B in A||(A[B]=[]);a1E(A[B],L[B])}else A[B]=L[B];return A}; a1E=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next())B=B.value,RW(B)?A.push(ZP({},B)):Fy(B)?A.push(a1E([],B)):A.push(B);return A}; RW=function(A){return typeof A==="object"&&!Array.isArray(A)}; Fy=function(A){return typeof A==="object"&&Array.isArray(A)}; DP=function(A){g.Y.call(this);this.W=A}; dT=function(A){DP.call(this,!0);this.N=A}; IW=function(A,L){g.Y.call(this);var B=this;this.V=[];this.X=!1;this.W=0;this.D=this.T=this.U=!1;this.Wn=null;var f=(0,g.X9)(A,L);this.N=new g.aa(function(){return f(B.Wn)},300); g.W(this,this.N);this.yj=this.G=Infinity}; Al6=function(A,L){if(!L)return!1;for(var B=0;B-1)throw Error("Deps cycle for: "+L);if(A.W.has(L))return A.W.get(L);if(!A.N.has(L)){if(f)return;throw Error("No provider for: "+L);}f=A.N.get(L);B.push(L);if(f.qK!==void 0)var K=f.qK;else if(f.Eur)K=f[t0]?Kck(A,f[t0],B):[],K=f.Eur.apply(f,g.x7(K));else if(f.ZN){K=f.ZN;var V=K[t0]?Kck(A,K[t0],B):[];K=new (Function.prototype.bind.apply(K,[null].concat(g.x7(V))))}else throw Error("Could not resolve providers for: "+L);B.pop();f.JIL||A.W.set(L,K); return K}; Kck=function(A,L,B){return L?L.map(function(f){return f instanceof HQ?k0(A,f.key,B,!0):k0(A,f,B)}):[]}; l_=function(){Tx||(Tx=new fle);return Tx}; Jl0=function(){var A=VtC;return function(){var L=l_();if(!L.resolve(h0(A))){var B={};b_(L,(B.iG=A,B.ZN=A,B[t0]=void 0,B))}return L.resolve(A)}}; Q0=function(){var A,L;return"h5vcc"in me&&((A=me.h5vcc.traceEvent)==null?0:A.traceBegin)&&((L=me.h5vcc.traceEvent)==null?0:L.traceEnd)?1:"performance"in me&&me.performance.mark&&me.performance.measure?2:0}; CV=function(A){var L=Q0();switch(L){case 1:me.h5vcc.traceEvent.traceBegin("YTLR",A);break;case 2:me.performance.mark(A+"-start");break;case 0:break;default:kj(L,"unknown trace type")}}; S57=function(A){var L=Q0();switch(L){case 1:me.h5vcc.traceEvent.traceEnd("YTLR",A);break;case 2:L=A+"-start";var B=A+"-end";me.performance.mark(B);me.performance.measure(A,L,B);break;case 0:break;default:kj(L,"unknown trace type")}}; R2D=function(A){var L,B;(B=(L=window).onerror)==null||B.call(L,A.message,"",0,0,A)}; ZXk=function(A){var L=this;var B=B===void 0?0:B;var f=f===void 0?g.ol():f;this.V=B;this.scheduler=f;this.W=new g.IQ;this.N=A;for(A={w2:0};A.w2=1E3?K():f>=A?fE||(fE=KE(function(){K();fE=void 0},0)):V-R>=10&&(ttD(L,B.tier),J.U=V)}; rl7=function(A,L){if(A.endpoint==="log_event"){g.h_("more_accurate_gel_parser")&&eP().storePayload({isJspb:!1},A.payload);zx(A);var B=u_(A),f=new Map;f.set(B,[A.payload]);var K=jwe(A.payload)||"";L&&(o9=new L);return new g.QX(function(V,J){o9&&o9.isReady()?kRv(f,o9,V,J,{bypassNetworkless:!0},!0,Av(K)):V()})}}; h2v=function(A,L,B){if(L.endpoint==="log_event"){zx(void 0,L);var f=u_(L,!0),K=new Map;K.set(f,[Rg(L.payload)]);B&&(o9=new B);return new g.QX(function(V){o9&&o9.isReady()?TnC(K,o9,V,{bypassNetworkless:!0},!0,Av(A)):V()})}}; u_=function(A,L){var B="";if(A.dangerousLogToVisitorSession)B="visitorOnlyApprovedKey";else if(A.cttAuthInfo){if(L===void 0?0:L){L=A.cttAuthInfo.token;B=A.cttAuthInfo;var f=new nX;B.videoId?f.setVideoId(B.videoId):B.playlistId&&EG(f,2,VH,nd(B.playlistId));Jv[L]=f}else L=A.cttAuthInfo,B={},L.videoId?B.videoId=L.videoId:L.playlistId&&(B.playlistId=L.playlistId),SB[A.cttAuthInfo.token]=B;B=A.cttAuthInfo.token}return B}; LE=function(A,L,B){A=A===void 0?{}:A;L=L===void 0?!1:L;new g.QX(function(f,K){var V=Bb(L,B),J=V.V;V.V=!1;R9(V.W);R9(V.N);V.N=0;o9&&o9.isReady()?B===void 0&&g.h_("enable_web_tiered_gel")?lly(f,K,A,L,300,J):lly(f,K,A,L,B,J):(ttD(L,B),f())})}; lly=function(A,L,B,f,K,V){var J=o9;B=B===void 0?{}:B;f=f===void 0?!1:f;K=K===void 0?200:K;V=V===void 0?!1:V;var R=new Map,Z=new Map,N={isJspb:f,cttAuthInfo:void 0,tier:K},F={isJspb:f,cttAuthInfo:void 0};if(f){L=g.m(Object.keys(aW));for(K=L.next();!K.done;K=L.next())K=K.value,Z=g.h_("enable_web_tiered_gel")?eP().smartExtractMatchingEntries({keys:[N,F],sizeLimit:1E3}):eP().extractMatchingEntries({isJspb:!0,cttAuthInfo:K}),Z.length>0&&R.set(K,Z),(g.h_("web_fp_via_jspb_and_json")&&B.writeThenSend||!g.h_("web_fp_via_jspb_and_json"))&& delete aW[K];TnC(R,J,A,B,!1,V)}else{R=g.m(Object.keys(aW));for(N=R.next();!N.done;N=R.next())N=N.value,F=g.h_("enable_web_tiered_gel")?eP().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:N,tier:K},{isJspb:!1,cttAuthInfo:N}],sizeLimit:1E3}):eP().extractMatchingEntries({isJspb:!1,cttAuthInfo:N}),F.length>0&&Z.set(N,F),(g.h_("web_fp_via_jspb_and_json")&&B.writeThenSend||!g.h_("web_fp_via_jspb_and_json"))&&delete aW[N];kRv(Z,J,A,L,B,!1,V)}}; ttD=function(A,L){function B(){LE({writeThenSend:!0},A,L)} A=A===void 0?!1:A;L=L===void 0?200:L;var f=Bb(A,L),K=f===mve||f===QwC?5E3:C88;g.h_("web_gel_timeout_cap")&&!f.N&&(K=KE(function(){B()},K),f.N=K); R9(f.W);K=g.A_("LOGGING_BATCH_TIMEOUT",g.bl("web_gel_debounce_ms",1E4));g.h_("shorten_initial_gel_batch_timeout")&&ZO&&(K=iXv);K=KE(function(){g.bl("gel_min_batch_size")>0?eP().getSequenceCount({cttAuthInfo:void 0,isJspb:A,tier:L})>=$vS&&B():B()},K); f.W=K}; kRv=function(A,L,B,f,K,V,J){K=K===void 0?{}:K;var R=Math.round((0,g.bc)()),Z=A.size,N=XtE(J);A=g.m(A);var F=A.next();for(J={};!F.done;J={Q1:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,x_:void 0,Hw:void 0},F=A.next()){var D=g.m(F.value);F=D.next().value;D=D.next().value;J.batchRequest=g.$g({context:g.Du(L.config_||g.FY())});if(!g.lB(D)&&!g.h_("throw_err_when_logevent_malformed_killswitch")){f();break}J.batchRequest.events=D;(D=SB[F])&&OX7(J.batchRequest,F,D);delete SB[F];J.dangerousLogToVisitorSession= F==="visitorOnlyApprovedKey";ERv(J.batchRequest,R,J.dangerousLogToVisitorSession);cle(K);J.x_=function(I){g.h_("start_client_gcf")&&g.qT.pV(function(){return g.c(function(d){return g.X(d,MtS(I),0)})}); Z--;Z||B()}; J.Q1=0;J.Hw=function(I){return function(){I.Q1++;if(K.bypassNetworkless&&I.Q1===1)try{g.aI(L,N,I.batchRequest,N2({writeThenSend:!0},I.dangerousLogToVisitorSession,I.x_,I.Hw,V)),ZO=!1}catch(d){g.B7(d),f()}Z--;Z||B()}}(J); try{g.aI(L,N,J.batchRequest,N2(K,J.dangerousLogToVisitorSession,J.x_,J.Hw,V)),ZO=!1}catch(I){g.B7(I),f()}}}; TnC=function(A,L,B,f,K,V){f=f===void 0?{}:f;var J=Math.round((0,g.bc)()),R={value:A.size},Z=new Map([].concat(g.x7(A)));Z=g.m(Z);for(var N=Z.next();!N.done;N=Z.next()){var F=g.m(N.value).next().value,D=A.get(F);N=new g.zR;var I=L.config_||g.FY(),d=new Wt,w=new XC;BS(w,1,I.sS);BS(w,2,I.CE);KH(w,16,I.kd);BS(w,17,I.innertubeContextClientVersion);if(I.kG){var r=I.kG,h=new i8;r.coldConfigData&&BS(h,1,r.coldConfigData);r.appInstallData&&BS(h,6,r.appInstallData);r.coldHashData&&BS(h,3,r.coldHashData);r.hotHashData&& h.K3(r.hotHashData);PG(w,i8,62,h)}(r=g.rI.devicePixelRatio)&&r!=1&&ra(w,65,Ty(r));r=t_();r!==""&&BS(w,54,r);r=kz();if(r.length>0){h=new ct;for(var Q=0;Q65535&&(A=1);aw("BATCH_CLIENT_COUNTER",A);return A}; OX7=function(A,L,B){if(B.videoId)var f="VIDEO";else if(B.playlistId)f="PLAYLIST";else return;A.credentialTransferTokenTargetId=B;A.context=A.context||{};A.context.user=A.context.user||{};A.context.user.credentialTransferTokens=[{token:L,scope:f}]}; zx=function(A,L){var B=g.bB("yt.logging.transport.enableScrapingForTest"),f=H7("il_payload_scraping");f=(f!==void 0?String(f):"")==="enable_il_payload_scraping";if(!B)if(f)d8=[],g.hf("yt.logging.transport.enableScrapingForTest",!0),g.hf("yt.logging.transport.scrapedPayloadsForTesting",d8),g.hf("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.hf("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.hf("yt.logging.transport.scrapeClientEvent",!0);else return;B=g.bB("yt.logging.transport.scrapedPayloadsForTesting");f=g.bB("yt.logging.transport.payloadToScrape");L&&(L=L.payload,(L=g.bB("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(L)())&&B.push(L));L=g.bB("yt.logging.transport.scrapeClientEvent");if(f&&f.length>=1)for(var K=0;K0&&SQQ(A,L,V)}else SQQ(A,L)}; SQQ=function(A,L,B){A=RzD(A);L=L?g.CC(L):"";B=B||5;JK()&&g.Ms(A,L,B)}; RzD=function(A){for(var L=g.m(ZgQ),B=L.next();!B.done;B=L.next())A=cI(A,B.value);return"ST-"+eS(A).toString(36)}; NWk=function(A){if(A.name==="JavaException")return!0;A=A.stack;return A.includes("chrome://")||A.includes("-extension://")||A.includes("webkit-masked-url://")}; FMD=function(A){if(!A.stack)return!0;var L=!A.stack.includes("\n");return L&&A.stack.includes("ErrorType: ")||L&&A.stack.includes("Anonymous function (Unknown script")||A.stack.toLowerCase()==="not available"||A.fileName==="user-script"||A.fileName.startsWith("user-script:")?!0:!1}; Dse=function(){this.C5=[];this.Df=[]}; tv=function(){if(!bf){var A=bf=new Dse;A.Df.length=0;A.C5.length=0;dse(A,Ip0)}return bf}; dse=function(A,L){L.Df&&A.Df.push.apply(A.Df,L.Df);L.C5&&A.C5.push.apply(A.C5,L.C5)}; w7y=function(A){function L(){return A.charCodeAt(f++)} var B=A.length,f=0;do{var K=kf(L);if(K===Infinity)break;var V=K>>3;switch(K&7){case 0:K=kf(L);if(V===2)return K;break;case 1:if(V===2)return;f+=8;break;case 2:K=kf(L);if(V===2)return A.substr(f,K);f+=K;break;case 5:if(V===2)return;f+=4;break;default:return}}while(f500));f++);f=K}else if(typeof A==="object")for(K in A){if(A[K]){var V=K;var J=A[K],R=L,Z=B;V=typeof J!=="string"||V!=="clickTrackingParams"&&V!=="trackingParams"?0:(J=w7y(atob(J.replace(/-/g,"+").replace(/_/g,"/"))))?TN(V+".ve",J,R,Z):0;f+=V;f+=TN(K,A[K],L,B);if(f>500)break}}else B[L]=lf(A),f+=B[L].length;else B[L]=lf(A),f+=B[L].length;return f}; TN=function(A,L,B,f){B+="."+A;A=lf(L);f[B]=A;return B.length+A.length}; lf=function(A){try{return(typeof A==="string"?A:String(JSON.stringify(A))).substr(0,500)}catch(L){return"unable to serialize "+typeof A+" ("+L.message+")"}}; QH=function(A){g.mL(A)}; g.CE=function(A){g.mL(A,"WARNING")}; g.mL=function(A,L){var B=B===void 0?{}:B;B.name=g.A_("INNERTUBE_CONTEXT_CLIENT_NAME",1);B.version=g.A_("INNERTUBE_CONTEXT_CLIENT_VERSION");L=L===void 0?"ERROR":L;var f=!1;L=L===void 0?"ERROR":L;f=f===void 0?!1:f;if(A){A.hasOwnProperty("level")&&A.level&&(L=A.level);if(g.h_("console_log_js_exceptions")){var K=[];K.push("Name: "+A.name);K.push("Message: "+A.message);A.hasOwnProperty("params")&&K.push("Error Params: "+JSON.stringify(A.params));A.hasOwnProperty("args")&&K.push("Error args: "+JSON.stringify(A.args)); K.push("File name: "+A.fileName);K.push("Stacktrace: "+A.stack);window.console.log(K.join("\n"),A)}if(!(y_y>=5)){K=[];for(var V=g.m(jMk),J=V.next();!J.done;J=V.next()){J=J.value;try{J()&&K.push(J())}catch(r){}}K=[].concat(g.x7(gzQ),g.x7(K));var R=mX8(A);V=R.message||"Unknown Error";J=R.name||"UnknownError";var Z=R.stack||A.W||"Not available";if(Z.startsWith(J+": "+V)){var N=Z.split("\n");N.shift();Z=N.join("\n")}N=R.lineNumber||"Not available";R=R.fileName||"Not available";var F=0;if(A.hasOwnProperty("args")&& A.args&&A.args.length)for(var D=0;D=500);D++);else if(A.hasOwnProperty("params")&&A.params){var I=A.params;if(typeof A.params==="object")for(D in I){if(I[D]){var d="params."+D,w=lf(I[D]);B[d]=w;F+=d.length+w.length;if(F>500)break}}else B.params=lf(I)}if(K.length)for(D=0;D=500);D++);navigator.vendor&&!B.hasOwnProperty("vendor")&&(B["device.vendor"]=navigator.vendor);B={message:V,name:J,lineNumber:N, fileName:R,stack:Z,params:B,sampleWeight:1};D=Number(A.columnNumber);isNaN(D)||(B.lineNumber=B.lineNumber+":"+D);if(A.level==="IGNORED")A=0;else a:{A=tv();D=g.m(A.Df);for(K=D.next();!K.done;K=D.next())if(K=K.value,B.message&&B.message.match(K.Aj)){A=K.weight;break a}A=g.m(A.C5);for(D=A.next();!D.done;D=A.next())if(D=D.value,D.callback(B)){A=D.weight;break a}A=1}B.sampleWeight=A;A=g.m(Gc0);for(D=A.next();!D.done;D=A.next())if(D=D.value,D.C7[B.name])for(V=g.m(D.C7[B.name]),K=V.next();!K.done;K=V.next())if(J= K.value,K=B.message.match(J.v9)){B.params["params.error.original"]=K[0];V=J.groups;J={};for(N=0;N1E3&&g.CE(new g.iL("IL Attach cache exceeded limit"))}R= xf(B,L);UF.has(R)?eB(B,L):vb.set(R,!0)}}f=f.filter(function(F){F.csn!==L?(F.csn=L,F=!0):F=!1;return F}); B={csn:L,parentVe:B.getAsJson(),childVes:g.mn(f,function(F){return F.getAsJson()})}; L==="UNDEFINED_CSN"?nE("visualElementAttached",V,B):A?w8("visualElementAttached",B,A,V):g.pE("visualElementAttached",B,V)}; X7v=function(A,L,B,f,K,V,J){zN(B,L);f=Yf({cttAuthInfo:Hb(L)||void 0,automatedLogEventSource:J},L);B={csn:L,ve:B.getAsJson(),eventType:1};K&&(B.clientData=K);L==="UNDEFINED_CSN"?nE("visualElementShown",f,B):A?w8("visualElementShown",B,A,f):g.pE("visualElementShown",B,f)}; Og7=function(A,L,B,f){var K=(f=f===void 0?!1:f)?16:8;f=Yf({cttAuthInfo:Hb(L)||void 0,endOfSequence:f,automatedLogEventSource:void 0},L);B={csn:L,ve:B.getAsJson(),eventType:K};L==="UNDEFINED_CSN"?nE("visualElementHidden",f,B):A?w8("visualElementHidden",B,A,f):g.pE("visualElementHidden",B,f)}; uf=function(A,L,B,f,K,V){Ez1(A,L,B,void 0,f,K,V)}; Ez1=function(A,L,B,f,K,V,J){zN(B,L);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";V=Yf({cttAuthInfo:Hb(L)||void 0,automatedLogEventSource:J},L);B={csn:L,ve:B.getAsJson(),gestureType:f};K&&(B.clientData=K);L==="UNDEFINED_CSN"?nE("visualElementGestured",V,B):A?w8("visualElementGestured",B,A,V):g.pE("visualElementGestured",B,V)}; c_6=function(){var A=pV(16);for(var L=[],B=0;B0&&B.push(g.TO("BR"));B.push(g.lA(V))}):B.push(g.lA(f))}return B}; Fb=function(A,L,B,f){if(B==="child"){g.Ql(L);var K;f===void 0?K=void 0:K=!Array.isArray(f)||f&&typeof f.Z==="string"?[f]:f;B=YQe(A,K);B=g.m(B);for(A=B.next();!A.done;A=B.next())L.appendChild(A.value)}else B==="style"?g.Kv(L,"cssText",f?f:""):f===null||f===void 0?L.removeAttribute(B):(A=f.toString(),B==="href"&&(A=g.rt(g.hF(A))),L.setAttribute(B,A))}; g.q=function(A){g.ZE.call(this,A);this.bC=!0;this.yj=!1;this.listeners=[]}; g.DE=function(A){g.q.call(this,A);this.cn=new g.SN;g.W(this,this.cn)}; dq=function(A,L,B,f,K,V,J){J=J===void 0?null:J;g.DE.call(this,L);this.api=A;this.macros={};this.componentType=B;this.T=this.X=null;this.ql=J;this.layoutId=f;this.interactionLoggingClientData=K;this.Qj=V;this.Cr=null;this.u9=new dT(this.element);g.W(this,this.u9);this.Nl=this.Y(this.element,"click",this.onClick);this.ZM=[];this.Vj=new IW(this.onClick,this);g.W(this,this.Vj);this.mH=!1;this.JF=this.Wn=null}; Iu=function(A,L){A=A===void 0?null:A;L=L===void 0?null:L;if(A==null)return g.CE(Error("Got null or undefined adText object")),"";var B=g.xj(A.text);if(!A.isTemplated)return B;if(L==null)return g.CE(Error("Missing required parameters for a templated message")),B;A=g.m(Object.entries(L));for(L=A.next();!L.done;L=A.next()){var f=g.m(L.value);L=f.next().value;f=f.next().value;B=B.replace("{"+L+"}",f)}return B}; Usv=function(A){A=A===void 0?null:A;return A!=null&&(A=A.thumbnail,A!=null&&A.thumbnails!=null&&A.thumbnails.length!=0&&A.thumbnails[0].url!=null)?g.xj(A.thumbnails[0].url):""}; WM6=function(A){A=A===void 0?null:A;return A!=null&&(A=A.thumbnail,A!=null&&A.thumbnails!=null&&A.thumbnails.length!=0&&A.thumbnails[0].width!=null&&A.thumbnails[0].height!=null)?new g.Sr(A.thumbnails[0].width||0,A.thumbnails[0].height||0):new g.Sr(0,0)}; g.wq=function(A){if(A.simpleText)return A.simpleText;if(A.runs){var L=[];A=g.m(A.runs);for(var B=A.next();!B.done;B=A.next())B=B.value,B.text&&L.push(B.text);return L.join("")}return""}; g.p1=function(A){if(A.simpleText)return A=document.createTextNode(A.simpleText),A;var L=[];if(A.runs)for(var B=0;B1){for(var L=[A[0]],B=1;B0&&(this.N=new g.aa(this.Zv,L,this),g.W(this,this.N));this.D=new g.aa(this.Zv,B,this);g.W(this,this.D);this.G=Zcy(this.W,K,1,f);g.W(this,this.G);this.X=Zcy(this.W,0,f,1);g.W(this,this.X);this.U=new Qz;g.W(this,this.U)}; Nf=function(A,L){this.W=A;this.N=L}; $Ew=function(A){switch(A){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:kj(A,"unknown result type")}}; X9E=function(A,L){var B=1;A.isTrusted===!1&&(B=0);aw("ISDSTAT",B);Fo(B,"i.s_",{triggerContext:"sk",metadata:L});return B}; Onw=function(A,L){var B=[];L?L.isTrusted===!0?B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):L.isTrusted===!1?B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):B.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Fo(0,"a.s_",{metadata:A,states:B});aw("ASDSTAT",0)}; Fo=function(A,L,B){L=E_E[L];var f,K,V={detected:A===0,source:""+L.W+((f=B.triggerContext)!=null?f:"")+((K=B.qc)!=null?K:""),detectionStates:B.states,durationMs:B.H7};B.metadata&&(V.contentCpn=B.metadata.contentCpn,V.adCpn=B.metadata.adCpn);g.pE("biscottiBasedDetection",V);L.N!==void 0&&(B=Number(g.A_("CATSTAT",0)),L.N!==void 0?(L=L.N,A=$Ew(A),A=B&~(3<0}; pL=function(A,L,B,f,K,V){oA.call(this,A,{Z:"div",j:"ytp-ad-skip-button-slot"},"skip-button",L,B,f,K);var J=this;this.qp=null;this.wT=!1;this.Ex=V;this.D=this.api.K().experiments.GL("enable_modern_skip_button_on_web");this.sx=!1;this.U=new g.DE({Z:"span",Rr:["ytp-ad-skip-button-container"]});this.D&&this.U.element.classList.add("ytp-ad-skip-button-container-detached");g.W(this,this.U);this.U.DM(this.element);this.W=this.V=null;this.Ox=new g.KL(this.U,500,!1,100,function(){return J.hide()}); g.W(this,this.Ox);this.S4=new Zh(this.U.element,15E3,5E3,.5,.5,this.D);g.W(this,this.S4);this.hide()}; Mwk=function(A){A=A.qp&&A.qp.adRendererCommands;return(A&&A.clickCommand&&g.y(A.clickCommand,g.yr)&&g.y(A.clickCommand,g.yr).commands||[]).some(function(L){return L.adLifecycleCommand?cKQ(L.adLifecycleCommand):!1})}; cKQ=function(A){return A.action==="END_LINEAR_AD"||A.action==="END_LINEAR_AD_PLACEMENT"}; jm=function(A,L,B,f,K,V){oA.call(this,A,{Z:"div",j:"ytp-ad-skip-ad-slot"},"skip-ad",L,B,f,K);this.qp=V;this.U=!1;this.D=0;this.V=this.W=null;this.hide()}; YS8=function(A,L){A.U||(A.U=!0,A.W&&(L?A.W.qp.hide():A.W.hide()),L?(A=A.V,A.Ox.show(),A.show()):A.V.show())}; gk=function(A,L,B,f){Xb.call(this,A,L,B,f,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Gh=function(A,L,B,f,K,V,J){V=V===void 0?!1:V;J=J===void 0?!1:J;dq.call(this,A,{Z:"span",j:"ytp-ad-simple-ad-badge"},"simple-ad-badge",L,B,f);this.V=K;this.N=this.m4("ytp-ad-simple-ad-badge");(this.W=V)&&this.N.classList.add("ytp-ad-simple-ad-badge--clean-player");J&&this.N.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; rk=function(A,L,B,f,K){K=K===void 0?!1:K;Jr.call(this,"player-overlay",A,{},L,f);this.videoAdDurationSeconds=B;this.interactionLoggingClientData=f;this.uj=K}; sN=function(A,L){g.SN.call(this);this.api=A;this.durationMs=L;this.N=null;this.handler=new Qz(this);g.W(this,this.handler);this.W=UED;this.handler.Y(this.api,"presentingplayerstatechange",this.n0);this.N=this.handler.Y(this.api,"onAdPlaybackProgress",this.iq)}; HH=function(A){g.SN.call(this);this.N=!1;this.wQ=0;this.handler=new Qz(this);g.W(this,this.handler);this.durationMs=A;this.timer=new g.cD(100);g.W(this,this.timer);this.handler.Y(this.timer,"tick",this.iq);this.W={seekableStart:0,seekableEnd:A/1E3,current:0};this.start()}; g.hG=function(A,L){var B=Math.abs(Math.floor(A)),f=Math.floor(B/86400),K=Math.floor(B%86400/3600),V=Math.floor(B%3600/60);B=Math.floor(B%60);if(L){L="";f>0&&(L+=" "+f+" d\u00edas");if(f>0||K>0)L+=" "+K+" horas";L+=" "+V+" minutos";L+=" "+B+" segundos";f=L.trim()}else{L="";f>0&&(L+=f+":",K<10&&(L+="0"));if(f>0||K>0)L+=K+":",V<10&&(L+="0");L+=V+":";B<10&&(L+="0");f=L+B}return A>=0?f:"-"+f}; g.bV=function(A){return(!("button"in A)||typeof A.button!=="number"||A.button===0)&&!("shiftKey"in A&&A.shiftKey)&&!("altKey"in A&&A.altKey)&&!("metaKey"in A&&A.metaKey)&&!("ctrlKey"in A&&A.ctrlKey)}; kI=function(A,L,B,f,K,V,J){oA.call(this,A,{Z:"span",j:J?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",L,B,f,K);this.videoAdDurationSeconds=V;this.W=null;J&&this.api.K().W&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),ed&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Th=function(A,L,B,f){AG.call(this,A,L,B,f,"ytp-video-ad-top-bar-title","ad-title")}; lV=function(A){this.content=A.content;if(A.commandRuns){A=g.m(A.commandRuns);for(var L=A.next();!L.done;L=A.next())L=L.value,this.loggingDirectives=g.y(L,Wu6),L.onTap&&(this.interaction={onTap:L.onTap})}}; mm=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ad-simple-attributed-string"},"ad-simple-attributed-string",L,B,f);this.hide()}; Qr=function(A,L,B,f,K){dq.call(this,A,{Z:"span",j:K?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",L,B,f);this.W=K;this.adBadgeText=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);this.adBadgeText.DM(this.element);g.W(this,this.adBadgeText);K?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),ed&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; CL=function(A,L,B,f){dq.call(this,A,{Z:"span",j:"ytp-ad-pod-index"},"ad-pod-index",L,B,f);this.api.K().W&&(this.element.classList.add("ytp-ad-pod-index--mweb"),ed&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; iV=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",L,B,f);this.hide()}; $I=function(A,L){this.W=A;this.N=L}; v_S=function(A,L){return A.W+L*(A.N-A.W)}; Xo=function(A,L,B){return A.N-A.W?g.B4((L-A.W)/(A.N-A.W),0,1):B!=null?B:Infinity}; ON=function(A,L,B,f){f=f===void 0?!1:f;g.DE.call(this,{Z:"div",j:"ytp-ad-persistent-progress-bar-container",B:[{Z:"div",j:"ytp-ad-persistent-progress-bar"}]});this.api=A;this.W=L;this.V=B;f&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.W(this,this.W);this.progressBar=this.m4("ytp-ad-persistent-progress-bar");this.N=-1;this.Y(A,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; EN=function(A,L,B,f,K,V){dq.call(this,A,{Z:"div",j:"ytp-ad-player-overlay",B:[{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",L,B,f);this.G=V;this.D=this.m4("ytp-ad-player-overlay-flyout-cta");this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.N=this.m4("ytp-ad-player-overlay-instream-info");this.U=null;qSD(this)&&(A=k9("div"),g.R1(A,"ytp-ad-player-overlay-top-bar-gradients"),L=this.N,L.parentNode&&L.parentNode.insertBefore(A,L),(L=this.api.getVideoData(2))&&L.isListed&&L.title&&(B=new Th(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),B.DM(A),B.init(Vo("ad-title"),{text:L.title},this.macros),g.W(this,B)),this.U=A);this.V=null;this.Ys=this.m4("ytp-ad-player-overlay-skip-or-preview");this.S4=this.m4("ytp-ad-player-overlay-progress-bar"); this.wT=this.m4("ytp-ad-player-overlay-instream-user-sentiment");this.qp=this.m4("ytp-ad-player-overlay-ad-disclosure-banner");this.W=K;g.W(this,this.W);this.hide()}; qSD=function(A){A=A.api.K();return g.cH(A)&&A.W}; g.Mf=function(A){A&=16777215;var L=[(A&16711680)>>16,(A&65280)>>8,A&255];A=L[0];var B=L[1];L=L[2];A=Number(A);B=Number(B);L=Number(L);if(A!=(A&255)||B!=(B&255)||L!=(L&255))throw Error('"('+A+","+B+","+L+'") is not a valid RGB color');B=A<<16|B<<8|L;return A<16?"#"+(16777216|B).toString(16).slice(1):"#"+B.toString(16)}; g.YI=function(){}; xED=function(A){var L=new gm;var B=new jW;B=BS(B,1,"botguard");A=BS(B,2,A);this.N=o9e(L,jW,1,Ptv,A)}; UN=function(A){this.N=new Qd(A)}; emv=function(){var A=!1;try{A=!!window.sessionStorage.getItem("session_logininfo")}catch(L){A=!0}return(g.A_("INNERTUBE_CLIENT_NAME")==="WEB"||g.A_("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&A}; WH=function(){var A=A===void 0?!0:A;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");aw("LOGIN_INFO","");A&&window.sessionStorage.setItem("from_switch_account","1");A=!0;A=A===void 0?!1:A;var L,B=n_e;B||(B=document.querySelector("#persist_identity"));if(L=B){var f=L.src?(new URL(L.src)).origin:"*";if(A){var K;(K=L.contentWindow)==null||K.postMessage({action:"clear"},f)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var V=window.sessionStorage.getItem("session_logininfo");if(V){var J;(J=L.contentWindow)==null||J.postMessage({loginInfo:V},f)}}}}catch(R){}}; vH=function(A){A&&(A.startsWith("https://accounts.google.com/AddSession")?WH():A.startsWith("https://accounts.google.com/ServiceLogin")?WH():A.startsWith("https://myaccount.google.com")&&g.$7(A).W.endsWith("/youtubeoptions")&&WH());if(g.A_("LOGGED_IN",!0)&&emv()){var L=g.A_("VALID_SESSION_TEMPDATA_DOMAINS",[]);var B=g.tW(window.location.href);B&&L.push(B);B=g.tW(A);g.zK(L,B)||!B&&zk(A,"/")?(L=Tr(A),(L=NKL(L))?(L=RzD(L),L=(L=g.Yz(L)||null)?I0(L):{}):L=null):L=null;L==null&&(L={});B=L;var f=void 0; emv()?(f||(f=g.A_("LOGIN_INFO")),f?(B.session_logininfo=f,B=!0):B=!1):B=!1;B&&hv(A,L)}}; g.zmy=function(A){var L=L===void 0?{}:L;var B=B===void 0?"":B;var f=f===void 0?window:f;A=g.ip(A,L);vH(A);B=g.hF(A+B);f=f.location;B=bO(B);B!==void 0&&(f.href=B)}; g.qf=function(A,L,B){L=L===void 0?{}:L;B=B===void 0?!1:B;var f=g.A_("EVENT_ID");f&&(L.ei||(L.ei=f));L&&hv(A,L);B||(vH(A),g.zmy(A))}; g.PH=function(A,L,B,f,K){K=K===void 0?!1:K;B&&hv(A,B);B=g.hF(A);var V=g.rt(B);A!=V&&Kg(Error("Unsafe window.open URL: "+A));A=V;L=L||eS(A).toString(36);try{if(K)return K=A,K=OKw(K),vH(K),g.QR(window,K,L,"attributionsrc")}catch(J){g.B7(J)}vH(A);return g.QR(window,B,L,f)}; u$y=function(A){xI=A}; aGS=function(A){em=A}; ARQ=function(A){nL=A}; oL0=function(){LzC=nL=em=xI=null}; f3D=function(){var A=A===void 0?window.location.href:A;if(g.h_("kevlar_disable_theme_param"))return null;var L=ks(A);if(g.h_("enable_dark_theme_only_on_shorts")&&L!=null&&L.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var B=g.RM(A).theme;return B2e.get(B)||null}catch(f){}return null}; zh=function(){this.N={};if(this.W=xBk()){var A=g.Yz("CONSISTENCY");A&&Kz0(this,{encryptedTokenJarContents:A})}}; Kz0=function(A,L){if(L.encryptedTokenJarContents&&(A.N[L.encryptedTokenJarContents]=L,typeof L.expirationSeconds==="string")){var B=Number(L.expirationSeconds);setTimeout(function(){delete A.N[L.encryptedTokenJarContents]},B*1E3); A.W&&g.Ms("CONSISTENCY",L.encryptedTokenJarContents,B,void 0,!0)}}; aA=function(){this.W=-1;var A=g.A_("LOCATION_PLAYABILITY_TOKEN");g.A_("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=uV(this))&&(A=this.localStorage.get("yt-location-playability-token"));A&&(this.locationPlayabilityToken=A,this.N=void 0)}; uV=function(A){return A.localStorage===void 0?new Ks("yt-client-location"):A.localStorage}; g.AV=function(A,L,B){L=L===void 0?!1:L;B=B===void 0?!1:B;var f=g.A_("INNERTUBE_CONTEXT");if(!f)return g.mL(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};f=g.$g(f);g.h_("web_no_tracking_params_in_shell_killswitch")||delete f.clickTracking;f.client||(f.client={});var K=f.client;K.clientName==="MWEB"&&K.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(K.clientFormFactor=g.A_("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");K.screenWidthPoints=window.innerWidth;K.screenHeightPoints= window.innerHeight;K.screenPixelDensity=Math.round(window.devicePixelRatio||1);K.screenDensityFloat=window.devicePixelRatio||1;K.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var V=V===void 0?!1:V;var J=g.v9(),R="USER_INTERFACE_THEME_LIGHT";J.Iv(165)?R="USER_INTERFACE_THEME_DARK":J.Iv(174)?R="USER_INTERFACE_THEME_LIGHT":!g.h_("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (R="USER_INTERFACE_THEME_DARK");V=V?R:f3D()||R;K.userInterfaceTheme=V;if(!L){if(V=QQ1())K.connectionType=V;g.h_("web_log_effective_connection_type")&&(V=i2k())&&(f.client.effectiveConnectionType=V)}var Z;if(g.h_("web_log_memory_total_kbytes")&&((Z=g.rI.navigator)==null?0:Z.deviceMemory)){var N;Z=(N=g.rI.navigator)==null?void 0:N.deviceMemory;f.client.memoryTotalKbytes=""+Z*1E6}g.h_("web_gcf_hashes_innertube")&&(V=MFL())&&(N=V.coldConfigData,Z=V.coldHashData,V=V.hotHashData,f.client.configInfo=f.client.configInfo|| {},N&&(f.client.configInfo.coldConfigData=N),Z&&(f.client.configInfo.coldHashData=Z),V&&(f.client.configInfo.hotHashData=V));N=g.RM(g.rI.location.href);!g.h_("web_populate_internal_geo_killswitch")&&N.internalcountrycode&&(K.internalGeo=N.internalcountrycode);K.clientName==="MWEB"||K.clientName==="WEB"?(K.mainAppWebInfo||(K.mainAppWebInfo={}),K.mainAppWebInfo.graftUrl=g.rI.location.href,g.h_("kevlar_woffle")&&hvy.instance&&(N=hvy.instance,K.mainAppWebInfo.pwaInstallabilityStatus=!N.N&&N.W?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),K.mainAppWebInfo.webDisplayMode=Y_(),K.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):K.clientName==="TVHTML5"&&(!g.h_("web_lr_app_quality_killswitch")&&(N=g.A_("LIVING_ROOM_APP_QUALITY"))&&(K.tvAppInfo=Object.assign(K.tvAppInfo||{},{appQuality:N})),N=g.A_("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(K.tvAppInfo=Object.assign(K.tvAppInfo||{},{certificationScope:N}));if(!g.h_("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var F=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(v){}F=void 0}F&&(K.timeZone=F)}(F=t_())?K.experimentsToken=F:delete K.experimentsToken;F=kz();zh.instance||(zh.instance=new zh);f.request=Object.assign({},f.request,{internalExperimentFlags:F,consistencyTokenJars:hO(zh.instance.N)});!g.h_("web_prequest_context_killswitch")&&(F=g.A_("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(f.request.externalPrequestContext=F);K=g.v9();F=K.Iv(58);K=K.get("gsml","");f.user=Object.assign({}, f.user);F&&(f.user.enableSafetyMode=F);K&&(f.user.lockedSafetyMode=!0);g.h_("warm_op_csn_cleanup")?B&&(L=g.sF())&&(f.clientScreenNonce=L):!L&&(L=g.sF())&&(f.clientScreenNonce=L);A&&(f.clickTracking={clickTrackingParams:A});if(A=g.bB("yt.mdx.remote.remoteClient_"))f.remoteClient=A;aA.getInstance().setLocationOnInnerTubeContext(f);try{var D=pg(),I=D.bid;delete D.bid;f.adSignalsInfo={params:[],bid:I};for(var d=g.m(Object.entries(D)),w=d.next();!w.done;w=d.next()){var r=g.m(w.value),h=r.next().value, Q=r.next().value;D=h;I=Q;A=void 0;(A=f.adSignalsInfo.params)==null||A.push({key:D,value:""+I})}var l,C;if(((l=f.client)==null?void 0:l.clientName)==="TVHTML5"||((C=f.client)==null?void 0:C.clientName)==="TVHTML5_UNPLUGGED"){var O=g.A_("INNERTUBE_CONTEXT");O.adSignalsInfo&&(f.adSignalsInfo.advertisingId=O.adSignalsInfo.advertisingId,f.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",f.adSignalsInfo.limitAdTracking=O.adSignalsInfo.limitAdTracking)}}catch(v){g.mL(v)}return f}; S_6=function(A,L){if(!A)return!1;var B,f=(B=g.y(A,Vdw))==null?void 0:B.signal;if(f&&L.GT)return!!L.GT[f];var K;if((B=(K=g.y(A,JRS))==null?void 0:K.request)&&L.gs)return!!L.gs[B];for(var V in A)if(L.Jx[V])return!0;return!1}; RXy=function(A){var L={"Content-Type":"application/json"};g.A_("EOM_VISITOR_DATA")?L["X-Goog-EOM-Visitor-Id"]=g.A_("EOM_VISITOR_DATA"):g.A_("VISITOR_DATA")&&(L["X-Goog-Visitor-Id"]=g.A_("VISITOR_DATA"));L["X-Youtube-Bootstrap-Logged-In"]=g.A_("LOGGED_IN",!1);g.A_("DEBUG_SETTINGS_METADATA")&&(L["X-Debug-Settings-Metadata"]=g.A_("DEBUG_SETTINGS_METADATA"));A!=="cors"&&((A=g.A_("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(L["X-Youtube-Client-Name"]=A),(A=g.A_("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(L["X-Youtube-Client-Version"]= A),(A=g.A_("CHROME_CONNECTED_HEADER"))&&(L["X-Youtube-Chrome-Connected"]=A),(A=g.A_("DOMAIN_ADMIN_STATE"))&&(L["X-Youtube-Domain-Admin-State"]=A));(A=g.A_("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(L["X-YouTube-Lava-Device-Context"]=A);return L}; Zsy=function(){this.N={}}; L0=function(){this.mappings=new Zsy}; ov=function(A){return function(){return new A}}; Fzy=function(A){var L=L===void 0?"UNKNOWN_INTERFACE":L;if(A.length===1)return A[0];var B=N2v[L];if(B){B=new RegExp(B);for(var f=g.m(A),K=f.next();!K.done;K=f.next())if(K=K.value,B.exec(K))return K}var V=[];Object.entries(N2v).forEach(function(J){var R=g.m(J);J=R.next().value;R=R.next().value;L!==J&&V.push(R)}); B=new RegExp(V.join("|"));A.sort(function(J,R){return J.length-R.length}); f=g.m(A);for(K=f.next();!K.done;K=f.next())if(K=K.value,!B.exec(K))return K;return A[0]}; g.B8=function(A){return"/youtubei/v1/"+Fzy(A)}; f0=function(){}; K0=function(){}; Vm=function(){}; JV=function(A){return g.bB("ytcsi."+(A||"")+"data_")||Dxv(A)}; dxC=function(){var A=JV();A.info||(A.info={});return A.info}; SG=function(A){A=JV(A);A.metadata||(A.metadata={});return A.metadata}; Rv=function(A){A=JV(A);A.tick||(A.tick={});return A.tick}; Z8=function(A){A=JV(A);if(A.gel){var L=A.gel;L.gelInfos||(L.gelInfos={});L.gelTicks||(L.gelTicks={})}else A.gel={gelTicks:{},gelInfos:{}};return A.gel}; var G8k=function(A,L){return fSS[S[2]](this,1,A,L)}; I3y=function(A){A=Z8(A);A.gelInfos||(A.gelInfos={});return A.gelInfos}; ND=function(A){var L=JV(A).nonce;L||(L=g.y0(16),JV(A).nonce=L);return L}; Dxv=function(A){var L={tick:{},info:{}};g.hf("ytcsi."+(A||"")+"data_",L);return L}; FR=function(){var A=g.bB("ytcsi.debug");A||(A=[],g.hf("ytcsi.debug",A),g.hf("ytcsi.reference",{}));return A}; D8=function(A){A=A||"";var L=wf7();if(L[A])return L[A];var B=FR(),f={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};B.push(f);return L[A]=f}; pf0=function(A){A=A||"";var L=wf7();L[A]&&delete L[A];var B=FR(),f={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};B.push(f);L[A]=f}; wf7=function(){var A=g.bB("ytcsi.reference");if(A)return A;FR();return g.bB("ytcsi.reference")}; dX=function(A){return yRS[A]||"LATENCY_ACTION_UNKNOWN"}; Iv=function(A,L){II.call(this,1,arguments);this.timer=L}; wX=function(){this.N=0}; p0=function(){wX.instance||(wX.instance=new wX);return wX.instance}; jG=function(A,L){ym[L]=ym[L]||{count:0};var B=ym[L];B.count++;B.time=(0,g.bc)();A.N||(A.N=g.AR(0,function(){var f=(0,g.bc)(),K;for(K in ym)ym[K]&&f-ym[K].time>6E4&&delete ym[K];A&&(A.N=0)},5E3)); return B.count>5?(B.count===6&&Math.random()*1E5<1&&(B=new g.iL("CSI data exceeded logging limit with key",L.split("_")),L.indexOf("plev")>=0||g.CE(B)),!0):!1}; jlw=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; gL6=function(){var A;if(g.h_("csi_use_performance_navigation_timing")){var L,B,f,K=gX==null?void 0:(A=gX.getEntriesByType)==null?void 0:(L=A.call(gX,"navigation"))==null?void 0:(B=L[0])==null?void 0:(f=B.toJSON)==null?void 0:f.call(B);K?(K.requestStart=GJ(K.requestStart),K.responseEnd=GJ(K.responseEnd),K.redirectStart=GJ(K.redirectStart),K.redirectEnd=GJ(K.redirectEnd),K.domainLookupEnd=GJ(K.domainLookupEnd),K.connectStart=GJ(K.connectStart),K.connectEnd=GJ(K.connectEnd),K.responseStart=GJ(K.responseStart), K.secureConnectionStart=GJ(K.secureConnectionStart),K.domainLookupStart=GJ(K.domainLookupStart),K.isPerformanceNavigationTiming=!0,A=K):A=gX.timing}else A=g.h_("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(gX.timing)):gX.timing;return A}; GJ=function(A){return Math.round(rX()+A)}; rX=function(){return(g.h_("csi_use_time_origin")||g.h_("csi_use_time_origin_tvhtml5"))&&gX.timeOrigin?Math.floor(gX.timeOrigin):gX.timing.navigationStart}; H8=function(A,L){sC("_start",A,L)}; hV=function(A,L){if(!g.h_("web_csi_action_sampling_enabled")||!JV(L).actionDisabled){var B=D8(L||"");NU(B.info,A);A.loadType&&(B=A.loadType,SG(L).loadType=B);NU(I3y(L),A);B=ND(L);L=JV(L).cttAuthInfo;p0().info(A,B,L)}}; GUS=function(){var A,L,B,f;return((f=l_().resolve(h0(Zu))==null?void 0:(A=NJ())==null?void 0:(L=A.loggingHotConfig)==null?void 0:(B=L.csiConfig)==null?void 0:B.debugTicks)!=null?f:[]).map(function(K){return Object.values(K)[0]})}; sC=function(A,L,B){if(!g.h_("web_csi_action_sampling_enabled")||!JV(B).actionDisabled){var f=ND(B),K;if(K=g.h_("web_csi_debug_sample_enabled")&&f){(l_().resolve(h0(Zu))==null?0:NJ())&&!rR1&&(rR1=!0,sC("gcfl",(0,g.bc)(),B));var V,J,R;K=(l_().resolve(h0(Zu))==null?void 0:(V=NJ())==null?void 0:(J=V.loggingHotConfig)==null?void 0:(R=J.csiConfig)==null?void 0:R.debugSampleWeight)||0;if(V=K!==0)b:{V=GUS();if(V.length>0)for(J=0;JB.duration?f:B},{duration:0}))&&L.startTime>0&&L.responseEnd>0&&(sC("wffs",GJ(L.startTime)),sC("wffe",GJ(L.responseEnd)))}; T2y=function(A,L,B){gX&&gX.measure&&(A.startsWith("measure_")||(A="measure_"+A),B?gX.measure(A,L,B):L?gX.measure(A,L):gX.measure(A))}; l37=function(A){var L=bJ("aft",A);if(L)return L;L=g.A_((A||"")+"TIMING_AFT_KEYS",["ol"]);for(var B=L.length,f=0;f0&&hV(L);L={isNavigation:!0,actionType:dX(g.A_("TIMING_ACTION"))};var B=g.A_("PREVIOUS_ACTION");B&&(L.previousAction=dX(B));if(B=g.A_("CLIENT_PROTOCOL"))L.httpProtocol=B;if(B=g.A_("CLIENT_TRANSPORT"))L.transportProtocol=B;(B=g.sF())&&B!=="UNDEFINED_CSN"&&(L.clientScreenNonce=B);B=hXD();if(B===1||B===-1)L.isVisible= !0;B=SG().loadType==="cold";var f=dxC();B||(B=f.yt_lt==="cold");if(B){L.loadType="cold";B=dxC();f=gL6();var K=rX(),V=g.A_("CSI_START_TIMESTAMP_MILLIS",0);V>0&&!g.h_("embeds_web_enable_csi_start_override_killswitch")&&(K=V);K&&(sC("srt",f.responseStart),B.prerender!==1&&H8(K));B=Cck();B>0&&sC("fpt",B);B=gL6();B.isPerformanceNavigationTiming&&hV({performanceNavigationTiming:!0},void 0);sC("nreqs",B.requestStart,void 0);sC("nress",B.responseStart,void 0);sC("nrese",B.responseEnd,void 0);B.redirectEnd- B.redirectStart>0&&(sC("nrs",B.redirectStart,void 0),sC("nre",B.redirectEnd,void 0));B.domainLookupEnd-B.domainLookupStart>0&&(sC("ndnss",B.domainLookupStart,void 0),sC("ndnse",B.domainLookupEnd,void 0));B.connectEnd-B.connectStart>0&&(sC("ntcps",B.connectStart,void 0),sC("ntcpe",B.connectEnd,void 0));B.secureConnectionStart>=rX()&&B.connectEnd-B.secureConnectionStart>0&&(sC("nstcps",B.secureConnectionStart,void 0),sC("ntcpe",B.connectEnd,void 0));gX&&"getEntriesByType"in gX&&kU1();B=[];if(document.querySelector&& gX&&gX.getEntriesByName)for(var J in TJ)TJ.hasOwnProperty(J)&&(f=TJ[J],tde(J,f)&&B.push(f));if(B.length>0)for(L.resourceInfo=[],J=g.m(B),B=J.next();!B.done;B=J.next())L.resourceInfo.push({resourceCache:B.value})}hV(L);L=Z8();L.preLoggedGelInfos||(L.preLoggedGelInfos=[]);J=L.preLoggedGelInfos;L=I3y();B=void 0;for(f=0;f-1&&(delete DS["@type"],v=DS);d&&A.W.has(d)&&A.W.delete(d);((ry=L.config)==null?0:ry.LCx)&&mF(L.config.LCx);if(v||(uL=A.V)==null||!uL.hC1(L.input,L.jJ)){MC.Ux(11);break}return g.X(MC,A.V.lps(L.input,L.jJ),12);case 12:v=MC.W;case 11:return Yx(A, v,L),((Jf=L.config)==null?0:Jf.zu1)&&mF(L.config.zu1),f(),MC.return(v||void 0)}})}; Pcy=function(A,L){a:{A=A.HS;var B,f=(B=g.y(L,Vdw))==null?void 0:B.signal;if(f&&A.GT&&(B=A.GT[f])){var K=B();break a}var V;if((B=(V=g.y(L,JRS))==null?void 0:V.request)&&A.gs&&(V=A.gs[B])){K=V();break a}for(K in L)if(A.Jx[K]&&(L=A.Jx[K])){K=L();break a}K=void 0}if(K!==void 0)return Promise.resolve(K)}; eX6=function(A,L,B){var f,K,V,J,R,Z,N;return g.c(function(F){if(F.N==1){V=((f=L)==null?void 0:(K=f.i8)==null?void 0:K.identity)||dE;Z=(J=L)==null?void 0:(R=J.i8)==null?void 0:R.sessionIndex;var D=g.iX(A.N.oO(V,{sessionIndex:Z}));return g.X(F,D,2)}N=F.W;return F.return(Promise.resolve(Object.assign({},RXy(B),N)))})}; xxe=function(A,L,B){var f,K=(L==null?void 0:(f=L.i8)==null?void 0:f.identity)||dE,V;L=L==null?void 0:(V=L.i8)==null?void 0:V.sessionIndex;A=A.N.oO(K,{sessionIndex:L});return Object.assign({},RXy(B),A)}; UC=function(){}; W8=function(){}; v8=function(A){this.T=A}; qD=function(){}; P8=function(){}; xx=function(){}; eG=function(){}; g.n0=function(A,L){var B=g.pf.apply(2,arguments);A=A===void 0?0:A;g.iL.call(this,L,B);this.errorType=A;Object.setPrototypeOf(this,this.constructor.prototype)}; zJ=function(A){this.N=A}; Abv=function(A,L,B){if(A.N){var f=ks(cI(L,"key"))||"/UNKNOWN_PATH";A.N.start(f)}A=B;g.h_("wug_networking_gzip_request")&&(A=wC1(B));return new window.Request(L,A)}; g.av=function(A,L){if(!uJ){var B=l_();b_(B,{iG:LbD,ZN:zJ});var f={Jx:{feedbackEndpoint:ov(qD),modifyChannelNotificationPreferenceEndpoint:ov(P8),playlistEditEndpoint:ov(xx),shareEntityEndpoint:ov(v8),subscribeEndpoint:ov(UC),unsubscribeEndpoint:ov(W8),webPlayerShareEntityServiceEndpoint:ov(eG)}},K=aA.getInstance(),V={};K&&(V.client_location=K);A===void 0&&(A=b21());L===void 0&&(L=B.resolve(LbD));q_7(f,L,A,V);b_(B,{iG:olD,qK:EC.instance});uJ=B.resolve(olD)}return uJ}; BE8=function(A){var L=new DH;if(A.interpreterJavascript){var B=DBC(A.interpreterJavascript);B=XN(B).toString();var f=new NW;BS(f,6,B);PG(L,NW,1,f,Z7)}else A.interpreterUrl&&(B=mc(A.interpreterUrl),B=gt(B).toString(),f=new Fm,BS(f,4,B),PG(L,Fm,2,f,Z7));A.interpreterHash&&fH(L,3,A.interpreterHash,Z7);A.program&&fH(L,4,A.program,Z7);A.globalName&&fH(L,5,A.globalName,Z7);A.clientExperimentsStateBlob&&fH(L,7,A.clientExperimentsStateBlob,Z7);return L}; Ah=function(A){var L={};A=A.split("&");A=g.m(A);for(var B=A.next();!B.done;B=A.next())B=B.value.split("="),B.length===2&&(L[B[0]]=B[1]);return L}; fu7=function(){var A=A===void 0?window:A;var L,B;return g.c(function(f){if(f.N==1)return g.X(f,Za(),2);L=A;B=L.bgevmc;if(!B)throw Error("BGE Controls not exposed");return f.return({pause:function(){B.p()}, resume:function(){B.r()}, checkForRefresh:function(){return B.cr()}})})}; oE1=function(){if(g.h_("bg_st_hr"))return"havuokmhhs-0";var A,L=((A=globalThis.performance)==null?void 0:A.timeOrigin)||0;return"havuokmhhs-"+Math.floor(L)}; Lz=function(A){window.bgens=A}; oL=function(A){this.N=A}; KbD=function(){return new Promise(function(A){var L=window;L.ntpevasrs!==void 0?A(new oL(L.ntpevasrs)):(L.ntpqfbel===void 0&&(L.ntpqfbel=[]),L.ntpqfbel.push(function(B){A(new oL(B))}))})}; SuL=function(){if(JK()){var A=g.A_("PLAYER_VARS",{});if(g.QB(A,"privembed",!1)!="1"&&!Auv(A)){var L=function(){Bv=!0;"google_ad_status"in window?aw("DCLKSTAT",1):aw("DCLKSTAT",2)}; try{g.J0(V_7,L)}catch(B){}JbL.push(g.qT.pV(function(){if(!(Bv||"google_ad_status"in window)){try{if(V_7.toString()&&L){var B=""+g.$W(L),f=zR7[B];f&&g.KV(f)}}catch(K){}Bv=!0;aw("DCLKSTAT",3)}},5E3))}}}; fz=function(){var A=Number(g.A_("DCLKSTAT",0));return isNaN(A)?0:A}; SU=function(A,L,B){var f=this;this.network=A;this.options=L;this.W=B;this.N=null;if(L.zIp){var K=new g.IQ;this.N=K.promise;g.rI.ytAtRC&&aX(function(){var V,J;return g.c(function(R){if(R.N==1){if(!g.rI.ytAtRC)return R.return();V=Kz(null);return g.X(R,VD(f,V),2)}J=R.W;g.rI.ytAtRC&&g.rI.ytAtRC(JSON.stringify(J));g.VK(R)})},2); KbD().then(function(V){var J,R,Z,N;return g.c(function(F){if(F.N==1)return V.bindInnertubeChallengeFetcher(function(D){return VD(f,Kz(D))}),g.X(F,Za(),2); J=F.W;R=V.getLatestChallengeResponse();Z=R.challenge;if(!Z)throw Error("BGE_MACIL");N={challenge:Z,AO:Ah(Z),Bo:J,bgChallenge:new DH};K.resolve(N);V.registerChallengeFetchedCallback(function(D){D=D.challenge;if(!D)throw Error("BGE_MACR");D={challenge:D,AO:Ah(D),Bo:J,bgChallenge:new DH};f.N=Promise.resolve(D)}); g.VK(F)})})}else L.preload&&Ruw(this,new Promise(function(V){g.AR(0,function(){V(Jh(f))},0)}))}; Kz=function(A){var L={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};A&&(L.interpreterHash=A);return L}; Jh=function(A,L){L=L===void 0?0:L;var B,f,K,V,J,R,Z,N,F,D,I,d;return g.c(function(w){switch(w.N){case 1:B=Kz(yq().N);if(g.h_("att_fet_ks"))return g.S5(w,7),g.X(w,VD(A,B),9);g.S5(w,4);return g.X(w,Z4L(A,B),6);case 6:J=w.W;K=J.q61;V=J.I04;f=J;g.ZR(w,3);break;case 4:return g.NX(w),g.CE(Error("Failed to fetch attestation challenge after "+(L+" attempts; not retrying for 24h."))),RL(A,864E5),w.return({challenge:"",AO:{},Bo:void 0,bgChallenge:void 0});case 9:f=w.W;if(!f)throw Error("Fetching Attestation challenge returned falsy"); if(!f.challenge)throw Error("Missing Attestation challenge");K=f.challenge;V=Ah(K);if("c1a"in V&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.ZR(w,3);break;case 7:R=g.NX(w);g.CE(R);L++;if(L>=5)return g.CE(Error("Failed to fetch attestation challenge after "+(L+" attempts; not retrying for 24h."))),RL(A,864E5),w.return({challenge:"",AO:{},Bo:void 0,bgChallenge:void 0});Z=1E3*Math.pow(2,L-1)+Math.random()*1E3;return w.return(new Promise(function(r){g.AR(0, function(){r(Jh(A,L))},Z)})); case 3:N=Number(V.t)||7200;RL(A,N*1E3);F=void 0;if(!("c1a"in V&&f.bgChallenge)){w.Ux(10);break}D=BE8(f.bgChallenge);g.S5(w,11);return g.X(w,Ag0(yq(),D),13);case 13:g.ZR(w,12);break;case 11:return I=g.NX(w),g.CE(I),w.return({challenge:K,AO:V,Bo:F,bgChallenge:D});case 12:return g.S5(w,14),F=new ws({challenge:D,iz:{NP:"aGIf"}}),g.X(w,F.Bl,16);case 16:g.ZR(w,10);break;case 14:d=g.NX(w),g.CE(d),F=void 0;case 10:return w.return({challenge:K,AO:V,Bo:F,bgChallenge:D})}})}; NEy=function(A,L){var B;return g.c(function(f){if(f.N==1)return Lz(2),g.S5(f,2),g.X(f,VD(A.network,L),4);if(f.N!=2)return(B=f.W)?B.challenge&&!B.bgChallenge?Lz(1):Lz(4):Lz(3),f.return(B);g.NX(f);Lz(3);return f.return(void 0)})}; VD=function(A,L){var B;return g.c(function(f){B=A.W;if(!B||B.Dr())return f.return(NEy(A,L));OC("att_pna",void 0,"attestation_challenge_fetch");return f.return(new Promise(function(K){B.Hc("publicytnetworkstatus-online",function(){NEy(A,L).then(K)})}))})}; Fb8=function(A){if(!A)throw Error("Fetching Attestation challenge returned falsy");if(!A.challenge)throw Error("Missing Attestation challenge");var L=A.challenge,B=Ah(L);if("c1a"in B&&(!A.bgChallenge||!A.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},A,{q61:L,I04:B})}; Z4L=function(A,L){var B,f,K,V,J;return g.c(function(R){switch(R.N){case 1:B=void 0,f=0,K={};case 2:if(!(f<5)){R.Ux(4);break}if(!(f>0)){R.Ux(5);break}K.Tw=1E3*Math.pow(2,f-1)+Math.random()*1E3;return g.X(R,new Promise(function(Z){return function(N){g.AR(0,function(){N(void 0)},Z.Tw)}}(K)),5); case 5:return g.S5(R,7),g.X(R,VD(A,L),9);case 9:return V=R.W,R.return(Fb8(V));case 7:B=J=g.NX(R),J instanceof Error&&g.CE(J);case 8:f++;K={Tw:void 0};R.Ux(2);break;case 4:throw B;}})}; Ruw=function(A,L){A.N=L}; DJD=function(A){var L,B,f;return g.c(function(K){if(K.N==1)return g.X(K,Promise.race([A.N,null]),2);L=K.W;var V=Jh(A);A.N=V;(B=L)==null||(f=B.Bo)==null||f.dispose();g.VK(K)})}; RL=function(A,L){function B(){var K;return g.c(function(V){K=f-Date.now();return K<1E3?g.X(V,DJD(A),0):(aX(B,0,Math.min(K,6E4)),V.Ux(0))})} var f=Date.now()+L;B()}; dJE=function(A,L){return new Promise(function(B){g.AR(0,function(){B(L())},A)})}; Iu0=function(){return new Promise(function(A){var L=window;L.attmp!==void 0?A(L.attmp):(L.attmq===void 0&&(L.attmq=[]),L.attmq.push(function(B){A(B)}))})}; g.wav=function(A,L){var B,f,K;return g.c(function(V){if(V.N==1){if(!g.h_("attmusi")||!g.h_("attmusi_ue"))return V.Ux(2);B=window;return B.attmp!==void 0?V.return(B.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",A,L)):g.X(V,Iu0(),3)}if(V.N!=2)return f=V.W,V.return(f.s("ENGAGEMENT_TYPE_PLAYBACK",A,L));var J=g.bB("yt.aba.att");return(K=J?J:SU.instance!==void 0?SU.instance.V.bind(SU.instance):null)?V.return(K("ENGAGEMENT_TYPE_PLAYBACK",A,L)):V.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.paQ=function(){var A,L,B;return g.c(function(f){if(f.N==1){if(!g.h_("attmusi")||!g.h_("attmusi_ue"))return f.Ux(2);A=window;return A.attmp===void 0?f.return(!1):g.X(f,Iu0(),3)}if(f.N!=2)return L=f.W,f.return(L.ir());var K=g.bB("yt.aba.att2");return(B=K?K:SU.instance!==void 0?SU.instance.U.bind(SU.instance):null)?f.return(B()):f.return(Promise.resolve(!1))})}; jIe=function(A,L){var B=g.bB("ytDebugData.callbacks");B||(B={},g.hf("ytDebugData.callbacks",B));if(g.h_("web_dd_iu")||ybD.includes(A))B[A]=L}; ZF=function(){var A=glk;var L=L===void 0?[]:L;var B=B===void 0?[]:B;L=JUQ.apply(null,[SED.apply(null,g.x7(L))].concat(g.x7(B)));this.store=Z8S(A,void 0,L)}; g.NA=function(A,L,B){for(var f=Object.assign({},A),K=g.m(Object.keys(L)),V=K.next();!V.done;V=K.next()){V=V.value;var J=A[V],R=L[V];if(R===void 0)delete f[V];else if(J===void 0)f[V]=R;else if(Array.isArray(R)&&Array.isArray(J))f[V]=B?[].concat(g.x7(J),g.x7(R)):R;else if(!Array.isArray(R)&&g.QK(R)&&!Array.isArray(J)&&g.QK(J))f[V]=g.NA(J,R,B);else if(typeof R===typeof J)f[V]=R;else return L=new g.iL("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:V,zgs:J,updateValue:R}),g.mL(L), A}return f}; FK=function(A){var L=this;A=A===void 0?[]:A;this.N=[];this.V=this.W=0;this.U=void 0;this.totalLength=0;A.forEach(function(B){L.append(B)})}; GPQ=function(A,L){return A.N.length===0?!1:(A=A.N[A.N.length-1])&&A.buffer===L.buffer&&A.byteOffset+A.length===L.byteOffset}; DF=function(A,L){L=g.m(L.N);for(var B=L.next();!B.done;B=L.next())A.append(B.value)}; dZ=function(A,L,B){return A.split(L).Mz.split(B).NJ}; IL=function(A){A.U=void 0;A.W=0;A.V=0}; wZ=function(A,L,B){A.isFocused(L);return L-A.V+B<=A.N[A.W].length}; rbC=function(A){if(!A.U){var L=A.N[A.W];A.U=new DataView(L.buffer,L.byteOffset,L.length)}return A.U}; sIQ=function(A,L,B){L=L===void 0?0:L;B=B===void 0?-1:B;if(!A.totalLength||!B)return new DataView(new ArrayBuffer(0));B<0&&(B=A.totalLength-L);A.focus(L);if(!wZ(A,L,B)){var f=A.W,K=A.V;A.focus(L+B-1);K=new Uint8Array(A.V+A.N[A.W].length-K);for(var V=0,J=f;J<=A.W;J++)K.set(A.N[J],V),V+=A.N[J].length;A.N.splice(f,A.W-f+1,K);IL(A);A.focus(L)}f=A.N[A.W];return new DataView(f.buffer,f.byteOffset+L-A.V,B)}; pz=function(A,L,B){A=sIQ(A,L===void 0?0:L,B===void 0?-1:B);return new Uint8Array(A.buffer,A.byteOffset,A.byteLength)}; yD=function(A,L,B){A=pz(A,L===void 0?0:L,B===void 0?-1:B);L=new Uint8Array(A.length);try{L.set(A)}catch(f){for(B=0;B>10;V=56320|V&1023}rZ[K++]=V}}V=String.fromCharCode.apply(String,rZ); K<1024&&(V=V.substring(0,K));B.push(V)}return B.join("")}; hh=function(A,L){var B;if((B=Hv)==null?0:B.encodeInto)return L=Hv.encodeInto(A,L),L.read>6|192:((K&64512)===55296&&f+1>18|240,L[B++]=K>>12&63|128):L[B++]=K>>12|224,L[B++]=K>>6&63|128),L[B++]=K&63|128)}return B}; bD=function(A){if(Hv)return Hv.encode(A);var L=new Uint8Array(Math.ceil(A.length*1.2)),B=hh(A,L);L.lengthB&&(L=L.subarray(0,B));return L}; th=function(A){this.N=A;this.pos=0;this.W=-1}; kv=function(A){var L=jU(A.N,A.pos);++A.pos;if(L<128)return L;for(var B=L&127,f=1;L>=128;)L=jU(A.N,A.pos),++A.pos,f*=128,B+=(L&127)*f;return B}; T3=function(A,L){var B=A.W;for(A.W=-1;A.pos+1<=A.N.totalLength;){B<0&&(B=kv(A));var f=B>>3,K=B&7;if(f===L)return!0;if(f>L){A.W=B;break}B=-1;switch(K){case 0:kv(A);break;case 1:A.pos+=8;break;case 2:f=kv(A);A.pos+=f;break;case 5:A.pos+=4}}return!1}; lD=function(A,L){if(T3(A,L))return kv(A)}; b4w=function(A,L){if(T3(A,L))return L=pz(A.N,A.pos,8),A.pos+=8,(new DataView(L.buffer,L.byteOffset,L.byteLength)).getFloat64(0,!0)}; mE=function(A,L){if(T3(A,L))return!!kv(A)}; QD=function(A,L){if(T3(A,L)){L=kv(A);var B=pz(A.N,A.pos,L);A.pos+=L;return B}}; Cz=function(A,L){if(A=QD(A,L))return g.sX(A)}; iD=function(A,L,B){if(A=QD(A,L))return B(new th(new FK([A])))}; $v=function(A,L){for(var B=[];T3(A,L);)B.push(kv(A));return B.length?B:void 0}; XK=function(A,L,B){for(var f=[],K;K=QD(A,L);)f.push(B(new th(new FK([K]))));return f.length?f:void 0}; OX=function(A,L){A=A instanceof Uint8Array?new FK([A]):A;return L(new th(A))}; t_k=function(A,L){A=new Uint8Array(A);L&&A.set(L);return A}; kPy=function(A){this.pos=0;this.W=[];this.N=t_k(A===void 0?4096:A);this.view=new DataView(this.N.buffer,this.N.byteOffset,this.N.byteLength)}; EX=function(A,L){L=A.pos+L;if(!(A.N.length>=L)){for(var B=A.N.length*2;B268435455){EX(A,4);for(var B=L&1073741823,f=0;f<4;f++)A.view.setUint8(A.pos,B&127|128),B>>=7,A.pos+=1;L=Math.floor(L/268435456)}for(EX(A,4);L>127;)A.view.setUint8(A.pos,L&127|128),L>>=7,A.pos+=1;A.view.setUint8(A.pos,L);A.pos+=1}; MA=function(A,L,B){B!==void 0&&(cv(A,L*8),cv(A,B))}; Yv=function(A,L,B){B!==void 0&&MA(A,L,B?1:0)}; UX=function(A,L,B){B!==void 0&&(cv(A,L*8+2),L=B.length,cv(A,L),EX(A,L),A.N.set(B,A.pos),A.pos+=L)}; Wv=function(A,L,B){B!==void 0&&(TE7(A,L,Math.ceil(Math.log2(B.length*4+2)/7)),EX(A,B.length*1.2),L=hh(B,A.N.subarray(A.pos)),A.pos+L>A.N.length&&(EX(A,L),L=hh(B,A.N.subarray(A.pos))),A.pos+=L,luS(A))}; TE7=function(A,L,B){B=B===void 0?2:B;cv(A,L*8+2);A.W.push(A.pos);A.W.push(B);A.pos+=B}; luS=function(A){for(var L=A.W.pop(),B=A.W.pop(),f=A.pos-B-L;L--;){var K=L?128:0;A.view.setUint8(B++,f&127|K);f>>=7}}; vv=function(A,L,B,f,K){B&&(TE7(A,L,K===void 0?3:K),f(A,B),luS(A))}; g.qA=function(A,L){var B=new kPy(4096);L(B,A);return new Uint8Array(B.N.buffer,B.N.byteOffset,B.pos)}; g.Pv=function(A){var L=new th(new FK([WX(decodeURIComponent(A))]));A=Cz(L,2);L=lD(L,4);var B=mJ8[L];if(typeof B==="undefined")throw A=new g.iL("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:L}),g.mL(A),A;return{ED:L,entityType:B,entityId:A}}; g.xv=function(A,L){var B=B===void 0?0:B;var f=new kPy;UX(f,2,bD(A));A=QIv[L];if(typeof A==="undefined")throw B=new g.iL("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:L}),g.mL(B),B;MA(f,4,A);MA(f,5,1);L=new Uint8Array(f.N.buffer,f.N.byteOffset,f.pos);return encodeURIComponent(g.Y$(L,B))}; eU=function(A,L,B,f){if(f===void 0)return f=Object.assign({},A[L]||{}),B=(delete f[B],f),f={},Object.assign({},A,(f[L]=B,f));var K={},V={};return Object.assign({},A,(V[L]=Object.assign({},A[L],(K[B]=f,K)),V))}; Cy6=function(A,L,B,f,K){var V=A[L];if(V==null||!V[B])return A;f=g.NA(V[B],f,K==="REPEATED_FIELDS_MERGE_OPTION_APPEND");K={};V={};return Object.assign({},A,(V[L]=Object.assign({},A[L],(K[B]=f,K)),V))}; i4E=function(A,L){A=A===void 0?{}:A;switch(L.type){case "ENTITY_LOADED":return L.payload.reduce(function(f,K){var V,J=(V=K.options)==null?void 0:V.persistenceOption;if(J&&J!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&J!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return f;if(!K.entityKey)return g.mL(Error("Missing entity key")),f;if(K.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!K.payload)return K=new g.iL("REPLACE entity mutation is missing a payload",{entityKey:K.entityKey}),g.mL(K),f;var R=g.Hk(K.payload); return eU(f,R,K.entityKey,K.payload[R])}if(K.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{K=K.entityKey;try{var Z=g.Pv(K).entityType;R=eU(f,Z,K);break a}catch(D){if(D instanceof Error){K=new g.iL("Failed to deserialize entity key",{entityKey:K,originalMessage:D.message});g.mL(K);R=f;break a}throw D;}R=void 0}return R}if(K.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!K.payload)return K=new g.iL("UPDATE entity mutation is missing a payload",{entityKey:K.entityKey}),g.mL(K),f;R=g.Hk(K.payload);var N,F;return Cy6(f, R,K.entityKey,K.payload[R],(N=K.fieldMask)==null?void 0:(F=N.mergeOptions)==null?void 0:F.repeatedFieldsMergeOption)}return f},A); case "REPLACE_ENTITY":var B=L.payload;return eU(A,B.entityType,B.key,B.ze);case "REPLACE_ENTITIES":return Object.keys(L.payload).reduce(function(f,K){var V=L.payload[K];return Object.keys(V).reduce(function(J,R){return eU(J,K,R,V[R])},f)},A); case "UPDATE_ENTITY":return B=L.payload,Cy6(A,B.entityType,B.key,B.ze,B.Dbj);default:return A}}; nz=function(A,L,B){return A[L]?A[L][B]||null:null}; z3=function(A){return window.Int32Array?new Int32Array(A):Array(A)}; BT=function(A){g.Y.call(this);this.counter=[0,0,0,0];this.W=new Uint8Array(16);this.N=16;if(!$J1){var L,B=new Uint8Array(256),f=new Uint8Array(256);var K=1;for(L=0;L<256;L++)B[K]=L,f[L]=K,K^=K<<1^(K>>7&&283);uD=new Uint8Array(256);aL=z3(256);AQ=z3(256);LO=z3(256);od=z3(256);for(var V=0;V<256;V++){K=V?f[255^B[V]]:0;K^=K<<1^K<<2^K<<3^K<<4;K=K&255^K>>>8^99;uD[V]=K;L=K<<1^(K>>7&&283);var J=L^K;aL[V]=L<<24|K<<16|K<<8|J;AQ[V]=J<<24|aL[V]>>>8;LO[V]=K<<24|AQ[V]>>>8;od[V]=K<<24|LO[V]>>>8}$J1=!0}K=z3(44);for(B= 0;B<4;B++)K[B]=A[4*B]<<24|A[4*B+1]<<16|A[4*B+2]<<8|A[4*B+3];for(f=1;B<44;B++)A=K[B-1],B%4||(A=(uD[A>>16&255]^f)<<24|uD[A>>8&255]<<16|uD[A&255]<<8|uD[A>>>24],f=f<<1^(f>>7&&283)),K[B]=K[B-4]^A;this.key=K}; Xav=function(A){for(var L=A.key,B=A.counter[0]^L[0],f=A.counter[1]^L[1],K=A.counter[2]^L[2],V=A.counter[3]^L[3],J=3;J>=0&&!(A.counter[J]=-~A.counter[J]);J--);for(var R,Z,N=4;N<40;)J=aL[B>>>24]^AQ[f>>16&255]^LO[K>>8&255]^od[V&255]^L[N++],R=aL[f>>>24]^AQ[K>>16&255]^LO[V>>8&255]^od[B&255]^L[N++],Z=aL[K>>>24]^AQ[V>>16&255]^LO[B>>8&255]^od[f&255]^L[N++],V=aL[V>>>24]^AQ[B>>16&255]^LO[f>>8&255]^od[K&255]^L[N++],B=J,f=R,K=Z;A=A.W;J=L[40];A[0]=uD[B>>>24]^J>>>24;A[1]=uD[f>>16&255]^J>>16&255;A[2]=uD[K>>8&255]^ J>>8&255;A[3]=uD[V&255]^J&255;J=L[41];A[4]=uD[f>>>24]^J>>>24;A[5]=uD[K>>16&255]^J>>16&255;A[6]=uD[V>>8&255]^J>>8&255;A[7]=uD[B&255]^J&255;J=L[42];A[8]=uD[K>>>24]^J>>>24;A[9]=uD[V>>16&255]^J>>16&255;A[10]=uD[B>>8&255]^J>>8&255;A[11]=uD[f&255]^J&255;J=L[43];A[12]=uD[V>>>24]^J>>>24;A[13]=uD[B>>16&255]^J>>16&255;A[14]=uD[f>>8&255]^J>>8&255;A[15]=uD[K&255]^J&255}; VS=function(){if(!fO&&!g.ns){if(KO)return KO;var A;KO=(A=window.crypto)==null?void 0:A.subtle;var L,B,f;if(((L=KO)==null?0:L.importKey)&&((B=KO)==null?0:B.sign)&&((f=KO)==null?0:f.encrypt))return KO;KO=void 0}}; g.Rd=function(A){var L=VS();L&&(this.N=new JQ(A,L));this.W=new g.S8(A)}; JQ=function(A,L){this.W=A;this.subtleCrypto=L}; O40=function(A,L,B){var f,K;return g.c(function(V){switch(V.N){case 1:if(A.N){V.Ux(2);break}return g.X(V,A.subtleCrypto.importKey("raw",A.W,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:A.N=V.W;case 2:return f={name:"AES-CTR",counter:B,length:128},g.X(V,A.subtleCrypto.encrypt(f,A.N,L),4);case 4:return K=V.W,V.return(new Uint8Array(K))}})}; g.S8=function(A){this.W=A}; Zs=function(A){this.D=new Uint8Array(64);this.V=new Uint8Array(64);this.U=0;this.T=new Uint8Array(64);this.W=0;this.D.set(A);this.V.set(A);for(A=0;A<64;A++)this.D[A]^=92,this.V[A]^=54;this.reset()}; El1=function(A,L,B){for(var f=A.X,K=A.N[0],V=A.N[1],J=A.N[2],R=A.N[3],Z=A.N[4],N=A.N[5],F=A.N[6],D=A.N[7],I,d,w,r=0;r<64;)r<16?(f[r]=w=L[B]<<24|L[B+1]<<16|L[B+2]<<8|L[B+3],B+=4):(I=f[r-2],d=f[r-15],w=f[r-7]+f[r-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),f[r]=w),I=D+NN[r]+w+((Z>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7))+(Z&N^~Z&F),d=((K>>>2|K<<30)^(K>>>13|K<<19)^(K>>>22|K<<10))+(K&V^K&J^V&J),D=I+d,R+=I,r++,r<16?(f[r]=w=L[B]<<24|L[B+1]<<16|L[B+2]<<8|L[B+3],B+=4):(I= f[r-2],d=f[r-15],w=f[r-7]+f[r-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),f[r]=w),I=F+NN[r]+w+((R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7))+(R&Z^~R&N),d=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+(D&K^D&V^K&V),F=I+d,J+=I,r++,r<16?(f[r]=w=L[B]<<24|L[B+1]<<16|L[B+2]<<8|L[B+3],B+=4):(I=f[r-2],d=f[r-15],w=f[r-7]+f[r-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),f[r]=w),I=N+NN[r]+w+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&R^ ~J&Z),d=((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+(F&D^F&K^D&K),N=I+d,V+=I,r++,r<16?(f[r]=w=L[B]<<24|L[B+1]<<16|L[B+2]<<8|L[B+3],B+=4):(I=f[r-2],d=f[r-15],w=f[r-7]+f[r-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),f[r]=w),I=Z+NN[r]+w+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&J^~V&R),d=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&F^N&D^F&D),w=D,D=R,R=w,w=F,F=J,J=w,w=N,N=V,V=w,Z=K+I,K=I+d,r++;A.N[0]=K+A.N[0]|0;A.N[1]=V+A.N[1]|0;A.N[2]=J+A.N[2]|0;A.N[3]= R+A.N[3]|0;A.N[4]=Z+A.N[4]|0;A.N[5]=N+A.N[5]|0;A.N[6]=F+A.N[6]|0;A.N[7]=D+A.N[7]|0}; M_D=function(A){var L=new Uint8Array(32),B=64-A.W;A.W>55&&(B+=64);var f=new Uint8Array(B);f[0]=128;for(var K=A.U*8,V=1;V<9;V++){var J=K%256;f[B-V]=J;K=(K-J)/256}A.update(f);for(B=0;B<8;B++)L[B*4]=A.N[B]>>>24,L[B*4+1]=A.N[B]>>>16&255,L[B*4+2]=A.N[B]>>>8&255,L[B*4+3]=A.N[B]&255;cb6(A);return L}; cb6=function(A){A.N=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];A.X=[];A.X.length=64;A.U=0;A.W=0}; Yuk=function(A){this.N=A}; UJC=function(A,L,B){A=new Zs(A.N);A.update(L);A.update(B);L=M_D(A);A.update(A.D);A.update(L);L=M_D(A);A.reset();return L}; WbQ=function(A){this.W=A}; vly=function(A,L,B,f){var K,V,J;return g.c(function(R){switch(R.N){case 1:if(A.N){R.Ux(2);break}return g.X(R,f.importKey("raw",A.W,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:A.N=R.W;case 2:return K=new Uint8Array(L.length+B.length),K.set(L),K.set(B,L.length),V={name:"HMAC",hash:"SHA-256"},g.X(R,f.sign(V,A.N,K),4);case 4:return J=R.W,R.return(new Uint8Array(J))}})}; que=function(A,L,B){A.V||(A.V=new Yuk(A.W));return UJC(A.V,L,B)}; Py0=function(A,L,B){var f,K;return g.c(function(V){if(V.N==1){f=VS();if(!f)return V.return(que(A,L,B));g.S5(V,3);return g.X(V,vly(A,L,B,f),5)}if(V.N!=3)return V.return(V.W);K=g.NX(V);g.CE(K);fO=!0;return V.return(que(A,L,B))})}; eu7=function(A){for(var L="",B=0;B=0||XI(A,0,"gad_source",A.search(Ow))>=0}; BTw=function(){this.N=new Map}; Ke0=function(A,L){var B=l_().resolve(fPQ);if(o01(L)){var f=Ew(L,"gclid");L={handleEvent:function(R){A&&!A.closed&&typeof A.postMessage==="function"&&R&&R.origin&&R.source===A&&R.data&&R.data.action==="gcl_setup"&&A.postMessage(Object.assign({},{action:"gcl_transfer"},f&&{gclid:f},{gadSource:2}),R.origin)}}; for(var K=g.m(B.N),V=K.next();!V.done;V=K.next()){var J=g.m(V.value);V=J.next().value;J=J.next().value;if(V.closed)try{window.removeEventListener("message",J),B.N.delete(V)}catch(R){g.mL(R)}}A&&B.N.size<15&&(B.N.set(A,L),window.addEventListener("message",L))}}; Ff=function(A,L,B){if(!L)return A.length>=1?A[A.length-1]:null;for(var f=g.m(A),K=f.next();!K.done;K=f.next())if(K=K.value,K.width&&K.height&&(B&&K.width>=L||!B&&K.height>=L))return K;for(L=A.length-1;L>=0;L--)if(B&&A[L].width||!B&&A[L].height)return A[L];return A[0]}; Ds=function(){this.state=1;this.Bo=null;this.vI=void 0}; J00=function(A,L,B,f,K,V){var J=J===void 0?"trayride":J;B?(A.Y6(2),g.J0(g.Q4(B),function(){if(window[J])VPE(A,f,J,K);else{A.Y6(3);var R=nCD(B),Z=document.getElementById(R);Z&&(xHQ(R),Z.parentNode.removeChild(Z));g.CE(new g.iL("BL:ULB",""+B))}},V)):L?(V=g.TO("SCRIPT"),L instanceof iO?(V.textContent=XN(L),OT(V)):V.textContent=L,V.nonce=Ca(document),document.head.appendChild(V),document.head.removeChild(V),window[J]?VPE(A,f,J,K):(A.Y6(4),g.CE(new g.iL("BL:ULBJ")))):g.CE(new g.iL("BL:ULV"))}; VPE=function(A,L,B,f){A.Y6(5);var K=!!A.vI&&SlQ.includes(g.tW(A.vI)||"");try{var V=new ws({program:L,globalName:B,iz:{disable:!g.h_("att_web_record_metrics")||!g.h_("att_skip_metrics_for_cookieless_domains_ks")&&K,NP:"aGIf"}});V.Bl.then(function(){A.Y6(6);f&&f(L)}); A.VS(V)}catch(J){A.Y6(7),J instanceof Error&&g.CE(J)}}; d5=function(){var A=g.bB("yt.abuse.playerAttLoader");return A&&["bgvma","bgvmb","bgvmc"].every(function(L){return L in A})?A:null}; Id=function(){Ds.apply(this,arguments)}; w5=function(A){this.kX=A}; R80=function(A,L,B){for(var f=!1,K=g.m(A.F5.entries()),V=K.next();!V.done;V=K.next())V=g.m(V.value).next().value,V.slotType==="SLOT_TYPE_PLAYER_BYTES"&&V.u1==="core"&&(f=!0);if(f){a:if(!B){A=g.m(A.F5.entries());for(B=A.next();!B.done;B=A.next())if(f=g.m(B.value),B=f.next().value,f=f.next().value,B.slotType==="SLOT_TYPE_IN_PLAYER"&&B.u1==="core"){B=f.layoutId;break a}B=void 0}B?L.Fj(B):Dh("No triggering layout ID available when attempting to mute.")}}; pO=function(A,L){this.y4=A;this.Fe=L}; yS=function(){}; j8=function(){}; NTw=function(A){g.Y.call(this);var L=this;this.QK=A;this.N=new Map;g5(this,"commandExecutorCommand",function(B,f,K){ZV1(L,B.commands,f,K)}); g5(this,"clickTrackingParams",function(){})}; FeL=function(A,L){g5(A,L.vY(),function(B,f,K){L.Z9(B,f,K)})}; g5=function(A,L,B){A.TL();A.N.get(L)&&g.mL(Error("Extension name "+L+" already registered"));A.N.set(L,B)}; ZV1=function(A,L,B,f){L=L===void 0?[]:L;A.TL();var K=[],V=[];L=g.m(L);for(var J=L.next();!J.done;J=L.next())J=J.value,g.y(J,DU1)||g.y(J,dUy)?K.push(J):V.push(J);K=g.m(K);for(L=K.next();!L.done;L=K.next())GQ(A,L.value,B,f);V=g.m(V);for(K=V.next();!K.done;K=V.next())GQ(A,K.value,B,f)}; GQ=function(A,L,B,f){A.TL();L.loggingUrls&&IP7(A,"loggingUrls",L.loggingUrls,B,f);L=g.m(Object.entries(L));for(var K=L.next();!K.done;K=L.next()){var V=g.m(K.value);K=V.next().value;V=V.next().value;K==="openPopupAction"?A.QK.get().Dp("innertubeCommand",{openPopupAction:V}):K==="confirmDialogEndpoint"?A.QK.get().Dp("innertubeCommand",{confirmDialogEndpoint:V}):wQy.hasOwnProperty(K)||IP7(A,K,V,B,f)}}; IP7=function(A,L,B,f,K){if((A=A.N.get(L))&&typeof A==="function")try{A(B,f,K)}catch(V){g.mL(V)}else L=new g.iL("Unhandled field",L),g.CE(L)}; r5=function(A,L,B){this.kf=A;this.N=L;this.j4=B;b_(l_(),{iG:fPQ,ZN:BTw})}; sj=function(A){this.value=A}; HT=function(A){this.value=A}; hQ=function(A){this.value=A}; b5=function(A){this.value=A}; tQ=function(A){this.value=A}; kD=function(A){this.value=A}; TQ=function(A){this.value=A}; l5=function(){sj.apply(this,arguments)}; m_=function(A){this.value=A}; QS=function(A){this.value=A}; CO=function(A){this.value=A}; i5=function(A){this.value=A}; $D=function(A){this.value=A}; Xf=function(A){this.value=A}; Oj=function(A){this.value=A}; Ej=function(A){this.value=A}; cT=function(A){this.value=A}; MN=function(A){this.value=A}; YD=function(){sj.apply(this,arguments)}; Uj=function(A){this.value=A}; WT=function(A){this.value=A}; vT=function(A){this.value=A}; qN=function(A){this.value=A}; PT=function(A){this.value=A}; xD=function(A){this.value=A}; e8=function(A){this.value=A}; nO=function(A){this.value=A}; zQ=function(A){this.value=A}; u5=function(A){this.value=A}; ad=function(A){this.value=A}; Aw=function(A){this.value=A}; Lk=function(A){this.value=A}; oJ=function(A){this.value=A}; BF=function(A){this.value=A}; fk=function(A){this.value=A}; Kk=function(A){this.value=A}; Vt=function(A){this.value=A}; Jw=function(A){this.value=A}; S6=function(A){this.value=A}; RJ=function(A){this.value=A}; Zo=function(A){this.value=A}; N1=function(A){this.value=A}; Fv=function(A){this.value=A}; Do=function(A){this.value=A}; dU=function(A){this.value=A}; IJ=function(A){this.value=A}; wU=function(A){this.value=A}; pk=function(A){this.value=A}; j6=function(A){this.value=A}; gU=function(A){this.value=A}; Gb=function(A){this.value=A}; rU=function(A){this.value=A}; sg=function(A){this.value=A}; HF=function(A){this.value=A}; hw=function(A){this.value=A}; bT=function(A){this.value=A}; tw=function(A){this.value=A}; kX=function(A){this.value=A}; Tb=function(A){this.value=A}; lT=function(){sj.apply(this,arguments)}; mw=function(A){this.value=A}; Qt=function(){sj.apply(this,arguments)}; Ck=function(){sj.apply(this,arguments)}; iT=function(){sj.apply(this,arguments)}; $X=function(){sj.apply(this,arguments)}; Xv=function(){sj.apply(this,arguments)}; Og=function(A){this.value=A}; Eg=function(A){this.value=A}; cF=function(A){this.value=A}; M1=function(A){this.value=A}; Ug=function(A,L,B){if(B&&!B.includes(A.layoutType))return!1;L=g.m(L);for(B=L.next();!B.done;B=L.next())if(!YX(A.clientMetadata,B.value))return!1;return!0}; WF=function(){return""}; pQe=function(A,L){switch(A){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 L(A),8}}; vF=function(A,L,B,f){f=f===void 0?!1:f;Ww.call(this,A);this.Qq=B;this.jT=f;this.args=[];L&&this.args.push(L)}; n=function(A,L,B,f){f=f===void 0?!1:f;Ww.call(this,A);this.Qq=B;this.jT=f;this.args=[];L&&this.args.push(L)}; q1=function(A){var L=new Map;A.forEach(function(B){L.set(B.N(),B)}); this.N=L}; YX=function(A,L){return A.N.has(L)}; PF=function(A,L){A=A.N.get(L);if(A!==void 0)return A.get()}; xX=function(A){return Array.from(A.N.keys())}; e6=function(A,L,B){if(B&&B!==A.slotType)return!1;L=g.m(L);for(B=L.next();!B.done;B=L.next())if(!YX(A.clientMetadata,B.value))return!1;return!0}; jWv=function(A){var L;return((L=y0k.get(A))==null?void 0:L.cQ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; zb=function(A,L){var B={type:L.slotType,controlFlowManagerLayer:g0k.get(L.u1)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};L.slotEntryTrigger&&(B.entryTriggerType=L.slotEntryTrigger.triggerType);L.slotPhysicalPosition!==1&&(B.slotPhysicalPosition=L.slotPhysicalPosition);if(A){B.debugData={slotId:L.slotId};if(A=L.slotEntryTrigger)B.debugData.slotEntryTriggerData=nk(A);A=L.slotFulfillmentTriggers;B.debugData.fulfillmentTriggerData=[];A=g.m(A);for(var f=A.next();!f.done;f=A.next())B.debugData.fulfillmentTriggerData.push(nk(f.value)); L=L.slotExpirationTriggers;B.debugData.expirationTriggerData=[];L=g.m(L);for(A=L.next();!A.done;A=L.next())B.debugData.expirationTriggerData.push(nk(A.value))}return B}; Gxw=function(A,L){var B={type:L.layoutType,controlFlowManagerLayer:g0k.get(L.u1)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};A&&(B.debugData={layoutId:L.layoutId});return B}; nk=function(A,L){var B={type:A.triggerType};L!=null&&(B.category=L);A.triggeringSlotId!=null&&(B.triggerSourceData||(B.triggerSourceData={}),B.triggerSourceData.associatedSlotId=A.triggeringSlotId);A.triggeringLayoutId!=null&&(B.triggerSourceData||(B.triggerSourceData={}),B.triggerSourceData.associatedLayoutId=A.triggeringLayoutId);return B}; r07=function(A,L,B,f){L={opportunityType:L};A&&(f||B)&&(f=g.mn(f||[],function(K){return zb(A,K)}),L.debugData=Object.assign({},B&&B.length>0?{associatedSlotId:B}:{},f.length>0?{slots:f}:{})); return L}; aJ=function(A,L){return function(B){return sW8(uT(A),L.slotId,L.slotType,L.slotPhysicalPosition,L.u1,L.slotEntryTrigger,L.slotFulfillmentTriggers,L.slotExpirationTriggers,B.layoutId,B.layoutType,B.u1)}}; sW8=function(A,L,B,f,K,V,J,R,Z,N,F){return{adClientDataEntry:{slotData:zb(A,{slotId:L,slotType:B,slotPhysicalPosition:f,u1:K,slotEntryTrigger:V,slotFulfillmentTriggers:J,slotExpirationTriggers:R,clientMetadata:new q1([])}),layoutData:Gxw(A,{layoutId:Z,layoutType:N,u1:F,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Vf:new Map,clientMetadata:new q1([]),Aw:{}})}}}; Ly=function(A){this.FD=A;A=Math.random();var L=this.FD.get();L=g.Am(L.S.K().experiments,"html5_debug_data_log_probability");L=Number.isFinite(L)&&L>=0&&L<=1?L:0;this.N=A>31));MA(A,16,L.L4n);MA(A,17,L.detailedNetworkType);MA(A,18,L.O2);MA(A,19,L.ot);MA(A,21,L.eyj);MA(A,23,L.Ro);MA(A,28,L.q1);MA(A,29,L.HV1);MA(A,34,L.visibility);B=L.playbackRate;if(B!==void 0){var f=new ArrayBuffer(4);(new Float32Array(f))[0]=B;B=(new Uint32Array(f))[0];if(B!==void 0)for(cv(A,285),EX(A,4),f=0;f<4;)A.view.setUint8(A.pos,B&255),B>>=8,A.pos+=1,f+=1}MA(A,36,L.M6); vv(A,38,L.mediaCapabilities,dtS,3);MA(A,39,L.WF4);MA(A,40,L.C$);MA(A,44,L.playerState);Yv(A,46,L.UD);MA(A,48,L.PL);MA(A,50,L.AI);MA(A,51,L.LS);MA(A,54,L.O0);if(L.wj)for(B=0;B>31));Wv(A,2,L.message)}; su0=function(A,L){MA(A,1,L.clientState);vv(A,2,L.JaF,GZL,1)}; gr0=function(A,L){UX(A,1,L.ton);vv(A,2,L.bwr,rr6,3);vv(A,3,L.coldStartInfo,su0,3)}; juv=function(A,L){MA(A,1,L.type);UX(A,2,L.value)}; yrk=function(A,L){Wv(A,1,L.hl);Wv(A,12,L.deviceMake);Wv(A,13,L.deviceModel);MA(A,16,L.clientName);Wv(A,17,L.clientVersion);Wv(A,18,L.osName);Wv(A,19,L.osVersion)}; H10=function(A,L){Wv(A,1,L.name);Wv(A,2,L.value)}; rN=function(A,L){Wv(A,1,L.url);if(L.rr)for(var B=0;B55?"60":L>49?"50":L>39?"48":"")));this.qualityLabel=A;this.N=Z||"";this.primaries=N||""}; tT=function(A,L){var B=Math.max(A,L);A=Math.min(A,L);L=lQ[0];for(var f=0;f=Math.floor(V*16/9)*1.3||A>=V*1.3)return L;L=K}return"tiny"}; C$=function(A,L,B){B=B===void 0?{}:B;this.id=A;this.mimeType=L;B.lC>0||(B.lC=16E3);Object.assign(this,B);A=g.m(this.id.split(";"));this.itag=A.next().value;this.N=A.next().value;this.containerType=mP(L);this.Bn=Qu[this.itag]||""}; iQ=function(A){return A.Bn==="9"||A.Bn==="("||A.Bn==="9h"||A.Bn==="(h"}; RiE=function(A){return A.Bn==="H"||A.Bn==="h"}; $a=function(A){return A.Bn==="9h"||A.Bn==="(h"}; ZLy=function(A){return!!A.Zj&&!!A.Zj.fairplay&&(A.Bn==="("||A.Bn==="(h"||A.Bn==="A"||A.Bn==="MEAC3")||X2&&!!A.Zj&&A.Bn==="1e"}; Mb=function(A){return A.Bn==="1"||A.Bn==="1h"||X2&&A.Bn==="1e"}; Ya=function(A){return A.Bn==="mac3"||A.Bn==="meac3"||A.Bn==="m"||A.Bn==="i"||Nkv(A)}; Nkv=function(A){return A.Bn==="MAC3"||A.Bn==="MEAC3"||A.Bn==="M"||A.Bn==="I"}; g.U2=function(A){return A.containerType===1}; Fmv=function(A){return A.Bn==="("||A.Bn==="(h"||A.Bn==="H"||X2&&A.Bn==="1e"}; WV=function(A){return A.mimeType==="application/x-mpegURL"}; g.vV=function(A,L){return{itag:+A.itag,lmt:L?0:A.lastModified,xtags:A.N||""}}; Dfv=function(A){var L=navigator.mediaCapabilities;if(L==null||!L.decodingInfo||A.Bn==="f")return Promise.resolve();var B={type:A.audio&&A.video?"file":"media-source"};A.video&&(B.video={contentType:A.mimeType,width:A.video.width||640,height:A.video.height||360,bitrate:A.lC*8||1E6,framerate:A.video.fps||30});A.audio&&(B.audio={contentType:A.mimeType,channels:""+(A.audio.numChannels||2),bitrate:A.lC*8||128E3,samplerate:A.audio.sampleRate||44100});return L.decodingInfo(B).then(function(f){A.W=f})}; qb=function(A){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(A)}; PV=function(A){return/(vp9|vp09|vp8|avc1|av01)/.test(A)}; xa=function(A){return A.includes("vtt")||A.includes("text/mp4")}; mP=function(A){return A.indexOf("/mp4")>=0?1:A.indexOf("/webm")>=0?2:A.indexOf("/x-flv")>=0?3:A.indexOf("/vtt")>=0?4:0}; eo=function(A,L,B,f,K,V,J){var R=new IT;L in g.ka||(L="small");L==="light"&&(L="tiny");f&&K?(K=Number(K),f=Number(f)):(K=g.ka[L],f=Math.round(K*16/9));V=new Tv(f,K,0,null,void 0,L,V,J);A=unescape(A.replace(/"/g,'"'));return new C$(B,A,{audio:R,video:V})}; n$=function(A,L){return{start:function(B){return A[B]}, end:function(B){return L[B]}, length:A.length}}; df7=function(A,L,B){for(var f=[],K=[],V=0;V=L)return B}catch(f){}return-1}; aT=function(A,L){return uQ(A,L)>=0}; Ihv=function(A,L){if(!A)return NaN;L=uQ(A,L);return L>=0?A.start(L):NaN}; AA=function(A,L){if(!A)return NaN;L=uQ(A,L);return L>=0?A.end(L):NaN}; LW=function(A){return A&&A.length?A.end(A.length-1):NaN}; ok=function(A){return LW(A)>0}; Bi=function(A,L){A=AA(A,L);return A>=0?A-L:0}; fW=function(A,L,B){for(var f=[],K=[],V=0;VB||(f.push(Math.max(L,A.start(V))-L),K.push(Math.min(B,A.end(V))-L));return n$(f,K)}; KW=function(A,L,B,f){g.SN.call(this);var K=this;this.Py=A;this.start=L;this.end=B;this.isActive=f;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.fz={error:function(){!K.TL()&&K.isActive&&K.publish("error",K)}, updateend:function(){!K.TL()&&K.isActive&&K.publish("updateend",K)}}; this.Py.tA(this.fz);this.s1=this.isActive}; JA=function(A,L,B,f,K,V){g.SN.call(this);var J=this;this.uC=A;this.Sa=L;this.id=B;this.containerType=f;this.Bn=K;this.WV=V;this.Ul=this.BT=this.vk=null;this.Y5=!1;this.appendWindowStart=this.timestampOffset=0;this.WH=n$([],[]);this.bR=!1;this.cT=[];this.Vy=VV?[]:void 0;this.handler=function(Z){return J.publish(Z.type,J)}; var R;if((R=this.uC)==null?0:R.addEventListener)this.uC.addEventListener("updateend",this.handler),this.uC.addEventListener("error",this.handler)}; Se=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Rk=function(A,L){this.wi=A;this.N=L===void 0?!1:L;this.W=!1}; ZL=function(A,L,B){B=B===void 0?!1:B;g.Y.call(this);this.mediaElement=A;this.AF=L;this.isView=B;this.U=0;this.D=!1;this.T=!0;this.yj=0;this.callback=null;this.G=!1;this.AF||(this.Sa=this.mediaElement.Zg());this.events=new g.dN(this);g.W(this,this.events);this.V=new Rk(this.AF?window.URL.createObjectURL(this.AF):this.Sa.webkitMediaSourceURL,!0);A=this.AF||this.Sa;Cn(this.events,A,["sourceopen","webkitsourceopen"],this.EJF);Cn(this.events,A,["sourceclose","webkitsourceclose"],this.zd4);this.X={updateend:this.Ey}}; NK=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; wH0=function(A){return window.MediaSource?new ZL(A,new window.MediaSource,!1):window.ManagedMediaSource?new ZL(A,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new ZL(A,new window.WebKitMediaSource,!1):new ZL(A,void 0,!1)}; pHy=function(A,L){Fi(A)?g.lX(function(){L(A)}):A.callback=L}; yG0=function(A,L,B){if(DL){var f;A.mediaElement.b5("rms",{l:"mswssb",sr:(f=A.mediaElement.Np)==null?void 0:f.R0()},!1);L.tA(A.X,A);B.tA(A.X,A)}A.N=L;A.W=B;g.W(A,L);g.W(A,B)}; dz=function(A){return!!A.N||!!A.W}; Fi=function(A){try{return Ik(A)==="open"}catch(L){return!1}}; Ik=function(A){if(A.AF)return A.AF.readyState;switch(A.Sa.webkitSourceState){case A.Sa.SOURCE_OPEN:return"open";case A.Sa.SOURCE_ENDED:return"ended";default:return"closed"}}; wz=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; jAv=function(A,L,B,f){if(!A.N||!A.W)return null;var K=A.N.isView()?A.N.Py:A.N,V=A.W.isView()?A.W.Py:A.W,J=new ZL(A.mediaElement,A.AF,!0);J.V=A.V;yG0(J,new KW(K,L,B,f),new KW(V,L,B,f));Fi(A)||A.N.j8(A.N.pY());return J}; pW=function(A){var L;(L=A.N)==null||L.vG();var B;(B=A.W)==null||B.vG();A.T=!1}; yV=function(){var A=this;this.jV=this.xv=PLy;this.promise=new g.QX(function(L,B){A.xv=L;A.jV=B})}; je=function(){g.Y.call(this);this.jM=!1;this.wi=null;this.ZM=this.Vj=!1;this.yj=new g.gb;this.Wn=this.Np=null;g.W(this,this.yj)}; gI7=function(A,L,B){A.isPaused()||A.getCurrentTime()>L||B>10||(A.play(),g.gW(function(){gI7(A,A.getCurrentTime(),B+1)},500))}; GhC=function(A,L){A.wi&&A.wi.equals(L)||(A.wi&&A.wi.dispose(),A.wi=L)}; gz=function(A){A.eE()&&(A.Np&&A.Np.WZ("rs_s"),ed&&A.getCurrentTime()>0&&A.seekTo(0),A.Hd(),A.load(),GhC(A,null));delete A.X}; g.Gu=function(A,L,B){this.nh=L===void 0?null:L;this.seekSource=B===void 0?null:B;this.state=A||64}; rz=function(A,L,B){B=B===void 0?!1:B;return rG7(A,L.getCurrentTime(),(0,g.bc)(),L.vu(),B)}; sJ=function(A,L,B,f){if(!(L===A.state&&B===A.nh&&f===A.seekSource||L!==void 0&&(L&128&&!B||L&2&&L&16))){var K;if(K=L)K=L||A.state,K=!!(K&16||K&32);A=new g.Gu(L,B,K?f?f:A.seekSource:null)}return A}; Hi=function(A,L,B){return sJ(A,A.state|L,null,B===void 0?null:B)}; hA=function(A,L){return sJ(A,A.state&~L,null,null)}; b1=function(A,L,B,f){return sJ(A,(A.state|L)&~B,null,f===void 0?null:f)}; g.x=function(A,L){return!!(A.state&L)}; g.tA=function(A,L){return L.state===A.state&&L.nh===A.nh}; kF=function(A){return A.isPlaying()&&!g.x(A,16)&&!g.x(A,32)}; Tu=function(A){return g.x(A,128)?-1:g.x(A,2)?0:g.x(A,2048)?3:g.x(A,64)?-1:g.x(A,1)&&!g.x(A,32)?3:g.x(A,8)?1:g.x(A,4)?2:-1}; ma=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r){g.Y.call(this);var h=this;this.qT=A;this.slot=L;this.layout=B;this.j4=f;this.Fr=K;this.hF=V;this.Mp=J;this.j$=R;this.gi=Z;this.Kl=N;this.position=D;this.U=I;this.FD=d;this.Dz=w;this.context=r;this.wh=!0;this.V=!1;this.Wy="not_rendering";this.N=!1;A=PF(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(B.Vf,this.j4,A,B.layoutId);var Q;A=((Q=l1(this))==null?void 0:Q.progressCommands)||[];this.W=new tE(Z,A,B.layoutId,function(){return h.Xn()})}; l1=function(A){return PF(A.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; sAS=function(A){Dh("Received layout exit signal when not in layout exit flow.",A.slot,A.layout)}; HLD=function(A){var L;return((L=BV(A.hF.get(),2))==null?void 0:L.clientPlaybackNonce)||""}; hiy=function(A,L){switch(L){case "normal":A.eI("complete");break;case "skipped":A.eI("skip");break;case "abandoned":j9(A.vn,"impression")&&A.eI("abandon")}}; bLv=function(A,L){A.V||(L=new g.dk(L.state,new g.Gu),A.V=!0);return L}; tmQ=function(A,L){aE(L)?A.Kl(1):g.wk(L,4)&&!g.wk(L,2)&&A.iL();IA(L,4)<0&&!(IA(L,2)<0)&&A.Y7()}; khv=function(A){A.position===0&&(A.j$.get(),A=PF(A.layout.clientMetadata,"metadata_type_ad_placement_config").kind,A={adBreakType:QV(A)},mF("ad_bl"),g.Qm(A))}; CW=function(A,L){pU(A.vn,L,!A.N)}; lhy=function(A){var L;return(((L=l1(A))==null?void 0:L.progressCommands)||[]).findIndex(function(B){return!!g.y(B==null?void 0:B.command,TkD)})!==-1}; g.i1=function(A,L,B){iJ(A,B)||OC(A,L,B);iJ(A,"video_to_ad")||OC(A,L,"video_to_ad");iJ(A,"ad_to_video")||OC(A,L,"ad_to_video");iJ(A,"ad_to_ad")||OC(A,L,"ad_to_ad")}; $F=function(A){ma.call(this,A.qT,A.slot,A.d1,A.j4,A.Fr,A.hF,A.Mp,A.j$,A.gi,A.Kl,A.Ny,A.Ig,A.pM,A.FD,A.Dz,A.context);var L=this;this.UB=!0;this.RT=this.wQ=0;this.z9=nG(function(){L.qT.lq(L.slot,L.layout)}); this.QK=A.QK;this.Ny=A.Ny;this.Di=nG(function(){L.Wy!=="rendering_stop_requested"&&L.Ny(L);L.layoutExitReason?L.qT.CD(L.slot,L.layout,L.layoutExitReason):sAS(L)}); this.timer=new g.cD(200);this.timer.listen("tick",function(){L.iq()}); g.W(this,this.timer)}; mfv=function(A){A.RT=Date.now();Xi(A,A.wQ);A.timer.start()}; Xi=function(A,L){L={current:L/1E3,duration:A.Xn()/1E3};A.QK.get().Dp("onAdPlaybackProgress",L)}; ci=function(A){ma.call(this,A.callback,A.slot,A.d1,A.j4,A.Fr,A.hF,A.Mp,A.j$,A.gi,A.Kl,A.Ny,A.Ig,A.pM,A.FD,A.Dz,A.context);var L=this;this.adCpn="";this.gx=this.HD=0;this.z9=nG(function(){L.qT.lq(L.slot,L.layout)}); this.Di=nG(function(){L.Wy!=="rendering_stop_requested"&&L.Ny(L);L.layoutExitReason?L.qT.CD(L.slot,L.layout,L.layoutExitReason):sAS(L)}); this.Az=A.Az;this.h$=A.h$;this.FA=A.FA;this.QK=A.QK;this.E6=A.E6;this.Ny=A.Ny;XW(this.FD.get(),"html5_disable_media_load_timeout")||(this.sB=new g.aa(function(){L.Pp("load_timeout",new vF("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); A=OJ(this.FD.get());var B=EJ(this.FD.get());A&&B&&(this.X4=new g.aa(function(){var f=PF(L.layout.clientMetadata,"metadata_type_preload_player_vars");f&&L.h$.get().S.preloadVideoByPlayerVars(f,2,300)}))}; QAE=function(A){return new $F(Object.assign({},A,{qT:A.callback,Kl:function(){}}))}; CV6=function(A){return new ci(Object.assign({},A,{Kl:function(L){A.QK.get().Dp("onAdIntroStateChange",L)}}))}; iLL=function(A){return new ci(Object.assign({},A,{Kl:function(L){A.QK.get().lE(L)}}))}; $f1=function(A){for(var L=A.d1,B=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],f=g.m(dj()),K=f.next();!K.done;K=f.next())B.push(K.value);if(Ob(L,{qQ:B,o8:["LAYOUT_TYPE_MEDIA_BREAK"]}))return QAE(A);L=A.d1;B=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];f=g.m(dj());for(K=f.next();!K.done;K=f.next())B.push(K.value);if(Ob(L,{qQ:B,o8:["LAYOUT_TYPE_MEDIA"]}))return YX(A.d1.clientMetadata,"metadata_type_ad_intro")?CV6(A):iLL(A)}; MK=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){g.Y.call(this);this.callback=A;this.hF=L;this.sE=B;this.h$=f;this.Mp=K;this.MF=V;this.j$=J;this.OQ=R;this.slot=Z;this.layout=N;this.MU=F;this.Xy=D;this.wf=I;this.FD=d;this.wh=!0;this.Rb=!1;this.DJ=[];this.xu=-1;this.uc=!1}; YF=function(A){return A.DJ[A.xu]}; Wi=function(A,L,B){var f=YF(A);A.xu===A.DJ.length-1&&Dh("Unexpected skip with target requested during the last sublayout");if(B.renderingContent===void 0&&B.layoutId!==UJ(f,L,B)){Dh("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",f.LY(),f.dT(),{requestingSlot:L,requestingLayout:B});var K=!1}else K=!0;if(K){a:{if((K=PF(f.dT().clientMetadata,"metadata_type_ad_pod_skip_target"))&&K>0&&K0)){Dh("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",A.slot,A.layout,{indexToPlay:L,layoutId:A.layout.layoutId});break a}A.xu=L;L=YF(A);if(A.xu>0){var B=A.j$.get();B.W=!1;var f={};B.N&&B.videoId&&(f.cttAuthInfo={token:B.N,videoId:B.videoId});C0("ad_to_ad",f)}B=g.y(L.dT().renderingContent,nU);if(B==null?0:B.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var K; B=!((K=A.MF.get().ZwL.get(B.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&K)}else B=!1;B?vi(A,A.xu+1):L.startRendering(L.dT())}}; EID=function(A){(A=YF(A))&&A.Sk()}; cGQ=function(A){return new MK(A.qNn,A.hF,A.sE,A.h$,A.Mp,A.MF,A.j$,A.OQ,A.slot,A.layout,A.MU,A.Xy,A.wf,A.FD)}; ee=function(A,L,B,f,K,V,J){g.Y.call(this);this.callback=A;this.h$=L;this.Mp=B;this.j$=f;this.MV=K;this.wf=V;this.FD=J;this.wh=!0;this.Rb=!1}; Mm0=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v){function U(){var B6=$f1(Object.assign({},o0,{callback:{lq:A.lq.bind(A),CD:A.CD.bind(A),o0:A.o0.bind(A)},slot:B,d1:f,Ny:function(){xF(J,f)}, Ig:0,pM:1,Dz:!0}));return B6?new ee(A,F,I,r,B6,K,C):B6} function a(){var B6,Ve=(B6=f.YC)!=null?B6:PF(f.clientMetadata,"metadata_type_sub_layouts");B6=cGQ({qNn:A,hF:D,sE:O,h$:F,Mp:I,MF:d,j$:r,OQ:L,slot:B,layout:f,MU:V,Xy:J,wf:K,FD:C});for(var DS=[],fw={ZQ:0};fw.ZQK&&J.i4(F,K-f);return F}; PVD=function(A,L,B){var f=PF(L.clientMetadata,"metadata_type_sodar_extension_data");if(f)try{qlk(B,f)}catch(K){Dh("Unexpected error when loading Sodar",A,L,{error:K})}}; xfv=function(A,L,B,f,K,V,J){Lp(A,L,new g.dk(B,new g.Gu),f,K,J,!1,V)}; Lp=function(A,L,B,f,K,V,J,R){J=J===void 0?!0:J;aE(B)&&AT(K,0,null)&&(!j9(A,"impression")&&R&&R(),A.eI("impression"));j9(A,"impression")&&(g.wk(B,4)&&!g.wk(B,2)&&A.QF("pause"),IA(B,4)<0&&!(IA(B,2)<0)&&A.QF("resume"),g.wk(B,16)&&K>=.5&&A.QF("seek"),J&&g.wk(B,2)&&o2(A,B.state,L,f,K,V))}; o2=function(A,L,B,f,K,V,J,R,Z){j9(A,"impression")&&(V?(V=K-f,V=V>=-1&&V<=2):V=Math.abs(f-K)<=1,BW(A,L,V?f:K,B,f,J,R&&V),V&&!Z&&A.eI("complete"))}; BW=function(A,L,B,f,K,V,J){yc(A,B*1E3,J);K<=0||B<=0||(L==null?0:g.x(L,16))||(L==null?0:g.x(L,32))||(AT(B,K*.25,f)&&(V&&!j9(A,"first_quartile")&&V("first"),A.eI("first_quartile")),AT(B,K*.5,f)&&(V&&!j9(A,"midpoint")&&V("second"),A.eI("midpoint")),AT(B,K*.75,f)&&(V&&!j9(A,"third_quartile")&&V("third"),A.eI("third_quartile")))}; eiw=function(A,L){j9(A,"impression")&&A.QF(L?"fullscreen":"end_fullscreen")}; nIE=function(A){j9(A,"impression")&&A.QF("clickthrough")}; zi0=function(A){A.QF("active_view_measurable")}; uo6=function(A){j9(A,"impression")&&!j9(A,"seek")&&A.QF("active_view_fully_viewable_audible_half_duration")}; ah7=function(A){j9(A,"impression")&&!j9(A,"seek")&&A.QF("active_view_viewable")}; AV8=function(A){j9(A,"impression")&&!j9(A,"seek")&&A.QF("audio_audible")}; LFC=function(A){j9(A,"impression")&&!j9(A,"seek")&&A.QF("audio_measurable")}; oxk=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){this.callback=A;this.slot=L;this.layout=B;this.sE=f;this.vn=K;this.Mp=V;this.kH=J;this.Fr=R;this.Az=Z;this.FD=N;this.j4=F;this.hF=D;this.FA=I;this.UB=!0;this.XA=this.Wy=null;this.adCpn=void 0;this.N=!1}; BXw=function(A,L,B){var f;Ay(A.j4.get(),"ads_qua","cpn."+PF(A.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=BV(A.hF.get(),2))==null?void 0:f.clientPlaybackNonce)+";qt."+L+";clr."+B)}; f80=function(A,L){var B,f;Ay(A.j4.get(),"ads_imp","cpn."+PF(A.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((B=BV(A.hF.get(),2))==null?void 0:B.clientPlaybackNonce)+";clr."+L+";skp."+!!g.y((f=PF(A.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:f.skipOrPreviewRenderer,fp))}; Kp=function(A){return{enterMs:PF(A.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:PF(A.clientMetadata,"metadata_type_layout_exit_ms")}}; Vg=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){nW.call(this,A,L,B,f,K,J,R,Z,N,D);this.kH=V;this.Az=F;this.Fr=I;this.FD=d;this.XA=this.Wy=null}; KFy=function(A,L){var B;Ay(A.j4.get(),"ads_imp","acpn."+((B=BV(A.hF.get(),2))==null?void 0:B.clientPlaybackNonce)+";clr."+L)}; VGk=function(A,L,B){var f;Ay(A.j4.get(),"ads_qua","cpn."+PF(A.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=BV(A.hF.get(),2))==null?void 0:f.clientPlaybackNonce)+";qt."+L+";clr."+B)}; Jy=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O){this.wf=A;this.MU=L;this.Xy=B;this.hF=f;this.sE=K;this.Mp=V;this.MF=J;this.j4=R;this.kH=Z;this.hf=N;this.Fr=F;this.Az=D;this.h$=I;this.FA=d;this.j$=w;this.QK=r;this.gi=h;this.E6=Q;this.FD=l;this.N=C;this.context=O}; S$=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q){this.wf=A;this.MU=L;this.Xy=B;this.j4=f;this.Fr=K;this.Az=V;this.h$=J;this.hF=R;this.Mp=Z;this.MF=N;this.FA=F;this.j$=D;this.QK=I;this.gi=d;this.E6=w;this.FD=r;this.sE=h;this.context=Q}; JVD=function(A,L,B,f){Jr.call(this,"survey-interstitial",A,L,B,f)}; R2=function(A,L,B,f,K){KU.call(this,B,A,L,f);this.j4=K;A=PF(L.clientMetadata,"metadata_type_ad_placement_config");this.vn=new DT(L.Vf,K,A,L.layoutId)}; ZN=function(A){return Math.round(A.width)+"x"+Math.round(A.height)}; Fp=function(A,L,B){B=B===void 0?Nr:B;B.widthA.width*A.height*.2)return{Av:3,zm:501,errorMessage:"ad("+ZN(B)+") to container("+ZN(A)+") ratio exceeds limit."};if(B.height>A.height/3-L)return{Av:3,zm:501,errorMessage:"ad("+ZN(B)+") covers container("+ZN(A)+") center."}}; SCE=function(A,L){var B=PF(A.clientMetadata,"metadata_type_ad_placement_config");return new DT(A.Vf,L,B,A.layoutId)}; DN=function(A){return PF(A.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; df=function(A,L,B,f){Jr.call(this,"invideo-overlay",A,L,B,f);this.interactionLoggingClientData=f}; I2=function(A,L,B,f,K,V,J,R,Z,N,F,D){KU.call(this,V,A,L,K);this.j4=B;this.U=J;this.Mp=R;this.gi=Z;this.FD=N;this.T=F;this.D=D;this.vn=SCE(L,B)}; Rav=function(){var A=["metadata_type_invideo_overlay_ad_renderer"];dj().forEach(function(L){A.push(L)}); return{qQ:A,o8:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; wf=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){KU.call(this,V,A,L,K);this.j4=B;this.U=J;this.G=R;this.Mp=Z;this.gi=N;this.FD=F;this.T=D;this.D=I;this.vn=SCE(L,B)}; Z0D=function(){for(var A=["metadata_type_invideo_overlay_ad_renderer"],L=g.m(dj()),B=L.next();!B.done;B=L.next())A.push(B.value);return{qQ:A,o8:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; pp=function(A){this.Mp=A;this.N=!1}; NXk=function(A,L,B){Jr.call(this,"survey",A,{},L,B)}; yg=function(A,L,B,f,K,V,J){KU.call(this,B,A,L,f);this.U=K;this.Mp=V;this.FD=J}; FFC=function(A,L,B,f,K,V,J,R,Z,N){this.IA=A;this.Mp=L;this.j4=B;this.U=f;this.Fr=K;this.W=V;this.V=J;this.gi=R;this.FD=Z;this.N=N}; DD6=function(A,L,B,f,K,V,J,R,Z,N){this.IA=A;this.Mp=L;this.j4=B;this.U=f;this.Fr=K;this.W=V;this.V=J;this.gi=R;this.FD=Z;this.N=N}; j$=function(A,L,B,f,K,V,J,R,Z,N){W$.call(this,A,L,B,f,K,V,J,Z);this.AA=R;this.hF=N}; dD8=function(){var A=ekw();A.qQ.push("metadata_type_ad_info_ad_metadata");return A}; I8e=function(A,L,B,f,K,V,J){this.IA=A;this.Mp=L;this.j4=B;this.W=f;this.AA=K;this.N=V;this.hF=J}; w80=function(A,L,B,f,K,V,J,R){this.IA=A;this.Mp=L;this.j4=B;this.W=f;this.AA=K;this.N=V;this.FD=J;this.hF=R}; gf=function(A,L){this.adPodIndex=A;this.N=L.length;this.adBreakLengthSeconds=L.reduce(function(f,K){return f+K},0); var B=0;for(A+=1;A0}; By=function(A){return!!(A.srs&&A.slot&&A.layout)}; fJ=function(A){var L,B=(L=A.config)==null?void 0:L.adPlacementConfig;A=A.renderer;return!(!B||B.kind==null||!A)}; mDk=function(A){if(!np(A.adLayoutMetadata))return!1;A=A.renderingContent;return g.y(A,nU)||g.y(A,zY)||g.y(A,l8w)||g.y(A,xm)||g.y(A,e9)?!0:!1}; KJ=function(A){return A.playerVars!==void 0&&A.pings!==void 0&&A.externalVideoId!==void 0}; FE=function(A){if(!np(A.adLayoutMetadata))return!1;A=A.renderingContent;var L=g.y(A,VQ);return L?Je(L):(L=g.y(A,SL))?KJ(L):(L=g.y(A,RG))?L.playerVars!==void 0:(L=g.y(A,nU))?L.durationMilliseconds!==void 0:g.y(A,ZJ)||g.y(A,N0)?!0:!1}; Je=function(A){A=(A.sequentialLayouts||[]).map(function(L){return g.y(L,DJ)}); return A.length>0&&A.every(FE)}; IG=function(A){return np(A.adLayoutMetadata)?(A=g.y(A.renderingContent,d9))&&A.pings?!0:!1:!1}; X87=function(A){if(!np(A.adLayoutMetadata))return!1;if(g.y(A.renderingContent,Qv1)||g.y(A.renderingContent,w9))return!0;var L=g.y(A.renderingContent,pJ);return g.y(A.renderingContent,yQ)||g.y(L==null?void 0:L.sidePanel,CJ1)||g.y(L==null?void 0:L.sidePanel,i08)||g.y(L==null?void 0:L.sidePanel,$DS)?!0:!1}; UD7=function(A){var L;(L=!A)||(L=A.adSlotMetadata,L=!((L==null?void 0:L.slotId)!==void 0&&(L==null?void 0:L.slotType)!==void 0));if(L||!(O01(A)||A.slotEntryTrigger&&A.slotFulfillmentTriggers&&A.slotExpirationTriggers))return!1;var B;A=(B=A.fulfillmentContent)==null?void 0:B.fulfilledLayout;return(B=g.y(A,DJ))?FE(B):(B=g.y(A,jL))?X87(B):(B=g.y(A,Ex1))?mDk(B):(B=g.y(A,cVy))?kJC(B):(B=g.y(A,MGv))?np(B.adLayoutMetadata)?g.y(B.renderingContent,zA)?!0:!1:!1:(B=g.y(A,g9))?IG(B):(A=g.y(A,YCD))?np(A.adLayoutMetadata)? g.y(A.renderingContent,w9)?!0:!1:!1:!1}; O01=function(A){var L;A=g.y((L=A.fulfillmentContent)==null?void 0:L.fulfilledLayout,jL);var B;return A&&((B=A.adLayoutMetadata)==null?void 0:B.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&A.layoutExitNormalTriggers===void 0}; WFv=function(A){var L;return(A==null?void 0:(L=A.adSlotMetadata)==null?void 0:L.slotType)==="SLOT_TYPE_IN_PLAYER"}; vxL=function(A){A=g.m(A||[]);for(var L=A.next();!L.done;L=A.next()){var B=g.y(L.value,Gl);if(B===void 0||!UD7(B))break;L=void 0;B=(L=B.fulfillmentContent)==null?void 0:L.fulfilledLayout;if((L=g.y(B,g9))&&IG(L))return!0}return!1}; PJQ=function(A,L){var B;if((B=A.questions)==null||!B.length||!A.playbackCommands||(L===void 0||!L)&&A.questions.length!==1)return!1;A=g.m(A.questions);for(L=A.next();!L.done;L=A.next()){L=L.value;var f=B=void 0,K=((B=g.y(L,r9))==null?void 0:B.surveyAdQuestionCommon)||((f=g.y(L,s4))==null?void 0:f.surveyAdQuestionCommon);if(!qCy(K))return!1}return!0}; xD6=function(A){A=((A==null?void 0:A.playerOverlay)||{}).instreamSurveyAdRenderer;var L;if(A)if(A.playbackCommands&&A.questions&&A.questions.length===1){var B,f=((L=g.y(A.questions[0],r9))==null?void 0:L.surveyAdQuestionCommon)||((B=g.y(A.questions[0],s4))==null?void 0:B.surveyAdQuestionCommon);L=qCy(f)}else L=!1;else L=!1;return L}; qCy=function(A){if(!A)return!1;A=g.y(A.instreamAdPlayerOverlay,Hy);var L=g.y(A==null?void 0:A.skipOrPreviewRenderer,fp),B=g.y(A==null?void 0:A.adInfoRenderer,he);return(g.y(A==null?void 0:A.skipOrPreviewRenderer,bM)||L)&&B?!0:!1}; eaE=function(A){return A.linearAds!=null&&np(A.adLayoutMetadata)}; nxC=function(A){return A.linearAd!=null&&A.adVideoStart!=null}; za1=function(A){if(isNaN(Number(A.timeoutSeconds))||!A.text||!A.ctaButton||!g.y(A.ctaButton,g.te)||!A.brandImage)return!1;var L;return A.backgroundImage&&g.y(A.backgroundImage,kY)&&((L=g.y(A.backgroundImage,kY))==null?0:L.landscape)?!0:!1}; Tl=function(A,L,B,f,K,V,J,R){g.Y.call(this);this.FD=A;this.N=L;this.W=f;this.hF=K;this.U=V;this.V=J;this.h$=R}; Ahe=function(A,L,B){var f,K=((f=B.adSlots)!=null?f:[]).map(function(R){return g.y(R,Gl)}); if(B.xW)if(PF(L.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))LU(A.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},L.slotId); else{if(A.FD.get().S.K().J("h5_check_forecasting_renderer_for_throttled_midroll")){var V=B.To.filter(function(R){var Z;return((Z=R.renderer)==null?void 0:Z.clientForecastingAdRenderer)!=null}); V.length!==0?uRy(A.V,V,K,L.slotId,B.ssdaiAdsConfig):LU(A.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},L.slotId)}else LU(A.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},L.slotId); a87(A.U,L)}else{var J;f={f3:Math.round(((V=PF(L.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:V.f3)||0),hU:(J=PF(L.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:J.hU};V=PF(L.clientMetadata,"metadata_type_cue_point");uRy(A.V,B.To,K,L.slotId,B.ssdaiAdsConfig,f,V)}}; BZk=function(A,L,B,f,K,V,J,R){var Z=BV(A.hF.get(),1);if(LEy(A.FD.get())){var N=lM(A.W.get(),B,f,K,Z.clientPlaybackNonce,Z.XL,Z.daiEnabled,Z,V,J);ovw(A,N);LU(A.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return N},L)}else LU(A.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return lM(A.W.get(),B,f,K,Z.clientPlaybackNonce,Z.XL,Z.daiEnabled,Z,V,J,R)},L)}; ovw=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){var f=B.value;if(f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.fulfilledLayout)if(B=void 0,f.fulfilledLayout.renderingContent)B=PF(f.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(f.fulfilledLayout.YC){f=g.m(f.fulfilledLayout.YC);for(var K=f.next();!K.done&&(K=K.value,!K.renderingContent||!(B=PF(K.clientMetadata,"metadata_type_player_vars")));K=f.next());}}else B=void 0;if(B){A.h$.get().S.preloadVideoByPlayerVars(B, 2,300);break}}}; KEk=function(A,L,B,f,K,V,J){L=fFC(L,V,Number(f.prefetchMilliseconds)||0,J);A=L instanceof n?L:m9(A,f,K,L,B);return A instanceof n?A:[A]}; VUv=function(A,L,B,f,K){var V=oE(A.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");f=[new hw({getAdBreakUrl:f.getAdBreakUrl,f3:0,hU:0}),new Eg(!0)];A=L.pauseDurationMs?L.lactThresholdMs?{slotId:V,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new vW(A.N,V),slotFulfillmentTriggers:[new yVw(A.N)],slotExpirationTriggers:[new O7(A.N,K),new Yd(A.N,V)],u1:"core",clientMetadata:new q1(f),adSlotLoggingData:B}:new n("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new n("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return A instanceof n?A:[A]}; Jhy=function(A){var L,B;return((L=A.renderer)==null?void 0:(B=L.adBreakServiceRenderer)==null?void 0:B.getAdBreakUrl)!==void 0}; QQ=function(A,L,B){if(A.beforeContentVideoIdStartedTrigger)A=A.beforeContentVideoIdStartedTrigger?new GA(WF,L,A.id):new n("Not able to create BeforeContentVideoIdStartedTrigger");else{if(A.layoutIdExitedTrigger){var f;L=(f=A.layoutIdExitedTrigger)!=null&&f.triggeringLayoutId?new ty(WF,A.layoutIdExitedTrigger.triggeringLayoutId,A.id):new n("Not able to create LayoutIdExitedTrigger")}else{if(A.layoutExitedForReasonTrigger){var K,V;((K=A.layoutExitedForReasonTrigger)==null?0:K.triggeringLayoutId)&&((V= A.layoutExitedForReasonTrigger)==null?0:V.layoutExitReason)?(L=jvQ(A.layoutExitedForReasonTrigger.layoutExitReason),A=L instanceof n?L:new bh(WF,A.layoutExitedForReasonTrigger.triggeringLayoutId,[L],A.id)):A=new n("Not able to create LayoutIdExitedForReasonTrigger")}else{if(A.onLayoutSelfExitRequestedTrigger){var J;L=(J=A.onLayoutSelfExitRequestedTrigger)!=null&&J.triggeringLayoutId?new Xp(WF,A.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,A.id):new n("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(A.onNewPlaybackAfterContentVideoIdTrigger)A= A.onNewPlaybackAfterContentVideoIdTrigger?new O7(WF,L,A.id):new n("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(A.skipRequestedTrigger){var R;L=(R=A.skipRequestedTrigger)!=null&&R.triggeringLayoutId?new cW(WF,A.skipRequestedTrigger.triggeringLayoutId,A.id):new n("Not able to create SkipRequestedTrigger")}else if(A.slotIdEnteredTrigger){var Z;L=(Z=A.slotIdEnteredTrigger)!=null&&Z.triggeringSlotId?new Mr(WF,A.slotIdEnteredTrigger.triggeringSlotId,A.id):new n("Not able to create SlotIdEnteredTrigger")}else if(A.slotIdExitedTrigger){var N; L=(N=A.slotIdExitedTrigger)!=null&&N.triggeringSlotId?new Yd(WF,A.slotIdExitedTrigger.triggeringSlotId,A.id):new n("Not able to create SkipRequestedTrigger")}else if(A.surveySubmittedTrigger){var F;L=(F=A.surveySubmittedTrigger)!=null&&F.triggeringLayoutId?new PW(WF,A.surveySubmittedTrigger.triggeringLayoutId,A.id):new n("Not able to create SurveySubmittedTrigger")}else{if(A.mediaResumedTrigger)A=A.mediaResumedTrigger&&A.id?new gxw(A.id):new n("Not able to create MediaResumedTrigger");else{if(A.closeRequestedTrigger){var D; L=(D=A.closeRequestedTrigger)!=null&&D.triggeringLayoutId?new rf(WF,A.closeRequestedTrigger.triggeringLayoutId,A.id):new n("Not able to create CloseRequestedTrigger")}else if(A.slotIdScheduledTrigger){var I;L=(I=A.slotIdScheduledTrigger)!=null&&I.triggeringSlotId?new vW(WF,A.slotIdScheduledTrigger.triggeringSlotId,A.id):new n("Not able to create SlotIdScheduledTrigger")}else{if(A.mediaTimeRangeTrigger){var d;f=Number((d=A.mediaTimeRangeTrigger)==null?void 0:d.offsetStartMilliseconds);var w;J=Number((w= A.mediaTimeRangeTrigger)==null?void 0:w.offsetEndMilliseconds);isFinite(f)&&isFinite(J)?(w=J,w===-1&&(w=B),B=f>w?new n("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:f,offsetEndMs:w},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",w===B&&f-500<=w):new bk(f,w),A=B instanceof n?B:new Qg(WF,L,B,!1,A.id)):A=new n("Not able to create MediaTimeRangeTrigger")}else if(A.contentVideoIdEndedTrigger)A=A.contentVideoIdEndedTrigger?new s7(WF,L,!1,A.id):new n("Not able to create ContentVideoIdEndedTrigger"); else{if(A.layoutIdEnteredTrigger){var r;L=(r=A.layoutIdEnteredTrigger)!=null&&r.triggeringLayoutId?new hy(WF,A.layoutIdEnteredTrigger.triggeringLayoutId,A.id):new n("Not able to create LayoutIdEnteredTrigger")}else if(A.timeRelativeToLayoutEnterTrigger){var h;L=(h=A.timeRelativeToLayoutEnterTrigger)!=null&&h.triggeringLayoutId?new xd(WF,Number(A.timeRelativeToLayoutEnterTrigger.durationMs),A.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,A.id):new n("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(A.onDifferentLayoutIdEnteredTrigger){var Q; L=(Q=A.onDifferentLayoutIdEnteredTrigger)!=null&&Q.triggeringLayoutId&&A.onDifferentLayoutIdEnteredTrigger.slotType&&A.onDifferentLayoutIdEnteredTrigger.layoutType?new ih(WF,A.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,A.onDifferentLayoutIdEnteredTrigger.slotType,A.onDifferentLayoutIdEnteredTrigger.layoutType,A.id):new n("Not able to create CloseRequestedTrigger")}else{if(A.liveStreamBreakStartedTrigger)A=A.liveStreamBreakStartedTrigger&&A.id?new mU(WF,A.id):new n("Not able to create LiveStreamBreakStartedTrigger"); else if(A.liveStreamBreakEndedTrigger)A=A.liveStreamBreakEndedTrigger&&A.id?new kd(WF,A.id):new n("Not able to create LiveStreamBreakEndedTrigger");else{if(A.liveStreamBreakScheduledDurationMatchedTrigger){var l;L=(l=A.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&l.breakDurationMs?new TA(Number(A.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,A.id):new n("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(A.liveStreamBreakScheduledDurationNotMatchedTrigger){var C; L=(C=A.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&C.breakDurationMs?new lh(Number(A.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,A.id):new n("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(A.newSlotScheduledWithBreakDurationTrigger){var O;L=(O=A.newSlotScheduledWithBreakDurationTrigger)!=null&&O.breakDurationMs?new Cp(Number(A.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,A.id):new n("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else L= A.prefetchCacheExpiredTrigger?new E7(WF,A.id):new n("Not able to convert an AdsControlflowTrigger.");A=L}L=A}A=L}L=A}A=L}L=A}A=L}L=A}A=L}L=A}A=L}return A}; CJ=function(A,L){L.N>=2&&(A.slot_pos=L.adPodIndex);A.autoplay="1"}; R5e=function(A,L,B,f,K,V,J,R){return L===null?new n("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:L,ActionCompanionAdRenderer:f}):[SXD(A,L,J,V,function(Z){var N=Z.slotId;Z=R(Z);var F=f.adLayoutLoggingData,D=new q1([new HT(f),new Xf(K)]);N=OZ(B.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N);var I={layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",u1:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Vf:new Map, layoutExitNormalTriggers:[new O7(B.N,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:D,Aw:Z(I),adLayoutLoggingData:F}})]}; ZzC=function(A,L,B,f,K,V,J,R){return L===null?new n("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:L,TopBannerImageTextIconButtonedLayoutViewModel:f}):[SXD(A,L,J,V,function(Z){var N=Z.slotId;Z=R(Z);var F=f.adLayoutLoggingData,D=new q1([new hQ(f),new Xf(K)]);N=OZ(B.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N);var I={layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",u1:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Vf:new Map,layoutExitNormalTriggers:[new O7(B.N,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:D,Aw:Z(I),adLayoutLoggingData:F}})]}; dAk=function(A,L,B,f,K,V){if(!V)for(L=g.m(L),V=L.next();!V.done;V=L.next())V=V.value,iM(A,V.renderer,V.config.adPlacementConfig.kind);A=Array.from(A.values()).filter(function(F){return NZ1(F)}); L=[];V=g.m(A);for(var J=V.next(),R={};!J.done;R={x3:void 0},J=V.next()){R.x3=J.value;J=g.m(R.x3.CI);for(var Z=J.next(),N={};!Z.done;N={hA:void 0},Z=J.next())N.hA=Z.value,Z=function(F,D){return function(I){return F.hA.hx(I,D.x3.instreamVideoAdRenderer.elementId,F.hA.fI)}}(N,R),N.hA.isContentVideoCompanion?L.push(FE6(B,f,K,R.x3.instreamVideoAdRenderer.elementId,N.hA.associatedCompositePlayerBytesLayoutId,N.hA.adSlotLoggingData,Z)):A.length>1?L.push(DAS(B,f,K,R.x3.instreamVideoAdRenderer.elementId,N.hA.adSlotLoggingData, function(F,D){return function(I){return F.hA.hx(I,D.x3.instreamVideoAdRenderer.elementId,F.hA.fI,F.hA.associatedCompositePlayerBytesLayoutId)}}(N,R))):L.push(DAS(B,f,K,R.x3.instreamVideoAdRenderer.elementId,N.hA.adSlotLoggingData,Z))}return L}; iM=function(A,L,B){if(L=IFD(L)){L=g.m(L);for(var f=L.next();!f.done;f=L.next())if((f=f.value)&&f.externalVideoId){var K=$Y(A,f.externalVideoId);K.instreamVideoAdRenderer||(K.instreamVideoAdRenderer=f,K.fd=B)}else Dh("InstreamVideoAdRenderer without externalVideoId")}}; IFD=function(A){var L=[],B=A.sandwichedLinearAdRenderer&&A.sandwichedLinearAdRenderer.linearAd&&g.y(A.sandwichedLinearAdRenderer.linearAd,SL);if(B)return L.push(B),L;if(A.instreamVideoAdRenderer)return L.push(A.instreamVideoAdRenderer),L;if(A.linearAdSequenceRenderer&&A.linearAdSequenceRenderer.linearAds){A=g.m(A.linearAdSequenceRenderer.linearAds);for(B=A.next();!B.done;B=A.next())B=B.value,g.y(B,SL)&&L.push(g.y(B,SL));return L}return null}; NZ1=function(A){if(A.instreamVideoAdRenderer===void 0)return Dh("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var L=g.m(A.CI),B=L.next();!B.done;B=L.next()){B=B.value;if(B.hx===void 0)return!1;if(B.fI===void 0)return Dh("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(A.fd===void 0||B.Qd===void 0||A.fd!==B.Qd&&B.Qd!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(A.instreamVideoAdRenderer.elementId===void 0)return Dh("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:A.fd,"matching APSR kind":B.Qd}),!1}return!0}; $Y=function(A,L){A.has(L)||A.set(L,{instreamVideoAdRenderer:void 0,fd:void 0,adVideoId:L,CI:[]});return A.get(L)}; XE=function(A,L,B,f,K,V,J,R,Z){K?$Y(A,K).CI.push({i3n:L,Qd:B,isContentVideoCompanion:f,fI:J,associatedCompositePlayerBytesLayoutId:V,adSlotLoggingData:R,hx:Z}):Dh("Companion AdPlacementSupportedRenderer without adVideoId")}; O4=function(A){var L=0;A=g.m(A.questions);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B=g.y(B,r9)||g.y(B,s4)){var f=void 0;L+=((f=B.surveyAdQuestionCommon)==null?void 0:f.durationMilliseconds)||0}return L}; E4=function(A){var L,B,f,K,V=((B=g.y((L=A.questions)==null?void 0:L[0],r9))==null?void 0:B.surveyAdQuestionCommon)||((K=g.y((f=A.questions)==null?void 0:f[0],s4))==null?void 0:K.surveyAdQuestionCommon),J;L=[].concat(g.x7(((J=A.playbackCommands)==null?void 0:J.instreamAdCompleteCommands)||[]),g.x7((V==null?void 0:V.timeoutCommands)||[]));var R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v,U,a,o0,B6,Ve;return{impressionCommands:(R=A.playbackCommands)==null?void 0:R.impressionCommands,errorCommands:(Z=A.playbackCommands)== null?void 0:Z.errorCommands,muteCommands:(N=A.playbackCommands)==null?void 0:N.muteCommands,unmuteCommands:(F=A.playbackCommands)==null?void 0:F.unmuteCommands,pauseCommands:(D=A.playbackCommands)==null?void 0:D.pauseCommands,rewindCommands:(I=A.playbackCommands)==null?void 0:I.rewindCommands,resumeCommands:(d=A.playbackCommands)==null?void 0:d.resumeCommands,skipCommands:(w=A.playbackCommands)==null?void 0:w.skipCommands,progressCommands:(r=A.playbackCommands)==null?void 0:r.progressCommands,uts:(h= A.playbackCommands)==null?void 0:h.clickthroughCommands,fullscreenCommands:(Q=A.playbackCommands)==null?void 0:Q.fullscreenCommands,activeViewViewableCommands:(l=A.playbackCommands)==null?void 0:l.activeViewViewableCommands,activeViewMeasurableCommands:(C=A.playbackCommands)==null?void 0:C.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(O=A.playbackCommands)==null?void 0:O.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(v=A.playbackCommands)== null?void 0:(U=v.activeViewTracking)==null?void 0:U.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(a=A.playbackCommands)==null?void 0:(o0=a.activeViewTracking)==null?void 0:o0.activeViewAudioMeasurableCommands,endFullscreenCommands:(B6=A.playbackCommands)==null?void 0:B6.endFullscreenCommands,abandonCommands:(Ve=A.playbackCommands)==null?void 0:Ve.abandonCommands,completeCommands:L}}; pvC=function(A,L,B,f,K,V,J){return function(R,Z){return wvk(A,Z.slotId,R,V,function(N,F){var D=Z.layoutId;N=J(N);return cy(L,D,F,K,N,"LAYOUT_TYPE_SURVEY",[new ad(B),f],B.adLayoutLoggingData)})}}; gvD=function(A,L,B,f,K,V,J){if(!yh1(A))return new n("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:A});var R=A.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[jLe(V,L,B,f,function(Z){var N=Z.slotId;Z=J(Z);N=OZ(K.W.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",N);var F={layoutId:N,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",u1:"core"},D=new ty(K.N,f);return{layoutId:N,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Vf:new Map,layoutExitNormalTriggers:[D], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new Aw(R)]),Aw:Z(F)}})]}; yh1=function(A){A=g.y(A==null?void 0:A.additionalPlayerOverlay,G30);if(!A)return!1;var L=A.slidingMessages;return A.title&&L&&L.length!==0?!0:!1}; sL8=function(A,L,B,f,K){var V;if((V=A.playerOverlay)==null||!V.instreamSurveyAdRenderer)return function(){return[]}; if(!xD6(A))return function(){return new n("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:A})}; var J=A.playerOverlay.instreamSurveyAdRenderer,R=O4(J);return R<=0?function(){return new n("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:J})}:function(Z,N){var F=rhQ(Z,B,f,function(D){var I=D.slotId; D=N(D);var d=E4(J);I=OZ(K.W.get(),"LAYOUT_TYPE_SURVEY",I);var w={layoutId:I,layoutType:"LAYOUT_TYPE_SURVEY",u1:"core"},r=new ty(K.N,f),h=new cW(K.N,I),Q=new PW(K.N,I),l=new H01(K.N);return{layoutId:I,layoutType:"LAYOUT_TYPE_SURVEY",Vf:new Map,layoutExitNormalTriggers:[r,l],layoutExitSkipTriggers:[h],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[Q],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new u5(J),new Xf(L),new kX(R/1E3),new Qt(d)]),Aw:D(w),adLayoutLoggingData:J.adLayoutLoggingData}}); Z=gvD(A,B,F.slotId,f,K,Z,N);return Z instanceof n?Z:[F].concat(g.x7(Z))}}; lFe=function(A,L,B,f,K,V,J,R){J=J===void 0?!1:J;var Z=[];try{var N=[];if(B.renderer.linearAdSequenceRenderer)var F=function(h){h=Hz1(h.slotId,B,L,K(h),f,V,J);N=h.c1r;return h.Ws}; else if(B.renderer.instreamVideoAdRenderer)F=function(h){var Q=h.slotId;h=K(h);var l=J,C=B.config.adPlacementConfig,O=h5e(C),v=O.Yo,U=O.zi;O=B.renderer.instreamVideoAdRenderer;var a;if(O==null?0:(a=O.playerOverlay)==null?0:a.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var o0=M0(O,l);a=Math.min(v+o0.videoLengthSeconds*1E3,U);l=new gf(0,[o0.videoLengthSeconds]);U=o0.videoLengthSeconds;var B6=o0.playerVars,Ve=o0.instreamAdPlayerOverlayRenderer,DS= o0.playerOverlayLayoutRenderer,fw=o0.adVideoId,ry=bzw(B),uL=o0.Vf;o0=o0.nt;var Jf=O==null?void 0:O.adLayoutLoggingData;O=O==null?void 0:O.sodarExtensionData;Q=OZ(L.W.get(),"LAYOUT_TYPE_MEDIA",Q);var MC={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",u1:"core"};return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA",Vf:uL,layoutExitNormalTriggers:[new kd(L.N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new Uj(f), new Fv(U),new Do(B6),new wU(v),new pk(a),Ve&&new WT(Ve),DS&&new vT(DS),new Xf(C),new YD(fw),new Oj(l),new sg(ry),O&&new IJ(O),new Jw({current:null}),new gU({}),new $X(o0)].filter(tUk)),Aw:h(MC),adLayoutLoggingData:Jf}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var D=k3y(A,f,B.adSlotLoggingData,F,R);Z.push(D);for(var I=g.m(N),d=I.next();!d.done;d=I.next()){var w=d.value,r=w(A,K);if(r instanceof n)return r;Z.push.apply(Z,g.x7(r))}}catch(h){return new n(h,{errorMessage:h.message,AdPlacementRenderer:B,numberOfSurveyRenderers:TZe(B)})}return Z}; TZe=function(A){A=(A.renderer.linearAdSequenceRenderer||{}).linearAds;return A!=null&&A.length?A.filter(function(L){var B,f;return((B=g.y(L,SL))==null?void 0:(f=B.playerOverlay)==null?void 0:f.instreamSurveyAdRenderer)!=null}).length:0}; Hz1=function(A,L,B,f,K,V,J){var R=L.config.adPlacementConfig,Z=h5e(R),N=Z.Yo,F=Z.zi;Z=(L.renderer.linearAdSequenceRenderer||{}).linearAds;if(Z==null||!Z.length)throw new TypeError("Expected linear ads");var D=[],I={Fg:N,Ig:0,GHr:D};Z=Z.map(function(w){return mAv(A,w,I,B,f,R,K,F,J)}).map(function(w,r){r=new gf(r,D); return w(r)}); var d=Z.map(function(w){return w.Hs}); return{Ws:QL1(B,A,N,d,R,bzw(L),f,F,V),c1r:Z.map(function(w){return w.OhT})}}; mAv=function(A,L,B,f,K,V,J,R,Z){var N=M0(g.y(L,SL),Z),F=B.Fg,D=B.Ig,I=Math.min(F+N.videoLengthSeconds*1E3,R);B.Fg=I;B.Ig++;B.GHr.push(N.videoLengthSeconds);var d,w,r=(d=g.y(L,SL))==null?void 0:(w=d.playerOverlay)==null?void 0:w.instreamSurveyAdRenderer;if(N.adVideoId==="nPpU29QrbiU"&&r==null)throw new TypeError("Survey slate media has no survey overlay");return function(h){CJ(N.playerVars,h);var Q,l,C=N.videoLengthSeconds,O=N.playerVars,v=N.Vf,U=N.nt,a=N.instreamAdPlayerOverlayRenderer,o0=N.playerOverlayLayoutRenderer, B6=N.adVideoId,Ve=(Q=g.y(L,SL))==null?void 0:Q.adLayoutLoggingData;Q=(l=g.y(L,SL))==null?void 0:l.sodarExtensionData;l=OZ(f.W.get(),"LAYOUT_TYPE_MEDIA",A);var DS={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",u1:"adapter"};h={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",Vf:v,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"adapter",clientMetadata:new q1([new Uj(J),new Fv(C),new Do(O),new wU(F),new pk(I), new j6(D),new Jw({current:null}),a&&new WT(a),o0&&new vT(o0),new Xf(V),new YD(B6),new Oj(h),Q&&new IJ(Q),r&&new iT(r),new gU({}),new $X(U)].filter(tUk)),Aw:K(DS),adLayoutLoggingData:Ve};C=sL8(g.y(L,SL),V,J,h.layoutId,f);return{Hs:h,OhT:C}}}; var o7k=function(A){return Kw[S[2]](this,16,A)}; var M0=function(A,L){if(!A)throw new TypeError("Expected instream video ad renderer");if(!A.playerVars)throw new TypeError("Expected player vars in url encoded string");var B=I0(A.playerVars),f=Number(B.length_seconds);if(isNaN(f))throw new TypeError("Expected valid length seconds in player vars");var K=Number(A.trimmedMaxNonSkippableAdDurationMs);f=isNaN(K)?f:Math.min(f,K/1E3);K=A.playerOverlay||{};K=K.instreamAdPlayerOverlayRenderer===void 0?null:K.instreamAdPlayerOverlayRenderer;var V=A.playerOverlay|| {};V=V.playerOverlayLayoutRenderer===void 0?null:V.playerOverlayLayoutRenderer;var J=B.video_id;J||(J=(J=A.externalVideoId)?J:void 0);if(!J)throw new TypeError("Expected valid video id in IVAR");if(L&&f===0){var R;L=(R=CDy[J])!=null?R:f}else L=f;return{playerVars:B,videoLengthSeconds:L,instreamAdPlayerOverlayRenderer:K,playerOverlayLayoutRenderer:V,adVideoId:J,Vf:A.pings?Fw(A.pings):new Map,nt:NS(A.pings)}},bzw=function(A){A=Number(A.driftRecoveryMs); return isNaN(A)||A<=0?null:A},h5e=function(A){var L=A.adTimeOffset||{}; A=L.offsetEndMilliseconds;L=Number(L.offsetStartMilliseconds);if(isNaN(L))throw new TypeError("Expected valid start offset");A=Number(A);if(isNaN(A))throw new TypeError("Expected valid end offset");return{Yo:L,zi:A}},izv=function(A){var L,B=(L=PF(A.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:L.current; if(!B)return null;L=PF(A.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var f=A.layoutId,K=PF(A.clientMetadata,"metadata_type_content_cpn"),V=PF(A.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J=PF(A.clientMetadata,"metadata_type_player_underlay_renderer"),R=PF(A.clientMetadata,"metadata_type_ad_placement_config"),Z=PF(A.clientMetadata,"metadata_type_video_length_seconds");var N=YX(A.clientMetadata,"metadata_type_layout_enter_ms")&&YX(A.clientMetadata,"metadata_type_layout_exit_ms")? (PF(A.clientMetadata,"metadata_type_layout_exit_ms")-PF(A.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{mI:f,contentCpn:K,W3:B,uo:L,instreamAdPlayerOverlayRenderer:V,instreamAdPlayerUnderlayRenderer:J,adPlacementConfig:R,videoLengthSeconds:Z,Cm:N,inPlayerLayoutId:PF(A.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:PF(A.clientMetadata,"metadata_type_linked_in_player_slot_id")}},Oz1=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w){f=oE(f,"SLOT_TYPE_PLAYER_BYTES"); A=$Aw(K,A,J,B,f,Z,N);if(A instanceof n)return A;var r;N=(r=PF(A.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:r.layoutId;if(!N)return new n("Invalid adNotify layout");L=XvQ(N,K,V,B,R,L,Z,F,D,I,d,w,J);return L instanceof n?L:[A].concat(g.x7(L))},XvQ=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){B=Ev0(L,B,f,V,J,R,Z,N,F,D,I); if(B instanceof n)return B;A=ch1(L,A,J,K,B);return A instanceof n?A:[].concat(g.x7(A.jE),[A.Se])},YXQ=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){L=Ev0(A,L,B,K,V,R,Z,N,F,D,I,d); if(L instanceof n)return L;A=MUC(A,B,V,J,f,R.iC,L);return A instanceof n?A:A.jE.concat(A.Se)},Ev0=function(A,L,B,f,K,V,J,R,Z,N,F,D){var I=YY(f); return I instanceof vF?new n(I):N.S.K().experiments.GL("html5_refactor_in_player_slot_generation")?function(d){var w=new gf(0,[I.o7]);d=UAk(L,I.layoutId,I.Ca,B,U4(I.playerVars,I.Wd,V,Z,w),I.o7,K,w,J(d),R.get(I.Ca.externalVideoId),D);w=[];if(I.Ca.playerOverlay.instreamAdPlayerOverlayRenderer){var r=izv(d);if(!r)return Dh("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,d),{layout:d,jE:[]};w=[WEC(A,r.contentCpn,r.mI,function(Q){return Wy(L,Q.slotId, "core",r,aJ(F,Q))},r.inPlayerSlotId)].concat(g.x7(w)); if(r.instreamAdPlayerUnderlayRenderer&&vy(N)){var h=r.instreamAdPlayerUnderlayRenderer;w=[vv1(A,r.contentCpn,r.mI,function(Q){return qXv(L,Q.slotId,h,r.adPlacementConfig,r.mI,aJ(F,Q))})].concat(g.x7(w))}}return{layout:d, jE:w}}:function(d){var w=new gf(0,[I.o7]); return{layout:UAk(L,I.layoutId,I.Ca,B,U4(I.playerVars,I.Wd,V,Z,w),I.o7,K,w,J(d),R.get(I.Ca.externalVideoId),D),jE:[]}}},YY=function(A){if(!A.playerVars)return new vF("No playerVars available in InstreamVideoAdRenderer."); var L,B;if(A.elementId==null||A.playerVars==null||A.playerOverlay==null||((L=A.playerOverlay)==null?void 0:L.instreamAdPlayerOverlayRenderer)==null&&((B=A.playerOverlay)==null?void 0:B.playerOverlayLayoutRenderer)==null||A.pings==null||A.externalVideoId==null)return new vF("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:A});L=I0(A.playerVars);B=Number(L.length_seconds);isNaN(B)&&(B=0,Dh("Expected valid length seconds in player vars but got NaN"));return{layoutId:A.elementId, Ca:A,playerVars:L,Wd:A.playerVars,o7:B}},U4=function(A,L,B,f,K){A.iv_load_policy=f; L=I0(L);if(L.cta_conversion_urls)try{A.cta_conversion_urls=JSON.parse(L.cta_conversion_urls)}catch(V){Dh(V)}B.bY&&(A.ctrl=B.bY);B.CQ&&(A.ytr=B.CQ);B.Zi&&(A.ytrcc=B.Zi);B.isMdxPlayback&&(A.mdx="1");A.vvt&&(A.vss_credentials_token=A.vvt,B.Zl&&(A.vss_credentials_token_type=B.Zl),B.mdxEnvironment&&(A.mdx_environment=B.mdxEnvironment));CJ(A,K);return A},PDC=function(A){var L=new Map; A=g.m(A);for(var B=A.next();!B.done;B=A.next())(B=B.value.renderer.remoteSlotsRenderer)&&B.hostElementId&&L.set(B.hostElementId,B);return L},q0=function(A){return A.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"},xA1=function(A){return A!=null},oD8=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w){for(var r=[],h=g.m(A),Q=h.next();!Q.done;Q=h.next())if(Q=Q.value,!O01(Q)&&!WFv(Q)){var l=e50(Q,f,B.XL); if(l instanceof n)return l;var C=void 0,O={slotId:Q.adSlotMetadata.slotId,slotType:Q.adSlotMetadata.slotType,slotPhysicalPosition:(C=Q.adSlotMetadata.slotPhysicalPosition)!=null?C:1,u1:"core",slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:l.slotExpirationTriggers},v=g.y(Q.fulfillmentContent.fulfilledLayout,DJ);if(v){if(!FE(v))return new n("Invalid PlayerBytesAdLayoutRenderer");C=D&&!(q0(Q)&&Q.slotEntryTrigger.beforeContentVideoIdStartedTrigger); l=l.slotFulfillmentTriggers.some(function(U){return U instanceof TA}); l=C?nv7(O,Q.adSlotMetadata.triggerEvent,v,B,f,V,A,I,l,d):z57(O,Q.adSlotMetadata.triggerEvent,v,L,B,f,K,V,J,R,Z,N,A,F,Q.adSlotMetadata.triggeringSourceLayoutId);if(l instanceof n)return l;v=[];w?v.push(new N1({current:w})):v.push(new N1({current:null}));q0(Q)&&v.push(new cF({z$:q0(Q)&&!!Q.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));C&&v.push(new gU({}));B.iC&&v.push(new Ck({}));Q=Object.assign({},O,{clientMetadata:new q1(v),fulfilledLayout:l.layout,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData}); r.push.apply(r,g.x7(l.jE));r.push(Q)}else if(C=g.y(Q.fulfillmentContent.fulfilledLayout,jL)){if(!X87(C))return new n("Invalid PlayerUnderlayAdLayoutRenderer");C=uK1(C,f,B.XL,V,O,Q.adSlotMetadata.triggerEvent,Q.adSlotMetadata.triggeringSourceLayoutId);if(C instanceof n)return C;Q=Object.assign({},O,{clientMetadata:new q1([]),fulfilledLayout:C,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});r.push(Q)}else if(C=g.y(Q.fulfillmentContent.fulfilledLayout,YCD)){if(!np(C.adLayoutMetadata)||!g.y(C.renderingContent, w9))return new n("Invalid InPlayerOrganicOverlayAdLayoutRenderer");C=C.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?aF8(C,f,B.XL,V,O):new n("LayoutType ["+C.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(C instanceof n)return C;Q=Object.assign({},O,{clientMetadata:new q1([]),fulfilledLayout:C,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});r.push(Q)}else if(C=g.y(Q.fulfillmentContent.fulfilledLayout,cVy)){if(!kJC(C))return new n("Invalid AboveFeedAdLayoutRenderer"); C=AQ1(C,f,B.XL,V,O,Q.adSlotMetadata.triggerEvent,Q.adSlotMetadata.triggeringSourceLayoutId);if(C instanceof n)return C;Q=Object.assign({},O,{clientMetadata:new q1([]),fulfilledLayout:C,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});r.push(Q)}else if(C=g.y(Q.fulfillmentContent.fulfilledLayout,MGv)){if(!np(C.adLayoutMetadata)||!g.y(C.renderingContent,zA))return new n("Invalid BelowPlayerAdLayoutRenderer");C=AQ1(C,f,B.XL,V,O,Q.adSlotMetadata.triggerEvent,Q.adSlotMetadata.triggeringSourceLayoutId); if(C instanceof n)return C;Q=Object.assign({},O,{clientMetadata:new q1([]),fulfilledLayout:C,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});r.push(Q)}else if(C=g.y(Q.fulfillmentContent.fulfilledLayout,g9)){if(!IG(C))return new n("Invalid PlayerBytesSequenceItemAdLayoutRenderer");C=L_C(C,f,B.XL,V,O,Q.adSlotMetadata.triggerEvent);if(C instanceof n)return C;Q=Object.assign({},O,{clientMetadata:new q1([]),fulfilledLayout:C,adSlotLoggingData:Q.adSlotMetadata.adSlotLoggingData});r.push(Q)}else return new n("Unable to retrieve a client slot ["+ O.slotType+"] from a given AdSlotRenderer")}return r},L_C=function(A,L,B,f,K,V){var J={layoutId:A.adLayoutMetadata.layoutId, layoutType:A.adLayoutMetadata.layoutType,u1:"core"};L=Py(A,L,B);return L instanceof n?L:(B=g.y(A.renderingContent,d9))&&B.pings?Object.assign({},J,{renderingContent:A.renderingContent,Vf:Fw(B.pings)},L,{Aw:aJ(f,K)(J),clientMetadata:new q1([new Xf(xY(V)),new Qt({progressCommands:B.progressCommands})]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData}):new n("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")},AQ1=function(A,L,B,f,K,V,J){var R={layoutId:A.adLayoutMetadata.layoutId, layoutType:A.adLayoutMetadata.layoutType,u1:"core"};L=Py(A,L,B);if(L instanceof n)return L;B=[];B.push(new Xf(xY(V)));V==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&J!==void 0&&B.push(new Lk(J));return Object.assign({},R,{renderingContent:A.renderingContent,Vf:new Map([["impression",B5v(A)]])},L,{Aw:aJ(f,K)(R),clientMetadata:new q1(B),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})},uK1=function(A,L,B,f,K,V,J){if(A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var R= g.y(A.renderingContent,pJ),Z=g.y(A.renderingContent,w9); J=new Map;if(R){J=g.y(R.sidePanel,i08);if(!J){A=new n("DismissablePanelTextPortraitImageRenderer is missing");break a}J=new Map([["impression",J.impressionPings||[]],["resume",J.resumePings||[]]])}else if(!Z){A=new n("AdsEngagementPanelSectionListViewModel is missing");break a}R={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,u1:"core"};L=Py(A,L,B);A=L instanceof n?L:Object.assign({},R,{renderingContent:A.renderingContent,Vf:J},L,{Aw:aJ(f,K)(R),clientMetadata:new q1([new Xf(xY(V))]), adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})}else A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.y(A.renderingContent,Qv1)?(J={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,u1:"core"},L=Py(A,L,B),A=L instanceof n?L:Object.assign({},J,{renderingContent:A.renderingContent,Vf:new Map},L,{Aw:aJ(f,K)(J),clientMetadata:new q1([new Xf(xY(V))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})):A=new n("CounterfactualRenderer is missing"): A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?A=new n("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?A=new n("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.y(A.renderingContent,yQ)?(V={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,u1:"core"},L=Py(A, L,B),A=L instanceof n?L:J?Object.assign({},V,{renderingContent:A.renderingContent,Vf:new Map},L,{Aw:aJ(f,K)(V),clientMetadata:new q1([new Lk(J)]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData}):new n("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):A=new n("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.y(A.renderingContent,w9)?(V={layoutId:A.adLayoutMetadata.layoutId, layoutType:A.adLayoutMetadata.layoutType,u1:"core"},L=Py(A,L,B),A=L instanceof n?L:Object.assign({},V,{renderingContent:A.renderingContent,Vf:new Map([])},L,{Aw:aJ(f,K)(V),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new q1([])})):A=new n("AdsEngagementPanelSectionListViewModel is missing"):A=new n("LayoutType ["+A.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return A},aF8=function(A,L,B,f,K){if(!g.y(A.renderingContent,w9))return new n("AdsEngagementPanelSectionListViewModel is missing"); var V={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,u1:"core"};L=Py(A,L,B);return L instanceof n?L:Object.assign({},V,{renderingContent:A.renderingContent,Vf:new Map([])},L,{Aw:aJ(f,K)(V),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new q1([])})},nv7=function(A,L,B,f,K,V,J,R,Z,N){if((N==null?void 0:N.f3)===void 0||(N==null?void 0:N.hU)===void 0)return new n("Cached ad break range from cue point is missing"); var F=Py(B,K,f.XL);if(F instanceof n)return F;F={layoutExitMuteTriggers:[],layoutExitNormalTriggers:F.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.y(B.renderingContent,SL))return A=fsD(A,L,B,F,K,V,J,f.XL,N.f3,N.hU),A instanceof n?A:A.zq===void 0?new n("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:A.layout,jE:[A.zq]};var D=g.y(B.renderingContent,VQ);if(D){if(!np(B.adLayoutMetadata))return new n("Invalid ad layout metadata"); if(!Je(D))return new n("Invalid sequential layout");D=D.sequentialLayouts.map(function(I){return I.playerBytesAdLayoutRenderer}); A=K_7(A,L,B,F,D,K,f,V,J,R,N.f3,N.hU,Z);return A instanceof n?A:{layout:A.TC,jE:A.jE}}return new n("Not able to convert a sequential layout")},K_7=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){var d=V8v(K,F,D); if(d instanceof n)return d;var w=[],r=[];d=g.m(d);for(var h=d.next();!h.done;h=d.next()){var Q=h.value;h=A;var l=K[Q.Ig],C=Q,O=L;Q=V;var v=J,U=R,a=Z,o0=eL(l);if(o0 instanceof n)h=o0;else{var B6={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,u1:"adapter"};C=JQS(O,l,C,Q);C instanceof n?h=C:(h=Object.assign({},B6,nJ,{Vf:o0,renderingContent:l.renderingContent,clientMetadata:new q1(C),Aw:aJ(U,h)(B6),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData}),h=(l=zl(a, h,Q,v.XL,U,void 0,!0))?l instanceof n?l:{layout:h,zq:l}:new n("Expecting associatedInPlayerSlot"))}if(h instanceof n)return h;w.push(h.layout);r.push(h.zq)}K={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,u1:"core"};L=[new sg(Number(B.driftRecoveryMs)),new wU(F),new pk(D),new Xf(xY(L)),new Og(N),new gU({})];I&&L.push(new M1({}));return{TC:Object.assign({},K,f,{YC:w,Vf:new Map,clientMetadata:new q1(L),Aw:aJ(R,A)(K)}),jE:r}},fsD=function(A,L,B,f,K,V,J,R,Z,N){if(!FE(B))return new n("Invalid PlayerBytesAdLayoutRenderer"); var F=eL(B);if(F instanceof n)return F;var D={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,u1:"core"},I=g.y(B.renderingContent,SL);if(!I)return new n("Invalid rendering content for DAI media layout");I=M0(I,!1);Z={eP:I,Ig:0,Fg:Z,WO:Math.min(Z+I.videoLengthSeconds*1E3,N),G1:new gf(0,[I.videoLengthSeconds])};var d;N=(d=Number(B.driftRecoveryMs))!=null?d:void 0;L=JQS(L,B,Z,K,N);if(L instanceof n)return L;A=Object.assign({},D,f,{Vf:F,renderingContent:B.renderingContent, clientMetadata:new q1(L),Aw:aJ(V,A)(D),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData});return(K=zl(J,A,K,R,V,void 0,!0))?K instanceof n?K:{layout:A,zq:K}:new n("Expecting associatedInPlayerSlot")},z57=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w){var r=Py(B,V,K.XL); if(r instanceof n)return r;if(g.y(B.renderingContent,SL)){Z=SjE([B],K,Z);if(Z instanceof n)return Z;if(Z.length!==1)return new n("Only expected one media layout.");A=RYD(A,L,B,r,Z[0],void 0,"core",f,V,J,R,N,I,d,K.XL,void 0,w);return A instanceof n?A:{layout:A.layout,jE:A.zq?[A.zq]:[]}}var h=g.y(B.renderingContent,VQ);if(h){if(!np(B.adLayoutMetadata))return new n("Invalid ad layout metadata");if(!Je(h))return new n("Invalid sequential layout");h=h.sequentialLayouts.map(function(Q){return Q.playerBytesAdLayoutRenderer}); A=ZOS(A,L,B.adLayoutMetadata,r,h,f,V,K,Z,J,R,N,F,D,I,d,w);return A instanceof n?A:{layout:A.TC,jE:A.jE}}return new n("Not able to convert a sequential layout")},ZOS=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r,h){var Q=new MN({current:null}),l=SjE(K,R,Z); if(l instanceof n)return l;Z=[];for(var C=[],O=void 0,v=0;v0&&(O.push(r),O.push(new cT(C.adPodSkipTarget)));(V=N.get(C.externalVideoId))&&O.push(new tw(V));V=O}else V=new n("Invalid vod media renderer")}if(V instanceof n)return V;A=Object.assign({},J,f,{Vf:Q,renderingContent:B.renderingContent,clientMetadata:new q1(V),Aw:aJ(F, A)(J),adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData});B=g.y(B.renderingContent,SL);if(!B||!KJ(B))return new n("Invalid meida renderer");D=$Y(D,B.externalVideoId);D.instreamVideoAdRenderer=B;D.fd="AD_PLACEMENT_KIND_START";return d?(Z=zl(I,A,Z,w,F,r,!1),Z instanceof n?Z:DNS(A.layoutId,I)&&Z?{layout:Object.assign({},A,{clientMetadata:new q1(V.concat(new xD(Z)))})}:{layout:A,zq:Z}):{layout:A}},N50=function(A,L,B,f,K){if(!FE(L))return new n("Invalid PlayerBytesAdLayoutRenderer"); var V=g.y(L.renderingContent,nU);if(!V||V.durationMilliseconds===void 0)return new n("Invalid endcap renderer");var J={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,u1:"adapter"};f=[new Tb(V.durationMilliseconds),new Qt({impressionCommands:void 0,abandonCommands:V.abandonCommands?[{commandExecutorCommand:V.abandonCommands}]:void 0,completeCommands:V.completionCommands}),new Xf(f),new fk("LAYOUT_TYPE_ENDCAP")];if(K){f.push(new Ej(K.G1.adPodIndex-1));f.push(new j6(K.G1.adPodIndex)); var R;f.push(new cT((R=K.adPodSkipTarget)!=null?R:-1))}return Object.assign({},J,nJ,{renderingContent:L.renderingContent,clientMetadata:new q1(f),Vf:V.skipPings?new Map([["skip",V.skipPings]]):new Map,Aw:aJ(B,A)(J),adLayoutLoggingData:L.adLayoutMetadata.adLayoutLoggingData})},zl=function(A,L,B,f,K,V,J){A=A.filter(function(D){return D.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&D.adSlotMetadata.triggeringSourceLayoutId===L.layoutId}); if(A.length!==0){if(A.length!==1)return new n("Invalid InPlayer slot association for the given PlayerBytes layout");var R=A[0],Z=e50(R,B,f);if(Z instanceof n)return Z;var N;A={slotId:R.adSlotMetadata.slotId,slotType:R.adSlotMetadata.slotType,slotPhysicalPosition:(N=R.adSlotMetadata.slotPhysicalPosition)!=null?N:1,u1:"core",slotEntryTrigger:Z.slotEntryTrigger,slotFulfillmentTriggers:Z.slotFulfillmentTriggers,slotExpirationTriggers:Z.slotExpirationTriggers};N=g.y(R.fulfillmentContent.fulfilledLayout, Ex1);if(!N||!mDk(N))return new n("Invalid InPlayerAdLayoutRenderer");Z={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,u1:"core"};B=Py(N,B,f);if(B instanceof n)return B;f=[];var F=N.adLayoutMetadata.layoutType;J&&f.push(new gU({}));if(F==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")f.push.apply(f,g.x7(dNk(R.adSlotMetadata.triggerEvent,L))),(V=Isy(B,L.layoutId))&&f.push(new oJ(V));else if(F==="LAYOUT_TYPE_ENDCAP"||F==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){f.push(new Xf(xY(R.adSlotMetadata.triggerEvent))); if(F==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new n("Cannot parse endcap layout since AdUxReadyApi is not provided");V&&f.push(V)}else return new n("Not able to parse an SDF InPlayer layout");K=Object.assign({},Z,B,{renderingContent:N.renderingContent,Vf:new Map,Aw:aJ(K,A)(Z),clientMetadata:new q1(f),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},A,{fulfilledLayout:K,clientMetadata:new q1([])})}},dNk=function(A,L){var B=[]; B.push(new Xf(xY(A)));B.push(new Lk(L.layoutId));(A=PF(L.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&B.push(new Jw(A));(A=PF(L.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&B.push(new MN(A));(A=PF(L.clientMetadata,"metadata_type_remote_slots_data"))&&B.push(new tw(A));(A=PF(L.clientMetadata,"metadata_type_ad_next_params"))&&B.push(new kD(A));(A=PF(L.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&B.push(new TQ(A));(A=PF(L.clientMetadata,"metadata_type_ad_pod_info"))&& B.push(new Oj(A));(L=PF(L.clientMetadata,"metadata_type_ad_video_id"))&&B.push(new YD(L));return B},F_E=function(A,L,B,f,K,V){function J(N){return uM(L,N)} var R=f.WS.inPlayerSlotId,Z={layoutId:f.WS.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",u1:"core"};B={slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:new hy(J,A),slotFulfillmentTriggers:[new Mr(J,R)],slotExpirationTriggers:[new Yd(J,R),new O7(J,B)]};A=Object.assign({},Z,{layoutExitNormalTriggers:[new ty(J,A)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Vf:new Map,clientMetadata:new q1([new nO(f.WS), new Xf(f.adPlacementConfig),K]),Aw:aJ(V,B)(Z),adLayoutLoggingData:f.WS.adLayoutLoggingData});return Object.assign({},B,{clientMetadata:new q1([new HF(A)])})},DNS=function(A,L){L=g.m(L); for(var B=L.next();!B.done;B=L.next())if(B=B.value,B.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var f=g.y(B.fulfillmentContent.fulfilledLayout,jL);if(f&&(f=g.y(f.renderingContent,pJ))&&f.associatedPlayerBytesLayoutId===A)return B}},e50=function(A,L,B){var f=QQ(A.slotEntryTrigger,L,B); if(f instanceof n)return f;for(var K=[],V=g.m(A.slotFulfillmentTriggers),J=V.next();!J.done;J=V.next()){J=QQ(J.value,L,B);if(J instanceof n)return J;K.push(J)}V=[];A=g.m(A.slotExpirationTriggers);for(J=A.next();!J.done;J=A.next()){J=QQ(J.value,L,B);if(J instanceof n)return J;V.push(J)}return{slotEntryTrigger:f,slotFulfillmentTriggers:K,slotExpirationTriggers:V}},Py=function(A,L,B){for(var f=[],K=g.m(A.layoutExitNormalTriggers||[]),V=K.next();!V.done;V=K.next()){V=QQ(V.value,L,B); if(V instanceof n)return V;f.push(V)}K=[];V=g.m(A.layoutExitSkipTriggers||[]);for(var J=V.next();!J.done;J=V.next()){J=QQ(J.value,L,B);if(J instanceof n)return J;K.push(J)}V=[];J=g.m(A.layoutExitMuteTriggers||[]);for(var R=J.next();!R.done;R=J.next()){R=QQ(R.value,L,B);if(R instanceof n)return R;V.push(R)}J=[];A=g.m(A.layoutExitUserInputSubmittedTriggers||[]);for(R=A.next();!R.done;R=A.next()){R=QQ(R.value,L,B);if(R instanceof n)return R;J.push(R)}return{layoutExitNormalTriggers:f,layoutExitSkipTriggers:K, layoutExitMuteTriggers:V,layoutExitUserInputSubmittedTriggers:J,layoutExitUserCancelledTriggers:[]}},eL=function(A){var L=g.y(A.renderingContent,SL); if(L==null?0:L.pings)return Fw(L.pings);A=g.y(A.renderingContent,nU);return(A==null?0:A.skipPings)?new Map([["skip",A.skipPings]]):new Map},JQS=function(A,L,B,f,K){L=g.y(L.renderingContent,SL); if(!L)return new n("Invalid rendering content for DAI media layout");A=[new Uj(f),new Fv(B.eP.videoLengthSeconds),new Do(B.eP.playerVars),new wU(B.Fg),new pk(B.WO),new j6(B.Ig),new Xf(xY(A)),new YD(B.eP.adVideoId),new Oj(B.G1),L.sodarExtensionData&&new IJ(L.sodarExtensionData),new Jw({current:null}),new gU({}),new $X(NS(L.pings))].filter(xA1);K!==void 0&&A.push(new sg(K));return A},V8v=function(A,L,B){A=A.map(function(Z){return M0(g.y(Z.renderingContent,SL),!1)}); var f=A.map(function(Z){return Z.videoLengthSeconds}),K=f.map(function(Z,N){return new gf(N,f)}),V=L,J=B,R=[]; A.forEach(function(Z,N){J=Math.min(V+Z.videoLengthSeconds*1E3,B);CJ(Z.playerVars,K[N]);R.push({eP:Z,Fg:V,WO:J,Ig:N,G1:K[N]});V=J}); return R},SjE=function(A,L,B){for(var f=[],K=g.m(A),V=K.next();!V.done;V=K.next())if(V=g.y(V.value.renderingContent,SL)){if(!KJ(V))return new n("Invalid vod media renderer"); f.push(wTL(V))}K=f.map(function(D){return D.o7}); V=[];for(var J=0,R=0;R0?Ve:-1;else if(ry=g.y(fw,nU)){fw=t8k(A,L,B,ry,V,r,R,a,Ve);if(fw instanceof n){d=fw;break a}fw=fw(I);h.push(fw.d1); Q=[].concat(g.x7(fw.hO),g.x7(Q));l=[].concat(g.x7(fw.HF),g.x7(l));fw.zq&&(B6=[fw.zq].concat(g.x7(B6)))}else if(ry=g.y(fw,ZJ)){if(d===void 0){d=new n("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:ry});break a}fw=lsw(A,L,B,V,ry,U,R,d,r,XW(F,"supports_multi_step_on_desktop"));if(fw instanceof n){d=fw;break a}fw=fw(I);h.push(fw.d1);fw.zq&&B6.push(fw.zq);Q=[].concat(g.x7(fw.hO),g.x7(Q));l=[].concat(g.x7(fw.HF),g.x7(l));C=[].concat(g.x7(fw.cG),g.x7(C)); O=[].concat(g.x7(fw.O$),g.x7(O));v=[U].concat(g.x7(v))}else if(fw=g.y(fw,N0)){fw=mNy(A,L,B,V,fw,U,R,r);if(fw instanceof n){d=fw;break a}fw=fw(I);h.push(fw.d1);fw.zq&&B6.push(fw.zq);l=[].concat(g.x7(fw.HF),g.x7(l))}else{d=new n("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}d={YC:h,layoutExitSkipTriggers:Q,layoutExitUserInputSubmittedTriggers:C,layoutExitUserCancelledTriggers:O,layoutExitMuteTriggers:l,KJ:v,jE:B6}}}else a:if(r=cQk(f),r instanceof n)d=r;else{h=0;Q=[];l=[];C=[];O= [];v=[];U=[];a=new S6({current:null});o0=new MN({current:null});B6=!1;DS=[];Ve=-1;w=g.m(f);for(fw=w.next();!fw.done;fw=w.next())if(fw=fw.value,g.y(fw,RG)){fw=kQD(L,B,g.y(fw,RG),R);if(fw instanceof n){d=fw;break a}fw=fw(I);Q.push(fw.d1);l=[].concat(g.x7(fw.hO),g.x7(l));C=[].concat(g.x7(fw.HF),g.x7(C));fw.zq&&(DS=[fw.zq].concat(g.x7(DS)))}else if(g.y(fw,SL)){Ve=YY(g.y(fw,SL));if(Ve instanceof vF){d=new n(Ve);break a}fw=new gf(h,r);fw=M8D(L,Ve.layoutId,Ve.Ca,B,U4(Ve.playerVars,Ve.Wd,J,N,fw),Ve.o7,V, fw,R(I),o0,Z.get(Ve.Ca.externalVideoId),void 0,D);h++;Q.push(fw.d1);l=[].concat(g.x7(fw.hO),g.x7(l));C=[].concat(g.x7(fw.HF),g.x7(C));B6||(U.push(o0),B6=!0);Ve=(Ve=Ve.Ca.adPodSkipTarget)&&Ve>0?Ve:-1}else if(g.y(fw,nU)){fw=t8k(A,L,B,g.y(fw,nU),V,h,R,o0,Ve);if(fw instanceof n){d=fw;break a}fw=fw(I);Q.push(fw.d1);l=[].concat(g.x7(fw.hO),g.x7(l));C=[].concat(g.x7(fw.HF),g.x7(C));fw.zq&&(DS=[fw.zq].concat(g.x7(DS)))}else if(g.y(fw,ZJ)){if(d===void 0){d=new n("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.y(fw,ZJ)});break a}fw=lsw(A,L,B,V,g.y(fw,ZJ),a,R,d,h,XW(F,"supports_multi_step_on_desktop"));if(fw instanceof n){d=fw;break a}fw=fw(I);Q.push(fw.d1);fw.zq&&DS.push(fw.zq);l=[].concat(g.x7(fw.hO),g.x7(l));C=[].concat(g.x7(fw.HF),g.x7(C));O=[].concat(g.x7(fw.cG),g.x7(O));v=[].concat(g.x7(fw.O$),g.x7(v));U=[a].concat(g.x7(U))}else if(g.y(fw,N0)){fw=mNy(A,L,B,V,g.y(fw,N0),a,R,h);if(fw instanceof n){d=fw;break a}fw=fw(I);Q.push(fw.d1);fw.zq&&DS.push(fw.zq);C=[].concat(g.x7(fw.HF), g.x7(C))}else{d=new n("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}d={YC:Q,layoutExitSkipTriggers:l,layoutExitUserInputSubmittedTriggers:O,layoutExitUserCancelledTriggers:v,layoutExitMuteTriggers:C,KJ:U,jE:DS}}d instanceof n?I=d:(v=I.slotId,r=d.YC,h=d.layoutExitSkipTriggers,Q=d.layoutExitMuteTriggers,l=d.layoutExitUserInputSubmittedTriggers,C=d.KJ,I=R(I),O=K?K.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",v=K?K.layoutId:OZ(L.W.get(),O,v),U={layoutId:v,layoutType:O,u1:"core"}, I={layout:{layoutId:v,layoutType:O,Vf:new Map,layoutExitNormalTriggers:[new Xp(L.N,v)],layoutExitSkipTriggers:h,layoutExitMuteTriggers:Q,layoutExitUserInputSubmittedTriggers:l,layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new RJ(r)].concat(g.x7(C))),Aw:I(U)},jE:d.jE});return I}},cQk=function(A){var L=[]; A=g.m(A);for(var B=A.next();!B.done;B=A.next())if(B=B.value,g.y(B,SL)){B=YY(g.y(B,SL));if(B instanceof vF)return new n(B);L.push(B.o7)}return L},UNk=function(A,L,B,f,K,V,J,R){if(!PJQ(B,R===void 0?!1:R))return new n("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:B}); var Z=O4(B);if(Z<=0)return new n("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:B});var N=new S6({current:null}),F=pvC(A,L,B,N,f,V,J);return Yj6(A,f,V,Z,K,function(D,I){var d=D.slotId,w=E4(B);D=J(D);d=OZ(L.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",d);var r={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",u1:"core"},h=F(d,I),Q=PF(h.clientMetadata,"metadata_type_fulfilled_layout");Q||Dh("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen."); w=[new Xf(f),new Tb(Z),new Qt(w),N];Q&&w.push(new fk(Q.layoutType));return{XzD:{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Vf:new Map,layoutExitNormalTriggers:[new Xp(L.N,d)],layoutExitSkipTriggers:[new cW(L.N,I.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new PW(L.N,I.layoutId)],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1(w),Aw:D(r)},nsL:h}})},W_0=function(A){if(!nxC(A))return!1; var L=g.y(A.adVideoStart,B_);return L?g.y(A.linearAd,SL)&&By(L)?!0:(Dh("Invalid Sandwich with notify"),!1):!1},vDS=function(A){if(A.linearAds==null)return!1; A=g.y(A.adStart,B_);return A?By(A)?!0:(Dh("Invalid LASR with notify"),!1):!1},qjk=function(A){if(!eaE(A))return!1; A=g.y(A.adStart,B_);return A?By(A)?!0:(Dh("Invalid LASR with notify"),!1):!1},fS=function(A,L,B,f,K,V,J,R,Z,N){this.U=A; this.W=L;this.N=B;this.FD=f;this.Le=K;this.V=V;this.Mp=J;this.gh=R;this.zP=Z;this.loadPolicy=N===void 0?1:N},lM=function(A,L,B,f,K,V,J,R,Z,N,F){var D=[]; if(L.length===0&&f.length===0&&B.length===0)return D;L=L.filter(fJ);var I=B.filter(UD7),d=f.filter(fJ),w=new Map,r=PDC(L),h=B.some(function(MC){var nw;return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),Q=B.some(function(MC){var nw; return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),l=B.some(function(MC){var nw; return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_IN_PLAYER"}),C=B.some(function(MC){var nw,Xk; return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(MC==null?void 0:(Xk=MC.adSlotMetadata)==null?void 0:Xk.slotType)==="SLOT_TYPE_ABOVE_FEED"}),O=B.some(function(MC){var nw; return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); B=B.some(function(MC){var nw;return(MC==null?void 0:(nw=MC.adSlotMetadata)==null?void 0:nw.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(h||Q||l||C||O||B)N=oD8(I,L,R,K,r,A.Le.get(),A.loadPolicy,w,A.FD.get(),A.U.get(),l,J,Z,N,F),N instanceof n?Dh(N,void 0,void 0,{contentCpn:K}):D.push.apply(D,g.x7(N));N=g.m(L);for(B=N.next();!B.done;B=N.next())B=B.value,Q=P5L(A,w,B,K,V,J,h,R,r,Z,I,A.FD.get().S.K().experiments.GL("html5_enable_triggering_cuepoint_for_slot")?F:void 0),Q instanceof n?Dh(Q,void 0,void 0,{renderer:B.renderer,config:B.config.adPlacementConfig,kind:B.config.adPlacementConfig.kind,contentCpn:K,daiEnabled:J}):D.push.apply(D, g.x7(Q));xNw(A.FD.get())||(V=eYC(A,d,K,R,r,w),D.push.apply(D,g.x7(V)));if(A.V===null||J&&!R.Fh){var v,U,a;A=R.iC&&L.length===1&&((v=L[0].config)==null?void 0:(U=v.adPlacementConfig)==null?void 0:U.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((a=L[0].renderer)==null?void 0:a.adBreakServiceRenderer);if(!D.length&&!A){var o0,B6,Ve,DS;Dh("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":L.length,contentCpn:K,"first APR kind":(o0=L[0])==null?void 0: (B6=o0.config)==null?void 0:(Ve=B6.adPlacementConfig)==null?void 0:Ve.kind,renderer:(DS=L[0])==null?void 0:DS.renderer})}return D}v=f.filter(fJ);D.push.apply(D,g.x7(dAk(w,v,A.W.get(),A.V,K,h)));if(!D.length){var fw,ry,uL,Jf;Dh("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":L.length,contentCpn:K,daiEnabled:J.toString(),"first APR kind":(fw=L[0])==null?void 0:(ry=fw.config)==null?void 0:(uL=ry.adPlacementConfig)==null?void 0:uL.kind,renderer:(Jf=L[0])== null?void 0:Jf.renderer})}return D},eYC=function(A,L,B,f,K,V){function J(I){return aJ(A.Le.get(),I)} var R=[];L=g.m(L);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var N=Z.renderer,F=N.sandwichedLinearAdRenderer,D=N.linearAdSequenceRenderer;F&&W_0(F)?(Dh("Found AdNotify with SandwichedLinearAdRenderer"),D=g.y(F.adVideoStart,B_),F=g.y(F.linearAd,SL),iM(V,N,Z.config.adPlacementConfig.kind),N=void 0,D=XvQ((N=D)==null?void 0:N.layout.layoutId,A.W.get(),A.N.get(),Z.config.adPlacementConfig,Z.adSlotLoggingData,F,B,f,J,K,A.loadPolicy,A.FD.get(),A.Le.get()),D instanceof n?Dh(D):R.push.apply(R,g.x7(D))): D&&(!D.adLayoutMetadata&&vDS(D)||D.adLayoutMetadata&&qjk(D))&&(Dh("Found AdNotify with LinearAdSequenceRenderer"),iM(V,N,Z.config.adPlacementConfig.kind),N=void 0,F=Qdv((N=g.y(D.adStart,B_))==null?void 0:N.layout.layoutId,A.W.get(),A.N.get(),Z.config.adPlacementConfig,Z.adSlotLoggingData,D.linearAds,np(D.adLayoutMetadata)?D.adLayoutMetadata:void 0,B,f,J,K,A.loadPolicy,A.FD.get()),F instanceof n?Dh(F):R.push.apply(R,g.x7(F)))}return R},P5L=function(A,L,B,f,K,V,J,R,Z,N,F,D){function I(l){return aJ(A.Le.get(), l)} var d=B.renderer,w=B.config.adPlacementConfig,r=w.kind,h=B.adSlotLoggingData,Q=R.Fh&&r==="AD_PLACEMENT_KIND_START";Q=V&&!Q;if(d.adsEngagementPanelRenderer!=null)return XE(L,B.elementId,r,d.adsEngagementPanelRenderer.isContentVideoEngagementPanel,d.adsEngagementPanelRenderer.adVideoId,d.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.adsEngagementPanelRenderer;l=aJ(A.Le.get(),l);return KS(U,a,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new b5(o0),C,O,o0.impressionPings,l,d.adsEngagementPanelRenderer.adLayoutLoggingData,v)}),[]; if(d.adsEngagementPanelLayoutViewModel)return XE(L,B.elementId,r,d.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,d.adsEngagementPanelLayoutViewModel.adVideoId,d.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.adsEngagementPanelLayoutViewModel;l=aJ(A.Le.get(),l);return Vx(U,a,"LAYOUT_TYPE_PANEL",new tQ(o0),C,O,l,d.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,v)}),[]; if(d.actionCompanionAdRenderer!=null){if(d.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return R5e(A.W.get(),A.V,A.N.get(),d.actionCompanionAdRenderer,w,h,f,I);XE(L,B.elementId,r,d.actionCompanionAdRenderer.isContentVideoCompanion,d.actionCompanionAdRenderer.adVideoId,d.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.actionCompanionAdRenderer;l=aJ(A.Le.get(),l);return KS(U,a,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new HT(o0),C,O,o0.impressionPings,l,d.actionCompanionAdRenderer.adLayoutLoggingData,v)})}else if(d.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(d.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return ZzC(A.W.get(),A.V,A.N.get(),d.topBannerImageTextIconButtonedLayoutViewModel,w,h,f,I); XE(L,B.elementId,r,d.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,d.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,d.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.topBannerImageTextIconButtonedLayoutViewModel;l=aJ(A.Le.get(),l);return Vx(U,a,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new hQ(o0),C,O,l,d.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,v)})}else if(d.imageCompanionAdRenderer)XE(L, B.elementId,r,d.imageCompanionAdRenderer.isContentVideoCompanion,d.imageCompanionAdRenderer.adVideoId,d.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.imageCompanionAdRenderer; l=aJ(A.Le.get(),l);return KS(U,a,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new m_(o0),C,O,o0.impressionPings,l,d.imageCompanionAdRenderer.adLayoutLoggingData,v)}); else if(d.bannerImageLayoutViewModel)XE(L,B.elementId,r,d.bannerImageLayoutViewModel.isContentVideoCompanion,d.bannerImageLayoutViewModel.adVideoId,d.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.bannerImageLayoutViewModel;l=aJ(A.Le.get(),l);return Vx(U,a,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new QS(o0),C,O,l,d.bannerImageLayoutViewModel.adLayoutLoggingData,v)}); else if(d.shoppingCompanionCarouselRenderer)XE(L,B.elementId,r,d.shoppingCompanionCarouselRenderer.isContentVideoCompanion,d.shoppingCompanionCarouselRenderer.adVideoId,d.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(l,C,O,v){var U=A.N.get(),a=l.slotId,o0=d.shoppingCompanionCarouselRenderer;l=aJ(A.Le.get(),l);return KS(U,a,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new CO(o0),C,O,o0.impressionPings,l,d.shoppingCompanionCarouselRenderer.adLayoutLoggingData,v)}); else if(d.adBreakServiceRenderer){if(!Jhy(B))return[];if(r==="AD_PLACEMENT_KIND_PAUSE")return VUv(A.W.get(),w,h,B.renderer.adBreakServiceRenderer,f);if(r!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&r!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return KEk(A.W.get(),w,h,B.renderer.adBreakServiceRenderer,f,K,V);R.iC||Dh("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:r,adPlacementConfig:w,daiEnabledForContentVideo:String(V),isServedFromLiveInfra:String(R.iC),clientPlaybackNonce:R.clientPlaybackNonce}); if(r==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!A.Mp)return new n("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!A.zP)return new n("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");A.zP.IB({adPlacementRenderer:B,contentCpn:f,XL:K});K=A.Mp.get().getCurrentTimeSec(1,!1);return nDe(A.W.get(),B.renderer.adBreakServiceRenderer,w,K,f,h,V)}if(!A.gh)return new n("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); A.gh.IB({adPlacementRenderer:B,contentCpn:f,XL:K})}else{if(d.clientForecastingAdRenderer)return gDL(A.W.get(),A.N.get(),w,h,d.clientForecastingAdRenderer,f,K,I);if(d.invideoOverlayAdRenderer)return HOy(A.W.get(),A.N.get(),w,h,d.invideoOverlayAdRenderer,f,K,I);if(d.instreamAdPlayerOverlayRenderer)return rQE(A.W.get(),A.N.get(),w,h,d.instreamAdPlayerOverlayRenderer,f,I);if((d.linearAdSequenceRenderer||d.instreamVideoAdRenderer)&&Q)return lFe(A.W.get(),A.N.get(),B,f,I,N,!A.FD.get().S.K().J("html5_override_ad_video_length_killswitch"), D);if(d.linearAdSequenceRenderer&&!Q){if(J)return[];iM(L,d,r);if(d.linearAdSequenceRenderer.adLayoutMetadata){if(!eaE(d.linearAdSequenceRenderer))return new n("Received invalid LinearAdSequenceRenderer.")}else if(d.linearAdSequenceRenderer.linearAds==null)return new n("Received invalid LinearAdSequenceRenderer.");if(g.y(d.linearAdSequenceRenderer.adStart,B_)){Dh("Found AdNotify in LinearAdSequenceRenderer");B=g.y(d.linearAdSequenceRenderer.adStart,B_);if(!TXQ(B))return new n("Invalid AdMessageRenderer."); V=d.linearAdSequenceRenderer.linearAds;return C5y(A.U.get(),A.W.get(),A.N.get(),A.Le.get(),w,h,B,np(d.linearAdSequenceRenderer.adLayoutMetadata)?d.linearAdSequenceRenderer.adLayoutMetadata:void 0,V,f,K,R,I,Z,A.loadPolicy,A.FD.get())}return EDe(A.W.get(),A.N.get(),w,h,d.linearAdSequenceRenderer.linearAds,np(d.linearAdSequenceRenderer.adLayoutMetadata)?d.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,K,R,I,Z,A.loadPolicy,A.FD.get(),F)}if(!d.remoteSlotsRenderer||V){if(d.instreamVideoAdRenderer&& !Q){if(J)return[];iM(L,d,r);return YXQ(A.W.get(),A.N.get(),w,h,d.instreamVideoAdRenderer,f,K,R,I,Z,A.loadPolicy,A.FD.get(),A.Le.get(),F)}if(d.instreamSurveyAdRenderer)return UNk(A.W.get(),A.N.get(),d.instreamSurveyAdRenderer,w,h,f,I,XW(A.FD.get(),"supports_multi_step_on_desktop"));if(d.sandwichedLinearAdRenderer!=null)return nxC(d.sandwichedLinearAdRenderer)?g.y(d.sandwichedLinearAdRenderer.adVideoStart,B_)?(Dh("Found AdNotify in SandwichedLinearAdRenderer"),B=g.y(d.sandwichedLinearAdRenderer.adVideoStart, B_),TXQ(B)?(V=g.y(d.sandwichedLinearAdRenderer.linearAd,SL))?Oz1(B,V,w,A.U.get(),A.W.get(),A.N.get(),A.Le.get(),h,f,K,R,I,Z,A.loadPolicy,A.FD.get()):new n("Missing IVAR from Sandwich"):new n("Invalid AdMessageRenderer.")):EDe(A.W.get(),A.N.get(),w,h,[d.sandwichedLinearAdRenderer.adVideoStart,d.sandwichedLinearAdRenderer.linearAd],void 0,f,K,R,I,Z,A.loadPolicy,A.FD.get()):new n("Received invalid SandwichedLinearAdRenderer.");if(d.videoAdTrackingRenderer!=null)return yQS(A.W.get(),A.N.get(),d.videoAdTrackingRenderer, w,h,f,K,R.zt,I)}}return[]},Jn=function(A,L,B,f,K,V,J,R){g.Y.call(this); var Z=this;this.W=A;this.V=L;this.hf=f;this.Mp=K;this.FD=V;this.j4=J;this.sE=R;this.N=null;B.get().addListener(this);this.addOnDisposeCallback(function(){B.TL()||B.get().removeListener(Z)}); f.get().addListener(this);this.addOnDisposeCallback(function(){f.TL()||f.get().removeListener(Z)})},Zy=function(A,L,B){var f=A.Mp.get().getCurrentTimeSec(1,!1); A.FD.get().S.K().hw()&&Ay(A.j4.get(),"sdai","onopp.1;evt."+B.event+";start."+B.startSecs.toFixed(3)+";d."+B.Dj.toFixed(3));LU(A.W.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var K=A.V.get(),V=L.adPlacementRenderer.renderer.adBreakServiceRenderer,J=L.contentCpn,R=L.adPlacementRenderer.adSlotLoggingData;SM(A.FD.get());var Z=A.j4;var N=K.FD.get();N=g.Am(N.S.K().experiments,"max_prefetch_window_sec_for_livestream_optimization");var F=K.FD.get();var D=g.Am(F.S.K().experiments,"min_prefetch_offset_sec_for_livestream_optimization"); F=B.startSecs*1E3;F={R7:new bk(F,F+B.Dj*1E3),FS:!1,cueProcessedMs:f*1E3};var I=B.startSecs+B.Dj;if(f===0)F.Vz=new bk(0,I*1E3);else{D=B.startSecs-D;var d=D-f;F.Vz=d<=0?new bk(D*1E3,I*1E3):new bk(Math.floor(f+Math.random()*Math.min(d,N))*1E3,I*1E3)}V=m9(K,V,J,F,R,[new Zo(B)]);RU(K.FD.get())&&Ay(Z.get(),"abrsm","cpi."+B.identifier+";cps."+B.startSecs+";cpd."+B.Dj+";cts."+f+";rbf."+F.Vz.start);Z.get().S.TJ(B.startSecs-f,F.Vz.start/1E3-f);return[V]})},NF=function(A){var L,B=(L=PF(A.clientMetadata,"metadata_type_player_bytes_callback_ref"))== null?void 0:L.current; if(!B)return null;L=PF(A.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var f=A.layoutId,K=PF(A.clientMetadata,"metadata_type_content_cpn"),V=PF(A.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J=PF(A.clientMetadata,"metadata_type_player_overlay_layout_renderer"),R=PF(A.clientMetadata,"metadata_type_player_underlay_renderer"),Z=PF(A.clientMetadata,"metadata_type_ad_placement_config"),N=PF(A.clientMetadata,"metadata_type_video_length_seconds");var F=YX(A.clientMetadata, "METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?PF(A.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):YX(A.clientMetadata,"metadata_type_layout_enter_ms")&&YX(A.clientMetadata,"metadata_type_layout_exit_ms")?(PF(A.clientMetadata,"metadata_type_layout_exit_ms")-PF(A.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{mI:f,contentCpn:K,W3:B,uo:L,instreamAdPlayerOverlayRenderer:V,playerOverlayLayoutRenderer:J,instreamAdPlayerUnderlayRenderer:R,adPlacementConfig:Z,videoLengthSeconds:N, Cm:F,inPlayerLayoutId:PF(A.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:PF(A.clientMetadata,"metadata_type_linked_in_player_slot_id")}},ufQ=function(A,L){return zY1(A,L)},as6=function(A,L){L=zY1(A,L); if(!L)return null;var B;L.Cm=(B=PF(A.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:B.adBreakRemainingLengthSeconds;return L},zY1=function(A,L){var B,f=(B=PF(A.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:B.current; if(!f)return null;B=qFC(A,L);return{W7:vfw(A,L),adPlacementConfig:PF(A.clientMetadata,"metadata_type_ad_placement_config"),Io:B,contentCpn:PF(A.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:PF(A.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:PF(A.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:PF(A.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0, Cm:void 0,W3:f,mI:A.layoutId,videoLengthSeconds:PF(A.clientMetadata,"metadata_type_video_length_seconds")}},F8=function(A,L,B,f,K,V,J,R,Z){g.Y.call(this); this.U=A;this.T=L;this.D=B;this.V=f;this.N=K;this.W=V;this.Le=J;this.FD=R;this.hF=Z;this.wh=!0},AwE=function(A,L,B){return vv1(A.N.get(),L.contentCpn,L.mI,function(f){return qXv(A.W.get(),f.slotId,B,L.adPlacementConfig,L.mI,aJ(A.Le.get(),f))})},Dy=function(A,L,B,f,K,V,J){g.Y.call(this); this.W=A;this.N=L;this.V=B;this.U=f;this.hF=K;this.Mp=V;this.j$=J},d3=function(A){g.Y.call(this); this.N=A},LU=function(A,L,B,f){A.N().O6(L,f); B=B();A=A.N();A.fY.N("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",L,f,B);L=g.m(B);for(B=L.next();!B.done;B=L.next())a:{f=A;B=B.value;ji(f.fY,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",B);ji(f.fY,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",B);try{var K=f.N;if(g.us(B.slotId))throw new n("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(R6(K,B))throw new n("Duplicate registration for slot.",{slotId:B.slotId,slotEntryTriggerType:B.slotEntryTrigger.triggerType},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT"); if(!K.TH.N2.has(B.slotType))throw new n("No fulfillment adapter factory registered for slot of type: "+B.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!K.TH.xD.has(B.slotType))throw new n("No SlotAdapterFactory registered for slot of type: "+B.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");bY(K,"TRIGGER_CATEGORY_SLOT_ENTRY",B.slotEntryTrigger?[B.slotEntryTrigger]:[]);bY(K,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",B.slotFulfillmentTriggers);bY(K, "TRIGGER_CATEGORY_SLOT_EXPIRATION",B.slotExpirationTriggers);var V=f.N,J=B.slotType+"_"+B.slotPhysicalPosition,R=Gi(V,J);if(R6(V,B))throw new n("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");R.set(B.slotId,new c08(B));V.N.set(J,R)}catch(o0){o0 instanceof n&&o0.Qq?(Ky(f.fY,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",o0.Qq,B),Dh(o0,B,void 0,void 0,o0.jT)):(Ky(f.fY,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",B),Dh(o0,B)); break a}R6(f.N,B).T=!0;try{var Z=f.N,N=R6(Z,B),F=B.slotEntryTrigger,D=Z.TH.UI.get(F.triggerType);D&&(D.fQ("TRIGGER_CATEGORY_SLOT_ENTRY",F,B,null),N.Vj.set(F.triggerId,D));for(var I=g.m(B.slotFulfillmentTriggers),d=I.next();!d.done;d=I.next()){var w=d.value,r=Z.TH.UI.get(w.triggerType);r&&(r.fQ("TRIGGER_CATEGORY_SLOT_FULFILLMENT",w,B,null),N.Wn.set(w.triggerId,r))}for(var h=g.m(B.slotExpirationTriggers),Q=h.next();!Q.done;Q=h.next()){var l=Q.value,C=Z.TH.UI.get(l.triggerType);C&&(C.fQ("TRIGGER_CATEGORY_SLOT_EXPIRATION", l,B,null),N.yj.set(l.triggerId,C))}var O=Z.TH.N2.get(B.slotType).get().build(Z.V,B);N.X=O;var v=Z.TH.xD.get(B.slotType).get().build(Z.D,B);v.init();N.W=v}catch(o0){o0 instanceof n&&o0.Qq?(Ky(f.fY,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",o0.Qq,B),Dh(o0,B,void 0,void 0,o0.jT)):(Ky(f.fY,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",B),Dh(o0,B));VL(f,B,!0);break a}ji(f.fY,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",B);f.N.cV(B);for(var U=g.m(f.W),a=U.next();!a.done;a= U.next())a.value.cV(B);DB(f,B)}},IU=function(A,L,B,f,K){g.Y.call(this); var V=this;this.W=A;this.V=L;this.FA=B;this.context=K;this.N=new Map;f.get().addListener(this);this.addOnDisposeCallback(function(){f.TL()||f.get().removeListener(V)})},a87=function(A,L){var B=0x8000000000000,f=0,K=0x8000000000000; var V=g.m(L.slotFulfillmentTriggers);for(var J=V.next();!J.done;J=V.next())if(J=J.value,J instanceof Qg){var R=J.N.start;B=Math.min(B,R);f=Math.max(f,J.N.end);J.visible&&(K=Math.min(K,R))}else Dh("Found unexpected fulfillment trigger for throttled slot.",L,null,{fulfillmentTrigger:J});V=B;K=K<0x8000000000000&&B0&&py(A.T(),B)},CS=function(A,L,B,f,K){for(var V=[],J=g.m(A.nY.values()),R=J.next();!R.done;R=J.next()){var Z=R=R.value,N=Z.trigger; Z=Z.slot;if(N.triggerType===L){if(N instanceof TA||N instanceof lh||N instanceof Cp){if(K&&N.breakDurationMs!==B)continue;if(!K&&N.breakDurationMs===B)continue;if(f.has(Z.slotId))continue}V.push(R)}}V.length>0&&py(A.T(),V)},NUE=function(A,L){L=(L.Dj+1)*1E3; var B=void 0;A=g.m(A.nY.values());for(var f=A.next();!f.done;f=A.next()){var K=f.value;f=K.trigger;K=K.slot;f instanceof TA&&f.breakDurationMs<=L&&(!B||f.breakDurationMs>B.trigger.breakDurationMs)&&(B={slot:K,trigger:f})}return B},FwE=function(A){A=A.adPlacementRenderer.config.adPlacementConfig; if(!A.prefetchModeConfig||!A.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;A=Number(A.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(A)||A<=0?0:Math.floor(Math.random()*A)},D1w=function(A){A=A.adPlacementRenderer.config.adPlacementConfig; if(A.prefetchModeConfig&&A.prefetchModeConfig.cacheFetchRefreshDurationMs&&(A=Number(A.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(A)||A<=0)))return A},i4=function(A){A.N=null; A.nY.clear();A.W&&A.W.stop();A.D&&A.D.stop();var L;(L=A.V)==null||L.stop();delete A.V},Sg7=function(A){var L=[]; A=g.m(A.nY.values());for(var B=A.next();!B.done;B=A.next())B=B.value.trigger,B instanceof TA&&L.push(B.breakDurationMs);return L},$h=function(A){g.Y.call(this); this.V=A;this.wh=!0;this.nY=new Map;this.N=new Map;this.W=new Map},d17=function(A,L){var B=[]; if(L=A.N.get(L.layoutId)){L=g.m(L);for(var f=L.next();!f.done;f=L.next())(f=A.W.get(f.value.triggerId))&&B.push(f)}return B},X8=function(){g.Y.call(this); this.nY=new Map},QV=function(A){switch(A){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"}},Io8=function(A){switch(A){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd"; case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}},wF6=function(A,L){var B={slotId:oE(L,"SLOT_TYPE_IN_PLAYER"), slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],u1:"surface",clientMetadata:new q1([])},f=Object,K=f.assign;L=OZ(L,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",B.slotId);L={layoutId:L,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Vf:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"surface",clientMetadata:new q1([]), Aw:sW8(!1,B.slotId,B.slotType,B.slotPhysicalPosition,B.u1,B.slotEntryTrigger,B.slotFulfillmentTriggers,B.slotExpirationTriggers,L,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return K.call(f,{},A,{srs:!0,slot:B,layout:L})},fFC=function(A,L,B,f){var K=A.kind; f=f?!1:!A.hideCueRangeMarker;switch(K){case "AD_PLACEMENT_KIND_START":return f={R7:new bk(-0x8000000000000,-0x8000000000000),FS:f},B!=null&&(f.Vz=new bk(-0x8000000000000,-0x8000000000000)),f;case "AD_PLACEMENT_KIND_END":return f={R7:new bk(0x7ffffffffffff,0x8000000000000),FS:f},B!=null&&(f.Vz=new bk(Math.max(0,L-B),0x8000000000000)),f;case "AD_PLACEMENT_KIND_MILLISECONDS":K=A.adTimeOffset;K.offsetStartMilliseconds||Dh("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");K.offsetEndMilliseconds|| Dh("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");A=Number(K.offsetStartMilliseconds);K=Number(K.offsetEndMilliseconds);K===-1&&(K=L);if(Number.isNaN(A)||Number.isNaN(K)||A>K)return new n("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:A,offsetEndMs:K},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",K===L&&A-500<=K);f={R7:new bk(A,K),FS:f};if(B!=null){A=Math.max(0,A-B);if(A===K)return f;f.Vz=new bk(A,K)}return f;default:return new n("AdPlacementKind not supported in convertToRange.", {kind:K,adPlacementConfig:A})}},pF1=function(A){if(!A||!A.adPlacements&&!A.adSlots)return!1; for(var L=g.m(A.adPlacements||[]),B=L.next();!B.done;B=L.next())if(B=B.value)if(B=B.adPlacementRenderer,B!=null&&(B.config&&B.config.adPlacementConfig&&B.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;A=g.m(A.adSlots||[]);for(L=A.next();!L.done;L=A.next()){var f=B=void 0;if(((B=g.y(L.value,Gl))==null?void 0:(f=B.adSlotMetadata)==null?void 0:f.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1},OM=function(A){this.FD=A; this.W=new Map;this.N=new Map;this.V=new Map},oE=function(A,L){if(EM(A.FD.get())){var B=A.W.get(L)||0; B++;A.W.set(L,B);return L+"_"+B}return g.y0(16)},OZ=function(A,L,B){if(EM(A.FD.get())){var f=A.N.get(L)||0; f++;A.N.set(L,f);return B+"_"+L+"_"+f}return g.y0(16)},uM=function(A,L){if(EM(A.FD.get())){var B=A.V.get(L)||0; B++;A.V.set(L,B);return L+"_"+B}return g.y0(16)},ywv=function(A){var L=[new Lk(A.mI), new Vt(A.W3),new Xf(A.adPlacementConfig),new Fv(A.videoLengthSeconds),new kX(A.Cm)];A.instreamAdPlayerOverlayRenderer&&L.push(new WT(A.instreamAdPlayerOverlayRenderer));A.playerOverlayLayoutRenderer&&L.push(new vT(A.playerOverlayLayoutRenderer));A.uo&&L.push(new MN(A.uo));return L},jJ6=function(A,L,B,f,K,V){A=B.inPlayerLayoutId?B.inPlayerLayoutId:OZ(V,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",A); var J,R,Z=B.instreamAdPlayerOverlayRenderer?(J=B.instreamAdPlayerOverlayRenderer)==null?void 0:J.adLayoutLoggingData:(R=B.playerOverlayLayoutRenderer)==null?void 0:R.adLayoutLoggingData;J={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",u1:L};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Vf:new Map,layoutExitNormalTriggers:[new ty(function(N){return uM(V,N)},B.mI)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:L,clientMetadata:f,Aw:K(J),adLayoutLoggingData:Z}},c_=function(A){var L=this; this.W=A;this.N=function(B){return uM(L.W.get(),B)}},qXv=function(A,L,B,f,K,V){B=new q1([new qN(B), new Xf(f)]);L=OZ(A.W.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",L);f={layoutId:L,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",u1:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Vf:new Map,layoutExitNormalTriggers:[new ty(function(J){return uM(A.W.get(),J)},K)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:B,Aw:V(f),adLayoutLoggingData:void 0}},Wy=function(A,L,B,f,K){var V=ywv(f); return jJ6(L,B,f,new q1(V),K,A.W.get())},gXE=function(A,L,B,f,K){var V=ywv(f); V.push(new i5(f.W7));V.push(new $D(f.Io));return jJ6(L,B,f,new q1(V),K,A.W.get())},KS=function(A,L,B,f,K,V,J,R,Z,N){L=OZ(A.W.get(),B,L); var F={layoutId:L,layoutType:B,u1:"core"},D=new Map;J&&D.set("impression",J);J=[new ih(A.N,K,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];N&&J.push(new bh(A.N,N,["normal"]));return{layoutId:L,layoutType:B,Vf:D,layoutExitNormalTriggers:J,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([f,new Xf(V),new Lk(K)]),Aw:R(F),adLayoutLoggingData:Z}},Vx=function(A,L,B,f,K,V,J,R,Z){L=OZ(A.W.get(), B,L); var N={layoutId:L,layoutType:B,u1:"core"},F=[new ih(A.N,K,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Z&&F.push(new bh(A.N,Z,["normal"]));return{layoutId:L,layoutType:B,Vf:new Map,layoutExitNormalTriggers:F,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([f,new Xf(V),new Lk(K)]),Aw:J(N),adLayoutLoggingData:R}},An=function(A,L,B){var f=[]; f.push(new $d(A.N,B));L&&f.push(L);return f},aG=function(A,L,B,f,K,V,J){var R={layoutId:L, layoutType:B,u1:"core"};return{layoutId:L,layoutType:B,Vf:new Map,layoutExitNormalTriggers:J,layoutExitSkipTriggers:[new rf(A.N,L)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new l5(f),new Xf(K)]),Aw:V(R),adLayoutLoggingData:f.adLayoutLoggingData}},cy=function(A,L,B,f,K,V,J,R){var Z={layoutId:L, layoutType:V,u1:"core"};return{layoutId:L,layoutType:V,Vf:new Map,layoutExitNormalTriggers:[new ty(A.N,B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new Xf(f)].concat(g.x7(J))),Aw:K(Z),adLayoutLoggingData:R}},hY6=function(A,L,B,f,K,V,J,R,Z,N,F,D){A=LS(A,L,B,f,K,V,J,R,F,D); L=A.KJ;B=new BF(A.gw);f=A.layoutExitSkipTriggers;Z>0&&(L.push(B),L.push(new cT(Z)),f=[]);L.push(new Ej(N));return{d1:{layoutId:A.layoutId,layoutType:A.layoutType,Vf:A.Vf,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:A.u1,clientMetadata:new q1(L),Aw:A.Aw,adLayoutLoggingData:A.adLayoutLoggingData},hO:f,HF:A.layoutExitMuteTriggers,cG:A.layoutExitUserInputSubmittedTriggers,O$:A.layoutExitUserCancelledTriggers, zq:A.zq}},T5e=function(A,L,B,f,K,V,J,R,Z){L=LS(A,L,B,f,K,new Map,V,function(N){return J(N,R)}); A=new PW(A.N,L.gw);B=new BF(L.gw);Z=new Ej(Z);return{d1:{layoutId:L.layoutId,layoutType:L.layoutType,Vf:L.Vf,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:L.u1,clientMetadata:new q1([].concat(g.x7(L.KJ),[B,Z])),Aw:L.Aw,adLayoutLoggingData:L.adLayoutLoggingData},hO:L.layoutExitSkipTriggers,HF:L.layoutExitMuteTriggers,cG:[].concat(g.x7(L.layoutExitUserInputSubmittedTriggers),[A]),O$:L.layoutExitUserCancelledTriggers, zq:L.zq}},LS=function(A,L,B,f,K,V,J,R,Z,N){L=OZ(A.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",L); var F={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",u1:"adapter"};R=R(L);var D=PF(R.clientMetadata,"metadata_type_fulfilled_layout");D||Dh("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var I=D?D.layoutId:"";B=[new Xf(B),new Tb(f),new Qt(K)];D&&B.push(new fk(D.layoutType));N&&B.push(new j6(N));return{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Vf:V,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new cW(A.N,I)],layoutExitMuteTriggers:[], layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"adapter",KJ:B,Aw:J(F),adLayoutLoggingData:Z,zq:R,gw:I}},UAk=function(A,L,B,f,K,V,J,R,Z,N,F){A=Gb1(A,L,"core",B,f,K,V,J,R,Z,N,void 0,F); return{layoutId:A.layoutId,layoutType:A.layoutType,Vf:A.Vf,layoutExitNormalTriggers:A.layoutExitNormalTriggers,layoutExitSkipTriggers:A.layoutExitSkipTriggers,layoutExitMuteTriggers:A.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:A.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:A.layoutExitUserCancelledTriggers,u1:A.u1,clientMetadata:new q1(A.vD),Aw:A.Aw,adLayoutLoggingData:A.adLayoutLoggingData}}; var NyS=function(){return pw[S[2]](this,1)}; M8D=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){L=Gb1(A,L,"adapter",B,f,K,V,J,R,Z,F,D,I);f=L.layoutExitSkipTriggers;K=L.vD;B.adPodSkipTarget&&B.adPodSkipTarget>0&&(K.push(N),K.push(new cT(B.adPodSkipTarget)),f=[]);K.push(new Ej(R.adPodIndex));B.isCritical&&(f=[new bh(A.N,L.layoutId,["error"])].concat(g.x7(f)));return{d1:{layoutId:L.layoutId,layoutType:L.layoutType,Vf:L.Vf,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], u1:L.u1,clientMetadata:new q1(K),Aw:L.Aw,adLayoutLoggingData:L.adLayoutLoggingData},hO:f,HF:L.layoutExitMuteTriggers,cG:L.layoutExitUserInputSubmittedTriggers,O$:L.layoutExitUserCancelledTriggers}}; Gb1=function(A,L,B,f,K,V,J,R,Z,N,F,D,I){var d={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",u1:B};K=[new Xf(K),new Oj(Z),new YD(f.externalVideoId),new Uj(R),new Qt({impressionCommands:f.impressionCommands,abandonCommands:f.onAbandonCommands,completeCommands:f.completeCommands,progressCommands:f.adVideoProgressCommands}),new Do(V),new Jw({current:null}),new Fv(J)];(V=f.playerOverlay.instreamAdPlayerOverlayRenderer)&&K.push(new WT(V));(J=f.playerOverlay.playerOverlayLayoutRenderer)&&K.push(new vT(J)); D&&K.push(new dU(D));(D=f.playerUnderlay)&&K.push(new qN(D));R=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");D=(D=V?V.elementId:J==null?void 0:J.layoutId)?D:OZ(A.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",R);K.push(new BF(D));K.push(new Kk(R));K.push(new j6(Z.adPodIndex));f.adNextParams&&K.push(new kD(f.adNextParams));f.shrunkenPlayerBytesConfig&&K.push(new e8(f.shrunkenPlayerBytesConfig));f.clickthroughEndpoint&&K.push(new TQ(f.clickthroughEndpoint));f.legacyInfoCardVastExtension&&K.push(new lT(f.legacyInfoCardVastExtension)); f.sodarExtensionData&&K.push(new IJ(f.sodarExtensionData));F&&K.push(new tw(F));K.push(new $X(NS(f.pings)));Z=Fw(f.pings);if(I){a:{I=g.m(I);for(F=I.next();!F.done;F=I.next())if(F=F.value,F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(V=g.y(F.fulfillmentContent.fulfilledLayout,jL))&&(V=g.y(V.renderingContent,pJ))&&V.associatedPlayerBytesLayoutId===L){I=F;break a}I=void 0}I&&K.push(new PT(I))}return{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",Vf:Z,layoutExitNormalTriggers:[new Xp(A.N,L)],layoutExitSkipTriggers:f.skipOffsetMilliseconds? [new cW(A.N,D)]:[],layoutExitMuteTriggers:[new cW(A.N,D)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:B,vD:K,Aw:N(d),adLayoutLoggingData:f.adLayoutLoggingData}}; QL1=function(A,L,B,f,K,V,J,R,Z){f.every(function(F){return Ug(F,[],["LAYOUT_TYPE_MEDIA"])})||Dh("Unexpect subLayout type for DAI composite layout"); L=OZ(A.W.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",L);var N={layoutId:L,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",u1:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Vf:new Map,layoutExitNormalTriggers:[new kd(A.N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],u1:"core",clientMetadata:new q1([new wU(B),new pk(R),new RJ(f),new Xf(K),new sg(V),new gU({}),new Og(Z)]),Aw:J(N)}}; tUk=function(A){return A!=null}; MF=function(A,L,B){var f=this;this.W=A;this.V=L;this.FD=B;this.N=function(K){return uM(f.W.get(),K)}}; nDe=function(A,L,B,f,K,V,J){if(!B.prefetchModeConfig)return new n("AdPlacementConfig for Live Prefetch is missing prefetch_config");B=B.prefetchModeConfig;f*=1E3;var R=[];if(!B.breakLengthMs)return new n("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var Z=g.m(B.breakLengthMs),N=Z.next();!N.done;N=Z.next())if(N=N.value,Number(N)>0){var F=f+Number(B.startTimeOffsetMs),D=F+Number(B.cacheFetchSmearingDurationMs);N={R7:new bk(D,D+Number(N)),FS:!1,Vz:new bk(Math.floor(F+Math.random()* Number(B.cacheFetchSmearingDurationMs)),D),cueProcessedMs:f?f:F};F=[];F.push(new M1({}));D=[];D.push(new E7(A.N));D.push(new p8D(A.N));J&&F.push(new gU({}));R.push(m9(A,L,K,N,V,F,D))}return R}; m9=function(A,L,B,f,K,V,J){V=V===void 0?[]:V;var R=oE(A.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");J||(J=[],f.Vz&&f.Vz.start!==f.R7.start&&J.push(new Qg(A.N,B,new bk(f.Vz.start,f.R7.start),!1)),J.push(new Qg(A.N,B,new bk(f.R7.start,f.R7.end),f.FS)));f={getAdBreakUrl:L.getAdBreakUrl,f3:f.R7.start,hU:f.R7.end,cueProcessedMs:f.cueProcessedMs};L=new WW(A.N,R);V=[new hw(f)].concat(g.x7(V));return{slotId:R,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:J, slotExpirationTriggers:[new O7(A.N,B),new Yd(A.N,R),new U7(A.N,R)],u1:"core",clientMetadata:new q1(V),adSlotLoggingData:K}}; sJk=function(A,L,B){var f=[];B=g.m(B);for(var K=B.next();!K.done;K=B.next())f.push(rw0(A,L,K.value));return f}; rw0=function(A,L,B){return B.triggeringSlotId!=null&&B.triggeringSlotId===A?B.clone(L):B}; wvk=function(A,L,B,f,K){return Hk0(A,L,B,f,K)}; bO0=function(A,L,B,f){var K=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");return Hk0(A,K,L,B,f)}; Hk0=function(A,L,B,f,K){var V=new hy(A.N,B),J=[new Mr(A.N,L)];A=[new Yd(A.N,L),new O7(A.N,f)];return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:J,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(K({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:V,slotFulfillmentTriggers:J,slotExpirationTriggers:A},B))]),adSlotLoggingData:void 0}}; Yj6=function(A,L,B,f,K,V){var J=oE(A.W.get(),"SLOT_TYPE_PLAYER_BYTES"),R=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER"),Z=OZ(A.W.get(),"LAYOUT_TYPE_SURVEY",R);f=Yh(A,L,B,f);var N=[new Mr(A.N,J)];B=[new Yd(A.N,J),new O7(A.N,B),new rf(A.N,Z)];if(f instanceof n)return f;V=V({slotId:J,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:f,slotFulfillmentTriggers:N,slotExpirationTriggers:B},{slotId:R,layoutId:Z});R=V.nsL;return[{slotId:J,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:f,slotFulfillmentTriggers:N,slotExpirationTriggers:B,u1:"core",clientMetadata:new q1([new HF(V.XzD),new cF({z$:A.z$(L)})]),adSlotLoggingData:K},R]}; WEC=function(A,L,B,f,K){K=K?K:oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");B=new hy(A.N,B);var V=[new Mr(A.N,K)];A=[new O7(A.N,L),new Yd(A.N,K)];return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(f({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:A}))])}}; vv1=function(A,L,B,f){var K=oE(A.W.get(),"SLOT_TYPE_PLAYER_UNDERLAY");B=new hy(A.N,B);var V=[new Mr(A.N,K)];A=[new O7(A.N,L),new Yd(A.N,K)];return{slotId:K,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(f({slotId:K,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:A}))])}}; $Aw=function(A,L,B,f,K,V,J){var R=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER"),Z=OZ(A.W.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",R);f=hL6(A,f,V,J,Z);if(f instanceof n)return f;J=[new Mr(A.N,R)];K=[new O7(A.N,V),new Mr(A.N,K),new qr(A.N,K)];B=aJ(B,{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:f,slotFulfillmentTriggers:J,slotExpirationTriggers:K});A=A.V.get();V={layoutId:Z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",u1:"core"};L={layoutId:Z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Vf:new Map,layoutExitNormalTriggers:[new haD(A.N,Z,L.durationMs)],layoutExitSkipTriggers:[new tGw(A.N,Z,L.durationMs)],layoutExitUserCancelledTriggers:[new b0L(A.N,Z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u1:"core",clientMetadata:new q1([new mw(L)]),Aw:B(V)};return{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:f,slotFulfillmentTriggers:J,slotExpirationTriggers:K,clientMetadata:new q1([new HF(L)])}}; sd1=function(A,L,B,f,K,V){L=Yh(A,L,B,f);if(L instanceof n)return L;var J=L instanceof Qg?new rVD(A.N,B,L.N):null;f=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");var R=[new Mr(A.N,f)];A=[new O7(A.N,B),new Yd(A.N,f)];V=V({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:L,slotFulfillmentTriggers:R,slotExpirationTriggers:A},J);return V instanceof vF?new n(V):{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:R,slotExpirationTriggers:A, u1:"core",clientMetadata:new q1([new HF(V)]),adSlotLoggingData:K}}; GQ8=function(A,L,B,f){var K=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER"),V=new GA(A.N,L),J=[new vW(A.N,K)];A=[new O7(A.N,L),new Yd(A.N,K)];return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:J,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(f({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:V,slotFulfillmentTriggers:J,slotExpirationTriggers:A}))]),adSlotLoggingData:B}}; rhQ=function(A,L,B,f){var K=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");B=new hy(A.N,B);var V=[new Mr(A.N,K)],J=[new Yd(A.N,K),new O7(A.N,L)];V={slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:B,slotFulfillmentTriggers:V,slotExpirationTriggers:J};return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:[new Mr(A.N,K)],slotExpirationTriggers:[new O7(A.N,L),new Yd(A.N,K)],u1:"core",clientMetadata:new q1([new HF(f(V))])}}; jLe=function(A,L,B,f,K){var V=oE(A.W.get(),"SLOT_TYPE_IN_PLAYER");B=new HW(A.N,f,B);f=[new Mr(A.N,V)];A=[new O7(A.N,L)];return{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:f,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(K({slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:B,slotFulfillmentTriggers:f,slotExpirationTriggers:A}))])}}; DAS=function(A,L,B,f,K,V){var J=oE(A.W.get(),L);return UM(A,J,L,new hy(A.N,f),[new O7(A.N,B),new Yd(A.N,J),new bh(A.N,f,["error"])],K,V)}; FE6=function(A,L,B,f,K,V,J){var R=oE(A.W.get(),L);return UM(A,R,L,new bh(A.N,K,["normal"]),[new O7(A.N,B),new Yd(A.N,R),new bh(A.N,f,["error"])],V,J)}; SXD=function(A,L,B,f,K){var V=oE(A.W.get(),L);return UM(A,V,L,new GA(A.N,B),[new O7(A.N,B),new Yd(A.N,V)],f,K)}; pTk=function(A,L,B,f,K){B=B?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var V=oE(A.W.get(),B);L=new GA(A.N,L);var J=[new Mr(A.N,V)];A=[new Yd(A.N,V)];return{slotId:V,slotType:B,slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:J,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(K({slotId:V,slotType:B,slotPhysicalPosition:1,u1:"core",slotEntryTrigger:L,slotFulfillmentTriggers:J,slotExpirationTriggers:A}))]),adSlotLoggingData:f}}; k3y=function(A,L,B,f,K){var V=oE(A.W.get(),"SLOT_TYPE_PLAYER_BYTES"),J=new mU(A.N),R=[new vW(A.N,V)];A=[new O7(A.N,L)];L=[];L.push(new HF(f({slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:A})));L.push(new gU({}));K&&L.push(new N1({current:K}));return{slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:R,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1(L), adSlotLoggingData:B}}; XT7=function(A,L){return xNw(A.FD.get())?new bh(A.N,L,["normal","error","skipped"]):new bh(A.N,L,["normal"])}; ch1=function(A,L,B,f,K){L=XT7(A,L);A=oU(A,L,B);K=K({slotId:A.slotId,slotType:A.slotType,slotPhysicalPosition:A.slotPhysicalPosition,slotEntryTrigger:A.slotEntryTrigger,slotFulfillmentTriggers:A.slotFulfillmentTriggers,slotExpirationTriggers:A.slotExpirationTriggers,u1:A.u1});return K instanceof n?K:{Se:Object.assign({},A,{clientMetadata:new q1([new HF(K.layout)]),adSlotLoggingData:f}),jE:K.jE}}; MUC=function(A,L,B,f,K,V,J){B=OOw(A,L,B,f);if(B instanceof n)return B;J=J({slotId:B.slotId,slotType:B.slotType,slotPhysicalPosition:B.slotPhysicalPosition,slotEntryTrigger:B.slotEntryTrigger,slotFulfillmentTriggers:B.slotFulfillmentTriggers,slotExpirationTriggers:B.slotExpirationTriggers,u1:B.u1});if(J instanceof n)return J;A=[new HF(J.layout),new cF({z$:A.z$(L)})];V&&A.push(new Ck({}));return{Se:{slotId:B.slotId,slotType:B.slotType,slotPhysicalPosition:B.slotPhysicalPosition,slotEntryTrigger:B.slotEntryTrigger, slotFulfillmentTriggers:B.slotFulfillmentTriggers,slotExpirationTriggers:B.slotExpirationTriggers,u1:B.u1,clientMetadata:new q1(A),adSlotLoggingData:K},jE:J.jE}}; oU=function(A,L,B){var f=oE(A.W.get(),"SLOT_TYPE_PLAYER_BYTES"),K=[new Mr(A.N,f)];A=[new Yd(A.N,f),new O7(A.N,B)];return{slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:K,slotExpirationTriggers:A,u1:"core"}}; OOw=function(A,L,B,f){L=Yh(A,L,B,f);return L instanceof n?L:oU(A,L,B)}; jdL=function(A,L,B,f,K,V){var J=oE(A.W.get(),"SLOT_TYPE_FORECASTING");L=Yh(A,L,B,f);if(L instanceof n)return L;f=[new Mr(A.N,J)];A=[new Yd(A.N,J),new O7(A.N,B)];return{slotId:J,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:f,slotExpirationTriggers:A,u1:"core",clientMetadata:new q1([new HF(V({slotId:J,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,u1:"core",slotEntryTrigger:L,slotFulfillmentTriggers:f,slotExpirationTriggers:A}))]),adSlotLoggingData:K}}; bk1=function(A,L,B,f,K){var V=!L.hideCueRangeMarker;switch(L.kind){case "AD_PLACEMENT_KIND_START":return new GA(A.N,B);case "AD_PLACEMENT_KIND_MILLISECONDS":return A=fFC(L,f),A instanceof n?A:K(A.R7,V);case "AD_PLACEMENT_KIND_END":return new s7(A.N,B,V);default:return new n("Cannot construct entry trigger",{kind:L.kind})}}; hL6=function(A,L,B,f,K){return bk1(A,L,B,f,function(V,J){return new GJC(A.N,B,V,J,K)})}; Yh=function(A,L,B,f){return bk1(A,L,B,f,function(K,V){return new Qg(A.N,B,K,V)})}; UM=function(A,L,B,f,K,V,J){A=[new vW(A.N,L)];return{slotId:L,slotType:B,slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:A,slotExpirationTriggers:K,u1:"core",clientMetadata:new q1([new HF(J({slotId:L,slotType:B,slotPhysicalPosition:1,u1:"core",slotEntryTrigger:f,slotFulfillmentTriggers:A,slotExpirationTriggers:K}))]),adSlotLoggingData:V}}; VtC=function(){}; W_=function(A,L){g.Y.call(this);this.FD=A;this.W=L;this.eventCount=0;this.V=Jl0()()}; ji=function(A,L,B){A.N(L,void 0,void 0,void 0,B,void 0,void 0,void 0,B.adSlotLoggingData)}; ZB=function(A,L,B,f){A.N(L,void 0,void 0,void 0,B,f?f:void 0,void 0,void 0,B.adSlotLoggingData,f?f.adLayoutLoggingData:void 0);B=l_().resolve(h0(Zu))==null?void 0:NJ();L=B==null?void 0:B.adsSeenHotConfig;B=B==null?void 0:B.adsHotConfig;(L==null?0:L.logOnAdsSeen)&&(B==null?0:B.webEnablePremiumAdsSeenLogging)&&t60(A,f?f:void 0)}; mUD=function(A,L,B,f){XW(A.FD.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",B,"slot:",L,"layout:",f);uT(A.W.get())&&A.N("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,L,f?f:void 0,void 0,B,L.adSlotLoggingData,f?f.adLayoutLoggingData:void 0)}; Ky=function(A,L,B,f,K){A.N("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,f,K,void 0,void 0,f.adSlotLoggingData,K?K.adLayoutLoggingData:void 0,{errorType:L,errorMessage:B})}; t60=function(A,L){if(L){var B=L.adLayoutLoggingData;g.AR(g.ol(),function(){A.V!=null&&B&&g.pE("adsSeenClientLogging",{serializedAdServingDataEntry:B.serializedAdServingDataEntry})},0)}}; v_=function(A,L,B){W_.call(this,A,L);this.FD=A;this.hF=B}; qF=function(){this.N=new Map}; P_=function(A){this.N="pending";this.W=[];this.V=[];try{A(this.U.bind(this),this.reject.bind(this))}catch(L){this.reject(L)}}; kbw=function(){var A,L;return{Mm:new P_(function(B,f){A=B;L=f}), resolve:A,reject:L}}; nS=function(A){return xh(A)?A:eM(A)?new P_(function(L,B){A.then(L,B)}):new P_(function(L){L(A)})}; z0=function(A){return new P_(function(L,B){B(A)})}; u4=function(A){try{return nS(A())}catch(L){return z0(L)}}; A2=function(A,L,B){var f=kbw(),K=f.Mm,V=f.resolve,J=f.reject;A.W.push(function(R){if(L)try{var Z=L(R);V(Z)}catch(N){J(N)}else V(R)}); A.V.push(function(R){if(B)try{var Z=B(R);V(Z)}catch(N){J(N)}else J(R)}); aU(A);return K}; LP=function(A,L){return A2(A,void 0,L)}; TUE=function(A,L){A2(A,function(B){return A2(nS(L()),function(){return B})},function(B){return A2(nS(L()),function(){return z0(B)})})}; aU=function(A){if(A.N==="fulfilled"){var L=A.W;A.W=[];A.V=[];L=g.m(L);for(var B=L.next();!B.done;B=L.next())B=B.value,B(A.result)}else if(A.N==="rejected")for(L=A.V,A.W=[],A.V=[],L=g.m(L),B=L.next();!B.done;B=L.next())B=B.value,B(A.error)}; o4=function(A,L){return loe(L.call(A))}; BZ=function(A){return function B(){return wI(B,function(f){if(f.N==1)return g.RO(f,2),g.X(f,{Mm:nS(A)},4);if(f.N!=2)return f.return(f.W);g.F9(f);return g.DR(f,0)})}()}; loe=function(A){return u4(function(){return fP(A,A.next())})}; fP=function(A,L){return L.done?nS(L.value):LP(A2(L.value.Mm,function(B){return fP(A,A.next(B))}),function(B){return fP(A,A.throw(B))})}; CTD=function(A){var L=m1E(A);return A2(QJD(L),function(){return L.map(function(B){return B.state()})})}; QJD=function(A){if(A.length===0)return nS(NaN);var L=kbw(),B=L.Mm,f=L.resolve,K=A.length;A=g.m(A.entries());var V=A.next();for(L={};!V.done;L={z6:void 0},V=A.next()){var J=g.m(V.value);V=J.next().value;J=J.next().value;L.z6=V;TUE(J,function(R){return function(){B.N==="pending"&&(ik6(void 0)&&(void 0)(R.z6)&&B.N==="pending"?f(R.z6):(--K,K===0&&f(NaN)))}}(L))}return B}; m1E=function(A){return A.map(function(L){return nS(L)})}; VG=function(A){var L=A.hours||0;var B=A.minutes||0,f=A.seconds||0;L=f+B*60+L*3600+(A.days||0)*86400+(A.weeks||0)*604800+(A.months||0)*2629800+(A.years||0)*31557600;L<=0?L={hours:0,minutes:0,seconds:0}:(A=L,L=Math.floor(A/3600),A%=3600,B=Math.floor(A/60),f=Math.floor(A%60),L={hours:L,minutes:B,seconds:f});var K=L.hours===void 0?0:L.hours;B=L.minutes===void 0?0:L.minutes;A=L.seconds===void 0?0:L.seconds;f=K>0;L=[];if(f){K=(new Intl.NumberFormat("en-u-nu-latn")).format(K);var V=["fr"],J="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(" "); K="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(KP)?K.replace(",","\u00a0"):V.includes(KP)?K.replace(",","\u202f"):J.includes(KP)?K.replace(",","."):K;L.push(K)}f=f===void 0?!1:f;B=(["af","be","lt"].includes(KP)||f)&&B<10?$10().format(B):(new Intl.NumberFormat("en-u-nu-latn")).format(B);L.push(B);B=$10().format(A);L.push(B);B=":";"da fi id si sr sr-Latn".split(" ").includes(KP)&&(B=".");return L.join(B)}; $10=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; XFw=function(A,L){var B,f;A=((B=A.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(f=B.videoAuthorizationToken)==null?void 0:f.credentialTransferTokens)||[];for(B=0;BL;A=B}else A=!1;return A}; g.sO=function(A,L){return A.vI+"timedtext_video?ref=player&v="+L.videoId}; g.JmL=function(A){var L=this;this.videoData=A;A={};this.N=(A.c1a=function(){var B=[];if(g.G4.isInitialized()){var f="";L.videoData&&L.videoData.EZ&&(f=L.videoData.EZ+("&r1b="+L.videoData.clientPlaybackNonce));var K={};f=(K.atr_challenge=f,K);OC("bg_v",void 0,"player_att");(f=Vi8(f))?(OC("bg_s",void 0,"player_att"),B.push("r1a="+f)):(OC("bg_e",void 0,"player_att"),B.push("r1c=2"))}else OC("bg_e",void 0,"player_att"),window.trayride||window.botguard?B.push("r1c=1"):B.push("r1c=4");B.push("r1d="+g.G4.getState()); return B.join("&")},A.c6a=function(B){return"r6a="+(Number(B.c)^fz())},A.c6b=function(B){return"r6b="+(Number(B.c)^Number(g.A_("CATSTAT",0)))},A); this.videoData&&this.videoData.EZ?this.AO=I0(this.videoData.EZ):this.AO={}}; g.SZD=function(A){if(A.videoData&&A.videoData.EZ){for(var L=[A.videoData.EZ],B=g.m(Object.keys(A.N)),f=B.next();!f.done;f=B.next())f=f.value,A.AO[f]&&A.N[f]&&(f=A.N[f](A.AO))&&L.push(f);return L.join("&")}return null}; g.HZ=function(A,L){KO6(A,{xF1:g.Am(L.experiments,"bg_vm_reinit_threshold"),cspNonce:L.cspNonce,vI:L.vI||""})}; RDe=function(){var A=XMLHttpRequest.prototype.fetch;return!!A&&A.length===3}; NY7=function(A){Zyv=2592E3*(A||1)}; FOw=function(A){g.OS("yt-player-bandwidth",A,2592E3)}; h2=function(A){A=A===void 0?Zyv:A;if(A>0&&!(H2y()>(0,g.bc)()-A*1E3))return 0;A=g.ES("yt-player-quality");if(typeof A==="string"){if(A=g.ka[A],A>0)return A}else if(A instanceof Object)return A.quality;return 0}; b6=function(){var A=g.ES("yt-player-proxima-pref");return A==null?null:A}; DR6=function(){var A=g.ES("yt-player-quality");if(A instanceof Object&&A.quality&&A.previousQuality){if(A.quality>A.previousQuality)return 1;if(A.quality0&&L[0]?A.getAutoplayPolicy(L[0]):A.getAutoplayPolicy("mediaelement");if(GiQ[B])return GiQ[B]}}catch(f){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; CP=function(A){return A.N8||A.BV||A.mutedAutoplay}; var Zw8=function(A,L,B,f,K,V,J,R,Z){return Kw[S[2]](this,34,A,L,B,f,K,V,J,R,Z)}; rmQ=function(A,L){return CP(A)?L!==1&&L!==2&&L!==0?"AUTOPLAY_STATUS_UNAVAILABLE":A.e0?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; s67=function(A,L,B){var f=L.K();A.thirdParty||(A.thirdParty={});A.thirdParty=Object.assign({},A.thirdParty,{embedUrl:f.loaderUrl});f.ancestorOrigins&&(A.thirdParty.embeddedPlayerContext=Object.assign({},A.thirdParty.embeddedPlayerContext,{ancestorOrigins:f.ancestorOrigins}));f.jb!=null&&(A.thirdParty.embeddedPlayerContext=Object.assign({},A.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(f.jb)}));f.XT&&(A.thirdParty.embeddedPlayerContext=Object.assign({},A.thirdParty.embeddedPlayerContext, {visibilityFractionSource:f.XT}));A.thirdParty.embeddedPlayerContext=Object.assign({},A.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:QG(),autoplayIntended:CP(L),autoplayStatus:rmQ(L,B)})}; HyE=function(A){var L=[];A=g.m(A.split(","));for(var B=A.next();!B.done;B=A.next()){var f=B.value;f&&((B=f.startsWith("!"))&&(f=f.substring(1)),f=f.split("-"),f.length<3||L.push({Qx:f[0],platform:f[1],deviceVersion:f[2],y$:B}))}return L}; tiv=function(A){return HyE(A).map(function(L){return{deviceInterface:hDS[by6[L.Qx]]||0,deviceVersion:L.deviceVersion||"",isSleeping:L.y$}})}; g.i6=function(A,L){this.id=A;this.ri=L;this.captionTracks=[];this.V=this.U=null;this.xtags="";this.T=this.D=!1;this.N=null;this.W="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";A=this.ri.id.split(".");A.length>1&&(this.D=A[1]==="2",this.T=A[1]==="4")}; $Q=function(A,L,B,f,K){this.W=A;this.N=L;this.V=B;this.reason=f;this.lC=K===void 0?0:K}; g.XX=function(A,L,B,f){return new $Q(g.ka[A]||0,g.ka[L]||0,B,f)}; EO=function(A){if(OO&&A.lC)return!1;var L=g.ka.auto;return A.W===L&&A.N===L}; My=function(A){return cZ[A.N||A.W]||"auto"}; kiD=function(A,L){L=g.ka[L];return A.W<=L&&(!A.N||A.N>=L)}; YQ=function(A,L,B,f){this.videoInfos=A;this.N=L;this.audioTracks=[];this.W=f||[];if(this.N){A=new Set;B==null||B({ainfolen:this.N.length});L=g.m(this.N);for(f=L.next();!f.done;f=L.next())if(f=f.value,!f.ri||A.has(f.ri.id)){var K=void 0,V=void 0,J=void 0;(J=B)==null||J({atkerr:!!f.ri,itag:f.itag,xtag:f.N,lang:((K=f.ri)==null?void 0:K.name)||"",langid:((V=f.ri)==null?void 0:V.id)||""})}else K=new g.i6(f.id,f.ri),A.add(f.ri.id),this.audioTracks.push(K);B==null||B({atklen:this.audioTracks.length})}}; UO=function(){g.Y.apply(this,arguments);this.W=null;this.N=new Map}; CY1=function(A,L,B,f,K,V,J){if(A.W)return A.W;var R={},Z=new Set,N={};if(WZ(f)){for(var F in f.N)f.N.hasOwnProperty(F)&&(A=f.N[F],N[A.info.Bn]=[A.info]);return N}F=TY1(L,f,R);V&&K({aftsrt:vZ(F)});for(var D={},I=g.m(Object.keys(F)),d=I.next();!d.done;d=I.next()){d=d.value;for(var w=g.m(F[d]),r=w.next();!r.done;r=w.next()){r=r.value;var h=r.itag,Q=lBy(d,r,L);if(D.hasOwnProperty(Q))D[Q]===!0?N[d].push(r):R[h]=D[Q];else{var l=qy(L,r,B,f.isLive,Z);l!==!0?(J.add(d),R[h]=l,l==="disablevp9hfr"&&(D[Q]="disablevp9hfr")): (N[d]=N[d]||[],N[d].push(r),D[Q]=!0)}}}V&&K({bfflt:vZ(N)});for(var C in N)N.hasOwnProperty(C)&&(f=C,N[f]&&N[f][0].WV()&&(N[f]=N[f],N[f]=mRy(L,N[f],R),N[f]=Q6v(N[f],R)));V&&Object.keys(R).length>0&&K({rjr:f$(R)});L=g.m(Z.values());for(f=L.next();!f.done;f=L.next())(f=B.V.get(f.value))&&--f.FF;V&&K({aftflt:vZ(N)});A.W=g.Gk(N,function(O){return!!O.length}); return A.W}; $R1=function(A,L,B,f,K,V,J,R){R=R===void 0?!1:R;if(L.WR&&J&&J.length>1&&!(L.Tb>0||L.G)){for(var Z=L.N||!!K,N=Z&&L.Pz?V:void 0,F=TY1(L,f),D=[],I=[],d={},w=0;w0&&w&&I&&(F=[J,A],O=I.concat(w).filter(function(v){return v})); if(O.length&&!L.DZ){eH(O,F);if(Z){Z=[];L=g.m(O);for(f=L.next();!f.done;f=L.next())Z.push(f.value.itag);V({hbdfmt:Z.join(".")})}return OQ(new YQ(O,K,N,B))}O=qZw(L);O=g.Pw(O,R);if(!O){if(D[J])return V=D[J],eH(V),OQ(new YQ(V,K,N,B));Z&&V({novideo:1});return Xa()}L.nD&&(O==="1"||O==="1h")&&D[A]&&(J=nP(D[O]),F=nP(D[A]),F>J?O=A:F===J&&PYE(D[A])&&(O=A));O==="9"&&D.h&&nP(D.h)>nP(D["9"])&&(O="h");L.Uv&&f.isLive&&O==="("&&D.H&&nP(D["("])<1440&&(O="H");Z&&V({vfmly:z4(O)});L=D[O];if(!L.length)return Z&&V({novfmly:z4(O)}), Xa();eH(L);return OQ(new YQ(L,K,N,B))}; WOQ=function(A,L,B){var f,K=((f=B.video)==null?void 0:f.fps)||0;f=L+"_"+K;var V=!!B.audio,J=A.N.get(f);a:{var R=A.N.get(f),Z=!!B.audio;if(R){if(Z){var N=!1;break a}var F;if(!Z&&((N=B.video)==null?0:N.height)&&R.maxHeight&&R.maxHeight>=((F=B.video)==null?void 0:F.height)){N=!1;break a}}N=!0}N&&(N=B.itag,L=J?J:{itag:N,Bn:L,NF:V},V?L.numChannels=B.audio.numChannels:(V=B.video,L.maxWidth=V==null?void 0:V.width,L.maxHeight=V==null?void 0:V.height,L.maxFramerate=K,L.maxBitrateBps=B.lC*8,L.uT=V==null?void 0: V.isHdr()),A.N.set(f,L))}; xQ=function(A){for(var L=[],B=g.m(A.N.keys()),f=B.next();!f.done;f=B.next()){f=f.value;var K=A.N.get(f);L.push(f+"_"+K.maxWidth+"_"+K.maxHeight)}return L.join(".")}; Oy6=function(A,L){var B=!(!A.m&&!A.M),f=!(!A.mac3&&!A.MAC3),K=!(!A.meac3&&!A.MEAC3);A=!(!A.i&&!A.I);L.LD=A;return B||f||K||A}; PYE=function(A){A=g.m(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.itag&&xRv.has(L.itag))return!0;return!1}; cm8=function(A){A=g.m(A);for(var L=A.next();!L.done;L=A.next())if(L.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; z4=function(A){switch(A){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return A}}; lBy=function(A,L,B){var f,K,V;return B.o4?A+"_"+Number((f=L.video)==null?void 0:f.fps)+"_"+!((K=L.audio)==null||!K.W):A+"_"+(((V=L.video)==null?void 0:V.fps)||0)}; vZ=function(A){var L=[],B;for(B in A)if(A.hasOwnProperty(B)){var f=B;L.push(z4(f));f=g.m(A[f]);for(var K=f.next();!K.done;K=f.next())L.push(K.value.itag)}return L.join(".")}; XRv=function(A,L,B,f,K,V){var J={},R={};g.H6(L,function(Z,N){Z=Z.filter(function(F){var D=F.itag;if(!F.Zj)return R[D]="noenc",!1;if(V.KY&&F.Bn==="(h"&&V.mH)return R[D]="lichdr",!1;if(!A.U&&F.Bn==="1e")return R[D]="noav1enc",!1;if(F.Bn==="("||F.Bn==="(h"){if(A.W&&B&&B.flavor==="widevine"){var I=F.mimeType+"; experimental=allowed";(I=!!F.Zj[B.flavor]&&!!B.N[I])||(R[D]=F.Zj[B.flavor]?"unspt":"noflv");return I}if(!u6(A,a4.CRYPTOBLOCKFORMAT)&&!A.ZM||A.qp)return R[D]=A.qp?"disvp":"vpsub",!1}return B&&F.Zj[B.flavor]&& B.N[F.mimeType]?!0:(R[D]=B?F.Zj[B.flavor]?"unspt":"noflv":"nosys",!1)}); Z.length&&(J[N]=Z)}); f&&Object.entries(R).length&&K({rjr:f$(R)});return J}; Q6v=function(A,L){var B=Cv(A,function(f,K){return K.video.fps>32?Math.min(f,K.video.width):f},Infinity); B32||f.video.widthA.T)return"max"+A.T;if(A.Nl&&L.Bn==="h"&&L.video&&L.video.qualityOrdinal>1080)return"blkhigh264";if(L.Bn==="(h"&&!B.T)return"enchdr";if((f===void 0?0:f)&&Nkv(L)&&!A.Ex)return"blk51live";if((L.Bn==="MAC3"||L.Bn==="mac3")&&!A.U)return"blkac3";if((L.Bn==="MEAC3"||L.Bn==="meac3")&&!A.D)return"blkeac3";if(L.Bn==="M"||L.Bn==="m")return"blkaac51"; if((L.Bn==="so"||L.Bn==="sa")&&!A.Wn)return"blkamb";if(!A.KY&&ZLy(L)&&(!B.U||L.Bn!=="1e"))return"cbc";if(!B.U&&ZLy(L)&&L.Bn==="1e")return"cbcav1";if((L.Bn==="i"||L.Bn==="I")&&!A.t$)return"blkiamf";var V;if(A.zV&&((V=L.audio)==null?void 0:V.W)===!0)return"blkvbcabr";var J,R;if(A.cn&&(L.Bn==="1"||L.Bn==="1h"||B.U&&L.Bn==="1e")&&((J=L.video)==null?0:J.qualityOrdinal)&&((R=L.video)==null?void 0:R.qualityOrdinal)>A.cn)return"av1cap";f=B.V.get(L.Bn);if(!A.jI&&f&&f.FF>0)return K.add(L.Bn),"byerr";var Z; if((Z=L.video)==null?0:Z.fps>32){if(!B.Vj&&!u6(B,a4.FRAMERATE))return"capHfr";if(A.Ox&&L.video.qualityOrdinal>=4320)return"blk8khfr";if(iQ(L)&&A.jD&&L.Zj&&L.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(A.lC&&L.lC>A.lC)return"ratecap";if(A.Vj>0&&L.WV()&&L.video.height>A.Vj)return"mvhcap";A=eD8(B,L);return A!==!0?A:!0}; eH=function(A,L){L=L===void 0?[]:L;g.I8(A,function(B,f){var K=f.lC-B.lC;if(!B.WV()||!f.WV())return K;var V=f.video.height*f.video.width-B.video.height*B.video.width;!V&&L&&L.length>0&&(B=L.indexOf(B.Bn)+1,f=L.indexOf(f.Bn)+1,V=B===0||f===0?f||-1:B-f);V||(V=K);return V})}; AI=function(A,L,B,f,K,V,J,R,Z){this.XD=A;this.startTime=L;this.duration=B;this.ingestionTime=f;this.sourceURL=K;this.U9=Z;this.endTime=L+B;this.N=J||0;this.range=V||null;this.pending=R||!1;this.U9=Z||null}; g.Lq=function(){this.segments=[];this.N=null;this.W=!0;this.V=""}; nGv=function(A,L){if(L>A.uq())A.segments=[];else{var B=qX(A.segments,function(f){return f.XD>=L},A); B>0&&A.segments.splice(0,B)}}; os=function(A,L,B,f,K){K=K===void 0?!1:K;this.data=A;this.offset=L;this.size=B;this.type=f;this.N=(this.W=K)?0:8;this.dataOffset=this.offset+this.N}; Bq=function(A){var L=A.data.getUint8(A.offset+A.N);A.N+=1;return L}; fq=function(A){var L=A.data.getUint16(A.offset+A.N);A.N+=2;return L}; Kq=function(A){var L=A.data.getInt32(A.offset+A.N);A.N+=4;return L}; Vj=function(A){var L=A.data.getUint32(A.offset+A.N);A.N+=4;return L}; JI=function(A){var L=A.data;var B=A.offset+A.N;L=L.getUint32(B)*4294967296+L.getUint32(B+4);A.N+=8;return L}; Sz=function(A,L){L=L===void 0?NaN:L;if(isNaN(L))var B=A.size;else for(B=A.N;B1?Math.ceil(K*L):Math.floor(K*L))}A.skip(1);B=Bq(A)<<16|fq(A);if(B&256){f=B&1;K=B&4;var V=B&512,J=B&1024,R=B&2048;B=Vj(A);f&&A.skip(4);K&&A.skip(4);f=(V?4:0)+(J?4:0)+(R?4:0);for(K=0;K1?Math.ceil(J*L):Math.floor(J*L)),A.skip(f)}}}; wD=function(A){A=new DataView(A.buffer,A.byteOffset,A.byteLength);return(A=g.dD(A,0,1836476516))?g.Is(A):NaN}; SbS=function(A){var L=g.dD(A,0,1937011556);if(!L)return null;L=pq(A,L.dataOffset+8,1635148593)||pq(A,L.dataOffset+8,1635135537);if(!L)return null;var B=pq(A,L.dataOffset+78,1936995172),f=pq(A,L.dataOffset+78,1937126244);if(!f)return null;L=null;if(B)switch(B.skip(4),Bq(B)){default:L=0;break;case 1:L=2;break;case 2:L=1;break;case 3:L=255}var K=B=null,V=null;if(f=pq(A,f.dataOffset,1886547818)){var J=pq(A,f.dataOffset,1886546020),R=pq(A,f.dataOffset,2037673328);if(!R&&(R=pq(A,f.dataOffset,1836279920), !R))return null;J&&(J.skip(4),B=Kq(J)/65536,V=Kq(J)/65536,K=Kq(J)/65536);A=zD6(R);A=new DataView(A.buffer,A.byteOffset+8,A.byteLength-8);return new V91(L,B,V,K,A)}return null}; pq=function(A,L,B){for(;yj(A,L);){var f=jz(A,L);if(f.type===B)return f;L+=f.size}return null}; g.dD=function(A,L,B){for(;yj(A,L);){var f=jz(A,L);if(f.type===B)return f;L=gD(f.type)?L+8:L+f.size}return null}; g.G5=function(A){if(A.data.getUint8(A.dataOffset)){var L=A.data;A=A.dataOffset+4;L=L.getUint32(A)*4294967296+L.getUint32(A+4)}else L=A.data.getUint32(A.dataOffset+4);return L}; jz=function(A,L){var B=A.getUint32(L),f=A.getUint32(L+4);return new os(A,L,B,f)}; g.Is=function(A){var L=A.data.getUint8(A.dataOffset)?20:12;return A.data.getUint32(A.dataOffset+L)}; RsL=function(A){A=new os(A.data,A.offset,A.size,A.type,A.W);var L=Bq(A);A.skip(7);var B=Vj(A);if(L===0){L=Vj(A);var f=Vj(A)}else L=JI(A),f=JI(A);A.skip(2);for(var K=fq(A),V=[],J=[],R=0;R122)return!1}return!0}; gD=function(A){return A===1701082227||A===1836019558||A===1836019574||A===1835297121||A===1835626086||A===1937007212||A===1953653094||A===1953653099||A===1836475768}; ZUy=function(A){A.skip(4);return{qf4:Sz(A,0),value:Sz(A,0),timescale:Vj(A),egM:Vj(A),eventDuration:Vj(A),id:Vj(A),F7:Sz(A),offset:A.offset}}; g.Njw=function(A){var L=pq(A,0,1701671783);if(!L)return null;var B=ZUy(L),f=B.qf4;B=Dc(B.F7);if(A=pq(A,L.offset+L.size,1701671783))if(A=ZUy(A),A=Dc(A.F7),B&&A){L=g.m(Object.keys(A));for(var K=L.next();!K.done;K=L.next())K=K.value,B[K]=A[K]}return B?new Fd(B,f):null}; rD=function(A,L){for(var B=pq(A,0,L);B;){var f=B;f.type=1936419184;f.data.setUint32(f.offset+4,1936419184);B=pq(A,B.offset+B.size,L)}}; g.s9=function(A,L){for(var B=0,f=[];yj(A,B);){var K=jz(A,B);K.type===L&&f.push(K);B=gD(K.type)?B+8:B+K.size}return f}; FD8=function(A,L){var B=g.dD(A,0,1937011556),f=g.dD(A,0,1953654136);if(!B||!f||A.getUint32(B.offset+12)>=2)return null;var K=new DataView(L.buffer,L.byteOffset,L.length),V=g.dD(K,0,1937011556);if(!V)return null;L=K.getUint32(V.dataOffset+8);f=K.getUint32(V.dataOffset+12);if(f!==1701733217&&f!==1701733238)return null;f=new uWy(A.byteLength+L);Rs(f,A,0,B.offset+12);f.data.setInt32(f.offset,2);f.offset+=4;Rs(f,A,B.offset+16,B.size-16);Rs(f,K,K.byteOffset+V.dataOffset+8,L);Rs(f,A,B.offset+B.size,A.byteLength- (B.offset+B.size));B=g.m([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(K=B.next();!K.done;K=B.next())K=g.dD(A,0,K.value),f.data.setUint32(K.offset,K.size+L);A=g.dD(f.data,0,1953654136);f.data.setUint32(A.offset+16,2);return f.data}; DSC=function(A){var L=g.dD(A,0,1937011556);if(!L)return null;var B=A.getUint32(L.dataOffset+12);if(B!==1701733217&&B!==1701733238)return null;L=pq(A,L.offset+24+(B===1701733217?28:78),1936289382);if(!L)return null;B=pq(A,L.offset+8,1935894637);if(!B||A.getUint32(B.offset+12)!==1667392371)return null;L=pq(A,L.offset+8,1935894633);if(!L)return null;L=pq(A,L.offset+8,1952804451);if(!L)return null;B=new Uint8Array(16);for(var f=0;f<16;f++)B[f]=A.getInt8(L.offset+16+f);return B}; Hq=function(A,L){this.N=A;this.pos=0;this.start=L||0}; hI=function(A){return A.pos>=A.N.byteLength}; ln=function(A,L,B){var f=new Hq(B);if(!bn(f,A))return!1;f=tI(f);if(!kK(f,L))return!1;for(A=0;L;)L>>>=8,A++;L=f.start+f.pos;var K=T5(f,!0);f=A+(f.start+f.pos-L)+K;f=f>9?dSw(f-9,8):dSw(f-2,1);A=L-A;B.setUint8(A++,236);for(L=0;LB;K++)B=B*256+Xd(A),f*=128;return L?B-f:B}; Qj=function(A){var L=T5(A,!0);A.pos+=L}; p$E=function(A){if(!kK(A,440786851,!0))return null;var L=A.pos;T5(A,!1);var B=T5(A,!0)+A.pos-L;A.pos=L+B;if(!kK(A,408125543,!1))return null;T5(A,!0);if(!kK(A,357149030,!0))return null;var f=A.pos;T5(A,!1);var K=T5(A,!0)+A.pos-f;A.pos=f+K;if(!kK(A,374648427,!0))return null;var V=A.pos;T5(A,!1);var J=T5(A,!0)+A.pos-V,R=new Uint8Array(B+12+K+J),Z=new DataView(R.buffer);R.set(new Uint8Array(A.N.buffer,A.N.byteOffset+L,B));Z.setUint32(B,408125543);Z.setUint32(B+4,33554431);Z.setUint32(B+8,4294967295); R.set(new Uint8Array(A.N.buffer,A.N.byteOffset+f,K),B+12);R.set(new Uint8Array(A.N.buffer,A.N.byteOffset+V,J),B+12+K);return R}; O9=function(A){var L=A.pos;A.pos=0;var B=1E6;bn(A,[408125543,357149030,2807729])&&(B=md(A));A.pos=L;return B}; yE7=function(A,L){var B=A.pos;A.pos=0;if(A.N.getUint8(A.pos)!==160&&!E9(A)||!kK(A,160))return A.pos=B,NaN;T5(A,!0);var f=A.pos;if(!kK(A,161))return A.pos=B,NaN;T5(A,!0);Xd(A);var K=Xd(A)<<8|Xd(A);A.pos=f;if(!kK(A,155))return A.pos=B,NaN;f=md(A);A.pos=B;return(K+f)*L/1E9}; E9=function(A){if(!jEw(A)||!kK(A,524531317))return!1;T5(A,!0);return!0}; jEw=function(A){if(A.qE()){if(!kK(A,408125543))return!1;T5(A,!0)}return!0}; bn=function(A,L){for(var B=0;B0){var f=J1(41,L.substring(B+1));g.H6(f,function(K,V){this.set(V,K)},A); L=L.substring(0,B)}L=k7(2,L);g.H6(L,function(K,V){this.set(V,K)},A)}; GYS=function(A){var L=A.QN.MQ(),B=[];g.H6(A.N,function(K,V){B.push(V+"="+K)}); if(!B.length)return L;var f=B.join("&");A=sD(16,A.QN)?"&":"?";return L+A+f}; Mj=function(A,L){var B=new g.Fk(L);(L=B.get("req_id"))&&A.set("req_id",L);g.H6(A.N,function(f,K){B["set"](K,null)}); return B}; rEv=function(){this.U=this.V=this.N=this.timedOut=this.started=this.D=this.W=0}; YK=function(A){A.D=(0,g.bc)();A.started=0;A.timedOut=0;A.N=0}; U9=function(A,L){var B=A.started+A.N*4;L&&(B+=A.V);B=Math.max(0,B-3);return Math.pow(1.6,B)}; Wq=function(A,L){A[L]||(A[L]=new rEv);return A[L]}; vq=function(A){this.yj=this.X=this.D=this.V=0;this.G=this.T=!1;this.N=A;this.W=A.clone()}; sE6=function(A,L,B){if(k7(51,A.N))return!1;var f=Wq(B,wy(17,A.N));if(f.timedOut<1&&f.N<1)return!1;f=f.timedOut+f.N;A=qj(A,L);B=Wq(B,wy(18,A));return B.timedOut+B.N+01?L=L.Xnr:(B=Wq(B,xK(A,A.P9(L,B),L)),L=Math.max(A.D,B.timedOut)+L.OT*(A.V-A.D)+.25*A.X,L=L>3?1E3*Math.pow(1.6,L-3):0);return L===0?!0:A.yj+L<(0,g.bc)()}; HU1=function(A,L,B){A.N.set(L,B);A.W.set(L,B);A.U&&A.U.set(L,B)}; hsD=function(A,L,B,f,K){++A.V;L&&++A.D;wy(23,B.QN).startsWith("redirector.")&&(A.N=A.W.clone(),delete A.U,f.oE&&delete K[wy(18,A.N)])}; nq=function(A){return A?(A.itag||"")+";"+(A.lmt||0)+";"+(A.xtags||""):""}; z5=function(A,L,B,f){this.initRange=B;this.indexRange=f;this.N=null;this.V=!1;this.T=0;this.U=this.zd=this.W=null;this.info=L;this.wi=new vq(A)}; un=function(A,L){return nq(g.vV(A.info,L))}; as=function(A,L){this.start=A;this.end=L;this.length=L-A+1}; AL=function(A){A=A.split("-");var L=Number(A[0]),B=Number(A[1]);if(!isNaN(L)&&!isNaN(B)&&A.length===2&&(A=new as(L,B),!isNaN(A.start)&&!isNaN(A.end)&&!isNaN(A.length)&&A.length>0))return A}; L3=function(A,L){return new as(A,A+L-1)}; bUE=function(A){return A.end==null?{start:String(A.start)}:{start:String(A.start),end:String(A.end)}}; op=function(A){if(!A)return new as(0,0);var L=Number(A.start);A=Number(A.end);if(!isNaN(L)&&!isNaN(A)&&(L=new as(L,A),L.length>0))return L}; Bp=function(A,L,B,f,K,V,J,R,Z,N,F,D){f=f===void 0?"":f;this.type=A;this.b1=L;this.range=B;this.source=f;this.Gb=F;this.clipId=D===void 0?"":D;this.G=[];this.T="";this.XD=-1;this.yj=0;this.T=f;this.XD=K>=0?K:-1;this.startTime=V||0;this.duration=J||0;this.N=R||0;this.W=Z>=0?Z:this.range?this.range.length:NaN;this.V=this.range?this.N+this.W===this.range.length:N===void 0?!!this.W:N;this.range?(this.U=this.startTime+this.duration*this.N/this.range.length,this.X=this.duration*this.W/this.range.length, this.D=this.U+this.X):t9k(this)}; t9k=function(A){A.U=A.startTime;A.X=A.duration;A.D=A.U+A.X}; kYe=function(A,L,B){var f=!(!L||L.b1!==A.b1||L.type!==A.type||L.XD!==A.XD);return B?f&&!!L&&(A.range&&L.range?L.range.end===A.range.end:L.range===A.range)&&L.N+L.W===A.N+A.W:f}; f3=function(A){return A.type===1||A.type===2}; K3=function(A){return A.type===3||A.type===6}; Vs=function(A,L){return A.b1===L.b1?A.range&&L.range?A.range.start+A.N+A.W===L.range.start+L.N:A.XD===L.XD?A.N+A.W===L.N:A.XD+1===L.XD&&L.N===0&&A.V:!1}; lTe=function(A,L){return A.XD!==L.XD&&L.XD!==A.XD+1||A.type!==L.type?!1:Vs(A,L)?!0:Math.abs(A.U-L.U)<=1E-6&&A.XD===L.XD?!1:Tj0(A,L)}; Tj0=function(A,L){return Vs(A,L)||Math.abs(A.D-L.U)<=1E-6||A.XD+1===L.XD&&L.N===0&&A.V?!0:!1}; JL=function(A){return A.XD+(A.V?1:0)}; mSC=function(A){A.length===1||g.Q9(A,function(B){return!!B.range}); for(var L=1;L=L.range.start+L.N&&A.range.start+A.N+A.W<=L.range.start+L.N+L.W:A.XD===L.XD&&A.N>=L.N&&(A.N+A.W<=L.N+L.W||L.V)}; EmL=function(A,L){return A.b1!==L.b1?!1:A.type===4&&L.type===3&&A.b1.w1()?(A=A.b1.kW(A),K9(A,function(B){return EmL(B,L)})):A.XD===L.XD&&!!L.W&&L.N+L.W>A.N&&L.N+L.W<=A.N+A.W}; Rp=function(A,L){var B=L.XD;A.T="updateWithSegmentInfo";A.XD=B;if(A.startTime!==L.startTime||A.duration!==L.duration)A.startTime=L.startTime,A.duration=L.duration,t9k(A)}; ZY=function(A,L){var B=this;this.Lr=A;this.U=this.N=null;this.D=this.FH=NaN;this.P9=this.requestId=null;this.GV={Xqs:function(){return B.range}}; this.wi=A[0].b1.wi;this.W=L||"";this.Lr[0].range&&this.Lr[0].W>0&&(QED(A)?(this.range=mSC(A),this.V=this.range.length):(this.range=this.Lr[this.Lr.length-1].range,this.V=Cde(A)))}; NP=function(A){return!f3(A.Lr[A.Lr.length-1])}; FV=function(A){return A.Lr[A.Lr.length-1].type===4}; g.DY=function(A,L,B){B=A.P9===null?A.wi.P9(L,B,A.Lr[0].type):A.P9;if(A.N){L=B?J1(20,A.N,L.JV):A.N;var f=new cq(L);f.get("alr")||f.set("alr","yes");A.W&&gm7(f,A.W)}else/http[s]?:\/\//.test(A.W)?f=new cq(new g.Fk(A.W)):(f=Pq(A.wi,B,L),A.W&&gm7(f,A.W));(L=A.range)?f.set("range",L.toString()):A.Lr[0].b1.g2()&&A.Lr.length===1&&A.Lr[0].N&&f.set("range",A.Lr[0].N+"-");A.requestId&&f.set("req_id",A.requestId);isNaN(A.FH)||f.set("headm",A.FH.toString());isNaN(A.D)||f.set("mffa",A.D+"ms");A.urlParams&&g.H6(A.urlParams, function(K,V){f.set(V,K)}); return f}; cEy=function(A){if(A.range)return A.V;A=A.Lr[0];return Math.round(A.X*A.b1.info.lC)}; M98=function(A,L){return Math.max(0,A.Lr[0].U-L)}; Yb7=function(A,L){A=g.m(A.Lr);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.type===3&&L>=B.U&&L<=B.D)return!0;return!1}; dR=function(A,L,B,f,K,V){V=V===void 0?0:V;z5.call(this,A,L,f,void 0);this.D=B;this.oC=V;this.index=K||new g.Lq}; USk=function(A,L,B,f,K){this.XD=A;this.startSecs=L;this.Dj=B;this.N=f||NaN;this.W=K||NaN}; Ip=function(A,L,B){for(;A;A=A.parentNode)if(A.attributes&&(!B||A.nodeName===B)){var f=A.getAttribute(L);if(f)return f}return""}; wR=function(A,L){for(;A;A=A.parentNode){var B=A.getElementsByTagName(L);if(B.length>0)return B[0]}return null}; WD0=function(A){if(!A)return 0;var L=A.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return L?(Number(L[2])|0)*3600+(Number(L[4])|0)*60+(Number(L[6])|0):Number(A)|0}; vm1=function(A){return A.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?A+"Z":A}; p3=function(){this.N=[];this.W=null;this.T=0;this.V=[];this.D=!1;this.X="";this.U=-1}; qb0=function(A){var L=A.V;A.V=[];return L}; Pd6=function(){this.U=[];this.N=null;this.W={};this.V={}}; zsS=function(A,L){var B=[];L=Array.from(L.getElementsByTagName("SegmentTimeline"));L=g.m(L);for(var f=L.next();!f.done;f=L.next()){f=f.value;var K=f.parentNode.parentNode,V=null;K.nodeName==="Period"?V=xSE(A):K.nodeName==="AdaptationSet"?(K=K.getAttribute("id")||K.getAttribute("mimetype")||"",V=ese(A,K)):K.nodeName==="Representation"&&(K=K.getAttribute("id")||"",V=nmk(A,K));if(V==null)return;V.update(f);g.VB(B,qb0(V))}g.VB(A.U,B);Afv(A.U,function(J){return J.startSecs*1E3+J.N})}; uwQ=function(A){A.N&&(A.N.N=[]);g.H6(A.W,function(L){L.N=[]}); g.H6(A.V,function(L){L.N=[]})}; xSE=function(A){A.N||(A.N=new p3);return A.N}; ese=function(A,L){A.W[L]||(A.W[L]=new p3);return A.W[L]}; nmk=function(A,L){A.V[L]||(A.V[L]=new p3);return A.V[L]}; jl=function(A){var L=A===void 0?{}:A;A=L.oC===void 0?0:L.oC;var B=L.CO===void 0?!1:L.CO;var f=L.xH===void 0?0:L.xH;var K=L.F3===void 0?0:L.F3;var V=L.lW===void 0?Infinity:L.lW;var J=L.T2===void 0?0:L.T2;var R=L.SD===void 0?!1:L.SD;L=L.gF===void 0?!1:L.gF;g.Lq.call(this);this.Od=this.Jj=-1;this.So=A;this.xH=f;this.CO=B;this.F3=K;this.lW=V;this.T2=J;((this.SD=R)||isFinite(V)&&this.lW>0)&&B&&ys&&(this.W=!1,this.V="postLive");this.gF=L}; gR=function(A,L){return Dw(A.segments,function(B){return L-B.XD})}; GW=function(A,L,B){B=B===void 0?{}:B;dR.call(this,A,L,"",void 0,void 0,B.oC||0);this.index=new jl(B)}; rR=function(A,L,B){z5.call(this,A,L);this.D=B;A=this.index=new g.Lq;A.W=!1;A.V="d"}; aT7=function(A,L,B){var f=A.index.pU(L),K=A.index.getStartTime(L),V=A.index.getDuration(L);B?V=B=0:B=A.info.lC*V;return new ZY([new Bp(3,A,void 0,"otfCreateRequestInfoForSegment",L,K,V,0,B)],f)}; AT6=function(A,L){if(!A.index.isLoaded()){var B=[],f=L.U;L=L.D.split(",").filter(function(F){return F.length>0}); for(var K=0,V=0,J=0,R=/^(\d+)/,Z=/r=(\d+)/,N=0;N0&&(K.N=Math.min(K.N+J,10),K.W=V);K.N>0?(K.N--,K=!0):K=!1;if(K)typeof f==="function"&&(f=f()),console.log("plyr."+L,f);else{var R;f=((R=Vov.get(L))!=null?R:0)+1;Vov.set(L,f);f%100===1&&console.warn("plyr","plyr."+L+" is chatty, dropping logs.")}}}; KPD=function(){this.N=10;this.W=Date.now()}; hL=function(A,L){this.info=A;this.W=L;this.N=null;this.U=this.V=-1;this.timestampOffset=0;this.isLocked=this.T=!1;this.D=this.info.b1.mE()&&!this.info.N}; g.b7=function(A){return sIQ(A.W)}; JTL=function(A,L){L=Math.min(L,A.info.W);var B=A.W.split(L),f=B.Mz;B=new hL(new Bp(A.info.type,A.info.b1,A.info.range,A.info.T,A.info.XD,A.info.startTime,A.info.duration,A.info.N,L,!1,A.info.Gb,A.info.clipId),B.NJ);B.U=A.U;B.V=A.V;L=new hL(new Bp(A.info.type,A.info.b1,A.info.range,A.info.T,A.info.XD,A.info.startTime,A.info.duration,A.info.N+L,A.info.W-L,A.info.V,A.info.Gb,A.info.clipId),f);L.U=A.U;L.V=A.V;return[B,L]}; g.tL=function(A,L,B,f){B=B===void 0?!1:B;f=f===void 0?0:f;if(A.isLocked||L.isLocked||!Vs(A.info,L.info)||A.info.V)return null;if(f){if(A.W.totalLength+L.W.totalLength>f)return null}else if(B&&(B=A.W,f=L.W,B=!(f.N.length?GPQ(B,f.N[0]):1)),B)return null;B=new Bp(A.info.type,A.info.b1,A.info.range,A.info.T,A.info.XD,A.info.startTime,A.info.duration,A.info.N,A.info.W,A.info.V,A.info.Gb,A.info.clipId);f=L.info;B.W+=f.W;B.range&&(B.X+=f.X);B.D=f.D;B.V=f.V;f=new FK;DF(f,A.W);DF(f,L.W);B=new hL(B,f);B.N!= null&&L.N!=null&&g.Hp("dash",414627957,"merged slice emsg overridden; prev: "+B.N.UK()+" next: "+L.N.UK());B.N=L.N||A.N;B.V=A.V!==-1?A.V:L.V;B.U=A.U!==-1?A.U:L.U;return B}; g.k6=function(A){g.U2(A.info.b1.info)||A.info.b1.info.qU();if(A.V!==-1)return A.V;if(A.N&&LD6(A.N))return A.V=LD6(A.N),A.V;if(g.U2(A.info.b1.info)){var L=g.b7(A);for(var B=A.info.b1.N,f=NaN,K=NaN,V=0;yj(L,V);){var J=jz(L,V);J.type===1936286840?K=J.data.getUint32(J.dataOffset+8):J.type===1836476516?K=g.Is(J):J.type===1952867444&&isNaN(f)&&(f=g.G5(J));V=gD(J.type)?V+8:V+J.size}!K&&B&&(K=wD(B));L=f/K}else L=new Hq(g.b7(A)),B=A.D?L:new Hq(new DataView(A.info.b1.N.buffer)),f=O9(B),B=L.pos,L.pos=0,E9(L)? kK(L,231)?(f=md(L)*f/1E9,L.pos=B,L=f):(L.pos=B,L=NaN):(L.pos=B,L=NaN);A.V=L||A.info.U;return A.V}; Rov=function(A,L){A.timestampOffset>0&&(L-=A.timestampOffset);var B=g.k6(A)+L;S28(A,B);A.timestampOffset=L}; S28=function(A,L){g.U2(A.info.b1.info)||A.info.b1.info.qU();A.V=L;if(g.U2(A.info.b1.info)){var B=g.b7(A);A=A.info.b1.N;for(var f=NaN,K=NaN,V=0;yj(B,V);){var J=jz(B,V);isNaN(f)&&(J.type===1936286840?f=J.data.getUint32(J.dataOffset+8):J.type===1836476516&&(f=g.Is(J)));if(J.type===1952867444){!f&&A&&(f=wD(A));var R=g.G5(J);isNaN(K)&&(K=Math.round(L*f)-R);var Z=J;R+=K;if(Z.data.getUint8(Z.dataOffset)){var N=Z.data;Z=Z.dataOffset+4;N.setUint32(Z,Math.floor(R/4294967296));N.setUint32(Z+4,R&4294967295)}else Z.data.setUint32(Z.dataOffset+ 4,R)}V=gD(J.type)?V+8:V+J.size}return!0}B=new Hq(g.b7(A));A=A.D?B:new Hq(new DataView(A.info.b1.N.buffer));f=O9(A);A=B.pos;B.pos=0;if(E9(B)&&kK(B,231))if(K=T5(B,!0),L=Math.floor(L*1E9/f),Math.ceil(Math.log(L)/Math.log(2)/8)>K)L=!1;else{for(f=K-1;f>=0;f--)B.N.setUint8(B.pos+f,L&255),L>>>=8;B.pos=A;L=!0}else L=!1;return L}; l7=function(A,L){L=L===void 0?!1:L;var B=TW(A);A=L?0:A.info.X;return B||A}; TW=function(A){g.U2(A.info.b1.info)||A.info.b1.info.qU();if(A.N&&A.info.type===6)return A.N.oC;if(g.U2(A.info.b1.info)){var L=g.b7(A);var B=0;L=g.s9(L,1936286840);L=g.m(L);for(var f=L.next();!f.done;f=L.next())f=RsL(f.value),B+=f.zl[0]/f.timescale;B=B||NaN;if(!(B>=0))a:{B=g.b7(A);L=A.info.b1.N;for(var K=f=0,V=0;yj(B,f);){var J=jz(B,f);if(J.type===1836476516)K=g.Is(J);else if(J.type===1836019558){!K&&L&&(K=wD(L));if(!K){B=NaN;break a}var R=pq(J.data,J.dataOffset,1953653094),Z=R;R=K;var N=pq(Z.data, Z.dataOffset,1952868452);Z=pq(Z.data,Z.dataOffset,1953658222);var F=Kq(N);Kq(N);F&2&&Kq(N);N=F&8?Kq(N):0;var D=Kq(Z),I=D&1;F=D&4;var d=D&256,w=D&512,r=D&1024;D&=2048;var h=Vj(Z);I&&Kq(Z);F&&Kq(Z);for(var Q=I=0;Q2048?"":L.indexOf("https://")===0?L:""}; XV=function(A,L,B){L.match(ga7);return A(L,B).then(function(f){var K=g.jTv(f.xhr);return K?XV(A,K,B):f.xhr})}; MP=function(A,L,B){A=A===void 0?"":A;L=L===void 0?null:L;B=B===void 0?!1:B;g.SN.call(this);var f=this;this.sourceUrl=A;this.isLivePlayback=B;this.Ex=this.duration=0;this.isPremiere=this.SD=this.U=this.isLiveHeadPlayable=this.isLive=this.W=!1;this.lW=this.F3=0;this.isOtf=this.iC=!1;this.S4=(0,g.bc)();this.qp=Infinity;this.N={};this.V=new Map;this.state=this.zy=0;this.X=null;this.isManifestless=!1;this.ZM=[];this.D=null;this.wT=0;this.T="";this.JF=NaN;this.SO=this.E0=this.timestampOffset=this.G=0;this.F9= this.CK=NaN;this.HY=0;this.Ys=this.Wn=!1;this.Cr=[];this.sx={};this.Vj=NaN;this.GV={Yk4:function(R){OI(f,R)}}; var K;this.cn=(K=L)==null?void 0:K.GL("html5_use_network_error_code_enums");GvE=!!L&&L.GL("html5_modern_vp9_mime_type");var V;EI=!((V=L)==null||!V.GL("html5_enable_flush_during_seek"))&&g.ng();var J;cp=!((J=L)==null||!J.GL("html5_enable_reset_audio_decoder"))&&g.ng()}; rTe=function(A){return g.gy(A.N,function(L){return!!L.info.video&&L.info.video.qualityOrdinal>=2160})}; vGE=function(A){return g.gy(A.N,function(L){return!!L.info.video&&L.info.video.isHdr()})}; PZ=function(A){return g.gy(A.N,function(L){return!!L.info.Zj})}; g.sT8=function(A){return g.gy(A.N,function(L){return xa(L.info.mimeType)})}; H$k=function(A){return g.gy(A.N,function(L){return L.info.video?L.info.video.projectionType==="EQUIRECTANGULAR":!1})}; ho8=function(A){return g.gy(A.N,function(L){return L.info.video?L.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; b$0=function(A){return g.gy(A.N,function(L){return L.info.video?L.info.video.projectionType==="MESH":!1})}; to6=function(A){return g.gy(A.N,function(L){return L.info.video?L.info.video.stereoLayout===1:!1})}; kvQ=function(A){return KtL(A.N,function(L){return L.info.video?L.dn():!0})}; WZ=function(A){return g.gy(A.N,function(L){return k7(50,L.wi.N)})}; OI=function(A,L){A.N[L.info.id]=L;A.V.set(un(L,A.iC),L)}; Wp=function(A,L,B){B=B===void 0?0:B;var f=A.mimeType||"",K=A.itag;var V=A.xtags;K=K?K.toString():"";V&&(K+=";"+V);V=K;if(PV(f)){var J=A.width||640;K=A.height||360;var R=A.fps,Z=A.qualityLabel,N=A.qualityOrdinal,F=A.colorInfo,D=A.projectionType,I;A.stereoLayout&&(I=TN0[A.stereoLayout]);var d=pVQ(A)||void 0;if(F==null?0:F.primaries)var w=l2e[F.primaries]||void 0;J=new Tv(J,K,R,D,I,void 0,Z,N&&mbQ[N],d,w);f=Y6(f,J,Qu[A.itag||""]);EI&&(f+="; enableflushduringseek=true");cp&&(f+="; enableresetaudiodecoder=true")}var r; if(qb(f)){var h=A.audioSampleRate;I=A.audioTrack;h=new IT(h?+h:void 0,A.audioChannels,A.spatialAudioType,A.isDrc,A.loudnessDb,A.trackAbsoluteLoudnessLkfs,A.audioQuality||"AUDIO_QUALITY_UNKNOWN",A.isVb);I&&(w=I.displayName,K=I.id,R=I.audioIsDefault,I=I.isAutoDubbed,w&&(r=new g.$6(w,K||"",!!R,!!I)))}var Q;A.captionTrack&&(Z=A.captionTrack,I=Z.displayName,w=Z.vssId,K=Z.languageCode,R=Z.kind,Z=Z.id,I&&w&&K&&(Q=new I26(I,w,K,R,A.xtags,Z)));I=Number(A.bitrate)/8;w=Number(A.contentLength);K=Number(A.lastModified); Z=A.drmFamilies;R=A.type;B=B&&w?w/B:0;A=Number(A.approxDurationMs);if(L&&Z){var l={};Z=g.m(Z);for(N=Z.next();!N.done;N=Z.next())(N=UI[N.value])&&(l[N]=L[N])}return new C$(V,f,{audio:h,video:J,ri:r,Zj:l,lC:I,xS:B,contentLength:w,lastModified:K,captionTrack:Q,streamType:R,approxDurationMs:A})}; vp=function(A,L,B){B=B===void 0?0:B;var f=A.type;var K=A.itag;var V=A.xtags;V&&(K=A.itag+";"+V);if(PV(f)){var J=(A.size||"640x360").split("x");J=new Tv(+J[0],+J[1],+A.fps,A.projection_type,+A.stereo_layout,void 0,A.quality_label,+A.quality_ordinal,A.eotf,A.primaries);f=Y6(f,J,Qu[A.itag]);EI&&(f+="; enableflushduringseek=true");cp&&(f+="; enableresetaudiodecoder=true")}var R;if(qb(f)){var Z=new IT(+A.audio_sample_rate||void 0,+A.audio_channels||0,A.spatial_audio_type,!!A.drc);A.name&&(R=new g.$6(A.name, A.audio_track_id,A.isDefault==="1",A.isAutoDubbed==="1"))}var N;A.caption_display_name&&A.caption_vss_id&&A.caption_language_code&&(N=new I26(A.caption_display_name,A.caption_vss_id,A.caption_language_code,A.caption_kind,A.xtags,A.caption_id));V=Number(A.bitrate)/8;var F=Number(A.clen),D=Number(A.lmt);B=B&&F?F/B:0;if(L&&A.drm_families){var I={};for(var d=g.m(A.drm_families.split(",")),w=d.next();!w.done;w=d.next())w=w.value,I[w]=L[w]}return new C$(K,f,{audio:Z,video:J,ri:R,Zj:I,lC:V,xS:B,contentLength:F, lastModified:D,captionTrack:N,streamType:A.stream_type,approxDurationMs:Number(A.approx_duration_ms)})}; QTk=function(A){return K9(A,function(L){return"FORMAT_STREAM_TYPE_OTF"===L.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; CQ0=function(A){return K9(A,function(L){return"FORMAT_STREAM_TYPE_OTF"===L.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; i$v=function(A,L){return A.X?JO(A.X.U,L):A.ZM.length?JO(A.ZM,L):[]}; qP=function(A,L,B){L=L===void 0?"":L;B=B===void 0?"":B;A=new g.Fk(A,!0);A.set("alr","yes");B&&(B=sD(20,decodeURIComponent(B)),A[S[18]](L,encodeURIComponent(B)));return A}; Eaw=function(A,L){var B=Ip(L,"id");B=B.replace(":",";");var f=Ip(L,"mimeType"),K=Ip(L,"codecs");f=K?f+'; codecs="'+K+'"':f;K=Number(Ip(L,"bandwidth"))/8;var V=Number(wR(L,"BaseURL").getAttribute(A.T+":contentLength")),J=A.duration&&V?V/A.duration:0;if(PV(f)){var R=Number(Ip(L,"width"));var Z=Number(Ip(L,"height")),N=Number(Ip(L,"frameRate")),F=$b6(Ip(L,A.T+":projectionType"));a:switch(Ip(L,A.T+":stereoLayout")){case "layout_left_right":var D=1;break a;case "layout_top_bottom":D=2;break a;default:D= 0}R=new Tv(R,Z,N,F,D)}if(qb(f)){var I=Number(Ip(L,"audioSamplingRate"));var d=Number(Ip(L.getElementsByTagName("AudioChannelConfiguration")[0],"value"));Z=XVS(Ip(L,A.T+":spatialAudioType"));I=new IT(I,d,Z);a:{d=Ip(L,"lang")||"und";if(Z=wR(L,"Role"))if(F=Ip(Z,"value")||"",g.kg(O$C,F)){Z=d+"."+O$C[F];N=F==="main";A=Ip(L,A.T+":langName")||d+" - "+F;d=new g.$6(A,Z,N);break a}d=void 0}}if(L=wR(L,"ContentProtection"))if(L.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var w={};for(L= L.firstChild;L!=null;L=L.nextSibling)L instanceof Element&&/SystemURL/.test(L.nodeName)&&(A=L.getAttribute("type"),Z=L.textContent,A&&Z&&(w[A]=Z.trim()))}else w=void 0;return new C$(B,f,{audio:I,video:R,ri:d,Zj:w,lC:K,xS:J,contentLength:V})}; $b6=function(A){switch(A){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"}}; XVS=function(A){switch(A){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"}}; MoQ=function(A,L){L=L===void 0?"":L;A.state=1;A.S4=(0,g.bc)();return yT7(L||A.sourceUrl).then(function(B){if(!A.TL()){A.zy=B.status;B=B.responseText;var f=new DOMParser;B=W5(f,ImC(B),"text/xml").getElementsByTagName("MPD")[0];A.qp=WD0(Ip(B,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(B.attributes){f=g.m(B.attributes);for(var K=f.next();!K.done;K=f.next())if(K=K.value,K.value==="http://youtube.com/yt/2012/10/10"){f=K.name.split(":")[1];break b}}f=""}A.T=f;A.isLive=A.qp=A.qp}; cT7=function(A){var L=A.qp;isFinite(L)&&(Pp(A)?A.refresh():(L=Math.max(0,A.S4+L-(0,g.bc)()),A.D||(A.D=new g.aa(A.refresh,L,A),g.W(A,A.D)),A.D.start(L)))}; Ubv=function(A){A=A.N;for(var L in A){var B=A[L].index;if(B.isLoaded())return B.uq()+1}return 0}; x6=function(A){return A.E0?A.E0-(A.G||A.timestampOffset):0}; el=function(A){return A.SO?A.SO-(A.G||A.timestampOffset):0}; n3=function(A){if(!isNaN(A.JF))return A.JF;var L=A.N,B;for(B in L){var f=L[B].index;if(f.isLoaded()&&!xa(L[B].info.mimeType)){L=0;for(B=f.OI();B<=f.uq();B++)L+=f.getDuration(B);L/=f.gW();L=Math.round(L/.5)*.5;f.gW()>10&&(A.JF=L);return L}if(A.isLive&&(f=L[B],f.oC))return f.oC}return NaN}; WP0=function(A,L){A=Jf8(A.N,function(f){return f.index.isLoaded()}); if(!A)return NaN;A=A.index;var B=A.NV(L);return A.getStartTime(B)===L?L:B=0&&K.segments.splice(V,1)}}}; q20=function(A){for(var L in A.N)xa(A.N[L].info.mimeType)||nGv(A.N[L].index,Infinity)}; ap=function(A,L,B){for(var f in A.N){var K=A.N[f].index,V=L,J=B;K.CO&&(V&&(K.Jj=Math.max(K.Jj,V)),J&&(K.Od=Math.max(K.Od||0,J)))}B&&(A.Vj=B/1E3)}; PQy=function(A){A.SO=0;A.E0=0;A.HY=0}; A7=function(A){return A.Ys&&A.isManifestless?A.isLiveHeadPlayable:A.isLive}; Y6=function(A,L,B){LM===null&&(LM=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(GvE&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return LM||B!=="9"&&B!=="("?LM||B!=="9h"&&B!=="(h"||(A='video/webm; codecs="vp9.2"'):A='video/webm; codecs="vp9"',A;if(!LM&&!oj||A!=='video/webm; codecs="vp9"'&&A!=='video/webm; codecs="vp9.2"')return A; B="00";var f="08",K="01",V="01",J="01";A==='video/webm; codecs="vp9.2"'&&(B="02",f="10",L.primaries==="bt2020"&&(J=K="09"),L.N==="smpte2084"&&(V="16"),L.N==="arib-std-b67"&&(V="18"));return'video/webm; codecs="'+["vp09",B,"51",f,"01",K,V,J,"00"].join(".")+'"'}; fM=function(A,L,B){A=""+A+(L>49?"p60":L>32?"p48":"");L=t2()[A];if(L!=null&&L>0)return L;L=BL.get(A);if(L!=null&&L>0)return L;B=B==null?void 0:B.get(A);return B!=null&&B>0?B:8192}; nae=function(A){this.tF=A;this.TZ=this.DZ=this.S4=this.D=this.U=this.ZM=this.sx=this.Wn=!1;this.X=this.T=0;this.Nl=!1;this.qp=!0;this.Ox=!1;this.Tb=0;this.Os=this.wT=!1;this.nD=!0;this.Cr=this.Ex=!1;this.W={};this.jI=this.zV=this.k6=this.disableAv1=this.mH=this.LD=this.ql=this.Uv=this.N=this.G=!1;this.Vj=0;this.m1=this.tF.J("html5_disable_aac_preference");this.N8=Infinity;this.JF=0;this.Pz=this.tF.hw();this.KY=this.tF.experiments.GL("html5_enable_vp9_fairplay");this.a8=this.tF.J("html5_force_av1_for_testing"); this.Po=this.tF.Qf().N.Iv(xbe);this.cn=g.Am(this.tF.experiments,"html5_av1_ordinal_cap");this.jD=this.tF.J("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.WR=this.tF.J("html5_account_onesie_format_selection_during_format_filter");this.lC=g.Am(this.tF.experiments,"html5_max_byterate");this.t$=this.tF.J("html5_enable_iamf_audio");this.Ys=this.tF.experiments.GL("html5_allow_capability_merge");this.o4=this.tF.Qf().N.Iv(eoS);this.GZ=this.tF.J("html5_enable_encrypted_av1")}; qZw=function(A){if(A.sx)return["f"];if(g.xz("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var L=["9h","9","h","8"];A.GZ&&L.push("1e");L=L.concat(["(h","(","H","*"]);A.wT&&(L.unshift("1"),L.unshift("1h"));A.DZ&&L.unshift("h");A.yj&&(L=(zoE[A.yj]||[A.yj]).concat(L));return L}; EG0=function(A){var L=["o","a","A"];A.JF===1&&(A.U&&(L=["mac3","MAC3"].concat(L)),A.D&&(L=["meac3","MEAC3"].concat(L)),A.t$&&(L=["i","I"].concat(L)));A.Wn&&(L=["so","sa"].concat(L));!A.TZ||A.S4||A.V||A.m1||L.unshift("a");A.V&&(L=(zoE[A.V]||[A.V]).concat(L));return L}; KM=function(A,L,B,f){L=L===void 0?{}:L;if(f===void 0?0:f)return L.disabled=1,0;if(u6(A.D,a4.AV1_CODECS)&&u6(A.D,a4.HEIGHT)&&u6(A.D,a4.BITRATE))return L.isCapabilityUsable=1,8192;try{var K=ymC();if(K&&!A.J("disable_av1_setting"))return L.localPref=K}catch(R){}f=1080;K=navigator.hardwareConcurrency;K<=2&&(f=480);L.coreCount=K;if(K=g.Am(A.experiments,"html5_default_av1_threshold"))f=L["default"]=K;if(A=A.D.Wn)L.mcap=A,f=Math.max(f,A);if(B){var V,J;if(A=(V=B.videoInfos.find(function(R){return Mb(R)}))== null?void 0:(J=V.W)==null?void 0:J.powerEfficient)f=8192,L.isEfficient=1; B=B.videoInfos[0].video;V=Math.min(fM("1",B.fps),fM("1",30));L.perfCap=V;f=Math.min(f,V);B.isHdr()&&!A&&(L.hdr=1,f*=.75)}else B=fM("1",30),L.perfCap30=B,f=Math.min(f,B),B=fM("1",60),L.perfCap60=B,f=Math.min(f,B);return L.av1Threshold=f}; VN=function(A,L,B,f){this.flavor=A;this.keySystem=L;this.W=B;this.experiments=f;this.N={};this.xf=this.keySystemAccess=null;this.Ub=this.wV=-1;this.LL=null;this.V=!!f&&f.GL("edge_nonprefixed_eme");f&&f.GL("html5_enable_vp9_fairplay")}; Sx=function(A){return A.V?!1:!A.keySystemAccess&&!!J7()&&A.keySystem==="com.microsoft.playready"}; Rj=function(A){return A.keySystem==="com.microsoft.playready"}; ZA=function(A){return!A.keySystemAccess&&!!J7()&&A.keySystem==="com.apple.fps.1_0"}; NM=function(A){return A.keySystem==="com.youtube.fairplay"}; F5=function(A){return A.keySystem==="com.youtube.fairplay.sbdl"}; g.DA=function(A){return A.flavor==="fairplay"}; J7=function(){var A=window,L=A.MSMediaKeys;aM()&&!L&&(L=A.WebKitMediaKeys);return L&&L.isTypeSupported?L:null}; Ij=function(A){return navigator.requestMediaKeySystemAccess?g.Z2&&!g.ng()?kC("45"):g.ns||g.pK?A.GL("edge_nonprefixed_eme"):g.de?kC("47"):g.yw&&A.GL("html5_enable_safari_fairplay")?!1:!0:!1}; u26=function(A,L,B,f){var K=zc(),V=(B=K||B&&aM())?["com.youtube.fairplay"]:["com.widevine.alpha"];L&&V.unshift("com.youtube.widevine.l3");K&&f&&V.unshift("com.youtube.fairplay.sbdl");return B?V:A?[].concat(g.x7(V),g.x7(we.playready)):[].concat(g.x7(we.playready),g.x7(V))}; pM=function(A,L,B,f,K){f=f===void 0?!1:f;g.Y.call(this);this.tF=L;this.useCobaltWidevine=f;this.Hn=K;this.W=[];this.V={};this.N={};this.callback=null;this.D=!1;this.U=[];this.initialize(A,!B)}; AAv=function(A,L){A.callback=L;A.U=[];Ij(A.tF.experiments)?yN(A):a27(A)}; yN=function(A){if(!A.TL())if(A.W.length===0)A.callback(A.U);else{var L=A.W[0],B=A.V[L],f=LaL(A,B);if(jx&&jx.keySystem===L&&jx.c_n===JSON.stringify(f))A.Hn("remksa",{re:!0}),oF6(A,B,jx.keySystemAccess);else{var K,V;A.Hn("remksa",{re:!1,ok:(V=(K=jx)==null?void 0:K.keySystem)!=null?V:""});jx=void 0;navigator.requestMediaKeySystemAccess(L,f).then(SH(function(J){oF6(A,B,J,f)}),SH(function(){A.D=!A.D&&A.V[A.W[0]].flavor==="widevine"; A.D||A.W.shift();yN(A)}))}}}; oF6=function(A,L,B,f){if(!A.TL()){f&&(jx={keySystem:L.keySystem,keySystemAccess:B,c_n:JSON.stringify(f)});L.keySystemAccess=B;if(Rj(L)){B=So();f=g.m(Object.keys(A.N[L.flavor]));for(var K=f.next();!K.done;K=f.next())K=K.value,L.N[K]=!!B.canPlayType(K)}else{B=L.keySystemAccess.getConfiguration();if(B.audioCapabilities)for(f=g.m(B.audioCapabilities),K=f.next();!K.done;K=f.next())L.N[K.value.contentType]=!0;if(B.videoCapabilities)for(B=g.m(B.videoCapabilities),f=B.next();!f.done;f=B.next())L.N[f.value.contentType]= !0}A.U.push(L);A.useCobaltWidevine||A.J("html5_enable_vp9_fairplay")&&F5(L)?(A.W.shift(),yN(A)):A.callback(A.U)}}; LaL=function(A,L){var B={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(A.J("html5_enable_vp9_fairplay")&&NM(L))return B.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),B.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[B];Rj(L)&&(B.initDataTypes=["keyids","cenc"]);for(var f=g.m(Object.keys(A.N[L.flavor])),K=f.next();!K.done;K=f.next()){K=K.value;var V=K.indexOf("audio/")===0,J=V?B.audioCapabilities:B.videoCapabilities;L.flavor!== "widevine"||A.D?J.push({contentType:K}):V?J.push({contentType:K,robustness:"SW_SECURE_CRYPTO"}):(g.Z2&&g.xz("windows nt")&&!A.J("html5_drm_enable_moho")||J.push({contentType:K,robustness:"HW_SECURE_ALL"}),V=K,A.tF.D.W&&K.includes("vp09")&&(V=K+"; experimental=allowed"),J.push({contentType:V,robustness:"SW_SECURE_DECODE"}),ge(A.tF)==="MWEB"&&(Kn()||ek())&&(A.Hn("swcrypto",{}),J.push({contentType:K,robustness:"SW_SECURE_CRYPTO"})))}return[B]}; a27=function(A){if(J7()&&(g.yw||Ln))A.U.push(new VN("fairplay","com.apple.fps.1_0","",A.tF.experiments));else{var L=Bz1(),B=g.Pw(A.W,function(f){var K=A.V[f],V=!1,J=!1,R;for(R in A.N[K.flavor])L(R,f)&&(K.N[R]=!0,V=V||R.indexOf("audio/")===0,J=J||R.indexOf("video/")===0);return V&&J}); B&&A.U.push(A.V[B]);A.W=[]}A.callback(A.U)}; Bz1=function(){var A=J7();if(A){var L=A.isTypeSupported;return function(f,K){return L(K,f)}}var B=So(); return B&&(B.addKey||B.webkitAddKey)?function(f,K){return!!B.canPlayType(f,K)}:function(){return!1}}; GM=function(A){var L;A=Vh((L=A.serializedClientExperimentFlags)!=null?L:"","&");this.flags=new Map(Object.entries(A).map(function(B){var f=g.m(B);B=f.next().value;f=f.next().value;return typeof f==="string"?[B,f]:[B,f[0]]}))}; JAD=function(A,L){switch(L.fk){case "bool":return A.GL(L.Ha);case "int":return A=fLQ(A,L.Ha),d6(A);case "double":return fLQ(A,L.Ha);case "string":return Ka7(A,L.Ha);case "int32_list":return VeD(A,L.Ha);case "int64_list":return VeD(A,L.Ha).map(function(B){return d6(B)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; fLQ=function(A,L){A=A.flags.get(""+L);return Number(A)||0}; VeD=function(A,L){if(A=A.flags.get(""+L))if(A=A.replace(/\[ *(.*?) *\]/,"$1"))return A.split(",").map(Number);return[]}; Ka7=function(A,L){return(A=A.flags.get(""+L))?A.toString():""}; re=function(A,L,B){this.N=void 0;this.experimentIds=A?A.split(","):[];this.flags=Vh(L||"","&");A={};L=g.m(this.experimentIds);for(var f=L.next();!f.done;f=L.next())A[f.value]=!0;this.experiments=A;B=new GM(B);this.V=new mnk(B);this.W=new lk7(B)}; g.Am=function(A,L,B){B=B===void 0?0:B;A=A.Iv(L);JSON.stringify(A);return A===void 0?B:Number(A)}; var s0y=function(A,L,B,f,K,V,J,R){return bL[S[2]](this,16,A,L,B,f,K,V,J,R)}; sR=function(A,L){return(A=A.Iv(L))?A.toString():""}; SJ6=function(A){if(A=A.Iv("html5_web_po_experiment_ids"))if(A=A.replace(/\[ *(.*?) *\]/,"$1"))return A.split(",").map(Number);return[]}; RE1=function(A){if(A.N)return A.N;if(A.experimentIds.length<=1)return A.N=A.experimentIds,A.N;var L=[].concat(g.x7(A.experimentIds)).map(function(f){return Number(f)}); L.sort();for(var B=L.length-1;B>0;--B)L[B]-=L[B-1];A.N=L.map(function(f){return f.toString()}); A.N.unshift("v1");return A.N}; Nzy=function(A){return ZWv.then(A)}; HL=function(A,L,B){this.experiments=A;this.Vj=L;this.ZM=B===void 0?!1:B;this.G=!!g.bB("cast.receiver.platform.canDisplayType");this.X={};this.yj=!1;this.V=new Map;this.T=!0;this.N=this.W=!1;this.Wn=0;this.qp=this.experiments.GL("html5_disable_vp9_encrypted");this.U=this.experiments.GL("html5_enable_encrypted_av1");A=g.bB("cast.receiver.platform.getValue");this.D=!this.G&&A&&A("max-video-resolution-vpx")||null;FaQ(this);this.W=!!(zc()&&P7()>=21)}; eD8=function(A,L,B){B=B===void 0?1:B;var f=L.itag;if(f==="0")return!0;var K=L.mimeType;if(L.Bn==="1e"&&!A.U)return"dav1enc";if(Mb(L)&&A.yj)return"dav1";if(L.video&&(L.video.isHdr()||L.video.primaries==="bt2020")&&!(u6(A,a4.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(f==="338"&&!(g.Z2?kC(53):g.de&&kC(64)))return"dopus";var V=B;V=V===void 0?1: V;B={};L.video&&(L.video.width&&(B[a4.WIDTH.name]=L.video.width),L.video.height&&(B[a4.HEIGHT.name]=L.video.height),L.video.fps&&(B[a4.FRAMERATE.name]=L.video.fps*V),L.video.N&&(B[a4.EOTF.name]=L.video.N),L.lC&&(B[a4.BITRATE.name]=L.lC*8*V),L.Bn==="("&&(B[a4.CRYPTOBLOCKFORMAT.name]="subsample"),L.video.projectionType==="EQUIRECTANGULAR"||L.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||L.video.projectionType==="MESH")&&(B[a4.DECODETOTEXTURE.name]="true");var J;((J=L.audio)==null?0:J.numChannels)&& L.Bn!=="i"&&L.Bn!=="I"&&(B[a4.CHANNELS.name]=L.audio.numChannels);A.W&&iQ(L)&&(B[a4.EXPERIMENTAL.name]="allowed");J=g.m(Object.keys(a4));for(V=J.next();!V.done;V=J.next()){V=a4[V.value];var R;if(R=B[V.name])if(R=!(V===a4.EOTF&&L.mimeType.indexOf("vp09.02")>0)){R=V;var Z=L;R=!(A.experiments.GL("html5_ignore_h264_framerate_cap")&&R===a4.FRAMERATE&&RiE(Z))}if(R)if(u6(A,V))if(A.D){if(A.D[V.name]1080&&L.Zj&&(K+="; hdcp=2.2");return f==="227"?"hqcenc":f!=="585"&&f!=="588"&&f!=="583"&&f!=="586"&&f!=="584"&&f!=="587"&&f!=="591"&&f!=="592"||A.experiments.GL("html5_enable_new_hvc_enc")?zc()&&P7()>=21&&g.xz("appletv5")&&(f==="410"||f==="845")?!0:A.isTypeSupported(K)?!0:"tpus":"newhvc"}; h7=function(){var A=ek()&&!kC(29),L=g.xz("google tv")&&g.xz("chrome")&&!kC(30);return A||L?!1:NK()}; DKe=function(A,L,B){var f=480;L=g.m(L);for(var K=L.next();!K.done;K=L.next()){K=K.value;var V=K.video.qualityOrdinal;V<=1080&&V>f&&eD8(A,K,B)===!0&&(f=V)}return f}; g.b9=function(A,L){L=L===void 0?!1:L;return h7()&&A.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!L&&A.canPlayType(So(),"application/x-mpegURL")?!0:!1}; ILC=function(A){dK8(function(){for(var L=g.m(Object.keys(a4)),B=L.next();!B.done;B=L.next())u6(A,a4[B.value])})}; u6=function(A,L){L.name in A.X||(A.X[L.name]=wi7(A,L));return A.X[L.name]}; wi7=function(A,L){if(A.D)return!!A.D[L.name];if(L===a4.BITRATE&&A.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!A.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(L===a4.AV1_CODECS)return A.isTypeSupported("video/mp4; codecs="+L.valid)&&!A.isTypeSupported("video/mp4; codecs="+L.cB);if(L.video){var B='video/webm; codecs="vp9"';A.isTypeSupported(B)||(B='video/mp4; codecs="avc1.4d401e"')}else B='audio/webm; codecs="opus"', A.isTypeSupported(B)||(B='audio/mp4; codecs="mp4a.40.2"');return A.isTypeSupported(B+"; "+L.name+"="+L.valid)&&!A.isTypeSupported(B+"; "+L.name+"="+L.cB)}; pi6=function(A,L){var B=0;A.V.has(L)&&(B=A.V.get(L).Ge);A.V.set(L,{Ge:B+1,FF:Math.pow(2,B+1)});A.N=!0}; MiC=function(A,L){for(var B=new Map,f=g.m(L.keys()),K=f.next();!K.done;K=f.next()){K=K.value;var V=K.split("_")[0];A.has(V)||B.set(K,L.get(K))}return B}; UR6=function(A,L,B){var f,K=((f=L.video)==null?void 0:f.fps)||0;f=A+"_"+K;var V=!!L.audio,J={itag:L.itag,Bn:A,NF:V};if(V)J.numChannels=L.audio.numChannels;else{var R=L.video;J.maxWidth=R==null?void 0:R.width;J.maxHeight=R==null?void 0:R.height;J.maxFramerate=K;J.maxBitrateBps=L.lC*8;J.uT=R==null?void 0:R.isHdr()}R=B.get(f);R?V||(L=Math.max(R.maxWidth||0,R.maxHeight||0)>Math.max(J.maxWidth||0,J.maxHeight||0)?R:J,A={itag:L.itag,Bn:A,NF:V,maxWidth:Math.max(R.maxWidth||0,J.maxWidth||0),maxHeight:Math.max(R.maxHeight|| 0,J.maxHeight||0),maxFramerate:K,uT:L.uT},A.maxBitrateBps=L.maxBitrateBps,B.set(f,A)):B.set(f,J)}; FaQ=function(A){var L;(L=navigator.mediaCapabilities)!=null&&L.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(B){B.smooth&&B.powerEfficient&&(A.Wn=2160)})}; t7=function(){g.SN.call(this);this.items={}}; ki=function(A,L){this.N=A;this.cipher=this.N.exports.AES128CTRCipher_create(L.byteOffset)}; l9=function(){this.W=this.fn=0;this.N=Array.from({length:TM.length}).fill(0)}; yAS=function(){}; jkk=function(){this.startTimeMs=(0,g.bc)();this.N=!1}; gFS=function(){this.N=new yAS}; Gu6=function(A,L,B,f){f=f===void 0?1:f;B>=0&&(L in A.N||(A.N[L]=new l9),A.N[L].bM(B,f))}; rA8=function(A,L,B,f,K){var V=(0,g.bc)(),J=K?K(L):void 0,R;K=(R=J==null?void 0:J.fn)!=null?R:1;if(K!==0){var Z;R=(Z=J==null?void 0:J.profile)!=null?Z:B;Gu6(A,R,V-f,K)}return L}; skD=function(A,L,B,f,K){if(L&&typeof L==="object"){var V=function(J){return rA8(A,J,B,f,K)}; if(eM(L))return L.then(V);if(xh(L))return A2(L,V)}return rA8(A,L,B,f,K)}; HWw=function(){}; hEv=function(A){var L=window;L.ywc||(L.ywc={});var B=L.ywc[A];if(B)return B;B={};return L.ywc[A]=B}; bW6=function(A){var L=window;L.ywc&&delete L.ywc[A]}; te6=function(A){var L=hEv(A);if(L.binP)return L.binP;L.binP=Promise.resolve().then(function(){return fetch(A)}).then(function(B){if(!B.ok)throw Error("HTTP"+B.statusText); return B.arrayBuffer()}); L.binP.then(function(B){L.bin=B},function(){bW6(A)}); return L.binP}; lLk=function(A,L){return o4(kuL,function(){var B=this;return function K(){var V,J,R;return wI(K,function(Z){switch(Z.N){case 1:g.RO(Z,2);if(!B.N)throw"wasm.ps.ns";V=A;J=yK;return Kf(Z,BZ(Tzy(B,L)),4);case 4:R=J(Z.W);if(!R)throw"wasm.ps.um";return Kf(Z,BZ(WebAssembly.instantiate(R,V)),5);case 5:return Z.return(Z.W);case 2:g.F9(Z),g.DR(Z,0)}})}()})}; Tzy=function(A,L){return o4(A,function(){var B=this;return function K(){var V,J,R,Z,N,F,D,I,d;return wI(K,function(w){switch(w.N){case 1:g.RO(w,2);V=[];J=function(){return"wasm.ps.c: ["+V.map(function(r){return'"'+r+'"'}).join(", ")+"]"}; R=hEv(L);if(R.mod)return w.return(R.mod);if(!R.modP){w.Ux(4);break}g.S5(w,5);Z=yK;return Kf(w,BZ(R.modP),7);case 7:return w.return(Z(w.W));case 5:g.NX(w),V.unshift("pcm");case 4:if((N=R.bin)||!R.binP){w.Ux(8);break}g.S5(w,9);F=yK;return Kf(w,BZ(R.binP),11);case 11:N=F(w.W);g.ZR(w,8);break;case 9:g.NX(w),V.unshift("pfb");case 8:if(N){w.Ux(12);break}g.S5(w,13);D=yK;return Kf(w,BZ(te6(L)),15);case 15:N=D(w.W);g.ZR(w,12);break;case 13:throw g.NX(w),B.N=!1,V.unshift("fb"),J();case 12:return g.S5(w,16), I=yK,Kf(w,BZ(WebAssembly.compile(N)),18);case 18:return w.return(I(w.W));case 16:d=g.NX(w),bW6(L),V.unshift("ca: "+d);case 17:throw J();case 2:g.F9(w),g.DR(w,0)}})}()})}; mKQ=function(){}; Qk8=function(){var A=this;this.proc_exit=function(){}; this.fd_write=function(L,B,f){if(!A.exports)return 1;L=new Uint32Array(A.exports.memory.buffer,B,f*2);B=[];for(var K=0;K0&&vL<=2.3;R=L?L.useNativeControls:A.use_native_controls;this.X=g.MM(this)&&this.W;Z=this.W&&!this.X;R=g.qM(this)||!J&&Sw(Z,R)?"3":"1";this.disableOrganicUi=!(L==null||!L.disableOrganicUi);Z=L?L.controlsType:A.controls;this.controlsType=this.disableOrganicUi||Z==="0"||Z===0?"0":R;this.Sb=this.W;this.color=RX("red",L?L.progressBarColor:A.color,P1L);this.Qu=this.controlsType==="3";this.zV=!this.U;this.Xp=(R=!this.zV&& !UR(this)&&!this.qp&&!this.T&&!Yi(this))&&!this.Qu&&this.controlsType==="1";this.TZ=g.PL(this)&&R&&this.controlsType==="0"&&!this.Xp&&!(L==null?0:L.embedsEnableEmc3ds);this.bA=this.IV=J;this.N8=(this.controlsType==="3"||this.W||Sw(!1,A.use_media_volume))&&!this.X;this.iD=Ln&&!g.oC(601)?!1:!0;this.gy=this.U||!1;this.O_=UR(this)?"":(this.loaderUrl||A.post_message_origin||"").substring(0,128);this.widgetReferrer=NE("",L?L.widgetReferrer:A.widget_referrer);var N;L?L.disableCastApi&&(N=!1):N=A.enablecastapi; N=!this.G||Sw(!0,N);J=!0;L&&L.disableMdxCast&&(J=!1);this.dB=this.J("enable_cast_for_web_unplugged")&&g.xi(this)&&J||g.cH(this)&&J||N&&J&&this.controlsType==="1"&&!this.W&&(UR(this)||g.PL(this)||g.ex(this));this.mL=!!window.document.pictureInPictureEnabled||F2();N=L?!!L.supportsAutoplayOverride:Sw(!1,A.autoplayoverride);this.Of=!(this.W&&!g.MM(this))&&!g.xz("nintendo wiiu")||N;this.cR=(L?!!L.enableMutedAutoplay:Sw(!1,A.mutedautoplay))&&!1;N=(UR(this)||Yi(this))&&this.playerStyle==="blazer";this.ye= L?!!L.disableFullscreen:!Sw(!0,A.fs);J=g.IX(g.nM(this))&&g.MM(this);this.Nl=!this.ye&&(N||g.rL())&&!J;this.B4=this.J("html5_picture_in_picture_logging_onresize");var F;this.y8=(F=g.Am(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?F:.33;this.zK=this.J("html5_picture_in_picture_blocking_onresize");this.a7=this.J("html5_picture_in_picture_blocking_ontimeupdate");this.Mb=this.J("html5_picture_in_picture_blocking_document_fullscreen");this.Sr=this.J("html5_picture_in_picture_blocking_standard_api"); F=ek()&&kC(58)&&!Kn();N=ed||typeof MediaSource==="undefined";this.JA=this.J("uniplayer_block_pip")&&(F||N)||this.zK||this.a7||this.Sr;F=g.MM(this)&&!this.nO;var D;L?L.disableRelatedVideos!==void 0&&(D=!L.disableRelatedVideos):D=A.rel;this.k6=F||Sw(!this.T,D);this.tI=Sw(!1,L?L.enableContentOwnerRelatedVideos:A.co_rel);this.yj=Kn()&&vL>0&&vL<=4.4?"_top":"_blank";this.b2=g.ex(this);this.M7=Sw(this.playerStyle==="blazer",L?L.enableCsiLogging:A.enablecsi);switch(this.playerStyle){case "blogger":D="bl"; break;case "discover-ads":D="dd";break;case "gmail":D="gm";break;case "gac":D="ga";break;case "ads-preview":D="ap";break;case "ads-fe":D="adfe";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":case "play-ads":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.Wn=D;this.ZM=NE("",L?L.authorizedUserIndex: A.authuser);this.jI=g.MM(this)&&(this.KY||!xBk()||this.Ex);var I;L?L.disableWatchLater!==void 0&&(I=!L.disableWatchLater):I=A.showwatchlater;this.t$=((D=!this.jI)||!!this.ZM&&D)&&Sw(!this.qp,this.G?I:void 0);this.jD=L?L.isMobileDevice||!!L.disableKeyboardControls:Sw(!1,A.disablekb);this.loop=Sw(!1,A.loop);this.pageId=NE("",L?L.initialDelegatedSessionId:A.pageid);this.mM=Sw(!0,A.canplaylive);this.Ai=this.experiments.GL("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.I7=Sw(!1,A.livemonitor); this.disableSharing=Sw(this.T,L?L.disableSharing:A.ss);(I=L&&this.J("fill_video_container_size_override_from_wpcc")?L.videoContainerOverride:A.video_container_override)?(D=I.split("x"),D.length!==2?I=null:(I=Number(D[0]),D=Number(D[1]),I=isNaN(I)||isNaN(D)||I*D<=0?null:new g.Sr(I,D))):I=null;this.YH=I;this.mute=L?!!L.startMuted:Sw(!1,A.mute);this.storeUserVolume=!this.mute&&Sw(this.controlsType!=="0",L?L.storeUserVolume:A.store_user_volume);I=L?L.annotationsLoadPolicy:A.iv_load_policy;this.annotationsLoadPolicy= this.controlsType==="3"?3:RX(void 0,I,zM);this.captionsLanguagePreference=L?L.captionsLanguagePreference||"":NE("",A.cc_lang_pref);I=RX(2,L?L.captionsLanguageLoadPolicy:A.cc_load_policy,zM);this.controlsType==="3"&&I===2&&(I=3);this.e8=I;this.nD=L?L.hl||"en_US":NE("en_US",A.hl);this.region=L?L.contentRegion||"US":NE("US",A.cr);this.hostLanguage=L?L.hostLanguage||"en":NE("en",A.host_language);this.JV=!this.KY&&Math.random()=0&&A0&&A.fu&&(f.sort(),g.CE(new g.iL("Player client parameters changed after startup",f)));A.userAge=ZG(A.userAge,L.user_age);A.BR=NE(A.BR,L.user_display_email);A.userDisplayImage=NE(A.userDisplayImage,L.user_display_image);g.MR(A.userDisplayImage)||(A.userDisplayImage= "");A.userDisplayName=NE(A.userDisplayName,L.user_display_name);A.iW=NE(A.iW,L.user_gender);A.csiPageType=NE(A.csiPageType,L.csi_page_type);A.csiServiceName=NE(A.csiServiceName,L.csi_service_name);A.M7=Sw(A.M7,L.enablecsi);A.pageId=NE(A.pageId,L.pageid);if(B=L.enabled_engage_types)A.enabledEngageTypes=new Set(B.split(","));L.living_room_session_po_token&&(A.mC=L.living_room_session_po_token.toString())}; oo=function(A,L){return!A.T&&ek()&&kC(55)&&A.controlsType==="3"&&!L}; g.BN=function(A){A=u9(A.vI);return A==="www.youtube-nocookie.com"?"www.youtube.com":A}; fo=function(A,L,B){return A.protocol+"://i1.ytimg.com/vi/"+L+"/"+(B||"hqdefault.jpg")}; Ko=function(A){return UR(A)&&!g.xi(A)}; g.qM=function(A){return A.J("html5_local_playsinline")?Ln&&!g.oC(602)&&!("playsInline"in So()):Ln&&!A.Ji||g.xz("nintendo wiiu")?!0:!1}; ge=function(A){return A.N.c}; g.wY=function(A){return/^TVHTML5/.test(ge(A))}; V3=function(A){return ge(A)==="TVHTML5"}; YJ8=function(A){return ge(A)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; eEC=function(A){return A.N.cmodel==="CHROMECAST ULTRA/STEAK"||A.N.cmodel==="CHROMECAST/STEAK"}; g.J$=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; I6=function(A){return/web/i.test(ge(A))}; g.SK=function(A){return ge(A).toUpperCase()==="WEB"}; A$=function(A){return ge(A)==="WEB_KIDS"}; g.xi=function(A){return ge(A)==="WEB_UNPLUGGED"}; Ro=function(A){return ge(A)==="TVHTML5_UNPLUGGED"}; g.dY=function(A){return g.xi(A)||ge(A)==="TV_UNPLUGGED_CAST"||Ro(A)}; g.cH=function(A){return ge(A)==="WEB_REMIX"}; g.Z_=function(A){return ge(A)==="WEB_MUSIC_INTEGRATIONS"}; g.Ng=function(A){return ge(A)==="WEB_EMBEDDED_PLAYER"}; g.D_=function(A){return(A.deviceIsAudioOnly||!g.Z2||ed||A.controlsType==="3"?!1:g.fn?A.U&&g.oC(51):!0)||(A.deviceIsAudioOnly||!g.de||ed||A.controlsType==="3"?!1:g.fn?A.U&&g.oC(48):g.oC(38))||(A.deviceIsAudioOnly||!g.ER||ed||A.controlsType==="3"?!1:g.fn?A.U&&g.oC(37):g.oC(27))||!A.deviceIsAudioOnly&&g.F1&&!ut7()&&g.oC(11)||!A.deviceIsAudioOnly&&g.yw&&g.oC("604.4")}; aLv=function(A){if(g.PL(A)&&WL)return!1;if(g.de){if(!g.oC(47)||!g.oC(52)&&g.oC(51))return!1}else if(g.yw)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; LUy=function(A,L){return A.enabledEngageTypes.has(L.toString())||Ay6.includes(L)}; UR=function(A){return A.Vj==="detailpage"}; g.PL=function(A){return A.Vj==="embedded"}; dd=function(A){return A.Vj==="leanback"}; Yi=function(A){return A.Vj==="adunit"||A.playerStyle==="gvn"}; g.ex=function(A){return A.Vj==="profilepage"}; g.MM=function(A){return A.U&&g.PL(A)&&!Yi(A)&&!A.T}; Io=function(A){if(!A.userDisplayImage)return"";var L=A.userDisplayImage.split("/");if(L.length===5)return A=L[L.length-1].split("="),A[1]="s20-c",L[L.length-1]=A.join("="),L.join("/");if(L.length===8)return L.splice(7,0,"s20-c"),L.join("/");if(L.length===9)return L[7]+="-s20-c",L.join("/");g.CE(new g.iL("Profile image not a FIFE URL.",A.userDisplayImage));return A.userDisplayImage}; g.wd=function(A){var L=g.BN(A);od6.includes(L)&&(L="www.youtube.com");return A.protocol+"://"+L}; g.po=function(A,L){L=L===void 0?"":L;if(A.g$){var B=new yV,f,K=A.g$();K.signedOut?f="":K.token?f=K.token:K.pendingResult.then(function(V){K.signedOut?B.resolve(""):B.resolve(V.token)},function(V){g.CE(new g.iL("b189348328_oauth_callback_failed",{error:V})); B.resolve(L)}); return f!==void 0?OQ(f):new $z(B)}return OQ(L)}; y3=function(A,L){L=L===void 0?"":L;return A.I_?nS(!0):LP(A2(nS(g.po(A,L)),function(B){return nS(!!B)}),function(){return nS(!1)})}; Bf7=function(A){var L;return!((L=A.webPlayerContextConfig)==null||!L.enableSelfProfilingLogging)}; fN7=function(A,L){A.GZ=L;var B,f;(B=A.Pz)!=null&&(f=B.N)!=null&&(f.N=new i9(L,f.W,f.V),g.W(f,f.N));L.N?A.AU.push("asmjs"):A.AU.push("wasm")}; u9=function(A){var L=g.tW(A);return(A=Number(g.bp(A)[4]||null)||null)?L+":"+A:L}; jK=function(A,L){L=L===void 0?!1:L;var B=Qu[A],f=KU0[B],K=V$e[A];if(!K||!f)return null;L=new Tv(L?K.height:K.width,L?K.width:K.height,K.fps);f=Y6(f,L,B);return new C$(A,f,{video:L,lC:K.bitrate/8})}; S7e=function(A){var L=KU0[Qu[A]],B=JyC[A];return B&&L?new C$(A,L,{audio:new IT(B.audioSampleRate,B.numChannels)}):null}; gd=function(A){this.N=A}; Gd=function(A,L,B,f){if(B)return Xa();B={};var K=So();L=g.m(L);for(var V=L.next();!V.done;V=L.next())if(V=V.value,A.canPlayType(K,V.getInfo().mimeType)||f){var J=V.N.video.quality;if(!B[J]||B[J].getInfo().qU())B[J]=V}A=[];B.auto&&A.push(B.auto);f=g.m(lQ);for(K=f.next();!K.done;K=f.next())(K=B[K.value])&&A.push(K);return A.length?OQ(A):Xa()}; RS0=function(A){this.itag=A.itag;this.url=A.url;this.codecs=A.codecs;this.width=A.width;this.height=A.height;this.fps=A.fps;this.bitrate=A.bitrate;var L;this.W=((L=A.audioItag)==null?void 0:L.split(","))||[];this.Bd=A.Bd;this.Zj=A.Zj||"";this.ri=A.ri;this.audioChannels=A.audioChannels;this.N=""}; Zpw=function(A,L,B,f){L=L===void 0?!1:L;B=B===void 0?!0:B;f=f===void 0?{}:f;var K={};A=g.m(A);for(var V=A.next();!V.done;V=A.next()){V=V.value;if(L&&MediaSource&&MediaSource.isTypeSupported){var J=V.type;V.audio_channels&&(J=J+"; channels="+V.audio_channels);if(!MediaSource.isTypeSupported(J)){f[V.itag]="tpus";continue}}if(B||!V.drm_families||V.eotf!=="smpte2084"&&V.eotf!=="arib-std-b67"){J=void 0;var R={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},Z=V.type.match(/codecs="([^"]*)"/); Z=Z?Z[1]:"";V.audio_track_id&&(J=new g.$6(V.name,V.audio_track_id,!!V.is_default));var N=V.eotf;V=new RS0({itag:V.itag,url:V.url,codecs:Z,width:Number(V.width),height:Number(V.height),fps:Number(V.fps),bitrate:Number(V.bitrate),audioItag:V.audio_itag,Bd:N?R[N]:void 0,Zj:V.drm_families,ri:J,audioChannels:Number(V.audio_channels)});K[V.itag]=K[V.itag]||[];K[V.itag].push(V)}else f[V.itag]="enchdr"}return K}; Nf1=function(A,L,B,f,K){this.V=A;this.W=L;this.D=B;this.cpn=f;this.T=K;this.U=0;this.N=""}; FUe=function(A,L){A.V.some(function(B){var f;return((f=B.ri)==null?void 0:f.getId())===L}); A.N=L}; rd=function(A,L,B){A.cpn&&(L=g.ip(L,{cpn:A.cpn}));B&&(L=g.ip(L,{paired:B}));return L}; Dr6=function(A,L){A=A.itag.toString();L!==null&&(A+=L.itag.toString());return A}; drQ=function(A){for(var L=[],B=[],f=g.m(A.W),K=f.next();!K.done;K=f.next())K=K.value,K.bitrate<=A.U?L.push(K):B.push(K);L.sort(function(V,J){return J.bitrate-V.bitrate}); B.sort(function(V,J){return V.bitrate-J.bitrate}); A.W=L.concat(B)}; se=function(A,L,B){this.N=A;this.W=L;this.expiration=B;this.wi=null}; INv=function(A,L){if(!(ed||aM()||zc()))return null;A=Zpw(L,A.J("html5_filter_fmp4_in_hls"));if(!A)return null;L=[];for(var B={},f=g.m(Object.keys(A)),K=f.next();!K.done;K=f.next()){K=g.m(A[K.value]);for(var V=K.next();!V.done;V=K.next()){var J=V.value;J.ri&&(V=J.ri.getId(),B[V]||(J=new g.i6(V,J.ri),B[V]=J,L.push(J)))}}return L.length>0?L:null}; gdw=function(A,L,B,f,K,V,J){if(!(ed||aM()||zc()))return Xa();var R={},Z=wWe(B),N=Zpw(B,A.J("html5_filter_fmp4_in_hls"),A.D.T,R);if(!N)return J({noplst:1}),Xa();pWQ(N);B={};var F=(B.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",B),D;B=[];var I=[],d=[],w=null,r="";f=f&&f.match(/hls_timedtext_playlist/)?new RS0({itag:"0",url:f,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,ri:new g.$6("English","en",!1)}):null;for(var h=g.m(Object.keys(N)),Q=h.next();!Q.done;Q=h.next())if(Q=Q.value,!A.J("html5_disable_drm_hfr_1080")|| Q!=="383"&&Q!=="373"){Q=g.m(N[Q]);for(var l=Q.next();!l.done;l=Q.next())if(l=l.value,l.width){for(var C=g.m(l.W),O=C.next();!O.done;O=C.next())if(O=O.value,N[O]){l.N=O;break}l.N||(l.N=yyL(N,l));if(C=N[l.N])if(B.push(l),l.Zj==="fairplay"&&(D=F),O="",l.Bd==="PQ"?O="smpte2084":l.Bd==="HLG"&&(O="arib-std-b67"),O&&(r=O),d.push(j26(C,[l],f,V,l.itag,l.width,l.height,l.fps,Z,void 0,void 0,D,O)),!w||l.width*l.height*l.fps>w.width*w.height*w.fps)w=l}else I.push(l)}else R[Q]="disdrmhfr";d.reduce(function(v, U){return U.getInfo().isEncrypted()&&v},!0)&&(D=F); K=Math.max(K,0);F=w||{};N=F.fps===void 0?0:F.fps;w=F.width===void 0?0:F.width;F=F.height===void 0?0:F.height;h=A.J("html5_native_audio_track_switching");d.push(j26(I,B,f,V,"93",w,F,N,Z,"auto",K,D,r,h));Object.entries(R).length&&J(R);return Gd(A.D,d,oo(A,L),!1)}; j26=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){for(var w=0,r="",h=g.m(A),Q=h.next();!Q.done;Q=h.next())Q=Q.value,r||(r=Q.itag),Q.audioChannels&&Q.audioChannels>w&&(w=Q.audioChannels,r=Q.itag);K=new C$(K,"application/x-mpegURL",{audio:new IT(0,w),video:new Tv(V,J,R,null,void 0,N,void 0,void 0,I),Zj:D,GO:r});A=new Nf1(A,L,B?[B]:[],f,!!d);A.U=F?F:1369843;return new se(K,A,Z)}; wWe=function(A){A=g.m(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.url&&(L=L.url.split("expire/"),!(L.length<=1)))return+L[1].split("/")[0];return NaN}; yyL=function(A,L){for(var B=g.m(Object.keys(A)),f=B.next();!f.done;f=B.next()){f=f.value;var K=A[f][0];if(!K.width&&K.Zj===L.Zj&&!K.audioChannels)return f}return""}; pWQ=function(A){for(var L=new Set,B=g.m(Object.values(A)),f=B.next();!f.done;f=B.next())f=f.value,f.length&&(f=f[0],f.height&&f.codecs.startsWith("vp09")&&L.add(f.height));B=[];if(L.size){f=g.m(Object.keys(A));for(var K=f.next();!K.done;K=f.next())if(K=K.value,A[K].length){var V=A[K][0];V.height&&L.has(V.height)&&!V.codecs.startsWith("vp09")&&B.push(K)}}L=g.m(B);for(B=L.next();!B.done;B=L.next())delete A[B.value]}; HN=function(A,L){this.N=A;this.W=L}; GAv=function(A,L,B,f){var K=[];B=g.m(B);for(var V=B.next();!V.done;V=B.next()){var J=V.value;if(J.url){V=new g.Fk(J.url,!0);if(J.s){var R=V,Z=J.sp,N=sD(19,decodeURIComponent(J.s));R[S[18]](Z,encodeURIComponent(N))}R=g.m(Object.keys(f));for(Z=R.next();!Z.done;Z=R.next())Z=Z.value,V.set(Z,f[Z]);J=eo(J.type,J.quality,J.itag,J.width,J.height);K.push(new HN(J,V))}}return Gd(A.D,K,oo(A,L),!1)}; h$=function(A,L){this.N=A;this.W=L}; ry0=function(A,L,B){var f=[];B=g.m(B);for(var K=B.next();!K.done;K=B.next())if((K=K.value)&&K.url){var V=eo(K.type,"medium","0");f.push(new h$(V,K.url))}return Gd(A.D,f,oo(A,L),!1)}; s2D=function(A,L){var B=[],f=eo(L.type,"auto",L.itag);B.push(new h$(f,L.url));return Gd(A.D,B,!1,!0)}; hSS=function(A){return A&&Hp1[A]?Hp1[A]:null}; bpQ=function(A){switch(A){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return A;default:return"sabr.config"}}; t$8=function(A){if(A=A.commonConfig)this.url=A.url,this.urlQueryOverride=A.urlQueryOverride,A.ustreamerConfig&&(this.xC=$i(A.ustreamerConfig)||void 0)}; kAy=function(A,L){var B;if(L=L==null?void 0:(B=L.watchEndpointSupportedOnesieConfig)==null?void 0:B.html5PlaybackOnesieConfig)A.jF=new t$8(L)}; g.bS=function(A){A=A===void 0?{}:A;this.languageCode=A.languageCode||"";this.languageName=A.languageName||null;this.kind=A.kind||"";this.name=A.name===void 0?null:A.name;this.displayName=A.displayName||null;this.id=A.id||null;this.N=A.is_servable||!1;this.isTranslateable=A.is_translateable||!1;this.url=A.url||null;this.vssId=A.vss_id||"";this.isDefault=A.is_default||!1;this.translationLanguage=A.translationLanguage||null;this.xtags=A.xtags||"";this.captionId=A.captionId||""}; g.kc=function(A){var L={languageCode:A.languageCode,languageName:A.languageName,displayName:g.t$(A),kind:A.kind,name:A.name,id:A.id,is_servable:A.N,is_default:A.isDefault,is_translateable:A.isTranslateable,vss_id:A.vssId};A.xtags&&(L.xtags=A.xtags);A.captionId&&(L.captionId=A.captionId);A.translationLanguage&&(L.translationLanguage=A.translationLanguage);return L}; g.Td=function(A){return A.translationLanguage?A.translationLanguage.languageCode:A.languageCode}; g.Tf0=function(A){var L=A.vssId;A.translationLanguage&&L&&(L="t"+L+"."+g.Td(A));return L}; g.t$=function(A){var L=[];if(A.displayName)L.push(A.displayName);else{var B=A.languageName||"";L.push(B);A.kind==="asr"&&B.indexOf("(")===-1&&L.push(" (Subt\u00edtulos autom\u00e1ticos)");A.name&&L.push(" - "+A.name)}A.translationLanguage&&L.push(" >> "+A.translationLanguage.languageName);return L.join("")}; ChS=function(A,L,B,f){A||(A=L&&lNL.hasOwnProperty(L)&&mre.hasOwnProperty(L)?mre[L]+"_"+lNL[L]:void 0);L=A;if(!L)return null;A=L.match(Q21);if(!A||A.length!==5)return null;if(A=L.match(Q21)){var K=Number(A[3]),V=[7,8,10,5,6];A=!(Number(A[1])===1&&K===8)&&V.indexOf(K)>=0}else A=!1;return B||f||A?L:null}; lS=function(A,L){for(var B={},f=g.m(Object.keys(ipy)),K=f.next();!K.done;K=f.next()){K=K.value;var V=L?L+K:K;V=A[V+"_webp"]||A[V];g.MR(V)&&(B[ipy[K]]=V)}return B}; m$=function(A){var L={};if(!A||!A.thumbnails)return L;A=A.thumbnails.filter(function(R){return!!R.url}); A.sort(function(R,Z){return R.width-Z.width||R.height-Z.height}); for(var B=g.m(Object.keys($rQ)),f=B.next();!f.done;f=B.next()){var K=Number(f.value);f=$rQ[K];for(var V=g.m(A),J=V.next();!J.done;J=V.next())if(J=J.value,J.width>=K){K=XWe(J.url);g.MR(K)&&(L[f]=K);break}}(A=A.pop())&&A.width>=1280&&(A=XWe(A.url),g.MR(A)&&(L["maxresdefault.jpg"]=A));return L}; XWe=function(A){return A.startsWith("//")?"https:"+A:A}; Q3=function(A){return A&&A.baseUrl||""}; Co=function(A){A=g.RM(A);for(var L=g.m(Object.keys(A)),B=L.next();!B.done;B=L.next()){B=B.value;var f=A[B];A[B]=Array.isArray(f)?f[0]:f}return A}; Ed1=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next())if(B=B.value.playerAnnotationsUrlsRenderer){B.adsOnly&&(A.Bf=!0);if(L=B.loadPolicy)A.annotationsLoadPolicy=OpC[L];if(L=B.invideoUrl)A.zM=YG(L);A.qw=!0;break}}; cy6=function(A,L){A.botguardData=L.playerAttestationRenderer.botguardData;L=L.playerAttestationRenderer.challenge;L!=null&&(A.EZ=L)}; Y7C=function(A,L){A.captionTracks=[];if(L.captionTracks)for(var B=g.m(L.captionTracks),f=B.next();!f.done;f=B.next()){f=f.value;var K=M$6(f.baseUrl);if(!K)return;K={is_translateable:!!f.isTranslatable,languageCode:f.languageCode,languageName:f.name&&g.wq(f.name),url:K,vss_id:f.vssId,kind:f.kind};K.name=f.trackName;K.displayName=f.name&&g.wq(f.name);A.captionTracks.push(new g.bS(K))}A.kL=L.audioTracks||[];A.As=L.defaultAudioTrackIndex||0;A.Rj=[];if(L.translationLanguages)for(B=g.m(L.translationLanguages), f=B.next();!f.done;f=B.next()){K=f.value;f={};f.languageCode=K.languageCode;f.languageName=g.wq(K.languageName);if(K.translationSourceTrackIndices){f.translationSourceTrackIndices=[];for(var V=g.m(K.translationSourceTrackIndices),J=V.next();!J.done;J=V.next())f.translationSourceTrackIndices.push(J.value)}if(K.excludeAudioTrackIndices)for(f.excludeAudioTrackIndices=[],K=g.m(K.excludeAudioTrackIndices),V=K.next();!V.done;V=K.next())f.excludeAudioTrackIndices.push(V.value);A.Rj.push(f)}A.VT=[];if(L.defaultTranslationSourceTrackIndices)for(B= g.m(L.defaultTranslationSourceTrackIndices),f=B.next();!f.done;f=B.next())A.VT.push(f.value);A.M$=!!L.contribute&&!!L.contribute.captionsMetadataRenderer}; WU6=function(A,L,B){var f=L.errorScreen;if(!(f&&(f.playerLegacyDesktopYpcOfferRenderer||f.playerLegacyDesktopYpcTrailerRenderer||f.ypcTrailerRenderer)||B&&B.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(L.status))){A.errorCode=hSS(L.errorCode)||"auth";if(B=f&&f.playerErrorMessageRenderer){A.playerErrorMessageRenderer=B;var K=B.reason;K&&(A.errorReason=g.wq(K));if(B=B.subreason)A.Qr=g.wq(B),A.ZE=B}else A.errorReason=L.reason||null;B=L.status;if(B==="LOGIN_REQUIRED")A.errorDetail= "1";else if(B==="CONTENT_CHECK_REQUIRED")A.errorDetail="2";else if(B==="AGE_CHECK_REQUIRED")L=(L=L.errorScreen)&&L.playerKavRenderer,A.errorDetail=L&&L.kavUrl?"4":"3";else{var V,J,R;f=(R=f==null?void 0:(V=f.playerErrorMessageRenderer)==null?void 0:(J=V.proceedButton)==null?void 0:J.buttonRenderer)==null?void 0:R.command;if(L.isBlockedInRestrictedMode)A.errorDetail="5";else{var Z;((Z=g.y(f,UrD))==null?void 0:Z.signal)==="RELOAD_PAGE"?A.errorDetail="7":A.errorDetail="0"}}}}; vd8=function(A,L){A.Q0=!0;var B=L.heartbeatToken;B&&(A.drmSessionId=L.drmSessionId||"",A.heartbeatToken=B,A.y3=Number(L.intervalMilliseconds),A.cU=Number(L.maxRetries),A.BU=!!L.softFailOnError,A.V$=!!L.useInnertubeHeartbeatsForDrm);A.heartbeatServerData=L.heartbeatServerData;var f;A.l_=!((f=L.heartbeatAttestationConfig)==null||!f.requiresAttestation)}; xrw=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=B.interstitials.map(function(J){var R=g.y(J,q78);if(R)return{is_yto_interstitial:!0,raw_player_response:R};if(J=g.y(J,Phe))return Object.assign({is_yto_interstitial:!0},I0(J))}); f=g.m(f);for(var K=f.next();!K.done;K=f.next())switch(K=K.value,B.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":A.interstitials=A.interstitials.concat({time:0,playerVars:K,sU:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":A.interstitials=A.interstitials.concat({time:0x7ffffffffffff,playerVars:K,sU:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var V=Number(B.podConfig.timeToInsertAtMillis);A.interstitials=A.interstitials.concat({time:V,playerVars:K, sU:V===0?5:7})}}}; eSe=function(A,L){if(L=L.find(function(B){return!(!B||!B.tooltipRenderer)}))A.tooltipRenderer=L.tooltipRenderer}; ndQ=function(A,L){L.subscribeCommand&&(A.subscribeCommand=L.subscribeCommand);L.unsubscribeCommand&&(A.unsubscribeCommand=L.unsubscribeCommand);L.addToWatchLaterCommand&&(A.addToWatchLaterCommand=L.addToWatchLaterCommand);L.removeFromWatchLaterCommand&&(A.removeFromWatchLaterCommand=L.removeFromWatchLaterCommand);L.getSharePanelCommand&&(A.getSharePanelCommand=L.getSharePanelCommand)}; zS7=function(A,L){L!=null?(A.kE=L,A.OE=!0):(A.kE="",A.OE=!1)}; Aew=function(A,L){if(L=L.playerControlsOverlayRenderer)zS7(A,L.controlBgHtml),L.mutedAutoplay?(L=g.y(L.mutedAutoplay,up7))&&L.endScreen&&(L=g.y(L.endScreen,aN6))&&L.text&&(A.Tz=g.wq(L.text)):A.mutedAutoplay=!1}; L9L=function(A,L){var B=L.backgroundability;B&&B.backgroundabilityRenderer.backgroundable&&(A.backgroundable=!0);var f,K;if((f=L.offlineability)==null?0:(K=f.offlineabilityRenderer)==null?0:K.offlineable)A.offlineable=!0;if(B=L.contextParams)A.contextParams=B;(B=L.pictureInPicture)&&B.pictureInPictureRenderer.playableInPip&&(A.pipable=!0);L.playableInEmbed&&(A.allowEmbed=!0);if(B=L.ypcClickwrap)L=B.playerLegacyDesktopYpcClickwrapRenderer,B=B.ypcRentalActivationRenderer,L?(A.QR=L.durationMessage|| "",A.b8=!0):B&&(L=B.durationMessage,A.QR=L?g.wq(L):"",A.b8=!0)}; B98=function(A,L,B){var f=Q3(L.googleRemarketingUrl);f&&(A.googleRemarketingUrl=f);if(f=Q3(L.youtubeRemarketingUrl))A.youtubeRemarketingUrl=f;if(f=L.heartbeatLoggingToken)A.heartbeatLoggingToken=f;f={};var K=Q3(L.ptrackingUrl);if(K){K=Co(K);var V=K.oid;V&&(A.gO=V);if(V=K.pltype)A.rO=V;if(V=K.ptchn)A.YZ=V;if(V=K.ptk)A.Ae=encodeURIComponent(V);if(K=K.m)A.y5=K}if(K=Q3(L.qoeUrl)){K=g.RM(K);V=g.m(Object.keys(K));for(var J=V.next();!J.done;J=V.next()){J=J.value;var R=K[J];K[J]=Array.isArray(R)?R.join(","): R}A.XK=K;if(V=K.cat)A.J("html5_enable_qoe_cat_list")?A.Vs=A.Vs.concat(V.split(",")):A.AU=V;if(V=K.live)A.jj=V;if(K=K.drm_product)A.drmProduct=K}if(K=Q3(L.videostatsPlaybackUrl)){K=Co(K);if(V=K.adformat)if(B.adformat=V,J=A.K(),J=ChS(V,A.XR,J.U,J.G))A.adFormat=J;if(J=K.aqi)B.ad_query_id=J;if(B=K.autoplay)A.BV=B=="1",A.Ll=B=="1";if(B=K.autonav)A.isAutonav=B=="1";if(B=K.delay)A.qo=na(B);if(B=K.ei)A.eventId=B;if(B=$i(K.adcontext))try{var Z=oYQ(B);Z&&(A.NS=Z)}catch(N){g.CE(Error("Malformed adContext"))}if(B|| V)A.BV=!0;if(Z=K.feature)A.Sw=Z;if(Z=K.list)A.playlistId=Z;if(Z=K.of)A.oB=Z;if(Z=K.osid)A.osid=Z;if(Z=K.referrer)A.referrer=Z;if(Z=K.sdetail)A.kc=Z;if(Z=K.sourceid)A.KGr=Z;if(Z=K.ssrt)A.dY=Z=="1";if(Z=K.subscribed)A.subscribed=Z=="1";if(Z=K.uga)A.userGenderAge=Z;if(Z=K.upt)A.bK=Z;if(Z=K.vm)A.videoMetadata=Z;f.playback=K}if(Z=Q3(L.videostatsWatchtimeUrl)){Z=Co(Z);if(B=Z.ald)A.f2=B;f.watchtime=Z}if(Z=Q3(L.atrUrl))Z=Co(Z),f.atr=Z;if(Z=Q3(L.engageUrl))Z=Co(Z),f.engage=Z;A.Ly=f;L.promotedPlaybackTracking&& (L=L.promotedPlaybackTracking,L.startUrls&&(A.dw=L.startUrls),L.firstQuartileUrls&&(A.FQ=L.firstQuartileUrls),L.secondQuartileUrls&&(A.UX=L.secondQuartileUrls),L.thirdQuartileUrls&&(A.wE=L.thirdQuartileUrls),L.completeUrls&&(A.tM=L.completeUrls),L.engagedViewUrls&&(L.engagedViewUrls.length>1&&g.CE(new g.iL("There are more than one engaged_view_urls.")),A.N3=L.engagedViewUrls[0]))}; fJE=function(A,L,B){L=g.m(L);for(var f=L.next();!f.done;f=L.next())if(f=f.value)if(f=f.playerLegacyDesktopWatchAdsRenderer)if(f=f.playerAdParams){f.autoplay=="1"&&(A.BV=!0,A.Ll=!0);A.aQ=f.encodedAdSafetyReason||null;f.showContentThumbnail!==void 0&&(A.nL=!!f.showContentThumbnail);B.enabled_engage_types=f.enabledEngageTypes;break}}; K9y=function(A,L){var B=L.manifestlessWindowedLiveConfig;if(B){var f=Number(B.minDvrSequence),K=Number(B.maxDvrSequence),V=Number(B.minDvrMediaTimeMs),J=Number(B.maxDvrMediaTimeMs);B=Number(B.startWalltimeMs);f&&(A.F3=f);V&&(A.SO=V/1E3,A.J("html5_sabr_parse_live_metadata_playback_boundaries")&&iS(A)&&(A.CK=V/1E3));K&&(A.lW=K);J&&(A.E0=J/1E3,A.J("html5_sabr_parse_live_metadata_playback_boundaries")&&iS(A)&&(A.F9=J/1E3));B&&(A.HY=B/1E3);(f||V)&&(K||J)&&(A.hd=!0,A.isLivePlayback=!0,A.allowLiveDvr=!0, A.SD=!1)}if(f=L.daiConfig){if(f.enableDai){A.yC=!0;if(K=f.enableServerStitchedDai)A.enableServerStitchedDai=K;if(K=f.enablePreroll)A.dL=K}var R;if(f.daiType==="DAI_TYPE_SS_DISABLED"||((R=f.debugInfo)==null?0:R.isDisabledUnpluggedChannel))A.mA=!0;f.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(A.DC=!0);f.allowUstreamerRequestAdconfig&&(A.Is=!0);f.sendSsdaiMissingAdBreakReasons&&(A.uHF=!0)}if(R=L.audioConfig){f=R.loudnessDb;f!=null&&(A.EQ=f);f=R.trackAbsoluteLoudnessLkfs;f!=null&&(A.EL=f);f=R.loudnessTargetLkfs; f!=null&&(A.loudnessTargetLkfs=f);R.audioMuted&&(A.s$=!0);R.muteOnStart&&(A.FK=!0);if(f=R.loudnessNormalizationConfig)f.applyStatefulNormalization&&(A.applyStatefulNormalization=!0),f.preserveStatefulLoudnessTarget&&(A.preserveStatefulLoudnessTarget=!0),K=f.minimumLoudnessTargetLkfs,K!=null&&(A.minimumLoudnessTargetLkfs=K),f=f.maxStatefulTimeThresholdSec,f!=null&&(A.maxStatefulTimeThresholdSec=f);R.playAudioOnly&&(A.qh=!0)}if(f=L.playbackEndConfig)R=f.endSeconds,f=f.limitedPlaybackDurationInSeconds, A.mutedAutoplay&&(R&&(A.endSeconds=R),f&&(A.limitedPlaybackDurationInSeconds=f));if(R=L.fairPlayConfig){if(f=R.certificate)A.xf=$i(f);f=Number(R.keyRotationPeriodMs);f>0&&(A.wV=f);R=Number(R.keyPrefetchMarginMs);R>0&&(A.Ub=R)}if(R=L.playbackStartConfig){A.G2=Number(R.startSeconds);K=R.liveUtcStartSeconds;f=!!A.liveUtcStartSeconds&&A.liveUtcStartSeconds>0;K&&!f&&(A.liveUtcStartSeconds=Number(K));if(K=R.startPosition)if((V=K.utcTimeMillis)&&!f&&(A.liveUtcStartSeconds=Number(V)*.001),f=K.streamTimeMillis)A.NT= Number(f)*.001;A.progressBarStartPosition=R.progressBarStartPosition;A.progressBarEndPosition=R.progressBarEndPosition}else if(R=L.skippableSegmentsConfig){if(f=R.introSkipDurationMs)A.dW=Number(f)/1E3;if(R=R.outroSkipDurationMs)A.aB=Number(R)/1E3}if(f=L.skippableIntroConfig)R=Number(f.startMs),f=Number(f.endMs),isNaN(R)||isNaN(f)||(A.SR=R,A.YA=f);if(R=L.streamSelectionConfig)A.dg=Number(R.maxBitrate);if(R=L.vrConfig)A.qY=R.partialSpherical=="1";if(R=L.webDrmConfig){R.skipWidevine&&(A.Ci=!0);if(f= R.widevineServiceCert)A.LL=$i(f);R.useCobaltWidevine&&(A.useCobaltWidevine=!0);R.startWithNoQualityConstraint&&(A.B$=!0)}if(R=L.mediaCommonConfig){if(f=R.dynamicReadaheadConfig){A.maxReadAheadMediaTimeMs=f.maxReadAheadMediaTimeMs||NaN;A.minReadAheadMediaTimeMs=f.minReadAheadMediaTimeMs||NaN;A.readAheadGrowthRateMs=f.readAheadGrowthRateMs||NaN;var Z;if(f=R==null?void 0:(Z=R.mediaUstreamerRequestConfig)==null?void 0:Z.videoPlaybackUstreamerConfig)A.Sg=$i(f);if((Z=R==null?void 0:R.sabrContextUpdates)&& Z.length>0)for(Z=g.m(Z),f=Z.next();!f.done;f=Z.next())f=f.value,f.type&&f.value&&(K={type:f.type,scope:f.scope,value:$i(f.value)||void 0,sendByDefault:f.sendByDefault},A.sabrContextUpdates.set(f.type,K))}if(Z=R.serverPlaybackStartConfig)A.serverPlaybackStartConfig=Z;R.useServerDrivenAbr&&(A.qI=!0);if(Z=R.requestPipeliningConfig)A.requestPipeliningConfig=Z}if(Z=L.inlinePlaybackConfig)A.jm=!!Z.showAudioControls;if(Z=L.embeddedPlayerConfig){A.embeddedPlayerConfig=Z;if(R=Z.embeddedPlayerMode)f=A.K(), f.wT=R,f.V=R==="EMBEDDED_PLAYER_MODE_PFL";if(Z=Z.permissions)A.allowImaMonetization=!!Z.allowImaMonetization}if(L=L.webPlayerConfig)L.gatewayExperimentGroup&&(A.gatewayExperimentGroup=L.gatewayExperimentGroup),L.isProximaEligible&&(A.isProximaLatencyEligible=!0)}; VLQ=function(A,L,B){var f=L.formats;if(f){for(var K=[],V=g.m(f),J=V.next();!J.done;J=V.next())J=J.value,K.push(J.itag+"/"+J.width+"x"+J.height);A.bI=K.join(",");K=[];f=g.m(f);for(V=f.next();!V.done;V=f.next()){J=V.value;V={itag:J.itag,type:J.mimeType,quality:J.quality};var R=J.url;R&&(V.url=R);J=J1(60,J);R=J.Ff;var Z=J.q0,N=J.s;J.sG&&(V.url=R,V.sp=Z,V.s=N);K.push(g.CC(V))}A.Nh=K.join(",")}if(V=L.hlsFormats){K={};if(B&&(B=B.audioPairingConfig)&&B.pairs)for(B=g.m(B.pairs),f=B.next();!f.done;f=B.next())f= f.value,J=f.videoItag,K[J]||(K[J]=[]),K[J].push(f.audioItag);B={};f=g.m(V);for(J=f.next();!J.done;J=f.next())J=J.value,B[J.itag]=J.bitrate;f=[];V=g.m(V);for(J=V.next();!J.done;J=V.next()){J=J.value;R={itag:J.itag,type:J.mimeType,url:J.url,bitrate:J.bitrate,width:J.width,height:J.height,fps:J.fps};if(Z=J.audioTrack)if(N=Z.displayName)R.name=N,R.audio_track_id=Z.id,Z.audioIsDefault&&(R.is_default="1");if(J.drmFamilies){Z=[];N=g.m(J.drmFamilies);for(var F=N.next();!F.done;F=N.next())Z.push(UI[F.value]); R.drm_families=Z.join(",")}(Z=K[J.itag])&&Z.length&&(R.audio_itag=Z.join(","),(Z=B[Z[0]])&&(R.bitrate+=Z));(Z=pVQ(J))&&(R.eotf=Z);J.audioChannels&&(R.audio_channels=J.audioChannels);f.push(g.CC(R))}A.hlsFormats=f.join(",")}if((B=L.licenseInfos)&&B.length>0){K={};B=g.m(B);for(f=B.next();!f.done;f=B.next())V=f.value,f=V.drmFamily,V=V.url,f&&V&&(K[UI[f]]=V);A.Zj=K}if(K=L.drmParams)A.drmParams=K;if(K=L.dashManifestUrl)A.sZ=g.ip(K,{cpn:A.clientPlaybackNonce});if(K=L.hlsManifestUrl)A.hlsvp=K;if(K=L.probeUrl)A.probeUrl= YG(g.ip(K,{cpn:A.clientPlaybackNonce}));if(L=L.serverAbrStreamingUrl)A.Qi=new g.Fk(L,!0)}; S40=function(A,L,B){var f=L.videoId;f&&(A.videoId=f,B.video_id||(B.video_id=f));if(f=L.title)A.title=f,B.title||(B.title=f);if(f=L.lengthSeconds)A.lengthSeconds=Number(f),B.length_seconds||(B.length_seconds=f);if(f=L.keywords)A.keywords=JeS(f);if(f=L.channelId)A.JO=f,B.ucid||(B.ucid=f);if(f=L.viewCount)A.rawViewCount=Number(f);if(f=L.author)A.author=f,B.author||(B.author=f);if(B=L.shortDescription)A.shortDescription=B;if(B=L.isCrawlable)A.isListed=B;if(B=L.musicVideoType)A.musicVideoType=B;B=L.isLive; B!=null&&(A.isLivePlayback=B);if(B||L.isUpcoming)A.isPremiere=!L.isLiveContent;if(B=L.thumbnail)A.ea=m$(B);if(B=L.isExternallyHostedPodcast)A.isExternallyHostedPodcast=B;(B=L.stationType)&&B!=="STATION_TYPE_UNKNOWN"&&(A.K4F=!0);L=L.viewerLivestreamJoinPosition;if(L==null?0:L.utcTimeMillis)A.iK=na(L.utcTimeMillis)}; N90=function(A,L){if(L.playerLegacyDesktopYpcTrailerRenderer){var B=L.playerLegacyDesktopYpcTrailerRenderer;A.B0=B.trailerVideoId||"";var f=(f=L.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&f.ypcTrailerRenderer}else if(L.playerLegacyDesktopYpcOfferRenderer)B=L.playerLegacyDesktopYpcOfferRenderer;else if(L.ypcTrailerRenderer){f=L.ypcTrailerRenderer;L=f.fullVideoMessage;A.v0=L?g.wq(L):"";var K,V;A.B0=((K=g.y(f,R9w))==null?void 0:(V=K.videoDetails)==null?void 0:V.videoId)||""}B&&(A.Kf=B.itemTitle|| "",B.itemUrl&&(A.n1=B.itemUrl),B.itemBuyUrl&&(A.gD=B.itemBuyUrl),A.rD=B.itemThumbnail||"",A.EA=B.offerHeadline||"",A.Gm=B.offerDescription||"",A.yW=B.offerId||"",A.z0=B.offerButtonText||"",A.wH=B.offerButtonFormattedText||null,A.O1=B.overlayDurationMsec||NaN,A.v0=B.fullVideoMessage||"",A.kS=!0);f&&((B=g.y(f,R9w))?A.WC={raw_player_response:B}:(B=g.y(f,ZJC),A.WC=B?I0(B):null),A.kS=!0)}; D0y=function(A,L,B,f){L.isLiveDefaultBroadcast&&(A.isLiveDefaultBroadcast=!0);L.isUpcoming&&(A.isUpcoming=!0);if(L.isPostLiveDvr){A.SD=!0;if(f=L.latencyClass)A.latencyClass=F9E[f]||"UNKNOWN";L.isLowLatencyLiveStream&&(A.isLowLatencyLiveStream=!0)}else{var K=!1;A.I7?(A.allowLiveDvr=h7()?!0:oX&&$c<5?!1:!0,A.isLivePlayback=!0):L.isLive?(f.livestream="1",A.allowLiveDvr=L.isLiveDvrEnabled?h7()?!0:oX&&$c<5?!1:!0:!1,A.partnerId=27,K=!0):L.isUpcoming&&(K=!0);if(L.isLive||A.I7){L.isLowLatencyLiveStream&&(A.isLowLatencyLiveStream= !0);var V=L.latencyClass;V&&(A.latencyClass=F9E[V]||"UNKNOWN");if(L=L.liveChunkReadahead)A.liveChunkReadahead=L;if(L=B&&B.livePlayerConfig){L.hasSubfragmentedFmp4&&(A.hasSubfragmentedFmp4=!0);L.hasSubfragmentedWebm&&(A.XI=!0);L.defraggedFromSubfragments&&(A.defraggedFromSubfragments=!0);if(B=L.liveExperimentalContentId)A.liveExperimentalContentId=Number(B);L=L.isLiveHeadPlayable;A.J("html5_live_head_playable")&&L!=null&&(A.isLiveHeadPlayable=L)}}K&&(A.isLivePlayback=!0,f.adformat&&f.adformat.split("_")[1]!== "8"||A.p9.push("heartbeat"))}}; X1=function(A,L){this.type=A||"";this.id=L||""}; Oe=function(A){return new X1(A.substring(0,2),A.substring(2))}; Ee=function(A,L){this.tF=A;this.author="";this.xq=null;this.playlistLength=0;this.N=this.sessionData=null;this.ea={};this.title="";if(L){this.author=L.author||L.playlist_author||"";this.title=L.playlist_title||"";if(A=L.session_data)this.sessionData=Vh(A,"&");var B;this.N=((B=L.thumbnail_ids)==null?void 0:B.split(",")[0])||null;this.ea=lS(L,"playlist_");this.videoId=L.video_id||void 0;if(B=L.list)switch(L.listType){case "user_uploads":this.playlistId=(new X1("UU","PLAYER_"+B)).toString();break;default:if(A= L.playlist_length)this.playlistLength=Number(A)||0;this.playlistId=Oe(B).toString();if(L=L.video)this.videoId=(L[0]||null).video_id||void 0}else L.playlist&&(this.playlistLength=L.playlist.toString().split(",").length)}}; cN=function(A,L){this.tF=A;this.Eh=this.author="";this.xq=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.CZ=this.lengthText="";this.sessionData=null;this.ea={};this.title="";if(L){this.ariaLabel=L.aria_label||void 0;this.author=L.author||"";this.Eh=L.Eh||"";if(A=L.endscreen_autoplay_session_data)this.xq=Vh(A,"&");this.qW=L.qW;this.isLivePlayback=L.live_playback==="1";this.isUpcoming=!!L.isUpcoming;if(A=L.length_seconds)this.lengthSeconds=typeof A==="string"?Number(A):A;this.lengthText= L.lengthText||"";this.CZ=L.CZ||"";this.publishedTimeText=L.publishedTimeText||void 0;if(A=L.session_data)this.sessionData=Vh(A,"&");this.shortViewCount=L.short_view_count_text||void 0;this.ea=lS(L);this.title=L.title||"";this.videoId=L.docid||L.video_id||L.videoId||L.id||void 0;this.watchUrl=L.watchUrl||void 0}}; d08=function(A){var L,B,f=(L=A.getWatchNextResponse())==null?void 0:(B=L.contents)==null?void 0:B.twoColumnWatchNextResults,K,V,J,R,Z;A=(K=A.getWatchNextResponse())==null?void 0:(V=K.playerOverlays)==null?void 0:(J=V.playerOverlayRenderer)==null?void 0:(R=J.endScreen)==null?void 0:(Z=R.watchNextEndScreenRenderer)==null?void 0:Z.results;if(!A){var N,F;A=f==null?void 0:(N=f.endScreen)==null?void 0:(F=N.endScreen)==null?void 0:F.results}return A}; g.Yc=function(A){var L,B,f;A=g.y((L=A.getWatchNextResponse())==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,Mg);return g.y(A==null?void 0:A.playerBar,IJE)}; wyk=function(A){this.N=A.playback_progress_0s_url;this.V=A.playback_progress_2s_url;this.W=A.playback_progress_10s_url}; pyw=function(){if(Ue===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(L){}a:{try{var A=!!self.localStorage}catch(L){A=!1}if(A&&(A=g.cC(g.nn()+"::yt-player"))){Ue=new UN(A);break a}Ue=void 0}}return Ue}; g.WN=function(){var A=pyw();if(!A)return{};try{var L=A.get("yt-player-lv");return JSON.parse(L||"{}")}catch(B){return{}}}; g.ye1=function(A){var L=pyw();L&&(A=JSON.stringify(A),L.set("yt-player-lv",A))}; g.vN=function(A){return g.WN()[A]||0}; g.qg=function(A,L){var B=g.WN();L!==B[A]&&(L!==0?B[A]=L:delete B[A],g.ye1(B))}; g.PN=function(A){return g.c(function(L){return L.return(g.Wf(jG6(),A))})}; eK=function(A,L,B,f,K,V,J,R){var Z,N,F,D,I,d;return g.c(function(w){switch(w.N){case 1:return Z=g.vN(A),Z===4?w.return(4):g.X(w,g.Ab(),2);case 2:N=w.W;if(!N)throw g.g2("wiac");if(!R||J===void 0){w.Ux(3);break}return g.X(w,gY6(R,J),4);case 4:J=w.W;case 3:return F=B.lastModified||"0",g.X(w,g.PN(N),5);case 5:return D=w.W,g.S5(w,6),xc++,g.X(w,g.mz(D,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Ev:!0},function(r){if(V!==void 0&&J!==void 0){var h=""+A+"|"+L.id+"|"+F+"|"+String(V).padStart(10, "0");h=g.Qw(r.objectStore("media"),J,h)}else h=g.r2.resolve(void 0);var Q=Glw(A,L.WV()),l=Glw(A,!L.WV()),C={fmts:rev(f),format:B||{}};Q=g.Qw(r.objectStore("index"),C,Q);var O=f.downloadedEndTime===-1;C=O?r.objectStore("index").get(l):g.r2.resolve(void 0);var v={fmts:"music",format:{}};r=O&&K&&!L.WV()?g.Qw(r.objectStore("index"),v,l):g.r2.resolve(void 0);return g.r2.all([r,C,h,Q]).then(function(U){U=g.m(U);U.next();U=U.next().value;xc--;var a=g.vN(A);if(a!==4&&O&&K||U!==void 0&&g.sG1(U.fmts))a=1,g.qg(A, a);return a})}),8); case 8:return w.return(w.W);case 6:I=g.NX(w);xc--;d=g.vN(A);if(d===4)return w.return(d);g.qg(A,4);throw I;}})}; g.HJ6=function(A){var L,B;return g.c(function(f){if(f.N==1)return g.X(f,g.Ab(),2);if(f.N!=3){L=f.W;if(!L)throw g.g2("ri");return g.X(f,g.PN(L),3)}B=f.W;return f.return(g.mz(B,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(K){var V=IDBKeyRange.bound(A+"|",A+"~");return K.objectStore("index").getAll(V).then(function(J){return J.map(function(R){return R?R.format:{}})})}))})}; bJe=function(A,L,B,f,K){var V,J,R;return g.c(function(Z){if(Z.N==1)return g.X(Z,g.Ab(),2);if(Z.N!=3){V=Z.W;if(!V)throw g.g2("rc");return g.X(Z,g.PN(V),3)}J=Z.W;R=g.mz(J,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(N){var F=""+A+"|"+L+"|"+B+"|"+String(f).padStart(10,"0");return N.objectStore("media").get(F)}); return K?Z.return(R.then(function(N){if(N===void 0)throw Error("No data from indexDb");return h97(K,N)}).catch(function(N){throw new g.iL("Error while reading chunk: "+N.name+", "+N.message); })):Z.return(R)})}; g.sG1=function(A){return A?A==="music"?!0:A.includes("dlt=-1")||!A.includes("dlt="):!1}; Glw=function(A,L){return""+A+"|"+(L?"v":"a")}; rev=function(A){var L={};return J_((L.dlt=A.downloadedEndTime.toString(),L.mket=A.maxKnownEndTime.toString(),L.avbr=A.averageByteRate.toString(),L))}; kl8=function(A){var L={},B={};A=g.m(A);for(var f=A.next();!f.done;f=A.next()){var K=f.value,V=K.split("|");K.match(g.tLL)?(f=Number(V.pop()),isNaN(f)?B[K]="?":(V=V.join("|"),(K=L[V])?(V=K[K.length-1],f===V.end+1?V.end=f:K.push({start:f,end:f})):L[V]=[{start:f,end:f}])):B[K]="?"}A=g.m(Object.keys(L));for(f=A.next();!f.done;f=A.next())f=f.value,B[f]=L[f].map(function(J){return J.start+"-"+J.end}).join(","); return B}; no=function(A){g.SN.call(this);this.N=null;this.V=new WC;this.N=null;this.T=new Set;this.crossOrigin=A||""}; T9D=function(A,L,B){for(B=zd(A,B);B>=0;){var f=A.levels[B];if(f.isLoaded(uS(f,L))&&(f=g.ao(f,L)))return f;B--}return g.ao(A.levels[0],L)}; m0Q=function(A,L,B){B=zd(A,B);for(var f,K;B>=0;B--)if(f=A.levels[B],K=uS(f,L),!f.isLoaded(K)){f=A;var V=B,J=V+"-"+K;f.T.has(J)||(f.T.add(J),f.V.enqueue(V,{Q$:V,Jb:K}))}lJ7(A)}; lJ7=function(A){if(!A.N&&!A.V.isEmpty()){var L=A.V.remove();A.N=QG6(A,L)}}; QG6=function(A,L){var B=document.createElement("img");A.crossOrigin&&(B.crossOrigin=A.crossOrigin);B.src=A.levels[L.Q$].MQ(L.Jb);B.onload=function(){var f=L.Q$,K=L.Jb;A.N!==null&&(A.N.onload=null,A.N=null);f=A.levels[f];f.loaded.add(K);lJ7(A);var V=f.columns*f.rows;K*=V;f=Math.min(K+V-1,f.rV()-1);K=[K,f];A.publish("l",K[0],K[1])}; return B}; g.Aa=function(A,L,B,f){this.level=A;this.U=L;this.loaded=new Set;this.level=A;this.U=L;A=B.split("#");this.width=Math.floor(Number(A[0]));this.height=Math.floor(Number(A[1]));this.frameCount=Math.floor(Number(A[2]));this.columns=Math.floor(Number(A[3]));this.rows=Math.floor(Number(A[4]));this.N=Math.floor(Number(A[5]));this.V=A[6];this.signature=A[7];this.videoLength=f}; uS=function(A,L){return Math.floor(L/(A.columns*A.rows))}; g.ao=function(A,L){L>=A.w0()&&A.ih();var B=uS(A,L),f=A.columns*A.rows,K=L%f;L=K%A.columns;K=Math.floor(K/A.columns);var V=A.ih()+1-f*B;if(V1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; var r1y=function(A,L,B,f,K){return pw[S[2]](this,30,A,L,B,f,K)}; CML=function(A,L,B){return(A=A.levels[L])?A.RQ(B):-1}; zd=function(A,L){var B=A.U.get(L);if(B)return B;B=A.levels.length;for(var f=0;f=L)return A.U.set(L,f),f;A.U.set(L,B-1);return B-1}; oq=function(A,L,B,f){B=B.split("#");B=[B[1],B[2],0,B[3],B[4],-1,B[0],""].join("#");g.Aa.call(this,A,L,B,0);this.W=null;this.D=f?2:0}; BK=function(A,L,B,f){Lr.call(this,A,0,void 0,L,!(f===void 0||!f));for(A=0;A30?A.limitedPlaybackDurationInSeconds=30:B<30&&B>10&&(A.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":A.limitedPlaybackDurationInSeconds=B*.2}}; Ja=function(A,L){var B=L.raw_watch_next_response;if(!B){var f=L.watch_next_response;f&&(B=JSON.parse(f))}if(B){A.Vj=B;var K=A.Vj.playerCueRangeSet;K&&g.ZQ(A,K);var V=A.Vj.playerOverlays;if(V){var J=V.playerOverlayRenderer;if(J){var R=J.autonavToggle;R&&(A.autoplaySwitchButtonRenderer=g.y(R,vYe),A.J("web_player_autonav_use_server_provided_state")&&NG(A)&&(A.autonavState=A.autoplaySwitchButtonRenderer.enabled?2:1));var Z=J.videoDetails;if(Z){var N=Z.embeddedPlayerOverlayVideoDetailsRenderer;var F=Z.playerOverlayVideoDetailsRenderer; F&&(F.title&&(L.title=g.wq(F.title)),F.subtitle&&(L.subtitle=g.wq(F.subtitle)))}g.PL(A.tF)&&(A.t$=!!J.addToMenu);q4y(A,J.shareButton);J.startPosition&&J.endPosition&&(A.progressBarStartPosition=J.startPosition,A.progressBarEndPosition=J.endPosition);var D=J.gatedActionsOverlayRenderer;D&&(A.XN=g.y(D,PMe));var I,d,w,r=g.y((I=A.getWatchNextResponse())==null?void 0:(d=I.playerOverlays)==null?void 0:(w=d.playerOverlayRenderer)==null?void 0:w.infoPanel,x00);if(r){A.Qu=Number(r==null?void 0:r.durationMs)|| NaN;if(r==null?0:r.infoPanelOverviewViewModel)A.KY=r==null?void 0:r.infoPanelOverviewViewModel;if(r==null?0:r.infoPanelDetailsViewModel)A.O_=r==null?void 0:r.infoPanelDetailsViewModel}A.showSeekingControls=!!J.showSeekingControls}}var h,Q,l=(h=A.getWatchNextResponse())==null?void 0:(Q=h.contents)==null?void 0:Q.twoColumnWatchNextResults;if(l){var C=l.desktopOverlay&&g.y(l.desktopOverlay,e9w);C&&(C.suppressShareButton&&(A.showShareButton=!1),C.suppressWatchLaterButton&&(A.t$=!1))}N&&nY0(A,L,N);var O= ZG(0,L.autoplay_count),v=A.getWatchNextResponse(),U,a=(U=v.contents)==null?void 0:U.twoColumnWatchNextResults,o0,B6,Ve,DS=(o0=v.playerOverlays)==null?void 0:(B6=o0.playerOverlayRenderer)==null?void 0:(Ve=B6.autoplay)==null?void 0:Ve.playerOverlayAutoplayRenderer,fw=d08(A),ry,uL=(ry=v.contents)==null?void 0:ry.singleColumnWatchNextResults;if(uL){var Jf;if(((Jf=uL.autoplay)==null?0:Jf.autoplay)&&!uL.playlist){var MC=uL.autoplay.autoplay.sets,nw={},Xk=new cN(A.K()),e5=null,mt;if(MC){for(var T=g.m(MC), aO=T.next();!aO.done;aO=T.next()){var YW=aO.value.autoplayVideoRenderer;if(YW&&YW.compactVideoRenderer){e5=YW.compactVideoRenderer;break}}if(mt=MC[0].autoplayVideo){var R0=mt.clickTrackingParams;R0&&(nw.itct=R0);nw.autonav="1";nw.playnext=String(O)}}else nw.feature="related-auto";var TK=g.y(mt,g.FZ);if(e5){Xk.videoId=e5.videoId;var b=e5.shortBylineText;b&&(Xk.author=g.wq(b));var Lw=e5.title;Lw&&(Xk.title=g.wq(Lw))}else TK!=null&&TK.videoId&&(Xk.videoId=TK.videoId);Xk.xq=nw;A.suggestions=[];A.M7=Xk}}if(fw){for(var ro= [],SZ=g.m(fw),xg=SZ.next();!xg.done;xg=SZ.next()){var R8=xg.value,a0=void 0,oO=null;if(R8.endScreenVideoRenderer){var tO=R8.endScreenVideoRenderer,k=tO.title;oO=new cN(A.K());oO.videoId=tO.videoId;oO.lengthSeconds=tO.lengthInSeconds||0;var H=tO.publishedTimeText;H&&(oO.publishedTimeText=g.wq(H));var t=tO.shortBylineText;t&&(oO.author=g.wq(t));var E=tO.shortViewCountText;E&&(oO.shortViewCount=g.wq(E));if(k){oO.title=g.wq(k);var e=k.accessibility;if(e){var SE=e.accessibilityData;SE&&SE.label&&(oO.ariaLabel= SE.label)}}var z=tO.navigationEndpoint;if(z){a0=z.clickTrackingParams;var P=g.y(z,g.FZ),M=g.y(z,g.Mt);P?oO.qW=P:M!=null&&(oO.watchUrl=M.url)}var mv=tO.thumbnailOverlays;if(mv)for(var Qe=g.m(mv),ye=Qe.next();!ye.done;ye=Qe.next()){var T8=ye.value.thumbnailOverlayTimeStatusRenderer;if(T8)if(T8.style==="LIVE"){oO.isLivePlayback=!0;break}else if(T8.style==="UPCOMING"){oO.isUpcoming=!0;break}}oO.ea=m$(tO.thumbnail)}else if(R8.endScreenPlaylistRenderer){var ff=R8.endScreenPlaylistRenderer,t1=ff.navigationEndpoint; if(!t1)continue;var Yg=g.y(t1,g.FZ);if(!Yg)continue;var eZ=Yg.videoId;oO=new Ee(A.K());oO.playlistId=ff.playlistId;oO.playlistLength=Number(ff.videoCount)||0;oO.N=eZ||null;oO.videoId=eZ;var nf=ff.title;nf&&(oO.title=g.wq(nf));var lL=ff.shortBylineText;lL&&(oO.author=g.wq(lL));a0=t1.clickTrackingParams;oO.ea=m$(ff.thumbnail)}oO&&(a0&&(oO.sessionData={itct:a0}),ro.push(oO))}A.suggestions=ro}if(DS){A.HC=!!DS.preferImmediateRedirect;A.mH=A.mH||!!DS.webShowNewAutonavCountdown;A.Pk=A.Pk||!!DS.webShowBigThumbnailEndscreen; if(A.mH||A.Pk){var W4=a||null,Cw=new cN(A.K());Cw.videoId=DS.videoId;var sd=DS.videoTitle;if(sd){Cw.title=g.wq(sd);var Y7=sd.accessibility;if(Y7){var E6=Y7.accessibilityData;E6&&E6.label&&(Cw.ariaLabel=E6.label)}}var Hw=DS.byline;Hw&&(Cw.author=g.wq(Hw));var AO=DS.publishedTimeText;AO&&(Cw.publishedTimeText=g.wq(AO));var fx=DS.shortViewCountText;fx&&(Cw.shortViewCount=g.wq(fx));var cw=DS.thumbnailOverlays;if(cw)for(var iB=g.m(cw),yR=iB.next();!yR.done;yR=iB.next()){var CG=yR.value.thumbnailOverlayTimeStatusRenderer; if(CG)if(CG.style==="LIVE"){Cw.isLivePlayback=!0;break}else if(CG.style==="UPCOMING"){Cw.isUpcoming=!0;break}else if(CG.style==="DEFAULT"&&CG.text){Cw.lengthText=g.wq(CG.text);var Ir=CG.text.accessibility;if(Ir){var w6=Ir.accessibilityData;w6&&w6.label&&(Cw.CZ=w6.label||"")}break}}Cw.ea=m$(DS.background);var VI=DS.nextButton;if(VI){var Js=VI.buttonRenderer;if(Js){var JD=Js.navigationEndpoint;if(JD){var GO=g.y(JD,g.FZ);GO&&(Cw.qW=GO)}}}if(DS.topBadges){var S1=DS.topBadges[0];if(S1){var RK=g.y(S1,z9k); RK&&RK.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Cw.zyM=!0)}}var Zn=DS.alternativeTitle;Zn&&(Cw.Eh=g.wq(Zn));var nv={autonav:"1",playnext:String(O)};Cw.playlistId&&(nv.autoplay="1");if(W4){var cg,M4,Nh,td,kb=(cg=W4.autoplay)==null?void 0:(M4=cg.autoplay)==null?void 0:(Nh=M4.sets)==null?void 0:(td=Nh[0])==null?void 0:td.autoplayVideo;if(kb){var Fs=kb.clickTrackingParams;Fs&&(nv.itct=Fs);var Dn=g.y(kb,g.FZ);Dn&&(Cw.MS=Dn)}}else if(DS){var di,IK,sz,zV=(di=DS.nextButton)==null?void 0:(IK=di.buttonRenderer)== null?void 0:(sz=IK.navigationEndpoint)==null?void 0:sz.clickTrackingParams;zV&&(nv.itct=zV)}nv.itct||(nv.feature="related-auto");Cw.xq=nv;A.suggestions||(A.suggestions=[]);A.M7=Cw}DS.countDownSecs!=null&&(A.QW=DS.countDownSecs*1E3);DS.countDownSecsForFullscreen!=null&&(A.gg=DS.countDownSecsForFullscreen>=0?DS.countDownSecsForFullscreen*1E3:-1);A.J("web_autonav_color_transition")&&DS.watchToWatchTransitionRenderer&&(A.watchToWatchTransitionRenderer=g.y(DS.watchToWatchTransitionRenderer,uED))}var Tw= d08(A);if(Tw){var lH,L8,ms,dH=Tw==null?void 0:(lH=Tw[0])==null?void 0:(L8=lH.endScreenVideoRenderer)==null?void 0:(ms=L8.navigationEndpoint)==null?void 0:ms.clickTrackingParams,QJ=g.DQ(A);dH&&QJ&&(QJ.sessionData={itct:dH})}A.Vj.currentVideoThumbnail&&(A.ea=m$(A.Vj.currentVideoThumbnail));var Ct,pX,y4,jt,gn,iH=(Ct=A.Vj)==null?void 0:(pX=Ct.contents)==null?void 0:(y4=pX.twoColumnWatchNextResults)==null?void 0:(jt=y4.results)==null?void 0:(gn=jt.results)==null?void 0:gn.contents;if(iH&&iH[0]){var BM= iH[0].videoPrimaryInfoRenderer;BM&&BM&&BM.subtitle&&(A.wp=g.wq(BM.subtitle))}if(iH&&iH[1]){var O2,Pf,E2,tG,fe=(O2=iH[1].videoSecondaryInfoRenderer)==null?void 0:(Pf=O2.owner)==null?void 0:(E2=Pf.videoOwnerRenderer)==null?void 0:(tG=E2.thumbnail)==null?void 0:tG.thumbnails;fe&&fe.length&&(A.profilePicture=fe[fe.length-1].url)}var Tg=DG(L),xL,Amw=(xL=A.getWatchNextResponse())==null?void 0:xL.onResponseReceivedEndpoints;if(Amw)for(var LOE=g.m(Amw),Um=LOE.next();!Um.done;Um=LOE.next()){var Ws=Um.value; g.y(Ws,dp)&&(A.u4=g.y(Ws,dp));var mY=g.y(Ws,aJD),oGD=void 0;if((oGD=mY)==null?0:oGD.entityKeys)A.jb=mY.entityKeys||[],mY.visibleOnLoadKeys&&(A.visibleOnLoadKeys=mY.visibleOnLoadKeys)}if(A.J("web_key_moments_markers")){var w4I=g.Iq.getState().entities,p4f=g.xv("visibility_override","markersVisibilityOverrideEntity");var cV=nz(w4I,"markersVisibilityOverrideEntity",p4f);A.JF=(cV==null?void 0:cV.videoId)===(A.videoId||Tg)&&(cV==null?0:cV.visibilityOverrideMarkersKey)?cV.visibilityOverrideMarkersKey:A.visibleOnLoadKeys; A.visibleOnLoadKeys=[].concat(g.x7(A.JF))}}}; OJ7=function(A,L){if(L=L.raw_reel_item_watch_response)A.reelItemWatchResponse=L}; Ane=function(A){return!!A&&isFinite(A)&&A>1E9}; NG=function(A){var L;return((L=A.autoplaySwitchButtonRenderer)==null?void 0:L.enabled)!==void 0}; wp=function(A){return!!(A.V&&A.V.videoInfos&&A.V.videoInfos.length)}; g.Gp=function(A){var L=A.X;A.J("html5_gapless_unlimit_format_selection")&&pr(A)&&(L=!1);var B=!!A.N&&A.N.iC,f=A.tF,K=A.QE(),V=y7(A),J=A.ZM,R=L,Z=A.isOtf();L=A.Os();var N=A.I7,F=A.getUserAudio51Preference(),D=jC(A),I=gp(A),d=new nae(f);if(f.hw()||f.J("html5_logging_format_selection"))d.N=!0;d.sx=V;d.ZM=J&&f.G;d.JF=F;g.xz("windows nt 5.1")&&!g.de&&(d.DZ=!0);if(V=K)V=g.D_(f)?aLv(f):!1;V&&(d.Wn=!0);R&&(d.DZ=!0,d.TZ=!0);Z&&!f.J("html5_otf_prefer_vp9")&&(d.DZ=!0);f.playerStyle==="picasaweb"&&(Z&&(d.DZ= !1),d.qp=!1);N&&(d.DZ=!0);u6(f.D,a4.CHANNELS)&&(f.J("html5_enable_ac3")&&(d.U=!0),f.J("html5_enable_eac3")&&(d.D=!0),f.J("html5_enable_ac3_gapless")&&(d.S4=!0));f.J("html5_block_8k_hfr")&&(d.Ox=!0);d.T=g.Am(f.experiments,"html5_max_selectable_quality_ordinal");d.X=g.Am(f.experiments,"html5_min_selectable_quality_ordinal");OR&&(d.N8=480);if(B||K)d.qp=!1;d.Nl=!1;d.disableAv1=D;B=KM(f,d.W,void 0,d.disableAv1);B>0&&B<2160&&(Se()||f.J("html5_format_hybridization"))&&(d.W.supportsChangeType=+Se(),d.Tb= B);B>=2160&&(d.wT=!0);ymC()&&!f.J("disable_av1_setting")&&(d.W.serveVp9OverAv1IfHigherRes=0,d.nD=!1);d.Os=L;d.Cr=g.ns||Vz()&&!L?!1:!0;d.G=f.J("html5_format_hybridization");d.Uv=f.J("html5_disable_encrypted_vp9_live_non_2k_4k");d.jI=I;iS(A)&&(d.k6=!0);zc()&&A.playerResponse&&A.playerResponse.playerConfig&&A.playerResponse.playerConfig.webPlayerConfig&&A.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(d.U=!0,d.D=!0);A.X&&A.isAd()&&(A.FT&&(d.yj=A.FT),A.I_&&(d.V=A.I_));A.zt()&& (d.Vj=g.Am(A.tF.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));d.Ex=A.isLivePlayback&&A.U6()&&A.tF.J("html5_drm_live_audio_51");d.mH=A.XV;d.zV=!iS(A);return A.cn=d}; jC=function(A){return A.tF.J("html5_disable_av1")?!0:!1}; LW7=function(A){mF("drm_pb_s",void 0,A.yj);A.xf||A.N&&PZ(A.N);var L={};A.N&&(L=CY1(A.BR,g.Gp(A),A.tF.D,A.N,function(B){return A.publish("ctmp","fmtflt",B)},!0,new Set)); L=new pM(L,A.tF,A.Ci,A.useCobaltWidevine?zc()?rp(A):!1:!1,function(B,f){A.Hn(B,f)}); g.W(A,L);A.Gt=!1;A.loading=!0;AAv(L,function(B){mF("drm_pb_f",void 0,A.yj);for(var f=g.m(B),K=f.next();!K.done;K=f.next())switch(K=K.value,K.flavor){case "fairplay":K.xf=A.xf;K.wV=A.wV;K.Ub=A.Ub;break;case "widevine":K.LL=A.LL}A.BI=B;if(A.BI.length>0&&(A.D=A.BI[0],A.tF.hw())){B={};f=g.m(Object.entries(A.D.N));for(K=f.next();!K.done;K=f.next()){var V=g.m(K.value);K=V.next().value;V=V.next().value;var J="unk";(K=K.match(/(.*)codecs="(.*)"/))&&(J=K[2]);B[J]=V}A.Hn("drmProbe",B)}A.C_()})}; oh8=function(A,L){if(L.length===0||sr(A))return null;A.tF.D.W&&(oj=!0);var B=A.Zj;var f=A.lengthSeconds,K=A.isLivePlayback,V=A.SD,J=A.tF,R=CQ0(L);if(K||V){J=J.experiments;f=new MP("",J,!0);f.W=!V;f.iC=!0;f.isManifestless=!0;f.isLive=!V;f.SD=V;K=g.m(L);for(R=K.next();!R.done;R=K.next()){var Z=R.value;R=Wp(Z,B);var N=J1(59,Z);N=qP(N.Ff||Z.url||"",N.q0,N.s);var F=N.get("id");F&&F.includes("%7E")&&(f.Wn=!0);var D=void 0;F=(D=J)==null?void 0:D.GL("html5_max_known_end_time_rebase");D=Number(Z.targetDurationSec|| 5);Z=Number(Z.maxDvrDurationSec||14400);var I=Number(N.get("mindsq")||N.get("min_sq")||"0"),d=Number(N.get("maxdsq")||N.get("max_sq")||"0")||Infinity;f.F3=f.F3||I;f.lW=f.lW||d;var w=!xa(R.mimeType);N&&OI(f,new GW(N,R,{oC:D,CO:w,xH:Z,F3:I,lW:d,T2:300,SD:V,gF:F}))}B=f}else if(R==="FORMAT_STREAM_TYPE_OTF"){f=f===void 0?0:f;V=new MP("",J.experiments,!1);V.duration=f||0;J=g.m(L);for(f=J.next();!f.done;f=J.next())f=f.value,K=Wp(f,B,V.duration),R=J1(57,f),(R=qP(R.Ff||f.url||"",R.q0,R.s))&&(K.streamType=== "FORMAT_STREAM_TYPE_OTF"?OI(V,new rR(R,K,"sq/0")):OI(V,new i7(R,K,op(f.initRange),op(f.indexRange))));V.isOtf=!0;B=V}else{f=f===void 0?0:f;V=new MP("",J.experiments,!1);V.duration=f||0;J=g.m(L);for(f=J.next();!f.done;f=J.next())N=f.value,f=Wp(N,B,V.duration),K=op(N.initRange),R=op(N.indexRange),F=J1(58,N),(N=qP(F.Ff||N.url||"",F.q0,F.s))&&OI(V,new i7(N,f,K,R));B=V}L.length>0&&(L=L[0],Rq(A)&&L.url&&(A.jD=A.jD||Y40(L.url)));L=A.isLivePlayback&&!A.SD&&!A.hd&&!A.isPremiere;A.J("html5_live_head_playable")&& (!HK(A)&&L&&A.Hn("missingLiveHeadPlayable",{}),A.tF.Wn==="yt"&&(B.Ys=!0));return B}; B3L=function(A){var L,B,f=((L=A.playerResponse)==null?void 0:(B=L.streamingData)==null?void 0:B.adaptiveFormats)||[];L=null;if(f.length>0)L=oh8(A,f);else if(!A.J("html5_deprecate_adaptive_formats_string")){A.Hn("pafmtstr",{s:A.adaptiveFormats.substring(0,50)});if((f=A.adaptiveFormats)&&!sr(A)){A.tF.D.W&&(oj=!0);f=ha(f);L=A.Zj;var K=A.lengthSeconds,V=A.isLivePlayback;B=A.SD;var J=A.tF,R=QTk(f);if(V||B){J=J==null?void 0:J.experiments;K=new MP("",J,!0);K.iC=!0;K.isManifestless=!0;K.W=!B;K.isLive=!B; K.SD=B;V=g.m(f);for(R=V.next();!R.done;R=V.next()){var Z=R.value;R=vp(Z,L);var N=qP(Z.url,Z.sp,Z.s),F=N.get("id");F&&F.includes("%7E")&&(K.Wn=!0);var D=void 0;F=(D=J)==null?void 0:D.GL("html5_max_known_end_time_rebase");D=Number(Z.target_duration_sec)||5;Z=Number(Z.max_dvr_duration_sec)||14400;var I=Number(N.get("mindsq")||N.get("min_sq")||"0"),d=Number(N.get("maxdsq")||N.get("max_sq")||"0")||Infinity;K.F3=K.F3||I;K.lW=K.lW||d;var w=!xa(R.mimeType);N&&OI(K,new GW(N,R,{oC:D,CO:w,xH:Z,F3:I,lW:d,T2:300, SD:B,gF:F}))}L=K}else if(R==="FORMAT_STREAM_TYPE_OTF"){K=K===void 0?0:K;B=new MP("",J==null?void 0:J.experiments,!1);B.duration=K||0;J=g.m(f);for(K=J.next();!K.done;K=J.next())if(N=K.value,K=vp(N,L,B.duration),V=qP(N.url,N.sp,N.s))K.streamType==="FORMAT_STREAM_TYPE_OTF"?OI(B,new rR(V,K,"sq/0")):(R=AL(N.init),N=AL(N.index),OI(B,new i7(V,K,R,N)));B.isOtf=!0;L=B}else{K=K===void 0?0:K;B=new MP("",J==null?void 0:J.experiments,!1);B.duration=K||0;J=g.m(f);for(K=J.next();!K.done;K=J.next())N=K.value,K=vp(N, L,B.duration),V=AL(N.init),R=AL(N.index),(N=qP(N.url,N.sp,N.s))&&OI(B,new i7(N,K,V,R));L=B}f.length>0&&(f=f[0],Rq(A)&&f.url&&(A.jD=A.jD||Y40(f.url)));f=A.isLivePlayback&&!A.SD&&!A.hd&&!A.isPremiere;A.J("html5_live_head_playable")&&(!HK(A)&&f&&A.Hn("missingLiveHeadPlayable",{}),A.tF.Wn==="yt"&&(L.Ys=!0))}else L=null;A.Hn("pafmts",{isManifestFilled:!!L})}if(!L)return!1;bj(A,L);return!0}; sr=function(A){return zc()?!rp(A):aM()?!(!A.xf||!A.J("html5_enable_safari_fairplay")&&h7()):!1}; rp=function(A){return A.J("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.ZQ=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next())if(B=B.value,B.cueRangeSetIdentifier){var f=void 0;A.Ym.set(B.cueRangeSetIdentifier,(f=B.playerCueRanges)!=null?f:[])}}; ta=function(A){return!(!A.N||!A.N.isManifestless)}; kT=function(A){return A.sx?A.isLowLatencyLiveStream&&A.N!=null&&n3(A.N)>=5:A.isLowLatencyLiveStream&&A.N!=void 0&&n3(A.N)>=5}; fyE=function(A){return zc()&&rp(A)?!1:sr(A)&&(g.dY(A.tF)?!A.isLivePlayback:A.hlsvp)||!h7()||A.jH?!0:!1}; VML=function(A){A.loading=!0;A.TZ=!1;if(KWE(A))g.HJ6(A.videoId).then(function(f){var K;if((K=A.playerResponse)!=null&&K.streamingData){K=[];f=g.m(f);for(var V=f.next();!V.done;V=f.next())V=Object.assign({},V.value),V.signatureCipher="",K.push(V);K.length<2&&A.Hn("offmlf",{len:K.length});K=oh8(A,K);y7(A)&&va7(K,!1);bj(A,K);A.Hn("dlr",{})}else A.Hn("offsdm",{cotn:A.tI?A.tI.cotn:"0",cpn:A.clientPlaybackNonce})}).then(function(){A.C_()}); else{dy(A.sZ)||g.CE(new g.iL("DASH MPD Origin invalid: ",A.sZ));var L=A.sZ,B=g.Am(A.tF.experiments,"dash_manifest_version")||4;L=g.ip(L,{mpd_version:B});A.isLowLatencyLiveStream&&A.latencyClass!=="NORMAL"||(L=g.ip(L,{pacing:0}));Y2v(L,A.tF.experiments,A.isLivePlayback).then(function(f){A.TL()||(bj(A,f,!0),mF("mrc",void 0,A.yj),A.C_())},function(f){A.TL()||(A.loading=!1,A.publish("dataloaderror",new g.K$("manifest.net.retryexhausted",{backend:"manifest", rc:f.status},1)))}); mF("mrs",void 0,A.yj)}}; Jnv=function(A){var L;return!((L=A.tF.getWebPlayerContextConfig())==null||!L.enableProximaLowLatency)}; Tp=function(A){if(!A.isProximaLatencyEligible)return 0;var L=b6();return Jnv(A)?2:L===1?1:A.J("html5_enable_proxima")?2:0}; bj=function(A,L,B){B=B===void 0?!1:B;A.R_=void 0;A.N=L;g.W(A,L);L.F3=A.F3;L.lW=A.lW;L.SO=A.SO;L.E0=A.E0;L.HY=A.HY;A.Qi&&(L.yj=new vq(A.Qi));(A.QE()||g.lj(A))&&A.p9.push("webgl");A.N.isLive||(A.isLivePlayback=!1);var f=L.sourceUrl.split("/");if(A.sx?f.indexOf("manifest_duration")!==-1:f.indexOf("manifest_duration")!=-1)A.JA=Number(f[f.indexOf("manifest_duration")+1]);if(L.W||L.isManifestless)L.subscribe("clienttemp",A.Hn,A),B?L.subscribe("refresh",A.KT,A):L.subscribe("cuepointsadded",A.xO,A);PZ(L)? A.Gt=!0:jx=void 0;A.hd&&(L.U=A.hd,L.isLive=!0,A.isLivePlayback=!0);L.isPremiere=A.isPremiere;L.isLiveHeadPlayable=A.isLiveHeadPlayable}; SMv=function(A,L){var B=L||fyE(A)||A.isExternallyHostedPodcast;if(!A.N||B)return A.Hn("skipDash",{dm:!!A.N,air:L,dd:A.jH,mss:h7(),"3pp":A.isExternallyHostedPodcast}),Xa();y7(A)&&va7(A.N,A.isLivePlayback);return OQ().then(function(){return $R1(A.BR,g.Gp(A),A.tF.D,A.N,A.D,function(f){return A.publish("ctmp","fmtflt",f)},A.mL,mX(A)).then(function(f){A.zc(f); A.BR.W=null;/^av/.test(A.clientPlaybackNonce)&&A.cn&&A.Hn("av1",A.cn.W)})})}; ZS8=function(A,L){if(L&&A.hlsvp)return Xa();if(A.hlsFormats){if(L=ha(A.hlsFormats)){for(var B=[],f=g.m(L),K=f.next();!K.done;K=f.next()){K=K.value;K.url&&(K.url=$08(K.url));var V=void 0;((V=A.cn)==null?0:V.N)&&B.push(K.itag)}var J;((J=A.cn)==null?0:J.N)&&B.length>0&&A.Hn("hlsfmt",{itags:B.join(".")})}A.nD=INv(A.tF,L);A.nD&&RpE(A,A.nD);J=A.clientPlaybackNonce;var R,Z,N,F;return gdw(A.tF,A.isAd(),L,(F=(R=A.playerResponse)==null?void 0:(Z=R.captions)==null?void 0:(N=Z.playerCaptionsRenderer)==null?void 0: N.baseUrl)!=null?F:null,A.dg,J,function(D){return A.publish("ctmp","hlsflt",D)}).then(function(D){for(var I=0,d=[],w=g.m(D),r=w.next();!r.done;r=w.next()){r=r.value; var h=void 0;d.push((h=r.getInfo())==null?void 0:h.itag);var Q=h=void 0;((h=r.getInfo())==null?void 0:(Q=h.audio)==null?void 0:Q.numChannels)>I&&(I=r.getInfo().audio.numChannels)}I>2&&A.Hn("hlschl",{mn:I});var l;((l=A.cn)==null?0:l.N)&&A.Hn("hlsfmtaf",{itags:d.join(".")});var C;if(A.J("html5_enable_vp9_fairplay")&&((C=A.D)==null?0:F5(C)))for(A.Hn("drm",{sbdlfbk:1}),I=g.m(A.BI),d=I.next();!d.done;d=I.next())if(d=d.value,NM(d)){A.D=d;break}Q7(A,D)})}return Xa()}; N30=function(A){if(A.isExternallyHostedPodcast&&A.Nh){var L=ha(A.Nh);if(!L[0])return Xa();A.oP=L[0];return s2D(A.tF,L[0]).then(function(B){Q7(A,B)})}return A.b2&&A.Tm?ry0(A.tF,A.isAd(),A.b2).then(function(B){Q7(A,B)}):Xa()}; DFL=function(A){if(A.isExternallyHostedPodcast)return Xa();var L=ha(A.Nh,A.bI);if(A.hlsvp){var B=iJ0(A.hlsvp,A.clientPlaybackNonce,A.dg);L.push(B)}return GAv(A.tF,A.isAd(),L,FW6(A)).then(function(f){Q7(A,f)})}; Q7=function(A,L){A.Nl=L;A.zc(new YQ(g.mn(A.Nl,function(B){return B.getInfo()})))}; FW6=function(A){var L={cpn:A.clientPlaybackNonce,c:A.tF.N.c,cver:A.tF.N.cver};A.Ae&&(L.ptk=A.Ae,L.oid=A.gO,L.ptchn=A.YZ,L.pltype=A.rO,A.y5&&(L.m=A.y5));return L}; g.Cr=function(A){return sr(A)&&A.xf?(A={},A.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",A):A.W&&A.W.Zj||null}; dFe=function(A){var L=ij(A);return L&&L.text?g.wq(L.text):A.paidContentOverlayText}; IyD=function(A){var L=ij(A);return L&&L.durationMs?na(L.durationMs):A.paidContentOverlayDurationMs}; ij=function(A){var L,B,f;return A.playerResponse&&A.playerResponse.paidContentOverlay&&A.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.y((L=A.Vj)==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.playerDisclosure,w_Q)||null}; p_y=function(A){if(!A)return null;A=g.m(A);for(var L=A.next();!L.done;L=A.next()){var B=void 0,f=void 0;if(L=(B=L.value.adPlacementRenderer)==null?void 0:(f=B.renderer)==null?void 0:f.videoAdTrackingRenderer)return L}return null}; $T=function(A){var L="";if(A.jj)return A.jj;A.isLivePlayback&&(L=A.allowLiveDvr?"dvr":A.isPremiere?"lp":A.hd?"window":"live");A.SD&&(L="post");return L}; g.XZ=function(A,L){return typeof A.keywords[L]!=="string"?null:A.keywords[L]}; yny=function(A){return!!A.N3||!!A.mU||!!A.dw||!!A.iF||A.iT}; g.Or=function(A){return!!(A.sZ||A.Nh||A.b2||A.hlsvp||A.F$())}; V7=function(A){if(A.J("html5_onesie")&&A.errorCode)return!1;var L=g.zK(A.p9,"ypc");A.ypcPreview&&(L=!1);return A.gX()&&!A.loading&&(g.Or(A)||g.zK(A.p9,"heartbeat")||L)}; ha=function(A,L){A=Sk(A);var B={};if(L){L=g.m(L.split(","));for(var f=L.next();!f.done;f=L.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(B[f[1]]={width:f[2],height:f[3]})}L=g.m(A);for(f=L.next();!f.done;f=L.next()){f=f.value;var K=B[f.itag];K&&(f.width=K.width,f.height=K.height)}return A}; q4y=function(A,L){A.showShareButton=!!L;var B,f,K=((B=g.y(L,g.te))==null?void 0:B.navigationEndpoint)||((f=g.y(L,g.te))==null?void 0:f.command);K&&(A.kR=!!g.y(K,jUE))}; XyE=function(A,L){var B=L.raw_embedded_player_response;if(!B){var f=L.embedded_player_response;f&&(B=JSON.parse(f))}B&&(A.Yu=B);if(A.Yu){A.embeddedPlayerConfig=A.Yu.embeddedPlayerConfig||null;if(B=A.Yu.videoFlags)B.playableInEmbed&&(A.allowEmbed=!0),B.isPrivate&&(A.isPrivate=!0),B.userDisplayName&&(L.user_display_name=B.userDisplayName),B.userDisplayImage&&(L.user_display_image=B.userDisplayImage);if((B=A.Yu.embedPreview)&&B.thumbnailPreviewRenderer){B=B.thumbnailPreviewRenderer;zS7(A,B.controlBgHtml); if(f=B.defaultThumbnail)A.ea=m$(f);A.J("embeds_web_enable_search_button")&&B.searchButton&&(f=g.y(B.searchButton,g.te))&&(A.KR=g.y(f.navigationEndpoint,g.Er));(f=g.y(B==null?void 0:B.videoDetails,gh6))&&nY0(A,L,f);f=g.y(B==null?void 0:B.videoDetails,G0e);A.t$=!!B.addToWatchLaterButton;q4y(A,B.shareButton);if(f==null?0:f.musicVideoType)A.musicVideoType=f.musicVideoType;var K,V,J,R,Z;if(f=g.y((K=A.getEmbeddedPlayerResponse())==null?void 0:(V=K.embedPreview)==null?void 0:(J=V.thumbnailPreviewRenderer)== null?void 0:(R=J.playButton)==null?void 0:(Z=R.buttonRenderer)==null?void 0:Z.navigationEndpoint,g.FZ))kAy(A,f),A.videoId=f.videoId||A.videoId;B.videoDurationSeconds&&(A.lengthSeconds=na(B.videoDurationSeconds));B.webPlayerActionsPorting&&ndQ(A,B.webPlayerActionsPorting);if(K=g.y(B==null?void 0:B.playlist,rnD)){A.Of=!0;V=[];J=Number(K.currentIndex);if(K.contents)for(R=0,Z=K.contents.length;R0:A.Pz?!1:A.tF.Of||A.tF.cR||!g.MM(A.tF)?!0:!1:(A.Pz?0:A.N8)&&g.MM(A.tF)?!0:!1;A.J("html5_log_detailpage_autoplay")&&nr(A)==="detailpage"&&A.Hn("autoplay_info",{autoplay:A.BV,autonav:A.isAutonav,wasDompaused:A.Pz,result:L});return L}; g.Aj=function(A){return A.oauthToken||A.tF.cI}; QU6=function(A){if(A.J("html5_stateful_audio_normalization")){var L=1,B=g.Am(A.tF.experiments,"html5_default_ad_gain");B&&A.isAd()&&(L=B);var f,K;B=(K=(f=A.U)==null?void 0:f.audio.U)!=null?K:A.EL;if(B==null||isNaN(B))A=mFy(A);else{f=(0,g.bc)();A.cI=1;K=f-A.tF.w$<=A.maxStatefulTimeThresholdSec*1E3;A.applyStatefulNormalization&&K?A.cI=2:K||(A.tF.FT=Infinity,A.tF.w$=NaN);K=(A.cI===2?g.B4(A.tF.FT,A.minimumLoudnessTargetLkfs,A.loudnessTargetLkfs):A.loudnessTargetLkfs)-B;if(A.cI!==2){var V,J,R,Z,N=((V= A.playerResponse)==null?void 0:(J=V.playerConfig)==null?void 0:(R=J.audioConfig)==null?void 0:(Z=R.loudnessNormalizationConfig)==null?void 0:Z.statelessLoudnessAdjustmentGain)||0;K+=N}K=Math.min(K,0);A.preserveStatefulLoudnessTarget&&(A.tF.FT=B+K,A.tF.w$=f);A=Math.min(1,Math.pow(10,K/20))||L}}else A=mFy(A);return A}; mFy=function(A){var L=1,B=g.Am(A.tF.experiments,"html5_default_ad_gain");B&&A.isAd()&&(L=B);var f,K;B=((f=A.U)==null?void 0:f.audio.V)!=null?(K=A.U)==null?void 0:K.audio.V:A.EQ;isNaN(B)||(A.cI=4);return Math.min(1,Math.pow(10,-B/20))||L}; y7=function(A){var L=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],B=ge(A.tF)==="TVHTML5_SIMPLY"&&A.tF.N.ctheme==="MUSIC";!A.qh&&(g.cH(A.tF)||g.Z_(A.tF)||B)&&(L.includes(A.musicVideoType)||A.isExternallyHostedPodcast)&&(A.qh=!0);if(L=g.ng())L=/Starboard\/([0-9]+)/.exec(g.fa()),L=(L?parseInt(L[1],10):NaN)<10;B=A.tF;B=(ge(B)==="TVHTML5_CAST"||ge(B)==="TVHTML5"&&(B.N.cver.startsWith("6.20130725")||B.N.cver.startsWith("6.20130726")))&&A.tF.N.ctheme==="MUSIC";var f;if(f=!A.qh)B||(B= A.tF,B=ge(B)==="TVHTML5"&&B.N.cver.startsWith("7")),f=B;f&&!L&&(L=A.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",B=(A.J("cast_prefer_audio_only_for_atv_and_uploads")||A.J("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&A.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",L||B||A.isExternallyHostedPodcast)&&(A.qh=!0);return A.tF.deviceIsAudioOnly||A.qh&&A.tF.G}; gp=function(A){var L,B,f;return((L=A.playerResponse)==null?void 0:(B=L.playerConfig)==null?void 0:(f=B.compositeVideoConfig)==null?void 0:f.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; C4D=function(A){var L,B,f,K=(L=A.playerResponse)==null?void 0:(B=L.playerConfig)==null?void 0:(f=B.compositeVideoConfig)==null?void 0:f.sourceConfigs,V,J,R;A=(V=A.playerResponse)==null?void 0:(J=V.playerConfig)==null?void 0:(R=J.compositeVideoConfig)==null?void 0:R.defaultActiveSourceVideoId;if(!K||!K.length)return"";A||(A=K[0].videoId||"");K=g.m(K);for(V=K.next();!V.done;V=K.next())if(V=V.value,V.videoId===A&&V.audioTracks)for(V=g.m(V.audioTracks),J=V.next();!J.done;J=V.next())if(J=J.value,J.isDefaultForSource)return J.id|| "";return""}; g.iS1=function(A){return A.iC()&&iS(A)}; Lm=function(A){var L,B,f;return!!((L=A.playerResponse)==null?0:(B=L.playerConfig)==null?0:(f=B.mediaCommonConfig)==null?0:f.splitScreenEligible)}; oh=function(A){var L;return!((L=A.playerResponse)==null||!L.compositePlayabilityStatus)}; $F7=function(A){return isNaN(A)?0:Math.max((Date.now()-A)/1E3-30,0)}; Bh=function(A){return!(!A.Sb||!A.tF.G)&&A.F$()}; fm=function(A){return A.dL&&A.enableServerStitchedDai}; X_v=function(A){return A.qI&&!A.Qi}; iS=function(A){var L=A.J("html5_enable_sabr_on_drive")&&A.tF.Wn==="gd";if(A.p$)return A.qI&&A.Hn("fds",{fds:!0},!0),!1;if(A.tF.Wn!=="yt"&&!L)return A.qI&&A.Hn("dsvn",{ns:A.tF.Wn},!0),!1;if(A.cotn||!A.N||A.N.isOtf&&!A.J("html5_enable_sabr_otf_in_client")||A.V&&!A.V.N||A.DC&&!A.J("html5_enable_sabr_csdai"))return!1;if(A.J("html5_use_sabr_requests_for_debugging"))return!0;A.qI&&A.Hn("esfw",{usbc:A.qI,hsu:!!A.Qi},!0);if(A.qI&&A.Qi)return!0;if(A.J("html5_remove_client_sabr_determination"))return!1;var B= !A.N.iC&&!A.U6();L=B&&Km&&A.J("html5_enable_sabr_vod_streaming_xhr");B=B&&!Km&&A.J("html5_enable_sabr_vod_non_streaming_xhr");var f=VW(A),K=A.J("html5_enable_sabr_drm_vod_streaming_xhr")&&Km&&A.U6()&&!A.N.iC&&(A.drmProduct==="1"?!1:!0);(L=L||B||f||K)&&!A.Qi&&A.Hn("sabr",{loc:"m"},!0);return L&&!!A.Qi}; VW=function(A){var L;if(!(L=Km&&A.iC()&&A.U6()&&(A.drmProduct==="1"?!1:!0)&&A.J("html5_sabr_live_drm_streaming_xhr"))){L=A.iC()&&!A.U6()&&Km;var B=A.iC()&&A.latencyClass!=="ULTRALOW"&&!A.isLowLatencyLiveStream&&A.J("html5_sabr_live_normal_latency_streaming_xhr"),f=A.isLowLatencyLiveStream&&A.J("html5_sabr_live_low_latency_streaming_xhr"),K=A.latencyClass==="ULTRALOW"&&A.J("html5_sabr_live_ultra_low_latency_streaming_xhr");L=L&&(B||f||K)}B=L;L=A.enableServerStitchedDai&&B&&A.J("html5_enable_sabr_ssdai_streaming_xhr"); B=!A.enableServerStitchedDai&&B;f=A.iC()&&!Km&&A.J("html5_enable_sabr_live_non_streaming_xhr");A=Km&&(A.aA()||Lm(A)&&A.J("html5_enable_sabr_for_lifa_eligible_streams"));return L||B||f||A}; mX=function(A){var L=A.J("html5_enable_server_format_filter")&&!A.U6(),B=A.J("html5_enable_server_format_filter_for_drm")&&A.U6();return iS(A)&&(L||B)}; KWE=function(A){var L;if(L=!!A.cotn)L=A.videoId,L=!!L&&g.vN(L)===1;return L&&!A.Sb}; g.Jj=function(A){if(!A.N||!A.W||!A.U)return!1;var L=A.N.N,B=!!L[A.W.id]&&k7(48,L[A.W.id].wi.N);L=!!L[A.U.id]&&k7(50,L[A.U.id].wi.N);return(A.W.itag==="0"||B)&&L}; Sg=function(A){return A.XT?["OK","LIVE_STREAM_OFFLINE"].includes(A.XT.status):!0}; sUv=function(A){return(A=A.iW)&&A.showError?A.showError:!1}; Rh=function(A,L){return A.J(L)?!0:(A.fflags||"").includes(L+"=true")}; ML8=function(A,L){L.inlineMetricEnabled&&(A.inlineMetricEnabled=!0);L.playback_progress_0s_url&&(A.iF=new wyk(L));if(L=L.video_masthead_ad_quartile_urls)A.mU=L.quartile_0_url,A.Ip=L.quartile_25_url,A.kY=L.quartile_50_url,A.Lf=L.quartile_75_url,A.qM=L.quartile_100_url,A.dw=L.quartile_0_urls,A.FQ=L.quartile_25_urls,A.UX=L.quartile_50_urls,A.wE=L.quartile_75_urls,A.tM=L.quartile_100_urls}; JeS=function(A){var L={};A=g.m(A);for(var B=A.next();!B.done;B=A.next()){B=B.value;var f=B.split("=");f.length===2?L[f[0]]=f[1]:L[B]=!0}return L}; M$6=function(A){if(A){if(VBe(A))return A;A=A1S(A);if(VBe(A,!0))return A}return""}; g.OSD=function(A){return A.captionsLanguagePreference||A.tF.captionsLanguagePreference||g.XZ(A,"yt:cc_default_lang")||A.tF.nD}; ZI=function(A){return!(!A.isLivePlayback||!A.hasProgressBarBoundaries())}; g.DQ=function(A){var L;return A.M7||((L=A.suggestions)==null?void 0:L[0])||null}; EhQ=function(A,L){return L!=null?Sw(A.X,L):A.X?A.X:A.tF.preferGapless&&A.tF.supportsGaplessShorts()}; g.Nm=function(A){var L,B;return!!((L=A.embeddedPlayerConfig)==null?0:(B=L.embeddedPlayerFlags)==null?0:B.enableMusicUx)}; cn7=function(A){return A.X||A.J("web_player_media_session_infinity")&&A.isLivePlayback}; Fr=function(A){return A.tF.U&&A.isPrivate}; g.dh=function(A){var L=A.K(),B=g.DI(L),f=L.O_;g.PL(L)&&(f&&(B.thirdParty=Object.assign({},B.thirdParty,{embedUrl:f})),s67(B,A));if(f=A.Wn)B.clickTracking={clickTrackingParams:f};else if(g.PL(A.K())&&g.A_("EVENT_ID"))B.clickTracking={clickTrackingParams:g.A_("EVENT_ID")};else if(L.J("html5_log_missing_itct")){var K;f=new g.iL("Missing ITCT in InnerTubeContext",{isAd:A.isAd(),GWL:(K=L.getWebPlayerContextConfig())==null?void 0:K.contextId});g.mL(f)}K=B.client||{};f="EMBED";var V=nr(A);V==="leanback"? f="WATCH":L.J("gvi_channel_client_screen")&&V==="profilepage"?f="CHANNEL":A.I7?f="LIVE_MONITOR":V==="detailpage"?f="WATCH_FULL_SCREEN":V==="adunit"?f="ADUNIT":V==="sponsorshipsoffer"&&(f="UNKNOWN");K.clientScreen=f;if(f=A.kidsAppInfo)K.kidsAppInfo=JSON.parse(f);(V=A.IV)&&!f&&(K.kidsAppInfo={contentSettings:{ageUpMode:MMy[V]}});if(f=A.gp)K.unpluggedAppInfo={enableFilterMode:!0};(V=A.unpluggedFilterModeType)&&!f&&(K.unpluggedAppInfo={filterModeType:YML[V]});if(f=A.Uv)K.unpluggedLocationInfo=f;B.client= K;K=B.request||{};A.LD&&(K.isPrefetch=!0);if(f=A.mdxEnvironment)K.mdxEnvironment=f;if(f=A.mdxControlMode)K.mdxControlMode=UFk[f];B.request=K;K=B.user||{};if(f=A.qp)K.credentialTransferTokens=[{token:f,scope:"VIDEO"}];if(f=A.Ox)K.delegatePurchases={oauthToken:f},K.kidsParent={oauthToken:f};var J;f=(J=L.getWebPlayerContextConfig())==null?void 0:J.userContentRating;L.Qf().N.Iv(WWy)&&f&&(K.serializedUserContentRating=f);B.user=K;if(L=A.contextParams)B.activePlayers=[{playerContextParams:L}];if(A=A.clientScreenNonce)B.clientScreenNonce= A;return B}; g.DI=function(A){var L=g.AV(),B=L.client||{};if(A.forcedExperiments){var f=A.forcedExperiments.split(","),K=[];f=g.m(f);for(var V=f.next();!V.done;V=f.next())K.push(Number(V.value));B.experimentIds=K}if(K=A.homeGroupInfo)B.homeGroupInfo=JSON.parse(K);if(K=A.getPlayerType())B.playerType=K;if(K=A.N.ctheme)B.theme=K;if(K=A.livingRoomAppMode)B.tvAppInfo=Object.assign({},B.tvAppInfo,{livingRoomAppMode:K});K=A.deviceYear;A.J("html5_propagate_device_year")&&K&&(B.tvAppInfo=Object.assign({},B.tvAppInfo,{deviceYear:K})); if(K=A.livingRoomPoTokenId)B.tvAppInfo=Object.assign({},B.tvAppInfo,{livingRoomPoTokenId:K});L.client=B;K=L.user||{};A.enableSafetyMode&&(K=Object.assign({},K,{enableSafetyMode:!0}));var J;((J=B.tvAppInfo)==null?0:J.usePageidAsHeader)||!A.pageId||(K=Object.assign({},K,{onBehalfOfUser:A.pageId}));L.user=K;return L}; nhE=function(A,L,B){var f=A.videoId,K=g.dh(A),V=A.K(),J={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(rT()),referer:document.location.toString(),signatureTimestamp:20424},R=g.v9();A.isAutonav&&(J.autonav=!0);R.Iv(141)&&(J.autonavState=R.Iv(140)?"STATE_OFF":"STATE_ON");J.autoCaptionsDefaultOn=R.Iv(66);ly7(A)&&(J.autoplay=!0);V.G&&A.cycToken&&(J.cycToken=A.cycToken);V.enablePrivacyFilter&&(J.enablePrivacyFilter=!0);A.isFling&&(J.fling=!0);var Z=A.forceAdsUrl;if(Z){R={};var N=[];Z=Z.split(","); Z=g.m(Z);for(var F=Z.next();!F.done;F=Z.next()){F=F.value;var D=F.split("|");D.length!==3||F.includes("=")||(D[0]="breaktype="+D[0],D[1]="offset="+D[1],D[2]="url="+D[2]);F={adtype:"video_ad"};D=g.m(D);for(var I=D.next();!I.done;I=D.next()){var d=g.m(I.value.split("="));I=d.next().value;d=lS1(d);F[I]=d.join("=")}D=F.url;I=F.presetad;d=F.viralresponseurl;var w=Number(F.campaignid);if(F.adtype==="in_display_ad")D&&(R.url=D),I&&(R.presetAd=I),d&&(R.viralAdResponseUrl=d),w&&(R.viralCampaignId=String(w)); else if(F.adtype==="video_ad"){var r={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(F.offset)||0)}};if(F=vh8[F.breaktype])r.breakType=F;D&&(r.url=D);I&&(r.presetAd=I);d&&(r.viralAdResponseUrl=d);w&&(r.viralCampaignId=String(w));N.push(r)}}J.forceAdParameters={videoAds:N,inDisplayAd:R}}A.isInlinePlaybackNoAd&&(J.isInlinePlaybackNoAd=!0);A.isLivingRoomDeeplink&&(J.isLivingRoomDeeplink=!0);R=A.r0;if(R!=null){R={startWalltime:String(R)};if(N=A.JA)R.manifestDuration=String(N||14400);J.liveContext= R}if(A.mutedAutoplay){J.mutedAutoplay=!0;R=V.getWebPlayerContextConfig();var h,Q;(R==null?0:(h=R.embedsHostFlags)==null?0:h.allowMutedAutoplayDurationMode)&&(R==null?0:(Q=R.embedsHostFlags)==null?0:Q.allowMutedAutoplayDurationMode.includes(qMQ[A.mutedAutoplayDurationMode]))&&(J.mutedAutoplayDurationMode=qMQ[A.mutedAutoplayDurationMode])}if(A.Pz?0:A.N8)J.splay=!0;h=A.vnd;h===5&&(J.vnd=h);h={};if(Q=A.isMdxPlayback)h.triggeredByMdx=Q;if(Q=A.Zi)h.skippableAdsSupported=Q.split(",").includes("ska");if(N= A.CQ){Q=A.F0;R=[];N=g.m(HyE(N));for(Z=N.next();!Z.done;Z=N.next()){Z=Z.value;F=Z.platform;Z={applicationState:Z.y$?"INACTIVE":"ACTIVE",clientFormFactor:P4Q[F]||"UNKNOWN_FORM_FACTOR",clientName:by6[Z.Qx]||"UNKNOWN_INTERFACE",clientVersion:Z.deviceVersion||"",platform:xFL[F]||"UNKNOWN_PLATFORM"};F={};if(Q){D=void 0;try{D=JSON.parse(Q)}catch(C){g.CE(C)}D&&(F={params:[{key:"ms",value:D.ms}]},D.advertising_id&&(F.advertisingId=D.advertising_id),D.limit_ad_tracking!==void 0&&D.limit_ad_tracking!==null&& (F.limitAdTracking=D.limit_ad_tracking),Z.osName=D.os_name,Z.userAgent=D.user_agent,Z.windowHeightPoints=D.window_height_points,Z.windowWidthPoints=D.window_width_points)}R.push({adSignalsInfo:F,remoteClient:Z})}h.remoteContexts=R}Q=A.sourceContainerPlaylistId;R=A.serializedMdxMetadata;if(Q||R)N={},Q&&(N.mdxPlaybackContainerInfo={sourceContainerPlaylistId:Q}),R&&(N.serializedMdxMetadata=R),h.mdxPlaybackSourceContext=N;J.mdxContext=h;h=L.width;h>0&&(J.playerWidthPixels=Math.round(h));if(L=L.height)J.playerHeightPixels= Math.round(L);B!==0&&(J.vis=B);if(B=V.widgetReferrer)J.widgetReferrer=B.substring(0,128);g.MM(V)&&J&&(J.ancestorOrigins=V.ancestorOrigins);A.defaultActiveSourceVideoId&&(J.compositeVideoContext={defaultActiveSourceVideoId:A.defaultActiveSourceVideoId});if(V=V.getWebPlayerContextConfig())J.encryptedHostFlags=V.encryptedHostFlags;f={videoId:f,context:K,playbackContext:{contentPlaybackContext:J}};if(A.dB){var l;f.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(l=A.dB)==null?void 0:l.reloadPlaybackParams}}A.contentCheckOk&& (f.contentCheckOk=!0);if(l=A.clientPlaybackNonce)f.cpn=l;if(l=A.playerParams)f.params=l;if(l=A.playlistId)f.playlistId=l;A.racyCheckOk&&(f.racyCheckOk=!0);l=A.K();K=l.embedConfig;A.e8&&l.J("embeds_enable_per_video_embed_config")?f.serializedThirdPartyEmbedConfig=A.e8:K&&(f.serializedThirdPartyEmbedConfig=K);f.captionParams={};K=g.v9().Iv(65);A.deviceCaptionsOn!=null?f.captionParams.deviceCaptionsOn=A.deviceCaptionsOn:g.SK(l)&&(f.captionParams.deviceCaptionsOn=K!=null?!K:!1);A.Gx&&(f.captionParams.deviceCaptionsLangPref= A.Gx);A.rp.length?f.captionParams.viewerSelectedCaptionLangs=A.rp:g.SK(l)&&(K=g.T4(),K==null?0:K.length)&&(f.captionParams.viewerSelectedCaptionLangs=K);K=A.fetchType==="onesie"&&A.J("html5_onesie_attach_po_token");J=A.fetchType!=="onesie"&&A.J("html5_non_onesie_attach_po_token");if(K||J)K=A.K(),K.mC&&(f.serviceIntegrityDimensions={},f.serviceIntegrityDimensions.poToken=K.mC);l.J("fetch_att_independently")&&(f.attestationRequest={omitBotguardData:!0});f.playbackContext||(f.playbackContext={});f.playbackContext.devicePlaybackCapabilities= ep6(A);f.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&A.Hn("noVp9",{});return f}; ep6=function(A){var L=!(A==null?0:A.Os())&&(A==null?void 0:A.iC())&&Vz(),B;if(!(B=A==null)){B=g.Gp(A);A=A.K().D;var f=jK("243");B=!(f&&qy(B,f,A,!0)===!0)}return{supportsVp9Encoding:!(B||L),supportXhr:Km}}; u88=function(A,L){var B,f,K;return g.c(function(V){if(V.N==1)return B={context:g.DI(A.K()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:A.videoId,cpn:A.clientPlaybackNonce}}]},f=g.B8(zp1),g.X(V,g.MD(L,B,f),2);K=V.W;return V.return(K)})}; ay6=function(A,L,B){var f=g.Am(L.experiments,"bg_vm_reinit_threshold");(!rS||(0,g.bc)()-rS>f)&&u88(A,B).then(function(K){K&&(K=K.botguardData)&&g.HZ(K,L)},function(K){A.TL()||(K=JT(K),A.Hn("attf",K.details))})}; Ih=function(A,L){g.Y.call(this);this.app=A;this.state=L}; pm=function(A,L,B){A.state.N.hasOwnProperty(L)||wh(A,L,B);A.state.T[L]=function(){return B.apply(A,g.pf.apply(0,arguments))}; A.state.G.add(L)}; yW=function(A,L,B){A.state.N.hasOwnProperty(L)||wh(A,L,B);A.app.K().G&&(A.state.X[L]=function(){return B.apply(A,g.pf.apply(0,arguments))},A.state.G.add(L))}; wh=function(A,L,B){A.state.N[L]=function(){return B.apply(A,g.pf.apply(0,arguments))}}; g.jg=function(A,L,B){return A.state.N[L].apply(A.state.N,g.x7(B))}; gh=function(){g.TF.call(this);this.D=new Map}; Gg=function(){g.Y.apply(this,arguments);this.element=null;this.G=new Set;this.T={};this.X={};this.N={};this.yj=new Set;this.V=new gh;this.W=new gh;this.U=new gh;this.D=new gh}; A2y=function(A,L,B){typeof A==="string"&&(A={mediaContentUrl:A,startSeconds:L,suggestedQuality:B});a:{if((L=A.mediaContentUrl)&&(L=/\/([ve]|embed)\/([^#?]+)/.exec(L))&&L[2]){L=L[2];break a}L=null}A.videoId=L;return rh(A)}; rh=function(A,L,B){if(typeof A==="string")return{videoId:A,startSeconds:L,suggestedQuality:B};L={};B=g.m(L6Q);for(var f=B.next();!f.done;f=B.next())f=f.value,A[f]&&(L[f]=A[f]);if(A=A.embedConfig||A.embed_config)if(typeof A==="string")L.embed_config=A;else if(g.QK(A))try{var K=JSON.stringify(A);L.embed_config=K}catch(V){console.error("Invalid embedConfig JSON",V)}return L}; oQ7=function(A,L,B,f){if(g.QK(A)&&!Array.isArray(A)){L="playlist list listType index startSeconds suggestedQuality".split(" ");B={};for(f=0;f32&&f.push("hfr");L.isHdr()&&f.push("hdr");L.primaries==="bt2020"&&f.push("wcg");B.video_quality_features=f}}if(A=A.getPlaylistId())B.list=A;return B}; tj=function(){sU.apply(this,arguments)}; kn=function(A,L){var B={};if(A.app.K().qp){A=g.m(VHL);for(var f=A.next();!f.done;f=A.next())f=f.value,L.hasOwnProperty(f)&&(B[f]=L[f]);if(L=B.qoe_cat)A="",typeof L==="string"&&L.length>0&&(A=L.split(",").filter(function(K){return J2D.includes(K)}).join(",")),B.qoe_cat=A; SO7(B)}else for(A=g.m(RU1),f=A.next();!f.done;f=A.next())f=f.value,L.hasOwnProperty(f)&&(B[f]=L[f]);return B}; SO7=function(A){var L=A.raw_player_response;if(!L){var B=A.player_response;B&&(L=JSON.parse(B))}delete A.player_response;delete A.raw_player_response;if(L){A.raw_player_response={streamingData:L.streamingData,playerConfig:L.playerConfig};var f;if((f=L.playbackTracking)==null?0:f.qoeUrl)A.raw_player_response=Object.assign({},A.raw_player_response,{playbackTracking:{qoeUrl:L.playbackTracking.qoeUrl}});L.videoDetails&&(L.videoDetails.videoId||L.videoDetails.lengthSeconds)&&(B={},L.videoDetails.videoId&& (B.videoId=L.videoDetails.videoId),L.videoDetails.lengthSeconds&&(B.lengthSeconds=L.videoDetails.lengthSeconds),A.raw_player_response=Object.assign({},A.raw_player_response,{videoDetails:B}))}}; NSQ=function(A){var L=L===void 0?5:L;return A?ZPe[A]||L:L}; g.lz=function(){tj.apply(this,arguments)}; F6k=function(A){wh(A,"getInternalApiInterface",A.getInternalApiInterface);wh(A,"getTrustedApi",A.getTrustedApi);wh(A,"addEventListener",A.b7);wh(A,"removeEventListener",A.eus);wh(A,"cueVideoByPlayerVars",A.L4);wh(A,"loadVideoByPlayerVars",A.VIj);wh(A,"preloadVideoByPlayerVars",A.j01);wh(A,"getAdState",A.getAdState);wh(A,"sendAbandonmentPing",A.sendAbandonmentPing);wh(A,"setLoopRange",A.setLoopRange);wh(A,"getLoopRange",A.getLoopRange);wh(A,"setAutonavState",A.setAutonavState);wh(A,"seekTo",A.kHT); wh(A,"seekBy",A.IrL);wh(A,"seekToLiveHead",A.seekToLiveHead);wh(A,"requestSeekToWallTimeSeconds",A.requestSeekToWallTimeSeconds);wh(A,"seekToStreamTime",A.seekToStreamTime);wh(A,"prefetchKeyPlay",A.prefetchKeyPlay);wh(A,"startSeekCsiAction",A.startSeekCsiAction);wh(A,"getStreamTimeOffset",A.getStreamTimeOffset);wh(A,"getVideoData",A.s8);wh(A,"setInlinePreview",A.setInlinePreview);wh(A,"getAppState",A.getAppState);wh(A,"updateLastActiveTime",A.updateLastActiveTime);wh(A,"setBlackout",A.setBlackout); wh(A,"setUserEngagement",A.setUserEngagement);wh(A,"updateSubtitlesUserSettings",A.updateSubtitlesUserSettings);wh(A,"getPresentingPlayerType",A.DB);wh(A,"canPlayType",A.canPlayType);wh(A,"updatePlaylist",A.updatePlaylist);wh(A,"updateVideoData",A.updateVideoData);wh(A,"updateEnvironmentData",A.updateEnvironmentData);wh(A,"sendVideoStatsEngageEvent",A.FDL);wh(A,"productsInVideoVisibilityUpdated",A.productsInVideoVisibilityUpdated);wh(A,"setSafetyMode",A.setSafetyMode);wh(A,"isAtLiveHead",function(L){return A.isAtLiveHead(void 0, L)}); wh(A,"getVideoAspectRatio",A.getVideoAspectRatio);wh(A,"getPreferredQuality",A.getPreferredQuality);wh(A,"getPlaybackQualityLabel",A.getPlaybackQualityLabel);wh(A,"setPlaybackQualityRange",A.ThF);wh(A,"onAdUxClicked",A.onAdUxClicked);wh(A,"getFeedbackProductData",A.getFeedbackProductData);wh(A,"getStoryboardFrame",A.getStoryboardFrame);wh(A,"getStoryboardFrameIndex",A.getStoryboardFrameIndex);wh(A,"getStoryboardLevel",A.getStoryboardLevel);wh(A,"getNumberOfStoryboardLevels",A.getNumberOfStoryboardLevels); wh(A,"getCaptionWindowContainerId",A.getCaptionWindowContainerId);wh(A,"getAvailableQualityLabels",A.getAvailableQualityLabels);wh(A,"addCueRange",A.addCueRange);wh(A,"addUtcCueRange",A.addUtcCueRange);wh(A,"showAirplayPicker",A.showAirplayPicker);wh(A,"dispatchReduxAction",A.dispatchReduxAction);wh(A,"getPlayerResponse",A.im);wh(A,"getWatchNextResponse",A.aY);wh(A,"getHeartbeatResponse",A.Sq);wh(A,"getCurrentTime",A.U8);wh(A,"getDuration",A.Pv);wh(A,"getPlayerState",A.getPlayerState);wh(A,"getPlayerStateObject", A.Y9);wh(A,"getVideoLoadedFraction",A.getVideoLoadedFraction);wh(A,"getProgressState",A.getProgressState);wh(A,"getVolume",A.getVolume);wh(A,"setVolume",A.CH);wh(A,"isMuted",A.isMuted);wh(A,"mute",A.Km);wh(A,"unMute",A.VX);wh(A,"loadModule",A.loadModule);wh(A,"unloadModule",A.unloadModule);wh(A,"getOption",A.F8);wh(A,"getOptions",A.getOptions);wh(A,"setOption",A.setOption);wh(A,"loadVideoById",A.OW);wh(A,"loadVideoByUrl",A.Bt);wh(A,"playVideo",A.N1);wh(A,"loadPlaylist",A.loadPlaylist);wh(A,"nextVideo", A.nextVideo);wh(A,"previousVideo",A.previousVideo);wh(A,"playVideoAt",A.playVideoAt);wh(A,"getDebugText",A.getDebugText);wh(A,"getWebPlayerContextConfig",A.getWebPlayerContextConfig);wh(A,"notifyShortsAdSwipeEvent",A.notifyShortsAdSwipeEvent);wh(A,"getVideoContentRect",A.getVideoContentRect);wh(A,"setSqueezeback",A.setSqueezeback);wh(A,"toggleSubtitlesOn",A.toggleSubtitlesOn);wh(A,"isSubtitlesOn",A.isSubtitlesOn);wh(A,"getAudioTrack",A.qj);wh(A,"setAudioTrack",A.wRF);wh(A,"getAvailableAudioTracks", A.k9);wh(A,"reportPlaybackIssue",A.reportPlaybackIssue);wh(A,"setAutonav",A.setAutonav);wh(A,"isNotServable",A.isNotServable);wh(A,"channelSubscribed",A.channelSubscribed);wh(A,"channelUnsubscribed",A.channelUnsubscribed);wh(A,"togglePictureInPicture",A.togglePictureInPicture);wh(A,"supportsGaplessAudio",A.supportsGaplessAudio);wh(A,"supportsGaplessShorts",A.supportsGaplessShorts);wh(A,"enqueueVideoByPlayerVars",function(L){return void A.enqueueVideoByPlayerVars(L)}); wh(A,"clearQueue",A.clearQueue);wh(A,"getMaxPlaybackQuality",A.getMaxPlaybackQuality);wh(A,"getUserPlaybackQualityPreference",A.getUserPlaybackQualityPreference);wh(A,"getSubtitlesUserSettings",A.getSubtitlesUserSettings);wh(A,"resetSubtitlesUserSettings",A.resetSubtitlesUserSettings);wh(A,"setMinimized",A.setMinimized);wh(A,"setOverlayVisibility",A.setOverlayVisibility);wh(A,"confirmYpcRental",A.confirmYpcRental);wh(A,"queueNextVideo",A.queueNextVideo);wh(A,"handleExternalCall",A.handleExternalCall); wh(A,"logApiCall",A.logApiCall);wh(A,"isExternalMethodAvailable",A.isExternalMethodAvailable);wh(A,"setScreenLayer",A.setScreenLayer);wh(A,"getCurrentPlaylistSequence",A.getCurrentPlaylistSequence);wh(A,"getPlaylistSequenceForTime",A.getPlaylistSequenceForTime);wh(A,"shouldSendVisibilityState",A.shouldSendVisibilityState);wh(A,"syncVolume",A.syncVolume);wh(A,"highlightSettingsMenuItem",A.highlightSettingsMenuItem);wh(A,"openSettingsMenuItem",A.openSettingsMenuItem);wh(A,"getEmbeddedPlayerResponse", A.getEmbeddedPlayerResponse);wh(A,"getVisibilityState",A.getVisibilityState);wh(A,"isMutedByMutedAutoplay",A.isMutedByMutedAutoplay);wh(A,"isMutedByEmbedsMutedAutoplay",A.isMutedByEmbedsMutedAutoplay);wh(A,"setGlobalCrop",A.setGlobalCrop);wh(A,"setInternalSize",A.setInternalSize);wh(A,"setFauxFullscreen",A.setFauxFullscreen);wh(A,"setAppFullscreen",A.setAppFullscreen)}; Cm=function(A,L,B){A=g.QW(A.Ce(),L);return B?(B.addOnDisposeCallback(A),null):A}; g.iz=function(A,L,B){return A.app.K().jD?L:g.B$("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:L,SHORTCUT:B})}; Dy1=function(A){A.Ce().element.setAttribute("aria-live","polite")}; g.$n=function(A,L){g.lz.call(this,A,L);F6k(this);yW(this,"addEventListener",this.Fm);yW(this,"removeEventListener",this.vyF);yW(this,"cueVideoByPlayerVars",this.d9);yW(this,"loadVideoByPlayerVars",this.mlp);yW(this,"preloadVideoByPlayerVars",this.XVM);yW(this,"loadVideoById",this.OW);yW(this,"loadVideoByUrl",this.Bt);yW(this,"playVideo",this.N1);yW(this,"loadPlaylist",this.loadPlaylist);yW(this,"nextVideo",this.nextVideo);yW(this,"previousVideo",this.previousVideo);yW(this,"playVideoAt",this.playVideoAt); yW(this,"getVideoData",this.Tp);yW(this,"seekBy",this.lrs);yW(this,"seekTo",this.mqs);yW(this,"showControls",this.showControls);yW(this,"hideControls",this.hideControls);yW(this,"cancelPlayback",this.cancelPlayback);yW(this,"getProgressState",this.getProgressState);yW(this,"isInline",this.isInline);yW(this,"setInline",this.setInline);yW(this,"setLoopVideo",this.setLoopVideo);yW(this,"getLoopVideo",this.getLoopVideo);yW(this,"getVideoContentRect",this.getVideoContentRect);yW(this,"getVideoStats",this.Qo); yW(this,"getCurrentTime",this.ZV);yW(this,"getDuration",this.Pv);yW(this,"getPlayerState",this.rz);yW(this,"getVideoLoadedFraction",this.x9);yW(this,"mute",this.Km);yW(this,"unMute",this.VX);yW(this,"setVolume",this.CH);yW(this,"loadModule",this.loadModule);yW(this,"unloadModule",this.unloadModule);yW(this,"getOption",this.F8);yW(this,"getOptions",this.getOptions);yW(this,"setOption",this.setOption);yW(this,"addCueRange",this.addCueRange);yW(this,"getDebugText",this.getDebugText);yW(this,"getStoryboardFormat", this.getStoryboardFormat);yW(this,"toggleFullscreen",this.toggleFullscreen);yW(this,"isFullscreen",this.isFullscreen);yW(this,"getPlayerSize",this.getPlayerSize);yW(this,"toggleSubtitles",this.toggleSubtitles);yW(this,"setCenterCrop",this.setCenterCrop);yW(this,"setFauxFullscreen",this.setFauxFullscreen);yW(this,"setSizeStyle",this.setSizeStyle);yW(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);yW(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);fDD(this)}; g.Xr=function(A){A=A.SI();var L=A.U_.get("endscreen");return L&&L.wR()?!0:A.LK()}; g.OU=function(A,L){A.getPresentingPlayerType()===3?A.publish("mdxautoplaycancel"):A.Kr("onAutonavCancelled",L)}; g.ch=function(A){var L=EU(A.SI());return A.app.iY&&!A.isFullscreen()||A.getPresentingPlayerType()===3&&L&&L.hasNext()&&L.hasPrevious()||!!A.getPlaylist()}; g.Mm=function(A,L){g.jg(A,"addEmbedsConversionTrackingParams",[L])}; g.UU=function(A){return(A=g.Yn(A.SI()))?A.Q5():{}}; g.dyC=function(A){A=(A=A.getVideoData())&&A.W;return!!A&&!(!A.audio||!A.video)&&A.mimeType!=="application/x-mpegURL"}; g.Wh=function(A,L,B){A=A.Pn().element;var f=Dw(A.children,function(K){K=Number(K.getAttribute("data-layer"));return B-K||1}); f<0&&(f=-(f+1));iA(A,L,f);L.setAttribute("data-layer",String(B))}; g.vh=function(A){var L=A.K();if(!L.LD)return!1;var B=A.getVideoData();if(!B||A.getPresentingPlayerType()===3)return!1;var f=(!B.isLiveDefaultBroadcast||L.J("allow_poltergust_autoplay"))&&!ZI(B);f=B.isLivePlayback&&(!L.J("allow_live_autoplay")||!f);var K=B.isLivePlayback&&L.J("allow_live_autoplay_on_mweb");A=A.getPlaylist();A=!!A&&A.hasNext();var V=B.Vj&&B.Vj.playerOverlays||null;V=!!(V&&V.playerOverlayRenderer&&V.playerOverlayRenderer.autoplay);V=B.OE&&V;return!B.ypcPreview&&(!f||K)&&!g.zK(B.p9,"ypc")&& !A&&(!g.MM(L)||V)}; IDk=function(A,L){A=A.app.mD().T.R9();A=g.m(A);for(var B=A.next();!B.done;B=A.next()){B=B.value;var f=B.getAvailableAudioTracks(),K=null;f=g.m(f);for(var V=f.next();!V.done;V=f.next())if(V=V.value,V.getLanguageInfo().getId()===L){K=V;break}K&&B.WG(K,!0)}}; qm=function(){US.apply(this,arguments);this.requestHeaders={}}; xn=function(){Ph||(Ph=new qm);return Ph}; eg=function(A,L){L?A.requestHeaders.Authorization="Bearer "+L:delete A.requestHeaders.Authorization}; wZ0=function(A){this.experiments=A;this.N=2048;this.U=0;this.Wn=(this.X=this.J("html5_streaming_resilience"))?.5:.25;var L=L===void 0?0:L;this.V=g.Am(this.experiments,"html5_media_time_weight_prop")||L;this.yj=(this.D=this.experiments.GL("html5_consider_end_stall"))&&Km;this.W=this.experiments.GL("html5_measure_max_progress_handling");this.G=this.J("html5_treat_requests_pre_elbow_as_metadata");this.T=this.J("html5_media_time_weight")||!!this.V;this.J("html5_sabr_live_audio_early_return_fix")&&Km&& (this.N=65536)}; g.nm=function(A){g.Y.call(this);var L=this;this.Np=A;this.GV={WM:function(){return L.Np}}}; g.zg=function(A,L,B,f){f=f===void 0?!1:f;g.DE.call(this,L);var K=this;this.S=A;this.Wn=f;this.D=new g.dN(this);this.fade=new g.KL(this,B,!0,void 0,void 0,function(){K.pk()}); g.W(this,this.D);g.W(this,this.fade)}; uz=function(A){var L=A.S.getRootNode();return A.S.J("web_watch_pip")||A.S.J("web_shorts_pip")?w_(L):document}; pZD=function(A){A.sourceElement&&(document.activeElement&&g.XF(A.element,document.activeElement)&&A.sourceElement.focus(),A.sourceElement.setAttribute("aria-expanded","false"),A.sourceElement=void 0);g.$_(A.D);A.T=void 0}; ah=function(A,L,B){A.U7()?A.YP():A.fD(L,B)}; AY=function(A,L,B,f){f=new g.q({Z:"div",Rr:["ytp-linked-account-popup-button"],Ir:f,C:{role:"button",tabindex:"0"}});L=new g.q({Z:"div",j:"ytp-linked-account-popup",C:{role:"dialog","aria-modal":"true",tabindex:"-1"},B:[{Z:"div",j:"ytp-linked-account-popup-title",Ir:L},{Z:"div",j:"ytp-linked-account-popup-description",Ir:B},{Z:"div",j:"ytp-linked-account-popup-buttons",B:[f]}]});g.zg.call(this,A,{Z:"div",j:"ytp-linked-account-popup-container",B:[L]},100);var K=this;this.dialog=L;g.W(this,this.dialog); f.listen("click",function(){K.YP()}); g.W(this,f);g.Wh(this.S,this.element,4);this.hide()}; g.of=function(A,L,B,f){g.DE.call(this,A);this.priority=L;B&&g.Lh(this,B);f&&this.setContent(f)}; g.Bo=function(A,L,B,f){A=A===void 0?{}:A;L=L===void 0?[]:L;B=B===void 0?!1:B;f=f===void 0?!1:f;L.push("ytp-menuitem");var K=A;"role"in K||(K.role="menuitem");B||(K=A,"tabindex"in K||(K.tabindex="0"));A={Z:B?"a":"div",Rr:L,C:A,B:[{Z:"div",j:"ytp-menuitem-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-menuitem-label",Ir:"{{label}}"},{Z:"div",j:"ytp-menuitem-content",Ir:"{{content}}"}]};f&&A.B.push({Z:"div",j:"ytp-menuitem-secondary-icon",Ir:"{{secondaryIcon}}"});return A}; g.Lh=function(A,L){A.updateValue("label",L)}; fh=function(A){g.of.call(this,g.Bo({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var L=this;this.S=A;this.W=this.N=!1;this.Wz=A.gB();A.createServerVe(this.element,this,!0);this.Y(this.S,"settingsMenuVisibilityChanged",function(B){L.Hy(B)}); this.Y(this.S,"videodatachange",this.U);this.listen("click",this.onClick);this.U()}; Kh=function(A){return A?g.wq(A):""}; VC=function(A){g.Y.call(this);this.api=A}; JY=function(A){VC.call(this,A);var L=this;wh(A,"setAccountLinkState",function(B){L.setAccountLinkState(B)}); wh(A,"updateAccountLinkingConfig",function(B){L.updateAccountLinkingConfig(B)}); A.addEventListener("videodatachange",function(B,f){L.onVideoDataChange(f)}); A.addEventListener("settingsMenuInitialized",function(){L.menuItem=new fh(L.api);g.W(L,L.menuItem)})}; S3=function(A){VC.call(this,A);var L=this;this.N=null;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"applicationvideodatachange",function(){L.Be()})}; y28=function(A){this.api=A;this.N={}}; Rf=function(A,L,B,f){L in A.N||(B=new g.WR(B,f,{id:L,priority:2,namespace:"appad"}),A.api.dX([B],1),A.N[L]=B)}; Zq=function(A){VC.call(this,A);var L=this;this.events=new g.dN(this);g.W(this,this.events);this.N=new y28(this.api);this.events.Y(this.api,"legacyadtrackingpingreset",function(){L.N.N={}}); this.events.Y(this.api,"legacyadtrackingpingchange",function(B){var f=L.N;Rf(f,"part2viewed",1,0x8000000000000);Rf(f,"engagedview",Math.max(1,B.qo*1E3),0x8000000000000);if(!B.isLivePlayback){var K=B.lengthSeconds*1E3;pr(B)&&f.api.J("html5_shorts_gapless_ads_duration_fix")&&(K=f.api.getProgressState().seekableEnd*1E3-B.Yn);Rf(f,"videoplaytime25",K*.25,K);Rf(f,"videoplaytime50",K*.5,K);Rf(f,"videoplaytime75",K*.75,K);Rf(f,"videoplaytime100",K,0x8000000000000);Rf(f,"conversionview",K,0x8000000000000); Rf(f,"videoplaybackstart",1,K);Rf(f,"videoplayback2s",2E3,K);Rf(f,"videoplayback10s",1E4,K)}}); this.events.Y(this.api,g.qR("appad"),this.W);this.events.Y(this.api,g.PR("appad"),this.W)}; r2L=function(A,L,B){if(!(B in L))return!1;L=L[B];Array.isArray(L)||(L=[L]);L=g.m(L);for(B=L.next();!B.done;B=L.next()){B=B.value;var f={CPN:A.api.getVideoData().clientPlaybackNonce};B=g.iN(B,f);f=void 0;f=f===void 0?!1:f;(f=EZ(cR(B,j46),B,f,"Active View 3rd Party Integration URL"))||(f=void 0,f=f===void 0?!1:f,f=EZ(cR(B,gQD),B,f,"Google/YouTube Brand Lift URL"));f||(f=void 0,f=f===void 0?!1:f,f=EZ(cR(B,G4v),B,f,"Nielsen OCR URL"));g.MJ(B,void 0,f)}return!0}; N5=function(A,L){s4w(A,L).then(function(B){g.MJ(L,void 0,void 0,B)})}; Fh=function(A,L){L.forEach(function(B){N5(A,B)})}; s4w=function(A,L){return g.wY(A.api.K())&&dW(L)&&Dp(L)?g.po(A.api.K(),g.Aj(A.api.getVideoData())).then(function(B){var f;B&&(f={Authorization:"Bearer "+B});return f},void 0):OQ()}; HP8=function(A){VC.call(this,A);this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"videoready",function(L){if(A.getPresentingPlayerType()===1){var B,f,K={playerDebugData:{pmlSignal:!!((B=L.getPlayerResponse())==null?0:(f=B.adPlacements)==null?0:f.some(function(V){var J;return V==null?void 0:(J=V.adPlacementRenderer)==null?void 0:J.renderer})), contentCpn:L.clientPlaybackNonce}};g.pE("adsClientStateChange",K)}})}; Dq=function(A,L){g.of.call(this,g.Bo({role:"menuitemcheckbox","aria-checked":"false"}),L,A,{Z:"div",j:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; dC=function(A,L){A.checked=L;A.element.setAttribute("aria-checked",String(A.checked))}; hUC=function(A){var L=!A.K().ye&&A.getPresentingPlayerType()!==3;return A.isFullscreen()||L}; g.If=function(A,L,B,f){var K=A.currentTarget;if((B===void 0||!B)&&g.bV(A))return A.preventDefault(),!0;L.pauseVideo();A=K.getAttribute("href");g.qf(A,f,!0);return!1}; g.wC=function(A,L,B){if(Ko(L.K())&&L.getPresentingPlayerType()!==2){if(g.bV(B))return L.isFullscreen()&&!L.K().externalFullscreen&&L.toggleFullscreen(),B.preventDefault(),!0}else{var f=g.bV(B);f&&L.pauseVideo();g.qf(A,void 0,!0);f&&(g.PH(A),B.preventDefault())}return!1}; bPv=function(A){A=ph.includes("es-419")?A.J("delhi_modern_web_player_icons")?rq():{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]}:A.J("delhi_modern_web_player_icons")?IGD():{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]};A.j="ytp-subtitles-button-icon"; return A}; tHk=function(A){return ph.includes("es-419")?A?rq():{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:A?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},B:[{Z:"path",C:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; yC=function(){return{Z:"div",j:"ytp-spinner-container",B:[{Z:"div",j:"ytp-spinner-rotator",B:[{Z:"div",j:"ytp-spinner-left",B:[{Z:"div",j:"ytp-spinner-circle"}]},{Z:"div",j:"ytp-spinner-right",B:[{Z:"div",j:"ytp-spinner-circle"}]}]}]}}; j3=function(A){if(document.createRange){var L=document.createRange();L&&(L.selectNodeContents(A),A=window.getSelection())&&(A.removeAllRanges(),A.addRange(L))}}; GD=function(A,L){var B=A.J("web_fix_annotations")?"Superposiciones anotadas":"Anotaciones";Dq.call(this,B,g.gC.Uc);this.S=A;this.Wz=L;this.N=!1;A.J("web_settings_menu_icons")&&(L=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(L));this.Y(A,"videodatachange",this.zL);this.Y(A,"onApiChange",this.zL);this.subscribe("select",this.onSelect,this);this.zL()}; k47=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);A.addEventListener("settingsMenuInitialized",function(){var B=new GD(L.api,L.api.gB());g.W(L,B)})}; Ho=function(A){var L=this;this.N={};this.V={};this.GV={hfr:function(){return L.N}}; this.videoData=A;var B,f=(B=A.V)==null?void 0:B.W;f&&f.length>0?this.W=f:(A=A.getAvailableAudioTracks(),this.W=A.length>0?TSD(A):[]);A=g.m(rC);for(B=A.next();!B.done;B=A.next())B=B.value,this.N[B]=lDL[B](this.W);this.VF()}; myQ=function(A,L){var B=L.getAudioTrack();return B.id!=="und"?g.Mi(A,function(f){var K;return((K=f.ri)==null?void 0:K.name)===B.getLanguageInfo().name}):A}; Q4y=function(A,L){return L.getUserAudio51Preference()?g.Mi(A,hY):A}; TSD=function(A){return A.map(function(L){return new C$(L.id,"application/x-mpegURL",{ri:L.ri})})}; C6E=function(A){return g.ES("yt-player-drc-pref")?g.Mi(A,bb):A}; iPv=function(A){return j6L()===2?g.Mi(A,tY):A}; $yv=function(A){return gGy()===1?g.Mi(A,k5):A}; k5=function(A){var L;return((L=A.audio)==null?void 0:L.audioQuality)==="AUDIO_QUALITY_HIGH"&&!Ya(A)}; bb=function(A){var L;return((L=A.audio)==null?void 0:L.N)===!0}; hY=function(A){return Ya(A)}; XZL=function(A){return A.ri!==void 0}; tY=function(A){var L;return((L=A.audio)==null?void 0:L.W)===!0}; TD=function(A,L){if(A.length<2)return!1;var B=L(A[0]);return A.some(function(f){return L(f)!==B})}; OP7=function(A,L){A=new Set(A.map(L));A.delete(void 0);return A.size>=2}; lb=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);var B=this.api.J("html5_enable_audio_quality_setting_feature");wh(this.api,"getUserAudioQualitySetting",function(){return B?L.getUserAudioQualitySetting():2}); wh(this.api,"setUserAudioQualitySetting",function(f){B&&L.setUserAudioQualitySetting(f)}); wh(this.api,"hasHqaAudioTrack",function(){return B?L.hasHqaAudioTrack():!1}); wh(this.api,"getAudioQualitySettingState",function(){return B?L.api.a_(4):1}); this.Ai=gGy();this.updateEnvironmentData()}; EQQ=function(A){VC.call(this,A);var L=this;wh(this.api,"getAudioTrackState",function(){return L.api.a_(0)})}; var RQE=function(A){return bL[S[2]](this,1,A)}; mf=function(A){g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-autonav-toggle"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},B:[{Z:"div",j:"ytp-autonav-toggle-button-container",B:[{Z:"div",j:"ytp-autonav-toggle-button",C:{"aria-checked":"true"}}]}]});this.S=A;this.W=[];this.N=!1;this.isChecked=!0;A.createClientVe(this.element,this, 113681);this.Y(A,"presentingplayerstatechange",this.EC);this.listen("click",this.onClick);this.W.push(this.Y(this.S,"videodatachange",this.EC));this.W.push(this.Y(this.S,"videoplayerreset",this.EC));this.W.push(this.Y(this.S,"onPlaylistUpdate",this.EC));this.W.push(this.Y(this.S,"autonavchange",this.fB));Cm(A,this.element,this);this.EC()}; c2E=function(A){A.isChecked=A.isChecked;A.m4("ytp-autonav-toggle-button").setAttribute("aria-checked",String(A.isChecked));var L=A.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";A.S.K().J("player_tooltip_data_title_killswitch")?A.update({title:L,label:L}):A.update({"data-tooltip-title":L,label:L});A.S.qq()}; MH6=function(A){return A.S.K().J("web_player_autonav_use_server_provided_state")&&NG(A.df())}; YOL=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"standardControlsInitialized",function(){var B=new mf(A);g.W(L,B);A.fJ(B,"RIGHT_CONTROLS_LEFT")})}; Ch=function(A){var L=A.J("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";Dq.call(this,L,g.gC.g3);var B=this;this.S=A;this.N=!1;this.W=new g.aa(function(){g.NH(B.element,"ytp-menuitem-highlighted")},0); this.Wz=A.gB();A=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(A);this.subscribe("select",this.V,this);this.listen(QC,this.U);g.W(this,this.W)}; ib=function(A){VC.call(this,A);var L=this;this.N=!1;A.addEventListener("settingsMenuInitialized",function(){Uy8(L)}); A.addEventListener("highlightSettingsMenu",function(B){Uy8(L);var f=L.menuItem;B==="menu_item_cinematic_lighting"&&(g.R1(f.element,"ytp-menuitem-highlighted"),g.R1(f.element,"ytp-menuitem-highlight-transition-enabled"),f.W.start())}); wh(A,"updateCinematicSettings",function(B){L.updateCinematicSettings(B)})}; Uy8=function(A){A.menuItem||(A.menuItem=new Ch(A.api),g.W(A,A.menuItem),A.menuItem.zL(A.N))}; W6w=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"applicationvideodatachange",function(B,f){f=f.clipConfig;B==="dataloaded"&&f&&f.startTimeMs!=null&&f.endTimeMs!=null&&L.api.setLoopRange({startTimeMs:Math.floor(Number(f.startTimeMs)),endTimeMs:Math.floor(Number(f.endTimeMs)),postId:f.postId,type:"clips"})})}; $5=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);wh(A,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));wh(A,"setCreatorEndscreenHideButton",this.N.bind(this));this.J("web_fix_annotations")&&this.events.Y(A,"annotationvisibility",function(B){L.setCreatorEndscreenVisibility(!B);L.hideButton&&g.y9(L.hideButton,B)})}; qOC=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"videodatachange",function(){var B=L.api.getRootNode(),f=L.api.K();g.R1(B,"ytp-delhi-modern");f.J("delhi_modern_web_player_icons")&&g.R1(B,"ytp-delhi-modern-icons");f.J("delhi_modern_web_player_horizontal_volume_controls")&&g.R1(B,"ytp-delhi-horizontal-volume-controls");f.J("delhi_modern_web_player_compact_controls")&&g.R1(B,"ytp-delhi-modern-compact-controls");f.J("delhi_modern_web_player_big_mode_consistent_pill_height")&& g.R1(B,"ytp-big-mode-consistent-pill-height");switch(sR(f.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.R1(B,"ytp-delhi-modern-with-luminosity");break;case "difference":g.R1(B,"ytp-delhi-modern-with-difference");break;case "exclusion":g.R1(B,"ytp-delhi-modern-with-exclusion")}B=L.api.isHdr()||L.api.J("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";L.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",B);vQ0(L)}); this.events.Y(A,"resize",function(){vQ0(L)})}; vQ0=function(A){var L=A.api.J("delhi_modern_web_player_compact_controls"),B=g.Am(A.api.K().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),f=L||B>0&&A.api.getPlayerSize().width<=B;L=A.api.getRootNode();L.classList.toggle("ytp-delhi-modern-compact-controls",f);B=f?"40px":"48px";var K=f?"8px":"12px",V=f?"56px":"72px",J=f?"56px":"64px",R=f?"48px":"56px",Z=f?"12px":"20px";f=f?"72px":"96px";A.api.J("delhi_modern_web_player_big_mode_consistent_pill_height")&&(R="56px",Z="12px", f="80px");L.style.setProperty("--yt-delhi-pill-height",B);L.style.setProperty("--yt-delhi-pill-top-height",K);L.style.setProperty("--yt-delhi-bottom-controls-height",V);L.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",J);L.style.setProperty("--yt-delhi-big-mode-pill-height",R);L.style.setProperty("--yt-delhi-big-mode-pill-top-height",Z);L.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",f)}; Xh=function(A,L,B,f,K){var V=A.J("html5_enable_new_audio_settings_menu");Dq.call(this,"Volumen estable",V?P6v.JR:g.gC.JR);this.S=A;this.U=L;this.W=B;this.hasDrcAudioTrack=f;this.getDrcState=K;this.V=this.enableNewAudioSettingsMenu=this.N=!1;g.R1(this.element,"ytp-drc-menu-item");this.Wz=(this.enableNewAudioSettingsMenu=V)?A.gB().Wb:A.gB();A.J("html5_enable_voice_boost")?(this.V=!0,this.Y(A,"onFilterAudioFeatures",this.f8)):A.addEventListener("videodatachange",this.f8.bind(this));A.J("mta_drc_mutual_exclusion_removal")&& this.Y(A,"onPlaybackAudioChange",this.f8);A.createClientVe(this.element,this,273317);this.listen("click",this.T);L=this.W()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(A=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]},this.setIcon(A));this.subscribe("select",this.D,this);this.enableNewAudioSettingsMenu||this.V?this.f8():(this.setEnabled(this.hasDrcAudioTrack()),dC(this,L),this.Wz.ov(this))}; Ot=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);A.J("html5_show_drc_toggle")&&A.addEventListener("settingsMenuInitialized",function(){L.menuItem||(L.menuItem=new Xh(L.api,L.setDrcUserPreference.bind(L),L.getDrcUserPreference.bind(L),L.JE.bind(L),L.getDrcState.bind(L)),g.W(L,L.menuItem))}); wh(this.api,"setDrcUserPreference",function(f){L.setDrcUserPreference(f)}); wh(this.api,"getDrcUserPreference",function(){return L.getDrcUserPreference()}); wh(this.api,"hasDrcAudioTrack",function(){return L.JE()}); wh(this.api,"getDrcState",function(){return L.getDrcState()}); var B;this.N=(B=g.ES("yt-player-drc-pref"))!=null?B:1;this.updateEnvironmentData()}; Et=function(A){VC.call(this,A);var L=this;this.N={};this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"videodatachange",function(){L.onVideoDataChange()}); this.events.Y(A,g.qR("embargo"),function(B){L.api.Qe(!0);var f,K=(f=L.N[B.id])!=null?f:[];f=g.m(K);for(K=f.next();!K.done;K=f.next()){var V=K.value;L.api.hideControls();L.api.O9("auth",2,"This video isn't available in your current playback area",f$({embargoed:1,id:B.id,idx:B.W,start:B.start}));K=void 0;(V=(K=V.embargo)==null?void 0:K.onTrigger)&&L.api.Kr("innertubeCommand",V)}})}; xy0=function(A,L){var B;return(B=L.onEnter)==null?void 0:B.some(A.W)}; eUE=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=void 0,K=Number((f=B.playbackPosition)==null?void 0:f.utcTimeMillis)/1E3,V=void 0;f=K+Number((V=B.duration)==null?void 0:V.seconds);V="embargo_"+K;A.api.addUtcCueRange(V,K,f,"embargo",!1);B.onEnter&&(A.N[V]=B.onEnter.filter(A.W))}}; co=function(A){VC.call(this,A);var L=this;this.N=[];this.events=new g.dN(A);g.W(this,this.events);wh(A,"addEmbedsConversionTrackingParams",function(B){L.addEmbedsConversionTrackingParams(B)}); this.events.Y(A,"veClickLogged",function(B){L.api.hasVe(B)&&(B=B.visualElement.getAsJspb(),B=g.nu(B,2),L.N.push(B))})}; nQD=function(A){VC.call(this,A);wh(A,"isEmbedsShortsMode",function(){return A.isEmbedsShortsMode()}); wh(A,"getReelItemWatchResponse",function(){var L,B;return(B=(L=A.getVideoData(1))==null?void 0:L.getReelItemWatchResponse())!=null?B:null})}; zUk=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"initialvideodatacreated",function(B){dS(DD(),16623);L.N=g.sF();var f=A.K().Of&&!B.Pz;if(aq(B)&&f){dS(DD(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(B.getWatchNextResponse()){var K,V=(K=B.getWatchNextResponse())==null?void 0:K.trackingParams;V&&wS(V)}if(B.getPlayerResponse()){var J;(B=(J=B.getPlayerResponse())==null?void 0:J.trackingParams)&&wS(B)}}else dS(DD(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),B.getEmbeddedPlayerResponse()&&(J=(V=B.getEmbeddedPlayerResponse())==null?void 0:V.trackingParams)&&wS(J)}); this.events.Y(A,"loadvideo",function(){dS(DD(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:L.N})}); this.events.Y(A,"cuevideo",function(B){B===1&&dS(DD(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:L.N})}); this.events.Y(A,"largeplaybuttonclicked",function(B){dS(DD(),27240,B.visualElement)}); this.events.Y(A,"playlistnextbuttonclicked",function(B){dS(DD(),27240,B.visualElement)}); this.events.Y(A,"playlistprevbuttonclicked",function(B){dS(DD(),27240,B.visualElement)}); this.events.Y(A,"playlistautonextvideo",function(){dS(DD(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; M5=function(A,L){g.Y.call(this);var B=this;this.N=null;this.V=L;L=[];for(var f=0;f<=100;f++)L.push(f/100);L={threshold:L,trackVisibility:!0,delay:1E3};(this.W=window.IntersectionObserver?new IntersectionObserver(function(K){K=K[K.length-1];var V=null;typeof K.isVisible==="undefined"?document.visibilityState==="visible"&&K.isIntersecting&&K.intersectionRatio>0?V=K.intersectionRatio:document.visibilityState==="hidden"?V=0:V=null:V=K.isVisible?K.intersectionRatio:0;V!=null&&(V=Math.max(V,0),V=Math.min(V, 1));B.N=V;typeof B.V==="function"&&B.V(B.N)},L):null)&&this.W.observe(A)}; aDE=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"applicationInitialized",function(){uX8(L)})}; uX8=function(A){var L=A.api.getRootNode(),B,f=A.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((B=L.parentElement)==null?void 0:B.parentElement)||L:L;A.N=new M5(f,function(K){K!=null&&(A.api.K().jb=K,A.api.K().XT="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.W(A,A.N);A.events.Y(A.api,"videoStatsPingCreated",function(K){var V=A.N;V=V.N==null?null:Math.round(V.N*100)/100;K.inview=V!=null?V:void 0;V=A.api.getPlayerSize();if(V.height>0&&V.width>0){V=[Math.round(V.width),Math.round(V.height)];var J=g.J$();J>1&&V.push(J);V=V.join(":")}else V=void 0;K.size=V})}; Y5=function(A){VC.call(this,A);var L=this;wh(this.api,"dismissFeaturedProductOverlay",function(){L.dismissFeaturedProductOverlay()})}; AIQ=function(A){var L;return((L=((A==null?void 0:A.messageRenderers)||[]).find(function(B){return!!B.timeCounterRenderer}))==null?void 0:L.timeCounterRenderer)||null}; Ut=function(A){g.q.call(this,{Z:"div",Rr:["ytp-player-content","ytp-iv-player-content"],B:[{Z:"div",j:"ytp-free-preview-countdown-timer",B:[{Z:"span",Ir:"{{label}}"},{Z:"span",j:"ytp-free-preview-countdown-timer-separator",Ir:"\u2022"},{Z:"span",Ir:"{{duration}}"}]}]});this.api=A;this.N=null;this.V=this.W=0;this.Y(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; oKC=function(A,L){A.N||(A.W=L,A.V=(0,g.bc)(),A.N=new g.uN(function(){LdL(A)},null),LdL(A))}; LdL=function(A){var L=Math,B=L.round,f=Math.min((0,g.bc)()-A.V,A.W);L=B.call(L,(A.W-f)/1E3);A.updateValue("duration",VG({seconds:L}));L<=0&&A.N?A.stopTimer():A.N&&A.N.start()}; BDe=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"basechromeinitialized",function(){L.N=new Ut(A);g.W(L,L.N);g.Wh(A,L.N.element,4);L.N.hide()})}; Wo=function(A){g.q.call(this,{Z:"button",Rr:["ytp-fullerscreen-edu-button","ytp-button"],B:[{Z:"div",Rr:["ytp-fullerscreen-edu-text"],Ir:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{Z:"div",Rr:["ytp-fullerscreen-edu-chevron"],B:[qQe()]}],C:{"data-priority":"2"}});this.rT=A;this.fade=new g.KL(this,250,void 0,100);this.W=this.N=!1;A.createClientVe(this.element,this,61214);g.W(this,this.fade);this.Y(A,"fullscreentoggled",this.zL);this.Y(A,"presentingplayerstatechange",this.zL); this.listen("click",this.onClick);this.zL()}; vo=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);wh(this.api,"updateFullerscreenEduButtonSubtleModeState",function(f){L.updateFullerscreenEduButtonSubtleModeState(f)}); wh(this.api,"updateFullerscreenEduButtonVisibility",function(f){L.updateFullerscreenEduButtonVisibility(f)}); var B=A.K();A.J("external_fullscreen_with_edu")&&B.externalFullscreen&&Ko(B)&&B.controlsType==="1"&&this.events.Y(A,"standardControlsInitialized",function(){L.N=new Wo(A);g.W(L,L.N);A.fJ(L.N)})}; fcw=function(A){g.q.call(this,{Z:"div",j:"ytp-gated-actions-overlay",B:[{Z:"div",j:"ytp-gated-actions-overlay-background",B:[{Z:"div",j:"ytp-gated-actions-overlay-background-overlay"}]},{Z:"button",Rr:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],C:{"aria-label":"Cerrar"},B:[g.GZ()]},{Z:"div",j:"ytp-gated-actions-overlay-bar",B:[{Z:"div",j:"ytp-gated-actions-overlay-text-container",B:[{Z:"div",j:"ytp-gated-actions-overlay-title",Ir:"{{title}}"},{Z:"div",j:"ytp-gated-actions-overlay-subtitle", Ir:"{{subtitle}}"}]},{Z:"div",j:"ytp-gated-actions-overlay-button-container"}]}]});var L=this;this.api=A;this.background=this.m4("ytp-gated-actions-overlay-background");this.W=this.m4("ytp-gated-actions-overlay-button-container");this.N=[];this.Y(this.m4("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){L.api.Kr("onCloseMiniplayer")}); this.hide()}; Vzv=function(A,L){var B=0;B=0;for(var f={};B K&&(K=R.width,V="url("+R.url+")")}B.background.style.backgroundImage=V;Vzv(B,f.actionButtons||[]);B.show()}else B.hide()}); g.Wh(this.api,this.N.element,4)}; q5=function(A){VC.call(this,A);var L=this;yW(this.api,"getSphericalProperties",function(){return L.getSphericalProperties()}); yW(this.api,"setSphericalProperties",function(){L.setSphericalProperties.apply(L,g.x7(g.pf.apply(0,arguments)))}); pm(this.api,"getSphericalProperties",function(){return L.api.getPresentingPlayerType()===2?{}:L.getSphericalProperties()}); pm(this.api,"setSphericalProperties",function(){var B=g.pf.apply(0,arguments);L.api.getPresentingPlayerType()!==2&&L.setSphericalProperties.apply(L,g.x7(B))})}; Po=function(A){VC.call(this,A);wh(A,"createClientVe",this.createClientVe.bind(this));wh(A,"createServerVe",this.createServerVe.bind(this));wh(A,"destroyVe",this.destroyVe.bind(this));wh(A,"hasVe",this.hasVe.bind(this));wh(A,"logClick",this.logClick.bind(this));wh(A,"logVisibility",this.logVisibility.bind(this));wh(A,"setTrackingParams",this.setTrackingParams.bind(this))}; x5=function(A,L,B,f){function K(J){var R=!(J.status!==204&&J.status!==200&&!J.response),Z;J={succ:""+ +R,rc:J.status,lb:((Z=J.response)==null?void 0:Z.byteLength)||0,rt:((0,g.bc)()-V).toFixed(),shost:g.tW(A),trigger:L};S98(J,A);B&&B(J);f&&!R&&f(new g.K$("pathprobe.net",J))} var V=(0,g.bc)();g.ll(A,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:K,onTimeout:K})}; S98=function(A,L){var B;((B=window.performance)==null?0:B.getEntriesByName)&&(L=performance.getEntriesByName(L))&&L.length&&(L=L[0],A.pedns=(L.domainLookupEnd-L.startTime).toFixed(),A.pecon=(L.connectEnd-L.domainLookupEnd).toFixed(),A.perqs=(L.requestStart-L.connectEnd).toFixed(),RgE&&(A.perqsa=L.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; Zqv=function(A){RgE=A}; e3=function(A,L){this.Ml=A;this.policy=L;this.playbackRate=1}; NDv=function(A,L){var B=Math.min(2.5,nh(A.Ml));A=zD(A);return L-B*A}; af=function(A,L,B,f,K){K=K===void 0?!1:K;if(A.policy.mM)return Math.ceil(A.policy.mM*L);A.policy.jr&&(f=Math.abs(f));f/=A.playbackRate;var V=1/ub(A.Ml);B=Math.max(.9*(f-3),nh(A.Ml)+A.Ml.W.N*V)/V*.8/(L+B);B=Math.min(B,f);A.policy.FT>0&&K&&(B=Math.max(B,A.policy.FT));return Fd6(A,B,L)}; Fd6=function(A,L,B){return Math.ceil(Math.max(Math.max(A.policy.TK,A.policy.iT*B),Math.min(Math.min(A.policy.Cr,31*B),Math.ceil(L*B))))||A.policy.TK}; zD=function(A){return ub(A.Ml,!A.policy.w$,A.policy.p$)}; Ai=function(A){return zD(A)/A.playbackRate}; LT=function(A,L,B){var f=A.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],K=A.policy.playbackStartPolicy.startMinReadaheadPolicy||[];A=Infinity;L=g.m(L&&f.length>0?f:K);for(f=L.next();!f.done;f=L.next())f=f.value,K=f.minReadaheadMs||0,B<(f.minBandwidthBytesPerSec||0)||A>K&&(A=K);return A0&&(this.W=B.rp)}; Ic1=function(A,L,B,f,K){if(!f.info.V){if(B.length===0)B.push(f);else{var V;(A=(V=B.pop())==null?void 0:g.tL(V,f))?B.push(A):B.push(f)}return K}var J;(B=(J=B.pop())==null?void 0:g.tL(J,f))||(B=f);if(B.info.N)return A.logger&&A.logger({incompleteSegment:B.info.Dx()}),K;f=A.kU(B);K=f.XD;f={clipId:f.clipId,formatId:f.formatId,startTimeMs:f.startTimeMs,durationMs:f.wv,Uj:K,L8:K};K=Dj7(L,f.startTimeMs);if(V=B=K>=0?L[K]:null){V=f;var R=K;J=B.startTimeMs+B.durationMs;var Z=V.startTimeMs+V.durationMs;if(V.startTimeMs- J>A.W)V=!1;else if(djy(A,B.formatId,V.formatId))B.durationMs=Math.max(J,Z)-B.startTimeMs,B.L8=Math.max(B.L8,V.L8),V=!0;else if(Math.abs(B.startTimeMs-V.startTimeMs)<=A.W)if(B.durationMs>V.durationMs+A.W){var N=B.formatId,F=B.Uj;R=B.L8;B.formatId=V.formatId;B.durationMs=V.durationMs;B.Uj=V.Uj;B.L8=V.L8;V.formatId=N;V.startTimeMs=Z;V.durationMs=J-Z;V.Uj=F;V.L8=R;V=!1}else B.formatId=V.formatId,V=!0;else J>V.startTimeMs&&(J>Z&&(L.splice(R+1,0,{formatId:B.formatId,startTimeMs:Z,durationMs:J-Z,Uj:V.L8+ 1,L8:B.L8}),A.logger&&A.logger({splitOldStart:(N=B.startTimeMs)==null?void 0:N.toFixed(3),splitOldEnd:J==null?void 0:J.toFixed(3),splitNewStart:(F=V.startTimeMs)==null?void 0:F.toFixed(3),splitNewEnd:Z==null?void 0:Z.toFixed(3)})),B.durationMs=V.startTimeMs-B.startTimeMs,B.L8=V.Uj-1),V=!1}V?f=B:(K+=1,L.splice(K,0,f));N=0;for(F=K+1;F=Z+B.W?B=!0:R+B.W=0?A:-A-2}; wqL=function(A,L){if(A.uC){var B=A.uC.Hk();if(B.length!==0){if(A.V&&L){var f=A.V,K=f.info.U;!aT(B,K)&&f.info.X>0&&(0,g.bc)()-A.T<5E3&&(A.logger&&A.logger({dend:f.info.Dx()}),B=df7(B,K,K+.01))}A.policy.r$&&A.logger&&A.logger({cbri:""+A.N});f=[];for(var V=K=0;K=J){var F=Object.assign({},A.VK[V]),D=A.gT.V.get(nq(A.VK[V].formatId)),I=Math.max(Z,J);J=D.index.NV(I+A.W/ 1E3);Z=D.index.getStartTime(J);var d=J+ +(Math.abs(Z-I)>A.W/1E3);I=d+A.U;d=D.index.getStartTime(d)*1E3;V!==A.N||L?(F.Uj=I,F.startTimeMs=d):(A.logger&&A.logger({pEvict:"1",og:F.startTimeMs,adj:Z*1E3}),F.Uj=J+A.U,F.startTimeMs=Z*1E3);J=void 0;Z=((J=A.V)==null?void 0:J.info.duration)||11;V===A.N&&RA.W/1E3);J=Z+A.U;D=D.index.zU(Z)*1E3;F.L8=J;F.durationMs=D-F.startTimeMs;F.Uj<=F.L8&&f.push(F)}N=0&&Ji(A.audioTrack,A.targetTime)>=0&&V?((A.videoTrack.U||A.audioTrack.U)&&A.loader.Hn("iterativeSeeking",{status:"done",count:A.seekCount}),A.videoTrack.U=!1,A.audioTrack.U=!1):f&&g.lX(function(){if(A.N||!A.policy.ql)Zb(A);else{var J=L.startTime,R=L.duration;if(!A.policy.D){var Z=A.videoTrack.D!==-1&&A.audioTrack.D!==-1,N=!A.videoTrack.qp&&!A.audioTrack.qp;(B?A.videoTrack.U:A.audioTrack.U)&&Z&&N&&(A.targetTime>= J&&A.targetTime432E3&&PQy(A.gT);A.W&&(K=A.W,A.W=0);g.lX(function(){A.policy.D||NI(A,K,102)}); A.loader.Hn("initManifestlessSync",{st:K,ost:K+A.loader.pY(),a:A.audioTrack.D,v:A.videoTrack.D});A.V&&(A.V.resolve(K+.1),A.V=null);A.policy.D&&NI(A,K,102)}}}; I5=function(){this.data=new Uint8Array(2048);this.pos=0;dM||(dM=bD("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; wM=function(A,L){A.add(L==null||isNaN(L)?0:L+1)}; ya=function(A,L){var B=this;this.xs=A;this.requestNumber=++TDS;this.N=this.now();this.G=this.yj=NaN;this.X=this.N;this.V=this.KY=this.D=0;this.T=this.N;this.Ox=this.qp=this.JF=this.N8=this.Pz=this.ZM=this.W=this.U=0;this.Wn=this.isActive=!1;this.Uv=this.Nl=0;this.GV={yaj:function(){return B.xm}}; this.Ml=L.Ml;this.snapshot=pT(this.Ml);this.policy=this.Ml.W;this.lf=!!L.lf;this.YD=L.YD;this.qz=L.qz||0;this.So=L.So||0;L.L6&&(this.wT=new I5);var f;this.xm=(f=L.xm)!=null?f:!1;this.lf||lcy(this.Ml)}; mjw=function(A){A.JF=Math.max(A.JF,A.D-A.Pz);A.qp=Math.max(A.qp,A.X-A.N8);A.ZM=0}; jb=function(A,L,B){Qsv(A.Ml,L);A.wT&&(A.wT.add(Math.ceil(L)-Math.ceil(A.X)),A.wT.add(Math.max(0,Math.ceil(B/1024)-Math.ceil(A.D/1024))));var f=L-A.X,K=B-A.D;A.KY=K;A.Ox=Math.max(A.Ox,K/(f+.01)*1E3);A.X=L;A.D=B;A.ZM&&B>A.ZM&&mjw(A)}; gM=function(A,L){A.url=L;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; GC=function(A,L){ya.call(this,A,L);this.ql=this.jI=!1;this.S4=this.Vj=Infinity;this.Ys=NaN;this.mH=!1;this.cn=NaN;this.t$=this.Ex=this.Cr=0;this.bb=L.bb||1;this.Kg=L.Kg||this.bb;this.HB=L.HB;this.XD=L.XD;this.FH=L.FH;CnC(this);this.i9(this.N);this.zV=(this.cn-this.N)/1E3}; iqw=function(A){var L=A.Ex||A.Cr;return L?A.snapshot.delay+Math.min(A.So,(A.G-A.yj)/1E3)+L:A.zV}; sV=function(A,L,B){if(!A.lf){L=Math.max(L,.01);var f=A.qz?Math.max(L,B/A.qz):L,K=A.Ml.W.V;K&&(f=L,A.qz&&(f=Math.max(L,B/A.qz*K)));rM(A.Ml,L,B,f)}}; $j6=function(A){return(A.T-A.N)/1E3}; CnC=function(A){A.Ys=A.N+A.snapshot.delay*1E3;A.mH=!1}; HO=function(A,L){if(A.HB&&A.XD!==void 0&&A.FH!==void 0){var B=Math,f=B.min,K=A.Vj;var V=A.HB;var J=A.N;if(Xq7(V,A.XD))V=L;else{var R=0;V.D5&&(R=.2);V=J+(V.So+R)*1E3}A.Vj=f.call(B,K,V);B=Math;f=B.min;K=A.S4;V=A.HB;J=A.N;R=OqL(V,A.XD,A.FH);R!==2&&(L=R?L:J+V.So*1E3,V.D5&&(L+=V.So*1E3));A.S4=f.call(B,K,L);A.Vj<=A.N?CnC(A):(A.Ys=A.Vj,A.mH=!0)}}; EK0=function(A,L){if(L+1<=A.totalLength){var B=jU(A,L);B=B<128?1:B<192?2:B<224?3:B<240?4:5}else B=0;if(B<1||!(L+B<=A.totalLength))return[-1,L];if(B===1)A=jU(A,L++);else if(B===2)B=jU(A,L++),A=jU(A,L++),A=(B&63)+64*A;else if(B===3){B=jU(A,L++);var f=jU(A,L++);A=jU(A,L++);A=(B&31)+32*(f+256*A)}else if(B===4){B=jU(A,L++);f=jU(A,L++);var K=jU(A,L++);A=jU(A,L++);A=(B&15)+16*(f+256*(K+256*A))}else B=L+1,A.focus(B),wZ(A,B,4)?A=rbC(A).getUint32(B-A.V,!0):(f=jU(A,B+2)+256*jU(A,B+3),A=jU(A,B)+256*(jU(A,B+1)+ 256*f)),L+=5;return[A,L]}; hi=function(A){this.xs=A;this.N=new FK}; b$=function(A,L){this.info=A;this.callback=L;this.state=1;this.QZ=this.T6=!1;this.I0=null}; cIe=function(A){return g.Q9(A.info.Lr,function(L){return L.type===3})}; ti=function(A,L,B,f){var K=this;f=f===void 0?{}:f;this.policy=L;this.xs=B;this.status=0;this.N=new FK;this.W=0;this.TL=this.U=this.V=!1;this.xhr=new XMLHttpRequest;this.xhr.open(f.method||"GET",A);if(f.headers)for(A=f.headers,L=g.m(Object.keys(A)),B=L.next();!B.done;B=L.next())B=B.value,this.xhr.setRequestHeader(B,A[B]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return K.xQ()}; this.xhr.onload=function(){return K.onDone()}; this.xhr.onerror=function(){return K.onError()}; this.xhr.fetch(function(V){K.N.append(V);K.W+=V.length;V=(0,g.bc)();K.xs.gK(V,K.W)},function(){},f.body||null)}; Mz1=function(A,L){this.W=(new TextEncoder).encode(A);this.N=(new TextEncoder).encode(L)}; gY6=function(A,L){var B;return g.c(function(f){if(!L)return f.return(L);B=new g.Rd(A.W);return f.return(B.encrypt(L,A.N))})}; h97=function(A,L){var B;return g.c(function(f){if(f.N==1){if(!L)return f.return(L);B=new g.Rd(A.W);return g.X(f,B.decrypt(L,A.N),2)}return f.return(f.W)})}; Y9v=function(A,L){var B=this;this.N=A;this.xs=L;this.loaded=this.status=0;this.error="";A=AL(this.N.get("range")||"");if(!A)throw Error("bad range");this.range=A;this.W=new FK;this.run().then(function(){B.xs.ZZ()},function(f){B.error=""+f||"unknown_err"; B.xs.ZZ()})}; Wd1=function(A,L,B,f){var K=this;f=f===void 0?{}:f;this.policy=L;this.xs=B;this.T=f;this.status=0;this.response=void 0;this.W=0;this.aborted=this.D=!1;this.errorMessage="";this.G=function(V){if(V)if(K.status=V.status,V.ok&&V.body&&K.status!==204)K.status=K.status||242,K.V=V.body.getReader(),K.TL()?K.V.cancel().catch(function(){}):(K.responseHeaders=V.headers,K.xs.U5(),UjD(K)); else K.onDone();else K.onError(Error("null_response"))}; this.X=function(V){var J=(0,g.bc)();K.TL()||(V.done?(K.V=void 0,K.onDone()):(V=V.value,K.W+=V.length,K.N.append(V),UjD(K),K.xs.gK(J,K.W)))}; this.onError=function(V){K.errorMessage=String(V);K.D=!0;K.onDone()}; this.N=new FK;this.U=window.AbortController?new AbortController:void 0;this.start(A)}; UjD=function(A){A.V.read().then(A.X,A.onError).then(void 0,QH)}; vK8=function(A,L,B){var f=this;B=B===void 0?{}:B;this.xs=L;this.W=this.status=0;this.TL=this.N=!1;this.xhr=new XMLHttpRequest;this.xhr.open(B.method||"GET",A);if(B.headers){A=B.headers;L=g.m(Object.keys(A));for(var K=L.next();!K.done;K=L.next())K=K.value,this.xhr.setRequestHeader(K,A[K])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(V){f.xQ(V)}; A=SH(function(V){f.onDone(V)}); this.xhr.addEventListener("load",A,!1);this.xhr.addEventListener("error",A,!1);B.body?this.xhr.send(B.body):this.xhr.send();this.xhr.addEventListener("progress",SH(function(V){f.onProgress(V)}),!1)}; k2=function(A,L,B,f,K){if(k7(54,A.QN))return new Y9v(A,B);A=A.MQ();return f?RDe()?new ti(A,L,B,K):new Wd1(A,L,B,K):new vK8(A,B,K)}; TC=function(A,L){g.Y.call(this);var B=this;this.policy=A;this.Lr=L;this.W=0;this.N=null;this.E_=[];this.V=null;this.GV={PA:function(){return B.Lr}}; this.Lr.length===1||g.Q9(this.Lr,function(f){return!!f.range})}; l$=function(A,L,B){A.N&&(DF(A.N,L),L=A.N,A.N=null);for(var f=0,K=0,V=g.m(A.Lr),J=V.next();!J.done;J=V.next())if(J=J.value,J.range&&f+J.W<=A.W)f+=J.W;else{if(f3(J)&&!B&&A.W+L.totalLength-K=400?(A.lastError="net.badstatus",!0):(K===void 0?0:K)?(A.lastError="ump.spsrejectfailure",!0):B||f!==void 0&&f?!1:(A.lastError=L===204?"net.nocontent":"net.connect",!0)}; XT=function(A,L){if(A.policy.XE)return!1;var B=L.getResponseHeader("content-type"),f=L.cN();A=!f||f<=A.policy.Z$;return(!L.v4()||!B||B.indexOf("text/plain")!==-1)&&A}; nKC=function(A,L){var B="";L=L.xK();L.totalLength<=A.policy.Z$&&(A=pz(L),A=G3(A),B=dy(A)?A:"");return B}; Qa=function(A){return Wq(A.U,wy(21,A.Tq.QN))}; zg7=function(A){var L=A.timing.Rg();L.shost=wy(17,A.Tq.QN);A.policy.O_&&A.policy.zK&&(L.csrc=1);return L}; ud6=function(A,L){return(A==null?void 0:A.maxWidth)>(L==null?void 0:L.maxWidth)||(A==null?void 0:A.maxHeight)>(L==null?void 0:L.maxHeight)}; ac0=function(A,L){for(var B=g.m(L.keys()),f=B.next();!f.done;f=B.next())if(f=L.get(f.value),f.length!==0){g.I8(f,function(R,Z){return Z.maxFramerate-R.maxFramerate}); for(var K=[f[0]],V=0,J=1;JA.N||B.push(f)}return B}; OV=function(A,L,B){var f=o6D[A]||[];B.J("html5_shorts_onesie_mismatched_fix")&&(f=BRC[A]||[]);L.push.apply(L,g.x7(f));B.J("html5_early_media_for_drm")&&L.push.apply(L,g.x7(fYk[A]||[]))}; Z31=function(A,L){var B=g.Gp(A),f=A.K(),K=f.D;f=f.J("html5_shorts_onesie_mismatched_fix");var V=A.zt();if(f){if(!K.N){if(V&&EV)return EV;if(cO)return cO}}else if(cO&&!K.N)return cO;var J=[],R=[],Z={},N=MI.concat(Kr8);f&&(N=MI.concat(VlE));A.J("html5_early_media_for_drm")&&(N=N.concat(JLD),A.J("allow_vp9_1080p_mq_enc")&&N.push(SI6));var F=[].concat(g.x7(Rc1));A.J("html5_iamf_audio_onesie_fmt")&&F.push(["773"]);N=g.m(N);for(var D=N.next();!D.done;D=N.next()){var I=!1;D=g.m(D.value);for(var d=D.next();!d.done;d= D.next()){d=d.value;var w=jK(d,V&&f);if(w&&w.video&&!(Mb(w)&&!B.wT&&w.video.qualityOrdinal>B.Tb)){var r=g.Am(A.K().experiments,"html5_drm_byterate_soft_cap");r>0&&Fmv(w)&&w.lC>r||(I?(J.push(d),OV(d,J,A)):(w=qy(B,w,K),w===!0?(I=!0,J.push(d),OV(d,J,A)):Z[d]=w))}}}F=g.m(F);for(N=F.next();!N.done;N=F.next())for(N=g.m(N.value),I=N.next();!I.done;I=N.next())if(I=I.value,(D=S7e(I))&&D.audio&&(A.J("html5_onesie_51_audio")||!Ya(D)))if(D=qy(B,D,K),D===!0){R.push(I);OV(I,R,A);break}else Z[I]=D;if(!A.J("html5_enable_audio_quality_setting"))for(A= g.m(["141","774"]),F=A.next();!F.done;F=A.next())F=F.value,R.includes(F)&&(g.Lx(R,F),Z[F]="blkhqa");B.N&&L("orfmts",Z);if(f)return K.N&&(K.N=!1,EV=cO=void 0),V?EV={video:J,audio:R}:cO={video:J,audio:R};cO={video:J,audio:R};K.N=!1;return cO}; g.DPS=function(A,L,B){var f=B.D,K=[],V=[],J=B.J("html5_shorts_onesie_mismatched_fix");A=A.zt();var R=MI.concat(Kr8);J&&(R=MI.concat(VlE));B.J("html5_early_media_for_drm")&&(R=R.concat(JLD),B.J("allow_vp9_1080p_mq_enc")&&R.push(SI6));var Z=[].concat(g.x7(Rc1));B.J("html5_iamf_audio_onesie_fmt")&&Z.push(["773"]);R=g.m(R);for(var N=R.next();!N.done;N=R.next()){N=g.m(N.value);for(var F=N.next();!F.done;F=N.next()){F=F.value;var D=jK(F,A&&J);if(D&&D.video){var I=g.Am(B.experiments,"html5_drm_byterate_soft_cap"); if(!(I>0&&Fmv(D)&&D.lC>I)&&qy(L,D,f)===!0){K.push({videoCodec:NRS[Qu[F]],maxWidth:D.video.width,maxHeight:D.video.height,maxFramerate:D.video.fps});break}}}}J=g.m(Z);for(A=J.next();!A.done;A=J.next())for(A=g.m(A.value),Z=A.next();!Z.done;Z=A.next())if(Z=Z.value,(R=S7e(Z))&&R.audio&&(B.J("html5_onesie_51_audio")||!Ya(R))&&qy(L,R,f)===!0){V.push({audioCodec:FrQ[Qu[Z]],numChannels:R.audio.numChannels});break}return{videoFormatCapabilities:K,audioFormatCapabilities:V}}; wpS=function(A){var L,B={},f=A.Np,K=A.tF,V=A.Ml,J=f.getVideoData(),R=h2(0),Z=f.getVisibilityState();K.J("html5_enable_audio_quality_setting")&&(B.Ai=K.Ai);R&&(B.L4n=R,B.lastManualDirection=DR6(),R=H2y()||0,R>0&&(R=(K.J("html5_use_date_now_for_local_storage")?Date.now():(0,g.bc)())-R,K.J("html5_use_date_now_for_local_storage")?R>0&&(B.timeSinceLastManualFormatSelectionMs=R):B.timeSinceLastManualFormatSelectionMs=R));R=K.J("html5_use_streamer_bandwidth_for_low_latency_live")&&J.isLowLatencyLiveStream; if(V.Wn&&!R){var N;R=K.J("html5_disable_bandwidth_cofactors_for_sabr_live")?!((N=A.Iy)==null||!N.w$):!1;B.Ro=ub(V,!R)}R=g.ka.medium;var F=Math.floor(R*16/9);(N=J.zt())||(J.N&&J.V&&J.V.videoInfos.length!==0?(N=J.V.videoInfos[0],N=!!N.video&&N.video.width0?{authorizedFormats:A.authorizedFormats}:{authorizedFormats:L};A.sabrLicenseConstraint&&(B.vt.sabrLicenseConstraint=A.sabrLicenseConstraint);if(K.J("html5_onesie_media_capabilities")||mX(J))B.C$=3;K.J("html5_onesie_audio_only_playback")&& y7(J)&&(B.C$=1);var l;((l=A.Iy)==null?0:l.WR)&&A.uD1&&(B.C$=B.C$===void 0?7:B.C$|4);l=J.cn?J.cn:g.Gp(J);K.J("html5_onesie_media_capabilities")&&(B.mediaCapabilities=g.DPS(J,l,K));var C;if((C=A.Iy)==null?0:Y2(C)){C=[];L=[];I=new Map;d=g.m(J.BR.N.values());for(w=d.next();!w.done;w=d.next())if(r=w.value,r.NF)L.push({audioCodec:FrQ[r.Bn],numChannels:r.numChannels,spatialCapabilityBitmask:dPL[r.Bn]});else{h=NRS[r.Bn];w={videoCodec:h,maxWidth:r.maxWidth||0,maxHeight:r.maxHeight||0,maxFramerate:r.maxFramerate|| 0,is10BitSupported:r.uT||!1,maxBitrateBps:r.maxBitrateBps||0};if(r.Bn==="1"||r.Bn==="9")w.efficient=!0;r=h+"_"+r.uT;h=I.get(r)||[];h.push(w);I.set(r,h)}C=ac0(C,I);I={};J.J("html5_ssff_denylist_opus_low")&&(I={itagDenylist:[249,350]});B.mediaCapabilities={videoFormatCapabilities:C,audioFormatCapabilities:L,hdrModeBitmask:3,perPlaybackAttributes:I}}var O;if((O=A.Iy)==null?0:O.N){B.DZ=l.DZ;var v;B.Tb=(v=A.Iy)==null?void 0:v.Tb}K.Pk&&(B.UD=K.Pk);B.q1=A.ut;B.F6=A.F6;B.Un=A.Un;B.PL=A.PL;A.JH&&(B.HV1=(0,g.bc)()- A.JH);A.Ay&&K.J("html5_report_prefetch_requests")&&(B.Ay=A.Ay);Km||(B.EPr=!0);O=nh(V)*1E3;O>0&&(B.Qp=O);var U;((U=A.Iy)==null?0:U.lR)&&A.Pa&&A.Pa0?a:V.interruptions[0]||0;var o0;if((o0=A.Iy)==null?0:o0.jI)B.Cn=A.Cn; K.cn&&(B.audioTrackId=K.cn);oh(J)&&!B.audioTrackId&&(K.J("html5_fill_default_mosaic_audio_track_id")||(A=C4D(J),B.audioTrackId=A),J==null||J.Hn("misstrkchg",{"default":B.audioTrackId}));if(A=fEv())B.detailedNetworkType=IY1[A]||IY1.other;!K.J("html5_enable_voice_boost")||J.zt()||J.isAd()||(B.uLs=K.rg);return B}; UV=function(A,L,B,f,K,V,J){var R={};L&&(R.K_=L);if(!A)return R;R.playbackCookie=B==null?void 0:B.playbackCookie;K&&(R.Ih=K);R.KL=[];R.pS=[];if(J==null?0:J.size)for(L=g.m(J.values()),B=L.next();!B.done;B=L.next())R.pS.push(B.value);if(A.sabrContextUpdates.size>0)for(L=g.m(A.sabrContextUpdates.values()),B=L.next();!B.done;B=L.next())ppv(R,B.value,f);iS(A)&&V&&ppv(R,V,f);f=A.K().N;R.clientInfo={clientName:yLS[f.c.toUpperCase()]||0};f.cbrand&&(R.clientInfo.deviceMake=f.cbrand);f.cmodel&&(R.clientInfo.deviceModel= f.cmodel);f.cver&&(R.clientInfo.clientVersion=f.cver);f.cos&&(R.clientInfo.osName=f.cos);f.cosver&&(R.clientInfo.osVersion=f.cosver);f=A.K();f.J("html5_sabr_enable_server_xtag_selection")&&f.nD&&(R.clientInfo.hl=f.nD);A.xC&&(R.xC=A.xC);return R}; ppv=function(A,L,B){var f=L.type||0;(B==null?0:B.has(f))?A.pS.push(L):A.KL.push(f)}; KT=function(A,L,B,f,K,V){var J=V===void 0?{}:V;var R=J.dJ===void 0?[]:J.dJ;var Z=J.b4===void 0?!1:J.b4;var N=J.zo===void 0?0:J.zo;var F=J.poToken===void 0?"":J.poToken;var D=J.DA===void 0?void 0:J.DA;var I=J.tG===void 0?"":J.tG;var d=J.XH===void 0?0:J.XH;var w=J.Sg===void 0?new Uint8Array(0):J.Sg;var r=J.Op===void 0?!1:J.Op;V=J.hj===void 0?0:J.hj;J=J.K_===void 0?void 0:J.K_;b$.call(this,L,K);var h=this;this.policy=A;this.logger=new g.sI("dash/request");this.Gv=this.zy=0;this.JJ=!1;this.Od=this.Jj= null;this.aI=!1;this.Sg=this.XH=null;this.kV=this.hn=!1;this.tL=null;this.hj=this.cZ=0;this.EK=!1;this.GV={Y6:function(l){h.Y6(l)}, gAp:function(){return h.I0}, tTx:function(l){h.I0=l}, bns:function(l){h.zy=l}, mhx:function(l){h.RA.lastError=l}, HM:function(){return h.xhr}}; this.timing=new GC(this,B);this.b4=Z;this.XH=d;this.Sg=w;this.Tq=g.DY(this.info,this.policy,f);this.Tq.set("rn",this.zb().toString());this.Tq.set("rbuf",(N*1E3).toFixed().toString());this.b4&&this.Tq.set("smb","1");this.policy.iD&&F&&this.Tq.set("pot",F);I&&this.Tq.set("bbs",I);this.policy.useUmp&&!k7(49,this.Tq.QN)&&(this.S5=new hi(this),this.Tq.set("ump","1"),this.Tq.set("srfvp","1"));if(A=this.policy.h8?this.policy.B1&&!isNaN(this.info.FH)&&this.info.FH>this.policy.uZ?!1:!0:!1)L=null,this.policy.oP&& this.policy.In?L=[1]:r&&(L=[]),L!=null&&(this.policy.Kb&&L.push(2),this.Tq.set("defsel",L.join(",")));this.RA=new m4(this,this.policy,this.Tq,this.info.wi,this.timing,this.logger,f,D);this.dJ=R||null;this.QZ=jp1(this);q9S(this.RA);f=void 0;if(this.policy.ngD||this.S5||this.policy.Ys)f={method:"POST"},R=(0,g.WO)([120,0]),D={},this.policy.A9&&J&&(J=UV(void 0,J),D.mZ=J),this.policy.ke&&this.Sg&&(D.videoPlaybackUstreamerConfig=this.Sg),this.policy.Ys&&(J=this.info.U)&&Object.assign(D,J),Object.keys(D).length> 0?f.body=g.qA(D,g.HV):f.body=R;if(this.XH&&this.Sg){this.Tq.set("iwts","1");f={method:"POST"};J={PL:this.XH*1E3};var Q;R=(Q=this.info.U)==null?void 0:Q.xX;Q=g.qA({No:J,xX:R||void 0,videoPlaybackUstreamerConfig:this.Sg},g.HV);f.body=Q}try{this.xhr=k2(this.Tq,this.policy.G,this.timing,A,f),this.RA.W.start(),V&&(this.y_=new g.aa(this.VM,V,this),this.y_.start(V+(this.timing.Ml.G.pw()||0)*1E3)),this.policy.QW&&gM(this.timing,this.MQ()),g.lX(function(){})}catch(l){g6E(this,l,!0)}}; jp1=function(A){if(!(FV(A.info)&&A.info.xm()&&A.policy.Po&&A.dJ)||A.info.wi.V>=2||h2()>0||!pRw())return!1;var L=A.Tq.get("aitags");if(!L)return!1;L=qw(L).split(",");for(var B=[],f=g.m(A.dJ),K=f.next();!K.done;K=f.next())K=K.value,g.zK(L,K)&&B.push(K);if(!B.length)return!1;A.Tq.set("altitags",g.v5(B.join(",")));return!0}; g6E=function(A,L,B){B=B===void 0?!1:B;g.mL(L);A.RA.lastError="player.exception";A.errorMessage=L.name+"_"+L.message;B?g.lX(function(){i$(A.RA)}):i$(A.RA)}; GW8=function(A,L){A.timing.Wn=!0;A.xhr.v4()&&A.timing.Ja();if(A.policy.nD){var B;(B=A.y_)==null||B.stop()}l$(A.I0,L,!1)}; rLD=function(A){A.cZ&&(A.xhr.status=A.cZ,A.zy=A.cZ)}; vO=function(A,L){ya.call(this,A,L);this.S4=!0;this.Vj=!1;this.Ex=this.Ys=0;this.Cr=NaN}; spE=function(A,L,B){var f=A.qz?Math.max(L,B/A.qz):L,K=A.Ml.W.V;K&&(f=L,A.qz&&(f=Math.max(L,B/A.qz*K)));rM(A.Ml,L,B,f)}; qI=function(A,L){this.xs=L;this.W={};this.logger=new g.sI(A)}; PO=function(A){qI.call(this,"sabr",A);this.xs=A;this.N=[]}; H30=function(A,L,B){switch(L){case 35:A.xE(B);break;case 44:A.x0(B);break;case 43:A.hZ(B);break;case 53:A.z7(B);break;case 56:A.hK();break;case 57:A.UQ(B);break;case 42:A.Vg(B);break;case 45:A.eJ(B);break;case 59:A.Cy(B);break;case 51:A.QO(B);break;case 49:A.aF(B);break;case 50:A.z5(B);break;case 47:A.us(B);break;case 58:A.mG(B);break;case 61:A.xs.By.LP((0,g.bc)());break;case 66:A.Yh(B);break;case 46:A.En(B);break;case 67:A.onSnackbarMessage(B);break;case 71:OX(B,Vmw)}}; x2=function(A){g.Y.call(this);this.U=A;this.logger=new g.sI("onesie");this.EE=new Map;this.W=this.N=!1;this.Iy=this.gT=null;this.V=!1}; hc8=function(A,L,B){A.EE.get(L).onProgress=B}; zC=function(A,L){A.EE.has(L)&&(eb?A.EE.get(L).f9.clear():A.EE.get(L).E_=new FK,nT(A,L),A.W=!0)}; b3Q=function(A){for(var L=g.m(A.EE),B=L.next();!B.done;B=L.next()){var f=g.m(B.value);B=f.next().value;f=f.next().value;f.PC||zC(A,B)}}; tlS=function(A,L){L=A.EE.get(L);if(!L)return 0;A=0;if(L.Lr.length>0){L=g.m(L.Lr);for(var B=L.next();!B.done;B=L.next()){var f=void 0;A+=((f=B.value.range)==null?void 0:f.length)||0}return A}if(L.Zs.length>0)for(B=g.m(L.Zs),f=B.next();!f.done;f=B.next())A+=f.value.a6||0;return A+L.qd}; u$=function(A,L){if(eb){var B=0;A=A.EE.get(L);if(A==null||!A.f9)return 0;A=g.m(A.f9.values());for(L=A.next();!L.done;L=A.next())B+=L.value.data.totalLength;return B}return((B=A.EE.get(L))==null?void 0:B.E_.totalLength)||0}; a5=function(A,L){A=A.EE.get(L);if(eb){if(A==null||!A.PC)return!1;L=A.f9.size>0;return A.KZ.length>0||L}return!(A==null||!A.PC)&&!(A==null||!A.E_.totalLength)}; kWS=function(A,L){var B=A.EE.get(L),f=tlS(A,L),K=!f&&!!B.bytesReceived;if(eb){var V;if((V=A.gT)==null?0:V.iC){A=g.m(B.f9.values());for(L=A.next();!L.done;L=A.next())if(!L.value.YN)return!1;return K}}else if(V=A.JT(L),K&&A.N&&V!==void 0)return V;return(K||B.bytesReceived===f)&&B.eY+u$(A,L)===B.bytesReceived}; TRw=function(A,L,B,f){B.Lr.push.apply(B.Lr,g.x7(f));if(eb){B.H0.has(L)||B.H0.set(L,[]);var K;(K=B.H0.get(L)).push.apply(K,g.x7(f))}else if(B.I0)for(A=g.m(f),L=A.next();!L.done;L=A.next())B.I0.Lr.push(L.value);else{B.I0=new TC(A.Iy,[].concat(g.x7(B.Lr)));var V;((V=A.Iy)==null?0:V.XT)&&g.W(A,B.I0)}}; lYk=function(A,L,B){var f,K=(f=A.gT)==null?void 0:f.V.get(L);if(!K)return[];if(B.qE){var V;return((V=K.bv(0,B.clipId))==null?void 0:V.Lr)||[]}if(K.BB()){var J=B.startMs,R=B.durationMs;f=1E3;var Z;if(((Z=A.Iy)==null?0:Z.N)&&B.timeRange){var N;J=(N=B.timeRange.startTicks)!=null?N:-1;var F;R=(F=B.timeRange.Ew)!=null?F:-1;var D;f=(D=B.timeRange.timescale)!=null?D:-1}if(B.Uo<0||B.td<0||R<0||J<0||B.a6<0||f<0)return zC(A,L),[];A=L3(B.Uo,B.a6);L=B.dG||0;return[new Bp(3,K,A,"makeSliceInfosMediaBytes",B.td- 1,J/f,R/f,L,A.length-L,void 0,B.Gb,B.clipId)]}if(B.td<0)return zC(A,L),[];var I;return((I=A.gT)==null?0:I.iC)?(L=K.oC,Z=L*K.info.lC,N=B.dG,((J=A.Iy)==null?0:J.N)&&A.U.GU()!=="ONESIE"&&B.timeRange&&!N&&(R=B.timeRange.startTicks/B.timeRange.timescale),[new Bp(3,K,void 0,"makeSliceInfosMediaBytes",B.td,R,L,N,Z,!0,B.Gb,B.clipId)]):[]}; mP7=function(A,L,B){A.gT=L;A.Iy=B;L=g.m(A.EE);for(B=L.next();!B.done;B=L.next()){var f=g.m(B.value);B=f.next().value;f=f.next().value;for(var K=g.m(f.GN),V=K.next();!V.done;V=K.next()){V=V.value;var J=lYk(A,B,V);TRw(A,V.TB,f,J)}}}; A4=function(A,L,B,f){(A=A.EE.get(B))&&!A.vV&&(eb?(A.f9.has(L)||A.f9.set(L,{data:new FK,m_:0,YN:!1}),DF(A.f9.get(L).data,f)):DF(A.E_,f),A.bytesReceived+=f.totalLength,A.mN=!0)}; nT=function(A,L){if((L=A.EE.get(L))&&!L.vV){L.vV=!0;if(L.onProgress)L.onProgress();a:{L=g.m(A.EE.values());for(var B=L.next();!B.done;B=L.next())if(!B.value.vV){L=!1;break a}L=!0}L&&A.U.Ei()}}; QpE=function(A){eb=A}; L5=function(A,L,B,f,K,V,J){g.Y.call(this);this.policy=A;this.info=L;this.gT=B;this.xs=K;this.logger=new g.sI("sabr");this.S5=new hi(this);this.Qk=new PO(this);this.K8=new x2(this);this.state=1;this.DX=!1;this.gE=0;this.clipId="";this.tO=-1;this.qO=0;this.vH=-1;this.aq=this.Xh=this.EK=this.kO=!1;this.policy.jy?this.By=new vO(this,V):this.By=new GC(this,V);this.Tq=this.policy.jI?L.Tc:C7Q(L,this.policy,f);this.Tq.set("rn",""+this.zb());this.Tq.set("alr","yes");mP7(this.K8,B,A);this.RA=new m4(this,this.policy, this.Tq,L.wi,this.By,this.logger,f,J,this.policy.enableServerDrivenRequestCancellation);q9S(this.RA);var R;if((R=this.policy)==null?0:R.XT)g.W(this,this.K8),g.W(this,this.RA);A=L.W;L={method:"POST",body:A};A&&(this.qO=A.length);try{this.xhr=k2(this.Tq,this.policy.G,this.By,Km,L),this.policy.QW&&gM(this.By,this.MQ()),this.RA.W.start()}catch(Z){g.CE(Z)}}; i36=function(A){A.policy.wJ&&A.M3&&!A.Xh?A.Xh=!0:A.By.Ja()}; $Py=function(A,L){var B=-1,f=-1,K=-1,V;if((V=A.Y8)==null?0:V.items)for(A=g.m(A.Y8.items),V=A.next();!V.done;V=A.next())V=V.value,L=R,Z=A.gT.isManifestless,J){var N;if(((N=A.N)==null?void 0:N.U9.event)==="predictStart"&&A.N.XDA.D&&(A.D=NaN,A.T=NaN);if(A.N&&A.N.XD===L){if(f=A.N,!A.policy.T||!A.policy.W)if(K&&f){var J=f.U9;V=K.IG(J);J.event==="predictStart"&&(A.Wn=L);A.Hn("sdai",{onqevt:J.event,sq:L,mt:B,gab:V,cst:J.startSecs,cueid:A.policy.Ts&&(V||J.event==="start")?J.identifier:void 0},!0);if(V)if(J.event!=="predictStart")J.event==="start"&&A.Wn===L-1&&A.Hn("sdai", {gabonstart:L}),f.UK?K5(A,4,"cue"):(A.D=L,A.T=B,A.Hn("sdai",{joinad:A.W,sg:A.D,st:A.T.toFixed(3)}),A.G=Date.now(),K5(A,2,A.W===3?"staftpred":"join"),qID(K,f.U9));else{var R=P7D(A);L+=Math.max(Math.ceil(-J.N/R),1);J=Math.floor(B-J.N/1E3);A.policy.W?A.V=J:A.U=L;A.Hn("sdai",{onpred:B,estsq:L,estmt:J.toFixed(3)});Vi(A.loader,J,J,L,R);A.G=Date.now();K5(A,3,"predict");qID(K,f.U9)}else A.W===1?((R=A.TV)==null?0:R.fX?0:J4(R,B))?(Vi(A.loader,B,B,L),K5(A,4,"sk2head")):K5(A,5,"nogab"):J.event==="predictStart"&& (A.policy.W&&A.V>0?(B=Math.floor(B-J.N/1E3),A.V!==B&&A.Hn("sdai",{updateSt:B,old:A.V}),A.V=B):A.U>0&&(B=L+Math.max(Math.ceil(-J.N/P7D(A)),1),A.U!==B&&(A.Hn("sdai",{updateSt:B,old:A.U}),A.U=B)))}else A.Hn("sdai",{nulldec:1,sq:L,mt:B.toFixed(3),evt:(f==null?void 0:(J=f.U9)==null?void 0:J.event)||"none"})}else A.W===1&&K5(A,5,"noad")}; ece=function(A,L,B){if(A.W===1||A.W===2)return!1;if(A.W!==0&&L===A.audioTrack){if(A.policy.W)return xP7(A.videoTrack,B)||xP7(A.videoTrack,B+1);A=Sj(A.videoTrack);if(B>(A?A.XD:-1))return!1}return!0}; RN=function(A,L,B){return(B<0||B===A.D)&&!isNaN(A.T)?A.T:L}; P7D=function(A){switch(A.policy.latencyClass){case "LOW":return 2E3;case "ULTRALOW":return 1E3;default:return 5E3}}; YIS=function(A,L){if(A.N){var B=A.N.U9.Dj-(L.startTime+A.X-A.N.U9.startSecs);B<=0||(B=new Zc(A.N.U9.startSecs-(isNaN(A.X)?0:A.X),B,A.N.U9.context,A.N.U9.identifier,"stop",A.N.U9.N+L.duration*1E3),A.Hn("cuepointdiscontinuity",{segNum:L.XD}),f5(A,B,L.XD))}}; K5=function(A,L,B){A.W!==L&&(A.Hn("sdai",{setsst:L,old:A.W,r:B}),A.W=L)}; ZU=function(A,L,B,f){(f===void 0?0:f)?K5(A,1,"seek"):L>0&&Math.abs(L-B)>=5&&A.W===4&&K5(A,5,"sk2t")}; n6k=function(A,L,B,f){var K=this;this.U=A;this.Hn=L;this.G=B;this.N=f;this.D="";this.W=new Set;this.X=-1;this.V=0;this.T=!1;this.GV={KLn:function(){return K.W}}}; zcQ=function(A,L){for(var B="",f=[],K=g.m(A.N.entries()),V=K.next();!V.done;V=K.next()){var J=g.m(V.value);V=J.next().value;J=J.next().value;var R=void 0,Z=void 0,N=void 0;((R=J)==null?void 0:R.startTimeSecs)<=L&&L<=((Z=J)==null?void 0:Z.startTimeSecs)+((N=J)==null?void 0:N.Dj)&&f.push(V);Z=R=void 0;B+=V+":"+((R=J)==null?void 0:R.startTimeSecs.toFixed(3))+":"+((Z=J)==null?void 0:Z.Dj.toFixed(3))+";"}f.length===0&&A.Hn("clsdai",{no_cid:1,mt:L.toFixed(3),adConfigMap:B.substring(0,1024)});return f}; uVy=function(A){if(!A)return"unknown";switch(A){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; aYL=function(A){switch(A){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}}; NL=function(A,L,B){this.audio=A;this.video=L;this.reason=B}; F0=function(A,L,B){this.N=A;this.reason=L;this.token=B;this.videoId=void 0}; DU=function(A,L,B){g.Y.call(this);this.policy=A;this.U=L;this.Hn=B;this.V=new Map;this.D=0;this.T=!1;this.N="";this.W=!1}; dP=function(A,L,B){if(B===void 0?0:B)A.T=!0;++A.D;B=6E4*Math.pow(2,A.D);B=(0,g.bc)()+B;A.V.set(L.info.id,B)}; IN=function(A){for(var L=g.m(A.V.entries()),B=L.next();!B.done;B=L.next()){var f=g.m(B.value);B=f.next().value;f=f.next().value;f<(0,g.bc)()&&A.V.delete(B)}return A.V}; A7L=function(A){return A.T&&IN(A).size>0}; wP=function(A,L){A.N!==L&&(A.N=L,A.W=!0)}; LHy=function(A,L){var B;L&&(B=g.Pw(A.U.N,function(K){return K.id===L})); if(!B&&(B=g.Pw(A.U.N,function(K){var V;return!((V=K.ri)==null||!V.isDefault)}),L)){var f; A.Hn("iaf",{id:L,sid:(f=B)==null?void 0:f.id})}return B}; p5=function(A){this.N=this.W=0;this.alpha=Math.exp(Math.log(.5)/A)}; jj=function(A,L,B,f,K,V){var J=this;V=V===void 0?[]:V;this.loader=A;this.Vj=L;this.policy=B;this.gT=f;this.T=K;this.Ox=V;this.logger=new g.sI("dash/abr");this.N=fr;this.V=this.X=null;this.yj=-1;this.S4=!1;this.nextVideo=this.W=null;this.U=[];this.Ex=new Set;this.JF={};this.cn=new p5(1);this.G=0;this.Cr=this.qp=this.Wn=!1;this.ZM=0;this.sx=!1;this.wT=new Set;this.Ys=!1;this.GV={R2:function(){yi(J)}}; this.D=new DU(this.policy,K,function(R,Z){J.loader.Hn(R,Z)})}; Vx8=function(A,L,B){gP(A,L);L=LHy(A.D,B);B||L||(L=oiL(A));L=L||A.T.N[0];A.W=A.gT.N[L.id];yi(A);A.X=A.W;Bev(A);fAw(A);A.V=A.nextVideo;A.X=A.W;return KHv(A)}; SRw=function(A,L){if(J7C(A,L))return null;if(L.reason==="m"&&L.isLocked())return gP(A,L),A.G=A.U.length-1,yi(A),GE(A),A.qp=A.qp||A.V!==A.nextVideo,A.V=A.nextVideo,new NL(A.W,A.V,L.reason);L.reason==="r"&&(A.yj=-1);gP(A,L);GE(A);if(L.reason==="r"&&A.nextVideo===A.V)return new NL(A.W,A.nextVideo,L.reason);A.V&&A.nextVideo&&rP(A,A.V.info)1.5&&A.loader.Hn("overshoot",{sq:L.XD,br:B,max:f}))}}; sL=function(A,L,B){dP(A.D,L,B===void 0?!1:B);A.yj=-1;gP(A,A.N)}; Ne7=function(A,L){return new NL(A.X,A.V,L||A.N.reason)}; KHv=function(A){A.S4?A.S4=!1:A.yj=(0,g.bc)();A.Wn=!1;A.Ys=!1;return new NL(A.X,A.V,A.N.reason)}; FHD=function(A,L){var B={};L=g.m(L);for(var f=L.next();!f.done;f=L.next())if((f=f.value)&&f.video){var K=f.video.qualityOrdinal,V=B[K],J=V&&Mb(V)&&V.video.qualityOrdinal>A.policy.Tb,R=K<=A.policy.Tb?Mb(f):iQ(f);if(!V||J||R)B[K]=f}return B}; gP=function(A,L){A.N=L;var B=A.T.videoInfos;if(!A.N.isLocked()){var f=(0,g.bc)();B=g.Mi(B,function(J){if(J.lC>this.policy.lC)return!1;var R=this.gT.N[J.id];return IN(this.D).get(J.id)>f||R.wi.V>4||R.T>4?!1:this.wT.has(+J.itag)?!1:!0},A); A7L(A.D)&&(B=g.Mi(B,function(J){return J.video.width<=854&&J.video.height<=480}))}B.length||(B=A.T.videoInfos); var K=B;A.policy.tI&&(K=DMy(A,K,L));K=g.Mi(K,L.U,L);if(A.N.isLocked()&&A.D.N){var V=g.Pw(B,function(J){return J.id===A.D.N}); V?K=[V]:wP(A.D,"")}A.policy.tI||(K=DMy(A,K,L));K.length||(K=[B[0]]);K.sort(function(J,R){return rP(A,J)-rP(A,R)}); L={};for(B=1;BL.B6.video.width?(g.uB(K,B),B--):rP(A,L.nI)*A.policy.yj>rP(A,L.B6)&&(g.uB(K,B-1),B--);L=K[K.length-1];A.sx=!!A.V&&!!A.V.info&&A.V.info.Bn!==L.Bn;A.U=K;A.Ex.clear();B=!1;for(V=0;V=1080&&(B=!0);dMw(A.policy,L,A.gT.iC)}; DMy=function(A,L,B){var f=B.reason==="m"||B.reason==="s";A.policy.r0&&Hj&&g.yw&&(!f||B.N<1080)&&(L=L.filter(function(N){return N.video&&(!N.W||N.W.powerEfficient)})); if(L.length>0)if(Se()){var K=FHD(A,L);L=L.filter(function(N){return!!N&&!!N.video&&N.Bn===K[N.video.qualityOrdinal].Bn})}else{var V,J,R=(V=L[0])==null?void 0:(J=V.video)==null?void 0:J.qualityOrdinal; if(R){B=L.filter(function(N){return!!N&&!!N.video&&N.video.qualityOrdinal===R}); var Z=FHD(A,B)[R].Bn;L=L.filter(function(N){return!!N&&!!N.video&&N.Bn===Z})}}return L}; IAk=function(A,L){for(var B=0;B+1f}; yi=function(A){if(!A.W||!A.policy.U&&!A.W.info.ri){var L=A.T.N;A.W&&(L=L.filter(function(f){return f.audio.N===A.W.info.audio.N}),L.length||(L=A.T.N)); A.W=A.gT.N[L[0].id];if(L.length>1&&!A.policy.ZM){if(!A.policy.hq){var B=g.Pw(L,function(f){return f.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); B&&(A.W=A.gT.N[B.id])}B=!1;if(B=A.policy.GZ?!0:A.N.isLocked()?A.N.N<240:IAk(A,A.W))A.W=A.gT.N[g.vw(L).id]}}}; GE=function(A){if(!A.nextVideo||!A.policy.U)if(A.N.isLocked())A.nextVideo=A.N.N<=360?A.gT.N[A.U[0].id]:A.gT.N[g.vw(A.U).id];else{for(var L=Math.min(A.G,A.U.length-1),B=Ai(A.Vj),f=rP(A,A.W.info),K=B/A.policy.qp-f;L>0&&!(rP(A,A.U[L])<=K);L--);for(B=B/A.policy.yj-f;L=B);L++);A.nextVideo=A.gT.N[A.U[L].id];A.G=L}}; Bev=function(A){var L=A.policy.qp,B=Ai(A.Vj)/L-rP(A,A.W.info);L=g.xW(A.U,function(f){return rP(this,f)V?K=0:f[J]>A.buffered[J]&&(J===V-1?K=2:J===V-2&&f[J+1]>A.buffered[J+1]&&(K=3))}A.N.add(L<<3|(B&&4)|K);L=Math.ceil(A.track.G_()*1E3);A.N.add(L-A.D);A.D=L;if(K===1)for(A.N.add(V),J=L=0;J=2&&A.N.add(f[V- 1]-A.buffered[V-1]);B&&A.N.add(B);A.buffered=f}; lP=function(A,L,B){var f=this;this.policy=A;this.N=L;this.ZM=B;this.U=this.W=0;this.vk=null;this.Wn=new Set;this.yj=[];this.indexRange=this.initRange=null;this.G=new yV;this.qp=this.Vj=!1;this.GV={Jqn:function(){return f.V}, efF:function(){return f.chunkSize}, zfF:function(){return f.X}, nrr:function(){return f.T}}; (L=GMw(this))?(this.chunkSize=L.csz,this.V=Math.floor(L.clen/L.csz),this.X=L.ck,this.T=L.civ):(this.chunkSize=A.n2,this.V=0,this.X=g.y0(16),this.T=g.y0(16));this.D=new Uint8Array(this.chunkSize);this.X&&this.T&&(this.crypto=new Mz1(this.X,this.T))}; GMw=function(A){if(A.policy.mC&&A.policy.zs)for(var L=g.m(A.policy.mC),B=L.next(),f={};!B.done;f={RJ:void 0,uS:void 0},B=L.next())if(B=g.RM(B.value),f.RJ=+B.clen,f.uS=+B.csz,f.RJ>0&&f.uS>0&&A.policy.U===B.docid&&A.N.info.id===B.fmtid&&A.N.info.lastModified===+B.lmt)return A={},A.clen=f.RJ,A.csz=f.uS,A.ck=B.ck,A.civ=B.civ,A}; mx=function(A){return!!A.vk&&A.vk.Ad()}; HMw=function(A,L){if(!mx(A)&&!A.TL()){if(!(A.Vj||(A.Vj=!0,A.V>0))){var B=Qi(A);B=eK(A.policy.U,A.N.info,C5(A),B,A.policy.Ox);iP(A,B)}if(L.info.type===1){if(A.vk){$U(A,Error("Woffle: Expect INIT slices to always start us off"));return}A.initRange=L3(0,L.W.totalLength)}else if(L.info.type===2)A.vk&&A.vk.type===1||$U(A,Error("Woffle: Index before init")),A.indexRange=L3(A.initRange.end+1,L.W.totalLength);else if(L.info.type===3){if(!A.vk){$U(A,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(A.vk.type===3&&!Vs(A.vk,L.info)&&(A.yj=[],L.info.XD!==JL(A.vk)||L.info.N!==0))return;if(L.info.V){B=g.m(A.yj);for(var f=B.next();!f.done;f=B.next())r7k(A,f.value);A.yj=[]}else{A.yj.push(L);A.vk=L.info;return}}else{$U(A,Error("Woffle: Unexpected slice type"));return}A.vk=L.info;r7k(A,L);sjv(A)}}; r7k=function(A,L){var B=0,f=pz(L.W);if(A.U=f.length)return;if(B<0)throw Error("Missing data");A.U=A.V;A.W=0}for(K={};B0){var J=f.getUint32(B+28);V+=J*16+4}var R=f.getUint32(B+V-4);try{var Z=Te8(L.subarray(B+V,B+V+R));if(Z!==null){var N=Z;break a}}catch(F){}}B+=K}N=null;break a}catch(F){N=null;break a}N=void 0}if(N!=null)for(L=$3(j7(N,7,void 0,As)),L==null||A.qU||(A.cryptoPeriodIndex=L),L=$3(j7(N,10,void 0,As)),L!=null&&L>0&& !A.qU&&(A.N=L),N=lq(N,2,zh1,void 0===A8E?2:4),N=g.m(N),f=N.next();!f.done;f=N.next())L=A.V,B=L.push,f=uI(f.value),f=g.Y$(f,4),B.call(L,f)}; mM1=function(A){return isNaN(A.cryptoPeriodIndex)?g.Y$(A.initData):""+A.cryptoPeriodIndex}; EL=function(A,L,B){var f=B===void 0?{}:B;B=f.videoDuration===void 0?0:f.videoDuration;var K=f.Hl===void 0?void 0:f.Hl;f=f.Hp===void 0?!1:f.Hp;this.videoId=A;this.status=L;this.videoDuration=B;this.Hl=K;this.Hp=f}; Qj6=function(A,L,B,f,K){this.videoId=A;this.UF=L;this.W=B;this.bytesDownloaded=f;this.N=K}; cj=function(A){this.N=A;this.offset=0}; ML=function(A){if(A.offset>=A.N.totalLength)throw Error();return jU(A.N,A.offset++)}; C9L=function(A,L){L=L===void 0?!1:L;var B=ML(A);if(B===1){L=-1;for(B=0;B<7;B++){var f=ML(A);L===-1&&f!==255&&(L=0);L>-1&&(L=L*256+f)}return L}f=128;for(var K=0;K<6&&f>B;K++)B=B*256+ML(A),f*=128;return L?B:B-f}; iML=function(A){try{var L=C9L(A,!0),B=C9L(A,!1);return{id:L,size:B}}catch(f){return{id:-1,size:-1}}}; $M8=function(A){for(var L=new cj(A),B=-1,f=0,K=0;!f||!K;){var V=iML(L),J=V.id;V=V.size;if(J<0)return;if(J===176){if(V!==2)return;f=L.vB()}else if(J===186){if(V!==2)return;K=L.vB()}J===374648427?B=L.vB()+V:J!==408125543&&J!==174&&J!==224&&L.skip(V)}L=yD(A,0,B);B=new DataView(L.buffer);B.setUint16(f,3840);B.setUint16(K,2160);f=new FK([L]);DF(f,A);return f}; XLv=function(A,L,B){var f=this;this.loader=A;this.policy=L;this.b1=B;this.logger=new g.sI("dash");this.W=[];this.N=null;this.qp=-1;this.G=0;this.ZM=NaN;this.yj=0;this.V=NaN;this.X=this.JF=0;this.Cr=-1;this.wT=this.U=this.D=this.Vj=null;this.sx=this.Ex=NaN;this.T=this.Wn=this.Ys=this.cn=null;this.Ox=!1;this.S4=this.timestampOffset=0;this.GV={w5:function(){return f.W}}; if(this.policy.U){var K=this.b1,V=this.policy.U;this.policy.Ox&&A.Hn("atv",{ap:this.policy.Ox});this.T=new lP(this.policy,K,function(J,R,Z){A.Np.FG(new EL(f.policy.U,2,{Hl:new Qj6(V,J,K.info,R,Z)}))}); this.T.G.promise.then(function(J){f.T=null;J===1?A.Np.FG(new EL(f.policy.U,J)):f.loader.Hn("offlineerr",{status:J.toString()})},function(J){var R=(J.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); J instanceof X0&&!J.N?(f.loader.Hn("offlinenwerr",{em:R}),YU(f),A.Np.FG(new EL(f.policy.U,4))):(f.loader.Hn("dldbwerr",{em:R}),YU(f),A.Np.FG(new EL(f.policy.U,4,{Hp:!0})))})}}; OMe=function(A){return A.W.length?A.W[0]:null}; Ei6=function(A,L){return A.W.some(function(B){return B.info.XD===L})}; WHv=function(A,L,B,f){f=f===void 0?0:f;if(A.U){var K=A.U.N+A.U.W;if(B.info.N>0)if(B.info.XD===A.U.XD&&B.info.N=0&&A.U.XD>=0&&!Vs(A.U,B.info))throw new g.iL("improper_continuation",A.U.Dx(),B.info.Dx());lTe(A.U,B.info)||UL(A,"d")}else if(B.info.N>0)throw new g.iL("continuation_of_null",B.info.Dx());A.U=B.info;A.b1=B.info.b1;if(B.info.N===0){if(A.N)if(!A.loader.isOffline()||A.policy.e8)A.loader.Hn("slice_not_fully_processed", {buffered:A.N.info.Dx(),push:B.info.Dx()});else throw new g.iL("slice_not_fully_processed",A.N.info.Dx(),B.info.Dx());Wj(A);A.JF=f}else{if(A.JF&&f&&A.JF!==f)throw A=new g.iL("lmt_mismatch",B.info.XD,A.JF,f),A.level="WARNING",A;!B.info.b1.BB()&&A.D&&(f=B.info,K=A.D.tO,f.T="updateWithEmsg",f.XD=K)}if(A.N){f=g.tL(A.N,B);if(!f)throw new g.iL("failed_to_merge",A.N.info.Dx(),B.info.Dx());A.N=f}else A.N=B;a:{B=g.U2(A.N.info.b1.info);if(A.N.info.type!==3){if(!A.N.info.V)break a;A.N.info.type===6?c7y(A,L, A.N):Mxv(A,A.N);A.N=null}for(;A.N;){f=A.N.W.totalLength;if(A.qp<=0&&A.G===0){var V=A.N.W,J=-1;K=-1;if(B){for(var R=0;R+80))break;if(D!==408125543)if(D===524531317)R=!0,F>=0&&(K=V.vB()+F,Z=!0);else{if(R&&(D===160||D===163)&&(J<0&&(J=N),Z))break;D===163&&(J=Math.max(0,J),K=V.vB()+F);if(D===160){J<0&&(K=J= V.vB()+F);break}V.skip(F)}}J<0&&(K=-1)}if(J<0)break;A.qp=J;A.G=K-J}if(A.qp>f)break;A.qp?(f=YRD(A,A.qp),f.D&&UMD(A,f),c7y(A,L,f),vj(A,f),A.qp=0):A.G&&(f=YRD(A,A.G<0?Infinity:A.G),A.G-=f.W.totalLength,vj(A,f))}}A.N&&A.N.info.V&&(vj(A,A.N),A.N=null)}; Mxv=function(A,L){!L.info.b1.BB()&&L.info.N===0&&(g.U2(L.info.b1.info)||L.info.b1.info.qU())&&Dbe(L);if(L.info.type===1)try{UMD(A,L),viy(A,L)}catch(K){g.mL(K);var B=Sl(L.info);B.hms="1";A.loader.handleError("fmt.unparseable",B||{},1)}B=L.info.b1;B.tE(L);A.T&&HMw(A.T,L);if(B.w1()&&A.policy.N)a:{A=A.loader.gT;L=L.info.clipId;B=g.vV(B.info,A.iC);if(L){var f=nq({itag:B.itag,lmt:A.iC?0:B.lmt||0,xtags:B.xtags});if(A.sx[f])break a;A.sx[f]=L}A.Cr.push(B)}}; Hqk=function(A,L,B){if(A.W.length!==0&&(B||A.W.some(function(V){return V.info.U=Pj(J)+R):L=A.getDuration()>=J.getDuration(),L=!L;L&&P9E(B)&&(L=A.Vj,qL?(R=NND(B),J=1/R,R=Pj(A,R),L=Pj(L)+J-R):L=L.getDuration()- A.getDuration(),L=1+L/B.info.duration,JE8(g.b7(B),L))}else{J=!1;A.D||(Dbe(B),B.N&&(A.D=B.N,J=!0,K=B.info,V=B.N.tO,K.T="updateWithEmsg",K.XD=V,K=B.N,K.Ad&&(V=A.b1.index,V.W=!K.Ad,V.V="emsg"),K=B.info.b1.info,V=g.b7(B),g.U2(K)?rD(V,1701671783):K.qU()&&ln([408125543],307544935,V)));a:if((K=l7(B,A.policy.t$))&&FP6(B))R=xME(A,B),A.X+=R,K-=R,A.yj+=K,A.V=A.policy.jb?A.V+K:NaN;else{if(A.policy.wF){if(V=Z=A.loader.OU(g.k6(B),1),A.V>=0&&B.info.type!==6){if(A.policy.jb&&isNaN(A.Ex)){g.CE(new g.iL("Missing duration while processing previous chunk", B.info.Dx()));A.loader.isOffline()&&!A.policy.e8||eGL(A,B,V);UL(A,"m");break a}f=Z-A.V;var N=f-A.X,F=B.info.XD,D=A.wT?A.wT.XD:-1,I=A.sx,d=A.Ex,w=A.policy.U$&&f>A.policy.U$,r=Math.abs(N)>10,h=Math.abs(A.V-V)<1E-7;if(Math.abs(N)>1E-4){A.S4+=1;var Q=(R=A.D)==null?void 0:omQ(R);R={audio:""+ +A.NF(),sq:F.toFixed(),sliceStart:Z,lastSq:D.toFixed(),lastSliceStart:I,lastSliceDuration:d,totalDrift:(f*1E3).toFixed(),segDrift:(N*1E3).toFixed(),skipRewrite:""+ +(w||r)};if(Q==null?0:Q.length)R.adCpn=Q[0];A.loader.handleError("qoe.avsync", R);A.Cr=F}w||r||h||(V=A.V);R=xME(A,B,Z);K-=R;A.X=f+R}}else V=isNaN(A.V)?B.info.startTime:A.V;eGL(A,B,V)&&(A.yj+=K,A.V=V+K,A.policy.F0&&A.S4>=A.policy.F0&&(A.S4=0,A.loader.J8({resetForRewrites:"count"})))}A.wT=B.info;A.Ex=TW(B);B.V>=0&&(A.sx=B.V);if(J&&A.D){J=niw(A,!0);Rp(B.info,J);A.N&&Rp(A.N.info,J);L=g.m(L);for(R=L.next();!R.done;R=L.next())R=R.value,K=void 0,A.policy.D&&R.XD!==((K=A.D)==null?void 0:K.tO)||Rp(R,J);(B.info.V||A.N&&A.N.info.V)&&B.info.type!==6||(A.Wn=J,A.policy.W?(L=zG6(A.D),A.loader.ww(A.b1, J,L)):(L=A.loader,L.gT.isManifestless&&u5w(L,J,null,!!A.b1.info.video)),A.policy.Pk||aAD(A))}}viy(A,B);A.timestampOffset&&Rov(B,A.timestampOffset)}; vj=function(A,L){if(L.info.V){A.cn=L.info;if(A.D){var B=A.D,f=niw(A,!1);B=zG6(B);A.loader.ww(A.b1,f,B);A.Wn||A.policy.Pk||aAD(A);A.Wn=null}Wj(A)}A.T&&HMw(A.T,L);if(f=A.vL())if(f=g.tL(f,L,A.policy.yd,A.policy.a8)){A.W.pop();A.W.push(f);return}A.W.push(L)}; zG6=function(A){if(A.UK()){var L=A.data["Stitched-Video-Id"]?A.data["Stitched-Video-Id"].split(",").slice(0,-1):[],B=omQ(A),f=[];if(A.data["Stitched-Video-Duration-Us"])for(var K=g.m(A.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),V=K.next();!V.done;V=K.next())f.push((Number(V.value)||0)/1E6);K=[];if(A.data["Stitched-Video-Start-Frame-Index"]){V=g.m(A.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var J=V.next();!J.done;J=V.next())K.push(Number(J.value)||0)}K=[]; if(A.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(V=g.m(A.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),J=V.next();!J.done;J=V.next())K.push((Number(J.value)||0)/1E6);A=new kMQ(L,B,f,K,g.BjE(A),g.fTw(A))}else A=null;return A}; Wj=function(A){A.N=null;A.qp=-1;A.G=0;A.D=null;A.ZM=NaN;A.yj=0;A.Wn=null}; UL=function(A,L){L={rst4disc:L,cd:A.X.toFixed(3),sq:A.wT?A.wT.XD:-1};A.V=NaN;A.X=0;A.Cr=-1;A.wT=null;A.sx=NaN;A.Ex=NaN;A.Ys=null;A.loader.Hn("mdstm",L)}; viy=function(A,L){if(A.isDrm()){if(L.info.b1.info.qU()){var B=new Hq(g.b7(L));if(bn(B,[408125543,374648427,174,28032,25152,20533,18402])){var f=T5(B,!0);B=f!==16?null:$K(B,f)}else B=null;f="webm"}else L.info.G=bMy(g.b7(L)),B=txe(L.info.G),f="cenc";B&&B.length&&(B=new OL(B,f),A.policy.J0&&g.U2(L.info.b1.info)&&(f=DSC(g.b7(L)))&&(B.W=f),B.qU=L.info.b1.info.qU(),L.N&&L.N.cryptoPeriodIndex&&(B.cryptoPeriodIndex=L.N.cryptoPeriodIndex),L.N&&L.N.W&&(B.N=L.N.W),A.loader.kD(B))}}; aAD=function(A){var L=A.D,B=AEC(L);B&&(B.startSecs+=A.ZM,A.loader.RB(A.b1,B,L.tO,L.UK()))}; niw=function(A,L){var B,f=A.D;if(B=AEC(f))B.startSecs+=A.ZM;var K=A.ZM,V=0;A.b1 instanceof dR&&(V=A.b1.oC);return new AI(f.tO,K,L?V:A.yj,f.ingestionTime,"sq/"+f.tO,void 0,void 0,L,B)}; eGL=function(A,L,B){if(!S28(L,B))return L=Sl(L.info),L.smst="1",A.loader.handleError("fmt.unparseable",L||{},1),!1;isNaN(A.ZM)&&(A.ZM=B);return!0}; xME=function(A,L,B){var f=0;if(L.info.b1.info.qU()&&!FP6(L))return 0;if(A.Vj&&!A.NF()){var K=0;B&&g.U2(L.info.b1.info)?K=B-A.V:L.info.b1.info.qU()&&(K=A.X);var V=L.info.XD;B=l7(L,A.policy.t$);var J=A.Vj;var R=J.Cr;J=J.X;var Z=Math.abs(J-K)>.02;if((V===R||V>R&&V>A.Cr)&&Z){f=Math.max(.95,Math.min(1.05,(B-(J-K))/B));if(g.U2(L.info.b1.info))JE8(g.b7(L),f);else if(L.info.b1.info.qU()&&(V=K-J,!g.U2(L.info.b1.info)&&(L.info.b1.info.qU(),f=new Hq(g.b7(L)),R=L.D?f:new Hq(new DataView(L.info.b1.N.buffer)), l7(L,!0)))){var N=V*1E3,F=O9(R);R=f.pos;f.pos=0;if(f.N.getUint8(f.pos)===160||E9(f))if(kK(f,160))if(T5(f,!0),kK(f,155)){if(V=f.pos,Z=T5(f,!0),f.pos=V,N=N*1E9/F,F=md(f),N=F+Math.max(-F*.7,Math.min(F,N)),N=Math.sign(N)*Math.floor(Math.abs(N)),!(Math.ceil(Math.log(N)/Math.log(2)/8)>Z)){f.pos=V+1;for(V=Z-1;V>=0;V--)f.N.setUint8(f.pos+V,N&255),N>>>=8;f.pos=R}}else f.pos=R;else f.pos=R;else f.pos=R}f=l7(L,A.policy.t$);f=B-f}f&&L.info.b1.info.qU()&&A.loader.Hn("webmDurationAdjustment",{durationAdjustment:f, videoDrift:K+f,audioDrift:J})}return f}; P9E=function(A){return A.info.b1.BB()&&A.info.XD===A.info.b1.index.uq()}; Pj=function(A,L){L=(L=L===void 0?0:L)?Math.round(A.timestampOffset*L)/L:A.timestampOffset;A.b1.U&&L&&(L+=A.b1.U.N);return L+A.getDuration()}; A$C=function(A,L){L<0||(A.W.forEach(function(B){Rov(B,L)}),A.timestampOffset=L)}; fT=function(A,L,B,f,K){b$.call(this,B,K);var V=this;this.policy=A;this.formatId=L;this.K8=f;this.lastError=null;this.onProgress=function(){V.TL()||(V.K8.EE.has(V.formatId)?(V.isComplete()||V.N.start(),a5(V.K8,V.formatId)&&V.z2(2),V.K8.vV(V.formatId)&&(kWS(V.K8,V.formatId)?V.Y6(4):(V.lastError="net.closed",V.Y6(5)))):(V.lastError="player.exception",V.Y6(5)))}; this.N=new g.aa(function(){V.isComplete()||(V.lastError="net.timeout",V.Y6(5))},1E3); this.N.start();hc8(this.K8,this.formatId,this.onProgress);g.lX(this.onProgress)}; xU=function(A,L,B,f){g.Y.call(this);var K=this;this.loader=A;this.policy=L;this.b1=B;this.timing=f;this.logger=new g.sI("dash");this.W=[];this.Vj=[];this.N=this.uC=null;this.Ys=!1;this.JF=this.S4=0;this.D=-1;this.qp=!1;this.ZM=-1;this.wT=null;this.Wn=NaN;this.yj=[];this.GV={sF:function(){return K.V}, MMT:function(){return K.W}, CAL:function(){return K.X}}; this.V=new XLv(A,L,B);this.policy.N&&(this.X=new o5(this.V,this.loader.getManifest(),this.policy,function(V){K.policy.bA&&K.Hn("buftl",V)})); this.policy.KY&&(this.G=new kU(this));this.lC=B.info.lC;this.T=this.policy.Vj?!1:B.HE();this.isManifestless=B.HE();this.U=this.T;g.W(this,this.wT)}; ej=function(A,L,B){B=B===void 0?!1:B;L&&qL&&A$C(A.V,L.Nk());if(!B){var f;(f=A.X)==null||gKw(f)}A.uC=L;(L=A.X)!=null&&(L.uC=A.uC)}; n5=function(A){var L=A.uC&&A.uC.A5();if(A.policy.nO){if((A=A.X)==null)A=void 0;else{var B;A=(B=A.V)==null?void 0:B.info}return A||null}return L}; L$7=function(A){for(var L={},B=0;B4&&A.Vj.shift()}; ocE=function(A,L){if(L.HA()){var B=L.Ud();B=g.m(B);for(var f=B.next();!f.done;f=B.next())f=f.value,A.policy.V&&L instanceof fT&&A.Hn("omblss",{s:f.info.Dx()}),uP(A,L.info.Lr,f,L.Pr())}}; uP=function(A,L,B,f){f=f===void 0?0:f;isNaN(A.Wn)||(A.Hn("aswm",{sq:L[0].XD,id:L[0].b1.info.itag,xtag:L[0].b1.info.N,ep:Date.now()-A.Wn}),A.Wn=NaN);switch(B.info.type){case 1:case 2:Bdw(A,B);break;case 4:var K=B.info.b1,V=K.A6(B),J;((J=A.N)==null?0:J.type===4)&&OUk(B.info,A.N)&&(A.N=K.kW(A.N).pop());B=g.m(V);for(K=B.next();!K.done;K=B.next())uP(A,L,K.value,f);break;case 3:B.info.b1.info.video?(K=A.timing,K.wT||(K.wT=(0,g.bc)(),g.i1("fvb_r",K.wT,K.N))):(K=A.timing,K.T||(K.T=(0,g.bc)(),g.i1("fab_r", K.T,K.N)));WHv(A.V,L,B,f);A.policy.N&&f_L(A);break;case 6:WHv(A.V,L,B,f),A.N=B.info}}; Bdw=function(A,L){if(L.info.type===1)if(L.info.b1.info.video){var B=A.timing;B.S4||(B.S4=(0,g.bc)(),g.i1("vis_r",B.S4,B.N))}else B=A.timing,B.G||(B.G=(0,g.bc)(),g.i1("ais_r",B.G,B.N));Mxv(A.V,L);A=A.loader;A.videoTrack.b1.w1()&&A.audioTrack.b1.w1()&&A.policy.N&&!A.gT.iC&&(L=A.audioTrack.getDuration(),B=A.videoTrack.getDuration(),Math.abs(L-B)>1&&A.Hn("trBug",{af:""+g.vV(A.audioTrack.b1.info,!1),vf:""+g.vV(A.videoTrack.b1.info,!1),a:""+L,v:""+B}))}; Db=function(A){return OMe(A.V)}; f_L=function(A){A.W.length?A.N=g.vw(g.vw(A.W).info.Lr):A.V.W.length?A.N=A.V.vL().info:A.N=n5(A)}; aN=function(A,L){var B={VK:[],lM:[]},f;if((A=A.X)==null)A=void 0;else{js6(A,A.VK,"og");wqL(A,L);js6(A,A.VK,"trim");var K=yIy(A);L=K.VK;K=K.yr;for(var V=[],J=0;J0){var I=uQ(D,Z);I>=0&&(F=(D.end(I)-Z+.1)*1E3)}V.push({formatId:g.vV(R.info.b1.info,A.gT.iC), Gb:R.info.Gb,sequenceNumber:R.info.XD+A.U,DE:N,eN:R.info.W,rU:F})}A={VK:L,lM:V}}return(f=A)!=null?f:B}; Ji=function(A,L,B){B=B===void 0?!1:B;if(A.uC){var f=A.uC.Hk(),K=AA(f,L),V=NaN,J=n5(A);J&&(V=AA(f,J.b1.index.getStartTime(J.XD)));if(K===V&&A.N&&A.N.W&&K$e(A6(A),0))return L}A=L6(A,L,B);return A>=0?A:NaN}; R5=function(A,L,B){A.b1.w1();var f=L6(A,L);if(f>=0)return f;var K;(K=A.X)==null||pqw(K,L,B);f=Math;K=f.min;var V=A.V;if(V.T)if(V=V.T,V.vk&&V.vk.type===3)V=V.vk.startTime;else if(V.V>0){var J=V.N.index;J=g.Fc(J.offsets.subarray(0,J.count),V.V*V.chunkSize);V=V.N.index.getStartTime(J>=0?J:Math.max(0,-J-2))}else V=0;else V=Infinity;L=K.call(f,L,V);A.N=A.policy.Vj?null:A.b1.tq(L).Lr[0];oP(A)&&(A.policy.Tm&&(B==null?void 0:B.seekSource)===60||A.uC&&A.uC.abort(),A.policy.oz&&(B=A.X)!=null&&(B.V=void 0)); A.JF=0;return A.N?A.N.startTime:L}; rIS=function(A){A.T=!0;A.U=!0;A.D=-1;R5(A,Infinity)}; Bl=function(A){for(var L=0,B=g.m(A.W),f=B.next();!f.done;f=B.next())L+=cEy(f.value.info);return L+=qRy(A.V)}; K6=function(A,L){L=L===void 0?!1:L;var B=A.loader.getCurrentTime(),f=A.V.vL(),K=(f==null?void 0:f.info.D)||0;if((f==null?0:f.info.b1.HE())&&!f.info.V)if(A.policy.M7)K=f.info.U;else if(A.policy.IV){var V=f.info;K=V.range?V.D:Math.min(V.startTime+Math.min(V.duration*V.N/V.b1.info.lC,V.duration)+(V.range?V.X:Math.min(V.duration,V.duration*V.W/V.b1.info.lC)),V.startTime+V.duration)}if(!A.uC){if((A.policy.N||A.policy.cI)&&L&&!isNaN(B)){if(f)return K-B;if(A.policy.cI&&A.b1.info.Bn==="f")return Infinity}return 0}if((V= n5(A))&&f6(V))return V.D;var J=A.uC.Hk(!0);if(L&&f)return V=0,A.policy.N&&(V=Bi(J,K+.02)),V+K-B;L=Bi(J,B);A.policy.J9&&V&&(f=uQ(J,B),J=uQ(J,V.U-.02),f===J&&(B=V.D-B,A.policy.V&&B>L+.02&&A.Hn("abh",{bh:L,bhtls:B}),L=Math.max(L,B)));return L}; VKy=function(A){var L=n5(A);return L?L.D-A.loader.getCurrentTime():0}; V1=function(A,L,B,f){if(!A.b1.index.NE(L,!0))return!1;try{Va(A);for(var K=A.V,V=null,J=K.W.length-1;J>=0;J--){var R=K.W[J];R.info.XD>=L&&(K.W.pop(),K.V-=l7(R,K.policy.t$),V=R.info)}V&&(K.U=K.W.length>0?K.W[K.W.length-1].info:K.Ys,K.W.length!==0||K.U||UL(K,"r"));K.loader.Hn("mdstm",{rollbk:1,itag:V?V.b1.info.itag:"",popped:V?V.XD:-1,sq:L,lastslc:K.U?K.U.XD:-1,lastfraget:K.V.toFixed(3)});if(A.policy.N)return A.N=null,!0;f>B?R5(A,f):A.N=A.b1.D_(L-1,!1).Lr[0]}catch(Z){return L=JT(Z),L.details.reason= "rollbkerr",A.loader.handleError(L.errorCode,L.details,L.severity),!1}return!0}; S2=function(A,L){var B;for(B=0;B0?B||L.XD>=A.ZM:B}; RP=function(A){var L;return oP(A)||f6((L=A.V.vL())==null?void 0:L.info)}; A6=function(A){var L=[],B=n5(A);B&&L.push(B);L=g.Bk(L,A.V.PA());B=g.m(A.W);for(var f=B.next();!f.done;f=B.next()){f=f.value;for(var K=g.m(f.info.Lr),V=K.next(),J={};!V.done;J={rY:void 0},V=K.next())J.rY=V.value,f.T6&&(L=g.Mi(L,function(R){return function(Z){return!OUk(Z,R.rY)}}(J))),(K3(J.rY)||J.rY.type===4)&&L.push(J.rY)}A.N&&!kYe(A.N,g.vw(L),A.N.b1.BB())&&L.push(A.N); return L}; K$e=function(A,L){if(!A.length)return!1;for(L+=1;L=L){L=V;break a}}L=K}return L<0?NaN:K$e(A,B?L:0)?A[L].startTime:NaN}; Zz=function(A){return!(!A.N||A.N.b1===A.b1)}; J$E=function(A,L,B){return A.policy.N?K6(A,!0)L&&A.D1080&&!A.AS&&(A.Ex=36700160,A.Nl=5242880,A.Cr=Math.max(4194304,A.Cr),A.AS=!0);L.video.qualityOrdinal>2160&&!A.hS&&(A.Ex=104857600,A.lC=13107200,A.hS=!0);g.Am(A.tF.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?L.isEncrypted()&&g.ng()&&g.xz("samsung")&&(g.xz("kant")||g.xz("muse"))&&(A.lC=g.Am(A.tF.experiments,"html5_samsung_kant_limit_max_bitrate")):L.isEncrypted()&&g.ng()&&g.xz("kant")&&(A.lC=1310720);A.Kt!==0&&L.isEncrypted()&& (A.lC=A.Kt);A.SM!==0&&L.isEncrypted()&&B&&(A.lC=A.SM);L.lC&&(A.p$=Math.max(A.TK,Math.min(A.Cr,5*L.lC)))}; Y2=function(A){return A.N&&A.BI}; wv=function(A){return A.N&&A.dB&&A.playbackStartPolicy}; p6=function(A,L,B,f){A.dB&&(A.playbackStartPolicy=L,A.ET=B,A.rd=f)}; Dz=function(A,L,B){B=B===void 0?0:B;return g.Am(A.tF.experiments,L)||B}; jo1=function(A){var L=A===void 0?{}:A;A=L.In;var B=L.D5;var f=L.So;var K=L.uq;L=L.kN;this.In=A;this.D5=B;this.So=f;this.uq=K;this.kN=L}; Xq7=function(A,L){if(L<0)return!0;var B=A.uq();return L0)return 2;if(L<0)return 1;B=A.uq();return L(0,g.bc)()?0:1}; gv=function(A,L,B,f,K,V,J,R,Z,N,F,D,I,d){d=d===void 0?null:d;g.Y.call(this);var w=this;this.loader=A;this.policy=L;this.videoTrack=B;this.audioTrack=f;this.V=K;this.N=V;this.timing=J;this.U=R;this.schedule=Z;this.gT=N;this.W=F;this.yj=D;this.Op=I;this.Sg=d;this.Wn=!1;this.tG="";this.HB=null;this.FH=NaN;this.qp=!1;this.TV=null;this.XH=this.G=NaN;this.hj=this.D=0;this.logger=new g.sI("dash");this.GV={cM:function(r,h){return w.cM(r,h)}}; this.policy.gp>0&&(this.tG=g.y0(this.policy.gp));this.policy.iW&&(this.X=new y1(this.loader,this.policy,this.schedule),g.W(this,this.X))}; Hov=function(A,L,B){var f=L.N?L.N.b1.wi:L.b1.wi;var K=A.V,V;(V=!A.policy.QL)||(V=wy(17,f.N)===wy(21,f.W));V?f=!1:(K=Wq(K,wy(22,f.W)),V=6E4*Math.pow(K.U,1.6),(0,g.bc)()=K.U?(K.Hn("sdai",{haltrq:V+1,est:K.U}),f=!1):f=K.W!==2;if(!f||!ez(L.N?L.N.b1.wi:L.b1.wi,A.policy,A.V,A.loader.ue)||A.loader.isSuspended&&(!sh(A.schedule)||A.loader.K6))return!1;if(A.policy.U&&xc>=5)return g.Az(A.loader.Rm),!1;if(A.gT.isManifestless){if(L.W.length>0&&L.N&&L.N.XD===-1||L.W.length>=A.policy.mU||!A.policy.XW&&L.W.length>0&&!A.policy.G.D5)return!1;if(L.T)return!A.gT.isLive||!isNaN(A.FH)}if(Zok(L))return!1; if(!L.N){if(!L.b1.w1())return!1;R5(L,A.loader.getCurrentTime())}if(Db(L)&&(L.vL()!==Db(L)||A.loader.isSuspended))return!1;K=(f=A.policy.Wf)&&!L.W.length&&K6(L,!0)=A.policy.wp)return!1;f=L.N;if(!f)return!0;f.type===4&&f.b1.w1()&&(L.N=g.vw(f.b1.kW(f)),f=L.N);if(!f.Ad()&&!f.b1.Z_(f))return!1;V=A.gT.SD||A.gT.U;if(A.gT.isManifestless&&V){V=L.b1.index.uq(); var J=B.b1.index.uq();V=Math.min(V,J);if(L.b1.index.Ns()>0&&V>0&&f.XD>=V)return L.ZM=V,B.ZM=V,!1}if(f.b1.info.audio&&f.type===4||f.Ad())return!1;V=!L.U&&!B.U;if(K=!K)K=f.D,K=!!(B.N&&!f6(B.N)&&B.N.DhOw(A,L)?(hOw(A,L),!1):(A=L.uC)&&A.isLocked()?!1:!0}; hOw=function(A,L){var B=A.N;B=B.N?B.N.U9:null;if(A.policy.JF&&B)return B.startSecs+B.Dj+15;L=Sb(A.loader,L);A.policy.Uv>0&&(B=((0,g.bc)()-A.loader.DU)/1E3,L=Math.min(L,A.policy.Uv+A.policy.Gt*B));L=A.loader.getCurrentTime()+L;return A.policy.Cx&&(B=bok(A.loader)+A.policy.Cx,B=0||L.wi.CU("defrag")==="1"||L.wi.CU("otf")==="1"){L=null;break a}K=L3(0,4096)}K=new ZY([new Bp(5,f.b1,K,"createProbeRequestInfo"+f.T,f.XD)],L.W);K.P9=B;K.N=L.N;L=K}L&&rv(A,L)}}; rv=function(A,L){A.loader.YF(L);var B=cEy(L),f=A.loader.sb();B={Ml:A.schedule,bb:B,Kg:NDv(A.U,B),xm:f3(L.Lr[0]),lf:k7(55,L.wi.N),L6:A.policy.V,YD:function(J,R){A.loader.MX(J,R)}}; if(A.schedule.W.T){var K,V;B.qz=(((K=A.videoTrack.b1)==null?void 0:K.info.lC)||0)+(((V=A.audioTrack.b1)==null?void 0:V.info.lC)||0)}A.HB&&(B.XD=L.Lr[0].XD,B.FH=L.FH,B.HB=A.HB);f={zo:M98(L,A.loader.getCurrentTime()),dJ:A.policy.Po&&FV(L)&&L.Lr[0].b1.info.video?pLe(A.W):void 0,b4:A.policy.JF,poToken:A.loader.BA(),DA:A.loader.rW(),tG:A.tG,XH:isNaN(A.XH)?null:A.XH,Sg:A.Sg,Op:A.Op,hj:A.hj,K_:f};return new KT(A.policy,L,B,A.V,function(J,R){try{a:{var Z=J.info.Lr[0].b1,N=Z.info.video?A.videoTrack:A.audioTrack; if(!(J.state>=2)||J.isComplete()||J.K5()||!(!A.loader.AF||A.loader.isSuspended||K6(N)>3)){var F=Gd6(J,A.policy,A.V);F===1&&(A.qp=!0);tKQ(A,J,F);if(J.isComplete()||J.TL()&&R<3){if(A.policy.V){var D=J.timing.Rg();D.rst=J.state;D.strm=J.xhr.v4();D.cncl=J.xhr&&J.RA.D?1:0;A.loader.Hn("rqs",D)}J.JJ&&A.loader.Hn("sbwe3",{},!0)}if(!A.TL()&&J.state>=2){Mlk(A.timing,J,Z);var I=A.loader;A.XH&&J.tL&&I&&(A.XH=NaN,A.loader.kz(J.tL),A.loader.Uw(),A.loader.Hn("cabrUtcSeek",{mediaTimeSeconds:J.tL}));J.b_&&A.XH&&J.b_&& !J.b_.action&&(A.loader.o5(A.XH),A.XH=NaN,A.loader.Hn("cabrUtcSeekFallback",{targetUtcTimeSeconds:A.XH}));J.qn&&A.loader.mG(J.qn);A.policy.nD&&(A.hj=J.hj);if(J.state===3){S2(N,J);FV(J.info)&&h6(A,N,Z,!0);if(A.TV){var d=J.info.j2();d&&A.TV.GM(J.info.Lr[0].XD,Z.info.id,d)}A.loader.yG()}else if(J.isComplete()&&J.info.Lr[0].type===5){if(J.state!==4)J.LQ()&&A.loader.handleError(J.p8(),J.tj());else{var w=(J.info.Lr[0].b1.info.video?A.videoTrack:A.audioTrack).W[0]||null;w&&w instanceof KT&&w.K5()&&w.oG()}J.dispose()}else{if(!J.LQ()&& J.QZ&&J.state>=2&&J.state!==3){var r=J.xhr.getResponseHeader("X-Response-Itag");if(r){var h=wLE(A.W,r),Q=J.info.V;if(Q){var l=Q-h.xi();h.V=!0;J.info.Lr[0].b1.V=!1;var C=h.bv(l);J.info=C;if(J.I0){var O=J.I0,v=C.Lr;(v.length!==O.Lr.length||v.length=A.policy.u4&&A.TV&&J.info.isDecorated()&&ry==="net.badstatus"&&Tm(A.TV,MC,Jf))){var nw=(fw.info.video&&fw.wi.V>1||J.zy===410||J.zy===500||J.zy===503)&&!(IN(A.W.D).size>0)&&!k7(51,fw.wi.N),Xk=J.tj(),e5=fw.info.video?A.videoTrack:A.audioTrack;nw&&(Xk.stun="1");A.loader.handleError(ry,Xk);A.TL()||(nw&&sL(A.W,fw),S2(e5,J),A.loader.yG())}}else h=1,A.TV&&J.info.isDecorated()&& ry==="net.badstatus"&&Tm(A.TV,MC,Jf)&&(h=0),A.gT.isLive&&J.p8()==="net.badstatus"&&A.D<=A.policy.e6*2?(q20(A.gT),A.gT.SD||A.gT.isPremiere?FT(A.loader,0,{zZ:"badStatusWorkaround"}):A.gT.U?FT(A.loader,A.gT.SO,{zZ:"badStatusWorkaround",OU:!0}):lR(A.loader)):A.loader.handleError(ry,J.tj(),h);isNaN(A.XH)||(A.loader.o5(A.XH),A.XH=NaN)}A.policy.Pz&&!J.isComplete()?mZ(A.loader):A.loader.yG();var mt=r$L(J,A.policy,A.V);tKQ(A,J,mt)}}}}}catch(T){ry=A.Wn?1:0,A.Wn=!0,J=Vu(ry),ry=JT(T,ry),A.loader.handleError(ry.errorCode, ry.details,ry.severity),J||A.loader.KV()}},f)}; t6=function(A,L){if(A.policy.useUmp&&L.TL())return!1;try{var B=L.info.Lr[0].b1,f=B.info.video?A.videoTrack:A.audioTrack;if(A.gT.isManifestless&&f){A.D=0;f.T&&(L.TL(),L.isComplete()||L.HA(),f.T=!1);L.TU()&&A.loader.wq.eg(1,L.TU());var K=L.Ns(),V=L.y0();ap(A.gT,K,V)}if(L.info.xm()&&!NP(L.info))for(var J=g.m(L.Ud()),R=J.next();!R.done;R=J.next())Bdw(f,R.value);for(A.loader.getCurrentTime();f.W.length&&f.W[0].state===4;){var Z=f.W.shift();ocE(f,Z);f.S4=Z.OL()}f.W.length&&ocE(f,f.W[0]);var N=!!Db(f);N&& L instanceof fT&&(B.info.NF()?cLC(A.timing):E61(A.timing));return N}catch(F){L=L.tj();L.origin="hrhs";a:{A=A.loader;B=F;if(B instanceof Error){L.msg||(L.msg=""+B.message);L.name||(L.name=""+B.name);if(B instanceof g.iL&&B.args)for(f=g.m(Object.entries(B.args)),K=f.next();!K.done;K=f.next())V=g.m(K.value),K=V.next().value,V=V.next().value,L["arg"+K]=""+V;g.CE(B);if(B.level==="WARNING"){A.Np.J8(L);break a}}A.handleError("fmt.unplayable",L,1)}return!1}}; kdE=function(A){var L=A.videoTrack.b1.index;A.HB=new jo1({In:A.policy.In,D5:A.policy.G.D5,So:L.w7(),uq:function(){return L.uq()}, kN:function(){return L.kN()}})}; h6=function(A,L,B,f){if(!(B.w1()||B.mE()||B.V||!ez(B.wi,A.policy,A.V,A.loader.ue)||B.info.Bn==="f"||A.policy.N)){if(f){f=A.U;var K=B.info;f=Fd6(f,K.video?f.policy.kY:f.policy.YH,K.lC)}else f=0;f=B.bv(f);A=rv(A,f);NP(f)&&zE(L,A);B.V=!0}}; Q1=function(A,L,B,f,K,V,J,R){g.Y.call(this);var Z=this;this.loader=A;this.Iy=L;this.videoTrack=B;this.audioTrack=f;this.gT=K;this.Wn=V;this.isAudioOnly=J;this.G=R;this.W=fr;this.ZM=!1;this.logger=new g.sI("sabr");this.yj=this.X=this.Vj=this.qp=!1;this.videoInfos=this.T=this.Wn.videoInfos;this.V=this.wT=this.Wn.N;this.N=new DU(L,V,function(N,F){Z.loader.Hn(N,F)}); this.isAudioOnly&&Tde(this,this.gT.N["0"])}; l_6=function(A,L){var B=[];L=g.m(L);for(var f=L.next();!f.done;f=L.next())B.push(g.vV(f.value,A.gT.iC));return B}; Tde=function(A,L,B){L!==A.U&&(A.U&&(A.ZM=!0),A.U=L,A.VP(L,A.videoTrack,B))}; CSe=function(A,L){Y2(A.Iy)&&(A.Vj=L.reason==="m"||L.reason==="l"?!0:!1);L.reason==="m"?L.isLocked()&&mgk(A,L.N):QoQ(A,L)?C6(A,L.W,L.N):A.videoInfos=A.T;A.yj=!0;A.W=L}; QoQ=function(A,L){return A.Iy.Gu&&L.reason==="l"||A.Iy.vC?!1:A.Iy.NB?!0:L.reason==="l"||L.reason==="b"||L.reason==="o"}; mgk=function(A,L){var B=A.N.N;if(B){A.videoInfos=A.T;var f=g.Pw(A.videoInfos,function(K){return K.id===B}); f&&f.video.qualityOrdinal===L?A.videoInfos=[f]:(f=A.videoInfos.map(function(K){return K.id}),A.loader.Hn("sabrpf",{pfid:""+B, vfids:""+f.join(".")}),C6(A,L,L),wP(A.N,""))}else C6(A,L,L)}; C6=function(A,L,B){A.videoInfos=A.T;A.videoInfos=g.Mi(A.videoInfos,function(f){return f.video.qualityOrdinal>=L&&f.video.qualityOrdinal<=B})}; ioQ=function(A,L,B){if(A.G){var f=g.Mi(A.V,function(K){return K.id===A.G}); return iR(f,B).includes(L)}f=g.Mi(A.V,function(K){var V;return!((V=K.ri)==null||!V.isDefault)}); return f.length>0?iR(f,B).includes(L):iR(A.V,B).includes(L)}; iR=function(A,L){return A.map(function(B){return nq(g.vV(B,L))})}; $g0=function(A){var L;if((L=A.W)==null?0:L.isLocked())return A.videoInfos;var B=IN(A.N);L=g.Mi(A.videoInfos,function(f){return f.lC>A.Iy.lC?!1:!B.has(f.id)}); A7L(A.N)&&(L=g.Mi(L,function(f){return f.video.width<=854&&f.video.height<=480})); return L}; Oo0=function(A,L,B,f){var K=A.gT,V=A.Np.getVideoData(),J=A.uE,R=wpS({Ml:A.Ml,tF:V.K(),Np:A.Np,ut:A.ut,Iy:A.Iy,JH:A.JH,Pa:A.Pa,AI:A.AI,LS:A.LS,O0:A.O0,Ay:A.Ay,KF:A.KF,sabrLicenseConstraint:V.sabrLicenseConstraint,PL:A.PL,Cn:A.Cn,F6:A.F6,Un:A.Un,uD1:!!J,authorizedFormats:V.authorizedFormats}),Z=UV(V,A.K_,A.nextRequestPolicy,A.ES,A.Ih,A.rE,A.oo);B&&L&&(B=Z.pS?Z.pS.map(function(I){return I.type}):[],L("sabr",{stmctxt:B.join("_"), unsntctxt:Z.KL?Z.KL.join("_"):""}));L=A.xe;B=A.pK;if(B===void 0&&L===void 0){var N;B=XN1(K.iC,(N=A.j1)==null?void 0:N.video);var F;L=XN1(K.iC,(F=A.j1)==null?void 0:F.audio)}if(V.Sg)var D=V.Sg;V={No:R,lM:A.lM,xe:L,pK:B,uE:J,videoPlaybackUstreamerConfig:D,mZ:Z};f&&A.zJ?A.zJ.length>0&&(V.zJ=A.zJ):A.xX&&(V.xX=A.xX);V.VK=A.VK;V.Lj=K.Cr;return V}; XN1=function(A,L){return L?[g.vV(L.info,A)]:[]}; $q=function(A,L,B){var f=this;this.requestType=A;this.wi=L;this.xs=B;this.W=null;this.GV={Ay:function(){var K;return(K=f.data)==null?void 0:K.Ay}, Ih:function(){var K;return(K=f.data)==null?void 0:K.Ih}, PL:function(){var K;return(K=f.data)==null?void 0:K.PL}}}; C7Q=function(A,L,B){L=Pq(A.wi,EcQ(A,L,B),L);A.kh()&&L.set("probe","1");return L}; EcQ=function(A,L,B){A.P9===void 0&&(A.P9=A.wi.P9(L,B));return A.P9}; Xn=function(A){var L,B;return((L=A.N)==null?void 0:(B=L.No)==null?void 0:B.q1)||0}; Oh=function(A){var L,B;return!!((L=A.N)==null?0:(B=L.No)==null?0:B.PL)}; c$w=function(A){var L={},B=[],f=[];if(!A.data)return L;for(var K=0;K0;Z--)B.push(R)}B.length!==J?L.error=!0:(V=B.slice(-V),B.length=K,Aa7(L,B,V));break;case 1:Aa7(L,xq,e2);break;case 0:oS(L, L.N&7);B=AB(L,16);K=AB(L,16);(B^K)!==65535&&(L.error=!0);L.output.set(L.data.subarray(L.W,L.W+B),L.V);L.W+=B;L.V+=B;break;default:L.error=!0}A.V>A.output.length&&(A.output=new Uint8Array(A.V*2),A.V=0,A.W=0,A.U=!1,A.N=0,A.register=0)}A.output.length!==A.V&&(A.output=A.output.subarray(0,A.V));return A.error?new Uint8Array(0):A.output}; Aa7=function(A,L,B){L=Li(L);B=Li(B);for(var f=A.data,K=A.output,V=A.V,J=A.register,R=A.N,Z=A.W;;){if(R<15){if(Z>f.length){A.error=!0;break}J|=(f[Z+1]<<8)+f[Z]<>=7;N<0;)N=L[(J&1)-N],J>>=1;else J>>=N&15;R-=N&15;N>>=4;if(N<256)K[V++]=N;else if(A.register=J,A.N=R,A.W=Z,N>256){J=zm[N];J+=AB(A,n6[N]);Z=a_e(A,B);R=aP[Z];R+=AB(A,uR[Z]);if(oTe&&JB.length&&(A.error=!0);A.register|=(B[f+1]<<8)+B[f]<=0)return oS(A,B&15),B>>4;for(oS(A,7);B<0;)B=L[AB(A,1)-B];return B>>4}; AB=function(A,L){for(;A.N=A.data.length)return A.error=!0,0;A.register|=A.data[A.W++]<>=L;A.N-=L;return B}; oS=function(A,L){A.N-=L;A.register>>=L}; Li=function(A){for(var L=[],B=g.m(A),f=B.next();!f.done;f=B.next())f=f.value,L[f]||(L[f]=0),L[f]++;var K=L[0]=0;B=[];var V=0;f=0;for(var J=1;J7&&(V+=L[J]);for(K=1;K>Z&1;R=V<<4|J;if(J<=7)for(Z=1<<7-J;Z--;)f[Z<>=7;J--;){f[Z]||(f[Z]=-L,L+=2);var N=K&1;K>>=1;Z=N-f[Z]}f[Z]=R}}return f}; fQk=function(A){var L,B,f,K,V,J,R,Z,N;return g.c(function(F){switch(F.N){case 1:if(!Bpw)throw Error("DecompressionStream is not supported");L=QN.l4();B=new DecompressionStream("gzip");f=B.writable.getWriter();f.write(A);f.close();K=B.readable.getReader();V=new FK([]);case 2:return g.X(F,K.read(),5);case 5:J=F.W;R=J.value;if(Z=J.done){F.Ux(4);break}V.append(R);F.Ux(2);break;case 4:return N=pz(V),QN.UV("gznb",L,Math.ceil(N.byteLength/16)),F.return(N)}})}; Bm=function(A){qI.call(this,"onesie",A);this.xs=A;this.N={};this.U=!0;this.V=null;this.queue=new vl(this);this.D={}}; fi=function(A){var L=A.queue;L.N.length&&L.N[0].isEncrypted&&!L.W&&(L.N.length=0);L=g.m(Object.keys(A.N));for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=A.N[B];if(!f.xF){var K=A.queue;K.N.push({videoId:f.videoId,formatId:B,isEncrypted:!1});K.W||Pl(K)}}}; KX6=function(A,L){var B=L.totalLength,f=!1;switch(A.V){case 0:A.iV(L,A.U).then(function(K){var V=A.xs;V.S$("oprr");V.playerResponse=K;V.zA||(V.zr=!1);Ki(V)},function(K){A.xs.fail(K)}); break;case 2:A.S$("ormk");L=pz(L);A.queue.decrypt(L);break;default:f=!0}A.xs.oU&&A.xs.Hn("ombup","id.11;pt."+A.V+";len."+B+(f?";ignored.1":""));A.V=null}; VC7=function(A,L){var B,f,K,V,J;return g.c(function(R){switch(R.N){case 1:A.xs.S$("oprgz_s");if(!Bpw){R.Ux(2);break}g.S5(R,3);return g.X(R,fQk(L),5);case 5:return B=R.W,A.xs.S$("oprgz_n"),A.xs.Hn("oprsgz",{i:"n"}),R.return(B);case 3:f=g.NX(R),A.xs.Hn("gzerr",{impl:"native",err:""+f});case 2:if(K=A.xs.K().GZ)try{var Z=QN.l4(),N=K.aV(L),F=K,D=N!=null?N:L,I=D.byteOffset,d=D.byteLength,w=F.exports.getInflatedSize(I,d);if(w===0)throw Error("wasm_gz: bad input");var r=F.malloc(w),h=F.exports.inflateGzip(I, d,r);if(h)throw F.free(r),Error("wasm_gz: fail"+h);var Q=new Uint8Array(F.exports.memory.buffer,r,w);N&&K.free(N.byteOffset);var l=K.Sx(Q);QN.UV("gzwb",Z,Math.ceil(l.byteLength/16));V=l;A.xs.S$("oprgz_w");A.xs.Hn("oprsgz",{i:"w"});return R.return(V)}catch(C){A.xs.Hn("gzerr",{impl:"wasm",err:""+C})}Z=QN.l4();N=g.LXy(new g.zOD(L));QN.UV("gzjb",Z,Math.ceil(N.byteLength/16));J=N;A.xs.S$("oprgz_p");A.xs.Hn("oprsgz",{i:"j"});return R.return(J)}})}; Ja1=function(A){return new Promise(function(L){setTimeout(L,A)})}; Srv=function(A,L){var B=A.K();var f=A.LD&&B.J("html5_onesie_preload_use_content_owner"),K=A.jF;f=f===void 0?!1:f;if(B=sR(L.L.experiments,"debug_bandaid_hostname")){var V=g.Am(L.L.experiments,"debug_bandaid_port");V=V>0?B+":"+V:B;B=L.L.experiments.GL("debug_bandaid_insecure_scheme");L=Yq(L,V,B)}else f&&(K==null?0:K.url)&&!L.W?(V=wy(17,new g.Fk(K.url)),L=Yq(L,V)):L=(V=L.N.get(0))==null?void 0:V.location.clone();if(L&&A.videoId){V=$i(A.videoId);A=[];if(V)for(V=g.m(V),B=V.next();!B.done;B=V.next())A.push(B.value.toString(16).padStart(2, "0"));L.set("id",A.join(""));return L}}; Ry1=function(A,L,B){B=B===void 0?0:B;var f,K;return g.c(function(V){if(V.N==1)return f=[],f.push(L.load()),B>0&&f.push(Ja1(B)),g.X(V,Promise.race(f),2);K=Srv(A,L);return V.return(K)})}; Zrv=function(A,L,B,f){f=f===void 0?!1:f;A.set("cpn",L.clientPlaybackNonce);A.set("opr","1");var K=L.K();A.set("por","1");VS()||A.set("onem","1");L.startSeconds>0&&A.set("osts",""+L.startSeconds);f||(K.J("html5_onesie_disable_partial_segments")&&A.set("oses","1"),L=K.J("html5_gapless_onesie_no_media_bytes")&&pr(L)&&L.LD,B&&!L?(L=B.audio,A.set("pvi",B.video.join(",")),K.J("html5_onesie_disable_audio_bytes")||A.set("pai",L.join(",")),Km||A.set("osh","1")):(A.set("oad","0"),A.set("ovd","0"),A.set("oaad", "0"),A.set("oavd","0")))}; Npe=function(A,L,B,f,K){K=K===void 0?!1:K;var V="https://youtubei.googleapis.com/youtubei/"+L.e6.innertubeApiVersion+"/player",J=[{name:"Content-Type",value:"application/json"}];f&&J.push({name:"Authorization",value:"Bearer "+f});J.push({name:"User-Agent",value:g.fa()});g.A_("EOM_VISITOR_DATA")?J.push({name:"X-Goog-EOM-Visitor-Id",value:g.A_("EOM_VISITOR_DATA")}):(B=B.visitorData||g.A_("VISITOR_DATA"))&&J.push({name:"X-Goog-Visitor-Id",value:B});(B=g.A_("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&J.push({name:"X-YouTube-Lava-Device-Context", value:B});(L=sR(L.experiments,"debug_sherlog_username"))&&J.push({name:"X-Youtube-Sherlog-Username",value:L});A=bD(JSON.stringify(A));return{url:V,rr:J,postBody:A,Eys:K,oM:K}}; V_=function(A,L,B,f,K,V,J,R,Z){var N=A.LW,F=A.g7;A=A.SN1;var D=N!==void 0&&F!==void 0,I=f.getVideoData(),d,w=L.N.encryptedClientKey;L=D?L.iv:void 0;D=ub(V,!0);K=K||!!VS()&&D>1572864;return{innertubeRequest:{RIF:A,Xa:N,g7:F,encryptedClientKey:w,iv:L,UqF:!0,SB:!0,Ti:"DecompressionStream"in window||!K,A2T:B.experiments.GL("html5_use_jsonformatter_to_parse_player_response")},No:wpS({Ml:V,tF:B,Np:f,ut:I.startSeconds*1E3}),onesieUstreamerConfig:J,xC:R,mZ:UV(I),reloadPlaybackParams:(d=I.dB)==null?void 0: d.reloadPlaybackParams,CCF:Z}}; FX7=function(A,L,B,f,K,V,J,R){var Z=g.qA(A,rN),N;if(!A.oM)if(N=Ug7(L,Z)){var F=N.Qn;N=N.signature}else N=F=L.encrypt(Z),(0,g.bc)(),N=UJC(new Yuk(L.N.V),N,L.iv);return V_(F&&N?{LW:F,g7:N}:{SN1:Z},L,B,f,!!A.oM,K,V,J,R)}; DGv=function(A,L,B,f,K,V,J,R){var Z,N,F;return g.c(function(D){if(D.N==1)return Z=g.qA(A,rN),g.X(D,Ye1(L,Z),2);if(D.N!=3)return N=D.W,g.X(D,W$e(L,N),3);F=D.W;return D.return(V_({LW:N,g7:F},L,B,f,!!A.oM,K,V,J,R))})}; dGw=function(A,L,B,f,K,V,J,R){var Z=g.qA(A,rN);if(Z=Ug7(L,Z))return V_({LW:Z.Qn,g7:Z.signature},L,B,f,!!A.oM,K,V,J,R)}; Sn=function(A,L,B){g.Y.call(this);var f=this;this.Np=A;this.playerRequest=L;this.Ml=B;this.logger=new g.sI("onesie");this.C6=[];this.xhr=null;this.state=1;this.lD=new yV;this.vU=!1;this.playerResponse="";this.S5=new hi(this);this.N7=new Bm(this);this.Zp="";this.tH=this.wx=!1;this.eU="";this.enableCompression=this.zA=this.yZ=!1;this.U1=[];this.tO=-1;this.kt=0;this.L=this.Np.K();this.videoData=this.Np.getVideoData();this.oU=this.L.hw();this.f6=this.L.Pz;this.Ky=new Eh(this.f6.N);this.Y$=this.L.J("html5_onesie_check_timeout"); this.FX=new g.aa(this.E4,500,this);this.G5=new g.aa(this.Mk,1E4,this);this.TE=new g.aa(function(){if(!f.isComplete()){var K=JB(f);f.fail(new g.K$("net.timeout",K))}},1E3); this.Re=new g.aa(this.Tis,2E3,this);this.pj=this.Np.rW();this.zr=this.J("html5_onesie_wait_for_media_availability");g.W(this.videoData,this);g.W(this,this.FX);g.W(this,this.G5);g.W(this,this.Re);A=h7();Km&&A&&(this.HV=new Map);this.vv=new Map;this.iJ=new Map;this.I2=new Map;this.FJ=new Map}; qq=function(A,L){var B;return(B=A.HV)==null?void 0:B.get(L)}; wKe=function(A,L,B){var f;return g.c(function(K){if(K.N==1)return A.S$("oprd_s"),IQS(A)?g.X(K,vcv(A.Ky,L,B),3):(f=A.Ky.decrypt(L,B),K.Ux(2));K.N!=2&&(f=K.W);A.S$("oprd_c");return K.return(f)})}; pKy=function(A){return A.J("html5_onesie_host_probing")||A.oU?Km:!1}; Ki=function(A){if(!A.playerResponse)return!1;if(A.yZ)return!0;var L=A.videoData.J("html5_onesie_audio_only_playback")&&y7(A.videoData);if(A.HV&&A.zr){if(!A.HV.has(A.Zp))return!1;var B=A.HV.get(A.Zp),f;if(f=B){f=!1;for(var K=g.m(B.EE.keys()),V=K.next();!V.done;V=K.next())if(V=B.EE.get(V.value))for(var J=g.m(V.Zs),R=J.next();!R.done;R=J.next())R.value.a6>0&&(V.NF?f=!0:L=!0);f=!(L&&f)}if(f)return!1}A.S$("ofr");A.lD.resolve(A.playerResponse);if(!A.Y$){var Z;(Z=A.TE)==null||Z.start();A.G5.start()}return A.yZ= !0}; jq6=function(A){if(A.HV&&!A.J("html5_onesie_media_capabilities")){A.S$("ogsf_s");var L=Z31(A.Np.getVideoData(),function(f,K){A.Hn(f,K)}),B=yae(A.Np); L.video=LrS(B,L.video);A.S$("ogsf_c");if(L.video.length)return L;A.Hn("ombspf","l."+B.W+";u."+B.N+";o."+B.V+";r."+B.reason)}}; IQS=function(A,L){return A.J("html5_onesie_sync_request_encryption")||(L==null?0:L.oM)||g.Ng(A.L)&&A.J("html5_embed_onesie_use_sync_encryption")?!1:!!VS()}; JB=function(A){if(!A.By)return{};var L=A.By.Rg(),B;L.d=(B=A.By.wT)==null?void 0:B.PV();L.shost=A.Tc;L.ty="o";return L}; gT0=function(A,L){var B,f;(f=(A=(B=A.HV)==null?void 0:B.get(L))==null)||(L=A.V?!1:A.V=!0,f=!L);return!f}; RS=function(A,L,B,f,K,V,J,R,Z,N,F,D){g.Y.call(this);var I=this;this.Np=A;this.loader=L;this.policy=B;this.audioTrack=f;this.videoTrack=K;this.gT=V;this.Ml=J;this.ql=R;this.W=Z;this.timing=N;this.Vj=F;this.G=D;this.N=[];this.U={};this.Cr=this.Nl=!1;this.Wn=this.cn=this.O0=0;this.qp={aJ:0,S8:0};this.Ox={aJ:0,S8:0};this.TV=null;this.wT={VK:[],lM:[]};this.JF={VK:[],lM:[]};this.T=null;this.D=[];this.S4=0;this.sx=!1;this.GV={YrT:function(){return I.N}, GgF:function(){return I.U}, xyr:function(){I.N.length=0}, k$L:function(){return I.videoData.S4}, HuL:function(){return I.Wn}, koT:function(d){I.Wn=d}, FMx:function(d){I.qp.S8=d}, rC:function(d){I.T=d}, dE:function(d){I.D=d}, NG:function(){return I.NG()}}; this.videoData=this.Np.getVideoData();this.yj=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.Tf;this.policy.iW&&(this.ZM=new y1(this.loader,this.policy,this.Ml),g.W(this,this.ZM))}; sqE=function(A,L){if(Gp8(A)){L=raE(A,L);A.N.push(L);var B;(B=A.ZM)==null||j2(B,A.gT.yj);A.yj>0&&A.qp.S8++}}; raE=function(A,L){A.policy.X&&A.loader.Hn("sabrcrq",{create:1});var B=new $q(0,A.gT.yj,A);A.W.yj=!1;return Hre(A,B,L)}; Zj=function(A){var L,B=A.policy.D&&((L=A.loader)==null?void 0:L.vT());L=A.loader.getCurrentTime()||0;L=hy1(A,L);if(A.policy.Sr&&A.loader.isSeeking()){var f=L6(A.videoTrack,L);A.loader.Hn("asmtfnctv",{b:L,a:f});isNaN(f)||(L=f)}f=A.loader.pY()||0;L+=f;f=Ur(A.videoData)||g.MG(A.videoData);var K=0;B?(f&&(K=Number.MAX_SAFE_INTEGER),A.videoData.hd&&(K=Math.ceil(A.videoData.SO*1E3))):K=Math.ceil(L*1E3);return Math.min(Number.MAX_SAFE_INTEGER,K)}; N8=function(A){return A.policy.WR&&!!A.T}; hy1=function(A,L){if(A.loader.isSeeking())return L;var B=A.Np.pD();if(!B)return L;B=B.YJ();if(B.length===0||aT(B,L))return L;if(!A.videoTrack.qy(L)&&!A.audioTrack.qy(L))return A.loader.Hn("sundrn",{b:0,lt:L}),L;for(var f=L,K=Infinity,V=0;VL)){var J=L-B.end(V);J=20)?(A.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),L):f}; Dj=function(A,L,B){A=A.loader.pY()||0;return Fg(L,(B+A)*1E3)/1E3+B}; Gp8=function(A){if(!brQ(A,A.qp)||RP(A.audioTrack)&&RP(A.videoTrack))return!1;if(A.policy.W)if(A.policy.T){var L;if((L=A.G)==null)var B=0;else{B=!1;L=g.m(L.N.entries());for(var f=L.next();!f.done;f=L.next())if(f=g.m(f.value),f.next(),f=f.next().value,f.event!=="predictStart"&&f.uW===5){var K=void 0,V=void 0;((K=f)==null?0:K.n6)&&Date.now()-((V=f)==null?NaN:V.n6)>1E4?f.uW=1:B=!0}}if(B)return!1}else if(B=!1,A.Vj.W===2?B=!0:A.Vj.W===3&&(Zj(A),A.loader.pY(),K=aN(A.audioTrack,A.loader.isSeeking()).VK,L= aN(A.videoTrack,A.loader.isSeeking()).VK,f=A.loader.getCurrentTime()||0,K=Dj(A,K,f),L=Dj(A,L,f),L=Math.min(K,L),f=A.Vj,L>=f.V?(f.Hn("sdai",{haltrq:L,est:f.V}),L=!0):L=!1,L&&(B=!0)),B&&A.policy.X&&A.loader.Hn("sabrcrq",{waitad:1}),B)return!1;A.policy.Bk&&(A.wT=dg(A,A.audioTrack),A.JF=dg(A,A.videoTrack));if(!A.V)return A.policy.X&&A.loader.Hn("sabrcrq",{nopolicy:1}),!0;if(A.Np.kA())return A.policy.X&&A.loader.Hn("sabrcrq",{utc:1}),!0;if(A.W.X)return A.policy.X&&A.loader.Hn("sabrcrq",{audio:1}),!0;if(A.policy.B4&& A.W.yj)return A.policy.X&&A.loader.Hn("sabrcrq",{constraint:1}),!0;if(!A.V.targetAudioReadaheadMs||!A.V.targetVideoReadaheadMs)return A.policy.X&&A.loader.Hn("sabrcrq",{noreadahead:1}),!0;if(A.policy.D&&A.loader.vT())return A.policy.X&&A.loader.Hn("sabrcrq",{seekToHead:1}),!0;B=Math.min(Sb(A.loader,A.audioTrack)*1E3,A.V.targetAudioReadaheadMs);L=Math.min(Sb(A.loader,A.videoTrack)*1E3,A.V.targetVideoReadaheadMs);var J=Math.min(B,L),R=A.Np.getCurrentTime()*1E3,Z=tCk(A,R);f=Z.lU;K=Z.tP;V=Z.Hb;Z=Z.jS; var N=fL||f>=0&&K.Uj>f+1)break;B=Math.max(B,K.startTimeMs+K.durationMs);f=Math.max(f,K.L8)}return Math.max(0,B-L)}; Hre=function(A,L,B){var f={Ml:A.Ml,YD:function(Z,N){A.Np.MX(Z,N)}, xm:A.policy.gy,L6:A.policy.V};A.Ml.W.T&&(f.qz=(A.videoTrack.b1.info.lC||0)+(A.audioTrack.b1.info.lC||0));A.policy.iF&&(f.So=A.audioTrack.b1.index.w7(),f.xm=!1);var K=EcQ(L,A.policy,A.U)?2:1;K!==A.Wn&&(A.Wn=K,Tp8(A));B=A.NG(B);if(A.policy.Wn&&A.policy.V&&B.ES){for(var V=K="",J=g.m(B.ES),R=J.next();!R.done;R=J.next())R=R.value,A.videoData.sabrContextUpdates.has(R)||A.policy.Wn&&B.rE&&B.rE.type===R?K+="_"+R:V+="_"+R;A.loader.Hn("sabrbldrqs",{ctxts:K,misctxts:V})}!L.setData(B,A.policy,A.U)&&A.policy.Wn&& A.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);f=new L5(A.policy,L,A.gT,A.U,A,f,A.loader.rW());oN(A.timing);A.policy.X&&A.loader.Hn("sabrcrq",{rn:f.zb(),probe:L.kh()});return f}; pi=function(A,L){if(L.TL()||A.TL())A.policy.XV||(A.policy.D?IS(A.loader):A.loader.yG());else{if(A.policy.V&&L.isComplete()&&L instanceof L5){var B=A.loader,f=B.Hn,K,V,J=Object.assign(L.By.Rg(),{rst:L.state,strm:L.xhr.v4(),d:(K=L.By.wT)==null?void 0:K.PV(),cncl:L.xhr&&L.RA.D?1:0,rqb:L.qO,cwt:L.RA.V,swt:(V=L.M3)==null?void 0:V.md});K=Object.assign(c$w(L.info),J);f.call(B,"rqs",K)}if(L.isComplete()&&L.kh()&&L instanceof L5)A.policy.N8?L.Xw()?(L.dispose(),A.N.length===0?A.loader.yG():(A=A.N[0],A instanceof L5&&A.K5()&&A.oG())):L.LQ()&&A.loader.handleError(L.p8(),L.tj()):(L.dispose(),A.loader.yG());else{if(L.TG())L instanceof L5&&Mlk(A.timing,L),Tp8(A),wg(A);else if(L.LQ())if(B=A.Np.kA(),L instanceof L5&&Oh(L.info)&&B&&A.loader.o5(B),L instanceof L5&&Xpk(L)){var R;(R=A.loader.yh)==null||t4(R)}else L instanceof Sn?A.N.pop():(R=1,L.canRetry()&&kq(A.loader)&&(lQk(A,L),R=0),A.loader.handleError(L.p8(),L.tj(),R));else{if(A.loader.isSuspended&&!L.isComplete())return;wg(A)}L.TL()||L instanceof Sn||(L.isComplete()? R=r$L(L,A.policy,A.U):(R=Gd6(L,A.policy,A.U),R===1&&(A.Nl=!0)),R!==0&&(B=new $q(1,L.info.wi),B.P9=R===2,Hre(A,B)));A.policy.Pz&&!L.isComplete()?mZ(A.loader):A.loader.yG()}}}; wg=function(A){for(;A.N.length&&A.N[0].Gp(A.TP());){var L=A.N.shift();mG6(A,L)}A.N.length&&mG6(A,A.N[0])}; mG6=function(A,L){L instanceof L5&&(A.Ex=L);var B=new Set(L.Wq(A.TP()));B=g.m(B);for(var f=B.next();!f.done;f=B.next()){var K=f.value;if(!(f=!(L instanceof Sn))){f=A.W;var V=f.gT.iC,J=iR(f.videoInfos,V);V=ioQ(f,K,V);var R=J.includes(K);!f.Iy.JN||V||R||f.loader.Hn("sabrcpf",{fid:""+K,vfids:""+J.join("."),said:f.G||""});f=V||J.includes(K)}if(f&&(f=L.PA(K,A.TP()),J=A.policy.WR&&xa(f[0].b1.info.mimeType),L.HA(K,A.TP())))for(K=L.Ud(K,A.TP()),K=g.m(K),V=K.next();!V.done;V=K.next())if(V=V.value,A.policy.V&& L instanceof Sn&&A.loader.Hn("omblss",{s:V.info.Dx()}),J)R=A.timing,R.Wn||(R.Wn=(0,g.bc)(),g.i1("fcb_r",R.Wn,R.N)),R=A,R.videoData.iC()&&R.T&&nq(R.T)===nq(g.vV(V.info.b1.info,R.gT.iC))&&R.Np.publish("sabrCaptionsDataLoaded",V,R.dE.bind(R));else{R=V.info.b1.info.NF();var Z=V.info.b1;if(R){var N=void 0;var F=A.W,D=(N=L.Ko(A.TP()))==null?void 0:N.token;F.X&&Z!==F.D?N=!0:(F.X=!1,Z!==F.D&&(F.D=Z,F.VP(Z,F.audioTrack,D)),N=!1);if(N)continue}else N=void 0,Tde(A.W,Z,(N=L.Ko(A.TP()))==null?void 0:N.token); N=R?A.audioTrack:A.videoTrack;L instanceof Sn&&(N.T=!1,L instanceof Sn&&(R?cLC(A.timing):E61(A.timing)));try{uP(N,f,V)}catch(I){V=JT(I),A.loader.handleError(V.errorCode,V.details,V.severity),N.KV(),A.BL(!1,"pushSlice"),IS(A.loader)}}}}; lQk=function(A,L){A.policy.Wn?A.N.splice(A.N.indexOf(L)).forEach(function(B){B.dispose()}):(A.N.pop(),L==null||L.dispose())}; QqQ=function(A,L,B){for(var f=[],K=0;K0)for(var L=g.m(A.videoData.sabrContextUpdates.keys()),B=L.next();!B.done;B=L.next()){B=B.value;var f=void 0;((f=A.videoData.sabrContextUpdates.get(B))==null?0:f.sendByDefault)&&A.videoData.S4.add(B)}if(A.policy.Wn&&A.N.length)for(L=g.m(A.N),B=L.next();!B.done;B=L.next())(B=B.value.OF())&&B.type&&B.sendByDefault&&A.videoData.S4.add(B.type)}; Cj7=function(A){A.policy.k6&&(A.Ys=void 0,A.O0=0)}; irE=function(A,L){if(L.LQ()||L.TL()){var B=A.loader,f=B.Hn,K=L.state;A=A.TP();var V,J;if((L=(V=L.HV)==null?void 0:V.get(A))==null)L=void 0;else{V=0;A=L.Wq();for(var R=0;R0){var B=Math.floor((0,g.bc)()/1E4);if(B===L.aJ){if(L.S8>=A.yj){L.S8===A.yj&&(B={reason:"toomanyrequests"},B.limit=L.S8,A.loader.handleError("player.exception",B),L.S8+=1);L=!1;break a}}else L.aJ=B,L.S8=0}L=!0}if(!L||A.loader.isSuspended&&A.loader.K6)return!1;if(A.X&&(0,g.bc)()0)||A.policy.Wn&&A.N.length===1&&A.N[0].qG()?!0:!1){var f;L=(f=A.gT.yj)!=null&&ez(f,A.policy,A.U,A.loader.ue)?!0:!1}return L&&!A.sx?!0:!1}; tCk=function(A,L){var B=$GS(A),f=B.Hb;B=B.jS;if(A.policy.Bk){var K=Fg(A.wT.VK,L);A=Fg(A.JF.VK,L)}else K=f,A=B;return{lU:K,tP:A,Hb:f,jS:B}}; $GS=function(A){var L=K6(A.audioTrack,!0)*1E3;A=K6(A.videoTrack,!0)*1E3;return{Hb:L,jS:A}}; XK7=function(A){this.Np=A;this.N=new Map;this.delay=null}; y_=function(A,L){if(kF(A.Np.getPlayerState())&&A.N.size!==0){var B=L!=null?L:Array.from(A.N.values()).sort(function(K,V){return K.mediaTime-V.mediaTime}); L=A.getCurrentTime();var f=(B[0].mediaTime-L)*1E3/A.Np.getPlaybackRate();if(f<500)for(L=f>0?OrL(A):L,B=g.m(B),f=B.next();!f.done;f=B.next())if(f=f.value,L>=f.mediaTime)f.resolve([f.mediaTime,f.id]),A.N.delete(f.id);else break;ETe(A,L)}}; caw=function(A,L,B){A.N.delete(B);return new Promise(function(f){A.N.set(B,{id:B,mediaTime:L,resolve:f});f=Array.from(A.N.values()).sort(function(K,V){return K.mediaTime-V.mediaTime}); B===f[0].id&&y_(A,f)})}; MC8=function(A){var L;(L=A.delay)==null||L.dispose();A.N.clear()}; ETe=function(A,L){var B;(B=A.delay)==null||B.dispose();A.delay=null;B=Array.from(A.N.values()).sort(function(f,K){return f.mediaTime-K.mediaTime}); B.length!==0&&(L=(B[0].mediaTime-L)*1E3/A.Np.getPlaybackRate(),A.delay=new g.aa(function(){y_(A)},L>500?L-500:L),A.delay.start())}; OrL=function(A){var L,B;return(B=(L=A.Np.pD())==null?void 0:L.getCurrentTime())!=null?B:A.Np.getCurrentTime()}; jn=function(A,L,B){var f=this;this.V=A;this.cpn=L;this.Np=B;this.N=new Map;this.W=new Map;this.T=NaN;this.X=!1;this.U=this.l0="";this.isSeeking=!1;this.D=new XK7(B);this.I4=B.I4;this.Np.subscribe("statechange",this.G,this);this.Np.subscribe("SEEK_TO",function(){f.py()}); this.Np.subscribe("SEEK_COMPLETE",function(){Yry(f)}); this.l0=this.U=this.cpn}; WXk=function(A,L,B){var f=!0;f=f===void 0?!1:f;var K=A.N.get(L),V=A.V.getStartTime(L),J=A.V.getDuration(L);A.X=!1;var R=V,Z;((Z=K==null?void 0:K.N)!=null?Z:[A.cpn]).forEach(function(N,F){var D,I=(D=K==null?void 0:K.W[F])!=null?D:J;if(B>=R&&BK?gg(A,V,A.N.get(V)):V===K&&gg(A,V,A.N.get(V),f-A.V.getStartTime(V))})}; UG0=function(A,L,B,f){f=f===void 0?!1:f;L!==A.l0&&(A.l0=L,A.Np.publish("playbackstarted",L,B+A.Np.pY(),f))}; qrD=function(A,L,B,f){A.U=B;B=L+"."+B;A.W.has(L)?A.W.get(L).push(B):A.W.set(L,[B]);caw(A.D,f,B).then(function(K){var V=g.m(K);K=V.next().value;V=V.next().value;var J=g.m(V.split("."));V=J.next().value;J=J.next().value;V=g.m([Number(V),J]);V.next();V=V.next().value;UG0(A,V,K)})}; GL=function(A,L,B,f,K){this.loader=A;this.policy=L;this.schedule=B;this.Gv=f;this.yj=K;this.Wn=NaN;this.W=this.X=this.U=null;this.N=this.D=this.T=this.startTimeSecs=NaN;this.V=!1;this.G=NaN}; PjE=function(A,L,B,f,K,V){return L.ye&&L.mH&&B===3?new GL(A,L,f,K,V):null}; xGe=function(A,L){if(A.policy.yw4){var B=L.info.lC,f=ub(A.schedule);L=L.index.w7();B=Math.max(1,f/B);A.G=Math.round(Math.max(((B-1)*L+A.policy.TZ)/B,L-A.policy.g$)*1E3)}}; zyS=function(A,L){var B=Date.now()/1E3,f=B-A.startTimeSecs,K=B-A.T,V=K>=A.policy.P0,J=!1;if(V){var R=0;!isNaN(L)&&L>A.D&&(R=L-A.D,A.D=L);R/K=A.policy.g$&&!A.V;if(!V&&!B&&eye(A,L))return NaN;B&&(A.V=!0);a:{f=J;B=(0,g.bc)()/1E3-(A.Gv.pw()||0)-A.X.N-A.policy.TZ;V=A.W.startTime;B=V+B;if(f){if(isNaN(L)){rg(A,NaN,"n",L);V=NaN;break a}f=L-A.policy.Ym;f0&&(J.headers=R);V&&(J.onFinish=V);return Object.keys(J).length>1?J:null}; hB=function(A,L,B,f,K,V,J,R){Dp()&&B.token&&(A=Zp(A,{ctt:B.token,cttype:B.sR,mdx_environment:B.mdxEnvironment}));f.J("net_pings_low_priority")&&(L||(L={}),L.priority="low");V||R&&f.J("nwl_skip_retry")?(L==null?L={}:Bhk(A,f.J("html5_assert_cpn_with_regex")),J?n4().sendAndWrite(A,L):n4().sendThenWrite(A,L,R)):L?(Bhk(A,f.J("html5_assert_cpn_with_regex")),O8Q(A,L)):g.MJ(A,K)}; fIw=function(A){for(var L=[],B=0;B0&&B>0&&!A.W&&A.V<1E7)try{A.U=A.D({sampleInterval:L,maxBufferSize:B});var f;(f=A.U)==null||f.addEventListener("samplebufferfull",function(){return g.c(function(K){if(K.N==1)return g.X(K,A.stop(),2);Jj7(A);g.VK(K)})})}catch(K){A.W=VgC(K.message)}}; tB=function(A,L){var B,f,K=(B=window.h5vcc)==null?void 0:(f=B.settings)==null?void 0:f.set(A,L);return eM(K)?A2(nS(K),function(){return!0},function(){return!1}):nS(!!K)}; SU0=function(A){return tB("MediaSource.EnableUsingMediaSourceBufferedRange",A?1:0)}; RIQ=function(A){return tB("HTTP3",A?1:0)}; Zmk=function(A){return tB("MediaSource.EnableUsingMediaSourceAttachmentMethods",A?1:0)}; NhS=function(A){return tB("QUIC",A?1:0)}; FY0=function(A){return tB("Media.AudioWriteDurationLocal",A)}; Dm0=function(A){return tB("Media.PlayerConfiguration.DecodeToTexturePreferred",A?1:0)}; dmk=function(A){return tB("Media.DisableExternalAllocator",A?1:0)}; II8=function(A){return tB("Media.VideoBufferSizeClampMb",A)}; whE=function(A){return tB("Media.EnableAllocateOnDemand",A?1:0)}; yje=function(){var A,L,B,f=(A=window.h5vcc)==null?void 0:(L=A.settings)==null?void 0:(B=L.getPersistentSettingAsString)==null?void 0:B.call(L,"cpu_usage_tracker_intervals");if(f!=null){var K;A=(K=JSON.parse(f))!=null?K:[];K=A.filter(function(N){return N.type==="total"}).map(function(N){return N.seconds}); L=g.m(phw);for(B=L.next();!B.done;B=L.next())B=B.value,K.indexOf(B)===-1&&A.push({type:"total",seconds:B});var V,J;(V=window.h5vcc)==null||(J=V.settings)==null||J.set("cpu_usage_tracker_intervals_enabled",1);var R,Z;(R=window.h5vcc)==null||(Z=R.settings)==null||Z.set("cpu_usage_tracker_intervals",JSON.stringify(A))}}; jhQ=function(){var A=window.H5vccPlatformService,L="";if(A&&A.has("dev.cobalt.coat.clientloginfo")&&(A=A.open("dev.cobalt.coat.clientloginfo",function(){}))){var B=A.send(new ArrayBuffer(0)); B&&(L=String.fromCharCode.apply(String,g.x7(new Uint8Array(B))));A.close()}return L}; g.l3=function(A){g.Y.call(this);var L=this;this.provider=A;this.logger=new g.sI("qoe");this.N=new Map;this.sequenceNumber=1;this.qp=NaN;this.xb="N";this.G=this.dA=this.L_=this.Wn=this.W=0;this.zV=this.S4=this.T=this.Ex="";this.t$=this.Ys=NaN;this.KY=0;this.N8=-1;this.Pz=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Nl=this.isEmbargoed=this.wT=this.isOffline=this.isBuffering=!1;this.TZ=[];this.yj=null;this.Ox=this.U=this.ZM=this.X=!1;this.V=-1;this.sx=!1;this.k6=new g.aa(this.kLr,750,this);this.Ak= this.adCpn="";this.mR=this.d_=this.hk=this.E$=this.adFormat=void 0;this.m1=0;this.GZ=new Set("cl fexp drm drm_system drm_product ns adformat live cat shbpslc".split(" "));this.LD=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.ql=!1;this.jI=NaN;this.JF=0;this.mH=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Uv=!1;this.nD=new Set;this.GV={ZW:function(V){L.ZW(V)}, m2p:function(){return L.D}, reportStats:function(){L.reportStats()}, xTT:function(){return L.N.get("cat")||[]}, CU:function(V){return L.N.get(V)||[]}, s54:function(){return L.N}, Yhp:function(){return{adCpn:L.adCpn,Ak:L.Ak,adFormat:L.adFormat}}, it1:function(){return{E$:L.E$,hk:L.hk,d_:L.d_,mR:L.mR}}}; this.Vj=this.provider.L.J("html5_qoe_relaxed_reporting");var B=g.Am(this.provider.L.experiments,"html5_qoe_proto_mock_length");B&&!kk.length&&(kk=fIw(B));g.W(this,this.k6);try{var f,K;(K=(f=navigator).getBattery)==null||K.call(f).then(function(V){L.yj=V})}catch(V){}g.TL(this,0,"vps",["N"]); A.L.hw()&&(this.JF=(0,g.bc)(),this.jI=g.Gc(function(){var V=(0,g.bc)(),J=V-L.JF;J>500&&L.Hn("vmlock",{diff:J.toFixed()});L.JF=V},250)); this.provider.videoData.bY&&(this.remoteControlMode=gn6[this.provider.videoData.bY]||0);this.provider.videoData.CQ&&(B=tiv(this.provider.videoData.CQ),B==null?0:B.length)&&(this.remoteConnectedDevices=B);A.L.hw()&&(this.cn=new si,g.W(this,this.cn));Bf7(A.L)&&(this.Cr=new b3,g.W(this,this.Cr))}; mB=function(A,L,B){var f=A.N.get(L);f?f.push(B):A.N.set(L,[B])}; g.TL=function(A,L,B,f){mB(A,B,L.toFixed(3)+":"+f.join(":"))}; Q_=function(A,L){var B=A.provider.getCurrentTime();g.TL(A,L,"cmt",[B.toFixed(3)]);var f=B=A.provider.Fb();if((!A.D||A.provider.L.J("html5_shorts_gapless_no_gllat")&&pr(A.provider.videoData)?0:f*1E3>A.D.Y4+100)&&A.D){var K=A.D;f=K.isAd;B=B*1E3-K.Y4;A.F4=L*1E3-K.Hhx-B-K.pVF;K=(0,g.bc)()-B;L=A.F4;B=A.provider.videoData;var V=B.isAd();if(f||V){V=(f?"ad":"video")+"_to_"+(V?"ad":"video");var J={};B.T&&(J.cttAuthInfo={token:B.T,videoId:B.videoId});J.startTime=K-L;C0(V,J);g.Qm({targetVideoId:B.videoId,targetCpn:B.clientPlaybackNonce}, V);mF("pbs",K,V)}else K=A.provider.Np.zH(),K.T!==B.clientPlaybackNonce?(K.D=B.clientPlaybackNonce,K.W=L):B.zt()||g.CE(new g.iL("CSI timing logged before gllat",{cpn:B.clientPlaybackNonce}));A.Hn("gllat",{l:A.F4.toFixed(),prev_ad:+f});delete A.D}}; $k=function(A,L){L=L===void 0?NaN:L;L=L>=0?L:g.Ci(A.provider);var B=A.provider.Np.Uq(),f=B.lA-(A.Ys||0);f>0&&g.TL(A,L,"bwm",[f,(B.KC-(A.t$||0)).toFixed(3)]);isNaN(A.Ys)&&B.lA&&A.isOffline&&A.ZW(!1);A.Ys=B.lA;A.t$=B.KC;isNaN(B.bandwidthEstimate)||g.TL(A,L,"bwe",[B.bandwidthEstimate.toFixed(0)]);A.provider.L.hw()&&Object.keys(B.N).length!==0&&A.Hn("bwinfo",B.N);if(A.provider.L.hw()||A.provider.L.J("html5_log_meminfo"))f=uZ8(),Object.values(f).some(function(V){return V!==void 0})&&A.Hn("meminfo",f); if(A.provider.L.hw()){var K;(f=(K=A.cn)==null?void 0:AjQ(K))&&Object.values(f).some(function(V){return V!=null})&&A.Hn("cpuinfo",f)}A.Cr&&A.Hn("jsprof",A.Cr.flush()); A.yj&&g.TL(A,L,"bat",[A.yj.level,A.yj.charging?"1":"0"]);K=A.provider.Np.getVisibilityState();A.N8!==K&&(g.TL(A,L,"vis",[K]),A.N8=K);Q_(A,L);(K=GgQ(A.provider))&&K!==A.KY&&(g.TL(A,L,"conn",[K]),A.KY=K);i3(A,L,B)}; rje=function(A){var L=A.provider.Np.Uq(),B=g.Ci(A.provider);i3(A,B,L);var f=L.V;L=L.U;isNaN(f)||(A.provider.L.J("html5_unified_live_latency_reporting")&&!isNaN(L)&&L?g.TL(A,B,"e2el",[f.toFixed(3),L.toFixed(3)]):g.TL(A,B,"e2el",[f.toFixed(3)]))}; i3=function(A,L,B){if(!isNaN(B.zo)){var f=B.zo;B.W96E3&&(new g.aa(A.reportStats,0,A)).start()}}; hIL=function(A){A.provider.videoData.LD&&Oi(A,"prefetch");A.provider.videoData.Cr&&A.Hn("reload",{r:A.provider.videoData.reloadReason,ct:A.provider.videoData.Cr});A.provider.videoData.I7&&Oi(A,"monitor");A.provider.videoData.isLivePlayback&&Oi(A,"live");Km&&Oi(A,"streaming");A.provider.videoData.bY&&A.Hn("ctrl",{mode:A.provider.videoData.bY},!0);if(A.provider.videoData.CQ){var L=A.provider.videoData.CQ.replace(/,/g,"_");A.Hn("ytp",{type:L},!0)}A.provider.videoData.XE&&(L=A.provider.videoData.XE.replace(/,/g, "."),A.Hn("ytrexp",{ids:L},!0));L=A.provider.videoData;var B=A.provider.L.J("enable_white_noise")||A.provider.L.J("enable_webgl_noop"),f=g.lj(L)||g.WK(L)||g.vK(L)||g.qG(L);(B||f)&&(B=(0,g.Ei)())&&A.N.set("gpu",[B]);Bh(A.provider.videoData)&&g.TL(A,g.Ci(A.provider),"dt",["1"]);L.cotn&&!Bh(L)&&A.ZW(!0);A.provider.L.hw()&&(L=(0,g.bc)()-A.provider.L.Bk,A.Hn("playerage",{secs:Math.pow(1.6,Math.round(Math.log(L/1E3)/Math.log(1.6))).toFixed()}));A.U=!0;A.qp=g.Gc(function(){A.reportStats()},1E4)}; tgk=function(A,L,B){var f=g.Ci(A.provider);bmk(A,f,L,0,B);$k(A,f);Xg(A)}; bmk=function(A,L,B,f,K){var V=A.provider.L.N.cbrver;A.provider.L.N.cbr==="Chrome"&&/^96[.]/.test(V)&&B==="net.badstatus"&&/rc\.500/.test(K)&&cm(A,3);A.provider.L.J("html5_use_ump")&&/b248180278/.test(K)&&cm(A,4);V=A.provider.getCurrentTime();f=f===1?"fatal":"";B=[B,f,V.toFixed(3)];f&&(K+=";a6s."+fz());K&&B.push(kg8(K));g.TL(A,L,"error",B);A.U=!0}; Th1=function(A,L){var B=g.Ci(A.provider);if(!A.provider.L.experiments.GL("html5_refactor_sabr_video_format_selection_logging")||L.N.id!==A.Ex){var f=A.provider.L.Qf().N.Iv(dv);f&&!A.ZM&&L.reason!=="m"&&(L.reason="i");var K=[L.N.id,L.W,A.Ex,L.reason];f&&L.reason==="i"&&K.push(M8(A,L));L.token&&K.push(L.token);g.TL(A,B,"vfs",K);A.Ex=L.N.id;f=A.provider.Np.getPlayerSize();f.width>0&&f.height>0&&(f=[Math.round(f.width),Math.round(f.height)],K=g.J$(),K>1&&f.push(K),g.TL(A,B,"view",f));A.ZM||(A.provider.L.hw()&& Oi(A,"rqs2"),A.provider.videoData.N&&WZ(A.provider.videoData.N)&&A.N.set("preload",["1"]));A.ZM=!0;A.U=!0}L.reason==="m"&&++A.m1===100&&cm(A,2);g.TL(A,B,"vps",[A.xb]);A.Vj||A.reportStats(B)}; lI8=function(A){A.V>=0||(A.provider.L.Po||A.provider.Np.getVisibilityState()!==3?A.V=g.Ci(A.provider):A.sx=!0)}; QhD=function(A,L,B){var f=A.provider.L,K=f.Qf(),V=[];f.experiments.GL("html5_refactor_sabr_audio_format_selection_logging")?(L=B.N,f=[L.audio&&L.video?L.GO?L.GO:"":L.id],L.ri&&L.ri.id&&f.push(L.ri.id),L=f.join(";"),L!==A.T&&(f=[L,A.T,B.reason],V.push.apply(V,g.x7(mmE(B))),K.N.Iv(dv)&&B.reason==="i"&&V.push(M8(A,B)),V.length>0&&f.push(V.join(";")),B.token&&f.push(B.token),g.TL(A,g.Ci(A.provider),"afs",f),A.T=L)):B.N.id!==A.T&&(f=[B.N.id,A.T,B.reason],V.push.apply(V,g.x7(mmE(B))),K.N.Iv(dv)&&B.reason=== "i"&&V.push(M8(A,B)),V.length>0&&f.push(V.join(";")),B.token&&f.push(B.token),g.TL(A,L,"afs",f),A.T=B.N.id)}; M8=function(A,L){A=A.provider.videoData;g.Jj(A)?L=4:A.bA?L=3:(L=L.N.NF()?A.G3:A.oz,L=L!=null?L:0);A="sms."+L;if(L===3||L===4)A+="_1";return A}; mmE=function(A){var L=[];if(A=A.N.audio){var B=A==null?void 0:A.U;B!==void 0&&L.push("fl."+B);A=A==null?void 0:A.V;A!==void 0&&(A=Math.min(-A,0),L.push("vg."+A),L.push("nm.4"))}return L}; Oi=function(A,L){mB(A,"cat",L)}; Yk=function(A,L,B,f,K){var V=g.Ci(A.provider);L!==1&&L!==3&&L!==5||g.TL(A,V,"vps",[A.xb]);mB(A,"xvt","t."+V.toFixed(3)+";m."+K.toFixed(3)+";g.2;tt."+L+";np.0;c."+B+";d."+f)}; cm=function(A,L){A.Ox||(mB(A,"fcnz",""+L),A.Ox=!0)}; kg8=function(A){/[^a-zA-Z0-9;.!_-]/.test(A)&&(A=A.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return A}; Wm=function(A,L,B,f,K,V,J,R,Z,N){R=R===void 0?!1:R;g.Y.call(this);var F=this;this.Np=A;this.schedule=L;this.policy=B;this.gT=f;this.Wn=Z;this.GZ=N;this.yh=this.AF=null;this.S4=this.Ys=this.JF=this.qp=0;this.Vb=this.K6=this.isSuspended=!1;this.cn="";this.LD={};this.mH=NaN;this.ql=this.Uv=this.ue=0;this.TV=null;this.jI=this.Ex=!1;this.DU=0;this.Ox=!1;this.wT=this.Nl=0;this.t$=null;this.tU=!1;this.G_=function(){return F.Np.G_()}; this.timing=new O3Q(this.GZ);this.yj=new e3(this.schedule,this.policy);this.KY=new g.aa(this.yG,0,this);this.zV=new g.aa(this.yG,this.policy.Pz,this);this.Rm=new g.aa(this.yG,1E3,this);this.TZ=new g.aa(this.yG,void 0,this);this.sx=new g.aa(function(){F.isSuspended||F.yG()},1E4,this); this.N8=new g.aa(this.Rur,250,this);this.X=this.currentTime=NaN;this.wq=new p5(5);this.ZM=this.timestampOffset=NaN;this.logger=new g.sI("dash");this.k6=Infinity;this.GV={pZx:function(){return F.Ty}, a_j:function(){return F.V}, getAudioTrack:function(){return F.audioTrack}, pqr:function(){return F.videoTrack}, Otp:function(){return F.Vj}, getManifest:function(){return F.gT}, zwF:function(){return F.W}, yG:function(){F.yG()}, cE:function(){F.qp=0;F.cE()}, p4F:function(d){return Ui(F,F.videoTrack,F.AF.W,d)}}; A=Z&&Z.Wq();Z&&(mP7(Z,this.gT,this.policy),this.ZM=Date.now());this.N=new jj(this,this.yj,B,this.gT,K,A);B=Vx8(this.N,V,J&&J.id);this.audioTrack=new xU(this,this.policy,B.audio,this.timing);this.videoTrack=new xU(this,this.policy,B.video,this.timing);this.videoTrack.V.Vj=this.audioTrack.sF();this.Cr={updateend:this.hD,error:this.PCs};g.W(this,this.KY);g.W(this,this.zV);g.W(this,this.Rm);g.W(this,this.TZ);g.W(this,this.sx);B=this.policy.U3&&this.policy.In?!RiE(this.videoTrack.b1.info):!1;this.Pz=giw({D5:this.policy.G.D5|| B,In:this.policy.In&&!B,h8:this.policy.h8});this.G=PjE(this,this.policy,this.Pz,this.schedule,this.wq,function(d,w){return Cz6(F,d,w)}); this.V=new Bj(this,this.gT,this.policy,this.videoTrack,this.audioTrack,R);if(this.policy.T){R=this.Np.getVideoData();var D;this.Hn("clsdai",{initld:1,admapsz:(D=R.g$)==null?void 0:D.size});R.g$||(R.g$=new Map);this.Vj=new n6k(this.policy.T,function(d,w){F.Hn(d,w)},this.policy.Lf,R.g$)}this.Ty=new BO(this,this.gT,this.videoTrack,this.audioTrack,this.policy); D=this.policy.ke?this.Np.getVideoData().Sg:null;this.T=new gv(this,this.policy,this.videoTrack,this.audioTrack,this.LD,this.V,this.timing,this.yj,this.schedule,this.gT,this.N,this.G,B,D);g.W(this,this.T);this.U=new Q1(this,this.policy,this.videoTrack,this.audioTrack,this.gT,K,y7(this.Np.getVideoData()),J==null?void 0:J.id);g.W(this,this.U);CSe(this.U,V);this.W=new RS(this.Np,this,this.policy,this.audioTrack,this.videoTrack,this.gT,this.schedule,this.N,this.U,this.timing,this.V,this.Vj);g.W(this,this.W); this.D=this.Np.gf.Pq.Ni;this.policy.D||imy(this);if(this.policy.o4){var I;this.nD=new jn(this.videoTrack.b1.index,(I=this.Np.getVideoData().clientPlaybackNonce)!=null?I:"",this.Np)}}; $mS=function(A){A.policy.T&&A.D&&(A.D.C6.forEach(function(L){A.TW(L,-1)}),A.D.C6=[])}; imy=function(A){var L,B;if((L=A.D)==null?0:(B=L.ZO)==null?0:B.itagDenylist){var f;A.mQ((f=A.D)==null?void 0:f.ZO.itagDenylist)}var K;if((K=A.D)==null?0:K.playbackStartPolicy){var V,J;p6(A.policy,(V=A.D)==null?void 0:V.playbackStartPolicy,3,(J=A.D)==null?void 0:J.zb())}if(A.policy.jH){L=A.TP();var R;(B=L?(R=A.D)==null?void 0:R.iJ.get(L):void 0)&&A.W.xE(B,-1)}if(!A.gT.Wn){var Z;R=(Z=A.D)==null?void 0:Z.Kp;(R==null?0:R.YU)&&(R==null?0:R.xj)&&A.gT.iC&&ap(A.gT,R.YU,R.xj)}var N;((N=A.D)==null?0:N.FJ)&& (Z=A.D.FJ.get(A.TP()||""))&&A.gT&&Z.formatId&&(A=A.gT.V.get(nq(Z.formatId)))&&(A.info.debugInfo=Z.debugInfo)}; vm=function(A,L){var B=un(L.b1,A.gT.iC),f,K=((f=A.Wn)==null?void 0:f.PA(B))||[];if(K.length===0)return A.Hn("ombmsi",{}),!1;f=new ZY(K);if((!A.policy.Vj||isFinite(A.getCurrentTime())||A.Np.kA())&&!Yb7(f,A.getCurrentTime()))return A.Hn("ostmf",{ct:A.getCurrentTime(),a:L.b1.info.NF()}),!1;(A=A.Wn)!=null&&(A.EE.get(B).PC=!0);return!0}; Xhv=function(A){if(!A.gT.iC)return!0;var L=A.Np.getVideoData();if(A.Np.Hu())return A.Hn("ombpa",{}),!1;var B,f;if(!!((B=A.D)==null?0:(f=B.Kp)==null?0:f.S64)!==A.gT.SD)return A.Hn("ombplmm",{}),!1;B=L.Ex||L.liveUtcStartSeconds||L.NT;if(A.gT.SD&&B)return A.Hn("ombplst",{}),!1;if(A.gT.Wn)return A.Hn("ombab",{}),!1;B=Date.now();return A7(A.gT)&&!isNaN(A.ZM)&&B-A.ZM>A.policy.t0*1E3?(A.Hn("ombttl",{}),!1):A.gT.F3&&A.gT.U||Tp(L)!==0&&!A.policy.N||L.J("html5_disable_onesie_media_for_mosaic")&&oh(L)||L.J("html5_disable_onesie_media_for_lifa_eligible")&& Lm(L)?!1:!0}; Om7=function(A,L){var B=L.b1,f=A.gT.iC;if(Xhv(A))if(A.Wn&&A.Wn.EE.has(un(B,f))){if(f=un(B,f),vm(A,L)){var K=new ZY(A.Wn.PA(f)),V=function(J){try{if(J.LQ())A.handleError(J.p8(),J.tj()),S2(L,J),FV(J.info)&&h6(A.T,L,B,!0),A.yG();else if(t6(A.T,J)){var R;(R=A.V)==null||v6v(R,J.info,A.TV);A.yG()}}catch(Z){J=JT(Z),A.handleError(J.errorCode,J.details,J.severity),A.KV()}}; B.V=!0;NP(K)&&(zE(L,new fT(A.policy,f,K,A.Wn,V)),oN(A.timing))}}else A.Hn("ombfmt",{})}; En7=function(A,L){L=L||A.videoTrack&&A.videoTrack.N&&A.videoTrack.N.startTime||A.getCurrentTime();var B=A.videoTrack,f=A.N;L=f.nextVideo&&f.nextVideo.index.NV(L)||0;f.ZM!==L&&(f.JF={},f.ZM=L,gP(f,f.N));L=!f.N.isLocked()&&f.yj>-1&&(0,g.bc)()-f.yjB&&(A.Hn("sdai",{seg:f,rbt:B.toFixed(3),end:A.W.S4.toFixed(3),sd:K.toFixed(3)}),A.BL(!1,"rollback")):A.policy.W&&A.BL(!1,"rollback");if(A.gT.isManifestless){K=V1(A.audioTrack,f,B,L);var V=V1(A.videoTrack,f,B,L);A.policy.m1||(V&&u7(A.gT,f,!0),K&&u7(A.gT,f,!1));V&&(A.videoTrack.yj=[]);K&&(A.audioTrack.yj=[]);A.Hn("sdai",{rollbk2_seg:f,rbt:B.toFixed(3),lt:L.toFixed(3),a:K,v:V});(K||V)&&A.policy.W&&IS(A)}}; MgQ=function(A,L){if(!isNaN(A.mH)){var B=Date.now()-A.mH;B<1E4&&A.Hn("bfaswtch",{ep:B,sk:L!==void 0?"1":"0",sr:L||""})}}; YUe=function(A){A.policy.LD=!1;try{A.cE()}catch(L){g.mL(L)}}; UmL=function(A,L){L=L===void 0?!1:L;A.AF&&A.AF.N&&A.AF.W&&(A.AF.N.P4(A.Cr,A),A.AF.W.P4(A.Cr,A));ej(A.audioTrack,null,L);ej(A.videoTrack,null,L);A.AF&&(A.AF.D=!1);A.AF=null}; WYk=function(A){A.AF&&A.AF.vV()&&A.yJ()}; qUL=function(A,L){L&&vnQ(A.Np,new F0(L.video,L.reason));A.N.Cr&&(L=Ne7(A.N,"a"),A.Np.bG(new F0(L.audio,L.reason)))}; IS=function(A){g.Az(A.KY)}; mZ=function(A){A.policy.Pz&&A.policy.h8&&Math.min(VKy(A.videoTrack),VKy(A.audioTrack))*1E3>A.policy.MZ?g.Az(A.zV):A.yG()}; Pzv=function(A){if(Zok(A.videoTrack))return"ssf";if(A.policy.sx&&Fn(A.videoTrack)&&Fn(A.audioTrack))return"updateEnd";if(RP(A.audioTrack)||RP(A.videoTrack)&&A.videoTrack.b1.info.Bn!=="f")return"";if(A.Ty.isSeeking()){var L=A.yj;var B=A.videoTrack;var f=A.audioTrack;if(L.policy.N){var K=L.policy.Sb;wv(L.policy)&&(K=LT(L,!1,Ai(L)));L=K;B=K6(f,!0)>=L&&K6(B,!0)>=L}else B.W.length||f.W.length?(K=B.b1.info.lC+f.b1.info.lC,K=10*(1-Ai(L)/K),L=Math.max(K,L.policy.Sb),B=K6(f,!0)>=L&&K6(B,!0)>=L):B=!0;if(!B)return"abr"; B=A.videoTrack;if(B.W.length>0&&B.V.W.length===1&&OMe(B.V).info.X360);if(!A.Vb||B)return"";B=A.policy.R_;wv(A.policy)&&(B=LT(A.yj,A.Vb,Ai(A.yj)));B=J$E(A.videoTrack,A.getCurrentTime(),B)||J$E(A.audioTrack,A.getCurrentTime(),B);return wv(A.policy)?B?"mbnm":"":(A.videoTrack.W.length>0||A.audioTrack.W.length>0|| Gm(A.T,A.videoTrack,A.audioTrack)||Gm(A.T,A.audioTrack,A.videoTrack))&&B?"nord":""}; ure=function(A,L,B){if(A.policy.sx&&Fn(L))return!1;if(B.pE())return!0;if(!B.Zn())return!1;var f=Db(L);if(!f||f.info.type===6)return!1;var K;if(A.policy.Kx||((K=A.V)==null?0:ece(K,L,f.info.XD)))A.S4=0;else return A.Ty.isSeeking()&&IS(A),A.S4=A.S4||(0,g.bc)(),!1;if(!Ui(A,L,B,f.info))return!1;if(A.gT.W&&f.info.N===0){if(B.Ib()==null){K=n5(L);var V;if(!(V=!K||K.b1!==f.info.b1)){b:if(K=K.G,V=f.info.G,K.length!==V.length)K=!1;else{for(var J=0;JV)return A.policy.N&&(L===A.videoTrack?A.Ys=A.Ys||(0,g.bc)():A.JF=A.JF||(0,g.bc)()),A.policy.OC&&Hqk(L.V,V,!1),!1;L===A.videoTrack?A.Ys=0:A.JF=0;var R;A.policy.jD&&B===((R=A.AF)==null?void 0:R.N)&&A.Ox&&(B.Ob()===0?(A.Ox=!1,A.policy.jD=!1):A.Nl=B.Ob());a:{R=A.policy.KY?(0,g.bc)():0;J=f.D&&f.info.b1.N||void 0;V=f.W;f.D&&(V=eIw(A,f,V)||V);var Z=pz(V);V=A.policy.KY?(0,g.bc)():0;B=nnS(A,B,Z,f.info,J);(J=L.G)!=null&&(Z=f.info,R=V-R,V=(0,g.bc)()-V,!J.W||lTe(J.W, Z)&&J.W.XD===Z.XD||J.flush(),J.U+=R,J.V+=V,R=1,!J.W&&Z.N&&(R=2),TE(J,R,B),V=Math.ceil(Z.N/1024),R===2&&J.N.add(V),J.N.add(Math.ceil((Z.N+Z.W)/1024)-V),J.W=Z);A.wT=0;if(B===0)A.Ex&&(A.Ex=!1,A.jI=!1),A.ql=0,B=!0;else{if(B===2||B===5)zIC(A,"checked",B,f.info);else{if(B===1){if(!A.Ex){A.Ex=!0;B=!1;break a}if(!A.jI){A.jI=!0;A.Np.seekTo(A.getCurrentTime(),{zZ:"quotaExceeded",OU:!0});B=!1;break a}f.info.WV()?(R=A.policy,R.Ex=Math.floor(R.Ex*.8),R.wT=Math.floor(R.wT*.8)):(R=A.policy,R.Nl=Math.floor(R.Nl* .8),R.wT=Math.floor(R.wT*.8));A.policy.N?dP(A.U.N,f.info.b1,!1):sL(A.N,f.info.b1)}A.Np.J8({reattachOnAppend:B})}B=!1}}if(!B)return!1;A.policy.sx&&f.info.Ad()?(A.Np.K().hw()&&A.Hn("eosl",{ls:f.info.Dx()}),f.isLocked=!0):(L.Bg(f),ZMe(A.N,f.info));K&&(L=f.info.b1.zd)&&A.Np.kD(new OL(L.key,L.type));return!0}; eIw=function(A,L,B){var f;if(f=A.policy.x$&&A.AF&&!A.AF.G&&!A.Np.Nm())L=L.info.b1.info,f=L.qU()&&iQ(L)&&L.video&&L.video.width<3840&&L.video.width>L.video.height;if(f&&(A.AF.G=!0,Nb('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return B=$M8(B),A.policy.V&&A.Hn("sp4k",{s:!!B}),B}; zIC=function(A,L,B,f){var K="fmt.unplayable",V=1;B===5||B===3?(K="fmt.unparseable",A.policy.N?!f.b1.info.video||IN(A.U.N).size>0||dP(A.U.N,f.b1,!1):!f.b1.info.video||IN(A.N.D).size>0||sL(A.N,f.b1)):B===2&&(A.ql<15?(A.ql++,K="html5.invalidstate",V=0):K="fmt.unplayable");f=Sl(f);var J;f.mrs=(J=A.AF)==null?void 0:Ik(J);f.origin=L;f.reason=B;f.trg="appenderr";A.handleError(K,f,V)}; u5w=function(A,L,B,f,K){var V=A.gT;var J=A.policy.N,R=!1,Z=-1,N;for(N in V.N){var F=xa(V.N[N].info.mimeType)||V.N[N].info.WV();if(f===F)if(F=V.N[N].index,F.NE(L.XD)){R=F;var D=L,I=R.vA(D.XD);I&&I.startTime!==D.startTime?(R.segments=[],R.MB(D),R=!0):R=!1;R?Z=L.XD:!L.pending&&J&&(D=F.getDuration(L.XD),D!==L.duration&&(V.publish("clienttemp","mfldurUpdate",{itag:V.N[N].info.itag,seg:L.XD,od:D,nd:L.duration},!1),F.MB(L),R=!0))}else F.MB(L),R=!0}Z>=0&&(J={},V.publish("clienttemp","resetMflIndex",(J[f? "v":"a"]=Z,J),!1));V=R;k56(A.Ty,L,f,V);A.policy.g0||A.V.ww(L,B,f,K);L.XD===A.gT.F3&&V&&el(A.gT)&&L.startTime>el(A.gT)&&(A.gT.SO=L.startTime+(isNaN(A.timestampOffset)?0:A.timestampOffset),A.Ty.isSeeking()&&A.Ty.targetTime 5)return A.wT=0,A.Np.J8({initSegStuck:1,as:f.info.Dx()}),!0}else A.wT=0,A.t$=f;A.policy.dF&&(B.abort(),(J=L.G)!=null&&(TE(J,4),J.flush()));K=nnS(A,B,V,Z,K);(L=L.G)!=null&&(L.flush(),L.W=Z,TE(L,3,K));if(K!==0)return A.policy.Ze&&pr(A.Np.getVideoData())?(A.Np.OS()||zIC(A,"sepInit",K,f.info),aI6(A.Np,"sie")):zIC(A,"sepInit",K,f.info),!0;f.info.WV()?(Z=A.timing,Z.JF||(Z.JF=(0,g.bc)(),g.i1("vis_a",Z.JF,Z.N))):(Z=A.timing,Z.X||(Z.X=(0,g.bc)(),g.i1("ais_a",Z.X,Z.N)));(f=f.info.b1.zd)&&A.Np.kD(new OL(f.key, f.type));return B.Nz()}; nnS=function(A,L,B,f,K){try{var V,J=L===((V=A.AF)==null?void 0:V.N)?A.audioTrack:A.videoTrack;if(A.policy.sx&&(f==null?0:f.Ad())){if((f==null?void 0:f.yj)>1)return 6;J.wT=new g.aa(function(){var R=Db(J);A.TL()||R==null||!R.isLocked?A.Np.K().hw()&&A.Hn("eosl",{delayA:R==null?void 0:R.info.Dx()}):AYL(J)?(A.Np.K().hw()&&A.Hn("eosl",{dunlock:R==null?void 0:R.info.Dx()}),LfL(A,J===A.audioTrack)):(A.Hn("nue",{ls:R.info.Dx()}),R.info.yj+=1,A.AF&&A.cE())},1E4,A); A.Np.K().hw()&&A.Hn("eosl",{delayS:f.Dx()});J.wT.start()}A.policy.Ip&&(f==null?void 0:f.b1)instanceof dR&&f.Ad()&&A.Hn("poseos",{itag:f.b1.info.itag,seg:f.XD,lseg:f.b1.index.uq(),es:f.b1.index.V});L.appendBuffer(B,f,K)}catch(R){if(R instanceof DOMException){if(R.code===11)return 2;if(R.code===12)return 5;if(R.code===22||R.message.indexOf("Not enough storage")===0)return L=Object.assign({name:"QuotaExceededError",buffered:zv(L.Hk()).replace(/,/g,"_"),vheap:Bl(A.videoTrack),aheap:Bl(A.audioTrack),message:g.Uz(R.message, 3),track:A.AF?L===A.AF.W?"v":"a":"u"},uZ8()),A.handleError("player.exception",L),1;g.mL(R)}return 4}return A.AF.vV()?3:0}; FT=function(A,L,B){MgQ(A,B.zZ||"unknown");A.Np.seekTo(L,B)}; Sb=function(A,L){if(A.Ex&&!A.Vb)return 3;if(A.isSuspended)return 1;var B;if((B=A.AF)==null?0:B.AF&&B.AF.streaming===!1)return 4;B=(L.b1.info.audio?A.policy.Nl:A.policy.Ex)/(L.lC*A.policy.gg);if(A.policy.MI>0&&A.AF&&Fi(A.AF)&&(L=L.b1.info.video?A.AF.W:A.AF.N)&&!L.Nz()){L=L.Hk();var f=uQ(L,A.getCurrentTime());f>=0&&(L=A.getCurrentTime()-L.start(f),B+=Math.max(0,Math.min(L-A.policy.MI,A.policy.GI)))}A.policy.wT>0&&(B=Math.min(B,A.policy.wT));return B}; o5D=function(A,L){return(Sb(A,L)+A.policy.iP)*L.lC}; fqD=function(A){A.cn&&!A.isSuspended&&sh(A.schedule)&&(BCS(A,A.cn),A.cn="")}; BCS=function(A,L){x5(L,"cms",function(B){A.policy.V&&A.Hn("pathprobe",B)},function(B){A.Np.handleError(B)})}; KfQ=function(A,L){A.TV=L;A.V&&(A.V.TV=L);L=A.TV;var B=A.videoTrack.b1.info.qU();L.Pz=B;L.Xr({swebm:B});A.T.TV=A.TV;A.policy.W&&(A.W.TV=A.TV,$mS(A))}; JY8=function(A,L){if(A.AF&&A.AF.W){if(A.policy.IT){var B=F$L(A.audioTrack);if(B&&B.NF()){var f=A.Np;if(f.N$&&(f.N$.N=B,B=f.CY,B.qoe)){B=B.qoe;f=f.N$;var K=g.Ci(B.provider);QhD(B,K,f)}}}A.policy.kI&&(B=F$L(A.videoTrack))&&B.WV()&&(f=A.Np,f.Jv&&(f.Jv.N=B,B=f.CY,B.qoe&&Th1(B.qoe,f.Jv)));L-=isNaN(A.timestampOffset)?0:A.timestampOffset;A.getCurrentTime()!==L&&A.resume();A.Ty.isSeeking()&&A.AF&&!A.AF.vV()&&(f=A.getCurrentTime()<=L&&L=L&&Cz6(A,f.startTime,!1)}); return B&&B.startTimeA.getCurrentTime())return B.start/1E3;return Infinity}; kpC=function(A){if(A.Np.getVideoData().isLivePlayback)return!1;var L=A.Np.pD();if(!L)return!1;L=L.getDuration();if(A.AF&&A.AF.N&&A.AF.W){var B=A.getCurrentTime(),f=A.AF.N.Hk();A=A.AF.W.Hk();f=f?AA(f,B):B;B=A?AA(A,B):B;B=Math.min(f,B);L=isNaN(B)?!1:B>=L-.01}else L=!1;return L}; kq=function(A){return A.ue0){var f=B.N.shift();d5D(B,f.info)}B.N.length>0&&(f=B.N[0].time-(0,g.bc)(),B.W.start(Math.max(0,f)))}},0); g.W(this,this.W);L.subscribe("widevine_set_need_key_info",this.U,this)}; d5D=function(A,L){a:{var B=L.cryptoPeriodIndex;if(isNaN(B)&&A.V.size>0)B=!0;else{for(var f=g.m(A.V.values()),K=f.next();!K.done;K=f.next())if(K.value.cryptoPeriodIndex===B){B=!0;break a}B=!1}}A.publish("log_qoe",{wvagt:"reqnews",canskip:B});B||A.publish("rotated_need_key_info_ready",L)}; Iqe=function(){var A={};var L=A.url;var B=A.interval;A=A.retries;this.url=L;this.interval=B;this.retries=A}; woy=function(A,L){this.statusCode=A;this.message=L;this.V=this.heartbeatParams=this.errorMessage=null;this.W=[];this.N={};this.nextFairplayKeyId=null}; poC=function(A){switch(A){case "DRM_TRACK_TYPE_AUDIO":return 1;case "DRM_TRACK_TYPE_SD":return 2;case "DRM_TRACK_TYPE_HD":return 3;case "DRM_TRACK_TYPE_UHD1":return 4;case "DRM_TRACK_TYPE_UHD2":return 5;default:return 0}}; yYS=function(A,L,B,f){B=B===void 0?"":B;f=f===void 0?!1:f;g.Y.call(this);this.message=A;this.requestNumber=L;this.timer=B;this.W=f;this.onError=this.onSuccess=null;this.N=new g.v3(5E3,2E4,.2)}; jfD=function(A,L,B){A.onSuccess=L;A.onError=B}; GD8=function(A,L,B,f){var K={timeout:3E4,onSuccess:function(V){if(!A.TL()){mF("drm_net_r",void 0,A.timer);var J=A.W;J=J===void 0?!1:J;var R=V.status==="LICENSE_STATUS_OK"?0:9999,Z=null;if(V.license)try{Z=WX(V.license)}catch(r){g.mL(r)}if(R!==0||Z){Z=new woy(R,Z);R!==0&&V.reason&&(Z.errorMessage=V.reason);if(V.authorizedFormats){R={};for(var N=[],F={},D=g.m(V.authorizedFormats),I=D.next();!I.done;I=D.next())if(I=I.value,I.trackType&&I.keyId){J&&Z.W.push({trackType:poC(I.trackType),isHdr:!!I.isHdr}); var d=g5k[I.trackType];if(d){d==="HD"&&V.isHd720&&(d="HD720");I.isHdr&&(d+="HDR");R[d]||(N.push(d),R[d]=!0);var w=null;try{w=WX(I.keyId)}catch(r){g.mL(r)}w&&(F[g.Y$(w,4)]=d)}}Z.V=N;Z.N=F}V.nextFairplayKeyId&&(Z.nextFairplayKeyId=V.nextFairplayKeyId);V.sabrLicenseConstraint&&(Z.sabrLicenseConstraint=WX(V.sabrLicenseConstraint));V=Z}else V=null;if(V)A.onSuccess(V,A.requestNumber);else A.onError(A,"drm.net","t.p;p.i")}}, onError:function(V){if(!A.TL())if(V&&V.error)V=V.error,A.onError(A,"drm.net.badstatus","t.r;p.i;c."+V.code+";s."+V.status,V.code);else A.onError(A,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){A.onError(A,"drm.net","rt.req."+A.requestNumber)}}; f&&(K.U2="Bearer "+f);g.aI(B,"player/get_drm_license",L,K)}; rYy=function(A,L,B,f){g.SN.call(this);this.videoData=A;this.L=L;this.G=B;this.sessionId=f;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.qp=this.Vj=!1;this.V=null;this.ZM=[];this.U=[];this.authorizedFormats=[];this.yj=[];this.X=!1;this.N={};this.status="";this.T=NaN;this.W=A.D;this.cryptoPeriodIndex=B.cryptoPeriodIndex;A={};Object.assign(A,this.L.N);A.cpn=this.videoData.clientPlaybackNonce;this.videoData.qp&&(A.vvt=this.videoData.qp,this.videoData.mdxEnvironment&&(A.mdx_environment= this.videoData.mdxEnvironment));this.L.ZM&&(A.authuser=this.L.ZM);this.L.pageId&&(A.pageid=this.L.pageId);isNaN(this.cryptoPeriodIndex)||(A.cpi=this.cryptoPeriodIndex.toString());var K=(K=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.fa()))?K[1]:"";K==="ATV"&&(A.cdt=K);this.D=A;this.D.session_id=f;this.Wn=!0;this.W.flavor==="widevine"&&(this.D.hdr="1");this.W.flavor==="playready"&&(L=Number(sR(L.experiments,"playready_first_play_expiration")),!isNaN(L)&&L>=0&&(this.D.mfpe=""+L),this.Wn=!1);L="";g.DA(this.W)? F5(this.W)?(f=B.W)&&(L="https://www.youtube.com/api/drm/fps?ek="+ngk(f)):(L=B.initData.subarray(4),L=new Uint16Array(L.buffer,L.byteOffset,L.byteLength/2),L=String.fromCharCode.apply(null,L).replace("skd://","https://")):L=this.W.W;this.baseUrl=L;this.fairplayKeyId=Ew(this.baseUrl,"ek")||"";if(L=Ew(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(L);this.ZM=B.qU?[g.Y$(B.initData,4)]:B.V;zL(this,{sessioninit:B.cryptoPeriodIndex});this.status="in"}; bhS=function(A,L){zL(A,{createkeysession:1});A.status="gr";mF("drm_gk_s",void 0,A.videoData.yj);A.url=sf7(A);try{A.V=L.createSession(A.G,function(B){zL(A,{m:B})})}catch(B){L="t.g"; B instanceof DOMException&&(L+=";c."+B.code);A.publish("licenseerror","drm.unavailable",1,L,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}A.V&&(HhD(A.V,function(B,f){h06(A,B,f)},function(B,f,K){if(!A.TL()){f=void 0; var V=1;g.DA(A.W)&&g.xi(A.L)&&A.L.J("html5_enable_safari_fairplay")&&K===1212433232&&(f="ERROR_HDCP",V=A.L.J("html5_safari_fairplay_ignore_hdcp")?0:V);A.error("drm.keyerror",V,B,f)}},function(){A.TL()||(zL(A,{onkyadd:1}),A.qp||(A.publish("sessionready"),A.qp=!0))},function(B){A.Cl(B)}),g.W(A,A.V))}; sf7=function(A){var L=A.baseUrl;fO7(L)||A.error("drm.net",2,"t.x");if(!Ew(L,"fexp")){var B=["23898307","23914062","23916106","23883098"].filter(function(K){return A.L.experiments.experiments[K]}); B.length>0&&(A.D.fexp=B.join())}B=g.m(Object.keys(A.D));for(var f=B.next();!f.done;f=B.next())f=f.value,L=I4v(L,f,A.D[f]);return L}; h06=function(A,L,B){if(!A.TL())if(L){zL(A,{onkmtyp:B});A.status="km";switch(B){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":t30(A,L);return;default:A.publish("ctmp","message_type",{t:B,l:L.byteLength})}A.Vj||(mF("drm_gk_f",void 0,A.videoData.yj),A.Vj=!0,A.publish("newsession",A));if(Rj(A.W)&&(L=kDC(L),!L))return;L=new yYS(L,++A.requestNumber,A.videoData.yj,A.L.J("html5_enable_vp9_fairplay"));jfD(L,function(f){TCy(A,f)},function(f,K,V){if(!A.TL()){var J= 0; f.N.W>=3&&(J=1,K="drm.net.retryexhausted");zL(A,{onlcsrqerr:K,info:V});A.error(K,J,V);A.shouldRetry(Vu(J),f)&&lqw(A,f)}}); g.W(A,L);m5e(A,L)}else A.error("drm.unavailable",1,"km.empty")}; t30=function(A,L){zL(A,{sdpvrq:1});A.T=Date.now();if(A.W.flavor!=="widevine")A.error("drm.provision",1,"e.flavor;f."+A.W.flavor+";l."+L.byteLength);else{var B={cpn:A.videoData.clientPlaybackNonce};Object.assign(B,A.L.N);B=g.ip("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",B);L={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,L)}), responseType:"arraybuffer"};g.il(B,L,3,500).then(SH(function(f){f=f.xhr;if(!A.TL()){f=new Uint8Array(f.response);var K=String.fromCharCode.apply(null,f);try{var V=JSON.parse(K)}catch(J){}V&&V.signedResponse?(A.publish("ctmp","drminfo",{provisioning:1}),V=(Date.now()-A.T)/1E3,A.T=NaN,A.publish("ctmp","provs",{et:V.toFixed(3)}),A.V&&A.V.update(f)):(V=V&&V.error&&V.error.message,f="e.parse",V&&(f+=";m."+V),A.error("drm.provision",1,f))}}),SH(function(f){A.TL()||A.error("drm.provision",1,"e."+f.errorCode+ ";c."+(f.xhr&&f.xhr.status))}))}}; u3=function(A){var L;if(L=A.Wn&&A.V!=null)A=A.V,L=!(!A.N||!A.N.keyStatuses);return L}; m5e=function(A,L){A.status="km";mF("drm_net_s",void 0,A.videoData.yj);var B=new g.uy(A.L.e6),f={context:g.Du(B.config_||g.FY())};f.drmSystem=QfS[A.W.flavor];f.videoId=A.videoData.videoId;f.cpn=A.videoData.clientPlaybackNonce;f.sessionId=A.sessionId;f.licenseRequest=g.Y$(L.message);f.drmParams=A.videoData.drmParams;isNaN(A.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=A.cryptoPeriodIndex);var K,V,J=!!((K=A.videoData.W)==null?0:(V=K.video)==null?0:V.isHdr());f.drmVideoFeature=J?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";A.L.experiments.Qf().N.Iv(Cbw)&&(f.context=g.dh(A.videoData));if(f.context&&f.context.client){if(K=A.L.N)f.context.client.deviceMake=K.cbrand,f.context.client.deviceModel=K.cmodel,f.context.client.browserName=K.cbr,f.context.client.browserVersion=K.cbrver,f.context.client.osName=K.cos,f.context.client.osVersion=K.cosver;A.L.experiments.Qf().N.Iv(Cbw)||(f.context.user=f.context.user||{},A.videoData.qp&&(f.context.user.credentialTransferTokens=[{token:A.videoData.qp,scope:"VIDEO"}]), A.videoData.Ox&&(f.context.user.kidsParent={oauthToken:A.videoData.Ox}));f.context.request=f.context.request||{};f.context.request.mdxEnvironment=A.videoData.mdxEnvironment||f.context.request.mdxEnvironment;g.DA(A.W)&&(f.fairplayKeyId=g.Y$(zF1(A.fairplayKeyId)));g.po(A.L,g.Aj(A.videoData)).then(function(R){GD8(L,f,B,R);A.status="rs"})}else A.error("drm.net",2,"t.r;ic.0")}; TCy=function(A,L){if(!A.TL())if(zL(A,{onlcsrsp:1}),A.status="rr",L.statusCode!==0)A.error("drm.auth",1,"t.f;c."+L.statusCode,L.errorMessage||void 0);else{mF("drm_kr_s",void 0,A.videoData.yj);if(L.heartbeatParams&&L.heartbeatParams.url&&A.videoData.J("outertube_streaming_data_always_use_staging_license_service")){var B=A.W.W.match(/(.*)youtube.com/g);B&&(L.heartbeatParams.url=B[0]+L.heartbeatParams.url)}L.heartbeatParams&&A.publish("newlicense",L.heartbeatParams);L.V&&(A.U=L.V,A.videoData.SM||A.publish("newlicense", new Iqe),A.videoData.SM=!0,A.X=K9(A.U,function(f){return f.includes("HDR")})); L.W&&(A.yj=L.W);L.N&&(A.L.J("html5_enable_vp9_fairplay")&&F5(A.W)?(B=g.Y$(zF1(A.fairplayKeyId),4),A.N[B]={type:L.N[B],status:"unknown"}):A.N=sc(L.N,function(f){return{type:f,status:"unknown"}})); NM(A.W)&&(L.message=huD(g.Y$(L.message)));A.V&&(zL(A,{updtks:1}),A.status="ku",A.V.update(L.message).then(function(){mF("drm_kr_f",void 0,A.videoData.yj);u3(A)||(zL(A,{ksApiUnsup:1}),A.publish("keystatuseschange",A))},function(f){f="msuf.req."+A.requestNumber+";msg."+g.Uz(f.message,3); A.error("drm.keyerror",1,f)})); g.DA(A.W)&&A.publish("fairplay_next_need_key_info",A.baseUrl,L.nextFairplayKeyId);A.L.J("html5_enable_vp9_fairplay")&&F5(A.W)&&A.publish("qualitychange",ih0(A.U));L.sabrLicenseConstraint&&A.publish("sabrlicenseconstraint",L.sabrLicenseConstraint)}}; lqw=function(A,L){var B=L.N.getValue();B=new g.aa(function(){m5e(A,L)},B); g.W(A,B);B.start();g.qO(L.N);zL(A,{rtyrq:1})}; $5y=function(A,L){for(var B=[],f=g.m(Object.keys(A.N)),K=f.next();!K.done;K=f.next())K=K.value,B.push(K+"_"+A.N[K].type+"_"+A.N[K].status);return B.join(L)}; Xo8=function(A){var L={};L[A.status]=u3(A)?$5y(A,"."):A.U.join(".");return L}; Ohy=function(A,L,B){var f={};f.isHdr=L.includes("HDR");switch(L.replace("HDR","").replace("720","")){case "AUDIO":f.trackType=1;break;case "SD":f.trackType=2;break;case "HD":f.trackType=3;break;case "UHD1":f.trackType=4;break;case "UHD2":f.trackType=5;break;default:f.trackType=0}!f.trackType||B[L]||u3(A)&&!aS(A,L)||(A.authorizedFormats.push(f),B[L]=!0)}; aS=function(A,L){for(var B in A.N)if(A.N[B].status==="usable"&&A.N[B].type===L)return!0;return!1}; E5E=function(A,L){for(var B in A.N)if(A.N[B].type===L)return A.N[B].status}; zL=function(A,L){var B=B===void 0?!1:B;f$(L);(B||A.L.hw())&&A.publish("ctmp","drmlog",L)}; cYC=function(A){var L=A[0];A[0]=A[3];A[3]=L;L=A[1];A[1]=A[2];A[2]=L;L=A[4];A[4]=A[5];A[5]=L;L=A[6];A[6]=A[7];A[7]=L}; ih0=function(A){return g.zK(A,"UHD2")||g.zK(A,"UHD2HDR")?"highres":g.zK(A,"UHD1")||g.zK(A,"UHD1HDR")?"hd2160":g.zK(A,"HD")||g.zK(A,"HDHDR")?"hd1080":g.zK(A,"HD720")||g.zK(A,"HD720HDR")?"hd720":"large"}; kDC=function(A){for(var L="",B=0;B'.charCodeAt(f);A=A.V.createSession("video/mp4",L,B);return new At(null,null,null,null,A)}; x5y=function(A,L){var B=A.T[L.sessionId];!B&&A.U&&(B=A.U,A.U=null,B.sessionId=L.sessionId,A.T[L.sessionId]=B);return B}; v5C=function(A,L){var B=A.subarray(4);B=new Uint16Array(B.buffer,B.byteOffset,B.byteLength/2);B=String.fromCharCode.apply(null,B).match(/ek=([0-9a-f]+)/)[1];for(var f="",K=0;K19.2999?(A=B.wV,B=B.Ub, B>=A&&(B=A*.75),L=(A-B)*.5,B=new en(L,A,A-L-B,this)):B=null;break a;case "widevine":B=new ni(L,this,A);break a;default:B=null}if(this.D=B)g.W(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.It,this),this.D.subscribe("log_qoe",this.Jd,this);Ij(this.L.experiments);this.Jd({cks:this.N.getInfo()})}; n5e=function(A){var L=Wfv(A.U,A.mediaElement);L?L.then(SH(function(){uhk(A)}),SH(function(B){if(!A.TL()){g.mL(B); var f="t.a";B instanceof DOMException&&(f+=";n."+B.name+";m."+B.message);A.publish("licenseerror","drm.unavailable",1,f,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(A.Jd({mdkrdy:1}),A.yj=!0); A.Wn&&(L=Wfv(A.Wn,A.mediaElement))}; Aiy=function(A,L,B){A.Ys=!0;B=new OL(L,B);A.L.J("html5_eme_loader_sync")&&(A.T.get(L)||A.T.set(L,B));aq7(A,B)}; aq7=function(A,L){if(!A.TL()){A.Jd({onInitData:1});if(A.L.J("html5_eme_loader_sync")&&A.videoData.V&&A.videoData.V.N){var B=A.X.get(L.initData);L=A.T.get(L.initData);if(!B||!L)return;L=B;B=L.initData;A.T.remove(B);A.X.remove(B)}A.Jd({initd:L.initData.length,ct:L.contentType});if(A.N.flavor==="widevine")if(A.wT&&!A.videoData.isLivePlayback)BY(A);else{if(!(A.L.J("vp9_drm_live")&&A.videoData.isLivePlayback&&L.qU)){A.wT=!0;B=L.cryptoPeriodIndex;var f=L.N;lAw(L);L.qU||(f&&L.N!==f?A.publish("ctmp","cpsmm", {emsg:f,pssh:L.N}):B&&L.cryptoPeriodIndex!==B&&A.publish("ctmp","cpimm",{emsg:B,pssh:L.cryptoPeriodIndex}));A.publish("widevine_set_need_key_info",L)}}else A.It(L)}}; uhk=function(A){if(!A.TL())if(A.L.J("html5_drm_set_server_cert")||F5(A.N)){var L=A.U.setServerCertificate();L?L.then(SH(function(B){A.L.hw()&&A.publish("ctmp","ssc",{success:B})}),SH(function(B){A.publish("ctmp","ssce",{n:B.name, m:B.message})})).then(SH(function(){L46(A)})):L46(A)}else L46(A)}; L46=function(A){A.TL()||(A.yj=!0,A.Jd({onmdkrdy:1}),BY(A))}; o2e=function(A){return A.N.flavor==="widevine"&&A.videoData.J("html5_drm_cpi_license_key")}; BY=function(A){if(A.Ys&&A.yj&&!A.ZM){for(;A.V.length;){var L=A.V[0],B=o2e(A)?mM1(L):g.Y$(L.initData);if(F5(A.N)&&!L.W)A.V.shift();else{if(A.W.get(B))if(A.N.flavor!=="fairplay"||F5(A.N)){A.V.shift();continue}else A.W.delete(B);lAw(L);break}}A.V.length&&A.createSession(A.V[0])}}; BM6=function(A){var L,B;g.c(function(f){if(f.N==1){var K;if(K=g.ng()){var V;K=!((V=A.U.W)==null||!V.getMetrics)}return K?g.X(f,A.U.getMetrics(),2):f.return()}L=f.W;if(!L)return f.return();FL(L)||(L=g.sX(L));B=/^[A-Za-z0-9_-]+={0,3}$/;B.test(L)||(L=g.Uz(L,void 0,!0));A.publish("ctmp","drm",{metrics:L});g.VK(f)})}; fR=function(){var A=DW8();return!(!A||A==="visible")}; K41=function(A){var L=fbD();L&&document.addEventListener(L,A,!1)}; Vbk=function(A){var L=fbD();L&&document.removeEventListener(L,A,!1)}; fbD=function(){if(document.visibilityState)var A="visibilitychange";else{if(!document[jw+"VisibilityState"])return"";A=jw+"visibilitychange"}return A}; SVS=function(A){Ji6=A}; ZTE=function(A){RVv=A}; NME=function(A){g.Y.call(this);var L=this;this.Np=A;this.Ld=0;this.T=this.W=this.D=!1;this.U=0;this.tF=this.Np.K();this.videoData=this.Np.getVideoData();this.V=g.Am(this.tF.experiments,"html5_delayed_retry_count");this.N=new g.aa(function(){L.Np.A1()},g.Am(this.tF.experiments,"html5_delayed_retry_delay_ms")); g.W(this,this.N)}; wO6=function(A,L,B){var f=A.videoData.W,K=A.videoData.U,V=A.tF.J("html5_disable_codec_fallback_for_drm")&&A.videoData.U6();pr(A.Np.getVideoData())&&A.tF.J("html5_gapless_fallback_on_qoe_restart")&&aI6(A.Np,"pe");if((L==="progressive.net.retryexhausted"||L==="fmt.unplayable"||L==="fmt.decode")&&!A.Np.IC.D&&f&&f.itag==="22")return A.Np.IC.D=!0,A.Ho("qoe.restart",{reason:"fmt.unplayable.22"}),A.Np.A8(),!0;var J=!1;if(A.videoData.isExternallyHostedPodcast){if(J=A.videoData.oP)B.mimeType=J.type,A.Hn("3pp", {url:J.url});B.ns="3pp";A.Np.O9(L,1,"VIDEO_UNAVAILABLE",f$((new g.K$(L,B,1)).details));return!0}var R=A.Ld+3E4<(0,g.bc)()||A.N.isActive();if(A.tF.J("html5_empty_src")&&A.videoData.isAd()&&L==="fmt.unplayable"&&/Empty src/.test(""+B.msg))return B.origin="emptysrc",A.Ho("auth",B),!0;R||F48(A.Np.WI())||(B.nonfg="paused",R=!0,A.Np.pauseVideo());(L==="fmt.decode"||L==="fmt.unplayable")&&(K==null?0:Ya(K))&&(pi6(A.tF.D,K.Bn),B.acfallexp=K.Bn,J=R=!0);!R&&A.V>0&&(A.N.start(),R=!0,B.delayed="1",--A.V);K=A.Np.loader; R||!((f==null?0:Mb(f))||(f==null?0:iQ(f)))||V||(pi6(A.tF.D,f.Bn),J=R=!0,B.cfallexp=f.Bn);if(!R)return DIS(A,B);V=!1;A.D?A.Ld=(0,g.bc)():V=A.D=!0;R=A.videoData;if(R.wT){R=R.wT.Lk();var Z=Date.now()/1E3+1800;R=R3E5&&L.Uv>=3:!L.schedule.Ys}return A.videoData.G?A.videoData.Cr<25:!A.videoData.Cr}; Ibw=function(A){if(!A.W){A.W=!0;var L=A.Np.getPlayerState();L=L.isPaused()||L.isSuspended();A.Np.aC();L&&!Bh(A.videoData)||A.Np.publish("signatureexpired")}}; pOC=function(A,L){if((A=A.Np.pD())&&(L.errorCode==="fmt.unplayable"||L.errorCode==="html5.invalidstate")){var B=A.p8();L.details.merr=B?B.toString():"0";L.details.mmsg=A.SE()}}; yiw=function(A){return A.errorCode==="net.badstatus"&&(A.severity===1||!!A.details.fmt_unav)}; j5C=function(A,L){return A.tF.J("html5_use_network_error_code_enums")&&L.details.rc===403||L.details.rc==="403"?(A=L.errorCode,A==="net.badstatus"||A==="manifest.net.retryexhausted"):!1}; GC7=function(A,L){if(!j5C(A,L)&&!A.W)return!1;L.details.sts="20424";if(dIL(A))return Vu(L.severity)&&(L=Object.assign({e:L.errorCode},L.details),L=new g.K$("qoe.restart",L)),A.Ho(L.errorCode,L.details),Ibw(A),!0;(0,g.bc)()-A.tF.Bk>6048E5&&g2e(A,"signature");return!1}; g2e=function(A,L){try{L={detail:"pr."+L},(V3(A.tF)||ge(A.tF)==="TVHTML5_FOR_KIDS")&&A.tF.J("html5_reload_by_kabuki_app")?A.Np.O9("qoe.restart",1,void 0,f$(L),"7"):(A.Ho("qoe.restart",L),window.location.reload())}catch(B){}}; ri8=function(A,L){var B=A.tF.D;B.T=!1;B.N=!0;A.Ho("qoe.restart",{e:L===void 0?"fmt.noneavailable":L,detail:"hdr"});A.Np.A1(!0)}; s5E=function(A,L,B,f,K,V){this.videoData=A;this.N=L;this.reason=B;this.W=f;this.token=K;this.videoId=V}; KR=function(A,L,B,f){this.L=A;this.z8=L;this.Np=B;this.Ml=f;this.G=this.T=this.N=this.U=this.X=this.W=0;this.D=!1;this.yj=g.Am(this.L.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.V=new Map}; HT6=function(A,L,B){!A.L.J("html5_tv_ignore_capable_constraint")&&g.wY(A.L)&&(B=B.compose(A.Ms(L)));return B}; hV0=function(A){if(A.Np.WI().isInline())return fr;A=cZ[h2()];return g.XX("auto",A,!1,"s")}; tb6=function(A,L){var B,f=bTD(A,(B=L.N)==null?void 0:B.videoInfos);B=A.Np.getPlaybackRate();return B>1&&f?(A=DKe(A.L.D,L.N.videoInfos,B),new $Q(0,A,!0,"o")):new $Q(0,0,!1,"o")}; bTD=function(A,L){return L&&g.wY(A.L)?L.some(function(B){return B.video.fps>32}):!1}; kCL=function(A,L){if(A.J("html5_disable_ustreamer_constraint_for_sabr")&&iS(L.videoData))return fr;var B=A.Np.gV();A.J("html5_use_video_quality_cap_for_ustreamer_constraint")&&B&&B.IL>0&&EO(L.videoData.zK)&&(A=B.IL,L.videoData.zK=new $Q(0,A,!1,"u"));return L.videoData.zK}; TM0=function(A,L){var B;a:if((B=L.N)&&B.videoInfos.length){for(var f=g.m(B.videoInfos),K=f.next();!K.done;K=f.next()){K=K.value;var V=void 0;if((V=K.W)==null?0:V.smooth){B=K.video.qualityOrdinal;break a}}B=B.videoInfos[0].video.qualityOrdinal}else B=0;(g.xz("armv7")||g.xz("aarch64")||g.xz("android"))&&!g.wY(A.L)&&iQ(L.N.videoInfos[0])&&(B=Math.min(B,g.ka.large));f=g.Am(A.L.experiments,"html5_chipset_soft_cap");f>0&&(B=Math.min(B,f));if(f=g.Am(A.L.experiments,"html5_max_vertical_resolution")){K=4320; for(V=0;Vf&&(K=Math.min(K,J.video.qualityOrdinal))}if(K<4320){for(J=V=0;J32){K=!0;break a}}K=!1}K&&(B=Math.min(B,f));(f=g.Am(A.L.experiments,"html5_live_quality_cap"))&&L.videoData.isLivePlayback&&(B=Math.min(B,f));B=lbv(A,L,B);A=g.Am(A.L.experiments,"html5_byterate_soft_cap");return new $Q(0,B===4320?0:B,!1,"d",A)}; Q5y=function(A){var L,B,f,K;return g.c(function(V){switch(V.N){case 1:return A.N.N&&typeof((L=navigator.mediaCapabilities)==null?void 0:L.decodingInfo)==="function"?g.X(V,Promise.resolve(),2):V.return(Promise.resolve());case 2:B=g.m(A.N.videoInfos),f=B.next();case 3:if(f.done){V.Ux(0);break}K=f.value;return g.X(V,Dfv(K),4);case 4:f=B.next(),V.Ux(3)}})}; $IQ=function(A,L,B,f){if(!L||!B||!L.videoData.W)return!1;var K=g.Am(A.L.experiments,"html5_df_downgrade_thresh"),V=A.J("html5_log_media_perf_info");if(!((0,g.bc)()-A.U<5E3?0:V||K>0))return!1;var J=((0,g.bc)()-A.U)/1E3;A.U=(0,g.bc)();B=B.getVideoPlaybackQuality();if(!B)return!1;var R=B.droppedVideoFrames-A.T,Z=B.totalVideoFrames-A.G;A.T=B.droppedVideoFrames;A.G=B.totalVideoFrames;var N=B.displayCompositedVideoFrames===0?0:B.displayCompositedVideoFrames||-1;V&&A.L.hw()&&A.Np.Hn("ddf",{dr:B.droppedVideoFrames, de:B.totalVideoFrames,comp:N});if(f)return A.N=0,!1;if((Z-R)/J>A.yj||!K||g.wY(A.L))return!1;A.N=(Z>60?R/Z:0)>K?A.N+1:0;if(A.N!==3)return!1;C$D(A,L.videoData.W);A.Np.Hn("dfd",Object.assign({dr:B.droppedVideoFrames,de:B.totalVideoFrames},iTL()));return!0}; C$D=function(A,L){var B=L.Bn,f=L.video.fps,K=L.video.qualityOrdinal-1,V=A.V;L=""+B+(f>49?"p60":f>32?"p48":"");B=fM(B,f,V);K>0&&(B=Math.min(B,K));if(!Vn.has(L)&&kQ().includes(L)){var J=B;B=t2();+B[L]>0&&(J=Math.min(+B[L],J));B[L]!==J&&(B[L]=J,g.OS("yt-player-performance-cap",B,2592E3))}else if(Vn.has(L)||V==null){a:{J=J===void 0?!0:J;f=kQ().slice();if(J){if(f.includes(L))break a;f.push(L)}else{if(!f.includes(L))break a;f.splice(f.indexOf(L),1)}g.OS("yt-player-performance-cap-active-set",f,2592E3)}BL.set(L, B)}else Vn.add(L),V==null||V.set(L,B);A.Np.EU()}; XO8=function(A,L){if(!L.N.N)return A.D?new $Q(0,360,!1,"b"):fr;for(var B=!1,f=!1,K=g.m(L.N.videoInfos),V=K.next();!V.done;V=K.next())Mb(V.value)?B=!0:f=!0;B=B&&f;f=0;K=g.Am(A.L.experiments,"html5_performance_cap_floor");K=A.L.W?240:K;L=g.m(L.N.videoInfos);for(V=L.next();!V.done;V=L.next()){var J=V.value;if(!B||!Mb(J))if(V=fM(J.Bn,J.video.fps,A.V),J=J.video.qualityOrdinal,Math.max(V,K)>=J){f=J;break}}return new $Q(0,f,!1,"b")}; OT8=function(A,L){var B=A.Np.WI();return B.isInline()&&!L.YS?new $Q(0,480,!1,"v"):iS(L)?fr:B.isBackground()&&rT()/1E3>60&&!g.wY(A.L)?new $Q(0,360,!1,"v"):fr}; E2E=function(A,L,B){if(A.L.experiments.GL("html5_disable_client_autonav_cap_for_onesie")&&L.fetchType==="onesie"||g.wY(A.L)&&(h2(-1)>=1080||L.osid))return fr;var f=g.Am(A.L.experiments,"html5_autonav_quality_cap"),K=g.Am(A.L.experiments,"html5_autonav_cap_idle_secs");return f&&L.isAutonav&&rT()/1E3>K?(B&&(f=lbv(A,B,f)),new $Q(0,f,!1,"e")):fr}; lbv=function(A,L,B){if(A.J("html5_optimality_defaults_chooses_next_higher")&&B)for(A=L.N.videoInfos,L=1;L=0||(A.provider.Np.getVisibilityState()===3?A.D=!0:(A.N=g.Ci(A.provider),A.delay.start()))}; YVv=function(A){if(!(A.W<0)){var L=g.Ci(A.provider),B=L-A.U;A.U=L;A.playerState.state===8?A.playTimeSecs+=B:A.playerState.isBuffering()&&!g.x(A.playerState,16)&&(A.rebufferTimeSecs+=B)}}; UI6=function(A){var L;switch((L=A.L.playerCanaryStage)==null?void 0:L.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";case "xlarge":return"HTML5_PLAYER_CANARY_STAGE_XLARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; W4E=function(A){var L=this;this.provider=A;this.G=!1;this.N=0;this.U=-1;this.gN=NaN;this.V=0;this.segments=[];this.X=this.T=0;this.previouslyEnded=!1;this.D=0;this.serializedPlaybackPingContextLoggingData=void 0;this.GV={EAr:function(){return L.serializedPlaybackPingContextLoggingData}}; this.Wn=this.provider.Np.getVolume();this.yj=this.provider.Np.isMuted()?1:0;this.W=Sv(this.provider)}; Rc=function(A){A.W.startTime=A.V;A.W.endTime=A.N;var L;if((L=A.serializedPlaybackPingContextLoggingData)==null?0:L.length)A.W.serializedPlaybackPingContextLoggingData=A.serializedPlaybackPingContextLoggingData;L=!1;A.segments.length&&g.vw(A.segments).isEmpty()?(A.segments[A.segments.length-1].previouslyEnded&&(A.W.previouslyEnded=!0),A.segments[A.segments.length-1]=A.W,L=!0):A.segments.length&&A.W.isEmpty()||(A.segments.push(A.W),L=!0);L?A.W.endTime===0&&(A.previouslyEnded=!1):A.W.previouslyEnded&& (A.previouslyEnded=!0);A.T+=A.N-A.V;A.W=Sv(A.provider);A.W.previouslyEnded=A.previouslyEnded;A.provider.L.Qf().N.Iv(v20)&&(A.D+=JSON.stringify(A.W).length);A.previouslyEnded=!1;A.V=A.N}; P$0=function(A){qV6(A);A.X=g.Gc(function(){A.update()},100); A.gN=g.Ci(A.provider);A.W=Sv(A.provider)}; qV6=function(A){g.sQ(A.X);A.X=NaN}; xI6=function(A,L,B){B-=A.gN;return L===A.N&&B>.5}; eVE=function(A,L,B,f){this.L=L;this.KY=B;this.segments=[];this.experimentIds=[];this.sx=this.zV=this.isFinal=this.delayThresholdMet=this.Uv=this.k6=this.autoplay=this.autonav=!1;this.t$="yt";this.T=[];this.X=this.yj=null;this.sendVisitorIdHeader=this.cn=!1;this.G=this.pageId="";this.nD=!1;this.D=B==="watchtime";this.V=B==="playback";this.ZM=B==="atr";this.Ry=B==="engage";this.sendVisitorIdHeader=!1;this.uri=this.ZM?"/api/stats/"+B:"//"+L.gg+"/api/stats/"+B;f&&(this.zV=f.fs,f.rtn&&(this.X=f.rtn),this.D? (this.playerState=f.state,f.rti>0&&(this.yj=f.rti)):(this.O_=f.mos,this.b2=f.volume,f.at&&(this.adType=f.at)),f.autonav&&(this.autonav=f.autonav),f.inview!=null&&(this.N8=f.inview),f.size&&(this.Pz=f.size),f.playerwidth&&(this.a8=f.playerwidth),f.playerheight&&(this.o4=f.playerheight));this.LD=g.is(L.N);this.G=sR(L.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.G==="all"||this.G==="once")this.jI=g.is(L.Uv);this.Po=L.O_;this.experimentIds=RE1(L.experiments);this.Cr=L.nD;this.t$=L.Wn;this.region= L.region;this.userAge=L.userAge;this.Nl=L.iW;this.GZ=rT();this.sendVisitorIdHeader=L.sendVisitorIdHeader;this.wT=L.J("vss_pings_using_networkless")||L.J("kevlar_woffle");this.Bk=L.J("vss_final_ping_send_and_write");this.JF=L.J("vss_use_send_and_write");this.pageId=L.pageId;this.Pk=L.J("vss_playback_use_send_and_write");L.livingRoomAppMode&&(this.livingRoomAppMode=L.livingRoomAppMode);g.MM(L)&&(this.Ys=L.wT);g.IX(g.nM(L))&&this.T.push(1);this.accessToken=g.Aj(A);A.Ly[this.KY]?this.U=A.Ly[this.KY]: A.Ly.playback&&(this.U=A.Ly.playback);this.adFormat=A.adFormat;this.adQueryId=A.adQueryId;this.autoplay=ly7(A);this.V&&(this.k6=A.Ll&&nr(A)==="adunit"?!0:!1);this.autonav=A.isAutonav||this.autonav;this.contentVideoId=uj(A);this.clientPlaybackNonce=A.clientPlaybackNonce;this.Uv=A.OE;A.T&&(this.qp=A.T,this.mH=A.Zl);A.mdxEnvironment&&(this.mdxEnvironment=A.mdxEnvironment);this.N=A.jI;this.qo=A.qo;A.W&&(this.WR=A.W.itag,A.U&&A.U.itag!==this.WR&&(this.ql=A.U.itag));A.N&&WZ(A.N)&&(this.offlineDownloadUserChoice= "1");this.eventLabel=nr(A);this.sx=A.Pz?!1:A.N8;this.m1=A.Ji;if(L=$T(A))this.mC=L;this.jD=A.Tf;this.partnerId=A.partnerId;this.eventId=A.eventId;this.playlistId=A.n2||A.playlistId;this.kc=A.kc;this.bY=A.bY;this.CQ=A.CQ;this.dY=A.dY;this.subscribed=A.subscribed;this.videoId=A.videoId;this.videoMetadata=A.videoMetadata;this.visitorData=A.visitorData;this.osid=A.osid;this.oB=A.oB;this.referrer=A.referrer;this.Sw=A.Ts||A.Sw;this.Ox=A.Xp;this.bK=A.bK;this.userGenderAge=A.userGenderAge;this.f2=A.f2;this.embedsRct= A.embedsRct;this.embedsRctn=A.embedsRctn;g.MM(this.L)&&A.mutedAutoplay&&(A.mutedAutoplayDurationMode===2&&A.limitedPlaybackDurationInSeconds===0&&A.endSeconds===0?this.T.push(7):this.T.push(2));A.isEmbedsShortsMode(new g.Sr(this.a8,this.o4),!!this.playlistId)&&this.T.push(3);g.Nm(A)&&this.T.push(4);this.Ex=A.hS;A.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=A.compositeLiveIngestionOffsetToken);A=A.getPlayerResponse();var K,V;this.nD=this.L.J("html5_switch_vss_to_post")|| !!(A==null?0:(K=A.playerConfig)==null?0:(V=K.vssClientConfig)==null?0:V.vssUsePostRequest)}; n2D=function(A,L){var B=A.sendVisitorIdHeader?A.visitorData:void 0;return g.po(A.L,A.accessToken).then(function(f){return Hm(A.uri,A.L,A.pageId,B,f,L)})}; abv=function(A,L){return function(){A.L.J("html5_simplify_pings")?(A.N=A.S4,A.TZ=L(),A.GZ=0,A.send()):n2D(A).then(function(B){var f=zVC(A);f.cmt=f.len;f.lact="0";var K=L().toFixed(3);f.rt=Number(K).toString();f=g.ip(A.uri,f);A.L.J("vss_through_gel_double")&&uT1(f);A.wT?(B==null&&(B={}),A.JF?n4().sendAndWrite(f,B):n4().sendThenWrite(f,B)):B?g.ll(f,B):g.MJ(f)})}}; zVC=function(A){var L={ns:A.t$,el:A.eventLabel,cpn:A.clientPlaybackNonce,ver:2,cmt:A.W(A.N),fmt:A.WR,fs:A.zV?"1":"0",rt:A.W(A.TZ),adformat:A.adFormat,content_v:A.contentVideoId,euri:A.Po,lact:A.GZ,live:A.mC,cl:(839483937).toString(),mos:A.O_,state:A.playerState,volume:A.b2};A.subscribed&&(L.subscribed="1");Object.assign(L,A.LD);A.G==="all"?Object.assign(L,A.jI):A.G==="once"&&A.V&&Object.assign(L,A.jI);A.autoplay&&(L.autoplay="1");A.k6&&(L.sautoplay="1");A.Uv&&(L.dni="1");!A.D&&A.Ys&&(L.epm=A4L[A.Ys]); A.isFinal&&(L["final"]="1");A.sx&&(L.splay="1");A.qo&&(L.delay=A.qo);A.Cr&&(L.hl=A.Cr);A.region&&(L.cr=A.region);A.userGenderAge&&(L.uga=A.userGenderAge);A.userAge!==void 0&&A.Nl&&(L.uga=A.Nl+A.userAge);A.S4!==void 0&&(L.len=A.W(A.S4));!A.D&&A.experimentIds.length>0&&(L.fexp=A.experimentIds.toString());A.X!==null&&(L.rtn=A.W(A.X));A.Sw&&(L.feature=A.Sw);A.bY&&(L.ctrl=A.bY);A.CQ&&(L.ytr=A.CQ);A.ql&&(L.afmt=A.ql);A.offlineDownloadUserChoice&&(L.ODUC=A.offlineDownloadUserChoice);A.Wn&&(L.lio=A.W(A.Wn)); A.D?(L.idpj=A.m1,L.ldpj=A.jD,A.delayThresholdMet&&(L.dtm="1"),A.yj!=null&&(L.rti=A.W(A.yj)),A.f2&&(L.ald=A.f2),A.compositeLiveIngestionOffsetToken&&(L.clio=A.compositeLiveIngestionOffsetToken)):A.adType!==void 0&&(L.at=A.adType);A.Pz&&(A.V||A.D)&&(L.size=A.Pz);A.V&&A.T.length&&(L.pbstyle=A.T.join(","));A.N8!=null&&(A.V||A.D)&&(L.inview=A.W(A.N8));A.D&&(L.volume=Z5(A,g.mn(A.segments,function(f){return f.volume})),L.st=Z5(A,g.mn(A.segments,function(f){return f.startTime})),L.et=Z5(A,g.mn(A.segments, function(f){return f.endTime})),K9(A.segments,function(f){return f.playbackRate!==1})&&(L.rate=Z5(A,g.mn(A.segments,function(f){return f.playbackRate}))),K9(A.segments,function(f){return f.N!=="-"})&&(L.als=g.mn(A.segments,function(f){return f.N}).join(",")),K9(A.segments,function(f){return f.previouslyEnded})&&(L.pe=g.mn(A.segments,function(f){return""+ +f.previouslyEnded}).join(","))); L.muted=Z5(A,g.mn(A.segments,function(f){return f.muted?1:0})); K9(A.segments,function(f){return f.visibilityState!==0})&&(L.vis=Z5(A,g.mn(A.segments,function(f){return f.visibilityState}))); K9(A.segments,function(f){return f.connectionType!==0})&&(L.conn=Z5(A,g.mn(A.segments,function(f){return f.connectionType}))); K9(A.segments,function(f){return f.W!==0})&&(L.blo=Z5(A,g.mn(A.segments,function(f){return f.W}))); K9(A.segments,function(f){return!!f.U})&&(L.blo=g.mn(A.segments,function(f){return f.U}).join(",")); K9(A.segments,function(f){return!!f.compositeLiveStatusToken})&&(L.cbs=g.mn(A.segments,function(f){return f.compositeLiveStatusToken}).join(",")); K9(A.segments,function(f){return!!f.heartbeatLoggingToken})&&(L.hb_data=g.mn(A.segments,function(f){return f.heartbeatLoggingToken}).join(",")); K9(A.segments,function(f){return f.V!=="-"})&&(L.cc=g.mn(A.segments,function(f){return f.V}).join(",")); K9(A.segments,function(f){return f.clipId!=="-"})&&(L.clipid=g.mn(A.segments,function(f){return f.clipId}).join(",")); if(K9(A.segments,function(f){return!!f.audioId})){var B="au"; A.V&&(B="au_d");L[B]=g.mn(A.segments,function(f){return f.audioId}).join(",")}Dp()&&A.qp&&(L.ctt=A.qp,L.cttype=A.mH,L.mdx_environment=A.mdxEnvironment); A.Ry&&(L.etype=A.Vj!==void 0?A.Vj:0);A.Ox&&(L.uoo=A.Ox);A.livingRoomAppMode&&A.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(L.clram=LxC[A.livingRoomAppMode]||A.livingRoomAppMode);A.U?oUe(A,L):(L.docid=A.videoId,L.referrer=A.referrer,L.ei=A.eventId,L.of=A.oB,L.osid=A.osid,L.vm=A.videoMetadata,A.adQueryId&&(L.aqi=A.adQueryId),A.autonav&&(L.autonav="1"),A.playlistId&&(L.list=A.playlistId),A.dY&&(L.ssrt="1"),A.bK&&(L.upt=A.bK));A.V&&(A.embedsRct&&(L.rct=A.embedsRct),A.embedsRctn&&(L.rctn= A.embedsRctn),A.compositeLiveIngestionOffsetToken&&(L.clio=A.compositeLiveIngestionOffsetToken));A.Ex&&(L.host_cpn=A.Ex);return L}; oUe=function(A,L){if(L&&A.U){var B=new Set(["q","feature","mos"]),f=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),K=new Set(["aqi","autonav","list","ssrt","upt"]);A.U.ns==="3pp"&&(L.ns="3pp");for(var V=g.m(Object.keys(A.U)),J=V.next();!J.done;J=V.next())J=J.value,f.has(J)||B.has(J)||K.has(J)&&!A.U[J]||(L[J]=A.U[J])}}; Z5=function(A,L){return g.mn(L,A.W).join(",")}; uT1=function(A){A.indexOf("watchtime")!==-1&&g.pE("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:A}})}; BPv=function(A,L){A.attestationResponse&&n2D(A).then(function(B){B=B||{};B.method="POST";B.postParams={atr:A.attestationResponse};A.wT?A.JF?n4().sendAndWrite(L,B):n4().sendThenWrite(L,B):g.ll(L,B)})}; fU8=function(A){var L={vssSegmentMetadata:[]};if(K9(A.segments,function(f){return!!f.serializedPlaybackPingContextLoggingData})){A=g.m(A.segments); for(var B=A.next();!B.done;B=A.next())L.vssSegmentMetadata.push({serializedPlaybackPingContextLoggingData:B.value.serializedPlaybackPingContextLoggingData||[""]});return L}}; N9=function(A){g.Y.call(this);var L=this;this.provider=A;this.T="paused";this.D=NaN;this.G=[10,10,10,40];this.yj=this.X=0;this.qp=this.ZM=this.Vj=this.Wn=this.V=!1;this.W=this.U=NaN;this.logger=new g.sI("vss");this.GV={Sr4:function(){return L.N}}; this.N=new W4E(A)}; KxE=function(A){var L=A.provider.videoData.Ji,B=A.provider.videoData.Tf,f=[10+L,10,10,40+B-L,40],K,V=(K=A.provider.videoData.getPlayerResponse())==null?void 0:K.playbackTracking,J=V==null?void 0:V.videostatsScheduledFlushWalltimeSeconds;K=V==null?void 0:V.videostatsDefaultFlushIntervalSeconds;if(!(J&&J.length>0&&K))return f;L=[J[0]+L].concat(g.x7(J.slice(1).map(function(R,Z){return R-J[Z]})),[K+B-L, K]);return L.some(function(R){return R<0})?(g.Hp(A.logger,347111855,"Neg vss scheduled pings "+J+" "+K),f):L}; D5=function(A,L){L=L===void 0?NaN:L;var B=g.Ci(A.provider);L=isNaN(L)?B:L;L=Math.ceil(L);var f=A.G[A.X];A.X+11E3;!(V.length>1)&&V[0].isEmpty()||R||(J.X=D5(A,K));J.send();A.yj++}},(K-B)*1E3); return A.U=K}; dw=function(A){g.rW(A.D);A.D=NaN}; Fz=function(A){A.N.update();A=A.N;A.segments.length&&A.N===A.V||Rc(A);var L=A.segments;A.segments=[];A.D=0;return L}; Ic=function(A,L){var B=J4y(A.provider);Object.assign(B,{state:A.T});L=new eVE(A.provider.videoData,A.provider.L,L,B);L.N=A.provider.Np.Fb();B=A.provider.videoData.clientPlaybackNonce;L.N=A.provider.Np.Yi(B);A.provider.videoData.isLivePlayback||(L.S4=A.provider.Np.getDuration(B));A.provider.videoData.N&&(B=A.provider.videoData.N.wX(L.N))&&(L.Wn=B-L.N,gp(A.provider.videoData)&&(L.N+=A.provider.Np.pY(),L.Wn-=A.provider.Np.pY()));L.TZ=g.Ci(A.provider);L.segments=[Sv(A.provider)];return L}; Vjw=function(A,L){var B=Ic(A,"watchtime");SLe(A)&&(B.delayThresholdMet=!0,A.Vj=!0);if(A.W>0){for(var f=g.m(L),K=f.next();!K.done;K=f.next())K=K.value,K.startTime-=A.W,K.endTime-=A.W;B.N-=A.W}else B.N=A.N.N;B.segments=L;return B}; ww=function(A,L){var B=RJ0(A,!isNaN(A.U));L&&(A.U=NaN);return B}; RJ0=function(A,L){var B=Vjw(A,Fz(A));!isNaN(A.U)&&L&&(B.yj=A.U);return B}; SLe=function(A){var L;if(L=A.provider.videoData.isLoaded()&&A.provider.videoData.qo&&A.V&&!A.Vj)L=A.N,L=L.T+L.Fb()-L.V>=A.provider.videoData.qo;return!!L}; NP7=function(A){A.provider.videoData.youtubeRemarketingUrl&&!A.ZM&&(Z50(A,A.provider.videoData.youtubeRemarketingUrl),A.ZM=!0)}; FxS=function(A){A.provider.videoData.googleRemarketingUrl&&!A.qp&&(Z50(A,A.provider.videoData.googleRemarketingUrl),A.qp=!0)}; DL8=function(A){if(!A.TL()&&A.V){A.T="paused";var L=ww(A);L.isFinal=!0;L.send();A.dispose()}}; dL1=function(A,L){if(!A.TL())if(g.x(L.state,2)||g.x(L.state,512)){if(A.T="paused",g.wk(L,2)||g.wk(L,512))g.wk(L,2)&&(A.N.previouslyEnded=!0),A.V&&(dw(A),ww(A).send(),A.U=NaN)}else if(g.x(L.state,8)){A.T="playing";var B=A.V&&isNaN(A.D)?D5(A):NaN;if(!isNaN(B)&&(IA(L,64)<0||IA(L,512)<0)){var f=RJ0(A,!1);f.X=B;f.send()}g.wk(L,16)&&L.state.seekSource===58&&(A.N.previouslyEnded=!0)}else A.T="paused"}; IUD=function(A,L,B){if(!A.Wn){B||(B=Ic(A,"atr"));B.attestationResponse=L;try{B.send()}catch(f){if(f.message!=="Unknown Error")throw f;}A.Wn=!0}}; Z50=function(A,L){var B=A.provider.L;g.po(A.provider.L,g.Aj(A.provider.videoData)).then(function(f){var K=A.provider.L.pageId,V=A.provider.L.sendVisitorIdHeader?A.provider.videoData.visitorData:void 0,J=A.provider.L.J("vss_pings_using_networkless")||A.provider.L.J("kevlar_woffle"),R=A.provider.L.J("allow_skip_networkless");f=Hm(L,B,K,V,f);hB(L,f,{token:A.provider.videoData.T,sR:A.provider.videoData.Zl,mdxEnvironment:A.provider.videoData.mdxEnvironment},B,void 0,J&&!R,!1,!0)})}; wjQ=function(){this.endTime=this.startTime=-1;this.V="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.W=0;this.muted=!1;this.N=this.clipId="-";this.previouslyEnded=!1}; pR=function(A,L,B){this.videoData=A;this.L=L;this.Np=B;this.N=void 0}; g.Ci=function(A){return pj6(A)()}; pj6=function(A){if(!A.N){var L=g.Od(function(f){var K=(0,g.bc)();f&&K<=631152E6&&(A.Np.Hn("ytnerror",{issue:28799967,value:""+K}),K=(new Date).getTime()+2);return K},A.L.J("html5_validate_yt_now")),B=L(); A.N=function(){return Math.round(L()-B)/1E3}; A.Np.AZ()}return A.N}; J4y=function(A){var L=A.Np.OZ()||{};L.fs=A.Np.X1();L.volume=A.Np.getVolume();L.muted=A.Np.isMuted()?1:0;L.mos=L.muted;L.clipid=A.Np.MW();var B;L.playerheight=((B=A.Np.getPlayerSize())==null?void 0:B.height)||0;var f;L.playerwidth=((f=A.Np.getPlayerSize())==null?void 0:f.width)||0;A=A.videoData;B={};A.W&&(B.fmt=A.W.itag,A.U&&(A.sx?A.U.itag!==A.W.itag:A.U.itag!=A.W.itag)&&(B.afmt=A.U.itag));B.ei=A.eventId;B.list=A.playlistId;B.cpn=A.clientPlaybackNonce;A.videoId&&(B.v=A.videoId);A.s$&&(B.infringe=1); (A.Pz?0:A.N8)&&(B.splay=1);(f=$T(A))&&(B.live=f);A.Ll&&(B.sautoplay=1);A.BV&&(B.autoplay=1);A.kc&&(B.sdetail=A.kc);A.partnerId&&(B.partnerid=A.partnerId);A.osid&&(B.osid=A.osid);A.JV&&(B.cc=g.Tf0(A.JV));return Object.assign(L,B)}; GgQ=function(A){var L=fEv();if(L)return y47[L]||y47.other;if(g.wY(A.L)){A=navigator.userAgent;if(/[Ww]ireless[)]/.test(A))return 3;if(/[Ww]ired[)]/.test(A))return 30}return 0}; Sv=function(A){var L=new wjQ,B;L.V=((B=J4y(A).cc)==null?void 0:B.toString())||"-";L.playbackRate=A.Np.getPlaybackRate();B=A.Np.getVisibilityState();B!==0&&(L.visibilityState=B);A.L.Ox&&(L.W=1);L.U=A.videoData.Sr;L.compositeLiveStatusToken=A.videoData.compositeLiveStatusToken;L.heartbeatLoggingToken=A.videoData.heartbeatLoggingToken;B=A.Np.getAudioTrack();B.ri&&B.ri.id&&B.ri.id!=="und"&&(L.audioId=B.ri.id);L.connectionType=GgQ(A);L.volume=A.Np.getVolume();L.muted=A.Np.isMuted();L.clipId=A.Np.MW()|| "-";L.N=A.videoData.AS||"-";return L}; g.yn=function(A,L){g.Y.call(this);var B=this;this.provider=A;this.V=new Map;this.xb=new g.Gu;this.GV={T6M:function(){return B.qoe}, ewr:function(){return B.N}, W5M:function(){return B.W}}; this.provider.videoData.gX()&&!this.provider.videoData.b2&&(this.N=new N9(this.provider),this.N.W=0,g.W(this,this.N),this.qoe=new g.l3(this.provider,L),g.W(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.l0=this.provider.videoData.clientPlaybackNonce)&&this.V.set(this.l0,this.N));if(A.L.playerCanaryState==="canary"||A.L.playerCanaryState==="holdback")this.W=new Jt(this.provider),g.W(this,this.W)}; jNe=function(A){A.W&&MbE(A.W);A.qoe&&lI8(A.qoe)}; gUy=function(A){A.W&&A.W.send();if(A.qoe){var L=A.qoe;if(L.U){L.xb==="PL"&&(L.xb="N");var B=g.Ci(L.provider);g.TL(L,B,"vps",[L.xb]);L.X||(L.V>=0&&L.N.set("user_intent",[L.V.toString()]),L.X=!0);L.provider.L.hw()&&L.Hn("finalized",{});L.wT=!0;L.reportStats(B)}}if(A.provider.videoData.enableServerStitchedDai)for(L=g.m(A.V.values()),B=L.next();!B.done;B=L.next())DL8(B.value);else A.N&&DL8(A.N);A.dispose()}; GE7=function(A,L){A.N&&IUD(A.N,L)}; r47=function(A){if(!A.N)return null;var L=Ic(A.N,"atr");return function(B){A.N&&IUD(A.N,B,L)}}; sN6=function(A,L,B,f){B.adFormat=B.ql;var K=L.Np;L=new N9(new pR(B,L.L,{getDuration:function(){return B.lengthSeconds}, getCurrentTime:function(){return K.getCurrentTime()}, Fb:function(){return K.Fb()}, Yi:function(){return K.Yi()}, Uq:function(){return K.Uq()}, getPlayerSize:function(){return K.getPlayerSize()}, getAudioTrack:function(){return B.getAudioTrack()}, getPlaybackRate:function(){return K.getPlaybackRate()}, Db:function(){return K.Db()}, getVisibilityState:function(){return K.getVisibilityState()}, zH:function(){return K.zH()}, OZ:function(){return K.OZ()}, getVolume:function(){return K.getVolume()}, isMuted:function(){return K.isMuted()}, X1:function(){return K.X1()}, MW:function(){return K.MW()}, getProximaLatencyPreference:function(){return K.getProximaLatencyPreference()}, AZ:function(){K.AZ()}, Hn:function(V,J){K.Hn(V,J)}, Rx:function(){return K.Rx()}, pY:function(){return K.pY()}})); L.W=f;g.W(A,L);return L}; H5L=function(){this.zo=0;this.U=this.V=this.KC=this.lA=this.W=NaN;this.N={};this.bandwidthEstimate=NaN}; hJw=function(){this.N=g.vR;this.array=[]}; tjE=function(A,L,B){var f=[];for(L=b5w(A,L);LB)break}return f}; jv=function(A,L){var B=[];A=g.m(A.array);for(var f=A.next();!f.done&&!(f=f.value,f.contains(L)&&B.push(f),f.start>L);f=A.next());return B}; kE1=function(A){return A.array.slice(b5w(A,0x7ffffffffffff),A.array.length)}; b5w=function(A,L){A=Dw(A.array,function(B){return L-B.start||1}); return A<0?-(A+1):A}; TPE=function(A,L){var B=NaN;A=g.m(A.array);for(var f=A.next();!f.done;f=A.next())if(f=f.value,f.contains(L)&&(isNaN(B)||f.endL&&(isNaN(B)||f.startA.mediaTime+A.D&&L1)A.U=!0;if((K===void 0?0:K)||isNaN(A.W))A.W=L;if(A.N)L!==A.mediaTime&&(A.N=!1);else if(L>0&&A.mediaTime===L){K=1500;if(A.L.J("html5_buffer_underrun_transition_fix")){K=g.Am(A.L.experiments,"html5_min_playback_advance_for_steady_state_secs");var V=g.Am(A.L.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");K=K>0&&V>0&&Math.abs(L-A.W)(f||!A.U?K:400)}A.mediaTime=L;A.V=B;return!1}; O5w=function(A,L){this.videoData=A;this.N=L}; EUv=function(A,L,B){return L.Ij(B).then(function(){return OQ(new O5w(L,L.V))},function(f){f instanceof Error&&g.CE(f); var K=RT('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),V=Nb('audio/mp4; codecs="mp4a.40.2"'),J=K||V,R=L.isLivePlayback&&!g.b9(A.D,!0);f="fmt.noneavailable";R?f="html5.unsupportedlive":J||(f="html5.missingapi");J=R||!J?2:1;K={buildRej:"1",a:L.F$(),d:!!L.sZ,drm:L.U6(),f18:L.Nh.indexOf("itag=18")>=0,c18:K};L.N&&(L.U6()?(K.f142=!!L.N.N["142"],K.f149=!!L.N.N["149"],K.f279=!!L.N.N["279"]):(K.f133=!!L.N.N["133"],K.f140=!!L.N.N["140"],K.f242=!!L.N.N["242"]),K.cAAC=V,K.cAVC=Nb('video/mp4; codecs="avc1.42001E"'), K.cVP9=Nb('video/webm; codecs="vp9"'));L.D&&(K.drmsys=L.D.keySystem,V=0,L.D.N&&(V=Object.keys(L.D.N).length),K.drmst=V);return new g.K$(f,K,J)})}; rw=function(A){this.data=window.Float32Array?new Float32Array(A):Array(A);this.W=this.N=A-1}; c4E=function(A){return A.data[A.N]||0}; Mj6=function(A){this.D=A;this.V=this.W=0;this.U=new rw(50)}; HY=function(A,L,B){g.SN.call(this);this.videoData=A;this.experiments=L;this.D=B;this.W=[];this.pJ=0;this.V=!0;this.U=!1;this.T=0;B=new YLe;A.latencyClass==="ULTRALOW"&&(B.G=!1);A.I7?B.V=3:g.MG(A)&&(B.V=2);A.latencyClass==="NORMAL"&&(B.D=!0);B.Wn=iS(A);if(A.latencyClass==="LOW"||A.latencyClass==="ULTRALOW")B.D=!0;var f=g.Am(L,"html5_liveness_drift_proxima_override");if(Tp(A)!==0&&f){B.N=f;var K;((K=A.N)==null?0:rTe(K))&&B.N--}iS(A)&&L.GL("html5_sabr_parse_live_metadata_playback_boundaries")&&(B.qp= !0);if(g.xz("trident/")||g.xz("edge/"))K=g.Am(L,"html5_platform_minimum_readahead_seconds")||3,B.U=Math.max(B.U,K);g.Am(L,"html5_minimum_readahead_seconds")&&(B.U=g.Am(L,"html5_minimum_readahead_seconds"));g.Am(L,"html5_maximum_readahead_seconds")&&(B.yj=g.Am(L,"html5_maximum_readahead_seconds"));if(L=g.Am(L,"html5_liveness_drift_chunk_override"))B.N=L;kT(A)&&(B.N=(B.N+1)/5,A.latencyClass==="LOW"&&(B.N*=2));!iS(A)||A.latencyClass!=="ULTRALOW"&&A.latencyClass!=="LOW"||(B.X=3,B.T=25);this.policy=B; this.X=this.policy.V!==1;this.N=sP(this,UL7(this,isNaN(A.liveChunkReadahead)?3:A.liveChunkReadahead,A))}; Wxk=function(A,L){if(L)return L=A.videoData,L=UL7(A,isNaN(L.liveChunkReadahead)?3:L.liveChunkReadahead,L),sP(A,L);if(A.W.length){if(Math.min.apply(null,A.W)>1)return sP(A,A.N-1);if(A.policy.G)return sP(A,A.N+1)}return A.N}; vUS=function(A,L){if(!A.W.length)return!1;var B=A.N;A.N=Wxk(A,L===void 0?!1:L);if(L=B!==A.N)A.W=[],A.pJ=0;return L}; bG=function(A,L){return L>=A.gQ()-ht(A)}; qLD=function(A,L,B){L=bG(A,L);B||L?L&&(A.V=!0):A.V=!1;A.X=A.policy.V===2||A.policy.V===3&&A.V}; PPS=function(A,L){L=bG(A,L);A.U!==L&&A.publish("livestatusshift",L);A.U=L}; ht=function(A){var L=A.policy.N;A.U||(L=Math.max(L-1,0));return L*tt(A)}; UL7=function(A,L,B){B.I7&&L--;kT(B)&&(L=1);if(Tp(B)!==0&&(A=g.Am(A.experiments,"html5_live_chunk_readahead_proxima_override"))){L=A;var f;((f=B.N)==null?0:rTe(f))&&L++}return L}; tt=function(A){return A.videoData.N?n3(A.videoData.N)||5:5}; sP=function(A,L){L=Math.max(Math.max(1,Math.ceil(A.policy.U/tt(A))),L);return Math.min(Math.min(8,Math.floor(A.policy.yj/tt(A))),L)}; YLe=function(){this.U=0;this.yj=Infinity;this.G=!0;this.W=this.N=2;this.V=1;this.D=!1;this.T=10;this.qp=!1;this.X=1;this.Wn=!1}; lG=function(A){g.Y.call(this);this.Np=A;this.N=0;this.W=null;this.T=this.U=0;this.V={};this.L=this.Np.K();this.D=new g.aa(this.yG,1E3,this);this.sx=kH(this,"html5_seek_timeout_delay_ms");this.Vj=kH(this,"html5_long_rebuffer_threshold_ms");this.cn=kH(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.JF=kH(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.Ys=kH(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.jI=kH(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.Wn=kH(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.qp=new Ta(2E4);this.S4=kH(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.Cr=kH(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Ex=kH(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.wT=kH(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.G=kH(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.yj=kH(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.Ox=kH(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.Nl=kH(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.X=kH(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.ql=new Ta(g.Am(this.L.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.L.J("html5_report_slow_ads_as_error"));this.mH=new Ta(g.Am(this.L.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.L.J("html5_skip_slow_buffering_ad"));this.Uv=kH(this,"html5_slow_start_timeout_delay_ms");this.ZM=kH(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.W(this,this.D)}; kH=function(A,L,B){B=B===void 0?null:B;var f=f===void 0?0:f;return new Ta(g.Am(A.L.experiments,L)||f,B?A.L.J(B):!1)}; xLw=function(A,L){A.N=L}; mI=function(A,L,B,f,K,V,J,R){L?L.test(B)?(A.Ho(K,L,J),L.T||V()):(!L.W||L.U?B=!1:(B=(0,g.bc)(),f?L.N||(L.N=B):L.N=0,V=!f&&B-L.W>3E4,B=L.N&&B-L.N>1E3||V?L.U=!0:!1),B&&(R=Object.assign({},A.Ov(L),R),R.wn=J,R.we=K,R.wsuc=f,A.Np.Hn("workaroundReport",R),f&&(L.reset(),A.V[K]=!1))):A.Np.O9("auth",2,"BROWSER_OR_EXTENSION_ERROR",f$({source:"watchdog",name:J}))}; Ta=function(A,L){this.T=L===void 0?!1:L;this.N=this.W=this.V=this.startTimestamp=0;this.U=!1;this.D=Math.ceil(A/1E3)}; u0w=function(A){g.Y.call(this);var L=this;this.Np=A;this.G=this.N=this.loader=this.mediaElement=this.playbackData=null;this.V=0;this.D=this.Vj=this.U=null;this.wT=!1;this.jI=0;this.qp=!1;this.timestampOffset=0;this.yj=!0;this.Cr=0;this.cn=this.KY=!1;this.X=0;this.Nl=!1;this.Ys=this.ZM=0;this.L=this.Np.K();this.videoData=this.Np.getVideoData();this.policy=new eJk;this.Wn=new lG(this.Np);this.mH=this.Ex=this.S4=this.T=this.W=NaN;this.JF=new g.aa(function(){nUD(L,!1)},2E3); this.zV=new g.aa(function(){Qn(L)}); this.sx=new g.aa(function(){zJ8(L,{})}); this.Uv=NaN;this.ql=new g.aa(function(){var B=L.L.Ym;B.N+=1E4/36E5;B.N-B.V>1/6&&(cAE(B),B.V=B.N);L.ql.start()},1E4); g.W(this,this.Wn);g.W(this,this.JF);g.W(this,this.sx);g.W(this,this.zV);g.W(this,this.ql)}; LZ8=function(A,L){A.playbackData=L;A.videoData.isLivePlayback&&(A.G=new Mj6(function(){a:{if(A.playbackData&&A.playbackData.N.N){if(ta(A.videoData)&&A.loader){var f=A.loader.wq.pw()||0;break a}if(A.videoData.N){f=A.videoData.N.wT;break a}}f=0}return f}),A.N=new HY(A.videoData,A.L.experiments,function(){return A.oA(!0)})); if(CR(A.Np)){var B;(B=A.videoData.dB)!=null&&B.cO||(L=aUQ(A),L.DN?(iS(A.videoData)&&A.Qb(L.DN,L.startSeconds),A.V=L.startSeconds):L.startSeconds>0&&A.seekTo(L.startSeconds,{zZ:"seektimeline_startPlayback",seekSource:15}));A.yj=!1}else A6e(A)||(A.V=A.V||A.videoData.startSeconds||0,A.videoData.isLivePlayback||(L=A.Np.videoData.oA(),A.V>L&&(A.J("html5_sabr_log_invalid_sabr_current_time")&&A.Np.Hn("invalidSabrCmtStart",{rt:A.V,mst:L}),A.J("html5_sabr_vod_invalid_start_time_fallback")&&(A.V=0))))}; Bvw=function(A,L){(A.loader=L)?oqS(A,!0):iG(A)}; KZD=function(A,L){var B=A.getCurrentTime(),f=A.isAtLiveHead(B);if(A.G&&f){var K=A.G;if(K.N&&!(B>=K.W&&B50&&K.W.shift())),K=A.N,qLD(K,B,L===void 0?!0:L),PPS(K,B),L&&nUD(A,!0));f!==A.KY&&(L=A.getCurrentTime()-A.mH<=500,B=A.jI>=1E3,L||B||(L=A.Np.CY,L.qoe&&(L=L.qoe,B=g.Ci(L.provider), g.TL(L,B,"lh",[f?"1":"0"])),A.KY=f,A.jI++,A.mH=A.getCurrentTime()))}; nUD=function(A,L){if(A.N){var B=A.N;var f=A.getCurrentTime(),K=B.gQ();var V=B.policy.W;B.U||(V=Math.max(V-1,0));V*=tt(B);f>=K-V||!B.YE()?B=fB+1&&L0&&A.mediaElement.KU()>0&&(A.W=$H(A,A.W,!1)),L=A.J("html5_pseudogapless_shorts_seek_to_next_start")&&(L==null?void 0:L.seekSource)===60,!A.mediaElement||!FZS(A,L))A.zV.start(750);else if(!isNaN(A.W)&&isFinite(A.W)&&(L=A.Ex-(A.W-A.timestampOffset),!(L===0||Math.abs(L)<.005)))if(L=A.mediaElement.getCurrentTime()-A.W,Math.abs(L)<=A.Cr||Math.abs(L)<.005)Dq0(A);else{if(A.videoData.iA)A.videoData.iA= !1;else if(!HK(A.videoData)&&A.W>=A.oA()-.1){A.W=A.oA();A.U.resolve(A.oA());A.L.hw()&&A.Np.Hn("setEndedInSeek",{tgt:""+A.W,maxst:""+A.oA()});A.Np.E5();return}try{var B=A.W-A.timestampOffset;A.mediaElement.seekTo(B);A.Wn.N=B;A.Ex=B;A.V=A.W;A.qp=!1}catch(f){}}}; FZS=function(A,L){L=L===void 0?!1:L;if(!A.mediaElement||A.mediaElement.J2()===0||A.mediaElement.hasError())return!1;var B=A.mediaElement.getCurrentTime()>0;return A.videoData.V&&A.videoData.V.N||A.videoData.isLivePlayback||!A.videoData.U6()?A.W>=0&&!L&&(L=A.mediaElement.Zk(),L.length||!B)?aT(L,A.W-A.timestampOffset):B:B}; Dq0=function(A){A.U&&(A.U.resolve(A.mediaElement.getCurrentTime()),A.Wn.W=null)}; Z6e=function(A,L){A.D&&(A.D.resolve(L),A.Np.fg(),A.L.hw()||NvS(A))&&(L=A.Ov(),L["native"]=""+ +A.qp,L.otgt=""+(A.W+A.timestampOffset),A.Np.Hn("seekEnd",L));iG(A)}; iG=function(A){A.W=NaN;A.T=NaN;A.Ex=NaN;A.U=null;A.Vj=null;A.D=null;A.wT=!1;A.qp=!1;A.Cr=0;A.JF.stop();A.sx.stop()}; Iz8=function(A,L){var B=A.mediaElement,f=L.type;switch(f){case "seeking":var K=B.getCurrentTime()+A.timestampOffset;if(!A.U||A.qp&&K!==A.W){A.U=new yV;A.U.then(function(J){Z6e(A,J)},function(){iG(A)}); if(A.videoData.isAd()){var V;Onw({adCpn:A.videoData.clientPlaybackNonce,contentCpn:(V=A.videoData.hS)!=null?V:""},L.N)}A.Ex=K;xLw(A.Wn,B.getCurrentTime());A.seekTo(K,{seekSource:104,zZ:"seektimeline_mediaElementEvent"});A.qp=!0}break;case "seeked":Dq0(A);break;case "loadedmetadata":CR(A.Np)||dqw(A);Qn(A);break;case "progress":Qn(A);break;case "pause":A.X=A.getCurrentTime()}A.X&&((f==="play"||f==="playing"||f==="timeupdate"||f==="progress")&&A.getCurrentTime()-A.X>10&&(A.J("html5_sky_skip_pause_jump")? A.Np.Hn("skipPauseJump",{evt:f,cmt:A.getCurrentTime(),lpt:A.X}):A.seekTo(A.X,{zZ:"pauseJump"})),f!=="pause"&&f!=="play"&&f!=="playing"&&f!=="progress"&&(A.X=0))}; wlQ=function(A){return(Ur(A.videoData)||!!A.videoData.liveUtcStartSeconds)&&(!!A.videoData.liveUtcStartSeconds||A6e(A))&&!!A.videoData.N}; A6e=function(A){return!!A.videoData.startSeconds&&isFinite(A.videoData.startSeconds)&&A.videoData.startSeconds>1E9}; aUQ=function(A){var L=0,B=NaN,f="";if(!A.yj)return{startSeconds:L,DN:B,source:f};A.videoData.hd?L=A.videoData.SO:HK(A.videoData)&&(L=Infinity);if(g.MG(A.videoData))return{startSeconds:L,DN:B,source:f};A.videoData.startSeconds?(f="ss",L=A.videoData.startSeconds):A.videoData.NT&&(f="stss",L=A.videoData.NT);A.videoData.liveUtcStartSeconds&&(B=A.videoData.liveUtcStartSeconds);if(isFinite(L)&&(L>A.oA()||LA.oA()||B 0?(f.onesie="0",A.handleError(new g.K$("html5.missingapi",f)),!1):!0}; b66=function(A){var L=xn();eg(L,A);return g.av(L,qgD())}; sP7=function(A,L,B){var f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v,U,a,o0,B6,Ve,DS,fw;return g.c(function(ry){if(ry.N==1)return L.fetchType="onesie",f=nhE(L,A.getPlayerSize(),A.getVisibilityState()),K=new Sn(A,f,B),g.X(ry,K.fetch(),2);V=ry.W;J={player_response:V};L.loading=!1;R=A.gf.Pq;if(K.HV){Z=g.m(K.HV.entries());for(N=Z.next();!N.done;N=Z.next())F=N.value,D=g.m(F),I=D.next().value,d=D.next().value,w=I,r=d,R.N.set(w,r,180),w===L.videoId&&(h=r.Wq(),L.mL=h);R.Ni=K}Q=g.m(K.vv.entries());for(l=Q.next();!l.done;l= Q.next())C=l.value,O=g.m(C),v=O.next().value,U=O.next().value,a=v,o0=U,R.W.set(a,o0,180);g.SC(L,J,!0);if(L.loading||V7(L))return ry.return(Promise.resolve());R.N.removeAll();R.W.removeAll();L.mL=[];B6={};Ve="onesie.response";DS=0;L.errorCode?(Ve="auth",B6.ec=L.errorCode,B6.ed=L.errorDetail,B6.es=L.Qr||"",DS=2):(B6.successButUnplayable="1",B6.disposed=""+ +L.TL(),B6.afmts=""+ +/adaptiveFormats/.test(V),B6.cpn=L.clientPlaybackNonce);fw=new g.K$(Ve,B6,DS);return ry.return(Promise.reject(fw))})}; gq6=function(A,L){var B,f,K,V,J,R,Z,N,F,D,I;return g.c(function(d){switch(d.N){case 1:B=L.isAd(),f=!B,K=B?1:3,V=0;case 2:if(!(V0)){d.Ux(5);break}return g.X(d,YA(5E3),6);case 6:J=new g.iL("Retrying OnePlatform request",{attempt:V}),g.CE(J);case 5:return g.S5(d,7),g.X(d,t2k(A,L),9);case 9:return d.return();case 7:R=g.NX(d);Z=JT(R);N=Z.errorCode;F=A.K();D=F.J("html5_use_network_error_code_enums")?401:"401";f&&N==="manifest.net.badstatus"&&Z.details.rc===D&&(f=!1,V===K-1&&(K+= 1));if(V===K-1)return I=kme(B,Z.details),I.details.backend="op",I.details.originec=N,d.return(Promise.reject(I));if(N==="auth"||N==="manifest.net.retryexhausted")return d.return(Promise.reject(Z));A.handleError(Z);if(Vu(Z.severity)){d.Ux(4);break}case 3:V++;d.Ux(2);break;case 4:return d.return(Promise.reject(kme(B,{backend:"op"})))}})}; t2k=function(A,L){function B(B6){B6.readyState===2&&A.S$("ps_c")} var f,K,V,J,R,Z,N,F,D,I,d,w,r,h,Q,l,C,O,v,U,a,o0;return g.c(function(B6){switch(B6.N){case 1:L.fetchType="gp";f=A.K();K=g.po(f,g.Aj(L));if(!K.N){V=K.getValue();B6.Ux(2);break}return g.X(B6,K.N,3);case 3:V=B6.W;case 2:return J=V,R=b66(J),Z=nhE(L,A.getPlayerSize(),A.getVisibilityState()),N=g.B8(TvL),F=g.Aj(L),D=(0,g.bc)(),I=!1,d="empty",w=0,A.S$("psns"),r={xQ:B},g.X(B6,g.MD(R,Z,N,void 0,r),4);case 4:h=B6.W;A.S$("psnr");if(L.TL())return B6.return();h?"error"in h&&h.error?(I=!0,d="esf:"+h.error.message, w=h.error.code):h.errorMetadata&&(I=!0,d="its",w=h.errorMetadata.status):I=!0;if(I)return Q=0,l=((0,g.bc)()-D).toFixed(),C={},C=f.J("html5_use_network_error_code_enums")?{backend:"op",rc:w,rt:l,reason:d,has_kpt:L.Ox?"1":"0",has_mdx_env:L.mdxEnvironment?"1":"0",has_omit_key_flag:g.A_("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:f.pageId?"1":"0",has_token:F?"1":"0",has_vvt:L.qp?"1":"0",is_mdx:L.isMdxPlayback?"1":"0",mdx_ctrl:L.bY||"",token_eq:F===g.Aj(L)?"1":"0"}:{backend:"op", rc:""+w,rt:l,reason:d,has_kpt:L.Ox?"1":"0",has_mdx_env:L.mdxEnvironment?"1":"0",has_omit_key_flag:g.A_("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:f.pageId?"1":"0",has_token:F?"1":"0",has_vvt:L.qp?"1":"0",is_mdx:L.isMdxPlayback?"1":"0",mdx_ctrl:L.bY||"",token_eq:F===g.Aj(L)?"1":"0"},O="manifest.net.connect",w===429?(O="auth",Q=2):w>200&&(O="manifest.net.badstatus",w===400&&(Q=2)),B6.return(Promise.reject(new g.K$(O,C,Q)));L.loading=!1;g.SC(L,{raw_player_response:h},!0); v=h;g.PL(L.K())&&v&&v.trackingParams&&wS(v.trackingParams);if(L.errorCode)return U={ec:L.errorCode,ed:L.errorDetail,es:L.Qr||""},B6.return(Promise.reject(new g.K$("auth",U,2)));if(!L.loading&&!V7(L))return a=L.isAd()?"auth":"manifest.net.retryexhausted",o0=L.isAd()?2:1,B6.return(Promise.reject(new g.K$(a,{successButUnplayable:"1",hasMedia:g.Or(L)?"1":"0"},o0)));g.VK(B6)}})}; jP0=function(A,L,B){function f(w){w=JT(w);if(Vu(w.severity))return Promise.reject(w);A.handleError(w);return!1} function K(){return!0} var V,J,R,Z,N,F,D,I,d;return g.c(function(w){switch(w.N){case 1:var r=A.K();A.getPlayerSize();A.getVisibilityState();A.isFullscreen();if(L.partnerId===38&&r.playerStyle==="books")r=L.videoId.indexOf(":"),r=g.ip("//play.google.com/books/volumes/"+L.videoId.slice(0,r)+"/content/media",{aid:L.videoId.slice(r+1),sig:L.Ze});else if(L.partnerId===30&&r.playerStyle==="docs")r=g.ip("https://docs.google.com/get_video_info",{docid:L.videoId,authuser:L.jy,authkey:L.g0,eurl:r.O_});else if(L.partnerId===33&&r.playerStyle=== "google-live")r=g.ip("//google-liveplayer.appspot.com/get_video_info",{key:L.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+r.Wn);V=r;R=(J=L.isAd())?1:3;Z=0;case 2:if(!(Z0)){w.Ux(5);break}return g.X(w,YA(5E3),6);case 6:F={playerretry:Z,playerretrysrc:B},J||(F.recover="embedded"),N=Ns(V,F);case 5:return g.X(w,lz8(L,N).then(K,f),7);case 7:if(D=w.W)return w.return();Z++;w.Ux(2);break;case 4:I=J?"auth":"manifest.net.retryexhausted";d=J?2:1;if(!J&&Math.random()< 1E-4)try{g.CE(new g.iL("b/152131571",btoa(V)))}catch(h){}return w.return(Promise.reject(new g.K$(I,{backend:"gvi"},d)))}})}; lz8=function(A,L){function B(h){return f(h.xhr)} function f(h){if(!A.TL()){h=h?h.status:-1;var Q=0,l=((0,g.bc)()-F).toFixed();l=K.J("html5_use_network_error_code_enums")?{backend:"gvi",rc:h,rt:l}:{backend:"gvi",rc:""+h,rt:l};var C="manifest.net.connect";h===429?(C="auth",Q=2):h>200&&(C="manifest.net.badstatus",h===400&&(Q=2));return Promise.reject(new g.K$(C,l,Q))}} var K,V,J,R,Z,N,F,D,I,d,w,r;return g.c(function(h){if(h.N==1){A.fetchType="gvi";K=A.K();var Q={};A.F0&&(Q.ytrext=A.F0);(R=g.mi(Q)?void 0:Q)?(V={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:R},J=Ns(L,{action_display_post:1})):(V={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},J=L);Z={};K.sendVisitorIdHeader&&A.visitorData&&(Z["X-Goog-Visitor-Id"]=A.visitorData);(N=sR(K.experiments,"debug_sherlog_username"))&&(Z["X-Youtube-Sherlog-Username"]=N);Object.keys(Z).length> 0&&(V.headers=Z);F=(0,g.bc)();return g.X(h,XV(Cg,J,V).then(void 0,B),2)}D=h.W;if(!D||!D.responseText)return h.return(f(D));A.loading=!1;I=I0(D.responseText);g.SC(A,I,!0);if(A.errorCode)return d={ec:A.errorCode,ed:A.errorDetail,es:A.Qr||""},h.return(Promise.reject(new g.K$("auth",d,2)));if(!A.loading&&!V7(A))return w=A.isAd()?"auth":"manifest.net.retryexhausted",r=A.isAd()?2:1,h.return(Promise.reject(new g.K$(w,{successButUnplayable:"1"},r)));g.VK(h)})}; kme=function(A,L){return new g.K$(A?"auth":"manifest.net.retryexhausted",L,A?2:1)}; M9=function(A,L,B){B=B===void 0?!1:B;var f,K,V,J;g.c(function(R){if(R.N==1){f=A.K();if(B&&(!g.Ng(f)||nr(L)!=="embedded")||L.gy||nr(L)!=="adunit"&&(g.wY(f)||A$(f)||g.cH(f)||g.Z_(f)||g.xi(f)||ge(f)==="WEB_CREATOR"))return R.return();K=g.po(f,g.Aj(L));return K.N?g.X(R,K.N,3):(V=K.getValue(),R.Ux(2))}R.N!=2&&(V=R.W);J=V;return R.return(mq7(A,L,J))})}; mq7=function(A,L,B){var f,K,V,J,R;return g.c(function(Z){if(Z.N==1){g.S5(Z,2);f=b66(B);var N=L.K(),F=g.v9(),D={context:g.dh(L),videoId:L.videoId,racyCheckOk:L.racyCheckOk,contentCheckOk:L.contentCheckOk,autonavState:"STATE_NONE"};nr(L)==="adunit"&&(D.isAdPlayback=!0);N.embedConfig&&(D.serializedThirdPartyEmbedConfig=N.embedConfig);N.tI&&(D.showContentOwnerOnly=!0);L.g4&&(D.showShortsOnly=!0);F.Iv(141)&&(D.autonavState=F.Iv(140)?"STATE_OFF":"STATE_ON");if(g.SK(N)){F=F.Iv(65);F=F!=null?!F:!1;var I= !!g.ES("yt-player-sticky-caption");D.captionsRequested=F&&I}var d;if(N=(d=N.getWebPlayerContextConfig())==null?void 0:d.encryptedHostFlags)D.playbackContext={encryptedHostFlags:N};K=D;V=g.B8(QPv);A.S$("wn_s");return g.X(Z,g.MD(f,K,V),4)}if(Z.N!=2)return J=Z.W,A.S$("wn_r"),!J||"error"in J&&J.error||(R=J,g.PL(L.K())&&R.trackingParams&&wS(R.trackingParams),g.SC(L,{raw_watch_next_response:J},!1)),g.ZR(Z,0);g.NX(Z);g.VK(Z)})}; Gme=function(A,L){var B,f,K,V;g.c(function(J){if(J.N==1)return B=A.K(),f=g.po(B,g.Aj(L)),f.N?g.X(J,f.N,3):(K=f.getValue(),J.Ux(2));J.N!=2&&(K=J.W);V=K;return J.return(CR1(L,V))})}; CR1=function(A,L){var B,f,K,V;return g.c(function(J){if(J.N==1)return g.S5(J,2),B=b66(L),f={context:g.dh(A),playerRequest:{videoId:A.videoId},disablePlayerResponse:!0},K=g.B8(i6k),g.X(J,g.MD(B,f,K),4);if(J.N!=2)return V=J.W,!V||"error"in V&&V.error||g.SC(A,{raw_reel_item_watch_response:V}),g.ZR(J,0);g.NX(J);g.VK(J)})}; $qE=function(A,L){A.S$("vir");A.S$("ps_s");OC("vir",void 0,"video_to_ad");L=hHv(A,L);L.then(function(){A.S$("virc");OC("virc",void 0,"video_to_ad");A.S$("ps_r");OC("ps_r",void 0,"video_to_ad")},function(){A.S$("virc"); OC("virc",void 0,"video_to_ad")}); return L}; g.WY=function(A,L,B,f,K,V,J,R,Z,N,F){N=N===void 0?new g.Kr(A):N;F=F===void 0?!0:F;g.SN.call(this);var D=this;this.L=A;this.playerType=L;this.Rv=B;this.z8=f;this.getVisibilityState=V;this.visibility=J;this.gf=R;this.Ml=Z;this.videoData=N;this.i7=F;this.logger=new g.sI("VideoPlayer");this.Gq=null;this.vE=new oc;this.uD=null;this.Cz=!0;this.AF=this.loader=null;this.n3=[];this.zW=new cY;this.kJ=this.On=null;this.Ek=new cY;this.un=null;this.Kz=this.nu=!1;this.p7=NaN;this.Ez=!1;this.playerState=new g.Gu; this.QP=[];this.E1=new g.dN;this.mediaElement=null;this.KN=this.OB=!1;this.XG=NaN;this.d4=!1;this.GS=0;this.V3=!1;this.RZ=NaN;this.Ld=0;this.loop=!1;this.playbackRate=1;this.wP=0;this.Rt=!1;this.eF=[];this.FM=this.AQ=0;this.sX=this.aX=!1;this.KC=this.lA=0;this.cX=!1;this.WN=this.Jv=this.N$=this.TV=null;this.wI=function(){var I=D.CY;I.provider.L.Po||I.provider.Np.getVisibilityState()===3||(I.provider.L.Po=!0);I.Om();if(I.W){var d=I.W;d.D&&d.N<0&&d.provider.Np.getVisibilityState()!==3&&MbE(d)}I.qoe&& (I=I.qoe,I.sx&&I.V<0&&I.provider.L.Po&&lI8(I),I.U&&$k(I));D.loader&&YH(D);UP(D)}; this.GV={Cl:function(I){D.Cl(I)}, luM:function(I){D.Gq=I}, tMD:function(){return D.CY}, Fy:function(){return D.AF}, ErF:function(){return D.ol}, AVL:function(){return D.Oa}, Y5n:function(){}, K:function(){return D.L}, pD:function(){return D.mediaElement}, gD1:function(I){D.Ma(I)}, hwx:function(){return D.z8}}; this.KQ=new NME(this);this.uv=new g.aa(this.eSj,15E3,this);this.Yz=new Xz(new Map([["bufferhealth",function(){return fz0(D.M8)}], ["bandwidth",function(){return D.Su()}], ["networkactivity",function(){return D.Ml.Vj}], ["livelatency",function(){return D.isAtLiveHead()&&D.isPlaying()?XlD(D):NaN}], ["rawlivelatency",function(){return XlD(D)}]])); this.M8=new u0w(this);this.AR=new g.aa(this.cJ,0,this);this.QvF=[this.E1,this.AR,this.uv,this.Yz];this.Vl=new XjL(this.L);this.IC=new KR(this.L,this.z8,this,this.Ml);this.I4=new g.gw(this,function(I,d){I!==g.qR("endcr")||g.x(D.playerState,32)||D.E5();K(I,d,D.playerType)}); g.W(this,this.I4);g.W(this,this.M8);O6L(this,N);this.videoData.subscribe("dataupdated",this.cz1,this);this.videoData.subscribe("dataloaded",this.Ue,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Hn,this);this.videoData.subscribe("ctmpstr",this.SV,this);!this.CY||this.CY.TL();this.CY=new g.yn(new pR(this.videoData,this.L,this));K41(this.wI);this.visibility.subscribe("visibilitystatechange",this.wI);this.ol=new g.aa(this.j3,g.Am(this.L.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Oa=new g.aa(this.j3,g.Am(this.L.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Ie=new g.BC(this.Oep,350,this);g.W(this,this.Ie)}; O6L=function(A,L){if(A.playerType===2||A.L.hq)L.Tm=!0;var B=ChS(L.ql,L.XR,A.L.U,A.L.G);B&&(L.adFormat=B);A.playerType===2&&(L.BV=!0);if(A.isFullscreen()||A.L.U)B=g.ES("yt-player-autonavstate"),L.autonavState=B||(A.L.U?2:A.videoData.autonavState);L.endSeconds&&L.endSeconds>L.startSeconds&&vY(A,L.endSeconds)}; Eqk=function(A){return g.wY(A.L)&&A.videoData.isLivePlayback&&(!A.L.J("html5_allow_multiview_tile_preload")||!A.videoData.GZ)}; c66=function(A){var L=A.videoData;$qE(A,A.Ml).then(void 0,function(B){A.videoData!==L||L.TL()||(B=JT(B),B.errorCode==="auth"&&A.videoData.errorDetail&&A.videoData.errorDetail!=="7"?A.O9(B.errorCode,2,unescape(A.videoData.errorReason),f$(B.details),A.videoData.errorDetail,A.videoData.Qr||void 0):A.handleError(B))})}; Uq1=function(A){if(!g.x(A.playerState,128))if(A.videoData.isLoaded(),A.n3=g.Kx(A.videoData.p9),g.Or(A.videoData)){A.Rv.tick("bpd_s");q9(A).then(function(){A.Rv.tick("bpd_c");if(!A.TL()){A.nu&&(A.q8(Hi(Hi(A.playerState,512),1)),PY(A));var f=A.videoData;f.endSeconds&&f.endSeconds>f.startSeconds&&vY(A,f.endSeconds);A.zW.finished=!0;xH(A,"dataloaded");A.Ek.Er()&&M2v(A);ciE(A.IC,A.kJ)}}); A.J("html5_log_media_perf_info")&&A.Hn("loudness",{v:A.videoData.EQ.toFixed(3)},!0);var L,B=(L=A.mediaElement)==null?void 0:L.Zg();if(B&&"disablePictureInPicture"in B&&A.L.Sr)try{B.disablePictureInPicture=A.L.JA&&!A.videoData.backgroundable}catch(f){g.CE(f)}YhC(A);A.WN=new Ho(A.videoData)}else xH(A,"dataloaded")}; q9=function(A){ev(A);A.kJ=null;var L=EUv(A.L,A.videoData,A.QC());A.On=L;A.On.then(function(B){WZQ(A,B)},function(B){A.TL()||(B=JT(B),A.visibility.isBackground()?(nR(A,"vp_none_avail"),A.On=null,A.zW.reset()):(A.zW.finished=!0,A.O9(B.errorCode,B.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",f$(B.details))))}); return L}; WZQ=function(A,L){if(!A.TL()&&!L.videoData.TL()){A.kJ=L;LZ8(A.M8,A.kJ);if(A.videoData.isLivePlayback){var B=vqw(A.gf.Pq,A.videoData.videoId)||A.loader&&!isNaN(A.loader.ZM);B=A.J("html5_onesie_live")&&B;CR(A)||A.videoData.Ex>0&&!ta(A.videoData)||B||A.seekTo(A.oA(),{zZ:"videoplayer_playbackData",seekSource:18})}if(A.videoData.V.N){if(X_v(A.videoData)){A.O9("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",f$({missabrurl:1}));return}A.loader?g.CE(Error("Duplicated Loader")):(B=g.Am(A.L.experiments,"html5_onesie_defer_content_loader_ms"))&& A.Hu()&&vqw(A.gf.Pq,A.videoData.kI)?g.gW(function(){A.TL()||A.loader||qhv(A)},B):qhv(A)}else!A.videoData.V.N&&Bh(A.videoData)&&A.FG(new EL(A.videoData.videoId||"",4)); A.bD();Q5y(L).then(function(){var f={};A.EU(f);A.L.hw()&&A.J("html5_log_media_perf_info")&&A.Hn("av1Info",f);YH(A)})}}; M2v=function(A){A.TL();if(!A.Ek.finished&&A.zW.finished&&!g.x(A.playerState,128)&&!A.n3.length){if(!A.I4.started){var L=A.I4;L.started=!0;L.sync()}if(!A.BF()){if(A.loader){if(A.Qf().N.Iv(dv)){L=A.loader;var B=!0;B=B===void 0?!1:B;L=Math.min(K6(L.audioTrack,B),K6(L.videoTrack,B))>0}else L=A.loader.timing,L=!!L.W&&!!L.V;A.Kz=L}A.Ek.finished||(A.Ek.finished=!0);L=A.J("html5_onesie_live")&&A.loader&&!isNaN(A.loader.ZM);!A.videoData.isLivePlayback||A.videoData.Ex>0&&!ta(A.videoData)||L||CR(A)||(A.seekTo(Infinity, {zZ:"videoplayer_readying",seekSource:18}),A.isBackground()&&(A.KN=!0));L=A.CY;if(L.qoe){L=L.qoe;var f=L.provider.videoData;B=L.provider.L;for(var K=g.m(B.AU),V=K.next();!V.done;V=K.next())Oi(L,V.value);if(L.provider.J("html5_enable_qoe_cat_list"))for(K=g.m(f.Vs),V=K.next();!V.done;V=K.next())Oi(L,V.value);else f.AU&&Oi(L,L.provider.videoData.AU);f.iC()&&(K=f.N,ta(f)&&Oi(L,"manifestless"),K&&n3(K)&&Oi(L,"live-segment-"+n3(K).toFixed(1)));iS(f)?Oi(L,"sabr"):L.nS(Tp(f));if(Lm(f)||f.aA())f.aA()&&Oi(L, "ssa"),Oi(L,"lifa");gp(f)&&Oi(L,"cdm");f.gatewayExperimentGroup&&(K=f.gatewayExperimentGroup,K==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?K="spkadtrt":K==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(K="spkadctrl"),Oi(L,K));B.Wn!=="yt"&&L.N.set("len",[f.lengthSeconds.toFixed(2)]);f.cotn&&!Bh(f)&&L.ZW(!0);B.hw()&&(f=jhQ())&&L.Hn("cblt",{m:f});if(B.J("html5_log_screen_diagonal")){B=L.Hn;var J;f=((J=window.H5vccScreen)==null?0:J.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;B.call(L,"cbltdiag", {v:f})}}A.publish("playbackready");iJ("pl_c",A.Rv.timerName)||(A.Rv.tick("pl_c"),OC("pl_c",void 0,"video_to_ad"));iJ("pbr",A.Rv.timerName)||(A.Rv.tick("pbr"),OC("pbr",void 0,"video_to_ad"))}}}; vY=function(A,L){A.uD&&PR8(A);A.uD=new g.WR(L*1E3,0x7ffffffffffff);A.uD.namespace="endcr";A.addCueRange(A.uD)}; PR8=function(A){A.removeCueRange(A.uD);A.uD=null}; xq1=function(A,L,B,f,K){var V=A.CY,J=A.videoData;J.W=B;var R=g.za(A);B=new s5E(J,B,L,R?R.itag:"",f);A.L.experiments.GL("html5_refactor_sabr_video_format_selection_logging")?(B.videoId=K,A.Jv=B):V.qoe&&Th1(V.qoe,B);K=A.IC;K.W=0;K.N=0;A.publish("internalvideoformatchange",J,L==="m")}; g.za=function(A){var L=uG(A);return EO(L)||!A.kJ?null:g.Pw(A.kJ.N.videoInfos,function(B){return L.U(B)})}; uG=function(A){if(A.kJ){var L=A.IC;var B=A.kJ;A=A.Vt();var f=hV0(L);if(EO(f)){if(f=L.Ms(B).compose(TM0(L,B)).compose(mI8(L,B)).compose(OT8(L,B.videoData)).compose(E2E(L,B.videoData,B)).compose(XO8(L,B)).compose(tb6(L,B)),EO(A)||L.J("html5_apply_pbr_cap_for_drm"))f=f.compose(kCL(L,B))}else L.J("html5_perf_cap_override_sticky")&&(f=f.compose(XO8(L,B))),L.J("html5_ustreamer_cap_override_sticky")&&(f=f.compose(kCL(L,B)));f=f.compose(tb6(L,B));L=B.videoData.nO.compose(f).compose(B.videoData.vC).compose(A)}else L= fr;return L}; yae=function(A){var L=A.IC;A=A.videoData;var B=OT8(L,A);L.J("html5_disable_client_autonav_cap_for_onesie")||B.compose(E2E(L,A));return B}; YH=function(A){if(A.videoData.V&&A.videoData.V.N){var L=uG(A);if(A.loader&&(A=A.loader,!A.TL()))if(A.policy.N){var B=A.U;if(L.isLocked()&&B.N.W||B.W===void 0||!L.equals(B.W)){B=A.U.W;CSe(A.U,L);var f,K;if(K=L.isLocked()&&L.reason==="m"){K=A.U;var V=(f=K.U)==null?void 0:f.info.video.qualityOrdinal;K=K.ZM?!0:K.U?L.N!==V?!0:!K.N.W||K.Iy.I_&&K.N.N===K.U.info.itag?!1:!0:!1}f=K;K=A.policy.cR&&L.reason==="l";B=B.N>L.N&&L.reason==="b";f||K||B?(A.Np.J8({reattachOnConstraint:f?"u":K?"drm":"perf",lo:L.W,up:L.N}), A.policy.I_||(A.U.N.W=!1)):(A.policy.I_&&(A.U.N.W=!1),IS(A))}}else!J7C(A.N,L)&&A.videoTrack&&(K=A.N.N,qUL(A,SRw(A.N,L)),En7(A),B=L.isLocked()&&L.reason==="m"&&A.N.qp,f=A.policy.cR&&L.reason==="l"&&Zz(A.videoTrack),L=K.N>L.N&&L.reason==="b",K=A.N.sx&&!Se(),B||f||L||K?A.Np.J8({reattachOnConstraint:B?"u":f?"drm":K?"codec":"perf"}):IS(A))}}; eHk=function(A){var L;return!!(A.J("html5_native_audio_track_switching")&&g.yw&&((L=A.videoData.W)==null?0:WV(L)))}; nqQ=function(A){if(!eHk(A))return!1;var L;A=(L=A.mediaElement)==null?void 0:L.audioTracks();return!!(A&&A.length>1)}; az0=function(A){var L=zH1(A);if(L){var B=unE[L]||L;return A.videoData.getAvailableAudioTracks().find(function(f){return f.ri.getName()===B})}}; AB8=function(A){var L,B=(L=A.mediaElement)==null?void 0:L.audioTracks();if(B){L=[];for(var f=0;f0&&(L.mC=B.e6));L.cR=B.B$;L.Tb=KM(f,{},B.V||void 0,jC(B));L.Ox=y7(B)&&(g.cH(f)||g.Z_(f));iS(B)&&(L.D=!0,L.IV=f.J("html5_estimate_live_partial_slice_duration"),g.wY(f)&&!g.ng()&&f.J("html5_force_audio_to_cover_video_keyframe")?L.mH=!1:L.mH=!0,L.h8||B.isLivePlayback||!f.J("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")|| (L.zK=!0,L.SH=g.Am(f.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),f.J("html5_sabr_report_partial_segment_estimated_duration")&&(L.cC=!0),L.N=!0,L.e7=f.J("html5_trigger_loader_when_idle_network"),L.nJ=f.J("html5_sabr_parse_live_metadata_playback_boundaries"),L.jH=f.J("html5_consume_onesie_next_request_policy_for_sabr"),L.lR=f.J("html5_sabr_report_next_ad_break_time"),L.bA=f.J("html5_log_high_res_buffer_timeline")&&f.hw(),L.OC=f.J("html5_remove_stuck_slices_beyond_max_buffer_limits"), L.nO=f.J("html5_gapless_sabr_btl_last_slice")&&pr(B),L.oz=f.J("html5_reset_last_appended_slice_on_seek")&&pr(B),ta(B)?(L.Gx=!0,L.gy=f.J("html5_disable_variability_tracker_for_live"),L.cn=!0,f.J("html5_simplified_backup_timeout_sabr_live")&&(L.O_=!0,L.Ry=L.mL)):L.N8=f.J("html5_probe_request_on_sabr_request_progress"),L.uu=f.J("html5_serve_start_seconds_seek_for_post_live_sabr"),L.m1=f.J("html5_flush_index_on_updated_timestamp_offset"),L.Wn=iS(B),L.M7=f.J("html5_ignore_partial_segment_from_live_readahead"), f.J("html5_include_partial_segment_for_jumbo_ll")&&kT(B)&&(L.M7=!1),L.Ip=f.J("html5_use_non_active_broadcast_for_post_live"),L.S4=f.J("html5_use_centralized_player_time"),L.zV=f.J("html5_log_centralized_player_time"),L.qM=f.J("html5_use_loader_check_duration"),L.BR=f.J("html5_consume_onesie_sabr_seek"),L.Vj=f.J("html5_enable_sabr_seek_loader_refactor"),B.enableServerStitchedDai&&(L.W=!0,L.UO=f.J("html5_reset_server_stitch_state_for_non_sabr_seek"),L.Kx=f.J("html5_remove_ssdai_append_pause")&&!B.aA(), L.o4=f.J("html5_ssdai_log_ssevt_in_loader_timers")),L.y8=f.hw(),L.latencyClass=B.latencyClass,L.sC=B.iC()&&f.J("html5_prebuffer_instream_media_live")&&f.J("html5_report_prefetch_requests"),L.xY=!B.iC()&&f.J("html5_prebuffer_instream_media_vod")&&f.J("html5_report_prefetch_requests"),L.iA=f.J("html5_disable_prebuffer_for_limited_memory_devices"));L.WR=g.iS1(B);u6(f.D,a4.BITRATE)&&(L.lC=NaN);if(R=g.Am(f.experiments,"html5_request_size_max_kb"))L.Cr=R*1024;f.D.W?L.kR="; "+a4.EXPERIMENTAL.name+"=allowed": f.J("html5_enable_cobalt_tunnel_mode")&&g.ng()&&(f=a4.TUNNELMODE,L.kR="; "+f.name+"="+f.valid);B=B.serverPlaybackStartConfig;(B==null?0:B.enable)&&(B==null?0:B.playbackStartPolicy)&&(L.dB=!0,p6(L,B.playbackStartPolicy,2));B=ok7(A);A.vE.removeAll();a:{f=A.gf.Pq;if(R=A.videoData.videoId)if(K=f.N.get(R)){f.N.remove(R);f=K;break a}f=void 0}A.loader=new Wm(A,A.Ml,L,A.videoData.N,A.videoData.V,uG(A),B,A.videoData.enableServerStitchedDai,f,A.videoData.yj);L=A.videoData.J("html5_disable_preload_for_ssdai_with_preroll")&& A.videoData.isLivePlayback&&A.Hu()?!0:A.nu&&Eqk(A);A.loader.initialize(A.getCurrentTime(),uG(A),L);A.videoData.probeUrl&&(A.loader.cn=A.videoData.probeUrl);if(A.n3.length||A.nu)A.videoData.cotn||ac(A,!1);Bvw(A.M8,A.loader);A.TV&&(KfQ(A.loader,A.TV),A.Hn("sdai",{sdl:1}));g.Jj(A.videoData)&&(A=A.loader,A.policy.e6=A.policy.mj)}; UP=function(A,L){L=L===void 0?!0:L;A.L.Kt&&!A.videoData.backgroundable&&A.mediaElement&&!A.QC()&&(A.isBackground()&&A.mediaElement.g_()?(A.Hn("bgmobile",{suspend:1}),A.aC(!0,!0)):!A.isBackground()&&L&&PY(A)&&A.Hn("bgmobile",{resume:1}))}; ev=function(A){A.loader&&(A.loader.dispose(),A.loader=null,Bvw(A.M8,null));A.R0()?fjk(A):A.GB()}; fjk=function(A){if(A.AF)if(A.yJ(),A.AF.T)try{A.L.hw()&&A.Hn("rms",{l:"vprms",sr:A.R0(),rs:Ik(A.AF)});A.AF.clear();var L;(L=A.mediaElement)==null||L.nH(A.AF);A.AF=null}catch(B){L=new g.iL("Error while clearing Media Source in VideoPlayer: "+B.name+", "+B.message),L=JT(L),A.handleError(L),A.GB()}else A.GB()}; KBQ=function(A,L){if(A.AF)return A.AF.V;a:{L=L===void 0?!1:L;L=L===void 0?!1:L;try{g.ng()&&A.videoData.QE()&&A.mediaElement.Xv();var B=A.mediaElement.Fy(A.bf(),A.iI())}catch(K){if(wO6(A.KQ,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",K);A.O9("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}A.Mv(B,!1,!1,L)}var f;return((f=A.Fy())==null?void 0:f.V)||null}; VnC=function(A,L){L=L===void 0?!1:L;if(A.loader){A.videoData.enableServerStitchedDai&&NCw(A.loader);var B=A.getCurrentTime()-A.pY();A.loader.seek(B,{Cu:L}).c9(function(){})}else qhv(A)}; JBw=function(A,L){if(A.AF){A.AF.Vr(L);var B;(B=A.loader)!=null&&B.policy.S4&&(B.X=L)}}; vnQ=function(A,L){xq1(A,L.reason,L.N.info,L.token,L.videoId)}; xH=function(A,L){A.publish("internalvideodatachange",L===void 0?"dataupdated":L,A.videoData)}; Sik=function(A){for(var L=g.m("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),B=L.next();!B.done;B=L.next())A.E1.Y(A.mediaElement,B.value,A.Ma,A);A.L.Tf&&A.mediaElement.wy()&&(A.E1.Y(A.mediaElement,"webkitplaybacktargetavailabilitychanged",A.oPj,A),A.E1.Y(A.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",A.OYj,A))}; ZiL=function(A){g.sQ(A.p7);RTk(A)||(A.p7=g.Gc(function(){return RTk(A)},100))}; RTk=function(A){var L=A.mediaElement;L&&A.OB&&!A.videoData.G&&!iJ("vfp",A.Rv.timerName)&&L.J2()>=2&&!L.isEnded()&&ok(L.YJ())&&A.Rv.tick("vfp");return(L=A.mediaElement)&&!A.videoData.G&&L.getDuration()>0&&(L.isPaused()&&L.J2()>=2&&ok(L.YJ())&&(iJ("pbp",A.Rv.timerName)||A.Rv.tick("pbp"),!A.videoData.Bk||A.Ez||L.isSeeking()||(A.Ez=!0,A.publish("onPlaybackPauseAtStart"))),L=L.getCurrentTime(),Ga(A.Vl,L))?(A.X6(),!0):!1}; FBE=function(A){A.CY.onProgress();if(HK(A.videoData)&&Date.now()>A.wP+6283){if(A.J("html5_unified_live_latency_reporting")){var L=A.CY;L.qoe&&rje(L.qoe)}else!A.isAtLiveHead()||A.videoData.N&&Pp(A.videoData.N)||(L=A.CY,L.qoe&&rje(L.qoe));L=g.dY(A.L);var B=A.J("html5_always_log_rawlat");(L||B)&&A.Hn("rawlat",{l:EP(A.Yz,"rawlivelatency").toFixed(3)});A.wP=Date.now()}A.videoData.W&&WV(A.videoData.W)&&(L=A.Ur())&&L.videoHeight!==A.FM&&(A.FM=L.videoHeight,xq1(A,"a",NgD(A,A.videoData.wT)))}; NgD=function(A,L){if(L.N.video.quality==="auto"&&WV(L.getInfo())&&A.videoData.Nl)for(var B=g.m(A.videoData.Nl),f=B.next();!f.done;f=B.next())if(f=f.value,f.getHeight()===A.FM&&f.N.video.quality!=="auto")return f.getInfo();return L.getInfo()}; XlD=function(A){if(!HK(A.videoData))return NaN;var L=0;A.loader&&A.videoData.N&&(L=ta(A.videoData)?A.loader.wq.pw()||0:A.videoData.N.wT);return(0,g.bc)()/1E3-A.wX()-L}; d81=function(A){A.mediaElement&&A.mediaElement.QC()&&(A.RZ=(0,g.bc)());A.L.V8?g.gW(function(){D87(A)},0):D87(A)}; D87=function(A){var L;if((L=A.AF)==null||!L.PF()){if(A.mediaElement)try{A.un=A.mediaElement.playVideo()}catch(f){nR(A,"err."+f)}if(A.un){var B=A.un;B.then(void 0,function(f){if(!(g.x(A.playerState,4)||g.x(A.playerState,256)||A.un!==B||f&&f.name==="AbortError"&&f.message&&f.message.includes("load"))){var K="promise";f&&f.name&&(K+=";m."+f.name);nR(A,K);A.Rt=!0;A.videoData.Pz=!0}})}}}; nR=function(A,L){g.x(A.playerState,128)||(A.q8(b1(A.playerState,1028,9)),A.Hn("dompaused",{r:L}),A.publish("onAutoplayBlocked"))}; PY=function(A,L){L=L===void 0?!1:L;if(!A.mediaElement||!A.videoData.V)return!1;var B=L;B=B===void 0?!1:B;var f=null;var K;if((K=A.videoData.V)==null?0:K.N){f=KBQ(A,B);var V;(V=A.loader)==null||V.resume()}else ev(A),A.videoData.wT&&(f=A.videoData.wT.zx());K=A.mediaElement.g_();B=!1;K&&K.equals(f)||(Ij1(A,f),B=!0);g.x(A.playerState,2)||(f=A.M8,L=L===void 0?!1:L,f.D||!(f.V>0)||f.mediaElement&&f.mediaElement.getCurrentTime()>0||(L={zZ:"seektimeline_resumeTime",Cu:L},f.videoData.G||(L.seekSource=15),f.seekTo(f.V, L)));a:{L=B;if(iS(A.videoData)){if(!A.videoData.U6())break a}else if(!g.Cr(A.videoData))break a;if(A.mediaElement)if((f=A.videoData.D)&&A.mediaElement.wy()){K=A.mediaElement.Zg();if(A.Gq)if(K!==A.Gq.element)Ak(A);else if(L&&f.flavor==="fairplay"&&!zc())Ak(A);else break a;if(A.J("html5_report_error_for_unsupported_tvos_widevine")&&zc()&&f.flavor==="widevine")A.O9("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{A.Gq=new z0C(K,A.videoData,A.L,A.mediaElement);A.Gq.subscribe("licenseerror", A.FU,A);A.Gq.subscribe("qualitychange",A.pyr,A);A.Gq.subscribe("heartbeatparams",A.bV,A);A.Gq.subscribe("keystatuseschange",A.Cl,A);A.Gq.subscribe("ctmp",A.Hn,A);L=g.m(A.vE.keys);for(f=L.next();!f.done;f=L.next())f=A.vE.get(f.value),A.Gq.kD(f);A.J("html5_eme_loader_sync")||A.vE.removeAll()}}else A.O9("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return B}; Ij1=function(A,L){A.Rv.tick("vta");OC("vta",void 0,"video_to_ad");A.getCurrentTime()>0&&V2L(A.M8,A.getCurrentTime());A.mediaElement.activate(L);A.AF&&fs(4);!A.videoData.G&&A.playerState.isOrWillBePlaying()&&A.uv.start();if(eHk(A)){var B;if(L=(B=A.mediaElement)==null?void 0:B.audioTracks())L.onaddtrack=function(){AB8(A)},L.onremovetrack=function(){AB8(A)},L.onchange=function(){A.publish("internalaudioformatchange",A.videoData,!0)}}}; Ak=function(A){A.Gq&&(A.Gq.dispose(),A.Gq=null)}; wmy=function(A){var L=L===void 0?!1:L;A.mediaElement&&(A.AF?(Ak(A),A.GB(),KBQ(A,L)):(A.videoData.wT&&A.videoData.wT.B3(),A.mediaElement.stopVideo()),A.playVideo())}; pmk=function(A,L){A.L.J("html5_log_rebuffer_reason")&&(L={r:L,lact:rT()},A.mediaElement&&(L.bh=A.mediaElement.vu()),A.Hn("bufreason",L))}; yBe=function(A,L){if(A.L.hw()&&A.mediaElement){var B=A.mediaElement.Ov();B.omt=(A.mediaElement.getCurrentTime()+A.pY()).toFixed(3);B.ps=A.playerState.state.toString(16);B.rt=(g.Ci(A.CY.provider)*1E3).toFixed();B.e=L;A.eF[A.AQ++%5]=B}}; jS6=function(A){if(A.L.hw()){A.eF.sort(function(f,K){return+f.rt-+K.rt}); for(var L=g.m(A.eF),B=L.next();!B.done;B=L.next())B=B.value,A.Hn("vpe",Object.assign({t:B.rt},B));A.eF=[];A.AQ=0}}; gkQ=function(A){if(g.xz("cobalt")&&g.xz("nintendo switch")){var L=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;A.Hn("nxdock",{d:L})}}; ac=function(A,L){var B;(B=A.loader)==null||cjL(B,L)}; YhC=function(A){Rh(A.videoData,"html5_set_debugging_opt_in")&&(A=g.v9(),A.Iv(183)||(P9(183,!0),A.save()))}; GLw=function(A){return A.J("html5_remove_ios_7_hack_force_play")}; aI6=function(A,L){A.gf.qV()||(A.Hn("sgap",{f:L}),A.gf.clearQueue(!1,L==="pe"))}; CR=function(A){return A.J("html5_disable_video_player_initiated_seeks")&&iS(A.videoData)}; rBy=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);wh(this.api,"isLifaAdPlaying",function(){return L.api.isLifaAdPlaying()}); this.events.Y(A,"serverstitchedvideochange",function(){var B;(B=L.api.getVideoData())!=null&&B.aA()&&(L.api.isLifaAdPlaying()?(L.playbackRate=L.api.getPlaybackRate(),L.api.setPlaybackRate(1)):L.api.setPlaybackRate(L.playbackRate))}); this.playbackRate=1}; Ll=function(A){Dq.call(this,"En bucle",g.gC.bP);this.S=A;var L=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:FuQ();this.setIcon(L);this.subscribe("select",this.W,this);A.createClientVe(this.element,this,28661);this.Y(A,"settingsMenuVisibilityChanged",this.N);this.listen("click",this.logClick);this.Y(A,"onLoopChange",this.onLoopChange);dC(this,A.getLoopVideo());A.gB().ov(this)}; sSD=function(A){VC.call(this,A);var L=this;A.addEventListener("settingsMenuInitialized",function(){L.menuItem||(L.menuItem=new Ll(L.api),g.W(L,L.menuItem))}); A.addEventListener("videodatachange",function(B,f){B=L.api.getPresentingPlayerType()===2;var K;(K=L.menuItem)==null||K.xP(!f.isLivePlayback&&!B)})}; HiD=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);wh(this.api,"seekToChapterWithAnimation",function(B){L.seekToChapterWithAnimation(B)}); wh(this.api,"seekToTimeWithAnimation",function(B,f){L.seekToTimeWithAnimation(B,f)}); wh(this.api,"renderChapterSeekingAnimation",function(B,f,K){L.api.renderChapterSeekingAnimation(B,f,K)}); wh(this.api,"setMacroMarkers",function(B){L.setMacroMarkers(A,B)}); wh(this.api,"changeMarkerVisibility",function(B,f,K){L.changeMarkerVisibility(B,f,K)}); wh(this.api,"isSameMarkerTypeVisible",function(B){return L.isSameMarkerTypeVisible(B)})}; hTv=function(A,L,B){var f=A.api.getCurrentTime()*1E30;)switch(L=Z3.shift(),L.type){case "ERROR":Rl.M4(L.payload);break;case "EVENT":Rl.logEvent(L.eventType,L.payload)}}); wh(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));wh(this.api,"updateDownloadState",this.updateDownloadState.bind(this));wh(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));wh(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));wh(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));wh(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));wh(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; Ekw=function(A){VC.call(this,A);var L=this;this.loaded=!1;this.overlay=null;this.events=new g.dN(A);g.W(this,this.events);this.N=new g.dN(A);g.W(this,this.N);this.events.Y(A,"modulesCreated",function(){L.wR()&&L.load()}); this.events.Y(A,"modulesDestroyed",function(B){var f=!0;switch(B){case 2:case 3:f=!1;break;case 4:f=L.api.getPresentingPlayerType()===1}f&&L.unload()})}; Vp=function(A){VC.call(this,A);var L=this;wh(A,"getAvailableQualityData",function(){return L.getAvailableQualityData()}); wh(A,"getAvailableQualityDataAndMessaging",function(){return L.getAvailableQualityDataAndMessaging()})}; cBC=function(A,L,B){var f=[],K=L?156595:151874;A=g.m(A);for(var V=A.next();!V.done;V=A.next()){var J=V.value;V=J.video;J={formatId:J.id,qualityLabel:V.qualityLabel,quality:V.quality,isPlayable:L};if(V=B.get(V.qualityLabel))J.paygatedQualityDetails={paygatedIndicatorText:V.paygatedIndicatorText,endpoint:V.endpoint,veType:K,trackingParams:V.trackingParams};f.push(J)}return f}; Mnk=function(A){for(var L=0,B=0;B0&&K>0&&(B.width+=K,g.Kv(L.element,"width",B.width+"px")));A.size=B}}; g.yp=function(A,L){var B=A.N[A.N.length-1];B!==L&&(A.N.push(L),KIS(A,B,L))}; g.js=function(A){if(!(A.N.length<=1)){var L=A.N.pop(),B=A.N[0];A.N=[B];KIS(A,L,B,!0)}}; KIS=function(A,L,B,f){Vvw(A);L&&(L.unsubscribe("size-change",A.oN,A),L.unsubscribe("back",A.h2,A));B.subscribe("size-change",A.oN,A);B.subscribe("back",A.h2,A);if(A.bC){g.R1(B.element,f?"ytp-panel-animate-back":"ytp-panel-animate-forward");B.DM(A.content);B.focus();A.element.scrollLeft=0;A.element.scrollTop=0;var K=A.size;f5L(A);g.wK(A.element,K);A.V=new g.aa(function(){Jte(A,L,B,f)},20,A); A.V.start()}else B.DM(A.content),L&&L.detach()}; Jte=function(A,L,B,f){A.V.dispose();A.V=null;g.R1(A.element,"ytp-popup-animating");f?(g.R1(L.element,"ytp-panel-animate-forward"),g.NH(B.element,"ytp-panel-animate-back")):(g.R1(L.element,"ytp-panel-animate-back"),g.NH(B.element,"ytp-panel-animate-forward"));g.wK(A.element,A.size);A.U=new g.aa(function(){g.NH(A.element,"ytp-popup-animating");L.detach();g.Fq(L.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);A.U.dispose();A.U=null},250,A); A.U.start()}; Vvw=function(A){A.V&&g.LK(A.V);A.U&&g.LK(A.U)}; gA=function(A){g.pl.call(this,A,"ytp-shopping-product-menu");this.NU=new g.Im(this.S);g.W(this,this.NU);this.hide();g.yp(this,this.NU);g.Wh(this.S,this.element,4)}; R_Q=function(A,L,B){var f,K=L==null?void 0:(f=L.text)==null?void 0:f.simpleText;K&&(B=SPQ(A,B,K,L==null?void 0:L.icon,L==null?void 0:L.secondaryIcon),L.navigationEndpoint&&B.listen("click",function(){A.S.Kr("innertubeCommand",L.navigationEndpoint);A.hide()},A))}; ZRL=function(A,L,B){var f,K=L==null?void 0:(f=L.text)==null?void 0:f.simpleText;K&&SPQ(A,B,K,L==null?void 0:L.icon).listen("click",function(){var V;(L==null?void 0:(V=L.icon)==null?void 0:V.iconType)==="HIDE"?A.S.publish("featuredproductdismissed"):L.serviceEndpoint&&A.S.Kr("innertubeCommand",L.serviceEndpoint);A.hide()},A)}; SPQ=function(A,L,B,f,K){L=new g.of(g.Bo({},[],!1,!!K),L,B);K&&L.updateValue("secondaryIcon",Nwe(K));L.setIcon(Nwe(f));g.W(A,L);A.NU.ov(L,!0);return L}; Nwe=function(A){if(!A)return null;switch(A.iconType){case "ACCOUNT_CIRCLE":return{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{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",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{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 sW();case "HIDE":return{Z:"svg",C:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"g",B:[{Z:"path",C:{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 tr()}}; Gt=function(A){DW.call(this,A,!1,!0);this.isCounterfactual=this.V=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.X=!0;this.overflowButton=new g.q({Z:"button",Rr:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.W(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.q({Z:"img",j:"ytp-suggested-action-badge-img",C:{src:"{{url}}"}}); this.thumbnailImage.hide();g.W(this,this.thumbnailImage);this.thumbnailIcon=new g.q({Z:"div",j:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.W(this,this.thumbnailIcon);this.banner=new g.q({Z:"a",j:"ytp-suggested-action-container",B:[this.thumbnailImage,this.thumbnailIcon,{Z:"div",j:"ytp-suggested-action-details",B:[{Z:"text",j:"ytp-suggested-action-title",Ir:"{{title}}"},{Z:"text",j:"ytp-suggested-action-subtitle",Ir:"{{subtitle}}"},{Z:"text",j:"ytp-suggested-action-metadata-text", Ir:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.W(this,this.banner);this.banner.DM(this.U.element);this.Y(this.S,"videodatachange",this.onVideoDataChange);this.Y(this.S,g.qR("suggested_action_view_model"),this.g64);this.Y(this.S,g.PR("suggested_action_view_model"),this.n6D);this.Y(this.overflowButton.element,"click",this.u6);this.Y(A,"featuredproductdismissed",this.qb);this.S.createServerVe(this.banner.element,this.banner,!0)}; FIS=function(A){A.isInitialized&&(A.enabled=A.isVisible,A.qp=A.isVisible,F7(A),A.B9(),A.thumbnailImage.xP(A.isVisible),A.shouldHideDismissButton||A.dismissButton.xP(A.isVisible),A.shouldShowOverflowButton&&A.overflowButton.xP(A.isVisible))}; rA=function(){Gt.apply(this,arguments)}; D9D=function(A){VC.call(this,A);this.N=new rA(this.api);g.W(this,this.N);g.Wh(this.api,this.N.element,4)}; sq=function(A){VC.call(this,A);var L=this;this.N=!0;var B=new g.dN(A);g.W(this,B);B.Y(A,"internalaudioformatchange",function(f,K){d9w(L,f,K)}); B.Y(A,"annotationvisibility",function(f){L.api.J("web_fix_annotations")&&I57(L,(294).toString(),{boolValue:f})}); B.Y(A,"videoplayerreset",function(){wY6(L)}); B.Y(A,"videodatachange",function(f,K){L.onVideoDataChange(f,K)})}; d9w=function(A,L,B){if(B){var f="";pY6(A,L)&&(f=L,A.api.K().cn=L);if(f&&ytk(A,f)){IDk(A.api,f);var K;A2(y3(A.api.K(),(K=A.api.getVideoData())==null?void 0:g.Aj(K)),function(V){var J=f;jc1(V)!==J&&I57(A,gHw(V),{stringValue:J})})}}}; wY6=function(A){var L;if((L=l6())==null?0:L.size){var B;A2(y3(A.api.K(),(B=A.api.getVideoData())==null?void 0:g.Aj(B)),function(f){(f=jc1(f))&&ytk(A,f)&&(A.api.K().cn=f)})}}; rtE=function(A,L){LP(A2(A2(A.dh(),function(B){return auE(B,[gHw(L)])}),function(B){if(B){B=g.m(B); for(var f=B.next();!f.done;f=B.next()){var K=f.value;f=K.key;K=K.value;f&&K&&(GaE([{settingItemId:f,settingOptionValue:K}]),wY6(A))}}}),function(){A.N=!0})}; pY6=function(A,L){A=A.api.getAvailableAudioTracks();A=g.m(A);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.getLanguageInfo().getId()===L)return B;return null}; jc1=function(A){A=gHw(A);var L=l6();A=L?L.get(A):void 0;return A&&A.stringValue?A.stringValue:""}; gHw=function(A){var L=(484).toString();A&&(L=(483).toString());return L}; ytk=function(A,L){var B;return L.split(".")[0]!==""&&((B=A.api.getVideoData())==null?void 0:!oh(B))}; I57=function(A,L,B){GaE([{settingItemId:L,settingOptionValue:B}]);A2(A.dh(),function(f){LeE(f,L,B)})}; GaE=function(A){var L=l6();L||(L=new Map);A=g.m(A);for(var B=A.next();!B.done;B=A.next())B=B.value,L.set(B.settingItemId,B.settingOptionValue);L=JSON.stringify(Object.fromEntries(L));g.OS("yt-player-user-settings",L,2592E3)}; sce=function(){this.label="Con doblaje autom\u00e1tico"}; g.He=function(A,L,B,f,K,V,J){g.of.call(this,g.Bo({"aria-haspopup":"true"}),L,A);this.Wz=f;this.D=!1;this.GP=null;this.options={};this.rf=new g.Im(B,void 0,A,K,V,J);g.W(this,this.rf);this.listen("keydown",this.A2);this.listen("click",this.open)}; HRy=function(A){if(A.GP){var L=A.options[A.GP];L.element.getAttribute("aria-checked");L.element.setAttribute("aria-checked","false");A.GP=null}}; h_L=function(A,L){g.wA(A.rf);for(var B={},f=!1,K=0;KF.start&&B>=5;r+=Q}K=r.substr(0,4)+" "+r.substr(4,4)+" "+r.substr(8,4)+" "+(r.substr(12,4)+" "+r.substr(16,4))}else K="";J={video_id_and_cpn:String(L.videoId)+" / "+K,codecs:"",dims_and_frames:"",bandwidth_kbps:J.toFixed(0)+" Kbps",buffer_health_seconds:Z.toFixed(2)+" s", date:""+(new Date).toString(),drm_style:N?"":"display:none",drm:N,debug_info:B,extra_debug_info:"",bandwidth_style:I,network_activity_style:I,network_activity_bytes:R.toFixed(0)+" KB",shader_info:D,shader_info_style:D?"":"display:none",playback_categories:""};R=f.clientWidth+"x"+f.clientHeight+(F>1?"*"+F.toFixed(2):"");Z="-";V.totalVideoFrames&&(Z=(V.droppedVideoFrames||0)+" dropped of "+V.totalVideoFrames);J.dims_and_frames=R+" / "+Z;A=A.getVolume();R=QU6(L);var C;if((C=L.U)==null?0:C.audio.W)C= "VB";else{var O;C=((O=L.U)==null?0:O.audio.N)?"DRC":Math.round(A*R)+"%"}O=Math.round(A)+"% / "+C;C=L.EQ.toFixed(1);isFinite(Number(C))&&(O+=" (content loudness "+C+"dB)");J.volume=O;J.resolution=f.videoWidth+"x"+f.videoHeight;if(f=L.W){if(O=f.video)C=O.fps,C>1&&(J.resolution+="@"+C),(C=V.TY)&&C.video&&(J.resolution+=" / "+C.video.width+"x"+C.video.height,C.video.fps>1&&(J.resolution+="@"+C.video.fps)),J.codecs=ORE(f),!L.U||f.audio&&f.video?f.GO&&(J.codecs+=" / "+f.GO+"A"):J.codecs+=" / "+ORE(L.U), O.N||O.primaries?(C=O.N||"unknown",C==="smpte2084"?C+=" (PQ)":C==="arib-std-b67"&&(C+=" (HLG)"),J.color=C+" / "+(O.primaries||"unknown"),J.color_style=""):J.color_style="display:none";if(f.debugInfo)for(J.fmt_debug_info="",f=g.m(f.debugInfo),O=f.next();!O.done;O=f.next())O=O.value,J.fmt_debug_info+=O.label+":"+O.text+" ";J.fmt_debug_info_style=J.fmt_debug_info&&J.fmt_debug_info.length>0?"":"display:none"}f=L.isLivePlayback;O=L.SD;J.live_mode_style=f||O?"":"display:none";J.live_latency_style=f?"": "display:none";if(O)J.live_mode="Post-Live"+(ta(L)?" Manifestless":"");else if(f){O=V.xd;J.live_latency_secs=O.toFixed(2)+"s";f=ta(L)?"Manifestless, ":"";L.hd&&(f+="Windowed, ");C="Uncertain";if(O>=0&&O<120)if(L.latencyClass&&L.latencyClass!=="UNKNOWN")switch(L.latencyClass){case "NORMAL":C="Optimized for Normal Latency";break;case "LOW":C="Optimized for Low Latency";break;case "ULTRALOW":C="Optimized for Ultra Low Latency";break;default:C="Unknown Latency Setting"}else C=L.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";f+=C;(O=V.sz)&&(f+=", seq "+O.sequence);J.live_mode=f}!V.isGapless||pr(L)&&V.qV||(J.playback_categories+="Gapless ");J.playback_categories_style=J.playback_categories?"":"display:none";J.bandwidth_samples=V.jp;J.network_activity_samples=V.jl;J.live_latency_samples=V.aR;J.buffer_health_samples=V.pJ;V=g.Jj(L);if(L.cotn||V)J.cotn_and_local_media=(L.cotn?L.cotn:"null")+" / "+V;J.cotn_and_local_media_style=J.cotn_and_local_media?"":"display:none"; Rh(L,"web_player_release_debug")?(J.release_name=S[5],J.release_style=""):J.release_style="display:none";J.debug_info&&d.length>0&&J.debug_info.length+d.length<=60?J.debug_info+=" "+d:J.extra_debug_info=d;J.extra_debug_info_style=J.extra_debug_info&&J.extra_debug_info.length>0?"":"display:none";return J}; ORE=function(A){var L=/codecs="([^"]*)"/.exec(A.mimeType);return L&&L[1]?L[1]+" ("+A.itag+")":A.itag}; X7=function(A,L,B,f,K){g.q.call(this,{Z:"div",j:"ytp-horizonchart"});this.T=L;this.sampleCount=B;this.U=f;this.D=K;this.index=0;this.heightPx=-1;this.V=this.W=null;this.N=Math.round(A/B);this.element.style.width=this.N*this.sampleCount+"px";this.element.style.height=this.T+"em"}; Oq=function(A,L){if(A.heightPx===-1){var B=null;try{B=g.TO("CANVAS"),A.W=B.getContext("2d")}catch(R){}if(A.W){var f=A.N*A.sampleCount;A.V=B;A.V.width=f;A.V.style.width=f+"px";A.element.appendChild(A.V)}else for(A.sampleCount=Math.floor(A.sampleCount/4),A.N*=4,B=0;B1?2:1,A.V.height=A.heightPx*B,A.V.style.height= A.heightPx+"px",A.W.scale(1,B)));L=g.m(L);for(f=L.next();!f.done;f=L.next()){B=A;var K=A.index,V=f.value;for(f=0;f+20&&g.Ql(L.W.element);f.classList.add("ytp-timely-actions-overlay");L.W.element.appendChild(f)}); g.W(this,this.W);this.J("web_player_overlay_positioned_layout")?this.events.Y(A,"basechromeinitialized",function(){L.api.Tt(L.W.element,4,!0);L.W.element.setAttribute("data-overlay-order","10")}):g.Wh(this.api,this.W.element,4)}; AkQ=function(A){A.timelyActions&&(A.U=A.timelyActions.reduce(function(L,B){if(B.cueRangeId===void 0)return L;L[B.cueRangeId]=0;return L},{}))}; Y8=function(A,L){if(A.timelyActions){A=g.m(A.timelyActions);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.cueRangeId===L)return B}}; LSS=function(A,L){if((A=Y8(A,L))&&A.onCueRangeExit)return EF(A.onCueRangeExit)}; nHL=function(A,L){return A.V===void 0?!1:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(L.seekLengthMilliseconds)===5E3?A.V===72:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(L.seekLengthMilliseconds)===1E4?A.V===74:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(L.seekLengthMilliseconds)===5E3?A.V===71:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(L.seekLengthMilliseconds)===1E4?A.V===73:!1}; o8L=function(A,L){var B=Number(L==null?void 0:L.maxVisibleDurationMilliseconds);B&&(Uq(A),A.qp=setTimeout(function(){if(A.N!==void 0&&(L==null?void 0:L.cueRangeId)===A.N){A.yj=!1;var f=LSS(A,A.N);f&&A.api.Kr("innertubeCommand",f)}},B))}; Uq=function(A){A.qp&&clearTimeout(A.qp);A.qp=void 0;A.yj=!1}; z_w=function(A){if(A=A.getWatchNextResponse()){var L,B;A=(L=A.playerOverlays)==null?void 0:(B=L.playerOverlayRenderer)==null?void 0:B.timelyActionsOverlayViewModel;L=g.y(A,BAE);if(L!=null&&L.timelyActions)return L==null?void 0:L.timelyActions.map(function(f){return g.y(f,fWQ)}).filter(function(f){return!!f})}}; KSS=function(A){VC.call(this,A);var L=this;pm(this.api,"getPlaybackRate",function(){return L.api.getPlaybackRate()}); pm(this.api,"setPlaybackRate",function(B){typeof B==="number"&&L.api.setPlaybackRate(B)})}; We=function(A,L,B,f){Dq.call(this,"Mejora de voces",g.gC.oi);this.S=A;this.V=L;this.W=B;this.getVoiceBoostState=f;this.N=!1;this.Wz=this.S.J("html5_enable_new_audio_settings_menu")?A.gB().Wb:A.gB();this.Y(A,"onFilterAudioFeatures",this.f8);this.setIcon({Z:"svg",C:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]}); this.subscribe("select",this.U,this);this.f8()}; ve=function(A){VC.call(this,A);var L=this;this.events=new g.dN(A);g.W(this,this.events);var B=this.api.J("html5_enable_voice_boost");B&&this.events.Y(A,"settingsMenuInitialized",function(){Vs0(L)}); wh(this.api,"getVoiceBoostUserPreference",function(){return B?L.getVoiceBoostUserPreference():0}); wh(this.api,"setVoiceBoostUserPreference",function(K){B&&L.setVoiceBoostUserPreference(K)}); wh(this.api,"getVoiceBoostState",function(){return B?L.getVoiceBoostState():1}); var f;this.N=(f=j6L())!=null?f:0;this.updateEnvironmentData()}; Vs0=function(A){A.menuItem||(A.menuItem=new We(A.api,function(L){A.setVoiceBoostUserPreference(L)},function(){return A.getVoiceBoostUserPreference()},function(){return A.getVoiceBoostState()}),g.W(A,A.menuItem))}; Jk0=function(A){A=A.MQ();if(!A)return!1;A=g.RM(A).exp||"";return A.includes("xpv")||A.includes("xpe")}; SqQ=function(A){A=g.m(g.qQ(A,!0));for(var L=A.next();!L.done;L=A.next())if(Jk0(L.value))return!0;return!1}; R16=function(A,L){A=g.m(g.qQ(A,!0));for(var B=A.next();!B.done;B=A.next())if(B=B.value,Jk0(B)){var f={potc:"1",pot:L};B.url&&(B.url=Zp(B.url,f))}}; Zl1=function(A){return g.c(function(L){if(L.N==1)return g.S5(L,2),g.X(L,A,4);if(L.N!=2)return g.ZR(L,0);g.NX(L);g.VK(L)})}; Pe=function(A){VC.call(this,A);var L=this;this.useLivingRoomPoToken=!1;this.D=new g.IQ;this.N=!1;this.Rv=null;this.X=!1;this.U=null;this.T=!1;var B=A.K().getWebPlayerContextConfig();this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"spsumpreject",function(K,V,J){L.T=V;K&&L.X&&!L.U&&(L.J("html5_generate_content_po_token")&&J?L.HG(J):L.J("html5_generate_session_po_token")&&NA7(L));L.U||L.api.Hn("stp",{s:+L.X,b:+L.T})}); this.events.Y(A,"poTokenVideoBindingChange",function(K){L.HG(K)}); if(this.J("html5_web_po_on_demand_init"))var f=this.events.Y(A,"videodatachange",function(K,V){V.Es&&!L.X&&(FS7(L),L.events.J$(f))}); this.useLivingRoomPoToken=!(B==null||!B.useLivingRoomPoToken);A.addEventListener("csiinitialized",function(){L.Rv=A.zH();L.J("html5_web_po_on_demand_init")?L.V=n16():FS7(L)}); A.addEventListener("trackListLoaded",this.bW.bind(this));A.qC(this)}; FS7=function(A){var L=(A.J("html5_generate_session_po_token")||A.J("html5_generate_content_po_token"))&&!A.useLivingRoomPoToken;try{if(A.J("html5_use_shared_owl_instance"))DQQ(A);else if(L){A.Rv.Nq("pot_isc");var B=g.Am(A.api.K().experiments,"html5_webpo_kaios_defer_timeout_ms");B?(dQ6(A),g.gW(function(){x8(A)},B)):A.J("html5_webpo_idle_priority_job")?(dQ6(A),g.AR(g.ol(),function(){x8(A)})):x8(A)}}catch(f){f instanceof Error&&g.CE(f)}}; IWS=function(A){var L=sR(A.experiments,"html5_web_po_request_key");return L?L:g.wY(A)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; weE=function(A){var L=new TVk,B={},f=(B["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",B);return new GX(L,A,function(){return f})}; peE=function(A){return new rs(A)}; es=function(A,L){A.J("html5_webpo_bge_ctmp")&&A.api.Hn(L,{hwpo:!!A.W,hwpor:A.N})}; DQQ=function(A){var L,B;g.c(function(f){if(f.N==1)return es(A,"swpo_i"),dQ6(A),nl(A),g.X(f,Za(),2);if(f.N!=3)return L=f.W,es(A,"swpo_co"),g.X(f,KVe(L),3);B=f.W;A.J("html5_web_po_token_disable_caching")||B.Ax(150);A.W=B;es(A,"swpo_cc");Zl1(B.Vm()).then(function(){A.N=!0;A.D.resolve();es(A,"swpo_re")}); g.gW(function(){x8(A);es(A,"swpo_si")},0); g.VK(f)})}; jmk=function(A){var L=A.api.K(),B=IWS(L);B=weE(B);var f=B.Ix.bind(B);B.Ix=function(R){var Z;return g.c(function(N){if(N.N==1)return g.X(N,f(R),2);Z=N.W;A.api.Hn("itr",{});return N.return(Z)})}; try{var K=peE({Ni:B,S7:{maxAttempts:5},iz:{NP:"CLEn",disable:L.experiments.GL("html5_web_po_disable_remote_logging"),eB:SJ6(L.experiments),CL:function(R){var Z=yky.get(R);Z||(Z=new xED(R),Z=new g.UE(Z),yky.set(R,Z));return Z}, zTj:A.J("wpo_dis_lfdms")?0:1E3},r$1:g.CE});var V=new YM({Bo:K,Ni:B,onError:g.CE});Zl1(V.Vm()).then(function(){A.N=!0;A.D.resolve()}); A.J("html5_web_po_token_disable_caching")||V.Ax(150);g.W(A,K);g.W(A,V);A.W=V}catch(R){g.CE(R);var J;(J=K)==null||J.dispose()}}; x8=function(A){var L=A.api.K();A.Rv.Nq("pot_ist");A.W||jmk(A);A.J("html5_bandaid_attach_content_po_token")||(A.J("html5_generate_session_po_token")&&(nl(A),NA7(A)),L=g.Am(L.experiments,"html5_session_po_token_interval_time_ms")||0,L>0&&(A.G=g.Gc(function(){nl(A)},L)),A.X=!0)}; nl=function(A){var L,B,f,K;g.c(function(V){if(!A.J("html5_generate_session_po_token")||A.useLivingRoomPoToken)return V.return();L=A.api.K();B=g.A_("EOM_VISITOR_DATA")||g.A_("VISITOR_DATA");f=L.I_?L.datasyncId:B;K=sR(L.experiments,"html5_mock_content_binding_for_session_token")||L.livingRoomPoTokenId||f;L.mC=zt(A,K);g.VK(V)})}; zt=function(A,L){if(!A.W){if(A.V)try{return A.V(L)}catch(V){g.CE(V)}return""}try{A.Rv.Nq(A.N?"pot_cms":"pot_csms");var B={Ra:!0,Sl:!0,WL:L};A.J("html5_web_po_token_disable_caching")||(B.Ct={yT:L,m0:!0,dC:!0});var f=A.W.Mu(B);A.Rv.Nq(A.N?"pot_cmf":"pot_csmf");if(A.N){var K;(K=A.U)==null||K.resolve();A.U=null;A.T&&(A.T=!1,A.api.app.e4().Qt(!1))}return f}catch(V){return g.CE(V),""}}; NA7=function(A){A.W&&(A.U=new yV,A.D.promise.then(function(){A.Rv.Nq("pot_if");nl(A)}))}; dQ6=function(A){A.V||(A.V=n16())}; uu=function(A){g.q.call(this,{Z:"div",Rr:["ytp-more-videos-button","ytp-button"],C:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},B:[{Z:"div",j:"ytp-more-videos-button-thumbnail"},{Z:"span",j:"ytp-more-videos-button-title",Ir:"{{title}}"}]});this.S=A;this.W=this.m4("ytp-more-videos-button-thumbnail");this.V=this.m4("ytp-more-videos-button-title");this.N=new g.dN(this);g.W(this,this.N);this.N.Y(this.S,"videodatachange",this.Mx);this.Mx();this.listen("click",this.onClick);g8E(this, 0);this.hide()}; g8E=function(A,L){switch(L){case 2:L="Ocultar videos";var B="Hide recommendations grid";break;default:L="M\u00e1s videos",B="Show recommendations grid"}A.updateValue("title",L);A.element.ariaLabel=B;A.V.textContent=L}; g.am=function(A,L,B){g.D1(A.element,"ytp-suggestion-set",!!L.videoId);var f=L.playlistId;B=L.g1(B?B:"mqdefault.jpg");var K=null,V=null;L instanceof cN&&(L.lengthText?(K=L.lengthText||null,V=L.CZ||null):L.lengthSeconds&&(K=g.hG(L.lengthSeconds),V=g.hG(L.lengthSeconds,!0)));var J=!!f;f=J&&Oe(f).type==="RD";var R=L instanceof cN?L.isLivePlayback:null,Z=L instanceof cN?L.isUpcoming:null,N=L.author,F=L.shortViewCount,D=L.publishedTimeText,I=[],d=[];N&&I.push(N);F&&(I.push(F),d.push(F));D&&d.push(D);B= {title:L.title,author:N,author_and_views:I.join(" \u2022 "),aria_label:L.ariaLabel||g.B$("Ver $TITLE",{TITLE:L.title}),duration:K,timestamp:V,url:L.Ej(),is_live:R,is_upcoming:Z,is_list:J,is_mix:f,background:B?"background-image: url("+B+")":"",views_and_publish_time:d.join(" \u2022 "),autoplayAlternativeHeader:L.Eh};L instanceof Ee&&(B.playlist_length=L.playlistLength);A.update(B)}; g.Aq=function(A){var L=A.K(),B=g.Z2||g.ER?{style:"will-change: opacity"}:void 0,f=L.U,K=["ytp-modern-videowall-still"];L.W&&K.push("ytp-videowall-show-text");g.q.call(this,{Z:"a",Rr:K,C:{href:"{{url}}",target:f?L.yj:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},B:[{Z:"div",j:"ytp-modern-videowall-still-image",C:{style:"{{background}}"},B:[{Z:"span",j:"ytp-modern-videowall-still-info-duration",Ir:"{{duration}}"}]},{Z:"span",j:"ytp-modern-videowall-still-info", C:{"aria-hidden":"true"},B:[{Z:"span",j:"ytp-modern-videowall-still-info-bg",B:[{Z:"span",j:"ytp-modern-videowall-still-info-content",C:B,B:[{Z:"span",j:"ytp-modern-videowall-still-info-title",Ir:"{{title}}"},{Z:"span",j:"ytp-modern-videowall-still-info-author",Ir:"{{author}}"},{Z:"span",j:"ytp-modern-videowall-still-view-count-and-date-info",Ir:"{{views_and_publish_time}}"},{Z:"span",j:"ytp-modern-videowall-still-info-live",Ir:"En vivo"}]}]}]},{Z:"span",Rr:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],C:{"aria-hidden":"true"},B:[{Z:"span",j:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{Z:"span",j:"ytp-modern-videowall-still-listlabel-length",B:[" (",{Z:"span",Ir:"{{playlist_length}}"},")"]}]},{Z:"span",Rr:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],C:{"aria-hidden":"true"},B:[{Z:"span",j:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{Z:"span",j:"ytp-modern-videowall-still-listlabel-length",Ir:" (50+)"}]}]}); this.suggestion=null;this.W=f;this.api=A;this.N=new g.dN(this);g.W(this,this.N);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.N.Y(A,"videodatachange",this.onVideoDataChange);A.createServerVe(this.element,this);this.onVideoDataChange()}; g.GtC=function(A,L){if(A.suggestion!==L){A.suggestion=L;var B=A.api.K(),f="hqdefault.jpg";L.g1("sddefault.jpg")&&(f="sddefault.jpg");g.am(A,L,f);g.MM(B)&&!A.api.J("web_player_log_click_before_generating_ve_conversion_params")&&(B=L.Ej(),f={},g.jg(A.api,"addEmbedsConversionTrackingParams",[f]),B=g.ip(B,f),A.updateValue("url",B));(L=(L=L.sessionData)&&L.itct)&&A.api.setTrackingParams(A.element,L)}}; rke=function(A,L){var B=A.J("web_player_use_more_videos_button");g.q.call(this,{Z:"div",Rr:["ytp-fullscreen-grid"],B:[{Z:"div",j:"ytp-fullscreen-grid-hover-overlay",C:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-70"}},{Z:"div",j:"ytp-fullscreen-grid-buttons-container",B:B?[]:[{Z:"button",Rr:["ytp-fullscreen-grid-expand-button","ytp-button"],C:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}", "data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},B:["{{icon}}"]}]},{Z:"div",j:"ytp-fullscreen-grid-main-content",B:[{Z:"div",j:"ytp-fullscreen-grid-stills-container"}]}]});this.player=A;this.stills=[];this.videoData=null;this.currentState=0;this.T=B;this.qp=this.player.J("web_player_use_external_grid_component");(this.ZM=this.player.J("web_player_enable_horizontal_endscreen_shelf"))&&g.R1(this.player.getRootNode(),"ytp-enable-horizontal-endscreen-shelf"); this.U=this.m4("ytp-fullscreen-grid-main-content");this.Wn=this.m4("ytp-fullscreen-grid-stills-container");this.G=this.m4("ytp-fullscreen-grid-buttons-container");this.T&&(this.D=new uu(this.player),this.G.appendChild(this.D.element),g.W(this,this.D),this.Y(this.D.element,"click",this.US));this.qp&&(this.Wn.style.display="none");this.X=new g.dN(this);g.W(this,this.X);this.Vj=L;if(this.U&&this.Wn){if(A=this.m4("ytp-fullscreen-grid-hover-overlay"))this.Y(A,"click",this.US),Cm(this.player,A,this);!this.T&& (A=this.m4("ytp-fullscreen-grid-expand-button"))&&(this.Y(A,"click",this.US),Cm(this.player,A,this));if(A=this.player.getVideoData(1))this.videoData=A;this.player.createClientVe(this.U,this,223051);this.X.Y(this.player,"videodatachange",this.onVideoDataChange)}}; smL=function(A,L){var B="",f=g.iz(A.player,"M\u00e1s videos","v");L===2?B="Ocultar videos":L===1&&(B="M\u00e1s videos");A.element.setAttribute("title",f);A.element.setAttribute("data-title-no-tooltip",B);A.element.setAttribute("aria-label",B);if(L=A.m4("ytp-fullscreen-grid-hover-overlay"))L.setAttribute("title",f),L.setAttribute("data-title-no-tooltip",B),L.setAttribute("aria-label",B);!A.T&&(L=A.m4("ytp-fullscreen-grid-expand-button"))&&(L.setAttribute("title",f),L.setAttribute("data-title-no-tooltip", B),L.setAttribute("aria-label",B));A.player.qq()}; h1L=function(A){VC.call(this,A);var L=this;this.T=this.N=this.V=0;this.G=null;this.X=this.D=0;this.isEnded=!1;this.Wn=null;var B=new g.dN(A);g.W(this,B);this.Vj=g.Am(this.api.K().experiments,"web_player_default_peeking_px");this.JF=this.api.J("delhi_modern_player_enable_pause_peeking");this.S4=g.Am(this.api.K().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.Ys=this.api.J("web_player_imax_theater_mode");this.U=this.api.J("web_player_enable_fullscreen_grid_components");this.wT=this.api.J("web_player_enable_more_videos_button"); this.ZM=this.api.J("web_player_use_external_grid_component");g.R1(this.api.getRootNode(),"ytp-grid-scrollable");B.Y(A,"fullscreentoggled",function(){Lj(L)}); B.Y(A,"videodatachange",function(){if(L.U){var f=L.api.getVideoData(1);L.videoData!==f&&L.V===2&&(g.NH(L.api.getRootNode(),"ytp-grid-scrolling"),o_(L,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));L.videoData=f}},this); B.Y(A,"sizestylechange",function(){L.U&&Lj(L)}); wh(this.api,"setFullscreenQuickActions",function(f){L.setFullscreenQuickActions(f)}); wh(this.api,"setPlayerOverlayVideoDetailsRenderer",function(f){L.setPlayerOverlayVideoDetailsRenderer(f)}); this.ZM&&wh(this.api,"setFullscreenGrid",function(f){L.setFullscreenGrid(f)}); wh(this.api,"setCommentsButton",function(f){L.setCommentsButton(f)}); wh(this.api,"setDescriptionButton",function(f){L.setDescriptionButton(f)}); this.U&&Hl0(this,B,A)}; Hl0=function(A,L,B){L.Y(B,"keyboardserviceglobalkeydown",function(f,K){A.U&&f.keyCode===86&&!f.repeat&&A.V!==0&&(K&&(K.u$=!0),A.LU("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); L.Y(A.api.getRootNode(),"wheel",function(f){if(!A.Wn){var K;if(A.U&&(K=A.W)!=null&&K.element&&!g.x(A.api.getPlayerStateObject(),2)&&A.V!==0&&BB(A))if(g.R1(A.api.getRootNode(),"ytp-grid-scrolling"),A.D===0&&(A.D=window.innerHeight),A.V===1)A.D!==0&&(A.N+=f.deltaY/A.D,A.N=g.B4(A.N,0,.7),fj(A),bl6(A,A.X/A.D+A.N>=.7,2));else if(A.V===2){K=f.deltaY<0;var V,J,R=((J=(V=A.W)==null?void 0:V.U)==null?void 0:J.scrollTop)===0;V=A.N!==0;K&&R||V&&!K?A.D!==0&&(A.N=Math.max(0,A.N-f.deltaY/A.D),fj(A),bl6(A,A.X/A.D+ Math.abs(A.N)>=.7,1)):A.N!==0&&(A.N=0,fj(A))}}},A,!0); L.Y(B,"standardControlsInitialized",function(){if(!A.W){A.W=new rke(A.api,A.yFn.bind(A));A.wT&&(A.yj=new uu(A.api),g.W(A,A.yj),A.yj.element.setAttribute("data-overlay-order","12"),A.api.Tt(A.yj.element,4),A.yj.listen("click",A.LU,A));g.W(A,A.W);var f=A.api.getRootNode().querySelector(".ytp-chrome-bottom");f&&f.parentNode&&f.parentNode.insertBefore(A.W.element,f.nextSibling);tsQ(A)}}); L.Y(B,"presentingplayerstatechange",function(){Kj(A)}); L.Y(B,"autonavvisibility",function(){Kj(A)}); A.api.WI().subscribe("visibilitystatechange",function(){Kj(A)}); ktE(A,A.V)}; bl6=function(A,L,B){A.G&&clearTimeout(A.G);A.N===0&&g.NH(A.api.getRootNode(),"ytp-grid-scrolling");L?TAS(A,B):A.N<.1&&(A.G=window.setTimeout(function(){TAS(A)},1E3))}; TAS=function(A,L){A.G&&(clearTimeout(A.G),A.G=null);A.D=0;A.U&&A.V!==0&&(L?o_(A,L):Math.abs(A.N)>=.15&&A.LU("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),A.N=0,fj(A),g.NH(A.api.getRootNode(),"ytp-grid-scrolling"))}; BB=function(A){return A.api.isFullscreen()||A.Ys&&A.api.EN()}; Lj=function(A){var L=BB(A);g.D1(A.api.getRootNode(),"ytp-full-bleed-player",L);A.qp&&g.y9(A.qp,L);A.playerOverlayVideoDetailsRenderer&&g.y9(A.playerOverlayVideoDetailsRenderer,L);A.U&&Kj(A)}; Kj=function(A){if(A.U)if(g.NH(A.api.getRootNode(),"ytp-grid-scrolling"),A.api.getPresentingPlayerType()===2||A.api.bQ()||A.api.isMinimized())o_(A,0);else{var L=g.x(A.api.getPlayerStateObject(),2);if(L)o_(A,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(A.isEnded&&!L){var B=BB(A)?1:0;A.isEnded=L;o_(A,B)}else BB(A)?A.V!==2&&o_(A,1):o_(A,0);A.isEnded=L}}; o_=function(A,L,B){A.V=L;var f;(f=A.W)==null||f.Y6(L,B);var K;(K=A.yj)==null||K.Y6(L);A.N=0;fj(A);ktE(A,L)}; ktE=function(A,L){var B=A.api.getRootNode();g.D1(B,"ytp-fullscreen-grid-peeking",L===1);g.D1(B,"ytp-fullscreen-grid-active",L===2);L===1&&tsQ(A)}; tsQ=function(A){var L=A.api.getRootNode();if(g.x(A.api.getPlayerStateObject(),256)||g.x(A.api.getPlayerStateObject(),32)||g.x(A.api.getPlayerStateObject(),16))var B=A.X;else if(A.JF&&A.api.getPlayerStateObject().isPaused()){var f;B=(((f=A.W)==null?void 0:f.element.clientWidth)||0)*.5625/3*A.S4||A.Vj}else B=A.Vj;A.X=B;L.style.setProperty("--ytp-grid-peek-height",A.X+"px");g.D1(L,"ytp-disable-bottom-gradient",A.X<=12&&A.T===0)}; fj=function(A){A.N===0&&A.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var L=A.N-A.T,B=L;A.N!==0&&(B=g.B4(L,-.01,.01));A.T+=B;A.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+A.T.toString());A.T!==A.N&&fj(A)})}; lWw=function(A){VC.call(this,A);var L=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.dN(A);g.W(this,this.events);this.events.Y(A,"heartbeatRequest",function(B){if(L.freePreviewUsageDetails.length||L.freePreviewWatchedDuration!==null)B.heartbeatRequestParams||(B.heartbeatRequestParams={}),B.heartbeatRequestParams.unpluggedParams||(B.heartbeatRequestParams.unpluggedParams={}),L.freePreviewUsageDetails.length>0?B.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= L.freePreviewUsageDetails:B.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+L.freePreviewWatchedDuration}}); wh(A,"setFreePreviewWatchedDuration",function(B){L.freePreviewWatchedDuration=B}); wh(A,"setFreePreviewUsageDetails",function(B){L.freePreviewUsageDetails=B})}; V2=function(A){g.Y.call(this);this.features=[];var L=this.N,B=new Po(A),f=new JY(A),K=new Vp(A),V=new Pe(A);var J=g.dY(A.K())?void 0:new Et(A);var R=new Kl(A),Z=new YPQ(A),N=new KSS(A),F=new q5(A);var D=g.dY(A.K())?new lWw(A):void 0;var I;var d=(I=A.K().getWebPlayerContextConfig())!=null&&I.cinematicSettingsAvailable?new ib(A):void 0;I=new vo(A);var w=A.J("enable_courses_player_overlay_purchase")?new JI8(A):void 0;var r=g.SK(A.K())?new BDe(A):void 0;var h=new co(A);var Q=A.K().U?new zUk(A):void 0; var l=g.MM(A.K())?new nQD(A):void 0;var C=A.J("web_player_move_autonav_toggle")&&A.K().LD?new YOL(A):void 0;var O=g.SK(A.K())?new HiD(A):void 0;var v=A.J("web_enable_speedmaster")&&g.SK(A.K())?new Qp(A):void 0;var U=A.K().kR?void 0:new e_D(A);var a=A.J("report_pml_debug_signal")?new HP8(A):void 0;var o0=new OiL(A),B6=new ZW(A);var Ve=g.cH(A.K())?new AtQ(A):void 0;var DS=navigator.mediaSession&&window.MediaMetadata&&A.K().jH?new om(A):void 0;var fw=A.J("html5_enable_drc")&&!A.K().T?new Ot(A):void 0; var ry=new Zq(A);var uL=g.SK(A.K())?new D9D(A):void 0;var Jf=A.J("html5_enable_d6de4")?new Jk(A):void 0;var MC=g.SK(A.K())&&A.J("web_sleep_timer")?new hk(A):void 0;var nw=g.MM(A.K())?new aDE(A):void 0;A.J("web_shorts_audio_track_picker")||A.J("mweb_debug_sticky_settings");var Xk=new sq(A);var e5=new W6w(A),mt=new rBy(A);var T=A.J("enable_sabr_snackbar_message")?new TwC(A):void 0;var aO=A.J("web_enable_timely_actions")?new a5y(A):void 0;var YW=new $5(A);var R0,TK;var b=((R0=A.K())==null?0:(TK=R0.getWebPlayerContextConfig())== null?0:TK.enableFullscreenComponentsFeature)?new h1L(A):void 0;R0=new ve(A);TK=A.J("web_player_loop_settings_menu")&&A.K().R_?new sSD(A):void 0;var Lw=g.dY(A.K())?void 0:new S3(A);var ro=new eTk(A),SZ=new lb(A),xg=new Ekw(A),R8=new EQQ(A);var a0=g.SK(A.K())&&A.K().J("delhi_modern_web_player")?new qOC(A):void 0;var oO=A.K().V?void 0:new k47(A);L.call(this,B,f,K,V,J,R,Z,N,F,D,d,I,w,r,h,Q,l,C,O,v,U,a,o0,B6,Ve,void 0,DS,fw,ry,void 0,uL,Jf,MC,nw,void 0,Xk,e5,mt,void 0,T,aO,YW,b,R0,void 0,TK,void 0,Lw, ro,SZ,xg,R8,a0,oO,new XYk(A),new Y5(A))}; mQv=function(){this.W=this.N=NaN}; QmQ=function(A,L){this.L=A;this.timerName="";this.V=!1;this.W=NaN;this.U=new mQv;this.N=L||null;this.V=!1}; CuD=function(A,L,B){var f=g.PL(L.tF)&&!L.tF.T;if(L.tF.M7&&(UR(L.tF)||L.tF.Vj==="shortspage"||dd(L.tF)||f)&&!A.V){A.V=!0;A.T=L.clientPlaybackNonce;g.A_("TIMING_ACTION")||aw("TIMING_ACTION",A.L.csiPageType);A.L.csiServiceName&&aw("CSI_SERVICE_NAME",A.L.csiServiceName);if(A.N){f=A.N.zH();for(var K=g.m(Object.keys(f)),V=K.next();!V.done;V=K.next())V=V.value,mF(V,f[V],A.timerName);f=g.fg(bsw)(A.N.hL);g.Qm(f,A.timerName);f=A.N;f.N={};f.hL={}}g.Qm({playerInfo:{visibilityState:g.fg(hXD)()},playerType:"LATENCY_PLAYER_HTML5"}, A.timerName);A.D!==L.clientPlaybackNonce||Number.isNaN(A.W)||(iJ("_start",A.timerName)?B=g.fg(bJ)("_start",A.timerName)+A.W:g.CE(new g.iL("attempted to log gapless pbs before CSI timeline started",{cpn:L.clientPlaybackNonce})));!B||iJ("pbs",A.timerName)||L.OC||Jq(A,B)}}; Jq=function(A,L,B){mF("pbs",L!=null?L:(0,g.bc)(),B!=null?B:A.timerName)}; Sf=function(A){Xfv();$xk();A.timerName=""}; il1=function(A){if(A.N){var L=A.N;L.N={};L.hL={}}A.V=!1;A.D=void 0;A.W=NaN}; $QL=function(A,L){g.SN.call(this);this.tF=A;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.N=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.ea={};this.W=0;if(A=L.session_data)this.sessionData=Vh(A,"&");this.index=Math.max(0,Number(L.index)||0);this.loop=!!L.loop;this.startSeconds=Number(L.startSeconds)||0;this.title=L.playlist_title||"";this.description=L.playlist_description||"";this.author= L.author||L.playlist_author||"";L.video_id&&(this.items[this.index]=L);if(A=L.api)typeof A==="string"&&A.length===16?L.list="PL"+A:L.playlist=A;if(A=L.list)switch(L.listType){case "user_uploads":this.listId=new X1("UU","PLAYER_"+A);break;default:var B=L.playlist_length;B&&(this.length=Number(B)||0);this.listId=Oe(A);if(A=L.video)this.items=A.slice(0),this.loaded=!0}else if(L.playlist){A=L.playlist.toString().split(",");this.index>0&&(this.items=[]);A=g.m(A);for(B=A.next();!B.done;B=A.next())(B=B.value)&& this.items.push({video_id:B});this.length=this.items.length;if(A=L.video)this.items=A.slice(0),this.loaded=!0}this.setShuffle(!!L.shuffle);if(A=L.suggestedQuality)this.quality=A;this.ea=lS(L,"playlist_");this.V=(L=L.thumbnail_ids)?L.split(","):[]}; Xee=function(A){return!!(A.playlist||A.list||A.api)}; OlQ=function(A){var L=A.index+1;return L>=A.length?0:L}; E88=function(A){var L=A.index-1;return L<0?A.length-1:L}; g.R_=function(A,L,B,f){L=L!==void 0?L:A.index;L=A.items&&L in A.items?A.items[A.order[L]]:null;var K=null;L&&(B&&(L.autoplay="1"),f&&(L.autonav="1"),K=new g.Kr(A.tF,L),g.W(A,K),K.Of=!0,K.startSeconds=A.startSeconds||K.clipStart||0,A.listId&&(K.playlistId=A.listId.toString()));return K}; cke=function(A,L){A.index=g.B4(L,0,A.length-1);A.startSeconds=0}; Ms0=function(A,L){if(L.video&&L.video.length){A.title=L.title||"";A.description=L.description;A.views=L.views;A.likes=L.likes;A.dislikes=L.dislikes;A.author=L.author||"";var B=L.loop;B&&(A.loop=B);B=g.R_(A);A.items=[];for(var f=g.m(L.video),K=f.next();!K.done;K=f.next())if(K=K.value)K.video_id=K.encrypted_id,A.items.push(K);A.length=A.items.length;(L=L.index)?A.index=L:A.findIndex(B);A.setShuffle(!1);A.loaded=!0;A.W++;A.N&&A.N()}}; WS0=function(A,L){var B,f,K,V,J,R,Z;return g.c(function(N){if(N.N==1){B=g.av();var F=A.K(),D={context:g.dh(A),playbackContext:{contentPlaybackContext:{ancestorOrigins:F.ancestorOrigins}}},I=F.getWebPlayerContextConfig();if(I==null?0:I.encryptedHostFlags)D.playbackContext.contentPlaybackContext.encryptedHostFlags=I.encryptedHostFlags;if(I==null?0:I.hideInfo)D.playerParams={showinfo:!1};I=F.embedConfig;var d=A.e8;var w=L.docid||L.video_id||L.videoId||L.id;if(!w){w=L.raw_embedded_player_response;if(!w){var r= L.embedded_player_response;r&&(w=JSON.parse(r))}if(w){var h,Q,l,C,O,v;w=((v=g.y((h=w)==null?void 0:(Q=h.embedPreview)==null?void 0:(l=Q.thumbnailPreviewRenderer)==null?void 0:(C=l.playButton)==null?void 0:(O=C.buttonRenderer)==null?void 0:O.navigationEndpoint,g.FZ))==null?void 0:v.videoId)||null}else w=null}h=(h=w)?h:void 0;Q=A.playlistId?A.playlistId:L.list;l=L.listType;if(Q){var U;l==="user_uploads"?U={username:Q}:U={playlistId:Q};Yqe(I,d,h,L,U,F.experiments);D.playlistRequest=U}else L.playlist? (U={templistVideoIds:L.playlist.toString().split(",")},Yqe(I,d,h,L,U,F.experiments),D.playlistRequest=U):h&&(U={videoId:h},d&&F.J("embeds_enable_per_video_embed_config")?U.serializedThirdPartyEmbedConfig=d:I&&(U.serializedThirdPartyEmbedConfig=I),D.singleVideoRequest=U);f=D;K=g.B8(UQC);g.S5(N,2);return g.X(N,g.MD(B,f,K),4)}if(N.N!=2)return V=N.W,J=A.K(),L.raw_embedded_player_response=V,J.wT=dL(L,g.MM(J)),J.V=J.wT==="EMBEDDED_PLAYER_MODE_PFL",V&&(R=V,R.trackingParams&&wS(R.trackingParams)),N.return(new g.Kr(J, L));Z=g.NX(N);Z instanceof Error||(Z=Error("b259802748"));g.mL(Z);return N.return(A)})}; Yqe=function(A,L,B,f,K,V){f.index&&(K.playlistIndex=String(Number(f.index)+1));K.videoId=B?B:"";L&&V.GL("embeds_enable_per_video_embed_config")?K.serializedThirdPartyEmbedConfig=L:A&&(K.serializedThirdPartyEmbedConfig=A)}; g.Np=function(A,L){ZK.get(A);ZK.set(A,L)}; g.FB=function(A){g.SN.call(this);this.loaded=!1;this.player=A}; v86=function(){this.W=[];this.N=[]}; g.qQ=function(A,L){return L?A.N.concat(A.W):A.N}; g.DK=function(A,L){switch(L.kind){case "asr":qq6(L,A.W);break;default:qq6(L,A.N)}}; qq6=function(A,L){g.Pw(L,function(B){return A.equals(B)})||L.push(A)}; g.du=function(A){g.Y.call(this);this.rT=A;this.N=new v86;this.V=null;this.D=[];this.G=[]}; g.Pu0=function(A,L){var B;return L.K().J("html5_use_hls_native_captions")&&g.yw&&A.iC()&&!((B=A.W)==null||!WV(B))}; g.I_=function(A,L,B){g.du.call(this,A);this.videoData=L;this.audioTrack=B;this.W=null;this.U=!1;this.D=L.Rj;this.G=L.VT;this.U=g.zp(L)}; g.xQD=function(A,L){var B;return A.K().J("safari_live_drm_captions_fix")&&((B=A.getVideoData())==null?0:B.U6())?!1:g.dY(A.K())&&!L.isManifestless}; g.wu=function(A,L){return xa(A.info.mimeType)?L?A.info.itag===L:!0:!1}; g.e10=function(A,L){if(A.N!=null&&g.xQD(L,A.N)&&A.N.N.rawcc!=null)return!0;if(!A.iC())return!1;L=!!A.N&&A.N.isManifestless&&Object.values(A.N.N).some(function(B){return g.wu(B,"386")}); A=!!A.N&&!A.N.isManifestless&&g.sT8(A.N);return L||A}; g.pj=function(A,L,B,f,K,V){g.du.call(this,A);this.videoId=B;this.Wt=K;this.eventId=V;this.T={};this.W=null;A=f||g.RM(L).hl||"";A=A.split("_").join("-");this.U=Zp(L,{hl:A})}; n87=function(A,L,B){B=B===void 0?"":B;g.Y.call(this);var f=this;this.S=A;this.D=L;this.V=B;this.hL={};this.N={};this.W=null;this.U=new Set;this.T=new g.dN(this);this.GV={nA1:function(){return f.D}, sur:function(){return f.V}}; this.X=this.S.J("web_player_defer_modules");this.U_=new Map;g.W(this,this.T);this.T.Y(A,"videodatachange",this.onVideoDataChange)}; z1w=function(A,L){A.W=L}; g.y2=function(A){return A.U_.get("captions")}; Bue=function(A,L){switch(L){case "ad":return u7w(A);case "annotations_module":return A.S.isEmbedsShortsMode()?A=!1:(L=A.S,A=L.K(),L=L.getVideoData(),A=A.V||L.wF||A.controlsType==="3"?!1:A.S4.isEmpty()&&A.playerStyle!=="annotation-editor"&&A.playerStyle!=="live-dashboard"?!!L.zM||!!g.xT(L)||!!g.eC(L):!0),A;case "asmjs":return jf(A);case "creatorendscreen":return aWy(A);case "embed":return g.MM(A.S.K());case "endscreen":return g.AqS(A);case "heartbeat":return A.Fl();case "kids":return A$(A.S.K());case "remote":return A.S.K().dB; case "miniplayer":return A.S.K().showMiniplayerUiWhenMinimized;case "offline":return A.S.K().Gt;case "captions":return L5v(A);case "unplugged":return g.xi(A.S.K());case "ux":return A.S.K().sx;case "webgl":return oSk(A);case "ypc":return A.LK();default:return g.mL(Error("Module descriptor "+L+" does not match")),!1}}; gu=function(A,L,B,f,K){var V;B=B===void 0?!1:B;f=f===void 0?!1:f;var J=A.U_.get(L);if(!J||f)if(K||(K=function(){gu(A,L,B,f)}),V||(V=function(){GB(A,L)}),J=J||fKC(A,L,Bue(A,L),K,V))A.U_.set(L,J),J.create(),A.S.publish("modulecreated",L),B&&A.S.X3("onApiChange")}; Vf1=function(A){var L=L===void 0?!1:L;var B,f,K,V,J;return g.c(function(R){if(R.N==1)return(B=A.U_.get("asmjs"))&&!L?R.return(B):(f=ZK.get("asmjs"))!=null?(K=f,R.Ux(2)):g.X(R,new Promise(function(Z,N){K5E(A,"asmjs",function(){var F=ZK.get("asmjs");F?Z(F):N("cannot load module asmjs")},N)}),3); R.N!=2&&(K=R.W);V=K;if(!V)return R.return(Promise.reject("cannot load module asmjs"));J=new V(A.S);A.U_.set("asmjs",J);J.create();return R.return(J)})}; Rd8=function(A){Jq6(A)&&A.Ee();Sv6(A)&&(gu(A,"captions",!0),gu(A,"endscreen"),A.AL(),gu(A,"creatorendscreen",!0))}; GB=function(A,L){L=g.m(Zjk[L]);for(var B=L.next();!B.done;B=L.next())A.S.Z2(B.value)}; Sv6=function(A){var L=A.S.getVideoData(),B=A.X&&!L.isInlinePlaybackNoAd;A.S.J("html5_defer_modules_on_ads_only")&&!L.isAd()&&(B=!1);return B}; Jq6=function(A){A=A.S.getVideoData();var L;if(L=A.J("web_player_defer_ad")){if(g.zK(A.p9,"ad")||yny(A)||A.enableServerStitchedDai)A=!1;else{L=A.playerResponse;A=A.startSeconds;var B=L==null?void 0:L.adPlacements;if(L=B){L=Number.MAX_VALUE;B=g.m(B);for(var f=B.next();!f.done;f=B.next())if(f=f.value.adPlacementRenderer){var K=void 0,V=(K=f.config)==null?void 0:K.adPlacementConfig;K=void 0;if(((K=V)==null?void 0:K.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var J=K=void 0;V=Number((K=V)==null?void 0:(J= K.adTimeOffset)==null?void 0:J.offsetStartMilliseconds)||0;J=K=void 0;f=Number(((K=f.renderer)==null?void 0:(J=K.adBreakServiceRenderer)==null?void 0:J.prefetchMilliseconds)||0);f=V-f;f=11;A=A.api.K().X&&m5;return!(!L&&!A)}; Uv=function(A,L){return!A.api.isInline()&&!Q_S(A,lt(L))&&g.bV(L)}; mpe=function(A){A.C8.V9();if(A.Hx&&A.zC)A.zC=!1;else if(!A.api.K().Ys&&!A.p5()){var L=A.api.getPlayerStateObject();g.x(L,2)&&g.Xr(A.api)||A.N0(L);!A.api.K().Nl||L.isCued()||g.x(L,1024)?A.Iu():A.ND.isActive()?(A.Yp(),A.ND.stop()):A.ND.start()}}; ij0=function(A,L){var B;if((B=A.api.getVideoData())==null?0:B.mutedAutoplay){var f,K;if((f=L.target)==null?0:(K=f.className)==null?0:K.includes("ytp-info-panel"))return!1}return g.bV(L)&&A.api.isMutedByMutedAutoplay()?(A.api.unMute(),A.api.getPresentingPlayerType()===2&&A.api.playVideo(),L=A.api.getPlayerStateObject(),!g.x(L,4)||g.x(L,8)||g.x(L,2)||A.Iu(),!0):!1}; $pL=function(A,L,B){A.api.isFullscreen()?B<1-L&&A.api.toggleFullscreen():B>1+L&&A.api.toggleFullscreen()}; lKy=function(A){var L=ek()&&qs()>=67&&!A.api.K().X;A=A.api.K().disableOrganicUi;return!g.xz("tizen")&&!OR&&!L&&!A}; g.WB=function(A){g.q.call(this,{Z:"div",B:[{Z:"div",j:"ytp-bezel-text-wrapper",B:[{Z:"div",j:"ytp-bezel-text",Ir:"{{title}}"}]},{Z:"div",j:"ytp-bezel",C:{role:"status","aria-label":"{{label}}"},B:[{Z:"div",j:"ytp-bezel-icon",Ir:"{{icon}}"}]}]});this.S=A;this.W=new g.aa(this.show,10,this);A=this.S.J("delhi_modern_web_player")?1E3:500;this.N=new g.aa(this.hide,A,this);g.W(this,this.W);g.W(this,this.N);this.hide()}; qp=function(A,L,B){if(L<=0){B=ia();L="silenciado";var f=0}else B=B?{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]},f=Math.floor(L),L=f+"volumen";vB(A,B,L,f+"%")}; XBD=function(A,L){L=L?{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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"}}]}:uaE();var B=A.S.getPlaybackRate(),f=g.B$("La velocidad es de $RATE",{RATE:String(B)});vB(A,L,f,B+"x")}; Oj1=function(A,L){L=L?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";vB(A,bPv(A.S),L)}; vB=function(A,L,B,f){f=f===void 0?"":f;A.updateValue("label",B===void 0?"":B);A.updateValue("icon",L);g.o1(A.N);A.W.start();A.updateValue("title",f);g.D1(A.element,"ytp-bezel-text-hide",!f)}; ESe=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-cards-button"],C:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"span",j:"ytp-cards-button-icon-default",B:[{Z:"div",j:"ytp-cards-button-icon",B:[A.K().J("player_new_info_card_format")?AKy():{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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",Ir:"Informaci\u00f3n"}]},{Z:"span",j:"ytp-cards-button-icon-shopping",B:[{Z:"div",j:"ytp-cards-button-icon",B:[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",j:"ytp-svg-shadow",C:{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",C:{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",C:{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",Ir:"Shopping"}]}]});this.S=A;this.W=L;this.N=null;this.fade=new g.KL(this,250,!0,100);g.W(this,this.fade);g.D1(this.W,"ytp-show-cards-title",g.MM(A.K()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.oh(!0)}; cqL=function(A,L){g.q.call(this,{Z:"div",j:"ytp-cards-teaser",B:[{Z:"div",j:"ytp-cards-teaser-box"},{Z:"div",j:"ytp-cards-teaser-text",B:A.K().J("player_new_info_card_format")?[{Z:"button",j:"ytp-cards-teaser-info-icon",C:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},B:[AKy()]},{Z:"img",j:"ytp-cards-teaser-channel-avatar",C:{alt:"","aria-hidden":"true"}},{Z:"span",j:"ytp-cards-teaser-label",Ir:"{{text}}"},{Z:"button",j:"ytp-cards-teaser-close-button",C:{"aria-label":"Cerrar"},B:[g.GZ()]}]: [{Z:"span",j:"ytp-cards-teaser-label",Ir:"{{text}}"}]}]});var B=this;this.S=A;this.u2=L;this.fade=new g.KL(this,250,!1,250);this.N=null;this.T=new g.aa(this.PqD,300,this);this.D=new g.aa(this.Bfs,2E3,this);this.U=[];this.V=null;this.X=new g.aa(function(){B.element.style.margin="0"},250); this.onClickCommand=this.W=null;g.W(this,this.fade);g.W(this,this.T);g.W(this,this.D);g.W(this,this.X);A.K().J("player_new_info_card_format")?(g.R1(A.getRootNode(),"ytp-cards-teaser-dismissible"),this.Y(this.m4("ytp-cards-teaser-close-button"),"click",this.Oy),this.Y(this.m4("ytp-cards-teaser-info-icon"),"click",this.AC),this.Y(this.m4("ytp-cards-teaser-label"),"click",this.AC)):this.listen("click",this.AC);this.Y(L.element,"mouseover",this.KB);this.Y(L.element,"mouseout",this.ai);this.Y(A,"cardsteasershow", this.xUj);this.Y(A,"cardsteaserhide",this.YP);this.Y(A,"cardstatechange",this.eA);this.Y(A,"presentingplayerstatechange",this.eA);this.Y(A,"appresize",this.Rl);this.Y(A,"onShowControls",this.Rl);this.Y(A,"onHideControls",this.f4);this.listen("mouseenter",this.c_)}; MfC=function(A){g.q.call(this,{Z:"button",Rr:[PB.BUTTON,PB.TITLE_NOTIFICATIONS],C:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},B:[{Z:"div",j:PB.TITLE_NOTIFICATIONS_ON,C:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},B:[g.ba()]},{Z:"div",j:PB.TITLE_NOTIFICATIONS_OFF,C:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},B:[{Z:"svg",C:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},B:[{Z:"path",C:{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=A;this.N=!1;A.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")}; Yvw=function(A,L){A.N=L;A.element.classList.toggle(PB.NOTIFICATIONS_ENABLED,A.N);var B=A.api.getVideoData();B?(L=L?B.MI:B.D$)?(A=A.api.dh())?c8(A,L):g.mL(Error("No innertube service available when updating notification preferences.")):g.mL(Error("No update preferences command available.")):g.mL(Error("No video data when updating notification preferences."))}; W5S=function(A,L,B){var f=f===void 0?800:f;var K=K===void 0?600:K;var V=document.location.protocol;A=Day(V+"//"+A+"/signin?context=popup","feature",L,"next",V+"//"+location.hostname+"/post_login");Up6(A,B,f,K)}; Up6=function(A,L,B,f){B=B===void 0?800:B;f=f===void 0?600:f;if(A=g.QR(window,A,"loginPopup","width="+B+",height="+f+",resizable=yes,scrollbars=yes"))qn1(function(){L()}),A.moveTo((screen.width-B)/2,(screen.height-f)/2)}; g.xS=function(A,L,B,f,K,V,J,R,Z,N,F,D){A=A.charAt(0)+A.substring(1).toLowerCase();B=B.charAt(0)+B.substring(1).toLowerCase();if(L==="0"||L==="-1")L=null;if(f==="0"||f==="-1")f=null;var I=F.K(),d=I.userDisplayName&&g.PL(I);g.q.call(this,{Z:"div",Rr:["ytp-button","ytp-sb"],B:[{Z:"div",j:"ytp-sb-subscribe",C:d?{title:F.K().J("player_tooltip_data_title_killswitch")?g.B$("Suscribirse como $USER_NAME",{USER_NAME:I.userDisplayName}):"","data-tooltip-title":g.B$("Suscribirse como $USER_NAME",{USER_NAME:I.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":Io(I),"data-tooltip-opaque":String(g.MM(I)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},B:[{Z:"div",j:"ytp-sb-text",B:[{Z:"div",j:"ytp-sb-icon"},A]},L?{Z:"div",j:"ytp-sb-count",Ir:L}:""]},{Z:"div",j:"ytp-sb-unsubscribe",C:d?{title:F.J("player_tooltip_data_title_killswitch")?g.B$("Suscripci\u00f3n a nombre de $USER_NAME",{USER_NAME:I.userDisplayName}):"","data-tooltip-title":g.B$("Suscripci\u00f3n a nombre de $USER_NAME", {USER_NAME:I.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":Io(I),"data-tooltip-opaque":String(g.MM(I)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},B:[{Z:"div",j:"ytp-sb-text",B:[{Z:"div",j:"ytp-sb-icon"},B]},f?{Z:"div",j:"ytp-sb-count",Ir:f}:""]}],C:{"aria-live":"polite"}});var w=this;this.channelId=J;this.S=F;this.V=D;var r=this.m4("ytp-sb-subscribe"),h=this.m4("ytp-sb-unsubscribe");V&&g.R1(this.element,"ytp-sb-classic"); if(K){R?this.N():this.W();var Q=function(){if(I.ZM){var C=w.channelId;if(Z||N){var O={c:C};var v;g.G4.isInitialized()&&(v=Vi8(O));O=v||"";if(v=F.getVideoData())if(v=v.subscribeCommand){var U=F.dh();U?(c8(U,v,{botguardResponse:O,feature:Z}),F.Kr("SUBSCRIBE",C)):g.mL(Error("No innertube service available when updating subscriptions."))}else g.mL(Error("No subscribe command in videoData."));else g.mL(Error("No video data available when updating subscription."))}h.focus();h.removeAttribute("aria-hidden"); r.setAttribute("aria-hidden","true")}else W5S(g.BN(w.S.K()),"sb_button",w.U)},l=function(){var C=w.channelId; if(Z||N){var O=F.getVideoData();c8(F.dh(),O.unsubscribeCommand,{feature:Z});F.Kr("UNSUBSCRIBE",C)}r.focus();r.removeAttribute("aria-hidden");h.setAttribute("aria-hidden","true")}; this.Y(r,"click",Q);this.Y(h,"click",l);this.Y(r,"keypress",function(C){C.keyCode===13&&Q(C)}); this.Y(h,"keypress",function(C){C.keyCode===13&&l(C)}); this.Y(F,"SUBSCRIBE",this.N);this.Y(F,"UNSUBSCRIBE",this.W);this.V&&d&&(Dy1(F),Cm(F,r,this),Cm(F,h,this))}else g.R1(r,"ytp-sb-disabled"),g.R1(h,"ytp-sb-disabled")}; PgL=function(A){g.q.call(this,{Z:"div",j:"ytp-title-channel",B:[{Z:"div",j:"ytp-title-beacon"},{Z:"a",j:"ytp-title-channel-logo",C:{href:"{{channelLink}}",target:A.K().yj,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{Z:"div",j:"ytp-title-expanded-overlay",C:{"aria-hidden":"{{flyoutUnfocusable}}"},B:[{Z:"div",j:"ytp-title-expanded-heading",B:[{Z:"div",j:"ytp-title-expanded-title",B:[{Z:"a",Ir:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:A.K().yj,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{Z:"div",j:"ytp-title-expanded-subtitle",Ir:"{{expandedSubtitle}}",C:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var L=this;this.api=A;this.channel=this.m4("ytp-title-channel");this.W=this.m4("ytp-title-channel-logo");this.channelName=this.m4("ytp-title-expanded-title");this.D=this.m4("ytp-title-expanded-overlay");this.V=this.N=this.subscribeButton=null;this.U=!1;A.createClientVe(this.W,this,36925);A.createClientVe(this.channelName,this, 37220);g.MM(this.api.K())&&vSw(this);this.Y(A,"videodatachange",this.zL);this.Y(A,"videoplayerreset",this.zL);this.Y(this.channelName,"click",function(B){L.api.logClick(L.channelName);g.QR(window,qv0(L));B.preventDefault()}); this.Y(this.W,"click",this.bDr);this.zL()}; xpD=function(A){if(!A.api.K().jI){var L=A.api.getVideoData(),B=new g.xS("Suscribirse",null,"Suscrito/a",null,!0,!1,L.JO,L.subscribed,"channel_avatar",null,A.api,!0);A.api.createServerVe(B.element,A);var f;A.api.setTrackingParams(B.element,((f=L.subscribeButtonRenderer)==null?void 0:f.trackingParams)||null);A.Y(B.element,"click",function(){A.api.logClick(B.element)}); A.subscribeButton=B;g.W(A,A.subscribeButton);A.subscribeButton.DM(A.D);A.subscribeButton.hide();var K=new MfC(A.api);A.N=K;g.W(A,K);K.DM(A.D);K.hide();A.Y(A.api,"SUBSCRIBE",function(){L.mC&&(K.show(),A.api.logVisibility(K.element,!0))}); A.Y(A.api,"UNSUBSCRIBE",function(){L.mC&&(K.hide(),A.api.logVisibility(K.element,!1),Yvw(K,!1))})}}; vSw=function(A){var L=A.api.K();xpD(A);A.updateValue("flyoutUnfocusable","true");A.updateValue("channelTitleFocusable","-1");A.updateValue("shouldHideExpandedTitleForA11y","true");A.updateValue("shouldHideExpandedSubtitleForA11y","true");L.W||L.Ex||(A.Y(A.channel,"mouseenter",A.Wr),A.Y(A.channel,"mouseleave",A.SG),A.Y(A.channel,"focusin",A.Wr),A.Y(A.channel,"focusout",function(B){A.channel.contains(B.relatedTarget)||A.SG()})); A.V=new g.aa(function(){A.isExpanded()&&(A.api.logVisibility(A.channelName,!1),A.subscribeButton&&(A.subscribeButton.hide(),A.api.logVisibility(A.subscribeButton.element,!1)),A.N&&(A.N.hide(),A.api.logVisibility(A.N.element,!1)),A.channel.classList.remove("ytp-title-expanded"),A.channel.classList.add("ytp-title-show-collapsed"))},500); g.W(A,A.V);A.Y(A.channel,edv,function(){nSy(A)}); A.Y(A.api,"onHideControls",A.zN);A.Y(A.api,"appresize",A.zN);A.Y(A.api,"fullscreentoggled",A.zN)}; nSy=function(A){A.channel.classList.remove("ytp-title-show-collapsed");A.channel.classList.remove("ytp-title-show-expanded")}; zdE=function(A){var L=A.api.getPlayerSize();return g.MM(A.api.K())&&L.width>=524}; qv0=function(A){var L=A.api.K(),B=A.api.getVideoData(),f=g.wd(L)+B.Ys;g.Nm(B)&&(f="https://music.youtube.com"+B.Ys);if(!g.MM(L))return f;L={};g.jg(A.api,"addEmbedsConversionTrackingParams",[L]);return g.ip(f,L)}; ef=function(A){var L=g.Bo({"aria-haspopup":"true"});g.of.call(this,L,A);this.listen("keydown",this.A2)}; nj=function(A,L){A.element.setAttribute("aria-haspopup",String(L))}; uB1=function(A,L){g.q.call(this,{Z:"div",j:"ytp-user-info-panel",C:{"aria-label":"Informaci\u00f3n del usuario"},B:A.K().ZM?[{Z:"div",j:"ytp-user-info-panel-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-user-info-panel-content",B:[{Z:"div",j:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable}}",role:"text"},Ir:"{{watchingAsUsername}}"},{Z:"div",j:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Ir:"{{watchingAsEmail}}"}]}]:[{Z:"div",j:"ytp-user-info-panel-icon",Ir:"{{icon}}"}, {Z:"div",j:"ytp-user-info-panel-content",B:[{Z:"div",B:[{Z:"text",C:{tabIndex:"{{userInfoFocusable}}"},Ir:"Saliste de la cuenta"}]},{Z:"div",j:"ytp-user-info-panel-login",B:[{Z:"a",C:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Ir:A.K().jI?"":"Acceder a YouTube"}]}]}]});this.rT=A;this.sourceElement=L;A.K().ZM||A.K().jI||this.Y(this.m4("ytp-user-info-panel-login"),"click",this.P_);this.closeButton=new g.q({Z:"button",Rr:["ytp-collapse","ytp-button"],C:{title:"Cerrar"},B:[g.C1()]});this.closeButton.DM(this.element); g.W(this,this.closeButton);this.Y(window,"blur",this.hide);this.Y(document,"click",this.B_);this.zL()}; BxE=function(A,L,B){g.Im.call(this,A);var f=this;this.Wz=L;this.XO=B;this.getVideoUrl=new ef(6);this.LO=new ef(5);this.o_=new ef(4);this.Ov=new ef(3);this.Ye=new g.of(g.Bo({href:"{{href}}",target:this.S.K().yj},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.of(g.Bo(),1,"Estad\u00edsticas");this.PG=new g.DE({Z:"div",Rr:["ytp-copytext","ytp-no-contextmenu"],C:{draggable:"false",tabindex:"1"},Ir:"{{text}}"});this.yw=new dA(this.S,this.PG);this.rF=this.T$=null;g.MM(this.S.K())&& (this.closeButton=new g.q({Z:"button",Rr:["ytp-collapse","ytp-button"],C:{title:"Cerrar"},B:[g.C1()]}),g.W(this,this.closeButton),this.closeButton.DM(this.element),this.closeButton.listen("click",this.C4,this));g.MM(this.S.K())&&(this.ZJ=new g.of(g.Bo(),10,"Cuenta"),g.W(this,this.ZJ),this.ov(this.ZJ,!0),this.ZJ.listen("click",this.Y_T,this),A.createClientVe(this.ZJ.element,this.ZJ,137682));this.S.K().R_&&(this.WB=new Dq("En bucle",9),g.W(this,this.WB),this.ov(this.WB,!0),this.WB.listen("click",this.v64, this),A.createClientVe(this.WB.element,this.WB,28661));this.S.J("web_player_miniplayer_in_context_menu")&&(this.R6=new g.of(g.Bo(),8,"Reproductor en miniatura"),g.W(this,this.R6),this.ov(this.R6,!0),this.R6.listen("click",this.c$r,this),A.createClientVe(this.R6.element,this.R6,62946));this.S.J("web_watch_pip_context_menu_button")&&this.S.K().showMiniplayerButton&&(this.RM=new g.of(g.Bo(),7,"Pantalla en pantalla"),g.W(this,this.RM),this.ov(this.RM,!0),this.RM.listen("click",this.ljD,this),A.createClientVe(this.RM.element, this.RM,194442));g.W(this,this.getVideoUrl);this.ov(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.CqD,this);A.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.W(this,this.LO);this.ov(this.LO,!0);this.LO.listen("click",this.sAM,this);A.createClientVe(this.LO.element,this.LO,28660);g.W(this,this.o_);this.ov(this.o_,!0);this.o_.listen("click",this.fxD,this);A.createClientVe(this.o_.element,this.o_,28658);g.W(this,this.Ov);this.ov(this.Ov,!0);this.Ov.listen("click",this.hSM, this);g.W(this,this.Ye);this.ov(this.Ye,!0);this.Ye.listen("click",this.I1F,this);g.W(this,this.showVideoInfo);this.ov(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.gJM,this);g.W(this,this.PG);this.PG.listen("click",this.ZDF,this);g.W(this,this.yw);aKE()&&(this.T$=new g.q({Z:"textarea",j:"ytp-html5-clipboard",C:{readonly:"",tabindex:"-1"}}),g.W(this,this.T$),this.T$.DM(this.element));var K;(K=this.ZJ)==null||K.setIcon(SSk());var V;(V=this.WB)==null||V.setIcon(FuQ());var J;(J=this.R6)== null||J.setIcon(this.S.J("delhi_modern_web_player_icons")?BL6():kr());var R;(R=this.RM)==null||R.setIcon(kr());this.Ov.setIcon({Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{"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.Ye.setIcon(sW());this.showVideoInfo.setIcon(apL());this.Y(A,"onLoopChange",this.onLoopChange);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(A,"fullscreentoggled",function(){AP7(f)}); this.Y(A,"minimized",function(){AP7(f);var Z;(Z=f.RM)==null||Z.xP(!f.S.isMinimized()&&f.S.K().showMiniplayerButton)}); L01(this);otw(this,this.S.getVideoData())}; zB=function(A,L){var B=!1;if(A.T$){var f=A.T$.element;f.value=L;f.select();try{B=document.execCommand("copy")}catch(K){}}B?A.Wz.YP():(A.PG.setContent(L,"text"),g.yp(A.Wz,A.yw),j3(A.PG.element),A.T$&&(A.T$=null,L01(A)));return B}; aKE=function(){var A=document.queryCommandSupported&&document.queryCommandSupported("copy");gWw("Chromium")>=43&&(A=!0);gWw("Firefox")<=40&&(A=!1);return A}; AP7=function(A){var L;(L=A.R6)==null||L.xP(!A.S.isFullscreen()&&!A.S.isMinimized()&&A.S.getPresentingPlayerType()!==2&&A.S.K().showMiniplayerButton)}; otw=function(A,L){var B=A.S.K(),f=A.S.getPresentingPlayerType()===2,K=!f||L.isListed;K=!B.qp&&!!L.videoId&&K;B.playerStyle!=="play"?B="https://support.google.com/youtube/?p=report_playback":(B={contact_type:"playbackissue",html5:1,ei:L.eventId,v:L.videoId,p:"movies_playback"},L.W&&(B.fmt=L.W.itag),L.clientPlaybackNonce&&(B.cpn=L.clientPlaybackNonce),L.partnerId&&(B.partnerid=L.partnerId),B=g.ip("//support.google.com/googleplay/",B));A.o_.xP(K&&L.allowEmbed);A.getVideoUrl.xP(K);A.LO.xP(K&&!L.isLivePlayback); A.Ye.setContent(B,"href");var V;(V=A.WB)==null||V.xP(!L.isLivePlayback&&!f);AP7(A);var J;(J=A.ZJ)==null||J.xP(!f)}; L01=function(A){var L=!!A.T$;g.Lh(A.Ov,L?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");nj(A.Ov,!L);g.Lh(A.o_,L?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");nj(A.o_,!L);g.Lh(A.getVideoUrl,L?"Copiar URL del video":"Obtener la URL del video");nj(A.getVideoUrl,!L);g.Lh(A.LO,L?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");nj(A.LO,!L);A.o_.setIcon(L?nz8():null);A.getVideoUrl.setIcon(L? HP():null);A.LO.setIcon(L?HP():null)}; fd8=function(A){return g.MM(A.S.K())?A.ZJ:A.WB}; var w6w=function(A,L){return wy[S[2]](this,10,A,L)}; var VcS=function(A,L){g.pl.call(this,A);this.XO=L;this.W=new g.dN(this);this.X=new g.aa(this.a14,1E3,this);this.G=this.rf=null;g.W(this,this.W);g.W(this,this.X);L=this.S.K();A.createClientVe(this.element,this,28656);g.R1(this.element,"ytp-contextmenu");this.S.K().experiments.GL("delhi_modern_web_player")&&g.SK(L)&&g.R1(this.element,"ytp-delhi-modern-contextmenu");K0y(this);this.hide()},K0y=function(A){g.$_(A.W); var L=A.S.K();L.playerStyle==="gvn"||L.W||L.Ex||(L=A.S.Pn(),A.W.Y(L,"contextmenu",A.U8n),A.W.Y(L,"touchstart",A.onTouchStart,null,!0),A.W.Y(L,"touchmove",A.Z8,null,!0),A.W.Y(L,"touchend",A.Z8,null,!0))},JPQ=function(A){A.S.isFullscreen()?g.Wh(A.S,A.element,10):A.DM(uz(A).body)},ug=function(A,L,B){B=B===void 0?240:B; g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-copylink-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"div",j:"ytp-copylink-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-copylink-title",Ir:"Copiar v\u00ednculo",C:{"aria-hidden":"true"}}]});this.api=A;this.N=L;this.W=B;this.visible=!1;this.tooltip=this.N.Ce();L=A.K();this.tooltip.element.setAttribute("aria-live","polite");g.D1(this.element, "ytp-show-copylink-title",g.MM(L));A.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.Y(A,"videodatachange",this.zL);this.Y(A,"videoplayerreset",this.zL);this.Y(A,"appresize",this.zL);this.zL();this.addOnDisposeCallback(g.QW(this.tooltip,this.element))},Sfe=function(A){var L=A.api.K(),B=A.api.getVideoData(),f=A.api.Pn().getPlayerSize().width; L=L.V;return!!B.videoId&&f>=A.W&&B.kR&&!B.OE&&!A.api.isEmbedsShortsMode()&&!L},RCE=function(A){A.updateValue("icon",yo()); if(A.api.K().W)A.tooltip.yR(A.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{A.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");A.updateValue("tooltip-title","Se copi\u00f3 el v\u00ednculo en el portapapeles");A.tooltip.qq();A.tooltip.yR(A.element);var L=A.listen("mouseleave",function(){A.J$(L);A.zL();A.tooltip.Ed()})}},ZQw=function(A,L){return g.c(function(B){if(B.N==1)return g.S5(B,2),g.X(B,navigator.clipboard.writeText(L),4); if(B.N!=2)return B.return(!0);g.NX(B);var f=B.return,K=!1,V=g.TO("TEXTAREA");V.value=L;V.setAttribute("readonly","");var J=A.api.getRootNode();J.appendChild(V);if(ed){var R=window.getSelection();R.removeAllRanges();var Z=document.createRange();Z.selectNodeContents(V);R.addRange(Z);V.setSelectionRange(0,L.length)}else V.select();try{K=document.execCommand("copy")}catch(N){}J.removeChild(V);return f.call(B,K)})},NxL=function(A){g.q.call(this,{Z:"div", j:"ytp-doubletap-ui-legacy",B:[{Z:"div",j:"ytp-doubletap-fast-forward-ve"},{Z:"div",j:"ytp-doubletap-rewind-ve"},{Z:"div",j:"ytp-doubletap-static-circle",B:[{Z:"div",j:"ytp-doubletap-ripple"}]},{Z:"div",j:"ytp-doubletap-overlay-a11y"},{Z:"div",j:"ytp-doubletap-seek-info-container",B:[{Z:"div",j:"ytp-doubletap-arrows-container",B:[{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",B:[{Z:"div", j:"ytp-seek-icon-text-container",B:[{Z:"div",j:"ytp-seek-icon",Ir:"{{seekIcon}}"},{Z:"div",j:"ytp-chapter-seek-text-legacy",Ir:"{{seekText}}"}]},{Z:"div",j:"ytp-doubletap-tooltip-label",Ir:"{{seekTime}}"}]}]}]});this.S=A;this.U=new g.aa(this.show,10,this);this.W=new g.aa(this.hide,700,this);this.T=this.V=0;this.Wn=this.D=!1;this.N=this.m4("ytp-doubletap-static-circle");g.W(this,this.U);g.W(this,this.W);this.hide();this.X=this.m4("ytp-doubletap-fast-forward-ve");this.G=this.m4("ytp-doubletap-rewind-ve"); this.S.createClientVe(this.X,this,28240);this.S.createClientVe(this.G,this,28239);this.S.logVisibility(this.X,!0);this.S.logVisibility(this.G,!0);this.D=A.J("web_show_cumulative_seek_time");this.Wn=A.J("web_center_static_circles")},F0Q=function(A,L){L=g.B$("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:L.toString()}); A.updateValue("seekTime",L)},dYQ=function(A){DW.call(this,A,!1,!0); this.ZM=[];this.cn=[];this.element.setAttribute("data-overlay-order","9");DYy(this,this.S.getVideoData());this.X=!0;this.badge.element.classList.add("ytp-featured-product");this.wT=new g.q({Z:"div",j:"ytp-featured-product-open-in-new"});g.W(this,this.wT);this.countdownTimer=new g.q({Z:"text",j:"ytp-featured-product-countdown",Ir:"{{content}}"});this.countdownTimer.hide();g.W(this,this.countdownTimer);this.V=new g.q({Z:"div",j:"ytp-featured-product-trending",B:[{Z:"div",j:"ytp-featured-product-trending-icon"}, {Z:"text",j:"ytp-featured-product-trending-text",Ir:"{{trendingOffer}}"}]});this.V.hide();g.W(this,this.V);this.overflowButton=new g.q({Z:"button",Rr:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.W(this,this.overflowButton);this.T=new g.q({Z:"text",j:"ytp-featured-product-exclusive-countdown",Ir:"{{content}}",C:{id:"exclusiveCountdown","aria-hidden":"true"}});this.T.hide();g.W(this,this.T);this.D=new g.q({Z:"div",j:"ytp-featured-product-exclusive-container", C:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},B:[{Z:"div",j:"ytp-featured-product-exclusive-badge-container",B:[{Z:"div",j:"ytp-featured-product-exclusive-badge",B:[{Z:"text",j:"ytp-featured-product-exclusive-badge-text",Ir:"{{exclusive}}",C:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.T]});this.D.hide();g.W(this,this.D);this.banner=new g.q({Z:"a",j:"ytp-featured-product-container",B:[{Z:"div",j:"ytp-featured-product-thumbnail",B:[{Z:"img",C:{src:"{{thumbnail}}"}},this.wT]},{Z:"div", j:"ytp-featured-product-details",B:[{Z:"text",j:"ytp-featured-product-title",Ir:"{{title}}"},this.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Z:"div",j:"ytp-featured-product-price-container",C:{"aria-label":"{{priceA11yText}}"},B:[{Z:"text",j:"ytp-featured-product-price-when-promotion-text-enabled",Ir:"{{price}}",C:{"aria-hidden":"true"}},{Z:"text",j:"ytp-featured-product-promotion-text",Ir:"{{promotionText}}",C:{"aria-hidden":"true"}}]}:{Z:"div",C:{"aria-label":"{{priceA11yText}}"}, B:[{Z:"text",j:"ytp-featured-product-price",Ir:"{{price}}",C:{"aria-hidden":"true"}},{Z:"text",j:"ytp-featured-product-sales-original-price",Ir:"{{salesOriginalPrice}}",C:{"aria-hidden":"true"}},{Z:"text",j:"ytp-featured-product-price-drop-reference-price",Ir:"{{priceDropReferencePrice}}",C:{"aria-hidden":"true"}}]},this.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Z:"div",j:"ytp-featured-product-when-promotion-text-enabled",B:[{Z:"text",j:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", Ir:"{{affiliateDisclaimer}}"},this.V,{Z:"text",j:"ytp-featured-product-vendor-when-promotion-text-enabled",Ir:"{{vendor}}"}]}:{Z:"div",B:[{Z:"text",j:"ytp-featured-product-affiliate-disclaimer",Ir:"{{affiliateDisclaimer}}"},this.S.J("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.D:null,this.V,{Z:"text",j:"ytp-featured-product-vendor",Ir:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.W(this,this.banner);this.banner.DM(this.U.element);this.Y(this.S,g.qR("featured_product"), this.Max);this.Y(this.S,g.PR("featured_product"),this.Tr);this.Y(this.S,"videodatachange",this.onVideoDataChange);this.Y(this.overflowButton.element,"click",this.dZ);this.Y(A,"featuredproductdismissed",this.qb)}; var DCk=function(A){return jE[S[2]](this,72,A)}; Id7=function(A){var L,B;A=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:B.itemData;var f,K,V;return(A==null||!A.affiliateDisclaimer)&&(A==null?0:(f=A.exclusivesData)==null?0:f.exclusiveOfferLabelText)&&(A==null?0:(K=A.exclusivesData)==null?0:K.expirationTimestampMs)&&(A==null?0:(V=A.exclusivesData)==null?0:V.exclusiveOfferCountdownText)?!0:!1}; pJ8=function(A){var L,B,f,K,V=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:(f=B.itemData)==null?void 0:(K=f.exclusivesData)==null?void 0:K.expirationTimestampMs;L=(Number(V)-Date.now())/1E3;if(L>0){if(L<604800){var J,R,Z,N;B=(J=A.N)==null?void 0:(R=J.bannerData)==null?void 0:(Z=R.itemData)==null?void 0:(N=Z.exclusivesData)==null?void 0:N.exclusiveOfferCountdownText;if(B!==void 0)for(J=Date.now(),R=g.m(B),Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Z!==void 0&&Z.text!==void 0&&(N=Number(Z.textDisplayStartTimestampMs), !isNaN(N)&&J>=N)){Z.insertCountdown?(L=Z.text.replace(/\$0/,String(VG({seconds:L}))),A.T.setContent(L)):A.T.setContent(Z.text);A.T.show();break}}var F,D,I,d;A.D.update({exclusive:(F=A.N)==null?void 0:(D=F.bannerData)==null?void 0:(I=D.itemData)==null?void 0:(d=I.exclusivesData)==null?void 0:d.exclusiveOfferLabelText});A.D.show();a_(A);var w;(w=A.t$)==null||w.start()}else wJL(A)}; wJL=function(A){var L;(L=A.t$)==null||L.stop();A.T.hide();A.D.hide();AP(A)}; yPe=function(A){var L,B,f=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:B.itemData;return A.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(f==null||!f.priceReplacementText)&&(f==null?0:f.promotionText)?f==null?void 0:f.promotionText.content:null}; jD7=function(A){var L,B,f=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:B.itemData,K,V;if(!(f!=null&&f.priceReplacementText||A.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(f==null?0:(K=f.dealsData)==null?0:(V=K.sales)==null?0:V.originalPrice)){var J,R;return f==null?void 0:(J=f.dealsData)==null?void 0:(R=J.sales)==null?void 0:R.originalPrice}return null}; gte=function(A){var L,B,f=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:B.itemData,K,V,J,R;if(!((f==null?0:f.priceReplacementText)||A.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(f==null?0:(K=f.dealsData)==null?0:(V=K.sales)==null?0:V.originalPrice))&&(f==null?0:(J=f.dealsData)==null?0:(R=J.priceDrop)==null?0:R.referencePrice)){var Z,N;return f==null?void 0:(Z=f.dealsData)==null?void 0:(N=Z.priceDrop)==null?void 0:N.referencePrice}return null}; GoQ=function(A){var L,B,f=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:B.itemData;if(f==null?0:f.priceReplacementText)return f==null?void 0:f.priceReplacementText;if((f==null?0:f.promotionText)&&A.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var K;return(f==null?void 0:f.price)+" "+(f==null?void 0:(K=f.promotionText)==null?void 0:K.content)}var V,J;if(f==null?0:(V=f.dealsData)==null?0:(J=V.sales)==null?0:J.originalPrice){var R,Z;return f==null?void 0:(R=f.dealsData)== null?void 0:(Z=R.sales)==null?void 0:Z.salesPriceAccessibilityLabel}var N,F;if(f==null?0:(N=f.dealsData)==null?0:(F=N.priceDrop)==null?0:F.referencePrice){var D,I;return(f==null?void 0:f.price)+" "+(f==null?void 0:(D=f.dealsData)==null?void 0:(I=D.priceDrop)==null?void 0:I.referencePrice)}return f==null?void 0:f.price}; rPk=function(A){if(A.S.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var L,B,f;return A.V.bC?null:(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:(f=B.itemData)==null?void 0:f.vendorName}var K,V,J,R,Z,N;return A.V.bC||A.D.bC||((K=A.N)==null?0:(V=K.bannerData)==null?0:(J=V.itemData)==null?0:J.affiliateDisclaimer)?null:(R=A.N)==null?void 0:(Z=R.bannerData)==null?void 0:(N=Z.itemData)==null?void 0:N.vendorName}; HQD=function(A,L){LQ(A);if(L){var B=g.Iq.getState().entities;B=nz(B,"featuredProductsEntity",L);if(B!=null&&B.productsData){L=[];B=g.m(B.productsData);for(var f=B.next();!f.done;f=B.next()){f=f.value;var K=void 0;if((K=f)!=null&&K.identifier&&f.featuredSegments){A.ZM.push(f);var V=void 0;K=g.m((V=f)==null?void 0:V.featuredSegments);for(V=K.next();!V.done;V=K.next()){var J=V.value;V=sD1(J.startTimeSec);V!==void 0&&(J=sD1(J.endTimeSec),L.push(new g.WR(V*1E3,J===void 0?0x7ffffffffffff:J*1E3,{id:f.identifier, namespace:"featured_product"})))}}}A.S.dX(L)}}}; AP=function(A){if(A.trendingOfferEntityKey){var L=g.Iq.getState().entities;if(L=nz(L,"trendingOfferEntity",A.trendingOfferEntityKey)){var B,f,K;L.encodedSkuId!==((B=A.N)==null?void 0:(f=B.bannerData)==null?void 0:(K=f.itemData)==null?void 0:K.encodedOfferSkuId)?a_(A):(A.V.update({trendingOffer:L.shortLabel+" \u2022 "+L.countLabel}),A.V.show(),A.banner.update({vendor:rPk(A)}))}else a_(A)}else a_(A)}; a_=function(A){A.V.hide();A.banner.update({vendor:rPk(A)})}; DYy=function(A,L){!A.S.J("web_enable_shopping_timely_shelf_client")||A.S.J("web_force_featured_product_banner_with_timely_shelf")||!L||L.isLivePlayback||L.isPremiere?A.badge.element.classList.remove("ytp-timely-shelf-present"):A.badge.element.classList.add("ytp-timely-shelf-present")}; LQ=function(A){A.ZM=[];A.Tr();A.S.Jf("featured_product")}; hCL=function(A){var L,B,f,K,V=(L=A.N)==null?void 0:(B=L.bannerData)==null?void 0:(f=B.itemData)==null?void 0:(K=f.hiddenProductOptions)==null?void 0:K.dropTimestampMs;L=(Number(V)-Date.now())/1E3;A.countdownTimer.setContent(VG({seconds:L}));if(L>0){var J;(J=A.zV)==null||J.start()}}; bQC=function(A){var L;(L=A.zV)==null||L.stop();A.countdownTimer.hide()}; sD1=function(A){if(A!==void 0&&A.trim()!==""&&(A=Math.trunc(Number(A.trim())),!(isNaN(A)||A<0)))return A}; Cr8=function(A,L,B){g.q.call(this,{Z:"div",Rr:["ytp-info-panel-action-item"],B:[{Z:"div",j:"ytp-info-panel-action-item-disclaimer",Ir:"{{disclaimer}}"},{Z:"a",Rr:["ytp-info-panel-action-item-button","ytp-button"],C:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},B:[{Z:"div",j:"ytp-info-panel-action-item-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-info-panel-action-item-label",Ir:"{{label}}"}]}]});this.S=A;this.W=B;this.disclaimer=this.m4("ytp-info-panel-action-item-disclaimer");this.button= this.m4("ytp-info-panel-action-item-button");this.gX=!1;this.S.createServerVe(this.element,this,!0);this.listen("click",this.onClick);A="";B=g.y(L==null?void 0:L.onTap,XP);var f=g.y(B,g.Mt);this.gX=!1;f?(A=f.url||"",A.startsWith("//")&&(A="https:"+A),this.gX=!0,g.tF(this.button,g.hF(A))):(f=g.y(B,tc1))&&!this.W?((A=f.phoneNumbers)&&A.length>0?(A="sms:"+A[0],f.messageText&&(A+="?&body="+encodeURI(f.messageText))):A="",this.gX=!0,g.tF(this.button,g.hF(A,[koy]))):(B=g.y(B,Txw))&&!this.W&&(A=B.phoneNumber? "tel:"+B.phoneNumber:"",this.gX=!0,g.tF(this.button,g.hF(A,[ld8])));this.S.J("embeds_enable_info_panel_dismissal")&&!A&&(B=g.y(L==null?void 0:L.onTap,XP),f=g.y(B,mYD))&&(this.gX=!0,this.N=B,this.feedbackToken=f.feedbackToken);var K;if(B=(K=L.disclaimerText)==null?void 0:K.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var V,J;this.update({label:(V=L.bodyText)==null?void 0:V.content,icon:this.S.J("embeds_enable_info_panel_dismissal")?QDv((J=L.icon)== null?void 0:J.iconType):tr(),disclaimer:B})}else{this.disclaimer.style.display="none";var R,Z;this.update({label:(R=L.bodyText)==null?void 0:R.content,icon:this.S.J("embeds_enable_info_panel_dismissal")?QDv((Z=L.icon)==null?void 0:Z.iconType):tr()})}this.S.setTrackingParams(this.element,L.trackingParams||null);this.gX&&(this.V={externalLinkData:{url:A}})}; QDv=function(A){switch(A){case "OPEN_IN_NEW":return tr();case "NOT_INTERESTED":return{Z:"svg",C:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return sW();default:return tr()}}; iQ7=function(A,L){var B=Ru();g.zg.call(this,A,{Z:"div",j:"ytp-info-panel-detail-skrim",B:[{Z:"div",j:"ytp-info-panel-detail",C:{role:"dialog",id:B},B:[{Z:"div",j:"ytp-info-panel-detail-header",B:[{Z:"div",j:"ytp-info-panel-detail-title",Ir:"{{title}}"},{Z:"button",Rr:["ytp-info-panel-detail-close","ytp-button"],C:{"aria-label":"Cerrar"},B:[g.GZ()]}]},{Z:"div",j:"ytp-info-panel-detail-body",Ir:"{{body}}"},{Z:"div",j:"ytp-info-panel-detail-items"}]}]},250);var f=this;this.N=L;this.items=this.m4("ytp-info-panel-detail-items"); this.W=new g.dN(this);this.itemData=[];this.V=B;this.Y(this.m4("ytp-info-panel-detail-close"),"click",this.YP);this.Y(this.m4("ytp-info-panel-detail-skrim"),"click",this.YP);this.Y(this.m4("ytp-info-panel-detail"),"click",function(K){K.stopPropagation()}); this.Y(this.S,"infopaneldetaildismissed",function(){A.J("embeds_enable_info_panel_dismissal")&&f.YP()}); g.W(this,this.W);this.S.createServerVe(this.element,this,!0);this.Y(A,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",A.getVideoData());this.hide()}; $Ye=function(A,L){A=g.m(A.itemData);for(var B=A.next();!B.done;B=A.next())B=B.value,B.S.logVisibility(B.element,L)}; Ete=function(A,L){g.q.call(this,{Z:"button",j:"ytp-info-panel-preview",C:{"aria-live":"assertive","aria-atomic":"true","aria-owns":L.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"div",j:"ytp-info-panel-preview-text",Ir:"{{text}}"},{Z:"div",j:"ytp-info-panel-preview-chevron",Ir:"{{chevron}}"}]});var B=this;this.S=A;this.xb=this.N=this.videoId=null;this.isDismissed=this.V=this.showControls=this.W=!1;this.Y(this.element,"click",function(){A.logClick(B.element);A.p5(); ah(L)}); this.fade=new g.KL(this,250,!1,100);g.W(this,this.fade);this.S.createServerVe(this.element,this,!0);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(A,"presentingplayerstatechange",this.W1);this.Y(this.S,"paidcontentoverlayvisibilitychange",this.v8);this.Y(this.S,"infopaneldetailvisibilitychange",this.v8);var f=A.getVideoData()||{};XJ1(f)&&OQ0(this,f);this.Y(A,"onShowControls",this.yL);this.Y(A,"onHideControls",this.NZ);this.Y(this.S,"infopaneldetaildismissed",function(){A.J("embeds_enable_info_panel_dismissal")&& (B.isDismissed=!0,B.hide())})}; OQ0=function(A,L){if(!L.b8||!A.S.BF()){var B=L.Qu||1E4,f=XJ1(L);A.N?L.videoId&&L.videoId!==A.videoId&&(g.o1(A.N),A.videoId=L.videoId,f?(cP8(A,B,L),A.fD()):(A.YP(),A.N.dispose(),A.N=null)):f&&(L.videoId&&(A.videoId=L.videoId),cP8(A,B,L),A.fD())}}; XJ1=function(A){var L,B,f,K;return!!((L=A.KY)==null?0:(B=L.title)==null?0:B.content)||!!((f=A.KY)==null?0:(K=f.bodyText)==null?0:K.content)}; cP8=function(A,L,B){A.N&&A.N.dispose();A.N=new g.aa(A.XR4,L,A);g.W(A,A.N);var f;L=((f=B.KY)==null?void 0:f.trackingParams)||null;A.S.setTrackingParams(A.element,L);var K;var V,J;if(B==null?0:(V=B.KY)==null?0:(J=V.title)==null?0:J.content){var R;f=(K=B.KY)==null?void 0:(R=K.title)==null?void 0:R.content;var Z,N;if((Z=B.KY)==null?0:(N=Z.bodyText)==null?0:N.content)f+=" \u2022 ";K=f}else K="";var F,D;B=((F=B.KY)==null?void 0:(D=F.bodyText)==null?void 0:D.content)||"";A.update({text:K+B,chevron:g.gq()})}; Mc0=function(A,L){A.N&&(g.x(L,8)?(A.W=!0,A.fD(),A.N.start()):(g.x(L,2)||g.x(L,64))&&A.videoId&&(A.videoId=null))}; oD=function(A){var L=null;try{L=A.toLocaleString("es-419",{style:"percent"})}catch(B){L=A.toLocaleString(void 0,{style:"percent"})}return L}; BJ=function(A,L){var B=0;A=g.m(A);for(var f=A.next();!(f.done||f.value.startTime>L);f=A.next())B++;return B===0?B:B-1}; Yf1=function(A,L){for(var B=0,f=g.m(A),K=f.next();!K.done;K=f.next()){K=K.value;if(L=K.timeRangeStartMillis&&L2147483647?"0":String(A)}; KQ=function(A,L,B){var f=A.api.getCurrentTime(),K=xY8(A,f);A=xY8(A,f+L);return{startMediaTimeMs:K,endMediaTimeMs:A,seekSource:B}}; eCE=function(A){var L,B=(L=A.api.getVideoData())==null?void 0:L.aA();return A.api.getPresentingPlayerType(B)!==2}; fQ=function(A,L){A.V.V1=L;g.D1(A.api.getRootNode(),"ytp-probably-keyboard-focus",L);g.D1(A.contextMenu.element,"ytp-probably-keyboard-focus",L)}; JP=function(A,L,B,f){var K=g.y2(A.api.SI());if(K&&K.loaded){var V=A.api.getSubtitlesUserSettings();K=void 0;for(var J=0;J0?L[0]:null;var B=g.sA("ytp-chrome-bottom"),f=g.sA("ytp-ad-module");A.V=!(B==null||!B.contains(L));A.T=!(f==null||!f.contains(L));A.X=!(L==null||!L.hasAttribute("data-tooltip-target-fixed"));return L}; KjC=function(A,L,B){if(!A.U){if(L){A.tooltipRenderer=L;L=A.tooltipRenderer.text;var f=!1,K;(L==null?0:(K=L.runs)==null?0:K.length)&&L.runs[0].text&&(A.update({title:L.runs[0].text.toString()}),f=!0);g.y9(A.title,f);L=A.tooltipRenderer.detailsText;K=!1;var V;if((L==null?0:(V=L.runs)==null?0:V.length)&&L.runs[0].text){f=L.runs[0].text.toString();V=f.indexOf("$TARGET_ICON");if(V>-1)if(A.tooltipRenderer.targetId){L=[];f=f.split("$TARGET_ICON");var J=new g.ZE({Z:"span",j:"ytp-promotooltip-details-icon", B:[B0e[A.tooltipRenderer.targetId]]});g.W(A,J);for(var R=[],Z=g.m(f),N=Z.next();!N.done;N=Z.next())N=new g.ZE({Z:"span",j:"ytp-promotooltip-details-component",Ir:N.value}),g.W(A,N),R.push(N);f.length===2?(L.push(R[0].element),L.push(J.element),L.push(R[1].element)):f.length===1&&(V===0?(L.push(J.element),L.push(R[0].element)):(L.push(R[0].element),L.push(J.element)));V=L.length?L:null}else V=null;else V=f;if(V){if(typeof V!=="string")for(g.Ql(A.details),K=g.m(V),V=K.next();!V.done;V=K.next())A.details.appendChild(V.value); else A.update({details:V});K=!0}}g.y9(A.details,K);K=A.tooltipRenderer.acceptButton;V=!1;var F,D,I;((F=g.y(K,g.te))==null?0:(D=F.text)==null?0:(I=D.runs)==null?0:I.length)&&g.y(K,g.te).text.runs[0].text&&(A.update({acceptButtonText:g.y(K,g.te).text.runs[0].text.toString()}),V=!0);g.y9(A.acceptButton,V);F=A.tooltipRenderer.dismissButton;D=!1;var d,w,r;((d=g.y(F,g.te))==null?0:(w=d.text)==null?0:(r=w.runs)==null?0:r.length)&&g.y(F,g.te).text.runs[0].text&&(A.update({dismissButtonText:g.y(F,g.te).text.runs[0].text.toString()}), D=!0);g.y9(A.dismissButton,D)}B&&(A.sourceElement=B);A.N=ooL(A);A.D=!1;A.S.K().J("web_player_hide_nitrate_promo_tooltip")||A.xP(!0);fCD(A);A.bC&&!A.G&&(A.G=!0,A.GV.ew(0));A.W&&A.S.logVisibility(A.element,A.bC)}}; Zd=function(A){A.xP(!1);A.W&&A.S.logVisibility(A.element,A.bC)}; VQ6=function(A){var L,B,f,K=((L=g.y(A.acceptButton,g.te))==null?void 0:(B=L.text)==null?void 0:(f=B.runs)==null?void 0:f.length)&&!!g.y(A.acceptButton,g.te).text.runs[0].text,V,J,R;L=((V=g.y(A.dismissButton,g.te))==null?void 0:(J=V.text)==null?void 0:(R=J.runs)==null?void 0:R.length)&&!!g.y(A.dismissButton,g.te).text.runs[0].text;return K||L}; fCD=function(A){var L;if(!(L=!A.N)){L=A.N;var B=window.getComputedStyle(L);L=B.display==="none"||B.visibility==="hidden"||L.getAttribute("aria-hidden")==="true"}if(L||A.S.isMinimized())A.xP(!1);else if(L=g.pv(A.N),L.width&&L.height){A.S.TT(A.element,A.N);var f=A.S.Pn().getPlayerSize().height;B=g.pv(A.m4("ytp-promotooltip-container")).height;A.V?A.element.style.top=f-B-L.height-12+"px":A.X||(f=A.S.O7().height-B-L.height-12,A.element.style.top=f+"px");f=A.m4("ytp-promotooltip-pointer");var K=g.IR(A.N, A.S.getRootNode()),V=Number(A.element.style.left.replace(/[^\d\.]/g,""));A=A.S.isFullscreen()?18:12;f.style.left=K.x-V+L.width/2-A+"px";f.style.top=B+"px"}else A.xP(!1)}; NY=function(A){g.q.call(this,{Z:"button",Rr:["ytp-replay-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"Volver a reproducir":"","data-tooltip-title":"Volver a reproducir"},B:[g.m1()]});this.S=A;this.Y(A,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Y6(A.getPlayerStateObject());Cm(this.S,this.element,this)}; FS=function(A,L){L=L===void 0?240:L;g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-search-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"div",j:"ytp-search-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-search-title",Ir:"Buscar"}]});this.api=A;this.W=L;this.visible=!1;this.updateValue("icon",{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",j:"ytp-svg-fill",C:{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"}}]}); A.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.N();this.Y(A,"appresize",this.N);this.Y(A,"videodatachange",this.N);Cm(A,this.element,this)}; Dd=function(A){g.q.call(this,{Z:"div",j:"ytp-seek-overlay",B:[{Z:"div",Rr:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],B:[{Z:"div",Rr:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],B:[{Z:"svg",C:{viewBox:"0 0 22 32",width:"22",height:"24"},B:[{Z:"path",C:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{Z:"div",j:"ytp-seek-overlay-duration",Ir:"{{durationBack}}"}]},{Z:"div",Rr:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],B:[{Z:"div",j:"ytp-seek-overlay-duration",Ir:"{{durationForward}}"},{Z:"div",Rr:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],B:[{Z:"svg",C:{viewBox:"0 0 22 32",width:"22",height:"24"},B:[{Z:"path",C:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{Z:"div",j:"ytp-seek-overlay-message",B:[{Z:"div",j:"ytp-seek-overlay-message-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-seek-overlay-message-text", Ir:"{{text}}"}]}]});var L=this;this.S=A;this.D=0;this.N="hidden";this.X=this.m4("ytp-seek-overlay-animation-back");this.G=this.m4("ytp-seek-overlay-animation-forward");this.Wn=this.m4("ytp-seek-overlay-message");this.T=new g.aa(function(){JSy(L)},g.Am(this.S.K().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.W(this,this.T);this.S.createClientVe(this.G,this,28240);this.S.createClientVe(this.X,this,28239);this.S.logVisibility(this.G,!0);this.S.logVisibility(this.X,!0);this.hide()}; SYD=function(A,L){A.V=A.U.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:L},{offset:1,opacity:1}],{duration:200,fill:"forwards"});A.V.addEventListener("finish",function(){A.V=void 0;A.T.start();A.N="lingering"})}; RWy=function(A,L,B,f){B=B===void 0?!1:B;f=f===void 0?!1:f;var K=[];K.push({offset:0,transform:"translateX("+(A.W===-1?20:-20)+"px)",opacity:B?"0":"1"});B&&K.push({offset:.5,opacity:"1"});K.push({offset:1,transform:"translateX(0)",opacity:"1"});B=L.animate(K,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});L=L.querySelector("path");K=[];var V={offset:0,d:A.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};f&&(V.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");K.push(V); f&&K.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});A={offset:1,d:A.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};f&&(A.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");K.push(A);L.animate(K,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return B}; Zbk=function(A){var L=A.U.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);L.classList.add("ytp-seek-overlay-arrow-additional");L.classList.remove("ytp-seek-overlay-arrow-persistent");A.U.appendChild(L);RWy(A,L,!0,!0).addEventListener("finish",function(){L.remove()})}; JSy=function(A,L,B){B=B===void 0?!0:B;A.V=A.U.animate([{offset:0,opacity:L===void 0?1:L},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});B&&(A.V.addEventListener("finish",function(){A.V=void 0;N0v(A);A.hide()}),A.N="fading-out")}; Fje=function(A){var L=Number(getComputedStyle(A.U).opacity),B;(B=A.V)==null||B.cancel();A.V=void 0;return L}; N0v=function(A){A.D=0;A.N="hidden";A.W=void 0;A.U=void 0;A.T.stop();A.V=void 0}; Ddv=function(A,L,B){A.updateValue("text",L);if(B){a:{switch(B){case "PREMIUM_STANDALONE":L=Rme();break a;case "PREMIUM_STANDALONE_CAIRO":L=ZnC();break a}L=void 0}A.updateValue("icon",L)}L=g.m(A.Wn.getAnimations());for(B=L.next();!B.done;B=L.next())B.value.cancel();A.Wn.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){A.updateValue("text","");A.updateValue("icon","")})}; dx=function(A,L,B,f){f=f===void 0?240:f;g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-share-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":B.element.id,"data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"div",j:"ytp-share-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-share-title",Ir:"Compartir"}]});this.api=A;this.N=L;this.W=B;this.V=f;this.visible=!1;this.tooltip=this.N.Ce();A.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.Y(A,"videodatachange",this.zL);this.Y(A,"videoplayerreset",this.zL);this.Y(A,"appresize",this.zL);this.Y(A,"presentingplayerstatechange",this.zL);this.zL();this.addOnDisposeCallback(g.QW(this.tooltip,this.element))}; ddv=function(A){var L=A.api.K(),B=A.api.getVideoData(),f=g.MM(L)&&g.ch(A.api)&&g.x(A.api.getPlayerStateObject(),128);L=L.V||L.disableSharing&&A.api.getPresentingPlayerType()!==2||!B.showShareButton||B.kR||f||B.OE||!1;f=A.api.Pn().getPlayerSize().width;return!!B.videoId&&f>=A.V&&!L}; ICk=function(A,L){L.name!=="InvalidStateError"&&L.name!=="AbortError"&&(L.name==="NotAllowedError"?(A.N.p5(),ah(A.W,A.element,!1)):g.mL(L))}; pdD=function(A,L){var B=Ru(),f=A.K();B={Z:"div",j:"ytp-share-panel",C:{id:Ru(),role:"dialog","aria-labelledby":B},B:[{Z:"div",j:"ytp-share-panel-inner-content",B:[{Z:"div",j:"ytp-share-panel-title",C:{id:B},Ir:"Compartir"},{Z:"a",Rr:["ytp-share-panel-link","ytp-no-contextmenu"],C:{href:"{{link}}",target:f.yj,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},Ir:"{{linkText}}"},{Z:"label",j:"ytp-share-panel-include-playlist",B:[{Z:"input",j:"ytp-share-panel-include-playlist-checkbox", C:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{Z:"div",j:"ytp-share-panel-loading-spinner",B:[yC()]},{Z:"div",j:"ytp-share-panel-service-buttons",Ir:"{{buttons}}"},{Z:"div",j:"ytp-share-panel-error",Ir:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{Z:"button",Rr:["ytp-share-panel-close","ytp-button"],C:{title:"Cerrar"},B:[g.GZ()]}]};g.zg.call(this,A,B,250);var K=this;this.moreButton=null;this.api=A;this.tooltip=L.Ce();this.W=[];this.U= this.m4("ytp-share-panel-inner-content");this.closeButton=this.m4("ytp-share-panel-close");this.Y(this.closeButton,"click",this.YP);this.addOnDisposeCallback(g.QW(this.tooltip,this.closeButton));this.V=this.m4("ytp-share-panel-include-playlist-checkbox");this.Y(this.V,"click",this.zL);this.N=this.m4("ytp-share-panel-link");this.addOnDisposeCallback(g.QW(this.tooltip,this.N));this.api.createClientVe(this.N,this,164503);this.Y(this.N,"click",function(V){V.preventDefault();K.api.logClick(K.N);var J= K.api.getVideoUrl(!0,!0,!1,!1);J=wdS(K,J);g.wC(J,K.api,V)&&K.api.Kr("SHARE_CLICKED")}); this.listen("click",this.cj);this.Y(A,"videoplayerreset",this.hide);this.Y(A,"fullscreentoggled",this.onFullscreenToggled);this.Y(A,"onLoopRangeChange",this.wzT);this.hide()}; gok=function(A,L){ySk(A);for(var B=L.links||L.shareTargets,f=0,K={},V=0;V0&&!U&&!O?(C.length===2&&(C=["noreferrer"]),g.QR(d,r,I,C[0]),d=icy()):(h=l.join(","),ay()&&d.navigator&&d.navigator.standalone&&I&&I!="_self"?(h=g.TO("A"),g.tF(h,r),h.target=I,Q&&(h.rel="noreferrer"),((w=w.attributionsrc)||w==="")&&h.setAttribute("attributionsrc",w),w=document.createEvent("MouseEvent"), w.initMouseEvent("click",!0,!0,d,1),h.dispatchEvent(w),d=icy()):Q?(d=g.QR(d,"",I,h),w=g.rt(r),d&&(d.opener=null,w===""&&(w="javascript:''"),w='',w=lO(w),(r=d.document)&&r.write&&(r.write(mC(w)),r.close()))):((d=g.QR(d,r,I,h))&&w.noopener&&(d.opener=null),d&&w.noreferrer&&(d.opener=null)));d&&(d.opener||(d.opener=window),d.focus());D.preventDefault()}}}(K)); K.lF.addOnDisposeCallback(g.QW(A.tooltip,K.lF.element));R==="Facebook"?A.api.createClientVe(K.lF.element,K.lF,164504):R==="Twitter"&&A.api.createClientVe(K.lF.element,K.lF,164505);A.Y(K.lF.element,"click",function(F){return function(){A.api.logClick(F.lF.element)}}(K)); A.api.logVisibility(K.lF.element,!0);A.W.push(K.lF);f++}}var Z=L.more||L.moreLink,N=new g.q({Z:"a",Rr:["ytp-share-panel-service-button","ytp-button"],B:[{Z:"span",j:"ytp-share-panel-service-button-more",B:[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},B:[{Z:"rect",C:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Z:"path",C:{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"}}]}]}],C:{href:Z,target:"_blank",title:"M\u00e1s"}});N.listen("click",function(F){var D=Z;A.api.logClick(A.moreButton.element);D=wdS(A,D);g.wC(D,A.api,F)&&A.api.Kr("SHARE_CLICKED")}); N.addOnDisposeCallback(g.QW(A.tooltip,N.element));A.api.createClientVe(N.element,N,164506);A.Y(N.element,"click",function(){A.api.logClick(N.element)}); A.api.logVisibility(N.element,!0);A.W.push(N);A.moreButton=N;A.updateValue("buttons",A.W)}; wdS=function(A,L){var B={};g.MM(A.api.K())&&(g.jg(A.api,"addEmbedsConversionTrackingParams",[B]),L=g.ip(L,B));return L}; ySk=function(A){for(var L=g.m(A.W),B=L.next();!B.done;B=L.next())B=B.value,B.detach(),g.jq(B);A.W=[]}; ID=function(A){return A===void 0||A.startSec===void 0||A.endSec===void 0?!1:!0}; GGL=function(A,L){A.startSec+=L;A.endSec+=L}; s7y=function(A){DW.call(this,A);this.V=this.N=this.isContentForward=this.T=!1;this.element.setAttribute("data-overlay-order","8");rSk(this);this.Y(this.S,"changeProductsInVideoVisibility",this.uOs);this.Y(this.S,"videodatachange",this.onVideoDataChange)}; Hbv=function(A){A.D&&A.JF.element.removeChild(A.D.element);A.D=void 0}; bb6=function(A,L){return L.map(function(B){var f,K;if((B=(f=g.y(B,hW8))==null?void 0:(K=f.thumbnail)==null?void 0:K.thumbnails)&&B.length!==0)return B[0].url}).filter(function(B){return B!==void 0}).map(function(B){B=new g.q({Z:"img", j:"ytp-suggested-action-product-thumbnail",C:{alt:"",src:B}});g.W(A,B);return B})}; tQ1=function(A,L){A.isContentForward=L;g.D1(A.badge.element,"ytp-suggested-action-badge-content-forward",L)}; wx=function(A){var L=A.isContentForward&&!A.pH();g.D1(A.badge.element,"ytp-suggested-action-badge-preview-collapsed",L&&A.N);g.D1(A.badge.element,"ytp-suggested-action-badge-preview-expanded",L&&A.V)}; pQ=function(A,L,B){return new g.WR(A*1E3,L*1E3,{priority:9,namespace:B})}; kGk=function(A){A.S.Jf("shopping_overlay_visible");A.S.Jf("shopping_overlay_preview_collapsed");A.S.Jf("shopping_overlay_preview_expanded");A.S.Jf("shopping_overlay_expanded")}; rSk=function(A){A.Y(A.S,g.qR("shopping_overlay_visible"),function(){A.wI(!0)}); A.Y(A.S,g.PR("shopping_overlay_visible"),function(){A.wI(!1)}); A.Y(A.S,g.qR("shopping_overlay_expanded"),function(){A.qp=!0;F7(A)}); A.Y(A.S,g.PR("shopping_overlay_expanded"),function(){A.qp=!1;F7(A)}); A.Y(A.S,g.qR("shopping_overlay_preview_collapsed"),function(){A.N=!0;wx(A)}); A.Y(A.S,g.PR("shopping_overlay_preview_collapsed"),function(){A.N=!1;wx(A)}); A.Y(A.S,g.qR("shopping_overlay_preview_expanded"),function(){A.V=!0;wx(A)}); A.Y(A.S,g.PR("shopping_overlay_preview_expanded"),function(){A.V=!1;wx(A)})}; mdD=function(A){g.q.call(this,{Z:"div",j:"ytp-shorts-title-channel",B:[{Z:"a",j:"ytp-shorts-title-channel-logo",C:{href:"{{channelLink}}",target:A.K().yj,"aria-label":"{{channelLogoLabel}}"}},{Z:"div",j:"ytp-shorts-title-expanded-heading",B:[{Z:"div",j:"ytp-shorts-title-expanded-title",B:[{Z:"a",Ir:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:A.K().yj,tabIndex:"0"}}]}]}]});var L=this;this.api=A;this.N=this.m4("ytp-shorts-title-channel-logo");this.channelName=this.m4("ytp-shorts-title-expanded-title"); this.subscribeButton=null;A.createClientVe(this.N,this,36925);this.Y(this.N,"click",function(B){L.api.logClick(L.N);g.QR(window,T0E(L));B.preventDefault()}); A.createClientVe(this.channelName,this,37220);this.Y(this.channelName,"click",function(B){L.api.logClick(L.channelName);g.QR(window,T0E(L));B.preventDefault()}); lCE(this);this.Y(A,"videodatachange",this.zL);this.Y(A,"videoplayerreset",this.zL);this.zL()}; lCE=function(A){if(!A.api.K().jI){var L=A.api.getVideoData(),B=new g.xS("Suscribirse",null,"Suscrito/a",null,!0,!1,L.JO,L.subscribed,"channel_avatar",null,A.api,!0);A.api.createServerVe(B.element,A);var f;A.api.setTrackingParams(B.element,((f=L.subscribeButtonRenderer)==null?void 0:f.trackingParams)||null);A.Y(B.element,"click",function(){A.api.logClick(B.element)}); A.subscribeButton=B;g.W(A,A.subscribeButton);A.subscribeButton.DM(A.element)}}; T0E=function(A){var L=A.api.K(),B=A.api.getVideoData();B=g.wd(L)+B.Ys;if(!g.MM(L))return B;L={};g.jg(A.api,"addEmbedsConversionTrackingParams",[L]);return g.ip(B,L)}; yF=function(A){g.zg.call(this,A,{Z:"button",Rr:["ytp-skip-intro-button","ytp-popup","ytp-button"],B:[{Z:"div",j:"ytp-skip-intro-button-text",Ir:"Omitir introducci\u00f3n"}]},100);var L=this;this.W=!1;this.N=new g.aa(function(){L.hide()},5E3); this.YA=this.SR=NaN;g.W(this,this.N);this.X=function(){L.show()}; this.U=function(){L.hide()}; this.V=function(){var B=L.S.getCurrentTime();B>L.SR/1E3&&B0?{Z:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",Rr:["ytp-circle-arrow","ytp-svg-fill"],C:{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",Rr:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"7.05",y:"15.05"}}]}:{Z:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",Rr:["ytp-circle-arrow","ytp-svg-fill"],C:{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",Rr:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"6.5",y:"15"}}]}]});var B=this;this.S=A;this.N=L;this.W=new g.aa(function(){B.V?(B.V=!1,B.W.start()):B.element.classList.remove("ytp-jump-spin","backwards")},250); this.V=!1;(L=L>0)?this.S.createClientVe(this.element,this,36843):this.S.createClientVe(this.element,this,36844);var f=g.B$(L?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.N).toString()});this.S.J("player_tooltip_data_title_killswitch")?this.update({title:f,"data-title-no-tooltip":f,"aria-keyshortcuts":L?"\u2192":"\u2190"}):this.update({"tooltip-title":f,"data-title-no-tooltip":f,"aria-keyshortcuts":L?"\u2192":"\u2190"});this.U=this.element.querySelector(".ytp-jump-button-text"); this.U.textContent=Math.abs(this.N).toString();this.listen("click",this.onClick,this);Cm(A,this.element,this)}; cS7=function(A,L){L?A.element.classList.add("ytp-jump-button-enabled"):A.element.classList.remove("ytp-jump-button-enabled");A.S.logVisibility(A.element,L);A.S.qq()}; hP=function(A,L){gx.call(this,A,L,"timedMarkerCueRange","Ver momentos clave");this.Y(A,g.PR("timedMarkerCueRange"),this.iq);this.Y(A,"updatemarkervisibility",this.updateVideoData)}; MQD=function(A){var L,B=(L=A.S.getVideoData())==null?void 0:L.JF;if(B)for(A=A.U.sx,B=g.m(B),L=B.next();!L.done;L=B.next())if(L=A[L.value]){var f=void 0,K=void 0,V=void 0;if(((f=L.onTap)==null?void 0:(K=f.innertubeCommand)==null?void 0:(V=K.changeEngagementPanelVisibilityAction)==null?void 0:V.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return L}}; br=function(A){g.q.call(this,{Z:"button",Rr:["ytp-miniplayer-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},B:["{{icon}}"]});this.S=A;this.visible=!1;this.listen("click",this.onClick);this.Y(A,"fullscreentoggled",this.zL);this.S.J("player_tooltip_data_title_killswitch")? this.update({title:g.iz(A,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:YYy(this)}):this.update({"tooltip-title":g.iz(A,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:YYy(this)});Cm(A,this.element,this);A.createClientVe(this.element,this,62946);this.zL()}; YYy=function(A){return A.S.J("delhi_modern_web_player_icons")?BL6():kr()}; tP=function(A,L,B,f,K,V,J){V=V===void 0?!1:V;J=J===void 0?!1:J;var R={Z:"div",Rr:["ytp-input-slider-section"],B:[{Z:"input",j:"ytp-input-slider",C:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};K&&R.B.unshift(K);V&&R.Rr.push("ytp-vertical-slider");g.q.call(this,R);this.V=A;this.T=L;this.G=B;this.initialValue=f;this.header= K;this.JF=J;this.U=0;this.W=this.m4("ytp-input-slider");this.N=f?f:A;this.init();this.Y(this.W,"input",this.D);this.Y(this.W,"keydown",this.X)}; kt=function(A,L){A.JF?(A.U&&(cancelAnimationFrame(A.U),A.U=0),Ud0(A,A.N,L)):Wj6(A,L)}; Wj6=function(A,L){A.N=L;A.update({slidervalue:A.N,ariaValueNow:A.N});A.W.valueAsNumber=A.N;voe(A,L)}; Ud0=function(A,L,B){var f=performance.now(),K=B-L;if(K!==0){var V=function(J){J=(J-f)/400;J>1&&(J=1);Wj6(A,L+K*Hcw(qYv,hjw(qYv,J)));A.U=J<1?requestAnimationFrame(V):0}; A.U=requestAnimationFrame(V)}}; voe=function(A,L){A.W.style.setProperty("--yt-slider-shape-gradient-percent",(L-A.V)/(A.T-A.V)*100+"%")}; To=function(A){var L=A.isMuted()?0:A.getVolume();tP.call(this,0,100,1,L,void 0,!0);this.S=A;this.qp=zO(this.ZM,10,this);this.Wn=!1;this.Y(A,"onVolumeChange",this.onVolumeChange);this.Y(this.element,"wheel",this.Vj)}; PEw=function(A,L){g.q.call(this,{Z:"div",C:{tabindex:"0",title:A.J("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},Rr:["ytp-volume-popover"]});var B=this;this.isVisible=!1;this.tooltip=L.Ce();this.W=new To(A);g.W(this,this.W);this.W.DM(this.element);this.N=new g.aa(function(){lr(B,!1)},300); this.listen("mouseenter",function(){B.N.stop()}); this.listen("mouseleave",function(){B.N.start()}); this.listen("focus",function(){B.N.stop()}); this.Y(this.W.W,"focus",function(){B.N.stop()}); this.listen("focusout",function(){B.N.start();B.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.QW(L.Ce(),this.element));g.W(this,this.N)}; lr=function(A,L){A.element.classList.toggle("ytp-volume-popover-hovering",L);A.isVisible=L;(A=A.element.closest(".ytp-chrome-bottom"))&&A.classList.toggle("ytp-volume-popover-showing",L)}; m0=function(A,L,B){B=B===void 0?!1:B;var f=A.K().JF?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};f=A.J("delhi_modern_web_player")?{Z:"div",j:"ytp-mute-button",B:[{Z:"button",C:f,Rr:["ytp-volume-icon", "ytp-button"],Ir:"{{icon}}"}]}:{Z:"button",Rr:["ytp-mute-button","ytp-button"],C:f,B:[{Z:"div",j:"ytp-volume-icon",Ir:"{{icon}}"}]};g.q.call(this,f);this.S=A;this.S4=B;this.W=null;this.T=this.Vj=this.G=this.X=NaN;this.wT=this.Wn=null;this.D=[];this.U=[];this.visible=!1;this.V=this.N=this.qp=null;A.J("delhi_modern_web_player")&&this.update({"data-priority":4});B=this.S.K();this.updateValue("icon",ia());this.tooltip=L.Ce();this.updateValue("dataTooltipOffsetY",0);this.V=g.sA("ytp-volume-icon",this.element); f=this.S.J("delhi_modern_web_player_icons")?{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",Rr:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],C:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{Z:"path",j:"ytp-svg-volume-animation-small-ripple",C:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{Z:"path",j:"ytp-svg-volume-animation-big-ripple",C:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"defs",B:[{Z:"clipPath",C:{id:"ytp-svg-volume-animation-mask"},B:[{Z:"path",C:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Z:"path",C:{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",C:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{Z:"clipPath",C:{id:"ytp-svg-volume-animation-slash-mask"},B:[{Z:"path",j:"ytp-svg-volume-animation-mover", C:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{Z:"path",bq:!0,Rr:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],C:{"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",bq:!0,Rr:["ytp-svg-fill","ytp-svg-volume-animation-hider"],C:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.W=new g.ZE(f);g.W(this,this.W);this.Wn=this.W.m4("ytp-svg-volume-animation-speaker");this.wT=this.Wn.getAttribute("d");this.D=g.g_("ytp-svg-volume-animation-mover",this.W.element);this.S.J("delhi_modern_web_player_icons");this.U=g.g_("ytp-svg-volume-animation-hider",this.W.element);this.S.J("delhi_modern_web_player_icons");this.JF=new ce;g.W(this,this.JF);this.ZM=new ce;g.W(this,this.ZM);this.Y(A,"appresize",this.DG);this.Y(A,"onVolumeChange",this.onVolumeChange);A.J("delhi_modern_web_player")? this.listen("click",this.BIj):this.listen("click",this.T7);B.JF?(A.J("delhi_modern_web_player")&&!A.J("delhi_modern_web_player_horizontal_volume_controls")&&(this.N=new PEw(A,L),this.N.DM(this.element),g.W(this,this.N),this.Y(this.V,"mouseover",this.ZG),this.Y(this.V,"focus",this.ZG),this.Y(this.V,"mouseout",this.PU),this.Y(this.V,"blur",this.PU)),B=A.J("delhi_modern_web_player")?this.V:this.element,this.addOnDisposeCallback(g.QW(L.Ce(),B))):xdk(this);this.message=null;A.createClientVe(this.element, this,28662);this.DG(A.Pn().getPlayerSize());this.setVolume(A.getVolume(),A.isMuted())}; eWD=function(A,L){if(A.S.K().JF){var B=g.iz(A.S,"Silenciar","m"),f=g.iz(A.S,"Activar sonido","m");B=L?f:B;A.S.K().J("player_tooltip_data_title_killswitch")?A.updateValue("title",B):A.update({"tooltip-title":B,"aria-label":B});A.update({"data-title-no-tooltip":L?"Activar sonido":"Silenciar"});A.tooltip.qq()}}; uAw=function(A,L){A.X=L;var B=A.wT;A.S.J("delhi_modern_web_player_icons")?A.W.m4("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(L+") translate(-22,-12)")):L&&(B+=qPC(noy,zWS,L));A.Wn.setAttribute("d",B)}; aCe=function(A,L){var B;L===1?B=A.S.J("delhi_modern_web_player_icons")?{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:ia():B=A.W;A.Vj=L;if(A.S.J("delhi_modern_web_player_icons"))A.W.m4("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-L+") translate(-18,-12)")),A.W.m4("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(A.X-L+") translate(-22, -12)"));else{for(var f=20*L,K=0;K=3&&A.S.getPresentingPlayerType()!==2}; Kh7=function(A){var L=EU(A.S.SI());return L?A.N?L.hasNext():L.hasPrevious():!1}; oyk=function(A){var L={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},B=A.playlist!=null&&A.playlist.hasNext();B=g.ch(A.S)&&(!A.N||B);var f=A.N&&g.vh(A.S),K=Kh7(A),V=A.N&&A.S.getPresentingPlayerType()===5,J=g.iz(A.S,"Siguiente","SHIFT+n"),R=g.iz(A.S,"Anterior","SHIFT+p");if(V)L.title="Iniciar video",L["tooltip-title"]="Iniciar video";else if(A.V)L.title="Volver a reproducir",L["tooltip-title"]="Volver a reproducir"; else if(B){var Z=null;A.playlist&&(Z=g.R_(A.playlist,A.N?OlQ(A.playlist):E88(A.playlist)));if(Z){if(Z.videoId){var N=A.playlist.listId;L.url=A.S.K().getVideoUrl(Z.videoId,N?N.toString():void 0)}L.text=Z.title;L.duration=Z.lengthText?Z.lengthText:Z.lengthSeconds?g.hG(Z.lengthSeconds):null;L.preview=Z.g1("mqdefault.jpg")}A.N?(L.title=J,L["tooltip-title"]=J,L["data-title-no-tooltip"]="Siguiente",L["aria-keyshortcuts"]="SHIFT+n"):(L.title=R,L["tooltip-title"]=R,L["data-title-no-tooltip"]="Anterior",L["aria-keyshortcuts"]= "SHIFT+p")}else if(f){if(R=(Z=A.videoData)==null?void 0:g.DQ(Z))L.url=R.Ej(),L.text=R.title,L.duration=R.lengthText?R.lengthText:R.lengthSeconds?g.hG(R.lengthSeconds):null,L.preview=R.g1("mqdefault.jpg");L.title=J;L["tooltip-title"]=J;L["data-title-no-tooltip"]="Siguiente";L["aria-keyshortcuts"]="SHIFT+n"}L.disabled=!f&&!B&&!K&&!V;A.update(L);A.T=!!L.url;f||B||A.V||K||V?A.W||(A.W=g.QW(A.tooltip,A.element),A.D=A.listen("click",A.onClick,A)):A.W&&(A.W(),A.W=null,A.J$(A.D),A.D=null);A.tooltip.qq();g.D1(A.element, "ytp-playlist-ui",A.N&&(B||A.S.J("web_hide_next_button")))}; Lhw=function(A,L){return A?L?fGv():hr():L?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:NLw()}; JZy=function(A,L){g.q.call(this,{Z:"div",j:"ytp-fine-scrubbing",B:[{Z:"div",j:"ytp-fine-scrubbing-draggable",B:[{Z:"div",j:"ytp-fine-scrubbing-thumbnails",C:{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",C:{"aria-hidden":"true"},j:"ytp-fine-scrubbing-cursor"},{Z:"div", j:"ytp-fine-scrubbing-seek-time",C:{"aria-hidden":"true"},Ir:"{{seekTime}}"},{Z:"div",j:"ytp-fine-scrubbing-play",B:[A.J("delhi_modern_web_player_icons")?la():TZ()],C:{title:"Reproducir desde este momento",role:"button"}},{Z:"div",j:"ytp-fine-scrubbing-dismiss",B:[g.GZ()],C:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var B=this;this.api=A;this.D=this.m4("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.m4("ytp-fine-scrubbing-dismiss");this.Vj=this.m4("ytp-fine-scrubbing-draggable"); this.playButton=this.m4("ytp-fine-scrubbing-play");this.thumbnails=[];this.W=[];this.S4=this.N=0;this.JF=void 0;this.Wn=NaN;this.Ys=this.G=this.V=this.X=0;this.U=[];this.interval=this.frameCount=0;this.T=160;this.scale=1;this.Ex=0;this.isEnabled=this.wT=!1;VhE(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.QW(L,this.dismissButton));this.addOnDisposeCallback(g.QW(L,this.playButton));this.ZM=new g.tk(this.Vj,!0);this.ZM.subscribe("dragstart",this.xV,this);this.ZM.subscribe("dragmove",this.sA, this);this.ZM.subscribe("dragend",this.Pj,this);this.Y(A,"SEEK_COMPLETE",this.d3);A.J("web_fix_fine_scrubbing_false_play")&&this.Y(A,"rootnodemousedown",function(f){B.qp=f}); this.D.addEventListener("keydown",function(){}); g.W(this,this.ZM);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.D,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; VhE=function(A,L){var B=g.hG(L),f=g.B$("Saltar a: $PROGRESS",{PROGRESS:g.hG(L,!0)});A.update({ariamin:0,ariamax:Math.floor(A.api.getDuration()),arianow:Math.floor(L),arianowtext:f,seekTime:B})}; Spe=function(A){A.Wn=NaN;A.G=0;A.X=A.V}; NcQ=function(A){var L=A.api.rB();if(L){var B=90*A.scale,f=zd(L,160*A.scale);if(L=L.levels[f]){A.T=L.width;if(!A.U.length){f=[];for(var K=uS(L,L.ih()),V=L.columns*L.rows,J=L.frameCount,R=0;R<=K;R++)for(var Z=JA.U.length;)f= void 0,(f=A.thumbnails.pop())==null||f.dispose();for(;A.thumbnails.lengthB.length;)f=void 0,(f=A.W.pop())==null||f.dispose(); for(;A.W.length-B?-L/B*A.interval*.5:-(L+B/2)/B*A.interval}; FhC=function(A){return-((A.D.offsetWidth||(A.frameCount-1)*A.T*A.scale)-A.N/2)}; Rxe=function(){g.q.call(this,{Z:"div",j:"ytp-fine-scrubbing-thumbnail"})}; ZZy=function(){g.q.call(this,{Z:"div",j:"ytp-fine-scrubbing-chapter-title",B:[{Z:"div",j:"ytp-fine-scrubbing-chapter-title-content",Ir:"{{chapterTitle}}"}]})}; dz1=function(A){g.q.call(this,{Z:"div",j:"ytp-heat-map-chapter",B:[{Z:"svg",j:"ytp-heat-map-svg",C:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},B:[{Z:"defs",B:[{Z:"clipPath",C:{id:"{{id}}"},B:[{Z:"path",j:"ytp-heat-map-path",C:{d:"",fill:"white"}}]},{Z:"linearGradient",C:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},B:[{Z:"stop",C:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{Z:"stop",C:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{Z:"rect",j:"ytp-heat-map-graph",C:{"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",C:{"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",C:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{Z:"path",j:"ytp-modern-heat-map",C:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=A;this.X=this.m4("ytp-heat-map-svg");this.D=this.m4("ytp-heat-map-path");this.U=this.m4("ytp-heat-map-graph");this.T=this.m4("ytp-heat-map-play");this.N=this.m4("ytp-heat-map-hover");this.V=this.m4("ytp-modern-heat-map");this.gX=!1;this.W=60;A=""+g.$W(this);this.update({id:A});A="url(#"+A+")";this.U.setAttribute("clip-path",A);this.T.setAttribute("clip-path",A);this.N.setAttribute("clip-path",A)}; I$D=function(A,L){L>0&&(A.W=L,A.X.style.height=A.W+"px")}; $t=function(){g.q.call(this,{Z:"div",j:"ytp-chapter-hover-container",B:[{Z:"div",j:"ytp-progress-bar-padding"},{Z:"div",j:"ytp-progress-list",B:[{Z:"div",Rr:["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.W=this.m4("ytp-progress-list");this.D=this.m4("ytp-progress-linear-live-buffer"); this.U=this.m4("ytp-ad-progress-list");this.T=this.m4("ytp-load-progress");this.X=this.m4("ytp-play-progress");this.V=this.m4("ytp-hover-progress");this.N=this.m4("ytp-chapter-hover-container")}; XS=function(A,L){g.Kv(A.N,"width",L)}; wuL=function(A,L){g.Kv(A.N,"margin-right",L+"px")}; pue=function(){this.W=this.position=this.V=this.N=this.U=this.width=NaN}; yZk=function(){g.q.call(this,{Z:"div",j:"ytp-timed-marker"});this.N=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Ef=function(A,L){g.DE.call(this,{Z:"div",j:"ytp-progress-bar-container",C:{"aria-disabled":"true"},B:[{Z:"div",Rr:["ytp-heat-map-container"],B:[{Z:"div",j:"ytp-heat-map-edu"}]},{Z:"div",Rr:["ytp-progress-bar"],C:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},B:[{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",B:[{Z:"div",Rr:["ytp-scrubber-button","ytp-swatch-background-color"],B:[{Z:"div",j:"ytp-scrubber-pull-indicator"},{Z:"img",Rr:["ytp-decorated-scrubber-button"]}]}]}]},{Z:"div",Rr:["ytp-fine-scrubbing-container"],B:[{Z:"div",j:"ytp-fine-scrubbing-edu"}]},{Z:"div",j:"ytp-bound-time-left",Ir:"{{boundTimeLeft}}"},{Z:"div",j:"ytp-bound-time-right",Ir:"{{boundTimeRight}}"},{Z:"div",j:"ytp-clip-start", C:{title:"{{clipstarttitle}}"},Ir:"{{clipstarticon}}"},{Z:"div",j:"ytp-clip-end",C:{title:"{{clipendtitle}}"},Ir:"{{clipendicon}}"}]});this.api=A;this.iW=!1;this.Pk=this.kR=this.Ox=this.Vj=this.T=this.ye=0;this.mC=null;this.Bk=!1;this.Cr={};this.N8={};this.clipEnd=Infinity;this.t$=this.m4("ytp-clip-end");this.LD=new g.tk(this.t$,!0);this.GZ=this.m4("ytp-clip-end-exclude");this.m1=this.m4("ytp-clip-start-exclude");this.clipStart=0;this.Pz=this.m4("ytp-clip-start");this.jD=new g.tk(this.Pz,!0);this.Wn= this.Uv=0;this.progressBar=this.m4("ytp-progress-bar");this.zV={};this.sx={};this.Nl=this.m4("ytp-chapters-container");this.dB=this.m4("ytp-timed-markers-container");this.N=[];this.X=[];this.cR={};this.Gt=null;this.JF=-1;this.jI=this.S4=0;this.Ry=this.G=null;this.b2=this.m4("ytp-scrubber-button");this.ZM=this.m4("ytp-decorated-scrubber-button");this.e6=this.m4("ytp-scrubber-container");this.mH=new g.Vl;this.nD=0;this.cI=new pue;this.V=new $I(0,0);this.Jw=null;this.D=this.BR=!1;this.BI=null;this.qp= this.m4("ytp-heat-map-container");this.Po=this.m4("ytp-heat-map-edu");this.U=[];this.heatMarkersDecorations=[];this.ql=this.m4("ytp-fine-scrubbing-container");this.a8=this.m4("ytp-fine-scrubbing-edu");this.W=void 0;this.Ys=this.O_=this.Ex=!1;this.tooltip=L.Ce();this.addOnDisposeCallback(g.QW(this.tooltip,this.t$));g.W(this,this.LD);this.LD.subscribe("hoverstart",this.uJ,this);this.LD.subscribe("hoverend",this.x4,this);this.Y(this.t$,"click",this.mu);this.addOnDisposeCallback(g.QW(this.tooltip,this.Pz)); g.W(this,this.jD);this.jD.subscribe("hoverstart",this.uJ,this);this.jD.subscribe("hoverend",this.x4,this);this.Y(this.Pz,"click",this.mu);jH1(this);this.Y(A,"resize",this.Bz);this.Y(A,"presentingplayerstatechange",this.wr);this.Y(A,"videodatachange",this.cF);this.Y(A,"videoplayerreset",this.lM4);this.Y(A,"cuerangesadded",this.YNn);this.Y(A,"cuerangesremoved",this.a0x);this.Y(A,"onLoopRangeChange",this.MK);this.Y(A,"innertubeCommand",this.onClickCommand);this.Y(A,"onRetroModeChanged",this.VEs);this.Y(A, g.qR("timedMarkerCueRange"),this.ed4);this.Y(A,"updatemarkervisibility",this.vO);this.Y(A,"serverstitchedvideochange",this.gur);this.updateVideoData(A.getVideoData(),!0);this.MK(A.getLoopRange());Of(this)&&!this.W&&(this.W=new JZy(this.api,this.tooltip),A=g.dK(this.element).x||0,this.W.Bz(A,this.T),this.W.DM(this.ql),g.W(this,this.W),this.Y(this.W.dismissButton,"click",this.Wa),this.Y(this.W.playButton,"click",this.lI),this.Y(this.W.element,"dblclick",this.lI));this.api.createClientVe(this.qp,this, 139609,!0);this.api.createClientVe(this.Po,this,140127,!0);this.api.createClientVe(this.a8,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; jH1=function(A){if(A.N.length===0){var L=new $t;A.N.push(L);g.W(A,L);L.DM(A.Nl,0)}for(;A.N.length>1;)A.N.pop().dispose();XS(A.N[0],"100%");A.N[0].startTime=0;A.N[0].title=""}; gyS=function(A){var L=L===void 0?NaN:L;var B=new dz1(A.api);A.U.push(B);g.W(A,B);B.DM(A.qp);L>=0&&(B.element.style.width=L+"px")}; GjS=function(A){for(;A.X.length;)A.X.pop().dispose()}; sHk=function(A){var L,B,f,K,V;return(V=g.y((K=g.y((L=A.getWatchNextResponse())==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,Mg))==null?void 0:K.playerBar,rZk))==null?void 0:V.chapters}; HZk=function(A){for(var L=A.N,B=[],f=0;f=J&&r<=F&&V.push(I)}Z>0&&(A.qp.style.height=Z+"px");J=A.U[f];F=V;I=K;w=Z;r=f===0;r=r===void 0?!1:r;I$D(J,w);D=F;d=J.W;r=r===void 0?!1:r;var h=1E3/D.length,Q=[];Q.push({x:0,y:100});for(var l=0;l0&&(B=V[V.length-1])}g.cJ(A);R=[];L=g.m(L.heatMarkersDecorations||[]);for(K=L.next();!K.done;K=L.next())if(K=g.y(K.value,mz8))Z=K.label,f=B=N=void 0,R.push({visibleTimeRangeStartMillis:(N=K.visibleTimeRangeStartMillis)!=null?N:-1,visibleTimeRangeEndMillis:(B=K.visibleTimeRangeEndMillis)!=null?B:-1,decorationTimeMillis:(f=K.decorationTimeMillis)!=null?f:NaN,label:Z?g.wq(Z):""});A.heatMarkersDecorations=R}}; thQ=function(A,L){A.X.push(L);g.W(A,L);L.DM(A.dB,A.dB.children.length)}; kjQ=function(A,L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=MY(A,B.timeRangeStartMillis/(A.V.N*1E3),Yt(A)),K=A.api.J("delhi_modern_web_player")?.667:.6;g.Kv(B.element,"transform","translateX("+f+"px) scaleX("+K+")")}}; hxD=function(A,L){var B=0,f=!1;L=g.m(L);for(var K=L.next();!K.done;K=L.next()){K=K.value;if(g.y(K,CF6)){K=g.y(K,CF6);var V={startTime:NaN,title:null,onActiveCommand:void 0},J=K.title;V.title=J?g.wq(J):"";J=K.timeRangeStartMillis;J!=null&&(V.startTime=J);V.onActiveCommand=K.onActiveCommand;K=V;B===0&&K.startTime!==0&&(A.N[B].startTime=0,A.N[B].title="",A.N[B].onActiveCommand=K.onActiveCommand,B++,f=!0);A.N.length<=B&&(V=new $t,A.N.push(V),g.W(A,V),V.DM(A.Nl,A.Nl.children.length));A.N[B].startTime= K.startTime;A.N[B].title=K.title?K.title:"";A.N[B].onActiveCommand=K.onActiveCommand;A.N[B].index=f?B-1:B}B++}for(;B=0;f--)if(A.N[f].width>0){wuL(A.N[f],0);var K=Math.floor(A.N[f].width);A.N[f].width=K;XS(A.N[f],K+"px");break}A.N[B].width=0;XS(A.N[B],"0")}else B===A.N.length-1?(f=Math.floor(A.N[B].width+L),A.N[B].width=f,XS(A.N[B],f+"px")):(L=A.N[B].width+L,f=Math.round(L),L-=f,A.N[B].width=f,XS(A.N[B],f+"px"));B=0;if(A.U.length===A.N.length)for(L=0;L< A.U.length;L++)f=A.N[L].width,A.U[L].element.style.width=f+"px",A.U[L].element.style.left=B+"px",B+=f+WJ(A);A.api.J("delhi_modern_web_player")&&(A.N.length===1?A.N[0].W.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(A.N[0].W.classList.remove("ytp-progress-bar-end"),A.N[0].W.classList.add("ytp-progress-bar-start"),A.N[A.N.length-1].W.classList.add("ytp-progress-bar-end")))}; iZL=function(A,L){var B=0,f=!1,K=A.N.length,V=A.V.N*1E3;V===0&&(V=A.api.getProgressState().seekableEnd*1E3);if(V>0&&A.T>0){for(var J=A.T-WJ(A)*A.S4,R=A.jI===0?3:J*A.jI,Z=g.m(A.N),N=Z.next();!N.done;N=Z.next())N.value.width=0;for(;B1);N=(V===0?0:Z/V*J)+A.N[B].width;if(N>R)A.N[B].width=N;else{A.N[B].width=0;var F=A,D=B,I=F.N[D-1];I!==void 0&&I.width>0? I.width+=N:DA.jI&&(A.jI=Z/V),f=!0)}B++}}return f}; Uf=function(A){if(A.T){var L=A.api.getProgressState(),B=A.api.getVideoData();if(!(B&&B.enableServerStitchedDai&&B.dL)||isFinite(L.current)){var f;if(((f=A.api.getVideoData())==null?0:ZI(f))&&L.airingStart&&L.airingEnd)var K=vJ(A,L.airingStart,L.airingEnd);else if(A.api.getPresentingPlayerType()===2){var V,J,R;K=(B=(K=A.api.getVideoData())==null?void 0:(V=K.getPlayerResponse())==null?void 0:(J=V.playerConfig)==null?void 0:(R=J.webPlayerConfig)==null?void 0:R.skippableAdProgressBarDuration)?vJ(A,L.seekableStart, B/1E3):vJ(A,L.seekableStart,L.seekableEnd)}else K=vJ(A,L.seekableStart,L.seekableEnd);V=Xo(K,L.loaded,0);L=Xo(K,L.current,0);J=A.V.W!==K.W||A.V.N!==K.N;A.V=K;qY(A,L,V);J&&$z7(A);Xue(A);L=48;K=A.api.K();V=g.Am(A.api.K().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");V=A.api.J("delhi_modern_web_player_compact_controls")||V>0&&A.api.getPlayerSize().width<=V;A.api.J("delhi_modern_web_player")?L=A.api.getPlayerSize().width<=528?V?56:64:A.D?V?72:96:V?56:72:A.D?L=54:g.MM(K)&& !K.W&&(L=40);A.Vj=L}}}; vJ=function(A,L,B){return OZe(A)?new $I(Math.max(L,A.Jw.startTimeMs/1E3),Math.min(B,A.Jw.endTimeMs/1E3)):new $I(L,B)}; cZv=function(A,L){var B,f,K;L=g.y((B=L.getWatchNextResponse())==null?void 0:(f=B.playerOverlays)==null?void 0:(K=f.playerOverlayRenderer)==null?void 0:K.decoratedPlayerBarRenderer,Mg);if(L==null?0:L.progressColor)for(B=0;B1){B=PJ(A,L.V,!0);for(var f=0,K=0;K0&&(f+=A.N[K].width,f+=WJ(A));B=(A.N[B].startTime+(L.V-f)/A.N[B].width*((B===A.N.length-1?A.V.N*1E3:A.N[B+1].startTime)-A.N[B].startTime))/1E3||0}return B}; YpD=function(A,L){if(L<0)return"0";A=Math.floor(Math.min(L,A.api.getDuration())*1E3);return A>2147483647?"0":String(A)}; ec=function(A,L,B,f,K){L=YpD(A,L);B=YpD(A,B);A=A.progressBar.visualElement;f={seekData:{startMediaTimeMs:L,endMediaTimeMs:B,seekSource:f}};(L=g.sF())&&K1(L,A,K,f)}; UzL=function(A,L,B){if(B>=A.N.length)return!1;var f=A.T-WJ(A)*A.S4;return Math.abs(L-A.N[B].startTime/1E3)/A.V.N*f<4}; $z7=function(A){A.b2.style.removeProperty("height");for(var L=g.m(Object.keys(A.Cr)),B=L.next();!B.done;B=L.next())Wh6(A,B.value);nQ(A);qY(A,A.Wn,A.Uv)}; Yt=function(A){var L=A.mH.x;L=g.B4(L,0,A.T);A.cI.update(L,A.T);return A.cI}; qY=function(A,L,B){A.Wn=L;A.Uv=B;var f=Yt(A),K=A.V.N,V=v_S(A.V,A.Wn),J=g.B$("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.hG(V,!0),DURATION:g.hG(K,!0)}),R=BJ(A.N,V*1E3);R=A.N[R].title;A.update({ariamin:Math.floor(A.V.W),ariamax:Math.floor(K),arianow:Math.floor(V),arianowtext:R?R+" "+J:J});K=A.clipStart;V=A.clipEnd;A.Jw&&A.api.getPresentingPlayerType()!==2&&(K=A.Jw.startTimeMs/1E3,V=A.Jw.endTimeMs/1E3);K=Xo(A.V,K,0);R=Xo(A.V,V,1);J=A.api.getVideoData();V=g.B4(L,K,R);B=(J==null?0:g.Jj(J))?1:g.B4(B, K,R);L=MY(A,L,f);g.Kv(A.e6,"transform","translateX("+L+"px)");A.api.J("delhi_modern_web_player")&&A.api.J("delhi_modern_web_player_cutout")&&vyQ(A,L);zo(A,f,K,V,"PLAY_PROGRESS");(J==null?0:ZI(J))?(L=A.api.getProgressState().seekableEnd)&&zo(A,f,V,Xo(A.V,L),"LIVE_BUFFER"):zo(A,f,K,B,"LOAD_PROGRESS");if(A.api.J("web_player_heat_map_played_bar")){var Z;(Z=A.U[0])!=null&&Z.T.setAttribute("width",(V*100).toFixed(2)+"%")}}; vyQ=function(A,L){A.api.getPresentingPlayerType()!==1?A.Nl.style.removeProperty("clip-path"):(L||(L=MY(A,A.Wn,Yt(A))),A.Nl.style.clipPath='path("'+(A.Bk?qp0(A,8,L,A.D?50:36,0,6):qp0(A,4,L,A.D?34:24,2,3))+'")')}; qp0=function(A,L,B,f,K,V){var J=B-f/2;B+=f/2;L+=K;return"M 0 "+K+" L 0 "+(L+" L ")+(J+" "+L+" C ")+(J+V+" "+L+" "+(J+V)+" "+K+" "+J+" "+K+" L 0 ")+(K+" M ")+(B+" "+K+" L ")+(A.T+" "+K+" L ")+(A.T+" "+L+" L ")+(B+" "+L+" C ")+(B-V+" "+L+" "+(B-V)+" "+K+" "+B+" "+K)}; zo=function(A,L,B,f,K){var V=A.N.length,J=L.N-A.S4*WJ(A),R=B*J;B=PJ(A,R);var Z=f*J;J=PJ(A,Z);K==="HOVER_PROGRESS"&&(J=PJ(A,L.N*f,!0),Z=L.N*f-PFk(A,L.N*f)*WJ(A));f=Math.max(R-xzy(A,B),0);for(R=B;R=A.N.length)return A.T;for(var B=0,f=0;f0||A.GZ.clientWidth>0?(V=L.clientWidth/B,A=-1*A.m1.clientWidth/B):(V/=B,A=-1*A.N[K].element.offsetLeft/B),g.Kv(L,"background-size",V+"px"),g.Kv(L,"background-position-x",A+"px"))}; ur=function(A,L,B,f,K){K||A.api.K().W?L.style.width=B+"px":g.Kv(L,"transform","scalex("+(f?B/f:0)+")")}; PJ=function(A,L,B){var f=0;(B===void 0?0:B)&&(L-=PFk(A,L)*WJ(A));B=g.m(A.N);for(var K=B.next();!K.done;K=B.next()){K=K.value;if(L>K.width)L-=K.width;else break;f++}return f===A.N.length?f-1:f}; MY=function(A,L,B){var f=L*A.V.N*1E3;for(var K=-1,V=g.m(A.N),J=V.next();!J.done;J=V.next())J=J.value,f>J.startTime&&J.width>0&&K++;f=K<0?0:K;K=B.N-WJ(A)*A.S4;return L*K+WJ(A)*f+B.U}; PFk=function(A,L){for(var B=A.N.length,f=0,K=g.m(A.N),V=K.next();!V.done;V=K.next())if(V=V.value,V.width!==0)if(L>V.width)L-=V.width,L-=WJ(A),f++;else break;return f===B?B-1:f}; g.zxv=function(A,L,B,f){var K=A.T!==B,V=A.D!==f;A.ye=L;A.T=B;A.D=f;Of(A)&&(L=A.W)!=null&&(L.scale=f?1.5:1);$z7(A);A.N.length===1&&(A.N[0].width=B||0);K&&g.cJ(A);A.W&&V&&Of(A)&&(A.W.isEnabled&&(B=A.D?135:90,f=B-A.Vj,A.ql.style.height=B+"px",g.Kv(A.qp,"transform","translateY("+-f+"px)"),g.Kv(A.progressBar,"transform","translateY("+-f+"px)")),NcQ(A.W))}; nQ=function(A){var L=!!A.Jw&&A.api.getPresentingPlayerType()!==2,B=A.clipStart,f=A.clipEnd,K=!0,V=!0;L&&A.Jw?(B=A.Jw.startTimeMs/1E3,f=A.Jw.endTimeMs/1E3):(K=B>A.V.W,V=A.V.N>0&&fA.Wn);g.D1(A.b2,"ytp-scrubber-button-hover",B===f&&A.N.length>1);if(A.api.J("web_player_heat_map_played_bar")){var V;(V=A.U[0])!=null&&V.N.setAttribute("width",(L.W*100).toFixed(2)+"%")}}}; Wh6=function(A,L){var B=A.Cr[L];L=A.N8[L];var f=Yt(A),K=Xo(A.V,B.start/1E3,0),V=Rk6(B,A.D)/f.width;var J=Xo(A.V,B.end/1E3,1);V!==Number.POSITIVE_INFINITY&&(K=g.B4(K,0,J-V));J=Math.min(J,K+V);B.color&&(L.style.background=B.color);B=K;L.style.left=Math.max(B*f.N+f.U,0)+"px";ur(A,L,g.B4((J-B)*f.N+f.U,0,f.width),f.width,!0)}; uM6=function(A,L){var B=L.getId();A.Cr[B]===L&&(g.$9(A.N8[B]),delete A.Cr[B],delete A.N8[B])}; Of=function(A){var L=g.SK(A.api.K())&&(A.api.J("web_shorts_pip")||A.api.J("web_watch_pip")),B;return!((B=A.api.getVideoData())==null?0:B.isLivePlayback)&&!A.api.isMinimized()&&!A.api.isInline()&&(!A.api.nV()||!L)}; aD=function(A){A.W&&(A.W.disable(),A.Ox=0,A.qp.style.removeProperty("transform"),A.progressBar.style.removeProperty("transform"),A.ql.style.removeProperty("height"),A.element.parentElement&&A.element.parentElement.style.removeProperty("height"))}; a$C=function(A,L){var B=L/((A.D?135:90)-A.Vj)*A.Vj;g.Kv(A.progressBar,"transform","translateY("+-L+"px)");g.Kv(A.qp,"transform","translateY("+-L+"px)");g.Kv(A.ql,"transform","translateY("+B+"px)");A.ql.style.height=L+B+"px";A.element.parentElement&&(A.element.parentElement.style.height=A.Vj-B+"px")}; A3e=function(A,L){L?A.G||(A.element.removeAttribute("aria-disabled"),A.G=new g.tk(A.progressBar,!0),A.api.J("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&A.G.subscribe("hoverstart",A.Q81,A),A.G.subscribe("hovermove",A.ajF,A),A.G.subscribe("hoverend",A.vbF,A),A.G.subscribe("dragstart",A.eV4,A),A.G.subscribe("dragmove",A.GqF,A),A.G.subscribe("dragend",A.K14,A),A.api&&A.api.J("delhi_modern_web_player")&&A.api.J("delhi_modern_web_player_cutout")&&(A.Ry=new g.tk(A.progressBar, !0),A.Ry.subscribe("hoverstart",function(){A.Bk=!0;vyQ(A)},A),A.Ry.subscribe("hoverend",function(){A.Bk=!1; vyQ(A)},A)),A.BI=A.listen("keydown",A.A2)):A.G&&(A.element.setAttribute("aria-disabled","true"),A.J$(A.BI),A.G.cancel(),A.G.dispose(),A.G=null)}; WJ=function(A){return A.api.J("delhi_modern_web_player")?4:A.D?3:2}; OZe=function(A){var L;return!((L=A.Jw)==null||!L.postId)&&A.api.getPresentingPlayerType()!==2}; AS=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-remote-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"Reproducir en el televisor":"","data-tooltip-title":"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},Ir:"{{icon}}"});this.S=A;this.Wz=L;this.N=null;this.Y(A,"onMdxReceiversChange",this.zL);this.Y(A,"presentingplayerstatechange",this.zL);this.Y(A,"appresize",this.zL);A.createClientVe(this.element,this,139118);this.zL();this.listen("click",this.W, this);Cm(A,this.element,this)}; Lb=function(A,L){g.q.call(this,{Z:"button",Rr:["ytp-button","ytp-settings-button"],C:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Ru(),title:A.J("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},B:[A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.Qo()]});this.S=A;this.Wz=L;this.W=!0;this.listen("click",this.V);this.Y(A,"onPlaybackQualityChange",this.updateBadge);this.Y(A,"videodatachange",this.updateBadge);this.Y(A,"webglsettingschanged",this.updateBadge);this.Y(A,"appresize",this.N);Cm(A,this.element,this);this.S.createClientVe(this.element,this,28663);this.updateBadge();this.N(A.Pn().getPlayerSize())}; LGS=function(A,L){A.W=!!L;A.N(A.S.Pn().getPlayerSize())}; o7=function(A,L,B){if(A.J("web_add_footer_template_to_audio_track")){var f="Edita tus $BEGIN_LINKidiomas preferidos$END_LINK en la configuraci\u00f3n".split(/\$(BEGIN|END)_LINK/);f={Z:"div",j:"ytp-panel-footer-content",B:[f[0],{Z:"a",j:"ytp-panel-footer-content-link",C:{href:"/account_playback"},Ir:f[2]},f[4]]}}g.He.call(this,"Pista de audio",g.gC.AUDIO,A,L,void 0,void 0,f);this.S=A;this.N=B;this.tracks={};g.R1(this.element,"ytp-audio-menu-item");this.countLabel=new g.q({Z:"div",B:[{Z:"span",Ir:"Pista de audio"}, {Z:"span",j:"ytp-menuitem-label-count",Ir:"{{content}}"}]});A.J("web_settings_menu_icons")&&!this.S.J("html5_enable_new_audio_settings_menu")&&(L=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]},this.setIcon(L));g.W(this,this.countLabel);g.Lh(this,this.countLabel);A.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.Y(A,"videodatachange",this.zL);this.Y(A,"onPlaybackAudioChange",this.zL);this.zL()}; o4v=function(A,L){g.of.call(this,g.Bo({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.gC.RD);this.S=A;this.Wz=L;g.R1(this.element,"ytp-audio-settings-menu-item");this.rf=new g.Im(A,void 0,"Audio");this.countLabel=new g.q({Z:"div",B:[{Z:"span",Ir:"Audio"},{Z:"span",j:"ytp-menuitem-label-count",Ir:"{{content}}"}]});A.J("web_settings_menu_icons")&&this.setIcon({Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.Dm=new o7(A,this.Wz,this);g.W(this,this.Dm);this.Y(A,"settingsMenuInitialized",this.f8.bind(this));this.Y(A,"videodatachange",this.f8.bind(this));g.W(this,this.countLabel);g.Lh(this,this.countLabel);this.Wz.ov(this);this.Y(A,"onPlaybackAudioChange",this.VF);this.listen("keydown",this.A2);this.listen("click",this.open)}; Bd=function(A,L){Dq.call(this,"Reproducci\u00f3n autom\u00e1tica",g.gC.S_);this.S=A;this.Wz=L;this.N=!1;this.W=[];this.Y(A,"presentingplayerstatechange",this.f8);this.subscribe("select",this.onSelect,this);A.createClientVe(this.element,this,113682);this.f8()}; B17=function(A,L){g.of.call(this,g.Bo({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.S=A;this.Wz=L;this.Y(this.element,"click",this.onClick);this.Wz.ov(this)}; f6k=function(A,L){var B;g.SK(A.K())&&(B={Z:"div",j:"ytp-panel-footer-content",B:[{Z:"span",Ir:"Ajusta la calidad de descarga en la "},{Z:"a",j:"ytp-panel-footer-content-link",Ir:"Configuraci\u00f3n",C:{href:"/account_downloads"}}]});g.He.call(this,"Calidad",g.gC.Yw,A,L,void 0,void 0,B);this.S=A;this.Wn={};this.T={};this.W={};this.qp=new Set;this.N=this.V=!1;this.U="unknown";this.X="";this.G=new g.Pa;g.W(this,this.G);this.V=this.S.J("web_player_use_new_api_for_quality_pullback");this.N=this.S.J("web_player_enable_premium_hbr_playback_cap"); A.J("web_settings_menu_icons")&&(L=A.J("delhi_modern_web_player_icons")?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(L));g.R1(this.rf.element,"ytp-quality-menu");this.Y(A,"videodatachange",this.f8);this.Y(A,"videoplayerreset",this.f8);this.Y(A,"onPlaybackQualityChange",this.RL);this.f8();A.createClientVe(this.element,this,137721)}; Vp0=function(A,L,B){var f=A.Wn[L],K=g.ka[L];return KGw(A,f?f.qualityLabel:K?K+"p":"Autom\u00e1tica",L,B)}; J31=function(A,L,B,f,K){var V=(L=A.N?A.W[L]:A.T[L])&&L.quality,J=L&&L.qualityLabel;J=J?J:"Autom\u00e1tica";f&&(J="("+J);A=KGw(A,J,V||"",K);f&&A.B.push(")");(f=(f=L&&L.paygatedQualityDetails)&&f.paygatedIndicatorText)&&B&&A.B.push({Z:"div",j:"ytp-premium-label",Ir:f});return A}; KGw=function(A,L,B,f){L={Z:"span",Rr:f,B:[L]};var K;f="ytp-swatch-color";if(A.V||A.N)f="ytp-swatch-color-white";B==="highres"?K="8K":B==="hd2880"?K="5K":B==="hd2160"?K="4K":B.indexOf("hd")===0&&B!=="hd720"&&(K="HD");K&&(L.B.push(" "),L.B.push({Z:"sup",j:f,Ir:K}));return L}; fb=function(A){tP.call(this,A.getAvailablePlaybackRates()[0],A.getAvailablePlaybackRates()[A.getAvailablePlaybackRates().length-1],.05,A.getPlaybackRate(),{Z:"div",j:"ytp-speedslider-indicator-container",B:[{Z:"div",j:"ytp-speedslider-badge"},{Z:"p",j:"ytp-speedslider-text"}]},!1,A.J("web_enable_varispeed_panel"));this.S=A;this.qp=zO(this.ZM,50,this);g.R1(this.W,"ytp-speedslider");this.Wn=this.m4("ytp-speedslider-text");this.Vj=this.m4("ytp-speedslider-badge");S$k(this);this.Y(this.W,"change",this.wT)}; S$k=function(A){A.Wn.textContent=A.N.toFixed(2)+"x";var L=A.N>2&&A.S.J("enable_web_premium_varispeed");A.Vj.classList.toggle("ytp-speedslider-premium-badge",L);A.Vj.setAttribute("aria-label",L?"Premium":"")}; Kb=function(A,L,B,f,K,V,J){g.q.call(this,{Z:"div",j:"ytp-slider-section",C:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},B:[{Z:"div",j:"ytp-slider",B:[{Z:"div",j:"ytp-slider-handle"}]}]});this.X=A;this.G=L;this.W=B;this.V=f;this.Wn=K;this.wT=V;this.range=this.V-this.W;this.JF=this.m4("ytp-slider-section");this.U=this.m4("ytp-slider");this.qp=this.m4("ytp-slider-handle");this.T=new g.tk(this.U, !0);this.N=J?J:B;g.W(this,this.T);this.T.subscribe("dragmove",this.yU,this);this.Y(this.element,"keydown",this.Wi);this.Y(this.element,"wheel",this.NR);this.init()}; VA=function(A){Kb.call(this,.05,.05,A.getAvailablePlaybackRates()[0],A.getAvailablePlaybackRates()[A.getAvailablePlaybackRates().length-1],150,20,A.getPlaybackRate());this.S=A;this.D=g.TO("P");this.ZM=zO(this.Vj,50,this);g.R1(this.U,"ytp-speedslider");g.R1(this.D,"ytp-speedslider-text");A=this.D;var L=this.U;L.parentNode&&L.parentNode.insertBefore(A,L.nextSibling);Rn1(this);this.Y(this.S,"onPlaybackRateChange",this.updateValues)}; Rn1=function(A){A.D.textContent=ZY0(A,A.N)+"x"}; ZY0=function(A,L){A=Number(g.B4(L,A.W,A.V).toFixed(2));L=Math.floor((A+.001)*100%5+2E-15);var B=A;L!==0&&(B=A-L*.01);return Number(B.toFixed(2))}; N18=function(A){g.DE.call(this,{Z:"div",j:"ytp-speedslider-component"});A.J("web_settings_use_input_slider")?this.N=new fb(A):this.N=new VA(A);g.W(this,this.N);this.element.appendChild(this.N.element)}; FGL=function(A){var L=new N18(A);dA.call(this,A,L,"Personalizada");g.W(this,L)}; deL=function(A,L){var B=new FGL(A);g.He.call(this,"Velocidad de reproducci\u00f3n",g.gC.GQ,A,L,JS(A)?void 0:"Personalizada",JS(A)?void 0:function(){g.yp(L,B)}); var f=this;this.ME=new g.q({Z:"div",j:"ytp-menuitem-premium-badge",C:{"aria-label":"Premium"}});this.W=!1;this.GV={x2x:function(){return f.yI}}; g.W(this,B);this.WY=new fb(A);g.W(this,this.WY);if(A.J("web_settings_menu_icons")){var K=A.J("delhi_modern_web_player_icons")?Kue():{Z:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(K)}this.S=A;this.W=!1;this.U=null;JS(A)?(this.N=g.B$("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.S.getPlaybackRate().toString()}),this.V=this.S.getPlaybackRate()):this.V=this.N=null;g.W(this,this.ME);var V,J,R,Z;this.BE=(V=this.S.getVideoData())==null?void 0:(J=V.getWatchNextResponse())==null?void 0:(R=J.playerOverlays)==null?void 0:(Z=R.playerOverlayRenderer)==null?void 0:Z.showPlaybackRateUpsellPanelCommand;De8(A,this.BE)?(this.lY=SQ(4),this.S.createClientVe(this.ME.element, this,273508)):this.lY=null;this.S.J("enable_web_premium_varispeed_upsell")&&this.S.createClientVe(this.element,this,278479);this.yI=this.S.getAvailablePlaybackRates();this.Y(A,"presentingplayerstatechange",this.zL);var N;((N=this.S.getVideoData())==null?0:N.aA())&&this.Y(A,"serverstitchedvideochange",this.zL);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(this.WY.W,"change",function(){f.W=!0;f.zL()}); this.zL()}; I66=function(A,L){var B=SQ(L);A.N&&(A.W||L===A.V)?(A.GH(A.N),A.setContent(L.toString())):A.GH(B)}; p1C=function(A){var L=A.yI.map(SQ);A.lY&&L.push(A.lY);A.eO(L);A.N=null;A.V=null;L=A.S.getPlaybackRate();JS(A.S)&&w1v(A,L);!A.yI.includes(L)||A.W?A.GH(A.N):A.GH(SQ(L))}; w1v=function(A,L){A.V=L;A.N=g.B$("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:L.toString()});L=A.yI.map(SQ);L.unshift(A.N);A.lY&&L.push(A.lY);A.eO(L)}; SQ=function(A){return A.toString()}; JS=function(A){return A.J("web_settings_menu_surface_custom_playback")}; De8=function(A,L){return!!L&&A.getAvailablePlaybackRates()[A.getAvailablePlaybackRates().length-1]<=2}; y3y=function(A){return A.J("web_settings_menu_surface_custom_playback")&&A.J("web_settings_use_input_slider")}; g4e=function(A,L){g.Im.call(this,A,void 0,"Velocidad de reproducci\u00f3n");this.Wz=L;this.GP=null;this.ME=new g.q({Z:"div",j:"ytp-menuitem-premium-badge",C:{"aria-label":"Premium"}});this.yI=this.S.getAvailablePlaybackRates();g.W(this,this.ME);var B,f,K,V;this.BE=(B=this.S.getVideoData())==null?void 0:(f=B.getWatchNextResponse())==null?void 0:(K=f.playerOverlays)==null?void 0:(V=K.playerOverlayRenderer)==null?void 0:V.showPlaybackRateUpsellPanelCommand;L=this.S;this.BE&&L.getAvailablePlaybackRates()[L.getAvailablePlaybackRates().length- 1]<=2?(this.lY=jYS(4),this.S.createClientVe(this.ME.element,this,273508)):this.lY=null;this.Y(A,"presentingplayerstatechange",this.zL);var J;((J=this.S.getVideoData())==null?0:J.aA())&&this.Y(A,"serverstitchedvideochange",this.zL);this.zL()}; G2S=function(A,L,B,f){if(L===A.lY)return A.d0(L,B,f);B=new g.of({Z:"div",Rr:["ytp-menuitem"],C:{tabindex:"0",role:"menuitemradio","aria-checked":f?"true":"false"},B:[{Z:"div",j:"ytp-menuitem-label",Ir:"{{label}}"}]},B,A.I8(L));B.listen("click",function(){A.wk(L)}); return B}; jYS=function(A){return A.toString()}; r36=function(A){var L=new fb(A),B=new g.q({Z:"div",j:"ytp-variable-speed-panel-button-container"}),f=new g.q({Z:"button",Rr:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],C:{"aria-label":"Disminuir la velocidad de reproducci\u00f3n"},B:[{Z:"span",Ir:"-"}]});f.listen("click",function(){var d=L.W;d.stepDown(1);d.dispatchEvent(new Event("input"));d.dispatchEvent(new Event("change"))}); var K=new g.q({Z:"button",Rr:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],C:{"aria-label":"Aumentar la velocidad de reproducci\u00f3n"},B:[{Z:"span",Ir:"+"}]});K.listen("click",function(){var d=L.W;d.stepUp(1);d.dispatchEvent(new Event("input"));d.dispatchEvent(new Event("change"))}); var V=new g.q({Z:"div",j:"ytp-variable-speed-panel-slider-container",B:[f,L,K]}),J=new g.q({Z:"div",j:"ytp-variable-speed-panel-content",B:[V,B]}),R=new g.DE({Z:"div",C:{tabindex:"0"},B:[J]});dA.call(this,A,R,"Velocidad de reproducci\u00f3n");var Z=this;this.WY=L;g.W(this,this.WY);g.W(this,f);g.W(this,K);g.W(this,B);g.W(this,V);g.W(this,J);g.W(this,R);var N,F,D,I;if((f=(N=A.getVideoData())==null?void 0:(F=N.getPlayerResponse())==null?void 0:(D=F.playerConfig)==null?void 0:(I=D.granularVariableSpeedConfig)== null?void 0:I.defaultPlaybackRateOptions)&&f.length>0)for(N=g.m(f),D=N.next(),F={};!D.done;F={XU:void 0},D=N.next())F.XU=D.value,D=new g.q({Z:"button",Rr:["ytp-button","ytp-variable-speed-panel-preset-button","ytp-variable-speed-panel-button"],B:[{Z:"span",Ir:""+F.XU.label}]}),g.W(this,D),B.element.appendChild(D.element),D.listen("click",function(d){return function(){d.XU.value&&Z.S.setPlaybackRate(d.XU.value/100)}}(F)); this.Y(A,"onPlaybackRateChange",this.onPlaybackRateChange);this.onPlaybackRateChange(A.getPlaybackRate())}; R7=function(A,L){g.He.call(this,"Velocidad de reproducci\u00f3n",g.gC.GQ,A,L);this.S=A;A.J("web_settings_menu_icons")&&this.setIcon(Kue());this.W(A.getPlaybackRate());this.Y(A,"onPlaybackRateChange",this.W);this.Y(A,"presentingplayerstatechange",this.N);var B;((B=this.S.getVideoData())==null?0:B.aA())&&this.Y(A,"serverstitchedvideochange",this.N);this.N()}; HYL=function(A,L,B,f){var K=new g.Im(L,void 0,"Anulaci\u00f3n de video");g.He.call(this,f.text||"",A,L,B,"Anulaci\u00f3n de video",function(){g.yp(B,K)}); var V=this;g.R1(this.element,"ytp-subtitles-options-menu-item");this.setting=f.option.toString();A=f.options;this.settings=g.jZ(A,this.Sh,this);this.V=K;g.W(this,this.V);L=new g.of({Z:"div",j:"ytp-menuitemtitle",Ir:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.W(this,L);this.V.ov(L,!0);this.W=new g.of({Z:"div",j:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},B:[{Z:"div",j:"ytp-menuitem-label",Ir:"S\u00ed"}]},-1);g.W(this,this.W);this.V.ov(this.W, !0);this.Y(this.W.element,"click",function(){sYE(V,!0)}); this.N=new g.of({Z:"div",j:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},B:[{Z:"div",j:"ytp-menuitem-label",Ir:"No"}]},-2);g.W(this,this.N);this.V.ov(this.N,!0);this.Y(this.N.element,"click",function(){sYE(V,!1)}); this.eO(g.mn(A,this.Sh))}; sYE=function(A,L){A.publish("settingChange",A.setting+"Override",!L);A.Wz.h2()}; ZC=function(A,L){g.Im.call(this,A,void 0,"Opciones");var B=this;this.Lu={};for(var f=0;f=350)}; OYe=function(A,L,B){var f=Math.floor(L),K=f+"% volumen"+(B?" silenciado":"");B=B?0:L/100;A.updateValue("valuenow",f);A.updateValue("valuetext",K);f=A.V?78:52;K=!A.api.J("delhi_modern_web_player")&&A.V?18:12;A.qp.style.left=(f-K)*B+"px";A.volume=L}; Mp0=function(A,L){g.D1(A.element,"ytp-volume-control-hover",L);pb(A,L,A.isDragging,A.W,A.api.ZF())}; pb=function(A,L,B,f,K){var V=A.N||A.isDragging||A.W||A.ZF;A.N=L;A.isDragging=B;A.W=f;A.ZF=K;L=A.N||A.isDragging||A.W||A.ZF;V!==L&&(L?A.D=A.Y(A.element,"wheel",A.qR):(A.J$(A.D),A.D=null),g.D1(A.T,"ytp-volume-slider-active",L))}; yA=function(A,L){var B=A.K(),f=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];B.V&&f.push("no-link");var K={title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:B.yj,"data-priority":"6","data-sessionlink":"feature=player-button"};B.V||(K.href="{{url}}");g.q.call(this,{Z:"a",Rr:f,C:K,Ir:"{{logoSvg}}"});this.N=null;this.api=A;this.visible=!1;B.V||(this.N=this.listen("click",this.onClick));this.Y(A,"videodatachange",this.onVideoDataChange); this.Y(A,"videoplayerreset",this.onVideoDataChange);this.Y(A,"onLoopRangeChange",this.onVideoDataChange);this.Y(A,"appresize",this.Bz);this.onVideoDataChange();B.V||this.addOnDisposeCallback(g.QW(L.Ce(),this.element));this.Bz()}; Uee=function(A,L,B){g.dN.call(this);var f=this;this.S=A;this.Vj=L;this.C8=B;this.Ox=NaN;this.qp=this.Ex=this.playButton=this.U=this.D=this.Ys=this.JF=this.Wn=this.yj=this.muteButton=this.X=this.Cr=this.d7=this.cn=null;this.N=new T16(this.S);this.progressBar=new g.Ef(this.S,this.Vj);this.HZ=new g.d0(this.S,this.Vj);this.sx=new ObS(this.S,this.Vj);this.G=new g.uN(this.VU,null,this);B=A.K();this.C8.subscribe("autohideupdate",this.Al,this);var K=!A.getPlayerStateObject().isCued(),V;(this.ql=!A.J("delhi_modern_web_player")&& A.K().J("html5_player_dynamic_bottom_gradient"))?this.Cr=V=new CEQ(A):V=new g.q({Z:"div",j:"ytp-gradient-bottom"});g.W(this,V);g.Wh(A,V.element,9);this.wT=new g.KL(V,250,K,100);g.W(this,this.wT);this.W=new g.q({Z:"div",j:"ytp-chrome-bottom",B:[{Z:"div",j:"ytp-chrome-controls"}]});g.W(this,this.W);g.Wh(A,this.W.element,9);this.ZM=new g.KL(this.W,250,K,100);g.W(this,this.ZM);this.S4=this.W.element.children[0];g.W(this,this.N);g.Wh(A,this.N.element,6);this.N.subscribe("show",function(N){f.S.oh(!N);A.WP(f.N, N)}); g.W(this,this.progressBar);this.progressBar.DM(this.W.element,0);K=new sf(A,L);g.W(this,K);g.Wh(A,K.element,4);K=new g.ZE({Z:"div",j:"ytp-left-controls"});g.W(this,K);K.DM(this.S4);A.J("delhi_modern_web_player")||(V=new g.CQ(A,L,!1),g.W(this,V),V.DM(K.element));A.J("web_render_jump_buttons")&&(this.yj=new HJ(A,-10),g.W(this,this.yj),this.yj.DM(K.element));B.Ys||(this.playButton=new g.QF(A,L),g.W(this,this.playButton),this.playButton.DM(K.element));A.J("web_render_jump_buttons")&&(this.Wn=new HJ(A, 10),g.W(this,this.Wn),this.Wn.DM(K.element));A.J("delhi_modern_web_player_remove_nav_buttons")||(A.J("delhi_modern_web_player")&&(V=new g.CQ(A,L,!1),g.W(this,V),V.DM(K.element)),V=new g.CQ(A,L,!0),g.W(this,V),V.DM(K.element));if(!A.J("delhi_modern_web_player")||A.J("delhi_modern_web_player_horizontal_volume_controls"))if(V=new g.q({Z:"span",j:"ytp-volume-area"}),g.W(this,V),V.DM(K.element),!B.N8&&(this.muteButton=new m0(A,L),g.W(this,this.muteButton),this.muteButton.DM(V.element),B.JF&&!B.X)){var J= new E48(A,this.W.element);this.Ex=J;g.W(this,J);J.DM(V.element);V=new g.tk(V.element);g.W(this,V);V.subscribe("hoverstart",function(){var N;(N=f.Ex)==null||Mp0(N,!0)}); V=new g.tk(K.element);g.W(this,V);V.subscribe("hoverend",function(){var N;(N=f.Ex)==null||Mp0(N,!1)})}A.J("delhi_modern_web_player_lhs_volume_controls")&&!A.J("delhi_modern_web_player_horizontal_volume_controls")&&(K.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new m0(A,L),g.W(this,this.muteButton),this.muteButton.DM(K.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.W(this,this.HZ);this.HZ.DM(K.element);this.JF=new Go(A,this.progressBar);g.W(this,this.JF);this.JF.DM(K.element);B.J("web_key_moments_markers")&&(this.Ys=new hP(A,this.progressBar),g.W(this,this.Ys),this.Ys.DM(K.element));A.J("delhi_modern_web_player")?this.V=new g.ZE({Z:"div",j:"ytp-right-controls",B:[{Z:"div",j:jQ.RIGHT_CONTROLS_LEFT},{Z:"div",j:jQ.RIGHT_CONTROLS_RIGHT}]}):this.V=new g.ZE({Z:"div",j:"ytp-right-controls"});g.W(this,this.V);this.V.DM(this.S4);A.J("delhi_modern_web_player")&&(this.X= new rx(A),g.W(this,this.X),this.X.DM(this.V.m4(jQ.RIGHT_CONTROLS_LEFT)),A.J("delhi_modern_web_player_lhs_volume_controls")||A.J("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new m0(A,L),g.W(this,this.muteButton),this.muteButton.DM(this.V.m4(jQ.RIGHT_CONTROLS_LEFT))));this.Nl=new QYQ(A,L);g.W(this,this.Nl);g0(this,this.Nl,"RIGHT_CONTROLS_LEFT");this.settingsButton=new Lb(A,this.N);g.W(this,this.settingsButton);l60(this.N,this.settingsButton);g0(this,this.settingsButton,"RIGHT_CONTROLS_LEFT"); K=A.getVideoData();if(B.Xp||K.OE&&B.controlsType==="1")this.D=new yA(A,L),g.W(this,this.D),this.D.DM(this.V.element);B.showMiniplayerButton&&!A.J("web_player_miniplayer_in_context_menu")&&(this.U=new br(A),g.W(this,this.U),g0(this,this.U,"RIGHT_CONTROLS_RIGHT"));B.showMiniplayerButton&&this.Y(A,"minimized",function(){f.N.hide()}); B.dB&&(L=new AS(A,this.N),g.W(this,L),g0(this,L,"RIGHT_CONTROLS_RIGHT"));B.Tf&&(L=new jc(A),g.W(this,L),g0(this,L,"RIGHT_CONTROLS_RIGHT"));g.W(this,this.sx);g0(this,this.sx,"RIGHT_CONTROLS_RIGHT");g.W(this,this.G);this.Y(A,"appresize",this.Bz);this.Y(A,"fullscreentoggled",this.Bz);var R;(R=this.X)==null||R.subscribe("small-mode-expand-right-bottom-controls",function(){Y$0(f)}); var Z;(Z=this.X)==null||Z.subscribe("small-mode-collapse-right-bottom-controls",function(){Y$0(f)}); this.Y(A,"presentingplayerstatechange",this.yA);this.Y(A,"videodatachange",this.onVideoDataChange);this.Bz()}; Y$0=function(A){A.W.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",A.X.isExpanded())}; WG1=function(A,L){A.S.getPlayerStateObject().isCued()||L?L&&(A.ZM.hide(),A.wT.hide(),A.muteButton&&A.muteButton.Hy(!1),A.D&&A.D.Hy(!1),A.U&&A.U.Hy(!1),A.S.Ed(A.Zg())):L||(A.ZM.show(),A.wT.show(),A.muteButton&&A.muteButton.Hy(!0),A.D&&A.D.Hy(!0),A.U&&A.U.Hy(!0),A.Al())}; q$7=function(A){var L=A.S.Pn().getPlayerSize().width;return Math.max(L-v4L(A)*2,100)}; v4L=function(A){if(A.S.J("web_player_rtr_ctrls")&&A.S.Pn().T1)return 0;var L=A.S.Zr(),B=A.S.getVideoData().OE,f=0;A.S.Zr()&&A.S.isEmbedsShortsMode()&&(f=(A.S.Pn().getPlayerSize().width-A.S.getVideoContentRect().width)/2);return 12*(B?0:L?2:1)+f}; PvQ=function(A){var L=A.S.Zr()?72:50,B=A.S.K();g.SK(B)&&(B.J("delhi_modern_web_player")?(L=g.Am(B.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),L=A.S.J("delhi_modern_web_player_compact_controls")||L>0&&A.S.getPlayerSize().width<=L,L=A.S.Zr()?B.J("delhi_modern_web_player_big_mode_consistent_pill_height")?100:112:L?70:78,A.S.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(A=getComputedStyle(A.S.getRootNode()).getPropertyValue("--ytp-grid-peek-height")|| "36px",L+=Number(A.replace("px","")))):L=62,g.PL(B)&&(L=54));return L}; g0=function(A,L,B){A.S.J("delhi_modern_web_player")?L.DM(A.V.m4(jQ[B])):L.DM(A.V.element)}; en1=function(A){DW.call(this,A,!1);var L=this;this.suggestedActions={};this.N=null;this.V=!1;this.element.setAttribute("data-overlay-order","7");this.Y(this.S,"videodatachange",this.onVideoDataChange);this.Y(this.S,g.qR("suggested_action_button_visible"),function(B){xey(L,B.id);L.enabled=!0;L.wI()}); this.Y(this.S,g.PR("suggested_action_button_visible"),function(B){L.enabled=!1;L.wI();L.S.removeCueRange(B.id)}); this.Y(A,"presentingplayerstatechange",this.onStateChange)}; xey=function(A,L){A.text=L;LI0(A);var B;A.onClickCommand=(B=A.suggestedActions[L])==null?void 0:B.tapCommand}; n4w=function(A){A.suggestedActions={};A.S.Jf("suggested_action_button_visible");A.V=!1}; r0=function(A){g.q.call(this,{Z:"div",j:GG.TITLE,B:[{Z:"div",Rr:[GG.TEXT,A.J("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],B:[{Z:"a",Rr:[GG.LINK,GG.SESSIONLINK],C:{target:A.K().yj,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Ir:"{{title}}"},{Z:"div",j:GG.SUBTEXT,B:["{{subtextElement}}"]}]}]});this.api=A;this.N=null;this.link=this.m4(GG.LINK);A.createClientVe(this.element,this,23851);this.Y(A,"videodatachange",this.zL); this.Y(A,"videoplayerreset",this.zL);this.zL()}; znw=function(A){A.updateValue("channelLink","");A.updateValue("channelName","");g.PL(A.api.K())||A.api.J("enable_channel_title_always_focusable")?A.updateValue("channelTitleFocusable","0"):A.updateValue("channelTitleFocusable","-1")}; g.sY=function(A,L){g.q.call(this,{Z:"div",B:[{Z:"div",j:"ytp-tooltip-text-wrapper",C:{"aria-hidden":"{{ariaHidden}}"},B:[{Z:"div",j:"ytp-tooltip-edu",B:[{Z:"svg",C:{height:"100%",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",C:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{Z:"span",Ir:"{{eduText}}"}]},{Z:"div",j:"ytp-tooltip-image"},{Z:"div",j:"ytp-tooltip-title",B:[{Z:"span",Ir:"{{title}}"},{Z:"div",j:"ytp-tooltip-keyboard-shortcut", Ir:"{{keyBoardShortcutTitle}}"}]},{Z:"div",j:"ytp-tooltip-bottom-text",B:[{Z:"span",j:"ytp-tooltip-text",Ir:"{{text}}"},{Z:"div",j:"ytp-tooltip-keyboard-shortcut",Ir:"{{keyBoardShortcut}}"}]},{Z:"div",j:"ytp-tooltip-progress-bar-pill",B:[{Z:"div",j:"ytp-tooltip-progress-bar-pill-time-stamp",Ir:"{{pillTimeStamp}}"},{Z:"div",j:"ytp-tooltip-progress-bar-pill-title",Ir:"{{pillTitle}}"}]}]},{Z:"div",j:"ytp-tooltip-bg",B:[{Z:"div",j:"ytp-tooltip-duration",Ir:"{{duration}}"}]}]});var B=this;this.api=A;this.JF= L;this.G=function(f){(f=f.relatedTarget)&&g.XF(B.N,f)||B.HI()}; this.D=function(f){B.type===3&&B.HI();(f=f.currentTarget)&&f.nodeType===1&&!B.type&&(f.removeEventListener("mouseover",B.D),f.addEventListener("mouseout",B.G),f.removeEventListener("focus",B.D),f.addEventListener("blur",B.G),ul0(B,f,2))}; this.Wn=function(){B.HI()}; this.type=this.N=null;this.X=!1;this.W=null;this.V="";this.T=!0;this.scale=1;this.env=this.api.K();this.ZM=this.env.W;this.wrapper=this.m4("ytp-tooltip-text-wrapper");this.bg=this.m4("ytp-tooltip-bg");this.wT=this.m4("ytp-tooltip-edu");this.image=this.m4("ytp-tooltip-image");this.text=this.m4("ytp-tooltip-text");this.bottomText=this.m4("ytp-tooltip-bottom-text");this.title=this.m4("ytp-tooltip-title");this.fade=new g.KL(this,100);this.U=NaN;this.Jr=this.api.Pn().getPlayerSize().width;this.qp=new g.aa(this.qvr, 250,this);this.Vj=new g.aa(this.HI,5E3,this);g.W(this,this.fade);g.W(this,this.qp);g.W(this,this.Vj);X5&&(A=this.m4("ytp-tooltip-text"),A.setAttribute("role","text"),A.setAttribute("aria-live","polite"))}; a6D=function(A,L){A.env.J("delhi_modern_web_player")&&A.scale!==.6&&(A.scale=L?.8:1)}; AN0=function(A){return k7[S[2]](this,8,A)}; g.QW=function(A,L){if(A.ZM)return function(){}; L.addEventListener("mouseover",A.D);L.addEventListener("focus",A.D);var B=A.env.J("player_tooltip_data_title_killswitch")?L.getAttribute("title"):L.getAttribute("data-tooltip-title");B&&!L.hasAttribute("aria-label")&&L.setAttribute("aria-label",B);return function(){A.N===L&&A.HI();L.removeEventListener("mouseover",A.D);L.removeEventListener("focus",A.D)}}; ul0=function(A,L,B,f){if(L&&!L.hasAttribute)A=new g.iL("showElementTooltip called with non-element.",L.toString()),g.mL(A);else{isNaN(A.U)||(A.U=NaN,A.bg.style.background="");g.NH(A.element,"ytp-tooltip-progress-bar-style");A.N=L;A.X=!!f;f?A.V=f:(A.env.J("player_tooltip_data_title_killswitch")?A.V=L.getAttribute("title"):A.V=L.getAttribute("data-tooltip-title"),A.env.J("player_tooltip_data_title_killswitch")?L.removeAttribute("title"):L.removeAttribute("data-tooltip-title"));g.Jz(A.element,"ytp-tooltip"); var K=L.getAttribute("data-tooltip-image");K&&(A.image.style.backgroundImage="url("+K+")");f?A.update({ariaHidden:"false"}):A.update({ariaHidden:"true"});g.D1(A.element,"ytp-tooltip-image-enabled",!!K);L=L.getAttribute("data-tooltip-opaque");g.D1(A.element,"ytp-tooltip-opaque",!!L);A.type=B;A.api.addEventListener("appresize",A.Wn);A.T&&(Hd(A),A.fade.show(0))}}; Hd=function(A){if(A.N){var L=A.N.getAttribute("data-tooltip-text");if(A.V&&A.N.getAttribute("aria-label")!==A.V)var B=A.V;var f=A.N.getAttribute("aria-keyshortcuts"),K=A.N.getAttribute("data-title-no-tooltip");f&&K&&(B=g.B$("$BUTTON_TITLE combinaci\u00f3n de teclas $SHORTCUT_KEY",{BUTTON_TITLE:K,SHORTCUT_KEY:f}));B&&A.N.setAttribute("aria-label",B);if(L&&!A.X){a6D(A,!0);var V=A.N;A.updateValue("text",L);B=V.getAttribute("data-duration");A.update({title:A.V,duration:B});V=V.getAttribute("data-preview"); A.env.J("delhi_modern_web_player")?(A.updateValue("title",K),A.updateValue("keyBoardShortcutTitle",f.toUpperCase())):a6D(A,!1);f=243*A.scale;K=141*A.scale;A.bg.style.width=f+"px";A.bg.style.height=K+"px";A.bg.style.backgroundImage=V?"url("+V+")":"";A.bg.style.backgroundSize=f+"px "+K+"px";A.wrapper.style.width=f+"px";g.Z1(A.element,["ytp-text-detail","ytp-preview"]);g.D1(A.element,"ytp-has-duration",!!B)}else K&&f&&A.env.J("delhi_modern_web_player")?(A.updateValue("text",K),A.updateValue("keyBoardShortcut", f.toUpperCase())):A.updateValue("text",A.V),g.Fq(A.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);B=A.N;B.hasAttribute("data-tooltip-offset-y")?(B=Number(B.getAttribute("data-tooltip-offset-y")),B=isNaN(B)?0:B):B=0;LR7(A,!!L,void 0,B)}}; LR7=function(A,L,B,f){var K=Math.min(A.Jr,300*A.scale);A.element.style.maxWidth=L?"":K+"px";A.JF.TT(A.element,A.N,B,A.type===1,f);A.element.style.top?g.R1(A.element,"ytp-bottom"):A.element.style.bottom&&g.R1(A.element,"ytp-top");A.type===3&&A.Vj.start()}; ou7=function(A,L){g.D1(A.element,"ytp-preview",L>=0);if(!(L<0||L===A.U)){A.U=L;L=243*A.scale;var B=141*A.scale,f=T9D(A.W,A.U,L);ibE(A.bg,f,L,B,!0);A.qp.start()}}; BQD=function(A){var L=A.N;A.type===3&&A.Vj.stop();A.api.removeEventListener("appresize",A.Wn);A.X||(A.env.J("player_tooltip_data_title_killswitch")?L.setAttribute("title",A.V):L.setAttribute("data-tooltip-title",A.V));A.V="";A.N=null;A.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});A.wrapper.style.width=""}; KR0=function(A){g.q.call(this,{Z:"button",Rr:["ytp-watch-later-button","ytp-button"],C:{title:A.J("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.MM(A.K()))},B:[{Z:"div",j:"ytp-watch-later-icon",Ir:"{{icon}}"},{Z:"div",j:"ytp-watch-later-title",Ir:"Ver m\u00e1s tarde"}]});this.S=A;this.icon=null;this.visible=this.isRequestPending=this.N=!1;Dy1(A);A.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.Y(A,"videoplayerreset",this.onReset);this.Y(A,"appresize",this.Fz);this.Y(A,"videodatachange",this.Fz);this.Y(A,"presentingplayerstatechange",this.Fz);this.Fz();A=this.S.K();var L=g.ES("yt-player-watch-later-pending");A.U&&L?(wRQ(),f91(this)):this.zL(2);g.D1(this.element,"ytp-show-watch-later-title",g.MM(A));Cm(this.S,this.element,this)}; VyE=function(A){var L=A.S.getPlayerSize(),B=A.S.K(),f=A.S.getVideoData(),K=g.MM(B)&&g.ch(A.S)&&g.x(A.S.getPlayerStateObject(),128),V=B.V;return B.t$&&L.width>=240&&!f.isAd()&&f.t$&&!K&&!f.OE&&!A.S.isEmbedsShortsMode()&&!V}; JNL=function(A,L){W5S(g.BN(A.S.K()),"wl_button",function(){wRQ({videoId:L});window.location.reload()})}; f91=function(A){if(!A.isRequestPending){A.isRequestPending=!0;A.zL(3);var L=A.S.getVideoData();L=A.N?L.removeFromWatchLaterCommand:L.addToWatchLaterCommand;var B=A.S.dh(),f=A.N?function(){A.N=!1;A.isRequestPending=!1;A.zL(2);A.S.K().G&&A.S.Kr("WATCH_LATER_VIDEO_REMOVED")}:function(){A.N=!0; A.isRequestPending=!1;A.zL(1);A.S.K().W&&A.S.yR(A.element);A.S.K().G&&A.S.Kr("WATCH_LATER_VIDEO_ADDED")}; c8(B,L).then(f,function(){A.isRequestPending=!1;A.zL(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");A.S.K().G&&A.S.Kr("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; Syy=function(A,L){if(L!==A.icon){switch(L){case 3:var B=yC();break;case 1:B=yo();break;case 2:B={Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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:B={Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path", bq:!0,C:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}A.updateValue("icon",B);A.icon=L}}; R7E=function(){g.YS.apply(this,arguments);this.by=(this.Hg=g.MM(this.api.K()))&&(this.api.K().W||Kn()||B9());this.ws=48;this.Zw=69;this.Td=this.Yu=null;this.W4=[];this.yX=this.Rc=this.Wx=this.ou=this.XO=null;this.Jg=[];this.contextMenu=this.A_=this.overflowButton=this.FL=this.u2=this.searchButton=this.copyLinkButton=this.shareButton=this.u5=this.J_=this.title=this.channelAvatar=this.Jh=this.tooltip=null;this.c6=!1;this.qX=this.hT=this.aO=this.K$=null;this.WCM=this.El=this.nW=!1}; ZI6=function(A){var L=A.api.K(),B=g.x(A.api.getPlayerStateObject(),128);return L.U&&B&&!A.api.isFullscreen()}; NQ1=function(A){if(A.Gy()&&!A.api.isEmbedsShortsMode()&&A.FL){var L=A.api.J("web_player_hide_overflow_button_if_empty_menu");!A.u5||L&&!VyE(A.u5)||zCD(A.FL,A.u5);!A.shareButton||L&&!ddv(A.shareButton)||zCD(A.FL,A.shareButton);!A.copyLinkButton||L&&!Sfe(A.copyLinkButton)||zCD(A.FL,A.copyLinkButton)}else{L=A.api.K().getWebPlayerContextConfig();if(A.FL){for(var B=A.FL,f=g.m(B.actionButtons),K=f.next();!K.done;K=f.next())K.value.detach();B.actionButtons=[]}A.searchButton&&!g.XF(A.J_.element,A.searchButton.element)&& A.searchButton.DM(A.J_.element);!A.u5||(L==null?0:L.hideTopWatchNextButton)||g.XF(A.J_.element,A.u5.element)||A.u5.DM(A.J_.element);!A.shareButton||(L==null?0:L.hideTopShareButton)||g.XF(A.J_.element,A.shareButton.element)||A.shareButton.DM(A.J_.element);A.copyLinkButton&&!g.XF(A.J_.element,A.copyLinkButton.element)&&A.copyLinkButton.DM(A.J_.element)}}; FRC=function(A,L,B){L=B?L.lastElementChild:L.firstElementChild;for(var f=null;L;){if(RR(L,"display")!=="none"&&L.getAttribute("aria-hidden")!=="true"){var K=void 0;L.tabIndex>=0?K=L:K=FRC(A,L,B);K&&(f?B?K.tabIndex>f.tabIndex&&(f=K):K.tabIndexL||B>10||(A.play(),g.gW(function(){dZS(A,A.getCurrentTime(),B+1)},500))}; I97=function(A,L){A.D&&A.D.equals(L)||(A.D&&A.D.dispose(),A.D=L)}; w08=function(A){A.eE()&&(A.Np&&A.Np.WZ("rs_s"),ed&&A.getCurrentTime()>0&&A.seekTo(0),A.Hd(),A.load(),I97(A,null));delete A.T}; p08=function(A,L){return A.view?fW(L,A.view.start,A.view.end):L}; jz6=function(A){A=A===void 0?!1:A;yNE||(window.addEventListener(X5?"touchstart":"click",function(){var L=A;L=L===void 0?!1:L;for(var B=tS.length;B<4;B++){var f=g.TO("VIDEO");f.load();tS.push(L?new g.bE(f):new g.$8(f))}},{capture:!0, passive:!0}),yNE=!0)}; gu0=function(A,L,B,f,K){K=K===void 0?!1:K;var V=B.getVideoData(),J=L.getVideoData();if(B.getPlayerState().isError())return{msg:"player-error"};var R=J.V;if(L.Fb()>f/1E3+1)return{msg:"in-the-past"};if(J.isLivePlayback&&!isFinite(f))return{msg:"live-infinite"};f=L.pD();var Z=null;f&&(Z=K?f.N.played||n$([],[]):f.isView()?f.mediaElement.wN():f.wN());if(Z&&Z.length>12&&g.Cr(V))return{msg:"played-ranges"};if(!V.V)return null;if(!R)return{msg:"no-pvd-formats"};if(!V.V.N||!R.N)return{msg:"non-dash"};K=R.videoInfos[0]; f=V.V.videoInfos[0];A.Wn&&pr(J)&&(K=L.bf(),f=B.bf());if(!K||!f)return{msg:"no-video-info"};if(A.T&&(Mb(K)||Mb(f)))return{msg:"av1"};L=A.U&&J.zt()&&Se();if(f.containerType!==K.containerType)if(L)J.Hn("sgap",{ierr:"container"});else return{msg:"container"};if(A.D&&!L&&(f.Bn!==K.Bn||f.Bn===""||K.Bn===""))return{msg:"codec"};if(A.X&&f.video&&K.video&&Math.abs(f.video.width/f.video.height-K.video.width/K.video.height)>.01)return{msg:"ratio"};if(g.Cr(J)&&g.Cr(V))return{msg:"content-protection"};R=R.N[0]; V=V.V.N[0];B=R.audio;Z=V.audio;if(B.sampleRate!==Z.sampleRate&&!g.Z2)if(L)J.Hn("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:R.itag,cr:B.sampleRate,ni:V.itag,nr:Z.sampleRate};return(B.numChannels||2)!==(Z.numChannels||2)?{msg:"channel-count"}:A.G&&J.zt()&&K.video.fps!==f.video.fps?{msg:"fps"}:null}; Ge7=function(A,L,B,f){f=f===void 0?!1:f;var K=A.getVideoData(),V=L.getVideoData();if(!K.K().supportsGaplessShorts())return{nq:"env"};if((!B.yj||K.BV&&!K.isAd()||V.BV&&!V.isAd())&&(!B.W||K.BV&&!K.isAd()||V.BV)&&(!B.V||V.BV&&!V.isAd()||K.BV)&&(K.BV||V.BV))return{nq:"autoplay"};if(K.endSeconds>0)return{nq:"endcr"};if(!K.X)return{nq:"client"};if(!A.qV())return{nq:"no-empty"};A=gu0(B,A,L,Infinity,f);return A!=null?{nq:A.msg}:null}; ko=function(A){g.Y.call(this);this.app=A;this.D=this.U=this.W=this.N=null;this.V=1;this.events=new g.dN(this);this.events.Y(this.app.rT,g.PR("gaplessshortslooprange"),this.G);g.W(this,this.events)}; rNL=function(){this.N=this.X=this.V=this.W=this.yj=this.T=this.Wn=this.G=this.D=this.U=!1}; szv=function(A){var L=new rNL;L.U=A.J("h5_gapless_support_types_diff");L.G=!1;L.Wn=A.J("html5_gapless_use_format_info_fix");L.T=A.J("html5_gapless_disable_on_av1")&&!A.J("html5_gapless_enable_on_av1");L.D=A.J("html5_gapless_check_codec_diff_strictly");L.yj=A.J("html5_gapless_on_ad_autoplay");L.X=A.J("html5_gapless_disable_diff_aspect_radio");L.W=A.J("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!A.J("html5_disable_loop_range_for_shorts_ads");L.N=A.J("html5_pseudogapless_shorts_seek_to_next_start"); L.V=A.J("html5_gapless_ad_autoplay_on_video_to_ad_only");return L}; g.TG=function(A,L,B,f){f=f===void 0?!1:f;je.call(this);this.mediaElement=A;this.start=L;this.end=B;this.oQ=f}; HIv=function(A,L,B,f,K,V){V=V===void 0?0:V;g.Y.call(this);var J=this;this.policy=A;this.N=L;this.W=B;this.gf=K;this.D=V;this.U=this.V=null;this.currentVideoDuration=this.T=-1;this.X=!1;this.lD=new yV;this.rk=f-L.pY()*1E3;this.lD.then(void 0,function(){}); this.timeout=new g.aa(function(){J.Lw("timeout")},1E4); g.W(this,this.timeout);this.G=isFinite(f)||this.gf.K().experiments.GL("html5_pseudogapless_shorts")&&pr(L.getVideoData());this.status={status:0,error:null}}; bIE=function(A){var L,B,f,K,V,J,R,Z,N;return g.c(function(F){if(F.N==1){if(A.TL())return F.return(Promise.reject(Error(A.status.error||"disposed")));A.timeout.start();return g.X(F,A.lD,2)}L=A.N.pD();if(L.isEnded())return A.Lw("ended_in_finishTransition"),F.return(Promise.reject(Error(A.status.error||"")));if(!A.U||!Fi(A.U))return A.Lw("next_mse_closed"),F.return(Promise.reject(Error(A.status.error||"")));if(A.W.Fy()!==A.U)return A.Lw("next_mse_mismatch"),F.return(Promise.reject(Error(A.status.error|| "")));B=lE(A);f=B.oZ;K=B.Vw;V=B.X7;A.N.UN(!1,!0);J=h77(A,L,f,V,!A.W.getVideoData().isAd());A.W.setMediaElement(J);(R=A.N.Vu())&&A.W.fC(R.L_,R.dA);A.G&&(A.policy.N||A.W.seekTo(A.W.getCurrentTime()+.001,{Mi:!0,xz:3,zZ:"gapless_pseudo"}),J.play());Z=L.Ov();Z.cpn=A.N.getVideoData().clientPlaybackNonce;Z.st=""+f;Z.et=""+V;A.W.Hn("gapless",Z);A.N.Hn("gaplessTo",{cpn:A.W.getVideoData().clientPlaybackNonce});N=A.N.getPlayerType()===A.W.getPlayerType();A.N.wY(K,!0,!1,N,A.W.getVideoData().clientPlaybackNonce); A.W.wY(A.W.getCurrentTime(),!0,!0,N,A.N.getVideoData().clientPlaybackNonce);A.W.RS();g.lX(function(){!A.W.getVideoData().G&&A.W.getPlayerState().isOrWillBePlaying()&&A.W.X6()}); mj(A,6);A.dispose();return F.return(Promise.resolve())})}; l9C=function(A){if(A.W.getVideoData().V){var L=A.gf.K().J("html5_gapless_suspend_next_loader")&&A.D===1;A.W.Mv(A.U,L,ty7(A));mj(A,3);keL(A);var B=TQQ(A);L=B.b$;B=B.EP;L.subscribe("updateend",A.Rk,A);B.subscribe("updateend",A.Rk,A);A.Rk(L);A.Rk(B)}}; keL=function(A){A.N.unsubscribe("internalvideodatachange",A.sI,A);A.W.unsubscribe("internalvideodatachange",A.sI,A);A.gf.K().J("html5_gapless_use_format_info_fix")&&(A.N.unsubscribe("internalvideoformatchange",A.sI,A),A.W.unsubscribe("internalvideoformatchange",A.sI,A));A.N.unsubscribe("mediasourceattached",A.sI,A);A.W.unsubscribe("statechange",A.TD,A)}; mZ8=function(A){var L=A.gf.K().experiments.Qf().N.Iv(QA);return gu0(A.policy,A.N,A.W,A.rk,L)}; h77=function(A,L,B,f,K){if(A.gf.K().experiments.Qf().N.Iv(QA))return L.view={start:B,end:f,oQ:K===void 0?!1:K},L;A=L.isView()?L.mediaElement:L;return new g.TG(A,B,f,K)}; mj=function(A,L){L<=A.status.status||(A.status={status:L,error:null},L===5&&A.lD.resolve())}; ty7=function(A){return A.gf.K().J("html5_gapless_no_clear_buffer_timeline")&&A.D===1&&iS(A.N.getVideoData())}; lE=function(A){var L=A.N.pD();L=L.isView()?L.start:0;var B=A.N.getVideoData().isLivePlayback?Infinity:A.N.bH(!0);B=Math.min(A.rk/1E3,B)+L;var f=A.G?100:0;A=B-A.W.Fb()+f;return{bU:L,oZ:A,Vw:B,X7:Infinity}}; TQQ=function(A){return{b$:A.V.N.Py,EP:A.V.W.Py}}; Cb=function(A){g.Y.call(this);var L=this;this.app=A;this.X=this.W=this.N=null;this.Wn=!1;this.yj=this.T=this.V=this.U=null;this.D=szv(this.app.K());this.G=function(){g.lX(function(){QzS(L)})}}; Co1=function(A,L,B,f,K){f=f===void 0?0:f;K=K===void 0?0:K;A.qV()||(iE(A),$o(A));A.U=new yV;A.N=L;var V=B,J=K===0;J=J===void 0?!0:J;var R=A.app.e4(),Z=R.getVideoData().isLivePlayback?Infinity:R.bH(!0)*1E3;V>Z&&(V=Z-200,A.Wn=!0);J&&R.getCurrentTime()>=V/1E3?A.G():(A.W=R,J&&(J=V,V=A.W,A.app.rT.addEventListener(g.qR("vqueued"),A.G),J=isFinite(J)||J/1E3>V.getDuration()?J:0x8000000000000,A.X=new g.WR(J,0x8000000000000,{namespace:"vqueued"}),V.addCueRange(A.X)));J=f/=1E3;V=L.getVideoData().N;f&&V&&A.W&& (R=f,Z=0,L.getVideoData().isLivePlayback&&(J=Math.min(B/1E3,A.W.bH(!0)),Z=Math.max(0,J-A.W.getCurrentTime()),R=Math.min(f,L.bH()+Z)),J=WP0(V,R)||f,J!==f&&A.N.Hn("qvaln",{st:f,at:J,rm:Z,ct:R}));L=J;f=A.N;f.getVideoData().LD=!0;f.getVideoData().X=!0;f.dK(!0);V={};A.W&&(V=A.W.G_(),J=A.W.getVideoData().clientPlaybackNonce,V={crt:(V*1E3).toFixed(),cpn:J});f.Hn("queued",V);L!==0&&f.seekTo(L+.01,{Mi:!0,xz:3,zZ:"videoqueuer_queued"});A.V=new HIv(A.D,A.app.e4(),A.N,B,A.app,K);B=A.V;B.status.status!==Infinity&& (mj(B,1),B.N.subscribe("internalvideodatachange",B.sI,B),B.W.subscribe("internalvideodatachange",B.sI,B),B.gf.K().J("html5_gapless_use_format_info_fix")&&(B.N.subscribe("internalvideoformatchange",B.sI,B),B.W.subscribe("internalvideoformatchange",B.sI,B)),B.N.subscribe("mediasourceattached",B.sI,B),B.W.subscribe("statechange",B.TD,B),B.N.subscribe("newelementrequired",B.c8,B),B.sI());return A.U}; QzS=function(A){var L,B,f,K,V,J,R;g.c(function(Z){switch(Z.N){case 1:if(A.TL()||!A.U||!A.N)return Z.return();A.Wn&&A.app.e4().E5(!0,!1);L=null;if(!A.V){Z.Ux(2);break}g.S5(Z,3);return g.X(Z,bIE(A.V),5);case 5:g.ZR(Z,2);break;case 3:L=B=g.NX(Z);case 2:if(!A.N)return Z.return();iIw.Rf("vqsp",function(){A.app.Ok(A.N)}); if(!A.N)return Z.return();f=A.N.pD();A.app.K().J("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&A.N.seekTo(0);iIw.Rf("vqpv",function(){A.app.playVideo()}); L&&(A.N?(K=L?L.message:"forced",(V=A.W)==null||V.Hn("gapfulfbk",{r:K}),A.N.BS(K)):(J=A.W)==null||J.Hn("gapsp",{}));R=A.U;$o(A);R&&R.resolve();return Z.return(Promise.resolve())}})}; $o=function(A,L){L=L===void 0?!1:L;if(A.W){if(A.X){var B=A.W;A.app.rT.removeEventListener(g.qR("vqueued"),A.G);B.removeCueRange(A.X)}A.W=null;A.X=null}A.V&&(A.V.status.status!==6&&(B=A.V,B.status.status!==Infinity&&B.D!==1&&B.Lw("Canceled")),A.V=null);A.U=null;A.N&&!L&&A.N!==A.app.kP()&&A.N!==A.app.e4()&&A.N.dispose();A.N&&L&&A.N.GB();A.N=null;A.Wn=!1}; iE=function(A){A.yj&&A.T&&A.yj.removeEventListener("timeupdate",A.T);A.T=null;A.yj=null}; OIe=function(A,L){if(A.app.K().Qf().N.Iv($ZQ)){var B=A.app.K().Qf().N.Iv(X0w);if(!(B<=0)){iE(A);var f,K=(f=A.app.e4())==null?void 0:f.pD();K&&A.N&&(A.N.getVideoData().OC=!0,A.T=function(){var V=K.getCurrentTime();V>=L+B/1E3&&(V=Date.now()-(V-L)*1E3,A.app.zH().tick("pbs",V),iE(A))},A.yj=K,K.addEventListener("timeupdate",A.T))}}}; Euw=function(A){var L;return((L=A.V)==null?void 0:L.currentVideoDuration)||-1}; cN8=function(A,L,B){if(A.qV())return"qie";if(A.N==null||A.N.TL()||A.N.getVideoData()==null)return"qpd";if(L.videoId!==A.N.TP())return"vinm";if(Euw(A)<=0)return"ivd";if(B!==1)return"upt";if((B=A.V)==null)A=void 0;else if(B.getStatus().status!==5)A="niss";else if(mZ8(B)!=null)A="pge";else{L=TQQ(B);A=L.b$;var f=L.EP;L=g.Am(B.gf.K().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var K=B.T+L;B.gf.K().experiments.GL("html5_pseudogapless_shorts")&&(K=lE(B).oZ+L);B=aT(f.Hk(),K);A=aT(A.Hk(),K); A=!(L>0)||B&&A?null:"neb"}return A!=null?A:null}; MyL=function(){g.SN.call(this);var A=this;this.fullscreen=0;this.U=this.V=this.pictureInPicture=this.N=this.W=this.inline=!1;this.D=function(){A.wI()}; K41(this.D);this.T=this.getVisibilityState(this.QC(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.nV(),this.WE(),this.bz(),this.EN())}; F48=function(A){return!(A.isMinimized()||A.isInline()||A.isBackground()||A.nV()||A.WE()||A.bz()||A.EN())}; g.XA=function(A){g.Y.call(this);this.L=A;this.videoData=this.playerState=null}; WRL=function(A,L,B){return(B===void 0?0:B)?new YyC(A,L):new UZ0(A,L)}; UZ0=function(A,L){g.Y.call(this);var B=this;this.data=[];this.V=A||NaN;this.W=L||null;this.N=new g.aa(function(){OY(B);EY(B)}); g.W(this,this.N)}; OY=function(A){var L=(0,g.bc)();A.data.forEach(function(B){B.expiref)break;var V=B.N.remove(),J=B.map.get(V);J&&J.tY===K&&Md(B,V,!0)}Yo(B)}); this.map=new Map;this.N=new WC;Number.isNaN(A);g.W(this,this.V)}; Md=function(A,L,B){var f=A.map.get(L);if(!f)return!1;A.map.delete(L);B&&A.W&&A.W(f.value);if(A.N.N.length>A.map.size*2)for(A.N.clear(),L=g.m(A.map.entries()),B=L.next();!B.done;B=L.next())f=g.m(B.value),B=f.next().value,f=f.next().value,isFinite(f.tY)&&A.N.enqueue(f.tY,B);return!0}; Yo=function(A){A.V.stop();for(var L;!A.N.isEmpty();){var B=Un(A.N);var f=A.N.N;f=f.length!=0?f[0].getValue():void 0;if(B===void 0||f===void 0)break;if((f=A.map.get(f))&&f.tY===B){L=B;break}else A.N.remove()}L!==void 0&&(B=(0,g.bc)(),A.V.start(Math.max(L-B,100)))}; g.UY=function(A,L){g.Y.call(this);var B=this;this.api=A;this.V={};this.VN=null;this.U={};this.N=null;this.X=new Map;this.D=null;L=WRL(L,function(f){f!==B.Yy({playerType:f.getPlayerType()})&&f.dispose()},A.K().Qf().N.Iv(vuQ)); g.W(this,L);this.W=this.yj=this.G=new g.XA(A.K());this.T=L}; Wd=function(A){var L=[{cpn:A.W.t_()}];A.N&&L.push({cpn:A.N.t_()});A.api.publish("playbackChange",{Ce4:L})}; qye=function(A){for(var L=g.m(Object.values(A.U)),B=L.next();!B.done;B=L.next())B.value.dispose();A.U={};A.N=null;A.D=null;A.X.clear();Wd(A)}; vd=function(A,L,B){var f=f===void 0?"":f;A.U[L.t_()]=L;A.N=L;B&&(A.D=L);A.X.set(f,L);Wd(A)}; opE=function(A){var L=A.experiments,B=L.GL.bind(L);Pok=xZe=B("html5_use_async_stopVideo");e78=nuS=B("html5_pause_for_async_stopVideo");z7E=uQk=B("html5_not_reset_media_source");B("html5_listen_for_audio_output_changed")&&(a9y=ACE=!0);DL=B("html5_not_reset_media_source");LgD=B("html5_not_reset_media_source");VV=B("html5_retain_source_buffer_appends_for_debugging");Qc8(B("web_watch_pip")||B("web_shorts_pip"));SVS(B("log_foreground_not_focused_as_background"));ZTE(B("web_player_pip_logging_fix"));B("html5_mediastream_applies_timestamp_offset")&& (qL=!0);A.hw()&&yje();Error.stackTraceLimit=50;var f=g.Am(L,"html5_idle_rate_limit_ms");f&&Object.defineProperty(window,"requestIdleCallback",{value:function(K){return window.setTimeout(K,f)}}); ILC(A.D);QpE(B("html5_use_ump_request_slicer"));Zqv(B("html5_record_now"));B("html5_disable_streaming_xhr")&&(Km=!1);B("html5_byterate_constraints")&&(OO=!0);B("html5_use_non_active_broadcast_for_post_live")&&(ys=!0);B("html5_enable_encrypted_av1")&&(X2=!0);NY7(g.Am(A.experiments,"html5_sticky_duration_mos"))}; Fg8=function(A){function L(V,J,R){f.push(A2(J(R),function(Z){B[V]=Z}))} var B={};A=A.experiments.mw();var f=[],K=A.N.Iv(Brk);K&&L("MediaSource.EnableUsingMediaSourceBufferedRange",SU0,K===1);(K=A.N.Iv(f0Q))&&L("HTTP3",RIQ,K===1);(K=A.N.Iv(KgL))&&L("MediaSource.EnableUsingMediaSourceAttachmentMethods",Zmk,K===1);(K=A.N.Iv(VDQ))&&L("QUIC",NhS,K===1);(K=A.N.Iv(JCk))&&L("Media.PlayerConfiguration.DecodeToTexturePreferred",Dm0,K===1);(K=A.N.Iv(SHC))&&L("Media.AudioWriteDurationLocal",FY0,Number(K));(K=A.N.Iv(RB8))&&L("Media.DisableExternalAllocator",dmk,Number(K)===1);(K= A.N.Iv(ZFw))&&L("Media.VideoBufferSizeClampMb",II8,K);(A=A.N.Iv(Nrk))&&L("Media.EnableAllocateOnDemand",whE,Number(A)===1);return A2(CTD(f),function(){return B})}; DcS=function(A){this.W=A===void 0?15:A;this.values=new Float64Array(176);this.N=new Float64Array(11);this.V=new Float64Array(16)}; qd=function(A,L,B,f){B=B===void 0?.5:B;f=f===void 0?0:f;this.resolution=L;this.W=0;this.V=!1;this.I$=!0;this.N=Math.round(A*this.resolution);this.values=Array(this.N);for(A=0;A0)L=A.byterate,this.Wn= !0;else{var f;B=(((f=navigator.connection)==null?void 0:f.downlink)||0)*64*1024;B>0&&(L=B,this.Wn=!0)}this.V.eg(this.policy.T,L);A.delay>0&&this.G.eg(1,Math.min(A.delay,2));A.stall>0&&this.X.eg(1,A.stall);A.init>0&&(this.S4=Math.min(A.init,this.S4));A.interruptions&&(this.U=this.U.concat(A.interruptions),this.U.length>16&&this.U.pop());this.qp=(0,g.bc)();this.policy.X>0&&(this.Ex=new g.aa(this.sx,this.policy.X,this),g.W(this,this.Ex),this.Ex.start())}; rM=function(A,L,B,f){A.V.eg(f===void 0?L:f,B/L);A.T=(0,g.bc)()}; lcy=function(A){A.D||(A.D=(0,g.bc)());A.policy.yj&&(A.T=(0,g.bc)())}; Qsv=function(A,L){if(A.D){var B=L-A.D;if(B<6E4){if(B>1E3){var f=A.interruptions;f.push(Math.ceil(B));f.sort(function(K,V){return V-K}); f.length>16&&f.pop()}A.ZM+=B}}A.D=L}; Pd=function(A,L,B,f,K,V){V=V===void 0?!1:V;A.JF.eg(L,B/L);A.T=(0,g.bc)();K||A.yj.eg(1,L-f);V||(A.D=0);A.qp>-1&&(0,g.bc)()-A.qp>3E4&&(FOw(pT(A)),A.qp=(0,g.bc)(),A.Wn=!0)}; xo=function(A,L,B){L=Math.max(L,A.W.N);A.X.eg(1,B/L)}; nh=function(A){A=A.G.pw()+A.wT.pw()||0;A=isNaN(A)?.5:A;return A=Math.min(A,5)}; I0E=function(A,L,B){isNaN(B)||(A.Vj+=B);isNaN(L)||(A.Cr+=L)}; wEQ=function(A){A=A.V.pw();return A>0?A:1}; ub=function(A,L,B){L=L===void 0?!1:L;B=B===void 0?1048576:B;var f=wEQ(A);f=1/((A.X.pw()||0)*A.policy.Wn+1/f);var K=A.JF.pw();K=K>0?K:1;var V=Math.max(f,K);A.policy.D>0&&K=4E3}; pE0=function(A){this.experiments=A;this.N=17;this.V=13E4;this.T=.5;this.U=this.W=!1;this.qp=this.J("html5_use_histogram_for_bandwidth");this.D=g.Am(this.experiments,"html5_auxiliary_estimate_weight");this.Wn=g.Am(this.experiments,"html5_stall_factor")||1;this.X=g.Am(this.experiments,"html5_check_for_idle_network_interval_ms");this.G=this.experiments.GL("html5_trigger_loader_when_idle_network");this.yj=this.experiments.GL("html5_sabr_fetch_on_idle_network_preloaded_players")}; yCk=function(A,L,B){var f=new pE0(B);A&&(f.W=!0,f.T=.1);B.GL("html5_media_time_weight")&&(f.W=!1);L&&(f.V=L/8);f.U=h2()>=480;return f}; gpD=function(A,L,B,f){f=f===void 0?0:f;g.nm.call(this,B.WM());var K=this;this.TV=A;this.videoData=L;this.duration=f;this.N=this.startTimeSecs=0;this.W=this.V=!0;this.U=new jVS(function(V,J){return void K.Hn(V,J)})}; jVS=function(A){this.Hn=A;this.N={}}; GSD=function(A,L,B){A.N[L]||(A.Hn("huli-sdai-err",B),A.N[L]=!0)}; rCv=function(A){this.end=this.start=A}; g.eQ=function(){this.N=new Map;this.V=new Map;this.W=new Map}; sV6=function(A){var L=this;this.L=A;this.W=[];this.V=new Map;this.U=new Map;this.N=new Map;this.GV={Gi:function(){return L.V}, rVx:function(){return L.U}, Kk:function(){return L.W}}; this.D=this.L.J("html5_huli_ssdai_deprecate_playback_timeline_id")}; HF6=function(A,L,B){A=A.W;var f=g.Fc(A,{UE:L},function(J,R){return J.UE-R.UE}); f=f<0?(f+2)*-1:f;if(f>=0)for(var K=f;K<=f+1&&K=V.UE-B&&L<=V.NQ+B)return V}}; bFe=function(A,L){g.px(A.W,L,function(B,f){return B.UE===f.UE?B.durationMs-f.durationMs:B.UE-f.UE}); A.V.set(L.cpn,L);L.XA&&!A.D&&A.U.set(L.XA,L);L.L9&&hBv(A,L.L9,L)}; tDQ=function(A,L){for(var B=[],f=g.m(A.W),K=f.next();!K.done;K=f.next())K=K.value,L(K)||B.push(K);if(A.L.J("html5_sstm_fixes"))for(f=g.m(A.W),K=f.next();!K.done;K=f.next())K=K.value,L(K)&&(A.V.delete(K.cpn),K.XA&&A.U.delete(K.XA));A.W=B}; kSe=function(A,L){L=g.Fc(A.W,{NQ:L},function(B,f){return B.NQ-f.NQ}); return L>=0?A.W[L]:null}; TrD=function(A,L){var B=A.W.indexOf(L);B>=0&&A.W.splice(B,1);A.V.delete(L.cpn);L.XA&&A.U.delete(L.XA)}; hBv=function(A,L,B){var f=A.N.get(L);f?(f.push(B),g.I8(f,function(K,V){return K.UE-V.UE})):A.N.set(L,[B])}; g.nb=function(A,L,B,f){g.Y.call(this);var K=this;this.api=A;this.L=L;this.playback=B;this.app=f;this.Wn=new g.eQ;this.W=new Map;this.zV=new Map;this.Vj=new Map;this.wT=null;this.Uv=NaN;this.Nl=this.mH=null;this.ql=new g.aa(function(){l0k(K,K.Uv,K.mH||void 0)}); this.events=new g.dN(this);this.cn=15E3;this.T=new g.aa(function(){K.X=!0;K.playback.q3(K.cn);mcy(K);if(K.playback.getVideoData().aA()){var V;K.Xr({togab:(V=K.D)==null?void 0:V.identifier})}K.w6(!1)},this.cn); this.X=!1;this.pO=new Map;this.Cr=[];this.D=null;this.m1=new Set;this.G=[];this.S4=[];this.nD=[];this.k6=[];this.Ys=new Set;this.wM=0;this.yj=!1;this.TZ=new Set;this.LD=new Set;this.GZ=new Set;this.Ox=new Set;this.N8=this.Go=0;this.fX=this.Pz=!1;this.xJ=this.V="";this.qp=null;this.logger=new g.sI("dai");this.Po="";this.Ex=!0;this.JF=new Map;this.jI=new Map;this.GV={XZ1:function(){return K.W}, Gi:function(){return K.N.GV.Gi()}, Ca4:function(){return K.V}, tHD:function(V){K.onCueRangeEnter(K.W.get(V))}, MHn:function(V){K.onCueRangeExit(K.W.get(V))}, yIT:function(V,J){K.W.set(V,J)}, HnT:function(V){K.xJ=V}, GK:function(){return K.GK()}, grr:function(V){return K.N.N.get(V)}, f9F:function(){return K.qp}, Kk:function(){return K.N.GV.Kk()}, uf:function(V,J){K.uf(V,J)}, vr4:function(){return K.zV}, L2:function(V){K.L2(V)}}; this.playback.getPlayerType();this.N=new sV6(this.L);this.playback.hW(this);this.sx=this.L.hw();g.W(this,this.ql);g.W(this,this.events);g.W(this,this.T);this.Ry=this.L.J("html5_use_new_ssdai_transition_detector");this.t$=this.L.Qf().N.Iv(v20);this.KY=this.L.Qf().N.Iv(QVk);this.a8=this.playback.getVideoData().Is;this.Ry?this.playback.subscribe("playbackstarted",this.uf,this):(this.events.Y(this.api,g.qR("serverstitchedcuerange"),this.onCueRangeEnter),this.events.Y(this.api,g.PR("serverstitchedcuerange"), this.onCueRangeExit));this.jD=this.L.J("html5_ssdai_report_stitch_error_after_skip_ad");vd(this.app.mD(),this.playback,!1)}; OF0=function(A,L,B,f,K,V,J,R,Z){var N=CZk(A,V,V+K);A.X&&A.Xr({adaftto:1});B||A.Xr({missadcon:1,enter:V,len:K,aid:R});A.U&&!A.U.C2&&(A.U.C2=R);A.fX&&A.Xr({adfbk:1,enter:V,len:K,aid:R});var F=A.playback;V>J&&zG(A,{reason:"enterTime_greater_than_return",UE:V,NQ:J});var D=F.vy()*1E3;VF&&zG(A,{reason:"parent_return_greater_than_content_duration",NQ:J,EDj:F});(F=kSe(A.N,V))&&F.NQ>V&&iFE(A,L.video_id|| "",V,J,F);if(N&&F)for(D=0;D=L)return B}A=g.m(A.W.values());for(B=A.next();!B.done;B=A.next())if(B=B.value,B.start<=L&&B.end>=L)return B}; l0k=function(A,L,B){var f=A.Nl||A.app.e4().getPlayerState();AZ(A,!0);A.playback.seekTo(L,B);A=A.app.e4();L=A.getPlayerState();f.isOrWillBePlaying()&&!L.isOrWillBePlaying()?A.playVideo():f.isPaused()&&!L.isPaused()&&A.pauseVideo()}; AZ=function(A,L){A.Uv=NaN;A.mH=null;A.ql.stop();A.wT&&L&&A.wT.wW();A.Nl=null;A.wT=null}; eBw=function(A){var L=L===void 0?-1:L;var B=B===void 0?Infinity:B;PZk(A,L,B);for(var f=g.m(A.W.values()),K=f.next();!K.done;K=f.next())K=K.value,K.start>=L&&K.end<=B&&(A.playback.removeCueRange(K),A.W.delete(K.getId()),A.Xr({rmAdCR:1}));f=a7(A,L/1E3);L=f.dk;f=f.Eu;L&&(f=f*1E3-L.UE,xc8(A,L,f,L.UE+f),f=A.W.get(L.cpn))&&(f.start=L.UE,f.end=L.UE+L.durationMs);if(L=a7(A,B/1E3).dk){var V;f="playback_timelinePlaybackId_"+L.XA+"_video_id_"+((V=L.videoData)==null?void 0:V.videoId)+"_durationMs_"+L.durationMs+ "_enterTimeMs_"+L.UE+"_parentReturnTimeMs_"+L.NQ;A.M4("Invalid_clearEndTimeMs_"+B+"_that_falls_during_"+f+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; np7=function(A){A.Wn.clearAll();A.W.clear();A.N.clear();A.pO.clear();A.Cr=[];A.D=null;A.m1.clear();A.Ys.clear();A.G=[];A.S4=[];A.nD=[];A.k6=[];A.TZ.clear();A.LD.clear();A.GZ.clear();A.Ox.clear();A.X=!1;A.wM=0;A.yj=!1;A.Ex=!1;A.Go=0;A.N8=0;A.Pz=!1;A.fX=!1;A.V="";qye(A.app.mD());vd(A.app.mD(),A.playback,!1);A.Vj.clear();A.T.isActive()&&uE(A)}; xc8=function(A,L,B,f){L.durationMs=B;L.NQ=f;(f=A.Vj.get(L.cpn))?f.Vr(B/1E3):A.Xr({nop_d:L.cpn})}; PZk=function(A,L,B){tDQ(A.N,function(f){return f.UE>=L&&f.NQ<=B})}; a0D=function(A,L,B,f,K,V){if(!A.fX)if(g.zBw(A,B))A.Xr({gdu:"undec",seg:B,itag:K});else if(L=ujL(A,L,B,f,V),!(A.playback.getVideoData().aA()&&(L==null?0:L.jN)))return L}; ujL=function(A,L,B,f,K){var V=A.pO.get(B);if(!V){if(V=J4(A,L))return V;L=A.zX(B-1,f!=null?f:2);if(K)return A.Xr({misscue:K,sq:B,type:f,prevsstate:L==null?void 0:L.Lx,prevrecord:A.pO.has(B-1)}),A.pO.get(B-1);if((L==null?void 0:L.Lx)===2)return A.Xr({adnf:1,sq:B,type:f,prevrecord:A.pO.has(B-1)}),A.pO.get(B-1)}return V}; J4=function(A,L){L+=A.Dk();var B;if(A.playback.getVideoData().aA()){a:{var f=L*1E3;A=g.m(A.N.W);for(B=A.next();!B.done;B=A.next()){B=B.value;var K=B.n5?B.n5*1E3:B.UE;if(f>=B.UE-1E3&&f<=K+B.durationMs+1E3){f=B;break a}}f=void 0}B={dk:f,Eu:L}}else B=a7(A,L),((f=B)==null?0:f.dk)||(B=a7(A,L,1));var V;return(V=B)==null?void 0:V.dk}; g.so8=function(A,L,B,f,K,V,J){var R=K===3,Z=a0D(A,L,B,K,f,J);if(!Z){LZ(A,B,R);var N=g.zBw(A,B)?"undec":"ncp";A.Xr({gvprp:N,mt:L,seg:B,tt:K,itag:f,ce:J});return null}R||A.pO.set(B,Z);J=Z.L9;var F;K=((F=A.zX(B-1,K,V))==null?void 0:F.c$)||"";K===""&&A.Xr({eds:1});F=Aow(A,Z.ssdaiAdsConfig);V=A.playback.getVideoData();var D;R=((D=V.W)==null?void 0:D.containerType)||0;D=V.rg[R];Z=Z.Xe&&B>=Z.Xe?Z.Xe:void 0;D={Ka:J?LJQ(A,J):[],adsConfig:F,c$:K,Eo:Z,LA:na(D.split(";")[0]),du:D.split(";")[1]||""};Z={xX:D}; A.sx&&(L={gvprpro:"v",sq:B,mt:L.toFixed(3),itag:f,acpns:((N=D.Ka)==null?void 0:N.join("_"))||"none",abid:J},A.Xr(L));return Z}; Aow=function(A,L){L=L===void 0?"":L;var B=$i(L)||void 0;if(!L||!B){var f;A.Xr({adcfg:(f=L)==null?void 0:f.length,dcfg:B==null?void 0:B.length})}return B}; oV7=function(A){for(var L=g.m(A.W.values()),B=L.next();!B.done;B=L.next())A.playback.removeCueRange(B.value);A.W.clear();A.Wn.clearAll()}; fVQ=function(A,L,B,f,K,V,J){if(L&&B){A.xJ=B.cpn;A.D9(B.cpn,B.startTimeSecs||K);cCv(A,B);var R=EpQ(A,"a2a",B);A.Xr(R);A.Go++;R=B4E(A);A.playback.Rh(L,B,f||0,K||0,!!V,!!J,void 0,R)}else A.Xr({misspbkonadtrans:1,enter:(B==null?void 0:B.cpn)||"",exit:(L==null?void 0:L.cpn)||"",seek:V,skip:J})}; LZ=function(A,L,B){if(B===void 0||!B){B=g.m(A.Cr);for(var f=B.next();!f.done;f=B.next()){f=f.value;if(L>=f.start&&L<=f.end)return;if(L===f.end+1){f.end+=1;return}}A.Cr.push(new rCv(L))}}; g.zBw=function(A,L){A=g.m(A.Cr);for(var B=A.next();!B.done;B=A.next())if(B=B.value,L>=B.start&&L<=B.end)return!0;return!1}; KJL=function(A,L,B){var f;if(f=A.playback.getVideoData().aA())f=(f=A.N.Yy({cpn:L}))&&f.L9?(A=A.N.N.get(f==null?void 0:f.L9))&&A.slice(-1)[0].cpn===L:!1;return f&&B===2?1E3:0}; iFE=function(A,L,B,f,K){var V;L={reason:"overlapping_playbacks",iCT:L,UE:B,NQ:f,Ztn:K.XA,DTs:((V=K.videoData)==null?void 0:V.videoId)||"",FL4:K.durationMs,UTx:K.UE,wZr:K.NQ};zG(A,L)}; zG=function(A,L,B){A.playback.Iw(L,B)}; LJQ=function(A,L){var B=[];A=A.N.N.get(L);if(!A)return[];A=g.m(A);for(L=A.next();!L.done;L=A.next())L=L.value,L.cpn&&B.push(L.cpn);return B}; V4C=function(A,L,B){var f=0;A=A.N.N.get(B);if(!A)return-1;A=g.m(A);for(B=A.next();!B.done;B=A.next()){if(B.value.cpn===L)return f;f++}return-1}; JoS=function(A,L){var B=0;A=A.N.N.get(L);if(!A)return 0;A=g.m(A);for(L=A.next();!L.done;L=A.next())L=L.value,L.durationMs!==0&&L.NQ!==L.UE&&B++;return B}; SK0=function(A,L,B){var f=!1;if(B=A.N.N.get(B)){B=g.m(B);for(var K=B.next();!K.done;K=B.next())K=K.value,K.durationMs!==0&&K.NQ!==K.UE&&(K=K.cpn,L===K&&(f=!0),f&&!A.LD.has(K)&&(A.Xr({decoratedAd:K}),A.LD.add(K)))}}; mcy=function(A){A.sx&&A.Xr({adf:"0_"+((new Date).getTime()/1E3-A.N8)+"_isTimeout_"+A.X})}; CZk=function(A,L,B){if(A.G.length)for(var f=g.m(A.G),K=f.next(),V={};!K.done;V={LJ:void 0},K=f.next()){V.LJ=K.value;K=V.LJ.startSecs*1E3;var J=V.LJ.Dj*1E3+K;if(L>K&&LK&&B0&&(A.Go=0,A.xJ="",A.L.J("html5_huli_ssdai_use_playback_state")&&A.D9(A.playback.t_(),0),A.api.publish("serverstitchedvideochange"));A.playback.G9(f,K);return!0}; uE=function(A){A.X=!1;A.T.isActive()&&mcy(A);A.T.stop();A.w6(!1)}; Rek=function(A,L){var B="";L?L.event==="unknown"?B="unknown":A.Ys.has(L.identifier)?A.U&&A.U.pW===L.identifier?A.U.pW===L.identifier?B=K9(A.S4,function(f){return f.identifier===L.identifier})?"shortad":"pending":K9(A.S4,function(f){return f.identifier===L.identifier})||(B="noAdsAdded"):B="wrongAdBreakInfo":B="unscheduled":B="noCuepoint"; return B}; Bu=function(A,L){A.V||A.yj||oH(A,A.xJ);var B=L.bx,f=L.lx;if(f.cpn===A.xJ)A.Xr({igtranssame:1,enter:f.cpn,exit:B.cpn});else{var K=A.yj,V=!!A.V;A.V="";var J=L.kT,R=B.playerType===2?B.UE/1E3+B.videoData.jI:A.GK().videoData.jI;A.api.J("html5_ssdai_enable_media_end_cue_range")&&(V||K||B.playerType!==2?(K||V)&&A.Xr({mecr:0,seek:K,skip:V}):A.api.GJ(B.cpn));if(B.playerType===2&&f.playerType===2)V?A.Xr({igtransskip:1,enter:f.cpn,exit:B.cpn,seek:K,skip:A.V}):fVQ(A,B,f,R,J,K,V);else{A.xJ=f.cpn;A.D9(f.cpn,f.startTimeSecs|| J);L=L.hyF;if(B.playerType===1&&f.playerType===2){A.wM=0;cCv(A,f);var Z=EpQ(A,"c2a",f);A.Xr(Z);A.Go++}else if(B.playerType===2&&f.playerType===1){A.api.publish("serverstitchedvideochange");Z=EpQ(A,"a2c");A.Xr(Z);A.Go=0;A.wM=R;Z=B.cpn;var N=A.wM;if(Z!==A.playback.t_()){var F=A.Vj.get(Z);F?F.N=N:A.Xr({nop_e:Z})}A.L2(B.L9)}Z=B4E(A);A.playback.Rh(B,f,R,J,K,V,L,Z)}Z_0(A)}}; N4k=function(A,L,B,f){A.L.J("html5_ssdai_log_ssevt_in_loader_timers")&&(f=A.yj?0:Math.round((f-B)*1E3),A.playback.Hn("ssevt",{tag:"sstme",ad:L!==A.playback.t_(),cpn:L,st:(B-A.playback.Dk()).toFixed(3),late:f}))}; FJD=function(A,L,B){A.playback.A1();A.playback.seekTo(L,B);A.playback.playVideo()}; D7C=function(A,L,B,f){L={bx:L,lx:B,kT:A.playback.getCurrentTime(),hyF:f};Bu(A,L)}; oH=function(A,L){var B=L||A.xJ,f=A.N.Yy({cpn:B});if(f){L=f.videoData;var K,V;B=f.n5||((V=(K=A.W.get(B))==null?void 0:K.start)!=null?V:0)/1E3;A=A.playback.getCurrentTime()-B;L.jI=A>0?A:0}else A.GK().videoData.jI=A.playback.getCurrentTime()}; Z_0=function(A){A.Ox.add(A.V);A.V="";A.yj=!1}; B4E=function(A){if(A.t$||A.KY){var L=Array.from(A.app.mD().X.values()),B=[],f=[],K=[],V=[],J=[];L=g.m(L);for(var R=L.next();!R.done;R=L.next())if(R=A.N.Yy({cpn:R.value.t_()}))R.serializedPlaybackPingContextLoggingData&&B.push(R.serializedPlaybackPingContextLoggingData),K.push(R.cpn),V.push(R.videoData.videoId||""),J.push(R.videoData.adFormat||R.videoData.ql),R.serializedQoeContextData&&f.push(R.serializedQoeContextData);R=L=void 0;A.t$&&(R={serializedPlaybackPingContextLoggingData:B});A.KY&&(L={Ka:K, yn:V,adFormats:J,serializedQoeContextData:f});return{Hj:R,Oz:L}}}; IVD=function(A,L,B,f){g.Y.call(this);var K=this;this.api=A;this.L=L;this.N=B;this.app=f;this.D=new Map;this.W=[];this.V=this.X=null;this.Wn=NaN;this.T=this.U=this.yj=null;this.G=new g.aa(function(){d7L(K,K.Wn,K.yj||void 0)}); this.qp=[];this.Vj=new g.aa(function(){var V=K.qp.pop();if(V){var J=V.XA,R=V.playerVars;V=V.playerType;R&&(R.prefer_gapless=!0,K.api.preloadVideoByPlayerVars(R,V,NaN,"",J),K.qp.length&&g.Az(K.Vj,4500))}}); this.events=new g.dN(this);this.GV={uVT:function(){return K.W}}; this.N.getPlayerType();g.W(this,this.G);g.W(this,this.Vj);g.W(this,this.events);this.events.Y(this.api,g.qR("childplayback"),this.onCueRangeEnter);this.events.Y(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Y(this.api,"presentingplayerstatechange",this.qP)}; jeL=function(A,L,B,f,K,V){var J=L.cpn,R=L.docid||L.video_id||L.videoId||L.id,Z=A.N;V=V===void 0?K+f:V;if(K>V)return fZ(A,"enterAfterReturn enterTimeMs="+K+" is greater than parentReturnTimeMs="+V.toFixed(3),J,R),"";var N=Z.vy()*1E3;if(KN)return Z="returnAfterDuration parentReturnTimeMs="+V.toFixed(3)+" is greater than parentDurationMs="+N+". And timestampOffset in seconds is "+ Z.pY(),fZ(A,Z,J,R),"";N=null;for(var F=g.m(A.W),D=F.next();!D.done;D=F.next()){D=D.value;if(K>=D.UE&&KD.UE)return fZ(A,"overlappingReturn",J,R),"";if(V===D.UE)return fZ(A,"outOfOrder",J,R),"";K===D.NQ&&(N=D)}J="cs_childplayback_"+wAC++;R={rh:KZ(f,!0),rk:Infinity,target:null};var I={XA:J,playerVars:L,playerType:B,durationMs:f,UE:K,NQ:V,BZ:R};A.W=A.W.concat(I).sort(function(r,h){return r.UE-h.UE}); N?pAw(A,N,{rh:KZ(N.durationMs,!0),rk:N.BZ.rk,target:I}):(L={rh:KZ(K,!1),rk:K,target:I},A.D.set(L.rh,L),Z.addCueRange(L.rh));L=!0;if(A.N===A.app.e4()&&(Z=Z.getCurrentTime()*1E3,Z>=I.UE&&ZL)break;if(V>L)return{dk:f,Eu:L-K};B=V-f.NQ/1E3}return{dk:null,Eu:L-B}}; d7L=function(A,L,B){B=B===void 0?{}:B;var f=A.T||A.app.e4().getPlayerState();Sh(A,!0);L=isFinite(L)?L:A.N.gQ();var K=seS(A,L);L=K.Eu;var V=(K=K.dk)&&!V$(A,K)||!K&&A.N!==A.app.e4(),J=L*1E3;J=A.V&&A.V.start<=J&&J<=A.V.end;!V&&J||JZ(A);K?yow(A,K,L,B,f):H_E(A,L,B,f,"_execute")}; H_E=function(A,L,B,f,K){var V=A.N;V!==A.app.e4()&&A.app.hh();A.L.J("html5_sabr_csdai_seek_log")||(K="");var J;V.seekTo(L,Object.assign({},{zZ:"application_timelinemanager"+((J=K)!=null?J:"")},B));he0(A,f)}; yow=function(A,L,B,f,K){var V=V$(A,L);if(!V){L.playerVars.prefer_gapless=!0;var J=new g.Kr(A.L,L.playerVars);J.XA=L.XA;A.api.Ku(J,L.playerType)}J=A.app.e4();V||J.addCueRange(L.BZ.rh);J.seekTo(B,Object.assign({},{zZ:"application_timelinemanager"},f));he0(A,K)}; he0=function(A,L){A=A.app.e4();var B=A.getPlayerState();L.isOrWillBePlaying()&&!B.isOrWillBePlaying()?A.playVideo():L.isPaused()&&!B.isPaused()&&A.pauseVideo()}; Sh=function(A,L){A.Wn=NaN;A.yj=null;A.G.stop();A.U&&L&&A.U.wW();A.T=null;A.U=null}; V$=function(A,L){A=A.app.e4();return!!A&&A.getVideoData().XA===L.XA}; b_0=function(A){var L=A.W.find(function(K){return V$(A,K)}); if(L){var B=A.app.e4();JZ(A);var f=new g.Gu(8);L=roy(A,L)/1E3;H_E(A,L,{},f,"_force");B.Hn("forceParentTransition",{childPlayback:1});A.N.Hn("forceParentTransition",{parentPlayback:1})}}; ksC=function(A,L,B){L=L===void 0?-1:L;B=B===void 0?Infinity:B;for(var f=L,K=B,V=g.m(A.D),J=V.next();!J.done;J=V.next()){var R=g.m(J.value);J=R.next().value;R=R.next().value;R.rk>=f&&R.target&&R.target.NQ<=K&&(A.N.removeCueRange(J),A.D.delete(J))}f=L;K=B;V=[];J=g.m(A.W);for(R=J.next();!R.done;R=J.next())if(R=R.value,R.UE>=f&&R.NQ<=K){var Z=A;Z.X===R&&JZ(Z);V$(Z,R)&&Z.app.hh()}else V.push(R);A.W=V;f=seS(A,L/1E3);L=f.dk;f=f.Eu;L&&(f*=1E3,t4Q(A,L,f,L.NQ===L.UE+L.durationMs?L.UE+f:L.NQ));(L=seS(A,B/1E3).dk)&& fZ(A,"Invalid clearEndTimeMs="+B+" that falls during playback={timelinePlaybackId="+(L.XA+" video_id="+L.playerVars.video_id+" durationMs="+L.durationMs+" enterTimeMs="+L.UE+" parentReturnTimeMs="+L.NQ+"}.Child playbacks can only have duration updated not their start."))}; t4Q=function(A,L,B,f){L.durationMs=B;L.NQ=f;f={rh:KZ(B,!0),rk:B,target:null};pAw(A,L,f);V$(A,L)&&A.app.e4().getCurrentTime()*1E3>B&&(L=roy(A,L)/1E3,B=A.app.e4().getPlayerState(),H_E(A,L,{},B,"_update"))}; fZ=function(A,L,B,f){A.N.Hn("timelineerror",{e:L,cpn:B?B:void 0,videoId:f?f:void 0})}; lVD=function(A){A&&A!=="web"&&T47.includes(A)}; RH=function(A){A=A===void 0?!1:A;g.Y.call(this);this.N=WRL(5,null,A);g.W(this,this.N);this.W=WRL(15,null,A);g.W(this,this.W)}; vqw=function(A,L){return L?!!A.N.get(L):!1}; m70=function(A,L){A.dataset.version=L}; i_8=function(A){g.q.call(this,{Z:"div",Rr:["html5-video-player"],C:{tabindex:A.K().disableOrganicUi?"":"-1",id:A.webPlayerContextConfig.rootElementId},B:[{Z:"div",j:g.m6.VIDEO_CONTAINER,C:{"data-layer":"0"}}]});var L=this;this.app=A;this.Q8=this.m4(g.m6.VIDEO_CONTAINER);this.PE=new g.oR(0,0,0,0);this.yK=null;this.OY=new g.oR(0,0,0,0);this.qk=this.fR=this.hc=NaN;this.Wp=this.v5=this.If=this.s2=!1;this.YL=NaN;this.He=!1;this.tK=null;this.Vn=new g.aa(function(){L.app.K().J("web_enable_smart_zoom")&& L.app.rT.getInternalApi().isAutocropEnabled()||L.resize()},100); this.k_=function(){L.element.focus({preventScroll:!0})}; this.SF=function(){L.app.rT.publish("playerUnderlayVisibilityChange","visible");L.yK.classList.remove(g.m6.VIDEO_CONTAINER_TRANSITIONING);L.yK.removeEventListener(QC,L.SF);L.yK.removeEventListener("transitioncancel",L.SF)}; this.fN=this.T1=!1;var B=this.element.addEventListener,f=this.element.removeEventListener;this.addEventListener=function(V,J,R){B.apply(L.element,[V,J,R])}; this.removeEventListener=function(V,J,R){f.apply(L.element,[V,J,R])}; var K=A.K();K.transparentBackground&&this.zf("ytp-transparent");K.controlsType==="0"&&this.zf("ytp-hide-controls");g.R1(this.element,"ytp-exp-bottom-control-flexbox");g.R1(this.element,"ytp-modern-caption");K.J("enable_new_paid_product_placement")&&!g.Ng(K)&&g.R1(this.element,"ytp-exp-ppp-update");g.R1(this.element,"ytp-livebadge-color");m70(this.element,QeC(A));this.AJ=!1;this.vN=new g.Sr(NaN,NaN);C2S(this);this.Y(A.rT,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.W(this,this.Vn)}; C2S=function(A){function L(J){A.yK&&Z$(A);Nz(A)!==A.He&&A.resize();A.app.K().J("web_enable_smart_zoom")&&A.QT&&(J.state.isPaused()?A.QT.pause():g.wk(J,8)&&A.QT.playState==="paused"&&A.QT.play())} function B(J,R){A.cF(J,R)} function f(J){J.getVideoData()&&A.updateVideoData(J.getVideoData())} function K(){A.OY=new g.oR(0,0,0,0);A.PE=new g.oR(0,0,0,0)} var V=A.app.rT;V.addEventListener("initializingmode",K);V.addEventListener("videoplayerreset",f);V.addEventListener("videodatachange",B);V.addEventListener("presentingplayerstatechange",L);A.addOnDisposeCallback(function(){V.removeEventListener("initializingmode",K);V.removeEventListener("videoplayerreset",f);V.removeEventListener("videodatachange",B);V.removeEventListener("presentingplayerstatechange",L)})}; XAQ=function(A){var L=A.app.e4();if(L=L?L.getVideoData():null){if(g.WK(L)||g.vK(L)||g.qG(L))return 16/9;if(wp(L)&&L.V.N)return A=L.V.videoInfos[0].video,$7C(A.width,A.height)}return(A=A.yK)?$7C(A.videoWidth,A.videoHeight):16/9}; O_y=function(A,L,B,f){var K=B,V=$7C(L.width,L.height);A.s2?K=BV?{width:L.width,height:L.width/K,aspectRatio:K}:KK?A.width=A.height*B:BZ;if(Nz(A)){var N=XAQ(A);var F=isNaN(N)||g.ns||Hj&&g.yw||Z;ed&&!g.oC(601)?N=K.aspectRatio:F=F||V.controlsType==="3";F?Z?(F=V.J("place_shrunken_video_on_left_of_player")?16:A.getPlayerSize().width-L.width-16,N=Math.max((A.getPlayerSize().height-L.height)/2,0),F=new g.oR(F,N,L.width, L.height),A.yK.style.setProperty("border-radius","12px")):F=new g.oR(0,0,L.width,L.height):(B=K.aspectRatio/N,F=new g.oR((L.width-K.width/B)/2,(L.height-K.height)/2,K.width/B,K.height),B===1&&g.yw&&(N=F.width-L.height*N,N>0&&(F.width+=N,F.height+=N)));g.D1(A.element,"ytp-fit-cover-video",Math.max(F.width-K.width,F.height-K.height)<1);if(R||A.AJ)A.yK.style.display="";A.He=!0}else{F=-L.height;ed?F*=window.devicePixelRatio:g.F1&&(F-=window.screen.height);F=new g.oR(0,F,L.width,L.height);if(R||A.AJ)A.yK.style.display= "none";A.He=!1}BX(A.OY,F)||(A.OY=F,g.xi(V)?(A.yK.style.setProperty("width",F.width+"px","important"),A.yK.style.setProperty("height",F.height+"px","important")):g.wK(A.yK,F.getSize()),f=new g.Vl(F.left,F.top),g.F6(A.yK,Math.round(f.x),Math.round(f.y)),f=!0);L=new g.oR((L.width-K.width)/2,(L.height-K.height)/2,K.width,K.height);BX(A.PE,L)||(A.PE=L,f=!0);g.Kv(A.yK,"transform",B===1?"":"scaleX("+B+")");J&&Z!==A.v5&&(Z&&(A.yK.addEventListener(QC,A.SF),A.yK.addEventListener("transitioncancel",A.SF),A.yK.classList.add(g.m6.VIDEO_CONTAINER_TRANSITIONING)), A.v5=Z,A.app.rT.publish("playerUnderlayVisibilityChange",A.v5?"transitioning":"hidden"));return f}; M4v=function(A){A.T1=!A.T1;A.fN=!0;A.element.classList.toggle("ytp-retro-player",A.T1);A.resize();A.fN=!1;A.app.rT.Kr("onRetroModeChanged",A.T1)}; YKe=function(){this.csn=g.sF();this.clientPlaybackNonce=null;this.elements=new Set;this.V=new Set;this.N=new Set;this.W=new Set}; U7v=function(A){if(A.csn!==g.sF())if(A.csn==="UNDEFINED_CSN")A.csn=g.sF();else{var L=g.sF(),B=g.r8();if(L&&B){A.csn=L;for(var f=g.m(A.elements),K=f.next();!K.done;K=f.next())(K=K.value.visualElement)&&K.isClientVe()&&L&&B&&(g.h_("combine_ve_grafts")?I4(DD(),K,B):g.fg(g.Pb)(void 0,L,B,K))}if(L)for(A=g.m(A.N),B=A.next();!B.done;B=A.next())(B=B.value.visualElement)&&B.isClientVe()&&g.L1(L,B)}}; FM=function(A,L){g.Y.call(this);this.D=A;this.Hn=L;this.U=0;this.V=!1}; WJv=function(A){var L,B,f,K;return g.c(function(V){if(V.N==1){if(A.sN)return V.return();A.sN=new Worker(gt(A.D),void 0);g.S5(V,2);B=Promise.withResolvers();L=setTimeout(function(){B.reject("timeout")},1E3); A.sN.onerror=function(){B.reject("error")}; A.sN.onmessage=function(){B.resolve();clearTimeout(L)}; return g.X(V,B.promise,4)}if(V.N!=2)return A.sN.onmessage=null,A.sN.onerror=null,A.sN.addEventListener("message",function(J){return void A.onMessage(J)}),A.Hn("workerCtor",{}),g.ZR(V,0); f=g.NX(V);clearTimeout(L);(K=A.sN)==null||K.terminate();A.sN.onmessage=null;A.sN.onerror=null;A.sN=void 0;A.Hn("workerErr",{e:""+f});g.VK(V)})}; vV7=function(A,L,B){g.c(function(f){if(f.N==1){if(A.W!==void 0||A.V)return f.return();A.V=!0;return g.X(f,WJv(A),2)}A.V=!1;if(!A.sN)return f.return();A.W=setInterval(function(){A.sendMessage(B)},L); g.VK(f)})}; g.D$=function(A,L,B,f){g.Y.call(this);var K=this;this.logger=new g.sI("App");this.rA=this.iY=!1;this.L7={};this.mY=[];this.lw=!1;this.xp=null;this.intentionalPlayback=!1;this.zk=!0;this.UR=!1;this.d7=this.A3=this.ZU=null;this.Pt=!0;this.mediaElement=this.Jw=null;this.ej=NaN;this.oF=!1;this.Af=this.Pd=this.QG=this.screenLayer=this.playlist=null;this.P3=[];this.YI=0;this.GV={mD:function(){return K.e$}, e2:function(){return K.QG}}; if(!B)throw Error("b/179532961");this.ly=(L==null?void 0:L.args)||{};this.webPlayerContextConfig=B;L=this.ly;this.L=new Lo(L,B,B.canaryState,f);g.W(this,this.L);opE(this.L);f=Fg8(this.L);this.L.hw()&&A2(f,function(J){K.JM("h5vcc",J)}); this.L.experiments.GL("jspb_serialize_with_worker")&&yl1();this.L.experiments.GL("gzip_gel_with_worker")&&Sne();this.L.W&&(f=this.L.experiments.Qf().N.Iv(QA),jz6(f));this.J("html5_onesie")&&(this.DA=new Mq(this.L),g.W(this,this.DA));this.Ml=new dcw(yCk(g.wY(this.L),this.L.dg,this.L.experiments),new wZ0(this.L.experiments),function(){return void K.H4()}); g.W(this,this.Ml);this.sP=Sw(UR(this.L)&&!0,L.enablesizebutton);this.Nw=Sw(!1,L.player_wide);this.visibility=new MyL;g.W(this,this.visibility);this.J("web_log_theater_mode_visibility")&&this.X9(Sw(!1,L.player_wide));this.iY=Sw(!1,L.external_list);this.events=new g.dN(this);g.W(this,this.events);this.J("start_client_gcf")&&(b_(l_(),{iG:Zu,qK:mT0()}),this.e1=l_().resolve(Zu),ieC(this.e1));this.nyx=new gh;g.W(this,this.nyx);this.yb=new YKe;L=new Gg;this.rT=new g.$n(this,L);g.W(this,this.rT);this.template= new i_8(this);g.W(this,this.template);this.appState=1;this.CV=qKD(this);g.W(this,L);L={};this.KI=(L.internalvideodatachange=this.Be,L.playbackready=this.LHT,L.playbackstarted=this.dln,L.statechange=this.NfF,L);this.o1=new V2(this.rT);this.eD=P2w(this);L=this.L.T;!1!==L&&this.JM("badps",{hbp:L,hostname:window.location.hostname,ps:this.L.playerStyle});this.Rv=new QmQ(this.L,this.eD);this.rT.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||jf(this.eD))&&x7w(this);L=10;g.wY(this.L)&& (L=3);Ro(this.L)&&(L=g.Am(this.L.experiments,"tvhtml5_unplugged_preload_cache_size"));this.e$=new g.UY(this.rT,L);L=ee0(this);this.e$.ij(L);nVy(this);L={};this.eQ=(L.airplayactivechange=this.mQ4,L.airplayavailabilitychange=this.beT,L.beginseeking=this.UQp,L.sabrCaptionsDataLoaded=this.rf1,L.endseeking=this.Zex,L.internalAbandon=this.MDj,L.internalaudioformatchange=this.tDF,L.internalvideodatachange=this.fjD,L.internalvideoformatchange=this.s8T,L.liveviewshift=this.RV4,L.playbackstalledatstart=this.hVr, L.progresssync=this.Y94,L.onAbnormalityDetected=this.VDF,L.onSnackbarMessage=this.Af4,L.onLoadProgress=this.S9L,L.SEEK_COMPLETE=this.nb1,L.SEEK_TO=this.zVp,L.onVideoProgress=this.xQx,L.onLoadedMetadata=this.JfL,L.onAutoplayBlocked=this.F1x,L.onPlaybackPauseAtStart=this.j8s,L.playbackready=this.XoL,L.statechange=this.HW,L.newelementrequired=this.WW,L.heartbeatparams=this.DQF,L.videoelementevent=this.CrL,L.drmoutputrestricted=this.woT,L.signatureexpired=this.Ebs,L.nonfatalerror=this.TXF,L.reloadplayer= this.gb4,L);this.Bq=new g.dN(this);g.W(this,this.Bq);this.Pq=new RH(this.L.Qf().N.Iv(vuQ));g.W(this,this.Pq);this.Hr=this.FZ=-1;this.wS=new g.aa(this.template.resize,16,this.template);g.W(this,this.wS);this.TV=new IVD(this.rT,this.L,this.kP(),this);this.MP=new Cb(this);g.W(this,this.MP);this.T0=new ko(this);g.W(this,this.T0);lVD(this.L.N.c);this.events.Y(this.rT,g.qR("appapi"),this.cwn);this.events.Y(this.rT,g.PR("appapi"),this.BiT);this.events.Y(this.rT,g.qR("appprogressboundary"),this.ob1);this.events.Y(this.rT, g.PR("applooprange"),this.JW);this.events.Y(this.rT,"presentingplayerstatechange",this.qP);this.events.Y(this.rT,"resize",this.l1s);this.template.DM(yl(document,A));this.events.Y(this.rT,"offlineslatestatechange",this.yfr);this.events.Y(this.rT,"sabrCaptionsTrackChanged",this.MEx);this.events.Y(this.rT,"sabrCaptionsBufferedRangesUpdated",this.DUF);this.eD.S.K().Gt&&gu(this.eD,"offline");this.L.sx&&g.Np("ux",g.hS);A=g.Am(this.L.experiments,"html5_defer_fetch_att_ms");this.b3=new g.aa(this.C2M,A,this); g.W(this,this.b3);this.df().gX()&&(g.ME()&&this.df().p9.push("mdx"),zeL(this));this.Rv.tick("fs");uUC(this);this.L.sx&&gu(this.eD,"ux",!0);g.MM(this.eD.S.K())&&gu(this.eD,"embed");this.J("web_player_sentinel_is_uniplayer")||g.CE(new g.iL("Player experiment flags missing","web_player_sentinel_is_uniplayer"));A=this.J("web_player_sentinel_yt_experiments_sync");L=g.h_("web_player_sentinel_yt_experiments_sync");A!==L&&g.CE(new g.iL("b/195699950",{yt:A,player:L}));this.CA=aVQ(this);if(A=g.Am(this.L.experiments, "html5_block_pip_safari_delay"))this.w8=new g.aa(this.E2,A,this),g.W(this,this.w8);var V;B=mc((V=B==null?void 0:B.trustedEchoWorkerUrl)!=null?V:null);V=this.L.Qf().N.Iv(AML);A=this.L.Qf().N.Iv(Ly1);B&&V>0&&A>0&&(this.JP=new FM(B,function(J,R){K.kP().Hn(J,R)}),g.W(this,this.JP),vV7(this.JP,V,A)); EQ=this.L.KY;this.rT.publish("applicationInitialized")}; aVQ=function(A){function L(B){B.stack&&B.stack.indexOf("player")!==-1&&A.e4().IS(B)} $f.subscribe("handleError",L);oM.push(L);return function(){$f.unsubscribe("handleError",L);var B=oM.indexOf(L);B!==-1&&oM.splice(B,1)}}; ee0=function(A){var L=new g.Kr(A.L,A.ly);A.rT.publish("initialvideodatacreated",L);return dc(A,1,L,!1)}; nVy=function(A){var L=A.kP();L.setPlaybackRate(A.L.U?1:oBy(A,Number(g.ES("yt-player-playback-rate"))||1));L.tA(A.KI,A);L.i_()}; P2w=function(A){var L="",B="",f=QeC(A),K=Ew(f,"cb");K&&/^[\w-]+$/.test(K)&&(B=K);f.indexOf("//")===0&&(f=A.L.protocol+":"+f);K=f.lastIndexOf("/base.js");K!==-1&&(L=f.substring(0,K+1));if(f=Error().stack)if(f=f.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))f=f[1],f.includes(L)||g.CE(Error("Player module URL mismatch: "+(f+" vs "+L+".")));L=new n87(A.rT,L,B);B={};z1w(L,(B.destroyed=function(){A.onApiChange()},B)); return L}; qKD=function(A){if(A.L.storeUserVolume){A=g.ES("yt-player-volume")||{};var L=A.volume;A={volume:isNaN(L)?100:g.B4(Math.floor(L),0,100),muted:!!A.muted}}else A={volume:100,muted:A.L.mute};return A}; IH=function(A){var L=A.L.experiments.Qf().N.Iv(QA);var B=A.L.deviceIsAudioOnly;L=L===void 0?!1:L;B=B?L?new g.bE(g.TO("AUDIO")):new g.$8(g.TO("AUDIO")):tS.pop()||(L?new g.bE(g.TO("VIDEO")):new g.$8(g.TO("VIDEO")));A.mediaElement=B;g.W(A,A.mediaElement);A.e4().setMediaElement(A.mediaElement);try{A.L.N8?(A.Pd&&A.events.J$(A.Pd),A.Pd=A.events.Y(A.mediaElement,"volumechange",A.OD1)):(A.mediaElement.o6(A.CV.muted),A.mediaElement.setVolume(A.CV.volume/100))}catch(K){A.Lw("html5.missingapi",2,"UNSUPPORTED_DEVICE", "setvolume.1;emsg."+(K&&typeof K==="object"&&"message"in K&&typeof K.message==="string"&&K.message.replace(/[;:,]/g,"_")));return}g.$_(A.Bq);B78(A);B=A.template;L=A.mediaElement.Zg();B.yK=L;B.Wp=!1;B.yK.parentNode||iA(B.Q8,B.yK,0);B.OY=new g.oR(0,0,0,0);co6(B);Z$(B);L=B.yK;g.R1(L,"video-stream");g.R1(L,g.m6.MAIN_VIDEO);var f=B.app.K();f.ye&&L.setAttribute("data-no-fullscreen","true");f.J("html5_local_playsinline")?"playsInline"in So()&&(L.playsInline=!0):f.Ji&&(L.setAttribute("webkit-playsinline", ""),L.setAttribute("playsinline",""));f.IV&&B.yK&&B.Y(L,"click",L.play,L);try{A.mediaElement.activate()}catch(K){A.Lw("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(K&&typeof K==="object"&&"message"in K&&typeof K.message==="string"&&K.message.replace(/[;:,]/g,"_")))}}; Kyy=function(A){if(!fg6(A)){var L=A.kP().pD();L&&(L=L.VJ(),L instanceof Promise&&L.catch(function(){})); wc(A,Tu(A.getPlayerStateObject()))}}; B78=function(A){var L=A.mediaElement;F2()?A.Bq.Y(L,"webkitpresentationmodechanged",A.S_n):window.document.pictureInPictureEnabled&&(A.Bq.Y(L,"enterpictureinpicture",function(){A.Aa(!0)}),A.Bq.Y(L,"leavepictureinpicture",function(){A.Aa(!1)})); Ln&&(A.Bq.Y(L,"webkitbeginfullscreen",function(){A.Fc(3)}),A.Bq.Y(L,"webkitendfullscreen",function(){A.Fc(0)}))}; g.pZ=function(A,L){return A.e$.Yy(L)||A.e$.G}; g.VJC=function(A,L,B,f){var K=A.Rv;L===2&&(K=new QmQ(A.L));return new g.WY(A.L,L,K,A.template,function(V,J,R){A.rT.publish(V,J,R)},function(){return A.rT.getVisibilityState()},A.visibility,A,A.Ml,B,f)}; dc=function(A,L,B,f,K){A=g.VJC(A,L,B,K);A=new g.nm(A);f&&A.i_();return A}; y$=function(A,L){return A.yC(L)?A.kP():L}; jh=function(A,L){var B=A.e4();return L===A.kP()&&A.yC(L)&&A.yC(B)?B:L}; JM7=function(A){if(!Gj(A)){var L=HB(A.eD);L&&!L.created&&u7w(A.eD)&&L.create()}}; Sov=function(A){var L=A.getVideoData(),B=A.eD;Jq6(B)||B.Ee();!CM&&jf(B)&&dpe(B);gu(B,"embed");gu(B,"kids");gu(B,"remote");gu(B,"miniplayer");gu(B,"offline");gu(B,"unplugged");gu(B,"ypc",!1,!0);gu(B,"webgl",!1,!0);Sv6(B)||(gu(B,"captions",!0),gu(B,"endscreen"),B.AL(),gu(B,"creatorendscreen",!0));B.Wv();B.S.publish("modulesCreated");A.rT.publish("videoready",L)}; rc=function(A){A=A.df();A.gX();return aq(A)}; uUC=function(A){A.GC();var L=A.ly;IH(A);A.events.Y(window,"resize",A.kPT);var B=A.df();A.rT.X3("onVolumeChange",A.CV);if(L&&Xee(L)){var f=Ko(A.L);f&&!A.iY&&(L.fetch=0);var K=g.MM(A.L);K&&!A.iY&&(L.fetch=0);sp(A,L);g.MM(A.L)&&A.Rv.tick("ep_pr_s");if(!f||A.iY)if(K&&!A.iY)Rf0(A);else if(!B.gX())A.playlist.onReady(function(){Hu(A)})}A.Ok(A.kP(),!1,!0); g.x(A.kP().getPlayerState(),128)||(L=Bqy(!A.L.deviceIsAudioOnly),L==="fmt.noneavailable"?A.Lw("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):L==="html5.missingapi"?A.Lw(L,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):B&&B.gX()&&rc(A)&&(A.L.Of||A.L.cR)?hZ(A):B.U$?A.rT.mutedAutoplay({durationMode:B.mutedAutoplayDurationMode}):g.ES("yt-player-playback-on-reload")?(g.pE("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!A.L.ZM}),g.OS("yt-player-playback-on-reload",!1),hZ(A)): dd(A.L)||Z7E(A),g.SK(A.L)||ge(A.L)==="MWEB"?(g.AR(g.ol(),function(){bF(A)}),g.AR(g.ol(),function(){SuL()})):(bF(A),SuL()))}; bF=function(A){if(!A.J("use_rta_for_player"))if(A.J("fetch_att_independently"))g.Az(A.b3);else{var L=A.getVideoData().botguardData;L&&g.HZ(L,A.L,A.getVideoData().EZ||"")}}; Z7E=function(A){A.rT.publish("initializingmode");A.dN(2);gu(A.eD,"remote");gu(A.eD,"miniplayer")}; hZ=function(A){var L=A.kP();if(g.x(L.getPlayerState(),128))return!1;L=L.getVideoData();rc(A)&&A.L.cR&&(tS.length&&A.rA?(tZ(A,{muted:!1,volume:A.CV.volume},!1),ky(A,!1)):tS.length||A.CV.muted||(tZ(A,{muted:!0,volume:A.CV.volume},!1),ky(A,!0)));rc(A)&&g.MM(A.L)&&L.mutedAutoplay&&(tZ(A,{muted:!0,volume:A.CV.volume},!1),ky(A,!0));L.FK&&tZ(A,{muted:!0,volume:A.CV.volume},!1);N7v(A,1,L,!1);var B=A.kP();A.rT.publish("initializingmode");A.Ok(B);A.dN(3);var f;if(!(f=!A.L.iD)){if(f=A.Af){f=A.Af;var K=A.mediaElement; f=!!K&&K===f.mediaElement}f=f&&A.lw}f&&(A.UN(),IH(A),B.setMediaElement(A.mediaElement));B.Am();if(g.x(B.getPlayerState(),128))return!1;L.Bk||wc(A,3);return A.lw=!0}; Gj=function(A){A=EU(A.eD);return!!A&&A.loaded}; Fyk=function(A,L){if(!A.Jw)return!1;var B=A.Jw.startTimeMs*.001-1,f=A.Jw.endTimeMs*.001;A.Jw.type==="repeatChapter"&&f--;return Math.abs(L-B)<=1E-6||Math.abs(L-f)<=1E-6||L>=B&&L<=f}; Dk6=function(A){var L=A.e4();if(A.J("html5_disable_loop_range_for_shorts_ads")&&L.getVideoData().isAd()?0:pr(L.getVideoData())&&!L.jR())L=Tj(A)*1E3-A.getVideoData().Yn,A.J("html5_gapless_new_slr")?(A=A.T0,lF(A.app,"gaplessshortslooprange"),L=new g.WR(0,L,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(A=A.app.e4())&&A.addCueRange(L)):A.setLoopRange({startTimeMs:0,endTimeMs:L,type:"shortsLoop"})}; dkw=function(A){var L=A.kP();if(!(g.x(L.getPlayerState(),64)&&A.df().isLivePlayback&&A.Jw.startTimeMs<5E3)){if(A.Jw.type==="repeatChapter"){var B,f=(B=K6k(A.SI()))==null?void 0:B.YR(),K;B=(K=A.getVideoData())==null?void 0:K.k6;f instanceof g.YS&&B&&(K=B[BJ(B,A.Jw.startTimeMs)],f.renderChapterSeekingAnimation(0,K.title));isNaN(Number(A.Jw.loopCount))?A.Jw.loopCount=0:A.Jw.loopCount++;A.Jw.loopCount===1&&A.rT.Kr("innertubeCommand",A.getVideoData().Jc)}f={zZ:"application_loopRangeStart"};if(A.Jw.type=== "clips"||A.Jw.type==="shortsLoop")f.seekSource=58;L.seekTo(A.Jw.startTimeMs*.001,f)}}; oBy=function(A,L){var B=A.rT.getAvailablePlaybackRates();L=Number(L.toFixed(2));A=B[0];B=B[B.length-1];L<=A?L=A:L>=B?L=B:(A=Math.floor(L*100+.001)%5,L=A===0?L:Math.floor((L-A*.01)*100+.001)/100);return L}; Tj=function(A,L){L=g.pZ(A,{playerType:L});L=y$(A,L);return mh(A,L.bH(),L)}; mh=function(A,L,B){if(A.yC(B)&&(B=B.getVideoData(),!Q$(A))){A=A.TV;for(var f=g.m(A.W),K=f.next();!K.done;K=f.next())if(K=K.value,B.XA===K.XA){L+=K.UE/1E3;break}f=L;A=g.m(A.W);for(K=A.next();!K.done;K=A.next()){K=K.value;if(B.XA===K.XA)break;var V=K.UE/1E3;if(V1&&(K=!1);A.oF&&K===L||(f=f.lock(K?"portrait":"landscape"),f!=null&&f.catch(function(){}),A.oF=!0)}else A.oF&&(A.oF=!1,f.unlock())}; Op=function(A,L,B){A.rT.publish(L,B);var f=g.wY(A.L)||g.xi(A.L)||g.cH(A.L);if(B&&f){switch(L){case "cuerangemarkersupdated":var K="onCueRangeMarkersUpdated";break;case "cuerangesadded":K="onCueRangesAdded";break;case "cuerangesremoved":K="onCueRangesRemoved"}K&&A.rT.Kr(K,B.map(function(V){return{getId:function(){return this.id}, end:V.end,id:V.getId(),namespace:V.namespace==="ad"?"ad":"",start:V.start,style:V.style,visible:V.visible,markerPositionMs:V.markerPositionMs}}))}}; Ep=function(A,L,B,f,K,V){B=B===void 0?!0:B;var J=g.pZ(A,{playerType:K});if((J.getPlayerType()!==2||A.yC(J))&&!g.MG(J.getVideoData())){var R=A.e$.VN;R?R.seekTo(L,{aN:!B,OR:f,zZ:"application",seekSource:V}):(J&&J===A.kP()&&A.Jw&&!Fyk(A,L)&&A.setLoopRange(null),A.seekTo(L,B,f,K,V,"_request"))}}; kqQ=function(A,L,B,f){B&&(A.UN(),IH(A));B=A.e4();B.lj(L);var K=A.getVideoData(),V={};V.video_id=K.videoId;V.adformat=K.adFormat;K.isLivePlayback||(V.start=B.getCurrentTime(),V.resume="1");K.isLivePlayback&&ta(K)&&g.dY(A.L)&&(V.live_utc_start=B.wX(),V.resume="1");K.qp&&(V.vvt=K.qp);K.T&&(V.vss_credentials_token=K.T,V.vss_credentials_token_type=K.Zl);K.oauthToken&&(V.oauth_token=K.oauthToken);V.autoplay=1;V.reload_count=K.Cr+1;V.reload_reason=L;K.Xp&&(V.unplugged_partner_opt_out=K.Xp);K.a8&&(V.ypc_is_premiere_trailer= K.a8);K.playerParams&&(V.player_params=K.playerParams);K.Wn&&(V.itct=K.Wn);A.loadVideoByPlayerVars(V,void 0,!0,void 0,void 0,f);L==="signature"&&A.QG&&JM7(A)}; T78=function(A,L){A.df().autonavState=L;g.OS("yt-player-autonavstate",L);A.rT.publish("autonavchange",L)}; lg8=function(A){var L=A.getVideoData().s$,B=A.L.Ox,f=A.isInline()&&!A.getVideoData().jm,K=A.mediaElement;L||B||f?K.aj():(K.Bb(),tZ(A,A.CV))}; CZ=function(A){(A=HB(A.SI()))&&A.created&&A.destroy()}; Q$=function(A){return A.getVideoData().enableServerStitchedDai&&!!A.QG}; mkk=function(A,L){L.bounds=A.getBoundingClientRect();for(var B=g.m(["display","opacity","visibility","zIndex"]),f=B.next();!f.done;f=B.next())f=f.value,L[f]=RR(A,f);L.hidden=!!A.hidden}; QeC=function(A){var L=A.webPlayerContextConfig.trustedJsUrl;return L?mc(L).toString():A.webPlayerContextConfig.jsUrl}; Qnk=function(A,L){var B=A.Yy({playerType:1});if(B){if(B.getVideoData().clientPlaybackNonce===L)return B;if((A=A.MP.N)&&A.getVideoData().clientPlaybackNonce===L)return A}return null}; x7w=function(A){o4(A,function(){var L=this;return function f(){var K,V,J,R;return wI(f,function(Z){switch(Z.N){case 1:return g.RO(Z,2),L.Rv.tick("wasm_s"),K=jf(L.eD)?function(N){return A2(IK7(L.eD),function(F){return F.AFn(N)})}:void 0,g.S5(Z,4),V=iWv(L.webPlayerContextConfig.wasmModuleUrl,K,L.JM.bind(L)),J=yK,Kf(Z,BZ(V),6); case 6:R=J(Z.W);L.Rv.tick(R.N?"wasm_fa":"wasm_fw");fN7(L.L,R);g.ZR(Z,2);break;case 4:g.NX(Z),L.Rv.tick("wasm_ferr");case 2:g.F9(Z),g.DR(Z,0)}})}()})}; CU7=function(A){return A.name==="TypeError"&&A.stack.includes("/s/player/")&&qs()<=105}; i70=function(A){return A.isTimeout?"NO_BID":"ERR_BID"}; $k8=function(){var A=null;Skw().then(function(L){return A=L},function(L){return A=i70(L)}); return A}; Xxw=function(){var A=YA(1E3,"NO_BID");return g.OE(wIS([Skw(),A]).c9(i70),function(){A.cancel()})}; cu=function(A){return A.LD?g.v9().Iv(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Mz=function(A){this.player=A;this.V=this.N=1}; cMS=function(A,L,B,f,K,V){L.client||(L.client={});A.player.K().J("h5_remove_url_for_get_ad_break")||(L.client.originalUrl=B);var J=Fa(B),R=g.tW(B)?!1:!0;(J||R)&&typeof Intl!=="undefined"&&(L.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);R=g.tW(B)?!1:!0;if(J||R||f!==""){var Z={};B=J_(pg(f)).split("&");var N=new Map;B.forEach(function(F){F=F.split("=");F.length>1&&N.set(F[0].toString(),decodeURIComponent(F[1].toString()))}); N.has("bid")&&(Z.bid=N.get("bid"));Z.params=[];O7S.forEach(function(F){N.has(F)&&(F={key:F,value:N.get(F)},Z.params.push(F))}); EB0(A,Z);L.adSignalsInfo=Z}L.client.unpluggedAppInfo||(L.client.unpluggedAppInfo={});L.client.unpluggedAppInfo.enableFilterMode=!1;B=K.N.cosver;B!=null&&B!=="cosver"&&(L.client.osVersion=B);B=K.N.cplatform;B!=null&&B!=="cplatform"&&B!==""&&(L.client.platform=B);B=K.N.cmodel;B!=null&&B!=="cmodel"&&(L.client.deviceModel=B);B=K.N.cplayer;B!=null&&B!=="cplayer"&&(L.client.playerType=B);B=K.N.cbrand;B!=null&&B!=="cbrand"&&(L.client.deviceMake=B);L.user||(L.user={});L.user.lockedSafetyMode=!1;g.PL(K)&& s67(L,V,A.player.getPlayerState(1));if(A=K.livingRoomPoTokenId)L.client.tvAppInfo=Object.assign({},L.client.tvAppInfo,{livingRoomPoTokenId:A})}; Uky=function(A,L){var B=!1;if(L==="")return B;L.split(",").forEach(function(f){var K={},V={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},J="ACTIVE";f[0]==="!"&&(f=f.substring(1),J="INACTIVE");f=f.split("-");f.length<3||(f[0]in MJC&&(V.clientName=MJC[f[0]]),f[1]in Yo0&&(V.platform=Yo0[f[1]]),V.applicationState=J,V.clientVersion=f.length>2?f[2]:"",K.remoteClient=V,A.remoteContexts?A.remoteContexts.push(K):A.remoteContexts=[K],B=!0)}); return B}; vB7=function(A){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Wye))return!1;A=A.split(RegExp("[:&]"));var L=Wye.FLAG_AUTO_CAPTIONS_DEFAULT_ON,B="f"+(1+Math.floor(L/31)).toString();L=1<=2?J[1]:"";var R=PU1.test(L),Z=xkw.exec(L);Z=Z!=null&&Z.length>=2?Z[1]:"";var N=ef1.exec(L);N=N!=null&&N.length>=2&&!Number.isNaN(Number(N[1]))?Number(N[1]):1;var F=nB0.exec(L);F=F!=null&&F.length>=2?F[1]:"0";var D=u9(A.player.K().vI),I=A.player.getVideoData(1),d=g.AV(I.Wn,!0),w="BISCOTTI_ID"in B?B.BISCOTTI_ID:"";cMS(A,d,L,w.toString(),A.player.K(), I);I={splay:!1,lactMilliseconds:B.LACT.toString(),playerHeightPixels:Math.trunc(B.P_H),playerWidthPixels:Math.trunc(B.P_W),vis:Math.trunc(B.VIS),signatureTimestamp:20424,autonavState:cu(A.player.K())};f&&(f={},Uky(f,B.YT_REMOTE)&&(I.mdxContext=f));if(f=zf1.includes(D)?void 0:g.Yz("PREF")){for(var r=f.split(RegExp("[:&]")),h=0,Q=r.length;h1&&l[1].toUpperCase()==="TRUE"){d.user.lockedSafetyMode=!0;break}}I.autoCaptionsDefaultOn= vB7(f)}L=uDL.exec(L);(L=L!=null&&L.length>=2?L[1]:"")&&Z&&(d.user.credentialTransferTokens=[{token:L,scope:"VIDEO"}]);L={contentPlaybackContext:I};J={adBlock:Math.trunc(B.AD_BLOCK),params:J,breakIndex:N,breakPositionMs:F,clientPlaybackNonce:B.CPN,topLevelDomain:D,isProxyAdTagRequest:R,context:d,adSignalsInfoString:J_(pg(w.toString())),overridePlaybackContext:L};K!==void 0&&(J.cueProcessedMs=Math.round(K).toString());Z&&(J.videoId=Z);B.LIVE_TARGETING_CONTEXT&&(J.liveTargetingParams=B.LIVE_TARGETING_CONTEXT); B.AD_BREAK_LENGTH&&(J.breakLengthMs=Math.trunc(B.AD_BREAK_LENGTH*1E3).toString());V&&(J.driftFromHeadMs=V.toString());J.currentMediaTimeMs=Math.round(A.player.getCurrentTime(1)*1E3);(A=A.player.getGetAdBreakContext())&&(J.getAdBreakContext=A);return J}; AHv=function(){Mz.apply(this,arguments)}; L3L=function(A,L,B,f,K){var V=B.Kn;var J=B.rh;var R=A.player.K().BI,Z=0;B.cueProcessedMs&&J&&!V&&(B=J.end-J.start,B>0&&(Z=Math.floor(B/1E3)));var N={AD_BLOCK:K,AD_BREAK_LENGTH:V?V.Dj:Z,AUTONAV_STATE:cu(A.player.K()),CA_TYPE:"image",CPN:A.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:A.player.pX()*1E3,LACT:rT(),LIVE_INDEX:V?A.V++:1,LIVE_TARGETING_CONTEXT:V&&V.context?V.context:"",MIDROLL_POS:J?Math.round(J.start/1E3):0,MIDROLL_POS_MS:J?Math.round(J.start):0,VIS:A.player.getVisibilityState(), P_H:A.player.Pn().yN().height,P_W:A.player.Pn().yN().width,YT_REMOTE:R?R.join(","):""},F=wW(IM);Object.keys(F).forEach(function(D){F[D]!=null&&(N[D.toUpperCase()]=F[D].toString())}); f!==""&&(N.BISCOTTI_ID=f);f={};dW(L)&&(f.sts="20424",(A=A.player.K().forcedExperiments)&&(f.forced_experiments=A));return Ns(g.iN(L,N),f)}; oJE=function(A,L){var B=A.player.K(),f,K=(f=A.player.getVideoData(1))==null?void 0:f.oauthToken;return g.po(B,K).then(function(V){if(V&&Dp()){var J=xn();eg(J,V)}return g.MD(A.player.dh(J),L,"/youtubei/v1/player/ad_break").then(function(R){return R})})}; BBw=function(A){this.j4=A}; fe8=function(A){this.S=A}; K3E=function(A){this.j4=A}; JHy=function(A){g.Y.call(this);this.N=A;this.m8=VIe(this)}; VIe=function(A){var L=new NTw(A.N.QK);g.W(A,L);A=[new BBw(A.N.j4),new fe8(A.N.S),new K3E(A.N.j4),new pO(A.N.y4,A.N.Fe),new j8,new r5(A.N.kf,A.N.kX,A.N.j4),new yS,new w5(A.N.kX)];A=g.m(A);for(var B=A.next();!B.done;B=A.next())FeL(L,B.value);A=g.m(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(B=A.next();!B.done;B=A.next())g5(L,B.value,function(){}); return L}; S8C=function(A,L){this.kf=A;this.FD=L}; Yy=function(A){var L=A.hF,B=A.FD;A=A.Le;var f={cUL:new S8C(L.get(),B),FD:B};return{fY:new v_(B,A,L),context:f}}; Up=function(A,L,B,f,K){g.Y.call(this);this.W=L;this.Mp=B;this.hF=f;this.hf=K;this.listeners=[];var V=new Qz(this);g.W(this,V);V.Y(A,"internalAbandon",this.x8j);this.addOnDisposeCallback(function(){g.$_(V)})}; Wu=function(A){this.S=A;this.adVideoId=this.N=this.videoId=this.adCpn=this.contentCpn=null;this.D=!0;this.W=this.V=!1;this.adFormat=null;this.U="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; R6L=function(A){A.contentCpn=null;A.adCpn=null;A.videoId=null;A.adVideoId=null;A.adFormat=null;A.U="AD_PLACEMENT_KIND_UNKNOWN";A.actionType="unknown_type";A.V=!1;A.W=!1}; ZBe=function(A,L){A=g.m(L);for(L=A.next();!L.done;L=A.next())if((L=L.value.renderer)&&(L.instreamVideoAdRenderer||L.linearAdSequenceRenderer||L.sandwichedLinearAdRenderer||L.instreamSurveyAdRenderer)){mF("ad_i");g.Qm({isMonetized:!0});break}}; NBk=function(A){var L;(L=A.S.getVideoData(1))!=null&&L.G&&(A.W=!1,L={},A.N&&A.videoId&&(L.cttAuthInfo={token:A.N,videoId:A.videoId}),C0("video_to_ad",L))}; Pi=function(A){A.W=!1;var L={};A.N&&A.videoId&&(L.cttAuthInfo={token:A.N,videoId:A.videoId});C0("ad_to_video",L);F38(A)}; F38=function(A){if(A.V)if(A.U==="AD_PLACEMENT_KIND_START"&&A.actionType==="video_to_ad")kx("video_to_ad");else{var L={adBreakType:QV(A.U),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:A.videoStreamType};A.actionType==="ad_to_video"?(A.contentCpn&&(L.targetCpn=A.contentCpn),A.videoId&&(L.targetVideoId=A.videoId)):(A.adCpn&&(L.targetCpn=A.adCpn),A.adVideoId&&(L.targetVideoId=A.adVideoId));A.adFormat&&(L.adType=A.adFormat);A.contentCpn&& (L.clientPlaybackNonce=A.contentCpn);A.videoId&&(L.videoId=A.videoId);A.adCpn&&(L.adClientPlaybackNonce=A.adCpn);A.adVideoId&&(L.adVideoId=A.adVideoId);g.Qm(L,A.actionType);A.S.K().experiments.GL("html5_ads_csi_qoes")&&(L=A.S.G_(A.actionType==="ad_to_video"?1:2),L=(0,g.bc)()-1E3*L,$x("qoes",L,A.actionType))}}; vu=function(A){g.Y.call(this);this.S=A;this.N=new Map;this.W=new Qz(this);g.W(this,this.W);this.W.Y(this.S,g.qR("ad"),this.onCueRangeEnter,this);this.W.Y(this.S,g.PR("ad"),this.onCueRangeExit,this)}; D6L=function(A,L,B,f,K,V,J){g.WR.call(this,L,B,{id:A,namespace:"ad",priority:K,visible:f,associatedClipId:V,markerPositionMs:J})}; qz=function(A){this.S=A}; d6y=function(A,L){A.S.cueVideoByPlayerVars(L,2)}; Pu=function(A){this.S=A}; eh=function(A){this.S=A}; XW=function(A,L){return A.S.K().J(L)}; IeD=function(A){return A.S.K().J("substitute_ad_cpn_macro_in_ssdai")}; SM=function(A){var L,B,f;return((L=A.S.getVideoData(1).getPlayerResponse())==null?void 0:(B=L.playerConfig)==null?void 0:(f=B.daiConfig)==null?void 0:f.enableServerStitchedDai)||!1}; xNw=function(A){return A.S.K().J("html5_enable_vod_slar_with_notify_pacf")}; wn7=function(A){return A.S.K().J("html5_recognize_predict_start_cue_point")}; vy=function(A){return A.S.K().experiments.GL("enable_desktop_player_underlay")}; pnL=function(A){return A.S.K().experiments.GL("html5_load_empty_player_in_media_break_sub_lra")}; OJ=function(A,L){return A.S.K().J("html5_cue_video_for_preroll")&&(L==null?void 0:L.kind)==="AD_PLACEMENT_KIND_START"?!1:A.S.K().experiments.GL("html5_load_ads_instead_of_cue")}; EJ=function(A){return A.S.K().experiments.GL("html5_preload_ads")}; yHy=function(A){return A.S.K().experiments.GL("should_ignore_cuepoints_during_lifa_preroll")}; EM=function(A){return A.S.K().experiments.GL("enable_ads_control_flow_deterministic_id_generation")}; jiE=function(A){return A.S.K().experiments.GL("enable_desktop_discovery_video_abandon_pings")||V3(A.S.K())}; gJS=function(A){return A.S.K().experiments.GL("enable_progres_commands_lr_feeds")}; GfE=function(A){return A.S.K().experiments.GL("enable_progress_commands_lr_shorts")}; RU=function(A){return A.S.K().experiments.GL("html5_cuepoint_identifier_logging")}; LEy=function(A){A=A.S.getVideoData(1);return!!A&&A.J("html5_preload_first_vod_video_ad")&&!A.isDaiEnabled()&&!A.isLivePlayback}; rH1=function(A){return A.S.K().experiments.GL("html5_ssdai_enable_media_end_cue_range")}; siy=function(A){switch(A){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}}; HBD=function(){g.SN.call(this);var A=this;this.N={};this.addOnDisposeCallback(function(){for(var L=g.m(Object.keys(A.N)),B=L.next();!B.done;B=L.next())delete A.N[B.value]})}; nZ=function(){if(h6L===null){h6L=new HBD;$$(Kc).W="b";var A=$$(Kc),L=uH(A)=="h"||uH(A)=="b",B=!(gF(),!1);L&&B&&(A.D=!0,A.T=new Xgk)}return h6L}; bBL=function(A,L,B){A.N[L]=B}; tIw=function(A){switch(A){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}}; zj=function(A,L,B){this.Mp=A;this.S=L;this.FD=B;this.W=new Set;this.N=new Map;nZ().subscribe("adactiveviewmeasurable",this.qN,this);nZ().subscribe("adfullyviewableaudiblehalfdurationimpression",this.HQ,this);nZ().subscribe("adviewableimpression",this.IM,this);nZ().subscribe("adaudioaudible",this.NN,this);nZ().subscribe("adaudiomeasurable",this.WQ,this)}; aH=function(A,L,B){var f=B.nt,K=B.Ag,V=B.listener;B=B.Lb;if(A.N.has(L))Dh("Unexpected registration of layout in LidarApi");else{if(B){if(A.W.has(B))return;A.W.add(B)}A.N.set(L,V);vk(gF().Zx,"fmd",1);Pqk($$(Kc),f);bBL(nZ(),L,{EF:function(){if(!K)return{};var J=A.S.getPresentingPlayerType(!0),R;return(R=A.S.getVideoData(J))!=null&&R.isAd()?{currentTime:A.Mp.get().getCurrentTimeSec(J,!1,void 0),duration:K,isPlaying:uF(A.Mp.get(),J).isPlaying(),isVpaid:!1,isYouTube:!0,volume:A.Mp.get().isMuted()?0:A.Mp.get().getVolume()/ 100}:{}}})}}; A3=function(A,L){A.N.has(L)?(A.N.delete(L),delete nZ().N[L]):Dh("Unexpected unregistration of layout in LidarApi")}; kfD=function(A,L){if(A.S.isLifaAdPlaying()){var B=A.S.O7(!0,!0);A.dM(L,B.width*.5*1.1,B.height*.25*1.1,B.width*.5*.9,B.height*.5*.9)}}; m6D=function(A,L){var B={};TBL(A,B,L);lev(B);B.LACT=LY(function(){return rT().toString()}); B.VIS=LY(function(){return A.getVisibilityState().toString()}); B.SDKV="h.3.0";B.VOL=LY(function(){return A.isMuted()?"0":Math.round(A.getVolume()).toString()}); B.VED="";return B}; Qi7=function(A,L){var B={};if(L||!A||!A.kind)return B;if(A.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||A.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!A.adTimeOffset||!A.adTimeOffset.offsetStartMilliseconds)return g.mL(Error("malformed AdPlacementConfig")),B;B.MIDROLL_POS=LY(P4(Math.round(na(A.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else B.MIDROLL_POS=LY(P4("0"));return B}; LY=function(A){return{toString:function(){return A()}}}; CKE=function(A,L,B){function f(R,Z){(Z=B[Z])&&(V[R]=Z)} function K(R,Z){(Z=B[Z])&&(V[R]=J(Z))} if(!B||g.mi(B))return A;var V=Object.assign({},A),J=L?encodeURIComponent:function(R){return R}; K("DV_VIEWABILITY","doubleVerifyViewability");K("IAS_VIEWABILITY","integralAdsViewability");K("MOAT_INIT","moatInit");K("MOAT_VIEWABILITY","moatViewability");f("GOOGLE_VIEWABILITY","googleViewability");f("VIEWABILITY","viewability");return V}; TBL=function(A,L,B){L.CPN=LY(function(){var f;(f=A.getVideoData(1))?f=f.clientPlaybackNonce:(g.CE(Error("Video data is null.")),f=null);return f}); L.AD_MT=LY(function(){if(B!=null)var f=B;else if(A.K().J("enable_h5_shorts_ad_fill_ad_mt_macro")||A.K().J("enable_desktop_discovery_pings_ad_mt_macro")||V3(A.K())){var K=A.getPresentingPlayerType(!0),V;f=((V=A.getVideoData(K))==null?0:V.isAd())?A.getCurrentTime(K,!1):0}else f=A.getCurrentTime(2,!1);return iBv(f)}); L.MT=LY(function(){return iBv(A.getCurrentTime(1,!1))}); L.P_H=LY(function(){return A.Pn().yN().height.toString()}); L.P_W=LY(function(){return A.Pn().yN().width.toString()}); L.PV_H=LY(function(){return A.Pn().getVideoContentRect().height.toString()}); L.PV_W=LY(function(){return A.Pn().getVideoContentRect().width.toString()})}; iBv=function(A){return Math.round(Math.max(0,A*1E3)).toString()}; lev=function(A){A.CONN=LY(P4("0"));A.WT=LY(function(){return Date.now().toString()})}; $6k=function(){}; Xn0=function(A,L,B,f,K){var V,J,R,Z,N,F,D,I,d,w,r,h,Q;g.c(function(l){switch(l.N){case 1:V=!!L.scrubReferrer;J=g.iN(L.baseUrl,CKE(B,V,f));R={};if(!L.headers){l.Ux(2);break}Z=A.U();if(!Z.N){N=Z.getValue();l.Ux(3);break}return g.X(l,Z.N,4);case 4:N=l.W;case 3:F=N;D=g.m(L.headers);for(I=D.next();!I.done;I=D.next())switch(d=I.value,d.headerType){case "VISITOR_ID":g.A_("VISITOR_DATA")&&(R["X-Goog-Visitor-Id"]=g.A_("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.A_("EOM_VISITOR_DATA")&&(R["X-Goog-EOM-Visitor-Id"]= g.A_("EOM_VISITOR_DATA"));break;case "USER_AUTH":F&&(R.Authorization="Bearer "+F);break;case "PLUS_PAGE_ID":(w=A.D())&&(R["X-Goog-PageId"]=w);break;case "AUTH_USER":r=A.N();!F&&r&&(R["X-Goog-AuthUser"]=r);break;case "DATASYNC_ID":if(h=void 0,(h=A.V())==null?0:h.GL("enable_datasync_id_header_in_web_vss_pings"))Q=A.W(),Fa(J)&&g.A_("LOGGED_IN")&&Q&&(R["X-YouTube-DataSync-Id"]=Q)}"X-Goog-EOM-Visitor-Id"in R&&"X-Goog-Visitor-Id"in R&&delete R["X-Goog-Visitor-Id"];case 2:g.MJ(J,void 0,V,Object.keys(R).length!== 0?R:void 0,"",!0,K),g.VK(l)}})}; OBQ=function(A,L,B,f,K){this.U=A;this.D=L;this.N=B;this.W=f;this.V=K}; EJQ=function(A,L){this.N=A;this.FD=L}; oY=function(A,L,B,f,K,V){var J=J===void 0?new OBQ(function(){var R=A.K(),Z=A.getVideoData(1);return g.po(R,Z?g.Aj(Z):"")},function(){return A.K().pageId},function(){return A.K().ZM},function(){var R; return(R=A.K().datasyncId)!=null?R:""},function(){return A.K().experiments}):J; this.S=A;this.W=L;this.Fr=B;this.hF=f;this.fY=K;this.FD=V;this.U=J;this.Bm=null;this.N=new Map;this.V=new EJQ(J,this.FD)}; MIL=function(A,L,B,f,K){var V=yx(A.W.get(),B);V?(B=IE(A,cHe(V),V,void 0,void 0,f),L.hasOwnProperty("baseUrl")?A.U.send(L,B):A.V.send(L,B,{},K)):Dh("Trying to ping from an unknown layout",void 0,void 0,{layoutId:B})}; gf6=function(A,L,B,f,K,V){f=f===void 0?[]:f;var J=yx(A.W.get(),L);if(J){var R=A.Fr.get().QF(L,B),Z=IE(A,cHe(J),J,K,V);f.forEach(function(N,F){N.baseUrl&&(A.V.send(N.baseUrl,Z,R,N.attributionSrcMode),N.serializedAdPingMetadata&&A.fY.N("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,J,new sv7(N,F),void 0,void 0,J.adLayoutLoggingData))})}else Dh("Trying to track from an unknown layout.",void 0,void 0,{layoutId:L, trackingType:B})}; S9=function(A,L){A.S.sendVideoStatsEngageEvent(L,void 0,2)}; zu=function(A,L){g.pE("adsClientStateChange",L)}; Y87=function(A,L){A.N.has(L.qs())?Dh("Trying to register an existing AdErrorInfoSupplier."):A.N.set(L.qs(),L)}; U60=function(A,L){A.N.delete(L.qs())||Dh("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Ay=function(A,L,B){typeof B==="string"?A.S.getVideoData(1).SV(L,B):A.S.getVideoData(1).Hn(L,B)}; cHe=function(A){var L=PF(A.clientMetadata,"metadata_type_ad_placement_config");A=PF(A.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:L,m6:A}}; IE=function(A,L,B,f,K,V){var J=B?W36(A):{},R=B?vJ0(A,B.layoutId):{},Z=q80(A),N,F=K!=null?K:(N=BV(A.hF.get(),2))==null?void 0:N.clientPlaybackNonce;K={};A=Object.assign({},m6D(A.S,f),Qi7(L.adPlacementConfig,(B==null?void 0:B.renderingContent)!==void 0),R,J,Z,(K.FINAL=LY(function(){return"1"}),K.AD_CPN=LY(function(){return F||""}),K)); (B==null?void 0:B.renderingContent)!==void 0||(A.SLOT_POS=LY(function(){return(L.m6||0).toString()})); B={};V=Object.assign({},A,V);A=g.m(Object.values(PK7));for(f=A.next();!f.done;f=A.next())f=f.value,J=V[f],J!=null&&J.toString()!=null&&(B[f]=J.toString());return B}; W36=function(A){var L={},B,f=(B=A.Bm)==null?void 0:B.wQ/1E3;f!=null&&(L.SURVEY_ELAPSED_MS=LY(function(){return Math.round(f*1E3).toString()})); L.SURVEY_LOCAL_TIME_EPOCH_S=LY(function(){return Math.round(Date.now()/1E3).toString()}); return L}; var VE7=function(A,L){return jE[S[2]](this,32,A,L)}; vJ0=function(A,L){A=A.N.get(L);if(!A)return{};A=A.De();if(!A)return{};L={};return L.YT_ERROR_CODE=A.Av.toString(),L.ERRORCODE=A.zm.toString(),L.ERROR_MSG=A.errorMessage,L}; q80=function(A){var L={},B=A.S.getVideoData(1);L.ASR=LY(function(){var f;return(f=B==null?void 0:B.aQ)!=null?f:null}); L.EI=LY(function(){var f;return(f=B==null?void 0:B.eventId)!=null?f:null}); return L}; B1=function(A,L,B){g.Y.call(this);this.S=A;this.kH=L;this.FD=B;this.listeners=[];this.Sj=null;this.pI=new Map;L=new g.dN(this);g.W(this,L);L.Y(A,"videodatachange",this.O8F);L.Y(A,"serverstitchedvideochange",this.jyL);this.oV=BV(this)}; BV=function(A,L){var B=A.S.getVideoData(L);return B?A.Ij(B,L||A.S.getPresentingPlayerType(!0)):null}; x6D=function(A,L,B){var f=A.Ij(L,B);A.oV=f;A.listeners.forEach(function(K){K.Y_(f)})}; fY=function(A,L){g.Y.call(this);this.S=A;this.hF=L;this.listeners=[];this.Sz=[];this.rq=function(){Dh("Called 'doUnlockPreroll' before it's initialized.")}; L=new Qz(this);var B=new g.dN(this);g.W(this,B);g.W(this,L);L.Y(A,"progresssync",this.cfr);L.Y(A,"presentingplayerstatechange",this.iep);L.Y(A,"fullscreentoggled",this.onFullscreenToggled);L.Y(A,"onVolumeChange",this.onVolumeChange);L.Y(A,"minimized",this.mF);L.Y(A,"overlayvisibilitychange",this.iH);L.Y(A,"shortsadswipe",this.gb);L.Y(A,"resize",this.Bz);B.Y(A,g.qR("appad"),this.jO)}; e6C=function(A,L){A.Sz=A.Sz.filter(function(B){return B!==L})}; KY=function(A,L,B){return A.getCurrentTimeSec(L,B)}; VY=function(A,L){var B;L=(B=A.hF.get().pI.get(L))!=null?B:null;if(L===null)return Dh("Expected ad video start time on playback timeline"),0;A=A.S.getCurrentTime(2,!0);return A0){var V=L.end.toString();K.forEach(function(J){(J=J.config&&J.config.adPlacementConfig)&&J.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&J.adTimeOffset&&J.adTimeOffset.offsetEndMilliseconds==="-1"&&J.adTimeOffset.offsetEndMilliseconds!==V&&(J.adTimeOffset.offsetEndMilliseconds=V)}); f.map(function(J){return g.y(J,Gl)}).forEach(function(J){var R; (J=J==null?void 0:(R=J.slotEntryTrigger)==null?void 0:R.mediaTimeRangeTrigger)&&J.offsetEndMilliseconds==="-1"&&(J.offsetEndMilliseconds=V)})}return{To:K, adSlots:f,xW:!1,ssdaiAdsConfig:A.ssdaiAdsConfig}}; Ne=function(A){g.Y.call(this);this.S=A;this.listeners=[];this.N=new Qz(this);g.W(this,this.N);this.N.Y(this.S,"aduxclicked",this.onAdUxClicked);this.N.Y(this.S,"aduxmouseover",this.Ol);this.N.Y(this.S,"aduxmouseout",this.oT);this.N.Y(this.S,"muteadaccepted",this.GVp)}; LA6=function(A,L,B){L=g.mn(L,function(f){return new rKy(f,B,f.id)}); A.S.Kr("onAdUxUpdate",L)}; Fl=function(A,L){A=g.m(A.listeners);for(var B=A.next();!B.done;B=A.next())L(B.value)}; D6=function(A,L){this.W=A;this.V=L===void 0?!1:L;this.N={}}; oOL=function(A,L){var B=A.startSecs+A.Dj;B=B<=0?null:B;if(B===null)return null;switch(A.event){case "start":case "continue":case "stop":break;case "predictStart":if(L)break;return null;default:return null}L=Math.max(A.startSecs,0);return{c7:new bk(L,B),C1n:new Zc(L,B-L,A.context,A.identifier,A.event,A.N)}}; BJw=function(){this.N=[]}; YN6=function(A,L,B){var f=g.Fc(A.N,L);if(f>=0)return L;L=-f-1;return L>=A.N.length||A.N[L]>B?null:A.N[L]}; d1=function(A,L,B){g.Y.call(this);this.S=A;this.FD=L;this.j4=B;this.listeners=[];this.U=!1;this.Qy=[];this.N=null;this.D=new D6(this,wn7(L.get()));this.V=new BJw;this.W=null}; fv1=function(A,L){A.Qy.push(L);for(var B=!1,f=g.m(A.listeners),K=f.next();!K.done;K=f.next())B=K.value.Xx(L)||B;A.U=B;RU(A.FD.get())&&Ay(A.j4.get(),"onci","cpi."+L.identifier+";cpe."+L.event+";cps."+L.startSecs+";cbi."+B)}; Vu8=function(A,L){zu(A.j4.get(),{cuepointTrigger:{event:KAC(L.event),cuepointId:L.identifier,totalCueDurationMs:L.Dj*1E3,playheadTimeMs:L.N,cueStartTimeMs:L.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:A.S.getVideoData(1).clientPlaybackNonce}})}; KAC=function(A){switch(A){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 kj(A,"Unexpected cuepoint event")}}; IY=function(A){this.S=A}; w1=function(A){this.S=A}; Jc8=function(A){switch(A){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:kj(A,"unknown transitionReason")}}; pY=function(){g.Y.apply(this,arguments);this.ZwL=new Map}; SmQ=function(A){this.S=A}; R$0=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)}); g.W(this,J);var R=Ti(function(){return new c_(J)}); g.W(this,R);var Z=Ti(function(){return new w3}); g.W(this,Z);var N=Ti(function(){return new d3(A)}); g.W(this,N);var F=Ti(function(){return new MF(J,R,V.FD)}); g.W(this,F);var D=Ti(function(){return new qF}); g.W(this,D);this.IA=Ti(function(){return new Ne(L)}); g.W(this,this.IA);this.gi=Ti(function(){return new mO(K)}); g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)}); g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)}); g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)}); g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)}); g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)}); g.W(this,this.FD);var I=Ti(function(){return new Z6(f)}); g.W(this,I);var d=Ti(function(){return new Ly(V.FD)}); g.W(this,d);this.E6=Ti(function(){return new IY(L)}); g.W(this,this.E6);this.mJ=Ti(function(){return new iY}); g.W(this,this.mJ);this.hF=Ti(function(){return new B1(L,D,V.FD)}); g.W(this,this.hF);var w=Yy({hF:this.hF,FD:this.FD,Le:d}),r=w.context;this.fY=w.fY;this.hf=Ti(function(){return new d1(L,V.FD,V.j4)}); g.W(this,this.hf);this.sE=Ti(function(){return new w1(L)}); g.W(this,this.sE);this.Mp=Ti(function(){return new fY(L,V.hF)}); g.W(this,this.Mp);this.MF=Ti(function(){return new pY}); g.W(this,this.MF);w=Ti(function(){return new fS(J,F,R,V.FD,d,"SLOT_TYPE_ABOVE_FEED",V.Mp,V.gh,V.zP)}); g.W(this,w);this.Az=Ti(function(){return new $G(V.FD)}); this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)}); g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)}); g.W(this,this.j4);this.z_=new F8(NF,yY,function(Q,l,C,O){return Wy(R.get(),Q,l,C,O)},N,F,R,d,this.FD,this.hF); g.W(this,this.z_);this.VG=new Dy(N,w,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var h=new Up(L,this.VG,this.Mp,this.hF,this.hf);this.jo=Ti(function(){return h}); this.lG=h;this.gh=new Jn(N,F,this.jo,this.hf,this.Mp,this.FD,this.j4,this.sE);g.W(this,this.gh);this.h_=new IU(N,F,this.FA,this.jo,r);g.W(this,this.h_);this.tf=new Tl(this.FD,N,F,w,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.N4=Ti(function(){return new a6(I,R,d,V.FD,V.j4,V.Mp,V.sE)}); g.W(this,this.N4);this.VB=Ti(function(){return new AE}); g.W(this,this.VB);this.HR=new sM(A,this.IA,this.FD);g.W(this,this.HR);this.vz=new H_(A);g.W(this,this.vz);this.eT=new hn(A);g.W(this,this.eT);this.Yg=new tn(A,this.jo,r);g.W(this,this.Yg);this.s_=new kh(A,this.FA,this.Mp,this.hF);g.W(this,this.s_);this.xN=new T0(A,this.hF);g.W(this,this.xN);this.zP=new Qx(A,this.hf,this.Mp,this.j4,this.jo,this.gh);g.W(this,this.zP);this.qF=new l4(A);g.W(this,this.qF);this.MU=new X8(A);g.W(this,this.MU);this.rb=new mW(A);g.W(this,this.rb);this.NI=new $h(A);g.W(this, this.NI);this.MU=new X8(A);g.W(this,this.MU);this.Wk=Ti(function(){return new jM}); g.W(this,this.Wk);this.E7=Ti(function(){return new g3(V.Mp)}); g.W(this,this.E7);this.Ph=Ti(function(){return new cvk(V.IA,V.j4,A,Z,V.Fr)}); g.W(this,this.Ph);this.dQ=Ti(function(){return new Eb(V.tf,N,J)}); g.W(this,this.dQ);this.Vq=Ti(function(){return new Ym(V.FD,V.j4,V.qF,V.Fr)}); g.W(this,this.Vq);this.nQ=Ti(function(){return new Jy(A,V.MU,V.qF,V.hF,V.sE,V.Mp,V.MF,V.j4,D,V.hf,V.Fr,V.Az,V.h$,V.FA,V.j$,V.QK,V.gi,V.E6,V.FD,Z,r)}); g.W(this,this.nQ);this.yk=Ti(function(){return new L18(V.Mp,V.j4,V.gi,V.FD,V.Fr,V.hF)}); g.W(this,this.yk);this.XC=Ti(function(){return new FFC(V.IA,V.Mp,V.j4,Z,V.Fr,V.eT,V.NI,V.gi,V.FD,B)}); g.W(this,this.XC);this.sJ=Ti(function(){return new MBD(V.IA,V.j4,Z)}); g.W(this,this.sJ);this.hR=new RY(A,this.mJ,J);g.W(this,this.hR);this.TH={e9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tf],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.VG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.h_]]),N2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N4],["SLOT_TYPE_ABOVE_FEED",this.VB],["SLOT_TYPE_FORECASTING",this.VB], ["SLOT_TYPE_IN_PLAYER",this.VB],["SLOT_TYPE_PLAYER_BYTES",this.VB],["SLOT_TYPE_PLAYER_UNDERLAY",this.VB],["SLOT_TYPE_PLAYBACK_TRACKING",this.VB],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.VB]]),UI:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.HR],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.HR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.vz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vz],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.vz],["TRIGGER_TYPE_CLOSE_REQUESTED",this.eT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yg],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.s_],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.s_],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.s_],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.s_],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.s_],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xN],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.qF],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Yg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.NI],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.zP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.zP],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.zP],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.zP],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.zP]]),xD:new Map([["SLOT_TYPE_ABOVE_FEED",this.Wk], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Wk],["SLOT_TYPE_FORECASTING",this.Wk],["SLOT_TYPE_IN_PLAYER",this.Wk],["SLOT_TYPE_PLAYER_BYTES",this.E7],["SLOT_TYPE_PLAYER_UNDERLAY",this.Wk],["SLOT_TYPE_PLAYBACK_TRACKING",this.Wk],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Wk]]),eM:new Map([["SLOT_TYPE_ABOVE_FEED",this.Ph],["SLOT_TYPE_AD_BREAK_REQUEST",this.dQ],["SLOT_TYPE_FORECASTING",this.Vq],["SLOT_TYPE_PLAYER_BYTES",this.nQ],["SLOT_TYPE_PLAYBACK_TRACKING",this.yk],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.yk],["SLOT_TYPE_IN_PLAYER",this.XC],["SLOT_TYPE_PLAYER_UNDERLAY",this.sJ]])};this.listeners=[Z.get()];this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:this.mJ.get(),Fe:this.HR,y4:Z.get(),kf:this.hF.get()}}; ZNE=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)}); g.W(this,J);var R=Ti(function(){return new c_(J)}); g.W(this,R);var Z=Ti(function(){return new w3}); g.W(this,Z);var N=Ti(function(){return new d3(A)}); g.W(this,N);var F=Ti(function(){return new MF(J,R,V.FD)}); g.W(this,F);var D=Ti(function(){return new qF}); g.W(this,D);this.IA=Ti(function(){return new Ne(L)}); g.W(this,this.IA);this.gi=Ti(function(){return new mO(K)}); g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)}); g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)}); g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)}); g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)}); g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)}); g.W(this,this.FD);var I=Ti(function(){return new Z6(f)}); g.W(this,I);var d=Ti(function(){return new Ly(V.FD)}); g.W(this,d);var w=Ti(function(){return new fS(J,F,R,V.FD,d,null,null,V.gh,V.zP)}); g.W(this,w);this.E6=Ti(function(){return new IY(L)}); g.W(this,this.E6);this.mJ=Ti(function(){return new iY}); g.W(this,this.mJ);this.hF=Ti(function(){return new B1(L,D,V.FD)}); g.W(this,this.hF);var r=Yy({hF:this.hF,FD:this.FD,Le:d}),h=r.context;this.fY=r.fY;this.hf=Ti(function(){return new d1(L,V.FD,V.j4)}); this.Mp=Ti(function(){return new fY(L,V.hF)}); g.W(this,this.Mp);this.MF=Ti(function(){return new pY}); g.W(this,this.MF);this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)}); g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)}); g.W(this,this.j4);this.Az=Ti(function(){return new $G(V.FD)}); g.W(this,this.Az);this.z_=new F8(NF,yY,function(l,C,O,v){return Wy(R.get(),l,C,O,v)},N,F,R,d,this.FD,this.hF); g.W(this,this.z_);this.VG=new Dy(N,w,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var Q=new Up(L,this.VG,this.Mp,this.hF,this.hf);this.jo=Ti(function(){return Q}); this.lG=Q;this.gh=new Jn(N,F,this.jo,this.hf,this.Mp,this.FD,this.j4);g.W(this,this.gh);this.h_=new IU(N,F,this.FA,this.jo,h);g.W(this,this.h_);this.tf=new Tl(this.FD,N,F,w,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.N4=Ti(function(){return new a6(I,R,d,V.FD,V.j4,V.Mp)}); g.W(this,this.N4);this.VB=Ti(function(){return new AE}); g.W(this,this.VB);this.HR=new sM(A,this.IA,this.FD);g.W(this,this.HR);this.vz=new H_(A);g.W(this,this.vz);this.eT=new hn(A);g.W(this,this.eT);this.Yg=new tn(A,this.jo,h);g.W(this,this.Yg);this.s_=new kh(A,this.FA,this.Mp,this.hF);g.W(this,this.s_);this.qF=new l4(A);g.W(this,this.qF);this.rb=new mW(A);g.W(this,this.rb);this.NI=new $h(A);g.W(this,this.NI);this.sE=Ti(function(){return new w1(L)}); g.W(this,this.sE);this.MU=new X8(A);g.W(this,this.MU);this.zP=new Qx(A,this.hf,this.Mp,this.j4,this.jo,this.gh);g.W(this,this.zP);this.Wk=Ti(function(){return new jM}); g.W(this,this.Wk);this.E7=Ti(function(){return new g3(V.Mp)}); g.W(this,this.E7);this.dQ=Ti(function(){return new Eb(V.tf,N,J)}); g.W(this,this.dQ);this.Vq=Ti(function(){return new Ym(V.FD,V.j4,V.qF,V.Fr)}); g.W(this,this.Vq);this.XC=Ti(function(){return new DD6(V.IA,V.Mp,V.j4,Z,V.Fr,V.eT,V.NI,V.gi,V.FD,B)}); g.W(this,this.XC);this.nQ=Ti(function(){return new S$(A,V.MU,V.qF,V.j4,V.Fr,V.Az,V.h$,V.hF,V.Mp,V.MF,V.FA,V.j$,V.QK,V.gi,V.E6,V.FD,V.sE,h)}); g.W(this,this.nQ);this.hR=new RY(A,this.mJ,J);g.W(this,this.hR);this.TH={e9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tf],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.VG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.h_]]),N2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N4],["SLOT_TYPE_FORECASTING",this.VB],["SLOT_TYPE_IN_PLAYER",this.VB], ["SLOT_TYPE_PLAYER_BYTES",this.VB]]),UI:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.HR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vz], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.vz],["TRIGGER_TYPE_CLOSE_REQUESTED",this.eT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.s_],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.s_],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.qF],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.NI],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.zP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.zP],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.zP],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.zP],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.zP]]),xD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wk],["SLOT_TYPE_FORECASTING",this.Wk],["SLOT_TYPE_IN_PLAYER",this.Wk],["SLOT_TYPE_PLAYER_BYTES",this.E7]]), eM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dQ],["SLOT_TYPE_FORECASTING",this.Vq],["SLOT_TYPE_IN_PLAYER",this.XC],["SLOT_TYPE_PLAYER_BYTES",this.nQ]])};this.listeners=[Z.get()];this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:this.mJ.get(),Fe:this.HR,y4:Z.get(),kf:this.hF.get()}}; NJ1=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)}); g.W(this,J);var R=Ti(function(){return new c_(J)}); g.W(this,R);var Z=Ti(function(){return new w3}); g.W(this,Z);var N=Ti(function(){return new d3(A)}); g.W(this,N);var F=Ti(function(){return new MF(J,R,V.FD)}); g.W(this,F);var D=Ti(function(){return new qF}); g.W(this,D);this.IA=Ti(function(){return new Ne(L)}); g.W(this,this.IA);this.gi=Ti(function(){return new mO(K)}); g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)}); g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)}); g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)}); g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)}); g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)}); g.W(this,this.FD);var I=Ti(function(){return new Z6(f)}); g.W(this,I);var d=Ti(function(){return new Ly(V.FD)}); g.W(this,d);var w=Ti(function(){return new fS(J,F,R,V.FD,d,null,null,null,null)}); g.W(this,w);this.E6=Ti(function(){return new IY(L)}); g.W(this,this.E6);this.hF=Ti(function(){return new B1(L,D,V.FD)}); g.W(this,this.hF);var r=Yy({hF:this.hF,FD:this.FD,Le:d}),h=r.context;this.fY=r.fY;this.Mp=Ti(function(){return new fY(L,V.hF)}); g.W(this,this.Mp);this.MF=Ti(function(){return new pY}); g.W(this,this.MF);this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)}); g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)}); g.W(this,this.j4);this.Az=Ti(function(){return new $G(V.FD)}); g.W(this,this.Az);this.z_=new F8(NF,yY,function(l,C,O,v){return Wy(R.get(),l,C,O,v)},N,F,R,d,this.FD,this.hF); g.W(this,this.z_);this.VG=new Dy(N,w,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var Q=new Up(L,this.VG,this.Mp,this.hF);this.jo=Ti(function(){return Q}); this.lG=Q;this.h_=new IU(N,F,this.FA,this.jo,h);g.W(this,this.h_);this.tf=new Tl(this.FD,N,F,w,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.N4=Ti(function(){return new a6(I,R,d,V.FD,V.j4,V.Mp)}); g.W(this,this.N4);this.VB=Ti(function(){return new AE}); g.W(this,this.VB);this.HR=new sM(A,this.IA,this.FD);g.W(this,this.HR);this.vz=new H_(A);g.W(this,this.vz);this.Yg=new tn(A,this.jo,h);g.W(this,this.Yg);this.s_=new kh(A,this.FA,this.Mp,this.hF);g.W(this,this.s_);this.qF=new l4(A);g.W(this,this.qF);this.rb=new mW(A);g.W(this,this.rb);this.sE=Ti(function(){return new w1(L)}); g.W(this,this.sE);this.MU=new X8(A);g.W(this,this.MU);this.Wk=Ti(function(){return new jM}); g.W(this,this.Wk);this.E7=Ti(function(){return new g3(V.Mp)}); g.W(this,this.E7);this.dQ=Ti(function(){return new Eb(V.tf,N,J)}); g.W(this,this.dQ);this.Vq=Ti(function(){return new Ym(V.FD,V.j4,V.qF,V.Fr)}); g.W(this,this.Vq);this.X_=Ti(function(){return new aOS(V.IA,V.Mp,V.j4,Z,B,V.FD)}); g.W(this,this.X_);this.nQ=Ti(function(){return new S$(A,V.MU,V.qF,V.j4,V.Fr,V.Az,V.h$,V.hF,V.Mp,V.MF,V.FA,V.j$,V.QK,V.gi,V.E6,V.FD,V.sE,h)}); g.W(this,this.nQ);this.TH={e9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tf],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.VG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.h_]]),N2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N4],["SLOT_TYPE_FORECASTING",this.VB],["SLOT_TYPE_IN_PLAYER",this.VB],["SLOT_TYPE_PLAYER_BYTES",this.VB]]),UI:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.HR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.vz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.s_],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.qF],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rb],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MU]]),xD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wk],["SLOT_TYPE_ABOVE_FEED",this.Wk],["SLOT_TYPE_FORECASTING",this.Wk],["SLOT_TYPE_IN_PLAYER",this.Wk],["SLOT_TYPE_PLAYER_BYTES",this.E7]]),eM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dQ],["SLOT_TYPE_FORECASTING",this.Vq],["SLOT_TYPE_IN_PLAYER", this.X_],["SLOT_TYPE_PLAYER_BYTES",this.nQ]])};this.listeners=[Z.get()];this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:null,Fe:this.HR,y4:Z.get(),kf:this.hF.get()}}; FAD=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)}); g.W(this,J);var R=Ti(function(){return new c_(J)}); g.W(this,R);var Z=Ti(function(){return new w3}); g.W(this,Z);var N=Ti(function(){return new d3(A)}); g.W(this,N);var F=Ti(function(){return new MF(J,R,V.FD)}); g.W(this,F);var D=Ti(function(){return new qF}); g.W(this,D);this.AA=Ti(function(){return new SmQ(L)}); g.W(this,this.AA);this.IA=Ti(function(){return new Ne(L)}); g.W(this,this.IA);this.gi=Ti(function(){return new mO(K)}); g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)}); g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)}); g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)}); g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)}); g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)}); g.W(this,this.FD);var I=Ti(function(){return new Z6(f)}); g.W(this,I);var d=Ti(function(){return new Ly(V.FD)}); g.W(this,d);var w=Ti(function(){return new fS(J,F,R,V.FD,d,null,null,null,null)}); g.W(this,w);this.E6=Ti(function(){return new IY(L)}); g.W(this,this.E6);this.hF=Ti(function(){return new B1(L,D,V.FD)}); g.W(this,this.hF);var r=Yy({hF:this.hF,FD:this.FD,Le:d}),h=r.context;this.fY=r.fY;this.Mp=Ti(function(){return new fY(L,V.hF)}); g.W(this,this.Mp);this.MF=Ti(function(){return new pY}); g.W(this,this.MF);this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)}); g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)}); g.W(this,this.j4);this.Az=Ti(function(){return new $G(V.FD)}); g.W(this,this.Az);this.z_=new F8(ufQ,yY,function(l,C,O,v){return gXE(R.get(),l,C,O,v)},N,F,R,d,this.FD,this.hF); g.W(this,this.z_);this.VG=new Dy(N,w,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var Q=new Up(L,this.VG,this.Mp,this.hF);this.jo=Ti(function(){return Q}); this.lG=Q;this.h_=new IU(N,F,this.FA,this.jo,h);g.W(this,this.h_);this.tf=new Tl(this.FD,N,F,w,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.N4=Ti(function(){return new a6(I,R,d,V.FD,V.j4,V.Mp)}); g.W(this,this.N4);this.VB=Ti(function(){return new AE}); g.W(this,this.VB);this.HR=new sM(A,this.IA,this.FD);g.W(this,this.HR);this.vz=new H_(A);g.W(this,this.vz);this.Yg=new tn(A,this.jo,h);g.W(this,this.Yg);this.s_=new kh(A,this.FA,this.Mp,this.hF);g.W(this,this.s_);this.qF=new l4(A);g.W(this,this.qF);this.rb=new mW(A);g.W(this,this.rb);this.sE=Ti(function(){return new w1(L)}); g.W(this,this.sE);this.MU=new X8(A);g.W(this,this.MU);this.Wk=Ti(function(){return new jM}); g.W(this,this.Wk);this.E7=Ti(function(){return new g3(V.Mp)}); g.W(this,this.E7);this.dQ=Ti(function(){return new Eb(V.tf,N,J)}); g.W(this,this.dQ);this.Vq=Ti(function(){return new Ym(V.FD,V.j4,V.qF,V.Fr)}); g.W(this,this.Vq);this.nQ=Ti(function(){return new S$(A,V.MU,V.qF,V.j4,V.Fr,V.Az,V.h$,V.hF,V.Mp,V.MF,V.FA,V.j$,V.QK,V.gi,V.E6,V.FD,V.sE,h)}); g.W(this,this.nQ);this.ID=Ti(function(){return new I8e(V.IA,V.Mp,V.j4,Z,V.AA,B,V.hF)}); g.W(this,this.ID);this.TH={e9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tf],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.VG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.h_]]),N2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N4],["SLOT_TYPE_FORECASTING",this.VB],["SLOT_TYPE_IN_PLAYER",this.VB],["SLOT_TYPE_PLAYER_BYTES",this.VB]]),UI:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.HR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.vz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.s_],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.qF],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rb],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MU]]),xD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wk],["SLOT_TYPE_FORECASTING",this.Wk],["SLOT_TYPE_IN_PLAYER",this.Wk],["SLOT_TYPE_PLAYER_BYTES",this.E7]]),eM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dQ],["SLOT_TYPE_FORECASTING",this.Vq],["SLOT_TYPE_IN_PLAYER",this.ID],["SLOT_TYPE_PLAYER_BYTES", this.nQ]])};this.listeners=[Z.get()];this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:null,Fe:this.HR,y4:Z.get(),kf:this.hF.get()}}; D3S=function(A,L,B,f,K){g.Y.call(this);var V=this,J=Ti(function(){return new OM(V.FD)}); g.W(this,J);var R=Ti(function(){return new c_(J)}); g.W(this,R);var Z=Ti(function(){return new w3}); g.W(this,Z);var N=Ti(function(){return new d3(A)}); g.W(this,N);var F=Ti(function(){return new MF(J,R,V.FD)}); g.W(this,F);var D=Ti(function(){return new qF}); g.W(this,D);this.AA=Ti(function(){return new SmQ(L)}); g.W(this,this.AA);this.IA=Ti(function(){return new Ne(L)}); g.W(this,this.IA);this.gi=Ti(function(){return new mO(K)}); g.W(this,this.gi);this.j$=Ti(function(){return new Wu(L)}); g.W(this,this.j$);this.FA=Ti(function(){return new vu(L)}); g.W(this,this.FA);this.h$=Ti(function(){return new qz(L)}); g.W(this,this.h$);this.QK=Ti(function(){return new Pu(L)}); g.W(this,this.QK);this.FD=Ti(function(){return new eh(L)}); g.W(this,this.FD);var I=Ti(function(){return new Z6(f)}); g.W(this,I);var d=Ti(function(){return new Ly(V.FD)}); g.W(this,d);this.E6=Ti(function(){return new IY(L)}); g.W(this,this.E6);this.hF=Ti(function(){return new B1(L,D,V.FD)}); g.W(this,this.hF);var w=Yy({hF:this.hF,FD:this.FD,Le:d}),r=w.context;this.fY=w.fY;this.hf=Ti(function(){return new d1(L,V.FD,V.j4)}); g.W(this,this.hf);this.sE=Ti(function(){return new w1(L)}); g.W(this,this.sE);this.Mp=Ti(function(){return new fY(L,V.hF)}); g.W(this,this.Mp);this.MF=Ti(function(){return new pY}); g.W(this,this.MF);w=Ti(function(){return new fS(J,F,R,V.FD,d,null,V.Mp,V.gh,V.zP,3)}); g.W(this,w);this.Az=Ti(function(){return new $G(V.FD)}); this.Fr=Ti(function(){return new zj(V.Mp,L,V.FD)}); g.W(this,this.Fr);this.j4=Ti(function(){return new oY(L,Z,V.Fr,V.hF,V.fY,V.FD)}); g.W(this,this.j4);this.VG=new Dy(N,w,B,A,this.hF,this.Mp,this.j$);g.W(this,this.VG);var h=new Up(L,this.VG,this.Mp,this.hF,this.hf);this.jo=Ti(function(){return h}); this.lG=h;this.z_=new F8(as6,yY,function(Q,l,C,O){return gXE(R.get(),Q,l,C,O)},N,F,R,d,this.FD,this.hF); g.W(this,this.z_);this.gh=new Jn(N,F,this.jo,this.hf,this.Mp,this.FD,this.j4,this.sE);g.W(this,this.gh);this.h_=new IU(N,F,this.FA,this.jo,r);g.W(this,this.h_);this.tf=new Tl(this.FD,N,F,w,this.hF,this.h_,B,this.h$);g.W(this,this.tf);this.N4=Ti(function(){return new a6(I,R,d,V.FD,V.j4,V.Mp,V.sE)}); g.W(this,this.N4);this.VB=Ti(function(){return new AE}); g.W(this,this.VB);this.HR=new sM(A,this.IA,this.FD);g.W(this,this.HR);this.vz=new H_(A);g.W(this,this.vz);this.Yg=new tn(A,this.jo,r);g.W(this,this.Yg);this.s_=new kh(A,this.FA,this.Mp,this.hF);g.W(this,this.s_);this.xN=new T0(A,this.hF);g.W(this,this.xN);this.zP=new Qx(A,this.hf,this.Mp,this.j4,this.jo,this.gh);g.W(this,this.zP);this.qF=new l4(A);g.W(this,this.qF);this.rb=new mW(A);g.W(this,this.rb);this.MU=new X8(A);g.W(this,this.MU);this.Wk=Ti(function(){return new jM}); g.W(this,this.Wk);this.E7=Ti(function(){return new g3(V.Mp)}); g.W(this,this.E7);this.dQ=Ti(function(){return new Eb(V.tf,N,J)}); g.W(this,this.dQ);this.Vq=Ti(function(){return new Ym(V.FD,V.j4,V.qF,V.Fr)}); g.W(this,this.Vq);this.nQ=Ti(function(){return new Jy(A,V.MU,V.qF,V.hF,V.sE,V.Mp,V.MF,V.j4,D,V.hf,V.Fr,V.Az,V.h$,V.FA,V.j$,V.QK,V.gi,V.E6,V.FD,Z,r)}); g.W(this,this.nQ);this.XC=Ti(function(){return new w80(V.IA,V.Mp,V.j4,Z,V.AA,B,V.FD,V.hF)}); g.W(this,this.XC);this.TH={e9:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.tf],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.VG],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.h_]]),N2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.N4],["SLOT_TYPE_FORECASTING",this.VB],["SLOT_TYPE_IN_PLAYER",this.VB],["SLOT_TYPE_PLAYER_BYTES",this.VB]]),UI:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.HR],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.s_],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.s_],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.xN],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.xN],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.qF],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rb],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.zP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.zP],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.zP],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.zP],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.zP]]),xD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wk],["SLOT_TYPE_FORECASTING",this.Wk],["SLOT_TYPE_IN_PLAYER",this.Wk],["SLOT_TYPE_PLAYER_BYTES",this.E7]]),eM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dQ],["SLOT_TYPE_FORECASTING",this.Vq],["SLOT_TYPE_PLAYER_BYTES",this.nQ],["SLOT_TYPE_IN_PLAYER",this.XC]])};this.listeners=[Z.get()]; this.DO={tf:this.tf,kX:this.FD.get(),Qj:this.gi.get(),Ou:this.Mp.get(),VG:this.VG,DQ:J.get(),yO:null,Fe:this.HR,y4:Z.get(),kf:this.hF.get()}}; Ivk=function(A,L,B,f){function K(){return V.W} g.Y.call(this);var V=this;A.K().experiments.GL("html5_dispose_of_manager_before_dependency")?(this.N=d3e(K,A,L,B,f),this.W=(new lY(this.N)).V(),g.W(this,this.W),g.W(this,this.N)):(this.N=d3e(K,A,L,B,f),g.W(this,this.N),this.W=(new lY(this.N)).V(),g.W(this,this.W))}; jp=function(A){return A.N.DO}; d3e=function(A,L,B,f,K){try{var V=L.K();if(g.SK(V))var J=new R$0(A,L,B,f,K);else if(g.Ng(V))J=new ZNE(A,L,B,f,K);else if(A$(V))J=new NJ1(A,L,B,f,K);else if(g.cH(V))J=new FAD(A,L,B,f,K);else if(g.xi(V))J=new D3S(A,L,B,f,K);else throw new TypeError("Unknown web interface");return J}catch(R){return J=L.K(),Dh("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:J.N.cplatform,interface:J.N.c,Pa1:J.N.cver,B6D:J.N.ctheme,cq1:J.N.cplayer,sGF:J.playerStyle}),new aek(A,L,B,f,K)}}; ws1=function(A){xr.call(this,A)}; psy=function(A,L,B,f,K){oA.call(this,A,{Z:"div",j:"ytp-ad-timed-pie-countdown-container",B:[{Z:"svg",j:"ytp-ad-timed-pie-countdown",C:{viewBox:"0 0 20 20"},B:[{Z:"circle",j:"ytp-ad-timed-pie-countdown-background",C:{r:"10",cx:"10",cy:"10"}},{Z:"circle",j:"ytp-ad-timed-pie-countdown-inner",C:{r:"5",cx:"10",cy:"10"}},{Z:"circle",j:"ytp-ad-timed-pie-countdown-outer",C:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",L,B,f,K);this.U=this.m4("ytp-ad-timed-pie-countdown-container");this.V=this.m4("ytp-ad-timed-pie-countdown-inner"); this.D=this.m4("ytp-ad-timed-pie-countdown-outer");this.W=Math.ceil(2*Math.PI*5);this.hide()}; yc7=function(A,L,B,f,K,V){dq.call(this,A,{Z:"div",j:"ytp-ad-action-interstitial",C:{tabindex:"0"},B:[{Z:"div",j:"ytp-ad-action-interstitial-background-container"},{Z:"div",j:"ytp-ad-action-interstitial-slot",B:[{Z:"div",j:"ytp-ad-action-interstitial-instream-info"},{Z:"div",j:"ytp-ad-action-interstitial-card",B:[{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",L,B,f);this.ZT=K;this.uj=V;this.navigationEndpoint=this.N=this.skipButton=this.W=this.actionButton=null;this.Ys=this.m4("ytp-ad-action-interstitial-instream-info");this.S4=this.m4("ytp-ad-action-interstitial-image-container");this.G=new WP(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-action-interstitial-image");g.W(this,this.G);this.G.DM(this.S4);this.wT=this.m4("ytp-ad-action-interstitial-headline-container"); this.D=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-action-interstitial-headline");g.W(this,this.D);this.D.DM(this.wT);this.qp=this.m4("ytp-ad-action-interstitial-description-container");this.V=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-action-interstitial-description");g.W(this,this.V);this.V.DM(this.qp);this.Ox=this.m4("ytp-ad-action-interstitial-background-container");this.Ex=new WP(this.api,this.layoutId,this.interactionLoggingClientData, this.Qj,"ytp-ad-action-interstitial-background",!0);g.W(this,this.Ex);this.Ex.DM(this.Ox);this.sx=this.m4("ytp-ad-action-interstitial-action-button-container");this.slot=this.m4("ytp-ad-action-interstitial-slot");this.iQ=this.m4("ytp-ad-action-interstitial-card");this.U=new Qz;g.W(this,this.U);this.hide()}; jZe=function(A){var L=g.sA("html5-video-player");L&&g.D1(L,"ytp-ad-display-override",A)}; sZL=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-overlay-slot",B:[{Z:"div",j:"ytp-ad-overlay-container"}]},"invideo-overlay",L,B,f);this.G=[];this.Ox=this.wT=this.U=this.sx=this.Ys=null;this.Ex=!1;this.D=null;this.qp=0;A=this.m4("ytp-ad-overlay-container");this.S4=new Zh(A,45E3,6E3,.3,.4);g.W(this,this.S4);this.V=gO0(this);g.W(this,this.V);this.V.DM(A);this.W=GnD(this);g.W(this,this.W);this.W.DM(A);this.N=rc7(this);g.W(this,this.N);this.N.DM(A);this.hide()}; gO0=function(A){var L=new g.DE({Z:"div",j:"ytp-ad-text-overlay",B:[{Z:"div",j:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",j:"ytp-ad-overlay-close-container",B:[{Z:"button",j:"ytp-ad-overlay-close-button",B:[$r(HN6)]}]},{Z:"div",j:"ytp-ad-overlay-title",Ir:"{{title}}"},{Z:"div",j:"ytp-ad-overlay-desc",Ir:"{{description}}"},{Z:"div",Rr:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Ir:"{{displayUrl}}"}]});A.Y(L.m4("ytp-ad-overlay-title"),"click",function(B){g1(A,L.element,B)}); A.Y(L.m4("ytp-ad-overlay-link"),"click",function(B){g1(A,L.element,B)}); A.Y(L.m4("ytp-ad-overlay-close-container"),"click",A.uK);L.hide();return L}; GnD=function(A){var L=new g.DE({Z:"div",Rr:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],B:[{Z:"div",j:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",j:"ytp-ad-overlay-close-container",B:[{Z:"button",j:"ytp-ad-overlay-close-button",B:[$r(HN6)]}]},{Z:"div",j:"ytp-ad-overlay-text-image",B:[{Z:"img",C:{src:"{{imageUrl}}"}}]},{Z:"div",j:"ytp-ad-overlay-title",Ir:"{{title}}"},{Z:"div",j:"ytp-ad-overlay-desc",Ir:"{{description}}"},{Z:"div",Rr:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Ir:"{{displayUrl}}"}]});A.Y(L.m4("ytp-ad-overlay-title"),"click",function(B){g1(A,L.element,B)}); A.Y(L.m4("ytp-ad-overlay-link"),"click",function(B){g1(A,L.element,B)}); A.Y(L.m4("ytp-ad-overlay-close-container"),"click",A.uK);A.Y(L.m4("ytp-ad-overlay-text-image"),"click",A.u31);L.hide();return L}; rc7=function(A){var L=new g.DE({Z:"div",j:"ytp-ad-image-overlay",B:[{Z:"div",j:"ytp-ad-overlay-ad-info-button-container"},{Z:"div",j:"ytp-ad-overlay-close-container",B:[{Z:"button",j:"ytp-ad-overlay-close-button",B:[$r(HN6)]}]},{Z:"div",j:"ytp-ad-overlay-image",B:[{Z:"img",C:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});A.Y(L.m4("ytp-ad-overlay-image"),"click",function(B){g1(A,L.element,B)}); A.Y(L.m4("ytp-ad-overlay-close-container"),"click",A.uK);L.hide();return L}; h$v=function(A,L){if(L){var B=g.y(L,he)||null;B==null?g.mL(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(L=g.sA("video-ads ytp-ad-module")||null,L==null?g.mL(Error("Could not locate the root ads container element to attach the ad info dialog.")):(A.wT=new g.DE({Z:"div",j:"ytp-ad-overlay-ad-info-dialog-container"}),g.W(A,A.wT),A.wT.DM(L),L=new au(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,A.wT.element,!1),g.W(A,L),L.init(Vo("ad-info-hover-text-button"),B,A.macros), A.D?(L.DM(A.D,0),L.subscribe("f",A.ags,A),L.subscribe("e",A.JZ,A),A.Y(A.D,"click",A.KH4),A.Y(g.sA("ytp-ad-button",L.element),"click",function(){var f;if(g.y((f=g.y(B.button,g.te))==null?void 0:f.serviceEndpoint,QXv))A.Ex=A.api.getPlayerState(1)===2,A.api.pauseVideo();else A.api.onAdUxClicked("ad-info-hover-text-button",A.layoutId)}),A.Ox=L):g.mL(Error("Ad info button container within overlay ad was not present."))))}else g.CE(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; tuS=function(A,L){if(bNE(A,G2)||A.api.isMinimized())return!1;var B=Iu(L.title),f=Iu(L.description);if(g.us(B)||g.us(f))return!1;A.createServerVe(A.V.element,L.trackingParams||null);A.V.updateValue("title",Iu(L.title));A.V.updateValue("description",Iu(L.description));A.V.updateValue("displayUrl",Iu(L.displayUrl));L.navigationEndpoint&&g.VB(A.G,L.navigationEndpoint);A.V.show();A.S4.start();A.logVisibility(A.V.element,!0);A.Y(A.V.element,"mouseover",function(){A.qp++}); return!0}; kny=function(A,L){if(bNE(A,G2)||A.api.isMinimized())return!1;var B=Iu(L.title),f=Iu(L.description);if(g.us(B)||g.us(f))return!1;A.createServerVe(A.W.element,L.trackingParams||null);A.W.updateValue("title",Iu(L.title));A.W.updateValue("description",Iu(L.description));A.W.updateValue("displayUrl",Iu(L.displayUrl));A.W.updateValue("imageUrl",Usv(L.image));L.navigationEndpoint&&g.VB(A.G,L.navigationEndpoint);A.sx=L.imageNavigationEndpoint||null;A.W.show();A.S4.start();A.logVisibility(A.W.element,!0); A.Y(A.W.element,"mouseover",function(){A.qp++}); return!0}; TJ8=function(A,L){if(A.api.isMinimized())return!1;var B=WM6(L.image),f=B;B.width0?(L=new ON(A.api,A.N), L.DM(A.playerOverlay),g.W(A,L)):(A=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(L)),g.mL(A))}}else g.mL(Error("addCommonComponents() needs to be called before starting countdown."))}; Mu0=function(A){function L(B){return{toString:function(){return B()}}} A.macros.SURVEY_LOCAL_TIME_EPOCH_S=L(function(){var B=new Date;return(Math.round(B.valueOf()/1E3)+-1*B.getTimezoneOffset()*60).toString()}); A.macros.SURVEY_ELAPSED_MS=L(function(){return(Date.now()-A.V).toString()})}; Ym0=function(A,L,B,f,K){h3.call(this,A,L,B,f,"survey-question-multi-select");this.qp=K;this.noneOfTheAbove=null;this.submitEndpoints=[];this.D=null;this.hide()}; U3w=function(A,L,B){A.noneOfTheAbove=new $3L(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj);A.noneOfTheAbove.DM(A.answers);A.noneOfTheAbove.init(Vo("survey-none-of-the-above"),L,B)}; vO7=function(A){A.W.forEach(function(L){L.N.toggleButton(!1)}); WA8(A,!0)}; WA8=function(A,L){var B=A.U;A=qme(A);L=L===void 0?!1:L;B.N&&(A?B.N.hide():B.N.show(),L&&B.N instanceof jm&&!B.N.U&&YS8(B.N,!1));B.W&&(A?B.W.show():B.W.hide())}; qme=function(A){return A.W.some(function(L){return L.N.isToggled()})||A.noneOfTheAbove.button.isToggled()}; bv=function(A,L,B,f,K){h3.call(this,A,L,B,f,"survey-question-single-select",function(J){V.api.K().J("supports_multi_step_on_desktop")&&K([J])}); var V=this;this.hide()}; t3=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-survey",B:[{Z:"div",j:"ytp-ad-survey-questions"}]},"survey",L,B,f);this.questions=[];this.W=[];this.conditioningRules=[];this.N=0;this.D=this.m4("ytp-ad-survey-questions");this.api.K().J("fix_survey_color_contrast_on_destop")&&this.m4("ytp-ad-survey").classList.add("color-contrast-fix");this.api.K().J("web_enable_speedmaster")&&this.m4("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; e$L=function(A,L){var B=A.W[L],f;(f=A.V)==null||f.dispose();g.y(B,s4)?Pxv(A,g.y(B,s4),A.macros):g.y(B,r9)&&x38(A,g.y(B,r9),A.macros);A.N=L}; Pxv=function(A,L,B){var f=new bv(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,A.U.bind(A));f.DM(A.D);f.init(Vo("survey-question-single-select"),L,B);A.api.K().J("supports_multi_step_on_desktop")?A.V=f:A.questions.push(f);g.W(A,f)}; x38=function(A,L,B){var f=new Ym0(A.api,A.layoutId,A.interactionLoggingClientData,A.Qj,A.U.bind(A));f.DM(A.D);f.init(Vo("survey-question-multi-select"),L,B);A.api.K().J("supports_multi_step_on_desktop")?A.V=f:A.questions.push(f);g.W(A,f)}; k4=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-survey-interstitial",B:[{Z:"div",j:"ytp-ad-survey-interstitial-contents",B:[{Z:"div",j:"ytp-ad-survey-interstitial-logo",B:[{Z:"div",j:"ytp-ad-survey-interstitial-logo-image"}]},{Z:"div",j:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",L,B,f);this.N=this.actionButton=null;this.interstitial=this.m4("ytp-ad-survey-interstitial");this.W=this.m4("ytp-ad-survey-interstitial-contents");this.text=this.m4("ytp-ad-survey-interstitial-text"); this.logoImage=this.m4("ytp-ad-survey-interstitial-logo-image");this.transition=new g.KL(this,500,!1,300);g.W(this,this.transition)}; nOQ=function(A,L){L=L&&UW(L)||"";if(g.us(L))g.CE(Error("Found ThumbnailDetails without valid image URL"));else{var B=A.style;A=A.style.cssText;var f=document.implementation.createHTMLDocument("").createElement("DIV");f.style.cssText=A;A=jxv(f.style);B.cssText=[A,'background-image:url("'+L+'");'].join("")}}; z$v=function(A){var L=g.sA("html5-video-player");L&&g.D1(L,"ytp-ad-display-override",A)}; T2=function(A,L,B,f,K,V){V=V===void 0?0:V;oA.call(this,A,{Z:"div",j:"ytp-preview-ad",B:[{Z:"div",j:"ytp-preview-ad__text"}]},"preview-ad",L,B,f,K);var J=this;this.qp=V;this.W=0;this.U=-1;this.V=this.m4("ytp-preview-ad__text");switch(this.qp){case 1:this.V.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.KL(this,400,!1,100,function(){J.hide()}); g.W(this,this.transition);this.hide()}; lv=function(A,L,B,f){dq.call(this,A,{Z:"img",j:"ytp-ad-avatar"},"ad-avatar",L,B,f);this.hide()}; uHQ=function(A){switch(A.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}}; mG=function(A,L,B,f,K,V){K=K===void 0?!1:K;V=V===void 0?!1:V;dq.call(this,A,{Z:"button",j:"ytp-ad-button-vm"},"ad-button",L,B,f);this.buttonText=this.buttonIcon=null;this.hide();this.N=K;this.W=V}; av6=function(A,L,B,f,K){oA.call(this,A,{Z:"div",Rr:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],B:[{Z:"div",j:"ytp-ad-avatar-lockup-card__avatar_and_text_container",B:[{Z:"div",j:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",L,B,f,K);this.startMilliseconds=0;this.adAvatar=new lv(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.adAvatar);iA(this.element,this.adAvatar.element,0);this.headline=new mm(this.api,this.layoutId, this.interactionLoggingClientData,this.Qj);g.W(this,this.headline);this.headline.DM(this.m4("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.description);this.description.DM(this.m4("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new mG(this.api, this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.adButton);this.adButton.DM(this.element);this.hide()}; QY=function(A,L,B,f){dq.call(this,A,{Z:"button",j:"ytp-skip-ad-button",B:[{Z:"div",j:"ytp-skip-ad-button__text"}]},"skip-button",L,B,f);var K=this;this.W=!1;this.U=this.m4("ytp-skip-ad-button__text");this.transition=new g.KL(this,500,!1,100,function(){K.hide()}); g.W(this,this.transition);this.N=new Zh(this.element,15E3,5E3,.5,.5,!0);g.W(this,this.N);this.hide()}; AJ1=function(A,L,B,f,K){oA.call(this,A,{Z:"div",j:"ytp-skip-ad"},"skip-ad",L,B,f,K);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.V=new QY(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.V);this.V.DM(this.element);this.hide()}; CY=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-visit-advertiser-link"},"visit-advertiser-link",L,B,f);this.hide()}; iv=function(A,L,B,f,K){dq.call(this,A,{Z:"div",j:"ytp-ad-player-overlay-layout",B:[{Z:"div",j:"ytp-ad-player-overlay-layout__player-card-container"},{Z:"div",j:"ytp-ad-player-overlay-layout__ad-info-container"},{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",L,B,f);this.W=K;this.wT=this.m4("ytp-ad-player-overlay-layout__player-card-container");this.N=this.m4("ytp-ad-player-overlay-layout__ad-info-container"); this.G=this.m4("ytp-ad-player-overlay-layout__skip-or-preview-container");this.qp=this.m4("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; Lpe=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-grid-card-text",B:[{Z:"div",j:"ytp-ad-grid-card-text__metadata",B:[{Z:"div",j:"ytp-ad-grid-card-text__metadata__headline"},{Z:"div",j:"ytp-ad-grid-card-text__metadata__description",B:[{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",L,B,f);this.headline=new mm(this.api,this.layoutId,this.interactionLoggingClientData, this.Qj);g.W(this,this.headline);this.headline.DM(this.m4("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new mG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0);g.W(this,this.moreInfoButton);this.moreInfoButton.DM(this.m4("ytp-ad-grid-card-text__button"))}; $4=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",L,B,f);this.N=[]}; Xl=function(A,L,B,f,K,V,J){oA.call(this,A,V,J,L,B,f,K);this.playerProgressOffsetMs=0;this.W=!1}; oPe=function(A){var L=g.sA("html5-video-player");L&&g.D1(L,"ytp-ad-display-override",A)}; BOy=function(A,L,B,f,K){Xl.call(this,A,L,B,f,K,{Z:"div",j:"ytp-display-underlay-text-grid-cards",B:[{Z:"div",j:"ytp-display-underlay-text-grid-cards__content_container",B:[{Z:"div",j:"ytp-display-underlay-text-grid-cards__content_container__header",B:[{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 $4(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.adGridCardCollection);this.adGridCardCollection.DM(this.m4("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new mG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.adButton);this.adButton.DM(this.m4("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.V=this.m4("ytp-display-underlay-text-grid-cards__content_container");this.U=this.m4("ytp-display-underlay-text-grid-cards__content_container__header")}; O$=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-ad-details-line"},"ad-details-line",L,B,f);this.N=[];this.hide()}; E$=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-image-background",B:[{Z:"img",j:"ytp-image-background-image"}]},"image-background",L,B,f);this.hide()}; fMS=function(A,L,B,f,K){oA.call(this,A,{Z:"svg",j:"ytp-timed-pie-countdown",C:{viewBox:"0 0 20 20"},B:[{Z:"circle",j:"ytp-timed-pie-countdown__background",C:{r:"10",cx:"10",cy:"10"}},{Z:"circle",j:"ytp-timed-pie-countdown__inner",C:{r:"5",cx:"10",cy:"10"}},{Z:"circle",j:"ytp-timed-pie-countdown__outer",C:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",L,B,f,K);this.V=this.m4("ytp-timed-pie-countdown__inner");this.W=Math.ceil(2*Math.PI*5);this.hide()}; c1=function(A,L,B,f){dq.call(this,A,{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout",C:{tabindex:"0"},B:[{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content",B:[{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{Z:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",B:[{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",L,B,f);this.W=null;this.U=this.m4("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.V=new Qz;g.W(this,this.V);this.hide()}; Kp1=function(A){var L=g.sA("html5-video-player");L&&g.D1(L,"ytp-ad-display-override",A)}; V0E=function(A){if(!A.adAvatar||!g.y(A.adAvatar,Me))return g.mL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!A.headline)return g.mL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!A.adBadge||!g.y(A.adBadge,Y4))return g.mL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!A.adButton||!g.y(A.adButton,U$))return g.mL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!A.adInfoRenderer|| !g.y(A.adInfoRenderer,he))return g.mL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;A=A.durationMilliseconds||0;return typeof A!=="number"||A<=0?(g.mL(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+A)),!1):!0}; W1=function(A,L){L=L===void 0?2:L;g.SN.call(this);this.api=A;this.N=null;this.handler=new Qz(this);g.W(this,this.handler);this.W=UED;this.handler.Y(this.api,"presentingplayerstatechange",this.bk);this.N=this.handler.Y(this.api,"progresssync",this.iq);this.sU=L;this.sU===1&&this.iq()}; v1=function(A,L,B){xr.call(this,A);this.api=A;this.Qj=L;this.components={};A=new g.q({Z:"div",Rr:["video-ads","ytp-ad-module"]});g.W(this,A);OR&&g.R1(A.element,"ytp-ads-tiny-mode");this.U=new dT(A.element);g.W(this,this.U);g.Wh(this.api,A.element,4);vy(B)&&(B=new g.q({Z:"div",Rr:["ytp-ad-underlay"]}),g.W(this,B),this.W=new dT(B.element),g.W(this,this.W),g.Wh(this.api,B.element,0));g.W(this,p9L())}; JJS=function(A,L){A=g.QB(A.components,L.id,null);A==null&&g.CE(Error("Component not found for element id: "+L.id));return A||null}; S1Q=function(A){g.FB.call(this,A);var L=this;this.W=null;this.created=!1;this.V=A.K().J("h5_use_refactored_get_ad_break")?new AHv(this.player):new Mz(this.player);this.U=function(){if(L.W!=null)return L.W;var f=new JHy({Fe:jp(L.N).Fe,kf:jp(L.N).kf,S:L.player,kX:jp(L.N).kX,j4:L.N.N.j4,y4:jp(L.N).y4,QK:L.N.N.QK});L.W=f.m8;return L.W}; this.N=new Ivk(this.player,this,this.V,this.U);g.W(this,this.N);var B=A.K();!I6(B)||g.xi(B)||A$(B)||(g.W(this,new v1(A,jp(this.N).Qj,jp(this.N).kX)),g.W(this,new ws1(A)))}; RAv=function(A){A.created!==A.loaded&&Dh("Created and loaded are out of sync")}; Fpk=function(A){g.FB.prototype.load.call(A);var L=jp(A.N).kX;try{A.player.getRootNode().classList.add("ad-created")}catch(R){Dh(R instanceof Error?R:String(R))}var B=A.player.getVideoData(1),f=B&&B.videoId||"",K=B&&B.getPlayerResponse()||{},V=(K&&K.adPlacements||[]).map(function(R){return R.adPlacementRenderer}),J=((K==null?void 0:K.adSlots)||[]).map(function(R){return g.y(R,Gl)}); K=K.playerConfig&&K.playerConfig.daiConfig&&K.playerConfig.daiConfig.enableDai||!1;B&&B.iC();L=ZAk(V,J,L,jp(A.N).DQ);V=B&&B.clientPlaybackNonce||"";B=B&&B.hI||!1;J=1E3*A.player.getDuration(1);NO7(A);A.N.N.lG.sj(V,J,B,L.EY,L.qS,L.EY,K,f)}; NO7=function(A){var L,B;if(B=(L=A.player.getVideoData(1))==null||!L.hI)L=A.player.K(),B=I6(L)&&!g.dY(L)&&L.playerStyle==="desktop-polymer";B&&(A=A.player.getInternalApi(),A.addEventListener("updateKevlarOrC3Companion",u$y),A.addEventListener("updateEngagementPanelAction",aGS),A.addEventListener("changeEngagementPanelVisibility",ARQ),window.addEventListener("yt-navigate-start",oL0))}; qe=function(A,L){L===A.Yr&&(A.Yr=void 0)}; Duk=function(A){var L=jp(A.N).VG,B=L.U().Br("SLOT_TYPE_PLAYER_BYTES",1);L=BV(L.hF.get(),1).clientPlaybackNonce;var f=!1;B=g.m(B);for(var K=B.next();!K.done;K=B.next()){K=K.value;var V=K.slotType==="SLOT_TYPE_PLAYER_BYTES"&&K.slotEntryTrigger instanceof GA?K.slotEntryTrigger.O5:void 0;V&&V===L&&(f&&Dh("More than 1 preroll playerBytes slot detected",K),f=!0)}f||jp(A.N).Ou.rq()}; duL=function(A){var L="";A=g.m(jp(A.N).y4.F5.keys());for(var B=A.next();!B.done;B=A.next()){B=B.value;if(B.slotType==="SLOT_TYPE_PLAYER_BYTES"&&B.u1==="core")return!0;L+=B.slotType+" "}Math.random()<.01&&Dh("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:L});return!1}; IM7=function(A){A=g.m(jp(A.N).y4.F5.values());for(var L=A.next();!L.done;L=A.next())if(L.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; uRy=function(A,L,B,f,K,V,J){B=B===void 0?[]:B;f=f===void 0?"":f;K=K===void 0?"":K;var R=jp(A.N).kX,Z=A.player.getVideoData(1);Z&&Z.getPlayerResponse();Z&&Z.iC();B=ZAk(L,B,R,jp(A.N).DQ);BZk(jp(A.N).tf,f,B.EY,B.qS,L,K,V,J)}; ZAk=function(A,L,B,f){L={EY:[],qS:L};A=g.m(A);for(var K=A.next();!K.done;K=A.next())if((K=K.value)&&K.renderer!=null){var V=K.renderer;if(!B.S.K().J("html5_enable_vod_lasr_with_notify_pacf")){var J=void 0,R=void 0,Z=void 0,N=void 0,F=f;g.y((N=V.sandwichedLinearAdRenderer)==null?void 0:N.adVideoStart,B_)?(J=g.y((Z=V.sandwichedLinearAdRenderer)==null?void 0:Z.adVideoStart,B_),J=wF6(J,F),g.cb(V.sandwichedLinearAdRenderer.adVideoStart,B_,J)):g.y((R=V.linearAdSequenceRenderer)==null?void 0:R.adStart,B_)&& (Z=g.y((J=V.linearAdSequenceRenderer)==null?void 0:J.adStart,B_),J=wF6(Z,F),g.cb(V.linearAdSequenceRenderer.adStart,B_,J))}L.EY.push(K)}return L}; g.P1=function(A){if(typeof DOMParser!="undefined")return W5(new DOMParser,ImC(A),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.x4=function(A){g.Y.call(this);this.callback=A;this.N=new HC(0,0,.4,0,.2,1,1,1);this.delay=new g.uN(this.next,window,this);g.W(this,this.delay)}; g.wzy=function(A){var L=A.K();return L.k6&&!L.V&&g.MM(L)?A.isEmbedsShortsMode()?(A=A.O7(),Math.min(A.width,A.height)>=315):!A.Gy():!1}; g.ep=function(A){g.q.call(this,{Z:"div",j:"ytp-more-videos-view",C:{tabIndex:"-1"}});var L=this;this.api=A;this.W=!0;this.V=new g.dN(this);this.N=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.U=this.scrollPosition=0;this.title=new g.q({Z:"h2",j:"ytp-related-title",Ir:"{{title}}"});this.previous=new g.q({Z:"button",Rr:["ytp-button","ytp-previous"],C:{"aria-label":"Mostrar videos sugeridos anteriores"},B:[g.jN()]});this.T=new g.x4(function(B){L.suggestions.element.scrollLeft= -B}); this.next=new g.q({Z:"button",Rr:["ytp-button","ytp-next"],C:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},B:[g.gq()]});g.W(this,this.V);this.D=A.K().U;g.W(this,this.title);this.title.DM(this.element);this.suggestions=new g.q({Z:"div",j:"ytp-suggestions"});g.W(this,this.suggestions);this.suggestions.DM(this.element);g.W(this,this.previous);this.previous.DM(this.element);this.previous.listen("click",this.Ug,this);g.W(this,this.T);pzk(this);g.W(this,this.next);this.next.DM(this.element);this.next.listen("click", this.F2,this);this.V.Y(this.api,"appresize",this.Bz);this.V.Y(this.api,"fullscreentoggled",this.Vi);this.V.Y(this.api,"videodatachange",this.onVideoDataChange);this.Bz(this.api.Pn().getPlayerSize());this.onVideoDataChange()}; pzk=function(A){for(var L={v2:0};L.v2<16;L={v2:L.v2},++L.v2){var B=new g.q({Z:"a",j:"ytp-suggestion-link",C:{href:"{{link}}",target:A.api.K().yj,"aria-label":"{{aria_label}}"},B:[{Z:"div",j:"ytp-suggestion-image"},{Z:"div",j:"ytp-suggestion-overlay",C:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},B:[{Z:"div",j:"ytp-suggestion-title",Ir:"{{title}}"},{Z:"div",j:"ytp-suggestion-author",Ir:"{{author_and_views}}"},{Z:"div",C:{"data-is-live":"{{is_live}}"},j:"ytp-suggestion-duration", Ir:"{{duration}}"}]}]});g.W(A,B);var f=B.m4("ytp-suggestion-link");g.Kv(f,"transitionDelay",L.v2/20+"s");A.V.Y(f,"click",function(K){return function(V){var J=K.v2;if(A.W){var R=A.suggestionData[J],Z=R.sessionData;A.D&&A.api.J("web_player_log_click_before_generating_ve_conversion_params")?(A.api.logClick(A.N[J].element),J=R.Ej(),R={},g.Mm(A.api,R),J=g.ip(J,R),g.wC(J,A.api,V)):g.If(V,A.api,A.D,Z||void 0)&&A.api.Dl(R.videoId,Z,R.playlistId)}else V.preventDefault(),document.activeElement.blur()}}(L)); B.DM(A.suggestions.element);A.N.push(B);A.api.createServerVe(B.element,B)}}; yJv=function(A){if(A.api.K().J("web_player_log_click_before_generating_ve_conversion_params"))for(var L=Math.floor(-A.scrollPosition/(A.U+8)),B=Math.min(L+A.columns,A.suggestionData.length)-1;L<=B;L++)A.api.logVisibility(A.N[L].element,!0)}; g.nY=function(A){var L=A.api.Zr()?32:16;L=A.X/2+L;A.next.element.style.bottom=L+"px";A.previous.element.style.bottom=L+"px";L=A.scrollPosition;var B=A.containerWidth-A.suggestionData.length*(A.U+8);g.D1(A.element,"ytp-scroll-min",L>=0);g.D1(A.element,"ytp-scroll-max",L<=B)}; gPL=function(A){for(var L=A.suggestionData.length,B=0;B>>0)+"_",K=0;return L}); W6("Symbol.iterator",function(A){if(A)return A;A=Symbol("Symbol.iterator");qC(Array.prototype,A,{configurable:!0,writable:!0,value:function(){return Owy(TyD(this))}}); return A}); W6("Promise",function(A){function L(J){this.N=0;this.V=void 0;this.W=[];this.X=!1;var R=this.U();try{J(R.resolve,R.reject)}catch(Z){R.reject(Z)}} function B(){this.N=null} function f(J){return J instanceof L?J:new L(function(R){R(J)})} if(A)return A;B.prototype.W=function(J){if(this.N==null){this.N=[];var R=this;this.V(function(){R.D()})}this.N.push(J)}; var K=g.v6.setTimeout;B.prototype.V=function(J){K(J,0)}; B.prototype.D=function(){for(;this.N&&this.N.length;){var J=this.N;this.N=[];for(var R=0;R0&&B>0;)if(f[--B]!=L[--K])return!1;return K<=0}}); W6("Array.prototype.find",function(A){return A?A:function(L,B){return E70(this,L,B).MD}}); W6("Array.prototype.entries",function(A){return A?A:function(){return gI(this,function(L,B){return[L,B]})}}); W6("Array.prototype.keys",function(A){return A?A:function(){return gI(this,function(L){return L})}}); W6("String.prototype.startsWith",function(A){return A?A:function(L,B){var f=j5(this,L,"startsWith");L+="";var K=f.length,V=L.length;B=Math.max(0,Math.min(B|0,f.length));for(var J=0;J=V}}); W6("Number.isFinite",function(A){return A?A:function(L){return typeof L!=="number"?!1:!isNaN(L)&&L!==Infinity&&L!==-Infinity}}); W6("String.prototype.repeat",function(A){return A?A:function(L){var B=j5(this,null,"repeat");if(L<0||L>1342177279)throw new RangeError("Invalid count value");L|=0;for(var f="";L;)if(L&1&&(f+=B),L>>>=1)B+=B;return f}}); W6("Object.entries",function(A){return A?A:function(L){var B=[],f;for(f in L)z8(L,f)&&B.push([f,L[f]]);return B}}); W6("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); W6("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); W6("Array.from",function(A){return A?A:function(L,B,f){B=B!=null?B:function(R){return R}; var K=[],V=typeof Symbol!="undefined"&&Symbol.iterator&&L[Symbol.iterator];if(typeof V=="function"){L=V.call(L);for(var J=0;!(V=L.next()).done;)K.push(B.call(f,V.value,J++))}else for(V=L.length,J=0;J>>0;if(L===0)return 32;var B=0;(L&4294901760)===0&&(L<<=16,B+=16);(L&4278190080)===0&&(L<<=8,B+=8);(L&4026531840)===0&&(L<<=4,B+=4);(L&3221225472)===0&&(L<<=2,B+=2);(L&2147483648)===0&&B++;return B}}); W6("Number.isNaN",function(A){return A?A:function(L){return typeof L==="number"&&isNaN(L)}}); W6("Array.prototype.values",function(A){return A?A:function(){return gI(this,function(L,B){return B})}}); W6("Array.prototype.fill",function(A){return A?A:function(L,B,f){var K=this.length||0;B<0&&(B=Math.max(0,K+B));if(f==null||f>K)f=K;f=Number(f);f<0&&(f=Math.max(0,K+f));for(B=Number(B||0);B0&&B?B.repeat(Math.ceil(L/B.length)).substring(0,L):"")+f}}); W6("Array.prototype.findIndex",function(A){return A?A:function(L,B){return E70(this,L,B).eC}}); W6("Promise.prototype.finally",function(A){return A?A:function(L){return this.then(function(B){return Promise.resolve(L()).then(function(){return B})},function(B){return Promise.resolve(L()).then(function(){throw B; })})}}); W6("Math.imul",function(A){return A?A:function(L,B){L=Number(L);B=Number(B);var f=L&65535,K=B&65535;return f*K+((L>>>16&65535)*K+f*(B>>>16&65535)<<16>>>0)|0}}); W6("Math.sign",function(A){return A?A:function(L){L=Number(L);return L===0||isNaN(L)?L:L>0?1:-1}}); W6("WeakSet",function(A){function L(B){this.N=new WeakMap;if(B){B=g.m(B);for(var f;!(f=B.next()).done;)this.add(f.value)}} if(function(){if(!A||!Object.seal)return!1;try{var B=Object.seal({}),f=Object.seal({}),K=new A([B]);if(!K.has(B)||K.has(f))return!1;K.delete(B);K.add(f);return!K.has(B)&&K.has(f)}catch(V){return!1}}())return A; L.prototype.add=function(B){this.N.set(B,!0);return this}; L.prototype.has=function(B){return this.N.has(B)}; L.prototype.delete=function(B){return this.N.delete(B)}; return L}); W6("Array.prototype.copyWithin",function(A){function L(B){B=Number(B);return B===Infinity||B===-Infinity?B:B|0} return A?A:function(B,f,K){var V=this.length;B=L(B);f=L(f);K=K===void 0?V:L(K);B=B<0?Math.max(V+B,0):Math.min(B,V);f=f<0?Math.max(V+f,0):Math.min(f,V);K=K<0?Math.max(V+K,0):Math.min(K,V);if(Bf;)--K in this?this[--B]=this[K]:delete this[--B];return this}}); UD("copyWithin",function(A){return A?A:Array.prototype.copyWithin}); W6("Array.prototype.at",function(A){return A?A:GK}); UD("at",function(A){return A?A:GK}); W6("String.prototype.at",function(A){return A?A:GK}); W6("Promise.withResolvers",function(A){return A?A:function(){var L,B;return{promise:new Promise(function(f,K){L=f;B=K}), resolve:L,reject:B}}}); W6("Array.prototype.findLastIndex",function(A){return A?A:function(L,B){return c10(this,L,B).eC}}); UD("findLastIndex",function(A){return A?A:function(L,B){return c10(this,L,B).eC}}); W6("Number.parseInt",function(A){return A||parseInt});var n8,Cf,MED;n8=n8||{};g.rI=this||self;Cf="closure_uid_"+(Math.random()*1E9>>>0);MED=0;g.Ud(Ww,Error);Ww.prototype.name="CustomError";var fwe;var eQe,Cv,K9;eQe=Array.prototype.indexOf?function(A,L){return Array.prototype.indexOf.call(A,L,void 0)}:function(A,L){if(typeof A==="string")return typeof L!=="string"||L.length!=1?-1:A.indexOf(L,0); for(var B=0;B=0;B--)if(B in A&&A[B]===L)return B;return-1}; g.yB=Array.prototype.forEach?function(A,L,B){Array.prototype.forEach.call(A,L,B)}:function(A,L,B){for(var f=A.length,K=typeof A==="string"?A.split(""):A,V=0;V=.3:this.Yb>=.5};var nx={Y7p:0,F3L:1},uF7={NONE:0,dzF:1,SdT:2};var RwC="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Oc.prototype.getValue=function(){return this.W}; g.G(Ec,Oc);Ec.prototype.V=function(A){this.W===null&&g.Tk(this.U,A)&&(this.W=A)}; g.G(ck,Oc);ck.prototype.V=function(A){this.W===null&&typeof A==="number"&&(this.W=A)}; g.G(MV,Oc);MV.prototype.V=function(A){this.W===null&&typeof A==="string"&&(this.W=A)};Uc.prototype.disable=function(){this.W=!1}; Uc.prototype.enable=function(){this.W=!0}; Uc.prototype.isEnabled=function(){return this.W}; Uc.prototype.reset=function(){this.N={};this.W=!0;this.V={}};var Jg=document,qo=window;var k_1=tf(1,!0),Ka=tf(610401301,!1);tf(899588437,!1);var TOD=tf(772657768,!0),lME=tf(513659523,!1),mu0=tf(568333945,!0),j7e=tf(1331761403,!1);tf(651175828,!1);tf(722764542,!1);tf(748402145,!1);tf(748402146,!1);var vjD=tf(748402147,!0),z2=tf(824648567,!0),XL=tf(824656860,k_1);tf(333098724,!1);tf(2147483644,!1);tf(2147483645,!1);tf(2147483646,k_1);tf(2147483647,!0);var VR=!!g.bB("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var La=String.prototype.trim?function(A){return A.trim()}:function(A){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(A)[1]},CBv=/&/g,if0=//g,XwE=/"/g,Ofw=/'/g,EW6=/\x00/g,QOL=/[\x00&<>"']/;var JF,QbD=g.rI.navigator;JF=QbD?QbD.userAgentData||null:null;var GKw=globalThis.trustedTypes,Iy;pa.prototype.toString=function(){return this.N+""};G$.prototype.toString=function(){return this.N}; var HfL=new G$("about:invalid#zClosurez");var ld8=H5("tel"),koy=H5("sms"),sOQ=[H5("data"),H5("http"),H5("https"),H5("mailto"),H5("ftp"),new sT(function(A){return/^[^:]*([/?#]|$)/.test(A)})],hwD=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;T$.prototype.toString=function(){return this.N+""};iO.prototype.toString=function(){return this.N+""};c5.prototype.toString=function(){return this.N};var Yj={};g.CeE=String.prototype.repeat?function(A,L){return A.repeat(L)}:function(A,L){return Array(L+1).join(A)};LG[" "]=function(){};var V9,Hj,b7C,iAD,$uk,Xzk,X5,OR,OAe;g.ER=Nw();g.pK=IRS();g.ns=Ry("Edge");g.F1=g.ns||g.pK;V9=Ry("Gecko")&&!(AF(g.fa(),"WebKit")&&!Ry("Edge"))&&!(Ry("Trident")||Ry("MSIE"))&&!Ry("Edge");g.h8=AF(g.fa(),"WebKit")&&!Ry("Edge");Hj=A8();b7C=vWS();g.fn=Wty();iAD=uO();$uk=Ry("iPad");Xzk=Ry("iPod");X5=ay();OR=AF(g.fa(),"KaiOS"); a:{var EP0="",cJ6=function(){var A=g.fa();if(V9)return/rv:([^\);]+)(\)|;)/.exec(A);if(g.ns)return/Edge\/([\d\.]+)/.exec(A);if(g.pK)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(A);if(g.h8)return/WebKit\/(\S+)/.exec(A);if(g.ER)return/(?:Version)[ \/]?(\S+)/.exec(A)}(); cJ6&&(EP0=cJ6?cJ6[1]:"");if(g.pK){var uv,M0S=g.rI.document;uv=M0S?M0S.documentMode:void 0;if(uv!=null&&uv>parseFloat(EP0)){OAe=String(uv);break a}}OAe=EP0}var eww=OAe,PBv={};var Ln,oX;g.de=FN();Ln=uO()||Ry("iPod");oX=Ry("iPad");g.cL=pw0();g.Z2=Di();g.yw=dt()&&!ay();var f7L=!g.pK&&!dt();g.p=g.Vl.prototype;g.p.clone=function(){return new g.Vl(this.x,this.y)}; g.p.equals=function(A){return A instanceof g.Vl&&J8(this,A)}; g.p.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.p.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.p.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.p.scale=function(A,L){this.x*=A;this.y*=typeof L==="number"?L:A;return this};g.p=g.Sr.prototype;g.p.clone=function(){return new g.Sr(this.width,this.height)}; g.p.aspectRatio=function(){return this.width/this.height}; g.p.isEmpty=function(){return!Zr(this)}; g.p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.p.scale=function(A,L){this.width*=A;this.height*=typeof L==="number"?L:A;return this};FF.prototype.toString=function(){return this.N}; var No={};new FF(No,"");var u9E=/^[a-z][a-z\d-]*$/i,aRv="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),LiE="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Bow=["action","formaction","href"];var Kie={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.p=IC.prototype;g.p.Zg=function(A){return yl(this.N,A)}; g.p.getElementsByTagName=function(A,L){return(L||this.N).getElementsByTagName(String(A))}; g.p.m4=function(A){return g.sA(A,this.N)}; g.p.setProperties=H4;g.p.createElement=function(A){return t8(this.N,A)}; g.p.appendChild=g.mk;g.p.append=function(A,L){RFQ(w_(A),A,arguments,1)}; g.p.canHaveChildren=function(A){if(A.nodeType!=1)return!1;switch(A.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.p.removeNode=g.$9;g.p.getChildren=function(A){return A.children!=void 0?A.children:Array.prototype.filter.call(A.childNodes,function(L){return L.nodeType==1})}; g.p.contains=g.XF;g.p.isFocusable=EA;Y9.prototype.now=function(){return 0}; Y9.prototype.W=function(){return 0}; Y9.prototype.V=function(){return 0}; Y9.prototype.N=function(){return 0};g.G(v4,Y9);v4.prototype.now=function(){return UA()&&qo.performance.now?qo.performance.now():Y9.prototype.now.call(this)}; v4.prototype.W=function(){return UA()&&qo.performance.memory?qo.performance.memory.totalJSHeapSize||0:Y9.prototype.W.call(this)}; v4.prototype.V=function(){return UA()&&qo.performance.memory?qo.performance.memory.usedJSHeapSize||0:Y9.prototype.V.call(this)}; v4.prototype.N=function(){return UA()&&qo.performance.memory?qo.performance.memory.jsHeapSizeLimit||0:Y9.prototype.N.call(this)};var L2Q=function(){if(!g.rI.addEventListener||!Object.defineProperty)return!1;var A=!1,L=Object.defineProperty({},"passive",{get:function(){A=!0}}); try{var B=function(){}; g.rI.addEventListener("test",B,L);g.rI.removeEventListener("test",B,L)}catch(f){}return A}();var edv=Fie("AnimationEnd"),QC=Fie("TransitionEnd");g.p=uA.prototype;g.p.getHeight=function(){return this.bottom-this.top}; g.p.clone=function(){return new uA(this.top,this.right,this.bottom,this.left)}; g.p.contains=function(A){return this&&A?A instanceof uA?A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom:A.x>=this.left&&A.x<=this.right&&A.y>=this.top&&A.y<=this.bottom:!1}; g.p.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.p.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.p.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.p.scale=function(A,L){L=typeof L==="number"?L:A;this.left*=A;this.right*=A;this.top*=L;this.bottom*=L;return this};g.p=g.oR.prototype;g.p.clone=function(){return new g.oR(this.left,this.top,this.width,this.height)}; g.p.contains=function(A){return A instanceof g.Vl?A.x>=this.left&&A.x<=this.left+this.width&&A.y>=this.top&&A.y<=this.top+this.height:this.left<=A.left&&this.left+this.width>=A.left+A.width&&this.top<=A.top&&this.top+this.height>=A.top+A.height}; g.p.getSize=function(){return new g.Sr(this.width,this.height)}; g.p.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.p.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.p.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.p.scale=function(A,L){L=typeof L==="number"?L:A;this.left*=A;this.width*=A;this.top*=L;this.height*=L;return this};var dVv={};var GkC=er(function(){var A=!1;try{var L=Object.defineProperty({},"passive",{get:function(){A=!0}}); g.rI.addEventListener("test",null,L)}catch(B){}return A});rOk.prototype.isVisible=function(){return GV(Jg)===1};var tZQ=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");tD.prototype.MQ=function(A,L,B){A=A+"//"+L+B;var f=Cs0(this)-B.length;if(f<0)return"";this.N.sort(function(N,F){return N-F}); B=null;L="";for(var K=0;K=Z.length){f-=Z.length;A+=Z;L=this.V;break}B=B==null?V:B}}f="";B!=null&&(f=""+L+"trn="+B);return A+f};var w5v=iI(function(A){return typeof A==="number"}),FL=iI(function(A){return typeof A==="string"}),p5D=iI(function(A){return typeof A==="boolean"}),eM=iI(function(A){return A!=null&&typeof A==="object"&&typeof A.then==="function"}),ik6=iI(function(A){return typeof A==="function"}),Y1E=iI(function(A){return!!A&&(typeof A==="object"||typeof A==="function")});var lw6={kbr:"allow-forms",V6T:"allow-modals",mPs:"allow-orientation-lock",b9s:"allow-pointer-lock",t6r:"allow-popups",Fo1:"allow-popups-to-escape-sandbox",UPn:"allow-presentation",w9j:"allow-same-origin",Z94:"allow-scripts",DPM:"allow-top-navigation",M64:"allow-top-navigation-by-user-activation"},Eg8=er(function(){return mVv()});X6.prototype.setInterval=function(A,L){return qo.setInterval(A,L)}; X6.prototype.clearInterval=function(A){qo.clearInterval(A)}; X6.prototype.setTimeout=function(A,L){return qo.setTimeout(A,L)}; X6.prototype.clearTimeout=function(A){qo.clearTimeout(A)};var CH=void 0,QI,N_k=typeof TextDecoder!=="undefined",xV1,PsQ=typeof String.prototype.isWellFormed==="function",qcE=typeof TextEncoder!=="undefined";var awv={},vX=null,AF6=V9||g.h8||typeof g.rI.btoa=="function";var Zay=typeof Uint8Array!=="undefined",KCS=!g.pK&&typeof btoa==="function",VSk=/[-_.]/g,BtC={"-":"+",_:"/",".":"="},PX={};qa.prototype.isEmpty=function(){return this.N==null}; qa.prototype.sizeBytes=function(){var A=eV(this);return A?A.length:0}; var RhQ;var NtQ=void 0;var Bg=typeof Symbol==="function"&&typeof Symbol()==="symbol",Uuk=or("jas",void 0,!0),Yb=or(void 0,"1oa"),og=or(void 0,Symbol()),WpL=or(void 0,"0ub"),$we=or(void 0,"0ubs"),OGL=or(void 0,"0ubsb"),POw=or(void 0,"0actk"),ar=or("m_m","Mdj",!0),Ej6=or(void 0,"vps"),vPe=or();Math.max.apply(Math,g.x7(Object.values({JAx:1,SIn:2,Ri4:4,ZaT:8,YZM:16,lZF:32,jnT:64,AOF:128,DzM:256,Ngx:512,RPF:1024,hPj:2048,k1F:4096,XAF:8192})));var DwE={hFj:{value:0,configurable:!0,writable:!0,enumerable:!1}},FCC=Object.defineProperties,fd=Bg?Uuk:"hFj",HG,q1E=[];VT(q1E,7);HG=Object.freeze(q1E);var Ad={},Jp={},A8E=Object.freeze({}),$E={},Z7={};var D7=typeof g.rI.BigInt==="function"&&typeof g.rI.BigInt(0)==="bigint";var x3=iI(function(A){return D7?A>=PeQ&&A<=xuC:A[0]==="-"?yF6(A,eA6):yF6(A,nPE)}),eA6=Number.MIN_SAFE_INTEGER.toString(),PeQ=D7?BigInt(Number.MIN_SAFE_INTEGER):void 0,nPE=Number.MAX_SAFE_INTEGER.toString(),xuC=D7?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Vrv=typeof Uint8Array.prototype.slice==="function",pd=0,yT=0,E98;var Y3=typeof BigInt==="function"?BigInt.asIntN:void 0,Tt1=typeof BigInt==="function"?BigInt.asUintN:void 0,Pg=Number.isSafeInteger,mT=Number.isFinite,q4=Math.trunc,G$e=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var cF6={};var zA7={dFj:!0};var VP;var MSQ,YTE;var B_0=d6(0),As={};yI.prototype.init=function(A,L,B,f){var K=f===void 0?{}:f;f=K.Gs===void 0?!1:K.Gs;K=K.qD===void 0?!1:K.qD;this.Gs=f;this.qD=K;A&&(A=pH(A,this.qD),this.W=A.buffer,this.D=A.N,this.U=L||0,this.V=B!==void 0?this.U+B:this.W.length,this.N=this.U)}; yI.prototype.free=function(){this.clear();ts.length<100&&ts.push(this)}; yI.prototype.clear=function(){this.W=null;this.D=!1;this.N=this.V=this.U=0;this.Gs=!1}; yI.prototype.reset=function(){this.N=this.U}; var ts=[];kE.prototype.free=function(){this.N.clear();this.W=this.V=-1;TI.length<100&&TI.push(this)}; kE.prototype.reset=function(){this.N.reset();this.U=this.N.N;this.W=this.V=-1}; var TI=[];var Ir8,p41;E0.prototype.length=function(){return this.N.length}; E0.prototype.end=function(){var A=this.N;this.N=[];return A};var xE=qh(),uJy=qh(),aME=qh(),AxE=qh(),L87=qh(),oNC=qh(),BGQ=qh(),ffE=qh(),K8D=qh(),VYL=qh(),Jx8=qh();PS.prototype.toJSON=function(){return Rg(this)}; PS.prototype.PV=function(A){return JSON.stringify(Rg(this,A))}; PS.prototype.clone=function(){var A=this.yf,L=A[fd]|0;return DZ(this,A,L)?da(this,A,!0):new this.constructor(F3(A,L,!1))}; PS.prototype[ar]=Ad;PS.prototype.toString=function(){return this.yf.toString()};var tr0=nH(function(A,L,B,f,K){if(A.W!==2)return!1;mV(A,UG(L,f,B),K);return!0},bG0),kOC=nH(function(A,L,B,f,K){if(A.W!==2)return!1; mV(A,UG(L,f,B),K);return!0},bG0),Vv=Symbol(),LC=Symbol(),fC=Symbol(),iGe=Symbol(),mo0=Symbol(),zI,uW;var Ss6=d6(0),RbL=RF(function(A,L,B){if(A.W!==1)return!1;Nl(L,B,hs(A.N));return!0},FI,K8D),ZDQ=RF(function(A,L,B){if(A.W!==1)return!1; A=hs(A.N);Nl(L,B,A===0?void 0:A);return!0},FI,K8D),NGD=RF(function(A,L,B,f){if(A.W!==1)return!1; cG(L,B,f,hs(A.N));return!0},FI,K8D),F8E=RF(function(A,L,B){if(z2)return A.W!==0?A=!1:(Nl(L,B,gi(A.N,bi)),A=!0),A; if(A.W!==0)return!1;Nl(L,B,gi(A.N,Hg));return!0},DX,BGQ),D_D=RF(function(A,L,B){if(z2)return A.W!==0?L=!1:(A=gi(A.N,bi),Nl(L,B,A===Ss6?void 0:A),L=!0),L; if(A.W!==0)return!1;A=gi(A.N,Hg);Nl(L,B,A===0?void 0:A);return!0},DX,BGQ),d_Q=RF(function(A,L,B,f){if(z2)return A.W!==0?A=!1:(cG(L,B,f,gi(A.N,bi)),A=!0),A; if(A.W!==0)return!1;cG(L,B,f,gi(A.N,Hg));return!0},DX,BGQ),IfE=RF(function(A,L,B){if(A.W!==0)return!1; Nl(L,B,GI(A.N));return!0},dF,AxE),wUQ=RF(function(A,L,B){if(A.W!==0)return!1; A=GI(A.N);Nl(L,B,A===0?void 0:A);return!0},dF,AxE),pUe=RF(function(A,L,B,f){if(A.W!==0)return!1; cG(L,B,f,GI(A.N));return!0},dF,AxE),yxk=RF(function(A,L,B){if(z2)return A.W!==1?A=!1:(Nl(L,B,HS(A.N)),A=!0),A; if(A.W!==1)return!1;Nl(L,B,s0(A.N));return!0},function(A,L,B){sCk(A,B,li6(L))},ffE),jB1=ZX(function(A,L,B){if(z2)return A.W!==1&&A.W!==2?A=!1:(L=iq(L,L[fd]|0,B),A.W==2?Do7(A,HS,L):L.push(HS(A.N)),A=!0),A; if(A.W!==1&&A.W!==2)return!1;L=iq(L,L[fd]|0,B);A.W==2?Do7(A,s0,L):L.push(s0(A.N));return!0},function(A,L,B){L=SX(li6,L,!1); if(L!=null)for(var f=0;f>>0);return!0},function(A,L,B){L=$3(L); L!=null&&L!=null&&(WS(A,B,0),Mh(A.N,L))},L87),fI=RF(function(A,L,B){if(A.W!==0)return!1; Nl(L,B,GI(A.N));return!0},function(A,L,B){L=ii(L); L!=null&&(L=parseInt(L,10),WS(A,B,0),jCk(A.N,L))},Jx8);var UoC=new Map;g.G(Wkw,do8);qAw.prototype.register=function(){LG(this)};g.G(pC,PS);pC.prototype.V=xov([0,ZDQ,D_D,-2,wUQ]);zPE.prototype.Iv=function(A){var L=this.N[A.key];if(A.valueType==="proto"){try{var B=JSON.parse(L);if(Array.isArray(B))return B}catch(f){}return A.defaultValue}return typeof L===typeof A.defaultValue?L:A.defaultValue};var arL={s7T:1,aE:2,d71:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};LnC.prototype.k8=function(A){if(typeof A==="string"&&A.length!=0){var L=this.Zx;if(L.W){A=A.split("&");for(var B=A.length-1;B>=0;B--){var f=A[B].split("="),K=decodeURIComponent(f[0]);f.length>1?(f=decodeURIComponent(f[1]),f=/^[0-9]+$/g.exec(f)?parseInt(f,10):f):f=1;(K=L.N[K])&&K.V(f)}}}};var KI=null;var HI=g.rI.performance,tY1=!!(HI&&HI.mark&&HI.measure&&HI.clearMarks),Gr=er(function(){var A;if(A=tY1){var L=L===void 0?window:L;if(KI===null){KI="";try{A="";try{A=L.top.location.hash}catch(f){A=L.location.hash}if(A){var B=A.match(/\bdeid=([\d,]+)/);KI=B?B[1]:""}}catch(f){}}L=KI;A=!!L.indexOf&&L.indexOf("1337")>=0}return A}); rF.prototype.disable=function(){this.N=!1;this.events!==this.W.google_js_reporting_queue&&(Gr()&&g.yB(this.events,JDE),this.events.length=0)}; rF.prototype.start=function(A,L){if(!this.N)return null;var B=Knw()||f47();A=new VVk(A,L,B);L="goog_"+A.label+"_"+A.uniqueId+"_start";HI&&Gr()&&HI.mark(L);return A}; rF.prototype.end=function(A){if(this.N&&typeof A.value==="number"){var L=Knw()||f47();A.duration=L-A.value;L="goog_"+A.label+"_"+A.uniqueId+"_end";HI&&Gr()&&HI.mark(L);!this.N||this.events.length>2048||this.events.push(A)}};var SzQ=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Ow=/#|$/,daw=/[?&]($|#)/;wXQ.prototype.rP=function(A,L,B,f,K){K=K||this.gU;try{var V=new tD;V.N.push(1);V.W[1]=k$("context",A);L.error&&L.meta&&L.id||(L=new WI(vI(L)));if(L.msg){var J=L.msg.substring(0,512);V.N.push(2);V.W[2]=k$("msg",J)}var R=L.meta||{};if(this.v6)try{this.v6(R)}catch(d){}if(f)try{f(R)}catch(d){}f=[R];V.N.push(3);V.W[3]=f;var Z=To1();if(Z.W){var N=Z.W.url||"";V.N.push(4);V.W[4]=k$("top",N)}var F={url:Z.N.url||""};if(Z.N.url){var D=g.bp(Z.N.url);var I=hW(D[1],null,D[3],D[4])}else I="";N=[F,{url:I}];V.N.push(5); V.W[5]=N;o$E(this.N,K,V,B)}catch(d){try{o$E(this.N,K,{context:"ecmserr",rctx:A,msg:vI(d),url:Z&&Z.N.url},B)}catch(w){}}return this.RP}; g.G(WI,BK0);var Ys,Uw,Ml=new rF;Ys=new function(){var A="https:";qo&&qo.location&&qo.location.protocol==="http:"&&(A="http:");this.W=A;this.N=.01}; Uw=new wXQ;qo&&qo.document&&(qo.document.readyState=="complete"?yDw():Ml.N&&gK(qo,"load",function(){yDw()}));var GVC=Date.now(),up=-1,nC=-1,Qrk,aF=-1,zr=!1;Ag.prototype.equals=function(A,L){return!!A&&(!(L===void 0?0:L)||this.volume==A.volume)&&this.V==A.V&&AD(this.N,A.N)&&!0};L9.prototype.Zg=function(){return this.X}; L9.prototype.equals=function(A,L){return this.U.equals(A.U,L===void 0?!1:L)&&this.X==A.X&&AD(this.V,A.V)&&AD(this.T,A.T)&&this.N==A.N&&this.D==A.D&&this.W==A.W&&this.G==A.G};var k6D={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},ft={h0:"start",e_:"firstquartile",wd:"midpoint",Cb:"thirdquartile",COMPLETE:"complete",ERROR:"error",UT:"metric",PAUSE:"pause",zR:"resume",A0:"skip",v1:"viewable_impression",D4:"mute",uP:"unmute",QH:"fullscreen",xx:"exitfullscreen",Xo:"bufferstart",j_:"bufferfinish",vj:"fully_viewable_audible_half_duration_impression",FW:"measurable_impression",tN:"abandon",Cc:"engagedview",oD:"impression",r3:"creativeview",LOADED:"loaded", ecj:"progress",CLOSE:"close",S7j:"collapse",Tkx:"overlay_resize",j7j:"overlay_unmeasurable_impression",Xuj:"overlay_unviewable_impression",YUj:"overlay_viewable_immediate_impression",iaT:"overlay_viewable_end_of_session_impression",zI:"custom_metric_viewable",Zy:"audio_audible",Mg:"audio_measurable",Dy:"audio_impression"},WqL="start firstquartile midpoint thirdquartile resume loaded".split(" "),vb1=["start","firstquartile","midpoint","thirdquartile"],idw=["abandon"],Hr={UNKNOWN:-1,h0:0,e_:1,wd:2, Cb:3,COMPLETE:4,UT:5,PAUSE:6,zR:7,A0:8,v1:9,D4:10,uP:11,QH:12,xx:13,vj:14,FW:15,tN:16,Cc:17,oD:18,r3:19,LOADED:20,zI:21,Xo:22,j_:23,Dy:27,Mg:28,Zy:29};var sRE={LFp:"addEventListener",TRr:"getMaxSize",jU4:"getScreenSize",XBx:"getState",iX4:"getVersion",wL4:"removeEventListener",T$L:"isViewable"};l4e.prototype.update=function(A){A&&A.document&&(this.X=ot(!1,A,this.isMobileDevice),this.N=ot(!0,A,this.isMobileDevice),QRQ(this,A),maE(this,A))};Rt.prototype.cancel=function(){Oz().clearTimeout(this.N);this.N=null}; Rt.prototype.schedule=function(){var A=this,L=Oz(),B=gF().N.N;this.N=L.setTimeout(yv(B,PI(143,function(){A.W++;A.V.sample()})),rD6())};g.p=Zx.prototype;g.p.j0=function(){return!1}; g.p.initialize=function(){return this.isInitialized=!0}; g.p.TX=function(){return this.N.wT}; g.p.jk=function(){return this.N.Wn}; g.p.fail=function(A,L){if(!this.Wn||(L===void 0?0:L))this.Wn=!0,this.wT=A,this.G=0,this.N!=this||F_(this)}; g.p.getName=function(){return this.N.Ys}; g.p.q2=function(){return this.N.WU()}; g.p.WU=function(){return{}}; g.p.cY=function(){return this.N.G}; g.p.ML=function(){var A=V6();A.N=ot(!0,this.V,A.isMobileDevice)}; g.p.Ri=function(){maE(V6(),this.V)}; g.p.Ju=function(){return this.U.N}; g.p.sample=function(){}; g.p.isActive=function(){return this.N.T}; g.p.Cj=function(A){var L=this.N;this.N=A.cY()>=this.G?A:this;L!==this.N?(this.T=this.N.T,F_(this)):this.T!==this.N.T&&(this.T=this.N.T,F_(this))}; g.p.M2=function(A){if(A.W===this.N){var L=!this.U.equals(A,this.yj);this.U=A;L&&$ay(this)}}; g.p.cL=function(){return this.yj}; g.p.dispose=function(){this.ZM=!0}; g.p.TL=function(){return this.ZM};g.p=Dx.prototype;g.p.observe=function(){return!0}; g.p.unobserve=function(){}; g.p.dM=function(A){this.D=A}; g.p.dispose=function(){if(!this.TL()){var A=this.W;g.Lx(A.D,this);A.yj&&this.cL()&&ivS(A);this.unobserve();this.Vj=!0}}; g.p.TL=function(){return this.Vj}; g.p.q2=function(){return this.W.q2()}; g.p.cY=function(){return this.W.cY()}; g.p.TX=function(){return this.W.TX()}; g.p.jk=function(){return this.W.jk()}; g.p.Cj=function(){}; g.p.M2=function(){this.xr()}; g.p.cL=function(){return this.ZM};g.p=It.prototype;g.p.cY=function(){return this.N.cY()}; g.p.TX=function(){return this.N.TX()}; g.p.jk=function(){return this.N.jk()}; g.p.create=function(A,L,B){var f=null;this.N&&(f=this.w4(A,L,B),Ni(this.N,f));return f}; g.p.SW=function(){return this.Xz()}; g.p.Xz=function(){return!1}; g.p.init=function(A){return this.N.initialize()?(Ni(this.N,this),this.U=A,!0):!1}; g.p.Cj=function(A){A.cY()==0&&this.U(A.TX(),this)}; g.p.M2=function(){}; g.p.cL=function(){return!1}; g.p.dispose=function(){this.D=!0}; g.p.TL=function(){return this.D}; g.p.q2=function(){return{}};wH.prototype.add=function(A,L,B){++this.V;A=new Ove(A,L,B);this.N.push(new Ove(A.W,A.N,A.V+this.V/4096));this.W=!0;return this};Uak.prototype.toString=function(){var A="//pagead2.googlesyndication.com//pagead/gen_204",L=y6(this.N);L.length>0&&(A+="?"+L);return A};g.Y.prototype.o4=!1;g.Y.prototype.TL=function(){return this.o4}; g.Y.prototype.dispose=function(){this.o4||(this.o4=!0,this.l1())}; g.Y.prototype[Symbol.dispose]=function(){this.dispose()}; g.Y.prototype.addOnDisposeCallback=function(A,L){this.o4?L!==void 0?A.call(L):A():(this.WR||(this.WR=[]),L&&(A=A.bind(L)),this.WR.push(A))}; g.Y.prototype.l1=function(){if(this.WR)for(;this.WR.length;)this.WR.shift()()};var TGk=[0,F8E,gNy,-1];GH.prototype.update=function(A,L,B){A&&(this.N+=L,this.W+=L,this.U+=L,this.V=Math.max(this.V,this.U));if(B===void 0?!A:B)this.U=0};var xa1=[1,.75,.5,.3,0];rH.prototype.update=function(A,L,B,f,K,V){V=V===void 0?!0:V;L=K?Math.min(A,L):L;for(K=0;K0&&L>=J;J=!(A>0&&A>=J)||B;this.N[K].update(V&&R,f,!V||J)}};k1.prototype.update=function(A,L,B,f){this.X=this.X!=-1?Math.min(this.X,L.Yb):L.Yb;this.qp=Math.max(this.qp,L.Yb);this.Vj=this.Vj!=-1?Math.min(this.Vj,L.s7):L.s7;this.wT=Math.max(this.wT,L.s7);this.Nl.update(L.s7,B.s7,L.N,A,f);this.S4+=A;L.Yb===0&&(this.Ys+=A);this.W.update(L.Yb,B.Yb,L.N,A,f);B=f||B.X$!=L.X$?B.isVisible()&&L.isVisible():B.isVisible();L=!L.isVisible()||L.N;this.Cr.update(B,A,L)}; k1.prototype.Ft=function(){return this.Cr.V>=this.Ox};if(Jg&&Jg.URL){var lf7=Jg.URL,m_1;a:{if(lf7){var QBy=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Vb=QBy.exec(decodeURIComponent(lf7));if(Vb){m_1=Vb[1]&&Vb[1].length>1?Vb[1].substring(1):"true";break a}}catch(A){}}m_1=""}Uw.RP=!(m_1.length>0)};var CwE=new uA(0,0,0,0);var o38=new uA(0,0,0,0);g.G(C9,g.Y);g.p=C9.prototype; g.p.l1=function(){if(this.q4.N){if(this.v$.pR){var A=this.q4.N;typeof A.removeEventListener==="function"&&A.removeEventListener("mouseover",this.v$.pR,jV());this.v$.pR=null}this.v$.uX&&(A=this.q4.N,typeof A.removeEventListener==="function"&&A.removeEventListener("mouseout",this.v$.uX,jV()),this.v$.uX=null)}this.VR&&this.VR.dispose();this.rX&&this.rX.dispose();delete this.fm;delete this.nR;delete this.uL;delete this.q4.G$;delete this.q4.N;delete this.v$;delete this.VR;delete this.rX;delete this.Zx; g.Y.prototype.l1.call(this)}; g.p.Gf=function(){return this.rX?this.rX.N:this.position}; g.p.k8=function(A){gF().k8(A)}; g.p.cL=function(){return!1}; g.p.fU=function(){return new k1}; g.p.n9=function(){return this.fm}; g.p.kF=function(A){return VT0(this,A,1E4)}; g.p.zL=function(A,L,B,f,K,V,J){this.g6||(this.Ap&&(A=this.LI(A,B,K,J),f=f&&this.Ic.Yb>=(this.X$()?.3:.5),this.dl(V,A,f),this.gN=L,A.Yb>0&&-1===this.V6&&(this.V6=L),this.ZP==-1&&this.Ft()&&(this.ZP=L),this.XM==-2&&(this.XM=ml(this.Gf())?A.Yb:-1),this.Ic=A),this.nR(this))}; g.p.dl=function(A,L,B){this.n9().update(A,L,this.Ic,B)}; g.p.uI=function(){return new go}; g.p.LI=function(A,L,B,f){B=this.uI();B.N=L;L=Oz().W;L=GV(Jg)===0?-1:L.isVisible()?0:1;B.W=L;B.Yb=this.jG(A);B.X$=this.X$();B.s7=f;return B}; g.p.jG=function(A){return this.opacity===0&&qV(this.Zx,"opac")===1?0:A}; g.p.X$=function(){return!1}; g.p.e3=function(){return this.eF4||this.aM4}; g.p.ob=function(){eX()}; g.p.gA=function(){eX()}; g.p.GU=function(){return this.requestSource}; g.p.Mo=function(){return 0}; g.p.Ft=function(){return this.fm.Ft()}; g.p.X8=function(){var A=this.Ap;A=(this.hasCompleted||this.TL())&&!A;var L=gF().W!==2||this.bVp;return this.g6||L&&A?2:this.Ft()?4:3}; g.p.J5=function(){return 0};g.$1.prototype.next=function(){return g.JN}; g.JN={done:!0,value:void 0};g.$1.prototype.iM=function(){return this};g.G(FTw,go);var Sy=d4k([void 0,1,2,3,4,8,16]),Rz=d4k([void 0,4,8,16]),iDv={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:c2("p0",Rz),p1:c2("p1",Rz),p2:c2("p2",Rz),p3:c2("p3",Rz),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Ex("mtos1",[0,2,4],!1,Rz),mtos2:Ex("mtos2",[0,2,4],!1,Rz),mtos3:Ex("mtos3",[0,2,4],!1,Rz),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:c2("a0",Rz),a1:c2("a1",Rz),a2:c2("a2",Rz),a3:c2("a3",Rz),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:c2("c0",Rz),c1:c2("c1",Rz),c2:c2("c2",Rz),c3:c2("c3",Rz),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:c2("qmtos",Sy),qnc:c2("qnc",Sy),qmv:c2("qmv",Sy),qnv:c2("qnv",Sy), 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:c2("ss0",Rz),ss1:c2("ss1",Rz),ss2:c2("ss2",Rz),ss3:c2("ss3",Rz),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"},$_Q=Object.assign({},iDv,{avid:P4("audio"),avas:"avas",vs:"vs"}),XUv={atos:"atos",avt:Ex("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(A,L){return function(B){return B[A]===void 0&&L!==void 0?L:B[A]}}("ss",0), t:"t"};W2.prototype.getValue=function(){return this.W}; W2.prototype.update=function(A,L){A>=32||(this.N&1<=.5;f9(L.volume)&&(this.U=this.U!=-1?Math.min(this.U,L.volume):L.volume,this.T=Math.max(this.T,L.volume));V&&(this.ZM+=A,this.yj+=K?A:0);this.N.update(L.Yb,B.Yb,L.N,A,f,K);this.V.update(!0,A);this.D.update(K,A);this.Wn.update(B.fullscreen,A);this.ql.update(K&&!V,A);A=Math.floor(L.mediaTime/1E3);this.JF.update(A,L.isVisible());this.cn.update(A,L.Yb>=1);this.sx.update(A, Ox(L))}};g3E.prototype.W=function(A){this.V||(this.N(A)?(A=m$v(this.yj,this.U,A),this.D|=A,A=A==0):A=!1,this.V=A)};g.G(P2,g3E);P2.prototype.N=function(){return!0}; P2.prototype.T=function(){return!1}; P2.prototype.getId=function(){var A=this,L=ls(ft,function(B){return B==A.U}); return Hr[L].toString()}; P2.prototype.toString=function(){var A="";this.T()&&(A+="c");this.V&&(A+="s");this.D>0&&(A+=":"+this.D);return this.getId()+A};g.G(x1,P2);x1.prototype.W=function(A,L){L=L===void 0?null:L;L!=null&&this.X.push(L);P2.prototype.W.call(this,A)};g.G(eq,Gyw);eq.prototype.W=function(){return null}; eq.prototype.V=function(){return[]};g.G(n9,Dx);g.p=n9.prototype;g.p.HH=function(){if(this.element){var A=this.element,L=this.W.N.V;try{try{var B=tVQ(A.getBoundingClientRect())}catch(N){B=new uA(0,0,0,0)}var f=B.right-B.left,K=B.bottom-B.top,V=yO6(A,L),J=V.x,R=V.y;var Z=new uA(Math.round(R),Math.round(J+f),Math.round(R+K),Math.round(J))}catch(N){Z=CwE.clone()}this.V=Z;this.N=XXk(this,this.V)}}; g.p.nF=function(){this.T=this.W.U.N}; g.p.Md=function(A){var L=qV(this.Zx,"od")==1;return LT8(A,this.T,this.element,L)}; g.p.zw=function(){this.timestamp=eX()}; g.p.xr=function(){this.zw();this.HH();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var A=this.element;var L=new g.Sr(A.videoWidth,A.videoHeight);A=this.N;var B=aC(A),f=A.getHeight(),K=L.width;L=L.height;K<=0||L<=0||B<=0||f<=0||(K/=L,L=B/f,A=A.clone(),K>L?(B/=K,f=(f-B)/2,f>0&&(f=A.top+f,A.top=Math.round(f),A.bottom=Math.round(f+B))):(f*=K,B=Math.round((B-f)/2),B>0&&(B=A.left+B,A.left=Math.round(B),A.right=Math.round(B+f))));this.N=A}this.nF(); A=this.N;B=this.T;A=A.left<=B.right&&B.left<=A.right&&A.top<=B.bottom&&B.top<=A.bottom?new uA(Math.max(A.top,B.top),Math.min(A.right,B.right),Math.min(A.bottom,B.bottom),Math.max(A.left,B.left)):new uA(0,0,0,0);B=A.top>=A.bottom||A.left>=A.right?new uA(0,0,0,0):A;A=this.W.U;L=K=f=0;if((this.N.bottom-this.N.top)*(this.N.right-this.N.left)>0)if(this.Md(B))B=new uA(0,0,0,0);else{f=V6().U;L=new uA(0,f.height,f.width,0);var V;f=Q6(B,(V=this.D)!=null?V:this.N);K=Q6(B,V6().N);L=Q6(B,L)}V=B.top>=B.bottom|| B.left>=B.right?new uA(0,0,0,0):Lv(B,-this.N.left,-this.N.top);Sq()||(K=f=0);this.yj=new L9(A,this.element,this.N,V,f,K,this.timestamp,L)}; g.p.getName=function(){return this.W.getName()};var ODL=new uA(0,0,0,0);g.G(zH,n9);g.p=zH.prototype;g.p.observe=function(){this.U();return!0}; g.p.M2=function(){n9.prototype.xr.call(this)}; g.p.zw=function(){}; g.p.HH=function(){}; g.p.xr=function(){this.U();n9.prototype.xr.call(this)}; g.p.Cj=function(A){A=A.isActive();A!==this.G&&(A?this.U():(V6().N=new uA(0,0,0,0),this.N=new uA(0,0,0,0),this.T=new uA(0,0,0,0),this.timestamp=-1));this.G=A};var Z9={},m46=(Z9.firstquartile=0,Z9.midpoint=1,Z9.thirdquartile=2,Z9.complete=3,Z9);g.G(at,C9);g.p=at.prototype;g.p.cL=function(){return!0}; g.p.l5=function(){return this.Rn==2}; g.p.kF=function(A){return VT0(this,A,Math.max(1E4,this.V/3))}; g.p.zL=function(A,L,B,f,K,V,J){var R=this,Z=this.X(this)||{};g.Xc(Z,K);this.V=Z.duration||this.V;this.yj=Z.isVpaid||this.yj;this.Ys=Z.isYouTube||this.Ys;Oz();this.Nl=!1;K=sr7(this,L);rpw(this)===1&&(V=K);C9.prototype.zL.call(this,A,L,B,f,Z,V,J);this.Zf&&this.Zf.V&&g.yB(this.T,function(N){N.W(R)})}; g.p.dl=function(A,L,B){C9.prototype.dl.call(this,A,L,B);o3(this).update(A,L,this.Ic,B);this.Ox=Ox(this.Ic)&&Ox(L);this.wT==-1&&this.cn&&(this.wT=this.n9().V.N);this.s6.V=0;A=this.Ft();L.isVisible()&&Ux(this.s6,"vs");A&&Ux(this.s6,"vw");f9(L.volume)&&Ux(this.s6,"am");Ox(L)?Ux(this.s6,"a"):Ux(this.s6,"mut");this.OV&&Ux(this.s6,"f");L.W!=-1&&(Ux(this.s6,"bm"),L.W==1&&(Ux(this.s6,"b"),Ox(L)&&Ux(this.s6,"umutb")));Ox(L)&&L.isVisible()&&Ux(this.s6,"avs");this.Ox&&A&&Ux(this.s6,"avw");L.Yb>0&&Ux(this.s6, "pv");Br(this,this.n9().V.N,!0)&&Ux(this.s6,"gdr");bC(this.n9().W,1)>=2E3&&Ux(this.s6,"pmx");this.Nl&&Ux(this.s6,"tvoff")}; g.p.fU=function(){return new v2}; g.p.n9=function(){return this.fm}; g.p.uI=function(){return new FTw}; g.p.LI=function(A,L,B,f){A=C9.prototype.LI.call(this,A,L,B,f===void 0?-1:f);A.fullscreen=this.OV;A.paused=this.l5();A.volume=B.volume;f9(A.volume)||(this.mH++,L=this.Ic,f9(L.volume)&&(A.volume=L.volume));B=B.currentTime;A.mediaTime=B!==void 0&&B>=0?B:-1;return A}; g.p.jG=function(A){return V6(),this.OV?1:C9.prototype.jG.call(this,A)}; g.p.Mo=function(){return 1}; g.p.getDuration=function(){return this.V}; g.p.X8=function(){return this.g6?2:h3e(this)?5:this.Ft()?4:3}; g.p.J5=function(){return this.ql?this.n9().D.V>=2E3?4:3:2}; g.p.dM=function(A){this.rX&&this.rX.dM(A)};var ENL=g.Ed();U4L.prototype.reset=function(){this.N=[];this.W=[]}; var R3=$$(U4L);g.G(Fx,It);g.p=Fx.prototype;g.p.getName=function(){return(this.W?this.W:this.N).getName()}; g.p.q2=function(){return(this.W?this.W:this.N).q2()}; g.p.cY=function(){return(this.W?this.W:this.N).cY()}; g.p.init=function(A){var L=!1;(0,g.yB)(this.V,function(B){B.initialize()&&(L=!0)}); L&&(this.U=A,Ni(this.N,this));return L}; g.p.dispose=function(){(0,g.yB)(this.V,function(A){A.dispose()}); It.prototype.dispose.call(this)}; g.p.SW=function(){return K9(this.V,function(A){return A.j0()})}; g.p.Xz=function(){return K9(this.V,function(A){return A.j0()})}; g.p.w4=function(A,L,B){return new n9(A,this.N,L,B)}; g.p.M2=function(A){this.W=A.W};var uL7={threshold:[0,.3,.5,.75,1]};g.G(Dk,n9);g.p=Dk.prototype;g.p.observe=function(){var A=this;this.qp||(this.qp=eX());if(g$v(298,function(){return a7w(A)}))return!0; this.W.fail("msf");return!1}; g.p.unobserve=function(){if(this.U&&this.element)try{this.U.unobserve(this.element),this.G?(this.G.unobserve(this.element),this.G=null):this.X&&(this.X.disconnect(),this.X=null)}catch(A){}}; g.p.xr=function(){var A=dV(this);A.length>0&&I3(this,A);n9.prototype.xr.call(this)}; g.p.HH=function(){}; g.p.Md=function(){return!1}; g.p.nF=function(){}; g.p.q2=function(){var A={};return Object.assign(this.W.q2(),(A.niot_obs=this.qp,A.niot_cbk=this.Wn,A))}; g.p.getName=function(){return"nio"};g.G(wV,It);wV.prototype.getName=function(){return"nio"}; wV.prototype.Xz=function(){return!V6().W&&this.N.N.V.IntersectionObserver!=null}; wV.prototype.w4=function(A,L,B){return new Dk(A,this.N,L,B)};g.G(pt,Zx);pt.prototype.Ju=function(){return V6().N}; pt.prototype.j0=function(){var A=Lq0();this.G!==A&&(this.N!=this&&A>this.N.G&&(this.N=this,F_(this)),this.G=A);return A==2};yJ.prototype.sample=function(){Gz(this,Zk(),!1)}; yJ.prototype.U=function(){var A=Sq(),L=eX();A?(zr||(up=L,g.yB(R3.N,function(B){var f=B.n9();f.Ex=qi(f,L,B.Rn!=1)})),zr=!0):(this.X=V7v(this,L),zr=!1,Qrk=L,g.yB(R3.N,function(B){B.Ap&&(B.n9().G=L)})); Gz(this,Zk(),!A)}; var jO=$$(yJ);var SGS=null,nt="",eO=!1;var Na8=Zuw().yz,s3=Zuw().HL;var d$v={Uz1:"visible",eEp:"audible",H51:"time",qZr:"timetype"},IZ8={visible:function(A){return/^(100|[0-9]{1,2})$/.test(A)}, audible:function(A){return A=="0"||A=="1"}, timetype:function(A){return A=="mtos"||A=="tos"}, time:function(A){return/^(100|[0-9]{1,2})%$/.test(A)||/^([0-9])+ms$/.test(A)}}; D$y.prototype.setTime=function(A,L,B){L=="ms"?(this.V=A,this.U=-1):(this.V=-1,this.U=A);this.D=B===void 0?"tos":B;return this};g.G(t5,P2);t5.prototype.getId=function(){return this.X}; t5.prototype.T=function(){return!0}; t5.prototype.N=function(A){var L=A.n9(),B=A.getDuration();return K9(this.G,function(f){if(f.N!=void 0)var K=pGS(f,L);else b:{switch(f.D){case "mtos":K=f.W?L.D.V:L.V.N;break b;case "tos":K=f.W?L.D.N:L.V.N;break b}K=0}K==0?f=!1:(f=f.V!=-1?f.V:B!==void 0&&B>0?f.U*B:-1,f=f!=-1&&K>=f);return f})};g.G(ke,wgQ);ke.prototype.N=function(A){var L=new I77;L.N=Y1(A,iDv);L.W=Y1(A,XUv);return L};g.G(Tz,P2);Tz.prototype.N=function(A){return h3e(A)};g.G($e,Gyw);g.G(Xx,P2);Xx.prototype.N=function(A){return A.n9().Ft()};g.G(O3,x1);O3.prototype.N=function(A){var L=g.zK(this.X,qV(gF().Zx,"ovms"));return!A.g6&&(A.Rn!=0||L)};g.G(E3,$e);E3.prototype.W=function(){return new O3(this.N)}; E3.prototype.V=function(){return[new Xx("viewable_impression",this.N),new Tz(this.N)]};g.G(cr,zH);cr.prototype.U=function(){var A=g.bB("ima.admob.getViewability"),L=qV(this.Zx,"queryid");typeof A==="function"&&L&&A(L)}; cr.prototype.getName=function(){return"gsv"};g.G(Mn,It);Mn.prototype.getName=function(){return"gsv"}; Mn.prototype.Xz=function(){var A=V6();gF();return A.W&&!1}; Mn.prototype.w4=function(A,L,B){return new cr(this.N,L,B)};g.G(Ye,zH);Ye.prototype.U=function(){var A=this,L=g.bB("ima.bridge.getNativeViewability"),B=qV(this.Zx,"queryid");typeof L==="function"&&B&&L(B,function(f){g.mi(f)&&A.X++;var K=f.opt_nativeViewVisibleBounds||{},V=f.opt_nativeViewHidden;A.N=kVk(f.opt_nativeViewBounds||{});var J=A.W.U;J.N=V?ODL.clone():kVk(K);A.timestamp=f.opt_nativeTime||-1;V6().N=J.N;f=f.opt_nativeVolume;f!==void 0&&(J.volume=f)})}; Ye.prototype.getName=function(){return"nis"};g.G(U3,It);U3.prototype.getName=function(){return"nis"}; U3.prototype.Xz=function(){var A=V6();gF();return A.W&&!1}; U3.prototype.w4=function(A,L,B){return new Ye(this.N,L,B)};g.G(Wr,Zx);g.p=Wr.prototype;g.p.j0=function(){return this.W.t8!=null}; g.p.WU=function(){var A={};this.JF&&(A.mraid=this.JF);this.Vj&&(A.mlc=1);A.mtop=this.W.A1M;this.X&&(A.mse=this.X);this.S4&&(A.msc=1);A.mcp=this.W.compatibility;return A}; g.p.nC=function(A){var L=g.pf.apply(1,arguments);try{return this.W.t8[A].apply(this.W.t8,L)}catch(B){xs(538,B,.01,function(f){f.method=A})}}; g.p.initialize=function(){var A=this;if(this.isInitialized)return!this.jk();this.isInitialized=!0;if(this.W.compatibility===2)return this.X="ng",this.fail("w"),!1;if(this.W.compatibility===1)return this.X="mm",this.fail("w"),!1;V6().G=!0;this.V.document.readyState&&this.V.document.readyState=="complete"?GwE(this):lC(this.V,"load",function(){Oz().setTimeout(PI(292,function(){return GwE(A)}),100)},292); return!0}; g.p.ML=function(){var A=V6(),L=bue(this,"getMaxSize");A.N=new uA(0,L.width,L.height,0)}; g.p.Ri=function(){V6().U=bue(this,"getScreenSize")}; g.p.dispose=function(){sgD(this);Zx.prototype.dispose.call(this)};var cxQ=new function(A,L){this.key=A;this.defaultValue=L===void 0?!1:L;this.valueType="boolean"}("45378663");g.p=qn.prototype;g.p.Q2=function(A){iC(A,!1);PiS(A)}; g.p.o9=function(){}; g.p.JG=function(A,L,B,f){var K=this;A=new at(qo,A,B?L:-1,7,this.fW(),this.Hv());A.Ve=f;ZfD(A.Zx);vk(A.Zx,"queryid",A.Ve);A.k8("");R38(A,function(){return K.nz.apply(K,g.x7(g.pf.apply(0,arguments)))},function(){return K.F4L.apply(K,g.x7(g.pf.apply(0,arguments)))}); (f=$$(Nn).N)&&KTC(A,f);this.V&&(A.dM(this.V),this.V=null);A.q4.G$&&$$(obL);return A}; g.p.Cj=function(A){switch(A.cY()){case 0:if(A=$$(Nn).N)A=A.N,g.Lx(A.D,this),A.yj&&this.cL()&&ivS(A);xe();break;case 2:gV()}}; g.p.M2=function(){}; g.p.cL=function(){return!1}; g.p.F4L=function(A,L){A.g6=!0;switch(A.Mo()){case 1:QgC(A,L);break;case 2:this.XQ(A)}}; g.p.TTT=function(A){var L=A.X(A);L&&(L=L.volume,A.ql=f9(L)&&L>0);kyE(A,0);return Kt(A,"start",Sq())}; g.p.G8=function(A,L,B){Gz(jO,[A],!Sq());return this.R$(A,L,B)}; g.p.R$=function(A,L,B){return Kt(A,B,Sq())}; g.p.DpL=function(A){return A9(A,"firstquartile",1)}; g.p.RFF=function(A){A.cn=!0;return A9(A,"midpoint",2)}; g.p.jrs=function(A){return A9(A,"thirdquartile",3)}; g.p.Upn=function(A){var L=A9(A,"complete",4);A5(A);return L}; g.p.wns=function(A){A.Rn=3;return Kt(A,"error",Sq())}; g.p.tJ=function(A,L,B){L=Sq();if(A.l5()&&!L){var f=A.n9(),K=eX();f.G=K}Gz(jO,[A],!L);A.l5()&&(A.Rn=1);return Kt(A,B,L)}; g.p.JFn=function(A,L){L=this.G8(A,L||{},"skip");A5(A);return L}; g.p.M44=function(A,L){iC(A,!0);return this.G8(A,L||{},"fullscreen")}; g.p.Zr4=function(A,L){iC(A,!1);return this.G8(A,L||{},"exitfullscreen")}; g.p.Pw=function(A,L,B){L=A.n9();var f=eX();L.Ex=qi(L,f,A.Rn!=1);Gz(jO,[A],!Sq());A.Rn==1&&(A.Rn=2);return Kt(A,B,Sq())}; g.p.Sxp=function(A){Gz(jO,[A],!Sq());return A.W()}; g.p.Rq=function(A){Gz(jO,[A],!Sq());this.WX(A);A5(A);return A.W()}; g.p.nz=function(){}; g.p.XQ=function(){}; g.p.WX=function(){}; g.p.J6=function(){}; g.p.xL=function(){}; g.p.Hv=function(){this.N||(this.N=this.xL());return this.N==null?new eq:new E3(this.N)}; g.p.fW=function(){return new ke};g.G(Lc,P2);Lc.prototype.N=function(A){return A.J5()==4};g.G(ox,x1);ox.prototype.N=function(A){A=A.J5();return A==3||A==4};g.G(B3,$e);B3.prototype.W=function(){return new ox(this.N)}; B3.prototype.V=function(){return[new Lc(this.N)]};g.G(fc,wgQ);fc.prototype.N=function(A){A&&(A.e===28&&(A=Object.assign({},A,{avas:3})),A.vs===4||A.vs===5)&&(A=Object.assign({},A,{vs:3}));var L=new I77;L.N=Y1(A,$_Q);L.W=Y1(A,XUv);return L};XGE.prototype.W=function(){return g.bB(this.N)};g.G(Kc,qn);g.p=Kc.prototype;g.p.o9=function(A,L){var B=this,f=$$(Nn);if(f.N!=null)switch(f.N.getName()){case "nis":var K=M7w(this,A,L);break;case "gsv":K=cdL(this,A,L);break;case "exc":K=YG7(this,A)}K||(L.opt_overlayAdElement?K=void 0:L.opt_adElement&&(K=iu8(this,A,L.opt_adElement,L.opt_osdId)));K&&K.Mo()==1&&(K.X==g.x9&&(K.X=function(V){return B.J6(V)}),Eb7(this,K,L)); return K}; g.p.J6=function(A){A.W=0;A.ZM=0;if(A.U=="h"||A.U=="n"){gF();A.sx&&(gF(),uH(this)!="h"&&uH(this));var L=g.bB("ima.common.getVideoMetadata");if(typeof L==="function")try{var B=L(A.Ve)}catch(K){A.W|=4}else A.W|=2}else if(A.U=="b")if(L=g.bB("ytads.bulleit.getVideoMetadata"),typeof L==="function")try{B=L(A.Ve)}catch(K){A.W|=4}else A.W|=2;else if(A.U=="ml")if(L=g.bB("ima.common.getVideoMetadata"),typeof L==="function")try{B=L(A.Ve)}catch(K){A.W|=4}else A.W|=2;else A.W|=1;A.W||(B===void 0?A.W|=8:B===null? A.W|=16:g.mi(B)?A.W|=32:B.errorCode!=null&&(A.ZM=B.errorCode,A.W|=64));B==null&&(B={});L=B;A.G=0;for(var f in k6D)L[f]==null&&(A.G|=k6D[f]);$$7(L,"currentTime");$$7(L,"duration");f9(B.volume)&&f9()&&(B.volume*=NaN);return B}; g.p.xL=function(){gF();uH(this)!="h"&&uH(this);var A=U$E(this);return A!=null?new XGE(A):null}; g.p.XQ=function(A){!A.N&&A.g6&&a3(this,A,"overlay_unmeasurable_impression")&&(A.N=!0)}; g.p.WX=function(A){A.hJ&&(A.Ft()?a3(this,A,"overlay_viewable_end_of_session_impression"):a3(this,A,"overlay_unviewable_impression"),A.hJ=!1)}; g.p.nz=function(){}; g.p.JG=function(A,L,B,f){if(gF().flags.Iv(cxQ)){var K=qV(gF().Zx,"mm"),V={};(K=(V[jX.w3]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",V[jX.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",V)[K])&&Pqk(this,K);this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&xs(1044,Error())}A=qn.prototype.JG.call(this,A,L,B,f);this.D&&(L=this.T,A.D==null&&(A.D=new Zdy),L.N[A.Ve]=A.D,A.D.D=ENL);return A}; g.p.Q2=function(A){A&&A.Mo()==1&&this.D&&delete this.T.N[A.Ve];return qn.prototype.Q2.call(this,A)}; g.p.Hv=function(){this.N||(this.N=this.xL());return this.N==null?new eq:this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new B3(this.N):new E3(this.N)}; g.p.fW=function(){return this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new fc:new ke}; g.p.dM=function(A,L,B,f,K){L=new uA(B,L+f,B+K,L);(A=SO(R3,A))?A.dM(L):this.V=L}; var MYQ=ql(193,eKQ,void 0,Cqk);g.hf("Goog_AdSense_Lidar_sendVastEvent",MYQ);var YsQ=PI(194,function(A,L){L=L===void 0?{}:L;A=qGE($$(Kc),A,L);return x$6(A)}); g.hf("Goog_AdSense_Lidar_getViewability",YsQ);var U_L=ql(195,function(){return UV0()}); g.hf("Goog_AdSense_Lidar_getUrlSignalsArray",U_L);var W8y=PI(196,function(){return JSON.stringify(UV0())}); g.hf("Goog_AdSense_Lidar_getUrlSignalsList",W8y);var u3L=g.eE(["//ep2.adtrafficquality.google/sodar/",""]),aZL=g.eE(["//tpc.googlesyndication.com/sodar/",""]);g.G(SW,Error);g.G(NO,g.Y);NO.prototype.Vm=function(){return this.wpc.f()}; NO.prototype.Ax=function(A){this.wpc.c(A)}; NO.prototype.d6=function(A){return this.wpc.m(Biy(A))}; NO.prototype.Mu=function(A){return this.wpc.mws(Biy(A))}; g.G(Rx,g.Y);Rx.prototype.snapshot=function(A){return this.Bo.s(Object.assign({},A.WL&&{c:A.WL},A.MC&&{s:A.MC},A.JC!==void 0&&{p:A.JC}))}; Rx.prototype.f7=function(A){this.Bo.e(A)}; Rx.prototype.xc=function(){return this.Bo.l()};g.G(Da,g.Y);Da.prototype.share=function(){if(this.TL())throw Error("E:AD");this.W++;return this}; Da.prototype.dispose=function(){--this.W||g.Y.prototype.dispose.call(this)};R4C.prototype.bM=function(A,L){this.N.bM("/client_streamz/bg/frs",A,L)}; ZH8.prototype.bM=function(A,L,B,f,K,V){this.N.bM("/client_streamz/bg/wrl",A,L,B,f,K,V)}; Niv.prototype.gI=function(A,L){this.N.Xc("/client_streamz/bg/ec",A,L)}; FVE.prototype.bM=function(A,L,B){this.N.bM("/client_streamz/bg/el",A,L,B)}; DhL.prototype.gI=function(A,L){this.N.Xc("/client_streamz/bg/cec",A,L)}; dh6.prototype.gI=function(A,L){this.N.Xc("/client_streamz/bg/po/csc",A,L)}; In0.prototype.gI=function(A,L){this.N.Xc("/client_streamz/bg/po/ctav",A,L)}; wSE.prototype.gI=function(A,L){this.N.Xc("/client_streamz/bg/po/cwsc",A,L)};g.G(pSv,PS);g.G(wm,PS);var sa=[1,2,3];var vNw=[0,sa,HDk,pUe,rx7];var qsE=[0,AN,[0,RbL,F8E]];g.G(pc,PS);var rm=[1,2,3];var PwL=[0,rm,d_Q,NGD,oz,qsE];g.G(yU,PS);var x_0=[0,AN,vNw,PwL];var eby=[0,aY];g.G(jW,PS);var nN7=[0,aY,-1,G67];var zby=[0,aY,-1,IfE,G67];g.G(gm,PS);var Ptv=[1,2,3];var ue0=[0,Ptv,oz,nN7,oz,zby,oz,eby];g.G(G1,PS);G1.prototype.vY=function(){var A=lq(this,3,zy,3,!0);Rr(A);return A[void 0]};G1.prototype.V=xov([0,aY,ue0,sBL,AN,x_0,yxk,jB1]);g.G(jKS,PS);g.p=H3.prototype;g.p.isEnabled=function(){if(!g.rI.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{rG:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.p.set=function(A,L,B){var f=!1;if(typeof B==="object"){var K=B.sameSite;f=B.secure||!1;var V=B.domain||void 0;var J=B.path||void 0;var R=B.rG}if(/[;=\s]/.test(A))throw Error('Invalid cookie name "'+A+'"');if(/[;\r\n]/.test(L))throw Error('Invalid cookie value "'+L+'"');R===void 0&&(R=-1);B=V?";domain="+V:"";J=J?";path="+J:"";f=f?";secure":"";R=R<0?"":R==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+R*1E3)).toUTCString();this.N.cookie=A+"="+L+B+J+R+f+(K!=null? ";samesite="+K:"")}; g.p.get=function(A,L){for(var B=A+"=",f=(this.N.cookie||"").split(";"),K=0,V;K=0;L--)this.remove(A[L])}; var c7=new H3(typeof document=="undefined"?null:document);bm.prototype.compress=function(A){var L,B,f,K;return g.c(function(V){switch(V.N){case 1:return L=new CompressionStream("gzip"),B=(new Response(L.readable)).arrayBuffer(),f=L.writable.getWriter(),g.X(V,f.write((new TextEncoder).encode(A)),2);case 2:return g.X(V,f.close(),3);case 3:return K=Uint8Array,g.X(V,B,4);case 4:return V.return(new K(V.W))}})}; bm.prototype.isSupported=function(A){return A<1024?!1:typeof CompressionStream!=="undefined"};g.G(t9,PS);kZ.prototype.setInterval=function(A){this.intervalMs=A;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; kZ.prototype.start=function(){var A=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){A.tick()},this.intervalMs),this.W=this.N())}; kZ.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; kZ.prototype.tick=function(){var A=this;if(this.enabled){var L=Math.max(this.N()-this.W,0);L0?B:void 0));B=ra(B,4,Cd(K>0?K:void 0));B=ra(B,5,Cd(V>0?V:void 0));K=B.yf;V=K[fd]|0;B=ST(B,V)?B:DZ(B,K,V)?da(B,K):new B.constructor(F3(K,V,!0));PG(J,g.mQ,10,B)}J=this.N.clone();B=Date.now().toString();J=ra(J,4,vg(B));A=xb(J,c3,3,A.slice());f&&(J=new T1,f=ra(J,13,Cd(f)),J= new lm,f=PG(J,T1,2,f),J=new Ea,f=PG(J,lm,1,f),f=KH(f,2,9),PG(A,Ea,18,f));L&&oK(A,14,L);return A};g.v3.prototype.W=0;g.v3.prototype.reset=function(){this.N=this.V=this.U;this.W=0}; g.v3.prototype.getValue=function(){return this.V};g.G(IF,PS);var afw=wF(IF);g.G(v97,PS);var NZ;NZ=new qAw;g.G(eW,g.Y);g.p=eW.prototype;g.p.l1=function(){xZ(this);this.W.stop();this.JF.stop();g.Y.prototype.l1.call(this)}; g.p.dispatch=function(A){if(A instanceof c3)this.log(A);else try{var L=new c3,B=A.PV();var f=BS(L,8,B);this.log(f)}catch(K){nc(this,4,1)}}; g.p.log=function(A){nc(this,2,1);if(this.S4){A=A.clone();var L=this.Cr++;A=oK(A,21,L);this.componentId&&BS(A,26,this.componentId);L=A;var B=j7(L,1);var f=f===void 0?!1:f;var K=typeof B;f=B==null?B:K==="bigint"?String(Y3(64,B)):QT(B)?K==="string"?O6(B):f?U6(B):Wg(B):void 0;f==null&&(f=Date.now(),f=Number.isFinite(f)?f.toString():"0",ra(L,1,vg(f)));(XL?tS7(j7(L,15,void 0,void 0,eT)):tS7(j7(L,15)))!=null||oK(L,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(f=this.experimentIds.clone(),PG(L, t9,16,f));nc(this,1,1);L=this.N.length-1E3+1;L>0&&(this.N.splice(0,L),this.U+=L,nc(this,3,L));this.N.push(A);this.Yq||this.W.enabled||this.W.start()}}; g.p.flush=function(A,L){var B=this;if(this.N.length===0)A&&A();else if(this.wT&&this.Wn)this.V.W=3,WVy(this);else{var f=Date.now();if(this.Ex>f&&this.ZM0&&(B.ZM=Date.now(),B.Ex=B.ZM+I);I=MX(og);var r;Bg&&I&&((r=d.yf[I])==null?void 0:r[175237375])!=null&&Ap(WpL,3);a:{var h=h===void 0?!1:h;if(MX(vPe)&&MX(og)&&void 0===vPe){r=d.yf;I=r[og];if(!I)break a;if(I=I.x8)try{I(r,175237375,zA7);break a}catch(Q){cX(Q)}}h&&(h=d.yf, (r=MX(og))&&r in h&&(h=h[r])&&delete h[175237375])}h=NZ.N?NZ.W(d,NZ.N,175237375,NZ.V):NZ.W(d,175237375,null,NZ.V);if(h=h===null?void 0:h)h=g.nu(h,1,-1),h!==-1&&(B.D=new g.v3(h<1?1:h,3E5,.1),B.W.setInterval(B.D.getValue()))}}A&&A();B.T=0},F=function(I,d){var w=q$(V,c3,3); var r=Number(fr0(V,14));g.qO(B.D);B.W.setInterval(B.D.getValue());I===401&&J&&(B.Ys=J);r&&(B.U+=r);d===void 0&&(d=B.isRetryable(I));d&&(B.N=w.concat(B.N),B.Yq||B.W.enabled||B.W.start());nc(B,7,1);L&&L("net-send-failed",I);++B.T},D=function(){B.network&&B.network.send(Z,N,F)}; R?R.then(function(I){nc(B,5,K);Z.requestHeaders["Content-Encoding"]="gzip";Z.requestHeaders["Content-Type"]="application/binary";Z.body=I;Z.Ta=2;D()},function(){nc(B,6,K); D()}):D()}}}}; g.p.isRetryable=function(A){return 500<=A&&A<600||A===401||A===0};z1.prototype.send=function(A,L,B){var f=this,K,V,J,R,Z,N,F,D,I,d;return g.c(function(w){switch(w.N){case 1:return V=(K=f.P1?new AbortController:void 0)?setTimeout(function(){K.abort()},A.timeoutMillis):void 0,g.S5(w,2,3),J=Object.assign({},{method:A.requestType, headers:Object.assign({},A.requestHeaders)},A.body&&{body:A.body},A.withCredentials&&{credentials:"include"},{signal:A.timeoutMillis&&K?K.signal:null}),g.X(w,fetch(A.url,J),5);case 5:R=w.W;if(R.status!==200){(Z=B)==null||Z(R.status);w.Ux(3);break}if((N=L)==null){w.Ux(7);break}return g.X(w,R.text(),8);case 8:N(w.W);case 7:case 3:g.F9(w);clearTimeout(V);g.DR(w,0);break;case 2:F=g.NX(w);switch((D=F)==null?void 0:D.name){case "AbortError":(I=B)==null||I(408);break;default:(d=B)==null||d(400)}w.Ux(3)}})}; z1.prototype.G4=function(){return 4};g.G(um,g.Y);um.prototype.cH=function(){this.U=!0;return this}; um.prototype.build=function(){this.network||(this.network=new z1);var A=new eW({logSource:this.logSource,DH:this.DH?this.DH:lnw,sessionIndex:this.sessionIndex,nuM:this.Gg,mf:this.V,Yq:!1,cH:this.U,Js:this.Js,network:this.network});g.W(this,A);if(this.buildLabel){var L=this.buildLabel,B=W3(A.V);BS(B,7,L)}A.X=new bm;this.componentId&&(A.componentId=this.componentId);this.je&&(A.je=this.je);this.pageId&&(A.pageId=this.pageId);this.N&&((B=this.N)?(A.experimentIds||(A.experimentIds=new t9),L=A.experimentIds, B=B.PV(),BS(L,4,B)):A.experimentIds&&ra(A.experimentIds,4));this.W&&(A.wT=A.Wn);EE6(A.V);this.network.KK&&this.network.KK(this.logSource);this.network.ihr&&this.network.ihr(A);return A};g.G(ax,g.Y);ax.prototype.flush=function(A){A=A||[];if(A.length){for(var L=new jKS,B=[],f=0;f-1?(L=A[J],B||(L.Ut=!1)):(L=new usv(L,this.src,V,!!f,K),L.Ut=B,A.push(L));return L}; g.p.remove=function(A,L,B,f){A=A.toString();if(!(A in this.listeners))return!1;var K=this.listeners[A];L=Zm(K,L,B,f);return L>-1?(JU(K[L]),g.uB(K,L),K.length==0&&(delete this.listeners[A],this.N--),!0):!1}; g.p.removeAll=function(A){A=A&&A.toString();var L=0,B;for(B in this.listeners)if(!A||B==A){for(var f=this.listeners[B],K=0;K-1?A[K]:null}; g.p.hasListener=function(A,L){var B=A!==void 0,f=B?A.toString():"",K=L!==void 0;return g.gy(this.listeners,function(V){for(var J=0;J>>0);g.Ud(g.gb,g.Y);g.gb.prototype[nED]=!0;g.p=g.gb.prototype;g.p.addEventListener=function(A,L,B,f){g.Ft(this,A,L,B,f)}; g.p.removeEventListener=function(A,L,B,f){K2E(this,A,L,B,f)}; g.p.dispatchEvent=function(A){var L=this.OM;if(L){var B=[];for(var f=1;L;L=L.OM)B.push(L),++f}L=this.Nc;f=A.type||A;if(typeof A==="string")A=new g.f8(A,L);else if(A instanceof g.f8)A.target=A.target||L;else{var K=A;A=new g.f8(f,L);g.Xc(A,K)}K=!0;var V;if(B)for(V=B.length-1;!A.W&&V>=0;V--){var J=A.currentTarget=B[V];K=G9(J,f,!0,A)&&K}A.W||(J=A.currentTarget=L,K=G9(J,f,!0,A)&&K,A.W||(K=G9(J,f,!1,A)&&K));if(B)for(V=0;!A.W&&V0){this.W--;var A=this.N;this.N=A.next;A.next=null}else A=this.V();return A};var HD;bX.prototype.add=function(A,L){var B=NFE.get();B.set(A,L);this.W?this.W.next=B:this.N=B;this.W=B}; bX.prototype.remove=function(){var A=null;this.N&&(A=this.N,this.N=this.N.next,this.N||(this.W=null),A.next=null);return A}; var NFE=new rb(function(){return new tU},function(A){return A.reset()}); tU.prototype.set=function(A,L){this.N=A;this.scope=L;this.next=null}; tU.prototype.reset=function(){this.next=this.scope=this.N=null};var kA,T9=!1,Rtk=new bX;F26.prototype.reset=function(){this.context=this.W=this.V=this.N=null;this.U=!1}; var DlE=new rb(function(){return new F26},function(A){A.reset()}); g.QX.prototype.then=function(A,L,B){return rWv(this,sE(typeof A==="function"?A:null),sE(typeof L==="function"?L:null),B)}; g.QX.prototype.$goog_Thenable=!0;g.p=g.QX.prototype;g.p.finally=function(A){var L=this;A=sE(A);return new g.QX(function(B,f){pI7(L,function(K){A();B(K)},function(K){A(); f(K)})})}; g.p.c9=function(A,L){return rWv(this,null,sE(A),L)}; g.p.catch=g.QX.prototype.c9;g.p.cancel=function(A){if(this.N==0){var L=new EE(A);g.lX(function(){yWQ(this,L)},this)}}; g.p.DVp=function(A){this.N=0;mN(this,2,A)}; g.p.MgF=function(A){this.N=0;mN(this,3,A)}; g.p.pG=function(){for(var A;A=jFQ(this);)gsv(this,A,this.N,this.X);this.T=!1}; var bCC=cX;g.Ud(EE,Ww);EE.prototype.name="cancel";g.Ud(g.cD,g.gb);g.p=g.cD.prototype;g.p.enabled=!1;g.p.x6=null;g.p.setInterval=function(A){this.LV=A;this.x6&&this.enabled?(this.stop(),this.start()):this.x6&&this.stop()}; g.p.y2L=function(){if(this.enabled){var A=g.Ed()-this.h3;A>0&&A0&&(this.getStatus(),this.T=setTimeout(this.gZ.bind(this), this.Wn)),this.getStatus(),this.yj=!0,this.N.send(A),this.yj=!1}catch(J){this.getStatus(),YwC(this,J)}}; g.p.gZ=function(){typeof n8!="undefined"&&this.N&&(this.U="Timed out after "+this.Wn+"ms, aborting",this.W=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.p.abort=function(A){this.N&&this.V&&(this.getStatus(),this.V=!1,this.D=!0,this.N.abort(),this.D=!1,this.W=A||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ea(this))}; g.p.l1=function(){this.N&&(this.V&&(this.V=!1,this.D=!0,this.N.abort(),this.D=!1),ea(this,!0));g.xA.oy.l1.call(this)}; g.p.lN=function(){this.TL()||(this.Vj||this.yj||this.D?Ul0(this):this.L1L())}; g.p.L1L=function(){Ul0(this)}; g.p.isActive=function(){return!!this.N}; g.p.isComplete=function(){return g.z9(this)==4}; g.p.getStatus=function(){try{return g.z9(this)>2?this.N.status:-1}catch(A){return-1}}; g.p.getResponseHeader=function(A){if(this.N&&this.isComplete())return A=this.N.getResponseHeader(A),A===null?void 0:A}; g.p.getLastError=function(){return typeof this.U==="string"?this.U:String(this.U)};oQ.prototype.send=function(A,L,B){L=L===void 0?function(){}:L; B=B===void 0?function(){}:B; cWe(A.url,function(f){f=f.target;uX(f)?L(g.a$(f)):B(f.getStatus())},A.requestType,A.body,A.requestHeaders,A.timeoutMillis,A.withCredentials)}; oQ.prototype.G4=function(){return 1};f2.prototype.done=function(){this.logger.pZ(this.event,Bc()-this.startTime)}; g.G(K2,Da);g.G(Ju,K2);g.p=Ju.prototype;g.p.k0=function(){}; g.p.zB=function(){}; g.p.pZ=function(){}; g.p.M4=function(){}; g.p.eL=function(){}; g.p.VO=function(A,L,B,f){return f}; g.p.YG=function(){}; g.p.jc=function(){}; g.p.iy=function(){}; g.G(SA,K2);g.p=SA.prototype;g.p.update=function(A){this.logger.dispose();this.logger=A}; g.p.zB=function(A){this.logger.zB(A)}; g.p.pZ=function(A,L){this.logger.pZ(A,L)}; g.p.M4=function(A){this.logger.M4(A)}; g.p.eL=function(){this.logger.eL()}; g.p.VO=function(A,L,B,f){return this.logger.VO(A,L,B,f)}; g.p.YG=function(A){this.logger.YG(A)}; g.p.jc=function(A){this.logger.jc(A)}; g.p.iy=function(A){this.logger.iy(A)}; g.p.k0=function(A){this.logger.k0(A)}; g.G(PpS,g.Y);g.G(RQ,K2);g.p=RQ.prototype;g.p.k0=function(A){this.metrics.C01.bM(A,this.NP)}; g.p.zB=function(A){this.metrics.eventCount.gI(A,this.NP)}; g.p.pZ=function(A,L){this.metrics.ud.bM(L,A,this.NP)}; g.p.M4=function(A){this.metrics.errorCount.gI(A,this.NP)}; g.p.VO=function(A,L,B,f){function K(R){if(!V.TL()){var Z=Bc()-J;V.metrics.pIs.bM(Z,A,B,R,L,V.NP)}} var V=this,J=Bc();f.then(function(){return void K(0)},function(R){return void K(R instanceof WD?R.code:-1)}); return f}; g.p.YG=function(A){this.metrics.QcL.gI(A,this.NP)}; g.p.jc=function(A){this.metrics.Xm.gI(A,this.NP)}; g.p.iy=function(A){this.metrics.eIr.gI(A,this.NP)}; g.G(ZH,RQ);ZH.prototype.eL=function(){xlQ(this.N)};g.G(NW,PS);g.G(Fm,PS);g.G(DH,PS);var JgD=wF(DH),ns8=function(A){return iI(function(L){return L instanceof A&&!ST(L)})}(DH); DH.messageId="bfkj";g.G(Fu,PS);g.G(ds,PS);var ztL=wF(ds);g.G(ws,g.Y);ws.prototype.snapshot=function(A){if(this.TL())throw Error("Already disposed");this.logger.zB("n");var L=this.logger.share();return this.V.then(function(B){var f=B.w9;return new Promise(function(K){var V=new f2(L,"n");f(function(J){V.done();L.k0(J.length);L.eL();L.dispose();K(J)},[A.WL, A.MC,A.qg,A.JC])})})}; ws.prototype.ev=function(A){var L=this;if(this.TL())throw Error("Already disposed");this.logger.zB("n");var B=Vq(this.logger,function(){return L.U([A.WL,A.MC,A.qg,A.JC])},"n"); this.logger.k0(B.length);this.logger.eL();return B}; ws.prototype.f7=function(A){this.V.then(function(L){var B;(B=L.ky4)==null||B(A)})}; ws.prototype.xc=function(){return this.logger.share()};g.G(jA,PS);g.G(gs,PS);GX.prototype.Ix=function(A){return NH0(this,A,new Ju,0)};g.G(rs,g.Y);g.p=rs.prototype;g.p.snapshot=function(A){var L=this;return g.c(function(B){switch(B.N){case 1:if(L.TL())throw Error("Already disposed");if(L.W||L.X){B.Ux(2);break}return g.X(B,L.D.promise,2);case 2:if(!L.W){B.Ux(4);break}return g.X(B,L.W.snapshot(A),5);case 5:return B.return(B.W);case 4:throw L.X;}})}; g.p.pause=function(){this.TL()||this.isPaused||(this.isPaused=!0,this.N&&this.N.pause())}; g.p.resume=function(){!this.TL()&&this.isPaused&&(this.isPaused=!1,this.N&&this.N.resume())}; g.p.checkForRefresh=function(){var A=this;return g.c(function(L){if(A.TL())throw Error("Already disposed");var B;if(B=A.N)B=A.N,B.isExpired()?(b0(B),B.xv(0),B=!0):B=!1,B=!B;return B?L.Ux(0):g.X(L,A.V.promise,0)})}; g.p.f7=function(A){var L,B;(L=this.W)==null||(B=L.f7)==null||B.call(L,A)}; g.p.handleError=function(A){if(!this.TL()){this.X=A;this.D.resolve();var L,B;(B=(L=this.options).r$1)==null||B.call(L,A)}}; g.p.xc=function(){return this.logger.share()}; var diE={s0T:432E5,dS:3E5,wu:10,v7:1E4,OD:3E4,lgL:3E4,r1T:6E4,CG:1E3,fG:6E4,sD:6E5,xa:.25,At:2,maxAttempts:10};hu.prototype.pause=function(){this.isPaused||(this.isPaused=!0,b0(this))}; hu.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())}; hu.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var o79,H90=(o79=Math.imul)!=null?o79:function(A,L){return A*L|0},kM=[196, 200,224,18];TX.prototype.PV=function(){return String(this.N)+","+this.W.join()}; TX.prototype.h1=function(A,L){var B=void 0;if(this.W[this.N]!==A){var f=this.W.indexOf(A);f!==-1?(this.W.splice(f,1),f0;)L[B++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(A%62),A=Math.floor(A/62);return L.join("")}};g.G(m7,g.Y);m7.prototype.Mu=function(A,L){var B=this.d6(A);L==null||L(B);return Vq(this.logger,function(){return g.Y$(B,2)},this.W)}; g.G(i0,m7);i0.prototype.d6=function(A,L){var B=this;this.logger.zB(this.N);++this.D>=this.T&&this.V.resolve();var f=A();A=Vq(this.logger,function(){return B.U(f)},"C"); if(A===void 0)throw new SW(17,"YNJ:Undefined");if(!(A instanceof Uint8Array))throw new SW(18,"ODM:Invalid");L==null||L(A);return A}; g.G($M,m7);$M.prototype.d6=function(){return this.U}; g.G(Xm,m7);Xm.prototype.d6=function(){var A=this;return Vq(this.logger,function(){return WX(A.U)},"d")}; Xm.prototype.Mu=function(){return this.U}; g.G(Ok,m7);Ok.prototype.d6=function(){if(this.U)return this.U;this.U=O9e(this,function(A){return"_"+X2y(A)}); return O9e(this,function(A){return A})}; g.G(cc,m7);cc.prototype.d6=function(){var A=Math.floor(Date.now()/1E3),L=[Math.random()*255,Math.random()*255],B=L.concat([this.U&255,this.clientState],[A>>24&255,A>>16&255,A>>8&255,A&255]);A=new Uint8Array(2+B.length);A[0]=34;A[1]=B.length;A.set(B,2);B=A.subarray(2);for(var f=L=L.length;f150))try{this.cache=new miS(A,this.logger)}catch(L){this.reportError(new SW(22,"GBJ:init",L))}}; g.p.reportError=function(A){this.logger.M4(A.code);this.onError(A);return A}; var MqQ=function(A){return iI(function(L){if(!Y1E(L))return!1;for(var B=g.m(Object.entries(A)),f=B.next();!f.done;f=B.next()){var K=g.m(f.value);f=K.next().value;K=K.next().value;if(!(f in L)){if(K.NM4===!0)continue;return!1}if(!K(L[f]))return!1}return!0})}({Bo:function(A){return iI(function(L){return L instanceof A})}(rs)},"");var TbC=(new Date).getTime();g.G(Wc,PS);var Byf=wF(Wc);zrk.prototype.getMetadata=function(){return this.metadata};vc.prototype.getMetadata=function(){return this.metadata}; vc.prototype.getStatus=function(){return this.status};qW.prototype.T=function(A,L){L=L===void 0?{}:L;return new zrk(A,this,L)}; qW.prototype.getName=function(){return this.name};var fSR=new qW("/google.internal.waa.v1.Waa/Create",jA,Wc,function(A){return A.PV()},Byf);g.G(Pc,PS);var Rr1=new qW("/google.internal.waa.v1.Waa/GenerateIT",gs,Pc,function(A){return A.PV()},wF(Pc));var tO6=new Set(["SAPISIDHASH","APISIDHASH"]);g.G(xM,PS);xM.prototype.getValue=function(){var A=j7(this,2);if(Array.isArray(A)||A instanceof PS)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return QP(this,2)};g.G(eA,PS);eA.prototype.getMessage=function(){return uq(this,2)}; var BVE=wF(eA);n2.prototype.removeListener=function(A,L){A==="data"?Ke(this.W,L):A==="metadata"?Ke(this.U,L):A==="status"?Ke(this.D,L):A==="end"?Ke(this.V,L):A==="error"&&Ke(this.N,L);return this}; n2.prototype.cancel=function(){this.xhr.abort()}; g.G(axe,Error);g.Ud(g.Vy,OCQ);g.Vy.prototype.N=function(){var A=new JX(this.U,this.V);this.W&&A.setCredentialsMode(this.W);return A}; g.Vy.prototype.setCredentialsMode=function(A){this.W=A}; g.Ud(JX,g.gb);g.p=JX.prototype;g.p.open=function(A,L){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.qp=A;this.Wn=L;this.readyState=1;SF(this)}; g.p.send=function(A){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.G.signal.aborted)throw this.abort(),Error("Request was aborted.");this.N=!0;var L={headers:this.yj,method:this.qp,credentials:this.D,cache:void 0,signal:this.G.signal};A&&(L.body=A);(this.Vj||g.rI).fetch(new Request(this.Wn,L)).then(this.brF.bind(this),this.PS.bind(this))}; g.p.abort=function(){this.response=this.responseText="";this.yj=new Headers;this.status=0;this.G.abort("Request was aborted.");this.V&&this.V.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.N&&this.readyState!=4&&(this.N=!1,Ra(this));this.readyState=0}; g.p.brF=function(A){if(this.N&&(this.U=A,this.W||(this.status=this.U.status,this.statusText=this.U.statusText,this.W=A.headers,this.readyState=2,SF(this)),this.N&&(this.readyState=3,SF(this),this.N)))if(this.responseType==="arraybuffer")A.arrayBuffer().then(this.V4p.bind(this),this.PS.bind(this));else if(typeof g.rI.ReadableStream!=="undefined"&&"body"in A){this.V=A.body.getReader();if(this.T){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.X=new TextDecoder;fkD(this)}else A.text().then(this.mpj.bind(this),this.PS.bind(this))}; g.p.NTr=function(A){if(this.N){if(this.T&&A.value)this.response.push(A.value);else if(!this.T){var L=A.value?A.value:new Uint8Array(0);if(L=this.X.decode(L,{stream:!A.done}))this.response=this.responseText+=L}A.done?Ra(this):SF(this);this.readyState==3&&fkD(this)}}; g.p.mpj=function(A){this.N&&(this.response=this.responseText=A,Ra(this))}; g.p.V4p=function(A){this.N&&(this.response=A,Ra(this))}; g.p.PS=function(){this.N&&Ra(this)}; g.p.setRequestHeader=function(A,L){this.yj.append(A,L)}; g.p.getResponseHeader=function(A){return this.W?this.W.get(A.toLowerCase())||"":""}; g.p.getAllResponseHeaders=function(){if(!this.W)return"";for(var A=[],L=this.W.entries(),B=L.next();!B.done;)B=B.value,A.push(B[0]+": "+B[1]),B=L.next();return A.join("\r\n")}; g.p.setCredentialsMode=function(A){this.D=A}; Object.defineProperty(JX.prototype,"withCredentials",{get:function(){return this.D==="include"}, set:function(A){this.setCredentialsMode(A?"include":"same-origin")}});g.ZS.prototype.toString=function(){var A=[],L=this.D;L&&A.push(Ia(L,KvB,!0),":");var B=this.N;if(B||L=="file")A.push("//"),(L=this.G)&&A.push(Ia(L,KvB,!0),"@"),A.push(g.v5(B).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),B=this.V,B!=null&&A.push(":",String(B));if(B=this.W)this.N&&B.charAt(0)!="/"&&A.push("/"),A.push(Ia(B,B.charAt(0)=="/"?VEW:J1w,!0));(B=this.U.toString())&&A.push("?",B);(B=this.T)&&A.push("#",Ia(B,SDt));return A.join("")}; g.ZS.prototype.resolve=function(A){var L=this.clone(),B=!!A.D;B?g.Zt(L,A.D):B=!!A.G;B?L.G=A.G:B=!!A.N;B?g.NC(L,A.N):B=A.V!=null;var f=A.W;if(B)g.NT(L,A.V);else if(B=!!A.W){if(f.charAt(0)!="/")if(this.N&&!this.W)f="/"+f;else{var K=L.W.lastIndexOf("/");K!=-1&&(f=L.W.slice(0,K+1)+f)}K=f;if(K==".."||K==".")f="";else if(g.a8(K,"./")||g.a8(K,"/.")){f=zk(K,"/");K=K.split("/");for(var V=[],J=0;J1||V.length==1&&V[0]!="")&&V.pop(), f&&J==K.length&&V.push("")):(V.push(R),f=!0)}f=V.join("/")}else f=K}B?L.W=f:B=A.U.toString()!=="";B?FO(L,A.U.clone()):B=!!A.T;B&&(L.T=A.T);return L}; g.ZS.prototype.clone=function(){return new g.ZS(this)}; var KvB=/[#\/\?@]/g,J1w=/[#\?:]/g,VEW=/[#\?]/g,RN8=/[#\?@]/g,SDt=/#/g;g.p=dl.prototype;g.p.add=function(A,L){pe(this);this.V=null;A=yy(this,A);var B=this.N.get(A);B||this.N.set(A,B=[]);B.push(L);this.W=this.W+1;return this}; g.p.remove=function(A){pe(this);A=yy(this,A);return this.N.has(A)?(this.V=null,this.W=this.W-this.N.get(A).length,this.N.delete(A)):!1}; g.p.clear=function(){this.N=this.V=null;this.W=0}; g.p.isEmpty=function(){pe(this);return this.W==0}; g.p.forEach=function(A,L){pe(this);this.N.forEach(function(B,f){B.forEach(function(K){A.call(L,K,f,this)},this)},this)}; g.p.F1=function(){pe(this);for(var A=Array.from(this.N.values()),L=Array.from(this.N.keys()),B=[],f=0;f0?String(A[0]):L}; g.p.toString=function(){if(this.V)return this.V;if(!this.N)return"";for(var A=[],L=Array.from(this.N.keys()),B=0;B>>3;V.V!=1&&V.V!=2&&V.V!=15&&rl(V,J,R,"unexpected tag");V.N=1;V.W=0;V.U=0} function B(Z){V.U++;V.U==5&&Z&240&&rl(V,J,R,"message length too long");V.W|=(Z&127)<<(V.U-1)*7;Z&128||(V.N=2,V.G=0,typeof Uint8Array!=="undefined"?V.D=new Uint8Array(V.W):V.D=Array(V.W),V.W==0&&K())} function f(Z){V.D[V.G++]=Z;V.G==V.W&&K()} function K(){if(V.V<15){var Z={};Z[V.V]=V.D;V.X.push(Z)}V.N=0} for(var V=this,J=A instanceof Array?A:new Uint8Array(A),R=0;R0?A:null};sB.prototype.isInputValid=function(){return this.N===null}; sB.prototype.SE=function(){return this.N}; sB.prototype.h9=function(){return!1}; sB.prototype.parse=function(A){this.N!==null&&prE(this,A,"stream already broken");var L=null;try{var B=this.V;B.V||wrv(B,A,"stream already broken");B.N+=A;var f=Math.floor(B.N.length/4);if(f==0)var K=null;else{try{var V=ojD(B.N.slice(0,f*4))}catch(J){wrv(B,B.N,J.message)}B.W+=f*4;B.N=B.N.slice(f*4);K=V}L=K===null?null:this.U.parse(K)}catch(J){prE(this,A,J.message)}this.W+=A.length;return L};g.p=hX.prototype;g.p.isInputValid=function(){return this.D!=3}; g.p.SE=function(){return this.yj}; g.p.done=function(){return this.D===2}; g.p.h9=function(){return!1}; g.p.parse=function(A){function L(){for(;D0;)if(d=A[D++],V.G===4?V.G=0:V.G++,!d)break a;if(d==='"'&&!V.X){V.N=f();break}if(d==="\\"&&!V.X&&(V.X=!0,d=A[D++], !d))break;if(V.X)if(V.X=!1,d==="u"&&(V.G=1),d=A[D++])continue;else break;R.lastIndex=D;d=R.exec(A);if(!d){D=A.length+1;break}D=d.index+1;d=A[d.index];if(!d)break}V.V+=D-w;continue;case 9:if(!d)continue;d==="r"?V.N=10:bN(V,A,D);continue;case 10:if(!d)continue;d==="u"?V.N=11:bN(V,A,D);continue;case 11:if(!d)continue;d==="e"?V.N=f():bN(V,A,D);continue;case 12:if(!d)continue;d==="a"?V.N=13:bN(V,A,D);continue;case 13:if(!d)continue;d==="l"?V.N=14:bN(V,A,D);continue;case 14:if(!d)continue;d==="s"?V.N=15: bN(V,A,D);continue;case 15:if(!d)continue;d==="e"?V.N=f():bN(V,A,D);continue;case 16:if(!d)continue;d==="u"?V.N=17:bN(V,A,D);continue;case 17:if(!d)continue;d==="l"?V.N=18:bN(V,A,D);continue;case 18:if(!d)continue;d==="l"?V.N=f():bN(V,A,D);continue;case 19:d==="."?V.N=20:bN(V,A,D);continue;case 20:if("0123456789.eE+-".indexOf(d)!==-1)continue;else D--,V.V--,V.N=f();continue;default:bN(V,A,D)}}} function f(){var d=J.pop();return d!=null?d:1} function K(d){V.W>1||(d||(d=F===-1?V.U+A.substring(N,D):A.substring(F,D)),V.Wn?V.T.push(d):V.T.push(JSON.parse(d)),F=D)} for(var V=this,J=V.qp,R=V.Vj,Z=A.length,N=0,F=-1,D=0;D0?(I=V.T,V.T=[],I):null}return null};tX.prototype.isInputValid=function(){return this.D===null}; tX.prototype.SE=function(){return this.D}; tX.prototype.h9=function(){return!1}; tX.prototype.parse=function(A){function L(Z){V.W=6;V.D="The stream is broken @"+V.N+"/"+J+". Error: "+Z+". With input:\n";throw Error(V.D);} function B(){V.V=new hX({nh4:!0,q6:!0})} function f(Z){if(Z)for(var N=0;N1)&&L("extra status: "+Z);V.T=!0;var N={};N[2]=Z[0];V.U.push(N)}} for(var V=this,J=0;J0?(A=V.U,V.U=[],A):null};kw.prototype.HM=function(){return this.N}; kw.prototype.getStatus=function(){return this.D}; kw.prototype.Wn=function(A){A=A.target;try{if(A==this.N)a:{var L=g.z9(this.N),B=this.N.W,f=this.N.getStatus(),K=g.a$(this.N);A=[];if(g.Au(this.N)instanceof Array){var V=g.Au(this.N);V.length>0&&V[0]instanceof Uint8Array&&(this.yj=!0,A=V)}if(!(L<3||L==3&&!K&&A.length==0))if(f=f==200||f==206,L==4&&(B==8?T7(this,7):B==7?T7(this,8):f||T7(this,3)),this.W||(this.W=y5w(this.N),this.W==null&&T7(this,5)),this.D>2)lN(this);else{if(A.length>this.V){var J=A.length;B=[];try{if(this.W.h9())for(var R=0;Rthis.V){R=K.slice(this.V);this.V=K.length;try{var N=this.W.parse(R);N!=null&&this.U&&this.U(N)}catch(F){T7(this,5);lN(this);break a}}L==4?(K.length!= 0||this.yj?T7(this,2):T7(this,4),lN(this)):T7(this,1)}}}catch(F){T7(this,6),lN(this)}};g.p=j3y.prototype;g.p.addListener=function(A,L){Le(this,A,L);return this}; g.p.removeListener=function(A,L){var B=this.W[A];B&&g.Lx(B,L);(A=this.N[A])&&g.Lx(A,L);return this}; g.p.once=function(A,L){var B=this.N[A];B||(B=[],this.N[A]=B);B.push(L);return this}; g.p.M$n=function(A){var L=this.W.data;L&&gek(A,L);(L=this.N.data)&&gek(A,L);this.N.data=[]}; g.p.Az4=function(){switch(this.V.getStatus()){case 1:mK(this,"readable");break;case 5:case 6:case 4:case 7:case 3:mK(this,"error");break;case 8:mK(this,"close");break;case 2:mK(this,"end")}};Gzk.prototype.serverStreaming=function(A,L,B,f){var K=this,V=A.substring(0,A.length-f.name.length);return kz1(function(J){var R=J.wc,Z=J.getMetadata(),N=HtE(K,!1);Z=hNw(K,Z,N,V+R.getName());var F=btv(N,R.W,!0);J=R.N(J.lO);N.send(Z,"POST",J);return F},this.y6).call(this,f.T(L,B))};TVk.prototype.create=function(A,L,B){var f=this.N,K=this.W+"/$rpc/google.internal.waa.v1.Waa/Create";L=L||{};B=B===void 0?{}:B;return Z9v(f,K,A,L,fSR,B)};var QVk,v20,pNw,ZwK,NyR,FvB,AML,Ly1,DC9,IP,LBE,dv,eoS,$ZQ,X0w,WWy,xbe,Cbw,ISW,U06,w6f,p6w,y19,IgS,wN7,vuQ,QA,wBL,g7B;QVk=new Qy(45742118,!1);v20=new Qy(45742119,!1);pNw=new Qy(45738185,!1);ZwK=new Qy(45739196,!1);NyR=new Qy(45739198,!1);FvB=new Qy(45739197,!1);AML=new Ce(45737488,0);Ly1=new Ce(45737489,0);DC9=new Qy(45736776,!1);IP=new Qy(45738227,!1);LBE=new Qy(45732791,!1);dv=new Qy(45728572,!1);g.dCO=new Qy(45742954,!1);eoS=new Qy(45742469,!1);$ZQ=new Qy(45737482,!1);X0w=new Ce(45741773,0); WWy=new Qy(45732704,!0);xbe=new Qy(45731083,!1);Cbw=new Qy(45728553,!1);ISW=new Qy(45734191,!1);U06=new Qy(45735523,!1);w6f=new Ce(45735428,4E3);p6w=new Qy(45735462,!1);y19=new Qy(45727949,!1);IgS=new Qy(45728181,!1);wN7=new Qy(45740357,!1);vuQ=new Qy(45733155,!1);QA=new Qy(45732481,!1);wBL=new Qy(45732775,!1);g.j0B=new Qy(45734776,!1);g7B=new Qy(45739595,!1);var SHC=new Ce(45725542,0),RB8=new Ce(45739023,0),Nrk=new Ce(45743228,0),JCk=new Ce(45725543,0),f0Q=new Ce(45725539,0),VDQ=new Ce(45725541,0),KgL=new Ce(45725540,0),Brk=new Ce(45725538,0),ZFw=new Ce(45741339,0);var Q3S="://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(" "),CHk=/\bocr\b/;var $n8=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.G(Xr0,PS);g.G(OtC,PS);g.G($w,PS);$w.prototype.getName=function(){return uq(this,1)}; $w.prototype.getOptions=function(){return WG(this,OtC,3)}; $w.prototype.clearOptions=function(){return ra(this,3)};g.G(XO,PS);g.p=XO.prototype;g.p.getName=function(){return uq(this,1)}; g.p.getOptions=function(){return WG(this,Xr0,3)}; g.p.clearOptions=function(){return ra(this,3)}; g.p.WI=function(){return ag(this,6)}; g.p.xP=function(A){KH(this,6,A)};var MOC=function(A){return function(L){L=JSON.parse(L);if(!Array.isArray(L))throw Error("Expected jspb data to be an array, got "+kW(L)+": "+L);Kd(L,34);return new A(L)}}(XO);var c56=Symbol();var Unk=Symbol();Object.assign({},{attributes:{},handleError:function(A){throw A;}},{Lf1:!0, NyM:!0,yVr:lME,WLT:lME,Ht4:mu0,qh4:!1,I_x:!1,zCx:!1,dyp:!0,kgL:TOD,PiM:!1,Tyx:!1,Ipr:!1});var EB=null,MT=!1,LQ7=1,ux0=Symbol("SIGNAL"),FQ={version:0,HCs:0,I$:!1,producers:void 0,yy:void 0,Mt:void 0,Et:void 0,M1:!1,XX:!1,iS:!1,kind:"unknown",KP:function(){return!1}, GY:function(){}, dj:function(){}, afr:function(){}};var D9=Symbol("UNSET"),dQ=Symbol("COMPUTING"),Iz=Symbol("ERRORED");Object.assign({},FQ,{value:D9,I$:!0,error:null,I3:OB,kind:"computed",KP:function(A){return A.value===D9||A.value===dQ}, GY:function(A){if(A.value===dQ)throw Error("");var L=A.value;A.value=dQ;var B=PHe(A),f=!1;try{var K=A.u7();cM(null);f=L!==D9&&L!==Iz&&K!==Iz&&A.I3(L,K)}catch(V){K=Iz,A.error=V}finally{cM(B),A&&eNw(A)}f?A.value=L:(A.value=K,A.version++)}});Object.assign({},FQ,{iS:!0,XX:!0,I$:!0,kind:"effect"});var zN8=Object.assign({},FQ,{I3:OB,value:void 0,kind:"signal"});Object.assign({},FQ,{value:D9,I$:!0,error:null,I3:OB,kind:"linkedSignal",KP:function(A){return A.value===D9||A.value===dQ}, GY:function(A){if(A.value===dQ)throw Error("");var L=A.value;A.value=dQ;var B=PHe(A);try{var f=A.source();var K=A.u7(f,L===D9||L===Iz?void 0:{source:A.xqF,value:L});A.xqF=f}catch(V){K=Iz,A.error=V}finally{cM(B),A&&eNw(A)}L!==D9&&K!==Iz&&A.I3(L,K)?A.value=L:(A.value=K,A.version++)}});Object.assign({},FQ,{iS:!0,XX:!1,dj:function(A){A.schedule!==null&&A.schedule(A.ap1)}, s6s:function(){}});g.G(vM,g.gb);vM.prototype.dispose=function(){window.removeEventListener("offline",this.V);window.removeEventListener("online",this.V);this.kC.WF(this.D);delete vM.instance}; vM.prototype.Dr=function(){return this.N}; vM.prototype.yG=function(){var A=this;this.D=this.kC.pV(function(){var L;return g.c(function(B){if(B.N==1)return A.N?((L=window.navigator)==null?0:L.onLine)?B.Ux(3):g.X(B,WM(A),3):g.X(B,WM(A),3);A.yG();g.VK(B)})},3E4)};g.G(Bme,PS);var oYQ=PAQ(Bme,[0,fI,TGk,IfE,fI,-2,IfE,F8E]);PM.prototype.set=function(A,L){L=L===void 0?!0:L;0<=A&&A<52&&Number.isInteger(A)&&this.data[A]!==L&&(this.data[A]=L,this.N=-1)}; PM.prototype.get=function(A){return!!this.data[A]};var eF;g.Ud(g.uN,g.Y);g.p=g.uN.prototype;g.p.start=function(){this.stop();this.U=!1;var A=KQ7(this),L=VWL(this);A&&!L&&this.W.mozRequestAnimationFrame?(this.N=g.Ft(this.W,"MozBeforePaint",this.V),this.W.mozRequestAnimationFrame(null),this.U=!0):this.N=A&&L?A.call(this.W,this.V):this.W.setTimeout(DVC(this.V),20)}; g.p.stop=function(){if(this.isActive()){var A=KQ7(this),L=VWL(this);A&&!L&&this.W.mozRequestAnimationFrame?wb(this.N):A&&L?L.call(this.W,this.N):this.W.clearTimeout(this.N)}this.N=null}; g.p.isActive=function(){return this.N!=null}; g.p.rZ=function(){this.U&&this.N&&wb(this.N);this.N=null;this.T.call(this.D,g.Ed())}; g.p.l1=function(){this.stop();g.uN.oy.l1.call(this)};g.Ud(g.aa,g.Y);g.p=g.aa.prototype;g.p.YY=0;g.p.l1=function(){g.aa.oy.l1.call(this);this.stop();delete this.N;delete this.W}; g.p.start=function(A){this.stop();this.YY=g.MB(this.V,A!==void 0?A:this.LV)}; g.p.stop=function(){this.isActive()&&g.rI.clearTimeout(this.YY);this.YY=0}; g.p.isActive=function(){return this.YY!=0}; g.p.jW=function(){this.YY=0;this.N&&this.N.call(this.W)};g.G(g.BC,g.Y);g.p=g.BC.prototype;g.p.Za=function(A){this.V=arguments;this.x6||this.W?this.N=!0:fK(this)}; g.p.stop=function(){this.x6&&(g.rI.clearTimeout(this.x6),this.x6=null,this.N=!1,this.V=null)}; g.p.pause=function(){this.W++}; g.p.resume=function(){this.W--;this.W||!this.N||this.x6||(this.N=!1,fK(this))}; g.p.l1=function(){g.Y.prototype.l1.call(this);this.stop()};g.KK.prototype[Symbol.iterator]=function(){return this}; g.KK.prototype.next=function(){var A=this.N.next();return{value:A.done?void 0:this.W.call(void 0,A.value),done:A.done}};g.Ud(g.d$,g.gb);g.p=g.d$.prototype;g.p.isPlaying=function(){return this.N==1}; g.p.isPaused=function(){return this.N==-1}; g.p.yP=function(){this.eb("begin")}; g.p.jL=function(){this.eb("end")}; g.p.onFinish=function(){this.eb("finish")}; g.p.onStop=function(){this.eb("stop")}; g.p.eb=function(A){this.dispatchEvent(A)};var G89=er(function(){var A=g.TO("DIV"),L=g.h8?"-webkit":V9?"-moz":null,B="transition:opacity 1s linear;";L&&(B+=L+"-transition:opacity 1s linear;");L=og7({style:B});if(A.nodeType===1&&/^(script|style)$/i.test(A.tagName))throw Error("");A.innerHTML=mC(L);return g.SV(A.firstChild,"transition")!=""});g.Ud(I1,g.d$);g.p=I1.prototype;g.p.play=function(){if(this.isPlaying())return!1;this.yP();this.eb("play");this.startTime=g.Ed();this.N=1;if(G89())return g.Kv(this.W,this.T),this.V=g.MB(this.wVn,void 0,this),!0;this.tR(!1);return!1}; g.p.wVn=function(){g.pv(this.W);RjE(this.W,this.X);g.Kv(this.W,this.U);this.V=g.MB((0,g.X9)(this.tR,this,!1),this.D*1E3)}; g.p.stop=function(){this.isPlaying()&&this.tR(!0)}; g.p.tR=function(A){g.Kv(this.W,"transition","");g.rI.clearTimeout(this.V);g.Kv(this.W,this.U);this.endTime=g.Ed();this.N=0;if(A)this.onStop();else this.onFinish();this.jL()}; g.p.l1=function(){this.stop();I1.oy.l1.call(this)}; g.p.pause=function(){};var Nmw={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};w$("Element","attributes")||w$("Node","attributes");w$("Element","innerHTML")||w$("HTMLElement","innerHTML");w$("Node","nodeName");w$("Node","nodeType");w$("Node","parentNode");w$("Node","childNodes");w$("HTMLElement","style")||w$("Element","style");w$("HTMLStyleElement","sheet");var p3Q=DOC("getPropertyValue"),y9w=DOC("setProperty");w$("Element","namespaceURI")||w$("Node","namespaceURI");var w3C={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var r9v,jb7,G1v,gZy,sxy;r9v=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]");jb7=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.r1I=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.yd=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]");G1v=/^http:\/\/.*/;g.s0I=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");gZy=/\s+/;sxy=/[\d\u06f0-\u06f9]/;g$.prototype.iM=function(){return new GF(this.W())}; g$.prototype[Symbol.iterator]=function(){return new r$(this.W())}; g$.prototype.N=function(){return new r$(this.W())}; g.G(GF,g.$1);GF.prototype.next=function(){return this.W.next()}; GF.prototype[Symbol.iterator]=function(){return new r$(this.W)}; GF.prototype.N=function(){return new r$(this.W)}; g.G(r$,g$);r$.prototype.next=function(){return this.V.next()};HC.prototype.clone=function(){return new HC(this.N,this.X,this.V,this.D,this.U,this.T,this.W,this.G)}; HC.prototype.equals=function(A){return this.N==A.N&&this.X==A.X&&this.V==A.V&&this.D==A.D&&this.U==A.U&&this.T==A.T&&this.W==A.W&&this.G==A.G};bk.prototype.clone=function(){return new bk(this.start,this.end)};(function(){if(b7C){var A=/Windows NT ([0-9.]+)/;return(A=A.exec(g.fa()))?A[1]:"0"}return Hj?(A=/1[0|1][_.][0-9_.]+/,(A=A.exec(g.fa()))?A[0].replace(/_/g,"."):"10"):g.fn?(A=/Android\s+([^\);]+)(\)|;)/,(A=A.exec(g.fa()))?A[1]:""):iAD||$uk||Xzk?(A=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(A=A.exec(g.fa()))?A[1].replace(/_/g,"."):""):""})();var bcv=function(){if(g.de)return tz(/Firefox\/([0-9.]+)/);if(g.pK||g.ns||g.ER)return eww;if(g.Z2){if(ay()||A8()){var A=tz(/CriOS\/([0-9.]+)/);if(A)return A}return tz(/Chrome\/([0-9.]+)/)}if(g.yw&&!ay())return tz(/Version\/([0-9.]+)/);if(Ln||oX){if(A=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.fa()))return A[1]+"."+A[2]}else if(g.cL)return(A=tz(/Android\s+([0-9.]+)/))?A:tz(/Version\/([0-9.]+)/);return""}();g.Ud(g.TF,g.Y);g.p=g.TF.prototype;g.p.subscribe=function(A,L,B){var f=this.W[A];f||(f=this.W[A]=[]);var K=this.T;this.N[K]=A;this.N[K+1]=L;this.N[K+2]=B;this.T=K+3;f.push(K);return K}; g.p.unsubscribe=function(A,L,B){if(A=this.W[A]){var f=this.N;if(A=A.find(function(K){return f[K+1]==L&&f[K+2]==B}))return this.vR(A)}return!1}; g.p.vR=function(A){var L=this.N[A];if(L){var B=this.W[L];this.U!=0?(this.V.push(A),this.N[A+1]=function(){}):(B&&g.Lx(B,A),delete this.N[A],delete this.N[A+1],delete this.N[A+2])}return!!L}; g.p.publish=function(A,L){var B=this.W[A];if(B){var f=Array(arguments.length-1),K=arguments.length,V;for(V=1;V0&&this.U==0)for(;B=this.V.pop();)this.vR(B)}}return V!=0}return!1}; g.p.clear=function(A){if(A){var L=this.W[A];L&&(L.forEach(this.vR,this),delete this.W[A])}else this.N.length=0,this.W={}}; g.p.l1=function(){g.TF.oy.l1.call(this);this.clear();this.V.length=0};g.lk.prototype.set=function(A,L){L===void 0?this.cq.remove(A):this.cq.set(A,g.vD(L))}; g.lk.prototype.get=function(A){try{var L=this.cq.get(A)}catch(B){return}if(L!==null)try{return JSON.parse(L)}catch(B){throw"Storage: Invalid value was encountered";}}; g.lk.prototype.remove=function(A){this.cq.remove(A)};g.Ud(mo,g.lk);mo.prototype.set=function(A,L){mo.oy.set.call(this,A,Tmy(L))}; mo.prototype.hY=function(A){A=mo.oy.get.call(this,A);if(A===void 0||A instanceof Object)return A;throw"Storage: Invalid value was encountered";}; mo.prototype.get=function(A){if(A=this.hY(A)){if(A=A.data,A===void 0)throw"Storage: Invalid value was encountered";}else A=void 0;return A};g.Ud(Qd,mo);Qd.prototype.set=function(A,L,B){if(L=Tmy(L)){if(B){if(B=B.length)return g.JN;var K=B.key(L++);if(A)return g.X_(K);K=B.getItem(K);if(typeof K!=="string")throw"Storage mechanism: Invalid value was encountered";return g.X_(K)}; return f}; g.p.clear=function(){Xq(this);this.N.clear()}; g.p.key=function(A){Xq(this);return this.N.key(A)};g.Ud(On,$C);g.Ud(QxQ,$C);g.Ud(En,ik);En.prototype.set=function(A,L){this.W.set(this.N+A,L)}; En.prototype.get=function(A){return this.W.get(this.N+A)}; En.prototype.remove=function(A){this.W.remove(this.N+A)}; En.prototype.iM=function(A){var L=this.W[Symbol.iterator](),B=this,f=new g.$1;f.next=function(){var K=L.next();if(K.done)return K;for(K=K.value;K.slice(0,B.N.length)!=B.N;){K=L.next();if(K.done)return K;K=K.value}return g.X_(A?K.slice(B.N.length):B.W.get(K))}; return f};MH.prototype.getValue=function(){return this.W}; MH.prototype.clone=function(){return new MH(this.N,this.W)};g.p=YC.prototype;g.p.h1=function(A,L){var B=this.N;B.push(new MH(A,L));A=B.length-1;L=this.N;for(B=L[A];A>0;){var f=A-1>>1;if(L[f].N>B.N)L[A]=L[f],A=f;else break}L[A]=B}; g.p.remove=function(){var A=this.N,L=A.length,B=A[0];if(!(L<=0)){if(L==1)A.length=0;else{A[0]=A.pop();A=0;L=this.N;for(var f=L.length,K=L[A];A>1;){var V=A*2+1,J=A*2+2;V=JK.N)break;L[A]=L[V];A=V}L[A]=K}return B.getValue()}}; g.p.aU=function(){for(var A=this.N,L=[],B=A.length,f=0;f>>16&65535|0;for(var V;B!==0;){V=B>2E3?2E3:B;B-=V;do K=K+L[f++]|0,A=A+K|0;while(--V);K%=65521;A%=65521}return K|A<<16|0};for(var rn={},wQ,k8X=[],pI=0;pI<256;pI++){wQ=pI;for(var Tyd=0;Tyd<8;Tyd++)wQ=wQ&1?3988292384^wQ>>>1:wQ>>>1;k8X[pI]=wQ}rn=function(A,L,B,f){B=f+B;for(A^=-1;f>>8^k8X[(A^L[f])&255];return A^-1};var St={};St={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 LX=[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],fX=[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],fmL=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],PmE=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],FC=Array(576);PC(FC);var Dl=Array(60);PC(Dl);var Bt=Array(512);PC(Bt);var Al=Array(256);PC(Al);var ow=Array(29);PC(ow);var KX=Array(30);PC(KX);var LN0,oAw,Bbk,AU7=!1;var tl;tl=[new b8(0,0,0,0,function(A,L){var B=65535;for(B>A.WA-5&&(B=A.WA-5);;){if(A.cz<=1){s5(A);if(A.cz===0&&L===0)return 1;if(A.cz===0)break}A.Dg+=A.cz;A.cz=0;var f=A.vF+B;if(A.Dg===0||A.Dg>=f)if(A.cz=A.Dg-f,A.Dg=f,dn(A,!1),A.E9.Ke===0)return 1;if(A.Dg-A.vF>=A.RC-262&&(dn(A,!1),A.E9.Ke===0))return 1}A.h1=0;if(L===4)return dn(A,!0),A.E9.Ke===0?3:4;A.Dg>A.vF&&dn(A,!1);return 1}), new b8(4,4,8,4,Ht),new b8(4,5,16,8,Ht),new b8(4,6,32,32,Ht),new b8(4,4,16,16,hl),new b8(8,16,32,32,hl),new b8(8,16,128,128,hl),new b8(8,32,128,256,hl),new b8(32,128,258,1024,hl),new b8(32,258,258,4096,hl)];var aaL={};aaL=function(){this.input=null;this.yc=this.j6=this.d2=0;this.output=null;this.QS=this.Ke=this.n_=0;this.msg="";this.state=null;this.KW=2;this.FO=0};var KNw=Object.prototype.toString; kR.prototype.push=function(A,L){var B=this.E9,f=this.options.chunkSize;if(this.ended)return!1;var K=L===~~L?L:L===!0?4:0;typeof A==="string"?B.input=$O6(A):KNw.call(A)==="[object ArrayBuffer]"?B.input=new Uint8Array(A):B.input=A;B.d2=0;B.j6=B.input.length;do{B.Ke===0&&(B.output=new qH.Vc(f),B.n_=0,B.Ke=f);A=uu8(B,K);if(A!==1&&A!==0)return this.jL(A),this.ended=!0,!1;if(B.Ke===0||B.j6===0&&(K===4||K===2))if(this.options.to==="string"){var V=qH.DT(B.output,B.n_);L=V;V=V.length;if(V<65537&&(L.subarray&& tEB||!L.subarray))L=String.fromCharCode.apply(null,qH.DT(L,V));else{for(var J="",R=0;R0||B.Ke===0)&&A!==1);if(K===4)return(B=this.E9)&&B.state?(f=B.state.status,f!==42&&f!==69&&f!==73&&f!==91&&f!==103&&f!==113&&f!==666?A=Rw(B,-2):(B.state=null,A=f===113?Rw(B,-3):0)):A=-2,this.jL(A),this.ended=!0,A===0;K===2&&(this.jL(0),B.Ke=0);return!0}; kR.prototype.jL=function(A){A===0&&(this.result=this.options.to==="string"?this.chunks.join(""):qH.Ck(this.chunks));this.chunks=[];this.err=A;this.msg=this.E9.msg};var l8="@@redux/INIT"+TR(),Nb8="@@redux/REPLACE"+TR();var FNL=typeof Symbol==="function"&&Symbol.observable||"@@observable";var lSf=[0,hbe,-3,B0];g.G(wDC,PS);var Te8=PAQ(wDC,[0,fI,bD0,aY,hbe,aY,-1,B0,hbe,B0,-1,fI,B0,bD0,AN,lSf,aY,-1,B0]);var Hw8=340491746;var mCX=function(A,L){return function(){var B=new Wkw(A,L,$E);return function(){return B}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var QXv=new g.CX("adInfoDialogEndpoint");var dUy=new g.CX("adPingingEndpoint");var TkD=new g.CX("crossDeviceProgressCommand");var zA=new g.CX("actionCompanionAdRenderer");var nU=new g.CX("adActionInterstitialRenderer");var Q0t=new g.CX("adDurationRemainingRenderer");var he=new g.CX("adHoverTextButtonRenderer");var lGD=new g.CX("adInfoDialogRenderer");var B_=new g.CX("adMessageRenderer");var bM=new g.CX("adPreviewRenderer");var a2=new g.CX("adsEngagementPanelRenderer");var i08=new g.CX("dismissablePanelTextPortraitImageRenderer");var w9=new g.CX("adsEngagementPanelSectionListViewModel");var CLX=new g.CX("flyoutCtaRenderer");var uh=new g.CX("imageCompanionAdRenderer");var xm=new g.CX("instreamAdPlayerOverlayRenderer");var EOk=new g.CX("instreamSurveyAdBackgroundImageRenderer");var Hy=new g.CX("instreamSurveyAdPlayerOverlayRenderer");var ZJ=new g.CX("instreamSurveyAdRenderer"),s4=new g.CX("instreamSurveyAdSingleSelectQuestionRenderer"),r9=new g.CX("instreamSurveyAdMultiSelectQuestionRenderer"),yb=new g.CX("instreamSurveyAdAnswerRenderer"),iwt=new g.CX("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var SL=new g.CX("instreamVideoAdRenderer");var $Cf=new g.CX("textOverlayAdContentRenderer"),X6w=new g.CX("enhancedTextOverlayAdContentRenderer"),OwI=new g.CX("imageOverlayAdContentRenderer");var e9=new g.CX("playerOverlayLayoutRenderer");var zY=new g.CX("videoInterstitialButtonedCenteredLayoutRenderer");var cVy=new g.CX("aboveFeedAdLayoutRenderer");var MGv=new g.CX("belowPlayerAdLayoutRenderer");var Ex1=new g.CX("inPlayerAdLayoutRenderer");var YCD=new g.CX("inPlayerOrganicOverlayAdLayoutRenderer");var DJ=new g.CX("playerBytesAdLayoutRenderer");var g9=new g.CX("playerBytesSequenceItemAdLayoutRenderer");var jL=new g.CX("playerUnderlayAdLayoutRenderer");var RG=new g.CX("adIntroRenderer");var VQ=new g.CX("playerBytesSequentialLayoutRenderer");var G30=new g.CX("slidingTextPlayerOverlayRenderer");var N0=new g.CX("surveyTextInterstitialRenderer");var d9=new g.CX("videoAdTrackingRenderer");var l8w=new g.CX("videoInterstitialCenteredLayoutViewModel");var E7O=new g.CX("simpleAdBadgeRenderer");var fp=new g.CX("skipAdRenderer"),c1O=new g.CX("skipButtonRenderer");var Gl=new g.CX("adSlotRenderer");var pJ=new g.CX("squeezebackPlayerSidePanelRenderer");var MEd=new g.CX("timedPieCountdownRenderer");var Me=new g.CX("adAvatarViewModel");var Y4=new g.CX("adBadgeViewModel");var U$=new g.CX("adButtonViewModel");var YDw=new g.CX("adDetailsLineViewModel");var UCf=new g.CX("adDisclosureBannerViewModel");var WvI=new g.CX("adPodIndexViewModel");var v75=new g.CX("imageBackgroundViewModel");var qDt=new g.CX("adGridCardCollectionViewModel");var PLI=new g.CX("adGridCardTextViewModel");var xCB=new g.CX("adPreviewViewModel");var eQK=new g.CX("playerAdAvatarLockupCardButtonedViewModel");var n7t=new g.CX("skipAdButtonViewModel");var zQt=new g.CX("skipAdViewModel");var uk9=new g.CX("timedPieCountdownViewModel");var aSw=new g.CX("visitAdvertiserLinkViewModel");var Ae=new g.CX("bannerImageLayoutViewModel");var LJ=new g.CX("topBannerImageTextIconButtonedLayoutViewModel");var oG=new g.CX("adsEngagementPanelLayoutViewModel");var yQ=new g.CX("displayUnderlayTextGridCardsLayoutViewModel");g.Er=new g.CX("browseEndpoint");var Aft=new g.CX("confirmDialogEndpoint");var uzL=new g.CX("commandContext");var vRD=new g.CX("rawColdConfigGroup");var Wcy=new g.CX("rawHotConfigGroup");g.yr=new g.CX("commandExecutorCommand");g.G(pDe,PS);var xKS={gHr:0,eQj:1,LIr:32,qkT:61,tL1:67,kWM:103,lfs:86,PDp:42,dn4:60,vHL:62,H3r:73,yUL:76,VLF:88,myF:90,Ffr:99,ci4:98,b3F:100,Wf4:102,UyL:41,wgF:69,Z3F:70,DyF:71,V84:2,mEx:27,ANDROID:3,JdL:54,TQF:14,Ad4:91,jCD:55,X94:24,i91:20,Yjn:18,rdT:21,nRr:104,f51:30,xPs:29,u5r:28,CDT:101,p91:34,hE4:36,gRL:38,IOS:5,yAM:15,tbn:92,W2x:40,qIx:25,Ilj:17,llT:19,kK1:64,VbD:66,m7r:26,U74:22,wAp:33,ZOM:68,D7p:35,bOr:53,F2n:37,HOT:39,FIM:7,UnD:57,wYn:43,DnF:59,Z5r:93,sCD:74,Mrp:75,RQ4:85,SZx:65,TgF:80,jgD:8,b5r:10, i5D:58,XYD:63,Jin:72,CYF:23,Skr:11,JUF:13,D4F:12,trr:16,BgT:56,If4:31,qU1:77,Ydx:84,NK1:87,rOD:89,gfn:94,K24:95};g.G(i8,PS);i8.prototype.Fd=function(){return uq(this,3)}; i8.prototype.J4=function(){return uq(this,5)}; i8.prototype.K3=function(A){return BS(this,5,A)};g.G($R,PS);g.G(yU8,PS);g.G(XC,PS);g.p=XC.prototype;g.p.getDeviceId=function(){return uq(this,6)}; g.p.JY=function(A){var L=lq(this,9,ii,3,!0);Rr(L,A);return L[A]}; g.p.getPlayerType=function(){return ag(this,36)}; g.p.setHomeGroupInfo=function(A){return PG(this,yU8,81,A)}; g.p.clearLocationPlayabilityToken=function(){return ra(this,89)};g.G(O5,PS);O5.prototype.getValue=function(){return uq(this,M$(this,Y56,2))}; var Y56=[2,3,4,5,6];g.G(E5,PS);E5.prototype.setTrackingParams=function(A){return ra(this,1,dww(A,!1))};g.G(ct,PS);g.G(Mv,PS);Mv.prototype.JY=function(A){var L=lq(this,5,$3,3,!0);Rr(L,A);return L[A]};g.G(YR,PS);YR.prototype.getToken=function(){return LH(this,2)}; YR.prototype.setToken=function(A){return BS(this,2,A)};g.G(U5,PS);U5.prototype.setSafetyMode=function(A){return KH(this,5,A)};g.G(Wt,PS);Wt.prototype.Qs=function(A){return PG(this,XC,1,A)};var kY=new g.CX("thumbnailLandscapePortraitRenderer");g.Ltd=new g.CX("changeEngagementPanelVisibilityAction");var JRS=new g.CX("continuationCommand");g.oWW=new g.CX("openPopupAction");var UrD=new g.CX("signalAction");g.jy=new g.CX("webCommandMetadata");var z9k=new g.CX("metadataBadgeRenderer");var Vdw=new g.CX("signalServiceEndpoint");var XP=new g.CX("innertubeCommand");var Wu6=new g.CX("loggingDirectives");var L71={NRM:"EMBEDDED_PLAYER_MODE_UNKNOWN",PHj:"EMBEDDED_PLAYER_MODE_DEFAULT",d4D:"EMBEDDED_PLAYER_MODE_PFP",LXT:"EMBEDDED_PLAYER_MODE_PFL"};var hpv=new g.CX("channelThumbnailEndpoint");var HS0=new g.CX("embeddedPlayerErrorMessageRenderer");var gh6=new g.CX("embeddedPlayerOverlayVideoDetailsRenderer"),bSv=new g.CX("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),tMk=new g.CX("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var x00=new g.CX("embedsInfoPanelRenderer");var mYD=new g.CX("feedbackEndpoint");var BIK=new g.CX("callToActionButtonViewModel");var fRW=new g.CX("interactionLoggingCommandMetadata");var eMy={O5r:"WEB_DISPLAY_MODE_UNKNOWN",ao4:"WEB_DISPLAY_MODE_BROWSER",Gf4:"WEB_DISPLAY_MODE_MINIMAL_UI",oHn:"WEB_DISPLAY_MODE_STANDALONE",KIM:"WEB_DISPLAY_MODE_FULLSCREEN"};g.G(vt,PS);vt.prototype.getPlayerType=function(){return ag(this,7)}; vt.prototype.TP=function(){return uq(this,19)}; vt.prototype.setVideoId=function(A){return BS(this,19,A)};g.G(qv,PS);g.G(Pt,PS);g.G(xR,PS); var KtB=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539];var V59=new g.CX("loggingContext");g.G(et,PS);g.G(nX,PS);nX.prototype.TP=function(){return LH(this,M$(this,VH,1))}; nX.prototype.setVideoId=function(A){return EG(this,1,VH,nd(A))}; nX.prototype.getPlaylistId=function(){return LH(this,M$(this,VH,2))}; var VH=[1,2];g.G(g.zR,PS);g.zR.prototype.nj=OD(0);var JfK=new g.CX("dismissPlayerOverlayCommand");var dp=new g.CX("changeKeyedMarkersVisibilityCommand");var SdI=new g.CX("changeMarkersVisibilityCommand");var aJD=new g.CX("loadMarkersCommand");var RwX=new g.CX("suggestedActionDataViewModel");var fWQ=new g.CX("timelyActionViewModel");var BAE=new g.CX("timelyActionsOverlayViewModel");var hW8=new g.CX("productListItemRenderer");var Zfd=new g.CX("shoppingOverlayRenderer");var G0e=new g.CX("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var NIK=new g.CX("adFeedbackEndpoint");var Ft9=new g.CX("menuEndpoint");var Txw=new g.CX("phoneDialerEndpoint");var tc1=new g.CX("sendSmsEndpoint");var jUE=new g.CX("copyTextEndpoint");var DXW=new g.CX("shareEndpoint"),dXw=new g.CX("shareEntityEndpoint"),IRR=new g.CX("shareEntityServiceEndpoint"),wwt=new g.CX("webPlayerShareEntityServiceEndpoint");g.Mt=new g.CX("urlEndpoint");g.FZ=new g.CX("watchEndpoint");var pwO=new g.CX("watchPlaylistEndpoint");g.yff=new g.CX("offlineOrchestrationActionCommand");var C3y=new g.CX("compositeVideoOverlayRenderer");var jOf=new g.CX("miniplayerRenderer");var w_Q=new g.CX("paidContentOverlayRenderer");var up7=new g.CX("playerMutedAutoplayOverlayRenderer"),aN6=new g.CX("playerMutedAutoplayEndScreenRenderer");var q78=new g.CX("unserializedPlayerResponse"),R9w=new g.CX("unserializedPlayerResponse");var gWf=new g.CX("playlistEditEndpoint");var gQ;g.te=new g.CX("buttonRenderer");gQ=new g.CX("toggleButtonRenderer");var Qv1=new g.CX("counterfactualRenderer");var GKf=new g.CX("resolveUrlCommandMetadata");var rfB=new g.CX("modifyChannelNotificationPreferenceEndpoint");var DU1=new g.CX("pingingEndpoint");var sOw=new g.CX("unsubscribeEndpoint");g.cK=new g.CX("subscribeButtonRenderer");var HfB=new g.CX("subscribeEndpoint");var Kd7=new g.CX("buttonViewModel");var CJ1=new g.CX("qrCodeRenderer");var nFv={CFn:"LIVING_ROOM_APP_MODE_UNSPECIFIED",AA4:"LIVING_ROOM_APP_MODE_MAIN",Em1:"LIVING_ROOM_APP_MODE_KIDS",hiT:"LIVING_ROOM_APP_MODE_MUSIC",flj:"LIVING_ROOM_APP_MODE_UNPLUGGED",zir:"LIVING_ROOM_APP_MODE_GAMING"};var vYe=new g.CX("autoplaySwitchButtonRenderer");var Mg,rZk,IJE,CF6;Mg=new g.CX("decoratedPlayerBarRenderer");rZk=new g.CX("chapteredPlayerBarRenderer");IJE=new g.CX("multiMarkersPlayerBarRenderer");CF6=new g.CX("chapterRenderer");g.bZD=new g.CX("markerRenderer");var Ey7=new g.CX("decoratedPlayheadRenderer");var e9w=new g.CX("desktopOverlayConfigRenderer");var $DS=new g.CX("engagementPanelSectionListRenderer");var PMe=new g.CX("gatedActionsOverlayViewModel");var l$E=new g.CX("heatMarkerRenderer");var Tc1=new g.CX("heatmapRenderer");var uED=new g.CX("watchToWatchTransitionRenderer");var rnD=new g.CX("playlistPanelRenderer");var hwd=new g.CX("productUpsellSuggestedActionViewModel");var bfB=new g.CX("suggestedActionTimeRangeTrigger"),t5X=new g.CX("suggestedActionsRenderer"),kKB=new g.CX("suggestedActionRenderer");var mz8=new g.CX("timedMarkerDecorationRenderer");var LvQ=new g.CX("cipher");var Phe=new g.CX("playerVars");var ZJC=new g.CX("playerVars");var Ge=g.rI.window,TI9,lRO,u8=(Ge==null?void 0:(TI9=Ge.yt)==null?void 0:TI9.config_)||(Ge==null?void 0:(lRO=Ge.ytcfg)==null?void 0:lRO.data_)||{};g.hf("yt.config_",u8);var oM=[];var k91=/^[\w.]*$/,H8y={q:!0,search_query:!0},s$7=String(Vh);var IM=new function(){var A=window.document;this.N=window;this.W=A}; g.hf("yt.ads_.signals_.getAdSignalsString",function(A){return J_(pg(A))});g.Ed();var lmE="XMLHttpRequest"in g.rI?function(){return new XMLHttpRequest}:null;var mXK="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.x7(mXK);var i8E={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"},qEL="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.x7(mXK)),YEe=!1,EA0=Tc;g.G(Qh,Ww);$z.prototype.then=function(A,L,B){return this.N?this.N.then(A,L,B):this.V===1&&A?(A=A.call(B,this.W))&&typeof A.then==="function"?A:OQ(A):this.V===2&&L?(A=L.call(B,this.W))&&typeof A.then==="function"?A:Xa(A):this}; $z.prototype.getValue=function(){return this.W}; $z.prototype.$goog_Thenable=!0;var EQ=!1;var ed=Ln||oX;var amy=/^([0-9\.]+):([0-9\.]+)$/;g.G(pn,Ww);pn.prototype.name="BiscottiError";g.G(wL,Ww);wL.prototype.name="BiscottiMissingError";var Bsw={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},yz=null;var kKL=g.eE(["data-"]),F7C={};var QOB=0,jw=g.h8?"webkit":V9?"moz":g.pK?"ms":g.ER?"o":"",CBt=g.bB("ytDomDomGetNextId")||function(){return++QOB}; g.hf("ytDomDomGetNextId",CBt);var wc0={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};hK.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; hK.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; hK.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var bt=g.rI.ytEventsEventsListeners||{};g.hf("ytEventsEventsListeners",bt);var jQ8=g.rI.ytEventsEventsCounter||{count:0};g.hf("ytEventsEventsCounter",jQ8);var sQQ=er(function(){var A=!1;try{var L=Object.defineProperty({},"passive",{get:function(){A=!0}}); window.addEventListener("test",null,L)}catch(B){}return A}),gML=er(function(){var A=!1; try{var L=Object.defineProperty({},"capture",{get:function(){A=!0}}); window.addEventListener("test",null,L)}catch(B){}return A});var rQ;rQ=window;g.bc=rQ.ytcsi&&rQ.ytcsi.now?rQ.ytcsi.now:rQ.performance&&rQ.performance.timing&&rQ.performance.now&&rQ.performance.timing.navigationStart?function(){return rQ.performance.timing.navigationStart+rQ.performance.now()}:function(){return(new Date).getTime()};g.Ud(mu,g.Y);mu.prototype.yj=function(A){A.N===void 0&&pcy(A);var L=A.N;A.W===void 0&&pcy(A);this.N=new g.Vl(L,A.W)}; mu.prototype.Gf=function(){return this.N||new g.Vl}; mu.prototype.Wn=function(){if(this.N){var A=(0,g.bc)();if(this.U!=0){var L=this.T,B=this.N,f=L.x-B.x;L=L.y-B.y;f=Math.sqrt(f*f+L*L)/(A-this.U);this.W[this.V]=Math.abs((f-this.D)/this.D)>.5?1:0;for(B=L=0;B<4;B++)L+=this.W[B]||0;L>=3&&this.X();this.D=f}this.U=A;this.T=this.N;this.V=(this.V+1)%4}}; mu.prototype.l1=function(){g.sQ(this.G);g.k_(this.qp)};g.G(Qz,g.Y);Qz.prototype.Y=function(A,L,B,f,K){B=g.fg((0,g.X9)(B,f||this.mH));B={target:A,name:L,callback:B};var V;K&&sQQ()&&(V={passive:!0});A.addEventListener(L,B.callback,V);this.T.push(B);return B}; Qz.prototype.J$=function(A){for(var L=0;L=v.fO)||h.N.version>=U||h.N.objectStoreNames.contains(O)||l.push(O)}Z=l;if(Z.length===0){r.Ux(5);break}N=Object.keys(B.options.JU); F=R.objectStoreNames();if(B.DB.options.version+1)throw I.close(),B.V=!1,RM8(B,d);return r.return(I);case 8:throw L(), D instanceof Error&&!g.h_("ytidb_async_stack_killswitch")&&(D.stack=D.stack+"\n"+J.substring(J.indexOf("\n")+1)),jd(D,B.name,"",(w=B.options.version)!=null?w:-1);}})} function L(){B.N===f&&(B.N=void 0)} var B=this;if(!this.V)throw RM8(this);if(this.N)return this.N;var f,K={blocking:function(V){V.close()}, closed:L,P0r:L,upgrade:this.options.upgrade};return this.N=f=A()};var vf=new U_("YtIdbMeta",{JU:{databases:{fO:1}},upgrade:function(A,L){L(1)&&g.TU(A,"databases",{keyPath:"actualName"})}});var uc,zU=new function(){}(new function(){});new g.IQ;g.G(L4,U_);L4.prototype.W=function(A,L,B){B=B===void 0?{}:B;return(this.options.shared?yXQ:pML)(A,L,Object.assign({},B))}; L4.prototype.delete=function(A){A=A===void 0?{}:A;return(this.options.shared?rX0:jaS)(this.name,A)};var UXw={},HeE=g.oI("ytGcfConfig",{JU:(UXw.coldConfigStore={fO:1},UXw.hotConfigStore={fO:1},UXw),shared:!1,upgrade:function(A,L){L(1)&&(g.$L(g.TU(A,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.$L(g.TU(A,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.G(f4,g.Y);f4.prototype.l1=function(){for(var A=g.m(this.W),L=A.next();!L.done;L=A.next()){var B=this.N;L=B.indexOf(L.value);L>=0&&B.splice(L,1)}this.W.length=0;g.Y.prototype.l1.call(this)};Zu.prototype.K3=function(A){this.hotHashData=A;g.hf("yt.gcf.config.hotHashData",this.hotHashData||null)};var WtI=typeof TextEncoder!=="undefined"?new TextEncoder:null,FoL=WtI?function(A){return WtI.encode(A)}:function(A){A=g.Ma(A); for(var L=new Uint8Array(A.length),B=0;B=L?!1:!0}; g.p.Dh=function(){var A=this;if(!$l(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.fh.V0("QUEUED",this.uQ).then(function(L){L&&!A.Fs(L,A.BW)?A.kC.pV(function(){return g.c(function(B){if(B.N==1)return L.id===void 0?B.Ux(2):g.X(B,A.fh.AM(L.id,A.uQ),2);A.Dh();g.VK(B)})}):A.Mq.Dr()&&A.u_()})};var Eu;var e2L={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71, visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336, appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358, webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376, parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394, prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418, sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501, parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297, biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456, youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486, crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511, embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534, mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539};var qdO={},l17=g.oI("ServiceWorkerLogsDatabase",{JU:(qdO.SWHealthLog={fO:1},qdO),shared:!0,upgrade:function(A,L){L(1)&&g.$L(g.TU(A,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Yl={},XCv=0;var Uu;va.prototype.requestComplete=function(A,L){L&&(this.W=!0);A=this.removeParams(A);this.N.get(A)||this.N.set(A,L)}; va.prototype.isEndpointCFR=function(A){A=this.removeParams(A);return(A=this.N.get(A))?!1:A===!1&&this.W?!0:null}; va.prototype.removeParams=function(A){return A.split("?")[0]}; va.prototype.removeParams=va.prototype.removeParams;va.prototype.isEndpointCFR=va.prototype.isEndpointCFR;va.prototype.requestComplete=va.prototype.requestComplete;va.getInstance=czL;g.G(qJ,g.gb);g.p=qJ.prototype;g.p.Dr=function(){return this.N.Dr()}; g.p.Ba=function(A){this.N.N=A}; g.p.Kv=function(){var A=window.navigator.onLine;return A===void 0?!0:A}; g.p.Jt=function(){this.W=!0}; g.p.listen=function(A,L){return this.N.listen(A,L)}; g.p.Xs=function(A){return WM(this.N,A)}; qJ.prototype.sendNetworkCheckRequest=qJ.prototype.Xs;qJ.prototype.listen=qJ.prototype.listen;qJ.prototype.enableErrorFlushing=qJ.prototype.Jt;qJ.prototype.getWindowStatus=qJ.prototype.Kv;qJ.prototype.networkStatusHint=qJ.prototype.Ba;qJ.prototype.isNetworkAvailable=qJ.prototype.Dr;qJ.getInstance=MRw;g.G(g.Pa,g.gb);g.Pa.prototype.Dr=function(){var A=g.bB("yt.networkStatusManager.instance.isNetworkAvailable");return A?A.bind(this.W)():!0}; g.Pa.prototype.Ba=function(A){var L=g.bB("yt.networkStatusManager.instance.networkStatusHint").bind(this.W);L&&L(A)}; g.Pa.prototype.Xs=function(A){var L=this,B;return g.c(function(f){B=g.bB("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(L.W);return g.h_("skip_network_check_if_cfr")&&czL().isEndpointCFR("generate_204")?f.return(new Promise(function(K){var V;L.Ba(((V=window.navigator)==null?void 0:V.onLine)||!0);K(L.Dr())})):B?f.return(B(A)):f.return(!0)})};var xl;g.G(e_,XY);e_.prototype.writeThenSend=function(A,L){L||(L={});L=zP(A,L);g.zT()||(this.N=!1);XY.prototype.writeThenSend.call(this,A,L)}; e_.prototype.sendThenWrite=function(A,L,B){L||(L={});L=zP(A,L);g.zT()||(this.N=!1);XY.prototype.sendThenWrite.call(this,A,L,B)}; e_.prototype.sendAndWrite=function(A,L){L||(L={});L=zP(A,L);g.zT()||(this.N=!1);XY.prototype.sendAndWrite.call(this,A,L)}; e_.prototype.awaitInitialization=function(){return this.V.promise};var vCv=g.rI.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.hf("ytNetworklessLoggingInitializationOptions",vCv);g.uy.prototype.isReady=function(){!this.config_&&YBC()&&(this.config_=g.FY());return!!this.config_};var PBt,LV,BQ;PBt=g.rI.ytPubsubPubsubInstance||new g.TF;LV=g.rI.ytPubsubPubsubSubscribedKeys||{};BQ=g.rI.ytPubsubPubsubTopicToKeys||{};g.oW=g.rI.ytPubsubPubsubIsSynchronous||{};g.TF.prototype.subscribe=g.TF.prototype.subscribe;g.TF.prototype.unsubscribeByKey=g.TF.prototype.vR;g.TF.prototype.publish=g.TF.prototype.publish;g.TF.prototype.clear=g.TF.prototype.clear;g.hf("ytPubsubPubsubInstance",PBt);g.hf("ytPubsubPubsubTopicToKeys",BQ);g.hf("ytPubsubPubsubIsSynchronous",g.oW); g.hf("ytPubsubPubsubSubscribedKeys",LV);var zR7={};g.G(DP,g.Y);DP.prototype.append=function(A){if(!this.W)throw Error("This does not support the append operation");A=A.Zg();this.Zg().appendChild(A)}; g.G(dT,DP);dT.prototype.Zg=function(){return this.N};g.G(IW,g.Y);IW.prototype.onTouchStart=function(A){this.X=!0;this.W=A.touches.length;this.N.isActive()&&(this.N.stop(),this.D=!0);A=A.touches;this.T=Al6(this,A)||A.length!=1;var L=A.item(0);this.T||!L?this.yj=this.G=Infinity:(this.G=L.clientX,this.yj=L.clientY);for(L=this.V.length=0;L=0)}if(L||A&&Math.pow(A.clientX-this.G,2)+Math.pow(A.clientY-this.yj,2)>25)this.U=!0}; IW.prototype.onTouchEnd=function(A){var L=A.changedTouches;L&&this.X&&this.W==1&&!this.U&&!this.D&&!this.T&&Al6(this,L)&&(this.Wn=A,this.N.start());this.W=A.touches.length;this.W===0&&(this.U=this.X=!1,this.V.length=0);this.D=!1};var wT=Date.now().toString();var Gx={};var t0=Symbol("injectionDeps");sl.prototype.toString=function(){return"InjectionToken("+this.name+")"}; fle.prototype.resolve=function(A){return A instanceof HQ?k0(this,A.key,[],!0):k0(this,A,[])};var Tx;var me=window;var $0=g.h_("web_enable_lifecycle_monitoring")&&Q0()!==0,Dv1=g.h_("web_enable_lifecycle_monitoring");ZXk.prototype.cancel=function(){for(var A=g.m(this.N),L=A.next();!L.done;L=A.next())L=L.value,L.jobId===void 0||L.B5||this.scheduler.WF(L.jobId),L.B5=!0;this.W.resolve()};g.p=Xy.prototype;g.p.install=function(A){this.plugins.push(A);return this}; g.p.uninstall=function(){var A=this;g.pf.apply(0,arguments).forEach(function(L){L=A.plugins.indexOf(L);L>-1&&A.plugins.splice(L,1)})}; g.p.transition=function(A,L){var B=this;$0&&S57(this.state);var f=this.transitions.find(function(V){return Array.isArray(V.from)?V.from.find(function(J){return J===B.state&&V.to===A}):V.from===B.state&&V.to===A}); if(f){this.W&&(Nn1(this.W),this.W=void 0);dvC(this,A,L);this.state=A;$0&&CV(this.state);f=f.action.bind(this);var K=this.plugins.filter(function(V){return V[A]}).map(function(V){return V[A]}); f(Fc8(this,K),L)}else throw Error("no transition specified from "+this.state+" to "+A);}; g.p.WDr=function(A){var L=g.pf.apply(1,arguments);g.ol();for(var B=g.m(A),f=B.next(),K={};!f.done;K={Wc:void 0},f=B.next())K.Wc=f.value,$WS(function(V){return function(){El(V.Wc.name);MU(function(){return V.Wc.callback.apply(V.Wc,g.x7(L))}); cQ(V.Wc.name)}}(K))}; g.p.y1D=function(A){var L=g.pf.apply(1,arguments),B,f,K,V;return g.c(function(J){J.N==1&&(g.ol(),B=g.m(A),f=B.next(),K={});if(J.N!=3){if(f.done)return J.Ux(0);K.a5=f.value;K.Pf=void 0;V=function(R){return function(){El(R.a5.name);var Z=MU(function(){return R.a5.callback.apply(R.a5,g.x7(L))}); eM(Z)?R.Pf=g.h_("web_lifecycle_error_handling_killswitch")?Z.then(function(){cQ(R.a5.name)}):Z.then(function(){cQ(R.a5.name)},function(N){R2D(N); cQ(R.a5.name)}):cQ(R.a5.name)}}(K); $WS(V);return K.Pf?g.X(J,K.Pf,3):J.Ux(3)}K={a5:void 0,Pf:void 0};f=B.next();return J.Ux(2)})}; g.p.gC=function(A){var L=g.pf.apply(1,arguments),B=this,f=A.map(function(K){return{lX:function(){El(K.name);MU(function(){return K.callback.apply(K,g.x7(L))}); cQ(K.name)}, priority:Ol(B,K)}}); f.length&&(this.W=new ZXk(f))}; g.v6.Object.defineProperties(Xy.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Ul;g.G(Y0,Xy);Y0.prototype.D=function(A,L){var B=this;this.N=g.AR(0,function(){B.currentState==="application_navigating"&&B.transition("none")},5E3); A(L==null?void 0:L.event)}; Y0.prototype.T=function(A,L){this.N&&(g.qT.WF(this.N),this.N=null);A(L==null?void 0:L.event)};var d8=[];g.hf("yt.logging.transport.getScrapedGelPayloads",function(){return d8});WQ.prototype.storePayload=function(A,L){A=vQ(A);this.store[A]?this.store[A].push(L):(this.W={},this.store[A]=[L]);this.N++;g.h_("more_accurate_gel_parser")&&(L=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(L));return A}; WQ.prototype.smartExtractMatchingEntries=function(A){if(!A.keys.length)return[];for(var L=PQ(this,A.keys.splice(0,1)[0]),B=[],f=0;f=0){f=!1;break a}}f=!0}f&&(L=EF(L))&&this.fK(L)}}; g.p.oe=function(A){return A}; g.p.onTouchStart=function(A){this.Vj.onTouchStart(A)}; g.p.onTouchMove=function(A){this.Vj.onTouchMove(A)}; g.p.onTouchEnd=function(A){if(this.Vj)this.Vj.onTouchEnd(A)}; g.p.fK=function(A){this.layoutId?this.Qj.executeCommand(A,this.layoutId):(A=new g.iL("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.mL(A))}; g.p.createServerVe=function(A,L){this.api.createServerVe(A,this);this.api.setTrackingParams(A,L)}; g.p.logVisibility=function(A,L){this.api.hasVe(A)&&this.api.logVisibility(A,L,this.interactionLoggingClientData)}; g.p.l1=function(){this.clear(null);this.J$(this.Nl);for(var A=g.m(this.ZM),L=A.next();!L.done;L=A.next())this.J$(L.value);g.DE.prototype.l1.call(this)};g.G(Xb,dq); Xb.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.N=L;if(L.text==null&&L.icon==null)g.CE(Error("ButtonRenderer did not have text or an icon set."));else{switch(L.style||null){case "STYLE_UNKNOWN":A="ytp-ad-button-link";break;default:A=null}A!=null&&g.R1(this.element,A);L.text!=null&&(A=g.wq(L.text),g.us(A)||(this.element.setAttribute("aria-label",A),this.V=new g.DE({Z:"span",j:"ytp-ad-button-text",Ir:A}),g.W(this,this.V),this.V.DM(this.element)));L.accessibilityData&&L.accessibilityData.accessibilityData&& L.accessibilityData.accessibilityData.label&&!g.us(L.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",L.accessibilityData.accessibilityData.label);L.icon!=null&&(L=$r(L.icon,this.U),L!=null&&(this.W=new g.DE({Z:"span",j:"ytp-ad-button-icon",B:[L]}),g.W(this,this.W)),this.D?iA(this.element,this.W.element,0):this.W.DM(this.element))}}; Xb.prototype.clear=function(){this.hide()}; Xb.prototype.onClick=function(A){dq.prototype.onClick.call(this,A);A=g.m(w9e(this));for(var L=A.next();!L.done;L=A.next())L=L.value,this.layoutId?this.Qj.executeCommand(L,this.layoutId):g.mL(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.G(OW,g.Y);OW.prototype.l1=function(){this.W&&g.k_(this.W);this.N.clear();EW=null;g.Y.prototype.l1.call(this)}; OW.prototype.register=function(A,L){L&&this.N.set(A,L)}; var EW=null;g.G(Yr,dq); Yr.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);A=L.hoverText||null;L=L.button&&g.y(L.button,g.te)||null;L==null?g.mL(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,void 0,void 0,void 0,void 0,this.V),g.W(this,this.button),this.button.init(Vo("button"),L,this.macros),A&&this.button.element.setAttribute("aria-label",g.wq(A)),this.button.DM(this.element),this.G&&!g.SR(this.button.element, "ytp-ad-clickable")&&g.R1(this.button.element,"ytp-ad-clickable"),this.V&&g.R1(this.button.element,"ytp-ad-hover-text-button--clean-player"),A&&(this.W=new g.DE({Z:"div",j:"ytp-ad-hover-text-container"}),this.D&&(L=new g.DE({Z:"div",j:"ytp-ad-hover-text-callout"}),L.DM(this.W.element),g.W(this,L)),g.W(this,this.W),this.W.DM(this.element),L=cP(A),iA(this.W.element,L,0)),this.show())}; Yr.prototype.hide=function(){this.button&&this.button.hide();this.W&&this.W.hide();dq.prototype.hide.call(this)}; Yr.prototype.show=function(){this.button&&this.button.show();dq.prototype.show.call(this)};g.G(WP,dq); WP.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);B=(A=L.thumbnail)&&UW(A)||"";g.us(B)?Math.random()<.01&&g.CE(Error("Found AdImage without valid image URL")):(this.N?g.Kv(this.element,"backgroundImage","url("+B+")"):H4(this.element,{src:B}),H4(this.element,{alt:A&&A.accessibility&&A.accessibility.label||""}),L&&L.adRendererCommands&&L.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; WP.prototype.clear=function(){this.hide()};g.G(vP,dq);g.p=vP.prototype;g.p.hide=function(){dq.prototype.hide.call(this);this.V&&this.V.focus()}; g.p.show=function(){this.V=document.activeElement;dq.prototype.show.call(this);this.U.focus()}; g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.W=L;L.dialogMessages||L.title!=null?L.confirmLabel==null?g.mL(Error("ConfirmDialogRenderer.confirmLabel was not set.")):L.cancelLabel==null?g.mL(Error("ConfirmDialogRenderer.cancelLabel was not set.")):g_k(this,L):g.mL(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.p.clear=function(){g.$_(this.N);this.hide()}; g.p.LR=function(){this.hide()}; g.p.FN=function(){var A=this.W.cancelEndpoint;A&&(this.layoutId?this.Qj.executeCommand(A,this.layoutId):g.mL(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.p.dP=function(){var A=this.W.confirmNavigationEndpoint||this.W.confirmEndpoint;A&&(this.layoutId?this.Qj.executeCommand(A,this.layoutId):g.mL(Error("Missing layoutId for confirm dialog.")));this.hide()};g.G(qt,dq);g.p=qt.prototype; g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.V=L;if(L.defaultText==null&&L.defaultIcon==null)g.mL(Error("ToggleButtonRenderer must have either text or icon set."));else if(L.defaultIcon==null&&L.toggledIcon!=null)g.mL(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(L.style){switch(L.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":A="ytp-ad-toggle-button-default-style";break;default:A=null}A!=null&&g.R1(this.U,A)}A={};L.defaultText? (B=g.wq(L.defaultText),g.us(B)||(A.buttonText=B,this.api.K().experiments.GL("a11y_h5_associate_survey_question")||this.N.setAttribute("aria-label",B),this.api.K().experiments.GL("fix_h5_toggle_button_a11y")&&this.W.setAttribute("aria-label",B))):g.y9(this.wT,!1);L.defaultTooltip&&(A.tooltipText=L.defaultTooltip,this.N.hasAttribute("aria-label")||this.W.setAttribute("aria-label",L.defaultTooltip));L.defaultIcon?(B=$r(L.defaultIcon),this.updateValue("untoggledIconTemplateSpec",B),L.toggledIcon?(this.qp= !0,B=$r(L.toggledIcon),this.updateValue("toggledIconTemplateSpec",B)):(g.y9(this.G,!0),g.y9(this.D,!1)),g.y9(this.N,!1)):g.y9(this.W,!1);g.mi(A)||this.update(A);L.isToggled&&(g.R1(this.U,"ytp-ad-toggle-button-toggled"),this.toggleButton(L.isToggled));PP(this);this.Y(this.element,"change",this.XP);this.show()}}; g.p.onClick=function(A){this.ZM.length>0&&(this.toggleButton(!this.isToggled()),this.XP());dq.prototype.onClick.call(this,A)}; g.p.XP=function(){g.D1(this.U,"ytp-ad-toggle-button-toggled",this.isToggled());for(var A=g.m(GTv(this,this.isToggled())),L=A.next();!L.done;L=A.next())L=L.value,this.layoutId?this.Qj.executeCommand(L,this.layoutId):g.mL(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);PP(this)}; g.p.clear=function(){this.hide()}; g.p.toggleButton=function(A){g.D1(this.U,"ytp-ad-toggle-button-toggled",A);this.N.checked=A;PP(this)}; g.p.isToggled=function(){return this.N.checked};g.G(xr,Qz);xr.prototype.D=function(A){if(Array.isArray(A)){A=g.m(A);for(var L=A.next();!L.done;L=A.next())L=L.value,L instanceof rKy&&this.V(L)}};g.G(eN,dq);g.p=eN.prototype;g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);L.reasons?L.confirmLabel==null?g.mL(Error("AdFeedbackRenderer.confirmLabel was not set.")):(L.cancelLabel==null&&g.CE(Error("AdFeedbackRenderer.cancelLabel was not set.")),L.title==null&&g.CE(Error("AdFeedbackRenderer.title was not set.")),bn7(this,L)):g.mL(Error("AdFeedbackRenderer.reasons were not set."))}; g.p.clear=function(){TT(this.D);TT(this.G);this.U.length=0;this.hide()}; g.p.hide=function(){this.N&&this.N.hide();this.W&&this.W.hide();dq.prototype.hide.call(this);this.V&&this.V.focus()}; g.p.show=function(){this.N&&this.N.show();this.W&&this.W.show();this.V=document.activeElement;dq.prototype.show.call(this);this.D.focus()}; g.p.pT=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.p.oJ4=function(){this.hide()}; n1.prototype.Zg=function(){return this.N.element}; n1.prototype.getCommand=function(){return this.W}; n1.prototype.isChecked=function(){return this.V.checked};g.G(zZ,vP);zZ.prototype.LR=function(A){vP.prototype.LR.call(this,A);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; zZ.prototype.FN=function(A){vP.prototype.FN.call(this,A);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; zZ.prototype.dP=function(A){vP.prototype.dP.call(this,A);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.G(ua,dq);g.p=ua.prototype; g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.D=L;if(L.dialogMessage==null&&L.title==null)g.mL(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{L.confirmLabel==null&&g.CE(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(A=L.closeOverlayRenderer&&g.y(L.closeOverlayRenderer,g.te)||null)this.N=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.W(this,this.N),this.N.init(Vo("button"),A,this.macros),this.N.DM(this.element);L.title&&(A=g.wq(L.title),this.updateValue("title",A));if(L.adReasons)for(A=L.adReasons,B=0;B=this.S4?(this.qp.hide(),this.Ex=!0,this.publish("i")):this.V&&this.V.isTemplated()&&(A=Math.max(0,Math.ceil((this.S4-A)/1E3)),A!=this.sx&&(LL(this.V,{TIME_REMAINING:String(A)}),this.sx=A)))}};g.G(Sm,oA);g.p=Sm.prototype; g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);if(L.image&&L.image.thumbnail)if(L.headline)if(L.description)if((A=L.actionButton&&g.y(L.actionButton,g.te))&&A.navigationEndpoint){var f=this.api.getVideoData(2);if(f!=null)if(L.image&&L.image.thumbnail){var K=L.image.thumbnail.thumbnails;K!=null&&K.length>0&&g.us(g.xj(K[0].url))&&(K[0].url=f.profilePicture)}else g.CE(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.V.init(Vo("ad-image"),L.image,B);this.D.init(Vo("ad-text"), L.headline,B);this.U.init(Vo("ad-text"),L.description,B);this.W.init(Vo("button"),A,B);B=z7(this.W.element);ne(this.W.element,B+" This link opens in new tab");this.qp=A.navigationEndpoint;this.api.kQ()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.gm.bind(this));this.wT=L.startMs||0;BH(this)}else g.mL(Error("FlyoutCtaRenderer has no valid action button."));else g.mL(Error("FlyoutCtaRenderer has no description AdText."));else g.mL(Error("FlyoutCtaRenderer has no headline AdText.")); else g.CE(Error("FlyoutCtaRenderer has no image."))}; g.p.onClick=function(A){oA.prototype.onClick.call(this,A);this.api.pauseVideo();!g.XF(this.W.element,A.target)&&this.qp&&(this.layoutId?this.Qj.executeCommand(this.qp,this.layoutId):g.mL(Error("Missing layoutId for flyout cta.")))}; g.p.m3=function(){if(this.N){var A=this.N.getProgressState();(A&&A.current||this.S4)&&1E3*A.current>=this.wT&&(fL(this),g.NH(this.element,"ytp-flyout-cta-inactive"),this.W.element.removeAttribute("tabIndex"))}}; g.p.q7=function(){this.clear()}; g.p.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.gm.bind(this))}; g.p.show=function(){this.W&&this.W.show();oA.prototype.show.call(this)}; g.p.hide=function(){this.W&&this.W.hide();oA.prototype.hide.call(this)}; g.p.gm=function(A){A=="hidden"?this.show():this.hide()};g.G(RA,dq);g.p=RA.prototype; g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.N=L;if(this.N.rectangle)for(A=this.N.likeButton&&g.y(this.N.likeButton,gQ),L=this.N.dislikeButton&&g.y(this.N.dislikeButton,gQ),this.V.init(Vo("toggle-button"),A,B),this.W.init(Vo("toggle-button"),L,B),this.Y(this.element,"change",this.nB),this.U.show(100),this.show(),B=g.m(this.N&&this.N.impressionCommands||[]),A=B.next();!A.done;A=B.next())A=A.value,this.layoutId?this.Qj.executeCommand(A,this.layoutId):g.mL(Error("Missing layoutId for instream user sentiment."))}; g.p.clear=function(){this.hide()}; g.p.hide=function(){this.V.hide();this.W.hide();dq.prototype.hide.call(this)}; g.p.show=function(){this.V.show();this.W.show();dq.prototype.show.call(this)}; g.p.nB=function(){SaQ(this.element,"ytp-ad-instream-user-sentiment-selected");this.N.postMessageAction&&this.api.Kr("onYtShowToast",this.N.postMessageAction);this.U.hide()}; g.p.onClick=function(A){this.ZM.length>0&&this.nB();dq.prototype.onClick.call(this,A)};g.G(Zh,g.Y);g.p=Zh.prototype;g.p.l1=function(){this.reset();g.Y.prototype.l1.call(this)}; g.p.reset=function(){g.$_(this.U);this.T=!1;this.N&&this.N.stop();this.D.stop();this.V&&(this.V=!1,this.X.play())}; g.p.start=function(){this.reset();this.U.Y(this.W,"mouseover",this.EH,this);this.U.Y(this.W,"mouseout",this.zQ,this);this.Wn&&(this.U.Y(this.W,"focusin",this.EH,this),this.U.Y(this.W,"focusout",this.zQ,this));this.N?this.N.start():(this.T=this.V=!0,g.Kv(this.W,{opacity:this.yj}))}; g.p.EH=function(){this.V&&(this.V=!1,this.X.play());this.D.stop();this.N&&this.N.stop()}; g.p.zQ=function(){this.T?this.D.start():this.N&&this.N.start()}; g.p.Zv=function(){this.V||(this.V=!0,this.G.play(),this.T=!0)};var E_E=[new Nf("b.f_",0),new Nf("j.s_",2),new Nf("r.s_",4),new Nf("e.h_",6),new Nf("i.s_",8),new Nf("s.t_",10),new Nf("p.h_",12),new Nf("s.i_",14),new Nf("f.i_",16),new Nf("a.b_",18),new Nf("a.o_"),new Nf("g.o_",22),new Nf("p.i_",24),new Nf("p.m_"),new Nf("n.k_",20),new Nf("i.f_"),new Nf("a.s_"),new Nf("m.c_"),new Nf("n.h_",26),new Nf("o.p_"),new Nf("m.p_",28),new Nf("o.a_"),new Nf("d.p_"),new Nf("e.i_")].reduce(function(A,L){A[L.W]=L;return A},{});g.G(pL,oA);g.p=pL.prototype; g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);this.qp=L;(this.wT=Mwk(this))&&g.CE(Error("hasAdControlInClickCommands_ is true."));if(!L||g.mi(L))g.mL(Error("SkipButtonRenderer was not specified or empty."));else if(!L.message||g.mi(L.message))g.mL(Error("SkipButtonRenderer.message was not specified or empty."));else if(A=this.D?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},L=this.api.K().J("delhi_modern_web_player_icons"),L=$r(A,!1,!1,L),L==null?g.mL(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+A.iconType+ ".")):(this.api.K().J("disable_touch_events_on_skip_button")&&(L.C=Object.assign({},L.C,{"aria-hidden":"true",focusable:"false"})),this.V=new g.DE({Z:"button",Rr:[this.D?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],B:[{Z:"span",j:this.D?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",B:[L]}]}),g.W(this,this.V),this.V.DM(this.U.element),this.W=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,"ytp-ad-skip-button-text"),this.D&&this.W.element.classList.add("ytp-ad-skip-button-text-centered"), this.W.init(Vo("ad-text"),this.qp.message,B),g.W(this,this.W),iA(this.V.element,this.W.element,0)),!this.api.K().J("disable_touch_events_on_skip_button")){var f=f===void 0?null:f;B=this.api.K();!(this.ZM.length>0)&&B.W&&(OR?0:"ontouchstart"in document.documentElement&&(Hxy()||HX()))&&(this.J$(this.Nl),f&&this.J$(f),this.ZM=[this.Y(this.element,"touchstart",this.onTouchStart,this),this.Y(this.element,"touchmove",this.onTouchMove,this),this.Y(this.element,"touchend",this.onTouchEnd,this)])}}; g.p.clear=function(){this.S4.reset();this.hide()}; g.p.hide=function(){this.U.hide();this.W&&this.W.hide();fL(this);oA.prototype.hide.call(this)}; g.p.onClick=function(A){if(this.V!=null){if(A){var L=A||window.event;L.returnValue=!1;L.preventDefault&&L.preventDefault()}var B;if(X9E(A,{contentCpn:((B=this.api.getVideoData(1))==null?void 0:B.clientPlaybackNonce)||""})===0)this.api.Kr("onAbnormalityDetected");else if(oA.prototype.onClick.call(this,A),this.publish("j"),this.api.Kr("onAdSkip"),this.Ex||!this.wT)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.p.oe=function(A){if(!this.Ex)return this.wT&&Dh("SkipButton click commands not pruned while ALC exist"),A;var L,B=(L=g.y(A,g.yr))==null?void 0:L.commands;if(!B)return A;A=[];for(L=0;L=this.D&&YS8(this,!0)};g.G(gk,Xb);gk.prototype.init=function(A,L,B){Xb.prototype.init.call(this,A,L,B);A=!1;L.text!=null&&(A=g.wq(L.text),A=!g.us(A));A?L.navigationEndpoint==null?g.CE(Error("No visit advertiser clickthrough provided in renderer,")):L.style!=="STYLE_UNKNOWN"?g.CE(Error("Button style was not a link-style type in renderer,")):this.show():g.CE(Error("No visit advertiser text was present in the renderer."))};g.G(Gh,dq); Gh.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);A=L.text;g.us(Iu(A))?g.CE(Error("SimpleAdBadgeRenderer has invalid or empty text")):(A&&A.text&&(L=A.text,this.V&&!this.W&&(L=this.api.K(),L=A.text+" "+(L&&L.W?"\u2022":"\u00b7")),L={text:L,isTemplated:A.isTemplated},A.style&&(L.style=A.style),A.targetId&&(L.targetId=A.targetId),A=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),A.init(Vo("simple-ad-badge"),L,B),A.DM(this.element),g.W(this,A)),this.show())}; Gh.prototype.clear=function(){this.hide()};g.G(rk,Jr);g.G(sN,g.SN);g.p=sN.prototype;g.p.XZ=function(){return this.durationMs}; g.p.stop=function(){this.N&&this.handler.J$(this.N)}; g.p.iq=function(A){this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:A.current};this.publish("h")}; g.p.getProgressState=function(){return this.W}; g.p.n0=function(A){g.wk(A,2)&&this.publish("g")};g.G(HH,g.SN);g.p=HH.prototype;g.p.XZ=function(){return this.durationMs}; g.p.start=function(){this.N||(this.N=!0,this.timer.start())}; g.p.stop=function(){this.N&&(this.N=!1,this.timer.stop())}; g.p.iq=function(){this.wQ+=100;var A=!1;this.wQ>this.durationMs&&(this.wQ=this.durationMs,this.timer.stop(),A=!0);this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.wQ/1E3};this.publish("h");A&&this.publish("g")}; g.p.getProgressState=function(){return this.W};g.G(kI,oA);g.p=kI.prototype;g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);var f;if(L==null?0:(f=L.templatedCountdown)==null?0:f.templatedAdText){A=L.templatedCountdown.templatedAdText;if(!A.isTemplated){g.CE(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.W=new AG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);this.W.init(Vo("ad-text"),A,{});this.W.DM(this.element);g.W(this,this.W)}this.show()}; g.p.clear=function(){this.hide()}; g.p.hide=function(){fL(this);oA.prototype.hide.call(this)}; g.p.q7=function(){this.hide()}; g.p.m3=function(){if(this.N!=null){var A=this.N.getProgressState();if(A!=null&&A.current!=null&&this.W){var L=this.N instanceof sN?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:A.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.N instanceof HH?A.seekableEnd:this.api.getDuration(2,!1);A=A.current;var B,f,K=((B=this.api.getVideoData())==null?0:(f=B.aA)==null?0:f.call(B))?Math.max(L-A,0):L-A;LL(this.W,{FORMATTED_AD_DURATION_REMAINING:String(g.hG(K)), TIME_REMAINING:String(Math.ceil(K))})}}}; g.p.show=function(){BH(this);oA.prototype.show.call(this)};g.G(Th,AG);Th.prototype.onClick=function(A){AG.prototype.onClick.call(this,A);this.api.onAdUxClicked(this.componentType)};g.G(mm,dq);mm.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(A=L.content){g.OA(this.element,A);var B,f;L=((B=L.interaction)==null?void 0:(f=B.accessibility)==null?void 0:f.label)||A;this.element.setAttribute("aria-label",L)}else g.mL(Error("AdSimpleAttributedString does not have text content"))}; mm.prototype.clear=function(){this.hide()}; mm.prototype.onClick=function(A){dq.prototype.onClick.call(this,A)};g.G(Qr,dq); Qr.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});(A=L.label)&&A.content&&!g.us(A.content)?(this.adBadgeText.init(Vo("ad-simple-attributed-string"),new lV(A)),(L=L.adPodIndex)&&L.content&&!g.us(L.content)&&(this.N=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),this.N.DM(this.element),g.W(this,this.N),this.N.element.classList.add("ytp-ad-badge__pod-index"),this.N.init(Vo("ad-simple-attributed-string"),new lV(L))),this.element.classList.add(this.W?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.mL(Error("No label is returned in AdBadgeViewModel."))}; Qr.prototype.show=function(){this.adBadgeText.show();var A;(A=this.N)==null||A.show();dq.prototype.show.call(this)}; Qr.prototype.hide=function(){this.adBadgeText.hide();var A;(A=this.N)==null||A.hide();dq.prototype.hide.call(this)};g.G(CL,dq);CL.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});(A=L.adPodIndex)&&A.content&&!g.us(A.content)&&(this.N=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),this.N.DM(this.element),g.W(this,this.N),this.N.init(Vo("ad-simple-attributed-string"),new lV(A)),L.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; CL.prototype.show=function(){var A;(A=this.N)==null||A.show();dq.prototype.show.call(this)}; CL.prototype.hide=function(){var A;(A=this.N)==null||A.hide();dq.prototype.hide.call(this)};g.G(iV,dq); iV.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(L!=null&&L.text){var B;if(((B=L.text)==null?0:B.content)&&!g.us(L.text.content)){this.N=new g.DE({Z:"div",j:"ytp-ad-disclosure-banner__text",Ir:L.text.content});g.W(this,this.N);this.N.DM(this.element);if(this.api.K().J("enable_ad_disclosure_banner_a11y_fix")){var f,K,V=(f=L.interaction)==null?void 0:(K=f.accessibility)==null?void 0:K.label;V||(V=L.text.content+" This link opens in new tab");ne(this.element,V)}else{var J;f=((V= L.interaction)==null?void 0:(J=V.accessibility)==null?void 0:J.label)||L.text.content;this.element.setAttribute("aria-label",f)}var R;if((R=L.interaction)==null?0:R.onTap)this.api.K().J("remove_chevron_from_ad_disclosure_banner_h5")||(this.W=new g.DE({Z:"div",j:"ytp-ad-disclosure-banner__chevron",B:[g.gq()]}),g.W(this,this.W),this.W.DM(this.element)),this.api.K().J("enable_ad_disclosure_banner_a11y_fix")&&(xw(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.A2)); this.show()}}else g.mL(Error("No banner text found in AdDisclosureBanner."))}; iV.prototype.A2=function(A){if(A.key==="Enter"||A.key===" ")A.preventDefault(),this.element.click()}; iV.prototype.clear=function(){this.hide()};g.G(ON,g.DE);ON.prototype.iq=function(){var A=this.W.getProgressState(),L=A.seekableEnd;this.api.getPresentingPlayerType()===2&&(L=this.V?this.V/1E3:A.seekableEnd);this.progressBar.style.width=Xo(new $I(A.seekableStart,L),A.current,0)*100+"%"}; ON.prototype.onStateChange=function(){g.xi(this.api.K())||(this.api.getPresentingPlayerType()===2?this.N===-1&&(this.show(),this.N=this.W.subscribe("h",this.iq,this),this.iq()):this.N!==-1&&(this.hide(),this.W.vR(this.N),this.N=-1))};g.G(EN,dq); EN.prototype.init=function(A,L,B,f){dq.prototype.init.call(this,A,L,B);if(L.skipOrPreviewRenderer){if(A=g.y(L.skipOrPreviewRenderer,fp))B=new jm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W,this.G),B.DM(this.Ys),B.init(Vo("skip-button"),A,this.macros),g.W(this,B);if(A=g.y(L.skipOrPreviewRenderer,fp))var K=A.skipOffsetMilliseconds}L.brandInteractionRenderer&&(A=L.brandInteractionRenderer.brandInteractionRenderer,B=new RA(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj), B.DM(this.wT),B.init(Vo("instream-user-sentiment"),A,this.macros),g.W(this,B));if(A=g.y(L,CLX))if(A=g.y(A,CLX))B=new Sm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W,!!L.showWithoutLinkedMediaLayout),g.W(this,B),B.DM(this.D),B.init(Vo("flyout-cta"),A,this.macros);f=f&&f.videoAdDurationSeconds;L.adBadgeRenderer&&(B=L.adBadgeRenderer,A=g.y(B,Y4),A!=null?(B=new Qr(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!1),g.W(this,B),B.DM(this.N),B.init(Vo("ad-badge"), A,this.macros),this.V=B.element):(A=B.simpleAdBadgeRenderer,A==null&&(A={text:{text:"Anuncio",isTemplated:!1}}),B=new Gh(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0),g.W(this,B),B.DM(this.N),B.init(Vo("simple-ad-badge"),A,this.macros)));L.adPodIndex&&(A=g.y(L.adPodIndex,WvI),A!=null&&(B=new CL(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,B),B.DM(this.N),B.init(Vo("ad-pod-index"),A)));L.adDurationRemaining&&!L.showWithoutLinkedMediaLayout&&(A=L.adDurationRemaining.adDurationRemainingRenderer, A==null&&(A={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),f=new kI(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W,f,!1),g.W(this,f),f.DM(this.N),f.init(Vo("ad-duration-remaining"),A,this.macros));L.adInfoRenderer&&(f=g.y(L.adInfoRenderer,he))&&(A=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.element,void 0,!1),g.W(this,A),this.V!==null?this.N.insertBefore(A.element,this.V.nextSibling):A.DM(this.N), A.init(Vo("ad-info-hover-text-button"),f,this.macros));L.visitAdvertiserRenderer&&(A=g.y(L.visitAdvertiserRenderer,g.te))&&(B=qSD(this)&&this.U?this.U:this.N)&&(f=new gk(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,f),f.DM(B),f.init(Vo("visit-advertiser"),A,this.macros),xw(f.element),A=z7(f.element),ne(f.element,A+" This link opens in new tab"));!(f=this.api.K())||g.qM(f)||g.MM(f)||f.controlsType!="3"&&!f.disableOrganicUi||(K=new ON(this.api,this.W,K,!1),K.DM(this.S4), g.W(this,K));L.adDisclosureBannerRenderer&&(L=g.y(L.adDisclosureBannerRenderer,UCf))&&(K=new iV(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),K.DM(this.qp),K.init(Vo("ad-disclosure-banner"),L),g.W(this,K));this.api.K().J("enable_updated_html5_player_focus_style")&&g.R1(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; EN.prototype.clear=function(){this.hide()};g.YI.prototype.flush=function(A,L){A=A===void 0?[]:A;L=L===void 0?!1:L;if(g.h_("enable_client_streamz_web")){A=g.m(A);for(var B=A.next();!B.done;B=A.next())B=rsD(B.value),this.N&&PG(B,gm,2,this.N),B={serializedIncrementBatch:g.Y$(B.V())},g.pE("streamzIncremented",B,{sendIsolatedPayload:L})}}; g.G(xED,g.YI);var yky=new Map;UN.prototype.set=function(A,L,B){B=B!==void 0?Date.now()+B:void 0;this.N.set(A,L,B)}; UN.prototype.get=function(A){return this.N.get(A)}; UN.prototype.remove=function(A){this.N.remove(A)};var n_e=null;var xI=null,em=null,nL=null,LzC=null;g.hf("yt.www.ads.eventcache.getLastCompanionData",function(){return xI}); g.hf("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.hf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return em}); g.hf("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return nL}); g.hf("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return LzC});var B2e=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);zh.prototype.handleResponse=function(A,L){if(!L)throw Error("request needs to be passed into ConsistencyService");var B,f;L=((B=L.jJ.context)==null?void 0:(f=B.request)==null?void 0:f.consistencyTokenJars)||[];var K;(A=(K=A.responseContext)==null?void 0:K.consistencyTokenJar)&&this.replace(L,A)}; zh.prototype.replace=function(A,L){A=g.m(A);for(var B=A.next();!B.done;B=A.next())delete this.N[B.value.encryptedTokenJarContents];Kz0(this,L)};var u95=window.location.hostname.split(".").slice(-2).join("."),tN;aA.getInstance=function(){tN=g.bB("yt.clientLocationService.instance");tN||(tN=new aA,g.hf("yt.clientLocationService.instance",tN));return tN}; g.p=aA.prototype; g.p.setLocationOnInnerTubeContext=function(A){A.client||(A.client={});if(this.N)A.client.locationInfo||(A.client.locationInfo={}),A.client.locationInfo.latitudeE7=Math.floor(this.N.coords.latitude*1E7),A.client.locationInfo.longitudeE7=Math.floor(this.N.coords.longitude*1E7),A.client.locationInfo.horizontalAccuracyMeters=Math.round(this.N.coords.accuracy),A.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.V||this.locationPlayabilityToken)A.client.locationPlayabilityToken=this.V|| this.locationPlayabilityToken}; g.p.handleResponse=function(A){var L;A=(L=A.responseContext)==null?void 0:L.locationPlayabilityToken;A!==void 0&&(this.locationPlayabilityToken=A,this.N=void 0,g.A_("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=uV(this))&&this.localStorage.set("yt-location-playability-token",A,15552E3):g.Ms("YT_CL",JSON.stringify({loctok:A}),15552E3,u95,!0))}; g.p.clearLocationPlayabilityToken=function(A){A==="TVHTML5"?(this.localStorage=uV(this))&&this.localStorage.remove("yt-location-playability-token"):g.UQ("YT_CL");this.V=void 0;this.W!==-1&&(clearTimeout(this.W),this.W=-1)}; g.p.getCurrentPositionFromGeolocation=function(){var A=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var L=!1,B=1E4;g.A_("INNERTUBE_CLIENT_NAME")==="MWEB"&&(L=!0,B=15E3);return new Promise(function(f,K){navigator.geolocation.getCurrentPosition(function(V){A.N=V;f(V)},function(V){K(V)},{enableHighAccuracy:L, maximumAge:0,timeout:B})})}; g.p.createUnpluggedLocationInfo=function(A){var L={};A=A.coords;if(A==null?0:A.latitude)L.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)L.longitudeE7=Math.floor(A.longitude*1E7);if(A==null?0:A.accuracy)L.locationRadiusMeters=Math.round(A.accuracy);return L}; g.p.createLocationInfo=function(A){var L={};A=A.coords;if(A==null?0:A.latitude)L.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)L.longitudeE7=Math.floor(A.longitude*1E7);return L};g.p=Zsy.prototype;g.p.contains=function(A){return Object.prototype.hasOwnProperty.call(this.N,A)}; g.p.get=function(A){if(this.contains(A))return this.N[A]}; g.p.set=function(A,L){this.N[A]=L}; g.p.F1=function(){return Object.keys(this.N)}; g.p.remove=function(A){delete this.N[A]};L0.prototype.getModuleId=function(A){return A.serviceId.getModuleId()}; L0.prototype.get=function(A){a:{var L=this.mappings.get(A.toString());switch(L.type){case "mapping":A=L.value;break a;case "factory":L=L.value();this.mappings.set(A.toString(),{type:"mapping",value:L});A=L;break a;default:A=kj(L)}}return A}; L0.prototype.registerService=function(A,L){this.mappings.set(A.toString(),{type:"mapping",value:L});return A}; new L0;var ku={},N2v=(ku.WEB_UNPLUGGED="^unplugged/",ku.WEB_UNPLUGGED_ONBOARDING="^unplugged/",ku.WEB_UNPLUGGED_OPS="^unplugged/",ku.WEB_UNPLUGGED_PUBLIC="^unplugged/",ku.WEB_CREATOR="^creator/",ku.WEB_KIDS="^kids/",ku.WEB_EXPERIMENTS="^experiments/",ku.WEB_MUSIC="^music/",ku.WEB_REMIX="^music/",ku.WEB_MUSIC_EMBEDDED_PLAYER="^music/",ku.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",ku);f0.prototype.D=function(A,L,B){L=L===void 0?{}:L;B=B===void 0?dE:B;var f={context:g.AV(A.clickTrackingParams,!1,this.U)};var K=this.W(A);if(K){this.N(f,K,L);var V;L=g.B8(this.V());(K=(V=g.y(A.commandMetadata,g.jy))==null?void 0:V.apiUrl)&&(L=K);V=eqS(W7(L));A=Object.assign({},{command:A},void 0);f={input:V,rM:v7(V),jJ:f,config:A};f.config.i8?f.config.i8.identity=B:f.config.i8={identity:B};return f}B=new g.iL("Error: Failed to create Request from Command.",A);g.mL(B)}; g.v6.Object.defineProperties(f0.prototype,{U:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.G(K0,f0);g.G(Vm,K0);Vm.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",rM:v7("/getDatasyncIdsEndpoint","GET"),jJ:{}}}; Vm.prototype.V=function(){return[]}; Vm.prototype.W=function(){}; Vm.prototype.N=function(){};var aRt={},vLv=(aRt.GET_DATASYNC_IDS=ov(Vm),aRt);var Te={},AOw=(Te["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Te["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Te["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Te["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Te["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Te["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Te["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Te["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Te["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Te["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Te["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Te["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Te["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Te["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Te["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", Te["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Te["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Te["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Te["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Te["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Te["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Te["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", Te["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Te.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Te["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Te["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Te["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Te["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Te["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Te["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", Te["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Te["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Te["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Te["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Te["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Te["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Te["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Te["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Te["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Te["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Te.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Te["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Te["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Te["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Te["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Te["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Te["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Te["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Te["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Te["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Te["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Te["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Te["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Te["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Te["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Te["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Te["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Te["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Te["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Te["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Te["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Te["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", Te["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Te["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Te["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Te["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Te["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Te["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Te["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Te["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Te["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", Te["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Te["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Te["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Te["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Te["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Te["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Te["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Te["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", Te),lo={},yRS=(lo.auto_search="LATENCY_ACTION_AUTO_SEARCH",lo.ad_to_ad="LATENCY_ACTION_AD_TO_AD",lo.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",lo.app_startup="LATENCY_ACTION_APP_STARTUP",lo.browse="LATENCY_ACTION_BROWSE",lo.cast_splash="LATENCY_ACTION_CAST_SPLASH",lo.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",lo.channels="LATENCY_ACTION_CHANNELS",lo.chips="LATENCY_ACTION_CHIPS",lo.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",lo.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", lo.editor="LATENCY_ACTION_EDITOR",lo.embed="LATENCY_ACTION_EMBED",lo.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",lo.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",lo.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",lo.explore="LATENCY_ACTION_EXPLORE",lo.favorites="LATENCY_ACTION_FAVORITES",lo.home="LATENCY_ACTION_HOME",lo.inboarding="LATENCY_ACTION_INBOARDING",lo.landing="LATENCY_ACTION_LANDING",lo.learning="LATENCY_ACTION_LEARNING", lo.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",lo.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",lo.library="LATENCY_ACTION_LIBRARY",lo.live="LATENCY_ACTION_LIVE",lo.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",lo.management="LATENCY_ACTION_MANAGEMENT",lo.mini_app="LATENCY_ACTION_MINI_APP_PLAY",lo.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",lo.onboarding="LATENCY_ACTION_ONBOARDING",lo.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", lo.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",lo.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",lo.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",lo.prebuffer="LATENCY_ACTION_PREBUFFER",lo.prefetch="LATENCY_ACTION_PREFETCH",lo.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",lo.profile_switcher="LATENCY_ACTION_LOGIN",lo.projects="LATENCY_ACTION_PROJECTS",lo.reel_watch="LATENCY_ACTION_REEL_WATCH",lo.results="LATENCY_ACTION_RESULTS",lo.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", lo.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",lo.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",lo.review="LATENCY_ACTION_REVIEW",lo.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",lo.search_ui="LATENCY_ACTION_SEARCH_UI",lo.search_suggest="LATENCY_ACTION_SUGGEST",lo.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",lo.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",lo.seek="LATENCY_ACTION_PLAYER_SEEK",lo.settings="LATENCY_ACTION_SETTINGS",lo.store="LATENCY_ACTION_STORE", lo.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",lo.tenx="LATENCY_ACTION_TENX",lo.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",lo.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",lo.watch="LATENCY_ACTION_WATCH",lo.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",lo["watch,watch7"]="LATENCY_ACTION_WATCH",lo["watch,watch7_html5"]="LATENCY_ACTION_WATCH",lo["watch,watch7ad"]="LATENCY_ACTION_WATCH",lo["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",lo.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", lo.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",lo.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",lo.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",lo.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",lo.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",lo.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",lo.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",lo);Object.assign(yRS,AOw);g.G(Iv,II);var QlD=new wE("aft-recorded",Iv);var Li5=g.rI.ytLoggingGelSequenceIdObj_||{};g.hf("ytLoggingGelSequenceIdObj_",Li5);var ym=g.rI.ytLoggingLatencyUsageStats_||{};g.hf("ytLoggingLatencyUsageStats_",ym);wX.prototype.tick=function(A,L,B,f){jG(this,"tick_"+A+"_"+L)||g.pE("latencyActionTicked",{tickName:A,clientActionNonce:L},{timestamp:B,cttAuthInfo:f})}; wX.prototype.info=function(A,L,B){var f=Object.keys(A).join("");jG(this,"info_"+f+"_"+L)||(A=Object.assign({},A),A.clientActionNonce=L,g.pE("latencyActionInfo",A,{cttAuthInfo:B}))}; wX.prototype.jspbInfo=function(A,L,B){for(var f="",K=0;K=K.length?(L.append(K),A-=K.length):A?(L.append(new Uint8Array(K.buffer,K.byteOffset,A)),B.append(new Uint8Array(K.buffer,K.byteOffset+A,K.length-A)),A=0):B.append(K);return{NJ:L,Mz:B}}; FK.prototype.isFocused=function(A){return A>=this.V&&A=64&&(this.T.set(A.subarray(0,64-this.W),this.W),L=64-this.W,this.W=0,El1(this,this.T,0));for(;L+64<=B;L+=64)El1(this,A,L);L=this.start&&(A=2&&B.ssdaiAdsConfig&&Dh("Unexpected ad placement renderers length",A.slot,null,{length:f.length});var K;((K=B.adSlots)==null?0:K.some(function(V){var J,R;return((J=g.y(V,Gl))==null?void 0:(R=J.adSlotMetadata)==null?void 0:R.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||f.some(function(V){var J,R,Z,N; return!!((J=V.renderer)==null?0:(R=J.linearAdSequenceRenderer)==null?0:(Z=R.linearAds)==null?0:Z.length)||!((N=V.renderer)==null||!N.instreamVideoAdRenderer)})||ZES(A)})}; xG.prototype.IJ=function(){n0L(this.N)};ei.prototype.ez=function(){var A=this;e8D(this.W,function(){var L=PF(A.slot.clientMetadata,"metadata_type_ad_break_request_data");return L.cueProcessedMs?A.N.get().fetch({HK:L.getAdBreakUrl,eG:new g.WR(L.f3,L.hU),cueProcessedMs:L.cueProcessedMs}):A.N.get().fetch({HK:L.getAdBreakUrl,eG:new g.WR(L.f3,L.hU)})})}; ei.prototype.IJ=function(){n0L(this.W)};ny.prototype.ez=function(){var A=this.slot.clientMetadata,L,B=(L=this.slot.fulfilledLayout)!=null?L:PF(A,"metadata_type_fulfilled_layout");h8Q(this.callback,this.slot,B)}; ny.prototype.IJ=function(){Jm(this.callback,this.slot,new n("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")};uY.prototype.build=function(A,L){return L.fulfilledLayout||zi(L,{qQ:["metadata_type_fulfilled_layout"]})?new ny(A,L):this.V(A,L)};g.G(a6,uY); a6.prototype.V=function(A,L){if(zi(L,{qQ:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new xG(A,L,this.N,this.W,this.Le,this.FD,this.j4,this.Mp,this.sE);if(zi(L,{qQ:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new ei(A,L,this.N,this.W,this.Le,this.FD);throw new n("Unsupported slot with type: "+L.slotType+" and client metadata: "+xX(L.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.G(AE,uY);AE.prototype.V=function(A,L){throw new n("Unsupported slot with type: "+L.slotType+" and client metadata: "+xX(L.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.p=N86.prototype;g.p.LY=function(){return this.slot}; g.p.dT=function(){return this.layout}; g.p.init=function(){}; g.p.release=function(){}; g.p.startRendering=function(A){if(A.layoutId!==this.layout.layoutId)this.callback.o0(this.slot,A,new vF("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 L=PF(A.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.lq(this.slot,A),Ahe(this.V, this.slot,L)):Dh("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,A)}}; g.p.D1=function(A,L){A.layoutId!==this.layout.layoutId?this.callback.o0(this.slot,A,new vF("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.CD(this.slot,A,L),D26(this),d2k(this))};g.G(KU,g.SN);g.p=KU.prototype;g.p.LY=function(){return this.W.slot}; g.p.dT=function(){return this.W.layout}; g.p.init=function(){this.V.get().addListener(this)}; g.p.release=function(){this.V.get().removeListener(this);this.dispose()}; g.p.Fj=function(){}; g.p.kp=function(){}; g.p.lc=function(){}; g.p.cS=function(){}; g.p.startRendering=function(A){var L=this;fU(this.W,A,function(){return void L.QV()})}; g.p.QV=function(){this.V.get().QV(this.N)}; g.p.D1=function(A,L){var B=this;fU(this.W,A,function(){var f=B.V.get();LA6(f,B.N,3);B.N=[];B.callback.CD(B.slot,A,L)})}; g.p.l1=function(){this.V.TL()||this.V.get().removeListener(this);g.SN.prototype.l1.call(this)}; g.v6.Object.defineProperties(KU.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.W.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.W.layout}}});DT.prototype.QF=function(A,L){L=L===void 0?!1:L;var B=(this.V.get(A)||[]).concat();if(L=L&&yvv(A)){var f=this.V.get(L);f&&B.push.apply(B,g.x7(f))}wj(this,A,B);this.N.add(A);L&&this.N.add(L)}; DT.prototype.eI=function(A,L){L=L===void 0?!1:L;if(!this.N.has(A)){var B=L&&yvv(A);B&&(L=!this.N.has(B));this.QF(A,L)}};g.G(GNk,Jr);g.G(GY,KU);g.p=GY.prototype;g.p.dI=function(A,L){RE("ads-engagement-panel-layout",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)}; g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,oG),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(L,B,f,K,V){return new GNk(L,B,f,K,V)},this.N); KU.prototype.startRendering.call(this,A)}; g.p.lq=function(A,L){this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.p.CD=function(){}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){}; g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(s90,Jr);g.G(rj,KU);g.p=rj.prototype;g.p.dI=function(A,L){RE("banner-image",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)}; g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,Ae),this.callback,"metadata_type_banner_image_layout_view_model",function(L,B,f,K,V){return new s90(L,B,f,K,V)},this.N); KU.prototype.startRendering.call(this,A)}; g.p.lq=function(A,L){this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.p.CD=function(){}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){}; g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(sb,Jr);g.G(H$,KU);g.p=H$.prototype;g.p.dI=function(A,L){RE("action-companion",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)}; g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,zA),this.callback,"metadata_type_action_companion_ad_renderer",function(L,B,f,K,V){return new sb(L,B,f,K,V)},this.N); KU.prototype.startRendering.call(this,A)}; g.p.lq=function(A,L){L.layoutId===this.layout.layoutId?this.vn.eI("impression"):this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.p.CD=function(){}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){}; g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(bES,Jr);g.G(hE,KU);g.p=hE.prototype;g.p.dI=function(A,L){RE("image-companion",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)}; g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,uh),this.callback,"metadata_type_image_companion_ad_renderer",function(L,B,f,K,V){return new bES(L,B,f,K,V)},this.N); KU.prototype.startRendering.call(this,A)}; g.p.lq=function(A,L){L.layoutId===this.layout.layoutId?this.vn.eI("impression"):this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.p.CD=function(){}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){}; g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(kNe,Jr);g.G(bd,KU);g.p=bd.prototype;g.p.dI=function(A,L){RE("shopping-companion",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)}; g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(L,B,f,K,V){return new kNe(L,B,f,K,V)},this.N); KU.prototype.startRendering.call(this,A)}; g.p.lq=function(A,L){L.layoutId===this.layout.layoutId?this.vn.eI("impression"):this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.p.CD=function(){}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){}; g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(TY,KU);g.p=TY.prototype;g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(L,B,f,K,V){return new sb(L,B,f,K,V)},this.N); KU.prototype.startRendering.call(this,A)}; g.p.lq=function(){}; g.p.CD=function(){}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){}; g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)}; g.p.dI=function(){};g.p=CfS.prototype;g.p.LY=function(){return this.slot}; g.p.dT=function(){return this.layout}; g.p.init=function(){this.Mp.get().addListener(this);this.Mp.get().Sz.push(this);var A=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=PF(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");ZT(this.layout.Vf)&&aH(this.Fr.get(),this.layout.layoutId,{nt:L,Ag:A,listener:this})}; g.p.release=function(){this.Mp.get().removeListener(this);e6C(this.Mp.get(),this);ZT(this.layout.Vf)&&A3(this.Fr.get(),this.layout.layoutId)}; g.p.startRendering=function(A){this.callback.lq(this.slot,A)}; g.p.D1=function(A,L){jiE(this.FD.get())&&!this.N&&(this.vn.eI("abandon"),this.N=!0);this.callback.CD(this.slot,A,L)}; g.p.jO=function(A){switch(A.id){case "part2viewed":this.vn.eI("start");this.vn.eI("impression");break;case "videoplaytime25":this.vn.eI("first_quartile");break;case "videoplaytime50":this.vn.eI("midpoint");break;case "videoplaytime75":this.vn.eI("third_quartile");break;case "videoplaytime100":jiE(this.FD.get())?this.N||(this.vn.eI("complete"),this.N=!0):this.vn.eI("complete");gj(this.vn)&&yc(this.vn,Infinity,!0);gJS(this.FD.get())&&km(this.W,Infinity,!0);break;case "engagedview":gj(this.vn)||this.vn.eI("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Dh("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.p.onVolumeChange=function(){}; g.p.T_=function(){}; g.p.mF=function(){}; g.p.iH=function(){}; g.p.onFullscreenToggled=function(){}; g.p.H9=function(){}; g.p.C9=function(){}; g.p.NA=function(A){gJS(this.FD.get())&&km(this.W,A*1E3,!1);gj(this.vn)&&yc(this.vn,A*1E3,!1)}; g.p.gb=function(){}; g.p.qN=function(){this.vn.eI("active_view_measurable")}; g.p.IM=function(){this.vn.eI("active_view_viewable")}; g.p.HQ=function(){this.vn.eI("active_view_fully_viewable_audible_half_duration")}; g.p.WQ=function(){this.vn.eI("audio_measurable")}; g.p.NN=function(){this.vn.eI("audio_audible")};g.G(ld,KU);g.p=ld.prototype;g.p.init=function(){KU.prototype.init.call(this);var A=PF(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),L={adsClientData:this.layout.Aw};this.N.push(new rk(A,this.layout.layoutId,PF(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),L,!0))}; g.p.fl=function(){this.U||this.Mp.get().resumeVideo(1)}; g.p.startRendering=function(A){KU.prototype.startRendering.call(this,A);J3(this.Mp.get(),"ad-showing");this.callback.lq(this.slot,A);this.D.Yr=this}; g.p.D1=function(A,L){KU.prototype.D1.call(this,A,L);Sp(this.Mp.get(),"ad-showing");qe(this.D,this)}; g.p.dI=function(A){switch(A){case "ad-info-icon-button":(this.U=this.Mp.get().l5(1))||this.Mp.get().pauseVideo();break;case "visit-advertiser":this.Mp.get().pauseVideo()}}; g.p.l1=function(){KU.prototype.l1.call(this)};g.G(mD,Jr);g.G(Qc,KU);g.p=Qc.prototype;g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(L,B,f,K,V){return new mD(L,B,f,K,V)},this.N); KU.prototype.startRendering.call(this,A)}; g.p.lq=function(){}; g.p.CD=function(){}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){}; g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)}; g.p.dI=function(){};g.G(CU,Jr);g.G(id,KU);id.prototype.init=function(){KU.prototype.init.call(this);this.N.push(new CU(g.y(this.layout.renderingContent,yQ),this.layout.layoutId,{adsClientData:this.layout.Aw}))}; id.prototype.dI=function(){pS(this.U.get(),this.D)&&S9(this.j4.get(),3)}; id.prototype.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A)}; id.prototype.l1=function(){KU.prototype.l1.call(this)};g.G($m,Jr);g.G(Xw,KU);Xw.prototype.init=function(){KU.prototype.init.call(this);var A=g.y(this.layout.renderingContent,nU)||PF(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),L=Vc(this.vn);this.N.push(new $m(A,L,this.layout.layoutId,{adsClientData:this.layout.Aw},!0,!0))}; Xw.prototype.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A)}; Xw.prototype.dI=function(A,L){if(L===this.layout.layoutId)switch(A){case "skip-button":var B;(A=(B=PF(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:B.current)&&Wi(A,this.LY(),this.layout)}}; Xw.prototype.l1=function(){KU.prototype.l1.call(this)};Eb.prototype.build=function(A,L,B,f){if(Ob(f,{qQ:["metadata_type_ad_break_response_data"],o8:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new N86(A,B,f,this.W,this.V,this.N);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.G(Xbk,Jr);g.G(c$,KU);g.p=c$.prototype;g.p.dI=function(A,L){RE("ads-engagement-panel",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)}; g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,a2),this.callback,"metadata_type_ads_engagement_panel_renderer",function(L,B,f,K,V){return new Xbk(L,B,f,K,V)},this.N); KU.prototype.startRendering.call(this,A)}; g.p.lq=function(A,L){L.layoutId===this.layout.layoutId?this.vn.eI("impression"):this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.p.CD=function(){}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){}; g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};g.G(MS,KU);g.p=MS.prototype;g.p.dI=function(A,L){RE("top-banner-image-text-icon-buttoned",A,this.T.get().F5,this.j4.get(),this.U,this.D,this.LY(),this.dT(),L)}; g.p.startRendering=function(A){JE(this.vn,this.LY(),this.dT(),g.y(this.dT().renderingContent,LJ),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(L,B,f,K,V){return new mD(L,B,f,K,V)},this.N); KU.prototype.startRendering.call(this,A)}; g.p.lq=function(A,L){this.D===L.layoutId&&(this.U===null?this.U=this.j4.get().b0():Dh("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.p.CD=function(){}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){}; g.p.l1=function(){fy(this.wf(),this);KU.prototype.l1.call(this)};cvk.prototype.build=function(A,L,B,f){if(Ob(f,OEy())||g.y(f.renderingContent,a2)!==void 0)return new c$(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,hk7())||g.y(f.renderingContent,zA)!==void 0)return new H$(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,tBy())||g.y(f.renderingContent,uh)!==void 0)return new hE(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,T8k()))return new bd(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,Q98()))return new TY(A,B,f,this.IA,this.j4,this.wf, this.Fr,this.N);if(Ob(f,HEe())||g.y(f.renderingContent,Ae)!==void 0)return new rj(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,EfD())||g.y(f.renderingContent,LJ)!==void 0)return new MS(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,iE0()))return new Qc(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);if(Ob(f,rvk())||g.y(f.renderingContent,oG)!==void 0)return new GY(A,B,f,this.IA,this.j4,this.wf,this.Fr,this.N);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+ xX(f.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};MBD.prototype.build=function(A,L,B,f){if(Ob(f,{qQ:["metadata_type_linked_player_bytes_layout_id"],o8:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new id(A,B,f,this.IA,this.j4,this.N);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.p=YFE.prototype;g.p.LY=function(){return this.slot}; g.p.dT=function(){return this.layout}; g.p.init=function(){}; g.p.release=function(){}; g.p.startRendering=function(A){A.layoutId!==this.layout.layoutId?this.callback.o0(this.slot,A,new vF("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.lq(this.slot,A),this.vn.eI("impression"),xF(this.Xy,A))}; g.p.D1=function(A,L){A.layoutId!==this.layout.layoutId?this.callback.o0(this.slot,A,new vF("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.CD(this.slot,A,L)};g.p=WLy.prototype;g.p.LY=function(){return this.slot}; g.p.dT=function(){return this.layout}; g.p.init=function(){}; g.p.release=function(){}; g.p.startRendering=function(A){A.layoutId!==this.layout.layoutId?this.callback.o0(this.slot,A,new vF("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.lq(this.slot,A),this.vn.eI("impression"),xF(this.Xy,A))}; g.p.D1=function(A,L){A.layoutId!==this.layout.layoutId?this.callback.o0(this.slot,A,new vF("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.CD(this.slot,A,L)};Ym.prototype.build=function(A,L,B,f){if(!this.FD.get().S.K().J("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Ob(f,U2C()))return new YFE(A,B,f,this.j4,this.Xy)}else if(Ob(f,{qQ:[],o8:["LAYOUT_TYPE_FORECASTING"]}))return new WLy(A,B,f,this.j4,this.Xy);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.G(Pf7,Jr);g.G(Ub,KU);g.p=Ub.prototype;g.p.init=function(){KU.prototype.init.call(this);var A=g.y(this.layout.renderingContent,e9)||PF(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),L={adsClientData:this.layout.Aw};this.N.push(new Pf7(A,PF(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,L))}; g.p.fl=function(){this.U||this.Mp.get().resumeVideo(2)}; g.p.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A);this.D.Yr=this}; g.p.D1=function(A,L){KU.prototype.D1.call(this,A,L);qe(this.D,this)}; g.p.dI=function(A,L){if(!XW(this.FD.get(),"stop_handling_click_for_non_rendering_overlay_layout")||L===this.layout.layoutId){if(pS(this.T.get(),this.X))switch(A){case "visit-advertiser-link":S9(this.j4.get(),3)}switch(A){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.U||this.Mp.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.U=this.Mp.get().l5(2))||this.Mp.get().pauseVideo();break; case "visit-advertiser-link":this.Mp.get().pauseVideo();x2D(this).bj();break;case "skip-button":if(A=x2D(this),this.layout.renderingContent&&!YX(this.layout.clientMetadata,"metadata_type_dai")||!A||!A.UB){var B;(A=(B=PF(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:B.current)&&Wi(A,this.LY(),this.layout)}else Dh("Requesting to skip by LegacyPlayerBytes when components enabled"),A.vc(this.LY(),this.layout)}}}; g.p.l1=function(){KU.prototype.l1.call(this)};g.G(W$,KU);g.p=W$.prototype;g.p.init=function(){KU.prototype.init.call(this);var A=g.y(this.layout.renderingContent,xm)||PF(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),L={adsClientData:this.layout.Aw},B;(B=!!this.layout.renderingContent)||(B=v$(this),B=!(B&&B.UB));this.N.push(new rk(A,this.layout.layoutId,PF(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),L,B))}; g.p.fl=function(){this.U||this.Mp.get().resumeVideo(2)}; g.p.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A);this.D.Yr=this}; g.p.D1=function(A,L){KU.prototype.D1.call(this,A,L);qe(this.D,this)}; g.p.dI=function(A,L){if(!this.FD||!XW(this.FD.get(),"stop_handling_click_for_non_rendering_overlay_layout")||L===this.layout.layoutId){if(pS(this.T.get(),this.X))switch(A){case "visit-advertiser":S9(this.j4.get(),3)}switch(A){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.U||this.Mp.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.U=this.Mp.get().l5(2))||this.Mp.get().pauseVideo();break; case "visit-advertiser":this.Mp.get().pauseVideo();v$(this).bj();break;case "skip-button":if(A=v$(this),this.layout.renderingContent&&!YX(this.layout.clientMetadata,"metadata_type_dai")||!A||!A.UB){var B;(A=(B=PF(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:B.current)&&Wi(A,this.LY(),this.layout)}else Dh("Requesting to skip by LegacyPlayerBytes"),A.vc(this.LY(),this.layout)}}}; g.p.l1=function(){KU.prototype.l1.call(this)};g.G(nfL,Jr);g.G(qS,KU);g.p=qS.prototype;g.p.startRendering=function(A){var L=this;fU(this.W,A,function(){L.N.push(new nfL(PF(L.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),A.layoutId,A.Aw));L.QV();L.callback.lq(L.slot,A);g.x(uF(L.Mp.get(),1),512)&&L.callback.o0(L.LY(),L.dT(),new vF("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.p.C9=function(){}; g.p.H9=function(A){if(A.state.isError()){var L;this.callback.o0(this.LY(),this.dT(),new vF("A player error happened during adNotify",{playerErrorCode:(L=A.state.nh)==null?void 0:L.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.p.onFullscreenToggled=function(){}; g.p.mF=function(){}; g.p.iH=function(){}; g.p.T_=function(){}; g.p.onVolumeChange=function(){}; g.p.jO=function(){}; g.p.gb=function(){}; g.p.dI=function(){};g.G(uPy,Jr);g.G(P$,KU);P$.prototype.init=function(){KU.prototype.init.call(this);var A=g.y(this.layout.renderingContent,zY),L=Vc(this.vn);this.N.push(new uPy(A,L,this.layout.layoutId,{adsClientData:this.layout.Aw}))}; P$.prototype.startRendering=function(A){KU.prototype.startRendering.call(this,A);this.callback.lq(this.slot,A)}; P$.prototype.dI=function(A,L){if(L===this.layout.layoutId)switch(A){case "skip-button":var B;(A=(B=PF(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:B.current)&&Wi(A,this.LY(),this.layout)}}; P$.prototype.l1=function(){KU.prototype.l1.call(this)};aOS.prototype.build=function(A,L,B,f){if(A=ud(A,B,f,this.IA,this.Mp,this.j4,this.W,this.N,this.FD))return A;throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.p=L$.prototype;g.p.LY=function(){return this.slot}; g.p.dT=function(){return this.layout}; g.p.init=function(){this.Mp.get().addListener(this);this.Mp.get().Sz.push(this);var A=Ar8(this),L=g.y(this.layout.renderingContent,d9),B=L?NS(L.pings):PF(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");L=L?pbQ(L.pings):PF(this.layout.clientMetadata,"metadata_type_active_view_identifier");ZT(this.layout.Vf)&&aH(this.Fr.get(),this.layout.layoutId,{nt:B,Ag:A,listener:this,Lb:L})}; g.p.release=function(){this.Mp.get().removeListener(this);e6C(this.Mp.get(),this);ZT(this.layout.Vf)&&A3(this.Fr.get(),this.layout.layoutId)}; g.p.startRendering=function(A){this.callback.lq(this.slot,A)}; g.p.D1=function(A,L){oT(this,"abandon");this.callback.CD(this.slot,A,L)}; g.p.jO=function(A){switch(A.id){case "part2viewed":this.vn.eI("start");this.vn.eI("impression");break;case "videoplaytime25":this.vn.eI("first_quartile");break;case "videoplaytime50":this.vn.eI("midpoint");break;case "videoplaytime75":this.vn.eI("third_quartile");break;case "videoplaytime100":oT(this,"complete");gj(this.vn)&&yc(this.vn,Infinity,!0);GfE(this.FD.get())&&km(this.W,Infinity,!0);break;case "engagedview":gj(this.vn)||this.vn.eI("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Dh("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.p.onVolumeChange=function(){}; g.p.T_=function(){}; g.p.mF=function(){}; g.p.iH=function(){}; g.p.onFullscreenToggled=function(){}; g.p.H9=function(A){this.N||(g.wk(A,4)&&!g.wk(A,2)?pU(this.vn,"pause"):IA(A,4)<0&&!(IA(A,2)<0)&&pU(this.vn,"resume"))}; g.p.C9=function(){}; g.p.NA=function(A){GfE(this.FD.get())&&km(this.W,A*1E3,!1);gj(this.vn)&&yc(this.vn,A*1E3,!1)}; g.p.gb=function(){oT(this,"swipe")}; g.p.qN=function(){this.vn.eI("active_view_measurable")}; g.p.IM=function(){this.vn.eI("active_view_viewable")}; g.p.HQ=function(){this.vn.eI("active_view_fully_viewable_audible_half_duration")}; g.p.WQ=function(){this.vn.eI("audio_measurable")}; g.p.NN=function(){this.vn.eI("audio_audible")};L18.prototype.build=function(A,L,B,f){if(B.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.y(f.renderingContent,d9)!==void 0)return new L$(A,B,f,this.Mp,this.j4,this.gi,this.FD,this.Fr,this.hF);L=["metadata_type_ad_placement_config"];for(var K=g.m(dj()),V=K.next();!V.done;V=K.next())L.push(V.value);if(Ob(f,{qQ:L,o8:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return B.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new L$(A,B,f,this.Mp,this.j4,this.gi,this.FD,this.Fr,this.hF):new CfS(A,B,f, this.Mp,this.j4,this.gi,this.FD,this.Fr);throw new vF("Unsupported layout with type: "+f.layoutType+" and client metadata: "+xX(f.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var pk9,$u; pk9={REF:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",vRx:"AUTHENTICATION_MALFORMED",a5T:"AUTHENTICATION_MISSING",O9j:"BAD_REQUEST",WXD:"CAST_SESSION_DEVICE_MISMATCHED",HQx:"CAST_SESSION_VIDEO_MISMATCHED",q7L:"CAST_TOKEN_EXPIRED",IFx:"CAST_TOKEN_FAILED",lFj:"CAST_TOKEN_MALFORMED",k_F:"CGI_PARAMS_MALFORMED",VOT:"CGI_PARAMS_MISSING",CHD:"DEVICE_FALLBACK",IJ4:"GENERIC_WITH_LINK_AND_CPN",lJs:"ERROR_HDCP",kMF:"LICENSE",mzL:"VIDEO_UNAVAILABLE",ZXD:"FORMAT_UNAVAILABLE",JOx:"GEO_FAILURE", ucr:"HTML5_AUDIO_RENDERER_ERROR",pB1:"GENERIC_WITHOUT_LINK",ePp:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",QUn:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",vfr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",aJx:"HTML5_SPS_UMP_STATUS_REJECTED",N$x:"INVALID_DRM_MESSAGE",aZ1:"PURCHASE_NOT_FOUND",KJ1:"PURCHASE_REFUNDED",ZlF:"RENTAL_EXPIRED",j$1:"RETRYABLE_ERROR",EEn:"SERVER_ERROR",Q$s:"SIGNATURE_EXPIRED",cj1:"STOPPED_BY_ANOTHER_PLAYBACK",BNL:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Pfs:"STREAMING_NOT_ALLOWED", LWs:"STREAM_LICENSE_NOT_FOUND",loj:"TOO_MANY_REQUESTS",kfx:"TOO_MANY_REQUESTS_WITH_LINK",Vr4:"TOO_MANY_STREAMS_PER_ENTITLEMENT",mnD:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",AiT:"VIDEO_FORBIDDEN",hQ1:"VIDEO_NOT_FOUND",dP1:"BROWSER_OR_EXTENSION_ERROR"};$u={}; g.XB=($u.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.",$u.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",$u.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", $u.LICENSE="Se produjo un error de licencia con este video.",$u.VIDEO_UNAVAILABLE="Video no disponible",$u.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",$u.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",$u.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",$u.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",$u.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",$u.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",$u.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",$u.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", $u.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",$u.PURCHASE_NOT_FOUND="Este es un video pagado.",$u.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",$u.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",$u.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",$u.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", $u.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",$u.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",$u.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",$u.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",$u.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",$u.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",$u.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",$u.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",$u.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", $u.TOO_MANY_REQUESTS="Accede para mirar el video.",$u.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",$u.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",$u.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",$u.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", $u.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",$u.VIDEO_NOT_FOUND="No se puede encontrar este video.",$u.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",$u);var yOw;var j8W=g.fa(),ggR=j8W.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!ggR||ggR.length<2)yOw=void 0;else{var GkX=j8W.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);yOw=GkX&&GkX.length===6?Number(GkX[5].replace("_",".")):0}var $c=yOw,m5=$c>=0;g.G(g.dN,Qz);g.dN.prototype.Y=function(A,L,B,f,K){return Qz.prototype.Y.call(this,A,L,B,f,K)};var XQ={},UI=(XQ.FAIRPLAY="fairplay",XQ.PLAYREADY="playready",XQ.WIDEVINE="widevine",XQ.CLEARKEY=null,XQ.FLASHACCESS=null,XQ.UNKNOWN=null,XQ.WIDEVINE_CLASSIC=null,XQ);IT.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Oy={},a4=(Oy.WIDTH={name:"width",video:!0,valid:640,cB:99999},Oy.HEIGHT={name:"height",video:!0,valid:360,cB:99999},Oy.FRAMERATE={name:"framerate",video:!0,valid:30,cB:9999},Oy.BITRATE={name:"bitrate",video:!0,valid:3E5,cB:2E9},Oy.EOTF={name:"eotf",video:!0,valid:"bt709",cB:"catavision"},Oy.CHANNELS={name:"channels",video:!1,valid:2,cB:99},Oy.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",cB:"invalidformat"},Oy.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", cB:"nope"},Oy.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",cB:"av99.0.05M.08"},Oy.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",cB:"invalid"},Oy.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",cB:"false"},Oy);var rO9=["h","H"],s8I=["9","("],HxI=["9h","(h"],hFK=["8","*"],bxt=["a","A"],tZw=["o","O"],kkd=["m","M"],Tof=["mac3","MAC3"],lww=["meac3","MEAC3"],Ey={},zoE=(Ey.h=rO9,Ey.H=rO9,Ey["9"]=s8I,Ey["("]=s8I,Ey["9h"]=HxI,Ey["(h"]=HxI,Ey["8"]=hFK,Ey["*"]=hFK,Ey.a=bxt,Ey.A=bxt,Ey.o=tZw,Ey.O=tZw,Ey.m=kkd,Ey.M=kkd,Ey.mac3=Tof,Ey.MAC3=Tof,Ey.meac3=lww,Ey.MEAC3=lww,Ey),mVt=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),YZS=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var u={},Qu=(u["0"]="f",u["160"]="h",u["133"]="h",u["134"]="h",u["135"]="h",u["136"]="h",u["137"]="h",u["264"]="h",u["266"]="h",u["138"]="h",u["298"]="h",u["299"]="h",u["304"]="h",u["305"]="h",u["214"]="h",u["216"]="h",u["374"]="h",u["375"]="h",u["140"]="a",u["141"]="a",u["327"]="sa",u["258"]="m",u["380"]="mac3",u["328"]="meac3",u["161"]="H",u["142"]="H",u["143"]="H",u["144"]="H",u["222"]="H",u["223"]="H",u["145"]="H",u["224"]="H",u["225"]="H",u["146"]="H",u["226"]="H",u["227"]="H",u["147"]="H",u["384"]= "H",u["376"]="H",u["385"]="H",u["377"]="H",u["149"]="A",u["261"]="M",u["381"]="MAC3",u["329"]="MEAC3",u["598"]="9",u["278"]="9",u["242"]="9",u["243"]="9",u["244"]="9",u["775"]="9",u["776"]="9",u["777"]="9",u["778"]="9",u["779"]="9",u["780"]="9",u["781"]="9",u["782"]="9",u["783"]="9",u["247"]="9",u["248"]="9",u["353"]="9",u["355"]="9",u["356"]="9",u["271"]="9",u["577"]="9",u["313"]="9",u["579"]="9",u["272"]="9",u["302"]="9",u["303"]="9",u["407"]="9",u["408"]="9",u["308"]="9",u["315"]="9",u["330"]= "9h",u["331"]="9h",u["332"]="9h",u["333"]="9h",u["334"]="9h",u["335"]="9h",u["336"]="9h",u["337"]="9h",u["338"]="so",u["600"]="o",u["250"]="o",u["251"]="o",u["774"]="o",u["194"]="*",u["195"]="*",u["220"]="*",u["221"]="*",u["196"]="*",u["197"]="*",u["279"]="(",u["280"]="(",u["317"]="(",u["318"]="(",u["273"]="(",u["274"]="(",u["357"]="(",u["358"]="(",u["275"]="(",u["359"]="(",u["360"]="(",u["276"]="(",u["583"]="(",u["584"]="(",u["314"]="(",u["585"]="(",u["561"]="(",u["277"]="(",u["361"]="(h",u["362"]= "(h",u["363"]="(h",u["364"]="(h",u["365"]="(h",u["366"]="(h",u["591"]="(h",u["592"]="(h",u["367"]="(h",u["586"]="(h",u["587"]="(h",u["368"]="(h",u["588"]="(h",u["562"]="(h",u["409"]="(",u["410"]="(",u["411"]="(",u["412"]="(",u["557"]="(",u["558"]="(",u["394"]="1",u["395"]="1",u["396"]="1",u["397"]="1",u["398"]="1",u["399"]="1",u["720"]="1",u["721"]="1",u["400"]="1",u["401"]="1",u["571"]="1",u["402"]="1",u["694"]="1h",u["695"]="1h",u["696"]="1h",u["697"]="1h",u["698"]="1h",u["699"]="1h",u["700"]="1h", u["701"]="1h",u["702"]="1h",u["703"]="1h",u["386"]="3",u["387"]="w",u["406"]="6",u["787"]="1",u["788"]="1",u["548"]="1e",u["549"]="1e",u["550"]="1e",u["551"]="1e",u["809"]="1e",u["810"]="1e",u["552"]="1e",u["811"]="1e",u["812"]="1e",u["553"]="1e",u["813"]="1e",u["814"]="1e",u["554"]="1e",u["815"]="1e",u["816"]="1e",u["555"]="1e",u["817"]="1e",u["818"]="1e",u["572"]="1e",u["556"]="1e",u["645"]="(",u["646"]="(",u["647"]="(",u["648"]="(",u["649"]="(",u["650"]="(",u["651"]="(",u["652"]="(",u["653"]="(", u["654"]="(",u["655"]="(",u["656"]="(",u["657"]="(",u["658"]="(",u["659"]="(",u["660"]="(",u["661"]="(",u["662"]="(",u["663"]="(",u["664"]="(",u["665"]="(",u["666"]="(",u["667"]="(",u["668"]="(",u["669"]="(",u["670"]="(",u["671"]="(",u["672"]="(",u["673"]="(",u["674"]="(h",u["675"]="(h",u["676"]="(h",u["677"]="(h",u["678"]="(h",u["679"]="(h",u["680"]="(h",u["681"]="(h",u["682"]="(h",u["683"]="(h",u["684"]="(h",u["685"]="(h",u["686"]="(h",u["687"]="(h",u["688"]="A",u["689"]="A",u["690"]="A",u["691"]= "MEAC3",u["773"]="i",u["806"]="I",u["805"]="I",u["829"]="9",u["830"]="9",u["831"]="9",u["832"]="9",u["833"]="9",u["834"]="9",u["835"]="9",u["836"]="9",u["892"]="9",u["893"]="9",u["837"]="9",u["838"]="9",u["839"]="9",u["840"]="9",u["841"]="(",u["842"]="(",u["843"]="(",u["844"]="(",u["845"]="(",u["846"]="(",u["847"]="(",u["848"]="(",u["894"]="(",u["895"]="(",u["849"]="(",u["850"]="(",u["851"]="(",u["852"]="(",u["865"]="9",u["866"]="9",u["867"]="9",u["868"]="9",u["869"]="9",u["870"]="9",u["871"]="9", u["872"]="9",u["896"]="9",u["897"]="9",u["873"]="9",u["874"]="9",u["875"]="9",u["876"]="9",u["877"]="(",u["878"]="(",u["879"]="(",u["880"]="(",u["881"]="(",u["882"]="(",u["883"]="(",u["884"]="(",u["898"]="(",u["899"]="(",u["885"]="(",u["886"]="(",u["887"]="(",u["888"]="(",u["900"]="2",u["901"]="2",u["902"]="2",u["903"]="2",u["904"]="2",u["905"]="2",u["906"]="2",u["907"]="2",u["908"]="2",u);var c0={},TN0=(c0.STEREO_LAYOUT_UNKNOWN=0,c0.STEREO_LAYOUT_LEFT_RIGHT=1,c0.STEREO_LAYOUT_TOP_BOTTOM=2,c0);var JGL={mor:0,P51:124,Bkx:144,NNx:220,dEs:240,WWT:340,yjj:360,Hlr:480,Iks:588,q0L:608,lks:720,kBD:740,oCs:1080,Oar:1100,c84:1440,LJF:2160,VJp:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var MZ,cZ,Yu,mbQ;MZ={};g.ka=(MZ.auto=0,MZ.tiny=144,MZ.light=144,MZ.small=240,MZ.medium=360,MZ.large=480,MZ.hd720=720,MZ.hd1080=1080,MZ.hd1440=1440,MZ.hd2160=2160,MZ.hd2880=2880,MZ.highres=4320,MZ);cZ={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Yu={}; mbQ=(Yu.QUALITY_ORDINAL_UNKNOWN=0,Yu.QUALITY_ORDINAL_144P_SAVER=124,Yu.QUALITY_ORDINAL_144P=144,Yu.QUALITY_ORDINAL_240P_SAVER=220,Yu.QUALITY_ORDINAL_240P=240,Yu.QUALITY_ORDINAL_360P_SAVER=340,Yu.QUALITY_ORDINAL_360P=360,Yu.QUALITY_ORDINAL_480P=480,Yu.QUALITY_ORDINAL_608P_SAVER=588,Yu.QUALITY_ORDINAL_608P=608,Yu.QUALITY_ORDINAL_720P=720,Yu.QUALITY_ORDINAL_720P_ENHANCED=740,Yu.QUALITY_ORDINAL_1080P=1080,Yu.QUALITY_ORDINAL_1080P_ENHANCED=1100,Yu.QUALITY_ORDINAL_1440P=1440,Yu.QUALITY_ORDINAL_2160P=2160, Yu.QUALITY_ORDINAL_HIGHRES=9999,Yu);var lQ="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Tv.prototype.isHdr=function(){return this.N==="smpte2084"||this.N==="arib-std-b67"};C$.prototype.qU=function(){return this.containerType===2}; C$.prototype.isEncrypted=function(){return!!this.Zj}; C$.prototype.NF=function(){return!!this.audio}; C$.prototype.WV=function(){return!!this.video}; var X2=!1;g.G(KW,g.SN);g.p=KW.prototype;g.p.appendBuffer=function(A,L,B){if(this.Py.Gd()!==this.appendWindowStart+this.start||this.Py.S2()!==this.appendWindowEnd+this.start||this.Py.pY()!==this.timestampOffset+this.start)this.Py.supports(1),this.Py.LN(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Py.j8(this.timestampOffset+this.start);this.Py.appendBuffer(A,L,B)}; g.p.abort=function(){this.Py.abort()}; g.p.remove=function(A,L){this.Py.remove(A+this.start,L+this.start)}; g.p.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.p.clear=function(){this.Py.clear()}; g.p.LN=function(A,L){this.appendWindowStart=A;this.appendWindowEnd=L}; g.p.Nk=function(){return this.timestampOffset+this.start}; g.p.Gd=function(){return this.appendWindowStart}; g.p.S2=function(){return this.appendWindowEnd}; g.p.j8=function(A){this.timestampOffset=A}; g.p.pY=function(){return this.timestampOffset}; g.p.Hk=function(A){A=this.Py.Hk(A===void 0?!1:A);return fW(A,this.start,this.end)}; g.p.Nz=function(){return this.Py.Nz()}; g.p.Ob=function(){return this.Py.Ob()}; g.p.PF=function(){return this.Py.PF()}; g.p.pE=function(){return this.Py.pE()}; g.p.vG=function(){this.Py.vG()}; g.p.Aq=function(A){return this.Py.Aq(A)}; g.p.Ib=function(){return this.Py.Ib()}; g.p.z4=function(){return this.Py.z4()}; g.p.BP=function(A,L,B){this.Py.BP(A,L,B)}; g.p.PP=function(A,L,B){this.Py.PP(A,L,B)}; g.p.nK=function(A,L){return this.Py.nK(A,L)}; g.p.supports=function(A){return this.Py.supports(A)}; g.p.A5=function(){return this.Py.A5()}; g.p.isView=function(){return!0}; g.p.Zn=function(){return this.Py.Zn()?this.isActive:!1}; g.p.isLocked=function(){return this.s1&&!this.isActive}; g.p.Ov=function(A){A=this.Py.Ov(A);A.vw=this.start+"-"+this.end;return A}; g.p.Eb=function(){return this.Py.Eb()}; g.p.yD=function(){return this.Py.yD()}; g.p.ox=function(){return this.Py.ox()}; g.p.l1=function(){this.Py.P4(this.fz);g.SN.prototype.l1.call(this)};var qL=!1;g.G(JA,g.SN);g.p=JA.prototype;g.p.appendBuffer=function(A,L,B){this.bR=!1;B&&(this.BT=B);if(A.length){var f;((f=this.uC)==null?0:f.appendBuffer)?this.uC.appendBuffer(A):this.uC?this.uC.append(A):this.Sa&&this.Sa.webkitSourceAppend(this.id,A)}L&&(L.isEncrypted()&&(this.Ul=this.BT),L.type===3&&(this.vk=L),this.cT.push(L.Dx()),this.cT.length>4&&this.cT.shift());this.Vy&&(this.Vy.length>=2||A.length>1048576?delete this.Vy:this.Vy.push(A))}; g.p.abort=function(){try{this.uC?this.uC.abort():this.Sa&&this.Sa.webkitSourceAbort(this.id)}catch(L){if(LgD){var A=new g.iL("Error while abort the source buffer: "+L.name+", "+L.message);g.mL(A)}}this.BT=this.vk=null}; g.p.remove=function(A,L,B){this.bR=!1;var f;if((f=this.uC)==null?0:f.remove)B&&B({b:zv(this.Hk()),s:A,e:L}),this.uC.remove(A,L)}; g.p.removeAll=function(){this.remove(this.Gd(),this.S2())}; g.p.clear=function(){this.PF()||(this.abort(),this.removeAll(),this.Ul=this.BT=this.vk=null,this.appendWindowStart=this.timestampOffset=0,this.WH=n$([],[]),this.bR=!1,this.Vy=VV?[]:void 0,this.Y5=!0)}; g.p.Gd=function(){if(qL&&this.WV)return this.appendWindowStart;var A;return((A=this.uC)==null?void 0:A.appendWindowStart)||0}; g.p.S2=function(){var A;return((A=this.uC)==null?void 0:A.appendWindowEnd)||0}; g.p.LN=function(A,L){this.uC&&(qL&&this.WV?(this.appendWindowStart=A,this.uC.appendWindowEnd=L):A>this.Gd()?(this.uC.appendWindowEnd=L,this.uC.appendWindowStart=A):(this.uC.appendWindowStart=A,this.uC.appendWindowEnd=L))}; g.p.Nk=function(){return this.timestampOffset}; g.p.j8=function(A){qL?this.timestampOffset=A:this.supports(1)&&(this.uC.timestampOffset=A)}; g.p.pY=function(){return qL?this.timestampOffset:this.supports(1)?this.uC.timestampOffset:0}; g.p.Hk=function(A){if(A===void 0?0:A)return this.bR||this.Nz()||(this.WH=this.Hk(!1),this.bR=!0),this.WH;try{return this.uC?this.uC.buffered:this.Sa?this.Sa.webkitSourceBuffered(this.id):n$([0],[Infinity])}catch(L){return n$([],[])}}; g.p.Nz=function(){var A;return((A=this.uC)==null?void 0:A.updating)||!1}; g.p.PF=function(){return this.Y5}; g.p.pE=function(){return!this.Y5&&this.Nz()}; g.p.vG=function(){this.Y5=!1}; g.p.Aq=function(A){var L=A==null?void 0:A.Bn;A=A==null?void 0:A.containerType;return!L&&!A||L===this.Bn&&A===this.containerType}; g.p.Ib=function(){return this.BT}; g.p.z4=function(){return this.Ul}; g.p.nK=function(A,L){return this.containerType!==A||this.Bn!==L}; g.p.BP=function(A,L,B){if(this.containerType!==A||B&&this.nK(A,B))this.supports(4),Se()&&this.uC.changeType(L),B&&(this.Bn=B);this.containerType=A}; g.p.PP=function(A,L,B){this.containerType&&this.nK(A,L)&&Se()&&this.uC.changeType(B);this.containerType=A;this.Bn=L}; g.p.A5=function(){return this.vk}; g.p.isView=function(){return!1}; g.p.supports=function(A){switch(A){case 1:var L;return((L=this.uC)==null?void 0:L.timestampOffset)!==void 0;case 0:var B;return!((B=this.uC)==null||!B.appendBuffer);case 2:var f;return!((f=this.uC)==null||!f.remove);case 3:var K,V;return!!(((K=this.uC)==null?0:K.addEventListener)&&((V=this.uC)==null?0:V.removeEventListener));case 4:return!(!this.uC||!this.uC.changeType);default:return!1}}; g.p.Zn=function(){return!this.Nz()}; g.p.isLocked=function(){return!1}; g.p.Ov=function(A){A.to=this.pY();A.up=this.Nz();var L,B=((L=this.uC)==null?void 0:L.appendWindowStart)||0,f;L=((f=this.uC)==null?void 0:f.appendWindowEnd)||Infinity;A.aw=B.toFixed(3)+"-"+L.toFixed(3);return A}; g.p.Ob=function(){var A;return((A=this.uC)==null?void 0:A.writeHead)||0}; g.p.Eb=function(){for(var A={},L=0;L=7&&(!L||((f=this.Np)==null?0:f.J("mweb_ios_allow_playback_workaround_when_ready")))&&ory(this,function(){g.gW(function(){gI7(A,A.getCurrentTime(),0)},500)})}return L}; g.p.b5=function(A,L,B){var f;((f=this.Np)==null?0:f.hw())&&this.Np.Hn(A,L,B===void 0?!1:B)}; g.p.fH=function(A){this.Np=A}; g.p.vu=function(){return Bi(this.YJ(),this.getCurrentTime())}; g.p.seekTo=function(A){this.J2()>0&&(m5&&$c<4&&(A=Math.max(.1,A)),this.setCurrentTime(A))}; g.p.J3=function(A){if(this.J2()===0||this.hasError())return!1;var L=this.getCurrentTime()>0;if(A>=0){var B=this.Zk();if(B.length||!L)return aT(B,A)}return L}; g.p.aC=function(){if(!this.V&&this.AF)if(this.AF.T)try{var A;this.b5("rms",{l:"mer",sr:(A=this.Np)==null?void 0:A.R0(),rs:Ik(this.AF)});this.AF.clear();this.nH(this.AF);this.AF=void 0}catch(L){A=new g.iL("Error while clearing Media Source in MediaElement: "+L.name+", "+L.message),g.mL(A),this.stopVideo()}else this.stopVideo()}; g.p.stopVideo=function(){var A=this;if(!this.V){var L;(L=this.AF)==null||pW(L);if(xZe){if(!this.X){var B=new yV;B.then(void 0,function(){}); this.X=B;nuS&&this.pause();g.gW(function(){A.X===B&&(gz(A),B.resolve())},200)}}else gz(this)}}; g.p.rQ=function(){var A=this.YJ();return ok(A)&&this.getDuration()?AA(A,this.getCurrentTime()):0}; g.p.lB=function(){var A=this.YJ();return ok(A)&&this.getDuration()?A.end(A.length-1):0}; g.p.Hq=function(){var A=this.getDuration();return A===Infinity?1:A?this.rQ()/A:0}; g.p.Ov=function(){try{var A=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:zv(this.wN(),",",3),vbu:zv(this.YJ()),vbs:zv(this.Zk()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.J2(),vns:""+this.Yj(),vec:""+this.p8(),vemsg:this.SE(),vvol:""+this.getVolume(),vdom:""+ +this.xU(),vsrc:""+ +!!this.eE(),vw:""+A.width,vh:""+A.height}}catch(L){return{}}}; g.p.oI=function(){return this.p8()===4}; g.p.hasError=function(){return this.p8()>0}; g.p.xT=function(){switch(this.p8()){case 2:return"progressive.net.retryexhausted";case 3:var A=this.SE();return(A==null?0:A.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||ACE&&(A==null?0:A.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.p.addEventListener=function(A,L){this.yj.listen(A,L,!1,this);this.uR(A)}; g.p.removeEventListener=function(A,L){this.yj.J$(A,L,!1,this)}; g.p.dispatchEvent=function(A){if(this.X&&A.type==="pause")return!1;if(uQk){var L,B=((L=A.N)==null?void 0:L.timeStamp)||Infinity;L=B>performance.now()?B-Date.now()+performance.now():B;B=this.V||this.AF;if((B==null?0:B.PF())||L<=((B==null?void 0:B.U)||0)){var f;this.b5("rms",{l:"mede",sr:(f=this.Np)==null?void 0:f.R0(),et:A.type});return!1}if(this.jM)return this.b5("rms",{l:"medes",et:A.type}),B&&A.type==="seeking"&&(B.U=performance.now(),this.jM=!1),!1}return this.yj.dispatchEvent(A)}; g.p.Bb=function(){this.Vj=!1}; g.p.aj=function(){this.Vj=!0;this.o6(!0)}; g.p.pF=function(){this.Vj&&!this.ib()&&this.o6(!0)}; g.p.equals=function(A){return!!A&&A.Zg()===this.Zg()}; g.p.l1=function(){this.ZM&&this.removeEventListener("volumechange",this.pF);xZe&&gz(this);g.Y.prototype.l1.call(this)}; var xZe=!1,nuS=!1,uQk=!1,ACE=!1;g.p=g.Gu.prototype;g.p.isPaused=function(){return g.x(this,4)}; g.p.isPlaying=function(){return g.x(this,8)&&!g.x(this,512)&&!g.x(this,64)&&!g.x(this,2)}; g.p.isOrWillBePlaying=function(){return g.x(this,8)&&!g.x(this,2)&&!g.x(this,1024)}; g.p.isCued=function(){return g.x(this,64)&&!g.x(this,8)&&!g.x(this,4)}; g.p.isBuffering=function(){return g.x(this,1)&&!g.x(this,2)}; g.p.isError=function(){return g.x(this,128)}; g.p.isSuspended=function(){return g.x(this,512)}; g.p.r6=function(){return g.x(this,64)&&g.x(this,4)}; g.p.toString=function(){return"PSt."+this.state.toString(16)}; var Uy={},W0=(Uy.BUFFERING="buffering-mode",Uy.CUED="cued-mode",Uy.ENDED="ended-mode",Uy.PAUSED="paused-mode",Uy.PLAYING="playing-mode",Uy.SEEKING="seeking-mode",Uy.UNSTARTED="unstarted-mode",Uy);g.G(ma,g.Y);g.p=ma.prototype;g.p.LY=function(){return this.slot}; g.p.dT=function(){return this.layout}; g.p.init=function(){var A=PF(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=PF(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");ZT(this.layout.Vf)&&aH(this.Fr.get(),this.layout.layoutId,{nt:L,Ag:A,listener:this});Y87(this.j4.get(),this);this.qJ()}; g.p.P2=function(){}; g.p.release=function(){ZT(this.layout.Vf)&&A3(this.Fr.get(),this.layout.layoutId);U60(this.j4.get(),this);this.Ah()}; g.p.MN=function(){}; g.p.uG=function(){}; g.p.startRendering=function(A){if(A.layoutId!==this.layout.layoutId){this.qT.o0(this.slot,A,new vF("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");var L=!1}else L=!0;L&&(this.Wy="rendering_start_requested",this.Kl(-1),this.k$(A),this.q$(!1))}; g.p.lq=function(A,L){if(L.layoutId===this.layout.layoutId){this.Wy="rendering";this.N=this.Mp.get().isMuted()||this.Mp.get().getVolume()===0;this.eI("impression");this.eI("start");if(this.Mp.get().isMuted()){CW(this,"mute");var B;A=((B=l1(this))==null?void 0:B.muteCommands)||[];QL(this.gi.get(),A,this.layout.layoutId)}if(this.Mp.get().isFullscreen()){this.QF("fullscreen");var f;B=((f=l1(this))==null?void 0:f.fullscreenCommands)||[];QL(this.gi.get(),B,this.layout.layoutId)}f=this.j$.get();f.V&&!f.W&& (f.D=!1,f.W=!0,f.actionType!=="ad_to_video"&&(OC("pbs",void 0,f.actionType),g.h_("finalize_all_timelines")&&Os1(f.actionType)));this.Kl(1);this.Oi(L);var K;L=((K=l1(this))==null?void 0:K.impressionCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}}; g.p.Pp=function(A,L,B){this.D={Av:3,zm:A==="load_timeout"?402:400,errorMessage:L.message};this.eI("error");var f;A=((f=l1(this))==null?void 0:f.errorCommands)||[];QL(this.gi.get(),A,this.layout.layoutId);this.qT.o0(this.slot,this.layout,L,B)}; g.p.iL=function(){if(this.Wy==="rendering"){CW(this,"pause");var A,L=((A=l1(this))==null?void 0:A.pauseCommands)||[];QL(this.gi.get(),L,this.layout.layoutId);this.Kl(2)}}; g.p.Y7=function(){if(this.Wy==="rendering"){CW(this,"resume");var A,L=((A=l1(this))==null?void 0:A.resumeCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}}; g.p.eZ=function(A,L){L=L===void 0?!1:L;if(this.Wy==="rendering"){yc(this.vn,A*1E3,L);this.N||yc(this.vn,A*1E3,L===void 0?!1:L);var B=this.Xn();B&&(B/=1E3,(A>=B*.25||L)&&this.eI("first_quartile"),(A>=B*.5||L)&&this.eI("midpoint"),(A>=B*.75||L)&&this.eI("third_quartile"),this.FD.get().S.K().experiments.GL("enable_progress_command_flush_on_kabuki")?km(this.W,A*1E3,L):km(this.W,A*1E3,lhy(this)?L:!1))}}; g.p.ju=function(){var A;return((A=BV(this.hF.get(),1))==null?void 0:A.clientPlaybackNonce)||""}; g.p.Rd=function(A,L){A.layoutId!==this.layout.layoutId?this.qT.o0(this.slot,A,new vF("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"):L()}; g.p.CD=function(A,L,B){if(L.layoutId===this.layout.layoutId)switch(this.Wy="not_rendering",this.layoutExitReason=void 0,(A=B!=="normal"||this.position+1===this.U)&&this.q$(A),this.Xi(B),this.Kl(0),B){case "abandoned":if(j9(this.vn,"impression")){var f,K=((f=l1(this))==null?void 0:f.abandonCommands)||[];QL(this.gi.get(),K,this.layout.layoutId)}break;case "normal":f=((K=l1(this))==null?void 0:K.completeCommands)||[];QL(this.gi.get(),f,this.layout.layoutId);break;case "skipped":var V;f=((V=l1(this))== null?void 0:V.skipCommands)||[];QL(this.gi.get(),f,this.layout.layoutId)}}; g.p.qs=function(){return this.layout.layoutId}; g.p.De=function(){return this.D}; g.p.qN=function(){if(this.Wy==="rendering"){this.vn.eI("active_view_measurable");var A,L=((A=l1(this))==null?void 0:A.activeViewMeasurableCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}}; g.p.HQ=function(){if(this.Wy==="rendering"){this.vn.eI("active_view_fully_viewable_audible_half_duration");var A,L=((A=l1(this))==null?void 0:A.activeViewFullyViewableAudibleHalfDurationCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}}; g.p.IM=function(){if(this.Wy==="rendering"){this.vn.eI("active_view_viewable");var A,L=((A=l1(this))==null?void 0:A.activeViewViewableCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}}; g.p.NN=function(){if(this.Wy==="rendering"){this.vn.eI("audio_audible");var A,L=((A=l1(this))==null?void 0:A.activeViewAudioAudibleCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}}; g.p.WQ=function(){if(this.Wy==="rendering"){this.vn.eI("audio_measurable");var A,L=((A=l1(this))==null?void 0:A.activeViewAudioMeasurableCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}}; g.p.q$=function(A){this.j$.get().q$(PF(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,A,this.position,this.U,!1)}; g.p.onFullscreenToggled=function(A){if(this.Wy==="rendering")if(A){this.QF("fullscreen");var L,B=((L=l1(this))==null?void 0:L.fullscreenCommands)||[];QL(this.gi.get(),B,this.layout.layoutId)}else this.QF("end_fullscreen"),L=((B=l1(this))==null?void 0:B.endFullscreenCommands)||[],QL(this.gi.get(),L,this.layout.layoutId)}; g.p.onVolumeChange=function(){if(this.Wy==="rendering")if(this.Mp.get().isMuted()){CW(this,"mute");var A,L=((A=l1(this))==null?void 0:A.muteCommands)||[];QL(this.gi.get(),L,this.layout.layoutId)}else CW(this,"unmute"),A=((L=l1(this))==null?void 0:L.unmuteCommands)||[],QL(this.gi.get(),A,this.layout.layoutId)}; g.p.mF=function(){}; g.p.iH=function(){}; g.p.T_=function(){}; g.p.jO=function(){}; g.p.gb=function(){}; g.p.QF=function(A){this.vn.QF(A,!this.N)}; g.p.eI=function(A){this.vn.eI(A,!this.N)};g.G($F,ma);g.p=$F.prototype;g.p.qJ=function(){}; g.p.Ah=function(){var A=this.j4.get();A.Bm===this&&(A.Bm=null);this.timer.stop()}; g.p.MN=function(){this.timer.stop();ma.prototype.iL.call(this)}; g.p.uG=function(){mfv(this);ma.prototype.Y7.call(this)}; g.p.Xn=function(){return PF(this.dT().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.p.D1=function(A,L){var B=this;this.Rd(A,function(){B.Wy!=="rendering_stop_requested"&&(B.Wy="rendering_stop_requested",B.layoutExitReason=L,hiy(B,L),B.timer.stop())})}; g.p.iq=function(){var A=Date.now(),L=A-this.RT;this.RT=A;this.wQ+=L;this.wQ>=this.Xn()?(this.wQ=this.Xn(),this.eZ(this.wQ/1E3,!0),Xi(this,this.wQ),this.Di()):(this.eZ(this.wQ/1E3),Xi(this,this.wQ))}; g.p.H9=function(A){if(this.Wy!=="not_rendering"){A=bLv(this,A);var L=this.Mp.get().getPresentingPlayerType()===2;this.Wy==="rendering_start_requested"?L&&aE(A)&&this.z9():L?g.wk(A,2)?Dh("Receive player ended event during MediaBreak",this.LY(),this.dT()):tmQ(this,A):this.Sk()}}; g.p.k$=function(){khv(this);z6D(this.Mp.get());this.j4.get().Bm=this;iJ("pbp")||iJ("pbs")||OC("pbp");iJ("pbp","watch")||iJ("pbs","watch")||OC("pbp",void 0,"watch");this.z9()}; g.p.Oi=function(A){this.j$.get();var L=PF(A.clientMetadata,"metadata_type_ad_placement_config").kind,B=this.position===0;A=PF(A.clientMetadata,"metadata_type_linked_in_player_layout_type");A={adBreakType:QV(L),adType:Io8(A)};var f=void 0;B?L!=="AD_PLACEMENT_KIND_START"&&(f="video_to_ad"):f="ad_to_ad";mF("ad_mbs",void 0,f);g.Qm(A,f);mfv(this)}; g.p.Sk=function(){this.Di()}; g.p.Xi=function(){}; g.p.C9=function(){};g.G(ci,ma);g.p=ci.prototype;g.p.Sk=function(){this.Di()}; g.p.H9=function(A){this.wr(A)}; g.p.qJ=function(){PF(this.dT().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=PF(this.dT().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.p.Ah=function(){PF(this.dT().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.Lh&&this.FA.get().removeCueRange(this.Lh);this.Lh=void 0;var A;(A=this.sB)==null||A.dispose();this.X4&&this.X4.dispose()}; g.p.k$=function(A){var L=PF(A.clientMetadata,"metadata_type_ad_placement_config");L=OJ(this.FD.get(),L);var B=EJ(this.FD.get());if(L&&B){B=PF(A.clientMetadata,"metadata_type_preload_player_vars");var f=this.FD.get();f=g.Am(f.S.K().experiments,"html5_preload_wait_time_secs");B&&this.X4&&this.X4.start(f*1E3)}B=PF(A.clientMetadata,"metadata_type_ad_video_id");f=PF(A.clientMetadata,"metadata_type_legacy_info_card_vast_extension");B&&f&&this.E6.get().S.K().S4.add(B,{SP:f});(B=PF(A.clientMetadata,"metadata_type_sodar_extension_data"))&& qlk(this.Az.get(),B);uG8(this.Mp.get(),!1);khv(this);L?(B=this.h$.get(),A=PF(A.clientMetadata,"metadata_type_player_vars"),B.S.loadVideoByPlayerVars(A,!1,2)):d6y(this.h$.get(),PF(A.clientMetadata,"metadata_type_player_vars"));var K;(K=this.sB)==null||K.start();L||this.h$.get().S.playVideo(2)}; g.p.Oi=function(){var A;(A=this.sB)==null||A.stop();this.TA();(this.adCpn=HLD(this))||Dh("Media layout confirmed started, but ad CPN not set.");this.QK.get().Dp("onAdStart",this.adCpn);this.HD=Date.now()}; g.p.Xn=function(){var A;return(A=BV(this.hF.get(),2))==null?void 0:A.zY}; g.p.bj=function(){this.vn.QF("clickthrough")}; g.p.D1=function(A,L){var B=this;this.Rd(A,function(){if(B.Wy!=="rendering_stop_requested"){B.Wy="rendering_stop_requested";B.layoutExitReason=L;hiy(B,L);var f;(f=B.sB)==null||f.stop();B.X4&&B.X4.stop();uG8(B.Mp.get(),!0);var K;((K=B.shrunkenPlayerBytesConfig)==null?0:K.shouldRequestShrunkenPlayerBytes)&&B.Mp.get().Nn(!1)}})}; g.p.onCueRangeEnter=function(A){A!==this.Lh?Dh("Received CueRangeEnter signal for unknown layout.",this.LY(),this.dT(),{cueRangeId:A}):(this.FA.get().removeCueRange(this.Lh),this.Lh=void 0,A=PF(this.dT().clientMetadata,"metadata_type_video_length_seconds"),this.eZ(A,!0),this.eI("complete"))}; g.p.Xi=function(A){A!=="abandoned"&&this.QK.get().Dp("onAdComplete");this.QK.get().Dp("onAdEnd",this.adCpn)}; g.p.TA=function(){this.Lh="adcompletioncuerange:"+this.dT().layoutId;this.FA.get().addCueRange(this.Lh,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}; g.p.onCueRangeExit=function(){}; g.p.C9=function(A){this.Wy==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&A>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Mp.get().Nn(!0),this.eZ(A))}; g.p.eZ=function(A,L){ma.prototype.eZ.call(this,A,L===void 0?!1:L);L=Date.now()-this.HD;var B=A*1E3,f={contentCpn:this.ju(),adCpn:HLD(this)};if(A-this.gx>=5){var K=L0&&py(this.N(),L)}; g.p.u0=function(A){this.D.delete(A.slotId);for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next()){f=f.value;var K=f.trigger;K instanceof qr&&K.triggeringSlotId===A.slotId&&L.push(f)}L.length>0&&py(this.N(),L)}; g.p.Ch=function(A){for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next()){f=f.value;var K=f.trigger;K instanceof $d&&K.slotType===A.slotType&&K.N!==A.slotId&&L.push(f)}L.length>0&&py(this.N(),L)}; g.p.rI=function(A){this.V.add(A.slotId);for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next())f=f.value,f.trigger instanceof Mr&&A.slotId===f.trigger.triggeringSlotId&&L.push(f);L.length>0&&py(this.N(),L)}; g.p.n8=function(A){this.V.delete(A.slotId);this.U.add(A.slotId);for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next())if(f=f.value,f.trigger instanceof Yd)A.slotId===f.trigger.triggeringSlotId&&L.push(f);else if(f.trigger instanceof HW){var K=f.trigger;A.slotId===K.slotId&&this.W.has(K.triggeringLayoutId)&&L.push(f)}L.length>0&&py(this.N(),L)}; g.p.sf=function(A){for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next())f=f.value,f.trigger instanceof U7&&A.slotId===f.trigger.triggeringSlotId&&L.push(f);L.length>0&&py(this.N(),L)}; g.p.xg=function(A){for(var L=[],B=g.m(this.nY.values()),f=B.next();!f.done;f=B.next())f=f.value,f.trigger instanceof WW&&A.slotId===f.trigger.triggeringSlotId&&L.push(f);L.length>0&&py(this.N(),L)}; g.p.R4=function(A,L){this.T.add(L.layoutId)}; g.p.Z0=function(A,L){this.T.delete(L.layoutId)}; g.p.lq=function(A,L){this.W.add(L.layoutId);for(var B=[],f=g.m(this.nY.values()),K=f.next();!K.done;K=f.next())if(K=K.value,K.trigger instanceof hy)L.layoutId===K.trigger.triggeringLayoutId&&B.push(K);else if(K.trigger instanceof ih){var V=K.trigger;A.slotType===V.slotType&&L.layoutType===V.layoutType&&L.layoutId!==V.N&&B.push(K)}else K.trigger instanceof HW&&(V=K.trigger,L.layoutId===V.triggeringLayoutId&&this.U.has(V.slotId)&&B.push(K));B.length>0&&py(this.N(),B)}; g.p.CD=function(A,L,B){this.W.delete(L.layoutId);A=[];for(var f=g.m(this.nY.values()),K=f.next();!K.done;K=f.next())if(K=K.value,K.trigger instanceof ty&&L.layoutId===K.trigger.triggeringLayoutId&&A.push(K),K.trigger instanceof bh){var V=K.trigger;L.layoutId===V.triggeringLayoutId&&V.N.includes(B)&&A.push(K)}A.length>0&&py(this.N(),A)}; g.p.O6=function(){}; g.p.sj=function(){this.U.clear()}; g.p.dR=function(){};g.G(hn,g.Y);hn.prototype.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof rf))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in CloseRequestedTriggerAdapter");this.nY.set(L.triggerId,new e$(A,L,B,f))}; hn.prototype.uH=function(A){this.nY.delete(A.triggerId)};g.G(tn,g.Y);tn.prototype.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof GA||L instanceof O7))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.nY.set(L.triggerId,new e$(A,L,B,f))}; tn.prototype.uH=function(A){this.nY.delete(A.triggerId)}; tn.prototype.sj=function(A){for(var L=[],B=L.push,f=B.apply,K=[],V=g.m(this.nY.values()),J=V.next();!J.done;J=V.next())J=J.value,J.trigger instanceof GA&&J.trigger.O5===A&&K.push(J);f.call(B,L,g.x7(K));B=L.push;f=B.apply;K=[];V=g.m(this.nY.values());for(J=V.next();!J.done;J=V.next())J=J.value,J.trigger instanceof O7&&J.trigger.N!==A&&K.push(J);f.call(B,L,g.x7(K));L.length&&py(this.N(),L)}; tn.prototype.dR=function(A){for(var L=[],B=L.push,f=B.apply,K=[],V=g.m(this.nY.values()),J=V.next();!J.done;J=V.next()){J=J.value;var R=J.trigger;R instanceof O7&&R.N===A&&K.push(J)}f.call(B,L,g.x7(K));L.length&&py(this.N(),L)};g.G(kh,g.Y);g.p=kh.prototype;g.p.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");var K="adtriggercuerange:"+L.triggerId;if(L instanceof Qg)KwD(this,A,L,B,f,K,L.N.start,L.N.end,L.O5,L.visible);else if(L instanceof s7)KwD(this,A,L,B,f,K,0x7ffffffffffff,0x8000000000000,L.O5,L.visible);else throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in CueRangeTriggerAdapter");}; g.p.uH=function(A){var L=this.nY.get(A.triggerId);L&&this.FA.get().removeCueRange(L.cueRangeId);this.nY.delete(A.triggerId)}; g.p.onCueRangeEnter=function(A){if(A=V6y(this,A))if(A=this.nY.get(A))if(g.x(uF(this.Mp.get()),32))this.N.add(A.cueRangeId);else{var L=A==null?void 0:A.rj.trigger;(L instanceof Qg||L instanceof s7)&&py(this.W(),[A.rj])}}; g.p.onCueRangeExit=function(A){(A=V6y(this,A))&&(A=this.nY.get(A))&&this.N.delete(A.cueRangeId)}; g.p.H9=function(A){if(IA(A,16)<0){A=g.m(this.N);for(var L=A.next();!L.done;L=A.next())this.onCueRangeEnter(L.value,!0);this.N.clear()}}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.lq=function(){}; g.p.CD=function(){}; g.p.O6=function(){}; g.p.C9=function(){}; g.p.onFullscreenToggled=function(){}; g.p.mF=function(){}; g.p.iH=function(){}; g.p.T_=function(){}; g.p.onVolumeChange=function(){}; g.p.jO=function(){}; g.p.gb=function(){};g.G(T0,g.Y); T0.prototype.fQ=function(A,L,B,f){if(this.W.has(L.triggerId)||this.V.has(L.triggerId))throw new n("Tried to re-register the trigger.");A=new e$(A,L,B,f);if(A.trigger instanceof mU)this.W.set(A.trigger.triggerId,A);else if(A.trigger instanceof kd)this.V.set(A.trigger.triggerId,A);else throw new n("Incorrect TriggerType: Tried to register trigger of type "+A.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.W.has(A.trigger.triggerId)&&A.slot.slotId===this.N&&py(this.U(),[A])}; T0.prototype.uH=function(A){this.W.delete(A.triggerId);this.V.delete(A.triggerId)}; T0.prototype.Y_=function(A){A=A.slotId;if(this.N!==A){var L=[];this.N!=null&&L.push.apply(L,g.x7(JwC(this.V,this.N)));A!=null&&L.push.apply(L,g.x7(JwC(this.W,A)));this.N=A;L.length&&py(this.U(),L)}};g.G(l4,g.Y);g.p=l4.prototype;g.p.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof Xp))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.nY.set(L.triggerId,new e$(A,L,B,f))}; g.p.uH=function(A){this.nY.delete(A.triggerId)}; g.p.lq=function(){}; g.p.CD=function(){}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){};g.G(mW,g.Y);g.p=mW.prototype;g.p.O6=function(A,L){for(var B=[],f=g.m(this.nY.values()),K=f.next();!K.done;K=f.next()){K=K.value;var V=K.trigger;V.opportunityType===A&&(V.associatedSlotId&&V.associatedSlotId!==L||B.push(K))}B.length&&py(this.N(),B)}; g.p.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof xUe))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in OpportunityEventTriggerAdapter");this.nY.set(L.triggerId,new e$(A,L,B,f))}; g.p.uH=function(A){this.nY.delete(A.triggerId)}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.lq=function(){}; g.p.CD=function(){};g.G(Qx,g.Y);g.p=Qx.prototype;g.p.fQ=function(A,L,B,f){A=new e$(A,L,B,f);if(L instanceof TA||L instanceof Cp||L instanceof lh||L instanceof E7||L instanceof p8D){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");this.nY.set(L.triggerId,A)}else throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in PrefetchTriggerAdapter");}; g.p.uH=function(A){this.nY.delete(A.triggerId)}; g.p.cV=function(A){var L=A.slotFulfillmentTriggers.find(function(B){return B instanceof TA}); L&&(CS(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",L.breakDurationMs,new Set([A.slotId]),!0),Ay(this.j4.get(),"ads_css","sid."+A.slotId+";bd."+L.breakDurationMs))}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.lq=function(){}; g.p.CD=function(){}; g.p.O6=function(){}; g.p.Xx=function(A){var L=this;if(!this.N)return Ay(this.j4.get(),"ads_nfi","a.pta;cid."+A.identifier),!1;this.W&&this.W.stop();this.D&&g.Az(this.D);var B=NUE(this,A);if(!B){var f=Sg7(this),K=this.X!==void 0&&Date.now()<=this.X+1E4;Ay(this.j4.get(),"ads_ncfs","cid."+A.identifier+";cd."+A.Dj.toFixed(3)+";ccs."+K+";cfa."+this.U+";bdc."+f.length+";"+f.slice(0,6).map(function(V){return";bd."+V}).join("")); return K?(Zy(this.gh,this.N,A),!0):!1}(f=PF(B.slot.clientMetadata,"metadata_type_triggering_cue_point"))?f.current=A:Dh("Expected triggering cue point ref to be available",B.slot);(new g.aa(function(){var V=B.trigger,J=B.slot;CS(L,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",V.breakDurationMs,new Set,!0);CS(L,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",V.breakDurationMs,new Set,!1);for(var R=0,Z=g.m(L.nY.values()),N=Z.next();!N.done;N=Z.next()){N=N.value;var F=N.trigger; N.slot.slotId===J.slotId&&(L.nY.delete(F.triggerId),R++)}Ay(L.j4.get(),"ads_csf","sid."+J.slotId+";bd."+V.breakDurationMs+";dt."+R)},10)).start(); return!0}; g.p.yg=function(){}; g.p.sj=function(A){var L=this;this.U=!1;this.X=Date.now();if(this.N&&this.N.contentCpn!==A)Dh("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:A,fetchInstructionsCpn:this.N.contentCpn}),i4(this);else{this.V=new g.aa(function(){if(L.U)delete L.V;else{var f=L.Mp.get().getGetAdBreakContext(),K;if(Number(f==null?void 0:(K=f.livePlaybackPosition)==null?void 0:K.utcTimeMillis)>0)delete L.V,Zk8(L);else{var V;(V=L.V)==null||V.start()}}},200); var B;(B=this.V)==null||B.start()}}; g.p.dR=function(A){this.N&&this.N.contentCpn!==A&&Dh("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:A,fetchInstructionsCpn:this.N.contentCpn},!0);i4(this)}; g.p.IB=function(A){var L=this;if(this.N)Dh("Unexpected multiple fetch instructions for the current content");else{this.N=A;A=D1w(A);this.W=new g.aa(function(){Zk8(L)},A?A:6E5); this.W.start();this.D=new g.aa(function(){L.N&&(L.W&&(L.W.stop(),L.W.start()),RLw(L,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},FwE(this.N)); A=this.Mp.get().getCurrentTimeSec(1,!1);for(var B=g.m(this.hf.get().Qy),f=B.next();!f.done;f=B.next())f=f.value,Ay(this.j4.get(),"nocache","ct."+Date.now()+";cmt."+A+";d."+f.Dj.toFixed(3)+";tw."+(f.startSecs-A)+";cid."+f.identifier+";")}}; g.p.l1=function(){g.Y.prototype.l1.call(this);i4(this)};g.G($h,g.Y);g.p=$h.prototype;g.p.fQ=function(A,L,B,f){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");if(!(L instanceof xd))throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.nY.set(L.triggerId,new e$(A,L,B,f));A=this.N.has(L.triggeringLayoutId)?this.N.get(L.triggeringLayoutId):new Set;A.add(L);this.N.set(L.triggeringLayoutId,A)}; g.p.uH=function(A){this.nY.delete(A.triggerId);if(!(A instanceof xd))throw new n("Incorrect TriggerType: Tried to unregister trigger of type "+A.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var L=this.W.get(A.triggerId);L&&(L.dispose(),this.W.delete(A.triggerId));if(L=this.N.get(A.triggeringLayoutId))L.delete(A),L.size===0&&this.N.delete(A.triggeringLayoutId)}; g.p.cV=function(){}; g.p.u0=function(){}; g.p.Ch=function(){}; g.p.rI=function(){}; g.p.n8=function(){}; g.p.sf=function(){}; g.p.xg=function(){}; g.p.R4=function(){}; g.p.Z0=function(){}; g.p.O6=function(){}; g.p.lq=function(A,L){var B=this;if(this.N.has(L.layoutId)){A=this.N.get(L.layoutId);A=g.m(A);var f=A.next();for(L={};!f.done;L={Id:void 0},f=A.next())L.Id=f.value,f=new g.aa(function(K){return function(){var V=B.nY.get(K.Id.triggerId);py(B.V(),[V])}}(L),L.Id.durationMs),f.start(),this.W.set(L.Id.triggerId,f)}}; g.p.CD=function(){};g.G(X8,g.Y);X8.prototype.fQ=function(A,L){if(this.nY.has(L.triggerId))throw new n("Tried to register duplicate trigger for slot.");throw new n("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in VideoTransitionTriggerAdapter.");}; X8.prototype.uH=function(A){this.nY.delete(A.triggerId)};MF.prototype.z$=function(A){return A.kind==="AD_PLACEMENT_KIND_START"};g.G(W_,g.Y);W_.prototype.logEvent=function(A){this.N(A)}; W_.prototype.N=function(A,L,B,f,K,V,J,R,Z,N,F,D){var I=this;D=D===void 0?0:D;XW(this.FD.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+A,"slot:",K,"layout:",V,"ping:",J,"Opportunity:",{opportunityType:L,associatedSlotId:B,Ta1:f,g34:R,adSlotLoggingData:Z,adLayoutLoggingData:N});try{var d=function(){if(!I.FD.get().S.K().J("html5_disable_client_tmp_logs")&&A!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){A||Dh("Empty PACF event type",K,V);var w=uT(I.W.get()),r={eventType:A,eventOrder:++I.eventCount}, h={};K&&(h.slotData=zb(w,K));V&&(h.layoutData=Gxw(w,V));J&&(h.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:J.N.serializedAdPingMetadata,pingIndex:J.index});R&&(h.triggerData=nk(R.trigger,R.category));L&&(h.opportunityData=r07(w,L,B,f));w={organicPlaybackContext:{contentCpn:BV(I.hF.get(),1).clientPlaybackNonce}};w.organicPlaybackContext.isLivePlayback=BV(I.hF.get(),1).iC;var Q;w.organicPlaybackContext.isMdxPlayback=(Q=BV(I.hF.get(),1))==null?void 0: Q.isMdxPlayback;var l;if((l=BV(I.hF.get(),1))==null?0:l.daiEnabled)w.organicPlaybackContext.isDaiContent=!0;var C;if(Q=(C=BV(I.hF.get(),2))==null?void 0:C.clientPlaybackNonce)w.adVideoPlaybackContext={adVideoCpn:Q};w&&(h.externalContext=w);r.adClientData=h;Z&&(r.serializedSlotAdServingData=Z.serializedSlotAdServingDataEntry);N&&(r.serializedAdServingData=N.serializedAdServingDataEntry);F&&(r.errorInfo=F);g.pE("adsClientStateChange",{adsClientEvent:r})}}; D&&D>0?g.AR(g.ol(),function(){return d()},D):d()}catch(w){XW(this.FD.get(),"html5_log_pacf_logging_errors")&&g.AR(g.ol(),function(){Dh(w instanceof Error?w:String(w),K,V,{pacf_message:"exception during pacf logging"})})}};g.G(v_,W_);v_.prototype.N=function(A,L,B,f,K,V,J,R,Z,N,F){var D=this.FD.get();g.wY(D.S.K())?(D=this.FD.get(),D=g.Am(D.S.K().experiments,"H5_async_logging_delay_ms")):D=void 0;W_.prototype.N.call(this,A,L,B,f,K,V,J,R,Z,N,F,D)};qF.prototype.clear=function(){this.N.clear()};P_.prototype.state=function(){return this.N==="fulfilled"?{state:"fulfilled",value:this.result}:this.N==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; P_.prototype.U=function(A){eM(A)||xh(A)?A2(nS(A),this.U.bind(this),this.reject.bind(this)):(this.N="fulfilled",this.result=A,aU(this))}; P_.prototype.reject=function(A){this.N="rejected";this.error=A;aU(this)}; var xh=iI(function(A){return Y1E(A)?A instanceof P_:!1});var KP=window.j61||"es-419";R4.prototype.Qs=function(A){this.client=A}; R4.prototype.N=function(){this.clear();this.csn=g.sF()}; R4.prototype.clear=function(){this.V.clear();this.W.clear();this.U.clear();this.csn=null};Ny.prototype.Qs=function(A){g.fg(ZD().Qs).bind(ZD())(A)}; Ny.prototype.clear=function(){g.fg(ZD().clear).bind(ZD())()};g.p=FX.prototype;g.p.Qs=function(A){this.client=A}; g.p.qf=function(A,L){var B=this;L=L===void 0?{}:L;g.fg(function(){var f,K,V,J=((f=g.y(A==null?void 0:A.commandMetadata,g.jy))==null?void 0:f.rootVe)||((K=g.y(A==null?void 0:A.commandMetadata,fRW))==null?void 0:(V=K.screenVisualElement)==null?void 0:V.uiType);if(J){f=g.y(A==null?void 0:A.commandMetadata,GKf);if(f==null?0:f.parentTrackingParams){var R=g.jB(f.parentTrackingParams);if(f.parentCsn)var Z=f.parentCsn}else L.clickedVisualElement?R=L.clickedVisualElement:A.clickTrackingParams&&(R=g.jB(A.clickTrackingParams)); a:{f=g.y(A,g.FZ);K=g.y(A,pwO);if(f){if(K=XFw(f,"VIDEO")){f={token:K,videoId:f.videoId};break a}}else if(K&&(f=XFw(K,"PLAYLIST"))){f={token:f,playlistId:K.playlistId};break a}f=void 0}L=Object.assign({},{cttAuthInfo:f,parentCsn:Z},L);if(g.h_("expectation_logging")){var N;L.loggingExpectations=((N=g.y(A==null?void 0:A.commandMetadata,fRW))==null?void 0:N.loggingExpectations)||void 0}dS(B,J,R,L)}else g.CE(new g.iL("Error: Trying to create a new screen without a rootVeType",A))})()}; g.p.clickCommand=function(A,L,B){A=A.clickTrackingParams;B=B===void 0?0:B;A?(B=g.sF(B===void 0?0:B))?(uf(this.client,B,g.jB(A),L),L=!0):L=!1:L=!1;return L}; g.p.stateChanged=function(A,L,B){this.visualElementStateChanged(g.jB(A),L,B===void 0?0:B)}; g.p.visualElementStateChanged=function(A,L,B){B=B===void 0?0:B;B===0&&this.W.has(B)?this.G.push([A,L]):WwS(this,A,L,B)};yG.prototype.fetch=function(A,L,B){var f=this,K=PTL(A,L,B);return new Promise(function(V,J){function R(){if(B==null?0:B.er)try{var N=f.handleResponse(A,K.status,K.response,B);V(N)}catch(F){J(F)}else V(f.handleResponse(A,K.status,K.response,B))} K.onerror=R;K.onload=R;var Z;K.send((Z=L.body)!=null?Z:null)})}; yG.prototype.handleResponse=function(A,L,B,f){B=B.replace(")]}'","");try{var K=JSON.parse(B)}catch(V){g.CE(new g.iL("JSON parsing failed after XHR fetch",A,L,B));if((f==null?0:f.er)&&B)throw new g.n0(1,"JSON parsing failed after XHR fetch");K={}}L!==200&&(g.CE(new g.iL("XHR API fetch failed",A,L,B)),K=Object.assign({},K,{errorMetadata:{status:L}}));return K};jH.getInstance=function(){var A=g.bB("ytglobal.storage_");A||(A=new jH,g.hf("ytglobal.storage_",A));return A}; jH.prototype.estimate=function(){var A,L,B;return g.c(function(f){A=navigator;return((L=A.storage)==null?0:L.estimate)?f.return(A.storage.estimate()):((B=A.webkitTemporaryStorage)==null?0:B.queryUsageAndQuota)?f.return(x1E()):f.return()})}; g.hf("ytglobal.storageClass_",jH);gS.prototype.M4=function(A){this.handleError(A)}; gS.prototype.logEvent=function(A,L){switch(A){case "IDB_DATA_CORRUPTED":g.h_("idb_data_corrupted_killswitch")||this.N("idbDataCorrupted",L);break;case "IDB_UNEXPECTEDLY_CLOSED":this.N("idbUnexpectedlyClosed",L);break;case "IS_SUPPORTED_COMPLETED":g.h_("idb_is_supported_completed_killswitch")||this.N("idbIsSupportedCompleted",L);break;case "QUOTA_EXCEEDED":nX0(this,L);break;case "TRANSACTION_ENDED":this.V&&Math.random()<=.1&&this.N("idbTransactionEnded",L);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":A= Object.assign({},L,{hasWindowUnloaded:this.W}),this.N("idbTransactionAborted",A)}};var v0={},jG6=g.oI("yt-player-local-media",{JU:(v0.index={fO:2},v0.media={fO:2},v0.captions={fO:5},v0),shared:!1,upgrade:function(A,L){L(2)&&(g.TU(A,"index"),g.TU(A,"media"));L(5)&&g.TU(A,"captions");L(6)&&(lc(A,"metadata"),lc(A,"playerdata"))}, version:5});var CsO={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},qZ;a:{var P0=g.fa();P0=P0.toLowerCase();if(g.a8(P0,"android")){var ixI=P0.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(ixI){var $Vw=parseFloat(ixI[1]);if($Vw<100){qZ=$Vw;break a}}var XkK=P0.match("("+Object.keys(CsO).join("|")+")");qZ=XkK?CsO[XkK[0]]:0}else qZ=void 0}var vL=qZ,WL=vL>=0;var zL6={clientName:"UNKNOWN_INTERFACE",clientVersion:"unknown",clientTheme:"UNKNOWN_THEME",clientLanguage:"en",clientLocation:"US",clientLabel:"",cssPrefix:"",hasDisplay:!0,webpSupport:!1,forcedExperiments:"",requestVideoQuality:"",forceAdsUrl:"",forceHomeAdsUrl:"",internalExperimentFlags:[],oAuthClientProfiles:{},payments:{url:"https://payments.youtube.com"},xsrfToken:"",creditsUrl:"",startTime:0,authConfig:{accessTokenDiscountedExpirationMinutes:5,accessTokenServerExpirationMinutes:5,backgroundRefreshMinRemainingTokenTimeSec:0, defaultPlayerAccessTokenExpirationMs:-1,accountManagerTokenRefreshRetryDelayMs:0,accountManagerTokenRefreshMaxDelayMs:0,enableBackgroundTokenRefresh:!1,enableBackgroundTokenRefreshOauthCallback:!1,enableAuthenticationFailClosed:!1,enableAccountManagerAccountPropagation:!1,supexSignOutDisabled:!1,enableSwitchAccountsButton:!1,enableTectonicPlayerOauthCallback:!1,enableOAuthCredShare:!1},settings:{defaultValues:new Map([["AUTONAV",!0],["AUTONAV_KIDS",!1],["ENABLE_SOUND",!0],["ENABLE_PREVIEWS_WITH_SOUND", !0],["MDX_AUTOPLAY_ENABLED",!0],["SAFETY_MODE",!1],["HOME_ENABLE_PERSONAL_RESULTS",!0],["PRE_APP_USER_SETTING_FOR_LIVING_ROOM",!0]])}};var aoE=er(function(){var A,L;return(L=(A=window).matchMedia)==null?void 0:L.call(A,"(prefers-reduced-motion: reduce)").matches});var rS;g.G4=new Id;rS=0;var Km=RDe()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.ns?!0:!1;var G8={c4:function(A){A[S[14]]()}, AV:function(A,L){A[S[12]](0,L)}, sc:function(A,L){var B=A[0];A[0]=A[L%A[S[9]]];A[L%A[S[9]]]=B}};var vFQ={I5s:"adunit",fFp:"detailpage",OQr:"editpage",BbD:"embedded",gms:"leanback",xEx:"previewpage",puj:"profilepage",eK:"unplugged",fZL:"playlistoverview",OlF:"sponsorshipsoffer",xo4:"shortspage",zP4:"handlesclaiming",GMr:"immersivelivepage",zXD:"creatormusic",of4:"immersivelivepreviewpage",dV4:"admintoolyurt",s$s:"shortsaudiopivot",XFr:"consumption",GbF:"background_audio_playback"};var Zyv=2592E3;var xu,OxK,jQ;xu={};g.m6=(xu.STOP_EVENT_PROPAGATION="html5-stop-propagation",xu.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",xu.IV_DRAWER_OPEN="ytp-iv-drawer-open",xu.MAIN_VIDEO="html5-main-video",xu.VIDEO_CONTAINER="html5-video-container",xu.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",xu.HOUSE_BRAND="house-brand",xu);OxK={};jQ=(OxK.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",OxK.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",OxK);var GiQ={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var hDS={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},by6={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"},gn6={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var ce8={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Fk[S[8]][S[18]]=function(A,L){this[S[10]][A]!==L&&(this[S[10]][A]=L,this[S[11]]=S[21])}; g.Fk[S[8]][S[16]]=function(A){A1(4,this);return this[S[10]][A]||null}; g.Fk[S[8]][S[76]]=function(){this[S[11]]||(this[S[11]]=h1(32,this));return this[S[11]]}; g.Fk[S[8]][S[35]]=function(){var A=new g.Fk(this[S[29]],this[S[7]]);A[S[23]]=this[S[23]];A[S[17]]=this[S[17]];A[S[37]]=this[S[37]];A[S[10]]=g.is(this[S[10]]);A[S[11]]=this[S[11]];return A}; var KvL=[AN0];g.i6.prototype.getLanguageInfo=function(){return this.ri}; g.i6.prototype.getXtags=function(){if(!this.xtags){var A=this.id.split(";");A.length>1&&(this.xtags=A[1])}return this.xtags}; g.i6.prototype.toString=function(){return this.ri.name}; g.i6.prototype.isAutoDubbed=function(){return this.ri.getIsAutoDubbed()}; g.i6.prototype.getLanguageInfo=g.i6.prototype.getLanguageInfo;g.i6.prototype.isAutoDubbed=g.i6.prototype.isAutoDubbed;$Q.prototype.equals=function(A){return this.W===A.W&&this.N===A.N&&this.V===A.V&&this.reason===A.reason&&(!OO||this.lC===A.lC)}; $Q.prototype.isLocked=function(){return this.V&&!!this.W&&this.W===this.N}; $Q.prototype.compose=function(A){if(A.V&&EO(A))return fr;if(A.V||EO(this))return A;if(this.V||EO(A))return this;var L=this.W&&A.W?Math.max(this.W,A.W):this.W||A.W,B=this.N&&A.N?Math.min(this.N,A.N):this.N||A.N;L=Math.min(L,B);var f=0;OO&&(f=this.lC!==0&&A.lC!==0?Math.min(this.lC,A.lC):this.lC===0?A.lC:this.lC);return OO&&L===this.W&&B===this.N&&f===this.lC||!OO&&L===this.W&&B===this.N?this:OO?new $Q(L,B,!1,B===this.N&&f===this.lC?this.reason:A.reason,f):new $Q(L,B,!1,B===this.N?this.reason:A.reason)}; $Q.prototype.U=function(A){return!A.video||OO&&this.lC!==0&&this.lC=0}; g.p.ag=function(){var A=this.segments[this.segments.length-1];return A?A.endTime:NaN}; g.p.vy=function(){return this.segments[0].startTime}; g.p.gW=function(){return this.segments.length}; g.p.vB=function(){return 0}; g.p.NV=function(A){return(A=this.Fn(A))?A.XD:-1}; g.p.pU=function(A){return(A=this.vA(A))?A.sourceURL:""}; g.p.getStartTime=function(A){return(A=this.vA(A))?A.startTime:0}; g.p.zU=function(A){return this.getStartTime(A)+this.getDuration(A)}; g.p.a9=OD(3);g.p.isLoaded=function(){return this.segments.length>0}; g.p.vA=function(A){if(this.N&&this.N.XD===A)return this.N;A=g.Fc(this.segments,new AI(A,0,0,0,""),function(L,B){return L.XD-B.XD}); return this.N=A>=0?this.segments[A]:null}; g.p.Fn=function(A){if(this.N&&this.N.startTime<=A&&A=0?this.segments[A]:this.segments[Math.max(0,-A-2)]}; g.p.append=function(A){if(A.length)if(A=g.Kx(A),this.segments.length){var L=this.segments.length?g.vw(this.segments).endTime:0,B=A[0].XD-this.uq();B>1&&n7v(this.segments);for(B=B>0?0:-B+1;BA.XD&&this.index.OI()<=A.XD+1}; g.p.update=function(A,L,B){this.index.append(A);nGv(this.index,B);A=this.index;A.W=L;A.V="update"}; g.p.w1=function(){return this.mE()?!0:z5.prototype.w1.call(this)}; g.p.D_=function(A,L){var B=this.index.pU(A),f=this.index.getStartTime(A),K=this.index.getDuration(A),V;L?K=V=0:V=this.info.lC>0?this.info.lC*K:1E3;return new ZY([new Bp(3,this,void 0,"liveCreateRequestInfoForSegment",A,f,K,0,V,!L)],B)}; g.p.xi=function(){return this.mE()?0:this.initRange.length}; g.p.dn=function(){return!1};p3.prototype.update=function(A){var L=void 0;this.W&&(L=this.W);var B=new p3,f=Array.from(A.getElementsByTagName("S"));if(f.length){var K=+Ip(A,"timescale")||1,V=(+f[0].getAttribute("t")||0)/K,J=+Ip(A,"startNumber")||0;B.U=V;var R=L?L.startSecs+L.Dj:0,Z=Date.parse(vm1(Ip(A,"yt:segmentIngestTime")))/1E3;B.D=A.parentElement.tagName==="SegmentTemplate";B.D&&(B.X=Ip(A,"media"));A=L?J-L.XD:1;B.T=A>0?0:-A+1;A=g.m(f);for(f=A.next();!f.done;f=A.next()){f=f.value;for(var N=+f.getAttribute("d")/K,F=(+f.getAttribute("yt:sid")|| 0)/K,D=+f.getAttribute("r")||0,I=0;I<=D;I++)if(L&&J<=L.XD)J++;else{var d=new USk(J,R,N,Z+F,V);B.N.push(d);var w=f;var r=K,h=d.startSecs;d=w.getAttribute("yt:cuepointTimeOffset");var Q=w.getAttribute("yt:cuepointDuration");if(d&&Q){d=Number(d);h=-d/r+h;r=Number(Q)/r;Q=w.getAttribute("yt:cuepointContext")||null;var l=w.getAttribute("yt:cuepointIdentifier")||"";w=w.getAttribute("yt:cuepointEvent")||"";w=new Zc(h,r,Q,l,cOd[w]||"unknown",d)}else w=null;w&&B.V.push(w);J++;R+=N;V+=N;Z+=N+F}}B.N.length&& (B.W=g.vw(B.N))}this.T=B.T;this.W=B.W||this.W;g.VB(this.N,B.N);g.VB(this.V,B.V);this.D=B.D;this.X=B.X;this.U===-1&&(this.U=B.getStreamTimeOffset())}; p3.prototype.getStreamTimeOffset=function(){return this.U===-1?0:this.U};g.G(jl,g.Lq);g.p=jl.prototype;g.p.w7=function(){return this.So}; g.p.NE=function(A,L){A=gR(this,A);return A>=0&&(L||!this.segments[A].pending)}; g.p.OI=function(){return this.CO?this.segments.length?this.Fn(this.vy()).XD:-1:g.Lq.prototype.OI.call(this)}; g.p.vy=function(){if(this.SD)return 0;if(!this.CO)return g.Lq.prototype.vy.call(this);if(!this.segments.length)return 0;var A=Math.max(g.vw(this.segments).endTime-this.xH,0);return this.F3>0&&this.Fn(A).XD0)return this.Od/1E3;if(!this.segments.length)return g.Lq.prototype.ag.call(this);var A=this.uq();if(!this.CO||A<=this.segments[this.segments.length-1].XD)A=this.segments[this.segments.length-1];else{var L=this.segments[this.segments.length-1];A=new AI(A,Math.max(0,L.startTime-(L.XD-A)*this.So),this.So,0,"sq/"+A,void 0,void 0,!0)}return this.SD?Math.min(this.xH,A.endTime):A.endTime}; g.p.gW=function(){return this.CO?this.segments.length?this.uq()-this.OI()+1:0:g.Lq.prototype.gW.call(this)}; g.p.uq=function(){var A=Math.min(this.lW,Math.max(g.Lq.prototype.uq.call(this),this.Jj)),L=this.xH*1E3;L=this.Od>0&&this.Od0&&this.Jj>0&&!L&&(L=this.Fn(this.xH))&&(A=Math.min(L.XD-1,A));return A}; g.p.kN=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.p.MB=function(A){var L=gR(this,A.XD);if(L>=0)this.segments[L]=A;else if(this.segments.splice(-(L+1),0,A),this.T2&&A.XD%(300/this.So)===0){var B=this.segments[0].XD,f=Math.floor(this.T2/this.So);A=A.XD-f;L=-(L+1)-f;L>0&&A>B&&(this.segments=this.segments.slice(L))}}; g.p.Ns=function(){return this.Jj}; g.p.Kd=function(A){return ys?!this.W&&A>=0&&this.uq()<=A:g.Lq.prototype.Kd.call(this,A)}; g.p.Fn=function(A){if(!this.CO)return g.Lq.prototype.Fn.call(this,A);if(!this.segments.length)return null;var L=this.segments[this.segments.length-1];if(A=L.endTime)L=L.XD+Math.floor((A-L.endTime)/this.So+1);else{L=Dw(this.segments,function(f){return A=f.endTime?1:0}); if(L>=0)return this.segments[L];var B=-(L+1);L=this.segments[B-1];B=this.segments[B];L=Math.floor((A-L.endTime)/((B.startTime-L.endTime)/(B.XD-L.XD-1))+1)+L.XD}return this.vA(L)}; g.p.vA=function(A){if(!this.CO)return g.Lq.prototype.vA.call(this,A);if(!this.segments.length)return null;var L=gR(this,A);if(L>=0)return this.segments[L];var B=-(L+1);L=this.So;if(B===0)var f=Math.max(0,this.segments[0].startTime-(this.segments[0].XD-A)*L);else B===this.segments.length?(f=this.segments[this.segments.length-1],f=f.endTime+(A-f.XD-1)*L):(f=this.segments[B-1],L=this.segments[B],L=(L.startTime-f.endTime)/(L.XD-f.XD-1),f=f.endTime+(A-f.XD-1)*L);return new AI(A,f,L,0,"sq/"+A,void 0,void 0, !0)}; var ys=!1;g.G(GW,dR);g.p=GW.prototype;g.p.HE=function(){return!0}; g.p.w1=function(){return!0}; g.p.Z_=function(A){return this.g2()&&A.W&&!A.V||!A.b1.index.Kd(A.XD)}; g.p.bv=function(){}; g.p.tq=function(A,L){return typeof A!=="number"||isFinite(A)?dR.prototype.tq.call(this,A,L===void 0?!1:L):new ZY([new Bp(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.oC,void 0,this.oC*this.info.lC)],"")}; g.p.D_=function(A,L){var B=B===void 0?!1:B;if(this.index.NE(A))return dR.prototype.D_.call(this,A,L);var f=this.index.getStartTime(A),K=Math.round(this.oC*this.info.lC),V=this.oC;L&&(V=K=0);return new ZY([new Bp(B?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",A,f,V,void 0,K,!L)],A>=0?"sq/"+A:"")};g.G(rR,z5);g.p=rR.prototype;g.p.BB=function(){return!1}; g.p.g2=function(){return!1}; g.p.HE=function(){return!1}; g.p.bv=function(){return new ZY([new Bp(1,this,void 0,"otfInit")],this.D)}; g.p.X0=function(){return null}; g.p.nx=function(A){this.Z_(A);return aT7(this,JL(A),!1)}; g.p.tq=function(A,L){L=L===void 0?!1:L;A=this.index.NV(A);L&&(A=Math.min(this.index.uq(),A+1));return aT7(this,A,!0)}; g.p.tE=function(A){A.info.type===1&&(this.N||(this.N=yD(A.W)),A.N&&A.N.uri==="http://youtube.com/streaming/otf/durations/112015"&&AT6(this,A.N))}; g.p.Z_=function(A){return A.W===0?!0:this.index.uq()>A.XD&&this.index.OI()<=A.XD+1}; g.p.xi=function(){return 0}; g.p.dn=function(){return!1};var BN8=new Map,Vov=new Map,f2e=new function(){var A=this;this.N=new Map;this.GV={f_1:function(){return A.N}}};g.p=g.Qs.prototype;g.p.NE=function(A){return A<=this.uq()}; g.p.vB=function(A){return this.offsets[A]}; g.p.getStartTime=function(A){return this.startTicks[A]/this.N}; g.p.zU=function(A){return this.getStartTime(A)+this.getDuration(A)}; g.p.a9=OD(2);g.p.wX=function(){return NaN}; g.p.getDuration=function(A){A=this.Bv(A);return A>=0?A/this.N:-1}; g.p.Bv=function(A){return A+1=0}; g.p.ag=function(){return this.W?this.startTicks[this.count]/this.N:NaN}; g.p.vy=function(){return 0}; g.p.gW=function(){return this.count}; g.p.pU=function(){return""}; g.p.NV=function(A){A=g.Fc(this.startTicks.subarray(0,this.count),A*this.N);return A>=0?A:Math.max(0,-A-2)}; g.p.isLoaded=function(){return this.uq()>=0}; g.p.qe=function(A,L){if(A>=this.uq())return 0;var B=0;for(L=this.getStartTime(A)+L;Athis.getStartTime(A);A++)B=Math.max(B,dbv(this,A)/this.getDuration(A));return B}; g.p.resize=function(A){A+=2;var L=this.offsets;this.offsets=new Float64Array(A+1);var B=this.startTicks;this.startTicks=new Float64Array(A+1);for(A=0;A0&&A&&(B=B.range.end+1,A=Math.min(A,this.info.contentLength-B),A>0&&f.push(new Bp(4,this,L3(B,A),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,L)));return new ZY(f)}; g.p.tE=function(A){if(A.info.type===1){if(this.N)return;this.N=yD(A.W)}else if(A.info.type===2){if(this.D||this.index.uq()>=0)return;if(g.U2(this.info)){var L=this.index,B=g.b7(A);A=A.info.range.start;var f=g.dD(B,0,1936286840);B=RsL(f);L.N=B.timescale;var K=B.ZI;L.offsets[0]=B.Ps+A+f.size;L.startTicks[0]=K;L.W=!0;A=B.zl.length;for(f=0;f0&&A===V[0].rL)for(A=0;A=L+B)break}K.length||(A=new g.iL("b189619593",""+A,""+L,""+B),g.mL(A));return new ZY(K)}; g.p.A6=function(A){for(var L=this.kW(A.info),B=A.info.range.start+A.info.N,f=[],K=0;K=this.index.vB(B+1);)B++;return this.FI(B,L,A.W).Lr}; g.p.Z_=function(A){A.Ad();return this.w1()?!0:A.range.end+1this.info.contentLength&&(L=new as(L.start,this.info.contentLength-1)),new ZY([new Bp(4,A.b1,L,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,A.clipId)]);A.type===4&&(A=this.kW(A),A=A[A.length-1]);var B=0,f=A.range.start+A.N+A.W;A.type===3&&(A.Ad(),B=A.XD,f===A.range.end+1&&(B+=1));return this.FI(B,f,L)}; g.p.nx=function(){return null}; g.p.tq=function(A,L){L=L===void 0?!1:L;A=this.index.NV(A);L&&(A=Math.min(this.index.uq(),A+1));return this.FI(A,this.index.vB(A),0,void 0)}; g.p.BB=function(){return!0}; g.p.g2=function(){return!0}; g.p.HE=function(){return!1}; g.p.xi=function(){return this.indexRange.length+this.initRange.length}; g.p.dn=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var nI={},l2e=(nI.COLOR_PRIMARIES_BT709="bt709",nI.COLOR_PRIMARIES_BT2020="bt2020",nI.COLOR_PRIMARIES_UNKNOWN=null,nI.COLOR_PRIMARIES_UNSPECIFIED=null,nI),ze={},wV6=(ze.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",ze.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",ze.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",ze.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",ze.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,ze.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,ze);g.p=g.$6.prototype;g.p.getName=function(){return this.name}; g.p.getId=function(){return this.id}; g.p.getIsDefault=function(){return this.isDefault}; g.p.getIsAutoDubbed=function(){return this.isAutoDubbed}; g.p.toString=function(){return this.name}; g.$6.prototype.getName=g.$6.prototype.getName;g.$6.prototype.getId=g.$6.prototype.getId;g.$6.prototype.getIsDefault=g.$6.prototype.getIsDefault;g.$6.prototype.getIsAutoDubbed=g.$6.prototype.getIsAutoDubbed;var ga7=/action_display_post/;var GvE,EI,cp;g.G(MP,g.SN);g.p=MP.prototype;g.p.isLoading=function(){return this.state===1}; g.p.LQ=function(){return this.state===3}; g.p.HwL=function(A){var L=A.getElementsByTagName("Representation");if(A.getElementsByTagName("SegmentList").length>0||A.getElementsByTagName("SegmentTemplate").length>0){this.iC=this.W=!0;this.X||(this.X=new Pd6);zsS(this.X,A);this.publish("refresh");for(A=0;A=0?F=AL(I):D=D+"?range="+I}Z.call(R,new AI(N.XD,N.startSecs,N.Dj,N.N,D,F,N.W))}f=K}B.update(f,this.isLive,this.Ex)}uwQ(this.X);return!0}this.duration=WD0(Ip(A,"mediaPresentationDuration"));a:{for(A= 0;A0))return this.oA()-A}}A=this.N;for(var L in A){var B=A[L].index;if(B.isLoaded()&&!xa(A[L].info.mimeType))return B.vy()}return 0}; g.p.getStreamTimeOffset=function(){return this.G}; g.p.wX=function(A){for(var L in this.N){var B=this.N[L].index;if(B.isLoaded()){var f=B.NV(A),K=B.wX(f);if(K)return K+A-B.getStartTime(f)}}return NaN}; var LM=null,MZR,oj=!((MZR=navigator.mediaCapabilities)==null||!MZR.decodingInfo),O$C={commentary:1,alternate:2,dub:3,main:4};var Vn=new Set,BL=new Map;VN.prototype.clone=function(A){return new VN(this.flavor,A,this.W,this.experiments)}; VN.prototype.Ov=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; VN.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 YcR={},we=(YcR.playready=["com.youtube.playready","com.microsoft.playready"],YcR.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],YcR),uo={},QfS=(uo.widevine="DRM_SYSTEM_WIDEVINE",uo.fairplay="DRM_SYSTEM_FAIRPLAY",uo.playready="DRM_SYSTEM_PLAYREADY",uo),az={},UVO=(az.widevine=1,az.fairplay=2,az.playready=3,az);var jx;g.G(pM,g.Y); pM.prototype.initialize=function(A,L){for(var B=this,f=g.m(Object.keys(A)),K=f.next();!K.done;K=f.next()){K=g.m(A[K.value]);for(var V=K.next();!V.done;V=K.next())if(V=V.value,V.Zj)for(var J=g.m(Object.keys(V.Zj)),R=J.next();!R.done;R=J.next()){var Z=R.value;R=Z;Z=we[Z];!Z&&this.J("html5_enable_vp9_fairplay")&&R==="fairplay"&&(Z=["com.youtube.fairplay.sbdl"]);if(Z){Z=g.m(Z);for(var N=Z.next();!N.done;N=Z.next())N=N.value,this.V[N]=this.V[N]||new VN(R,N,V.Zj[R],this.tF.experiments),this.N[R]=this.N[R]|| {},this.N[R][V.mimeType]=!0}}}zc()&&(this.V["com.youtube.fairplay"]=new VN("fairplay","com.youtube.fairplay","",this.tF.experiments),this.J("html5_enable_vp9_fairplay")||(this.N.fairplay=this.N.fairplay||{},this.N.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.N.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.W=u26(L,this.useCobaltWidevine,this.J("html5_enable_safari_fairplay")&&!0,this.J("html5_enable_vp9_fairplay")).filter(function(F){return!!B.V[F]})}; pM.prototype.J=function(A){return this.tF.experiments.GL(A)};var Wiw={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var P1L={RED:"red",MLL:"white"};GM.prototype.Iv=function(A){if(A.BD!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return JAD(this,A)}; GM.prototype.GL=function(A){return this.flags.get(""+A)==="true"};re.prototype.Qf=function(){return this.V}; re.prototype.mw=function(){return this.W}; re.prototype.GL=function(A){A=this.Iv(A);JSON.stringify(A);return A==="true"}; re.prototype.Iv=function(A){return this.flags[A]};var ZWv=Promise.resolve(),dK8=window.queueMicrotask?window.queueMicrotask.bind(window):Nzy;HL.prototype.canPlayType=function(A,L){A=A.canPlayType?A.canPlayType(L):!1;ed?A=A||vgd[L]:vL===2.2?A=A||qc5[L]:ek()&&(A=A||Psw[L]);return!!A}; HL.prototype.isTypeSupported=function(A){return this.G?window.cast.receiver.platform.canDisplayType(A):Nb(A)}; var qc5={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Psw={"application/x-mpegURL":"maybe"},vgd={"application/x-mpegURL":"maybe"};g.G(t7,g.SN);t7.prototype.add=function(A,L){if(!this.items[A]&&(L.SP||L.JL||L.Tj)){var B=this.items,f=L;Object.isFrozen&&!Object.isFrozen(L)&&(f=Object.create(L),Object.freeze(f));B[A]=f;this.publish("vast_info_card_add",A)}}; t7.prototype.remove=function(A){var L=this.get(A);delete this.items[A];return L}; t7.prototype.get=function(A){return this.items[A]||null}; t7.prototype.isEmpty=function(){return g.mi(this.items)};ki.prototype.encrypt=function(A){this.N.exports.AES128CTRCipher_encrypt(this.cipher,A.byteOffset,A.byteLength);return A}; ki.prototype.TL=function(){return this.cipher===0}; ki.prototype.dispose=function(){this.N.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};l9.prototype.bM=function(A,L){L=L===void 0?1:L;this.fn+=L;this.W+=A;A/=L;for(var B=0;B0)f+="."+TM[K].toFixed(0)+"_"+B.N[K].toFixed(0);else break;B=f}B&&(A[L]=B)}this.N=new yAS;return A}; g.p.toString=function(){return""};g.p=HWw.prototype;g.p.isActive=function(){return!1}; g.p.UW=function(){}; g.p.l4=function(){}; g.p.UV=function(){}; g.p.Rf=function(A,L){L()}; g.p.sL=function(){return{}}; g.p.toString=function(){return""};var xVf=new HWw,eF5=!!+Lg("html5_enable_profiler"),ng9=!!+Lg("html5_onesie_enable_profiler"),AC=eF5||ng9?new gFS:xVf,iIw=eF5?AC:xVf,QN=ng9?AC:xVf;mKQ.prototype.emscripten_notify_memory_growth=function(){};g.p=mH.prototype;g.p.malloc=function(A){return this.exports.malloc(A)}; g.p.free=function(A){this.exports.free(A)}; g.p.realloc=function(A,L){return this.exports.realloc(A,L)}; g.p.aV=function(A){if(A.buffer!==this.exports.memory.buffer){var L=this.malloc(A.byteLength);L=new Uint8Array(this.exports.memory.buffer,L,A.byteLength);L.set(A);return L}}; g.p.Sx=function(A){if(A.buffer===this.exports.memory.buffer){var L=A.slice();this.free(A.byteOffset);return L}}; var kuL=new function(){this.N="WebAssembly"in window},CM="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); QN.UW(mH,{aV:function(A){return{profile:"copyj2w",fn:A===void 0?0:Math.ceil(A.byteLength/16)}}, Sx:function(A){return{profile:"copyw2j",fn:A===void 0?0:Math.ceil(A.byteLength/16)}}});i9.prototype.encrypt=function(A,L){try{return this.N.Sx($K7(this,A,L))}catch(B){g.CE(Error("ocwce: wasm encrypt failed: "+B))}}; i9.prototype.TL=function(){return this.V}; i9.prototype.dispose=function(){this.TL()||(g.jq(this.W),this.N.free(this.U.byteOffset),this.V=!0)};g.G(Xi1,g.Y);g.G(EF8,g.Y);g.G(MeE,g.Y);var qJ7="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),uie={zEL:"caoe",ER4:"capsv",PY4:"cbrand",Lo4:"cbr",NbL:"cbrver",bQp:"cchip",MOp:"ccappver",RXT:"ccrv",wB1:"cfrmver",cOx:"c",L31:"cver",PMj:"ctheme",BRp:"cplayer",L2F:"cmodel",RE:"cnetwork",J8j:"cos",OS_VERSION:"cosver",nCx:"cplatform",R8r:"crqyear"};g.G(Lo,g.Y);g.p=Lo.prototype;g.p.J=function(A){return this.experiments.GL(A)}; g.p.Qf=function(){return this.experiments.Qf()}; g.p.mw=function(){return this.experiments.mw()}; g.p.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.p.getVideoUrl=function(A,L,B,f,K,V,J){L={list:L};B&&(K?L.time_continue=B:L.t=B);B=J?"music.youtube.com":g.BN(this);K=B==="www.youtube.com";!V&&f&&K?V="https://youtu.be/"+A:g.xi(this)?(V="https://"+B+"/fire",L.v=A):(V&&K?(V=this.protocol+"://"+B+"/shorts/"+A,f&&(L.feature="share")):(V=this.protocol+"://"+B+"/watch",L.v=A),ed&&(A=j$L())&&(L.ebc=A));return g.ip(V,L)}; g.p.getVideoEmbedCode=function(A,L,B,f){L="https://"+g.BN(this)+"/embed/"+L;f&&(L=g.ip(L,{list:f}));f=B.width;B=B.height;L=P5(L);A=P5(A!=null?A:"YouTube video player");return'')}; g.p.supportsGaplessAudio=function(){return g.Z2&&!ed&&qs()>=74||g.de&&g.oC(68)?!0:!1}; g.p.supportsGaplessShorts=function(){return!this.J("html5_enable_short_gapless")||this.Ex||g.yw?!1:!0}; g.p.getPlayerType=function(){return this.N.cplayer}; g.p.hw=function(){return this.Ry}; var od6=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],zE8=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Ay6=[19];var LF={},JyC=(LF["140"]={numChannels:2},LF["141"]={numChannels:2},LF["251"]={audioSampleRate:48E3,numChannels:2},LF["774"]={audioSampleRate:48E3,numChannels:2},LF["380"]={numChannels:6},LF["328"]={numChannels:6},LF["773"]={},LF),oV={},KU0=(oV["1"]='video/mp4; codecs="av01.0.08M.08"',oV["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',oV["1e"]='video/mp4; codecs="av01.0.08M.08"',oV["9"]='video/webm; codecs="vp9"',oV["("]='video/webm; codecs="vp9"',oV["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', oV.h='video/mp4; codecs="avc1.64001e"',oV.H='video/mp4; codecs="avc1.64001e"',oV.o='audio/webm; codecs="opus"',oV.a='audio/mp4; codecs="mp4a.40.2"',oV.ah='audio/mp4; codecs="mp4a.40.2"',oV.mac3='audio/mp4; codecs="ac-3"; channels=6',oV.meac3='audio/mp4; codecs="ec-3"; channels=6',oV.i='audio/mp4; codecs="iamf.001.001.Opus"',oV),BE={},V$e=(BE["337"]={width:3840,height:2160,bitrate:3E7,fps:30},BE["336"]={width:2560,height:1440,bitrate:15E6,fps:30},BE["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, BE["702"]={width:7680,height:4320,bitrate:4E7,fps:60},BE["701"]={width:3840,height:2160,bitrate:2E7,fps:60},BE["700"]={width:2560,height:1440,bitrate:1E7,fps:60},BE["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},BE["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},BE["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},BE["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, BE["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},BE["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},BE["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},BE["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},BE["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},BE["315"]={width:3840,height:2160,bitrate:2E7,fps:60},BE["308"]={width:2560, height:1440,bitrate:1E7,fps:60},BE["303"]={width:1920,height:1080,bitrate:5E6,fps:60},BE["302"]={width:1280,height:720,bitrate:25E5,fps:60},BE["299"]={width:1920,height:1080,bitrate:75E5,fps:60},BE["298"]={width:1280,height:720,bitrate:35E5,fps:60},BE["571"]={width:7680,height:4320,bitrate:3E7,fps:60},BE["401"]={width:3840,height:2160,bitrate:15E6,fps:60},BE["400"]={width:2560,height:1440,bitrate:75E5,fps:60},BE["399"]={width:1920,height:1080,bitrate:2E6,fps:60},BE["398"]={width:1280,height:720,bitrate:1E6, fps:60},BE["397"]={width:854,height:480,bitrate:4E5,fps:30},BE["396"]={width:640,height:360,bitrate:25E4,fps:30},BE["787"]={width:1080,height:608,bitrate:2E5,fps:30},BE["788"]={width:1080,height:608,bitrate:4E5,fps:30},BE["572"]={width:7680,height:4320,bitrate:3E7,fps:60},BE["555"]={width:3840,height:2160,bitrate:15E6,fps:60},BE["554"]={width:2560,height:1440,bitrate:75E5,fps:60},BE["553"]={width:1920,height:1080,bitrate:2E6,fps:60},BE["552"]={width:1280,height:720,bitrate:1E6,fps:60},BE["551"]={width:854, height:480,bitrate:4E5,fps:30},BE["550"]={width:640,height:360,bitrate:25E4,fps:30},BE["313"]={width:3840,height:2160,bitrate:8E6,fps:30},BE["271"]={width:2560,height:1440,bitrate:4E6,fps:30},BE["248"]={width:1920,height:1080,bitrate:2E6,fps:30},BE["247"]={width:1280,height:720,bitrate:15E5,fps:30},BE["244"]={width:854,height:480,bitrate:52E4,fps:30},BE["243"]={width:640,height:360,bitrate:28E4,fps:30},BE["137"]={width:1920,height:1080,bitrate:4E6,fps:30},BE["136"]={width:1280,height:720,bitrate:3E6, fps:30},BE["135"]={width:854,height:480,bitrate:1E6,fps:30},BE["385"]={width:1920,height:1080,bitrate:6503313,fps:60},BE["376"]={width:1280,height:720,bitrate:5706960,fps:60},BE["384"]={width:1280,height:720,bitrate:3660979,fps:60},BE["225"]={width:1280,height:720,bitrate:5805E3,fps:30},BE["224"]={width:1280,height:720,bitrate:453E4,fps:30},BE["145"]={width:1280,height:720,bitrate:2682052,fps:30},BE);g.p=gd.prototype;g.p.getInfo=function(){return this.N}; g.p.zx=function(){return null}; g.p.Lk=function(){var A=this.zx();return A?(A=g.RM(A.wi),Number(A.expire)):NaN}; g.p.B3=function(){}; g.p.getHeight=function(){return this.N.video.height};Nf1.prototype.build=function(){drQ(this);var A=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],L={};a:if(this.N)var B=this.N;else{B="";for(var f=g.m(this.V),K=f.next();!K.done;K=f.next())if(K=K.value,K.ri){if(K.ri.getIsDefault()){B=K.ri.getId();break a}B||(B=K.ri.getId())}}f=g.m(this.V);for(K=f.next();!K.done;K=f.next())if(K=K.value,this.T||!K.ri||K.ri.getId()===B)L[K.itag]||(L[K.itag]=[]),L[K.itag].push(K);B=g.m(this.W);for(f=B.next();!f.done;f=B.next())if(f=f.value,K=L[f.N]){K=g.m(K);for(var V=K.next();!V.done;V= K.next()){var J=A,R=J.push;V=V.value;var Z="#EXT-X-MEDIA:TYPE=AUDIO,",N="YES",F="audio";if(V.ri){F=V.ri;var D=F.getId().split(".")[0];D&&(Z+='LANGUAGE="'+D+'",');(this.N?this.N===F.getId():F.getIsDefault())||(N="NO");F=F.getName()}D="";f!==null&&(D=f.itag.toString());D=rd(this,V.url,D);Z=Z+('NAME="'+F+'",DEFAULT='+(N+',AUTOSELECT=YES,GROUP-ID="'))+(Dr6(V,f)+'",URI="'+(D+'"'));R.call(J,Z)}}B=g.m(this.D);for(f=B.next();!f.done;f=B.next())f=f.value,K=zFf,f=(J=f.ri)?'#EXT-X-MEDIA:URI="'+rd(this,f.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+K+'",LANGUAGE="'+J.getId()+'",NAME="'+J.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,f&&A.push(f);B=this.D.length>0?zFf:void 0;f=g.m(this.W);for(K=f.next();!K.done;K=f.next())K=K.value,R=L[K.N],J=void 0,((J=R)==null?void 0:J.length)>0&&(J=K,R=R[0],R="#EXT-X-STREAM-INF:BANDWIDTH="+(J.bitrate+R.bitrate)+',CODECS="'+(J.codecs+","+R.codecs+'",RESOLUTION=')+(J.width+"x"+J.height+',AUDIO="')+(Dr6(R,J)+'",')+(B?'SUBTITLES="'+B+'",':"")+"CLOSED-CAPTIONS=NONE",J.fps>1&&(R+= ",FRAME-RATE="+J.fps),J.Bd&&(R+=",VIDEO-RANGE="+J.Bd),A.push(R),A.push(rd(this,K.url,"")));return A.join("\n")}; var zFf="text";g.G(se,gd);se.prototype.Lk=function(){return this.expiration}; se.prototype.zx=function(){if(!this.wi||this.wi.TL()){var A=this.W.build();A="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(A);this.wi=new Rk(A)}return this.wi};g.G(HN,gd);HN.prototype.zx=function(){return new Rk(this.W.MQ())}; HN.prototype.B3=function(){this.W=J1(5,this.W)};g.G(h$,gd);h$.prototype.zx=function(){return new Rk(this.W)};var fF={},Hp1=(fF.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",fF.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",fF.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",fF.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",fF);g.p=g.bS.prototype;g.p.getId=function(){return this.id}; g.p.getName=function(){return this.name}; g.p.isServable=function(){return this.N}; g.p.MQ=function(){return this.url}; g.p.getXtags=function(){return this.xtags}; g.p.toString=function(){return this.languageCode+": "+g.t$(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.p.equals=function(A){return A?this.toString()===A.toString():!1}; g.p.gX=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var lNL={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},mre={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Q21=/^(\d*)_((\d*)_?(\d*))$/;var ipy={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},$rQ={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var KF={},OpC=(KF.ALWAYS=1,KF.BY_REQUEST=3,KF.UNKNOWN=void 0,KF),V8={},F9E=(V8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",V8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",V8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",V8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",V8);var glk; glk=function(A){for(var L=Object.keys(A),B={},f=0;ff-L?-1:A}; g.p.ih=function(){return this.W.uq()}; g.p.w0=function(){return this.W.OI()}; g.p.h6=function(A){this.W=A};g.G(BK,Lr);BK.prototype.W=function(A,L){return Lr.prototype.W.call(this,"$N|"+A,L)}; BK.prototype.D=function(A,L,B){return new oq(A,L,B,this.isLive)};g.G(g.Kr,g.SN);g.p=g.Kr.prototype; g.p.setData=function(A){var L=this;A=A||{};var B=A.errordetail;B!=null&&(this.errorDetail=B);var f=A.errorcode;f!=null?this.errorCode=f:A.status==="fail"&&(this.errorCode="auth");var K=A.reason;K!=null&&(this.errorReason=K);var V=A.subreason;V!=null&&(this.Qr=V);if(!this.clientPlaybackNonce){this.clientPlaybackNonce=A.cpn||(this.tF.hw()?"r"+g.y0(15):g.y0(16));var J;(J=this.g$)==null||J.clear()}this.I7=Sw(this.tF.I7,A.livemonitor);XyE(this,A);var R=A.raw_player_response;if(R)this.tI=R;else{var Z=A.player_response; Z&&(R=JSON.parse(Z))}R&&(this.playerResponse=R);if(this.playerResponse){var N=this.playerResponse.annotations;N&&Ed1(this,N);var F=this.playerResponse.attestation;F&&cy6(this,F);var D=this.playerResponse.cotn;D&&(this.cotn=D);var I=this.playerResponse.heartbeatParams;I&&vd8(this,I);var d=this.playerResponse.messages;d&&eSe(this,d);var w=this.playerResponse.overlay;w&&Aew(this,w);var r=this.playerResponse.playabilityStatus;if(r){L9L(this,r);var h=r.errorScreen;h&&N90(this,h)}var Q=this.playerResponse.playbackTracking; Q&&B98(this,Q,A);var l=this.playerResponse.playerCueRanges;l&&l.length>0&&(this.cueRanges=l);var C=this.playerResponse.playerCueRangeSet;C&&g.ZQ(this,C);var O=p_y(this.playerResponse.adPlacements);Q&&Q.promotedPlaybackTracking&&O&&g.CE(new g.iL("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(O||vxL(this.playerResponse.adSlots))this.iT=!0;var v=this.playerResponse.playerAds;v&&fJE(this,v,A);var U=this.playerResponse.playerConfig;U&&K9y(this,U);var a=this.playerResponse.streamingData; a&&VLQ(this,a,U||null);var o0=this.playerResponse.trackingParams;o0&&(this.Wn=o0);var B6=this.playerResponse.videoDetails;if(B6){S40(this,B6,A);D0y(this,B6,U||null,A);var Ve=B6.isPrivate;Ve!==void 0&&(this.isPrivate=Sw(this.isPrivate,Ve))}r&&WU6(this,r,B6||null);var DS=this.playerResponse.interstitialPods;DS&&xrw(this,DS);this.zM&&this.eventId&&(this.zM=Ns(this.zM,{ei:this.eventId}));var fw=this.playerResponse.captions;fw&&fw.playerCaptionsTracklistRenderer&&Y7C(this,fw.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.G2=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&ndQ(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var ry;this.compositeLiveIngestionOffsetToken=(ry=this.playerResponse.playbackTracking)==null?void 0:ry.compositeLiveIngestionOffsetToken; var uL;this.compositeLiveStatusToken=(uL=this.playerResponse.playbackTracking)==null?void 0:uL.compositeLiveStatusToken;this.J("html5_fill_default_mosaic_audio_track_id")&&oh(this)&&(this.tF.cn=C4D(this));var Jf,MC,nw=(Jf=this.playerResponse.playerConfig)==null?void 0:(MC=Jf.granularVariableSpeedConfig)==null?void 0:MC.minimumPlaybackRate,Xk,e5,mt=(Xk=this.playerResponse.playerConfig)==null?void 0:(e5=Xk.granularVariableSpeedConfig)==null?void 0:e5.maximumPlaybackRate;nw&&mt&&(this.e7=nw/100,this.mM= mt/100);this.J("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(L8){var ms;((ms=g.y(L8,UrD))==null?void 0:ms.signal)==="INIT_ATT_SERVICE"&&(L.Es=!0)})}Ja(this,A); OJ7(this,A);A.queue_info&&(this.queueInfo=A.queue_info);var T=A.hlsdvr;T!=null&&(this.allowLiveDvr=Number(T)===1?h7()?!0:oX&&$c<5?!1:!0:!1);this.adQueryId=A.ad_query_id||null;this.aQ||(this.aQ=A.encoded_ad_safety_reason||null);this.s$=Sw(this.s$,A.infringe||A.muted);this.g0=A.authkey;this.jy=A.authuser;this.mutedAutoplay=Sw(this.mutedAutoplay,A&&A.playmuted);this.mutedAutoplayDurationMode=ZG(this.mutedAutoplayDurationMode,A&&A.muted_autoplay_duration_mode);this.U$=Sw(this.U$,A&&A.mutedautoplay);var aO= A.length_seconds;aO&&(this.lengthSeconds=typeof aO==="string"?na(aO):aO);this.isAd()||this.Of||!g.IX(g.nM(this.tF))?this.endSeconds=ZG(this.endSeconds,this.aB||A.end||A.endSeconds):W96(this,g.nM(this.tF),this.lengthSeconds);this.Wn=NE(this.Wn,A.itct);this.y8=Sw(this.y8,A.is_live_destination);this.isLivePlayback=Sw(this.isLivePlayback,A.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.iC();A.isUpcoming&&(this.isUpcoming=Sw(this.isUpcoming,A.isUpcoming));this.SD=Sw(this.SD, A.post_live_playback);this.hd&&(this.SD=!1);this.isMdxPlayback=Sw(this.isMdxPlayback,A.mdx);var YW=A.mdx_control_mode;YW&&(this.mdxControlMode=typeof YW==="number"?YW:na(YW));this.isInlinePlaybackNoAd=Sw(this.isInlinePlaybackNoAd,A.is_inline_playback_no_ad);this.Cr=ZG(this.Cr,A.reload_count);this.reloadReason=NE(this.reloadReason,A.reload_reason);this.nL=Sw(this.nL,A.show_content_thumbnail);this.cycToken=A.cyc||null;var R0=lS(A);Object.keys(R0).length>0&&(this.ea=R0);this.qp=NE(this.qp,A.vvt);this.mdxEnvironment= NE(this.mdxEnvironment,A.mdx_environment);A.source_container_playlist_id&&(this.sourceContainerPlaylistId=A.source_container_playlist_id);A.serialized_mdx_metadata&&(this.serializedMdxMetadata=A.serialized_mdx_metadata);this.Ze=A.osig;this.eventId||(this.eventId=A.eventid);this.osid||(this.osid=A.osid);this.playlistId=NE(this.playlistId,A.list);A.index&&(this.playlistIndex=this.playlistIndex===void 0?ZG(0,A.index):ZG(this.playlistIndex,A.index));this.dF=A.pyv_view_beacon_url;this.Wf=A.pyv_quartile25_beacon_url; this.Ss=A.pyv_quartile50_beacon_url;this.J9=A.pyv_quartile75_beacon_url;this.yd=A.pyv_quartile100_beacon_url;var TK=A.session_data;!this.Ts&&TK&&(this.Ts=Vh(TK,"&").feature);this.isFling=ZG(this.isFling?1:0,A.is_fling)===1;this.vnd=ZG(this.vnd,A.vnd);this.forceAdsUrl=NE(this.forceAdsUrl,A.force_ads_url);this.bY=NE(this.bY,A.ctrl);this.CQ=NE(this.CQ,A.ytr);this.Zi=A.ytrcc;this.XE=A.ytrexp;this.F0=A.ytrext;this.ql=NE(this.ql,A.adformat);this.XR=NE(this.XR,A.attrib);this.slotPosition=ZG(this.slotPosition, A.slot_pos);this.breakType=A.break_type;this.dY=Sw(this.dY,A.ssrt);this.videoId=DG(A)||this.videoId;this.T=NE(this.T,A.vss_credentials_token);this.Zl=NE(this.Zl,A.vss_credentials_token_type);this.qh=Sw(this.qh,A.audio_only);this.ZM=Sw(this.ZM,A.aac_high);this.jr=Sw(this.jr,A.prefer_low_quality_audio);this.YS=Sw(this.YS,A.uncap_inline_quality);this.J("html5_enable_qoe_cat_list")?A.qoe_cat&&(this.Vs=this.Vs.concat(A.qoe_cat.split(","))):this.AU=NE(this.AU,A.qoe_cat);this.Sb=Sw(this.Sb,A.download_media); this.X=EhQ(this,A.prefer_gapless);pF1(this.playerResponse)&&this.p9.push("ad");var b=A.adaptive_fmts;b&&(this.adaptiveFormats=b,this.Hn("adpfmts",{},!0));var Lw=A.allow_embed;Lw&&(this.allowEmbed=Number(Lw)===1);var ro=A.backgroundable;ro&&(this.backgroundable=Number(ro)===1);var SZ=A.autonav;SZ&&(this.isAutonav=Number(SZ)===1);var xg=A.autoplay;xg&&(this.BV=this.Ll=Number(xg)===1);var R8=A.iv_load_policy;R8&&(this.annotationsLoadPolicy=RX(this.annotationsLoadPolicy,R8,zM));var a0=A.cc_lang_pref; a0&&(this.captionsLanguagePreference=NE(a0,this.captionsLanguagePreference));var oO=A.cc_load_policy;oO&&(this.a7=RX(this.a7,oO,zM));var tO;this.deviceCaptionsOn=(tO=A.device_captions_on)!=null?tO:void 0;var k;this.Gx=(k=A.device_captions_lang_pref)!=null?k:"";var H;this.rp=(H=A.viewer_selected_caption_langs)!=null?H:[];var t=A.cached_load;t&&(this.hI=Sw(this.hI,t));if(A.dash==="0"||A.dash===0||A.dash===!1)this.jH=!0;var E=A.dashmpd;E&&(this.sZ=g.ip(E,{cpn:this.clientPlaybackNonce}));var e=A.delay; e&&(this.qo=na(e));var SE=this.aB||A.end;if(this.sx?SE!=null:SE!=void 0)this.clipEnd=ZG(this.clipEnd,SE);var z=A.fmt_list;z&&(this.bI=z);A.heartbeat_preroll&&this.p9.push("heartbeat");ucO&&(this.Ji=-Math.floor(Math.random()*10),this.Tf=-Math.floor(Math.random()*40));var P=A.is_listed;P&&(this.isListed=Sw(this.isListed,P));var M=A.is_private;M&&(this.isPrivate=Sw(this.isPrivate,M));var mv=A.is_dni;mv&&(this.OE=Sw(this.OE,mv));var Qe=A.dni_color;Qe&&(this.kE=NE(this.kE,Qe));var ye=A.pipable;ye&&(this.pipable= Sw(this.pipable,ye));this.r4=(this.xY=this.pipable&&this.tF.mL)&&!this.tF.showMiniplayerButton;var T8=A.paid_content_overlay_duration_ms;T8&&(this.paidContentOverlayDurationMs=na(T8));var ff=A.paid_content_overlay_text;ff&&(this.paidContentOverlayText=ff);var t1=A.url_encoded_fmt_stream_map;t1&&(this.Nh=t1);var Yg=A.hls_formats;Yg&&(this.hlsFormats=Yg);var eZ=A.hlsvp;eZ&&(this.hlsvp=eZ);var nf=A.live_start_walltime;nf&&(this.r0=typeof nf==="number"?nf:na(nf));var lL=A.live_manifest_duration;lL&&(this.JA= typeof lL==="number"?lL:na(lL));var W4=A.player_params;W4&&(this.playerParams=W4);var Cw=A.partnerid;Cw&&(this.partnerId=ZG(this.partnerId,Cw));var sd=A.probe_url;sd&&(this.probeUrl=YG(g.ip(sd,{cpn:this.clientPlaybackNonce})));var Y7=A.pyv_billable_url;Y7&&ofv(Y7)&&(this.N3=Y7);var E6=A.pyv_conv_url;E6&&ofv(E6)&&(this.NB=E6);ML8(this,A);this.startSeconds>0?this.J("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.G2||this.dW||A.start||A.startSeconds)&&this.Hn("lss",{css:this.startSeconds, pcss:this.G2,iss:this.dW,ps:A.start||void 0,pss:A.startSeconds||void 0}):(this.startSeconds=ZG(this.startSeconds,this.G2||this.dW||A.start||A.startSeconds),this.J("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.Hn("lsss",{css:this.startSeconds,pcss:this.G2,iss:this.dW,ps:A.start||void 0,pss:A.startSeconds||void 0}),this.Ex=this.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Hw=A.live_utc_start;Hw!=null?this.liveUtcStartSeconds=Number(Hw):Ane(this.startSeconds)&& (this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var AO=A.utc_start_millis;AO&&(this.liveUtcStartSeconds=Number(AO)*.001)}var fx=A.stream_time_start_millis;fx&&(this.NT=Number(fx)*.001);var cw=this.dW||A.start;(this.sx?cw==null||Number(A.resume)===1:cw==void 0||A.resume=="1")||this.isLivePlayback||(this.clipStart=ZG(this.clipStart,cw));var iB=A.url_encoded_third_party_media;iB&&(this.b2=Sk(iB));var yR=A.ypc_offer_button_formatted_text;if(yR){var CG= JSON.parse(yR);this.wH=CG!=null?CG:null;this.A9=yR}var Ir=A.ypc_offer_button_text;Ir&&(this.z0=Ir);var w6=A.ypc_offer_description;w6&&(this.Gm=w6);var VI=A.ypc_offer_headline;VI&&(this.EA=VI);var Js=A.ypc_full_video_message;Js&&(this.v0=Js);var JD=A.ypc_offer_id;JD&&(this.yW=JD);var GO=A.ypc_buy_url;GO&&(this.gD=GO);var S1=A.ypc_item_thumbnail;S1&&(this.rD=S1);var RK=A.ypc_item_title;RK&&(this.Kf=RK);var Zn=A.ypc_item_url;Zn&&(this.n1=Zn);var nv=A.ypc_vid;nv&&(this.B0=nv);A.ypc_overlay_timeout&&(this.O1= Number(A.ypc_overlay_timeout));var cg=A.ypc_trailer_player_vars;cg&&(this.WC=I0(cg));var M4=A.ypc_original_itct;M4&&(this.U3=M4);this.JO=NE(this.JO,A.ucid);this.r$=A.storyboard_spec||null;this.TK=A.live_storyboard_spec||null;this.x$=A.iv_endscreen_url||null;this.qw=Sw(this.qw,A.iv3_module);this.kS=Sw(this.kS,A.ypc_module);this.b8=Sw(this.b8,A.ypc_clickwrap_module);this.kS&&this.p9.push("ypc");this.b8&&this.p9.push("ypcRentalActivation");this.P0={video_id:A.video_id,eventid:A.eventid,cbrand:A.cbrand, cbr:A.cbr,cbrver:A.cbrver,c:A.c,cver:A.cver,ctheme:A.ctheme,cplayer:A.cplayer,cmodel:A.cmodel,cnetwork:A.cnetwork,cos:A.cos,cosver:A.cosver,cplatform:A.cplatform,user_age:A.user_age,user_display_image:A.user_display_image,user_display_name:A.user_display_name,user_gender:A.user_gender,csi_page_type:A.csi_page_type,csi_service_name:A.csi_service_name,enablecsi:A.enablecsi,enabled_engage_types:A.enabled_engage_types};EYS(this,A);var Nh=A.cotn;Nh&&(this.cotn=Nh);fyE(this)?sr(this)&&(this.isLivePlayback&& this.sZ&&(this.TZ=!0),this.xf&&(this.Gt=!0)):KWE(this)?this.TZ=!0:B3L(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&ta(this):this.sZ&&(this.tF.Wn==="yt"&&this.iC()&&this.J("drm_manifestless_unplugged")&&this.J("html5_deprecate_manifestful_fallback")?this.Hn("deprecateMflFallback",{}):this.TZ=!0);var td=A.adpings;td&&(this.w$=td?I0(td):null);var kb=A.feature;kb&&(this.Sw=kb);var Fs=A.referrer;Fs&&(this.referrer=Fs);this.clientScreenNonce=NE(this.clientScreenNonce,A.csn);this.hG= ZG(this.hG,A.root_ve_type);this.IV=ZG(this.IV,A.kids_age_up_mode);this.sx||A.kids_app_info==void 0||(this.kidsAppInfo=A.kids_app_info);this.sx&&A.kids_app_info!=null&&(this.kidsAppInfo=A.kids_app_info);this.gp=Sw(this.gp,A.upg_content_filter_mode);this.unpluggedFilterModeType=ZG(this.unpluggedFilterModeType,A.unplugged_filter_mode_type);var Dn=A.unplugged_location_info;Dn&&(this.Uv=Dn);var di=A.unplugged_partner_opt_out;di&&(this.Xp=NE("",di));this.gy=Sw(this.gy,A.disable_watch_next);this.Mb=NE(this.Mb, A.internal_ip_override);this.ke=!!A.is_yto_interstitial;this.interstitials.length&&this.p9.push("playableSequences");var IK=A.LX;IK&&(this.LX=IK);this.yj=NE(this.yj,A.csi_timer);A.watchUrl&&(this.watchUrl=A.watchUrl);var sz=A.watch_endpoint;this.J("html5_attach_watch_endpoint_ustreamer_config")&&sz&&kAy(this,sz);if(sz==null?0:sz.ustreamerConfig)this.xC=$i(sz.ustreamerConfig);var zV,Tw,lH=sz==null?void 0:(zV=sz.loggingContext)==null?void 0:(Tw=zV.qoeLoggingContext)==null?void 0:Tw.serializedContextData; lH&&(this.Zt=lH);g.MM(this.tF)&&this.tF.iF&&(this.embedsRct=NE(this.embedsRct,A.rct),this.embedsRctn=NE(this.embedsRctn,A.rctn));A.embed_config&&(this.e8=A.embed_config);this.Bk=this.Bk||!!A.pause_at_start;A.default_active_source_video_id&&(this.defaultActiveSourceVideoId=A.default_active_source_video_id);this.GZ=this.GZ||!!A.live_preload}; g.p.K=function(){return this.tF}; g.p.J=function(A){return this.tF.J(A)}; g.p.Kw=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.p.hasSupportedAudio51Tracks=function(){var A;return!((A=this.cn)==null||!A.ql)}; g.p.getUserAudio51Preference=function(){var A=1;Ro(this.tF)&&this.J("html5_ytv_surround_toggle_default_off")?A=0:V3(this.tF)&&this.isLivePlayback&&this.U6()&&(A=0);var L;return(L=g.ES("yt-player-audio51"))!=null?L:A}; g.p.KT=function(){this.TL()||(this.N.W||this.N.unsubscribe("refresh",this.KT,this),this.xO(-1))}; g.p.xO=function(A){if(!this.isLivePlayback||!this.D||this.D.flavor!=="fairplay"){var L=i$v(this.N,this.V8);if(L.length>0){for(var B=g.m(L),f=B.next();!f.done;f=B.next())f=f.value,f.startSecs=Math.max(f.startSecs,this.vy()),this.J("html5_cuepoint_identifier_logging")&&f.event==="start"&&this.Hn("cuepoint",{pubCue:f.identifier,segNum:A});this.publish("cuepointupdated",L,A);this.V8+=L.length;if(ta(this)&&this.tF.hw())for(L=g.m(L),B=L.next();!B.done;B=L.next())B=B.value,this.Hn("cuepoint",{segNum:A,event:B.event, startSecs:B.startSecs,id:B.identifier.slice(-16)}),B.event==="start"&&(B=B.startSecs,this.iD.start=this.jI,this.iD.end=B+3)}}}; g.p.C_=function(){this.TL()||(this.loading=!1,this.publish("dataloaded"))}; g.p.U6=function(){return this.R_!==void 0?this.R_:this.R_=!!this.Zj||!!this.N&&PZ(this.N)}; g.p.Ij=function(A){var L=this;if(this.TL())return Xa();this.Nl=this.wT=this.V=null;Rh(this,"html5_high_res_logging_always")&&(this.tF.Ry=!0);return SMv(this,A).then(void 0,function(){return ZS8(L,A)}).then(void 0,function(){return N30(L)}).then(void 0,function(){return DFL(L)})}; g.p.zc=function(A){this.V=A;RpE(this,this.V.getAvailableAudioTracks());if(this.V){A=g.m(this.V.videoInfos);for(var L=A.next();!L.done;L=A.next()){L=L.value;var B=L.containerType;B!==0&&(this.rg[B]=L.id)}}A=this.getAvailableAudioTracks();A=A.concat(this.Ry);for(L=0;L0)return this.V.getAvailableAudioTracks();if(this.nD)return this.nD;if(this.fu)return this.fu}return[]}; g.p.getAudioTrack=function(){var A=this;if(this.U&&!WV(this.U)){var L=g.Pw(this.getAvailableAudioTracks(),function(K){return K.id===A.U.id}),B; if(!L&&((B=this.U.ri)==null?0:B.id)){var f=this.U.ri.id;L=g.Pw(this.getAvailableAudioTracks(),function(K){return K.ri.id===f}); this.Hn("nat",{id:this.U.id,track:!!L})}return L||this.Ry}if(this.nD){if(!this.ye)for(L=g.m(this.nD),B=L.next();!B.done;B=L.next())if(B=B.value,B.ri.getIsDefault()){this.ye=B;break}return this.ye||this.Ry}return this.Ry}; g.p.getPlayerResponse=function(){return this.playerResponse}; g.p.getWatchNextResponse=function(){return this.Vj}; g.p.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.p.getHeartbeatResponse=function(){return this.hq}; g.p.Ej=function(){return this.watchUrl?this.watchUrl:this.tF.getVideoUrl(this.videoId)}; g.p.QE=function(){return!!this.N&&(H$k(this.N)||ho8(this.N)||b$0(this.N))}; g.p.getEmbeddedPlayerResponse=function(){return this.Yu}; g.p.zt=function(){return(this.eventLabel||this.tF.Vj)==="shortspage"}; g.p.isAd=function(){return this.UO||!!this.adFormat}; g.p.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.p.aA=function(){var A,L,B;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((A=this.playerResponse)==null?0:(L=A.playerConfig)==null?0:(B=L.daiConfig)==null?0:B.ssaEnabledPlayback)}; g.p.Fl=function(){return this.Q0}; g.p.LK=function(){return this.kS||this.a8}; g.p.Os=function(){return Rh(this,"html5_samsung_vp9_live")}; g.p.Hn=function(A,L,B){this.publish("ctmp",A,L,B)}; g.p.SV=function(A,L,B){this.publish("ctmpstr",A,L,B)}; g.p.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.p.getGetAdBreakContext=function(A,L){A=A===void 0?NaN:A;L=L===void 0?NaN:L;var B={isSabr:iS(this)},f,K=(f=this.getHeartbeatResponse())==null?void 0:f.adBreakHeartbeatParams;K&&(B.adBreakHeartbeatParams=K);if(this.J("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.N&&!isNaN(A)&&!isNaN(L)){L=A-L;for(var V in this.N.N)if(f=this.N.N[V],f.info.WV()||f.info.NF())if(f=f.index,f.isLoaded()){V=f.NV(L);f=f.wX(V)+L-f.getStartTime(V);this.Hn("gabc",{t:A.toFixed(3),mt:L.toFixed(3),sg:V,igt:f.toFixed(3)}); B.livePlaybackPosition={utcTimeMillis:""+(f*1E3).toFixed(0)};break}}return B}; g.p.isEmbedsShortsMode=function(A,L){if(!g.MM(this.tF)||(this.tF.wT||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||L)return!1;if(this.J("embeds_enable_shorts")){var B,f;return!!((B=this.embeddedPlayerConfig)==null?0:(f=B.embeddedPlayerFlags)==null?0:f.isShortsExperienceEligible)}var K,V;return!!(((K=this.embeddedPlayerConfig)==null?0:(V=K.embeddedPlayerFlags)==null?0:V.isShortsExperienceEligible)&&A.width<=A.height)}; g.p.gS=function(A,L){L?this.G3||(this.G3=A):this.oz||(this.oz=A)}; g.p.l1=function(){g.SN.prototype.l1.call(this);this.w$=null;delete this.Y2;delete this.accountLinkingConfig;delete this.N;this.V=this.hq=this.playerResponse=this.Vj=null;this.Nh=this.adaptiveFormats="";delete this.botguardData;this.JF=this.suggestions=this.M7=null;this.sabrContextUpdates.clear()}; var ucO=!0;var P4Q={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},xFL={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},vh8={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},MMy={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"},UFk={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},YML={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"},qMQ={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.G(Ih,g.Y);g.p=Ih.prototype;g.p.handleExternalCall=function(A,L,B){var f=this.state.T[A],K=this.state.X[A],V=f;if(K)if(B&&cR(B,wkf))V=K;else if(!f)throw Error('API call from an untrusted origin: "'+B+'"');this.logApiCall(A,B);if(V){a:{B=g.m(L);for(f=B.next();!f.done;f=B.next())if(String(f.value).includes("javascript:")){B=!0;break a}B=!1}B&&g.CE(Error('Dangerous call to "'+A+'" with ['+L+"]."));return V.apply(this,L)}throw Error('Unknown API method: "'+A+'".');}; g.p.logApiCall=function(A,L,B){var f=this.app.K();f.JV&&!this.state.yj.has(A)&&(this.state.yj.add(A),g.pE("webPlayerApiCalled",{callerUrl:f.loaderUrl,methodName:A,origin:L||void 0,playerStyle:f.playerStyle||void 0,embeddedPlayerMode:f.wT,errorCode:B}))}; g.p.publish=function(A){var L=g.pf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[A].concat(g.x7(L)));if(A==="videodatachange"||A==="resize"||A==="cardstatechange")this.state.W.publish.apply(this.state.W,[A].concat(g.x7(L))),this.state.U.publish.apply(this.state.U,[A].concat(g.x7(L)))}; g.p.Kr=function(A){var L=g.pf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[A].concat(g.x7(L)));this.state.W.publish.apply(this.state.W,[A].concat(g.x7(L)))}; g.p.Wo=function(A){var L=g.pf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[A].concat(g.x7(L)));this.state.W.publish.apply(this.state.W,[A].concat(g.x7(L)));this.state.U.publish.apply(this.state.U,[A].concat(g.x7(L)))}; g.p.X3=function(A){var L=g.pf.apply(1,arguments);this.state.V.publish.apply(this.state.V,[A].concat(g.x7(L)));this.state.W.publish.apply(this.state.W,[A].concat(g.x7(L)));this.state.U.publish.apply(this.state.U,[A].concat(g.x7(L)));this.state.D.publish.apply(this.state.D,[A].concat(g.x7(L)))}; g.p.J=function(A){return this.app.K().J(A)}; g.p.l1=function(){if(this.state.element){var A=this.state.element,L;for(L in this.state.N)this.state.N.hasOwnProperty(L)&&(A[L]=null);this.state.element=null}g.Y.prototype.l1.call(this)};g.G(gh,g.TF);gh.prototype.publish=function(A){var L=g.pf.apply(1,arguments);if(this.D.has(A))return this.D.get(A).push(L),!0;var B=!1;try{for(L=[L],this.D.set(A,L);L.length;)B=g.TF.prototype.publish.call.apply(g.TF.prototype.publish,[this,A].concat(g.x7(L.shift())))}finally{this.D.delete(A)}return B};g.G(Gg,g.Y);Gg.prototype.l1=function(){this.D.dispose();this.U.dispose();this.W.dispose();this.V.dispose();this.yj=this.N=this.X=this.T=this.G=void 0};var L6Q=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.G(sU,Ih);g.p=sU.prototype;g.p.getApiInterface=function(){return Array.from(this.state.G)}; g.p.tX=function(A,L){this.state.D.subscribe(A,L)}; g.p.Q04=function(A,L){this.state.D.unsubscribe(A,L)}; g.p.getPlayerState=function(A){return wx6(this.app,A)}; g.p.gz=function(){return wx6(this.app)}; g.p.Va1=function(A,L,B){bz(this)&&($y(this.app,!0,1),Ep(this.app,A,L,B,1))}; g.p.getCurrentTime=function(A,L,B){var f=this.getPlayerState(A);if(this.app.getAppState()===2&&f===5){var K;return((K=this.app.getVideoData())==null?void 0:K.startSeconds)||0}return this.J("web_player_max_seekable_on_ended")&&f===0?Tj(this.app,A):A?this.app.getCurrentTime(A,L,B):this.app.getCurrentTime(A)}; g.p.wz=function(){return this.app.getCurrentTime(1)}; g.p.Tu=function(){var A=this.app.wX(1);return isNaN(A)?this.getCurrentTime(1):A}; g.p.RY=function(){return this.app.getDuration(1)}; g.p.CH=function(A,L){A=g.B4(Math.floor(A),0,100);isFinite(A)&&tZ(this.app,{volume:A,muted:this.isMuted()},L)}; g.p.ggM=function(A){this.CH(A,!1)}; g.p.Km=function(A){tZ(this.app,{muted:!0,volume:this.getVolume()},A)}; g.p.svs=function(){this.Km(!1)}; g.p.VX=function(A){tZ(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},A)}; g.p.ZVF=function(){hj(this.app)||this.VX(!1)}; g.p.getPlayerMode=function(){var A={};this.app.getVideoData().OE&&(A.pfp={enableIma:this.app.df().allowImaMonetization,autoplay:aq(this.app.df()),mutedAutoplay:this.app.df().mutedAutoplay});return A}; g.p.N1=function(){var A=this.app.getPresentingPlayerType();if(A===2&&!this.app.yC()){var L=HB(this.app.SI());if(!(duL(L)||g.MM(this.app.K())&&g.x(this.app.e4().getPlayerState(),1024))||IM7(L))return}(L=this.app.mD().VN)?L.playVideo():this.app.playVideo(A)}; g.p.UFD=function(){$y(this.app,!0,1);this.N1()}; g.p.pauseVideo=function(A){var L=this.app.getPresentingPlayerType();if(L!==2||this.app.yC()||duL(HB(this.app.SI()))){var B=this.app.mD().VN;B?B.pauseVideo():this.app.pauseVideo(L,A)}}; g.p.ar1=function(){var A=this.app,L=!1;A.L.zV&&(A.rT.publish("pageTransition"),L=!0);A.stopVideo(L)}; g.p.clearVideo=function(){}; g.p.getAvailablePlaybackRates=function(){var A=this.app.K();if(A.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(A.U?A.ancestorOrigins[0]:window.location.origin)||A.Tg)return ewf;A=this.app.getVideoData();var L=A.e7,B=A.mM;return nWW.filter(function(f){return f>=L&&f<=B})}return[1]}; g.p.getPlaybackQuality=function(A){return(A=this.app.Jz(A))?A.getPlaybackQuality():"unknown"}; g.p.J1n=function(){}; g.p.getAvailableQualityLevels=function(A){return(A=this.app.Jz(A))?(A=g.mn(A.KO(),function(L){return L.quality}),A.length&&(A[0]==="auto"&&A.shift(),A=A.concat(["auto"])),A):[]}; g.p.Vo=function(){return this.getAvailableQualityLevels(1)}; g.p.fv=function(){return this.jn()}; g.p.Cv=function(){return 1}; g.p.getVideoLoadedFraction=function(A){return this.app.getVideoLoadedFraction(A)}; g.p.jn=function(){return this.getVideoLoadedFraction()}; g.p.eq=function(){return 0}; g.p.getSize=function(){var A=this.app.Pn().getPlayerSize();return{width:A.width,height:A.height}}; g.p.setSize=function(){this.app.Pn().resize()}; g.p.loadVideoById=function(A,L,B,f){if(!A)return!1;A=rh(A,L,B);return this.app.loadVideoByPlayerVars(A,f)}; g.p.kVD=function(A,L,B){A=this.loadVideoById(A,L,B,1);$y(this.app,A,1)}; g.p.cueVideoById=function(A,L,B,f){A=rh(A,L,B);this.app.cueVideoByPlayerVars(A,f)}; g.p.P7=function(A,L,B){this.cueVideoById(A,L,B,1)}; g.p.loadVideoByUrl=function(A,L,B,f){A=A2y(A,L,B);return this.app.loadVideoByPlayerVars(A,f)}; g.p.bYT=function(A,L,B){A=this.loadVideoByUrl(A,L,B,1);$y(this.app,A,1)}; g.p.cueVideoByUrl=function(A,L,B,f){A=A2y(A,L,B);this.app.cueVideoByPlayerVars(A,f)}; g.p.N6=function(A,L,B){this.cueVideoByUrl(A,L,B,1)}; g.p.vJ=function(){var A=this.app.K();if(A.qp)return"";var L=this.app.df(),B=void 0;L.isLivePlayback||(B=Math.floor(this.app.getCurrentTime(1)));return A.getVideoUrl(L.videoId,this.getPlaylistId()||void 0,B)}; g.p.Mj=function(){return this.app.getDebugText()}; g.p.getVideoEmbedCode=function(){var A=this.app.K();if(A.qp)return"";var L=this.app.df();return A.getVideoEmbedCode(L.isPrivate?"":L.title,this.app.df().videoId,this.app.Pn().getPlayerSize(),this.getPlaylistId()||void 0)}; g.p.Vp=function(A,L,B){return GqQ(this.app,A,L,B)}; g.p.removeCueRange=function(A){return this.app.yx(A)}; g.p.loadPlaylist=function(A,L,B,f){this.app.loadPlaylist(A,L,B,f)}; g.p.IgM=function(A,L,B,f){this.loadPlaylist(A,L,B,f);$y(this.app,!0,1)}; g.p.cuePlaylist=function(A,L,B,f){this.app.cuePlaylist(A,L,B,f)}; g.p.nextVideo=function(A,L){this.app.nextVideo(A,L)}; g.p.xlF=function(){this.nextVideo();$y(this.app,!0,1)}; g.p.previousVideo=function(A){this.app.previousVideo(A)}; g.p.Y6s=function(){this.previousVideo();$y(this.app,!0,1)}; g.p.playVideoAt=function(A){this.app.playVideoAt(A)}; g.p.FCp=function(A){this.playVideoAt(A);$y(this.app,!0,1)}; g.p.setShuffle=function(A){var L=this.app.getPlaylist();L&&L.setShuffle(A)}; g.p.setLoop=function(A){var L=this.app.getPlaylist();L&&(L.loop=A)}; g.p.E8=function(){var A=this.app.getPlaylist();if(!A)return null;for(var L=[],B=0;B=400)if(A=this.df(),this.S.K().J("client_respect_autoplay_switch_button_renderer"))A=!!A.autoplaySwitchButtonRenderer;else{var L,B,f,K;A=!!((L=A.getWatchNextResponse())==null?0:(B=L.contents)==null?0:(f=B.twoColumnWatchNextResults)==null?0:(K=f.autoplay)==null?0:K.autoplay)!==!1}A?this.N||(this.N=!0,this.xP(this.N),L=this.df(),this.fB(L.autonavState),this.S.logVisibility(this.element,this.N)): (this.N=!1,this.xP(this.N))}; g.p.fB=function(A){MH6(this)?this.isChecked=A!==1:((A=A!==1)||(A=g.v9(),A=g.h_("web_autonav_allow_off_by_default")&&!A.Iv(141)&&g.A_("AUTONAV_OFF_BY_DEFAULT")?!1:!A.Iv(140)),this.isChecked=A);c2E(this)}; g.p.onClick=function(){this.isChecked=!this.isChecked;this.S.tW(this.isChecked?2:1);c2E(this);if(MH6(this)){var A=this.df().autoplaySwitchButtonRenderer;this.isChecked&&(A==null?0:A.onEnabledCommand)?this.S.Kr("innertubeCommand",A.onEnabledCommand):!this.isChecked&&(A==null?0:A.onDisabledCommand)&&this.S.Kr("innertubeCommand",A.onDisabledCommand)}this.S.logClick(this.element)}; g.p.getValue=function(){return this.isChecked}; g.p.df=function(){return this.S.getVideoData(1)};g.G(YOL,VC);g.G(Ch,Dq);Ch.prototype.zL=function(A){A?this.N||(this.Wz.ov(this),this.N=!0):this.N&&(this.Wz.Z1(this),this.N=!1);this.N&&dC(this,BYC())}; Ch.prototype.U=function(){g.NH(this.element,"ytp-menuitem-highlight-transition-enabled")}; Ch.prototype.V=function(A){var L=BYC();A!==L&&(L=g.v9(),P9(190,A),P9(192,!0),L.save(),this.S.Kr("cinematicSettingsToggleChange",A))}; Ch.prototype.l1=function(){this.N&&this.Wz.Z1(this);Dq.prototype.l1.call(this)};g.G(ib,VC);ib.prototype.updateCinematicSettings=function(A){this.N=A;var L;(L=this.menuItem)==null||L.zL(A);this.api.publish("onCinematicSettingsVisibilityChange",A)};g.G(W6w,VC);g.G($5,VC);$5.prototype.setCreatorEndscreenVisibility=function(A){var L;(L=kS(this.api.SI()))==null||L.xP(A)}; $5.prototype.N=function(A){function L(f){f==="creatorendscreen"&&(f=kS(B.api.SI()))&&f.RyF(B.hideButton)} var B=this;this.hideButton=A;this.events.Y(this.api,"modulecreated",L);L("creatorendscreen")};g.G(qOC,VC);g.G(Xh,Dq);Xh.prototype.D=function(A){this.U(A?1:0)}; Xh.prototype.f8=function(){if(this.enableNewAudioSettingsMenu||this.V){var A=this.S.getPresentingPlayerType();A===2||A===3?this.N&&(this.N=!1,this.Wz.Z1(this)):(A=this.getDrcState(),A!==1?(A===0?(dC(this,this.W()===1),this.setEnabled(!0)):(dC(this,!1),this.setEnabled(!1)),this.N||(this.Wz.ov(this),this.N=!0)):this.N&&(this.Wz.Z1(this),this.N=!1))}else{A=this.hasDrcAudioTrack();var L=this.W()===1&&A;dC(this,L);this.setEnabled(A)}}; Xh.prototype.l1=function(){this.Wz.Z1(this);Dq.prototype.l1.call(this)}; Xh.prototype.T=function(){this.S.logClick(this.element)};g.G(Ot,VC);g.p=Ot.prototype;g.p.getDrcUserPreference=function(){return this.N}; g.p.setDrcUserPreference=function(A){this.api.Hn("drc_set",{pref:A});g.OS("yt-player-drc-pref",A,31536E3);A!==this.N&&(this.N=A,this.updateEnvironmentData(),this.JE()&&this.api.A8(),this.api.VF())}; g.p.updateEnvironmentData=function(){this.api.K().Pk=this.N===1}; g.p.JE=function(){var A,L,B=(A=this.api.getVideoData())==null?void 0:(L=A.V)==null?void 0:L.N;if(!B)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.J("mta_drc_mutual_exclusion_removal")){var f,K,V=(f=this.api.ZH())==null?void 0:(K=f.ri)==null?void 0:K.id;return K9(B,function(J){var R;return J.audio.N&&((R=J.ri)==null?void 0:R.id)===V})}return K9(B,function(J){var R; return((R=J.audio)==null?void 0:R.N)===!0})}; g.p.getDrcState=function(){return this.api.a_(3)};g.G(Et,VC);Et.prototype.onVideoDataChange=function(){var A=this,L=this.api.getVideoData();this.api.Jf("embargo",1);var B=L==null?void 0:L.Ym.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(B==null?0:B.length)?eUE(this,B.filter(function(f){return xy0(A,f)})):(L==null?0:L.cueRanges)&&eUE(this,L.cueRanges.filter(function(f){return xy0(A,f)}))}; Et.prototype.W=function(A){return A.embargo!==void 0}; Et.prototype.l1=function(){VC.prototype.l1.call(this);this.N={}};g.G(co,VC); co.prototype.addEmbedsConversionTrackingParams=function(A){var L=this.api.K(),B=L.widgetReferrer,f=L.O_,K=this.N,V="",J=L.getWebPlayerContextConfig();J&&(V=J.embedsIframeOriginParam||"");B.length>0&&(A.embeds_widget_referrer=B);f.length>0&&(A.embeds_referring_euri=f);L.U&&V.length>0&&(A.embeds_referring_origin=V);J&&J.embedsFeature&&(A.feature=J.embedsFeature);K.length>0&&(L.J("embeds_web_enable_lite_experiment_control_arm_logging")?K.unshift(28572):g.IX(g.nM(L))&&K.unshift(159628),L=K.join(","),L= g.ng()?L:g.Uz(L,4),A.source_ve_path=L);this.N.length=0};g.G(nQD,VC);g.G(zUk,VC);g.G(M5,g.Y);M5.prototype.l1=function(){g.Y.prototype.l1.call(this);this.N=null;this.W&&this.W.disconnect()};g.G(aDE,VC);g.G(Y5,VC);Y5.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.G(Ut,g.q);Ut.prototype.show=function(){g.q.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Ut.prototype.stopTimer=function(){this.N&&(this.N.dispose(),this.N=null)}; Ut.prototype.onVideoDataChange=function(A){var L,B,f=(L=this.api.getVideoData())==null?void 0:(B=L.getPlayerResponse())==null?void 0:B.playabilityStatus;f&&(L=AIQ(f),g.x(this.api.getPlayerStateObject(),128)||A==="dataloaderror"||!L?(this.W=0,this.stopTimer(),this.hide()):(A=(L.remainingTimeSecs||0)*1E3,A>0&&(this.show(),this.updateValue("label",J2(L.label)),oKC(this,A))))}; Ut.prototype.l1=function(){this.stopTimer();g.q.prototype.l1.call(this)};g.G(BDe,VC);g.G(Wo,g.q);Wo.prototype.onClick=function(){this.rT.logClick(this.element);this.rT.Kr("onFullerscreenEduClicked")}; Wo.prototype.zL=function(){this.rT.isFullscreen()?this.N?this.fade.hide():this.fade.show():this.hide();this.rT.logVisibility(this.element,this.rT.isFullscreen()&&!this.N)};g.G(vo,VC);vo.prototype.updateFullerscreenEduButtonSubtleModeState=function(A){var L;(L=this.N)!=null&&(g.D1(L.element,"ytp-fullerscreen-edu-button-subtle",A),A&&!L.W&&(L.rT.J("player_tooltip_data_title_killswitch")?L.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"):L.element.setAttribute("data-tooltip-title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),Cm(L.rT,L.element,L),L.W=!0))}; vo.prototype.updateFullerscreenEduButtonVisibility=function(A){var L;(L=this.N)!=null&&(L.N=A,L.zL())};g.G(fcw,g.q);g.G(JI8,VC);g.G(q5,VC);q5.prototype.getSphericalProperties=function(){var A=g.Yn(this.api.SI());return A?A.getSphericalProperties():{}}; q5.prototype.setSphericalProperties=function(A){if(A){var L=g.Yn(this.api.SI());L&&L.setSphericalProperties(A,!0)}};g.G(Po,VC);g.p=Po.prototype;g.p.createClientVe=function(A,L,B,f){this.api.createClientVe(A,L,B,f===void 0?!1:f)}; g.p.createServerVe=function(A,L,B){this.api.createServerVe(A,L,B===void 0?!1:B)}; g.p.setTrackingParams=function(A,L){this.api.setTrackingParams(A,L)}; g.p.logClick=function(A,L){this.api.logClick(A,L)}; g.p.logVisibility=function(A,L,B){this.api.logVisibility(A,L,B)}; g.p.hasVe=function(A){return this.api.hasVe(A)}; g.p.destroyVe=function(A){this.api.destroyVe(A)};var RgE=!1;e3.prototype.setPlaybackRate=function(A){this.playbackRate=Math.max(1,A)}; e3.prototype.getPlaybackRate=function(){return this.playbackRate};o5.prototype.kU=function(A){var L=g.vV(A.info.b1.info,this.gT.iC),B=A.info.XD+this.U,f=A.info.startTime*1E3;if(this.policy.cn)try{f=this.policy.cn?g.k6(A)*1E3:A.info.startTime*1E3}catch(J){Math.random()>.99&&this.logger&&(f=yD(A.W).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:A.info.Dx(),encodedDataView:g.Y$(f,4)})),f=A.info.startTime*1E3}var K=A.info.clipId,V=this.policy.cn?g.Z$1(A)*1E3:A.info.duration*1E3;this.policy.cn&&(f<0||V<0)&&(this.logger&&(this.logger({missingSegInfo:A.info.Dx(), startTimeMs:f,durationMs:V}),this.policy.Xp||(f<0&&(f=A.info.startTime*1E3),V<0&&(V=A.info.duration*1E3))),this.policy.Xp&&(f<0&&(f=A.info.startTime*1E3),V<0&&(V=A.info.duration*1E3)));return{formatId:L,XD:B,startTimeMs:f,clipId:K,wv:V}}; o5.prototype.j8=function(A){this.timestampOffset=A};BO.prototype.seek=function(A,L){A!==this.targetTime&&(this.seekCount=0);this.targetTime=A;var B=this.videoTrack.N,f=this.audioTrack.N,K=this.audioTrack.uC,V=bqE(this,this.videoTrack,A,this.videoTrack.uC,L);L=bqE(this,this.audioTrack,this.policy.mH?A:V,K,L);A=Math.max(A,V,L);this.U=!0;this.gT.isManifestless&&(G5k(this,this.videoTrack,B),G5k(this,this.audioTrack,f));return A}; BO.prototype.isSeeking=function(){return this.U}; BO.prototype.kz=function(A){this.W=A}; var hgv=2/24;var TDS=0;var dM;I5.prototype.add=function(A){if(this.pos+20>this.data.length){var L=new Uint8Array(this.data.length*2);L.set(this.data);this.data=L}for(;A>31;)this.data[this.pos++]=dM[(A&31)+32],A>>=5;this.data[this.pos++]=dM[A|0]}; I5.prototype.PV=function(){return g.sX(this.data.subarray(0,this.pos))}; I5.prototype.reset=function(){this.pos=0};g.p=ya.prototype;g.p.U5=function(){this.yj=this.now();Qsv(this.Ml,this.yj);this.xs.U5()}; g.p.gK=function(A,L){var B=this.policy.W?(0,g.bc)():0;jb(this,A,L);A-this.T<10&&this.W>0||this.JI(A,L);this.xs.gK(A,L);this.policy.W&&(A=(0,g.bc)()-B,this.Uv+=A,this.Nl=Math.max(A,this.Nl))}; g.p.JI=function(A,L){var B=(A-this.T)/1E3,f=L-this.V;this.lf||(I0E(this.Ml,B,f),this.YD(B,f));this.T=A;this.V=L}; g.p.ZZ=function(){this.ZM&&mjw(this);this.xs.ZZ()}; g.p.Xt=function(A){this.ZM||(this.ZM=this.D-this.KY+A,this.Pz=this.D,this.N8=this.X)}; g.p.Ja=function(A,L){A=A===void 0?this.X:A;L=L===void 0?this.D:L;this.W>0||(this.G=A,this.W=L,this.Wn=this.isActive=!0)}; g.p.h5=function(){return this.So||2}; g.p.LP=function(){}; g.p.Rg=function(){var A,L={rn:this.requestNumber,rt:(this.X-this.N).toFixed(),lb:this.D,stall:(1E3*this.U).toFixed(),ht:(this.yj-this.N).toFixed(),elt:(this.G-this.N).toFixed(),elb:this.W,d:(A=this.wT)==null?void 0:A.PV()};this.url&&S98(L,this.url);this.policy.W&&(L.mph=this.Nl.toFixed(),L.tph=this.Uv.toFixed());L.ulb=this.JF;L.ult=this.qp;return L}; g.p.now=function(){return(0,g.bc)()}; g.p.deactivate=function(){this.isActive&&(this.isActive=!1)};g.G(GC,ya);g.p=GC.prototype;g.p.Rg=function(){var A=ya.prototype.Rg.call(this);A.pb=this.bb;A.pt=(1E3*this.zV).toFixed();A.se=this.t$;return A}; g.p.mW=function(){var A=this.xs;this.sx||(this.sx=A.mW?A.mW():1);return this.sx}; g.p.PM=function(){return this.HB?this.mW()!==1:!1}; g.p.aT=function(A,L,B){if(!this.jI){this.jI=!0;if(!this.lf){jb(this,A,L);this.JI(A,L);var f=this.mW();this.t$=B;if(!this.lf)if(f===2){f=A-this.G0)||sV(this,f,L),this.W>0&&xo(this.Ml,L,this.U));A=(A-this.N)/ 1E3||.01;this.policy.G&&!(this.W>0)||Pd(this.Ml,A,this.V,iqw(this),this.xm)}this.deactivate()}}; g.p.le=function(A,L,B){B&&(this.sx=2);A<0&&this.So&&(A=this.So);L?this.Cr+=A:this.Ex+=A}; g.p.h5=function(){return this.Ex||this.Cr||ya.prototype.h5.call(this)}; g.p.JI=function(A,L){var B=(A-this.T)/1E3,f=L-this.V,K=this.mW();this.isActive?K===1&&((f>0||this.policy.D)&&(B>.2||f<1024)?(this.U+=B,f>0&&B>.2&&sV(this,this.qz?B:.05,f),this.ql=!0):f>0&&(sV(this,B,f),this.ql=!0)):L&&L>=this.policy.N&&this.Ja(A,L);ya.prototype.JI.call(this,A,L)}; g.p.Lm=function(A){if(!this.lf){jb(this,A,this.D);var L=(A-this.N)/1E3;this.mW()!==2&&this.W>0&&(this.U+=(A-this.T)/1E3,xo(this.Ml,this.V,this.U));Pd(this.Ml,L,this.V,iqw(this),this.xm,!0);A=(A-this.T)/1E3;I0E(this.Ml,A,0);this.YD(A,0)}}; g.p.Ja=function(A,L){A=A===void 0?this.X:A;L=L===void 0?this.D:L;if(!(this.W>0)&&(ya.prototype.Ja.call(this,A,L),this.mW()===1)){L=(this.yj-this.N)/1E3;var B=(A-this.yj)/1E3;this.HB&&HO(this,this.now());this.mH||this.lf||(this.So&&(B=Math.max(0,B-this.So)),A=this.Ml,A.G.eg(1,L),A.wT.eg(1,B))}}; g.p.ZB=function(){this.HB&&HO(this,this.now());return this.Ys}; g.p.nZ=function(){var A;if(A=this.V>this.Kg)A=(A=this.V)?A>=this.policy.N:!1;return A}; g.p.Qm=function(){return this.cn}; g.p.i9=function(A){A=A===void 0?this.now():A;if(this.HB){HO(this,A);if(this.sx?this.PM():this.Vj!==this.S4){var L=this.S4;if(A0?B+A:B+Math.max(A,L)}; g.p.ix=function(){return this.now()-this.G}; g.p.vr=function(){return(this.V-this.W)*1E3/this.ix()||0}; g.p.Me=function(){return this.G};hi.prototype.feed=function(A){DF(this.N,A);this.yG()}; hi.prototype.yG=function(){if(this.U){if(!this.N.totalLength)return;var A=this.N.split(this.V-this.W),L=A.NJ;A=A.Mz;if(!this.xs.Xt(this.U,L,this.W,this.V))return;this.W+=L.totalLength;this.N=A;this.W===this.V&&(this.U=this.V=this.W=void 0)}for(;;){var B=0;A=g.m(EK0(this.N,B));L=A.next().value;B=A.next().value;B=g.m(EK0(this.N,B));A=B.next().value;B=B.next().value;if(L<0||A<0)break;if(!(B+A<=this.N.totalLength)){if(!(this.xs.Xt&&B+1<=this.N.totalLength))break;B=this.N.split(B).Mz;this.xs.Xt(L,B,0, A)&&(this.U=L,this.W=B.totalLength,this.V=A,this.N=new FK([]));break}A=this.N.split(B).Mz.split(A);B=A.Mz;this.xs.p_(L,A.NJ);this.N=B}}; hi.prototype.dispose=function(){this.N=new FK};g.p=b$.prototype;g.p.TU=function(){return 0}; g.p.Ns=function(){return null}; g.p.y0=function(){return null}; g.p.Er=function(){return this.state>=1}; g.p.isComplete=function(){return this.state>=3}; g.p.LQ=function(){return this.state===5}; g.p.onStateChange=function(){}; g.p.Y6=function(A){var L=this.state;this.state=A;this.onStateChange(L);this.callback&&this.callback(this,L)}; g.p.z2=function(A){A&&this.state=this.xhr.HEADERS_RECEIVED}; g.p.getResponseHeader=function(A){try{return this.xhr.getResponseHeader(A)}catch(L){return""}}; g.p.cN=function(){return+this.getResponseHeader("content-length")}; g.p.Q4=function(){return this.W}; g.p.Yv=function(){return this.status>=200&&this.status<300&&!!this.W}; g.p.Wg=function(){return this.N.totalLength>0}; g.p.KS=function(){var A=this.N;this.N=new FK;return A}; g.p.xK=function(){return this.N}; g.p.abort=function(){this.TL=!0;this.xhr.abort()}; g.p.v4=function(){return!0}; g.p.Wm=function(){return this.V}; g.p.SE=function(){return""};g.p=Y9v.prototype; g.p.run=function(){var A=this,L,B,f,K,V,J,R,Z,N,F,D,I,d,w,r;return g.c(function(h){if(h.N==1){A.status=200;L=A.N.get("docid");B=qw(A.N.get("fmtid")||"");f=A.N.get("lmt")||"0";K=+(A.N.get("csz")||0);if(!L||!B||!K)throw Error("Invalid local URL");A.N.get("ck")&&A.N.get("civ")&&(V=new Mz1(A.N.get("ck"),A.N.get("civ")));J=A.range;R=Math.floor(J.start/K);Z=Math.floor(J.end/K);N=R}if(h.N!=5)return N<=Z?g.X(h,bJe(L,B,f,N,V),5):h.Ux(0);F=h.W;if(F===void 0)throw Error("invariant: data is undefined");D=N*K; I=(N+1)*K;d=Math.max(0,J.start-D);w=Math.min(J.end+1,I)-(d+D);r=new Uint8Array(F.buffer,d,w);A.W.append(r);A.loaded+=w;A.loaded=200&&this.status<300&&!!this.W}; g.p.Wg=function(){return!!this.N.totalLength}; g.p.KS=function(){var A=this.N;this.N=new FK;return A}; g.p.xK=function(){return this.N}; g.p.TL=function(){return this.aborted}; g.p.abort=function(){this.V&&this.V.cancel().catch(function(){}); this.U&&this.U.abort();this.aborted=!0}; g.p.v4=function(){return!0}; g.p.Wm=function(){return this.D}; g.p.SE=function(){return this.errorMessage};g.p=vK8.prototype;g.p.onDone=function(){if(!this.TL){this.status=this.xhr.status;try{this.response=this.xhr.response,this.W=this.response.byteLength}catch(A){}this.N=!0;this.xs.ZZ()}}; g.p.xQ=function(){this.xhr.readyState===2&&this.xs.U5()}; g.p.onProgress=function(A){this.TL||(this.status=this.xhr.status,this.N||(this.W=A.loaded),this.xs.gK((0,g.bc)(),A.loaded))}; g.p.R5=function(){return this.xhr.readyState>=2}; g.p.getResponseHeader=function(A){try{return this.xhr.getResponseHeader(A)}catch(L){return g.CE(Error("Could not read XHR header "+A)),""}}; g.p.cN=function(){return+this.getResponseHeader("content-length")}; g.p.Q4=function(){return this.W}; g.p.Yv=function(){return this.status>=200&&this.status<300&&this.N&&!!this.W}; g.p.Wg=function(){return this.N&&!!this.response&&!!this.response.byteLength}; g.p.KS=function(){var A=this.response;this.response=void 0;return new FK([new Uint8Array(A)])}; g.p.xK=function(){return new FK([new Uint8Array(this.response)])}; g.p.abort=function(){this.TL=!0;this.xhr.abort()}; g.p.v4=function(){return!1}; g.p.Wm=function(){return!1}; g.p.SE=function(){return""};g.G(TC,g.Y);TC.prototype.Ud=function(){if(!this.E_.length)return[];var A=this.E_;this.E_=[];this.V=g.vw(A).info;return A}; TC.prototype.Bc=function(){return this.E_}; TC.prototype.l1=function(){g.Y.prototype.l1.call(this);this.N=null;this.E_.length=0;this.Lr.length=0;this.V=null};g.G(m4,g.Y);g.p=m4.prototype; g.p.oyD=function(){if(!this.TL()){var A=(0,g.bc)(),L=!1;if(this.policy.O_){var B=this.timing.W>0?this.timing.G:this.timing.N;this.policy.VH&&this.V&&(B=this.V);A=A-B-(this.policy.zK?this.policy.SH:this.timing.h5()*1E3);B=U9(Qa(this),!1);A>=2E3*B?L=!0:A>=this.policy.mL*B&&(this.N=this.policy.JA)}else if(this.timing.W>0){if(this.T){this.policy.N8&&(this.N=0);return}A=this.timing.Qm();this.timing.i9();this.timing.Qm()-A>=this.policy.Ry*.8?(this.N++,L=this.N>=5):this.N=0}else L=A-this.timing.ZB(),this.policy.JA&& L>0&&(this.N+=1),A=U9(Qa(this),!1)*this.policy.hN,L=L>A*1E3;this.N>0&&this.xs.ZK();L?this.oG():this.W.start()}}; g.p.oG=function(){this.D=!0;this.xs.zv();this.lastError="net.timeout";i$(this)}; g.p.canRetry=function(A){var L=Qa(this);A=A?this.policy.u4:this.policy.e6;return L.timedOut0&&(L=jU(L.N,0),A.ubyte=L,B===1&&L===0&&(A.b248180278=!0))}this.zy&&(A.rc=this.policy.Ji?this.zy:this.zy.toString());this.policy.nD&&this.UJ&&(A.tr=this.UJ);A.itag=this.info.Lr[0].b1.info.itag;A.ml=""+ +this.info.Lr[0].b1.w1();A.sq=""+this.info.Lr[0].XD;this.Tq&&(A.ifi=""+ +Kw(3,this.info.wi.W));this.zy!==410&&this.zy!==500&&this.zy!==503||(A.fmt_unav="true");var f;(B=this.errorMessage||((f=this.xhr)==null? void 0:f.SE()))&&(A.msg=B);this.b4&&(A.smb="1");this.info.isDecorated()&&(A.sdai="1");return A}; g.p.OL=function(){return $j6(this.timing)}; g.p.SE=function(){return this.xhr.SE()||""}; g.p.nZ=function(){return this.isComplete()||this.timing.nZ()}; g.p.gK=function(){!this.TL()&&this.xhr&&(this.zy=this.xhr.status,this.policy.D$&&this.I0&&this.KX(!1),this.HA()?this.z2(2):!this.aI&&this.nZ()&&(this.z2(),this.aI=!0))}; g.p.U5=function(){if(!this.TL()&&this.xhr){if(!this.Gv&&this.xhr.R5()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var A=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Gv=((0,g.bc)()-A)/1E3}this.xhr.R5()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.cFn&&!pRw()&&g.OS("yt-player-headers-readable",!0,2592E3);A=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var L=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),B;(B=this.y_)==null||B.stop();this.Jj=A||this.Jj; this.Od=L||this.Od}}; g.p.ZZ=function(){var A=this.xhr;if(!this.TL()&&A){this.zy=A.status;A=this.St(A);if(this.policy.nD){var L;(L=this.y_)==null||L.stop()}A===5?i$(this.RA):this.Y6(A);this.RA.W.stop()}}; g.p.St=function(A){rLD(this);if($2(this.RA,this.xhr.status,this.cZ?this.timing.Wn||this.kV:this.xhr.Yv(),!1,this.EK))return 5;var L="";XT(this.RA,this.xhr)&&(L=nKC(this.RA,this.xhr));if(L)return YK(Qa(this.RA)),this.info.GM(this.Tq,L),3;L=A.Q4();if(this.S5){this.KX(!0);rLD(this);if($2(this.RA,this.xhr.status,this.timing.Wn||this.kV,!1,this.EK))return 5;if(!this.hn){if(this.kV)return YK(Qa(this.RA)),3;this.RA.lastError="net.closed";return 5}}else{if($2(this.RA,this.xhr.status,this.xhr.Yv(),!1,this.EK))return 5; var B=this.info.V;if(B&&B!==L||A.Wm())return this.RA.lastError="net.closed",5;this.KX(!0)}B=cIe(this)?A.getResponseHeader("X-Bandwidth-Est"):0;if(A=cIe(this)?A.getResponseHeader("X-Bandwidth-Est3"):0)this.JJ=!0,this.policy.xw&&(B=A);egS(this.RA,L,B?Number(B):0,this.info.Lr[0].type===5);return 4}; g.p.canRetry=function(){this.TL();var A=this.info.isDecorated();return this.RA.canRetry(A)}; g.p.onStateChange=function(){this.isComplete()&&(this.policy.V8?this.zv():this.timing.deactivate())}; g.p.oG=function(){this.RA.oG()}; g.p.ZK=function(){this.callback&&this.callback(this,this.state)}; g.p.K5=function(){return this.RA.K5()}; g.p.dispose=function(){b$.prototype.dispose.call(this);this.RA.dispose();var A;(A=this.y_)==null||A.dispose();this.policy.V8||this.zv()}; g.p.zv=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.p.Ud=function(){if(!this.Bc().length)return[];this.T6=!0;return this.I0.Ud()}; g.p.HA=function(){if(this.state<1)return!1;if(this.I0&&this.I0.E_.length)return!0;var A;return((A=this.xhr)==null?0:A.Wg())?!0:!1}; g.p.Bc=function(){this.KX(!1);return this.I0?this.I0.Bc():[]}; g.p.KX=function(A){try{if(A||this.xhr.R5()&&this.xhr.Wg()&&!XT(this.RA,this.xhr)&&!this.QZ)this.I0||(this.I0=new TC(this.policy,this.info.Lr)),this.xhr.Wg()&&(this.S5?this.S5.feed(this.xhr.KS()):l$(this.I0,this.xhr.KS(),A&&!this.xhr.Wg()))}catch(L){this.S5?g6E(this,L):g.CE(L)}}; g.p.p_=function(A,L){switch(A){case 21:A=L.split(1).Mz;GW8(this,A);break;case 22:this.hn=!0;l$(this.I0,new FK([]),!0);break;case 43:if(A=Cz(new th(L),1))this.info.GM(this.Tq,A),this.kV=!0;break;case 45:L=bQ(new th(L));A=L.S3;L=L.v3;A&&L&&(this.tL=A/L);break;case 44:this.b_=LmQ(new th(L));var B,f,K;!this.timing.Wn&&((B=this.b_)==null?void 0:B.action)===4&&((f=this.b_)==null?0:(K=f.ZX)==null?0:K.cZ)&&(this.cZ=this.b_.ZX.cZ);break;case 53:this.policy.nD&&(A=ub1(new th(L)).hj)&&(this.y_||(this.hj=A,this.y_= new g.aa(this.VM,A,this)),this.y_.start());break;case 60:this.ZO=hT(new th(L));break;case 58:if(A=tNe(new th(L)))this.qn=A,A.qn===3&&(this.EK=!0)}}; g.p.Xt=function(A,L,B,f){B||this.timing.Xt(f);if(A!==21)return!1;if(A=this.policy.D$)if(A*=this.info.Lr[0].b1.info.lC,L.totalLength+B!==f&&L.totalLength0)return!1;if(!this.xhr.R5())return!0;if(this.S5)var A=!this.info.V;else this.xhr.cN()?A=!1:(A=this.xhr.getResponseHeader("content-type"),A=A==="audio/mp4"||A==="video/mp4"||A==="video/webm");if(!A)return!1;if(isNaN(this.info.FH)){A=this.xhr.getResponseHeader("x-head-seqnum");var L=this.timing.policy.X?1:0;if(A&&Number(A)>this.info.Lr[0].XD+L)return!1}return!0}; g.p.Pr=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.p.Ns=function(){this.xhr&&(this.Jj=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Jj}; g.p.y0=function(){this.xhr&&(this.Od=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Od}; g.p.p8=function(){return this.RA.p8()}; g.p.VM=function(){if(!this.TL()&&this.xhr){this.UJ="heartbeat";var A=this.RA;A.N+=2;this.ZK()}};g.G(vO,ya);g.p=vO.prototype;g.p.JI=function(A,L){var B=(A-this.T)/1E3,f=L-this.V;this.W>0?f>0&&(this.Vj&&(B>.2||f<1024?(this.U+=B,B>.2&&spE(this,.05,f)):spE(this,B,f)),this.S4&&(this.Ys+=f,this.Ex+=B)):L>this.policy.N&&this.Ja(A,L);ya.prototype.JI.call(this,A,L)}; g.p.aT=function(A,L){jb(this,A,L);this.JI(A,L);this.Vj&&(L=this.V*this.snapshot.stall+this.V/this.snapshot.byterate,this.W>0&&xo(this.Ml,this.Ys,this.U),A=(A-this.N)/1E3||.01,this.policy.G&&!(this.W>0)||Pd(this.Ml,A,this.V,L,!1))}; g.p.Lm=function(A){jb(this,A,this.D);var L=(A-this.T)/1E3;I0E(this.Ml,L,0);this.YD(L,0);!this.Vj&&this.W>0||(L=this.V*this.snapshot.stall+this.V/this.snapshot.byterate,this.W>0&&(this.U+=(A-this.T)/1E3,xo(this.Ml,this.Ys,this.U)),Pd(this.Ml,(A-this.N)/1E3||.01,this.V,L,!1,!0))}; g.p.aF=function(A){A=A.P6||2147483647;(A&2)!==2&&(this.S4=!1);(A&1)===1&&(this.Vj=!0)}; g.p.z5=function(A){A=A.P6||2147483647;(A&2)===2&&(this.S4=!1);(A&1)===1&&(this.Vj=!1)}; g.p.Me=function(){return this.G}; g.p.ix=function(){var A=this.S4?this.now()-this.T:0;return Math.max(this.Ex*1E3+A,1)}; g.p.vr=function(){return this.Ys*1E3/this.ix()}; g.p.Ja=function(A,L){A=A===void 0?this.X:A;L=L===void 0?this.D:L;this.W>0||(ya.prototype.Ja.call(this,A,L),L=this.Ml,A=(A-this.yj)/1E3,L.G.eg(1,(this.yj-this.N)/1E3),L.wT.eg(1,A))}; g.p.LP=function(A){this.Cr=A}; g.p.Rg=function(){var A=ya.prototype.Rg.call(this);A.rbw=this.vr();A.rbe=+this.S4;A.gbe=+this.Vj;A.ackt=(this.Cr-this.N).toFixed();return A}; g.p.i9=function(){}; g.p.Qm=function(){return NaN}; g.p.ZB=function(){return this.N+this.snapshot.delay*1E3};qI.prototype.p_=function(A,L){switch(A){case 20:A=new th(L);A={TB:lD(A,1),videoId:Cz(A,2),itag:lD(A,3),lmt:lD(A,4),xtags:Cz(A,5),Uo:lD(A,6),qE:mE(A,8),td:lD(A,9),O3F:lD(A,10),startMs:lD(A,11),durationMs:lD(A,12),a6:lD(A,14),timeRange:iD(A,15,Gv),Gb:lD(A,16),dG:lD(A,17),DI:lD(A,20),clipId:Cz(A,1E3)};this.MA(A);break;case 21:this.ZY(L,!1);break;case 22:this.s0(L);break;case 31:A=OX(L,W11);this.xs.UY(A);break;case 52:A=OX(L,aED);this.xs.bN(A);break;case 69:A={x5:XK(new th(L),1,XP1)};this.xs.TW(A);break; default:this.qA(A,L)}}; qI.prototype.MA=function(){}; qI.prototype.qA=function(){};var AFw=new Set([53,49,50]);g.G(PO,qI);g.p=PO.prototype;g.p.qA=function(A,L){Xpk(this.xs)&&!AFw.has(A)?this.N.push({id:A,data:L}):H30(this,A,L)}; g.p.QO=function(A){A=new th(A);A={db4:XK(A,1,gN),LGM:XK(A,2,gN)};this.xs.QO(A)}; g.p.Cy=function(A){var L=new th(A);A=$v(L,1);var B=$v(L,2);L=$v(L,3);this.xs.Cy(A,B,L)}; g.p.eJ=function(A){A=bQ(new th(A));this.xs.eJ(A)}; g.p.us=function(A){A=OX(A,PaL);this.xs.us(A)}; g.p.Vg=function(A){A=new th(A);A={videoId:Cz(A,1),formatId:iD(A,2,gN),endTimeMs:lD(A,3),mTr:lD(A,4),mimeType:Cz(A,5),IR:iD(A,6,O11),indexRange:iD(A,7,O11),UF:iD(A,8,Er1)};this.xs.Vg(A)}; g.p.UQ=function(A){A=new th(A);A={type:lD(A,1),scope:lD(A,2),value:QD(A,3),sendByDefault:mE(A,4),writePolicy:lD(A,5)};this.xs.UQ(A)}; g.p.hK=function(){this.xs.hK()}; g.p.xE=function(A){A=vrv(new th(A));this.xs.xE(A)}; g.p.z7=function(A){A=ub1(new th(A));this.xs.z7(A)}; g.p.x0=function(A){A=LmQ(new th(A));this.xs.x0(A)}; g.p.hZ=function(A){A={redirectUrl:Cz(new th(A),1)};this.xs.hZ(A)}; g.p.ZY=function(A){var L=jU(A,0);if(A.totalLength!==1){A=A.split(1).Mz;var B=this.W[L]||null;B&&A4(this.xs.K8,L,B,A)}}; g.p.s0=function(A){A=jU(A,0);var L=this.W[A]||null;L&&this.xs.s0(A,L)}; g.p.MA=function(A){var L=A.TB,B=A.qE,f=A.Uo,K=A.dG,V=A.Gb,J=A.td,R=A.startMs,Z=A.durationMs,N=A.timeRange,F=A.a6,D=A.DI,I=A.clipId,d=nq(A);A=mVt.has(Qu[""+A.itag]);this.W[L]=d;var w=-1;D&&(N==null?0:N.timescale)&&(w=D/N.timescale);this.xs.le(d,A,w,{TB:L,qE:!!B,Uo:f!=null?f:-1,td:J!=null?J:-1,startMs:R!=null?R:-1,durationMs:Z!=null?Z:-1,a6:F,dG:K,Gb:V,clipId:I,timeRange:N})}; g.p.aF=function(A){A={P6:lD(new th(A),1)};this.xs.aF(A)}; g.p.z5=function(A){A={P6:lD(new th(A),1)};this.xs.z5(A)}; g.p.mG=function(A){A=tNe(new th(A));this.xs.mG(A)}; g.p.Yh=function(A){A={Cd:iD(new th(A),1,nr0)};this.xs.Yh(A)}; g.p.onSnackbarMessage=function(A){A=lD(new th(A),1);this.xs.onSnackbarMessage(A)}; g.p.En=function(A){A=new th(A);A={reloadPlaybackParams:iD(A,1,b18),cO:mE(A,2)};this.xs.En(A)}; g.p.Vk=function(){for(var A=g.m(this.N),L=A.next();!L.done;L=A.next())L=L.value,H30(this,L.id,L.data);this.N=[]};g.G(x2,g.Y);g.p=x2.prototype;g.p.Wq=function(){return Array.from(this.EE.keys())}; g.p.Bg=function(A){A=this.EE.get(A);var L=A.E_;A.eY+=L.totalLength;A.E_=new FK;return L}; g.p.vV=function(A){return this.EE.get(A).vV}; g.p.JT=function(A){return this.EE.get(A).JT}; g.p.le=function(A,L,B){this.EE.get(A)||this.EE.set(A,{E_:new FK,eY:0,bytesReceived:0,qd:0,mN:!1,vV:!1,JT:!1,NF:L,GN:[],Lr:[],Zs:[],PC:!1,f9:new Map,H0:new Map,KZ:[]});L=this.EE.get(A);this.gT?(A=lYk(this,A,B),TRw(this,B.TB,L,A)):(B.qE?L.qd=B.a6:L.Zs.push(B),L.GN.push(B))}; g.p.PA=function(A){var L;return((L=this.EE.get(A))==null?void 0:L.Lr)||[]}; g.p.z2=function(){for(var A=g.m(this.EE.values()),L=A.next();!L.done;L=A.next())if(L=L.value,L.mN){if(L.onProgress)L.onProgress();L.mN=!1}}; g.p.s0=function(A,L){L=this.EE.get(L);eb?L&&!L.vV&&(L.f9.get(A)?L.f9.get(A).YN=!0:L.f9.set(A,{data:new FK,m_:0,YN:!0}),L.JT=!0):L&&!L.JT&&(L.JT=!0)}; g.p.Ud=function(A){if(eb){var L=this.EE.get(A);if(L)for(var B=g.m(L.f9),f=B.next();!f.done;f=B.next()){var K=g.m(f.value);f=K.next().value;K=K.next().value;var V=L.H0.get(f);if(f3(V[0])){if(!K.YN)continue;var J=K.data,R=0,Z=[];V=g.m(V);for(var N=V.next();!N.done;N=V.next()){N=N.value;var F=N.W,D=dZ(J,R,F);R+=F;Z.push(new hL(N,D))}L.KZ.push.apply(L.KZ,g.x7(Z))}else if(K.data.totalLength>0||!V[0].range&&K.YN)J=void 0,R=V[0],Z=K.m_,V=K.data,R.range||(J=K.YN),J=new hL(X$7(R,R.N+Z,V.totalLength,J),V), K.m_+=J.info.W,L.KZ.push(J);L.f9.get(f).data=new FK;K.YN&&L.f9.delete(f)}A=this.EE.get(A);if(!A)return[];L=A.KZ;A.KZ=[];B=g.m(L);for(f=B.next();!f.done;f=B.next())A.eY+=f.value.info.W;return L||[]}B=(L=this.EE.get(A))==null?void 0:L.I0;if(!B)return[];this.KX(A,B);return B.Ud()}; g.p.HA=function(A){if(eb)return a5(this,A);var L,B,f;return!!((B=(L=this.EE.get(A))==null?void 0:L.I0)==null?0:(f=B.Bc())==null?0:f.length)||a5(this,A)}; g.p.KX=function(A,L){for(;a5(this,A);){var B=this.Bg(A);var f=A;f=this.EE.get(f).vV&&!u$(this,f);l$(L,B,f&&kWS(this,A))}}; g.p.l1=function(){g.Y.prototype.l1.call(this);for(var A=g.m(this.EE.keys()),L=A.next();!L.done;L=A.next())nT(this,L.value);var B;if((B=this.Iy)==null?0:B.XT)for(A=g.m(this.EE.values()),L=A.next();!L.done;L=A.next())L=L.value,L.f9.clear(),L.H0.clear(),L.KZ.length=0,L.Lr.length=0,L.GN.length=0,L.Zs.length=0;this.EE.clear()}; var eb=!1;var LCd=new Set([2]);g.G(L5,g.Y);g.p=L5.prototype;g.p.gK=function(){!this.TL()&&this.xhr&&(this.KX(!1),pi(this.xs,this))}; g.p.U5=function(){}; g.p.ZZ=function(){if(!this.TL()&&this.xhr){var A=this.St();A===5?(this.policy.Qu&&this.p8()==="net.badstatus"&&this.xs.jU(),i$(this.RA)):(this.policy.Qu&&this.xs.EX(),this.Y6(A));this.RA.W.stop();var L;(L=this.gY)==null||L.stop()}}; g.p.St=function(){var A="";XT(this.RA,this.xhr)&&(A=nKC(this.RA,this.xhr));if(A)return this.info.wi.GM(this.Tq,A),3;this.KX(!0);if($2(this.RA,this.xhr.status,this.xhr.Yv(),this.info.kh(),this.EK))return 5;if(this.DX)return 3;egS(this.RA,this.xhr.Q4(),0,this.kh());this.policy.k6&&Cj7(this.xs);return 4}; g.p.KX=function(A){var L=this.xhr;!A&&XT(this.RA,this.xhr)||!L.Wg()||(A=L.KS(),this.S5.feed(A))}; g.p.p_=function(A,L){this.xhr.v4()&&A===21&&i36(this);this.Qk.p_(A,L)}; g.p.Xt=function(A,L,B,f){B||(this.By.Xt(f),this.policy.wJ&&A===21&&i36(this));if(A!==21)return!1;this.By.Wn=!0;A=L.totalLength;B||(this.vH=jU(L,0),L=L.split(1).Mz);var K=this.policy.Kc,V=this.Qk.W[this.vH],J=this.gT.V.get(V);if(K&&J&&(K*=J.info.lC,A+B!==f&&A0){this.policy.O_&&this.RA.W.stop();A=this.By.ix();L=this.By.vr();var B=$Py(this,A);if(!(L>B.pm||B.xI>0&&this.info.g8()>B.xI)){this.gE=(0,g.bc)();var f;(f=this.gY)==null||f.stop();this.policy.k6&&(f=this.xs,A={AI:Math.round(L*A/1E3),LS:A},f.policy.k6&&(f.Ys=A,f.O0++));this.oG()}}}}; g.p.oG=function(){this.RA.oG()}; g.p.x0=function(A){this.xs.x0(A,this.zb())}; g.p.hZ=function(A){this.DX=!0;this.info.wi.GM(this.Tq,A.redirectUrl)}; g.p.aF=function(A){this.By instanceof vO&&this.By.aF(A)}; g.p.z5=function(A){this.By instanceof vO&&this.By.z5(A)}; g.p.Vg=function(A){var L=A.formatId,B=nq({itag:L.itag,lmt:L.lmt,xtags:L.xtags}),f,K,V=new as(((f=A.IR)==null?void 0:f.first)||0,((K=A.IR)==null?void 0:K.Yd)||0),J,R;f=new as(((J=A.indexRange)==null?void 0:J.first)||0,((R=A.indexRange)==null?void 0:R.Yd)||0);this.gT.V.get(B)||(B=A.UF||{},B.mimeType=A.mimeType,B.itag=L.itag,B.lastModified=""+(L.lmt||0),B.xtags=L.xtags,A=this.gT,L=qP(""),B=Wp(B,null),OI(A,new i7(L,B,V,f)))}; g.p.eJ=function(A){this.xs.eJ(A,this.zb())}; g.p.onSnackbarMessage=function(A){if(this.policy.XN)this.xs.onSnackbarMessage(A)}; g.p.TW=function(A){this.policy.T&&this.xs.TW(A,this.zb())}; g.p.UY=function(A){this.M3=A;this.RA.V=(0,g.bc)();this.xs.UY(A)}; g.p.Cy=function(A,L,B){this.xs.Cy(A,L,B)}; g.p.UQ=function(A){A.scope===2&&(this.eV=A);this.xs.UQ(A)}; g.p.hK=function(){this.kO=!0;this.xs.hK()}; g.p.QO=function(A){this.policy.BI&&this.xs.QO(A)}; g.p.us=function(A){this.xs.us(A,this.zb())}; g.p.mG=function(A){A.qn===3&&(this.EK=!0);this.xs.mG(A)}; g.p.Yh=function(A){this.xs.Yh(A)}; g.p.En=function(A){this.xs.En(A)}; g.p.canRetry=function(){this.TL();return this.RA.canRetry(!1)}; g.p.dispose=function(){if(!this.TL()){g.Y.prototype.dispose.call(this);this.RA.dispose();var A;(A=this.gY)==null||A.dispose();this.Y6(-1);this.zv()}}; g.p.Y6=function(A){this.state=A;pi(this.xs,this)}; g.p.kh=function(){return this.info.kh()}; g.p.qG=function(){return this.kO}; g.p.OF=function(){return this.eV}; g.p.le=function(A,L,B,f){this.policy.cI&&this.xs.gS(2,L);B>=0&&this.xs.yl(B);f.clipId&&(this.clipId=f.clipId);this.policy.W&&!L&&(this.tO=f.td);if(this.info.isDecorated()){var K=this.info,V,J;B=((V=K.data)==null?0:(J=V.xX)==null?0:J.Eo)?K.data.xX.Eo:-1;B>=0&&B>f.td&&this.xs.loader.Hn("sdai",{skpsqmismatch:"1",stsq:B,rcvsq:f.td,a:L})}this.K8.le(A,L,f);this.policy.iF&&this.M3&&this.By instanceof GC&&(V=this.M3.YU,this.By.le(f.durationMs/1E3,L,V>0&&f.td+1>=V));this.K8.EE.get(A).PC=!0}; g.p.s0=function(A,L){this.K8.s0(A,L)}; g.p.bN=function(A){this.requestIdentifier=A}; g.p.Ud=function(A){return this.K8.Ud(A)}; g.p.PA=function(A){return this.K8.PA(A)}; g.p.HA=function(A){return this.K8.HA(A)}; g.p.Wq=function(){return this.K8.Wq()}; g.p.mW=function(){return 1}; g.p.zb=function(){return this.By.requestNumber}; g.p.Ko=function(){return this.requestIdentifier}; g.p.MQ=function(){return this.Tq.MQ()}; g.p.Ei=function(){this.zv()}; g.p.zv=function(){this.By.deactivate();var A;(A=this.xhr)==null||A.abort()}; g.p.isComplete=function(){return this.state>=3}; g.p.TG=function(){return this.state===3}; g.p.LQ=function(){return this.state===5}; g.p.Xw=function(){return this.state===4}; g.p.Gp=function(){return this.isComplete()}; g.p.Er=function(){return this.state>=1}; g.p.K5=function(){return this.policy.N8?this.RA.K5():0}; g.p.ZK=function(){this.policy.N8&&pi(this.xs,this)}; g.p.RI=function(){return Xn(this.info)}; g.p.Vk=function(){this.KE()&&!this.aq&&(this.aq=!0,this.Qk.Vk())}; g.p.KE=function(){var A,L;var B=(A=this.info.N)==null?void 0:(L=A.No)==null?void 0:L.Ay;return!!B&&LCd.has(B)}; g.p.GU=function(){return"SABR"}; g.p.p8=function(){return this.RA.p8()}; g.p.tj=function(){var A=zg7(this.RA);Object.assign(A,c$w(this.info));A.req="sabr";A.rn=this.zb();var L;if((L=this.xhr)==null?0:L.status)A.rc=this.policy.Ji?this.xhr.status:this.xhr.status.toString();var B;(L=(B=this.xhr)==null?void 0:B.SE())&&(A.msg=L);this.gE&&(B=$Py(this,this.gE-this.By.Me()),A.letm=B.BTr,A.mrbps=B.pm,A.mram=B.xI);return A};O3Q.prototype.tick=function(A,L){this.ticks[A]=L?window.performance.timing.navigationStart+L:(0,g.bc)()};g.G(Bj,g.SN);g.p=Bj.prototype; g.p.ww=function(A,L,B,f){var K=!1;this.policy.W&&(K=B?this.Vj===A.XD:this.qp===A.XD);if(this.TV&&f&&!K){f=[];K=[];var V=[],J=void 0,R=0;L&&(f=L.N,K=L.W,V=L.U,J=L.V,R=L.Lx,this.Hn("sdai",{sq:A.XD,ssvicpns:f.join("."),ssvid:K.join(".")}));this.policy.W&&(B?this.Vj=A.XD:this.qp=A.XD);this.TV.Cg(A.XD,A.startTime,f,K,V,B,R,J)}if(this.policy.W){if(B){this.W===1&&K5(this,5,"noad");var Z;A.XD!==((Z=this.N)==null?void 0:Z.XD)&&(UP6(this,A,L,B),isNaN(A.startTime)||Wrk(this,A.XD,RN(this,A.startTime,A.XD),!!L, this.TV))}}else B&&UP6(this,A,L)}; g.p.RB=function(A,L,B){var f=this.videoTrack.b1.index.uq()<=L;this.N={U9:A,XD:L,UK:B};f&&f5(this,A,L)}; g.p.T3=function(){this.TV&&this.TV.T3()}; g.p.Hn=function(A,L,B){(A!=="sdai"||this.policy.y8||(B===void 0?0:B))&&this.loader.Hn(A,L)}; g.p.bF=function(A,L){var B=this.videoTrack.b1.index.NV(A);if(B>=0){var f;var K=((f=L.zX(B,2))==null?void 0:f.c$)||"";if(this.policy.W||K)return L.s5(A,B),Vi(this.loader,A,A,B),this.Hn("sdai",{cmskpad:1,t:A.toFixed(3),sq:B}),!0}this.Hn("sdai",{cmskpad:0,t:A.toFixed(3),sq:B});return!1};g.p=n6k.prototype;g.p.cg=function(A,L,B){var f=A||this.D;this.Hn("clsdai",{setadcfg:A||"misscid",cid:f,acpn:B,acfglen:(L==null?void 0:L.length)||0});this.N.has(f)||(this.Hn("clsdai",{setadcfg:"noentry",cid:f}),this.N.set(f,{event:"unknown",startTimeSecs:0,Dj:0,K2:[],n6:Date.now(),Nu:-1,uW:6}));(A=this.N.get(f))?L?(A.uW=6,A.K2.push(B),A.ul=L):A.uW=2:this.Hn("clsdai",{setadcfg:"notfound",cid:f})}; g.p.gM=function(A){var L=A||this.D;this.Hn("clsdai",{rmvadcfg:A||"misscid",lastcid:this.D});(A=this.N.get(L))?(A.ul="",A.uW=4):this.Hn("clsdai",{rmadcfg:"notfound",cid:L})}; g.p.TW=function(A,L,B,f){this.X=L;var K;if(!((((K=A.x5)==null?void 0:K.length)||0)<=0))if(f)this.V=f,this.Hn("clsdai",{oncldisabled:f,rn:L});else for(A=g.m(A.x5),f=A.next();!f.done;f=A.next())if(K=f.value,K.U9){var V=void 0;f=-(((V=K.U9)==null?void 0:V.CP)||0);K.timeRange&&(f+=(K.timeRange.startTicks||0)/(K.timeRange.timescale||1));var J=V=void 0,R=void 0,Z=void 0,N=void 0;f=new Zc(f,((V=K.U9)==null?void 0:V.l2j)||0,((J=K.U9)==null?void 0:J.ya)||"",((R=K.U9)==null?void 0:R.identifier)||"",uVy((Z= K.U9)==null?void 0:Z.event),(((N=K.U9)==null?void 0:N.CP)||0)*1E3);V=L;J=K.td||0;R=B;this.N.has(f.identifier)?(K=this.N.get(f.identifier),J>K.Nu&&(K.startTimeSecs=f.startSecs,K.Dj=f.Dj,K.event==="predictStart"&&K.uW===5&&f.event!=="predictStart"&&(K.n6=Date.now()),K.event=f.event)):(K={event:f.event,startTimeSecs:f.startSecs,Dj:f.Dj,K2:[],Nu:J,uW:0},this.N.set(f.identifier,K),this.U&&this.Hn("clsdai",{newcid:1,cid:f.identifier,evt:f.event,sn:J,rn:V,st:aYL(K.uW)}));Z=!1;K.uW===0&&((R==null?0:R.IG(f))? K.uW=5:(K.uW=R?11:3,K.ul="",Z=!0),K.n6=Date.now(),K.Nu=J,this.U&&this.Hn("clsdai",{onqpnt:1,cid:f.identifier,evt:f.event,sn:J,rn:V,st:aYL(K.uW)}));J>K.Nu&&(R==null||R.IG(f),K.Nu=J);this.D=f.identifier;this.U&&this.W.add(f.identifier);Z&&(this.T=!0)}}; g.p.s5=function(A,L,B){var f=A;this.U&&(f+=B);var K,V="";f=zcQ(this,f);f.length>0&&(V=f[0])&&(K=this.N.get(V));if(!K||K.W0){var J;this.Hn("clsdai",{skipadfail:1,cid:V,sn:L,mt:A.toFixed(3),of:B.toFixed(3),skipsq:((J=K)==null?void 0:J.W0)||-1});return!1}this.Hn("clsdai",{skipadsuc:1,cid:V,sn:L,mt:A.toFixed(3),of:B.toFixed(3)});K.W0=L;this.W.clear();this.W.add(V);return!0}; g.p.hM=function(){this.Hn("clsdai",{rstskipad:1});for(var A=g.m(this.N.values()),L=A.next();!L.done;L=A.next())L.value.W0=NaN};g.G(DU,g.Y);DU.prototype.EU=function(A,L,B){B=B===void 0?{}:B;this.policy.Tb=KM(A,B,this.U,L===void 0?!1:L)};p5.prototype.eg=function(A,L){var B=Math.pow(this.alpha,A);this.N=L*(1-B)+B*this.N;this.W+=A}; p5.prototype.pw=function(){return this.N/(1-Math.pow(this.alpha,this.W))};jj.prototype.mQ=function(A){var L=this;if(this.policy.Es){var B=new Set(A);B.size===this.wT.size&&[].concat(g.x7(B)).every(function(f){return L.wT.has(f)})||(this.loader.Hn("lwnmow",{itagDenylist:[].concat(g.x7(A)).join(",")}),this.loader.CS(!!B.size),this.yj=-1,this.wT=B,gP(this,this.N),this.Ys=!0)}}; jj.prototype.EU=function(A,L,B){B=B===void 0?{}:B;var f=this.policy.Tb;this.D.EU(A,L===void 0?!1:L,B);if(f!==this.policy.Tb){gP(this,this.N);GE(this);var K,V;f>this.policy.Tb&&((K=this.V)==null?0:Mb(K.info))&&((V=this.nextVideo)==null||!Mb(V.info))&&(this.Wn=!0)}};var h4={pL:-1,Fu:!1,Ay:0};g.G(bP,g.Y);bP.prototype.l1=function(){this.W=h4;t4(this);g.Y.prototype.l1.call(this)};kU.prototype.j8=function(A){this.timestampOffset=A;this.flush()}; kU.prototype.flush=function(){if(this.N.pos>0){var A={a:this.track.NF(),u:this.N.PV(),pd:Math.round(this.U),ad:Math.round(this.V)},L=this.W;if(L){var B=L.b1.info;A.itag=B.itag;B.N&&(A.xtags=B.N);A.sq=L.XD;A.st=L.startTime;A.sd=L.duration;this.track.policy.iZ&&(A.si=L.Dx());L.V&&(A.esl=L.N+L.W);L.Ad()&&(A.eos=1)}isNaN(this.timestampOffset)||(A.to=this.timestampOffset);var f;if(L=(f=this.track.uC)==null?void 0:f.Ov({})){for(var K in L)this.T[K]!==L[K]&&(A["sb_"+K]=L[K]);this.T=L}this.track.Hn("sbu", A);this.N.reset();this.buffered=[];this.D=this.V=this.U=0;this.timestampOffset=this.W=void 0}};lP.prototype.dispose=function(){this.qp=!0}; lP.prototype.TL=function(){return this.qp}; g.G(X0,Error);cj.prototype.skip=function(A){this.offset+=A}; cj.prototype.vB=function(){return this.offset};g.p=XLv.prototype;g.p.w5=function(){return this.W}; g.p.vL=function(){return this.W.length?this.W[this.W.length-1]:null}; g.p.KV=function(){this.W=[];Wj(this);YU(this)}; g.p.Bg=function(A){this.Ys=this.W.shift().info;A.info.equals(this.Ys)}; g.p.PA=function(){return g.mn(this.W,function(A){return A.info})}; g.p.NF=function(){return!!this.b1.info.audio}; g.p.isDrm=function(){return!!this.b1.info.Zj}; g.p.getDuration=function(){return this.b1.index.ag()};g.G(fT,b$);g.p=fT.prototype;g.p.onStateChange=function(){this.TL()&&(zC(this.K8,this.formatId),this.N.dispose())}; g.p.tj=function(){var A=tlS(this.K8,this.formatId),L;var B=((L=this.K8.EE.get(this.formatId))==null?void 0:L.bytesReceived)||0;var f;L=((f=this.K8.EE.get(this.formatId))==null?void 0:f.eY)||0;return{expected:A,received:B,bytesShifted:L,sliceLength:u$(this.K8,this.formatId),isAnyMediaEndReceived:this.K8.JT(this.formatId)}}; g.p.OL=function(){return 0}; g.p.nZ=function(){return!0}; g.p.Ud=function(){return this.K8.Ud(this.formatId)}; g.p.Bc=function(){return[]}; g.p.HA=function(){return this.K8.HA(this.formatId)}; g.p.p8=function(){return this.lastError}; g.p.K5=function(){return 0};g.G(xU,g.Y);g.p=xU.prototype;g.p.NF=function(){return!!this.b1.info.audio}; g.p.vL=function(){return this.V.vL()}; g.p.Bg=function(A){this.V.Bg(A);var L;(L=this.X)!=null&&(L.D.add(A.info.XD),L.N=Ic1(L,L.VK,L.yr,A,L.N),L.V=A,L.T=(0,g.bc)());this.lC=Math.max(this.lC,A.info.b1.info.lC||0)}; g.p.getDuration=function(){return this.b1.index.ag()}; g.p.KV=function(){Va(this);this.V.KV()}; g.p.sF=function(){return this.V}; g.p.qy=function(A){return this.uC?aT(this.uC.Hk(),A):!0}; g.p.isRequestPending=function(A){return this.W.length?A===this.W[this.W.length-1].info.Lr[0].XD:!1}; g.p.j8=function(A){var L;(L=this.X)==null||L.j8(A);var B;(B=this.G)==null||B.j8(A)}; g.p.Hn=function(A,L){this.loader.Hn(A,L)}; g.p.G_=function(){return this.loader.G_()}; g.p.dispose=function(){var A;(A=this.G)==null||A.flush();g.Y.prototype.dispose.call(this)};g.G(y1,g.Y);y1.prototype.V=function(){this.W++>15||(this.N=!this.N,new gcw(this.loader,this.policy,this.Ml,this.wi,this.N),this.delay.start())}; g.p=gcw.prototype;g.p.U5=function(){}; g.p.gK=function(){}; g.p.ZZ=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Q4()===this.size)this.loader.Hn("rqs",this.getInfo());else{var A="net.connect";this.xhr.status>200?A="net.badstatus":this.xhr.R5()&&(A="net.closed");this.onError(A)}}; g.p.onError=function(A){var L=this;this.loader.handleError(A,this.getInfo());x5("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(B){L.loader.Hn("pathprobe",B)},function(B){L.loader.handleError(B.errorCode,B.details)})}; g.p.getInfo=function(){var A=this.timing.Rg();A.shost=wy(22,this.location.QN);A.pb=this.size;return A};g.G(gv,g.Y); gv.prototype.T=function(A,L){if(A.T){this.gT.isLive?(A=this.gT.F3&&this.gT.U?A.b1.D_(this.gT.F3,!1):A.b1.tq(Infinity),A.FH=this.FH):A=A.b1.D_(0,!1);if(this.yj){var B=this.yj;A.FH===0&&(A.D=B.G)}else A.D=this.G;return A}B=A.N;if(!B.b1.w1())return B.b1.BB()?(A=af(this.U,A.b1.info.lC,L.b1.info.lC,0),A=B.b1.X0(B,A)):A=B.b1.nx(B),A;var f=B.D-this.loader.getCurrentTime(),K=!B.range||B.W===0&&B.N===0?0:B.range.length-(B.N+B.W),V=B.b1;this.cM(A,f)&&K===0&&(this.gT.isManifestless?V=A.b1:(V=B.startTime+V3e, B.W&&(V+=B.duration),R5(A,V),B=A.N,V=B.b1));V.BB()?(K=this.W,L=af(this.U,V.info.lC,L.b1.info.lC,f,K.U.length>0&&K.G===0&&this.loader.Vb),f=Zz(A),A=B.b1.X0(B,L),(L=A.V)&&A.Lr.length>1&&(f||A.wi.V||A.Lr[0].b1!==B.b1?A=B.b1.X0(B,A.Lr[0].W):(f=A.Lr[A.Lr.length-1],V=f.W/L,!f.V&&V<.4&&(A=B.b1.X0(B,L-f.W))))):(B.XD<0&&(L=Sl(B),L.pr=""+A.W.length,this.loader.isSeeking()&&(L.sk="1"),L.snss=B.T,this.loader.Hn("nosq",L)),A=V.nx(B));if(this.policy.JF)for(B=g.m(A.Lr),L=B.next();!L.done;L=B.next())L.value.type= 6;return A}; gv.prototype.cM=function(A,L){if(!Zz(A)||!A.b1.w1())return!1;var B;(B=this.W.Ys)||(B=Zz(A)&&A.b1.w1()&&A.N.b1.info.lC=L)return f.return();(B=A.N.get(0))&&xg6(A,B);g.VK(f)})}; var qeC={uer:0,nEx:1,tJ4:2,z8s:3,hXx:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};vl.prototype.decrypt=function(A){var L=this,B,f,K,V,J,R;return g.c(function(Z){switch(Z.N){case 1:if(L.N.length&&!L.N[0].isEncrypted)return Z.return();L.W=!0;L.N7.S$("omd_s");B=new Uint8Array(16);VS()?f=new g.Rd(A):K=new g.S8(A);case 2:if(!L.N.length||!L.N[0].isEncrypted){Z.Ux(4);break}V=L.N.shift();if(!f){J=K.decrypt(pz(V.buffer),B);Z.Ux(5);break}return g.X(Z,f.decrypt(pz(V.buffer),B),6);case 6:J=Z.W;case 5:R=J;for(var N=0;N=4)){var L=JB(this),B=this.xhr;L.rc=B.status;A&&(L.ab=!0);if(B.SE()){var f="onesie.net";L.msg=B.SE()}else B.status>=400?f="onesie.net.badstatus":B.Yv()?this.vU||(f="onesie.response.noplayerresponse"):f=B.status===204?"onesie.net.nocontent":"onesie.net.connect";f?this.fail(new g.K$(f,L)):(this.S$("or_fs"),this.By.aT((0,g.bc)(),B.Q4(),0),this.Y6(4),this.oU&&this.Hn("rqs",L));this.oU&&this.Hn("ombre","ok."+ +!f);this.zr=!1;Ki(this); fi(this.N7);if(!this.Y$){this.G5.stop();var K;(K=this.TE)==null||K.stop()}var V;if(A=(V=this.pj)==null?void 0:eOy(V))for(V=0;V1E3){var A;(A=this.By)==null||A.Lm((0,g.bc)());A=JB(this);if(this.L.hw()&&this.xhr instanceof ti){var L=this.xhr;A.xrs=L.xhr.readyState;A.xpb=L.N.totalLength;A.xdc=L.U}this.fail(new g.K$("net.timeout",A))}}else(0,g.bc)()-this.By.N>1E4&&((L=this.By)==null||L.Lm((0,g.bc)()),this.Mk());this.isComplete()||this.FX.start()}}; g.p.Mk=function(){this.zr=!1;if(!Ki(this)){var A=JB(this);A.timeout="1";this.fail(new g.K$("onesie.request",A))}}; g.p.fail=function(A){var L=this;A=JT(A);this.yZ?this.Np.Ho(A):(this.lD.reject(A),this.yZ=!0);fi(this.N7);this.Y$||this.G5.stop();this.S$("or_fe");var B,f;(B=this.pj)==null||(f=eOy(B))==null||f.forEach(function(K){L.Hn("pathprobe",K)}); this.Y6(5);this.dispose()}; g.p.isComplete=function(){return this.state>=3}; g.p.Xw=function(){return this.state===4}; g.p.Gp=function(A){var L,B;return this.isComplete()||!!((L=this.HV)==null?0:(B=L.get(A))==null?0:B.N)}; g.p.TG=function(){return!1}; g.p.LQ=function(){return this.state===5}; g.p.notifySubscribers=function(A){for(var L=0;L102400&&!this.wx&&(this.S$("or100k"),this.wx=!0);if(A.Wg()){var L=A.KS(),B=L.totalLength;this.oU&&this.Hn("ombrss","len."+B);this.S5.feed(L)}if(this.HV)for(var f=g.m(this.HV.keys()),K=f.next();!K.done;K=f.next()){var V=K.value;A=void 0;(A=this.HV.get(V))==null||A.z2();this.notifySubscribers(V)}}catch(J){this.fail(J)}}; g.p.zb=function(){return this.By.requestNumber}; g.p.Ko=function(A){return this.I2.get(A)}; g.p.KE=function(){return!1}; g.p.GU=function(){return"ONESIE"};g.G(RS,g.Y);g.p=RS.prototype; g.p.NG=function(A){var L=Pm(this.loader)&&A&&A.pL!==void 0&&!A.Fu?A.pL*1E3+(this.loader.pY()||0):Zj(this);if(this.policy.Bk){var B=this.wT;var f=this.JF}else B=dg(this,this.audioTrack),f=dg(this,this.videoTrack);var K=[].concat(g.x7(B.VK),g.x7(f.VK));N8(this)&&K.push.apply(K,g.x7(this.D));var V=[].concat(g.x7(B.lM),g.x7(f.lM)),J=this.loader.sb();if(this.policy.Mb&&!this.videoData.isLivePlayback){var R=this.videoData.lengthSeconds*1E3;L>=R&&this.loader.Hn("invalidSabrCmt",{cmt:L,vd:R})}var Z,N;R=this.Ml; var F=this.Np,D=this.gT,I=this.V,d=this.videoData.S4,w=this.policy,r=this.loader.DU,h=bok(this.loader)*1E3,Q=(Z=this.Ys)==null?void 0:Z.AI;Z=(N=this.Ys)==null?void 0:N.LS;var l;N=Number((l=this.W.U)==null?void 0:l.info.itag)||0;var C;l=Number((C=this.W.D)==null?void 0:C.info.itag)||0;C=this.O0;var O=this.Np.XJ();var v=(A==null?0:A.Ay)?A.Ay:this.loader.isSuspended?4:void 0;L={Ml:R,Np:F,gT:D,VK:K,lM:V,ut:L,nextRequestPolicy:I,ES:d,Iy:w,JH:r,Pa:h,AI:Q,LS:Z,O0:C,Ni4:N,P11:l,K_:J,oo:O,Ay:v};K=this.loader.BA(); V=$i(K);K&&(L.Ih=V);if(A=Pm(this.loader)&&(A==null?0:A.Fu)?A.pL:this.Np.kA())L.PL=A*1E3;var U;A=this.W;K=A.qp;if(((U=A.Iy)==null?0:Y2(U))&&!K)for(U=g.m(A.V),V=U.next();!V.done;V=U.next())if(V.value.ri){K=!0;break}U=Y2(A.Iy)&&!K?[]:l_6(A,A.V);L.xe=U;U=this.W;Y2(U.Iy)&&!U.Vj?U=[]:(A=$g0(U),A.length===0&&(A=U.T),U=l_6(U,A));L.pK=U;L.uE=N8(this)?[this.T]:void 0;this.policy.GR&&(L.F6=o5D(this.loader,this.audioTrack),L.Un=o5D(this.loader,this.videoTrack));U=this.loader.getCurrentTime();B=Dj(this,B.VK,U); f=Dj(this,f.VK,U);this.S4=f=Math.min(B,f);if(this.policy.W&&(N8(this)&&(B=Dj(this,this.D,U),this.Np.hw()&&B=V.jf?V.Xe:void 0,K={Ka:A?LJQ(B,A):[],adsConfig:K,Eo:V},U={gvprpro:"v",mt:U.toFixed(3),acpns:((a=K.Ka)==null? void 0:a.join("_"))||"none",abid:A},B.Xr(U),a=K):(B.Xr({gvprp:"ncp",mt:U}),a=null)}a&&(L.xX=a)}if(this.policy.T){var o0;a=((o0=this.videoData.W)==null?void 0:o0.containerType)||0;o0=this.videoData.rg[a];B=this.loader.isSeeking()&&!this.loader.tU?f+this.loader.pY():NaN;if((a=this.G)==null)o0=void 0;else if(a.V!==0){a.Hn("clsdai",{gssinfodisabled:a.V});o0=7;switch(a.V){case 1:o0=7;break;case 2:o0=9;break;case 3:o0=10;break;default:a.Hn("clsdai",{unknowndisr:a.V})}o0=[{uW:o0}]}else{f=[];if(!isNaN(B))if(U= zcQ(a,B),A=a.X+1,U.length>0)for(a.Hn("clsdai",{updcids:1,mt:B.toFixed(3),cid:U.join(","),rn:A}),a.W.clear(),B=g.m(U),U=B.next();!U.done;U=B.next())a.W.add(U.value);else a.G&&(a.Hn("clsdai",{updcids:0,mt:B.toFixed(3),rn:A}),a.W.clear());B=g.m(a.W);for(A=B.next();!A.done;A=B.next()){U=a;if(A=A.value){U=U.N.get(A);A={cuepointId:A};if(U==null?0:U.ul)A.adsConfig=$i(U.ul)||void 0;if(U==null?0:U.K2)A.Ka=U.K2;if(U==null?0:U.W0)A.Eo=U.W0;o0&&(A.LA=na(o0.split(";")[0]),A.du=o0.split(";")[1]||"");A.uW=(U==null? void 0:U.uW)||0;U=A}else U=void 0;U&&f.push(U)}o0=f}L.zJ=o0;(o0=this.G)!=null&&(o0.W.clear(),o0.V=0,o0.T=!1)}this.policy.Wn&&this.N.length>0&&this.N[0].qG()&&(L.rE=this.N[0].OF());return L}; g.p.BL=function(A,L){this.X=void 0;Cj7(this);QqQ(this,A,L)}; g.p.G6=function(A){if(this.N.length===0)return!1;var L=this.N[0];return L instanceof Sn?A===this.loader.getCurrentTime()*1E3:!(L instanceof L5&&Oh(L.info))&&Math.abs(L.RI()-A)<50}; g.p.xE=function(A,L){this.V=A;this.policy.W&&!A.playbackCookie&&this.loader.Hn("sbrnocookie",{rn:L!=null?L:-1});var B;if(this.policy.GLr&&((B=this.G)==null?0:B.T)){var f;this.loader.Hn("clsdai",{ignbckoff:L!=null?L:-1,backoff:(f=A.backoffTimeMs)!=null?f:-1})}else this.X=(0,g.bc)()+(A.backoffTimeMs||0)}; g.p.x0=function(A,L){if(A.action===void 0){var B=this.Np.kA();B!==void 0&&this.loader.o5(B)}else if(A.action!==0||!this.Cr)if(A.action===0&&this.policy.Yn&&(A.action=2),A.bE==="sabr.malformed_config"&&this.cn++<3)this.loader.handleError("sabr.malformed_config",{action:A.action,rn:L,retry:this.cn},0);else switch(this.policy.r4||A.bE!=="sabr.malformed_config"||(A.action=2),B={},B.reason=A.bE,B.action=A.action,B.rn=L,A.action){case 1:this.policy.W&&this.TV&&Tm(this.TV,void 0,void 0,B);break;case 0:this.Cr= !0;this.videoData.aA()&&this.policy.W&&this.TV&&Tm(this.TV,void 0,void 0,B,!1);this.loader.Oe(B);break;case 2:bpQ(A.bE)!=="sabr.config"&&delete B.reason;this.loader.handleError(bpQ(A.bE),B,1);break;case 3:this.policy.jI&&((A=this.gT.yj)!=null&&(A.G=!0),this.loader.handleError("sabr.hostfallback",B))}}; g.p.UQ=function(A){A&&(this.loader.Hn("sabrctxt",{onsbrctxt:A.type,scp:A.scope,dflt:A.sendByDefault}),A.type&&A.sendByDefault&&this.videoData.S4.add(A.type),A.scope!==2&&(A.type&&this.videoData.sabrContextUpdates.set(A.type,A),this.Np.UQ(A)))}; g.p.hK=function(){}; g.p.eJ=function(A,L){if(this.loader.tU)this.loader.Hn("sdai",{ignSabrSeek:1,smt:A==null?void 0:A.S3,rn:L});else if(A.S3!==void 0&&A.v3){L=A.S3/A.v3;this.audioTrack.T=!1;this.videoTrack.T=!1;if(this.policy.Vj||this.policy.BR||this.policy.XV)this.loader.Ty.N=!1;if(this.Np.getCurrentTime()!==L){var B={zZ:"sabr_seek",Cu:!0,Sf:!0};A.seekSource&&(B.seekSource=A.seekSource);FT(this.loader,L+.1,B)}}}; g.p.onSnackbarMessage=function(A){this.Np.publish("onSnackbarMessage",A)}; g.p.TW=function(A,L){this.policy.T&&this.loader.TW(A,L)}; g.p.UY=function(A){A.YU&&A.xj&&ap(this.gT,A.YU,A.xj);this.policy.nJ&&(A.DS&&A.M5&&(this.gT.CK=A.DS/A.M5),A.H8&&A.q5&&(this.gT.F9=A.H8/A.q5));Ur(this.videoData)&&!this.videoData.hd&&A.xj&&this.loader.OU(A.xj,1E3);A.TO!=null&&this.Np.nS(A.TO);A.md&&(A=((0,g.bc)()-A.md)/1E3,this.loader.wq.eg(1,A))}; g.p.mG=function(A){this.loader.mG(A)}; g.p.VZ=function(A){return this.videoData.S4.has(A)}; g.p.Cy=function(A,L,B){this.policy.V&&this.loader.Hn("sabrctxtplc",{start:A?A.join("_"):"",stop:L?L.join("_"):"",discard:B?B.join("_"):""});if(A){A=g.m(A);for(var f=A.next();!f.done;f=A.next())this.videoData.S4.add(f.value)}if(L)for(L=g.m(L),A=L.next();!A.done;A=L.next())A=A.value,this.videoData.S4.has(A)&&this.videoData.S4.delete(A);if(B)for(B=g.m(B),L=B.next();!L.done;L=B.next())if(L=L.value,this.videoData.sabrContextUpdates.has(L)&&this.videoData.sabrContextUpdates.delete(L),this.policy.Wn&&this.N.length)for(A= g.m(this.N),f=A.next();!f.done;f=A.next())if(f=f.value,!(f instanceof Sn)){var K=void 0;((K=f.eV)==null?void 0:K.type)===L&&(f.eV=void 0)}}; g.p.QO=function(){}; g.p.rC=function(A){this.T=A}; g.p.dE=function(A){this.D=A}; g.p.us=function(A,L){p6(this.policy,A,4,L)}; g.p.Yh=function(A){if(A==null?0:A.Cd)if(A=A.Cd.Qw){A=g.m(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.formatId){var B=this.gT.V.get(nq(L.formatId));B&&B.info&&(B.info.debugInfo=L.debugInfo)}}}; g.p.En=function(A){this.sx=!0;this.Np.publish("reloadplayer",A)}; g.p.TP=function(){return this.Np.TP()||""}; g.p.g8=function(){var A=$GS(this);return Math.min(A.Hb,A.jS)}; g.p.Xr=function(A,L){this.loader.Hn(A,L)}; g.p.YF=function(A){qUL(this.loader,RGE(this.ql,A))}; g.p.gS=function(A,L){this.videoData.gS(A,L)}; g.p.yl=function(A){this.Np.yl(A)}; g.p.EX=function(){this.loader.EX()}; g.p.jU=function(){this.loader.jU()}; g.p.l1=function(){g.Y.prototype.l1.call(this);this.V=void 0;QqQ(this,!0,"i");this.N=[]};XK7.prototype.getCurrentTime=function(){return this.Np.getCurrentTime()-this.Np.pY()}; jn.prototype.G=function(A){kF(A.state)&&y_(this.D)}; jn.prototype.clear=function(){MC8(this.D);this.W.clear();this.N.clear();this.T=NaN;this.X=!1}; jn.prototype.py=function(){this.isSeeking=!0;MC8(this.D);this.X=!1;this.T=NaN;this.U=this.l0};GL.prototype.yG=function(A,L){if(this.U)return zyS(this,L);if(L=Db(A)){var B=L.N;B&&B.V&&B.N&&(A=A.W.length?A.W[0]:null)&&A.state>=2&&!A.LQ()&&A.info.FH===0&&(this.U=A,this.X=B,this.W=L.info,this.T=this.startTimeSecs=Date.now()/1E3,this.D=this.W.startTime)}return NaN}; GL.prototype.clear=function(){this.W=this.X=this.U=null;this.N=this.D=this.T=this.startTimeSecs=NaN;this.V=!1};g.G(si,g.Y);si.prototype.l1=function(){LY7(this);g.Y.prototype.l1.call(this)};var ony=/[?&]cpn=/;g.G(b3,g.Y);b3.prototype.flush=function(){var A={};this.W&&(A.pe=this.W);this.N.length>0&&(A.pt=this.N.join("."));this.N=[];return A}; b3.prototype.stop=function(){var A=this,L,B,f;return g.c(function(K){if(K.N==1)return g.S5(K,2),g.X(K,(L=A.U)==null?void 0:L.stop(),4);if(K.N!=2)return(B=K.W)&&A.logTrace(B),g.ZR(K,0);f=g.NX(K);A.W=VgC(f.message);g.VK(K)})}; b3.prototype.logTrace=function(A){this.encoder.reset();this.encoder.add(1);var L=Array.from(A.resources),B=Array.from(A.frames),f=Array.from(A.stacks);A=Array.from(A.samples);this.encoder.add(L.length);L=g.m(L);for(var K=L.next();!K.done;K=L.next()){K=K.value.replace("https://www.youtube.com/s/","");this.encoder.add(K.length);for(var V=0;V=0?A:g.Ci(this.provider),this.Vj?ojd.has(this.xb)&&(this.N.size||(this.xb==="PL"?A>=this.W+30:A<=this.Wn+30||A>=this.W+1200&&A<=this.Wn+86400))&&(g.TL(this,A,"vps",[this.xb]),this.W=A):["PL","B","S"].indexOf(this.xb)>-1&&(this.N.size||A>=this.W+30)&&(g.TL(this,A,"vps",[this.xb]),this.W=A),this.N.size)){this.sequenceNumber===7E3&&g.CE(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){$k(this,A);var L=this.provider.Np.Rx(); L=g.m(L);for(var B=L.next();!B.done;B=L.next())B=B.value,this.Hn(B.key,B.value);L=A;B=this.provider.Np.Db();var f=B.droppedVideoFrames||0,K=B.totalVideoFrames||0,V=f-this.L_,J=K&&!this.dA;f>B.totalVideoFrames||V>5E3?tgk(this,"html5.badframedropcount","df."+f+";tf."+B.totalVideoFrames):(V>0||J)&&g.TL(this,L,"df",[V]);this.L_=f;this.dA=K;this.G>0&&(g.TL(this,A,"glf",[this.G]),this.G=0);AC.isActive()&&(A=AC.sL(),Object.keys(A).length>0&&this.Hn("profile",A));this.mH&&Oi(this,"lwnmow");this.provider.L.hw()&& this.provider.J("html5_record_now")&&this.Hn("now",{wt:(0,g.bc)()});A={};this.provider.videoData.W&&(A.fmt=this.provider.videoData.W.itag,(L=this.provider.videoData.U)&&L.itag!==A.fmt&&(A.afmt=L.itag));A.cpn=this.provider.videoData.clientPlaybackNonce;var R;((R=this.E$)==null?0:R.length)?A.adcpn=this.E$.join(","):this.adCpn&&(A.adcpn=this.adCpn);var Z;((Z=this.hk)==null?0:Z.length)?A.addocid=this.hk.join(","):this.Ak.length&&(A.addocid=this.Ak);Z=this.provider.videoData;R=Z.aA();Z=Z.latencyClass; (this.provider.L.Qf().N.Iv(FvB)&&R&&Z==="NORMAL"||this.provider.L.Qf().N.Iv(NyR)&&R&&Z==="LOW"||this.provider.L.Qf().N.Iv(ZwK)&&this.provider.videoData.isDaiEnabled()&&gp(this.provider.videoData))&&(A.adc=1);this.provider.videoData.cotn&&(A.cotn=this.provider.videoData.cotn);A.el=nr(this.provider.videoData);A.content_v=uj(this.provider.videoData);A.ns=this.provider.L.Wn;A.fexp=RE1(this.provider.L.experiments).toString();A.cl=(839483937).toString();R=this.provider.videoData.adFormat||this.adFormat; var N;((N=this.d_)==null?0:N.length)?A.adformat=this.d_.join(","):R&&(A.adformat=R);(N=$T(this.provider.videoData))&&(A.live=N);this.provider.videoData.U6()&&(A.drm=1,this.provider.videoData.D&&(A.drm_system=UVO[this.provider.videoData.D.flavor]||0),this.provider.videoData.drmProduct&&(A.drm_product=this.provider.videoData.drmProduct));Dp()&&this.provider.videoData.T&&(A.ctt=this.provider.videoData.T,A.cttype=this.provider.videoData.Zl,this.provider.videoData.mdxEnvironment&&(A.mdx_environment=this.provider.videoData.mdxEnvironment)); this.provider.videoData.isDaiEnabled()?(A.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.B4&&(A.dai_fallback="1"),gp(this.provider.videoData)&&(A.dai="mv")):this.provider.videoData.XA?A.dai="cs":this.provider.videoData.mA&&(A.dai="disabled");A.seq=this.sequenceNumber++;if(this.provider.videoData.XK){if(N=this.provider.videoData.XK,A&&N)for(N.ns==="3pp"&&(A.ns="3pp"),this.LD.has(N.ns)&&Oi(this,"hbps"),N.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext= N.shbpslc),R=g.m(Object.keys(N)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,this.GZ.has(Z)||(A[Z]=N[Z])}else A.event="streamingstats",A.docid=this.provider.videoData.videoId,A.ei=this.provider.videoData.eventId;this.isEmbargoed&&(A.embargoed="1");Object.assign(A,this.provider.L.N);(N=A.seq)&&!this.provider.L.experiments.Qf().N.Iv(ISW)&&(R=sh6(this,+N),R=g.qA(R,i11),R=g.Y$(R,4),this.N.set("qclc",[R]));A=g.ip("//"+this.provider.L.gg+"/api/stats/qoe",A);Z=R="";L=g.m(this.N.entries());for(B=L.next();!B.done;B= L.next())f=g.m(B.value),B=f.next().value,f=f.next().value,K=void 0,(K=f)!=null&&K.join&&(B="&"+B+"="+f.join(","),B.length>100?Z+=B:R+=B);this.provider.L.experiments.Qf().N.Iv(ISW)&&(N=sh6(this,+(N||0)),N.qoePingUrl=A+R+Z,g.pE("qoeClientLoggingContext",N),R+="&dl=1");Hmv(this,A+R,Z.replace(/ /g,"%20"))}this.N.clear()}}; g.p.CS=function(A){this.mH=A}; g.p.Yt=function(){if(this.provider.videoData.D){var A=this.provider.videoData.D;Oi(this,"eme-"+(A.keySystemAccess?"final":Sx(A)?"ms":NM(A)?"ytfp":ZA(A)?"safarifp":"nonfinal"))}}; g.p.IU=OD(49);g.p.Qe=function(A){this.isEmbargoed=A}; g.p.J1=OD(26);g.p.ph=OD(32);g.p.onPlaybackRateChange=function(A){var L=g.Ci(this.provider);A&&A!==this.Pz&&(g.TL(this,L,"rate",[A]),this.Pz=A);this.Vj||this.reportStats(L)}; g.p.W9=OD(20);g.p.getPlayerState=function(A){if(g.x(A,128))return"ER";if(g.x(A,2048))return"B";if(g.x(A,512))return"SU";if(g.x(A,16)||g.x(A,32))return"S";if(A.isOrWillBePlaying()&&g.x(A,64))return"B";var L=BtX[Tu(A)];g.wY(this.provider.L)&&L==="B"&&this.provider.Np.getVisibilityState()===3&&(L="SU");L==="B"&&g.x(A,4)&&(L="PB");return L}; g.p.zT=function(A,L){var B=g.Ci(this.provider);g.TL(this,B,"vfi",[A==="A"?"":""+(L!=null?L:0),A])}; g.p.l1=function(){g.Y.prototype.l1.call(this);g.sQ(this.qp);g.sQ(this.jI)}; g.p.ZW=function(A){this.isOffline=A;g.TL(this,g.Ci(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.p.Hn=function(A,L,B){var f=this.TZ.indexOf(A)!==-1;f||this.TZ.push(A);if(!B||!f){L=typeof L!=="string"?f$(L):L;L=kg8(L);if(!B&&!/^t[.]/.test(L)){var K=g.Ci(this.provider)*1E3;L="t."+K.toFixed()+";"+L}mB(this,"ctmp",A+":"+L);Xg(this);return K}}; g.p.jd=function(A,L,B){this.D={Hhx:Number(this.Hn("glrem",{nst:A.toFixed(),rem:L.toFixed(),ca:+B})),Y4:A,pVF:L,isAd:B}}; g.p.C3=function(A,L,B){g.TL(this,g.Ci(this.provider),"ad_playback",[A,L,B])}; g.p.TJ=function(A,L){var B=g.Ci(this.provider)*1E3;mB(this,"daism","t."+B.toFixed(0)+";smw."+(A*1E3).toFixed(0)+";smo."+(L*1E3).toFixed(0))}; g.p.resume=function(){var A=this;isNaN(this.qp)?hIL(this):this.qp=g.Gc(function(){A.reportStats()},1E4)}; var pF={},BtX=(pF[5]="N",pF[-1]="N",pF[3]="B",pF[0]="EN",pF[2]="PA",pF[1]="PL",pF[-1E3]="ER",pF[1E3]="N",pF),ojd=new Set(["PL","B","S"]),kk=[];g.G(Wm,g.Y);g.p=Wm.prototype;g.p.initialize=function(A,L,B){A=A||0;this.policy.N||(L=Ne7(this.N),vnQ(this.Np,new F0(L.video,L.reason)),this.Np.bG(new F0(L.audio,L.reason)));this.policy.N&&Hl(this);this.gT.isManifestless&&kdE(this.T);this.G&&xGe(this.G,this.videoTrack.b1);L=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var f=!this.gT.isManifestless;this.policy.uu&&(f=f||this.gT.SD);if(!this.policy.S4||this.policy.zV)this.currentTime=f?A:L;this.policy.Vj&&this.seek(this.getCurrentTime(),{}).c9(function(){}); if(this.policy.N){var K;((K=this.D)==null?0:gT0(K,this.TP()||""))&&Xhv(this)&&vm(this,this.videoTrack)&&vm(this,this.audioTrack)&&(irE(this.W,this.D),this.policy.D&&imy(this))}else this.Wn&&(Om7(this,this.videoTrack),Om7(this,this.audioTrack),b3Q(this.Wn),delete this.Wn);B?(cjL(this,!1),g.Az(this.Rm)):(A=this.getCurrentTime()===0,h6(this.T,this.videoTrack,this.videoTrack.b1,A),h6(this.T,this.audioTrack,this.audioTrack.b1,A),this.policy.N&&sqE(this.W,{Ay:1}),this.policy.Vj||this.seek(this.getCurrentTime(), {}).c9(function(){}),this.timing.tick("gv")); (this.gT.F3||this.gT.lW||this.gT.SO||this.gT.E0||this.gT.HY)&&this.Np.DW(this.gT)}; g.p.resume=function(){if(this.isSuspended||this.Vb){this.K6=this.Vb=this.isSuspended=!1;try{this.yG()}catch(A){g.mL(A)}}}; g.p.jR=function(){return!this.policy.LD}; g.p.yJ=function(A,L){A=A===void 0?!1:A;L=L===void 0?!1:L;UmL(this);this.Np.R0()&&(this.X=NaN);A?(this.policy.Ys&&this.Hn("loader",{setsmb:1}),this.policy.JF=!0,this.KV()):(cjL(this,!1),L||this.KV())}; g.p.setAudioTrack=function(A,L,B){B=B===void 0?!1:B;if(!this.TL()){var f=!isNaN(L);B&&f&&(this.audioTrack.Wn=Date.now(),this.policy.jD&&(this.Ox=!0));B=this.Np.R0()&&!this.Np.getVideoData().G;if(this.policy.N){var K=this.U.R2(A.id,f);this.Np.bG(K)}else K=this.N,K.W=K.gT.N[A.id],K.X=K.W,K=new NL(K.X,K.V,f?"t":"m"),this.Np.bG(new F0(K.audio,K.reason));f?(this.mH=Date.now(),f=this.audioTrack.b1.index.NV(L),this.Hn("setAudio",{id:A.id,cmt:L,sq:f}),f>=0&&(A=this.policy.Y2?f+1:f,this.policy.N&&this.BL(!0, "mosaic"),V1(this.audioTrack,A,NaN,NaN),!this.policy.m1&&this.gT.isLive&&u7(this.gT,A,!1))):B||this.Np.J8()}}; g.p.setPlaybackRate=function(A){A!==this.yj.getPlaybackRate()&&this.yj.setPlaybackRate(A)}; g.p.T8=function(A){var L=this.W.T;this.W.rC(A);this.Hn("scfidc",{curr:nq(L),"new":nq(A)});A&&nq(A)!==nq(L)&&(this.BL(!0,"caption change"),this.yG())}; g.p.Jm=function(A){this.W.dE(A)}; g.p.VP=function(A){A.N.info.NF()?this.Np.bG(A):vnQ(this.Np,A)}; g.p.YF=function(A){K3(A.Lr[A.Lr.length-1])&&qUL(this,RGE(this.N,A.Lr[0].b1))}; g.p.BA=function(){return this.Np.BA()}; g.p.sb=function(){return this.Np.sb()}; g.p.mG=function(A){this.Np.K().hw()&&this.Hn("sps",{status:A.qn||""});if(A.qn===1)this.ue=0;else if(A.qn===2||A.qn===3){var L=!1;if(A.qn===3){var B;this.k6=(B=A.ubF)!=null?B:Infinity;this.ue+=1;(L=kq(this))&&this.Qt(!0)}this.Np.sM(!0,L)}}; g.p.rW=function(){return this.Np.rW()}; g.p.Ef=function(){return this.Np.Ef()}; g.p.pg=function(A){this.Np.pg(A)}; g.p.Rur=function(){var A,L=(A=this.Np.pD())==null?void 0:A.getCurrentTime();L?this.Np.Hn("rms",{cta:L}):g.Az(this.N8)}; g.p.yG=function(){WYk(this);if(this.AF&&Fi(this.AF)&&!this.AF.Nz()&&(!this.policy.S4||isFinite(this.getCurrentTime()))){var A=n5(this.videoTrack);A=this.policy.Zt&&A&&A.Ad();this.gT.isManifestless&&this.gT.U&&x6(this.gT)?(this.X=x6(this.gT),this.AF.Vr(this.X)):A7(this.gT)&&!A?(A=this.policy.qM?q8(this)-this.timestampOffset:this.getCurrentTime(),isNaN(this.X)?(this.X=A+3600,this.AF.Vr(this.X)):this.X<=A+1800&&(this.X=Math.max(this.X+1800,A+3600),this.AF.Vr(this.X))):this.AF.isView||(A=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.X)||this.X!==A)&&A>0&&(this.AF.Vr(A),this.X=A))}if(!this.TL())if(Pp(this.gT)&&this.gT.LQ()){var L=this.gT;this.handleError("manifest.net.retryexhausted",L.cn?{rc:L.zy}:{rc:L.zy.toString()},1)}else if(this.policy.N)a:{try{if(Pm(this)&&this.yh){var B=this.W,f=this.yh,K=f.N;if(K){var V=B.Np.kA(),J=!0;V||(V=B.loader.getCurrentTime(),J=!1);L=V;var R=J?B.Np.cA(L):L;if(B.loader.qy(R))var Z=!1;else{var N={t:L.toFixed(3),isUtc:J};c:{var F=B.Np.TP();if(F){for(var D= g.m([B.audioTrack,B.videoTrack]),I=D.next();!I.done;I=D.next()){var d=un(I.value.b1,B.gT.iC);V=void 0;var w=((V=K)==null?void 0:V.PA(d,F))||[];if(w.length===0||!Yb7(new ZY(w),R)){var r=!1;break c}}r=!0}else r=!1}if(r)B.loader.Hn("prebuffer",Object.assign(N,{inrange:1})),Z=!0;else{if(Oh(K.info)){var h;if(h=J){var Q,l;h=(((Q=K.info.N)==null?void 0:(l=Q.No)==null?void 0:l.PL)||0)===L*1E3}var C=h}else C=!J&&Xn(K.info)===L*1E3;C?(B.loader.Hn("prebuffer",Object.assign(N,{match:1})),Z=!0):Z=!1}}if(Z){B.Np.S$("ismp_c"); B.N.push(K);var O;(O=B.ZM)==null||j2(O,K.info.wi);K.Vk();t4(f,!1)}}}wg(this.W);this.gT.isManifestless&&this.policy.D&&Zb(this.Ty);var v;((v=this.AF)==null?0:dz(v))&&this.cE();sqE(this.W);if(Pm(this)&&this.yh){var U=this.W,a=this.yh,o0=a.W.pL;if(o0!==void 0&&o0>=0){U.Np.S$("ismp_a");var B6=a.W;var Ve=B6.pL;if(Ve===void 0)var DS=!1;else{var fw=B6.Fu?U.Np.cA(Ve):Ve,ry;if(ry=!U.loader.qy(fw)&&brQ(U,U.Ox)){var uL=U.Np.getCurrentTime()*1E3,Jf=tCk(U,uL),MC=Jf.tP;ry=Jf.lU>=7E3&&MC>=7E3}DS=ry}if(DS){var nw= raE(U,B6);U.policy.Tf>0&&U.Ox.S8++;nw&&(a.N!==nw&&(jjL(a),a.N=nw,a.W=h4),U.Np.S$("ismp_rc"))}}}}catch(Xk){g.CE(Xk);L=Xk;if(L.message.includes("changeType")){this.Hn("ctype",{exp:L.name,msg:L.message,s:L.stack});break a}this.handleError("fmt.unplayable",{exp:L.name,msg:L.message,s:L.stack,trg:"sabrslicerqt"},1)}fqD(this);g.Az(this.sx)}else if(!this.gT.W||!SeS(this.videoTrack)&&!SeS(this.audioTrack)||(this.videoTrack.U||this.audioTrack.U)&&this.policy.ql?B=!1:(this.KV(),this.Np.seekTo(Infinity,{zZ:"checkLoaderTracksSync", OU:!0}),B=!0),!B){WYk(this);this.gT.isManifestless&&(ROS(this.videoTrack),ROS(this.audioTrack),Zb(this.Ty),(B=Db(this.videoTrack))&&B.N&&(B=B.N.V&&!this.policy.In,this.Hn(B===this.policy.G.D5?"strm":"strmbug",{strm:B,sfmp4:this.policy.G.D5,dfs:this.policy.In},!0)));if(this.AF)this.cE();else if(this.policy.U){B=!1;if(this.policy.Ss)for(f=g.m([this.videoTrack,this.audioTrack]),K=f.next();!K.done;K=f.next()){Z=K.value;for(K=Db(Z);K&&Z.vL()!==n5(Z);K=Db(Z))Z.Bg(K);B=B||!!K}else(L=Db(this.videoTrack))&& this.videoTrack.Bg(L),(J=Db(this.audioTrack))&&this.audioTrack.Bg(J);oP(this.videoTrack)&&oP(this.audioTrack)||(L||J||B)&&IS(this)}En7(this);h6(this.T,this.videoTrack,this.videoTrack.b1,!1);h6(this.T,this.audioTrack,this.audioTrack.b1,!1);if(!this.policy.g4&&(L=this.videoTrack,f=this.audioTrack,(!this.AF||Fi(this.AF)&&!this.policy.Tg)&&!this.Ty.isSeeking()&&(this.policy.N||Zz(L)&&L.b1.w1()&&this.N.Wn)))a:{if(J=this.getCurrentTime(),B=this.yj,f=af(B,L.b1.info.lC,f.b1.info.lC,0),K=nh(B.Ml)+f/ub(B.Ml), J+=Math.max(K,K+B.policy.VL-f/L.b1.info.lC),L.W.length){if(L.W[0].info.Lr[0].startTime<=J)break a;Va(L)}B=L.V;for(f=B.W.length-1;f>=0;f--)B.W[f].info.startTime>J&&B.W.pop();f_L(L);L.N&&J5&&N.yj.shift();L=L.XD;var F;if((F=this.Np.getVideoData())==null?0:F.enableServerStitchedDai)F=Dg0(this.audioTrack,L),B=Dg0(this.videoTrack,L),F!==0&&B!==0&&F!==B&&this.handleError("ssdai.avsync",{sq:L,a:F,v:B}, 0)}}; g.p.RB=function(A,L,B,f){A.info.video&&this.V.RB(L,B,f)}; g.p.mQ=function(A){this.N.mQ(A)}; g.p.e2=function(){return this.TV}; g.p.vT=function(){return this.videoTrack.T||this.audioTrack.T}; g.p.seek=function(A,L){if(this.TL())return $A();if(this.vT())return $A("seeking to head");if(this.policy.Vj&&!isFinite(A))return ss0(this.Ty),g.iX(Infinity);WYk(this);Ff0(this,A,!1,L.seekSource);Hl(this);this.policy.N||En7(this,A);this.AF&&this.AF.N&&this.AF.W&&!this.Np.getVideoData().uu&&(this.AF.N.isLocked()||this.AF.W.isLocked())&&this.Np.J8({reattachOnLockedBuffer:1,vsb:""+this.AF.W.isLocked(),asb:""+this.AF.N.isLocked()});var B=this.getCurrentTime(),f=this.Ty.seek(A,L);if(!this.policy.S4||this.policy.zV)this.currentTime= f;ZU(this.V,A,B,this.policy.UO&&!L.Cu);IS(this);return g.iX(f)}; g.p.G6=function(A){return this.policy.N&&this.W.G6(A)}; g.p.VZ=function(A){return this.W.VZ(A)}; g.p.BL=function(A,L){this.W.BL(A,L)}; g.p.getCurrentTime=function(){if(this.policy.S4){var A=this.pY()||0;return this.Np.getCurrentTime(!0)-A}return this.currentTime}; g.p.iI=function(){return this.audioTrack.b1.info}; g.p.bf=function(){return this.videoTrack.b1.info}; g.p.R3=function(){return this.audioTrack.b1.info.Bn}; g.p.SC=function(){return this.videoTrack.b1.info.Bn}; g.p.l1=function(){try{this.yJ(),Va(this.audioTrack),Va(this.videoTrack),Nq(this.audioTrack),Nq(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.Y.prototype.l1.call(this)}catch(A){g.mL(A)}}; g.p.handleError=function(A,L,B){B=B===void 0?0:B;var f=Vu(B);A==="fmt.unplayable"&&this.gT.isLive&&(this.policy.h8=!1,zW(this.gT));L=new g.K$(A,L,B);g.$W(this);f$(L.details);this.Np.handleError(L);A!=="html5.invalidstate"&&L.errorCode!=="fmt.unplayable"&&A!=="fmt.unparseable"&&f&&this.dispose()}; g.p.Ov=function(){var A=n5(this.audioTrack),L=n5(this.videoTrack);A={lct:this.getCurrentTime().toFixed(3),lsk:this.Ty.isSeeking(),lmf:this.N.N.isLocked(),lbw:wEQ(this.schedule).toFixed(3),lhd:nh(this.schedule).toFixed(3),lst:((this.schedule.X.pw()||0)*1E9).toFixed(3),laa:A?A.Dx():"",lva:L?L.Dx():"",lar:this.audioTrack.N?this.audioTrack.N.Dx():"",lvr:this.videoTrack.N?this.videoTrack.N.Dx():"",laq:""+Bl(this.audioTrack),lvq:""+Bl(this.videoTrack)};this.AF&&!this.AF.vV()&&this.AF.N&&this.AF.W&&(A.lab= zv(this.AF.N.Hk()),A.lvb=zv(this.AF.W.Hk()));this.qp&&(A.lapt=((0,g.bc)()-this.qp).toFixed(0),A.lapr=Pzv(this));this.JF&&(A.lapmabht=((0,g.bc)()-this.JF).toFixed(0),A.lapmabh=Sb(this,this.audioTrack).toFixed(0));this.Ys&&(A.lapmvbht=((0,g.bc)()-this.Ys).toFixed(0),A.lapmvbh=Sb(this,this.videoTrack).toFixed(0));this.S4&&(A.lapsdai=((0,g.bc)()-this.S4).toFixed(0));return A}; g.p.KV=function(){try{this.policy.N&&this.W.BL(!1,"pending"),this.audioTrack.KV(),this.videoTrack.KV()}catch(A){g.mL(A)}this.policy.U=""}; g.p.qy=function(A){return this.videoTrack&&this.audioTrack?this.videoTrack.qy(A)&&this.audioTrack.qy(A):!0}; g.p.Su=function(){return zD(this.yj)}; g.p.Hn=function(A,L,B){this.Np.Hn(A,L,B===void 0?!1:B)}; g.p.TP=function(){return this.Np.TP()}; g.p.OU=function(A,L){A/=L;isNaN(this.timestampOffset)&&Zhw(this,A-Math.min(A,this.policy.aD));return(A-this.timestampOffset)*L}; g.p.pY=function(){return this.timestampOffset}; g.p.isSeeking=function(){return this.Ty.isSeeking()}; g.p.T3=function(){this.V.T3()}; g.p.EU=function(A,L,B){L=L===void 0?!1:L;B=B===void 0?{}:B;this.policy.N?this.U.EU(A,L,B):this.N.EU(A,L,B)}; g.p.bF=function(A,L){if(this.policy.W&&(this.tU||this.isSeeking()))return this.Hn("sdai",{ignoreSkip:"1",isSkip:this.tU,isSeek:this.isSeeking(),t:A.toFixed(3)}),!1;var B=this.policy.W&&(this.policy.T||this.policy.a7),f=this.videoTrack.b1.index.NV(A),K=!1;if(B){var V;if(K=!((V=this.Vj)==null||!V.s5(A,f,this.timestampOffset)))if(Vi(this,A,A,f),this.TV){var J;(J=this.TV)==null||J.s5(A,f)}}else this.TV&&(K=!!this.V.bF(A,this.TV));if(!K)return this.handleError("ad.skipfailed",{dec:!!this.TV,t:A.toFixed(3), sq:f}),!1;this.policy.W&&(this.Hn("sdai",{skipAdStd:"1"}),this.tU=!0);if(this.policy.o4){var R;(R=this.nD)==null||R.clear()}Zhw(this,this.timestampOffset-L);IS(this);this.policy.W&&(zW(this.gT),Nq(this.audioTrack),Nq(this.videoTrack),this.KV());return!0}; g.p.getManifest=function(){return this.gT}; g.p.isOffline=function(){return!!this.Np.getVideoData().cotn}; g.p.MX=function(A,L){this.Np.MX(A,L)}; g.p.Qb=function(A,L){if(this.policy.N)Ff0(this,A,!0,L),this.W.BL(!0,"utc"),this.yG();else if(L=this.Np.getVideoData().Sg){var B=this.T;B.XH=A;B.Sg=L;lR(this)}}; g.p.o5=function(A){this.videoTrack.T=!1;this.audioTrack.T=!1;this.Ty.N=!1;this.Np.o5(A)}; g.p.kz=function(A){this.Ty.kz(A-this.pY())}; g.p.Uw=function(){this.Np.Uw()}; g.p.Qt=function(A){A!==this.policy.b2&&((this.policy.b2=A)||this.yG())}; g.p.J8=function(A){this.Np.J8(A)}; g.p.CS=function(A){this.Np.CS(A)}; g.p.cg=function(A,L,B){var f;(f=this.Vj)==null||f.cg(A,L,B);this.policy.T&&(this.W.X=void 0,this.yG())}; g.p.gM=function(A){var L;(L=this.Vj)==null||L.gM(A)}; g.p.TW=function(A,L){if(this.policy.T){var B,f=(B=A.x5)==null?void 0:B[0],K=this.Np.getVideoData(),V,J;B=((V=K.playerResponse)==null?0:(J=V.playerConfig)==null?0:J.daiConfig)?K.mA?1:K.B4?2:0:3;var R;(R=this.Vj)==null||R.TW(A,L,this.TV||void 0,B);var Z,N,F;this.Hn("clidai",{onqlst:1,len:((Z=A.x5)==null?void 0:Z.length)||0,rn:L,evt:uVy(f==null?void 0:(N=f.U9)==null?void 0:N.event),cid:(f==null?void 0:(F=f.U9)==null?void 0:F.identifier)||"null",sq:(f==null?void 0:f.td)||-1,trk:(f==null?void 0:f.trackType)|| "null",disr:B})}}; g.p.prefetchKeyPlay=function(A,L){var B=this;if(Pm(this)){var f=uvQ().legacyApplicationQuality==="limited-memory";this.policy.iA&&f||(this.yh||(this.yh=new bP(function(K){B.Np.S$(K)}),g.W(this,this.yh)),y71(this.yh,{pL:A, Fu:L,Ay:2}),this.yG())}}; g.p.jU=function(){this.Uv++}; g.p.EX=function(){this.Uv=0};g.G(xk,g.SN);g.G(en,xk);en.prototype.T=function(A,L){if(A&&L){var B=Number(Ew(A,"cpi"))*1+1;isNaN(B)||B<=0||Bthis.V&&(this.V=B,g.mi(this.N)||(this.N={},this.U.stop(),this.W.stop())),this.N[L]=A,g.Az(this.W))}}; en.prototype.D=function(){for(var A=g.m(Object.keys(this.N)),L=A.next();!L.done;L=A.next()){var B=L.value;L=this.publish;for(var f=this.V,K=g.bp(this.N[B]),V=[],J=g.m(K[6].split("&")),R=J.next();!R.done;R=J.next())R=R.value,R.indexOf("cpi=")===0?V.push("cpi="+f.toString()):R.indexOf("ek=")===0?V.push("ek="+g.v5(B)):V.push(R);K[6]="?"+V.join("&");B="skd://"+K.slice(2).join("");K=B.length*2;f=new Uint8Array(K+4);f[0]=K%256;f[1]=(K-f[0])/256;for(K=0;K0)for(var B=g.m(this.N),f=B.next();!f.done;f=B.next())if(L===f.value.info.cryptoPeriodIndex){L=!0;break a}L=!1}if(!L){L=(0,g.bc)();a:{B=A.cryptoPeriodIndex;if(!isNaN(B)){f=g.m(this.V.values());for(var K=f.next();!K.done;K=f.next())if(Math.abs(K.value.cryptoPeriodIndex-B)<=1){B=!0;break a}}B=!1}B?(B=A.N,B=Math.max(0,Math.random()*((isNaN(B)?120:B)-30))*1E3):B=0;this.publish("log_qoe",{wvagt:"delay."+B,cpi:A.cryptoPeriodIndex,reqlen:this.N.length}); B<=0?d5D(this,A):(this.N.push({time:L+B,info:A}),g.Az(this.W,B))}}; ni.prototype.l1=function(){this.N=[];xk.prototype.l1.call(this)};var y8={},g5k=(y8.DRM_TRACK_TYPE_AUDIO="AUDIO",y8.DRM_TRACK_TYPE_SD="SD",y8.DRM_TRACK_TYPE_HD="HD",y8.DRM_TRACK_TYPE_UHD1="UHD1",y8);g.G(yYS,g.Y);g.G(rYy,g.SN);g.p=rYy.prototype;g.p.Cl=function(A){var L=this;if(!(this.TL()||A.size<=0)){var B={};A.forEach(function(f,K){var V=Rj(L.W)?K:f;K=new Uint8Array(Rj(L.W)?f:K);Rj(L.W)&&cYC(K);f=g.Y$(K,4);cYC(K);K=g.Y$(K,4);L.N[f]?L.N[f].status=V:L.N[K]?L.N[K].status=V:L.N[f]={type:"",status:V};Ohy(L,L.N[f].type,B)}); $5y(this,",");zL(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.p.error=function(A,L,B,f){this.TL()||(this.publish("licenseerror",A,L,B,f),A==="drm.provision"&&(A=(Date.now()-this.T)/1E3,this.T=NaN,this.publish("ctmp","provf",{et:A.toFixed(3)})));Vu(L)&&this.dispose()}; g.p.shouldRetry=function(A,L){return!A&&this.requestNumber===L.requestNumber}; g.p.l1=function(){this.N={};g.SN.prototype.l1.call(this)}; g.p.Ov=function(){var A={ctype:this.G.contentType||"",length:this.G.initData.length,requestedKeyIds:this.ZM,cryptoPeriodIndex:this.cryptoPeriodIndex};this.V&&(A.keyStatuses=this.N);return A}; g.p.getInfo=function(){var A=this.U.join();if(u3(this)){var L=new Set,B;for(B in this.N)this.N[B].status!=="usable"&&L.add(this.N[B].type);A+="/UKS."+Array.from(L)}return A+="/"+this.cryptoPeriodIndex}; g.p.MQ=function(){return this.url};g.G(At,g.Y);g.p=At.prototype;g.p.f0=function(A){if(this.D){var L=A.messageType||"license-request";this.D(new Uint8Array(A.message),L)}}; g.p.Cl=function(){this.X&&this.X(this.N.keyStatuses)}; g.p.onClosed=function(){this.TL()||g.xz("xboxone")&&this.V&&this.V("closedShouldNotRetry")}; g.p.y7=function(A){this.D&&this.D(A.message,"license-request")}; g.p.Na=function(A){if(this.V){if(this.W){var L=this.W.error.code;A=this.W.error.systemCode}else L=A.errorCode,A=A.systemCode;this.V("t.prefixedKeyError;c."+L+";sc."+A,L,A)}}; g.p.dc=function(){this.T&&this.T()}; g.p.update=function(A){var L=this;if(this.N)return this.N.update(A).then(null,SH(function(B){Yty(L,"t.update",B)})); this.W?this.W.update(A):this.element.addKey?this.element.addKey(this.G.keySystem,A,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.G.keySystem,A,this.initData,this.sessionId);return OQ()}; g.p.l1=function(){this.N&&(this.yj?this.N.close().catch(g.CE):this.N.close());this.element=null;g.Y.prototype.l1.call(this)};g.G(LR,g.Y);g.p=LR.prototype;g.p.setServerCertificate=function(){return this.W.setServerCertificate?this.N.flavor==="widevine"&&this.N.LL?this.W.setServerCertificate(this.N.LL):F5(this.N)&&this.N.xf?this.W.setServerCertificate(this.N.xf):null:null}; g.p.createSession=function(A,L){var B=A.initData;if(this.N.keySystemAccess){L&&L("createsession");var f=this.W.createSession();NM(this.N)?B=v5C(B,this.N.xf):F5(this.N)&&(B=D5E(B)||new Uint8Array(0));L&&L("genreq");A=f.generateRequest(A.contentType,B);var K=new At(null,null,null,f,null,this.X);A.then(function(){L&&L("genreqsuccess")},SH(function(J){Yty(K,"t.generateRequest",J)})); return K}if(Sx(this.N))return PbE(this,B);if(ZA(this.N))return qt8(this,B);if((f=this.element)==null?0:f.generateKeyRequest)this.element.generateKeyRequest(this.N.keySystem,B);else{var V;(V=this.element)==null||V.webkitGenerateKeyRequest(this.N.keySystem,B)}return this.U=new At(this.element,this.N,B,null,null,this.X)}; g.p.xM=function(A){var L=x5y(this,A);L&&L.y7(A)}; g.p.sy=function(A){var L=x5y(this,A);L&&L.Na(A)}; g.p.C0=function(A){var L=x5y(this,A);L&&L.dc(A)}; g.p.getMetrics=function(){var A=null;if(this.W&&this.W.getMetrics)try{A=this.W.getMetrics()}catch(L){}return A}; g.p.l1=function(){this.V=this.W=null;var A;(A=this.U)==null||A.dispose();A=g.m(Object.values(this.T));for(var L=A.next();!L.done;L=A.next())L.value.dispose();this.T={};g.Y.prototype.l1.call(this);delete this.element};g.p=oc.prototype;g.p.get=function(A){A=this.findIndex(A);return A!==-1?this.values[A]:null}; g.p.remove=function(A){A=this.findIndex(A);A!==-1&&(this.keys.splice(A,1),this.values.splice(A,1))}; g.p.removeAll=function(){this.keys=[];this.values=[]}; g.p.set=function(A,L){var B=this.findIndex(A);B!==-1?this.values[B]=L:(this.keys.push(A),this.values.push(L))}; g.p.findIndex=function(A){return g.xW(this.keys,function(L){return g.wo(A,L)})};g.G(z0C,g.SN);g.p=z0C.prototype;g.p.YEj=function(A){this.Jd({onecpt:1});A.initData&&Aiy(this,new Uint8Array(A.initData),A.initDataType)}; g.p.d8F=function(A){this.Jd({onndky:1});Aiy(this,A.initData,A.contentType)}; g.p.kD=function(A){this.Jd({onneedkeyinfo:1});this.L.J("html5_eme_loader_sync")&&(this.X.get(A.initData)||this.X.set(A.initData,A));aq7(this,A)}; g.p.It=function(A){this.V.push(A);BY(this)}; g.p.createSession=function(A){var L=o2e(this)?mM1(A):g.Y$(A.initData);this.W.get(L);this.ZM=!0;A=new rYy(this.videoData,this.L,A,this.drmSessionId);this.W.set(L,A);A.subscribe("ctmp",this.CT,this);A.subscribe("keystatuseschange",this.Cl,this);A.subscribe("licenseerror",this.FU,this);A.subscribe("newlicense",this.B8,this);A.subscribe("newsession",this.P8,this);A.subscribe("sessionready",this.Uz,this);A.subscribe("fairplay_next_need_key_info",this.Gz,this);this.L.J("html5_enable_vp9_fairplay")&&A.subscribe("qualitychange", this.WK,this);A.subscribe("sabrlicenseconstraint",this.RdL,this);bhS(A,this.U)}; g.p.B8=function(A){this.TL()||(this.Jd({onnelcswhb:1}),A&&!this.heartbeatParams&&(this.heartbeatParams=A,this.publish("heartbeatparams",A)))}; g.p.P8=function(){this.TL()||(this.Jd({newlcssn:1}),this.V.shift(),this.ZM=!1,BY(this))}; g.p.Uz=function(){if(Sx(this.N)&&(this.Jd({onsnrdy:1}),this.S4--,this.S4===0)){var A=this.Wn,L,B;(L=A.element)==null||(B=L.msSetMediaKeys)==null||B.call(L,A.V)}}; g.p.Cl=function(A){if(!this.TL()){this.JF||(this.JF=!0,this.L.hw()&&BM6(this));this.Jd({onksch:1});var L=this.WK;if(!u3(A)&&g.ns&&A.W.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var B="large";else{B=[];var f=!0;if(u3(A))for(var K=g.m(Object.keys(A.N)),V=K.next();!V.done;V=K.next())V=V.value,A.N[V].status==="usable"&&B.push(A.N[V].type),A.N[V].status!=="unknown"&&(f=!1);if(!u3(A)||f)B=A.U;B=ih0(B)}L.call(this,B);if(A.L.J("html5_enable_vp9_fairplay")&&F5(A.W))L=A.yj; else{if(!u3(A))for(L={},B=g.m(A.U),f=B.next();!f.done;f=B.next())Ohy(A,f.value,L);L=A.authorizedFormats}this.videoData.authorizedFormats=L;this.publish("keystatuseschange",A)}}; g.p.CT=function(A,L){this.TL()||this.publish("ctmp",A,L)}; g.p.Gz=function(A,L){this.TL()||this.publish("fairplay_next_need_key_info",A,L)}; g.p.FU=function(A,L,B,f){this.TL()||(this.videoData.J("html5_log_drm_metrics_on_error")&&BM6(this),this.publish("licenseerror",A,L,B,f))}; g.p.Vt=function(){return this.G}; g.p.WK=function(A){var L=g.XX("auto",A,!1,"l");if(this.videoData.B$){if(this.G.equals(L))return}else if(kiD(this.G,A))return;this.G=L;this.publish("qualitychange");this.Jd({updtlq:A})}; g.p.RdL=function(A){this.videoData.sabrLicenseConstraint=A}; g.p.l1=function(){var A,L;this.N.keySystemAccess&&this.element&&!((A=this.mediaElement)==null?0:(L=A.Np)==null?0:L.R0())&&(this.Vj?this.element.setMediaKeys(null).catch(g.CE):this.element.setMediaKeys(null));this.element=null;this.V=[];A=g.m(this.W.values());for(L=A.next();!L.done;L=A.next())L=L.value,L.unsubscribe("ctmp",this.CT,this),L.unsubscribe("keystatuseschange",this.Cl,this),L.unsubscribe("licenseerror",this.FU,this),L.unsubscribe("newlicense",this.B8,this),L.unsubscribe("newsession",this.P8, this),L.unsubscribe("sessionready",this.Uz,this),L.unsubscribe("fairplay_next_need_key_info",this.Gz,this),this.L.J("html5_enable_vp9_fairplay")&&L.unsubscribe("qualitychange",this.WK,this),L.dispose();this.W.clear();this.T.removeAll();this.X.removeAll();this.heartbeatParams=null;g.SN.prototype.l1.call(this)}; g.p.Ov=function(){for(var A={systemInfo:this.N.Ov(),sessions:[]},L=g.m(this.W.values()),B=L.next();!B.done;B=L.next())A.sessions.push(B.value.Ov());return A}; g.p.getInfo=function(){return this.W.size<=0?"no session":""+this.W.values().next().value.getInfo()+(this.D?"/KR":"")}; g.p.Jd=function(A,L){L=L===void 0?!1:L;this.TL()||(f$(A),(this.L.hw()||L)&&this.publish("ctmp","drmlog",A))};var Ji6=!1,RVv=!1;g.G(NME,g.Y);g.p=NME.prototype;g.p.Nm=function(){return!!this.Ld}; g.p.AT=function(){return this.W}; g.p.handleError=function(A){var L=this;pOC(this,A);var B;if(B=!((A.errorCode==="html5.invalidstate"||A.errorCode==="fmt.unplayable"||A.errorCode==="fmt.unparseable")&&wO6(this,A.errorCode,A.details)))if(B=!GC7(this,A))this.videoData.errorDetail==="7"&&g.wY(this.tF)?(g2e(this,"innertube_player_reload_required"),B=!0):B=!1,B=!B;if(B)if(this.tF.Wn!=="yt"&&j5C(this,A)&&this.videoData.jD&&(0,g.bc)()/1E3>this.videoData.jD&&Rq(this.videoData)&&(B=Object.assign({e:A.errorCode},A.details),B.stalesigexp="1", B.expire=Math.round(this.videoData.jD*1E3),B.init=Math.round(this.videoData.IT),B.now=Math.round((0,g.bc)()),A=new g.K$(A.errorCode,B,2),this.Np.O9(A.errorCode,2,"SIGNATURE_EXPIRED",f$(A.details))),Vu(A.severity)){var f;B=(f=this.Np.loader)==null?void 0:f.N.N;if(this.tF.J("html5_use_network_error_code_enums"))if(yiw(A)&&B&&B.isLocked())var K="FORMAT_UNAVAILABLE";else if(this.tF.T||A.errorCode!=="auth"||A.details.rc!==429)A.errorCode==="ump.spsrejectfailure"&&(K="HTML5_SPS_UMP_STATUS_REJECTED");else{K= "TOO_MANY_REQUESTS";var V="6"}else yiw(A)&&B&&B.isLocked()?K="FORMAT_UNAVAILABLE":this.tF.T||A.errorCode!=="auth"||A.details.rc!=="429"?A.errorCode==="ump.spsrejectfailure"&&(K="HTML5_SPS_UMP_STATUS_REJECTED"):(K="TOO_MANY_REQUESTS",V="6");this.Np.O9(A.errorCode,A.severity,K,f$(A.details),V)}else this.Np.publish("nonfatalerror",A),f=/^pp/.test(this.videoData.clientPlaybackNonce),this.Ho(A.errorCode,A.details),f&&A.errorCode==="manifest.net.connect"&&(A="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.bc)(),x5(A,"manifest",function(J){L.T=!0;L.Hn("pathprobe",J)},function(J){L.Ho(J.errorCode,J.details)}))}; g.p.Hn=function(A,L){this.Np.CY.Hn(A,L)}; g.p.Ho=function(A,L){L=f$(L);this.Np.CY.Ho(A,L)};KR.prototype.M_=function(A){var L=hV0(this);if(!A)return{nP:fr,wU:fr,uO:fr,yH:fr,iU:fr,vX:fr,PX:L};var B=fr;if(EO(L)||this.J("html5_perf_cap_override_sticky"))B=XO8(this,A);return{nP:B,wU:mI8(this,A),uO:TM0(this,A),yH:OT8(this,A.videoData),iU:E2E(this,A.videoData,A),vX:tb6(this,A),PX:L}}; KR.prototype.Ms=function(A){if(g.wY(this.L)&&u6(this.L.D,a4.HEIGHT))var L=A.N.videoInfos[0].video.qualityOrdinal;else{var B=this.T4(!!A.N.N);y7(A.videoData)||Bh(A.videoData);A=A.N.videoInfos;if(A.length){var f=.85,K=A[0].video;K.projectionType!=="MESH"&&K.projectionType!=="EQUIRECTANGULAR"&&K.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||WL||(f=.45);K=g.Am(this.L.experiments,"html5_viewport_undersend_maximum");for(var V=0;V=0,stateAtSend:L,joinLatencySecs:V,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:f,playerCanaryStage:K,isAd:this.provider.videoData.isAd(),liveMode:B,hasDrm:!!g.Cr(this.provider.videoData),isGapless:this.provider.videoData.X,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:iS(this.provider.videoData)};A||g.pE("html5PlayerHealthEvent",L);this.V=!0;this.dispose()}}; Jt.prototype.l1=function(){this.V||this.send();window.removeEventListener("error",this.f_);window.removeEventListener("unhandledrejection",this.f_);g.Y.prototype.l1.call(this)}; var fiB=/\bnet\b/;W4E.prototype.update=function(){if(this.G){var A=this.Fb()||0,L=g.Ci(this.provider);A>=this.provider.Np.getDuration()-.1&&(this.previouslyEnded=!0);if(A!==this.N||xI6(this,A,L)){var B;if(!(B=AL-this.gN+2||xI6(this,A,L))){B=this.provider.Np.getVolume();var f=B!==this.Wn,K=this.provider.Np.isMuted()?1:0;K!==this.yj?(this.yj=K,B=!0):(!f||this.U>=0||(this.Wn=B,this.U=L),B=L-this.U,this.U>=0&&B>2?(this.U=-1,B=!0):B=!1)}B&&(Rc(this),this.V=A);this.gN=L;this.N=A}}}; W4E.prototype.Fb=function(){var A=this.provider.Np.Fb();return gp(this.provider.videoData)?A+this.provider.Np.pY():A};eVE.prototype.send=function(A){var L=this;if(!this.cn){var B=zVC(this),f=g.ip(this.uri,B);this.L.J("vss_through_gel_double")&&uT1(f);this.ZM&&!this.L.J("html5_simplify_pings")?BPv(this,f):n2D(this,A).then(function(K){if(L.nD){K=K||{};K.method="POST";var V=fU8(L);V&&(K.postBody=V)}L.ZM&&(K=K||{},K.method="POST",K.postParams={atr:L.attestationResponse});hB(f,K,{token:L.qp,sR:L.mH,mdxEnvironment:L.mdxEnvironment},L.L,A,L.wT,L.isFinal&&L.Bk||L.JF||L.V&&L.Pk)}); this.cn=!0}}; eVE.prototype.W=function(A){A===void 0&&(A=NaN);return Number(A.toFixed(3)).toString()}; var jD={},LxC=(jD.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,jD.LIVING_ROOM_APP_MODE_MAIN=1,jD.LIVING_ROOM_APP_MODE_KIDS=2,jD.LIVING_ROOM_APP_MODE_MUSIC=3,jD.LIVING_ROOM_APP_MODE_UNPLUGGED=4,jD.LIVING_ROOM_APP_MODE_GAMING=5,jD),gr={},A4L=(gr.EMBEDDED_PLAYER_MODE_UNKNOWN=0,gr.EMBEDDED_PLAYER_MODE_DEFAULT=1,gr.EMBEDDED_PLAYER_MODE_PFP=2,gr.EMBEDDED_PLAYER_MODE_PFL=3,gr);g.G(N9,g.Y);g.p=N9.prototype; g.p.uf=function(){if(!this.V){this.provider.videoData.hG===16623&&g.CE(Error("Playback for EmbedPage"));var A=Ic(this,"playback");this.G=KxE(this);P$0(this.N);A.X=D5(this);this.W>0&&(A.N-=this.W);A.send();if(this.provider.videoData.Ae){A=this.provider.L;var L=this.provider.videoData,B={html5:"1",video_id:L.videoId,cpn:L.clientPlaybackNonce,ei:L.eventId,ptk:L.Ae,oid:L.gO,ptchn:L.YZ,pltype:L.rO,content_v:uj(L)};L.y5&&Object.assign(B,{m:L.y5});A=g.ip(A.vI+"ptracking",B);Z50(this,A)}this.provider.videoData.qo|| (NP7(this),FxS(this));this.V=!0;A=this.N;A.N=A.Fb();A.gN=g.Ci(A.provider);!(A.V===0&&A.N<5)&&A.N-A.V>2&&(A.V=A.N);A.G=!0}}; g.p.onProgress=function(){this.N.update();SLe(this)&&(NP7(this),FxS(this))}; g.p.l1=function(){g.Y.prototype.l1.call(this);dw(this);qV6(this.N)}; g.p.Ov=function(){return zVC(Ic(this,"playback"))}; g.p.b0=function(A){var L=Ic(this,"engage");L.Vj=A;return abv(L,pj6(this.provider))};wjQ.prototype.isEmpty=function(){return this.endTime===this.startTime};pR.prototype.J=function(A){return this.L.J(A)}; pR.prototype.getCurrentTime=function(){return this.Np.getCurrentTime()}; pR.prototype.Fb=function(){return this.Np.Fb()}; var y47={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.G(g.yn,g.Y);g.p=g.yn.prototype;g.p.uf=function(){this.N&&this.N.uf();this.W&&this.W.uf()}; g.p.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.l0){var A;(A=this.V.get(this.l0))==null||A.onProgress()}else if(this.N)this.N.onProgress()}; g.p.Qe=function(A){this.qoe&&this.qoe.Qe(A)}; g.p.J1=OD(25);g.p.ph=OD(31);g.p.TJ=function(A,L){this.qoe&&this.qoe.TJ(A,L)}; g.p.Om=function(){if(this.provider.videoData.enableServerStitchedDai&&this.l0){var A;(A=this.V.get(this.l0))!=null&&Rc(A.N)}else this.N&&Rc(this.N.N)}; g.p.Ho=function(A,L){this.qoe&&tgk(this.qoe,A,L);if(this.W)this.W.onError(A)}; g.p.zT=function(A,L){switch(A){case "M":var B;(B=this.qoe)==null||B.zT(A,L);break;case "A":var f;(f=this.qoe)==null||f.zT(A)}}; g.p.onPlaybackRateChange=function(A){if(this.qoe)this.qoe.onPlaybackRateChange(A);this.N&&Rc(this.N.N)}; g.p.IU=OD(48);g.p.Hn=function(A,L,B){this.qoe&&this.qoe.Hn(A,L,B)}; g.p.jd=function(A,L,B){this.qoe&&this.qoe.jd(A,L,B)}; g.p.nS=function(A){var L;(L=this.qoe)==null||L.nS(A)}; g.p.DW=function(A){var L;(L=this.qoe)==null||L.DW(A)}; g.p.XY=function(A,L,B,f){var K;(K=this.qoe)==null||K.XY(A,L,B,f)}; g.p.CS=function(A){this.qoe&&this.qoe.CS(A)}; g.p.C3=function(A,L,B){this.qoe&&this.qoe.C3(A,L,B)}; g.p.W9=OD(19);g.p.HT=function(){if(this.qoe)return this.qoe.HT()}; g.p.Ov=function(){if(this.provider.videoData.enableServerStitchedDai&&this.l0){var A,L;return(L=(A=this.V.get(this.l0))==null?void 0:A.Ov())!=null?L:{}}return this.N?this.N.Ov():{}}; g.p.Vu=function(){var A;return(A=this.qoe)==null?void 0:A.Vu()}; g.p.fC=function(A,L){var B;(B=this.qoe)==null||B.fC(A,L)}; g.p.b0=function(A){return this.N?this.N.b0(A):function(){}}; g.p.getVideoData=function(){return this.provider.videoData}; g.p.resume=function(){this.qoe&&this.qoe.resume()};g.G(g.gw,g.Y);g.p=g.gw.prototype;g.p.dX=function(A,L){this.sync();L&&this.N.array.length>=2E3&&this.Ln("captions",1E4);L=this.N;if(A.length>1&&A.length>L.array.length)L.array=L.array.concat(A),L.array.sort(L.N);else{A=g.m(A);for(var B=A.next();!B.done;B=A.next())B=B.value,!L.array.length||L.N(B,L.array[L.array.length-1])>0?L.array.push(B):g.px(L.array,B,L.N)}this.V=NaN;this.sync()}; g.p.K9=function(A){A.length>1E4&&g.CE(new g.iL("Over 10k cueRanges removal occurs with a sample: ",A[0]));if(!this.TL()){var L=new Set(A);this.W=this.W.filter(function(B){return!L.has(B)}); lUy(this.N,L);this.sync()}}; g.p.yx=function(A){if(!this.TL()){var L=this.Ef().find(function(B){return B.id===void 0&&B.namespace===A}); L&&this.K9([L])}}; g.p.Ln=function(A,L){var B=(isNaN(this.V)?CPD(this):this.V)-L;L=this.Ef().filter(function(f){return f.namespace===A&&f.endthis.N,V=g.x(B,8)&&g.x(B,16),J=this.Np.WI().isBackground()||B.isSuspended();mI(this,this.sx,V&&!J,K,"qoe.slowseek",function(){},"timeout"); var R=isFinite(this.N);R=V&&R&&L.J3(this.N);var Z=!f||Math.abs(f-this.N)>10,N=this.L.J("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),F=f===0&&this.W&&[11,10].includes(this.W);mI(this,this.cn,R&&Z&&!J&&(!N||!F),K,"qoe.slowseek",function(){L.seekTo(A.N)},"set_cmt"); Z=R&&aT(L.YJ(),this.N);var D=this.Np.loader;R=!D||D.jR();var I=function(){L.seekTo(A.N+.001)}; mI(this,this.JF,Z&&R&&!J,K,"qoe.slowseek",I,"jiggle_cmt");R=function(){return A.Np.A1()}; mI(this,this.Ys,Z&&!J,K,"qoe.slowseek",R,"new_elem");var d=kF(B);F=B.isBuffering();var w=L.YJ(),r=uQ(w,f),h=r>=0&&w.end(r)>f+5;Z=d&&F&&h;N=this.Np.getVideoData();mI(this,this.S4,f<.002&&this.N<.002&&V&&g.wY(this.L)&&g.zp(N)&&!J,K,"qoe.slowseek",R,"slow_seek_shorts");mI(this,this.yj,N.zt()&&V&&!J&&!N.G,K,"qoe.slowseek",R,"slow_seek_gapless_shorts");mI(this,this.Wn,Z&&!J,d&&!F,"qoe.longrebuffer",I,"jiggle_cmt");mI(this,this.qp,Z&&!J,d&&!F,"qoe.longrebuffer",R,"new_elem_nnr");if(D){var Q=D.getCurrentTime(); V=L.wN();V=Ihv(V,Q);V=!D.isSeeking()&&f===V;mI(this,this.jI,d&&F&&V&&!J,d&&!F&&!V,"qoe.longrebuffer",function(){L.seekTo(Q)},"seek_to_loader")}V={}; I=uQ(w,Math.max(f-3.5,0));var l=I>=0&&f>w.end(I)-1.1,C=I>=0&&I+1=0&&l&&C<11;V.close2edge=l;V.gapsize=C;V.buflen=w.length;this.W&&(V.seekSour=this.W);mI(this,this.Vj,d&&F&&!J,d&&!F,"qoe.longrebuffer",function(){},"timeout",V); V=B.isSuspended();V=this.Np.Hu()&&!V;mI(this,this.X,V,!V,"qoe.start15s",function(){A.Np.Z2("ad")},"ads_preroll_timeout"); V=this.L.experiments.GL("html5_use_playback_rate_in_skip_slow_ad")?this.Np.getPlaybackRate()*1E3:1E3;r=f-this.U5;mI(this,this.Cr,D,d&&!F,"qoe.longrebuffer",function(){A.Np.J8()},"reset_media_source"); mI(this,this.Ex,D,d&&!F,"qoe.longrebuffer",R,"reset_media_element");this.U===0&&(this.T=f);D=F&&this.N===0&&f>1&&f===this.T;mI(this,this.wT,g.zp(N)&&D,d&&!F,"qoe.slowseek",function(){L.seekTo(0)},"reseek_after_time_jump"); J=B.isOrWillBePlaying()&&!J;h=this.Np.bH()-f<6&&!h&&this.Np.I6();mI(this,this.G,N.zt()&&J&&F&&h,d&&!F,"qoe.longrebuffer",function(){A.Np.A1(!1,!0)},"handoff_end_long_buffer_reload"); J=this.W===104||this.Np.cX;B=pr(N)&&N.isAd()&&!N.G&&J&&(F||g.x(B,8)&&g.x(B,16));mI(this,this.Ox,B,K,"qoe.start15s",R,"gapless_ad_slow_start");B=pr(N)&&!N.G&&J&&Z;mI(this,this.Nl,B,K,"qoe.longrebuffer",R,"gapless_slow_start");this.U=f;this.D.start()}}; lG.prototype.Ho=function(A,L,B){L=this.Ov(L);L.wn=B;L.wdup=this.V[A]?"1":"0";this.Np.Ho(new g.K$(A,L));this.V[A]=!0}; lG.prototype.Ov=function(A){A=Object.assign(this.Np.Ov(!0),A.Ov());this.N&&(A.stt=this.N.toFixed(3));this.Np.getVideoData().isLivePlayback&&(A.ct=this.Np.getCurrentTime().toFixed(3),A.to=this.Np.pY().toFixed(3));delete A.uga;delete A.euri;delete A.referrer;delete A.fexp;delete A.vm;return A}; Ta.prototype.reset=function(){this.N=this.W=this.V=this.startTimestamp=0;this.U=!1}; Ta.prototype.test=function(A){if(!this.D||this.W)return!1;if(!A)return this.reset(),!1;A=(0,g.bc)();if(!this.startTimestamp)this.startTimestamp=A,this.V=0;else if(this.V>=this.D)return this.W=A,!0;this.V+=1;return!1}; Ta.prototype.Ov=function(){var A={},L=(0,g.bc)();this.startTimestamp&&(A.wsd=(L-this.startTimestamp).toFixed());this.W&&(A.wtd=(L-this.W).toFixed());this.N&&(A.wssd=(L-this.N).toFixed());return A};g.G(u0w,g.Y);g.p=u0w.prototype;g.p.setMediaElement=function(A){(this.mediaElement=A)?(this.mediaElement&&(this.D||this.V||!this.mediaElement.EO()||this.seekTo(.01,{zZ:"seektimeline_setupMediaElement"})),Qn(this)):iG(this)}; g.p.getCurrentTime=function(A){A=A===void 0?!1:A;if(CR(this.Np)){if(this.J("html5_use_centralized_player_time")&&!A&&!isNaN(this.T))return this.T;if(!isNaN(this.W))return this.W}else{if(this.J("html5_use_centralized_player_time")&&!A&&!isNaN(this.T)&&isFinite(this.T))return this.T;if(!isNaN(this.W)&&isFinite(this.W))return this.W}return this.mediaElement&&FZS(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.V||0}; g.p.kA=function(){return this.Ox}; g.p.Fb=function(){return this.getCurrentTime()-this.pY()}; g.p.gQ=function(){return this.N?this.N.gQ():Infinity}; g.p.isAtLiveHead=function(A){if(!this.N)return!1;A===void 0&&(A=this.getCurrentTime());return bG(this.N,A)}; g.p.YE=function(){return!!this.N&&this.N.YE()}; g.p.seekTo=function(A,L){var B=L===void 0?{}:L;L=B.aN===void 0?!1:B.aN;var f=B.OR===void 0?0:B.OR;var K=B.Mi===void 0?!1:B.Mi;var V=B.xz===void 0?0:B.xz;var J=B.zZ===void 0?"":B.zZ;var R=B.seekSource===void 0?void 0:B.seekSource;var Z=B.OU===void 0?!1:B.OU;var N=B.Cu===void 0?!1:B.Cu;B=B.Sf===void 0?!1:B.Sf;Z&&(A+=this.pY());iS(this.videoData)&&R===29&&(this.Ox=void 0);Z=A=this.oA())||!g.MG(this.videoData),r||(h={st:h,mst:this.oA()},this.N&&this.J("html5_high_res_seek_logging")&&(h.ht=this.N.gQ(),h.adft=ht(this.N)),this.Np.Hn("seeknotallowed",h)),h=r));if(!h)return this.U&&(this.U=null,RH1(this)),g.iX(this.getCurrentTime());h=.005;N&&this.J("html5_sabr_seek_no_shift_tolerance")&&(h=0);if(Math.abs(A-this.W)<=h&&this.wT)return this.D;this.J("html5_reset_rate_limiter_on_user_seek")&& (h=this.loader)!=null&&(h.W.qp.S8=0);this.J("html5_reset_backoff_on_user_seek")&&(h=this.loader)!=null&&(h.W.X=void 0);J&&(h=A,this.L.hw()||this.J("html5_log_seek_reasons"))&&(J={reason:J,tgt:h},this.J("html5_sabr_csdai_seek_log")&&(J.source=R),this.Np.Hn("seekreason",J));R&&(this.Wn.W=R);this.wT&&iG(this);this.D||(this.D=new yV);A&&!isFinite(A)&&oqS(this,!1);(J=B||Z)||(J=A,J=!(this.videoData.isLivePlayback&&this.videoData.V&&!this.videoData.V.N&&!(this.mediaElement&&this.mediaElement.J2()>0&&this.mediaElement.KU()> 0)||ta(this.videoData)&&this.vy()===this.oA(!1)?0:isFinite(J)||!ta(this.videoData)));J||(A=$H(this,A,K));A&&!isFinite(A)&&oqS(this,!1);this.J("html5_use_centralized_player_time")?this.T=A:this.W=this.V=A;this.Cr=V;this.X=0;this.N&&(K=this.N,V=A,qLD(K,V,!1),PPS(K,V));K=this.Np;V=A;J={aN:L,seekSource:R};K.M8.V=V;B=K.Vl;B.mediaTime=V;B.N=!0;J.aN&&K.hm(J);J=V>K.videoData.endSeconds&&V>K.videoData.limitedPlaybackDurationInSeconds;K.uD&&J&&isFinite(V)&&PR8(K);V0&&AL.start&&PR8(this.Np);return this.D}; g.p.oA=function(A){if(!this.videoData.isLivePlayback)return this.Np.videoData.oA();var L;return ZI(this.videoData)&&((L=this.mediaElement)==null?0:L.isPaused())&&this.videoData.N?(A=this.getCurrentTime(),$F7(this.wX(A)*1E3)+A):this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&iS(this.videoData)&&this.videoData.N?A?this.videoData.N.Vj||0:this.videoData.N.F9||0:ta(this.videoData)&&this.videoData.hd&&this.videoData.N?this.videoData.N.oA()+this.timestampOffset:this.videoData.V&&this.videoData.V.N? !A&&this.N?this.N.gQ():this.Np.videoData.oA()+this.timestampOffset:this.mediaElement?zc()?$F7(this.mediaElement.r_().getTime()):this.mediaElement.KU()+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.p.vy=function(){if(this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&iS(this.videoData)){var A;return((A=this.videoData.N)==null?void 0:A.CK)||0}A=this.videoData?this.videoData.vy()+this.timestampOffset:this.timestampOffset;if(ZI(this.videoData)&&this.videoData.N){var L,B=Number((L=this.videoData.progressBarStartPosition)==null?void 0:L.utcTimeMillis)/1E3;if(!isNaN(B)&&(L=this.cA(B),!isNaN(L)))return Math.max(A,L)}return A}; g.p.tB=function(){this.D||this.seekTo(this.V,{zZ:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.p.vT=function(){return this.wT&&!isFinite(this.W)}; g.p.l1=function(){Bvw(this,null);this.Wn.dispose();g.Y.prototype.l1.call(this)}; g.p.Ov=function(){var A={};this.loader&&Object.assign(A,this.loader.Ov());this.mediaElement&&Object.assign(A,this.mediaElement.Ov());return A}; g.p.uV=function(A){this.timestampOffset=A}; g.p.getStreamTimeOffset=function(){return ta(this.videoData)?0:this.videoData.N?this.videoData.N.getStreamTimeOffset():0}; g.p.pY=function(){return this.timestampOffset}; g.p.wX=function(A){return this.videoData&&this.videoData.N?this.videoData.N.wX(A-this.timestampOffset):NaN}; g.p.Hq=function(){if(!this.mediaElement)return 0;if(Ur(this.videoData)){var A=this.mediaElement.lB()+this.timestampOffset-this.vy(),L=this.oA()-this.vy();return Math.max(0,Math.min(1,A/L))}return this.mediaElement.Hq()}; g.p.bG=function(A){this.G&&(this.G.N=A)}; g.p.Qb=function(A,L,B){this.Np.Hn("requestUtcSeek",{time:A});iS(this.videoData)&&(this.Ox=A);var f;(f=this.loader)==null||f.Qb(A,B);L&&(this.ZM=L)}; g.p.o5=function(A){iS(this.videoData)&&(this.Ox=void 0);this.ZM?(this.Np.Hn("utcSeekingFallback",{source:"streamTime",timeSeconds:this.ZM}),this.Np.seekTo(this.ZM,{zZ:"utcSeekingFallback_streamTime"}),this.ZM=0):(A=this.cA(A),isNaN(A)||(this.Np.Hn("utcSeekingFallback",{source:"estimate",timeSeconds:A}),this.Np.seekTo(A,{zZ:"utcSeekingFallback_estimate"})))}; g.p.Uw=function(){this.ZM=0}; g.p.yl=function(A){this.Ys=A}; g.p.cA=function(A){var L=this.getCurrentTime();if(isNaN(L))return NaN;var B=this.wX(L);return isNaN(B)?NaN:A-(B-L)}; g.p.J=function(A){return this.L&&this.L.J(A)};g.G(Xz,g.Y);Xz.prototype.start=function(){this.W.start()}; Xz.prototype.stop=function(){this.W.stop()}; Xz.prototype.clear=function(){for(var A=g.m(this.N.values()),L=A.next();!L.done;L=A.next())L.value.clear()}; Xz.prototype.sample=function(){for(var A=g.m(this.V),L=A.next();!L.done;L=A.next()){var B=g.m(L.value);L=B.next().value;B=B.next().value;this.N.has(L)||this.N.set(L,new y66(KCR.has(L)));this.N.get(L).update(B())}this.W.start()}; var KCR=new Set(["networkactivity"]);y66.prototype.update=function(A){this.W?(this.buffer.add(A-this.N||0),this.N=A):this.buffer.add(A)}; y66.prototype.clear=function(){this.buffer.clear();this.N=0};cY.prototype.Er=function(){return this.started}; cY.prototype.start=function(){this.started=!0}; cY.prototype.reset=function(){this.finished=this.started=!1};var H6w=!1;g.G(g.WY,g.SN);g.p=g.WY.prototype;g.p.l1=function(){g.sQ(this.p7);Vbk(this.wI);this.visibility.unsubscribe("visibilitystatechange",this.wI);gUy(this.CY);g.jq(this.CY);ev(this);g.qT.WF(this.XG);this.UN();this.kJ=null;g.jq(this.videoData);g.jq(this.KQ);g.jq(this.ol);g.jq(this.Oa);g.gH(this.QvF);this.uD=null;g.SN.prototype.l1.call(this)}; g.p.C3=function(A,L,B,f,K){if(this.L.J("html5_log_ad_playback_docid")){var V=this.CY;if(V.qoe){V=V.qoe;var J=this.L.Wn||"yt";g.TL(V,g.Ci(V.provider),"ad_playback",[A,L,B,K,J])}}else this.CY.C3(A,L,B);this.J("html5_log_media_perf_info")&&this.Hn("adloudness",{ld:f.toFixed(3),cpn:A})}; g.p.R3=function(){var A;return(A=this.loader)==null?void 0:A.R3()}; g.p.SC=function(){var A;return(A=this.loader)==null?void 0:A.SC()}; g.p.bf=function(){var A;return(A=this.loader)==null?void 0:A.bf()}; g.p.iI=function(){var A;return(A=this.loader)==null?void 0:A.iI()}; g.p.U6=function(){return this.videoData.U6()}; g.p.R0=function(){return this.J("html5_not_reset_media_source")&&this.videoData.isLivePlayback}; g.p.i_=function(){this.videoData.X&&(this.videoData.I_=this.videoData.I_||this.gf.e4().R3(),this.videoData.FT=this.videoData.FT||this.gf.e4().SC());if(sUv(this.videoData)||!Sg(this.videoData)){var A=this.videoData.errorDetail;this.O9(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),A,A,this.videoData.Qr||void 0)}this.J("html5_generate_content_po_token")&&this.HG();this.J("html5_enable_d6de4")&&this.Xg()}; g.p.getVideoData=function(){return this.videoData}; g.p.K=function(){return this.L}; g.p.M_=function(){return this.IC.M_(this.kJ)}; g.p.WI=function(){return this.visibility}; g.p.Ur=function(){return this.mediaElement&&this.mediaElement.wy()?this.mediaElement.Zg():null}; g.p.pD=function(){return this.mediaElement}; g.p.pn=function(){if(this.videoData.errorCode)return!1;this.K().T&&this.K().houseBrandUserStatus&&this.Hn("hbut",{status:this.K().houseBrandUserStatus},!0);if(this.videoData.gX())return!0;this.O9("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.p.dK=function(A){(A=A===void 0?!1:A)||jNe(this.CY);this.nu=A;!this.pn()||this.zW.Er()?Eqk(this)&&this.zW.Er()&&!this.zW.finished&&!this.nu&&this.Ue():(this.zW.start(),A=this.CY,g.Ci(A.provider),A.qoe&&hIL(A.qoe),this.Ue())}; g.p.Ue=function(){if(this.videoData.isLoaded()){var A=this.KQ;g.Am(A.tF.experiments,"html5_player_min_build_cl")>0&&g.Am(A.tF.experiments,"html5_player_min_build_cl")>839483937&&g2e(A,"oldplayer");Uq1(this)}else this.videoData.TZ||this.videoData.Gt?this.nu&&Eqk(this)||(this.videoData.TZ?VML(this.videoData):(A=this.CY,A.qoe&&(A=A.qoe,Oi(A,"protected"),A.provider.videoData.D?A.Yt():A.provider.videoData.subscribe("dataloaded",A.Yt,A)),LW7(this.videoData))):!this.videoData.loading&&this.i7&&c66(this)}; g.p.hW=function(A){this.TV=A;this.loader&&(KfQ(this.loader,A),this.Hn("sdai",{sdsstm:1}))}; g.p.cg=function(A,L,B){var f;(f=this.loader)==null||f.cg(A,L,B)}; g.p.gM=function(A){var L;(L=this.loader)==null||L.gM(A)}; g.p.m$=function(){var A;return((A=this.loader)==null?void 0:A.e2())||null}; g.p.isFullscreen=function(){return this.visibility.isFullscreen()}; g.p.isBackground=function(){return this.visibility.isBackground()}; g.p.A8=function(){var A=this;q9(this).then(function(){return PY(A)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.p.Am=function(){this.mediaElement&&this.mediaElement.activate();this.dK();this.pn()&&!g.x(this.playerState,128)&&(this.Ek.Er()||(this.Ek.start(),this.videoData.Bk?this.q8(Hi(this.playerState,4)):this.q8(Hi(Hi(this.playerState,8),1))),M2v(this))}; g.p.Im=function(){return this.zW.finished}; g.p.sendAbandonmentPing=function(){g.x(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.j3(!0),gUy(this.CY),g.jq(this.CY),g.qT.WF(this.XG))}; g.p.E5=function(A,L,B){A=A===void 0?!0:A;(L===void 0||L)&&this.mediaElement&&this.mediaElement.pause();A&&B&&this.loader&&ta(this.videoData)&&this.loader.XY(B);this.q8(A?new g.Gu(14):new g.Gu)}; g.p.VI=function(){this.CY.Om()}; g.p.O9=function(A,L,B,f,K,V){var J,R;g.Tk(pk9,B)?J=B:B?R=B:J="GENERIC_WITHOUT_LINK";f=(f||"")+(";a6s."+fz());if(A==="auth"||A==="drm.auth"||A==="heartbeat.stop")B&&(f+=";r."+B.replaceAll(" ","_")),V&&(f+="sr."+V.replaceAll(" ","_"));L={errorCode:A,errorDetail:K,errorMessage:R||g.XB[J]||"",N_:J,Qr:V||"",yV:f,V5:L,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=A;xH(this,"dataloaderror");this.q8(sJ(this.playerState,128,L));g.qT.WF(this.XG);ev(this);this.aC()}; g.p.Z2=function(A){this.n3=this.n3.filter(function(L){return A!==L}); this.Ek.Er()&&M2v(this)}; g.p.BF=function(){var A;(A=!!this.n3.length)||(A=this.I4.N.array[0],A=!!A&&A.start<=-0x8000000000000);return A}; g.p.YE=function(){return this.M8.YE()}; g.p.isPlaying=function(){return this.playerState.isPlaying()}; g.p.r6=function(){return this.playerState.r6()&&this.videoData.Bk}; g.p.getPlayerState=function(){return this.playerState}; g.p.T8=function(A){var L;(L=this.loader)==null||L.T8(A)}; g.p.Jm=function(A){var L;(L=this.loader)==null||L.Jm(A)}; g.p.getPlayerType=function(){return this.playerType}; g.p.getPreferredQuality=function(){if(this.kJ){var A=this.kJ;A=A.videoData.nO.compose(A.videoData.vC);A=My(A)}else A="auto";return A}; g.p.U0=OD(12);g.p.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.p.setMediaElement=function(A){if(this.mediaElement&&A.Zg()===this.mediaElement.Zg()&&(A.isView()||this.mediaElement.isView())){if(A.isView()||!this.mediaElement.isView())this.qv(),this.mediaElement=A,this.mediaElement.fH(this),Sik(this),this.M8.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.UN();if(!this.playerState.isError()){var L=hA(this.playerState,512);g.x(L,8)&&!g.x(L,2)&&(L=Hi(L,1));A.isView()&&(L=hA(L,64));this.q8(L)}this.mediaElement=A;this.mediaElement.fH(this);!g.wY(this.L)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Sik(this);this.M8.setMediaElement(this.mediaElement);this.J("html5_prewarm_media_source")&&!this.KQ.Nm()&&this.mediaElement.c5()}}; g.p.UN=function(A,L,B){A=A===void 0?!1:A;L=L===void 0?!1:L;B=B===void 0?!1:B;if(this.mediaElement){var f=this.getCurrentTime();f>0&&(this.M8.V=f);this.M8.setMediaElement(null);!A&&this.R0()?fjk(this):this.GB(B);this.loader&&(IS(this.loader),ac(this,L));this.uv.stop();if(this.mediaElement&&(!this.Ek.Er()&&!this.Hu()||this.playerState.isError()||g.x(this.playerState,2)||this.q8(Hi(this.playerState,512)),this.mediaElement)){this.qv();if(A||!this.mediaElement.isView())this.Rv.WZ("mesv_s"),this.mediaElement.stopVideo(), Ak(this);this.mediaElement.fH(null);this.mediaElement=null}}}; g.p.playVideo=function(A,L){A=A===void 0?!1:A;L=L===void 0?!1:L;var B=this,f,K,V,J,R,Z;return g.c(function(N){if(N.N==1){var F=window.google_image_requests;F&&F.length>10&&(window.google_image_requests=F.slice(-10));if(g.x(B.playerState,128))return N.return();if(B.KQ.AT())return B.publish("signatureexpired"),N.return();B.mediaElement&&jNe(B.CY);B.Am();(g.x(B.playerState,64)||A)&&B.q8(Hi(B.playerState,8));return B.Ek.finished&&B.mediaElement?B.kJ||!B.On?N.Ux(2):g.X(N,B.On,3):N.return()}if(N.N!=2&& g.x(B.playerState,128))return N.return();if(!B.videoData.V)return B.videoData.isLivePlayback&&!g.b9(B.L.D,!0)?(f="html5.unsupportedlive",K=2):(f=B.videoData.U6()?"fmt.unplayable":"fmt.noneavailable",K=1),g.CE(Error("selectableFormats")),B.O9(f,K,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),N.return();if(B.QC()&&B.videoData.V.N)return N.return(q9(B));if(CR(B))F=B.M8,HK(F.videoData)&&!F.isAtLiveHead(F.getCurrentTime())&&F.YE()&&F.Np.seekTo(Infinity,{zZ:"seektimeline_peggedToLive", seekSource:34});else if(HK(B.videoData)&&(V=B.getCurrentTime()J;if(!R||!J){K&&R&&(V=Math.max(V,K));var Z;K=bTD(L,(Z=f.N)==null?void 0:Z.videoInfos);Z=L.Np.getPlaybackRate();Z>1&&K&&(Z=DKe(L.L.D,f.N.videoInfos,Z),A.N!==0&&Z=480;if(L.J("html5_perf_cap_override_sticky")){N=L.V;L=L.J("html5_perserve_av1_perf_cap");L=L===void 0?!1:L;if(L===void 0?0:L){F=t2();A=g.m(Object.keys(F));for(V=A.next();!V.done;V=A.next())V=V.value,V.indexOf("1")!==0&&delete F[V];g.OS("yt-player-performance-cap",F,2592E3)}else g.c9("yt-player-performance-cap");IBC(L);if(L){L=g.m(BL.keys());for(F=L.next();!F.done;F=L.next())F=F.value,F.startsWith("1")|| BL.delete(F);L=g.m(Vn.values());for(F=L.next();!F.done;F=L.next())F=F.value,F.startsWith("1")||Vn.delete(F);L=g.m(N.keys());for(F=L.next();!F.done;F=L.next())F=F.value,F.startsWith("1")||N.delete(F)}else BL.clear(),Vn.clear(),N.clear()}}}}this.loader&&(L=this.loader,B=B||"",L.policy.N?wP(L.U.N,B):wP(L.N.D,B));this.bD()}; g.p.getUserPlaybackQualityPreference=function(){return this.videoData.V&&!this.videoData.V.N?My(this.videoData.nO):cZ[h2()]}; g.p.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.p.setUserAudio51Preference=function(A,L){this.getUserAudio51Preference()!==A&&(this.Hn("toggle51",{pref:A}),g.OS("yt-player-audio51",A,L?31536E3:2592E3),this.A8())}; g.p.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.p.setProximaLatencyPreference=function(A){var L=this.getProximaLatencyPreference();this.Hn("proxima",{pref:A});g.OS("yt-player-proxima-pref",A,31536E3);L!==A&&(A=this.M8,A.Nl=!0,A.Np.seekTo(Infinity,{zZ:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.p.getProximaLatencyPreference=function(){var A;return(A=b6())!=null?A:0}; g.p.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.p.HG=function(){this.videoData.videoId?this.gf.HG(this.videoData):this.Hn("povid",{})}; g.p.Xg=function(){this.videoData.videoId?this.gf.Xg(this.videoData):this.Hn("piavid",{})}; g.p.bD=function(){if(!this.TL()&&!g.x(this.playerState,128)&&this.videoData.V){if(this.videoData.V.N)YH(this);else{var A=uG(this),L=this.videoData;a:{var B=this.videoData.Nl;if(A.N){for(var f=g.m(B),K=f.next();!K.done;K=f.next()){K=K.value;var V=K.getInfo(),J=g.ka[V.video.quality];if((!A.V||V.video.quality!=="auto")&&J<=A.N){B=K;break a}}B=B[B.length-1]}else B=B[0]}L.wT=B;xq1(this,A.reason,NgD(this,this.videoData.wT))}if(this.J("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.M8.yj= !1,this.playVideo()}}; g.p.WG=function(A,L){if(this.TL()||g.x(this.playerState,128))return!1;var B,f=!((B=this.videoData.V)==null||!B.N);B=f&&L?this.getCurrentTime()-this.pY():NaN;if(A.ri&&A.ri.id){var K=this.CY;if(K.qoe){K=K.qoe;var V=[A.ri.id,isNaN(B)?"m":"t"];g.TL(K,g.Ci(K.provider),"afi",V)}}if(f)return L&&(f=fz0(this.M8),this.Hn("aswh",{id:A.id,xtags:A.xtags,bh:f.toFixed(3)})),this.loader.setAudioTrack(A,B,L),!0;if(nqQ(this)){a:{L=this.mediaElement.audioTracks();f=!1;for(B=0;BV.AF.getDuration()&&JBw(V,J)):JBw(V,N);var F=V.loader,D=V.AF;R=R===void 0?!1:R;Z=Z===void 0?!1:Z;F.policy.JF&&(F.policy.Ys&&F.Hn("loader",{setsmb:0}),F.KV(),F.policy.JF=!1);UmL(F,Z);if(!dz(D)){var I=Db(F.videoTrack),d=Db(F.audioTrack),w=(I?I.info.b1:F.videoTrack.b1).info, r=(d?d.info.b1:F.audioTrack.b1).info,h=F.policy.kR,Q=w.mimeType+(h===void 0?"":h),l=r.mimeType,C=w.Bn,O=r.Bn,v;D.Wn=(v=D.AF)==null?void 0:v.addSourceBuffer(l);var U;D.qp=Q.split(";")[0]==="fakesb"?void 0:(U=D.AF)==null?void 0:U.addSourceBuffer(Q);D.Sa&&(D.Sa.webkitSourceAddId("0",l),D.Sa.webkitSourceAddId("1",Q));var a=new JA(D.Wn,D.Sa,"0",mP(l),O,!1),o0=new JA(D.qp,D.Sa,"1",mP(Q),C,!0);yG0(D,a,o0)}I=R;d=Z;I=I===void 0?!1:I;d=d===void 0?!1:d;ej(F.videoTrack,D.W||null,d);ej(F.audioTrack,D.N||null, d);F.AF=D;F.AF.D=!0;I||F.resume();D.N.tA(F.Cr,F);D.W.tA(F.Cr,F);try{F.yG()}catch(B6){g.mL(B6)}V.publish("mediasourceattached")}}catch(B6){g.CE(B6),V.handleError(new g.K$("fmt.unplayable",{msi:"1",ename:B6&&typeof B6==="object"&&"name"in B6?String(B6.name):void 0,trg:"setmediasrc"},1))}} var V=this;L=L===void 0?!1:L;B=B===void 0?!1:B;VnC(this,f===void 0?!1:f);this.AF=A;this.R0()&&Ik(this.AF)==="open"?K(this.AF):pHy(this.AF,K)}; g.p.kD=function(A){this.vE.set(A.initData,A);this.Gq&&(this.Gq.kD(A),this.J("html5_eme_loader_sync")||this.vE.remove(A.initData))}; g.p.pg=function(A){this.videoData.zK=g.XX("auto",A,!1,"u");YH(this)}; g.p.bG=function(A){var L=A.reason,B=A.N.info,f=A.token,K=A.videoId,V=this.CY,J=this.videoData;if(B!==J.U){var R=!J.U;J.U=B;var Z=L==="m"||L==="t";Z||(L=R?"i":"a");this.L.experiments.GL("html5_refactor_sabr_audio_format_selection_logging")?this.N$=new s5E(J,B,L,"",f,K):(L=new s5E(J,B,L,"",f),V.qoe&&(V=V.qoe,B=g.Ci(V.provider),QhD(V,B,L)));this.publish("internalaudioformatchange",J,!R&&Z)}this.VF();this.M8.bG(A.N.index)}; g.p.FG=function(A){this.publish("localmediachange",A)}; g.p.EU=function(A){A=A===void 0?{}:A;var L;(L=this.loader)==null||L.EU(this.L,jC(this.videoData),A)}; g.p.AT=function(){return this.KQ.AT()}; g.p.lj=function(A){this.Ho(new g.K$("staleconfig",{reason:A}))}; g.p.handleError=function(A){this.KQ.handleError(A)}; g.p.Nm=function(){return this.KQ.Nm()}; g.p.o5=function(A){this.M8.o5(A)}; g.p.A1=function(A,L){A=A===void 0?!1:A;L=L===void 0?!1:L;var B=this,f,K,V;return g.c(function(J){if(J.N==1){B.loader&&B.loader.T3();B.loader&&B.loader.TL()&&ev(B);if(B.J("html5_enable_vp9_fairplay")&&B.U6()&&(f=B.videoData.N)!=null)for(var R in f.N)f.N.hasOwnProperty(R)&&(f.N[R].N=null,f.N[R].V=!1);B.q8(Hi(B.playerState,2048));B.publish("newelementrequired");return A?g.X(J,q9(B),2):J.Ux(2)}B.videoData.iC()&&((K=B.loader)==null?0:K.ZM)&&!CR(B)&&((V=B.isAtLiveHead())&&HK(B.videoData)?B.seekTo(Infinity, {zZ:"videoPlayer_getNewElement"}):B.videoData.SD&&B.loader&&(R=B.loader,R.gT.iC&&(R.gT.SD||R.gT.U||R.gT.isPremiere?(R.seek(0,{zZ:"loader_resetSqless"}),R.videoTrack.T=!0,R.audioTrack.T=!0,R.videoTrack.U=!0,R.audioTrack.U=!0):A7(R.gT)&&lR(R))));L&&B.seekTo(0,{seekSource:105});g.x(B.playerState,8)&&B.playVideo();g.VK(J)})}; g.p.tT=function(A){this.Hn("hgte",{ne:+A});this.videoData.X=!1;A&&this.A1();this.loader&&YUe(this.loader)}; g.p.BS=function(A){this.Hn("newelem",{r:A});this.A1()}; g.p.pauseVideo=function(A){A=A===void 0?!1:A;if((g.x(this.playerState,64)||g.x(this.playerState,2))&&!A)if(g.x(this.playerState,8))this.q8(b1(this.playerState,4,8));else if(this.r6())PY(this);else return;g.x(this.playerState,128)||(A?this.q8(Hi(this.playerState,256)):this.q8(b1(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.MG(this.videoData)&&this.loader&&ac(this,!1)}; g.p.stopVideo=function(){this.pauseVideo();this.loader&&(ac(this,!1),this.loader.KV())}; g.p.aC=function(A,L){A=A===void 0?!1:A;L=L===void 0?!1:L;if(this.R0()&&L){var B;(B=this.mediaElement)==null||B.aC()}else{var f;(f=this.mediaElement)==null||f.stopVideo()}Ak(this);ev(this);g.x(this.playerState,128)||(A?this.q8(hA(hA(Hi(this.playerState,4),8),16)):this.q8(sJ(this.playerState)));this.videoData.videoId&&this.L.S4.remove(this.videoData.videoId)}; g.p.seekTo=function(A,L){L=L===void 0?{}:L;g.x(this.playerState,2)&&PY(this);L.Ub4&&this.q8(Hi(this.playerState,2048));if((L.seekSource===58||L.seekSource===60)&&this.J("html5_update_vss_during_gapless_seeking")){var B=this.CY;B.N&&(B=B.N,L.seekSource===58?B.N.update():B.V&&(dw(B),ww(B).send(),B.U=NaN))}this.M8.seekTo(A,L);this.I4.sync()}; g.p.hm=function(A){this.Rv.U.W=(0,g.bc)();g.x(this.playerState,32)||(this.q8(Hi(this.playerState,32,A==null?void 0:A.seekSource)),g.x(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.iq()}; g.p.wW=function(A){A=A==null?void 0:A.seekSource;g.x(this.playerState,32)?(this.q8(b1(this.playerState,16,32,A)),this.publish("endseeking")):g.x(this.playerState,2)||this.q8(Hi(this.playerState,16,A));A=this.Rv.U;var L=this.videoData,B=this.playerState.isPaused();if(L.clientPlaybackNonce&&!isNaN(A.N)){if(Math.random()<.01){B=B?"pbp":"pbs";var f={startTime:A.N};L.T&&(f.cttAuthInfo={token:L.T,videoId:L.videoId});C0("seek",f);g.Qm({clientPlaybackNonce:L.clientPlaybackNonce},"seek");isNaN(A.W)||mF("pl_ss", A.W,"seek");mF(B,(0,g.bc)(),"seek")}A.reset()}}; g.p.py=function(A){this.wW(A)}; g.p.fg=function(){this.publish("SEEK_COMPLETE")}; g.p.UQ=function(A){var L=this.gf,B=this.videoData.clientPlaybackNonce,f=this.playerType;if(A.scope===4){var K=A.type;if(K){var V=L.kP(),J=V.getVideoData().clientPlaybackNonce;f===1&&(J=B);if(f=Qnk(L,J)){if(B=f.getVideoData())A.writePolicy===2&&B.sabrContextUpdates.has(K)||(A.sendByDefault&&B.S4.add(K),B.sabrContextUpdates.set(K,A)),L.J("html5_enable_t1_enf_on_sabr")&&(A=K===5,K=pF1(B.playerResponse),A?(A=K?1:0,Fo(A,"m.p_",{}),aw("MBSTAT",A)):A=1,A===0&&L.rT.Kr("onAbnormalityDetected"))}else V.Hn("scuset", {ncpf:"1",ccpn:J,crcpn:B})}else g.CE(Error("b/380308491: contextUpdateType is undefined"))}}; g.p.XJ=function(){if(this.playerType===2)return this.gf.XJ("")}; g.p.getCurrentTime=function(A){return this.M8.getCurrentTime(A===void 0?!1:A)}; g.p.kA=function(){return this.M8.kA()}; g.p.Fb=function(){return this.M8.Fb()}; g.p.Yi=function(){return this.Fb()}; g.p.gQ=function(){return this.M8.gQ()}; g.p.getPlaylistSequenceForTime=function(A){return this.videoData.getPlaylistSequenceForTime(A-this.pY())}; g.p.rQ=function(){var A=NaN;this.mediaElement&&(A=this.mediaElement.rQ());return A>=0?A:this.getCurrentTime()}; g.p.wX=function(){var A;return((A=this.videoData.N)==null?0:A.wX)?this.videoData.N.wX(this.getCurrentTime()-this.pY()):this.mediaElement&&(A=this.mediaElement.r_())&&(A=A.getTime(),!isNaN(A))?A/1E3+this.getCurrentTime():NaN}; g.p.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.pY():this.oA()?this.oA():0}; g.p.Uq=function(){var A=new H5L;if(this.loader){var L=this.Ml,B=this.L.hw();B=B===void 0?!1:B;A.lA=L.Vj;A.KC=L.Cr;A.bandwidthEstimate=ub(L);if(B){B=(L.G.pw()*1E3).toFixed();var f=(L.wT.pw()*1E3).toFixed(),K=nh(L).toFixed(2),V=((L.X.pw()||0)*1E9).toFixed(2),J=L.V.pw().toFixed(0),R=L.JF.pw().toFixed(0),Z=L.yj.percentile(.5).toFixed(2),N=L.yj.percentile(.92).toFixed(2),F=L.yj.percentile(.96).toFixed(2),D=L.yj.percentile(.98).toFixed(2);L.N?L.N.reset():L.N=new I5;L.N.add(L.ZM);L.N.add(L.interruptions.length); for(var I=0,d=L.interruptions.length-1;d>=0;d--){var w=L.interruptions[d];L.N.add(w-I);I=w}I=0;for(d=L.U.length-1;d>=0;d--){w=L.U[d];var r=w.stamp/36E5;L.N.add(r-I);I=r;L.N.add(w.net/1E3);L.N.add(w.max)}L=L.N.PV();A.N={ttr:B,ttm:f,d:K,st:V,bw:J,abw:R,v50:Z,v92:N,v96:F,v98:D,"int":L}}L=this.loader;L.AF&&L.AF.D&&!L.AF.vV()&&(A.zo=K6(L.videoTrack),A.W=K6(L.audioTrack),L.policy.V&&(B=Bl(L.videoTrack),f=Bl(L.audioTrack),K=zv(L.AF.W.Hk(),"_",5),V=zv(L.AF.N.Hk(),"_",5),Object.assign(A.N,{lvq:B,laq:f,lvb:K, lab:V})));A.bandwidthEstimate=zD(L.yj);var h;(h=L.audioTrack.G)==null||h.flush();var Q;(Q=L.videoTrack.G)==null||Q.flush()}else this.mediaElement&&(A.zo=this.mediaElement.vu());A.lA=this.lA;A.KC=this.KC;A.V=this.isAtLiveHead()&&this.isPlaying()?XlD(this):NaN;h=this.M8;h=h.N?ht(h.N):0;A.U=h;return A}; g.p.MX=function(A,L){this.KC+=A;this.lA+=L}; g.p.Hq=function(){return this.mediaElement?g.MG(this.videoData)?1:Ur(this.videoData)?this.isAtLiveHead()||this.YE()?1:this.M8.Hq():this.mediaElement.Hq():0}; g.p.EV=function(){var A=this.Yz,L=EP(A,"bandwidth"),B=EP(A,"bufferhealth"),f=EP(A,"livelatency"),K=EP(A,"networkactivity"),V=OP(A,"bandwidth"),J=OP(A,"bufferhealth"),R=OP(A,"livelatency");A=OP(A,"networkactivity");var Z=this.Db(),N=Z.droppedVideoFrames;Z=Z.totalVideoFrames;var F=this.getCurrentTime();if(this.Gq){var D="IT/"+(this.Gq.N.getInfo()+"/"+My(this.Vt()));D+="/"+this.Gq.getInfo()}else D="";var I=this.isGapless(),d=this.qV(),w=this.HT(),r=g.za(this),h=this.getPlayerState().state.toString(16), Q=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var l=0;var C="";if(this.TV){if(this.TV.fX){C="D,";break a}l=this.TV.Go;C=this.TV.xJ.substring(0,4)}l>0?(l="AD"+l+", ",C&&(l+=C+", "),C=l):C=""}return{jp:V,pJ:J,currentTime:F,zd:D,droppedVideoFrames:N,isGapless:I,qV:d,F4:w,fp:L,Cp:B,xd:f,uw:K,aR:R,jl:A,TY:r,fP:h,sz:Q,Fi:C,totalVideoFrames:Z}}; g.p.Ov=function(A){var L={};if(A===void 0?0:A){Object.assign(L,this.CY.Ov());this.mediaElement&&(Object.assign(L,this.mediaElement.Ov()),A=this.Db(),L.dvf=A.droppedVideoFrames,L.tvf=A.totalVideoFrames);this.loader&&Object.assign(L,this.loader.Ov());this.Gq&&(L.drm=JSON.stringify(this.Gq.Ov()));L.state=this.playerState.state.toString(16);g.x(this.playerState,128)&&(L.debug_error=JSON.stringify(this.playerState.nh));this.BF()&&(L.prerolls=this.n3.join(","));this.videoData.dg&&(L.ismb=this.videoData.dg); this.videoData.latencyClass!=="UNKNOWN"&&(L.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(L.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)L.is_mosaic=1;this.videoData.cotn&&(L.is_offline=1,L.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(L.playerResponseCpn=this.videoData.playerResponseCpn);this.gf.isOrchestrationLeader()&&(L.leader=1);this.videoData.isLivePlayback&& (this.videoData.N&&n3(this.videoData.N)&&(L.segduration=n3(this.videoData.N)),A=this.M8,L.lat=A.G?c4E(A.G.U):0,L.liveutcstart=this.videoData.liveUtcStartSeconds);L.relative_loudness=this.videoData.EQ.toFixed(3);if(A=g.za(this))L.optimal_format=A.video.qualityLabel;L.user_qual=h2();L.release_version=S[5]}L.debug_videoId=this.videoData.videoId;return L}; g.p.addCueRange=function(A){this.zg([A])}; g.p.removeCueRange=function(A){this.I4.K9([A])}; g.p.q9=function(){var A=this.I4;if(A.Np.K().J("html5_sort_cueranges_on_update")&&!(A.Ef().length<=0||A.TL())){var L=A.N;L.array.sort(L.N)}A.sync()}; g.p.Ln=function(A,L){return this.I4.Ln(A,L)}; g.p.zg=function(A,L){this.I4.dX(A,L)}; g.p.fS=function(A){this.I4.K9(A)}; g.p.Ef=function(){return this.I4.Ef()||[]}; g.p.nU=function(){return this.V3}; g.p.QC=function(){return this.visibility.QC()}; g.p.m2=function(){this.mediaElement&&this.mediaElement.m2()}; g.p.cz1=function(){xH(this)}; g.p.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.p.qv=function(){g.$_(this.E1)}; g.p.Oep=function(){this.iq();this.publish("onLoadProgress",this.Hq())}; g.p.Ma=function(A){var L=A.target.eE();if(this.mediaElement&&this.mediaElement.eE()&&this.mediaElement.eE()===L){yBe(this,A.type);switch(A.type){case "error":var B=this.mediaElement.xT()||"",f=this.mediaElement.SE();if(B==="capability.changed"){this.J("html5_restart_on_capability_change")?(this.Hn("capchg",{msg:f}),this.A1(!0)):q9(this);return}if(this.mediaElement.hasError()&&wO6(this.KQ,B,{msg:f,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.oI()){this.aC();nR(this,"unplayable"); return}break;case "durationchange":B=this.mediaElement.getDuration();isFinite(B)&&(!this.AF||B>0)&&B!==1&&this.Vr(B);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());B=this.I4;B.started=!0;B.sync();this.CY.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.Qf().N.Iv(y19)||this.J("html5_prevent_mobile_background_play_on_event_shared"))&&UP(this,!1);gkQ(this);this.publish("onLoadedMetadata");ZiL(this);B=this.wX();this.videoData.iK&& (this.videoData.iK=B);break;case "loadstart":ZiL(this);break;case "progress":case "suspend":this.Ie.Za();break;case "seeked":(B=this.loader)!=null&&B.policy.W&&B.tU&&(B.Hn("sdai",{skipAdSked:"1"}),B.tU=!1);break;case "playing":(this.Qf().N.Iv(y19)||this.J("html5_prevent_mobile_background_play_on_event_shared"))&&UP(this,!1);this.Rv.WZ("plev");this.KN&&!CR(this)&&(this.KN=!1,this.isAtLiveHead()||this.seekTo(Infinity,{zZ:"videoplayer_onPlaying"}));break;case "timeupdate":(this.Qf().N.Iv(y19)||this.J("html5_prevent_mobile_background_play_on_event_shared"))&& UP(this,!1);B=this.mediaElement&&!this.mediaElement.getCurrentTime();f=this.mediaElement&&this.mediaElement.J2()===0;if(B&&(!this.OB||f))return;this.OB=this.OB||!!this.mediaElement.getCurrentTime();RTk(this);this.iq();if(!this.mediaElement||this.mediaElement.eE()!==L)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.wN().length>0&&this.mediaElement.YJ().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return; this.J("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.J2()>2||!this.mediaElement.isSeeking()&&aT(this.mediaElement.YJ(),this.mediaElement.getCurrentTime()))&&(B=this.mediaElement.Ov(),B.bh=this.mediaElement.vu().toFixed(3),this.Hn("uwe",B));break;case "resize":gkQ(this);this.videoData.W&&this.videoData.W.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Rt&&g.x(this.playerState,8)&&!g.x(this.playerState, 1024)&&this.getCurrentTime()===0&&g.yw){nR(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.eE()===L){Iz8(this.M8,A);this.publish("videoelementevent",A);L=this.playerState;f=this.Vl;var K=this.mediaElement;B=this.videoData.clientPlaybackNonce;if(!g.x(L,128)){var V=L.state;K=K?K:A.target;var J=K.getCurrentTime();if(!g.x(L,64)||A.type!=="ended"&&A.type!=="pause"){var R=K.getDuration();R=K.isEnded()||J>1&&Math.abs(J-R)<1.1;var Z=A.type==="pause"&&K.isEnded();J=A.type=== "ended"||A.type==="waiting"||A.type==="timeupdate"&&!g.x(L,4)&&!Ga(f,J);if(Z||R&&J)K.Yj()>0&&K.eE()&&(V=14);else switch(A.type){case "error":K.xT()&&(V|=128);break;case "pause":g.x(L,256)?(V^=256)||(V=64):g.x(L,32)||g.x(L,2)||g.x(L,4)||(V=4,g.x(L,1)&&g.x(L,8)&&(V|=1));break;case "playing":J=V;V=(V|8)&-1093;J&4?(V|=1,rz(f,K,!0)):Ga(f,K.getCurrentTime())&&(V&=-2);g.x(L,1)&&rz(f,K)&&(V|=1);break;case "seeking":V|=16;g.x(L,8)&&(V|=1);V&=-3;break;case "seeked":V&=-17;rz(f,K,!0);break;case "waiting":g.x(L, 2)||(V|=1);rz(f,K);break;case "timeupdate":J=g.x(L,16),R=g.x(L,4),(g.x(L,8)||J)&&!R&&Ga(f,K.getCurrentTime())&&(V=8),rz(f,K)&&(V|=1)}}f=V;V=null;f&128&&(V=A.target,K=V.xT(),J=1,K?(K==="capability.changed"&&(J=2),R="GENERIC_WITHOUT_LINK",Z=V.Ov(),Z.mediaElem="1",Z.trg="melem",/AUDIO_RENDERER/.test(V.SE())&&(R="HTML5_AUDIO_RENDERER_ERROR"),V={errorCode:K,errorMessage:g.XB[R]||"",N_:R,yV:f$(Z),V5:J,cpn:L.nh?L.nh.cpn:""}):V=null,V&&(V.cpn=B));L=sJ(L,f,V)}!g.x(this.playerState,1)&&g.x(L,1)&&pmk(this,"evt"+ A.type);this.q8(L)}}}; g.p.oPj=function(A){A=A.N.availability==="available";A!==this.V3&&(this.V3=A,this.publish("airplayavailabilitychange"))}; g.p.OYj=function(){var A=(0,g.bc)(),L=this.mediaElement.QC();this.Hn("airplay",{ia:L});!L&&!isNaN(this.RZ)&&A-this.RZ<2E3||(this.RZ=A,L!==this.QC()&&(A=this.visibility,A.N!==L&&(A.N=L,A.wI()),this.Hn("airplay",{rbld:L}),this.A8()),this.publish("airplayactivechange"))}; g.p.w6=function(A){if(this.loader){var L=this.loader,B=L.V,f=L.getCurrentTime(),K=Date.now()-B.G;B.G=NaN;B.Hn("sdai",{adfetchdone:A,d:K});A&&!isNaN(B.T)&&B.W!==3&&Vi(B.loader,f,B.T,B.D);B.policy.W?B.V=NaN:B.U=NaN;K5(B,4,B.W===3?"adfps":"adf");IS(L)}}; g.p.X6=function(){g.sQ(this.p7);this.uv.stop();this.videoData.G=!0;this.L.SH=!0;this.L.mH=0;var A=this.KQ;if(A.videoData.W){var L=A.tF.D,B=A.videoData.W.Bn;L.V.has(B)&&(L.V.delete(B),L.N=!0)}A.N.stop();this.tp();g.x(this.playerState,8)&&this.q8(hA(this.playerState,65));this.nu=!1;this.CY.uf();g.Az(this.ol);this.publish("playbackstarted");(A=g.bB("yt.scheduler.instance.clearPriorityThreshold"))?A():fs(0)}; g.p.tp=function(){var A=this.gf.df(),L={},B={};!iJ("pbs",this.Rv.timerName)&&gX.measure&&gX.getEntriesByName&&(gX.getEntriesByName("mark_nr")[0]?ELk("mark_nr"):ELk());A.videoId&&(L.videoId=A.videoId);A.clientPlaybackNonce&&!this.J("web_player_early_cpn")&&(L.clientPlaybackNonce=A.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(B.isPausedOnLoad=!0);B.itag=A.W?Number(A.W.itag):-1;A.LD&&(B.preloadType=String(this.Kz?2:1));L.liveStreamMode=Wiw[$T(A)];L.playerInfo=B;this.Rv.infoGel(L); if(this.loader){A=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(A.V&&(L=window.performance.getEntriesByName(A.V),L.length&&(L=L[0],A.tick("vri",L.fetchStart),A.tick("vdns",L.domainLookupEnd),A.tick("vreq",L.requestStart),A.tick("vrc",L.responseEnd))),A.W&&(L=window.performance.getEntriesByName(A.W),L.length&&(L=L[0],A.tick("ari",L.fetchStart),A.tick("adns",L.domainLookupEnd),A.tick("areq",L.requestStart),A.tick("arc",L.responseEnd))));A=A.ticks;for(var f in A)A.hasOwnProperty(f)&& this.Rv.tick(f,A[f])}}; g.p.iq=function(A){var L=this;A=A===void 0?!1:A;if(this.mediaElement&&this.videoData){KZD(this.M8,this.isPlaying());var B=this.getCurrentTime();if(this.loader&&(g.x(this.playerState,4)&&g.MG(this.videoData)||g.x(this.playerState,32)&&iS(this.videoData)||JY8(this.loader,B),this.J("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-q8(this.loader))>10)){var f;this.Hn("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(f=this.loader)==null?void 0:q8(f)},!0)}B>5&&(this.M8.V=B); (f=g.Bf())?g.qT.WF(this.XG):g.rW(this.XG);var K=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!K||ZI(this.videoData))&&!g.x(this.playerState,128)){var V=function(){if(L.mediaElement&&!g.x(L.playerState,128)){L.L.hw()&&yBe(L,"pfx");var J=L.getCurrentTime();L.J("html5_buffer_underrun_transition_fix")&&(J-=L.pY());var R=L.mediaElement.vu(),Z=g.x(L.playerState,8),N=Ga(L.Vl,J),F=rG7(L.Vl,J,(0,g.bc)(),R);Z&&N?L.q8(hA(L.playerState,1)):Z&&F?(Z=L.getDuration(),N=HK(L.videoData),Z&&Math.abs(Z- J)<1.1?(L.Hn("setended",{ct:J,bh:R,dur:Z,live:N}),L.mediaElement.e5()?L.seekTo(0,{zZ:"videoplayer_loop",seekSource:37}):L.E5()):(L.playerState.isBuffering()||pmk(L,"progress_fix"),L.q8(Hi(L.playerState,1)))):(Z&&!N&&!F&&J>0&&(Z=(Date.now()-L.Ld)/1E3,N=L.getDuration(),J>N-1&&L.Hn("misspg",{t:J.toFixed(2),d:N.toFixed(2),r:Z.toFixed(2),bh:R.toFixed(2)})),L.playerState.isPaused()&&L.playerState.isBuffering()&&L.mediaElement.vu()>5&&L.q8(hA(L.playerState,1)));L.iq()}}; this.mediaElement.wN().length===0?this.XG=f?g.qT.pV(V,100):g.gW(V,100):this.XG=f?g.qT.pV(V,500):g.gW(V,500)}this.videoData.jI=B;!A&&this.isPlaying()&&FBE(this);$IQ(this.IC,this.kJ,this.pD(),this.isBackground())&&YH(this);this.publish("progresssync",A);K&&ZI(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.p.cJ=function(){this.O9("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.p.HT=function(){return this.CY.HT()}; g.p.Su=function(){return this.loader?this.loader.Su():ub(this.Ml,!0)}; g.p.q8=function(A){if(!g.tA(this.playerState,A)){var L=new g.dk(A,this.playerState);this.playerState=A;jS6(this);var B=!this.QP.length;this.QP.push(L);var f=this.mediaElement&&this.mediaElement.isSeeking();g.wk(L,1)&&this.loader&&MgQ(this.loader);f=L.oldState.state===8&&!f;if(g.wk(L,1)&&f&&g.x(this.playerState,8)&&!g.x(this.playerState,64)&&this.loader){f=this.loader;f.Vb=!0;if(f.policy.KY&&f.AF){var K,V,J,R;f.Hn("lr_rb",{c:f.getCurrentTime(),s:f.isSeeking(),ab:zv(f.AF.N.Hk()),ala:(K=n5(f.audioTrack))== null?void 0:K.Dx(),alr:(V=f.audioTrack.N)==null?void 0:V.Dx(),vb:zv(f.AF.W.Hk()),vla:(J=n5(f.videoTrack))==null?void 0:J.Dx(),vlr:(R=f.videoTrack.N)==null?void 0:R.Dx()})}f.ue!==0&&f.Hn("sps_rebuffer",{c:f.getCurrentTime()});this.mediaElement&&this.mediaElement.vu()>=5&&(K=this.IC,V=this.kJ,!V.videoData.W||K.J("html5_disable_performance_downgrade")?K=!1:(Date.now()-K.X>6E4&&(K.W=0),K.W++,K.X=Date.now(),K.W!==4?K=!1:(C$D(K,V.videoData.W),K=!0)),K&&YH(this))}(K=g.Am(this.L.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.x(A,1)&&(g.x(A,8)||g.x(A,16))?this.AR.start(K):this.AR.stop();(IA(L,8)<0||g.wk(L,1024))&&this.uv.stop();!g.wk(L,8)||this.videoData.G||g.x(L.state,1024)||this.uv.start();g.x(L.state,8)&&IA(L,16)<0&&!g.x(L.state,32)&&!g.x(L.state,2)&&this.playVideo();g.x(L.state,2)&&Ur(this.videoData)&&(this.Vr(this.getCurrentTime()),this.iq(!0));g.wk(L,2)&&(this.j3(!0),this.L.hw()&&this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&iS(this.videoData)&&this.videoData.N&&(A={minst:""+ this.videoData.N.CK,cminst:""+(this.videoData.N.vy()+this.pY()),maxst:""+this.videoData.N.F9,hts:""+this.videoData.N.Vj,cmaxst:""+(this.videoData.N.oA()+this.pY())},this.Hn("sabrSeekableBoundaries",A)));g.wk(L,128)&&this.aC();this.videoData.N&&this.videoData.isLivePlayback&&!this.aX&&(IA(L,8)<0?(A=this.videoData.N,A.D&&A.D.stop()):g.wk(L,8)&&this.videoData.N.resume());A=this.M8;g.Az(A.Wn.D);if(A.mediaElement)if(L.oldState.state===8&&kF(L.state)&&L.state.isBuffering()){var Z=A.mediaElement.getCurrentTime(); K=A.mediaElement.YJ();V=A.J("manifestless_post_live_ufph")||A.J("manifestless_post_live")?uQ(K,Math.max(Z-3.5,0)):uQ(K,Z-3.5);V>=0&&Z>K.end(V)-1.1&&V+10?(vY(A.Np,A.getCurrentTime()+A.videoData.limitedPlaybackDurationInSeconds), A.cn=!0):A.videoData.isLivePlayback&&A.videoData.endSeconds>0&&(vY(A.Np,A.getCurrentTime()+A.videoData.endSeconds),A.cn=!0));Z=this.CY;if(g.wk(L,1024)||g.wk(L,512)||g.wk(L,4))Z.W&&(A=Z.W,A.W>=0||(A.N=-1,A.delay.stop())),Z.qoe&&(A=Z.qoe,A.X||(A.V=-1));if(Z.provider.videoData.enableServerStitchedDai&&Z.l0){var N;(N=Z.V.get(Z.l0))==null||dL1(N,L)}else Z.N&&dL1(Z.N,L);Z.qoe&&(N=Z.qoe,A=L.state,K=g.Ci(N.provider),V=N.getPlayerState(A),J=A.seekSource||void 0,V!==N.xb&&(N.Vj||K=10&&N.playTimeSecs<=180&&(N.N.set("qoealert",["1"]),N.Nl=!0)),V!=="B"||N.xb!=="PL"&&N.xb!=="PB"||(N.isBuffering=!0),N.W=K),N.xb==="PL"&&(V==="B"||V==="S")||N.provider.L.hw()?$k(N,K):(N.ql||V!=="PL"||(N.ql=!0,i3(N,K,N.provider.Np.Uq())),Q_(N,K)),V==="PL"&&g.Az(N.k6),R=[V],V==="S"&&J&&R.push("ss."+J),g.TL(N,K,"vps",R),N.xb=V,N.Wn=K,N.W=K,N.U=!0),V=A.nh,g.x(A,128)&&V&&(V.yV=V.yV||"",bmk(N,K,V.errorCode, V.V5,V.yV)),(g.x(A,2)||g.x(A,128))&&N.reportStats(K),A.isPlaying()&&!N.X&&(N.V>=0&&N.N.set("user_intent",[N.V.toString()]),N.X=!0),Xg(N));Z.W&&(N=Z.W,YVv(N),N.playerState=L.state,N.W>=0&&g.wk(L,16)&&N.seekCount++,L.state.isError()&&N.send());if(B&&!this.TL())try{for(var F=g.m(this.QP),D=F.next();!D.done;D=F.next()){var I=D.value,d=this.I4;if(d.started&&(d.sync(),g.x(I.oldState,16))){L=d;var w=TPE(L.N,Math.max(L.V-2E3,0));!isNaN(w)&&w<0x7ffffffffffff&&L.U.start()}this.publish("statechange",I)}}finally{this.QP.length= 0}}}; g.p.AZ=function(){this.Rv.tick("qoes")}; g.p.tB=function(){this.M8.tB()}; g.p.FU=function(A,L,B,f){a:{var K=this.KQ;f=f===void 0?"LICENSE":f;B=B.substring(0,256);var V=Vu(L);A==="drm.keyerror"&&this.Gq&&this.Gq.W.keys.length>1&&K.U<96&&(A="drm.sessionlimitexhausted",V=!1);var J=K.tF.experiments.GL("html5_retry_on_drm_unavailable"),R=K.tF.experiments.GL("html5_retry_on_drm_key_error"),Z=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(J&&A==="drm.unavailable"||R&&A==="drm.keyerror"&&!B.match(Z))K.Ho("qoe.restart",{retryOnDrmError:1,e:A,detail:B}),K.Np.A1(!0);else{if(V)if(K.videoData.W&& K.videoData.W.video.isHdr())ri8(K,A);else{if(K.Np.O9(A,L,f,B),DIS(K,{detail:B}))break a}else K.Ho(A,{detail:B});A==="drm.sessionlimitexhausted"&&(K.Hn("retrydrm",{sessionLimitExhausted:1}),K.U++,wmy(K.Np))}}}; g.p.pyr=function(){var A=this,L=g.Am(this.L.experiments,"html5_license_constraint_delay"),B=Vz();L&&B?(L=new g.aa(function(){A.bD();xH(A)},L),g.W(this,L),L.start()):(this.bD(),xH(this))}; g.p.bV=function(A){this.publish("heartbeatparams",A)}; g.p.Cl=function(A){this.Hn("keystatuses",Xo8(A));var L="auto",B=!1;this.videoData.W&&(L=this.videoData.W.video.quality,B=this.videoData.W.video.isHdr());a:{switch(L){case "highres":case "hd2880":L="UHD2";break;case "hd2160":case "hd1440":L="UHD1";break;case "hd1080":case "hd720":L="HD";break;case "large":case "medium":case "small":case "light":case "tiny":L="SD";break;default:L="";break a}B&&(L+="HDR")}L=u3(A)?aS(A,L):A.U.includes(L);if(this.J("html5_enable_vp9_fairplay")){if(B)if(A.X){var f;if((f= this.Gq)==null?0:F5(f.N))if((B=this.Gq)==null)B=0;else{for(var K=f=void 0,V=g.m(B.W.values()),J=V.next();!J.done;J=V.next())J=J.value,f||(f=E5E(J,"SD")),K||(K=E5E(J,"AUDIO"));B.Jd({sd:f,audio:K});B=f==="output-restricted"||K==="output-restricted"}else B=!L;if(B){this.Hn("drm",{dshdr:1});ri8(this.KQ);return}}else{this.videoData.XV||(this.videoData.XV=!0,this.Hn("drm",{dphdr:1}),this.A1(!0));return}var R;if((R=this.Gq)==null?0:F5(R.N))return}else if(R=A.X&&L,B&&!R){ri8(this.KQ);return}L||aS(A,"AUDIO")&& aS(A,"SD")||(A=Xo8(A),this.sX?(this.publish("drmoutputrestricted"),this.J("html5_report_fatal_drm_restricted_error_killswitch")||this.O9("drm.keyerror",2,void 0,"info."+A)):(this.sX=!0,this.Ho(new g.K$("qoe.restart",Object.assign({},{retrydrm:1},A))),YH(this),wmy(this)))}; g.p.eSj=function(){if(!this.videoData.G&&this.mediaElement&&!this.isBackground()){var A="0";this.mediaElement.J2()>0&&this.mediaElement.vu()>=5&&this.videoData.V&&this.videoData.V.N&&(this.q8(Hi(this.playerState,1)),pmk(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),A="1");jS6(this);var L=this.videoData.V;A={restartmsg:A,mfmt:!wp(this.videoData),mdrm:!(!(L&&L.videoInfos&&L.videoInfos.length&&L.videoInfos[0].Zj)||this.Gq),mfmtinfo:!this.videoData.W,prerolls:this.BF()?this.n3.join(","): "0"};if(this.Gq){L=this.Gq;if(L.W.size<=0){var B="ns;";L.yj||(B+="nr;");L=B+="ql."+L.V.length}else L=Xo8(L.W.values().next().value),L=f$(L);A.drmp=L}var f;Object.assign(A,((f=this.loader)==null?void 0:f.Ov())||{});var K;Object.assign(A,((K=this.mediaElement)==null?void 0:K.Ov())||{});this.CY.Ho("qoe.start15s",f$(A));this.publish("loadsofttimeout")}}; g.p.Vr=function(A){this.videoData.lengthSeconds!==A&&(this.videoData.lengthSeconds=A,xH(this))}; g.p.j3=function(A,L){var B=this;A=A===void 0?!1:A;if(!this.d4)if(iJ("att_s","player_att")||OC("att_s",void 0,"player_att"),this.J("use_rta_for_player"))(function(){var K,V,J,R,Z;return g.c(function(N){switch(N.N){case 1:if(!(K=A)){N.Ux(2);break}return g.X(N,g.paQ(),3);case 3:K=!N.W;case 2:if(K)return N.return();g.S5(N,4);V=r47(B.CY);if(!V)throw Error();J={};return g.X(N,g.wav((J.cpn=B.videoData.clientPlaybackNonce,J.encryptedVideoId=B.videoData.videoId||"",J),g.Am(B.L.experiments,"html5_att_playback_timeout_ms")|| 3E4),6);case 6:R=N.W;if(B.d4)throw Error();if(!R.challenge)throw Z=R.error?"; error: "+R.error:"",g.CE(Error("Not sending atr ping; missing challenge string"+Z)),Error();B.d4=!0;var F=[R.challenge];if(R.error){var D=mCX();D=Wsv(D).get(R.error)||0;F.push("r1c="+D)}else R.webResponse&&F.push("r1a="+R.webResponse);var I;((I=R.adblockReporting)==null?void 0:I.reportingStatus)!==void 0&&F.push("r6a="+R.adblockReporting.reportingStatus);var d;((d=R.adblockReporting)==null?void 0:d.broadSpectrumDetectionResult)!== void 0&&F.push("r6b="+R.adblockReporting.broadSpectrumDetectionResult);V(F.join("&"));OC("att_f",void 0,"player_att");g.ZR(N,0);break;case 4:g.NX(N),OC("att_e",void 0,"player_att"),g.VK(N)}})})().then(function(){L==null||L()}); else{var f=new g.JmL(this.videoData);if("c1a"in f.AO&&!g.G4.isInitialized()){OC("att_wb",void 0,"player_att");this.GS===2&&Math.random()<.01&&g.CE(Error("Botguard not available after 2 attempts"));if(A)return;if(this.GS<5){g.Az(this.Oa);this.GS++;return}}(f=g.SZD(f))?(OC("att_f",void 0,"player_att"),GE7(this.CY,f),this.d4=!0):OC("att_e",void 0,"player_att")}}; g.p.bH=function(A){A=A===void 0?!1:A;return HK(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.YE()||g.MG(this.videoData))?this.getCurrentTime():this.oA(A)}; g.p.I5=function(){return this.vy()}; g.p.oA=function(A){return this.M8.oA(A===void 0?!1:A)}; g.p.vy=function(){return this.M8.vy()}; g.p.pY=function(){return this.M8?this.M8.pY():0}; g.p.getStreamTimeOffset=function(){return this.M8?this.M8.getStreamTimeOffset():0}; g.p.Dk=function(){return this.getStreamTimeOffset()===0?this.pY():this.getStreamTimeOffset()}; g.p.setPlaybackRate=function(A){var L;this.playbackRate!==A&&bTD(this.IC,(L=this.videoData.V)==null?void 0:L.videoInfos)&&(this.playbackRate=A,YH(this));this.playbackRate=A;this.mediaElement&&this.mediaElement.setPlaybackRate(A)}; g.p.getPlaybackRate=function(){return this.playbackRate}; g.p.getPlaybackQuality=function(){var A="unknown";if(this.videoData.W&&(A=this.videoData.W.video.quality,A==="auto"&&this.mediaElement)){var L=this.Ur();L&&L.videoHeight>0&&(A=tT(L.videoWidth,L.videoHeight))}return A}; g.p.isHdr=function(){return!!(this.videoData.W&&this.videoData.W.video&&this.videoData.W.video.isHdr())}; g.p.sendVideoStatsEngageEvent=function(A,L){var B=this.CY;B.N?(B=Ic(B.N,"engage"),B.Vj=A,B.send(L)):L&&L()}; g.p.b0=function(A){return this.CY.b0(A)}; g.p.isAtLiveHead=function(A,L){L=L===void 0?!1:L;return HK(this.videoData)&&(this.Cz||L)?this.M8.isAtLiveHead(A):!1}; g.p.pX=function(){var A=this.oA(),L=this.getCurrentTime(),B;(B=!HK(this.videoData))||(B=this.M8,B=!(B.N&&B.N.V));return B||this.YE()||isNaN(A)||isNaN(L)?0:Math.max(0,A-L)}; g.p.UA=function(A){(this.Cz=A)||this.uv.stop();if(this.videoData.N)if(A)this.videoData.N.resume();else{var L=this.videoData.N;L.D&&L.D.stop()}this.loader&&(L=this.videoData.J("html5_disable_preload_for_ssdai_with_preroll")&&this.Hu()&&this.videoData.isLivePlayback,A&&!L?this.loader.resume():ac(this,!0));g.x(this.playerState,2)||A?g.x(this.playerState,512)&&A&&this.q8(hA(this.playerState,512)):this.q8(Hi(this.playerState,512));L=this.CY;L.qoe&&(L=L.qoe,g.TL(L,g.Ci(L.provider),"stream",[A?"A":"I"]))}; g.p.IS=function(A){this.CY.Ho("player.exception",f$({n:A.name,m:A.message}))}; g.p.W9=OD(18);g.p.IU=OD(47);g.p.Qe=function(A){this.CY.Qe(A)}; g.p.nS=function(A){this.CY.nS(A)}; g.p.CS=function(A){this.CY.CS(A)}; g.p.J1=OD(24);g.p.ph=OD(30);g.p.DW=function(A){this.CY.DW(A)}; g.p.XY=function(A,L,B,f){this.CY.XY(A,L,B,f)}; g.p.gG=function(){this.Hn("hidden",{},!0)}; g.p.Db=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.p.jR=function(){return this.loader?this.loader.jR():!0}; g.p.setLoop=function(A){this.loop=A;this.mediaElement&&!g.wY(this.L)&&this.mediaElement.setLoop(A)}; g.p.e5=function(){return this.mediaElement&&!g.wY(this.L)?this.mediaElement.e5():this.loop}; g.p.uV=function(A){this.Hn("timestamp",{o:A.toString()});this.M8.uV(A)}; g.p.S$=function(A){this.Rv.tick(A)}; g.p.Nq=function(A){return this.Rv.Nq(A)}; g.p.WZ=function(A){this.Rv.WZ(A)}; g.p.Hn=function(A,L,B){this.CY.Hn(A,L,B===void 0?!1:B)}; g.p.SV=function(A,L,B){this.CY.Hn(A,L,B===void 0?!1:B)}; g.p.Ho=function(A){this.CY.Ho(A.errorCode,f$(A.details));A=A.errorCode;if(this.videoData.isLivePlayback&&(A==="qoe.longrebuffer"||A==="qoe.slowseek")||A==="qoe.restart"){A=this.loader?L$7(this.loader.videoTrack):{};var L,B;this.Hn("lasoe",Object.assign(this.loader?L$7(this.loader.audioTrack):{},(L=this.AF)==null?void 0:(B=L.N)==null?void 0:B.Eb()));var f,K;this.Hn("lvsoe",Object.assign(A,(f=this.AF)==null?void 0:(K=f.W)==null?void 0:K.Eb()))}if(this.J("html5_log_centralized_player_time")){var V;this.Hn("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(V=this.loader)==null?void 0:q8(V)})}}; g.p.jd=function(A,L,B){this.CY.jd(A,L,B)}; g.p.Rh=function(A,L,B,f,K,V,J,R){var Z;if((Z=this.videoData.N)!=null&&Z.isLive){var N=L.playerType===2?L:A,F=A.videoData.videoId,D=L.videoData.videoId;if(F&&D){Z=this.CY;if(R==null?0:R.Oz){if(Z.qoe){F=Z.qoe;D=R.Oz;F.reportStats();var I=F.provider.videoData.clientPlaybackNonce,d=F.provider.videoData.videoId||"",w,r=((w=F.E$)==null?void 0:w.join("."))||I,h;w=((h=F.hk)==null?void 0:h.join("."))||d;Yk(F,V?4:K?2:0,D.Ka.join(".")||I,D.yn.join(".")||d,f);F.reportStats();F.E$=D.Ka;F.hk=D.yn;F.d_=D.adFormats; F.mR=D.serializedQoeContextData;Yk(F,V?5:K?3:1,r,w,B);F.reportStats()}}else if(Z.qoe){h=Z.qoe;w=A.cpn;I=L.cpn;d=N.videoData.ql;var Q=h.provider.videoData.clientPlaybackNonce,l=h.provider.videoData.videoId;r=I!==Q&&D!==l;Q=w!==Q&&F!==l;h.reportStats();h.adCpn&&h.adCpn!==w||(h.adCpn=Q?w:"",h.Ak=Q?F:"",h.adFormat=Q?d:void 0,Yk(h,V?4:K?2:0,I,D,f),h.reportStats(),h.adCpn=r?I:"",h.Ak=r?D:"",h.adFormat=r?d:void 0,Yk(h,V?5:K?3:1,w,F,B),h.reportStats())}if(R==null?0:R.Hj){var C=R.Hj.serializedPlaybackPingContextLoggingData; if((f=Z.N)!=null){N=f.N.D;var O=f.provider.L.Qf().N.Iv(w6f)||4E3;N>O&&Fz(f)}var v;(v=Z.N)!=null&&Rc(v.N);(f=Z.N)!=null&&(f.N.serializedPlaybackPingContextLoggingData=C);var U;(U=Z.N)!=null&&Rc(U.N);var a;(a=Z.N)==null||Fz(a);(Z=Z.N)!=null&&(Z.X=0)}else U=A.cpn,Z.V.has(U)?(a=Z.V.get(U),ww(a,!0).send(),dw(a),U!==Z.provider.videoData.clientPlaybackNonce&&(DL8(a),(O=Z.N)==null||Fz(O),Z.V.delete(U))):(Z.l0=Z.provider.videoData.clientPlaybackNonce,Z.l0&&Z.N&&(Z.V.set(Z.l0,Z.N),ww(Z.N).send(),dw(Z.N))), U=L.cpn,a=N.videoData,f-=this.Dk(),Z.V.has(U)?(a=Z.V.get(U),C=a.V&&isNaN(a.D)?D5(a):NaN,a=RJ0(a,!1),isNaN(C)||(a.X=C),a.send()):(a=sN6(Z,Z.provider,a,f),Z.V.set(U,a),dL1(a,new g.dk(Hi(new g.Gu,8),new g.Gu)),a.uf(),(C=Z.N)==null||dw(C)),Z.l0=U;if(this.J("html5_unify_csi_server_stitched_transition_logging")){if(Z=this.Rv,U=A.cpn,A=L.cpn,a=this.videoData.clientPlaybackNonce,C=L.videoData,L=(0,g.bc)(),U=(U===a?"video":"ad")+"_to_"+(A===a?"video":"ad"),U!=="video_to_ad"){a=U==="ad_to_video"?void 0:C;f= a==null?void 0:a.VH;v={};if(C==null?0:C.T)v.cttAuthInfo={token:C.T,videoId:C.videoId};J&&(v.startTime=J);C0(U,v);var o0,B6,Ve;J={targetVideoId:(o0=C==null?void 0:C.videoId)!=null?o0:"empty_video",targetCpn:A,adVideoId:(B6=a==null?void 0:a.videoId)!=null?B6:"empty_video",adClientPlaybackNonce:(Ve=f==null?void 0:f.cpn)!=null?Ve:a==null?void 0:a.clientPlaybackNonce};f&&(J.adBreakType=f.adBreakType,J.adType=f.adType);g.Qm(J,U);Jq(Z,L,U)}}else o0=this.Rv,Z=this.videoData.clientPlaybackNonce,B6=(0,g.bc)(), Ve=L.videoData,A=(A.cpn===Z?"video":"ad")+"_to_"+(L.cpn===Z?"video":"ad"),Z={},Ve.T&&(Z.cttAuthInfo={token:Ve.T,videoId:Ve.videoId}),J&&(Z.startTime=J),C0(A,Z),g.Qm({targetVideoId:Ve.videoId,targetCpn:L.cpn,isSsdai:!0},A),J||Jq(o0,B6,A)}}else g.Hp(this.logger,360717806,"SSTEvent for nonSS")}; g.p.Rx=function(){var A=this.gf,L=A.P3;A.P3=[];return L}; g.p.Oe=function(A){this.videoData.p$=!0;this.Ho(new g.K$("sabr.fallback",A));this.A1(!0)}; g.p.G9=function(A,L){this.videoData.B4=!0;if(L===void 0||L)this.Ho(new g.K$("qoe.restart",A)),this.A1(!0)}; g.p.q3=function(A){this.Hn("sdai",{aftimeout:A});this.Ho(new g.K$("ad.fetchtimeout",{timeout:A}))}; g.p.Iw=function(A,L){this.Hn("timelineerror",A);A=new g.K$("dai.timelineerror",A);L?this.O9("dai.timelineerror",1,"RETRYABLE_ERROR",f$(A.details)):this.Ho(A)}; g.p.G_=function(){return g.Ci(this.CY.provider)}; g.p.getPlayerSize=function(){return this.z8.getPlayerSize()}; g.p.yN=function(){return this.z8.yN()}; g.p.zH=function(){return this.Rv}; g.p.OZ=function(){return this.gf.OZ()}; g.p.getVolume=function(){return this.gf.getVolume()}; g.p.X1=function(){return this.gf.X1()}; g.p.isMuted=function(){return this.gf.isMuted()}; g.p.MW=function(){return this.gf.MW()}; g.p.rS=function(){this.aX=!0}; g.p.J=function(A){return this.L.J(A)}; g.p.Qf=function(){return this.L.Qf()}; g.p.wY=function(A,L,B,f,K){this.Hn("xvt",{m:A,g:L?1:0,tt:B?1:0,np:f?1:0,c:K})}; g.p.Zh=function(){var A;(A=this.loader)==null||A.resume()}; g.p.Hu=function(){return g.zK(this.n3,"ad")}; g.p.bF=function(){var A=this.getCurrentTime(),L=A-this.pY();var B=this.mediaElement?LW(this.mediaElement.YJ()):0;B=Math.floor(Math.max(B-L,0))+100;var f;return((f=this.loader)==null?0:f.bF(L,B))?(this.Hn("sdai",{skipad:1,ct:L.toFixed(3),adj:B.toFixed(3)}),iS(this.videoData)&&this.loader.seek(L+B,{seekSource:89,zZ:"videoplayer_skipServerStitchedAd"}),plC(this.M8,A),!0):!1}; g.p.hw=function(){return this.L.hw()}; g.p.BA=function(){if(this.J("html5_generate_content_po_token"))return this.videoData.Kx||"";this.gf.NK();return this.L.mC||""}; g.p.sb=function(){if(this.videoData.videoId)return this.videoData.SH}; g.p.TP=function(){return this.videoData.videoId}; g.p.rW=function(){return this.gf.DA}; g.p.lz=function(){return this.nu}; g.p.I6=function(){return this.gf.I6()}; g.p.Qb=function(A,L,B){this.q8(Hi(this.playerState,16,B));this.M8.Qb(A,L,B)}; g.p.prefetchKeyPlay=function(A,L){var B;(B=this.loader)==null||B.prefetchKeyPlay(A,L)}; g.p.cA=function(A){return this.M8.cA(A)}; g.p.Uw=function(){this.M8.Uw()}; g.p.sM=function(A,L){var B=this.J("html5_generate_content_po_token")?this.videoData:void 0;this.gf.sM(A,L,B)}; g.p.fC=function(A,L){this.CY.fC(A,L)}; g.p.Vu=function(){return this.CY.Vu()}; g.p.qV=function(){return this.gf.qV()}; g.p.OS=function(){return this.gf.OS(this)}; g.p.RS=function(){this.cX=!0}; g.p.Qt=function(A){var L;(L=this.loader)==null||L.Qt(A)}; g.p.yl=function(A){this.M8.yl(A)}; var unE={primary:"Primary",secondary:"Secondary"};g.G(rBy,VC);g.G(Ll,Dq);Ll.prototype.N=function(A){A&&dC(this,this.S.getLoopVideo());this.S.logVisibility(this.element,A)}; Ll.prototype.logClick=function(){this.S.logClick(this.element)}; Ll.prototype.onLoopChange=function(A){dC(this,A)}; Ll.prototype.W=function(A){this.S.setLoopVideo(A)};g.G(sSD,VC);g.G(HiD,VC);g.p=HiD.prototype;g.p.seekToChapterWithAnimation=function(A){var L=this;if(g.Hh(this.api)&&!(A<0)){var B=this.api.getVideoData(),f=B.k6;if(f&&A=0)return;L=~L;g.Zw(this.items,L,0,A);iA(this.menuItems.element,A.element,L)}A.subscribe("size-change",this.SU,this);this.menuItems.publish("size-change")}; g.p.xo=function(){oH6(this)||this.items[0].focus();return!0}; g.p.uU=function(){this.items[this.items.length-1].focus();return!0}; g.p.Z1=function(A){A.unsubscribe("size-change",this.SU,this);this.TL()||(g.Lx(this.items,A),this.menuItems.element.removeChild(A.element),this.menuItems.publish("size-change"))}; g.p.SU=function(){this.menuItems.publish("size-change")}; g.p.focus=function(){for(var A=0,L=0;L1&&g.js(this)}; g.p.oN=function(){Vvw(this);this.bC&&(f5L(this),g.wK(this.element,this.size))}; g.p.h2=function(){var A=this.N.pop();KIS(this,A,this.N[this.N.length-1],!0)}; g.p.A2=function(A){if(!A.defaultPrevented)switch(A.keyCode){case 27:this.YP();A.preventDefault();break;case 37:this.N.length>1&&this.h2();A.preventDefault();break;case 39:A.preventDefault()}}; g.p.focus=function(){this.N.length&&this.N[this.N.length-1].focus()}; g.p.l1=function(){g.zg.prototype.l1.call(this);this.V&&this.V.dispose();this.U&&this.U.dispose()};g.G(gA,g.pl);gA.prototype.open=function(A,L){this.initialize(A.items)&&this.fD(L,!!L)}; gA.prototype.initialize=function(A){g.wA(this.NU);if(A===void 0||A.length===0)return!1;var L=A.length;A=g.m(A);for(var B=A.next();!B.done;B=A.next())this.ov(B.value,L--);return!0}; gA.prototype.ov=function(A,L){A.menuNavigationItemRenderer?R_Q(this,A.menuNavigationItemRenderer,L):A.menuServiceItemRenderer&&ZRL(this,A.menuServiceItemRenderer,L)};g.G(Gt,DW);g.p=Gt.prototype;g.p.gJ=function(A){A.target!==this.dismissButton.element&&A.target!==this.overflowButton.element&&(this.Or(),this.onClickCommand&&this.S.Kr("innertubeCommand",this.onClickCommand))}; g.p.qb=function(){this.enabled=!1;this.G.hide()}; g.p.CC=function(){return!!this.N&&this.enabled}; g.p.onVideoDataChange=function(A,L){this.Tn(L);if(this.N){this.iO();a:if(!this.isCounterfactual){var B,f,K;this.banner.update({title:(B=this.N)==null?void 0:B.title,subtitle:(f=this.N)==null?void 0:f.subtitle,metadata:(K=this.N)==null?void 0:K.metadataText});var V;this.onClickCommand=g.y((V=this.N)==null?void 0:V.onTap,XP);var J;if(A=g.y((J=this.N)==null?void 0:J.onOverflow,XP))this.T=g.y(A,Ft9);var R;if((R=this.N)==null?0:R.thumbnailImage){var Z,N;J=((Z=this.N)==null?void 0:(N=Z.thumbnailImage)== null?void 0:N.sources)||[];if(J.length===0)break a;this.thumbnailImage.update({url:J[0].url})}else{var F;if((F=this.N)==null?0:F.thumbnailIconName){var D;this.thumbnailIcon.update({icon:(D=this.N)==null?void 0:D.thumbnailIconName})}}var I;this.shouldShowOverflowButton=!((I=this.N)==null||!I.shouldShowOverflowButton);var d;this.shouldHideDismissButton=!((d=this.N)==null||!d.shouldHideDismissButton)}var w;this.banner.element.setAttribute("aria-label",((w=this.N)==null?void 0:w.a11yLabel)||"");var r; this.Cr=(r=this.N)==null?void 0:r.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;FIS(this)}}; g.p.g64=function(){this.isVisible=!0;FIS(this)}; g.p.n6D=function(){this.isVisible=!1;FIS(this)}; g.p.hH=function(){DW.prototype.hH.call(this);this.V&&this.S.logVisibility(this.banner.element,this.isVisible)}; g.p.Or=function(){DW.prototype.Or.call(this,!1);this.V&&this.S.logClick(this.banner.element)}; g.p.u6=function(A){this.D||(this.D=new gA(this.S),g.W(this,this.D));var L,B;if((L=this.T)==null?0:(B=L.menu)==null?0:B.menuRenderer)this.D.open(this.T.menu.menuRenderer,A.target),A.preventDefault()}; g.p.Tn=function(){}; g.p.iO=function(){}; g.p.l1=function(){this.S.Jf("suggested_action_view_model");DW.prototype.l1.call(this)};g.G(rA,Gt); rA.prototype.Tn=function(A){var L,B,f;this.productUpsellSuggestedActionViewModel=g.y((L=A.getWatchNextResponse())==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.suggestedActionViewModel,hwd);var K;if((K=this.productUpsellSuggestedActionViewModel)==null?0:K.content){var V;this.N=g.y((V=this.productUpsellSuggestedActionViewModel)==null?void 0:V.content,RwX)}var J,R;if(this.V=!!((J=this.productUpsellSuggestedActionViewModel)==null?0:(R=J.loggingDirectives)==null? 0:R.trackingParams)){var Z,N;this.S.setTrackingParams(this.banner.element,((Z=this.productUpsellSuggestedActionViewModel)==null?void 0:(N=Z.loggingDirectives)==null?void 0:N.trackingParams)||null)}var F;this.isCounterfactual=!((F=this.productUpsellSuggestedActionViewModel)==null||!F.isCounterfactualServing)}; rA.prototype.iO=function(){var A=[],L,B=g.m(((L=this.productUpsellSuggestedActionViewModel)==null?void 0:L.ranges)||[]);for(L=B.next();!L.done;L=B.next()){var f=L.value;f&&(L=Number(f.startTimeMilliseconds),f=Number(f.endTimeMilliseconds),isNaN(L)||isNaN(f)||A.push(new g.WR(L,f,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.S.dX(A)};g.G(D9D,VC);g.G(sq,VC);sq.prototype.onVideoDataChange=function(A,L){var B=this;if(!oh(L)&&(A==="newdata"&&wY6(this),this.N&&A==="dataloaded")){this.N=!1;var f;LP(A2(y3(this.api.K(),(f=this.api.getVideoData())==null?void 0:g.Aj(f)),function(K){rtE(B,K)}),function(){B.N=!0})}}; sq.prototype.dh=function(){var A=this;if(g.wY(this.api.K())){var L,B=g.po(this.api.K(),(L=this.api.getVideoData())==null?void 0:g.Aj(L));return A2(nS(B),function(f){var K=xn();eg(K,f);return A.api.dh(K)})}return nS(this.api.dh())};g.G(g.He,g.of);g.p=g.He.prototype;g.p.open=function(){g.yp(this.Wz,this.rf)}; g.p.GH=function(A){HRy(this);var L=this.options[A];L&&(L.element.setAttribute("aria-checked","true"),this.setContent(this.I8(A)),this.GP=A)}; g.p.eO=function(A){g.wA(this.rf);for(var L={},B=!1,f=0;f=0?this.N.playbackRate:1}catch(A){return 1}}; g.p.setPlaybackRate=function(A){this.getPlaybackRate()!==A&&(this.N.playbackRate=A);return A}; g.p.e5=function(){return this.N.loop}; g.p.setLoop=function(A){this.N.loop=A}; g.p.canPlayType=function(A,L){return this.N.canPlayType(A,L)}; g.p.isPaused=function(){return this.N.paused}; g.p.isSeeking=function(){return this.N.seeking}; g.p.isEnded=function(){return this.N.ended}; g.p.ib=function(){return this.N.muted}; g.p.o6=function(A){D2();this.N.muted=A}; g.p.wN=function(){return this.N.played||n$([],[])}; g.p.YJ=function(){try{var A=this.N.buffered}catch(L){}return A||n$([],[])}; g.p.Zk=function(){return this.N.seekable||n$([],[])}; g.p.r_=function(){var A=this.N;return A.getStartDate?A.getStartDate():null}; g.p.getCurrentTime=function(){return this.N.currentTime}; g.p.setCurrentTime=function(A){this.N.currentTime=A}; g.p.getDuration=function(){return this.N.duration}; g.p.load=function(){var A=this.N.playbackRate;try{this.N.load()}catch(L){}this.N.playbackRate=A}; g.p.pause=function(){this.N.pause()}; g.p.play=function(){var A=this.N.play();if(!A||!A.then)return null;A.then(void 0,function(){}); return A}; g.p.J2=function(){return this.N.readyState}; g.p.Yj=function(){return this.N.networkState}; g.p.p8=function(){return this.N.error?this.N.error.code:null}; g.p.SE=function(){return this.N.error?this.N.error.message:""}; g.p.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.N instanceof window.HTMLVideoElement&&this.N.getVideoPlaybackQuality)return this.N.getVideoPlaybackQuality();if(this.N){var A=this.N,L=A.webkitDroppedFrameCount;if(A=A.webkitDecodedFrameCount)return{droppedVideoFrames:L||0,totalVideoFrames:A}}return{}}; g.p.QC=function(){return!!this.N.webkitCurrentPlaybackTargetIsWireless}; g.p.m2=function(){return!!this.N.webkitShowPlaybackTargetPicker()}; g.p.togglePictureInPicture=function(){var A=this.N,L=window.document;window.document.pictureInPictureEnabled?this.N!==L.pictureInPictureElement?A.requestPictureInPicture():L.exitPictureInPicture():F2()&&A.webkitSetPresentationMode(A.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.p.Gf=function(){return IwL(this.N)}; g.p.getSize=function(){return g.pv(this.N)}; g.p.setSize=function(A){g.wK(this.N,A)}; g.p.getVolume=function(){return this.N.volume}; g.p.setVolume=function(A){D2();this.N.volume=A}; g.p.uR=function(A){this.W[A]||(this.N.addEventListener(A,this.listener),this.W[A]=this.listener)}; g.p.setAttribute=function(A,L){this.N.setAttribute(A,L)}; g.p.removeAttribute=function(A){this.N.removeAttribute(A)}; g.p.hasAttribute=function(A){return this.N.hasAttribute(A)}; g.p.Xk=OD(53);g.p.BQ=OD(56);g.p.PQ=OD(59);g.p.uA=OD(62);g.p.VJ=function(){return H9(this.N)}; g.p.zf=function(A){g.R1(this.N,A)}; g.p.AY=function(A){return g.SV(this.N,A)}; g.p.xU=function(){return g.XF(document.body,this.N)}; g.p.audioTracks=function(){var A=this.N;if("audioTracks"in A)return A.audioTracks}; g.p.l1=function(){for(var A=g.m(Object.keys(this.W)),L=A.next();!L.done;L=A.next())L=L.value,this.N.removeEventListener(L,this.W[L]);je.prototype.l1.call(this)}; g.p.vl=function(A){this.N.disableRemotePlayback=A};g.G(X7,g.q);g.G(Eq,g.q);Eq.prototype.show=function(){g.q.prototype.show.call(this);this.zL()}; Eq.prototype.hide=function(){g.q.prototype.hide.call(this);this.delay.stop();this.U.stop()}; Eq.prototype.zL=function(){var A=(0,g.bc)(),L=EHk(this.rT);Oq(this.N,L.bandwidth_samples);Oq(this.T,L.network_activity_samples);Oq(this.V,L.live_latency_samples);Oq(this.W,L.buffer_health_samples);var B={};L=g.m(Object.entries(L));for(var f=L.next();!f.done;f=L.next()){var K=g.m(f.value);f=K.next().value;K=K.next().value;this.X[f]!==K&&(B[f]=" "+String(K));this.X[f]=K}this.update(B);A=(0,g.bc)()-A>25?5E3:500;this.delay.start(A)}; Eq.prototype.G=function(){this.D?(this.position+=1,this.position>15&&(this.D=!1)):(--this.position,this.position<=0&&(this.D=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.U.start(2E4)};g.G(YPQ,VC);g.G(ce,g.Y);ce.prototype.N=function(){var A=(0,g.bc)()-this.startTime;A=Athis.U[A])&&(this.N=A,this.va())}; g.p.onCueRangeExit=function(A){var L=LSS(this,A);L&&this.N===A&&this.api.Kr("innertubeCommand",L);Uq(this);this.N=void 0}; g.p.py=function(A){this.V=A}; g.p.fg=function(){this.va();this.V=void 0}; g.p.va=function(){if(this.N!==void 0){var A=(A=Y8(this,this.N))&&A.onCueRangeEnter?EF(A.onCueRangeEnter):void 0;var L=Y8(this,this.N);a:if(L&&L.additionalTrigger){var B=g.m(L.additionalTrigger);for(var f=B.next();!f.done;f=B.next())if(f=f.value,f.type){var K=void 0,V=void 0;if((K=this.ZM[f.type])==null?0:K((V=f.args)!=null?V:{})){B=!0;break a}}B=!1}else B=!0;A&&B&&(this.api.Kr("innertubeCommand",A),o8L(this,L),this.U[this.N]!==void 0&&this.U[this.N]++,this.yj=!0)}}; g.p.l1=function(){this.timelyActions=this.V=this.N=this.videoId=void 0;this.U={};this.K9();Uq(this);VC.prototype.l1.call(this)};g.G(KSS,VC);g.G(We,Dq);We.prototype.U=function(A){this.V(A?2:1)}; We.prototype.f8=function(){var A=this.S.getPresentingPlayerType();A===2||A===3?this.N&&(this.N=!1,this.Wz.Z1(this)):(A=this.getVoiceBoostState(),A!==1?(A===0?(dC(this,this.W()===2),this.setEnabled(!0)):(dC(this,!1),this.setEnabled(!1)),this.N||(this.Wz.ov(this),this.N=!0)):this.N&&(this.Wz.Z1(this),this.N=!1))}; We.prototype.l1=function(){this.Wz.Z1(this);Dq.prototype.l1.call(this)};g.G(ve,VC);ve.prototype.getVoiceBoostUserPreference=function(){return this.N}; ve.prototype.setVoiceBoostUserPreference=function(A){this.api.Hn("vb_set",{pref:A});g.OS("yt-player-voice-boost",A);A!==this.N&&(this.N=A,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.A8(),this.api.VF())}; ve.prototype.getVoiceBoostState=function(){return this.api.a_(1)}; ve.prototype.updateEnvironmentData=function(){this.api.K().rg=this.N};g.G(Pe,VC);Pe.prototype.l1=function(){this.G&&(g.sQ(this.G),this.G=void 0);VC.prototype.l1.call(this)}; Pe.prototype.NK=function(){(this.W?!this.N:this.V)&&nl(this)}; Pe.prototype.bW=function(A,L,B){var f=this;if(SqQ(A)){var K=B||"";if(this.N)L=zt(this,K),R16(A,L);else{var V=new g.IQ;L.push(V.promise);this.D.promise.then(function(){var J=zt(f,K);R16(A,J);V.resolve()})}}}; Pe.prototype.HG=function(A){var L=this;if(this.W||this.V)A.Kx=zt(this,A.videoId),this.N||(this.U=new yV,this.D.promise.then(function(){L.Rv.Nq("pot_if");A.Kx=zt(L,A.videoId)}))};g.G(uu,g.q);g.p=uu.prototype;g.p.Mx=function(){var A=this.S.getVideoData(1),L,B,f=(B=((A==null?0:(L=A.suggestions)==null?0:L.length)?A.suggestions:(A==null?0:g.DQ(A))?[g.DQ(A)]:[])[0])==null?void 0:B.g1("mqdefault.jpg");this.W&&f&&g.Kv(this.W,"background-image",f?'url("'+f+'")':"")}; g.p.onClick=function(){this.S.logClick(this.element)}; g.p.Y6=function(A){this.xP([1,2].includes(A));g8E(this,A)}; g.p.xP=function(A){g.q.prototype.xP.call(this,A);this.element.setAttribute("aria-hidden",String(!A));A&&this.Mx()}; g.p.l1=function(){g.q.prototype.l1.call(this)};g.G(g.Aq,g.q);g.Aq.prototype.select=function(){this.api.Dl(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.qW||void 0)&&this.api.logClick(this.element)}; g.Aq.prototype.onClick=function(A){if(g.MM(this.api.K())&&this.api.J("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var L=this.suggestion.Ej(),B={};g.Mm(this.api,B);L=g.ip(L,B);g.wC(L,this.api,A)}else g.If(A,this.api,this.W,this.suggestion.sessionData||void 0)&&this.select()}; g.Aq.prototype.onKeyPress=function(A){switch(A.keyCode){case 13:case 32:A.defaultPrevented||(this.select(),A.preventDefault())}}; g.Aq.prototype.onVideoDataChange=function(){var A=this.api.getVideoData(),L=this.api.K();this.W=A.OE?!1:L.U};g.G(rke,g.q);g.p=rke.prototype;g.p.l1=function(){this.hide();g.$_(this.X);g.gH(this.stills);this.stills.length=0;this.V&&(this.V.remove(),this.V=void 0);this.N&&(this.N.remove(),this.N=void 0);this.W&&(this.W.remove(),this.W=void 0);g.q.prototype.l1.call(this)}; g.p.setCommentsButton=function(A){A!==this.N&&(this.N&&this.N.remove(),this.N=A)&&(g.R1(this.N,"ytp-fullscreen-grid-action-button"),this.G.appendChild(this.N))}; g.p.setDescriptionButton=function(A){A!==this.W&&(this.W&&this.W.remove(),this.W=A)&&(g.R1(this.W,"ytp-fullscreen-grid-action-button"),iA(this.G,this.W,0))}; g.p.US=function(A){this.Vj&&this.Vj(A)}; g.p.onVideoDataChange=function(){if(!this.qp){this.videoData=this.player.getVideoData(1);var A,L,B,f,K;var V=(((A=this.videoData)==null?0:(L=A.suggestions)==null?0:L.length)?(B=this.videoData)==null?void 0:B.suggestions:((f=this.videoData)==null?0:g.DQ(f))?[(K=this.videoData)==null?void 0:g.DQ(K)]:[]).slice(0,18);if((A=this.Wn)&&this.U)if(g.Ql(A),V.length)for(this.stills.length>V.length&&g.gH(this.stills.splice(V.length)),this.stills.length=V.length,L=0;L=0;A--)this.features[A].dispose();this.features.length=0;g.Y.prototype.l1.call(this)};mQv.prototype.reset=function(){this.N=this.W=NaN};g.p=QmQ.prototype;g.p.reset=function(){kx(this.timerName)}; g.p.tick=function(A,L){mF(A,L,this.timerName)}; g.p.Nq=function(A){return $x(A,void 0,this.timerName)}; g.p.WZ=function(A){g.i1(A,void 0,this.timerName)}; g.p.infoGel=function(A){g.Qm(A,this.timerName)};g.G($QL,g.SN);g.p=$QL.prototype;g.p.hasNext=function(A){return this.loop||!!A||this.index+1=0}; g.p.setShuffle=function(A){this.shuffle=A;A=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var L=0;L=L.top&&A.right<=L.right&&A.bottom<=L.bottom&&A.left>=L.left))return}TB(this,2,!1)}; g.p.ob=function(A){var L=new g.Vl(A.pageX,A.pageY);J8(L,this.U)||(this.U=L,(A=A.target)&&this.Dn(A)&&(TB(this,4,!0),this.N.J$(this.V),this.V=this.N.Y(this.target,"mouseover",this.gA),this.X=this.N.Y(this.target,"mouseout",this.gA)))}; g.p.gA=function(A){A=A.relatedTarget;A&&this.Dn(A)||(this.U=new g.Vl(NaN,NaN),gSD(this))}; g.p.Or1=function(){TB(this,1,!0)}; g.p.LG=function(A){A=A.target;A instanceof Element&&!(A.tabIndex>0)||TB(this,1,!0)}; g.p.eW=function(){this.T=!0;this.N.J$(this.D);this.D=this.N.Y(document,"mouseup",this.K0)}; g.p.K0=function(){this.T=!1;TB(this,8,!1);this.N.J$(this.D);this.D=this.N.Y(this.target,"mousedown",this.eW)}; g.p.Qv=function(A){if(A=(A=A.changedTouches)&&A[0])this.ZM=A.identifier,this.N.J$(this.G),this.G=this.N.Y(this.target,"touchend",this.Gh,void 0,!0),TB(this,1024,!0)}; g.p.Gh=function(A){if(A=A.changedTouches)for(var L=0;L1280||K>720)if(L=f.g1("maxresdefault.jpg"))break;if(V>640||K>480)if(L=f.g1("maxresdefault.jpg"))break;if(V>320||K>180)if(L=f.g1("sddefault.jpg")||f.g1("hqdefault.jpg")||f.g1("mqdefault.jpg"))break;if(L=f.g1("default.jpg"))break}g.Ng(A)&&(A=new Image,A.addEventListener("load", function(){Wz8()}),A.src=L?L:"",this.api.zH().tick("ftr")); this.U.style.backgroundImage=L?"url("+L+")":""};g.G(g.ig,g.q);g.ig.prototype.resize=function(){}; g.ig.prototype.W=function(A){var L=this;this.V=!1;s_7(this);var B=A.N_,f=this.api.K();B!=="GENERIC_WITHOUT_LINK"||f.T?B==="TOO_MANY_REQUESTS"?(f=this.api.getVideoData(),this.setContent(Ov(this,"TOO_MANY_REQUESTS_WITH_LINK",f.Ej(),void 0,void 0,void 0,!1))):B!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||f.T?this.api.K().J("html5_enable_bandaid_error_screen")&&B==="HTML5_SPS_UMP_STATUS_REJECTED"&&!f.T?(f=f.hostLanguage,A="//support.google.com/youtube?p=videoError",f&&(A=g.ip(A,{hl:f})),this.setContent(Ov(this, "HTML5_SPS_UMP_STATUS_REJECTED",A))):this.api.K().J("enable_adb_handling_in_sabr")&&B==="BROWSER_OR_EXTENSION_ERROR"&&!f.T?(f=f.hostLanguage,A="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",f&&(A=g.ip(A,{hl:f})),this.setContent(Ov(this,"BROWSER_OR_EXTENSION_ERROR",A))):this.setContent(g.$S(A.errorMessage)):this.setContent(Ov(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(A=f.hostLanguage,B= "//support.google.com/youtube/?p=player_error1",A&&(B=g.ip(B,{hl:A})),this.setContent(Ov(this,"GENERIC_WITH_LINK_AND_CPN",B,!0)),f.zV&&!f.U&&rq6(this,function(V){if(g.If(V,L.api,!Ko(L.api.K()))){V={as3:!1,html5:!0,player:!0,cpn:L.api.getVideoData().clientPlaybackNonce};var J=L.api;J.Wo("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:V});J.isFullscreen()&&J.toggleFullscreen()}})); if(this.V){var K=this.m4("ytp-error-link");K&&(this.api.createClientVe(K,this,216104),this.api.logVisibility(K,!0),rq6(this,function(){L.api.logClick(K)}))}}; var GB8=/([^<>]+)<\/a>/;g.G(Hj1,g.q);Hj1.prototype.Tt=function(A,L,B){B=B===void 0?!1:B;switch(L){case 1:Ev(this,A,this.V,B);break;case 2:Ev(this,A,this.U,B);break;case 3:Ev(this,A,this.N,B);break;case 4:Ev(this,A,this.W,B)}};g.G(hdS,g.q);g.p=hdS.prototype;g.p.onClick=function(A){this.innertubeCommand?(this.S.Kr("innertubeCommand",this.innertubeCommand),A.preventDefault()):g.If(A,this.S,!0);this.S.logClick(this.element)}; g.p.onVideoDataChange=function(A,L){tfC(this,L);this.xb&&kBk(this,this.xb)}; g.p.oW=function(A){var L=this.S.getVideoData();this.videoId!==L.videoId&&tfC(this,L);this.N&&kBk(this,A.state);this.xb=A.state}; g.p.fD=function(){this.fade.show();this.S.publish("paidcontentoverlayvisibilitychange",!0);this.S.logVisibility(this.element,!0)}; g.p.YP=function(){this.fade.hide();this.S.publish("paidcontentoverlayvisibilitychange",!1);this.S.logVisibility(this.element,!1)};g.G(cB,g.q);cB.prototype.hide=function(){this.N.stop();this.message.style.display="none";g.q.prototype.hide.call(this)}; cB.prototype.onStateChange=function(A){this.Y6(A.state)}; cB.prototype.Y6=function(A){if(g.x(A,128)||this.api.lz())var L=!1;else{var B;L=this.api.J("web_watch_enable_multiview_manager")&&((B=this.api.getVideoData())==null?0:oh(B))?!1:g.x(A,16)||g.x(A,1)?!0:!1}L?this.N.start():this.hide()}; cB.prototype.W=function(){this.message.style.display="block"};g.G(Mp,g.zg);Mp.prototype.onMutedAutoplayChange=function(A){this.W&&(A?(TuS(this),this.fD()):(this.N&&this.logClick(),this.YP()))}; Mp.prototype.qP=function(A){this.api.isMutedByMutedAutoplay()&&g.wk(A,2)&&this.YP()}; Mp.prototype.onClick=function(){this.api.unMute();this.logClick()}; Mp.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.G(g.YS,g.dN);g.p=g.YS.prototype;g.p.init=function(){var A=this.api,L=A.getPlayerStateObject();this.IZ=A.getPlayerSize();this.q8(L);this.Fp();this.Bz();this.api.publish("basechromeinitialized",this);this.d8()&&this.api.publish("standardControlsInitialized")}; g.p.onVideoDataChange=function(A,L){var B=this.PT!==L.videoId;if(B||A==="newdata")A=this.api,A.isFullscreen()||(this.IZ=A.getPlayerSize());B&&(this.PT=L.videoId,B=this.C8,B.wT=3E3,TB(B,512,!0),this.Fp());this.api.J("web_render_jump_buttons")&&L.showSeekingControls&&(this.xt=572)}; g.p.kqF=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.p.YW=function(){var A=this.api.yq()&&this.api.Bu(),L=this.api.wG();return this.nW||A||this.Xj||L}; g.p.LC=function(){var A=!this.YW();g.D1(this.api.getRootNode(),"ytp-menu-shown",!A)}; g.p.Dn=function(A){try{if(!g.XF(this.api.getRootNode(),A))return!1}catch(L){return!1}for(;A&&!EA(A);)A=A===this.api.getRootNode()?null:A.parentElement||null;return!!A}; g.p.Al=function(A){var L=this.api.getRootNode();g.D1(L,"ytp-autohide",A);g.D1(L,"ytp-autohide-active",!0);this.Dv.start(A?250:100);A&&(this.Hx=!1,g.NH(L,"ytp-touch-mode"));this.zC=!A;this.api.Yc(!A);this.api.J("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",A)}; g.p.Pe=function(){var A=this.api.getRootNode();g.D1(A,"ytp-autohide-active",!1)}; g.p.Z8M=function(){this.vP=!0}; g.p.wkr=function(A){if(this.api.K().J("player_doubletap_to_seek")||this.api.K().X)this.vP=!1,this.aP&&this.J$(this.aP),this.Y0===0&&Uv(this,A)?(this.Yp(),this.Ot.start(),this.aP=this.Y(this.api.Pn(),"touchmove",this.Z8M,void 0,!0)):this.Ot.stop();Cgw(this)&&Uv(this,A)&&!this.api.K().X&&mpe(this);var L=this.cP.U7();if(!g.MM(this.api.K())&&X5&&ij0(this,A))L&&A.preventDefault();else if(this.Hx=!0,g.R1(this.api.getRootNode(),"ytp-touch-mode"),this.C8.V9(),this.api.K().J("player_doubletap_to_seek")||this.api.K().X)if(L= this.api.getPlayerStateObject(),!(!this.api.Kw()||g.x(L,2)&&g.Xr(this.api)||g.x(L,64))){L=Date.now()-this.EW;this.Y0+=1;if(L<=350){this.n$=!0;L=this.api.getPlayerSize().width/3;var B=this.api.getRootNode().getBoundingClientRect(),f=A.targetTouches[0].clientX-B.left;B=A.targetTouches[0].clientY-B.top;var K=(this.Y0-1)*10;f>0&&fL*2&&f=650,f=A.width<528;this.C8.resize();if(this.api.J("web_player_use_screen_width_for_big_mode")){var K,V=A.width>=((K=g.Am(this.api.K().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?K:2E3);g.D1(L,"ytp-big-mode",V)}g.D1(L,"ytp-fullscreen",this.api.isFullscreen());g.D1(L,"ytp-large-width-mode",B);this.api.J("delhi_modern_web_player")?g.D1(L,"ytp-xsmall-width-mode",f):g.D1(L,"ytp-small-mode",this.Gy()); g.D1(L,"ytp-tiny-mode",this.Zz());g.D1(L,"ytp-big-mode",this.Zr());this.Xb&&this.Xb.resize(A)}; g.p.qP=function(A){this.q8(A.state);this.Fp()}; g.p.RN=OD(5);g.p.hB=function(){var A=!!this.PT&&!this.api.bQ()&&!this.G7,L=this.api.getPresentingPlayerType()===2,B=this.api.K();if(L)return B=HB(this.api.SI()),A&&(B&&B.player?A=(A=B.player.getVideoData(2))?A.isListed&&!g.dY(B.player.K()):!1:(Dh("showInfoBarDuringAd: this is null"),A=!1)),A;L=B.J("web_player_imax_theater_mode")&&this.api.EN()&&!this.api.isInline();return A&&(B.jr||L||this.api.isFullscreen()||B.kR)}; g.p.Fp=function(){var A=this.hB();this.Wu!==A&&(this.Wu=A,g.D1(this.api.getRootNode(),"ytp-hide-info-bar",!A))}; g.p.q8=function(A){var L=A.isCued()||this.api.BF()&&this.api.getPresentingPlayerType()!==3;L!==this.isCued&&(this.isCued=L,this.KM&&this.J$(this.KM),this.KM=this.Y(this.api.Pn(),"touchstart",this.wkr,void 0,L));var B=this.C8,f=A.isPlaying()&&!g.x(A,32)||this.api.QD();TB(B,128,!f);B=this.C8;f=this.api.getPresentingPlayerType()===3;TB(B,256,f);B=this.api.getRootNode();g.x(A,2)?f=[W0.ENDED]:(f=[],g.x(A,8)?f.push(W0.PLAYING):g.x(A,4)&&f.push(W0.PAUSED),g.x(A,1)&&!g.x(A,32)&&f.push(W0.BUFFERING),g.x(A, 32)&&f.push(W0.SEEKING),g.x(A,64)&&f.push(W0.UNSTARTED));g.wo(this.Ea,f)||(g.Fq(B,this.Ea),this.Ea=f,g.Z1(B,f));f=this.api.K();var K=g.x(A,2);a:{var V=this.api.K();var J=V.controlsType;switch(J){case "2":case "0":V=!1;break a}V=J==="3"&&!g.x(A,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:IM7(HB(this.api.SI())))||this.api.wG()||g.MM(V)&&this.api.getPresentingPlayerType()===2?!1:!0}g.D1(B,"ytp-hide-controls",!V);g.D1(B,"ytp-native-controls",f.controlsType==="3"&&!L&&!K&&!this.Xj);g.x(A, 128)&&!g.MM(f)?(this.Xb||(this.Xb=new g.ig(this.api),g.W(this,this.Xb),g.Wh(this.api,this.Xb.element,4)),this.Xb.W(A.nh),this.Xb.show()):this.Xb&&(this.Xb.dispose(),this.Xb=null)}; g.p.p5=function(){return this.api.yq()&&this.api.Bu()?(this.api.DD(!1,!1),!0):this.api.bQ()?(g.OU(this.api,!0),!0):!1}; g.p.onMutedAutoplayChange=function(A){this.Xj=A;this.LC()}; g.p.Zr=function(){return!1}; g.p.Gy=function(){return!this.Zr()&&(this.api.getPlayerSize().width=0&&L.left>=0&&L.bottom>L.top&&L.right>L.left?L:null;L=this.size;A=A.clone();L=L.clone();f&&(J=L,K=5,(K&65)==65&&(A.x=f.right)&&(K&=-2),(K&132)==132&&(A.y=f.bottom)&&(K&=-5),A.xf.right&&(J.width=Math.min(f.right-A.x,V+J.width-f.left),J.width=Math.max(J.width,0))),A.x+J.width>f.right&&K&1&&(A.x=Math.max(f.right-J.width,f.left)),A.yf.bottom&&(J.height=Math.min(f.bottom-A.y,V+J.height-f.top),J.height=Math.max(J.height,0))),A.y+J.height>f.bottom&&K&4&&(A.y=Math.max(f.bottom-J.height,f.top)));f=new g.oR(0,0,0,0);f.left=A.x;f.top=A.y;f.width= L.width;f.height=L.height;g.F6(this.element,new g.Vl(f.left,f.top));g.$_(this.W);this.W.Y(uz(this),"contextmenu",this.Tfr);this.W.Y(this.S,"fullscreentoggled",this.onFullscreenToggled);this.W.Y(this.S,"pageTransition",this.L0)}; g.p.Tfr=function(A){if(!A.defaultPrevented){var L=lt(A);g.XF(this.element,L)||this.YP();this.S.K().disableNativeContextMenu&&A.preventDefault()}}; g.p.onFullscreenToggled=function(){this.YP();JPQ(this)}; g.p.L0=function(){this.YP()};g.G(ug,g.q);ug.prototype.onClick=function(){var A=this,L,B,f,K;return g.c(function(V){if(V.N==1)return L=A.api.K(),B=A.api.getVideoData(),f=A.api.getPlaylistId(),K=L.getVideoUrl(B.videoId,f,void 0,!0),g.X(V,ZQw(A,K),2);V.W&&RCE(A);A.api.logClick(A.element);g.VK(V)})}; ug.prototype.zL=function(){this.updateValue("icon",{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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.updateValue("tooltip-title","Copiar v\u00ednculo");this.visible= Sfe(this);g.D1(this.element,"ytp-copylink-button-visible",this.visible);this.xP(this.visible);this.tooltip.qq();this.api.logVisibility(this.element,this.visible&&this.yj)}; ug.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.api.logVisibility(this.element,this.visible&&A)}; ug.prototype.l1=function(){g.q.prototype.l1.call(this);g.NH(this.element,"ytp-copylink-button-visible")};g.G(NxL,g.q);g.p=NxL.prototype;g.p.show=function(){g.q.prototype.show.call(this);g.Az(this.W)}; g.p.hide=function(){this.U.stop();this.V=0;this.m4("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.NH(this.element,"ytp-chapter-seek");g.NH(this.element,"ytp-time-seeking");g.q.prototype.hide.call(this)}; g.p.IN=function(A,L,B,f){this.V=A===this.T?this.V+f:f;this.T=A;var K=A===-1?this.G:this.X;K&&this.S.logClick(K);this.D?this.W.stop():g.o1(this.W);this.U.start();this.element.setAttribute("data-side",A===-1?"back":"forward");var V=3*this.S.Pn().getPlayerSize().height;K=this.S.Pn().getPlayerSize();K=K.width/3-3*K.height;this.N.style.width=V+"px";this.N.style.height=V+"px";A===1?(this.N.style.left="",this.N.style.right=K+"px"):A===-1&&(this.N.style.right="",this.N.style.left=K+"px");var J=V*2.5;V=J/ 2;var R=this.m4("ytp-doubletap-ripple");R.style.width=J+"px";R.style.height=J+"px";A===1?(A=this.S.Pn().getPlayerSize().width-L+Math.abs(K),R.style.left="",R.style.right=A-V+"px"):A===-1&&(A=Math.abs(K)+L,R.style.right="",R.style.left=A-V+"px");R.style.top="calc((33% + "+Math.round(B)+"px) - "+V+"px)";if(B=this.m4("ytp-doubletap-ripple"))B.classList.remove("ytp-doubletap-ripple"),B.classList.add("ytp-doubletap-ripple");F0Q(this,this.D?this.V:f)}; g.p.o$=function(A,L,B){if(B=B===void 0?null:B){var f=A===-1?this.G.visualElement:this.X.visualElement;B={seekData:B};var K=g.sF();K&&K1(K,f,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",B)}this.V=A===this.T?this.V+L:L;this.T=A;f=this.S.Pn().getPlayerSize();this.D?this.W.stop():g.o1(this.W);this.U.start();this.element.setAttribute("data-side",A===-1?"back":"forward");g.R1(this.element,"ytp-time-seeking");this.N.style.width="110px";this.N.style.height="110px";B=f.width*.1-15;A===1?this.Wn?(this.N.style.right= B+"px",this.N.style.left=""):(this.N.style.right="",this.N.style.left=f.width*.8-30+"px"):A===-1&&(this.Wn?(this.N.style.right="",this.N.style.left=B+"px"):(this.N.style.right="",this.N.style.left=f.width*.1-15+"px"));this.N.style.top=f.height*.5+15+"px";F0Q(this,this.D?this.V:L)}; g.p.iE=function(A,L,B){B=B===void 0?null:B;g.o1(this.W);this.U.start();switch(A){case -1:A="back";break;case 1:A="forward";break;default:A=""}this.element.setAttribute("data-side",A);this.N.style.width="0";this.N.style.height="0";g.R1(this.element,"ytp-chapter-seek");this.updateValue("seekText",L);this.updateValue("seekTime","");L=this.m4("ytp-seek-icon");if(B){a:if(B){switch(B){case "PREMIUM_STANDALONE":B=Rme();break a;case "PREMIUM_STANDALONE_CAIRO":B=ZnC();break a}B=void 0}else B=null;this.updateValue("seekIcon", B);L.style.display="inline-block"}else L.style.display="none"};g.G(dYQ,DW);g.p=dYQ.prototype;g.p.dZ=function(A){this.S4||(this.S4=new gA(this.S),g.W(this,this.S4));var L,B;if((L=this.Uv)==null?0:(B=L.menu)==null?0:B.menuRenderer)this.S4.open(this.Uv.menu.menuRenderer,A.target),A.preventDefault()}; g.p.CC=function(){return!!this.N}; g.p.pH=function(){return!!this.N}; g.p.gJ=function(A){A.target===this.overflowButton.element?A.preventDefault():(this.N8&&this.S.Kr("innertubeCommand",this.N8),this.Or(!1))}; g.p.qb=function(){this.Or(!0);var A,L;if((A=this.N)==null?0:(L=A.bannerData)==null?0:L.dismissedStatusKey){if(this.cn.includes(this.N.bannerData.dismissedStatusKey))return;this.cn.push(this.N.bannerData.dismissedStatusKey)}this.Tr();this.S.J("web_enable_shopping_timely_shelf_client")&&(A={},g.cb(A,JfK,{overlayId:"player_overlay_timely_shelf"}),this.S.Kr("innertubeCommand",A))}; g.p.CB=function(){this.Tr();LQ(this)}; g.p.Max=function(A){var L=this,B;if(A.id!==((B=this.N)==null?void 0:B.identifier)){this.Tr();B=g.m(this.ZM);for(var f=B.next();!f.done;f=B.next()){var K=f.value,V=void 0,J=void 0;if((f=(V=K)==null?void 0:(J=V.bannerData)==null?void 0:J.itemData)&&K.identifier===A.id){J=V=void 0;var R=((V=K)==null?void 0:(J=V.bannerData)==null?void 0:J.dismissedStatusKey)||"";if(this.cn.includes(R))return;this.N=K;this.banner.element.setAttribute("aria-label",f.accessibilityLabel||"");f.trackingParams&&(this.W=!0, this.S.setTrackingParams(this.badge.element,f.trackingParams));this.show();this.G.show();F7(this);this.wT.xP(!f.stayInApp);bQC(this);wJL(this);AP(this);this.N8=g.y(f.onTapCommand,XP);if(K=g.y(f.menuOnTap,XP))this.Uv=g.y(K,Ft9);K=void 0;this.banner.update({thumbnail:(K=(f.thumbnailSources||[])[0])==null?void 0:K.url,title:f.productTitle,price:f.priceReplacementText?f.priceReplacementText:f.price,salesOriginalPrice:jD7(this),priceDropReferencePrice:gte(this),promotionText:yPe(this),priceA11yText:GoQ(this), affiliateDisclaimer:f.affiliateDisclaimer,vendor:rPk(this)});R=J=V=K=void 0;((K=f)==null?0:(V=K.hiddenProductOptions)==null?0:V.showDropCountdown)&&((J=f)==null?0:(R=J.hiddenProductOptions)==null?0:R.dropTimestampMs)&&(this.zV=new g.aa(function(){hCL(L)},1E3),this.wT.hide(),this.countdownTimer.show(),hCL(this)); this.S.J("web_player_enable_featured_product_banner_exclusives_on_desktop")&&Id7(this)&&(this.t$=new g.aa(function(){pJ8(L)},1E3),pJ8(this))}}this.S.getRootNode()&&g.R1(this.S.getRootNode(),"ytp-featured-product-shown")}}; g.p.Tr=function(){this.N&&(this.N=void 0,this.B9(),this.S.getRootNode()&&g.NH(this.S.getRootNode(),"ytp-featured-product-shown"))}; g.p.onVideoDataChange=function(A,L){var B=this;DYy(this,L);A==="dataloaded"&&LQ(this);var f,K,V;A=g.y((f=L.getWatchNextResponse())==null?void 0:(K=f.playerOverlays)==null?void 0:(V=K.playerOverlayRenderer)==null?void 0:V.productsInVideoOverlayRenderer,Zfd);this.overflowButton.show();this.dismissButton.hide();var J=A==null?void 0:A.featuredProductsEntityKey;this.trendingOfferEntityKey=A==null?void 0:A.trendingOfferEntityKey;this.ZM.length||(HQD(this,J),AP(this));var R;(R=this.k6)==null||R.call(this); this.k6=g.Iq.subscribe(function(){HQD(B,J);AP(B)})}; g.p.l1=function(){LQ(this);bQC(this);wJL(this);DW.prototype.l1.call(this)};g.G(Cr8,g.q);Cr8.prototype.onClick=function(){this.S.logClick(this.element,this.V);if(this.S.J("embeds_enable_info_panel_dismissal")&&this.N&&this.feedbackToken){var A=this.S.dh();if(A==null?0:S_6(this.N,A.HS))c8(A,this.N,{feedbackTokens:[this.feedbackToken]}),this.S.publish("infopaneldetaildismissed")}};g.G(iQ7,g.zg);g.p=iQ7.prototype;g.p.show=function(){g.zg.prototype.show.call(this);this.S.publish("infopaneldetailvisibilitychange",!0);this.S.logVisibility(this.element,!0);$Ye(this,!0)}; g.p.hide=function(){g.zg.prototype.hide.call(this);this.S.publish("infopaneldetailvisibilitychange",!1);this.S.logVisibility(this.element,!1);$Ye(this,!1)}; g.p.getId=function(){return this.V}; g.p.uM=function(){return this.itemData.length}; g.p.onVideoDataChange=function(A,L){if(L){var B,f,K,V;this.update({title:((B=L.O_)==null?void 0:(f=B.title)==null?void 0:f.content)||"",body:((K=L.O_)==null?void 0:(V=K.bodyText)==null?void 0:V.content)||""});var J;A=((J=L.O_)==null?void 0:J.trackingParams)||null;this.S.setTrackingParams(this.element,A);J=g.m(this.itemData);for(A=J.next();!A.done;A=J.next())A.value.dispose();this.itemData=[];var R;if((R=L.O_)==null?0:R.ctaButtons)for(L=g.m(L.O_.ctaButtons),R=L.next();!R.done;R=L.next())if(R=g.y(R.value, BIK))R=new Cr8(this.S,R,this.N),R.gX&&(this.itemData.push(R),R.DM(this.items))}}; g.p.l1=function(){this.hide();g.zg.prototype.l1.call(this)};g.G(Ete,g.q);g.p=Ete.prototype;g.p.onVideoDataChange=function(A,L){OQ0(this,L);this.xb&&Mc0(this,this.xb)}; g.p.W1=function(A){var L=this.S.getVideoData();this.videoId!==L.videoId&&OQ0(this,L);Mc0(this,A.state);this.xb=A.state}; g.p.v8=function(A){(this.V=A)?this.hide():this.N&&!this.isDismissed&&this.show()}; g.p.yL=function(){this.W||this.fD();this.showControls=!0}; g.p.NZ=function(){this.W||this.YP();this.showControls=!1}; g.p.fD=function(){if(!this.isDismissed){var A,L=(A=this.S)==null?void 0:A.getPlayerSize();A=L.width<380;var B;L=L.height<(((B=this.S)==null?0:B.isEmbedsShortsMode())?400:280);var f,K;(((f=this.S)==null?0:f.getPlayerStateObject().isCued())||((K=this.S)==null?0:g.x(K.getPlayerStateObject(),1024)))&&A&&L||!this.N||this.V||(this.fade.show(),this.S.publish("infopanelpreviewvisibilitychange",!0),this.S.logVisibility(this.element,!0))}}; g.p.YP=function(){this.N&&!this.V&&(this.fade.hide(),this.S.publish("infopanelpreviewvisibilitychange",!1),this.S.logVisibility(this.element,!1))}; g.p.XR4=function(){this.W=!1;this.showControls||this.YP()};var Rhw={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Rhw).reduce(function(A,L){A[Rhw[L]]=L;return A},{}); var ZaI={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ZaI).reduce(function(A,L){A[ZaI[L]]=L;return A},{}); var Ntw={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Ntw).reduce(function(A,L){A[Ntw[L]]=L;return A},{});var FCX,Dw5;FCX=[{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"}];Dw5=[{option:0,text:oD(0)},{option:.25,text:oD(.25)},{option:.5,text:oD(.5)},{option:.75,text:oD(.75)},{option:1,text:oD(1)}]; g.VF=[{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:FCX},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:oD(.5)},{option:-1,text:oD(.75)},{option:0,text:oD(1)},{option:1, text:oD(1.5)},{option:2,text:oD(2)},{option:3,text:oD(3)},{option:4,text:oD(4)}]},{option:"background",text:"Color de fondo",options:FCX},{option:"backgroundOpacity",text:"Opacidad de fondo",options:Dw5},{option:"windowColor",text:"Color de la ventana",options:FCX},{option:"windowOpacity",text:"Opacidad de la ventana",options:Dw5},{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:oD(.25)},{option:.5,text:oD(.5)},{option:.75,text:oD(.75)},{option:1,text:oD(1)}]}];var dwf=[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.G(Pr1,g.dN);g.p=Pr1.prototype; g.p.zp=function(A){A.repeat||(this.V.r7=!1);var L=!1,B=A.keyCode,f=lt(A),K=!A.altKey&&!A.ctrlKey&&!A.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||dwf.includes(B)),V=!1,J=!1,R=this.api.K();A.defaultPrevented?(K=!1,J=!0):R.jD&&!this.api.isMutedByEmbedsMutedAutoplay()&&(K=!1);if(B===9)L=!0;else{if(f)switch(B){case 32:case 13:if(f.tagName==="BUTTON"||f.tagName==="A"||f.tagName==="INPUT")L=!0,K=!1;else if(K){var Z=f.getAttribute("role");!Z||Z!=="option"&&Z!=="button"&&Z.indexOf("menuitem")!==0|| (L=!0,f.click(),V=!0)}break;case 37:case 39:case 36:case 35:L=f.getAttribute("role")==="slider";break;case 38:case 40:Z=f.getAttribute("role"),f=B===38?f.previousSibling:f.nextSibling,Z==="slider"?L=!0:K&&(Z==="option"?(f&&f.getAttribute("role")==="option"&&f.focus(),V=L=!0):Z&&Z.indexOf("menuitem")===0&&(f&&f.hasAttribute("role")&&f.getAttribute("role").indexOf("menuitem")===0&&f.focus(),V=L=!0))}if(K&&!V)switch(B){case 38:V=Math.min(this.api.getVolume()+5,100);qp(this.XO,V,!1);this.api.setVolume(V); J=V=!0;break;case 40:V=Math.max(this.api.getVolume()-5,0);qp(this.XO,V,!0);this.api.setVolume(V);J=V=!0;break;case 36:this.api.Kw()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),J=V=!0);break;case 35:this.api.Kw()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),J=V=!0)}}L&&fQ(this,!0);(L||J)&&this.C8.V9();(V||K&&this.handleGlobalKeyDown(B,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code,A.repeat))&&A.preventDefault();R.G&&(A={keyCode:A.keyCode, altKey:A.altKey,ctrlKey:A.ctrlKey,metaKey:A.metaKey,shiftKey:A.shiftKey,handled:A.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.X3("onKeyPress",A))}; g.p.EG=function(A){var L=A.keyCode;!this.V.V1&&this.handleGlobalKeyUp(L,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code)&&A.preventDefault()}; g.p.handleGlobalKeyUp=function(A,L,B,f,K,V,J){this.api.publish("keyboardserviceglobalkeyup",{keyCode:A,shiftKey:L,ctrlKey:B,altKey:f,metaKey:K,key:V,code:J});L=!1;if(this.V.r7)return L;(V=g.Yn(this.api.SI()))&&(V=V.L3)&&V.bC&&(V.r5(A),L=!0);switch(A){case 9:fQ(this,!0);L=!0;break;case 32:if(this.api.J("web_speedmaster_spacebar_control")&&!this.api.K().jD){var R,Z;A=(R=this.progressBar)==null?void 0:(Z=R.W)==null?void 0:Z.isEnabled;L=this.Iu(A)}break;case 39:(this.api.J("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(K||B&&f))&&(Hj?f:B)&&this.api.Kw()&&this.api.J("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),R=(R=this.api.getVideoData())?R.k6:[],Z=UYk(R,this.api.getCurrentTime()*1E3),Z!==-1&&this.N!=null&&(this.N.iE(1,R[Z].title),this.api.seekTo(R[Z].startTime/1E3,void 0,void 0,void 0,52),L=!0))}return L}; g.p.handleGlobalKeyDown=function(A,L,B,f,K,V,J,R){R||(this.V.r7=!1);var Z=!1,N=this.api.K();if(N.jD&&!this.api.isMutedByEmbedsMutedAutoplay())return Z;var F=g.Yn(this.api.SI());if(F&&(F=F.L3)&&F.bC)switch(A){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:Z=F.g5(A)}N.T||Z||(Z=V||String.fromCharCode(A).toLowerCase(),this.W+=Z,"awesome".indexOf(this.W)===0||this.api.J("web_player_rtr_ctrls")&&"bday".indexOf(this.W)===0?(Z=!0,4===this.W.length&&this.W==="bday"&&this.api.J("web_player_rtr_ctrls")&& (M4v(this.D),this.C8.V9()),7===this.W.length&&this.W==="awesome"&&SaQ(this.api.getRootNode(),"ytp-color-party")):(this.W=Z,Z="awesome".indexOf(this.W)===0||"bday".indexOf(this.W)===0));if(!Z&&(!this.api.isMutedByEmbedsMutedAutoplay()||dwf.includes(A))){var D=this.api.getVideoData(),I,d;F=(I=this.progressBar)==null?void 0:(d=I.W)==null?void 0:d.isEnabled;I=D?D.k6:[];d=Hj?f:B;switch(A){case 80:L&&!N.Ys&&(vB(this.XO,NLw(),"Anterior"),this.api.previousVideo(),Z=!0);break;case 78:L&&!N.Ys&&(vB(this.XO, hr(),"Siguiente"),this.api.nextVideo(),Z=!0);break;case 74:this.api.Kw()&&(this.api.startSeekCsiAction(),this.N?this.api.J("enable_key_press_seek_logging")?(Z=KQ(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.N.o$(-1,10,Z)):this.N.o$(-1,10):vB(this.XO,{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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),Z=!0);break;case 76:this.api.Kw()&&(this.api.startSeekCsiAction(),this.N?this.api.J("enable_key_press_seek_logging")?(Z=KQ(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.N.o$(1,10,Z)):this.N.o$(1,10):vB(this.XO,{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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),Z=!0);break;case 37:if(this.api.Kw())if(this.api.startSeekCsiAction(),d){if(this.api.J("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(K||B&&f))d=W0S(I,this.api.getCurrentTime()*1E3),d!==-1&&this.N!=null&&(this.N.iE(-1,I[d].title),this.api.seekTo(I[d].startTime/1E3,void 0,void 0,void 0,53),Z=!0)}else this.N?this.api.J("enable_key_press_seek_logging")?(Z=KQ(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.N.o$(-1,5,Z)):this.N.o$(-1,5):vB(this.XO,{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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),Z=!0;break;case 39:this.api.Kw()&&(this.api.startSeekCsiAction(),d?this.api.J("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.J("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(K||B&&f)||(d=UYk(I,this.api.getCurrentTime()*1E3),d!==-1&&this.N!=null&&(this.N.iE(1,I[d].title),this.api.seekTo(I[d].startTime/1E3,void 0,void 0,void 0,52),Z=!0)):(this.N!=null?this.api.J("enable_key_press_seek_logging")?(Z=KQ(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.N.o$(1,5,Z)):this.N.o$(1,5):vB(this.XO,{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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),Z=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),qp(this.XO,this.api.getVolume(),!1)):(this.api.mute(),qp(this.XO,0,!0));Z=!0;break;case 32:Z=this.api.J("web_speedmaster_spacebar_control")?!this.api.K().Ys:this.Iu(F);break;case 75:Z=this.Iu(F);break;case 190:L?N.enableSpeedOptions&&eCE(this)&&(Z=this.api.getPlaybackRate(),this.api.setPlaybackRate(Z+.25,!0),XBD(this.XO,!1),Z=!0):this.api.Kw()&&(this.step(1),Z=!0);break;case 188:L? N.enableSpeedOptions&&eCE(this)&&(Z=this.api.getPlaybackRate(),this.api.setPlaybackRate(Z-.25,!0),XBD(this.XO,!0),Z=!0):this.api.Kw()&&(this.step(-1),Z=!0);break;case 70:hUC(this.api)&&(this.api.toggleFullscreen().catch(function(){}),Z=!0); break;case 27:F?(this.progressBar.Wa(),Z=!0):this.X()&&(Z=!0)}if(N.controlsType!=="3")switch(A){case 67:g.y2(this.api.SI())&&(N=this.api.getOption("captions","track"),this.api.toggleSubtitles(),Oj1(this.XO,!N||N&&!N.displayName),Z=!0);break;case 79:JP(this,"textOpacity");break;case 87:JP(this,"windowOpacity");break;case 187:case 61:JP(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:JP(this,"fontSizeIncrement",!0,!0)}var w;L||B||f||(A>=48&&A<=57?w=A-48:A>=96&&A<=105&&(w=A-96));w!=null&&this.api.Kw()&& !this.api.J("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),N=this.api.getProgressState(),this.api.seekTo(w/10*(N.seekableEnd-N.seekableStart)+N.seekableStart,void 0,void 0,void 0,81),Z=!0);Z&&this.C8.V9()}this.V.u$=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:A,shiftKey:L,ctrlKey:B,altKey:f,metaKey:K,key:V,code:J,repeat:R},this.V);this.V.u$&&(Z=!0,this.C8.V9());return Z}; g.p.step=function(A){this.api.Kw();if(this.api.getPlayerStateObject().isPaused()){var L=this.api.getVideoData().W;L&&(L=L.video)&&this.api.seekBy(A/(L.fps||30),void 0,void 0,A>0?77:78)}}; g.p.Iu=function(A){if(!this.api.K().Ys){var L;var B,f=(L=this.api.getVideoData())==null?void 0:(B=L.getPlayerResponse())==null?void 0:B.playabilityStatus;if(f){var K;L=((K=g.y(f.miniplayer,jOf))==null?void 0:K.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else L=!1;L&&this.api.Kr("onExpandMiniplayer");A?this.progressBar.lI():(A=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.XO.N0(A),A?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.p.l1=function(){g.o1(this.U);g.dN.prototype.l1.call(this)};g.G(Sc,g.q);Sc.prototype.zL=function(){var A=this.S.K(),L=A.V||this.S.J("web_player_hide_overflow_button_if_empty_menu")&&this.FL.isEmpty();A=g.MM(A)&&g.ch(this.S)&&g.x(this.S.getPlayerStateObject(),128);var B=this.S.getPlayerSize();this.visible=this.S.Gy()&&!A&&B.width>=240&&!this.S.getVideoData().OE&&!L&&!this.S.isEmbedsShortsMode();g.D1(this.element,"ytp-overflow-button-visible",this.visible);this.xP(this.visible);this.visible&&this.S.qq();this.S.logVisibility(this.element,this.visible&&this.yj)}; Sc.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.S.logVisibility(this.element,this.visible&&A)}; Sc.prototype.l1=function(){g.q.prototype.l1.call(this);g.NH(this.element,"ytp-overflow-button-visible")};g.G(nt7,g.zg);g.p=nt7.prototype;g.p.H1=function(A){A=lt(A);g.XF(this.element,A)&&(g.XF(this.N,A)||g.XF(this.closeButton,A)||ah(this))}; g.p.YP=function(){g.zg.prototype.YP.call(this);this.S.Ed(this.element)}; g.p.show=function(){this.bC&&this.S.publish("OVERFLOW_PANEL_OPENED");g.zg.prototype.show.call(this);this.element.setAttribute("aria-modal","true");uSw(this,!0)}; g.p.hide=function(){g.zg.prototype.hide.call(this);this.element.removeAttribute("aria-modal");uSw(this,!1)}; g.p.onFullscreenToggled=function(A){!A&&this.U7()&&ah(this)}; g.p.isEmpty=function(){return this.actionButtons.length===0}; g.p.focus=function(){for(var A=g.m(this.actionButtons),L=A.next();!L.done;L=A.next())if(L=L.value,L.bC){L.focus();break}};g.G(adS,g.q);adS.prototype.onClick=function(A){g.If(A,this.api)&&this.api.playVideoAt(this.index)};g.G(ASL,g.zg);g.p=ASL.prototype;g.p.show=function(){g.zg.prototype.show.call(this);this.N.Y(this.api,"videodatachange",this.Sy);this.N.Y(this.api,"onPlaylistUpdate",this.Sy);this.Sy()}; g.p.hide=function(){g.zg.prototype.hide.call(this);g.$_(this.N);this.updatePlaylist(null)}; g.p.Sy=function(){this.updatePlaylist(this.api.getPlaylist());this.api.K().V&&(this.m4("ytp-playlist-menu-title-name").removeAttribute("href"),this.W&&(this.J$(this.W),this.W=null))}; g.p.Up=function(){var A=this.playlist,L=A.author,B=L?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",f={CURRENT_POSITION:String(A.index+1),PLAYLIST_LENGTH:String(A.length)};L&&(f.AUTHOR=L);this.update({title:A.title,subtitle:g.B$(B,f),playlisturl:this.api.getVideoUrl(!0)});L=A.W;if(L===this.V)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[A.index];else{B=g.m(this.playlistData);for(f=B.next();!f.done;f=B.next())f.value.dispose(); B=A.length;this.playlistData=[];for(f=0;f=this.W&&!A.V&&!L.isAd()&&!this.api.isEmbedsShortsMode()}else A=!1;this.visible=A;this.xP(this.visible);g.D1(this.element,"ytp-search-button-visible",this.visible);g.D1(this.element,"ytp-show-search-title",!this.api.Gy());this.api.logVisibility(this.element,this.visible&&this.yj)}; FS.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.api.logVisibility(this.element,this.visible&&A)};g.G(Dd,g.q); Dd.prototype.trigger=function(A,L,B,f){this.show();if(this.W&&A!==this.W){var K=1;this.V&&(K=Fje(this));JSy(this,K,!1);N0v(this)}this.W=A;this.U=this.W===-1?this.X:this.G;A="";L?(this.W===-1&&this.S.getCurrentTime()<=L?this.D=L:this.D+=L,A=(this.W===-1?"\u2212":"+")+" "+this.D):this.D=0;this.updateValue(this.W===-1?"durationBack":"durationForward",A);if(this.N==="hidden"||this.N==="fading-out")L=0,this.N==="fading-out"&&(L=Fje(this),Zbk(this)),SYD(this,L),this.N!=="fading-out"&&RWy(this,this.U.querySelector(".ytp-seek-overlay-arrow-persistent")), this.N="fading-in";else if(this.N==="fading-in"||this.N==="lingering")L=this.U.querySelector(".ytp-seek-overlay-duration"),A=g.Am(this.S.K().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,L.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+A+")"},{offset:1,transform:"scale(1)"}],{duration:184}),Zbk(this),this.N==="lingering"&&(this.T.stop(),this.T.start());B&&Ddv(this, B,f)}; Dd.prototype.IN=function(A,L,B,f){this.trigger(A,f)}; Dd.prototype.o$=function(A,L,B){this.trigger(A,L);B&&(A=A===-1?this.G.visualElement:this.X.visualElement,B={seekData:B},(L=g.sF())&&K1(L,A,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",B))}; Dd.prototype.iE=function(A,L,B){this.trigger(A,void 0,L,B)};g.G(dx,g.q);dx.prototype.onClick=function(){var A=this,L=this.api.K(),B=this.api.getVideoData(this.api.getPresentingPlayerType()),f=this.api.getPlaylistId();L=this.api.J("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):L.getVideoUrl(B.videoId,f,void 0,!0);if(navigator.share)try{var K=navigator.share({title:B.title,url:L});K instanceof Promise&&K.catch(function(V){ICk(A,V)})}catch(V){V instanceof Error&&ICk(this,V)}else this.N.p5(),ah(this.W,this.element,!1); this.api.logClick(this.element)}; dx.prototype.zL=function(){var A=this.api.K(),L=this.api.isEmbedsShortsMode();g.D1(this.element,"ytp-show-share-title",g.MM(A)&&!L);this.N.Zr()&&L?(A=(this.api.Pn().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Kv(this.element,"right",A+"px")):L&&g.Kv(this.element,"right","0px");this.updateValue("icon",{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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=ddv(this);g.D1(this.element,"ytp-share-button-visible",this.visible);this.xP(this.visible);this.tooltip.qq();this.api.logVisibility(this.element,ddv(this)&&this.yj)}; dx.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.api.logVisibility(this.element,this.visible&&A)}; dx.prototype.l1=function(){g.q.prototype.l1.call(this);g.NH(this.element,"ytp-share-button-visible")};g.G(pdD,g.zg);g.p=pdD.prototype;g.p.cj=function(A){A=lt(A);g.XF(this.U,A)||g.XF(this.closeButton,A)||ah(this)}; g.p.YP=function(){g.zg.prototype.YP.call(this);this.tooltip.Ed(this.element);this.api.logVisibility(this.N,!1);for(var A=g.m(this.W),L=A.next();!L.done;L=A.next())L=L.value,this.api.hasVe(L.element)&&this.api.logVisibility(L.element,!1)}; g.p.show=function(){var A=this.bC;g.zg.prototype.show.call(this);this.zL();A||this.api.Kr("onSharePanelOpened")}; g.p.wzT=function(){this.bC&&this.zL()}; g.p.zL=function(){var A=this;g.R1(this.element,"ytp-share-panel-loading");g.NH(this.element,"ytp-share-panel-fail");var L=this.api.getVideoData(),B=this.api.getPlaylistId()&&this.V.checked;L.getSharePanelCommand&&c8(this.api.dh(),L.getSharePanelCommand,{includeListId:B}).then(function(f){A.TL()||(g.NH(A.element,"ytp-share-panel-loading"),gok(A,f))}); L=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",L);this.updateValue("linkText",L);this.updateValue("shareLinkWithUrl",g.B$("Compartir v\u00ednculo $URL",{URL:L}));j3(this.N);this.api.logVisibility(this.N,!0)}; g.p.onFullscreenToggled=function(A){!A&&this.U7()&&ah(this)}; g.p.focus=function(){this.N.focus()}; g.p.l1=function(){g.zg.prototype.l1.call(this);ySk(this)};g.G(s7y,DW);g.p=s7y.prototype;g.p.l1=function(){kGk(this);DW.prototype.l1.call(this)}; g.p.gJ=function(A){A.target!==this.dismissButton.element&&(this.Or(!1),this.S.Kr("innertubeCommand",this.onClickCommand))}; g.p.qb=function(){this.sx=!0;this.Or(!0);this.B9()}; g.p.uOs=function(A){this.T=A;this.B9()}; g.p.onVideoDataChange=function(A,L){if(A=!!L.videoId&&this.videoId!==L.videoId)this.videoId=L.videoId,this.sx=!1,this.Vj=!0,this.X=this.qp=!1,kGk(this),tQ1(this,!1),this.V=this.N=!1,wx(this),Hbv(this);if(A||!L.videoId)this.Wn=this.W=!1;var B,f;if(L==null?0:(B=L.getPlayerResponse())==null?0:(f=B.videoDetails)==null?0:f.isLiveContent)this.wI(!1);else{var K,V,J;L=g.y((K=L.getWatchNextResponse())==null?void 0:(V=K.playerOverlays)==null?void 0:(J=V.playerOverlayRenderer)==null?void 0:J.productsInVideoOverlayRenderer, Zfd);this.T=this.enabled=!1;if(L){if(K=L==null?void 0:L.featuredProductsEntityKey){V=g.Iq.getState().entities;var R;if((R=nz(V,"featuredProductsEntity",K))==null?0:R.productsData){this.wI(!1);return}}if(!L.text||!L.onClickCommand||!L.timing){this.wI(!1);return}this.enabled=!0;if(!this.W){var Z;R=(Z=L.badgeInteractionLogging)==null?void 0:Z.trackingParams;(this.W=!!R)&&this.S.setTrackingParams(this.badge.element,R||null)}if(!this.Wn){var N;if(this.Wn=!((N=L.dismissButton)==null||!N.trackingParams)){var F; this.S.setTrackingParams(this.dismissButton.element,((F=L.dismissButton)==null?void 0:F.trackingParams)||null)}}L.isContentForward&&(Z=L.productsData,tQ1(this,!0),Hbv(this),Z=bb6(this,Z),N=[],Z.length>0&&N.push(Z[0]),Z.length>1&&(F=new g.q({Z:"div",j:"ytp-suggested-action-more-products-icon"}),g.W(this,F),N.push(F),N.push.apply(N,g.x7(Z.slice(1)))),this.D=new g.q({Z:"div",B:N,j:"ytp-suggested-action-content-forward-container"}),g.W(this,this.D),this.JF.element.append(this.D.element));this.text=g.wq(L.text); var D;if(Z=(D=L.dismissButton)==null?void 0:D.a11yLabel)this.Cr=g.wq(Z);this.onClickCommand=L.onClickCommand;this.timing=L.timing;this.dX()}LI0(this);F7(this);this.B9()}}; g.p.CC=function(){return!this.T&&this.enabled&&!this.sx&&!this.S.Gy()&&!this.jI&&(this.X||this.Vj)}; g.p.H5=function(A){DW.prototype.H5.call(this,A);if(this.N||this.V)this.timing&&ID(this.timing.preview)&&(this.N=!1,wx(this),this.V=!1,wx(this),this.S.Jf("shopping_overlay_preview_collapsed"),this.S.Jf("shopping_overlay_preview_expanded"),A=pQ(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),ID(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.S.Jf("shopping_overlay_expanded"),A.end=this.timing.expanded.endSec*1E3),this.S.dX([A])), this.qp=!0,F7(this);wx(this)}; g.p.wI=function(A){(this.X=A)?(NQ(this),F7(this,!1)):(kGk(this),this.Ys.start());this.B9()}; g.p.dX=function(A){var L=this.timing;A=(A===void 0?0:A)+this.S.getCurrentTime();var B=[],f=L.visible,K=L.preview;L=L.expanded;ID(f)&&(GGL(f,A),B.push(pQ(f.startSec,f.endSec,"shopping_overlay_visible")));ID(K)&&(GGL(K,A),f=K.startSec+1,B.push(pQ(K.startSec,f,"shopping_overlay_preview_collapsed")),B.push(pQ(f,K.endSec,"shopping_overlay_preview_expanded")));ID(L)&&(GGL(L,A),B.push(pQ(L.startSec,L.endSec,"shopping_overlay_expanded")));this.S.dX(B)}; g.p.B9=function(){DW.prototype.B9.call(this);this.S.getRootNode()&&g.D1(this.S.getRootNode(),"ytp-shopping-pill-shown",this.CC())};g.G(mdD,g.q); mdD.prototype.zL=function(){var A=this.api.K();this.xP(g.MM(A)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.bC);var L=this.api.getVideoData(),B=!1;this.api.getPresentingPlayerType()===2?B=!!L.videoId&&!!L.isListed&&!!L.author&&!!L.Ys&&!!L.profilePicture:g.MM(A)&&(B=!!L.videoId&&!!L.Ys&&!!L.profilePicture&&!L.OE&&!A.V&&!(A.X&&this.api.getPlayerSize().width<200));var f=L.profilePicture;A=g.MM(A)?L.expandedTitle:L.author;f=f===void 0? "":f;A=A===void 0?"":A;B?(this.W!==f&&(this.N.style.backgroundImage="url("+f+")",this.W=f),this.updateValue("channelLogoLabel",g.B$("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:A})),g.R1(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.NH(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.N,B&&this.yj);this.api.logVisibility(this.channelName,B&&this.yj);this.subscribeButton&&(this.subscribeButton.channelId=L.JO);this.updateValue("expandedTitle",L.expandedTitle)};g.G(yF,g.zg);yF.prototype.show=function(){g.zg.prototype.show.call(this);this.N.start()}; yF.prototype.hide=function(){g.zg.prototype.hide.call(this);this.N.stop()}; yF.prototype.cF=function(A,L){A==="dataloaded"&&((this.SR=L.SR,this.YA=L.YA,isNaN(this.SR)||isNaN(this.YA))?this.W&&(this.S.Jf("intro"),this.S.removeEventListener(g.qR("intro"),this.X),this.S.removeEventListener(g.PR("intro"),this.U),this.S.removeEventListener("onShowControls",this.V),this.hide(),this.W=!1):(this.S.addEventListener(g.qR("intro"),this.X),this.S.addEventListener(g.PR("intro"),this.U),this.S.addEventListener("onShowControls",this.V),A=new g.WR(this.SR,this.YA,{priority:9,namespace:"intro"}), this.S.dX([A]),this.W=!0))};g.G(jc,g.q);jc.prototype.onClick=function(){this.S.m2()}; jc.prototype.zL=function(){var A=!0;g.MM(this.S.K())&&(A=A&&this.S.Pn().getPlayerSize().width>=480);this.xP(A);A=this.updateValue;var L=this.S.J("delhi_modern_web_player_icons"),B=L?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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"}}]};L=L?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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"}}]};A.call(this,"icon",this.S.QC()?B:L)};g.G(CEQ,g.q);CEQ.prototype.l1=function(){this.N=null;g.q.prototype.l1.call(this)};g.G(gx,g.q);gx.prototype.onClick=function(){this.S.Kr("innertubeCommand",this.W)}; gx.prototype.G=function(){if(this.S.J("delhi_modern_web_player")){var A=this.S.getPlayerSize();A.width&&(this.element.style.maxWidth=A.width*.25+"px")}}; gx.prototype.qp=function(A){A!==this.T&&(this.update({chapterTitle:A,ariaLabel:A}),this.T=A);A?this.show():this.hide()}; gx.prototype.Wn=function(){this.N.disabled=this.W==null;g.D1(this.N,"ytp-chapter-container-disabled",this.N.disabled);this.iq()};g.G(Go,gx);Go.prototype.onClickCommand=function(A){g.y(A,dp)&&this.iq()}; Go.prototype.updateVideoData=function(A,L){var B,f,K;A=g.y((B=L.getWatchNextResponse())==null?void 0:(f=B.playerOverlays)==null?void 0:(K=f.playerOverlayRenderer)==null?void 0:K.decoratedPlayerBarRenderer,Mg);B=g.y(A==null?void 0:A.playerBarActionButton,g.te);if(this.S.J("web_player_updated_entrypoint")){this.X=J2(B==null?void 0:B.text);var V;f=(V=B==null?void 0:B.tooltip)!=null?V:"Ver cap\u00edtulo";this.D.setAttribute("title",f)}this.W=B==null?void 0:B.command;gx.prototype.Wn.call(this)}; Go.prototype.iq=function(){var A=this.X,L=this.U.N,B,f=((B=this.S.getLoopRange())==null?void 0:B.type)==="clips";if(L.length>1&&!f){A=this.S.getProgressState().current*1E3;B=BJ(L,A);A=L[B].title||"Cap\u00edtulos";if(B!==this.currentIndex||this.V)this.S.Kr("innertubeCommand",L[B].onActiveCommand),this.currentIndex=B;this.V=!1}else this.V=!0;gx.prototype.qp.call(this,A)};g.G(rx,g.DE);rx.prototype.W=function(){var A;(A=this.element.parentElement)==null||A.classList.contains("ytp-right-controls-left");(this.N=!this.N)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; rx.prototype.isExpanded=function(){return this.N};g.G(sf,g.q);sf.prototype.V=function(A){g.x(A.state,32)?$d7(this,this.api.rB()):this.bC&&(g.x(A.state,16)||g.x(A.state,1))||this.fade.hide()}; sf.prototype.onProgress=function(){var A=this.api.getPlayerStateObject();(g.x(A,32)||g.x(A,16))&&Xd7(this)}; sf.prototype.U=function(){this.frameIndex=NaN;Xd7(this)}; sf.prototype.hide=function(){this.N&&$d7(this,null);g.q.prototype.hide.call(this)};g.G(ObS,g.q);g.p=ObS.prototype;g.p.onClick=function(){var A=this;if(this.S.K().Nl||this.S.K().X){this.S.logClick(this.element);try{this.S.toggleFullscreen().catch(function(L){A.J7(L)})}catch(L){this.J7(L)}}else ah(this.message,this.element,!0)}; g.p.J7=function(A){String(A).includes("fullscreen error")?g.CE(A):g.mL(A);this.mz()}; g.p.mz=function(){this.disable();this.message.fD(this.element,!0)}; g.p.Vi=function(){sS()===this.S.getRootNode()?this.V.start():(this.V.stop(),this.message&&this.message.hide())}; g.p.n4=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var A=window.screen.width*.9,L=window.screen.height*.9,B=Math.max(window.outerWidth,window.innerWidth),f=Math.max(window.outerHeight,window.innerHeight);if(B>f!==A>L){var K=B;B=f;f=K}A>B&&L>f&&this.mz()}}; g.p.disable=function(){var A=this;if(!this.message){var L=(gL(["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.zg(this.S,{Z:"div",Rr:["ytp-popup","ytp-generic-popup"], C:{role:"alert",tabindex:"0"},B:[L[0],{Z:"a",C:{href:"https://support.google.com/youtube/answer/6276924",target:this.S.K().yj},Ir:L[2]},L[4]]},100,!0);this.message.hide();g.W(this,this.message);this.message.subscribe("show",function(B){A.W.f$(A.message,B)}); g.Wh(this.S,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.N)();this.N=null}}; g.p.zL=function(){var A=hUC(this.S),L=this.S.K().X&&this.S.getPlayerSize().width<250;this.xP(A&&!L);this.S.logVisibility(this.element,this.bC)}; g.p.Fc=function(A){if(A){var L=g.iz(this.S,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.S.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(B){g.CE(B)})}else L=g.iz(this.S,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); A=EoC(this,A);L=this.message?null:L;this.S.K().J("player_tooltip_data_title_killswitch")?this.update({title:L,icon:A}):this.update({"tooltip-title":L,"aria-label":L,icon:A});this.W.Ce().qq()}; g.p.l1=function(){this.message||((0,this.N)(),this.N=null);g.q.prototype.l1.call(this)}; g.p.Hy=function(A){g.q.prototype.Hy.call(this,A)};g.G(HJ,g.q);HJ.prototype.onClick=function(){this.S.logClick(this.element);this.S.seekBy(this.N,!0);var A=this.N>0?1:-1,L=Math.abs(this.N),B=this.S.YR().ou;B&&B.o$(A,L);this.W.isActive()?this.V=!0:(A=["ytp-jump-spin"],this.N<0&&A.push("backwards"),this.element.classList.add.apply(this.element.classList,g.x7(A)),g.Az(this.W))};g.G(hP,gx);hP.prototype.onClickCommand=function(A){g.y(A,SdI)&&this.iq()}; hP.prototype.updateVideoData=function(){var A,L;this.W=(A=MQD(this))==null?void 0:(L=A.onTap)==null?void 0:L.innertubeCommand;gx.prototype.Wn.call(this)}; hP.prototype.iq=function(){var A="",L=this.U.X,B,f=(B=MQD(this))==null?void 0:B.headerTitle;B=f?g.wq(f):"";var K;f=((K=this.S.getLoopRange())==null?void 0:K.type)==="clips";L.length>1&&!f&&(A=this.S.getProgressState().current*1E3,K=Yf1(L,A),A=K!=null?L[K].title:B,K!=null&&K!==this.currentIndex&&(this.S.Kr("innertubeCommand",L[K].onActiveCommand),this.currentIndex=K));gx.prototype.qp.call(this,A)};g.G(br,g.q);br.prototype.onClick=function(){this.S.Kr("onCollapseMiniplayer");this.S.logClick(this.element)}; br.prototype.zL=function(){this.visible=!this.S.isFullscreen();this.xP(this.visible);this.S.logVisibility(this.element,this.visible&&this.yj)}; br.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.S.logVisibility(this.element,this.visible&&A)};var qYv=new HC(0,0,.05,0,0,1,1,1);g.G(tP,g.q);tP.prototype.init=function(){this.update({minvalue:this.V,maxvalue:this.T,stepvalue:this.G,slidervalue:this.N,ariaValueNow:this.N,ariaMinValue:this.V,ariaMaxValue:this.T});voe(this,this.N)}; tP.prototype.D=function(){kt(this,Number(this.W.value));this.W.focus()}; tP.prototype.X=function(A){if(!A.defaultPrevented){switch(A.code){case "ArrowDown":A=-this.G;break;case "ArrowUp":A=this.G;break;default:return}kt(this,Math.min(this.T,Math.max(Number((this.N+A).toFixed(2)),this.V)))}};g.G(To,tP);To.prototype.onVolumeChange=function(A){if(this.Wn)this.Wn=!1;else{var L=A.volume;L===0||A.muted?kt(this,0):kt(this,L)}}; To.prototype.D=function(){tP.prototype.D.call(this);this.qp(this.N)}; To.prototype.Vj=function(A){var L=-A.deltaY;L=A.deltaMode===WheelEvent.DOM_DELTA_LINE||A.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.B4(this.N+L,0,100):g.B4(this.N+g.B4(L/10,-10,10),0,100);L===0?kt(this,0):kt(this,L);this.qp(L);A.preventDefault();A.stopPropagation()}; To.prototype.ZM=function(A,L){this.Wn=!0;A===0||L?this.S.mute():(this.S.isMuted()&&this.S.unMute(),this.S.setVolume(A))};g.G(PEw,g.q);g.G(m0,g.q);g.p=m0.prototype;g.p.ZG=function(){if(!this.S.ZF()){this.updateValue("dataTooltipOffsetY",-120);var A;(A=this.N)!=null&&lr(A,!0);var L;(L=this.N)!=null&&L.N.stop()}}; g.p.PU=function(){var A;(A=this.N)!=null&&A.N.start()}; g.p.DG=function(A){this.visible=A.width>=300||this.S4;this.xP(this.visible);this.S.logVisibility(this.element,this.visible&&this.yj)}; g.p.T7=function(){this.S.K().JF?this.S.isMuted()?this.S.unMute():this.S.mute():ah(this.message,this.element,!0);this.S.logClick(this.element)}; g.p.BIj=function(A){if(this.S.K().JF&&this.N)if(A.target===this.V){var L;if(!this.S.ZF()||((L=this.N)==null?0:L.isVisible))this.T7();else{var B;(B=this.N)!=null&&lr(B,!0)}}else{var f;(f=this.N)!=null&&lr(f,!0)}else this.T7()}; g.p.onVolumeChange=function(A){this.setVolume(A.volume,A.muted)}; g.p.setVolume=function(A,L){var B=this,f=L?0:A/100;A=f===0?1:A>50?1:0;if(this.G!==A){var K=this.X;isNaN(K)?uAw(this,A):vH8(this.JF,function(J){uAw(B,K+(B.G-K)*J)},250); this.G=A}f=f===0?1:0;if(this.T!==f){var V=this.Vj;isNaN(V)?aCe(this,f):vH8(this.ZM,function(J){aCe(B,V+(B.T-V)*J)},250); this.T=f}eWD(this,L)}; g.p.Hy=function(A){g.q.prototype.Hy.call(this,A);this.S.logVisibility(this.element,this.visible&&A)}; var noy=["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"],zWS=["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.G(g.QF,g.q);g.p=g.QF.prototype;g.p.onStateChange=function(A){this.Y6(A.state)}; g.p.Y6=function(A){var L=g.MG(this.S.getVideoData()),B=!1;A.isOrWillBePlaying()?A=L?4:2:g.x(A,2)?(A=3,B=L):A=1;this.element.disabled=B;if(this.N!==A){L=null;switch(A){case 2:L=g.iz(this.S,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:L="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:L=g.iz(this.S,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:L="Detener la reproducci\u00f3n",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n"})}A=== 3?this.S.K().J("player_tooltip_data_title_killswitch")?this.update({title:L,icon:AZ6(this,A)}):this.update({"tooltip-title":L,icon:AZ6(this,A)}):(this.S.J("player_tooltip_data_title_killswitch")?this.update({title:L}):this.update({"tooltip-title":L}),(L=AZ6(this,A))&&this.N&&this.N!==3?PGL(this.transition,this.element,L):this.updateValue("icon",L));this.tooltip.qq();this.N=A}}; g.p.onVideoDataChange=function(){g.D1(this.element,"ytp-play-button-playlist",g.ch(this.S))}; g.p.Iu=function(A){this.S.logClick(this.element);if(this.S.getPlayerStateObject().isOrWillBePlaying())this.S.pauseVideo();else{if(this.S.isMinimized()&&this.S.getPlayerStateObject().isCued()){var L={},B;if((B=this.S.getVideoData())==null?0:B.T)L.cttAuthInfo={token:this.S.getVideoData().T,videoId:this.S.getVideoData().videoId};C0("direct_playback",L);this.S.zH().timerName="direct_playback"}this.S.playVideo()}this.S.isMinimized()&&(A==null?void 0:A.type)==="click"&&this.element.blur()}; g.p.Hy=function(A){g.q.prototype.Hy.call(this,A)};g.G(g.CQ,g.q);g.p=g.CQ.prototype;g.p.onVideoDataChange=function(){BcS(this);this.U&&(this.J$(this.U),this.U=null);this.videoData=this.S.getVideoData(1);if(this.playlist=this.S.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.U=this.Y(this.S,"progresssync",this.Bj);this.V=f$y(this);oyk(this);this.C1(this.S.Pn().getPlayerSize())}; g.p.C1=function(A){A=A===void 0?this.S.Pn().getPlayerSize():A;var L,B=((L=this.S.getLoopRange())==null?void 0:L.type)==="clips";L=g.ch(this.S)||this.N&&g.vh(this.S)&&!this.S.J("web_hide_next_button")||Kh7(this);var f=!this.N&&A.width<400;A=this.S.J("delhi_modern_web_player_horizontal_volume_controls")&&A.width<640;B=L&&!B&&!f&&!A;this.xP(B);this.S.logVisibility(this.element,B)}; g.p.onClick=function(A){this.S.logClick(this.element);var L=!0;this.T?L=g.If(A,this.S):A.preventDefault();L&&(this.N&&this.S.getPresentingPlayerType()===5?this.S.publish("ytoprerollinternstitialnext"):this.N?(Sf(this.S.zH()),this.S.publish("playlistnextbuttonclicked",this.element),this.S.nextVideo(!0)):this.V?this.S.seekTo(0):(Sf(this.S.zH()),this.S.publish("playlistprevbuttonclicked",this.element),this.S.previousVideo(!0)))}; g.p.Bj=function(){var A=f$y(this);A!==this.V&&(this.V=A,oyk(this))}; g.p.l1=function(){this.W&&(this.W(),this.W=null);BcS(this);g.q.prototype.l1.call(this)};g.G(JZy,g.q);g.p=JZy.prototype;g.p.Lc=function(A){this.xV(A.pageX);this.sA(A.pageX+A.deltaX);Spe(this)}; g.p.xV=function(A){this.Wn=A-this.S4}; g.p.sA=function(A){A-=this.S4;!isNaN(this.Wn)&&this.thumbnails.length>0&&(this.G=A-this.Wn,this.thumbnails.length>0&&this.G!==0&&(this.V=this.X+this.G,A=DzS(this,this.V),this.V<=this.N/2&&this.V>=FhC(this)?(this.api.seekTo(A,!1,void 0,void 0,25),g.Kv(this.Vj,"transform","translateX("+(this.V-this.N/2)+"px)"),VhE(this,A)):this.V=this.X))}; g.p.Pj=function(){this.qp&&(this.qp.o3=!0);var A=(0,g.bc)()-this.Ex<300;if(Math.abs(this.G)<5&&!A){this.Ex=(0,g.bc)();A=this.Wn+this.G;var L=this.N/2-A;this.xV(A);this.sA(A+L);Spe(this);this.api.logClick(this.D)}Spe(this)}; g.p.d3=function(){ir(this,this.api.getCurrentTime())}; g.p.play=function(A){this.api.seekTo(DzS(this,this.V),void 0,void 0,void 0,26);this.api.playVideo();A&&this.api.logClick(this.playButton)}; g.p.onExit=function(A){this.api.seekTo(this.Ys,void 0,void 0,void 0,63);this.api.playVideo();A&&this.api.logClick(this.dismissButton)}; g.p.Bz=function(A,L){this.S4=A;this.N=L;ir(this,this.api.getCurrentTime())}; g.p.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ys=this.api.getCurrentTime(),VhE(this,this.Ys),g.D1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.JF=this.Y(this.element,"wheel",this.Lc),this.logVisibility(this.isEnabled))}; g.p.disable=function(){this.isEnabled=!1;this.hide();g.D1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.JF&&this.J$(this.JF);this.logVisibility(this.isEnabled)}; g.p.reset=function(){this.disable();this.U=[];this.wT=!1}; g.p.logVisibility=function(A){this.api.logVisibility(this.element,A);this.api.logVisibility(this.D,A);this.api.logVisibility(this.dismissButton,A);this.api.logVisibility(this.playButton,A)}; g.p.l1=function(){for(;this.W.length;){var A=void 0;(A=this.W.pop())==null||A.dispose()}g.q.prototype.l1.call(this)}; g.G(Rxe,g.q);g.G(ZZy,g.q);g.G(dz1,g.q);g.G($t,g.q);$t.prototype.Zg=function(A){return A==="PLAY_PROGRESS"?this.X:A==="LOAD_PROGRESS"?this.T:A==="LIVE_BUFFER"?this.D:this.V};pue.prototype.update=function(A,L,B,f){B=B===void 0?0:B;this.width=L;this.U=B;this.N=L-B-(f===void 0?0:f);this.position=g.B4(A,B,B+this.N);this.V=this.position-B;this.W=this.V/this.N};g.G(yZk,g.q);g.G(g.Ef,g.DE);g.p=g.Ef.prototype; g.p.vO=function(){var A=!1,L=this.api.getVideoData();if(!L)return A;this.api.Jf("timedMarkerCueRange");GjS(this);for(var B=g.m(L.JF),f=B.next();!f.done;f=B.next()){f=f.value;var K=void 0,V=(K=this.sx[f])==null?void 0:K.markerType,J=void 0;K=(J=this.sx[f])==null?void 0:J.markers;if(!K)break;if(V==="MARKER_TYPE_TIMESTAMPS"){A=g.m(K);for(V=A.next();!V.done;V=A.next()){J=V.value;V=new yZk;var R=void 0;V.title=((R=J.title)==null?void 0:R.simpleText)||"";V.timeRangeStartMillis=Number(J.startMillis);V.N= Number(J.durationMillis);var Z=R=void 0;V.onActiveCommand=(Z=(R=J.onActive)==null?void 0:R.innertubeCommand)!=null?Z:void 0;thQ(this,V)}kjQ(this,this.X);A=this.X;V=this.cR;J=[];R=null;for(Z=0;ZN&&(R.end=N);N=vt0(N,N+D);J.push(N);R=N;V[N.id]=A[Z].onActiveCommand}}this.api.dX(J);a:{A=g.m(K);for(K=A.next();!K.done;K=A.next())if(K.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){A= !1;break a}A=!0}A&&(this.Gt=this.sx[f]);A=!0}else if(V==="MARKER_TYPE_HEATMAP"){f=this.sx[f];F=N=V=Z=R=J=void 0;if(f&&f.markers){K=(V=(F=f.markersMetadata)==null?void 0:(N=F.heatmapMetadata)==null?void 0:N.minHeightDp)!=null?V:0;V=(J=(Z=f.markersMetadata)==null?void 0:(R=Z.heatmapMetadata)==null?void 0:R.maxHeightDp)!=null?J:60;J=this.N.length;R=null;for(Z=0;Z=F&&w<=D&&N.push(d)}V>0&&(this.qp.style.height=V+"px");F=this.U[Z];D=N;d=K;var r=V,h=Z===0;h=h===void 0?!1:h;I$D(F,r);I=D;w=F.W;h=h===void 0?!1:h;var Q=1E3/I.length,l=[];l.push({x:0,y:100});for(var C=0;C0&&(R=N[N.length-1])}g.cJ(this)}V=void 0;K=[];if(f=(V=f.markersDecoration)==null?void 0:V.timedMarkerDecorations)for(f=g.m(f),V=f.next();!V.done;V=f.next())V=V.value,Z=R=J=void 0,K.push({visibleTimeRangeStartMillis:(J=V.visibleTimeRangeStartMillis)!= null?J:-1,visibleTimeRangeEndMillis:(R=V.visibleTimeRangeEndMillis)!=null?R:-1,decorationTimeMillis:(Z=V.decorationTimeMillis)!=null?Z:NaN,label:V.label?g.wq(V.label):""});f=K;this.heatMarkersDecorations=f}}L.sC=this.X;g.D1(this.element,"ytp-timed-markers-enabled",A);return A}; g.p.Bz=function(){g.cJ(this);Uf(this);kjQ(this,this.X);if(this.W){var A=g.dK(this.element).x||0;this.W.Bz(A,this.T)}}; g.p.VEs=function(){var A=this.api.getVideoData();A&&cZv(this,A)}; g.p.onClickCommand=function(A){if(A=g.y(A,dp)){var L=A.key;A.isVisible&&L&&QHk(this,L)}}; g.p.ed4=function(A){this.api.Kr("innertubeCommand",this.cR[A.id])}; g.p.iq=function(){Uf(this);var A=this.api.getCurrentTime();(Athis.clipEnd)&&this.mu()}; g.p.A2=function(A){if(!A.defaultPrevented){var L=!1;switch(A.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);L=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);L=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);L=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);L=!0;break;case 38:this.api.J("enable_key_press_seek_logging")&&ec(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);L=!0;break;case 40:this.api.J("enable_key_press_seek_logging")&&ec(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),L=!0}L&&A.preventDefault()}}; g.p.cF=function(A,L){this.updateVideoData(L,A==="newdata")}; g.p.lM4=function(){this.cF("newdata",this.api.getVideoData())}; g.p.updateVideoData=function(A,L){L=L===void 0?!1:L;var B=!!A&&A.gX();B&&(ZI(A)||OZe(this)?this.BR=!1:this.BR=A.allowLiveDvr,g.D1(this.api.getRootNode(),"ytp-enable-live-buffer",!(A==null||!ZI(A))),cZv(this,A));A3e(this,this.api.Kw());if(L){if(B){L=A.clipEnd;this.clipStart=A.clipStart;this.clipEnd=L;nQ(this);for(qY(this,this.Wn,this.Uv);this.U.length>0;)this.U.pop().dispose();this.heatMarkersDecorations=[];this.zV={};var f;(f=this.W)==null||f.reset();aD(this);g.D1(this.api.getRootNode(),"ytp-fine-scrubbing-exp", Of(this))}else this.mu();this.HI()}if(A){var K;f=((K=this.Jw)==null?void 0:K.type)==="clips";if(K=!A.isLivePlayback){K=this.api.getVideoData();L=g.Yc(K);B=sHk(K);var V;K=L!=null||B!=null&&B.length>0||((V=K.jb)==null?void 0:V.length)>0}if(K&&!f){V=this.api.getVideoData();f=g.Yc(V);K=!1;if(f==null?0:f.markersMap){K=this.api.getVideoData();var J;K.Tg=((J=f.visibleOnLoad)==null?void 0:J.key)||K.Tg;J=g.m(f.markersMap);for(f=J.next();!f.done;f=J.next())f=f.value,f.key&&f.value&&(this.zV[f.key]=f.value, f.value.onChapterRepeat&&(K.Jc=f.value.onChapterRepeat));K.Tg!=null&&QHk(this,K.Tg);K=!0}var R;if(((R=V.jb)==null?void 0:R.length)>0){R=g.Iq.getState().entities;J=g.m(V.jb);for(f=J.next();!f.done;f=J.next()){f=f.value;B=void 0;L=(B=nz(R,"macroMarkersListEntity",f))==null?void 0:B.markersList;var Z=B=void 0;if(((B=L)==null?void 0:B.markerType)==="MARKER_TYPE_TIMESTAMPS"||((Z=L)==null?void 0:Z.markerType)==="MARKER_TYPE_HEATMAP")this.sx[f]=L}K=this.vO()||K}!K&&(R=sHk(V))&&(hxD(this,R),V.k6=this.N,HZk(this)); Mh0(this,null);A.u4&&this.U.length===0&&(A=A.u4,R=A.key,A.isVisible&&R&&QHk(this,R))}else jH1(this),GjS(this)}Uf(this)}; g.p.wr=function(A){this.G&&!g.x(A.state,32)&&this.api.getPresentingPlayerType()!==3&&this.G.cancel();var L;((L=this.W)==null?0:L.isEnabled)&&g.x(A.state,8)&&this.api.pauseVideo();A=this.api.getPresentingPlayerType()===2||!this.api.Kw()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.D1(this.b2,"ytp-hide-scrubber-button",A)}; g.p.MK=function(A){var L=!!this.Jw!==!!A,B=this.Jw;this.Jw=A;Mh0(this,B);(A==null?void 0:A.type)!=="clips"&&A||(A?(this.updateValue("clipstarticon",o_k()),this.updateValue("clipendicon",o_k()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",ezD()),this.updateValue("clipendicon",xsk()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),L&&(this.updateVideoData(this.api.getVideoData(), !0),g.cJ(this)),nQ(this));qY(this,this.Wn,this.Uv)}; g.p.Q81=function(){this.api.publish("progressBarHoverStart")}; g.p.ajF=function(A,L,B){var f=g.dK(this.element),K=Yt(this).N,V=B?B.getAttribute("data-tooltip"):void 0,J=B?B.getAttribute("data-position"):void 0,R=B?B.getAttribute("data-offset-y"):void 0;R=R?Number(R):0;J&&(A=Xo(this.V,Number(B.getAttribute("data-position")),0)*K+g.dK(this.progressBar).x);this.mH.x=A-f.x;this.mH.y=L-f.y;A=Yt(this);B=xt(this,A);L=0;var Z;if((Z=this.api.getVideoData())==null?0:ZI(Z))(Z=this.api.getProgressState().seekableEnd)&&B>Z&&(B=Z,A.position=Xo(this.V,Z)*Yt(this).N),L=this.V.W; OZe(this)&&(L=this.V.W);Z=V||g.hG(this.BR?B-this.V.N:B-L);L=A.position+this.ye;B-=this.api.pY();var N;if((N=this.W)==null||!N.isEnabled)if(this.api.rB()){if(this.N.length>1){N=PJ(this,this.mH.x,!0);if(!this.Jw)for(f=0;f1)for(f=0;f0)for(N=this.mH.x,f=g.m(this.X),K=f.next();!K.done;K=f.next())K=K.value,J=MY(this,K.timeRangeStartMillis/ (this.V.N*1E3),Yt(this)),g.D1(K.element,"ytp-timed-marker-hover",J<=N&&J+6>=N);f=this.tooltip.scale;N=this.api.J("delhi_modern_web_player")?67:45;R=(isNaN(R)?0:R)-N*f;this.api.J("web_key_moments_markers")?this.Gt?(N=Yf1(this.X,B*1E3),N=N!=null?this.X[N].title:""):(N=BJ(this.N,B*1E3),N=this.N[N].title):(N=BJ(this.N,B*1E3),N=this.N[N].title);N||(R+=16*f);this.tooltip.scale===.6&&(g.SK(this.api.K())?(R=this.api.Pn().getPlayerSize().height-225,f=this.api.J("delhi_modern_web_player")?70:110,R=N?R+f:R+ f+16):R=N?110:126);f=BJ(this.N,B*1E3);this.JF=UzL(this,B,f)?f:UzL(this,B,f+1)?f+1:-1;g.D1(this.api.getRootNode(),"ytp-progress-bar-snap",this.JF!==-1&&this.N.length>1);f=!1;K=g.m(this.heatMarkersDecorations);for(J=K.next();!J.done;J=K.next()){J=J.value;var F=B*1E3;F>=J.visibleTimeRangeStartMillis&&F<=J.visibleTimeRangeEndMillis&&(N=J.label,Z=g.hG(xt(this,A)),f=!0)}this.O_!==f&&(this.O_=f,this.api.logVisibility(this.Po,this.O_));g.D1(this.api.getRootNode(),"ytp-progress-bar-decoration",f);f=160*this.tooltip.scale* 2;K=N.length*(this.D?8.55:5.7);K=K<=f?K:f;J=K<160*this.tooltip.scale;f=3;!J&&K/2>A.position&&(f=1);!J&&K/2>this.T-A.position&&(f=2);this.api.K().X&&(R-=10);this.U.length&&this.U[0].gX&&(R-=14*(this.D?2:1),this.Ex||(this.Ex=!0,this.api.logVisibility(this.qp,this.Ex)));var D;if(Of(this)&&(((D=this.W)==null?0:D.isEnabled)||this.Ox>0)){var I;R-=((I=this.W)==null?0:I.isEnabled)?(this.D?135:90)-this.Vj:this.Ox}D=void 0;Of(this)&&!this.api.J("web_player_hide_fine_scrubbing_edu")&&(D="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa", this.Ys||(this.Ys=!0,this.api.logVisibility(this.a8,this.Ys)));this.tooltip.KH(L,B,Z,!!V,R,N,f,D)}else this.tooltip.KH(L,B,Z,!!V,R);g.R1(this.api.getRootNode(),"ytp-progress-bar-hover");Xue(this)}; g.p.vbF=function(){this.HI();g.NH(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ex&&(this.Ex=!1,this.api.logVisibility(this.qp,this.Ex));this.Ys&&(this.Ys=!1,this.api.logVisibility(this.a8,this.Ys));this.api.J("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.p.eV4=function(A,L){var B=g.dK(this.element);this.nD=A-B.x;Of(this)&&this.W&&(this.W.wT?ir(this.W,this.api.getCurrentTime()):NcQ(this.W),this.W.show(),g.D1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.W.isEnabled));this.mC&&(this.mC.dispose(),this.mC=null);this.kR=L;this.Pk=this.api.getCurrentTime();this.N.length>1&&this.JF!==-1?this.api.seekTo(this.N[this.JF].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(xt(this,Yt(this)),!1,void 0,void 0,7);g.R1(this.element,"ytp-drag");(this.iW= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.p.K14=function(){if(Of(this)&&this.W){var A=(this.D?135:90)-this.Vj;this.Ox>=A*.5?(this.W.enable(),ir(this.W,this.api.getCurrentTime()),a$C(this,A)):aD(this)}if(g.x(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var L;if((L=this.W)==null?0:L.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.N.length>1&&this.JF!==-1)this.api.J("html5_enable_progress_bar_slide_seek_logging")&&ec(this,this.Pk,this.N[this.JF].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.N[this.JF].startTime/1E3,void 0,void 0,void 0,7);else{A=xt(this,Yt(this));this.api.J("html5_enable_progress_bar_slide_seek_logging")&&ec(this,this.Pk,A,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(A,void 0,void 0,void 0,7);L=g.m(this.heatMarkersDecorations);for(var B=L.next();!B.done;B=L.next())B=B.value,A*1E3>=B.visibleTimeRangeStartMillis&&A*1E3<=B.visibleTimeRangeEndMillis&& this.api.logClick(this.Po)}g.NH(this.element,"ytp-drag");this.wT&&(this.ZM.src=this.wT);this.iW&&!g.x(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.p.GqF=function(A,L){var B=this,f=Yt(this),K=xt(this,f);this.api.Pn().T1||(f.position>this.nD+2?this.k6&&(this.ZM.src=this.k6):f.position1);this.xP(A&&this.S.Pn().getPlayerSize().width>=400);this.S.logVisibility(this.element,this.bC);var L=1;A&&this.isActive()&&(L=2);if(this.N!==L){this.N=L;A=this.S.J("delhi_modern_web_player_icons");switch(L){case 1:this.updateValue("icon",A?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{Z:"path",bq:!0,C:{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", A?{Z:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{Z:"path",C:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.vzL())}g.D1(this.element,"ytp-remote-button-active",this.isActive())}}; AS.prototype.W=function(){if(this.S.getOption("remote","quickCast"))this.S.setOption("remote","quickCast",!0);else{var A=this.Wz,L=this.element;if(A.U7())A.YP();else{A.initialize();a:{var B=g.m(A.NU.items);for(var f=B.next();!f.done;f=B.next())if(f=f.value,f.priority===1){B=f;break a}B=null}B&&(B.open(),A.fD(L));A.fD(L)}}this.S.logClick(this.element)};g.G(Lb,g.q);Lb.prototype.N=function(A){var L=this.S.K(),B=400;L.T?B=300:L.X&&(B=200);A=this.W&&A.width>=B;this.xP(A);this.S.logVisibility(this.element,A)}; Lb.prototype.V=function(){if(this.Wz.bC)this.Wz.YP();else{var A=g.y2(this.S.SI());A&&!A.loaded&&(A.PR("tracklist",{includeAsr:!0}).length||A.load());this.S.logClick(this.element);this.Wz.fD(this.element)}}; Lb.prototype.updateBadge=function(){var A=this.S.isHdr(),L=this.S.getPresentingPlayerType(),B=L!==2&&L!==3,f=g.UU(this.S),K=B&&!!g.Yn(this.S.SI());L=K&&f.displayMode===1;f=K&&f.displayMode===2;B=(K=L||f)||!B?null:this.S.getPlaybackQuality();g.D1(this.element,"ytp-hdr-quality-badge",A);g.D1(this.element,"ytp-hd-quality-badge",!A&&(B==="hd1080"||B==="hd1440"));g.D1(this.element,"ytp-4k-quality-badge",!A&&B==="hd2160");g.D1(this.element,"ytp-5k-quality-badge",!A&&B==="hd2880");g.D1(this.element,"ytp-8k-quality-badge", !A&&B==="highres");g.D1(this.element,"ytp-3d-badge-grey",!A&&K&&L);g.D1(this.element,"ytp-3d-badge",!A&&K&&f)};g.G(o7,g.He);g.p=o7.prototype;g.p.zL=function(){var A=this.S.getAvailableAudioTracks();if(A.length>1){if(this.S.K().experiments.Qf().N.Iv(DC9)){var L=A.filter(function(K){return K.isAutoDubbed()}),B=A.filter(function(K){return!K.isAutoDubbed()}).map(this.bu); L.length>0&&(this.S.Hn("ad_grp",{ad_c:L.length,t_c:A.length}),B.push(new sce),B.push.apply(B,g.x7(L.map(this.bu))));h_L(this,B)}else this.eO(g.mn(A,this.bu));this.tracks=g.jZ(A,this.bu,this);this.countLabel.setContent(A.length?" ("+A.length+")":"");this.publish("size-change");A=this.bu(this.S.getAudioTrack());this.GH(A);if(this.S.J("html5_enable_new_audio_settings_menu")){var f;(f=this.N)!=null&&f.setContent(A.toString())}this.enable(!0)}else this.S.J("html5_enable_new_audio_settings_menu")&&(L=this.N)!= null&&L.setContent(""),this.enable(!1)}; g.p.A$=function(A){g.He.prototype.A$.call(this,A);A=this.tracks[A];this.S.setAudioTrack(A);this.Wz.h2();this.S.K().experiments.Qf().N.Iv(DC9)&&this.S.Hn("ad_sel",{lang:A.ri.id})}; g.p.bu=function(A){return A.toString()}; g.p.Ru=function(A){this.S.J("html5_enable_new_audio_settings_menu")?this.N&&(A?this.N.ov(this):this.N.Z1(this)):g.He.prototype.Ru.call(this,A)}; g.p.onClick=function(){this.S.logClick(this.element)};g.G(o4v,g.of);g.p=o4v.prototype;g.p.VF=function(){this.S.VF()}; g.p.open=function(){this.rf.uM()>0&&g.yp(this.Wz,this.rf)}; g.p.f8=function(){this.rf.uM()>0&&this.S.getPresentingPlayerType()!==2&&this.S.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.p.A2=function(A){A.defaultPrevented||(this.open(),A.preventDefault())}; g.p.ov=function(A){this.rf.ov(A)}; g.p.Z1=function(A){this.rf.Z1(A)};g.G(Bd,Dq); Bd.prototype.f8=function(){var A=this.S.getPresentingPlayerType();if(A!==2&&A!==3&&g.vh(this.S))this.N||(this.Wz.ov(this),this.N=!0,this.W.push(this.Y(this.S,"videodatachange",this.f8)),this.W.push(this.Y(this.S,"videoplayerreset",this.f8)),this.W.push(this.Y(this.S,"onPlaylistUpdate",this.f8)),this.W.push(this.Y(this.S,"autonavchange",this.V)),A=this.S.getVideoData(),this.V(A.autonavState),this.S.logVisibility(this.element,this.N));else if(this.N){this.Wz.Z1(this);this.N=!1;A=g.m(this.W);for(var L= A.next();!L.done;L=A.next())this.J$(L.value)}}; Bd.prototype.V=function(A){dC(this,A!==1)}; Bd.prototype.onSelect=function(A){this.S.tW(A?2:1);this.N&&(this.S.logVisibility(this.element,this.N),this.S.logClick(this.element))}; Bd.prototype.l1=function(){this.N&&this.Wz.Z1(this);Dq.prototype.l1.call(this)};g.G(B17,g.of);B17.prototype.onClick=function(A){A.preventDefault();var L,B;(L=g.Hh(this.S))==null||(B=L.gB())==null||B.YP();var f,K;(f=g.Hh(this.S))==null||(K=f.oH())==null||K.fD(A.target)};g.G(f6k,g.He);g.p=f6k.prototype; g.p.f8=function(){var A=this.S.getPresentingPlayerType();if(A!==2&&A!==3){this.Wn=this.S.KO();var L=this.S.getAvailableQualityLevels();if(this.N){this.W={};A=g.jg(this.S,"getAvailableQualityData",[]);A=g.m(A);for(var B=A.next();!B.done;B=A.next())B=B.value,this.W[B.qualityLabel]=B;A=Object.keys(this.W);L[L.length-1]==="auto"&&A.push("auto");this.qp=new Set(L)}else if(this.V){B=g.jg(this.S,"getAvailableQualityData",[]);A=[];B=g.m(B);for(var f=B.next();!f.done;f=B.next())f=f.value,this.T[f.quality]= f,f.quality&&A.push(f.quality);L[L.length-1]==="auto"&&A.push("auto")}else A=L;g.dyC(this.S)&&this.S.F$()&&A.unshift("missing-qualities");L=this.S.app.e4();B=L.getVideoData();if(!B.W||!B.W.video||B.W.video.qualityOrdinal<1080||B.wJ)L=!1;else{f=/^qsa/.test(B.clientPlaybackNonce);var K="r";B.W.id.indexOf(";")>=0&&(f=/^[a-p]/.test(B.clientPlaybackNonce),K="x");f?(L.Hn("iqss",{trigger:K},!0),L=!0):L=!1}L&&A.unshift("inline-survey");this.eO(A);L=this.S.getVideoData().cotn?!0:!1;B=this.G.Dr();B=!g.SK(this.S.K())|| !(L===void 0?0:L)||!(B===void 0||B);L=this.rf;B=B===void 0?!1:B;L.uB&&g.D1(L.m4("ytp-panel-footer"),"ytp-panel-hide-footer",B===void 0?!1:B);if(A.length){this.RL();this.enable(!0);return}}this.enable(!1)}; g.p.RL=function(){if(this.N){var A=this.S.getPreferredQuality();this.qp.has(A)&&(this.U=this.S.getPlaybackQuality(),this.X=this.S.getPlaybackQualityLabel(),A==="auto"?(this.GH(A),this.setContent(this.I8(A))):this.GH(this.X))}else A=this.S.getPreferredQuality(),this.options[A]&&(this.U=this.S.getPlaybackQuality(),this.GH(A),A==="auto"&&this.setContent(this.I8(A)))}; g.p.A$=function(A){if(A!=="missing-qualities"){g.He.prototype.A$.call(this,A);var L=this.N?this.W[A]:this.T[A];var B=L==null?void 0:L.quality,f=L==null?void 0:L.formatId,K=L==null?void 0:L.paygatedQualityDetails;L=K==null?void 0:K.endpoint;if(K){var V;K=(V=this.options[A])==null?void 0:V.element;this.S.logClick(K)}if(this.N){var J,R;if((J=g.y(L,g.oWW))==null?0:(R=J.popup)==null?0:R.notificationActionRenderer)this.S.Kr("innertubeCommand",L);else if(L){this.S.Kr("innertubeCommand",L);return}f?this.S.setPlaybackQuality(B, f):this.S.setPlaybackQuality(B)}else{if(this.V){var Z,N;if((Z=g.y(L,g.oWW))==null?0:(N=Z.popup)==null?0:N.notificationActionRenderer)this.S.Kr("innertubeCommand",L);else if(L){this.S.Kr("innertubeCommand",L);return}}this.S.setPlaybackQuality(A)}this.Wz.YP();this.f8()}}; g.p.open=function(){for(var A=g.m(Object.values(this.options)),L=A.next();!L.done;L=A.next()){L=L.value;var B=void 0;this.S.hasVe((B=L)==null?void 0:B.element)&&(B=void 0,this.S.logVisibility((B=L)==null?void 0:B.element,!0))}g.He.prototype.open.call(this);this.S.logClick(this.element)}; g.p.Em=function(A,L,B){var f=this;if(A==="missing-qualities")return new g.of({Z:"a",Rr:["ytp-menuitem"],C:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.S.K().yj,tabindex:"0",role:"menuitemradio"},B:[{Z:"div",Rr:["ytp-menuitem-label"],Ir:"{{label}}"}]},L,this.I8(A));if(A!=="inline-survey"){var K,V=(K=this.N?this.W[A]:this.T[A])==null?void 0:K.paygatedQualityDetails;K=V==null?void 0:V.veType;V=V==null?void 0:V.trackingParams;L=g.He.prototype.Em.call(this,A,L,B);V?(this.S.createServerVe(L.element, this,!0),this.S.setTrackingParams(L.element,V)):K&&this.S.createClientVe(L.element,this,K,!0);return L}A=[{Z:"span",Ir:"\u00bfSe ve bien?"}];B=g.m([!0,!1]);V=B.next();for(K={};!V.done;K={nE:void 0},V=B.next())K.nE=V.value,V=new g.q({Z:"span",j:"ytp-menuitem-inline-survey-response",B:[K.nE?LuS():zz1()],C:{tabindex:"0",role:"button"}}),V.listen("click",function(J){return function(){var R=f.S.app.e4();R.Hn("iqsr",{tu:J.nE});R.getVideoData().wJ=!0;f.Wz.YP();f.f8()}}(K)),A.push(V); return new g.of({Z:"div",j:"ytp-menuitem",C:{"aria-disabled":"true"},B:[{Z:"div",Rr:["ytp-menuitem-label"],B:A}]},L)}; g.p.I8=function(A,L){L=L===void 0?!1:L;if(A==="missing-qualities")return{Z:"div",Ir:"\u00bfFaltan opciones?"};if(A==="inline-survey")return"";var B=this.V||this.N?[J31(this,A,L,!1)]:[Vp0(this,A)];var f=this.S.getPreferredQuality();L||f!=="auto"||A!=="auto"||(B.push(" "),this.N?B.push(J31(this,this.X,L,!0,["ytp-menu-label-secondary"])):this.V?B.push(J31(this,this.U,L,!0,["ytp-menu-label-secondary"])):B.push(Vp0(this,this.U,["ytp-menu-label-secondary"])));return{Z:"div",B:B}};g.G(fb,tP);fb.prototype.D=function(){tP.prototype.D.call(this);this.Wn&&S$k(this)}; fb.prototype.wT=function(){this.qp()}; fb.prototype.ZM=function(){this.S.setPlaybackRate(this.N,!0)}; fb.prototype.X=function(A){tP.prototype.X.call(this,A);this.qp();S$k(this);A.preventDefault()};g.G(Kb,g.q);g.p=Kb.prototype;g.p.init=function(){this.Fk(this.N);this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.V)}; g.p.Wi=function(A){if(!A.defaultPrevented){switch(A.keyCode){case 37:case 40:var L=-this.X;break;case 39:case 38:L=this.X;break;default:return}this.Fk(this.N+L);A.preventDefault()}}; g.p.NR=function(A){var L=this.N;L+=(A.deltaX||-A.deltaY)<0?-this.G:this.G;this.Fk(L);A.preventDefault()}; g.p.yU=function(A){A=(A-g.dK(this.U).x)/this.Wn*this.range+this.W;this.Fk(A)}; g.p.Fk=function(A,L){L=L===void 0?"":L;A=g.B4(A,this.W,this.V);L===""&&(L=A.toString());this.updateValue("valuenow",A);this.updateValue("valuetext",L);this.qp.style.left=(A-this.W)/this.range*(this.Wn-this.wT)+"px";this.N=A}; g.p.focus=function(){this.JF.focus()};g.G(VA,Kb);VA.prototype.Vj=function(){this.S.setPlaybackRate(this.N,!0)}; VA.prototype.Fk=function(A){Kb.prototype.Fk.call(this,A,ZY0(this,A).toString());this.D&&(Rn1(this),this.ZM())}; VA.prototype.updateValues=function(){var A=this.S.getPlaybackRate();ZY0(this,this.N)!==A&&(this.Fk(A),Rn1(this))};g.G(N18,g.DE);N18.prototype.focus=function(){this.N.focus()};g.G(FGL,dA);g.G(deL,g.He);g.p=deL.prototype;g.p.onVideoDataChange=function(A){A==="dataloaded"&&(A=this.S.getAvailablePlaybackRates(),g.wo(this.yI,A)||(this.yI=A,this.WY.dispose(),this.WY=new fb(this.S)),this.zL())}; g.p.I8=function(A){return A==="1"?"Normal":A.toLocaleString()}; g.p.zL=function(){var A,L=(A=this.S.getVideoData())==null?void 0:A.aA();A=this.S.getPresentingPlayerType(L);this.enable(A!==2&&A!==3);p1C(this)}; g.p.eO=function(A){g.He.prototype.eO.call(this,A);this.WY&&this.WY.W.focus()}; g.p.Ru=function(A){g.He.prototype.Ru.call(this,A);A?(this.U=this.Y(this.S,"onPlaybackRateChange",this.onPlaybackRateChange),p1C(this),I66(this,this.S.getPlaybackRate()),this.S.J("enable_web_premium_varispeed_upsell")&&(this.S.logVisibility(this.element,!0),this.lY&&this.S.logVisibility(this.ME.element,!0))):(this.J$(this.U),this.U=null)}; g.p.onPlaybackRateChange=function(A){var L=this.S.getPlaybackRate();!this.W&&this.yI.includes(L)||w1v(this,L);I66(this,A)}; g.p.Em=function(A,L,B){return A===this.N&&y3y(this.S)?g.He.prototype.Em.call(this,A,L,B,{Z:"div",j:"ytp-speed-slider-menu-footer",B:[this.WY]}):A===this.lY&&De8(this.S,this.BE)?this.d0(A,L,B):g.He.prototype.Em.call(this,A,L,B)}; g.p.d0=function(A,L,B){var f=this;L=new g.of({Z:"div",Rr:["ytp-menuitem"],C:{tabindex:"0",role:"menuitemradio","aria-checked":B?"true":"false"},B:[{Z:"div",Rr:["ytp-menuitem-label"],B:[{Z:"div",Rr:["ytp-menuitem-container-with-badge"],B:[{Z:"div",Ir:"{{label}}"},this.ME]}]}]},L,this.I8(A));L.listen("click",function(){f.wk(A)}); return L}; g.p.A$=function(A){g.He.prototype.A$.call(this,A);A===this.lY?(this.S.logClick(this.ME.element),this.S.Kr("innertubeCommand",this.BE)):A===this.N?this.S.setPlaybackRate(this.V,!0):this.S.setPlaybackRate(Number(A),!0);(!y3y(this.S)||A!==this.N&&A!==this.lY)&&this.Wz.h2()}; g.p.wk=function(A){var L=A===this.N;this.W=!1;L&&JS(this.S)&&!y3y(this.S)?(A=new FGL(this.S),g.yp(this.Wz,A)):g.He.prototype.wk.call(this,A)};g.G(g4e,g.Im);g.p=g4e.prototype;g.p.zL=function(){var A,L=(A=this.S.getVideoData())==null?void 0:A.aA();A=this.S.getPresentingPlayerType(L);if(A===2||A===3)g.wA(this);else{g.wA(this);A=this.yI.map(jYS);this.lY&&A.push(this.lY);this.GP=jYS(this.S.getPlaybackRate());for(L=0;L0&&g.pl.prototype.fD.call(this,A)}; g.p.YP=function(){this.zE?this.zE=!1:g.pl.prototype.YP.call(this)}; g.p.show=function(){g.pl.prototype.show.call(this);g.R1(this.S.getRootNode(),"ytp-settings-shown")}; g.p.hide=function(){g.pl.prototype.hide.call(this);g.NH(this.S.getRootNode(),"ytp-settings-shown")}; g.p.wI=function(A){this.S.logVisibility(this.element,A);this.S.publish("settingsMenuVisibilityChanged",A)}; g.p.VF=function(){this.S.VF()};g.G(QYQ,g.q);g.p=QYQ.prototype;g.p.onClick=function(){if(DC(this)&&(this.S.toggleSubtitles(),this.S.logClick(this.element),!this.isEnabled())){var A=!1,L=g.v9().Iv(65);g.SK(this.S.K())&&L!=null&&(A=!L);A&&this.S.K().J("web_player_nitrate_promo_tooltip")&&this.S.publish("showpromotooltip",this.element)}}; g.p.vJr=function(A){var L,B;(L=g.Hh(this.S))==null||(B=L.gB())==null||B.fD(A)}; g.p.isEnabled=function(){var A=this.S.getOption("captions","track");return!(!A||!A.displayName)}; g.p.zL=function(){var A=DC(this),L=300;this.S.K().X&&(L=480);this.S.J("delhi_modern_web_player_icons")&&this.updateValue("icon",meE(this));if(this.S.K().T){this.updateValue("title",g.iz(this.S,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.iz(this.S,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var B=A}else{if(A)(B=this.m4("ytp-subtitles-button-icon"))==null||B.setAttribute("fill-opacity","1"),this.S.K().J("player_tooltip_data_title_killswitch")?this.updateValue("title", g.iz(this.S,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.iz(this.S,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.S.J("delhi_modern_web_player_icons")){var f;(f=this.m4("ytp-subtitles-button-icon"))==null||f.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var K;(K=this.m4("ytp-subtitles-button-icon"))==null||K.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"tooltip-title":"Subt\u00edtulos no disponibles"}); this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}B=this.S.J("player_disable_caption_button_if_captions_not_available")&&this.S.J("delhi_modern_web_player")?A:!0}this.tooltip.qq();B=B&&this.S.Pn().getPlayerSize().width>=L;this.xP(B);this.S.logVisibility(this.element,B);A?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.p.Hy=function(A){g.q.prototype.Hy.call(this,A)};g.G(g.d0,g.q);g.p=g.d0.prototype;g.p.canShowCountdown=function(){return!w0(this)&&!I7(this)}; g.p.iq=function(){var A=this.api.Pn().getPlayerSize().width,L=this.Wn;this.api.K().X&&(L=400);L=A>=L&&(!I7(this)||!g.x(this.api.getPlayerStateObject(),64));this.xP(L);g.D1(this.element,"ytp-time-display-allow-autohide",L&&A<400);A=this.api.getProgressState();if(L){var B=this.api.getPresentingPlayerType();L=this.api.getCurrentTime(B,!1);this.W&&(L-=A.airingStart);w0(this)&&(L-=this.Jw.startTimeMs/1E3);this.canShowCountdown()&&this.V&&(L-=this.api.getDuration(B,!1));var f=g.hG(L);this.U!==f&&(this.updateValue("currenttime", f),this.U=f);B=w0(this)?(this.Jw.endTimeMs-this.Jw.startTimeMs)/1E3:this.api.getDuration(B,!1);f=g.hG(B);this.D!==f&&(this.updateValue("duration",f),this.D=f);L=g.B$("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.hG(L,!0),DURATION:g.hG(B,!0)});this.updateValue("timeDisplayAriaLabel",L)}CvL(this,A.isAtLiveHead);iY6(this,this.api.getLoopRange())}; g.p.onLoopRangeChange=function(A){var L=this.Jw!==A;this.Jw=A;L&&(this.iq(),$eE(this))}; g.p.PQT=function(){this.api.setLoopRange(null)}; g.p.D8s=function(){this.V=!this.V;this.iq()}; g.p.onVideoDataChange=function(A,L,B){this.updateVideoData((this.api.K().J("enable_topsoil_wta_for_halftime")||this.api.K().J("enable_topsoil_wta_for_halftime_live_infra"))&&B===2?this.api.getVideoData(1):L);this.iq();$eE(this)}; g.p.updateVideoData=function(A){this.ek=A.isLivePlayback&&!A.I7;this.W=ZI(A);this.isPremiere=A.isPremiere;var L,B,f;this.liveIndicatorText=(A=(L=A.getWatchNextResponse())==null?void 0:(B=L.playerOverlays)==null?void 0:(f=B.playerOverlayRenderer)==null?void 0:f.liveIndicatorText)?J2(A):null;g.D1(this.element,"ytp-live",I7(this));this.api.J("delhi_modern_web_player")&&this.m4("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.p.onClick=function(A){A.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.p.l1=function(){this.N&&this.N();g.q.prototype.l1.call(this)};g.G(E48,g.q);g.p=E48.prototype;g.p.Vi=function(){c3k(this)}; g.p.y$j=function(A){X1C(this,A);this.G&&c3k(this)}; g.p.lk=function(A){if(!A.defaultPrevented){var L=A.keyCode,B=null;L===37?B=this.volume-5:L===39?B=this.volume+5:L===36?B=0:L===35&&(B=100);B!==null&&(B=g.B4(B,0,100),B===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(B)),A.preventDefault())}}; g.p.qR=function(A){var L=A.deltaX||-A.deltaY;A.deltaMode?this.api.setVolume(this.volume+(L<0?-10:10)):this.api.setVolume(this.volume+g.B4(L/10,-10,10));A.preventDefault();var B,f;((B=this.api.K())==null?0:(f=B.getWebPlayerContextConfig())==null?0:f.enableFullscreenComponentsFeature)&&A.stopPropagation()}; g.p.nJF=function(){pb(this,this.N,!0,this.W,this.api.ZF());this.Wn=this.volume;this.api.isMuted()&&this.api.unMute()}; g.p.IK=function(A){var L=this.V?78:52,B=this.V?18:12;A-=g.dK(this.X).x;B=g.B4((A-B/2)/(L-B),0,1);this.G&&(B=g.B4(A/L,0,1));L=B;L=this.api.J("web_player_non_linear_volume_controls")?L<=.25?L/.25*.1:.1+(L-.25)/.75*.9:L;this.api.setVolume(L*100)}; g.p.rzx=function(){pb(this,this.N,!1,this.W,this.api.ZF());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Wn))}; g.p.onVolumeChange=function(A){OYe(this,A.volume,A.muted)}; g.p.u3=function(){pb(this,this.N,this.isDragging,this.W,this.api.ZF())}; g.p.l1=function(){g.q.prototype.l1.call(this);g.NH(this.T,"ytp-volume-slider-active")};g.G(yA,g.q); yA.prototype.onVideoDataChange=function(){var A=this.api.K();this.Bz();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).OE;this.xP(this.visible);this.api.logVisibility(this.element,this.visible&&this.yj);if(this.visible){var L=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",L)}A.V&&(this.N&&(this.J$(this.N),this.N=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.R1(this.element,"no-link")); L=this.api.K();A=this.api.getVideoData();var B="";L.V||(L=g.BN(L),L.indexOf("www.")===0&&(L=L.substring(4)),B=g.Nm(A)?"Mirar en YouTube Music":L==="youtube.com"?"Mirar en YouTube":g.B$("Mirar en $WEBSITE",{WEBSITE:L}));this.api.J("player_tooltip_data_title_killswitch")?this.updateValue("title",B):this.updateValue("tooltip-title",B)}; yA.prototype.onClick=function(A){this.api.J("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var L=this.api.K(),B=this.api.getVideoUrl(!g.bV(A),!1,!0,!0);if(g.MM(L)){var f={};g.MM(L)&&g.jg(this.api,"addEmbedsConversionTrackingParams",[f]);B=g.ip(B,f)}g.wC(B,this.api,A);this.api.J("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; yA.prototype.Bz=function(){var A={Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{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 "}}]}, L=28666,B=this.api.getVideoData();this.api.isEmbedsShortsMode()?A={Z:"svg",C:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},B:[{Z:"path",C:{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.Nm(B)&&(A={Z:"svg",C:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},B:[{Z:"path",C:{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",C:{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",C:{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",C:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Z:"path",C:{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",C:{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",C:{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",C:{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",C:{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",C:{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",C:{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",C:{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"}}]},L=216163);g.Nm(B)?g.R1(this.element,"ytp-youtube-music-button"):g.NH(this.element,"ytp-youtube-music-button");A.C=Object.assign({},A.C,{"aria-hidden":"true"});this.updateValue("logoSvg",A);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,L,!0)}; yA.prototype.Hy=function(A){g.q.prototype.Hy.call(this,A);this.api.logVisibility(this.element,this.visible&&A)};g.G(Uee,g.dN);g.p=Uee.prototype;g.p.onProgress=function(){if(this.S.J("web_player_max_seekable_on_ended")||!g.x(this.S.getPlayerStateObject(),2))lg(this.C8),this.progressBar.iq(),this.HZ.iq()}; g.p.Al=function(){this.yA();if(lg(this.C8))this.progressBar.HI();else this.onProgress()}; g.p.VU=function(){this.onProgress();this.G.start()}; g.p.yA=function(){var A;if(A=!this.S.K().W){A=this.progressBar;var L=2*g.J$()*A.T,B=A.V;A=(B.N-B.W)*1E3/A.api.getPlaybackRate()/L<300}A=A&&this.S.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;L=!A;lg(this.C8)&&(A=L=!1);L?this.qp||(this.qp=this.Y(this.S,"progresssync",this.onProgress)):this.qp&&(this.J$(this.qp),this.qp=null);A?this.G.isActive()||this.G.start():this.G.stop()}; g.p.Bz=function(){var A=this.S.Zr(),L=this.S.Pn().getPlayerSize(),B=this.S.Pn().T1,f=v4L(this),K=q$7(this),V=Math.max(L.width-f*2,100);if(this.Ox!==L.width||this.cn!==A||this.S.J("web_player_rtr_ctrls")&&this.d7!==B)this.Ox=L.width,this.cn=A,this.d7=B,this.W.element.style.width=K+"px",this.W.element.style.left=f+"px",g.zxv(this.progressBar,f,K,A),this.S.Ce().Jr=K;B=this.N;V=Math.min(570*(A?1.5:1),V);A=Math.min(413*(A?1.5:1),Math.round((L.height-PvQ(this))*.82));B.maxWidth=V;B.maxHeight=A;B.oN();this.yA(); this.ql&&Q77(this.Cr,L.height)}; g.p.onVideoDataChange=function(){var A=this.S.getVideoData();this.S4.style.background=A.OE?A.kE:"";this.Wn&&cS7(this.Wn,A.showSeekingControls);this.yj&&cS7(this.yj,A.showSeekingControls)}; g.p.Zg=function(){return this.W.element};g.G(en1,DW);g.p=en1.prototype;g.p.gJ=function(A){A.target===this.dismissButton.element?this.N&&U1C(DD(),this.N):(this.onClickCommand&&(this.Or(!1),this.S.Kr("innertubeCommand",this.onClickCommand)),this.qb())}; g.p.qb=function(){this.enabled=!1;this.G.hide()}; g.p.onVideoDataChange=function(A,L){A==="dataloaded"&&n4w(this);A=[];var B,f,K,V;if(L=(V=g.y((B=L.getWatchNextResponse())==null?void 0:(f=B.playerOverlays)==null?void 0:(K=f.playerOverlayRenderer)==null?void 0:K.suggestedActionsRenderer,t5X))==null?void 0:V.suggestedActions)for(B=g.m(L),f=B.next();!f.done;f=B.next())(f=g.y(f.value,kKB))&&g.y(f.trigger,bfB)&&A.push(f);if(A.length!==0){B=[];A=g.m(A);for(f=A.next();!f.done;f=A.next())if(f=f.value,K=g.y(f.trigger,bfB)){V=(V=f.title)?g.wq(V):"View Chapters"; L=K.timeRangeStartMillis;var J=K.timeRangeEndMillis;K=K.onlyTriggersOnPlayerPause;f.tapCommand&&(L!=null&&J!=null&&B.push(new g.WR(L,J,{priority:9,namespace:"suggested_action_button_visible",id:V})),L!=null&&J!=null||K)&&(this.suggestedActions[V]=f,K=void 0,(K=f.dismissButtonClientVeSpec)==null?0:K.uiType)&&(this.N=g8(f.dismissButtonClientVeSpec.uiType))}this.S.dX(B)}}; g.p.CC=function(){return this.enabled}; g.p.wI=function(){if(this.enabled){if(this.Ys.start(),!this.V&&this.N&&(I4(DD(),this.N),this.V=!0),this.text){var A,L=(A=this.suggestedActions[this.text])==null?void 0:A.rendererContext;if(A=g.y(L,V59)){var B;if(A=(B=A.loggingDirectives)==null?void 0:B.trackingParams)this.S.setTrackingParams(this.badge.element,A),this.W=!0}}}else NQ(this),this.S.setTrackingParams(this.badge.element,null),this.W=!1;this.B9()}; g.p.onStateChange=function(A){for(var L=g.m(Object.keys(this.suggestedActions)),B=L.next();!B.done;B=L.next()){B=B.value;var f=void 0;if((f=g.y(this.suggestedActions[B].trigger,bfB))==null?0:f.onlyTriggersOnPlayerPause){A.state.isPaused()?(xey(this,B),this.enabled=!0,this.wI()):A.oldState.isPaused()&&(this.enabled=!1,this.wI());break}}}; g.p.l1=function(){n4w(this);DW.prototype.l1.call(this)};var hC={},GG=(hC.CHANNEL_NAME="ytp-title-channel-name",hC.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",hC.LINK="ytp-title-link",hC.SESSIONLINK="yt-uix-sessionlink",hC.SUBTEXT="ytp-title-subtext",hC.TEXT="ytp-title-text",hC.TITLE="ytp-title",hC);g.G(r0,g.q);r0.prototype.onClick=function(A){this.api.logClick(this.element);var L=this.api.K(),B=this.api.getVideoUrl(!g.bV(A),!1,!0);g.MM(L)&&(L={},g.jg(this.api,"addEmbedsConversionTrackingParams",[L]),B=g.ip(B,L));g.wC(B,this.api,A)}; r0.prototype.zL=function(){var A=this.api.getVideoData(),L=this.api.K();this.updateValue("title",A.title);var B={Z:"a",j:GG.CHANNEL_NAME,C:{href:"{{channelLink}}",target:"_blank"},Ir:"{{channelName}}"};this.api.K().V?B={Z:"span",j:GG.CHANNEL_NAME,Ir:"{{channelName}}",C:{tabIndex:"{{channelSubtextFocusable}}"}}:A.wp&&(B={Z:"span",j:GG.SUBTEXT,Ir:A.wp});this.updateValue("subtextElement",B);znw(this);this.api.getPresentingPlayerType()===2&&(B=this.api.getVideoData(),B.videoId&&B.isListed&&B.author&& B.Ys&&B.profilePicture?(this.updateValue("channelLink",B.Ys),this.updateValue("channelName",B.author),this.updateValue("channelTitleFocusable","0")):znw(this));B=L.externalFullscreen||!this.api.isFullscreen()&&L.kR;g.D1(this.link,GG.FULLERSCREEN_LINK,B);L.qp||!A.videoId||B||A.OE||L.V?this.N&&(this.updateValue("url",null),this.J$(this.N),this.N=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.N||(this.N=this.Y(this.link,"click",this.onClick)));L.V&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.MM(L)?A.expandedTitle:A.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.G(g.sY,g.q);g.p=g.sY.prototype;g.p.setEnabled=function(A){if(this.type!=null)if(A)switch(this.type){case 3:case 2:Hd(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.T=A}; g.p.KH=function(A,L,B,f,K,V,J,R){if(!this.ZM||this.env.X){this.type===3&&this.HI();this.type!==1&&(g.Jz(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.T&&this.fade.show(),this.W&&this.W.dispose(),(this.W=this.api.rB())&&this.W.subscribe("l",this.oa,this));if(R){var Z=g.pv(this.bg).height||141;this.wT.style.bottom=Z+2+"px"}else this.wT.style.display="none";this.env.J("delhi_modern_web_player")?(this.update({pillTimeStamp:B,pillTitle:V!=null?V:"",eduText:R!=null?R:""}),g.R1(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:B,title:V!=null?V:"",eduText:R!=null?R:""}),g.D1(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!V));this.api.isInline()&&g.R1(this.bottomText,"ytp-modern-tooltip-text");g.D1(this.element,"ytp-text-detail",!!f);B=-1;this.W&&(B=zd(this.W,243*this.scale),this.env.J("web_l3_storyboard")&&this.W.levels.length===4&&(B=this.W.levels.length-1),B=CML(this.W,B,L));ou7(this,B);if(J)switch(L=g.pv(this.element).width,J){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=L+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=L/2+"px",this.title.style.textAlign="center"}LR7(this,!!f,A,K)}}; g.p.gr=function(){this.type===1&&this.HI()}; g.p.yR=function(A,L){if(this.type)if(this.type===3)this.HI();else return;ul0(this,A,3,L)}; g.p.qq=function(){this.N&&!this.X&&(this.env.J("player_tooltip_data_title_killswitch")?this.N.hasAttribute("title")&&(this.V=this.N.getAttribute("title")||"",this.N.removeAttribute("title"),this.T&&Hd(this)):this.N.hasAttribute("data-tooltip-title")&&(this.V=this.N.getAttribute("data-tooltip-title")||"",this.N.removeAttribute("data-tooltip-title"),this.T&&Hd(this)))}; g.p.oa=function(A,L){A<=this.U&&this.U<=L&&(A=this.U,this.U=NaN,ou7(this,A))}; g.p.qvr=function(){m0Q(this.W,this.U,243*this.scale)}; g.p.HI=function(){switch(this.type){case 2:var A=this.N;A.removeEventListener("mouseout",this.G);A.addEventListener("mouseover",this.D);A.removeEventListener("blur",this.G);A.addEventListener("focus",this.D);BQD(this);break;case 3:BQD(this);break;case 1:this.W&&(this.W.unsubscribe("l",this.oa,this),this.W=null),this.api.removeEventListener("videoready",this.Wn),this.qp.stop()}this.type=null;this.T&&this.fade.hide()}; g.p.Ed=function(){if(this.N)for(var A=0;A=0;L--)if(this.W4[L]===A){this.W4.splice(L,1);break}TB(this.C8,64,this.W4.length>0)}; g.p.YW=function(){this.api.yq()&&this.api.Bu();return!!this.Td||ZI6(this)||g.YS.prototype.YW.call(this)}; g.p.LC=function(){var A=!this.YW(),L=A&&this.api.yq()&&!g.x(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().OE&&!this.api.K().V&&!this.api.isEmbedsShortsMode(),B=this.Hg&&g.ch(this.api)&&g.x(this.api.getPlayerStateObject(),128);A||B?(this.yX.show(),this.Wx.show()):(this.yX.hide(),this.Wx.hide(),this.api.Ed(this.Rc.element));L?this.u2.fD():this.u2.YP();this.A_&&WG1(this.A_,this.WCM||!A);this.api.J("web_player_hide_overflow_button_if_empty_menu")&&NQ1(this);g.YS.prototype.LC.call(this)}; g.p.TT=function(A,L,B,f,K){A.style.left="";A.style.top="";A.style.bottom="";var V=g.pv(A),J=f||this.A_&&g.XF(this.A_.Zg(),L),R=f=null;B!=null&&J||(f=g.pv(L),R=g.IR(L,this.api.getRootNode()),B==null&&(B=R.x+f.width/2));B-=V.width/2;J?(L=this.A_,f=v4L(L),R=q$7(L),J=this.api.Pn().getPlayerSize().height,B=g.B4(B,f,f+R-V.width),V=J-PvQ(L)-V.height):g.XF(this.Rc.element,L)?(L=this.api.Pn().getPlayerSize().width,B=g.B4(B,12,L-V.width-12),V=this.Zr()?this.Zw:this.ws,this.api.K().playerStyle==="gvn"&&(V+= 20),this.Hg&&(V-=this.Zr()?26:18)):(L=this.api.Pn().getPlayerSize(),B=g.B4(B,12,L.width-V.width-12),V=R.y>(L.height-f.height)/2?R.y-V.height-12:R.y+f.height+12);A.style.top=V+(K||0)+"px";A.style.left=B+"px"}; g.p.Al=function(A){A&&(this.api.Ed(this.Rc.element),this.A_&&this.api.Ed(this.A_.Zg()));this.by&&(g.D1(this.contextMenu.element,"ytp-autohide",A),g.D1(this.contextMenu.element,"ytp-autohide-active",!0));g.YS.prototype.Al.call(this,A)}; g.p.Pe=function(){g.YS.prototype.Pe.call(this);this.by&&(g.D1(this.contextMenu.element,"ytp-autohide-active",!1),this.by&&(this.contextMenu.hide(),this.FL&&this.FL.hide()))}; g.p.O7=function(A,L){var B=this.api.Pn().getPlayerSize();B=new g.oR(0,0,B.width,B.height);if(A||!lg(this.C8)&&!this.YW()){if(this.api.K().jr||L)A=this.Zr()?this.Zw:this.ws,B.top+=A,B.height-=A;this.A_&&(B.height-=PvQ(this.A_))}return B}; g.p.Vi=function(A){var L=this.api.getRootNode();A?L.parentElement?(L.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.K().externalFullscreen||(L.parentElement.insertBefore(this.K$.element,L),L.parentElement.insertBefore(this.aO.element,L.nextSibling))):g.mL(Error("Player not in DOM.")):(L.setAttribute("aria-label","Reproductor de video de YouTube"),this.K$.detach(),this.aO.detach());this.Bz();this.Fp()}; g.p.Zr=function(){if(this.api.J("web_player_use_screen_width_for_big_mode")){var A;return this.api.Pn().getPlayerSize().width>=((A=g.Am(this.api.K().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?A:2E3)}A=this.api.K();return this.api.isFullscreen()&&!A.X||!1}; g.p.showControls=function(A){this.nW=!A;this.LC()}; g.p.Bz=function(){var A=this.Zr();this.tooltip.scale=A?1.5:1;this.contextMenu&&g.D1(this.contextMenu.element,"ytp-big-mode",A);this.LC();this.api.J("web_player_hide_overflow_button_if_empty_menu")||NQ1(this);this.Fp();var L=this.api.isEmbedsShortsMode();L&&A?(A=(this.api.Pn().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Kv(this.Rc.element,"padding-left",A+"px"),g.Kv(this.Rc.element,"padding-right",A+"px")):L&&(g.Kv(this.Rc.element,"padding-left",""),g.Kv(this.Rc.element,"padding-right", ""));g.YS.prototype.Bz.call(this)}; g.p.hB=function(){if(ZI6(this)&&!g.ch(this.api))return!1;var A=this.api.getVideoData();return!g.MM(this.api.K())||this.api.getPresentingPlayerType()===2||!this.Yu||((A=this.Yu||A.Yu)?(A=A.embedPreview)?(A=A.thumbnailPreviewRenderer,A=A.videoDetails&&g.y(A.videoDetails,gh6)||null):A=null:A=null,A&&A.collapsedRenderer&&A.expandedRenderer)?g.YS.prototype.hB.call(this):!1}; g.p.Fp=function(){g.YS.prototype.Fp.call(this);this.api.logVisibility(this.title.element,!!this.Wu);this.Jh&&this.Jh.Hy(!!this.Wu);this.channelAvatar.Hy(!!this.Wu);this.overflowButton&&this.overflowButton.Hy(this.Gy()&&!!this.Wu);this.shareButton&&this.shareButton.Hy(!this.Gy()&&!!this.Wu);this.u5&&this.u5.Hy(!this.Gy()&&!!this.Wu);this.searchButton&&this.searchButton.Hy(!this.Gy()&&!!this.Wu);this.copyLinkButton&&this.copyLinkButton.Hy(!this.Gy()&&!!this.Wu);if(!this.Wu){this.api.Ed(this.Rc.element); for(var A=0;A=0?this.N.playbackRate:1}catch(A){return 1}}; g.p.setPlaybackRate=function(A){this.getPlaybackRate()!==A&&(this.N.playbackRate=A);return A}; g.p.e5=function(){return this.N.loop}; g.p.setLoop=function(A){this.N.loop=A}; g.p.canPlayType=function(A,L){return this.N.canPlayType(A,L)}; g.p.isPaused=function(){return this.N.paused}; g.p.isSeeking=function(){return this.N.seeking}; g.p.isEnded=function(){return this.N.ended}; g.p.ib=function(){return this.N.muted}; g.p.o6=function(A){D2();this.N.muted=A}; g.p.wN=function(){var A=this.N.played||n$([],[]);return this.view?p08(this,A):A}; g.p.YJ=function(){try{var A=this.N.buffered}catch(L){}A=A||n$([],[]);return this.view?p08(this,A):A}; g.p.Zk=function(){var A=this.N.seekable||n$([],[]);return this.view?p08(this,A):A}; g.p.r_=function(){var A=this.N;return A.getStartDate?A.getStartDate():null}; g.p.getCurrentTime=function(){if(this.view){var A=this.N.currentTime;A=this.view?A-this.view.start:A;return this.view.oQ||!isFinite(this.view.end)?A:Math.min(A,this.view.end-this.view.start)}return this.N.currentTime}; g.p.setCurrentTime=function(A){this.N.currentTime=this.view?this.view?A+this.view.start:A:A}; g.p.getDuration=function(){return this.view?isFinite(this.view.end)&&!this.view.oQ?this.view.end-this.view.start:this.N.duration-this.view.start:this.N.duration}; g.p.load=function(){var A=this.N.playbackRate;try{this.N.load()}catch(L){}this.N.playbackRate=A}; g.p.pause=function(){this.N.pause()}; g.p.play=function(){if(this.view&&this.EO())try{this.N.currentTime=this.view.start}catch(L){}var A=this.N.play();if(!A||!A.then)return null;A.then(void 0,function(){}); return A}; g.p.J2=function(){return this.N.readyState}; g.p.Yj=function(){return this.N.networkState}; g.p.p8=function(){return this.N.error?this.N.error.code:null}; g.p.SE=function(){return this.N.error?this.N.error.message:""}; g.p.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.N instanceof window.HTMLVideoElement&&this.N.getVideoPlaybackQuality)return this.N.getVideoPlaybackQuality();if(this.N){var A=this.N,L=A.webkitDroppedFrameCount;if(A=A.webkitDecodedFrameCount)return{droppedVideoFrames:L||0,totalVideoFrames:A}}return{}}; g.p.Ov=function(){try{var A=this.getSize(),L={vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:zv(this.wN(),",",3),vbu:zv(this.YJ()),vbs:zv(this.Zk()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.J2(),vns:""+this.Yj(),vec:""+this.p8(),vemsg:this.SE(),vvol:""+this.getVolume(),vdom:""+ +this.xU(),vsrc:""+ +!!this.eE(),vw:""+A.width,vh:""+A.height};this.view&&(L.view=this.view.start+"-"+this.view.end);return L}catch(B){return{}}}; g.p.QC=function(){return!!this.N.webkitCurrentPlaybackTargetIsWireless}; g.p.m2=function(){return!!this.N.webkitShowPlaybackTargetPicker()}; g.p.togglePictureInPicture=function(){var A=this.N,L=window.document;window.document.pictureInPictureEnabled?this.N!==L.pictureInPictureElement?A.requestPictureInPicture():L.exitPictureInPicture():F2()&&A.webkitSetPresentationMode(A.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.p.Gf=function(){return IwL(this.N)}; g.p.getSize=function(){return g.pv(this.N)}; g.p.setSize=function(A){g.wK(this.N,A)}; g.p.getVolume=function(){return this.N.volume}; g.p.setVolume=function(A){D2();this.N.volume=A}; g.p.addEventListener=function(A,L){this.qp.listen(A,L,!1,this);this.uR(A)}; g.p.removeEventListener=function(A,L){this.qp.J$(A,L,!1,this)}; g.p.dispatchEvent=function(A){if(this.T&&A.type==="pause")return!1;if(z7E){var L,B=((L=A.N)==null?void 0:L.timeStamp)||Infinity;L=B>performance.now()?B-Date.now()+performance.now():B;B=this.W||this.U;if((B==null?0:B.PF())||L<=((B==null?void 0:B.U)||0)){var f;this.b5("rms",{l:"mede",sr:(f=this.Np)==null?void 0:f.R0(),et:A.type});return!1}if(this.jM)return this.b5("rms",{l:"medes",et:A.type}),B&&A.type==="seeking"&&(B.U=performance.now(),this.jM=!1),!1}return this.qp.dispatchEvent(A)}; g.p.uR=function(A){this.G[A]||(this.N.addEventListener(A,this.listener),this.G[A]=this.listener)}; g.p.setAttribute=function(A,L){this.N.setAttribute(A,L)}; g.p.removeAttribute=function(A){this.N.removeAttribute(A)}; g.p.hasAttribute=function(A){return this.N.hasAttribute(A)}; g.p.Xk=OD(52);g.p.BQ=OD(55);g.p.PQ=OD(58);g.p.uA=OD(61);g.p.VJ=function(){return H9(this.N)}; g.p.zf=function(A){g.R1(this.N,A)}; g.p.AY=function(A){return g.SV(this.N,A)}; g.p.xU=function(){return g.XF(document.body,this.N)}; g.p.audioTracks=function(){var A=this.N;if("audioTracks"in A)return A.audioTracks}; g.p.Bb=function(){this.wT=!1}; g.p.aj=function(){this.wT=!0;this.o6(!0)}; g.p.iN=function(){this.wT&&!this.ib()&&this.o6(!0)}; g.p.equals=function(A){return!!A&&A.Zg()===this.Zg()}; g.p.l1=function(){for(var A=g.m(Object.keys(this.G)),L=A.next();!L.done;L=A.next())L=L.value,this.N.removeEventListener(L,this.G[L]);this.JF&&this.removeEventListener("volumechange",this.iN);Pok&&w08(this);je.prototype.l1.call(this)}; g.p.oI=function(){return this.p8()===4}; g.p.hasError=function(){return this.p8()>0}; g.p.xT=function(){switch(this.p8()){case 2:return"progressive.net.retryexhausted";case 3:var A=this.SE();return(A==null?0:A.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||a9y&&(A==null?0:A.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.p.vl=function(A){this.N.disableRemotePlayback=A}; g.p.KU=function(){var A=this.Zk();return A.length<1?NaN:A.end(A.length-1)}; g.p.g_=function(){return this.D}; g.p.activate=function(A){var L="";A&&(I97(this,A),L=A.wi);if(!this.eE()||L)L&&this.eE()!==L&&(this.aM(L),delete this.W,this.T&&(this.T.reject(),delete this.T),!window.MediaSource&&window.ManagedMediaSource&&this.vl(!(A==null||!A.N))),A&&A.N||this.load(),this.JF||(this.addEventListener("volumechange",this.iN),this.JF=!0)}; g.p.c5=function(){var A=this;!this.W&&NK()&&(this.T?this.T.then(function(){return void A.c5()}):this.eE()||(this.W=this.Fy()))}; g.p.Xv=function(){this.W&&(this.W.dispose(),this.W=void 0)}; g.p.Fy=function(A,L){if(this.W)if(z7E&&dz(this.W)&&!this.W.Aq(A,L)){var B;this.b5("rms",{l:"megms",sr:(B=this.Np)==null?void 0:B.R0()});this.Xv();this.stopVideo()}else return this.U=this.W,this.W=void 0,this.U;A=wH0(this);this.activate(A.V);this.U=A;this.jM=!1;return A}; g.p.nH=function(A){this.W=A}; g.p.playVideo=function(){var A=this;this.isEnded()&&this.seekTo(0);!this.eE()&&this.D&&(g.mL(Error("playVideo without src")),this.aM(this.D.wi),this.D.N||this.load());var L=this.play(),B;if((B=this.Np)==null||!GLw(B)){var f;m5&&($c||0)>=7&&(!L||((f=this.Np)==null?0:f.J("mweb_ios_allow_playback_workaround_when_ready")))&&ory(this,function(){g.gW(function(){dZS(A,A.getCurrentTime(),0)},500)})}return L}; g.p.b5=function(A,L,B){var f;((f=this.Np)==null?0:f.hw())&&this.Np.Hn(A,L,B===void 0?!1:B)}; g.p.fH=function(A){this.Np=A}; g.p.vu=function(){return Bi(this.YJ(),this.getCurrentTime())}; g.p.seekTo=function(A){this.J2()>0&&(m5&&$c<4&&(A=Math.max(.1,A)),this.setCurrentTime(A))}; g.p.J3=function(A){if(this.J2()===0||this.hasError())return!1;var L=this.getCurrentTime()>0;if(A>=0){var B=this.Zk();if(B.length||!L)return aT(B,A)}return L}; g.p.aC=function(){if(!this.W&&this.U)if(this.U.T)try{var A;this.b5("rms",{l:"mer",sr:(A=this.Np)==null?void 0:A.R0(),rs:Ik(this.U)});this.U.clear();this.nH(this.U);this.U=void 0}catch(L){A=new g.iL("Error while clearing Media Source in MediaElement: "+L.name+", "+L.message),g.mL(A),this.stopVideo()}else this.stopVideo()}; g.p.stopVideo=function(){var A=this;if(!this.W){var L;(L=this.U)==null||pW(L);if(Pok){if(!this.T){var B=new yV;B.then(void 0,function(){}); this.T=B;e78&&this.pause();g.gW(function(){A.T===B&&(w08(A),B.resolve())},200)}}else w08(this)}}; g.p.rQ=function(){var A=this.YJ();return ok(A)&&this.getDuration()?AA(A,this.getCurrentTime()):0}; g.p.lB=function(){var A=this.YJ();return ok(A)&&this.getDuration()?A.end(A.length-1):0}; g.p.Hq=function(){var A=this.getDuration();return A===Infinity?1:A?this.rQ()/A:0}; var Pok=!1,e78=!1,z7E=!1;var tS=[],yNE=!1;g.G(ko,g.Y);ko.prototype.X=function(){this.N!=null&&this.app.getVideoData()!==this.N&&V7(this.N)&&pxC(this.app,this.N,void 0,void 0,this.V)}; ko.prototype.T=function(){if(this.N!=null&&this.app.getVideoData()!==this.N&&this.W!=null&&this.U!=null&&this.D!=null&&V7(this.N)){var A=this.app.K().experiments.Qf().N.Iv(QA);A=Ge7(this.W,this.U,this.D,A);A==null?pxC(this.app,this.N,void 0,void 0,this.V):(this.W.Hn("sgap",A),this.W.getVideoData().X&&this.W.tT(!1),this.app.K().J("html5_remove_loop_range_on_gapless_fallback")&&(lF(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}}; ko.prototype.G=function(A){var L=this.app.e4();if(L){var B=this.app.getCurrentTime();Math.abs(B-A.end/1E3)>5&&L.Hn("glrs",{cmt:B});L.seekTo(0,{seekSource:58});L.Hn("glrre",{cmt:B})}}; ko.prototype.l1=function(){this.N=null;g.Y.prototype.l1.call(this)};g.G(g.TG,je);g.p=g.TG.prototype;g.p.isView=function(){return!0}; g.p.EO=function(){var A=this.mediaElement.getCurrentTime();if(A1;aT(A.Hk(),f-.01)&&!K&&(mj(this,4),B.isActive=!1,B.s1=B.s1||B.isActive,(this.D===1?this.N:this.W).Hn("sbh",{}),L.isActive=!0,L.s1=L.s1||L.isActive,this.D!==0&&(this.N.getVideoData().uu=!0));A=this.U.W;if(this.U.N.isActive&&A.isActive&&(mj(this,5),this.D!==0)){A=this.W.bf();B=this.N.bf(); this.N.Hn("sbs",{citag:B==null?void 0:B.itag,nitag:A==null?void 0:A.itag});this.W.Hn("gitags",{pitag:B==null?void 0:B.itag,citag:A==null?void 0:A.itag});var V;(V=this.W)==null||V.Bp()}}}; g.p.c8=function(){this.I6()&&this.Lw("player-reload-after-handoff")}; g.p.Lw=function(A,L){L=L===void 0?{}:L;if(!this.TL()&&this.status.status!==6){var B=this.status.status>=4&&A!=="player-reload-after-handoff";this.status={status:Infinity,error:A};if(this.N&&this.W){var f=this.W.getVideoData().clientPlaybackNonce;this.N.Ho(new g.K$("dai.transitionfailure",Object.assign(L,{cpn:f,transitionTimeMs:this.rk,msg:A})));this.N.tT(B)}this.lD.reject(A);this.dispose()}}; g.p.I6=function(){return this.status.status>=4&&this.status.status<6}; g.p.l1=function(){keL(this);this.N.unsubscribe("newelementrequired",this.c8,this);if(this.V){var A=this.V.W;this.V.N.Py.unsubscribe("updateend",this.Rk,this);A.Py.unsubscribe("updateend",this.Rk,this)}g.Y.prototype.l1.call(this)}; g.p.TD=function(A){g.wk(A,128)&&this.Lw("player-error-event")};g.G(Cb,g.Y);Cb.prototype.clearQueue=function(A,L){A=A===void 0?!1:A;L=L===void 0?!1:L;iE(this);this.U&&this.U.reject("Queue cleared");this.app.K().J("html5_gapless_fallback_on_qoe_restart_v2")||L&&this.W&&this.W.tT(!1);$o(this,A)}; Cb.prototype.qV=function(){return!this.N}; Cb.prototype.I6=function(){var A;return((A=this.V)==null?void 0:A.I6())||!1}; Cb.prototype.l1=function(){iE(this);$o(this);g.Y.prototype.l1.call(this)};g.G(MyL,g.SN);g.p=MyL.prototype;g.p.getVisibilityState=function(A,L,B,f,K,V,J,R){return A?4:K&&RVv?7:Ji6&&!(fR()||document.hasFocus&&document.hasFocus())||fR()?3:L?2:B?1:f?5:K&&!RVv?7:V?8:J?9:R?10:0}; g.p.Fc=function(A){this.fullscreen!==A&&(this.fullscreen=A,this.wI())}; g.p.setMinimized=function(A){this.W!==A&&(this.W=A,this.wI())}; g.p.setInline=function(A){this.inline!==A&&(this.inline=A,this.wI())}; g.p.Aa=function(A){this.pictureInPicture!==A&&(this.pictureInPicture=A,this.wI())}; g.p.setSqueezeback=function(A){this.V!==A&&(this.V=A,this.wI())}; g.p.X9=function(A){this.U!==A&&(this.U=A,this.wI())}; g.p.QC=function(){return this.N}; g.p.X1=function(){return this.fullscreen!==0}; g.p.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.p.L$=function(){return this.fullscreen}; g.p.isMinimized=function(){return this.W}; g.p.isInline=function(){return this.inline}; g.p.isBackground=function(){return fR()}; g.p.nV=function(){return this.pictureInPicture}; g.p.WE=function(){return!1}; g.p.bz=function(){return this.V}; g.p.EN=function(){return this.U}; g.p.wI=function(){this.publish("visibilitychange");var A=this.getVisibilityState(this.QC(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.nV(),this.WE(),this.bz(),this.EN());A!==this.T&&this.publish("visibilitystatechange");this.T=A}; g.p.l1=function(){Vbk(this.D);g.SN.prototype.l1.call(this)};g.G(g.XA,g.Y);g.p=g.XA.prototype;g.p.l1=function(){this.videoData=this.playerState=null;g.Y.prototype.l1.call(this)}; g.p.addCueRange=function(){}; g.p.zg=function(){}; g.p.tp=function(){}; g.p.pn=function(){return!1}; g.p.Nf=function(){return!1}; g.p.Om=function(){}; g.p.G9=function(){}; g.p.Ln=function(){return[]}; g.p.VF=function(){}; g.p.wW=function(){}; g.p.a_=function(){return 1}; g.p.getAudioTrack=function(){return this.getVideoData().Ry}; g.p.ZH=function(){return null}; g.p.getAvailableAudioTracks=function(){return[]}; g.p.KO=function(){return[]}; g.p.Q9=function(){return[]}; g.p.t_=function(){return""}; g.p.Ef=function(){return[]}; g.p.R3=function(){}; g.p.Fb=function(){return 0}; g.p.getCurrentTime=function(){return 0}; g.p.SC=function(){}; g.p.bf=function(){}; g.p.Ov=function(){return{}}; g.p.getDuration=function(){return 0}; g.p.gQ=function(){return 0}; g.p.wX=function(){return 0}; g.p.nU=function(){return!1}; g.p.pX=function(){return 0}; g.p.rQ=function(){return 0}; g.p.m$=function(){return null}; g.p.G_=function(){return 0}; g.p.e5=function(){return!1}; g.p.bH=function(){return 0}; g.p.pD=function(){return null}; g.p.Fy=function(){return null}; g.p.vy=function(){return 0}; g.p.I5=function(){return 0}; g.p.A1=function(){return g.c(function(A){g.VK(A)})}; g.p.U0=OD(11);g.p.getPlaybackQuality=function(){return"auto"}; g.p.getPlaybackRate=function(){return 1}; g.p.getPlayerState=function(){this.playerState||(this.playerState=new g.Gu);return this.playerState}; g.p.getPlayerType=function(){return 0}; g.p.getPlaylistSequenceForTime=function(){return null}; g.p.b0=function(){return function(){}}; g.p.BA=function(){return""}; g.p.getPreferredQuality=function(){return"unknown"}; g.p.Vu=function(){}; g.p.getProximaLatencyPreference=function(){return 0}; g.p.vS=function(){return fr}; g.p.rB=function(){return null}; g.p.getStoryboardFormat=function(){return null}; g.p.getStreamTimeOffset=function(){return 0}; g.p.Dk=function(){return 0}; g.p.pY=function(){return 0}; g.p.EV=function(){return{jp:[],pJ:[],currentTime:0,zd:"",droppedVideoFrames:0,isGapless:!1,qV:!0,F4:0,fp:0,Cp:0,xd:0,uw:0,aR:[],jl:[],TY:null,fP:"0",sz:null,Fi:"",totalVideoFrames:0}}; g.p.getUserAudio51Preference=function(){return 0}; g.p.getUserPlaybackQualityPreference=function(){return""}; g.p.getVideoData=function(){this.videoData||(this.videoData=new g.Kr(this.L),g.W(this,this.videoData));return this.videoData}; g.p.WM=function(){return null}; g.p.Ur=function(){return null}; g.p.TP=function(){}; g.p.getVideoLoadedFraction=function(){return 0}; g.p.w6=function(){}; g.p.handleError=function(){}; g.p.tT=function(){}; g.p.BS=function(){}; g.p.SJ=OD(36);g.p.BF=function(){return!1}; g.p.hasSupportedAudio51Tracks=function(){return!1}; g.p.isAd=function(){return!1}; g.p.Hu=function(){return!1}; g.p.QC=function(){return!1}; g.p.isAtLiveHead=function(){return!1}; g.p.jR=function(){return!0}; g.p.isGapless=function(){return!1}; g.p.isHdr=function(){return!1}; g.p.r6=function(){return!1}; g.p.Im=function(){return!1}; g.p.lz=function(){return!1}; g.p.isProximaLatencyEligible=function(){return!1}; g.p.qV=function(){return!0}; g.p.VZ=function(){return!1}; g.p.AT=function(){return!1}; g.p.gG=function(){}; g.p.Qt=function(){}; g.p.Bp=function(){}; g.p.H4=function(){}; g.p.X6=function(){}; g.p.q9=function(){}; g.p.IS=function(){}; g.p.IU=OD(46);g.p.W9=OD(17);g.p.RS=function(){}; g.p.pauseVideo=function(){}; g.p.prefetchKeyPlay=function(){}; g.p.playVideo=function(){return g.c(function(A){return A.return()})}; g.p.C3=function(){}; g.p.J1=OD(23);g.p.ph=OD(29);g.p.wY=function(){}; g.p.Hn=function(){}; g.p.Qe=function(){}; g.p.TJ=function(){}; g.p.jd=function(){}; g.p.Ho=function(){}; g.p.q3=function(){}; g.p.Iw=function(){}; g.p.Rh=function(){}; g.p.dO=function(){}; g.p.lj=function(){}; g.p.aC=function(){}; g.p.removeCueRange=function(){}; g.p.fS=function(){}; g.p.Jf=function(){return[]}; g.p.GB=function(){}; g.p.UN=function(){}; g.p.qv=function(){}; g.p.gM=function(){}; g.p.Vx=function(){}; g.p.Zh=function(){}; g.p.Qb=function(){}; g.p.seekTo=function(){}; g.p.sendAbandonmentPing=function(){}; g.p.sendVideoStatsEngageEvent=function(){}; g.p.E5=function(){}; g.p.setLoop=function(){}; g.p.rS=function(){}; g.p.setMediaElement=function(){}; g.p.Mv=function(){}; g.p.setPlaybackRate=function(){}; g.p.O9=function(){}; g.p.fC=function(){}; g.p.Z2=function(){}; g.p.setProximaLatencyPreference=function(){}; g.p.Jm=function(){}; g.p.T8=function(){}; g.p.cg=function(){}; g.p.i_=function(){}; g.p.hW=function(){}; g.p.setUserAudio51Preference=function(){}; g.p.OO=function(){}; g.p.R0=function(){return!1}; g.p.m2=function(){}; g.p.bF=function(){return!1}; g.p.dK=function(){}; g.p.Am=function(){}; g.p.hm=function(){}; g.p.stopVideo=function(){}; g.p.subscribe=function(){return NaN}; g.p.tA=function(){}; g.p.togglePictureInPicture=function(){}; g.p.GJ=function(){return 0}; g.p.XS=function(){}; g.p.unsubscribe=function(){return!1}; g.p.P4=function(){}; g.p.WG=function(){return!1}; g.p.bD=function(){}; g.p.UA=function(){}; g.p.A8=function(){};g.G(UZ0,g.Y);g.p=UZ0.prototype;g.p.get=function(A){OY(this);var L=this.data.find(function(B){return B.key===A}); return L?L.value:null}; g.p.R9=function(){OY(this);return this.data.map(function(A){return A.value})}; g.p.set=function(A,L,B){this.remove(A,!0);OY(this);A={key:A,value:L,expire:Infinity};B&&isFinite(B)&&(B*=1E3,A.expire=(0,g.bc)()+B);for(this.data.push(A);this.data.length>this.V;)(B=this.data.shift())&&cd(this,B,!0);EY(this)}; g.p.remove=function(A,L){L=L===void 0?!1:L;var B=this.data.find(function(f){return f.key===A}); B&&(cd(this,B,L),g.o8(this.data,function(f){return f.key===A}),EY(this))}; g.p.removeAll=function(A){if(A=A===void 0?!1:A)for(var L=g.m(this.data),B=L.next();!B.done;B=L.next())cd(this,B.value,A);this.data=[];EY(this)}; g.p.l1=function(){var A=this;g.Y.prototype.l1.call(this);this.data.forEach(function(L){cd(A,L,!0)}); this.data=[]}; g.G(YyC,g.Y);g.p=YyC.prototype;g.p.get=function(A){var L=this.map.get(A);return L?L.tY<=(0,g.bc)()?(this.remove(A,!0),null):L.value:null}; g.p.R9=function(){for(var A=[],L=(0,g.bc)(),B=[],f=g.m(this.map.entries()),K=f.next();!K.done;K=f.next()){var V=g.m(K.value);K=V.next().value;V=V.next().value;V.tY<=L?B.push(K):A.push(V.value)}if(B.length>0){L=g.m(B);for(B=L.next();!B.done;B=L.next())Md(this,B.value,!0);Yo(this)}return A}; g.p.set=function(A,L,B){this.map.has(A)&&Md(this,A,!0);var f=(0,g.bc)(),K=Infinity;B!==void 0&&B!==null&&isFinite(B)&&(K=f+B*1E3);this.map.set(A,{value:L,tY:K});isFinite(K)&&(this.N.enqueue(K,A),Un(this.N)===K&&Yo(this));if(!Number.isNaN(this.U))for(A=this.map.keys();this.map.size>this.U;){L=A.next();if(L.done)break;Md(this,L.value,!0)}}; g.p.remove=function(A,L){Md(this,A,L===void 0?!1:L)&&Yo(this)}; g.p.removeAll=function(A){if((A===void 0?0:A)&&this.W){A=g.m(this.map.values());for(var L=A.next();!L.done;L=A.next())this.W(L.value.value)}this.map.clear();this.N.clear();this.V.stop()}; g.p.l1=function(){g.Y.prototype.l1.call(this);this.removeAll(!0)};g.G(g.UY,g.Y);g.p=g.UY.prototype;g.p.l1=function(){for(var A=g.m(Object.values(this.V)),L=A.next();!L.done;L=A.next())L.value.dispose();qye(this);this.G.dispose();g.Y.prototype.l1.call(this)}; g.p.Jz=function(A){return A?A===1?this.yj:this.W.getVideoData().enableServerStitchedDai&&A===2?this.W.getVideoData().dL?this.V[2]||this.W:this.W:this.V[A]||null:this.W}; g.p.Yy=function(A){var L=A.cpn;A=A.playerType;if(L)a:{A=g.m(Object.values(this.V));for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.t_()===L){L=B;break a}L=this.U[L]||null}else L=A?this.Jz(A):this.W;return L}; g.p.kP=function(){return this.yj}; g.p.ij=function(A){this.yj=A}; g.p.e4=function(){return this.W}; g.p.Ok=function(A){this.W=A;Wd(this)}; g.p.Gr=OD(42);g.p.jw=OD(44);DcS.prototype.eg=function(A,L){for(var B=0;B<10;B++){var f=this.N[B],K=f+(B===0?A:0),V=1*Math.pow(2,B);if(K<=V)break;f=Math.min(1,(K-V*.5)/f);for(K=0;K<16;K++)V=this.values[B*16+K]*f,this.values[(B+1)*16+K]+=V,this.N[B+1]+=V,this.values[B*16+K]-=V,this.N[B]-=V}f=B=0;K=8192;L>8192&&(B=Math.ceil(Math.log(L/8192)/Math.log(2)),f=8192*Math.pow(2,B-1),K=f*2);B+2>16?this.values[15]+=A:(L=(L-f)/(K-f),this.values[B]+=A*(1-L),this.values[B+1]+=A*L);this.N[0]+=A}; DcS.prototype.pw=function(){var A=A===void 0?this.W:A;var L=L===void 0?.02:L;var B=B===void 0?.98:B;for(var f=this.V,K=0;K<16;K++)f[K]=this.values[K];K=this.N[0];for(var V=1;V<11;V++){var J=this.N[V];if(J===0)break;for(var R=Math.min(1,(A-K)/J),Z=0;Z<16;Z++)f[Z]+=this.values[V*16+Z]*R;K+=J*R;if(R<1)break}for(V=A=J=0;V<16;V++){R=J+f[V]/K;A+=Math.max(0,Math.min(R,B)-Math.max(J,L))*(V>0?8192*Math.pow(2,V-1):0);if(R>B)break;J=R}return A/(B-L)};qd.prototype.eg=function(A,L){A=Math.min(this.N,Math.max(1,Math.round(A*this.resolution)));A+this.W>=this.N&&(this.V=!0);for(;A--;)this.values[this.W]=L,this.W=(this.W+1)%this.N;this.I$=!0}; qd.prototype.percentile=function(A){var L=this;if(!this.V&&this.W===0)return 0;this.I$&&(g.I8(this.D,function(B,f){return L.values[B]-L.values[f]}),this.I$=!1); return this.values[this.D[Math.round(A*((this.V?this.N:this.W)-1))]]||0}; qd.prototype.pw=function(){return this.T?(this.percentile(this.U-this.T)+this.percentile(this.U)+this.percentile(this.U+this.T))/3:this.percentile(this.U)};g.G(dcw,g.Y);dcw.prototype.sx=function(){var A;(A=this.Ex)==null||A.start();sh(this)&&this.policy.G&&this.cn()};pE0.prototype.J=function(A){return this.experiments.GL(A)};g.G(gpD,g.nm);g.p=gpD.prototype;g.p.RH=function(){}; g.p.t_=function(){return this.videoData.clientPlaybackNonce}; g.p.getVideoData=function(){if(g.nm.prototype.getVideoData.call(this).J("html5_huli_ssdai_use_playback_state")){var A=qHS(this.TV,g.nm.prototype.getCurrentTime.call(this))||g.nm.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==A.clientPlaybackNonce&&GSD(this.U,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:A.clientPlaybackNonce});return this.videoData}return qHS(this.TV,g.nm.prototype.getCurrentTime.call(this))||g.nm.prototype.getVideoData.call(this)}; g.p.getCurrentTime=function(A){var L=g.nm.prototype.getCurrentTime.call(this);if(g.nm.prototype.getVideoData.call(this).J("html5_huli_ssdai_use_playback_state")){this.N===0?A||(L-=this.startTimeSecs,g.nm.prototype.getVideoData.call(this).J("html5_ssdai_log_missed_ad_impressions")&&this.W&&this.V&&L>1&&this.Hn("sdai-admiss",{cpn:this.t_(),ct:L.toFixed(3),pfs:this.V}),this.W=!1):A&&(L=this.N);var B=A?this.TV.wM||g.nm.prototype.getCurrentTime.call(this):YHC(this.TV,g.nm.prototype.getCurrentTime.call(this)); L!==B&&GSD(this.U,"time"+(A!=null?A:!1),{time:L,ref:B,ct:A!=null?A:!1})}else L=A?this.TV.wM||L:YHC(this.TV,L);return L}; g.p.getDuration=function(){if(g.nm.prototype.getVideoData.call(this).J("html5_huli_ssdai_use_playback_state")){var A=Wg7(this.TV,g.nm.prototype.getCurrentTime.call(this));this.duration!==A&&GSD(this.U,"duration",{dur:this.duration,ref:A});return this.duration}return Wg7(this.TV,g.nm.prototype.getCurrentTime.call(this))}; g.p.Vr=function(A){this.duration=A};g.eQ.prototype.zX=function(A,L){if(L===1)return this.N.get(A);if(L===2)return this.V.get(A);if(L===3)return this.W.get(A)}; g.eQ.prototype.j7=OD(68);g.eQ.prototype.Cg=function(A,L,B,f){B={c$:f,Lx:B};L?this.V.set(A,B):this.N.set(A,B)}; g.eQ.prototype.clearAll=function(){this.N.clear();this.V.clear();this.W.clear()}; sV6.prototype.clear=function(){this.W=[];this.V.clear();this.U.clear();this.N.clear()}; sV6.prototype.Yy=function(A){var L=A.cpn;A=A.XA;if(L&&(L=this.V.get(L))||A&&(L=(this.D?this.V:this.U).get(A)))return L}; g.G(g.nb,g.Y);g.p=g.nb.prototype;g.p.onCueRangeEnter=function(A){var L=A.getId();this.Xr({oncueEnter:1,cpn:L,start:A.start,end:A.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Fb()||0).toFixed(3)});var B=this.N.Yy({cpn:L});this.Xr({enterAdCueRange:1});var f=this.xJ||this.GK().cpn,K;f=(K=this.N.Yy({cpn:f}))!=null?K:this.GK();B&&(K=this.playback.getCurrentTime(),B.startTimeSecs=A.start/1E3,B={bx:f,lx:B,kT:K},N4k(this,L,A.start/1E3,K),Bu(this,B));this.Ex=!1}; g.p.uf=function(A,L,B){if(A&&L)if((this.app.mD().U[A]||null)===null){var f;this.Xr({nocpn:A,active:(f=this.app.mD().N)==null?void 0:f.t_()})}else{this.Ex=B!=null?B:!1;var K;B=((K=this.app.mD().N)==null?void 0:K.t_())||this.playback.t_();var V;K=(V=this.N.Yy({cpn:B}))!=null?V:this.GK();var J;V=(J=this.N.Yy({cpn:A}))!=null?J:this.GK();V.startTimeSecs=L;V.playerType===2&&(V.n5=V.n5!=null?Math.min(V.n5,L):L);J=this.playback.getCurrentTime();N4k(this,B,L,J);Bu(this,{bx:K,lx:V,kT:J});if(this.playback.getVideoData().aA()&& A===this.playback.t_())if(L=this.jI.get(B)){var R;A=g.m((R=this.JF.get(L))!=null?R:[]);for(R=A.next();!R.done;R=A.next()){R=R.value;B=J=void 0;V=this.app.mD();B=B===void 0?"":B;if(K=V.U[R])V.N===K&&(V.N=null),V.D===K&&(V.D=null),R===((J=V.X.get(B))==null?void 0:J.t_())&&V.X.delete(B),delete V.U[R];this.Vj.delete(R);this.jI.delete(R)}this.JF.delete(L)}else this.Xr({no_abid:A})}}; g.p.D9=function(A,L){if(A===this.playback.t_())vd(this.app.mD(),this.playback,!1);else{var B=this.Vj.get(A);B?(A=!this.Ex,B.N=0,B.startTimeSecs=L,B.V=A===void 0?!0:A,B.W=!0,vd(this.app.mD(),B,!0)):this.Xr({nop_s:A})}}; g.p.onCueRangeExit=function(A){for(var L=this.playback.getCurrentTime()*1E3,B=A.getId(),f=g.m(this.W.values()),K=f.next();!K.done;K=f.next())if(K=K.value,K.getId()!==B&&L>=K.start&&L<=K.end)return;if(B=this.N.Yy({cpn:B}))L=this.playback.getCurrentTime(),f=this.GK(),f.startTimeSecs=A.end/1E3,B={bx:B,lx:f,kT:L},N4k(this,this.playback.t_(),A.end/1E3,L),Bu(this,B)}; g.p.GK=function(){return{cpn:this.playback.t_(),durationMs:0,UE:0,playerType:1,NQ:0,videoData:this.playback.getVideoData(),errorCount:0,L9:""}}; g.p.seekTo=function(A,L,B,f){A=A===void 0?0:A;L=L===void 0?{}:L;B=B===void 0?!1:B;f=f===void 0?null:f;oH(this,this.xJ);if(this.playback.getVideoData().aA()&&A<=this.wM)this.playback.pauseVideo(),this.wM=0,FJD(this,A);else if(this.Ex=this.yj=!0,B)l0k(this,A,L);else{B=this.app.e4();var K=B===this.wT?this.Nl:null;AZ(this,!1);this.Uv=A;this.mH=L;f!=null&&this.ql.start(f);B&&(this.Nl=K||B.getPlayerState(),B.hm(L),this.wT=B)}}; g.p.l1=function(){AZ(this,!1);eBw(this);np7(this);g.Y.prototype.l1.call(this)}; g.p.GM=function(A,L,B){if(B&&L){var f=this.pO.get(A);if(f){f.locations||(f.locations=new Map);var K=Number(L.split(";")[0]);B=new g.Fk(B);this.Xr({hdlredir:1,itag:L,seg:A,hostport:wy(21,B)});f.locations.set(K,B)}}}; g.p.j2=function(A,L,B,f,K,V){var J=Number(B.split(";")[0]),R=f===3;A=a0D(this,A,L,f,B,V);this.Xr({gdu:1,seg:L,itag:J,pb:""+!!A});if(!A)return LZ(this,L,R),null;A.locations||(A.locations=new Map);if(!A.locations.has(J)){var Z,N;V=(Z=A.videoData.getPlayerResponse())==null?void 0:(N=Z.streamingData)==null?void 0:N.adaptiveFormats;if(!V)return this.Xr({gdu:"noadpfmts",seg:L,itag:J}),LZ(this,L,R),null;Z=V.find(function(I){return I.itag===J}); if(!Z||!Z.url){var F=A.videoData.videoId;A=[];var D=g.m(V);for(f=D.next();!f.done;f=D.next())A.push(f.value.itag);this.Xr({gdu:"nofmt",seg:L,vid:F,itag:J,fullitag:B,itags:A.join(",")});LZ(this,L,R);return null}A.locations.set(J,new g.Fk(Z.url,!0))}V=A.locations.get(J);if(!V)return this.Xr({gdu:"nourl",seg:L,itag:J}),LZ(this,L,R),null;V=new cq(V);this.Pz&&(V.get("dvc")?this.Xr({dvc:V.get("dvc")||""}):V.set("dvc","webm"));(f=(D=this.zX(L-1,f,K))==null?void 0:D.c$)&&V.set("daistate",f);A.Xe&&L>=A.Xe&& V.set("skipsq",""+A.Xe);(D=this.playback.getVideoData().clientPlaybackNonce)&&V.set("cpn",D);D=[];A.L9&&(D=LJQ(this,A.L9),D.length>0&&V.set("acpns",D.join(",")));R||this.pO.set(L,A);R=null;R=V.get("aids");f=V.MQ();(f==null?void 0:f.length)>2048&&this.Xr({urltoolong:1,sq:L,itag:J,len:f.length});this.sx&&(f&&(V=A.cpn,K=A.L9,SK0(this,V,K),K&&!this.GZ.has(K)&&(V=V4C(this,V,K),Z=JoS(this,K),this.Xr({iofa:V}),this.Xr({noawnzd:Z-V}),this.Xr({acpns:D.join("."),aids:(F=R)==null?void 0:F.replace(/,/g,".")}), this.GZ.add(K))),this.Xr({gdu:"v",seg:L,itag:B,ast:A.UE.toFixed(3),alen:A.durationMs.toFixed(3),acpn:A.cpn,avid:A.videoData.videoId}));return f}; g.p.s5=function(A,L,B){B=B===void 0?!1:B;var f=ujL(this,A,L);if(f){this.jD&&(this.ZM=f);var K=void 0,V=f.L9;if(V){this.Xr({skipadonsq:L,sts:B,abid:V,acpn:f.cpn,avid:f.videoData.videoId});B=this.N.N.get(V);if(!B)return;B=g.m(B);for(V=B.next();!V.done;V=B.next())V=V.value,V.Xe=L,V.jf=A,V.UE>f.UE&&(K=V)}oH(this,this.xJ);this.V=f.cpn;oV7(this);this.api.J("html5_ssdai_enable_media_end_cue_range")&&this.playback.XS(this.V);A=this.playback.getCurrentTime();fVQ(this,f,K,A,A,!1,!0);Z_0(this)}}; g.p.hM=function(){for(var A=g.m(this.N.W),L=A.next();!L.done;L=A.next())L=L.value,L.Xe=NaN,L.jf=NaN;oV7(this);this.Xr({rsac:"resetSkipAd",sac:this.V});this.Ox.delete(this.V);this.V="";this.jD&&(this.ZM=void 0)}; g.p.zX=function(A,L,B){return this.Wn.zX(A,L,B)}; g.p.j7=OD(67); g.p.Cg=function(A,L,B,f,K,V,J,R){B.length>0&&this.Xr({onssinfo:1,sq:A,start:L.toFixed(3),cpns:B.join(","),ds:f.join(","),isVideo:V?1:0});if(this.jD&&this.ZM&&this.ZM.Xe&&B.length>0)for(var Z=g.m(B),N=Z.next();!N.done;N=Z.next())if(N=N.value,N===this.ZM.cpn){this.Po!==N&&(this.Xr({skiperror:1,sq:A,acpn:this.ZM.cpn,skipsq:this.ZM.Xe||0}),this.Po=N);break}R&&this.Wn.Cg(A,V,J,R);if(V){if(B.length&&f.length)for(this.Ox.has(B[0])&&this.Xr({skipfail:1,sq:A,acpn:B[0]}),A=L+this.Dk(),V=0;Vthis.U.xn+1){this.Xr({cueStChg:A.identifier,oldSt:this.U.xn.toFixed(3),newSt:A.startSecs.toFixed(3),abid:this.U.C2});if(this.U.C2){var B=A.startSecs-this.U.xn,f=this.N.N.get(this.U.C2);if(f){f=g.m(f);for(var K= f.next();!K.done;K=f.next())K=K.value,K.UE>=0&&(K.UE+=B*1E3,this.L.J("html5_ssdai_update_timeline_on_start_time_change")&&(K.NQ+=B*1E3),this.Xr({newApEt:K.UE,newApPrt:K.NQ,acpn:K.cpn}))}}this.U.xn=A.startSecs}L?this.Ys.add(A.identifier):this.Ys.has(A.identifier)&&this.Ys.delete(A.identifier);return L}; g.p.Tl=function(A){var L=this;if(this.L.J("html5_lifa_ignore_multiple_skips")&&this.qp)return this.Xr({ufs_ad:this.V,ufs_cur:this.xJ,ufs_cont:this.GK().cpn}),!1;oH(this,this.xJ);this.playback.pauseVideo();var B=this.playback.getCurrentTime(),f=this.N.Yy({cpn:this.xJ});if(!f)return this.Xr({skipFail:B}),!1;this.V=this.xJ;this.yj=!1;this.api.J("html5_ssdai_enable_media_end_cue_range")&&this.playback.XS(this.V);this.L2(f.L9);D7C(this,f,this.GK(),A);FJD(this,B,{seekSource:89,zZ:"lifa_skip"});this.qp|| (this.qp=this.events.Y(this.api,"progresssync",function(){Jq(L.api.zH(),(0,g.bc)(),"ad_to_video");L.qp&&(L.events.J$(L.qp),L.qp=null)})); return!0}; g.p.L2=function(A){if(this.playback.getVideoData().aA()){var L=this.N.N.get(A);if(L){L=g.m(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var f=this.W.get(B.cpn);this.W.delete(B.cpn);f&&this.playback.removeCueRange(f);TrD(this.N,B)}this.pO.clear();L=this.N;var K;B=(K=L.N.get(A))!=null?K:[];K=g.m(B);for(B=K.next();!B.done;B=K.next())TrD(L,B.value);L.N.delete(A);(A=this.zV.get(A))&&this.a8&&this.playback.gM(A)}}}; g.p.Xr=function(A,L){((L===void 0?0:L)||this.sx)&&this.playback.Hn("sdai",A)}; var $cL=0;g.G(IVD,g.Y);g.p=IVD.prototype;g.p.onCueRangeEnter=function(A){if(this.N===this.app.e4()){var L=this.D.get(A);L?GsE(this,L.target,L.rk,A):this.Ho("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:A.toString()})}else if(L=this.W.find(function(K){return K.BZ.rh===A})){var B=L.BZ,f=B.target; B=B.rk;f?GsE(this,f,B,A):gVk(this,L.NQ,B,A)}}; g.p.onQueuedVideoLoaded=function(){var A=this.X;JZ(this);if(A){if(!V$(this,A)){var L=this.app.e4();this.Ho("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:L==null?void 0:L.getVideoData().clientPlaybackNonce,ccpn:""+A.playerVars.cpn})}this.app.e4().addCueRange(A.BZ.rh)}}; g.p.seekTo=function(A,L,B,f){A=A===void 0?0:A;L=L===void 0?{}:L;f=f===void 0?null:f;if(B===void 0?0:B)d7L(this,A,L);else{B=this.app.e4()||null;var K=B===this.U?this.T:null;Sh(this,!1);this.Wn=A;this.yj=L;f!=null&&this.G.start(f);B&&(this.T=K||B.getPlayerState(),B.hm(),this.U=B)}}; g.p.qP=function(A){g.wk(A,128)&&b_0(this)}; g.p.isManifestless=function(){return ta(this.N.getVideoData())}; g.p.l1=function(){Sh(this,!1);ksC(this);g.Y.prototype.l1.call(this)}; g.p.Ho=function(A,L){this.N.Ho(new g.K$(A,L))}; var wAC=0;var T47="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_APPS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.G(RH,g.Y);RH.prototype.gV=function(A){if(A)return this.W.get(A)}; RH.prototype.l1=function(){this.N.removeAll();this.W.removeAll();g.Y.prototype.l1.call(this)};g.IiK=er(function(){var A=window.AudioContext||window.webkitAudioContext;try{return new A}catch(L){return L.name}});g.G(i_8,g.q);g.p=i_8.prototype;g.p.zf=function(){g.Z1(this.element,g.pf.apply(0,arguments))}; g.p.UN=function(){this.yK&&(this.yK.removeEventListener("focus",this.k_),g.$9(this.yK),this.yK=null)}; g.p.GC=function(){this.TL();var A=this.app.K();A.iD||this.zf("tag-pool-enabled");A.T&&this.zf(g.m6.HOUSE_BRAND);A.playerStyle==="gvn"&&(this.zf("ytp-gvn"),this.element.style.backgroundColor="transparent");A.zV&&(this.YL=g.fV("yt-dom-content-change",this.resize,this));this.Y(window,"orientationchange",this.resize,this);this.Y(window,"resize",this.resize,this)}; g.p.Yc=function(A){g.qM(this.app.K());this.Wp=!A;Z$(this)}; g.p.resize=function(){if(this.yK){var A=this.yN();if(!A.isEmpty()){this.app.rT.isFullscreen()&&ek()&&this.Vn.start();var L=!g.RC(A,this.PE.getSize()),B=co6(this);L&&(this.PE.width=A.width,this.PE.height=A.height);A=this.app.K();(B||L||this.fN||A.zV)&&this.app.rT.publish("resize",this.getPlayerSize())}}}; g.p.cF=function(A,L){this.updateVideoData(L)}; g.p.updateVideoData=function(A){if(this.yK){var L=this.app.K();ed&&(this.yK.setAttribute("x-webkit-airplay","allow"),A.title?this.yK.setAttribute("title",A.title):this.yK.removeAttribute("title"));this.yK.setAttribute("controlslist","nodownload");L.bA&&A.videoId?this.yK.poster=A.g1("default.jpg"):L.experiments.Qf().N.Iv(g7B)&&Kn()&&(vL!=null?vL:0)>=10&&(this.yK.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}L=g.XZ(A,"yt:bgcolor");this.Q8.style.backgroundColor= L?L:"";this.hc=F$(g.XZ(A,"yt:stretch"));this.fR=F$(g.XZ(A,"yt:crop"),!0);g.D1(this.element,"ytp-dni",A.OE);this.resize()}; g.p.setGlobalCrop=function(A){this.qk=F$(A,!0);this.resize()}; g.p.setCenterCrop=function(A){this.s2=A;this.resize()}; g.p.Fc=function(){}; g.p.getPlayerSize=function(){var A=this.app.K(),L=this.app.rT.isFullscreen(),B=A.externalFullscreen&&g.MM(A);if(L&&ek()&&!B)return new g.Sr(window.outerWidth,window.outerHeight);B=!isNaN(this.vN.width)&&!isNaN(this.vN.height);var f=this.app.K().J("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.K().J("web_watch_enable_fs_squeezeback_panels");if(L&&!B&&f)return new g.Sr(this.element.clientWidth,this.element.clientHeight);if(L||A.gy){if(window.matchMedia){A="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.tK&&this.tK.media===A||(this.tK=window.matchMedia(A));var K=this.tK&&this.tK.matches}if(K)return new g.Sr(window.innerWidth,window.innerHeight)}else if(B)return this.vN.clone();return new g.Sr(this.element.clientWidth,this.element.clientHeight)}; g.p.yN=function(){var A=this.app.K().J("enable_desktop_player_underlay"),L=this.getPlayerSize(),B=g.Am(this.app.K().experiments,"player_underlay_min_player_width");return A&&this.If&&L.width>B?(A=g.Am(this.app.K().experiments,"player_underlay_video_width_fraction"),new g.Sr(Math.min(L.height*this.getVideoAspectRatio(),L.width*A),Math.min(L.height,L.width*A/this.getVideoAspectRatio()))):L}; g.p.getVideoAspectRatio=function(){return isNaN(this.hc)?XAQ(this):this.hc}; g.p.getVideoContentRect=function(A){var L=this.yN();A=O_y(this,L,this.getVideoAspectRatio(),A);return new g.oR((L.width-A.width)/2,(L.height-A.height)/2,A.width,A.height)}; g.p.Nn=function(A){this.If=A;this.resize()}; g.p.kQ=function(){return this.v5}; g.p.onMutedAutoplayChange=function(){Z$(this)}; g.p.setInternalSize=function(A){g.RC(this.vN,A)||(this.vN=A,this.resize())}; g.p.l1=function(){this.YL&&g.KV(this.YL);this.UN();g.q.prototype.l1.call(this)};g.p=YKe.prototype;g.p.click=function(A,L){this.elements.has(A);this.N.has(A);var B=g.sF();B&&A.visualElement&&g.f1(B,A.visualElement,L)}; g.p.createClientVe=function(A,L,B,f){var K=this;f=f===void 0?!1:f;this.elements.has(A);this.elements.add(A);B=g8(B);A.visualElement=B;var V=g.sF(),J=g.r8();V&&J&&(g.h_("combine_ve_grafts")?I4(DD(),B,J):g.fg(g.Pb)(void 0,V,J,B));L.addOnDisposeCallback(function(){K.elements.has(A)&&K.destroyVe(A)}); f&&this.W.add(A)}; g.p.createServerVe=function(A,L,B){var f=this;B=B===void 0?!1:B;this.elements.has(A);this.elements.add(A);L.addOnDisposeCallback(function(){f.destroyVe(A)}); B&&this.W.add(A)}; g.p.destroyVe=function(A){this.elements.has(A);this.elements.delete(A);this.V.delete(A);this.N.delete(A);this.W.delete(A)}; g.p.qf=function(A,L){this.clientPlaybackNonce!==L&&(this.clientPlaybackNonce=L,dS(DD(),A),U7v(this))}; g.p.setTrackingParams=function(A,L){this.elements.has(A);L&&(A.visualElement=g.jB(L))}; g.p.xP=function(A,L,B){this.elements.has(A);L?this.N.add(A):this.N.delete(A);var f=g.sF(),K=A.visualElement;this.W.has(A)?f&&K&&(L?g.ou(f,[K]):g.BP(f,[K])):L&&!this.V.has(A)&&(f&&K&&g.L1(f,K,void 0,B),this.V.add(A))}; g.p.hasVe=function(A){return this.elements.has(A)};g.G(FM,g.Y);FM.prototype.sendMessage=function(A){if(this.sN){if(this.N&&this.N.byteLength===A)var L=this.N;else{L=new Uint8Array(A);for(var B=0;A>0;){var f=new Uint8Array(Math.min(A,65536));crypto.getRandomValues(f);L.set(f,B);A-=f.length;B+=f.length}this.N=L}L.length>0&&L[0]++;B=performance.now();this.sN.postMessage({mainEventSent:B,data:L})}}; FM.prototype.onMessage=function(A){if(!(this.U>=1E4)){var L=A.timeStamp,B=performance.now();A=A.data;var f=A.mainEventSent;this.Hn("worker",{t1:(A.workerEventCreated-performance.timeOrigin-f).toFixed(3),t2:(A.workerEventProcessed-performance.timeOrigin-f).toFixed(3),t3:(L-f).toFixed(3),t4:(B-f).toFixed(3),data:Uint8Array.BYTES_PER_ELEMENT*A.data.length});this.U++}}; FM.prototype.l1=function(){this.W!==void 0&&(clearInterval(this.W),this.W=void 0);var A;(A=this.sN)==null||A.terminate();this.N=this.sN=void 0;this.Hn("workerDtor",{});g.Y.prototype.l1.call(this)};g.G(g.D$,g.Y);g.D$.create=function(A,L,B,f){try{var K=typeof A==="string"?A:"player"+g.$W(A),V=bZ[K];if(V){try{V.dispose()}catch(R){g.mL(R)}bZ[K]=null}var J=new g.D$(A,L,B,f);J.addOnDisposeCallback(function(){bZ[K]=null;J.CA&&J.CA()}); return bZ[K]=J}catch(R){throw g.mL(R),(R&&R instanceof Error?R:Error(String(R))).stack;}}; g.p=g.D$.prototype;g.p.WI=function(){return this.visibility}; g.p.ij=function(A){var L=this.kP();if(A!==L){A.getVideoData().autonavState=L.getVideoData().autonavState;L.P4(this.KI,this);var B=L.getPlaybackRate();L.dispose();this.e$.ij(A);A.setPlaybackRate(B);A.tA(this.KI,this);zeL(this)}}; g.p.dh=function(){this.xp||(this.xp=g.av(xn(),qgD()));return this.xp}; g.p.UN=function(A){if(this.mediaElement){this.Pd&&(this.events.J$(this.Pd),this.Pd=null);g.$_(this.Bq);this.e4().UN(!0,!1,A);this.template.UN();try{this.J("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Hd()}catch(L){g.CE(L)}this.mediaElement=null}}; g.p.Ok=function(A,L,B){if(A!==this.e4()){var f=null;if(B===void 0||!B){B=this.e4();f=B.getPlayerState();ru(this.eD,3);Op(this,"cuerangesremoved",B.Ef());this.MP&&!A.isGapless()&&B.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();B=A.R0()&&B.R0();this.Rv.WZ("iv_s");B=B===void 0?!0:B;var K;if(K=this.Af){K=this.Af;var V=this.mediaElement;K=!!V&&V===K.mediaElement}K&&(this.UN(),IH(this));K=this.e4();K.UN(!B);K.P4(this.eQ,this);K.getPlayerType()!==1&&K.dispose();B=this.e$;B.W=B.G;Wd(B)}A.getPlayerType()=== 1&&this.ij(A);B=A.getPlayerType();K=this.e$.V[B]||null;A!==this.kP()&&A!==K&&(K==null||K.dispose(),this.e$.V[B]=A);this.e$.Ok(A);this.mediaElement&&A.setMediaElement(this.mediaElement);A.tA(this.eQ,this);A.AT()?kqQ(this,"setPresenting",!1):(this.cF("newdata",A,A.getVideoData()),f&&!g.tA(f,A.getPlayerState())&&this.HW(new g.dk(A.getPlayerState(),f)),L=L&&A.getPlayerType()===1,A.Im()&&!L&&this.cF("dataloaded",A,A.getVideoData()),(L=(L=A.getVideoData().W)&&L.video)&&this.rT.X3("onPlaybackQualityChange", L.quality),Op(this,"cuerangesadded",A.Ef()),L=A.getPlayerState(),g.x(L,2)?Kyy(this):g.x(L,8)?A.playVideo():A.r6()&&A.pauseVideo(),L=this.kP(),A.getPlayerType()===2&&(A.getVideoData().hS=L.getVideoData().clientPlaybackNonce),A.getPlayerType()!==2||this.yC()||(A=A.getVideoData(),L.C3(A.clientPlaybackNonce,A.ql||"",A.breakType||0,A.EQ,A.videoId||"")))}}; g.p.hh=function(){this.kP()!==this.e4()&&this.Ok(this.kP())}; g.p.mD=function(){return this.e$}; g.p.Yy=function(A){return this.e$.Yy(A)}; g.p.Jz=function(A){return this.e$.Jz(A)}; g.p.kP=function(){return this.e$.kP()}; g.p.e4=function(){return this.e$.e4()}; g.p.Jp=OD(40);g.p.LHT=function(){Gj(this)||this.dN(5)}; g.p.XoL=function(){if(!Gj(this)){H7e(this);var A=this.e4(),L=A.getVideoData();this.L.J("html5_allow_multiview_tile_preload")&&L.GZ&&A.seekTo(Infinity);L=A.getPlayerState();A.r6()?this.pauseVideo():L.isOrWillBePlaying()&&this.playVideo()}}; g.p.canPlayType=function(A){return RT(A)}; g.p.K=function(){return this.L}; g.p.getVideoData=function(){return this.e4().getVideoData()}; g.p.e2=function(){return this.e4().m$()}; g.p.df=function(){return this.kP().getVideoData()}; g.p.getVideoLoadedFraction=function(A){return g.pZ(this,{playerType:A}).getVideoLoadedFraction()}; g.p.Pn=function(){return this.template}; g.p.SI=function(){return this.eD}; g.p.zH=function(){return this.Rv}; g.p.SZ=function(A,L,B){g.pZ(this,{playerType:L===void 0?1:L}).E5(A,void 0,B)}; g.p.OZ=function(){var A=this.eD.OZ();this.rT.publish("videoStatsPingCreated",A);return A}; g.p.getVolume=function(){return Math.round(this.rT.getVolume())}; g.p.isMuted=function(){return this.rT.isMuted()}; g.p.MW=function(){if(this.kP()===this.e4()&&this.Jw)return this.Jw.postId}; g.p.C2M=function(){var A=this;this.J("use_rta_for_player")||(g.wY(this.L)?g.po(this.L,g.Aj(this.getVideoData())).then(function(L){eg(xn(),L);ay6(A.getVideoData(),A.L,A.dh())}):ay6(this.getVideoData(),this.L,this.dh()))}; g.p.HG=function(A){this.rT.publish("poTokenVideoBindingChange",A)}; g.p.Xg=function(A){this.rT.publish("d6de4videobindingchange",A)}; g.p.NK=function(){this.xZ&&this.xZ.NK()}; g.p.qC=function(A){this.xZ=A}; g.p.lE=function(A){if(A===1){this.Rv.tick("vr");var L=this.e4();L.tp();CuD(this.Rv,L.getVideoData(),sn0(this));Rd8(this.eD)}L=this.L;if(dd(L)&&L.G||g.xi(L)){var B;(((B=this.e4().getVideoData())==null?0:B.enableServerStitchedDai)||!this.yC())&&this.rT.X3("onAdStateChange",A)}}; g.p.setLoopVideo=function(A){var L=this.e4();L===this.kP()&&L.e5()!==A&&(L.setLoop(A),this.rT.Kr("onLoopChange",A))}; g.p.getLoopVideo=function(){return this.e4().e5()}; g.p.setLoopRange=function(A){var L=!1;!!this.Jw!==!!A?L=!0:this.Jw&&A&&(L=this.Jw.startTimeMs!==A.startTimeMs||this.Jw.endTimeMs!==A.endTimeMs||this.Jw.postId!==A.postId||this.Jw.type!==A.type);if(L){L=this.e4();pr(L.getVideoData())&&L.Hn("slr",{et:(A==null?void 0:A.endTimeMs)||-1});L=this.kP();L.Jf("applooprange");if(A){var B=new g.WR(A.startTimeMs,A.endTimeMs,{id:"looprange",namespace:"applooprange"});L.addCueRange(B)}else{this.df().clipConfig=void 0;var f;((B=this.Jw)==null?void 0:B.type)!=="repeatChapter"|| isNaN(Number((f=this.Jw)==null?void 0:f.loopCount))||(B={loopCount:String(this.Jw.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.pE("repeatChapterLoopEvent",B))}this.Jw=A;this.rT.Kr("onLoopRangeChange",A||void 0);this.kP()===this.e4()&&(this.JW(),L.Om())}}; g.p.getLoopRange=function(){return this.Jw}; g.p.JW=function(){var A="",L=this.kP();this.Jw?L!==this.e4()?A="pnea":Fyk(this,L.getCurrentTime())&&(this.Jw.loopCount=0,A="ilr"):A="nlr";var B=this.e4();if(pr(B.getVideoData()))if(this.J("html5_gapless_log_loop_range_info")){var f,K;B.Hn("slrre",{rej:A,ct:L.getCurrentTime(),lst:(f=this.Jw)==null?void 0:f.startTimeMs,let:(K=this.Jw)==null?void 0:K.endTimeMs})}else B.Hn("slrre",{});A||dkw(this)}; g.p.setPlaybackRate=function(A,L){if(!isNaN(A)){A=oBy(this,A);var B=this.kP();B.getPlaybackRate()!==A&&(B.setPlaybackRate(A),L&&!this.L.U&&g.OS("yt-player-playback-rate",A),this.rT.X3("onPlaybackRateChange",A))}}; g.p.getCurrentTime=function(A,L){L=L===void 0?!0:L;var B=this.e$.VN;if(B)return B.getCurrentTime();A=(B=A===2&&this.getVideoData().enableServerStitchedDai)?this.e4():g.pZ(this,{playerType:A});return B&&this.QG?(B=this.e$.D)?B.getCurrentTime(L):A.getCurrentTime():L?(L=jh(this,A),mh(this,L.getCurrentTime(),L)):A.getCurrentTime()}; g.p.rQ=function(){var A=g.pZ(this,{playerType:void 0});A=jh(this,A);return mh(this,A.rQ(),A)}; g.p.getDuration=function(A,L){L=L===void 0?!0:L;var B=this.e$.VN;if(B)return B.getDuration();B=this.getVideoData();var f=A===2&&B.enableServerStitchedDai;var K=f?this.e4():g.pZ(this,{playerType:A});if(B.hasProgressBarBoundaries()&&!f){var V,J=Number((V=B.progressBarStartPosition)==null?void 0:V.utcTimeMillis),R;V=Number((R=B.progressBarEndPosition)==null?void 0:R.utcTimeMillis);if(!isNaN(J)&&!isNaN(V))return(V-J)/1E3}if(pr(B)&&!B.isLivePlayback)return Tj(this,A);if(L)return A=y$(this,K),mh(this,A.getDuration(), A);if(f&&this.QG){if(this.J("html5_huli_ssdai_use_playback_state"))return A=this.e$,A=A.N===A.D?A.N:null,(A==null?void 0:A.getDuration())||0;var Z;return((Z=this.e$.D)==null?void 0:Z.getDuration())||0}return K.getDuration()}; g.p.wX=function(A){var L=g.pZ(this,{playerType:A});return this.yC(L)?(L=y$(this,L),L.wX()-L.getCurrentTime()+this.getCurrentTime(A)):L.wX()}; g.p.finishSegmentByCpn=function(){return[]}; g.p.GC=function(){this.template.GC();var A=this.rT;A.state.element=this.template.element;var L=A.state.element,B;for(B in A.state.N)A.state.N.hasOwnProperty(B)&&(L[B]=A.state.N[B]);(A=dWQ(this.template.element))&&this.events.Y(this.template,A,this.onFullscreenChange)}; g.p.getDebugText=function(A){var L=this.kP().Ov(A),B=this.e4();if(B!==this.kP()){B=B.Ov(A);for(var f=g.m(Object.keys(B)),K=f.next();!K.done;K=f.next())K=K.value,L["ad"+K]=B[K];if(A){B=L;f={};if(K=yl(document,"movie_player"))f.bounds=K.getBoundingClientRect(),f["class"]=K.className;K={};var V=g.sA("video-ads");V?(mkk(V,K),K.html=V.outerHTML):K.missing=1;V={};var J=g.sA("videoAdUiSkipContainer"),R=g.sA("ytp-ad-skip-button-container"),Z=g.sA("ytp-skip-ad-button"),N=J||R||Z;N?(mkk(N,V),V.ima=J?1:0,V.bulleit= R?1:0,V.component=Z?1:0):V.missing=1;f=JSON.stringify({player:f,videoAds:K,skipButton:V});B.ad_skipBtnDbgInfo=f}}A&&this.mediaElement&&(L["0sz"]=""+(+Zr(this.mediaElement.getSize())===0),L.op=this.mediaElement.AY("opacity"),B=this.mediaElement.Gf().y+this.mediaElement.getSize().height,L.yof=""+(+B<=0),L.dis=this.mediaElement.AY("display"));A&&((A=(0,g.Ei)())&&(L.gpu=A),(A=this.L.playerStyle)&&(L.ps=A),this.L.Ex&&(L.webview=1),(A=this.webPlayerContextConfig.jsUrl)&&(L.js=A));L.debug_playbackQuality= this.rT.getPlaybackQuality(1);L.debug_date=(new Date).toString();L.origin=window.origin;L.timestamp=Date.now();delete L.uga;delete L.q;return JSON.stringify(L,null,2)}; g.p.getFeedbackProductData=function(){var A={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.K().experiments.experimentIds.join(", "),player_release:S[5]},L=this.getPlayerStateObject().nh;L&&(A.player_error_code=L.errorCode,A.player_error_details=JSON.stringify(L.errorDetail));return A}; g.p.getPresentingPlayerType=function(A){if(this.appState===1)return 1;if(Gj(this))return 3;var L,B,f;return(A&&this.L.Qf().N.Iv(IgS)?(f=(L=this.e$.N)==null?void 0:L.isAd())!=null&&f:(B=this.QG)==null?0:vpe(B,this.getCurrentTime()))?2:this.e4().getPlayerType()}; g.p.wG=function(){return!1}; g.p.getPlayerStateObject=function(A){var L=this.e$.VN;return L?L.getPlayerState():g.pZ(this,{playerType:A}).getPlayerState()}; g.p.getAppState=function(){return this.appState}; g.p.CrL=function(A){switch(A.type){case "loadedmetadata":this.wS.start();A=g.m(this.mY);for(var L=A.next();!L.done;L=A.next())L=L.value,rMS(this,L.id,L.CWF,L.f2j,void 0,!1);this.mY=[];break;case "loadstart":this.Rv.WZ("gv");break;case "progress":case "timeupdate":LW(A.target.YJ())>=2&&this.Rv.WZ("l2s");break;case "playing":g.F1&&this.wS.start();if(g.wY(this.L))A=!1;else{L=g.Yn(this.SI());A=this.mediaElement.AY("display")==="none"||Zr(this.mediaElement.getSize())===0;var B=Nz(this.template),f=this.e4().getVideoData(), K=g.cH(this.L);f=y7(f);L=!B||L||K||f||this.L.Ox;A=A&&!L}A&&(A=this.e4(),A.gG(),this.getVideoData().Cr||(this.getVideoData().Cr=1,this.WW(),A.playVideo()))}}; g.p.S9L=function(A){this.rT.Wo("onLoadProgress",A)}; g.p.hVr=function(){this.rT.publish("playbackstalledatstart")}; g.p.rf1=function(A,L){this.rT.publish("sabrCaptionsDataLoaded",A,L)}; g.p.MEx=function(A){this.e4().T8(A)}; g.p.DUF=function(A){this.e4().Jm(A)}; g.p.xQx=function(A){A=jh(this,this.e4());A=mh(this,A.getCurrentTime(),A);this.rT.X3("onVideoProgress",A);this.L.a7&&yMv(this,this.visibility.nV())&&this.pauseVideo()}; g.p.F1x=function(){this.rT.X3("onAutoplayBlocked");var A=this.e4().getVideoData();A&&(A.e0=!0);g.MM(this.L)&&(A={autoplayBrowserPolicy:QG(),autoplayIntended:CP(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.pE("embedsAutoplayStatusChanged",A))}; g.p.Y94=function(){this.rT.publish("progresssync")}; g.p.j8s=function(){this.rT.Wo("onPlaybackPauseAtStart")}; g.p.NfF=function(A){if(this.getPresentingPlayerType()===1){g.wk(A,1)&&!g.x(A.state,64)&&this.df().isLivePlayback&&this.kP().isAtLiveHead()&&this.rT.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.wk(A,2)){if(this.Jw&&this.Jw.endTimeMs>=(this.getDuration()-1)*1E3){dkw(this);return}Kyy(this)}if(g.x(A.state,128)){var L=A.state;this.cancelPlayback(5);L=L.nh;JSON.stringify({errorData:L,debugInfo:this.getDebugText(!0)});this.rT.X3("onError",NSQ(L.errorCode));this.rT.Wo("onDetailedError",{errorCode:L.errorCode, errorDetail:L.errorDetail,message:L.errorMessage,messageKey:L.N_,cpn:L.cpn});(0,g.bc)()-this.L.Bk>6048E5&&this.rT.Wo("onReloadRequired")}L={};if(A.state.isPlaying()&&!A.state.isBuffering()&&!iJ("pbresume","ad_to_video")&&iJ("_start","ad_to_video")){var B=this.getVideoData();L.clientPlaybackNonce=B.clientPlaybackNonce;B.videoId&&(L.videoId=B.videoId);g.Qm(L,"ad_to_video");mF("pbresume",void 0,"ad_to_video");Rd8(this.eD)}this.rT.publish("applicationplayerstatechange",A)}}; g.p.HW=function(A){this.e$.VN||this.rT.publish("presentingplayerstatechange",A)}; g.p.qP=function(A){wc(this,Tu(A.state));g.x(A.state,1024)&&this.rT.isMutedByMutedAutoplay()&&(tZ(this,{muted:!1,volume:this.CV.volume},!1),ky(this,!1))}; g.p.onPlayerRequestSent=function(A){this.rT.Kr("onPlayerRequestSent",A)}; g.p.Be=function(A,L){A==="newdata"&&zeL(this);this.rT.publish("applicationvideodatachange",A,L)}; g.p.tDF=function(A,L){H7e(this);this.rT.Wo("onPlaybackAudioChange",this.rT.getAudioTrack().ri.name);this.rT.publish("internalaudioformatchange",this.rT.getAudioTrack().ri.id,L)}; g.p.s8T=function(A){var L=this.e4().getVideoData();A===L&&this.rT.X3("onPlaybackQualityChange",A.W.video.quality)}; g.p.jP=function(){var A=this.e$.V[2]||null;A&&(A=A.getVideoData(),this.e4().Hn("ssdai",{cleanaply:1,acpn:A==null?void 0:A.clientPlaybackNonce,avid:A.videoId,isDai:this.df().enableServerStitchedDai?1:0}),delete this.e$.V[2])}; g.p.fjD=function(A,L){this.cF(A,this.e4(),L)}; g.p.cF=function(A,L,B){this.L.hw()&&L.Hn("vdc",{type:A,vid:B.videoId||"",cpn:B.clientPlaybackNonce||""});L===this.kP()&&(this.L.cI=B.oauthToken);L===this.kP()&&(this.getVideoData().enableServerStitchedDai&&!this.QG?(this.kP().Hn("sdai",{initSstm:1}),this.QG=new g.nb(this.rT,this.L,this.kP(),this)):!this.getVideoData().enableServerStitchedDai&&this.QG&&(this.QG.dispose(),this.QG=null));if(A==="newdata")ru(this.eD,2),this.rT.publish("videoplayerreset",L);else{if(!this.mediaElement)return;if(A==="dataloaded")if(this.kP()=== this.e4()){if(aj(B.tF,B.P0),!this.kP().getPlayerState().isError()){var f=Gj(this);this.df().isLoaded();f&&this.dN(6);Sov(this);Jq6(this.eD)||JM7(this)}}else Sov(this);if(L.getPlayerType()===1&&(this.L.JF&&lg8(this),this.getVideoData().isLivePlayback&&!this.L.mM&&this.Lw("html5.unsupportedlive",2,"DEVICE_FALLBACK"),B.isLoaded()&&((yny(B)||this.getVideoData().w$)&&this.rT.publish("legacyadtrackingpingchange",this.getVideoData()),B.hasProgressBarBoundaries()))){var K;f=Number((K=this.getVideoData().progressBarEndPosition)== null?void 0:K.utcTimeMillis)/1E3;!isNaN(f)&&(K=this.wX())&&(K-=this.getCurrentTime(),f=(f-K)*1E3,K=this.L7.progressEndBoundary,(K==null?void 0:K.start)!==f&&(K&&this.fS([K]),f=new g.WR(f,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.kP().addCueRange(f),this.L7.progressEndBoundary=f))}this.rT.publish("videodatachange",A,B,L.getPlayerType())}this.rT.X3("onVideoDataChange",{type:A,playertype:L.getPlayerType()});this.JW();(A=B.hG)?this.yb.qf(A,B.clientPlaybackNonce): U7v(this.yb)}; g.p.MG=function(){sp(this,null);this.rT.Wo("onPlaylistUpdate")}; g.p.ob1=function(A){delete this.L7[A.getId()];this.kP().removeCueRange(A);a:{A=this.getVideoData();var L,B,f,K,V,J,R,Z,N,F,D=((L=A.Vj)==null?void 0:(B=L.contents)==null?void 0:(f=B.singleColumnWatchNextResults)==null?void 0:(K=f.autoplay)==null?void 0:(V=K.autoplay)==null?void 0:V.sets)||((J=A.Vj)==null?void 0:(R=J.contents)==null?void 0:(Z=R.twoColumnWatchNextResults)==null?void 0:(N=Z.autoplay)==null?void 0:(F=N.autoplay)==null?void 0:F.sets);if(D)for(L=g.m(D),B=L.next();!B.done;B=L.next())if(B= B.value,K=f=void 0,B=B.autoplayVideo||((f=B.autoplayVideoRenderer)==null?void 0:(K=f.autoplayEndpointRenderer)==null?void 0:K.endpoint),f=g.y(B,g.FZ),V=K=void 0,B!=null&&((K=f)==null?void 0:K.videoId)===A.videoId&&((V=f)==null?0:V.continuePlayback)){A=B;break a}A=null}(L=g.y(A,g.FZ))&&this.rT.Kr("onPlayVideo",{sessionData:{autonav:"1",itct:A==null?void 0:A.clickTrackingParams},videoId:L.videoId,watchEndpoint:L})}; g.p.dN=function(A){A!==this.appState&&(A===2&&this.getPresentingPlayerType()===1&&(wc(this,-1),wc(this,5)),this.appState=A,this.rT.publish("appstatechange",A))}; g.p.Lw=function(A,L,B,f,K){this.kP().O9(A,L,B,f,K)}; g.p.y9=OD(9);g.p.isAtLiveHead=function(A,L){L=L===void 0?!1:L;var B=g.pZ(this,{playerType:A});A=y$(this,B);B=jh(this,B);return A!==B?A.isAtLiveHead(mh(this,B.getCurrentTime(),B),!0):A.isAtLiveHead(void 0,L)}; g.p.pX=function(){var A=g.pZ(this,{playerType:void 0});return y$(this,A).pX()}; g.p.seekTo=function(A,L,B,f,K,V){L=L!==!1;f=g.pZ(this,{playerType:f});this.appState===2&&hZ(this);if(this.yC(f))Q$(this)?this.QG.seekTo(A,{seekSource:K},L,B):this.TV.seekTo(A,{seekSource:K},L,B);else{this.J("html5_sabr_csdai_seek_log")||(V="");var J;f.seekTo(A,{aN:!L,OR:B,zZ:"application"+((J=V)!=null?J:""),seekSource:K})}}; g.p.seekBy=function(A,L,B,f){this.seekTo(this.getCurrentTime()+A,L,B,f,void 0,"_by")}; g.p.nb1=function(){this.rT.X3("SEEK_COMPLETE")}; g.p.VDF=function(){this.rT.Kr("onAbnormalityDetected")}; g.p.Af4=function(A){this.rT.Kr("onSnackbarMessage",A)}; g.p.zVp=function(A){var L=this.e4(),B=L.getVideoData();if(this.appState===1||this.appState===2)B.startSeconds=A;this.appState===2?g.x(L.getPlayerState(),512)||hZ(this):this.rT.X3("SEEK_TO",A)}; g.p.mQ4=function(){this.rT.publish("airplayactivechange")}; g.p.beT=function(){this.rT.publish("airplayavailabilitychange")}; g.p.showAirplayPicker=function(){this.e4().m2()}; g.p.UQp=function(){this.rT.publish("beginseeking")}; g.p.Zex=function(){this.rT.publish("endseeking")}; g.p.getStoryboardFormat=function(A){A=g.pZ(this,{playerType:A});return y$(this,A).getStoryboardFormat()}; g.p.rB=function(A){A=g.pZ(this,{playerType:A});return y$(this,A).getVideoData().rB()}; g.p.yC=function(A){A=(A||this.e4()).getVideoData();if(Q$(this))A=A===this.QG.playback.getVideoData();else a:{var L=this.TV;if(A===L.N.getVideoData()&&L.W.length)A=!0;else{L=g.m(L.W);for(var B=L.next();!B.done;B=L.next())if(A.XA===B.value.XA){A=!0;break a}A=!1}}return A}; g.p.Nt=function(A,L,B,f,K,V,J,R){var Z=Q$(this);this.e4().Hn("appattl",{sstm:this.QG?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:Z});Z?(B=OF0(this.QG,A,L,B,f,K,V,J,R),A=(B==null?void 0:B.XA)||"",(this.J("html5_ssdai_new_decoration_logic")||this.kP().getVideoData().Is)&&this.kP().cg(R||"",L,(B==null?void 0:B.clientPlaybackNonce)||"")):A=jeL(this.TV,A,B,f,K,V);return A}; g.p.A7=function(A,L,B,f,K,V,J,R){if(Q$(this)){var Z;(Z=this.QG)==null||OF0(Z,A,L,B,f,K,V,J,R)}}; g.p.V_=function(A){(this.J("html5_ssdai_new_decoration_logic")||this.kP().getVideoData().Is)&&this.kP().cg(A,"","");var L;(L=this.QG)==null||L.V_(A)}; g.p.Qc=function(A,L){A=A===void 0?-1:A;L=L===void 0?Infinity:L;Q$(this)||ksC(this.TV,A,L)}; g.p.i4=function(A,L,B){if(Q$(this)){var f=this.QG,K=f.N.Yy({XA:A});K?(B===void 0&&(B=K.NQ),xc8(f,K,L,B)):f.M4("Invalid_timelinePlaybackId_"+A+"_specified")}else{f=this.TV;K=null;for(var V=g.m(f.W),J=V.next();!J.done;J=V.next())if(J=J.value,J.XA===A){K=J;break}K?(B===void 0&&(B=K.NQ),t4Q(f,K,L,B)):fZ(f,"InvalidTimelinePlaybackId timelinePlaybackId="+A)}}; g.p.enqueueVideoByPlayerVars=function(A,L,B,f){B=B===void 0?Infinity:B;f=f===void 0?"":f;this.yC();A=new g.Kr(this.L,A);f&&(A.XA=f);pxC(this,A,L,B)}; g.p.queueNextVideo=function(A,L,B,f,K){B=B===void 0?NaN:B;A=this.preloadVideoByPlayerVars(A,L===void 0?1:L,B,f===void 0?"":f,K===void 0?"":K);L=this.e4();A&&(this.J("html5_check_queue_on_data_loaded")?this.K().supportsGaplessShorts()&&L.getVideoData().X&&(B=this.T0,f=this.MP.D,B.U!==A&&(B.W=L,B.U=A,B.V=1,B.N=A.getVideoData(),B.D=f,B.N.isLoaded()?B.T():B.N.subscribe("dataloaded",B.T,B))):(B=this.L.experiments.Qf().N.Iv(QA),B=Ge7(L,A,this.MP.D,B),B!=null?(L.Hn("sgap",B),L.getVideoData().X&&L.tT(!1)): (A=A.getVideoData(),L=this.T0,L.N!==A&&(L.N=A,L.V=1,A.isLoaded()?L.X():L.N.subscribe("dataloaded",L.X,L)))))}; g.p.qm=function(A,L,B,f){var K=this;B=B===void 0?0:B;f=f===void 0?0:f;y$(this,this.e4()).rS();Co1(this.MP,A,L,B,f).then(function(){K.rT.Wo("onQueuedVideoLoaded")},function(){})}; g.p.qV=function(){return this.MP.qV()}; g.p.OS=function(A){var L=this.MP.N;return L?L.Nf(A):!1}; g.p.clearQueue=function(A,L){this.MP.clearQueue(A===void 0?!1:A,L===void 0?!1:L)}; g.p.loadVideoByPlayerVars=function(A,L,B,f,K,V){L=L===void 0?1:L;var J=this.kP();if(L===2&&this.df().enableServerStitchedDai&&J&&!J.Hu())return J.Hn("lvonss",{vid:(A==null?void 0:A.videoId)||"",ptype:L}),!1;var R=!1;J=new g.Kr(this.L,A);J.dB=V;g.Ng(this.L)&&!J.BV&&Sf(this.Rv);var Z;V=this.Rv;var N=(Z=J.yj)!=null?Z:"";V.timerName=N;this.Rv.Nq("pl_i");this.J("web_player_early_cpn")&&J.clientPlaybackNonce&&this.Rv.infoGel({clientPlaybackNonce:J.clientPlaybackNonce});ep6(J).supportsVp9Encoding===!1&& this.e4().Hn("noVp9enc",{});if(this.K().supportsGaplessShorts()){Z=cN8(this.MP,J,L);if(Z==null){wc(this,-1);var F;((F=this.MP.N)==null?0:F.getVideoData().isAd())||CZ(this);A=this.MP;A.app.K().J("html5_gapless_new_slr")?lF(A.app,"gaplessshortslooprange"):A.app.setLoopRange(null);A.app.getVideoData().iA=!0;var D;(D=A.N)==null||D.Zh();var I;(I=A.N)==null||I.dO();B={zZ:"gapless_to_next_video",seekSource:60,Sf:A.D.N};f=Euw(A);if(A.D.N){var d;K=((d=A.V)==null?void 0:lE(d))||{};d=K.bU;K=K.oZ;K!=null&&d!= null&&(f=K-d+.001)}var w;(w=A.app.e4())==null||w.seekTo(f,B);if(!A.app.getPlayerStateObject(L).isPlaying()){var r;(r=A.app.e4())==null||r.playVideo(!0)}OIe(A,f);var h;(h=A.app.e4())==null||h.qv();A.G();return!0}w=this.J("html5_shorts_gapless_preload_fallback");r=this.MP.N;w&&r&&!r.TL()&&(h=r.getVideoData(),this.e$.T.set(iF(L,h),r,3600));this.MP.clearQueue(w);this.e4().Hn("sgap",{f:Z})}if(K){for(;J.LX.length&&J.LX[0].isExpired();)J.LX.shift();w=J.LX.length-1;R=w>0&&K.W(J.LX[w])&&K.W(J.LX[w-1]);J.LX.push(K)}B|| (A&&Xee(A)?(Ko(this.L)&&!this.iY&&(A.fetch=0),sp(this,A)):this.playlist&&sp(this,null),A&&(this.iY=Sw(!1,A.external_list)));this.rT.publish("loadvideo");w=this.Ku(J,L,f);R&&this.Lw("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+J.LX.join()).replace(/[;:,]/g,"_"));return w}; g.p.preloadVideoByPlayerVars=function(A,L,B,f,K){L=L===void 0?1:L;B=B===void 0?NaN:B;K=K===void 0?"":K;f=L;var V=K,J=DG(A);if(f=this.e$.T.get(f+"_"+J+"_"+V+"_"+ +(A.autonav==="1"||A.autonav===!0)+ +(A.autoplay==="1"||A.autoplay===!0||A.autoplay===1))||null)return f;A=new g.Kr(this.L,A);K&&(A.XA=K);K=iF(L,A);f=this.e4();V=iF(f.getPlayerType(),f.getVideoData());K===V?(f.dK(!0),A.dispose(),B=null):(A.LD=!0,A.bA=!0,f=dc(this,L,A,!0),(L!==1||!Ro(this.L)||this.L.J("html5_allow_multiview_tile_preload")&& A.GZ)&&f.dK(!0),this.e$.T.set(K,f,B||3600),B=f);return B}; g.p.setMinimized=function(A){this.visibility.setMinimized(A);(A=Dp8(this.eD))&&(this.isMinimized()?A.load():A.unload());this.rT.publish("minimized")}; g.p.setInline=function(A){this.visibility.setInline(A)}; g.p.setInlinePreview=function(A){this.visibility.setInline(A)}; g.p.Aa=function(A){jny(this,A)||this.visibility.Aa(A)}; g.p.setSqueezeback=function(A){this.visibility.setSqueezeback(A)}; g.p.E2=function(){var A,L=(A=this.mediaElement)==null?void 0:A.Zg();L&&(this.L.Mb&&LP(u4(function(){return document.exitFullscreen()}),function(){}),LP(u4(function(){return H9(L)}),function(){}))}; g.p.S_n=function(){this.mediaElement.Zg();this.mediaElement.Zg().webkitPresentationMode==="picture-in-picture"?this.Aa(!0):this.Aa(!1)}; g.p.togglePictureInPicture=function(){this.e4().togglePictureInPicture()}; g.p.Ku=function(A,L,B){L=L===void 0?1:L;iJ("_start",this.Rv.timerName)||g.fg(H8)(void 0,this.Rv.timerName);var f=!1,K=N7v(this,L,A,!1);K?(f=!0,A.dispose(),K.getVideoData().GZ&&K.Hn("app_lv",{pdl:K.Im()})):(K=dc(this,L,A,!0,B),(this.J("html5_onesie")||this.J("html5_load_before_stop"))&&K.pn()&&K.dK(),this.wS.stop(),L===1&&L!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,L),this.Ok(K));K===this.kP()&&(this.L.cI=A.oauthToken);if(!K.pn())return!1;if(K===this.kP())return this.dN(1), A=hZ(this),f&&this.J("html5_player_preload_ad_fix")&&K.getPlayerType()===1&&K.Im()&&this.cF("dataloaded",K,K.getVideoData()),A;K.Am();return!0}; g.p.cueVideoByPlayerVars=function(A,L){var B=this;L=L===void 0?1:L;var f=this.kP();if(this.df().enableServerStitchedDai&&f&&!f.Hu()&&A&&Object.keys(A).length>0)f.Hn("qvonss",{vid:(A==null?void 0:A.videoId)||"",ptype:L});else if(A&&Xee(A))if(this.zk=!0,sp(this,A),(A=g.R_(this.playlist))&&A.gX())XM(this,A,L);else this.playlist.onReady(function(){Hu(B)}); else{L||(L=this.getPresentingPlayerType());L===1&&this.MG();f=new g.Kr(this.L,A);var K=g.MM(this.L)&&!this.L.qp&&L===1&&!f.isAd()&&!f.ql;this.rT.publish("cuevideo",L);K?(this.e4().getVideoData().loading=!0,WS0(f,A?A:{}).then(function(V){XM(B,V,L)}),f.dispose()):XM(this,f,L)}}; g.p.Dl=function(A,L,B,f,K,V,J){if(!A&&!B)throw Error("Playback source is invalid");if(UR(this.L)||g.dY(this.L))return L=L||{},L.lact=rT(),L.vis=this.rT.getVisibilityState(),this.rT.Kr("onPlayVideo",{videoId:A,watchEndpoint:V,sessionData:L,listId:B}),!1;il1(this.Rv);this.Rv.reset();A={video_id:A};f&&(A.autoplay="1");f&&(A.autonav="1");V&&(A.player_params=V.playerParams);J&&(A.oauth_token=J);B?(A.list=B,this.loadPlaylist(A)):this.loadVideoByPlayerVars(A,1);return!0}; g.p.cuePlaylist=function(A,L,B,f){this.zk=!0;gBy(this,A,L,B,f)}; g.p.loadPlaylist=function(A,L,B,f){this.zk=!1;gBy(this,A,L,B,f)}; g.p.Ow=function(){return this.rT.isMutedByMutedAutoplay()?!1:this.e$.VN?!0:!(!this.playlist||!this.playlist.hasNext())}; g.p.yu=OD(7); g.p.nextVideo=function(A,L){var B=g.DQ(this.kP().getVideoData());g.vh(this.rT)&&B?this.Dl(B.videoId,L?B.xq:B.sessionData,B.playlistId,L,void 0,B.MS||void 0):this.iY?this.rT.Wo("onPlaylistNext"):this.getPresentingPlayerType()===3?EU(this.eD).nextVideo():!this.playlist||Ko(this.L)&&!this.rT.isFullscreen()||(this.playlist.hasNext(A)&&cke(this.playlist,OlQ(this.playlist)),this.playlist.loaded?(A=L&&this.L.J("html5_player_autonav_logging"),L&&this.rT.publish("playlistautonextvideo"),this.Ku(g.R_(this.playlist,void 0, L,A),1)):this.zk=!1)}; g.p.previousVideo=function(A){this.iY?this.rT.Wo("onPlaylistPrevious"):this.getPresentingPlayerType()===3?EU(this.eD).oS():!this.playlist||Ko(this.L)&&!this.rT.isFullscreen()||(this.playlist.hasPrevious(A)&&cke(this.playlist,E88(this.playlist)),this.playlist.loaded?this.Ku(g.R_(this.playlist),1):this.zk=!1)}; g.p.playVideoAt=function(A){this.iY?this.rT.Wo("onPlaylistIndex",A):this.playlist&&(this.playlist.loaded?this.Ku(g.R_(this.playlist,A),1):this.zk=!1,cke(this.playlist,A))}; g.p.getPlaylist=function(){return this.playlist}; g.p.VD=OD(15);g.p.yx=function(A){this.mY=g.Mi(this.mY,function(V){return V.id!==A}); for(var L=this.kP(),B=L.Ef(),f=0;f0&&(Z=Math.floor(N/1E3))}Z=L?L.Dj:Z;var F={AD_BLOCK:this.N++,AD_BREAK_LENGTH:Z,AUTONAV_STATE:cu(this.player.K()),CA_TYPE:"image",CPN:R.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.pX()*1E3,LACT:rT(),LIVE_INDEX:L?this.V++:1,LIVE_TARGETING_CONTEXT:L&&L.context?L.context:"",MIDROLL_POS:V? Math.round(V.start/1E3):0,MIDROLL_POS_MS:V?Math.round(V.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Pn().yN().height,P_W:this.player.Pn().yN().width,YT_REMOTE:K?K.join(","):""},D=wW(IM);Object.keys(D).forEach(function(d){D[d]!=null&&(F[d.toUpperCase()]=D[d].toString())}); B!==""&&(F.BISCOTTI_ID=B);B={};dW(A)&&(B.sts="20424",(L=this.player.K().forcedExperiments)&&(B.forced_experiments=L));var I=Ns(g.iN(A,F),B);return I.split("?").length!==2?$A(Error("Invalid AdBreakInfo URL")):g.po(this.player.K(),R==null?void 0:R.oauthToken).then(function(d){if(d&&Dp()){var w=xn();eg(w,d)}d=f.player.dh(w);w=ag7(f,I,F,R.isMdxPlayback,J);return g.MD(d,w,"/youtubei/v1/player/ad_break").then(function(r){return r})})}; Mz.prototype.reset=function(){this.V=this.N=1};g.G(AHv,Mz); AHv.prototype.W=function(A,L,B){L=L===void 0?{}:L;var f=L.Kn;var K=L.rh;var V=L.cueProcessedMs;B=B===void 0?"":B;L=this.N;this.N++;var J=this.player.K().J("h5_disable_macro_substitution_in_get_ad_break")?A:L3L(this,A,{Kn:f,rh:K,cueProcessedMs:V},B,L);if(J.split("?").length!==2)return Math.random()<.1&&g.CE(Error("Invalid AdBreakInfo URL")),$A(Error("Invalid AdBreakInfo URL"));var R=this.player.getVideoData(1).isMdxPlayback,Z=B;B=qo7.exec(J);B=B!=null&&B.length>=2?B[1]:"";A=PU1.test(J);var N=xkw.exec(J); N=N!=null&&N.length>=2?N[1]:"";var F=ef1.exec(J);F=F!=null&&F.length>=2&&!Number.isNaN(Number(F[1]))?Number(F[1]):1;var D=nB0.exec(J);D=D!=null&&D.length>=2?D[1]:"0";var I=u9(this.player.K().vI),d=g.AV(this.player.getVideoData(1).Wn,!0);cMS(this,d,J,Z===""?"":Z,this.player.K(),this.player.getVideoData(1));Z={splay:!1,lactMilliseconds:String(rT()),playerHeightPixels:Math.trunc(this.player.Pn().yN().height),playerWidthPixels:Math.trunc(this.player.Pn().yN().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20424,autonavState:cu(this.player.K())};if(R){R={};var w=this.player.K().BI;Uky(R,w?w.join(","):"")&&(Z.mdxContext=R)}if(R=zf1.includes(I)?void 0:g.Yz("PREF")){w=R.split(RegExp("[:&]"));for(var r=0,h=w.length;r1&&Q[1].toUpperCase()==="TRUE"){d.user.lockedSafetyMode=!0;break}}Z.autoCaptionsDefaultOn=vB7(R)}J=uDL.exec(J);(J=J!=null&&J.length>=2?J[1]:"")&&N&&(d.user.credentialTransferTokens= [{token:J,scope:"VIDEO"}]);J={contentPlaybackContext:Z};Z=this.player.getVideoData(1).getGetAdBreakContext();R=this.player.getVideoData(1).clientPlaybackNonce;w=V!==void 0?Math.round(V).toString():void 0;r=(f==null?0:f.context)?f.context:void 0;h=0;V&&K&&!f&&(K=K.end-K.start,K>0&&(h=Math.floor(K/1E3)));f=(f=Math.trunc((f?f.Dj:h)*1E3))?String(f):void 0;K=this.player.pX()*1E3;K=Number.isNaN(K)?0:Math.trunc(K);L={adBlock:L,params:B,breakIndex:F,breakPositionMs:D,clientPlaybackNonce:R,topLevelDomain:I, isProxyAdTagRequest:A,context:d,overridePlaybackContext:J,cueProcessedMs:w,videoId:N?N:void 0,liveTargetingParams:r,breakLengthMs:f,driftFromHeadMs:K?String(K):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:Z?Z:void 0};return oJE(this,L)};var p5d={Dos:"replaceUrlMacros",M8x:"onAboutThisAdPopupClosed",t5p:"executeCommand"};BBw.prototype.vY=function(){return"adPingingEndpoint"}; BBw.prototype.Z9=function(A,L,B){MIL(this.j4.get(),A,L,B)};fe8.prototype.vY=function(){return"changeEngagementPanelVisibilityAction"}; fe8.prototype.Z9=function(A){this.S.Kr("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:A})};K3E.prototype.vY=function(){return"loggingUrls"}; K3E.prototype.Z9=function(A,L,B){A=g.m(A);for(var f=A.next();!f.done;f=A.next())f=f.value,MIL(this.j4.get(),f.baseUrl,L,B,f.attributionSrcMode)};g.G(JHy,g.Y);S8C.prototype.Xr=function(A,L){var B={};L=Object.assign({},L,(B.cc=this.kf.ju(),B));this.kf.S.Hn(A,L)};g.G(Up,g.Y);g.p=Up.prototype;g.p.addListener=function(A){this.listeners.push(A)}; g.p.removeListener=function(A){this.listeners=this.listeners.filter(function(L){return L!==A})}; g.p.sj=function(A,L,B,f,K,V,J,R){if(A==="")Dh("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(A!==this.N||B){this.N=A;this.Mp.get().sj(A,L,B,f,K,V,J,R);this.hF.get().sj(A,L,B,f,K,V,J,R);var Z;(Z=this.hf)==null||Z.get().sj(A,L,B,f,K,V,J,R);this.W.sj(A,L,B,f,K,V,J,R);Z=g.m(this.listeners);for(var N=Z.next();!N.done;N=Z.next())N.value.sj(A,L,B,f,K,V,J,R)}else Dh("Duplicate content video loaded signal")}; g.p.x8j=function(){this.N&&this.dR(this.N)}; g.p.dR=function(A){this.N=void 0;for(var L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.dR(A)};Wu.prototype.q$=function(A,L,B,f,K){R6L(this);this.D=!L&&B===0;var V=this.S.getVideoData(1),J=this.S.getVideoData(2);V&&(this.contentCpn=V.clientPlaybackNonce,this.videoId=V.videoId,this.N=V.T);J&&(this.adCpn=J.clientPlaybackNonce,this.adVideoId=J.videoId,this.adFormat=J.adFormat);this.U=A;f<=0?(R6L(this),this.D=!L&&B===0):(this.actionType=this.D?L?"unknown_type":"video_to_ad":L?"ad_to_video":"ad_to_ad",this.videoStreamType=K?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.V=!0,iJ("_start",this.actionType)&&F38(this)))}; Wu.prototype.reset=function(){return new Wu(this.S)};g.G(vu,g.Y);vu.prototype.addCueRange=function(A,L,B,f,K,V,J,R,Z){V=V===void 0?3:V;J=J===void 0?1:J;this.N.has(A)?Dh("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:A}):(A=new D6L(A,L,B,f,V,R,Z),this.N.set(A.id,{rh:A,listener:K,sU:J}),this.S.dX([A],J))}; vu.prototype.removeCueRange=function(A){var L=this.N.get(A);L?(this.S.K9([L.rh],L.sU),this.N.delete(L.rh.id)):Dh("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:A})}; vu.prototype.onCueRangeEnter=function(A){if(this.N.has(A.id))this.N.get(A.id).listener.onCueRangeEnter(A.id)}; vu.prototype.onCueRangeExit=function(A){if(this.N.has(A.id))this.N.get(A.id).listener.onCueRangeExit(A.id)}; g.G(D6L,g.WR);qz.prototype.addPlayerResponseForAssociation=function(A){this.S.addPlayerResponseForAssociation(A)};Pu.prototype.lE=function(A){this.S.lE(A)}; Pu.prototype.Dp=function(A){var L=g.pf.apply(1,arguments);A==="onAdStart"||A==="onAdEnd"?this.S.X3.apply(this.S,[A].concat(g.x7(L))):this.S.Kr.apply(this.S,[A].concat(g.x7(L)))};var h6L=null;g.G(HBD,g.SN);HBD.prototype.EF=function(A){return this.N.hasOwnProperty(A)?this.N[A].EF():{}}; g.hf("ytads.bulleit.getVideoMetadata",function(A){return nZ().EF(A)}); g.hf("ytads.bulleit.triggerExternalActivityEvent",function(A,L,B){var f=nZ();B=siy(B);B!==null&&f.publish(B,{queryId:A,viewabilityString:L})});g.p=zj.prototype;g.p.QF=function(A,L){if(!this.N.has(A))return{};if(L==="seek"){L=!1;L=L===void 0?!1:L;var B=$$(Kc).o9(A,{});B?A5(B):L&&(A=$$(Kc).JG(null,eX(),!1,A),A.Rn=3,e3y([A]));return{}}L=tIw(L);if(L===null)return{};var f=this.S.Ur();if(!f)return{};var K=this.S.getPresentingPlayerType(!0);if((B=this.S.getVideoData(K))==null||!B.isAd())return{};B={opt_adElement:f,opt_fullscreen:this.Mp.get().isFullscreen()};return eKQ(L,A,B)}; g.p.dM=function(A,L,B,f,K){this.N.has(A)&&(f<=0||K<=0||$$(Kc).dM(A,L,B,f,K))}; g.p.qN=function(A){var L;(L=this.N.get(A.queryId))==null||L.qN()}; g.p.HQ=function(A){var L;(L=this.N.get(A.queryId))==null||L.HQ()}; g.p.IM=function(A){var L;(L=this.N.get(A.queryId))==null||L.IM()}; g.p.NN=function(A){var L;(L=this.N.get(A.queryId))==null||L.NN()}; g.p.WQ=function(A){var L;(L=this.N.get(A.queryId))==null||L.WQ()};$6k.prototype.send=function(A,L,B,f){try{Xn0(this,A,L,B,f===void 0?!1:f)}catch(K){}};g.G(OBQ,$6k);EJQ.prototype.send=function(A,L,B,f){var K=!1;try{if(f==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||f==="ATTRIBUTION_SRC_MODE_XHR_OPTION")K=!0,A=OKw(A);f=K;var V=g.bp(A);if(V[1]==="https")var J=A;else V[1]="https",J=hW("https",V[2],V[3],V[4],V[5],V[6],V[7]);var R=itL(J);V=[];var Z=ta0(J)&&this.FD.get().S.K().experiments.GL("add_auth_headers_to_remarketing_google_dot_com_ping");if(dW(J)||Z)V.push({headerType:"USER_AUTH"}),V.push({headerType:"PLUS_PAGE_ID"}),V.push({headerType:"VISITOR_ID"}),V.push({headerType:"EOM_VISITOR_ID"}), V.push({headerType:"AUTH_USER"}),V.push({headerType:"DATASYNC_ID"});this.N.send({baseUrl:J,scrubReferrer:R,headers:V},L,B,f)}catch(N){}};oY.prototype.b0=function(){return this.S.b0(1)};g.G(B1,g.Y);g.p=B1.prototype;g.p.ju=function(){return this.S.getVideoData(1).clientPlaybackNonce}; g.p.addListener=function(A){this.listeners.push(A)}; g.p.removeListener=function(A){this.listeners=this.listeners.filter(function(L){return L!==A})}; g.p.sj=function(){this.pI.clear();this.Sj=null;this.kH.get().clear()}; g.p.dR=function(){}; g.p.O8F=function(A,L,B){L.videoId==="nPpU29QrbiU"&&this.S.Hn("ads_ssm_vdc_s",{pt:B,dvt:A});SM(this.FD.get())&&A!=="dataloaded"||x6D(this,L,B)}; g.p.jyL=function(A,L){A!==void 0&&(this.Sj=A,L===void 0?Dh("Expected ad video start time on SS video changed"):this.pI.set(A,L));var B=this.S.getPresentingPlayerType(!0),f=this.S.getVideoData(B),K;A===void 0?K=null:K=this.kH.get().N.get(A)||null;this.S.getVideoData(1).Hn("ads_ssvc",{pt:B,cpn:f==null?void 0:f.clientPlaybackNonce,crtt:this.S.getCurrentTime(1,!1),atlh:this.S.isAtLiveHead(),adstt:L,pid:A,slid:K==null?void 0:K.layoutId});f?x6D(this,f,B):Dh("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.S.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:A})}; g.p.Ij=function(A,L){var B=A.author,f=A.clientPlaybackNonce,K=A.isListed,V=A.XA,J=A.title,R=A.bY,Z=A.CQ,N=A.isMdxPlayback,F=A.Zl,D=A.mdxEnvironment,I=A.isAutonav,d=A.Ll,w=A.BV,r=A.hI,h=A.videoId||"",Q=A.profilePicture||"",l=A.JO||"",C=A.zt()||!1,O=A.aA()||!1;A=A.Zi||void 0;V=this.kH.get().N.get(V)||{layoutId:null,slotId:null};var v=this.S.getVideoData(1),U=v.iC();v=v.getPlayerResponse();L=1E3*this.S.getDuration(L);var a=1E3*this.S.getDuration(1),o0,B6,Ve=(v==null?void 0:(o0=v.playerConfig)==null? void 0:(B6=o0.daiConfig)==null?void 0:B6.enableDai)||!1,DS,fw;o0=(v==null?void 0:(DS=v.playerConfig)==null?void 0:(fw=DS.daiConfig)==null?void 0:fw.enablePreroll)||!1;return Object.assign({},V,{videoId:h,author:B,clientPlaybackNonce:f,zY:L,XL:a,daiEnabled:Ve,Fh:o0,isListed:K,iC:U,profilePicture:Q,title:J,JO:l,bY:R,CQ:Z,Zi:A,isMdxPlayback:N,Zl:F,mdxEnvironment:D,isAutonav:I,Ll:d,BV:w,hI:r,zt:C,aA:O})}; g.p.l1=function(){this.listeners.length=0;this.oV=null;g.Y.prototype.l1.call(this)};g.G(fY,g.Y);g.p=fY.prototype;g.p.sj=function(){var A=this;this.rq=nG(function(){A.S.TL()||A.S.Z2("ad",1)})}; g.p.dR=function(){}; g.p.addListener=function(A){this.listeners.push(A)}; g.p.removeListener=function(A){this.listeners=this.listeners.filter(function(L){return L!==A})}; g.p.NA=function(){}; g.p.playVideo=function(){this.S.playVideo()}; g.p.pauseVideo=function(){this.S.pauseVideo()}; g.p.resumeVideo=function(A){this.l5(A)&&this.S.playVideo()}; g.p.l5=function(A){return this.S.getPlayerState(A)===2}; g.p.getCurrentTimeSec=function(A,L){var B=this.hF.get().Sj;return A!==2||L||B===null?this.S.getCurrentTime(A,L):VY(this,B)}; g.p.getVolume=function(){return this.S.getVolume()}; g.p.isMuted=function(){return this.S.isMuted()}; g.p.getPresentingPlayerType=function(){return this.S.getPresentingPlayerType(!0)}; g.p.getPlayerState=function(A){return this.S.getPlayerState(A)}; g.p.getGetAdBreakContext=function(){return this.S.getGetAdBreakContext()}; g.p.isFullscreen=function(){return this.S.isFullscreen()}; g.p.isAtLiveHead=function(){return this.S.isAtLiveHead()}; g.p.Nn=function(A){this.S.Nn(A)}; g.p.cfr=function(){var A=this.S.getPresentingPlayerType(!0),L=this.getCurrentTimeSec(A,!1);if(A===2){A=g.m(this.listeners);for(var B=A.next();!B.done;B=A.next())B.value.C9(L)}else if(A===1)for(A=g.m(this.Sz),B=A.next();!B.done;B=A.next())B.value.NA(L)}; g.p.iep=function(A){for(var L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.H9(A,this.getPresentingPlayerType())}; g.p.onFullscreenToggled=function(A){for(var L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.onFullscreenToggled(A)}; g.p.onVolumeChange=function(){for(var A=g.m(this.listeners),L=A.next();!L.done;L=A.next())L.value.onVolumeChange()}; g.p.mF=function(){for(var A=this.S.isMinimized(),L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.mF(A)}; g.p.iH=function(A){for(var L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.iH(A)}; g.p.Bz=function(){for(var A=this.S.Pn().yN(),L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.T_(A)}; g.p.jO=function(A){for(var L=g.m(this.listeners),B=L.next();!B.done;B=L.next())B.value.jO(A)}; g.p.gb=function(){for(var A=g.m(this.listeners),L=A.next();!L.done;L=A.next())L.value.gb()};g.G(aek,g.Y);g.G(RY,g.Y);RY.prototype.l1=function(){this.mJ.TL()||this.mJ.get().removeListener(this);g.Y.prototype.l1.call(this)};Z6.prototype.fetch=function(A){var L=A.eG;return this.N.fetch(A.HK,{Kn:A.Kn===void 0?void 0:A.Kn,rh:L,cueProcessedMs:A.cueProcessedMs===void 0?0:A.cueProcessedMs}).then(function(B){return Ac6(B,L)})};g.G(Ne,g.Y);g.p=Ne.prototype;g.p.addListener=function(A){this.listeners.push(A)}; g.p.removeListener=function(A){this.listeners=this.listeners.filter(function(L){return L!==A})}; g.p.QV=function(A){LA6(this,A,1)}; g.p.onAdUxClicked=function(A,L){Fl(this,function(B){B.dI(A,L)})}; g.p.Ol=function(A){Fl(this,function(L){L.kp(A)})}; g.p.oT=function(A){Fl(this,function(L){L.lc(A)})}; g.p.GVp=function(A){Fl(this,function(L){L.cS(A)})};D6.prototype.reduce=function(A){switch(A.event){case "unknown":return}var L=A.identifier;var B=this.N[L];B?L=B:(B={jz:null,sW:-Infinity},L=this.N[L]=B);B=A.startSecs+A.N/1E3;if(!(B=this.N.startSecs&&B.startSecs<=this.N.startSecs+this.N.Dj)){var f=void 0;if(RU(this.FD.get())&&B.identifier!==((f=this.N)==null?void 0:f.identifier)){var K=f=void 0,V=void 0,J=void 0;Ay(this.j4.get(),"ocud","ccpi."+B.identifier+";ccpe."+B.event+";ccps."+B.startSecs+";\n ccpd."+B.Dj+";pcpi."+((f=this.N)==null?void 0:f.identifier)+ ";pcpe."+((K=this.N)==null?void 0:K.event)+";\n pcps."+((V=this.N)==null?void 0:V.startSecs)+";pcpd."+((J=this.N)==null?void 0:J.Dj)+";")}f=void 0;B.identifier!==((f=this.N)==null?void 0:f.identifier)&&Dh("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.N=B,fv1(this,B)}}; g.p.l1=function(){this.W!=null&&(this.W.unsubscribe("cuepointupdated",this.Ww,this),this.W=null);this.listeners.length=0;this.Qy.length=0;g.Y.prototype.l1.call(this)};g.p=w1.prototype;g.p.Nt=function(A,L,B,f,K,V,J,R){return this.S.Nt(A,L,B,f,K,V,J,R)}; g.p.Qc=function(A,L){this.S.Qc(A,L)}; g.p.i4=function(A,L,B){this.S.i4(A,L,B)}; g.p.V_=function(A){this.S.V_(A)}; g.p.A7=function(A,L,B,f,K,V,J,R){this.S.A7(A,L,B,f,K,V,J,R)}; g.p.bF=function(A){return this.S.bF(A)}; g.p.finishSegmentByCpn=function(A,L,B){B=Jc8(B);this.S.finishSegmentByCpn(A,L,B)};g.G(pY,g.Y);g.G(R$0,g.Y);g.G(ZNE,g.Y);g.G(NJ1,g.Y);g.G(FAD,g.Y);g.G(D3S,g.Y);g.G(Ivk,g.Y);Ivk.prototype.V=function(){return this.W};g.G(ws1,xr); ws1.prototype.V=function(A){var L=A.content;if(L.componentType==="shopping-companion")switch(A.actionType){case 1:case 2:A=this.N.getVideoData(1);this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:A&&A.videoId,shoppingCompanionCarouselRenderer:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:this.N.Kr("updateKevlarOrC3Companion",{})}else if(L.componentType==="action-companion")switch(A.actionType){case 1:case 2:A=this.N.getVideoData(1); this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:A&&A.videoId,actionCompanionAdRenderer:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L.renderer&&(L=this.N.getVideoData(1),this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId})),this.N.Kr("updateKevlarOrC3Companion",{})}else if(L.componentType==="image-companion")switch(A.actionType){case 1:case 2:A=this.N.getVideoData(1);this.N.Kr("updateKevlarOrC3Companion", {contentVideoId:A&&A.videoId,imageCompanionAdRenderer:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L=this.N.getVideoData(1),this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId}),this.N.Kr("updateKevlarOrC3Companion",{})}else if(L.componentType==="top-banner-image-text-icon-buttoned")switch(A.actionType){case 1:case 2:A=this.N.getVideoData(1);this.N.Kr("updateKevlarOrC3Companion", {contentVideoId:A&&A.videoId,topBannerImageTextIconButtonedLayoutViewModel:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L.renderer&&(L=this.N.getVideoData(1),this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId})),this.N.Kr("updateKevlarOrC3Companion",{})}else if(L.componentType==="banner-image")switch(A.actionType){case 1:case 2:A=this.N.getVideoData(1);this.N.Kr("updateKevlarOrC3Companion", {contentVideoId:A&&A.videoId,bannerImageLayoutViewModel:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L=this.N.getVideoData(1),this.N.Kr("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId}),this.N.Kr("updateKevlarOrC3Companion",{})}else if(L.componentType==="ads-engagement-panel")switch(L=L.renderer,A.actionType){case 1:case 2:this.N.Kr("updateEngagementPanelAction",L.addAction);this.N.Kr("changeEngagementPanelVisibility", L.expandAction);break;case 3:this.N.Kr("changeEngagementPanelVisibility",L.hideAction),this.N.Kr("updateEngagementPanelAction",L.removeAction)}else if(L.componentType==="ads-engagement-panel-layout"){var B=L.renderer;switch(A.actionType){case 1:case 2:this.N.Kr("updateEngagementPanelAction",{action:EF(B.addAction),layoutId:L.layoutId,onLayoutVisibleCallback:L.N,interactionLoggingClientData:L.interactionLoggingClientData});this.N.Kr("changeEngagementPanelVisibility",EF(B.expandAction));break;case 3:this.N.Kr("changeEngagementPanelVisibility", EF(B.hideAction)),this.N.Kr("updateEngagementPanelAction",{action:EF(B.removeAction)})}}};g.G(psy,oA);g.p=psy.prototype;g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);g.Kv(this.V,"stroke-dasharray","0 "+this.W);this.V.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.D.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.U.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.p.clear=function(){this.hide()}; g.p.hide=function(){fL(this);oA.prototype.hide.call(this)}; g.p.show=function(){BH(this);oA.prototype.show.call(this)}; g.p.q7=function(){this.hide()}; g.p.m3=function(){if(this.N){var A=this.N.getProgressState();A!=null&&A.current!=null&&g.Kv(this.V,"stroke-dasharray",A.current/A.seekableEnd*this.W+" "+this.W)}};g.G(yc7,dq);g.p=yc7.prototype; g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);if(L.image&&L.image.thumbnail)if(L.headline)if(L.description)if(L.backgroundImage&&L.backgroundImage.thumbnail)if(L.actionButton&&g.y(L.actionButton,g.te))if(A=L.durationMilliseconds||0,typeof A!=="number"||A<=0)g.mL(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+A));else if(L.navigationEndpoint){var f=this.api.getVideoData(2);if(f!=null){var K=L.image.thumbnail.thumbnails;K!=null&& K.length>0&&g.us(g.xj(K[0].url))&&(K[0].url=f.profilePicture,g.us(g.xj(f.profilePicture))&&oaw("VideoPlayer",239976093,"Expected non-empty profile picture."));K=L.backgroundImage.thumbnail.thumbnails;K!=null&&K.length>0&&g.us(g.xj(K[0].url))&&(K[0].url=f.g1());K=L.headline;K!=null&&g.us(g.xj(K.text))&&(K.text=f.author)}this.G.init(Vo("ad-image"),L.image,B);this.D.init(Vo("ad-text"),L.headline,B);this.V.init(Vo("ad-text"),L.description,B);this.Ex.init(Vo("ad-image"),L.backgroundImage,B);f=["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.D.element.classList.add("ytp-ad-action-interstitial-headline-light");this.V.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.K().J("enable_default_mono_cta_migration_web_client")?f.push("ytp-ad-action-interstitial-action-button-mono-dark"):f.push("ytp-ad-action-interstitial-action-button-dark");this.api.K().W&&(f.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.K().J("enable_default_mono_cta_migration_web_client")?f.push("ytp-ad-action-interstitial-action-button-mono-dark"):f.push("ytp-ad-action-interstitial-action-button-dark"));this.api.K().J("enable_unified_action_endcap_on_web")&&!this.api.K().W&&(this.api.K().J("enable_default_mono_cta_migration_web_client")?f.push("ytp-ad-action-interstitial-action-button-unified-mono"):f.push("ytp-ad-action-interstitial-action-button-unified"),this.sx.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.G.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Ox.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.iQ.classList.add("ytp-ad-action-interstitial-card-unified"),this.qp.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.V.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.wT.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.S4.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ys.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,f);g.W(this,this.actionButton);this.actionButton.DM(this.sx);this.actionButton.init(Vo("button"),g.y(L.actionButton,g.te),B);xw(this.actionButton.element);f=z7(this.actionButton.element);ne(this.actionButton.element, f+" This link opens in new tab");this.navigationEndpoint=L.navigationEndpoint;this.U.Y(this.S4,"click",this.ym,this);this.U.Y(this.qp,"click",this.ym,this);this.api.K().W||this.U.Y(this.wT,"click",this.ym,this);this.N=this.ZT?new sN(this.api,A):new HH(A);g.W(this,this.N);if(L.skipButton){(A=g.y(L.skipButton,c1O))&&this.N&&(this.skipButton=new pL(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.N,this.uj),g.W(this,this.skipButton),this.skipButton.DM(this.element),this.skipButton.init(Vo("skip-button"), A,B));if(B=L.adBadgeRenderer)if(B=g.y(B,E7O))A=new Gh(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0,!0),A.DM(this.Ys),A.init(Vo("simple-ad-badge"),B,this.macros),g.W(this,A);if(B=L.adInfoRenderer)if(B=g.y(B,he))A=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.element,void 0,!0),A.DM(this.Ys),A.init(Vo("ad-info-hover-text-button"),B,this.macros),g.W(this,A)}else L.nonskippableOverlayRenderer&&(A=g.y(L.nonskippableOverlayRenderer,bM))&&this.N&&(this.W= new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.N,!1),g.W(this,this.W),this.W.DM(this.element),this.W.init(Vo("ad-preview"),A,B));L.countdownRenderer&&(L=L.countdownRenderer,g.y(L,MEd)&&this.N&&(B=new psy(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.N),g.W(this,B),B.DM(this.element),B.init(Vo("timed-pie-countdown"),g.y(L,MEd),this.macros)));this.show();this.element.focus()}else g.mL(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.mL(Error("AdActionInterstitialRenderer has no button."));else g.mL(Error("AdActionInterstitialRenderer has no background AdImage."));else g.mL(Error("AdActionInterstitialRenderer has no description AdText."));else g.mL(Error("AdActionInterstitialRenderer has no headline AdText."));else g.mL(Error("AdActionInterstitialRenderer has no image."))}; g.p.clear=function(){g.$_(this.U);this.hide()}; g.p.show=function(){jZe(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.W&&this.W.show();dq.prototype.show.call(this)}; g.p.hide=function(){jZe(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.W&&this.W.hide();dq.prototype.hide.call(this)}; g.p.ym=function(){this.navigationEndpoint&&(this.layoutId?this.Qj.executeCommand(this.navigationEndpoint,this.layoutId):g.mL(Error("Missing layoutId for ad action interstitial.")))};var HN6={iconType:"CLOSE"},G2=new g.Sr(320,63);g.G(sZL,dq);g.p=sZL.prototype; g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);this.U=L;this.G=g.Kx(this.U.onClickCommands||[]);this.Ys=this.U.onErrorCommand||null;if(A=this.U.contentSupportedRenderer)A=this.U.contentSupportedRenderer,L=this.U.adInfoRenderer||null,g.y(A,$Cf)?(this.D=g.sA("ytp-ad-overlay-ad-info-button-container",this.V.element),h$v(this,L),A=tuS(this,g.y(A,$Cf))):g.y(A,X6w)?(this.D=g.sA("ytp-ad-overlay-ad-info-button-container",this.W.element),h$v(this,L),A=kny(this,g.y(A,X6w))):g.y(A,OwI)?(this.D= g.sA("ytp-ad-overlay-ad-info-button-container",this.N.element),h$v(this,L),A=TJ8(this,g.y(A,OwI))):(g.mL(Error("InvideoOverlayAdRenderer content could not be initialized.")),A=!1);A&&(this.show(),lvD(this,!0))}; g.p.clear=function(){lvD(this,!1);this.S4.reset();this.qp=0;this.V.hide();this.logVisibility(this.V.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.N.hide();this.logVisibility(this.N.element,!1);this.hide();this.dispose()}; g.p.u31=function(){this.sx&&(this.layoutId?this.Qj.executeCommand(this.sx,this.layoutId):g.mL(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.p.uK=function(){a:{if(this.U&&this.U.closeButton&&this.U.closeButton.buttonRenderer){var A=this.U.closeButton.buttonRenderer;if(A.serviceEndpoint){A=[A.serviceEndpoint];break a}}A=[]}A=g.m(A);for(var L=A.next();!L.done;L=A.next())L=L.value,this.layoutId?this.Qj.executeCommand(L,this.layoutId):g.mL(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.p.ags=function(){this.Ex||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.p.JZ=function(){this.Ex||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.JZ("invideo-overlay")}; g.p.KH4=function(A){A.target===this.D&&g.sA("ytp-ad-button",this.Ox.element).click()};g.G(m3D,oA);g.p=m3D.prototype;g.p.init=function(A,L,B){oA.prototype.init.call(this,A,L,B);A=L.durationMs;this.V=A==null||A===0?0:A+this.N.getProgressState().current*1E3;if(L.text)var f=L.text.templatedAdText;else L.staticMessage&&(f=L.staticMessage);this.messageText.init(Vo("ad-text"),f,B);this.messageText.DM(this.W.element);this.U.show(100);this.show()}; g.p.clear=function(){this.hide()}; g.p.hide=function(){QZk(this,!1);oA.prototype.hide.call(this);this.W.hide();this.messageText.hide();fL(this)}; g.p.show=function(){QZk(this,!0);oA.prototype.show.call(this);BH(this);this.W.show();this.messageText.show()}; g.p.q7=function(){this.hide()}; g.p.m3=function(){if(this.N!=null){var A=this.N.getProgressState();A!=null&&A.current!=null&&(A=1E3*A.current,!this.qp&&A>=this.V?(this.U.hide(),this.qp=!0):this.messageText&&this.messageText.isTemplated()&&(A=Math.max(0,Math.ceil((this.V-A)/1E3)),A!==this.D&&(LL(this.messageText,{TIME_REMAINING:String(A)}),this.D=A)))}};g.G(CxQ,dq);g.p=CxQ.prototype; g.p.init=function(A,L,B){dq.prototype.init.call(this,A,L,{});L.image&&L.image.thumbnail?L.headline?L.description?L.actionButton&&g.y(L.actionButton,g.te)?(this.V.init(Vo("ad-image"),L.image,B),this.W.init(Vo("ad-text"),L.headline,B),this.U.init(Vo("ad-text"),L.description,B),this.actionButton=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-underlay-action-button"]),L.backgroundColor&&g.Kv(this.element,"background-color",g.Mf(L.backgroundColor)),g.W(this,this.actionButton), this.actionButton.DM(this.D),this.actionButton.init(Vo("button"),g.y(L.actionButton,g.te),B),A=g.Am(this.api.K().experiments,"player_underlay_video_width_fraction"),this.api.K().J("place_shrunken_video_on_left_of_player")?(L=this.N,g.NH(L,"ytp-ad-underlay-left-container"),g.R1(L,"ytp-ad-underlay-right-container"),g.Kv(this.N,"margin-left",Math.round((A+.02)*100)+"%")):(L=this.N,g.NH(L,"ytp-ad-underlay-right-container"),g.R1(L,"ytp-ad-underlay-left-container")),g.Kv(this.N,"width",Math.round((1-A- .04)*100)+"%"),this.api.kQ()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.XB.bind(this)),this.api.addEventListener("resize",this.jh.bind(this))):g.mL(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.mL(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.mL(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.mL(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.p.show=function(){iNL(!0);this.actionButton&&this.actionButton.show();dq.prototype.show.call(this)}; g.p.hide=function(){iNL(!1);this.actionButton&&this.actionButton.hide();dq.prototype.hide.call(this)}; g.p.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.XB.bind(this));this.api.removeEventListener("resize",this.jh.bind(this));this.hide()}; g.p.onClick=function(A){dq.prototype.onClick.call(this,A);this.actionButton&&g.XF(this.actionButton.element,A.target)&&this.api.pauseVideo()}; g.p.XB=function(A){A==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):A==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):A==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))}; g.p.jh=function(A){A.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):A.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.Kv(this.W.element,"font-size",A.width/40+"px")};g.G(r1,dq); r1.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);L.toggledLoggingParams&&(this.toggledLoggingParams=L.toggledLoggingParams);L.answer&&g.y(L.answer,g.te)?(A=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),A.DM(this.answer),A.init(Vo("ytp-ad-survey-answer-button"),g.y(L.answer,g.te),B),A.show()):L.answer&&g.y(L.answer,gQ)&&(this.N=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj, ["ytp-ad-survey-answer-toggle-button"]),this.N.DM(this.answer),g.W(this,this.N),this.N.init(Vo("survey-answer-button"),g.y(L.answer,gQ),B));this.show()}; r1.prototype.fK=function(A){this.layoutId?Cy(this.Qj,A,this.layoutId,this.macros):(A=new g.iL("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.mL(A))}; r1.prototype.onClick=function(A){dq.prototype.onClick.call(this,A);if(this.api.K().J("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; r1.prototype.clear=function(){this.hide()};g.G($3L,dq);$3L.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);L.answer&&g.y(L.answer,gQ)&&(this.button=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.DM(this.N),this.button.init(Vo("survey-none-of-the-above-button"),g.y(L.answer,gQ),B));this.show()};g.G(s$,Xb);s$.prototype.init=function(A,L,B){Xb.prototype.init.call(this,A,L,B);A=!1;L.text&&(L=g.wq(L.text),A=!g.us(L));A||g.CE(Error("No submit text was present in the renderer."))}; s$.prototype.onClick=function(A){this.publish("l");Xb.prototype.onClick.call(this,A)};g.G(H1,dq); H1.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);if(A=L.skipOrPreviewRenderer)g.y(A,fp)?(A=g.y(A,fp),B=new jm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.U,!0),B.DM(this.skipOrPreview),B.init(Vo("skip-button"),A,this.macros),g.W(this,B),this.N=B):g.y(A,bM)&&(A=g.y(A,bM),B=new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.U,!1),B.DM(this.skipOrPreview),B.init(Vo("ad-preview"),A,this.macros),B.qp.show(100),B.show(),g.W(this,B), this.N=B);this.N==null&&(A=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(L)),g.mL(A));L.submitButton&&(A=L.submitButton,g.y(A,g.te)&&(A=g.y(A,g.te),B=new s$(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),B.DM(this.submitButton),B.init(Vo("survey-submit"),A,this.macros),g.W(this,B),this.W=B));if(A=L.adBadgeRenderer)A=g.y(A,E7O),B=new Gh(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0,!0,!0),B.DM(this.V),B.init(Vo("simple-ad-badge"), A,this.macros),this.adBadge=B.element,g.W(this,B);if(A=L.adDurationRemaining)A=g.y(A,Q0t),B=new kI(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.U,void 0,!0),B.DM(this.V),B.init(Vo("ad-duration-remaining"),A,this.macros),g.W(this,B);(L=L.adInfoRenderer)&&g.y(L,he)&&(A=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.element,void 0,!0),g.W(this,A),this.adBadge!==void 0?this.V.insertBefore(A.element,this.adBadge.nextSibling):A.DM(this.V),A.init(Vo("ad-info-hover-text-button"), g.y(L,he),this.macros));this.show()}; H1.prototype.clear=function(){this.hide()};g.G(h3,dq);h3.prototype.init=function(A,L,B){dq.prototype.init.call(this,A,L,B);Mu0(this)}; h3.prototype.show=function(){this.V=Date.now();dq.prototype.show.call(this)}; h3.prototype.NO=function(){};g.G(Ym0,h3);g.p=Ym0.prototype;g.p.init=function(A,L,B){var f=this;h3.prototype.init.call(this,A,L,B);L.questionText&&XsC(this,L.questionText);L.answers&&L.answers.forEach(function(K,V){g.y(K,yb)&&ONE(f,g.y(K,yb),B,V)}); this.D=new Set(this.W.map(function(K){return K.N.N})); (A=L.noneOfTheAbove)&&(A=g.y(A,iwt))&&U3w(this,A,B);L.surveyAdQuestionCommon&&cc6(this,L.surveyAdQuestionCommon);L.submitEndpoints&&(this.submitEndpoints=L.submitEndpoints);this.Y(this.element,"change",this.onChange);this.show()}; g.p.NO=function(){WA8(this,!1);this.U.W.subscribe("l",this.syT,this)}; g.p.onChange=function(A){A.target===this.noneOfTheAbove.button.N?vO7(this):this.D.has(A.target)&&(this.noneOfTheAbove.button.toggleButton(!1),WA8(this,!0))}; g.p.syT=function(){var A=[],L=this.W.reduce(function(K,V,J){var R=V.toggledLoggingParams;V.N&&V.N.isToggled()&&R&&(K.push(R),A.push(J));return K},[]).join("&"),B=this.submitEndpoints.map(function(K){if(!K.loggingUrls)return K; K=g.$g(K);K.loggingUrls=K.loggingUrls.map(function(V){V.baseUrl&&(V.baseUrl=$s(V.baseUrl,L));return V}); return K}); if(B){B=g.m(B);for(var f=B.next();!f.done;f=B.next())f=f.value,this.layoutId?Cy(this.Qj,f,this.layoutId,this.macros):g.mL(Error("Missing layoutId for multi_select_question."))}this.api.K().J("supports_multi_step_on_desktop")&&this.qp(A)}; g.p.clear=function(){this.api.K().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.G(bv,h3);bv.prototype.init=function(A,L,B){var f=this;h3.prototype.init.call(this,A,L,B);L.questionText&&XsC(this,L.questionText);L.answers&&L.answers.forEach(function(K,V){g.y(K,yb)&&ONE(f,g.y(K,yb),B,V)}); L.surveyAdQuestionCommon?cc6(this,L.surveyAdQuestionCommon):QH(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(L)));this.show()}; bv.prototype.clear=function(){this.api.K().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.G(t3,dq);t3.prototype.init=function(A,L,B){var f=this;dq.prototype.init.call(this,A,L,B);if(this.api.K().J("supports_multi_step_on_desktop")){var K;this.conditioningRules=(K=L.conditioningRules)!=null?K:[];var V;this.W=(V=L.questions)!=null?V:[];var J;((J=L.questions)==null?0:J.length)&&e$L(this,0)}else(L.questions||[]).forEach(function(R){g.y(R,s4)?Pxv(f,g.y(R,s4),B):g.y(R,r9)&&x38(f,g.y(R,r9),B)}); this.show()}; t3.prototype.clear=function(){this.api.K().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; t3.prototype.U=function(A){var L=this;if(this.api.K().J("supports_multi_step_on_desktop")){var B;if((B=this.conditioningRules)==null?0:B.length){var f;if(A.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(K){return K.questionIndex===L.N})==null)g.mL(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(K){if(K.questionIndex===L.N)switch(K.condition){case "CONDITION_ALL_OF":var V;if((V=K.answerIndices)==null?0:V.every(function(R){return A.includes(R)}))f=K.nextQuestionIndex; break;case "CONDITION_ANY_OF":var J;if((J=K.answerIndices)==null?0:J.some(function(R){return A.includes(R)}))f=K.nextQuestionIndex; break;default:g.mL(Error("Expected specified condition in survey conditioning rules."))}}),f!=null)e$L(this,f); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.mL(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.G(k4,dq); k4.prototype.init=function(A,L,B){var f=this;dq.prototype.init.call(this,A,L,B);A=L.timeoutSeconds||0;if(typeof A!=="number"||A<0)g.mL(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+A));else if(L.timeoutCommands)if(L.text)if(L.ctaButton&&g.y(L.ctaButton,g.te))if(L.brandImage)if(L.backgroundImage&&g.y(L.backgroundImage,kY)&&g.y(L.backgroundImage,kY).landscape){this.layoutId||g.mL(Error("Missing layoutId for survey interstitial."));nOQ(this.interstitial,g.y(L.backgroundImage, kY).landscape);nOQ(this.logoImage,L.brandImage);g.OA(this.text,g.wq(L.text));var K=["ytp-ad-survey-interstitial-action-button"];K.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Xb(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,K);g.W(this,this.actionButton);this.actionButton.DM(this.W);this.actionButton.init(Vo("button"),g.y(L.ctaButton,g.te),B);this.actionButton.show();this.N=new sN(this.api,A*1E3);this.N.subscribe("g",function(){f.transition.hide()}); g.W(this,this.N);this.Y(this.element,"click",function(V){var J=V.target===f.interstitial;V=f.actionButton.element.contains(V.target);if(J||V)if(f.transition.hide(),J)f.api.onAdUxClicked(f.componentType,f.layoutId)}); this.transition.show(100)}else g.mL(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.mL(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.mL(Error("SurveyTextInterstitialRenderer has no button."));else g.mL(Error("SurveyTextInterstitialRenderer has no text."));else g.mL(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; k4.prototype.clear=function(){this.hide()}; k4.prototype.show=function(){z$v(!0);dq.prototype.show.call(this)}; k4.prototype.hide=function(){z$v(!1);dq.prototype.hide.call(this)};g.G(T2,oA);g.p=T2.prototype; g.p.init=function(A,L){oA.prototype.init.call(this,A,L,{});if(L.durationMilliseconds){if(L.durationMilliseconds<0){g.mL(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+L.durationMilliseconds));return}this.W=L.durationMilliseconds}else this.W=this.N.XZ();var B;if((B=L.previewText)==null||!B.text||g.us(L.previewText.text))g.mL(Error("No text is returned for AdPreview."));else{this.D=L.previewText;L.previewText.isTemplated||g.OA(this.V,L.previewText.text);var f; if(((f=this.api.getVideoData(1))==null?0:f.nL)&&L.previewImage){var K,V;(A=((V=Ff(((K=L.previewImage)==null?void 0:K.sources)||[],52,!1))==null?void 0:V.url)||"")&&A.length?(this.previewImage=new g.DE({Z:"img",j:"ytp-preview-ad__image",C:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",A),g.W(this,this.previewImage),this.previewImage.DM(this.element)):g.mL(Error("Failed to get imageUrl in AdPreview."))}else this.V.classList.add("ytp-preview-ad__text--padding--wide")}}; g.p.clear=function(){this.hide()}; g.p.hide=function(){fL(this);oA.prototype.hide.call(this)}; g.p.show=function(){BH(this);oA.prototype.show.call(this)}; g.p.q7=function(){this.hide()}; g.p.m3=function(){if(this.N){var A=this.N.getProgressState();if(A!=null&&A.current)if(A=1E3*A.current,A>=this.W)this.transition.hide();else{var L;if((L=this.D)==null?0:L.isTemplated)if(L=Math.max(0,Math.ceil((this.W-A)/1E3)),L!==this.U){var B,f;(A=(B=this.D)==null?void 0:(f=B.text)==null?void 0:f.replace("{TIME_REMAINING}",String(L)))&&g.OA(this.V,A);this.U=L}}}};g.G(lv,dq); lv.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});var B,f;if((A=((f=Ff(((B=L.image)==null?void 0:B.sources)||[],uHQ(L),!0))==null?void 0:f.url)||"")&&A.length){B=this.m4("ytp-ad-avatar");B.src=A;var K,V;if(f=(K=L.interaction)==null?void 0:(V=K.accessibility)==null?void 0:V.label)B.alt=f;switch(L.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(L.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.mL(Error("Failed to get imageUrl in AdAvatar."))}; lv.prototype.clear=function(){this.hide()}; lv.prototype.onClick=function(A){dq.prototype.onClick.call(this,A)};g.G(mG,dq); mG.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});var B;A=(B=L.label)==null?void 0:B.content;if((B=A!=null&&!g.us(A))||L.iconImage){B&&(this.buttonText=new g.DE({Z:"span",j:"ytp-ad-button-vm__text",Ir:A}),g.W(this,this.buttonText),this.buttonText.DM(this.element));var f,K,V=((f=L.interaction)==null?0:(K=f.accessibility)==null?0:K.label)||B?A:"";V&&ne(this.element,V+" This link opens in new tab");xw(this.element);if(L.iconImage){f=void 0;if(L.iconImage){a:{K=L.iconImage;if(K.sources)for(K= g.m(K.sources),A=K.next();!A.done;A=K.next())if(A=A.value,V=void 0,(V=A.clientResource)==null?0:V.imageName){K=A;break a}K=void 0}if(K){var J;f={iconType:(J=K.clientResource)==null?void 0:J.imageName}}}J=$r(f,!1,this.W);J!=null&&(this.buttonIcon=new g.DE({Z:"span",j:"ytp-ad-button-vm__icon",B:[J]}),g.W(this,this.buttonIcon),L.iconLeading?(iA(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):B?(this.buttonIcon.DM(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.DM(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(L.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.J("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.N?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(L.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.CE(Error("AdButton does not have label or an icon."))}; mG.prototype.clear=function(){this.hide()}; mG.prototype.onClick=function(A){dq.prototype.onClick.call(this,A)};g.G(av6,oA);g.p=av6.prototype; g.p.init=function(A,L){oA.prototype.init.call(this,A,L,{});if(A=g.y(L.avatar,Me)){var B=L.headline;if(B){var f=L.description;if(f){var K=g.y(L.button,U$);K?(this.adAvatar.init(Vo("ad-avatar"),A),this.headline.init(Vo("ad-simple-attributed-string"),new lV(B)),this.description.init(Vo("ad-simple-attributed-string"),new lV(f)),B.content&&B.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(Vo("ad-button"),K), this.startMilliseconds=L.startMs||0,this.api.kQ()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.ip.bind(this)),BH(this)):g.mL(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mL(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mL(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mL(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.p.m3=function(){if(this.N){var A=this.N.getProgressState();A&&A.current&&1E3*A.current>=this.startMilliseconds&&(fL(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.p.q7=function(){this.clear()}; g.p.onClick=function(A){this.api.pauseVideo();oA.prototype.onClick.call(this,A)}; g.p.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.ip.bind(this))}; g.p.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();oA.prototype.show.call(this)}; g.p.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();oA.prototype.hide.call(this)}; g.p.ip=function(A){A==="hidden"?this.show():this.hide()};g.G(QY,dq);g.p=QY.prototype; g.p.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(!L.label||g.us(L.label))g.mL(Error("No label is returned for SkipAdButton."));else if(g.OA(this.U,L.label),A=$r({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.J("delhi_modern_web_player_icons")),A==null)g.mL(Error("Unable to retrieve icon for SkipAdButton"));else if(this.V=new g.DE({Z:"span",j:"ytp-skip-ad-button__icon",B:[A]}),g.W(this,this.V),this.V.DM(this.element),this.api.K().experiments.GL("enable_skip_to_next_messaging")&&(L=g.xj(L.targetId)))this.W= !0,this.element.setAttribute("data-tooltip-target-id",L),this.element.setAttribute("data-tooltip-target-fixed","")}; g.p.onClick=function(A){A&&A.preventDefault();var L,B;X9E(A,{contentCpn:(B=(L=this.api.getVideoData(1))==null?void 0:L.clientPlaybackNonce)!=null?B:""})===0?this.api.Kr("onAbnormalityDetected"):(dq.prototype.onClick.call(this,A),this.api.Kr("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.p.clear=function(){this.N.reset();this.hide()}; g.p.hide=function(){dq.prototype.hide.call(this)}; g.p.show=function(){this.N.start();dq.prototype.show.call(this);this.W&&this.api.K().experiments.GL("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.G(AJ1,oA);g.p=AJ1.prototype; g.p.init=function(A,L){oA.prototype.init.call(this,A,L,{});A=g.y(L.preskipState,xCB);var B;if((B=this.api.getVideoData())==null?0:B.isDaiEnabled()){if(!A){g.mL(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.W=new T2(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.N);g.W(this,this.W);this.W.DM(this.element);var f;(f=this.W)==null||f.init(Vo("preview-ad"),A);(B=this.W)!=null&&(B.transition.show(100),B.show())}(B=g.y(L.skippableState,n7t))?(L.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=L.skipOffsetMilliseconds:(g.CE(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.V.init(Vo("skip-button"),B),this.show()):g.mL(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.p.show=function(){BH(this);oA.prototype.show.call(this)}; g.p.hide=function(){!this.isSkippable&&this.W?this.W.hide():this.V&&this.V.hide();fL(this);oA.prototype.hide.call(this)}; g.p.clear=function(){var A;(A=this.W)==null||A.clear();this.V&&this.V.clear();fL(this);oA.prototype.hide.call(this)}; g.p.q7=function(){this.hide()}; g.p.m3=function(){if(1E3*this.N.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var A;(A=this.W)!=null&&A.transition.hide();(A=this.V)!=null&&(A.transition.show(),A.show())}};g.G(CY,dq); CY.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(L.label){var B;((B=L.label)==null?0:B.content)&&!g.us(L.label.content)&&(this.linkText=new g.DE({Z:"span",j:"ytp-visit-advertiser-link__text",Ir:L.label.content}),g.W(this,this.linkText),this.linkText.DM(this.element));var f,K;if((f=L.interaction)==null?0:(K=f.accessibility)==null?0:K.label)ne(this.element,L.interaction.accessibility.label+" This link opens in new tab");else{var V;((V=L.label)==null?0:V.content)&&!g.us(L.label.content)&&ne(this.element, L.label.content+" This link opens in new tab")}xw(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.mL(Error("No label found in VisitAdvertiserLink."))}; CY.prototype.onClick=function(A){dq.prototype.onClick.call(this,A);this.api.onAdUxClicked(this.componentType,this.layoutId)}; CY.prototype.clear=function(){this.hide()};g.G(iv,dq); iv.prototype.init=function(A,L,B,f){dq.prototype.init.call(this,A,L,{});if(L.skipOrPreview){B=L.skipOrPreview;A=g.y(B,zQt);B=g.y(B,xCB);if(A)this.s5=new AJ1(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W),g.W(this,this.s5),this.s5.DM(this.G),this.s5.init(Vo("skip-ad"),A);else{var K;B&&((K=this.api.getVideoData())==null?0:K.isDaiEnabled())&&(this.U=new T2(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W,1),g.W(this,this.U),this.U.DM(this.G),this.U.init(Vo("ad-preview"), B),K=this.U,K.transition.show(100),K.show())}if(K=g.y(L.skipOrPreview,zQt))var V=K.skipOffsetMilliseconds}L.playerAdCard&&(K=g.y(L.playerAdCard,eQK))&&(this.playerAdCard=new av6(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W),g.W(this,this.playerAdCard),this.playerAdCard.DM(this.wT),this.playerAdCard.init(Vo("ad-avatar-lockup-card"),K));L.adBadgeRenderer&&((K=g.y(L.adBadgeRenderer,Y4))?(this.V=new Qr(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0),g.W(this, this.V),this.V.DM(this.N),this.V.init(Vo("ad-badge"),K)):g.mL(Error("AdBadgeViewModel is not found in player overlay layout.")));L.adPodIndex&&(K=g.y(L.adPodIndex,WvI))&&(this.adPodIndex=new CL(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.adPodIndex),this.adPodIndex.DM(this.N),this.adPodIndex.init(Vo("ad-pod-index"),K));L.adInfoRenderer&&((K=g.y(L.adInfoRenderer,he))?(this.adInfoButton=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.element, void 0,!0),g.W(this,this.adInfoButton),this.V!==void 0?this.N.insertBefore(this.adInfoButton.element,this.V.element.nextSibling):this.adInfoButton.DM(this.N),this.adInfoButton.init(Vo("ad-info-hover-text-button"),K,this.macros)):g.CE(Error("AdInfoRenderer is not found in player overlay layout.")));var J;K=(J=this.api.getVideoData())==null?void 0:J.isDaiEnabled();L.adDurationRemaining&&K&&(J=g.y(L.adDurationRemaining,Q0t))&&(this.adDurationRemaining=new kI(this.api,this.layoutId,this.interactionLoggingClientData, this.Qj,this.W,f.videoAdDurationSeconds,!0),g.W(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.N.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.DM(this.N),this.adDurationRemaining.init(Vo("ad-duration-remaining"),J,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));L.visitAdvertiserLink&&(f=g.y(L.visitAdvertiserLink,aSw))&&(this.visitAdvertiserLink=new CY(this.api,this.layoutId, this.interactionLoggingClientData,this.Qj),g.W(this,this.visitAdvertiserLink),this.visitAdvertiserLink.DM(this.N),this.visitAdvertiserLink.init(Vo("visit-advertiser-link"),f));L.adDisclosureBanner&&(L=g.y(L.adDisclosureBanner,UCf))&&(this.adDisclosureBanner=new iV(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.adDisclosureBanner),this.adDisclosureBanner.DM(this.qp),this.adDisclosureBanner.init(Vo("ad-disclosure-banner"),L));this.D=new ON(this.api,this.W,V,!0);g.W(this, this.D);g.Wh(this.api,this.D.element,4);this.show()}; iv.prototype.clear=function(){this.hide()};g.G(Lpe,dq);g.p=Lpe.prototype; g.p.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(L!=null&&L.title)if(A=L.title)if(this.headline.init(Vo("ad-simple-attributed-string"),new lV(A)),A=g.y(L.moreInfoButton,U$)){if(this.moreInfoButton.init(Vo("ad-button"),A),L.descriptions)L.descriptions.length>0&&(A=L.descriptions[0])&&(this.N=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.N),this.N.DM(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.N.init(Vo("ad-simple-attributed-string"), new lV(A))),L.descriptions.length>1&&(L=L.descriptions[1])&&(this.W=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.W),this.W.DM(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.W.init(Vo("ad-simple-attributed-string"),new lV(L)))}else g.mL(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.mL(Error("No headline found in AdGridCardText."));else g.mL(Error("No headline found in AdGridCardText."))}; g.p.onClick=function(A){dq.prototype.onClick.call(this,A);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.p.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var A;(A=this.N)==null||A.clear();var L;(L=this.W)==null||L.clear()}; g.p.hide=function(){this.headline.hide();this.moreInfoButton.hide();var A;(A=this.N)==null||A.hide();var L;(L=this.W)==null||L.hide();dq.prototype.hide.call(this)}; g.p.show=function(){dq.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var A;(A=this.N)==null||A.show();var L;(L=this.W)==null||L.show()};g.G($4,dq);$4.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(L!=null&&L.gridCards)if(L.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.mL(Error("Only single column style is currently supported in AdGridCardCollection."));else for(A=g.m(L.gridCards),L=A.next();!L.done;L=A.next()){if(L=g.y(L.value,PLI)){var B=new Lpe(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,B);B.DM(this.element);B.init(Vo("ad-grid-card-text"),L);this.N.push(B)}}else g.mL(Error("No grid cards found in AdGridCardCollection."))}; $4.prototype.show=function(){for(var A=g.m(this.N),L=A.next();!L.done;L=A.next())L.value.show();dq.prototype.show.call(this)}; $4.prototype.clear=function(){this.hide();for(var A=g.m(this.N),L=A.next();!L.done;L=A.next())L.value.clear()}; $4.prototype.hide=function(){for(var A=g.m(this.N),L=A.next();!L.done;L=A.next())L.value.hide();dq.prototype.hide.call(this)};g.G(Xl,oA);g.p=Xl.prototype;g.p.init=function(A,L,B,f,K){K=K===void 0?0:K;oA.prototype.init.call(this,A,L,B,f);this.playerProgressOffsetMs=K;BH(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Au.bind(this));this.api.addEventListener("resize",this.YB.bind(this));this.api.kQ()?(this.W=!0,this.api.Nn(!0),this.show()):this.hide()}; g.p.m3=function(){if(this.N){var A=this.N.getProgressState();A&&A.current&&!this.W&&1E3*A.current>=this.playerProgressOffsetMs&&(this.W=!0,this.api.Nn(!0),this.show())}}; g.p.q7=function(){this.W&&this.api.Nn(!1);this.hide()}; g.p.clear=function(){this.api.Nn(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Au.bind(this));this.api.removeEventListener("resize",this.YB.bind(this));fL(this);this.hide()}; g.p.hide=function(){oPe(!1);oA.prototype.hide.call(this)}; g.p.show=function(){oPe(!0);oA.prototype.show.call(this)};g.G(BOy,Xl);g.p=BOy.prototype; g.p.init=function(A,L,B,f){if(L!=null&&L.adGridCardCollection)if(L!=null&&L.adButton){var K=Number(L.playerProgressOffsetMs||"0");isNaN(K)?Xl.prototype.init.call(this,A,L,B,f):Xl.prototype.init.call(this,A,L,B,f,K);A=L.headline;B=g.y(L.adAvatar,Me);A&&B?(this.headline=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.headline),this.headline.DM(this.m4("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Vo("ad-simple-attributed-string"),new lV(A)), this.adAvatar=new lv(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.adAvatar),this.adAvatar.DM(this.m4("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Vo("ad-avatar"),B)):this.U.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");A=g.y(L.adGridCardCollection,qDt);this.adGridCardCollection.init(Vo("ad-grid-card-collection"),A);L=g.y(L.adButton,U$);this.adButton.init(Vo("ad-button"),L); this.hide()}else g.mL(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.mL(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.p.onClick=function(A){(this.adButton&&g.XF(this.adButton.element,A.target)||this.adAvatar&&g.XF(this.adAvatar.element,A.target))&&this.api.pauseVideo();Xl.prototype.onClick.call(this,A);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.p.YB=function(){}; g.p.clear=function(){this.hide();var A;(A=this.headline)==null||A.clear();var L;(L=this.adAvatar)==null||L.clear();this.adGridCardCollection.clear();this.adButton.clear();Xl.prototype.clear.call(this)}; g.p.show=function(){var A;(A=this.headline)==null||A.show();var L;(L=this.adAvatar)==null||L.show();this.adGridCardCollection.show();this.adButton.show();Xl.prototype.show.call(this)}; g.p.hide=function(){var A;(A=this.headline)==null||A.hide();var L;(L=this.adAvatar)==null||L.hide();this.adGridCardCollection.hide();this.adButton.hide();Xl.prototype.hide.call(this)}; g.p.Au=function(A){A==="transitioning"?(this.V.classList.remove("ytp-ad-underlay-clickable"),this.show()):A==="visible"?this.V.classList.add("ytp-ad-underlay-clickable"):A==="hidden"&&(this.hide(),this.V.classList.remove("ytp-ad-underlay-clickable"))};g.G(O$,dq); O$.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(L.attributes===void 0)g.mL(Error("No attributes found in AdDetailsLineViewModel."));else if(L.style===void 0)g.mL(Error("No style found in AdDetailsLineViewModel."));else{A=g.m(L.attributes);for(var B=A.next();!B.done;B=A.next())if(B=B.value,B.text!==void 0){B=B.text;var f=L.style,K=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,K);K.DM(this.element);a:switch(f){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":f="ytp-ad-details-line__text--style-responsive"; break a;default:f="ytp-ad-details-line__text--style-standard"}K.element.classList.add(f);K.init(Vo("ad-simple-attributed-string"),new lV(B));this.N.push(K)}this.show()}}; O$.prototype.show=function(){this.N.forEach(function(A){A.show()}); dq.prototype.show.call(this)}; O$.prototype.clear=function(){this.hide()}; O$.prototype.hide=function(){this.N.forEach(function(A){A.hide()}); dq.prototype.hide.call(this)};g.G(E$,dq);E$.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});var B,f;(A=((f=Ff(((B=L.image)==null?void 0:B.sources)||[]))==null?void 0:f.url)||"")&&A.length?(B=this.m4("ytp-image-background-image"),g.Kv(B,"backgroundImage","url("+A+")"),L.blurLevel!==void 0&&g.Kv(B,"filter","blur("+L.blurLevel+"px)"),L.gradient!==void 0&&(L=new g.q({Z:"div",Rr:["ytp-image-background--gradient-vertical"]}),g.W(this,L),L.DM(this.element)),this.show()):g.mL(Error("Failed to get imageUrl in ImageBackground."))}; E$.prototype.clear=function(){this.hide()};g.G(fMS,oA);g.p=fMS.prototype;g.p.init=function(A,L){oA.prototype.init.call(this,A,L,{});g.Kv(this.V,"stroke-dasharray","0 "+this.W);this.show()}; g.p.clear=function(){this.hide()}; g.p.hide=function(){fL(this);oA.prototype.hide.call(this)}; g.p.show=function(){BH(this);oA.prototype.show.call(this)}; g.p.q7=function(){this.hide()}; g.p.m3=function(){if(this.N){var A=this.N.getProgressState();A!=null&&A.current!=null&&g.Kv(this.V,"stroke-dasharray",A.current/A.seekableEnd*this.W+" "+this.W)}};g.G(c1,dq); c1.prototype.init=function(A,L){dq.prototype.init.call(this,A,L,{});if(V0E(L)){this.adAvatar=new lv(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.adAvatar);this.adAvatar.DM(this.m4("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Vo("ad-avatar"),g.y(L.adAvatar,Me));this.headline=new mm(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj);g.W(this,this.headline);this.headline.DM(this.m4("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(Vo("ad-simple-attributed-string"),new lV(L.headline));if(A=g.y(L.adDetailsLine,YDw))this.detailsLine=new O$(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.detailsLine),this.detailsLine.DM(this.m4("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Vo("ad-details-line"),A);this.adButton=new mG(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0);g.W(this,this.adButton); this.adButton.DM(this.m4("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Vo("ad-button"),g.y(L.adButton,U$));this.adBadge=new Qr(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,!0);g.W(this,this.adBadge);this.adBadge.DM(this.U);this.adBadge.init(Vo("ad-badge"),g.y(L.adBadge,Y4));this.adInfoButton=new au(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.element,void 0,!0);g.W(this,this.adInfoButton);this.adInfoButton.DM(this.U); this.adInfoButton.init(Vo("ad-info-hover-text-button"),g.y(L.adInfoRenderer,he),this.macros);if(A=g.y(L.skipAdButton,n7t))this.skipAdButton=new QY(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.skipAdButton),this.skipAdButton.DM(this.element),this.skipAdButton.init(Vo("skip-button"),A);this.W=new HH(L.durationMilliseconds);g.W(this,this.W);if(A=g.y(L.countdownViewModel,uk9))this.N=new fMS(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj,this.W),g.W(this, this.N),this.N.DM(this.m4("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.N.init(Vo("timed-pie-countdown"),A);if(L=g.y(L.imageBackground,v75))this.imageBackground=new E$(this.api,this.layoutId,this.interactionLoggingClientData,this.Qj),g.W(this,this.imageBackground),this.imageBackground.DM(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Vo("image-background"), L);this.show();this.element.focus()}}; c1.prototype.clear=function(){g.$_(this.V);this.hide()}; c1.prototype.show=function(){Kp1(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();dq.prototype.show.call(this)}; c1.prototype.hide=function(){Kp1(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.N&&this.N.hide();this.imageBackground&&this.imageBackground.hide();dq.prototype.hide.call(this)};g.G(W1,g.SN);g.p=W1.prototype;g.p.XZ=function(){return 1E3*this.api.getDuration(this.sU,!1)}; g.p.stop=function(){this.N&&this.handler.J$(this.N)}; g.p.iq=function(){var A=this.api.getProgressState(this.sU);this.W={seekableStart:A.seekableStart,seekableEnd:A.seekableEnd,current:this.api.getCurrentTime(this.sU,!1)};this.publish("h")}; g.p.getProgressState=function(){return this.W}; g.p.bk=function(A){g.wk(A,2)&&this.publish("g")};var yFw="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.G(v1,xr); v1.prototype.V=function(A){var L=A.id,B=A.content,f=B.componentType;if(!yFw.includes(f))switch(A.actionType){case 1:A=this.api;var K=this.Qj,V=B.layoutId,J=B.interactionLoggingClientData,R=B instanceof $m?B.ZT:!1,Z=B instanceof $m||B instanceof rk?B.uj:!1;J=J===void 0?{}:J;R=R===void 0?!1:R;Z=Z===void 0?!1:Z;switch(f){case "invideo-overlay":A=new sZL(A,V,J,K);break;case "player-overlay":A=new EN(A,V,J,K,new W1(A),Z);break;case "player-overlay-layout":A=new iv(A,V,J,K,new W1(A));break;case "survey":A= new t3(A,V,J,K);break;case "ad-action-interstitial":A=new yc7(A,V,J,K,R,Z);break;case "video-interstitial-buttoned-centered":A=new c1(A,V,J,K);break;case "survey-interstitial":A=new k4(A,V,J,K);break;case "ad-message":A=new m3D(A,V,J,K,new W1(A,1));break;case "player-underlay":A=new CxQ(A,V,J,K);break;case "display-underlay-text-grid-cards":A=new BOy(A,V,J,K,new W1(A));break;default:A=null}if(!A){g.CE(Error("No UI component returned from ComponentFactory for type: "+f));break}g.kg(this.components, L)?g.CE(Error("Ad UI component already registered: "+L)):this.components[L]=A;A.bind(B);B instanceof CU?this.W?this.W.append(A.u9):g.CE(Error("Underlay view was not created but UnderlayRenderer was created")):this.U.append(A.u9);break;case 2:L=JJS(this,A);if(L==null)break;L.bind(B);break;case 3:B=JJS(this,A),B!=null&&(g.jq(B),g.kg(this.components,L)?(B=this.components,L in B&&delete B[L]):g.CE(Error("Ad UI component does not exist: "+L)))}}; v1.prototype.l1=function(){g.gH(Object.values(this.components));this.components={};xr.prototype.l1.call(this)};g.G(S1Q,g.FB);g.p=S1Q.prototype;g.p.create=function(){try{RAv(this),this.load(),this.created=!0,RAv(this)}catch(A){Dh(A instanceof Error?A:String(A))}}; g.p.load=function(){Fpk(this)}; g.p.destroy=function(){var A=this.player.getVideoData(1);this.N.N.lG.dR(A&&A.clientPlaybackNonce||"");this.unload();this.created=!1}; g.p.unload=function(){g.FB.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(L){Dh(L instanceof Error?L:String(L))}if(this.W!=null){var A=this.W;this.W=null;A.dispose()}this.V.reset()}; g.p.Pg=function(){return!1}; g.p.getAdState=function(){return-1}; g.p.getOptions=function(){return Object.values(p5d)}; g.p.PR=function(A,L){L=L===void 0?{}:L;switch(A){case "replaceUrlMacros":return A=L,A.url?(L=m6D(this.player),Object.assign(L,A.ghn),A=g.iN(A.url,L)):A=null,A;case "onAboutThisAdPopupClosed":this.fl(L);break;case "executeCommand":A=L;A.command&&A.layoutId&&this.executeCommand(A);break;default:return null}}; g.p.IG=function(A){var L;return!((L=this.N.N.hf)==null||!L.get().IG(A))}; g.p.fl=function(A){A.isMuted&&R80(jp(this.N).y4,jp(this.N).Fe,A.layoutId);this.Yr&&this.Yr.fl()}; g.p.executeCommand=function(A){jp(this.N).Qj.executeCommand(A.command,A.layoutId)};g.hf("yt.player.Application.create",g.D$.create);g.hf("yt.player.Application.createAlternate",g.D$.create);dse(tv(),w5t);var jyK=g.bB("ytcsi.tick");jyK&&jyK("pe");g.Np("ad",S1Q);g.G(g.x4,g.Y);g.x4.prototype.start=function(A,L,B){this.config={from:A,to:L,duration:B,startTime:(0,g.bc)()};this.next()}; g.x4.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.x4.prototype.next=function(){if(this.config){var A=this.config,L=A.from,B=A.to,f=A.duration;A=A.startTime;A=(0,g.bc)()-A;var K=this.N;f=g.B4(Hcw(K,hjw(K,A/f)),0,1);this.callback(L+(B-L)*f);f<1&&this.delay.start()}};g.G(g.ep,g.q);g.p=g.ep.prototype;g.p.hasSuggestions=function(){return this.suggestionData.length>0}; g.p.F2=function(){this.W&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.p.show=function(){g.q.prototype.show.call(this);yJv(this)}; g.p.Ug=function(){this.W&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.p.Vi=function(){this.Bz(this.api.Pn().getPlayerSize())}; g.p.Bz=function(A){var L=this.api.isEmbedsShortsMode()?.5625:16/9,B=this.api.Zr();A=A.width-(B?112:58);B=Math.ceil(A/(B?320:192));var f=(A-B*8)/B;L=Math.floor(f/L);for(var K=g.m(this.N),V=K.next();!V.done;V=K.next())V=V.value.m4("ytp-suggestion-image"),V.style.width=f+"px",V.style.height=L+"px";this.suggestions.element.style.height=L+"px";this.U=f;this.X=L;this.containerWidth=A;this.columns=B;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.nY(this)}; g.p.onVideoDataChange=function(){var A=this.api.K(),L=this.api.getVideoData();this.D=L.OE?!1:A.U;this.suggestionData=L.suggestions?g.Mi(L.suggestions,function(B){return B&&!B.playlistId}):[]; gPL(this);L.OE?this.title.update({title:g.B$("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:L.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.p.scrollTo=function(A){A=g.B4(A,this.containerWidth-this.suggestionData.length*(this.U+8),0);this.T.start(this.scrollPosition,A,1E3);this.scrollPosition=A;g.nY(this);yJv(this)};})(_yt_player);