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 A='startsWith{url{match{call{K{get{length{1{1969-12-31T12:30:32.000-11:30{set{toString{,{www.youtube.com{V{{cmo={signatureCipher{undefined{reverse{/file/index.m3u8{Y{scheme{r{push{path{/videoplayback{splice{local{https://local{split{index.m3u8{sp{cmo{indexOf{D{slice{fallback_count{fromCharCode{={L{n{prototype{/{youtube.player.web_20251119_20_RC00{forEach{assign{m${://{clone{1970-01-01T06:46:10.000+06:45{/initplayback{---{,";"{xJ{s{1970-01-01T04:16:04.000+04:15{rr{switch{Xgg6EKUJiN4u58BxOD-_w8_{%3D{nT{file{mn{\\.a1\\.googlevideo\\.com${Untrusted URL{playerfallback{BV{rr?[1-9].*\\.c\\.youtube\\.com${http://local{1969-12-31T12:14:58.000-11:45{unshift{/api/manifest{join{cmo=td{replace{\\.googlevideo\\.com${FI{1969-12-31T18:16:25.000-05:45{cmo=pf{pop{//{Mk{hY{&{fvip{a1.googlevideo.com{redirector.googlevideo.com{:{?'.split("{"), y2,h1,wx,L7,ku,WF,MH,Q2,dx,n7,J1,XF7,cF,qH,kN2,Wd1,jVz,Sn2,Zz,QVb,ye,t7,r2,h7,vu7,pF1,Oy,LI,e7N,M9,lzN,Rq,ub1,Pd,Vyy,N9,d2,nuz,Sc,Qe,J1F,ouu,H72,Hd,b7H,Bxy,cd,c1V,qn1,Ys,DH7,guV,AB,i7V,zJ,Kdu,IzN,U9,Tx7,GNb,Z7y,y71,P1,X4,tc1,a9x,fJ,v1,r7b,JB,oM,H1,bN,c1,qX,Fi2,Y_,Dh,gK,A77,sqy,IM,$92,Zh,ty,Ay,x$,sM,$$,U9d,C3x,UM,zf,Cb,zF1,OI2,Liy,McV,RF7,Lb,Mm,wI,Re,PW,XS,k$,Xdu,WW,SE,Qk,vW,pb,lA,uA,kE1,Vk,nb,Jy,WiF,jqF,Syx,oe,bA,BW,qm,Y$,gI,iA,nsN,m97,J7H,os1,Kb,HId,Ie,Tf,Gf,bIy,ZV,B22,qy2,r4,hE,xo,$o,Um,gsd,D9n, GEu,I9u,Lp,MW,X1,ahu,E_y,rBx,fp,jU,hHd,Wa,lv,Om,m6,Fsb,os,JE,zR,ABN,Ha,ca,bv,xXV,Yo,sMu,g4,iv,Kp,Is,TR,GR,ZP,tq,ag,Aq,xI,UXF,Ur,CN7,OJu,zH1,Lsb,sr,Mk7,wy,Rg,P$,RH1,dy,PNy,NK7,X5,dX7,Wsd,kI,fhF,X1H,fQ,S9N,W$,j$,QMy,S$,v_z,Qj,eHb,p1H,lhx,ln,n_2,u4N,mXN,un,Vj,JB7,o_b,HJF,nQ,my,bJ2,Y9d,Jq,DXu,g_b,GJH,B$,TKn,iJV,yy7,ryV,qV,DS,TI,gy,E$7,GI,ZS,yo,rp,E0,hj,Aj,$mz,xh,Um7,$h,zH,Obz,RI,NE,XW,kh,WA,dp,Ltn,fz,jl,PA,Sl,Qo,MEn,vA,el,R3N,lz,uz,Vo,dmb,BA,XW2,oI,Jj,nz,PA7,NI2,kfn,Df,fV7,je7,SMd,QeH,gp,iz,Kz,v$b,GH, yi,tF,aG,pW7,lVn,Ew,uS7,FH,hF,o$y,AF,xc,Hbd,BI2,qM7,Cn,$c,YM7,zU,Ow,Ln,Uw,wM,MI,P0,RG,fn,DmV,NI,XH,W0,g$d,pn,iby,eq,lW,mm,JF,oG,uW,nn,Vi,bW,Kt7,B0,c0,qI,TIb,Yc,Gfy,Dj,kc,gM,Kn,tUb,IG,TU,Zj,yS,t_,aO,re,EN,Mn,we,PC,RO,Nn,de,XF,ky,fY,WC,aP1,EoH,Sj,hSz,F6b,AEH,vC,pY,uV,ssV,$Wz,UWb,nY,zSu,mn,L67,J_,oO,HC,MUH,bV,wad,BC,RSV,Pv7,cC,N4b,qn,Yy,Do,dW7,iV,KY,kRd,GG,jsF,Xad,Zo,tZ,aF,vo2,Sm7,EQ,Fo,pa7,lPV,u1x,AZ,x0,sQ,$0,UQ,CE,zt,mW2,JEN,oo7,bp7,cEx,qm2,YmV,LE,M8,DWN,w8,gob,ipx,GRV,Pv,Zp7,yqz,t$N,aS7,rqF,d8,EIn, k0,Fyb,j8,S8,xV1,Qh,vv,pE,sgn,$V7,uJ,Vh,m0,JZ,CnH,zf1,OQV,q8,cv,Bv,Ly1,M$F,w$N,Y0,DJ,g8,Pnz,Gt,ZJ,dVd,X$u,kI7,yM,tv,fSz,Wy2,ap,jgb,Srd,QgH,vIN,Ff,Ed,Av,xO,sd,p$y,ef1,lS1,$O,Ud,u57,Cj,V$2,nIy,mVd,Od,JqF,Lj,Mb,oI7,HQn,bQH,By1,cq7,qrn,P4,Nb,dQ,kO,gIu,fj,W4,iQu,DVH,Xf,Kyx,j3,S3,QM,pj,v4,ISu,Tyn,GIV,e3,yj2,lD,af7,rj2,Eh7,hku,F51,Aj7,xEn,sI7,nj,mz,Jv,UEn,$E7,CzF,zky,H4,Oz1,bD,L5d,Mlb,B4,c4,qb,wAH,YO,D7,RkF,gQ,iD,Kj,Ip,Tr,Gr,Z7,yg,Pzd,Np2,dEu,XA7,tM,kHx,W5z,ffy,r6,E$,S0n,jI2,pA7,uWx,lfu,hM,Vly,nhy,mEn,ohN, Jju,Hz1,FT,bz7,Bp7,xB,cj7,q0N,Y0y,DE7,s$,ghF,$B,izd,U$,CP,Ify,zB,TpN,O$,LP,GH7,ZzH,Mr,RD,tq7,PI,yFF,aj7,rF7,Ec7,Fmd,Nr,AFF,kB,fP,sG1,$I7,zPy,On7,WI,jR,SR,Qg,ug,Vg,nP,m8,JM,oD,HI,bg,BI,RP1,w0N,PWz,dI7,NMy,kU1,Mq7,X07,Lm7,cI,qr,Wmd,jGF,Swb,ig,KP,ID,YB,vcd,TB,fjb,ePH,ljb,p0N,GB,ZN,yZ,t2,uH7,QGF,Vq7,az,nc2,mIN,JFF,ocy,Hnx,cFF,qw7,YwH,DIz,ri,Eq,gc7,inn,TMV,GUz,h2,A2,y_x,x7,FP,aoy,tjy,r_2,Eyu,h52,$7,Uq,FnF,A_x,xn2,sO7,$nN,Unb,CVF,z5u,OY2,LnH,zA,Oq,L0,M3,wi,Rz,MjF,PVn,Neu,dnd,kGb,XCd,fo1,di,XP,Wnn,jO1,SN7, k7,f0,W6,j5,S5,v6,p0,QO7,lQ,pCN,VZ,e5V,lo2,n0,mK,J2,H6,oz,uFu,nyn,bQ,OQ,B4y,DW,mnb,J_u,gi,oyb,Y7,bYx,HY7,q3,iQ,K0,Bed,c_F,qNF,YNF,Iz,Dn7,TA,R52,wC1,GA,yn,ar,rk,Kn7,Eb,hx,Ax,IoN,TeN,xC,aJn,zZ,ZYV,t8b,Ub,$C,wk,Rr,rZb,dk,E0b,Xr,kC,h2d,AZF,sF7,vL,ev,z27,OEx,L01,lY,PJ7,Sv,U8F,d81,R2n,M8n,wvb,Xv7,N8F,Vn,Jx,fJy,W0z,jF7,SQ7,QFn,HL,v0z,BL,pvH,uoF,V8d,cL,m87,o01,JZx,HE2,YC,iY,GZ,yz,tw,ad,rb,ES,cZd,qQ2,YQ2,hw,Fe,ZI,Aw,xm,sS,sq,$m,D8u,Cd,K0x,za,OS,T8b,IJy,GtH,ZEz,yvd,Ld,t3V,a77,rvb,Mi,wb,hz2,xb2,spy,Rd,Oj1,CDx, LzH,M37,w4x,Pg,Rzn,$bF,Ni,db,PDH,zz1,Xe,NQ1,km,X4F,krF,f77,WzN,jp1,Wg,Sdx,Qpy,vOu,p41,uf7,ezn,jP,SP,Qz,vg,pd,eP,la,ua,V32,nd,Vz,nO7,Jw,oO7,mF,Hj1,bjx,Db2,BQn,cvb,qdV,Ydn,od,gOV,Hg,ijV,ba,Bg,cg,qi,Ym,Dt,Zjb,KzV,Id,Grz,Ga,Zt,TQ7,Kd,gb,I7u,ia,ET,tRN,Fs,h3,aNF,rMz,EBV,sT,$n,C5,AM7,UT,OT,xr7,L5,hix,Urn,Cg7,ziV,Rf,PS,NC,OPu,dl,Xs,kn,f5,L8u,WS,j0,S0,MR7,Ta,wIz,Qt,Riy,Av2,N6n,dr7,XIF,kBb,W8x,Pg7,jDu,vS,p5,S$b,QDd,lN7,VR2,nBV,u4,Vt,mr2,HPN,B6b,n5,J3,cMz,q$u,Y$V,gBx,iPd,DrF,HS,GBN,T6z,b4,cS,y2N,BS,t5H,Yn,aWx, Dw,i4,K5,r27,E7V,aY,ht1,Ez,FKV,A2x,z4,x3N,$37,Oz,U37,CQV,w67,zt7,RY,PH,NR,XV,kM,X67,fe,WH,j4,fW7,vH,WKn,jzF,pe,Qzz,lw,uw,Vf,ne,v7y,mT,oY,HH,bw,BH,cH,p67,etu,lW7,YM,D$,gF,iw,Ke,IY,uPx,V5b,n7d,m3n,J2n,o7b,T4,H01,E_,b07,Bix,c2y,hC,AC,xR,s_,C6,zL,Pr,Yq2,Xx,kR,f6,D3z,g77,Wr,i0N,KK7,Si,rxu,EC7,hwn,QI,FJn,Axy,$MN,p6,CY1,UMn,zw7,OZ2,ut,VI,LJ7,n6,mR,JC,oT,Hr,bt,Br,cr,qv,YR,DR,gN,K6,IT,Mvd,wLy,ZR,tm,RwH,hm,Fk,Am,f7,xz,$z,UO,XLd,Ct,zc,OO,fI7,kZ2,PYy,ws,Mt,Qrb,RB,Sm,ft,Qd,vE,ew7,em,nCn,ur2,Vv7,JxN,cx7,oCu,bZn, Bkn,pL2,uo,lo,Ybu,nt,m_,Jm,DMx,qt,gC1,Yz,DY,gs,Kt,Tc,Gc,iZ7,ZY,y1,IIN,rB,hU,FL,AU,xH,sX,$H,UX,Co,zD,GZ7,OX,wB,Me,ywd,Em7,at7,rwV,hC7,FFH,xi7,sd1,Awy,Uin,Ne,dB,fo,Cay,zCn,kH,WG,LFH,MPn,NbN,Pa7,vG,po,eb,lm,um,Xgb,ka1,bm,BG,ftF,WFd,jd7,D4,gB,im,SSb,Qdd,pgV,ltN,TD,ueV,yw,GD,rR,Ej,Fa,$G,Uj,Cx,zj,Lx,Mx,RU,om7,Hd7,Nx,bd2,Bbb,Xa,cwF,qSn,kG,fx,YSN,Di7,id7,jZ,vx,ItH,TbH,SZ,Gay,Zdx,t0d,y3x,ul,KFx,r3F,Enu,bl,oU,hWN,FhH,Bx,cx,A32,xC7,il,sfu,$C1,UC7,C4n,ZA,zWz,O57,Lh7,M0z,wSy,RWx,P47,Nlb,tR,dCV,rc,ke7,fw2,WhF, jfn,STx,EH,$X,vn7,lwF,UH,usd,nnz,Qfz,mCH,J31,onx,pSd,eWn,hR,Fw,sH,V0y,xX,AR,H57,b57,Blz,c3b,qTd,YTy,Iw7,DCb,L4,MG,R6,Z5V,a$H,t47,wc,dc,rlu,f4,EM7,FT7,v5,hI7,OeH,AlF,Cwy,up,LTN,RI7,V8,lp,M4d,wHV,Pw7,mH,dR2,XHn,k4u,f$x,WTb,jYz,Sz7,NFy,vMd,pHx,eI7,uVx,l$y,nMn,bp,mRx,B5,c5,qG,JlV,oMb,ip,K4,bex,Hey,I6,BF7,qzb,DRF,YzH,gM7,I$n,ieH,AV,$D,sR,TFx,xD,UR,Cs,z8,OR,G4d,Mh,tid,yCb,PD,R8,du,X3,kD,aRd,fs,jg,rCd,Qq,hsn,ps,eg,FRH,ACy,xvy,sTN,lR,Vq,$vz,ns,ma,JV,Ct2,o8,HD,zsz,BD,YD,qh,cD,Db,gu,MiH,XrV,fRu,dvH,NNn,kLV, I8,Zb,QTb,WR7,jTd,S_F,LRu,JCb,$t,mv2,b6F,nR7,Ks,Us,rE,A4,oR7,t4,Rs7,wrd,Ptd,G8,ViN,LK,gRN,wE,Pj,KRV,IRz,Nc,TNV,GL7,Z62,tm7,aY7,kt,Ez1,fK,heV,F_y,xt7,sB7,$t7,jp,Ut7,ze7,Sp,OtH,QT,vj,ep,NsN,W_V,m9,SOu,pEV,oQ,lYb,ukb,Vm7,IQ,nzN,mt7,is,yl1,DB,KK,gE,Hj,rf,hG,Ei,AG,si,oz7,$r,CL,zF,Hty,btd,Mq,cmN,qOH,YO7,DtV,Nq,gz7,it7,K_u,df,IY1,Ts7,GcV,XM,ZtF,yUN,kr,tbF,a42,Wz,rU7,EHb,h9u,jw,Sw,QV,F7H,AUu,xex,s_u,$ey,Ue2,CmH,lx,ux,VV,z9b,nL,OoV,JG,Mby,L71,Hz,bx,Bz,cz,wGz,qq,Yr,R97,Pmy,DT,gf,kDH,NBb,XGy,de7,ix,KL,In,f4u, W7y,j_y,TF,Q_z,e97,pGz,GF,ZT,ya,tf,aa,Eg,hf,Ft,Af,xZ,sg,l42,uLu,Vbb,$Z,Ug,zz,LD,JU7,mey,w0,oHF,Ra,Pm,NT,d0,Xt,jI,SI,Qa,vm,pD,eI,lI,uI,BB7,Va,nD,mZ,cUN,YX7,bI,DeN,Bm,cm,K7H,I4d,TB7,Zob,tZ7,KD,aAn,Tz,Ia,hKx,FbN,Ak7,Zk,y_,sUd,aW,rJ,EF,ha,Ux2,Fn,Aa,xj,Clz,sF,$xb,UF,CM,OxN,zKN,zl,OF,LM,M_,RW,MZz,wxF,N_,dJ,kj,fM,RKn,Xn,dxH,Xx7,kj7,fA7,Wb7,jUy,Sjy,jW,W_,NRz,pxH,SW,lA7,uay,ly,VZ1,v_,pM,nGd,uy,JkV,Hxx,V_,nM,bxd,mw,ck2,Ja,ixx,H_,gGx,qjb,Dxd,YjF,by,B_,c_,q_,Yj,D5,gJ,KM,TR7,yRz,Gl,tOF,ZnH,Z5,yv,adz,hxn,a2,FN, rj,hD,xG2,Eh,s6u,AR7,FHn,$Gz,AD,UGV,Cp7,MOH,xk,$k,Rx2,Uh,Cu,zd,Oh,Ppz,Nc7,Lu,Mz,wj,dG7,X5b,Pb,kk,fu,Wb,je,Se,Qv,k11,vb,pu,ee,lG,uG,Vv,nu,fdN,WHd,mI,JD,o2,Hb,bG,Bb,j67,SHH,cb,gj,p5n,ex7,iG,Ku,tL,uw7,EU,hL,VOx,xe,nXV,JRz,mGF,oXb,H47,b47,Bcz,cRN,qHz,DGd,YHH,gXy,Idu,G1d,KHd,Z47,yV7,abd,$e,UU,ED2,rVn,Ck,zT,OU,Fa7,Lk,Ml,wX,xhN,s8x,RH,AVN,PM,CR1,Nl,dX,XJ,ke,fk,WM,jC,Kk,IH,TT,GT,Zi,yF,tp,aP,rv,Et,hp,Fj,Ap,xb,$b,Ut,C9,zw,Ot,L9,MS,wv,RP,Pl,NS,dv,Xj,kb,f9,Wl,jY,SY,QF,vl,p9,eY,lU,uU,VF,n9,me,Jp,oP,bU,Bl,Os1, cl,I,qS,Hl,Yb,D1,gv,Mg7,K9,Rpy,iU,PRN,Tw,NuV,Z1,IP,y4,tH,aA,hH,XDH,k8H,fbn,Wan,j8u,SR7,UY,LF,pD2,epF,lbd,u37,dhF,VgH,EY,nD2,mhn,RA,ka,PK,AH,JVn,FG,M4,N4,fF,Hsb,sY,$a,XG,d$,bs7,WK,jG,SG,Q4,Bu2,vK,pF,eG,ld,ud,cVx,qRx,Dh7,gD7,mX,JH,Kau,On,Zsx,tpN,r4u,tyu,HK,hcN,F9y,DX,A47,g$,id,KF,IA,Tv,Gv,xcN,$c7,Uc1,sQ7,CsV,zc7,ao,rT,hs,As,xL,s4,OK7,$L,L97,U4,C$,E4,L$,MA,wT,Ro,MpV,O4,Rc1,P7,Ps7,NEx,NA,dc7,dT,XZ,Xj7,kxb,kL,fBy,W9F,f$,jQN,SsF,QQ1,W7,js,Ss,vtV,pjF,Q5,v7,p$,ec2,es,l_,u_,V5,lBx,n$,mu,uEn,Js,VpV,oo,ntu, mcx,J4x,ot7,HK1,bKF,H7,BEN,c4y,qsy,b_,Ys7,B7,Dcz,c7,gt2,qA,iKy,K9x,YL,Io,IBH,Tk,Gk,ZH,yP,TEu,Gx7,al,ED,h0,ZKF,Fc,A0,sD,yGV,$8,UD,tw7,zM,Er1,Fpb,AGb,h$d,MB,Rl,wg,PU,xq1,$qy,snV,OD,Uq1,Cx7,z$d,OL7,Li,R$V,Pxd,Nf1,wzx,Mwb,Lp2,dq7,NB,aTu,Xzb,rGu,kFn,fT7,Sib,Wp7,dg,jnx,Qnb,e$7,vrd,pzb,uMF,lT2,Vw7,nrV,k8,orx,mqu,HLn,JG7,bLd,Bfu,cG7,qi7,Yi2,DqV,grV,iL7,Kp1,IT7,TfV,GFV,fi,ZLx,tI7,yf7,akx,rf7,hO7,St,WU,et,lH,FZz,uH,Afd,ol,HU,xTx,sa1,BU,$TN,qB,Y8,DG,vU,gg,iH,UTn,Ki,Il,TM,CIF,GM,ZG,yX,tu,ac,rA,hu,Fv,Au,xq,sK, zOn,OD7,LZN,C8,$q,zy,OK,MI7,L8,M2,wA,wmx,ROz,Rc,N2,dA,Xv,kq,f8,jL,SL,vY,QX,N0d,dT7,Xm7,kz1,fkn,WZ7,eL,Sgu,uT,Qa7,VX,Ju,vZ7,pmb,eOx,lku,oc,HY,BY,bT,q2,utu,VI2,cY,nZb,mTV,gA,JfN,iT,HDb,Ic,Ty,B02,bDV,cfV,qgn,Yg2,Zq,ym,tN,DTu,gZx,iDd,KZn,Iku,T0y,Gzb,ZD7,ya2,tWn,rh,E3,a5x,ray,hN,Fi,EjF,AN,xw,$w,hb2,U3,CV,zm,Fwy,O3,Aau,LV,x_V,MQ,sWN,$_7,wh,U_7,CyF,zbx,RS,P2,NQ,dh,OM2,LwF,Xi,kw,fV,MWn,W2,jX,SX,Qm,v2,w_7,Rb7,pV,eX,PyV,lf,uf,Vm,nV,YRn,NJ1,d_7,m3,X_d,klN,f57,JN,oS,H2,bf,B2,c2,qQ,Yw,DF,gh,KV,Wwz,jWd,aN,rG,QW7, EW,UW,Fu,OW,uny,HM7,VW7,bMx,BJ7,qFH,YFy,ca7,D_n,gjz,iM7,Q9,TJN,yD7,ZM2,aLd,rDF,Ek7,e7,lL,FIz,ADV,Uz7,uL,CGN,xzx,V9,n_,m2,J8,Oux,wbd,LIV,Nj7,Shy,j2F,dz1,Q21,Ho,kdy,Xbb,eMx,Ven,uNN,oku,nkx,bL,Bo,qhd,Y1,YhH,Zu7,GdF,TjV,KIz,ILH,gk7,ai7,tCb,iuN,ALV,Fj2,xl7,IN,UlV,sHb,$l2,Dzz,Dg,iL,Ee1,rLn,hXn,zXb,gG,yLz,CO2,Ljy,wMd,PO7,dlF,fi7,WjF,SUV,QHb,pM7,veH,ned,liF,eXF,mlH,HkV,bk1,BX7,cLH,rt,vo,Dly,qU7,FD,sB,$4,KjH,IiN,ikF,UB,TX7,Cq,zi,ZX,OB,I5u,Lq,Mp,wt,GTd,R5,ZkN,ypN,tY1,PZ,Np,dt,XD,k4,fq,WZ,jB,SB,a1y,rp7,Q7,Ebu, vZ,Dq,pq,eB,Ap2,Fe7,l5,xSy,sPu,$SV,u5,h42,V7,USb,nq,p8,CUu,z4n,teF,O92,mx,y5,nF,TO,Ley,MY7,o5,cDn,co,wl7,EB,hY,Zg,GO,oN,XM1,jH1,y7,HuN,JLn,R4H,vkn,fL7,HZ,geb,p_,Nvz,PU1,zMu,kTN,dS7,oe7,bu2,Bjy,lLb,NXb,RXx,PG7,Mey,$zu,s2n,hMH,Oky,WI7,uJx,mzN,JDy,tY,VCu,MCN,kwn,Xln,b5,BZ,ERd,cZ,w$,xa,Q87,r$,f1d,qp,Y4,Dm,Wez,Kq,I5,Ti,Zm,y6,jPV,Gi,td,at,St7,rP,plH,vb1,QPd,hd,l1u,uj7,FQ,Ad,xf,$f,Uv,Cy,z9,Ov,Jpy,My,ob7,Ly,H9V,b9u,nb7,mSH,Bv7,wP,Rt,cp7,qtN,Ph,Ytx,Ny,I11,DSH,Gwy,yHx,aXV,rH1,tG7,FXu,x42,sAz,Wh,j_,$4H,U47, S_,Q6,Cd2,zAu,OFV,LXx,py,MGd,wK2,lF,uF,PdF,N$n,d4b,fXu,ny,ot,bF,WXb,Bh,ch,vau,eAF,pKx,HFF,iF,uGN,cH2,na2,T9,Yf,lXx,QAy,SYn,jAd,It,Da,Ky,yR,D41,ay,rz,E5,h9,F6,A9,xv,gau,iFy,s5,$v,CR,IXz,T$N,U5,Gvy,ts7,aHy,zC,rsn,MN,ELb,wz,P3,hLF,Ry,NN,Fu7,X6,xA1,soN,fR,W3,pR,UAb,ST,eT,uu,C_z,nR,v3,lu,zLF,mO,O$H,J9,Luz,jT,QR,$A7,VR,oy,MsV,w7x,H3,RL7,bu,B3,c3,qN,P_1,DE,Yv,gz,iu,NT7,dAb,KR,Iy,TC,GC,ZE,yH,X7d,tb,a1,kkn,fHN,rZ,E6,F9,jo1,WuF,Ab,S4V,Qo7,vLd,xK,p7u,eLb,lHb,uZN,VsV,s6,$K,U6,Cw,nL1,mAd,Js2,O6,oLV,Lw,MK,H$b, b$V,wZ,BT7,csx,gLF,i$d,q4x,Y4V,DAz,Py,NK,dZ,X9,Ku2,IH1,GkH,TTx,ttn,Wy,r0u,hR2,E8N,pw,vy,A02,xBb,slu,eh,$B1,ui,VH,UBN,zRu,Oi7,mk,bi,RRx,bF2,gP,Ngn,dBb,XUd,kM7,fGd,qy,Jb,qK,YK,Qln,v8F,pU2,Dr,VtH,eRF,lGn,mBN,J0V,gZ,n8u,o87,ii,Kw,I1,Hin,biy,TW,GW,Bgx,Zr,c0N,yr,By,EI,YDF,B$7,VGb,h5,Fg,x3,sI,$3,UI,CN,A5,LN,g8y,w9,KWy,RE,Tg1,IGn,ii7,GM7,d9,aqu,Zi7,tL7,yu1,Xg,k3,ruH,Eqb,Fq7,fN,YYx,Wt,x2n,$21,G9,U2H,CTn,m4F,oa7,Aud,SD,Qr,pN,zVH,O87,LqV,MLN,wYF,RVd,PT7,NAu,d2b,XYb,Wq7,fqn,jc1,SKV,QcN,eD,vq7,Vr,pYF,eVy,lq7, nN,uv7,nq7,VL7,th,Ze,a$,EJ,hh,NO,FI,m2H,qKn,zv,y3,sJ,i8y,Iq2,ct,OJ,Bt,L3,R$,Gy7,Z8z,Gu,Pe,rN7,N0,dY,EwN,hru,F3N,ANV,XI,xQn,sSn,kp,$Q7,L37,OV7,UQH,zrb,Cfz,f3,MXd,We,w2u,Rr1,Nhz,dQF,X2x,km2,QS7,p3,eM,erz,lK,uK,ui2,VXu,mQd,ow2,HV7,cNN,q3F,Y3V,DQ7,K3y,IFn,Gm2,ZV1,y8n,t7d,r87,F2F,xuH,mv,Jh,o$,He,sNF,Uub,CLH,K3,du7,M77,wox,kOH,I$,fgF,jN2,W2n,SWb,G5,tI,QNV,T5,ah,rU,v1d,poH,uuN,muV,$U,o12,AI,lgN,K2y,CX,wU,ND,Igz,TGb,GON,fX,kU,QQ,vQ,Z_V,tBx,amx,pX,Sx,rYx,h67,Fxz,xpn,uP,AY7,s5y,$p7,nX,C5x,mA,z6n,FB,jx,b_V, ehH,YWV,cQ,WQ,E4N,Ih,Rh,Go,ZQ,Wxb,SBu,j5H,PQ,dU,Q5x,tP,a9,pZn,rO,Ef,e6H,V3,Fz,lP,yYz,x6,R67,sf,n1F,agu,nwx,$6,uD7,VB2,Cf,YBH,qB1,g42,iq7,Lf,wO,R9,M$,N$,dO,Kxy,Xz,Tt1,k6,Zqd,j9,Gi7,S9,Q$,rdx,FEF,Ady,u6,xyV,$yd,DM,i6,Kf,UyN,GQ,CFF,ZM,yB,E2,hX,FK,AX,x2,zEN,s2,$2,why,U2,Ca,RE1,PFb,zq,O2,NPu,dyH,Xhd,RX,PP,dL,k91,k2,jtH,SvF,fa1,QtN,vf7,ph7,S1,WP,fa,eEH,j1,QB,lad,vP,uQb,pa,V_u,nf7,my7,lh,uh,JdN,ofd,VB,byF,Hyy,na,m1,JX,cd7,qvV,oX,Yv7,Dy1,HP,iyH,gfF,LW,wH,jyN,RZ,PR,Nf,vv1,X2,p37,Qyy,ki,u6d,fW,WR,VTV,jS,nvu, L27,NGn,mNx,ov7,J9N,HRx,SS,QG,vR,pW,bRn,q5z,ur,VG,nW,Y5F,eS,DNz,gvn,iRF,IE7,mo,h0F,UK7,BR,CiN,Ex,Owx,LkV,MhV,wyb,qf,R0H,Yi,Dn,Piz,gH,NZ1,IZ,dKN,Xyy,TV,GV,kWz,frV,Wk7,j11,Zn,KW,S6y,yD,vKN,py7,e0V,lru,tr,u9y,Vhy,nKH,a7,Jb7,rD,HwN,oKH,q67,xF,BZb,mK7,EP,sP,Y6u,DK2,gK7,iwd,$F,UP,Cv,z0,OP,Kk1,Lv,IrN,M5,R7,tD7,r57,E37,hun,XY,FBy,y57,A57,P8,xO1,$OF,wD,N5,GWN,ZwN,dD,UO1,Up,Fv7,Ah2,x0V,s$u,$0N,sEF,br,Op,L2,C2,O37,eZ7,lEN,MZ,w1,Lv7,MMx,wey,RR,PKu,Pc,NYu,Xe2,NZ,Wc,k5F,kJ,p2,Wvx,fDn,Q$u,SJF,j$7,ef,vp2,l1,pey, lD7,eJb,u1,Q1n,uIb,VJ,n2,VM7,m$,m07,Jhx,opy,H3V,JQ,npu,oR,c97,Hc,ch1,b1,BYH,Bc,qJu,Bz1,lr,YJN,cc,YJ,Kv7,i3F,Gh,ys,Z_,Z31,tK,au,yIx,tx2,aQd,rIz,EUd,h87,FAn,EL,AI7,xDF,shF,Fq,qZ,UDu,CPn,rd,OXu,$Dz,hK,LAF,AK,R8V,wQx,xQ,sL,NUy,UL,Mxd,CH,$Q,PPz,LH,OL,jh7,WAN,Su7,fQb,Qhn,vUz,dDN,XQ7,pQ2,e8n,Mo,VxN,nUn,uB1,lQb,wd,oU2,Ru,HXu,mDb,JIN,bX7,Pk,BUx,cI2,DDF,Yub,qu2,No,gUx,iXd,dd,KAH,IQz,Go7,Xq,kQ,ZXb,yP2,t9b,fH,aMy,Wk,rPb,E61,hBd,FcN,APu,x$F,s9V,$$u,U$y,zB7,Of7,vk,pH,ub,wq7,lb,RBN,P6d,Vs,NOu,Xqu,d$d,fMz,Wcx,Sf2, ou,j9V,nH,Hk,JK,kQn,Bk,pq7,v6d,ck,eB7,lMy,qo,uz7,hr,V91,n6b,m$d,JP7,Hf7,zK,vc,bf7,D$x,cPN,Yf1,g3y,bb,BOx,qfd,Ux,AS,IMu,GQN,TOn,Zfn,t1y,aZ7,Q9N,QJ,YQ,f2,ifV,rXV,Kcb,E2y,X$,h_7,F1n,d0N,kox,jf,D3,gd,ib,AX7,KH,xU2,sXn,$U7,UUN,Chz,z_7,L1N,M1N,NL7,wPz,Ph2,dUx,TK,W11,kq7,fZN,v2V,pP2,e_n,GK,lZ1,Iu,uK1,QXd,XP1,Z3,V1y,R_7,n2n,yW,JXd,mUn,Ha7,bad,BLF,o22,tO,Y2d,q2V,iax,g22,DU1,K1y,IZN,a0,TLn,r_,Zax,ySb,Gq7,anH,EiF,hGn,$f1,AS7,xfd,sZ7,UfF,CrN,zGF,Lod,OW7,MS7,wR7,Eo,RGy,Pr1,dfu,NHV,XRd,kVb,Wob,jZ2,vix,SxH,pR7, eG7,ln7,fn2,u2F,QZb,FO,VSb,ni7,mfd,JSx,x9,bWF,HW7,BHb,cSu,qxb,gi7,Yxx,InV,so,Dfd,THz,GVH,$9,ZWd,C1,zs,Uo,Oo,yrb,L1,rrF,auy,hTd,FQN,ArN,x5x,s7x,EFN,$5x,Mk,U5F,trV,M9N,AO,zT2,Ov2,LQu,MrH,w8V,RTb,Pqb,d5n,R0,X8u,NDd,k02,fuu,WQz,j72,vF7,Q7u,SP7,p8n,Nk,PIV,eTb,luz,d_,uY7,Vrd,k9,Jrn,oFF,WN,Hvz,bv2,f1,m52,jN,XO,nFd,vN,SN,BD2,p1,QW,D5y,KQu,TDz,Zvb,qPH,IuV,yQz,YP7,tfH,a_2,rQy,VW,eN,F$7,AQ1,EJ7,uS,sRy,$Z7,ivz,gFz,xZ2,UZV,G02,hqb,crb,n1,mC,JO,C1F,o0,P17,MfH,N1N,wcV,O27,dZz,zqn,f_7,Xc7,HN,W$2,L$u,Sp2,vJV,eqz, l_F,u$x,mZN,Y9,JQz,Vf1,qk,b21,B1u,Ts,z8u,bS,cQb,qpV,gJz,i2b,Ypn,I_n,H2x,BN,iS,GhH,Z2n,yKV,tK7,o6n,g_,a3n,EQ7,rKx,FMn,hmd,pcx,xod,AKx,K1,D8,suV,Z8,$o7,UoH,Cb7,zmx,OHn,Gs,nJ1,LMn,g6y,lS,MK2,yp,wk7,Rm2,Pby,Ndd,doN,tn,ai,f3n,rm,WMF,jud,XkN,kK7,Ek,pkb,Qu2,vQV,emd,l3u,hn,uq7,VKx,nQn,FR,moV,oQu,HHN,bH1,An,JK2,x5,sk,Bd7,cK7,qLn,YL2,Dou,gQn,iH1,CB,$5,Uk,KMn,z2,I3x,Td2,GK7,ZHN,tN2,yOF,P9,rOb,E9N,a8u,hYF,N7,FCH,dm,AO7,k5,xk7,$kN,MNH,Ukx,zY1,O11,CS2,s0x,LCn,wNu,RYn,PSu,N_b,dk7,XN1,W9,ksH,Qp,jQ,f8V,v9,pB,j07, Sod,lB,uB,Q0d,eQ,pN7,v9u,Vp,l87,eYH,mY,Jn,oi,n9n,uOu,VNF,H9,mkb,b1N,o92,JOn,H1V,bB,cOn,g91,i11,B9,KCz,qou,I82,c9,YoV,Z12,q7,Y5,ynx,tQ1,ap7,rnn,E5y,gm,FYV,six,$7H,U7d,KB,An2,zyz,iB,Ii,T2,hy1,x77,G2,OB7,MQn,w92,PBd,Ry1,Nm7,k2n,ra,tg,hg,a4,X9y,d77,El,fp1,F7,WYb,jiy,Sk7,Ag,xd,Qiu,v5H,p97,ey2,lpu,uRx,VQF,Jnd,n52,o5n,HBn,qkx,Ykd,Tmx,Ng,ygn,rgy,da,aOz,tnx,KY7,IpV,D7H,g5b,G2z,X7,kd,FPF,o9,ydN,AgV,WX,Sn,xgF,s47,PX,ZB2,CC7,zQd,OcN,vX,Q0,mP,Mnb,wX7,RQy,Jg,PCu,XXb,dgn,k6n,o4,HX,fOu,Sl7,Q4x,BX,j4F,vdN,pXx,WPV, Yd,eQ2,lO7,qg,u77,VnH,nd7,mgb,odF,Jgn,BaH,cgb,Hc7,Yln,DgV,bcd,Kc,I4,gd7,G6u,T6,icx,KPn,Ta7,IOn,Zcx,tAV,ycu,a0n,G6,rcu,ES2,hgd,FN7,AcF,sJb,$Px,Ck7,UPF,zgu,Ogu,LNV,MA7,wJ7,PkV,yO,ZO,xPu,tc,Nw2,dP7,Rgy,QJn,SVz,vS7,pJN,udF,l0b,egz,VAd,nSx,aJ,rw,mPu,JcN,oSb,HgF,BwV,ccF,hc,qVF,EV,Ac,bgH,xS,YVd,DPz,gSn,ig7,KN7,sV,I0y,TwH,yi7,$S,toF,Zg7,UV,Cg,z3,riN,El1,h17,acV,Aix,FVy,xwu,OV,sjd,$w2,C97,LVb,UwN,z17,Lg,Mo7,R1F,P9y,dw7,Xi1,MP,ww,kgN,wiu,jj7,WVx,fc7,RJ,PJ,QjF,SGz,NP,dw,Xd,vlx,kS,piF,e1V,lcx,uyH,fg,Vod,WJ,nlz, jA,mwx,SA,QO,JiF,vJ,oln,pg,eA,bCH,qGy,YGu,HCu,Dwy,KV2,Ic1,TCx,iCx,glb,ZCn,Gg7,yAz,rAN,VO,hdz,EgN,tHb,aU7,FDN,AAd,ng,mN,xa1,sCb,$ax,Uab,C07,zdy,LDF,MHF,fUN,P07,WDV,NoV,wfu,Sc7,cJ,YS,lUx,upu,ik,VH7,Kg,ngb,QCH,BJ,D0,JAn,ogu,T3,bmb,cAy,Bo7,G3,gw,bk,Hmd,IJ,vgn,may,Ycz,Jc,Z0,Dax,ggz,qP,pfV,yE,ti,imx,aj,KDz,rC,IUn,To1,Zmb,ye1,G7y,EG,tJd,hi,Fy,a2u,red,EVN,hN7,Ae7,x1y,$1V,svu,xl,Ai,FgN,U1H,zNN,OO7,CZb,Lgn,sG,wnu,MJH,$l,UG,RNN,Nrb,d1u,CC,PZb,XnV,kY2,Wgu,zg,f22,jv7,S8H,Qv1,LC,Mw,eN7,l22,vVu,pn7,um7,wC,Rj,nVx, VJH,m1y,oVu,Jez,HOx,Nw,Brb,bOV,ceN,Xy,q8V,D17,Y8u,fC,gVb,iOz,Kg7,Trn,GYz,ZOz,I2F,yJd,taV,aC2,rJN,EAV,hUH,FSu,AJ1,xdb,sm7,UdV,CM7,zUb,QE,OSn,LSz,Man,RU1,XVz,N3V,kS2,wVF,eo,PM2,pC,ddd,u9,WSV,fCn,nC,VE,vA2,pV7,eUy,lCy,Fo7,nA7,Va7,Ji,Hi,oj,ulV,b9,Bi,qw,JJz,Yl,Y1y,t6V,aKy,Dc,T1F,rT2,dH,WO7,S5u,gC,i9,Ka,EEF,hj7,Tq,Mf,d1,FU2,ATF,sLN,xYN,$Y2,UYb,C$n,zjz,LUx,M6y,wpz,Rjy,OA2,jL2,Sez,WUF,QL1,ppd,lKx,u_7,V6x,Zc,ejn,vEb,P$V,yx,JT7,oE1,mYn,nEn,B7N,bAV,FY,cTu,Ye1,gEn,tA,iAn,kpH,Tg,qeH,KUV,IKu,T7N,N7d,Xpb,bwV,Sf, Gg,GpN,ro,y$2,tF7,ax2,aC,ZAb,DYx,Ex1,xJN,hA,swH,$J1,Fr7,AA,UJH,Cey,r$7,zvu,A$H,OUb,xg,Fp,Lrz,wu7,MF7,Ec,Pe7,sc,oJy,Nn1,knx,Xu2,Wrb,jw2,fxb,Uc,$g,QwH,vx7,pu2,ev7,Cm,lx2,uXN,VFd,c$7,oxb,HU1,mJN,nxH,Lm,KrN,gx7,Oc,RC,Pf,TnH,Gnn,Xp,Bnu,jH,ytb,Wf,Na,al7,rty,EWF,DJn,vf,eH,F4N,bUy,ZUx,kg,Ma,At7,Vx,tV7,YV,rWd,EPV,han,Kwn,yW7,AWb,xj2,$jF,dH2,fzV,Dz,HF; y2=function(y,t,a,r,E,h,F,x){var U;(y&75)==y&&t[A[18]]();(y^46)>>4||(this[A[4]]=t,this[A[34]]=a===void 0?!1:a,this[A[20]]=this[A[24]]=this[A[21]]=A[14],this[A[13]]={},this[A[1]]=A[14]);(y-5^13)>=y&&(y+5^31)>4==4){h1(37,t);var r=g.A1(t[A[13]],y1b)}if((y&82)==y){t=(t%a[A[6]]+a[A[6]])%a[A[6]];var E=a[0];a[0]=a[t];a[t]=E;r=[t]}if((y|72)==y)if(a=a===void 0?!1:a,h1(32,t),t[A[24]]!==A[25])E=t[A[48]](),E[A[9]](A[65],A[7]),r=E;else{var h=t[A[53]]();E=new g.$u(h);var F=t[A[5]](A[84]),x=decodeURIComponent(t[A[5]](A[62])||A[14])[A[29]](A[11]);if(F&&x&&x[A[6]]>1&&x[1]){h=E[A[13]];var U=h[A[74]](/^[^.]*/,A[14]);g.Un(E,(h[A[33]](A[56])===0?A[56]:A[22])+F+A[51]+x[1]+U);E=new g.C7(E[A[10]]()); E[A[9]](A[36],A[7]);r=E}else a?(E=t[A[48]](),E[A[9]](A[36],A[7]),r=E):(F=E[A[13]][A[2]](A[63]),E[A[13]][A[2]](A[75])?(g.Un(E,A[86]),h=E[A[10]]()):E[A[13]][A[2]](A[67])?(g.Un(E,A[12]),h=E[A[10]]()):(E=tyu(h),On(E)&&(h=E)),E=new g.C7(h),E[A[9]](A[78],A[7]),F&&E[A[9]](A[73],A[85]),r=E)}(y^43)>>3==1&&t[A[4]]&&(E=L7(48,t));if((y|48)==y){E=t[A[29]](A[42]);h=0;E[0]||h++;for(F={};h=y&&(x=a(E,h,F));if((y&46)==y){var U=t[A[33]](A[42],12),C=t[A[33]](A[42],U+1);U>0&&C>0?(a[A[24]]=t[A[35]](0,C),t=t[A[35]](C+1)):(a[A[24]]=t,t=A[14]);x=[t]}return x}; L7=function(y,t,a,r,E,h,F,x,U,C,z,O){if(y+2>>2=y)for(var M=t[A[6]];M;)t[A[23]](t[A[26]](--M,1)[0]);if((y&113)==y){if(!(On(t[A[4]])||t[A[4]][A[0]](A[27])||t[A[4]][A[0]](A[28])||t[A[4]][A[0]](A[68])))throw new g.RV(A[64],t[A[4]]);M=g.NH(t[A[4]]);t[A[21]]=M[A[39]];t[A[20]]=M[A[13]]+(M[A[20]]!=null?A[87]+M[A[20]]:A[14]);var L=M[A[4]];L[A[0]](A[25])?(t[A[24]]=A[25],L=L[A[35]](14)):L[A[0]](A[50])?(t[A[24]]=A[50],L=L[A[35]](13)):L[A[0]](A[71])?(L=wx(2,L,t),L=L[0]):(t[A[24]]=L,L=A[14]);var w= t[A[13]];t[A[13]]=h1(48,L);Object[A[45]](t[A[13]],dx(10,M[A[34]][A[10]]()));Object[A[45]](t[A[13]],w);t[A[13]][A[61]]===A[30]&&(delete t[A[13]][A[61]],t[A[24]]+=A[19]);t[A[4]]=A[14];t[A[1]]=A[14];t[A[34]]&&(M=dx(5,t));var d=[]}(y^19)>>3>=1&&(y-2&8)<5&&(d=t(r,E,h,F,x,U,C,z,O));y-7>>4||(t[12]<=7&&((0,t[39])(t[3],t[63]),t[54])((0,t[1])(t[25]),t[70],t[24],t[72]),t[37]!=0&&(t[68]>=-4||((0,t[33])(((((((0,t[70])(t[85],t[71]),(0,t[40])(t[23],t[85]),t[70])(t[new a(A[77])/1E3],t[30]),t[48])(t[17],t[4]),t[4])((0,t[11])(t[77], t[83]),t[18],t[63],t[42]),((0,t[4])((0,t[73])(t[22],t[0]),t[73],t[46],t[67]),t[19])(t[3],t[56]),t[19])(t[12],t[67]),(0,t[new a(A[8])/1E3])(t[58],t[43])%(0,t[new a(A[55])/1E3])(t[72],t[58])),t[10],t[88],t[54]),0))&&(((((0,t[32])((0,t[39])(t[30],t[2]),t[39],t[43],t[37]),t[59])(t[12],(0,t[53])(t[68],t[64]),(0,t[62])((0,t[48])(),t[37],t[77]),(0,t[53])(t[41],t[61]),t[25],t[6]),t[7])(((0,t[39])(t[24],t[22]),t[9])(t[64]),t[12],(0,t[62])((0,t[75])(),t[64],t[77]),t[26],t[61]),t[47])(t[56],t[2]),(0,t[39])(t[55], t[37]),t[62])((0,t[48])(),t[22],t[77]),(t[33]==5||(((((0,t[7])((0,t[32])((0,t[32])((0,t[85])(t[37]),t[47],t[14],t[64]),t[85],t[6]),t[79],(0,t[41])(t[0],t[27]),t[2]),t[67])(t[52],t[28]),t[74])(t[5],t[49]),t[12])(t[26],t[52]),((0,t[81])((0,t[60])(t[78],t[49]),t[67],t[22],t[5]),t[44])(t[52],t[27]),0))&&((0,t[74])(t[79],t[2]),(0,t[74])(t[35],t[52]),(0,t[44])(t[52],t[24]),t[17])((0,t[81])((0,t[89])(t[22]),t[51],(0,t[31])(),t[2],t[36])&(0,t[89])(t[2]),t[51],((((0,t[28])(t[18]),t[51])((0,t[65])(),t[76], t[36]),t[44])(t[76],t[37]),t[74])(t[48],t[2]),(0,t[31])(),t[76],t[36]),t[63]!=-6&&(t[61]<4?((0,t[74])(t[71],t[18]),t[81])((0,t[74])(t[62],t[76])&(0,t[12])(t[41],t[18]),t[15],t[49]):(0,t[54])(t[60],(0,t[12])(t[19],t[22]),(0,t[44])(t[18],t[34]),(0,t[51])((0,t[31])(),t[49],t[36]),t[8],t[49])),t[63]!==new a(A[69])/1E3&&(t[3]<=-4||((0,t[89])(t[49]),null))&&(0,t[74])(t[56],t[76]),d=[]);return d}; ku=function(y,t){if(((y|8)&7)==1){for(var a=64,r=[];++a-r[A[6]]-32;)switch(a){case 58:a=96;continue;case 91:a=44;break;case 65:a=47;continue;case 46:a=153;case 123:a-=58;default:r[A[23]](String[A[37]](a))}var E=r}if((y>>1&6)==2){a=64;for(r=[];++a-r[A[6]]-32;){switch(a){case 91:a=44;continue;case 123:a=65;break;case 65:a-=18;continue;case 58:a=96;continue;case 46:a=95}r[A[23]](String[A[37]](a))}E=r}if(y-6<6&&(y<<2&7)>=0)a:if(a=t[A[29]](A[14]),r=[-634071688,azV,a,-1315198450,r1x,-601909931,-1564051667, 303674782,-481883703,A[57],-880465759,Eu7,-1645600708,h7u,1368529638,-913142662,1926066069,FdF,-1162821253,-2002983465,1852739334,1704233004,971195097,-1252229517,function(F,x,U){var C=F[A[6]];x[A[44]](function(z,O,M){this[A[23]](M[O]=F[(F[A[33]](z)-F[A[33]](this[O])+O+C--)%F[A[6]]])},U[A[29]](A[14]))}, null,-862351909,A1z,-999009909,-731447904,1571137028,1404782149,A[52],function(F,x){F=(F%x[A[6]]+x[A[6]])%x[A[6]];x[A[26]](-F)[A[18]]()[A[44]](function(U){x[A[70]](U)})}, 614684326,2119497466,2042631793,1779217663,xH7,sVF,$H7,/"["{'],,\/\)}\/]\/,{",/,1958806657,1785798575,-1226031466,247041291,-185885320,UH7,971195097,765419954,-1428806319,2093840426,115841445,22181589,C77,-725067926,-862395143,-726633386,a,-999009909,1720090834,1779217663,735882303,a,-614302073,-1809020005,978869205,1318850435,z7y,1883276488,-1229366893,1102509031,1926066069,O7z,1777883096,-1150430042,Ld7,1852739334,My7,null,1105703310,wFF,-1368405357,null,-2125062219,504371544,-539768154,-1158509830], r[25]=r,r[79]=r,r[83]=r,typeof R7y===A[17])E=t;else{try{try{var h=L7(13,r,Date)}catch(F){h=MH(8,r)}finally{r[55]!==9&&(r[21]>=-4&&((((((0,r[51])((0,r[65])(),r[2],r[36]),r[51])((0,r[38])(),r[49],r[36]),r[12])(r[0],r[18]),(0,r[81])((0,r[15])(r[49]),r[51],(0,r[40])(),r[49],r[36]),r[7])((0,r[74])(r[6],r[2]),r[81],(0,r[74])(r[13],r[76]),r[28],r[2]),r[12])(r[1],r[22]),[])||((0,r[20])(r[54],(0,r[60])(r[23],r[2]),r[44],((0,r[66])(r[21],r[22]),r[57])(r[77],r[47]),(0,r[60])(r[67]),(0,r[new Date(A[49])/1E3])(r[75], r[27]),r[26],r[39]),r[45])(r[50],r[70])*((0,r[75])(r[10],r[73]),r[16])(r[44],r[10]))}}catch(F){E=A[58]+t;break a}E=a[A[72]](A[14])}return E}; WF=function(y,t,a,r,E,h,F,x,U){if((y|2)>>3==1){var C=g.P(t,P7n)||t[A[16]],z={nT:!1,FI:A[14],m$:A[14],s:A[14]};if(C){C=f7(C);z[A[60]]=!0;z[A[76]]=C[A[1]];z[A[46]]=C[A[31]];z[A[54]]=C[A[54]];var O=z}else O=z}(y&87)==y&&(t=(t%a[A[6]]+a[A[6]])%a[A[6]],a[A[26]](t,1));y-7>>3==3&&(h1(34,t),O=t[A[20]]);(y<<1&15)==2&&(O=a(r,E,h,F,x,U));return O}; MH=function(y,t,a,r){if(y>>1<18&&((y|6)&14)>=8){(0,t[15])(t[76]);(0,t[15])(t[76]);((0,t[66])(t[14],t[22]),t[74])(t[53],t[2]);(0,t[74])(t[85],t[76]);var E=[]}if((y|56)==y){if(a===A[32]){var h;(h=r[A[33]](A[38]))>=0?(a=A[15]+r[A[35]](0,h),r=r[A[35]](h+1)):(h=r[A[33]](A[59]))>=0&&(a=A[15]+r[A[35]](0,h),r=r[A[35]](h+3))}t[a]=r}if((y|64)==y)for(t=(t%a[A[6]]+a[A[6]])%a[A[6]];t--;)a[A[70]](a[A[79]]());if(!(y+4&6)){h=64;for(var F=[];++h-F[A[6]]-32;)switch(h){case 46:h=95;default:F[A[23]](String[A[37]](h)); case 94:case 95:case 96:break;case 123:h-=76;case 92:case 93:continue;case 58:h=44;case 91:}E=F}return E}; Q2=function(y,t,a,r){if((y&11)==y){h1(39,t);var E=decodeURIComponent(t[A[5]](A[62])||A[14])[A[29]](A[11]);var h=t[A[24]]===A[25]&&E[A[6]]>1&&!!E[1]}if(((y^53)&6)==2){h1(33,t);E=t[A[21]]+(t[A[21]]?A[47]:A[80])+t[A[20]]+t[A[24]];if(h1(65,t)){var F=[];g.jy(t[A[13]],function(U,C){U!==null&&F[A[23]](C+A[38]+U)}); E+=A[88]+F[A[72]](A[83])}h=E}(y&88)==y&&(h=t[A[4]]?t[A[4]][A[0]](A[27]):t[A[21]]===A[27]);if(!(y+9&13)){E=t[a];var x=E[A[33]](A[38]);x>0?MH(56,r,E[A[35]](0,x),E[A[35]](x+1)):E&&(r[E]=A[14]);h=[]}(y-7&15)>=14&&(y<<1&23)<21&&a[A[6]]!=0&&(E=h1(2,t,a),t=E[0]);return h}; dx=function(y,t){if(!((y^69)&15)){var a;h1(35,t);if(a=t[A[13]][A[40]]||null)a=Nx7[0](a),t[A[9]](A[40],a);var r=[]}if((y&58)==y){a=t[A[29]](A[83]);for(var E={},h=0;h>3>=0&&t[A[6]]!=0&&(a=(a%t[A[6]]+t[A[6]])%t[A[6]],t[A[26]](0,1,t[A[26]](a,1,t[0])[0]));return F}; J1=function(y){return function(){return dH2[y].apply(this,arguments)}}; g.oV=function(y,t){return dH2[y]=t}; XF7=function(y){y=["object"==typeof globalThis&&globalThis,y,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t=this.length))return this[y]}; nuz=function(y,t,a){y instanceof String&&(y=String(y));for(var r=y.length-1;r>=0;r--){var E=y[r];if(t.call(a,E,r,y))return{ol:r,tq:E}}return{ol:-1,tq:void 0}}; g.Wd=function(y,t,a){y=y.split(".");a=a||g.ks;for(var r;y.length&&(r=y.shift());)y.length||t===void 0?a[r]&&a[r]!==Object.prototype[r]?a=a[r]:a=a[r]={}:a[r]=t}; Sc=function(y,t){var a=g.jc("CLOSURE_FLAGS");y=a&&a[y];return y!=null?y:t}; g.jc=function(y,t){y=y.split(".");t=t||g.ks;for(var a=0;a2){var r=Array.prototype.slice.call(arguments,2);return function(){var E=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(E,r);return y.apply(t,E)}}return function(){return y.apply(t,arguments)}}; g.mi=function(y,t,a){g.mi=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?J1F:ouu;return g.mi.apply(null,arguments)}; g.J7=function(y,t){var a=Array.prototype.slice.call(arguments,1);return function(){var r=a.slice();r.push.apply(r,arguments);return y.apply(this,r)}}; g.oq=function(){return Date.now()}; H72=function(y){g.Wd("yt.abuse.playerAttLoaderRun",y)}; Hd=function(y){return y}; g.Bd=function(y,t){function a(){} a.prototype=t.prototype;y.W1=t.prototype;y.prototype=new a;y.prototype.constructor=y;y.uW=function(r,E,h){for(var F=Array(arguments.length-2),x=2;x=0;--a)a in r&&t.call(void 0,r[a],a,y)}; g.D9=function(y,t,a){t=Ys(y,t,a);return t<0?null:typeof y==="string"?y.charAt(t):y[t]}; Ys=function(y,t,a){for(var r=y.length,E=typeof y==="string"?y.split(""):y,h=0;h=0;r--)if(r in E&&t.call(a,E[r],r,y))return r;return-1}; g.TE=function(y,t){return Yn7(y,t)>=0}; DH7=function(y){if(!Array.isArray(y))for(var t=y.length-1;t>=0;t--)delete y[t];y.length=0}; g.tB=function(y,t){t=Yn7(y,t);var a;(a=t>=0)&&g.GE(y,t);return a}; g.GE=function(y,t){return Array.prototype.splice.call(y,t,1).length==1}; g.aM=function(y,t){t=Ys(y,t);t>=0&&g.GE(y,t)}; guV=function(y,t){var a=0;qn1(y,function(r,E){t.call(void 0,r,E,y)&&g.GE(y,E)&&a++})}; g.E9=function(y){return Array.prototype.concat.apply([],arguments)}; g.hB=function(y){var t=y.length;if(t>0){for(var a=Array(t),r=0;r>>1),U=void 0;a?U=t.call(void 0,y[x],x,y):U=t(r,y[x]);U>0?E=x+1:(h=x,F=!U)}return F?E:-E-1}; g.O9=function(y,t){y.sort(t||U9)}; IzN=function(y,t){var a=U9;g.O9(y,function(r,E){return a(t(r),t(E))})}; g.LJ=function(y,t,a){if(!g.pI(y)||!g.pI(t)||y.length!=t.length)return!1;var r=y.length;a=a||Tx7;for(var E=0;Et?1:y0&&(t[E]=r)},y); return t}; A77=function(y){y=gK(y);var t=[];g.jy(y,function(a,r){r in Object.prototype||typeof a!="undefined"&&t.push([r,":",a].join(""))}); return t}; sqy=function(y){qX(y,"od",x92);qX(y,"opac",KJ).V=!0;qX(y,"sbeos",KJ).V=!0;qX(y,"prf",KJ).V=!0;qX(y,"mwt",KJ).V=!0;qX(y,"iogeo",KJ)}; IM=function(y,t){return y.lastIndexOf(t,0)==0}; $92=function(y,t){var a=y.length-t.length;return a>=0&&y.indexOf(t,a)==a}; g.TJ=function(y){return/^[\s\xa0]*$/.test(y)}; g.GJ=function(y,t){return y.indexOf(t)!=-1}; Zh=function(y,t){return g.GJ(y.toLowerCase(),t.toLowerCase())}; g.ae=function(y,t){var a=0;y=yk(String(y)).split(".");t=yk(String(t)).split(".");for(var r=Math.max(y.length,t.length),E=0;a==0&&Et?1:0}; g.rI=function(){var y=g.ks.navigator;return y&&(y=y.userAgent)?y:""}; Ay=function(y){if(!EM&&!hy||!FS)return!1;for(var t=0;t0:!1}; $$=function(){return sM()?!1:x$("Opera")}; U9d=function(){return sM()?!1:x$("Trident")||x$("MSIE")}; C3x=function(){return sM()?Ay("Microsoft Edge"):x$("Edg/")}; UM=function(){return x$("Firefox")||x$("FxiOS")}; zf=function(){return x$("Safari")&&!(Cb()||(sM()?0:x$("Coast"))||$$()||(sM()?0:x$("Edge"))||C3x()||(sM()?Ay("Opera"):x$("OPR"))||UM()||x$("Silk")||x$("Android"))}; Cb=function(){return sM()?Ay("Chromium"):(x$("Chrome")||x$("CriOS"))&&!(sM()?0:x$("Edge"))||x$("Silk")}; zF1=function(){return x$("Android")&&!(Cb()||UM()||$$()||x$("Silk"))}; OI2=function(y){var t={};y.forEach(function(a){t[a[0]]=a[1]}); return function(a){return t[a.find(function(r){return r in t})]||""}}; Liy=function(y){var t=g.rI();if(y==="Internet Explorer"){if(U9d())if((y=/rv: *([\d\.]*)/.exec(t))&&y[1])t=y[1];else{y="";var a=/MSIE +([\d\.]+)/.exec(t);if(a&&a[1])if(t=/Trident\/(\d.\d)/.exec(t),a[1]=="7.0")if(t&&t[1])switch(t[1]){case "4.0":y="8.0";break;case "5.0":y="9.0";break;case "6.0":y="10.0";break;case "7.0":y="11.0"}else y="7.0";else y=a[1];t=y}else t="";return t}var r=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");a=[];for(var E;E=r.exec(t);)a.push([E[1],E[2],E[3]||void 0]); t=OI2(a);switch(y){case "Opera":if($$())return t(["Version","Opera"]);if(sM()?Ay("Opera"):x$("OPR"))return t(["OPR"]);break;case "Microsoft Edge":if(sM()?0:x$("Edge"))return t(["Edge"]);if(C3x())return t(["Edg"]);break;case "Chromium":if(Cb())return t(["Chrome","CriOS","HeadlessChrome"])}return y==="Firefox"&&UM()||y==="Safari"&&zf()||y==="Android Browser"&&zF1()||y==="Silk"&&x$("Silk")?(t=a[2])&&t[1]||"":""}; McV=function(y){if(sM()&&y!=="Silk"){var t=FS.brands.find(function(a){return a.brand===y}); if(!t||!t.version)return NaN;t=t.version.split(".")}else{t=Liy(y);if(t==="")return NaN;t=t.split(".")}return t.length===0?NaN:Number(t[0])}; RF7=function(){var y=null;if(!wdz)return y;try{var t=function(a){return a}; y=wdz.createPolicy("goog#html",{createHTML:t,createScript:t,createScriptURL:t})}catch(a){}return y}; Lb=function(){OM===void 0&&(OM=RF7());return OM}; Mm=function(y){this.V=y}; wI=function(y){var t=Lb();y=t?t.createScriptURL(y):y;return new Mm(y)}; Re=function(y){if(y instanceof Mm)return y.V;throw Error("");}; PW=function(y){this.V=y}; g.dI=function(y){if(y instanceof PW)return y.V;throw Error("");}; XS=function(y){this.Fm=y}; k$=function(y){return new XS(function(t){return t.substr(0,y.length+1).toLowerCase()===y+":"})}; g.fb=function(y,t){t=t===void 0?P3z:t;a:if(t=t===void 0?P3z:t,!(y instanceof PW)){for(var a=0;a4);E++)t[bA(y[E])]||(a+="\nInner error "+r++ +": ",y[E].stack&&y[E].stack.indexOf(y[E].toString())==0||(a+=typeof y[E]==="string"?y[E]:y[E].message+"\n"),a+=oe(y[E],t));E")!=-1&&(y=y.replace(eFy,">")),y.indexOf('"')!=-1&&(y=y.replace(l9H,""")),y.indexOf("'")!=-1&&(y=y.replace(uUH,"'")),y.indexOf("\x00")!=-1&&(y=y.replace(Vcz,"�")));return y}; g.DV=function(y){return y==null?"":String(y)}; gI=function(y){for(var t=0,a=0;a>>0;return t}; iA=function(y){var t=Number(y);return t==0&&g.TJ(y)?NaN:t}; nsN=function(y){return String(y).replace(/\-([a-z])/g,function(t,a){return a.toUpperCase()})}; m97=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; J7H=function(y){return y.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(t,a,r){return a+r.toUpperCase()})}; os1=function(y){var t=1;y=y.split(":");for(var a=[];t>0&&y.length;)a.push(y.shift()),t--;y.length&&a.push(y.join(":"));return a}; Kb=function(){return EM||hy?!!FS&&!!FS.platform:!1}; HId=function(){return Kb()?FS.platform==="Android":x$("Android")}; Ie=function(){return x$("iPhone")&&!x$("iPod")&&!x$("iPad")}; Tf=function(){return Ie()||x$("iPad")||x$("iPod")}; Gf=function(){return Kb()?FS.platform==="macOS":x$("Macintosh")}; bIy=function(){return Kb()?FS.platform==="Windows":x$("Windows")}; ZV=function(y){ZV[" "](y);return y}; B22=function(y,t){try{return ZV(y[t]),!0}catch(a){}return!1}; qy2=function(y,t){var a=c7x;return Object.prototype.hasOwnProperty.call(a,y)?a[y]:a[y]=t(y)}; g.yu=function(y){return qy2(y,function(){return g.ae(YyH,y)>=0})}; g.tE=function(y,t,a){return Math.min(Math.max(y,t),a)}; g.as=function(y,t){y%=t;return y*t<0?y+t:y}; r4=function(y,t,a){return y+a*(t-y)}; g.Em=function(y,t){this.x=y!==void 0?y:0;this.y=t!==void 0?t:0}; hE=function(y,t){return y==t?!0:y&&t?y.x==t.x&&y.y==t.y:!1}; g.F1=function(y,t){this.width=y;this.height=t}; g.AE=function(y,t){return y==t?!0:y&&t?y.width==t.width&&y.height==t.height:!1}; xo=function(y){return y.width*y.height}; $o=function(y,t){this.V=y===sm&&t||""}; Um=function(y){if(y instanceof Qk)return y;y=String(y).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return vW(y)}; gsd=function(y){return D9n(y)}; D9n=function(y){var t=Um("");return vW(y.map(function(a){return pb(Um(a))}).join(pb(t).toString()))}; GEu=function(y){var t;if(!iI7.test("div"))throw Error("");if(Ki2.indexOf("DIV")!==-1)throw Error("");var a="":(y=gsd(t.map(function(r){return r instanceof Qk?r:Um(String(r))})),a+=">"+y.toString()+""); return vW(a)}; I9u=function(y){for(var t="",a=Object.keys(y),r=0;r2&&hHd(E,F,r,2);return F}; hHd=function(y,t,a,r){function E(x){x&&t.appendChild(typeof x==="string"?y.createTextNode(x):x)} for(;r0)E(h);else{a:{if(h&&typeof h.length=="number"){if(g.l3(h)){var F=typeof h.item=="function"||typeof h.item=="string";break a}if(typeof h==="function"){F=typeof h.item=="function";break a}}F=!1}g.wK(F?g.hB(h):h,E)}}}; g.SU=function(y){return Wa(document,y)}; Wa=function(y,t){t=String(t);y.contentType==="application/xhtml+xml"&&(t=t.toLowerCase());return y.createElement(t)}; g.Qu=function(y){return document.createTextNode(String(y))}; g.va=function(y,t){y.appendChild(t)}; g.pp=function(y){for(var t;t=y.firstChild;)y.removeChild(t)}; lv=function(y,t,a){y.insertBefore(t,y.childNodes[a]||null)}; g.uv=function(y){return y&&y.parentNode?y.parentNode.removeChild(y):null}; g.Vu=function(y,t){if(!y||!t)return!1;if(y.contains&&t.nodeType==1)return y==t||y.contains(t);if(typeof y.compareDocumentPosition!="undefined")return y==t||!!(y.compareDocumentPosition(t)&16);for(;t&&y!=t;)t=t.parentNode;return t==y}; Om=function(y){return y.nodeType==9?y:y.ownerDocument||y.document}; g.np=function(y,t){if("textContent"in y)y.textContent=t;else if(y.nodeType==3)y.data=String(t);else if(y.firstChild&&y.firstChild.nodeType==3){for(;y.lastChild!=y.firstChild;)y.removeChild(y.lastChild);y.firstChild.data=String(t)}else g.pp(y),y.appendChild(Om(y).createTextNode(String(t)))}; m6=function(y){return y.tagName=="A"&&y.hasAttribute("href")||y.tagName=="INPUT"||y.tagName=="TEXTAREA"||y.tagName=="SELECT"||y.tagName=="BUTTON"?!y.disabled&&(!y.hasAttribute("tabindex")||Fsb(y)):y.hasAttribute("tabindex")&&Fsb(y)}; Fsb=function(y){y=y.tabIndex;return typeof y==="number"&&y>=0&&y<32768}; os=function(y,t,a){if(!t&&!a)return null;var r=t?String(t).toUpperCase():null;return JE(y,function(E){return(!r||E.nodeName==r)&&(!a||typeof E.className==="string"&&g.TE(E.className.split(/\s+/),a))},!0)}; JE=function(y,t,a){y&&!a&&(y=y.parentNode);for(a=0;y;){if(t(y))return y;y=y.parentNode;a++}return null}; zR=function(y){this.V=y||g.ks.document||document}; ABN=function(){this.V=this.LB=null}; Ha=function(){}; ca=function(){if(!bv())throw Error();}; bv=function(){return!(!qW||!qW.performance)}; xXV=function(y){return g.ko?"webkit"+y:y.toLowerCase()}; Yo=function(y){return function(){return y}}; g.DP=function(){}; sMu=function(y){var t=t||0;return function(){return y.apply(this,Array.prototype.slice.call(arguments,0,t))}}; g4=function(y){var t=!1,a;return function(){t||(a=y(),t=!0);return a}}; iv=function(y){var t=y;return function(){if(t){var a=t;t=null;a()}}}; Kp=function(y,t,a){var r=0;return function(E){g.ks.clearTimeout(r);var h=arguments;r=g.ks.setTimeout(function(){y.apply(a,h)},t)}}; Is=function(y,t,a,r){this.top=y;this.right=t;this.bottom=a;this.left=r}; TR=function(y){return y.right-y.left}; GR=function(y,t){return y==t?!0:y&&t?y.top==t.top&&y.right==t.right&&y.bottom==t.bottom&&y.left==t.left:!1}; ZP=function(y,t,a){t instanceof g.Em?(y.left+=t.x,y.right+=t.x,y.top+=t.y,y.bottom+=t.y):(y.left+=t,y.right+=t,typeof a==="number"&&(y.top+=a,y.bottom+=a));return y}; g.yj=function(y,t,a,r){this.left=y;this.top=t;this.width=a;this.height=r}; tq=function(y,t){return y==t?!0:y&&t?y.left==t.left&&y.width==t.width&&y.top==t.top&&y.height==t.height:!1}; g.ry=function(y,t,a){if(typeof t==="string")(t=ag(y,t))&&(y.style[t]=a);else for(var r in t){a=y;var E=t[r],h=ag(a,r);h&&(a.style[h]=E)}}; ag=function(y,t){var a=$Xz[t];if(!a){var r=nsN(t);a=r;y.style[r]===void 0&&(r=(g.ko?"Webkit":hq?"Moz":null)+J7H(r),y.style[r]!==void 0&&(a=r));$Xz[t]=a}return a}; g.F5=function(y,t){var a=y.style[nsN(t)];return typeof a!=="undefined"?a:y.style[ag(y,t)]||""}; Aq=function(y,t){var a=Om(y);return a.defaultView&&a.defaultView.getComputedStyle&&(y=a.defaultView.getComputedStyle(y,null))?y[t]||y.getPropertyValue(t)||"":""}; xI=function(y,t){return Aq(y,t)||(y.currentStyle?y.currentStyle[t]:null)||y.style&&y.style[t]}; g.$I=function(y,t,a){if(t instanceof g.Em){var r=t.x;t=t.y}else r=t,t=a;y.style.left=sr(r,!1);y.style.top=sr(t,!1)}; UXF=function(y){return new g.Em(y.offsetLeft,y.offsetTop)}; Ur=function(y){try{return y.getBoundingClientRect()}catch(t){return{left:0,top:0,right:0,bottom:0}}}; CN7=function(y){var t=Om(y),a=xI(y,"position"),r=a=="fixed"||a=="absolute";for(y=y.parentNode;y&&y!=t;y=y.parentNode)if(y.nodeType==11&&y.host&&(y=y.host),a=xI(y,"position"),r=r&&a=="static"&&y!=t.documentElement&&y!=t.body,!r&&(y.scrollWidth>y.clientWidth||y.scrollHeight>y.clientHeight||a=="fixed"||a=="absolute"||a=="relative"))return y;return null}; g.CQ=function(y){var t=Om(y),a=new g.Em(0,0);if(y==(t?Om(t):document).documentElement)return a;y=Ur(y);t=Lp(t);t=E_y(t.V);a.x=y.left+t.x;a.y=y.top+t.y;return a}; OJu=function(y,t){var a=new g.Em(0,0),r=fp(Om(y));if(!B22(r,"parent"))return a;do{var E=r==t?g.CQ(y):zH1(y);a.x+=E.x;a.y+=E.y}while(r&&r!=t&&r!=r.parent&&(y=r.frameElement)&&(r=r.parent));return a}; g.zI=function(y,t){y=Lsb(y);t=Lsb(t);return new g.Em(y.x-t.x,y.y-t.y)}; zH1=function(y){y=Ur(y);return new g.Em(y.left,y.top)}; Lsb=function(y){if(y.nodeType==1)return zH1(y);y=y.changedTouches?y.changedTouches[0]:y;return new g.Em(y.clientX,y.clientY)}; g.Or=function(y,t,a){if(t instanceof g.F1)a=t.height,t=t.width;else if(a==void 0)throw Error("missing height argument");y.style.width=sr(t,!0);y.style.height=sr(a,!0)}; sr=function(y,t){typeof y=="number"&&(y=(t?Math.round(y):y)+"px");return y}; g.LQ=function(y){var t=Mk7;if(xI(y,"display")!="none")return t(y);var a=y.style,r=a.display,E=a.visibility,h=a.position;a.visibility="hidden";a.position="absolute";a.display="inline";y=t(y);a.display=r;a.position=h;a.visibility=E;return y}; Mk7=function(y){var t=y.offsetWidth,a=y.offsetHeight,r=g.ko&&!t&&!a;return(t===void 0||r)&&y.getBoundingClientRect?(y=Ur(y),new g.F1(y.right-y.left,y.bottom-y.top)):new g.F1(t,a)}; g.MV=function(y,t){y.style.display=t?"":"none"}; wy=function(y){return y?y.passive&&w1d()?y:y.capture||!1:!1}; Rg=function(y,t,a,r){return typeof y.addEventListener==="function"?(y.addEventListener(t,a,wy(r)),!0):!1}; P$=function(y){if(y.prerendering)return 3;var t;return(t={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[y.visibilityState||y.webkitVisibilityState||y.mozVisibilityState||""])!=null?t:0}; RH1=function(){}; dy=function(y){try{return!!y&&y.location.href!=null&&B22(y,"foo")}catch(t){return!1}}; PNy=function(y){for(var t=y;y&&y!=y.parent;)y=y.parent,dy(y)&&(t=y);return t}; NK7=function(){return(EM||hy)&&FS?FS.mobile:!X5()&&(x$("iPod")||x$("iPhone")||x$("Android")||x$("IEMobile"))}; X5=function(){return(EM||hy)&&FS?!FS.mobile&&(x$("iPad")||x$("Android")||x$("Silk")):x$("iPad")||x$("Android")&&!x$("Mobile")||x$("Silk")}; dX7=function(y){var t,a;return(a=(t=/https?:\/\/[^\/]+/.exec(y))==null?void 0:t[0])!=null?a:""}; Wsd=function(y){y=y||kI();for(var t=new X1H(g.ks.location.href,!1),a=null,r=y.length-1,E=r;E>=0;--E){var h=y[E];!a&&kJH.test(h.url)&&(a=h);if(h.url&&!h.V){t=h;break}}E=null;h=y.length&&y[r].url;t.depth!==0&&h&&(E=y[r]);return new fhF(t,E,a)}; kI=function(){var y=g.ks,t=[],a=null;do{var r=y;if(dy(r)){var E=r.location.href;a=r.document&&r.document.referrer||null}else E=a,a=null;t.push(new X1H(E||""));try{y=r.parent}catch(h){y=null}}while(y&&r!==y);r=0;for(y=t.length-1;r<=y;++r)t[r].depth=y-r;r=g.ks;if(r.location&&r.location.ancestorOrigins&&r.location.ancestorOrigins.length===t.length-1)for(y=1;yt&&(t=a.length);return 3997-t-y.Y.length-1}; Qj=function(y,t){this.V=y;this.depth=t}; eHb=function(){function y(x,U){return x==null?U:x} var t=kI(),a=Math.max(t.length-1,0),r=Wsd(t);t=r.V;var E=r.K,h=r.Y,F=[];h&&F.push(new Qj([h.url,h.V?2:0],y(h.depth,1)));E&&E!=h&&F.push(new Qj([E.url,2],0));t.url&&t!=h&&F.push(new Qj([t.url,0],y(t.depth,a)));r=g.v$(F,function(x,U){return F.slice(0,F.length-U)}); !t.url||(h||E)&&t!=h||(E=dX7(t.url))&&r.push([new Qj([E,1],y(t.depth,a))]);r.push([]);return g.v$(r,function(x){return p1H(a,x)})}; p1H=function(y,t){g.pQ(t,function(E){return E.depth>=0}); var a=e$(t,function(E,h){return Math.max(E,h.depth)},-1),r=GNb(a+2); r[0]=y;g.wK(t,function(E){return r[E.depth+1]=E.V}); return r}; lhx=function(){var y=y===void 0?eHb():y;return y.map(function(t){return S$(t)})}; ln=function(y){y.jJ4=!0;return y}; n_2=function(){var y=u4N("IFRAME"),t={};g.wK(Vkn(),function(a){y.sandbox&&y.sandbox.supports&&y.sandbox.supports(a)&&(t[a]=!0)}); return t}; u4N=function(y,t){t=t===void 0?document:t;return t.createElement(String(y).toLowerCase())}; mXN=function(y){var t=!1;t=t===void 0?!1:t;qW.google_image_requests||(qW.google_image_requests=[]);var a=u4N("IMG",qW.document);t&&(a.attributionSrc="");a.src=y;qW.google_image_requests.push(a)}; un=function(y){var t="oS";if(y.oS&&y.hasOwnProperty(t))return y.oS;var a=new y;y.oS=a;y.hasOwnProperty(t);return a}; Vj=function(){this.K=new RH1;this.V=bv()?new ca:new Ha}; JB7=function(){nQ();var y=qW.document;return!!(y&&y.body&&y.body.getBoundingClientRect&&typeof qW.setInterval==="function"&&typeof qW.clearInterval==="function"&&typeof qW.setTimeout==="function"&&typeof qW.clearTimeout==="function")}; o_b=function(){nQ();return lhx()}; HJF=function(){}; nQ=function(){var y=un(HJF);if(!y.V){if(!qW)throw Error("Context has not been set and window is undefined.");y.V=un(Vj)}return y.V}; my=function(){throw Error("Invalid UTF8");}; bJ2=function(y,t){t=String.fromCharCode.apply(null,t);return y==null?t:y+t}; Y9d=function(y){var t=!1;t=t===void 0?!1:t;if(BKV){if(t&&(cBH?!y.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(y)))throw Error("Found an unpaired surrogate");y=(q9z||(q9z=new TextEncoder)).encode(y)}else{for(var a=0,r=new Uint8Array(3*y.length),E=0;E>6|192;else{if(h>=55296&&h<=57343){if(h<=56319&&E=56320&&F<=57343){h=(h-55296)*1024+ F-56320+65536;r[a++]=h>>18|240;r[a++]=h>>12&63|128;r[a++]=h>>6&63|128;r[a++]=h&63|128;continue}else E--}if(t)throw Error("Found an unpaired surrogate");h=65533}r[a++]=h>>12|224;r[a++]=h>>6&63|128}r[a++]=h&63|128}}y=a===r.length?r:r.subarray(0,a)}return y}; Jq=function(y){g.ks.setTimeout(function(){throw y;},0)}; DXu=function(y){return Array.prototype.map.call(y,function(t){t=t.toString(16);return t.length>1?t:"0"+t}).join("")}; g_b=function(y){for(var t=[],a=0;a>6|192:((E&64512)==55296&&r+1>18|240,t[a++]=E>>12&63|128):t[a++]=E>>12|224,t[a++]=E>>6&63|128),t[a++]=E&63|128)}return t}; g.H$=function(y,t){t===void 0&&(t=0);iJV();t=KsN[t];for(var a=Array(Math.floor(y.length/3)),r=t[64]||"",E=0,h=0;E>2];F=t[(F&3)<<4|x>>4];x=t[(x&15)<<2|U>>6];U=t[U&63];a[h++]=""+C+F+x+U}C=0;U=r;switch(y.length-E){case 2:C=y[E+1],U=t[(C&15)<<2]||r;case 1:y=y[E],a[h]=""+t[y>>2]+t[(y&3)<<4|C>>4]+U+r}return a.join("")}; g.bn=function(y,t,a){if(Ihd&&!t)y=g.ks.btoa(y);else{for(var r=[],E=0,h=0;h255){var x=Error("go/unicode-to-byte-error");if(a)throw x;r[E++]=F&255;F>>=8}r[E++]=F}y=g.H$(r,t)}return y}; GJH=function(y){var t=[];TKn(y,function(a){t.push(a)}); return t}; B$=function(y){var t=y.length,a=t*3/4;a%3?a=Math.floor(a):g.GJ("=.",y[t-1])&&(a=g.GJ("=.",y[t-2])?a-2:a-1);var r=new Uint8Array(a),E=0;TKn(y,function(h){r[E++]=h}); return E!==a?r.subarray(0,E):r}; TKn=function(y,t){function a(U){for(;r>4);F!=64&&(t(h<<4&240|F>>2),x!=64&&t(F<<6&192|x))}}; iJV=function(){if(!c$){c$={};for(var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],a=0;a<5;a++){var r=y.concat(t[a].split(""));KsN[a]=r;for(var E=0;E=t||(r[y]=a+1,y=Error(),jqF(y,"incident"),Jq(y))}}; yo=function(y,t,a){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(a===void 0?0:a)&&Symbol.for&&y?Symbol.for(y):y!=null?Symbol(y):Symbol():t}; rp=function(y,t){tj||aI in y||xmu(y,sez);y[aI]|=t}; E0=function(y,t){tj||aI in y||xmu(y,sez);y[aI]=t}; hj=function(){return typeof BigInt==="function"}; Aj=function(y,t){return t===void 0?y.V!==FW&&!!(2&(y.jr[aI]|0)):!!(2&t)&&y.V!==FW}; $mz=function(y,t){if(y!=null)if(typeof y==="string")y=y?new qV(y,YI):DS();else if(y.constructor!==qV)if(Ftb&&y!=null&&y instanceof Uint8Array)y=y.length?new qV(new Uint8Array(y),YI):DS();else{if(!t)throw Error();y=void 0}return y}; xh=function(y,t){if(typeof t!=="number"||t<0||t>=y.length)throw Error();}; Um7=function(y,t,a){var r=t&128?0:-1,E=y.length,h;if(h=!!E)h=y[E-1],h=h!=null&&typeof h==="object"&&h.constructor===Object;var F=E+(h?-1:0);for(t=t&128?1:0;tt.length)return!1;if(y.lengthE)return!1;if(r>>0;O0=t;Lz=(y-t)/4294967296>>>0}; NE=function(y){if(y<0){RI(0-y);var t=g.p(PA(O0,Lz));y=t.next().value;t=t.next().value;O0=y>>>0;Lz=t>>>0}else RI(y)}; XW=function(y,t){var a=t*4294967296+(y>>>0);return Number.isSafeInteger(a)?a:dp(y,t)}; kh=function(y,t){var a=t&2147483648;a&&(y=~y+1>>>0,t=~t>>>0,y==0&&(t=t+1>>>0));y=XW(y,t);return typeof y==="number"?a?-y:y:a?"-"+y:y}; WA=function(y,t){return hj()?zH(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(t))<>>=0;y>>>=0;if(t<=2097151)var a=""+(4294967296*t+y);else hj()?a=""+(BigInt(t)<>>24|t<<8)&16777215,t=t>>16&65535,y=(y&16777215)+a*6777216+t*6710656,a+=t*8147497,t*=2,y>=1E7&&(a+=y/1E7>>>0,y%=1E7),a>=1E7&&(t+=a/1E7>>>0,a%=1E7),a=t+Ltn(a)+Ltn(y));return a}; Ltn=function(y){y=String(y);return"0000000".slice(y.length)+y}; fz=function(y,t){t&2147483648?hj()?y=""+(BigInt(t|0)<>>0)):(t=g.p(PA(y,t)),y=t.next().value,t=t.next().value,y="-"+dp(y,t)):y=dp(y,t);return y}; jl=function(y){if(y.length<16)NE(Number(y));else if(hj())y=BigInt(y),O0=Number(y&BigInt(4294967295))>>>0,Lz=Number(y>>BigInt(32)&BigInt(4294967295));else{var t=+(y[0]==="-");Lz=O0=0;for(var a=y.length,r=0+t,E=(a-t)%6+t;E<=a;r=E,E+=6)r=Number(y.slice(r,E)),Lz*=1E6,O0=O0*1E6+r,O0>=4294967296&&(Lz+=Math.trunc(O0/4294967296),Lz>>>=0,O0>>>=0);t&&(t=g.p(PA(O0,Lz)),y=t.next().value,t=t.next().value,O0=y,Lz=t)}}; PA=function(y,t){t=~t;y?y=~y+1:t+=1;return[y,t]}; Sl=function(y){return Array.prototype.slice.call(y)}; Qo=function(y){if(y!=null&&typeof y!=="number")throw Error("Value of float/double field must be a number, found "+typeof y+": "+y);return y}; MEn=function(y){return y.displayName||y.name||"unknown type name"}; vA=function(y){if(y!=null&&typeof y!=="boolean")throw Error("Expected boolean but got "+Qe(y)+": "+y);return y}; el=function(y){switch(typeof y){case "bigint":return!0;case "number":return pz(y);case "string":return wW2.test(y);default:return!1}}; R3N=function(y){if(typeof y!=="number")throw GI("int32");if(!pz(y))throw GI("int32");return y|0}; lz=function(y){return y==null?y:R3N(y)}; uz=function(y){if(y==null)return y;if(typeof y==="string"&&y)y=+y;else if(typeof y!=="number")return;return pz(y)?y|0:void 0}; Vo=function(y){if(y==null)return y;if(typeof y==="string"&&y)y=+y;else if(typeof y!=="number")return;return pz(y)?y>>>0:void 0}; dmb=function(y){var t=0;t=t===void 0?0:t;if(!el(y))throw GI("int64");var a=typeof y;switch(t){case 512:switch(a){case "string":return nz(y);case "bigint":return String(m5(64,y));default:return Jj(y)}case 1024:switch(a){case "string":return PA7(y);case "bigint":return zH(m5(64,y));default:return NI2(y)}case 0:switch(a){case "string":return nz(y);case "bigint":return zH(m5(64,y));default:return oI(y)}default:return SE(t,"Unknown format requested type for int64")}}; BA=function(y){return y==null?y:dmb(y)}; XW2=function(y){var t=y.length;if(y[0]==="-"?t<20||t===20&&y<="-9223372036854775808":t<19||t===19&&y<="9223372036854775807")return y;jl(y);return fz(O0,Lz)}; oI=function(y){el(y);y=cA(y);qE(y)||(NE(y),y=kh(O0,Lz));return y}; Jj=function(y){el(y);y=cA(y);qE(y)?y=String(y):(NE(y),y=fz(O0,Lz));return y}; nz=function(y){el(y);var t=cA(Number(y));if(qE(t))return String(t);t=y.indexOf(".");t!==-1&&(y=y.substring(0,t));return XW2(y)}; PA7=function(y){var t=cA(Number(y));if(qE(t))return zH(t);t=y.indexOf(".");t!==-1&&(y=y.substring(0,t));return hj()?zH(m5(64,BigInt(y))):zH(XW2(y))}; NI2=function(y){return qE(y)?zH(oI(y)):zH(Jj(y))}; kfn=function(y){if(y==null)return y;if(typeof y==="bigint")return Yh(y)?y=Number(y):(y=m5(64,y),y=Yh(y)?Number(y):String(y)),y;if(el(y))return typeof y==="number"?oI(y):nz(y)}; Df=function(y){var t=typeof y;if(y==null)return y;if(t==="bigint")return zH(m5(64,y));if(el(y))return t==="string"?PA7(y):NI2(y)}; fV7=function(y){if(y==null)return y;var t=typeof y;if(t==="bigint")return String(m5(64,y));if(el(y)){if(t==="string")return nz(y);if(t==="number")return oI(y)}}; je7=function(y){if(y==null)return y;var t=typeof y;if(t==="bigint")return String(Wtx(64,y));if(el(y)){if(t==="string")return el(y),t=cA(Number(y)),qE(t)&&t>=0?y=String(t):(t=y.indexOf("."),t!==-1&&(y=y.substring(0,t)),y[0]==="-"?t=!1:(t=y.length,t=t<20?!0:t===20&&y<="18446744073709551615"),t||(jl(y),y=dp(O0,Lz))),y;if(t==="number")return el(y),y=cA(y),y>=0&&qE(y)||(NE(y),y=XW(O0,Lz)),y}}; SMd=function(y){if(y==null||typeof y=="string"||y instanceof qV)return y}; QeH=function(y){if(typeof y!=="string")throw Error();return y}; gp=function(y){if(y!=null&&typeof y!=="string")throw Error();return y}; iz=function(y){return y==null||typeof y==="string"?y:void 0}; Kz=function(y,t){if(!(y instanceof t))throw Error("Expected instanceof "+MEn(t)+" but got "+(y&&MEn(y.constructor)));return y}; v$b=function(y,t,a){if(y!=null&&y[II]===TH)return y;if(Array.isArray(y)){var r=y[aI]|0;a=r|a&32|a&2;a!==r&&E0(y,a);return new t(y)}}; GH=function(y){return y}; yi=function(y){var t=Hd(Zf);return t?y[t]:void 0}; tF=function(){}; aG=function(y,t){for(var a in y)!isNaN(a)&&t(y,+a,y[a])}; pW7=function(y){var t=new tF;aG(y,function(a,r,E){t[r]=Sl(E)}); t.zo=y.zo;return t}; lVn=function(y,t){t<100||ZS(e3x,1)}; Ew=function(y,t,a,r){var E=r!==void 0;r=!!r;var h=Hd(Zf),F;!E&&tj&&h&&(F=y[h])&&aG(F,lVn);h=[];var x=y.length;F=4294967295;var U=!1,C=!!(t&64),z=C?t&128?0:-1:void 0;if(!(t&1)){var O=x&&y[x-1];O!=null&&typeof O==="object"&&O.constructor===Object?(x--,F=x):O=void 0;if(C&&!(t&128)&&!E){U=!0;var M;F=((M=rM)!=null?M:GH)(F-z,z,y,O,void 0)+z}}t=void 0;for(M=0;M=F){var w=M-z,d=void 0;((d=t)!=null?d:t={})[w]=L}else h[M]=L}if(O)for(var k in O)x=O[k],x!= null&&(x=a(x,r))!=null&&(M=+k,L=void 0,C&&!Number.isNaN(M)&&(L=M+z)0?void 0:y===0?JyH||(JyH=[0,void 0]):[-y,void 0];case "string":return[0,y];case "object":return y}}; AF=function(y,t){return Hbd(y,t[0],t[1])}; xc=function(y,t,a){return Hbd(y,t,a,2048)}; Hbd=function(y,t,a,r){r=r===void 0?0:r;if(y==null){var E=32;a?(y=[a],E|=128):y=[];t&&(E=E&-16760833|(t&1023)<<14)}else{if(!Array.isArray(y))throw Error("narr");E=y[aI]|0;if(bbF&&1&E)throw Error("rfarr");2048&E&&!(2&E)&&BI2();if(E&256)throw Error("farr");if(E&64)return(E|r)!==E&&E0(y,E|r),y;if(a&&(E|=128,a!==y[0]))throw Error("mid");a:{a=y;E|=64;var h=a.length;if(h){var F=h-1,x=a[F];if(x!=null&&typeof x==="object"&&x.constructor===Object){t=E&128?0:-1;F-=t;if(F>=1024)throw Error("pvtlmt");for(var U in x)h= +U,h1024)throw Error("spvt");E=E&-16760833|(U&1023)<<14}}}E0(y,E|64|r);return y}; BI2=function(){if(bbF)throw Error("carr");ZS(cyF,5)}; qM7=function(y,t){if(typeof y!=="object")return y;if(Array.isArray(y)){var a=y[aI]|0;y.length===0&&a&1?y=void 0:a&2||(!t||4096&a||16&a?y=$c(y,a,!1,t&&!(a&16)):(rp(y,34),a&4&&Object.freeze(y)));return y}if(y!=null&&y[II]===TH)return t=y.jr,a=t[aI]|0,Aj(y,a)?y:Uw(y,t,a)?Cn(y,t):$c(t,a);if(y instanceof qV)return y}; Cn=function(y,t,a){y=new y.constructor(t);a&&(y.V=FW);y.K=FW;return y}; $c=function(y,t,a,r){r!=null||(r=!!(34&t));y=Ew(y,t,qM7,r);r=32;a&&(r|=2);t=t&16769217|r;E0(y,t);return y}; YM7=function(y){var t=y.jr,a=t[aI]|0;return Aj(y,a)?Uw(y,t,a)?Cn(y,t,!0):new y.constructor($c(t,a,!1)):y}; zU=function(y){if(y.V!==FW)return!1;var t=y.jr;t=$c(t,t[aI]|0);rp(t,2048);y.jr=t;y.V=void 0;y.K=void 0;return!0}; Ow=function(y){if(!zU(y)&&Aj(y,y.jr[aI]|0))throw Error();}; Ln=function(y,t){t===void 0&&(t=y[aI]|0);t&32&&!(t&4096)&&E0(y,t|4096)}; Uw=function(y,t,a){return a&2?!0:a&32&&!(a&4096)?(E0(t,a|2),y.V=FW,!0):!1}; wM=function(y,t,a,r,E){Object.isExtensible(y);t=MI(y.jr,t,a,E);if(t!==null||r&&y.K!==FW)return t}; MI=function(y,t,a,r){if(t===-1)return null;var E=t+(a?0:-1),h=y.length-1;if(!(h<1+(a?0:-1))){if(E>=h){var F=y[h];if(F!=null&&typeof F==="object"&&F.constructor===Object){a=F[t];var x=!0}else if(E===h)a=F;else return}else a=y[E];if(r&&a!=null){r=r(a);if(r==null)return r;if(!Object.is(r,a))return x?F[t]=r:y[E]=r,r}return a}}; P0=function(y,t,a,r){Ow(y);var E=y.jr;RG(E,E[aI]|0,t,a,r);return y}; RG=function(y,t,a,r,E){var h=a+(E?0:-1),F=y.length-1;if(F>=1+(E?0:-1)&&h>=F){var x=y[F];if(x!=null&&typeof x==="object"&&x.constructor===Object)return x[a]=r,t}if(h<=F)return y[h]=r,t;if(r!==void 0){var U;F=((U=t)!=null?U:t=y[aI]|0)>>14&1023||536870912;a>=F?r!=null&&(h={},y[F+(E?0:-1)]=(h[a]=r,h)):y[h]=r}return t}; fn=function(y,t,a,r,E){var h=y.jr,F=h[aI]|0;r=Aj(y,F)?1:r;E=!!E||r===3;r===2&&zU(y)&&(h=y.jr,F=h[aI]|0);y=NI(h,t);var x=y===dM?7:y[aI]|0,U=XH(x,F);var C=4&U?!1:!0;if(C){4&U&&(y=Sl(y),x=0,U=kc(U,F),F=RG(h,F,t,y));for(var z=0,O=0;z32)for(r|=(x&127)>>4,E=3;E<32&&x&128;E+=7)x=h[F++],r|=(x&127)<>>0,r>>>0);throw Error();}; RO=function(y,t){y.V=t;if(t>y.Y)throw Error();}; Nn=function(y){var t=y.K,a=y.V,r=t[a++],E=r&127;if(r&128&&(r=t[a++],E|=(r&127)<<7,r&128&&(r=t[a++],E|=(r&127)<<14,r&128&&(r=t[a++],E|=(r&127)<<21,r&128&&(r=t[a++],E|=r<<28,r&128&&t[a++]&128&&t[a++]&128&&t[a++]&128&&t[a++]&128&&t[a++]&128)))))throw Error();RO(y,a);return E}; de=function(y){var t=y.K,a=y.V,r=t[a+0],E=t[a+1],h=t[a+2];t=t[a+3];RO(y,y.V+4);return(r<<0|E<<8|h<<16|t<<24)>>>0}; XF=function(y){var t=de(y);y=de(y);return XW(t,y)}; ky=function(y){var t=de(y);y=de(y);return zH(hj()?BigInt.asUintN(64,(BigInt(y>>>0)<>>0)):dp(t,y))}; fY=function(y){var t=de(y),a=de(y);y=(a>>31)*2+1;var r=a>>>20&2047;t=4294967296*(a&1048575)+t;return r==2047?t?NaN:y*Infinity:r==0?y*4.9E-324*t:y*Math.pow(2,r-1075)*(t+4503599627370496)}; WC=function(y){for(var t=0,a=y.V,r=a+10,E=y.K;ay.Y)throw Error();y.V=t;return a}; EoH=function(y,t){if(t==0)return DS();var a=aP1(y,t);y.jN&&y.L?a=y.K.subarray(a,a+t):(y=y.K,t=a+t,a=a===t?new Uint8Array(0):rEd?y.slice(a,t):new Uint8Array(y.subarray(a,t)));return a.length==0?DS():new qV(a,YI)}; Sj=function(y,t,a,r){if(jj.length){var E=jj.pop();E.init(y,t,a,r);y=E}else y=new we(y,t,a,r);this.V=y;this.D=this.V.V;this.K=this.Y=-1;hSz(this,r)}; hSz=function(y,t){t=t===void 0?{}:t;y.I9=t.I9===void 0?!1:t.I9}; F6b=function(y,t,a,r){if(QS.length){var E=QS.pop();hSz(E,r);E.V.init(y,t,a,r);return E}return new Sj(y,t,a,r)}; AEH=function(y){var t=y.V;if(t.V==t.Y)return!1;y.D=y.V.V;var a=Nn(y.V)>>>0;t=a>>>3;a&=7;if(!(a>=0&&a<=5))throw Error();if(t<1)throw Error();y.Y=t;y.K=a;return!0}; vC=function(y){switch(y.K){case 0:y.K!=0?vC(y):WC(y.V);break;case 1:y=y.V;RO(y,y.V+8);break;case 2:if(y.K!=2)vC(y);else{var t=Nn(y.V)>>>0;y=y.V;RO(y,y.V+t)}break;case 5:y=y.V;RO(y,y.V+4);break;case 3:t=y.Y;do{if(!AEH(y))throw Error();if(y.K==4){if(y.Y!=t)throw Error();break}vC(y)}while(1);break;default:throw Error();}}; pY=function(y,t,a){var r=y.V.Y,E=Nn(y.V)>>>0;E=y.V.V+E;var h=E-r;h<=0&&(y.V.Y=E,a(t,y,void 0,void 0,void 0),h=E-y.V.V);if(h)throw Error();y.V.V=E;y.V.Y=r}; uV=function(y){var t=Nn(y.V)>>>0;y=y.V;var a=aP1(y,t);y=y.K;if(xWH){var r=y,E;(E=ej)||(E=ej=new TextDecoder("utf-8",{fatal:!0}));t=a+t;r=a===0&&t===r.length?r:r.subarray(a,t);try{var h=E.decode(r)}catch(C){if(lV===void 0){try{E.decode(new Uint8Array([128]))}catch(z){}try{E.decode(new Uint8Array([97])),lV=!0}catch(z){lV=!1}}!lV&&(ej=void 0);throw C;}}else{h=a;t=h+t;a=[];for(var F=null,x,U;h=t?my():(U=y[h++],x<194||(U&192)!==128?(h--,my()):a.push((x&31)<<6|U&63)): x<240?h>=t-1?my():(U=y[h++],(U&192)!==128||x===224&&U<160||x===237&&U>=160||((E=y[h++])&192)!==128?(h--,my()):a.push((x&15)<<12|(U&63)<<6|E&63)):x<=244?h>=t-2?my():(U=y[h++],(U&192)!==128||(x<<28)+(U-144)>>30!==0||((E=y[h++])&192)!==128||((r=y[h++])&192)!==128?(h--,my()):(x=(x&7)<<18|(U&63)<<12|(E&63)<<6|r&63,x-=65536,a.push((x>>10&1023)+55296,(x&1023)+56320))):my(),a.length>=8192&&(F=bJ2(F,a),a.length=0);h=bJ2(F,a)}return h}; ssV=function(y){var t=Nn(y.V)>>>0;return EoH(y.V,t)}; $Wz=function(y,t,a){var r=Nn(y.V)>>>0;for(r=y.V.V+r;y.V.V>>0;this.V=t>>>0}; zSu=function(y){if(!y)return Cv7||(Cv7=new nY(0,0));if(!/^\d+$/.test(y))return null;jl(y);return new nY(O0,Lz)}; mn=function(y,t){this.K=y>>>0;this.V=t>>>0}; L67=function(y){if(!y)return OpH||(OpH=new mn(0,0));if(!/^-?\d+$/.test(y))return null;jl(y);return new mn(O0,Lz)}; J_=function(){this.V=[]}; oO=function(y,t,a){for(;a>0||t>127;)y.V.push(t&127|128),t=(t>>>7|a<<25)>>>0,a>>>=7;y.V.push(t)}; HC=function(y,t){for(;t>127;)y.V.push(t&127|128),t>>>=7;y.V.push(t)}; MUH=function(y,t){if(t>=0)HC(y,t);else{for(var a=0;a<9;a++)y.V.push(t&127|128),t>>=7;y.V.push(1)}}; bV=function(y,t){y.V.push(t>>>0&255);y.V.push(t>>>8&255);y.V.push(t>>>16&255);y.V.push(t>>>24&255)}; wad=function(){this.Y=[];this.K=0;this.V=new J_}; BC=function(y,t){t.length!==0&&(y.Y.push(t),y.K+=t.length)}; RSV=function(y,t){cC(y,t,2);t=y.V.end();BC(y,t);t.push(y.K);return t}; Pv7=function(y,t){var a=t.pop();for(a=y.K+y.V.length()-a;a>127;)t.push(a&127|128),a>>>=7,y.K++;t.push(a);y.K++}; cC=function(y,t,a){HC(y.V,t*8+a)}; N4b=function(y,t,a){if(a!=null){switch(typeof a){case "string":zSu(a)}cC(y,t,1);switch(typeof a){case "number":y=y.V;RI(a);bV(y,O0);bV(y,Lz);break;case "bigint":a=BigInt.asUintN(64,a);a=new nY(Number(a&BigInt(4294967295)),Number(a>>BigInt(32)));y=y.V;t=a.V;bV(y,a.K);bV(y,t);break;default:a=zSu(a),y=y.V,t=a.V,bV(y,a.K),bV(y,t)}}}; qn=function(y,t,a){cC(y,t,2);HC(y.V,a.length);BC(y,y.V.end());BC(y,a)}; Yy=function(){function y(){throw Error();} Object.setPrototypeOf(y,y.prototype);return y}; Do=function(y,t,a){this.jr=xc(y,t,a)}; dW7=function(y,t){if(t==null||t=="")return new y;t=JSON.parse(t);if(!Array.isArray(t))throw Error("dnarr");rp(t,32);return new y(t)}; iV=function(y,t,a){this.Gs=y;this.ZS=t;y=Hd(ge);this.V=!!y&&a===y||!1}; KY=function(y,t){var a=a===void 0?ge:a;return new iV(y,t,a)}; kRd=function(y,t,a,r,E){t=Xad(t,r);t!=null&&(a=RSV(y,a),E(t,y),Pv7(y,a))}; GG=function(y,t,a,r){var E=r[y];if(E)return E;E={};E.J0=r;E.Cr=o$y(r[0]);var h=r[1],F=1;h&&h.constructor===Object&&(E.extensions=h,h=r[++F],typeof h==="function"&&(E.t8=!0,IO!=null||(IO=h),TG!=null||(TG=r[F+1]),h=r[F+=2]));for(var x={};h&&Array.isArray(h)&&h.length&&typeof h[0]==="number"&&h[0]>0;){for(var U=0;U>BigInt(32)));oO(y.V,a.K,a.V);break;default:a=L67(t),oO(y.V,a.K,a.V)}}}; zt=function(y,t,a){t=uz(t);t!=null&&t!=null&&(cC(y,a,0),MUH(y.V,t))}; mW2=function(y,t,a){t=t==null||typeof t==="boolean"?t:typeof t==="number"?!!t:void 0;t!=null&&(cC(y,a,0),y.V.V.push(t?1:0))}; JEN=function(y,t,a){t=iz(t);t!=null&&qn(y,a,Y9d(t))}; oo7=function(y,t,a,r,E){t=Xad(t,r);t!=null&&(a=RSV(y,a),E(t,y),Pv7(y,a))}; bp7=function(y,t,a){if(a!==VS)throw Error();this.typeName=y;this.V=t;if(a!==VS)throw Error();Hp1.set(y,this)}; cEx=function(){var y=OQ;this.V=B4y;this.isRepeated=0;this.K=B0;this.defaultValue=void 0;this.Y=y.messageId!=null?s0:void 0}; qm2=function(y,t){return function(a,r){var E={DS:!0};r&&Object.assign(E,r);a=F6b(a,void 0,void 0,E);try{var h=new y,F=h.jr;aF(t)(F,a);var x=h}finally{a.free()}return x}}; YmV=function(y){return function(){var t=new wad;lPV(this.jr,t,GG(hZ,EQ,Fo,y));BC(t,t.V.end());for(var a=new Uint8Array(t.K),r=t.Y,E=r.length,h=0,F=0;F-1)return t.apply(null,g.i7(a));try{return y.V=y.Y.V.now(),t.apply(null,g.i7(a))}finally{y.D+=y.Y.V.now()-y.V,y.V=-1,y.K+=1}}}; gob=function(y,t){this.K=y;this.Y=t;this.V=new DWN(y)}; ipx=function(){this.V={}}; GRV=function(){this.Y=void 0;this.K=this.J=0;this.L=-1;this.Yk=new c1;qX(this.Yk,"mv",K6b).V=!0;qX(this.Yk,"omid",KJ);qX(this.Yk,"epoh",KJ).V=!0;qX(this.Yk,"epph",KJ).V=!0;qX(this.Yk,"umt",KJ).V=!0;qX(this.Yk,"phel",KJ).V=!0;qX(this.Yk,"phell",KJ).V=!0;qX(this.Yk,"oseid",IPu).V=!0;var y=this.Yk;y.V.sloi||(y.V.sloi=new H1);y.V.sloi.V=!0;qX(this.Yk,"mm",RF);qX(this.Yk,"ovms",T4u).V=!0;qX(this.Yk,"xdi",KJ).V=!0;qX(this.Yk,"amp",KJ).V=!0;qX(this.Yk,"prf",KJ).V=!0;qX(this.Yk,"gtx",KJ).V=!0;qX(this.Yk, "mvp_lv",KJ).V=!0;qX(this.Yk,"ssmol",KJ).V=!0;qX(this.Yk,"fmd",KJ).V=!0;qX(this.Yk,"gen204simple",KJ);this.V=new gob(nQ(),this.Yk);this.D=!1;this.flags=new ipx}; Pv=function(){return un(GRV)}; Zp7=function(y,t,a,r){if(Math.random()<(r||y.V))try{if(a instanceof W$)var E=a;else E=new W$,fQ(a,function(F,x){var U=E,C=U.D++;F=j$(x,F);U.V.push(C);U.K[C]=F}); var h=E.xJ(y.K,"pagead2.googlesyndication.com","/pagead/gen_204?id="+t+"&");h&&(nQ(),mXN(h))}catch(F){}}; yqz=function(y,t,a){a=a===void 0?{}:a;this.error=y;this.meta=a;this.context=t.context;this.msg=t.message||"";this.id=t.id||"jserror"}; t$N=function(){var y=y===void 0?g.ks:y;return(y=y.performance)&&y.now&&y.timing?Math.floor(y.now()+y.timing.navigationStart):g.oq()}; aS7=function(){var y=y===void 0?g.ks:y;return(y=y.performance)&&y.now?y.now():null}; rqF=function(y,t,a){this.label=y;this.type=t;this.value=a;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; d8=function(){var y=window;this.events=[];this.K=y||g.ks;var t=null;y&&(y.google_js_reporting_queue=y.google_js_reporting_queue||[],this.events=y.google_js_reporting_queue,t=y.google_measure_js_timing);this.V=N8()||(t!=null?t:Math.random()<1)}; EIn=function(y){y&&Xo&&N8()&&(Xo.clearMarks("goog_"+y.label+"_"+y.uniqueId+"_start"),Xo.clearMarks("goog_"+y.label+"_"+y.uniqueId+"_end"))}; k0=function(y,t,a,r,E,h,F){var x="";y&&(x+=y+":");a&&(x+="//",t&&(x+=t+"@"),x+=a,r&&(x+=":"+r));E&&(x+=E);h&&(x+="?"+h);F&&(x+="#"+F);return x}; g.fE=function(y){return y.match(hfV)}; Fyb=function(y){return y?decodeURI(y):y}; g.Wv=function(y){return Fyb(g.fE(y)[3]||null)}; j8=function(y){return Fyb(g.fE(y)[5]||null)}; g.Aqz=function(y){y=g.fE(y);return k0(y[1],y[2],y[3],y[4])}; S8=function(y){y=g.fE(y);return k0(null,null,null,null,y[5],y[6],y[7])}; xV1=function(y){var t=y.indexOf("#");return t<0?y:y.slice(0,t)}; Qh=function(y,t){if(y){y=y.split("&");for(var a=0;a=0){var h=y[a].substring(0,r);E=y[a].substring(r+1)}else h=y[a];t(h,E?qm(E):"")}}}; vv=function(y,t){if(!t)return y;var a=y.indexOf("#");a<0&&(a=y.length);var r=y.indexOf("?");if(r<0||r>a){r=a;var E=""}else E=y.substring(r+1,a);y=[y.slice(0,r),E,y.slice(a)];a=y[1];y[1]=t?a?a+"&"+t:t:a;return y[0]+(y[1]?"?"+y[1]:"")+y[2]}; pE=function(y,t,a){if(Array.isArray(t))for(var r=0;r=0&&ta)E=a;r+=t.length+1;return qm(y.slice(r,E!==-1?E:0))}; JZ=function(y,t){for(var a=y.search(nE),r=0,E,h=[];(E=Vh(y,r,t,a))>=0;)h.push(y.substring(r,E)),r=Math.min(y.indexOf("&",E)+1||a,a);h.push(y.slice(r));return h.join("").replace(UVV,"$1")}; CnH=function(y,t,a){return uJ(JZ(y,t),t,a)}; zf1=function(){var y=oF;this.V=Hv;this.XP="jserror";this.Go=!0;this.j5=null;this.K=this.Xh;this.fM=y===void 0?null:y}; OQV=function(y,t,a){var r=bJ;return w8(Pv().V.V,function(){try{if(r.fM&&r.fM.V){var E=r.fM.start(y.toString(),3);var h=t();r.fM.end(E)}else h=t()}catch(x){var F=r.Go;try{EIn(E),F=r.K(y,new Bv(cv(x)),void 0,a)}catch(U){r.Xh(217,U)}if(!F)throw x;}return h})()}; q8=function(y,t,a,r){return w8(Pv().V.V,function(){var E=g.w2.apply(0,arguments);return OQV(y,function(){return t.apply(a,E)},r)})}; cv=function(y){var t=y.toString();y.name&&t.indexOf(y.name)==-1&&(t+=": "+y.name);y.message&&t.indexOf(y.message)==-1&&(t+=": "+y.message);if(y.stack)a:{y=y.stack;var a=t;try{y.indexOf(a)==-1&&(y=a+"\n"+y);for(var r;y!=r;)r=y,y=y.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");t=y.replace(/\n */g,"\n");break a}catch(E){t=a;break a}t=void 0}return t}; Bv=function(y){yqz.call(this,Error(y),{message:y})}; Ly1=function(){qW&&typeof qW.google_measure_js_timing!="undefined"&&(qW.google_measure_js_timing||oF.disable())}; M$F=function(y){bJ.j5=function(t){g.wK(y,function(a){a(t)})}}; w$N=function(y,t){return OQV(y,t)}; Y0=function(y,t){return q8(y,t)}; DJ=function(y,t,a,r){bJ.Xh(y,t,a,r)}; g8=function(){return Date.now()-RfV}; Pnz=function(){var y=Pv().Y,t=iJ>=0?g8()-iJ:-1,a=KE?g8()-IF:-1,r=Tt>=0?g8()-Tt:-1;if(y==947190542)return 100;if(y==79463069)return 200;y=[2E3,4E3];var E=[250,500,1E3];DJ(637,Error(),.001);var h=t;a!=-1&&a1500&&r<4E3?500:F}; Gt=function(y,t,a){var r=new Is(0,0,0,0);this.time=y;this.volume=null;this.Y=t;this.V=r;this.K=a}; ZJ=function(y,t,a,r,E,h,F,x){this.D=y;this.W=t;this.Y=a;this.J=r;this.V=E;this.L=h;this.K=F;this.Z=x}; dVd=function(y){var t=y!==y.top,a=y.top===PNy(y),r=-1,E=0;if(t&&a&&y.top.mraid){r=3;var h=y.top.mraid}else r=(h=y.mraid)?t?a?2:1:0:-1;h&&(h.IS_GMA_SDK||(E=2),tc1(Nyz,function(F){return typeof h[F]==="function"})||(E=1)); return{Cb:h,compatibility:E,tfr:r}}; X$u=function(){var y=window.document;return y&&typeof y.elementFromPoint==="function"}; kI7=function(y,t,a){if(y&&t!==null&&t!=t.top){if(!t.top)return new g.F1(-12245933,-12245933);t=t.top}try{return(a===void 0?0:a)?(new g.F1(t.innerWidth,t.innerHeight)).round():ahu(t||window).round()}catch(r){return new g.F1(-12245933,-12245933)}}; yM=function(y,t,a){try{if(y){if(!t.top)return new Is(-12245933,-12245933,-12245933,-12245933);t=t.top}var r=kI7(y,t,a),E=r.height,h=r.width;if(h===-12245933)return new Is(h,h,h,h);var F=Lp(t.document);var x=E_y(F.V);var U=x.x,C=x.y;return new Is(C,U+h,C+E,U)}catch(z){return new Is(-12245933,-12245933,-12245933,-12245933)}}; tv=function(y,t){t=Math.pow(10,t);return Math.floor(y*t)/t}; fSz=function(y){return new Is(y.top,y.right,y.bottom,y.left)}; Wy2=function(y){var t=y.top||0,a=y.left||0;return new Is(t,a+(y.width||0),t+(y.height||0),a)}; ap=function(y){return y!=null&&y>=0&&y<=1}; jgb=function(){var y=g.rI();return y?rQ("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(t){return Zh(y,t)})||Zh(y,"OMI/")&&!Zh(y,"XiaoMi/")?!0:Zh(y,"Presto")&&Zh(y,"Linux")&&!Zh(y,"X11")&&!Zh(y,"Android")&&!Zh(y,"Mobi"):!1}; Srd=function(){this.Y=!dy(qW.top);this.isMobileDevice=X5()||NK7();var y=kI();this.domain=y.length>0&&y[y.length-1]!=null&&y[y.length-1].url!=null?g.Wv(y[y.length-1].url)||"":"";this.V=new Is(0,0,0,0);this.D=new g.F1(0,0);this.L=new g.F1(0,0);this.W=new Is(0,0,0,0);this.frameOffset=new g.Em(0,0);this.J=0;this.Z=!1;this.K=!(!qW||!dVd(qW).Cb);this.update(qW)}; QgH=function(y,t){t&&t.screen&&(y.D=new g.F1(t.screen.width,t.screen.height))}; vIN=function(y,t){a:{var a=y.V?new g.F1(TR(y.V),y.V.getHeight()):new g.F1(0,0);t=t===void 0?qW:t;t!==null&&t!=t.top&&(t=t.top);var r=0,E=0;try{var h=t.document,F=h.body,x=h.documentElement;if(h.compatMode=="CSS1Compat"&&x.scrollHeight)r=x.scrollHeight!=a.height?x.scrollHeight:x.offsetHeight,E=x.scrollWidth!=a.width?x.scrollWidth:x.offsetWidth;else{var U=x.scrollHeight,C=x.scrollWidth,z=x.offsetHeight,O=x.offsetWidth;x.clientHeight!=z&&(U=F.scrollHeight,C=F.scrollWidth,z=F.offsetHeight,O=F.offsetWidth); U>a.height?U>z?(r=U,E=C):(r=z,E=O):U0||y.Z)return!0;y=nQ().K.isVisible();var t=P$(hv)===0;return y||t}; Ed=function(){return un(Srd)}; Av=function(y){this.Y=y;this.K=0;this.V=null}; xO=function(y,t,a){this.Y=y;this.yv=a===void 0?"na":a;this.L=[];this.isInitialized=!1;this.D=new Gt(-1,!0,this);this.V=this;this.Z=t;this.AF=this.hF=!1;this.d0="uk";this.DE=!1;this.J=!0}; sd=function(y,t){g.TE(y.L,t)||(y.L.push(t),t.H6(y.V),t.jY(y.D),t.m2()&&(y.hF=!0))}; p$y=function(y){y=y.V;y.lF();y.f6();var t=Ed();t.W=yM(!1,y.Y,t.isMobileDevice);vIN(Ed(),y.Y);y.D.V=y.Js()}; ef1=function(y){y.hF=y.L.length?rQ(y.L,function(t){return t.m2()}):!1}; lS1=function(y){var t=g.hB(y.L);g.wK(t,function(a){a.jY(y.D)})}; $O=function(y){var t=g.hB(y.L);g.wK(t,function(a){a.H6(y.V)}); y.V!=y||lS1(y)}; Ud=function(y,t,a,r){this.element=y;this.V=new Is(0,0,0,0);this.Y=null;this.J=new Is(0,0,0,0);this.K=t;this.Yk=a;this.DE=r;this.o5=!1;this.timestamp=-1;this.hF=new ZJ(t.D,this.element,this.V,new Is(0,0,0,0),0,0,g8(),0);this.L=void 0}; var Eu7=function(){return ku[A[3]](this,17)}; u57=function(y,t){return y.L?new Is(Math.max(t.top+y.L.top,t.top),Math.min(t.left+y.L.right,t.right),Math.min(t.top+y.L.bottom,t.bottom),Math.max(t.left+y.L.left,t.left)):t.clone()}; Cj=function(y){this.L=!1;this.V=y;this.D=function(){}}; V$2=function(y,t,a){this.Y=a===void 0?0:a;this.K=y;this.V=t==null?"":t}; nIy=function(y){switch(Math.trunc(y.Y)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; mVd=function(y,t){return y.Yt.Y?!1:y.Kt.K?!1:typeof y.Vtypeof t.V?!1:y.V0?r[a]-r[a-1]:r[a]})}; j3=function(){this.K=new Nb;this.yv=this.Ff=0;this.r0=new P4;this.Vv=this.W=-1;this.T7=1E3;this.n1=new Nb([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.d0=this.o5=-1}; S3=function(y,t){return gIu(y.K,t===void 0?!0:t)}; QM=function(y,t,a,r){var E=E===void 0?!1:E;a=q8(r,a);Rg(y,t,a,{capture:E})}; pj=function(y,t){t=v4(t);return t===0?0:v4(y)/t}; v4=function(y){return Math.max(y.bottom-y.top,0)*Math.max(y.right-y.left,0)}; ISu=function(y,t){if(!y||!t)return!1;for(var a=0;y!==null&&a++<100;){if(y===t)return!0;try{if(y=y.parentElement||y){var r=Om(y),E=r&&fp(r),h=E&&E.frameElement;h&&(y=h)}}catch(F){break}}return!1}; Tyn=function(y,t,a){if(!y||!t)return!1;t=ZP(y.clone(),-t.left,-t.top);y=(t.left+t.right)/2;t=(t.top+t.bottom)/2;dy(window.top)&&window.top&&window.top.document&&(window=window.top);if(!X$u())return!1;y=window.document.elementFromPoint(y,t);if(!y)return!1;t=(t=(t=Om(a))&&t.defaultView&&t.defaultView.frameElement)&&ISu(t,y);var r=y===a;y=!r&&y&&JE(y,function(E){return E===a}); return!(t||r||y)}; GIV=function(y,t,a,r){return Ed().Y?!1:TR(y)<=0||y.getHeight()<=0?!0:a&&r?w$N(208,function(){return Tyn(y,t,a)}):!1}; e3=function(y,t,a){g.H.call(this);this.position=ZQ7.clone();this.Z9=this.TV();this.lE=-2;this.timeCreated=Date.now();this.q0=-1;this.nH=t;this.ri=null;this.W_=!1;this.Dj=null;this.opacity=-1;this.requestSource=a;this.sdF=!1;this.WD=function(){}; this.jW=function(){}; this.Is=new ABN;this.Is.LB=y;this.Is.V=y;this.oe=!1;this.gq={jI:null,nO:null};this.Xb=!0;this.LC=null;this.i5=this.N0X=!1;Pv().J++;this.jf=this.O_();this.vM=-1;this.Qe=null;this.hasCompleted=this.p4F=!1;this.Yk=new c1;sqy(this.Yk);yj2(this);this.requestSource==1?Y_(this.Yk,"od",1):Y_(this.Yk,"od",0)}; yj2=function(y){y=y.Is.LB;var t;if(t=y&&y.getAttribute)t=/-[a-z]/.test("googleAvInapp")?!1:tlz&&y.dataset?"googleAvInapp"in y.dataset:y.hasAttribute?y.hasAttribute("data-"+m97()):!!y.getAttribute("data-"+m97());t&&(Ed().K=!0)}; lD=function(y,t){t!=y.i5&&(y.i5=t,y=Ed(),t?y.J++:y.J>0&&y.J--)}; af7=function(y,t){if(y.Qe){if(t.getName()===y.Qe.getName())return;y.Qe.dispose();y.Qe=null}t=t.create(y.Is.V,y.Yk,y.m2());if(t=t!=null&&t.observe()?t:null)y.Qe=t}; rj2=function(y,t,a){if(!y.ri||y.nH==-1||t.K===-1||y.ri.K===-1)return 0;y=t.K-y.ri.K;return y>a?0:y}; Eh7=function(y,t,a){if(y.Qe){y.Qe.DL();var r=y.Qe.hF,E=r.D,h=E.V;if(r.J!=null){var F=r.Y;y.Dj=new g.Em(F.left-h.left,F.top-h.top)}h=y.VG()?Math.max(r.V,r.L):r.V;F={};E.volume!==null&&(F.volume=E.volume);E=y.Ql(r);y.ri=r;y.kG(h,t,a,!1,F,E,r.Z)}}; hku=function(y){if(y.W_&&y.LC){var t=Dh(y.Yk,"od")==1,a=Ed().V,r=y.LC,E=y.Qe?y.Qe.getName():"ns",h=y.Dj,F=new g.F1(TR(a),a.getHeight());a=y.VG();y={WS5:E,Dj:h,fPu:F,VG:a,mW:y.jf.mW,Bmv:t};if(t=r.K){t.DL();E=t.hF;h=E.D.V;var x=F=null;E.J!=null&&h&&(F=E.Y,F=new g.Em(F.left-h.left,F.top-h.top),x=new g.F1(h.right-h.left,h.bottom-h.top));E=a?Math.max(E.V,E.L):E.V;a={WS5:t.getName(),Dj:F,fPu:x,VG:a,Bmv:!1,mW:E}}else a=null;a&&qrn(r,y,a)}}; F51=function(y,t,a){t&&(y.WD=t);a&&(y.jW=a)}; g.uD=function(){}; g.VM=function(y){return{value:y,done:!1}}; Aj7=function(){this.D=this.V=this.Y=this.K=this.L=0}; xEn=function(y){var t={};var a=g.oq()-y.L;t=(t.ptlt=a,t);(a=y.K)&&(t.pnk=a);(a=y.Y)&&(t.pnc=a);(a=y.D)&&(t.pnmm=a);(y=y.V)&&(t.pns=y);return t}; sI7=function(){P1.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; nj=function(y){return ap(y.volume)&&y.volume>0}; mz=function(y,t,a,r){a=a===void 0?!0:a;r=r===void 0?function(){return!0}:r; return function(E){var h=E[y];if(Array.isArray(h)&&r(E))return $E7(h,t,a)}}; Jv=function(y,t){return function(a){return t(a)?a[y]:void 0}}; UEn=function(y){return function(t){for(var a=0;a0?h[E-1]+1:0,r+1).reduce(function(F,x){return F+x},0)})}; CzF=function(){this.K=this.V=""}; zky=function(){}; H4=function(y,t){var a={};if(y!==void 0)if(t!=null)for(var r in t){var E=t[r];r in Object.prototype||E!=null&&(a[r]=typeof E==="function"?E(y):y[E])}else g.ms(a,y);return Mb(Lj(new Od,a))}; Oz1=function(){var y={};this.K=(y.vs=[1,0],y.vw=[0,1],y.am=[2,2],y.a=[4,4],y.f=[8,8],y.bm=[16,16],y.b=[32,32],y.avw=[0,64],y.avs=[64,0],y.pv=[256,256],y.gdr=[0,512],y.p=[0,1024],y.r=[0,2048],y.m=[0,4096],y.um=[0,8192],y.ef=[0,16384],y.s=[0,32768],y.pmx=[0,16777216],y.mut=[33554432,33554432],y.umutb=[67108864,67108864],y.tvoff=[134217728,134217728],y);this.V={};for(var t in this.K)this.K[t][1]>0&&(this.V[t]=0);this.Y=0}; bD=function(y,t){var a=y.K[t],r=a[1];y.Y+=a[0];r>0&&y.V[t]==0&&(y.V[t]=1)}; L5d=function(y){var t=g.W1(y.K),a=0,r;for(r in y.V)g.TE(t,r)&&y.V[r]==1&&(a+=y.K[r][1],y.V[r]=2);return a}; Mlb=function(y){var t=0,a;for(a in y.V){var r=y.V[a];if(r==1||r==2)t+=y.K[a][1]}return t}; B4=function(){this.V=this.K=0}; c4=function(){j3.call(this);this.Y=new P4;this.C1=this.hF=this.DE=0;this.Z=-1;this.Az=new P4;this.L=new P4;this.V=new Nb;this.J=this.D=-1;this.AF=new P4;this.T7=2E3;this.L1=new B4;this.R5=new B4;this.JF=new B4}; qb=function(y,t,a){var r=y.C1;KE||a||y.Z==-1||(r+=t-y.Z);return r}; wAH=function(){this.Y=!1}; YO=function(y,t){this.Y=!1;this.D=y;this.hF=t;this.L=0}; D7=function(y,t){YO.call(this,y,t);this.W=[]}; RkF=function(){}; gQ=function(){}; iD=function(y,t,a,r){Ud.call(this,y,t,a,r)}; Kj=function(y,t,a){Ud.call(this,null,y,t,a);this.Z=y.isActive();this.W=0}; Ip=function(y){return[y.top,y.left,y.bottom,y.right]}; Tr=function(y,t,a,r,E,h){h=h===void 0?new gQ:h;e3.call(this,t,a,r);this.xs=E;this.Hc=0;this.Id={};this.rP=new Oz1;this.iI={};this.Ht="";this.JF=null;this.zl=!1;this.V=[];this.EE=h.K();this.J=h.Y();this.D=null;this.Y=-1;this.yv=this.hF=void 0;this.Vv=this.AF=0;this.d0=-1;this.T7=this.R5=!1;this.DE=this.Z=this.K=this.cH=this.I7=0;new Nb;this.L1=this.C1=0;this.r0=-1;this.yb=0;this.W=g.DP;this.o5=[this.TV()];this.MK=2;this.BE={};this.BE.pause="p";this.BE.resume="r";this.BE.skip="s";this.BE.mute="m";this.BE.unmute= "um";this.BE.exitfullscreen="ef";this.L=null;this.n1=this.Az=!1;this.FB=Math.floor(Date.now()/1E3-1704067200);this.Ff=0}; Gr=function(y){y.hasCompleted=!0;y.yb!=0&&(y.yb=3)}; Z7=function(y){return y===void 0?y:Number(y)?tv(y,3):0}; yg=function(y,t){return y.o5[t!=null&&tMath.max(1E4,y.Y/3)?0:t);var a=y.W(y)||{};a=a.currentTime!==void 0?a.currentTime:y.AF;var r=a-y.AF,E=0;r>=0?(y.Vv+=t,y.L1+=Math.max(t-r,0),E=Math.min(r,y.Vv)):y.C1+=Math.abs(r);r!=0&&(y.Vv=0);y.r0==-1&&r>0&&(y.r0=Tt>=0?g8()-Tt:-1);y.AF=a;return E}; dEu=function(y,t){rQ(y.J,function(a){return a.D==t.D})||y.J.push(t)}; XA7=function(y){var t=kO(y.yQ().V,1);return tM(y,t)}; tM=function(y,t,a){return t>=15E3?!0:y.R5?(a===void 0?0:a)?!0:y.Y>0?t>=y.Y/2:y.d0>0?t>=y.d0:!1:!1}; kHx=function(y){var t=tv(y.jf.mW,2),a=y.rP.Y,r=y.jf,E=yg(y),h=Z7(E.D),F=Z7(E.J),x=Z7(r.volume),U=tv(E.W,2),C=tv(E.Vv,2),z=tv(r.mW,2),O=tv(E.o5,2),M=tv(E.d0,2);r=tv(r.GZ,2);var L=y.L2().clone().round();y=y.Qe&&y.Qe.Y?(y.Qe?y.Qe.Y:null).clone().round():null;E=S3(E,!1);return{wyf:t,R1:a,j3:h,N3:F,Yb:x,Oc:U,Tm:C,mW:z,Hm:O,Ra:M,GZ:r,position:L,MA:y,Iw:E}}; W5z=function(y,t){ffy(y.V,t,function(){return{wyf:0,R1:void 0,j3:-1,N3:-1,Yb:-1,Oc:-1,Tm:-1,mW:-1,Hm:-1,Ra:-1,GZ:-1,position:void 0,MA:void 0,Iw:[]}}); y.V[t]=kHx(y)}; ffy=function(y,t,a){for(var r=y.length;r0?1:0;O.atos= dQ(C.V);O.ssb=dQ(C.n1,!1);O.amtos=gIu(C.V,!1);O.uac=y.I7;O.vpt=C.Y.V;z=="nio"&&(O.nio=1,O.avms="nio");O.gmm="4";O.gdr=tM(y,C.Y.V,!0)?1:0;O.efpf=y.MK;if(z=="gsv"||z=="nis")z=y.Qe,z.W>0&&(O.nnut=z.W);O.tcm=Pzd(y);O.nmt=y.C1;O.bt=y.L1;O.pst=y.r0;O.vpaid=y.hF;O.dur=y.Y;O.vmtime=y.AF;O.is=y.rP.Y;y.V.length>=1&&(O.i0=y.V[0].R1,O.a0=[y.V[0].Yb],O.c0=[y.V[0].mW],O.ss0=[y.V[0].GZ],z=y.V[0].position,h=y.V[0].MA,O.p0=z?Ip(z):void 0,z&&h&&!GR(h,z)&&(O.cp0=Ip(h)));y.V.length>=2&&(O.i1=y.V[1].R1,O.a1=E$(y.V[1].j3, y.V[1].Yb,y.V[1].N3),O.c1=E$(y.V[1].Oc,y.V[1].mW,y.V[1].Tm),O.ss1=E$(y.V[1].Hm,y.V[1].GZ,y.V[1].Ra),z=y.V[1].position,h=y.V[1].MA,O.p1=z?Ip(z):void 0,z&&h&&!GR(h,z)&&(O.cp1=Ip(h)),O.mtos1=y.V[1].Iw);y.V.length>=3&&(O.i2=y.V[2].R1,O.a2=E$(y.V[2].j3,y.V[2].Yb,y.V[2].N3),O.c2=E$(y.V[2].Oc,y.V[2].mW,y.V[2].Tm),O.ss2=E$(y.V[2].Hm,y.V[2].GZ,y.V[2].Ra),z=y.V[2].position,h=y.V[2].MA,O.p2=z?Ip(z):void 0,z&&h&&!GR(h,z)&&(O.cp2=Ip(h)),O.mtos2=y.V[2].Iw);y.V.length>=4&&(O.i3=y.V[3].R1,O.a3=E$(y.V[3].j3,y.V[3].Yb, y.V[3].N3),O.c3=E$(y.V[3].Oc,y.V[3].mW,y.V[3].Tm),O.ss3=E$(y.V[3].Hm,y.V[3].GZ,y.V[3].Ra),z=y.V[3].position,h=y.V[3].MA,O.p3=z?Ip(z):void 0,z&&h&&!GR(h,z)&&(O.cp3=Ip(h)),O.mtos3=y.V[3].Iw);O.cs=Mlb(y.rP);t&&(O.ic=L5d(y.rP),O.dvpt=C.Y.K,O.dvs=W4(C.K,.5),O.dfvs=W4(C.K,1),O.davs=W4(C.V,.5),O.dafvs=W4(C.V,1),a&&(C.Y.K=0,iQu(C.K),iQu(C.V)),y.Ge()&&(O.dtos=C.DE,O.dav=C.hF,O.dtoss=y.Hc+1,a&&(C.DE=0,C.hF=0,y.Hc++)),O.dat=C.L.K,O.dft=C.AF.K,a&&(C.L.K=0,C.AF.K=0));O.ps=[x.L.width,x.L.height];O.bs=[TR(x.V), x.V.getHeight()];O.scs=[x.D.width,x.D.height];O.dom=x.domain;y.cH&&(O.vds=y.cH);if(y.J.length>0||y.EE)t=g.hB(y.J),y.EE&&t.push(y.EE),O.pings=g.v$(t,function(M){return M.toString()}); t=g.v$(g.op(y.J,function(M){return M.J()}),function(M){return M.getId()}); i7V(t);O.ces=t;y.K&&(O.vmer=y.K);y.Z&&(O.vmmk=y.Z);y.DE&&(O.vmiec=y.DE);O.avms=y.Qe?y.Qe.getName():"ns";y.Qe&&g.ms(O,y.Qe.pz());r?(O.c=tv(y.jf.mW,2),O.ss=tv(y.jf.GZ,2)):O.tth=g8()-vhN;O.mc=tv(C.Vv,2);O.nc=tv(C.W,2);O.mv=Z7(C.J);O.nv=Z7(C.D);O.lte=tv(y.lE,2);r=yg(y,E);S3(C);O.qmtos=S3(r);O.qnc=tv(r.W,2);O.qmv=Z7(r.J);O.qnv=Z7(r.D);O.qas=r.D>0?1:0;O.qi=y.Ht;O.avms||(O.avms="geo");O.psm=C.L1.V;O.psv=C.L1.getValue();O.psfv=C.R5.getValue();O.psa=C.JF.getValue();U=A77(U.Yk);U.length&&(O.veid=U);y.L&&g.ms(O, xEn(y.L));O.avas=y.BI();O.vs=y.uu();O.co=pA7(y);O.tm=C.Ff;O.tu=C.yv;return O}; jI2=function(y,t){if(g.TE(ek7,t))return!0;var a=y.Id[t];return a!==void 0?(y.Id[t]=!0,!a):!1}; pA7=function(y){var t=y.Ff.toString(10).padStart(2,"0");t=""+y.FB+t;y.Ff<99&&y.Ff++;return t}; uWx=function(){this.V={};var y=fp();hM(this,y,document);var t=lfu();try{if("1"==t){for(var a=y.parent;a!=y.top;a=a.parent)hM(this,a,a.document);hM(this,y.top,y.top.document)}}catch(r){}}; lfu=function(){var y=document.documentElement;try{if(!dy(fp().top))return"2";var t=[],a=fp(y.ownerDocument);for(y=a;y!=a.top;y=y.parent)if(y.frameElement)t.push(y.frameElement);else break;return t&&t.length!=0?"1":"0"}catch(r){return"2"}}; hM=function(y,t,a){QM(a,"mousedown",function(){return Vly(y)},301); QM(t,"scroll",function(){return nhy(y)},302); QM(a,"touchmove",function(){return mEn(y)},303); QM(a,"mousemove",function(){return Jju(y)},304); QM(a,"keydown",function(){return ohN(y)},305)}; Vly=function(y){g.jy(y.V,function(t){t.Y>1E5||++t.Y})}; nhy=function(y){g.jy(y.V,function(t){t.V>1E5||++t.V})}; mEn=function(y){g.jy(y.V,function(t){t.V>1E5||++t.V})}; ohN=function(y){g.jy(y.V,function(t){t.K>1E5||++t.K})}; Jju=function(y){g.jy(y.V,function(t){t.D>1E5||++t.D})}; Hz1=function(){this.V=[];this.K=[]}; FT=function(y,t){return g.D9(y.V,function(a){return a.Ht==t})}; bz7=function(y,t){return t?g.D9(y.V,function(a){return a.Is.LB==t}):null}; Bp7=function(y,t){return g.D9(y.K,function(a){return a.WK()==2&&a.Ht==t})}; xB=function(){var y=AM;return y.V.length==0?y.K:y.K.length==0?y.V:g.E9(y.K,y.V)}; cj7=function(y,t){y=t.WK()==1?y.V:y.K;var a=Ys(y,function(r){return r==t}); return a!=-1?(y.splice(a,1),t.Qe&&t.Qe.unobserve(),t.dispose(),!0):!1}; q0N=function(y){var t=AM;if(cj7(t,y)){switch(y.WK()){case 0:var a=function(){return null}; case 2:a=function(){return Bp7(t,y.Ht)}; break;case 1:a=function(){return FT(t,y.Ht)}}for(var r=a();r;r=a())cj7(t,r)}}; Y0y=function(y){var t=AM;y=g.op(y,function(a){return!bz7(t,a.Is.LB)}); t.V.push.apply(t.V,g.i7(y))}; DE7=function(y){var t=[];g.wK(y,function(a){rQ(AM.V,function(r){return r.Is.LB===a.Is.LB&&r.Ht===a.Ht})||(AM.V.push(a),t.push(a))})}; s$=function(){this.V=this.K=null}; ghF=function(y,t){function a(r,E){t(r,E)} if(y.K==null)return!1;y.V=g.D9(y.K,function(r){return r!=null&&r.uF()}); y.V&&(y.V.init(a)?p$y(y.V.V):t(y.V.V.NE(),y.V));return y.V!=null}; $B=function(y){y=izd(y);Cj.call(this,y.length?y[y.length-1]:new xO(qW,0));this.Y=y;this.K=null}; izd=function(y){if(!y.length)return[];y=(0,g.op)(y,function(a){return a!=null&&a.J7()}); for(var t=1;ta.time?t:a},y[0])}; O$=function(y){y=y===void 0?qW:y;Cj.call(this,new xO(y,2))}; LP=function(){var y=GH7();xO.call(this,qW.top,y,"geo")}; GH7=function(){Pv();var y=Ed();return y.Y||y.K?0:2}; ZzH=function(){}; Mr=function(){this.done=!1;this.V={xB:0,Y7:0,ZBv:0,B3:0,O7:-1,V0:0,HU:0,IV:0,plr:0};this.L=null;this.J=!1;this.Y=null;this.W=0;this.K=new Av(this)}; RD=function(){var y=w6;y.J||(y.J=!0,yFF(y,function(){return y.D.apply(y,g.i7(g.w2.apply(0,arguments)))}),y.D())}; tq7=function(){un(ZzH);var y=un(s$);y.V!=null&&y.V.V?p$y(y.V.V):Ed().update(qW)}; PI=function(y,t,a){if(!y.done&&(y.K.cancel(),t.length!=0)){y.Y=null;try{tq7();var r=g8();Pv().L=r;if(un(s$).V!=null)for(var E=0;E=0?g8()-iJ:-1,x=g8();E.V.O7==-1&&(F=x);var U=Ed(),C=Pv(),z=gK(C.Yk),O=xB();try{if(O.length>0){var M=U.V;M&&(z.bs=[TR(M),M.getHeight()]);var L=U.L;L&&(z.ps=[L.width,L.height]);qW.screen&&(z.scs=[qW.screen.width,qW.screen.height])}else z.url=encodeURIComponent(qW.location.href.substring(0,512)),h.referrer&&(z.referrer=encodeURIComponent(h.referrer.substring(0,512))); z.tt=F;z.pt=iJ;z.bin=C.K;qW.google_osd_load_pub_page_exp!==void 0&&(z.olpp=qW.google_osd_load_pub_page_exp);z.deb=[1,E.V.xB,E.V.Y7,E.V.B3,E.V.O7,0,E.K.K,E.V.V0,E.V.HU,E.V.IV,E.V.plr,-1].join(";");z.tvt=rF7(E,x);U.K&&(z.inapp=1);if(qW!==null&&qW!=qW.top){O.length>0&&(z.iframe_loc=encodeURIComponent(qW.location.href.substring(0,512)));var w=U.W;z.is=[TR(w),w.getHeight()]}}catch(d){z.error=1}w6.Y=z}M=g.uN(w6.Y);L=Pv().V;Dh(L.Y,"prf")==1?(w=new M8,E=L.V,h=0,E.V>-1&&(h=E.Y.V.now()-E.V),w=eq(w,1,Qo(E.D+ h),0),E=L.V,w=eq(w,5,lz(E.V>-1?E.K+1:E.K),0),w=eq(w,2,BA(L.K.V.Y()),"0"),w=eq(w,3,BA(L.K.V.K()),"0"),L=eq(w,4,BA(L.K.V.V()),"0"),w={},L=(w.pf=g.H$(L.Y()),w)):L={};g.ms(M,L);g.ms(t,r,a,M,y())}])}; Fmd=function(){var y=hP2||qW;if(!y)return"";var t=[];if(!y.location||!y.location.href)return"";t.push("url="+encodeURIComponent(y.location.href.substring(0,512)));y.document&&y.document.referrer&&t.push("referrer="+encodeURIComponent(y.document.referrer.substring(0,512)));return t.join("&")}; Nr=function(){var y="youtube.player.web_20251119_20_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20251119_20_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20251119_20_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20251119_20_RC00".match(/_(\d{8})_\d+_RC\d+$/),t;if(((t=y)==null?void 0:t.length)==2)return y[1];y="youtube.player.web_20251119_20_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var a;return((a=y)==null?void 0:a.length)==3?"20"+y[1]+y[2]:null}; AFF=function(){return"av.default_js".includes("ima_html5_sdk")?{aq:"ima",qB:null}:"av.default_js".includes("ima_native_sdk")?{aq:"nima",qB:null}:"av.default_js".includes("admob-native-video-javascript")?{aq:"an",qB:null}:"youtube.player.web_20251119_20_RC00".includes("cast_js_sdk")?{aq:"cast",qB:Nr()}:"youtube.player.web_20251119_20_RC00".includes("youtube.player.web")?{aq:"yw",qB:Nr()}:"youtube.player.web_20251119_20_RC00".includes("outstream_web_client")?{aq:"out",qB:Nr()}:"youtube.player.web_20251119_20_RC00".includes("drx_rewarded_web")? {aq:"r",qB:Nr()}:"youtube.player.web_20251119_20_RC00".includes("gam_native_web_video")?{aq:"n",qB:Nr()}:"youtube.player.web_20251119_20_RC00".includes("admob_interstitial_video")?{aq:"int",qB:Nr()}:{aq:"j",qB:null}}; kB=function(y,t){var a={sv:"968"};d6!==null&&(a.v=d6);a.cb=xIF;a.nas=AM.V.length;a.msg=y;t!==void 0&&(y=sG1(t))&&(a.e=XT[y]);return a}; fP=function(y){return IM(y,"custom_metric_viewable")}; sG1=function(y){var t=fP(y)?"custom_metric_viewable":y.toLowerCase();return v1(aD,function(a){return a==t})}; $I7=function(){this.V=void 0;this.K=!1;this.Y=0;this.D=-1;this.L="tos"}; zPy=function(y){try{var t=y.split(",");return t.length>g.W1(UIF).length?null:e$(t,function(a,r){r=r.toLowerCase().split("=");if(r.length!=2||CW1[r[0]]===void 0||!CW1[r[0]](r[1]))throw Error("Entry ("+r[0]+", "+r[1]+") is invalid.");a[r[0]]=r[1];return a},{})}catch(a){return null}}; On7=function(y,t){if(y.V==void 0)return 0;switch(y.L){case "mtos":return y.K?fj(t.V,y.V):fj(t.K,y.V);case "tos":return y.K?kO(t.V,y.V):kO(t.K,y.V)}return 0}; WI=function(y,t,a,r){YO.call(this,t,r);this.W=y;this.Z=a}; jR=function(){}; SR=function(y){YO.call(this,"fully_viewable_audible_half_duration_impression",y)}; Qg=function(y){this.V=y}; ug=function(y,t){YO.call(this,y,t)}; Vg=function(y){D7.call(this,"measurable_impression",y)}; nP=function(){Qg.apply(this,arguments)}; m8=function(y,t,a){Kj.call(this,y,t,a)}; JM=function(y){y=y===void 0?qW:y;Cj.call(this,new xO(y,2))}; oD=function(y,t,a){Kj.call(this,y,t,a)}; HI=function(y){y=y===void 0?qW:y;Cj.call(this,new xO(y,2))}; bg=function(){xO.call(this,qW,2,"mraid");this.L1=0;this.Vv=this.o5=!1;this.W=null;this.K=dVd(this.Y);this.D.V=new Is(0,0,0,0);this.Ff=!1}; BI=function(y,t,a){y.eh("addEventListener",t,a)}; RP1=function(y){Pv().D=!!y.eh("isViewable");BI(y,"viewableChange",Lm7);y.eh("getState")==="loading"?BI(y,"ready",Mq7):w0N(y)}; w0N=function(y){typeof y.K.Cb.AFMA_LIDAR==="string"?(y.o5=!0,PWz(y)):(y.K.compatibility=3,y.W="nc",y.fail("w"))}; PWz=function(y){y.Vv=!1;var t=Dh(Pv().Yk,"rmmt")==1,a=!!y.eh("isViewable");(t?!a:1)&&nQ().setTimeout(Y0(524,function(){y.Vv||(NMy(y),DJ(540,Error()),y.W="mt",y.fail("w"))}),500); dI7(y);BI(y,y.K.Cb.AFMA_LIDAR,X07)}; dI7=function(y){var t=Dh(Pv().Yk,"sneio")==1,a=y.K.Cb.AFMA_LIDAR_EXP_1!==void 0,r=y.K.Cb.AFMA_LIDAR_EXP_2!==void 0;(t=t&&r)&&(y.K.Cb.AFMA_LIDAR_EXP_2=!0);a&&(y.K.Cb.AFMA_LIDAR_EXP_1=!t)}; NMy=function(y){y.eh("removeEventListener",y.K.Cb.AFMA_LIDAR,X07);y.o5=!1}; kU1=function(y,t){if(y.eh("getState")==="loading")return new g.F1(-1,-1);t=y.eh(t);if(!t)return new g.F1(-1,-1);y=parseInt(t.width,10);t=parseInt(t.height,10);return isNaN(y)||isNaN(t)?new g.F1(-1,-1):new g.F1(y,t)}; Mq7=function(){try{var y=un(bg);y.eh("removeEventListener","ready",Mq7);w0N(y)}catch(t){DJ(541,t)}}; X07=function(y,t){try{var a=un(bg);a.Vv=!0;var r=y?new Is(y.y,y.x+y.width,y.y+y.height,y.x):new Is(0,0,0,0);var E=g8(),h=Ff();var F=new Gt(E,h,a);F.V=r;F.volume=t;a.jY(F)}catch(x){DJ(542,x)}}; Lm7=function(y){var t=Pv(),a=un(bg);y&&!t.D&&(t.D=!0,a.Ff=!0,a.W&&a.fail("w",!0))}; cI=function(){this.isInitialized=!1;this.V=this.K=null;var y={};this.W=(y.start=this.FXG,y.firstquartile=this.dru,y.midpoint=this.Dr4,y.thirdquartile=this.Q50,y.complete=this.Ym5,y.error=this.i1F,y.pause=this.Ys,y.resume=this.gQ,y.skip=this.mrv,y.viewable_impression=this.NB,y.mute=this.eU,y.unmute=this.eU,y.fullscreen=this.gG0,y.exitfullscreen=this.xr1,y.fully_viewable_audible_half_duration_impression=this.NB,y.measurable_impression=this.NB,y.abandon=this.Ys,y.engagedview=this.NB,y.impression=this.NB, y.creativeview=this.NB,y.progress=this.eU,y.custom_metric_viewable=this.NB,y.bufferstart=this.Ys,y.bufferfinish=this.gQ,y.audio_measurable=this.NB,y.audio_audible=this.NB,y);y={};this.Z=(y.overlay_resize=this.vGr,y.abandon=this.fp,y.close=this.fp,y.collapse=this.fp,y.overlay_unmeasurable_impression=function(t){return r6(t,"overlay_unmeasurable_impression",Ff())},y.overlay_viewable_immediate_impression=function(t){return r6(t,"overlay_viewable_immediate_impression",Ff())},y.overlay_unviewable_impression= function(t){return r6(t,"overlay_unviewable_impression",Ff())},y.overlay_viewable_end_of_session_impression=function(t){return r6(t,"overlay_viewable_end_of_session_impression",Ff())},y); Pv().K=3;fjb(this);this.Y=null}; qr=function(y,t,a,r){y=y.rX(null,r,!0,t);y.D=a;Y0y([y]);return y}; Wmd=function(y,t,a){y71(t);var r=y.V;g.wK(t,function(E){var h=g.v$(E.criteria,function(F){var x=zPy(F);if(x==null)F=null;else if(F=new $I7,x.visible!=null&&(F.V=x.visible/100),x.audible!=null&&(F.K=x.audible==1),x.time!=null){var U=x.timetype=="mtos"?"mtos":"tos",C=$92(x.time,"%")?"%":"ms";x=parseInt(x.time,10);C=="%"&&(x/=100);F.setTime(x,C,U)}return F}); rQ(h,function(F){return F==null})||dEu(a,new WI(E.id,E.event,h,r))})}; jGF=function(){var y=[],t=Pv();y.push(un(LP));Dh(t.Yk,"mvp_lv")&&y.push(un(bg));t=[new JM,new HI];t.push(new $B(y));t.push(new O$(qW));return t}; Swb=function(y){if(!y.isInitialized){y.isInitialized=!0;try{var t=g8(),a=Pv(),r=Ed();iJ=t;a.Y=79463069;y.K!=="o"&&(hP2=PNy(qW));if(JB7()){w6.V.Y7=0;w6.V.O7=g8()-t;var E=jGF(),h=un(s$);h.K=E;ghF(h,function(){YB()})?w6.done||(aj7(),sd(h.V.V,y),RD()):r.Y?YB():RD()}else DN=!0}catch(F){throw AM.reset(),F; }}}; ig=function(y){w6.K.cancel();g6=y;w6.done=!0}; KP=function(y){if(y.K)return y.K;var t=un(s$).V;if(t)switch(t.getName()){case "nis":y.K="n";break;case "gsv":y.K="m"}y.K||(y.K="h");return y.K}; ID=function(y,t,a){if(y.V==null)return t.cH|=4,!1;y=QGF(y.V,a,t);t.cH|=y;return y==0}; YB=function(){var y=[new O$(qW)],t=un(s$);t.K=y;ghF(t,function(){ig("i")})?w6.done||(aj7(),RD()):ig("i")}; vcd=function(y,t){if(!y.zl){var a=r6(y,"start",Ff());a=y.xs.V(a).V;var r={id:"lidarv"};r.r=t;r.sv="968";d6!==null&&(r.v=d6);Qh(a,function(E,h){return r[E]=E=="mtos"||E=="tos"?h:encodeURIComponent(h)}); t=Fmd();Qh(t,function(E,h){return r[E]=encodeURIComponent(h)}); t="//pagead2.googlesyndication.com/pagead/gen_204?"+Mb(Lj(new Od,r));By1(t);y.zl=!0}}; TB=function(y,t,a){PI(w6,[y],!Ff());W5z(y,a);a!=4&&ffy(y.o5,a,y.TV);return r6(y,t,Ff())}; fjb=function(y){Ec7(function(){var t=p0N();y.K!=null&&(t.sdk=y.K);var a=un(s$);a.V!=null&&(t.avms=a.V.getName());return t})}; ePH=function(y,t,a,r){var E=bz7(AM,a);E!==null&&E.Ht!==t&&(y.Oa(E),E=null);E||(t=y.rX(a,g8(),!1,t),AM.K.length==0&&(Pv().Y=79463069),DE7([t]),E=t,E.D=KP(y),r&&(E.JF=r));return E}; ljb=function(y,t){var a=y[t];a!==void 0&&a>0&&(y[t]=Math.floor(a*1E3))}; p0N=function(){var y=Ed(),t={},a={},r={};return Object.assign({},(t.sv="968",t),d6!==null&&(a.v=d6,a),(r["if"]=y.Y?"1":"0",r.nas=String(AM.V.length),r))}; GB=function(y){YO.call(this,"audio_audible",y)}; ZN=function(y){D7.call(this,"audio_measurable",y)}; yZ=function(){Qg.apply(this,arguments)}; t2=function(){}; uH7=function(y){this.V=y}; QGF=function(y,t,a){y=y.K();if(typeof y==="function"){var r={};var E={};r=Object.assign({},d6!==null&&(r.v=d6,r),(E.sv="968",E.cb=xIF,E.e=Vq7(t),E));E=r6(a,t,Ff());g.ms(r,E);a.iI[t]=E;r=a.WK()==2?bQH(r).join("&"):a.xs.V(r).V;try{return y(a.Ht,r,t),0}catch(h){return 2}}else return 1}; Vq7=function(y){var t=fP(y)?"custom_metric_viewable":y;y=v1(aD,function(a){return a==t}); return XT[y]}; az=function(){cI.call(this);this.J=null;this.L=!1;this.D="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; nc2=function(y,t,a){a=a.opt_configurable_tracking_events;y.V!=null&&Array.isArray(a)&&Wmd(y,a,t)}; mIN=function(y,t,a){var r=FT(AM,t);r||(r=a.opt_nativeTime||-1,r=qr(y,t,KP(y),r),a.opt_osdId&&(r.JF=a.opt_osdId));return r}; JFF=function(y,t,a){var r=FT(AM,t);r||(r=qr(y,t,"n",a.opt_nativeTime||-1));return r}; ocy=function(y,t){var a=FT(AM,t);a||(a=qr(y,t,"h",-1));return a}; Hnx=function(y){Pv();switch(KP(y)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; cFF=function(y,t,a,r){a=a===void 0?{}:a;var E={};g.ms(E,{opt_adElement:void 0,opt_fullscreen:void 0},a);var h=y.VE(t,a);a=h?h.xs:y.Rh();if(E.opt_bounds)return a.V(kB("ol",r));if(r!==void 0)if(sG1(r)!==void 0)if(DN)y=kB("ue",r);else if(Swb(y),g6=="i")y=kB("i",r),y["if"]=0;else if(t=y.VE(t,E)){b:{g6=="i"&&(t.oe=!0);h=E.opt_fullscreen;h!==void 0&&lD(t,!!h);var F;if(h=!Ed().K)(h=Zh(g.rI(),"CrKey")&&!(Zh(g.rI(),"CrKey")&&Zh(g.rI(),"SmartSpeaker"))||Zh(g.rI(),"PlayStation")||Zh(g.rI(),"Roku")||jgb()||Zh(g.rI(), "Xbox"))||(h=g.rI(),h=Zh(h,"AppleTV")||Zh(h,"Apple TV")||Zh(h,"CFNetwork")||Zh(h,"tvOS")),h||(h=g.rI(),h=Zh(h,"sdk_google_atv_x86")||Zh(h,"Android TV")),h=!h;h&&(nQ(),h=P$(hv)===0);if(F=h){switch(t.WK()){case 1:vcd(t,"pv");break;case 2:y.SE(t)}ig("pv")}h=r.toLowerCase();if(F=!F)F=Dh(Pv().Yk,"ssmol")&&h==="loaded"?!1:g.TE(bnu,h);if(F&&t.yb==0){g6!="i"&&(w6.done=!1);F=E!==void 0?E.opt_nativeTime:void 0;Tt=F=typeof F==="number"?F:g8();t.W_=!0;var x=Ff();t.yb=1;t.Id={};t.Id.start=!1;t.Id.firstquartile= !1;t.Id.midpoint=!1;t.Id.thirdquartile=!1;t.Id.complete=!1;t.Id.resume=!1;t.Id.pause=!1;t.Id.skip=!1;t.Id.mute=!1;t.Id.unmute=!1;t.Id.viewable_impression=!1;t.Id.measurable_impression=!1;t.Id.fully_viewable_audible_half_duration_impression=!1;t.Id.fullscreen=!1;t.Id.exitfullscreen=!1;t.Hc=0;x||(t.yQ().Z=F);PI(w6,[t],!x)}(F=t.BE[h])&&bD(t.rP,F);Dh(Pv().Yk,"fmd")||g.TE(BMF,h)&&t.EE&&t.EE.K(t,null);switch(t.WK()){case 1:var U=fP(h)?y.W.custom_metric_viewable:y.W[h];break;case 2:U=y.Z[h]}if(U&&(r=U.call(y, t,E,r),Dh(Pv().Yk,"fmd")&&g.TE(BMF,h)&&t.EE&&t.EE.K(t,null),r!==void 0)){E=kB(void 0,h);g.ms(E,r);r=E;break b}r=void 0}t.yb==3&&y.Oa(t);y=r}else y=kB("nf",r);else y=void 0;else DN?y=kB("ue"):h?(y=kB(),g.ms(y,S0n(h,!0,!1,!1))):y=kB("nf");return typeof y==="string"?a.V():a.V(y)}; qw7=function(y,t){t&&(y.D=t)}; YwH=function(y){var t={};return t.viewability=y.V,t.googleViewability=y.K,t}; DIz=function(y,t,a){a=a===void 0?{}:a;y=cFF(un(az),t,a,y);return YwH(y)}; ri=function(y){var t=g.w2.apply(1,arguments).filter(Boolean).join("&");if(!t)return y;var a=y.match(/[?&]adurl=/);return a?y.slice(0,a.index+1)+t+"&"+y.slice(a.index+1):y+(y.indexOf("?")<0?"?":"&")+t}; Eq=function(y,t){return t?"&"+y+"="+encodeURIComponent(t):""}; gc7=function(y){var t=y.url;y=y.qXX;this.K=t;this.D=y;this.Y=(new Date).getTime()-17040672E5;this.V={};for(var a=/[?&]([^&=]+)=([^&]*)/g;y=a.exec(t);)this.V[y[1]]=y[2]}; inn=function(y){y=y.D;if(!y)return"";var t=Eq("uap",y.platform)+Eq("uapv",y.platformVersion)+Eq("uafv",y.uaFullVersion)+Eq("uaa",y.architecture)+Eq("uam",y.model)+Eq("uab",y.bitness);y.fullVersionList&&(t+="&uafvl="+encodeURIComponent(y.fullVersionList.map(function(a){return encodeURIComponent(a.brand)+";"+encodeURIComponent(a.version)}).join("|"))); y.wow64!=null&&(t+="&uaw="+Number(y.wow64));return t.slice(1)}; TMV=function(y,t,a,r,E){var h=window;var F=F===void 0?!1:F;var x;a?x=(F===void 0?0:F)?"//ep1.adtrafficquality.google/bg/"+Y$(a)+".js":"//pagead2.googlesyndication.com/bg/"+Y$(a)+".js":x="";F=F===void 0?!1:F;a=h.document;var U={};t&&(U._scs_=t);U._bgu_=x;U._bgp_=r;U._li_="v_h.3.0.0.0";E&&(U._upb_=E);(t=h.GoogleTyFxhY)&&typeof t.push=="function"||(t=h.GoogleTyFxhY=[]);t.push(U);t=Lp(a).createElement("SCRIPT");t.type="text/javascript";t.async=!0;y=(F===void 0?0:F)?g.Cp(Kmz,Y$(y)+".js"):g.Cp(Ij1,Y$(y)+ ".js");g.mt(t,y);(h=(h.GoogleTyFxhYEET||{})[t.src])?h():a.getElementsByTagName("head")[0].appendChild(t)}; GUz=function(){try{var y,t;return!!((y=window)==null?0:(t=y.top)==null?0:t.location.href)&&!1}catch(a){return!0}}; h2=function(y,t,a){a=a===void 0?Error():a;var r=Error.call(this);this.message=r.message;"stack"in r&&(this.stack=r.stack);this.code=y;t+=":";a instanceof Error?(this.message=t+a.message,this.stack=a.stack||""):(this.message=t+String(a),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; A2=function(){var y=ZnH();y=y===void 0?"bevasrsg":y;return new Promise(function(t){var a=window===window.top?window:GUz()?window:window.top,r=a[y],E;((E=r)==null?0:E.bevasrs)?t(new FP(r.bevasrs)):(r||(r={},r=(r.nqfbel=[],r),a[y]=r),r.nqfbel.push(function(h){t(new FP(h))}))})}; y_x=function(y){var t={c:y.y$,e:y.o9,mc:y.L7,me:y.yr};y.gU&&(t.co={c:y.gU.PB,a:y.gU.Lm,s:y.gU.cM});return t}; x7=function(y){g.H.call(this);this.wpc=y}; FP=function(y){g.H.call(this);var t=this;this.lK=y;this.Y="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.K=void 0;this.zQ=this.lK.p;this.D=this.nj.bind(this);this.addOnDisposeCallback(function(){return void tjy(t)})}; aoy=function(y){var t;return g.m(function(a){if(a.V==1){if(!y.lK.wpc)throw new h2(30,"NWA");return y.V?a.return(y.V):g.u(a,y.lK.wpc(),2)}t=a.K;y.V=new x7(t);return a.return(y.V)})}; tjy=function(y){y.K!==void 0&&(y.Y.forEach(function(t){var a;(a=y.K)==null||a.removeEventListener(t,y.D)}),y.K=void 0)}; r_2=function(y){var t=t===void 0?53:t;var a=[];qI(y,sq,6).forEach(function(r){g.iW(r,2)<=t&&a.push(g.iW(r,1))}); return a}; Eyu=function(y){var t=t===void 0?53:t;var a=[];qI(y,sq,6).forEach(function(r){g.iW(r,2)>t&&a.push(g.iW(r,1))}); return a}; h52=function(y){y.then(function(){},function(){})}; $7=function(){g.H.apply(this,arguments);this.K=1}; Uq=function(y){return{fieldType:2,fieldName:y}}; g.C0=function(y){return{fieldType:3,fieldName:y}}; FnF=function(y){this.V=y;y.n3("/client_streamz/bg/frs",g.C0("mk"))}; A_x=function(y){this.V=y;y.n3("/client_streamz/bg/wrl",g.C0("mn"),Uq("ac"),Uq("sc"),g.C0("rk"),g.C0("mk"))}; xn2=function(y){this.V=y;y.fD("/client_streamz/bg/ec",g.C0("en"),g.C0("mk"))}; sO7=function(y){this.V=y;y.n3("/client_streamz/bg/el",g.C0("en"),g.C0("mk"))}; $nN=function(y){this.V=y;y.fD("/client_streamz/bg/cec",Uq("ec"),g.C0("mk"))}; Unb=function(y){this.V=y;y.fD("/client_streamz/bg/po/csc",Uq("cs"),g.C0("mk"))}; CVF=function(y){this.V=y;y.fD("/client_streamz/bg/po/ctav",g.C0("av"),g.C0("mk"))}; z5u=function(y){this.V=y;y.fD("/client_streamz/bg/po/cwsc",g.C0("su"),g.C0("mk"))}; OY2=function(y){this.jr=xc(y)}; LnH=function(y,t){return iby(y,t,R3N)}; zA=function(y){this.jr=xc(y)}; Oq=function(y){this.jr=xc(y)}; L0=function(y){this.jr=xc(y)}; M3=function(y){this.jr=xc(y)}; wi=function(y){this.jr=xc(y)}; Rz=function(y){this.jr=xc(y)}; MjF=function(y){this.jr=xc(y)}; PVn=function(y){var t=new Rz;t=t_(t,1,y.K);var a=wC1(y);t=iby(t,a,QeH);a=[];for(var r=[],E=g.p(y.V.keys()),h=E.next();!h.done;h=E.next())r.push(h.value.split(","));for(E=0;E>>31)&4294967295;O=E[0];var w=E[1],d=E[2],k=E[3],e=E[4];for(L=0;L<80;L++){if(L<40)if(L<20){var v=k^w&(d^k);var l=1518500249}else v=w^d^k,l=1859775393;else L<60?(v=w&d|k&(w|d),l=2400959708):(v=w^d^k,l=3395469782);v=((O<<5|O>>>27)&4294967295)+v+e+l+M[L]&4294967295;e=k;k=d;d=(w<<30|w>>>2)&4294967295;w=O;O=v}E[0]=E[0]+O&4294967295;E[1]=E[1]+w&4294967295;E[2]= E[2]+d&4294967295;E[3]=E[3]+k&4294967295;E[4]=E[4]+e&4294967295} function a(O,M){if(typeof O==="string"){O=unescape(encodeURIComponent(O));for(var L=[],w=0,d=O.length;w=56;L--)h[L]=M&255,M>>>=8;t(h);for(L=M=0;L<5;L++)for(var w=24;w>=0;w-=8)O[M++]=E[L]>>w&255;return O} for(var E=[],h=[],F=[],x=[128],U=1;U<64;++U)x[U]=0;var C,z;y();return{reset:y,update:a,digest:r,FJ:function(){for(var O=r(),M="",L=0;L1)));F=F.next)E||(h=F);E&&(a.V==0&&r==1?L01(a,t):(h?(r=h,r.next==a.D&&(a.D=r),r.next=r.next.next):M8n(a),wvb(a,E,3,t)))}y.Y=null}else Sv(y,3,t)}; lY=function(y,t){y.K||y.V!=2&&y.V!=3||R2n(y);y.D?y.D.next=t:y.K=t;y.D=t}; PJ7=function(y,t,a,r){var E=vL(null,null,null);E.V=new g.Qn(function(h,F){E.Y=t?function(x){try{var U=t.call(r,x);h(U)}catch(C){F(C)}}:h; E.K=a?function(x){try{var U=a.call(r,x);U===void 0&&x instanceof Vn?F(x):h(U)}catch(C){F(C)}}:F}); E.V.Y=y;lY(y,E);return E.V}; Sv=function(y,t,a){y.V==0&&(y===a&&(t=3,a=new TypeError("Promise cannot resolve to itself")),y.V=1,U8F(a,y.dC5,y.gjE,y)||(y.W=a,y.V=t,y.Y=null,R2n(y),t!=3||a instanceof Vn||N8F(y,a)))}; U8F=function(y,t,a,r){if(y instanceof g.Qn)return OEx(y,t,a,r),!0;if(y)try{var E=!!y.$goog_Thenable}catch(F){E=!1}else E=!1;if(E)return y.then(t,a,r),!0;if(g.l3(y))try{var h=y.then;if(typeof h==="function")return d81(y,h,t,a,r),!0}catch(F){return a.call(r,F),!0}return!1}; d81=function(y,t,a,r,E){function h(U){x||(x=!0,r.call(E,U))} function F(U){x||(x=!0,a.call(E,U))} var x=!1;try{t.call(y,F,h)}catch(U){h(U)}}; R2n=function(y){y.J||(y.J=!0,g.jv(y.Sx,y))}; M8n=function(y){var t=null;y.K&&(t=y.K,y.K=t.next,t.next=null);y.K||(y.D=null);return t}; wvb=function(y,t,a,r){if(a==3&&t.K&&!t.D)for(;y&&y.L;y=y.Y)y.L=!1;if(t.V)t.V.Y=null,Xv7(t,a,r);else try{t.D?t.Y.call(t.context):Xv7(t,a,r)}catch(E){kty.call(null,E)}rZb($87,t)}; Xv7=function(y,t,a){t==2?y.Y.call(y.context,a):y.K&&y.K.call(y.context,a)}; N8F=function(y,t){y.L=!0;g.jv(function(){y.L&&kty.call(null,t)})}; Vn=function(y){cd.call(this,y)}; g.nZ=function(y,t){g.MM.call(this);this.Rd=y||1;this.wk=t||g.ks;this.Wu=(0,g.mi)(this.O$r,this);this.X8=g.oq()}; g.mJ=function(y,t,a){if(typeof y==="function")a&&(y=(0,g.mi)(y,a));else if(y&&typeof y.handleEvent=="function")y=(0,g.mi)(y.handleEvent,y);else throw Error("Invalid listener argument");return Number(t)>2147483647?-1:g.ks.setTimeout(y,t||0)}; Jx=function(y,t){var a=null;return(new g.Qn(function(r,E){a=g.mJ(function(){r(t)},y); a==-1&&E(Error("Failed to schedule timer."))})).Eh(function(r){g.ks.clearTimeout(a); throw r;})}; g.or=function(y){g.H.call(this);this.W=y;this.D=0;this.Y=100;this.L=!1;this.K=new Map;this.J=new Set;this.flushInterval=3E4;this.V=new g.nZ(this.flushInterval);this.V.listen("tick",this.cX,!1,this);g.c(this,this.V)}; fJy=function(y){y.V.enabled||y.V.start();y.D++;y.D>=y.Y&&y.cX()}; W0z=function(y,t){return y.J.has(t)?void 0:y.K.get(t)}; jF7=function(y){for(var t=0;t2?y.V.statusText:""}catch(a){t=""}y.D=t+" ["+y.getStatus()+"]";JZx(y)}}finally{YC(y)}}}; YC=function(y,t){if(y.V){y.J&&(clearTimeout(y.J),y.J=null);var a=y.V;y.V=null;t||y.dispatchEvent("ready");try{a.onreadystatechange=null}catch(r){}}}; iY=function(y){var t=y.getStatus();a:switch(t){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var a=!0;break a;default:a=!1}if(!a){if(t=t===0)y=g.fE(String(y.Z))[1]||null,!y&&g.ks.self&&g.ks.self.location&&(y=g.ks.self.location.protocol.slice(0,-1)),t=!bEz.test(y?y.toLowerCase():"");a=t}return a}; g.gk=function(y){return y.V?y.V.readyState:0}; g.KZ=function(y){try{return y.V?y.V.responseText:""}catch(t){return""}}; g.Ir=function(y){try{if(!y.V)return null;if("response"in y.V)return y.V.response;switch(y.DE){case "":case "text":return y.V.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in y.V)return y.V.mozResponseArrayBuffer}return null}catch(t){return null}}; g.B8H=function(y){var t={};y=(y.V&&g.gk(y)>=2?y.V.getAllResponseHeaders()||"":"").split("\r\n");for(var a=0;a>1,t),km(y,y.length>>1)]}; krF=function(y){var t=g.p(X4F(y,fd));y=t.next().value;t=t.next().value;return y.toString(16)+t.toString(16)}; f77=function(y,t){var a=X4F(t);y=new Uint32Array(y.buffer);t=y[0];var r=g.p(a);a=r.next().value;r=r.next().value;for(var E=1;E>>8|F<<24,F+=h|0,F^=x+38293,h=h<<3|h>>>29,h^=F,U=U>>>8|U<<24,U+=x|0,U^=C+38293,x=x<<3|x>>>29,x^=U;h=[h,F];y[E]^=h[0];E+1=a?(globalThis.sessionStorage.removeItem(y),["e"]):["a",new Uint8Array(r.buffer,t+4)]}; Wg=function(y,t,a){a=a===void 0?[]:a;this.maxItems=y;this.V=t===void 0?0:t;this.K=a}; Sdx=function(y){var t=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!t)return new Wg(y);var a=t.split(",");if(a.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Wg(y);t=a.slice(1);t.length===1&&t[0]===""&&(t=[]);a=Number(a[0]);return isNaN(a)||a<0||a>t.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Wg(y)):new Wg(y,a,t)}; Qpy=function(y,t){this.logger=t;try{var a=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(r){a=!1}a&&(this.index=Sdx(y))}; vOu=function(y,t,a,r,E){var h=y.index?ad(y.logger,function(){return WzN(y.index,krF(t),a,r,E)},"W"):"u"; y.logger.bd(h)}; p41=function(y,t,a){var r=g.p(y.index?ad(y.logger,function(){return jp1(krF(t),a)},"R"):["u"]),E=r.next().value; r=r.next().value;y.logger.fq(E);return r}; uf7=function(y){function t(){a-=r;a-=E;a^=E>>>13;r-=E;r-=a;r^=a<<8;E-=a;E-=r;E^=r>>>13;a-=r;a-=E;a^=E>>>12;r-=E;r-=a;r^=a<<16;E-=a;E-=r;E^=r>>>5;a-=r;a-=E;a^=E>>>3;r-=E;r-=a;r^=a<<10;E-=a;E-=r;E^=r>>>15} y=ezn(y);for(var a=2654435769,r=2654435769,E=314159265,h=y.length,F=h,x=0;F>=12;F-=12,x+=12)a+=jP(y,x),r+=jP(y,x+4),E+=jP(y,x+8),t();E+=h;switch(F){case 11:E+=y[x+10]<<24;case 10:E+=y[x+9]<<16;case 9:E+=y[x+8]<<8;case 8:r+=y[x+7]<<24;case 7:r+=y[x+6]<<16;case 6:r+=y[x+5]<<8;case 5:r+=y[x+4];case 4:a+=y[x+3]<<24;case 3:a+=y[x+2]<<16;case 2:a+=y[x+1]<<8;case 1:a+=y[x+0]}t();return l7x.toString(E)}; ezn=function(y){for(var t=[],a=0;a>7,y.error.code]);r.set(a,4);return r}; nd=function(y,t,a){SP.call(this,y);this.D=t;this.clientState=a;this.V="S";this.K="q"}; Vz=function(y){return globalThis.TextEncoder?(new TextEncoder).encode(y):g.og(y)}; nO7=function(y,t,a){return y instanceof wb?xb2(y,a,t,1):y.DO(a)}; Jw=function(y){g.H.call(this);var t=this;this.Y=new g.US;this.D=0;this.K=void 0;this.state=2;this.lK=y.lK;this.M_=y.M_;this.fC=Object.assign({},mb7,y.fC||{});this.logger=y.lK.hq();var a;this.onError=(a=y.onError)!=null?a:function(){}; this.Le=y.Le||!1;if(JvF(y)){var r=this.lK;this.L=function(){return Oj1(r).catch(function(F){F=t.reportError(new h2(t.V?20:32,"TRG:Disposed",F));t.K=F;var x;(x=t.V)==null||x.dispose();t.V=void 0;t.Y.reject(F)})}; LzH(r,function(){return void mF(t)}); r.Z===2&&mF(this)}else this.L=y.qk0,mF(this);var E=this.logger.share();E.OQ("o");var h=new yz(E,"o");this.Y.promise.then(function(){h.done();E.vp();E.dispose()},function(){return void E.dispose()}); this.addOnDisposeCallback(function(){t.V?(t.V.dispose(),t.V=void 0):t.K?t.logger.vp():(t.K=t.reportError(new h2(32,"TNP:Disposed")),t.logger.vp(),t.Y.reject(t.K))}); g.c(this,this.logger)}; oO7=function(y,t){if(!(t instanceof h2))if(t instanceof HL){var a=Error(t.toString());a.stack=t.stack;t=new h2(11,"EBH:Error",a)}else t=new h2(12,"BSO:Unknown",t);return y.reportError(t)}; mF=function(y){var t,a,r,E,h,F,x,U,C,z,O,M,L,w,d;return g.m(function(k){switch(k.V){case 1:t=void 0;y.D++;a=new g.US;y.lK instanceof Rd&&y.lK.D.push(a.promise);if(!y.Le){k.xG(2);break}r=new g.US;setTimeout(function(){return void r.resolve()}); return g.u(k,r.promise,2);case 2:return E=y.logger.share(),g.xs(k,4,5),y.state=5,h={},F=[],g.u(k,Ni(y.lK.snapshot({y$:h,vN:F}),y.fC.JVm,function(){return Promise.reject(new h2(15,"MDA:Timeout"))}),7); case 7:x=k.K;if(y.Qv())throw new h2(y.V?20:32,"MDA:Disposed");U=F[0];y.state=6;return g.u(k,Ni(nO7(y.M_,E,x),y.fC.Hx,function(){return Promise.reject(new h2(10,"BWB:Timeout"))}),8); case 8:C=k.K;if(y.Qv())throw new h2(y.V?20:32,"BWB:Disposed");y.state=7;t=ad(E,function(){var v=Hj1(y,C,a,U);v.Y.promise.then(function(){return void y.L()}); return v},"i"); case 5:g.CI(k);E.dispose();g.zE(k,6);break;case 4:z=g.Uy(k);(O=t)==null||O.dispose();if(!y.K){M=oO7(y,z);a.resolve();var e;if(e=y.lK instanceof Rd&&y.D<2)a:if(z instanceof h2)e=z.code!==32&&z.code!==20&&z.code!==10;else{if(z instanceof HL)switch(z.code){case 2:case 13:case 14:case 4:break;default:e=!1;break a}e=!0}if(e)return L=(1+Math.random()*.25)*(y.V?6E4:1E3),w=setTimeout(function(){return void y.L()},L),y.addOnDisposeCallback(function(){return void clearTimeout(w)}),k.return(); y.K=M}E.LL(y.V?13:14);y.Y.reject(y.K);return k.return();case 6:y.state=8,y.D=0,(d=y.V)==null||d.dispose(),y.V=t,y.Y.resolve(),g.FU(k)}})}; Hj1=function(y,t,a,r){var E=Kn(t,2)*1E3;if(E<=0)throw new h2(31,"TTM:Invalid");if(IG(t,4))return new la(y.logger,IG(t,4),E);if(!Kn(t,3))return new eP(y.logger,TI(pn(t,1)),E);if(!r)throw new h2(4,"PMD:Undefined");r=r(TI(pn(t,1)));if(typeof r!=="function")throw new h2(16,"APF:Failed");y.J=Math.floor((Date.now()+E)/1E3);y=new pd(y.logger,r,Kn(t,3),E);y.addOnDisposeCallback(function(){return void a.resolve()}); return y}; bjx=function(y,t){t=t instanceof h2?t:new h2(5,"TVD:error",t);return y.reportError(t)}; Db2=function(y,t,a){try{if(y.Qv())throw new h2(21,"BNT:disposed");if(!y.V&&y.K)throw y.K;var r,E;return(E=(r=BQn(y,t,a))!=null?r:cvb(y,t,a))!=null?E:qdV(y,t,a)}catch(h){if(!t.yr)throw bjx(y,h);return Ydn(y,a,h)}}; BQn=function(y,t,a){var r;return(r=y.V)==null?void 0:vg(r,function(){return od(y,t)},a,function(E){var h; if(y.V instanceof pd&&((h=t.gU)==null?0:h.cM))try{var F;(F=y.cache)==null||vOu(F,od(y,t),E,t.gU.PB,y.J-120)}catch(x){y.reportError(new h2(24,"ELX:write",x))}})}; cvb=function(y,t,a){var r;if((r=t.gU)!=null&&r.Lm)try{var E,h=(E=y.cache)==null?void 0:p41(E,od(y,t),t.gU.PB);return h?a?ad(y.logger,function(){return g.H$(h,2)},"a"):h:void 0}catch(F){y.reportError(new h2(23,"RXO:read",F))}}; qdV=function(y,t,a){var r={stack:[],error:void 0,hasError:!1};try{if(!t.L7)throw new h2(29,"SDF:notready");return vg(b7H(r,new nd(y.logger,0,y.state)),function(){return od(y,t)},a)}catch(E){r.error=E,r.hasError=!0}finally{Bxy(r)}}; Ydn=function(y,t,a){var r={stack:[],error:void 0,hasError:!1};try{var E=bjx(y,a);return vg(b7H(r,new ua(y.logger,E)),function(){return[]},t)}catch(h){r.error=h,r.hasError=!0}finally{Bxy(r)}}; od=function(y,t){return t.o9?t.o9:t.y$?ad(y.logger,function(){return t.o9=Vz(t.y$)},"c"):[]}; gOV=function(){var y=0,t;return function(a){t||(t=new rb);var r=new nd(t,y,1),E=vg(r,function(){return Vz(a)},!0); r.dispose();y++;return E}}; Hg=function(y){this.jr=xc(y)}; ijV=function(y,t,a){this.PQ=y;this.mF=t;this.metadata=a}; ba=function(y,t){t=t===void 0?{}:t;this.nnE=y;this.metadata=t;this.status=null}; Bg=function(y,t,a,r,E){this.name=y;this.methodType="unary";this.requestType=t;this.responseType=a;this.V=r;this.K=E}; cg=function(y){this.jr=xc(y)}; qi=function(y){this.jr=xc(y)}; Ym=function(y){this.jr=xc(y)}; Dt=function(y,t){this.K=[];this.D=[];this.L=[];this.Y=[];this.V=[];this.J=y.pbu;this.W=t;this.xhr=y.xhr;this.J&&KzV(this)}; Zjb=function(y,t){var a=new I7u;g.sb(y.xhr,"complete",function(){if(iY(y.xhr)){var r=g.KZ(y.xhr);if(t&&y.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");r=atob(r)}try{var E=y.W(r)}catch(x){gb(y,ia(new HL(13,"Error when deserializing response data; error: "+x+(", response: "+r)),a));return}r=SQ7(y.xhr.getStatus());Kd(y,Id(y));r===0?TQ7(y,E):gb(y,ia(new HL(r,"Xhr succeeded but the status code is not 200"),a))}else{r=g.KZ(y.xhr);E=Id(y);if(r){var h= Grz(y,r);r=h.code;var F=h.details;h=h.metadata}else r=2,F="Rpc failed due to xhr error. uri: "+String(y.xhr.Z)+", error code: "+(y.xhr.K+", error: ")+y.xhr.getLastError(),h=E;Kd(y,E);gb(y,ia(new HL(r,F,h),a))}})}; KzV=function(y){Ta(y.J,"data",function(t){if("1"in t){var a=t["1"];try{var r=y.W(a)}catch(E){gb(y,new HL(13,"Error when deserializing response data; error: "+E+(", response: "+a)))}r&&TQ7(y,r)}if("2"in t)for(t=Grz(y,t["2"]),a=0;a-1&&y.splice(t,1)}; TQ7=function(y,t){for(var a=0;a>4&15).toString(16)+(y&15).toString(16)}; UT=function(y,t){this.K=this.V=null;this.Y=y||null;this.D=!!t}; OT=function(y){y.V||(y.V=new Map,y.K=0,y.Y&&Qh(y.Y,function(t,a){y.add(qm(t),a)}))}; xr7=function(y,t){OT(y);t=L5(y,t);return y.V.has(t)}; g.sD1=function(y,t,a){y.remove(t);a.length>0&&(y.Y=null,y.V.set(L5(y,t),g.hB(a)),y.K=y.K+a.length)}; L5=function(y,t){t=String(t);y.D&&(t=t.toLowerCase());return t}; hix=function(y,t){t&&!y.D&&(OT(y),y.Y=null,y.V.forEach(function(a,r){var E=r.toLowerCase();r!=E&&(this.remove(r),g.sD1(this,E,a))},y)); y.D=t}; g.$r7=function(y){var t="";g.jy(y,function(a,r){t+=r;t+=":";t+=a;t+="\r\n"}); return t}; g.MC=function(y,t,a){if(g.pJ(a))return y;a=g.$r7(a);if(typeof y==="string")return uJ(y,g.cW(t),a);g.ze(y,t,a);return y}; g.wl=function(y){g.H.call(this);this.K=y;this.V={}}; Urn=function(y,t,a,r,E,h){if(Array.isArray(a))for(var F=0;F=0)return!0;try{var t=new g.$u(y)}catch(a){return g.D9(pIu,function(r){return y.search(r)>0})!=null}return t.J.match(ei7)?!0:g.D9(pIu,function(a){return y.match(a)!=null})!=null}; g.l4=function(y,t){return y.replace(uT1,function(a,r){try{var E=g.ek(t,r);if(E==null||E.toString()==null)return a;E=E.toString();if(E==""||!g.TJ(g.DV(E)))return encodeURIComponent(E).replace(/%2C/g,",")}catch(h){}return a})}; VR2=function(y){this.jr=xc(y,500)}; nBV=function(y){this.jr=xc(y,500)}; u4=function(y){this.jr=xc(y)}; Vt=function(y){this.jr=xc(y)}; mr2=function(y){var t=y.jr;return c0(y,t,t[aI]|0,u4,2,1)}; HPN=function(y){var t;if((t=y[JMu])!=null)y=t;else{if(VS!==VS)throw Error();y=y[JMu]=oBx(y.V)}return y}; B6b=function(y){var t;return(t=y[bPd])!=null?t:y[bPd]=new Map(mr2(HPN(y)).map(function(a){return[a.getName(),g.iW(a,2)]}))}; n5=function(y,t){return Object.is(y,t)}; J3=function(y){var t=mh;mh=y;return t}; cMz=function(y){if(y.qA!==void 0){var t=of;of=!0;try{for(var a=y.qA;a!==void 0;a=a.rG){var r=a.Yy;r.k8||(y=void 0,r.k8=!0,cMz(r),(y=r.i6)==null||y.call(r,r))}}finally{of=t}}}; q$u=function(){var y;return((y=mh)==null?void 0:y.fV)!==!1}; Y$V=function(y){y&&(y.v9=void 0,y.W$=!0);return J3(y)}; gBx=function(y){y.W$=!1;var t=y.v9,a=t!==void 0?t.LW:y.producers;if(a!==void 0){if(HS(y)){do a=DrF(a);while(a!==void 0)}t!==void 0?t.LW=void 0:y.producers=void 0}}; iPd=function(y,t){var a=y.N6,r=HS(y);a!==void 0?(t.rG=a.rG,a.rG=t):(t.rG=void 0,y.qA=t);t.sf=a;y.N6=t;if(!r)for(y=y.producers;y!==void 0;y=y.LW)iPd(y.iy,y)}; DrF=function(y){var t=y.iy,a=y.LW,r=y.rG,E=y.sf;y.rG=void 0;y.sf=void 0;r!==void 0?r.sf=E:t.N6=E;if(E!==void 0)E.rG=r;else if(t.qA=r,!HS(t))for(y=t.producers;y!==void 0;)y=DrF(y);return a}; HS=function(y){return y.lG||y.qA!==void 0}; GBN=function(y,t){function a(){a:{if(of)throw Error("");if(mh!==null){var E=mh.v9;if(E===void 0||E.iy!==r){var h=void 0,F=mh.W$;if(F&&(h=E!==void 0?E.LW:mh.producers,h!==void 0&&h.iy===r)){mh.v9=h;h.OJG=r.version;break a}var x=r.N6,U;if(!(U=x===void 0||x.Yy!==mh)){if(F){b:{U=mh;F=U.v9;if(F!==void 0){U=U.producers;do{if(U===x){F=!0;break b}if(U===F)break;U=U.LW}while(U!==void 0)}F=!1}F=!F}U=F}U&&(F=HS(mh),h={iy:r,Yy:mh,LW:h,sf:x,OJG:r.version,rG:void 0},mh.v9=h,E!==void 0?E.LW=h:mh.producers=h,F&& iPd(r,h))}}}return r.value} var r=Object.create(K8n);r.value=y;t!==void 0&&(r.kK=t);a[INd]=r;return[a,function(E){return T6z(r,E)}, function(E){if(!q$u())throw Error();T6z(r,E(r.value))}]}; T6z=function(y,t){if(!q$u())throw Error();y.kK(y.value,t)||(y.value=t,y.version++,ZP2++,cMz(y))}; b4=function(y,t){t=t===void 0?"":t;var a={};y=GBN(y,a.equals);a=a.debugName;var r;t=a&&t?a+"__"+t:(r=a!=null?a:t)!=null?r:"[signal]";y[0][INd].debugName=t}; cS=function(y){g.MM.call(this);var t=this;this.L=this.K=0;this.yB=y!=null?y:{f$:function(E,h){return setTimeout(E,h)}, Vb:function(E){clearTimeout(E)}}; var a,r;this.V=(r=(a=window.navigator)==null?void 0:a.onLine)!=null?r:!0;this.Y=function(){return g.m(function(E){return g.u(E,BS(t),0)})}; window.addEventListener("offline",this.Y);window.addEventListener("online",this.Y);this.L||this.OY()}; y2N=function(){var y=g.qC;cS.instance||(cS.instance=new cS(y));return cS.instance}; BS=function(y,t){return y.D?y.D:y.D=new Promise(function(a){var r,E,h,F;return g.m(function(x){switch(x.V){case 1:return r=window.AbortController?new window.AbortController:void 0,h=(E=r)==null?void 0:E.signal,F=!1,g.xs(x,2,3),r&&(y.K=y.yB.f$(function(){r.abort()},t||2E4)),g.u(x,fetch("/generate_204",{method:"HEAD", signal:h}),5);case 5:F=!0;case 3:g.CI(x);y.D=void 0;y.K&&(y.yB.Vb(y.K),y.K=0);F!==y.V&&(y.V=F,y.V?y.dispatchEvent("networkstatus-online"):y.dispatchEvent("networkstatus-offline"));a(F);g.zE(x,0);break;case 2:g.Uy(x),F=!1,x.xG(3)}})})}; t5H=function(y){this.jr=xc(y)}; Yn=function(){this.data=[];this.V=-1}; aWx=function(y){y.V===-1&&(y.V=y.data.reduce(function(t,a,r){return t+(a?Math.pow(2,r):0)},0)); return y.V}; Dw=function(y){y.setAttribute("role","link")}; i4=function(y,t){Array.isArray(t)&&(t=t.join(" "));t===""||t==void 0?(gl||(t={},gl=(t.atomic=!1,t.autocomplete="none",t.dropeffect="none",t.haspopup=!1,t.live="off",t.multiline=!1,t.multiselectable=!1,t.orientation="vertical",t.readonly=!1,t.relevant="additions text",t.required=!1,t.sort="none",t.busy=!1,t.disabled=!1,t.hidden=!1,t.invalid="false",t)),t=gl,"label"in t?y.setAttribute("aria-label",t.label):y.removeAttribute("aria-label")):y.setAttribute("aria-label",t)}; K5=function(y){y=y.getAttribute("aria-label");return y==null||y==void 0?"":String(y)}; g.If=function(y,t,a){g.H.call(this);this.V=null;this.D=!1;this.J=y;this.L=a;this.K=t||window;this.Y=(0,g.mi)(this.N$,this)}; r27=function(y){y=y.K;return y.requestAnimationFrame||y.webkitRequestAnimationFrame||y.mozRequestAnimationFrame||y.oRequestAnimationFrame||y.msRequestAnimationFrame||null}; E7V=function(y){y=y.K;return y.cancelAnimationFrame||y.cancelRequestAnimationFrame||y.webkitCancelRequestAnimationFrame||y.mozCancelRequestAnimationFrame||y.oCancelRequestAnimationFrame||y.msCancelRequestAnimationFrame||null}; g.Te=function(y,t,a){g.H.call(this);this.V=y;this.Rd=t||0;this.K=a;this.Y=(0,g.mi)(this.Xw,this)}; g.Ge=function(y,t){y.isActive()||y.start(t)}; g.Zw=function(y){y.stop();y.Xw()}; g.yf=function(y){y.isActive()&&g.Zw(y)}; g.tl=function(y,t,a){g.H.call(this);this.D=a!=null?y.bind(a):y;this.Rd=t;this.Y=null;this.V=!1;this.K=0;this.fM=null}; aY=function(y){y.fM=g.mJ(function(){y.fM=null;y.V&&!y.K&&(y.V=!1,aY(y))},y.Rd); var t=y.Y;y.Y=null;y.D.apply(null,t)}; g.rF=function(y,t){this.V=y[g.ks.Symbol.iterator]();this.K=t}; ht1=function(y){return typeof y.className=="string"?y.className:y.getAttribute&&y.getAttribute("class")||""}; Ez=function(y){return y.classList?y.classList:ht1(y).match(/\S+/g)||[]}; g.hl=function(y,t){typeof y.className=="string"?y.className=t:y.setAttribute&&y.setAttribute("class",t)}; g.FV=function(y,t){return y.classList?y.classList.contains(t):g.TE(Ez(y),t)}; g.Al=function(y,t){if(y.classList)y.classList.add(t);else if(!g.FV(y,t)){var a=ht1(y);g.hl(y,a+(a.length>0?" "+t:t))}}; g.xM=function(y,t){if(y.classList)Array.prototype.forEach.call(t,function(E){g.Al(y,E)}); else{var a={};Array.prototype.forEach.call(Ez(y),function(E){a[E]=!0}); Array.prototype.forEach.call(t,function(E){a[E]=!0}); t="";for(var r in a)t+=t.length>0?" "+r:r;g.hl(y,t)}}; g.sz=function(y,t){y.classList?y.classList.remove(t):g.FV(y,t)&&g.hl(y,Array.prototype.filter.call(Ez(y),function(a){return a!=t}).join(" "))}; g.$M=function(y,t){y.classList?Array.prototype.forEach.call(t,function(a){g.sz(y,a)}):g.hl(y,Array.prototype.filter.call(Ez(y),function(a){return!g.TE(t,a)}).join(" "))}; g.Uz=function(y,t,a){a?g.Al(y,t):g.sz(y,t)}; FKV=function(y,t){var a=!g.FV(y,t);g.Uz(y,t,a)}; g.Ce=function(){g.MM.call(this);this.V=0;this.endTime=this.startTime=null}; A2x=function(y,t){Array.isArray(t)||(t=[t]);t=t.map(function(a){return typeof a==="string"?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"}); g.ry(y,"transition",t.join(","))}; z4=function(y,t,a,r,E){g.Ce.call(this);this.K=y;this.L=t;this.J=a;this.D=r;this.W=Array.isArray(E)?E:[E]}; x3N=function(y,t,a,r){return new z4(y,t,{opacity:a},{opacity:r},{property:"opacity",duration:t,timing:"ease-in",delay:0})}; $37=function(y){y=yk(y);if(y=="")return null;var t=String(y.slice(0,4)).toLowerCase();if(("url("1||y&&y.split(")"),null;if(y.indexOf("(")>0){if(/"|'/.test(y))return null;t=/([\-\w]+)\(/g;for(var a;a=t.exec(y);)if(!(a[1].toLowerCase()in szd))return null}return y}; Oz=function(y,t){y=g.ks[y];return y&&y.prototype?(t=Object.getOwnPropertyDescriptor(y.prototype,t))&&t.get||null:null}; U37=function(y){var t=g.ks.CSSStyleDeclaration;return t&&t.prototype&&t.prototype[y]||null}; CQV=function(y,t,a,r){if(y)return y.apply(t,r);if(g.Le&&document.documentMode<10){if(!t[a].call)throw Error("IE Clobbering detected");}else if(typeof t[a]!="function")throw Error("Clobbering detected");return t[a].apply(t,r)}; w67=function(y){if(!y)return"";var t=document.createElement("div").style;zt7(y).forEach(function(a){var r=g.ko&&a in O01?a:a.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");IM(r,"--")||IM(r,"var")||(a=CQV(LKy,y,y.getPropertyValue?"getPropertyValue":"getAttribute",[a])||"",a=$37(a),a!=null&&CQV(M5H,t,t.setProperty?"setProperty":"setAttribute",[r,a]))}); return t.cssText||""}; zt7=function(y){g.pI(y)?y=g.hB(y):(y=g.W1(y),g.tB(y,"cssText"));return y}; g.wF=function(y){var t,a=t=0,r=!1;y=y.split(Rtb);for(var E=0;E.4?-1:1;return(t==0?null:t)==-1?"rtl":"ltr"}; g.dF=function(y){if(y instanceof RY||y instanceof PH||y instanceof NR)return y;if(typeof y.next=="function")return new RY(function(){return y}); if(typeof y[Symbol.iterator]=="function")return new RY(function(){return y[Symbol.iterator]()}); if(typeof y.J_=="function")return new RY(function(){return y.J_()}); throw Error("Not an iterator or iterable.");}; RY=function(y){this.K=y}; PH=function(y){this.K=y}; NR=function(y){RY.call(this,function(){return y}); this.Y=y}; XV=function(y,t,a,r,E,h,F,x){this.V=y;this.W=t;this.Y=a;this.L=r;this.D=E;this.J=h;this.K=F;this.Z=x}; kM=function(y,t){if(t==0)return y.V;if(t==1)return y.K;var a=r4(y.V,y.Y,t),r=r4(y.Y,y.D,t);y=r4(y.D,y.K,t);a=r4(a,r,t);r=r4(r,y,t);return r4(a,r,t)}; X67=function(y,t){var a=(t-y.V)/(y.K-y.V);if(a<=0)return 0;if(a>=1)return 1;for(var r=0,E=1,h=0,F=0;F<8;F++){h=kM(y,a);var x=(kM(y,a+1E-6)-h)/1E-6;if(Math.abs(h-t)<1E-6)return a;if(Math.abs(x)<1E-6)break;else h1E-6&&F<8;F++)h=0}; g.S4=function(y){g.H.call(this);this.J=1;this.Y=[];this.D=0;this.V=[];this.K={};this.W=!!y}; fW7=function(y,t,a){g.jv(function(){y.apply(t,a)})}; g.Qf=function(y){this.Mx=y}; vH=function(y){this.Mx=y}; WKn=function(y){this.data=y}; jzF=function(y){return y===void 0||y instanceof WKn?y:new WKn(y)}; pe=function(y){this.Mx=y}; g.Sq7=function(y){var t=y.creation;y=y.expiration;return!!y&&yg.oq()}; g.e4=function(y){this.Mx=y}; Qzz=function(){}; lw=function(){}; uw=function(y){this.V=y;this.K=null}; Vf=function(y){if(y.V==null)throw Error("Storage mechanism: Storage unavailable");y.isAvailable()||Jq(Error("Storage mechanism: Storage unavailable"))}; ne=function(){var y=null;try{y=g.ks.localStorage||null}catch(t){}uw.call(this,y)}; v7y=function(){var y=null;try{y=g.ks.sessionStorage||null}catch(t){}uw.call(this,y)}; mT=function(y,t){this.K=y;this.V=t+"::"}; g.Jl=function(y){var t=new ne;return t.isAvailable()?y?new mT(t,y):t:null}; oY=function(y,t){this.V=y;this.K=t}; HH=function(y){this.V=[];if(y)a:{if(y instanceof HH){var t=y.lU();y=y.jP();if(this.V.length<=0){for(var a=this.V,r=0;r>>6:(h<65536?x[a++]=224|h>>>12:(x[a++]=240|h>>>18,x[a++]=128|h>>>12&63),x[a++]=128|h>>> 6&63),x[a++]=128|h&63);return x}; YM=function(y){for(var t=y.length;--t>=0;)y[t]=0}; D$=function(y,t,a,r,E){this.VX=y;this.jx=t;this.nh=a;this.Ch=r;this.FLr=E;this.o$=y&&y.length}; gF=function(y,t){this.JA=y;this.W6=0;this.d9=t}; iw=function(y,t){y.Pz[y.pending++]=t&255;y.Pz[y.pending++]=t>>>8&255}; Ke=function(y,t,a){y.DP>16-a?(y.FE|=t<>16-y.DP,y.DP+=a-16):(y.FE|=t<>>=1,a<<=1;while(--t>0);return a>>>1}; V5b=function(y,t,a){var r=Array(16),E=0,h;for(h=1;h<=15;h++)r[h]=E=E+a[h-1]<<1;for(a=0;a<=t;a++)E=y[a*2+1],E!==0&&(y[a*2]=uPx(r[E]++,E))}; n7d=function(y){var t;for(t=0;t<286;t++)y.KL[t*2]=0;for(t=0;t<30;t++)y.yC[t*2]=0;for(t=0;t<19;t++)y.p$[t*2]=0;y.KL[512]=1;y.sB=y.SA=0;y.oP=y.matches=0}; m3n=function(y){y.DP>8?iw(y,y.FE):y.DP>0&&(y.Pz[y.pending++]=y.FE);y.FE=0;y.DP=0}; J2n=function(y,t,a){m3n(y);iw(y,a);iw(y,~a);qR.I2(y.Pz,y.window,t,a,y.pending);y.pending+=a}; o7b=function(y,t,a,r){var E=t*2,h=a*2;return y[E]>>7)];IY(y,F,a);x=aT[F];x!==0&&(E-=rN[F],Ke(y,E,x))}}while(r>1;F>=1;F--)T4(y,a,F);U=h;do F=y.UM[1],y.UM[1]=y.UM[y.tW--],T4(y,a,1),r=y.UM[1],y.UM[--y.Il]=F,y.UM[--y.Il]=r,a[U*2]=a[F*2]+a[r*2],y.depth[U]=(y.depth[F]>=y.depth[r]?y.depth[F]:y.depth[r])+1,a[F*2+1]=a[r*2+1]=U,y.UM[1]=U++,T4(y,a,1);while(y.tW>= 2);y.UM[--y.Il]=y.UM[1];F=t.JA;U=t.W6;r=t.d9.VX;E=t.d9.o$;h=t.d9.jx;var C=t.d9.nh,z=t.d9.FLr,O,M=0;for(O=0;O<=15;O++)y.ze[O]=0;F[y.UM[y.Il]*2+1]=0;for(t=y.Il+1;t<573;t++){var L=y.UM[t];O=F[F[L*2+1]*2+1]+1;O>z&&(O=z,M++);F[L*2+1]=O;if(!(L>U)){y.ze[O]++;var w=0;L>=C&&(w=h[L-C]);var d=F[L*2];y.sB+=d*(O+w);E&&(y.SA+=d*(r[L*2+1]+w))}}if(M!==0){do{for(O=z-1;y.ze[O]===0;)O--;y.ze[O]--;y.ze[O+1]+=2;y.ze[z]--;M-=2}while(M>0);for(O=z;O!==0;O--)for(L=y.ze[O];L!==0;)r=y.UM[--t],r>U||(F[r*2+1]!==O&&(y.sB+=(O- F[r*2+1])*F[r*2],F[r*2+1]=O),L--)}V5b(a,x,y.ze)}; b07=function(y,t,a){var r,E=-1,h=t[1],F=0,x=7,U=4;h===0&&(x=138,U=3);t[(a+1)*2+1]=65535;for(r=0;r<=a;r++){var C=h;h=t[(r+1)*2+1];++F>>=1)if(t&1&&y.KL[a*2]!==0)return 0;if(y.KL[18]!==0||y.KL[20]!==0||y.KL[26]!==0)return 1;for(a=32;a<256;a++)if(y.KL[a*2]!==0)return 1;return 0}; hC=function(y,t,a){y.Pz[y.J6+y.oP*2]=t>>>8&255;y.Pz[y.J6+y.oP*2+1]=t&255;y.Pz[y.LO+y.oP]=a&255;y.oP++;t===0?y.KL[a*2]++:(y.matches++,t--,y.KL[(G4[a]+256+1)*2]++,y.yC[(t<256?tC[t]:tC[256+(t>>>7)])*2]++);return y.oP===y.dh-1}; AC=function(y,t){y.msg=Fx[t];return t}; xR=function(y){for(var t=y.length;--t>=0;)y[t]=0}; s_=function(y){var t=y.state,a=t.pending;a>y.Bj&&(a=y.Bj);a!==0&&(qR.I2(y.output,t.Pz,t.sC,a,y.SS),y.SS+=a,t.sC+=a,y.iR+=a,y.Bj-=a,t.pending-=a,t.pending===0&&(t.sC=0))}; C6=function(y,t){var a=y.O6>=0?y.O6:-1,r=y.iY-y.O6,E=0;if(y.level>0){y.La.hh===2&&(y.La.hh=c2y(y));E_(y,y.tY);E_(y,y.n5);b07(y,y.KL,y.tY.W6);b07(y,y.yC,y.n5.W6);E_(y,y.Xj);for(E=18;E>=3&&y.p$[qqF[E]*2+1]===0;E--);y.sB+=3*(E+1)+5+5+4;var h=y.sB+3+7>>>3;var F=y.SA+3+7>>>3;F<=h&&(h=F)}else h=F=r+5;if(r+4<=h&&a!==-1)Ke(y,t?1:0,3),J2n(y,a,r);else if(y.strategy===4||F===h)Ke(y,2+(t?1:0),3),H01(y,$R,U_);else{Ke(y,4+(t?1:0),3);a=y.tY.W6+1;r=y.n5.W6+1;E+=1;Ke(y,a-257,5);Ke(y,r-1,5);Ke(y,E-4,4);for(h=0;h>>8&255;y.Pz[y.pending++]=t&255}; Yq2=function(y,t){var a=y.PF,r=y.iY,E=y.gK,h=y.rL,F=y.iY>y.xV-262?y.iY-(y.xV-262):0,x=y.window,U=y.r9,C=y.YW,z=y.iY+258,O=x[r+E-1],M=x[r+E];y.gK>=y.bu&&(a>>=2);h>y.R7&&(h=y.R7);do{var L=t;if(x[L+E]===M&&x[L+E-1]===O&&x[L]===x[r]&&x[++L]===x[r+1]){r+=2;for(L++;x[++r]===x[++L]&&x[++r]===x[++L]&&x[++r]===x[++L]&&x[++r]===x[++L]&&x[++r]===x[++L]&&x[++r]===x[++L]&&x[++r]===x[++L]&&x[++r]===x[++L]&&rE){y.b5=t;E=L;if(L>=h)break;O=x[r+E-1];M=x[r+E]}}}while((t=C[t&U])>F&&--a!== 0);return E<=y.R7?E:y.R7}; Xx=function(y){var t=y.xV,a;do{var r=y.Fk-y.R7-y.iY;if(y.iY>=t+(t-262)){qR.I2(y.window,y.window,t,t,0);y.b5-=t;y.iY-=t;y.O6-=t;var E=a=y.Kq;do{var h=y.head[--E];y.head[E]=h>=t?h-t:0}while(--a);E=a=t;do h=y.YW[--E],y.YW[E]=h>=t?h-t:0;while(--a);r+=t}if(y.La.m1===0)break;E=y.La;a=y.window;h=y.iY+y.R7;var F=E.m1;F>r&&(F=r);F===0?a=0:(E.m1-=F,qR.I2(a,E.input,E.a6,F,h),E.state.wrap===1?E.Ka=Nv(E.Ka,a,F,h):E.state.wrap===2&&(E.Ka=dN(E.Ka,a,F,h)),E.a6+=F,E.yy+=F,a=F);y.R7+=a;if(y.R7+y.LA>=3)for(r=y.iY-y.LA, y.M7=y.window[r],y.M7=(y.M7<=3&&(y.M7=(y.M7<=3)if(a=hC(y,y.iY-y.b5,y.Sw-3),y.R7-=y.Sw,y.Sw<=y.pO&&y.R7>=3){y.Sw--;do y.iY++,y.M7=(y.M7<=3&&(y.M7=(y.M7<4096)&&(y.Sw=2));if(y.gK>=3&&y.Sw<=y.gK){r=y.iY+y.R7-3;a=hC(y,y.iY-1-y.Gt,y.gK-3);y.R7-=y.gK-1;y.gK-=2;do++y.iY<=r&&(y.M7=(y.M7<=3&&y.iY>0&&(r=y.iY-1,a=h[r],a===h[++r]&&a===h[++r]&&a===h[++r])){for(E=y.iY+258;a===h[++r]&&a===h[++r]&&a===h[++r]&&a===h[++r]&&a===h[++r]&&a===h[++r]&&a===h[++r]&&a===h[++r]&&ry.R7&&(y.Sw=y.R7)}y.Sw>=3?(a=hC(y,1,y.Sw-3),y.R7-=y.Sw,y.iY+=y.Sw,y.Sw=0):(a=hC(y,0,y.window[y.iY]),y.R7--,y.iY++);if(a&&(C6(y,!1),y.La.Bj===0))return 1}y.LA=0;return t=== 4?(C6(y,!0),y.La.Bj===0?3:4):y.oP&&(C6(y,!1),y.La.Bj===0)?1:2}; g77=function(y,t){for(var a;;){if(y.R7===0&&(Xx(y),y.R7===0)){if(t===0)return 1;break}y.Sw=0;a=hC(y,0,y.window[y.iY]);y.R7--;y.iY++;if(a&&(C6(y,!1),y.La.Bj===0))return 1}y.LA=0;return t===4?(C6(y,!0),y.La.Bj===0?3:4):y.oP&&(C6(y,!1),y.La.Bj===0)?1:2}; Wr=function(y,t,a,r,E){this.Gd=y;this.mKu=t;this.bJv=a;this.vEf=r;this.func=E}; i0N=function(){this.La=null;this.status=0;this.Pz=null;this.wrap=this.pending=this.sC=this.Y2=0;this.ew=null;this.dn=0;this.method=8;this.Ci=-1;this.r9=this.r6=this.xV=0;this.window=null;this.Fk=0;this.head=this.YW=null;this.rL=this.bu=this.strategy=this.level=this.pO=this.PF=this.gK=this.R7=this.b5=this.iY=this.xH=this.Gt=this.Sw=this.O6=this.C2=this.k5=this.Wk=this.Kq=this.M7=0;this.KL=new qR.Nq(1146);this.yC=new qR.Nq(122);this.p$=new qR.Nq(78);xR(this.KL);xR(this.yC);xR(this.p$);this.Xj=this.n5= this.tY=null;this.ze=new qR.Nq(16);this.UM=new qR.Nq(573);xR(this.UM);this.Il=this.tW=0;this.depth=new qR.Nq(573);xR(this.depth);this.DP=this.FE=this.LA=this.matches=this.SA=this.sB=this.J6=this.oP=this.dh=this.LO=0}; KK7=function(y,t){if(!y||!y.state||t>5||t<0)return y?AC(y,-2):-2;var a=y.state;if(!y.output||!y.input&&y.m1!==0||a.status===666&&t!==4)return AC(y,y.Bj===0?-5:-2);a.La=y;var r=a.Ci;a.Ci=t;if(a.status===42)if(a.wrap===2)y.Ka=0,zL(a,31),zL(a,139),zL(a,8),a.ew?(zL(a,(a.ew.text?1:0)+(a.ew.AI?2:0)+(a.ew.extra?4:0)+(a.ew.name?8:0)+(a.ew.comment?16:0)),zL(a,a.ew.time&255),zL(a,a.ew.time>>8&255),zL(a,a.ew.time>>16&255),zL(a,a.ew.time>>24&255),zL(a,a.level===9?2:a.strategy>=2||a.level<2?4:0),zL(a,a.ew.os& 255),a.ew.extra&&a.ew.extra.length&&(zL(a,a.ew.extra.length&255),zL(a,a.ew.extra.length>>8&255)),a.ew.AI&&(y.Ka=dN(y.Ka,a.Pz,a.pending,0)),a.dn=0,a.status=69):(zL(a,0),zL(a,0),zL(a,0),zL(a,0),zL(a,0),zL(a,a.level===9?2:a.strategy>=2||a.level<2?4:0),zL(a,3),a.status=113);else{var E=8+(a.r6-8<<4)<<8;E|=(a.strategy>=2||a.level<2?0:a.level<6?1:a.level===6?2:3)<<6;a.iY!==0&&(E|=32);a.status=113;Pr(a,E+(31-E%31));a.iY!==0&&(Pr(a,y.Ka>>>16),Pr(a,y.Ka&65535));y.Ka=1}if(a.status===69)if(a.ew.extra){for(E= a.pending;a.dn<(a.ew.extra.length&65535)&&(a.pending!==a.Y2||(a.ew.AI&&a.pending>E&&(y.Ka=dN(y.Ka,a.Pz,a.pending-E,E)),s_(y),E=a.pending,a.pending!==a.Y2));)zL(a,a.ew.extra[a.dn]&255),a.dn++;a.ew.AI&&a.pending>E&&(y.Ka=dN(y.Ka,a.Pz,a.pending-E,E));a.dn===a.ew.extra.length&&(a.dn=0,a.status=73)}else a.status=73;if(a.status===73)if(a.ew.name){E=a.pending;do{if(a.pending===a.Y2&&(a.ew.AI&&a.pending>E&&(y.Ka=dN(y.Ka,a.Pz,a.pending-E,E)),s_(y),E=a.pending,a.pending===a.Y2)){var h=1;break}h=a.dnE&&(y.Ka=dN(y.Ka,a.Pz,a.pending-E,E));h===0&&(a.dn=0,a.status=91)}else a.status=91;if(a.status===91)if(a.ew.comment){E=a.pending;do{if(a.pending===a.Y2&&(a.ew.AI&&a.pending>E&&(y.Ka=dN(y.Ka,a.Pz,a.pending-E,E)),s_(y),E=a.pending,a.pending===a.Y2)){h=1;break}h=a.dnE&&(y.Ka=dN(y.Ka,a.Pz,a.pending-E,E));h===0&&(a.status=103)}else a.status= 103;a.status===103&&(a.ew.AI?(a.pending+2>a.Y2&&s_(y),a.pending+2<=a.Y2&&(zL(a,y.Ka&255),zL(a,y.Ka>>8&255),y.Ka=0,a.status=113)):a.status=113);if(a.pending!==0){if(s_(y),y.Bj===0)return a.Ci=-1,0}else if(y.m1===0&&(t<<1)-(t>4?9:0)<=(r<<1)-(r>4?9:0)&&t!==4)return AC(y,-5);if(a.status===666&&y.m1!==0)return AC(y,-5);if(y.m1!==0||a.R7!==0||t!==0&&a.status!==666){r=a.strategy===2?g77(a,t):a.strategy===3?D3z(a,t):ji[a.level].func(a,t);if(r===3||r===4)a.status=666;if(r===1||r===3)return y.Bj===0&&(a.Ci= -1),0;if(r===2&&(t===1?(Ke(a,2,3),IY(a,256,$R),a.DP===16?(iw(a,a.FE),a.FE=0,a.DP=0):a.DP>=8&&(a.Pz[a.pending++]=a.FE&255,a.FE>>=8,a.DP-=8)):t!==5&&(Ke(a,0,3),J2n(a,0,0),t===3&&(xR(a.head),a.R7===0&&(a.iY=0,a.O6=0,a.LA=0))),s_(y),y.Bj===0))return a.Ci=-1,0}if(t!==4)return 0;if(a.wrap<=0)return 1;a.wrap===2?(zL(a,y.Ka&255),zL(a,y.Ka>>8&255),zL(a,y.Ka>>16&255),zL(a,y.Ka>>24&255),zL(a,y.yy&255),zL(a,y.yy>>8&255),zL(a,y.yy>>16&255),zL(a,y.yy>>24&255)):(Pr(a,y.Ka>>>16),Pr(a,y.Ka&65535));s_(y);a.wrap>0&& (a.wrap=-a.wrap);return a.pending!==0?0:1}; Si=function(y){if(!(this instanceof Si))return new Si(y);y=this.options=qR.assign({level:-1,method:8,chunkSize:16384,f4:15,yz7:8,strategy:0,to:""},y||{});y.raw&&y.f4>0?y.f4=-y.f4:y.Z6&&y.f4>0&&y.f4<16&&(y.f4+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.La=new IWz;this.La.Bj=0;var t=this.La;var a=y.level,r=y.method,E=y.f4,h=y.yz7,F=y.strategy;if(t){var x=1;a===-1&&(a=6);E<0?(x=0,E=-E):E>15&&(x=2,E-=16);if(h<1||h>9||r!==8||E<8||E>15||a<0||a>9||F<0||F>4)t=AC(t,-2);else{E===8&&(E=9); var U=new i0N;t.state=U;U.La=t;U.wrap=x;U.ew=null;U.r6=E;U.xV=1<>=7;h<30;h++)for(rN[h]=F<<7,E=0;E<1<=C.xV&&(t===0&&(xR(C.head),C.iY=0,C.O6=0,C.LA=0),a=new qR.Je(C.xV),qR.I2(a,h,F-C.xV,C.xV,0),h=a,F=C.xV);a=y.m1;r=y.a6;E=y.input;y.m1=F;y.a6=0;y.input=h;for(Xx(C);C.R7>=3;){h=C.iY;F=C.R7-2;do C.M7=(C.M7<1?t[y[0]]=y[1]:y.length===1&&Object.assign(t,y[0])}; g.yd=function(y,t){return y in GL?GL[y]:t}; tm=function(y){var t=GL.EXPERIMENT_FLAGS;return t?t[y]:void 0}; RwH=function(y){aB.forEach(function(t){return t(y)})}; g.EO=function(y){return y&&window.yterr?function(){try{return y.apply(this,arguments)}catch(t){g.rs(t)}}:y}; g.rs=function(y){var t=g.jc("yt.logging.errors.log");t?t(y,"ERROR",void 0,void 0,void 0,void 0,void 0):(t=g.yd("ERRORS",[]),t.push([y,"ERROR",void 0,void 0,void 0,void 0,void 0]),ZR("ERRORS",t));RwH(y)}; hm=function(y,t,a,r,E){var h=g.jc("yt.logging.errors.log");h?h(y,"WARNING",t,a,r,void 0,E):(h=g.yd("ERRORS",[]),h.push([y,"WARNING",t,a,r,void 0,E]),ZR("ERRORS",h))}; Fk=function(y,t){t=y.split(t);for(var a={},r=0,E=t.length;r1?y[1]:y[0])):{}}; $z=function(y,t){return XLd(y,t||{},!0)}; UO=function(y,t){return XLd(y,t||{},!1)}; XLd=function(y,t,a){var r=y.split("#",2);y=r[0];r=r.length>1?"#"+r[1]:"";var E=y.split("?",2);y=E[0];E=f7(E[1]||"");for(var h in t)if(a||!g.Sk(E,h))E[h]=t[h];return g.lJ(y,E)+r}; Ct=function(y){if(!t)var t=window.location.href;var a=g.fE(y)[1]||null,r=g.Wv(y);a&&r?(y=g.fE(y),t=g.fE(t),y=y[3]==t[3]&&y[1]==t[1]&&y[4]==t[4]):y=r?g.Wv(t)===r&&(Number(g.fE(t)[4]||null)||null)===(Number(g.fE(y)[4]||null)||null):!0;return y}; zc=function(y){y||(y=document.location.href);y=g.fE(y)[1]||null;return y!==null&&y==="https"}; OO=function(y){y=kZ2(y);return y===null?!1:y[0]==="com"&&y[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; fI7=function(y){y=kZ2(y);return y===null?!1:y[1]==="google"?!0:y[2]==="google"?y[0]==="au"&&y[1]==="com"?!0:y[0]==="uk"&&y[1]==="co"?!0:!1:!1}; kZ2=function(y){y=g.Wv(y);return y!==null?y.split(".").reverse():null}; PYy=function(y){return y&&y.match(WJd)?y:qm(y)}; ws=function(y){var t=Lt;y=y===void 0?Mvd():y;var a=Object,r=a.assign,E=Mt(t);var h=t.V;try{var F=h.screenX;var x=h.screenY}catch(e){}try{var U=h.outerWidth;var C=h.outerHeight}catch(e){}try{var z=h.innerWidth;var O=h.innerHeight}catch(e){}try{var M=h.screenLeft;var L=h.screenTop}catch(e){}try{z=h.innerWidth,O=h.innerHeight}catch(e){}try{var w=h.screen.availWidth;var d=h.screen.availTop}catch(e){}h=[M,L,F,x,w,d,U,C,z,O];F=kI7(!1,t.V.top);x={};var k=k===void 0?g.ks:k;U=new Yn;"SVGElement"in k&&"createElementNS"in k.document&&U.set(0);C=n_2();C["allow-top-navigation-by-user-activation"]&&U.set(1);C["allow-popups-to-escape-sandbox"]&&U.set(2);k.crypto&&k.crypto.subtle&&U.set(3);"TextDecoder"in k&&"TextEncoder"in k&&U.set(4);k=aWx(U);t=(x.bc=k,x.bih=F.height,x.biw=F.width,x.brdim=h.join(),x.vis=P$(t.K),x.wgl=!!qW.WebGLRenderingContext,x);a=r.call(a,E,t);a.ca_type="image";y&&(a.bid=y);return a}; Mt=function(y){var t={};t.dt=jru;t.flash="0";a:{try{var a=y.V.top.location.href}catch(C){y=2;break a}y=a?a===y.K.location.href?0:1:2}t=(t.frm=y,t);try{t.u_tz=-(new Date).getTimezoneOffset();try{var r=qW.history.length}catch(C){r=0}t.u_his=r;var E;t.u_h=(E=qW.screen)==null?void 0:E.height;var h;t.u_w=(h=qW.screen)==null?void 0:h.width;var F;t.u_ah=(F=qW.screen)==null?void 0:F.availHeight;var x;t.u_aw=(x=qW.screen)==null?void 0:x.availWidth;var U;t.u_cd=(U=qW.screen)==null?void 0:U.colorDepth}catch(C){}return t}; Qrb=function(){if(!Sbz)return null;var y=Sbz();return"open"in y?y:null}; g.PE=function(y){switch(RB(y)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; RB=function(y){return y&&"status"in y?y.status:-1}; g.Nt=function(y,t){typeof y==="function"&&(y=g.EO(y));return window.setTimeout(y,t)}; g.ds=function(y,t){typeof y==="function"&&(y=g.EO(y));return window.setInterval(y,t)}; g.Xk=function(y){window.clearTimeout(y)}; g.kz=function(y){window.clearInterval(y)}; g.WE=function(y){y=ft(y);return typeof y==="string"&&y==="false"?!1:!!y}; g.jm=function(y,t){y=ft(y);return y===void 0&&t!==void 0?t:Number(y||0)}; Sm=function(){return g.yd("EXPERIMENTS_TOKEN","")}; ft=function(y){if(y!==vCd)return g.yd("EXPERIMENT_FLAGS",{})[y]}; Qd=function(){for(var y=[],t=g.yd("EXPERIMENTS_FORCED_FLAGS",{}),a=g.p(Object.keys(t)),r=a.next();!r.done;r=a.next())r=r.value,y.push({key:r,value:String(t[r])});a=g.yd("EXPERIMENT_FLAGS",{});r=g.p(Object.keys(a));for(var E=r.next();!E.done;E=r.next())E=E.value,E.startsWith("force_")&&t[E]===void 0&&y.push({key:E,value:String(a[E])});return y}; vE=function(y,t,a,r,E,h,F,x,U){function C(){(z&&"readyState"in z?z.readyState:0)===4&&t&&g.EO(t)(z)} a=a===void 0?"GET":a;r=r===void 0?"":r;x=x===void 0?!1:x;var z=Qrb();if(!z)return null;"onloadend"in z?z.addEventListener("loadend",C,!1):z.onreadystatechange=C;g.WE("debug_forward_web_query_parameters")&&(y=pL2(y));z.open(a,y,!0);h&&(z.responseType=h);F&&(z.withCredentials=!0);a=a==="POST"&&(window.FormData===void 0||!(r instanceof FormData));if(E=ew7(y,E))for(var O in E)z.setRequestHeader(O,E[O]),"content-type"===O.toLowerCase()&&(a=!1);a&&z.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); U&&"onprogress"in z&&(z.onprogress=function(){U(z.responseText)}); if(x&&"setAttributionReporting"in XMLHttpRequest.prototype){y={eventSourceEligible:!0,triggerEligible:!1};try{z.setAttributionReporting(y)}catch(M){hm(M)}}z.send(r);return z}; ew7=function(y,t){t=t===void 0?{}:t;var a=Ct(y),r=g.yd("INNERTUBE_CLIENT_NAME"),E=g.WE("web_ajax_ignore_global_headers_if_set"),h;for(h in lIN){var F=g.yd(lIN[h]),x=h==="X-Goog-AuthUser"||h==="X-Goog-PageId";h!=="X-Goog-Visitor-Id"||F||(F=g.yd("VISITOR_DATA"));var U;if(!(U=!F)){if(!(U=a||(g.Wv(y)?!1:!0))){U=y;var C;if(C=g.WE("add_auth_headers_to_remarketing_google_dot_com_ping")&&h==="Authorization"&&(r==="TVHTML5"||r==="TVHTML5_UNPLUGGED"||r==="TVHTML5_SIMPLY")&&fI7(U))U=j8(U)||"",U=U.split("/"), U="/"+(U.length>1?U[1]:""),C=U==="/pagead";U=C?!0:!1}U=!U}U||E&&t[h]!==void 0||r==="TVHTML5_UNPLUGGED"&&x||(t[h]=F)}"X-Goog-EOM-Visitor-Id"in t&&"X-Goog-Visitor-Id"in t&&delete t["X-Goog-Visitor-Id"];if(a||!g.Wv(y))t["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(a||!g.Wv(y)){try{var z=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(O){}z&&(t["X-YouTube-Time-Zone"]=z)}document.location.hostname.endsWith("youtubeeducation.com")||!a&&g.Wv(y)||(t["X-YouTube-Ad-Signals"]= Am(ws()));return t}; em=function(y,t){t.method="POST";t.postParams||(t.postParams={});return g.pt(y,t)}; nCn=function(y,t){if(window.fetch&&t.format!=="XML"){var a={method:t.method||"GET",credentials:"same-origin"};t.headers&&(a.headers=t.headers);t.priority&&(a.priority=t.priority);y=ur2(y,t);var r=Vv7(y,t);r&&(a.body=r);t.withCredentials&&(a.credentials="include");var E=t.context||g.ks,h=!1,F;fetch(y,a).then(function(x){if(!h){h=!0;F&&g.Xk(F);var U=x.ok,C=function(z){z=z||{};U?t.onSuccess&&t.onSuccess.call(E,z,x):t.onError&&t.onError.call(E,z,x);t.onFinish&&t.onFinish.call(E,z,x)}; (t.format||"JSON")==="JSON"&&(U||x.status>=400&&x.status<500)?x.json().then(C,function(){C(null)}):C(null)}}).catch(function(){t.onError&&t.onError.call(E,{},{})}); y=t.timeout||0;t.onFetchTimeout&&y>0&&(F=g.Nt(function(){h||(h=!0,g.Xk(F),t.onFetchTimeout.call(t.context||g.ks))},y))}else g.pt(y,t)}; g.pt=function(y,t){var a=t.format||"JSON";y=ur2(y,t);var r=Vv7(y,t),E=!1,h=mM1(y,function(U){if(!E){E=!0;x&&g.Xk(x);var C=g.PE(U),z=null,O=400<=U.status&&U.status<500,M=500<=U.status&&U.status<600;if(C||O||M)z=JxN(y,a,U,t.convertToSafeHtml);C&&(C=oCu(a,U,z));z=z||{};O=t.context||g.ks;C?t.onSuccess&&t.onSuccess.call(O,U,z):t.onError&&t.onError.call(O,U,z);t.onFinish&&t.onFinish.call(O,U,z)}},t.method,r,t.headers,t.responseType,t.withCredentials,!1,t.onProgress); r=t.timeout||0;if(t.onTimeout&&r>0){var F=t.onTimeout;var x=g.Nt(function(){E||(E=!0,h.abort(),g.Xk(x),F.call(t.context||g.ks,h))},r)}return h}; ur2=function(y,t){t.includeDomain&&(y=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+y);var a=g.yd("XSRF_FIELD_NAME");if(t=t.urlParams)t[a]&&delete t[a],y=$z(y,t);return y}; Vv7=function(y,t){var a=g.yd("XSRF_FIELD_NAME"),r=g.yd("XSRF_TOKEN"),E=t.postBody||"",h=t.postParams,F=g.yd("XSRF_FIELD_NAME"),x;t.headers&&(x=t.headers["Content-Type"]);t.excludeXsrf||g.Wv(y)&&!t.withCredentials&&g.Wv(y)!==document.location.hostname||t.method!=="POST"||x&&x!=="application/x-www-form-urlencoded"||t.postParams&&t.postParams[F]||(h||(h={}),h[a]=r);(g.WE("ajax_parse_query_data_only_when_filled")&&h&&Object.keys(h).length>0||h)&&typeof E==="string"&&(E=f7(E),g.ms(E,h),E=t.postBodyFormat&& t.postBodyFormat==="JSON"?JSON.stringify(E):g.e8(E));h=E||h&&!g.pJ(h);!HZb&&h&&t.method!=="POST"&&(HZb=!0,g.rs(Error("AJAX request with postData should use POST")));return E}; JxN=function(y,t,a,r){var E=null;switch(t){case "JSON":try{var h=a.responseText}catch(F){throw r=Error("Error reading responseText"),r.params=y,hm(r),F;}y=a.getResponseHeader("Content-Type")||"";h&&y.indexOf("json")>=0&&(h.substring(0,5)===")]}'\n"&&(h=h.substring(5)),E=JSON.parse(h));break;case "XML":if(y=(y=a.responseXML)?bZn(y):null)E={},g.wK(y.getElementsByTagName("*"),function(F){E[F.tagName]=Bkn(F)})}r&&cx7(E); return E}; cx7=function(y){if(g.l3(y))for(var t in y)t==="html_content"||$92(t,"_html")?y[t]=vW(y[t]):cx7(y[t])}; oCu=function(y,t,a){if(t&&t.status===204)return!0;switch(y){case "JSON":return!!a;case "XML":return Number(a&&a.return_code)===0;case "RAW":return!0;default:return!!a}}; bZn=function(y){return y?(y=("responseXML"in y?y.responseXML:y).getElementsByTagName("root"))&&y.length>0?y[0]:null:null}; Bkn=function(y){var t="";g.wK(y.childNodes,function(a){t+=a.nodeValue}); return t}; pL2=function(y){var t=window.location.search,a=g.Wv(y);g.WE("debug_handle_relative_url_for_query_forward_killswitch")||!a&&Ct(y)&&(a=document.location.hostname);var r=j8(y);r=(a=a&&(a.endsWith("youtube.com")||a.endsWith("youtube-nocookie.com")))&&r&&r.startsWith("/api/");if(!a||r)return y;var E=f7(t),h={};g.wK(qbV,function(F){E[F]&&(h[F]=E[F])}); return UO(y,h)}; uo=function(y,t){var a=g.uN(t),r;return(new g.Qn(function(E,h){a.onSuccess=function(F){g.PE(F)?E(new Ybu(F)):h(new lo("Request failed, status="+RB(F),"net.badstatus",F))}; a.onError=function(F){h(new lo("Unknown request error","net.unknown",F))}; a.onTimeout=function(F){h(new lo("Request timed out","net.timeout",F))}; r=g.pt(y,a)})).Eh(function(E){if(E instanceof Vn){var h; (h=r)==null||h.abort()}return ev(E)})}; g.Vd=function(y,t,a,r,E,h){function F(U,C,z){return U.Eh(function(O){if(C<=0||RB(O.xhr)===403)return ev(new lo("Request retried too many times","net.retryexhausted",O.xhr,O));var M=Math.pow(2,a-C+1)*z,L=E>0?Math.min(E,M):M;return x(z).then(function(){h&&h(O,C-1);return F(uo(y,t),C-1,L)})})} function x(U){return new g.Qn(function(C){setTimeout(C,U)})} E=E===void 0?-1:E;return F(uo(y,t),a-1,r)}; lo=function(y,t,a){cd.call(this,y+", errorCode="+t);this.errorCode=t;this.xhr=a;this.name="PromiseAjaxError"}; Ybu=function(y){this.xhr=y}; nt=function(y){this.V=y===void 0?null:y;this.Y=0;this.K=null}; m_=function(y){var t=new nt;y=y===void 0?null:y;t.Y=2;t.K=y===void 0?null:y;return t}; Jm=function(y){var t=new nt;y=y===void 0?null:y;t.Y=1;t.K=y===void 0?null:y;return t}; g.bo=function(y,t,a,r,E){oB||HE.set(""+y,t,{Ug:a,path:"/",domain:r===void 0?"youtube.com":r,secure:E===void 0?!1:E})}; g.BE=function(y,t){if(!oB)return HE.get(""+y,t)}; g.cE=function(y,t,a){oB||HE.remove(""+y,t===void 0?"/":t,a===void 0?"youtube.com":a)}; DMx=function(){if(g.WE("embeds_web_enable_cookie_detection_fix")){if(!g.ks.navigator.cookieEnabled)return!1}else if(!HE.isEnabled())return!1;if(!HE.isEmpty())return!0;g.WE("embeds_web_enable_cookie_detection_fix")?HE.set("TESTCOOKIESENABLED","1",{Ug:60,sameSite:"none",secure:!0}):HE.set("TESTCOOKIESENABLED","1",{Ug:60});if(HE.get("TESTCOOKIESENABLED")!=="1")return!1;HE.remove("TESTCOOKIESENABLED");return!0}; g.P=function(y,t){if(y)return y[t.name]}; qt=function(y){var t=g.yd("INNERTUBE_HOST_OVERRIDE");t&&(y=String(t)+String(S8(y)));return y}; gC1=function(y){var t={};g.WE("json_condensed_response")&&(t.prettyPrint="false");return y=UO(y,t)}; Yz=function(y,t){var a=a===void 0?{}:a;y={method:t===void 0?"POST":t,mode:Ct(y)?"same-origin":"cors",credentials:Ct(y)?"same-origin":"include"};t={};for(var r=g.p(Object.keys(a)),E=r.next();!E.done;E=r.next())E=E.value,a[E]&&(t[E]=a[E]);Object.keys(t).length>0&&(y.headers=t);return y}; DY=function(){var y=/Chrome\/(\d+)/.exec(g.rI());return y?parseFloat(y[1]):NaN}; gs=function(){var y=/\sCobalt\/(\S+)\s/.exec(g.rI());if(!y)return NaN;var t=[];y=g.p(y[1].split("."));for(var a=y.next();!a.done;a=y.next())a=parseInt(a.value,10),a>=0&&t.push(a);return parseFloat(t.join("."))}; Kt=function(){return g.io("android")&&g.io("chrome")&&!(g.io("trident/")||g.io("edge/"))&&!g.io("cobalt")}; g.IB=function(){return g.io("cobalt")}; Tc=function(){return g.io("cobalt")&&g.io("appletv")}; Gc=function(){return g.io("(ps3; leanback shell)")||g.io("ps3")&&g.IB()}; iZ7=function(){return g.io("(ps4; leanback shell)")||g.io("ps4")&&g.IB()}; g.KJ7=function(){return g.IB()&&(g.io("ps4 vr")||g.io("ps4 pro vr"))}; ZY=function(){var y=/WebKit\/([0-9]+)/.exec(g.rI());return!!(y&&parseInt(y[1],10)>=600)}; y1=function(){var y=/WebKit\/([0-9]+)/.exec(g.rI());return!!(y&&parseInt(y[1],10)>=602)}; IIN=function(){return g.io("iemobile")||g.io("windows phone")&&g.io("edge")}; rB=function(){return(tU||a_)&&g.io("applewebkit")&&!g.io("version")&&(!g.io("safari")||g.io("gsa/"))}; hU=function(){return g.EX&&g.io("version/")}; FL=function(){return g.io("smart-tv")&&g.io("samsung")}; g.io=function(y){var t=g.rI();return t?t.toLowerCase().indexOf(y)>=0:!1}; AU=function(){return Wnn()||rB()||hU()?!0:g.yd("EOM_VISITOR_DATA")?!1:!0}; xH=function(y,t){return t===void 0||t===null?y:t==="1"||t===!0||t===1||t==="True"?!0:!1}; sX=function(y,t,a){for(var r in a)if(a[r]==t)return a[r];return y}; $H=function(y,t){return t===void 0||t===null?y:Number(t)}; UX=function(y,t){return t===void 0||t===null?y:t.toString()}; Co=function(y,t){if(t){if(y==="fullwidth")return Infinity;if(y==="fullheight")return 0}return y&&(t=y.match(Tkn))&&(y=Number(t[2]),t=Number(t[1]),!isNaN(y)&&!isNaN(t)&&y>0)?t/y:NaN}; zD=function(y){var t=y.docid||y.video_id||y.videoId||y.id;if(t)return t;t=y.raw_player_response;t||(y=y.player_response)&&(t=JSON.parse(y));return t&&t.videoDetails&&t.videoDetails.videoId||null}; GZ7=function(y){return OX(y,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.Lo=function(y){return y==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||y==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; OX=function(y,t){t=(t===void 0?0:t)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(t="EMBEDDED_PLAYER_MODE_PFL");var a=y.raw_embedded_player_response;if(!a&&(y=y.embedded_player_response))try{a=JSON.parse(y)}catch(r){return t}return a?sX(t,a.embeddedPlayerMode,ZZx):t}; wB=function(y){cd.call(this,y.message||y.description||y.name);this.isMissing=y instanceof Me;this.isTimeout=y instanceof lo&&y.errorCode=="net.timeout";this.isCanceled=y instanceof Vn}; Me=function(){cd.call(this,"Biscotti ID is missing from server")}; ywd=function(){if(g.WE("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!AU())return Error("User has not consented - not fetching biscotti id.");var y=g.yd("PLAYER_VARS",{});if(g.ek(y,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(GZ7(y))return Error("Biscotti id fetching has been disabled for pfl.")}; Em7=function(){var y=ywd();if(y!==void 0)return ev(y);R_||(R_=uo("//googleads.g.doubleclick.net/pagead/id",tPy).then(at7).Eh(function(t){return rwV(2,t)})); return R_}; at7=function(y){y=y.xhr.responseText;if(!IM(y,")]}'"))throw new Me;y=JSON.parse(y.substr(4));if((y.type||1)>1)throw new Me;y=y.id;wLy(y);R_=Jm(y);hC7(18E5,2);return y}; rwV=function(y,t){t=new wB(t);wLy("");R_=m_(t);y>0&&hC7(12E4,y-1);throw t;}; hC7=function(y,t){g.Nt(function(){uo("//googleads.g.doubleclick.net/pagead/id",tPy).then(at7,function(a){return rwV(t,a)}).Eh(g.DP)},y)}; FFH=function(){try{var y=g.jc("yt.ads.biscotti.getId_");return y?y():Em7()}catch(t){return ev(t)}}; xi7=function(y){y&&(y.dataset?y.dataset[Awy()]="true":WiF(y))}; sd1=function(y){return y?y.dataset?y.dataset[Awy()]:y.getAttribute("data-loaded"):null}; Awy=function(){return $i7.loaded||($i7.loaded="loaded".replace(/\-([a-z])/g,function(y,t){return t.toUpperCase()}))}; Uin=function(){var y=document;if("visibilityState"in y)return y.visibilityState;var t=PG+"VisibilityState";if(t in y)return y[t]}; Ne=function(y,t){var a;rQ(y,function(r){a=t[r];return!!a}); return a}; dB=function(y){if(y.requestFullscreen)y=y.requestFullscreen(void 0);else if(y.webkitRequestFullscreen)y=y.webkitRequestFullscreen();else if(y.mozRequestFullScreen)y=y.mozRequestFullScreen();else if(y.msRequestFullscreen)y=y.msRequestFullscreen();else if(y.webkitEnterFullscreen)y=y.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return y instanceof Promise?y:Promise.resolve()}; fo=function(y){var t;g.XL()?kH()==y&&(t=document):t=y;return t&&(y=Ne(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],t))?(t=y.call(t),t instanceof Promise?t:Promise.resolve()):Promise.resolve()}; Cay=function(y){return g.D9(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){return"on"+t.toLowerCase()in y})}; zCn=function(){var y=document;return g.D9(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(t){return"on"+t.toLowerCase()in y})}; g.XL=function(){return!!Ne(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; kH=function(y){y=y===void 0?!1:y;var t=Ne(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(y)for(;t&&t.shadowRoot;)t=t.shadowRoot.fullscreenElement;return t?t:null}; WG=function(y){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(y=y||window.event){this.event=y;for(var t in y)t in Odz||(this[t]=y[t]);this.scale=y.scale;this.rotation=y.rotation;var a=y.target||y.srcElement;a&&a.nodeType==3&&(a=a.parentNode);this.target=a;var r=y.relatedTarget; if(r)try{r=r.nodeName?r:null}catch(E){r=null}else this.type=="mouseover"?r=y.fromElement:this.type=="mouseout"&&(r=y.toElement);this.relatedTarget=r;this.clientX=y.clientX!=void 0?y.clientX:y.pageX;this.clientY=y.clientY!=void 0?y.clientY:y.pageY;this.keyCode=y.keyCode?y.keyCode:y.which;this.charCode=y.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=y.altKey;this.ctrlKey=y.ctrlKey;this.shiftKey=y.shiftKey;this.metaKey=y.metaKey;this.V=y.pageX;this.K=y.pageY}}catch(E){}}; LFH=function(y){if(document.body&&document.documentElement){var t=document.body.scrollTop+document.documentElement.scrollTop;y.V=y.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);y.K=y.clientY+t}}; MPn=function(y,t,a,r){r=r===void 0?{}:r;y.addEventListener&&(t!="mouseenter"||"onmouseenter"in document?t!="mouseleave"||"onmouseenter"in document?t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"):t="mouseout":t="mouseover");return v1(jb,function(E){var h=typeof E[4]==="boolean"&&E[4]==!!r,F=g.l3(E[4])&&g.l3(r)&&g.lN(E[4],r);return!!E.length&&E[0]==y&&E[1]==t&&E[2]==a&&(h||F)})}; g.Sb=function(y,t,a,r){r=r===void 0?{}:r;if(!y||!y.addEventListener&&!y.attachEvent)return"";var E=MPn(y,t,a,r);if(E)return E;E=++wg7.count+"";var h=!(t!="mouseenter"&&t!="mouseleave"||!y.addEventListener||"onmouseenter"in document);var F=h?function(x){x=new WG(x);if(!JE(x.relatedTarget,function(U){return U==y},!0))return x.currentTarget=y,x.type=t,a.call(y,x)}:function(x){x=new WG(x); x.currentTarget=y;return a.call(y,x)}; F=g.EO(F);y.addEventListener?(t=="mouseenter"&&h?t="mouseover":t=="mouseleave"&&h?t="mouseout":t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"),RCy()||typeof r==="boolean"?y.addEventListener(t,F,r):y.addEventListener(t,F,!!r.capture)):y.attachEvent("on"+t,F);jb[E]=[y,t,a,F,r];return E}; NbN=function(y){return Pa7(y,function(t){return g.FV(t,"ytp-ad-has-logging-urls")})}; Pa7=function(y,t){var a=document.body||document;return g.Sb(a,"click",function(r){var E=JE(r.target,function(h){return h===a||t(h)},!0); E&&E!==a&&!E.disabled&&(r.currentTarget=E,y.call(E,r))})}; g.Q1=function(y){y&&(typeof y=="string"&&(y=[y]),g.wK(y,function(t){if(t in jb){var a=jb[t],r=a[0],E=a[1],h=a[3];a=a[4];r.removeEventListener?RCy()||typeof a==="boolean"?r.removeEventListener(E,h,a):r.removeEventListener(E,h,!!a.capture):r.detachEvent&&r.detachEvent("on"+E,h);delete jb[t]}}))}; vG=function(y){for(var t in jb)jb[t][0]==y&&g.Q1(t)}; po=function(y){y=y||window.event;var t;y.composedPath&&typeof y.composedPath==="function"?t=y.composedPath():t=y.path;t&&t.length?y=t[0]:(y=y||window.event,y=y.target||y.srcElement,y.nodeType==3&&(y=y.parentNode));return y}; eb=function(y){this.W=y;this.V=null;this.D=0;this.J=null;this.L=0;this.K=[];for(y=0;y<4;y++)this.K.push(0);this.Y=0;this.Vv=g.Sb(window,"mousemove",(0,g.mi)(this.hF,this));this.Z=g.ds((0,g.mi)(this.AF,this),25)}; lm=function(y){g.H.call(this);this.J=[];this.I7=y||this}; um=function(y,t,a,r){for(var E=0;E0?a:0;a=r?Date.now()+r*1E3:0;if((r=r?g.no.Da():g.no.Pk())&&window.JSON){typeof t!=="string"&&(t=JSON.stringify(t,void 0));try{r.set(y,t,a)}catch(E){r.remove(y)}}}; g.JU=function(y){var t=g.no.Pk(),a=g.no.Da();if(!t&&!a||!window.JSON)return null;try{var r=t.get(y)}catch(E){}if(typeof r!=="string")try{r=a.get(y)}catch(E){}if(typeof r!=="string")return null;try{r=JSON.parse(r,void 0)}catch(E){}return r}; Xgb=function(){var y=g.no.Da();if(y&&(y=y.A5("yt-player-quality")))return y.creation}; g.o_=function(y){try{var t=g.no.Pk(),a=g.no.Da();t&&t.remove(y);a&&a.remove(y)}catch(r){}}; g.HG=function(){return g.JU("yt-remote-session-screen-id")}; ka1=function(y){var t=this;this.K=void 0;this.V=!1;y.addEventListener("beforeinstallprompt",function(a){a.preventDefault();t.K=a}); y.addEventListener("appinstalled",function(){t.V=!0},{once:!0})}; bm=function(){if(!g.ks.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.ks.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.ks.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.ks.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.ks.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(y){return"WEB_DISPLAY_MODE_UNKNOWN"}}; BG=function(){this.iS=!0}; ftF=function(){BG.instance||(BG.instance=new BG);return BG.instance}; WFd=function(y){switch(y){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}}; jd7=function(){this.V=g.yd("ALT_PREF_COOKIE_NAME","PREF");this.K=g.yd("ALT_PREF_COOKIE_DOMAIN","youtube.com");var y=g.BE(this.V);y&&this.parse(y)}; g.qe=function(){cG||(cG=new jd7);return cG}; D4=function(y,t){var a="f"+(Math.floor(y/31)+1);y=1<10&&sj.shift()))}; Uj=function(y,t){Ak||(xG?xG.logEvent(y,t):(sj.push({type:"EVENT",eventType:y,payload:t}),sj.length>10&&sj.shift()))}; Cx=function(y){if(y.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; zj=function(y){return y.substr(0,y.indexOf(":"))||y}; g.Oj=function(y,t,a,r,E){t=t===void 0?{}:t;a=a===void 0?VPy[y]:a;r=r===void 0?nmb[y]:r;E=E===void 0?miz[y]:E;g.RV.call(this,a,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:y},t));this.type=y;this.message=a;this.level=r;this.V=E;Object.setPrototypeOf(this,g.Oj.prototype)}; Lx=function(y,t){g.Oj.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:t,foundObjectStores:y},VPy.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Lx.prototype)}; Mx=function(y,t){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.index=y;this.objectStore=t;Object.setPrototypeOf(this,Mx.prototype)}; RU=function(y,t,a,r){t=zj(t);var E=y instanceof Error?y:Error("Unexpected error: "+y);if(E instanceof g.Oj)return E;y={objectStoreNames:a,dbName:t,dbVersion:r};if(E.name==="QuotaExceededError")return new g.Oj("QUOTA_EXCEEDED",y);if(g.wR&&E.name==="UnknownError")return new g.Oj("QUOTA_MAYBE_EXCEEDED",y);if(E instanceof Mx)return new g.Oj("MISSING_INDEX",Object.assign({},y,{objectStore:E.objectStore,index:E.index}));if(E.name==="InvalidStateError"&&JwH.some(function(h){return E.message.includes(h)}))return new g.Oj("EXECUTE_TRANSACTION_ON_CLOSED_DB", y); if(E.name==="AbortError")return new g.Oj("UNKNOWN_ABORT",y,E.message);E.args=[Object.assign({},y,{name:"IdbError",TU:E.name})];E.level="WARNING";return E}; g.Px=function(y,t,a){var r=Fa();return new g.Oj("IDB_NOT_SUPPORTED",{context:{caller:y,publicName:t,version:a,hasSucceededOnce:r==null?void 0:r.hasSucceededOnce}})}; om7=function(y){if(!y)throw Error();throw y;}; Hd7=function(y){return y}; Nx=function(y){this.V=y}; g.dR=function(y){function t(E){if(r.state.status==="PENDING"){r.state={status:"REJECTED",reason:E};E=g.p(r.K);for(var h=E.next();!h.done;h=E.next())h=h.value,h()}} function a(E){if(r.state.status==="PENDING"){r.state={status:"FULFILLED",value:E};E=g.p(r.V);for(var h=E.next();!h.done;h=E.next())h=h.value,h()}} var r=this;this.state={status:"PENDING"};this.V=[];this.K=[];y=y.V;try{y(a,t)}catch(E){t(E)}}; bd2=function(y,t,a,r,E){try{if(y.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var h=a(y.state.value);h instanceof g.dR?Xa(y,t,h,r,E):r(h)}catch(F){E(F)}}; Bbb=function(y,t,a,r,E){try{if(y.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var h=a(y.state.reason);h instanceof g.dR?Xa(y,t,h,r,E):r(h)}catch(F){E(F)}}; Xa=function(y,t,a,r,E){t===a?E(new TypeError("Circular promise chain detected.")):a.then(function(h){h instanceof g.dR?Xa(y,t,h,r,E):r(h)},function(h){E(h)})}; cwF=function(y,t,a){function r(){a(y.error);h()} function E(){t(y.result);h()} function h(){try{y.removeEventListener("success",E),y.removeEventListener("error",r)}catch(F){}} y.addEventListener("success",E);y.addEventListener("error",r)}; qSn=function(y){return new Promise(function(t,a){cwF(y,t,a)})}; kG=function(y){return new g.dR(new Nx(function(t,a){cwF(y,t,a)}))}; fx=function(y,t){return new g.dR(new Nx(function(a,r){function E(){var h=y?t(y):null;h?h.then(function(F){y=F;E()},r):a()} E()}))}; YSN=function(y,t){this.request=y;this.cursor=t}; Di7=function(y){return kG(y).then(function(t){return t?new YSN(y,t):null})}; g.gmu=function(y){y.cursor.continue(void 0);return Di7(y.request)}; id7=function(y,t){this.V=y;this.options=t;this.transactionCount=0;this.Y=Math.round((0,g.Wx)());this.K=!1}; jZ=function(){return g.WE("idb_immediate_commit")}; g.Qw=function(y,t,a){y=y.V.createObjectStore(t,a);return new SZ(y)}; vx=function(y,t){y.V.objectStoreNames.contains(t)&&y.V.deleteObjectStore(t)}; g.ll=function(y,t,a){return g.px(y,[t],{mode:"readwrite",kE:!0,commit:jZ()},function(r){return g.eZ(r.objectStore(t),a)})}; g.px=function(y,t,a,r){var E,h,F,x,U,C,z,O,M,L,w,d;return g.m(function(k){switch(k.V){case 1:var e={mode:"readonly",kE:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof a==="string"?e.mode=a:Object.assign(e,a);E=e;y.transactionCount++;h=E.kE?3:1;F=0;case 2:if(x){k.xG(4);break}F++;U=Math.round((0,g.Wx)());g.xs(k,5);C=y.V.transaction(t,E.mode);e=!!E.commit;var v=new ul(C);e=KFx(v,r,e);return g.u(k,e,7);case 7:return z=k.K,O=Math.round((0,g.Wx)()),ItH(y,U,O,F,void 0,t.join(),E),k.return(z);case 5:M=g.Uy(k); L=Math.round((0,g.Wx)());w=RU(M,y.V.name,t.join(),y.V.version);if((d=w instanceof g.Oj&&!w.V)||F>=h)ItH(y,U,L,F,w,t.join(),E),x=w;k.xG(2);break;case 4:return k.return(Promise.reject(x))}})}; ItH=function(y,t,a,r,E,h,F){t=a-t;E?(E instanceof g.Oj&&(E.type==="QUOTA_EXCEEDED"||E.type==="QUOTA_MAYBE_EXCEEDED")&&Uj("QUOTA_EXCEEDED",{dbName:zj(y.V.name),objectStoreNames:h,transactionCount:y.transactionCount,transactionMode:F.mode}),E instanceof g.Oj&&E.type==="UNKNOWN_ABORT"&&(a-=y.Y,a<0&&a>=2147483648&&(a=0),Uj("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:h,transactionDuration:t,transactionCount:y.transactionCount,dbDuration:a}),y.K=!0),TbH(y,!1,r,h,t,F.tag),$G(E)):TbH(y,!0,r,h,t, F.tag)}; TbH=function(y,t,a,r,E,h){Uj("TRANSACTION_ENDED",{objectStoreNames:r,connectionHasUnknownAbortedTransaction:y.K,duration:E,isSuccessful:t,tryCount:a,tag:h===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":h})}; SZ=function(y){this.V=y}; g.Vw=function(y,t,a){y.V.createIndex(t,a,{unique:!1})}; var Ld7=function(y){return y2[A[3]](this,1,y)}; Gay=function(y,t){return g.nx(y,{query:t},function(a){return a.delete().then(function(){return g.Jk(a)})}).then(function(){})}; Zdx=function(y,t,a){var r=[];return g.nx(y,{query:t},function(E){if(!(a!==void 0&&r.length>=a))return r.push(E.getValue()),g.Jk(E)}).then(function(){return r})}; t0d=function(y){return"getAllKeys"in IDBObjectStore.prototype?kG(y.V.getAllKeys(void 0,void 0)):y3x(y)}; y3x=function(y){var t=[];return g.awd(y,{query:void 0},function(a){t.push(a.cursor.primaryKey);return g.gmu(a)}).then(function(){return t})}; g.eZ=function(y,t,a){return kG(y.V.put(t,a))}; g.nx=function(y,t,a){y=y.V.openCursor(t.query,t.direction);return oU(y).then(function(r){return fx(r,a)})}; g.awd=function(y,t,a){var r=t.query;t=t.direction;y="openKeyCursor"in IDBObjectStore.prototype?y.V.openKeyCursor(r,t):y.V.openCursor(r,t);return Di7(y).then(function(E){return fx(E,a)})}; ul=function(y){var t=this;this.V=y;this.K=new Map;this.aborted=!1;this.done=new Promise(function(a,r){t.V.addEventListener("complete",function(){a()}); t.V.addEventListener("error",function(E){E.currentTarget===E.target&&r(t.V.error)}); t.V.addEventListener("abort",function(){var E=t.V.error;if(E)r(E);else if(!t.aborted){E=g.Oj;for(var h=t.V.objectStoreNames,F=[],x=0;x=a))return r.push(E.getValue()),g.Jk(E)}).then(function(){return r})}; g.Hx=function(y,t,a){y=y.V.openCursor(t.query===void 0?null:t.query,t.direction===void 0?"next":t.direction);return oU(y).then(function(r){return fx(r,a)})}; bl=function(y,t){this.request=y;this.cursor=t}; oU=function(y){return kG(y).then(function(t){return t?new bl(y,t):null})}; g.Jk=function(y){y.cursor.continue(void 0);return oU(y.request)}; hWN=function(y,t,a){return new Promise(function(r,E){function h(){M||(M=new id7(F.result,{closed:O}));return M} var F=t!==void 0?self.indexedDB.open(y,t):self.indexedDB.open(y);var x=a.blocked,U=a.blocking,C=a.SVE,z=a.upgrade,O=a.closed,M;F.addEventListener("upgradeneeded",function(L){try{if(L.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(F.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");L.dataLoss&&L.dataLoss!=="none"&&Uj("IDB_DATA_CORRUPTED",{reason:L.dataLossMessage||"unknown reason",dbName:zj(y)});var w=h(),d=new ul(F.transaction); z&&z(w,function(k){return L.oldVersion=k},d); d.done.catch(function(k){E(k)})}catch(k){E(k)}}); F.addEventListener("success",function(){var L=F.result;U&&L.addEventListener("versionchange",function(){U(h())}); L.addEventListener("close",function(){Uj("IDB_UNEXPECTEDLY_CLOSED",{dbName:zj(y),dbVersion:L.version});C&&C()}); r(h())}); F.addEventListener("error",function(){E(F.error)}); x&&F.addEventListener("blocked",function(){x()})})}; FhH=function(y,t,a){a=a===void 0?{}:a;return hWN(y,t,a)}; Bx=function(y,t){t=t===void 0?{}:t;var a,r,E,h;return g.m(function(F){if(F.V==1)return g.xs(F,2),a=self.indexedDB.deleteDatabase(y),r=t,(E=r.blocked)&&a.addEventListener("blocked",function(){E()}),g.u(F,qSn(a),4); if(F.V!=2)return g.$s(F,0);h=g.Uy(F);throw RU(h,y,"",-1);})}; cx=function(y,t){this.name=y;this.options=t;this.Y=!0;this.L=this.D=0}; A32=function(y,t){return new g.Oj("INCOMPATIBLE_DB_VERSION",{dbName:y.name,oldVersion:y.options.version,newVersion:t})}; g.qx=function(y,t){if(!t)throw g.Px("openWithToken",zj(y.name));return y.open()}; xC7=function(y,t){var a;return g.m(function(r){if(r.V==1)return g.u(r,g.qx(YG,t),2);a=r.K;return r.return(g.px(a,["databases"],{kE:!0,mode:"readwrite"},function(E){var h=E.objectStore("databases");return h.get(y.actualName).then(function(F){if(F?y.actualName!==F.actualName||y.publicName!==F.publicName||y.userIdentifier!==F.userIdentifier:1)return g.eZ(h,y).then(function(){})})}))})}; il=function(y,t){var a;return g.m(function(r){if(r.V==1)return y?g.u(r,g.qx(YG,t),2):r.return();a=r.K;return r.return(a.delete("databases",y))})}; sfu=function(y,t){var a,r;return g.m(function(E){return E.V==1?(a=[],g.u(E,g.qx(YG,t),2)):E.V!=3?(r=E.K,g.u(E,g.px(r,["databases"],{kE:!0,mode:"readonly"},function(h){a.length=0;return g.nx(h.objectStore("databases"),{},function(F){y(F.getValue())&&a.push(F.getValue());return g.Jk(F)})}),3)):E.return(a)})}; $C1=function(y,t){return sfu(function(a){return a.publicName===y&&a.userIdentifier!==void 0},t)}; UC7=function(){var y,t,a,r;return g.m(function(E){switch(E.V){case 1:y=Fa();if((t=y)==null?0:t.hasSucceededOnce)return E.return(!0);if(Kx&&ZY()&&!y1()||g.IU)return E.return(!1);try{if(a=self,!(a.indexedDB&&a.IDBIndex&&a.IDBKeyRange&&a.IDBObjectStore))return E.return(!1)}catch(h){return E.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return E.return(!1);g.xs(E,2);r={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.u(E,xC7(r,Tj),4);case 4:return g.u(E,il("yt-idb-test-do-not-use",Tj),5);case 5:return E.return(!0);case 2:return g.Uy(E),E.return(!1)}})}; C4n=function(){if(Gj!==void 0)return Gj;Ak=!0;return Gj=UC7().then(function(y){Ak=!1;var t;if((t=hk())!=null&&t.V){var a;t={hasSucceededOnce:((a=Fa())==null?void 0:a.hasSucceededOnce)||y};var r;(r=hk())==null||r.set("LAST_RESULT_ENTRY_KEY",t,2592E3,!0)}return y})}; ZA=function(){return g.jc("ytglobal.idbToken_")||void 0}; g.y8=function(){var y=ZA();return y?Promise.resolve(y):C4n().then(function(t){(t=t?Tj:void 0)&&g.Wd("ytglobal.idbToken_",t);return t})}; zWz=function(y){if(!g.I_())throw y=new g.Oj("AUTH_INVALID",{dbName:y}),$G(y),y;var t=g.Ko();return{actualName:y+":"+t,publicName:y,userIdentifier:t}}; O57=function(y,t,a,r){var E,h,F,x,U,C;return g.m(function(z){switch(z.V){case 1:return h=(E=Error().stack)!=null?E:"",g.u(z,g.y8(),2);case 2:F=z.K;if(!F)throw x=g.Px("openDbImpl",y,t),g.WE("ytidb_async_stack_killswitch")||(x.stack=x.stack+"\n"+h.substring(h.indexOf("\n")+1)),$G(x),x;Cx(y);U=a?{actualName:y,publicName:y,userIdentifier:void 0}:zWz(y);g.xs(z,3);return g.u(z,xC7(U,F),5);case 5:return g.u(z,FhH(U.actualName,t,r),6);case 6:return z.return(z.K);case 3:return C=g.Uy(z),g.xs(z,7),g.u(z,il(U.actualName, F),9);case 9:g.$s(z,8);break;case 7:g.Uy(z);case 8:throw C;}})}; Lh7=function(y,t,a){a=a===void 0?{}:a;return O57(y,t,!1,a)}; M0z=function(y,t,a){a=a===void 0?{}:a;return O57(y,t,!0,a)}; wSy=function(y,t){t=t===void 0?{}:t;var a,r;return g.m(function(E){if(E.V==1)return g.u(E,g.y8(),2);if(E.V!=3){a=E.K;if(!a)return E.return();Cx(y);r=zWz(y);return g.u(E,Bx(r.actualName,t),3)}return g.u(E,il(r.actualName,a),0)})}; RWx=function(y,t,a){y=y.map(function(r){return g.m(function(E){return E.V==1?g.u(E,Bx(r.actualName,t),2):g.u(E,il(r.actualName,a),0)})}); return Promise.all(y).then(function(){})}; P47=function(y){var t=t===void 0?{}:t;var a,r;return g.m(function(E){if(E.V==1)return g.u(E,g.y8(),2);if(E.V!=3){a=E.K;if(!a)return E.return();Cx(y);return g.u(E,$C1(y,a),3)}r=E.K;return g.u(E,RWx(r,t,a),0)})}; Nlb=function(y,t){t=t===void 0?{}:t;var a;return g.m(function(r){if(r.V==1)return g.u(r,g.y8(),2);if(r.V!=3){a=r.K;if(!a)return r.return();Cx(y);return g.u(r,Bx(y,t),3)}return g.u(r,il(y,a),0)})}; tR=function(y,t){cx.call(this,y,t);this.options=t;Cx(y)}; dCV=function(y,t){var a;return function(){a||(a=new tR(y,t));return a}}; g.a6=function(y,t){return dCV(y,t)}; rc=function(y){return g.qx(XSb(),y)}; ke7=function(y,t,a,r){var E,h,F;return g.m(function(x){switch(x.V){case 1:return E={config:y,hashData:t,timestamp:r!==void 0?r:(0,g.Wx)()},g.u(x,rc(a),2);case 2:return h=x.K,g.u(x,h.clear("hotConfigStore"),3);case 3:return g.u(x,g.ll(h,"hotConfigStore",E),4);case 4:return F=x.K,x.return(F)}})}; fw2=function(y,t,a,r,E){var h,F,x;return g.m(function(U){switch(U.V){case 1:return h={config:y,hashData:t,configData:a,timestamp:E!==void 0?E:(0,g.Wx)()},g.u(U,rc(r),2);case 2:return F=U.K,g.u(U,F.clear("coldConfigStore"),3);case 3:return g.u(U,g.ll(F,"coldConfigStore",h),4);case 4:return x=U.K,U.return(x)}})}; WhF=function(y){var t,a;return g.m(function(r){return r.V==1?g.u(r,rc(y),2):r.V!=3?(t=r.K,a=void 0,g.u(r,g.px(t,["coldConfigStore"],{mode:"readwrite",kE:!0},function(E){return g.Hx(E.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(h){a=h.getValue()})}),3)):r.return(a)})}; jfn=function(y){var t,a;return g.m(function(r){return r.V==1?g.u(r,rc(y),2):r.V!=3?(t=r.K,a=void 0,g.u(r,g.px(t,["hotConfigStore"],{mode:"readwrite",kE:!0},function(E){return g.Hx(E.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(h){a=h.getValue()})}),3)):r.return(a)})}; STx=function(){return g.m(function(y){return g.u(y,P47("ytGcfConfig"),0)})}; EH=function(){g.H.call(this);this.K=[];this.V=[];var y=g.jc("yt.gcf.config.hotUpdateCallbacks");y?(this.K=[].concat(g.i7(y)),this.V=y):(this.V=[],g.Wd("yt.gcf.config.hotUpdateCallbacks",this.V))}; $X=function(){var y=this;this.L=!1;this.Y=this.D=0;this.J=new EH;this.Wb={Zzr:function(){y.L=!0}, Xpf:function(){return y.V}, IcF:function(t){hR(y,t)}, UB:function(t){y.UB(t)}, O45:function(t){Fw(y,t)}, gZ:function(){return y.coldHashData}, LU:function(){return y.hotHashData}, ct4:function(){return y.K}, jX5:function(){return AR()}, h4v:function(){return xX()}, OzF:function(){return g.jc("yt.gcf.config.coldHashData")}, Atu:function(){return g.jc("yt.gcf.config.hotHashData")}, ac5:function(){Qfz(y)}, TGf:function(){y.UB(void 0);sH(y);delete $X.instance}, H41:function(t){y.Y=t}, SBG:function(){return y.Y}}}; vn7=function(){if(!$X.instance){var y=new $X;$X.instance=y}return $X.instance}; lwF=function(y){var t;g.m(function(a){if(a.V==1)return g.WE("start_client_gcf")||g.WE("delete_gcf_config_db")?g.WE("start_client_gcf")?g.u(a,g.y8(),3):a.xG(2):a.return();a.V!=2&&((t=a.K)&&g.I_()&&!g.WE("delete_gcf_config_db")?(y.L=!0,Qfz(y)):(pSd(y),eWn(y)));return g.WE("delete_gcf_config_db")?g.u(a,STx(),0):a.xG(0)})}; UH=function(){var y;return(y=xX())!=null?y:g.yd("RAW_HOT_CONFIG_GROUP")}; usd=function(y){var t,a,r,E,h,F;return g.m(function(x){switch(x.V){case 1:if(y.K)return x.return(xX());if(!y.L)return t=g.Px("getHotConfig IDB not initialized"),hm(t),x.return(Promise.reject(t));a=ZA();r=g.yd("TIME_CREATED_MS");if(!a){E=g.Px("getHotConfig token error");hm(E);x.xG(2);break}return g.u(x,jfn(a),3);case 3:if((h=x.K)&&h.timestamp>r)return hR(y,h.config),y.UB(h.hashData),x.return(xX());case 2:eWn(y);if(!(a&&y.K&&y.hotHashData)){x.xG(4);break}return g.u(x,ke7(y.K,y.hotHashData,a,r),4);case 4:return y.K? x.return(xX()):(F=new g.RV("Config not available in ytConfig"),hm(F),x.return(Promise.reject(F)))}})}; nnz=function(y){var t,a,r,E,h,F;return g.m(function(x){switch(x.V){case 1:if(y.V)return x.return(AR());if(!y.L)return t=g.Px("getColdConfig IDB not initialized"),hm(t),x.return(Promise.reject(t));a=ZA();r=g.yd("TIME_CREATED_MS");if(!a){E=g.Px("getColdConfig");hm(E);x.xG(2);break}return g.u(x,WhF(a),3);case 3:if((h=x.K)&&h.timestamp>r)return Fw(y,h.config),V0y(y,h.configData),sH(y,h.hashData),x.return(AR());case 2:pSd(y);if(!(a&&y.V&&y.coldHashData&&y.configData)){x.xG(4);break}return g.u(x,fw2(y.V, y.coldHashData,y.configData,a,r),4);case 4:return y.V?x.return(AR()):(F=new g.RV("Config not available in ytConfig"),hm(F),x.return(Promise.reject(F)))}})}; Qfz=function(y){if(!y.K||!y.V){if(!ZA()){var t=g.Px("scheduleGetConfigs");hm(t)}y.D||(y.D=g.qC.f$(function(){return g.m(function(a){switch(a.V){case 1:return g.xs(a,2),g.u(a,usd(y),4);case 4:g.$s(a,3);break;case 2:g.Uy(a);case 3:return g.xs(a,5),g.u(a,nnz(y),7);case 7:g.$s(a,6);break;case 5:g.Uy(a);case 6:y.D&&(y.D=0),g.FU(a)}})},100))}}; mCH=function(y,t,a){var r,E,h;return g.m(function(F){switch(F.V){case 1:if(!g.WE("start_client_gcf")){F.xG(0);break}a&&hR(y,a);y.UB(t);r=ZA();if(!r){F.xG(3);break}if(a){F.xG(4);break}return g.u(F,jfn(r),5);case 5:E=F.K,a=(h=E)==null?void 0:h.config;case 4:return g.u(F,ke7(a,t,r),3);case 3:if(a)for(var x=a,U=g.p(y.J.V),C=U.next();!C.done;C=U.next())C=C.value,C(x);g.FU(F)}})}; J31=function(y,t,a){var r,E,h,F;return g.m(function(x){if(x.V==1){if(!g.WE("start_client_gcf"))return x.xG(0);sH(y,t);return(r=ZA())?a?x.xG(4):g.u(x,WhF(r),5):x.xG(0)}x.V!=4&&(E=x.K,a=(h=E)==null?void 0:h.config);if(!a)return x.xG(0);F=a.configData;return g.u(x,fw2(a,t,F,r),0)})}; onx=function(){var y=vn7(),t=(0,g.Wx)()-y.Y;if(!(y.Y!==0&&t0&&(t.request={internalExperimentFlags:a});b57(y,void 0,t);Blz(void 0,t);c3b(void 0,t);qTd(y,void 0,t);YTy(void 0,t);g.WE("start_client_gcf")&&DCb(void 0,t);g.yd("DELEGATED_SESSION_ID")&& !g.WE("pageid_as_header_web")&&(t.user={onBehalfOfUser:g.yd("DELEGATED_SESSION_ID")});!g.WE("fill_delegate_context_in_gel_killswitch")&&(y=g.yd("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(t.user=Object.assign({},t.user,{serializedDelegationContext:y}));y=g.yd("INNERTUBE_CONTEXT");var r;if(g.WE("enable_persistent_device_token")&&(y==null?0:(r=y.client)==null?0:r.rolloutToken)){var E;t.client.rolloutToken=y==null?void 0:(E=y.client)==null?void 0:E.rolloutToken}r=Object;E=r.assign;y=t.client; a={};for(var h=g.p(Object.entries(f7(g.yd("DEVICE","")))),F=h.next();!F.done;F=h.next()){var x=g.p(F.value);F=x.next().value;x=x.next().value;F==="cbrand"?a.deviceMake=x:F==="cmodel"?a.deviceModel=x:F==="cbr"?a.browserName=x:F==="cbrver"?a.browserVersion=x:F==="cos"?a.osName=x:F==="cosver"?a.osVersion=x:F==="cplatform"&&(a.platform=x)}t.client=E.call(r,y,a);return t}; b57=function(y,t,a){y=y.hP;if(y==="WEB"||y==="MWEB"||y===1||y===2)if(t){a=B0(t,VI,96)||new VI;var r=bm();r=Object.keys(gnF).indexOf(r);r=r===-1?null:r;r!==null&&re(a,3,r);Yc(t,VI,96,a)}else a&&(a.client.mainAppWebInfo=(r=a.client.mainAppWebInfo)!=null?r:{},a.client.mainAppWebInfo.webDisplayMode=bm())}; Blz=function(y,t){var a=g.jc("yt.embedded_player.embed_url");a&&(y?(t=B0(y,Hr,7)||new Hr,t_(t,4,a),Yc(y,Hr,7,t)):t&&(t.thirdParty={embedUrl:a}))}; c3b=function(y,t){var a;if(g.WE("web_log_memory_total_kbytes")&&((a=g.ks.navigator)==null?0:a.deviceMemory)){var r;a=(r=g.ks.navigator)==null?void 0:r.deviceMemory;y?P0(y,95,BA(a*1E6)):t&&(t.client.memoryTotalKbytes=""+a*1E6)}}; qTd=function(y,t,a){if(y.appInstallData)if(t){var r;a=(r=B0(t,ut,62))!=null?r:new ut;t_(a,6,y.appInstallData);Yc(t,ut,62,a)}else a&&(a.client.configInfo=a.client.configInfo||{},a.client.configInfo.appInstallData=y.appInstallData)}; YTy=function(y,t){var a=pgV();a&&(y?re(y,61,i5b[a]):t&&(t.client.connectionType=a));g.WE("web_log_effective_connection_type")&&(a=ltN())&&(y?re(y,94,Khu[a]):t&&(t.client.effectiveConnectionType=a))}; Iw7=function(y,t,a){a=a===void 0?{}:a;var r={};g.yd("EOM_VISITOR_DATA")?r={"X-Goog-EOM-Visitor-Id":g.yd("EOM_VISITOR_DATA")}:r={"X-Goog-Visitor-Id":a.visitorData||g.yd("VISITOR_DATA","")};if(t&&t.includes("www.youtube-nocookie.com"))return r;t=a.qc||g.yd("AUTHORIZATION");t||(y?t="Bearer "+g.jc("gapi.auth.getToken")().access_token:(y=ftF().I1(OH),g.WE("pageid_as_header_web")||delete y["X-Goog-PageId"],r=Object.assign({},r,y)));t&&(r.Authorization=t);return r}; DCb=function(y,t){var a=onx();if(a){var r=a.coldConfigData,E=a.coldHashData;a=a.hotHashData;if(y){var h;t=(h=B0(y,ut,62))!=null?h:new ut;r=t_(t,1,r);t_(r,3,E).UB(a);Yc(y,ut,62,t)}else t&&(t.client.configInfo=t.client.configInfo||{},r&&(t.client.configInfo.coldConfigData=r),E&&(t.client.configInfo.coldHashData=E),a&&(t.client.configInfo.hotHashData=a))}}; L4=function(y,t){this.version=y;this.args=t}; MG=function(y,t){this.topic=y;this.V=t}; R6=function(y,t){var a=wc();a&&a.publish.call(a,y.toString(),y,t)}; Z5V=function(y){var t=Tl1,a=wc();if(!a)return 0;var r=a.subscribe(t.toString(),function(E,h){var F=g.jc("ytPubsub2Pubsub2SkipSubKey");F&&F==r||(F=function(){if(P5[r])try{if(h&&t instanceof MG&&t!=E)try{var x=t.V,U=h;if(!U.args||!U.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!x.Bd){var C=new x;x.Bd=C.version}var z=x.Bd}catch(O){}if(!z||U.version!=z)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(x, g.hB(U.args))}catch(O){throw O.message="yt.pubsub2.Data.deserialize(): "+O.message,O;}}catch(O){throw O.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+t.toString()+": "+O.message,O;}y.call(window,h)}catch(O){g.rs(O)}},Geu[t.toString()]?g.aU()?g.qC.f$(F):g.Nt(F,0):F())}); P5[r]=!0;NG[t.toString()]||(NG[t.toString()]=[]);NG[t.toString()].push(r);return r}; a$H=function(){var y=yl1,t=Z5V(function(a){y.apply(void 0,arguments);t47(t)}); return t}; t47=function(y){var t=wc();t&&(typeof y==="number"&&(y=[y]),g.wK(y,function(a){t.unsubscribeByKey(a);delete P5[a]}))}; wc=function(){return g.jc("ytPubsub2Pubsub2Instance")}; dc=function(y,t,a){a=a===void 0?{sampleRate:.1}:a;Math.random()xRd||F=URF&&(eO++,SO=!1);Cwy(t);r.headers||(r.headers={});r.headers["Content-Encoding"]="gzip";r.postBody=y;r.postParams=void 0;E(a,r)}; OeH=function(y){var t=t===void 0?!1:t;var a=a===void 0?!1:a;var r=(0,g.Wx)(),E={startTime:r,ticks:{},infos:{}},h=t?g.jc("yt.logging.gzipForFetch",!1):!0;if(SO&&h){if(!y.body)return y;try{var F=a?y.body:typeof y.body==="string"?y.body:JSON.stringify(y.body);h=F;if(!a&&typeof F==="string"){var x=AlF(F);if(x!=null&&(x>xRd||x=URF)if(eO++,g.WE("abandon_compression_after_N_slow_zips_lr")){t=eO/p4;var C=zIH/g.jm("compression_disable_point");p4>0&&p4%g.jm("compression_disable_point")===0&&t>=C&&(SO=!1)}else SO=!1;Cwy(E)}}y.headers=Object.assign({},{"Content-Encoding":"gzip"},y.headers||{});y.body=h;return y}catch(z){return hm(z),y}}else return y}; AlF=function(y){try{return(new Blob(y.split(""))).size}catch(t){return hm(t),null}}; Cwy=function(y){g.WE("gel_compression_csi_killswitch")||!g.WE("log_gel_compression_latency")&&!g.WE("log_gel_compression_latency_lr")||dc("gel_compression",y,{sampleRate:.1})}; up=function(y){var t=this;this.xo=this.V=!1;this.potentialEsfErrorCounter=this.K=0;this.handleError=function(){}; this.Vh=function(){}; this.now=Date.now;this.lB=!1;this.Wb={AMe:function(z){t.rH=z}, yMX:function(){t.jA()}, pg:function(){t.DD()}, W2:function(z){return g.m(function(O){return g.u(O,t.W2(z),0)})}, tZ:function(z,O){return t.tZ(z,O)}, wr:function(){t.wr()}}; var a;this.Du=(a=y.Du)!=null?a:100;var r;this.Fb=(r=y.Fb)!=null?r:1;var E;this.sO=(E=y.sO)!=null?E:2592E6;var h;this.hU=(h=y.hU)!=null?h:12E4;var F;this.vQ=(F=y.vQ)!=null?F:5E3;var x;this.rH=(x=y.rH)!=null?x:void 0;this.IH=!!y.IH;var U;this.tX=(U=y.tX)!=null?U:.1;var C;this.cJ=(C=y.cJ)!=null?C:10;y.handleError&&(this.handleError=y.handleError);y.Vh&&(this.Vh=y.Vh);y.lB&&(this.lB=y.lB);y.xo&&(this.xo=y.xo);this.Nr=y.Nr;this.yB=y.yB;this.aS=y.aS;this.Pl=y.Pl;this.sendFn=y.sendFn;this.VV=y.VV;this.eZ= y.eZ;lp(this)&&(!this.Nr||this.Nr("networkless_logging"))&<N(this)}; LTN=function(y){lp(y)&&!y.lB&&(y.V=!0,y.IH&&Math.random()<=y.tX&&y.aS.RT(y.rH),y.wr(),y.Pl.z5()&&y.jA(),y.Pl.listen(y.VV,y.jA.bind(y)),y.Pl.listen(y.eZ,y.DD.bind(y)))}; RI7=function(y,t){if(!lp(y))throw Error("IndexedDB is not supported: updateRequestHandlers");var a=t.options.onError?t.options.onError:function(){}; t.options.onError=function(E,h){var F,x,U,C;return g.m(function(z){switch(z.V){case 1:F=M4d(h);(x=wHV(h))&&y.Nr&&y.Nr("web_enable_error_204")&&y.handleError(Error("Request failed due to compression"),t.url,h);if(!(y.Nr&&y.Nr("nwl_consider_error_code")&&F||y.Nr&&!y.Nr("nwl_consider_error_code")&&y.potentialEsfErrorCounter<=y.cJ)){z.xG(2);break}if(!y.Pl.WJ){z.xG(3);break}return g.u(z,y.Pl.WJ(),3);case 3:if(y.Pl.z5()){z.xG(2);break}a(E,h);if(!y.Nr||!y.Nr("nwl_consider_error_code")||((U=t)==null?void 0: U.id)===void 0){z.xG(6);break}return g.u(z,y.aS.eD(t.id,y.rH,!1),6);case 6:return z.return();case 2:if(y.Nr&&y.Nr("nwl_consider_error_code")&&!F&&y.potentialEsfErrorCounter>y.cJ)return z.return();y.potentialEsfErrorCounter++;if(((C=t)==null?void 0:C.id)===void 0){z.xG(8);break}return t.sendCount=400&&y<=599?!1:!0}; wHV=function(y){var t;y=y==null?void 0:(t=y.error)==null?void 0:t.code;return!(y!==400&&y!==415)}; Pw7=function(){if(n4)return n4();var y={};n4=g.a6("LogsDatabaseV2",{AT:(y.LogsRequestsStore={G1:2},y),shared:!1,upgrade:function(t,a,r){a(2)&&g.Qw(t,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});a(3);a(5)&&(r=r.objectStore("LogsRequestsStore"),r.V.indexNames.contains("newRequest")&&r.V.deleteIndex("newRequest"),g.Vw(r,"newRequestV2",["status","interface","timestamp"]));a(7)&&vx(t,"sapisid");a(9)&&vx(t,"SWHealthLog")}, version:9});return n4()}; mH=function(y){return g.qx(Pw7(),y)}; dR2=function(y,t){var a,r,E,h;return g.m(function(F){if(F.V==1)return a={startTime:(0,g.Wx)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.u(F,mH(t),2);if(F.V!=3)return r=F.K,E=Object.assign({},y,{options:JSON.parse(JSON.stringify(y.options)),interface:g.yd("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.u(F,g.ll(r,"LogsRequestsStore",E),3);h=F.K;a.ticks.tc=(0,g.Wx)();NFy(a);return F.return(h)})}; XHn=function(y,t){var a,r,E,h,F,x,U,C,z;return g.m(function(O){if(O.V==1)return a={startTime:(0,g.Wx)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.u(O,mH(t),2);if(O.V!=3)return r=O.K,E=g.yd("INNERTUBE_CONTEXT_CLIENT_NAME",0),h=[y,E,0],F=[y,E,(0,g.Wx)()],x=IDBKeyRange.bound(h,F),U="prev",g.WE("use_fifo_for_networkless")&&(U="next"),C=void 0,z=y==="NEW"?"readwrite":"readonly",g.WE("use_readonly_for_get_most_recent_by_status_killswitch")&&(z="readwrite"),g.u(O,g.px(r,["LogsRequestsStore"], {mode:z,kE:!0},function(M){return g.Hx(M.objectStore("LogsRequestsStore").index("newRequestV2"),{query:x,direction:U},function(L){L.getValue()&&(C=L.getValue(),y==="NEW"&&(C.status="QUEUED",L.update(C)))})}),3); a.ticks.tc=(0,g.Wx)();NFy(a);return O.return(C)})}; k4u=function(y,t){var a;return g.m(function(r){if(r.V==1)return g.u(r,mH(t),2);a=r.K;return r.return(g.px(a,["LogsRequestsStore"],{mode:"readwrite",kE:!0},function(E){var h=E.objectStore("LogsRequestsStore");return h.get(y).then(function(F){if(F)return F.status="QUEUED",g.eZ(h,F).then(function(){return F})})}))})}; f$x=function(y,t,a,r){a=a===void 0?!0:a;var E;return g.m(function(h){if(h.V==1)return g.u(h,mH(t),2);E=h.K;return h.return(g.px(E,["LogsRequestsStore"],{mode:"readwrite",kE:!0},function(F){var x=F.objectStore("LogsRequestsStore");return x.get(y).then(function(U){return U?(U.status="NEW",a&&(U.sendCount+=1),r!==void 0&&(U.options.compress=r),g.eZ(x,U).then(function(){return U})):g.dR.resolve(void 0)})}))})}; WTb=function(y,t){var a;return g.m(function(r){if(r.V==1)return g.u(r,mH(t),2);a=r.K;return r.return(a.delete("LogsRequestsStore",y))})}; jYz=function(y){var t,a;return g.m(function(r){if(r.V==1)return g.u(r,mH(y),2);t=r.K;a=(0,g.Wx)()-2592E6;return g.u(r,g.px(t,["LogsRequestsStore"],{mode:"readwrite",kE:!0},function(E){return g.nx(E.objectStore("LogsRequestsStore"),{},function(h){if(h.getValue().timestamp<=a)return h.delete().then(function(){return g.Jk(h)})})}),0)})}; Sz7=function(){g.m(function(y){return g.u(y,P47("LogsDatabaseV2"),0)})}; NFy=function(y){g.WE("nwl_csi_killswitch")||dc("networkless_performance",y,{sampleRate:1})}; vMd=function(y){return g.qx(QY7(),y)}; pHx=function(y){var t,a;g.m(function(r){if(r.V==1)return g.u(r,vMd(y),2);t=r.K;a=(0,g.Wx)()-2592E6;return g.u(r,g.px(t,["SWHealthLog"],{mode:"readwrite",kE:!0},function(E){return g.nx(E.objectStore("SWHealthLog"),{},function(h){if(h.getValue().timestamp<=a)return h.delete().then(function(){return g.Jk(h)})})}),0)})}; eI7=function(y){var t;return g.m(function(a){if(a.V==1)return g.u(a,vMd(y),2);t=a.K;return g.u(a,t.clear("SWHealthLog"),0)})}; g.JR=function(y,t,a,r,E,h,F){E=E===void 0?"":E;h=h===void 0?!1:h;F=F===void 0?!1:F;if(y)if(a&&!g.IB())hm(new g.RV("Legacy referrer-scrubbed ping detected")),y&&l$y(y,void 0,{scrubReferrer:!0});else if(E)vE(y,t,"POST",E,r);else if(g.yd("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||r||F)vE(y,t,"GET","",r,void 0,h,F);else{b:{try{c:{var x=new gc7({url:y});if(x.V.dsh==="1")var U=null;else{var C=x.V.ae;if(C==="1"){var z=x.V.adurl;if(z)try{U={version:3,Q0:decodeURIComponent(z),kB:ri(x.K,"act=1","ri=1",inn(x))}; break c}catch(L){}}U=C==="2"?{version:4,Q0:ri(x.K,"dct=1","suid="+x.Y,"ri=1"),kB:ri(x.K,"act=1","ri=1","suid="+x.Y)}:null}}if(U){var O=j8(y);var M=!(!O||!O.endsWith("/aclk")||m0(y,"ri")!=="1");break b}}catch(L){}M=!1}M?uVx(y)?(t&&t(),a=!0):a=!1:a=!1;a||l$y(y,t)}}; uVx=function(y,t){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(y,t===void 0?"":t))return!0}catch(a){}return!1}; l$y=function(y,t,a){a=a===void 0?{}:a;var r=new Image,E=""+V4H++;o6[E]=r;r.onload=r.onerror=function(){t&&o6[E]&&t();delete o6[E]}; a.scrubReferrer&&(r.referrerPolicy="no-referrer");r.src=y}; var My7=function(y,t,a,r,E,h){return wx[A[3]](this,39,y,t,a,r,E,h)}; nMn=function(y){var t;return((t=document.featurePolicy)==null?0:t.allowedFeatures().includes("attribution-reporting"))?y+"&nis=6":y+"&nis=5"}; bp=function(){H5||(H5=new Ej("yt.offline"));return H5}; mRx=function(y){if(g.WE("offline_error_handling")){var t=bp().get("errors",!0)||{};t[y.message]={name:y.name,stack:y.stack};y.level&&(t[y.message].level=y.level);bp().set("errors",t,2592E3,!0)}}; B5=function(){this.V=new Map;this.K=!1}; c5=function(){if(!B5.instance){var y=g.jc("yt.networkRequestMonitor.instance")||new B5;g.Wd("yt.networkRequestMonitor.instance",y);B5.instance=y}return B5.instance}; qG=function(){g.MM.call(this);var y=this;this.K=!1;this.V=y2N();this.V.listen("networkstatus-online",function(){if(y.K&&g.WE("offline_error_handling")){var t=bp().get("errors",!0);if(t){for(var a in t)if(t[a]){var r=new g.RV(a,"sent via offline_errors");r.name=t[a].name;r.stack=t[a].stack;r.level=t[a].level;g.rs(r)}bp().set("errors",{},2592E3,!0)}}})}; JlV=function(){if(!qG.instance){var y=g.jc("yt.networkStatusManager.instance")||new qG;g.Wd("yt.networkStatusManager.instance",y);qG.instance=y}return qG.instance}; g.YX=function(y){y=y===void 0?{}:y;g.MM.call(this);var t=this;this.V=this.D=0;this.K=JlV();var a=g.jc("yt.networkStatusManager.instance.listen").bind(this.K);a&&(y.rateLimit?(this.rateLimit=y.rateLimit,a("networkstatus-online",function(){oMb(t,"publicytnetworkstatus-online")}),a("networkstatus-offline",function(){oMb(t,"publicytnetworkstatus-offline")})):(a("networkstatus-online",function(){t.dispatchEvent("publicytnetworkstatus-online")}),a("networkstatus-offline",function(){t.dispatchEvent("publicytnetworkstatus-offline")})))}; oMb=function(y,t){y.rateLimit?y.V?(g.qC.Vb(y.D),y.D=g.qC.f$(function(){y.Y!==t&&(y.dispatchEvent(t),y.Y=t,y.V=(0,g.Wx)())},y.rateLimit-((0,g.Wx)()-y.V))):(y.dispatchEvent(t),y.Y=t,y.V=(0,g.Wx)()):y.dispatchEvent(t)}; ip=function(){var y=up.call;Dd||(Dd=new g.YX({seE:!0,cTG:!0}));y.call(up,this,{aS:{RT:jYz,U5:WTb,Ur:XHn,dK7:k4u,eD:f$x,set:dR2},Pl:Dd,handleError:function(t,a,r){var E,h=r==null?void 0:(E=r.error)==null?void 0:E.code;if(h===400||h===415){var F;t=new g.RV(t.message,a,r==null?void 0:(F=r.error)==null?void 0:F.code);hm(t,void 0,void 0,void 0,!0)}else g.rs(t)}, Vh:hm,sendFn:Hey,now:g.Wx,Qk:mRx,yB:g.tk(),VV:"publicytnetworkstatus-online",eZ:"publicytnetworkstatus-offline",IH:!0,tX:.1,cJ:g.jm("potential_esf_error_limit",10),Nr:g.WE,lB:!(g.I_()&&g.Wv(document.location.toString())!=="www.youtube-nocookie.com")});this.Y=new g.US;g.WE("networkless_immediately_drop_all_requests")&&Sz7();Nlb("LogsDatabaseV2")}; K4=function(){var y=g.jc("yt.networklessRequestController.instance");y||(y=new ip,g.Wd("yt.networklessRequestController.instance",y),g.WE("networkless_logging")&&g.y8().then(function(t){y.rH=t;LTN(y);y.Y.resolve();y.IH&&Math.random()<=y.tX&&y.rH&&pHx(y.rH);g.WE("networkless_immediately_drop_sw_health_store")&&bex(y)})); return y}; bex=function(y){var t;g.m(function(a){if(!y.rH)throw t=g.Px("clearSWHealthLogsDb"),t;return a.return(eI7(y.rH).catch(function(r){y.handleError(r)}))})}; Hey=function(y,t,a,r){r=r===void 0?!1:r;t=g.WE("web_fp_via_jspb")?Object.assign({},t):t;g.WE("use_cfr_monitor")&&BF7(y,t);if(g.WE("use_request_time_ms_header"))t.headers&&Ct(y)&&(t.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Wx)())));else{var E;if((E=t.postParams)==null?0:E.requestTimeMs)t.postParams.requestTimeMs=Math.round((0,g.Wx)())}a&&Object.keys(t).length===0?g.JR(y):t.compress?t.postBody?(typeof t.postBody!=="string"&&(t.postBody=JSON.stringify(t.postBody)),v5(y,t.postBody, t,g.pt,r)):v5(y,JSON.stringify(t.postParams),t,em,r):g.pt(y,t)}; I6=function(y,t){g.WE("use_event_time_ms_header")&&Ct(y)&&(t.headers||(t.headers={}),t.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Wx)())));return t}; BF7=function(y,t){var a=t.onError?t.onError:function(){}; t.onError=function(E,h){c5().requestComplete(y,!1);a(E,h)}; var r=t.onSuccess?t.onSuccess:function(){}; t.onSuccess=function(E,h){c5().requestComplete(y,!0);r(E,h)}}; g.T1=function(y){this.config_=null;y?this.config_=y:H57()&&(this.config_=g.C4())}; g.G1=function(y,t,a,r){function E(C){try{if((C===void 0?0:C)&&r.retry&&!r.networklessOptions.bypassNetworkless)h.method="POST",r.networklessOptions.writeThenSend?K4().writeThenSend(U,h):K4().sendAndWrite(U,h);else if(r.compress){var z=!r.networklessOptions.writeThenSend;if(h.postBody){var O=h.postBody;typeof O!=="string"&&(O=JSON.stringify(h.postBody));v5(U,O,h,g.pt,z)}else v5(U,JSON.stringify(h.postParams),h,em,z)}else em(U,h)}catch(M){if(M.name==="InvalidAccessError")hm(Error("An extension is blocking network request.")); else throw M;}} !g.yd("VISITOR_DATA")&&t!=="visitor_id"&&Math.random()<.01&&hm(new g.RV("Missing VISITOR_DATA when sending innertube request.",t,a,r));if(!y.isReady())throw y=new g.RV("innertube xhrclient not ready",t,a,r),g.rs(y),y;var h={headers:r.headers||{},method:"POST",postParams:a,postBody:r.postBody,postBodyFormat:r.postBodyFormat||"JSON",onTimeout:function(){r.onTimeout()}, onFetchTimeout:r.onTimeout,onSuccess:function(C,z){if(r.onSuccess)r.onSuccess(z)}, onFetchSuccess:function(C){if(r.onSuccess)r.onSuccess(C)}, onProgress:function(C){if(r.onProgress)r.onProgress(C)}, onError:function(C,z){if(r.onError)r.onError(z)}, onFetchError:function(C){if(r.onError)r.onError(C)}, timeout:r.timeout,withCredentials:!0,compress:r.compress};h.headers["Content-Type"]||(h.headers["Content-Type"]="application/json");a="";var F=y.config_.UD;F&&(a=F);F=y.config_.LR||!1;var x=Iw7(F,a,r);Object.assign(h.headers,x);h.headers.Authorization&&!a&&F&&(h.headers["x-origin"]=window.location.origin);var U=$z(""+a+("/youtubei/"+y.config_.innertubeApiVersion+"/"+t),{alt:"json"});g.jc("ytNetworklessLoggingInitializationOptions")&&cl2.isNwlInitialized?C4n().then(function(C){E(C)}):E(!1)}; g.ru=function(y,t,a){var r=g.Zd();if(r&&t){var E=r.subscribe(y,function(){function h(){yq[E]&&t.apply&&typeof t.apply=="function"&&t.apply(a||window,F)} var F=arguments;try{g.tV[y]?h():g.Nt(h,0)}catch(x){g.rs(x)}},a); yq[E]=!0;a8[y]||(a8[y]=[]);a8[y].push(E);return E}return 0}; qzb=function(y){var t=g.ru("LOGGED_IN",function(a){y.apply(void 0,arguments);g.ER(t)})}; g.ER=function(y){var t=g.Zd();t&&(typeof y==="number"?y=[y]:typeof y==="string"&&(y=[parseInt(y,10)]),g.wK(y,function(a){t.unsubscribeByKey(a);delete yq[a]}))}; g.hV=function(y,t){var a=g.Zd();return a?a.publish.apply(a,arguments):!1}; DRF=function(y){var t=g.Zd();if(t)if(t.clear(y),y)YzH(y);else for(var a in a8)YzH(a)}; g.Zd=function(){return g.ks.ytPubsubPubsubInstance}; YzH=function(y){a8[y]&&(y=a8[y],g.wK(y,function(t){yq[t]&&delete yq[t]}),y.length=0)}; g.F3=function(y,t,a){gM7(y,t,a===void 0?null:a)}; gM7=function(y,t,a){a=a===void 0?null:a;var r=ieH(typeof y==="string"?y:y.toString()),E=document.getElementById(r),h=E&&sd1(E),F=E&&!h;h?t&&t():(t&&(h=g.ru(r,t),t=""+g.nI(t),KTH[t]=h),F||(E=I$n(y,r,function(){sd1(E)||(xi7(E),g.hV(r),g.Nt(function(){DRF(r)},0))},a)))}; I$n=function(y,t,a,r){r=r===void 0?null:r;var E=g.SU("SCRIPT");E.id=t;E.onload=function(){a&&setTimeout(a,0)}; E.onreadystatechange=function(){switch(E.readyState){case "loaded":case "complete":E.onload()}}; r&&E.setAttribute("nonce",r);g.mt(E,typeof y==="string"?g.ei(y):y);y=document.getElementsByTagName("head")[0]||document.body;y.insertBefore(E,y.firstChild);return E}; ieH=function(y){var t=document.createElement("a");g.jE(t,y);y=t.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+gI(y)}; AV=function(y,t){if(y===t)y=!0;else if(Array.isArray(y)&&Array.isArray(t))y=g.LJ(y,t,AV);else if(g.l3(y)&&g.l3(t))a:if(g.W1(y).length!=g.W1(t).length)y=!1;else{for(var a in y)if(!AV(y[a],t[a])){y=!1;break a}y=!0}else y=!1;return y}; $D=function(y){var t=g.w2.apply(1,arguments);if(!xD(y)||t.some(function(r){return!xD(r)}))throw Error("Only objects may be merged."); t=g.p(t);for(var a=t.next();!a.done;a=t.next())sR(y,a.value)}; sR=function(y,t){for(var a in t)if(xD(t[a])){if(a in y&&!xD(y[a]))throw Error("Cannot merge an object into a non-object.");a in y||(y[a]={});sR(y[a],t[a])}else if(UR(t[a])){if(a in y&&!UR(y[a]))throw Error("Cannot merge an array into a non-array.");a in y||(y[a]=[]);TFx(y[a],t[a])}else y[a]=t[a];return y}; TFx=function(y,t){t=g.p(t);for(var a=t.next();!a.done;a=t.next())a=a.value,xD(a)?y.push(sR({},a)):UR(a)?y.push(TFx([],a)):y.push(a);return y}; xD=function(y){return typeof y==="object"&&!Array.isArray(y)}; UR=function(y){return typeof y==="object"&&Array.isArray(y)}; Cs=function(y){g.H.call(this);this.K=y}; z8=function(y){Cs.call(this,!0);this.V=y}; OR=function(y,t){g.H.call(this);var a=this;this.Y=[];this.W=!1;this.K=0;this.L=this.J=this.D=!1;this.AF=null;var r=(0,g.mi)(y,t);this.V=new g.Te(function(){return r(a.AF)},300); g.c(this,this.V);this.hF=this.Z=Infinity}; G4d=function(y,t){if(!t)return!1;for(var a=0;a-1)throw Error("Deps cycle for: "+t);if(y.K.has(t))return y.K.get(t);if(!y.V.has(t)){if(r)return;throw Error("No provider for: "+t);}r=y.V.get(t);a.push(t);if(r.CY!==void 0)var E=r.CY;else if(r.CWF)E=r[WD]?rCd(y,r[WD],a):[],E=r.CWF.apply(r,g.i7(E));else if(r.Mj){E=r.Mj;var h=E[WD]?rCd(y,E[WD],a):[];E=new (Function.prototype.bind.apply(E,[null].concat(g.i7(h))))}else throw Error("Could not resolve providers for: "+t);a.pop();r.DY0||y.K.set(t,E); return E}; rCd=function(y,t,a){return t?t.map(function(r){return r instanceof kD?jg(y,r.key,a,!0):jg(y,r,a)}):[]}; Qq=function(){Sg||(Sg=new aRd);return Sg}; hsn=function(){var y=ERd;return function(){var t=Qq();if(!t.resolve(new kD(y))){var a={};fs(t,(a.Sv=y,a.Mj=y,a[WD]=void 0,a))}return t.resolve(y)}}; ps=function(){var y,t;return"h5vcc"in vD&&((y=vD.h5vcc.traceEvent)==null?0:y.traceBegin)&&((t=vD.h5vcc.traceEvent)==null?0:t.traceEnd)?1:"performance"in vD&&vD.performance.mark&&vD.performance.measure?2:0}; eg=function(y){var t=ps();switch(t){case 1:vD.h5vcc.traceEvent.traceBegin("YTLR",y);break;case 2:vD.performance.mark(y+"-start");break;case 0:break;default:SE(t,"unknown trace type")}}; FRH=function(y){var t=ps();switch(t){case 1:vD.h5vcc.traceEvent.traceEnd("YTLR",y);break;case 2:t=y+"-start";var a=y+"-end";vD.performance.mark(a);vD.performance.measure(y,t,a);break;case 0:break;default:SE(t,"unknown trace type")}}; ACy=function(y){var t,a;(a=(t=window).onerror)==null||a.call(t,y.message,"",0,0,y)}; xvy=function(y){var t=this;var a=a===void 0?0:a;var r=r===void 0?g.tk():r;this.Y=a;this.scheduler=r;this.K=new g.US;this.V=y;for(y={W7:0};y.W7=1E3?E():r>=y?aQ||(aQ=rE(function(){E();aQ=void 0},0)):h-x>=10&&(WR7(t,a.tier),F.D=h)}; NNn=function(y,t){if(y.endpoint==="log_event"){g.WE("more_accurate_gel_parser")&&gu().storePayload({isJspb:!1},y.payload);Ks(y);var a=I8(y),r=new Map;r.set(a,[y.payload]);var E=wrd(y.payload)||"";t&&(yT=new t);return new g.Qn(function(h,F){yT&&yT.isReady()?jTd(r,yT,h,F,{bypassNetworkless:!0},!0,G8(E)):h()})}}; kLV=function(y,t,a){if(t.endpoint==="log_event"){Ks(void 0,t);var r=I8(t,!0),E=new Map;E.set(r,[FH(t.payload)]);a&&(yT=new a);return new g.Qn(function(h){yT&&yT.isReady()?S_F(E,yT,h,{bypassNetworkless:!0},!0,G8(y)):h()})}}; I8=function(y,t){var a="";if(y.dangerousLogToVisitorSession)a="visitorOnlyApprovedKey";else if(y.cttAuthInfo){if(t===void 0?0:t){t=y.cttAuthInfo.token;a=y.cttAuthInfo;var r=new IT;a.videoId?r.setVideoId(a.videoId):a.playlistId&&mm(r,2,Es,gp(a.playlistId));h4[t]=r}else t=y.cttAuthInfo,a={},t.videoId?a.videoId=t.videoId:t.playlistId&&(a.playlistId=t.playlistId),FE[y.cttAuthInfo.token]=a;a=y.cttAuthInfo.token}return a}; Zb=function(y,t,a){y=y===void 0?{}:y;t=t===void 0?!1:t;new g.Qn(function(r,E){var h=t4(t,a),F=h.Y;h.Y=!1;A4(h.K);A4(h.V);h.V=0;yT&&yT.isReady()?a===void 0&&g.WE("enable_web_tiered_gel")?QTb(r,E,y,t,300,F):QTb(r,E,y,t,a,F):(WR7(t,a),r())})}; QTb=function(y,t,a,r,E,h){var F=yT;a=a===void 0?{}:a;r=r===void 0?!1:r;E=E===void 0?200:E;h=h===void 0?!1:h;var x=new Map,U=new Map,C={isJspb:r,cttAuthInfo:void 0,tier:E},z={isJspb:r,cttAuthInfo:void 0};if(r){t=g.p(Object.keys(T8));for(E=t.next();!E.done;E=t.next())E=E.value,U=g.WE("enable_web_tiered_gel")?gu().smartExtractMatchingEntries({keys:[C,z],sizeLimit:1E3}):gu().extractMatchingEntries({isJspb:!0,cttAuthInfo:E}),U.length>0&&x.set(E,U),(g.WE("web_fp_via_jspb_and_json")&&a.writeThenSend||!g.WE("web_fp_via_jspb_and_json"))&& delete T8[E];S_F(x,F,y,a,!1,h)}else{x=g.p(Object.keys(T8));for(C=x.next();!C.done;C=x.next())C=C.value,z=g.WE("enable_web_tiered_gel")?gu().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:C,tier:E},{isJspb:!1,cttAuthInfo:C}],sizeLimit:1E3}):gu().extractMatchingEntries({isJspb:!1,cttAuthInfo:C}),z.length>0&&U.set(C,z),(g.WE("web_fp_via_jspb_and_json")&&a.writeThenSend||!g.WE("web_fp_via_jspb_and_json"))&&delete T8[C];jTd(U,F,y,t,a,!1,h)}}; WR7=function(y,t){function a(){Zb({writeThenSend:!0},y,t)} y=y===void 0?!1:y;t=t===void 0?200:t;var r=t4(y,t),E=r===vRn||r===pry?5E3:es2;g.WE("web_gel_timeout_cap")&&!r.V&&(E=rE(function(){a()},E),r.V=E); A4(r.K);E=g.yd("LOGGING_BATCH_TIMEOUT",g.jm("web_gel_debounce_ms",1E4));g.WE("shorten_initial_gel_batch_timeout")&&xt&&(E=lRV);E=rE(function(){g.jm("gel_min_batch_size")>0?gu().getSequenceCount({cttAuthInfo:void 0,isJspb:y,tier:t})>=uxV&&a():a()},E); r.K=E}; jTd=function(y,t,a,r,E,h,F){E=E===void 0?{}:E;var x=Math.round((0,g.Wx)()),U=y.size,C=ViN(F);y=g.p(y);var z=y.next();for(F={};!z.done;F={Ao:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Ob:void 0,dl:void 0},z=y.next()){var O=g.p(z.value);z=O.next().value;O=O.next().value;F.batchRequest=g.nJ({context:g.z1(t.config_||g.C4())});if(!g.pI(O)&&!g.WE("throw_err_when_logevent_malformed_killswitch")){r();break}F.batchRequest.events=O;(O=FE[z])&&nR7(F.batchRequest,z,O);delete FE[z];F.dangerousLogToVisitorSession= z==="visitorOnlyApprovedKey";mv2(F.batchRequest,x,F.dangerousLogToVisitorSession);JCb(E);F.Ob=function(M){g.WE("start_client_gcf")&&g.qC.f$(function(){return g.m(function(L){return g.u(L,oR7(M),0)})}); U--;U||a()}; F.Ao=0;F.dl=function(M){return function(){M.Ao++;if(E.bypassNetworkless&&M.Ao===1)try{g.G1(t,C,M.batchRequest,$t({writeThenSend:!0},M.dangerousLogToVisitorSession,M.Ob,M.dl,h)),xt=!1}catch(L){g.rs(L),r()}U--;U||a()}}(F); try{g.G1(t,C,F.batchRequest,$t(E,F.dangerousLogToVisitorSession,F.Ob,F.dl,h)),xt=!1}catch(M){g.rs(M),r()}}}; S_F=function(y,t,a,r,E,h){r=r===void 0?{}:r;var F=Math.round((0,g.Wx)()),x={value:y.size},U=new Map([].concat(g.i7(y)));U=g.p(U);for(var C=U.next();!C.done;C=U.next()){var z=g.p(C.value).next().value,O=y.get(z);C=new g.TL;var M=t.config_||g.C4(),L=new cr,w=new n6;t_(w,1,M.HD);t_(w,2,M.AP);re(w,16,M.F8);t_(w,17,M.innertubeContextClientVersion);if(M.vn){var d=M.vn,k=new ut;d.coldConfigData&&t_(k,1,d.coldConfigData);d.appInstallData&&t_(k,6,d.appInstallData);d.coldHashData&&t_(k,3,d.coldHashData);d.hotHashData&& k.UB(d.hotHashData);Yc(w,ut,62,k)}(d=g.ks.devicePixelRatio)&&d!=1&&P0(w,65,Qo(d));d=Sm();d!==""&&t_(w,54,d);d=Qd();if(d.length>0){k=new oT;for(var e=0;e65535&&(y=1);ZR("BATCH_CLIENT_COUNTER",y);return y}; nR7=function(y,t,a){if(a.videoId)var r="VIDEO";else if(a.playlistId)r="PLAYLIST";else return;y.credentialTransferTokenTargetId=a;y.context=y.context||{};y.context.user=y.context.user||{};y.context.user.credentialTransferTokens=[{token:t,scope:r}]}; Ks=function(y,t){var a=g.jc("yt.logging.transport.enableScrapingForTest"),r=ft("il_payload_scraping");r=(r!==void 0?String(r):"")==="enable_il_payload_scraping";if(!a)if(r)zx=[],g.Wd("yt.logging.transport.enableScrapingForTest",!0),g.Wd("yt.logging.transport.scrapedPayloadsForTesting",zx),g.Wd("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Wd("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Wd("yt.logging.transport.scrapeClientEvent",!0);else return;a=g.jc("yt.logging.transport.scrapedPayloadsForTesting");r=g.jc("yt.logging.transport.payloadToScrape");t&&(t=t.payload,(t=g.jc("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(t)())&&a.push(t));t=g.jc("yt.logging.transport.scrapeClientEvent");if(r&&r.length>=1)for(var E=0;E0&&heV(y,t,h)}else heV(y,t)}; heV=function(y,t,a){y=F_y(y);t=t?g.e8(t):"";a=a||5;AU()&&g.bo(y,t,a)}; F_y=function(y){for(var t=g.p(Am7),a=t.next();!a.done;a=t.next())y=JZ(y,a.value);return"ST-"+gI(y).toString(36)}; xt7=function(y){if(y.name==="JavaException")return!0;y=y.stack;return y.includes("chrome://")||y.includes("-extension://")||y.includes("webkit-masked-url://")}; sB7=function(y){if(!y.stack)return!0;var t=!y.stack.includes("\n");return t&&y.stack.includes("ErrorType: ")||t&&y.stack.includes("Anonymous function (Unknown script")||y.stack.toLowerCase()==="not available"||y.fileName==="user-script"||y.fileName.startsWith("user-script:")?!0:!1}; $t7=function(){this.P5=[];this.n2=[]}; jp=function(){if(!Wj){var y=Wj=new $t7;y.n2.length=0;y.P5.length=0;Ut7(y,Co1)}return Wj}; Ut7=function(y,t){t.n2&&y.n2.push.apply(y.n2,t.n2);t.P5&&y.P5.push.apply(y.P5,t.P5)}; ze7=function(y){function t(){return y.charCodeAt(r++)} var a=y.length,r=0;do{var E=Sp(t);if(E===Infinity)break;var h=E>>3;switch(E&7){case 0:E=Sp(t);if(h===2)return E;break;case 1:if(h===2)return;r+=8;break;case 2:E=Sp(t);if(h===2)return y.substr(r,E);r+=E;break;case 5:if(h===2)return;r+=4;break;default:return}}while(r500));r++);r=E}else if(typeof y==="object")for(E in y){if(y[E]){var h=E;var F=y[E],x=t,U=a;h=typeof F!=="string"||h!=="clickTrackingParams"&&h!=="trackingParams"?0:(F=ze7(atob(F.replace(/-/g,"+").replace(/_/g,"/"))))?QT(h+".ve",F,x,U):0;r+=h;r+=QT(E,y[E],t,a);if(r>500)break}}else a[t]=vj(y),r+=a[t].length;else a[t]=vj(y),r+=a[t].length;return r}; QT=function(y,t,a,r){a+="."+y;y=vj(t);r[a]=y;return a.length+y.length}; vj=function(y){try{return(typeof y==="string"?y:String(JSON.stringify(y))).substr(0,500)}catch(t){return"unable to serialize "+typeof y+" ("+t.message+")"}}; ep=function(y){g.pK(y)}; g.ls=function(y){g.pK(y,"WARNING")}; g.pK=function(y,t){var a=a===void 0?{}:a;a.name=g.yd("INNERTUBE_CONTEXT_CLIENT_NAME",1);a.version=g.yd("INNERTUBE_CONTEXT_CLIENT_VERSION");t=t===void 0?"ERROR":t;var r=!1;t=t===void 0?"ERROR":t;r=r===void 0?!1:r;if(y){y.hasOwnProperty("level")&&y.level&&(t=y.level);if(g.WE("console_log_js_exceptions")){var E=[];E.push("Name: "+y.name);E.push("Message: "+y.message);y.hasOwnProperty("params")&&E.push("Error Params: "+JSON.stringify(y.params));y.hasOwnProperty("args")&&E.push("Error args: "+JSON.stringify(y.args)); E.push("File name: "+y.fileName);E.push("Stacktrace: "+y.stack);window.console.log(E.join("\n"),y)}if(!(L_H>=5)){E=[];for(var h=g.p(MmV),F=h.next();!F.done;F=h.next()){F=F.value;try{F()&&E.push(F())}catch(d){}}E=[].concat(g.i7(wE7),g.i7(E));var x=Syx(y);h=x.message||"Unknown Error";F=x.name||"UnknownError";var U=x.stack||y.K||"Not available";if(U.startsWith(F+": "+h)){var C=U.split("\n");C.shift();U=C.join("\n")}C=x.lineNumber||"Not available";x=x.fileName||"Not available";var z=0;if(y.hasOwnProperty("args")&& y.args&&y.args.length)for(var O=0;O=500);O++);else if(y.hasOwnProperty("params")&&y.params){var M=y.params;if(typeof y.params==="object")for(O in M){if(M[O]){var L="params."+O,w=vj(M[O]);a[L]=w;z+=L.length+w.length;if(z>500)break}}else a.params=vj(M)}if(E.length)for(O=0;O=500);O++);navigator.vendor&&!a.hasOwnProperty("vendor")&&(a["device.vendor"]=navigator.vendor);a={message:h,name:F,lineNumber:C, fileName:x,stack:U,params:a,sampleWeight:1};O=Number(y.columnNumber);isNaN(O)||(a.lineNumber=a.lineNumber+":"+O);if(y.level==="IGNORED")y=0;else a:{y=jp();O=g.p(y.n2);for(E=O.next();!E.done;E=O.next())if(E=E.value,a.message&&a.message.match(E.Ac)){y=E.weight;break a}y=g.p(y.P5);for(O=y.next();!O.done;O=y.next())if(O=O.value,O.callback(a)){y=O.weight;break a}y=1}a.sampleWeight=y;y=g.p(Reb);for(O=y.next();!O.done;O=y.next())if(O=O.value,O.jm[a.name])for(h=g.p(O.jm[a.name]),E=h.next();!E.done;E=h.next())if(F= E.value,E=a.message.match(F.NU)){a.params["params.error.original"]=E[0];h=F.groups;F={};for(C=0;C1E3&&g.ls(new g.RV("IL Attach cache exceeded limit"))}x= DB(a,t);bs.has(x)?gE(a,t):cj.set(x,!0)}}r=r.filter(function(z){z.csn!==t?(z.csn=t,z=!0):z=!1;return z}); a={csn:t,parentVe:a.getAsJson(),childVes:g.v$(r,function(z){return z.getAsJson()})}; t==="UNDEFINED_CSN"?is("visualElementAttached",h,a):y?LK("visualElementAttached",a,y,h):g.Mc("visualElementAttached",a,h)}; ukb=function(y,t,a,r,E,h,F){KK(a,t);r=Hj({cttAuthInfo:kt(t)||void 0,automatedLogEventSource:F},t);a={csn:t,ve:a.getAsJson(),eventType:1};E&&(a.clientData=E);t==="UNDEFINED_CSN"?is("visualElementShown",r,a):y?LK("visualElementShown",a,y,r):g.Mc("visualElementShown",a,r)}; Vm7=function(y,t,a,r){var E=(r=r===void 0?!1:r)?16:8;r=Hj({cttAuthInfo:kt(t)||void 0,endOfSequence:r,automatedLogEventSource:void 0},t);a={csn:t,ve:a.getAsJson(),eventType:E};t==="UNDEFINED_CSN"?is("visualElementHidden",r,a):y?LK("visualElementHidden",a,y,r):g.Mc("visualElementHidden",a,r)}; IQ=function(y,t,a,r,E,h){nzN(y,t,a,void 0,r,E,h)}; nzN=function(y,t,a,r,E,h,F){KK(a,t);r=r||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";h=Hj({cttAuthInfo:kt(t)||void 0,automatedLogEventSource:F},t);a={csn:t,ve:a.getAsJson(),gestureType:r};E&&(a.clientData=E);t==="UNDEFINED_CSN"?is("visualElementGestured",h,a):y?LK("visualElementGestured",a,y,h):g.Mc("visualElementGestured",a,h)}; mt7=function(){var y=Mh(16);for(var t=[],a=0;a0&&a.push(g.SU("BR"));a.push(g.Qu(h))}):a.push(g.Qu(r))}return a}; $r=function(y,t,a,r){if(a==="child"){g.pp(t);var E;r===void 0?E=void 0:E=!Array.isArray(r)||r&&typeof r.U==="string"?[r]:r;a=oz7(y,E);a=g.p(a);for(y=a.next();!y.done;y=a.next())t.appendChild(y.value)}else a==="style"?g.ry(t,"cssText",r?r:""):r===null||r===void 0?t.removeAttribute(a):(y=r.toString(),a==="href"&&(y=g.dI(g.fb(y))),t.setAttribute(a,y))}; g.q=function(y){g.xr.call(this,y);this.sS=!0;this.hF=!1;this.listeners=[]}; g.Ui=function(y){g.q.call(this,y);this.R5=new g.FM;g.c(this,this.R5)}; CL=function(y,t,a,r,E,h,F){F=F===void 0?null:F;g.Ui.call(this,t);this.api=y;this.macros={};this.componentType=a;this.J=this.W=null;this.Az=F;this.layoutId=r;this.interactionLoggingClientData=E;this.ue=h;this.r0=null;this.Pg=new z8(this.element);g.c(this,this.Pg);this.n1=this.N(this.element,"click",this.onClick);this.DE=[];this.o5=new OR(this.onClick,this);g.c(this,this.o5);this.I7=!1;this.L1=this.AF=null}; zF=function(y,t){y=y===void 0?null:y;t=t===void 0?null:t;if(y==null)return g.ls(Error("Got null or undefined adText object")),"";var a=g.DV(y.text);if(!y.isTemplated)return a;if(t==null)return g.ls(Error("Missing required parameters for a templated message")),a;y=g.p(Object.entries(t));for(t=y.next();!t.done;t=y.next()){var r=g.p(t.value);t=r.next().value;r=r.next().value;a=a.replace("{"+t+"}",r)}return a}; Hty=function(y){y=y===void 0?null:y;return y!=null&&(y=y.thumbnail,y!=null&&y.thumbnails!=null&&y.thumbnails.length!=0&&y.thumbnails[0].url!=null)?g.DV(y.thumbnails[0].url):""}; btd=function(y){y=y===void 0?null:y;return y!=null&&(y=y.thumbnail,y!=null&&y.thumbnails!=null&&y.thumbnails.length!=0&&y.thumbnails[0].width!=null&&y.thumbnails[0].height!=null)?new g.F1(y.thumbnails[0].width||0,y.thumbnails[0].height||0):new g.F1(0,0)}; g.Oi=function(y){if(y.simpleText)return y.simpleText;if(y.runs){var t=[];y=g.p(y.runs);for(var a=y.next();!a.done;a=y.next())a=a.value,a.text&&t.push(a.text);return t.join("")}return""}; g.LL=function(y){if(y.simpleText)return y=document.createTextNode(y.simpleText),y;var t=[];if(y.runs)for(var a=0;a1){for(var t=[y[0]],a=1;a0&&(this.V=new g.Te(this.k7,t,this),g.c(this,this.V));this.L=new g.Te(this.k7,a,this);g.c(this,this.L);this.Z=x3N(this.K,E,1,r);g.c(this,this.Z);this.W=x3N(this.K,0,r,1);g.c(this,this.W);this.D=new lm;g.c(this,this.D)}; sg=function(y,t){this.K=y;this.V=t}; l42=function(y){switch(y){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:SE(y,"unknown result type")}}; uLu=function(y,t){var a=1;y.isTrusted===!1&&(a=0);ZR("ISDSTAT",a);$Z(a,"i.s_",{triggerContext:"sk",metadata:t});return a}; Vbb=function(y,t){var a=[];t?t.isTrusted===!0?a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):t.isTrusted===!1?a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):a.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");$Z(0,"a.s_",{metadata:y,states:a});ZR("ASDSTAT",0)}; $Z=function(y,t,a){t=nH7[t];var r,E,h={detected:y===0,source:""+t.K+((r=a.triggerContext)!=null?r:"")+((E=a.D2)!=null?E:""),detectionStates:a.states,durationMs:a.gF};a.metadata&&(h.contentCpn=a.metadata.contentCpn,h.adCpn=a.metadata.adCpn);g.Mc("biscottiBasedDetection",h);t.V!==void 0&&(a=Number(g.yd("CATSTAT",0)),t.V!==void 0?(t=t.V,y=l42(y),y=a&~(3<0}; LD=function(y,t,a,r,E,h){ya.call(this,y,{U:"div",X:"ytp-ad-skip-button-slot"},"skip-button",t,a,r,E);var F=this;this.Vv=null;this.d0=!1;this.C1=h;this.L=this.api.G().experiments.Nr("enable_modern_skip_button_on_web");this.JF=!1;this.D=new g.Ui({U:"span",mX:["ytp-ad-skip-button-container"]});this.L&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.c(this,this.D);this.D.g0(this.element);this.K=this.Y=null;this.T7=new g.r0(this.D,500,!1,100,function(){return F.hide()}); g.c(this,this.T7);this.Ff=new xZ(this.D.element,15E3,5E3,.5,.5,this.L);g.c(this,this.Ff);this.hide()}; JU7=function(y){y=y.Vv&&y.Vv.adRendererCommands;return(y&&y.clickCommand&&g.P(y.clickCommand,g.MT)&&g.P(y.clickCommand,g.MT).commands||[]).some(function(t){return t.adLifecycleCommand?mey(t.adLifecycleCommand):!1})}; mey=function(y){return y.action==="END_LINEAR_AD"||y.action==="END_LINEAR_AD_PLACEMENT"}; w0=function(y,t,a,r,E,h){ya.call(this,y,{U:"div",X:"ytp-ad-skip-ad-slot"},"skip-ad",t,a,r,E);this.Vv=h;this.D=!1;this.L=0;this.Y=this.K=null;this.hide()}; oHF=function(y,t){y.D||(y.D=!0,y.K&&(t?y.K.Vv.hide():y.K.hide()),t?(y=y.Y,y.T7.show(),y.show()):y.Y.show())}; Ra=function(y,t,a,r){VV.call(this,y,t,a,r,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Pm=function(y,t,a,r,E,h,F){h=h===void 0?!1:h;F=F===void 0?!1:F;CL.call(this,y,{U:"span",X:"ytp-ad-simple-ad-badge"},"simple-ad-badge",t,a,r);this.Y=E;this.V=this.K1("ytp-ad-simple-ad-badge");(this.K=h)&&this.V.classList.add("ytp-ad-simple-ad-badge--clean-player");F&&this.V.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; NT=function(y,t,a,r,E){E=E===void 0?!1:E;hG.call(this,"player-overlay",y,{},t,r);this.videoAdDurationSeconds=a;this.interactionLoggingClientData=r;this.Aq=E}; d0=function(y,t){g.FM.call(this);this.api=y;this.durationMs=t;this.V=null;this.handler=new lm(this);g.c(this,this.handler);this.K=Hod;this.handler.N(this.api,"presentingplayerstatechange",this.TC);this.V=this.handler.N(this.api,"onAdPlaybackProgress",this.QD)}; Xt=function(y){g.FM.call(this);this.V=!1;this.Kx=0;this.handler=new lm(this);g.c(this,this.handler);this.durationMs=y;this.timer=new g.nZ(100);g.c(this,this.timer);this.handler.N(this.timer,"tick",this.QD);this.K={seekableStart:0,seekableEnd:y/1E3,current:0};this.start()}; g.kZ=function(y,t){var a=Math.abs(Math.floor(y)),r=Math.floor(a/86400),E=Math.floor(a%86400/3600),h=Math.floor(a%3600/60);a=Math.floor(a%60);if(t){t="";r>0&&(t+=" "+r+" d\u00edas");if(r>0||E>0)t+=" "+E+" horas";t+=" "+h+" minutos";t+=" "+a+" segundos";r=t.trim()}else{t="";r>0&&(t+=r+":",E<10&&(t+="0"));if(r>0||E>0)t+=E+":",h<10&&(t+="0");t+=h+":";a<10&&(t+="0");r=t+a}return y>=0?r:"-"+r}; g.Wm=function(y){return(!("button"in y)||typeof y.button!=="number"||y.button===0)&&!("shiftKey"in y&&y.shiftKey)&&!("altKey"in y&&y.altKey)&&!("metaKey"in y&&y.metaKey)&&!("ctrlKey"in y&&y.ctrlKey)}; jI=function(y,t,a,r,E,h,F){ya.call(this,y,{U:"span",X:F?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",t,a,r,E);this.videoAdDurationSeconds=h;this.K=null;F&&this.api.G().K&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),Kx&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; SI=function(y,t,a,r){GF.call(this,y,t,a,r,"ytp-video-ad-top-bar-title","ad-title")}; Qa=function(y){this.content=y.content;if(y.commandRuns){y=g.p(y.commandRuns);for(var t=y.next();!t.done;t=y.next())t=t.value,this.loggingDirectives=g.P(t,bob),t.onTap&&(this.interaction={onTap:t.onTap})}}; vm=function(y,t,a,r){CL.call(this,y,{U:"div",X:"ad-simple-attributed-string"},"ad-simple-attributed-string",t,a,r);this.hide()}; pD=function(y,t,a,r,E){CL.call(this,y,{U:"span",X:E?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",t,a,r);this.K=E;this.adBadgeText=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);this.adBadgeText.g0(this.element);g.c(this,this.adBadgeText);E?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Kx&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; eI=function(y,t,a,r){CL.call(this,y,{U:"span",X:"ytp-ad-pod-index"},"ad-pod-index",t,a,r);this.api.G().K&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Kx&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; lI=function(y,t,a,r){CL.call(this,y,{U:"div",X:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",t,a,r);this.hide()}; uI=function(y,t){this.K=y;this.V=t}; BB7=function(y,t){return y.K+t*(y.V-y.K)}; Va=function(y,t,a){return y.V-y.K?g.tE((t-y.K)/(y.V-y.K),0,1):a!=null?a:Infinity}; nD=function(y,t,a,r){r=r===void 0?!1:r;g.Ui.call(this,{U:"div",X:"ytp-ad-persistent-progress-bar-container",S:[{U:"div",X:"ytp-ad-persistent-progress-bar"}]});this.api=y;this.K=t;this.Y=a;r&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.c(this,this.K);this.progressBar=this.K1("ytp-ad-persistent-progress-bar");this.V=-1;this.N(y,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; mZ=function(y,t,a,r,E,h){CL.call(this,y,{U:"div",X:"ytp-ad-player-overlay",S:[{U:"div",X:"ytp-ad-player-overlay-flyout-cta"},{U:"div",X:"ytp-ad-player-overlay-instream-info"},{U:"div",X:"ytp-ad-player-overlay-skip-or-preview"},{U:"div",X:"ytp-ad-player-overlay-progress-bar"},{U:"div",X:"ytp-ad-player-overlay-instream-user-sentiment"},{U:"div",X:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",t,a,r);this.Z=h;this.L=this.K1("ytp-ad-player-overlay-flyout-cta");this.L.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.V=this.K1("ytp-ad-player-overlay-instream-info");this.D=null;cUN(this)&&(y=jU("div"),g.Al(y,"ytp-ad-player-overlay-top-bar-gradients"),t=this.V,t.parentNode&&t.parentNode.insertBefore(y,t),(t=this.api.getVideoData(2))&&t.isListed&&t.title&&(a=new SI(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),a.g0(y),a.init(Ei("ad-title"),{text:t.title},this.macros),g.c(this,a)),this.D=y);this.Y=null;this.yv=this.K1("ytp-ad-player-overlay-skip-or-preview");this.Ff=this.K1("ytp-ad-player-overlay-progress-bar"); this.d0=this.K1("ytp-ad-player-overlay-instream-user-sentiment");this.Vv=this.K1("ytp-ad-player-overlay-ad-disclosure-banner");this.K=E;g.c(this,this.K);this.hide()}; cUN=function(y){y=y.api.G();return g.Jf(y)&&y.K}; g.oa=function(y){y&=16777215;var t=[(y&16711680)>>16,(y&65280)>>8,y&255];y=t[0];var a=t[1];t=t[2];y=Number(y);a=Number(a);t=Number(t);if(y!=(y&255)||a!=(a&255)||t!=(t&255))throw Error('"('+y+","+a+","+t+'") is not a valid RGB color');a=y<<16|a<<8|t;return y<16?"#"+(16777216|a).toString(16).slice(1):"#"+a.toString(16)}; g.Hm=function(){}; YX7=function(y){var t=new wi;var a=new M3;a=t_(a,1,"botguard");y=t_(a,2,y);this.V=Gfy(t,M3,1,qXd,y)}; bI=function(y){this.V=new pe(y)}; DeN=function(){var y=!1;try{y=!!window.sessionStorage.getItem("session_logininfo")}catch(t){y=!0}return(g.yd("INNERTUBE_CLIENT_NAME")==="WEB"||g.yd("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&y}; Bm=function(){var y=y===void 0?!0:y;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");ZR("LOGIN_INFO","");y&&window.sessionStorage.setItem("from_switch_account","1");y=!0;y=y===void 0?!1:y;var t,a=gH7;a||(a=document.querySelector("#persist_identity"));if(t=a){var r=t.src?(new URL(t.src)).origin:"*";if(y){var E;(E=t.contentWindow)==null||E.postMessage({action:"clear"},r)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var h=window.sessionStorage.getItem("session_logininfo");if(h){var F;(F=t.contentWindow)==null||F.postMessage({loginInfo:h},r)}}}}catch(x){}}; cm=function(y){y&&(y.startsWith("https://accounts.google.com/AddSession")?Bm():y.startsWith("https://accounts.google.com/ServiceLogin")?Bm():y.startsWith("https://myaccount.google.com")&&g.NH(y).K.endsWith("/youtubeoptions")&&Bm());if(g.yd("LOGGED_IN",!0)&&DeN()){var t=g.yd("VALID_SESSION_TEMPDATA_DOMAINS",[]);var a=g.Wv(window.location.href);a&&t.push(a);a=g.Wv(y);g.TE(t,a)||!a&&IM(y,"/")?(t=S8(y),(t=xV1(t))?(t=F_y(t),t=(t=g.BE(t)||null)?f7(t):{}):t=null):t=null;t==null&&(t={});a=t;var r=void 0; DeN()?(r||(r=g.yd("LOGIN_INFO")),r?(a.session_logininfo=r,a=!0):a=!1):a=!1;a&&fK(y,t)}}; g.io7=function(y){var t=t===void 0?{}:t;var a=a===void 0?"":a;var r=r===void 0?window:r;y=g.lJ(y,t);cm(y);a=g.fb(y+a);r=r.location;a=WW(a);a!==void 0&&(r.href=a)}; g.qT=function(y,t,a){t=t===void 0?{}:t;a=a===void 0?!1:a;var r=g.yd("EVENT_ID");r&&(t.ei||(t.ei=r));t&&fK(y,t);a||(cm(y),g.io7(y))}; g.YZ=function(y,t,a,r,E){E=E===void 0?!1:E;a&&fK(y,a);a=g.fb(y);var h=g.dI(a);y!=h&&hm(Error("Unsafe window.open URL: "+y));y=h;t=t||gI(y).toString(36);try{if(E)return E=y,E=nMn(E),cm(E),g.eE(window,E,t,"attributionsrc")}catch(F){g.rs(F)}cm(y);return g.eE(window,a,t,r)}; K7H=function(y){Dk=y}; I4d=function(y){g0=y}; TB7=function(y){iI=y}; Zob=function(){GDN=iI=g0=Dk=null}; tZ7=function(){var y=y===void 0?window.location.href:y;if(g.WE("kevlar_disable_theme_param"))return null;var t=j8(y);if(g.WE("enable_dark_theme_only_on_shorts")&&t!=null&&t.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var a=g.sO(y).theme;return ykx.get(a)||null}catch(r){}return null}; KD=function(){this.V={};if(this.K=DMx()){var y=g.BE("CONSISTENCY");y&&aAn(this,{encryptedTokenJarContents:y})}}; aAn=function(y,t){if(t.encryptedTokenJarContents&&(y.V[t.encryptedTokenJarContents]=t,typeof t.expirationSeconds==="string")){var a=Number(t.expirationSeconds);setTimeout(function(){delete y.V[t.encryptedTokenJarContents]},a*1E3); y.K&&g.bo("CONSISTENCY",t.encryptedTokenJarContents,a,void 0,!0)}}; Tz=function(){this.K=-1;var y=g.yd("LOCATION_PLAYABILITY_TOKEN");g.yd("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Ia(this))&&(y=this.localStorage.get("yt-location-playability-token"));y&&(this.locationPlayabilityToken=y,this.V=void 0)}; Ia=function(y){return y.localStorage===void 0?new Ej("yt-client-location"):y.localStorage}; g.Gz=function(y,t,a){t=t===void 0?!1:t;a=a===void 0?!1:a;var r=g.yd("INNERTUBE_CONTEXT");if(!r)return g.pK(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};r=g.nJ(r);g.WE("web_no_tracking_params_in_shell_killswitch")||delete r.clickTracking;r.client||(r.client={});var E=r.client;E.clientName==="MWEB"&&E.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(E.clientFormFactor=g.yd("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");E.screenWidthPoints=window.innerWidth;E.screenHeightPoints= window.innerHeight;E.screenPixelDensity=Math.round(window.devicePixelRatio||1);E.screenDensityFloat=window.devicePixelRatio||1;E.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var h=h===void 0?!1:h;var F=g.qe(),x="USER_INTERFACE_THEME_LIGHT";F.o7(165)?x="USER_INTERFACE_THEME_DARK":F.o7(174)?x="USER_INTERFACE_THEME_LIGHT":!g.WE("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (x="USER_INTERFACE_THEME_DARK");h=h?x:tZ7()||x;E.userInterfaceTheme=h;if(!t){if(h=pgV())E.connectionType=h;g.WE("web_log_effective_connection_type")&&(h=ltN())&&(r.client.effectiveConnectionType=h)}var U;if(g.WE("web_log_memory_total_kbytes")&&((U=g.ks.navigator)==null?0:U.deviceMemory)){var C;U=(C=g.ks.navigator)==null?void 0:C.deviceMemory;r.client.memoryTotalKbytes=""+U*1E6}g.WE("web_gcf_hashes_innertube")&&(h=onx())&&(C=h.coldConfigData,U=h.coldHashData,h=h.hotHashData,r.client.configInfo=r.client.configInfo|| {},C&&(r.client.configInfo.coldConfigData=C),U&&(r.client.configInfo.coldHashData=U),h&&(r.client.configInfo.hotHashData=h));C=g.sO(g.ks.location.href);!g.WE("web_populate_internal_geo_killswitch")&&C.internalcountrycode&&(E.internalGeo=C.internalcountrycode);E.clientName==="MWEB"||E.clientName==="WEB"?(E.mainAppWebInfo||(E.mainAppWebInfo={}),E.mainAppWebInfo.graftUrl=g.ks.location.href,g.WE("kevlar_woffle")&&ka1.instance&&(C=ka1.instance,E.mainAppWebInfo.pwaInstallabilityStatus=!C.V&&C.K?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),E.mainAppWebInfo.webDisplayMode=bm(),E.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):E.clientName==="TVHTML5"&&(!g.WE("web_lr_app_quality_killswitch")&&(C=g.yd("LIVING_ROOM_APP_QUALITY"))&&(E.tvAppInfo=Object.assign(E.tvAppInfo||{},{appQuality:C})),C=g.yd("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(E.tvAppInfo=Object.assign(E.tvAppInfo||{},{certificationScope:C}));if(!g.WE("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var z=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(B){}z=void 0}z&&(E.timeZone=z)}(z=Sm())?E.experimentsToken=z:delete E.experimentsToken;z=Qd();KD.instance||(KD.instance=new KD);r.request=Object.assign({},r.request,{internalExperimentFlags:z,consistencyTokenJars:fJ(KD.instance.V)});!g.WE("web_prequest_context_killswitch")&&(z=g.yd("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(r.request.externalPrequestContext=z);E=g.qe();z=E.o7(58);E=E.get("gsml","");r.user=Object.assign({}, r.user);z&&(r.user.enableSafetyMode=z);E&&(r.user.lockedSafetyMode=!0);g.WE("warm_op_csn_cleanup")?a&&(t=g.XE())&&(r.clientScreenNonce=t):!t&&(t=g.XE())&&(r.clientScreenNonce=t);y&&(r.clickTracking={clickTrackingParams:y});if(y=g.jc("yt.mdx.remote.remoteClient_"))r.remoteClient=y;Tz.getInstance().setLocationOnInnerTubeContext(r);try{var O=ws(),M=O.bid;delete O.bid;r.adSignalsInfo={params:[],bid:M};for(var L=g.p(Object.entries(O)),w=L.next();!w.done;w=L.next()){var d=g.p(w.value),k=d.next().value, e=d.next().value;O=k;M=e;y=void 0;(y=r.adSignalsInfo.params)==null||y.push({key:O,value:""+M})}var v,l;if(((v=r.client)==null?void 0:v.clientName)==="TVHTML5"||((l=r.client)==null?void 0:l.clientName)==="TVHTML5_UNPLUGGED"){var V=g.yd("INNERTUBE_CONTEXT");V.adSignalsInfo&&(r.adSignalsInfo.advertisingId=V.adSignalsInfo.advertisingId,r.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",r.adSignalsInfo.limitAdTracking=V.adSignalsInfo.limitAdTracking)}}catch(B){g.pK(B)}return r}; hKx=function(y,t){if(!y)return!1;var a,r=(a=g.P(y,rk2))==null?void 0:a.signal;if(r&&t.DJ)return!!t.DJ[r];var E;if((a=(E=g.P(y,EGV))==null?void 0:E.request)&&t.bG)return!!t.bG[a];for(var h in y)if(t.BB[h])return!0;return!1}; FbN=function(y){var t={"Content-Type":"application/json"};g.yd("EOM_VISITOR_DATA")?t["X-Goog-EOM-Visitor-Id"]=g.yd("EOM_VISITOR_DATA"):g.yd("VISITOR_DATA")&&(t["X-Goog-Visitor-Id"]=g.yd("VISITOR_DATA"));t["X-Youtube-Bootstrap-Logged-In"]=g.yd("LOGGED_IN",!1);g.yd("DEBUG_SETTINGS_METADATA")&&(t["X-Debug-Settings-Metadata"]=g.yd("DEBUG_SETTINGS_METADATA"));y!=="cors"&&((y=g.yd("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(t["X-Youtube-Client-Name"]=y),(y=g.yd("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(t["X-Youtube-Client-Version"]= y),(y=g.yd("CHROME_CONNECTED_HEADER"))&&(t["X-Youtube-Chrome-Connected"]=y),(y=g.yd("DOMAIN_ADMIN_STATE"))&&(t["X-Youtube-Domain-Admin-State"]=y));(y=g.yd("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(t["X-YouTube-Lava-Device-Context"]=y);return t}; Ak7=function(){this.V={}}; Zk=function(){this.mappings=new Ak7}; y_=function(y){return function(){return new y}}; sUd=function(y){var t=t===void 0?"UNKNOWN_INTERFACE":t;if(y.length===1)return y[0];var a=xx2[t];if(a){a=new RegExp(a);for(var r=g.p(y),E=r.next();!E.done;E=r.next())if(E=E.value,a.exec(E))return E}var h=[];Object.entries(xx2).forEach(function(F){var x=g.p(F);F=x.next().value;x=x.next().value;t!==F&&h.push(x)}); a=new RegExp(h.join("|"));y.sort(function(F,x){return F.length-x.length}); r=g.p(y);for(E=r.next();!E.done;E=r.next())if(E=E.value,!a.exec(E))return E;return y[0]}; g.ta=function(y){return"/youtubei/v1/"+sUd(y)}; aW=function(){}; rJ=function(){}; EF=function(){}; ha=function(y){return g.jc("ytcsi."+(y||"")+"data_")||$xb(y)}; Ux2=function(){var y=ha();y.info||(y.info={});return y.info}; Fn=function(y){y=ha(y);y.metadata||(y.metadata={});return y.metadata}; Aa=function(y){y=ha(y);y.tick||(y.tick={});return y.tick}; xj=function(y){y=ha(y);if(y.gel){var t=y.gel;t.gelInfos||(t.gelInfos={});t.gelTicks||(t.gelTicks={})}else y.gel={gelTicks:{},gelInfos:{}};return y.gel}; Clz=function(y){y=xj(y);y.gelInfos||(y.gelInfos={});return y.gelInfos}; sF=function(y){var t=ha(y).nonce;t||(t=g.wu(16),ha(y).nonce=t);return t}; $xb=function(y){var t={tick:{},info:{}};g.Wd("ytcsi."+(y||"")+"data_",t);return t}; UF=function(){var y=g.jc("ytcsi.debug");y||(y=[],g.Wd("ytcsi.debug",y),g.Wd("ytcsi.reference",{}));return y}; CM=function(y){y=y||"";var t=zKN();if(t[y])return t[y];var a=UF(),r={timerName:y,info:{},tick:{},span:{},jspbInfo:[]};a.push(r);return t[y]=r}; OxN=function(y){y=y||"";var t=zKN();t[y]&&delete t[y];var a=UF(),r={timerName:y,info:{},tick:{},span:{},jspbInfo:[]};a.push(r);t[y]=r}; zKN=function(){var y=g.jc("ytcsi.reference");if(y)return y;UF();return g.jc("ytcsi.reference")}; zl=function(y){return Lbn[y]||"LATENCY_ACTION_UNKNOWN"}; OF=function(y,t){L4.call(this,1,arguments);this.timer=t}; LM=function(){this.V=0}; M_=function(){LM.instance||(LM.instance=new LM);return LM.instance}; RW=function(y,t){wJ[t]=wJ[t]||{count:0};var a=wJ[t];a.count++;a.time=(0,g.Wx)();y.V||(y.V=g.Z4(0,function(){var r=(0,g.Wx)(),E;for(E in wJ)wJ[E]&&r-wJ[E].time>6E4&&delete wJ[E];y&&(y.V=0)},5E3)); return a.count>5?(a.count===6&&Math.random()*1E5<1&&(a=new g.RV("CSI data exceeded logging limit with key",t.split("_")),t.indexOf("plev")>=0||g.ls(a)),!0):!1}; MZz=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; wxF=function(){var y;if(g.WE("csi_use_performance_navigation_timing")){var t,a,r,E=P_==null?void 0:(y=P_.getEntriesByType)==null?void 0:(t=y.call(P_,"navigation"))==null?void 0:(a=t[0])==null?void 0:(r=a.toJSON)==null?void 0:r.call(a);E?(E.requestStart=N_(E.requestStart),E.responseEnd=N_(E.responseEnd),E.redirectStart=N_(E.redirectStart),E.redirectEnd=N_(E.redirectEnd),E.domainLookupEnd=N_(E.domainLookupEnd),E.connectStart=N_(E.connectStart),E.connectEnd=N_(E.connectEnd),E.responseStart=N_(E.responseStart), E.secureConnectionStart=N_(E.secureConnectionStart),E.domainLookupStart=N_(E.domainLookupStart),E.isPerformanceNavigationTiming=!0,y=E):y=P_.timing}else y=g.WE("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(P_.timing)):P_.timing;return y}; N_=function(y){return Math.round(dJ()+y)}; dJ=function(){return(g.WE("csi_use_time_origin")||g.WE("csi_use_time_origin_tvhtml5"))&&P_.timeOrigin?Math.floor(P_.timeOrigin):P_.timing.navigationStart}; kj=function(y,t){Xn("_start",y,t)}; fM=function(y,t){if(!g.WE("web_csi_action_sampling_enabled")||!ha(t).actionDisabled){var a=CM(t||"");$D(a.info,y);y.loadType&&(a=y.loadType,Fn(t).loadType=a);$D(Clz(t),y);a=sF(t);t=ha(t).cttAuthInfo;M_().info(y,a,t)}}; RKn=function(){var y,t,a,r;return((r=Qq().resolve(new kD($X))==null?void 0:(y=UH())==null?void 0:(t=y.loggingHotConfig)==null?void 0:(a=t.csiConfig)==null?void 0:a.debugTicks)!=null?r:[]).map(function(E){return Object.values(E)[0]})}; Xn=function(y,t,a){if(!g.WE("web_csi_action_sampling_enabled")||!ha(a).actionDisabled){var r=sF(a),E;if(E=g.WE("web_csi_debug_sample_enabled")&&r){(Qq().resolve(new kD($X))==null?0:UH())&&!PlN&&(PlN=!0,Xn("gcfl",(0,g.Wx)(),a));var h,F,x;E=(Qq().resolve(new kD($X))==null?void 0:(h=UH())==null?void 0:(F=h.loggingHotConfig)==null?void 0:(x=F.csiConfig)==null?void 0:x.debugSampleWeight)||0;if(h=E!==0)b:{h=RKn();if(h.length>0)for(F=0;Fa.duration?r:a},{duration:0}))&&t.startTime>0&&t.responseEnd>0&&(Xn("wffs",N_(t.startTime)),Xn("wffe",N_(t.responseEnd)))}; jUy=function(y,t,a){P_&&P_.measure&&(y.startsWith("measure_")||(y="measure_"+y),a?P_.measure(y,t,a):t?P_.measure(y,t):P_.measure(y))}; Sjy=function(y){var t=W_("aft",y);if(t)return t;t=g.yd((y||"")+"TIMING_AFT_KEYS",["ol"]);for(var a=t.length,r=0;r0&&fM(t);t={isNavigation:!0,actionType:zl(g.yd("TIMING_ACTION"))};var a=g.yd("PREVIOUS_ACTION");a&&(t.previousAction=zl(a));if(a=g.yd("CLIENT_PROTOCOL"))t.httpProtocol=a;if(a=g.yd("CLIENT_TRANSPORT"))t.transportProtocol=a;(a=g.XE())&&a!=="UNDEFINED_CSN"&&(t.clientScreenNonce=a);a=Xx7();if(a===1||a===-1)t.isVisible= !0;a=Fn().loadType==="cold";var r=Ux2();a||(a=r.yt_lt==="cold");if(a){t.loadType="cold";a=Ux2();r=wxF();var E=dJ(),h=g.yd("CSI_START_TIMESTAMP_MILLIS",0);h>0&&!g.WE("embeds_web_enable_csi_start_override_killswitch")&&(E=h);E&&(Xn("srt",r.responseStart),a.prerender!==1&&kj(E));a=pxH();a>0&&Xn("fpt",a);a=wxF();a.isPerformanceNavigationTiming&&fM({performanceNavigationTiming:!0},void 0);Xn("nreqs",a.requestStart,void 0);Xn("nress",a.responseStart,void 0);Xn("nrese",a.responseEnd,void 0);a.redirectEnd- a.redirectStart>0&&(Xn("nrs",a.redirectStart,void 0),Xn("nre",a.redirectEnd,void 0));a.domainLookupEnd-a.domainLookupStart>0&&(Xn("ndnss",a.domainLookupStart,void 0),Xn("ndnse",a.domainLookupEnd,void 0));a.connectEnd-a.connectStart>0&&(Xn("ntcps",a.connectStart,void 0),Xn("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=dJ()&&a.connectEnd-a.secureConnectionStart>0&&(Xn("nstcps",a.secureConnectionStart,void 0),Xn("ntcpe",a.connectEnd,void 0));P_&&"getEntriesByType"in P_&&Wb7();a=[];if(document.querySelector&& P_&&P_.getEntriesByName)for(var F in Q_)Q_.hasOwnProperty(F)&&(r=Q_[F],fA7(F,r)&&a.push(r));if(a.length>0)for(t.resourceInfo=[],F=g.p(a),a=F.next();!a.done;a=F.next())t.resourceInfo.push({resourceCache:a.value})}fM(t);t=xj();t.preLoggedGelInfos||(t.preLoggedGelInfos=[]);F=t.preLoggedGelInfos;t=Clz();a=void 0;for(r=0;r-1&&(delete zN["@type"],B=zN);L&&y.K.has(L)&&y.K.delete(L);((Xb=t.config)==null?0:Xb.jmf)&&pM(t.config.jmf);if(B||(TN=y.Y)==null||!TN.JWr(t.input,t.ZK)){b7.xG(11);break}return g.u(b7,y.Y.cIv(t.input,t.ZK),12);case 12:B=b7.K;case 11:return H_(y, B,t),((A7=t.config)==null?0:A7.C2E)&&pM(t.config.C2E),r(),b7.return(B||void 0)}})}; qjb=function(y,t){a:{y=y.iN;var a,r=(a=g.P(t,rk2))==null?void 0:a.signal;if(r&&y.DJ&&(a=y.DJ[r])){var E=a();break a}var h;if((a=(h=g.P(t,EGV))==null?void 0:h.request)&&y.bG&&(h=y.bG[a])){E=h();break a}for(E in t)if(y.BB[E]&&(t=y.BB[E])){E=t();break a}E=void 0}if(E!==void 0)return Promise.resolve(E)}; Dxd=function(y,t,a){var r,E,h,F,x,U,C;return g.m(function(z){if(z.V==1){h=((r=t)==null?void 0:(E=r.Ai)==null?void 0:E.identity)||OH;U=(F=t)==null?void 0:(x=F.Ai)==null?void 0:x.sessionIndex;var O=g.pZ(y.V.I1(h,{sessionIndex:U}));return g.u(z,O,2)}C=z.K;return z.return(Promise.resolve(Object.assign({},FbN(a),C)))})}; YjF=function(y,t,a){var r,E=(t==null?void 0:(r=t.Ai)==null?void 0:r.identity)||OH,h;t=t==null?void 0:(h=t.Ai)==null?void 0:h.sessionIndex;y=y.V.I1(E,{sessionIndex:t});return Object.assign({},FbN(a),y)}; by=function(){}; B_=function(){}; c_=function(y){this.J=y}; q_=function(){}; Yj=function(){}; D5=function(){}; gJ=function(){}; g.iy=function(y,t){var a=g.w2.apply(2,arguments);y=y===void 0?0:y;g.RV.call(this,t,a);this.errorType=y;Object.setPrototypeOf(this,this.constructor.prototype)}; KM=function(y){this.V=y}; TR7=function(y,t,a){if(y.V){var r=j8(JZ(t,"key"))||"/UNKNOWN_PATH";y.V.start(r)}y=a;g.WE("wug_networking_gzip_request")&&(y=OeH(a));return new window.Request(t,y)}; g.Tl=function(y,t){if(!IW){var a=Qq();fs(a,{Sv:Gjz,Mj:KM});var r={BB:{feedbackEndpoint:y_(q_),modifyChannelNotificationPreferenceEndpoint:y_(Yj),playlistEditEndpoint:y_(D5),shareEntityEndpoint:y_(c_),subscribeEndpoint:y_(by),unsubscribeEndpoint:y_(B_),webPlayerShareEntityServiceEndpoint:y_(gJ)}},E=Tz.getInstance(),h={};E&&(h.client_location=E);y===void 0&&(y=ftF());t===void 0&&(t=a.resolve(Gjz));ck2(r,t,y,h);fs(a,{Sv:Zx2,CY:mw.instance});IW=a.resolve(Zx2)}return IW}; yRz=function(y){var t=new sS;if(y.interpreterJavascript){var a=$MN(y.interpreterJavascript);a=Vk(a).toString();var r=new Aw;t_(r,6,a);Yc(t,Aw,1,r,s0)}else y.interpreterUrl&&(a=p6(y.interpreterUrl),a=Re(a).toString(),r=new xm,t_(r,4,a),Yc(t,xm,2,r,s0));y.interpreterHash&&aO(t,3,y.interpreterHash,s0);y.program&&aO(t,4,y.program,s0);y.globalName&&aO(t,5,y.globalName,s0);y.clientExperimentsStateBlob&&aO(t,7,y.clientExperimentsStateBlob,s0);return t}; Gl=function(y){var t={};y=y.split("&");y=g.p(y);for(var a=y.next();!a.done;a=y.next())a=a.value.split("="),a.length===2&&(t[a[0]]=a[1]);return t}; tOF=function(){var y=y===void 0?window:y;var t,a;return g.m(function(r){if(r.V==1)return g.u(r,A2(),2);t=y;a=t.bgevmc;if(!a)throw Error("BGE Controls not exposed");return r.return({pause:function(){a.p()}, resume:function(){a.r()}, checkForRefresh:function(){return a.cr()}})})}; ZnH=function(){if(g.WE("bg_st_hr"))return"havuokmhhs-0";var y,t=((y=globalThis.performance)==null?void 0:y.timeOrigin)||0;return"havuokmhhs-"+Math.floor(t)}; Z5=function(y){window.bgens=y}; yv=function(y){this.V=y}; adz=function(){return new Promise(function(y){var t=window;t.ntpevasrs!==void 0?y(new yv(t.ntpevasrs)):(t.ntpqfbel===void 0&&(t.ntpqfbel=[]),t.ntpqfbel.push(function(a){y(new yv(a))}))})}; hxn=function(){if(AU()){var y=g.yd("PLAYER_VARS",{});if(g.ek(y,"privembed",!1)!="1"&&!GZ7(y)){var t=function(){tD=!0;"google_ad_status"in window?ZR("DCLKSTAT",1):ZR("DCLKSTAT",2)}; try{g.F3(rR1,t)}catch(a){}EXb.push(g.qC.f$(function(){if(!(tD||"google_ad_status"in window)){try{if(rR1.toString()&&t){var a=""+g.nI(t),r=KTH[a];r&&g.ER(r)}}catch(E){}tD=!0;ZR("DCLKSTAT",3)}},5E3))}}}; a2=function(){var y=Number(g.yd("DCLKSTAT",0));return isNaN(y)?0:y}; FN=function(y,t,a){var r=this;this.network=y;this.options=t;this.K=a;this.V=null;if(t.k0v){var E=new g.US;this.V=E.promise;g.ks.ytAtRC&&GD(function(){var h,F;return g.m(function(x){if(x.V==1){if(!g.ks.ytAtRC)return x.return();h=rj(null);return g.u(x,Eh(r,h),2)}F=x.K;g.ks.ytAtRC&&g.ks.ytAtRC(JSON.stringify(F));g.FU(x)})},2); adz().then(function(h){var F,x,U,C;return g.m(function(z){if(z.V==1)return h.bindInnertubeChallengeFetcher(function(O){return Eh(r,rj(O))}),g.u(z,A2(),2); F=z.K;x=h.getLatestChallengeResponse();U=x.challenge;if(!U)throw Error("BGE_MACIL");C={challenge:U,XM:Gl(U),lK:F,bgChallenge:new sS};E.resolve(C);h.registerChallengeFetchedCallback(function(O){O=O.challenge;if(!O)throw Error("BGE_MACR");O={challenge:O,XM:Gl(O),lK:F,bgChallenge:new sS};r.V=Promise.resolve(O)}); g.FU(z)})})}else t.preload&&FHn(this,new Promise(function(h){g.Z4(0,function(){h(hD(r))},0)}))}; rj=function(y){var t={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};y&&(t.interpreterHash=y);return t}; hD=function(y,t){t=t===void 0?0:t;var a,r,E,h,F,x,U,C,z,O,M,L;return g.m(function(w){switch(w.V){case 1:a=rj(OS().V);if(g.WE("att_fet_ks"))return g.xs(w,7),g.u(w,Eh(y,a),9);g.xs(w,4);return g.u(w,AR7(y,a),6);case 6:F=w.K;E=F.e30;h=F.Iem;r=F;g.$s(w,3);break;case 4:return g.Uy(w),g.ls(Error("Failed to fetch attestation challenge after "+(t+" attempts; not retrying for 24h."))),AD(y,864E5),w.return({challenge:"",XM:{},lK:void 0,bgChallenge:void 0});case 9:r=w.K;if(!r)throw Error("Fetching Attestation challenge returned falsy"); if(!r.challenge)throw Error("Missing Attestation challenge");E=r.challenge;h=Gl(E);if("c1a"in h&&(!r.bgChallenge||!r.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.$s(w,3);break;case 7:x=g.Uy(w);g.ls(x);t++;if(t>=5)return g.ls(Error("Failed to fetch attestation challenge after "+(t+" attempts; not retrying for 24h."))),AD(y,864E5),w.return({challenge:"",XM:{},lK:void 0,bgChallenge:void 0});U=1E3*Math.pow(2,t-1)+Math.random()*1E3;return w.return(new Promise(function(d){g.Z4(0, function(){d(hD(y,t))},U)})); case 3:C=Number(h.t)||7200;AD(y,C*1E3);z=void 0;if(!("c1a"in h&&r.bgChallenge)){w.xG(10);break}O=yRz(r.bgChallenge);g.xs(w,11);return g.u(w,T8b(OS(),O),13);case 13:g.$s(w,12);break;case 11:return M=g.Uy(w),g.ls(M),w.return({challenge:E,XM:h,lK:z,bgChallenge:O});case 12:return g.xs(w,14),z=new Cd({challenge:O,T3:{ZP:"aGIf"}}),g.u(w,z.zQ,16);case 16:g.$s(w,10);break;case 14:L=g.Uy(w),g.ls(L),z=void 0;case 10:return w.return({challenge:E,XM:h,lK:z,bgChallenge:O})}})}; xG2=function(y,t){var a;return g.m(function(r){if(r.V==1)return Z5(2),g.xs(r,2),g.u(r,Eh(y.network,t),4);if(r.V!=2)return(a=r.K)?a.challenge&&!a.bgChallenge?Z5(1):Z5(4):Z5(3),r.return(a);g.Uy(r);Z5(3);return r.return(void 0)})}; Eh=function(y,t){var a;return g.m(function(r){a=y.K;if(!a||a.z5())return r.return(xG2(y,t));nM("att_pna",void 0,"attestation_challenge_fetch");return r.return(new Promise(function(E){a.xi("publicytnetworkstatus-online",function(){xG2(y,t).then(E)})}))})}; s6u=function(y){if(!y)throw Error("Fetching Attestation challenge returned falsy");if(!y.challenge)throw Error("Missing Attestation challenge");var t=y.challenge,a=Gl(t);if("c1a"in a&&(!y.bgChallenge||!y.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},y,{e30:t,Iem:a})}; AR7=function(y,t){var a,r,E,h,F;return g.m(function(x){switch(x.V){case 1:a=void 0,r=0,E={};case 2:if(!(r<5)){x.xG(4);break}if(!(r>0)){x.xG(5);break}E.fm=1E3*Math.pow(2,r-1)+Math.random()*1E3;return g.u(x,new Promise(function(U){return function(C){g.Z4(0,function(){C(void 0)},U.fm)}}(E)),5); case 5:return g.xs(x,7),g.u(x,Eh(y,t),9);case 9:return h=x.K,x.return(s6u(h));case 7:a=F=g.Uy(x),F instanceof Error&&g.ls(F);case 8:r++;E={fm:void 0};x.xG(2);break;case 4:throw a;}})}; FHn=function(y,t){y.V=t}; $Gz=function(y){var t,a,r;return g.m(function(E){if(E.V==1)return g.u(E,Promise.race([y.V,null]),2);t=E.K;var h=hD(y);y.V=h;(a=t)==null||(r=a.lK)==null||r.dispose();g.FU(E)})}; AD=function(y,t){function a(){var E;return g.m(function(h){E=r-Date.now();return E<1E3?g.u(h,$Gz(y),0):(GD(a,0,Math.min(E,6E4)),h.xG(0))})} var r=Date.now()+t;a()}; UGV=function(y,t){return new Promise(function(a){g.Z4(0,function(){a(t())},y)})}; Cp7=function(){return new Promise(function(y){var t=window;t.attmp!==void 0?y(t.attmp):(t.attmq===void 0&&(t.attmq=[]),t.attmq.push(function(a){y(a)}))})}; g.zxd=function(y,t){var a,r,E;return g.m(function(h){if(h.V==1){if(!g.WE("attmusi")||!g.WE("attmusi_ue"))return h.xG(2);a=window;return a.attmp!==void 0?h.return(a.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",y,t)):g.u(h,Cp7(),3)}if(h.V!=2)return r=h.K,h.return(r.s("ENGAGEMENT_TYPE_PLAYBACK",y,t));var F=g.jc("yt.aba.att");return(E=F?F:FN.instance!==void 0?FN.instance.Y.bind(FN.instance):null)?h.return(E("ENGAGEMENT_TYPE_PLAYBACK",y,t)):h.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; var y1b=function(y){return dx[A[3]](this,57,y)}; g.O4V=function(){var y,t,a;return g.m(function(r){if(r.V==1){if(!g.WE("attmusi")||!g.WE("attmusi_ue"))return r.xG(2);y=window;return y.attmp===void 0?r.return(!1):g.u(r,Cp7(),3)}if(r.V!=2)return t=r.K,r.return(t.ir());var E=g.jc("yt.aba.att2");return(a=E?E:FN.instance!==void 0?FN.instance.D.bind(FN.instance):null)?r.return(a()):r.return(Promise.resolve(!1))})}; MOH=function(y,t){var a=g.jc("ytDebugData.callbacks");a||(a={},g.Wd("ytDebugData.callbacks",a));if(g.WE("web_dd_iu")||LHx.includes(y))a[y]=t}; xk=function(){var y=w5d;var t=t===void 0?[]:t;var a=a===void 0?[]:a;t=EC7.apply(null,[hwn.apply(null,g.i7(t))].concat(g.i7(a)));this.store=Axy(y,void 0,t)}; g.sh=function(y,t,a){for(var r=Object.assign({},y),E=g.p(Object.keys(t)),h=E.next();!h.done;h=E.next()){h=h.value;var F=y[h],x=t[h];if(x===void 0)delete r[h];else if(F===void 0)r[h]=x;else if(Array.isArray(x)&&Array.isArray(F))r[h]=a?[].concat(g.i7(F),g.i7(x)):x;else if(!Array.isArray(x)&&g.l3(x)&&!Array.isArray(F)&&g.l3(F))r[h]=g.sh(F,x,a);else if(typeof x===typeof F)r[h]=x;else return t=new g.RV("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:h,kg7:F,updateValue:x}),g.pK(t), y}return r}; $k=function(y){var t=this;y=y===void 0?[]:y;this.V=[];this.Y=this.K=0;this.D=void 0;this.totalLength=0;y.forEach(function(a){t.append(a)})}; Rx2=function(y,t){return y.V.length===0?!1:(y=y.V[y.V.length-1])&&y.buffer===t.buffer&&y.byteOffset+y.length===t.byteOffset}; Uh=function(y,t){t=g.p(t.V);for(var a=t.next();!a.done;a=t.next())y.append(a.value)}; Cu=function(y,t,a){return y.split(t).q1.split(a).zm}; zd=function(y){y.D=void 0;y.K=0;y.Y=0}; Oh=function(y,t,a){y.isFocused(t);return t-y.Y+a<=y.V[y.K].length}; Ppz=function(y){if(!y.D){var t=y.V[y.K];y.D=new DataView(t.buffer,t.byteOffset,t.length)}return y.D}; Nc7=function(y,t,a){t=t===void 0?0:t;a=a===void 0?-1:a;if(!y.totalLength||!a)return new DataView(new ArrayBuffer(0));a<0&&(a=y.totalLength-t);y.focus(t);if(!Oh(y,t,a)){var r=y.K,E=y.Y;y.focus(t+a-1);E=new Uint8Array(y.Y+y.V[y.K].length-E);for(var h=0,F=r;F<=y.K;F++)E.set(y.V[F],h),h+=y.V[F].length;y.V.splice(r,y.K-r+1,E);zd(y);y.focus(t)}r=y.V[y.K];return new DataView(r.buffer,r.byteOffset+t-y.Y,a)}; Lu=function(y,t,a){y=Nc7(y,t===void 0?0:t,a===void 0?-1:a);return new Uint8Array(y.buffer,y.byteOffset,y.byteLength)}; Mz=function(y,t,a){y=Lu(y,t===void 0?0:t,a===void 0?-1:a);t=new Uint8Array(y.length);try{t.set(y)}catch(r){for(a=0;a>10;h=56320|h&1023}Nz[E++]=h}}h=String.fromCharCode.apply(String,Nz); E<1024&&(h=h.substring(0,E));a.push(h)}return a.join("")}; kk=function(y,t){var a;if((a=XN)==null?0:a.encodeInto)return t=XN.encodeInto(y,t),t.read>6|192:((E&64512)===55296&&r+1>18|240,t[a++]=E>>12&63|128):t[a++]=E>>12|224,t[a++]=E>>6&63|128),t[a++]=E&63|128)}return a}; fu=function(y){if(XN)return XN.encode(y);var t=new Uint8Array(Math.ceil(y.length*1.2)),a=kk(y,t);t.lengtha&&(t=t.subarray(0,a));return t}; Wb=function(y){this.V=y;this.pos=0;this.K=-1}; je=function(y){var t=wj(y.V,y.pos);++y.pos;if(t<128)return t;for(var a=t&127,r=1;t>=128;)t=wj(y.V,y.pos),++y.pos,r*=128,a+=(t&127)*r;return a}; Se=function(y,t){var a=y.K;for(y.K=-1;y.pos+1<=y.V.totalLength;){a<0&&(a=je(y));var r=a>>3,E=a&7;if(r===t)return!0;if(r>t){y.K=a;break}a=-1;switch(E){case 0:je(y);break;case 1:y.pos+=8;break;case 2:r=je(y);y.pos+=r;break;case 5:y.pos+=4}}return!1}; Qv=function(y,t){if(Se(y,t))return je(y)}; k11=function(y,t){if(Se(y,t))return t=Lu(y.V,y.pos,8),y.pos+=8,(new DataView(t.buffer,t.byteOffset,t.byteLength)).getFloat64(0,!0)}; vb=function(y,t){if(Se(y,t))return!!je(y)}; pu=function(y,t){if(Se(y,t)){t=je(y);var a=Lu(y.V,y.pos,t);y.pos+=t;return a}}; ee=function(y,t){if(y=pu(y,t))return g.dj(y)}; lG=function(y,t,a){if(y=pu(y,t))return a(new Wb(new $k([y])))}; uG=function(y,t){for(var a=[];Se(y,t);)a.push(je(y));return a.length?a:void 0}; Vv=function(y,t,a){for(var r=[],E;E=pu(y,t);)r.push(a(new Wb(new $k([E]))));return r.length?r:void 0}; nu=function(y,t){y=y instanceof Uint8Array?new $k([y]):y;return t(new Wb(y))}; fdN=function(y,t){y=new Uint8Array(y);t&&y.set(t);return y}; WHd=function(y){this.pos=0;this.K=[];this.V=fdN(y===void 0?4096:y);this.view=new DataView(this.V.buffer,this.V.byteOffset,this.V.byteLength)}; mI=function(y,t){t=y.pos+t;if(!(y.V.length>=t)){for(var a=y.V.length*2;a268435455){mI(y,4);for(var a=t&1073741823,r=0;r<4;r++)y.view.setUint8(y.pos,a&127|128),a>>=7,y.pos+=1;t=Math.floor(t/268435456)}for(mI(y,4);t>127;)y.view.setUint8(y.pos,t&127|128),t>>=7,y.pos+=1;y.view.setUint8(y.pos,t);y.pos+=1}; o2=function(y,t,a){a!==void 0&&(JD(y,t*8),JD(y,a))}; Hb=function(y,t,a){a!==void 0&&o2(y,t,a?1:0)}; bG=function(y,t,a){a!==void 0&&(JD(y,t*8+2),t=a.length,JD(y,t),mI(y,t),y.V.set(a,y.pos),y.pos+=t)}; Bb=function(y,t,a){a!==void 0&&(j67(y,t,Math.ceil(Math.log2(a.length*4+2)/7)),mI(y,a.length*1.2),t=kk(a,y.V.subarray(y.pos)),y.pos+t>y.V.length&&(mI(y,t),t=kk(a,y.V.subarray(y.pos))),y.pos+=t,SHH(y))}; j67=function(y,t,a){a=a===void 0?2:a;JD(y,t*8+2);y.K.push(y.pos);y.K.push(a);y.pos+=a}; SHH=function(y){for(var t=y.K.pop(),a=y.K.pop(),r=y.pos-a-t;t--;){var E=t?128:0;y.view.setUint8(a++,r&127|E);r>>=7}}; cb=function(y,t,a,r,E){a&&(j67(y,t,E===void 0?3:E),r(y,a),SHH(y))}; g.qz=function(y,t){var a=new WHd(4096);t(a,y);return new Uint8Array(a.V.buffer,a.V.byteOffset,a.pos)}; g.Yk=function(y){var t=new Wb(new $k([B$(decodeURIComponent(y))]));y=ee(t,2);t=Qv(t,4);var a=Q6d[t];if(typeof a==="undefined")throw y=new g.RV("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:t}),g.pK(y),y;return{XJ:t,entityType:a,entityId:y}}; g.DL=function(y,t){var a=a===void 0?0:a;var r=new WHd;bG(r,2,fu(y));y=vX2[t];if(typeof y==="undefined")throw a=new g.RV("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:t}),g.pK(a),a;o2(r,4,y);o2(r,5,1);t=new Uint8Array(r.V.buffer,r.V.byteOffset,r.pos);return encodeURIComponent(g.H$(t,a))}; gj=function(y,t,a,r){if(r===void 0)return r=Object.assign({},y[t]||{}),a=(delete r[a],r),r={},Object.assign({},y,(r[t]=a,r));var E={},h={};return Object.assign({},y,(h[t]=Object.assign({},y[t],(E[a]=r,E)),h))}; p5n=function(y,t,a,r,E){var h=y[t];if(h==null||!h[a])return y;r=g.sh(h[a],r,E==="REPEATED_FIELDS_MERGE_OPTION_APPEND");E={};h={};return Object.assign({},y,(h[t]=Object.assign({},y[t],(E[a]=r,E)),h))}; ex7=function(y,t){y=y===void 0?{}:y;switch(t.type){case "ENTITY_LOADED":return t.payload.reduce(function(r,E){var h,F=(h=E.options)==null?void 0:h.persistenceOption;if(F&&F!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&F!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return r;if(!E.entityKey)return g.pK(Error("Missing entity key")),r;if(E.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!E.payload)return E=new g.RV("REPLACE entity mutation is missing a payload",{entityKey:E.entityKey}),g.pK(E),r;var x=g.k_(E.payload); return gj(r,x,E.entityKey,E.payload[x])}if(E.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{E=E.entityKey;try{var U=g.Yk(E).entityType;x=gj(r,U,E);break a}catch(O){if(O instanceof Error){E=new g.RV("Failed to deserialize entity key",{entityKey:E,originalMessage:O.message});g.pK(E);x=r;break a}throw O;}x=void 0}return x}if(E.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!E.payload)return E=new g.RV("UPDATE entity mutation is missing a payload",{entityKey:E.entityKey}),g.pK(E),r;x=g.k_(E.payload);var C,z;return p5n(r, x,E.entityKey,E.payload[x],(C=E.fieldMask)==null?void 0:(z=C.mergeOptions)==null?void 0:z.repeatedFieldsMergeOption)}return r},y); case "REPLACE_ENTITY":var a=t.payload;return gj(y,a.entityType,a.key,a.ph);case "REPLACE_ENTITIES":return Object.keys(t.payload).reduce(function(r,E){var h=t.payload[E];return Object.keys(h).reduce(function(F,x){return gj(F,E,x,h[x])},r)},y); case "UPDATE_ENTITY":return a=t.payload,p5n(y,a.entityType,a.key,a.ph,a.dxr);default:return y}}; iG=function(y,t,a){return y[t]?y[t][a]||null:null}; Ku=function(y){return window.Int32Array?new Int32Array(y):Array(y)}; tL=function(y){g.H.call(this);this.counter=[0,0,0,0];this.K=new Uint8Array(16);this.V=16;if(!ldN){var t,a=new Uint8Array(256),r=new Uint8Array(256);var E=1;for(t=0;t<256;t++)a[E]=t,r[t]=E,E^=E<<1^(E>>7&&283);I2=new Uint8Array(256);Td=Ku(256);Gd=Ku(256);ZL=Ku(256);yU=Ku(256);for(var h=0;h<256;h++){E=h?r[255^a[h]]:0;E^=E<<1^E<<2^E<<3^E<<4;E=E&255^E>>>8^99;I2[h]=E;t=E<<1^(E>>7&&283);var F=t^E;Td[h]=t<<24|E<<16|E<<8|F;Gd[h]=F<<24|Td[h]>>>8;ZL[h]=E<<24|Gd[h]>>>8;yU[h]=E<<24|ZL[h]>>>8}ldN=!0}E=Ku(44);for(a= 0;a<4;a++)E[a]=y[4*a]<<24|y[4*a+1]<<16|y[4*a+2]<<8|y[4*a+3];for(r=1;a<44;a++)y=E[a-1],a%4||(y=(I2[y>>16&255]^r)<<24|I2[y>>8&255]<<16|I2[y&255]<<8|I2[y>>>24],r=r<<1^(r>>7&&283)),E[a]=E[a-4]^y;this.key=E}; uw7=function(y){for(var t=y.key,a=y.counter[0]^t[0],r=y.counter[1]^t[1],E=y.counter[2]^t[2],h=y.counter[3]^t[3],F=3;F>=0&&!(y.counter[F]=-~y.counter[F]);F--);for(var x,U,C=4;C<40;)F=Td[a>>>24]^Gd[r>>16&255]^ZL[E>>8&255]^yU[h&255]^t[C++],x=Td[r>>>24]^Gd[E>>16&255]^ZL[h>>8&255]^yU[a&255]^t[C++],U=Td[E>>>24]^Gd[h>>16&255]^ZL[a>>8&255]^yU[r&255]^t[C++],h=Td[h>>>24]^Gd[a>>16&255]^ZL[r>>8&255]^yU[E&255]^t[C++],a=F,r=x,E=U;y=y.K;F=t[40];y[0]=I2[a>>>24]^F>>>24;y[1]=I2[r>>16&255]^F>>16&255;y[2]=I2[E>>8&255]^ F>>8&255;y[3]=I2[h&255]^F&255;F=t[41];y[4]=I2[r>>>24]^F>>>24;y[5]=I2[E>>16&255]^F>>16&255;y[6]=I2[h>>8&255]^F>>8&255;y[7]=I2[a&255]^F&255;F=t[42];y[8]=I2[E>>>24]^F>>>24;y[9]=I2[h>>16&255]^F>>16&255;y[10]=I2[a>>8&255]^F>>8&255;y[11]=I2[r&255]^F&255;F=t[43];y[12]=I2[h>>>24]^F>>>24;y[13]=I2[a>>16&255]^F>>16&255;y[14]=I2[r>>8&255]^F>>8&255;y[15]=I2[E&255]^F&255}; EU=function(){if(!aH&&!g.IU){if(rX)return rX;var y;rX=(y=window.crypto)==null?void 0:y.subtle;var t,a,r;if(((t=rX)==null?0:t.importKey)&&((a=rX)==null?0:a.sign)&&((r=rX)==null?0:r.encrypt))return rX;rX=void 0}}; g.AL=function(y){var t=EU();t&&(this.V=new hL(y,t));this.K=new g.FJ(y)}; hL=function(y,t){this.K=y;this.subtleCrypto=t}; VOx=function(y,t,a){var r,E;return g.m(function(h){switch(h.V){case 1:if(y.V){h.xG(2);break}return g.u(h,y.subtleCrypto.importKey("raw",y.K,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:y.V=h.K;case 2:return r={name:"AES-CTR",counter:a,length:128},g.u(h,y.subtleCrypto.encrypt(r,y.V,t),4);case 4:return E=h.K,h.return(new Uint8Array(E))}})}; g.FJ=function(y){this.K=y}; xe=function(y){this.L=new Uint8Array(64);this.Y=new Uint8Array(64);this.D=0;this.J=new Uint8Array(64);this.K=0;this.L.set(y);this.Y.set(y);for(y=0;y<64;y++)this.L[y]^=92,this.Y[y]^=54;this.reset()}; nXV=function(y,t,a){for(var r=y.W,E=y.V[0],h=y.V[1],F=y.V[2],x=y.V[3],U=y.V[4],C=y.V[5],z=y.V[6],O=y.V[7],M,L,w,d=0;d<64;)d<16?(r[d]=w=t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3],a+=4):(M=r[d-2],L=r[d-15],w=r[d-7]+r[d-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((L>>>7|L<<25)^(L>>>18|L<<14)^L>>>3),r[d]=w),M=O+sU[d]+w+((U>>>6|U<<26)^(U>>>11|U<<21)^(U>>>25|U<<7))+(U&C^~U&z),L=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&h^E&F^h&F),O=M+L,x+=M,d++,d<16?(r[d]=w=t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3],a+=4):(M= r[d-2],L=r[d-15],w=r[d-7]+r[d-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((L>>>7|L<<25)^(L>>>18|L<<14)^L>>>3),r[d]=w),M=z+sU[d]+w+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&U^~x&C),L=((O>>>2|O<<30)^(O>>>13|O<<19)^(O>>>22|O<<10))+(O&E^O&h^E&h),z=M+L,F+=M,d++,d<16?(r[d]=w=t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3],a+=4):(M=r[d-2],L=r[d-15],w=r[d-7]+r[d-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((L>>>7|L<<25)^(L>>>18|L<<14)^L>>>3),r[d]=w),M=C+sU[d]+w+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&x^ ~F&U),L=((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+(z&O^z&E^O&E),C=M+L,h+=M,d++,d<16?(r[d]=w=t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3],a+=4):(M=r[d-2],L=r[d-15],w=r[d-7]+r[d-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((L>>>7|L<<25)^(L>>>18|L<<14)^L>>>3),r[d]=w),M=U+sU[d]+w+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&F^~h&x),L=((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+(C&z^C&O^z&O),w=O,O=x,x=w,w=z,z=F,F=w,w=C,C=h,h=w,U=E+M,E=M+L,d++;y.V[0]=E+y.V[0]|0;y.V[1]=h+y.V[1]|0;y.V[2]=F+y.V[2]|0;y.V[3]= x+y.V[3]|0;y.V[4]=U+y.V[4]|0;y.V[5]=C+y.V[5]|0;y.V[6]=z+y.V[6]|0;y.V[7]=O+y.V[7]|0}; JRz=function(y){var t=new Uint8Array(32),a=64-y.K;y.K>55&&(a+=64);var r=new Uint8Array(a);r[0]=128;for(var E=y.D*8,h=1;h<9;h++){var F=E%256;r[a-h]=F;E=(E-F)/256}y.update(r);for(a=0;a<8;a++)t[a*4]=y.V[a]>>>24,t[a*4+1]=y.V[a]>>>16&255,t[a*4+2]=y.V[a]>>>8&255,t[a*4+3]=y.V[a]&255;mGF(y);return t}; mGF=function(y){y.V=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];y.W=[];y.W.length=64;y.D=0;y.K=0}; oXb=function(y){this.V=y}; H47=function(y,t,a){y=new xe(y.V);y.update(t);y.update(a);t=JRz(y);y.update(y.L);y.update(t);t=JRz(y);y.reset();return t}; b47=function(y){this.K=y}; Bcz=function(y,t,a,r){var E,h,F;return g.m(function(x){switch(x.V){case 1:if(y.V){x.xG(2);break}return g.u(x,r.importKey("raw",y.K,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:y.V=x.K;case 2:return E=new Uint8Array(t.length+a.length),E.set(t),E.set(a,t.length),h={name:"HMAC",hash:"SHA-256"},g.u(x,r.sign(h,y.V,E),4);case 4:return F=x.K,x.return(new Uint8Array(F))}})}; cRN=function(y,t,a){y.Y||(y.Y=new oXb(y.K));return H47(y.Y,t,a)}; qHz=function(y,t,a){var r,E;return g.m(function(h){if(h.V==1){r=EU();if(!r)return h.return(cRN(y,t,a));g.xs(h,3);return g.u(h,Bcz(y,t,a,r),5)}if(h.V!=3)return h.return(h.K);E=g.Uy(h);g.ls(E);aH=!0;return h.return(cRN(y,t,a))})}; DGd=function(y){for(var t="",a=0;a=0||Vh(y,0,"gad_source",y.search(nE))>=0}; yV7=function(){this.V=new Map}; abd=function(y,t){var a=Qq().resolve(tgb);if(Z47(t)){var r=m0(t,"gclid");t={handleEvent:function(x){y&&!y.closed&&typeof y.postMessage==="function"&&x&&x.origin&&x.source===y&&x.data&&x.data.action==="gcl_setup"&&y.postMessage(Object.assign({},{action:"gcl_transfer"},r&&{gclid:r},{gadSource:2}),x.origin)}}; for(var E=g.p(a.V),h=E.next();!h.done;h=E.next()){var F=g.p(h.value);h=F.next().value;F=F.next().value;if(h.closed)try{window.removeEventListener("message",F),a.V.delete(h)}catch(x){g.pK(x)}}y&&a.V.size<15&&(a.V.set(y,t),window.addEventListener("message",t))}}; $e=function(y,t,a){if(!t)return y.length>=1?y[y.length-1]:null;for(var r=g.p(y),E=r.next();!E.done;E=r.next())if(E=E.value,E.width&&E.height&&(a&&E.width>=t||!a&&E.height>=t))return E;for(t=y.length-1;t>=0;t--)if(a&&y[t].width||!a&&y[t].height)return y[t];return y[0]}; UU=function(){this.state=1;this.lK=null;this.bW=void 0}; ED2=function(y,t,a,r,E,h){var F=F===void 0?"trayride":F;a?(y.UR(2),g.F3(g.ei(a),function(){if(window[F])rVn(y,r,F,E);else{y.UR(3);var x=ieH(a),U=document.getElementById(x);U&&(DRF(x),U.parentNode.removeChild(U));g.ls(new g.RV("BL:ULB",""+a))}},h)):t?(h=g.SU("SCRIPT"),t instanceof uA?(h.textContent=Vk(t),nb(h)):h.textContent=t,h.nonce=lA(document),document.head.appendChild(h),document.head.removeChild(h),window[F]?rVn(y,r,F,E):(y.UR(4),g.ls(new g.RV("BL:ULBJ")))):g.ls(new g.RV("BL:ULV"))}; rVn=function(y,t,a,r){y.UR(5);var E=!!y.bW&&hpd.includes(g.Wv(y.bW)||"");try{var h=new Cd({program:t,globalName:a,T3:{disable:!g.WE("att_web_record_metrics")||!g.WE("att_skip_metrics_for_cookieless_domains_ks")&&E,ZP:"aGIf"}});h.zQ.then(function(){y.UR(6);r&&r(t)}); y.lO(h)}catch(F){y.UR(7),F instanceof Error&&g.ls(F)}}; Ck=function(){var y=g.jc("yt.abuse.playerAttLoader");return y&&["bgvma","bgvmb","bgvmc"].every(function(t){return t in y})?y:null}; zT=function(){UU.apply(this,arguments)}; OU=function(y){this.zZ=y}; Fa7=function(y,t,a){for(var r=!1,E=g.p(y.IY.entries()),h=E.next();!h.done;h=E.next())h=g.p(h.value).next().value,h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.f1==="core"&&(r=!0);if(r){a:if(!a){y=g.p(y.IY.entries());for(a=y.next();!a.done;a=y.next())if(r=g.p(a.value),a=r.next().value,r=r.next().value,a.slotType==="SLOT_TYPE_IN_PLAYER"&&a.f1==="core"){a=r.layoutId;break a}a=void 0}a?t.M8(a):Ug("No triggering layout ID available when attempting to mute.")}}; Lk=function(y,t){this.KD=y;this.tL=t}; Ml=function(){}; wX=function(){}; xhN=function(y){g.H.call(this);var t=this;this.X7=y;this.V=new Map;RH(this,"commandExecutorCommand",function(a,r,E){AVN(t,a.commands,r,E)}); RH(this,"clickTrackingParams",function(){})}; s8x=function(y,t){RH(y,t.FA(),function(a,r,E){t.Ex(a,r,E)})}; RH=function(y,t,a){y.Qv();y.V.get(t)&&g.pK(Error("Extension name "+t+" already registered"));y.V.set(t,a)}; AVN=function(y,t,a,r){t=t===void 0?[]:t;y.Qv();var E=[],h=[];t=g.p(t);for(var F=t.next();!F.done;F=t.next())F=F.value,g.P(F,$hb)||g.P(F,Uh2)?E.push(F):h.push(F);E=g.p(E);for(t=E.next();!t.done;t=E.next())PM(y,t.value,a,r);h=g.p(h);for(E=h.next();!E.done;E=h.next())PM(y,E.value,a,r)}; PM=function(y,t,a,r){y.Qv();t.loggingUrls&&CR1(y,"loggingUrls",t.loggingUrls,a,r);t=g.p(Object.entries(t));for(var E=t.next();!E.done;E=t.next()){var h=g.p(E.value);E=h.next().value;h=h.next().value;E==="openPopupAction"?y.X7.get().Zx("innertubeCommand",{openPopupAction:h}):E==="confirmDialogEndpoint"?y.X7.get().Zx("innertubeCommand",{confirmDialogEndpoint:h}):zp1.hasOwnProperty(E)||CR1(y,E,h,a,r)}}; CR1=function(y,t,a,r,E){if((y=y.V.get(t))&&typeof y==="function")try{y(a,r,E)}catch(h){g.pK(h)}else t=new g.RV("Unhandled field",t),g.ls(t)}; Nl=function(y,t,a){this.dK=y;this.V=t;this.Um=a;fs(Qq(),{Sv:tgb,Mj:yV7})}; dX=function(y){this.value=y}; XJ=function(y){this.value=y}; ke=function(y){this.value=y}; fk=function(y){this.value=y}; WM=function(y){this.value=y}; jC=function(y){this.value=y}; var r1x=function(){return MH[A[3]](this,4)}; var SC=function(y){this.value=y},QU=function(){dX.apply(this,arguments)},vM=function(y){this.value=y},pk=function(y){this.value=y},eC=function(y){this.value=y},lO=function(y){this.value=y},uO=function(y){this.value=y},VU=function(y){this.value=y},nk=function(y){this.value=y},mj=function(y){this.value=y},JL=function(y){this.value=y},oH=function(y){this.value=y},HM=function(){dX.apply(this,arguments)},bO=function(y){this.value=y},BM=function(y){this.value=y},cM=function(y){this.value=y},ql=function(y){this.value= y},Ye=function(y){this.value=y},Di=function(y){this.value=y},gX=function(y){this.value=y},iO=function(y){this.value=y}; var O7z=function(y,t){return Q2[A[3]](this,5,y,t)}; Kk=function(y){this.value=y}; IH=function(y){this.value=y}; TT=function(y){this.value=y}; GT=function(y){this.value=y}; Zi=function(y){this.value=y}; yF=function(y){this.value=y}; tp=function(y){this.value=y}; aP=function(y){this.value=y}; rv=function(y){this.value=y}; Et=function(y){this.value=y}; hp=function(y){this.value=y}; Fj=function(y){this.value=y}; Ap=function(y){this.value=y}; xb=function(y){this.value=y}; $b=function(y){this.value=y}; Ut=function(y){this.value=y}; C9=function(y){this.value=y}; zw=function(y){this.value=y}; Ot=function(y){this.value=y}; L9=function(y){this.value=y}; MS=function(y){this.value=y}; wv=function(y){this.value=y}; RP=function(y){this.value=y}; Pl=function(y){this.value=y}; NS=function(y){this.value=y}; dv=function(y){this.value=y}; Xj=function(y){this.value=y}; kb=function(y){this.value=y}; f9=function(y){this.value=y}; Wl=function(y){this.value=y}; jY=function(y){this.value=y}; SY=function(y){this.value=y}; QF=function(){dX.apply(this,arguments)}; vl=function(y){this.value=y}; p9=function(){dX.apply(this,arguments)}; eY=function(){dX.apply(this,arguments)}; lU=function(){dX.apply(this,arguments)}; uU=function(){dX.apply(this,arguments)}; VF=function(){dX.apply(this,arguments)}; n9=function(y){this.value=y}; me=function(y){this.value=y}; Jp=function(y){this.value=y}; oP=function(y){this.value=y}; bU=function(y,t,a){if(a&&!a.includes(y.layoutType))return!1;t=g.p(t);for(a=t.next();!a.done;a=t.next())if(!Hl(y.clientMetadata,a.value))return!1;return!0}; Bl=function(){return""}; Os1=function(y,t){switch(y){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 t(y),8}}; cl=function(y,t,a,r){r=r===void 0?!1:r;cd.call(this,y);this.jq=a;this.jh=r;this.args=[];t&&this.args.push(t)}; I=function(y,t,a,r){r=r===void 0?!1:r;cd.call(this,y);this.jq=a;this.jh=r;this.args=[];t&&this.args.push(t)}; qS=function(y){var t=new Map;y.forEach(function(a){t.set(a.V(),a)}); this.V=t}; Hl=function(y,t){return y.V.has(t)}; Yb=function(y,t){y=y.V.get(t);if(y!==void 0)return y.get()}; D1=function(y){return Array.from(y.V.keys())}; gv=function(y,t,a){if(a&&a!==y.slotType)return!1;t=g.p(t);for(a=t.next();!a.done;a=t.next())if(!Hl(y.clientMetadata,a.value))return!1;return!0}; Mg7=function(y){var t;return((t=La7.get(y))==null?void 0:t.FF)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; K9=function(y,t){var a={type:t.slotType,controlFlowManagerLayer:wDH.get(t.f1)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};t.slotEntryTrigger&&(a.entryTriggerType=t.slotEntryTrigger.triggerType);t.slotPhysicalPosition!==1&&(a.slotPhysicalPosition=t.slotPhysicalPosition);if(y){a.debugData={slotId:t.slotId};if(y=t.slotEntryTrigger)a.debugData.slotEntryTriggerData=iU(y);y=t.slotFulfillmentTriggers;a.debugData.fulfillmentTriggerData=[];y=g.p(y);for(var r=y.next();!r.done;r=y.next())a.debugData.fulfillmentTriggerData.push(iU(r.value)); t=t.slotExpirationTriggers;a.debugData.expirationTriggerData=[];t=g.p(t);for(y=t.next();!y.done;y=t.next())a.debugData.expirationTriggerData.push(iU(y.value))}return a}; Rpy=function(y,t){var a={type:t.layoutType,controlFlowManagerLayer:wDH.get(t.f1)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};y&&(a.debugData={layoutId:t.layoutId});return a}; iU=function(y,t){var a={type:y.triggerType};t!=null&&(a.category=t);y.triggeringSlotId!=null&&(a.triggerSourceData||(a.triggerSourceData={}),a.triggerSourceData.associatedSlotId=y.triggeringSlotId);y.triggeringLayoutId!=null&&(a.triggerSourceData||(a.triggerSourceData={}),a.triggerSourceData.associatedLayoutId=y.triggeringLayoutId);return a}; PRN=function(y,t,a,r){t={opportunityType:t};y&&(r||a)&&(r=g.v$(r||[],function(E){return K9(y,E)}),t.debugData=Object.assign({},a&&a.length>0?{associatedSlotId:a}:{},r.length>0?{slots:r}:{})); return t}; Tw=function(y,t){return function(a){return NuV(IP(y),t.slotId,t.slotType,t.slotPhysicalPosition,t.f1,t.slotEntryTrigger,t.slotFulfillmentTriggers,t.slotExpirationTriggers,a.layoutId,a.layoutType,a.f1)}}; NuV=function(y,t,a,r,E,h,F,x,U,C,z){return{adClientDataEntry:{slotData:K9(y,{slotId:t,slotType:a,slotPhysicalPosition:r,f1:E,slotEntryTrigger:h,slotFulfillmentTriggers:F,slotExpirationTriggers:x,clientMetadata:new qS([])}),layoutData:Rpy(y,{layoutId:U,layoutType:C,f1:z,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],ez:new Map,clientMetadata:new qS([]),CJ:{}})}}}; Z1=function(y){this.YG=y;y=Math.random();var t=this.YG.get();t=g.Gw(t.C.G().experiments,"html5_debug_data_log_probability");t=Number.isFinite(t)&&t>=0&&t<=1?t:0;this.V=y>31));o2(y,16,t.j5r);o2(y,17,t.detailedNetworkType);o2(y,18,t.KZ);o2(y,19,t.sL);o2(y,21,t.uze);o2(y,23,t.Bf);o2(y,28,t.FU);o2(y,29,t.A9X);o2(y,34,t.visibility);a=t.playbackRate;if(a!==void 0){var r=new ArrayBuffer(4);(new Float32Array(r))[0]=a;a=(new Uint32Array(r))[0];if(a!==void 0)for(JD(y,285),mI(y,4),r=0;r<4;)y.view.setUint8(y.pos,a&255),a>>=8,y.pos+=1,r+=1}o2(y,36,t.kA); cb(y,38,t.mediaCapabilities,Uq1,3);o2(y,39,t.h1e);o2(y,40,t.GL);o2(y,44,t.playerState);Hb(y,46,t.aV);o2(y,48,t.Qp);o2(y,50,t.c7);o2(y,51,t.Lv);o2(y,54,t.D3);if(t.Mc)for(a=0;a>31));Bb(y,2,t.message)}; Nf1=function(y,t){o2(y,1,t.clientState);cb(y,2,t.mxv,R$V,1)}; wzx=function(y,t){bG(y,1,t.P21);cb(y,2,t.z31,Pxd,3);cb(y,3,t.coldStartInfo,Nf1,3)}; Mwb=function(y,t){o2(y,1,t.type);bG(y,2,t.value)}; Lp2=function(y,t){Bb(y,1,t.hl);Bb(y,12,t.deviceMake);Bb(y,13,t.deviceModel);o2(y,16,t.clientName);Bb(y,17,t.clientVersion);Bb(y,18,t.osName);Bb(y,19,t.osVersion)}; dq7=function(y,t){Bb(y,1,t.name);Bb(y,2,t.value)}; NB=function(y,t){Bb(y,1,t.url);if(t.GK)for(var a=0;a55?"60":t>49?"50":t>39?"48":"")));this.qualityLabel=y;this.V=U||"";this.primaries=C||""}; WU=function(y,t){var a=Math.max(y,t);y=Math.min(y,t);t=QP[0];for(var r=0;r=Math.floor(h*16/9)*1.3||y>=h*1.3)return t;t=E}return"tiny"}; et=function(y,t,a){a=a===void 0?{}:a;this.id=y;this.mimeType=t;a.Hb>0||(a.Hb=16E3);Object.assign(this,a);y=g.p(this.id.split(";"));this.itag=y.next().value;this.V=y.next().value;this.containerType=vU(t);this.G7=pi[this.itag]||""}; lH=function(y){return y.G7==="9"||y.G7==="("||y.G7==="9h"||y.G7==="(h"}; FZz=function(y){return y.G7==="H"||y.G7==="h"}; uH=function(y){return y.G7==="9h"||y.G7==="(h"}; Afd=function(y){return!!y.YJ&&!!y.YJ.fairplay&&(y.G7==="("||y.G7==="(h"||y.G7==="A"||y.G7==="MEAC3")||VP&&!!y.YJ&&y.G7==="1e"}; ol=function(y){return y.G7==="1"||y.G7==="1h"||VP&&y.G7==="1e"}; HU=function(y){return y.G7==="mac3"||y.G7==="meac3"||y.G7==="m"||y.G7==="i"||xTx(y)}; xTx=function(y){return y.G7==="MAC3"||y.G7==="MEAC3"||y.G7==="M"||y.G7==="I"}; g.bH=function(y){return y.containerType===1}; sa1=function(y){return y.G7==="("||y.G7==="(h"||y.G7==="H"||VP&&y.G7==="1e"}; BU=function(y){return y.mimeType==="application/x-mpegURL"}; g.cU=function(y,t){return{itag:+y.itag,lmt:t?0:y.lastModified,xtags:y.V||""}}; $TN=function(y){var t=navigator.mediaCapabilities;if(t==null||!t.decodingInfo||y.G7==="f")return Promise.resolve();var a={type:y.audio&&y.video?"file":"media-source"};y.video&&(a.video={contentType:y.mimeType,width:y.video.width||640,height:y.video.height||360,bitrate:y.Hb*8||1E6,framerate:y.video.fps||30});y.audio&&(a.audio={contentType:y.mimeType,channels:""+(y.audio.numChannels||2),bitrate:y.Hb*8||128E3,samplerate:y.audio.sampleRate||44100});return t.decodingInfo(a).then(function(r){y.K=r})}; qB=function(y){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(y)}; Y8=function(y){return/(vp9|vp09|vp8|avc1|av01)/.test(y)}; DG=function(y){return y.includes("vtt")||y.includes("text/mp4")}; vU=function(y){return y.indexOf("/mp4")>=0?1:y.indexOf("/webm")>=0?2:y.indexOf("/x-flv")>=0?3:y.indexOf("/vtt")>=0?4:0}; gg=function(y,t,a,r,E,h,F){var x=new zM;t in g.jt||(t="small");t==="light"&&(t="tiny");r&&E?(E=Number(E),r=Number(r)):(E=g.jt[t],r=Math.round(E*16/9));h=new St(r,E,0,null,void 0,t,h,F);y=unescape(y.replace(/"/g,'"'));return new et(a,y,{audio:x,video:h})}; iH=function(y,t){return{start:function(a){return y[a]}, end:function(a){return t[a]}, length:y.length}}; UTn=function(y,t,a){for(var r=[],E=[],h=0;h=t)return a}catch(r){}return-1}; TM=function(y,t){return Il(y,t)>=0}; CIF=function(y,t){if(!y)return NaN;t=Il(y,t);return t>=0?y.start(t):NaN}; GM=function(y,t){if(!y)return NaN;t=Il(y,t);return t>=0?y.end(t):NaN}; ZG=function(y){return y&&y.length?y.end(y.length-1):NaN}; yX=function(y){return ZG(y)>0}; tu=function(y,t){y=GM(y,t);return y>=0?y-t:0}; ac=function(y,t,a){for(var r=[],E=[],h=0;ha||(r.push(Math.max(t,y.start(h))-t),E.push(Math.min(a,y.end(h))-t));return iH(r,E)}; rA=function(y,t,a,r){g.FM.call(this);var E=this;this.ER=y;this.start=t;this.end=a;this.isActive=r;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.S0={error:function(){!E.Qv()&&E.isActive&&E.publish("error",E)}, updateend:function(){!E.Qv()&&E.isActive&&E.publish("updateend",E)}}; this.ER.LI(this.S0);this.jM=this.isActive}; hu=function(y,t,a,r,E,h){g.FM.call(this);var F=this;this.wN=y;this.iq=t;this.id=a;this.containerType=r;this.G7=E;this.ji=h;this.qe=this.cq=this.lx=null;this.f5=!1;this.appendWindowStart=this.timestampOffset=0;this.Yd=iH([],[]);this.v_=!1;this.In=[];this.qL=EK?[]:void 0;this.handler=function(U){return F.publish(U.type,F)}; var x;if((x=this.wN)==null?0:x.addEventListener)this.wN.addEventListener("updateend",this.handler),this.wN.addEventListener("error",this.handler)}; Fv=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Au=function(y,t){this.Pb=y;this.V=t===void 0?!1:t;this.K=!1}; xq=function(y,t,a){a=a===void 0?!1:a;g.H.call(this);this.mediaElement=y;this.tF=t;this.isView=a;this.D=0;this.L=!1;this.J=!0;this.hF=0;this.callback=null;this.Z=!1;this.tF||(this.iq=this.mediaElement.YE());this.events=new g.Ci(this);g.c(this,this.events);this.Y=new Au(this.tF?window.URL.createObjectURL(this.tF):this.iq.webkitMediaSourceURL,!0);y=this.tF||this.iq;um(this.events,y,["sourceopen","webkitsourceopen"],this.tiX);um(this.events,y,["sourceclose","webkitsourceclose"],this.Cxu);this.W={updateend:this.RW}}; sK=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; zOn=function(y){return window.MediaSource?new xq(y,new window.MediaSource,!1):window.ManagedMediaSource?new xq(y,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new xq(y,new window.WebKitMediaSource,!1):new xq(y,void 0,!1)}; OD7=function(y,t){$q(y)?g.jv(function(){t(y)}):y.callback=t}; LZN=function(y,t,a){if(UK){var r;y.mediaElement.kS("rms",{l:"mswssb",sr:(r=y.mediaElement.Om)==null?void 0:r.xn()},!1);t.LI(y.W,y);a.LI(y.W,y)}y.V=t;y.K=a;g.c(y,t);g.c(y,a)}; C8=function(y){return!!y.V||!!y.K}; $q=function(y){try{return zy(y)==="open"}catch(t){return!1}}; zy=function(y){if(y.tF)return y.tF.readyState;switch(y.iq.webkitSourceState){case y.iq.SOURCE_OPEN:return"open";case y.iq.SOURCE_ENDED:return"ended";default:return"closed"}}; OK=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; MI7=function(y,t,a,r){if(!y.V||!y.K)return null;var E=y.V.isView()?y.V.ER:y.V,h=y.K.isView()?y.K.ER:y.K,F=new xq(y.mediaElement,y.tF,!0);F.Y=y.Y;LZN(F,new rA(E,t,a,r),new rA(h,t,a,r));$q(y)||y.V.NN(y.V.fJ());return F}; L8=function(y){var t;(t=y.V)==null||t.iL();var a;(a=y.K)==null||a.iL();y.J=!1}; M2=function(){var y=this;this.ZZ=this.Kv=c1V;this.promise=new g.Qn(function(t,a){y.Kv=t;y.ZZ=a})}; wA=function(){g.H.call(this);this.Vf=!1;this.Pb=null;this.DE=this.o5=!1;this.hF=new g.MM;this.AF=this.Om=null;g.c(this,this.hF)}; wmx=function(y,t,a){y.isPaused()||y.getCurrentTime()>t||a>10||(y.play(),g.Nt(function(){wmx(y,y.getCurrentTime(),a+1)},500))}; ROz=function(y,t){y.Pb&&y.Pb.equals(t)||(y.Pb&&y.Pb.dispose(),y.Pb=t)}; Rc=function(y){y.wH()&&(y.Om&&y.Om.pw("rs_s"),Kx&&y.getCurrentTime()>0&&y.seekTo(0),y.Fn(),y.load(),ROz(y,null));delete y.W}; g.PY=function(y,t,a){this.mS=t===void 0?null:t;this.seekSource=a===void 0?null:a;this.state=y||64}; N2=function(y,t,a){a=a===void 0?!1:a;return PIV(y,t.getCurrentTime(),(0,g.Wx)(),t.PK(),a)}; dA=function(y,t,a,r){if(!(t===y.state&&a===y.mS&&r===y.seekSource||t!==void 0&&(t&128&&!a||t&2&&t&16))){var E;if(E=t)E=t||y.state,E=!!(E&16||E&32);y=new g.PY(t,a,E?r?r:y.seekSource:null)}return y}; Xv=function(y,t,a){return dA(y,y.state|t,null,a===void 0?null:a)}; kq=function(y,t){return dA(y,y.state&~t,null,null)}; f8=function(y,t,a,r){return dA(y,(y.state|t)&~a,null,r===void 0?null:r)}; g.D=function(y,t){return!!(y.state&t)}; g.WY=function(y,t){return t.state===y.state&&t.mS===y.mS}; jL=function(y){return y.isPlaying()&&!g.D(y,16)&&!g.D(y,32)}; SL=function(y){return g.D(y,128)?-1:g.D(y,2)?0:g.D(y,2048)?3:g.D(y,64)?-1:g.D(y,1)&&!g.D(y,32)?3:g.D(y,8)?1:g.D(y,4)?2:-1}; vY=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L,w,d){g.H.call(this);var k=this;this.Wp=y;this.slot=t;this.layout=a;this.Um=r;this.KJ=E;this.B4=h;this.v4=F;this.mJ=x;this.a7=U;this.xW=C;this.position=O;this.D=M;this.YG=L;this.Cq=w;this.context=d;this.sV=!0;this.Y=!1;this.OR="not_rendering";this.V=!1;y=Yb(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Xf=new U4(a.ez,this.Um,y,a.layoutId);var e;y=((e=QX(this))==null?void 0:e.progressCommands)||[];this.K=new W7(U,y,a.layoutId,function(){return k.R2()})}; QX=function(y){return Yb(y.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; N0d=function(y){Ug("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)}; dT7=function(y){var t;return((t=t0(y.B4.get(),2))==null?void 0:t.clientPlaybackNonce)||""}; Xm7=function(y,t){switch(t){case "normal":y.uY("complete");break;case "skipped":y.uY("skip");break;case "abandoned":wT(y.Xf,"impression")&&y.uY("abandon")}}; kz1=function(y,t){y.Y||(t=new g.CD(t.state,new g.PY),y.Y=!0);return t}; fkn=function(y,t){Tk(t)?y.xW(1):g.Og(t,4)&&!g.Og(t,2)&&y.uS();zz(t,4)<0&&!(zz(t,2)<0)&&y.bS()}; WZ7=function(y){y.position===0&&(y.mJ.get(),y=Yb(y.layout.clientMetadata,"metadata_type_ad_placement_config").kind,y={adBreakType:p8(y)},pM("ad_bl"),g.eW(y))}; eL=function(y,t){L$(y.Xf,t,!y.V)}; Sgu=function(y){var t;return(((t=QX(y))==null?void 0:t.progressCommands)||[]).findIndex(function(a){return!!g.P(a==null?void 0:a.command,jaz)})!==-1}; g.lT=function(y,t,a){uy(y,a)||nM(y,t,a);uy(y,"video_to_ad")||nM(y,t,"video_to_ad");uy(y,"ad_to_video")||nM(y,t,"ad_to_video");uy(y,"ad_to_ad")||nM(y,t,"ad_to_ad")}; uT=function(y){vY.call(this,y.Wp,y.slot,y.Gv,y.Um,y.KJ,y.B4,y.v4,y.mJ,y.a7,y.xW,y.rb,y.Cc,y.YQ,y.YG,y.Cq,y.context);var t=this;this.yE=!0;this.BD=this.Kx=0;this.WV=iv(function(){t.Wp.e_(t.slot,t.layout)}); this.X7=y.X7;this.rb=y.rb;this.yd=iv(function(){t.OR!=="rendering_stop_requested"&&t.rb(t);t.layoutExitReason?t.Wp.Ju(t.slot,t.layout,t.layoutExitReason):N0d(t)}); this.timer=new g.nZ(200);this.timer.listen("tick",function(){t.QD()}); g.c(this,this.timer)}; Qa7=function(y){y.BD=Date.now();VX(y,y.Kx);y.timer.start()}; VX=function(y,t){t={current:t/1E3,duration:y.R2()/1E3};y.X7.get().Zx("onAdPlaybackProgress",t)}; Ju=function(y){vY.call(this,y.callback,y.slot,y.Gv,y.Um,y.KJ,y.B4,y.v4,y.mJ,y.a7,y.xW,y.rb,y.Cc,y.YQ,y.YG,y.Cq,y.context);var t=this;this.adCpn="";this.lP=this.Dw=0;this.WV=iv(function(){t.Wp.e_(t.slot,t.layout)}); this.yd=iv(function(){t.OR!=="rendering_stop_requested"&&t.rb(t);t.layoutExitReason?t.Wp.Ju(t.slot,t.layout,t.layoutExitReason):N0d(t)}); this.qD=y.qD;this.BO=y.BO;this.KM=y.KM;this.X7=y.X7;this.ys=y.ys;this.rb=y.rb;V4(this.YG.get(),"html5_disable_media_load_timeout")||(this.EH=new g.Te(function(){t.xa("load_timeout",new cl("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); y=n8(this.YG.get());var a=mq(this.YG.get());y&&a&&(this.Nd=new g.Te(function(){var r=Yb(t.layout.clientMetadata,"metadata_type_preload_player_vars");r&&t.BO.get().C.preloadVideoByPlayerVars(r,2,300)}))}; vZ7=function(y){return new uT(Object.assign({},y,{Wp:y.callback,xW:function(){}}))}; pmb=function(y){return new Ju(Object.assign({},y,{xW:function(t){y.X7.get().Zx("onAdIntroStateChange",t)}}))}; eOx=function(y){return new Ju(Object.assign({},y,{xW:function(t){y.X7.get().gX(t)}}))}; lku=function(y){for(var t=y.Gv,a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],r=g.p(C$()),E=r.next();!E.done;E=r.next())a.push(E.value);if(n$(t,{Hj:a,Jj:["LAYOUT_TYPE_MEDIA_BREAK"]}))return vZ7(y);t=y.Gv;a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];r=g.p(C$());for(E=r.next();!E.done;E=r.next())a.push(E.value);if(n$(t,{Hj:a,Jj:["LAYOUT_TYPE_MEDIA"]}))return Hl(y.Gv.clientMetadata,"metadata_type_ad_intro")?pmb(y):eOx(y)}; oc=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L){g.H.call(this);this.callback=y;this.B4=t;this.wV=a;this.BO=r;this.v4=E;this.Yn=h;this.mJ=F;this.mz=x;this.slot=U;this.layout=C;this.zR=z;this.rd=O;this.PO=M;this.YG=L;this.sV=!0;this.GW=!1;this.ym=[];this.J9=-1;this.eI=!1}; HY=function(y){return y.ym[y.J9]}; BY=function(y,t,a){var r=HY(y);y.J9===y.ym.length-1&&Ug("Unexpected skip with target requested during the last sublayout");if(a.renderingContent===void 0&&a.layoutId!==bT(r,t,a)){Ug("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",r.Sz(),r.Em(),{requestingSlot:t,requestingLayout:a});var E=!1}else E=!0;if(E){a:{if((E=Yb(r.Em().clientMetadata,"metadata_type_ad_pod_skip_target"))&&E>0&&E0)){Ug("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",y.slot,y.layout,{indexToPlay:t,layoutId:y.layout.layoutId});break a}y.J9=t;t=HY(y);if(y.J9>0){var a=y.mJ.get();a.K=!1;var r={};a.V&&a.videoId&&(r.cttAuthInfo={token:a.V,videoId:a.videoId});ly("ad_to_ad",r)}a=g.P(t.Em().renderingContent,i_);if(a==null?0:a.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var E; a=!((E=y.Yn.get().dh4.get(a.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&E)}else a=!1;a?cY(y,y.J9+1):t.startRendering(t.Em())}}; nZb=function(y){(y=HY(y))&&y.rB()}; mTV=function(y){return new oc(y.H$f,y.B4,y.wV,y.BO,y.v4,y.Yn,y.mJ,y.mz,y.slot,y.layout,y.zR,y.rd,y.PO,y.YG)}; gA=function(y,t,a,r,E,h,F){g.H.call(this);this.callback=y;this.BO=t;this.v4=a;this.mJ=r;this.Py=E;this.PO=h;this.YG=F;this.sV=!0;this.GW=!1}; JfN=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L,w,d,k,e,v,l,V,B){function b(){var rx=lku(Object.assign({},aV,{callback:{e_:y.e_.bind(y),Ju:y.Ju.bind(y),p_:y.p_.bind(y)},slot:a,Gv:r,rb:function(){Dq(F,r)}, Cc:0,YQ:1,Cq:!0}));return rx?new gA(y,z,M,d,rx,E,l):rx} function Z(){var rx,Fb=(rx=r.GJ)!=null?rx:Yb(r.clientMetadata,"metadata_type_sub_layouts");rx=mTV({H$f:y,B4:O,wV:V,BO:z,v4:M,Yn:L,mJ:d,mz:t,slot:a,layout:r,zR:h,rd:F,PO:E,YG:l});for(var zN=[],En={N_:0};En.N_E&&F.XH(z,E-r);return z}; qgn=function(y,t,a){var r=Yb(t.clientMetadata,"metadata_type_sodar_extension_data");if(r)try{cVx(a,r)}catch(E){Ug("Unexpected error when loading Sodar",y,t,{error:E})}}; Yg2=function(y,t,a,r,E,h,F){Zq(y,t,new g.CD(a,new g.PY),r,E,F,!1,h)}; Zq=function(y,t,a,r,E,h,F,x){F=F===void 0?!0:F;Tk(a)&&Gk(E,0,null)&&(!wT(y,"impression")&&x&&x(),y.uY("impression"));wT(y,"impression")&&(g.Og(a,4)&&!g.Og(a,2)&&y.JV("pause"),zz(a,4)<0&&!(zz(a,2)<0)&&y.JV("resume"),g.Og(a,16)&&E>=.5&&y.JV("seek"),F&&g.Og(a,2)&&ym(y,a.state,t,r,E,h))}; ym=function(y,t,a,r,E,h,F,x,U){wT(y,"impression")&&(h?(h=E-r,h=h>=-1&&h<=2):h=Math.abs(r-E)<=1,tN(y,t,h?r:E,a,r,F,x&&h),h&&!U&&y.uY("complete"))}; tN=function(y,t,a,r,E,h,F){MA(y,a*1E3,F);E<=0||a<=0||(t==null?0:g.D(t,16))||(t==null?0:g.D(t,32))||(Gk(a,E*.25,r)&&(h&&!wT(y,"first_quartile")&&h("first"),y.uY("first_quartile")),Gk(a,E*.5,r)&&(h&&!wT(y,"midpoint")&&h("second"),y.uY("midpoint")),Gk(a,E*.75,r)&&(h&&!wT(y,"third_quartile")&&h("third"),y.uY("third_quartile")))}; DTu=function(y,t){wT(y,"impression")&&y.JV(t?"fullscreen":"end_fullscreen")}; gZx=function(y){wT(y,"impression")&&y.JV("clickthrough")}; iDd=function(y){y.JV("active_view_measurable")}; KZn=function(y){wT(y,"impression")&&!wT(y,"seek")&&y.JV("active_view_fully_viewable_audible_half_duration")}; Iku=function(y){wT(y,"impression")&&!wT(y,"seek")&&y.JV("active_view_viewable")}; T0y=function(y){wT(y,"impression")&&!wT(y,"seek")&&y.JV("audio_audible")}; Gzb=function(y){wT(y,"impression")&&!wT(y,"seek")&&y.JV("audio_measurable")}; ZD7=function(y,t,a,r,E,h,F,x,U,C,z,O,M){this.callback=y;this.slot=t;this.layout=a;this.wV=r;this.Xf=E;this.v4=h;this.Jc=F;this.KJ=x;this.qD=U;this.YG=C;this.Um=z;this.B4=O;this.KM=M;this.yE=!0;this.F7=this.OR=null;this.adCpn=void 0;this.V=!1}; ya2=function(y,t,a){var r;Gy(y.Um.get(),"ads_qua","cpn."+Yb(y.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((r=t0(y.B4.get(),2))==null?void 0:r.clientPlaybackNonce)+";qt."+t+";clr."+a)}; tWn=function(y,t){var a,r;Gy(y.Um.get(),"ads_imp","cpn."+Yb(y.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((a=t0(y.B4.get(),2))==null?void 0:a.clientPlaybackNonce)+";clr."+t+";skp."+!!g.P((r=Yb(y.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:r.skipOrPreviewRenderer,aS))}; rh=function(y){return{enterMs:Yb(y.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Yb(y.clientMetadata,"metadata_type_layout_exit_ms")}}; E3=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L){iT.call(this,y,t,a,r,E,F,x,U,C,O);this.Jc=h;this.qD=z;this.KJ=M;this.YG=L;this.F7=this.OR=null}; a5x=function(y,t){var a;Gy(y.Um.get(),"ads_imp","acpn."+((a=t0(y.B4.get(),2))==null?void 0:a.clientPlaybackNonce)+";clr."+t)}; ray=function(y,t,a){var r;Gy(y.Um.get(),"ads_qua","cpn."+Yb(y.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((r=t0(y.B4.get(),2))==null?void 0:r.clientPlaybackNonce)+";qt."+t+";clr."+a)}; hN=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L,w,d,k,e,v,l,V){this.PO=y;this.zR=t;this.rd=a;this.B4=r;this.wV=E;this.v4=h;this.Yn=F;this.Um=x;this.Jc=U;this.ye=C;this.KJ=z;this.qD=O;this.BO=M;this.KM=L;this.mJ=w;this.X7=d;this.a7=k;this.ys=e;this.YG=v;this.V=l;this.context=V}; Fi=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L,w,d,k,e){this.PO=y;this.zR=t;this.rd=a;this.Um=r;this.KJ=E;this.qD=h;this.BO=F;this.B4=x;this.v4=U;this.Yn=C;this.KM=z;this.mJ=O;this.X7=M;this.a7=L;this.ys=w;this.YG=d;this.wV=k;this.context=e}; EjF=function(y,t,a,r){hG.call(this,"survey-interstitial",y,t,a,r)}; AN=function(y,t,a,r,E){rT.call(this,a,y,t,r);this.Um=E;y=Yb(t.clientMetadata,"metadata_type_ad_placement_config");this.Xf=new U4(t.ez,E,y,t.layoutId)}; xw=function(y){return Math.round(y.width)+"x"+Math.round(y.height)}; $w=function(y,t,a){a=a===void 0?s3:a;a.widthy.width*y.height*.2)return{RF:3,GQ:501,errorMessage:"ad("+xw(a)+") to container("+xw(y)+") ratio exceeds limit."};if(a.height>y.height/3-t)return{RF:3,GQ:501,errorMessage:"ad("+xw(a)+") covers container("+xw(y)+") center."}}; hb2=function(y,t){var a=Yb(y.clientMetadata,"metadata_type_ad_placement_config");return new U4(y.ez,t,a,y.layoutId)}; U3=function(y){return Yb(y.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; CV=function(y,t,a,r){hG.call(this,"invideo-overlay",y,t,a,r);this.interactionLoggingClientData=r}; zm=function(y,t,a,r,E,h,F,x,U,C,z,O){rT.call(this,h,y,t,E);this.Um=a;this.D=F;this.v4=x;this.a7=U;this.YG=C;this.J=z;this.L=O;this.Xf=hb2(t,a)}; Fwy=function(){var y=["metadata_type_invideo_overlay_ad_renderer"];C$().forEach(function(t){y.push(t)}); return{Hj:y,Jj:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; O3=function(y,t,a,r,E,h,F,x,U,C,z,O,M){rT.call(this,h,y,t,E);this.Um=a;this.D=F;this.Z=x;this.v4=U;this.a7=C;this.YG=z;this.J=O;this.L=M;this.Xf=hb2(t,a)}; Aau=function(){for(var y=["metadata_type_invideo_overlay_ad_renderer"],t=g.p(C$()),a=t.next();!a.done;a=t.next())y.push(a.value);return{Hj:y,Jj:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; LV=function(y){this.v4=y;this.V=!1}; x_V=function(y,t,a){hG.call(this,"survey",y,{},t,a)}; MQ=function(y,t,a,r,E,h,F){rT.call(this,a,y,t,r);this.D=E;this.v4=h;this.YG=F}; sWN=function(y,t,a,r,E,h,F,x,U,C){this.VD=y;this.v4=t;this.Um=a;this.D=r;this.KJ=E;this.K=h;this.Y=F;this.a7=x;this.YG=U;this.V=C}; $_7=function(y,t,a,r,E,h,F,x,U,C){this.VD=y;this.v4=t;this.Um=a;this.D=r;this.KJ=E;this.K=h;this.Y=F;this.a7=x;this.YG=U;this.V=C}; wh=function(y,t,a,r,E,h,F,x,U,C){B7.call(this,y,t,a,r,E,h,F,U);this.T1=x;this.B4=C}; U_7=function(){var y=Dcz();y.Hj.push("metadata_type_ad_info_ad_metadata");return y}; CyF=function(y,t,a,r,E,h,F){this.VD=y;this.v4=t;this.Um=a;this.K=r;this.T1=E;this.V=h;this.B4=F}; zbx=function(y,t,a,r,E,h,F,x){this.VD=y;this.v4=t;this.Um=a;this.K=r;this.T1=E;this.V=h;this.YG=F;this.B4=x}; RS=function(y,t){this.adPodIndex=y;this.V=t.length;this.adBreakLengthSeconds=t.reduce(function(r,E){return r+E},0); var a=0;for(y+=1;y0}; aN=function(y){return!!(y.fEX&&y.slot&&y.layout)}; rG=function(y){var t,a=(t=y.config)==null?void 0:t.adPlacementConfig;y=y.renderer;return!(!a||a.kind==null||!y)}; QW7=function(y){if(!KV(y.adLayoutMetadata))return!1;y=y.renderingContent;return g.P(y,i_)||g.P(y,K$)||g.P(y,SFz)||g.P(y,DH)||g.P(y,gT)?!0:!1}; EW=function(y){return y.playerVars!==void 0&&y.pings!==void 0&&y.externalVideoId!==void 0}; UW=function(y){if(!KV(y.adLayoutMetadata))return!1;y=y.renderingContent;var t=g.P(y,h8);return t?Fu(t):(t=g.P(y,A8))?EW(t):(t=g.P(y,x1))?t.playerVars!==void 0:(t=g.P(y,i_))?t.durationMilliseconds!==void 0:g.P(y,sW)||g.P(y,$1)?!0:!1}; Fu=function(y){y=(y.sequentialLayouts||[]).map(function(t){return g.P(t,C_)}); return y.length>0&&y.every(UW)}; OW=function(y){return KV(y.adLayoutMetadata)?(y=g.P(y.renderingContent,zO))&&y.pings?!0:!1:!1}; uny=function(y){if(!KV(y.adLayoutMetadata))return!1;if(g.P(y.renderingContent,vjn)||g.P(y.renderingContent,L_))return!0;var t=g.P(y.renderingContent,Mu);return g.P(y.renderingContent,wG)||g.P(t==null?void 0:t.sidePanel,p_x)||g.P(t==null?void 0:t.sidePanel,ebx)||g.P(t==null?void 0:t.sidePanel,l5y)?!0:!1}; HM7=function(y){var t;(t=!y)||(t=y.adSlotMetadata,t=!((t==null?void 0:t.slotId)!==void 0&&(t==null?void 0:t.slotType)!==void 0));if(t||!(VW7(y)||y.slotEntryTrigger&&y.slotFulfillmentTriggers&&y.slotExpirationTriggers))return!1;var a;y=(a=y.fulfillmentContent)==null?void 0:a.fulfilledLayout;return(a=g.P(y,C_))?UW(a):(a=g.P(y,RN))?uny(a):(a=g.P(y,njz))?QW7(a):(a=g.P(y,m_1))?Wwz(a):(a=g.P(y,Ja1))?KV(a.adLayoutMetadata)?g.P(a.renderingContent,IS)?!0:!1:!1:(a=g.P(y,Po))?OW(a):(y=g.P(y,ojn))?KV(y.adLayoutMetadata)? g.P(y.renderingContent,L_)?!0:!1:!1:!1}; VW7=function(y){var t;y=g.P((t=y.fulfillmentContent)==null?void 0:t.fulfilledLayout,RN);var a;return y&&((a=y.adLayoutMetadata)==null?void 0:a.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&y.layoutExitNormalTriggers===void 0}; bMx=function(y){var t;return(y==null?void 0:(t=y.adSlotMetadata)==null?void 0:t.slotType)==="SLOT_TYPE_IN_PLAYER"}; BJ7=function(y){y=g.p(y||[]);for(var t=y.next();!t.done;t=y.next()){var a=g.P(t.value,Nu);if(a===void 0||!HM7(a))break;t=void 0;a=(t=a.fulfillmentContent)==null?void 0:t.fulfilledLayout;if((t=g.P(a,Po))&&OW(t))return!0}return!1}; qFH=function(y,t){var a;if((a=y.questions)==null||!a.length||!y.playbackCommands||(t===void 0||!t)&&y.questions.length!==1)return!1;y=g.p(y.questions);for(t=y.next();!t.done;t=y.next()){t=t.value;var r=a=void 0,E=((a=g.P(t,dG))==null?void 0:a.surveyAdQuestionCommon)||((r=g.P(t,Xu))==null?void 0:r.surveyAdQuestionCommon);if(!ca7(E))return!1}return!0}; YFy=function(y){y=((y==null?void 0:y.playerOverlay)||{}).instreamSurveyAdRenderer;var t;if(y)if(y.playbackCommands&&y.questions&&y.questions.length===1){var a,r=((t=g.P(y.questions[0],dG))==null?void 0:t.surveyAdQuestionCommon)||((a=g.P(y.questions[0],Xu))==null?void 0:a.surveyAdQuestionCommon);t=ca7(r)}else t=!1;else t=!1;return t}; ca7=function(y){if(!y)return!1;y=g.P(y.instreamAdPlayerOverlay,k1);var t=g.P(y==null?void 0:y.skipOrPreviewRenderer,aS),a=g.P(y==null?void 0:y.adInfoRenderer,f_);return(g.P(y==null?void 0:y.skipOrPreviewRenderer,Wo)||t)&&a?!0:!1}; D_n=function(y){return y.linearAds!=null&&KV(y.adLayoutMetadata)}; gjz=function(y){return y.linearAd!=null&&y.adVideoStart!=null}; iM7=function(y){if(isNaN(Number(y.timeoutSeconds))||!y.text||!y.ctaButton||!g.P(y.ctaButton,g.j7)||!y.brandImage)return!1;var t;return y.backgroundImage&&g.P(y.backgroundImage,S7)&&((t=g.P(y.backgroundImage,S7))==null?0:t.landscape)?!0:!1}; Q9=function(y,t,a,r,E,h,F,x){g.H.call(this);this.YG=y;this.V=t;this.K=r;this.B4=E;this.D=h;this.Y=F;this.BO=x}; TJN=function(y,t,a){var r,E=((r=a.adSlots)!=null?r:[]).map(function(x){return g.P(x,Nu)}); if(a.nG)if(Yb(t.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))ZX(y.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},t.slotId); else{if(y.YG.get().C.G().B("h5_check_forecasting_renderer_for_throttled_midroll")){var h=a.n4.filter(function(x){var U;return((U=x.renderer)==null?void 0:U.clientForecastingAdRenderer)!=null}); h.length!==0?Kwn(y.Y,h,E,t.slotId,a.ssdaiAdsConfig):ZX(y.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},t.slotId)}else ZX(y.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},t.slotId); I5u(y.D,t)}else{var F;r={x6:Math.round(((h=Yb(t.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:h.x6)||0),Y6:(F=Yb(t.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:F.Y6};h=Yb(t.clientMetadata,"metadata_type_cue_point");Kwn(y.Y,a.n4,E,t.slotId,a.ssdaiAdsConfig,r,h)}}; yD7=function(y,t,a,r,E,h,F,x){var U=t0(y.B4.get(),1);if(Gl7(y.YG.get())){var C=vo(y.K.get(),a,r,E,U.clientPlaybackNonce,U.vy,U.daiEnabled,U,h,F);ZM2(y,C);ZX(y.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return C},t)}else ZX(y.V.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return vo(y.K.get(),a,r,E,U.clientPlaybackNonce,U.vy,U.daiEnabled,U,h,F,x)},t)}; ZM2=function(y,t){t=g.p(t);for(var a=t.next();!a.done;a=t.next()){var r=a.value;if(r.slotType==="SLOT_TYPE_PLAYER_BYTES"&&r.fulfilledLayout)if(a=void 0,r.fulfilledLayout.renderingContent)a=Yb(r.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(r.fulfilledLayout.GJ){r=g.p(r.fulfilledLayout.GJ);for(var E=r.next();!E.done&&(E=E.value,!E.renderingContent||!(a=Yb(E.clientMetadata,"metadata_type_player_vars")));E=r.next());}}else a=void 0;if(a){y.BO.get().C.preloadVideoByPlayerVars(a, 2,300);break}}}; aLd=function(y,t,a,r,E,h,F){t=teF(t,h,Number(r.prefetchMilliseconds)||0,F);y=t instanceof I?t:p_(y,r,E,t,a);return y instanceof I?y:[y]}; rDF=function(y,t,a,r,E){var h=y5(y.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");r=[new kb({getAdBreakUrl:r.getAdBreakUrl,x6:0,Y6:0}),new me(!0)];y=t.pauseDurationMs?t.lactThresholdMs?{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new c2(y.V,h),slotFulfillmentTriggers:[new LwF(y.V)],slotExpirationTriggers:[new nV(y.V,E),new H2(y.V,h)],f1:"core",clientMetadata:new qS(r),adSlotLoggingData:a}:new I("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new I("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return y instanceof I?y:[y]}; Ek7=function(y){var t,a;return((t=y.renderer)==null?void 0:(a=t.adBreakServiceRenderer)==null?void 0:a.getAdBreakUrl)!==void 0}; e7=function(y,t,a){if(y.beforeContentVideoIdStartedTrigger)y=y.beforeContentVideoIdStartedTrigger?new P2(Bl,t,y.id):new I("Not able to create BeforeContentVideoIdStartedTrigger");else{if(y.layoutIdExitedTrigger){var r;t=(r=y.layoutIdExitedTrigger)!=null&&r.triggeringLayoutId?new W2(Bl,y.layoutIdExitedTrigger.triggeringLayoutId,y.id):new I("Not able to create LayoutIdExitedTrigger")}else{if(y.layoutExitedForReasonTrigger){var E,h;((E=y.layoutExitedForReasonTrigger)==null?0:E.triggeringLayoutId)&&((h= y.layoutExitedForReasonTrigger)==null?0:h.layoutExitReason)?(t=MWn(y.layoutExitedForReasonTrigger.layoutExitReason),y=t instanceof I?t:new fV(Bl,y.layoutExitedForReasonTrigger.triggeringLayoutId,[t],y.id)):y=new I("Not able to create LayoutIdExitedForReasonTrigger")}else{if(y.onLayoutSelfExitRequestedTrigger){var F;t=(F=y.onLayoutSelfExitRequestedTrigger)!=null&&F.triggeringLayoutId?new Vm(Bl,y.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,y.id):new I("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(y.onNewPlaybackAfterContentVideoIdTrigger)y= y.onNewPlaybackAfterContentVideoIdTrigger?new nV(Bl,t,y.id):new I("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(y.skipRequestedTrigger){var x;t=(x=y.skipRequestedTrigger)!=null&&x.triggeringLayoutId?new JN(Bl,y.skipRequestedTrigger.triggeringLayoutId,y.id):new I("Not able to create SkipRequestedTrigger")}else if(y.slotIdEnteredTrigger){var U;t=(U=y.slotIdEnteredTrigger)!=null&&U.triggeringSlotId?new oS(Bl,y.slotIdEnteredTrigger.triggeringSlotId,y.id):new I("Not able to create SlotIdEnteredTrigger")}else if(y.slotIdExitedTrigger){var C; t=(C=y.slotIdExitedTrigger)!=null&&C.triggeringSlotId?new H2(Bl,y.slotIdExitedTrigger.triggeringSlotId,y.id):new I("Not able to create SkipRequestedTrigger")}else if(y.surveySubmittedTrigger){var z;t=(z=y.surveySubmittedTrigger)!=null&&z.triggeringLayoutId?new Yw(Bl,y.surveySubmittedTrigger.triggeringLayoutId,y.id):new I("Not able to create SurveySubmittedTrigger")}else{if(y.mediaResumedTrigger)y=y.mediaResumedTrigger&&y.id?new w_7(y.id):new I("Not able to create MediaResumedTrigger");else{if(y.closeRequestedTrigger){var O; t=(O=y.closeRequestedTrigger)!=null&&O.triggeringLayoutId?new NQ(Bl,y.closeRequestedTrigger.triggeringLayoutId,y.id):new I("Not able to create CloseRequestedTrigger")}else if(y.slotIdScheduledTrigger){var M;t=(M=y.slotIdScheduledTrigger)!=null&&M.triggeringSlotId?new c2(Bl,y.slotIdScheduledTrigger.triggeringSlotId,y.id):new I("Not able to create SlotIdScheduledTrigger")}else{if(y.mediaTimeRangeTrigger){var L;r=Number((L=y.mediaTimeRangeTrigger)==null?void 0:L.offsetStartMilliseconds);var w;F=Number((w= y.mediaTimeRangeTrigger)==null?void 0:w.offsetEndMilliseconds);isFinite(r)&&isFinite(F)?(w=F,w===-1&&(w=a),a=r>w?new I("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:r,offsetEndMs:w},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",w===a&&r-500<=w):new fe(r,w),y=a instanceof I?a:new pV(Bl,t,a,!1,y.id)):y=new I("Not able to create MediaTimeRangeTrigger")}else if(y.contentVideoIdEndedTrigger)y=y.contentVideoIdEndedTrigger?new dh(Bl,t,!1,y.id):new I("Not able to create ContentVideoIdEndedTrigger"); else{if(y.layoutIdEnteredTrigger){var d;t=(d=y.layoutIdEnteredTrigger)!=null&&d.triggeringLayoutId?new kw(Bl,y.layoutIdEnteredTrigger.triggeringLayoutId,y.id):new I("Not able to create LayoutIdEnteredTrigger")}else if(y.timeRelativeToLayoutEnterTrigger){var k;t=(k=y.timeRelativeToLayoutEnterTrigger)!=null&&k.triggeringLayoutId?new DF(Bl,Number(y.timeRelativeToLayoutEnterTrigger.durationMs),y.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,y.id):new I("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(y.onDifferentLayoutIdEnteredTrigger){var e; t=(e=y.onDifferentLayoutIdEnteredTrigger)!=null&&e.triggeringLayoutId&&y.onDifferentLayoutIdEnteredTrigger.slotType&&y.onDifferentLayoutIdEnteredTrigger.layoutType?new lf(Bl,y.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,y.onDifferentLayoutIdEnteredTrigger.slotType,y.onDifferentLayoutIdEnteredTrigger.layoutType,y.id):new I("Not able to create CloseRequestedTrigger")}else{if(y.liveStreamBreakStartedTrigger)y=y.liveStreamBreakStartedTrigger&&y.id?new v2(Bl,y.id):new I("Not able to create LiveStreamBreakStartedTrigger"); else if(y.liveStreamBreakEndedTrigger)y=y.liveStreamBreakEndedTrigger&&y.id?new jX(Bl,y.id):new I("Not able to create LiveStreamBreakEndedTrigger");else{if(y.liveStreamBreakScheduledDurationMatchedTrigger){var v;t=(v=y.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&v.breakDurationMs?new SX(Number(y.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,y.id):new I("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(y.liveStreamBreakScheduledDurationNotMatchedTrigger){var l; t=(l=y.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&l.breakDurationMs?new Qm(Number(y.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,y.id):new I("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(y.newSlotScheduledWithBreakDurationTrigger){var V;t=(V=y.newSlotScheduledWithBreakDurationTrigger)!=null&&V.breakDurationMs?new eX(Number(y.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,y.id):new I("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else t= y.prefetchCacheExpiredTrigger?new m3(Bl,y.id):new I("Not able to convert an AdsControlflowTrigger.");y=t}t=y}y=t}t=y}y=t}t=y}y=t}t=y}y=t}t=y}y=t}return y}; lL=function(y,t){t.V>=2&&(y.slot_pos=t.adPodIndex);y.autoplay="1"}; FIz=function(y,t,a,r,E,h,F,x){return t===null?new I("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:t,ActionCompanionAdRenderer:r}):[hMH(y,t,F,h,function(U){var C=U.slotId;U=x(U);var z=r.adLayoutLoggingData,O=new qS([new XJ(r),new VU(E)]);C=nF(a.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",C);var M={layoutId:C,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",f1:"core"};return{layoutId:C,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",ez:new Map, layoutExitNormalTriggers:[new nV(a.V,F)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:O,CJ:U(M),adLayoutLoggingData:z}})]}; ADV=function(y,t,a,r,E,h,F,x){return t===null?new I("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:t,TopBannerImageTextIconButtonedLayoutViewModel:r}):[hMH(y,t,F,h,function(U){var C=U.slotId;U=x(U);var z=r.adLayoutLoggingData,O=new qS([new ke(r),new VU(E)]);C=nF(a.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",C);var M={layoutId:C,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",f1:"core"};return{layoutId:C,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", ez:new Map,layoutExitNormalTriggers:[new nV(a.V,F)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:O,CJ:U(M),adLayoutLoggingData:z}})]}; Uz7=function(y,t,a,r,E,h){if(!h)for(t=g.p(t),h=t.next();!h.done;h=t.next())h=h.value,uL(y,h.renderer,h.config.adPlacementConfig.kind);y=Array.from(y.values()).filter(function(z){return xzx(z)}); t=[];h=g.p(y);for(var F=h.next(),x={};!F.done;x={zW:void 0},F=h.next()){x.zW=F.value;F=g.p(x.zW.GG);for(var U=F.next(),C={};!U.done;C={RP:void 0},U=F.next())C.RP=U.value,U=function(z,O){return function(M){return z.RP.T6(M,O.zW.instreamVideoAdRenderer.elementId,z.RP.R4)}}(C,x),C.RP.isContentVideoCompanion?t.push(s2n(a,r,E,x.zW.instreamVideoAdRenderer.elementId,C.RP.associatedCompositePlayerBytesLayoutId,C.RP.adSlotLoggingData,U)):y.length>1?t.push($zu(a,r,E,x.zW.instreamVideoAdRenderer.elementId,C.RP.adSlotLoggingData, function(z,O){return function(M){return z.RP.T6(M,O.zW.instreamVideoAdRenderer.elementId,z.RP.R4,z.RP.associatedCompositePlayerBytesLayoutId)}}(C,x))):t.push($zu(a,r,E,x.zW.instreamVideoAdRenderer.elementId,C.RP.adSlotLoggingData,U))}return t}; uL=function(y,t,a){if(t=CGN(t)){t=g.p(t);for(var r=t.next();!r.done;r=t.next())if((r=r.value)&&r.externalVideoId){var E=V9(y,r.externalVideoId);E.instreamVideoAdRenderer||(E.instreamVideoAdRenderer=r,E.GE=a)}else Ug("InstreamVideoAdRenderer without externalVideoId")}}; CGN=function(y){var t=[],a=y.sandwichedLinearAdRenderer&&y.sandwichedLinearAdRenderer.linearAd&&g.P(y.sandwichedLinearAdRenderer.linearAd,A8);if(a)return t.push(a),t;if(y.instreamVideoAdRenderer)return t.push(y.instreamVideoAdRenderer),t;if(y.linearAdSequenceRenderer&&y.linearAdSequenceRenderer.linearAds){y=g.p(y.linearAdSequenceRenderer.linearAds);for(a=y.next();!a.done;a=y.next())a=a.value,g.P(a,A8)&&t.push(g.P(a,A8));return t}return null}; xzx=function(y){if(y.instreamVideoAdRenderer===void 0)return Ug("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var t=g.p(y.GG),a=t.next();!a.done;a=t.next()){a=a.value;if(a.T6===void 0)return!1;if(a.R4===void 0)return Ug("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(y.GE===void 0||a.SN===void 0||y.GE!==a.SN&&a.SN!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(y.instreamVideoAdRenderer.elementId===void 0)return Ug("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:y.GE,"matching APSR kind":a.SN}),!1}return!0}; V9=function(y,t){y.has(t)||y.set(t,{instreamVideoAdRenderer:void 0,GE:void 0,adVideoId:t,GG:[]});return y.get(t)}; n_=function(y,t,a,r,E,h,F,x,U){E?V9(y,E).GG.push({are:t,SN:a,isContentVideoCompanion:r,R4:F,associatedCompositePlayerBytesLayoutId:h,adSlotLoggingData:x,T6:U}):Ug("Companion AdPlacementSupportedRenderer without adVideoId")}; m2=function(y){var t=0;y=g.p(y.questions);for(var a=y.next();!a.done;a=y.next())if(a=a.value,a=g.P(a,dG)||g.P(a,Xu)){var r=void 0;t+=((r=a.surveyAdQuestionCommon)==null?void 0:r.durationMilliseconds)||0}return t}; J8=function(y){var t,a,r,E,h=((a=g.P((t=y.questions)==null?void 0:t[0],dG))==null?void 0:a.surveyAdQuestionCommon)||((E=g.P((r=y.questions)==null?void 0:r[0],Xu))==null?void 0:E.surveyAdQuestionCommon),F;t=[].concat(g.i7(((F=y.playbackCommands)==null?void 0:F.instreamAdCompleteCommands)||[]),g.i7((h==null?void 0:h.timeoutCommands)||[]));var x,U,C,z,O,M,L,w,d,k,e,v,l,V,B,b,Z,aV,rx,Fb;return{impressionCommands:(x=y.playbackCommands)==null?void 0:x.impressionCommands,errorCommands:(U=y.playbackCommands)== null?void 0:U.errorCommands,muteCommands:(C=y.playbackCommands)==null?void 0:C.muteCommands,unmuteCommands:(z=y.playbackCommands)==null?void 0:z.unmuteCommands,pauseCommands:(O=y.playbackCommands)==null?void 0:O.pauseCommands,rewindCommands:(M=y.playbackCommands)==null?void 0:M.rewindCommands,resumeCommands:(L=y.playbackCommands)==null?void 0:L.resumeCommands,skipCommands:(w=y.playbackCommands)==null?void 0:w.skipCommands,progressCommands:(d=y.playbackCommands)==null?void 0:d.progressCommands,b2F:(k= y.playbackCommands)==null?void 0:k.clickthroughCommands,fullscreenCommands:(e=y.playbackCommands)==null?void 0:e.fullscreenCommands,activeViewViewableCommands:(v=y.playbackCommands)==null?void 0:v.activeViewViewableCommands,activeViewMeasurableCommands:(l=y.playbackCommands)==null?void 0:l.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(V=y.playbackCommands)==null?void 0:V.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(B=y.playbackCommands)== null?void 0:(b=B.activeViewTracking)==null?void 0:b.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(Z=y.playbackCommands)==null?void 0:(aV=Z.activeViewTracking)==null?void 0:aV.activeViewAudioMeasurableCommands,endFullscreenCommands:(rx=y.playbackCommands)==null?void 0:rx.endFullscreenCommands,abandonCommands:(Fb=y.playbackCommands)==null?void 0:Fb.abandonCommands,completeCommands:t}}; Oux=function(y,t,a,r,E,h,F){return function(x,U){return zMu(y,U.slotId,x,h,function(C,z){var O=U.layoutId;C=F(C);return oN(t,O,z,E,C,"LAYOUT_TYPE_SURVEY",[new TT(a),r],a.adLayoutLoggingData)})}}; wbd=function(y,t,a,r,E,h,F){if(!LIV(y))return new I("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:y});var x=y.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Mey(h,t,a,r,function(U){var C=U.slotId;U=F(U);C=nF(E.K.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",C);var z={layoutId:C,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",f1:"core"},O=new W2(E.V,r);return{layoutId:C,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",ez:new Map,layoutExitNormalTriggers:[O], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:new qS([new GT(x)]),CJ:U(z)}})]}; LIV=function(y){y=g.P(y==null?void 0:y.additionalPlayerOverlay,RMN);if(!y)return!1;var t=y.slidingMessages;return y.title&&t&&t.length!==0?!0:!1}; Nj7=function(y,t,a,r,E){var h;if((h=y.playerOverlay)==null||!h.instreamSurveyAdRenderer)return function(){return[]}; if(!YFy(y))return function(){return new I("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:y})}; var F=y.playerOverlay.instreamSurveyAdRenderer,x=m2(F);return x<=0?function(){return new I("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:F})}:function(U,C){var z=PG7(U,a,r,function(O){var M=O.slotId; O=C(O);var L=J8(F);M=nF(E.K.get(),"LAYOUT_TYPE_SURVEY",M);var w={layoutId:M,layoutType:"LAYOUT_TYPE_SURVEY",f1:"core"},d=new W2(E.V,r),k=new JN(E.V,M),e=new Yw(E.V,M),v=new d_7(E.V);return{layoutId:M,layoutType:"LAYOUT_TYPE_SURVEY",ez:new Map,layoutExitNormalTriggers:[d,v],layoutExitSkipTriggers:[k],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[e],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:new qS([new IH(F),new VU(t),new jY(x/1E3),new p9(L)]),CJ:O(w),adLayoutLoggingData:F.adLayoutLoggingData}}); U=wbd(y,a,z.slotId,r,E,U,C);return U instanceof I?U:[z].concat(g.i7(U))}}; Shy=function(y,t,a,r,E,h,F,x){F=F===void 0?!1:F;var U=[];try{var C=[];if(a.renderer.linearAdSequenceRenderer)var z=function(k){k=dz1(k.slotId,a,t,E(k),r,h,F);C=k.G5f;return k.gz}; else if(a.renderer.instreamVideoAdRenderer)z=function(k){var e=k.slotId;k=E(k);var v=F,l=a.config.adPlacementConfig,V=Xbb(l),B=V.pZ,b=V.TY;V=a.renderer.instreamVideoAdRenderer;var Z;if(V==null?0:(Z=V.playerOverlay)==null?0:Z.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var aV=Ho(V,v);Z=Math.min(B+aV.videoLengthSeconds*1E3,b);v=new RS(0,[aV.videoLengthSeconds]);b=aV.videoLengthSeconds;var rx=aV.playerVars,Fb=aV.instreamAdPlayerOverlayRenderer,zN= aV.playerOverlayLayoutRenderer,En=aV.adVideoId,Xb=kdy(a),TN=aV.ez;aV=aV.PA;var A7=V==null?void 0:V.adLayoutLoggingData;V=V==null?void 0:V.sodarExtensionData;e=nF(t.K.get(),"LAYOUT_TYPE_MEDIA",e);var b7={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA",f1:"core"};return{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA",ez:TN,layoutExitNormalTriggers:[new jX(t.V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:new qS([new bO(r), new Ut(b),new C9(rx),new L9(B),new MS(Z),Fb&&new BM(Fb),zN&&new cM(zN),new VU(l),new HM(En),new nk(v),new dv(Xb),V&&new Ot(V),new hp({current:null}),new RP({}),new uU(aV)].filter(fL7)),CJ:k(b7),adLayoutLoggingData:A7}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var O=WI7(y,r,a.adSlotLoggingData,z,x);U.push(O);for(var M=g.p(C),L=M.next();!L.done;L=M.next()){var w=L.value,d=w(y,E);if(d instanceof I)return d;U.push.apply(U,g.i7(d))}}catch(k){return new I(k,{errorMessage:k.message,AdPlacementRenderer:a,numberOfSurveyRenderers:j2F(a)})}return U}; j2F=function(y){y=(y.renderer.linearAdSequenceRenderer||{}).linearAds;return y!=null&&y.length?y.filter(function(t){var a,r;return((a=g.P(t,A8))==null?void 0:(r=a.playerOverlay)==null?void 0:r.instreamSurveyAdRenderer)!=null}).length:0}; dz1=function(y,t,a,r,E,h,F){var x=t.config.adPlacementConfig,U=Xbb(x),C=U.pZ,z=U.TY;U=(t.renderer.linearAdSequenceRenderer||{}).linearAds;if(U==null||!U.length)throw new TypeError("Expected linear ads");var O=[],M={Mu:C,Cc:0,NOG:O};U=U.map(function(w){return Q21(y,w,M,a,r,x,E,z,F)}).map(function(w,d){d=new RS(d,O); return w(d)}); var L=U.map(function(w){return w.Dy}); return{gz:vkn(a,y,C,L,x,kdy(t),r,z,h),G5f:U.map(function(w){return w.R0r})}}; Q21=function(y,t,a,r,E,h,F,x,U){var C=Ho(g.P(t,A8),U),z=a.Mu,O=a.Cc,M=Math.min(z+C.videoLengthSeconds*1E3,x);a.Mu=M;a.Cc++;a.NOG.push(C.videoLengthSeconds);var L,w,d=(L=g.P(t,A8))==null?void 0:(w=L.playerOverlay)==null?void 0:w.instreamSurveyAdRenderer;if(C.adVideoId==="nPpU29QrbiU"&&d==null)throw new TypeError("Survey slate media has no survey overlay");return function(k){lL(C.playerVars,k);var e,v,l=C.videoLengthSeconds,V=C.playerVars,B=C.ez,b=C.PA,Z=C.instreamAdPlayerOverlayRenderer,aV=C.playerOverlayLayoutRenderer, rx=C.adVideoId,Fb=(e=g.P(t,A8))==null?void 0:e.adLayoutLoggingData;e=(v=g.P(t,A8))==null?void 0:v.sodarExtensionData;v=nF(r.K.get(),"LAYOUT_TYPE_MEDIA",y);var zN={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",f1:"adapter"};k={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",ez:B,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"adapter",clientMetadata:new qS([new bO(F),new Ut(l),new C9(V),new L9(z),new MS(M), new wv(O),new hp({current:null}),Z&&new BM(Z),aV&&new cM(aV),new VU(h),new HM(rx),new nk(k),e&&new Ot(e),d&&new lU(d),new RP({}),new uU(b)].filter(fL7)),CJ:E(zN),adLayoutLoggingData:Fb};l=Nj7(g.P(t,A8),h,F,k.layoutId,r);return{Dy:k,R0r:l}}}; Ho=function(y,t){if(!y)throw new TypeError("Expected instream video ad renderer");if(!y.playerVars)throw new TypeError("Expected player vars in url encoded string");var a=f7(y.playerVars),r=Number(a.length_seconds);if(isNaN(r))throw new TypeError("Expected valid length seconds in player vars");var E=Number(y.trimmedMaxNonSkippableAdDurationMs);r=isNaN(E)?r:Math.min(r,E/1E3);E=y.playerOverlay||{};E=E.instreamAdPlayerOverlayRenderer===void 0?null:E.instreamAdPlayerOverlayRenderer;var h=y.playerOverlay|| {};h=h.playerOverlayLayoutRenderer===void 0?null:h.playerOverlayLayoutRenderer;var F=a.video_id;F||(F=(F=y.externalVideoId)?F:void 0);if(!F)throw new TypeError("Expected valid video id in IVAR");if(t&&r===0){var x;t=(x=pb7[F])!=null?x:r}else t=r;return{playerVars:a,videoLengthSeconds:t,instreamAdPlayerOverlayRenderer:E,playerOverlayLayoutRenderer:h,adVideoId:F,ez:y.pings?$L(y.pings):new Map,PA:s4(y.pings)}}; kdy=function(y){y=Number(y.driftRecoveryMs);return isNaN(y)||y<=0?null:y}; Xbb=function(y){var t=y.adTimeOffset||{};y=t.offsetEndMilliseconds;t=Number(t.offsetStartMilliseconds);if(isNaN(t))throw new TypeError("Expected valid start offset");y=Number(y);if(isNaN(y))throw new TypeError("Expected valid end offset");return{pZ:t,TY:y}}; eMx=function(y){var t,a=(t=Yb(y.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:t.current;if(!a)return null;t=Yb(y.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var r=y.layoutId,E=Yb(y.clientMetadata,"metadata_type_content_cpn"),h=Yb(y.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),F=Yb(y.clientMetadata,"metadata_type_player_underlay_renderer"),x=Yb(y.clientMetadata,"metadata_type_ad_placement_config"),U=Yb(y.clientMetadata,"metadata_type_video_length_seconds"); var C=Hl(y.clientMetadata,"metadata_type_layout_enter_ms")&&Hl(y.clientMetadata,"metadata_type_layout_exit_ms")?(Yb(y.clientMetadata,"metadata_type_layout_exit_ms")-Yb(y.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{lk:r,contentCpn:E,v$:a,Zo:t,instreamAdPlayerOverlayRenderer:h,instreamAdPlayerUnderlayRenderer:F,adPlacementConfig:x,videoLengthSeconds:U,S3:C,inPlayerLayoutId:Yb(y.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Yb(y.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Ven=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L,w){r=y5(r,"SLOT_TYPE_PLAYER_BYTES");y=lLb(E,y,F,a,r,U,C);if(y instanceof I)return y;var d;C=(d=Yb(y.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:d.layoutId;if(!C)return new I("Invalid adNotify layout");t=uNN(C,E,h,a,x,t,U,z,O,M,L,w,F);return t instanceof I?t:[y].concat(g.i7(t))}; uNN=function(y,t,a,r,E,h,F,x,U,C,z,O,M){a=nkx(t,a,r,h,F,x,U,C,z,O,M);if(a instanceof I)return a;y=mzN(t,y,F,E,a);return y instanceof I?y:[].concat(g.i7(y.D$),[y.Nm])}; oku=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L){t=nkx(y,t,a,E,h,x,U,C,z,O,M,L);if(t instanceof I)return t;y=JDy(y,a,h,F,r,x.US,t);return y instanceof I?y:y.D$.concat(y.Nm)}; nkx=function(y,t,a,r,E,h,F,x,U,C,z,O){var M=bL(r);return M instanceof cl?new I(M):C.C.G().experiments.Nr("html5_refactor_in_player_slot_generation")?function(L){var w=new RS(0,[M.DK]);L=HuN(t,M.layoutId,M.V$,a,Bo(M.playerVars,M.mB,h,U,w),M.DK,E,w,F(L),x.get(M.V$.externalVideoId),O);w=[];if(M.V$.playerOverlay.instreamAdPlayerOverlayRenderer){var d=eMx(L);if(!d)return Ug("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,L),{layout:L,D$:[]};w=[bu2(y, d.contentCpn,d.lk,function(e){return co(t,e.slotId,"core",d,Tw(z,e))},d.inPlayerSlotId)].concat(g.i7(w)); if(d.instreamAdPlayerUnderlayRenderer&&qu(C)){var k=d.instreamAdPlayerUnderlayRenderer;w=[Bjy(y,d.contentCpn,d.lk,function(e){return cDn(t,e.slotId,k,d.adPlacementConfig,d.lk,Tw(z,e))})].concat(g.i7(w))}}return{layout:L, D$:w}}:function(L){var w=new RS(0,[M.DK]); return{layout:HuN(t,M.layoutId,M.V$,a,Bo(M.playerVars,M.mB,h,U,w),M.DK,E,w,F(L),x.get(M.V$.externalVideoId),O),D$:[]}}}; bL=function(y){if(!y.playerVars)return new cl("No playerVars available in InstreamVideoAdRenderer.");var t,a;if(y.elementId==null||y.playerVars==null||y.playerOverlay==null||((t=y.playerOverlay)==null?void 0:t.instreamAdPlayerOverlayRenderer)==null&&((a=y.playerOverlay)==null?void 0:a.playerOverlayLayoutRenderer)==null||y.pings==null||y.externalVideoId==null)return new cl("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:y});t=f7(y.playerVars);a=Number(t.length_seconds);isNaN(a)&& (a=0,Ug("Expected valid length seconds in player vars but got NaN"));return{layoutId:y.elementId,V$:y,playerVars:t,mB:y.playerVars,DK:a}}; Bo=function(y,t,a,r,E){y.iv_load_policy=r;t=f7(t);if(t.cta_conversion_urls)try{y.cta_conversion_urls=JSON.parse(t.cta_conversion_urls)}catch(h){Ug(h)}a.VQ&&(y.ctrl=a.VQ);a.Rs&&(y.ytr=a.Rs);a.aG&&(y.ytrcc=a.aG);a.isMdxPlayback&&(y.mdx="1");y.vvt&&(y.vss_credentials_token=y.vvt,a.MH&&(y.vss_credentials_token_type=a.MH),a.mdxEnvironment&&(y.mdx_environment=a.mdxEnvironment));lL(y,E);return y}; qhd=function(y){var t=new Map;y=g.p(y);for(var a=y.next();!a.done;a=y.next())(a=a.value.renderer.remoteSlotsRenderer)&&a.hostElementId&&t.set(a.hostElementId,a);return t}; Y1=function(y){return y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; YhH=function(y){return y!=null}; Zu7=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L,w){for(var d=[],k=g.p(y),e=k.next();!e.done;e=k.next())if(e=e.value,!VW7(e)&&!bMx(e)){var v=Dzz(e,r,a.vy);if(v instanceof I)return v;var l=void 0,V={slotId:e.adSlotMetadata.slotId,slotType:e.adSlotMetadata.slotType,slotPhysicalPosition:(l=e.adSlotMetadata.slotPhysicalPosition)!=null?l:1,f1:"core",slotEntryTrigger:v.slotEntryTrigger,slotFulfillmentTriggers:v.slotFulfillmentTriggers,slotExpirationTriggers:v.slotExpirationTriggers},B=g.P(e.fulfillmentContent.fulfilledLayout, C_);if(B){if(!UW(B))return new I("Invalid PlayerBytesAdLayoutRenderer");l=O&&!(Y1(e)&&e.slotEntryTrigger.beforeContentVideoIdStartedTrigger);v=v.slotFulfillmentTriggers.some(function(b){return b instanceof SX}); v=l?gk7(V,e.adSlotMetadata.triggerEvent,B,a,r,h,y,M,v,L):iuN(V,e.adSlotMetadata.triggerEvent,B,t,a,r,E,h,F,x,U,C,y,z,e.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof I)return v;B=[];w?B.push(new $b({current:w})):B.push(new $b({current:null}));Y1(e)&&B.push(new Jp({PL:Y1(e)&&!!e.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));l&&B.push(new RP({}));a.US&&B.push(new eY({}));e=Object.assign({},V,{clientMetadata:new qS(B),fulfilledLayout:v.layout,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData}); d.push.apply(d,g.i7(v.D$));d.push(e)}else if(l=g.P(e.fulfillmentContent.fulfilledLayout,RN)){if(!uny(l))return new I("Invalid PlayerUnderlayAdLayoutRenderer");l=KIz(l,r,a.vy,h,V,e.adSlotMetadata.triggerEvent,e.adSlotMetadata.triggeringSourceLayoutId);if(l instanceof I)return l;e=Object.assign({},V,{clientMetadata:new qS([]),fulfilledLayout:l,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData});d.push(e)}else if(l=g.P(e.fulfillmentContent.fulfilledLayout,ojn)){if(!KV(l.adLayoutMetadata)||!g.P(l.renderingContent, L_))return new I("Invalid InPlayerOrganicOverlayAdLayoutRenderer");l=l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?ILH(l,r,a.vy,h,V):new I("LayoutType ["+l.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(l instanceof I)return l;e=Object.assign({},V,{clientMetadata:new qS([]),fulfilledLayout:l,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData});d.push(e)}else if(l=g.P(e.fulfillmentContent.fulfilledLayout,m_1)){if(!Wwz(l))return new I("Invalid AboveFeedAdLayoutRenderer"); l=TjV(l,r,a.vy,h,V,e.adSlotMetadata.triggerEvent,e.adSlotMetadata.triggeringSourceLayoutId);if(l instanceof I)return l;e=Object.assign({},V,{clientMetadata:new qS([]),fulfilledLayout:l,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData});d.push(e)}else if(l=g.P(e.fulfillmentContent.fulfilledLayout,Ja1)){if(!KV(l.adLayoutMetadata)||!g.P(l.renderingContent,IS))return new I("Invalid BelowPlayerAdLayoutRenderer");l=TjV(l,r,a.vy,h,V,e.adSlotMetadata.triggerEvent,e.adSlotMetadata.triggeringSourceLayoutId); if(l instanceof I)return l;e=Object.assign({},V,{clientMetadata:new qS([]),fulfilledLayout:l,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData});d.push(e)}else if(l=g.P(e.fulfillmentContent.fulfilledLayout,Po)){if(!OW(l))return new I("Invalid PlayerBytesSequenceItemAdLayoutRenderer");l=GdF(l,r,a.vy,h,V,e.adSlotMetadata.triggerEvent);if(l instanceof I)return l;e=Object.assign({},V,{clientMetadata:new qS([]),fulfilledLayout:l,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData});d.push(e)}else return new I("Unable to retrieve a client slot ["+ V.slotType+"] from a given AdSlotRenderer")}return d}; GdF=function(y,t,a,r,E,h){var F={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,f1:"core"};t=Dg(y,t,a);return t instanceof I?t:(a=g.P(y.renderingContent,zO))&&a.pings?Object.assign({},F,{renderingContent:y.renderingContent,ez:$L(a.pings)},t,{CJ:Tw(r,E)(F),clientMetadata:new qS([new VU(gG(h)),new p9({progressCommands:a.progressCommands})]),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData}):new I("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; TjV=function(y,t,a,r,E,h,F){var x={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,f1:"core"};t=Dg(y,t,a);if(t instanceof I)return t;a=[];a.push(new VU(gG(h)));h==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&F!==void 0&&a.push(new Zi(F));return Object.assign({},x,{renderingContent:y.renderingContent,ez:new Map([["impression",yLz(y)]])},t,{CJ:Tw(r,E)(x),clientMetadata:new qS(a),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData})}; KIz=function(y,t,a,r,E,h,F){if(y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var x=g.P(y.renderingContent,Mu),U=g.P(y.renderingContent,L_);F=new Map;if(x){F=g.P(x.sidePanel,ebx);if(!F){y=new I("DismissablePanelTextPortraitImageRenderer is missing");break a}F=new Map([["impression",F.impressionPings||[]],["resume",F.resumePings||[]]])}else if(!U){y=new I("AdsEngagementPanelSectionListViewModel is missing");break a}x={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType, f1:"core"};t=Dg(y,t,a);y=t instanceof I?t:Object.assign({},x,{renderingContent:y.renderingContent,ez:F},t,{CJ:Tw(r,E)(x),clientMetadata:new qS([new VU(gG(h))]),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData})}else y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.P(y.renderingContent,vjn)?(F={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,f1:"core"},t=Dg(y,t,a),y=t instanceof I?t:Object.assign({},F,{renderingContent:y.renderingContent,ez:new Map}, t,{CJ:Tw(r,E)(F),clientMetadata:new qS([new VU(gG(h))]),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData})):y=new I("CounterfactualRenderer is missing"):y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?y=new I("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?y=new I("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"? g.P(y.renderingContent,wG)?(h={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,f1:"core"},t=Dg(y,t,a),y=t instanceof I?t:F?Object.assign({},h,{renderingContent:y.renderingContent,ez:new Map},t,{CJ:Tw(r,E)(h),clientMetadata:new qS([new Zi(F)]),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData}):new I("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):y=new I("DisplayUnderlayTextGridCardsLayoutViewModel is missing"): y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.P(y.renderingContent,L_)?(h={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,f1:"core"},t=Dg(y,t,a),y=t instanceof I?t:Object.assign({},h,{renderingContent:y.renderingContent,ez:new Map([])},t,{CJ:Tw(r,E)(h),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new qS([])})):y=new I("AdsEngagementPanelSectionListViewModel is missing"):y=new I("LayoutType ["+y.adLayoutMetadata.layoutType+ "] is invalid for PlayerUnderlaySlot");return y}; ILH=function(y,t,a,r,E){if(!g.P(y.renderingContent,L_))return new I("AdsEngagementPanelSectionListViewModel is missing");var h={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,f1:"core"};t=Dg(y,t,a);return t instanceof I?t:Object.assign({},h,{renderingContent:y.renderingContent,ez:new Map([])},t,{CJ:Tw(r,E)(h),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new qS([])})}; gk7=function(y,t,a,r,E,h,F,x,U,C){if((C==null?void 0:C.x6)===void 0||(C==null?void 0:C.Y6)===void 0)return new I("Cached ad break range from cue point is missing");var z=Dg(a,E,r.vy);if(z instanceof I)return z;z={layoutExitMuteTriggers:[],layoutExitNormalTriggers:z.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.P(a.renderingContent,A8))return y=tCb(y,t,a,z,E,h,F,r.vy,C.x6,C.Y6),y instanceof I?y:y.UY===void 0?new I("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:y.layout,D$:[y.UY]};var O=g.P(a.renderingContent,h8);if(O){if(!KV(a.adLayoutMetadata))return new I("Invalid ad layout metadata");if(!Fu(O))return new I("Invalid sequential layout");O=O.sequentialLayouts.map(function(M){return M.playerBytesAdLayoutRenderer}); y=ai7(y,t,a,z,O,E,r,h,F,x,C.x6,C.Y6,U);return y instanceof I?y:{layout:y.rp,D$:y.D$}}return new I("Not able to convert a sequential layout")}; ai7=function(y,t,a,r,E,h,F,x,U,C,z,O,M){var L=rLn(E,z,O);if(L instanceof I)return L;var w=[],d=[];L=g.p(L);for(var k=L.next();!k.done;k=L.next()){var e=k.value;k=y;var v=E[e.Cc],l=e,V=t;e=h;var B=F,b=x,Z=U,aV=iL(v);if(aV instanceof I)k=aV;else{var rx={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,f1:"adapter"};l=Ee1(V,v,l,e);l instanceof I?k=l:(k=Object.assign({},rx,K_,{ez:aV,renderingContent:v.renderingContent,clientMetadata:new qS(l),CJ:Tw(b,k)(rx),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData}), k=(v=IN(Z,k,e,B.vy,b,void 0,!0))?v instanceof I?v:{layout:k,UY:v}:new I("Expecting associatedInPlayerSlot"))}if(k instanceof I)return k;w.push(k.layout);d.push(k.UY)}E={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,f1:"core"};t=[new dv(Number(a.driftRecoveryMs)),new L9(z),new MS(O),new VU(gG(t)),new n9(C),new RP({})];M&&t.push(new oP({}));return{rp:Object.assign({},E,r,{GJ:w,ez:new Map,clientMetadata:new qS(t),CJ:Tw(x,y)(E)}),D$:d}}; tCb=function(y,t,a,r,E,h,F,x,U,C){if(!UW(a))return new I("Invalid PlayerBytesAdLayoutRenderer");var z=iL(a);if(z instanceof I)return z;var O={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,f1:"core"},M=g.P(a.renderingContent,A8);if(!M)return new I("Invalid rendering content for DAI media layout");M=Ho(M,!1);U={jp:M,Cc:0,Mu:U,PM:Math.min(U+M.videoLengthSeconds*1E3,C),g_:new RS(0,[M.videoLengthSeconds])};var L;C=(L=Number(a.driftRecoveryMs))!=null?L:void 0;t=Ee1(t,a,U, E,C);if(t instanceof I)return t;y=Object.assign({},O,r,{ez:z,renderingContent:a.renderingContent,clientMetadata:new qS(t),CJ:Tw(h,y)(O),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData});return(E=IN(F,y,E,x,h,void 0,!0))?E instanceof I?E:{layout:y,UY:E}:new I("Expecting associatedInPlayerSlot")}; iuN=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L,w){var d=Dg(a,h,E.vy);if(d instanceof I)return d;if(g.P(a.renderingContent,A8)){U=hXn([a],E,U);if(U instanceof I)return U;if(U.length!==1)return new I("Only expected one media layout.");y=Fj2(y,t,a,d,U[0],void 0,"core",r,h,F,x,C,M,L,E.vy,void 0,w);return y instanceof I?y:{layout:y.layout,D$:y.UY?[y.UY]:[]}}var k=g.P(a.renderingContent,h8);if(k){if(!KV(a.adLayoutMetadata))return new I("Invalid ad layout metadata");if(!Fu(k))return new I("Invalid sequential layout"); k=k.sequentialLayouts.map(function(e){return e.playerBytesAdLayoutRenderer}); y=ALV(y,t,a.adLayoutMetadata,d,k,r,h,E,U,F,x,C,z,O,M,L,w);return y instanceof I?y:{layout:y.rp,D$:y.D$}}return new I("Not able to convert a sequential layout")}; ALV=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L,w,d,k){var e=new oH({current:null}),v=hXn(E,x,U);if(v instanceof I)return v;U=[];for(var l=[],V=void 0,B=0;B0&&(V.push(d),V.push(new JL(l.adPodSkipTarget)));(h=C.get(l.externalVideoId))&&V.push(new Wl(h));h=V}else h=new I("Invalid vod media renderer")}if(h instanceof I)return h;y=Object.assign({},F, r,{ez:e,renderingContent:a.renderingContent,clientMetadata:new qS(h),CJ:Tw(z,y)(F),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData});a=g.P(a.renderingContent,A8);if(!a||!EW(a))return new I("Invalid meida renderer");O=V9(O,a.externalVideoId);O.instreamVideoAdRenderer=a;O.GE="AD_PLACEMENT_KIND_START";return L?(U=IN(M,y,U,w,z,d,!1),U instanceof I?U:$l2(y.layoutId,M)&&U?{layout:Object.assign({},y,{clientMetadata:new qS(h.concat(new Di(U)))})}:{layout:y,UY:U}):{layout:y}}; xl7=function(y,t,a,r,E){if(!UW(t))return new I("Invalid PlayerBytesAdLayoutRenderer");var h=g.P(t.renderingContent,i_);if(!h||h.durationMilliseconds===void 0)return new I("Invalid endcap renderer");var F={layoutId:t.adLayoutMetadata.layoutId,layoutType:t.adLayoutMetadata.layoutType,f1:"adapter"};r=[new SY(h.durationMilliseconds),new p9({impressionCommands:void 0,abandonCommands:h.abandonCommands?[{commandExecutorCommand:h.abandonCommands}]:void 0,completeCommands:h.completionCommands}),new VU(r), new aP("LAYOUT_TYPE_ENDCAP")];if(E){r.push(new mj(E.g_.adPodIndex-1));r.push(new wv(E.g_.adPodIndex));var x;r.push(new JL((x=E.adPodSkipTarget)!=null?x:-1))}return Object.assign({},F,K_,{renderingContent:t.renderingContent,clientMetadata:new qS(r),ez:h.skipPings?new Map([["skip",h.skipPings]]):new Map,CJ:Tw(a,y)(F),adLayoutLoggingData:t.adLayoutMetadata.adLayoutLoggingData})}; IN=function(y,t,a,r,E,h,F){y=y.filter(function(O){return O.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&O.adSlotMetadata.triggeringSourceLayoutId===t.layoutId}); if(y.length!==0){if(y.length!==1)return new I("Invalid InPlayer slot association for the given PlayerBytes layout");var x=y[0],U=Dzz(x,a,r);if(U instanceof I)return U;var C;y={slotId:x.adSlotMetadata.slotId,slotType:x.adSlotMetadata.slotType,slotPhysicalPosition:(C=x.adSlotMetadata.slotPhysicalPosition)!=null?C:1,f1:"core",slotEntryTrigger:U.slotEntryTrigger,slotFulfillmentTriggers:U.slotFulfillmentTriggers,slotExpirationTriggers:U.slotExpirationTriggers};C=g.P(x.fulfillmentContent.fulfilledLayout, njz);if(!C||!QW7(C))return new I("Invalid InPlayerAdLayoutRenderer");U={layoutId:C.adLayoutMetadata.layoutId,layoutType:C.adLayoutMetadata.layoutType,f1:"core"};a=Dg(C,a,r);if(a instanceof I)return a;r=[];var z=C.adLayoutMetadata.layoutType;F&&r.push(new RP({}));if(z==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")r.push.apply(r,g.i7(UlV(x.adSlotMetadata.triggerEvent,t))),(h=CO2(a,t.layoutId))&&r.push(new yF(h));else if(z==="LAYOUT_TYPE_ENDCAP"||z==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){r.push(new VU(gG(x.adSlotMetadata.triggerEvent))); if(z==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new I("Cannot parse endcap layout since AdUxReadyApi is not provided");h&&r.push(h)}else return new I("Not able to parse an SDF InPlayer layout");E=Object.assign({},U,a,{renderingContent:C.renderingContent,ez:new Map,CJ:Tw(E,y)(U),clientMetadata:new qS(r),adLayoutLoggingData:C.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},y,{fulfilledLayout:E,clientMetadata:new qS([])})}}; UlV=function(y,t){var a=[];a.push(new VU(gG(y)));a.push(new Zi(t.layoutId));(y=Yb(t.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&a.push(new hp(y));(y=Yb(t.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&a.push(new oH(y));(y=Yb(t.clientMetadata,"metadata_type_remote_slots_data"))&&a.push(new Wl(y));(y=Yb(t.clientMetadata,"metadata_type_ad_next_params"))&&a.push(new jC(y));(y=Yb(t.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&a.push(new SC(y));(y= Yb(t.clientMetadata,"metadata_type_ad_pod_info"))&&a.push(new nk(y));(t=Yb(t.clientMetadata,"metadata_type_ad_video_id"))&&a.push(new HM(t));return a}; sHb=function(y,t,a,r,E,h){function F(C){return TO(t,C)} var x=r.Yq.inPlayerSlotId,U={layoutId:r.Yq.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",f1:"core"};a={slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:new kw(F,y),slotFulfillmentTriggers:[new oS(F,x)],slotExpirationTriggers:[new H2(F,x),new nV(F,a)]};y=Object.assign({},U,{layoutExitNormalTriggers:[new W2(F,y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],ez:new Map,clientMetadata:new qS([new iO(r.Yq), new VU(r.adPlacementConfig),E]),CJ:Tw(h,a)(U),adLayoutLoggingData:r.Yq.adLayoutLoggingData});return Object.assign({},a,{clientMetadata:new qS([new Xj(y)])})}; $l2=function(y,t){t=g.p(t);for(var a=t.next();!a.done;a=t.next())if(a=a.value,a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var r=g.P(a.fulfillmentContent.fulfilledLayout,RN);if(r&&(r=g.P(r.renderingContent,Mu))&&r.associatedPlayerBytesLayoutId===y)return a}}; Dzz=function(y,t,a){var r=e7(y.slotEntryTrigger,t,a);if(r instanceof I)return r;for(var E=[],h=g.p(y.slotFulfillmentTriggers),F=h.next();!F.done;F=h.next()){F=e7(F.value,t,a);if(F instanceof I)return F;E.push(F)}h=[];y=g.p(y.slotExpirationTriggers);for(F=y.next();!F.done;F=y.next()){F=e7(F.value,t,a);if(F instanceof I)return F;h.push(F)}return{slotEntryTrigger:r,slotFulfillmentTriggers:E,slotExpirationTriggers:h}}; Dg=function(y,t,a){for(var r=[],E=g.p(y.layoutExitNormalTriggers||[]),h=E.next();!h.done;h=E.next()){h=e7(h.value,t,a);if(h instanceof I)return h;r.push(h)}E=[];h=g.p(y.layoutExitSkipTriggers||[]);for(var F=h.next();!F.done;F=h.next()){F=e7(F.value,t,a);if(F instanceof I)return F;E.push(F)}h=[];F=g.p(y.layoutExitMuteTriggers||[]);for(var x=F.next();!x.done;x=F.next()){x=e7(x.value,t,a);if(x instanceof I)return x;h.push(x)}F=[];y=g.p(y.layoutExitUserInputSubmittedTriggers||[]);for(x=y.next();!x.done;x= y.next()){x=e7(x.value,t,a);if(x instanceof I)return x;F.push(x)}return{layoutExitNormalTriggers:r,layoutExitSkipTriggers:E,layoutExitMuteTriggers:h,layoutExitUserInputSubmittedTriggers:F,layoutExitUserCancelledTriggers:[]}}; iL=function(y){var t=g.P(y.renderingContent,A8);if(t==null?0:t.pings)return $L(t.pings);y=g.P(y.renderingContent,i_);return(y==null?0:y.skipPings)?new Map([["skip",y.skipPings]]):new Map}; Ee1=function(y,t,a,r,E){t=g.P(t.renderingContent,A8);if(!t)return new I("Invalid rendering content for DAI media layout");y=[new bO(r),new Ut(a.jp.videoLengthSeconds),new C9(a.jp.playerVars),new L9(a.Mu),new MS(a.PM),new wv(a.Cc),new VU(gG(y)),new HM(a.jp.adVideoId),new nk(a.g_),t.sodarExtensionData&&new Ot(t.sodarExtensionData),new hp({current:null}),new RP({}),new uU(s4(t.pings))].filter(YhH);E!==void 0&&y.push(new dv(E));return y}; rLn=function(y,t,a){y=y.map(function(U){return Ho(g.P(U.renderingContent,A8),!1)}); var r=y.map(function(U){return U.videoLengthSeconds}),E=r.map(function(U,C){return new RS(C,r)}),h=t,F=a,x=[]; y.forEach(function(U,C){F=Math.min(h+U.videoLengthSeconds*1E3,a);lL(U.playerVars,E[C]);x.push({jp:U,Mu:h,PM:F,Cc:C,g_:E[C]});h=F}); return x}; hXn=function(y,t,a){for(var r=[],E=g.p(y),h=E.next();!h.done;h=E.next())if(h=g.P(h.value.renderingContent,A8)){if(!EW(h))return new I("Invalid vod media renderer");r.push(zXb(h))}E=r.map(function(O){return O.DK}); h=[];for(var F=0,x=0;x0?Fb:-1;else if(Xb= g.P(En,i_)){En=fi7(y,t,a,Xb,h,d,x,Z,Fb);if(En instanceof I){L=En;break a}En=En(M);k.push(En.Gv);e=[].concat(g.i7(En.WG),g.i7(e));v=[].concat(g.i7(En.eq),g.i7(v));En.UY&&(rx=[En.UY].concat(g.i7(rx)))}else if(Xb=g.P(En,sW)){if(L===void 0){L=new I("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Xb});break a}En=SUV(y,t,a,h,Xb,b,x,L,d,V4(z,"supports_multi_step_on_desktop"));if(En instanceof I){L=En;break a}En=En(M);k.push(En.Gv);En.UY&&rx.push(En.UY); e=[].concat(g.i7(En.WG),g.i7(e));v=[].concat(g.i7(En.eq),g.i7(v));l=[].concat(g.i7(En.Dp),g.i7(l));V=[].concat(g.i7(En.gS),g.i7(V));B=[b].concat(g.i7(B))}else if(En=g.P(En,$1)){En=QHb(y,t,a,h,En,b,x,d);if(En instanceof I){L=En;break a}En=En(M);k.push(En.Gv);En.UY&&rx.push(En.UY);v=[].concat(g.i7(En.eq),g.i7(v))}else{L=new I("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}L={GJ:k,layoutExitSkipTriggers:e,layoutExitUserInputSubmittedTriggers:l,layoutExitUserCancelledTriggers:V,layoutExitMuteTriggers:v, xK:B,D$:rx}}}else a:if(d=mlH(r),d instanceof I)L=d;else{k=0;e=[];v=[];l=[];V=[];B=[];b=[];Z=new Fj({current:null});aV=new oH({current:null});rx=!1;zN=[];Fb=-1;w=g.p(r);for(En=w.next();!En.done;En=w.next())if(En=En.value,g.P(En,x1)){En=WjF(t,a,g.P(En,x1),x);if(En instanceof I){L=En;break a}En=En(M);e.push(En.Gv);v=[].concat(g.i7(En.WG),g.i7(v));l=[].concat(g.i7(En.eq),g.i7(l));En.UY&&(zN=[En.UY].concat(g.i7(zN)))}else if(g.P(En,A8)){Fb=bL(g.P(En,A8));if(Fb instanceof cl){L=new I(Fb);break a}En=new RS(k, d);En=JLn(t,Fb.layoutId,Fb.V$,a,Bo(Fb.playerVars,Fb.mB,F,C,En),Fb.DK,h,En,x(M),aV,U.get(Fb.V$.externalVideoId),void 0,O);k++;e.push(En.Gv);v=[].concat(g.i7(En.WG),g.i7(v));l=[].concat(g.i7(En.eq),g.i7(l));rx||(b.push(aV),rx=!0);Fb=(Fb=Fb.V$.adPodSkipTarget)&&Fb>0?Fb:-1}else if(g.P(En,i_)){En=fi7(y,t,a,g.P(En,i_),h,k,x,aV,Fb);if(En instanceof I){L=En;break a}En=En(M);e.push(En.Gv);v=[].concat(g.i7(En.WG),g.i7(v));l=[].concat(g.i7(En.eq),g.i7(l));En.UY&&(zN=[En.UY].concat(g.i7(zN)))}else if(g.P(En, sW)){if(L===void 0){L=new I("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.P(En,sW)});break a}En=SUV(y,t,a,h,g.P(En,sW),Z,x,L,k,V4(z,"supports_multi_step_on_desktop"));if(En instanceof I){L=En;break a}En=En(M);e.push(En.Gv);En.UY&&zN.push(En.UY);v=[].concat(g.i7(En.WG),g.i7(v));l=[].concat(g.i7(En.eq),g.i7(l));V=[].concat(g.i7(En.Dp),g.i7(V));B=[].concat(g.i7(En.gS),g.i7(B));b=[Z].concat(g.i7(b))}else if(g.P(En,$1)){En=QHb(y,t,a,h,g.P(En,$1), Z,x,k);if(En instanceof I){L=En;break a}En=En(M);e.push(En.Gv);En.UY&&zN.push(En.UY);l=[].concat(g.i7(En.eq),g.i7(l))}else{L=new I("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}L={GJ:e,layoutExitSkipTriggers:v,layoutExitUserInputSubmittedTriggers:V,layoutExitUserCancelledTriggers:B,layoutExitMuteTriggers:l,xK:b,D$:zN}}L instanceof I?M=L:(B=M.slotId,d=L.GJ,k=L.layoutExitSkipTriggers,e=L.layoutExitMuteTriggers,v=L.layoutExitUserInputSubmittedTriggers,l=L.xK,M=x(M),V=E?E.layoutType: "LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",B=E?E.layoutId:nF(t.K.get(),V,B),b={layoutId:B,layoutType:V,f1:"core"},M={layout:{layoutId:B,layoutType:V,ez:new Map,layoutExitNormalTriggers:[new Vm(t.V,B)],layoutExitSkipTriggers:k,layoutExitMuteTriggers:e,layoutExitUserInputSubmittedTriggers:v,layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:new qS([new Ap(d)].concat(g.i7(l))),CJ:M(b)},D$:L.D$});return M}}; mlH=function(y){var t=[];y=g.p(y);for(var a=y.next();!a.done;a=y.next())if(a=a.value,g.P(a,A8)){a=bL(g.P(a,A8));if(a instanceof cl)return new I(a);t.push(a.DK)}return t}; HkV=function(y,t,a,r,E,h,F,x){if(!qFH(a,x===void 0?!1:x))return new I("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:a});var U=m2(a);if(U<=0)return new I("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:a});var C=new Fj({current:null}),z=Oux(y,t,a,C,r,h,F);return oe7(y,r,h,U,E,function(O,M){var L=O.slotId,w=J8(a);O=F(O);L=nF(t.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",L);var d={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",f1:"core"}, k=z(L,M),e=Yb(k.clientMetadata,"metadata_type_fulfilled_layout");e||Ug("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");w=[new VU(r),new SY(U),new p9(w),C];e&&w.push(new aP(e.layoutType));return{LLG:{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ez:new Map,layoutExitNormalTriggers:[new Vm(t.V,L)],layoutExitSkipTriggers:[new JN(t.V,M.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Yw(t.V,M.layoutId)], layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:new qS(w),CJ:O(d)},k70:k}})}; bk1=function(y){if(!gjz(y))return!1;var t=g.P(y.adVideoStart,a5);return t?g.P(y.linearAd,A8)&&aN(t)?!0:(Ug("Invalid Sandwich with notify"),!1):!1}; BX7=function(y){if(y.linearAds==null)return!1;y=g.P(y.adStart,a5);return y?aN(y)?!0:(Ug("Invalid LASR with notify"),!1):!1}; cLH=function(y){if(!D_n(y))return!1;y=g.P(y.adStart,a5);return y?aN(y)?!0:(Ug("Invalid LASR with notify"),!1):!1}; rt=function(y,t,a,r,E,h,F,x,U,C){this.D=y;this.K=t;this.V=a;this.YG=r;this.bK=E;this.Y=h;this.v4=F;this.Df=x;this.ai=U;this.loadPolicy=C===void 0?1:C}; vo=function(y,t,a,r,E,h,F,x,U,C,z){var O=[];if(t.length===0&&r.length===0&&a.length===0)return O;t=t.filter(rG);var M=a.filter(HM7),L=r.filter(rG),w=new Map,d=qhd(t),k=a.some(function(b7){var IV;return(b7==null?void 0:(IV=b7.adSlotMetadata)==null?void 0:IV.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),e=a.some(function(b7){var IV; return(b7==null?void 0:(IV=b7.adSlotMetadata)==null?void 0:IV.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),v=a.some(function(b7){var IV; return(b7==null?void 0:(IV=b7.adSlotMetadata)==null?void 0:IV.slotType)==="SLOT_TYPE_IN_PLAYER"}),l=a.some(function(b7){var IV,md; return(b7==null?void 0:(IV=b7.adSlotMetadata)==null?void 0:IV.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(b7==null?void 0:(md=b7.adSlotMetadata)==null?void 0:md.slotType)==="SLOT_TYPE_ABOVE_FEED"}),V=a.some(function(b7){var IV; return(b7==null?void 0:(IV=b7.adSlotMetadata)==null?void 0:IV.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); a=a.some(function(b7){var IV;return(b7==null?void 0:(IV=b7.adSlotMetadata)==null?void 0:IV.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(k||e||v||l||V||a)C=Zu7(M,t,x,E,d,y.bK.get(),y.loadPolicy,w,y.YG.get(),y.D.get(),v,F,U,C,z),C instanceof I?Ug(C,void 0,void 0,{contentCpn:E}):O.push.apply(O,g.i7(C));C=g.p(t);for(a=C.next();!a.done;a=C.next())a=a.value,e=qU7(y,w,a,E,h,F,k,x,d,U,M,y.YG.get().C.G().experiments.Nr("html5_enable_triggering_cuepoint_for_slot")?z:void 0),e instanceof I?Ug(e,void 0,void 0,{renderer:a.renderer,config:a.config.adPlacementConfig,kind:a.config.adPlacementConfig.kind,contentCpn:E,daiEnabled:F}):O.push.apply(O, g.i7(e));YU2(y.YG.get())||(h=Dly(y,L,E,x,d,w),O.push.apply(O,g.i7(h)));if(y.Y===null||F&&!x.yF){var B,b,Z;y=x.US&&t.length===1&&((B=t[0].config)==null?void 0:(b=B.adPlacementConfig)==null?void 0:b.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((Z=t[0].renderer)==null?void 0:Z.adBreakServiceRenderer);if(!O.length&&!y){var aV,rx,Fb,zN;Ug("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":t.length,contentCpn:E,"first APR kind":(aV=t[0])==null?void 0: (rx=aV.config)==null?void 0:(Fb=rx.adPlacementConfig)==null?void 0:Fb.kind,renderer:(zN=t[0])==null?void 0:zN.renderer})}return O}B=r.filter(rG);O.push.apply(O,g.i7(Uz7(w,B,y.K.get(),y.Y,E,k)));if(!O.length){var En,Xb,TN,A7;Ug("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":t.length,contentCpn:E,daiEnabled:F.toString(),"first APR kind":(En=t[0])==null?void 0:(Xb=En.config)==null?void 0:(TN=Xb.adPlacementConfig)==null?void 0:TN.kind,renderer:(A7=t[0])== null?void 0:A7.renderer})}return O}; Dly=function(y,t,a,r,E,h){function F(M){return Tw(y.bK.get(),M)} var x=[];t=g.p(t);for(var U=t.next();!U.done;U=t.next()){U=U.value;var C=U.renderer,z=C.sandwichedLinearAdRenderer,O=C.linearAdSequenceRenderer;z&&bk1(z)?(Ug("Found AdNotify with SandwichedLinearAdRenderer"),O=g.P(z.adVideoStart,a5),z=g.P(z.linearAd,A8),uL(h,C,U.config.adPlacementConfig.kind),C=void 0,O=uNN((C=O)==null?void 0:C.layout.layoutId,y.K.get(),y.V.get(),U.config.adPlacementConfig,U.adSlotLoggingData,z,a,r,F,E,y.loadPolicy,y.YG.get(),y.bK.get()),O instanceof I?Ug(O):x.push.apply(x,g.i7(O))): O&&(!O.adLayoutMetadata&&BX7(O)||O.adLayoutMetadata&&cLH(O))&&(Ug("Found AdNotify with LinearAdSequenceRenderer"),uL(h,C,U.config.adPlacementConfig.kind),C=void 0,z=veH((C=g.P(O.adStart,a5))==null?void 0:C.layout.layoutId,y.K.get(),y.V.get(),U.config.adPlacementConfig,U.adSlotLoggingData,O.linearAds,KV(O.adLayoutMetadata)?O.adLayoutMetadata:void 0,a,r,F,E,y.loadPolicy,y.YG.get()),z instanceof I?Ug(z):x.push.apply(x,g.i7(z)))}return x}; qU7=function(y,t,a,r,E,h,F,x,U,C,z,O){function M(v){return Tw(y.bK.get(),v)} var L=a.renderer,w=a.config.adPlacementConfig,d=w.kind,k=a.adSlotLoggingData,e=x.yF&&d==="AD_PLACEMENT_KIND_START";e=h&&!e;if(L.adsEngagementPanelRenderer!=null)return n_(t,a.elementId,d,L.adsEngagementPanelRenderer.isContentVideoEngagementPanel,L.adsEngagementPanelRenderer.adVideoId,L.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,w,k,function(v,l,V,B){var b=y.V.get(),Z=v.slotId,aV=L.adsEngagementPanelRenderer;v=Tw(y.bK.get(),v);return EB(b,Z,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new fk(aV),l,V,aV.impressionPings,v,L.adsEngagementPanelRenderer.adLayoutLoggingData,B)}),[]; if(L.adsEngagementPanelLayoutViewModel)return n_(t,a.elementId,d,L.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,L.adsEngagementPanelLayoutViewModel.adVideoId,L.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,k,function(v,l,V,B){var b=y.V.get(),Z=v.slotId,aV=L.adsEngagementPanelLayoutViewModel;v=Tw(y.bK.get(),v);return hY(b,Z,"LAYOUT_TYPE_PANEL",new WM(aV),l,V,v,L.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,B)}),[]; if(L.actionCompanionAdRenderer!=null){if(L.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return FIz(y.K.get(),y.Y,y.V.get(),L.actionCompanionAdRenderer,w,k,r,M);n_(t,a.elementId,d,L.actionCompanionAdRenderer.isContentVideoCompanion,L.actionCompanionAdRenderer.adVideoId,L.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,k,function(v,l,V,B){var b=y.V.get(),Z=v.slotId,aV=L.actionCompanionAdRenderer;v=Tw(y.bK.get(),v);return EB(b,Z,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new XJ(aV),l,V,aV.impressionPings,v,L.actionCompanionAdRenderer.adLayoutLoggingData,B)})}else if(L.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(L.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return ADV(y.K.get(),y.Y,y.V.get(),L.topBannerImageTextIconButtonedLayoutViewModel,w,k,r,M); n_(t,a.elementId,d,L.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,L.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,L.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,k,function(v,l,V,B){var b=y.V.get(),Z=v.slotId,aV=L.topBannerImageTextIconButtonedLayoutViewModel;v=Tw(y.bK.get(),v);return hY(b,Z,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new ke(aV),l,V,v,L.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,B)})}else if(L.imageCompanionAdRenderer)n_(t, a.elementId,d,L.imageCompanionAdRenderer.isContentVideoCompanion,L.imageCompanionAdRenderer.adVideoId,L.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,k,function(v,l,V,B){var b=y.V.get(),Z=v.slotId,aV=L.imageCompanionAdRenderer; v=Tw(y.bK.get(),v);return EB(b,Z,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new vM(aV),l,V,aV.impressionPings,v,L.imageCompanionAdRenderer.adLayoutLoggingData,B)}); else if(L.bannerImageLayoutViewModel)n_(t,a.elementId,d,L.bannerImageLayoutViewModel.isContentVideoCompanion,L.bannerImageLayoutViewModel.adVideoId,L.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,k,function(v,l,V,B){var b=y.V.get(),Z=v.slotId,aV=L.bannerImageLayoutViewModel;v=Tw(y.bK.get(),v);return hY(b,Z,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new pk(aV),l,V,v,L.bannerImageLayoutViewModel.adLayoutLoggingData,B)}); else if(L.shoppingCompanionCarouselRenderer)n_(t,a.elementId,d,L.shoppingCompanionCarouselRenderer.isContentVideoCompanion,L.shoppingCompanionCarouselRenderer.adVideoId,L.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,w,k,function(v,l,V,B){var b=y.V.get(),Z=v.slotId,aV=L.shoppingCompanionCarouselRenderer;v=Tw(y.bK.get(),v);return EB(b,Z,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new eC(aV),l,V,aV.impressionPings,v,L.shoppingCompanionCarouselRenderer.adLayoutLoggingData,B)}); else if(L.adBreakServiceRenderer){if(!Ek7(a))return[];if(d==="AD_PLACEMENT_KIND_PAUSE")return rDF(y.K.get(),w,k,a.renderer.adBreakServiceRenderer,r);if(d!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&d!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return aLd(y.K.get(),w,k,a.renderer.adBreakServiceRenderer,r,E,h);x.US||Ug("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:d,adPlacementConfig:w,daiEnabledForContentVideo:String(h),isServedFromLiveInfra:String(x.US),clientPlaybackNonce:x.clientPlaybackNonce}); if(d==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!y.v4)return new I("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!y.ai)return new I("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");y.ai.Fx({adPlacementRenderer:a,contentCpn:r,vy:E});E=y.v4.get().getCurrentTimeSec(1,!1);return geb(y.K.get(),a.renderer.adBreakServiceRenderer,w,E,r,k,h)}if(!y.Df)return new I("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); y.Df.Fx({adPlacementRenderer:a,contentCpn:r,vy:E})}else{if(L.clientForecastingAdRenderer)return wMd(y.K.get(),y.V.get(),w,k,L.clientForecastingAdRenderer,r,E,M);if(L.invideoOverlayAdRenderer)return dlF(y.K.get(),y.V.get(),w,k,L.invideoOverlayAdRenderer,r,E,M);if(L.instreamAdPlayerOverlayRenderer)return PO7(y.K.get(),y.V.get(),w,k,L.instreamAdPlayerOverlayRenderer,r,M);if((L.linearAdSequenceRenderer||L.instreamVideoAdRenderer)&&e)return Shy(y.K.get(),y.V.get(),a,r,M,C,!y.YG.get().C.G().B("html5_override_ad_video_length_killswitch"), O);if(L.linearAdSequenceRenderer&&!e){if(F)return[];uL(t,L,d);if(L.linearAdSequenceRenderer.adLayoutMetadata){if(!D_n(L.linearAdSequenceRenderer))return new I("Received invalid LinearAdSequenceRenderer.")}else if(L.linearAdSequenceRenderer.linearAds==null)return new I("Received invalid LinearAdSequenceRenderer.");if(g.P(L.linearAdSequenceRenderer.adStart,a5)){Ug("Found AdNotify in LinearAdSequenceRenderer");a=g.P(L.linearAdSequenceRenderer.adStart,a5);if(!jWd(a))return new I("Invalid AdMessageRenderer."); h=L.linearAdSequenceRenderer.linearAds;return pM7(y.D.get(),y.K.get(),y.V.get(),y.bK.get(),w,k,a,KV(L.linearAdSequenceRenderer.adLayoutMetadata)?L.linearAdSequenceRenderer.adLayoutMetadata:void 0,h,r,E,x,M,U,y.loadPolicy,y.YG.get())}return ned(y.K.get(),y.V.get(),w,k,L.linearAdSequenceRenderer.linearAds,KV(L.linearAdSequenceRenderer.adLayoutMetadata)?L.linearAdSequenceRenderer.adLayoutMetadata:void 0,r,E,x,M,U,y.loadPolicy,y.YG.get(),z)}if(!L.remoteSlotsRenderer||h){if(L.instreamVideoAdRenderer&& !e){if(F)return[];uL(t,L,d);return oku(y.K.get(),y.V.get(),w,k,L.instreamVideoAdRenderer,r,E,x,M,U,y.loadPolicy,y.YG.get(),y.bK.get(),z)}if(L.instreamSurveyAdRenderer)return HkV(y.K.get(),y.V.get(),L.instreamSurveyAdRenderer,w,k,r,M,V4(y.YG.get(),"supports_multi_step_on_desktop"));if(L.sandwichedLinearAdRenderer!=null)return gjz(L.sandwichedLinearAdRenderer)?g.P(L.sandwichedLinearAdRenderer.adVideoStart,a5)?(Ug("Found AdNotify in SandwichedLinearAdRenderer"),a=g.P(L.sandwichedLinearAdRenderer.adVideoStart, a5),jWd(a)?(h=g.P(L.sandwichedLinearAdRenderer.linearAd,A8))?Ven(a,h,w,y.D.get(),y.K.get(),y.V.get(),y.bK.get(),k,r,E,x,M,U,y.loadPolicy,y.YG.get()):new I("Missing IVAR from Sandwich"):new I("Invalid AdMessageRenderer.")):ned(y.K.get(),y.V.get(),w,k,[L.sandwichedLinearAdRenderer.adVideoStart,L.sandwichedLinearAdRenderer.linearAd],void 0,r,E,x,M,U,y.loadPolicy,y.YG.get()):new I("Received invalid SandwichedLinearAdRenderer.");if(L.videoAdTrackingRenderer!=null)return Ljy(y.K.get(),y.V.get(),L.videoAdTrackingRenderer, w,k,r,E,x.yR,M)}}return[]}; FD=function(y,t,a,r,E,h,F,x){g.H.call(this);var U=this;this.K=y;this.Y=t;this.ye=r;this.v4=E;this.YG=h;this.Um=F;this.wV=x;this.V=null;a.get().addListener(this);this.addOnDisposeCallback(function(){a.Qv()||a.get().removeListener(U)}); r.get().addListener(this);this.addOnDisposeCallback(function(){r.Qv()||r.get().removeListener(U)})}; sB=function(y,t,a){var r=y.v4.get().getCurrentTimeSec(1,!1);y.YG.get().C.G().Bb()&&Gy(y.Um.get(),"sdai","onopp.1;evt."+a.event+";start."+a.startSecs.toFixed(3)+";d."+a.iK.toFixed(3));ZX(y.K.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var E=y.Y.get(),h=t.adPlacementRenderer.renderer.adBreakServiceRenderer,F=t.contentCpn,x=t.adPlacementRenderer.adSlotLoggingData;AY(y.YG.get());var U=y.Um;var C=E.YG.get();C=g.Gw(C.C.G().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var z=E.YG.get();var O=g.Gw(z.C.G().experiments,"min_prefetch_offset_sec_for_livestream_optimization");z=a.startSecs*1E3;z={b8:new fe(z,z+a.iK*1E3),Ls:!1,cueProcessedMs:r*1E3};var M=a.startSecs+a.iK;if(r===0)z.r_=new fe(0,M*1E3);else{O=a.startSecs-O;var L=O-r;z.r_=L<=0?new fe(O*1E3,M*1E3):new fe(Math.floor(r+Math.random()*Math.min(L,C))*1E3,M*1E3)}h=p_(E,h,F,z,x,[new xb(a)]);x4(E.YG.get())&&Gy(U.get(),"abrsm","cpi."+a.identifier+";cps."+a.startSecs+";cpd."+a.iK+";cts."+r+";rbf."+z.r_.start);U.get().C.jn(a.startSecs- r,z.r_.start/1E3-r);return[h]})}; $4=function(y){var t,a=(t=Yb(y.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:t.current;if(!a)return null;t=Yb(y.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var r=y.layoutId,E=Yb(y.clientMetadata,"metadata_type_content_cpn"),h=Yb(y.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),F=Yb(y.clientMetadata,"metadata_type_player_overlay_layout_renderer"),x=Yb(y.clientMetadata,"metadata_type_player_underlay_renderer"),U=Yb(y.clientMetadata, "metadata_type_ad_placement_config"),C=Yb(y.clientMetadata,"metadata_type_video_length_seconds");var z=Hl(y.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Yb(y.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Hl(y.clientMetadata,"metadata_type_layout_enter_ms")&&Hl(y.clientMetadata,"metadata_type_layout_exit_ms")?(Yb(y.clientMetadata,"metadata_type_layout_exit_ms")-Yb(y.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{lk:r,contentCpn:E,v$:a,Zo:t,instreamAdPlayerOverlayRenderer:h, playerOverlayLayoutRenderer:F,instreamAdPlayerUnderlayRenderer:x,adPlacementConfig:U,videoLengthSeconds:C,S3:z,inPlayerLayoutId:Yb(y.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Yb(y.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; KjH=function(y,t){return ikF(y,t)}; IiN=function(y,t){t=ikF(y,t);if(!t)return null;var a;t.S3=(a=Yb(y.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:a.adBreakRemainingLengthSeconds;return t}; ikF=function(y,t){var a,r=(a=Yb(y.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:a.current;if(!r)return null;a=c4y(y,t);return{dF:BEN(y,t),adPlacementConfig:Yb(y.clientMetadata,"metadata_type_ad_placement_config"),FO:a,contentCpn:Yb(y.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Yb(y.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Yb(y.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Yb(y.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,S3:void 0,v$:r,lk:y.layoutId,videoLengthSeconds:Yb(y.clientMetadata,"metadata_type_video_length_seconds")}}; UB=function(y,t,a,r,E,h,F,x,U){g.H.call(this);this.D=y;this.J=t;this.L=a;this.Y=r;this.V=E;this.K=h;this.bK=F;this.YG=x;this.B4=U;this.sV=!0}; TX7=function(y,t,a){return Bjy(y.V.get(),t.contentCpn,t.lk,function(r){return cDn(y.K.get(),r.slotId,a,t.adPlacementConfig,t.lk,Tw(y.bK.get(),r))})}; Cq=function(y,t,a,r,E,h,F){g.H.call(this);this.K=y;this.V=t;this.Y=a;this.D=r;this.B4=E;this.v4=h;this.mJ=F}; zi=function(y){g.H.call(this);this.V=y}; ZX=function(y,t,a,r){y.V().X3(t,r);a=a();y=y.V();y.rN.V("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",t,r,a);t=g.p(a);for(a=t.next();!a.done;a=t.next())a:{r=y;a=a.value;w$(r.rN,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",a);w$(r.rN,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",a);try{var E=r.V;if(g.TJ(a.slotId))throw new I("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(AH(E,a))throw new I("Duplicate registration for slot.",{slotId:a.slotId,slotEntryTriggerType:a.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!E.xX.wU.has(a.slotType))throw new I("No fulfillment adapter factory registered for slot of type: "+a.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!E.xX.Yl.has(a.slotType))throw new I("No SlotAdapterFactory registered for slot of type: "+a.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");fF(E,"TRIGGER_CATEGORY_SLOT_ENTRY",a.slotEntryTrigger?[a.slotEntryTrigger]:[]);fF(E,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", a.slotFulfillmentTriggers);fF(E,"TRIGGER_CATEGORY_SLOT_EXPIRATION",a.slotExpirationTriggers);var h=r.V,F=a.slotType+"_"+a.slotPhysicalPosition,x=PK(h,F);if(AH(h,a))throw new I("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");x.set(a.slotId,new mhn(a));h.V.set(F,x)}catch(aV){aV instanceof I&&aV.jq?(r$(r.rN,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",aV.jq,a),Ug(aV,a,void 0,void 0,aV.jh)):(r$(r.rN,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", a),Ug(aV,a));break a}AH(r.V,a).J=!0;try{var U=r.V,C=AH(U,a),z=a.slotEntryTrigger,O=U.xX.yn.get(z.triggerType);O&&(O.TZ("TRIGGER_CATEGORY_SLOT_ENTRY",z,a,null),C.o5.set(z.triggerId,O));for(var M=g.p(a.slotFulfillmentTriggers),L=M.next();!L.done;L=M.next()){var w=L.value,d=U.xX.yn.get(w.triggerType);d&&(d.TZ("TRIGGER_CATEGORY_SLOT_FULFILLMENT",w,a,null),C.AF.set(w.triggerId,d))}for(var k=g.p(a.slotExpirationTriggers),e=k.next();!e.done;e=k.next()){var v=e.value,l=U.xX.yn.get(v.triggerType);l&&(l.TZ("TRIGGER_CATEGORY_SLOT_EXPIRATION", v,a,null),C.hF.set(v.triggerId,l))}var V=U.xX.wU.get(a.slotType).get().build(U.Y,a);C.W=V;var B=U.xX.Yl.get(a.slotType).get().build(U.L,a);B.init();C.K=B}catch(aV){aV instanceof I&&aV.jq?(r$(r.rN,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",aV.jq,a),Ug(aV,a,void 0,void 0,aV.jh)):(r$(r.rN,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",a),Ug(aV,a));EY(r,a,!0);break a}w$(r.rN,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",a);r.V.Wz(a);for(var b=g.p(r.K),Z=b.next();!Z.done;Z= b.next())Z.value.Wz(a);UY(r,a)}}; OB=function(y,t,a,r,E){g.H.call(this);var h=this;this.K=y;this.Y=t;this.KM=a;this.context=E;this.V=new Map;r.get().addListener(this);this.addOnDisposeCallback(function(){r.Qv()||r.get().removeListener(h)})}; I5u=function(y,t){var a=0x8000000000000,r=0,E=0x8000000000000;var h=g.p(t.slotFulfillmentTriggers);for(var F=h.next();!F.done;F=h.next())if(F=F.value,F instanceof pV){var x=F.V.start;a=Math.min(a,x);r=Math.max(r,F.V.end);F.visible&&(E=Math.min(E,x))}else Ug("Found unexpected fulfillment trigger for throttled slot.",t,null,{fulfillmentTrigger:F});h=a;E=E<0x8000000000000&&a0&&LF(y.J(),a)}; l5=function(y,t,a,r,E){for(var h=[],F=g.p(y.yW.values()),x=F.next();!x.done;x=F.next()){var U=x=x.value,C=U.trigger;U=U.slot;if(C.triggerType===t){if(C instanceof SX||C instanceof Qm||C instanceof eX){if(E&&C.breakDurationMs!==a)continue;if(!E&&C.breakDurationMs===a)continue;if(r.has(U.slotId))continue}h.push(x)}}h.length>0&&LF(y.J(),h)}; xSy=function(y,t){t=(t.iK+1)*1E3;var a=void 0;y=g.p(y.yW.values());for(var r=y.next();!r.done;r=y.next()){var E=r.value;r=E.trigger;E=E.slot;r instanceof SX&&r.breakDurationMs<=t&&(!a||r.breakDurationMs>a.trigger.breakDurationMs)&&(a={slot:E,trigger:r})}return a}; sPu=function(y){y=y.adPlacementRenderer.config.adPlacementConfig;if(!y.prefetchModeConfig||!y.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;y=Number(y.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(y)||y<=0?0:Math.floor(Math.random()*y)}; $SV=function(y){y=y.adPlacementRenderer.config.adPlacementConfig;if(y.prefetchModeConfig&&y.prefetchModeConfig.cacheFetchRefreshDurationMs&&(y=Number(y.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(y)||y<=0)))return y}; u5=function(y){y.V=null;y.yW.clear();y.K&&y.K.stop();y.L&&y.L.stop();var t;(t=y.Y)==null||t.stop();delete y.Y}; h42=function(y){var t=[];y=g.p(y.yW.values());for(var a=y.next();!a.done;a=y.next())a=a.value.trigger,a instanceof SX&&t.push(a.breakDurationMs);return t}; V7=function(y){g.H.call(this);this.Y=y;this.sV=!0;this.yW=new Map;this.V=new Map;this.K=new Map}; USb=function(y,t){var a=[];if(t=y.V.get(t.layoutId)){t=g.p(t);for(var r=t.next();!r.done;r=t.next())(r=y.K.get(r.value.triggerId))&&a.push(r)}return a}; nq=function(){g.H.call(this);this.yW=new Map}; p8=function(y){switch(y){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"}}; CUu=function(y){switch(y){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; z4n=function(y,t){var a={slotId:y5(t,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],f1:"surface",clientMetadata:new qS([])},r=Object,E=r.assign;t=nF(t,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",a.slotId);t={layoutId:t,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",ez:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], f1:"surface",clientMetadata:new qS([]),CJ:NuV(!1,a.slotId,a.slotType,a.slotPhysicalPosition,a.f1,a.slotEntryTrigger,a.slotFulfillmentTriggers,a.slotExpirationTriggers,t,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return E.call(r,{},y,{fEX:!0,slot:a,layout:t})}; teF=function(y,t,a,r){var E=y.kind;r=r?!1:!y.hideCueRangeMarker;switch(E){case "AD_PLACEMENT_KIND_START":return r={b8:new fe(-0x8000000000000,-0x8000000000000),Ls:r},a!=null&&(r.r_=new fe(-0x8000000000000,-0x8000000000000)),r;case "AD_PLACEMENT_KIND_END":return r={b8:new fe(0x7ffffffffffff,0x8000000000000),Ls:r},a!=null&&(r.r_=new fe(Math.max(0,t-a),0x8000000000000)),r;case "AD_PLACEMENT_KIND_MILLISECONDS":E=y.adTimeOffset;E.offsetStartMilliseconds||Ug("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); E.offsetEndMilliseconds||Ug("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");y=Number(E.offsetStartMilliseconds);E=Number(E.offsetEndMilliseconds);E===-1&&(E=t);if(Number.isNaN(y)||Number.isNaN(E)||y>E)return new I("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:y,offsetEndMs:E},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",E===t&&y-500<=E);r={b8:new fe(y,E),Ls:r};if(a!=null){y=Math.max(0,y-a);if(y===E)return r;r.r_=new fe(y,E)}return r; default:return new I("AdPlacementKind not supported in convertToRange.",{kind:E,adPlacementConfig:y})}}; O92=function(y){if(!y||!y.adPlacements&&!y.adSlots)return!1;for(var t=g.p(y.adPlacements||[]),a=t.next();!a.done;a=t.next())if(a=a.value)if(a=a.adPlacementRenderer,a!=null&&(a.config&&a.config.adPlacementConfig&&a.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;y=g.p(y.adSlots||[]);for(t=y.next();!t.done;t=y.next()){var r=a=void 0;if(((a=g.P(t.value,Nu))==null?void 0:(r=a.adSlotMetadata)==null?void 0:r.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; mx=function(y){this.YG=y;this.K=new Map;this.V=new Map;this.Y=new Map}; y5=function(y,t){if(JY(y.YG.get())){var a=y.K.get(t)||0;a++;y.K.set(t,a);return t+"_"+a}return g.wu(16)}; nF=function(y,t,a){if(JY(y.YG.get())){var r=y.V.get(t)||0;r++;y.V.set(t,r);return a+"_"+t+"_"+r}return g.wu(16)}; TO=function(y,t){if(JY(y.YG.get())){var a=y.Y.get(t)||0;a++;y.Y.set(t,a);return t+"_"+a}return g.wu(16)}; Ley=function(y){var t=[new Zi(y.lk),new Et(y.v$),new VU(y.adPlacementConfig),new Ut(y.videoLengthSeconds),new jY(y.S3)];y.instreamAdPlayerOverlayRenderer&&t.push(new BM(y.instreamAdPlayerOverlayRenderer));y.playerOverlayLayoutRenderer&&t.push(new cM(y.playerOverlayLayoutRenderer));y.Zo&&t.push(new oH(y.Zo));return t}; MY7=function(y,t,a,r,E,h){y=a.inPlayerLayoutId?a.inPlayerLayoutId:nF(h,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",y);var F,x,U=a.instreamAdPlayerOverlayRenderer?(F=a.instreamAdPlayerOverlayRenderer)==null?void 0:F.adLayoutLoggingData:(x=a.playerOverlayLayoutRenderer)==null?void 0:x.adLayoutLoggingData;F={layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",f1:t};return{layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ez:new Map,layoutExitNormalTriggers:[new W2(function(C){return TO(h, C)},a.lk)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:t,clientMetadata:r,CJ:E(F),adLayoutLoggingData:U}}; o5=function(y){var t=this;this.K=y;this.V=function(a){return TO(t.K.get(),a)}}; cDn=function(y,t,a,r,E,h){a=new qS([new ql(a),new VU(r)]);t=nF(y.K.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",t);r={layoutId:t,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",f1:"core"};return{layoutId:t,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",ez:new Map,layoutExitNormalTriggers:[new W2(function(F){return TO(y.K.get(),F)},E)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:a,CJ:h(r),adLayoutLoggingData:void 0}}; co=function(y,t,a,r,E){var h=Ley(r);return MY7(t,a,r,new qS(h),E,y.K.get())}; wl7=function(y,t,a,r,E){var h=Ley(r);h.push(new lO(r.dF));h.push(new uO(r.FO));return MY7(t,a,r,new qS(h),E,y.K.get())}; EB=function(y,t,a,r,E,h,F,x,U,C){t=nF(y.K.get(),a,t);var z={layoutId:t,layoutType:a,f1:"core"},O=new Map;F&&O.set("impression",F);F=[new lf(y.V,E,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];C&&F.push(new fV(y.V,C,["normal"]));return{layoutId:t,layoutType:a,ez:O,layoutExitNormalTriggers:F,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:new qS([r,new VU(h),new Zi(E)]),CJ:x(z),adLayoutLoggingData:U}}; hY=function(y,t,a,r,E,h,F,x,U){t=nF(y.K.get(),a,t);var C={layoutId:t,layoutType:a,f1:"core"},z=[new lf(y.V,E,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];U&&z.push(new fV(y.V,U,["normal"]));return{layoutId:t,layoutType:a,ez:new Map,layoutExitNormalTriggers:z,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:new qS([r,new VU(h),new Zi(E)]),CJ:F(C),adLayoutLoggingData:x}}; Zg=function(y,t,a){var r=[];r.push(new uf(y.V,a));t&&r.push(t);return r}; GO=function(y,t,a,r,E,h,F){var x={layoutId:t,layoutType:a,f1:"core"};return{layoutId:t,layoutType:a,ez:new Map,layoutExitNormalTriggers:F,layoutExitSkipTriggers:[new NQ(y.V,t)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:new qS([new QU(r),new VU(E)]),CJ:h(x),adLayoutLoggingData:r.adLayoutLoggingData}}; oN=function(y,t,a,r,E,h,F,x){var U={layoutId:t,layoutType:h,f1:"core"};return{layoutId:t,layoutType:h,ez:new Map,layoutExitNormalTriggers:[new W2(y.V,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:new qS([new VU(r)].concat(g.i7(F))),CJ:E(U),adLayoutLoggingData:x}}; XM1=function(y,t,a,r,E,h,F,x,U,C,z,O){y=y7(y,t,a,r,E,h,F,x,z,O);t=y.xK;a=new tp(y.Rw);r=y.layoutExitSkipTriggers;U>0&&(t.push(a),t.push(new JL(U)),r=[]);t.push(new mj(C));return{Gv:{layoutId:y.layoutId,layoutType:y.layoutType,ez:y.ez,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:y.f1,clientMetadata:new qS(t),CJ:y.CJ,adLayoutLoggingData:y.adLayoutLoggingData},WG:r,eq:y.layoutExitMuteTriggers, Dp:y.layoutExitUserInputSubmittedTriggers,gS:y.layoutExitUserCancelledTriggers,UY:y.UY}}; jH1=function(y,t,a,r,E,h,F,x,U){t=y7(y,t,a,r,E,new Map,h,function(C){return F(C,x)}); y=new Yw(y.V,t.Rw);a=new tp(t.Rw);U=new mj(U);return{Gv:{layoutId:t.layoutId,layoutType:t.layoutType,ez:t.ez,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:t.f1,clientMetadata:new qS([].concat(g.i7(t.xK),[a,U])),CJ:t.CJ,adLayoutLoggingData:t.adLayoutLoggingData},WG:t.layoutExitSkipTriggers,eq:t.layoutExitMuteTriggers,Dp:[].concat(g.i7(t.layoutExitUserInputSubmittedTriggers),[y]),gS:t.layoutExitUserCancelledTriggers, UY:t.UY}}; y7=function(y,t,a,r,E,h,F,x,U,C){t=nF(y.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var z={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",f1:"adapter"};x=x(t);var O=Yb(x.clientMetadata,"metadata_type_fulfilled_layout");O||Ug("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var M=O?O.layoutId:"";a=[new VU(a),new SY(r),new p9(E)];O&&a.push(new aP(O.layoutType));C&&a.push(new wv(C));return{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ez:h,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[new JN(y.V,M)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"adapter",xK:a,CJ:F(z),adLayoutLoggingData:U,UY:x,Rw:M}}; HuN=function(y,t,a,r,E,h,F,x,U,C,z){y=R4H(y,t,"core",a,r,E,h,F,x,U,C,void 0,z);return{layoutId:y.layoutId,layoutType:y.layoutType,ez:y.ez,layoutExitNormalTriggers:y.layoutExitNormalTriggers,layoutExitSkipTriggers:y.layoutExitSkipTriggers,layoutExitMuteTriggers:y.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:y.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:y.layoutExitUserCancelledTriggers,f1:y.f1,clientMetadata:new qS(y.VF),CJ:y.CJ,adLayoutLoggingData:y.adLayoutLoggingData}}; JLn=function(y,t,a,r,E,h,F,x,U,C,z,O,M){t=R4H(y,t,"adapter",a,r,E,h,F,x,U,z,O,M);r=t.layoutExitSkipTriggers;E=t.VF;a.adPodSkipTarget&&a.adPodSkipTarget>0&&(E.push(C),E.push(new JL(a.adPodSkipTarget)),r=[]);E.push(new mj(x.adPodIndex));a.isCritical&&(r=[new fV(y.V,t.layoutId,["error"])].concat(g.i7(r)));return{Gv:{layoutId:t.layoutId,layoutType:t.layoutType,ez:t.ez,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], f1:t.f1,clientMetadata:new qS(E),CJ:t.CJ,adLayoutLoggingData:t.adLayoutLoggingData},WG:r,eq:t.layoutExitMuteTriggers,Dp:t.layoutExitUserInputSubmittedTriggers,gS:t.layoutExitUserCancelledTriggers}}; R4H=function(y,t,a,r,E,h,F,x,U,C,z,O,M){var L={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA",f1:a};E=[new VU(E),new nk(U),new HM(r.externalVideoId),new bO(x),new p9({impressionCommands:r.impressionCommands,abandonCommands:r.onAbandonCommands,completeCommands:r.completeCommands,progressCommands:r.adVideoProgressCommands}),new C9(h),new hp({current:null}),new Ut(F)];(h=r.playerOverlay.instreamAdPlayerOverlayRenderer)&&E.push(new BM(h));(F=r.playerOverlay.playerOverlayLayoutRenderer)&&E.push(new cM(F)); O&&E.push(new zw(O));(O=r.playerUnderlay)&&E.push(new ql(O));x=y5(y.K.get(),"SLOT_TYPE_IN_PLAYER");O=(O=h?h.elementId:F==null?void 0:F.layoutId)?O:nF(y.K.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",x);E.push(new tp(O));E.push(new rv(x));E.push(new wv(U.adPodIndex));r.adNextParams&&E.push(new jC(r.adNextParams));r.shrunkenPlayerBytesConfig&&E.push(new gX(r.shrunkenPlayerBytesConfig));r.clickthroughEndpoint&&E.push(new SC(r.clickthroughEndpoint));r.legacyInfoCardVastExtension&&E.push(new QF(r.legacyInfoCardVastExtension)); r.sodarExtensionData&&E.push(new Ot(r.sodarExtensionData));z&&E.push(new Wl(z));E.push(new uU(s4(r.pings)));U=$L(r.pings);if(M){a:{M=g.p(M);for(z=M.next();!z.done;z=M.next())if(z=z.value,z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(h=g.P(z.fulfillmentContent.fulfilledLayout,RN))&&(h=g.P(h.renderingContent,Mu))&&h.associatedPlayerBytesLayoutId===t){M=z;break a}M=void 0}M&&E.push(new Ye(M))}return{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA",ez:U,layoutExitNormalTriggers:[new Vm(y.V,t)],layoutExitSkipTriggers:r.skipOffsetMilliseconds? [new JN(y.V,O)]:[],layoutExitMuteTriggers:[new JN(y.V,O)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:a,VF:E,CJ:C(L),adLayoutLoggingData:r.adLayoutLoggingData}}; vkn=function(y,t,a,r,E,h,F,x,U){r.every(function(z){return bU(z,[],["LAYOUT_TYPE_MEDIA"])})||Ug("Unexpect subLayout type for DAI composite layout"); t=nF(y.K.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",t);var C={layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",f1:"core"};return{layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ez:new Map,layoutExitNormalTriggers:[new jX(y.V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f1:"core",clientMetadata:new qS([new L9(a),new MS(x),new Ap(r),new VU(E),new dv(h),new RP({}),new n9(U)]),CJ:F(C)}}; fL7=function(y){return y!=null}; HZ=function(y,t,a){var r=this;this.K=y;this.Y=t;this.YG=a;this.V=function(E){return TO(r.K.get(),E)}}; geb=function(y,t,a,r,E,h,F){if(!a.prefetchModeConfig)return new I("AdPlacementConfig for Live Prefetch is missing prefetch_config");a=a.prefetchModeConfig;r*=1E3;var x=[];if(!a.breakLengthMs)return new I("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var U=g.p(a.breakLengthMs),C=U.next();!C.done;C=U.next())if(C=C.value,Number(C)>0){var z=r+Number(a.startTimeOffsetMs),O=z+Number(a.cacheFetchSmearingDurationMs);C={b8:new fe(O,O+Number(C)),Ls:!1,r_:new fe(Math.floor(z+Math.random()* Number(a.cacheFetchSmearingDurationMs)),O),cueProcessedMs:r?r:z};z=[];z.push(new oP({}));O=[];O.push(new m3(y.V));O.push(new OM2(y.V));F&&z.push(new RP({}));x.push(p_(y,t,E,C,h,z,O))}return x}; p_=function(y,t,a,r,E,h,F){h=h===void 0?[]:h;var x=y5(y.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");F||(F=[],r.r_&&r.r_.start!==r.b8.start&&F.push(new pV(y.V,a,new fe(r.r_.start,r.b8.start),!1)),F.push(new pV(y.V,a,new fe(r.b8.start,r.b8.end),r.Ls)));r={getAdBreakUrl:t.getAdBreakUrl,x6:r.b8.start,Y6:r.b8.end,cueProcessedMs:r.cueProcessedMs};t=new B2(y.V,x);h=[new kb(r)].concat(g.i7(h));return{slotId:x,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:F, slotExpirationTriggers:[new nV(y.V,a),new H2(y.V,x),new bf(y.V,x)],f1:"core",clientMetadata:new qS(h),adSlotLoggingData:E}}; Nvz=function(y,t,a){var r=[];a=g.p(a);for(var E=a.next();!E.done;E=a.next())r.push(PU1(y,t,E.value));return r}; PU1=function(y,t,a){return a.triggeringSlotId!=null&&a.triggeringSlotId===y?a.clone(t):a}; zMu=function(y,t,a,r,E){return dS7(y,t,a,r,E)}; kTN=function(y,t,a,r){var E=y5(y.K.get(),"SLOT_TYPE_IN_PLAYER");return dS7(y,E,t,a,r)}; dS7=function(y,t,a,r,E){var h=new kw(y.V,a),F=[new oS(y.V,t)];y=[new H2(y.V,t),new nV(y.V,r)];return{slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:F,slotExpirationTriggers:y,f1:"core",clientMetadata:new qS([new Xj(E({slotId:t,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:h,slotFulfillmentTriggers:F,slotExpirationTriggers:y},a))]),adSlotLoggingData:void 0}}; oe7=function(y,t,a,r,E,h){var F=y5(y.K.get(),"SLOT_TYPE_PLAYER_BYTES"),x=y5(y.K.get(),"SLOT_TYPE_IN_PLAYER"),U=nF(y.K.get(),"LAYOUT_TYPE_SURVEY",x);r=b5(y,t,a,r);var C=[new oS(y.V,F)];a=[new H2(y.V,F),new nV(y.V,a),new NQ(y.V,U)];if(r instanceof I)return r;h=h({slotId:F,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:r,slotFulfillmentTriggers:C,slotExpirationTriggers:a},{slotId:x,layoutId:U});x=h.k70;return[{slotId:F,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:r,slotFulfillmentTriggers:C,slotExpirationTriggers:a,f1:"core",clientMetadata:new qS([new Xj(h.LLG),new Jp({PL:y.PL(t)})]),adSlotLoggingData:E},x]}; bu2=function(y,t,a,r,E){E=E?E:y5(y.K.get(),"SLOT_TYPE_IN_PLAYER");a=new kw(y.V,a);var h=[new oS(y.V,E)];y=[new nV(y.V,t),new H2(y.V,E)];return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:h,slotExpirationTriggers:y,f1:"core",clientMetadata:new qS([new Xj(r({slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:a,slotFulfillmentTriggers:h,slotExpirationTriggers:y}))])}}; Bjy=function(y,t,a,r){var E=y5(y.K.get(),"SLOT_TYPE_PLAYER_UNDERLAY");a=new kw(y.V,a);var h=[new oS(y.V,E)];y=[new nV(y.V,t),new H2(y.V,E)];return{slotId:E,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:h,slotExpirationTriggers:y,f1:"core",clientMetadata:new qS([new Xj(r({slotId:E,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:a,slotFulfillmentTriggers:h,slotExpirationTriggers:y}))])}}; lLb=function(y,t,a,r,E,h,F){var x=y5(y.K.get(),"SLOT_TYPE_IN_PLAYER"),U=nF(y.K.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",x);r=Xln(y,r,h,F,U);if(r instanceof I)return r;F=[new oS(y.V,x)];E=[new nV(y.V,h),new oS(y.V,E),new qQ(y.V,E)];a=Tw(a,{slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:r,slotFulfillmentTriggers:F,slotExpirationTriggers:E});y=y.Y.get();h={layoutId:U,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",f1:"core"};t={layoutId:U,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", ez:new Map,layoutExitNormalTriggers:[new X_d(y.V,U,t.durationMs)],layoutExitSkipTriggers:[new f57(y.V,U,t.durationMs)],layoutExitUserCancelledTriggers:[new klN(y.V,U)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],f1:"core",clientMetadata:new qS([new vl(t)]),CJ:a(h)};return{slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:r,slotFulfillmentTriggers:F,slotExpirationTriggers:E,clientMetadata:new qS([new Xj(t)])}}; NXb=function(y,t,a,r,E,h){t=b5(y,t,a,r);if(t instanceof I)return t;var F=t instanceof pV?new PyV(y.V,a,t.V):null;r=y5(y.K.get(),"SLOT_TYPE_IN_PLAYER");var x=[new oS(y.V,r)];y=[new nV(y.V,a),new H2(y.V,r)];h=h({slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:t,slotFulfillmentTriggers:x,slotExpirationTriggers:y},F);return h instanceof cl?new I(h):{slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:x,slotExpirationTriggers:y, f1:"core",clientMetadata:new qS([new Xj(h)]),adSlotLoggingData:E}}; RXx=function(y,t,a,r){var E=y5(y.K.get(),"SLOT_TYPE_IN_PLAYER"),h=new P2(y.V,t),F=[new c2(y.V,E)];y=[new nV(y.V,t),new H2(y.V,E)];return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:F,slotExpirationTriggers:y,f1:"core",clientMetadata:new qS([new Xj(r({slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:h,slotFulfillmentTriggers:F,slotExpirationTriggers:y}))]),adSlotLoggingData:a}}; PG7=function(y,t,a,r){var E=y5(y.K.get(),"SLOT_TYPE_IN_PLAYER");a=new kw(y.V,a);var h=[new oS(y.V,E)],F=[new H2(y.V,E),new nV(y.V,t)];h={slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:a,slotFulfillmentTriggers:h,slotExpirationTriggers:F};return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:[new oS(y.V,E)],slotExpirationTriggers:[new nV(y.V,t),new H2(y.V,E)],f1:"core",clientMetadata:new qS([new Xj(r(h))])}}; Mey=function(y,t,a,r,E){var h=y5(y.K.get(),"SLOT_TYPE_IN_PLAYER");a=new Xi(y.V,r,a);r=[new oS(y.V,h)];y=[new nV(y.V,t)];return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:r,slotExpirationTriggers:y,f1:"core",clientMetadata:new qS([new Xj(E({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:a,slotFulfillmentTriggers:r,slotExpirationTriggers:y}))])}}; $zu=function(y,t,a,r,E,h){var F=y5(y.K.get(),t);return BZ(y,F,t,new kw(y.V,r),[new nV(y.V,a),new H2(y.V,F),new fV(y.V,r,["error"])],E,h)}; s2n=function(y,t,a,r,E,h,F){var x=y5(y.K.get(),t);return BZ(y,x,t,new fV(y.V,E,["normal"]),[new nV(y.V,a),new H2(y.V,x),new fV(y.V,r,["error"])],h,F)}; hMH=function(y,t,a,r,E){var h=y5(y.K.get(),t);return BZ(y,h,t,new P2(y.V,a),[new nV(y.V,a),new H2(y.V,h)],r,E)}; Oky=function(y,t,a,r,E){a=a?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var h=y5(y.K.get(),a);t=new P2(y.V,t);var F=[new oS(y.V,h)];y=[new H2(y.V,h)];return{slotId:h,slotType:a,slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:F,slotExpirationTriggers:y,f1:"core",clientMetadata:new qS([new Xj(E({slotId:h,slotType:a,slotPhysicalPosition:1,f1:"core",slotEntryTrigger:t,slotFulfillmentTriggers:F,slotExpirationTriggers:y}))]),adSlotLoggingData:r}}; WI7=function(y,t,a,r,E){var h=y5(y.K.get(),"SLOT_TYPE_PLAYER_BYTES"),F=new v2(y.V),x=[new c2(y.V,h)];y=[new nV(y.V,t)];t=[];t.push(new Xj(r({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:F,slotFulfillmentTriggers:x,slotExpirationTriggers:y})));t.push(new RP({}));E&&t.push(new $b({current:E}));return{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:x,slotExpirationTriggers:y,f1:"core",clientMetadata:new qS(t), adSlotLoggingData:a}}; uJx=function(y,t){return YU2(y.YG.get())?new fV(y.V,t,["normal","error","skipped"]):new fV(y.V,t,["normal"])}; mzN=function(y,t,a,r,E){t=uJx(y,t);y=tY(y,t,a);E=E({slotId:y.slotId,slotType:y.slotType,slotPhysicalPosition:y.slotPhysicalPosition,slotEntryTrigger:y.slotEntryTrigger,slotFulfillmentTriggers:y.slotFulfillmentTriggers,slotExpirationTriggers:y.slotExpirationTriggers,f1:y.f1});return E instanceof I?E:{Nm:Object.assign({},y,{clientMetadata:new qS([new Xj(E.layout)]),adSlotLoggingData:r}),D$:E.D$}}; JDy=function(y,t,a,r,E,h,F){a=VCu(y,t,a,r);if(a instanceof I)return a;F=F({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,f1:a.f1});if(F instanceof I)return F;y=[new Xj(F.layout),new Jp({PL:y.PL(t)})];h&&y.push(new eY({}));return{Nm:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger, slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,f1:a.f1,clientMetadata:new qS(y),adSlotLoggingData:E},D$:F.D$}}; tY=function(y,t,a){var r=y5(y.K.get(),"SLOT_TYPE_PLAYER_BYTES"),E=[new oS(y.V,r)];y=[new H2(y.V,r),new nV(y.V,a)];return{slotId:r,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:E,slotExpirationTriggers:y,f1:"core"}}; VCu=function(y,t,a,r){t=b5(y,t,a,r);return t instanceof I?t:tY(y,t,a)}; MCN=function(y,t,a,r,E,h){var F=y5(y.K.get(),"SLOT_TYPE_FORECASTING");t=b5(y,t,a,r);if(t instanceof I)return t;r=[new oS(y.V,F)];y=[new H2(y.V,F),new nV(y.V,a)];return{slotId:F,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:r,slotExpirationTriggers:y,f1:"core",clientMetadata:new qS([new Xj(h({slotId:F,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,f1:"core",slotEntryTrigger:t,slotFulfillmentTriggers:r,slotExpirationTriggers:y}))]),adSlotLoggingData:E}}; kwn=function(y,t,a,r,E){var h=!t.hideCueRangeMarker;switch(t.kind){case "AD_PLACEMENT_KIND_START":return new P2(y.V,a);case "AD_PLACEMENT_KIND_MILLISECONDS":return y=teF(t,r),y instanceof I?y:E(y.b8,h);case "AD_PLACEMENT_KIND_END":return new dh(y.V,a,h);default:return new I("Cannot construct entry trigger",{kind:t.kind})}}; Xln=function(y,t,a,r,E){return kwn(y,t,a,r,function(h,F){return new Rb7(y.V,a,h,F,E)})}; b5=function(y,t,a,r){return kwn(y,t,a,r,function(E,h){return new pV(y.V,a,E,h)})}; BZ=function(y,t,a,r,E,h,F){y=[new c2(y.V,t)];return{slotId:t,slotType:a,slotPhysicalPosition:1,slotEntryTrigger:r,slotFulfillmentTriggers:y,slotExpirationTriggers:E,f1:"core",clientMetadata:new qS([new Xj(F({slotId:t,slotType:a,slotPhysicalPosition:1,f1:"core",slotEntryTrigger:r,slotFulfillmentTriggers:y,slotExpirationTriggers:E}))]),adSlotLoggingData:h}}; ERd=function(){}; cZ=function(y,t){g.H.call(this);this.YG=y;this.K=t;this.eventCount=0;this.Y=hsn()()}; w$=function(y,t,a){y.V(t,void 0,void 0,void 0,a,void 0,void 0,void 0,a.adSlotLoggingData)}; xa=function(y,t,a,r){y.V(t,void 0,void 0,void 0,a,r?r:void 0,void 0,void 0,a.adSlotLoggingData,r?r.adLayoutLoggingData:void 0);a=Qq().resolve(new kD($X))==null?void 0:UH();t=a==null?void 0:a.adsSeenHotConfig;a=a==null?void 0:a.adsHotConfig;(t==null?0:t.logOnAdsSeen)&&(a==null?0:a.webEnablePremiumAdsSeenLogging)&&f1d(y,r?r:void 0)}; Q87=function(y,t,a,r){V4(y.YG.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",a,"slot:",t,"layout:",r);IP(y.K.get())&&y.V("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,t,r?r:void 0,void 0,a,t.adSlotLoggingData,r?r.adLayoutLoggingData:void 0)}; r$=function(y,t,a,r,E){y.V("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,r,E,void 0,void 0,r.adSlotLoggingData,E?E.adLayoutLoggingData:void 0,{errorType:t,errorMessage:a})}; f1d=function(y,t){if(t){var a=t.adLayoutLoggingData;g.Z4(g.tk(),function(){y.Y!=null&&a&&g.Mc("adsSeenClientLogging",{serializedAdServingDataEntry:a.serializedAdServingDataEntry})},0)}}; qp=function(y,t,a){cZ.call(this,y,t);this.YG=y;this.B4=a}; Y4=function(){this.V=new Map}; Dm=function(y){this.V="pending";this.K=[];this.Y=[];try{y(this.D.bind(this),this.reject.bind(this))}catch(t){this.reject(t)}}; Wez=function(){var y,t;return{kq:new Dm(function(a,r){y=a;t=r}), resolve:y,reject:t}}; Kq=function(y){return gt(y)?y:i5(y)?new Dm(function(t,a){y.then(t,a)}):new Dm(function(t){t(y)})}; I5=function(y){return new Dm(function(t,a){a(y)})}; Ti=function(y){try{return Kq(y())}catch(t){return I5(t)}}; Zm=function(y,t,a){var r=Wez(),E=r.kq,h=r.resolve,F=r.reject;y.K.push(function(x){if(t)try{var U=t(x);h(U)}catch(C){F(C)}else h(x)}); y.Y.push(function(x){if(a)try{var U=a(x);h(U)}catch(C){F(C)}else F(x)}); Gi(y);return E}; y6=function(y,t){return Zm(y,void 0,t)}; jPV=function(y,t){Zm(y,function(a){return Zm(Kq(t()),function(){return a})},function(a){return Zm(Kq(t()),function(){return I5(a)})})}; Gi=function(y){if(y.V==="fulfilled"){var t=y.K;y.K=[];y.Y=[];t=g.p(t);for(var a=t.next();!a.done;a=t.next())a=a.value,a(y.result)}else if(y.V==="rejected")for(t=y.Y,y.K=[],y.Y=[],t=g.p(t),a=t.next();!a.done;a=t.next())a=a.value,a(y.error)}; td=function(y,t){return St7(t.call(y))}; at=function(y){return function a(){return M9(a,function(r){if(r.V==1)return g.sy(r,2),g.u(r,{kq:Kq(y)},4);if(r.V!=2)return r.return(r.K);g.CI(r);return g.zE(r,0)})}()}; St7=function(y){return Ti(function(){return rP(y,y.next())})}; rP=function(y,t){return t.done?Kq(t.value):y6(Zm(t.value.kq,function(a){return rP(y,y.next(a))}),function(a){return rP(y,y.throw(a))})}; plH=function(y){var t=QPd(y);return Zm(vb1(t),function(){return t.map(function(a){return a.state()})})}; vb1=function(y){if(y.length===0)return Kq(NaN);var t=Wez(),a=t.kq,r=t.resolve,E=y.length;y=g.p(y.entries());var h=y.next();for(t={};!h.done;t={Sc:void 0},h=y.next()){var F=g.p(h.value);h=F.next().value;F=F.next().value;t.Sc=h;jPV(F,function(x){return function(){a.V==="pending"&&(e4n(void 0)&&(void 0)(x.Sc)&&a.V==="pending"?r(x.Sc):(--E,E===0&&r(NaN)))}}(t))}return a}; QPd=function(y){return y.map(function(t){return Kq(t)})}; hd=function(y){var t=y.hours||0;var a=y.minutes||0,r=y.seconds||0;t=r+a*60+t*3600+(y.days||0)*86400+(y.weeks||0)*604800+(y.months||0)*2629800+(y.years||0)*31557600;t<=0?t={hours:0,minutes:0,seconds:0}:(y=t,t=Math.floor(y/3600),y%=3600,a=Math.floor(y/60),r=Math.floor(y%60),t={hours:t,minutes:a,seconds:r});var E=t.hours===void 0?0:t.hours;a=t.minutes===void 0?0:t.minutes;y=t.seconds===void 0?0:t.seconds;r=E>0;t=[];if(r){E=(new Intl.NumberFormat("en-u-nu-latn")).format(E);var h=["fr"],F="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); E="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(Ev)?E.replace(",","\u00a0"):h.includes(Ev)?E.replace(",","\u202f"):F.includes(Ev)?E.replace(",","."):E;t.push(E)}r=r===void 0?!1:r;a=(["af","be","lt"].includes(Ev)||r)&&a<10?l1u().format(a):(new Intl.NumberFormat("en-u-nu-latn")).format(a);t.push(a);a=l1u().format(y);t.push(a);a=":";"da fi id si sr sr-Latn".split(" ").includes(Ev)&&(a=".");return t.join(a)}; l1u=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; uj7=function(y,t){var a,r;y=((a=y.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(r=a.videoAuthorizationToken)==null?void 0:r.credentialTransferTokens)||[];for(a=0;at;y=a}else y=!1;return y}; g.kf=function(y,t){return y.bW+"timedtext_video?ref=player&v="+t.videoId}; g.Ea7=function(y){var t=this;this.videoData=y;y={};this.V=(y.c1a=function(){var a=[];if(g.dP.isInitialized()){var r="";t.videoData&&t.videoData.sE&&(r=t.videoData.sE+("&r1b="+t.videoData.clientPlaybackNonce));var E={};r=(E.atr_challenge=r,E);nM("bg_v",void 0,"player_att");(r=rH1(r))?(nM("bg_s",void 0,"player_att"),a.push("r1a="+r)):(nM("bg_e",void 0,"player_att"),a.push("r1c=2"))}else nM("bg_e",void 0,"player_att"),window.trayride||window.botguard?a.push("r1c=1"):a.push("r1c=4");a.push("r1d="+g.dP.getState()); return a.join("&")},y.c6a=function(a){return"r6a="+(Number(a.c)^a2())},y.c6b=function(a){return"r6b="+(Number(a.c)^Number(g.yd("CATSTAT",0)))},y); this.videoData&&this.videoData.sE?this.XM=f7(this.videoData.sE):this.XM={}}; g.hAH=function(y){if(y.videoData&&y.videoData.sE){for(var t=[y.videoData.sE],a=g.p(Object.keys(y.V)),r=a.next();!r.done;r=a.next())r=r.value,y.XM[r]&&y.V[r]&&(r=y.V[r](y.XM))&&t.push(r);return t.join("&")}return null}; g.fy=function(y,t){aXV(y,{leX:g.Gw(t.experiments,"bg_vm_reinit_threshold"),cspNonce:t.cspNonce,bW:t.bW||""})}; FXu=function(){var y=XMLHttpRequest.prototype.fetch;return!!y&&y.length===3}; x42=function(y){AHd=2592E3*(y||1)}; sAz=function(y){g.m7("yt-player-bandwidth",y,2592E3)}; Wh=function(y){y=y===void 0?AHd:y;if(y>0&&!(Xgb()>(0,g.Wx)()-y*1E3))return 0;y=g.JU("yt-player-quality");if(typeof y==="string"){if(y=g.jt[y],y>0)return y}else if(y instanceof Object)return y.quality;return 0}; j_=function(){var y=g.JU("yt-player-proxima-pref");return y==null?null:y}; $4H=function(){var y=g.JU("yt-player-quality");if(y instanceof Object&&y.quality&&y.previousQuality){if(y.quality>y.previousQuality)return 1;if(y.quality0&&t[0]?y.getAutoplayPolicy(t[0]):y.getAutoplayPolicy("mediaelement");if(RAd[a])return RAd[a]}}catch(r){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; uF=function(y){return y.nJ||y.Nh||y.mutedAutoplay}; PdF=function(y,t){return uF(y)?t!==1&&t!==2&&t!==0?"AUTOPLAY_STATUS_UNAVAILABLE":y.SU?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; N$n=function(y,t,a){var r=t.G();y.thirdParty||(y.thirdParty={});y.thirdParty=Object.assign({},y.thirdParty,{embedUrl:r.loaderUrl});r.ancestorOrigins&&(y.thirdParty.embeddedPlayerContext=Object.assign({},y.thirdParty.embeddedPlayerContext,{ancestorOrigins:r.ancestorOrigins}));r.ll!=null&&(y.thirdParty.embeddedPlayerContext=Object.assign({},y.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(r.ll)}));r.ul&&(y.thirdParty.embeddedPlayerContext=Object.assign({},y.thirdParty.embeddedPlayerContext, {visibilityFractionSource:r.ul}));y.thirdParty.embeddedPlayerContext=Object.assign({},y.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:lF(),autoplayIntended:uF(t),autoplayStatus:PdF(t,a)})}; d4b=function(y){var t=[];y=g.p(y.split(","));for(var a=y.next();!a.done;a=y.next()){var r=a.value;r&&((a=r.startsWith("!"))&&(r=r.substring(1)),r=r.split("-"),r.length<3||t.push({Zt:r[0],platform:r[1],deviceVersion:r[2],xf:a}))}return t}; fXu=function(y){return d4b(y).map(function(t){return{deviceInterface:XKu[kv7[t.Zt]]||0,deviceVersion:t.deviceVersion||"",isSleeping:t.xf}})}; g.V6=function(y,t){this.id=y;this.qK=t;this.captionTracks=[];this.Y=this.D=null;this.xtags="";this.J=this.L=!1;this.V=null;this.K="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";y=this.qK.id.split(".");y.length>1&&(this.L=y[1]==="2",this.J=y[1]==="4")}; ny=function(y,t,a,r,E){this.K=y;this.V=t;this.Y=a;this.reason=r;this.Hb=E===void 0?0:E}; g.mE=function(y,t,a,r){return new ny(g.jt[y]||0,g.jt[t]||0,a,r)}; ot=function(y){if(Jd&&y.Hb)return!1;var t=g.jt.auto;return y.K===t&&y.V===t}; bF=function(y){return Hh[y.V||y.K]||"auto"}; WXb=function(y,t){t=g.jt[t];return y.K<=t&&(!y.V||y.V>=t)}; Bh=function(y,t,a,r){this.videoInfos=y;this.V=t;this.audioTracks=[];this.K=r||[];if(this.V){y=new Set;a==null||a({ainfolen:this.V.length});t=g.p(this.V);for(r=t.next();!r.done;r=t.next())if(r=r.value,!r.qK||y.has(r.qK.id)){var E=void 0,h=void 0,F=void 0;(F=a)==null||F({atkerr:!!r.qK,itag:r.itag,xtag:r.V,lang:((E=r.qK)==null?void 0:E.name)||"",langid:((h=r.qK)==null?void 0:h.id)||""})}else E=new g.V6(r.id,r.qK),y.add(r.qK.id),this.audioTracks.push(E);a==null||a({atklen:this.audioTracks.length})}}; ch=function(){g.H.apply(this,arguments);this.K=null;this.V=new Map}; vau=function(y,t,a,r,E,h,F){if(y.K)return y.K;var x={},U=new Set,C={};if(qy(r)){for(var z in r.V)r.V.hasOwnProperty(z)&&(y=r.V[z],C[y.info.G7]=[y.info]);return C}z=jAd(t,r,x);h&&E({aftsrt:Yf(z)});for(var O={},M=g.p(Object.keys(z)),L=M.next();!L.done;L=M.next()){L=L.value;for(var w=g.p(z[L]),d=w.next();!d.done;d=w.next()){d=d.value;var k=d.itag,e=void 0,v=L+"_"+(((e=d.video)==null?void 0:e.fps)||0);O.hasOwnProperty(v)?O[v]===!0?C[L].push(d):x[k]=O[v]:(e=Da(t,d,a,r.isLive,U),e!==!0?(F.add(L),x[k]=e, e==="disablevp9hfr"&&(O[v]="disablevp9hfr")):(C[L]=C[L]||[],C[L].push(d),O[v]=!0))}}h&&E({bfflt:Yf(C)});for(var l in C)C.hasOwnProperty(l)&&(r=l,C[r]&&C[r][0].ji()&&(C[r]=C[r],C[r]=SYn(t,C[r],x),C[r]=QAy(C[r],x)));h&&Object.keys(x).length>0&&E({rjr:al(x)});t=g.p(U.values());for(r=t.next();!r.done;r=t.next())(r=a.Y.get(r.value))&&--r.Dt;h&&E({aftflt:Yf(C)});y.K=g.NX(C,function(V){return!!V.length}); return y.K}; eAF=function(y,t,a,r,E,h,F,x){x=x===void 0?!1:x;if(t.EM&&F&&F.length>1&&!(t.vt>0||t.Z)){for(var U=t.V||!!E,C=U&&t.ZA?h:void 0,z=jAd(t,r),O=[],M=[],L={},w=0;w0&&w&&M&&(z=[F,y],V=M.concat(w).filter(function(B){return B})); if(V.length&&!t.l8){Ky(V,z);if(U){U=[];t=g.p(V);for(r=t.next();!r.done;r=t.next())U.push(r.value.itag);h({hbdfmt:U.join(".")})}return Jm(new Bh(V,E,C,a))}V=B$7(t);V=g.D9(V,x);if(!V){if(O[F])return h=O[F],Ky(h),Jm(new Bh(h,E,C,a));U&&h({novideo:1});return m_()}t.MP&&(V==="1"||V==="1h")&&O[y]&&(F=It(O[V]),z=It(O[y]),z>F?V=y:z===F&&cH2(O[y])&&(V=y));V==="9"&&O.h&&It(O.h)>It(O["9"])&&(V="h");t.zl&&r.isLive&&V==="("&&O.H&&It(O["("])<1440&&(V="H");U&&h({vfmly:T9(V)});t=O[V];if(!t.length)return U&&h({novfmly:T9(V)}), m_();Ky(t);return Jm(new Bh(t,E,C,a))}; HFF=function(y,t,a){var r,E=((r=a.video)==null?void 0:r.fps)||0;r=t+"_"+E;var h=!!a.audio,F=y.V.get(r);a:{var x=y.V.get(r),U=!!a.audio;if(x){if(U){var C=!1;break a}var z;if(!U&&((C=a.video)==null?0:C.height)&&x.maxHeight&&x.maxHeight>=((z=a.video)==null?void 0:z.height)){C=!1;break a}}C=!0}C&&(C=a.itag,t=F?F:{itag:C,G7:t,Ee:h},h?t.numChannels=a.audio.numChannels:(h=a.video,t.maxWidth=h==null?void 0:h.width,t.maxHeight=h==null?void 0:h.height,t.maxFramerate=E,t.maxBitrateBps=a.Hb*8,t.EK=h==null?void 0: h.isHdr()),y.V.set(r,t))}; iF=function(y){for(var t=[],a=g.p(y.V.keys()),r=a.next();!r.done;r=a.next()){r=r.value;var E=y.V.get(r);t.push(r+"_"+E.maxWidth+"_"+E.maxHeight)}return t.join(".")}; uGN=function(y,t){var a=!(!y.m&&!y.M),r=!(!y.mac3&&!y.MAC3),E=!(!y.meac3&&!y.MEAC3);y=!(!y.i&&!y.I);t.RR=y;return a||r||E||y}; cH2=function(y){y=g.p(y);for(var t=y.next();!t.done;t=y.next())if(t=t.value,t.itag&&qYd.has(t.itag))return!0;return!1}; na2=function(y){y=g.p(y);for(var t=y.next();!t.done;t=y.next())if(t.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; T9=function(y){switch(y){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return y}}; Yf=function(y){var t=[],a;for(a in y)if(y.hasOwnProperty(a)){var r=a;t.push(T9(r));r=g.p(y[r]);for(var E=r.next();!E.done;E=r.next())t.push(E.value.itag)}return t.join(".")}; lXx=function(y,t,a,r,E,h){var F={},x={};g.jy(t,function(U,C){U=U.filter(function(z){var O=z.itag;if(!z.YJ)return x[O]="noenc",!1;if(h.XB&&z.G7==="(h"&&h.I7)return x[O]="lichdr",!1;if(!y.D&&z.G7==="1e")return x[O]="noav1enc",!1;if(z.G7==="("||z.G7==="(h"){if(y.K&&a&&a.flavor==="widevine"){var M=z.mimeType+"; experimental=allowed";(M=!!z.YJ[a.flavor]&&!!a.V[M])||(x[O]=z.YJ[a.flavor]?"unspt":"noflv");return M}if(!G9(y,Za.CRYPTOBLOCKFORMAT)&&!y.DE||y.Vv)return x[O]=y.Vv?"disvp":"vpsub",!1}return a&&z.YJ[a.flavor]&& a.V[z.mimeType]?!0:(x[O]=a?z.YJ[a.flavor]?"unspt":"noflv":"nosys",!1)}); U.length&&(F[C]=U)}); r&&Object.entries(x).length&&E({rjr:al(x)});return F}; QAy=function(y,t){var a=e$(y,function(r,E){return E.video.fps>32?Math.min(r,E.video.width):r},Infinity); a32||r.video.widthy.J)return"max"+y.J;if(y.n1&&t.G7==="h"&&t.video&&t.video.qualityOrdinal>1080)return"blkhigh264";if(t.G7==="(h"&&!a.J)return"enchdr";if((r===void 0?0:r)&&xTx(t)&&!y.C1)return"blk51live";if((t.G7==="MAC3"||t.G7==="mac3")&&!y.D)return"blkac3";if((t.G7==="MEAC3"||t.G7==="meac3")&&!y.L)return"blkeac3";if(t.G7==="M"||t.G7==="m")return"blkaac51"; if((t.G7==="so"||t.G7==="sa")&&!y.AF)return"blkamb";if(!y.XB&&Afd(t)&&(!a.D||t.G7!=="1e"))return"cbc";if(!a.D&&Afd(t)&&t.G7==="1e")return"cbcav1";if((t.G7==="i"||t.G7==="I")&&!y.sR)return"blkiamf";var h;if(y.MK&&((h=t.audio)==null?void 0:h.K)===!0)return"blkvbcabr";var F,x;if(y.R5&&(t.G7==="1"||t.G7==="1h"||a.D&&t.G7==="1e")&&((F=t.video)==null?0:F.qualityOrdinal)&&((x=t.video)==null?void 0:x.qualityOrdinal)>y.R5)return"av1cap";r=a.Y.get(t.G7);if(!y.FB&&r&&r.Dt>0)return E.add(t.G7),"byerr";var U; if((U=t.video)==null?0:U.fps>32){if(!a.o5&&!G9(a,Za.FRAMERATE))return"capHfr";if(y.T7&&t.video.qualityOrdinal>=4320)return"blk8khfr";if(lH(t)&&y.oo&&t.YJ&&t.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(y.Hb&&t.Hb>y.Hb)return"ratecap";if(y.o5>0&&t.ji()&&t.video.height>y.o5)return"mvhcap";y=YYx(a,t);return y!==!0?y:!0}; Ky=function(y,t){t=t===void 0?[]:t;g.O9(y,function(a,r){var E=r.Hb-a.Hb;if(!a.ji()||!r.ji())return E;var h=r.video.height*r.video.width-a.video.height*a.video.width;!h&&t&&t.length>0&&(a=t.indexOf(a.G7)+1,r=t.indexOf(r.G7)+1,h=a===0||r===0?r||-1:a-r);h||(h=E);return h})}; yR=function(y,t,a,r,E,h,F,x,U){this.a5=y;this.startTime=t;this.duration=a;this.ingestionTime=r;this.sourceURL=E;this.zO=U;this.endTime=t+a;this.V=F||0;this.range=h||null;this.pending=x||!1;this.zO=U||null}; g.t9=function(){this.segments=[];this.V=null;this.K=!0;this.Y=""}; D41=function(y,t){if(t>y.lJ())y.segments=[];else{var a=Ys(y.segments,function(r){return r.a5>=t},y); a>0&&y.segments.splice(0,a)}}; ay=function(y,t,a,r,E){E=E===void 0?!1:E;this.data=y;this.offset=t;this.size=a;this.type=r;this.V=(this.K=E)?0:8;this.dataOffset=this.offset+this.V}; rz=function(y){var t=y.data.getUint8(y.offset+y.V);y.V+=1;return t}; E5=function(y){var t=y.data.getUint16(y.offset+y.V);y.V+=2;return t}; h9=function(y){var t=y.data.getInt32(y.offset+y.V);y.V+=4;return t}; F6=function(y){var t=y.data.getUint32(y.offset+y.V);y.V+=4;return t}; A9=function(y){var t=y.data;var a=y.offset+y.V;t=t.getUint32(a)*4294967296+t.getUint32(a+4);y.V+=8;return t}; xv=function(y,t){t=t===void 0?NaN:t;if(isNaN(t))var a=y.size;else for(a=y.V;a1?Math.ceil(E*t):Math.floor(E*t))}y.skip(1);a=rz(y)<<16|E5(y);if(a&256){r=a&1;E=a&4;var h=a&512,F=a&1024,x=a&2048;a=F6(y);r&&y.skip(4);E&&y.skip(4);r=(h?4:0)+(F?4:0)+(x?4:0);for(E=0;E1?Math.ceil(F*t):Math.floor(F*t)),y.skip(r)}}}; MN=function(y){y=new DataView(y.buffer,y.byteOffset,y.byteLength);return(y=g.O5(y,0,1836476516))?g.LR(y):NaN}; ELb=function(y){var t=g.O5(y,0,1937011556);if(!t)return null;t=wz(y,t.dataOffset+8,1635148593)||wz(y,t.dataOffset+8,1635135537);if(!t)return null;var a=wz(y,t.dataOffset+78,1936995172),r=wz(y,t.dataOffset+78,1937126244);if(!r)return null;t=null;if(a)switch(a.skip(4),rz(a)){default:t=0;break;case 1:t=2;break;case 2:t=1;break;case 3:t=255}var E=a=null,h=null;if(r=wz(y,r.dataOffset,1886547818)){var F=wz(y,r.dataOffset,1886546020),x=wz(y,r.dataOffset,2037673328);if(!x&&(x=wz(y,r.dataOffset,1836279920), !x))return null;F&&(F.skip(4),a=h9(F)/65536,h=h9(F)/65536,E=h9(F)/65536);y=gau(x);y=new DataView(y.buffer,y.byteOffset+8,y.byteLength-8);return new aHy(t,a,h,E,y)}return null}; wz=function(y,t,a){for(;Ry(y,t);){var r=P3(y,t);if(r.type===a)return r;t+=r.size}return null}; g.O5=function(y,t,a){for(;Ry(y,t);){var r=P3(y,t);if(r.type===a)return r;t=NN(r.type)?t+8:t+r.size}return null}; g.dz=function(y){if(y.data.getUint8(y.dataOffset)){var t=y.data;y=y.dataOffset+4;t=t.getUint32(y)*4294967296+t.getUint32(y+4)}else t=y.data.getUint32(y.dataOffset+4);return t}; P3=function(y,t){var a=y.getUint32(t),r=y.getUint32(t+4);return new ay(y,t,a,r)}; g.LR=function(y){var t=y.data.getUint8(y.dataOffset)?20:12;return y.data.getUint32(y.dataOffset+t)}; hLF=function(y){y=new ay(y.data,y.offset,y.size,y.type,y.K);var t=rz(y);y.skip(7);var a=F6(y);if(t===0){t=F6(y);var r=F6(y)}else t=A9(y),r=A9(y);y.skip(2);for(var E=E5(y),h=[],F=[],x=0;x122)return!1}return!0}; NN=function(y){return y===1701082227||y===1836019558||y===1836019574||y===1835297121||y===1835626086||y===1937007212||y===1953653094||y===1953653099||y===1836475768}; Fu7=function(y){y.skip(4);return{e05:xv(y,0),value:xv(y,0),timescale:F6(y),bBe:F6(y),eventDuration:F6(y),id:F6(y),DR:xv(y),offset:y.offset}}; g.Asy=function(y){var t=wz(y,0,1701671783);if(!t)return null;var a=Fu7(t),r=a.e05;a=zC(a.DR);if(y=wz(y,t.offset+t.size,1701671783))if(y=Fu7(y),y=zC(y.DR),a&&y){t=g.p(Object.keys(y));for(var E=t.next();!E.done;E=t.next())E=E.value,a[E]=y[E]}return a?new CR(a,r):null}; X6=function(y,t){for(var a=wz(y,0,t);a;){var r=a;r.type=1936419184;r.data.setUint32(r.offset+4,1936419184);a=wz(y,a.offset+a.size,t)}}; g.kv=function(y,t){for(var a=0,r=[];Ry(y,a);){var E=P3(y,a);E.type===t&&r.push(E);a=NN(E.type)?a+8:a+E.size}return r}; xA1=function(y,t){var a=g.O5(y,0,1937011556),r=g.O5(y,0,1953654136);if(!a||!r||y.getUint32(a.offset+12)>=2)return null;var E=new DataView(t.buffer,t.byteOffset,t.length),h=g.O5(E,0,1937011556);if(!h)return null;t=E.getUint32(h.dataOffset+8);r=E.getUint32(h.dataOffset+12);if(r!==1701733217&&r!==1701733238)return null;r=new iFy(y.byteLength+t);s5(r,y,0,a.offset+12);r.data.setInt32(r.offset,2);r.offset+=4;s5(r,y,a.offset+16,a.size-16);s5(r,E,E.byteOffset+h.dataOffset+8,t);s5(r,y,a.offset+a.size,y.byteLength- (a.offset+a.size));a=g.p([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(E=a.next();!E.done;E=a.next())E=g.O5(y,0,E.value),r.data.setUint32(E.offset,E.size+t);y=g.O5(r.data,0,1953654136);r.data.setUint32(y.offset+16,2);return r.data}; soN=function(y){var t=g.O5(y,0,1937011556);if(!t)return null;var a=y.getUint32(t.dataOffset+12);if(a!==1701733217&&a!==1701733238)return null;t=wz(y,t.offset+24+(a===1701733217?28:78),1936289382);if(!t)return null;a=wz(y,t.offset+8,1935894637);if(!a||y.getUint32(a.offset+12)!==1667392371)return null;t=wz(y,t.offset+8,1935894633);if(!t)return null;t=wz(y,t.offset+8,1952804451);if(!t)return null;a=new Uint8Array(16);for(var r=0;r<16;r++)a[r]=y.getInt8(t.offset+16+r);return a}; fR=function(y,t){this.V=y;this.pos=0;this.start=t||0}; W3=function(y){return y.pos>=y.V.byteLength}; pR=function(y,t,a){var r=new fR(a);if(!jT(r,y))return!1;r=ST(r);if(!QR(r,t))return!1;for(y=0;t;)t>>>=8,y++;t=r.start+r.pos;var E=v3(r,!0);r=y+(r.start+r.pos-t)+E;r=r>9?$A7(r-9,8):$A7(r-2,1);y=t-y;a.setUint8(y++,236);for(t=0;ta;E++)a=a*256+nR(y),r*=128;return t?a-r:a}; lu=function(y){var t=v3(y,!0);y.pos+=t}; zLF=function(y){if(!QR(y,440786851,!0))return null;var t=y.pos;v3(y,!1);var a=v3(y,!0)+y.pos-t;y.pos=t+a;if(!QR(y,408125543,!1))return null;v3(y,!0);if(!QR(y,357149030,!0))return null;var r=y.pos;v3(y,!1);var E=v3(y,!0)+y.pos-r;y.pos=r+E;if(!QR(y,374648427,!0))return null;var h=y.pos;v3(y,!1);var F=v3(y,!0)+y.pos-h,x=new Uint8Array(a+12+E+F),U=new DataView(x.buffer);x.set(new Uint8Array(y.V.buffer,y.V.byteOffset+t,a));U.setUint32(a,408125543);U.setUint32(a+4,33554431);U.setUint32(a+8,4294967295); x.set(new Uint8Array(y.V.buffer,y.V.byteOffset+r,E),a+12);x.set(new Uint8Array(y.V.buffer,y.V.byteOffset+h,F),a+12+E);return x}; mO=function(y){var t=y.pos;y.pos=0;var a=1E6;jT(y,[408125543,357149030,2807729])&&(a=eT(y));y.pos=t;return a}; O$H=function(y,t){var a=y.pos;y.pos=0;if(y.V.getUint8(y.pos)!==160&&!J9(y)||!QR(y,160))return y.pos=a,NaN;v3(y,!0);var r=y.pos;if(!QR(y,161))return y.pos=a,NaN;v3(y,!0);nR(y);var E=nR(y)<<8|nR(y);y.pos=r;if(!QR(y,155))return y.pos=a,NaN;r=eT(y);y.pos=a;return(E+r)*t/1E9}; J9=function(y){if(!Luz(y)||!QR(y,524531317))return!1;v3(y,!0);return!0}; Luz=function(y){if(y.QB()){if(!QR(y,408125543))return!1;v3(y,!0)}return!0}; jT=function(y,t){for(var a=0;a0){var r=dx(8,t.substring(a+1));g.jy(r,function(E,h){this.set(h,E)},y); t=t.substring(0,a)}t=h1(49,t);g.jy(t,function(E,h){this.set(h,E)},y)}; w7x=function(y){var t=y.uW.xJ(),a=[];g.jy(y.V,function(E,h){a.push(h+"="+E)}); if(!a.length)return t;var r=a.join("&");y=h1(67,y.uW)?"&":"?";return t+y+r}; H3=function(y,t){var a=new g.C7(t);(t=a.get("req_id"))&&y.set("req_id",t);g.jy(y.V,function(r,E){a["set"](E,null)}); return a}; RL7=function(){this.D=this.Y=this.V=this.timedOut=this.started=this.L=this.K=0}; bu=function(y){y.L=(0,g.Wx)();y.started=0;y.timedOut=0;y.V=0}; B3=function(y,t){var a=y.started+y.V*4;t&&(a+=y.Y);a=Math.max(0,a-3);return Math.pow(1.6,a)}; c3=function(y,t){y[t]||(y[t]=new RL7);return y[t]}; qN=function(y){this.hF=this.W=this.L=this.Y=0;this.Z=this.J=!1;this.V=y;this.K=y.clone()}; P_1=function(y,t,a){if(Q2(88,y.V))return!1;var r=c3(a,WF(34,y.V));if(r.timedOut<1&&r.V<1)return!1;r=r.timedOut+r.V;y=Yv(y,t);a=c3(a,WF(35,y));return a.timedOut+a.V+01?t=t.Smu:(a=c3(a,gz(y,y.j8(t,a),t)),t=Math.max(y.L,a.timedOut)+t.rF*(y.Y-y.L)+.25*y.W,t=t>3?1E3*Math.pow(1.6,t-3):0);return t===0?!0:y.hF+t<(0,g.Wx)()}; NT7=function(y,t,a){y.V.set(t,a);y.K.set(t,a);y.D&&y.D.set(t,a)}; dAb=function(y,t,a,r,E){++y.Y;t&&++y.L;WF(36,a.uW).startsWith("redirector.")&&(y.V=y.K.clone(),delete y.D,r.z9&&delete E[WF(36,y.V)])}; KR=function(y){return y?(y.itag||"")+";"+(y.lmt||0)+";"+(y.xtags||""):""}; Iy=function(y,t,a,r){this.initRange=a;this.indexRange=r;this.V=null;this.Y=!1;this.J=0;this.D=this.pE=this.K=null;this.info=t;this.Pb=new qN(y)}; TC=function(y,t){return KR(g.cU(y.info,t))}; GC=function(y,t){this.start=y;this.end=t;this.length=t-y+1}; ZE=function(y){y=y.split("-");var t=Number(y[0]),a=Number(y[1]);if(!isNaN(t)&&!isNaN(a)&&y.length===2&&(y=new GC(t,a),!isNaN(y.start)&&!isNaN(y.end)&&!isNaN(y.length)&&y.length>0))return y}; yH=function(y,t){return new GC(y,y+t-1)}; X7d=function(y){return y.end==null?{start:String(y.start)}:{start:String(y.start),end:String(y.end)}}; tb=function(y){if(!y)return new GC(0,0);var t=Number(y.start);y=Number(y.end);if(!isNaN(t)&&!isNaN(y)&&(t=new GC(t,y),t.length>0))return t}; a1=function(y,t,a,r,E,h,F,x,U,C,z,O){r=r===void 0?"":r;this.type=y;this.z7=t;this.range=a;this.source=r;this.GH=z;this.clipId=O===void 0?"":O;this.Z=[];this.J="";this.a5=-1;this.hF=0;this.J=r;this.a5=E>=0?E:-1;this.startTime=h||0;this.duration=F||0;this.V=x||0;this.K=U>=0?U:this.range?this.range.length:NaN;this.Y=this.range?this.V+this.K===this.range.length:C===void 0?!!this.K:C;this.range?(this.D=this.startTime+this.duration*this.V/this.range.length,this.W=this.duration*this.K/this.range.length, this.L=this.D+this.W):kkn(this)}; kkn=function(y){y.D=y.startTime;y.W=y.duration;y.L=y.D+y.W}; fHN=function(y,t,a){var r=!(!t||t.z7!==y.z7||t.type!==y.type||t.a5!==y.a5);return a?r&&!!t&&(y.range&&t.range?t.range.end===y.range.end:t.range===y.range)&&t.V+t.K===y.V+y.K:r}; rZ=function(y){return y.type===1||y.type===2}; E6=function(y){return y.type===3||y.type===6}; F9=function(y,t){return y.z7===t.z7?y.range&&t.range?y.range.start+y.V+y.K===t.range.start+t.V:y.a5===t.a5?y.V+y.K===t.V:y.a5+1===t.a5&&t.V===0&&y.Y:!1}; jo1=function(y,t){return y.a5!==t.a5&&t.a5!==y.a5+1||y.type!==t.type?!1:F9(y,t)?!0:Math.abs(y.D-t.D)<=1E-6&&y.a5===t.a5?!1:WuF(y,t)}; WuF=function(y,t){return F9(y,t)||Math.abs(y.L-t.D)<=1E-6||y.a5+1===t.a5&&t.V===0&&y.Y?!0:!1}; Ab=function(y){return y.a5+(y.Y?1:0)}; S4V=function(y){y.length===1||g.pQ(y,function(a){return!!a.range}); for(var t=1;t=t.range.start+t.V&&y.range.start+y.V+y.K<=t.range.start+t.V+t.K:y.a5===t.a5&&y.V>=t.V&&(y.V+y.K<=t.V+t.K||t.Y)}; VsV=function(y,t){return y.z7!==t.z7?!1:y.type===4&&t.type===3&&y.z7.K_()?(y=y.z7.ya(y),rQ(y,function(a){return VsV(a,t)})):y.a5===t.a5&&!!t.K&&t.V+t.K>y.V&&t.V+t.K<=y.V+y.K}; s6=function(y,t){var a=t.a5;y.J="updateWithSegmentInfo";y.a5=a;if(y.startTime!==t.startTime||y.duration!==t.duration)y.startTime=t.startTime,y.duration=t.duration,kkn(y)}; $K=function(y,t){var a=this;this.Sr=y;this.D=this.V=null;this.L=this.IS=NaN;this.j8=this.requestId=null;this.Wb={Ltm:function(){return a.range}}; this.Pb=y[0].z7.Pb;this.K=t||"";this.Sr[0].range&&this.Sr[0].K>0&&(Qo7(y)?(this.range=S4V(y),this.Y=this.range.length):(this.range=this.Sr[this.Sr.length-1].range,this.Y=vLd(y)))}; U6=function(y){return!rZ(y.Sr[y.Sr.length-1])}; Cw=function(y){return y.Sr[y.Sr.length-1].type===4}; g.zW=function(y,t,a){a=y.j8===null?y.Pb.j8(t,a,y.Sr[0].type):y.j8;if(y.V){t=a?h1(88,y.V,t.IJ):y.V;var r=new oy(t);r.get("alr")||r.set("alr","yes");y.K&&MsV(r,y.K)}else/http[s]?:\/\//.test(y.K)?r=new oy(new g.C7(y.K)):(r=DE(y.Pb,a,t),y.K&&MsV(r,y.K));(t=y.range)?r.set("range",t.toString()):y.Sr[0].z7.Ar()&&y.Sr.length===1&&y.Sr[0].V&&r.set("range",y.Sr[0].V+"-");y.requestId&&r.set("req_id",y.requestId);isNaN(y.IS)||r.set("headm",y.IS.toString());isNaN(y.L)||r.set("mffa",y.L+"ms");y.urlParams&&g.jy(y.urlParams, function(E,h){r.set(h,E)}); return r}; nL1=function(y){if(y.range)return y.Y;y=y.Sr[0];return Math.round(y.W*y.z7.info.Hb)}; mAd=function(y,t){return Math.max(0,y.Sr[0].D-t)}; Js2=function(y,t){y=g.p(y.Sr);for(var a=y.next();!a.done;a=y.next())if(a=a.value,a.type===3&&t>=a.D&&t<=a.L)return!0;return!1}; O6=function(y,t,a,r,E,h){h=h===void 0?0:h;Iy.call(this,y,t,r,void 0);this.L=a;this.Z5=h;this.index=E||new g.t9}; oLV=function(y,t,a,r,E){this.a5=y;this.startSecs=t;this.iK=a;this.V=r||NaN;this.K=E||NaN}; Lw=function(y,t,a){for(;y;y=y.parentNode)if(y.attributes&&(!a||y.nodeName===a)){var r=y.getAttribute(t);if(r)return r}return""}; MK=function(y,t){for(;y;y=y.parentNode){var a=y.getElementsByTagName(t);if(a.length>0)return a[0]}return null}; H$b=function(y){if(!y)return 0;var t=y.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return t?(Number(t[2])|0)*3600+(Number(t[4])|0)*60+(Number(t[6])|0):Number(y)|0}; b$V=function(y){return y.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?y+"Z":y}; wZ=function(){this.V=[];this.K=null;this.J=0;this.Y=[];this.L=!1;this.W="";this.D=-1}; BT7=function(y){var t=y.Y;y.Y=[];return t}; csx=function(){this.D=[];this.V=null;this.K={};this.Y={}}; gLF=function(y,t){var a=[];t=Array.from(t.getElementsByTagName("SegmentTimeline"));t=g.p(t);for(var r=t.next();!r.done;r=t.next()){r=r.value;var E=r.parentNode.parentNode,h=null;E.nodeName==="Period"?h=q4x(y):E.nodeName==="AdaptationSet"?(E=E.getAttribute("id")||E.getAttribute("mimetype")||"",h=Y4V(y,E)):E.nodeName==="Representation"&&(E=E.getAttribute("id")||"",h=DAz(y,E));if(h==null)return;h.update(r);g.F4(a,BT7(h))}g.F4(y.D,a);IzN(y.D,function(F){return F.startSecs*1E3+F.V})}; i$d=function(y){y.V&&(y.V.V=[]);g.jy(y.K,function(t){t.V=[]}); g.jy(y.Y,function(t){t.V=[]})}; q4x=function(y){y.V||(y.V=new wZ);return y.V}; Y4V=function(y,t){y.K[t]||(y.K[t]=new wZ);return y.K[t]}; DAz=function(y,t){y.Y[t]||(y.Y[t]=new wZ);return y.Y[t]}; Py=function(y){var t=y===void 0?{}:y;y=t.Z5===void 0?0:t.Z5;var a=t.Zk===void 0?!1:t.Zk;var r=t.x5===void 0?0:t.x5;var E=t.H1===void 0?0:t.H1;var h=t.On===void 0?Infinity:t.On;var F=t.XN===void 0?0:t.XN;var x=t.d7===void 0?!1:t.d7;t=t.Nu===void 0?!1:t.Nu;g.t9.call(this);this.H0=this.Rq=-1;this.dP=y;this.x5=r;this.Zk=a;this.H1=E;this.On=h;this.XN=F;((this.d7=x)||isFinite(h)&&this.On>0)&&a&&R1&&(this.K=!1,this.Y="postLive");this.Nu=t}; NK=function(y,t){return zJ(y.segments,function(a){return t-a.a5})}; dZ=function(y,t,a){a=a===void 0?{}:a;O6.call(this,y,t,"",void 0,void 0,a.Z5||0);this.index=new Py(a)}; X9=function(y,t,a){Iy.call(this,y,t);this.L=a;y=this.index=new g.t9;y.K=!1;y.Y="d"}; Ku2=function(y,t,a){var r=y.index.ST(t),E=y.index.getStartTime(t),h=y.index.getDuration(t);a?h=a=0:a=y.info.Hb*h;return new $K([new a1(3,y,void 0,"otfCreateRequestInfoForSegment",t,E,h,0,a)],r)}; IH1=function(y,t){if(!y.index.isLoaded()){var a=[],r=t.D;t=t.L.split(",").filter(function(z){return z.length>0}); for(var E=0,h=0,F=0,x=/^(\d+)/,U=/r=(\d+)/,C=0;C0&&(E.V=Math.min(E.V+F,10),E.K=h);E.V>0?(E.V--,E=!0):E=!1;if(E)typeof r==="function"&&(r=r()),console.log("plyr."+t,r);else{var x;r=((x=aGz.get(t))!=null?x:0)+1;aGz.set(t,r);r%100===1&&console.warn("plyr","plyr."+t+" is chatty, dropping logs.")}}}; ttn=function(){this.V=10;this.K=Date.now()}; Wy=function(y,t){this.info=y;this.K=t;this.V=null;this.D=this.Y=-1;this.timestampOffset=0;this.isLocked=this.J=!1;this.L=this.info.z7.qd()&&!this.info.V}; g.jh=function(y){return Nc7(y.K)}; r0u=function(y,t){t=Math.min(t,y.info.K);var a=y.K.split(t),r=a.q1;a=new Wy(new a1(y.info.type,y.info.z7,y.info.range,y.info.J,y.info.a5,y.info.startTime,y.info.duration,y.info.V,t,!1,y.info.GH,y.info.clipId),a.zm);a.D=y.D;a.Y=y.Y;t=new Wy(new a1(y.info.type,y.info.z7,y.info.range,y.info.J,y.info.a5,y.info.startTime,y.info.duration,y.info.V+t,y.info.K-t,y.info.Y,y.info.GH,y.info.clipId),r);t.D=y.D;t.Y=y.Y;return[a,t]}; g.Sh=function(y,t,a,r){a=a===void 0?!1:a;r=r===void 0?0:r;if(y.isLocked||t.isLocked||!F9(y.info,t.info)||y.info.Y)return null;if(r){if(y.K.totalLength+t.K.totalLength>r)return null}else if(a&&(a=y.K,r=t.K,a=!(r.V.length?Rx2(a,r.V[0]):1)),a)return null;a=new a1(y.info.type,y.info.z7,y.info.range,y.info.J,y.info.a5,y.info.startTime,y.info.duration,y.info.V,y.info.K,y.info.Y,y.info.GH,y.info.clipId);r=t.info;a.K+=r.K;a.range&&(a.W+=r.W);a.L=r.L;a.Y=r.Y;r=new $k;Uh(r,y.K);Uh(r,t.K);a=new Wy(a,r);a.V!= null&&t.V!=null&&g.fw("dash",414627957,"merged slice emsg overridden; prev: "+a.V.XZ()+" next: "+t.V.XZ());a.V=t.V||y.V;a.Y=y.Y!==-1?y.Y:t.Y;a.D=y.D!==-1?y.D:t.D;return a}; g.QH=function(y){g.bH(y.info.z7.info)||y.info.z7.info.GO();if(y.Y!==-1)return y.Y;if(y.V&&T$N(y.V))return y.Y=T$N(y.V),y.Y;if(g.bH(y.info.z7.info)){var t=g.jh(y);for(var a=y.info.z7.V,r=NaN,E=NaN,h=0;Ry(t,h);){var F=P3(t,h);F.type===1936286840?E=F.data.getUint32(F.dataOffset+8):F.type===1836476516?E=g.LR(F):F.type===1952867444&&isNaN(r)&&(r=g.dz(F));h=NN(F.type)?h+8:h+F.size}!E&&a&&(E=MN(a));t=r/E}else t=new fR(g.jh(y)),a=y.L?t:new fR(new DataView(y.info.z7.V.buffer)),r=mO(a),a=t.pos,t.pos=0,J9(t)? QR(t,231)?(r=eT(t)*r/1E9,t.pos=a,t=r):(t.pos=a,t=NaN):(t.pos=a,t=NaN);y.Y=t||y.info.D;return y.Y}; hR2=function(y,t){y.timestampOffset>0&&(t-=y.timestampOffset);var a=g.QH(y)+t;E8N(y,a);y.timestampOffset=t}; E8N=function(y,t){g.bH(y.info.z7.info)||y.info.z7.info.GO();y.Y=t;if(g.bH(y.info.z7.info)){var a=g.jh(y);y=y.info.z7.V;for(var r=NaN,E=NaN,h=0;Ry(a,h);){var F=P3(a,h);isNaN(r)&&(F.type===1936286840?r=F.data.getUint32(F.dataOffset+8):F.type===1836476516&&(r=g.LR(F)));if(F.type===1952867444){!r&&y&&(r=MN(y));var x=g.dz(F);isNaN(E)&&(E=Math.round(t*r)-x);var U=F;x+=E;if(U.data.getUint8(U.dataOffset)){var C=U.data;U=U.dataOffset+4;C.setUint32(U,Math.floor(x/4294967296));C.setUint32(U+4,x&4294967295)}else U.data.setUint32(U.dataOffset+ 4,x)}h=NN(F.type)?h+8:h+F.size}return!0}a=new fR(g.jh(y));y=y.L?a:new fR(new DataView(y.info.z7.V.buffer));r=mO(y);y=a.pos;a.pos=0;if(J9(a)&&QR(a,231))if(E=v3(a,!0),t=Math.floor(t*1E9/r),Math.ceil(Math.log(t)/Math.log(2)/8)>E)t=!1;else{for(r=E-1;r>=0;r--)a.V.setUint8(a.pos+r,t&255),t>>>=8;a.pos=y;t=!0}else t=!1;return t}; pw=function(y,t){t=t===void 0?!1:t;var a=vy(y);y=t?0:y.info.W;return a||y}; vy=function(y){g.bH(y.info.z7.info)||y.info.z7.info.GO();if(y.V&&y.info.type===6)return y.V.Z5;if(g.bH(y.info.z7.info)){var t=g.jh(y);var a=0;t=g.kv(t,1936286840);t=g.p(t);for(var r=t.next();!r.done;r=t.next())r=hLF(r.value),a+=r.VL[0]/r.timescale;a=a||NaN;if(!(a>=0))a:{a=g.jh(y);t=y.info.z7.V;for(var E=r=0,h=0;Ry(a,r);){var F=P3(a,r);if(F.type===1836476516)E=g.LR(F);else if(F.type===1836019558){!E&&t&&(E=MN(t));if(!E){a=NaN;break a}var x=wz(F.data,F.dataOffset,1953653094),U=x;x=E;var C=wz(U.data, U.dataOffset,1952868452);U=wz(U.data,U.dataOffset,1953658222);var z=h9(C);h9(C);z&2&&h9(C);C=z&8?h9(C):0;var O=h9(U),M=O&1;z=O&4;var L=O&256,w=O&512,d=O&1024;O&=2048;var k=F6(U);M&&h9(U);z&&h9(U);for(var e=M=0;e2048?"":t.indexOf("https://")===0?t:""}; mk=function(y,t,a){t.match(Mtz);return y(t,a).then(function(r){var E=g.LWu(r.xhr);return E?mk(y,E,a):r.xhr})}; bi=function(y,t,a){y=y===void 0?"":y;t=t===void 0?null:t;a=a===void 0?!1:a;g.FM.call(this);var r=this;this.sourceUrl=y;this.isLivePlayback=a;this.C1=this.duration=0;this.isPremiere=this.d7=this.D=this.isLiveHeadPlayable=this.isLive=this.K=!1;this.On=this.H1=0;this.isOtf=this.US=!1;this.Ff=(0,g.Wx)();this.Vv=Infinity;this.V={};this.Y=new Map;this.state=this.L_=0;this.W=null;this.isManifestless=!1;this.DE=[];this.L=null;this.d0=0;this.J="";this.L1=NaN;this.qp=this.hc=this.timestampOffset=this.Z=0;this.CG= this.j$=NaN;this.Mq=0;this.yv=this.AF=!1;this.r0=[];this.JF={};this.o5=NaN;this.Wb={yWu:function(x){Jb(r,x)}}; var E;this.R5=(E=t)==null?void 0:E.Nr("html5_use_network_error_code_enums");wU7=!!t&&t.Nr("html5_modern_vp9_mime_type");var h;o1=!((h=t)==null||!h.Nr("html5_enable_flush_during_seek"))&&g.IB();var F;Hy=!((F=t)==null||!F.Nr("html5_enable_reset_audio_decoder"))&&g.IB()}; RRx=function(y){return g.A1(y.V,function(t){return!!t.info.video&&t.info.video.qualityOrdinal>=2160})}; bF2=function(y){return g.A1(y.V,function(t){return!!t.info.video&&t.info.video.isHdr()})}; gP=function(y){return g.A1(y.V,function(t){return!!t.info.YJ})}; g.PH2=function(y){return g.A1(y.V,function(t){return DG(t.info.mimeType)})}; Ngn=function(y){return g.A1(y.V,function(t){return t.info.video?t.info.video.projectionType==="EQUIRECTANGULAR":!1})}; dBb=function(y){return g.A1(y.V,function(t){return t.info.video?t.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; XUd=function(y){return g.A1(y.V,function(t){return t.info.video?t.info.video.projectionType==="MESH":!1})}; kM7=function(y){return g.A1(y.V,function(t){return t.info.video?t.info.video.stereoLayout===1:!1})}; fGd=function(y){return tc1(y.V,function(t){return t.info.video?t.d8():!0})}; qy=function(y){return g.A1(y.V,function(t){return Q2(72,t.Pb.V)})}; Jb=function(y,t){y.V[t.info.id]=t;y.Y.set(TC(t,y.US),t)}; qK=function(y,t,a){a=a===void 0?0:a;var r=y.mimeType||"",E=y.itag;var h=y.xtags;E=E?E.toString():"";h&&(E+=";"+h);h=E;if(Y8(r)){var F=y.width||640;E=y.height||360;var x=y.fps,U=y.qualityLabel,C=y.qualityOrdinal,z=y.colorInfo,O=y.projectionType,M;y.stereoLayout&&(M=WWx[y.stereoLayout]);var L=zRu(y)||void 0;if(z==null?0:z.primaries)var w=jl7[z.primaries]||void 0;F=new St(F,E,x,O,M,void 0,U,C&&SDd[C],L,w);r=By(r,F,pi[y.itag||""]);o1&&(r+="; enableflushduringseek=true");Hy&&(r+="; enableresetaudiodecoder=true")}var d; if(qB(r)){var k=y.audioSampleRate;M=y.audioTrack;k=new zM(k?+k:void 0,y.audioChannels,y.spatialAudioType,y.isDrc,y.loudnessDb,y.trackAbsoluteLoudnessLkfs,y.audioQuality||"AUDIO_QUALITY_UNKNOWN",y.isVb);M&&(w=M.displayName,E=M.id,x=M.audioIsDefault,M=M.isAutoDubbed,w&&(d=new g.nw(w,E||"",!!x,!!M)))}var e;y.captionTrack&&(U=y.captionTrack,M=U.displayName,w=U.vssId,E=U.languageCode,x=U.kind,U=U.id,M&&w&&E&&(e=new UBN(M,w,E,x,y.xtags,U)));M=Number(y.bitrate)/8;w=Number(y.contentLength);E=Number(y.lastModified); U=y.drmFamilies;x=y.type;a=a&&w?w/a:0;y=Number(y.approxDurationMs);if(t&&U){var v={};U=g.p(U);for(C=U.next();!C.done;C=U.next())(C=cy[C.value])&&(v[C]=t[C])}return new et(h,r,{audio:k,video:F,qK:d,YJ:v,Hb:M,s5:a,contentLength:w,lastModified:E,captionTrack:e,streamType:x,approxDurationMs:y})}; YK=function(y,t,a){a=a===void 0?0:a;var r=y.type;var E=y.itag;var h=y.xtags;h&&(E=y.itag+";"+h);if(Y8(r)){var F=(y.size||"640x360").split("x");F=new St(+F[0],+F[1],+y.fps,y.projection_type,+y.stereo_layout,void 0,y.quality_label,+y.quality_ordinal,y.eotf,y.primaries);r=By(r,F,pi[y.itag]);o1&&(r+="; enableflushduringseek=true");Hy&&(r+="; enableresetaudiodecoder=true")}var x;if(qB(r)){var U=new zM(+y.audio_sample_rate||void 0,+y.audio_channels||0,y.spatial_audio_type,!!y.drc);y.name&&(x=new g.nw(y.name, y.audio_track_id,y.isDefault==="1",y.isAutoDubbed==="1"))}var C;y.caption_display_name&&y.caption_vss_id&&y.caption_language_code&&(C=new UBN(y.caption_display_name,y.caption_vss_id,y.caption_language_code,y.caption_kind,y.xtags,y.caption_id));h=Number(y.bitrate)/8;var z=Number(y.clen),O=Number(y.lmt);a=a&&z?z/a:0;if(t&&y.drm_families){var M={};for(var L=g.p(y.drm_families.split(",")),w=L.next();!w.done;w=L.next())w=w.value,M[w]=t[w]}return new et(E,r,{audio:U,video:F,qK:x,YJ:M,Hb:h,s5:a,contentLength:z, lastModified:O,captionTrack:C,streamType:y.stream_type,approxDurationMs:Number(y.approx_duration_ms)})}; Qln=function(y){return rQ(y,function(t){return"FORMAT_STREAM_TYPE_OTF"===t.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; v8F=function(y){return rQ(y,function(t){return"FORMAT_STREAM_TYPE_OTF"===t.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; pU2=function(y,t){return y.W?AB(y.W.D,t):y.DE.length?AB(y.DE,t):[]}; Dr=function(y,t,a){t=t===void 0?"":t;a=a===void 0?"":a;y=new g.C7(y,!0);y.set("alr","yes");a&&(a=n7(16,decodeURIComponent(a)),y[A[9]](t,encodeURIComponent(a)));return y}; VtH=function(y,t){var a=Lw(t,"id");a=a.replace(":",";");var r=Lw(t,"mimeType"),E=Lw(t,"codecs");r=E?r+'; codecs="'+E+'"':r;E=Number(Lw(t,"bandwidth"))/8;var h=Number(MK(t,"BaseURL").getAttribute(y.J+":contentLength")),F=y.duration&&h?h/y.duration:0;if(Y8(r)){var x=Number(Lw(t,"width"));var U=Number(Lw(t,"height")),C=Number(Lw(t,"frameRate")),z=eRF(Lw(t,y.J+":projectionType"));a:switch(Lw(t,y.J+":stereoLayout")){case "layout_left_right":var O=1;break a;case "layout_top_bottom":O=2;break a;default:O= 0}x=new St(x,U,C,z,O)}if(qB(r)){var M=Number(Lw(t,"audioSamplingRate"));var L=Number(Lw(t.getElementsByTagName("AudioChannelConfiguration")[0],"value"));U=lGn(Lw(t,y.J+":spatialAudioType"));M=new zM(M,L,U);a:{L=Lw(t,"lang")||"und";if(U=MK(t,"Role"))if(z=Lw(U,"value")||"",g.Sk(ucV,z)){U=L+"."+ucV[z];C=z==="main";y=Lw(t,y.J+":langName")||L+" - "+z;L=new g.nw(y,U,C);break a}L=void 0}}if(t=MK(t,"ContentProtection"))if(t.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var w={};for(t= t.firstChild;t!=null;t=t.nextSibling)t instanceof Element&&/SystemURL/.test(t.nodeName)&&(y=t.getAttribute("type"),U=t.textContent,y&&U&&(w[y]=U.trim()))}else w=void 0;return new et(a,r,{audio:M,video:x,qK:L,YJ:w,Hb:E,s5:F,contentLength:h})}; eRF=function(y){switch(y){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"}}; lGn=function(y){switch(y){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"}}; mBN=function(y,t){t=t===void 0?"":t;y.state=1;y.Ff=(0,g.Wx)();return Oi7(t||y.sourceUrl).then(function(a){if(!y.Qv()){y.L_=a.status;a=a.responseText;var r=new DOMParser;a=BW(r,CY1(a),"text/xml").getElementsByTagName("MPD")[0];y.Vv=H$b(Lw(a,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(a.attributes){r=g.p(a.attributes);for(var E=r.next();!E.done;E=r.next())if(E=E.value,E.value==="http://youtube.com/yt/2012/10/10"){r=E.name.split(":")[1];break b}}r=""}y.J=r;y.isLive=y.Vv=y.Vv}; n8u=function(y){var t=y.Vv;isFinite(t)&&(gZ(y)?y.refresh():(t=Math.max(0,y.Ff+t-(0,g.Wx)()),y.L||(y.L=new g.Te(y.refresh,t,y),g.c(y,y.L)),y.L.start(t)))}; o87=function(y){y=y.V;for(var t in y){var a=y[t].index;if(a.isLoaded())return a.lJ()+1}return 0}; ii=function(y){return y.hc?y.hc-(y.Z||y.timestampOffset):0}; Kw=function(y){return y.qp?y.qp-(y.Z||y.timestampOffset):0}; I1=function(y){if(!isNaN(y.L1))return y.L1;var t=y.V,a;for(a in t){var r=t[a].index;if(r.isLoaded()&&!DG(t[a].info.mimeType)){t=0;for(a=r.zJ();a<=r.lJ();a++)t+=r.getDuration(a);t/=r.SH();t=Math.round(t/.5)*.5;r.SH()>10&&(y.L1=t);return t}if(y.isLive&&(r=t[a],r.Z5))return r.Z5}return NaN}; Hin=function(y,t){y=r7b(y.V,function(r){return r.index.isLoaded()}); if(!y)return NaN;y=y.index;var a=y.G5(t);return y.getStartTime(a)===t?t:a=0&&E.segments.splice(h,1)}}}; Bgx=function(y){for(var t in y.V)DG(y.V[t].info.mimeType)||D41(y.V[t].index,Infinity)}; Zr=function(y,t,a){for(var r in y.V){var E=y.V[r].index,h=t,F=a;E.Zk&&(h&&(E.Rq=Math.max(E.Rq,h)),F&&(E.H0=Math.max(E.H0||0,F)))}a&&(y.o5=a/1E3)}; c0N=function(y){y.qp=0;y.hc=0;y.Mq=0}; yr=function(y){return y.yv&&y.isManifestless?y.isLiveHeadPlayable:y.isLive}; By=function(y,t,a){t5===null&&(t5=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(wU7&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return t5||a!=="9"&&a!=="("?t5||a!=="9h"&&a!=="(h"||(y='video/webm; codecs="vp9.2"'):y='video/webm; codecs="vp9"',y;if(!t5&&!aE||y!=='video/webm; codecs="vp9"'&&y!=='video/webm; codecs="vp9.2"')return y; a="00";var r="08",E="01",h="01",F="01";y==='video/webm; codecs="vp9.2"'&&(a="02",r="10",t.primaries==="bt2020"&&(F=E="09"),t.V==="smpte2084"&&(h="16"),t.V==="arib-std-b67"&&(h="18"));return'video/webm; codecs="'+["vp09",a,"51",r,"01",E,h,F,"00"].join(".")+'"'}; EI=function(y,t,a){y=""+y+(t>49?"p60":t>32?"p48":"");t=S_()[y];if(t!=null&&t>0)return t;t=r9.get(y);if(t!=null&&t>0)return t;a=a==null?void 0:a.get(y);return a!=null&&a>0?a:8192}; YDF=function(y){this.P4=y;this.vO=this.l8=this.Ff=this.L=this.D=this.DE=this.JF=this.AF=!1;this.W=this.J=0;this.n1=!1;this.Vv=!0;this.T7=!1;this.vt=0;this.hX=this.d0=!1;this.MP=!0;this.r0=this.C1=!1;this.K={};this.FB=this.MK=this.IR=this.disableAv1=this.I7=this.RR=this.Az=this.zl=this.V=this.Z=!1;this.o5=0;this.cj=this.P4.B("html5_disable_aac_preference");this.nJ=Infinity;this.L1=0;this.ZA=this.P4.Bb();this.XB=this.P4.experiments.Nr("html5_enable_vp9_fairplay");this.bq=this.P4.B("html5_force_av1_for_testing"); this.uK=this.P4.pJ().V.o7(qDd);this.R5=g.Gw(this.P4.experiments,"html5_av1_ordinal_cap");this.oo=this.P4.B("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.EM=this.P4.B("html5_account_onesie_format_selection_during_format_filter");this.Hb=g.Gw(this.P4.experiments,"html5_max_byterate");this.sR=this.P4.B("html5_enable_iamf_audio");this.yv=this.P4.experiments.Nr("html5_allow_capability_merge");this.pM=this.P4.B("html5_enable_encrypted_av1")}; B$7=function(y){if(y.JF)return["f"];if(g.io("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var t=["9h","9","h","8"];y.pM&&t.push("1e");t=t.concat(["(h","(","H","*"]);y.d0&&(t.unshift("1"),t.unshift("1h"));y.l8&&t.unshift("h");y.hF&&(t=(DBH[y.hF]||[y.hF]).concat(t));return t}; VGb=function(y){var t=["o","a","A"];y.L1===1&&(y.D&&(t=["mac3","MAC3"].concat(t)),y.L&&(t=["meac3","MEAC3"].concat(t)),y.sR&&(t=["i","I"].concat(t)));y.AF&&(t=["so","sa"].concat(t));!y.vO||y.Ff||y.Y||y.cj||t.unshift("a");y.Y&&(t=(DBH[y.Y]||[y.Y]).concat(t));return t}; h5=function(y,t,a,r){t=t===void 0?{}:t;if(r===void 0?0:r)return t.disabled=1,0;if(G9(y.L,Za.AV1_CODECS)&&G9(y.L,Za.HEIGHT)&&G9(y.L,Za.BITRATE))return t.isCapabilityUsable=1,8192;try{var E=LXx();if(E&&!y.B("disable_av1_setting"))return t.localPref=E}catch(x){}r=1080;E=navigator.hardwareConcurrency;E<=2&&(r=480);t.coreCount=E;if(E=g.Gw(y.experiments,"html5_default_av1_threshold"))r=t["default"]=E;if(y=y.L.AF)t.mcap=y,r=Math.max(r,y);if(a){var h,F;if(y=(h=a.videoInfos.find(function(x){return ol(x)}))== null?void 0:(F=h.K)==null?void 0:F.powerEfficient)r=8192,t.isEfficient=1; a=a.videoInfos[0].video;h=Math.min(EI("1",a.fps),EI("1",30));t.perfCap=h;r=Math.min(r,h);a.isHdr()&&!y&&(t.hdr=1,r*=.75)}else a=EI("1",30),t.perfCap30=a,r=Math.min(r,a),a=EI("1",60),t.perfCap60=a,r=Math.min(r,a);return t.av1Threshold=r}; Fg=function(y,t,a,r){this.flavor=y;this.keySystem=t;this.K=a;this.experiments=r;this.V={};this.RN=this.keySystemAccess=null;this.LQ=this.aH=-1;this.zI=null;this.Y=!!r&&r.Nr("edge_nonprefixed_eme");r&&r.Nr("html5_enable_vp9_fairplay")}; x3=function(y){return y.Y?!1:!y.keySystemAccess&&!!A5()&&y.keySystem==="com.microsoft.playready"}; sI=function(y){return y.keySystem==="com.microsoft.playready"}; $3=function(y){return!y.keySystemAccess&&!!A5()&&y.keySystem==="com.apple.fps.1_0"}; UI=function(y){return y.keySystem==="com.youtube.fairplay"}; CN=function(y){return y.keySystem==="com.youtube.fairplay.sbdl"}; g.zu=function(y){return y.flavor==="fairplay"}; A5=function(){var y=window,t=y.MSMediaKeys;ZY()&&!t&&(t=y.WebKitMediaKeys);return t&&t.isTypeSupported?t:null}; LN=function(y){return navigator.requestMediaKeySystemAccess?g.x8&&!g.IB()?j4("45"):g.IU||g.Le?y.Nr("edge_nonprefixed_eme"):g.OI?j4("47"):g.wR&&y.Nr("html5_enable_safari_fairplay")?!1:!0:!1}; g8y=function(y,t,a,r){var E=Tc(),h=(a=E||a&&ZY())?["com.youtube.fairplay"]:["com.widevine.alpha"];t&&h.unshift("com.youtube.widevine.l3");E&&r&&h.unshift("com.youtube.fairplay.sbdl");return a?h:y?[].concat(g.i7(h),g.i7(MO.playready)):[].concat(g.i7(MO.playready),g.i7(h))}; w9=function(y,t,a,r,E){r=r===void 0?!1:r;g.H.call(this);this.P4=t;this.useCobaltWidevine=r;this.H4=E;this.K=[];this.Y={};this.V={};this.callback=null;this.L=!1;this.D=[];this.initialize(y,!a)}; KWy=function(y,t){y.callback=t;y.D=[];LN(y.P4.experiments)?RE(y):ii7(y)}; RE=function(y){if(!y.Qv())if(y.K.length===0)y.callback(y.D);else{var t=y.K[0],a=y.Y[t],r=IGn(y,a);if(Pt&&Pt.keySystem===t&&Pt.SMX===JSON.stringify(r))y.H4("remksa",{re:!0}),Tg1(y,a,Pt.keySystemAccess);else{var E,h;y.H4("remksa",{re:!1,ok:(h=(E=Pt)==null?void 0:E.keySystem)!=null?h:""});Pt=void 0;navigator.requestMediaKeySystemAccess(t,r).then(Ad(function(F){Tg1(y,a,F,r)}),Ad(function(){y.L=!y.L&&y.Y[y.K[0]].flavor==="widevine"; y.L||y.K.shift();RE(y)}))}}}; Tg1=function(y,t,a,r){if(!y.Qv()){r&&(Pt={keySystem:t.keySystem,keySystemAccess:a,SMX:JSON.stringify(r)});t.keySystemAccess=a;if(sI(t)){a=Fc();r=g.p(Object.keys(y.V[t.flavor]));for(var E=r.next();!E.done;E=r.next())E=E.value,t.V[E]=!!a.canPlayType(E)}else{a=t.keySystemAccess.getConfiguration();if(a.audioCapabilities)for(r=g.p(a.audioCapabilities),E=r.next();!E.done;E=r.next())t.V[E.value.contentType]=!0;if(a.videoCapabilities)for(a=g.p(a.videoCapabilities),r=a.next();!r.done;r=a.next())t.V[r.value.contentType]= !0}y.D.push(t);y.useCobaltWidevine||y.B("html5_enable_vp9_fairplay")&&CN(t)?(y.K.shift(),RE(y)):y.callback(y.D)}}; IGn=function(y,t){var a={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(y.B("html5_enable_vp9_fairplay")&&UI(t))return a.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),a.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[a];sI(t)&&(a.initDataTypes=["keyids","cenc"]);for(var r=g.p(Object.keys(y.V[t.flavor])),E=r.next();!E.done;E=r.next()){E=E.value;var h=E.indexOf("audio/")===0,F=h?a.audioCapabilities:a.videoCapabilities;t.flavor!== "widevine"||y.L?F.push({contentType:E}):h?F.push({contentType:E,robustness:"SW_SECURE_CRYPTO"}):(g.x8&&g.io("windows nt")&&!y.B("html5_drm_enable_moho")||F.push({contentType:E,robustness:"HW_SECURE_ALL"}),h=E,y.P4.L.K&&E.includes("vp09")&&(h=E+"; experimental=allowed"),F.push({contentType:h,robustness:"SW_SECURE_DECODE"}),NO(y.P4)==="MWEB"&&(hU()||Kt())&&(y.H4("swcrypto",{}),F.push({contentType:E,robustness:"SW_SECURE_CRYPTO"})))}return[a]}; ii7=function(y){if(A5()&&(g.wR||tU))y.D.push(new Fg("fairplay","com.apple.fps.1_0","",y.P4.experiments));else{var t=GM7(),a=g.D9(y.K,function(r){var E=y.Y[r],h=!1,F=!1,x;for(x in y.V[E.flavor])t(x,r)&&(E.V[x]=!0,h=h||x.indexOf("audio/")===0,F=F||x.indexOf("video/")===0);return h&&F}); a&&y.D.push(y.Y[a]);y.K=[]}y.callback(y.D)}; GM7=function(){var y=A5();if(y){var t=y.isTypeSupported;return function(r,E){return t(E,r)}}var a=Fc(); return a&&(a.addKey||a.webkitAddKey)?function(r,E){return!!a.canPlayType(r,E)}:function(){return!1}}; d9=function(y){var t;y=Fk((t=y.serializedClientExperimentFlags)!=null?t:"","&");this.flags=new Map(Object.entries(y).map(function(a){var r=g.p(a);a=r.next().value;r=r.next().value;return typeof r==="string"?[a,r]:[a,r[0]]}))}; aqu=function(y,t){switch(t.Fp){case "bool":return y.Nr(t.BA);case "int":return y=Zi7(y,t.BA),zH(y);case "double":return Zi7(y,t.BA);case "string":return yu1(y,t.BA);case "int32_list":return tL7(y,t.BA);case "int64_list":return tL7(y,t.BA).map(function(a){return zH(a)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; Zi7=function(y,t){y=y.flags.get(""+t);return Number(y)||0}; tL7=function(y,t){if(y=y.flags.get(""+t))if(y=y.replace(/\[ *(.*?) *\]/,"$1"))return y.split(",").map(Number);return[]}; yu1=function(y,t){return(y=y.flags.get(""+t))?y.toString():""}; Xg=function(y,t,a){this.V=void 0;this.experimentIds=y?y.split(","):[];this.flags=Fk(t||"","&");y={};t=g.p(this.experimentIds);for(var r=t.next();!r.done;r=t.next())y[r.value]=!0;this.experiments=y;a=new d9(a);this.Y=new QDd(a);this.K=new S$b(a)}; g.Gw=function(y,t,a){a=a===void 0?0:a;y=y.o7(t);JSON.stringify(y);return y===void 0?a:Number(y)}; k3=function(y,t){return(y=y.o7(t))?y.toString():""}; ruH=function(y){if(y=y.o7("html5_web_po_experiment_ids"))if(y=y.replace(/\[ *(.*?) *\]/,"$1"))return y.split(",").map(Number);return[]}; Eqb=function(y){if(y.V)return y.V;if(y.experimentIds.length<=1)return y.V=y.experimentIds,y.V;var t=[].concat(g.i7(y.experimentIds)).map(function(r){return Number(r)}); t.sort();for(var a=t.length-1;a>0;--a)t[a]-=t[a-1];y.V=t.map(function(r){return r.toString()}); y.V.unshift("v1");return y.V}; Fq7=function(y){return hVV.then(y)}; fN=function(y,t,a){this.experiments=y;this.o5=t;this.DE=a===void 0?!1:a;this.Z=!!g.jc("cast.receiver.platform.canDisplayType");this.W={};this.hF=!1;this.Y=new Map;this.J=!0;this.V=this.K=!1;this.AF=0;this.Vv=this.experiments.Nr("html5_disable_vp9_encrypted");this.D=this.experiments.Nr("html5_enable_encrypted_av1");y=g.jc("cast.receiver.platform.getValue");this.L=!this.Z&&y&&y("max-video-resolution-vpx")||null;Aud(this);this.K=!!(Tc()&&gs()>=21)}; YYx=function(y,t,a){a=a===void 0?1:a;var r=t.itag;if(r==="0")return!0;var E=t.mimeType;if(t.G7==="1e"&&!y.D)return"dav1enc";if(ol(t)&&y.hF)return"dav1";if(t.video&&(t.video.isHdr()||t.video.primaries==="bt2020")&&!(G9(y,Za.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(r==="338"&&!(g.x8?j4(53):g.OI&&j4(64)))return"dopus";var h=a;h=h===void 0?1: h;a={};t.video&&(t.video.width&&(a[Za.WIDTH.name]=t.video.width),t.video.height&&(a[Za.HEIGHT.name]=t.video.height),t.video.fps&&(a[Za.FRAMERATE.name]=t.video.fps*h),t.video.V&&(a[Za.EOTF.name]=t.video.V),t.Hb&&(a[Za.BITRATE.name]=t.Hb*8*h),t.G7==="("&&(a[Za.CRYPTOBLOCKFORMAT.name]="subsample"),t.video.projectionType==="EQUIRECTANGULAR"||t.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||t.video.projectionType==="MESH")&&(a[Za.DECODETOTEXTURE.name]="true");var F;((F=t.audio)==null?0:F.numChannels)&& t.G7!=="i"&&t.G7!=="I"&&(a[Za.CHANNELS.name]=t.audio.numChannels);y.K&&lH(t)&&(a[Za.EXPERIMENTAL.name]="allowed");F=g.p(Object.keys(Za));for(h=F.next();!h.done;h=F.next()){h=Za[h.value];var x;if(x=a[h.name])if(x=!(h===Za.EOTF&&t.mimeType.indexOf("vp09.02")>0)){x=h;var U=t;x=!(y.experiments.Nr("html5_ignore_h264_framerate_cap")&&x===Za.FRAMERATE&&FZz(U))}if(x)if(G9(y,h))if(y.L){if(y.L[h.name]1080&&t.YJ&&(E+="; hdcp=2.2");return r==="227"?"hqcenc":r!=="585"&&r!=="588"&&r!=="583"&&r!=="586"&&r!=="584"&&r!=="587"&&r!=="591"&&r!=="592"||y.experiments.Nr("html5_enable_new_hvc_enc")?Tc()&&gs()>=21&&g.io("appletv5")&&(r==="410"||r==="845")?!0:y.isTypeSupported(E)?!0:"tpus":"newhvc"}; Wt=function(){var y=Kt()&&!j4(29),t=g.io("google tv")&&g.io("chrome")&&!j4(30);return y||t?!1:sK()}; x2n=function(y,t,a){var r=480;t=g.p(t);for(var E=t.next();!E.done;E=t.next()){E=E.value;var h=E.video.qualityOrdinal;h<=1080&&h>r&&YYx(y,E,a)===!0&&(r=h)}return r}; g.jD=function(y,t){t=t===void 0?!1:t;return Wt()&&y.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!t&&y.canPlayType(Fc(),"application/x-mpegURL")?!0:!1}; $21=function(y){sc2(function(){for(var t=g.p(Object.keys(Za)),a=t.next();!a.done;a=t.next())G9(y,Za[a.value])})}; G9=function(y,t){t.name in y.W||(y.W[t.name]=U2H(y,t));return y.W[t.name]}; U2H=function(y,t){if(y.L)return!!y.L[t.name];if(t===Za.BITRATE&&y.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!y.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(t===Za.AV1_CODECS)return y.isTypeSupported("video/mp4; codecs="+t.valid)&&!y.isTypeSupported("video/mp4; codecs="+t.Vn);if(t.video){var a='video/webm; codecs="vp9"';y.isTypeSupported(a)||(a='video/mp4; codecs="avc1.4d401e"')}else a='audio/webm; codecs="opus"', y.isTypeSupported(a)||(a='audio/mp4; codecs="mp4a.40.2"');return y.isTypeSupported(a+"; "+t.name+"="+t.valid)&&!y.isTypeSupported(a+"; "+t.name+"="+t.Vn)}; CTn=function(y,t){var a=0;y.Y.has(t)&&(a=y.Y.get(t).Os);y.Y.set(t,{Os:a+1,Dt:Math.pow(2,a+1)});y.V=!0}; m4F=function(y,t){for(var a=new Map,r=g.p(t.keys()),E=r.next();!E.done;E=r.next()){E=E.value;var h=E.split("_")[0];y.has(h)||a.set(E,t.get(E))}return a}; oa7=function(y,t,a){var r,E=((r=t.video)==null?void 0:r.fps)||0;r=y+"_"+E;var h=!!t.audio,F={itag:t.itag,G7:y,Ee:h};if(h)F.numChannels=t.audio.numChannels;else{var x=t.video;F.maxWidth=x==null?void 0:x.width;F.maxHeight=x==null?void 0:x.height;F.maxFramerate=E;F.maxBitrateBps=t.Hb*8;F.EK=x==null?void 0:x.isHdr()}x=a.get(r);x?h||(t=Math.max(x.maxWidth||0,x.maxHeight||0)>Math.max(F.maxWidth||0,F.maxHeight||0)?x:F,y={itag:t.itag,G7:y,Ee:h,maxWidth:Math.max(x.maxWidth||0,F.maxWidth||0),maxHeight:Math.max(x.maxHeight|| 0,F.maxHeight||0),maxFramerate:E,EK:t.EK},y.maxBitrateBps=t.maxBitrateBps,a.set(r,y)):a.set(r,F)}; Aud=function(y){var t;(t=navigator.mediaCapabilities)!=null&&t.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(a){a.smooth&&a.powerEfficient&&(y.AF=2160)})}; SD=function(){g.FM.call(this);this.items={}}; Qr=function(y,t){this.V=y;this.cipher=this.V.exports.AES128CTRCipher_create(t.byteOffset)}; pN=function(){this.K=this.s8=0;this.V=Array.from({length:vt.length}).fill(0)}; zVH=function(){}; O87=function(){this.startTimeMs=(0,g.Wx)();this.V=!1}; LqV=function(){this.V=new zVH}; MLN=function(y,t,a,r){r=r===void 0?1:r;a>=0&&(t in y.V||(y.V[t]=new pN),y.V[t].vG(a,r))}; wYF=function(y,t,a,r,E){var h=(0,g.Wx)(),F=E?E(t):void 0,x;E=(x=F==null?void 0:F.s8)!=null?x:1;if(E!==0){var U;x=(U=F==null?void 0:F.profile)!=null?U:a;MLN(y,x,h-r,E)}return t}; RVd=function(y,t,a,r,E){if(t&&typeof t==="object"){var h=function(F){return wYF(y,F,a,r,E)}; if(i5(t))return t.then(h);if(gt(t))return Zm(t,h)}return wYF(y,t,a,r,E)}; PT7=function(){}; NAu=function(y){var t=window;t.ywc||(t.ywc={});var a=t.ywc[y];if(a)return a;a={};return t.ywc[y]=a}; d2b=function(y){var t=window;t.ywc&&delete t.ywc[y]}; XYb=function(y){var t=NAu(y);if(t.binP)return t.binP;t.binP=Promise.resolve().then(function(){return fetch(y)}).then(function(a){if(!a.ok)throw Error("HTTP"+a.statusText); return a.arrayBuffer()}); t.binP.then(function(a){t.bin=a},function(){d2b(y)}); return t.binP}; Wq7=function(y,t){return td(kyy,function(){var a=this;return function E(){var h,F,x;return M9(E,function(U){switch(U.V){case 1:g.sy(U,2);if(!a.V)throw"wasm.ps.ns";h=y;F=Rq;return h7(U,at(fqn(a,t)),4);case 4:x=F(U.K);if(!x)throw"wasm.ps.um";return h7(U,at(WebAssembly.instantiate(x,h)),5);case 5:return U.return(U.K);case 2:g.CI(U),g.zE(U,0)}})}()})}; fqn=function(y,t){return td(y,function(){var a=this;return function E(){var h,F,x,U,C,z,O,M,L;return M9(E,function(w){switch(w.V){case 1:g.sy(w,2);h=[];F=function(){return"wasm.ps.c: ["+h.map(function(d){return'"'+d+'"'}).join(", ")+"]"}; x=NAu(t);if(x.mod)return w.return(x.mod);if(!x.modP){w.xG(4);break}g.xs(w,5);U=Rq;return h7(w,at(x.modP),7);case 7:return w.return(U(w.K));case 5:g.Uy(w),h.unshift("pcm");case 4:if((C=x.bin)||!x.binP){w.xG(8);break}g.xs(w,9);z=Rq;return h7(w,at(x.binP),11);case 11:C=z(w.K);g.$s(w,8);break;case 9:g.Uy(w),h.unshift("pfb");case 8:if(C){w.xG(12);break}g.xs(w,13);O=Rq;return h7(w,at(XYb(t)),15);case 15:C=O(w.K);g.$s(w,12);break;case 13:throw g.Uy(w),a.V=!1,h.unshift("fb"),F();case 12:return g.xs(w,16), M=Rq,h7(w,at(WebAssembly.compile(C)),18);case 18:return w.return(M(w.K));case 16:L=g.Uy(w),d2b(t),h.unshift("ca: "+L);case 17:throw F();case 2:g.CI(w),g.zE(w,0)}})}()})}; jc1=function(){}; SKV=function(){var y=this;this.proc_exit=function(){}; this.fd_write=function(t,a,r){if(!y.exports)return 1;t=new Uint32Array(y.exports.memory.buffer,a,r*2);a=[];for(var E=0;E0&&Y3<=2.3;x=t?t.useNativeControls:y.use_native_controls;this.W=g.bc(this)&&this.K;U=this.K&&!this.W;x=g.De(this)||!F&&xH(U,x)?"3":"1";this.disableOrganicUi=!(t==null||!t.disableOrganicUi);U=t?t.controlsType:y.controls;this.controlsType=this.disableOrganicUi||U==="0"||U===0?"0":x;this.JQ=this.K;this.color=sX("red",t?t.progressBarColor:y.color,BAy);this.FT=this.controlsType==="3";this.MK=!this.D;this.OE=(x=!this.MK&&!ct(this)&&!this.Vv&&!this.J&&!Bt(this))&& !this.FT&&this.controlsType==="1";this.vO=g.g9(this)&&x&&this.controlsType==="0"&&!this.OE&&!(t==null?0:t.embedsEnableEmc3ds);this.Z8=this.w9=F;this.nJ=(this.controlsType==="3"||this.K||xH(!1,y.use_media_volume))&&!this.W;this.hW=tU&&!g.yu(601)?!1:!0;this.zf=this.D||!1;this.ND=ct(this)?"":(this.loaderUrl||y.post_message_origin||"").substring(0,128);this.widgetReferrer=UX("",t?t.widgetReferrer:y.widget_referrer);var C;t?t.disableCastApi&&(C=!1):C=y.enablecastapi;C=!this.Z||xH(!0,C);F=!0;t&&t.disableMdxCast&& (F=!1);this.G0=this.B("enable_cast_for_web_unplugged")&&g.ic(this)&&F||g.Jf(this)&&F||C&&F&&this.controlsType==="1"&&!this.K&&(ct(this)||g.g9(this)||g.KN(this));this.GM=!!window.document.pictureInPictureEnabled||$8();C=t?!!t.supportsAutoplayOverride:xH(!1,y.autoplayoverride);this.pA=!(this.K&&!g.bc(this))&&!g.io("nintendo wiiu")||C;this.Xz=(t?!!t.enableMutedAutoplay:xH(!1,y.mutedautoplay))&&!1;C=(ct(this)||Bt(this))&&this.playerStyle==="blazer";this.SQ=t?!!t.disableFullscreen:!xH(!0,y.fs);F=g.Lo(g.IE(this))&& g.bc(this);this.n1=!this.SQ&&(C||g.XL())&&!F;this.aE=this.B("html5_picture_in_picture_logging_onresize");var z;this.tM=(z=g.Gw(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?z:.33;this.Y8=this.B("html5_picture_in_picture_blocking_onresize");this.iU=this.B("html5_picture_in_picture_blocking_ontimeupdate");this.Sn=this.B("html5_picture_in_picture_blocking_document_fullscreen");this.x8=this.B("html5_picture_in_picture_blocking_standard_api");z=Kt()&&j4(58)&&!hU();C=Kx||typeof MediaSource=== "undefined";this.wu=this.B("uniplayer_block_pip")&&(z||C)||this.Y8||this.iU||this.x8;z=g.bc(this)&&!this.NH;var O;t?t.disableRelatedVideos!==void 0&&(O=!t.disableRelatedVideos):O=y.rel;this.IR=z||xH(!this.J,O);this.Xg=xH(!1,t?t.enableContentOwnerRelatedVideos:y.co_rel);this.hF=hU()&&Y3>0&&Y3<=4.4?"_top":"_blank";this.Bz=g.KN(this);this.tQ=xH(this.playerStyle==="blazer",t?t.enableCsiLogging:y.enablecsi);switch(this.playerStyle){case "blogger":O="bl";break;case "discover-ads":O="dd";break;case "gmail":O= "gm";break;case "gac":O="ga";break;case "ads-preview":O="ap";break;case "ads-fe":O="adfe";break;case "books":O="gb";break;case "docs":case "flix":O="gd";break;case "duo":O="gu";break;case "google-live":O="gl";break;case "google-one":O="go";break;case "play":case "play-ads":O="gp";break;case "chat":O="hc";break;case "hangouts-meet":O="hm";break;case "photos-edu":case "picasaweb":O="pw";break;default:O="yt"}this.AF=O;this.DE=UX("",t?t.authorizedUserIndex:y.authuser);this.FB=g.bc(this)&&(this.XB||!DMx()|| this.C1);var M;t?t.disableWatchLater!==void 0&&(M=!t.disableWatchLater):M=y.showwatchlater;this.sR=((O=!this.FB)||!!this.DE&&O)&&xH(!this.Vv,this.Z?M:void 0);this.oo=t?t.isMobileDevice||!!t.disableKeyboardControls:xH(!1,y.disablekb);this.loop=xH(!1,y.loop);this.pageId=UX("",t?t.initialDelegatedSessionId:y.pageid);this.uX=xH(!0,y.canplaylive);this.K2=this.experiments.Nr("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.Ui=xH(!1,y.livemonitor);this.disableSharing=xH(this.J,t?t.disableSharing: y.ss);(M=t&&this.B("fill_video_container_size_override_from_wpcc")?t.videoContainerOverride:y.video_container_override)?(O=M.split("x"),O.length!==2?M=null:(M=Number(O[0]),O=Number(O[1]),M=isNaN(M)||isNaN(O)||M*O<=0?null:new g.F1(M,O))):M=null;this.H5=M;this.mute=t?!!t.startMuted:xH(!1,y.mute);this.storeUserVolume=!this.mute&&xH(this.controlsType!=="0",t?t.storeUserVolume:y.store_user_volume);M=t?t.annotationsLoadPolicy:y.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:sX(void 0, M,Tu);this.captionsLanguagePreference=t?t.captionsLanguagePreference||"":UX("",y.cc_lang_pref);M=sX(2,t?t.captionsLanguageLoadPolicy:y.cc_load_policy,Tu);this.controlsType==="3"&&M===2&&(M=3);this.KH=M;this.MP=t?t.hl||"en_US":UX("en_US",y.hl);this.region=t?t.contentRegion||"US":UX("US",y.cr);this.hostLanguage=t?t.hostLanguage||"en":UX("en",y.host_language);this.eY=!this.XB&&Math.random()=0&&y0&&y.dG&&(r.sort(),g.ls(new g.RV("Player client parameters changed after startup",r)));y.userAge=$H(y.userAge,t.user_age);y.Wl=UX(y.Wl,t.user_display_email);y.userDisplayImage=UX(y.userDisplayImage,t.user_display_image);g.oA(y.userDisplayImage)||(y.userDisplayImage= "");y.userDisplayName=UX(y.userDisplayName,t.user_display_name);y.mp=UX(y.mp,t.user_gender);y.csiPageType=UX(y.csiPageType,t.csi_page_type);y.csiServiceName=UX(y.csiServiceName,t.csi_service_name);y.tQ=xH(y.tQ,t.enablecsi);y.pageId=UX(y.pageId,t.pageid);if(a=t.enabled_engage_types)y.enabledEngageTypes=new Set(a.split(","));t.living_room_session_po_token&&(y.GR=t.living_room_session_po_token.toString())}; a$=function(y,t){return!y.J&&Kt()&&j4(55)&&y.controlsType==="3"&&!t}; g.rY=function(y){y=Gu(y.bW);return y==="www.youtube-nocookie.com"?"www.youtube.com":y}; EJ=function(y,t,a){return y.protocol+"://i1.ytimg.com/vi/"+t+"/"+(a||"hqdefault.jpg")}; hh=function(y){return ct(y)&&!g.ic(y)}; g.De=function(y){return y.B("html5_local_playsinline")?tU&&!g.yu(602)&&!("playsInline"in Fc()):tU&&!y.SF||g.io("nintendo wiiu")?!0:!1}; NO=function(y){return y.V.c}; g.OY=function(y){return/^TVHTML5/.test(NO(y))}; FI=function(y){return NO(y)==="TVHTML5"}; m2H=function(y){return NO(y)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; qKn=function(y){return y.V.cmodel==="CHROMECAST ULTRA/STEAK"||y.V.cmodel==="CHROMECAST/STEAK"}; g.Ah=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; zv=function(y){return/web/i.test(NO(y))}; g.xp=function(y){return NO(y).toUpperCase()==="WEB"}; y3=function(y){return NO(y)==="WEB_KIDS"}; g.ic=function(y){return NO(y)==="WEB_UNPLUGGED"}; sJ=function(y){return NO(y)==="TVHTML5_UNPLUGGED"}; g.CF=function(y){return g.ic(y)||NO(y)==="TV_UNPLUGGED_CAST"||sJ(y)}; g.Jf=function(y){return NO(y)==="WEB_REMIX"}; g.$p=function(y){return NO(y)==="WEB_MUSIC_INTEGRATIONS"}; g.UJ=function(y){return NO(y)==="WEB_EMBEDDED_PLAYER"}; g.z5=function(y){return(y.deviceIsAudioOnly||!g.x8||Kx||y.controlsType==="3"?!1:g.EX?y.D&&g.yu(51):!0)||(y.deviceIsAudioOnly||!g.OI||Kx||y.controlsType==="3"?!1:g.EX?y.D&&g.yu(48):g.yu(38))||(y.deviceIsAudioOnly||!g.oE||Kx||y.controlsType==="3"?!1:g.EX?y.D&&g.yu(37):g.yu(27))||!y.deviceIsAudioOnly&&g.C3&&!IIN()&&g.yu(11)||!y.deviceIsAudioOnly&&g.wR&&g.yu("604.4")}; i8y=function(y){if(g.g9(y)&&qO)return!1;if(g.OI){if(!g.yu(47)||!g.yu(52)&&g.yu(51))return!1}else if(g.wR)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Iq2=function(y,t){return y.enabledEngageTypes.has(t.toString())||Kqx.includes(t)}; ct=function(y){return y.o5==="detailpage"}; g.g9=function(y){return y.o5==="embedded"}; OJ=function(y){return y.o5==="leanback"}; Bt=function(y){return y.o5==="adunit"||y.playerStyle==="gvn"}; g.KN=function(y){return y.o5==="profilepage"}; g.bc=function(y){return y.D&&g.g9(y)&&!Bt(y)&&!y.J}; L3=function(y){if(!y.userDisplayImage)return"";var t=y.userDisplayImage.split("/");if(t.length===5)return y=t[t.length-1].split("="),y[1]="s20-c",t[t.length-1]=y.join("="),t.join("/");if(t.length===8)return t.splice(7,0,"s20-c"),t.join("/");if(t.length===9)return t[7]+="-s20-c",t.join("/");g.ls(new g.RV("Profile image not a FIFE URL.",y.userDisplayImage));return y.userDisplayImage}; g.M0=function(y){var t=g.rY(y);TAz.includes(t)&&(t="www.youtube.com");return y.protocol+"://"+t}; g.wY=function(y,t){t=t===void 0?"":t;if(y.Xd){var a=new M2,r,E=y.Xd();E.signedOut?r="":E.token?r=E.token:E.pendingResult.then(function(h){E.signedOut?a.resolve(""):a.resolve(h.token)},function(h){g.ls(new g.RV("b189348328_oauth_callback_failed",{error:h})); a.resolve(t)}); return r!==void 0?Jm(r):new nt(a)}return Jm(t)}; R$=function(y,t){t=t===void 0?"":t;return y.Dk?Kq(!0):y6(Zm(Kq(g.wY(y,t)),function(a){return Kq(!!a)}),function(){return Kq(!1)})}; Gy7=function(y){var t;return!((t=y.webPlayerContextConfig)==null||!t.enableSelfProfilingLogging)}; Z8z=function(y,t){y.pM=t;var a,r;(a=y.ZA)!=null&&(r=a.V)!=null&&(r.V=new Vr(t,r.K,r.Y),g.c(r,r.V))}; Gu=function(y){var t=g.Wv(y);return(y=Number(g.fE(y)[4]||null)||null)?t+":"+y:t}; Pe=function(y,t){t=t===void 0?!1:t;var a=pi[y],r=yNy[a],E=tXy[y];if(!E||!r)return null;t=new St(t?E.height:E.width,t?E.width:E.height,E.fps);r=By(r,t,a);return new et(y,r,{video:t,Hb:E.bitrate/8})}; rN7=function(y){var t=yNy[pi[y]],a=aFN[y];return a&&t?new et(y,t,{audio:new zM(a.audioSampleRate,a.numChannels)}):null}; N0=function(y){this.V=y}; dY=function(y,t,a,r){if(a)return m_();a={};var E=Fc();t=g.p(t);for(var h=t.next();!h.done;h=t.next())if(h=h.value,y.canPlayType(E,h.getInfo().mimeType)||r){var F=h.V.video.quality;if(!a[F]||a[F].getInfo().GO())a[F]=h}y=[];a.auto&&y.push(a.auto);r=g.p(QP);for(E=r.next();!E.done;E=r.next())(E=a[E.value])&&y.push(E);return y.length?Jm(y):m_()}; EwN=function(y){this.itag=y.itag;this.url=y.url;this.codecs=y.codecs;this.width=y.width;this.height=y.height;this.fps=y.fps;this.bitrate=y.bitrate;var t;this.K=((t=y.audioItag)==null?void 0:t.split(","))||[];this.s3=y.s3;this.YJ=y.YJ||"";this.qK=y.qK;this.audioChannels=y.audioChannels;this.V=""}; hru=function(y,t,a,r){t=t===void 0?!1:t;a=a===void 0?!0:a;r=r===void 0?{}:r;var E={};y=g.p(y);for(var h=y.next();!h.done;h=y.next()){h=h.value;if(t&&MediaSource&&MediaSource.isTypeSupported){var F=h.type;h.audio_channels&&(F=F+"; channels="+h.audio_channels);if(!MediaSource.isTypeSupported(F)){r[h.itag]="tpus";continue}}if(a||!h.drm_families||h.eotf!=="smpte2084"&&h.eotf!=="arib-std-b67"){F=void 0;var x={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},U=h.type.match(/codecs="([^"]*)"/); U=U?U[1]:"";h.audio_track_id&&(F=new g.nw(h.name,h.audio_track_id,!!h.is_default));var C=h.eotf;h=new EwN({itag:h.itag,url:h.url,codecs:U,width:Number(h.width),height:Number(h.height),fps:Number(h.fps),bitrate:Number(h.bitrate),audioItag:h.audio_itag,s3:C?x[C]:void 0,YJ:h.drm_families,qK:F,audioChannels:Number(h.audio_channels)});E[h.itag]=E[h.itag]||[];E[h.itag].push(h)}else r[h.itag]="enchdr"}return E}; F3N=function(y,t,a,r,E){this.Y=y;this.K=t;this.L=a;this.cpn=r;this.J=E;this.D=0;this.V=""}; ANV=function(y,t){y.Y.some(function(a){var r;return((r=a.qK)==null?void 0:r.getId())===t}); y.V=t}; XI=function(y,t,a){y.cpn&&(t=g.lJ(t,{cpn:y.cpn}));a&&(t=g.lJ(t,{paired:a}));return t}; xQn=function(y,t){y=y.itag.toString();t!==null&&(y+=t.itag.toString());return y}; sSn=function(y){for(var t=[],a=[],r=g.p(y.K),E=r.next();!E.done;E=r.next())E=E.value,E.bitrate<=y.D?t.push(E):a.push(E);t.sort(function(h,F){return F.bitrate-h.bitrate}); a.sort(function(h,F){return h.bitrate-F.bitrate}); y.K=t.concat(a)}; kp=function(y,t,a){this.V=y;this.K=t;this.expiration=a;this.Pb=null}; $Q7=function(y,t){if(!(Kx||ZY()||Tc()))return null;y=hru(t,y.B("html5_filter_fmp4_in_hls"));if(!y)return null;t=[];for(var a={},r=g.p(Object.keys(y)),E=r.next();!E.done;E=r.next()){E=g.p(y[E.value]);for(var h=E.next();!h.done;h=E.next()){var F=h.value;F.qK&&(h=F.qK.getId(),a[h]||(F=new g.V6(h,F.qK),a[h]=F,t.push(F)))}}return t.length>0?t:null}; L37=function(y,t,a,r,E,h,F){if(!(Kx||ZY()||Tc()))return m_();var x={},U=UQH(a),C=hru(a,y.B("html5_filter_fmp4_in_hls"),y.L.J,x);if(!C)return F({noplst:1}),m_();Cfz(C);a={};var z=(a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a),O;a=[];var M=[],L=[],w=null,d="";r=r&&r.match(/hls_timedtext_playlist/)?new EwN({itag:"0",url:r,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,qK:new g.nw("English","en",!1)}):null;for(var k=g.p(Object.keys(C)),e=k.next();!e.done;e=k.next())if(e=e.value,!y.B("html5_disable_drm_hfr_1080")|| e!=="383"&&e!=="373"){e=g.p(C[e]);for(var v=e.next();!v.done;v=e.next())if(v=v.value,v.width){for(var l=g.p(v.K),V=l.next();!V.done;V=l.next())if(V=V.value,C[V]){v.V=V;break}v.V||(v.V=zrb(C,v));if(l=C[v.V])if(a.push(v),v.YJ==="fairplay"&&(O=z),V="",v.s3==="PQ"?V="smpte2084":v.s3==="HLG"&&(V="arib-std-b67"),V&&(d=V),L.push(OV7(l,[v],r,h,v.itag,v.width,v.height,v.fps,U,void 0,void 0,O,V)),!w||v.width*v.height*v.fps>w.width*w.height*w.fps)w=v}else M.push(v)}else x[e]="disdrmhfr";L.reduce(function(B, b){return b.getInfo().isEncrypted()&&B},!0)&&(O=z); E=Math.max(E,0);z=w||{};C=z.fps===void 0?0:z.fps;w=z.width===void 0?0:z.width;z=z.height===void 0?0:z.height;k=y.B("html5_native_audio_track_switching");L.push(OV7(M,a,r,h,"93",w,z,C,U,"auto",E,O,d,k));Object.entries(x).length&&F(x);return dY(y.L,L,a$(y,t),!1)}; OV7=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L){for(var w=0,d="",k=g.p(y),e=k.next();!e.done;e=k.next())e=e.value,d||(d=e.itag),e.audioChannels&&e.audioChannels>w&&(w=e.audioChannels,d=e.itag);E=new et(E,"application/x-mpegURL",{audio:new zM(0,w),video:new St(h,F,x,null,void 0,C,void 0,void 0,M),YJ:O,Kj:d});y=new F3N(y,t,a?[a]:[],r,!!L);y.D=z?z:1369843;return new kp(E,y,U)}; UQH=function(y){y=g.p(y);for(var t=y.next();!t.done;t=y.next())if(t=t.value,t.url&&(t=t.url.split("expire/"),!(t.length<=1)))return+t[1].split("/")[0];return NaN}; zrb=function(y,t){for(var a=g.p(Object.keys(y)),r=a.next();!r.done;r=a.next()){r=r.value;var E=y[r][0];if(!E.width&&E.YJ===t.YJ&&!E.audioChannels)return r}return""}; Cfz=function(y){for(var t=new Set,a=g.p(Object.values(y)),r=a.next();!r.done;r=a.next())r=r.value,r.length&&(r=r[0],r.height&&r.codecs.startsWith("vp09")&&t.add(r.height));a=[];if(t.size){r=g.p(Object.keys(y));for(var E=r.next();!E.done;E=r.next())if(E=E.value,y[E].length){var h=y[E][0];h.height&&t.has(h.height)&&!h.codecs.startsWith("vp09")&&a.push(E)}}t=g.p(a);for(a=t.next();!a.done;a=t.next())delete y[a.value]}; f3=function(y,t){this.V=y;this.K=t}; MXd=function(y,t,a,r){var E=[];a=g.p(a);for(var h=a.next();!h.done;h=a.next()){var F=h.value;if(F.url){h=new g.C7(F.url,!0);if(F.s){var x=h,U=F.sp,C=n7(17,decodeURIComponent(F.s));x[A[9]](U,encodeURIComponent(C))}x=g.p(Object.keys(r));for(U=x.next();!U.done;U=x.next())U=U.value,h.set(U,r[U]);F=gg(F.type,F.quality,F.itag,F.width,F.height);E.push(new f3(F,h))}}return dY(y.L,E,a$(y,t),!1)}; We=function(y,t){this.V=y;this.K=t}; w2u=function(y,t,a){var r=[];a=g.p(a);for(var E=a.next();!E.done;E=a.next())if((E=E.value)&&E.url){var h=gg(E.type,"medium","0");r.push(new We(h,E.url))}return dY(y.L,r,a$(y,t),!1)}; Rr1=function(y,t){var a=[],r=gg(t.type,"auto",t.itag);a.push(new We(r,t.url));return dY(y.L,a,!1,!0)}; Nhz=function(y){return y&&Pfu[y]?Pfu[y]:null}; dQF=function(y){switch(y){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 y;default:return"sabr.config"}}; X2x=function(y){if(y=y.commonConfig)this.url=y.url,this.urlQueryOverride=y.urlQueryOverride,y.ustreamerConfig&&(this.cK=nN(y.ustreamerConfig)||void 0)}; km2=function(y,t){var a;if(t=t==null?void 0:(a=t.watchEndpointSupportedOnesieConfig)==null?void 0:a.html5PlaybackOnesieConfig)y.Nn=new X2x(t)}; g.jM=function(y){y=y===void 0?{}:y;this.languageCode=y.languageCode||"";this.languageName=y.languageName||null;this.kind=y.kind||"";this.name=y.name===void 0?null:y.name;this.displayName=y.displayName||null;this.id=y.id||null;this.V=y.is_servable||!1;this.isTranslateable=y.is_translateable||!1;this.url=y.url||null;this.vssId=y.vss_id||"";this.isDefault=y.is_default||!1;this.translationLanguage=y.translationLanguage||null;this.xtags=y.xtags||"";this.captionId=y.captionId||""}; g.Q3=function(y){var t={languageCode:y.languageCode,languageName:y.languageName,displayName:g.SM(y),kind:y.kind,name:y.name,id:y.id,is_servable:y.V,is_default:y.isDefault,is_translateable:y.isTranslateable,vss_id:y.vssId};y.xtags&&(t.xtags=y.xtags);y.captionId&&(t.captionId=y.captionId);y.translationLanguage&&(t.translationLanguage=y.translationLanguage);return t}; g.ve=function(y){return y.translationLanguage?y.translationLanguage.languageCode:y.languageCode}; g.fFH=function(y){var t=y.vssId;y.translationLanguage&&t&&(t="t"+t+"."+g.ve(y));return t}; g.SM=function(y){var t=[];if(y.displayName)t.push(y.displayName);else{var a=y.languageName||"";t.push(a);y.kind==="asr"&&a.indexOf("(")===-1&&t.push(" (Subt\u00edtulos autom\u00e1ticos)");y.name&&t.push(" - "+y.name)}y.translationLanguage&&t.push(" >> "+y.translationLanguage.languageName);return t.join("")}; QS7=function(y,t,a,r){y||(y=t&&W3F.hasOwnProperty(t)&&jSF.hasOwnProperty(t)?jSF[t]+"_"+W3F[t]:void 0);t=y;if(!t)return null;y=t.match(S3z);if(!y||y.length!==5)return null;if(y=t.match(S3z)){var E=Number(y[3]),h=[7,8,10,5,6];y=!(Number(y[1])===1&&E===8)&&h.indexOf(E)>=0}else y=!1;return a||r||y?t:null}; p3=function(y,t){for(var a={},r=g.p(Object.keys(vw7)),E=r.next();!E.done;E=r.next()){E=E.value;var h=t?t+E:E;h=y[h+"_webp"]||y[h];g.oA(h)&&(a[vw7[E]]=h)}return a}; eM=function(y){var t={};if(!y||!y.thumbnails)return t;y=y.thumbnails.filter(function(x){return!!x.url}); y.sort(function(x,U){return x.width-U.width||x.height-U.height}); for(var a=g.p(Object.keys(p22)),r=a.next();!r.done;r=a.next()){var E=Number(r.value);r=p22[E];for(var h=g.p(y),F=h.next();!F.done;F=h.next())if(F=F.value,F.width>=E){E=erz(F.url);g.oA(E)&&(t[r]=E);break}}(y=y.pop())&&y.width>=1280&&(y=erz(y.url),g.oA(y)&&(t["maxresdefault.jpg"]=y));return t}; erz=function(y){return y.startsWith("//")?"https:"+y:y}; lK=function(y){return y&&y.baseUrl||""}; uK=function(y){y=g.sO(y);for(var t=g.p(Object.keys(y)),a=t.next();!a.done;a=t.next()){a=a.value;var r=y[a];y[a]=Array.isArray(r)?r[0]:r}return y}; ui2=function(y,t){t=g.p(t);for(var a=t.next();!a.done;a=t.next())if(a=a.value.playerAnnotationsUrlsRenderer){a.adsOnly&&(y.HV=!0);if(t=a.loadPolicy)y.annotationsLoadPolicy=lF2[t];if(t=a.invideoUrl)y.bZ=HK(t);y.vD=!0;break}}; VXu=function(y,t){y.botguardData=t.playerAttestationRenderer.botguardData;t=t.playerAttestationRenderer.challenge;t!=null&&(y.sE=t)}; mQd=function(y,t){y.captionTracks=[];if(t.captionTracks)for(var a=g.p(t.captionTracks),r=a.next();!r.done;r=a.next()){r=r.value;var E=nwx(r.baseUrl);if(!E)return;E={is_translateable:!!r.isTranslatable,languageCode:r.languageCode,languageName:r.name&&g.Oi(r.name),url:E,vss_id:r.vssId,kind:r.kind};E.name=r.trackName;E.displayName=r.name&&g.Oi(r.name);y.captionTracks.push(new g.jM(E))}y.vB=t.audioTracks||[];y.Zw=t.defaultAudioTrackIndex||0;y.q6=[];if(t.translationLanguages)for(a=g.p(t.translationLanguages), r=a.next();!r.done;r=a.next()){E=r.value;r={};r.languageCode=E.languageCode;r.languageName=g.Oi(E.languageName);if(E.translationSourceTrackIndices){r.translationSourceTrackIndices=[];for(var h=g.p(E.translationSourceTrackIndices),F=h.next();!F.done;F=h.next())r.translationSourceTrackIndices.push(F.value)}if(E.excludeAudioTrackIndices)for(r.excludeAudioTrackIndices=[],E=g.p(E.excludeAudioTrackIndices),h=E.next();!h.done;h=E.next())r.excludeAudioTrackIndices.push(h.value);y.q6.push(r)}y.m8=[];if(t.defaultTranslationSourceTrackIndices)for(a= g.p(t.defaultTranslationSourceTrackIndices),r=a.next();!r.done;r=a.next())y.m8.push(r.value);y.aC=!!t.contribute&&!!t.contribute.captionsMetadataRenderer}; ow2=function(y,t,a){var r=t.errorScreen;if(!(r&&(r.playerLegacyDesktopYpcOfferRenderer||r.playerLegacyDesktopYpcTrailerRenderer||r.ypcTrailerRenderer)||a&&a.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(t.status))){y.errorCode=Nhz(t.errorCode)||"auth";if(a=r&&r.playerErrorMessageRenderer){y.playerErrorMessageRenderer=a;var E=a.reason;E&&(y.errorReason=g.Oi(E));if(a=a.subreason)y.hL=g.Oi(a),y.qS=a}else y.errorReason=t.reason||null;a=t.status;if(a==="LOGIN_REQUIRED")y.errorDetail= "1";else if(a==="CONTENT_CHECK_REQUIRED")y.errorDetail="2";else if(a==="AGE_CHECK_REQUIRED")t=(t=t.errorScreen)&&t.playerKavRenderer,y.errorDetail=t&&t.kavUrl?"4":"3";else{var h,F,x;r=(x=r==null?void 0:(h=r.playerErrorMessageRenderer)==null?void 0:(F=h.proceedButton)==null?void 0:F.buttonRenderer)==null?void 0:x.command;if(t.isBlockedInRestrictedMode)y.errorDetail="5";else{var U;((U=g.P(r,JN7))==null?void 0:U.signal)==="RELOAD_PAGE"?y.errorDetail="7":y.errorDetail="0"}}}}; HV7=function(y,t){y.A8=!0;var a=t.heartbeatToken;a&&(y.drmSessionId=t.drmSessionId||"",y.heartbeatToken=a,y.Pn=Number(t.intervalMilliseconds),y.sD=Number(t.maxRetries),y.KR=!!t.softFailOnError,y.Q5=!!t.useInnertubeHeartbeatsForDrm);y.heartbeatServerData=t.heartbeatServerData;var r;y.LG=!((r=t.heartbeatAttestationConfig)==null||!r.requiresAttestation)}; cNN=function(y,t){t=g.p(t);for(var a=t.next();!a.done;a=t.next()){a=a.value;var r=a.interstitials.map(function(F){var x=g.P(F,bVH);if(x)return{is_yto_interstitial:!0,raw_player_response:x};if(F=g.P(F,Bhb))return Object.assign({is_yto_interstitial:!0},f7(F))}); r=g.p(r);for(var E=r.next();!E.done;E=r.next())switch(E=E.value,a.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":y.interstitials=y.interstitials.concat({time:0,playerVars:E,Iq:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":y.interstitials=y.interstitials.concat({time:0x7ffffffffffff,playerVars:E,Iq:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var h=Number(a.podConfig.timeToInsertAtMillis);y.interstitials=y.interstitials.concat({time:h,playerVars:E, Iq:h===0?5:7})}}}; q3F=function(y,t){if(t=t.find(function(a){return!(!a||!a.tooltipRenderer)}))y.tooltipRenderer=t.tooltipRenderer}; Y3V=function(y,t){t.subscribeCommand&&(y.subscribeCommand=t.subscribeCommand);t.unsubscribeCommand&&(y.unsubscribeCommand=t.unsubscribeCommand);t.addToWatchLaterCommand&&(y.addToWatchLaterCommand=t.addToWatchLaterCommand);t.removeFromWatchLaterCommand&&(y.removeFromWatchLaterCommand=t.removeFromWatchLaterCommand);t.getSharePanelCommand&&(y.getSharePanelCommand=t.getSharePanelCommand)}; DQ7=function(y,t){t!=null?(y.BK=t,y.Zh=!0):(y.BK="",y.Zh=!1)}; K3y=function(y,t){if(t=t.playerControlsOverlayRenderer)DQ7(y,t.controlBgHtml),t.mutedAutoplay?(t=g.P(t.mutedAutoplay,gwy))&&t.endScreen&&(t=g.P(t.endScreen,iVu))&&t.text&&(y.MX=g.Oi(t.text)):y.mutedAutoplay=!1}; IFn=function(y,t){var a=t.backgroundability;a&&a.backgroundabilityRenderer.backgroundable&&(y.backgroundable=!0);var r,E;if((r=t.offlineability)==null?0:(E=r.offlineabilityRenderer)==null?0:E.offlineable)y.offlineable=!0;if(a=t.contextParams)y.contextParams=a;(a=t.pictureInPicture)&&a.pictureInPictureRenderer.playableInPip&&(y.pipable=!0);t.playableInEmbed&&(y.allowEmbed=!0);if(a=t.ypcClickwrap)t=a.playerLegacyDesktopYpcClickwrapRenderer,a=a.ypcRentalActivationRenderer,t?(y.HP=t.durationMessage|| "",y.bX=!0):a&&(t=a.durationMessage,y.HP=t?g.Oi(t):"",y.bX=!0)}; Gm2=function(y,t,a){var r=lK(t.googleRemarketingUrl);r&&(y.googleRemarketingUrl=r);if(r=lK(t.youtubeRemarketingUrl))y.youtubeRemarketingUrl=r;if(r=t.heartbeatLoggingToken)y.heartbeatLoggingToken=r;r={};var E=lK(t.ptrackingUrl);if(E){E=uK(E);var h=E.oid;h&&(y.Co=h);if(h=E.pltype)y.tC=h;if(h=E.ptchn)y.kt=h;if(h=E.ptk)y.Ec=encodeURIComponent(h);if(E=E.m)y.zV=E}if(E=lK(t.qoeUrl)){E=g.sO(E);h=g.p(Object.keys(E));for(var F=h.next();!F.done;F=h.next()){F=F.value;var x=E[F];E[F]=Array.isArray(x)?x.join(","): x}y.pm=E;if(h=E.cat)y.B("html5_enable_qoe_cat_list")?y.mT=y.mT.concat(h.split(",")):y.Eu=h;if(h=E.live)y.fO=h;if(E=E.drm_product)y.drmProduct=E}if(E=lK(t.videostatsPlaybackUrl)){E=uK(E);if(h=E.adformat)if(a.adformat=h,F=y.G(),F=QS7(h,y.lH,F.D,F.Z))y.adFormat=F;if(F=E.aqi)a.ad_query_id=F;if(a=E.autoplay)y.Nh=a=="1",y.UQ=a=="1";if(a=E.autonav)y.isAutonav=a=="1";if(a=E.delay)y.MB=iA(a);if(a=E.ei)y.eventId=a;if(a=nN(E.adcontext))try{var U=Th1(a);U&&(y.x7=U)}catch(C){g.ls(Error("Malformed adContext"))}if(a|| h)y.Nh=!0;if(U=E.feature)y.Bi=U;if(U=E.list)y.playlistId=U;if(U=E.of)y.o0=U;if(U=E.osid)y.osid=U;if(U=E.referrer)y.referrer=U;if(U=E.sdetail)y.aM=U;if(U=E.sourceid)y.WNr=U;if(U=E.ssrt)y.xw=U=="1";if(U=E.subscribed)y.subscribed=U=="1";if(U=E.uga)y.userGenderAge=U;if(U=E.upt)y.UF=U;if(U=E.vm)y.videoMetadata=U;r.playback=E}if(U=lK(t.videostatsWatchtimeUrl)){U=uK(U);if(a=U.ald)y.T8=a;r.watchtime=U}if(U=lK(t.atrUrl))U=uK(U),r.atr=U;if(U=lK(t.engageUrl))U=uK(U),r.engage=U;y.Ks=r;t.promotedPlaybackTracking&& (t=t.promotedPlaybackTracking,t.startUrls&&(y.gr=t.startUrls),t.firstQuartileUrls&&(y.B$=t.firstQuartileUrls),t.secondQuartileUrls&&(y.r8=t.secondQuartileUrls),t.thirdQuartileUrls&&(y.Jx=t.thirdQuartileUrls),t.completeUrls&&(y.Ct=t.completeUrls),t.engagedViewUrls&&(t.engagedViewUrls.length>1&&g.ls(new g.RV("There are more than one engaged_view_urls.")),y.Dd=t.engagedViewUrls[0]))}; ZV1=function(y,t,a){t=g.p(t);for(var r=t.next();!r.done;r=t.next())if(r=r.value)if(r=r.playerLegacyDesktopWatchAdsRenderer)if(r=r.playerAdParams){r.autoplay=="1"&&(y.Nh=!0,y.UQ=!0);y.E$=r.encodedAdSafetyReason||null;r.showContentThumbnail!==void 0&&(y.NL=!!r.showContentThumbnail);a.enabled_engage_types=r.enabledEngageTypes;break}}; y8n=function(y,t){var a=t.manifestlessWindowedLiveConfig;if(a){var r=Number(a.minDvrSequence),E=Number(a.maxDvrSequence),h=Number(a.minDvrMediaTimeMs),F=Number(a.maxDvrMediaTimeMs);a=Number(a.startWalltimeMs);r&&(y.H1=r);h&&(y.qp=h/1E3,y.B("html5_sabr_parse_live_metadata_playback_boundaries")&&V3(y)&&(y.j$=h/1E3));E&&(y.On=E);F&&(y.hc=F/1E3,y.B("html5_sabr_parse_live_metadata_playback_boundaries")&&V3(y)&&(y.CG=F/1E3));a&&(y.Mq=a/1E3);(r||h)&&(E||F)&&(y.Cx=!0,y.isLivePlayback=!0,y.allowLiveDvr=!0, y.d7=!1)}if(r=t.daiConfig){if(r.enableDai){y.n0=!0;if(E=r.enableServerStitchedDai)y.enableServerStitchedDai=E;if(E=r.enablePreroll)y.oH=E}var x;if(r.daiType==="DAI_TYPE_SS_DISABLED"||((x=r.debugInfo)==null?0:x.isDisabledUnpluggedChannel))y.Fl=!0;r.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(y.Mv=!0);r.allowUstreamerRequestAdconfig&&(y.FH=!0);r.sendSsdaiMissingAdBreakReasons&&(y.ffr=!0)}if(x=t.audioConfig){r=x.loudnessDb;r!=null&&(y.Vy=r);r=x.trackAbsoluteLoudnessLkfs;r!=null&&(y.RQ=r);r=x.loudnessTargetLkfs; r!=null&&(y.loudnessTargetLkfs=r);x.audioMuted&&(y.o2=!0);x.muteOnStart&&(y.yI=!0);if(r=x.loudnessNormalizationConfig)r.applyStatefulNormalization&&(y.applyStatefulNormalization=!0),r.preserveStatefulLoudnessTarget&&(y.preserveStatefulLoudnessTarget=!0),E=r.minimumLoudnessTargetLkfs,E!=null&&(y.minimumLoudnessTargetLkfs=E),r=r.maxStatefulTimeThresholdSec,r!=null&&(y.maxStatefulTimeThresholdSec=r);x.playAudioOnly&&(y.JM=!0)}if(r=t.playbackEndConfig)x=r.endSeconds,r=r.limitedPlaybackDurationInSeconds, y.mutedAutoplay&&(x&&(y.endSeconds=x),r&&(y.limitedPlaybackDurationInSeconds=r));if(x=t.fairPlayConfig){if(r=x.certificate)y.RN=nN(r);r=Number(x.keyRotationPeriodMs);r>0&&(y.aH=r);x=Number(x.keyPrefetchMarginMs);x>0&&(y.LQ=x)}if(x=t.playbackStartConfig){y.zA=Number(x.startSeconds);E=x.liveUtcStartSeconds;r=!!y.liveUtcStartSeconds&&y.liveUtcStartSeconds>0;E&&!r&&(y.liveUtcStartSeconds=Number(E));if(E=x.startPosition)if((h=E.utcTimeMillis)&&!r&&(y.liveUtcStartSeconds=Number(h)*.001),r=E.streamTimeMillis)y.JT= Number(r)*.001;y.progressBarStartPosition=x.progressBarStartPosition;y.progressBarEndPosition=x.progressBarEndPosition}else if(x=t.skippableSegmentsConfig){if(r=x.introSkipDurationMs)y.DT=Number(r)/1E3;if(x=x.outroSkipDurationMs)y.eE=Number(x)/1E3}if(r=t.skippableIntroConfig)x=Number(r.startMs),r=Number(r.endMs),isNaN(x)||isNaN(r)||(y.ZH=x,y.cL=r);if(x=t.streamSelectionConfig)y.B5=Number(x.maxBitrate);if(x=t.vrConfig)y.Qh=x.partialSpherical=="1";if(x=t.webDrmConfig){x.skipWidevine&&(y.WQ=!0);if(r= x.widevineServiceCert)y.zI=nN(r);x.useCobaltWidevine&&(y.useCobaltWidevine=!0);x.startWithNoQualityConstraint&&(y.aD=!0)}if(x=t.mediaCommonConfig){if(r=x.dynamicReadaheadConfig){y.maxReadAheadMediaTimeMs=r.maxReadAheadMediaTimeMs||NaN;y.minReadAheadMediaTimeMs=r.minReadAheadMediaTimeMs||NaN;y.readAheadGrowthRateMs=r.readAheadGrowthRateMs||NaN;var U;if(r=x==null?void 0:(U=x.mediaUstreamerRequestConfig)==null?void 0:U.videoPlaybackUstreamerConfig)y.iW=nN(r);if((U=x==null?void 0:x.sabrContextUpdates)&& U.length>0)for(U=g.p(U),r=U.next();!r.done;r=U.next())r=r.value,r.type&&r.value&&(E={type:r.type,scope:r.scope,value:nN(r.value)||void 0,sendByDefault:r.sendByDefault},y.sabrContextUpdates.set(r.type,E))}if(U=x.serverPlaybackStartConfig)y.serverPlaybackStartConfig=U;x.useServerDrivenAbr&&(y.Cv=!0);if(U=x.requestPipeliningConfig)y.requestPipeliningConfig=U}if(U=t.inlinePlaybackConfig)y.l6=!!U.showAudioControls;if(U=t.embeddedPlayerConfig){y.embeddedPlayerConfig=U;if(x=U.embeddedPlayerMode)r=y.G(), r.d0=x,r.Y=x==="EMBEDDED_PLAYER_MODE_PFL";if(U=U.permissions)y.allowImaMonetization=!!U.allowImaMonetization}if(t=t.webPlayerConfig)t.gatewayExperimentGroup&&(y.gatewayExperimentGroup=t.gatewayExperimentGroup),t.isProximaEligible&&(y.isProximaLatencyEligible=!0)}; t7d=function(y,t,a){var r=t.formats;if(r){for(var E=[],h=g.p(r),F=h.next();!F.done;F=h.next())F=F.value,E.push(F.itag+"/"+F.width+"x"+F.height);y.Qx=E.join(",");E=[];r=g.p(r);for(h=r.next();!h.done;h=r.next()){F=h.value;h={itag:F.itag,type:F.mimeType,quality:F.quality};var x=F.url;x&&(h.url=x);F=WF(8,F);x=F.FI;var U=F.m$,C=F.s;F.nT&&(h.url=x,h.sp=U,h.s=C);E.push(g.e8(h))}y.C4=E.join(",")}if(h=t.hlsFormats){E={};if(a&&(a=a.audioPairingConfig)&&a.pairs)for(a=g.p(a.pairs),r=a.next();!r.done;r=a.next())r= r.value,F=r.videoItag,E[F]||(E[F]=[]),E[F].push(r.audioItag);a={};r=g.p(h);for(F=r.next();!F.done;F=r.next())F=F.value,a[F.itag]=F.bitrate;r=[];h=g.p(h);for(F=h.next();!F.done;F=h.next()){F=F.value;x={itag:F.itag,type:F.mimeType,url:F.url,bitrate:F.bitrate,width:F.width,height:F.height,fps:F.fps};if(U=F.audioTrack)if(C=U.displayName)x.name=C,x.audio_track_id=U.id,U.audioIsDefault&&(x.is_default="1");if(F.drmFamilies){U=[];C=g.p(F.drmFamilies);for(var z=C.next();!z.done;z=C.next())U.push(cy[z.value]); x.drm_families=U.join(",")}(U=E[F.itag])&&U.length&&(x.audio_itag=U.join(","),(U=a[U[0]])&&(x.bitrate+=U));(U=zRu(F))&&(x.eotf=U);F.audioChannels&&(x.audio_channels=F.audioChannels);r.push(g.e8(x))}y.hlsFormats=r.join(",")}if((a=t.licenseInfos)&&a.length>0){E={};a=g.p(a);for(r=a.next();!r.done;r=a.next())h=r.value,r=h.drmFamily,h=h.url,r&&h&&(E[cy[r]]=h);y.YJ=E}if(E=t.drmParams)y.drmParams=E;if(E=t.dashManifestUrl)y.Y5=g.lJ(E,{cpn:y.clientPlaybackNonce});if(E=t.hlsManifestUrl)y.hlsvp=E;if(E=t.probeUrl)y.probeUrl= HK(g.lJ(E,{cpn:y.clientPlaybackNonce}));if(t=t.serverAbrStreamingUrl)y.Yv=new g.C7(t,!0)}; r87=function(y,t,a){var r=t.videoId;r&&(y.videoId=r,a.video_id||(a.video_id=r));if(r=t.title)y.title=r,a.title||(a.title=r);if(r=t.lengthSeconds)y.lengthSeconds=Number(r),a.length_seconds||(a.length_seconds=r);if(r=t.keywords)y.keywords=agu(r);if(r=t.channelId)y.CD=r,a.ucid||(a.ucid=r);if(r=t.viewCount)y.rawViewCount=Number(r);if(r=t.author)y.author=r,a.author||(a.author=r);if(a=t.shortDescription)y.shortDescription=a;if(a=t.isCrawlable)y.isListed=a;if(a=t.musicVideoType)y.musicVideoType=a;a=t.isLive; a!=null&&(y.isLivePlayback=a);if(a||t.isUpcoming)y.isPremiere=!t.isLiveContent;if(a=t.thumbnail)y.rO=eM(a);if(a=t.isExternallyHostedPodcast)y.isExternallyHostedPodcast=a;(a=t.stationType)&&a!=="STATION_TYPE_UNKNOWN"&&(y.T0r=!0);t=t.viewerLivestreamJoinPosition;if(t==null?0:t.utcTimeMillis)y.uH=iA(t.utcTimeMillis)}; F2F=function(y,t){if(t.playerLegacyDesktopYpcTrailerRenderer){var a=t.playerLegacyDesktopYpcTrailerRenderer;y.s$=a.trailerVideoId||"";var r=(r=t.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&r.ypcTrailerRenderer}else if(t.playerLegacyDesktopYpcOfferRenderer)a=t.playerLegacyDesktopYpcOfferRenderer;else if(t.ypcTrailerRenderer){r=t.ypcTrailerRenderer;t=r.fullVideoMessage;y.Vw=t?g.Oi(t):"";var E,h;y.s$=((E=g.P(r,E12))==null?void 0:(h=E.videoDetails)==null?void 0:h.videoId)||""}a&&(y.eN=a.itemTitle|| "",a.itemUrl&&(y.WX=a.itemUrl),a.itemBuyUrl&&(y.p9=a.itemBuyUrl),y.Xa=a.itemThumbnail||"",y.Ts=a.offerHeadline||"",y.Ic=a.offerDescription||"",y.PH=a.offerId||"",y.Nj=a.offerButtonText||"",y.fY=a.offerButtonFormattedText||null,y.cP=a.overlayDurationMsec||NaN,y.Vw=a.fullVideoMessage||"",y.rD=!0);r&&((a=g.P(r,E12))?y.YM={raw_player_response:a}:(a=g.P(r,hhN),y.YM=a?f7(a):null),y.rD=!0)}; xuH=function(y,t,a,r){t.isLiveDefaultBroadcast&&(y.isLiveDefaultBroadcast=!0);t.isUpcoming&&(y.isUpcoming=!0);if(t.isPostLiveDvr){y.d7=!0;if(r=t.latencyClass)y.latencyClass=A8y[r]||"UNKNOWN";t.isLowLatencyLiveStream&&(y.isLowLatencyLiveStream=!0)}else{var E=!1;y.Ui?(y.allowLiveDvr=Wt()?!0:a_&&n3<5?!1:!0,y.isLivePlayback=!0):t.isLive?(r.livestream="1",y.allowLiveDvr=t.isLiveDvrEnabled?Wt()?!0:a_&&n3<5?!1:!0:!1,y.partnerId=27,E=!0):t.isUpcoming&&(E=!0);if(t.isLive||y.Ui){t.isLowLatencyLiveStream&&(y.isLowLatencyLiveStream= !0);var h=t.latencyClass;h&&(y.latencyClass=A8y[h]||"UNKNOWN");if(t=t.liveChunkReadahead)y.liveChunkReadahead=t;if(t=a&&a.livePlayerConfig){t.hasSubfragmentedFmp4&&(y.hasSubfragmentedFmp4=!0);t.hasSubfragmentedWebm&&(y.l4=!0);t.defraggedFromSubfragments&&(y.defraggedFromSubfragments=!0);if(a=t.liveExperimentalContentId)y.liveExperimentalContentId=Number(a);t=t.isLiveHeadPlayable;y.B("html5_live_head_playable")&&t!=null&&(y.isLiveHeadPlayable=t)}}E&&(y.isLivePlayback=!0,r.adformat&&r.adformat.split("_")[1]!== "8"||y.bv.push("heartbeat"))}}; mv=function(y,t){this.type=y||"";this.id=t||""}; Jh=function(y){return new mv(y.substring(0,2),y.substring(2))}; o$=function(y,t){this.P4=y;this.author="";this.ZN=null;this.playlistLength=0;this.V=this.sessionData=null;this.rO={};this.title="";if(t){this.author=t.author||t.playlist_author||"";this.title=t.playlist_title||"";if(y=t.session_data)this.sessionData=Fk(y,"&");var a;this.V=((a=t.thumbnail_ids)==null?void 0:a.split(",")[0])||null;this.rO=p3(t,"playlist_");this.videoId=t.video_id||void 0;if(a=t.list)switch(t.listType){case "user_uploads":this.playlistId=(new mv("UU","PLAYER_"+a)).toString();break;default:if(y= t.playlist_length)this.playlistLength=Number(y)||0;this.playlistId=Jh(a).toString();if(t=t.video)this.videoId=(t[0]||null).video_id||void 0}else t.playlist&&(this.playlistLength=t.playlist.toString().split(",").length)}}; He=function(y,t){this.P4=y;this.xx=this.author="";this.ZN=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.KW=this.lengthText="";this.sessionData=null;this.rO={};this.title="";if(t){this.ariaLabel=t.aria_label||void 0;this.author=t.author||"";this.xx=t.xx||"";if(y=t.endscreen_autoplay_session_data)this.ZN=Fk(y,"&");this.ME=t.ME;this.isLivePlayback=t.live_playback==="1";this.isUpcoming=!!t.isUpcoming;if(y=t.length_seconds)this.lengthSeconds=typeof y==="string"?Number(y):y;this.lengthText= t.lengthText||"";this.KW=t.KW||"";this.publishedTimeText=t.publishedTimeText||void 0;if(y=t.session_data)this.sessionData=Fk(y,"&");this.shortViewCount=t.short_view_count_text||void 0;this.rO=p3(t);this.title=t.title||"";this.videoId=t.docid||t.video_id||t.videoId||t.id||void 0;this.watchUrl=t.watchUrl||void 0}}; sNF=function(y){var t,a,r=(t=y.getWatchNextResponse())==null?void 0:(a=t.contents)==null?void 0:a.twoColumnWatchNextResults,E,h,F,x,U;y=(E=y.getWatchNextResponse())==null?void 0:(h=E.playerOverlays)==null?void 0:(F=h.playerOverlayRenderer)==null?void 0:(x=F.endScreen)==null?void 0:(U=x.watchNextEndScreenRenderer)==null?void 0:U.results;if(!y){var C,z;y=r==null?void 0:(C=r.endScreen)==null?void 0:(z=C.endScreen)==null?void 0:z.results}return y}; g.Be=function(y){var t,a,r;y=g.P((t=y.getWatchNextResponse())==null?void 0:(a=t.playerOverlays)==null?void 0:(r=a.playerOverlayRenderer)==null?void 0:r.decoratedPlayerBarRenderer,bK);return g.P(y==null?void 0:y.playerBar,$ub)}; Uub=function(y){this.V=y.playback_progress_0s_url;this.Y=y.playback_progress_2s_url;this.K=y.playback_progress_10s_url}; CLH=function(){if(ce===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(t){}a:{try{var y=!!self.localStorage}catch(t){y=!1}if(y&&(y=g.Jl(g.Ko()+"::yt-player"))){ce=new bI(y);break a}ce=void 0}}return ce}; g.q0=function(){var y=CLH();if(!y)return{};try{var t=y.get("yt-player-lv");return JSON.parse(t||"{}")}catch(a){return{}}}; g.zh1=function(y){var t=CLH();t&&(y=JSON.stringify(y),t.set("yt-player-lv",y))}; g.Yp=function(y){return g.q0()[y]||0}; g.DD=function(y,t){var a=g.q0();t!==a[y]&&(t!==0?a[y]=t:delete a[y],g.zh1(a))}; g.gY=function(y){return g.m(function(t){return t.return(g.qx(O_x(),y))})}; K3=function(y,t,a,r,E,h,F,x){var U,C,z,O,M,L;return g.m(function(w){switch(w.V){case 1:return U=g.Yp(y),U===4?w.return(4):g.u(w,g.y8(),2);case 2:C=w.K;if(!C)throw g.Px("wiac");if(!x||F===void 0){w.xG(3);break}return g.u(w,L27(x,F),4);case 4:F=w.K;case 3:return z=a.lastModified||"0",g.u(w,g.gY(C),5);case 5:return O=w.K,g.xs(w,6),iK++,g.u(w,g.px(O,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",kE:!0},function(d){if(h!==void 0&&F!==void 0){var k=""+y+"|"+t.id+"|"+z+"|"+String(h).padStart(10, "0");k=g.eZ(d.objectStore("media"),F,k)}else k=g.dR.resolve(void 0);var e=M77(y,t.ji()),v=M77(y,!t.ji()),l={fmts:wox(r),format:a||{}};e=g.eZ(d.objectStore("index"),l,e);var V=r.downloadedEndTime===-1;l=V?d.objectStore("index").get(v):g.dR.resolve(void 0);var B={fmts:"music",format:{}};d=V&&E&&!t.ji()?g.eZ(d.objectStore("index"),B,v):g.dR.resolve(void 0);return g.dR.all([d,l,k,e]).then(function(b){b=g.p(b);b.next();b=b.next().value;iK--;var Z=g.Yp(y);if(Z!==4&&V&&E||b!==void 0&&g.Rh7(b.fmts))Z=1,g.DD(y, Z);return Z})}),8); case 8:return w.return(w.K);case 6:M=g.Uy(w);iK--;L=g.Yp(y);if(L===4)return w.return(L);g.DD(y,4);throw M;}})}; g.PLx=function(y){var t,a;return g.m(function(r){if(r.V==1)return g.u(r,g.y8(),2);if(r.V!=3){t=r.K;if(!t)throw g.Px("ri");return g.u(r,g.gY(t),3)}a=r.K;return r.return(g.px(a,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(E){var h=IDBKeyRange.bound(y+"|",y+"~");return E.objectStore("index").getAll(h).then(function(F){return F.map(function(x){return x?x.format:{}})})}))})}; du7=function(y,t,a,r,E){var h,F,x;return g.m(function(U){if(U.V==1)return g.u(U,g.y8(),2);if(U.V!=3){h=U.K;if(!h)throw g.Px("rc");return g.u(U,g.gY(h),3)}F=U.K;x=g.px(F,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(C){var z=""+y+"|"+t+"|"+a+"|"+String(r).padStart(10,"0");return C.objectStore("media").get(z)}); return E?U.return(x.then(function(C){if(C===void 0)throw Error("No data from indexDb");return NGn(E,C)}).catch(function(C){throw new g.RV("Error while reading chunk: "+C.name+", "+C.message); })):U.return(x)})}; g.Rh7=function(y){return y?y==="music"?!0:y.includes("dlt=-1")||!y.includes("dlt="):!1}; M77=function(y,t){return""+y+"|"+(t?"v":"a")}; wox=function(y){var t={};return Am((t.dlt=y.downloadedEndTime.toString(),t.mket=y.maxKnownEndTime.toString(),t.avbr=y.averageByteRate.toString(),t))}; kOH=function(y){var t={},a={};y=g.p(y);for(var r=y.next();!r.done;r=y.next()){var E=r.value,h=E.split("|");E.match(g.XoN)?(r=Number(h.pop()),isNaN(r)?a[E]="?":(h=h.join("|"),(E=t[h])?(h=E[E.length-1],r===h.end+1?h.end=r:E.push({start:r,end:r})):t[h]=[{start:r,end:r}])):a[E]="?"}y=g.p(Object.keys(t));for(r=y.next();!r.done;r=y.next())r=r.value,a[r]=t[r].map(function(F){return F.start+"-"+F.end}).join(","); return a}; I$=function(y){g.FM.call(this);this.V=null;this.Y=new BH;this.V=null;this.J=new Set;this.crossOrigin=y||""}; fgF=function(y,t,a){for(a=T5(y,a);a>=0;){var r=y.levels[a];if(r.isLoaded(G5(r,t))&&(r=g.ZD(r,t)))return r;a--}return g.ZD(y.levels[0],t)}; jN2=function(y,t,a){a=T5(y,a);for(var r,E;a>=0;a--)if(r=y.levels[a],E=G5(r,t),!r.isLoaded(E)){r=y;var h=a,F=h+"-"+E;r.J.has(F)||(r.J.add(F),r.Y.enqueue(h,{SK:h,qX:E}))}W2n(y)}; W2n=function(y){if(!y.V&&!y.Y.isEmpty()){var t=y.Y.remove();y.V=SWb(y,t)}}; SWb=function(y,t){var a=document.createElement("img");y.crossOrigin&&(a.crossOrigin=y.crossOrigin);a.src=y.levels[t.SK].xJ(t.qX);a.onload=function(){var r=t.SK,E=t.qX;y.V!==null&&(y.V.onload=null,y.V=null);r=y.levels[r];r.loaded.add(E);W2n(y);var h=r.columns*r.rows;E*=h;r=Math.min(E+h-1,r.uN()-1);E=[E,r];y.publish("l",E[0],E[1])}; return a}; g.yQ=function(y,t,a,r){this.level=y;this.D=t;this.loaded=new Set;this.level=y;this.D=t;y=a.split("#");this.width=Math.floor(Number(y[0]));this.height=Math.floor(Number(y[1]));this.frameCount=Math.floor(Number(y[2]));this.columns=Math.floor(Number(y[3]));this.rows=Math.floor(Number(y[4]));this.V=Math.floor(Number(y[5]));this.Y=y[6];this.signature=y[7];this.videoLength=r}; G5=function(y,t){return Math.floor(t/(y.columns*y.rows))}; g.ZD=function(y,t){t>=y.L3()&&y.EP();var a=G5(y,t),r=y.columns*y.rows,E=t%r;t=E%y.columns;E=Math.floor(E/y.columns);var h=y.EP()+1-r*a;if(h1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; QNV=function(y,t,a){return(y=y.levels[t])?y.k_(a):-1}; T5=function(y,t){var a=y.D.get(t);if(a)return a;a=y.levels.length;for(var r=0;r=t)return y.D.set(t,r),r;y.D.set(t,a-1);return a-1}; ah=function(y,t,a,r){a=a.split("#");a=[a[1],a[2],0,a[3],a[4],-1,a[0],""].join("#");g.yQ.call(this,y,t,a,0);this.K=null;this.L=r?2:0}; rU=function(y,t,a,r){tI.call(this,y,0,void 0,t,!(r===void 0||!r));for(y=0;y30?y.limitedPlaybackDurationInSeconds=30:a<30&&a>10&&(y.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":y.limitedPlaybackDurationInSeconds=a*.2}}; AI=function(y,t){var a=t.raw_watch_next_response;if(!a){var r=t.watch_next_response;r&&(a=JSON.parse(r))}if(a){y.o5=a;var E=y.o5.playerCueRangeSet;E&&g.Uu(y,E);var h=y.o5.playerOverlays;if(h){var F=h.playerOverlayRenderer;if(F){var x=F.autonavToggle;x&&(y.autoplaySwitchButtonRenderer=g.P(x,H_y),y.B("web_player_autonav_use_server_provided_state")&&CX(y)&&(y.autonavState=y.autoplaySwitchButtonRenderer.enabled?2:1));var U=F.videoDetails;if(U){var C=U.embeddedPlayerOverlayVideoDetailsRenderer;var z=U.playerOverlayVideoDetailsRenderer; z&&(z.title&&(t.title=g.Oi(z.title)),z.subtitle&&(t.subtitle=g.Oi(z.subtitle)))}g.g9(y.P4)&&(y.sR=!!F.addToMenu);b_V(y,F.shareButton);F.startPosition&&F.endPosition&&(y.progressBarStartPosition=F.startPosition,y.progressBarEndPosition=F.endPosition);var O=F.gatedActionsOverlayRenderer;O&&(y.rA=g.P(O,BG7));var M,L,w,d=g.P((M=y.getWatchNextResponse())==null?void 0:(L=M.playerOverlays)==null?void 0:(w=L.playerOverlayRenderer)==null?void 0:w.infoPanel,c8d);if(d){y.dG=Number(d==null?void 0:d.durationMs)|| NaN;if(d==null?0:d.infoPanelOverviewViewModel)y.XB=d==null?void 0:d.infoPanelOverviewViewModel;if(d==null?0:d.infoPanelDetailsViewModel)y.ND=d==null?void 0:d.infoPanelDetailsViewModel}y.showSeekingControls=!!F.showSeekingControls}}var k,e,v=(k=y.getWatchNextResponse())==null?void 0:(e=k.contents)==null?void 0:e.twoColumnWatchNextResults;if(v){var l=v.desktopOverlay&&g.P(v.desktopOverlay,qWy);l&&(l.suppressShareButton&&(y.showShareButton=!1),l.suppressWatchLaterButton&&(y.sR=!1))}C&&YWV(y,t,C);var V= $H(0,t.autoplay_count),B=y.getWatchNextResponse(),b,Z=(b=B.contents)==null?void 0:b.twoColumnWatchNextResults,aV,rx,Fb,zN=(aV=B.playerOverlays)==null?void 0:(rx=aV.playerOverlayRenderer)==null?void 0:(Fb=rx.autoplay)==null?void 0:Fb.playerOverlayAutoplayRenderer,En=sNF(y),Xb,TN=(Xb=B.contents)==null?void 0:Xb.singleColumnWatchNextResults;if(TN){var A7;if(((A7=TN.autoplay)==null?0:A7.autoplay)&&!TN.playlist){var b7=TN.autoplay.autoplay.sets,IV={},md=new He(y.G()),KI=null,ec;if(b7){for(var Q=g.p(b7), Z9=Q.next();!Z9.done;Z9=Q.next()){var g2=Z9.value.autoplayVideoRenderer;if(g2&&g2.compactVideoRenderer){KI=g2.compactVideoRenderer;break}}if(ec=b7[0].autoplayVideo){var sn=ec.clickTrackingParams;sn&&(IV.itct=sn);IV.autonav="1";IV.playnext=String(V)}}else IV.feature="related-auto";var vd=g.P(ec,g.zo);if(KI){md.videoId=KI.videoId;var f=KI.shortBylineText;f&&(md.author=g.Oi(f));var t1=KI.title;t1&&(md.title=g.Oi(t1))}else vd!=null&&vd.videoId&&(md.videoId=vd.videoId);md.ZN=IV;y.suggestions=[];y.tQ=md}}if(En){for(var dK= [],x_=g.p(En),iN=x_.next();!iN.done;iN=x_.next()){var s9=iN.value,GN=void 0,aq=null;if(s9.endScreenVideoRenderer){var jk=s9.endScreenVideoRenderer,S=jk.title;aq=new He(y.G());aq.videoId=jk.videoId;aq.lengthSeconds=jk.lengthInSeconds||0;var X=jk.publishedTimeText;X&&(aq.publishedTimeText=g.Oi(X));var W=jk.shortBylineText;W&&(aq.author=g.Oi(W));var n=jk.shortViewCountText;n&&(aq.shortViewCount=g.Oi(n));if(S){aq.title=g.Oi(S);var K=S.accessibility;if(K){var xu=K.accessibilityData;xu&&xu.label&&(aq.ariaLabel= xu.label)}}var T=jk.navigationEndpoint;if(T){GN=T.clickTrackingParams;var Y=g.P(T,g.zo),J=g.P(T,g.on);Y?aq.ME=Y:J!=null&&(aq.watchUrl=J.url)}var ey=jk.thumbnailOverlays;if(ey)for(var l7=g.p(ey),PF=l7.next();!PF.done;PF=l7.next()){var vF=PF.value.thumbnailOverlayTimeStatusRenderer;if(vF)if(vF.style==="LIVE"){aq.isLivePlayback=!0;break}else if(vF.style==="UPCOMING"){aq.isUpcoming=!0;break}}aq.rO=eM(jk.thumbnail)}else if(s9.endScreenPlaylistRenderer){var Ey=s9.endScreenPlaylistRenderer,Sy=Ey.navigationEndpoint; if(!Sy)continue;var B1=g.P(Sy,g.zo);if(!B1)continue;var VY=B1.videoId;aq=new o$(y.G());aq.playlistId=Ey.playlistId;aq.playlistLength=Number(Ey.videoCount)||0;aq.V=VY||null;aq.videoId=VY;var Iq=Ey.title;Iq&&(aq.title=g.Oi(Iq));var p7=Ey.shortBylineText;p7&&(aq.author=g.Oi(p7));GN=Sy.clickTrackingParams;aq.rO=eM(Ey.thumbnail)}aq&&(GN&&(aq.sessionData={itct:GN}),dK.push(aq))}y.suggestions=dK}if(zN){y.KK=!!zN.preferImmediateRedirect;y.I7=y.I7||!!zN.webShowNewAutonavCountdown;y.Ri=y.Ri||!!zN.webShowBigThumbnailEndscreen; if(y.I7||y.Ri){var Ba=Z||null,u7=new He(y.G());u7.videoId=zN.videoId;var XU=zN.videoTitle;if(XU){u7.title=g.Oi(XU);var BF=XU.accessibility;if(BF){var jq=BF.accessibilityData;jq&&jq.label&&(u7.ariaLabel=jq.label)}}var fI=zN.byline;fI&&(u7.author=g.Oi(fI));var yY=zN.publishedTimeText;yY&&(u7.publishedTimeText=g.Oi(yY));var rK=zN.shortViewCountText;rK&&(u7.shortViewCount=g.Oi(rK));var b3=zN.thumbnailOverlays;if(b3)for(var Ve=g.p(b3),Nm=Ve.next();!Nm.done;Nm=Ve.next()){var eU=Nm.value.thumbnailOverlayTimeStatusRenderer; if(eU)if(eU.style==="LIVE"){u7.isLivePlayback=!0;break}else if(eU.style==="UPCOMING"){u7.isUpcoming=!0;break}else if(eU.style==="DEFAULT"&&eU.text){u7.lengthText=g.Oi(eU.text);var ME=eU.text.accessibility;if(ME){var wp=ME.accessibilityData;wp&&wp.label&&(u7.KW=wp.label||"")}break}}u7.rO=eM(zN.background);var h_=zN.nextButton;if(h_){var FF=h_.buttonRenderer;if(FF){var Er=FF.navigationEndpoint;if(Er){var Pa=g.P(Er,g.zo);Pa&&(u7.ME=Pa)}}}if(zN.topBadges){var A_=zN.topBadges[0];if(A_){var sN=g.P(A_,Dub); sN&&sN.style==="BADGE_STYLE_TYPE_PREMIUM"&&(u7.k54=!0)}}var $y=zN.alternativeTitle;$y&&(u7.xx=g.Oi($y));var KQ={autonav:"1",playnext:String(V)};u7.playlistId&&(KQ.autoplay="1");if(Ba){var HA,bz,Sq,UN,Qi=(HA=Ba.autoplay)==null?void 0:(bz=HA.autoplay)==null?void 0:(Sq=bz.sets)==null?void 0:(UN=Sq[0])==null?void 0:UN.autoplayVideo;if(Qi){var CY=Qi.clickTrackingParams;CY&&(KQ.itct=CY);var zG=g.P(Qi,g.zo);zG&&(u7.Bu=zG)}}else if(zN){var ON,NV,LY,Ig=(ON=zN.nextButton)==null?void 0:(NV=ON.buttonRenderer)== null?void 0:(LY=NV.navigationEndpoint)==null?void 0:LY.clickTrackingParams;Ig&&(KQ.itct=Ig)}KQ.itct||(KQ.feature="related-auto");u7.ZN=KQ;y.suggestions||(y.suggestions=[]);y.tQ=u7}zN.countDownSecs!=null&&(y.E3=zN.countDownSecs*1E3);zN.countDownSecsForFullscreen!=null&&(y.H5=zN.countDownSecsForFullscreen>=0?zN.countDownSecsForFullscreen*1E3:-1);y.B("web_autonav_color_transition")&&zN.watchToWatchTransitionRenderer&&(y.watchToWatchTransitionRenderer=g.P(zN.watchToWatchTransitionRenderer,g1z))}var v0= sNF(y);if(v0){var ZW,vI,O_,zr=v0==null?void 0:(ZW=v0[0])==null?void 0:(vI=ZW.endScreenVideoRenderer)==null?void 0:(O_=vI.navigationEndpoint)==null?void 0:O_.clickTrackingParams,pP=g.Ou(y);zr&&pP&&(pP.sessionData={itct:zr})}y.o5.currentVideoThumbnail&&(y.rO=eM(y.o5.currentVideoThumbnail));var eR,L6,Mv,wN,RT,lg=(eR=y.o5)==null?void 0:(L6=eR.contents)==null?void 0:(Mv=L6.twoColumnWatchNextResults)==null?void 0:(wN=Mv.results)==null?void 0:(RT=wN.results)==null?void 0:RT.contents;if(lg&&lg[0]){var t3= lg[0].videoPrimaryInfoRenderer;t3&&t3&&t3.subtitle&&(y.fv=g.Oi(t3.subtitle))}if(lg&&lg[1]){var ni,DA,mW,fD,af=(ni=lg[1].videoSecondaryInfoRenderer)==null?void 0:(DA=ni.owner)==null?void 0:(mW=DA.videoOwnerRenderer)==null?void 0:(fD=mW.thumbnail)==null?void 0:fD.thumbnails;af&&af.length&&(y.profilePicture=af[af.length-1].url)}var vq=zD(t),gR,gby=(gR=y.getWatchNextResponse())==null?void 0:gR.onResponseReceivedEndpoints;if(gby)for(var i97=g.p(gby),BB=i97.next();!BB.done;BB=i97.next()){var cB=BB.value; g.P(cB,LX)&&(y.u0=g.P(cB,LX));var e9=g.P(cB,i_N),KeV=void 0;if((KeV=e9)==null?0:KeV.entityKeys)y.ll=e9.entityKeys||[],e9.visibleOnLoadKeys&&(y.visibleOnLoadKeys=e9.visibleOnLoadKeys)}if(y.B("web_key_moments_markers")){var F6U=g.MD.getState().entities,AE9=g.DL("visibility_override","markersVisibilityOverrideEntity");var J0=iG(F6U,"markersVisibilityOverrideEntity",AE9);y.L1=(J0==null?void 0:J0.videoId)===(y.videoId||vq)&&(J0==null?0:J0.visibilityOverrideMarkersKey)?J0.visibilityOverrideMarkersKey:y.visibleOnLoadKeys; y.visibleOnLoadKeys=[].concat(g.i7(y.L1))}}}; lgN=function(y,t){if(t=t.raw_reel_item_watch_response)y.reelItemWatchResponse=t}; K2y=function(y){return!!y&&isFinite(y)&&y>1E9}; CX=function(y){var t;return((t=y.autoplaySwitchButtonRenderer)==null?void 0:t.enabled)!==void 0}; wU=function(y){return!!(y.Y&&y.Y.videoInfos&&y.Y.videoInfos.length)}; g.XB=function(y){var t=y.W;y.B("html5_gapless_unlimit_format_selection")&&Rh(y)&&(t=!1);var a=!!y.V&&y.V.US,r=y.P4,E=y.cD(),h=PQ(y),F=y.DE,x=t,U=y.isOtf();t=y.hX();var C=y.Ui,z=y.getUserAudio51Preference(),O=ND(y),M=dU(y),L=new YDF(r);if(r.Bb()||r.B("html5_logging_format_selection"))L.V=!0;L.JF=h;L.DE=F&&r.Z;L.L1=z;g.io("windows nt 5.1")&&!g.OI&&(L.l8=!0);if(h=E)h=g.z5(r)?i8y(r):!1;h&&(L.AF=!0);x&&(L.l8=!0,L.vO=!0);U&&!r.B("html5_otf_prefer_vp9")&&(L.l8=!0);r.playerStyle==="picasaweb"&&(U&&(L.l8= !1),L.Vv=!1);C&&(L.l8=!0);G9(r.L,Za.CHANNELS)&&(r.B("html5_enable_ac3")&&(L.D=!0),r.B("html5_enable_eac3")&&(L.L=!0),r.B("html5_enable_ac3_gapless")&&(L.Ff=!0));r.B("html5_block_8k_hfr")&&(L.T7=!0);L.J=g.Gw(r.experiments,"html5_max_selectable_quality_ordinal");L.W=g.Gw(r.experiments,"html5_min_selectable_quality_ordinal");J5&&(L.nJ=480);if(a||E)L.Vv=!1;L.n1=!1;L.disableAv1=O;a=h5(r,L.K,void 0,L.disableAv1);a>0&&a<2160&&(Fv()||r.B("html5_format_hybridization"))&&(L.K.supportsChangeType=+Fv(),L.vt= a);a>=2160&&(L.d0=!0);LXx()&&!r.B("disable_av1_setting")&&(L.K.serveVp9OverAv1IfHigherRes=0,L.MP=!1);L.hX=t;L.r0=g.IU||FL()&&!t?!1:!0;L.Z=r.B("html5_format_hybridization");L.zl=r.B("html5_disable_encrypted_vp9_live_non_2k_4k");L.FB=M;V3(y)&&(L.IR=!0);Tc()&&y.playerResponse&&y.playerResponse.playerConfig&&y.playerResponse.playerConfig.webPlayerConfig&&y.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(L.D=!0,L.L=!0);y.W&&y.isAd()&&(y.aP&&(L.hF=y.aP),y.Dk&&(L.Y=y.Dk));y.yR()&& (L.o5=g.Gw(y.P4.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));L.C1=y.isLivePlayback&&y.sM()&&y.P4.B("html5_drm_live_audio_51");L.I7=y.cA;L.MK=!V3(y);return y.R5=L}; ND=function(y){return y.P4.B("html5_disable_av1")?!0:!1}; Igz=function(y){pM("drm_pb_s",void 0,y.hF);y.RN||y.V&&gP(y.V);var t={};y.V&&(t=vau(y.Wl,g.XB(y),y.P4.L,y.V,function(a){return y.publish("ctmp","fmtflt",a)},!0,new Set)); t=new w9(t,y.P4,y.WQ,y.useCobaltWidevine?Tc()?kU(y):!1:!1,function(a,r){y.H4(a,r)}); g.c(y,t);y.Wy=!1;y.loading=!0;KWy(t,function(a){pM("drm_pb_f",void 0,y.hF);for(var r=g.p(a),E=r.next();!E.done;E=r.next())switch(E=E.value,E.flavor){case "fairplay":E.RN=y.RN;E.aH=y.aH;E.LQ=y.LQ;break;case "widevine":E.zI=y.zI}y.T0=a;if(y.T0.length>0&&(y.L=y.T0[0],y.P4.Bb())){a={};r=g.p(Object.entries(y.L.V));for(E=r.next();!E.done;E=r.next()){var h=g.p(E.value);E=h.next().value;h=h.next().value;var F="unk";(E=E.match(/(.*)codecs="(.*)"/))&&(F=E[2]);a[F]=h}y.H4("drmProbe",a)}y.AO()})}; TGb=function(y,t){if(t.length===0||fX(y))return null;y.P4.L.K&&(aE=!0);var a=y.YJ;var r=y.lengthSeconds,E=y.isLivePlayback,h=y.d7,F=y.P4,x=v8F(t);if(E||h){F=F.experiments;r=new bi("",F,!0);r.K=!h;r.US=!0;r.isManifestless=!0;r.isLive=!h;r.d7=h;E=g.p(t);for(x=E.next();!x.done;x=E.next()){var U=x.value;x=qK(U,a);var C=WF(10,U);C=Dr(C.FI||U.url||"",C.m$,C.s);var z=C.get("id");z&&z.includes("%7E")&&(r.AF=!0);var O=void 0;z=(O=F)==null?void 0:O.Nr("html5_max_known_end_time_rebase");O=Number(U.targetDurationSec|| 5);U=Number(U.maxDvrDurationSec||14400);var M=Number(C.get("mindsq")||C.get("min_sq")||"0"),L=Number(C.get("maxdsq")||C.get("max_sq")||"0")||Infinity;r.H1=r.H1||M;r.On=r.On||L;var w=!DG(x.mimeType);C&&Jb(r,new dZ(C,x,{Z5:O,Zk:w,x5:U,H1:M,On:L,XN:300,d7:h,Nu:z}))}a=r}else if(x==="FORMAT_STREAM_TYPE_OTF"){r=r===void 0?0:r;h=new bi("",F.experiments,!1);h.duration=r||0;F=g.p(t);for(r=F.next();!r.done;r=F.next())r=r.value,E=qK(r,a,h.duration),x=WF(12,r),(x=Dr(x.FI||r.url||"",x.m$,x.s))&&(E.streamType=== "FORMAT_STREAM_TYPE_OTF"?Jb(h,new X9(x,E,"sq/0")):Jb(h,new VH(x,E,tb(r.initRange),tb(r.indexRange))));h.isOtf=!0;a=h}else{r=r===void 0?0:r;h=new bi("",F.experiments,!1);h.duration=r||0;F=g.p(t);for(r=F.next();!r.done;r=F.next())C=r.value,r=qK(C,a,h.duration),E=tb(C.initRange),x=tb(C.indexRange),z=WF(11,C),(C=Dr(z.FI||C.url||"",z.m$,z.s))&&Jb(h,new VH(C,r,E,x));a=h}t.length>0&&(t=t[0],$U(y)&&t.url&&(y.oo=y.oo||muV(t.url)));t=y.isLivePlayback&&!y.d7&&!y.Cx&&!y.isPremiere;y.B("html5_live_head_playable")&& (!WQ(y)&&t&&y.H4("missingLiveHeadPlayable",{}),y.P4.AF==="yt"&&(a.yv=!0));return a}; GON=function(y){var t,a,r=((t=y.playerResponse)==null?void 0:(a=t.streamingData)==null?void 0:a.adaptiveFormats)||[];t=null;if(r.length>0)t=TGb(y,r);else if(!y.B("html5_deprecate_adaptive_formats_string")){y.H4("pafmtstr",{s:y.adaptiveFormats.substring(0,50)});if((r=y.adaptiveFormats)&&!fX(y)){y.P4.L.K&&(aE=!0);r=jx(r);t=y.YJ;var E=y.lengthSeconds,h=y.isLivePlayback;a=y.d7;var F=y.P4,x=Qln(r);if(h||a){F=F==null?void 0:F.experiments;E=new bi("",F,!0);E.US=!0;E.isManifestless=!0;E.K=!a;E.isLive=!a; E.d7=a;h=g.p(r);for(x=h.next();!x.done;x=h.next()){var U=x.value;x=YK(U,t);var C=Dr(U.url,U.sp,U.s),z=C.get("id");z&&z.includes("%7E")&&(E.AF=!0);var O=void 0;z=(O=F)==null?void 0:O.Nr("html5_max_known_end_time_rebase");O=Number(U.target_duration_sec)||5;U=Number(U.max_dvr_duration_sec)||14400;var M=Number(C.get("mindsq")||C.get("min_sq")||"0"),L=Number(C.get("maxdsq")||C.get("max_sq")||"0")||Infinity;E.H1=E.H1||M;E.On=E.On||L;var w=!DG(x.mimeType);C&&Jb(E,new dZ(C,x,{Z5:O,Zk:w,x5:U,H1:M,On:L,XN:300, d7:a,Nu:z}))}t=E}else if(x==="FORMAT_STREAM_TYPE_OTF"){E=E===void 0?0:E;a=new bi("",F==null?void 0:F.experiments,!1);a.duration=E||0;F=g.p(r);for(E=F.next();!E.done;E=F.next())if(C=E.value,E=YK(C,t,a.duration),h=Dr(C.url,C.sp,C.s))E.streamType==="FORMAT_STREAM_TYPE_OTF"?Jb(a,new X9(h,E,"sq/0")):(x=ZE(C.init),C=ZE(C.index),Jb(a,new VH(h,E,x,C)));a.isOtf=!0;t=a}else{E=E===void 0?0:E;a=new bi("",F==null?void 0:F.experiments,!1);a.duration=E||0;F=g.p(r);for(E=F.next();!E.done;E=F.next())C=E.value,E=YK(C, t,a.duration),h=ZE(C.init),x=ZE(C.index),(C=Dr(C.url,C.sp,C.s))&&Jb(a,new VH(C,E,h,x));t=a}r.length>0&&(r=r[0],$U(y)&&r.url&&(y.oo=y.oo||muV(r.url)));r=y.isLivePlayback&&!y.d7&&!y.Cx&&!y.isPremiere;y.B("html5_live_head_playable")&&(!WQ(y)&&r&&y.H4("missingLiveHeadPlayable",{}),y.P4.AF==="yt"&&(t.yv=!0))}else t=null;y.H4("pafmts",{isManifestFilled:!!t})}if(!t)return!1;Sx(y,t);return!0}; fX=function(y){return Tc()?!kU(y):ZY()?!(!y.RN||!y.B("html5_enable_safari_fairplay")&&Wt()):!1}; kU=function(y){return y.B("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Uu=function(y,t){t=g.p(t);for(var a=t.next();!a.done;a=t.next())if(a=a.value,a.cueRangeSetIdentifier){var r=void 0;y.pI.set(a.cueRangeSetIdentifier,(r=a.playerCueRanges)!=null?r:[])}}; QQ=function(y){return!(!y.V||!y.V.isManifestless)}; vQ=function(y){return y.JF?y.isLowLatencyLiveStream&&y.V!=null&&I1(y.V)>=5:y.isLowLatencyLiveStream&&y.V!=void 0&&I1(y.V)>=5}; Z_V=function(y){return Tc()&&kU(y)?!1:fX(y)&&(g.CF(y.P4)?!y.isLivePlayback:y.hlsvp)||!Wt()||y.IJ?!0:!1}; tBx=function(y){y.loading=!0;y.vO=!1;if(yYz(y))g.PLx(y.videoId).then(function(r){var E;if((E=y.playerResponse)!=null&&E.streamingData){E=[];r=g.p(r);for(var h=r.next();!h.done;h=r.next())h=Object.assign({},h.value),h.signatureCipher="",E.push(h);E.length<2&&y.H4("offmlf",{len:E.length});E=TGb(y,E);PQ(y)&&biy(E,!1);Sx(y,E);y.H4("dlr",{})}else y.H4("offsdm",{cotn:y.lX?y.lX.cotn:"0",cpn:y.clientPlaybackNonce})}).then(function(){y.AO()}); else{On(y.Y5)||g.ls(new g.RV("DASH MPD Origin invalid: ",y.Y5));var t=y.Y5,a=g.Gw(y.P4.experiments,"dash_manifest_version")||4;t=g.lJ(t,{mpd_version:a});y.isLowLatencyLiveStream&&y.latencyClass!=="NORMAL"||(t=g.lJ(t,{pacing:0}));J0V(t,y.P4.experiments,y.isLivePlayback).then(function(r){y.Qv()||(Sx(y,r,!0),pM("mrc",void 0,y.hF),y.AO())},function(r){y.Qv()||(y.loading=!1,y.publish("dataloaderror",new g.rg("manifest.net.retryexhausted",{backend:"manifest", rc:r.status},1)))}); pM("mrs",void 0,y.hF)}}; amx=function(y){var t;return!((t=y.P4.getWebPlayerContextConfig())==null||!t.enableProximaLowLatency)}; pX=function(y){if(!y.isProximaLatencyEligible)return 0;var t=j_();return amx(y)?2:t===1?1:y.B("html5_enable_proxima")?2:0}; Sx=function(y,t,a){a=a===void 0?!1:a;y.B0=void 0;y.V=t;g.c(y,t);t.H1=y.H1;t.On=y.On;t.qp=y.qp;t.hc=y.hc;t.Mq=y.Mq;y.Yv&&(t.hF=new qN(y.Yv));(y.cD()||g.ex(y))&&y.bv.push("webgl");y.V.isLive||(y.isLivePlayback=!1);var r=t.sourceUrl.split("/");if(y.JF?r.indexOf("manifest_duration")!==-1:r.indexOf("manifest_duration")!=-1)y.wu=Number(r[r.indexOf("manifest_duration")+1]);if(t.K||t.isManifestless)t.subscribe("clienttemp",y.H4,y),a?t.subscribe("refresh",y.Rt,y):t.subscribe("cuepointsadded",y.OL,y);gP(t)? y.Wy=!0:Pt=void 0;y.Cx&&(t.D=y.Cx,t.isLive=!0,y.isLivePlayback=!0);t.isPremiere=y.isPremiere;t.isLiveHeadPlayable=y.isLiveHeadPlayable}; rYx=function(y,t){var a=t||Z_V(y)||y.isExternallyHostedPodcast;if(!y.V||a)return y.H4("skipDash",{dm:!!y.V,air:t,dd:y.IJ,mss:Wt(),"3pp":y.isExternallyHostedPodcast}),m_();PQ(y)&&biy(y.V,y.isLivePlayback);return Jm().then(function(){return eAF(y.Wl,g.XB(y),y.P4.L,y.V,y.L,function(r){return y.publish("ctmp","fmtflt",r)},y.uX,lP(y)).then(function(r){y.SL(r); y.Wl.K=null;/^av/.test(y.clientPlaybackNonce)&&y.R5&&y.H4("av1",y.R5.K)})})}; h67=function(y,t){if(t&&y.hlsvp)return m_();if(y.hlsFormats){if(t=jx(y.hlsFormats)){for(var a=[],r=g.p(t),E=r.next();!E.done;E=r.next()){E=E.value;E.url&&(E.url=poH(E.url));var h=void 0;((h=y.R5)==null?0:h.V)&&a.push(E.itag)}var F;((F=y.R5)==null?0:F.V)&&a.length>0&&y.H4("hlsfmt",{itags:a.join(".")})}y.MP=$Q7(y.P4,t);y.MP&&E4N(y,y.MP);F=y.clientPlaybackNonce;var x,U,C,z;return L37(y.P4,y.isAd(),t,(z=(x=y.playerResponse)==null?void 0:(U=x.captions)==null?void 0:(C=U.playerCaptionsRenderer)==null?void 0: C.baseUrl)!=null?z:null,y.B5,F,function(O){return y.publish("ctmp","hlsflt",O)}).then(function(O){for(var M=0,L=[],w=g.p(O),d=w.next();!d.done;d=w.next()){d=d.value; var k=void 0;L.push((k=d.getInfo())==null?void 0:k.itag);var e=k=void 0;((k=d.getInfo())==null?void 0:(e=k.audio)==null?void 0:e.numChannels)>M&&(M=d.getInfo().audio.numChannels)}M>2&&y.H4("hlschl",{mn:M});var v;((v=y.R5)==null?0:v.V)&&y.H4("hlsfmtaf",{itags:L.join(".")});var l;if(y.B("html5_enable_vp9_fairplay")&&((l=y.L)==null?0:CN(l)))for(y.H4("drm",{sbdlfbk:1}),M=g.p(y.T0),L=M.next();!L.done;L=M.next())if(L=L.value,UI(L)){y.L=L;break}uP(y,O)})}return m_()}; Fxz=function(y){if(y.isExternallyHostedPodcast&&y.C4){var t=jx(y.C4);if(!t[0])return m_();y.w8=t[0];return Rr1(y.P4,t[0]).then(function(a){uP(y,a)})}return y.Bz&&y.yJ?w2u(y.P4,y.isAd(),y.Bz).then(function(a){uP(y,a)}):m_()}; xpn=function(y){if(y.isExternallyHostedPodcast)return m_();var t=jx(y.C4,y.Qx);if(y.hlsvp){var a=v1d(y.hlsvp,y.clientPlaybackNonce,y.B5);t.push(a)}return MXd(y.P4,y.isAd(),t,AY7(y)).then(function(r){uP(y,r)})}; uP=function(y,t){y.n1=t;y.SL(new Bh(g.v$(y.n1,function(a){return a.getInfo()})))}; AY7=function(y){var t={cpn:y.clientPlaybackNonce,c:y.P4.V.c,cver:y.P4.V.cver};y.Ec&&(t.ptk=y.Ec,t.oid=y.Co,t.ptchn=y.kt,t.pltype=y.tC,y.zV&&(t.m=y.zV));return t}; g.VQ=function(y){return fX(y)&&y.RN?(y={},y.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",y):y.K&&y.K.YJ||null}; s5y=function(y){var t=nX(y);return t&&t.text?g.Oi(t.text):y.paidContentOverlayText}; $p7=function(y){var t=nX(y);return t&&t.durationMs?iA(t.durationMs):y.paidContentOverlayDurationMs}; nX=function(y){var t,a,r;return y.playerResponse&&y.playerResponse.paidContentOverlay&&y.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.P((t=y.o5)==null?void 0:(a=t.playerOverlays)==null?void 0:(r=a.playerOverlayRenderer)==null?void 0:r.playerDisclosure,UpF)||null}; C5x=function(y){if(!y)return null;y=g.p(y);for(var t=y.next();!t.done;t=y.next()){var a=void 0,r=void 0;if(t=(a=t.value.adPlacementRenderer)==null?void 0:(r=a.renderer)==null?void 0:r.videoAdTrackingRenderer)return t}return null}; mA=function(y){var t="";if(y.fO)return y.fO;y.isLivePlayback&&(t=y.allowLiveDvr?"dvr":y.isPremiere?"lp":y.Cx?"window":"live");y.d7&&(t="post");return t}; g.JI=function(y,t){return typeof y.keywords[t]!=="string"?null:y.keywords[t]}; z6n=function(y){return!!y.Dd||!!y.GM||!!y.gr||!!y.bl||y.xb}; g.oh=function(y){return!!(y.Y5||y.C4||y.Bz||y.hlsvp||y.bT())}; FB=function(y){if(y.B("html5_onesie")&&y.errorCode)return!1;var t=g.TE(y.bv,"ypc");y.ypcPreview&&(t=!1);return y.Fm()&&!y.loading&&(g.oh(y)||g.TE(y.bv,"heartbeat")||t)}; jx=function(y,t){y=xz(y);var a={};if(t){t=g.p(t.split(","));for(var r=t.next();!r.done;r=t.next())(r=r.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(a[r[1]]={width:r[2],height:r[3]})}t=g.p(y);for(r=t.next();!r.done;r=t.next()){r=r.value;var E=a[r.itag];E&&(r.width=E.width,r.height=E.height)}return y}; b_V=function(y,t){y.showShareButton=!!t;var a,r,E=((a=g.P(t,g.j7))==null?void 0:a.navigationEndpoint)||((r=g.P(t,g.j7))==null?void 0:r.command);E&&(y.Aw=!!g.P(E,Oq7))}; ehH=function(y,t){var a=t.raw_embedded_player_response;if(!a){var r=t.embedded_player_response;r&&(a=JSON.parse(r))}a&&(y.Fi=a);if(y.Fi){y.embeddedPlayerConfig=y.Fi.embeddedPlayerConfig||null;if(a=y.Fi.videoFlags)a.playableInEmbed&&(y.allowEmbed=!0),a.isPrivate&&(y.isPrivate=!0),a.userDisplayName&&(t.user_display_name=a.userDisplayName),a.userDisplayImage&&(t.user_display_image=a.userDisplayImage);if((a=y.Fi.embedPreview)&&a.thumbnailPreviewRenderer){a=a.thumbnailPreviewRenderer;DQ7(y,a.controlBgHtml); if(r=a.defaultThumbnail)y.rO=eM(r);y.B("embeds_web_enable_search_button")&&a.searchButton&&(r=g.P(a.searchButton,g.j7))&&(y.JP=g.P(r.navigationEndpoint,g.HQ));(r=g.P(a==null?void 0:a.videoDetails,LxH))&&YWV(y,t,r);r=g.P(a==null?void 0:a.videoDetails,MBn);y.sR=!!a.addToWatchLaterButton;b_V(y,a.shareButton);if(r==null?0:r.musicVideoType)y.musicVideoType=r.musicVideoType;var E,h,F,x,U;if(r=g.P((E=y.getEmbeddedPlayerResponse())==null?void 0:(h=E.embedPreview)==null?void 0:(F=h.thumbnailPreviewRenderer)== null?void 0:(x=F.playButton)==null?void 0:(U=x.buttonRenderer)==null?void 0:U.navigationEndpoint,g.zo))km2(y,r),y.videoId=r.videoId||y.videoId;a.videoDurationSeconds&&(y.lengthSeconds=iA(a.videoDurationSeconds));a.webPlayerActionsPorting&&Y3V(y,a.webPlayerActionsPorting);if(E=g.P(a==null?void 0:a.playlist,wZV)){y.pA=!0;h=[];F=Number(E.currentIndex);if(E.contents)for(x=0,U=E.contents.length;x0:y.ZA?!1:y.P4.pA||y.P4.Xz||!g.bc(y.P4)?!0:!1:(y.ZA?0:y.nJ)&&g.bc(y.P4)?!0:!1;y.B("html5_log_detailpage_autoplay")&&Ih(y)==="detailpage"&&y.H4("autoplay_info",{autoplay:y.Nh,autonav:y.isAutonav,wasDompaused:y.ZA,result:t});return t}; g.y$=function(y){return y.oauthToken||y.P4.NC}; SBu=function(y){if(y.B("html5_stateful_audio_normalization")){var t=1,a=g.Gw(y.P4.experiments,"html5_default_ad_gain");a&&y.isAd()&&(t=a);var r,E;a=(E=(r=y.D)==null?void 0:r.audio.D)!=null?E:y.RQ;if(a==null||isNaN(a))y=j5H(y);else{r=(0,g.Wx)();y.NC=1;E=r-y.P4.qH<=y.maxStatefulTimeThresholdSec*1E3;y.applyStatefulNormalization&&E?y.NC=2:E||(y.P4.aP=Infinity,y.P4.qH=NaN);E=(y.NC===2?g.tE(y.P4.aP,y.minimumLoudnessTargetLkfs,y.loudnessTargetLkfs):y.loudnessTargetLkfs)-a;if(y.NC!==2){var h,F,x,U,C=((h= y.playerResponse)==null?void 0:(F=h.playerConfig)==null?void 0:(x=F.audioConfig)==null?void 0:(U=x.loudnessNormalizationConfig)==null?void 0:U.statelessLoudnessAdjustmentGain)||0;E+=C}E=Math.min(E,0);y.preserveStatefulLoudnessTarget&&(y.P4.aP=a+E,y.P4.qH=r);y=Math.min(1,Math.pow(10,E/20))||t}}else y=j5H(y);return y}; j5H=function(y){var t=1,a=g.Gw(y.P4.experiments,"html5_default_ad_gain");a&&y.isAd()&&(t=a);var r,E;a=((r=y.D)==null?void 0:r.audio.Y)!=null?(E=y.D)==null?void 0:E.audio.Y:y.Vy;isNaN(a)||(y.NC=4);return Math.min(1,Math.pow(10,-a/20))||t}; PQ=function(y){var t=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],a=NO(y.P4)==="TVHTML5_SIMPLY"&&y.P4.V.ctheme==="MUSIC";!y.JM&&(g.Jf(y.P4)||g.$p(y.P4)||a)&&(t.includes(y.musicVideoType)||y.isExternallyHostedPodcast)&&(y.JM=!0);if(t=g.IB())t=/Starboard\/([0-9]+)/.exec(g.rI()),t=(t?parseInt(t[1],10):NaN)<10;a=y.P4;a=(NO(a)==="TVHTML5_CAST"||NO(a)==="TVHTML5"&&(a.V.cver.startsWith("6.20130725")||a.V.cver.startsWith("6.20130726")))&&y.P4.V.ctheme==="MUSIC";var r;if(r=!y.JM)a||(a= y.P4,a=NO(a)==="TVHTML5"&&a.V.cver.startsWith("7")),r=a;r&&!t&&(t=y.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",a=(y.B("cast_prefer_audio_only_for_atv_and_uploads")||y.B("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&y.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",t||a||y.isExternallyHostedPodcast)&&(y.JM=!0);return y.P4.deviceIsAudioOnly||y.JM&&y.P4.Z}; dU=function(y){var t,a,r;return((t=y.playerResponse)==null?void 0:(a=t.playerConfig)==null?void 0:(r=a.compositeVideoConfig)==null?void 0:r.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; Q5x=function(y){var t,a,r,E=(t=y.playerResponse)==null?void 0:(a=t.playerConfig)==null?void 0:(r=a.compositeVideoConfig)==null?void 0:r.sourceConfigs,h,F,x;y=(h=y.playerResponse)==null?void 0:(F=h.playerConfig)==null?void 0:(x=F.compositeVideoConfig)==null?void 0:x.defaultActiveSourceVideoId;if(!E||!E.length)return"";y||(y=E[0].videoId||"");E=g.p(E);for(h=E.next();!h.done;h=E.next())if(h=h.value,h.videoId===y&&h.audioTracks)for(h=g.p(h.audioTracks),F=h.next();!F.done;F=h.next())if(F=F.value,F.isDefaultForSource)return F.id|| "";return""}; g.v47=function(y){return y.US()&&V3(y)}; tP=function(y){var t,a,r;return!!((t=y.playerResponse)==null?0:(a=t.playerConfig)==null?0:(r=a.mediaCommonConfig)==null?0:r.splitScreenEligible)}; a9=function(y){var t;return!((t=y.playerResponse)==null||!t.compositePlayabilityStatus)}; pZn=function(y){return isNaN(y)?0:Math.max((Date.now()-y)/1E3-30,0)}; rO=function(y){return!(!y.JQ||!y.P4.Z)&&y.bT()}; Ef=function(y){return y.oH&&y.enableServerStitchedDai}; e6H=function(y){return y.Cv&&!y.Yv}; V3=function(y){var t=y.B("html5_enable_sabr_on_drive")&&y.P4.AF==="gd";if(y.Vd)return y.Cv&&y.H4("fds",{fds:!0},!0),!1;if(y.P4.AF!=="yt"&&!t)return y.Cv&&y.H4("dsvn",{ns:y.P4.AF},!0),!1;if(y.cotn||!y.V||y.V.isOtf&&!y.B("html5_enable_sabr_otf_in_client")||y.Y&&!y.Y.V||y.Mv&&!y.B("html5_enable_sabr_csdai"))return!1;if(y.B("html5_use_sabr_requests_for_debugging"))return!0;y.Cv&&y.H4("esfw",{usbc:y.Cv,hsu:!!y.Yv},!0);if(y.Cv&&y.Yv)return!0;if(y.B("html5_remove_client_sabr_determination"))return!1;var a= !y.V.US&&!y.sM();t=a&&hP&&y.B("html5_enable_sabr_vod_streaming_xhr");a=a&&!hP&&y.B("html5_enable_sabr_vod_non_streaming_xhr");var r=Fz(y),E=y.B("html5_enable_sabr_drm_vod_streaming_xhr")&&hP&&y.sM()&&!y.V.US&&(y.drmProduct==="1"?!1:!0);(t=t||a||r||E)&&!y.Yv&&y.H4("sabr",{loc:"m"},!0);return t&&!!y.Yv}; Fz=function(y){var t;if(!(t=hP&&y.US()&&y.sM()&&(y.drmProduct==="1"?!1:!0)&&y.B("html5_sabr_live_drm_streaming_xhr"))){t=y.US()&&!y.sM()&&hP;var a=y.US()&&y.latencyClass!=="ULTRALOW"&&!y.isLowLatencyLiveStream&&y.B("html5_sabr_live_normal_latency_streaming_xhr"),r=y.isLowLatencyLiveStream&&y.B("html5_sabr_live_low_latency_streaming_xhr"),E=y.latencyClass==="ULTRALOW"&&y.B("html5_sabr_live_ultra_low_latency_streaming_xhr");t=t&&(a||r||E)}a=t;t=y.enableServerStitchedDai&&a&&y.B("html5_enable_sabr_ssdai_streaming_xhr"); a=!y.enableServerStitchedDai&&a;r=y.US()&&!hP&&y.B("html5_enable_sabr_live_non_streaming_xhr");y=hP&&(y.NP()||tP(y)&&y.B("html5_enable_sabr_for_lifa_eligible_streams"));return t||a||r||y}; lP=function(y){var t=y.B("html5_enable_server_format_filter")&&!y.sM(),a=y.B("html5_enable_server_format_filter_for_drm")&&y.sM();return V3(y)&&(t||a)}; yYz=function(y){var t;if(t=!!y.cotn)t=y.videoId,t=!!t&&g.Yp(t)===1;return t&&!y.JQ}; g.AP=function(y){if(!y.V||!y.K||!y.D)return!1;var t=y.V.V,a=!!t[y.K.id]&&Q2(72,t[y.K.id].Pb.V);t=!!t[y.D.id]&&Q2(16,t[y.D.id].Pb.V);return(y.K.itag==="0"||a)&&t}; x6=function(y){return y.ul?["OK","LIVE_STREAM_OFFLINE"].includes(y.ul.status):!0}; R67=function(y){return(y=y.mp)&&y.showError?y.showError:!1}; sf=function(y,t){return y.B(t)?!0:(y.fflags||"").includes(t+"=true")}; n1F=function(y,t){t.inlineMetricEnabled&&(y.inlineMetricEnabled=!0);t.playback_progress_0s_url&&(y.bl=new Uub(t));if(t=t.video_masthead_ad_quartile_urls)y.GM=t.quartile_0_url,y.xM=t.quartile_25_url,y.gx=t.quartile_50_url,y.Dq=t.quartile_75_url,y.i9=t.quartile_100_url,y.gr=t.quartile_0_urls,y.B$=t.quartile_25_urls,y.r8=t.quartile_50_urls,y.Jx=t.quartile_75_urls,y.Ct=t.quartile_100_urls}; agu=function(y){var t={};y=g.p(y);for(var a=y.next();!a.done;a=y.next()){a=a.value;var r=a.split("=");r.length===2?t[r[0]]=r[1]:t[a]=!0}return t}; nwx=function(y){if(y){if(r4u(y))return y;y=tyu(y);if(r4u(y,!0))return y}return""}; g.lmy=function(y){return y.captionsLanguagePreference||y.P4.captionsLanguagePreference||g.JI(y,"yt:cc_default_lang")||y.P4.MP}; $6=function(y){return!(!y.isLivePlayback||!y.hasProgressBarBoundaries())}; g.Ou=function(y){var t;return y.tQ||((t=y.suggestions)==null?void 0:t[0])||null}; uD7=function(y,t){return t!=null?xH(y.W,t):y.W?y.W:y.P4.preferGapless&&y.P4.supportsGaplessShorts()}; g.Uf=function(y){var t,a;return!!((t=y.embeddedPlayerConfig)==null?0:(a=t.embeddedPlayerFlags)==null?0:a.enableMusicUx)}; VB2=function(y){return y.W||y.B("web_player_media_session_infinity")&&y.isLivePlayback}; Cf=function(y){return y.P4.D&&y.isPrivate}; g.Of=function(y){var t=y.G(),a=g.zQ(t),r=t.ND;g.g9(t)&&(r&&(a.thirdParty=Object.assign({},a.thirdParty,{embedUrl:r})),N$n(a,y));if(r=y.AF)a.clickTracking={clickTrackingParams:r};else if(g.g9(y.G())&&g.yd("EVENT_ID"))a.clickTracking={clickTrackingParams:g.yd("EVENT_ID")};else if(t.B("html5_log_missing_itct")){var E;r=new g.RV("Missing ITCT in InnerTubeContext",{isAd:y.isAd(),RZf:(E=t.getWebPlayerContextConfig())==null?void 0:E.contextId});g.pK(r)}E=a.client||{};r="EMBED";var h=Ih(y);h==="leanback"? r="WATCH":t.B("gvi_channel_client_screen")&&h==="profilepage"?r="CHANNEL":y.Ui?r="LIVE_MONITOR":h==="detailpage"?r="WATCH_FULL_SCREEN":h==="adunit"?r="ADUNIT":h==="sponsorshipsoffer"&&(r="UNKNOWN");E.clientScreen=r;if(r=y.kidsAppInfo)E.kidsAppInfo=JSON.parse(r);(h=y.tM)&&!r&&(E.kidsAppInfo={contentSettings:{ageUpMode:n47[h]}});if(r=y.WE)E.unpluggedAppInfo={enableFilterMode:!0};(h=y.unpluggedFilterModeType)&&!r&&(E.unpluggedAppInfo={filterModeType:mp2[h]});if(r=y.zl)E.unpluggedLocationInfo=r;a.client= E;E=a.request||{};y.RR&&(E.isPrefetch=!0);if(r=y.mdxEnvironment)E.mdxEnvironment=r;if(r=y.mdxControlMode)E.mdxControlMode=JYN[r];a.request=E;E=a.user||{};if(r=y.Vv)E.credentialTransferTokens=[{token:r,scope:"VIDEO"}];if(r=y.T7)E.delegatePurchases={oauthToken:r},E.kidsParent={oauthToken:r};var F;r=(F=t.getWebPlayerContextConfig())==null?void 0:F.userContentRating;t.pJ().V.o7(o4d)&&r&&(E.serializedUserContentRating=r);a.user=E;if(t=y.contextParams)a.activePlayers=[{playerContextParams:t}];if(y=y.clientScreenNonce)a.clientScreenNonce= y;return a}; g.zQ=function(y){var t=g.Gz(),a=t.client||{};if(y.forcedExperiments){var r=y.forcedExperiments.split(","),E=[];r=g.p(r);for(var h=r.next();!h.done;h=r.next())E.push(Number(h.value));a.experimentIds=E}if(E=y.homeGroupInfo)a.homeGroupInfo=JSON.parse(E);if(E=y.getPlayerType())a.playerType=E;if(E=y.V.ctheme)a.theme=E;if(E=y.livingRoomAppMode)a.tvAppInfo=Object.assign({},a.tvAppInfo,{livingRoomAppMode:E});E=y.deviceYear;y.B("html5_propagate_device_year")&&E&&(a.tvAppInfo=Object.assign({},a.tvAppInfo,{deviceYear:E})); if(E=y.livingRoomPoTokenId)a.tvAppInfo=Object.assign({},a.tvAppInfo,{livingRoomPoTokenId:E});t.client=a;E=t.user||{};y.enableSafetyMode&&(E=Object.assign({},E,{enableSafetyMode:!0}));var F;((F=a.tvAppInfo)==null?0:F.usePageidAsHeader)||!y.pageId||(E=Object.assign({},E,{onBehalfOfUser:y.pageId}));t.user=E;return t}; YBH=function(y,t,a){var r=y.videoId,E=g.Of(y),h=y.G(),F={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(du()),referer:document.location.toString(),signatureTimestamp:20411},x=g.qe();y.isAutonav&&(F.autonav=!0);x.o7(141)&&(F.autonavState=x.o7(140)?"STATE_OFF":"STATE_ON");F.autoCaptionsDefaultOn=x.o7(66);Wxb(y)&&(F.autoplay=!0);h.Z&&y.cycToken&&(F.cycToken=y.cycToken);h.enablePrivacyFilter&&(F.enablePrivacyFilter=!0);y.isFling&&(F.fling=!0);var U=y.forceAdsUrl;if(U){x={};var C=[];U=U.split(","); U=g.p(U);for(var z=U.next();!z.done;z=U.next()){z=z.value;var O=z.split("|");O.length!==3||z.includes("=")||(O[0]="breaktype="+O[0],O[1]="offset="+O[1],O[2]="url="+O[2]);z={adtype:"video_ad"};O=g.p(O);for(var M=O.next();!M.done;M=O.next()){var L=g.p(M.value.split("="));M=L.next().value;L=jVz(L);z[M]=L.join("=")}O=z.url;M=z.presetad;L=z.viralresponseurl;var w=Number(z.campaignid);if(z.adtype==="in_display_ad")O&&(x.url=O),M&&(x.presetAd=M),L&&(x.viralAdResponseUrl=L),w&&(x.viralCampaignId=String(w)); else if(z.adtype==="video_ad"){var d={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(z.offset)||0)}};if(z=Hqb[z.breaktype])d.breakType=z;O&&(d.url=O);M&&(d.presetAd=M);L&&(d.viralAdResponseUrl=L);w&&(d.viralCampaignId=String(w));C.push(d)}}F.forceAdParameters={videoAds:C,inDisplayAd:x}}y.isInlinePlaybackNoAd&&(F.isInlinePlaybackNoAd=!0);y.isLivingRoomDeeplink&&(F.isLivingRoomDeeplink=!0);x=y.f3;if(x!=null){x={startWalltime:String(x)};if(C=y.wu)x.manifestDuration=String(C||14400);F.liveContext= x}if(y.mutedAutoplay){F.mutedAutoplay=!0;x=h.getWebPlayerContextConfig();var k,e;(x==null?0:(k=x.embedsHostFlags)==null?0:k.allowMutedAutoplayDurationMode)&&(x==null?0:(e=x.embedsHostFlags)==null?0:e.allowMutedAutoplayDurationMode.includes(bqy[y.mutedAutoplayDurationMode]))&&(F.mutedAutoplayDurationMode=bqy[y.mutedAutoplayDurationMode])}if(y.ZA?0:y.nJ)F.splay=!0;k=y.vnd;k===5&&(F.vnd=k);k={};if(e=y.isMdxPlayback)k.triggeredByMdx=e;if(e=y.aG)k.skippableAdsSupported=e.split(",").includes("ska");if(C= y.Rs){e=y.Z8;x=[];C=g.p(d4b(C));for(U=C.next();!U.done;U=C.next()){U=U.value;z=U.platform;U={applicationState:U.xf?"INACTIVE":"ACTIVE",clientFormFactor:BtH[z]||"UNKNOWN_FORM_FACTOR",clientName:kv7[U.Zt]||"UNKNOWN_INTERFACE",clientVersion:U.deviceVersion||"",platform:cYH[z]||"UNKNOWN_PLATFORM"};z={};if(e){O=void 0;try{O=JSON.parse(e)}catch(l){g.ls(l)}O&&(z={params:[{key:"ms",value:O.ms}]},O.advertising_id&&(z.advertisingId=O.advertising_id),O.limit_ad_tracking!==void 0&&O.limit_ad_tracking!==null&& (z.limitAdTracking=O.limit_ad_tracking),U.osName=O.os_name,U.userAgent=O.user_agent,U.windowHeightPoints=O.window_height_points,U.windowWidthPoints=O.window_width_points)}x.push({adSignalsInfo:z,remoteClient:U})}k.remoteContexts=x}e=y.sourceContainerPlaylistId;x=y.serializedMdxMetadata;if(e||x)C={},e&&(C.mdxPlaybackContainerInfo={sourceContainerPlaylistId:e}),x&&(C.serializedMdxMetadata=x),k.mdxPlaybackSourceContext=C;F.mdxContext=k;k=t.width;k>0&&(F.playerWidthPixels=Math.round(k));if(t=t.height)F.playerHeightPixels= Math.round(t);a!==0&&(F.vis=a);if(a=h.widgetReferrer)F.widgetReferrer=a.substring(0,128);g.bc(h)&&F&&(F.ancestorOrigins=h.ancestorOrigins);y.defaultActiveSourceVideoId&&(F.compositeVideoContext={defaultActiveSourceVideoId:y.defaultActiveSourceVideoId});if(h=h.getWebPlayerContextConfig())F.encryptedHostFlags=h.encryptedHostFlags;r={videoId:r,context:E,playbackContext:{contentPlaybackContext:F}};if(y.G0){var v;r.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(v=y.G0)==null?void 0:v.reloadPlaybackParams}}y.contentCheckOk&& (r.contentCheckOk=!0);if(v=y.clientPlaybackNonce)r.cpn=v;if(v=y.playerParams)r.params=v;if(v=y.playlistId)r.playlistId=v;y.racyCheckOk&&(r.racyCheckOk=!0);v=y.G();E=v.embedConfig;y.KH&&v.B("embeds_enable_per_video_embed_config")?r.serializedThirdPartyEmbedConfig=y.KH:E&&(r.serializedThirdPartyEmbedConfig=E);r.captionParams={};E=g.qe().o7(65);y.deviceCaptionsOn!=null?r.captionParams.deviceCaptionsOn=y.deviceCaptionsOn:g.xp(v)&&(r.captionParams.deviceCaptionsOn=E!=null?!E:!1);y.OZ&&(r.captionParams.deviceCaptionsLangPref= y.OZ);y.jX.length?r.captionParams.viewerSelectedCaptionLangs=y.jX:g.xp(v)&&(E=g.vh(),E==null?0:E.length)&&(r.captionParams.viewerSelectedCaptionLangs=E);E=y.fetchType==="onesie"&&y.B("html5_onesie_attach_po_token");F=y.fetchType!=="onesie"&&y.B("html5_non_onesie_attach_po_token");if(E||F)E=y.G(),E.GR&&(r.serviceIntegrityDimensions={},r.serviceIntegrityDimensions.poToken=E.GR);v.B("fetch_att_independently")&&(r.attestationRequest={omitBotguardData:!0});r.playbackContext||(r.playbackContext={});r.playbackContext.devicePlaybackCapabilities= qB1(y);r.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&y.H4("noVp9",{});return r}; qB1=function(y){var t=!(y==null?0:y.hX())&&(y==null?void 0:y.US())&&FL(),a;if(!(a=y==null)){a=g.XB(y);y=y.G().L;var r=Pe("243");a=!(r&&Da(a,r,y,!0)===!0)}return{supportsVp9Encoding:!(a||t),supportXhr:hP}}; g42=function(y,t){var a,r,E;return g.m(function(h){if(h.V==1)return a={context:g.zQ(y.G()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:y.videoId,cpn:y.clientPlaybackNonce}}]},r=g.ta(DpN),g.u(h,g.oW(t,a,r),2);E=h.K;return h.return(E)})}; iq7=function(y,t,a){var r=g.Gw(t.experiments,"bg_vm_reinit_threshold");(!XQ||(0,g.Wx)()-XQ>r)&&g42(y,a).then(function(E){E&&(E=E.botguardData)&&g.fy(E,t)},function(E){y.Qv()||(E=h0(E),y.H4("attf",E.details))})}; Lf=function(y,t){g.H.call(this);this.app=y;this.state=t}; wO=function(y,t,a){y.state.V.hasOwnProperty(t)||M$(y,t,a);y.state.W[t]=function(){return a.apply(y,g.w2.apply(0,arguments))}; y.state.J.add(t)}; R9=function(y,t,a){y.state.V.hasOwnProperty(t)||M$(y,t,a);y.app.G().Z&&(y.state.Z[t]=function(){return a.apply(y,g.w2.apply(0,arguments))},y.state.J.add(t))}; M$=function(y,t,a){y.state.V[t]=function(){return a.apply(y,g.w2.apply(0,arguments))}}; g.Pq=function(y,t,a){return y.state.V[t].apply(y.state.V,g.i7(a))}; N$=function(){g.S4.call(this);this.L=new Map}; dO=function(){g.H.apply(this,arguments);this.element=null;this.J=new Set;this.W={};this.Z={};this.V={};this.hF=new Set;this.Y=new N$;this.K=new N$;this.D=new N$;this.L=new N$}; Kxy=function(y,t,a){typeof y==="string"&&(y={mediaContentUrl:y,startSeconds:t,suggestedQuality:a});a:{if((t=y.mediaContentUrl)&&(t=/\/([ve]|embed)\/([^#?]+)/.exec(t))&&t[2]){t=t[2];break a}t=null}y.videoId=t;return Xz(y)}; Xz=function(y,t,a){if(typeof y==="string")return{videoId:y,startSeconds:t,suggestedQuality:a};t={};a=g.p(ImH);for(var r=a.next();!r.done;r=a.next())r=r.value,y[r]&&(t[r]=y[r]);if(y=y.embedConfig||y.embed_config)if(typeof y==="string")t.embed_config=y;else if(g.l3(y))try{var E=JSON.stringify(y);t.embed_config=E}catch(h){console.error("Invalid embedConfig JSON",h)}return t}; Tt1=function(y,t,a,r){if(g.l3(y)&&!Array.isArray(y)){t="playlist list listType index startSeconds suggestedQuality".split(" ");a={};for(r=0;r32&&r.push("hfr");t.isHdr()&&r.push("hdr");t.primaries==="bt2020"&&r.push("wcg");a.video_quality_features=r}}if(y=y.getPlaylistId())a.list=y;return a}; S9=function(){k6.apply(this,arguments)}; Q$=function(y,t){var a={};if(y.app.G().Vv){y=g.p(t_b);for(var r=y.next();!r.done;r=y.next())r=r.value,t.hasOwnProperty(r)&&(a[r]=t[r]);if(t=a.qoe_cat)y="",typeof t==="string"&&t.length>0&&(y=t.split(",").filter(function(E){return aa7.includes(E)}).join(",")),a.qoe_cat=y; rdx(a)}else for(y=g.p(Efn),r=y.next();!r.done;r=y.next())r=r.value,t.hasOwnProperty(r)&&(a[r]=t[r]);return a}; rdx=function(y){var t=y.raw_player_response;if(!t){var a=y.player_response;a&&(t=JSON.parse(a))}delete y.player_response;delete y.raw_player_response;if(t){y.raw_player_response={streamingData:t.streamingData,playerConfig:t.playerConfig};var r;if((r=t.playbackTracking)==null?0:r.qoeUrl)y.raw_player_response=Object.assign({},y.raw_player_response,{playbackTracking:{qoeUrl:t.playbackTracking.qoeUrl}});t.videoDetails&&(t.videoDetails.videoId||t.videoDetails.lengthSeconds)&&(a={},t.videoDetails.videoId&& (a.videoId=t.videoDetails.videoId),t.videoDetails.lengthSeconds&&(a.lengthSeconds=t.videoDetails.lengthSeconds),y.raw_player_response=Object.assign({},y.raw_player_response,{videoDetails:a}))}}; FEF=function(y){var t=t===void 0?5:t;return y?hEd[y]||t:t}; g.pf=function(){S9.apply(this,arguments)}; Ady=function(y){M$(y,"getInternalApiInterface",y.getInternalApiInterface);M$(y,"addEventListener",y.Lg);M$(y,"removeEventListener",y.pzf);M$(y,"cueVideoByPlayerVars",y.PU);M$(y,"loadVideoByPlayerVars",y.s70);M$(y,"preloadVideoByPlayerVars",y.Uhv);M$(y,"getAdState",y.getAdState);M$(y,"sendAbandonmentPing",y.sendAbandonmentPing);M$(y,"setLoopRange",y.setLoopRange);M$(y,"getLoopRange",y.getLoopRange);M$(y,"setAutonavState",y.setAutonavState);M$(y,"seekTo",y.oXf);M$(y,"seekBy",y.Ifr);M$(y,"seekToLiveHead", y.seekToLiveHead);M$(y,"requestSeekToWallTimeSeconds",y.requestSeekToWallTimeSeconds);M$(y,"seekToStreamTime",y.seekToStreamTime);M$(y,"prefetchKeyPlay",y.prefetchKeyPlay);M$(y,"startSeekCsiAction",y.startSeekCsiAction);M$(y,"getStreamTimeOffset",y.getStreamTimeOffset);M$(y,"getVideoData",y.l_);M$(y,"setInlinePreview",y.setInlinePreview);M$(y,"getAppState",y.getAppState);M$(y,"updateLastActiveTime",y.updateLastActiveTime);M$(y,"setBlackout",y.setBlackout);M$(y,"setUserEngagement",y.setUserEngagement); M$(y,"updateSubtitlesUserSettings",y.updateSubtitlesUserSettings);M$(y,"getPresentingPlayerType",y.kI);M$(y,"canPlayType",y.canPlayType);M$(y,"updatePlaylist",y.updatePlaylist);M$(y,"updateVideoData",y.updateVideoData);M$(y,"updateEnvironmentData",y.updateEnvironmentData);M$(y,"sendVideoStatsEngageEvent",y.Pqf);M$(y,"productsInVideoVisibilityUpdated",y.productsInVideoVisibilityUpdated);M$(y,"setSafetyMode",y.setSafetyMode);M$(y,"isAtLiveHead",function(t){return y.isAtLiveHead(void 0,t)}); M$(y,"getVideoAspectRatio",y.getVideoAspectRatio);M$(y,"getPreferredQuality",y.getPreferredQuality);M$(y,"getPlaybackQualityLabel",y.getPlaybackQualityLabel);M$(y,"setPlaybackQualityRange",y.FSG);M$(y,"onAdUxClicked",y.onAdUxClicked);M$(y,"getFeedbackProductData",y.getFeedbackProductData);M$(y,"getStoryboardFrame",y.getStoryboardFrame);M$(y,"getStoryboardFrameIndex",y.getStoryboardFrameIndex);M$(y,"getStoryboardLevel",y.getStoryboardLevel);M$(y,"getNumberOfStoryboardLevels",y.getNumberOfStoryboardLevels); M$(y,"getCaptionWindowContainerId",y.getCaptionWindowContainerId);M$(y,"getAvailableQualityLabels",y.getAvailableQualityLabels);M$(y,"addCueRange",y.addCueRange);M$(y,"addUtcCueRange",y.addUtcCueRange);M$(y,"showAirplayPicker",y.showAirplayPicker);M$(y,"dispatchReduxAction",y.dispatchReduxAction);M$(y,"getPlayerResponse",y.Mf);M$(y,"getWatchNextResponse",y.Wx);M$(y,"getHeartbeatResponse",y.Us);M$(y,"getCurrentTime",y.D6);M$(y,"getDuration",y.zS);M$(y,"getPlayerState",y.getPlayerState);M$(y,"getPlayerStateObject", y.kO);M$(y,"getVideoLoadedFraction",y.getVideoLoadedFraction);M$(y,"getProgressState",y.getProgressState);M$(y,"getVolume",y.getVolume);M$(y,"setVolume",y.OF);M$(y,"isMuted",y.isMuted);M$(y,"mute",y.ow);M$(y,"unMute",y.QG);M$(y,"loadModule",y.loadModule);M$(y,"unloadModule",y.unloadModule);M$(y,"getOption",y.aO);M$(y,"getOptions",y.getOptions);M$(y,"setOption",y.setOption);M$(y,"loadVideoById",y.AD);M$(y,"loadVideoByUrl",y.HF);M$(y,"playVideo",y.g8);M$(y,"loadPlaylist",y.loadPlaylist);M$(y,"nextVideo", y.nextVideo);M$(y,"previousVideo",y.previousVideo);M$(y,"playVideoAt",y.playVideoAt);M$(y,"getDebugText",y.getDebugText);M$(y,"getWebPlayerContextConfig",y.getWebPlayerContextConfig);M$(y,"notifyShortsAdSwipeEvent",y.notifyShortsAdSwipeEvent);M$(y,"getVideoContentRect",y.getVideoContentRect);M$(y,"setSqueezeback",y.setSqueezeback);M$(y,"toggleSubtitlesOn",y.toggleSubtitlesOn);M$(y,"isSubtitlesOn",y.isSubtitlesOn);M$(y,"getAudioTrack",y.zd);M$(y,"setAudioTrack",y.iAm);M$(y,"getAvailableAudioTracks", y.i_);M$(y,"reportPlaybackIssue",y.reportPlaybackIssue);M$(y,"setAutonav",y.setAutonav);M$(y,"isNotServable",y.isNotServable);M$(y,"channelSubscribed",y.channelSubscribed);M$(y,"channelUnsubscribed",y.channelUnsubscribed);M$(y,"togglePictureInPicture",y.togglePictureInPicture);M$(y,"supportsGaplessAudio",y.supportsGaplessAudio);M$(y,"supportsGaplessShorts",y.supportsGaplessShorts);M$(y,"enqueueVideoByPlayerVars",function(t){return void y.enqueueVideoByPlayerVars(t)}); M$(y,"clearQueue",y.clearQueue);M$(y,"getMaxPlaybackQuality",y.getMaxPlaybackQuality);M$(y,"getUserPlaybackQualityPreference",y.getUserPlaybackQualityPreference);M$(y,"getSubtitlesUserSettings",y.getSubtitlesUserSettings);M$(y,"resetSubtitlesUserSettings",y.resetSubtitlesUserSettings);M$(y,"setMinimized",y.setMinimized);M$(y,"setOverlayVisibility",y.setOverlayVisibility);M$(y,"confirmYpcRental",y.confirmYpcRental);M$(y,"queueNextVideo",y.queueNextVideo);M$(y,"handleExternalCall",y.handleExternalCall); M$(y,"logApiCall",y.logApiCall);M$(y,"isExternalMethodAvailable",y.isExternalMethodAvailable);M$(y,"setScreenLayer",y.setScreenLayer);M$(y,"getCurrentPlaylistSequence",y.getCurrentPlaylistSequence);M$(y,"getPlaylistSequenceForTime",y.getPlaylistSequenceForTime);M$(y,"shouldSendVisibilityState",y.shouldSendVisibilityState);M$(y,"syncVolume",y.syncVolume);M$(y,"highlightSettingsMenuItem",y.highlightSettingsMenuItem);M$(y,"openSettingsMenuItem",y.openSettingsMenuItem);M$(y,"getEmbeddedPlayerResponse", y.getEmbeddedPlayerResponse);M$(y,"getVisibilityState",y.getVisibilityState);M$(y,"isMutedByMutedAutoplay",y.isMutedByMutedAutoplay);M$(y,"isMutedByEmbedsMutedAutoplay",y.isMutedByEmbedsMutedAutoplay);M$(y,"setGlobalCrop",y.setGlobalCrop);M$(y,"setInternalSize",y.setInternalSize);M$(y,"setFauxFullscreen",y.setFauxFullscreen);M$(y,"setAppFullscreen",y.setAppFullscreen)}; u6=function(y,t,a){y=g.l6(y.q7(),t);return a?(a.addOnDisposeCallback(y),null):y}; g.V$=function(y,t,a){return y.app.G().oo?t:g.ts("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:t,SHORTCUT:a})}; xyV=function(y){y.q7().element.setAttribute("aria-live","polite")}; g.nf=function(y,t){g.pf.call(this,y,t);Ady(this);R9(this,"addEventListener",this.y_);R9(this,"removeEventListener",this.WM4);R9(this,"cueVideoByPlayerVars",this.YA);R9(this,"loadVideoByPlayerVars",this.KL4);R9(this,"preloadVideoByPlayerVars",this.LMm);R9(this,"loadVideoById",this.AD);R9(this,"loadVideoByUrl",this.HF);R9(this,"playVideo",this.g8);R9(this,"loadPlaylist",this.loadPlaylist);R9(this,"nextVideo",this.nextVideo);R9(this,"previousVideo",this.previousVideo);R9(this,"playVideoAt",this.playVideoAt); R9(this,"getVideoData",this.wE);R9(this,"seekBy",this.cV0);R9(this,"seekTo",this.KSE);R9(this,"showControls",this.showControls);R9(this,"hideControls",this.hideControls);R9(this,"cancelPlayback",this.cancelPlayback);R9(this,"getProgressState",this.getProgressState);R9(this,"isInline",this.isInline);R9(this,"setInline",this.setInline);R9(this,"setLoopVideo",this.setLoopVideo);R9(this,"getLoopVideo",this.getLoopVideo);R9(this,"getVideoContentRect",this.getVideoContentRect);R9(this,"getVideoStats",this.pU); R9(this,"getCurrentTime",this.mj);R9(this,"getDuration",this.zS);R9(this,"getPlayerState",this.tv);R9(this,"getVideoLoadedFraction",this.u_);R9(this,"mute",this.ow);R9(this,"unMute",this.QG);R9(this,"setVolume",this.OF);R9(this,"loadModule",this.loadModule);R9(this,"unloadModule",this.unloadModule);R9(this,"getOption",this.aO);R9(this,"getOptions",this.getOptions);R9(this,"setOption",this.setOption);R9(this,"addCueRange",this.addCueRange);R9(this,"getDebugText",this.getDebugText);R9(this,"getStoryboardFormat", this.getStoryboardFormat);R9(this,"toggleFullscreen",this.toggleFullscreen);R9(this,"isFullscreen",this.isFullscreen);R9(this,"getPlayerSize",this.getPlayerSize);R9(this,"toggleSubtitles",this.toggleSubtitles);R9(this,"setCenterCrop",this.setCenterCrop);R9(this,"setFauxFullscreen",this.setFauxFullscreen);R9(this,"setSizeStyle",this.setSizeStyle);R9(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);R9(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);Zqd(this)}; g.mc=function(y){y=y.gN();var t=y.VY.get("endscreen");return t&&t.LD()?!0:y.Yw()}; g.JP=function(y,t){y.getPresentingPlayerType()===3?y.publish("mdxautoplaycancel"):y.W4("onAutonavCancelled",t)}; g.Hq=function(y){var t=o9(y.gN());return y.app.QQ&&!y.isFullscreen()||y.getPresentingPlayerType()===3&&t&&t.hasNext()&&t.hasPrevious()||!!y.getPlaylist()}; g.b6=function(y,t){g.Pq(y,"addEmbedsConversionTrackingParams",[t])}; g.cq=function(y){return(y=g.Bq(y.gN()))?y.nQ():{}}; g.st7=function(y){y=(y=y.getVideoData())&&y.K;return!!y&&!(!y.audio||!y.video)&&y.mimeType!=="application/x-mpegURL"}; g.q$=function(y,t,a){y=y.ZE().element;var r=zJ(y.children,function(E){E=Number(E.getAttribute("data-layer"));return a-E||1}); r<0&&(r=-(r+1));lv(y,t,r);t.setAttribute("data-layer",String(a))}; g.Y6=function(y){var t=y.G();if(!t.RR)return!1;var a=y.getVideoData();if(!a||y.getPresentingPlayerType()===3)return!1;var r=(!a.isLiveDefaultBroadcast||t.B("allow_poltergust_autoplay"))&&!$6(a);r=a.isLivePlayback&&(!t.B("allow_live_autoplay")||!r);var E=a.isLivePlayback&&t.B("allow_live_autoplay_on_mweb");y=y.getPlaylist();y=!!y&&y.hasNext();var h=a.o5&&a.o5.playerOverlays||null;h=!!(h&&h.playerOverlayRenderer&&h.playerOverlayRenderer.autoplay);h=a.Zh&&h;return!a.ypcPreview&&(!r||E)&&!g.TE(a.bv,"ypc")&& !y&&(!g.bc(t)||h)}; $yd=function(y,t){y=y.app.Hl().J.CQ();y=g.p(y);for(var a=y.next();!a.done;a=y.next()){a=a.value;var r=a.getAvailableAudioTracks(),E=null;r=g.p(r);for(var h=r.next();!h.done;h=r.next())if(h=h.value,h.getLanguageInfo().getId()===t){E=h;break}E&&a.qy(E,!0)}}; DM=function(){BG.apply(this,arguments);this.requestHeaders={}}; i6=function(){gO||(gO=new DM);return gO}; Kf=function(y,t){t?y.requestHeaders.Authorization="Bearer "+t:delete y.requestHeaders.Authorization}; UyN=function(y){this.experiments=y;this.V=2048;this.D=0;this.AF=(this.W=this.B("html5_streaming_resilience"))?.5:.25;var t=t===void 0?0:t;this.Y=g.Gw(this.experiments,"html5_media_time_weight_prop")||t;this.hF=(this.L=this.experiments.Nr("html5_consider_end_stall"))&&hP;this.K=this.experiments.Nr("html5_measure_max_progress_handling");this.Z=this.B("html5_treat_requests_pre_elbow_as_metadata");this.J=this.B("html5_media_time_weight")||!!this.Y;this.B("html5_sabr_live_audio_early_return_fix")&&hP&& (this.V=65536)}; g.I9=function(y){g.H.call(this);var t=this;this.Om=y;this.Wb={DG:function(){return t.Om}}}; g.TQ=function(y,t,a,r){r=r===void 0?!1:r;g.Ui.call(this,t);var E=this;this.C=y;this.AF=r;this.L=new g.Ci(this);this.fade=new g.r0(this,a,!0,void 0,void 0,function(){E.Or()}); g.c(this,this.L);g.c(this,this.fade)}; GQ=function(y){var t=y.C.getRootNode();return y.C.B("web_watch_pip")||y.C.B("web_shorts_pip")?Om(t):document}; CFF=function(y){y.sourceElement&&(document.activeElement&&g.Vu(y.element,document.activeElement)&&y.sourceElement.focus(),y.sourceElement.setAttribute("aria-expanded","false"),y.sourceElement=void 0);g.V1(y.L);y.J=void 0}; ZM=function(y,t,a){y.Dn()?y.LJ():y.rV(t,a)}; yB=function(y,t,a,r){r=new g.q({U:"div",mX:["ytp-linked-account-popup-button"],er:r,T:{role:"button",tabindex:"0"}});t=new g.q({U:"div",X:"ytp-linked-account-popup",T:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{U:"div",X:"ytp-linked-account-popup-title",er:t},{U:"div",X:"ytp-linked-account-popup-description",er:a},{U:"div",X:"ytp-linked-account-popup-buttons",S:[r]}]});g.TQ.call(this,y,{U:"div",X:"ytp-linked-account-popup-container",S:[t]},100);var E=this;this.dialog=t;g.c(this,this.dialog); r.listen("click",function(){E.LJ()}); g.c(this,r);g.q$(this.C,this.element,4);this.hide()}; g.aX=function(y,t,a,r){g.Ui.call(this,y);this.priority=t;a&&g.tX(this,a);r&&this.setContent(r)}; g.rL=function(y,t,a,r){y=y===void 0?{}:y;t=t===void 0?[]:t;a=a===void 0?!1:a;r=r===void 0?!1:r;t.push("ytp-menuitem");var E=y;"role"in E||(E.role="menuitem");a||(E=y,"tabindex"in E||(E.tabindex="0"));y={U:a?"a":"div",mX:t,T:y,S:[{U:"div",X:"ytp-menuitem-icon",er:"{{icon}}"},{U:"div",X:"ytp-menuitem-label",er:"{{label}}"},{U:"div",X:"ytp-menuitem-content",er:"{{content}}"}]};r&&y.S.push({U:"div",X:"ytp-menuitem-secondary-icon",er:"{{secondaryIcon}}"});return y}; g.tX=function(y,t){y.updateValue("label",t)}; E2=function(y){g.aX.call(this,g.rL({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var t=this;this.C=y;this.K=this.V=!1;this.OS=y.QR();y.createServerVe(this.element,this,!0);this.N(this.C,"settingsMenuVisibilityChanged",function(a){t.Au(a)}); this.N(this.C,"videodatachange",this.D);this.listen("click",this.onClick);this.D()}; hX=function(y){return y?g.Oi(y):""}; FK=function(y){g.H.call(this);this.api=y}; AX=function(y){FK.call(this,y);var t=this;M$(y,"setAccountLinkState",function(a){t.setAccountLinkState(a)}); M$(y,"updateAccountLinkingConfig",function(a){t.updateAccountLinkingConfig(a)}); y.addEventListener("videodatachange",function(a,r){t.onVideoDataChange(r)}); y.addEventListener("settingsMenuInitialized",function(){t.menuItem=new E2(t.api);g.c(t,t.menuItem)})}; x2=function(y){FK.call(this,y);var t=this;this.V=null;this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"applicationvideodatachange",function(){t.oK()})}; zEN=function(y){this.api=y;this.V={}}; s2=function(y,t,a,r){t in y.V||(a=new g.BK(a,r,{id:t,priority:2,namespace:"appad"}),y.api.Xm([a],1),y.V[t]=a)}; $2=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(this);g.c(this,this.events);this.V=new zEN(this.api);this.events.N(this.api,"legacyadtrackingpingreset",function(){t.V.V={}}); this.events.N(this.api,"legacyadtrackingpingchange",function(a){var r=t.V;s2(r,"part2viewed",1,0x8000000000000);s2(r,"engagedview",Math.max(1,a.MB*1E3),0x8000000000000);if(!a.isLivePlayback){var E=a.lengthSeconds*1E3;Rh(a)&&r.api.B("html5_shorts_gapless_ads_duration_fix")&&(E=r.api.getProgressState().seekableEnd*1E3-a.JS);s2(r,"videoplaytime25",E*.25,E);s2(r,"videoplaytime50",E*.5,E);s2(r,"videoplaytime75",E*.75,E);s2(r,"videoplaytime100",E,0x8000000000000);s2(r,"conversionview",E,0x8000000000000); s2(r,"videoplaybackstart",1,E);s2(r,"videoplayback2s",2E3,E);s2(r,"videoplayback10s",1E4,E)}}); this.events.N(this.api,g.q4("appad"),this.K);this.events.N(this.api,g.Ya("appad"),this.K)}; why=function(y,t,a){if(!(a in t))return!1;t=t[a];Array.isArray(t)||(t=[t]);t=g.p(t);for(a=t.next();!a.done;a=t.next()){a=a.value;var r={CPN:y.api.getVideoData().clientPlaybackNonce};a=g.l4(a,r);r=void 0;r=r===void 0?!1:r;(r=mX(JH(a,OyF),a,r,"Active View 3rd Party Integration URL"))||(r=void 0,r=r===void 0?!1:r,r=mX(JH(a,LEx),a,r,"Google/YouTube Brand Lift URL"));r||(r=void 0,r=r===void 0?!1:r,r=mX(JH(a,M_n),a,r,"Nielsen OCR URL"));g.JR(a,void 0,r)}return!0}; U2=function(y,t){RE1(y,t).then(function(a){g.JR(t,void 0,void 0,a)})}; Ca=function(y,t){t.forEach(function(a){U2(y,a)})}; RE1=function(y,t){return g.OY(y.api.G())&&OO(t)&&zc(t)?g.wY(y.api.G(),g.y$(y.api.getVideoData())).then(function(a){var r;a&&(r={Authorization:"Bearer "+a});return r},void 0):Jm()}; PFb=function(y){FK.call(this,y);this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"videoready",function(t){if(y.getPresentingPlayerType()===1){var a,r,E={playerDebugData:{pmlSignal:!!((a=t.getPlayerResponse())==null?0:(r=a.adPlacements)==null?0:r.some(function(h){var F;return h==null?void 0:(F=h.adPlacementRenderer)==null?void 0:F.renderer})), contentCpn:t.clientPlaybackNonce}};g.Mc("adsClientStateChange",E)}})}; zq=function(y,t){g.aX.call(this,g.rL({role:"menuitemcheckbox","aria-checked":"false"}),t,y,{U:"div",X:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; O2=function(y,t){y.checked=t;y.element.setAttribute("aria-checked",String(y.checked))}; NPu=function(y){var t=!y.G().SQ&&y.getPresentingPlayerType()!==3;return y.isFullscreen()||t}; g.La=function(y,t,a,r){var E=y.currentTarget;if((a===void 0||!a)&&g.Wm(y))return y.preventDefault(),!0;t.pauseVideo();y=E.getAttribute("href");g.qT(y,r,!0);return!1}; g.MU=function(y,t,a){if(hh(t.G())&&t.getPresentingPlayerType()!==2){if(g.Wm(a))return t.isFullscreen()&&!t.G().externalFullscreen&&t.toggleFullscreen(),a.preventDefault(),!0}else{var r=g.Wm(a);r&&t.pauseVideo();g.qT(y,void 0,!0);r&&(g.YZ(y),a.preventDefault())}return!1}; dyH=function(y){y=wL.includes("es-419")?y.B("delhi_modern_web_player_icons")?Nq():{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,T:{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"}}]}:y.B("delhi_modern_web_player_icons")?CmH():{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,T:{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"}}]};y.X="ytp-subtitles-button-icon"; return y}; Xhd=function(y){return wL.includes("es-419")?y?Nq():{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:y?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},S:[{U:"path",T:{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"}}]}:{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; RX=function(){return{U:"div",X:"ytp-spinner-container",S:[{U:"div",X:"ytp-spinner-rotator",S:[{U:"div",X:"ytp-spinner-left",S:[{U:"div",X:"ytp-spinner-circle"}]},{U:"div",X:"ytp-spinner-right",S:[{U:"div",X:"ytp-spinner-circle"}]}]}]}}; PP=function(y){if(document.createRange){var t=document.createRange();t&&(t.selectNodeContents(y),y=window.getSelection())&&(y.removeAllRanges(),y.addRange(t))}}; dL=function(y,t){var a=y.B("web_fix_annotations")?"Superposiciones anotadas":"Anotaciones";zq.call(this,a,g.NU.qw);this.C=y;this.OS=t;this.V=!1;y.B("web_settings_menu_icons")&&(t=y.B("delhi_modern_web_player_icons")?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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(t));this.N(y,"videodatachange",this.kG);this.N(y,"onApiChange",this.kG);this.subscribe("select",this.onSelect,this);this.kG()}; k91=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);y.addEventListener("settingsMenuInitialized",function(){var a=new dL(t.api,t.api.QR());g.c(t,a)})}; k2=function(y){var t=this;this.V={};this.Y={};this.Wb={rTv:function(){return t.V}}; this.videoData=y;var a,r=(a=y.Y)==null?void 0:a.K;r&&r.length>0?this.K=r:(y=y.getAvailableAudioTracks(),this.K=y.length>0?fa1(y):[]);y=g.p(XK);for(a=y.next();!a.done;a=y.next())a=a.value,this.V[a]=WEH[a](this.K);this.AV()}; jtH=function(y,t){var a=t.getAudioTrack();return a.id!=="und"?g.op(y,function(r){var E;return((E=r.qK)==null?void 0:E.name)===a.getLanguageInfo().name}):y}; SvF=function(y,t){return t.getUserAudio51Preference()?g.op(y,fa):y}; fa1=function(y){return y.map(function(t){return new et(t.id,"application/x-mpegURL",{qK:t.qK})})}; QtN=function(y){return g.JU("yt-player-drc-pref")?g.op(y,WP):y}; vf7=function(y){return MGd()===2?g.op(y,j1):y}; ph7=function(y){return wK2()===1?g.op(y,S1):y}; S1=function(y){var t;return((t=y.audio)==null?void 0:t.audioQuality)==="AUDIO_QUALITY_HIGH"&&!HU(y)}; WP=function(y){var t;return((t=y.audio)==null?void 0:t.V)===!0}; fa=function(y){return HU(y)}; eEH=function(y){return y.qK!==void 0}; j1=function(y){var t;return((t=y.audio)==null?void 0:t.K)===!0}; QB=function(y,t){if(y.length<2)return!1;var a=t(y[0]);return y.some(function(r){return t(r)!==a})}; lad=function(y,t){y=new Set(y.map(t));y.delete(void 0);return y.size>=2}; vP=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);var a=this.api.B("html5_enable_audio_quality_setting_feature");M$(this.api,"getUserAudioQualitySetting",function(){return a?t.getUserAudioQualitySetting():2}); M$(this.api,"setUserAudioQualitySetting",function(r){a&&t.setUserAudioQualitySetting(r)}); M$(this.api,"hasHqaAudioTrack",function(){return a?t.hasHqaAudioTrack():!1}); M$(this.api,"getAudioQualitySettingState",function(){return a?t.api.Hr(4):1}); this.K2=wK2();this.updateEnvironmentData()}; uQb=function(y){FK.call(this,y);var t=this;M$(this.api,"getAudioTrackState",function(){return t.api.Hr(0)})}; pa=function(y){g.q.call(this,{U:"button",mX:["ytp-button","ytp-autonav-toggle"],T:{title:y.B("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"},S:[{U:"div",X:"ytp-autonav-toggle-button-container",S:[{U:"div",X:"ytp-autonav-toggle-button",T:{"aria-checked":"true"}}]}]});this.C=y;this.K=[];this.V=!1;this.isChecked=!0;y.createClientVe(this.element,this, 113681);this.N(y,"presentingplayerstatechange",this.XX);this.listen("click",this.onClick);this.K.push(this.N(this.C,"videodatachange",this.XX));this.K.push(this.N(this.C,"videoplayerreset",this.XX));this.K.push(this.N(this.C,"onPlaylistUpdate",this.XX));this.K.push(this.N(this.C,"autonavchange",this.n6));u6(y,this.element,this);this.XX()}; V_u=function(y){y.isChecked=y.isChecked;y.K1("ytp-autonav-toggle-button").setAttribute("aria-checked",String(y.isChecked));var t=y.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";y.C.G().B("player_tooltip_data_title_killswitch")?y.update({title:t,label:t}):y.update({"data-tooltip-title":t,label:t});y.C.jJ()}; nf7=function(y){return y.C.G().B("web_player_autonav_use_server_provided_state")&&CX(y.nM())}; my7=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"standardControlsInitialized",function(){var a=new pa(y);g.c(t,a);y.eH(a,"RIGHT_CONTROLS_LEFT")})}; lh=function(y){var t=y.B("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";zq.call(this,t,g.NU.WN);var a=this;this.C=y;this.V=!1;this.K=new g.Te(function(){g.sz(a.element,"ytp-menuitem-highlighted")},0); this.OS=y.QR();y=y.B("delhi_modern_web_player_icons")?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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(y);this.subscribe("select",this.Y,this);this.listen(e1,this.D);g.c(this,this.K)}; uh=function(y){FK.call(this,y);var t=this;this.V=!1;y.addEventListener("settingsMenuInitialized",function(){JdN(t)}); y.addEventListener("highlightSettingsMenu",function(a){JdN(t);var r=t.menuItem;a==="menu_item_cinematic_lighting"&&(g.Al(r.element,"ytp-menuitem-highlighted"),g.Al(r.element,"ytp-menuitem-highlight-transition-enabled"),r.K.start())}); M$(y,"updateCinematicSettings",function(a){t.updateCinematicSettings(a)})}; JdN=function(y){y.menuItem||(y.menuItem=new lh(y.api),g.c(y,y.menuItem),y.menuItem.kG(y.V))}; ofd=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"applicationvideodatachange",function(a,r){r=r.clipConfig;a==="dataloaded"&&r&&r.startTimeMs!=null&&r.endTimeMs!=null&&t.api.setLoopRange({startTimeMs:Math.floor(Number(r.startTimeMs)),endTimeMs:Math.floor(Number(r.endTimeMs)),postId:r.postId,type:"clips"})})}; VB=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);M$(y,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));M$(y,"setCreatorEndscreenHideButton",this.V.bind(this));this.B("web_fix_annotations")&&this.events.N(y,"annotationvisibility",function(a){t.setCreatorEndscreenVisibility(!a);t.hideButton&&g.MV(t.hideButton,a)})}; byF=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"videodatachange",function(){var a=t.api.getRootNode(),r=t.api.G();g.Al(a,"ytp-delhi-modern");r.B("delhi_modern_web_player_icons")&&g.Al(a,"ytp-delhi-modern-icons");r.B("delhi_modern_web_player_horizontal_volume_controls")&&g.Al(a,"ytp-delhi-horizontal-volume-controls");r.B("delhi_modern_web_player_compact_controls")&&g.Al(a,"ytp-delhi-modern-compact-controls");switch(k3(r.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.Al(a, "ytp-delhi-modern-with-luminosity");break;case "difference":g.Al(a,"ytp-delhi-modern-with-difference");break;case "exclusion":g.Al(a,"ytp-delhi-modern-with-exclusion")}a=t.api.isHdr()||t.api.B("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";t.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",a);Hyy(t)}); this.events.N(y,"resize",function(){Hyy(t)})}; Hyy=function(y){var t=y.api.B("delhi_modern_web_player_compact_controls"),a=g.Gw(y.api.G().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");t=t||a>0&&y.api.getPlayerSize().width<=a;y=y.api.getRootNode();y.classList.toggle("ytp-delhi-modern-compact-controls",t);a=t?"8px":"12px";var r=t?"56px":"72px",E=t?"56px":"64px",h=t?"48px":"56px",F=t?"12px":"20px",x=t?"72px":"96px";y.style.setProperty("--yt-delhi-pill-height",t?"40px":"48px");y.style.setProperty("--yt-delhi-pill-top-height", a);y.style.setProperty("--yt-delhi-bottom-controls-height",r);y.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",E);y.style.setProperty("--yt-delhi-big-mode-pill-height",h);y.style.setProperty("--yt-delhi-big-mode-pill-top-height",F);y.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",x)}; na=function(y,t,a,r,E){var h=y.B("html5_enable_new_audio_settings_menu");zq.call(this,"Volumen estable",h?BPd.C3:g.NU.C3);this.C=y;this.D=t;this.K=a;this.hasDrcAudioTrack=r;this.getDrcState=E;this.Y=this.enableNewAudioSettingsMenu=this.V=!1;g.Al(this.element,"ytp-drc-menu-item");this.OS=(this.enableNewAudioSettingsMenu=h)?y.QR().s2:y.QR();y.B("html5_enable_voice_boost")?(this.Y=!0,this.N(y,"onFilterAudioFeatures",this.MD)):y.addEventListener("videodatachange",this.MD.bind(this));y.B("mta_drc_mutual_exclusion_removal")&& this.N(y,"onPlaybackAudioChange",this.MD);y.createClientVe(this.element,this,273317);this.listen("click",this.J);t=this.K()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(y=y.B("delhi_modern_web_player_icons")?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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(y));this.subscribe("select",this.L,this);this.enableNewAudioSettingsMenu||this.Y?this.MD():(this.setEnabled(this.hasDrcAudioTrack()),O2(this,t),this.OS.NK(this))}; m1=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);y.B("html5_show_drc_toggle")&&y.addEventListener("settingsMenuInitialized",function(){t.menuItem||(t.menuItem=new na(t.api,t.setDrcUserPreference.bind(t),t.getDrcUserPreference.bind(t),t.uw.bind(t),t.getDrcState.bind(t)),g.c(t,t.menuItem))}); M$(this.api,"setDrcUserPreference",function(r){t.setDrcUserPreference(r)}); M$(this.api,"getDrcUserPreference",function(){return t.getDrcUserPreference()}); M$(this.api,"hasDrcAudioTrack",function(){return t.uw()}); M$(this.api,"getDrcState",function(){return t.getDrcState()}); var a;this.V=(a=g.JU("yt-player-drc-pref"))!=null?a:1;this.updateEnvironmentData()}; JX=function(y){FK.call(this,y);var t=this;this.V={};this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"videodatachange",function(){t.onVideoDataChange()}); this.events.N(y,g.q4("embargo"),function(a){t.api.Wt(!0);var r,E=(r=t.V[a.id])!=null?r:[];r=g.p(E);for(E=r.next();!E.done;E=r.next()){var h=E.value;t.api.hideControls();t.api.w7("auth",2,"This video isn't available in your current playback area",al({embargoed:1,id:a.id,idx:a.K,start:a.start}));E=void 0;(h=(E=h.embargo)==null?void 0:E.onTrigger)&&t.api.W4("innertubeCommand",h)}})}; cd7=function(y,t){var a;return(a=t.onEnter)==null?void 0:a.some(y.K)}; qvV=function(y,t){t=g.p(t);for(var a=t.next();!a.done;a=t.next()){a=a.value;var r=void 0,E=Number((r=a.playbackPosition)==null?void 0:r.utcTimeMillis)/1E3,h=void 0;r=E+Number((h=a.duration)==null?void 0:h.seconds);h="embargo_"+E;y.api.addUtcCueRange(h,E,r,"embargo",!1);a.onEnter&&(y.V[h]=a.onEnter.filter(y.K))}}; oX=function(y){FK.call(this,y);var t=this;this.V=[];this.events=new g.Ci(y);g.c(this,this.events);M$(y,"addEmbedsConversionTrackingParams",function(a){t.addEmbedsConversionTrackingParams(a)}); this.events.N(y,"veClickLogged",function(a){t.api.hasVe(a)&&(a=a.visualElement.getAsJspb(),a=g.iW(a,2),t.V.push(a))})}; Yv7=function(y){FK.call(this,y);M$(y,"isEmbedsShortsMode",function(){return y.isEmbedsShortsMode()}); M$(y,"getReelItemWatchResponse",function(){var t,a;return(a=(t=y.getVideoData(1))==null?void 0:t.getReelItemWatchResponse())!=null?a:null})}; Dy1=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"initialvideodatacreated",function(a){Ov(z9(),16623);t.V=g.XE();var r=y.G().pA&&!a.ZA;if(ZQ(a)&&r){Ov(z9(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(a.getWatchNextResponse()){var E,h=(E=a.getWatchNextResponse())==null?void 0:E.trackingParams;h&&My(h)}if(a.getPlayerResponse()){var F;(a=(F=a.getPlayerResponse())==null?void 0:F.trackingParams)&&My(a)}}else Ov(z9(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),a.getEmbeddedPlayerResponse()&&(F=(h=a.getEmbeddedPlayerResponse())==null?void 0:h.trackingParams)&&My(F)}); this.events.N(y,"loadvideo",function(){Ov(z9(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:t.V})}); this.events.N(y,"cuevideo",function(a){a===1&&Ov(z9(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:t.V})}); this.events.N(y,"largeplaybuttonclicked",function(a){Ov(z9(),27240,a.visualElement)}); this.events.N(y,"playlistnextbuttonclicked",function(a){Ov(z9(),27240,a.visualElement)}); this.events.N(y,"playlistprevbuttonclicked",function(a){Ov(z9(),27240,a.visualElement)}); this.events.N(y,"playlistautonextvideo",function(){Ov(z9(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; HP=function(y,t){g.H.call(this);var a=this;this.V=null;this.Y=t;t=[];for(var r=0;r<=100;r++)t.push(r/100);t={threshold:t,trackVisibility:!0,delay:1E3};(this.K=window.IntersectionObserver?new IntersectionObserver(function(E){E=E[E.length-1];var h=null;typeof E.isVisible==="undefined"?document.visibilityState==="visible"&&E.isIntersecting&&E.intersectionRatio>0?h=E.intersectionRatio:document.visibilityState==="hidden"?h=0:h=null:h=E.isVisible?E.intersectionRatio:0;h!=null&&(h=Math.max(h,0),h=Math.min(h, 1));a.V=h;typeof a.Y==="function"&&a.Y(a.V)},t):null)&&this.K.observe(y)}; iyH=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"applicationInitialized",function(){gfF(t)})}; gfF=function(y){var t=y.api.getRootNode(),a,r=y.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((a=t.parentElement)==null?void 0:a.parentElement)||t:t;y.V=new HP(r,function(E){E!=null&&(y.api.G().ll=E,y.api.G().ul="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.c(y,y.V);y.events.N(y.api,"videoStatsPingCreated",function(E){var h=y.V;h=h.V==null?null:Math.round(h.V*100)/100;E.inview=h!=null?h:void 0;h=y.api.getPlayerSize();if(h.height>0&&h.width>0){h=[Math.round(h.width),Math.round(h.height)];var F=g.Ah();F>1&&h.push(F);h=h.join(":")}else h=void 0;E.size=h})}; var A1z=function(y,t,a,r,E,h,F){return y2[A[3]](this,21,y,t,a,r,E,h,F)}; var bh=function(y){FK.call(this,y);var t=this;M$(this.api,"dismissFeaturedProductOverlay",function(){t.dismissFeaturedProductOverlay()})},KEb=function(y){var t; return((t=((y==null?void 0:y.messageRenderers)||[]).find(function(a){return!!a.timeCounterRenderer}))==null?void 0:t.timeCounterRenderer)||null},BP=function(y){g.q.call(this,{U:"div", mX:["ytp-player-content","ytp-iv-player-content"],S:[{U:"div",X:"ytp-free-preview-countdown-timer",S:[{U:"span",er:"{{label}}"},{U:"span",X:"ytp-free-preview-countdown-timer-separator",er:"\u2022"},{U:"span",er:"{{duration}}"}]}]});this.api=y;this.V=null;this.Y=this.K=0;this.N(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)},TPy=function(y,t){y.V||(y.K=t,y.Y=(0,g.Wx)(),y.V=new g.If(function(){Iau(y)},null),Iau(y))},Iau=function(y){var t=Math,a= t.round,r=Math.min((0,g.Wx)()-y.Y,y.K); t=a.call(t,(y.K-r)/1E3);y.updateValue("duration",hd({seconds:t}));t<=0&&y.V?y.stopTimer():y.V&&y.V.start()},G9n=function(y){FK.call(this,y); var t=this;this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"basechromeinitialized",function(){t.V=new BP(y);g.c(t,t.V);g.q$(y,t.V.element,4);t.V.hide()})},cP=function(y){g.q.call(this,{U:"button", mX:["ytp-fullerscreen-edu-button","ytp-button"],S:[{U:"div",mX:["ytp-fullerscreen-edu-text"],er:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{U:"div",mX:["ytp-fullerscreen-edu-chevron"],S:[cmN()]}],T:{"data-priority":"2"}});this.Mr=y;this.fade=new g.r0(this,250,void 0,100);this.K=this.V=!1;y.createClientVe(this.element,this,61214);g.c(this,this.fade);this.N(y,"fullscreentoggled",this.kG);this.N(y,"presentingplayerstatechange",this.kG);this.listen("click",this.onClick);this.kG()}, qU=function(y){FK.call(this,y); var t=this;this.events=new g.Ci(y);g.c(this,this.events);M$(this.api,"updateFullerscreenEduButtonSubtleModeState",function(r){t.updateFullerscreenEduButtonSubtleModeState(r)}); M$(this.api,"updateFullerscreenEduButtonVisibility",function(r){t.updateFullerscreenEduButtonVisibility(r)}); var a=y.G();y.B("external_fullscreen_with_edu")&&a.externalFullscreen&&hh(a)&&a.controlsType==="1"&&this.events.N(y,"standardControlsInitialized",function(){t.V=new cP(y);g.c(t,t.V);y.eH(t.V)})},Zyd=function(y){g.q.call(this,{U:"div", X:"ytp-gated-actions-overlay",S:[{U:"div",X:"ytp-gated-actions-overlay-background",S:[{U:"div",X:"ytp-gated-actions-overlay-background-overlay"}]},{U:"button",mX:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],T:{"aria-label":"Cerrar"},S:[g.Pz()]},{U:"div",X:"ytp-gated-actions-overlay-bar",S:[{U:"div",X:"ytp-gated-actions-overlay-text-container",S:[{U:"div",X:"ytp-gated-actions-overlay-title",er:"{{title}}"},{U:"div",X:"ytp-gated-actions-overlay-subtitle",er:"{{subtitle}}"}]},{U:"div", X:"ytp-gated-actions-overlay-button-container"}]}]});var t=this;this.api=y;this.background=this.K1("ytp-gated-actions-overlay-background");this.K=this.K1("ytp-gated-actions-overlay-button-container");this.V=[];this.N(this.K1("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){t.api.W4("onCloseMiniplayer")}); this.hide()},tTn=function(y,t){var a=0; a=0;for(var r={};aE&&(E=x.width,h="url("+x.url+ ")")}a.background.style.backgroundImage=h;tTn(a,r.actionButtons||[]);a.show()}else a.hide()}); g.q$(this.api,this.V.element,4)},Y2=function(y){FK.call(this,y); var t=this;R9(this.api,"getSphericalProperties",function(){return t.getSphericalProperties()}); R9(this.api,"setSphericalProperties",function(){t.setSphericalProperties.apply(t,g.i7(g.w2.apply(0,arguments)))}); wO(this.api,"getSphericalProperties",function(){return t.api.getPresentingPlayerType()===2?{}:t.getSphericalProperties()}); wO(this.api,"setSphericalProperties",function(){var a=g.w2.apply(0,arguments);t.api.getPresentingPlayerType()!==2&&t.setSphericalProperties.apply(t,g.i7(a))})},DZ=function(y){FK.call(this,y); M$(y,"createClientVe",this.createClientVe.bind(this));M$(y,"createServerVe",this.createServerVe.bind(this));M$(y,"destroyVe",this.destroyVe.bind(this));M$(y,"hasVe",this.hasVe.bind(this));M$(y,"logClick",this.logClick.bind(this));M$(y,"logVisibility",this.logVisibility.bind(this));M$(y,"setTrackingParams",this.setTrackingParams.bind(this))},gL=function(y,t,a,r){function E(F){var x=!(F.status!==204&&F.status!==200&&!F.response),U; F={succ:""+ +x,rc:F.status,lb:((U=F.response)==null?void 0:U.byteLength)||0,rt:((0,g.Wx)()-h).toFixed(),shost:g.Wv(y),trigger:t};r9d(F,y);a&&a(F);r&&!x&&r(new g.rg("pathprobe.net",F))} var h=(0,g.Wx)();g.pt(y,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:E,onTimeout:E})},r9d=function(y,t){var a; ((a=window.performance)==null?0:a.getEntriesByName)&&(t=performance.getEntriesByName(t))&&t.length&&(t=t[0],y.pedns=(t.domainLookupEnd-t.startTime).toFixed(),y.pecon=(t.connectEnd-t.domainLookupEnd).toFixed(),y.perqs=(t.requestStart-t.connectEnd).toFixed(),EvV&&(y.perqsa=t.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))},hZx=function(y){EvV=y},ih=function(y,t){this.xE=y; this.policy=t;this.playbackRate=1},FO7=function(y,t){var a=Math.min(2.5,Ka(y.xE)); y=IX(y);return t-a*y},Gq=function(y,t,a,r,E){E=E===void 0?!1:E; if(y.policy.Xg)return Math.ceil(y.policy.Xg*t);y.policy.OE&&(r=Math.abs(r));r/=y.playbackRate;var h=1/Tq(y.xE);a=Math.max(.9*(r-3),Ka(y.xE)+y.xE.K.V*h)/h*.8/(t+a);a=Math.min(a,r);y.policy.qH>0&&E&&(a=Math.max(a,y.policy.qH));return A9d(y,a,t)},A9d=function(y,t,a){return Math.ceil(Math.max(Math.max(y.policy.ll,y.policy.Hq*a),Math.min(Math.min(y.policy.r0,31*a),Math.ceil(t*a))))||y.policy.ll},IX=function(y){return Tq(y.xE,!y.policy.tQ,y.policy.u4)},ZZ=function(y){return IX(y)/y.playbackRate},yG=function(y, t,a){var r=y.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],E=y.policy.playbackStartPolicy.startMinReadaheadPolicy||[]; y=Infinity;t=g.p(t&&r.length>0?r:E);for(r=t.next();!r.done;r=t.next())r=r.value,E=r.minReadaheadMs||0,a<(r.minBandwidthBytesPerSec||0)||y>E&&(y=E);return y0&&(this.K=a.NW)},$N2=function(y,t,a,r,E){if(!r.info.Y){if(a.length===0)a.push(r); else{var h;(y=(h=a.pop())==null?void 0:g.Sh(h,r))?a.push(y):a.push(r)}return E}var F;(a=(F=a.pop())==null?void 0:g.Sh(F,r))||(a=r);if(a.info.V)return y.logger&&y.logger({incompleteSegment:a.info.iJ()}),E;r=y.v2(a);E=r.a5;r={clipId:r.clipId,formatId:r.formatId,startTimeMs:r.startTimeMs,durationMs:r.y0,oY:E,Z$:E};E=xN7(t,r.startTimeMs);if(h=a=E>=0?t[E]:null){h=r;var x=E;F=a.startTimeMs+a.durationMs;var U=h.startTimeMs+h.durationMs;if(h.startTimeMs-F>y.K)h=!1;else if(syx(y,a.formatId,h.formatId))a.durationMs= Math.max(F,U)-a.startTimeMs,a.Z$=Math.max(a.Z$,h.Z$),h=!0;else if(Math.abs(a.startTimeMs-h.startTimeMs)<=y.K)if(a.durationMs>h.durationMs+y.K){var C=a.formatId,z=a.oY;x=a.Z$;a.formatId=h.formatId;a.durationMs=h.durationMs;a.oY=h.oY;a.Z$=h.Z$;h.formatId=C;h.startTimeMs=U;h.durationMs=F-U;h.oY=z;h.Z$=x;h=!1}else a.formatId=h.formatId,h=!0;else F>h.startTimeMs&&(F>U&&(t.splice(x+1,0,{formatId:a.formatId,startTimeMs:U,durationMs:F-U,oY:h.Z$+1,Z$:a.Z$}),y.logger&&y.logger({splitOldStart:(C=a.startTimeMs)== null?void 0:C.toFixed(3),splitOldEnd:F==null?void 0:F.toFixed(3),splitNewStart:(z=h.startTimeMs)==null?void 0:z.toFixed(3),splitNewEnd:U==null?void 0:U.toFixed(3)})),a.durationMs=h.startTimeMs-a.startTimeMs,a.Z$=h.oY-1),h=!1}h?r=a:(E+=1,t.splice(E,0,r));C=0;for(z=E+1;z=U+a.K?a=!0:x+a.K=0?y:-y-2},UNb=function(y,t){if(y.wN){var a=y.wN.Ro(); if(a.length!==0){if(y.Y&&t){var r=y.Y,E=r.info.D;!TM(a,E)&&r.info.W>0&&(0,g.Wx)()-y.J<5E3&&(y.logger&&y.logger({dend:r.info.iJ()}),a=UTn(a,E,E+.01))}y.policy.Y8&&y.logger&&y.logger({cbri:""+y.V});r=[];for(var h=E=0;E=F){var z=Object.assign({},y.cO[h]),O=y.qr.Y.get(KR(y.cO[h].formatId)),M=Math.max(U,F);F=O.index.G5(M+y.K/1E3);U=O.index.getStartTime(F);var L=F+ +(Math.abs(U- M)>y.K/1E3);M=L+y.D;L=O.index.getStartTime(L)*1E3;h!==y.V||t?(z.oY=M,z.startTimeMs=L):(y.logger&&y.logger({pEvict:"1",og:z.startTimeMs,adj:U*1E3}),z.oY=F+y.D,z.startTimeMs=U*1E3);F=void 0;U=((F=y.Y)==null?void 0:F.info.duration)||11;h===y.V&&xy.K/1E3);F=U+y.D;O=O.index.R9(U)*1E3;z.Z$=F;z.durationMs=O-z.startTimeMs;z.oY<=z.Z$&&r.push(z)}C=0&&F2(y.audioTrack,y.targetTime)>=0&&h?((y.videoTrack.D||y.audioTrack.D)&&y.loader.H4("iterativeSeeking",{status:"done",count:y.seekCount}),y.videoTrack.D=!1,y.audioTrack.D=!1):r&&g.jv(function(){if(y.V||!y.policy.Az)sx(y);else{var F=t.startTime,x=t.duration;if(!y.policy.L){var U=y.videoTrack.L!==-1&&y.audioTrack.L!==-1,C=!y.videoTrack.Vv&&!y.audioTrack.Vv;(a?y.videoTrack.D:y.audioTrack.D)&&U&&C&&(y.targetTime>= F&&y.targetTime432E3&&c0N(y.qr);y.K&&(E=y.K,y.K=0);g.jv(function(){y.policy.L||$i(y,E,102)}); y.loader.H4("initManifestlessSync",{st:E,ost:E+y.loader.fJ(),a:y.audioTrack.L,v:y.videoTrack.L});y.Y&&(y.Y.resolve(E+.1),y.Y=null);y.policy.L&&$i(y,E,102)}}},Ox=function(){this.data=new Uint8Array(2048); this.pos=0;zV||(zV=fu("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; var sVF=function(y,t){return MH[A[3]](this,64,y,t)}; LW=function(y,t){y.add(t==null||isNaN(t)?0:t+1)}; wH=function(y,t){var a=this;this.w0=y;this.requestNumber=++fEd;this.V=this.now();this.Z=this.hF=NaN;this.W=this.V;this.Y=this.XB=this.L=0;this.J=this.V;this.T7=this.Vv=this.L1=this.nJ=this.ZA=this.DE=this.K=this.D=0;this.AF=this.isActive=!1;this.zl=this.n1=0;this.Wb={AIu:function(){return a.EG}}; this.xE=t.xE;this.snapshot=Mf(this.xE);this.policy=this.xE.K;this.CH=!!t.CH;this.AM=t.AM;this.YP=t.YP||0;this.dP=t.dP||0;t.cI&&(this.d0=new Ox);var r;this.EG=(r=t.EG)!=null?r:!1;this.CH||WO7(this.xE)}; jyN=function(y){y.L1=Math.max(y.L1,y.L-y.ZA);y.Vv=Math.max(y.Vv,y.W-y.nJ);y.DE=0}; RZ=function(y,t,a){S5u(y.xE,t);y.d0&&(y.d0.add(Math.ceil(t)-Math.ceil(y.W)),y.d0.add(Math.max(0,Math.ceil(a/1024)-Math.ceil(y.L/1024))));var r=t-y.W,E=a-y.L;y.XB=E;y.T7=Math.max(y.T7,E/(r+.01)*1E3);y.W=t;y.L=a;y.DE&&a>y.DE&&jyN(y)}; PR=function(y,t){y.url=t;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Nf=function(y,t){wH.call(this,y,t);this.Az=this.FB=!1;this.Ff=this.o5=Infinity;this.yv=NaN;this.I7=!1;this.R5=NaN;this.sR=this.C1=this.r0=0;this.Bo=t.Bo||1;this.I0=t.I0||this.Bo;this.PG=t.PG;this.a5=t.a5;this.IS=t.IS;Qyy(this);this.Eb(this.V);this.MK=(this.R5-this.V)/1E3}; vv1=function(y){var t=y.C1||y.r0;return t?y.snapshot.delay+Math.min(y.dP,(y.Z-y.hF)/1E3)+t:y.MK}; X2=function(y,t,a){if(!y.CH){t=Math.max(t,.01);var r=y.YP?Math.max(t,a/y.YP):t,E=y.xE.K.Y;E&&(r=t,y.YP&&(r=Math.max(t,a/y.YP*E)));dH(y.xE,t,a,r)}}; p37=function(y){return(y.J-y.V)/1E3}; Qyy=function(y){y.yv=y.V+y.snapshot.delay*1E3;y.I7=!1}; ki=function(y,t){if(y.PG&&y.a5!==void 0&&y.IS!==void 0){var a=Math,r=a.min,E=y.o5;var h=y.PG;var F=y.V;if(eZ7(h,y.a5))h=t;else{var x=0;h.Pt&&(x=.2);h=F+(h.dP+x)*1E3}y.o5=r.call(a,E,h);a=Math;r=a.min;E=y.Ff;h=y.PG;F=y.V;x=lEN(h,y.a5,y.IS);x!==2&&(t=x?t:F+h.dP*1E3,h.Pt&&(t+=h.dP*1E3));y.Ff=r.call(a,E,t);y.o5<=y.V?Qyy(y):(y.yv=y.o5,y.I7=!0)}}; u6d=function(y,t){if(t+1<=y.totalLength){var a=wj(y,t);a=a<128?1:a<192?2:a<224?3:a<240?4:5}else a=0;if(a<1||!(t+a<=y.totalLength))return[-1,t];if(a===1)y=wj(y,t++);else if(a===2)a=wj(y,t++),y=wj(y,t++),y=(a&63)+64*y;else if(a===3){a=wj(y,t++);var r=wj(y,t++);y=wj(y,t++);y=(a&31)+32*(r+256*y)}else if(a===4){a=wj(y,t++);r=wj(y,t++);var E=wj(y,t++);y=wj(y,t++);y=(a&15)+16*(r+256*(E+256*y))}else a=t+1,y.focus(a),Oh(y,a,4)?y=Ppz(y).getUint32(a-y.Y,!0):(r=wj(y,a+2)+256*wj(y,a+3),y=wj(y,a)+256*(wj(y,a+1)+ 256*r)),t+=5;return[y,t]}; fW=function(y){this.w0=y;this.V=new $k}; WR=function(y,t){this.info=y;this.callback=t;this.state=1;this.Ix=this.Xe=!1;this.Am=null}; VTV=function(y){return g.pQ(y.info.Sr,function(t){return t.type===3})}; jS=function(y,t,a,r){var E=this;r=r===void 0?{}:r;this.policy=t;this.w0=a;this.status=0;this.V=new $k;this.K=0;this.Qv=this.D=this.Y=!1;this.xhr=new XMLHttpRequest;this.xhr.open(r.method||"GET",y);if(r.headers)for(y=r.headers,t=g.p(Object.keys(y)),a=t.next();!a.done;a=t.next())a=a.value,this.xhr.setRequestHeader(a,y[a]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return E.H9()}; this.xhr.onload=function(){return E.onDone()}; this.xhr.onerror=function(){return E.onError()}; this.xhr.fetch(function(h){E.V.append(h);E.K+=h.length;h=(0,g.Wx)();E.w0.oX(h,E.K)},function(){},r.body||null)}; nvu=function(y,t){this.K=(new TextEncoder).encode(y);this.V=(new TextEncoder).encode(t)}; L27=function(y,t){var a;return g.m(function(r){if(!t)return r.return(t);a=new g.AL(y.K);return r.return(a.encrypt(t,y.V))})}; NGn=function(y,t){var a;return g.m(function(r){if(r.V==1){if(!t)return r.return(t);a=new g.AL(y.K);return g.u(r,a.decrypt(t,y.V),2)}return r.return(r.K)})}; mNx=function(y,t){var a=this;this.V=y;this.w0=t;this.loaded=this.status=0;this.error="";y=ZE(this.V.get("range")||"");if(!y)throw Error("bad range");this.range=y;this.K=new $k;this.run().then(function(){a.w0.fb()},function(r){a.error=""+r||"unknown_err"; a.w0.fb()})}; ov7=function(y,t,a,r){var E=this;r=r===void 0?{}:r;this.policy=t;this.w0=a;this.J=r;this.status=0;this.response=void 0;this.K=0;this.aborted=this.L=!1;this.errorMessage="";this.Z=function(h){if(h)if(E.status=h.status,h.ok&&h.body&&E.status!==204)E.status=E.status||242,E.Y=h.body.getReader(),E.Qv()?E.Y.cancel().catch(function(){}):(E.responseHeaders=h.headers,E.w0.Tg(),J9N(E)); else E.onDone();else E.onError(Error("null_response"))}; this.W=function(h){var F=(0,g.Wx)();E.Qv()||(h.done?(E.Y=void 0,E.onDone()):(h=h.value,E.K+=h.length,E.V.append(h),J9N(E),E.w0.oX(F,E.K)))}; this.onError=function(h){E.errorMessage=String(h);E.L=!0;E.onDone()}; this.V=new $k;this.D=window.AbortController?new AbortController:void 0;this.start(y)}; J9N=function(y){y.Y.read().then(y.W,y.onError).then(void 0,ep)}; HRx=function(y,t,a){var r=this;a=a===void 0?{}:a;this.w0=t;this.K=this.status=0;this.Qv=this.V=!1;this.xhr=new XMLHttpRequest;this.xhr.open(a.method||"GET",y);if(a.headers){y=a.headers;t=g.p(Object.keys(y));for(var E=t.next();!E.done;E=t.next())E=E.value,this.xhr.setRequestHeader(E,y[E])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(h){r.H9(h)}; y=Ad(function(h){r.onDone(h)}); this.xhr.addEventListener("load",y,!1);this.xhr.addEventListener("error",y,!1);a.body?this.xhr.send(a.body):this.xhr.send();this.xhr.addEventListener("progress",Ad(function(h){r.onProgress(h)}),!1)}; SS=function(y,t,a,r,E){if(Q2(24,y.uW))return new mNx(y,a);y=y.xJ();return r?FXu()?new jS(y,t,a,E):new ov7(y,t,a,E):new HRx(y,a,E)}; QG=function(y,t){g.H.call(this);var a=this;this.policy=y;this.Sr=t;this.K=0;this.V=null;this.yY=[];this.Y=null;this.Wb={i8:function(){return a.Sr}}; this.Sr.length===1||g.pQ(this.Sr,function(r){return!!r.range})}; vR=function(y,t,a){y.V&&(Uh(y.V,t),t=y.V,y.V=null);for(var r=0,E=0,h=g.p(y.Sr),F=h.next();!F.done;F=h.next())if(F=F.value,F.range&&r+F.K<=y.K)r+=F.K;else{if(rZ(F)&&!a&&y.K+t.totalLength-E=400?(y.lastError="net.badstatus",!0):(E===void 0?0:E)?(y.lastError="ump.spsrejectfailure",!0):a||r!==void 0&&r?!1:(y.lastError=t===204?"net.nocontent":"net.connect",!0)}; nW=function(y,t){if(y.policy.JS)return!1;var a=t.getResponseHeader("content-type"),r=t.sK();y=!r||r<=y.policy.XF;return(!t.g9()||!a||a.indexOf("text/plain")!==-1)&&y}; Y5F=function(y,t){var a="";t=t.hZ();t.totalLength<=y.policy.XF&&(y=Lu(t),y=Pb(y),a=On(y)?y:"");return a}; eS=function(y){return c3(y.D,WF(38,y.Ds.uW))}; DNz=function(y){var t=y.timing.Z3();t.shost=WF(38,y.Ds.uW);y.policy.ND&&y.policy.x8&&(t.csrc=1);return t}; gvn=function(y,t){return(y==null?void 0:y.maxWidth)>(t==null?void 0:t.maxWidth)||(y==null?void 0:y.maxHeight)>(t==null?void 0:t.maxHeight)}; iRF=function(y,t){for(var a=g.p(t.keys()),r=a.next();!r.done;r=a.next())if(r=t.get(r.value),r.length!==0){g.O9(r,function(x,U){return U.maxFramerate-x.maxFramerate}); for(var E=[r[0]],h=0,F=1;Fy.V||a.push(r)}return a}; mo=function(y,t,a){var r=Tzx[y]||[];a.B("html5_shorts_onesie_mismatched_fix")&&(r=GCu[y]||[]);t.push.apply(t,g.i7(r));a.B("html5_early_media_for_drm")&&t.push.apply(t,g.i7(ZR7[y]||[]))}; h0F=function(y,t){var a=g.XB(y),r=y.G(),E=r.L;r=r.B("html5_shorts_onesie_mismatched_fix");var h=y.yR();if(r){if(!E.V){if(h&&JS)return JS;if(oZ)return oZ}}else if(oZ&&!E.V)return oZ;var F=[],x=[],U={},C=HR.concat(ybn);r&&(C=HR.concat(th7));y.B("html5_early_media_for_drm")&&(C=C.concat(ar7),y.B("allow_vp9_1080p_mq_enc")&&C.push(rbH));var z=[].concat(g.i7(EKV));y.B("html5_iamf_audio_onesie_fmt")&&z.push(["773"]);C=g.p(C);for(var O=C.next();!O.done;O=C.next()){var M=!1;O=g.p(O.value);for(var L=O.next();!L.done;L= O.next()){L=L.value;var w=Pe(L,h&&r);if(w&&w.video&&!(ol(w)&&!a.d0&&w.video.qualityOrdinal>a.vt)){var d=g.Gw(y.G().experiments,"html5_drm_byterate_soft_cap");d>0&&sa1(w)&&w.Hb>d||(M?(F.push(L),mo(L,F,y)):(w=Da(a,w,E),w===!0?(M=!0,F.push(L),mo(L,F,y)):U[L]=w))}}}z=g.p(z);for(C=z.next();!C.done;C=z.next())for(C=g.p(C.value),M=C.next();!M.done;M=C.next())if(M=M.value,(O=rN7(M))&&O.audio&&(y.B("html5_onesie_51_audio")||!HU(O)))if(O=Da(a,O,E),O===!0){x.push(M);mo(M,x,y);break}else U[M]=O;if(!y.B("html5_enable_audio_quality_setting"))for(y= g.p(["141","774"]),z=y.next();!z.done;z=y.next())z=z.value,x.includes(z)&&(g.tB(x,z),U[z]="blkhqa");a.V&&t("orfmts",U);if(r)return E.V&&(E.V=!1,JS=oZ=void 0),h?JS={video:F,audio:x}:oZ={video:F,audio:x};oZ={video:F,audio:x};E.V=!1;return oZ}; g.xKz=function(y,t,a){var r=a.L,E=[],h=[],F=a.B("html5_shorts_onesie_mismatched_fix");y=y.yR();var x=HR.concat(ybn);F&&(x=HR.concat(th7));a.B("html5_early_media_for_drm")&&(x=x.concat(ar7),a.B("allow_vp9_1080p_mq_enc")&&x.push(rbH));var U=[].concat(g.i7(EKV));a.B("html5_iamf_audio_onesie_fmt")&&U.push(["773"]);x=g.p(x);for(var C=x.next();!C.done;C=x.next()){C=g.p(C.value);for(var z=C.next();!z.done;z=C.next()){z=z.value;var O=Pe(z,y&&F);if(O&&O.video){var M=g.Gw(a.experiments,"html5_drm_byterate_soft_cap"); if(!(M>0&&sa1(O)&&O.Hb>M)&&Da(t,O,r)===!0){E.push({videoCodec:Fk2[pi[z]],maxWidth:O.video.width,maxHeight:O.video.height,maxFramerate:O.video.fps});break}}}}F=g.p(U);for(y=F.next();!y.done;y=F.next())for(y=g.p(y.value),U=y.next();!U.done;U=y.next())if(U=U.value,(x=rN7(U))&&x.audio&&(a.B("html5_onesie_51_audio")||!HU(x))&&Da(t,x,r)===!0){h.push({audioCodec:Abd[pi[U]],numChannels:x.audio.numChannels});break}return{videoFormatCapabilities:E,audioFormatCapabilities:h}}; UK7=function(y){var t,a={},r=y.Om,E=y.P4,h=y.xE,F=r.getVideoData(),x=Wh(0),U=r.getVisibilityState();E.B("html5_enable_audio_quality_setting")&&(a.K2=E.K2);x&&(a.j5r=x,a.lastManualDirection=$4H(),x=Xgb()||0,x>0&&(x=(E.B("html5_use_date_now_for_local_storage")?Date.now():(0,g.Wx)())-x,E.B("html5_use_date_now_for_local_storage")?x>0&&(a.timeSinceLastManualFormatSelectionMs=x):a.timeSinceLastManualFormatSelectionMs=x));x=E.B("html5_use_streamer_bandwidth_for_low_latency_live")&&F.isLowLatencyLiveStream; if(h.AF&&!x){var C;x=E.B("html5_disable_bandwidth_cofactors_for_sabr_live")?!((C=y.Zs)==null||!C.tQ):!1;a.Bf=Tq(h,!x)}x=g.jt.medium;var z=Math.floor(x*16/9);(C=F.yR())||(F.V&&F.Y&&F.Y.videoInfos.length!==0?(C=F.Y.videoInfos[0],C=!!C.video&&C.video.width0?{authorizedFormats:y.authorizedFormats}:{authorizedFormats:t};y.sabrLicenseConstraint&&(a.ED.sabrLicenseConstraint=y.sabrLicenseConstraint);if(E.B("html5_onesie_media_capabilities")||lP(F))a.GL=3;E.B("html5_onesie_audio_only_playback")&& PQ(F)&&(a.GL=1);var v;((v=y.Zs)==null?0:v.EM)&&y.ufu&&(a.GL=a.GL===void 0?7:a.GL|4);v=F.R5?F.R5:g.XB(F);E.B("html5_onesie_media_capabilities")&&(a.mediaCapabilities=g.xKz(F,v,E));var l;if((l=y.Zs)==null?0:br(l)){l=[];t=[];M=new Map;L=g.p(F.Wl.V.values());for(w=L.next();!w.done;w=L.next())d=w.value,d.Ee?t.push({audioCodec:Abd[d.G7],numChannels:d.numChannels,spatialCapabilityBitmask:s1x[d.G7]}):(k=Fk2[d.G7],w={videoCodec:k,maxWidth:d.maxWidth||0,maxHeight:d.maxHeight||0,maxFramerate:d.maxFramerate|| 0,is10BitSupported:d.EK||!1,maxBitrateBps:d.maxBitrateBps||0},d=k+"_"+d.EK,k=M.get(d)||[],k.push(w),M.set(d,k));l=iRF(l,M);M={};F.B("html5_ssff_denylist_opus_low")&&(M={itagDenylist:[249,350]});a.mediaCapabilities={videoFormatCapabilities:l,audioFormatCapabilities:t,hdrModeBitmask:3,perPlaybackAttributes:M}}var V;if((V=y.Zs)==null?0:V.V){a.l8=v.l8;var B;a.vt=(B=y.Zs)==null?void 0:B.vt}E.Ri&&(a.aV=E.Ri);a.FU=y.E2;a.Lr=y.Lr;a.y7=y.y7;a.Qp=y.Qp;y.JY&&(a.A9X=(0,g.Wx)()-y.JY);y.Np&&E.B("html5_report_prefetch_requests")&& (a.Np=y.Np);hP||(a.tz1=!0);V=Ka(h)*1E3;V>0&&(a.hf=V);var b;((b=y.Zs)==null?0:b.EZ)&&y.Uu&&y.Uu0?Z:h.interruptions[0]||0;var aV;if((aV=y.Zs)==null?0:aV.FB)a.Kf=y.Kf;E.R5&&(a.audioTrackId=E.R5);a9(F)&&!a.audioTrackId&& (E.B("html5_fill_default_mosaic_audio_track_id")||(y=Q5x(F),a.audioTrackId=y),F==null||F.H4("misstrkchg",{"default":a.audioTrackId}));if(y=tw7())a.detailedNetworkType=$Ku[y]||$Ku.other;E.B("html5_enable_voice_boost")&&!F.yR()&&(a.lP5=E.Iv);return a}; BR=function(y,t,a,r,E,h,F){var x={};t&&(x.ox=t);if(!y)return x;x.playbackCookie=a==null?void 0:a.playbackCookie;E&&(x.dX=E);x.VK=[];x.PE=[];if(F==null?0:F.size)for(t=g.p(F.values()),a=t.next();!a.done;a=t.next())x.PE.push(a.value);if(y.sabrContextUpdates.size>0)for(t=g.p(y.sabrContextUpdates.values()),a=t.next();!a.done;a=t.next())CiN(x,a.value,r);V3(y)&&h&&CiN(x,h,r);r=y.G().V;x.clientInfo={clientName:z0H[r.c.toUpperCase()]||0};r.cbrand&&(x.clientInfo.deviceMake=r.cbrand);r.cmodel&&(x.clientInfo.deviceModel= r.cmodel);r.cver&&(x.clientInfo.clientVersion=r.cver);r.cos&&(x.clientInfo.osName=r.cos);r.cosver&&(x.clientInfo.osVersion=r.cosver);r=y.G();r.B("html5_sabr_enable_server_xtag_selection")&&r.MP&&(x.clientInfo.hl=r.MP);y.cK&&(x.cK=y.cK);return x}; CiN=function(y,t,a){var r=t.type||0;(a==null?0:a.has(r))?y.PE.push(t):y.VK.push(r)}; Ex=function(y,t,a,r,E,h){var F=h===void 0?{}:h;var x=F.zn===void 0?[]:F.zn;var U=F.yH===void 0?!1:F.yH;var C=F.e9===void 0?0:F.e9;var z=F.poToken===void 0?"":F.poToken;var O=F.pW===void 0?void 0:F.pW;var M=F.UC===void 0?"":F.UC;var L=F.dO===void 0?0:F.dO;var w=F.iW===void 0?new Uint8Array(0):F.iW;var d=F.sF===void 0?!1:F.sF;h=F.Hv===void 0?0:F.Hv;F=F.ox===void 0?void 0:F.ox;WR.call(this,t,E);var k=this;this.policy=y;this.logger=new g.kK("dash/request");this.dS=this.L_=0;this.Ms=!1;this.H0=this.Rq= null;this.V5=!1;this.iW=this.dO=null;this.Fa=this.Rp=!1;this.vV=null;this.Hv=this.kx=0;this.ev=!1;this.Wb={UR:function(v){k.UR(v)}, qxf:function(){return k.Am}, sE4:function(v){k.Am=v}, olm:function(v){k.L_=v}, cME:function(v){k.dV.lastError=v}, vk:function(){return k.xhr}}; this.timing=new Nf(this,a);this.yH=U;this.dO=L;this.iW=w;this.Ds=g.zW(this.info,this.policy,r);this.Ds.set("rn",this.qU().toString());this.Ds.set("rbuf",(C*1E3).toFixed().toString());this.yH&&this.Ds.set("smb","1");this.policy.H5&&z&&this.Ds.set("pot",z);M&&this.Ds.set("bbs",M);this.policy.useUmp&&!Q2(64,this.Ds.uW)&&(this.kP=new fW(this),this.Ds.set("ump","1"),this.Ds.set("srfvp","1"));if(y=this.policy.HK?this.policy.XO&&!isNaN(this.info.IS)&&this.info.IS>this.policy.V8?!1:!0:!1)t=null,this.policy.Uz&& this.policy.s0?t=[1]:d&&(t=[]),t!=null&&(this.policy.sU&&t.push(2),this.Ds.set("defsel",t.join(",")));this.dV=new pW(this,this.policy,this.Ds,this.info.Pb,this.timing,this.logger,r,O);this.zn=x||null;this.Ix=Owx(this);bRn(this.dV);r=void 0;if(this.policy.jS4||this.kP||this.policy.yv)r={method:"POST"},x=(0,g.cR)([120,0]),O={},this.policy.rA&&F&&(F=BR(void 0,F),O.aL=F),this.policy.yJ&&this.iW&&(O.videoPlaybackUstreamerConfig=this.iW),this.policy.yv&&(F=this.info.D)&&Object.assign(O,F),Object.keys(O).length> 0?r.body=g.qz(O,g.Xc):r.body=x;if(this.dO&&this.iW){this.Ds.set("iwts","1");r={method:"POST"};F={Qp:this.dO*1E3};var e;x=(e=this.info.D)==null?void 0:e.Zn;e=g.qz({LH:F,Zn:x||void 0,videoPlaybackUstreamerConfig:this.iW},g.Xc);r.body=e}try{this.xhr=SS(this.Ds,this.policy.Z,this.timing,y,r),this.dV.K.start(),h&&(this.JI=new g.Te(this.iC,h,this),this.JI.start(h+(this.timing.xE.Z.wP()||0)*1E3)),this.policy.OZ&&PR(this.timing,this.xJ()),g.jv(function(){})}catch(v){LkV(this,v,!0)}}; Owx=function(y){if(!(Cw(y.info)&&y.info.EG()&&y.policy.P1&&y.zn)||y.info.Pb.Y>=2||Wh()>0||!OFV())return!1;var t=y.Ds.get("aitags");if(!t)return!1;t=qm(t).split(",");for(var a=[],r=g.p(y.zn),E=r.next();!E.done;E=r.next())E=E.value,g.TE(t,E)&&a.push(E);if(!a.length)return!1;y.Ds.set("altitags",g.cW(a.join(",")));return!0}; LkV=function(y,t,a){a=a===void 0?!1:a;g.pK(t);y.dV.lastError="player.exception";y.errorMessage=t.name+"_"+t.message;a?g.jv(function(){ur(y.dV)}):ur(y.dV)}; MhV=function(y,t){y.timing.AF=!0;y.xhr.g9()&&y.timing.nB();if(y.policy.MP){var a;(a=y.JI)==null||a.stop()}vR(y.Am,t,!1)}; wyb=function(y){y.kx&&(y.xhr.status=y.kx,y.L_=y.kx)}; qf=function(y,t){wH.call(this,y,t);this.Ff=!0;this.o5=!1;this.C1=this.yv=0;this.r0=NaN}; R0H=function(y,t,a){var r=y.YP?Math.max(t,a/y.YP):t,E=y.xE.K.Y;E&&(r=t,y.YP&&(r=Math.max(t,a/y.YP*E)));dH(y.xE,t,a,r)}; Yi=function(y,t){this.w0=t;this.K={};this.logger=new g.kK(y)}; Dn=function(y){Yi.call(this,"sabr",y);this.w0=y;this.V=[]}; Piz=function(y,t,a){switch(t){case 35:y.o_(a);break;case 44:y.SG(a);break;case 43:y.SZ(a);break;case 53:y.RK(a);break;case 56:y.G_();break;case 57:y.u7(a);break;case 42:y.LS(a);break;case 45:y.Kc(a);break;case 59:y.ZW(a);break;case 51:y.OC(a);break;case 49:y.AR(a);break;case 50:y.NO(a);break;case 47:y.Eg(a);break;case 58:y.WL(a);break;case 61:y.w0.S_.HQ((0,g.Wx)());break;case 66:y.IX(a);break;case 46:y.T_(a);break;case 67:y.onSnackbarMessage(a);break;case 71:nu(a,rf7)}}; gH=function(y){g.H.call(this);this.D=y;this.logger=new g.kK("onesie");this.qP=new Map;this.K=this.V=!1;this.Zs=this.qr=null;this.Y=!1}; NZ1=function(y,t,a){y.qP.get(t).onProgress=a}; IZ=function(y,t){y.qP.has(t)&&(ir?y.qP.get(t).Bt.clear():y.qP.get(t).yY=new $k,KW(y,t),y.K=!0)}; dKN=function(y){for(var t=g.p(y.qP),a=t.next();!a.done;a=t.next()){var r=g.p(a.value);a=r.next().value;r=r.next().value;r.c_||IZ(y,a)}}; Xyy=function(y,t){t=y.qP.get(t);if(!t)return 0;y=0;if(t.Sr.length>0){t=g.p(t.Sr);for(var a=t.next();!a.done;a=t.next()){var r=void 0;y+=((r=a.value.range)==null?void 0:r.length)||0}return y}if(t.MO.length>0)for(a=g.p(t.MO),r=a.next();!r.done;r=a.next())y+=r.value.Qq||0;return y+t.DC}; TV=function(y,t){if(ir){var a=0;y=y.qP.get(t);if(y==null||!y.Bt)return 0;y=g.p(y.Bt.values());for(t=y.next();!t.done;t=y.next())a+=t.value.data.totalLength;return a}return((a=y.qP.get(t))==null?void 0:a.yY.totalLength)||0}; GV=function(y,t){y=y.qP.get(t);if(ir){if(y==null||!y.c_)return!1;t=y.Bt.size>0;return y.vT.length>0||t}return!(y==null||!y.c_)&&!(y==null||!y.yY.totalLength)}; kWz=function(y,t){var a=y.qP.get(t),r=Xyy(y,t),E=!r&&!!a.bytesReceived;if(ir){var h;if((h=y.qr)==null?0:h.US){y=g.p(a.Bt.values());for(t=y.next();!t.done;t=y.next())if(!t.value.Ou)return!1;return E}}else if(h=y.S9(t),E&&y.V&&h!==void 0)return h;return(E||a.bytesReceived===r)&&a.Po+TV(y,t)===a.bytesReceived}; frV=function(y,t,a,r){a.Sr.push.apply(a.Sr,g.i7(r));if(ir){a.vR.has(t)||a.vR.set(t,[]);var E;(E=a.vR.get(t)).push.apply(E,g.i7(r))}else if(a.Am)for(y=g.p(r),t=y.next();!t.done;t=y.next())a.Am.Sr.push(t.value);else{a.Am=new QG(y.Zs,[].concat(g.i7(a.Sr)));var h;((h=y.Zs)==null?0:h.bl)&&g.c(y,a.Am)}}; Wk7=function(y,t,a){var r,E=(r=y.qr)==null?void 0:r.Y.get(t);if(!E)return[];if(a.QB){var h;return((h=E.lT(0,a.clipId))==null?void 0:h.Sr)||[]}if(E.IP()){var F=a.startMs,x=a.durationMs;r=1E3;var U;if(((U=y.Zs)==null?0:U.V)&&a.timeRange){var C;F=(C=a.timeRange.startTicks)!=null?C:-1;var z;x=(z=a.timeRange.XI)!=null?z:-1;var O;r=(O=a.timeRange.timescale)!=null?O:-1}if(a.tO<0||a.e8<0||x<0||F<0||a.Qq<0||r<0)return IZ(y,t),[];y=yH(a.tO,a.Qq);t=a.gw||0;return[new a1(3,E,y,"makeSliceInfosMediaBytes",a.e8- 1,F/r,x/r,t,y.length-t,void 0,a.GH,a.clipId)]}if(a.e8<0)return IZ(y,t),[];var M;return((M=y.qr)==null?0:M.US)?(t=E.Z5,U=t*E.info.Hb,C=a.gw,((F=y.Zs)==null?0:F.V)&&y.D.Iz()!=="ONESIE"&&a.timeRange&&!C&&(x=a.timeRange.startTicks/a.timeRange.timescale),[new a1(3,E,void 0,"makeSliceInfosMediaBytes",a.e8,x,t,C,U,!0,a.GH,a.clipId)]):[]}; j11=function(y,t,a){y.qr=t;y.Zs=a;t=g.p(y.qP);for(a=t.next();!a.done;a=t.next()){var r=g.p(a.value);a=r.next().value;r=r.next().value;for(var E=g.p(r.vg),h=E.next();!h.done;h=E.next()){h=h.value;var F=Wk7(y,a,h);frV(y,h.Gc,r,F)}}}; Zn=function(y,t,a,r){(y=y.qP.get(a))&&!y.l2&&(ir?(y.Bt.has(t)||y.Bt.set(t,{data:new $k,DB:0,Ou:!1}),Uh(y.Bt.get(t).data,r)):Uh(y.yY,r),y.bytesReceived+=r.totalLength,y.qV=!0)}; KW=function(y,t){if((t=y.qP.get(t))&&!t.l2){t.l2=!0;if(t.onProgress)t.onProgress();a:{t=g.p(y.qP.values());for(var a=t.next();!a.done;a=t.next())if(!a.value.l2){t=!1;break a}t=!0}t&&y.D.wL()}}; S6y=function(y){ir=y}; yD=function(y,t,a,r,E,h,F){g.H.call(this);this.policy=y;this.info=t;this.qr=a;this.w0=E;this.logger=new g.kK("sabr");this.kP=new fW(this);this.xR=new Dn(this);this.bx=new gH(this);this.state=1;this.UO=!1;this.jE=0;this.clipId="";this.FM=-1;this.Ky=0;this.jj=-1;this.s7=this.u6=this.ev=this.QI=!1;this.policy.J4?this.S_=new qf(this,h):this.S_=new Nf(this,h);this.Ds=this.policy.FB?t.pk:Q1n(t,this.policy,r);this.Ds.set("rn",""+this.qU());this.Ds.set("alr","yes");j11(this.bx,a,y);this.dV=new pW(this,this.policy, this.Ds,t.Pb,this.S_,this.logger,r,F,this.policy.enableServerDrivenRequestCancellation);bRn(this.dV);var x;if((x=this.policy)==null?0:x.bl)g.c(this,this.bx),g.c(this,this.dV);y=t.K;t={method:"POST",body:y};y&&(this.Ky=y.length);try{this.xhr=SS(this.Ds,this.policy.Z,this.S_,hP,t),this.policy.OZ&&PR(this.S_,this.xJ()),this.dV.K.start()}catch(U){g.ls(U)}}; vKN=function(y){y.policy.DY&&y.fk&&!y.u6?y.u6=!0:y.S_.nB()}; py7=function(y,t){var a=-1,r=-1,E=-1,h;if((h=y.nt)==null?0:h.items)for(y=g.p(y.nt.items),h=y.next();!h.done;h=y.next())h=h.value,t=x,U=y.qr.isManifestless,F){var C;if(((C=y.V)==null?void 0:C.zO.event)==="predictStart"&&y.V.a5y.L&&(y.L=NaN,y.J=NaN);if(y.V&&y.V.a5===t){if(r=y.V,!y.policy.J||!y.policy.K)if(E&&r){var F=r.zO;h=E.uA(F);F.event==="predictStart"&&(y.AF=t);y.H4("sdai",{onqevt:F.event,sq:t,mt:a,gab:h,cst:F.startSecs,cueid:y.policy.rJ&&(h||F.event==="start")?F.identifier:void 0},!0);if(h)if(F.event!=="predictStart")F.event==="start"&&y.AF===t-1&&y.H4("sdai", {gabonstart:t}),r.XZ?EP(y,4,"cue"):(y.L=t,y.J=a,y.H4("sdai",{joinad:y.K,sg:y.L,st:y.J.toFixed(3)}),y.Z=Date.now(),EP(y,2,y.K===3?"staftpred":"join"),bwV(E,r.zO));else{var x=BZb(y);t+=Math.max(Math.ceil(-F.V/x),1);F=Math.floor(a-F.V/1E3);y.policy.K?y.Y=F:y.D=t;y.H4("sdai",{onpred:a,estsq:t,estmt:F.toFixed(3)});hr(y.loader,F,F,t,x);y.Z=Date.now();EP(y,3,"predict");bwV(E,r.zO)}else y.K===1?((x=y.mL)==null?0:x.N1?0:FY(x,a))?(hr(y.loader,a,a,t),EP(y,4,"sk2head")):EP(y,5,"nogab"):F.event==="predictStart"&& (y.policy.K&&y.Y>0?(a=Math.floor(a-F.V/1E3),y.Y!==a&&y.H4("sdai",{updateSt:a,old:y.Y}),y.Y=a):y.D>0&&(a=t+Math.max(Math.ceil(-F.V/BZb(y)),1),y.D!==a&&(y.H4("sdai",{updateSt:a,old:y.D}),y.D=a)))}else y.H4("sdai",{nulldec:1,sq:t,mt:a.toFixed(3),evt:(r==null?void 0:(F=r.zO)==null?void 0:F.event)||"none"})}else y.K===1&&EP(y,5,"noad")}; q67=function(y,t,a){if(y.K===1||y.K===2)return!1;if(y.K!==0&&t===y.audioTrack){if(y.policy.K)return cbF(y.videoTrack,a)||cbF(y.videoTrack,a+1);y=Ar(y.videoTrack);if(a>(y?y.a5:-1))return!1}return!0}; xF=function(y,t,a){return(a<0||a===y.L)&&!isNaN(y.J)?y.J:t}; BZb=function(y){var t=5E3;if(y.policy.Xd)switch(y.policy.latencyClass){case "LOW":t=2E3;break;case "ULTRALOW":t=1E3}return t}; mK7=function(y,t){if(y.V){var a=y.V.zO.iK-(t.startTime+y.W-y.V.zO.startSecs);a<=0||(a=new $v(y.V.zO.startSecs-(isNaN(y.W)?0:y.W),a,y.V.zO.context,y.V.zO.identifier,"stop",y.V.zO.V+t.duration*1E3),y.H4("cuepointdiscontinuity",{segNum:t.a5}),rD(y,a,t.a5))}}; EP=function(y,t,a){y.K!==t&&(y.H4("sdai",{setsst:t,old:y.K,r:a}),y.K=t)}; sP=function(y,t,a,r){(r===void 0?0:r)?EP(y,1,"seek"):t>0&&Math.abs(t-a)>=5&&y.K===4&&EP(y,5,"sk2t")}; Y6u=function(y,t,a){var r=this;this.D=y;this.H4=t;this.W=a;this.L="";this.K=new Set;this.V=new Map;this.J=-1;this.Y=0;this.Wb={Tve:function(){return r.K}}}; DK2=function(y,t){for(var a="",r=[],E=g.p(y.V.entries()),h=E.next();!h.done;h=E.next()){var F=g.p(h.value);h=F.next().value;F=F.next().value;var x=void 0,U=void 0,C=void 0;((x=F)==null?void 0:x.startTimeSecs)<=t&&t<=((U=F)==null?void 0:U.startTimeSecs)+((C=F)==null?void 0:C.iK)&&r.push(h);U=x=void 0;a+=h+":"+((x=F)==null?void 0:x.startTimeSecs.toFixed(3))+":"+((U=F)==null?void 0:U.iK.toFixed(3))+";"}r.length===0&&y.H4("clsdai",{no_cid:1,mt:t.toFixed(3),adConfigMap:a.substring(0,1024)});return r}; gK7=function(y){if(!y)return"unknown";switch(y){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; iwd=function(y){switch(y){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"}}; $F=function(y,t,a){this.audio=y;this.video=t;this.reason=a}; UP=function(y,t,a){this.V=y;this.reason=t;this.token=a;this.videoId=void 0}; Cv=function(y,t,a){g.H.call(this);this.policy=y;this.D=t;this.H4=a;this.Y=new Map;this.L=0;this.J=!1;this.V="";this.K=!1}; z0=function(y,t,a){if(a===void 0?0:a)y.J=!0;++y.L;a=6E4*Math.pow(2,y.L);a=(0,g.Wx)()+a;y.Y.set(t.info.id,a)}; OP=function(y){for(var t=g.p(y.Y.entries()),a=t.next();!a.done;a=t.next()){var r=g.p(a.value);a=r.next().value;r=r.next().value;r<(0,g.Wx)()&&y.Y.delete(a)}return y.Y}; Kk1=function(y){return y.J&&OP(y).size>0}; Lv=function(y,t){y.V!==t&&(y.V=t,y.K=!0)}; IrN=function(y,t){var a;t&&(a=g.D9(y.D.V,function(E){return E.id===t})); if(!a&&(a=g.D9(y.D.V,function(E){var h;return!((h=E.qK)==null||!h.isDefault)}),t)){var r; y.H4("iaf",{id:t,sid:(r=a)==null?void 0:r.id})}return a}; M5=function(y){this.V=this.K=0;this.alpha=Math.exp(Math.log(.5)/y)}; R7=function(y,t,a,r,E,h){var F=this;h=h===void 0?[]:h;this.loader=y;this.o5=t;this.policy=a;this.qr=r;this.J=E;this.T7=h;this.logger=new g.kK("dash/abr");this.V=Eu;this.Y=this.W=null;this.hF=-1;this.Ff=!1;this.nextVideo=this.K=null;this.D=[];this.C1=new Set;this.L1={};this.R5=new M5(1);this.Z=0;this.r0=this.Vv=this.AF=!1;this.DE=0;this.JF=!1;this.d0=new Set;this.yv=!1;this.Wb={yP:function(){wD(F)}}; this.L=new Cv(this.policy,E,function(x,U){F.loader.H4(x,U)})}; tD7=function(y,t,a){P8(y,t);t=IrN(y.L,a);a||t||(t=TZ2(y));t=t||y.J.V[0];y.K=y.qr.V[t.id];wD(y);y.W=y.K;GWN(y);ZwN(y);y.Y=y.nextVideo;y.W=y.K;return y57(y)}; r57=function(y,t){if(aeb(y,t))return null;if(t.reason==="m"&&t.isLocked())return P8(y,t),y.Z=y.D.length-1,wD(y),N5(y),y.Vv=y.Vv||y.Y!==y.nextVideo,y.Y=y.nextVideo,new $F(y.K,y.Y,t.reason);t.reason==="r"&&(y.hF=-1);P8(y,t);N5(y);if(t.reason==="r"&&y.nextVideo===y.Y)return new $F(y.K,y.nextVideo,t.reason);y.Y&&y.nextVideo&&dD(y,y.Y.info)1.5&&y.loader.H4("overshoot",{sq:t.a5,br:a,max:r}))}}; XY=function(y,t,a){z0(y.L,t,a===void 0?!1:a);y.hF=-1;P8(y,y.V)}; FBy=function(y,t){return new $F(y.W,y.Y,t||y.V.reason)}; y57=function(y){y.Ff?y.Ff=!1:y.hF=(0,g.Wx)();y.AF=!1;y.yv=!1;return new $F(y.W,y.Y,y.V.reason)}; A57=function(y,t){var a={};t=g.p(t);for(var r=t.next();!r.done;r=t.next())if((r=r.value)&&r.video){var E=r.video.qualityOrdinal,h=a[E],F=h&&ol(h)&&h.video.qualityOrdinal>y.policy.vt,x=E<=y.policy.vt?ol(r):lH(r);if(!h||F||x)a[E]=r}return a}; P8=function(y,t){y.V=t;var a=y.J.videoInfos;if(!y.V.isLocked()){var r=(0,g.Wx)();a=g.op(a,function(F){if(F.Hb>this.policy.Hb)return!1;var x=this.qr.V[F.id];return OP(this.L).get(F.id)>r||x.Pb.Y>4||x.J>4?!1:this.d0.has(+F.itag)?!1:!0},y); Kk1(y.L)&&(a=g.op(a,function(F){return F.video.width<=854&&F.video.height<=480}))}a.length||(a=y.J.videoInfos); var E=a;y.policy.GM&&(E=xO1(y,E,t));E=g.op(E,t.D,t);if(y.V.isLocked()&&y.L.V){var h=g.D9(a,function(F){return F.id===y.L.V}); h?E=[h]:Lv(y.L,"")}y.policy.GM||(E=xO1(y,E,t));E.length||(E=[a[0]]);E.sort(function(F,x){return dD(y,F)-dD(y,x)}); t={};for(a=1;at.Ih.video.width?(g.GE(E,a),a--):dD(y,t.bb)*y.policy.hF>dD(y,t.Ih)&&(g.GE(E,a-1),a--);t=E[E.length-1];y.JF=!!y.Y&&!!y.Y.info&&y.Y.info.G7!==t.G7;y.D=E;y.C1.clear();a=!1;for(h=0;h=1080&&(a=!0);sEF(y.policy,t,y.qr.US)}; xO1=function(y,t,a){var r=a.reason==="m"||a.reason==="s";y.policy.qa&&kF&&g.wR&&(!r||a.V<1080)&&(t=t.filter(function(C){return C.video&&(!C.K||C.K.powerEfficient)})); if(t.length>0)if(Fv()){var E=A57(y,t);t=t.filter(function(C){return!!C&&!!C.video&&C.G7===E[C.video.qualityOrdinal].G7})}else{var h,F,x=(h=t[0])==null?void 0:(F=h.video)==null?void 0:F.qualityOrdinal; if(x){a=t.filter(function(C){return!!C&&!!C.video&&C.video.qualityOrdinal===x}); var U=A57(y,a)[x].G7;t=t.filter(function(C){return!!C&&!!C.video&&C.G7===U})}}return t}; $OF=function(y,t){for(var a=0;a+1r}; wD=function(y){if(!y.K||!y.policy.D&&!y.K.info.qK){var t=y.J.V;y.K&&(t=t.filter(function(r){return r.audio.V===y.K.info.audio.V}),t.length||(t=y.J.V)); y.K=y.qr.V[t[0].id];if(t.length>1&&!y.policy.DE){if(!y.policy.dG){var a=g.D9(t,function(r){return r.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); a&&(y.K=y.qr.V[a.id])}a=!1;if(a=y.policy.pM?!0:y.V.isLocked()?y.V.V<240:$OF(y,y.K))y.K=y.qr.V[g.q9(t).id]}}}; N5=function(y){if(!y.nextVideo||!y.policy.D)if(y.V.isLocked())y.nextVideo=y.V.V<=360?y.qr.V[y.D[0].id]:y.qr.V[g.q9(y.D).id];else{for(var t=Math.min(y.Z,y.D.length-1),a=ZZ(y.o5),r=dD(y,y.K.info),E=a/y.policy.Vv-r;t>0&&!(dD(y,y.D[t])<=E);t--);for(a=a/y.policy.hF-r;t=a);t++);y.nextVideo=y.qr.V[y.D[t].id];y.Z=t}}; GWN=function(y){var t=y.policy.Vv,a=ZZ(y.o5)/t-dD(y,y.K.info);t=g.i3(y.D,function(r){return dD(this,r)h?E=0:r[F]>y.buffered[F]&&(F===h-1?E=2:F===h-2&&r[F+1]>y.buffered[F+1]&&(E=3))}y.V.add(t<<3|(a&&4)|E);t=Math.ceil(y.track.A_()*1E3);y.V.add(t-y.L);y.L=t;if(E===1)for(y.V.add(h),F=t=0;F=2&&y.V.add(r[h-1]-y.buffered[h-1]);a&&y.V.add(a); y.buffered=r},v8=function(y,t,a){var r=this; this.policy=y;this.V=t;this.DE=a;this.D=this.K=0;this.lx=null;this.AF=new Set;this.hF=[];this.indexRange=this.initRange=null;this.Z=new M2;this.Vv=this.o5=!1;this.Wb={Ftf:function(){return r.Y}, ppX:function(){return r.chunkSize}, Cg1:function(){return r.W}, kMu:function(){return r.J}}; (t=MD2(this))?(this.chunkSize=t.csz,this.Y=Math.floor(t.clen/t.csz),this.W=t.ck,this.J=t.civ):(this.chunkSize=y.X4,this.Y=0,this.W=g.wu(16),this.J=g.wu(16));this.L=new Uint8Array(this.chunkSize);this.W&&this.J&&(this.crypto=new nvu(this.W,this.J))},MD2=function(y){if(y.policy.Bz&&y.policy.WP)for(var t=g.p(y.policy.Bz),a=t.next(),r={};!a.done;r={CV:void 0, ZD:void 0},a=t.next())if(a=g.sO(a.value),r.CV=+a.clen,r.ZD=+a.csz,r.CV>0&&r.ZD>0&&y.policy.D===a.docid&&y.V.info.id===a.fmtid&&y.V.info.lastModified===+a.lmt)return y={},y.clen=r.CV,y.csz=r.ZD,y.ck=a.ck,y.civ=a.civ,y},pv=function(y){return!!y.lx&&y.lx.kV()},Pcx=function(y,t){if(!pv(y)&&!y.Qv()){if(!(y.o5||(y.o5=!0,y.Y>0))){var a=er(y); a=K3(y.policy.D,y.V.info,lq(y),a,y.policy.T7);uq(y,a)}if(t.info.type===1){if(y.lx){VD(y,Error("Woffle: Expect INIT slices to always start us off"));return}y.initRange=yH(0,t.K.totalLength)}else if(t.info.type===2)y.lx&&y.lx.type===1||VD(y,Error("Woffle: Index before init")),y.indexRange=yH(y.initRange.end+1,t.K.totalLength);else if(t.info.type===3){if(!y.lx){VD(y,Error("Woffle: Expect MEDIA slices to always have lastSlice"));return}if(y.lx.type===3&&!F9(y.lx,t.info)&&(y.hF=[],t.info.a5!==Ab(y.lx)|| t.info.V!==0))return;if(t.info.Y){a=g.p(y.hF);for(var r=a.next();!r.done;r=a.next())wtN(y,r.value);y.hF=[]}else{y.hF.push(t);y.lx=t.info;return}}else{VD(y,Error("Woffle: Unexpected slice type"));return}y.lx=t.info;wtN(y,t);Ru7(y)}},wtN=function(y,t){var a=0,r=Lu(t.K); if(y.D=r.length)return;if(a<0)throw Error("Missing data");y.D=y.Y;y.K=0}for(E={};a0){var F=r.getUint32(a+28);h+=F*16+4}var x=r.getUint32(a+h-4);try{var U=feN(t.subarray(a+h,a+h+x));if(U!==null){var C=U;break a}}catch(z){}}a+=E}C=null;break a}catch(z){C=null;break a}C=void 0}if(C!=null)for(t=Vo(wM(C,7,void 0,GU)),t==null||y.GO||(y.cryptoPeriodIndex=t),t=Vo(wM(C,10,void 0,GU)),t!=null&&t>0&&!y.GO&&(y.V=t),C=fn(C,2,g$d,void 0=== IVn?2:4),C=g.p(C),r=C.next();!r.done;r=C.next())t=y.Y,a=t.push,r=TI(r.value),r=g.H$(r,4),a.call(t,r)},jE7=function(y){return isNaN(y.cryptoPeriodIndex)?g.H$(y.initData):""+y.cryptoPeriodIndex},Jr=function(y,t,a){var r=a===void 0?{}:a; a=r.videoDuration===void 0?0:r.videoDuration;var E=r.iM===void 0?void 0:r.iM;r=r.x4===void 0?!1:r.x4;this.videoId=y;this.status=t;this.videoDuration=a;this.iM=E;this.x4=r},SIF=function(y,t,a,r,E){this.videoId=y; this.a9=t;this.K=a;this.bytesDownloaded=r;this.V=E},o7=function(y){this.V=y; this.offset=0},H8=function(y){if(y.offset>=y.V.totalLength)throw Error(); return wj(y.V,y.offset++)},QEn=function(y,t){t=t===void 0?!1:t; var a=H8(y);if(a===1){t=-1;for(a=0;a<7;a++){var r=H8(y);t===-1&&r!==255&&(t=0);t>-1&&(t=t*256+r)}return t}r=128;for(var E=0;E<6&&r>a;E++)a=a*256+H8(y),r*=128;return t?a:a-r},v31=function(y){try{var t=QEn(y,!0),a=QEn(y,!1); return{id:t,size:a}}catch(r){return{id:-1,size:-1}}},ptu=function(y){for(var t=new o7(y),a=-1,r=0,E=0;!r||!E;){var h=v31(t),F=h.id; h=h.size;if(F<0)return;if(F===176){if(h!==2)return;r=t.nD()}else if(F===186){if(h!==2)return;E=t.nD()}F===374648427?a=t.nD()+h:F!==408125543&&F!==174&&F!==224&&t.skip(h)}t=Mz(y,0,a);a=new DataView(t.buffer);a.setUint16(r,3840);a.setUint16(E,2160);r=new $k([t]);Uh(r,y);return r},euu=function(y,t,a){var r=this; this.loader=y;this.policy=t;this.z7=a;this.logger=new g.kK("dash");this.K=[];this.V=null;this.Vv=-1;this.Z=0;this.DE=NaN;this.hF=0;this.Y=NaN;this.W=this.L1=0;this.r0=-1;this.d0=this.D=this.L=this.o5=null;this.JF=this.C1=NaN;this.J=this.AF=this.yv=this.R5=null;this.T7=!1;this.Ff=this.timestampOffset=0;this.Wb={qz:function(){return r.K}}; if(this.policy.D){var E=this.z7,h=this.policy.D;this.policy.T7&&y.H4("atv",{ap:this.policy.T7});this.J=new v8(this.policy,E,function(F,x,U){y.Om.l7(new Jr(r.policy.D,2,{iM:new SIF(h,F,E.info,x,U)}))}); this.J.Z.promise.then(function(F){r.J=null;F===1?y.Om.l7(new Jr(r.policy.D,F)):r.loader.H4("offlineerr",{status:F.toString()})},function(F){var x=(F.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); F instanceof nv&&!F.V?(r.loader.H4("offlinenwerr",{em:x}),bq(r),y.Om.l7(new Jr(r.policy.D,4))):(r.loader.H4("dldbwerr",{em:x}),bq(r),y.Om.l7(new Jr(r.policy.D,4,{x4:!0})))})}},led=function(y){return y.K.length?y.K[0]:null},ug7=function(y,t){return y.K.some(function(a){return a.info.a5===t})},o3N=function(y,t,a,r){r=r===void 0?0:r; if(y.D){var E=y.D.V+y.D.K;if(a.info.V>0)if(a.info.a5===y.D.a5&&a.info.V=0&&y.D.a5>=0&&!F9(y.D,a.info))throw new g.RV("improper_continuation",y.D.iJ(),a.info.iJ());jo1(y.D,a.info)||B8(y,"d")}else if(a.info.V>0)throw new g.RV("continuation_of_null",a.info.iJ());y.D=a.info;y.z7=a.info.z7;if(a.info.V===0){if(y.V)if(!y.loader.isOffline()||y.policy.wu)y.loader.H4("slice_not_fully_processed",{buffered:y.V.info.iJ(),push:a.info.iJ()}); else throw new g.RV("slice_not_fully_processed",y.V.info.iJ(),a.info.iJ());c8(y);y.L1=r}else{if(y.L1&&r&&y.L1!==r)throw y=new g.RV("lmt_mismatch",a.info.a5,y.L1,r),y.level="WARNING",y;!a.info.z7.IP()&&y.L&&(r=a.info,E=y.L.FM,r.J="updateWithEmsg",r.a5=E)}if(y.V){r=g.Sh(y.V,a);if(!r)throw new g.RV("failed_to_merge",y.V.info.iJ(),a.info.iJ());y.V=r}else y.V=a;a:{a=g.bH(y.V.info.z7.info);if(y.V.info.type!==3){if(!y.V.info.Y)break a;y.V.info.type===6?VD7(y,t,y.V):n3u(y,y.V);y.V=null}for(;y.V;){r=y.V.K.totalLength; if(y.Vv<=0&&y.Z===0){var h=y.V.K,F=-1;E=-1;if(a){for(var x=0;x+80))break;if(O!==408125543)if(O===524531317)x=!0,z>=0&&(E=h.nD()+z,U=!0);else{if(x&&(O===160||O===163)&&(F<0&&(F=C),U))break;O===163&&(F=Math.max(0,F),E=h.nD()+z);if(O===160){F<0&&(E=F=h.nD()+z);break}h.skip(z)}}F<0&&(E=-1)}if(F<0)break;y.Vv= F;y.Z=E-F}if(y.Vv>r)break;y.Vv?(r=mO7(y,y.Vv),r.L&&J5N(y,r),VD7(y,t,r),q5(y,r),y.Vv=0):y.Z&&(r=mO7(y,y.Z<0?Infinity:y.Z),y.Z-=r.K.totalLength,q5(y,r))}}y.V&&y.V.info.Y&&(q5(y,y.V),y.V=null)},n3u=function(y,t){!t.info.z7.IP()&&t.info.V===0&&(g.bH(t.info.z7.info)||t.info.z7.info.GO())&&slu(t); if(t.info.type===1)try{J5N(y,t),HNF(y,t)}catch(E){g.pK(E);var a=xK(t.info);a.hms="1";y.loader.handleError("fmt.unparseable",a||{},1)}a=t.info.z7;a.q8(t);y.J&&Pcx(y.J,t);if(a.K_()&&y.policy.V)a:{y=y.loader.qr;t=t.info.clipId;a=g.cU(a.info,y.US);if(t){var r=KR({itag:a.itag,lmt:y.US?0:a.lmt||0,xtags:a.xtags});if(y.JF[r])break a;y.JF[r]=t}y.r0.push(a)}},PuV=function(y,t,a){if(y.K.length!==0&&(a||y.K.some(function(h){return h.info.D=Du(F)+x):t=y.getDuration()>=F.getDuration(),t=!t;t&&B9N(a)&&(t=y.o5,YF?(x=A02(a),F=1/x,x=Du(y,x),t=Du(t)+F-x):t=t.getDuration()-y.getDuration(),t=1+t/a.info.duration,rsn(g.jh(a),t))}else{F=!1;y.L||(slu(a),a.V&&(y.L=a.V,F= !0,E=a.info,h=a.V.FM,E.J="updateWithEmsg",E.a5=h,E=a.V,E.kV&&(h=y.z7.index,h.K=!E.kV,h.Y="emsg"),E=a.info.z7.info,h=g.jh(a),g.bH(E)?X6(h,1701671783):E.GO()&&pR([408125543],307544935,h)));a:if((E=pw(a,y.policy.sR))&&xBb(a))x=c5F(y,a),y.W+=x,E-=x,y.hF+=E,y.Y=y.policy.ul?y.Y+E:NaN;else{if(y.policy.u0){if(h=U=y.loader.vK(g.QH(a),1),y.Y>=0&&a.info.type!==6){if(y.policy.ul&&isNaN(y.C1)){g.ls(new g.RV("Missing duration while processing previous chunk",a.info.iJ()));y.loader.isOffline()&&!y.policy.wu||qIn(y, a,h);B8(y,"m");break a}r=U-y.Y;var C=r-y.W,z=a.info.a5,O=y.d0?y.d0.a5:-1,M=y.JF,L=y.C1,w=y.policy.u$&&r>y.policy.u$,d=Math.abs(C)>10,k=Math.abs(y.Y-h)<1E-7;if(Math.abs(C)>1E-4){y.Ff+=1;var e=(x=y.L)==null?void 0:Gvy(x);x={audio:""+ +y.Ee(),sq:z.toFixed(),sliceStart:U,lastSq:O.toFixed(),lastSliceStart:M,lastSliceDuration:L,totalDrift:(r*1E3).toFixed(),segDrift:(C*1E3).toFixed(),skipRewrite:""+ +(w||d)};if(e==null?0:e.length)x.adCpn=e[0];y.loader.handleError("qoe.avsync",x);y.r0=z}w||d||k||(h=y.Y); x=c5F(y,a,U);E-=x;y.W=r+x}}else h=isNaN(y.Y)?a.info.startTime:y.Y;qIn(y,a,h)&&(y.hF+=E,y.Y=h+E,y.policy.l$&&y.Ff>=y.policy.l$&&(y.Ff=0,y.loader.Xo({resetForRewrites:"count"})))}y.d0=a.info;y.C1=vy(a);a.Y>=0&&(y.JF=a.Y);if(F&&y.L){F=YIz(y,!0);s6(a.info,F);y.V&&s6(y.V.info,F);t=g.p(t);for(x=t.next();!x.done;x=t.next())x=x.value,E=void 0,y.policy.L&&x.a5!==((E=y.L)==null?void 0:E.FM)||s6(x,F);(a.info.Y||y.V&&y.V.info.Y)&&a.info.type!==6||(y.AF=F,y.policy.K?(t=DOH(y.L),y.loader.Jy(y.z7,F,t)):(t=y.loader, t.qr.isManifestless&&g3y(t,F,null,!!y.z7.info.video)),y.policy.Ri||iN7(y))}}HNF(y,a);y.timestampOffset&&hR2(a,y.timestampOffset)},q5=function(y,t){if(t.info.Y){y.R5=t.info; if(y.L){var a=y.L,r=YIz(y,!1);a=DOH(a);y.loader.Jy(y.z7,r,a);y.AF||y.policy.Ri||iN7(y);y.AF=null}c8(y)}y.J&&Pcx(y.J,t);if(r=y.Pv())if(r=g.Sh(r,t,y.policy.x_,y.policy.uK)){y.K.pop();y.K.push(r);return}y.K.push(t)},DOH=function(y){if(y.XZ()){var t=y.data["Stitched-Video-Id"]?y.data["Stitched-Video-Id"].split(",").slice(0,-1):[],a=Gvy(y),r=[]; if(y.data["Stitched-Video-Duration-Us"])for(var E=g.p(y.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=E.next();!h.done;h=E.next())r.push((Number(h.value)||0)/1E6);E=[];if(y.data["Stitched-Video-Start-Frame-Index"]){h=g.p(y.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var F=h.next();!F.done;F=h.next())E.push(Number(F.value)||0)}E=[];if(y.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(h=g.p(y.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0, -1)),F=h.next();!F.done;F=h.next())E.push((Number(F.value)||0)/1E6);y=new ku7(t,a,r,E,g.ZF7(y),g.ys7(y))}else y=null;return y},c8=function(y){y.V=null; y.Vv=-1;y.Z=0;y.L=null;y.DE=NaN;y.hF=0;y.AF=null},B8=function(y,t){t={rst4disc:t, cd:y.W.toFixed(3),sq:y.d0?y.d0.a5:-1};y.Y=NaN;y.W=0;y.r0=-1;y.d0=null;y.JF=NaN;y.C1=NaN;y.yv=null;y.loader.H4("mdstm",t)},HNF=function(y,t){if(y.isDrm()){if(t.info.z7.info.GO()){var a=new fR(g.jh(t)); if(jT(a,[408125543,374648427,174,28032,25152,20533,18402])){var r=v3(a,!0);a=r!==16?null:VR(a,r)}else a=null;r="webm"}else t.info.Z=dO2(g.jh(t)),a=Xty(t.info.Z),r="cenc";a&&a.length&&(a=new mQ(a,r),y.policy.W8&&g.bH(t.info.z7.info)&&(r=soN(g.jh(t)))&&(a.K=r),a.GO=t.info.z7.info.GO(),t.V&&t.V.cryptoPeriodIndex&&(a.cryptoPeriodIndex=t.V.cryptoPeriodIndex),t.V&&t.V.K&&(a.V=t.V.K),y.loader.bA(a))}},iN7=function(y){var t=y.L,a=IXz(t); a&&(a.startSecs+=y.DE,y.loader.wl(y.z7,a,t.FM,t.XZ()))},YIz=function(y,t){var a,r=y.L; if(a=IXz(r))a.startSecs+=y.DE;var E=y.DE,h=0;y.z7 instanceof O6&&(h=y.z7.Z5);return new yR(r.FM,E,t?h:y.hF,r.ingestionTime,"sq/"+r.FM,void 0,void 0,t,a)},qIn=function(y,t,a){if(!E8N(t,a))return t=xK(t.info),t.smst="1",y.loader.handleError("fmt.unparseable",t||{},1),!1; isNaN(y.DE)&&(y.DE=a);return!0},c5F=function(y,t,a){var r=0; if(t.info.z7.info.GO()&&!xBb(t))return 0;if(y.o5&&!y.Ee()){var E=0;a&&g.bH(t.info.z7.info)?E=a-y.Y:t.info.z7.info.GO()&&(E=y.W);var h=t.info.a5;a=pw(t,y.policy.sR);var F=y.o5;var x=F.r0;F=F.W;var U=Math.abs(F-E)>.02;if((h===x||h>x&&h>y.r0)&&U){r=Math.max(.95,Math.min(1.05,(a-(F-E))/a));if(g.bH(t.info.z7.info))rsn(g.jh(t),r);else if(t.info.z7.info.GO()&&(h=E-F,!g.bH(t.info.z7.info)&&(t.info.z7.info.GO(),r=new fR(g.jh(t)),x=t.L?r:new fR(new DataView(t.info.z7.V.buffer)),pw(t,!0)))){var C=h*1E3,z=mO(x); x=r.pos;r.pos=0;if(r.V.getUint8(r.pos)===160||J9(r))if(QR(r,160))if(v3(r,!0),QR(r,155)){if(h=r.pos,U=v3(r,!0),r.pos=h,C=C*1E9/z,z=eT(r),C=z+Math.max(-z*.7,Math.min(z,C)),C=Math.sign(C)*Math.floor(Math.abs(C)),!(Math.ceil(Math.log(C)/Math.log(2)/8)>U)){r.pos=h+1;for(h=U-1;h>=0;h--)r.V.setUint8(r.pos+h,C&255),C>>>=8;r.pos=x}}else r.pos=x;else r.pos=x;else r.pos=x}r=pw(t,y.policy.sR);r=a-r}r&&t.info.z7.info.GO()&&y.loader.H4("webmDurationAdjustment",{durationAdjustment:r,videoDrift:E+r,audioDrift:F})}return r}, B9N=function(y){return y.info.z7.IP()&&y.info.a5===y.info.z7.index.lJ()},Du=function(y,t){t=(t=t===void 0?0:t)?Math.round(y.timestampOffset*t)/t:y.timestampOffset; y.z7.D&&t&&(t+=y.z7.D.V);return t+y.getDuration()},KB7=function(y,t){t<0||(y.K.forEach(function(a){hR2(a,t)}),y.timestampOffset=t)},rH=function(y,t,a,r,E){WR.call(this,a,E); var h=this;this.policy=y;this.formatId=t;this.bx=r;this.lastError=null;this.onProgress=function(){h.Qv()||(h.bx.qP.has(h.formatId)?(h.isComplete()||h.V.start(),GV(h.bx,h.formatId)&&h.ET(2),h.bx.l2(h.formatId)&&(kWz(h.bx,h.formatId)?h.UR(4):(h.lastError="net.closed",h.UR(5)))):(h.lastError="player.exception",h.UR(5)))}; this.V=new g.Te(function(){h.isComplete()||(h.lastError="net.timeout",h.UR(5))},1E3); this.V.start();NZ1(this.bx,this.formatId,this.onProgress);g.jv(this.onProgress)},gD=function(y,t,a,r){g.H.call(this); var E=this;this.loader=y;this.policy=t;this.z7=a;this.timing=r;this.logger=new g.kK("dash");this.K=[];this.o5=[];this.V=this.wN=null;this.yv=!1;this.L1=this.Ff=0;this.L=-1;this.Vv=!1;this.DE=-1;this.d0=null;this.AF=NaN;this.hF=[];this.Wb={nF:function(){return E.Y}, DoG:function(){return E.K}, wpE:function(){return E.W}}; this.Y=new euu(y,t,a);this.policy.V&&(this.W=new tS(this.Y,this.loader.getManifest(),this.policy,function(h){E.policy.wD&&E.H4("buftl",h)})); this.policy.XB&&(this.Z=new Sr(this));this.Hb=a.info.Hb;this.J=this.policy.o5?!1:a.FN();this.isManifestless=a.FN();this.D=this.J;g.c(this,this.d0)},iq=function(y,t,a){a=a===void 0?!1:a; t&&YF&&KB7(y.Y,t.xL());if(!a){var r;(r=y.W)==null||LOy(r)}y.wN=t;(t=y.W)!=null&&(t.wN=y.wN)},Kv=function(y){var t=y.wN&&y.wN.WI(); if(y.policy.iU){if((y=y.W)==null)y=void 0;else{var a;y=(a=y.Y)==null?void 0:a.info}return y||null}return t},Ien=function(y){for(var t={},a=0;a4&&y.o5.shift()},T9n=function(y,t){if(t.il()){var a=t.U6(); a=g.p(a);for(var r=a.next();!r.done;r=a.next())r=r.value,y.policy.Y&&t instanceof rH&&y.H4("omblss",{s:r.info.iJ()}),T0(y,t.info.Sr,r,t.zK())}},T0=function(y,t,a,r){r=r===void 0?0:r; isNaN(y.AF)||(y.H4("aswm",{sq:t[0].a5,id:t[0].z7.info.itag,xtag:t[0].z7.info.V,ep:Date.now()-y.AF}),y.AF=NaN);switch(a.info.type){case 1:case 2:GuF(y,a);break;case 4:var E=a.info.z7,h=E.Se(a),F;((F=y.V)==null?0:F.type===4)&&uZN(a.info,y.V)&&(y.V=E.ya(y.V).pop());a=g.p(h);for(E=a.next();!E.done;E=a.next())T0(y,t,E.value,r);break;case 3:a.info.z7.info.video?(E=y.timing,E.d0||(E.d0=(0,g.Wx)(),g.lT("fvb_r",E.d0,E.V))):(E=y.timing,E.J||(E.J=(0,g.Wx)(),g.lT("fab_r",E.J,E.V)));o3N(y.Y,t,a,r);y.policy.V&& ZNy(y);break;case 6:o3N(y.Y,t,a,r),y.V=a.info}},GuF=function(y,t){if(t.info.type===1)if(t.info.z7.info.video){var a=y.timing; a.Ff||(a.Ff=(0,g.Wx)(),g.lT("vis_r",a.Ff,a.V))}else a=y.timing,a.Z||(a.Z=(0,g.Wx)(),g.lT("ais_r",a.Z,a.V));n3u(y.Y,t);y=y.loader;y.videoTrack.z7.K_()&&y.audioTrack.z7.K_()&&y.policy.V&&!y.qr.US&&(t=y.audioTrack.getDuration(),a=y.videoTrack.getDuration(),Math.abs(t-a)>1&&y.H4("trBug",{af:""+g.cU(y.audioTrack.z7.info,!1),vf:""+g.cU(y.videoTrack.z7.info,!1),a:""+t,v:""+a}))},CW=function(y){return led(y.Y)},ZNy=function(y){y.K.length?y.V=g.q9(g.q9(y.K).info.Sr):y.Y.K.length?y.V=y.Y.Pv().info:y.V=Kv(y)}, G0=function(y,t){var a={cO:[], xP:[]},r;if((y=y.W)==null)y=void 0;else{ORy(y,y.cO,"og");UNb(y,t);ORy(y,y.cO,"trim");var E=zZ2(y);t=E.cO;E=E.P0;for(var h=[],F=0;F0){var M=Il(O,U);M>=0&&(z=(O.end(M)-U+.1)*1E3)}h.push({formatId:g.cU(x.info.z7.info,y.qr.US),GH:x.info.GH,sequenceNumber:x.info.a5+ y.D,MS:C,ZC:x.info.K,W3:z})}y={cO:t,xP:h}}return(r=y)!=null?r:a},F2=function(y,t,a){a=a===void 0?!1:a; if(y.wN){var r=y.wN.Ro(),E=GM(r,t),h=NaN,F=Kv(y);F&&(h=GM(r,F.z7.index.getStartTime(F.a5)));if(E===h&&y.V&&y.V.K&&yh1(Zu(y),0))return t}y=yJ(y,t,a);return y>=0?y:NaN},xi=function(y,t,a){y.z7.K_(); var r=yJ(y,t);if(r>=0)return r;var E;(E=y.W)==null||Cun(E,t,a);r=Math;E=r.min;var h=y.Y;if(h.J)if(h=h.J,h.lx&&h.lx.type===3)h=h.lx.startTime;else if(h.Y>0){var F=h.V.index;F=g.CJ(F.offsets.subarray(0,F.count),h.Y*h.chunkSize);h=h.V.index.getStartTime(F>=0?F:Math.max(0,-F-2))}else h=0;else h=Infinity;t=E.call(r,t,h);y.V=y.policy.o5?null:y.z7.RJ(t).Sr[0];tQ(y)&&(y.policy.O$&&(a==null?void 0:a.seekSource)===60||y.wN&&y.wN.abort(),y.policy.qO&&(a=y.W)!=null&&(a.Y=void 0));y.L1=0;return y.V?y.V.startTime: t},w3H=function(y){y.J=!0; y.D=!0;y.L=-1;xi(y,Infinity)},aR=function(y){for(var t=0,a=g.p(y.K),r=a.next();!r.done;r=a.next())t+=nL1(r.value.info); return t+=bNy(y.Y)},Ep=function(y,t){t=t===void 0?!1:t; var a=y.loader.getCurrentTime(),r=y.Y.Pv(),E=(r==null?void 0:r.info.L)||0;if((r==null?0:r.info.z7.FN())&&!r.info.Y)if(y.policy.B0)E=r.info.D;else if(y.policy.lX){var h=r.info;E=h.range?h.L:Math.min(h.startTime+Math.min(h.duration*h.V/h.z7.info.Hb,h.duration)+(h.range?h.W:Math.min(h.duration,h.duration*h.K/h.z7.info.Hb)),h.startTime+h.duration)}if(!y.wN){if((y.policy.V||y.policy.T0)&&t&&!isNaN(a)){if(r)return E-a;if(y.policy.T0&&y.z7.info.G7==="f")return Infinity}return 0}if((h=Kv(y))&&r1(h))return h.L; var F=y.wN.Ro(!0);if(t&&r)return h=0,y.policy.V&&(h=tu(F,E+.02)),h+E-a;t=tu(F,a);y.policy.BP&&h&&(r=Il(F,a),F=Il(F,h.D-.02),r===F&&(a=h.L-a,y.policy.Y&&a>t+.02&&y.H4("abh",{bh:t,bhtls:a}),t=Math.max(t,a)));return t},tMb=function(y){var t=Kv(y); return t?t.L-y.loader.getCurrentTime():0},hQ=function(y,t,a,r){if(!y.z7.index.D4(t,!0))return!1; try{hS(y);for(var E=y.Y,h=null,F=E.K.length-1;F>=0;F--){var x=E.K[F];x.info.a5>=t&&(E.K.pop(),E.Y-=pw(x,E.policy.sR),h=x.info)}h&&(E.D=E.K.length>0?E.K[E.K.length-1].info:E.yv,E.K.length!==0||E.D||B8(E,"r"));E.loader.H4("mdstm",{rollbk:1,itag:h?h.z7.info.itag:"",popped:h?h.a5:-1,sq:t,lastslc:E.D?E.D.a5:-1,lastfraget:E.Y.toFixed(3)});if(y.policy.V)return y.V=null,!0;r>a?xi(y,r):y.V=y.z7.At(t-1,!1).Sr[0]}catch(U){return t=h0(U),t.details.reason="rollbkerr",y.loader.handleError(t.errorCode,t.details, t.severity),!1}return!0},AQ=function(y,t){var a; for(a=0;a0?a||t.a5>=y.DE:a},xJ=function(y){var t; return tQ(y)||r1((t=y.Y.Pv())==null?void 0:t.info)},Zu=function(y){var t=[],a=Kv(y); a&&t.push(a);t=g.E9(t,y.Y.i8());a=g.p(y.K);for(var r=a.next();!r.done;r=a.next()){r=r.value;for(var E=g.p(r.info.Sr),h=E.next(),F={};!h.done;F={Wi:void 0},h=E.next())F.Wi=h.value,r.Xe&&(t=g.op(t,function(x){return function(U){return!uZN(U,x.Wi)}}(F))),(E6(F.Wi)||F.Wi.type===4)&&t.push(F.Wi)}y.V&&!fHN(y.V,g.q9(t),y.V.z7.IP())&&t.push(y.V); return t},yh1=function(y,t){if(!y.length)return!1; for(t+=1;t=t){t=h;break a}}t=E}return t<0?NaN:yh1(y,a?t:0)?y[t].startTime:NaN},sp=function(y){return!(!y.V||y.V.z7===y.z7)},aDy=function(y,t,a){return y.policy.V?Ep(y,!0)t&&y.L1080&&!y.Rg&&(y.C1=36700160,y.n1=5242880,y.r0=Math.max(4194304,y.r0),y.Rg=!0);t.video.qualityOrdinal>2160&&!y.GI&&(y.C1=104857600,y.Hb=13107200,y.GI=!0);g.Gw(y.P4.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?t.isEncrypted()&&g.IB()&&g.io("samsung")&&(g.io("kant")||g.io("muse"))&&(y.Hb=g.Gw(y.P4.experiments,"html5_samsung_kant_limit_max_bitrate")):t.isEncrypted()&&g.IB()&&g.io("kant")&&(y.Hb=1310720);y.hI!==0&&t.isEncrypted()&& (y.Hb=y.hI);y.xc!==0&&t.isEncrypted()&&a&&(y.Hb=y.xc);t.Hb&&(y.u4=Math.max(y.ll,Math.min(y.r0,5*t.Hb)))}; br=function(y){return y.V&&y.G0}; Op=function(y){return y.V&&y.SQ&&y.playbackStartPolicy}; L2=function(y,t,a,r){y.SQ&&(y.playbackStartPolicy=t,y.nu=a,y.Zi=r)}; C2=function(y,t,a){a=a===void 0?0:a;return g.Gw(y.P4.experiments,t)||a}; O37=function(y){var t=y===void 0?{}:y;y=t.s0;var a=t.Pt;var r=t.dP;var E=t.lJ;t=t.rq;this.s0=y;this.Pt=a;this.dP=r;this.lJ=E;this.rq=t}; eZ7=function(y,t){if(t<0)return!0;var a=y.lJ();return t0)return 2;if(t<0)return 1;a=y.lJ();return t(0,g.Wx)()?0:1}; RR=function(y,t,a,r,E,h,F,x,U,C,z,O,M,L){L=L===void 0?null:L;g.H.call(this);var w=this;this.loader=y;this.policy=t;this.videoTrack=a;this.audioTrack=r;this.Y=E;this.V=h;this.timing=F;this.D=x;this.schedule=U;this.qr=C;this.K=z;this.hF=O;this.sF=M;this.iW=L;this.AF=!1;this.UC="";this.PG=null;this.IS=NaN;this.Vv=!1;this.mL=null;this.dO=this.Z=NaN;this.Hv=this.L=0;this.logger=new g.kK("dash");this.Wb={YD:function(d,k){return w.YD(d,k)}}; this.policy.WH>0&&(this.UC=g.wu(this.policy.WH));this.policy.Wy&&(this.W=new MZ(this.loader,this.policy,this.schedule),g.c(this,this.W))}; PKu=function(y,t,a){var r=t.V?t.V.z7.Pb:t.z7.Pb;var E=y.Y,h;(h=!y.policy.oT)||(h=WF(31,r.V)===WF(37,r.K));h?r=!1:(E=c3(E,WF(32,r.K)),h=6E4*Math.pow(E.D,1.6),(0,g.Wx)()=E.D?(E.H4("sdai",{haltrq:h+1,est:E.D}),r=!1):r=E.K!==2;if(!r||!iu(t.V?t.V.z7.Pb:t.z7.Pb,y.policy,y.Y,y.loader.iX)||y.loader.isSuspended&&(!d1(y.schedule)||y.loader.Ad))return!1;if(y.policy.D&&iK>=5)return g.Ge(y.loader.l5),!1;if(y.qr.isManifestless){if(t.K.length>0&&t.V&&t.V.a5===-1||t.K.length>=y.policy.fv||!y.policy.NQ&&t.K.length>0&&!y.policy.Z.Pt)return!1;if(t.J)return!y.qr.isLive||!isNaN(y.IS)}if(hJ7(t))return!1; if(!t.V){if(!t.z7.K_())return!1;xi(t,y.loader.getCurrentTime())}if(CW(t)&&(t.Pv()!==CW(t)||y.loader.isSuspended))return!1;E=(r=y.policy.CK)&&!t.K.length&&Ep(t,!0)=y.policy.b$)return!1;r=t.V;if(!r)return!0;r.type===4&&r.z7.K_()&&(t.V=g.q9(r.z7.ya(r)),r=t.V);if(!r.kV()&&!r.z7.Ox(r))return!1;h=y.qr.d7||y.qr.D;if(y.qr.isManifestless&&h){h=t.z7.index.lJ(); var F=a.z7.index.lJ();h=Math.min(h,F);if(t.z7.index.YY()>0&&h>0&&r.a5>=h)return t.DE=h,a.DE=h,!1}if(r.z7.info.audio&&r.type===4||r.kV())return!1;h=!t.D&&!a.D;if(E=!E)E=r.L,E=!!(a.V&&!r1(a.V)&&a.V.LNYu(y,t)?(NYu(y,t),!1):(y=t.wN)&&y.isLocked()?!1:!0}; NYu=function(y,t){var a=y.V;a=a.V?a.V.zO:null;if(y.policy.L1&&a)return a.startSecs+a.iK+15;t=AS(y.loader,t);y.policy.zl>0&&(a=((0,g.Wx)()-y.loader.CO)/1E3,t=Math.min(t,y.policy.zl+y.policy.NC*a));t=y.loader.getCurrentTime()+t;return y.policy.Zq&&(a=d0N(y.loader)+y.policy.Zq,a=0||t.Pb.RH("defrag")==="1"||t.Pb.RH("otf")==="1"){t=null;break a}E=yH(0,4096)}E=new $K([new a1(5,r.z7,E,"createProbeRequestInfo"+r.J,r.a5)],t.K);E.j8=a;E.V=t.V;t=E}t&&NZ(y,t)}}; NZ=function(y,t){y.loader.pT(t);var a=nL1(t),r=y.loader.GV();a={xE:y.schedule,Bo:a,I0:FO7(y.D,a),EG:rZ(t.Sr[0]),CH:Q2(64,t.Pb.V),cI:y.policy.Y,AM:function(F,x){y.loader.Cs(F,x)}}; if(y.schedule.K.J){var E,h;a.YP=(((E=y.videoTrack.z7)==null?void 0:E.info.Hb)||0)+(((h=y.audioTrack.z7)==null?void 0:h.info.Hb)||0)}y.PG&&(a.a5=t.Sr[0].a5,a.IS=t.IS,a.PG=y.PG);r={e9:mAd(t,y.loader.getCurrentTime()),zn:y.policy.P1&&Cw(t)&&t.Sr[0].z7.info.video?Ccb(y.K):void 0,yH:y.policy.L1,poToken:y.loader.YS(),pW:y.loader.E5(),UC:y.UC,dO:isNaN(y.dO)?null:y.dO,iW:y.iW,sF:y.sF,Hv:y.Hv,ox:r};return new Ex(y.policy,t,a,y.Y,function(F,x){try{a:{var U=F.info.Sr[0].z7,C=U.info.video?y.videoTrack:y.audioTrack; if(!(F.state>=2)||F.isComplete()||F.UE()||!(!y.loader.tF||y.loader.isSuspended||Ep(C)>3)){var z=MMx(F,y.policy,y.Y);z===1&&(y.Vv=!0);Xe2(y,F,z);if(F.isComplete()||F.Qv()&&x<3){if(y.policy.Y){var O=F.timing.Z3();O.rst=F.state;O.strm=F.xhr.g9();O.cncl=F.xhr&&F.dV.L?1:0;y.loader.H4("rqs",O)}F.Ms&&y.loader.H4("sbwe3",{},!0)}if(!y.Qv()&&F.state>=2){nKH(y.timing,F,U);var M=y.loader;y.dO&&F.vV&&M&&(y.dO=NaN,y.loader.fP(F.vV),y.loader.Qd(),y.loader.H4("cabrUtcSeek",{mediaTimeSeconds:F.vV}));F.kU&&y.dO&&F.kU&& !F.kU.action&&(y.loader.yf(y.dO),y.dO=NaN,y.loader.H4("cabrUtcSeekFallback",{targetUtcTimeSeconds:y.dO}));F.kW&&y.loader.WL(F.kW);y.policy.MP&&(y.Hv=F.Hv);if(F.state===3){AQ(C,F);Cw(F.info)&&kJ(y,C,U,!0);if(y.mL){var L=F.info.Jd();L&&y.mL.hQ(F.info.Sr[0].a5,U.info.id,L)}y.loader.OY()}else if(F.isComplete()&&F.info.Sr[0].type===5){if(F.state!==4)F.oN()&&y.loader.handleError(F.Jl(),F.fH());else{var w=(F.info.Sr[0].z7.info.video?y.videoTrack:y.audioTrack).K[0]||null;w&&w instanceof Ex&&w.UE()&&w.UX()}F.dispose()}else{if(!F.oN()&& F.Ix&&F.state>=2&&F.state!==3){var d=F.xhr.getResponseHeader("X-Response-Itag");if(d){var k=UO1(y.K,d),e=F.info.Y;if(e){var v=e-k.jV();k.Y=!0;F.info.Sr[0].z7.Y=!1;var l=k.lT(v);F.info=l;if(F.Am){var V=F.Am,B=l.Sr;(B.length!==V.Sr.length||B.length=y.policy.AS&&y.mL&&F.info.isDecorated()&&Xb==="net.badstatus"&&Sf(y.mL,b7,A7))){var IV=(En.info.video&&En.Pb.Y>1||F.L_===410||F.L_===500||F.L_===503)&&!(OP(y.K.L).size>0)&&!Q2(88,En.Pb.V),md=F.fH(),KI=En.info.video?y.videoTrack:y.audioTrack;IV&&(md.stun="1");y.loader.handleError(Xb,md);y.Qv()||(IV&&XY(y.K,En),AQ(KI,F),y.loader.OY())}}else k=1,y.mL&&F.info.isDecorated()&& Xb==="net.badstatus"&&Sf(y.mL,b7,A7)&&(k=0),y.qr.isLive&&F.Jl()==="net.badstatus"&&y.L<=y.policy.Dk*2?(Bgx(y.qr),y.qr.d7||y.qr.isPremiere?Ux(y.loader,0,{yD:"badStatusWorkaround"}):y.qr.D?Ux(y.loader,y.qr.qp,{yD:"badStatusWorkaround",vK:!0}):QJ(y.loader)):y.loader.handleError(Xb,F.fH(),k);isNaN(y.dO)||(y.loader.yf(y.dO),y.dO=NaN)}y.policy.ZA&&!F.isComplete()?vc(y.loader):y.loader.OY();var ec=wey(F,y.policy,y.Y);Xe2(y,F,ec)}}}}}catch(Q){Xb=y.AF?1:0,y.AF=!0,F=ED(Xb),Xb=h0(Q,Xb),y.loader.handleError(Xb.errorCode, Xb.details,Xb.severity),F||y.loader.Xi()}},r)}; Wc=function(y,t){if(y.policy.useUmp&&t.Qv())return!1;try{var a=t.info.Sr[0].z7,r=a.info.video?y.videoTrack:y.audioTrack;if(y.qr.isManifestless&&r){y.L=0;r.J&&(t.Qv(),t.isComplete()||t.il(),r.J=!1);t.wY()&&y.loader.UZ.lW(1,t.wY());var E=t.YY(),h=t.dE();Zr(y.qr,E,h)}if(t.info.EG()&&!U6(t.info))for(var F=g.p(t.U6()),x=F.next();!x.done;x=F.next())GuF(r,x.value);for(y.loader.getCurrentTime();r.K.length&&r.K[0].state===4;){var U=r.K.shift();T9n(r,U);r.Ff=U.oO()}r.K.length&&T9n(r,r.K[0]);var C=!!CW(r);C&& t instanceof rH&&(a.info.Ee()?Vhy(y.timing):u9y(y.timing));return C}catch(z){t=t.fH();t.origin="hrhs";a:{y=y.loader;a=z;if(a instanceof Error){t.msg||(t.msg=""+a.message);t.name||(t.name=""+a.name);if(a instanceof g.RV&&a.args)for(r=g.p(Object.entries(a.args)),E=r.next();!E.done;E=r.next())h=g.p(E.value),E=h.next().value,h=h.next().value,t["arg"+E]=""+h;g.ls(a);if(a.level==="WARNING"){y.Om.Xo(t);break a}}y.handleError("fmt.unplayable",t,1)}return!1}}; k5F=function(y){var t=y.videoTrack.z7.index;y.PG=new O37({s0:y.policy.s0,Pt:y.policy.Z.Pt,dP:t.Ml(),lJ:function(){return t.lJ()}, rq:function(){return t.rq()}})}; kJ=function(y,t,a,r){if(!(a.K_()||a.qd()||a.Y||!iu(a.Pb,y.policy,y.Y,y.loader.iX)||a.info.G7==="f"||y.policy.V)){if(r){r=y.D;var E=a.info;r=A9d(r,E.video?r.policy.m6:r.policy.Vu,E.Hb)}else r=0;r=a.lT(r);y=NZ(y,r);U6(r)&&I7(t,y);a.Y=!0}}; p2=function(y,t,a,r,E,h,F,x){g.H.call(this);var U=this;this.loader=y;this.Zs=t;this.videoTrack=a;this.audioTrack=r;this.qr=E;this.AF=h;this.isAudioOnly=F;this.Z=x;this.K=Eu;this.DE=!1;this.logger=new g.kK("sabr");this.hF=this.W=this.o5=this.Vv=!1;this.videoInfos=this.J=this.AF.videoInfos;this.Y=this.d0=this.AF.V;this.V=new Cv(t,h,function(C,z){U.loader.H4(C,z)}); this.isAudioOnly&&fDn(this,this.qr.V["0"])}; Wvx=function(y,t){var a=[];t=g.p(t);for(var r=t.next();!r.done;r=t.next())a.push(g.cU(r.value,y.qr.US));return a}; fDn=function(y,t,a){t!==y.D&&(y.D&&(y.DE=!0),y.D=t,y.qn(t,y.videoTrack,a))}; Q$u=function(y,t){br(y.Zs)&&(y.o5=t.reason==="m"||t.reason==="l"?!0:!1);t.reason==="m"?t.isLocked()&&j$7(y,t.V):SJF(y,t)?ef(y,t.K,t.V):y.videoInfos=y.J;y.hF=!0;y.K=t}; SJF=function(y,t){return y.Zs.Ru1&&t.reason==="l"||y.Zs.h6?!1:y.Zs.Y_?!0:t.reason==="l"||t.reason==="b"||t.reason==="o"}; j$7=function(y,t){var a=y.V.V;if(a){y.videoInfos=y.J;var r=g.D9(y.videoInfos,function(E){return E.id===a}); r&&r.video.qualityOrdinal===t?y.videoInfos=[r]:(r=y.videoInfos.map(function(E){return E.id}),y.loader.H4("sabrpf",{pfid:""+a, vfids:""+r.join(".")}),ef(y,t,t),Lv(y.V,""))}else ef(y,t,t)}; ef=function(y,t,a){y.videoInfos=y.J;y.videoInfos=g.op(y.videoInfos,function(r){return r.video.qualityOrdinal>=t&&r.video.qualityOrdinal<=a})}; vp2=function(y,t,a){if(y.Z){var r=g.op(y.Y,function(E){return E.id===y.Z}); return l1(r,a).includes(t)}r=g.op(y.Y,function(E){var h;return!((h=E.qK)==null||!h.isDefault)}); return r.length>0?l1(r,a).includes(t):l1(y.Y,a).includes(t)}; l1=function(y,t){return y.map(function(a){return KR(g.cU(a,t))})}; pey=function(y){var t;if((t=y.K)==null?0:t.isLocked())return y.videoInfos;var a=OP(y.V);t=g.op(y.videoInfos,function(r){return r.Hb>y.Zs.Hb?!1:!a.has(r.id)}); Kk1(y.V)&&(t=g.op(t,function(r){return r.video.width<=854&&r.video.height<=480})); return t}; lD7=function(y,t,a,r){var E=y.qr,h=y.Om.getVideoData(),F=y.AK,x=UK7({xE:y.xE,P4:h.G(),Om:y.Om,E2:y.E2,Zs:y.Zs,JY:y.JY,Uu:y.Uu,c7:y.c7,Lv:y.Lv,D3:y.D3,Np:y.Np,IQ:y.IQ,sabrLicenseConstraint:h.sabrLicenseConstraint,Qp:y.Qp,Kf:y.Kf,Lr:y.Lr,y7:y.y7,ufu:!!F,authorizedFormats:h.authorizedFormats}),U=BR(h,y.ox,y.nextRequestPolicy,y.E_,y.dX,y.Op,y.cU);a&&t&&(a=U.PE?U.PE.map(function(M){return M.type}):[],t("sabr",{stmctxt:a.join("_"), unsntctxt:U.VK?U.VK.join("_"):""}));t=y.hK;a=y.HR;if(a===void 0&&t===void 0){var C;a=eJb(E.US,(C=y.fg)==null?void 0:C.video);var z;t=eJb(E.US,(z=y.fg)==null?void 0:z.audio)}if(h.iW)var O=h.iW;h={LH:x,xP:y.xP,hK:t,HR:a,AK:F,videoPlaybackUstreamerConfig:O,aL:U};r&&y.IE?y.IE.length>0&&(h.IE=y.IE):y.Zn&&(h.Zn=y.Zn);h.cO=y.cO;h.g2=E.r0;return h}; eJb=function(y,t){return t?[g.cU(t.info,y)]:[]}; u1=function(y,t,a){var r=this;this.requestType=y;this.Pb=t;this.w0=a;this.K=null;this.Wb={Np:function(){var E;return(E=r.data)==null?void 0:E.Np}, dX:function(){var E;return(E=r.data)==null?void 0:E.dX}, Qp:function(){var E;return(E=r.data)==null?void 0:E.Qp}}}; Q1n=function(y,t,a){t=DE(y.Pb,uIb(y,t,a),t);y.W5()&&t.set("probe","1");return t}; var h7u=function(){return dx[A[3]](this,14)}; uIb=function(y,t,a){y.j8===void 0&&(y.j8=y.Pb.j8(t,a));return y.j8}; VJ=function(y){var t,a;return((t=y.V)==null?void 0:(a=t.LH)==null?void 0:a.FU)||0}; n2=function(y){var t,a;return!!((t=y.V)==null?0:(a=t.LH)==null?0:a.Qp)}; VM7=function(y){var t={},a=[],r=[];if(!y.data)return t;for(var E=0;E0;U--)a.push(x)}a.length!==F?t.error=!0:(h=a.slice(-h),a.length=E,Kv7(t,a,h));break;case 1:Kv7(t,D_,g1);break;case 0:ys(t, t.V&7);a=Gh(t,16);E=Gh(t,16);(a^E)!==65535&&(t.error=!0);t.output.set(t.data.subarray(t.K,t.K+a),t.Y);t.K+=a;t.Y+=a;break;default:t.error=!0}y.Y>y.output.length&&(y.output=new Uint8Array(y.Y*2),y.Y=0,y.K=0,y.D=!1,y.V=0,y.register=0)}y.output.length!==y.Y&&(y.output=y.output.subarray(0,y.Y));return y.error?new Uint8Array(0):y.output}; Kv7=function(y,t,a){t=Z_(t);a=Z_(a);for(var r=y.data,E=y.output,h=y.Y,F=y.register,x=y.V,U=y.K;;){if(x<15){if(U>r.length){y.error=!0;break}F|=(r[U+1]<<8)+r[U]<>=7;C<0;)C=t[(F&1)-C],F>>=1;else F>>=C&15;x-=C&15;C>>=4;if(C<256)E[h++]=C;else if(y.register=F,y.V=x,y.K=U,C>256){F=K2[C];F+=Gh(y,i1[C]);U=i3F(y,a);x=Th[U];x+=Gh(y,IR[U]);if(TY1&&Fa.length&&(y.error=!0);y.register|=(a[r+1]<<8)+a[r]<=0)return ys(y,a&15),a>>4;for(ys(y,7);a<0;)a=t[Gh(y,1)-a];return a>>4}; Gh=function(y,t){for(;y.V=y.data.length)return y.error=!0,0;y.register|=y.data[y.K++]<>=t;y.V-=t;return a}; ys=function(y,t){y.V-=t;y.register>>=t}; Z_=function(y){for(var t=[],a=g.p(y),r=a.next();!r.done;r=a.next())r=r.value,t[r]||(t[r]=0),t[r]++;var E=t[0]=0;a=[];var h=0;r=0;for(var F=1;F7&&(h+=t[F]);for(E=1;E>U&1;x=h<<4|F;if(F<=7)for(U=1<<7-F;U--;)r[U<>=7;F--;){r[U]||(r[U]=-t,t+=2);var C=E&1;E>>=1;U=C-r[U]}r[U]=x}}return r}; Z31=function(y){var t,a,r,E,h,F,x,U,C;return g.m(function(z){switch(z.V){case 1:if(!G5b)throw Error("DecompressionStream is not supported");t=lc.QH();a=new DecompressionStream("gzip");r=a.writable.getWriter();r.write(y);r.close();E=a.readable.getReader();h=new $k([]);case 2:return g.u(z,E.read(),5);case 5:F=z.K;x=F.value;if(U=F.done){z.xG(4);break}h.append(x);z.xG(2);break;case 4:return C=Lu(h),lc.wS("gznb",t,Math.ceil(C.byteLength/16)),z.return(C)}})}; tK=function(y){Yi.call(this,"onesie",y);this.w0=y;this.V={};this.D=!0;this.Y=null;this.queue=new cc(this);this.L={}}; au=function(y){var t=y.queue;t.V.length&&t.V[0].isEncrypted&&!t.K&&(t.V.length=0);t=g.p(Object.keys(y.V));for(var a=t.next();!a.done;a=t.next()){a=a.value;var r=y.V[a];if(!r.j0){var E=y.queue;E.V.push({videoId:r.videoId,formatId:a,isEncrypted:!1});E.K||YJ(E)}}}; yIx=function(y,t){var a=t.totalLength,r=!1;switch(y.Y){case 0:y.Ni(t,y.D).then(function(E){var h=y.w0;h.gV("oprr");h.playerResponse=E;h.Ne||(h.Ry=!1);rd(h)},function(E){y.w0.fail(E)}); break;case 2:y.gV("ormk");t=Lu(t);y.queue.decrypt(t);break;default:r=!0}y.w0.AQ&&y.w0.H4("ombup","id.11;pt."+y.Y+";len."+a+(r?";ignored.1":""));y.Y=null}; tx2=function(y,t){var a,r,E,h,F;return g.m(function(x){switch(x.V){case 1:y.w0.gV("oprgz_s");if(!G5b){x.xG(2);break}g.xs(x,3);return g.u(x,Z31(t),5);case 5:return a=x.K,y.w0.gV("oprgz_n"),y.w0.H4("oprsgz",{i:"n"}),x.return(a);case 3:r=g.Uy(x),y.w0.H4("gzerr",{impl:"native",err:""+r});case 2:if(E=y.w0.G().pM)try{var U=lc.QH(),C=E.DH(t),z=E,O=C!=null?C:t,M=O.byteOffset,L=O.byteLength,w=z.exports.getInflatedSize(M,L);if(w===0)throw Error("wasm_gz: bad input");var d=z.malloc(w),k=z.exports.inflateGzip(M, L,d);if(k)throw z.free(d),Error("wasm_gz: fail"+k);var e=new Uint8Array(z.exports.memory.buffer,d,w);C&&E.free(C.byteOffset);var v=E.rh(e);lc.wS("gzwb",U,Math.ceil(v.byteLength/16));h=v;y.w0.gV("oprgz_w");y.w0.H4("oprsgz",{i:"w"});return x.return(h)}catch(l){y.w0.H4("gzerr",{impl:"wasm",err:""+l})}U=lc.QH();C=g.IDb(new g.D0x(t));lc.wS("gzjb",U,Math.ceil(C.byteLength/16));F=C;y.w0.gV("oprgz_p");y.w0.H4("oprsgz",{i:"j"});return x.return(F)}})}; aQd=function(y){return new Promise(function(t){setTimeout(t,y)})}; rIz=function(y,t){var a=y.G();var r=y.RR&&a.B("html5_onesie_preload_use_content_owner"),E=y.Nn;r=r===void 0?!1:r;if(a=k3(t.j.experiments,"debug_bandaid_hostname")){var h=g.Gw(t.j.experiments,"debug_bandaid_port");h=h>0?a+":"+h:a;a=t.j.experiments.Nr("debug_bandaid_insecure_scheme");t=Hc(t,h,a)}else r&&(E==null?0:E.url)&&!t.K?(h=WF(35,new g.C7(E.url)),t=Hc(t,h)):t=(h=t.V.get(0))==null?void 0:h.location.clone();if(t&&y.videoId){h=nN(y.videoId);y=[];if(h)for(h=g.p(h),a=h.next();!a.done;a=h.next())y.push(a.value.toString(16).padStart(2, "0"));t.set("id",y.join(""));return t}}; EUd=function(y,t,a){a=a===void 0?0:a;var r,E;return g.m(function(h){if(h.V==1)return r=[],r.push(t.load()),a>0&&r.push(aQd(a)),g.u(h,Promise.race(r),2);E=rIz(y,t);return h.return(E)})}; h87=function(y,t,a,r){r=r===void 0?!1:r;y.set("cpn",t.clientPlaybackNonce);y.set("opr","1");var E=t.G();y.set("por","1");EU()||y.set("onem","1");t.startSeconds>0&&y.set("osts",""+t.startSeconds);r||(E.B("html5_onesie_disable_partial_segments")&&y.set("oses","1"),t=E.B("html5_gapless_onesie_no_media_bytes")&&Rh(t)&&t.RR,a&&!t?(t=a.audio,y.set("pvi",a.video.join(",")),E.B("html5_onesie_disable_audio_bytes")||y.set("pai",t.join(",")),hP||y.set("osh","1")):(y.set("oad","0"),y.set("ovd","0"),y.set("oaad", "0"),y.set("oavd","0")))}; FAn=function(y,t,a,r,E){E=E===void 0?!1:E;var h="https://youtubei.googleapis.com/youtubei/"+t.XE.innertubeApiVersion+"/player",F=[{name:"Content-Type",value:"application/json"}];r&&F.push({name:"Authorization",value:"Bearer "+r});F.push({name:"User-Agent",value:g.rI()});g.yd("EOM_VISITOR_DATA")?F.push({name:"X-Goog-EOM-Visitor-Id",value:g.yd("EOM_VISITOR_DATA")}):(a=a.visitorData||g.yd("VISITOR_DATA"))&&F.push({name:"X-Goog-Visitor-Id",value:a});(a=g.yd("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&F.push({name:"X-YouTube-Lava-Device-Context", value:a});(t=k3(t.experiments,"debug_sherlog_username"))&&F.push({name:"X-Youtube-Sherlog-Username",value:t});y=fu(JSON.stringify(y));return{url:h,GK:F,postBody:y,tJX:E,vE:E}}; EL=function(y,t,a,r,E,h,F,x,U){var C=y.KF,z=y.pn;y=y.vjm;var O=C!==void 0&&z!==void 0,M=r.getVideoData(),L,w=t.V.encryptedClientKey;t=O?t.iv:void 0;O=Tq(h,!0);E=E||!!EU()&&O>1572864;return{innertubeRequest:{DCf:y,wz:C,pn:z,encryptedClientKey:w,iv:t,YVX:!0,tf:!0,fZ:"DecompressionStream"in window||!E,tQF:a.experiments.Nr("html5_use_jsonformatter_to_parse_player_response")},LH:UK7({xE:h,P4:a,Om:r,E2:M.startSeconds*1E3}),onesieUstreamerConfig:F,cK:x,aL:BR(M),reloadPlaybackParams:(L=M.G0)==null?void 0: L.reloadPlaybackParams,wbX:U}}; AI7=function(y,t,a,r,E,h,F,x){var U=g.qz(y,NB),C;if(!y.vE)if(C=Jhx(t,U)){var z=C.H3;C=C.signature}else C=z=t.encrypt(U),(0,g.Wx)(),C=H47(new oXb(t.V.Y),C,t.iv);return EL(z&&C?{KF:z,pn:C}:{vjm:U},t,a,r,!!y.vE,E,h,F,x)}; xDF=function(y,t,a,r,E,h,F,x){var U,C,z;return g.m(function(O){if(O.V==1)return U=g.qz(y,NB),g.u(O,m07(t,U),2);if(O.V!=3)return C=O.K,g.u(O,opy(t,C),3);z=O.K;return O.return(EL({KF:C,pn:z},t,a,r,!!y.vE,E,h,F,x))})}; shF=function(y,t,a,r,E,h,F,x){var U=g.qz(y,NB);if(U=Jhx(t,U))return EL({KF:U.H3,pn:U.signature},t,a,r,!!y.vE,E,h,F,x)}; Fq=function(y,t,a){g.H.call(this);var r=this;this.Om=y;this.playerRequest=t;this.xE=a;this.logger=new g.kK("onesie");this.ZB=[];this.xhr=null;this.state=1;this.Bv=new M2;this.HW=!1;this.playerResponse="";this.kP=new fW(this);this.z1=new tK(this);this.Gg="";this.UH=this.y5=!1;this.H$="";this.enableCompression=this.Ne=this.v6=!1;this.CC=[];this.FM=-1;this.Y3=0;this.j=this.Om.G();this.videoData=this.Om.getVideoData();this.AQ=this.j.Bb();this.GN=this.j.ZA;this.Hi=new m$(this.GN.V);this.WR=this.j.B("html5_onesie_check_timeout"); this.Uo=new g.Te(this.T9,500,this);this.VJ=new g.Te(this.JG,1E4,this);this.Wm=new g.Te(function(){if(!r.isComplete()){var E=hK(r);r.fail(new g.rg("net.timeout",E))}},1E3); this.QZ=new g.Te(this.Q7G,2E3,this);this.c6=this.Om.E5();this.Ry=this.B("html5_onesie_wait_for_media_availability");g.c(this.videoData,this);g.c(this,this.Uo);g.c(this,this.VJ);g.c(this,this.QZ);y=Wt();hP&&y&&(this.OM=new Map);this.As=new Map;this.tD=new Map;this.z2=new Map;this.LF=new Map}; qZ=function(y,t){var a;return(a=y.OM)==null?void 0:a.get(t)}; UDu=function(y,t,a){var r;return g.m(function(E){if(E.V==1)return y.gV("oprd_s"),$Dz(y)?g.u(E,H3V(y.Hi,t,a),3):(r=y.Hi.decrypt(t,a),E.xG(2));E.V!=2&&(r=E.K);y.gV("oprd_c");return E.return(r)})}; CPn=function(y){return y.B("html5_onesie_host_probing")||y.AQ?hP:!1}; rd=function(y){if(!y.playerResponse)return!1;if(y.v6)return!0;var t=y.videoData.B("html5_onesie_audio_only_playback")&&PQ(y.videoData);if(y.OM&&y.Ry){if(!y.OM.has(y.Gg))return!1;var a=y.OM.get(y.Gg),r;if(r=a){r=!1;for(var E=g.p(a.qP.keys()),h=E.next();!h.done;h=E.next())if(h=a.qP.get(h.value))for(var F=g.p(h.MO),x=F.next();!x.done;x=F.next())x.value.Qq>0&&(h.Ee?r=!0:t=!0);r=!(t&&r)}if(r)return!1}y.gV("ofr");y.Bv.resolve(y.playerResponse);if(!y.WR){var U;(U=y.Wm)==null||U.start();y.VJ.start()}return y.v6= !0}; OXu=function(y){if(y.OM&&!y.B("html5_onesie_media_capabilities")){y.gV("ogsf_s");var t=h0F(y.Om.getVideoData(),function(r,E){y.H4(r,E)}),a=z8u(y.Om); t.video=IE7(a,t.video);y.gV("ogsf_c");if(t.video.length)return t;y.H4("ombspf","l."+a.K+";u."+a.V+";o."+a.Y+";r."+a.reason)}}; $Dz=function(y,t){return y.B("html5_onesie_sync_request_encryption")||(t==null?0:t.vE)||g.UJ(y.j)&&y.B("html5_embed_onesie_use_sync_encryption")?!1:!!EU()}; hK=function(y){if(!y.S_)return{};var t=y.S_.Z3(),a;t.d=(a=y.S_.d0)==null?void 0:a.Tv();t.shost=y.pk;t.ty="o";return t}; LAF=function(y,t){var a,r;(r=(y=(a=y.OM)==null?void 0:a.get(t))==null)||(t=y.Y?!1:y.Y=!0,r=!t);return!r}; AK=function(y,t,a,r,E,h,F,x,U,C,z,O){g.H.call(this);var M=this;this.Om=y;this.loader=t;this.policy=a;this.audioTrack=r;this.videoTrack=E;this.qr=h;this.xE=F;this.Az=x;this.K=U;this.timing=C;this.AF=z;this.Vv=O;this.V=[];this.D={};this.r0=this.n1=!1;this.hF=this.R5=this.D3=0;this.Ff={Ot:0,vv:0};this.T7={Ot:0,vv:0};this.mL=null;this.DE={cO:[],xP:[]};this.d0={cO:[],xP:[]};this.J=null;this.L=[];this.L1=0;this.JF=!1;this.Wb={ytf:function(){return M.V}, RaX:function(){return M.D}, uA1:function(){M.V.length=0}, oxf:function(){return M.videoData.Ff}, VYe:function(){return M.hF}, e2e:function(L){M.hF=L}, Ky0:function(L){M.Ff.vv=L}, wQ:function(L){M.J=L}, q9:function(L){M.L=L}, z6:function(){return M.z6()}}; this.videoData=this.Om.getVideoData();this.W=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.jF;this.policy.Wy&&(this.o5=new MZ(this.loader,this.policy,this.xE),g.c(this,this.o5))}; R8V=function(y,t){if(Mxd(y)){t=wQx(y,t);y.V.push(t);var a;(a=y.o5)==null||w1(a,y.qr.hF);y.W>0&&y.Ff.vv++}}; wQx=function(y,t){y.policy.W&&y.loader.H4("sabrcrq",{create:1});var a=new u1(0,y.qr.hF,y);y.K.hF=!1;return PPz(y,a,t)}; xQ=function(y){var t,a=y.policy.L&&((t=y.loader)==null?void 0:t.hN());t=y.loader.getCurrentTime()||0;t=NUy(y,t);if(y.policy.SF&&y.loader.isSeeking()){var r=yJ(y.videoTrack,t);y.loader.H4("asmtfnctv",{b:t,a:r});isNaN(r)||(t=r)}r=y.loader.fJ()||0;t+=r;r=cQ(y.videoData)||g.BQ(y.videoData);var E=0;a?(r&&(E=Number.MAX_SAFE_INTEGER),y.videoData.Cx&&(E=Math.ceil(y.videoData.qp*1E3))):E=Math.ceil(t*1E3);return Math.min(Number.MAX_SAFE_INTEGER,E)}; sL=function(y){return y.policy.EM&&!!y.J}; NUy=function(y,t){if(y.loader.isSeeking())return t;var a=y.Om.uJ();if(!a)return t;a=a.FC();if(a.length===0||TM(a,t))return t;if(!y.videoTrack.ut(t)&&!y.audioTrack.ut(t))return y.loader.H4("sundrn",{b:0,lt:t}),t;for(var r=t,E=Infinity,h=0;ht)){var F=t-a.end(h);F=20)?(y.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),t):r}; UL=function(y,t,a){y=y.loader.fJ()||0;return $Q(t,(a+y)*1E3)/1E3+a}; Mxd=function(y){if(!dDN(y,y.Ff)||xJ(y.audioTrack)&&xJ(y.videoTrack))return!1;if(y.policy.K)if(y.policy.J){var t;if((t=y.Vv)==null)var a=0;else{a=!1;t=g.p(t.V.entries());for(var r=t.next();!r.done;r=t.next())if(r=g.p(r.value),r.next(),r=r.next().value,r.event!=="predictStart"&&r.wm===5){var E=void 0,h=void 0;((E=r)==null?0:E.Xt)&&Date.now()-((h=r)==null?NaN:h.Xt)>1E4?r.wm=1:a=!0}}if(a)return!1}else if(a=!1,y.AF.K===2?a=!0:y.AF.K===3&&(xQ(y),y.loader.fJ(),E=G0(y.audioTrack,y.loader.isSeeking()).cO, t=G0(y.videoTrack,y.loader.isSeeking()).cO,r=y.loader.getCurrentTime()||0,E=UL(y,E,r),t=UL(y,t,r),t=Math.min(E,t),r=y.AF,t>=r.Y?(r.H4("sdai",{haltrq:t,est:r.Y}),t=!0):t=!1,t&&(a=!0)),a&&y.policy.W&&y.loader.H4("sabrcrq",{waitad:1}),a)return!1;y.policy.TR&&(y.DE=CH(y,y.audioTrack),y.d0=CH(y,y.videoTrack));if(!y.Y)return y.policy.W&&y.loader.H4("sabrcrq",{nopolicy:1}),!0;if(y.Om.WA())return y.policy.W&&y.loader.H4("sabrcrq",{utc:1}),!0;if(y.K.W)return y.policy.W&&y.loader.H4("sabrcrq",{audio:1}),!0; if(y.policy.tM&&y.K.hF)return y.policy.W&&y.loader.H4("sabrcrq",{constraint:1}),!0;if(!y.Y.targetAudioReadaheadMs||!y.Y.targetVideoReadaheadMs)return y.policy.W&&y.loader.H4("sabrcrq",{noreadahead:1}),!0;if(y.policy.L&&y.loader.hN())return y.policy.W&&y.loader.H4("sabrcrq",{seekToHead:1}),!0;a=Math.min(AS(y.loader,y.audioTrack)*1E3,y.Y.targetAudioReadaheadMs);t=Math.min(AS(y.loader,y.videoTrack)*1E3,y.Y.targetVideoReadaheadMs);var F=Math.min(a,t),x=y.Om.getCurrentTime()*1E3,U=XQ7(y,x);r=U.QF;E=U.aQ; h=U.K5;U=U.f9;var C=rt||r>=0&&E.oY>r+1)break;a=Math.max(a,E.startTimeMs+E.durationMs);r=Math.max(r,E.Z$)}return Math.max(0,a-t)}; PPz=function(y,t,a){var r={xE:y.xE,AM:function(U,C){y.Om.Cs(U,C)}, EG:y.policy.aJ,cI:y.policy.Y};y.xE.K.J&&(r.YP=(y.videoTrack.z7.info.Hb||0)+(y.audioTrack.z7.info.Hb||0));y.policy.pI&&(r.dP=y.audioTrack.z7.index.Ml(),r.EG=!1);var E=uIb(t,y.policy,y.D)?2:1;E!==y.hF&&(y.hF=E,fQb(y));a=y.z6(a);if(y.policy.AF&&y.policy.Y&&a.E_){for(var h=E="",F=g.p(a.E_),x=F.next();!x.done;x=F.next())x=x.value,y.videoData.sabrContextUpdates.has(x)||y.policy.AF&&a.Op&&a.Op.type===x?E+="_"+x:h+="_"+x;y.loader.H4("sabrbldrqs",{ctxts:E,misctxts:h})}!t.setData(a,y.policy,y.D)&&y.policy.AF&& y.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);r=new yD(y.policy,t,y.qr,y.D,y,r,y.loader.E5());tr(y.timing);y.policy.W&&y.loader.H4("sabrcrq",{rn:r.qU(),probe:t.W5()});return r}; LH=function(y,t){if(t.Qv()||y.Qv())y.policy.sx||(y.policy.L?zK(y.loader):y.loader.OY());else{if(y.policy.Y&&t.isComplete()&&t instanceof yD){var a=y.loader,r=a.H4,E,h,F=Object.assign(t.S_.Z3(),{rst:t.state,strm:t.xhr.g9(),d:(E=t.S_.d0)==null?void 0:E.Tv(),cncl:t.xhr&&t.dV.L?1:0,rqb:t.Ky,cwt:t.dV.Y,swt:(h=t.fk)==null?void 0:h.JB});E=Object.assign(VM7(t.info),F);r.call(a,"rqs",E)}if(t.isComplete()&&t.W5()&&t instanceof yD)y.policy.nJ?t.w5()?(t.dispose(),y.V.length===0?y.loader.OY():(y=y.V[0],y instanceof yD&&y.UE()&&y.UX())):t.oN()&&y.loader.handleError(t.Jl(),t.fH()):(t.dispose(),y.loader.OY());else{if(t.r5())t instanceof yD&&nKH(y.timing,t),fQb(y),OL(y);else if(t.oN())if(a=y.Om.WA(),t instanceof yD&&n2(t.info)&&a&&y.loader.yf(a),t instanceof yD&&e0V(t)){var x;(x=y.loader.vr)==null||jr(x)}else t instanceof Fq?y.V.pop():(x=1,t.canRetry()&&jf(y.loader)&&(WAN(y,t),x=0),y.loader.handleError(t.Jl(),t.fH(),x));else{if(y.loader.isSuspended&&!t.isComplete())return;OL(y)}t.Qv()||t instanceof Fq||(t.isComplete()? x=wey(t,y.policy,y.D):(x=MMx(t,y.policy,y.D),x===1&&(y.n1=!0)),x!==0&&(a=new u1(1,t.info.Pb),a.j8=x===2,PPz(y,a)));y.policy.ZA&&!t.isComplete()?vc(y.loader):y.loader.OY()}}}; OL=function(y){for(;y.V.length&&y.V[0].I$(y.gH());){var t=y.V.shift();jh7(y,t)}y.V.length&&jh7(y,y.V[0])}; jh7=function(y,t){t instanceof yD&&(y.C1=t);var a=new Set(t.lc(y.gH()));a=g.p(a);for(var r=a.next();!r.done;r=a.next()){var E=r.value;if(!(r=!(t instanceof Fq))){r=y.K;var h=r.qr.US,F=l1(r.videoInfos,h);h=vp2(r,E,h);var x=F.includes(E);!r.Zs.bI||h||x||r.loader.H4("sabrcpf",{fid:""+E,vfids:""+F.join("."),said:r.Z||""});r=h||F.includes(E)}if(r&&(r=t.i8(E,y.gH()),F=y.policy.EM&&DG(r[0].z7.info.mimeType),t.il(E,y.gH())))for(E=t.U6(E,y.gH()),E=g.p(E),h=E.next();!h.done;h=E.next())if(h=h.value,y.policy.Y&& t instanceof Fq&&y.loader.H4("omblss",{s:h.info.iJ()}),F)x=y.timing,x.AF||(x.AF=(0,g.Wx)(),g.lT("fcb_r",x.AF,x.V)),x=y,x.videoData.US()&&x.J&&KR(x.J)===KR(g.cU(h.info.z7.info,x.qr.US))&&x.Om.publish("sabrCaptionsDataLoaded",h,x.q9.bind(x));else{x=h.info.z7.info.Ee();var U=h.info.z7;if(x){var C=void 0;var z=y.K,O=(C=t.Vg(y.gH()))==null?void 0:C.token;z.W&&U!==z.L?C=!0:(z.W=!1,U!==z.L&&(z.L=U,z.qn(U,z.audioTrack,O)),C=!1);if(C)continue}else C=void 0,fDn(y.K,U,(C=t.Vg(y.gH()))==null?void 0:C.token); C=x?y.audioTrack:y.videoTrack;t instanceof Fq&&(C.J=!1,t instanceof Fq&&(x?Vhy(y.timing):u9y(y.timing)));try{T0(C,r,h)}catch(M){h=h0(M),y.loader.handleError(h.errorCode,h.details,h.severity),C.Xi(),y.FW(!1,"pushSlice"),zK(y.loader)}}}}; WAN=function(y,t){y.policy.AF?y.V.splice(y.V.indexOf(t)).forEach(function(a){a.dispose()}):(y.V.pop(),t==null||t.dispose())}; Su7=function(y,t,a){for(var r=[],E=0;E0)for(var t=g.p(y.videoData.sabrContextUpdates.keys()),a=t.next();!a.done;a=t.next()){a=a.value;var r=void 0;((r=y.videoData.sabrContextUpdates.get(a))==null?0:r.sendByDefault)&&y.videoData.Ff.add(a)}if(y.policy.AF&&y.V.length)for(t=g.p(y.V),a=t.next();!a.done;a=t.next())(a=a.value.s_())&&a.type&&a.sendByDefault&&y.videoData.Ff.add(a.type)}; Qhn=function(y){y.policy.IR&&(y.yv=void 0,y.D3=0)}; vUz=function(y,t){if(t.oN()||t.Qv()){var a=y.loader,r=a.H4,E=t.state;y=y.gH();var h,F;if((t=(h=t.OM)==null?void 0:h.get(y))==null)t=void 0;else{h=0;y=t.lc();for(var x=0;x0){var a=Math.floor((0,g.Wx)()/1E4);if(a===t.Ot){if(t.vv>=y.W){t.vv===y.W&&(a={reason:"toomanyrequests"},a.limit=t.vv,y.loader.handleError("player.exception",a),t.vv+=1);t=!1;break a}}else t.Ot=a,t.vv=0}t=!0}if(!t||y.loader.isSuspended&&y.loader.Ad)return!1;if(y.Z&&(0,g.Wx)()0)||y.policy.AF&&y.V.length===1&&y.V[0].xd()?!0:!1){var r;t=(r=y.qr.hF)!=null&&iu(r,y.policy,y.D,y.loader.iX)?!0:!1}return t&&!y.JF?!0:!1}; XQ7=function(y,t){var a=pQ2(y),r=a.K5;a=a.f9;if(y.policy.TR){var E=$Q(y.DE.cO,t);y=$Q(y.d0.cO,t)}else E=r,y=a;return{QF:E,aQ:y,K5:r,f9:a}}; pQ2=function(y){var t=Ep(y.audioTrack,!0)*1E3;y=Ep(y.videoTrack,!0)*1E3;return{K5:t,f9:y}}; e8n=function(y){this.Om=y;this.V=new Map;this.delay=null}; Mo=function(y,t){if(jL(y.Om.getPlayerState())&&y.V.size!==0){var a=t!=null?t:Array.from(y.V.values()).sort(function(E,h){return E.mediaTime-h.mediaTime}); t=y.getCurrentTime();var r=(a[0].mediaTime-t)*1E3/y.Om.getPlaybackRate();if(r<500)for(t=r>0?lQb(y):t,a=g.p(a),r=a.next();!r.done;r=a.next())if(r=r.value,t>=r.mediaTime)r.resolve([r.mediaTime,r.id]),y.V.delete(r.id);else break;uB1(y,t)}}; VxN=function(y,t,a){y.V.delete(a);return new Promise(function(r){y.V.set(a,{id:a,mediaTime:t,resolve:r});r=Array.from(y.V.values()).sort(function(E,h){return E.mediaTime-h.mediaTime}); a===r[0].id&&Mo(y,r)})}; nUn=function(y){var t;(t=y.delay)==null||t.dispose();y.V.clear()}; uB1=function(y,t){var a;(a=y.delay)==null||a.dispose();y.delay=null;a=Array.from(y.V.values()).sort(function(r,E){return r.mediaTime-E.mediaTime}); a.length!==0&&(t=(a[0].mediaTime-t)*1E3/y.Om.getPlaybackRate(),y.delay=new g.Te(function(){Mo(y)},t>500?t-500:t),y.delay.start())}; lQb=function(y){var t,a;return(a=(t=y.Om.uJ())==null?void 0:t.getCurrentTime())!=null?a:y.Om.getCurrentTime()}; wd=function(y,t,a){var r=this;this.Y=y;this.cpn=t;this.Om=a;this.V=new Map;this.K=new Map;this.J=NaN;this.W=!1;this.D=this.hV="";this.isSeeking=!1;this.L=new e8n(a);this.OV=a.OV;this.Om.subscribe("statechange",this.Z,this);this.Om.subscribe("SEEK_TO",function(){r.jG()}); this.Om.subscribe("SEEK_COMPLETE",function(){mDb(r)}); this.hV=this.D=this.cpn}; oU2=function(y,t,a){var r=!0;r=r===void 0?!1:r;var E=y.V.get(t),h=y.Y.getStartTime(t),F=y.Y.getDuration(t);y.W=!1;var x=h,U;((U=E==null?void 0:E.V)!=null?U:[y.cpn]).forEach(function(C,z){var O,M=(O=E==null?void 0:E.K[z])!=null?O:F;if(a>=x&&aE?Ru(y,h,y.V.get(h)):h===E&&Ru(y,h,y.V.get(h),r-y.Y.getStartTime(h))})}; JIN=function(y,t,a,r){r=r===void 0?!1:r;t!==y.hV&&(y.hV=t,y.Om.publish("playbackstarted",t,a+y.Om.fJ(),r))}; bX7=function(y,t,a,r){y.D=a;a=t+"."+a;y.K.has(t)?y.K.get(t).push(a):y.K.set(t,[a]);VxN(y.L,r,a).then(function(E){var h=g.p(E);E=h.next().value;h=h.next().value;var F=g.p(h.split("."));h=F.next().value;F=F.next().value;h=g.p([Number(h),F]);h.next();h=h.next().value;JIN(y,h,E)})}; Pk=function(y,t,a,r,E){this.loader=y;this.policy=t;this.schedule=a;this.dS=r;this.hF=E;this.AF=NaN;this.K=this.W=this.D=null;this.V=this.L=this.J=this.startTimeSecs=NaN;this.Y=!1;this.Z=NaN}; BUx=function(y,t,a,r,E,h){return t.Aw&&t.I7&&a===3?new Pk(y,t,r,E,h):null}; cI2=function(y,t){if(y.policy.kl7){var a=t.info.Hb,r=Tq(y.schedule);t=t.index.Ml();a=Math.max(1,r/a);y.Z=Math.round(Math.max(((a-1)*t+y.policy.vO)/a,t-y.policy.NH)*1E3)}}; DDF=function(y,t){var a=Date.now()/1E3,r=a-y.startTimeSecs,E=a-y.J,h=E>=y.policy.i9,F=!1;if(h){var x=0;!isNaN(t)&&t>y.L&&(x=t-y.L,y.L=t);x/E=y.policy.NH&&!y.Y;if(!h&&!a&&qu2(y,t))return NaN;a&&(y.Y=!0);a:{r=F;a=(0,g.Wx)()/1E3-(y.dS.wP()||0)-y.W.V-y.policy.vO;h=y.K.startTime;a=h+a;if(r){if(isNaN(t)){No(y,NaN,"n",t);h=NaN;break a}r=t-y.policy.W0;r0&&(F.headers=x);h&&(F.onFinish=h);return Object.keys(F).length>1?F:null}; kQ=function(y,t,a,r,E,h,F,x){zc()&&a.token&&(y=$z(y,{ctt:a.token,cttype:a.KY,mdx_environment:a.mdxEnvironment}));r.B("net_pings_low_priority")&&(t||(t={}),t.priority="low");h||x&&r.B("nwl_skip_retry")?(t==null?t={}:Go7(y,r.B("html5_assert_cpn_with_regex")),F?K4().sendAndWrite(y,t):K4().sendThenWrite(y,t,x)):t?(Go7(y,r.B("html5_assert_cpn_with_regex")),nCn(y,t)):g.JR(y,E)}; ZXb=function(y){for(var t=[],a=0;a0&&a>0&&!y.K&&y.Y<1E7)try{y.D=y.L({sampleInterval:t,maxBufferSize:a});var r;(r=y.D)==null||r.addEventListener("samplebufferfull",function(){return g.m(function(E){if(E.V==1)return g.u(E,y.stop(),2);aMy(y);g.FU(E)})})}catch(E){y.K=t9b(E.message)}}; Wk=function(y,t){var a,r,E=(a=window.h5vcc)==null?void 0:(r=a.settings)==null?void 0:r.set(y,t);return i5(E)?Zm(Kq(E),function(){return!0},function(){return!1}):Kq(!!E)}; rPb=function(y){return Wk("SetPreferMinimalPostProcessing",y?1:0)}; E61=function(y){return Wk("MediaSource.EnableUsingMediaSourceBufferedRange",y?1:0)}; var xH7=function(){return ku[A[3]](this,20)}; hBd=function(y){return Wk("HTTP3",y?1:0)}; FcN=function(y){return Wk("MediaSource.EnableUsingMediaSourceAttachmentMethods",y?1:0)}; APu=function(y){return Wk("QUIC",y?1:0)}; x$F=function(y){return Wk("Media.AudioWriteDurationLocal",y)}; s9V=function(y){return Wk("Media.PlayerConfiguration.DecodeToTexturePreferred",y?1:0)}; $$u=function(y){return Wk("Media.DisableExternalAllocator",y?1:0)}; U$y=function(y){return Wk("Media.VideoBufferSizeClampMb",y)}; zB7=function(){var y,t,a,r=(y=window.h5vcc)==null?void 0:(t=y.settings)==null?void 0:(a=t.getPersistentSettingAsString)==null?void 0:a.call(t,"cpu_usage_tracker_intervals");if(r!=null){var E;y=(E=JSON.parse(r))!=null?E:[];E=y.filter(function(C){return C.type==="total"}).map(function(C){return C.seconds}); t=g.p(C6y);for(a=t.next();!a.done;a=t.next())a=a.value,E.indexOf(a)===-1&&y.push({type:"total",seconds:a});var h,F;(h=window.h5vcc)==null||(F=h.settings)==null||F.set("cpu_usage_tracker_intervals_enabled",1);var x,U;(x=window.h5vcc)==null||(U=x.settings)==null||U.set("cpu_usage_tracker_intervals",JSON.stringify(y))}}; Of7=function(){var y=window.H5vccPlatformService,t="";if(y&&y.has("dev.cobalt.coat.clientloginfo")&&(y=y.open("dev.cobalt.coat.clientloginfo",function(){}))){var a=y.send(new ArrayBuffer(0)); a&&(t=String.fromCharCode.apply(String,g.i7(new Uint8Array(a))));y.close()}return t}; g.Qs=function(y){g.H.call(this);var t=this;this.provider=y;this.logger=new g.kK("qoe");this.V=new Map;this.sequenceNumber=1;this.Vv=NaN;this.kJ="N";this.Z=this.g4=this.d4=this.AF=this.K=0;this.sR=this.Ff=this.J=this.C1="";this.nJ=this.yv=NaN;this.ZA=0;this.vO=-1;this.IR=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.I7=this.isEmbargoed=this.d0=this.isOffline=this.isBuffering=!1;this.pM=[];this.hF=null;this.Az=this.D=this.n1=this.DE=this.W=!1;this.Y=-1;this.JF=!1;this.MP=new g.Te(this.cF4,750,this); this.Ho=this.adCpn="";this.FD=this.sZ=this.V9=this.Ak=this.adFormat=void 0;this.oo=0;this.T7=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.cj=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.zl=!1;this.XB=NaN;this.L1=0;this.FB=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.MK=!1;this.RR=new Set;this.Wb={MM:function(h){t.MM(h)}, Kte:function(){return t.L}, reportStats:function(){t.reportStats()}, l81:function(){return t.V.get("cat")||[]}, RH:function(h){return t.V.get(h)||[]}, fLu:function(){return t.V}, yTG:function(){return{adCpn:t.adCpn,Ho:t.Ho,adFormat:t.adFormat}}, a8G:function(){return{Ak:t.Ak,V9:t.V9,sZ:t.sZ,FD:t.FD}}}; this.o5=this.provider.j.B("html5_qoe_relaxed_reporting");var a=g.Gw(this.provider.j.experiments,"html5_qoe_proto_mock_length");a&&!jK.length&&(jK=ZXb(a));g.c(this,this.MP);try{var r,E;(E=(r=navigator).getBattery)==null||E.call(r).then(function(h){t.hF=h})}catch(h){}g.SK(this,0,"vps",["N"]); y.j.Bb()&&(this.L1=(0,g.Wx)(),this.XB=g.ds(function(){var h=(0,g.Wx)(),F=h-t.L1;F>500&&t.H4("vmlock",{diff:F.toFixed()});t.L1=h},250)); this.provider.videoData.VQ&&(this.remoteControlMode=Lc7[this.provider.videoData.VQ]||0);this.provider.videoData.Rs&&(a=fXu(this.provider.videoData.Rs),a==null?0:a.length)&&(this.remoteConnectedDevices=a);y.j.Bb()&&(this.R5=new dd,g.c(this,this.R5));Gy7(y.j)&&(this.r0=new fH,g.c(this,this.r0))}; vk=function(y,t,a){var r=y.V.get(t);r?r.push(a):y.V.set(t,[a])}; g.SK=function(y,t,a,r){vk(y,a,t.toFixed(3)+":"+r.join(":"))}; pH=function(y,t){var a=y.provider.getCurrentTime();g.SK(y,t,"cmt",[a.toFixed(3)]);var r=a=y.provider.cz();if((!y.L||y.provider.j.B("html5_shorts_gapless_no_gllat")&&Rh(y.provider.videoData)?0:r*1E3>y.L.BF+100)&&y.L){var E=y.L;r=E.isAd;a=a*1E3-E.BF;y.kZ=t*1E3-E.VfF-a-E.b_5;E=(0,g.Wx)()-a;t=y.kZ;a=y.provider.videoData;var h=a.isAd();if(r||h){h=(r?"ad":"video")+"_to_"+(h?"ad":"video");var F={};a.J&&(F.cttAuthInfo={token:a.J,videoId:a.videoId});F.startTime=E-t;ly(h,F);g.eW({targetVideoId:a.videoId,targetCpn:a.clientPlaybackNonce}, h);pM("pbs",E,h)}else E=y.provider.Om.Fz(),E.J!==a.clientPlaybackNonce?(E.L=a.clientPlaybackNonce,E.K=t):a.yR()||g.ls(new g.RV("CSI timing logged before gllat",{cpn:a.clientPlaybackNonce}));y.H4("gllat",{l:y.kZ.toFixed(),prev_ad:+r});delete y.L}}; ub=function(y,t){t=t===void 0?NaN:t;t=t>=0?t:g.eK(y.provider);var a=y.provider.Om.ql(),r=a.TM-(y.yv||0);r>0&&g.SK(y,t,"bwm",[r,(a.Fg-(y.nJ||0)).toFixed(3)]);isNaN(y.yv)&&a.TM&&y.isOffline&&y.MM(!1);y.yv=a.TM;y.nJ=a.Fg;isNaN(a.bandwidthEstimate)||g.SK(y,t,"bwe",[a.bandwidthEstimate.toFixed(0)]);y.provider.j.Bb()&&Object.keys(a.V).length!==0&&y.H4("bwinfo",a.V);if(y.provider.j.Bb()||y.provider.j.B("html5_log_meminfo"))r=gUx(),Object.values(r).some(function(h){return h!==void 0})&&y.H4("meminfo",r); if(y.provider.j.Bb()){var E;(r=(E=y.R5)==null?void 0:KAH(E))&&Object.values(r).some(function(h){return h!=null})&&y.H4("cpuinfo",r)}y.r0&&y.H4("jsprof",y.r0.flush()); y.hF&&g.SK(y,t,"bat",[y.hF.level,y.hF.charging?"1":"0"]);E=y.provider.Om.getVisibilityState();y.vO!==E&&(g.SK(y,t,"vis",[E]),y.vO=E);pH(y,t);(E=M9N(y.provider))&&E!==y.ZA&&(g.SK(y,t,"conn",[E]),y.ZA=E);lb(y,t,a)}; wq7=function(y){var t=y.provider.Om.ql(),a=g.eK(y.provider);lb(y,a,t);var r=t.Y;t=t.D;isNaN(r)||(y.provider.j.B("html5_unified_live_latency_reporting")&&!isNaN(t)&&t?g.SK(y,a,"e2el",[r.toFixed(3),t.toFixed(3)]):g.SK(y,a,"e2el",[r.toFixed(3)]))}; lb=function(y,t,a){if(!isNaN(a.e9)){var r=a.e9;a.K96E3&&(new g.Te(y.reportStats,0,y)).start()}}; NOu=function(y){y.provider.videoData.RR&&nH(y,"prefetch");y.provider.videoData.r0&&y.H4("reload",{r:y.provider.videoData.reloadReason,ct:y.provider.videoData.r0});y.provider.videoData.Ui&&nH(y,"monitor");y.provider.videoData.isLivePlayback&&nH(y,"live");hP&&nH(y,"streaming");y.provider.videoData.VQ&&y.H4("ctrl",{mode:y.provider.videoData.VQ},!0);if(y.provider.videoData.Rs){var t=y.provider.videoData.Rs.replace(/,/g,"_");y.H4("ytp",{type:t},!0)}y.provider.videoData.BP&&(t=y.provider.videoData.BP.replace(/,/g, "."),y.H4("ytrexp",{ids:t},!0));t=y.provider.videoData;var a=y.provider.j.B("enable_white_noise")||y.provider.j.B("enable_webgl_noop"),r=g.ex(t)||g.qD(t)||g.YU(t)||g.DQ(t);(a||r)&&(a=(0,g.mM)())&&y.V.set("gpu",[a]);rO(y.provider.videoData)&&g.SK(y,g.eK(y.provider),"dt",["1"]);t.cotn&&!rO(t)&&y.MM(!0);y.provider.j.Bb()&&(t=(0,g.Wx)()-y.provider.j.TR,y.H4("playerage",{secs:Math.pow(1.6,Math.round(Math.log(t/1E3)/Math.log(1.6))).toFixed()}));y.D=!0;y.Vv=g.ds(function(){y.reportStats()},1E4)}; Xqu=function(y,t,a){var r=g.eK(y.provider);d$d(y,r,t,0,a);ub(y,r);Vs(y)}; d$d=function(y,t,a,r,E){var h=y.provider.j.V.cbrver;y.provider.j.V.cbr==="Chrome"&&/^96[.]/.test(h)&&a==="net.badstatus"&&/rc\.500/.test(E)&&JK(y,3);y.provider.j.B("html5_use_ump")&&/b248180278/.test(E)&&JK(y,4);h=y.provider.getCurrentTime();r=r===1?"fatal":"";a=[a,r,h.toFixed(3)];r&&(E+=";a6s."+a2());E&&a.push(kQn(E));g.SK(y,t,"error",a);y.D=!0}; fMz=function(y,t){var a=g.eK(y.provider);if(!y.provider.j.experiments.Nr("html5_refactor_sabr_video_format_selection_logging")||t.V.id!==y.C1){var r=[t.V.id,t.K,y.C1,t.reason];g.e0(y.provider.j.pJ())&&!y.DE&&r.push(ou(y,t));t.token&&r.push(t.token);g.SK(y,a,"vfs",r);y.C1=t.V.id;r=y.provider.Om.getPlayerSize();if(r.width>0&&r.height>0){r=[Math.round(r.width),Math.round(r.height)];var E=g.Ah();E>1&&r.push(E);g.SK(y,a,"view",r)}y.DE||(y.provider.j.Bb()&&nH(y,"rqs2"),y.provider.videoData.V&&qy(y.provider.videoData.V)&& y.V.set("preload",["1"]));y.DE=!0;y.D=!0}t.reason==="m"&&++y.oo===100&&JK(y,2);g.SK(y,a,"vps",[y.kJ]);y.o5||y.reportStats(a)}; Wcx=function(y){y.Y>=0||(y.provider.j.P1||y.provider.Om.getVisibilityState()!==3?y.Y=g.eK(y.provider):y.JF=!0)}; Sf2=function(y,t,a){var r=y.provider.j,E=r.pJ(),h=[];r.experiments.Nr("html5_refactor_sabr_audio_format_selection_logging")?(t=a.V,r=[t.audio&&t.video?t.Kj?t.Kj:"":t.id],t.qK&&t.qK.id&&r.push(t.qK.id),t=r.join(";"),t!==y.J&&(r=[t,y.J,a.reason],h.push.apply(h,g.i7(j9V(a))),g.e0(E)&&a.reason==="i"&&h.push(ou(y,a)),h.length>0&&r.push(h.join(";")),a.token&&r.push(a.token),g.SK(y,g.eK(y.provider),"afs",r),y.J=t)):a.V.id!==y.J&&(r=[a.V.id,y.J,a.reason],h.push.apply(h,g.i7(j9V(a))),g.e0(E)&&a.reason==="i"&& h.push(ou(y,a)),h.length>0&&r.push(h.join(";")),a.token&&r.push(a.token),g.SK(y,t,"afs",r),y.J=a.V.id)}; ou=function(y,t){y=y.provider.videoData;g.AP(y)?t=4:y.Xg?t=3:(t=t.V.Ee()?y.EZ:y.u4,t=t!=null?t:0);y="sms."+t;if(t===3||t===4)y+="_1";return y}; j9V=function(y){var t=[];if(y=y.V.audio){var a=y==null?void 0:y.D;a!==void 0&&t.push("fl."+a);y=y==null?void 0:y.Y;y!==void 0&&(y=Math.min(-y,0),t.push("vg."+y),t.push("nm.4"))}return t}; nH=function(y,t){vk(y,"cat",t)}; Hk=function(y,t,a,r,E){var h=g.eK(y.provider);t!==1&&t!==3&&t!==5||g.SK(y,h,"vps",[y.kJ]);vk(y,"xvt","t."+h.toFixed(3)+";m."+E.toFixed(3)+";g.2;tt."+t+";np.0;c."+a+";d."+r)}; JK=function(y,t){y.Az||(vk(y,"fcnz",""+t),y.Az=!0)}; kQn=function(y){/[^a-zA-Z0-9;.!_-]/.test(y)&&(y=y.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return y}; Bk=function(y,t,a,r,E,h,F,x,U,C){x=x===void 0?!1:x;g.H.call(this);var z=this;this.Om=y;this.schedule=t;this.policy=a;this.qr=r;this.AF=U;this.pM=C;this.vr=this.tF=null;this.Ff=this.yv=this.L1=this.Vv=0;this.Nk=this.Ad=this.isSuspended=!1;this.R5="";this.RR={};this.I7=NaN;this.Az=this.zl=this.iX=0;this.mL=null;this.FB=this.C1=!1;this.CO=0;this.T7=!1;this.d0=this.n1=0;this.sR=null;this.Rv=!1;this.A_=function(){return z.Om.A_()}; this.timing=new lru(this.pM);this.hF=new ih(this.schedule,this.policy);this.XB=new g.Te(this.OY,0,this);this.MK=new g.Te(this.OY,this.policy.ZA,this);this.l5=new g.Te(this.OY,1E3,this);this.vO=new g.Te(this.OY,void 0,this);this.JF=new g.Te(function(){z.isSuspended||z.OY()},1E4,this); this.nJ=new g.Te(this.vnu,250,this);this.W=this.currentTime=NaN;this.UZ=new M5(5);this.DE=this.timestampOffset=NaN;this.logger=new g.kK("dash");this.IR=Infinity;this.Wb={bw5:function(){return z.De}, NvE:function(){return z.Y}, getAudioTrack:function(){return z.audioTrack}, bz1:function(){return z.videoTrack}, Zw7:function(){return z.o5}, getManifest:function(){return z.qr}, Ccf:function(){return z.K}, OY:function(){z.OY()}, YU:function(){z.Vv=0;z.YU()}, uTF:function(M){return bb(z,z.videoTrack,z.tF.K,M)}}; y=U&&U.lc();U&&(j11(U,this.qr,this.policy),this.DE=Date.now());this.V=new R7(this,this.hF,a,this.qr,E,y);a=tD7(this.V,h,F&&F.id);this.audioTrack=new gD(this,this.policy,a.audio,this.timing);this.videoTrack=new gD(this,this.policy,a.video,this.timing);this.videoTrack.Y.o5=this.audioTrack.nF();this.r0={updateend:this.ZU,error:this.nEm};g.c(this,this.XB);g.c(this,this.MK);g.c(this,this.l5);g.c(this,this.vO);g.c(this,this.JF);a=this.policy.Nm1&&this.policy.s0?!FZz(this.videoTrack.z7.info):!1;this.ZA= LBy({Pt:this.policy.Z.Pt||a,s0:this.policy.s0&&!a,HK:this.policy.HK});this.Z=BUx(this,this.policy,this.ZA,this.schedule,this.UZ,function(M,L){return Q9N(z,M,L)}); this.Y=new a7(this,this.qr,this.policy,this.videoTrack,this.audioTrack,x);this.policy.GR&&(this.o5=new Y6u(this.policy.J,function(M,L){z.H4(M,L)},this.policy.z8)); this.De=new aZ(this,this.qr,this.videoTrack,this.audioTrack,this.policy);x=this.policy.yJ?this.Om.getVideoData().iW:null;this.J=new RR(this,this.policy,this.videoTrack,this.audioTrack,this.RR,this.Y,this.timing,this.hF,this.schedule,this.qr,this.V,this.Z,a,x);g.c(this,this.J);this.D=new p2(this,this.policy,this.videoTrack,this.audioTrack,this.qr,E,PQ(this.Om.getVideoData()),F==null?void 0:F.id);g.c(this,this.D);Q$u(this.D,h);this.K=new AK(this.Om,this,this.policy,this.audioTrack,this.videoTrack,this.qr, this.schedule,this.V,this.D,this.timing,this.Y,this.o5);g.c(this,this.K);this.L=this.Om.LM.CB.M_;this.policy.L||v6d(this);if(this.policy.bq){var O;this.MP=new wd(this.videoTrack.z7.index,(O=this.Om.getVideoData().clientPlaybackNonce)!=null?O:"",this.Om)}}; pq7=function(y){y.policy.J&&y.L&&(y.L.ZB.forEach(function(t){y.Hp(t,-1)}),y.L.ZB=[])}; v6d=function(y){var t,a;if((t=y.L)==null?0:(a=t.B6)==null?0:a.itagDenylist){var r;y.Mn((r=y.L)==null?void 0:r.B6.itagDenylist)}var E;if((E=y.L)==null?0:E.playbackStartPolicy){var h,F;L2(y.policy,(h=y.L)==null?void 0:h.playbackStartPolicy,3,(F=y.L)==null?void 0:F.qU())}if(y.policy.oJ){t=y.gH();var x;(a=t?(x=y.L)==null?void 0:x.tD.get(t):void 0)&&y.K.o_(a,-1)}if(!y.qr.AF){var U;x=(U=y.L)==null?void 0:U.jK;(x==null?0:x.b4)&&(x==null?0:x.eS)&&y.qr.US&&Zr(y.qr,x.b4,x.eS)}var C;((C=y.L)==null?0:C.LF)&& (U=y.L.LF.get(y.gH()||""))&&y.qr&&U.formatId&&(y=y.qr.Y.get(KR(U.formatId)))&&(y.info.debugInfo=U.debugInfo)}; ck=function(y,t){var a=TC(t.z7,y.qr.US),r,E=((r=y.AF)==null?void 0:r.i8(a))||[];if(E.length===0)return y.H4("ombmsi",{}),!1;r=new $K(E);if((!y.policy.o5||isFinite(y.getCurrentTime())||y.Om.WA())&&!Js2(r,y.getCurrentTime()))return y.H4("ostmf",{ct:y.getCurrentTime(),a:t.z7.info.Ee()}),!1;(y=y.AF)!=null&&(y.qP.get(a).c_=!0);return!0}; eB7=function(y){if(!y.qr.US)return!0;var t=y.Om.getVideoData();if(y.Om.Fo())return y.H4("ombpa",{}),!1;var a,r;if(!!((a=y.L)==null?0:(r=a.jK)==null?0:r.mhm)!==y.qr.d7)return y.H4("ombplmm",{}),!1;a=t.C1||t.liveUtcStartSeconds||t.JT;if(y.qr.d7&&a)return y.H4("ombplst",{}),!1;if(y.qr.AF)return y.H4("ombab",{}),!1;a=Date.now();return yr(y.qr)&&!isNaN(y.DE)&&a-y.DE>y.policy.fu*1E3?(y.H4("ombttl",{}),!1):y.qr.H1&&y.qr.D||pX(t)!==0&&!y.policy.V||t.B("html5_disable_onesie_media_for_mosaic")&&a9(t)||t.B("html5_disable_onesie_media_for_lifa_eligible")&& tP(t)?!1:!0}; lMy=function(y,t){var a=t.z7,r=y.qr.US;if(eB7(y))if(y.AF&&y.AF.qP.has(TC(a,r))){if(r=TC(a,r),ck(y,t)){var E=new $K(y.AF.i8(r)),h=function(F){try{if(F.oN())y.handleError(F.Jl(),F.fH()),AQ(t,F),Cw(F.info)&&kJ(y.J,t,a,!0),y.OY();else if(Wc(y.J,F)){var x;(x=y.Y)==null||HwN(x,F.info,y.mL);y.OY()}}catch(U){F=h0(U),y.handleError(F.errorCode,F.details,F.severity),y.Xi()}}; a.Y=!0;U6(E)&&(I7(t,new rH(y.policy,r,E,y.AF,h)),tr(y.timing))}}else y.H4("ombfmt",{})}; qo=function(y,t){t=t||y.videoTrack&&y.videoTrack.V&&y.videoTrack.V.startTime||y.getCurrentTime();var a=y.videoTrack,r=y.V;t=r.nextVideo&&r.nextVideo.index.G5(t)||0;r.DE!==t&&(r.L1={},r.DE=t,P8(r,r.V));t=!r.V.isLocked()&&r.hF>-1&&(0,g.Wx)()-r.hFa&&(y.H4("sdai",{seg:r,rbt:a.toFixed(3),end:y.K.L1.toFixed(3),sd:E.toFixed(3)}),y.FW(!1,"rollback")):y.policy.K&&y.FW(!1,"rollback");if(y.qr.isManifestless){E=hQ(y.audioTrack,r,a,t);var h=hQ(y.videoTrack,r,a,t);y.policy.cj||(h&&GW(y.qr,r,!0),E&&GW(y.qr,r,!1));h&&(y.videoTrack.hF=[]);E&&(y.audioTrack.hF=[]);y.H4("sdai",{rollbk2_seg:r,rbt:a.toFixed(3),lt:t.toFixed(3),a:E,v:h});(E||h)&&y.policy.K&&zK(y)}}; V91=function(y,t){if(!isNaN(y.I7)){var a=Date.now()-y.I7;a<1E4&&y.H4("bfaswtch",{ep:a,sk:t!==void 0?"1":"0",sr:t||""})}}; n6b=function(y){y.policy.RR=!1;try{y.YU()}catch(t){g.pK(t)}}; m$d=function(y,t){t=t===void 0?!1:t;y.tF&&y.tF.V&&y.tF.K&&(y.tF.V.y3(y.r0,y),y.tF.K.y3(y.r0,y));iq(y.audioTrack,null,t);iq(y.videoTrack,null,t);y.tF&&(y.tF.L=!1);y.tF=null}; JP7=function(y){y.tF&&y.tF.l2()&&y.LN()}; Hf7=function(y,t){t&&o6n(y.Om,new UP(t.video,t.reason));y.V.r0&&(t=FBy(y.V,"a"),y.Om.fW(new UP(t.audio,t.reason)))}; zK=function(y){g.Ge(y.XB)}; vc=function(y){y.policy.ZA&&y.policy.HK&&Math.min(tMb(y.videoTrack),tMb(y.audioTrack))*1E3>y.policy.b3?g.Ge(y.MK):y.OY()}; bf7=function(y){if(hJ7(y.videoTrack))return"ssf";if(y.policy.JF&&Up(y.videoTrack)&&Up(y.audioTrack))return"updateEnd";if(xJ(y.audioTrack)||xJ(y.videoTrack)&&y.videoTrack.z7.info.G7!=="f")return"";if(y.De.isSeeking()){var t=y.hF;var a=y.videoTrack;var r=y.audioTrack;if(t.policy.V){var E=t.policy.KH;Op(t.policy)&&(E=yG(t,!1,ZZ(t)));t=E;a=Ep(r,!0)>=t&&Ep(a,!0)>=t}else a.K.length||r.K.length?(E=a.z7.info.Hb+r.z7.info.Hb,E=10*(1-ZZ(t)/E),t=Math.max(E,t.policy.KH),a=Ep(r,!0)>=t&&Ep(a,!0)>=t):a=!0;if(!a)return"abr"; a=y.videoTrack;if(a.K.length>0&&a.Y.K.length===1&&led(a.Y).info.W360);if(!y.Nk||a)return"";a=y.policy.JQ;Op(y.policy)&&(a=yG(y.hF,y.Nk,ZZ(y.hF)));a=aDy(y.videoTrack,y.getCurrentTime(),a)||aDy(y.audioTrack,y.getCurrentTime(),a);return Op(y.policy)?a?"mbnm":"":(y.videoTrack.K.length>0||y.audioTrack.K.length>0|| Pc(y.J,y.videoTrack,y.audioTrack)||Pc(y.J,y.audioTrack,y.videoTrack))&&a?"nord":""}; D$x=function(y,t,a){if(y.policy.JF&&Up(t))return!1;if(a.IU())return!0;if(!a.U2())return!1;var r=CW(t);if(!r||r.info.type===6)return!1;var E;if(y.policy.A6||((E=y.Y)==null?0:q67(E,t,r.info.a5)))y.Ff=0;else return y.De.isSeeking()&&zK(y),y.Ff=y.Ff||(0,g.Wx)(),!1;if(!bb(y,t,a,r.info))return!1;if(y.qr.K&&r.info.V===0){if(a.B7()==null){E=Kv(t);var h;if(!(h=!E||E.z7!==r.info.z7)){b:if(E=E.Z,h=r.info.Z,E.length!==h.length)E=!1;else{for(var F=0;Fh)return y.policy.V&&(t===y.videoTrack?y.yv=y.yv||(0,g.Wx)():y.L1=y.L1||(0,g.Wx)()),y.policy.Vd&&PuV(t.Y,h,!1),!1;t===y.videoTrack?y.yv=0:y.L1=0;var x;y.policy.oo&&a===((x=y.tF)==null?void 0:x.V)&&y.T7&&(a.e3()===0?(y.T7=!1,y.policy.oo=!1):y.n1=a.e3());a:{x=y.policy.XB?(0,g.Wx)():0;F=r.L&&r.info.z7.V||void 0;h=r.K;r.L&&(h=cPN(y,r,h)||h);var U=Lu(h);h=y.policy.XB?(0,g.Wx)():0;a=qfd(y,a,U,r.info,F);(F=t.Z)!=null&&(U=r.info,x=h-x,h=(0,g.Wx)()-h,!F.K||jo1(F.K, U)&&F.K.a5===U.a5||F.flush(),F.D+=x,F.Y+=h,x=1,!F.K&&U.V&&(x=2),QD(F,x,a),h=Math.ceil(U.V/1024),x===2&&F.V.add(h),F.V.add(Math.ceil((U.V+U.K)/1024)-h),F.K=U);y.d0=0;if(a===0)y.C1&&(y.C1=!1,y.FB=!1),y.Az=0,a=!0;else{if(a===2||a===5)Yf1(y,"checked",a,r.info);else{if(a===1){if(!y.C1){y.C1=!0;a=!1;break a}if(!y.FB){y.FB=!0;y.Om.seekTo(y.getCurrentTime(),{yD:"quotaExceeded",vK:!0});a=!1;break a}r.info.ji()?(x=y.policy,x.C1=Math.floor(x.C1*.8),x.d0=Math.floor(x.d0*.8)):(x=y.policy,x.n1=Math.floor(x.n1* .8),x.d0=Math.floor(x.d0*.8));y.policy.V?z0(y.D.V,r.info.z7,!1):XY(y.V,r.info.z7)}y.Om.Xo({reattachOnAppend:a})}a=!1}}if(!a)return!1;y.policy.JF&&r.info.kV()?(y.Om.G().Bb()&&y.H4("eosl",{ls:r.info.iJ()}),r.isLocked=!0):(t.k6(r),hun(y.V,r.info));E&&(t=r.info.z7.pE)&&y.Om.bA(new mQ(t.key,t.type));return!0}; cPN=function(y,t,a){var r;if(r=y.policy.hS&&y.tF&&!y.tF.Z&&!y.Om.KQ())t=t.info.z7.info,r=t.GO()&&lH(t)&&t.video&&t.video.width<3840&&t.video.width>t.video.height;if(r&&(y.tF.Z=!0,sD('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return a=ptu(a),y.policy.Y&&y.H4("sp4k",{s:!!a}),a}; Yf1=function(y,t,a,r){var E="fmt.unplayable",h=1;a===5||a===3?(E="fmt.unparseable",y.policy.V?!r.z7.info.video||OP(y.D.V).size>0||z0(y.D.V,r.z7,!1):!r.z7.info.video||OP(y.V.L).size>0||XY(y.V,r.z7)):a===2&&(y.Az<15?(y.Az++,E="html5.invalidstate",h=0):E="fmt.unplayable");r=xK(r);var F;r.mrs=(F=y.tF)==null?void 0:zy(F);r.origin=t;r.reason=a;r.trg="appenderr";y.handleError(E,r,h)}; g3y=function(y,t,a,r,E){var h=y.qr;var F=y.policy.V,x=!1,U=-1,C;for(C in h.V){var z=DG(h.V[C].info.mimeType)||h.V[C].info.ji();if(r===z)if(z=h.V[C].index,z.D4(t.a5)){x=z;var O=t,M=x.AL(O.a5);M&&M.startTime!==O.startTime?(x.segments=[],x.MI(O),x=!0):x=!1;x?U=t.a5:!t.pending&&F&&(O=z.getDuration(t.a5),O!==t.duration&&(h.publish("clienttemp","mfldurUpdate",{itag:h.V[C].info.itag,seg:t.a5,od:O,nd:t.duration},!1),z.MI(t),x=!0))}else z.MI(t),x=!0}U>=0&&(F={},h.publish("clienttemp","resetMflIndex",(F[r? "v":"a"]=U,F),!1));h=x;kC7(y.De,t,r,h);y.policy.ub||y.Y.Jy(t,a,r,E);t.a5===y.qr.H1&&h&&Kw(y.qr)&&t.startTime>Kw(y.qr)&&(y.qr.qp=t.startTime+(isNaN(y.timestampOffset)?0:y.timestampOffset),y.De.isSeeking()&&y.De.targetTime 5)return y.d0=0,y.Om.Xo({initSegStuck:1,as:r.info.iJ()}),!0}else y.d0=0,y.sR=r;y.policy.PP&&(a.abort(),(F=t.Z)!=null&&(QD(F,4),F.flush()));E=qfd(y,a,h,U,E);(t=t.Z)!=null&&(t.flush(),t.K=U,QD(t,3,E));if(E!==0)return y.policy.mf&&Rh(y.Om.getVideoData())?(y.Om.PD()||Yf1(y,"sepInit",E,r.info),g6y(y.Om,"sie")):Yf1(y,"sepInit",E,r.info),!0;r.info.ji()?(U=y.timing,U.L1||(U.L1=(0,g.Wx)(),g.lT("vis_a",U.L1,U.V))):(U=y.timing,U.W||(U.W=(0,g.Wx)(),g.lT("ais_a",U.W,U.V)));(r=r.info.z7.pE)&&y.Om.bA(new mQ(r.key, r.type));return a.s6()}; qfd=function(y,t,a,r,E){try{var h,F=t===((h=y.tF)==null?void 0:h.V)?y.audioTrack:y.videoTrack;if(y.policy.JF&&(r==null?0:r.kV())){if((r==null?void 0:r.hF)>1)return 6;F.d0=new g.Te(function(){var x=CW(F);y.Qv()||x==null||!x.isLocked?y.Om.G().Bb()&&y.H4("eosl",{delayA:x==null?void 0:x.info.iJ()}):ifV(F)?(y.Om.G().Bb()&&y.H4("eosl",{dunlock:x==null?void 0:x.info.iJ()}),Kcb(y,F===y.audioTrack)):(y.H4("nue",{ls:x.info.iJ()}),x.info.hF+=1,y.tF&&y.YU())},1E4,y); y.Om.G().Bb()&&y.H4("eosl",{delayS:r.iJ()});F.d0.start()}y.policy.Dq&&(r==null?void 0:r.z7)instanceof O6&&r.kV()&&y.H4("poseos",{itag:r.z7.info.itag,seg:r.a5,lseg:r.z7.index.lJ(),es:r.z7.index.Y});t.appendBuffer(a,r,E)}catch(x){if(x instanceof DOMException){if(x.code===11)return 2;if(x.code===12)return 5;if(x.code===22||x.message.indexOf("Not enough storage")===0)return t=Object.assign({name:"QuotaExceededError",buffered:Ki(t.Ro()).replace(/,/g,"_"),vheap:aR(y.videoTrack),aheap:aR(y.audioTrack),message:g.bn(x.message, 3),track:y.tF?t===y.tF.K?"v":"a":"u"},gUx()),y.handleError("player.exception",t),1;g.pK(x)}return 4}return y.tF.l2()?3:0}; Ux=function(y,t,a){V91(y,a.yD||"unknown");y.Om.seekTo(t,a)}; AS=function(y,t){if(y.C1&&!y.Nk)return 3;if(y.isSuspended)return 1;var a;if((a=y.tF)==null?0:a.tF&&a.tF.streaming===!1)return 4;a=(t.z7.info.audio?y.policy.n1:y.policy.C1)/(t.Hb*y.policy.Iv);if(y.policy.jX>0&&y.tF&&$q(y.tF)&&(t=t.z7.info.video?y.tF.K:y.tF.V)&&!t.s6()){t=t.Ro();var r=Il(t,y.getCurrentTime());r>=0&&(t=y.getCurrentTime()-t.start(r),a+=Math.max(0,Math.min(t-y.policy.jX,y.policy.Kd)))}y.policy.d0>0&&(a=Math.min(a,y.policy.d0));return a}; IMu=function(y,t){return(AS(y,t)+y.policy.Rb)*t.Hb}; GQN=function(y){y.R5&&!y.isSuspended&&d1(y.schedule)&&(TOn(y,y.R5),y.R5="")}; TOn=function(y,t){gL(t,"cms",function(a){y.policy.Y&&y.H4("pathprobe",a)},function(a){y.Om.handleError(a)})}; Zfn=function(y,t){y.mL=t;y.Y&&(y.Y.mL=t);t=y.mL;var a=y.videoTrack.z7.info.GO();t.ZA=a;t.QW({swebm:a});y.J.mL=y.mL;y.policy.K&&(y.K.mL=y.mL,pq7(y))}; t1y=function(y,t){if(y.tF&&y.tF.K){if(y.policy.QS){var a=Ah2(y.audioTrack);if(a&&a.Ee()){var r=y.Om;if(r.oC&&(r.oC.V=a,a=r.Jz,a.qoe)){a=a.qoe;r=r.oC;var E=g.eK(a.provider);Sf2(a,E,r)}}}y.policy.JP&&(a=Ah2(y.videoTrack))&&a.ji()&&(r=y.Om,r.Jq&&(r.Jq.V=a,a=r.Jz,a.qoe&&fMz(a.qoe,r.Jq)));t-=isNaN(y.timestampOffset)?0:y.timestampOffset;y.getCurrentTime()!==t&&y.resume();y.De.isSeeking()&&y.tF&&!y.tF.l2()&&(r=y.getCurrentTime()<=t&&t=t&&Q9N(y,r.startTime,!1)}); return a&&a.startTimey.getCurrentTime())return a.start/1E3;return Infinity}; kox=function(y){if(y.Om.getVideoData().isLivePlayback)return!1;var t=y.Om.uJ();if(!t)return!1;t=t.getDuration();if(y.tF&&y.tF.V&&y.tF.K){var a=y.getCurrentTime(),r=y.tF.V.Ro();y=y.tF.K.Ro();r=r?GM(r,a):a;a=y?GM(y,a):a;a=Math.min(r,a);t=isNaN(a)?!1:a>=t-.01}else t=!1;return t}; jf=function(y){return y.iX0){var r=a.V.shift();xU2(a,r.info)}a.V.length>0&&(r=a.V[0].time-(0,g.Wx)(),a.K.start(Math.max(0,r)))}},0); g.c(this,this.K);t.subscribe("widevine_set_need_key_info",this.D,this)}; xU2=function(y,t){a:{var a=t.cryptoPeriodIndex;if(isNaN(a)&&y.Y.size>0)a=!0;else{for(var r=g.p(y.Y.values()),E=r.next();!E.done;E=r.next())if(E.value.cryptoPeriodIndex===a){a=!0;break a}a=!1}}y.publish("log_qoe",{wvagt:"reqnews",canskip:a});a||y.publish("rotated_need_key_info_ready",t)}; sXn=function(){var y={};var t=y.url;var a=y.interval;y=y.retries;this.url=t;this.interval=a;this.retries=y}; $U7=function(y,t){this.statusCode=y;this.message=t;this.Y=this.heartbeatParams=this.errorMessage=null;this.K=[];this.V={};this.nextFairplayKeyId=null}; UUN=function(y){switch(y){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}}; Chz=function(y,t,a,r){a=a===void 0?"":a;r=r===void 0?!1:r;g.H.call(this);this.message=y;this.requestNumber=t;this.timer=a;this.K=r;this.onError=this.onSuccess=null;this.V=new g.B6(5E3,2E4,.2)}; z_7=function(y,t,a){y.onSuccess=t;y.onError=a}; L1N=function(y,t,a,r){var E={timeout:3E4,onSuccess:function(h){if(!y.Qv()){pM("drm_net_r",void 0,y.timer);var F=y.K;F=F===void 0?!1:F;var x=h.status==="LICENSE_STATUS_OK"?0:9999,U=null;if(h.license)try{U=B$(h.license)}catch(d){g.pK(d)}if(x!==0||U){U=new $U7(x,U);x!==0&&h.reason&&(U.errorMessage=h.reason);if(h.authorizedFormats){x={};for(var C=[],z={},O=g.p(h.authorizedFormats),M=O.next();!M.done;M=O.next())if(M=M.value,M.trackType&&M.keyId){F&&U.K.push({trackType:UUN(M.trackType),isHdr:!!M.isHdr}); var L=Oa7[M.trackType];if(L){L==="HD"&&h.isHd720&&(L="HD720");M.isHdr&&(L+="HDR");x[L]||(C.push(L),x[L]=!0);var w=null;try{w=B$(M.keyId)}catch(d){g.pK(d)}w&&(z[g.H$(w,4)]=L)}}U.Y=C;U.V=z}h.nextFairplayKeyId&&(U.nextFairplayKeyId=h.nextFairplayKeyId);h.sabrLicenseConstraint&&(U.sabrLicenseConstraint=B$(h.sabrLicenseConstraint));h=U}else h=null;if(h)y.onSuccess(h,y.requestNumber);else y.onError(y,"drm.net","t.p;p.i")}}, onError:function(h){if(!y.Qv())if(h&&h.error)h=h.error,y.onError(y,"drm.net.badstatus","t.r;p.i;c."+h.code+";s."+h.status,h.code);else y.onError(y,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){y.onError(y,"drm.net","rt.req."+y.requestNumber)}}; r&&(E.qc="Bearer "+r);g.G1(a,"player/get_drm_license",t,E)}; M1N=function(y,t,a,r){g.FM.call(this);this.videoData=y;this.j=t;this.Z=a;this.sessionId=r;this.L={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Vv=this.o5=!1;this.Y=null;this.DE=[];this.D=[];this.authorizedFormats=[];this.hF=[];this.W=!1;this.V={};this.status="";this.J=NaN;this.K=y.L;this.cryptoPeriodIndex=a.cryptoPeriodIndex;y={};Object.assign(y,this.j.V);y.cpn=this.videoData.clientPlaybackNonce;this.videoData.Vv&&(y.vvt=this.videoData.Vv,this.videoData.mdxEnvironment&&(y.mdx_environment= this.videoData.mdxEnvironment));this.j.DE&&(y.authuser=this.j.DE);this.j.pageId&&(y.pageid=this.j.pageId);isNaN(this.cryptoPeriodIndex)||(y.cpi=this.cryptoPeriodIndex.toString());var E=(E=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.rI()))?E[1]:"";E==="ATV"&&(y.cdt=E);this.L=y;this.L.session_id=r;this.AF=!0;this.K.flavor==="widevine"&&(this.L.hdr="1");this.K.flavor==="playready"&&(t=Number(k3(t.experiments,"playready_first_play_expiration")),!isNaN(t)&&t>=0&&(this.L.mfpe=""+t),this.AF=!1);t="";g.zu(this.K)? CN(this.K)?(r=a.K)&&(t="https://www.youtube.com/api/drm/fps?ek="+DXu(r)):(t=a.initData.subarray(4),t=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),t=String.fromCharCode.apply(null,t).replace("skd://","https://")):t=this.K.K;this.baseUrl=t;this.fairplayKeyId=m0(this.baseUrl,"ek")||"";if(t=m0(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(t);this.DE=a.GO?[g.H$(a.initData,4)]:a.Y;Iu(this,{sessioninit:a.cryptoPeriodIndex});this.status="in"}; NL7=function(y,t){Iu(y,{createkeysession:1});y.status="gr";pM("drm_gk_s",void 0,y.videoData.hF);y.url=wPz(y);try{y.Y=t.createSession(y.Z,function(a){Iu(y,{m:a})})}catch(a){t="t.g"; a instanceof DOMException&&(t+=";c."+a.code);y.publish("licenseerror","drm.unavailable",1,t,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}y.Y&&(R_7(y.Y,function(a,r){Ph2(y,a,r)},function(a,r,E){if(!y.Qv()){r=void 0; var h=1;g.zu(y.K)&&g.ic(y.j)&&y.j.B("html5_enable_safari_fairplay")&&E===1212433232&&(r="ERROR_HDCP",h=y.j.B("html5_safari_fairplay_ignore_hdcp")?0:h);y.error("drm.keyerror",h,a,r)}},function(){y.Qv()||(Iu(y,{onkyadd:1}),y.Vv||(y.publish("sessionready"),y.Vv=!0))},function(a){y.eF(a)}),g.c(y,y.Y))}; wPz=function(y){var t=y.baseUrl;tpN(t)||y.error("drm.net",2,"t.x");if(!m0(t,"fexp")){var a=["23898307","23914062","23916106","23883098"].filter(function(E){return y.j.experiments.experiments[E]}); a.length>0&&(y.L.fexp=a.join())}a=g.p(Object.keys(y.L));for(var r=a.next();!r.done;r=a.next())r=r.value,t=CnH(t,r,y.L[r]);return t}; Ph2=function(y,t,a){if(!y.Qv())if(t){Iu(y,{onkmtyp:a});y.status="km";switch(a){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":dUx(y,t);return;default:y.publish("ctmp","message_type",{t:a,l:t.byteLength})}y.o5||(pM("drm_gk_f",void 0,y.videoData.hF),y.o5=!0,y.publish("newsession",y));if(sI(y.K)&&(t=XP1(t),!t))return;t=new Chz(t,++y.requestNumber,y.videoData.hF,y.j.B("html5_enable_vp9_fairplay"));z_7(t,function(r){kq7(y,r)},function(r,E,h){if(!y.Qv()){var F= 0; r.V.K>=3&&(F=1,E="drm.net.retryexhausted");Iu(y,{onlcsrqerr:E,info:h});y.error(E,F,h);y.shouldRetry(ED(F),r)&&fZN(y,r)}}); g.c(y,t);W11(y,t)}else y.error("drm.unavailable",1,"km.empty")}; dUx=function(y,t){Iu(y,{sdpvrq:1});y.J=Date.now();if(y.K.flavor!=="widevine")y.error("drm.provision",1,"e.flavor;f."+y.K.flavor+";l."+t.byteLength);else{var a={cpn:y.videoData.clientPlaybackNonce};Object.assign(a,y.j.V);a=g.lJ("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",a);t={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,t)}), responseType:"arraybuffer"};g.Vd(a,t,3,500).then(Ad(function(r){r=r.xhr;if(!y.Qv()){r=new Uint8Array(r.response);var E=String.fromCharCode.apply(null,r);try{var h=JSON.parse(E)}catch(F){}h&&h.signedResponse?(y.publish("ctmp","drminfo",{provisioning:1}),h=(Date.now()-y.J)/1E3,y.J=NaN,y.publish("ctmp","provs",{et:h.toFixed(3)}),y.Y&&y.Y.update(r)):(h=h&&h.error&&h.error.message,r="e.parse",h&&(r+=";m."+h),y.error("drm.provision",1,r))}}),Ad(function(r){y.Qv()||y.error("drm.provision",1,"e."+r.errorCode+ ";c."+(r.xhr&&r.xhr.status))}))}}; TK=function(y){var t;if(t=y.AF&&y.Y!=null)y=y.Y,t=!(!y.V||!y.V.keyStatuses);return t}; W11=function(y,t){y.status="km";pM("drm_net_s",void 0,y.videoData.hF);var a=new g.T1(y.j.XE),r={context:g.z1(a.config_||g.C4())};r.drmSystem=jXV[y.K.flavor];r.videoId=y.videoData.videoId;r.cpn=y.videoData.clientPlaybackNonce;r.sessionId=y.sessionId;r.licenseRequest=g.H$(t.message);r.drmParams=y.videoData.drmParams;isNaN(y.cryptoPeriodIndex)||(r.isKeyRotated=!0,r.cryptoPeriodIndex=y.cryptoPeriodIndex);var E,h,F=!!((E=y.videoData.K)==null?0:(h=E.video)==null?0:h.isHdr());r.drmVideoFeature=F?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";y.j.experiments.pJ().V.o7(S2N)&&(r.context=g.Of(y.videoData));if(r.context&&r.context.client){if(E=y.j.V)r.context.client.deviceMake=E.cbrand,r.context.client.deviceModel=E.cmodel,r.context.client.browserName=E.cbr,r.context.client.browserVersion=E.cbrver,r.context.client.osName=E.cos,r.context.client.osVersion=E.cosver;y.j.experiments.pJ().V.o7(S2N)||(r.context.user=r.context.user||{},y.videoData.Vv&&(r.context.user.credentialTransferTokens=[{token:y.videoData.Vv,scope:"VIDEO"}]), y.videoData.T7&&(r.context.user.kidsParent={oauthToken:y.videoData.T7}));r.context.request=r.context.request||{};r.context.request.mdxEnvironment=y.videoData.mdxEnvironment||r.context.request.mdxEnvironment;g.zu(y.K)&&(r.fairplayKeyId=g.H$(g_b(y.fairplayKeyId)));g.wY(y.j,g.y$(y.videoData)).then(function(x){L1N(t,r,a,x);y.status="rs"})}else y.error("drm.net",2,"t.r;ic.0")}; kq7=function(y,t){if(!y.Qv())if(Iu(y,{onlcsrsp:1}),y.status="rr",t.statusCode!==0)y.error("drm.auth",1,"t.f;c."+t.statusCode,t.errorMessage||void 0);else{pM("drm_kr_s",void 0,y.videoData.hF);if(t.heartbeatParams&&t.heartbeatParams.url&&y.videoData.B("outertube_streaming_data_always_use_staging_license_service")){var a=y.K.K.match(/(.*)youtube.com/g);a&&(t.heartbeatParams.url=a[0]+t.heartbeatParams.url)}t.heartbeatParams&&y.publish("newlicense",t.heartbeatParams);t.Y&&(y.D=t.Y,y.videoData.aJ||y.publish("newlicense", new sXn),y.videoData.aJ=!0,y.W=rQ(y.D,function(r){return r.includes("HDR")})); t.K&&(y.hF=t.K);t.V&&(y.j.B("html5_enable_vp9_fairplay")&&CN(y.K)?(a=g.H$(g_b(y.fairplayKeyId),4),y.V[a]={type:t.V[a],status:"unknown"}):y.V=X4(t.V,function(r){return{type:r,status:"unknown"}})); UI(y.K)&&(t.message=X5b(g.H$(t.message)));y.Y&&(Iu(y,{updtks:1}),y.status="ku",y.Y.update(t.message).then(function(){pM("drm_kr_f",void 0,y.videoData.hF);TK(y)||(Iu(y,{ksApiUnsup:1}),y.publish("keystatuseschange",y))},function(r){r="msuf.req."+y.requestNumber+";msg."+g.bn(r.message,3); y.error("drm.keyerror",1,r)})); g.zu(y.K)&&y.publish("fairplay_next_need_key_info",y.baseUrl,t.nextFairplayKeyId);y.j.B("html5_enable_vp9_fairplay")&&CN(y.K)&&y.publish("qualitychange",QXd(y.D));t.sabrLicenseConstraint&&y.publish("sabrlicenseconstraint",t.sabrLicenseConstraint)}}; fZN=function(y,t){var a=t.V.getValue();a=new g.Te(function(){W11(y,t)},a); g.c(y,a);a.start();g.c6(t.V);Iu(y,{rtyrq:1})}; v2V=function(y,t){for(var a=[],r=g.p(Object.keys(y.V)),E=r.next();!E.done;E=r.next())E=E.value,a.push(E+"_"+y.V[E].type+"_"+y.V[E].status);return a.join(t)}; pP2=function(y){var t={};t[y.status]=TK(y)?v2V(y,"."):y.D.join(".");return t}; e_n=function(y,t,a){var r={};r.isHdr=t.includes("HDR");switch(t.replace("HDR","").replace("720","")){case "AUDIO":r.trackType=1;break;case "SD":r.trackType=2;break;case "HD":r.trackType=3;break;case "UHD1":r.trackType=4;break;case "UHD2":r.trackType=5;break;default:r.trackType=0}!r.trackType||a[t]||TK(y)&&!GK(y,t)||(y.authorizedFormats.push(r),a[t]=!0)}; GK=function(y,t){for(var a in y.V)if(y.V[a].status==="usable"&&y.V[a].type===t)return!0;return!1}; lZ1=function(y,t){for(var a in y.V)if(y.V[a].type===t)return y.V[a].status}; Iu=function(y,t){var a=a===void 0?!1:a;al(t);(a||y.j.Bb())&&y.publish("ctmp","drmlog",t)}; uK1=function(y){var t=y[0];y[0]=y[3];y[3]=t;t=y[1];y[1]=y[2];y[2]=t;t=y[4];y[4]=y[5];y[5]=t;t=y[6];y[6]=y[7];y[7]=t}; QXd=function(y){return g.TE(y,"UHD2")||g.TE(y,"UHD2HDR")?"highres":g.TE(y,"UHD1")||g.TE(y,"UHD1HDR")?"hd2160":g.TE(y,"HD")||g.TE(y,"HDHDR")?"hd1080":g.TE(y,"HD720")||g.TE(y,"HD720HDR")?"hd720":"large"}; XP1=function(y){for(var t="",a=0;a'.charCodeAt(r);y=y.Y.createSession("video/mp4",t,a);return new Z3(null,null,null,null,y)}; BLF=function(y,t){var a=y.J[t.sessionId];!a&&y.D&&(a=y.D,y.D=null,a.sessionId=t.sessionId,y.J[t.sessionId]=a);return a}; o22=function(y,t){var a=y.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);a=String.fromCharCode.apply(null,a).match(/ek=([0-9a-f]+)/)[1];for(var r="",E=0;E19.2999?(y=a.aH,a=a.LQ, a>=y&&(a=y*.75),t=(y-a)*.5,a=new ib(t,y,y-t-a,this)):a=null;break a;case "widevine":a=new KH(t,this,y);break a;default:a=null}if(this.L=a)g.c(this,this.L),this.L.subscribe("rotated_need_key_info_ready",this.mE,this),this.L.subscribe("log_qoe",this.D5,this);LN(this.j.experiments);this.D5({cks:this.V.getInfo()})}; q2V=function(y){var t=JXd(y.D,y.mediaElement);t?t.then(Ad(function(){DU1(y)}),Ad(function(a){if(!y.Qv()){g.pK(a); var r="t.a";a instanceof DOMException&&(r+=";n."+a.name+";m."+a.message);y.publish("licenseerror","drm.unavailable",1,r,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(y.D5({mdkrdy:1}),y.hF=!0); y.AF&&(t=JXd(y.AF,y.mediaElement))}; iax=function(y,t,a){y.yv=!0;a=new mQ(t,a);y.j.B("html5_eme_loader_sync")&&(y.J.get(t)||y.J.set(t,a));g22(y,a)}; g22=function(y,t){if(!y.Qv()){y.D5({onInitData:1});if(y.j.B("html5_eme_loader_sync")&&y.videoData.Y&&y.videoData.Y.V){var a=y.W.get(t.initData);t=y.J.get(t.initData);if(!a||!t)return;t=a;a=t.initData;y.J.remove(a);y.W.remove(a)}y.D5({initd:t.initData.length,ct:t.contentType});if(y.V.flavor==="widevine")if(y.d0&&!y.videoData.isLivePlayback)a0(y);else{if(!(y.j.B("vp9_drm_live")&&y.videoData.isLivePlayback&&t.GO)){y.d0=!0;a=t.cryptoPeriodIndex;var r=t.V;WB2(t);t.GO||(r&&t.V!==r?y.publish("ctmp","cpsmm", {emsg:r,pssh:t.V}):a&&t.cryptoPeriodIndex!==a&&y.publish("ctmp","cpimm",{emsg:a,pssh:t.cryptoPeriodIndex}));y.publish("widevine_set_need_key_info",t)}}else y.mE(t)}}; DU1=function(y){if(!y.Qv())if(y.j.B("html5_drm_set_server_cert")||CN(y.V)){var t=y.D.setServerCertificate();t?t.then(Ad(function(a){y.j.Bb()&&y.publish("ctmp","ssc",{success:a})}),Ad(function(a){y.publish("ctmp","ssce",{n:a.name, m:a.message})})).then(Ad(function(){K1y(y)})):K1y(y)}else K1y(y)}; K1y=function(y){y.Qv()||(y.hF=!0,y.D5({onmdkrdy:1}),a0(y))}; IZN=function(y){return y.V.flavor==="widevine"&&y.videoData.B("html5_drm_cpi_license_key")}; a0=function(y){if(y.yv&&y.hF&&!y.DE){for(;y.Y.length;){var t=y.Y[0],a=IZN(y)?jE7(t):g.H$(t.initData);if(CN(y.V)&&!t.K)y.Y.shift();else{if(y.K.get(a))if(y.V.flavor!=="fairplay"||CN(y.V)){y.Y.shift();continue}else y.K.delete(a);WB2(t);break}}y.Y.length&&y.createSession(y.Y[0])}}; TLn=function(y){var t,a;g.m(function(r){if(r.V==1){var E;if(E=g.IB()){var h;E=!((h=y.D.K)==null||!h.getMetrics)}return E?g.u(r,y.D.getMetrics(),2):r.return()}t=r.K;if(!t)return r.return();U0(t)||(t=g.dj(t));a=/^[A-Za-z0-9_-]+={0,3}$/;a.test(t)||(t=g.bn(t,void 0,!0));y.publish("ctmp","drm",{metrics:t});g.FU(r)})}; r_=function(){var y=Uin();return!(!y||y==="visible")}; Zax=function(y){var t=Gq7();t&&document.addEventListener(t,y,!1)}; ySb=function(y){var t=Gq7();t&&document.removeEventListener(t,y,!1)}; Gq7=function(){if(document.visibilityState)var y="visibilitychange";else{if(!document[PG+"VisibilityState"])return"";y=PG+"visibilitychange"}return y}; anH=function(y){tSu=y}; EiF=function(y){rSb=y}; hGn=function(y){g.H.call(this);var t=this;this.Om=y;this.Kr=0;this.J=this.K=this.L=!1;this.D=0;this.P4=this.Om.G();this.videoData=this.Om.getVideoData();this.Y=g.Gw(this.P4.experiments,"html5_delayed_retry_count");this.V=new g.Te(function(){t.Om.UV()},g.Gw(this.P4.experiments,"html5_delayed_retry_delay_ms")); g.c(this,this.V)}; $f1=function(y,t,a){var r=y.videoData.K,E=y.videoData.D,h=y.P4.B("html5_disable_codec_fallback_for_drm")&&y.videoData.sM();Rh(y.Om.getVideoData())&&y.P4.B("html5_gapless_fallback_on_qoe_restart")&&g6y(y.Om,"pe");if((t==="progressive.net.retryexhausted"||t==="fmt.unplayable"||t==="fmt.decode")&&!y.Om.Oh.L&&r&&r.itag==="22")return y.Om.Oh.L=!0,y.Aj("qoe.restart",{reason:"fmt.unplayable.22"}),y.Om.Ag(),!0;var F=!1;if(y.videoData.isExternallyHostedPodcast){if(F=y.videoData.w8)a.mimeType=F.type,y.H4("3pp", {url:F.url});a.ns="3pp";y.Om.w7(t,1,"VIDEO_UNAVAILABLE",al((new g.rg(t,a,1)).details));return!0}var x=y.Kr+3E4<(0,g.Wx)()||y.V.isActive();if(y.P4.B("html5_empty_src")&&y.videoData.isAd()&&t==="fmt.unplayable"&&/Empty src/.test(""+a.msg))return a.origin="emptysrc",y.Aj("auth",a),!0;x||Fo7(y.Om.Sf())||(a.nonfg="paused",x=!0,y.Om.pauseVideo());(t==="fmt.decode"||t==="fmt.unplayable")&&(E==null?0:HU(E))&&(CTn(y.P4.L,E.G7),a.acfallexp=E.G7,F=x=!0);!x&&y.Y>0&&(y.V.start(),x=!0,a.delayed="1",--y.Y);E=y.Om.loader; x||!((r==null?0:ol(r))||(r==null?0:lH(r)))||h||(CTn(y.P4.L,r.G7),F=x=!0,a.cfallexp=r.G7);if(!x)return AS7(y,a);h=!1;y.L?y.Kr=(0,g.Wx)():h=y.L=!0;x=y.videoData;if(x.d0){x=x.d0.PS();var U=Date.now()/1E3+1800;x=x3E5&&t.zl>=3:!t.schedule.yv}return y.videoData.Z?y.videoData.r0<25:!y.videoData.r0}; sZ7=function(y){if(!y.K){y.K=!0;var t=y.Om.getPlayerState();t=t.isPaused()||t.isSuspended();y.Om.TH();t&&!rO(y.videoData)||y.Om.publish("signatureexpired")}}; UfF=function(y,t){if((y=y.Om.uJ())&&(t.errorCode==="fmt.unplayable"||t.errorCode==="html5.invalidstate")){var a=y.Jl();t.details.merr=a?a.toString():"0";t.details.mmsg=y.xT()}}; CrN=function(y){return y.errorCode==="net.badstatus"&&(y.severity===1||!!y.details.fmt_unav)}; zGF=function(y,t){return y.P4.B("html5_use_network_error_code_enums")&&t.details.rc===403||t.details.rc==="403"?(y=t.errorCode,y==="net.badstatus"||y==="manifest.net.retryexhausted"):!1}; Lod=function(y,t){if(!zGF(y,t)&&!y.K)return!1;t.details.sts="20411";if(xfd(y))return ED(t.severity)&&(t=Object.assign({e:t.errorCode},t.details),t=new g.rg("qoe.restart",t)),y.Aj(t.errorCode,t.details),sZ7(y),!0;(0,g.Wx)()-y.P4.TR>6048E5&&OW7(y,"signature");return!1}; OW7=function(y,t){try{t={detail:"pr."+t},(FI(y.P4)||NO(y.P4)==="TVHTML5_FOR_KIDS")&&y.P4.B("html5_reload_by_kabuki_app")?y.Om.w7("qoe.restart",1,void 0,al(t),"7"):(y.Aj("qoe.restart",t),window.location.reload())}catch(a){}}; MS7=function(y,t){var a=y.P4.L;a.J=!1;a.V=!0;y.Aj("qoe.restart",{e:t===void 0?"fmt.noneavailable":t,detail:"hdr"});y.Om.UV(!0)}; var $H7=function(y,t){return wx[A[3]](this,16,y,t)}; wR7=function(y,t,a,r,E,h){this.videoData=y;this.V=t;this.reason=a;this.K=r;this.token=E;this.videoId=h}; Eo=function(y,t,a,r){this.j=y;this.TA=t;this.Om=a;this.xE=r;this.Z=this.J=this.V=this.D=this.W=this.K=0;this.L=!1;this.hF=g.Gw(this.j.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Y=new Map}; RGy=function(y,t,a){!y.j.B("html5_tv_ignore_capable_constraint")&&g.OY(y.j)&&(a=a.compose(y.tH(t)));return a}; Pr1=function(y){if(y.Om.Sf().isInline())return Eu;y=Hh[Wh()];return g.mE("auto",y,!1,"s")}; dfu=function(y,t){var a,r=NHV(y,(a=t.V)==null?void 0:a.videoInfos);a=y.Om.getPlaybackRate();return a>1&&r?(y=x2n(y.j.L,t.V.videoInfos,a),new ny(0,y,!0,"o")):new ny(0,0,!1,"o")}; NHV=function(y,t){return t&&g.OY(y.j)?t.some(function(a){return a.video.fps>32}):!1}; XRd=function(y,t){if(y.B("html5_disable_ustreamer_constraint_for_sabr")&&V3(t.videoData))return Eu;var a=y.Om.lN();y.B("html5_use_video_quality_cap_for_ustreamer_constraint")&&a&&a.tB>0&&ot(t.videoData.NH)&&(y=a.tB,t.videoData.NH=new ny(0,y,!1,"u"));return t.videoData.NH}; kVb=function(y,t){var a;a:if((a=t.V)&&a.videoInfos.length){for(var r=g.p(a.videoInfos),E=r.next();!E.done;E=r.next()){E=E.value;var h=void 0;if((h=E.K)==null?0:h.smooth){a=E.video.qualityOrdinal;break a}}a=a.videoInfos[0].video.qualityOrdinal}else a=0;(g.io("armv7")||g.io("aarch64")||g.io("android"))&&!g.OY(y.j)&&lH(t.V.videoInfos[0])&&(a=Math.min(a,g.jt.large));r=g.Gw(y.j.experiments,"html5_chipset_soft_cap");r>0&&(a=Math.min(a,r));if(r=g.Gw(y.j.experiments,"html5_max_vertical_resolution")){E=4320; for(h=0;hr&&(E=Math.min(E,F.video.qualityOrdinal))}if(E<4320){for(F=h=0;F32){E=!0;break a}}E=!1}E&&(a=Math.min(a,r));(r=g.Gw(y.j.experiments,"html5_live_quality_cap"))&&t.videoData.isLivePlayback&&(a=Math.min(a,r));a=fn2(y,t,a);y=g.Gw(y.j.experiments,"html5_byterate_soft_cap");return new ny(0,a===4320?0:a,!1,"d",y)}; jZ2=function(y){var t,a,r,E;return g.m(function(h){switch(h.V){case 1:return y.V.V&&typeof((t=navigator.mediaCapabilities)==null?void 0:t.decodingInfo)==="function"?g.u(h,Promise.resolve(),2):h.return(Promise.resolve());case 2:a=g.p(y.V.videoInfos),r=a.next();case 3:if(r.done){h.xG(0);break}E=r.value;return g.u(h,$TN(E),4);case 4:r=a.next(),h.xG(3)}})}; vix=function(y,t,a,r){if(!t||!a||!t.videoData.K)return!1;var E=g.Gw(y.j.experiments,"html5_df_downgrade_thresh"),h=y.B("html5_log_media_perf_info");if(!((0,g.Wx)()-y.D<5E3?0:h||E>0))return!1;var F=((0,g.Wx)()-y.D)/1E3;y.D=(0,g.Wx)();a=a.getVideoPlaybackQuality();if(!a)return!1;var x=a.droppedVideoFrames-y.J,U=a.totalVideoFrames-y.Z;y.J=a.droppedVideoFrames;y.Z=a.totalVideoFrames;var C=a.displayCompositedVideoFrames===0?0:a.displayCompositedVideoFrames||-1;h&&y.j.Bb()&&y.Om.H4("ddf",{dr:a.droppedVideoFrames, de:a.totalVideoFrames,comp:C});if(r)return y.V=0,!1;if((U-x)/F>y.hF||!E||g.OY(y.j))return!1;y.V=(U>60?x/U:0)>E?y.V+1:0;if(y.V!==3)return!1;SxH(y,t.videoData.K);y.Om.H4("dfd",Object.assign({dr:a.droppedVideoFrames,de:a.totalVideoFrames},QZb()));return!0}; SxH=function(y,t){var a=t.G7,r=t.video.fps,E=t.video.qualityOrdinal-1,h=y.Y;t=""+a+(r>49?"p60":r>32?"p48":"");a=EI(a,r,h);E>0&&(a=Math.min(a,E));if(!hO.has(t)&&Q6().includes(t)){var F=a;a=S_();+a[t]>0&&(F=Math.min(+a[t],F));a[t]!==F&&(a[t]=F,g.m7("yt-player-performance-cap",a,2592E3))}else if(hO.has(t)||h==null){a:{F=F===void 0?!0:F;r=Q6().slice();if(F){if(r.includes(t))break a;r.push(t)}else{if(!r.includes(t))break a;r.splice(r.indexOf(t),1)}g.m7("yt-player-performance-cap-active-set",r,2592E3)}r9.set(t, a)}else hO.add(t),h==null||h.set(t,a);y.Om.hg()}; pR7=function(y,t){if(!t.V.V)return y.L?new ny(0,360,!1,"b"):Eu;for(var a=!1,r=!1,E=g.p(t.V.videoInfos),h=E.next();!h.done;h=E.next())ol(h.value)?a=!0:r=!0;a=a&&r;r=0;E=g.Gw(y.j.experiments,"html5_performance_cap_floor");E=y.j.K?240:E;t=g.p(t.V.videoInfos);for(h=t.next();!h.done;h=t.next()){var F=h.value;if(!a||!ol(F))if(h=EI(F.G7,F.video.fps,y.Y),F=F.video.qualityOrdinal,Math.max(h,E)>=F){r=F;break}}return new ny(0,r,!1,"b")}; eG7=function(y,t){var a=y.Om.Sf();return a.isInline()&&!t.XF?new ny(0,480,!1,"v"):V3(t)?Eu:a.isBackground()&&du()/1E3>60&&!g.OY(y.j)?new ny(0,360,!1,"v"):Eu}; ln7=function(y,t,a){if(y.j.experiments.Nr("html5_disable_client_autonav_cap_for_onesie")&&t.fetchType==="onesie"||g.OY(y.j)&&(Wh(-1)>=1080||t.osid))return Eu;var r=g.Gw(y.j.experiments,"html5_autonav_quality_cap"),E=g.Gw(y.j.experiments,"html5_autonav_cap_idle_secs");return r&&t.isAutonav&&du()/1E3>E?(a&&(r=fn2(y,a,r)),new ny(0,r,!1,"e")):Eu}; fn2=function(y,t,a){if(y.B("html5_optimality_defaults_chooses_next_higher")&&a)for(y=t.V.videoInfos,t=1;t=0||(y.provider.Om.getVisibilityState()===3?y.L=!0:(y.V=g.eK(y.provider),y.delay.start()))}; ni7=function(y){if(!(y.K<0)){var t=g.eK(y.provider),a=t-y.D;y.D=t;y.playerState.state===8?y.playTimeSecs+=a:y.playerState.isBuffering()&&!g.D(y.playerState,16)&&(y.rebufferTimeSecs+=a)}}; mfd=function(y){var t;switch((t=y.j.playerCanaryStage)==null?void 0:t.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"}}; JSx=function(y){var t=this;this.provider=y;this.Z=!1;this.V=0;this.D=-1;this.nH=NaN;this.Y=0;this.segments=[];this.W=this.J=0;this.previouslyEnded=!1;this.L=0;this.serializedPlaybackPingContextLoggingData=void 0;this.Wb={tYF:function(){return t.serializedPlaybackPingContextLoggingData}}; this.AF=this.provider.Om.getVolume();this.hF=this.provider.Om.isMuted()?1:0;this.K=AO(this.provider)}; x9=function(y){y.K.startTime=y.Y;y.K.endTime=y.V;var t;if((t=y.serializedPlaybackPingContextLoggingData)==null?0:t.length)y.K.serializedPlaybackPingContextLoggingData=y.serializedPlaybackPingContextLoggingData;t=!1;y.segments.length&&g.q9(y.segments).isEmpty()?(y.segments[y.segments.length-1].previouslyEnded&&(y.K.previouslyEnded=!0),y.segments[y.segments.length-1]=y.K,t=!0):y.segments.length&&y.K.isEmpty()||(y.segments.push(y.K),t=!0);t?y.K.endTime===0&&(y.previouslyEnded=!1):y.K.previouslyEnded&& (y.previouslyEnded=!0);y.J+=y.V-y.Y;y.K=AO(y.provider);y.K.previouslyEnded=y.previouslyEnded;y.provider.j.pJ().V.o7(oi7)&&(y.L+=JSON.stringify(y.K).length);y.previouslyEnded=!1;y.Y=y.V}; bWF=function(y){HW7(y);y.W=g.ds(function(){y.update()},100); y.nH=g.eK(y.provider);y.K=AO(y.provider)}; HW7=function(y){g.kz(y.W);y.W=NaN}; BHb=function(y,t,a){a-=y.nH;return t===y.V&&a>.5}; cSu=function(y,t,a,r){this.j=t;this.XB=a;this.segments=[];this.experimentIds=[];this.JF=this.MK=this.isFinal=this.delayThresholdMet=this.zl=this.IR=this.autoplay=this.autonav=!1;this.sR="yt";this.J=[];this.W=this.hF=null;this.sendVisitorIdHeader=this.R5=!1;this.Z=this.pageId="";this.MP=!1;this.L=a==="watchtime";this.Y=a==="playback";this.DE=a==="atr";this.ix=a==="engage";this.sendVisitorIdHeader=!1;this.uri=this.DE?"/api/stats/"+a:"//"+t.Vu+"/api/stats/"+a;r&&(this.MK=r.fs,r.rtn&&(this.W=r.rtn),this.L? (this.playerState=r.state,r.rti>0&&(this.hF=r.rti)):(this.ND=r.mos,this.Bz=r.volume,r.at&&(this.adType=r.at)),r.autonav&&(this.autonav=r.autonav),r.inview!=null&&(this.nJ=r.inview),r.size&&(this.ZA=r.size),r.playerwidth&&(this.uK=r.playerwidth),r.playerheight&&(this.bq=r.playerheight));this.RR=g.uN(t.V);this.Z=k3(t.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Z==="all"||this.Z==="once")this.FB=g.uN(t.zl);this.P1=t.ND;this.experimentIds=Eqb(t.experiments);this.r0=t.MP;this.sR=t.AF;this.region= t.region;this.userAge=t.userAge;this.n1=t.mp;this.pM=du();this.sendVisitorIdHeader=t.sendVisitorIdHeader;this.d0=t.B("vss_pings_using_networkless")||t.B("kevlar_woffle");this.TR=t.B("vss_final_ping_send_and_write");this.L1=t.B("vss_use_send_and_write");this.pageId=t.pageId;this.Ri=t.B("vss_playback_use_send_and_write");t.livingRoomAppMode&&(this.livingRoomAppMode=t.livingRoomAppMode);g.bc(t)&&(this.yv=t.d0);g.Lo(g.IE(t))&&this.J.push(1);this.accessToken=g.y$(y);y.Ks[this.XB]?this.D=y.Ks[this.XB]: y.Ks.playback&&(this.D=y.Ks.playback);this.adFormat=y.adFormat;this.adQueryId=y.adQueryId;this.autoplay=Wxb(y);this.Y&&(this.IR=y.UQ&&Ih(y)==="adunit"?!0:!1);this.autonav=y.isAutonav||this.autonav;this.contentVideoId=Go(y);this.clientPlaybackNonce=y.clientPlaybackNonce;this.zl=y.Zh;y.J&&(this.Vv=y.J,this.I7=y.MH);y.mdxEnvironment&&(this.mdxEnvironment=y.mdxEnvironment);this.V=y.FB;this.MB=y.MB;y.K&&(this.EM=y.K.itag,y.D&&y.D.itag!==this.EM&&(this.Az=y.D.itag));y.V&&qy(y.V)&&(this.offlineDownloadUserChoice= "1");this.eventLabel=Ih(y);this.JF=y.ZA?!1:y.nJ;this.cj=y.x8;if(t=mA(y))this.GR=t;this.oo=y.SF;this.partnerId=y.partnerId;this.eventId=y.eventId;this.playlistId=y.lr||y.playlistId;this.aM=y.aM;this.VQ=y.VQ;this.Rs=y.Rs;this.xw=y.xw;this.subscribed=y.subscribed;this.videoId=y.videoId;this.videoMetadata=y.videoMetadata;this.visitorData=y.visitorData;this.osid=y.osid;this.o0=y.o0;this.referrer=y.referrer;this.Bi=y.tS||y.Bi;this.T7=y.jF;this.UF=y.UF;this.userGenderAge=y.userGenderAge;this.T8=y.T8;this.embedsRct= y.embedsRct;this.embedsRctn=y.embedsRctn;g.bc(this.j)&&y.mutedAutoplay&&(y.mutedAutoplayDurationMode===2&&y.limitedPlaybackDurationInSeconds===0&&y.endSeconds===0?this.J.push(7):this.J.push(2));y.isEmbedsShortsMode(new g.F1(this.uK,this.bq),!!this.playlistId)&&this.J.push(3);g.Uf(y)&&this.J.push(4);this.C1=y.NW;y.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=y.compositeLiveIngestionOffsetToken);y=y.getPlayerResponse();var E,h;this.MP=this.j.B("html5_switch_vss_to_post")|| !!(y==null?0:(E=y.playerConfig)==null?0:(h=E.vssClientConfig)==null?0:h.vssUsePostRequest)}; qxb=function(y,t){var a=y.sendVisitorIdHeader?y.visitorData:void 0;return g.wY(y.j,y.accessToken).then(function(r){return Xq(y.uri,y.j,y.pageId,a,r,t)})}; gi7=function(y,t){return function(){y.j.B("html5_simplify_pings")?(y.V=y.Ff,y.vO=t(),y.pM=0,y.send()):qxb(y).then(function(a){var r=Yxx(y);r.cmt=r.len;r.lact="0";var E=t().toFixed(3);r.rt=Number(E).toString();r=g.lJ(y.uri,r);y.j.B("vss_through_gel_double")&&Dfd(r);y.d0?(a==null&&(a={}),y.L1?K4().sendAndWrite(r,a):K4().sendThenWrite(r,a)):a?g.pt(r,a):g.JR(r)})}}; Yxx=function(y){var t={ns:y.sR,el:y.eventLabel,cpn:y.clientPlaybackNonce,ver:2,cmt:y.K(y.V),fmt:y.EM,fs:y.MK?"1":"0",rt:y.K(y.vO),adformat:y.adFormat,content_v:y.contentVideoId,euri:y.P1,lact:y.pM,live:y.GR,cl:(834519076).toString(),mos:y.ND,state:y.playerState,volume:y.Bz};y.subscribed&&(t.subscribed="1");Object.assign(t,y.RR);y.Z==="all"?Object.assign(t,y.FB):y.Z==="once"&&y.Y&&Object.assign(t,y.FB);y.autoplay&&(t.autoplay="1");y.IR&&(t.sautoplay="1");y.zl&&(t.dni="1");!y.L&&y.yv&&(t.epm=iWd[y.yv]); y.isFinal&&(t["final"]="1");y.JF&&(t.splay="1");y.MB&&(t.delay=y.MB);y.r0&&(t.hl=y.r0);y.region&&(t.cr=y.region);y.userGenderAge&&(t.uga=y.userGenderAge);y.userAge!==void 0&&y.n1&&(t.uga=y.n1+y.userAge);y.Ff!==void 0&&(t.len=y.K(y.Ff));!y.L&&y.experimentIds.length>0&&(t.fexp=y.experimentIds.toString());y.W!==null&&(t.rtn=y.K(y.W));y.Bi&&(t.feature=y.Bi);y.VQ&&(t.ctrl=y.VQ);y.Rs&&(t.ytr=y.Rs);y.Az&&(t.afmt=y.Az);y.offlineDownloadUserChoice&&(t.ODUC=y.offlineDownloadUserChoice);y.AF&&(t.lio=y.K(y.AF)); y.L?(t.idpj=y.cj,t.ldpj=y.oo,y.delayThresholdMet&&(t.dtm="1"),y.hF!=null&&(t.rti=y.K(y.hF)),y.T8&&(t.ald=y.T8),y.compositeLiveIngestionOffsetToken&&(t.clio=y.compositeLiveIngestionOffsetToken)):y.adType!==void 0&&(t.at=y.adType);y.ZA&&(y.Y||y.L)&&(t.size=y.ZA);y.Y&&y.J.length&&(t.pbstyle=y.J.join(","));y.nJ!=null&&(y.Y||y.L)&&(t.inview=y.K(y.nJ));y.L&&(t.volume=so(y,g.v$(y.segments,function(r){return r.volume})),t.st=so(y,g.v$(y.segments,function(r){return r.startTime})),t.et=so(y,g.v$(y.segments, function(r){return r.endTime})),rQ(y.segments,function(r){return r.playbackRate!==1})&&(t.rate=so(y,g.v$(y.segments,function(r){return r.playbackRate}))),rQ(y.segments,function(r){return r.V!=="-"})&&(t.als=g.v$(y.segments,function(r){return r.V}).join(",")),rQ(y.segments,function(r){return r.previouslyEnded})&&(t.pe=g.v$(y.segments,function(r){return""+ +r.previouslyEnded}).join(","))); t.muted=so(y,g.v$(y.segments,function(r){return r.muted?1:0})); rQ(y.segments,function(r){return r.visibilityState!==0})&&(t.vis=so(y,g.v$(y.segments,function(r){return r.visibilityState}))); rQ(y.segments,function(r){return r.connectionType!==0})&&(t.conn=so(y,g.v$(y.segments,function(r){return r.connectionType}))); rQ(y.segments,function(r){return r.K!==0})&&(t.blo=so(y,g.v$(y.segments,function(r){return r.K}))); rQ(y.segments,function(r){return!!r.D})&&(t.blo=g.v$(y.segments,function(r){return r.D}).join(",")); rQ(y.segments,function(r){return!!r.compositeLiveStatusToken})&&(t.cbs=g.v$(y.segments,function(r){return r.compositeLiveStatusToken}).join(",")); rQ(y.segments,function(r){return!!r.heartbeatLoggingToken})&&(t.hb_data=g.v$(y.segments,function(r){return r.heartbeatLoggingToken}).join(",")); rQ(y.segments,function(r){return r.Y!=="-"})&&(t.cc=g.v$(y.segments,function(r){return r.Y}).join(",")); rQ(y.segments,function(r){return r.clipId!=="-"})&&(t.clipid=g.v$(y.segments,function(r){return r.clipId}).join(",")); if(rQ(y.segments,function(r){return!!r.audioId})){var a="au"; y.Y&&(a="au_d");t[a]=g.v$(y.segments,function(r){return r.audioId}).join(",")}zc()&&y.Vv&&(t.ctt=y.Vv,t.cttype=y.I7,t.mdx_environment=y.mdxEnvironment); y.ix&&(t.etype=y.o5!==void 0?y.o5:0);y.T7&&(t.uoo=y.T7);y.livingRoomAppMode&&y.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(t.clram=Koy[y.livingRoomAppMode]||y.livingRoomAppMode);y.D?InV(y,t):(t.docid=y.videoId,t.referrer=y.referrer,t.ei=y.eventId,t.of=y.o0,t.osid=y.osid,t.vm=y.videoMetadata,y.adQueryId&&(t.aqi=y.adQueryId),y.autonav&&(t.autonav="1"),y.playlistId&&(t.list=y.playlistId),y.xw&&(t.ssrt="1"),y.UF&&(t.upt=y.UF));y.Y&&(y.embedsRct&&(t.rct=y.embedsRct),y.embedsRctn&&(t.rctn= y.embedsRctn),y.compositeLiveIngestionOffsetToken&&(t.clio=y.compositeLiveIngestionOffsetToken));y.C1&&(t.host_cpn=y.C1);return t}; InV=function(y,t){if(t&&y.D){var a=new Set(["q","feature","mos"]),r=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),E=new Set(["aqi","autonav","list","ssrt","upt"]);y.D.ns==="3pp"&&(t.ns="3pp");for(var h=g.p(Object.keys(y.D)),F=h.next();!F.done;F=h.next())F=F.value,r.has(F)||a.has(F)||E.has(F)&&!y.D[F]||(t[F]=y.D[F])}}; so=function(y,t){return g.v$(t,y.K).join(",")}; Dfd=function(y){y.indexOf("watchtime")!==-1&&g.Mc("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:y}})}; THz=function(y,t){y.attestationResponse&&qxb(y).then(function(a){a=a||{};a.method="POST";a.postParams={atr:y.attestationResponse};y.d0?y.L1?K4().sendAndWrite(t,a):K4().sendThenWrite(t,a):g.pt(t,a)})}; GVH=function(y){var t={vssSegmentMetadata:[]};if(rQ(y.segments,function(r){return!!r.serializedPlaybackPingContextLoggingData})){y=g.p(y.segments); for(var a=y.next();!a.done;a=y.next())t.vssSegmentMetadata.push({serializedPlaybackPingContextLoggingData:a.value.serializedPlaybackPingContextLoggingData||[""]});return t}}; $9=function(y){g.H.call(this);var t=this;this.provider=y;this.J="paused";this.L=NaN;this.Z=[10,10,10,40];this.hF=this.W=0;this.Vv=this.DE=this.o5=this.AF=this.Y=!1;this.K=this.D=NaN;this.logger=new g.kK("vss");this.Wb={mo5:function(){return t.V}}; this.V=new JSx(y)}; ZWd=function(y){var t=y.provider.videoData.x8,a=y.provider.videoData.SF,r=[10+t,10,10,40+a-t,40],E,h=(E=y.provider.videoData.getPlayerResponse())==null?void 0:E.playbackTracking,F=h==null?void 0:h.videostatsScheduledFlushWalltimeSeconds;E=h==null?void 0:h.videostatsDefaultFlushIntervalSeconds;if(!(F&&F.length>0&&E))return r;t=[F[0]+t].concat(g.i7(F.slice(1).map(function(x,U){return x-F[U]})),[E+a-t, E]);return t.some(function(x){return x<0})?(g.fw(y.logger,347111855,"Neg vss scheduled pings "+F+" "+E),r):t}; C1=function(y,t){t=t===void 0?NaN:t;var a=g.eK(y.provider);t=isNaN(t)?a:t;t=Math.ceil(t);var r=y.Z[y.W];y.W+11E3;!(h.length>1)&&h[0].isEmpty()||x||(F.W=C1(y,E));F.send();y.hF++}},(E-a)*1E3); return y.D=E}; zs=function(y){g.Xk(y.L);y.L=NaN}; Uo=function(y){y.V.update();y=y.V;y.segments.length&&y.V===y.Y||x9(y);var t=y.segments;y.segments=[];y.L=0;return t}; Oo=function(y,t){var a=trV(y.provider);Object.assign(a,{state:y.J});t=new cSu(y.provider.videoData,y.provider.j,t,a);t.V=y.provider.Om.cz();a=y.provider.videoData.clientPlaybackNonce;t.V=y.provider.Om.Wc(a);y.provider.videoData.isLivePlayback||(t.Ff=y.provider.Om.getDuration(a));y.provider.videoData.V&&(a=y.provider.videoData.V.Pj(t.V))&&(t.AF=a-t.V,dU(y.provider.videoData)&&(t.V+=y.provider.Om.fJ(),t.AF-=y.provider.Om.fJ()));t.vO=g.eK(y.provider);t.segments=[AO(y.provider)];return t}; yrb=function(y,t){var a=Oo(y,"watchtime");auy(y)&&(a.delayThresholdMet=!0,y.o5=!0);if(y.K>0){for(var r=g.p(t),E=r.next();!E.done;E=r.next())E=E.value,E.startTime-=y.K,E.endTime-=y.K;a.V-=y.K}else a.V=y.V.V;a.segments=t;return a}; L1=function(y,t){var a=rrF(y,!isNaN(y.D));t&&(y.D=NaN);return a}; rrF=function(y,t){var a=yrb(y,Uo(y));!isNaN(y.D)&&t&&(a.hF=y.D);return a}; auy=function(y){var t;if(t=y.provider.videoData.isLoaded()&&y.provider.videoData.MB&&y.Y&&!y.o5)t=y.V,t=t.J+t.cz()-t.Y>=y.provider.videoData.MB;return!!t}; hTd=function(y){y.provider.videoData.youtubeRemarketingUrl&&!y.DE&&(EFN(y,y.provider.videoData.youtubeRemarketingUrl),y.DE=!0)}; FQN=function(y){y.provider.videoData.googleRemarketingUrl&&!y.Vv&&(EFN(y,y.provider.videoData.googleRemarketingUrl),y.Vv=!0)}; ArN=function(y){if(!y.Qv()&&y.Y){y.J="paused";var t=L1(y);t.isFinal=!0;t.send();y.dispose()}}; x5x=function(y,t){if(!y.Qv())if(g.D(t.state,2)||g.D(t.state,512)){if(y.J="paused",g.Og(t,2)||g.Og(t,512))g.Og(t,2)&&(y.V.previouslyEnded=!0),y.Y&&(zs(y),L1(y).send(),y.D=NaN)}else if(g.D(t.state,8)){y.J="playing";var a=y.Y&&isNaN(y.L)?C1(y):NaN;if(!isNaN(a)&&(zz(t,64)<0||zz(t,512)<0)){var r=rrF(y,!1);r.W=a;r.send()}g.Og(t,16)&&t.state.seekSource===58&&(y.V.previouslyEnded=!0)}else y.J="paused"}; s7x=function(y,t,a){if(!y.AF){a||(a=Oo(y,"atr"));a.attestationResponse=t;try{a.send()}catch(r){if(r.message!=="Unknown Error")throw r;}y.AF=!0}}; EFN=function(y,t){var a=y.provider.j;g.wY(y.provider.j,g.y$(y.provider.videoData)).then(function(r){var E=y.provider.j.pageId,h=y.provider.j.sendVisitorIdHeader?y.provider.videoData.visitorData:void 0,F=y.provider.j.B("vss_pings_using_networkless")||y.provider.j.B("kevlar_woffle"),x=y.provider.j.B("allow_skip_networkless");r=Xq(t,a,E,h,r);kQ(t,r,{token:y.provider.videoData.J,KY:y.provider.videoData.MH,mdxEnvironment:y.provider.videoData.mdxEnvironment},a,void 0,F&&!x,!1,!0)})}; $5x=function(){this.endTime=this.startTime=-1;this.Y="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.K=0;this.muted=!1;this.V=this.clipId="-";this.previouslyEnded=!1}; Mk=function(y,t,a){this.videoData=y;this.j=t;this.Om=a;this.V=void 0}; g.eK=function(y){return U5F(y)()}; U5F=function(y){if(!y.V){var t=g.J7(function(r){var E=(0,g.Wx)();r&&E<=631152E6&&(y.Om.H4("ytnerror",{issue:28799967,value:""+E}),E=(new Date).getTime()+2);return E},y.j.B("html5_validate_yt_now")),a=t(); y.V=function(){return Math.round(t()-a)/1E3}; y.Om.ZV()}return y.V}; trV=function(y){var t=y.Om.yu()||{};t.fs=y.Om.Sd();t.volume=y.Om.getVolume();t.muted=y.Om.isMuted()?1:0;t.mos=t.muted;t.clipid=y.Om.bL();var a;t.playerheight=((a=y.Om.getPlayerSize())==null?void 0:a.height)||0;var r;t.playerwidth=((r=y.Om.getPlayerSize())==null?void 0:r.width)||0;y=y.videoData;a={};y.K&&(a.fmt=y.K.itag,y.D&&(y.JF?y.D.itag!==y.K.itag:y.D.itag!=y.K.itag)&&(a.afmt=y.D.itag));a.ei=y.eventId;a.list=y.playlistId;a.cpn=y.clientPlaybackNonce;y.videoId&&(a.v=y.videoId);y.o2&&(a.infringe=1); (y.ZA?0:y.nJ)&&(a.splay=1);(r=mA(y))&&(a.live=r);y.UQ&&(a.sautoplay=1);y.Nh&&(a.autoplay=1);y.aM&&(a.sdetail=y.aM);y.partnerId&&(a.partnerid=y.partnerId);y.osid&&(a.osid=y.osid);y.VN&&(a.cc=g.fFH(y.VN));return Object.assign(t,a)}; M9N=function(y){var t=tw7();if(t)return Cqb[t]||Cqb.other;if(g.OY(y.j)){y=navigator.userAgent;if(/[Ww]ireless[)]/.test(y))return 3;if(/[Ww]ired[)]/.test(y))return 30}return 0}; AO=function(y){var t=new $5x,a;t.Y=((a=trV(y).cc)==null?void 0:a.toString())||"-";t.playbackRate=y.Om.getPlaybackRate();a=y.Om.getVisibilityState();a!==0&&(t.visibilityState=a);y.j.T7&&(t.K=1);t.D=y.videoData.iU;t.compositeLiveStatusToken=y.videoData.compositeLiveStatusToken;t.heartbeatLoggingToken=y.videoData.heartbeatLoggingToken;a=y.Om.getAudioTrack();a.qK&&a.qK.id&&a.qK.id!=="und"&&(t.audioId=a.qK.id);t.connectionType=M9N(y);t.volume=y.Om.getVolume();t.muted=y.Om.isMuted();t.clipId=y.Om.bL()|| "-";t.V=y.videoData.WH||"-";return t}; g.w_=function(y,t){g.H.call(this);var a=this;this.provider=y;this.Y=new Map;this.kJ=new g.PY;this.Wb={QJm:function(){return a.qoe}, pA1:function(){return a.V}, HzF:function(){return a.K}}; this.provider.videoData.Fm()&&!this.provider.videoData.Bz&&(this.V=new $9(this.provider),this.V.K=0,g.c(this,this.V),this.qoe=new g.Qs(this.provider,t),g.c(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.hV=this.provider.videoData.clientPlaybackNonce)&&this.Y.set(this.hV,this.V));if(y.j.playerCanaryState==="canary"||y.j.playerCanaryState==="holdback")this.K=new FO(this.provider),g.c(this,this.K)}; zT2=function(y){y.K&&VSb(y.K);y.qoe&&Wcx(y.qoe)}; Ov2=function(y){y.K&&y.K.send();if(y.qoe){var t=y.qoe;if(t.D){t.kJ==="PL"&&(t.kJ="N");var a=g.eK(t.provider);g.SK(t,a,"vps",[t.kJ]);t.W||(t.Y>=0&&t.V.set("user_intent",[t.Y.toString()]),t.W=!0);t.provider.j.Bb()&&t.H4("finalized",{});t.d0=!0;t.reportStats(a)}}if(y.provider.videoData.enableServerStitchedDai)for(t=g.p(y.Y.values()),a=t.next();!a.done;a=t.next())ArN(a.value);else y.V&&ArN(y.V);y.dispose()}; LQu=function(y,t){y.V&&s7x(y.V,t)}; MrH=function(y){if(!y.V)return null;var t=Oo(y.V,"atr");return function(a){y.V&&s7x(y.V,a,t)}}; w8V=function(y,t,a,r){a.adFormat=a.Az;var E=t.Om;t=new $9(new Mk(a,t.j,{getDuration:function(){return a.lengthSeconds}, getCurrentTime:function(){return E.getCurrentTime()}, cz:function(){return E.cz()}, Wc:function(){return E.Wc()}, ql:function(){return E.ql()}, getPlayerSize:function(){return E.getPlayerSize()}, getAudioTrack:function(){return a.getAudioTrack()}, getPlaybackRate:function(){return E.getPlaybackRate()}, Cn:function(){return E.Cn()}, getVisibilityState:function(){return E.getVisibilityState()}, Fz:function(){return E.Fz()}, yu:function(){return E.yu()}, getVolume:function(){return E.getVolume()}, isMuted:function(){return E.isMuted()}, Sd:function(){return E.Sd()}, bL:function(){return E.bL()}, getProximaLatencyPreference:function(){return E.getProximaLatencyPreference()}, ZV:function(){E.ZV()}, H4:function(h,F){E.H4(h,F)}, Bc:function(){return E.Bc()}, fJ:function(){return E.fJ()}})); t.K=r;g.c(y,t);return t}; RTb=function(){this.e9=0;this.D=this.Y=this.Fg=this.TM=this.K=NaN;this.V={};this.bandwidthEstimate=NaN}; Pqb=function(){this.V=g.cK;this.array=[]}; d5n=function(y,t,a){var r=[];for(t=NDd(y,t);ta)break}return r}; R0=function(y,t){var a=[];y=g.p(y.array);for(var r=y.next();!r.done&&!(r=r.value,r.contains(t)&&a.push(r),r.start>t);r=y.next());return a}; X8u=function(y){return y.array.slice(NDd(y,0x7ffffffffffff),y.array.length)}; NDd=function(y,t){y=zJ(y.array,function(a){return t-a.start||1}); return y<0?-(y+1):y}; k02=function(y,t){var a=NaN;y=g.p(y.array);for(var r=y.next();!r.done;r=y.next())if(r=r.value,r.contains(t)&&(isNaN(a)||r.endt&&(isNaN(a)||r.starty.mediaTime+y.L&&t1)y.D=!0;if((E===void 0?0:E)||isNaN(y.K))y.K=t;if(y.V)t!==y.mediaTime&&(y.V=!1);else if(t>0&&y.mediaTime===t){E=1500;if(y.j.B("html5_buffer_underrun_transition_fix")){E=g.Gw(y.j.experiments,"html5_min_playback_advance_for_steady_state_secs");var h=g.Gw(y.j.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");E=E>0&&h>0&&Math.abs(t-y.K)(r||!y.D?E:400)}y.mediaTime=t;y.Y=a;return!1}; eTb=function(y,t){this.videoData=y;this.V=t}; luz=function(y,t,a){return t.PV(a).then(function(){return Jm(new eTb(t,t.Y))},function(r){r instanceof Error&&g.ls(r); var E=A0('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),h=sD('audio/mp4; codecs="mp4a.40.2"'),F=E||h,x=t.isLivePlayback&&!g.jD(y.L,!0);r="fmt.noneavailable";x?r="html5.unsupportedlive":F||(r="html5.missingapi");F=x||!F?2:1;E={buildRej:"1",a:t.bT(),d:!!t.Y5,drm:t.sM(),f18:t.C4.indexOf("itag=18")>=0,c18:E};t.V&&(t.sM()?(E.f142=!!t.V.V["142"],E.f149=!!t.V.V["149"],E.f279=!!t.V.V["279"]):(E.f133=!!t.V.V["133"],E.f140=!!t.V.V["140"],E.f242=!!t.V.V["242"]),E.cAAC=h,E.cAVC=sD('video/mp4; codecs="avc1.42001E"'), E.cVP9=sD('video/webm; codecs="vp9"'));t.L&&(E.drmsys=t.L.keySystem,h=0,t.L.V&&(h=Object.keys(t.L.V).length),E.drmst=h);return new g.rg(r,E,F)})}; d_=function(y){this.data=window.Float32Array?new Float32Array(y):Array(y);this.K=this.V=y-1}; uY7=function(y){return y.data[y.V]||0}; Vrd=function(y){this.L=y;this.Y=this.K=0;this.D=new d_(50)}; k9=function(y,t,a){g.FM.call(this);this.videoData=y;this.experiments=t;this.L=a;this.K=[];this.zD=0;this.Y=!0;this.D=!1;this.J=0;a=new nFd;y.latencyClass==="ULTRALOW"&&(a.Z=!1);y.Ui?a.Y=3:g.BQ(y)&&(a.Y=2);y.latencyClass==="NORMAL"&&(a.L=!0);a.AF=V3(y);if(y.latencyClass==="LOW"||y.latencyClass==="ULTRALOW")a.L=!0;var r=g.Gw(t,"html5_liveness_drift_proxima_override");if(pX(y)!==0&&r){a.V=r;var E;((E=y.V)==null?0:RRx(E))&&a.V--}V3(y)&&t.Nr("html5_sabr_parse_live_metadata_playback_boundaries")&&(a.Vv= !0);if(g.io("trident/")||g.io("edge/"))E=g.Gw(t,"html5_platform_minimum_readahead_seconds")||3,a.D=Math.max(a.D,E);g.Gw(t,"html5_minimum_readahead_seconds")&&(a.D=g.Gw(t,"html5_minimum_readahead_seconds"));g.Gw(t,"html5_maximum_readahead_seconds")&&(a.hF=g.Gw(t,"html5_maximum_readahead_seconds"));if(t=g.Gw(t,"html5_liveness_drift_chunk_override"))a.V=t;vQ(y)&&(a.V=(a.V+1)/5,y.latencyClass==="LOW"&&(a.V*=2));!V3(y)||y.latencyClass!=="ULTRALOW"&&y.latencyClass!=="LOW"||(a.W=3,a.J=25);this.policy=a; this.W=this.policy.Y!==1;this.V=XO(this,m52(this,isNaN(y.liveChunkReadahead)?3:y.liveChunkReadahead,y))}; Jrn=function(y,t){if(t)return t=y.videoData,t=m52(y,isNaN(t.liveChunkReadahead)?3:t.liveChunkReadahead,t),XO(y,t);if(y.K.length){if(Math.min.apply(null,y.K)>1)return XO(y,y.V-1);if(y.policy.Z)return XO(y,y.V+1)}return y.V}; oFF=function(y,t){if(!y.K.length)return!1;var a=y.V;y.V=Jrn(y,t===void 0?!1:t);if(t=a!==y.V)y.K=[],y.zD=0;return t}; WN=function(y,t){return t>=y.Lx()-f1(y)}; Hvz=function(y,t,a){t=WN(y,t);a||t?t&&(y.Y=!0):y.Y=!1;y.W=y.policy.Y===2||y.policy.Y===3&&y.Y}; bv2=function(y,t){t=WN(y,t);y.D!==t&&y.publish("livestatusshift",t);y.D=t}; f1=function(y){var t=y.policy.V;y.D||(t=Math.max(t-1,0));return t*jN(y)}; m52=function(y,t,a){a.Ui&&t--;vQ(a)&&(t=1);if(pX(a)!==0&&(y=g.Gw(y.experiments,"html5_live_chunk_readahead_proxima_override"))){t=y;var r;((r=a.V)==null?0:RRx(r))&&t++}return t}; jN=function(y){return y.videoData.V?I1(y.videoData.V)||5:5}; XO=function(y,t){t=Math.max(Math.max(1,Math.ceil(y.policy.D/jN(y))),t);return Math.min(Math.min(8,Math.floor(y.policy.hF/jN(y))),t)}; nFd=function(){this.D=0;this.hF=Infinity;this.Z=!0;this.K=this.V=2;this.Y=1;this.L=!1;this.J=10;this.Vv=!1;this.W=1;this.AF=!1}; vN=function(y){g.H.call(this);this.Om=y;this.V=0;this.K=null;this.J=this.D=0;this.Y={};this.j=this.Om.G();this.L=new g.Te(this.OY,1E3,this);this.JF=SN(this,"html5_seek_timeout_delay_ms");this.o5=SN(this,"html5_long_rebuffer_threshold_ms");this.R5=SN(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.L1=SN(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.yv=SN(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.FB=SN(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.AF=SN(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.Vv=new QW(2E4);this.Ff=SN(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.r0=SN(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.C1=SN(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.d0=SN(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.Z=SN(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.hF=SN(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.T7=SN(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.n1=SN(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.W=SN(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.Az=new QW(g.Gw(this.j.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.j.B("html5_report_slow_ads_as_error"));this.I7=new QW(g.Gw(this.j.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.j.B("html5_skip_slow_buffering_ad"));this.zl=SN(this,"html5_slow_start_timeout_delay_ms");this.DE=SN(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.c(this,this.L)}; SN=function(y,t,a){a=a===void 0?null:a;var r=r===void 0?0:r;return new QW(g.Gw(y.j.experiments,t)||r,a?y.j.B(a):!1)}; BD2=function(y,t){y.V=t}; p1=function(y,t,a,r,E,h,F,x){t?t.test(a)?(y.Aj(E,t,F),t.J||h()):(!t.K||t.D?a=!1:(a=(0,g.Wx)(),r?t.V||(t.V=a):t.V=0,h=!r&&a-t.K>3E4,a=t.V&&a-t.V>1E3||h?t.D=!0:!1),a&&(x=Object.assign({},y.Tl(t),x),x.wn=F,x.we=E,x.wsuc=r,y.Om.H4("workaroundReport",x),r&&(t.reset(),y.Y[E]=!1))):y.Om.w7("auth",2,"BROWSER_OR_EXTENSION_ERROR",al({source:"watchdog",name:F}))}; QW=function(y,t){this.J=t===void 0?!1:t;this.V=this.K=this.Y=this.startTimestamp=0;this.D=!1;this.L=Math.ceil(y/1E3)}; D5y=function(y){g.H.call(this);var t=this;this.Om=y;this.Z=this.V=this.loader=this.mediaElement=this.playbackData=null;this.Y=0;this.L=this.o5=this.D=null;this.d0=!1;this.FB=0;this.Vv=!1;this.timestampOffset=0;this.hF=!0;this.r0=0;this.R5=this.XB=!1;this.W=0;this.n1=!1;this.yv=this.DE=0;this.j=this.Om.G();this.videoData=this.Om.getVideoData();this.policy=new crb;this.AF=new vN(this.Om);this.I7=this.C1=this.Ff=this.J=this.K=NaN;this.L1=new g.Te(function(){qPH(t,!1)},2E3); this.MK=new g.Te(function(){eN(t)}); this.JF=new g.Te(function(){YP7(t,{})}); this.zl=NaN;this.Az=new g.Te(function(){var a=t.j.pI;a.V+=1E4/36E5;a.V-a.Y>1/6&&(VL7(a),a.Y=a.V);t.Az.start()},1E4); g.c(this,this.AF);g.c(this,this.L1);g.c(this,this.JF);g.c(this,this.MK);g.c(this,this.Az)}; KQu=function(y,t){y.playbackData=t;y.videoData.isLivePlayback&&(y.Z=new Vrd(function(){a:{if(y.playbackData&&y.playbackData.V.V){if(QQ(y.videoData)&&y.loader){var r=y.loader.UZ.wP()||0;break a}if(y.videoData.V){r=y.videoData.V.d0;break a}}r=0}return r}),y.V=new k9(y.videoData,y.j.experiments,function(){return y.Gr(!0)})); if(lS(y.Om)){var a;(a=y.videoData.G0)!=null&&a.sz||(t=gFz(y),t.C9?(V3(y.videoData)&&y.mC(t.C9,t.startSeconds),y.Y=t.startSeconds):t.startSeconds>0&&y.seekTo(t.startSeconds,{yD:"seektimeline_startPlayback",seekSource:15}));y.hF=!1}else ivz(y)||(y.Y=y.Y||y.videoData.startSeconds||0,y.videoData.isLivePlayback||(t=y.Om.videoData.Gr(),y.Y>t&&(y.B("html5_sabr_log_invalid_sabr_current_time")&&y.Om.H4("invalidSabrCmtStart",{rt:y.Y,mst:t}),y.B("html5_sabr_vod_invalid_start_time_fallback")&&(y.Y=0))))}; TDz=function(y,t){(y.loader=t)?IuV(y,!0):uS(y)}; Zvb=function(y,t){var a=y.getCurrentTime(),r=y.isAtLiveHead(a);if(y.Z&&r){var E=y.Z;if(E.V&&!(a>=E.K&&a50&&E.K.shift())),E=y.V,Hvz(E,a,t===void 0?!0:t),bv2(E,a),t&&qPH(y,!0));r!==y.XB&&(t=y.getCurrentTime()-y.I7<=500,a=y.FB>=1E3,t||a||(t=y.Om.Jz,t.qoe&&(t=t.qoe,a=g.eK(t.provider), g.SK(t,a,"lh",[r?"1":"0"])),y.XB=r,y.FB++,y.I7=y.getCurrentTime()))}; qPH=function(y,t){if(y.V){var a=y.V;var r=y.getCurrentTime(),E=a.Lx();var h=a.policy.K;a.D||(h=Math.max(h-1,0));h*=jN(a);r>=E-h||!a.EN()?a=ra+1&&t0&&y.mediaElement.AY()>0&&(y.K=VW(y,y.K,!1)),t=y.B("html5_pseudogapless_shorts_seek_to_next_start")&&(t==null?void 0:t.seekSource)===60,!y.mediaElement||!F$7(y,t))y.MK.start(750);else if(!isNaN(y.K)&&isFinite(y.K)&&(t=y.C1-(y.K-y.timestampOffset),!(t===0||Math.abs(t)<.005)))if(t=y.mediaElement.getCurrentTime()-y.K,Math.abs(t)<=y.r0||Math.abs(t)<.005)AQ1(y);else{if(y.videoData.oJ)y.videoData.oJ= !1;else if(!WQ(y.videoData)&&y.K>=y.Gr()-.1){y.K=y.Gr();y.D.resolve(y.Gr());y.j.Bb()&&y.Om.H4("setEndedInSeek",{tgt:""+y.K,maxst:""+y.Gr()});y.Om.oE();return}try{var a=y.K-y.timestampOffset;y.mediaElement.seekTo(a);y.AF.V=a;y.C1=a;y.Y=y.K;y.Vv=!1}catch(r){}}}; F$7=function(y,t){t=t===void 0?!1:t;if(!y.mediaElement||y.mediaElement.xj()===0||y.mediaElement.hasError())return!1;var a=y.mediaElement.getCurrentTime()>0;return y.videoData.Y&&y.videoData.Y.V||y.videoData.isLivePlayback||!y.videoData.sM()?y.K>=0&&!t&&(t=y.mediaElement.pH(),t.length||!a)?TM(t,y.K-y.timestampOffset):a:a}; AQ1=function(y){y.D&&(y.D.resolve(y.mediaElement.getCurrentTime()),y.AF.K=null)}; EJ7=function(y,t){y.L&&(y.L.resolve(t),y.Om.Ey(),y.j.Bb()||hqb(y))&&(t=y.Tl(),t["native"]=""+ +y.Vv,t.otgt=""+(y.K+y.timestampOffset),y.Om.H4("seekEnd",t));uS(y)}; uS=function(y){y.K=NaN;y.J=NaN;y.C1=NaN;y.D=null;y.o5=null;y.L=null;y.d0=!1;y.Vv=!1;y.r0=0;y.L1.stop();y.JF.stop()}; sRy=function(y,t){var a=y.mediaElement,r=t.type;switch(r){case "seeking":var E=a.getCurrentTime()+y.timestampOffset;if(!y.D||y.Vv&&E!==y.K){y.D=new M2;y.D.then(function(F){EJ7(y,F)},function(){uS(y)}); if(y.videoData.isAd()){var h;Vbb({adCpn:y.videoData.clientPlaybackNonce,contentCpn:(h=y.videoData.NW)!=null?h:""},t.V)}y.C1=E;BD2(y.AF,a.getCurrentTime());y.seekTo(E,{seekSource:104,yD:"seektimeline_mediaElementEvent"});y.Vv=!0}break;case "seeked":AQ1(y);break;case "loadedmetadata":lS(y.Om)||xZ2(y);eN(y);break;case "progress":eN(y);break;case "pause":y.W=y.getCurrentTime()}y.W&&((r==="play"||r==="playing"||r==="timeupdate"||r==="progress")&&y.getCurrentTime()-y.W>10&&(y.B("html5_sky_skip_pause_jump")? y.Om.H4("skipPauseJump",{evt:r,cmt:y.getCurrentTime(),lpt:y.W}):y.seekTo(y.W,{yD:"pauseJump"})),r!=="pause"&&r!=="play"&&r!=="playing"&&r!=="progress"&&(y.W=0))}; $Z7=function(y){return(cQ(y.videoData)||!!y.videoData.liveUtcStartSeconds)&&(!!y.videoData.liveUtcStartSeconds||ivz(y))&&!!y.videoData.V}; ivz=function(y){return!!y.videoData.startSeconds&&isFinite(y.videoData.startSeconds)&&y.videoData.startSeconds>1E9}; gFz=function(y){var t=0,a=NaN,r="";if(!y.hF)return{startSeconds:t,C9:a,source:r};y.videoData.Cx?t=y.videoData.qp:WQ(y.videoData)&&(t=Infinity);if(g.BQ(y.videoData))return{startSeconds:t,C9:a,source:r};y.videoData.startSeconds?(r="ss",t=y.videoData.startSeconds):y.videoData.JT&&(r="stss",t=y.videoData.JT);y.videoData.liveUtcStartSeconds&&(a=y.videoData.liveUtcStartSeconds);if(isFinite(t)&&(t>y.Gr()||ty.Gr()||a 0?(r.onesie="0",y.handleError(new g.rg("html5.missingapi",r)),!1):!0}; N1N=function(y){var t=i6();Kf(t,y);return g.Tl(t,cp7())}; wcV=function(y,t,a){var r,E,h,F,x,U,C,z,O,M,L,w,d,k,e,v,l,V,B,b,Z,aV,rx,Fb,zN,En;return g.m(function(Xb){if(Xb.V==1)return t.fetchType="onesie",r=YBH(t,y.getPlayerSize(),y.getVisibilityState()),E=new Fq(y,r,a),g.u(Xb,E.fetch(),2);h=Xb.K;F={player_response:h};t.loading=!1;x=y.LM.CB;if(E.OM){U=g.p(E.OM.entries());for(C=U.next();!C.done;C=U.next())z=C.value,O=g.p(z),M=O.next().value,L=O.next().value,w=M,d=L,x.V.set(w,d,180),w===t.videoId&&(k=d.lc(),t.uX=k);x.M_=E}e=g.p(E.As.entries());for(v=e.next();!v.done;v= e.next())l=v.value,V=g.p(l),B=V.next().value,b=V.next().value,Z=B,aV=b,x.K.set(Z,aV,180);g.xU(t,F,!0);if(t.loading||FB(t))return Xb.return(Promise.resolve());x.V.removeAll();x.K.removeAll();t.uX=[];rx={};Fb="onesie.response";zN=0;t.errorCode?(Fb="auth",rx.ec=t.errorCode,rx.ed=t.errorDetail,rx.es=t.hL||"",zN=2):(rx.successButUnplayable="1",rx.disposed=""+ +t.Qv(),rx.afmts=""+ +/adaptiveFormats/.test(h),rx.cpn=t.clientPlaybackNonce);En=new g.rg(Fb,rx,zN);return Xb.return(Promise.reject(En))})}; O27=function(y,t){var a,r,E,h,F,x,U,C,z,O,M;return g.m(function(L){switch(L.V){case 1:a=t.isAd(),r=!a,E=a?1:3,h=0;case 2:if(!(h0)){L.xG(5);break}return g.u(L,Jx(5E3),6);case 6:F=new g.RV("Retrying OnePlatform request",{attempt:h}),g.ls(F);case 5:return g.xs(L,7),g.u(L,dZz(y,t),9);case 9:return L.return();case 7:x=g.Uy(L);U=h0(x);C=U.errorCode;z=y.G();O=z.B("html5_use_network_error_code_enums")?401:"401";r&&C==="manifest.net.badstatus"&&U.details.rc===O&&(r=!1,h===E-1&&(E+= 1));if(h===E-1)return M=Xc7(a,U.details),M.details.backend="op",M.details.originec=C,L.return(Promise.reject(M));if(C==="auth"||C==="manifest.net.retryexhausted")return L.return(Promise.reject(U));y.handleError(U);if(ED(U.severity)){L.xG(4);break}case 3:h++;L.xG(2);break;case 4:return L.return(Promise.reject(Xc7(a,{backend:"op"})))}})}; dZz=function(y,t){function a(rx){rx.readyState===2&&y.gV("ps_c")} var r,E,h,F,x,U,C,z,O,M,L,w,d,k,e,v,l,V,B,b,Z,aV;return g.m(function(rx){switch(rx.V){case 1:t.fetchType="gp";r=y.G();E=g.wY(r,g.y$(t));if(!E.V){h=E.getValue();rx.xG(2);break}return g.u(rx,E.V,3);case 3:h=rx.K;case 2:return F=h,x=N1N(F),U=YBH(t,y.getPlayerSize(),y.getVisibilityState()),C=g.ta(khd),z=g.y$(t),O=(0,g.Wx)(),M=!1,L="empty",w=0,y.gV("psns"),d={H9:a},g.u(rx,g.oW(x,U,C,void 0,d),4);case 4:k=rx.K;y.gV("psnr");if(t.Qv())return rx.return();k?"error"in k&&k.error?(M=!0,L="esf:"+k.error.message, w=k.error.code):k.errorMetadata&&(M=!0,L="its",w=k.errorMetadata.status):M=!0;if(M)return e=0,v=((0,g.Wx)()-O).toFixed(),l={},l=r.B("html5_use_network_error_code_enums")?{backend:"op",rc:w,rt:v,reason:L,has_kpt:t.T7?"1":"0",has_mdx_env:t.mdxEnvironment?"1":"0",has_omit_key_flag:g.yd("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:r.pageId?"1":"0",has_token:z?"1":"0",has_vvt:t.Vv?"1":"0",is_mdx:t.isMdxPlayback?"1":"0",mdx_ctrl:t.VQ||"",token_eq:z===g.y$(t)?"1":"0"}:{backend:"op", rc:""+w,rt:v,reason:L,has_kpt:t.T7?"1":"0",has_mdx_env:t.mdxEnvironment?"1":"0",has_omit_key_flag:g.yd("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:r.pageId?"1":"0",has_token:z?"1":"0",has_vvt:t.Vv?"1":"0",is_mdx:t.isMdxPlayback?"1":"0",mdx_ctrl:t.VQ||"",token_eq:z===g.y$(t)?"1":"0"},V="manifest.net.connect",w===429?(V="auth",e=2):w>200&&(V="manifest.net.badstatus",w===400&&(e=2)),rx.return(Promise.reject(new g.rg(V,l,e)));t.loading=!1;g.xU(t,{raw_player_response:k},!0); B=k;g.g9(t.G())&&B&&B.trackingParams&&My(B.trackingParams);if(t.errorCode)return b={ec:t.errorCode,ed:t.errorDetail,es:t.hL||""},rx.return(Promise.reject(new g.rg("auth",b,2)));if(!t.loading&&!FB(t))return Z=t.isAd()?"auth":"manifest.net.retryexhausted",aV=t.isAd()?2:1,rx.return(Promise.reject(new g.rg(Z,{successButUnplayable:"1",hasMedia:g.oh(t)?"1":"0"},aV)));g.FU(rx)}})}; zqn=function(y,t,a){function r(w){w=h0(w);if(ED(w.severity))return Promise.reject(w);y.handleError(w);return!1} function E(){return!0} var h,F,x,U,C,z,O,M,L;return g.m(function(w){switch(w.V){case 1:var d=y.G();y.getPlayerSize();y.getVisibilityState();y.isFullscreen();if(t.partnerId===38&&d.playerStyle==="books")d=t.videoId.indexOf(":"),d=g.lJ("//play.google.com/books/volumes/"+t.videoId.slice(0,d)+"/content/media",{aid:t.videoId.slice(d+1),sig:t.ub});else if(t.partnerId===30&&d.playerStyle==="docs")d=g.lJ("https://docs.google.com/get_video_info",{docid:t.videoId,authuser:t.Bh,authkey:t.wA,eurl:d.ND});else if(t.partnerId===33&&d.playerStyle=== "google-live")d=g.lJ("//google-liveplayer.appspot.com/get_video_info",{key:t.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+d.AF);h=d;x=(F=t.isAd())?1:3;U=0;case 2:if(!(U0)){w.xG(5);break}return g.u(w,Jx(5E3),6);case 6:z={playerretry:U,playerretrysrc:a},F||(z.recover="embedded"),C=UO(h,z);case 5:return g.u(w,f_7(t,C).then(E,r),7);case 7:if(O=w.K)return w.return();U++;w.xG(2);break;case 4:M=F?"auth":"manifest.net.retryexhausted";L=F?2:1;if(!F&&Math.random()< 1E-4)try{g.ls(new g.RV("b/152131571",btoa(h)))}catch(k){}return w.return(Promise.reject(new g.rg(M,{backend:"gvi"},L)))}})}; f_7=function(y,t){function a(k){return r(k.xhr)} function r(k){if(!y.Qv()){k=k?k.status:-1;var e=0,v=((0,g.Wx)()-z).toFixed();v=E.B("html5_use_network_error_code_enums")?{backend:"gvi",rc:k,rt:v}:{backend:"gvi",rc:""+k,rt:v};var l="manifest.net.connect";k===429?(l="auth",e=2):k>200&&(l="manifest.net.badstatus",k===400&&(e=2));return Promise.reject(new g.rg(l,v,e))}} var E,h,F,x,U,C,z,O,M,L,w,d;return g.m(function(k){if(k.V==1){y.fetchType="gvi";E=y.G();var e={};y.Z8&&(e.ytrext=y.Z8);(x=g.pJ(e)?void 0:e)?(h={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:x},F=UO(t,{action_display_post:1})):(h={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},F=t);U={};E.sendVisitorIdHeader&&y.visitorData&&(U["X-Goog-Visitor-Id"]=y.visitorData);(C=k3(E.experiments,"debug_sherlog_username"))&&(U["X-Youtube-Sherlog-Username"]=C);Object.keys(U).length> 0&&(h.headers=U);z=(0,g.Wx)();return g.u(k,mk(uo,F,h).then(void 0,a),2)}O=k.K;if(!O||!O.responseText)return k.return(r(O));y.loading=!1;M=f7(O.responseText);g.xU(y,M,!0);if(y.errorCode)return L={ec:y.errorCode,ed:y.errorDetail,es:y.hL||""},k.return(Promise.reject(new g.rg("auth",L,2)));if(!y.loading&&!FB(y))return w=y.isAd()?"auth":"manifest.net.retryexhausted",d=y.isAd()?2:1,k.return(Promise.reject(new g.rg(w,{successButUnplayable:"1"},d)));g.FU(k)})}; Xc7=function(y,t){return new g.rg(y?"auth":"manifest.net.retryexhausted",t,y?2:1)}; HN=function(y,t,a){a=a===void 0?!1:a;var r,E,h,F;g.m(function(x){if(x.V==1){r=y.G();if(a&&(!g.UJ(r)||Ih(t)!=="embedded")||t.sx||Ih(t)!=="adunit"&&(g.OY(r)||y3(r)||g.Jf(r)||g.$p(r)||g.ic(r)||NO(r)==="WEB_CREATOR"))return x.return();E=g.wY(r,g.y$(t));return E.V?g.u(x,E.V,3):(h=E.getValue(),x.xG(2))}x.V!=2&&(h=x.K);F=h;return x.return(W$2(y,t,F))})}; W$2=function(y,t,a){var r,E,h,F,x;return g.m(function(U){if(U.V==1){g.xs(U,2);r=N1N(a);var C=t.G(),z=g.qe(),O={context:g.Of(t),videoId:t.videoId,racyCheckOk:t.racyCheckOk,contentCheckOk:t.contentCheckOk,autonavState:"STATE_NONE"};Ih(t)==="adunit"&&(O.isAdPlayback=!0);C.embedConfig&&(O.serializedThirdPartyEmbedConfig=C.embedConfig);C.Xg&&(O.showContentOwnerOnly=!0);t.wJ&&(O.showShortsOnly=!0);z.o7(141)&&(O.autonavState=z.o7(140)?"STATE_OFF":"STATE_ON");if(g.xp(C)){z=z.o7(65);z=z!=null?!z:!1;var M= !!g.JU("yt-player-sticky-caption");O.captionsRequested=z&&M}var L;if(C=(L=C.getWebPlayerContextConfig())==null?void 0:L.encryptedHostFlags)O.playbackContext={encryptedHostFlags:C};E=O;h=g.ta(jRF);y.gV("wn_s");return g.u(U,g.oW(r,E,h),4)}if(U.V!=2)return F=U.K,y.gV("wn_r"),!F||"error"in F&&F.error||(x=F,g.g9(t.G())&&x.trackingParams&&My(x.trackingParams),g.xU(t,{raw_watch_next_response:F},!1)),g.$s(U,0);g.Uy(U);g.FU(U)})}; L$u=function(y,t){var a,r,E,h;g.m(function(F){if(F.V==1)return a=y.G(),r=g.wY(a,g.y$(t)),r.V?g.u(F,r.V,3):(E=r.getValue(),F.xG(2));F.V!=2&&(E=F.K);h=E;return F.return(Sp2(t,h))})}; Sp2=function(y,t){var a,r,E,h;return g.m(function(F){if(F.V==1)return g.xs(F,2),a=N1N(t),r={context:g.Of(y),playerRequest:{videoId:y.videoId},disablePlayerResponse:!0},E=g.ta(QR7),g.u(F,g.oW(a,r,E),4);if(F.V!=2)return h=F.K,!h||"error"in h&&h.error||g.xU(y,{raw_reel_item_watch_response:h}),g.$s(F,0);g.Uy(F);g.FU(F)})}; vJV=function(y,t){y.gV("vir");y.gV("ps_s");nM("vir",void 0,"video_to_ad");t=P17(y,t);t.then(function(){y.gV("virc");nM("virc",void 0,"video_to_ad");y.gV("ps_r");nM("ps_r",void 0,"video_to_ad")},function(){y.gV("virc"); nM("virc",void 0,"video_to_ad")}); return t}; g.cN=function(y,t,a,r,E,h,F,x,U,C,z){C=C===void 0?new g.hI(y):C;z=z===void 0?!0:z;g.FM.call(this);var O=this;this.j=y;this.playerType=t;this.dN=a;this.TA=r;this.getVisibilityState=h;this.visibility=F;this.LM=x;this.xE=U;this.videoData=C;this.bz=z;this.logger=new g.kK("VideoPlayer");this.r7=null;this.c9=new tO;this.gb=null;this.Er=!0;this.tF=this.loader=null;this.Kw=[];this.zM=new o0;this.EY=this.Iy=null;this.Pp=new o0;this.AZ=null;this.eK=this.zg=!1;this.HJ=NaN;this.JC=!1;this.playerState=new g.PY; this.eL=[];this.Z7=new g.Ci;this.mediaElement=null;this.Dv=this.Pm=!1;this.ZM=NaN;this.cV=!1;this.AE=0;this.mO=!1;this.Bn=NaN;this.Kr=0;this.loop=!1;this.playbackRate=1;this.Me=0;this.r3=!1;this.Vj=[];this.yS=this.w$=0;this.KP=this.Vk=!1;this.Fg=this.TM=0;this.HM=!1;this.P_=this.Jq=this.oC=this.mL=null;this.Ii=function(){var M=O.Jz;M.provider.j.P1||M.provider.Om.getVisibilityState()===3||(M.provider.j.P1=!0);M.U8();if(M.K){var L=M.K;L.L&&L.V<0&&L.provider.Om.getVisibilityState()!==3&&VSb(L)}M.qoe&& (M=M.qoe,M.JF&&M.Y<0&&M.provider.j.P1&&Wcx(M),M.D&&ub(M));O.loader&&bS(O);BN(O)}; this.Wb={eF:function(M){O.eF(M)}, Vhr:function(M){O.r7=M}, Pc0:function(){return O.Jz}, xm:function(){return O.tF}, tb4:function(){return O.HB}, Bv1:function(){return O.V4}, axv:function(){}, G:function(){return O.j}, uJ:function(){return O.mediaElement}, yI0:function(M){O.Fq(M)}, rtr:function(){return O.TA}}; this.h_=new hGn(this);this.YH=new g.Te(this.XO7,15E3,this);this.hB=new n1(new Map([["bufferhealth",function(){return G02(O.xk)}], ["bandwidth",function(){return O.rY()}], ["networkactivity",function(){return O.xE.o5}], ["livelatency",function(){return O.isAtLiveHead()&&O.isPlaying()?pcx(O):NaN}], ["rawlivelatency",function(){return pcx(O)}]])); this.xk=new D5y(this);this.NJ=new g.Te(this.Sy,0,this);this.Xbf=[this.Z7,this.NJ,this.YH,this.hB];this.gT=new p8n(this.j);this.Oh=new Eo(this.j,this.TA,this,this.xE);this.OV=new g.PN(this,function(M,L){M!==g.q4("endcr")||g.D(O.playerState,32)||O.oE();E(M,L,O.playerType)}); g.c(this,this.OV);g.c(this,this.xk);eqz(this,C);this.videoData.subscribe("dataupdated",this.SeE,this);this.videoData.subscribe("dataloaded",this.LV,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.H4,this);this.videoData.subscribe("ctmpstr",this.Tu,this);!this.Jz||this.Jz.Qv();this.Jz=new g.w_(new Mk(this.videoData,this.j,this));Zax(this.Ii);this.visibility.subscribe("visibilitystatechange",this.Ii);this.HB=new g.Te(this.X6,g.Gw(this.j.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.V4=new g.Te(this.X6,g.Gw(this.j.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.cw=new g.tl(this.Za0,350,this);g.c(this,this.cw)}; eqz=function(y,t){if(y.playerType===2||y.j.xc)t.yJ=!0;var a=QS7(t.Az,t.lH,y.j.D,y.j.Z);a&&(t.adFormat=a);y.playerType===2&&(t.Nh=!0);if(y.isFullscreen()||y.j.D)a=g.JU("yt-player-autonavstate"),t.autonavState=a||(y.j.D?2:y.videoData.autonavState);t.endSeconds&&t.endSeconds>t.startSeconds&&qk(y,t.endSeconds)}; l_F=function(y){return g.OY(y.j)&&y.videoData.isLivePlayback&&(!y.j.B("html5_allow_multiview_tile_preload")||!y.videoData.pM)}; u$x=function(y){var t=y.videoData;vJV(y,y.xE).then(void 0,function(a){y.videoData!==t||t.Qv()||(a=h0(a),a.errorCode==="auth"&&y.videoData.errorDetail&&y.videoData.errorDetail!=="7"?y.w7(a.errorCode,2,unescape(y.videoData.errorReason),al(a.details),y.videoData.errorDetail,y.videoData.hL||void 0):y.handleError(a))})}; mZN=function(y){if(!g.D(y.playerState,128))if(y.videoData.isLoaded(),y.Kw=g.hB(y.videoData.bv),g.oh(y.videoData)){y.dN.tick("bpd_s");Y9(y).then(function(){y.dN.tick("bpd_c");if(!y.Qv()){y.zg&&(y.HO(Xv(Xv(y.playerState,512),1)),D8(y));var r=y.videoData;r.endSeconds&&r.endSeconds>r.startSeconds&&qk(y,r.endSeconds);y.zM.finished=!0;g_(y,"dataloaded");y.Pp.Yc()&&Vf1(y);u2F(y.Oh,y.EY)}}); y.B("html5_log_media_perf_info")&&y.H4("loudness",{v:y.videoData.Vy.toFixed(3)},!0);var t,a=(t=y.mediaElement)==null?void 0:t.YE();if(a&&"disablePictureInPicture"in a&&y.j.x8)try{a.disablePictureInPicture=y.j.wu&&!y.videoData.backgroundable}catch(r){g.ls(r)}nJ1(y);y.P_=new k2(y.videoData)}else g_(y,"dataloaded")}; Y9=function(y){iS(y);y.EY=null;var t=luz(y.j,y.videoData,y.f_());y.Iy=t;y.Iy.then(function(a){JQz(y,a)},function(a){y.Qv()||(a=h0(a),y.visibility.isBackground()?(K1(y,"vp_none_avail"),y.Iy=null,y.zM.reset()):(y.zM.finished=!0,y.w7(a.errorCode,a.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",al(a.details))))}); return t}; JQz=function(y,t){if(!y.Qv()&&!t.videoData.Qv()){y.EY=t;KQu(y.xk,y.EY);if(y.videoData.isLivePlayback){var a=oJy(y.LM.CB,y.videoData.videoId)||y.loader&&!isNaN(y.loader.DE);a=y.B("html5_onesie_live")&&a;lS(y)||y.videoData.C1>0&&!QQ(y.videoData)||a||y.seekTo(y.Gr(),{yD:"videoplayer_playbackData",seekSource:18})}if(y.videoData.Y.V){if(e6H(y.videoData)){y.w7("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",al({missabrurl:1}));return}y.loader?g.ls(Error("Duplicated Loader")):(a=g.Gw(y.j.experiments,"html5_onesie_defer_content_loader_ms"))&& y.Fo()&&oJy(y.LM.CB,y.videoData.mf)?g.Nt(function(){y.Qv()||y.loader||H2x(y)},a):H2x(y)}else!y.videoData.Y.V&&rO(y.videoData)&&y.l7(new Jr(y.videoData.videoId||"",4)); y.bk();jZ2(t).then(function(){var r={};y.hg(r);y.j.Bb()&&y.B("html5_log_media_perf_info")&&y.H4("av1Info",r);bS(y)})}}; Vf1=function(y){y.Qv();if(!y.Pp.finished&&y.zM.finished&&!g.D(y.playerState,128)&&!y.Kw.length){if(!y.OV.started){var t=y.OV;t.started=!0;t.sync()}if(!y.IN()){if(y.loader){if(g.e0(y.pJ())){t=y.loader;var a=!0;a=a===void 0?!1:a;t=Math.min(Ep(t.audioTrack,a),Ep(t.videoTrack,a))>0}else t=y.loader.timing,t=!!t.K&&!!t.Y;y.eK=t}y.Pp.finished||(y.Pp.finished=!0);t=y.B("html5_onesie_live")&&y.loader&&!isNaN(y.loader.DE);!y.videoData.isLivePlayback||y.videoData.C1>0&&!QQ(y.videoData)||t||lS(y)||(y.seekTo(Infinity, {yD:"videoplayer_readying",seekSource:18}),y.isBackground()&&(y.Dv=!0));t=y.Jz;if(t.qoe){t=t.qoe;var r=t.provider.videoData;a=t.provider.j;for(var E=g.p(a.Eu),h=E.next();!h.done;h=E.next())nH(t,h.value);if(t.provider.B("html5_enable_qoe_cat_list"))for(E=g.p(r.mT),h=E.next();!h.done;h=E.next())nH(t,h.value);else r.Eu&&nH(t,t.provider.videoData.Eu);r.US()&&(E=r.V,QQ(r)&&nH(t,"manifestless"),E&&I1(E)&&nH(t,"live-segment-"+I1(E).toFixed(1)));V3(r)?nH(t,"sabr"):t.Ae(pX(r));if(tP(r)||r.NP())r.NP()&&nH(t, "ssa"),nH(t,"lifa");dU(r)&&nH(t,"cdm");r.gatewayExperimentGroup&&(E=r.gatewayExperimentGroup,E==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?E="spkadtrt":E==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(E="spkadctrl"),nH(t,E));a.AF!=="yt"&&t.V.set("len",[r.lengthSeconds.toFixed(2)]);r.cotn&&!rO(r)&&t.MM(!0);a.Bb()&&(r=Of7())&&t.H4("cblt",{m:r});if(a.B("html5_log_screen_diagonal")){a=t.H4;var F;r=((F=window.H5vccScreen)==null?0:F.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;a.call(t,"cbltdiag", {v:r})}}y.publish("playbackready");uy("pl_c",y.dN.timerName)||(y.dN.tick("pl_c"),nM("pl_c",void 0,"video_to_ad"));uy("pbr",y.dN.timerName)||(y.dN.tick("pbr"),nM("pbr",void 0,"video_to_ad"))}}}; qk=function(y,t){y.gb&&b21(y);y.gb=new g.BK(t*1E3,0x7ffffffffffff);y.gb.namespace="endcr";y.addCueRange(y.gb)}; b21=function(y){y.removeCueRange(y.gb);y.gb=null}; B1u=function(y,t,a,r,E){var h=y.Jz,F=y.videoData;F.K=a;var x=g.I0(y);a=new wR7(F,a,t,x?x.itag:"",r);y.j.experiments.Nr("html5_refactor_sabr_video_format_selection_logging")?(a.videoId=E,y.Jq=a):h.qoe&&fMz(h.qoe,a);E=y.Oh;E.K=0;E.V=0;y.publish("internalvideoformatchange",F,t==="m")}; g.I0=function(y){var t=Ts(y);return ot(t)||!y.EY?null:g.D9(y.EY.V.videoInfos,function(a){return t.D(a)})}; Ts=function(y){if(y.EY){var t=y.Oh;var a=y.EY;y=y.Ji();var r=Pr1(t);if(ot(r)){if(r=t.tH(a).compose(kVb(t,a)).compose(Wob(t,a)).compose(eG7(t,a.videoData)).compose(ln7(t,a.videoData,a)).compose(pR7(t,a)).compose(dfu(t,a)),ot(y)||t.B("html5_apply_pbr_cap_for_drm"))r=r.compose(XRd(t,a))}else t.B("html5_perf_cap_override_sticky")&&(r=r.compose(pR7(t,a))),t.B("html5_ustreamer_cap_override_sticky")&&(r=r.compose(XRd(t,a)));r=r.compose(dfu(t,a));t=a.videoData.W0.compose(r).compose(a.videoData.n8).compose(y)}else t= Eu;return t}; z8u=function(y){var t=y.Oh;y=y.videoData;var a=eG7(t,y);t.B("html5_disable_client_autonav_cap_for_onesie")||a.compose(ln7(t,y));return a}; bS=function(y){if(y.videoData.Y&&y.videoData.Y.V){var t=Ts(y);if(y.loader&&(y=y.loader,!y.Qv()))if(y.policy.V){var a=y.D;if(t.isLocked()&&a.V.K||a.K===void 0||!t.equals(a.K)){a=y.D.K;Q$u(y.D,t);var r,E;if(E=t.isLocked()&&t.reason==="m"){E=y.D;var h=(r=E.D)==null?void 0:r.info.video.qualityOrdinal;E=E.DE?!0:E.D?t.V!==h?!0:!E.V.K||E.Zs.aP&&E.V.V===E.D.info.itag?!1:!0:!1}r=E;E=y.policy.Wl&&t.reason==="l";a=a.V>t.V&&t.reason==="b";r||E||a?(y.Om.Xo({reattachOnConstraint:r?"u":E?"drm":"perf",lo:t.K,up:t.V}), y.policy.aP||(y.D.V.K=!1)):(y.policy.aP&&(y.D.V.K=!1),zK(y))}}else!aeb(y.V,t)&&y.videoTrack&&(E=y.V.V,Hf7(y,r57(y.V,t)),qo(y),a=t.isLocked()&&t.reason==="m"&&y.V.Vv,r=y.policy.Wl&&t.reason==="l"&&sp(y.videoTrack),t=E.V>t.V&&t.reason==="b",E=y.V.JF&&!Fv(),a||r||t||E?y.Om.Xo({reattachOnConstraint:a?"u":r?"drm":E?"codec":"perf"}):zK(y))}}; cQb=function(y){var t;return!!(y.B("html5_native_audio_track_switching")&&g.wR&&((t=y.videoData.K)==null?0:BU(t)))}; qpV=function(y){if(!cQb(y))return!1;var t;y=(t=y.mediaElement)==null?void 0:t.audioTracks();return!!(y&&y.length>1)}; gJz=function(y){var t=Ypn(y);if(t){var a=DZV[t]||t;return y.videoData.getAvailableAudioTracks().find(function(r){return r.qK.getName()===a})}}; i2b=function(y){var t,a=(t=y.mediaElement)==null?void 0:t.audioTracks();if(a){t=[];for(var r=0;r0&&(t.Bz=a.XE));t.Wl=a.aD;t.vt=h5(r,{},a.Y||void 0,ND(a));t.T7=PQ(a)&&(g.Jf(r)||g.$p(r));V3(a)&&(t.L=!0,t.lX=r.B("html5_estimate_live_partial_slice_duration"),g.OY(r)&&!g.IB()&&r.B("html5_force_audio_to_cover_video_keyframe")?t.I7=!1:t.I7=!0,t.HK||a.isLivePlayback||!r.B("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")|| (t.x8=!0,t.eY=g.Gw(r.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),r.B("html5_sabr_report_partial_segment_estimated_duration")&&(t.xb=!0),t.V=!0,t.KK=r.B("html5_trigger_loader_when_idle_network"),t.TI=r.B("html5_sabr_parse_live_metadata_playback_boundaries"),t.oJ=r.B("html5_consume_onesie_next_request_policy_for_sabr"),t.EZ=r.B("html5_sabr_report_next_ad_break_time"),t.wD=r.B("html5_log_high_res_buffer_timeline")&&r.Bb(),t.Vd=r.B("html5_remove_stuck_slices_beyond_max_buffer_limits"), t.iU=r.B("html5_gapless_sabr_btl_last_slice")&&Rh(a),t.qO=r.B("html5_reset_last_appended_slice_on_seek")&&Rh(a),QQ(a)?(t.H_=!0,t.aJ=r.B("html5_disable_variability_tracker_for_live"),t.R5=!0,r.B("html5_simplified_backup_timeout_sabr_live")&&(t.ND=!0,t.ix=t.Z8)):t.nJ=r.B("html5_probe_request_on_sabr_request_progress"),t.n8=r.B("html5_serve_start_seconds_seek_for_post_live_sabr"),t.cj=r.B("html5_flush_index_on_updated_timestamp_offset"),t.AF=V3(a),t.B0=r.B("html5_ignore_partial_segment_from_live_readahead"), r.B("html5_include_partial_segment_for_jumbo_ll")&&vQ(a)&&(t.B0=!1),t.Dq=r.B("html5_use_non_active_broadcast_for_post_live"),t.Ff=r.B("html5_use_centralized_player_time"),t.MK=r.B("html5_log_centralized_player_time"),t.gx=r.B("html5_use_loader_check_duration"),t.mp=r.B("html5_consume_onesie_sabr_seek"),t.o5=r.B("html5_enable_sabr_seek_loader_refactor"),a.enableServerStitchedDai&&(t.K=!0,t.tK=r.B("html5_reset_server_stitch_state_for_non_sabr_seek"),t.A6=r.B("html5_remove_ssdai_append_pause")&&!a.NP(), t.bq=r.B("html5_ssdai_log_ssevt_in_loader_timers")),t.w9=r.Bb(),t.latencyClass=a.latencyClass,t.SU=a.US()&&r.B("html5_prebuffer_instream_media_live")&&r.B("html5_report_prefetch_requests"),t.E3=!a.US()&&r.B("html5_prebuffer_instream_media_vod")&&r.B("html5_report_prefetch_requests"),t.zf=r.B("html5_disable_prebuffer_for_limited_memory_devices"));t.EM=g.v47(a);G9(r.L,Za.BITRATE)&&(t.Hb=NaN);if(x=g.Gw(r.experiments,"html5_request_size_max_kb"))t.r0=x*1024;r.L.K?t.XE="; "+Za.EXPERIMENTAL.name+"=allowed": r.B("html5_enable_cobalt_tunnel_mode")&&g.IB()&&(r=Za.TUNNELMODE,t.XE="; "+r.name+"="+r.valid);a=a.serverPlaybackStartConfig;(a==null?0:a.enable)&&(a==null?0:a.playbackStartPolicy)&&(t.SQ=!0,L2(t,a.playbackStartPolicy,2));a=I_n(y);y.c9.removeAll();a:{r=y.LM.CB;if(x=y.videoData.videoId)if(E=r.V.get(x)){r.V.remove(x);r=E;break a}r=void 0}y.loader=new Bk(y,y.xE,t,y.videoData.V,y.videoData.Y,Ts(y),a,y.videoData.enableServerStitchedDai,r,y.videoData.hF);t=y.videoData.B("html5_disable_preload_for_ssdai_with_preroll")&& y.videoData.isLivePlayback&&y.Fo()?!0:y.zg&&l_F(y);y.loader.initialize(y.getCurrentTime(),Ts(y),t);y.videoData.probeUrl&&(y.loader.R5=y.videoData.probeUrl);if(y.Kw.length||y.zg)y.videoData.cotn||Gs(y,!1);TDz(y.xk,y.loader);y.mL&&(Zfn(y.loader,y.mL),y.H4("sdai",{sdl:1}));g.AP(y.videoData)&&(y=y.loader,y.policy.Dk=y.policy.k0)}; BN=function(y,t){t=t===void 0?!0:t;y.j.aJ&&!y.videoData.backgroundable&&y.mediaElement&&!y.f_()&&(y.isBackground()&&y.mediaElement.l9()?(y.H4("bgmobile",{suspend:1}),y.TH(!0,!0)):!y.isBackground()&&t&&D8(y)&&y.H4("bgmobile",{resume:1}))}; iS=function(y){y.loader&&(y.loader.dispose(),y.loader=null,TDz(y.xk,null));y.xn()?GhH(y):y.d1()}; GhH=function(y){if(y.tF)if(y.LN(),y.tF.J)try{y.j.Bb()&&y.H4("rms",{l:"vprms",sr:y.xn(),rs:zy(y.tF)});y.tF.clear();var t;(t=y.mediaElement)==null||t.Zd(y.tF);y.tF=null}catch(a){t=new g.RV("Error while clearing Media Source in VideoPlayer: "+a.name+", "+a.message),t=h0(t),y.handleError(t),y.d1()}else y.d1()}; Z2n=function(y,t){if(y.tF)return y.tF.Y;a:{t=t===void 0?!1:t;t=t===void 0?!1:t;try{g.IB()&&y.videoData.cD()&&y.mediaElement.JX();var a=y.mediaElement.xm(y.w_(),y.Xp())}catch(E){if($f1(y.h_,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",E);y.w7("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}y.JO(a,!1,!1,t)}var r;return((r=y.xm())==null?void 0:r.Y)||null}; yKV=function(y,t){t=t===void 0?!1:t;if(y.loader){y.videoData.enableServerStitchedDai&&h_7(y.loader);var a=y.getCurrentTime()-y.fJ();y.loader.seek(a,{gG:t}).Eh(function(){})}else H2x(y)}; tK7=function(y,t){if(y.tF){y.tF.Fd(t);var a;(a=y.loader)!=null&&a.policy.Ff&&(a.W=t)}}; o6n=function(y,t){B1u(y,t.reason,t.V.info,t.token,t.videoId)}; g_=function(y,t){y.publish("internalvideodatachange",t===void 0?"dataupdated":t,y.videoData)}; a3n=function(y){for(var t=g.p("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),a=t.next();!a.done;a=t.next())y.Z7.N(y.mediaElement,a.value,y.Fq,y);y.j.EQ&&y.mediaElement.jb()&&(y.Z7.N(y.mediaElement,"webkitplaybacktargetavailabilitychanged",y.Gl1,y),y.Z7.N(y.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",y.ZJr,y))}; EQ7=function(y){g.kz(y.HJ);rKx(y)||(y.HJ=g.ds(function(){return rKx(y)},100))}; rKx=function(y){var t=y.mediaElement;t&&y.Pm&&!y.videoData.Z&&!uy("vfp",y.dN.timerName)&&t.xj()>=2&&!t.isEnded()&&yX(t.FC())&&y.dN.tick("vfp");return(t=y.mediaElement)&&!y.videoData.Z&&t.getDuration()>0&&(t.isPaused()&&t.xj()>=2&&yX(t.FC())&&(uy("pbp",y.dN.timerName)||y.dN.tick("pbp"),!y.videoData.TR||y.JC||t.isSeeking()||(y.JC=!0,y.publish("onPlaybackPauseAtStart"))),t=t.getCurrentTime(),Nk(y.gT,t))?(y.uQ(),!0):!1}; FMn=function(y){y.Jz.onProgress();if(WQ(y.videoData)&&Date.now()>y.Me+6283){if(y.B("html5_unified_live_latency_reporting")){var t=y.Jz;t.qoe&&wq7(t.qoe)}else!y.isAtLiveHead()||y.videoData.V&&gZ(y.videoData.V)||(t=y.Jz,t.qoe&&wq7(t.qoe));t=g.CF(y.j);var a=y.B("html5_always_log_rawlat");(t||a)&&y.H4("rawlat",{l:JO(y.hB,"rawlivelatency").toFixed(3)});y.Me=Date.now()}y.videoData.K&&BU(y.videoData.K)&&(t=y.ZL())&&t.videoHeight!==y.yS&&(y.yS=t.videoHeight,B1u(y,"a",hmd(y,y.videoData.d0)))}; hmd=function(y,t){if(t.V.video.quality==="auto"&&BU(t.getInfo())&&y.videoData.n1)for(var a=g.p(y.videoData.n1),r=a.next();!r.done;r=a.next())if(r=r.value,r.getHeight()===y.yS&&r.V.video.quality!=="auto")return r.getInfo();return t.getInfo()}; pcx=function(y){if(!WQ(y.videoData))return NaN;var t=0;y.loader&&y.videoData.V&&(t=QQ(y.videoData)?y.loader.UZ.wP()||0:y.videoData.V.d0);return(0,g.Wx)()/1E3-y.Pj()-t}; xod=function(y){y.mediaElement&&y.mediaElement.f_()&&(y.Bn=(0,g.Wx)());y.j.lX?g.Nt(function(){AKx(y)},0):AKx(y)}; AKx=function(y){var t;if((t=y.tF)==null||!t.cG()){if(y.mediaElement)try{y.AZ=y.mediaElement.playVideo()}catch(r){K1(y,"err."+r)}if(y.AZ){var a=y.AZ;a.then(void 0,function(r){if(!(g.D(y.playerState,4)||g.D(y.playerState,256)||y.AZ!==a||r&&r.name==="AbortError"&&r.message&&r.message.includes("load"))){var E="promise";r&&r.name&&(E+=";m."+r.name);K1(y,E);y.r3=!0;y.videoData.ZA=!0}})}}}; K1=function(y,t){g.D(y.playerState,128)||(y.HO(f8(y.playerState,1028,9)),y.H4("dompaused",{r:t}),y.publish("onAutoplayBlocked"))}; D8=function(y,t){t=t===void 0?!1:t;if(!y.mediaElement||!y.videoData.Y)return!1;var a=t;a=a===void 0?!1:a;var r=null;var E;if((E=y.videoData.Y)==null?0:E.V){r=Z2n(y,a);var h;(h=y.loader)==null||h.resume()}else iS(y),y.videoData.d0&&(r=y.videoData.d0.p8());E=y.mediaElement.l9();a=!1;E&&E.equals(r)||(suV(y,r),a=!0);g.D(y.playerState,2)||(r=y.xk,t=t===void 0?!1:t,r.L||!(r.Y>0)||r.mediaElement&&r.mediaElement.getCurrentTime()>0||(t={yD:"seektimeline_resumeTime",gG:t},r.videoData.Z||(t.seekSource=15),r.seekTo(r.Y, t)));a:{t=a;if(V3(y.videoData)){if(!y.videoData.sM())break a}else if(!g.VQ(y.videoData))break a;if(y.mediaElement)if((r=y.videoData.L)&&y.mediaElement.jb()){E=y.mediaElement.YE();if(y.r7)if(E!==y.r7.element)Z8(y);else if(t&&r.flavor==="fairplay"&&!Tc())Z8(y);else break a;if(y.B("html5_report_error_for_unsupported_tvos_widevine")&&Tc()&&r.flavor==="widevine")y.w7("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{y.r7=new Y2d(E,y.videoData,y.j,y.mediaElement);y.r7.subscribe("licenseerror", y.Cj,y);y.r7.subscribe("qualitychange",y.pOr,y);y.r7.subscribe("heartbeatparams",y.yO,y);y.r7.subscribe("keystatuseschange",y.eF,y);y.r7.subscribe("ctmp",y.H4,y);t=g.p(y.c9.keys);for(r=t.next();!r.done;r=t.next())r=y.c9.get(r.value),y.r7.bA(r);y.B("html5_eme_loader_sync")||y.c9.removeAll()}}else y.w7("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return a}; suV=function(y,t){y.dN.tick("vta");nM("vta",void 0,"video_to_ad");y.getCurrentTime()>0&&yQz(y.xk,y.getCurrentTime());y.mediaElement.activate(t);y.tF&&rR(4);!y.videoData.Z&&y.playerState.isOrWillBePlaying()&&y.YH.start();if(cQb(y)){var a;if(t=(a=y.mediaElement)==null?void 0:a.audioTracks())t.onaddtrack=function(){i2b(y)},t.onremovetrack=function(){i2b(y)},t.onchange=function(){y.publish("internalaudioformatchange",y.videoData,!0)}}}; Z8=function(y){y.r7&&(y.r7.dispose(),y.r7=null)}; $o7=function(y){var t=t===void 0?!1:t;y.mediaElement&&(y.tF?(Z8(y),y.d1(),Z2n(y,t)):(y.videoData.d0&&y.videoData.d0.Qi(),y.mediaElement.stopVideo()),y.playVideo())}; UoH=function(y,t){y.j.B("html5_log_rebuffer_reason")&&(t={r:t,lact:du()},y.mediaElement&&(t.bh=y.mediaElement.PK()),y.H4("bufreason",t))}; Cb7=function(y,t){if(y.j.Bb()&&y.mediaElement){var a=y.mediaElement.Tl();a.omt=(y.mediaElement.getCurrentTime()+y.fJ()).toFixed(3);a.ps=y.playerState.state.toString(16);a.rt=(g.eK(y.Jz.provider)*1E3).toFixed();a.e=t;y.Vj[y.w$++%5]=a}}; zmx=function(y){if(y.j.Bb()){y.Vj.sort(function(r,E){return+r.rt-+E.rt}); for(var t=g.p(y.Vj),a=t.next();!a.done;a=t.next())a=a.value,y.H4("vpe",Object.assign({t:a.rt},a));y.Vj=[];y.w$=0}}; OHn=function(y){if(g.io("cobalt")&&g.io("nintendo switch")){var t=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;y.H4("nxdock",{d:t})}}; Gs=function(y,t){var a;(a=y.loader)==null||uz7(a,t)}; nJ1=function(y){sf(y.videoData,"html5_set_debugging_opt_in")&&(y=g.qe(),y.o7(183)||(D4(183,!0),y.save()))}; LMn=function(y){return y.B("html5_remove_ios_7_hack_force_play")}; g6y=function(y,t){y.LM.nA()||(y.H4("sgap",{f:t}),y.LM.clearQueue(!1,t==="pe"))}; lS=function(y){return y.B("html5_disable_video_player_initiated_seeks")&&V3(y.videoData)}; MK2=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);M$(this.api,"isLifaAdPlaying",function(){return t.api.isLifaAdPlaying()}); this.events.N(y,"serverstitchedvideochange",function(){var a;(a=t.api.getVideoData())!=null&&a.NP()&&(t.api.isLifaAdPlaying()?(t.playbackRate=t.api.getPlaybackRate(),t.api.setPlaybackRate(1)):t.api.setPlaybackRate(t.playbackRate))}); this.playbackRate=1}; yp=function(y){zq.call(this,"En bucle",g.NU.MQ);this.C=y;var t=y.B("delhi_modern_web_player_icons")?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:s_u();this.setIcon(t);this.subscribe("select",this.K,this);y.createClientVe(this.element,this,28661);this.N(y,"settingsMenuVisibilityChanged",this.V);this.listen("click",this.logClick);this.N(y,"onLoopChange",this.onLoopChange);O2(this,y.getLoopVideo());y.QR().NK(this)}; wk7=function(y){FK.call(this,y);var t=this;y.addEventListener("settingsMenuInitialized",function(){t.menuItem||(t.menuItem=new yp(t.api),g.c(t,t.menuItem))}); y.addEventListener("videodatachange",function(a,r){a=t.api.getPresentingPlayerType()===2;var E;(E=t.menuItem)==null||E.lY(!r.isLivePlayback&&!a)})}; Rm2=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);M$(this.api,"seekToChapterWithAnimation",function(a){t.seekToChapterWithAnimation(a)}); M$(this.api,"seekToTimeWithAnimation",function(a,r){t.seekToTimeWithAnimation(a,r)}); M$(this.api,"renderChapterSeekingAnimation",function(a,r,E){t.api.renderChapterSeekingAnimation(a,r,E)}); M$(this.api,"setMacroMarkers",function(a){t.setMacroMarkers(y,a)}); M$(this.api,"changeMarkerVisibility",function(a,r,E){t.changeMarkerVisibility(a,r,E)}); M$(this.api,"isSameMarkerTypeVisible",function(a){return t.isSameMarkerTypeVisible(a)})}; Pby=function(y,t,a){var r=y.api.getCurrentTime()*1E30;)switch(t=sj.shift(),t.type){case "ERROR":xG.LL(t.payload);break;case "EVENT":xG.logEvent(t.eventType,t.payload)}}); M$(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));M$(this.api,"updateDownloadState",this.updateDownloadState.bind(this));M$(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));M$(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));M$(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));M$(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));M$(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; l3u=function(y){FK.call(this,y);var t=this;this.loaded=!1;this.overlay=null;this.events=new g.Ci(y);g.c(this,this.events);this.V=new g.Ci(y);g.c(this,this.V);this.events.N(y,"modulesCreated",function(){t.LD()&&t.load()}); this.events.N(y,"modulesDestroyed",function(a){var r=!0;switch(a){case 2:case 3:r=!1;break;case 4:r=t.api.getPresentingPlayerType()===1}r&&t.unload()})}; hn=function(y){FK.call(this,y);var t=this;M$(y,"getAvailableQualityData",function(){return t.getAvailableQualityData()}); M$(y,"getAvailableQualityDataAndMessaging",function(){return t.getAvailableQualityDataAndMessaging()})}; uq7=function(y,t,a){var r=[],E=t?156595:151874;y=g.p(y);for(var h=y.next();!h.done;h=y.next()){var F=h.value;h=F.video;F={formatId:F.id,qualityLabel:h.qualityLabel,quality:h.quality,isPlayable:t};if(h=a.get(h.qualityLabel))F.paygatedQualityDetails={paygatedIndicatorText:h.paygatedIndicatorText,endpoint:h.endpoint,veType:E,trackingParams:h.trackingParams};r.push(F)}return r}; VKx=function(y){for(var t=0,a=0;a0&&E>0&&(a.width+=E,g.ry(t.element,"width",a.width+"px")));y.size=a}}; g.wm=function(y,t){var a=y.V[y.V.length-1];a!==t&&(y.V.push(t),ZHN(y,a,t))}; g.Ri=function(y){if(!(y.V.length<=1)){var t=y.V.pop(),a=y.V[0];y.V=[a];ZHN(y,t,a,!0)}}; ZHN=function(y,t,a,r){yOF(y);t&&(t.unsubscribe("size-change",y.Ig,y),t.unsubscribe("back",y.C$,y));a.subscribe("size-change",y.Ig,y);a.subscribe("back",y.C$,y);if(y.sS){g.Al(a.element,r?"ytp-panel-animate-back":"ytp-panel-animate-forward");a.g0(y.content);a.focus();y.element.scrollLeft=0;y.element.scrollTop=0;var E=y.size;GK7(y);g.Or(y.element,E);y.Y=new g.Te(function(){tN2(y,t,a,r)},20,y); y.Y.start()}else a.g0(y.content),t&&t.detach()}; tN2=function(y,t,a,r){y.Y.dispose();y.Y=null;g.Al(y.element,"ytp-popup-animating");r?(g.Al(t.element,"ytp-panel-animate-forward"),g.sz(a.element,"ytp-panel-animate-back")):(g.Al(t.element,"ytp-panel-animate-back"),g.sz(a.element,"ytp-panel-animate-forward"));g.Or(y.element,y.size);y.D=new g.Te(function(){g.sz(y.element,"ytp-popup-animating");t.detach();g.$M(t.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);y.D.dispose();y.D=null},250,y); y.D.start()}; yOF=function(y){y.Y&&g.Zw(y.Y);y.D&&g.Zw(y.D)}; P9=function(y){g.M7.call(this,y,"ytp-shopping-product-menu");this.Wj=new g.Ok(this.C);g.c(this,this.Wj);this.hide();g.wm(this,this.Wj);g.q$(this.C,this.element,4)}; rOb=function(y,t,a){var r,E=t==null?void 0:(r=t.text)==null?void 0:r.simpleText;E&&(a=a8u(y,a,E,t==null?void 0:t.icon,t==null?void 0:t.secondaryIcon),t.navigationEndpoint&&a.listen("click",function(){y.C.W4("innertubeCommand",t.navigationEndpoint);y.hide()},y))}; E9N=function(y,t,a){var r,E=t==null?void 0:(r=t.text)==null?void 0:r.simpleText;E&&a8u(y,a,E,t==null?void 0:t.icon).listen("click",function(){var h;(t==null?void 0:(h=t.icon)==null?void 0:h.iconType)==="HIDE"?y.C.publish("featuredproductdismissed"):t.serviceEndpoint&&y.C.W4("innertubeCommand",t.serviceEndpoint);y.hide()},y)}; a8u=function(y,t,a,r,E){t=new g.aX(g.rL({},[],!1,!!E),t,a);E&&t.updateValue("secondaryIcon",hYF(E));t.setIcon(hYF(r));g.c(y,t);y.Wj.NK(t,!0);return t}; hYF=function(y){if(!y)return null;switch(y.iconType){case "ACCOUNT_CIRCLE":return{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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 df();case "HIDE":return{U:"svg",T:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"g",S:[{U:"path",T:{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 Wz()}}; N7=function(y){CB.call(this,y,!1,!0);this.isCounterfactual=this.Y=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.W=!0;this.overflowButton=new g.q({U:"button",mX:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.c(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.q({U:"img",X:"ytp-suggested-action-badge-img",T:{src:"{{url}}"}}); this.thumbnailImage.hide();g.c(this,this.thumbnailImage);this.thumbnailIcon=new g.q({U:"div",X:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.c(this,this.thumbnailIcon);this.banner=new g.q({U:"a",X:"ytp-suggested-action-container",S:[this.thumbnailImage,this.thumbnailIcon,{U:"div",X:"ytp-suggested-action-details",S:[{U:"text",X:"ytp-suggested-action-title",er:"{{title}}"},{U:"text",X:"ytp-suggested-action-subtitle",er:"{{subtitle}}"},{U:"text",X:"ytp-suggested-action-metadata-text", er:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.c(this,this.banner);this.banner.g0(this.D.element);this.N(this.C,"videodatachange",this.onVideoDataChange);this.N(this.C,g.q4("suggested_action_view_model"),this.M_m);this.N(this.C,g.Ya("suggested_action_view_model"),this.CJF);this.N(this.overflowButton.element,"click",this.h2);this.N(y,"featuredproductdismissed",this.lA);this.C.createServerVe(this.banner.element,this.banner,!0)}; FCH=function(y){y.isInitialized&&(y.enabled=y.isVisible,y.Vv=y.isVisible,Uk(y),y.nx(),y.thumbnailImage.lY(y.isVisible),y.shouldHideDismissButton||y.dismissButton.lY(y.isVisible),y.shouldShowOverflowButton&&y.overflowButton.lY(y.isVisible))}; dm=function(){N7.apply(this,arguments)}; AO7=function(y){FK.call(this,y);this.V=new dm(this.api);g.c(this,this.V);g.q$(this.api,this.V.element,4)}; k5=function(y){FK.call(this,y);var t=this;this.V=!0;var a=new g.Ci(y);g.c(this,a);a.N(y,"internalaudioformatchange",function(r,E){xk7(t,r,E)}); a.N(y,"annotationvisibility",function(r){t.api.B("web_fix_annotations")&&s0x(t,(294).toString(),{boolValue:r})}); a.N(y,"videoplayerreset",function(){$kN(t)}); a.N(y,"videodatachange",function(r,E){t.onVideoDataChange(r,E)})}; xk7=function(y,t,a){if(a){var r="";Ukx(y,t)&&(r=t,y.api.G().R5=t);if(r&&CS2(y,r)){$yd(y.api,r);var E;Zm(R$(y.api.G(),(E=y.api.getVideoData())==null?void 0:g.y$(E)),function(h){var F=r;zY1(h)!==F&&s0x(y,O11(h),{stringValue:F})})}}}; $kN=function(y){var t;if((t=py())==null?0:t.size){var a;Zm(R$(y.api.G(),(a=y.api.getVideoData())==null?void 0:g.y$(a)),function(r){(r=zY1(r))&&CS2(y,r)&&(y.api.G().R5=r)})}}; MNH=function(y,t){y6(Zm(Zm(y.RS(),function(a){return Idu(a,[O11(t)])}),function(a){if(a){a=g.p(a); for(var r=a.next();!r.done;r=a.next()){var E=r.value;r=E.key;E=E.value;r&&E&&(LCn([{settingItemId:r,settingOptionValue:E}]),$kN(y))}}}),function(){y.V=!0})}; Ukx=function(y,t){y=y.api.getAvailableAudioTracks();y=g.p(y);for(var a=y.next();!a.done;a=y.next())if(a=a.value,a.getLanguageInfo().getId()===t)return a;return null}; zY1=function(y){y=O11(y);var t=py();y=t?t.get(y):void 0;return y&&y.stringValue?y.stringValue:""}; O11=function(y){var t=(484).toString();y&&(t=(483).toString());return t}; CS2=function(y,t){var a;return t.split(".")[0]!==""&&((a=y.api.getVideoData())==null?void 0:!a9(a))}; s0x=function(y,t,a){LCn([{settingItemId:t,settingOptionValue:a}]);Zm(y.RS(),function(r){G1d(r,t,a)})}; LCn=function(y){var t=py();t||(t=new Map);y=g.p(y);for(var a=y.next();!a.done;a=y.next())a=a.value,t.set(a.settingItemId,a.settingOptionValue);t=JSON.stringify(Object.fromEntries(t));g.m7("yt-player-user-settings",t,2592E3)}; wNu=function(){this.label="Con doblaje autom\u00e1tico"}; g.fB=function(y,t,a,r,E,h,F){g.aX.call(this,g.rL({"aria-haspopup":"true"}),t,y);this.OS=r;this.L=!1;this.XC=null;this.options={};this.aR=new g.Ok(a,void 0,y,E,h,F);g.c(this,this.aR);this.listen("keydown",this.MC);this.listen("click",this.open)}; RYn=function(y){if(y.XC){var t=y.options[y.XC];t.element.getAttribute("aria-checked");t.element.setAttribute("aria-checked","false");y.XC=null}}; PSu=function(y,t){g.LB(y.aR);for(var a={},r=!1,E=0;Ez.start&&a>=5;d+=e}E=d.substr(0,4)+" "+d.substr(4,4)+" "+d.substr(8,4)+" "+(d.substr(12,4)+" "+d.substr(16,4))}else E="";F={video_id_and_cpn:String(t.videoId)+" / "+E,codecs:"",dims_and_frames:"",bandwidth_kbps:F.toFixed(0)+" Kbps",buffer_health_seconds:U.toFixed(2)+" s", date:""+(new Date).toString(),drm_style:C?"":"display:none",drm:C,debug_info:a,extra_debug_info:"",bandwidth_style:M,network_activity_style:M,network_activity_bytes:x.toFixed(0)+" KB",shader_info:O,shader_info_style:O?"":"display:none",playback_categories:""};x=r.clientWidth+"x"+r.clientHeight+(z>1?"*"+z.toFixed(2):"");U="-";h.totalVideoFrames&&(U=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);F.dims_and_frames=x+" / "+U;y=y.getVolume();x=SBu(t);var l;if((l=t.D)==null?0:l.audio.K)l= "VB";else{var V;l=((V=t.D)==null?0:V.audio.V)?"DRC":Math.round(y*x)+"%"}V=Math.round(y)+"% / "+l;l=t.Vy.toFixed(1);isFinite(Number(l))&&(V+=" (content loudness "+l+"dB)");F.volume=V;F.resolution=r.videoWidth+"x"+r.videoHeight;if(r=t.K){if(V=r.video)l=V.fps,l>1&&(F.resolution+="@"+l),(l=h.aj)&&l.video&&(F.resolution+=" / "+l.video.width+"x"+l.video.height,l.video.fps>1&&(F.resolution+="@"+l.video.fps)),F.codecs=eYH(r),!t.D||r.audio&&r.video?r.Kj&&(F.codecs+=" / "+r.Kj+"A"):F.codecs+=" / "+eYH(t.D), V.V||V.primaries?(l=V.V||"unknown",l==="smpte2084"?l+=" (PQ)":l==="arib-std-b67"&&(l+=" (HLG)"),F.color=l+" / "+(V.primaries||"unknown"),F.color_style=""):F.color_style="display:none";if(r.debugInfo)for(F.fmt_debug_info="",r=g.p(r.debugInfo),V=r.next();!V.done;V=r.next())V=V.value,F.fmt_debug_info+=V.label+":"+V.text+" ";F.fmt_debug_info_style=F.fmt_debug_info&&F.fmt_debug_info.length>0?"":"display:none"}r=t.isLivePlayback;V=t.d7;F.live_mode_style=r||V?"":"display:none";F.live_latency_style=r?"": "display:none";if(V)F.live_mode="Post-Live"+(QQ(t)?" Manifestless":"");else if(r){V=h.R$;F.live_latency_secs=V.toFixed(2)+"s";r=QQ(t)?"Manifestless, ":"";t.Cx&&(r+="Windowed, ");l="Uncertain";if(V>=0&&V<120)if(t.latencyClass&&t.latencyClass!=="UNKNOWN")switch(t.latencyClass){case "NORMAL":l="Optimized for Normal Latency";break;case "LOW":l="Optimized for Low Latency";break;case "ULTRALOW":l="Optimized for Ultra Low Latency";break;default:l="Unknown Latency Setting"}else l=t.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";r+=l;(V=h.po)&&(r+=", seq "+V.sequence);F.live_mode=r}!h.isGapless||Rh(t)&&h.nA||(F.playback_categories+="Gapless ");F.playback_categories_style=F.playback_categories?"":"display:none";F.bandwidth_samples=h.us;F.network_activity_samples=h.k9;F.live_latency_samples=h.nR;F.buffer_health_samples=h.zD;h=g.AP(t);if(t.cotn||h)F.cotn_and_local_media=(t.cotn?t.cotn:"null")+" / "+h;F.cotn_and_local_media_style=F.cotn_and_local_media?"":"display:none"; sf(t,"web_player_release_debug")?(F.release_name=A[43],F.release_style=""):F.release_style="display:none";F.debug_info&&L.length>0&&F.debug_info.length+L.length<=60?F.debug_info+=" "+L:F.extra_debug_info=L;F.extra_debug_info_style=F.extra_debug_info&&F.extra_debug_info.length>0?"":"display:none";return F}; eYH=function(y){var t=/codecs="([^"]*)"/.exec(y.mimeType);return t&&t[1]?t[1]+" ("+y.itag+")":y.itag}; mY=function(y,t,a,r,E){g.q.call(this,{U:"div",X:"ytp-horizonchart"});this.J=t;this.sampleCount=a;this.D=r;this.L=E;this.index=0;this.heightPx=-1;this.Y=this.K=null;this.V=Math.round(y/a);this.element.style.width=this.V*this.sampleCount+"px";this.element.style.height=this.J+"em"}; Jn=function(y,t){if(y.heightPx===-1){var a=null;try{a=g.SU("CANVAS"),y.K=a.getContext("2d")}catch(x){}if(y.K){var r=y.V*y.sampleCount;y.Y=a;y.Y.width=r;y.Y.style.width=r+"px";y.element.appendChild(y.Y)}else for(y.sampleCount=Math.floor(y.sampleCount/4),y.V*=4,a=0;a1?2:1,y.Y.height=y.heightPx*a,y.Y.style.height= y.heightPx+"px",y.K.scale(1,a)));t=g.p(t);for(r=t.next();!r.done;r=t.next()){a=y;var E=y.index,h=r.value;for(r=0;r+20&&g.pp(t.K.element);r.classList.add("ytp-timely-actions-overlay");t.K.element.appendChild(r)}); g.c(this,this.K);this.B("web_player_overlay_positioned_layout")?this.events.N(y,"basechromeinitialized",function(){t.api.gm(t.K.element,4,!0);t.K.element.setAttribute("data-overlay-order","10")}):g.q$(this.api,this.K.element,4)}; i11=function(y){y.timelyActions&&(y.D=y.timelyActions.reduce(function(t,a){if(a.cueRangeId===void 0)return t;t[a.cueRangeId]=0;return t},{}))}; B9=function(y,t){if(y.timelyActions){y=g.p(y.timelyActions);for(var a=y.next();!a.done;a=y.next())if(a=a.value,a.cueRangeId===t)return a}}; KCz=function(y,t){if((y=B9(y,t))&&y.onCueRangeExit)return m9(y.onCueRangeExit)}; qou=function(y,t){return y.Y===void 0?!1:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(t.seekLengthMilliseconds)===5E3?y.Y===72:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(t.seekLengthMilliseconds)===1E4?y.Y===74:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(t.seekLengthMilliseconds)===5E3?y.Y===71:t.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(t.seekLengthMilliseconds)===1E4?y.Y===73:!1}; I82=function(y,t){var a=Number(t==null?void 0:t.maxVisibleDurationMilliseconds);a&&(c9(y),y.Vv=setTimeout(function(){if(y.V!==void 0&&(t==null?void 0:t.cueRangeId)===y.V){y.hF=!1;var r=KCz(y,y.V);r&&y.api.W4("innertubeCommand",r)}},a))}; c9=function(y){y.Vv&&clearTimeout(y.Vv);y.Vv=void 0;y.hF=!1}; YoV=function(y){if(y=y.getWatchNextResponse()){var t,a;y=(t=y.playerOverlays)==null?void 0:(a=t.playerOverlayRenderer)==null?void 0:a.timelyActionsOverlayViewModel;t=g.P(y,T_V);if(t!=null&&t.timelyActions)return t==null?void 0:t.timelyActions.map(function(r){return g.P(r,Gsy)}).filter(function(r){return!!r})}}; Z12=function(y){FK.call(this,y);var t=this;wO(this.api,"getPlaybackRate",function(){return t.api.getPlaybackRate()}); wO(this.api,"setPlaybackRate",function(a){typeof a==="number"&&t.api.setPlaybackRate(a)})}; q7=function(y,t,a,r){zq.call(this,"Mejora de voces",g.NU.s9);this.C=y;this.Y=t;this.K=a;this.getVoiceBoostState=r;this.V=!1;this.OS=this.C.B("html5_enable_new_audio_settings_menu")?y.QR().s2:y.QR();this.N(y,"onFilterAudioFeatures",this.MD);this.setIcon({U:"svg",T:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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.D,this);this.MD()}; Y5=function(y){FK.call(this,y);var t=this;this.events=new g.Ci(y);g.c(this,this.events);var a=this.api.B("html5_enable_voice_boost");a&&this.events.N(y,"settingsMenuInitialized",function(){ynx(t)}); M$(this.api,"getVoiceBoostUserPreference",function(){return a?t.getVoiceBoostUserPreference():0}); M$(this.api,"setVoiceBoostUserPreference",function(E){a&&t.setVoiceBoostUserPreference(E)}); M$(this.api,"getVoiceBoostState",function(){return a?t.getVoiceBoostState():1}); var r;this.V=(r=MGd())!=null?r:0;this.updateEnvironmentData()}; ynx=function(y){y.menuItem||(y.menuItem=new q7(y.api,function(t){y.setVoiceBoostUserPreference(t)},function(){return y.getVoiceBoostUserPreference()},function(){return y.getVoiceBoostState()}),g.c(y,y.menuItem))}; tQ1=function(y){y=y.xJ();if(!y)return!1;y=g.sO(y).exp||"";return y.includes("xpv")||y.includes("xpe")}; ap7=function(y){y=g.p(g.Dp(y,!0));for(var t=y.next();!t.done;t=y.next())if(tQ1(t.value))return!0;return!1}; rnn=function(y,t){y=g.p(g.Dp(y,!0));for(var a=y.next();!a.done;a=y.next())if(a=a.value,tQ1(a)){var r={potc:"1",pot:t};a.url&&(a.url=$z(a.url,r))}}; E5y=function(y){return g.m(function(t){if(t.V==1)return g.xs(t,2),g.u(t,y,4);if(t.V!=2)return g.$s(t,0);g.Uy(t);g.FU(t)})}; gm=function(y){FK.call(this,y);var t=this;this.useLivingRoomPoToken=!1;this.L=new g.US;this.V=!1;this.dN=null;this.W=!1;this.D=null;this.J=!1;var a=y.G().getWebPlayerContextConfig();this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"spsumpreject",function(E,h,F){t.J=h;E&&t.W&&!t.D&&(t.B("html5_generate_content_po_token")&&F?t.My(F):t.B("html5_generate_session_po_token")&&hy1(t));t.D||t.api.H4("stp",{s:+t.W,b:+t.J})}); this.events.N(y,"poTokenVideoBindingChange",function(E){t.My(E)}); if(this.B("html5_web_po_on_demand_init"))var r=this.events.N(y,"videodatachange",function(E,h){h.X4&&!t.W&&(FYV(t),t.events.Dh(r))}); this.useLivingRoomPoToken=!(a==null||!a.useLivingRoomPoToken);y.addEventListener("csiinitialized",function(){t.dN=y.Fz();t.B("html5_web_po_on_demand_init")?t.Y=gOV():FYV(t)}); y.addEventListener("trackListLoaded",this.Hy.bind(this));y.Bg(this)}; FYV=function(y){var t=(y.B("html5_generate_session_po_token")||y.B("html5_generate_content_po_token"))&&!y.useLivingRoomPoToken;try{if(y.B("html5_use_shared_owl_instance"))An2(y);else if(t){y.dN.Ze("pot_isc");var a=g.Gw(y.api.G().experiments,"html5_webpo_kaios_defer_timeout_ms");a?(x77(y),g.Nt(function(){iB(y)},a)):y.B("html5_webpo_idle_priority_job")?(x77(y),g.Z4(g.tk(),function(){iB(y)})):iB(y)}}catch(r){r instanceof Error&&g.ls(r)}}; six=function(y){var t=k3(y.experiments,"html5_web_po_request_key");return t?t:g.OY(y)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; $7H=function(y){var t=new jDu,a={},r=(a["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",a);return new wb(t,y,function(){return r})}; U7d=function(y){return new Rd(y)}; KB=function(y,t){y.B("html5_webpo_bge_ctmp")&&y.api.H4(t,{hwpo:!!y.K,hwpor:y.V})}; An2=function(y){var t,a;g.m(function(r){if(r.V==1)return KB(y,"swpo_i"),x77(y),Ii(y),g.u(r,A2(),2);if(r.V!=3)return t=r.K,KB(y,"swpo_co"),g.u(r,aoy(t),3);a=r.K;y.B("html5_web_po_token_disable_caching")||a.NG(150);y.K=a;KB(y,"swpo_cc");E5y(a.mV()).then(function(){y.V=!0;y.L.resolve();KB(y,"swpo_re")}); g.Nt(function(){iB(y);KB(y,"swpo_si")},0); g.FU(r)})}; zyz=function(y){var t=y.api.G(),a=six(t);a=$7H(a);var r=a.DO.bind(a);a.DO=function(x){var U;return g.m(function(C){if(C.V==1)return g.u(C,r(x),2);U=C.K;y.api.H4("itr",{});return C.return(U)})}; try{var E=U7d({M_:a,fC:{maxAttempts:5},T3:{ZP:"CLEn",disable:t.experiments.Nr("html5_web_po_disable_remote_logging"),E4:ruH(t.experiments),Ed:function(x){var U=CBd.get(x);U||(U=new YX7(x),U=new g.or(U),CBd.set(x,U));return U}, CYF:y.B("wpo_dis_lfdms")?0:1E3},kr4:g.ls});var h=new Jw({lK:E,M_:a,onError:g.ls});E5y(h.mV()).then(function(){y.V=!0;y.L.resolve()}); y.B("html5_web_po_token_disable_caching")||h.NG(150);g.c(y,E);g.c(y,h);y.K=h}catch(x){g.ls(x);var F;(F=E)==null||F.dispose()}}; iB=function(y){var t=y.api.G();y.dN.Ze("pot_ist");y.K||zyz(y);y.B("html5_bandaid_attach_content_po_token")||(y.B("html5_generate_session_po_token")&&(Ii(y),hy1(y)),t=g.Gw(t.experiments,"html5_session_po_token_interval_time_ms")||0,t>0&&(y.Z=g.ds(function(){Ii(y)},t)),y.W=!0)}; Ii=function(y){var t,a,r,E;g.m(function(h){if(!y.B("html5_generate_session_po_token")||y.useLivingRoomPoToken)return h.return();t=y.api.G();a=g.yd("EOM_VISITOR_DATA")||g.yd("VISITOR_DATA");r=t.Dk?t.datasyncId:a;E=k3(t.experiments,"html5_mock_content_binding_for_session_token")||t.livingRoomPoTokenId||r;t.GR=T2(y,E);g.FU(h)})}; T2=function(y,t){if(!y.K){if(y.Y)try{return y.Y(t)}catch(h){g.ls(h)}return""}try{y.dN.Ze(y.V?"pot_cms":"pot_csms");var a={L7:!0,yr:!0,y$:t};y.B("html5_web_po_token_disable_caching")||(a.gU={PB:t,Lm:!0,cM:!0});var r=y.K.tN(a);y.dN.Ze(y.V?"pot_cmf":"pot_csmf");if(y.V){var E;(E=y.D)==null||E.resolve();y.D=null;y.J&&(y.J=!1,y.api.app.le().dc(!1))}return r}catch(h){return g.ls(h),""}}; hy1=function(y){y.K&&(y.D=new M2,y.L.promise.then(function(){y.dN.Ze("pot_if");Ii(y)}))}; x77=function(y){y.Y||(y.Y=gOV())}; G2=function(y){g.q.call(this,{U:"div",mX:["ytp-more-videos-button","ytp-button"],T:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},S:[{U:"div",X:"ytp-more-videos-button-thumbnail"},{U:"span",X:"ytp-more-videos-button-title",er:"{{title}}"}]});this.C=y;this.K=this.K1("ytp-more-videos-button-thumbnail");this.Y=this.K1("ytp-more-videos-button-title");this.V=new g.Ci(this);g.c(this,this.V);this.V.N(this.C,"videodatachange",this.qJ);this.qJ();this.listen("click",this.onClick);OB7(this, 0);this.hide()}; OB7=function(y,t){switch(t){case 2:t="Ocultar videos";var a="Hide recommendations grid";break;default:t="M\u00e1s videos",a="Show recommendations grid"}y.updateValue("title",t);y.element.ariaLabel=a;y.Y.textContent=t}; g.Zp=function(y,t,a){g.Uz(y.element,"ytp-suggestion-set",!!t.videoId);var r=t.playlistId;a=t.Qs(a?a:"mqdefault.jpg");var E=null,h=null;t instanceof He&&(t.lengthText?(E=t.lengthText||null,h=t.KW||null):t.lengthSeconds&&(E=g.kZ(t.lengthSeconds),h=g.kZ(t.lengthSeconds,!0)));var F=!!r;r=F&&Jh(r).type==="RD";var x=t instanceof He?t.isLivePlayback:null,U=t instanceof He?t.isUpcoming:null,C=t.author,z=t.shortViewCount,O=t.publishedTimeText,M=[],L=[];C&&M.push(C);z&&(M.push(z),L.push(z));O&&L.push(O);a= {title:t.title,author:C,author_and_views:M.join(" \u2022 "),aria_label:t.ariaLabel||g.ts("Ver $TITLE",{TITLE:t.title}),duration:E,timestamp:h,url:t.MU(),is_live:x,is_upcoming:U,is_list:F,is_mix:r,background:a?"background-image: url("+a+")":"",views_and_publish_time:L.join(" \u2022 "),autoplayAlternativeHeader:t.xx};t instanceof o$&&(a.playlist_length=t.playlistLength);y.update(a)}; g.y0=function(y){var t=y.G(),a=g.x8||g.oE?{style:"will-change: opacity"}:void 0,r=t.D,E=["ytp-modern-videowall-still"];t.K&&E.push("ytp-videowall-show-text");g.q.call(this,{U:"a",mX:E,T:{href:"{{url}}",target:r?t.hF:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},S:[{U:"div",X:"ytp-modern-videowall-still-image",T:{style:"{{background}}"},S:[{U:"span",X:"ytp-modern-videowall-still-info-duration",er:"{{duration}}"}]},{U:"span",X:"ytp-modern-videowall-still-info", T:{"aria-hidden":"true"},S:[{U:"span",X:"ytp-modern-videowall-still-info-bg",S:[{U:"span",X:"ytp-modern-videowall-still-info-content",T:a,S:[{U:"span",X:"ytp-modern-videowall-still-info-title",er:"{{title}}"},{U:"span",X:"ytp-modern-videowall-still-info-author",er:"{{author}}"},{U:"span",X:"ytp-modern-videowall-still-view-count-and-date-info",er:"{{views_and_publish_time}}"},{U:"span",X:"ytp-modern-videowall-still-info-live",er:"En vivo"}]}]}]},{U:"span",mX:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],T:{"aria-hidden":"true"},S:[{U:"span",X:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{U:"span",X:"ytp-modern-videowall-still-listlabel-length",S:[" (",{U:"span",er:"{{playlist_length}}"},")"]}]},{U:"span",mX:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],T:{"aria-hidden":"true"},S:[{U:"span",X:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{U:"span",X:"ytp-modern-videowall-still-listlabel-length",er:" (50+)"}]}]}); this.suggestion=null;this.K=r;this.api=y;this.V=new g.Ci(this);g.c(this,this.V);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.V.N(y,"videodatachange",this.onVideoDataChange);y.createServerVe(this.element,this);this.onVideoDataChange()}; g.LYu=function(y,t){if(y.suggestion!==t){y.suggestion=t;var a=y.api.G(),r="hqdefault.jpg";t.Qs("sddefault.jpg")&&(r="sddefault.jpg");g.Zp(y,t,r);g.bc(a)&&!y.api.B("web_player_log_click_before_generating_ve_conversion_params")&&(a=t.MU(),r={},g.Pq(y.api,"addEmbedsConversionTrackingParams",[r]),a=g.lJ(a,r),y.updateValue("url",a));(t=(t=t.sessionData)&&t.itct)&&y.api.setTrackingParams(y.element,t)}}; MQn=function(y,t){var a=y.B("web_player_use_more_videos_button");g.q.call(this,{U:"div",mX:["ytp-fullscreen-grid"],S:[{U:"div",X:"ytp-fullscreen-grid-hover-overlay",T:{"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"}},{U:"div",X:"ytp-fullscreen-grid-buttons-container",S:a?[]:[{U:"button",mX:["ytp-fullscreen-grid-expand-button","ytp-button"],T:{"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"},S:["{{icon}}"]}]},{U:"div",X:"ytp-fullscreen-grid-main-content",S:[{U:"div",X:"ytp-fullscreen-grid-stills-container"}]}]});this.player=y;this.stills=[];this.videoData=null;this.currentState=0;this.J=a;this.Vv=this.player.B("web_player_use_external_grid_component");(this.DE=this.player.B("web_player_enable_horizontal_endscreen_shelf"))&&g.Al(this.player.getRootNode(),"ytp-enable-horizontal-endscreen-shelf"); this.D=this.K1("ytp-fullscreen-grid-main-content");this.AF=this.K1("ytp-fullscreen-grid-stills-container");this.Z=this.K1("ytp-fullscreen-grid-buttons-container");this.J&&(this.L=new G2(this.player),this.Z.appendChild(this.L.element),g.c(this,this.L),this.N(this.L.element,"click",this.kL));this.Vv&&(this.AF.style.display="none");this.W=new g.Ci(this);g.c(this,this.W);this.o5=t;if(this.D&&this.AF){if(y=this.K1("ytp-fullscreen-grid-hover-overlay"))this.N(y,"click",this.kL),u6(this.player,y,this);!this.J&& (y=this.K1("ytp-fullscreen-grid-expand-button"))&&(this.N(y,"click",this.kL),u6(this.player,y,this));if(y=this.player.getVideoData(1))this.videoData=y;this.player.createClientVe(this.D,this,223051);this.W.N(this.player,"videodatachange",this.onVideoDataChange)}}; w92=function(y,t){var a="",r=g.V$(y.player,"M\u00e1s videos","v");t===2?a="Ocultar videos":t===1&&(a="M\u00e1s videos");y.element.setAttribute("title",r);y.element.setAttribute("data-title-no-tooltip",a);y.element.setAttribute("aria-label",a);if(t=y.K1("ytp-fullscreen-grid-hover-overlay"))t.setAttribute("title",r),t.setAttribute("data-title-no-tooltip",a),t.setAttribute("aria-label",a);!y.J&&(t=y.K1("ytp-fullscreen-grid-expand-button"))&&(t.setAttribute("title",r),t.setAttribute("data-title-no-tooltip", a),t.setAttribute("aria-label",a));y.player.jJ()}; PBd=function(y){FK.call(this,y);var t=this;this.J=this.V=this.Y=0;this.Z=null;this.W=this.L=0;this.isEnded=!1;this.AF=null;var a=new g.Ci(y);g.c(this,a);this.o5=g.Gw(this.api.G().experiments,"web_player_default_peeking_px");this.L1=this.api.B("delhi_modern_player_enable_pause_peeking");this.Ff=g.Gw(this.api.G().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.yv=this.api.B("web_player_imax_theater_mode");this.D=this.api.B("web_player_enable_fullscreen_grid_components");this.d0=this.api.B("web_player_enable_more_videos_button"); this.DE=this.api.B("web_player_use_external_grid_component");g.Al(this.api.getRootNode(),"ytp-grid-scrollable");a.N(y,"fullscreentoggled",function(){tg(t)}); a.N(y,"videodatachange",function(){if(t.D){var r=t.api.getVideoData(1);t.videoData!==r&&t.Y===2&&(g.sz(t.api.getRootNode(),"ytp-grid-scrolling"),a4(t,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));t.videoData=r}},this); a.N(y,"sizestylechange",function(){t.D&&tg(t)}); M$(this.api,"setFullscreenQuickActions",function(r){t.setFullscreenQuickActions(r)}); M$(this.api,"setPlayerOverlayVideoDetailsRenderer",function(r){t.setPlayerOverlayVideoDetailsRenderer(r)}); this.DE&&M$(this.api,"setFullscreenGrid",function(r){t.setFullscreenGrid(r)}); M$(this.api,"setCommentsButton",function(r){t.setCommentsButton(r)}); M$(this.api,"setDescriptionButton",function(r){t.setDescriptionButton(r)}); this.D&&Ry1(this,a,y)}; Ry1=function(y,t,a){t.N(a,"keyboardserviceglobalkeydown",function(r,E){y.D&&r.keyCode===86&&!r.repeat&&y.Y!==0&&(E&&(E.PC=!0),y.sH("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); t.N(y.api.getRootNode(),"wheel",function(r){if(!y.AF){var E;if(y.D&&(E=y.K)!=null&&E.element&&!g.D(y.api.getPlayerStateObject(),2)&&y.Y!==0&&ra(y))if(g.Al(y.api.getRootNode(),"ytp-grid-scrolling"),y.L===0&&(y.L=window.innerHeight),y.Y===1)y.L!==0&&(y.V+=r.deltaY/y.L,y.V=g.tE(y.V,0,.7),El(y),Nm7(y,y.W/y.L+y.V>=.7,2));else if(y.Y===2){E=r.deltaY<0;var h,F,x=((F=(h=y.K)==null?void 0:h.D)==null?void 0:F.scrollTop)===0;h=y.V!==0;E&&x||h&&!E?y.L!==0&&(y.V=Math.max(0,y.V-r.deltaY/y.L),El(y),Nm7(y,y.W/y.L+ Math.abs(y.V)>=.7,1)):y.V!==0&&(y.V=0,El(y))}}},y,!0); t.N(a,"standardControlsInitialized",function(){if(!y.K){y.K=new MQn(y.api,y.hum.bind(y));y.d0&&(y.hF=new G2(y.api),g.c(y,y.hF),y.hF.element.setAttribute("data-overlay-order","12"),y.api.gm(y.hF.element,4),y.hF.listen("click",y.sH,y));g.c(y,y.K);var r=y.api.getRootNode().querySelector(".ytp-chrome-bottom");r&&r.parentNode&&r.parentNode.insertBefore(y.K.element,r.nextSibling);d77(y)}}); t.N(a,"presentingplayerstatechange",function(){hg(y)}); t.N(a,"autonavvisibility",function(){hg(y)}); y.api.Sf().subscribe("visibilitystatechange",function(){hg(y)}); X9y(y,y.Y)}; Nm7=function(y,t,a){y.Z&&clearTimeout(y.Z);y.V===0&&g.sz(y.api.getRootNode(),"ytp-grid-scrolling");t?k2n(y,a):y.V<.1&&(y.Z=window.setTimeout(function(){k2n(y)},1E3))}; k2n=function(y,t){y.Z&&(clearTimeout(y.Z),y.Z=null);y.L=0;y.D&&y.Y!==0&&(t?a4(y,t):Math.abs(y.V)>=.15&&y.sH("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),y.V=0,El(y),g.sz(y.api.getRootNode(),"ytp-grid-scrolling"))}; ra=function(y){return y.api.isFullscreen()||y.yv&&y.api.qC()}; tg=function(y){var t=ra(y);g.Uz(y.api.getRootNode(),"ytp-full-bleed-player",t);y.Vv&&g.MV(y.Vv,t);y.playerOverlayVideoDetailsRenderer&&g.MV(y.playerOverlayVideoDetailsRenderer,t);y.D&&hg(y)}; hg=function(y){if(y.D)if(g.sz(y.api.getRootNode(),"ytp-grid-scrolling"),y.api.getPresentingPlayerType()===2||y.api.Al()||y.api.isMinimized())a4(y,0);else{var t=g.D(y.api.getPlayerStateObject(),2);if(t)a4(y,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(y.isEnded&&!t){var a=ra(y)?1:0;y.isEnded=t;a4(y,a)}else ra(y)?y.Y!==2&&a4(y,1):a4(y,0);y.isEnded=t}}; a4=function(y,t,a){y.Y=t;var r;(r=y.K)==null||r.UR(t,a);var E;(E=y.hF)==null||E.UR(t);y.V=0;El(y);X9y(y,t)}; X9y=function(y,t){var a=y.api.getRootNode();g.Uz(a,"ytp-fullscreen-grid-peeking",t===1);g.Uz(a,"ytp-fullscreen-grid-active",t===2);t===1&&d77(y)}; d77=function(y){var t=y.api.getRootNode();if(g.D(y.api.getPlayerStateObject(),256)||g.D(y.api.getPlayerStateObject(),32)||g.D(y.api.getPlayerStateObject(),16))var a=y.W;else if(y.L1&&y.api.getPlayerStateObject().isPaused()){var r;a=(((r=y.K)==null?void 0:r.element.clientWidth)||0)*.5625/3*y.Ff||y.o5}else a=y.o5;y.W=a;t.style.setProperty("--ytp-grid-peek-height",y.W+"px");g.Uz(t,"ytp-disable-bottom-gradient",y.W<=12&&y.J===0)}; El=function(y){y.V===0&&y.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var t=y.V-y.J,a=t;y.V!==0&&(a=g.tE(t,-.01,.01));y.J+=a;y.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+y.J.toString());y.J!==y.V&&El(y)})}; fp1=function(y){FK.call(this,y);var t=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Ci(y);g.c(this,this.events);this.events.N(y,"heartbeatRequest",function(a){if(t.freePreviewUsageDetails.length||t.freePreviewWatchedDuration!==null)a.heartbeatRequestParams||(a.heartbeatRequestParams={}),a.heartbeatRequestParams.unpluggedParams||(a.heartbeatRequestParams.unpluggedParams={}),t.freePreviewUsageDetails.length>0?a.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= t.freePreviewUsageDetails:a.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+t.freePreviewWatchedDuration}}); M$(y,"setFreePreviewWatchedDuration",function(a){t.freePreviewWatchedDuration=a}); M$(y,"setFreePreviewUsageDetails",function(a){t.freePreviewUsageDetails=a})}; F7=function(y){g.H.call(this);this.features=[];var t=this.V,a=new DZ(y),r=new AX(y),E=new hn(y),h=new gm(y);var F=g.CF(y.G())?void 0:new JX(y);var x=new Ek(y),U=new n9n(y),C=new Z12(y),z=new Y2(y);var O=g.CF(y.G())?new fp1(y):void 0;var M;var L=(M=y.G().getWebPlayerContextConfig())!=null&&M.cinematicSettingsAvailable?new uh(y):void 0;M=new qU(y);var w=y.B("enable_courses_player_overlay_purchase")?new aEn(y):void 0;var d=g.xp(y.G())?new G9n(y):void 0;var k=new oX(y);var e=y.G().D?new Dy1(y):void 0; var v=g.bc(y.G())?new Yv7(y):void 0;var l=y.B("web_player_move_autonav_toggle")&&y.G().RR?new my7(y):void 0;var V=g.xp(y.G())?new Rm2(y):void 0;var B=y.B("web_enable_speedmaster")&&g.xp(y.G())?new lB(y):void 0;var b=y.G().Aw?void 0:new cOn(y);var Z=y.B("report_pml_debug_signal")?new PFb(y):void 0;var aV=new emd(y),rx=new sk(y);var Fb=g.Jf(y.G())?new iH1(y):void 0;var zN=navigator.mediaSession&&window.MediaMetadata&&y.G().cA?new tn(y):void 0;var En=y.B("html5_enable_drc")&&!y.G().J?new m1(y):void 0; var Xb=new $2(y);var TN=g.xp(y.G())?new AO7(y):void 0;var A7=y.B("html5_enable_d6de4")?new FR(y):void 0;var b7=g.xp(y.G())&&y.B("web_sleep_timer")?new W9(y):void 0;var IV=g.bc(y.G())?new iyH(y):void 0;var md=new k5(y),KI=new ofd(y),ec=new MK2(y);var Q=y.B("enable_sabr_snackbar_message")?new ksH(y):void 0;var Z9=y.B("web_enable_timely_actions")?new g91(y):void 0;var g2=new VB(y);var sn,vd;var f=((sn=y.G())==null?0:(vd=sn.getWebPlayerContextConfig())==null?0:vd.enableFullscreenComponentsFeature)?new PBd(y): void 0;sn=new Y5(y);vd=y.B("web_player_loop_settings_menu")&&y.G().B0?new wk7(y):void 0;var t1=g.CF(y.G())?void 0:new x2(y);var dK=new cK7(y),x_=new vP(y),iN=new l3u(y),s9=new uQb(y);var GN=g.xp(y.G())&&y.G().B("delhi_modern_web_player")?new byF(y):void 0;var aq=y.G().Y?void 0:new k91(y);t.call(this,a,r,E,h,F,x,U,C,z,O,L,M,w,d,k,e,v,l,V,B,b,Z,aV,rx,Fb,void 0,zN,En,Xb,void 0,TN,A7,b7,IV,void 0,md,KI,ec,void 0,Q,Z9,g2,f,sn,void 0,vd,void 0,t1,dK,x_,iN,s9,GN,aq,new pN7(y),new bh(y))}; WYb=function(){this.K=this.V=NaN}; jiy=function(y,t){this.j=y;this.timerName="";this.Y=!1;this.K=NaN;this.D=new WYb;this.V=t||null;this.Y=!1}; Sk7=function(y,t,a){var r=g.g9(t.P4)&&!t.P4.J;if(t.P4.tQ&&(ct(t.P4)||t.P4.o5==="shortspage"||OJ(t.P4)||r)&&!y.Y){y.Y=!0;y.J=t.clientPlaybackNonce;g.yd("TIMING_ACTION")||ZR("TIMING_ACTION",y.j.csiPageType);y.j.csiServiceName&&ZR("CSI_SERVICE_NAME",y.j.csiServiceName);if(y.V){r=y.V.Fz();for(var E=g.p(Object.keys(r)),h=E.next();!h.done;h=E.next())h=h.value,pM(h,r[h],y.timerName);r=g.EO(kj7)(y.V.RC);g.eW(r,y.timerName);r=y.V;r.V={};r.RC={}}g.eW({playerInfo:{visibilityState:g.EO(Xx7)()},playerType:"LATENCY_PLAYER_HTML5"}, y.timerName);y.L!==t.clientPlaybackNonce||Number.isNaN(y.K)||(uy("_start",y.timerName)?a=g.EO(W_)("_start",y.timerName)+y.K:g.ls(new g.RV("attempted to log gapless pbs before CSI timeline started",{cpn:t.clientPlaybackNonce})));!a||uy("pbs",y.timerName)||t.h6||Ag(y,a)}}; Ag=function(y,t,a){pM("pbs",t!=null?t:(0,g.Wx)(),a!=null?a:y.timerName)}; xd=function(y){uay();lA7();y.timerName=""}; Qiu=function(y){if(y.V){var t=y.V;t.V={};t.RC={}}y.Y=!1;y.L=void 0;y.K=NaN}; v5H=function(y,t){g.FM.call(this);this.P4=y;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.V=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.rO={};this.K=0;if(y=t.session_data)this.sessionData=Fk(y,"&");this.index=Math.max(0,Number(t.index)||0);this.loop=!!t.loop;this.startSeconds=Number(t.startSeconds)||0;this.title=t.playlist_title||"";this.description=t.playlist_description||"";this.author= t.author||t.playlist_author||"";t.video_id&&(this.items[this.index]=t);if(y=t.api)typeof y==="string"&&y.length===16?t.list="PL"+y:t.playlist=y;if(y=t.list)switch(t.listType){case "user_uploads":this.listId=new mv("UU","PLAYER_"+y);break;default:var a=t.playlist_length;a&&(this.length=Number(a)||0);this.listId=Jh(y);if(y=t.video)this.items=y.slice(0),this.loaded=!0}else if(t.playlist){y=t.playlist.toString().split(",");this.index>0&&(this.items=[]);y=g.p(y);for(a=y.next();!a.done;a=y.next())(a=a.value)&& this.items.push({video_id:a});this.length=this.items.length;if(y=t.video)this.items=y.slice(0),this.loaded=!0}this.setShuffle(!!t.shuffle);if(y=t.suggestedQuality)this.quality=y;this.rO=p3(t,"playlist_");this.Y=(t=t.thumbnail_ids)?t.split(","):[]}; p97=function(y){return!!(y.playlist||y.list||y.api)}; ey2=function(y){var t=y.index+1;return t>=y.length?0:t}; lpu=function(y){var t=y.index-1;return t<0?y.length-1:t}; g.sl=function(y,t,a,r){t=t!==void 0?t:y.index;t=y.items&&t in y.items?y.items[y.order[t]]:null;var E=null;t&&(a&&(t.autoplay="1"),r&&(t.autonav="1"),E=new g.hI(y.P4,t),g.c(y,E),E.pA=!0,E.startSeconds=y.startSeconds||E.clipStart||0,y.listId&&(E.playlistId=y.listId.toString()));return E}; uRx=function(y,t){y.index=g.tE(t,0,y.length-1);y.startSeconds=0}; VQF=function(y,t){if(t.video&&t.video.length){y.title=t.title||"";y.description=t.description;y.views=t.views;y.likes=t.likes;y.dislikes=t.dislikes;y.author=t.author||"";var a=t.loop;a&&(y.loop=a);a=g.sl(y);y.items=[];for(var r=g.p(t.video),E=r.next();!E.done;E=r.next())if(E=E.value)E.video_id=E.encrypted_id,y.items.push(E);y.length=y.items.length;(t=t.index)?y.index=t:y.findIndex(a);y.setShuffle(!1);y.loaded=!0;y.K++;y.V&&y.V()}}; Jnd=function(y,t){var a,r,E,h,F,x,U;return g.m(function(C){if(C.V==1){a=g.Tl();var z=y.G(),O={context:g.Of(y),playbackContext:{contentPlaybackContext:{ancestorOrigins:z.ancestorOrigins}}},M=z.getWebPlayerContextConfig();if(M==null?0:M.encryptedHostFlags)O.playbackContext.contentPlaybackContext.encryptedHostFlags=M.encryptedHostFlags;if(M==null?0:M.hideInfo)O.playerParams={showinfo:!1};M=z.embedConfig;var L=y.KH;var w=t.docid||t.video_id||t.videoId||t.id;if(!w){w=t.raw_embedded_player_response;if(!w){var d= t.embedded_player_response;d&&(w=JSON.parse(d))}if(w){var k,e,v,l,V,B;w=((B=g.P((k=w)==null?void 0:(e=k.embedPreview)==null?void 0:(v=e.thumbnailPreviewRenderer)==null?void 0:(l=v.playButton)==null?void 0:(V=l.buttonRenderer)==null?void 0:V.navigationEndpoint,g.zo))==null?void 0:B.videoId)||null}else w=null}k=(k=w)?k:void 0;e=y.playlistId?y.playlistId:t.list;v=t.listType;if(e){var b;v==="user_uploads"?b={username:e}:b={playlistId:e};n52(M,L,k,t,b,z.experiments);O.playlistRequest=b}else t.playlist? (b={templistVideoIds:t.playlist.toString().split(",")},n52(M,L,k,t,b,z.experiments),O.playlistRequest=b):k&&(b={videoId:k},L&&z.B("embeds_enable_per_video_embed_config")?b.serializedThirdPartyEmbedConfig=L:M&&(b.serializedThirdPartyEmbedConfig=M),O.singleVideoRequest=b);r=O;E=g.ta(m7V);g.xs(C,2);return g.u(C,g.oW(a,r,E),4)}if(C.V!=2)return h=C.K,F=y.G(),t.raw_embedded_player_response=h,F.d0=OX(t,g.bc(F)),F.Y=F.d0==="EMBEDDED_PLAYER_MODE_PFL",h&&(x=h,x.trackingParams&&My(x.trackingParams)),C.return(new g.hI(F, t));U=g.Uy(C);U instanceof Error||(U=Error("b259802748"));g.pK(U);return C.return(y)})}; n52=function(y,t,a,r,E,h){r.index&&(E.playlistIndex=String(Number(r.index)+1));E.videoId=a?a:"";t&&h.Nr("embeds_enable_per_video_embed_config")?E.serializedThirdPartyEmbedConfig=t:y&&(E.serializedThirdPartyEmbedConfig=y)}; g.Ul=function(y,t){$d.get(y);$d.set(y,t)}; g.Cc=function(y){g.FM.call(this);this.loaded=!1;this.player=y}; o5n=function(){this.K=[];this.V=[]}; g.Dp=function(y,t){return t?y.V.concat(y.K):y.V}; g.z6=function(y,t){switch(t.kind){case "asr":HBn(t,y.K);break;default:HBn(t,y.V)}}; HBn=function(y,t){g.D9(t,function(a){return y.equals(a)})||t.push(y)}; g.Ol=function(y){g.H.call(this);this.Mr=y;this.V=new o5n;this.Y=null;this.L=[];this.Z=[]}; g.bB7=function(y,t){var a;return t.G().B("html5_use_hls_native_captions")&&g.wR&&y.US()&&!((a=y.K)==null||!BU(a))}; g.Lc=function(y,t,a){g.Ol.call(this,y);this.videoData=t;this.audioTrack=a;this.K=null;this.D=!1;this.L=t.q6;this.Z=t.m8;this.D=g.To(t)}; g.Bm2=function(y,t){var a;return y.G().B("safari_live_drm_captions_fix")&&((a=y.getVideoData())==null?0:a.sM())?!1:g.CF(y.G())&&!t.isManifestless}; g.Mg=function(y,t){return DG(y.info.mimeType)?t?y.info.itag===t:!0:!1}; g.cnu=function(y,t){if(y.V!=null&&g.Bm2(t,y.V)&&y.V.V.rawcc!=null)return!0;if(!y.US())return!1;t=!!y.V&&y.V.isManifestless&&Object.values(y.V.V).some(function(a){return g.Mg(a,"386")}); y=!!y.V&&!y.V.isManifestless&&g.PH2(y.V);return t||y}; g.wa=function(y,t,a,r,E,h){g.Ol.call(this,y);this.videoId=a;this.d5=E;this.eventId=h;this.J={};this.K=null;y=r||g.sO(t).hl||"";y=y.split("_").join("-");this.D=$z(t,{hl:y})}; qkx=function(y,t,a){a=a===void 0?"":a;g.H.call(this);var r=this;this.C=y;this.L=t;this.Y=a;this.RC={};this.V={};this.K=null;this.D=new Set;this.J=new g.Ci(this);this.Wb={kfm:function(){return r.L}, f85:function(){return r.Y}}; this.W=this.C.B("web_player_defer_modules");this.VY=new Map;g.c(this,this.J);this.J.N(y,"videodatachange",this.onVideoDataChange)}; Ykd=function(y,t){y.K=t}; g.R4=function(y){return y.VY.get("captions")}; Tmx=function(y,t){switch(t){case "ad":return D7H(y);case "annotations_module":return y.C.isEmbedsShortsMode()?y=!1:(t=y.C,y=t.G(),t=t.getVideoData(),y=y.Y||t.DY||y.controlsType==="3"?!1:y.Ff.isEmpty()&&y.playerStyle!=="annotation-editor"&&y.playerStyle!=="live-dashboard"?!!t.bZ||!!g.iP(t)||!!g.KX(t):!0),y;case "asmjs":return PX(y);case "creatorendscreen":return g5b(y);case "embed":return g.bc(y.C.G());case "endscreen":return g.iBd(y);case "heartbeat":return y.pP();case "kids":return y3(y.C.G());case "remote":return y.C.G().G0; case "miniplayer":return y.C.G().showMiniplayerUiWhenMinimized;case "offline":return y.C.G().Wy;case "captions":return KY7(y);case "unplugged":return g.ic(y.C.G());case "ux":return y.C.G().JF;case "webgl":return IpV(y);case "ypc":return y.Yw();default:return g.pK(Error("Module descriptor "+t+" does not match")),!1}}; Ng=function(y,t,a,r,E){var h;a=a===void 0?!1:a;r=r===void 0?!1:r;var F=y.VY.get(t);if(!F||r)if(E||(E=function(){Ng(y,t,a,r)}),h||(h=function(){da(y,t)}),F=F||G2z(y,t,Tmx(y,t),E,h))y.VY.set(t,F),F.create(),y.C.publish("modulecreated",t),a&&y.C.v1("onApiChange")}; ygn=function(y){var t=t===void 0?!1:t;var a,r,E,h,F;return g.m(function(x){if(x.V==1)return(a=y.VY.get("asmjs"))&&!t?x.return(a):(r=$d.get("asmjs"))!=null?(E=r,x.xG(2)):g.u(x,new Promise(function(U,C){ZB2(y,"asmjs",function(){var z=$d.get("asmjs");z?U(z):C("cannot load module asmjs")},C)}),3); x.V!=2&&(E=x.K);h=E;if(!h)return x.return(Promise.reject("cannot load module asmjs"));F=new h(y.C);y.VY.set("asmjs",F);F.create();return x.return(F)})}; rgy=function(y){tnx(y)&&y.WB();aOz(y)&&(Ng(y,"captions",!0),Ng(y,"endscreen"),y.TN(),Ng(y,"creatorendscreen",!0))}; da=function(y,t){t=g.p(Ed1[t]);for(var a=t.next();!a.done;a=t.next())y.C.K$(a.value)}; aOz=function(y){var t=y.C.getVideoData(),a=y.W&&!t.isInlinePlaybackNoAd;y.C.B("html5_defer_modules_on_ads_only")&&!t.isAd()&&(a=!1);return a}; tnx=function(y){y=y.C.getVideoData();var t;if(t=y.B("web_player_defer_ad")){if(g.TE(y.bv,"ad")||z6n(y)||y.enableServerStitchedDai)y=!1;else{t=y.playerResponse;y=y.startSeconds;var a=t==null?void 0:t.adPlacements;if(t=a){t=Number.MAX_VALUE;a=g.p(a);for(var r=a.next();!r.done;r=a.next())if(r=r.value.adPlacementRenderer){var E=void 0,h=(E=r.config)==null?void 0:E.adPlacementConfig;E=void 0;if(((E=h)==null?void 0:E.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var F=E=void 0;h=Number((E=h)==null?void 0:(F= E.adTimeOffset)==null?void 0:F.offsetStartMilliseconds)||0;F=E=void 0;r=Number(((E=r.renderer)==null?void 0:(F=E.adBreakServiceRenderer)==null?void 0:F.prefetchMilliseconds)||0);r=h-r;r=11;y=y.api.G().W&&pc;return!(!t&&!y)}; BX=function(y,t){return!y.api.isInline()&&!Sl7(y,po(t))&&g.Wm(t)}; j4F=function(y){y.kT.w1();if(y.gR&&y.XS)y.XS=!1;else if(!y.api.G().yv&&!y.Dr()){var t=y.api.getPlayerStateObject();g.D(t,2)&&g.mc(y.api)||y.dk(t);!y.api.G().n1||t.isCued()||g.D(t,1024)?y.NT():y.iH.isActive()?(y.TK(),y.iH.stop()):y.iH.start()}}; vdN=function(y,t){var a;if((a=y.api.getVideoData())==null?0:a.mutedAutoplay){var r,E;if((r=t.target)==null?0:(E=r.className)==null?0:E.includes("ytp-info-panel"))return!1}return g.Wm(t)&&y.api.isMutedByMutedAutoplay()?(y.api.unMute(),y.api.getPresentingPlayerType()===2&&y.api.playVideo(),t=y.api.getPlayerStateObject(),!g.D(t,4)||g.D(t,8)||g.D(t,2)||y.NT(),!0):!1}; pXx=function(y,t,a){y.api.isFullscreen()?a<1-t&&y.api.toggleFullscreen():a>1+t&&y.api.toggleFullscreen()}; WPV=function(y){var t=Kt()&&DY()>=67&&!y.api.G().W;y=y.api.G().disableOrganicUi;return!g.io("tizen")&&!J5&&!t&&!y}; g.cX=function(y){g.q.call(this,{U:"div",S:[{U:"div",X:"ytp-bezel-text-wrapper",S:[{U:"div",X:"ytp-bezel-text",er:"{{title}}"}]},{U:"div",X:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},S:[{U:"div",X:"ytp-bezel-icon",er:"{{icon}}"}]}]});this.C=y;this.K=new g.Te(this.show,10,this);y=this.C.B("delhi_modern_web_player")?1E3:500;this.V=new g.Te(this.hide,y,this);g.c(this,this.K);g.c(this,this.V);this.hide()}; Yd=function(y,t,a){if(t<=0){a=lx();t="silenciado";var r=0}else a=a?{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,T:{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"}}]}:{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,T:{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"}}]},r=Math.floor(t),t=r+"volumen";qg(y,a,t,r+"%")}; eQ2=function(y,t){t=t?{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{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"}}]}:K_u();var a=y.C.getPlaybackRate(),r=g.ts("La velocidad es de $RATE",{RATE:String(a)});qg(y,t,r,a+"x")}; lO7=function(y,t){t=t?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";qg(y,dyH(y.C),t)}; qg=function(y,t,a,r){r=r===void 0?"":r;y.updateValue("label",a===void 0?"":a);y.updateValue("icon",t);g.yf(y.V);y.K.start();y.updateValue("title",r);g.Uz(y.element,"ytp-bezel-text-hide",!r)}; u77=function(y,t){g.q.call(this,{U:"button",mX:["ytp-button","ytp-cards-button"],T:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.bc(y.G()))},S:[{U:"span",X:"ytp-cards-button-icon-default",S:[{U:"div",X:"ytp-cards-button-icon",S:[y.G().B("player_new_info_card_format")?Ts7():{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{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"}}]}]}, {U:"div",X:"ytp-cards-button-title",er:"Informaci\u00f3n"}]},{U:"span",X:"ytp-cards-button-icon-shopping",S:[{U:"div",X:"ytp-cards-button-icon",S:[{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",X:"ytp-svg-shadow",T:{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"}},{U:"path",X:"ytp-svg-fill",T:{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"}},{U:"path",X:"ytp-svg-shadow-fill",T:{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"}}]}]},{U:"div", X:"ytp-cards-button-title",er:"Shopping"}]}]});this.C=y;this.K=t;this.V=null;this.fade=new g.r0(this,250,!0,100);g.c(this,this.fade);g.Uz(this.K,"ytp-show-cards-title",g.bc(y.G()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.sA(!0)}; VnH=function(y,t){g.q.call(this,{U:"div",X:"ytp-cards-teaser",S:[{U:"div",X:"ytp-cards-teaser-box"},{U:"div",X:"ytp-cards-teaser-text",S:y.G().B("player_new_info_card_format")?[{U:"button",X:"ytp-cards-teaser-info-icon",T:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},S:[Ts7()]},{U:"img",X:"ytp-cards-teaser-channel-avatar",T:{alt:"","aria-hidden":"true"}},{U:"span",X:"ytp-cards-teaser-label",er:"{{text}}"},{U:"button",X:"ytp-cards-teaser-close-button",T:{"aria-label":"Cerrar"},S:[g.Pz()]}]: [{U:"span",X:"ytp-cards-teaser-label",er:"{{text}}"}]}]});var a=this;this.C=y;this.Jm=t;this.fade=new g.r0(this,250,!1,250);this.V=null;this.J=new g.Te(this.jR4,300,this);this.L=new g.Te(this.nk0,2E3,this);this.D=[];this.Y=null;this.W=new g.Te(function(){a.element.style.margin="0"},250); this.onClickCommand=this.K=null;g.c(this,this.fade);g.c(this,this.J);g.c(this,this.L);g.c(this,this.W);y.G().B("player_new_info_card_format")?(g.Al(y.getRootNode(),"ytp-cards-teaser-dismissible"),this.N(this.K1("ytp-cards-teaser-close-button"),"click",this.ob),this.N(this.K1("ytp-cards-teaser-info-icon"),"click",this.Iu),this.N(this.K1("ytp-cards-teaser-label"),"click",this.Iu)):this.listen("click",this.Iu);this.N(t.element,"mouseover",this.IZ);this.N(t.element,"mouseout",this.ek);this.N(y,"cardsteasershow", this.l$r);this.N(y,"cardsteaserhide",this.LJ);this.N(y,"cardstatechange",this.hp);this.N(y,"presentingplayerstatechange",this.hp);this.N(y,"appresize",this.MJ);this.N(y,"onShowControls",this.MJ);this.N(y,"onHideControls",this.Z2);this.listen("mouseenter",this.Ku)}; nd7=function(y){g.q.call(this,{U:"button",mX:[DO.BUTTON,DO.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{U:"div",X:DO.TITLE_NOTIFICATIONS_ON,T:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},S:[g.fL()]},{U:"div",X:DO.TITLE_NOTIFICATIONS_OFF,T:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},S:[{U:"svg",T:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},S:[{U:"path",T:{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=y;this.V=!1;y.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")}; mgb=function(y,t){y.V=t;y.element.classList.toggle(DO.NOTIFICATIONS_ENABLED,y.V);var a=y.api.getVideoData();a?(t=t?a.b$:a.u$)?(y=y.api.RS())?Ja(y,t):g.pK(Error("No innertube service available when updating notification preferences.")):g.pK(Error("No update preferences command available.")):g.pK(Error("No video data when updating notification preferences."))}; odF=function(y,t,a){var r=r===void 0?800:r;var E=E===void 0?600:E;var h=document.location.protocol;y=$V7(h+"//"+y+"/signin?context=popup","feature",t,"next",h+"//"+location.hostname+"/post_login");Jgn(y,a,r,E)}; Jgn=function(y,t,a,r){a=a===void 0?800:a;r=r===void 0?600:r;if(y=g.eE(window,y,"loginPopup","width="+a+",height="+r+",resizable=yes,scrollbars=yes"))qzb(function(){t()}),y.moveTo((screen.width-a)/2,(screen.height-r)/2)}; g.iC=function(y,t,a,r,E,h,F,x,U,C,z,O){y=y.charAt(0)+y.substring(1).toLowerCase();a=a.charAt(0)+a.substring(1).toLowerCase();if(t==="0"||t==="-1")t=null;if(r==="0"||r==="-1")r=null;var M=z.G(),L=M.userDisplayName&&g.g9(M);g.q.call(this,{U:"div",mX:["ytp-button","ytp-sb"],S:[{U:"div",X:"ytp-sb-subscribe",T:L?{title:z.G().B("player_tooltip_data_title_killswitch")?g.ts("Suscribirse como $USER_NAME",{USER_NAME:M.userDisplayName}):"","data-tooltip-title":g.ts("Suscribirse como $USER_NAME",{USER_NAME:M.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":L3(M),"data-tooltip-opaque":String(g.bc(M)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},S:[{U:"div",X:"ytp-sb-text",S:[{U:"div",X:"ytp-sb-icon"},y]},t?{U:"div",X:"ytp-sb-count",er:t}:""]},{U:"div",X:"ytp-sb-unsubscribe",T:L?{title:z.B("player_tooltip_data_title_killswitch")?g.ts("Suscripci\u00f3n a nombre de $USER_NAME",{USER_NAME:M.userDisplayName}):"","data-tooltip-title":g.ts("Suscripci\u00f3n a nombre de $USER_NAME", {USER_NAME:M.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":L3(M),"data-tooltip-opaque":String(g.bc(M)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},S:[{U:"div",X:"ytp-sb-text",S:[{U:"div",X:"ytp-sb-icon"},a]},r?{U:"div",X:"ytp-sb-count",er:r}:""]}],T:{"aria-live":"polite"}});var w=this;this.channelId=F;this.C=z;this.Y=O;var d=this.K1("ytp-sb-subscribe"),k=this.K1("ytp-sb-unsubscribe");h&&g.Al(this.element,"ytp-sb-classic"); if(E){x?this.V():this.K();var e=function(){if(M.DE){var l=w.channelId;if(U||C){var V={c:l};var B;g.dP.isInitialized()&&(B=rH1(V));V=B||"";if(B=z.getVideoData())if(B=B.subscribeCommand){var b=z.RS();b?(Ja(b,B,{botguardResponse:V,feature:U}),z.W4("SUBSCRIBE",l)):g.pK(Error("No innertube service available when updating subscriptions."))}else g.pK(Error("No subscribe command in videoData."));else g.pK(Error("No video data available when updating subscription."))}k.focus();k.removeAttribute("aria-hidden"); d.setAttribute("aria-hidden","true")}else odF(g.rY(w.C.G()),"sb_button",w.D)},v=function(){var l=w.channelId; if(U||C){var V=z.getVideoData();Ja(z.RS(),V.unsubscribeCommand,{feature:U});z.W4("UNSUBSCRIBE",l)}d.focus();d.removeAttribute("aria-hidden");k.setAttribute("aria-hidden","true")}; this.N(d,"click",e);this.N(k,"click",v);this.N(d,"keypress",function(l){l.keyCode===13&&e(l)}); this.N(k,"keypress",function(l){l.keyCode===13&&v(l)}); this.N(z,"SUBSCRIBE",this.V);this.N(z,"UNSUBSCRIBE",this.K);this.Y&&L&&(xyV(z),u6(z,d,this),u6(z,k,this))}else g.Al(d,"ytp-sb-disabled"),g.Al(k,"ytp-sb-disabled")}; BaH=function(y){g.q.call(this,{U:"div",X:"ytp-title-channel",S:[{U:"div",X:"ytp-title-beacon"},{U:"a",X:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:y.G().hF,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{U:"div",X:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{U:"div",X:"ytp-title-expanded-heading",S:[{U:"div",X:"ytp-title-expanded-title",S:[{U:"a",er:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:y.G().hF,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{U:"div",X:"ytp-title-expanded-subtitle",er:"{{expandedSubtitle}}",T:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var t=this;this.api=y;this.channel=this.K1("ytp-title-channel");this.K=this.K1("ytp-title-channel-logo");this.channelName=this.K1("ytp-title-expanded-title");this.L=this.K1("ytp-title-expanded-overlay");this.Y=this.V=this.subscribeButton=null;this.D=!1;y.createClientVe(this.K,this,36925);y.createClientVe(this.channelName,this, 37220);g.bc(this.api.G())&&Hc7(this);this.N(y,"videodatachange",this.kG);this.N(y,"videoplayerreset",this.kG);this.N(this.channelName,"click",function(a){t.api.logClick(t.channelName);g.eE(window,bcd(t));a.preventDefault()}); this.N(this.K,"click",this.PJu);this.kG()}; cgb=function(y){if(!y.api.G().FB){var t=y.api.getVideoData(),a=new g.iC("Suscribirse",null,"Suscrito/a",null,!0,!1,t.CD,t.subscribed,"channel_avatar",null,y.api,!0);y.api.createServerVe(a.element,y);var r;y.api.setTrackingParams(a.element,((r=t.subscribeButtonRenderer)==null?void 0:r.trackingParams)||null);y.N(a.element,"click",function(){y.api.logClick(a.element)}); y.subscribeButton=a;g.c(y,y.subscribeButton);y.subscribeButton.g0(y.L);y.subscribeButton.hide();var E=new nd7(y.api);y.V=E;g.c(y,E);E.g0(y.L);E.hide();y.N(y.api,"SUBSCRIBE",function(){t.GR&&(E.show(),y.api.logVisibility(E.element,!0))}); y.N(y.api,"UNSUBSCRIBE",function(){t.GR&&(E.hide(),y.api.logVisibility(E.element,!1),mgb(E,!1))})}}; Hc7=function(y){var t=y.api.G();cgb(y);y.updateValue("flyoutUnfocusable","true");y.updateValue("channelTitleFocusable","-1");y.updateValue("shouldHideExpandedTitleForA11y","true");y.updateValue("shouldHideExpandedSubtitleForA11y","true");t.K||t.C1||(y.N(y.channel,"mouseenter",y.Y1),y.N(y.channel,"mouseleave",y.tE),y.N(y.channel,"focusin",y.Y1),y.N(y.channel,"focusout",function(a){y.channel.contains(a.relatedTarget)||y.tE()})); y.Y=new g.Te(function(){y.isExpanded()&&(y.api.logVisibility(y.channelName,!1),y.subscribeButton&&(y.subscribeButton.hide(),y.api.logVisibility(y.subscribeButton.element,!1)),y.V&&(y.V.hide(),y.api.logVisibility(y.V.element,!1)),y.channel.classList.remove("ytp-title-expanded"),y.channel.classList.add("ytp-title-show-collapsed"))},500); g.c(y,y.Y);y.N(y.channel,qlb,function(){Yln(y)}); y.N(y.api,"onHideControls",y.Hg);y.N(y.api,"appresize",y.Hg);y.N(y.api,"fullscreentoggled",y.Hg)}; Yln=function(y){y.channel.classList.remove("ytp-title-show-collapsed");y.channel.classList.remove("ytp-title-show-expanded")}; DgV=function(y){var t=y.api.getPlayerSize();return g.bc(y.api.G())&&t.width>=524}; bcd=function(y){var t=y.api.G(),a=y.api.getVideoData(),r=g.M0(t)+a.yv;g.Uf(a)&&(r="https://music.youtube.com"+a.yv);if(!g.bc(t))return r;t={};g.Pq(y.api,"addEmbedsConversionTrackingParams",[t]);return g.lJ(r,t)}; Kc=function(y){var t=g.rL({"aria-haspopup":"true"});g.aX.call(this,t,y);this.listen("keydown",this.MC)}; I4=function(y,t){y.element.setAttribute("aria-haspopup",String(t))}; gd7=function(y,t){g.q.call(this,{U:"div",X:"ytp-user-info-panel",T:{"aria-label":"Informaci\u00f3n del usuario"},S:y.G().DE?[{U:"div",X:"ytp-user-info-panel-icon",er:"{{icon}}"},{U:"div",X:"ytp-user-info-panel-content",S:[{U:"div",X:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},er:"{{watchingAsUsername}}"},{U:"div",X:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},er:"{{watchingAsEmail}}"}]}]:[{U:"div",X:"ytp-user-info-panel-icon",er:"{{icon}}"}, {U:"div",X:"ytp-user-info-panel-content",S:[{U:"div",S:[{U:"text",T:{tabIndex:"{{userInfoFocusable}}"},er:"Saliste de la cuenta"}]},{U:"div",X:"ytp-user-info-panel-login",S:[{U:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},er:y.G().FB?"":"Acceder a YouTube"}]}]}]});this.Mr=y;this.sourceElement=t;y.G().DE||y.G().FB||this.N(this.K1("ytp-user-info-panel-login"),"click",this.Y0);this.closeButton=new g.q({U:"button",mX:["ytp-collapse","ytp-button"],T:{title:"Cerrar"},S:[g.ew()]});this.closeButton.g0(this.element); g.c(this,this.closeButton);this.N(window,"blur",this.hide);this.N(document,"click",this.P8);this.kG()}; G6u=function(y,t,a){g.Ok.call(this,y);var r=this;this.OS=t;this.vj=a;this.getVideoUrl=new Kc(6);this.xS=new Kc(5);this.Kb=new Kc(4);this.Tl=new Kc(3);this.bM=new g.aX(g.rL({href:"{{href}}",target:this.C.G().hF},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.aX(g.rL(),1,"Estad\u00edsticas");this.FG=new g.Ui({U:"div",mX:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},er:"{{text}}"});this.gj=new z2(this.C,this.FG);this.TQ=this.HL=null;g.bc(this.C.G())&& (this.closeButton=new g.q({U:"button",mX:["ytp-collapse","ytp-button"],T:{title:"Cerrar"},S:[g.ew()]}),g.c(this,this.closeButton),this.closeButton.g0(this.element),this.closeButton.listen("click",this.S7,this));g.bc(this.C.G())&&(this.aN=new g.aX(g.rL(),10,"Cuenta"),g.c(this,this.aN),this.NK(this.aN,!0),this.aN.listen("click",this.ylF,this),y.createClientVe(this.aN.element,this.aN,137682));this.C.G().B0&&(this.z$=new zq("En bucle",9),g.c(this,this.z$),this.NK(this.z$,!0),this.z$.listen("click",this.NVE, this),y.createClientVe(this.z$.element,this.z$,28661));this.C.B("web_player_miniplayer_in_context_menu")&&(this.OB=new g.aX(g.rL(),8,"Reproductor en miniatura"),g.c(this,this.OB),this.NK(this.OB,!0),this.OB.listen("click",this.Ek1,this),y.createClientVe(this.OB.element,this.OB,62946));this.C.B("web_watch_pip_context_menu_button")&&this.C.G().showMiniplayerButton&&(this.KG=new g.aX(g.rL(),7,"Pantalla en pantalla"),g.c(this,this.KG),this.NK(this.KG,!0),this.KG.listen("click",this.oJr,this),y.createClientVe(this.KG.element, this.KG,194442));g.c(this,this.getVideoUrl);this.NK(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.fh4,this);y.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.c(this,this.xS);this.NK(this.xS,!0);this.xS.listen("click",this.lh0,this);y.createClientVe(this.xS.element,this.xS,28660);g.c(this,this.Kb);this.NK(this.Kb,!0);this.Kb.listen("click",this.wO4,this);y.createClientVe(this.Kb.element,this.Kb,28658);g.c(this,this.Tl);this.NK(this.Tl,!0);this.Tl.listen("click",this.Jue, this);g.c(this,this.bM);this.NK(this.bM,!0);this.bM.listen("click",this.I$m,this);g.c(this,this.showVideoInfo);this.NK(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.qer,this);g.c(this,this.FG);this.FG.listen("click",this.gku,this);g.c(this,this.gj);icx()&&(this.HL=new g.q({U:"textarea",X:"ytp-html5-clipboard",T:{readonly:"",tabindex:"-1"}}),g.c(this,this.HL),this.HL.g0(this.element));var E;(E=this.aN)==null||E.setIcon(h9u());var h;(h=this.z$)==null||h.setIcon(s_u());var F;(F=this.OB)== null||F.setIcon(this.C.B("delhi_modern_web_player_icons")?yUN():jw());var x;(x=this.KG)==null||x.setIcon(jw());this.Tl.setIcon({U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{"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.bM.setIcon(df());this.showVideoInfo.setIcon(IY1());this.N(y,"onLoopChange",this.onLoopChange);this.N(y,"videodatachange",this.onVideoDataChange);this.N(y,"fullscreentoggled",function(){KPn(r)}); this.N(y,"minimized",function(){KPn(r)}); IOn(this);Ta7(this,this.C.getVideoData())}; T6=function(y,t){var a=!1;if(y.HL){var r=y.HL.element;r.value=t;r.select();try{a=document.execCommand("copy")}catch(E){}}a?y.OS.LJ():(y.FG.setContent(t,"text"),g.wm(y.OS,y.gj),PP(y.FG.element),y.HL&&(y.HL=null,IOn(y)));return a}; icx=function(){var y=document.queryCommandSupported&&document.queryCommandSupported("copy");McV("Chromium")>=43&&(y=!0);McV("Firefox")<=40&&(y=!1);return y}; KPn=function(y){var t;(t=y.OB)==null||t.lY(!y.C.isFullscreen()&&!y.C.isMinimized()&&y.C.getPresentingPlayerType()!==2&&y.C.G().showMiniplayerButton)}; Ta7=function(y,t){var a=y.C.G(),r=y.C.getPresentingPlayerType()===2,E=!r||t.isListed;E=!a.Vv&&!!t.videoId&&E;a.playerStyle!=="play"?a="https://support.google.com/youtube/?p=report_playback":(a={contact_type:"playbackissue",html5:1,ei:t.eventId,v:t.videoId,p:"movies_playback"},t.K&&(a.fmt=t.K.itag),t.clientPlaybackNonce&&(a.cpn=t.clientPlaybackNonce),t.partnerId&&(a.partnerid=t.partnerId),a=g.lJ("//support.google.com/googleplay/",a));y.Kb.lY(E&&t.allowEmbed);y.getVideoUrl.lY(E);y.xS.lY(E&&!t.isLivePlayback); y.bM.setContent(a,"href");var h;(h=y.z$)==null||h.lY(!t.isLivePlayback&&!r);KPn(y);var F;(F=y.aN)==null||F.lY(!r)}; IOn=function(y){var t=!!y.HL;g.tX(y.Tl,t?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");I4(y.Tl,!t);g.tX(y.Kb,t?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");I4(y.Kb,!t);g.tX(y.getVideoUrl,t?"Copiar URL del video":"Obtener la URL del video");I4(y.getVideoUrl,!t);g.tX(y.xS,t?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");I4(y.xS,!t);y.Kb.setIcon(t?gz7():null);y.getVideoUrl.setIcon(t? XM():null);y.xS.setIcon(t?XM():null)}; Zcx=function(y){return g.bc(y.C.G())?y.aN:y.z$}; tAV=function(y,t){g.M7.call(this,y);this.vj=t;this.K=new g.Ci(this);this.W=new g.Te(this.NH5,1E3,this);this.Z=this.aR=null;g.c(this,this.K);g.c(this,this.W);t=this.C.G();y.createClientVe(this.element,this,28656);g.Al(this.element,"ytp-contextmenu");this.C.G().experiments.Nr("delhi_modern_web_player")&&g.xp(t)&&g.Al(this.element,"ytp-delhi-modern-contextmenu");ycu(this);this.hide()}; ycu=function(y){g.V1(y.K);var t=y.C.G();t.playerStyle==="gvn"||t.K||t.C1||(t=y.C.ZE(),y.K.N(t,"contextmenu",y.xPG),y.K.N(t,"touchstart",y.onTouchStart,null,!0),y.K.N(t,"touchmove",y.Dl,null,!0),y.K.N(t,"touchend",y.Dl,null,!0))}; a0n=function(y){y.C.isFullscreen()?g.q$(y.C,y.element,10):y.g0(GQ(y).body)}; G6=function(y,t,a){a=a===void 0?240:a;g.q.call(this,{U:"button",mX:["ytp-button","ytp-copylink-button"],T:{title:y.B("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.bc(y.G()))},S:[{U:"div",X:"ytp-copylink-icon",er:"{{icon}}"},{U:"div",X:"ytp-copylink-title",er:"Copiar v\u00ednculo",T:{"aria-hidden":"true"}}]});this.api=y;this.V=t;this.K=a;this.visible=!1;this.tooltip=this.V.q7();t=y.G();this.tooltip.element.setAttribute("aria-live", "polite");g.Uz(this.element,"ytp-show-copylink-title",g.bc(t));y.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.N(y,"videodatachange",this.kG);this.N(y,"videoplayerreset",this.kG);this.N(y,"appresize",this.kG);this.kG();this.addOnDisposeCallback(g.l6(this.tooltip,this.element))}; rcu=function(y){var t=y.api.G(),a=y.api.getVideoData(),r=y.api.ZE().getPlayerSize().width;t=t.Y;return!!a.videoId&&r>=y.K&&a.Aw&&!a.Zh&&!y.api.isEmbedsShortsMode()&&!t}; ES2=function(y){y.updateValue("icon",Mq());if(y.api.G().K)y.tooltip.gk(y.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{y.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");y.updateValue("tooltip-title","Se copi\u00f3 el v\u00ednculo en el portapapeles");y.tooltip.jJ();y.tooltip.gk(y.element);var t=y.listen("mouseleave",function(){y.Dh(t);y.kG();y.tooltip.pD()})}}; hgd=function(y,t){return g.m(function(a){if(a.V==1)return g.xs(a,2),g.u(a,navigator.clipboard.writeText(t),4);if(a.V!=2)return a.return(!0);g.Uy(a);var r=a.return,E=!1,h=g.SU("TEXTAREA");h.value=t;h.setAttribute("readonly","");var F=y.api.getRootNode();F.appendChild(h);if(Kx){var x=window.getSelection();x.removeAllRanges();var U=document.createRange();U.selectNodeContents(h);x.addRange(U);h.setSelectionRange(0,t.length)}else h.select();try{E=document.execCommand("copy")}catch(C){}F.removeChild(h); return r.call(a,E)})}; FN7=function(y){g.q.call(this,{U:"div",X:"ytp-doubletap-ui-legacy",S:[{U:"div",X:"ytp-doubletap-fast-forward-ve"},{U:"div",X:"ytp-doubletap-rewind-ve"},{U:"div",X:"ytp-doubletap-static-circle",S:[{U:"div",X:"ytp-doubletap-ripple"}]},{U:"div",X:"ytp-doubletap-overlay-a11y"},{U:"div",X:"ytp-doubletap-seek-info-container",S:[{U:"div",X:"ytp-doubletap-arrows-container",S:[{U:"span",X:"ytp-doubletap-base-arrow"},{U:"span",X:"ytp-doubletap-base-arrow"},{U:"span",X:"ytp-doubletap-base-arrow"}]},{U:"div", X:"ytp-doubletap-tooltip",S:[{U:"div",X:"ytp-seek-icon-text-container",S:[{U:"div",X:"ytp-seek-icon",er:"{{seekIcon}}"},{U:"div",X:"ytp-chapter-seek-text-legacy",er:"{{seekText}}"}]},{U:"div",X:"ytp-doubletap-tooltip-label",er:"{{seekTime}}"}]}]}]});this.C=y;this.D=new g.Te(this.show,10,this);this.K=new g.Te(this.hide,700,this);this.J=this.Y=0;this.AF=this.L=!1;this.V=this.K1("ytp-doubletap-static-circle");g.c(this,this.D);g.c(this,this.K);this.hide();this.W=this.K1("ytp-doubletap-fast-forward-ve"); this.Z=this.K1("ytp-doubletap-rewind-ve");this.C.createClientVe(this.W,this,28240);this.C.createClientVe(this.Z,this,28239);this.C.logVisibility(this.W,!0);this.C.logVisibility(this.Z,!0);this.L=y.B("web_show_cumulative_seek_time");this.AF=y.B("web_center_static_circles")}; AcF=function(y,t){t=g.ts("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:t.toString()});y.updateValue("seekTime",t)}; sJb=function(y){CB.call(this,y,!1,!0);this.DE=[];this.R5=[];this.element.setAttribute("data-overlay-order","9");xPu(this,this.C.getVideoData());this.W=!0;this.badge.element.classList.add("ytp-featured-product");this.d0=new g.q({U:"div",X:"ytp-featured-product-open-in-new"});g.c(this,this.d0);this.countdownTimer=new g.q({U:"text",X:"ytp-featured-product-countdown",er:"{{content}}"});this.countdownTimer.hide();g.c(this,this.countdownTimer);this.Y=new g.q({U:"div",X:"ytp-featured-product-trending",S:[{U:"div", X:"ytp-featured-product-trending-icon"},{U:"text",X:"ytp-featured-product-trending-text",er:"{{trendingOffer}}"}]});this.Y.hide();g.c(this,this.Y);this.overflowButton=new g.q({U:"button",mX:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.c(this,this.overflowButton);this.J=new g.q({U:"text",X:"ytp-featured-product-exclusive-countdown",er:"{{content}}",T:{id:"exclusiveCountdown","aria-hidden":"true"}});this.J.hide();g.c(this,this.J);this.L= new g.q({U:"div",X:"ytp-featured-product-exclusive-container",T:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},S:[{U:"div",X:"ytp-featured-product-exclusive-badge-container",S:[{U:"div",X:"ytp-featured-product-exclusive-badge",S:[{U:"text",X:"ytp-featured-product-exclusive-badge-text",er:"{{exclusive}}",T:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.J]});this.L.hide();g.c(this,this.L);this.banner=new g.q({U:"a",X:"ytp-featured-product-container",S:[{U:"div",X:"ytp-featured-product-thumbnail", S:[{U:"img",T:{src:"{{thumbnail}}"}},this.d0]},{U:"div",X:"ytp-featured-product-details",S:[{U:"text",X:"ytp-featured-product-title",er:"{{title}}"},this.C.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{U:"div",X:"ytp-featured-product-price-container",T:{"aria-label":"{{priceA11yText}}"},S:[{U:"text",X:"ytp-featured-product-price-when-promotion-text-enabled",er:"{{price}}",T:{"aria-hidden":"true"}},{U:"text",X:"ytp-featured-product-promotion-text",er:"{{promotionText}}", T:{"aria-hidden":"true"}}]}:{U:"div",T:{"aria-label":"{{priceA11yText}}"},S:[{U:"text",X:"ytp-featured-product-price",er:"{{price}}",T:{"aria-hidden":"true"}},{U:"text",X:"ytp-featured-product-sales-original-price",er:"{{salesOriginalPrice}}",T:{"aria-hidden":"true"}},{U:"text",X:"ytp-featured-product-price-drop-reference-price",er:"{{priceDropReferencePrice}}",T:{"aria-hidden":"true"}}]},this.C.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{U:"div",X:"ytp-featured-product-when-promotion-text-enabled", S:[{U:"text",X:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",er:"{{affiliateDisclaimer}}"},this.Y,{U:"text",X:"ytp-featured-product-vendor-when-promotion-text-enabled",er:"{{vendor}}"}]}:{U:"div",S:[{U:"text",X:"ytp-featured-product-affiliate-disclaimer",er:"{{affiliateDisclaimer}}"},this.C.B("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.L:null,this.Y,{U:"text",X:"ytp-featured-product-vendor",er:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]}); g.c(this,this.banner);this.banner.g0(this.D.element);this.N(this.C,g.q4("featured_product"),this.gXr);this.N(this.C,g.Ya("featured_product"),this.JR);this.N(this.C,"videodatachange",this.onVideoDataChange);this.N(this.overflowButton.element,"click",this.dI);this.N(y,"featuredproductdismissed",this.lA)}; $Px=function(y){var t,a;y=(t=y.V)==null?void 0:(a=t.bannerData)==null?void 0:a.itemData;var r,E,h;return(y==null||!y.affiliateDisclaimer)&&(y==null?0:(r=y.exclusivesData)==null?0:r.exclusiveOfferLabelText)&&(y==null?0:(E=y.exclusivesData)==null?0:E.expirationTimestampMs)&&(y==null?0:(h=y.exclusivesData)==null?0:h.exclusiveOfferCountdownText)?!0:!1}; Ck7=function(y){var t,a,r,E,h=(t=y.V)==null?void 0:(a=t.bannerData)==null?void 0:(r=a.itemData)==null?void 0:(E=r.exclusivesData)==null?void 0:E.expirationTimestampMs;t=(Number(h)-Date.now())/1E3;if(t>0){if(t<604800){var F,x,U,C;a=(F=y.V)==null?void 0:(x=F.bannerData)==null?void 0:(U=x.itemData)==null?void 0:(C=U.exclusivesData)==null?void 0:C.exclusiveOfferCountdownText;if(a!==void 0)for(F=Date.now(),x=g.p(a),U=x.next();!U.done;U=x.next())if(U=U.value,U!==void 0&&U.text!==void 0&&(C=Number(U.textDisplayStartTimestampMs), !isNaN(C)&&F>=C)){U.insertCountdown?(t=U.text.replace(/\$0/,String(hd({seconds:t}))),y.J.setContent(t)):y.J.setContent(U.text);y.J.show();break}}var z,O,M,L;y.L.update({exclusive:(z=y.V)==null?void 0:(O=z.bannerData)==null?void 0:(M=O.itemData)==null?void 0:(L=M.exclusivesData)==null?void 0:L.exclusiveOfferLabelText});y.L.show();ZO(y);var w;(w=y.sR)==null||w.start()}else UPF(y)}; UPF=function(y){var t;(t=y.sR)==null||t.stop();y.J.hide();y.L.hide();yO(y)}; zgu=function(y){var t,a,r=(t=y.V)==null?void 0:(a=t.bannerData)==null?void 0:a.itemData;return y.C.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(r==null||!r.priceReplacementText)&&(r==null?0:r.promotionText)?r==null?void 0:r.promotionText.content:null}; Ogu=function(y){var t,a,r=(t=y.V)==null?void 0:(a=t.bannerData)==null?void 0:a.itemData,E,h;if(!(r!=null&&r.priceReplacementText||y.C.B("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(r==null?0:(E=r.dealsData)==null?0:(h=E.sales)==null?0:h.originalPrice)){var F,x;return r==null?void 0:(F=r.dealsData)==null?void 0:(x=F.sales)==null?void 0:x.originalPrice}return null}; LNV=function(y){var t,a,r=(t=y.V)==null?void 0:(a=t.bannerData)==null?void 0:a.itemData,E,h,F,x;if(!((r==null?0:r.priceReplacementText)||y.C.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(r==null?0:(E=r.dealsData)==null?0:(h=E.sales)==null?0:h.originalPrice))&&(r==null?0:(F=r.dealsData)==null?0:(x=F.priceDrop)==null?0:x.referencePrice)){var U,C;return r==null?void 0:(U=r.dealsData)==null?void 0:(C=U.priceDrop)==null?void 0:C.referencePrice}return null}; MA7=function(y){var t,a,r=(t=y.V)==null?void 0:(a=t.bannerData)==null?void 0:a.itemData;if(r==null?0:r.priceReplacementText)return r==null?void 0:r.priceReplacementText;if((r==null?0:r.promotionText)&&y.C.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var E;return(r==null?void 0:r.price)+" "+(r==null?void 0:(E=r.promotionText)==null?void 0:E.content)}var h,F;if(r==null?0:(h=r.dealsData)==null?0:(F=h.sales)==null?0:F.originalPrice){var x,U;return r==null?void 0:(x=r.dealsData)== null?void 0:(U=x.sales)==null?void 0:U.salesPriceAccessibilityLabel}var C,z;if(r==null?0:(C=r.dealsData)==null?0:(z=C.priceDrop)==null?0:z.referencePrice){var O,M;return(r==null?void 0:r.price)+" "+(r==null?void 0:(O=r.dealsData)==null?void 0:(M=O.priceDrop)==null?void 0:M.referencePrice)}return r==null?void 0:r.price}; wJ7=function(y){if(y.C.B("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var t,a,r;return y.Y.sS?null:(t=y.V)==null?void 0:(a=t.bannerData)==null?void 0:(r=a.itemData)==null?void 0:r.vendorName}var E,h,F,x,U,C;return y.Y.sS||y.L.sS||((E=y.V)==null?0:(h=E.bannerData)==null?0:(F=h.itemData)==null?0:F.affiliateDisclaimer)?null:(x=y.V)==null?void 0:(U=x.bannerData)==null?void 0:(C=U.itemData)==null?void 0:C.vendorName}; PkV=function(y,t){tc(y);if(t){var a=g.MD.getState().entities;a=iG(a,"featuredProductsEntity",t);if(a!=null&&a.productsData){t=[];a=g.p(a.productsData);for(var r=a.next();!r.done;r=a.next()){r=r.value;var E=void 0;if((E=r)!=null&&E.identifier&&r.featuredSegments){y.DE.push(r);var h=void 0;E=g.p((h=r)==null?void 0:h.featuredSegments);for(h=E.next();!h.done;h=E.next()){var F=h.value;h=Rgy(F.startTimeSec);h!==void 0&&(F=Rgy(F.endTimeSec),t.push(new g.BK(h*1E3,F===void 0?0x7ffffffffffff:F*1E3,{id:r.identifier, namespace:"featured_product"})))}}}y.C.Xm(t)}}}; yO=function(y){if(y.trendingOfferEntityKey){var t=g.MD.getState().entities;if(t=iG(t,"trendingOfferEntity",y.trendingOfferEntityKey)){var a,r,E;t.encodedSkuId!==((a=y.V)==null?void 0:(r=a.bannerData)==null?void 0:(E=r.itemData)==null?void 0:E.encodedOfferSkuId)?ZO(y):(y.Y.update({trendingOffer:t.shortLabel+" \u2022 "+t.countLabel}),y.Y.show(),y.banner.update({vendor:wJ7(y)}))}else ZO(y)}else ZO(y)}; ZO=function(y){y.Y.hide();y.banner.update({vendor:wJ7(y)})}; xPu=function(y,t){!y.C.B("web_enable_shopping_timely_shelf_client")||y.C.B("web_force_featured_product_banner_with_timely_shelf")||!t||t.isLivePlayback||t.isPremiere?y.badge.element.classList.remove("ytp-timely-shelf-present"):y.badge.element.classList.add("ytp-timely-shelf-present")}; tc=function(y){y.DE=[];y.JR();y.C.g7("featured_product")}; Nw2=function(y){var t,a,r,E,h=(t=y.V)==null?void 0:(a=t.bannerData)==null?void 0:(r=a.itemData)==null?void 0:(E=r.hiddenProductOptions)==null?void 0:E.dropTimestampMs;t=(Number(h)-Date.now())/1E3;y.countdownTimer.setContent(hd({seconds:t}));if(t>0){var F;(F=y.MK)==null||F.start()}}; dP7=function(y){var t;(t=y.MK)==null||t.stop();y.countdownTimer.hide()}; Rgy=function(y){if(y!==void 0&&y.trim()!==""&&(y=Math.trunc(Number(y.trim())),!(isNaN(y)||y<0)))return y}; QJn=function(y,t,a){g.q.call(this,{U:"div",mX:["ytp-info-panel-action-item"],S:[{U:"div",X:"ytp-info-panel-action-item-disclaimer",er:"{{disclaimer}}"},{U:"a",mX:["ytp-info-panel-action-item-button","ytp-button"],T:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},S:[{U:"div",X:"ytp-info-panel-action-item-icon",er:"{{icon}}"},{U:"div",X:"ytp-info-panel-action-item-label",er:"{{label}}"}]}]});this.C=y;this.K=a;this.disclaimer=this.K1("ytp-info-panel-action-item-disclaimer");this.button= this.K1("ytp-info-panel-action-item-button");this.Fm=!1;this.C.createServerVe(this.element,this,!0);this.listen("click",this.onClick);y="";a=g.P(t==null?void 0:t.onTap,VT);var r=g.P(a,g.on);this.Fm=!1;r?(y=r.url||"",y.startsWith("//")&&(y="https:"+y),this.Fm=!0,g.jE(this.button,g.fb(y))):(r=g.P(a,XJ1))&&!this.K?((y=r.phoneNumbers)&&y.length>0?(y="sms:"+y[0],r.messageText&&(y+="?&body="+encodeURI(r.messageText))):y="",this.Fm=!0,g.jE(this.button,g.fb(y,[k3x]))):(a=g.P(a,f07))&&!this.K&&(y=a.phoneNumber? "tel:"+a.phoneNumber:"",this.Fm=!0,g.jE(this.button,g.fb(y,[WNy])));this.C.B("embeds_enable_info_panel_dismissal")&&!y&&(a=g.P(t==null?void 0:t.onTap,VT),r=g.P(a,jJF))&&(this.Fm=!0,this.V=a,this.feedbackToken=r.feedbackToken);var E;if(a=(E=t.disclaimerText)==null?void 0:E.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var h,F;this.update({label:(h=t.bodyText)==null?void 0:h.content,icon:this.C.B("embeds_enable_info_panel_dismissal")?SVz((F=t.icon)== null?void 0:F.iconType):Wz(),disclaimer:a})}else{this.disclaimer.style.display="none";var x,U;this.update({label:(x=t.bodyText)==null?void 0:x.content,icon:this.C.B("embeds_enable_info_panel_dismissal")?SVz((U=t.icon)==null?void 0:U.iconType):Wz()})}this.C.setTrackingParams(this.element,t.trackingParams||null);this.Fm&&(this.Y={externalLinkData:{url:y}})}; SVz=function(y){switch(y){case "OPEN_IN_NEW":return Wz();case "NOT_INTERESTED":return{U:"svg",T:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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 df();default:return Wz()}}; vS7=function(y,t){var a=AG();g.TQ.call(this,y,{U:"div",X:"ytp-info-panel-detail-skrim",S:[{U:"div",X:"ytp-info-panel-detail",T:{role:"dialog",id:a},S:[{U:"div",X:"ytp-info-panel-detail-header",S:[{U:"div",X:"ytp-info-panel-detail-title",er:"{{title}}"},{U:"button",mX:["ytp-info-panel-detail-close","ytp-button"],T:{"aria-label":"Cerrar"},S:[g.Pz()]}]},{U:"div",X:"ytp-info-panel-detail-body",er:"{{body}}"},{U:"div",X:"ytp-info-panel-detail-items"}]}]},250);var r=this;this.V=t;this.items=this.K1("ytp-info-panel-detail-items"); this.K=new g.Ci(this);this.itemData=[];this.Y=a;this.N(this.K1("ytp-info-panel-detail-close"),"click",this.LJ);this.N(this.K1("ytp-info-panel-detail-skrim"),"click",this.LJ);this.N(this.K1("ytp-info-panel-detail"),"click",function(E){E.stopPropagation()}); this.N(this.C,"infopaneldetaildismissed",function(){y.B("embeds_enable_info_panel_dismissal")&&r.LJ()}); g.c(this,this.K);this.C.createServerVe(this.element,this,!0);this.N(y,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",y.getVideoData());this.hide()}; pJN=function(y,t){y=g.p(y.itemData);for(var a=y.next();!a.done;a=y.next())a=a.value,a.C.logVisibility(a.element,t)}; udF=function(y,t){g.q.call(this,{U:"button",X:"ytp-info-panel-preview",T:{"aria-live":"assertive","aria-atomic":"true","aria-owns":t.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.bc(y.G()))},S:[{U:"div",X:"ytp-info-panel-preview-text",er:"{{text}}"},{U:"div",X:"ytp-info-panel-preview-chevron",er:"{{chevron}}"}]});var a=this;this.C=y;this.kJ=this.V=this.videoId=null;this.isDismissed=this.Y=this.showControls=this.K=!1;this.N(this.element,"click",function(){y.logClick(a.element);y.Dr(); ZM(t)}); this.fade=new g.r0(this,250,!1,100);g.c(this,this.fade);this.C.createServerVe(this.element,this,!0);this.N(y,"videodatachange",this.onVideoDataChange);this.N(y,"presentingplayerstatechange",this.v8);this.N(this.C,"paidcontentoverlayvisibilitychange",this.Tw);this.N(this.C,"infopaneldetailvisibilitychange",this.Tw);var r=y.getVideoData()||{};egz(r)&&l0b(this,r);this.N(y,"onShowControls",this.Di);this.N(y,"onHideControls",this.gI);this.N(this.C,"infopaneldetaildismissed",function(){y.B("embeds_enable_info_panel_dismissal")&& (a.isDismissed=!0,a.hide())})}; l0b=function(y,t){if(!t.bX||!y.C.IN()){var a=t.dG||1E4,r=egz(t);y.V?t.videoId&&t.videoId!==y.videoId&&(g.yf(y.V),y.videoId=t.videoId,r?(VAd(y,a,t),y.rV()):(y.LJ(),y.V.dispose(),y.V=null)):r&&(t.videoId&&(y.videoId=t.videoId),VAd(y,a,t),y.rV())}}; egz=function(y){var t,a,r,E;return!!((t=y.XB)==null?0:(a=t.title)==null?0:a.content)||!!((r=y.XB)==null?0:(E=r.bodyText)==null?0:E.content)}; VAd=function(y,t,a){y.V&&y.V.dispose();y.V=new g.Te(y.UZ5,t,y);g.c(y,y.V);var r;t=((r=a.XB)==null?void 0:r.trackingParams)||null;y.C.setTrackingParams(y.element,t);var E;var h,F;if(a==null?0:(h=a.XB)==null?0:(F=h.title)==null?0:F.content){var x;r=(E=a.XB)==null?void 0:(x=E.title)==null?void 0:x.content;var U,C;if((U=a.XB)==null?0:(C=U.bodyText)==null?0:C.content)r+=" \u2022 ";E=r}else E="";var z,O;a=((z=a.XB)==null?void 0:(O=z.bodyText)==null?void 0:O.content)||"";y.update({text:E+a,chevron:g.Rn()})}; nSx=function(y,t){y.V&&(g.D(t,8)?(y.K=!0,y.rV(),y.V.start()):(g.D(t,2)||g.D(t,64))&&y.videoId&&(y.videoId=null))}; aJ=function(y){var t=null;try{t=y.toLocaleString("es-419",{style:"percent"})}catch(a){t=y.toLocaleString(void 0,{style:"percent"})}return t}; rw=function(y,t){var a=0;y=g.p(y);for(var r=y.next();!(r.done||r.value.startTime>t);r=y.next())a++;return a===0?a:a-1}; mPu=function(y,t){for(var a=0,r=g.p(y),E=r.next();!E.done;E=r.next()){E=E.value;if(t=E.timeRangeStartMillis&&t2147483647?"0":String(y)}; hc=function(y,t,a){var r=y.api.getCurrentTime(),E=ccF(y,r);y=ccF(y,r+t);return{startMediaTimeMs:E,endMediaTimeMs:y,seekSource:a}}; qVF=function(y){var t,a=(t=y.api.getVideoData())==null?void 0:t.NP();return y.api.getPresentingPlayerType(a)!==2}; EV=function(y,t){y.Y.U7=t;g.Uz(y.api.getRootNode(),"ytp-probably-keyboard-focus",t);g.Uz(y.contextMenu.element,"ytp-probably-keyboard-focus",t)}; Ac=function(y,t,a,r){var E=g.R4(y.api.gN());if(E&&E.loaded){var h=y.api.getSubtitlesUserSettings();E=void 0;for(var F=0;F0?t[0]:null;var a=g.d4("ytp-chrome-bottom"),r=g.d4("ytp-ad-module");y.Y=!(a==null||!a.contains(t));y.J=!(r==null||!r.contains(t));y.W=!(t==null||!t.hasAttribute("data-tooltip-target-fixed"));return t}; yi7=function(y,t,a){if(!y.D){if(t){y.tooltipRenderer=t;t=y.tooltipRenderer.text;var r=!1,E;(t==null?0:(E=t.runs)==null?0:E.length)&&t.runs[0].text&&(y.update({title:t.runs[0].text.toString()}),r=!0);g.MV(y.title,r);t=y.tooltipRenderer.detailsText;E=!1;var h;if((t==null?0:(h=t.runs)==null?0:h.length)&&t.runs[0].text){r=t.runs[0].text.toString();h=r.indexOf("$TARGET_ICON");if(h>-1)if(y.tooltipRenderer.targetId){t=[];r=r.split("$TARGET_ICON");var F=new g.xr({U:"span",X:"ytp-promotooltip-details-icon", S:[G3V[y.tooltipRenderer.targetId]]});g.c(y,F);for(var x=[],U=g.p(r),C=U.next();!C.done;C=U.next())C=new g.xr({U:"span",X:"ytp-promotooltip-details-component",er:C.value}),g.c(y,C),x.push(C);r.length===2?(t.push(x[0].element),t.push(F.element),t.push(x[1].element)):r.length===1&&(h===0?(t.push(F.element),t.push(x[0].element)):(t.push(x[0].element),t.push(F.element)));h=t.length?t:null}else h=null;else h=r;if(h){if(typeof h!=="string")for(g.pp(y.details),E=g.p(h),h=E.next();!h.done;h=E.next())y.details.appendChild(h.value); else y.update({details:h});E=!0}}g.MV(y.details,E);E=y.tooltipRenderer.acceptButton;h=!1;var z,O,M;((z=g.P(E,g.j7))==null?0:(O=z.text)==null?0:(M=O.runs)==null?0:M.length)&&g.P(E,g.j7).text.runs[0].text&&(y.update({acceptButtonText:g.P(E,g.j7).text.runs[0].text.toString()}),h=!0);g.MV(y.acceptButton,h);z=y.tooltipRenderer.dismissButton;O=!1;var L,w,d;((L=g.P(z,g.j7))==null?0:(w=L.text)==null?0:(d=w.runs)==null?0:d.length)&&g.P(z,g.j7).text.runs[0].text&&(y.update({dismissButtonText:g.P(z,g.j7).text.runs[0].text.toString()}), O=!0);g.MV(y.dismissButton,O)}a&&(y.sourceElement=a);y.V=TwH(y);y.L=!1;y.C.G().B("web_player_hide_nitrate_promo_tooltip")||y.lY(!0);Zg7(y);y.sS&&!y.Z&&(y.Z=!0,y.Wb.VH(0));y.K&&y.C.logVisibility(y.element,y.sS)}}; $S=function(y){y.lY(!1);y.K&&y.C.logVisibility(y.element,y.sS)}; toF=function(y){var t,a,r,E=((t=g.P(y.acceptButton,g.j7))==null?void 0:(a=t.text)==null?void 0:(r=a.runs)==null?void 0:r.length)&&!!g.P(y.acceptButton,g.j7).text.runs[0].text,h,F,x;t=((h=g.P(y.dismissButton,g.j7))==null?void 0:(F=h.text)==null?void 0:(x=F.runs)==null?void 0:x.length)&&!!g.P(y.dismissButton,g.j7).text.runs[0].text;return E||t}; Zg7=function(y){var t;if(!(t=!y.V)){t=y.V;var a=window.getComputedStyle(t);t=a.display==="none"||a.visibility==="hidden"||t.getAttribute("aria-hidden")==="true"}if(t||y.C.isMinimized())y.lY(!1);else if(t=g.LQ(y.V),t.width&&t.height){y.C.R6(y.element,y.V);var r=y.C.ZE().getPlayerSize().height;a=g.LQ(y.K1("ytp-promotooltip-container")).height;y.Y?y.element.style.top=r-a-t.height-12+"px":y.W||(r=y.C.Vm().height-a-t.height-12,y.element.style.top=r+"px");r=y.K1("ytp-promotooltip-pointer");var E=g.zI(y.V, y.C.getRootNode()),h=Number(y.element.style.left.replace(/[^\d\.]/g,""));y=y.C.isFullscreen()?18:12;r.style.left=E.x-h+t.width/2-y+"px";r.style.top=a+"px"}else y.lY(!1)}; UV=function(y){g.q.call(this,{U:"button",mX:["ytp-replay-button","ytp-button"],T:{title:y.B("player_tooltip_data_title_killswitch")?"Volver a reproducir":"","data-tooltip-title":"Volver a reproducir"},S:[g.vz()]});this.C=y;this.N(y,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.UR(y.getPlayerStateObject());u6(this.C,this.element,this)}; Cg=function(y,t){t=t===void 0?240:t;g.q.call(this,{U:"button",mX:["ytp-button","ytp-search-button"],T:{title:y.B("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.bc(y.G()))},S:[{U:"div",X:"ytp-search-icon",er:"{{icon}}"},{U:"div",X:"ytp-search-title",er:"Buscar"}]});this.api=y;this.K=t;this.visible=!1;this.updateValue("icon",{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{U:"path",X:"ytp-svg-fill",T:{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"}}]}); y.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.V();this.N(y,"appresize",this.V);this.N(y,"videodatachange",this.V);u6(y,this.element,this)}; z3=function(y){g.q.call(this,{U:"div",X:"ytp-seek-overlay",S:[{U:"div",mX:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],S:[{U:"div",mX:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],S:[{U:"svg",T:{viewBox:"0 0 22 32",width:"22",height:"24"},S:[{U:"path",T:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{U:"div",X:"ytp-seek-overlay-duration",er:"{{durationBack}}"}]},{U:"div",mX:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],S:[{U:"div",X:"ytp-seek-overlay-duration",er:"{{durationForward}}"},{U:"div",mX:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],S:[{U:"svg",T:{viewBox:"0 0 22 32",width:"22",height:"24"},S:[{U:"path",T:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{U:"div",X:"ytp-seek-overlay-message",S:[{U:"div",X:"ytp-seek-overlay-message-icon",er:"{{icon}}"},{U:"div",X:"ytp-seek-overlay-message-text", er:"{{text}}"}]}]});var t=this;this.C=y;this.L=0;this.V="hidden";this.W=this.K1("ytp-seek-overlay-animation-back");this.Z=this.K1("ytp-seek-overlay-animation-forward");this.AF=this.K1("ytp-seek-overlay-message");this.J=new g.Te(function(){acV(t)},g.Gw(this.C.G().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.c(this,this.J);this.C.createClientVe(this.Z,this,28240);this.C.createClientVe(this.W,this,28239);this.C.logVisibility(this.Z,!0);this.C.logVisibility(this.W,!0);this.hide()}; riN=function(y,t){y.Y=y.D.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:t},{offset:1,opacity:1}],{duration:200,fill:"forwards"});y.Y.addEventListener("finish",function(){y.Y=void 0;y.J.start();y.V="lingering"})}; El1=function(y,t,a,r){a=a===void 0?!1:a;r=r===void 0?!1:r;var E=[];E.push({offset:0,transform:"translateX("+(y.K===-1?20:-20)+"px)",opacity:a?"0":"1"});a&&E.push({offset:.5,opacity:"1"});E.push({offset:1,transform:"translateX(0)",opacity:"1"});a=t.animate(E,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});t=t.querySelector("path");E=[];var h={offset:0,d:y.K===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};r&&(h.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");E.push(h); r&&E.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});y={offset:1,d:y.K===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};r&&(y.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");E.push(y);t.animate(E,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return a}; h17=function(y){var t=y.D.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);t.classList.add("ytp-seek-overlay-arrow-additional");t.classList.remove("ytp-seek-overlay-arrow-persistent");y.D.appendChild(t);El1(y,t,!0,!0).addEventListener("finish",function(){t.remove()})}; acV=function(y,t,a){a=a===void 0?!0:a;y.Y=y.D.animate([{offset:0,opacity:t===void 0?1:t},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});a&&(y.Y.addEventListener("finish",function(){y.Y=void 0;FVy(y);y.hide()}),y.V="fading-out")}; Aix=function(y){var t=Number(getComputedStyle(y.D).opacity),a;(a=y.Y)==null||a.cancel();y.Y=void 0;return t}; FVy=function(y){y.L=0;y.V="hidden";y.K=void 0;y.D=void 0;y.J.stop();y.Y=void 0}; xwu=function(y,t,a){y.updateValue("text",t);if(a){a:{switch(a){case "PREMIUM_STANDALONE":t=F7H();break a;case "PREMIUM_STANDALONE_CAIRO":t=AUu();break a}t=void 0}y.updateValue("icon",t)}t=g.p(y.AF.getAnimations());for(a=t.next();!a.done;a=t.next())a.value.cancel();y.AF.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){y.updateValue("text","");y.updateValue("icon","")})}; OV=function(y,t,a,r){r=r===void 0?240:r;g.q.call(this,{U:"button",mX:["ytp-button","ytp-share-button"],T:{title:y.B("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":a.element.id,"data-tooltip-opaque":String(g.bc(y.G()))},S:[{U:"div",X:"ytp-share-icon",er:"{{icon}}"},{U:"div",X:"ytp-share-title",er:"Compartir"}]});this.api=y;this.V=t;this.K=a;this.Y=r;this.visible=!1;this.tooltip=this.V.q7();y.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.N(y,"videodatachange",this.kG);this.N(y,"videoplayerreset",this.kG);this.N(y,"appresize",this.kG);this.N(y,"presentingplayerstatechange",this.kG);this.kG();this.addOnDisposeCallback(g.l6(this.tooltip,this.element))}; sjd=function(y){var t=y.api.G(),a=y.api.getVideoData(),r=g.bc(t)&&g.Hq(y.api)&&g.D(y.api.getPlayerStateObject(),128);t=t.Y||t.disableSharing&&y.api.getPresentingPlayerType()!==2||!a.showShareButton||a.Aw||r||a.Zh||!1;r=y.api.ZE().getPlayerSize().width;return!!a.videoId&&r>=y.Y&&!t}; $w2=function(y,t){t.name!=="InvalidStateError"&&t.name!=="AbortError"&&(t.name==="NotAllowedError"?(y.V.Dr(),ZM(y.K,y.element,!1)):g.pK(t))}; C97=function(y,t){var a=AG(),r=y.G();a={U:"div",X:"ytp-share-panel",T:{id:AG(),role:"dialog","aria-labelledby":a},S:[{U:"div",X:"ytp-share-panel-inner-content",S:[{U:"div",X:"ytp-share-panel-title",T:{id:a},er:"Compartir"},{U:"a",mX:["ytp-share-panel-link","ytp-no-contextmenu"],T:{href:"{{link}}",target:r.hF,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},er:"{{linkText}}"},{U:"label",X:"ytp-share-panel-include-playlist",S:[{U:"input",X:"ytp-share-panel-include-playlist-checkbox", T:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{U:"div",X:"ytp-share-panel-loading-spinner",S:[RX()]},{U:"div",X:"ytp-share-panel-service-buttons",er:"{{buttons}}"},{U:"div",X:"ytp-share-panel-error",er:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{U:"button",mX:["ytp-share-panel-close","ytp-button"],T:{title:"Cerrar"},S:[g.Pz()]}]};g.TQ.call(this,y,a,250);var E=this;this.moreButton=null;this.api=y;this.tooltip=t.q7();this.K=[];this.D= this.K1("ytp-share-panel-inner-content");this.closeButton=this.K1("ytp-share-panel-close");this.N(this.closeButton,"click",this.LJ);this.addOnDisposeCallback(g.l6(this.tooltip,this.closeButton));this.Y=this.K1("ytp-share-panel-include-playlist-checkbox");this.N(this.Y,"click",this.kG);this.V=this.K1("ytp-share-panel-link");this.addOnDisposeCallback(g.l6(this.tooltip,this.V));this.api.createClientVe(this.V,this,164503);this.N(this.V,"click",function(h){h.preventDefault();E.api.logClick(E.V);var F= E.api.getVideoUrl(!0,!0,!1,!1);F=UwN(E,F);g.MU(F,E.api,h)&&E.api.W4("SHARE_CLICKED")}); this.listen("click",this.zX);this.N(y,"videoplayerreset",this.hide);this.N(y,"fullscreentoggled",this.onFullscreenToggled);this.N(y,"onLoopRangeChange",this.xKE);this.hide()}; LVb=function(y,t){z17(y);for(var a=t.links||t.shareTargets,r=0,E={},h=0;h0&&!b&&!V?(l.length===2&&(l=["noreferrer"]),g.eE(L,d,M,l[0]),L=etu()):(k=v.join(","),Tf()&&L.navigator&&L.navigator.standalone&&M&&M!="_self"?(k=g.SU("A"),g.jE(k,d),k.target=M,e&&(k.rel="noreferrer"),((w=w.attributionsrc)||w==="")&&k.setAttribute("attributionsrc",w),w=document.createEvent("MouseEvent"), w.initMouseEvent("click",!0,!0,L,1),k.dispatchEvent(w),L=etu()):e?(L=g.eE(L,"",M,k),w=g.dI(d),L&&(L.opener=null,w===""&&(w="javascript:''"),w='',w=vW(w),(d=L.document)&&d.write&&(d.write(pb(w)),d.close()))):((L=g.eE(L,d,M,k))&&w.noopener&&(L.opener=null),L&&w.noreferrer&&(L.opener=null)));L&&(L.opener||(L.opener=window),L.focus());O.preventDefault()}}}(E)); E.v0.addOnDisposeCallback(g.l6(y.tooltip,E.v0.element));x==="Facebook"?y.api.createClientVe(E.v0.element,E.v0,164504):x==="Twitter"&&y.api.createClientVe(E.v0.element,E.v0,164505);y.N(E.v0.element,"click",function(z){return function(){y.api.logClick(z.v0.element)}}(E)); y.api.logVisibility(E.v0.element,!0);y.K.push(E.v0);r++}}var U=t.more||t.moreLink,C=new g.q({U:"a",mX:["ytp-share-panel-service-button","ytp-button"],S:[{U:"span",X:"ytp-share-panel-service-button-more",S:[{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{U:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{U:"path",T:{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"}}]}]}],T:{href:U,target:"_blank",title:"M\u00e1s"}});C.listen("click",function(z){var O=U;y.api.logClick(y.moreButton.element);O=UwN(y,O);g.MU(O,y.api,z)&&y.api.W4("SHARE_CLICKED")}); C.addOnDisposeCallback(g.l6(y.tooltip,C.element));y.api.createClientVe(C.element,C,164506);y.N(C.element,"click",function(){y.api.logClick(C.element)}); y.api.logVisibility(C.element,!0);y.K.push(C);y.moreButton=C;y.updateValue("buttons",y.K)}; UwN=function(y,t){var a={};g.bc(y.api.G())&&(g.Pq(y.api,"addEmbedsConversionTrackingParams",[a]),t=g.lJ(t,a));return t}; z17=function(y){for(var t=g.p(y.K),a=t.next();!a.done;a=t.next())a=a.value,a.detach(),g.wQ(a);y.K=[]}; Lg=function(y){return y===void 0||y.startSec===void 0||y.endSec===void 0?!1:!0}; Mo7=function(y,t){y.startSec+=t;y.endSec+=t}; R1F=function(y){CB.call(this,y);this.Y=this.V=this.isContentForward=this.J=!1;this.element.setAttribute("data-overlay-order","8");wiu(this);this.N(this.C,"changeProductsInVideoVisibility",this.baX);this.N(this.C,"videodatachange",this.onVideoDataChange)}; P9y=function(y){y.L&&y.L1.element.removeChild(y.L.element);y.L=void 0}; dw7=function(y,t){return t.map(function(a){var r,E;if((a=(r=g.P(a,NC7))==null?void 0:(E=r.thumbnail)==null?void 0:E.thumbnails)&&a.length!==0)return a[0].url}).filter(function(a){return a!==void 0}).map(function(a){a=new g.q({U:"img", X:"ytp-suggested-action-product-thumbnail",T:{alt:"",src:a}});g.c(y,a);return a})}; Xi1=function(y,t){y.isContentForward=t;g.Uz(y.badge.element,"ytp-suggested-action-badge-content-forward",t)}; MP=function(y){var t=y.isContentForward&&!y.HX();g.Uz(y.badge.element,"ytp-suggested-action-badge-preview-collapsed",t&&y.V);g.Uz(y.badge.element,"ytp-suggested-action-badge-preview-expanded",t&&y.Y)}; ww=function(y,t,a){return new g.BK(y*1E3,t*1E3,{priority:9,namespace:a})}; kgN=function(y){y.C.g7("shopping_overlay_visible");y.C.g7("shopping_overlay_preview_collapsed");y.C.g7("shopping_overlay_preview_expanded");y.C.g7("shopping_overlay_expanded")}; wiu=function(y){y.N(y.C,g.q4("shopping_overlay_visible"),function(){y.Ii(!0)}); y.N(y.C,g.Ya("shopping_overlay_visible"),function(){y.Ii(!1)}); y.N(y.C,g.q4("shopping_overlay_expanded"),function(){y.Vv=!0;Uk(y)}); y.N(y.C,g.Ya("shopping_overlay_expanded"),function(){y.Vv=!1;Uk(y)}); y.N(y.C,g.q4("shopping_overlay_preview_collapsed"),function(){y.V=!0;MP(y)}); y.N(y.C,g.Ya("shopping_overlay_preview_collapsed"),function(){y.V=!1;MP(y)}); y.N(y.C,g.q4("shopping_overlay_preview_expanded"),function(){y.Y=!0;MP(y)}); y.N(y.C,g.Ya("shopping_overlay_preview_expanded"),function(){y.Y=!1;MP(y)})}; jj7=function(y){g.q.call(this,{U:"div",X:"ytp-shorts-title-channel",S:[{U:"a",X:"ytp-shorts-title-channel-logo",T:{href:"{{channelLink}}",target:y.G().hF,"aria-label":"{{channelLogoLabel}}"}},{U:"div",X:"ytp-shorts-title-expanded-heading",S:[{U:"div",X:"ytp-shorts-title-expanded-title",S:[{U:"a",er:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:y.G().hF,tabIndex:"0"}}]}]}]});var t=this;this.api=y;this.V=this.K1("ytp-shorts-title-channel-logo");this.channelName=this.K1("ytp-shorts-title-expanded-title"); this.subscribeButton=null;y.createClientVe(this.V,this,36925);this.N(this.V,"click",function(a){t.api.logClick(t.V);g.eE(window,fc7(t));a.preventDefault()}); y.createClientVe(this.channelName,this,37220);this.N(this.channelName,"click",function(a){t.api.logClick(t.channelName);g.eE(window,fc7(t));a.preventDefault()}); WVx(this);this.N(y,"videodatachange",this.kG);this.N(y,"videoplayerreset",this.kG);this.kG()}; WVx=function(y){if(!y.api.G().FB){var t=y.api.getVideoData(),a=new g.iC("Suscribirse",null,"Suscrito/a",null,!0,!1,t.CD,t.subscribed,"channel_avatar",null,y.api,!0);y.api.createServerVe(a.element,y);var r;y.api.setTrackingParams(a.element,((r=t.subscribeButtonRenderer)==null?void 0:r.trackingParams)||null);y.N(a.element,"click",function(){y.api.logClick(a.element)}); y.subscribeButton=a;g.c(y,y.subscribeButton);y.subscribeButton.g0(y.element)}}; fc7=function(y){var t=y.api.G(),a=y.api.getVideoData();a=g.M0(t)+a.yv;if(!g.bc(t))return a;t={};g.Pq(y.api,"addEmbedsConversionTrackingParams",[t]);return g.lJ(a,t)}; RJ=function(y){g.TQ.call(this,y,{U:"button",mX:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{U:"div",X:"ytp-skip-intro-button-text",er:"Omitir introducci\u00f3n"}]},100);var t=this;this.K=!1;this.V=new g.Te(function(){t.hide()},5E3); this.cL=this.ZH=NaN;g.c(this,this.V);this.W=function(){t.show()}; this.D=function(){t.hide()}; this.Y=function(){var a=t.C.getCurrentTime();a>t.ZH/1E3&&a0?{U:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},S:[{U:"path",mX:["ytp-circle-arrow","ytp-svg-fill"],T:{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"}}, {U:"text",mX:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"7.05",y:"15.05"}}]}:{U:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},S:[{U:"path",mX:["ytp-circle-arrow","ytp-svg-fill"],T:{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"}}, {U:"text",mX:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"6.5",y:"15"}}]}]});var a=this;this.C=y;this.V=t;this.K=new g.Te(function(){a.Y?(a.Y=!1,a.K.start()):a.element.classList.remove("ytp-jump-spin","backwards")},250); this.Y=!1;(t=t>0)?this.C.createClientVe(this.element,this,36843):this.C.createClientVe(this.element,this,36844);var r=g.ts(t?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.V).toString()});this.C.B("player_tooltip_data_title_killswitch")?this.update({title:r,"data-title-no-tooltip":r,"aria-keyshortcuts":t?"\u2192":"\u2190"}):this.update({"tooltip-title":r,"data-title-no-tooltip":r,"aria-keyshortcuts":t?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text"); this.D.textContent=Math.abs(this.V).toString();this.listen("click",this.onClick,this);u6(y,this.element,this)}; Vod=function(y,t){t?y.element.classList.add("ytp-jump-button-enabled"):y.element.classList.remove("ytp-jump-button-enabled");y.C.logVisibility(y.element,t);y.C.jJ()}; WJ=function(y,t){NP.call(this,y,t,"timedMarkerCueRange","Ver momentos clave");this.N(y,g.Ya("timedMarkerCueRange"),this.QD);this.N(y,"updatemarkervisibility",this.updateVideoData)}; nlz=function(y){var t,a=(t=y.C.getVideoData())==null?void 0:t.L1;if(a)for(y=y.D.JF,a=g.p(a),t=a.next();!t.done;t=a.next())if(t=y[t.value]){var r=void 0,E=void 0,h=void 0;if(((r=t.onTap)==null?void 0:(E=r.innertubeCommand)==null?void 0:(h=E.changeEngagementPanelVisibilityAction)==null?void 0:h.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return t}}; jA=function(y){g.q.call(this,{U:"button",mX:["ytp-miniplayer-button","ytp-button"],T:{title:y.B("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"},S:["{{icon}}"]});this.C=y;this.visible=!1;this.listen("click",this.onClick);this.N(y,"fullscreentoggled",this.kG);this.C.B("player_tooltip_data_title_killswitch")? this.update({title:g.V$(y,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:mwx(this)}):this.update({"tooltip-title":g.V$(y,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:mwx(this)});u6(y,this.element,this);y.createClientVe(this.element,this,62946);this.kG()}; mwx=function(y){return y.C.B("delhi_modern_web_player_icons")?yUN():jw()}; SA=function(y,t,a,r,E,h){h=h===void 0?!1:h;var F={U:"div",mX:["ytp-input-slider-section"],S:[{U:"input",X:"ytp-input-slider",T:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};E&&F.S.unshift(E);h&&F.mX.push("ytp-vertical-slider");g.q.call(this,F);this.Y=y;this.L=t;this.W=a;this.initialValue=r;this.header=E;this.K=this.K1("ytp-input-slider"); this.V=r?r:y;this.init();this.N(this.K,"input",this.D);this.N(this.K,"keydown",this.J)}; QO=function(y,t){y.V=t;y.update({slidervalue:y.V,ariaValueNow:y.V});y.K.valueAsNumber=y.V;JiF(y,t)}; JiF=function(y,t){y.K.style.setProperty("--yt-slider-shape-gradient-percent",(t-y.Y)/(y.L-y.Y)*100+"%")}; vJ=function(y){var t=y.isMuted()?0:y.getVolume();SA.call(this,0,100,1,t,void 0,!0);this.C=y;this.AF=Kp(this.o5,10,this);this.Z=!1;this.N(y,"onVolumeChange",this.onVolumeChange);this.N(this.element,"wheel",this.Vv)}; oln=function(y,t){g.q.call(this,{U:"div",T:{tabindex:"0",title:y.B("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},mX:["ytp-volume-popover"]});var a=this;this.isVisible=!1;this.tooltip=t.q7();this.K=new vJ(y);g.c(this,this.K);this.K.g0(this.element);this.V=new g.Te(function(){pg(a,!1)},300); this.listen("mouseenter",function(){a.V.stop()}); this.listen("mouseleave",function(){a.V.start()}); this.listen("focus",function(){a.V.stop()}); this.N(this.K.K,"focus",function(){a.V.stop()}); this.listen("focusout",function(){a.V.start();a.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.l6(t.q7(),this.element));g.c(this,this.V)}; pg=function(y,t){y.element.classList.toggle("ytp-volume-popover-hovering",t);y.isVisible=t;(y=y.element.closest(".ytp-chrome-bottom"))&&y.classList.toggle("ytp-volume-popover-showing",t)}; eA=function(y,t,a){a=a===void 0?!1:a;var r=y.G().L1?{"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:y.B("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};r=y.B("delhi_modern_web_player")?{U:"div",X:"ytp-mute-button",S:[{U:"button",T:r,mX:["ytp-volume-icon", "ytp-button"],er:"{{icon}}"}]}:{U:"button",mX:["ytp-mute-button","ytp-button"],T:r,S:[{U:"div",X:"ytp-volume-icon",er:"{{icon}}"}]};g.q.call(this,r);this.C=y;this.Ff=a;this.K=null;this.J=this.o5=this.Z=this.W=NaN;this.d0=this.AF=null;this.L=[];this.D=[];this.visible=!1;this.Y=this.V=this.Vv=null;y.B("delhi_modern_web_player")&&this.update({"data-priority":4});a=this.C.G();this.updateValue("icon",lx());this.tooltip=t.q7();this.updateValue("dataTooltipOffsetY",0);this.Y=g.d4("ytp-volume-icon",this.element); r=this.C.B("delhi_modern_web_player_icons")?{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",mX:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{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"}},{U:"path",X:"ytp-svg-volume-animation-small-ripple",T:{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"}},{U:"path",X:"ytp-svg-volume-animation-big-ripple",T:{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"}}]}:{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"defs",S:[{U:"clipPath",T:{id:"ytp-svg-volume-animation-mask"},S:[{U:"path",T:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{U:"path",T:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{U:"path",X:"ytp-svg-volume-animation-mover",T:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{U:"clipPath",T:{id:"ytp-svg-volume-animation-slash-mask"},S:[{U:"path",X:"ytp-svg-volume-animation-mover", T:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{U:"path",oR:!0,mX:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{"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"}},{U:"path",oR:!0,mX:["ytp-svg-fill","ytp-svg-volume-animation-hider"],T:{"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.K=new g.xr(r);g.c(this,this.K);this.AF=this.K.K1("ytp-svg-volume-animation-speaker");this.d0=this.AF.getAttribute("d");this.L=g.Rs("ytp-svg-volume-animation-mover",this.K.element);this.C.B("delhi_modern_web_player_icons");this.D=g.Rs("ytp-svg-volume-animation-hider",this.K.element);this.C.B("delhi_modern_web_player_icons");this.L1=new H9;g.c(this,this.L1);this.DE=new H9;g.c(this,this.DE);this.N(y,"appresize",this.uR);this.N(y,"onVolumeChange",this.onVolumeChange);y.B("delhi_modern_web_player")? this.listen("click",this.ETv):this.listen("click",this.pS);a.L1?(y.B("delhi_modern_web_player")&&!y.B("delhi_modern_web_player_horizontal_volume_controls")&&(this.V=new oln(y,t),this.V.g0(this.element),g.c(this,this.V),this.N(this.Y,"mouseover",this.lR),this.N(this.Y,"focus",this.lR),this.N(this.Y,"mouseout",this.zb),this.N(this.Y,"blur",this.zb)),a=y.B("delhi_modern_web_player")?this.Y:this.element,this.addOnDisposeCallback(g.l6(t.q7(),a))):HCu(this);this.message=null;y.createClientVe(this.element, this,28662);this.uR(y.ZE().getPlayerSize());this.setVolume(y.getVolume(),y.isMuted())}; bCH=function(y,t){if(y.C.G().L1){var a=g.V$(y.C,"Silenciar","m"),r=g.V$(y.C,"Activar sonido","m");a=t?r:a;y.C.G().B("player_tooltip_data_title_killswitch")?y.updateValue("title",a):y.update({"tooltip-title":a,"aria-label":a});y.update({"data-title-no-tooltip":t?"Activar sonido":"Silenciar"});y.tooltip.jJ()}}; qGy=function(y,t){y.W=t;var a=y.d0;y.C.B("delhi_modern_web_player_icons")?y.K.K1("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(t+") translate(-22,-12)")):t&&(a+=H1V(BCz,ciy,t));y.AF.setAttribute("d",a)}; YGu=function(y,t){var a;t===1?a=y.C.B("delhi_modern_web_player_icons")?{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:lx():a=y.K;y.o5=t;if(y.C.B("delhi_modern_web_player_icons"))y.K.K1("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-t+") translate(-18,-12)")),y.K.K1("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(y.W-t+") translate(-22, -12)"));else{for(var r=20*t,E=0;E=3&&y.C.getPresentingPlayerType()!==2}; TCx=function(y){var t=o9(y.C.gN());return t?y.V?t.hasNext():t.hasPrevious():!1}; iCx=function(y){var t={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},a=y.playlist!=null&&y.playlist.hasNext();a=g.Hq(y.C)&&(!y.V||a);var r=y.V&&g.Y6(y.C),E=TCx(y),h=y.V&&y.C.getPresentingPlayerType()===5,F=g.V$(y.C,"Siguiente","SHIFT+n"),x=g.V$(y.C,"Anterior","SHIFT+p");if(h)t.title="Iniciar video",t["tooltip-title"]="Iniciar video";else if(y.Y)t.title="Volver a reproducir",t["tooltip-title"]="Volver a reproducir"; else if(a){var U=null;y.playlist&&(U=g.sl(y.playlist,y.V?ey2(y.playlist):lpu(y.playlist)));if(U){if(U.videoId){var C=y.playlist.listId;t.url=y.C.G().getVideoUrl(U.videoId,C?C.toString():void 0)}t.text=U.title;t.duration=U.lengthText?U.lengthText:U.lengthSeconds?g.kZ(U.lengthSeconds):null;t.preview=U.Qs("mqdefault.jpg")}y.V?(t.title=F,t["tooltip-title"]=F,t["data-title-no-tooltip"]="Siguiente",t["aria-keyshortcuts"]="SHIFT+n"):(t.title=x,t["tooltip-title"]=x,t["data-title-no-tooltip"]="Anterior",t["aria-keyshortcuts"]= "SHIFT+p")}else if(r){if(x=(U=y.videoData)==null?void 0:g.Ou(U))t.url=x.MU(),t.text=x.title,t.duration=x.lengthText?x.lengthText:x.lengthSeconds?g.kZ(x.lengthSeconds):null,t.preview=x.Qs("mqdefault.jpg");t.title=F;t["tooltip-title"]=F;t["data-title-no-tooltip"]="Siguiente";t["aria-keyshortcuts"]="SHIFT+n"}t.disabled=!r&&!a&&!E&&!h;y.update(t);y.J=!!t.url;r||a||y.Y||E||h?y.K||(y.K=g.l6(y.tooltip,y.element),y.L=y.listen("click",y.onClick,y)):y.K&&(y.K(),y.K=null,y.Dh(y.L),y.L=null);y.tooltip.jJ();g.Uz(y.element, "ytp-playlist-ui",y.V&&(a||y.C.B("web_hide_next_button")))}; glb=function(y,t){return y?t?tbF():kr():t?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:xex()}; ZCn=function(y,t){g.q.call(this,{U:"div",X:"ytp-fine-scrubbing",S:[{U:"div",X:"ytp-fine-scrubbing-draggable",S:[{U:"div",X:"ytp-fine-scrubbing-thumbnails",T:{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}}"}}]},{U:"div",T:{"aria-hidden":"true"},X:"ytp-fine-scrubbing-cursor"},{U:"div", X:"ytp-fine-scrubbing-seek-time",T:{"aria-hidden":"true"},er:"{{seekTime}}"},{U:"div",X:"ytp-fine-scrubbing-play",S:[y.B("delhi_modern_web_player_icons")?QV():Sw()],T:{title:"Reproducir desde este momento",role:"button"}},{U:"div",X:"ytp-fine-scrubbing-dismiss",S:[g.Pz()],T:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var a=this;this.api=y;this.L=this.K1("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.K1("ytp-fine-scrubbing-dismiss");this.o5=this.K1("ytp-fine-scrubbing-draggable"); this.playButton=this.K1("ytp-fine-scrubbing-play");this.thumbnails=[];this.K=[];this.Ff=this.V=0;this.L1=void 0;this.AF=NaN;this.yv=this.Z=this.Y=this.W=0;this.D=[];this.interval=this.frameCount=0;this.J=160;this.scale=1;this.C1=0;this.isEnabled=this.d0=!1;Gg7(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.l6(t,this.dismissButton));this.addOnDisposeCallback(g.l6(t,this.playButton));this.DE=new g.SQ(this.o5,!0);this.DE.subscribe("dragstart",this.n9,this);this.DE.subscribe("dragmove",this.EF, this);this.DE.subscribe("dragend",this.Yz,this);this.N(y,"SEEK_COMPLETE",this.xz);y.B("web_fix_fine_scrubbing_false_play")&&this.N(y,"rootnodemousedown",function(r){a.Vv=r}); this.L.addEventListener("keydown",function(){}); g.c(this,this.DE);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.L,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; Gg7=function(y,t){var a=g.kZ(t),r=g.ts("Saltar a: $PROGRESS",{PROGRESS:g.kZ(t,!0)});y.update({ariamin:0,ariamax:Math.floor(y.api.getDuration()),arianow:Math.floor(t),arianowtext:r,seekTime:a})}; yAz=function(y){y.AF=NaN;y.Z=0;y.W=y.Y}; rAN=function(y){var t=y.api.Un();if(t){var a=90*y.scale,r=T5(t,160*y.scale);if(t=t.levels[r]){y.J=t.width;if(!y.D.length){r=[];for(var E=G5(t,t.EP()),h=t.columns*t.rows,F=t.frameCount,x=0;x<=E;x++)for(var U=Fy.D.length;)r= void 0,(r=y.thumbnails.pop())==null||r.dispose();for(;y.thumbnails.lengtha.length;)r=void 0,(r=y.K.pop())==null||r.dispose(); for(;y.K.length-a?-t/a*y.interval*.5:-(t+a/2)/a*y.interval}; EgN=function(y){return-((y.L.offsetWidth||(y.frameCount-1)*y.J*y.scale)-y.V/2)}; tHb=function(){g.q.call(this,{U:"div",X:"ytp-fine-scrubbing-thumbnail"})}; aU7=function(){g.q.call(this,{U:"div",X:"ytp-fine-scrubbing-chapter-title",S:[{U:"div",X:"ytp-fine-scrubbing-chapter-title-content",er:"{{chapterTitle}}"}]})}; FDN=function(y){g.q.call(this,{U:"div",X:"ytp-heat-map-chapter",S:[{U:"svg",X:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},S:[{U:"defs",S:[{U:"clipPath",T:{id:"{{id}}"},S:[{U:"path",X:"ytp-heat-map-path",T:{d:"",fill:"white"}}]},{U:"linearGradient",T:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},S:[{U:"stop",T:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{U:"stop",T:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{U:"rect",X:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{U:"rect",X:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{U:"rect",X:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{U:"path",X:"ytp-modern-heat-map",T:{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=y;this.W=this.K1("ytp-heat-map-svg");this.L=this.K1("ytp-heat-map-path");this.D=this.K1("ytp-heat-map-graph");this.J=this.K1("ytp-heat-map-play");this.V=this.K1("ytp-heat-map-hover");this.Y=this.K1("ytp-modern-heat-map");this.Fm=!1;this.K=60;y=""+g.nI(this);this.update({id:y});y="url(#"+y+")";this.D.setAttribute("clip-path",y);this.J.setAttribute("clip-path",y);this.V.setAttribute("clip-path",y)}; AAd=function(y,t){t>0&&(y.K=t,y.W.style.height=y.K+"px")}; ng=function(){g.q.call(this,{U:"div",X:"ytp-chapter-hover-container",S:[{U:"div",X:"ytp-progress-bar-padding"},{U:"div",X:"ytp-progress-list",S:[{U:"div",mX:["ytp-play-progress","ytp-swatch-background-color"]},{U:"div",X:"ytp-progress-linear-live-buffer"},{U:"div",X:"ytp-load-progress"},{U:"div",X:"ytp-hover-progress"},{U:"div",X:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.K=this.K1("ytp-progress-list");this.L=this.K1("ytp-progress-linear-live-buffer"); this.D=this.K1("ytp-ad-progress-list");this.J=this.K1("ytp-load-progress");this.W=this.K1("ytp-play-progress");this.Y=this.K1("ytp-hover-progress");this.V=this.K1("ytp-chapter-hover-container")}; mN=function(y,t){g.ry(y.V,"width",t)}; xa1=function(y,t){g.ry(y.V,"margin-right",t+"px")}; sCb=function(){this.K=this.position=this.Y=this.V=this.D=this.width=NaN}; $ax=function(){g.q.call(this,{U:"div",X:"ytp-timed-marker"});this.V=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.oJ=function(y,t){g.Ui.call(this,{U:"div",X:"ytp-progress-bar-container",T:{"aria-disabled":"true"},S:[{U:"div",mX:["ytp-heat-map-container"],S:[{U:"div",X:"ytp-heat-map-edu"}]},{U:"div",mX:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{U:"div",X:"ytp-chapters-container"},{U:"div",X:"ytp-timed-markers-container"}, {U:"div",X:"ytp-clip-start-exclude"},{U:"div",X:"ytp-clip-end-exclude"},{U:"div",X:"ytp-scrubber-container",S:[{U:"div",mX:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{U:"div",X:"ytp-scrubber-pull-indicator"},{U:"img",mX:["ytp-decorated-scrubber-button"]}]}]}]},{U:"div",mX:["ytp-fine-scrubbing-container"],S:[{U:"div",X:"ytp-fine-scrubbing-edu"}]},{U:"div",X:"ytp-bound-time-left",er:"{{boundTimeLeft}}"},{U:"div",X:"ytp-bound-time-right",er:"{{boundTimeRight}}"},{U:"div",X:"ytp-clip-start", T:{title:"{{clipstarttitle}}"},er:"{{clipstarticon}}"},{U:"div",X:"ytp-clip-end",T:{title:"{{clipendtitle}}"},er:"{{clipendicon}}"}]});this.api=y;this.mp=!1;this.Ri=this.Aw=this.T7=this.o5=this.J=this.SQ=0;this.GR=null;this.TR=!1;this.r0={};this.nJ={};this.clipEnd=Infinity;this.sR=this.K1("ytp-clip-end");this.RR=new g.SQ(this.sR,!0);this.pM=this.K1("ytp-clip-end-exclude");this.cj=this.K1("ytp-clip-start-exclude");this.clipStart=0;this.ZA=this.K1("ytp-clip-start");this.oo=new g.SQ(this.ZA,!0);this.AF= this.zl=0;this.progressBar=this.K1("ytp-progress-bar");this.MK={};this.JF={};this.n1=this.K1("ytp-chapters-container");this.G0=this.K1("ytp-timed-markers-container");this.V=[];this.W=[];this.Xz={};this.Wy=null;this.L1=-1;this.FB=this.Ff=0;this.ix=this.Z=null;this.Bz=this.K1("ytp-scrubber-button");this.DE=this.K1("ytp-decorated-scrubber-button");this.XE=this.K1("ytp-scrubber-container");this.I7=new g.Em;this.MP=0;this.NC=new sCb;this.Y=new uI(0,0);this.DA=null;this.L=this.Wl=!1;this.T0=null;this.Vv= this.K1("ytp-heat-map-container");this.P1=this.K1("ytp-heat-map-edu");this.D=[];this.heatMarkersDecorations=[];this.Az=this.K1("ytp-fine-scrubbing-container");this.uK=this.K1("ytp-fine-scrubbing-edu");this.K=void 0;this.yv=this.ND=this.C1=!1;this.tooltip=t.q7();this.addOnDisposeCallback(g.l6(this.tooltip,this.sR));g.c(this,this.RR);this.RR.subscribe("hoverstart",this.p7,this);this.RR.subscribe("hoverend",this.bC,this);this.N(this.sR,"click",this.qt);this.addOnDisposeCallback(g.l6(this.tooltip,this.ZA)); g.c(this,this.oo);this.oo.subscribe("hoverstart",this.p7,this);this.oo.subscribe("hoverend",this.bC,this);this.N(this.ZA,"click",this.qt);Uab(this);this.N(y,"resize",this.Gl);this.N(y,"presentingplayerstatechange",this.Cp);this.N(y,"videodatachange",this.eP);this.N(y,"videoplayerreset",this.IEu);this.N(y,"cuerangesadded",this.aPF);this.N(y,"cuerangesremoved",this.NPG);this.N(y,"onLoopRangeChange",this.bR);this.N(y,"innertubeCommand",this.onClickCommand);this.N(y,"onRetroModeChanged",this.si0);this.N(y, g.q4("timedMarkerCueRange"),this.p1r);this.N(y,"updatemarkervisibility",this.HN);this.N(y,"serverstitchedvideochange",this.y91);this.updateVideoData(y.getVideoData(),!0);this.bR(y.getLoopRange());Jc(this)&&!this.K&&(this.K=new ZCn(this.api,this.tooltip),y=g.CQ(this.element).x||0,this.K.Gl(y,this.J),this.K.g0(this.Az),g.c(this,this.K),this.N(this.K.dismissButton,"click",this.Cf),this.N(this.K.playButton,"click",this.vc),this.N(this.K.element,"dblclick",this.vc));this.api.createClientVe(this.Vv,this, 139609,!0);this.api.createClientVe(this.P1,this,140127,!0);this.api.createClientVe(this.uK,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; Uab=function(y){if(y.V.length===0){var t=new ng;y.V.push(t);g.c(y,t);t.g0(y.n1,0)}for(;y.V.length>1;)y.V.pop().dispose();mN(y.V[0],"100%");y.V[0].startTime=0;y.V[0].title=""}; C07=function(y){var t=t===void 0?NaN:t;var a=new FDN(y.api);y.D.push(a);g.c(y,a);a.g0(y.Vv);t>=0&&(a.element.style.width=t+"px")}; zdy=function(y){for(;y.W.length;)y.W.pop().dispose()}; LDF=function(y){var t,a,r,E,h;return(h=g.P((E=g.P((t=y.getWatchNextResponse())==null?void 0:(a=t.playerOverlays)==null?void 0:(r=a.playerOverlayRenderer)==null?void 0:r.decoratedPlayerBarRenderer,bK))==null?void 0:E.playerBar,Omu))==null?void 0:h.chapters}; MHF=function(y){for(var t=y.V,a=[],r=0;r=F&&d<=z&&h.push(M)}U>0&&(y.Vv.style.height=U+"px");F=y.D[r];z=h;M=E;w=U;d=r===0;d=d===void 0?!1:d;AAd(F,w);O=z;L=F.K;d=d===void 0?!1:d;var k=1E3/O.length,e=[];e.push({x:0,y:100});for(var v=0;v0&&(a=h[h.length-1])}g.HJ(y);x=[];t=g.p(t.heatMarkersDecorations||[]);for(E=t.next();!E.done;E=t.next())if(E=g.P(E.value,k7x))U=E.label,r=a=C=void 0,x.push({visibleTimeRangeStartMillis:(C=E.visibleTimeRangeStartMillis)!=null?C:-1,visibleTimeRangeEndMillis:(a=E.visibleTimeRangeEndMillis)!=null?a:-1,decorationTimeMillis:(r=E.decorationTimeMillis)!=null?r:NaN,label:U?g.Oi(U):""});y.heatMarkersDecorations=x}}; P07=function(y,t){y.W.push(t);g.c(y,t);t.g0(y.G0,y.G0.children.length)}; WDV=function(y){return ku[A[3]](this,2,y)}; NoV=function(y,t){t=g.p(t);for(var a=t.next();!a.done;a=t.next()){a=a.value;var r=bk(y,a.timeRangeStartMillis/(y.Y.V*1E3),BJ(y)),E=y.api.B("delhi_modern_web_player")?.667:.6;g.ry(a.element,"transform","translateX("+r+"px) scaleX("+E+")")}}; wfu=function(y,t){var a=0,r=!1;t=g.p(t);for(var E=t.next();!E.done;E=t.next()){E=E.value;if(g.P(E,jCb)){E=g.P(E,jCb);var h={startTime:NaN,title:null,onActiveCommand:void 0},F=E.title;h.title=F?g.Oi(F):"";F=E.timeRangeStartMillis;F!=null&&(h.startTime=F);h.onActiveCommand=E.onActiveCommand;E=h;a===0&&E.startTime!==0&&(y.V[a].startTime=0,y.V[a].title="",y.V[a].onActiveCommand=E.onActiveCommand,a++,r=!0);y.V.length<=a&&(h=new ng,y.V.push(h),g.c(y,h),h.g0(y.n1,y.n1.children.length));y.V[a].startTime= E.startTime;y.V[a].title=E.title?E.title:"";y.V[a].onActiveCommand=E.onActiveCommand;y.V[a].index=r?a-1:a}a++}for(;a=0;r--)if(y.V[r].width>0){xa1(y.V[r],0);var E=Math.floor(y.V[r].width);y.V[r].width=E;mN(y.V[r],E+"px");break}y.V[a].width=0;mN(y.V[a],"0")}else a===y.V.length-1?(r=Math.floor(y.V[a].width+t),y.V[a].width=r,mN(y.V[a],r+"px")):(t=y.V[a].width+t,r=Math.round(t),t-=r,y.V[a].width=r,mN(y.V[a],r+"px"));a=0;if(y.D.length===y.V.length)for(t=0;t< y.D.length;t++)r=y.V[t].width,y.D[t].element.style.width=r+"px",y.D[t].element.style.left=a+"px",a+=r+qP(y);y.api.B("delhi_modern_web_player")&&(y.V.length===1?y.V[0].K.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(y.V[0].K.classList.remove("ytp-progress-bar-end"),y.V[0].K.classList.add("ytp-progress-bar-start"),y.V[y.V.length-1].K.classList.add("ytp-progress-bar-end")))}; Sc7=function(y,t){var a=0,r=!1,E=y.V.length,h=y.Y.V*1E3;h===0&&(h=y.api.getProgressState().seekableEnd*1E3);if(h>0&&y.J>0){for(var F=y.J-qP(y)*y.Ff,x=y.FB===0?3:F*y.FB,U=g.p(y.V),C=U.next();!C.done;C=U.next())C.value.width=0;for(;a1);C=(h===0?0:U/h*F)+y.V[a].width;if(C>x)y.V[a].width=C;else{y.V[a].width=0;var z=y,O=a,M=z.V[O-1];M!==void 0&&M.width>0? M.width+=C:Oy.FB&&(y.FB=U/h),r=!0)}a++}}return r}; cJ=function(y){if(y.J){var t=y.api.getProgressState(),a=y.api.getVideoData();if(!(a&&a.enableServerStitchedDai&&a.oH)||isFinite(t.current)){var r;if(((r=y.api.getVideoData())==null?0:$6(r))&&t.airingStart&&t.airingEnd)var E=YS(y,t.airingStart,t.airingEnd);else if(y.api.getPresentingPlayerType()===2){var h,F,x;E=(a=(E=y.api.getVideoData())==null?void 0:(h=E.getPlayerResponse())==null?void 0:(F=h.playerConfig)==null?void 0:(x=F.webPlayerConfig)==null?void 0:x.skippableAdProgressBarDuration)?YS(y,t.seekableStart, a/1E3):YS(y,t.seekableStart,t.seekableEnd)}else E=YS(y,t.seekableStart,t.seekableEnd);h=Va(E,t.loaded,0);t=Va(E,t.current,0);F=y.Y.K!==E.K||y.Y.V!==E.V;y.Y=E;D0(y,t,h);F&&QCH(y);vgn(y);t=48;E=y.api.G();h=g.Gw(y.api.G().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");h=y.api.B("delhi_modern_web_player_compact_controls")||h>0&&y.api.getPlayerSize().width<=h;y.api.B("delhi_modern_web_player")?t=y.api.getPlayerSize().width<=528?h?56:64:y.L?h?72:96:h?56:72:y.L?t=54:g.bc(E)&& !E.K&&(t=40);y.o5=t}}}; YS=function(y,t,a){return pfV(y)?new uI(Math.max(t,y.DA.startTimeMs/1E3),Math.min(a,y.DA.endTimeMs/1E3)):new uI(t,a)}; lUx=function(y,t){var a,r,E;t=g.P((a=t.getWatchNextResponse())==null?void 0:(r=a.playerOverlays)==null?void 0:(E=r.playerOverlayRenderer)==null?void 0:E.decoratedPlayerBarRenderer,bK);if(t==null?0:t.progressColor)for(a=0;a1){a=gw(y,t.Y,!0);for(var r=0,E=0;E0&&(r+=y.V[E].width,r+=qP(y));a=(y.V[a].startTime+(t.Y-r)/y.V[a].width*((a===y.V.length-1?y.Y.V*1E3:y.V[a+1].startTime)-y.V[a].startTime))/1E3||0}return a}; VH7=function(y,t){if(t<0)return"0";y=Math.floor(Math.min(t,y.api.getDuration())*1E3);return y>2147483647?"0":String(y)}; Kg=function(y,t,a,r,E){t=VH7(y,t);a=VH7(y,a);y=y.progressBar.visualElement;r={seekData:{startMediaTimeMs:t,endMediaTimeMs:a,seekSource:r}};(t=g.XE())&&rf(t,y,E,r)}; ngb=function(y,t,a){if(a>=y.V.length)return!1;var r=y.J-qP(y)*y.Ff;return Math.abs(t-y.V[a].startTime/1E3)/y.Y.V*r<4}; QCH=function(y){y.Bz.style.removeProperty("height");for(var t=g.p(Object.keys(y.r0)),a=t.next();!a.done;a=t.next())may(y,a.value);IJ(y);D0(y,y.AF,y.zl)}; BJ=function(y){var t=y.I7.x;t=g.tE(t,0,y.J);y.NC.update(t,y.J);return y.NC}; D0=function(y,t,a){y.AF=t;y.zl=a;var r=BJ(y),E=y.Y.V,h=BB7(y.Y,y.AF),F=g.ts("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.kZ(h,!0),DURATION:g.kZ(E,!0)}),x=rw(y.V,h*1E3);x=y.V[x].title;y.update({ariamin:Math.floor(y.Y.K),ariamax:Math.floor(E),arianow:Math.floor(h),arianowtext:x?x+" "+F:F});E=y.clipStart;h=y.clipEnd;y.DA&&y.api.getPresentingPlayerType()!==2&&(E=y.DA.startTimeMs/1E3,h=y.DA.endTimeMs/1E3);E=Va(y.Y,E,0);x=Va(y.Y,h,1);F=y.api.getVideoData();h=g.tE(t,E,x);a=(F==null?0:g.AP(F))?1:g.tE(a, E,x);t=bk(y,t,r);g.ry(y.XE,"transform","translateX("+t+"px)");y.api.B("delhi_modern_web_player")&&y.api.B("delhi_modern_web_player_cutout")&&JAn(y,t);T3(y,r,E,h,"PLAY_PROGRESS");(F==null?0:$6(F))?(t=y.api.getProgressState().seekableEnd)&&T3(y,r,h,Va(y.Y,t),"LIVE_BUFFER"):T3(y,r,E,a,"LOAD_PROGRESS");if(y.api.B("web_player_heat_map_played_bar")){var U;(U=y.D[0])!=null&&U.J.setAttribute("width",(h*100).toFixed(2)+"%")}}; JAn=function(y,t){y.api.getPresentingPlayerType()!==1?y.n1.style.removeProperty("clip-path"):(t||(t=bk(y,y.AF,BJ(y))),y.n1.style.clipPath='path("'+(y.TR?ogu(y,8,t,y.L?50:36,0,6):ogu(y,4,t,y.L?34:24,2,3))+'")')}; ogu=function(y,t,a,r,E,h){var F=a-r/2;a+=r/2;t+=E;return"M 0 "+E+" L 0 "+(t+" L ")+(F+" "+t+" C ")+(F+h+" "+t+" "+(F+h)+" "+E+" "+F+" "+E+" L 0 ")+(E+" M ")+(a+" "+E+" L ")+(y.J+" "+E+" L ")+(y.J+" "+t+" L ")+(a+" "+t+" C ")+(a-h+" "+t+" "+(a-h)+" "+E+" "+a+" "+E)}; T3=function(y,t,a,r,E){var h=y.V.length,F=t.V-y.Ff*qP(y),x=a*F;a=gw(y,x);var U=r*F;F=gw(y,U);E==="HOVER_PROGRESS"&&(F=gw(y,t.V*r,!0),U=t.V*r-Hmd(y,t.V*r)*qP(y));r=Math.max(x-bmb(y,a),0);for(x=a;x=y.V.length)return y.J;for(var a=0,r=0;r0||y.pM.clientWidth>0?(h=t.clientWidth/a,y=-1*y.cj.clientWidth/a):(h/=a,y=-1*y.V[E].element.offsetLeft/a),g.ry(t,"background-size",h+"px"),g.ry(t,"background-position-x",y+"px"))}; G3=function(y,t,a,r,E){E||y.api.G().K?t.style.width=a+"px":g.ry(t,"transform","scalex("+(r?a/r:0)+")")}; gw=function(y,t,a){var r=0;(a===void 0?0:a)&&(t-=Hmd(y,t)*qP(y));a=g.p(y.V);for(var E=a.next();!E.done;E=a.next()){E=E.value;if(t>E.width)t-=E.width;else break;r++}return r===y.V.length?r-1:r}; bk=function(y,t,a){var r=t*y.Y.V*1E3;for(var E=-1,h=g.p(y.V),F=h.next();!F.done;F=h.next())F=F.value,r>F.startTime&&F.width>0&&E++;r=E<0?0:E;E=a.V-qP(y)*y.Ff;return t*E+qP(y)*r+a.D}; Hmd=function(y,t){for(var a=y.V.length,r=0,E=g.p(y.V),h=E.next();!h.done;h=E.next())if(h=h.value,h.width!==0)if(t>h.width)t-=h.width,t-=qP(y),r++;else break;return r===a?a-1:r}; g.qcy=function(y,t,a,r){var E=y.J!==a,h=y.L!==r;y.SQ=t;y.J=a;y.L=r;Jc(y)&&(t=y.K)!=null&&(t.scale=r?1.5:1);QCH(y);y.V.length===1&&(y.V[0].width=a||0);E&&g.HJ(y);y.K&&h&&Jc(y)&&(y.K.isEnabled&&(a=y.L?135:90,r=a-y.o5,y.Az.style.height=a+"px",g.ry(y.Vv,"transform","translateY("+-r+"px)"),g.ry(y.progressBar,"transform","translateY("+-r+"px)")),rAN(y.K))}; IJ=function(y){var t=!!y.DA&&y.api.getPresentingPlayerType()!==2,a=y.clipStart,r=y.clipEnd,E=!0,h=!0;t&&y.DA?(a=y.DA.startTimeMs/1E3,r=y.DA.endTimeMs/1E3):(E=a>y.Y.K,h=y.Y.V>0&&ry.AF);g.Uz(y.Bz,"ytp-scrubber-button-hover",a===r&&y.V.length>1);if(y.api.B("web_player_heat_map_played_bar")){var h;(h=y.D[0])!=null&&h.V.setAttribute("width",(t.K*100).toFixed(2)+"%")}}}; may=function(y,t){var a=y.r0[t];t=y.nJ[t];var r=BJ(y),E=Va(y.Y,a.start/1E3,0),h=F9y(a,y.L)/r.width;var F=Va(y.Y,a.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(E=g.tE(E,0,F-h));F=Math.min(F,E+h);a.color&&(t.style.background=a.color);a=E;t.style.left=Math.max(a*r.V+r.D,0)+"px";G3(y,t,g.tE((F-a)*r.V+r.D,0,r.width),r.width,!0)}; Ycz=function(y,t){var a=t.getId();y.r0[a]===t&&(g.uv(y.nJ[a]),delete y.r0[a],delete y.nJ[a])}; Jc=function(y){var t=g.xp(y.api.G())&&(y.api.B("web_shorts_pip")||y.api.B("web_watch_pip")),a;return!((a=y.api.getVideoData())==null?0:a.isLivePlayback)&&!y.api.isMinimized()&&!y.api.isInline()&&(!y.api.L$()||!t)}; Z0=function(y){y.K&&(y.K.disable(),y.T7=0,y.Vv.style.removeProperty("transform"),y.progressBar.style.removeProperty("transform"),y.Az.style.removeProperty("height"),y.element.parentElement&&y.element.parentElement.style.removeProperty("height"))}; Dax=function(y,t){var a=t/((y.L?135:90)-y.o5)*y.o5;g.ry(y.progressBar,"transform","translateY("+-t+"px)");g.ry(y.Vv,"transform","translateY("+-t+"px)");g.ry(y.Az,"transform","translateY("+a+"px)");y.Az.style.height=t+a+"px";y.element.parentElement&&(y.element.parentElement.style.height=y.o5-a+"px")}; ggz=function(y,t){t?y.Z||(y.element.removeAttribute("aria-disabled"),y.Z=new g.SQ(y.progressBar,!0),y.api.B("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&y.Z.subscribe("hoverstart",y.Xje,y),y.Z.subscribe("hovermove",y.N7X,y),y.Z.subscribe("hoverend",y.WW0,y),y.Z.subscribe("dragstart",y.pj4,y),y.Z.subscribe("dragmove",y.RM7,y),y.Z.subscribe("dragend",y.T77,y),y.api&&y.api.B("delhi_modern_web_player")&&y.api.B("delhi_modern_web_player_cutout")&&(y.ix=new g.SQ(y.progressBar, !0),y.ix.subscribe("hoverstart",function(){y.TR=!0;JAn(y)},y),y.ix.subscribe("hoverend",function(){y.TR=!1; JAn(y)},y)),y.T0=y.listen("keydown",y.MC)):y.Z&&(y.element.setAttribute("aria-disabled","true"),y.Dh(y.T0),y.Z.cancel(),y.Z.dispose(),y.Z=null)}; qP=function(y){return y.api.B("delhi_modern_web_player")?4:y.L?3:2}; pfV=function(y){var t;return!((t=y.DA)==null||!t.postId)&&y.api.getPresentingPlayerType()!==2}; yE=function(y,t){g.q.call(this,{U:"button",mX:["ytp-remote-button","ytp-button"],T:{title:y.B("player_tooltip_data_title_killswitch")?"Reproducir en el televisor":"","data-tooltip-title":"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},er:"{{icon}}"});this.C=y;this.OS=t;this.V=null;this.N(y,"onMdxReceiversChange",this.kG);this.N(y,"presentingplayerstatechange",this.kG);this.N(y,"appresize",this.kG);y.createClientVe(this.element,this,139118);this.kG();this.listen("click",this.K, this);u6(y,this.element,this)}; ti=function(y,t){g.q.call(this,{U:"button",mX:["ytp-button","ytp-settings-button"],T:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":AG(),title:y.B("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},S:[y.B("delhi_modern_web_player_icons")?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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.pL()]});this.C=y;this.OS=t;this.K=!0;this.listen("click",this.Y);this.N(y,"onPlaybackQualityChange",this.updateBadge);this.N(y,"videodatachange",this.updateBadge);this.N(y,"webglsettingschanged",this.updateBadge);this.N(y,"appresize",this.V);u6(y,this.element,this);this.C.createClientVe(this.element,this,28663);this.updateBadge();this.V(y.ZE().getPlayerSize())}; imx=function(y,t){y.K=!!t;y.V(y.C.ZE().getPlayerSize())}; aj=function(y,t,a){if(y.B("web_add_footer_template_to_audio_track")){var r="Edita tus $BEGIN_LINKidiomas preferidos$END_LINK en la configuraci\u00f3n".split(/\$(BEGIN|END)_LINK/);r={U:"div",X:"ytp-panel-footer-content",S:[r[0],{U:"a",X:"ytp-panel-footer-content-link",T:{href:"/account_playback"},er:r[2]},r[4]]}}g.fB.call(this,"Pista de audio",g.NU.AUDIO,y,t,void 0,void 0,r);this.C=y;this.V=a;this.tracks={};g.Al(this.element,"ytp-audio-menu-item");this.countLabel=new g.q({U:"div",S:[{U:"span",er:"Pista de audio"}, {U:"span",X:"ytp-menuitem-label-count",er:"{{content}}"}]});y.B("web_settings_menu_icons")&&!this.C.B("html5_enable_new_audio_settings_menu")&&(t=y.B("delhi_modern_web_player_icons")?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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(t));g.c(this,this.countLabel);g.tX(this,this.countLabel);y.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.N(y,"videodatachange",this.kG);this.N(y,"onPlaybackAudioChange",this.kG);this.kG()}; KDz=function(y,t){g.aX.call(this,g.rL({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.NU.BN);this.C=y;this.OS=t;g.Al(this.element,"ytp-audio-settings-menu-item");this.aR=new g.Ok(y,void 0,"Audio");this.countLabel=new g.q({U:"div",S:[{U:"span",er:"Audio"},{U:"span",X:"ytp-menuitem-label-count",er:"{{content}}"}]});y.B("web_settings_menu_icons")&&this.setIcon({U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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.Cg=new aj(y,this.OS,this);g.c(this,this.Cg);this.N(y,"settingsMenuInitialized",this.MD.bind(this));this.N(y,"videodatachange",this.MD.bind(this));g.c(this,this.countLabel);g.tX(this,this.countLabel);this.OS.NK(this);this.N(y,"onPlaybackAudioChange",this.AV);this.listen("keydown",this.MC);this.listen("click",this.open)}; rC=function(y,t){zq.call(this,"Reproducci\u00f3n autom\u00e1tica",g.NU.rC);this.C=y;this.OS=t;this.V=!1;this.K=[];this.N(y,"presentingplayerstatechange",this.MD);this.subscribe("select",this.onSelect,this);y.createClientVe(this.element,this,113682);this.MD()}; IUn=function(y,t){g.aX.call(this,g.rL({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.C=y;this.OS=t;this.N(this.element,"click",this.onClick);this.OS.NK(this)}; To1=function(y,t){var a;g.xp(y.G())&&(a={U:"div",X:"ytp-panel-footer-content",S:[{U:"span",er:"Ajusta la calidad de descarga en la "},{U:"a",X:"ytp-panel-footer-content-link",er:"Configuraci\u00f3n",T:{href:"/account_downloads"}}]});g.fB.call(this,"Calidad",g.NU.Th,y,t,void 0,void 0,a);this.C=y;this.AF={};this.J={};this.K={};this.Vv=new Set;this.V=this.Y=!1;this.D="unknown";this.W="";this.Z=new g.YX;g.c(this,this.Z);this.Y=this.C.B("web_player_use_new_api_for_quality_pullback");this.V=this.C.B("web_player_enable_premium_hbr_playback_cap"); y.B("web_settings_menu_icons")&&(t=y.B("delhi_modern_web_player_icons")?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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(t));g.Al(this.aR.element,"ytp-quality-menu");this.N(y,"videodatachange",this.MD);this.N(y,"videoplayerreset",this.MD);this.N(y,"onPlaybackQualityChange",this.pY);this.MD();y.createClientVe(this.element,this,137721)}; Zmb=function(y,t,a){var r=y.AF[t],E=g.jt[t];return G7y(y,r?r.qualityLabel:E?E+"p":"Autom\u00e1tica",t,a)}; ye1=function(y,t,a,r,E){var h=(t=y.V?y.K[t]:y.J[t])&&t.quality,F=t&&t.qualityLabel;F=F?F:"Autom\u00e1tica";r&&(F="("+F);y=G7y(y,F,h||"",E);r&&y.S.push(")");(r=(r=t&&t.paygatedQualityDetails)&&r.paygatedIndicatorText)&&a&&y.S.push({U:"div",X:"ytp-premium-label",er:r});return y}; G7y=function(y,t,a,r){t={U:"span",mX:r,S:[t]};var E;r="ytp-swatch-color";if(y.Y||y.V)r="ytp-swatch-color-white";a==="highres"?E="8K":a==="hd2880"?E="5K":a==="hd2160"?E="4K":a.indexOf("hd")===0&&a!=="hd720"&&(E="HD");E&&(t.S.push(" "),t.S.push({U:"sup",X:r,er:E}));return t}; EG=function(y){SA.call(this,y.getAvailablePlaybackRates()[0],y.getAvailablePlaybackRates()[y.getAvailablePlaybackRates().length-1],.05,y.getPlaybackRate(),{U:"div",X:"ytp-speedslider-indicator-container",S:[{U:"div",X:"ytp-speedslider-badge"},{U:"p",X:"ytp-speedslider-text"}]});this.C=y;this.AF=Kp(this.o5,50,this);g.Al(this.K,"ytp-speedslider");this.Z=this.K1("ytp-speedslider-text");this.Vv=this.K1("ytp-speedslider-badge");tJd(this);this.N(this.K,"change",this.DE)}; tJd=function(y){y.Z.textContent=y.V.toFixed(2)+"x";var t=y.V>2&&y.C.B("enable_web_premium_varispeed");y.Vv.classList.toggle("ytp-speedslider-premium-badge",t);y.Vv.setAttribute("aria-label",t?"Premium":"")}; hi=function(y,t,a,r,E,h,F){g.q.call(this,{U:"div",X:"ytp-slider-section",T:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{U:"div",X:"ytp-slider",S:[{U:"div",X:"ytp-slider-handle"}]}]});this.W=y;this.Z=t;this.K=a;this.Y=r;this.AF=E;this.d0=h;this.range=this.Y-this.K;this.L1=this.K1("ytp-slider-section");this.D=this.K1("ytp-slider");this.Vv=this.K1("ytp-slider-handle");this.J=new g.SQ(this.D, !0);this.V=F?F:a;g.c(this,this.J);this.J.subscribe("dragmove",this.gM,this);this.N(this.element,"keydown",this.Dm);this.N(this.element,"wheel",this.dM);this.init()}; g.C7=function(y,t){return y2[A[3]](this,32,y,t)}; Fy=function(y){hi.call(this,.05,.05,y.getAvailablePlaybackRates()[0],y.getAvailablePlaybackRates()[y.getAvailablePlaybackRates().length-1],150,20,y.getPlaybackRate());this.C=y;this.L=g.SU("P");this.DE=Kp(this.o5,50,this);g.Al(this.D,"ytp-speedslider");g.Al(this.L,"ytp-speedslider-text");y=this.L;var t=this.D;t.parentNode&&t.parentNode.insertBefore(y,t.nextSibling);a2u(this);this.N(this.C,"onPlaybackRateChange",this.updateValues)}; a2u=function(y){y.L.textContent=red(y,y.V)+"x"}; red=function(y,t){y=Number(g.tE(t,y.K,y.Y).toFixed(2));t=Math.floor((y+.001)*100%5+2E-15);var a=y;t!==0&&(a=y-t*.01);return Number(a.toFixed(2))}; EVN=function(y){g.Ui.call(this,{U:"div",X:"ytp-speedslider-component"});y.B("web_settings_use_input_slider")?this.V=new EG(y):this.V=new Fy(y);g.c(this,this.V);this.element.appendChild(this.V.element)}; hN7=function(y){var t=new EVN(y);z2.call(this,y,t,"Personalizada");g.c(this,t)}; Ae7=function(y,t){var a=new hN7(y);g.fB.call(this,"Velocidad de reproducci\u00f3n",g.NU.oZ,y,t,Ai(y)?void 0:"Personalizada",Ai(y)?void 0:function(){g.wm(t,a)}); var r=this;this.u8=new g.q({U:"div",X:"ytp-menuitem-premium-badge",T:{"aria-label":"Premium"}});this.K=!1;this.Wb={lLf:function(){return r.wv}}; g.c(this,a);this.qq=new EG(y);g.c(this,this.qq);if(y.B("web_settings_menu_icons")){var E=y.B("delhi_modern_web_player_icons")?a42():{U:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(E)}this.C=y;this.K=!1;this.D=null;Ai(y)?(this.V=g.ts("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.C.getPlaybackRate().toString()}),this.Y=this.C.getPlaybackRate()):this.Y=this.V=null;g.c(this,this.u8);var h,F,x,U;this.iD=(h=this.C.getVideoData())==null?void 0:(F=h.getWatchNextResponse())==null?void 0:(x=F.playerOverlays)==null?void 0:(U=x.playerOverlayRenderer)==null?void 0:U.showPlaybackRateUpsellPanelCommand;FgN(y,this.iD)?(this.hw=xl(4),this.C.createClientVe(this.u8.element, this,273508)):this.hw=null;this.C.B("enable_web_premium_varispeed_upsell")&&this.C.createClientVe(this.element,this,278479);this.wv=this.C.getAvailablePlaybackRates();this.N(y,"presentingplayerstatechange",this.kG);var C;((C=this.C.getVideoData())==null?0:C.NP())&&this.N(y,"serverstitchedvideochange",this.kG);this.N(y,"videodatachange",this.onVideoDataChange);this.N(this.qq.K,"change",function(){r.K=!0;r.kG()}); this.kG()}; x1y=function(y,t){var a=xl(t);y.V&&(y.K||t===y.Y)?(y.uq(y.V),y.setContent(t.toString())):y.uq(a)}; $1V=function(y){var t=y.wv.map(xl);y.hw&&t.push(y.hw);y.nL(t);y.V=null;y.Y=null;t=y.C.getPlaybackRate();Ai(y.C)&&svu(y,t);!y.wv.includes(t)||y.K?y.uq(y.V):y.uq(xl(t))}; svu=function(y,t){y.Y=t;y.V=g.ts("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:t.toString()});t=y.wv.map(xl);t.unshift(y.V);y.hw&&t.push(y.hw);y.nL(t)}; xl=function(y){return y.toString()}; Ai=function(y){return y.B("web_settings_menu_surface_custom_playback")}; FgN=function(y,t){return!!t&&y.getAvailablePlaybackRates()[y.getAvailablePlaybackRates().length-1]<=2}; U1H=function(y){return y.B("web_settings_menu_surface_custom_playback")&&y.B("web_settings_use_input_slider")}; zNN=function(y,t){g.Ok.call(this,y,void 0,"Velocidad de reproducci\u00f3n");this.OS=t;this.XC=null;this.u8=new g.q({U:"div",X:"ytp-menuitem-premium-badge",T:{"aria-label":"Premium"}});this.wv=this.C.getAvailablePlaybackRates();g.c(this,this.u8);var a,r,E,h;this.iD=(a=this.C.getVideoData())==null?void 0:(r=a.getWatchNextResponse())==null?void 0:(E=r.playerOverlays)==null?void 0:(h=E.playerOverlayRenderer)==null?void 0:h.showPlaybackRateUpsellPanelCommand;t=this.C;this.iD&&t.getAvailablePlaybackRates()[t.getAvailablePlaybackRates().length- 1]<=2?(this.hw=CZb(4),this.C.createClientVe(this.u8.element,this,273508)):this.hw=null;this.N(y,"presentingplayerstatechange",this.kG);var F;((F=this.C.getVideoData())==null?0:F.NP())&&this.N(y,"serverstitchedvideochange",this.kG);this.kG()}; OO7=function(y,t,a,r){if(t===y.hw)return y.KV(t,a,r);a=new g.aX({U:"div",mX:["ytp-menuitem"],T:{tabindex:"0",role:"menuitemradio","aria-checked":r?"true":"false"},S:[{U:"div",X:"ytp-menuitem-label",er:"{{label}}"}]},a,y.Ve(t));a.listen("click",function(){y.JL(t)}); return a}; CZb=function(y){return y.toString()}; Lgn=function(y){var t=new EG(y),a=new g.q({U:"div",X:"ytp-variable-speed-panel-slider-container",S:[t]}),r=new g.q({U:"div",X:"ytp-variable-speed-panel-content",S:[a]}),E=new g.Ui({U:"div"});E.element.appendChild(r.element);z2.call(this,y,E,"Velocidad de reproducci\u00f3n");this.qq=t;g.c(this,this.qq);g.c(this,a);g.c(this,r);g.c(this,E);this.N(y,"onPlaybackRateChange",this.onPlaybackRateChange);this.onPlaybackRateChange(y.getPlaybackRate())}; sG=function(y,t){g.fB.call(this,"Velocidad de reproducci\u00f3n",g.NU.oZ,y,t);this.C=y;y.B("web_settings_menu_icons")&&this.setIcon(a42());this.K(y.getPlaybackRate());this.N(y,"onPlaybackRateChange",this.K);this.N(y,"presentingplayerstatechange",this.V);var a;((a=this.C.getVideoData())==null?0:a.NP())&&this.N(y,"serverstitchedvideochange",this.V);this.V()}; wnu=function(y,t,a,r){var E=new g.Ok(t,void 0,"Anulaci\u00f3n de video");g.fB.call(this,r.text||"",y,t,a,"Anulaci\u00f3n de video",function(){g.wm(a,E)}); var h=this;g.Al(this.element,"ytp-subtitles-options-menu-item");this.setting=r.option.toString();y=r.options;this.settings=g.RM(y,this.XR,this);this.Y=E;g.c(this,this.Y);t=new g.aX({U:"div",X:"ytp-menuitemtitle",er:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.c(this,t);this.Y.NK(t,!0);this.K=new g.aX({U:"div",X:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},S:[{U:"div",X:"ytp-menuitem-label",er:"S\u00ed"}]},-1);g.c(this,this.K);this.Y.NK(this.K, !0);this.N(this.K.element,"click",function(){MJH(h,!0)}); this.V=new g.aX({U:"div",X:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},S:[{U:"div",X:"ytp-menuitem-label",er:"No"}]},-2);g.c(this,this.V);this.Y.NK(this.V,!0);this.N(this.V.element,"click",function(){MJH(h,!1)}); this.nL(g.v$(y,this.XR))}; MJH=function(y,t){y.publish("settingChange",y.setting+"Override",!t);y.OS.C$()}; $l=function(y,t){g.Ok.call(this,y,void 0,"Opciones");var a=this;this.tI={};for(var r=0;r=350)}; pn7=function(y,t,a){var r=Math.floor(t),E=r+"% volumen"+(a?" silenciado":"");a=a?0:t/100;y.updateValue("valuenow",r);y.updateValue("valuetext",E);r=y.Y?78:52;E=!y.api.B("delhi_modern_web_player")&&y.Y?18:12;y.Vv.style.left=(r-E)*a+"px";y.volume=t}; um7=function(y,t){g.Uz(y.element,"ytp-volume-control-hover",t);wC(y,t,y.isDragging,y.K,y.api.Qb())}; wC=function(y,t,a,r,E){var h=y.V||y.isDragging||y.K||y.Qb;y.V=t;y.isDragging=a;y.K=r;y.Qb=E;t=y.V||y.isDragging||y.K||y.Qb;h!==t&&(t?y.L=y.N(y.element,"wheel",y.FQ):(y.Dh(y.L),y.L=null),g.Uz(y.J,"ytp-volume-slider-active",t))}; Rj=function(y,t){var a=y.G(),r=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];a.Y&&r.push("no-link");var E={title:y.B("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:a.hF,"data-priority":"6","data-sessionlink":"feature=player-button"};a.Y||(E.href="{{url}}");g.q.call(this,{U:"a",mX:r,T:E,er:"{{logoSvg}}"});this.V=null;this.api=y;this.visible=!1;a.Y||(this.V=this.listen("click",this.onClick));this.N(y,"videodatachange",this.onVideoDataChange); this.N(y,"videoplayerreset",this.onVideoDataChange);this.N(y,"onLoopRangeChange",this.onVideoDataChange);this.N(y,"appresize",this.Gl);this.onVideoDataChange();a.Y||this.addOnDisposeCallback(g.l6(t.q7(),this.element));this.Gl()}; nVx=function(y,t,a){g.Ci.call(this);var r=this;this.C=y;this.o5=t;this.kT=a;this.T7=NaN;this.Vv=this.C1=this.playButton=this.D=this.L=this.yv=this.L1=this.AF=this.hF=this.muteButton=this.W=this.r0=this.z_=this.R5=null;this.Y=new XnV(this.C);this.progressBar=new g.oJ(this.C,this.o5);this.XL=new g.OG(this.C,this.o5);this.JF=new lcx(this.C,this.o5);this.Z=new g.If(this.Ld,null,this);a=y.G();this.kT.subscribe("autohideupdate",this.Od,this);var E=!y.getPlayerStateObject().isCued(),h;(this.Az=!y.B("delhi_modern_web_player")&& y.G().B("html5_player_dynamic_bottom_gradient"))?this.r0=h=new QjF(y):h=new g.q({U:"div",X:"ytp-gradient-bottom"});g.c(this,h);g.q$(y,h.element,9);this.d0=new g.r0(h,250,E,100);g.c(this,this.d0);this.V=new g.q({U:"div",X:"ytp-chrome-bottom",S:[{U:"div",X:"ytp-chrome-controls"}]});g.c(this,this.V);g.q$(y,this.V.element,9);this.DE=new g.r0(this.V,250,E,100);g.c(this,this.DE);this.Ff=this.V.element.children[0];g.c(this,this.Y);g.q$(y,this.Y.element,6);this.Y.subscribe("show",function(C){r.C.sA(!C);y.CP(r.Y, C)}); g.c(this,this.progressBar);this.progressBar.g0(this.V.element,0);E=new kS(y,t);g.c(this,E);g.q$(y,E.element,4);E=new g.xr({U:"div",X:"ytp-left-controls"});g.c(this,E);E.g0(this.Ff);y.B("delhi_modern_web_player")||(h=new g.uk(y,t,!1),g.c(this,h),h.g0(E.element));y.B("web_render_jump_buttons")&&(this.hF=new fg(y,-10),g.c(this,this.hF),this.hF.g0(E.element));a.yv||(this.playButton=new g.lk(y,t),g.c(this,this.playButton),this.playButton.g0(E.element));y.B("web_render_jump_buttons")&&(this.AF=new fg(y, 10),g.c(this,this.AF),this.AF.g0(E.element));y.B("delhi_modern_web_player_remove_nav_buttons")||(y.B("delhi_modern_web_player")&&(h=new g.uk(y,t,!1),g.c(this,h),h.g0(E.element)),h=new g.uk(y,t,!0),g.c(this,h),h.g0(E.element));if(!y.B("delhi_modern_web_player")||y.B("delhi_modern_web_player_horizontal_volume_controls"))if(h=new g.q({U:"span",X:"ytp-volume-area"}),g.c(this,h),h.g0(E.element),!a.nJ&&(this.muteButton=new eA(y,t),g.c(this,this.muteButton),this.muteButton.g0(h.element),a.L1&&!a.W)){var F= new eN7(y,this.V.element);this.C1=F;g.c(this,F);F.g0(h.element);h=new g.SQ(h.element);g.c(this,h);h.subscribe("hoverstart",function(){var C;(C=r.C1)==null||um7(C,!0)}); h=new g.SQ(E.element);g.c(this,h);h.subscribe("hoverend",function(){var C;(C=r.C1)==null||um7(C,!1)})}y.B("delhi_modern_web_player_lhs_volume_controls")&&!y.B("delhi_modern_web_player_horizontal_volume_controls")&&(E.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new eA(y,t),g.c(this,this.muteButton),this.muteButton.g0(E.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.c(this,this.XL);this.XL.g0(E.element);this.L1=new dw(y,this.progressBar);g.c(this,this.L1);this.L1.g0(E.element);a.B("web_key_moments_markers")&&(this.yv=new WJ(y,this.progressBar),g.c(this,this.yv),this.yv.g0(E.element));y.B("delhi_modern_web_player")?this.K=new g.xr({U:"div",X:"ytp-right-controls",S:[{U:"div",X:Pi.RIGHT_CONTROLS_LEFT},{U:"div",X:Pi.RIGHT_CONTROLS_RIGHT}]}):this.K=new g.xr({U:"div",X:"ytp-right-controls"});g.c(this,this.K);this.K.g0(this.Ff);y.B("delhi_modern_web_player")&&(this.W= new Xd(y),g.c(this,this.W),this.W.g0(this.K.K1(Pi.RIGHT_CONTROLS_LEFT)),y.B("delhi_modern_web_player_lhs_volume_controls")||y.B("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new eA(y,t),g.c(this,this.muteButton),this.muteButton.g0(this.K.K1(Pi.RIGHT_CONTROLS_LEFT))));this.n1=new Wgu(y,t);g.c(this,this.n1);Nw(this,this.n1,"RIGHT_CONTROLS_LEFT");this.settingsButton=new ti(y,this.Y);g.c(this,this.settingsButton);kY2(this.Y,this.settingsButton);Nw(this,this.settingsButton,"RIGHT_CONTROLS_LEFT"); E=y.getVideoData();if(a.OE||E.Zh&&a.controlsType==="1")this.L=new Rj(y,t),g.c(this,this.L),this.L.g0(this.K.element);a.showMiniplayerButton&&!y.B("web_player_miniplayer_in_context_menu")&&(this.D=new jA(y),g.c(this,this.D),Nw(this,this.D,"RIGHT_CONTROLS_RIGHT"));a.G0&&(t=new yE(y,this.Y),g.c(this,t),Nw(this,t,"RIGHT_CONTROLS_RIGHT"));a.EQ&&(t=new PJ(y),g.c(this,t),Nw(this,t,"RIGHT_CONTROLS_RIGHT"));g.c(this,this.JF);Nw(this,this.JF,"RIGHT_CONTROLS_RIGHT");g.c(this,this.Z);this.N(y,"appresize",this.Gl); this.N(y,"fullscreentoggled",this.Gl);var x;(x=this.W)==null||x.subscribe("small-mode-expand-right-bottom-controls",function(){VJH(r)}); var U;(U=this.W)==null||U.subscribe("small-mode-collapse-right-bottom-controls",function(){VJH(r)}); this.N(y,"presentingplayerstatechange",this.qb);this.N(y,"videodatachange",this.onVideoDataChange);this.Gl()}; VJH=function(y){y.V.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",y.W.isExpanded())}; m1y=function(y,t){y.C.getPlayerStateObject().isCued()||t?t&&(y.DE.hide(),y.d0.hide(),y.muteButton&&y.muteButton.Au(!1),y.L&&y.L.Au(!1),y.D&&y.D.Au(!1),y.C.pD(y.YE())):t||(y.DE.show(),y.d0.show(),y.muteButton&&y.muteButton.Au(!0),y.L&&y.L.Au(!0),y.D&&y.D.Au(!0),y.Od())}; oVu=function(y){var t=y.C.ZE().getPlayerSize().width;return Math.max(t-Jez(y)*2,100)}; Jez=function(y){if(y.C.B("web_player_rtr_ctrls")&&y.C.ZE().Wr)return 0;var t=y.C.KA(),a=y.C.getVideoData().Zh,r=0;y.C.KA()&&y.C.isEmbedsShortsMode()&&(r=(y.C.ZE().getPlayerSize().width-y.C.getVideoContentRect().width)/2);return 12*(a?0:t?2:1)+r}; HOx=function(y){var t=y.C.KA()?72:50,a=y.C.G();g.xp(a)&&(a.B("delhi_modern_web_player")?(t=g.Gw(a.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),t=y.C.B("delhi_modern_web_player_compact_controls")||t>0&&y.C.getPlayerSize().width<=t,t=y.C.KA()?112:t?70:78,y.C.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(y=getComputedStyle(y.C.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||"36px",t+=Number(y.replace("px","")))):t=62,g.g9(a)&&(t=54));return t}; Nw=function(y,t,a){y.C.B("delhi_modern_web_player")?t.g0(y.K.K1(Pi[a])):t.g0(y.K.element)}; Brb=function(y){CB.call(this,y,!1);var t=this;this.suggestedActions={};this.V=null;this.Y=!1;this.V=Pj(282639);this.element.setAttribute("data-overlay-order","7");this.N(this.C,"videodatachange",this.onVideoDataChange);this.N(this.C,g.q4("suggested_action_button_visible"),function(a){bOV(t,a.id);t.enabled=!0;t.Ii()}); this.N(this.C,g.Ya("suggested_action_button_visible"),function(a){t.enabled=!1;t.Ii();t.C.removeCueRange(a.id)}); this.N(y,"presentingplayerstatechange",this.onStateChange)}; bOV=function(y,t){y.text=t;KMn(y);var a;y.onClickCommand=(a=y.suggestedActions[t])==null?void 0:a.tapCommand}; ceN=function(y){y.suggestedActions={};y.C.g7("suggested_action_button_visible");y.Y=!1}; Xy=function(y){g.q.call(this,{U:"div",X:dC.TITLE,S:[{U:"div",mX:[dC.TEXT,y.B("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],S:[{U:"a",mX:[dC.LINK,dC.SESSIONLINK],T:{target:y.G().hF,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},er:"{{title}}"},{U:"div",X:dC.SUBTEXT,S:["{{subtextElement}}"]}]}]});this.api=y;this.V=null;this.link=this.K1(dC.LINK);y.createClientVe(this.element,this,23851);this.N(y,"videodatachange",this.kG); this.N(y,"videoplayerreset",this.kG);this.kG()}; q8V=function(y){y.updateValue("channelLink","");y.updateValue("channelName","");g.g9(y.api.G())||y.api.B("enable_channel_title_always_focusable")?y.updateValue("channelTitleFocusable","0"):y.updateValue("channelTitleFocusable","-1")}; g.kl=function(y,t){g.q.call(this,{U:"div",S:[{U:"div",X:"ytp-tooltip-text-wrapper",T:{"aria-hidden":"{{ariaHidden}}"},S:[{U:"div",X:"ytp-tooltip-edu",S:[{U:"svg",T:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",T:{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"}}]},{U:"span",er:"{{eduText}}"}]},{U:"div",X:"ytp-tooltip-image"},{U:"div",X:"ytp-tooltip-title",S:[{U:"span",er:"{{title}}"},{U:"div",X:"ytp-tooltip-keyboard-shortcut", er:"{{keyBoardShortcutTitle}}"}]},{U:"div",X:"ytp-tooltip-bottom-text",S:[{U:"span",X:"ytp-tooltip-text",er:"{{text}}"},{U:"div",X:"ytp-tooltip-keyboard-shortcut",er:"{{keyBoardShortcut}}"}]},{U:"div",X:"ytp-tooltip-progress-bar-pill",S:[{U:"div",X:"ytp-tooltip-progress-bar-pill-time-stamp",er:"{{pillTimeStamp}}"},{U:"div",X:"ytp-tooltip-progress-bar-pill-title",er:"{{pillTitle}}"}]}]},{U:"div",X:"ytp-tooltip-bg",S:[{U:"div",X:"ytp-tooltip-duration",er:"{{duration}}"}]}]});var a=this;this.api=y;this.L1= t;this.Z=function(r){(r=r.relatedTarget)&&g.Vu(a.V,r)||a.EV()}; this.L=function(r){a.type===3&&a.EV();(r=r.currentTarget)&&r.nodeType===1&&!a.type&&(r.removeEventListener("mouseover",a.L),r.addEventListener("mouseout",a.Z),r.removeEventListener("focus",a.L),r.addEventListener("blur",a.Z),Y8u(a,r,2))}; this.AF=function(){a.EV()}; this.type=this.V=null;this.W=!1;this.K=null;this.Y="";this.J=!0;this.scale=1;this.env=this.api.G();this.DE=this.env.K;this.wrapper=this.K1("ytp-tooltip-text-wrapper");this.bg=this.K1("ytp-tooltip-bg");this.d0=this.K1("ytp-tooltip-edu");this.image=this.K1("ytp-tooltip-image");this.text=this.K1("ytp-tooltip-text");this.bottomText=this.K1("ytp-tooltip-bottom-text");this.title=this.K1("ytp-tooltip-title");this.fade=new g.r0(this,100);this.D=NaN;this.WC=this.api.ZE().getPlayerSize().width;this.Vv=new g.Te(this.edX, 250,this);this.o5=new g.Te(this.EV,5E3,this);g.c(this,this.fade);g.c(this,this.Vv);g.c(this,this.o5);mB&&(y=this.K1("ytp-tooltip-text"),y.setAttribute("role","text"),y.setAttribute("aria-live","polite"))}; D17=function(y,t){y.env.B("delhi_modern_web_player")&&y.scale!==.6&&(y.scale=t?.8:1)}; g.l6=function(y,t){if(y.DE)return function(){}; t.addEventListener("mouseover",y.L);t.addEventListener("focus",y.L);var a=y.env.B("player_tooltip_data_title_killswitch")?t.getAttribute("title"):t.getAttribute("data-tooltip-title");a&&!t.hasAttribute("aria-label")&&t.setAttribute("aria-label",a);return function(){y.V===t&&y.EV();t.removeEventListener("mouseover",y.L);t.removeEventListener("focus",y.L)}}; Y8u=function(y,t,a,r){if(t&&!t.hasAttribute)y=new g.RV("showElementTooltip called with non-element.",t.toString()),g.pK(y);else{isNaN(y.D)||(y.D=NaN,y.bg.style.background="");g.sz(y.element,"ytp-tooltip-progress-bar-style");y.V=t;y.W=!!r;r?y.Y=r:(y.env.B("player_tooltip_data_title_killswitch")?y.Y=t.getAttribute("title"):y.Y=t.getAttribute("data-tooltip-title"),y.env.B("player_tooltip_data_title_killswitch")?t.removeAttribute("title"):t.removeAttribute("data-tooltip-title"));g.hl(y.element,"ytp-tooltip"); var E=t.getAttribute("data-tooltip-image");E&&(y.image.style.backgroundImage="url("+E+")");r?y.update({ariaHidden:"false"}):y.update({ariaHidden:"true"});g.Uz(y.element,"ytp-tooltip-image-enabled",!!E);t=t.getAttribute("data-tooltip-opaque");g.Uz(y.element,"ytp-tooltip-opaque",!!t);y.type=a;y.api.addEventListener("appresize",y.AF);y.J&&(fC(y),y.fade.show(0))}}; fC=function(y){if(y.V){var t=y.V.getAttribute("data-tooltip-text");if(y.Y&&y.V.getAttribute("aria-label")!==y.Y)var a=y.Y;var r=y.V.getAttribute("aria-keyshortcuts"),E=y.V.getAttribute("data-title-no-tooltip");r&&E&&(a=g.ts("$BUTTON_TITLE combinaci\u00f3n de teclas $SHORTCUT_KEY",{BUTTON_TITLE:E,SHORTCUT_KEY:r}));a&&y.V.setAttribute("aria-label",a);if(t&&!y.W){D17(y,!0);var h=y.V;y.updateValue("text",t);a=h.getAttribute("data-duration");y.update({title:y.Y,duration:a});h=h.getAttribute("data-preview"); y.env.B("delhi_modern_web_player")?(y.updateValue("title",E),y.updateValue("keyBoardShortcutTitle",r.toUpperCase())):D17(y,!1);r=243*y.scale;E=141*y.scale;y.bg.style.width=r+"px";y.bg.style.height=E+"px";y.bg.style.backgroundImage=h?"url("+h+")":"";y.bg.style.backgroundSize=r+"px "+E+"px";y.wrapper.style.width=r+"px";g.xM(y.element,["ytp-text-detail","ytp-preview"]);g.Uz(y.element,"ytp-has-duration",!!a)}else E&&r&&y.env.B("delhi_modern_web_player")?(y.updateValue("text",E),y.updateValue("keyBoardShortcut", r.toUpperCase())):y.updateValue("text",y.Y),g.$M(y.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);a=y.V;a.hasAttribute("data-tooltip-offset-y")?(a=Number(a.getAttribute("data-tooltip-offset-y")),a=isNaN(a)?0:a):a=0;gVb(y,!!t,void 0,a)}}; gVb=function(y,t,a,r){var E=Math.min(y.WC,300*y.scale);y.element.style.maxWidth=t?"":E+"px";y.L1.R6(y.element,y.V,a,y.type===1,r);y.element.style.top?g.Al(y.element,"ytp-bottom"):y.element.style.bottom&&g.Al(y.element,"ytp-top");y.type===3&&y.o5.start()}; iOz=function(y,t){g.Uz(y.element,"ytp-preview",t>=0);if(!(t<0||t===y.D)){y.D=t;t=243*y.scale;var a=141*y.scale,r=fgF(y.K,y.D,t);vlx(y.bg,r,t,a,!0);y.Vv.start()}}; Kg7=function(y){var t=y.V;y.type===3&&y.o5.stop();y.api.removeEventListener("appresize",y.AF);y.W||(y.env.B("player_tooltip_data_title_killswitch")?t.setAttribute("title",y.Y):t.setAttribute("data-tooltip-title",y.Y));y.Y="";y.V=null;y.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});y.wrapper.style.width=""}; Trn=function(y){g.q.call(this,{U:"button",mX:["ytp-watch-later-button","ytp-button"],T:{title:y.B("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.bc(y.G()))},S:[{U:"div",X:"ytp-watch-later-icon",er:"{{icon}}"},{U:"div",X:"ytp-watch-later-title",er:"Ver m\u00e1s tarde"}]});this.C=y;this.icon=null;this.visible=this.isRequestPending=this.V=!1;xyV(y);y.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.N(y,"videoplayerreset",this.onReset);this.N(y,"appresize",this.U3);this.N(y,"videodatachange",this.U3);this.N(y,"presentingplayerstatechange",this.U3);this.U3();y=this.C.G();var t=g.JU("yt-player-watch-later-pending");y.D&&t?(zAu(),I2F(this)):this.kG(2);g.Uz(this.element,"ytp-show-watch-later-title",g.bc(y));u6(this.C,this.element,this)}; GYz=function(y){var t=y.C.getPlayerSize(),a=y.C.G(),r=y.C.getVideoData(),E=g.bc(a)&&g.Hq(y.C)&&g.D(y.C.getPlayerStateObject(),128),h=a.Y;return a.sR&&t.width>=240&&!r.isAd()&&r.sR&&!E&&!r.Zh&&!y.C.isEmbedsShortsMode()&&!h}; ZOz=function(y,t){odF(g.rY(y.C.G()),"wl_button",function(){zAu({videoId:t});window.location.reload()})}; I2F=function(y){if(!y.isRequestPending){y.isRequestPending=!0;y.kG(3);var t=y.C.getVideoData();t=y.V?t.removeFromWatchLaterCommand:t.addToWatchLaterCommand;var a=y.C.RS(),r=y.V?function(){y.V=!1;y.isRequestPending=!1;y.kG(2);y.C.G().Z&&y.C.W4("WATCH_LATER_VIDEO_REMOVED")}:function(){y.V=!0; y.isRequestPending=!1;y.kG(1);y.C.G().K&&y.C.gk(y.element);y.C.G().Z&&y.C.W4("WATCH_LATER_VIDEO_ADDED")}; Ja(a,t).then(r,function(){y.isRequestPending=!1;y.kG(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");y.C.G().Z&&y.C.W4("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; yJd=function(y,t){if(t!==y.icon){switch(t){case 3:var a=RX();break;case 1:a=Mq();break;case 2:a={U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:a={U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path", oR:!0,T:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}y.updateValue("icon",a);y.icon=t}}; taV=function(){g.bC.apply(this,arguments);this.QE=(this.f2=g.bc(this.api.G()))&&(this.api.G().K||hU()||rB());this.y4=48;this.qG=69;this.B_=this.Fi=null;this.wG=[];this.xr=this.Yj=this.dR=this.qo=this.vj=null;this.l0=[];this.contextMenu=this.qh=this.overflowButton=this.VR=this.Jm=this.searchButton=this.copyLinkButton=this.shareButton=this.sN=this.gP=this.title=this.channelAvatar=this.T4=this.tooltip=null;this.ej=!1;this.xF=this.cT=this.H2=this.VU=null;this.H_r=this.TB=this.pV=!1}; aC2=function(y){var t=y.api.G(),a=g.D(y.api.getPlayerStateObject(),128);return t.D&&a&&!y.api.isFullscreen()}; rJN=function(y){if(y.b2()&&!y.api.isEmbedsShortsMode()&&y.VR){var t=y.api.B("web_player_hide_overflow_button_if_empty_menu");!y.sN||t&&!GYz(y.sN)||DPz(y.VR,y.sN);!y.shareButton||t&&!sjd(y.shareButton)||DPz(y.VR,y.shareButton);!y.copyLinkButton||t&&!rcu(y.copyLinkButton)||DPz(y.VR,y.copyLinkButton)}else{t=y.api.G().getWebPlayerContextConfig();if(y.VR){for(var a=y.VR,r=g.p(a.actionButtons),E=r.next();!E.done;E=r.next())E.value.detach();a.actionButtons=[]}y.searchButton&&!g.Vu(y.gP.element,y.searchButton.element)&& y.searchButton.g0(y.gP.element);!y.sN||(t==null?0:t.hideTopWatchNextButton)||g.Vu(y.gP.element,y.sN.element)||y.sN.g0(y.gP.element);!y.shareButton||(t==null?0:t.hideTopShareButton)||g.Vu(y.gP.element,y.shareButton.element)||y.shareButton.g0(y.gP.element);y.copyLinkButton&&!g.Vu(y.gP.element,y.copyLinkButton.element)&&y.copyLinkButton.g0(y.gP.element)}}; EAV=function(y,t,a){t=a?t.lastElementChild:t.firstElementChild;for(var r=null;t;){if(Aq(t,"display")!=="none"&&t.getAttribute("aria-hidden")!=="true"){var E=void 0;t.tabIndex>=0?E=t:E=EAV(y,t,a);E&&(r?a?E.tabIndex>r.tabIndex&&(r=E):E.tabIndext||a>10||(y.play(),g.Nt(function(){FSu(y,y.getCurrentTime(),a+1)},500))}; AJ1=function(y,t){y.L&&y.L.equals(t)||(y.L&&y.L.dispose(),y.L=t)}; xdb=function(y){y.wH()&&(y.Om&&y.Om.pw("rs_s"),Kx&&y.getCurrentTime()>0&&y.seekTo(0),y.Fn(),y.load(),AJ1(y,null));delete y.J}; sm7=function(y,t){return y.view?ac(t,y.view.start,y.view.end):t}; UdV=function(y){y=y===void 0?!1:y;$du||(window.addEventListener(mB?"touchstart":"click",function(){var t=y;t=t===void 0?!1:t;for(var a=So.length;a<4;a++){var r=g.SU("VIDEO");r.load();So.push(t?new g.jo(r):new g.nB(r))}},{capture:!0, passive:!0}),$du=!0)}; CM7=function(y,t,a,r,E){E=E===void 0?!1:E;var h=a.getVideoData(),F=t.getVideoData();if(a.getPlayerState().isError())return{msg:"player-error"};var x=F.Y;if(t.cz()>r/1E3+1)return{msg:"in-the-past"};if(F.isLivePlayback&&!isFinite(r))return{msg:"live-infinite"};r=t.uJ();var U=null;r&&(U=E?r.V.played||iH([],[]):r.isView()?r.mediaElement.bU():r.bU());if(U&&U.length>12&&g.VQ(h))return{msg:"played-ranges"};if(!h.Y)return null;if(!x)return{msg:"no-pvd-formats"};if(!h.Y.V||!x.V)return{msg:"non-dash"};E=x.videoInfos[0]; r=h.Y.videoInfos[0];y.AF&&Rh(F)&&(E=t.w_(),r=a.w_());if(!E||!r)return{msg:"no-video-info"};if(y.J&&(ol(E)||ol(r)))return{msg:"av1"};t=y.D&&F.yR()&&Fv();if(r.containerType!==E.containerType)if(t)F.H4("sgap",{ierr:"container"});else return{msg:"container"};if(y.L&&!t&&(r.G7!==E.G7||r.G7===""||E.G7===""))return{msg:"codec"};if(y.W&&r.video&&E.video&&Math.abs(r.video.width/r.video.height-E.video.width/E.video.height)>.01)return{msg:"ratio"};if(g.VQ(F)&&g.VQ(h))return{msg:"content-protection"};x=x.V[0]; h=h.Y.V[0];a=x.audio;U=h.audio;if(a.sampleRate!==U.sampleRate&&!g.x8)if(t)F.H4("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:x.itag,cr:a.sampleRate,ni:h.itag,nr:U.sampleRate};return(a.numChannels||2)!==(U.numChannels||2)?{msg:"channel-count"}:y.Z&&F.yR()&&E.video.fps!==r.video.fps?{msg:"fps"}:null}; zUb=function(y,t,a,r){r=r===void 0?!1:r;var E=y.getVideoData(),h=t.getVideoData();if(!E.G().supportsGaplessShorts())return{nq:"env"};if((!a.hF||E.Nh&&!E.isAd()||h.Nh&&!h.isAd())&&(!a.K||E.Nh&&!E.isAd()||h.Nh)&&(!a.Y||h.Nh&&!h.isAd()||E.Nh)&&(E.Nh||h.Nh))return{nq:"autoplay"};if(E.endSeconds>0)return{nq:"endcr"};if(!E.W)return{nq:"client"};if(!y.nA())return{nq:"no-empty"};y=CM7(a,y,t,Infinity,r);return y!=null?{nq:y.msg}:null}; QE=function(y){g.H.call(this);this.app=y;this.L=this.D=this.K=this.V=null;this.Y=1;this.events=new g.Ci(this);this.events.N(this.app.Mr,g.Ya("gaplessshortslooprange"),this.Z);g.c(this,this.events)}; OSn=function(){this.V=this.W=this.Y=this.K=this.hF=this.J=this.AF=this.Z=this.L=this.D=!1}; LSz=function(y){var t=new OSn;t.D=y.B("h5_gapless_support_types_diff");t.Z=!1;t.AF=y.B("html5_gapless_use_format_info_fix");t.J=y.B("html5_gapless_disable_on_av1")&&!y.B("html5_gapless_enable_on_av1");t.L=y.B("html5_gapless_check_codec_diff_strictly");t.hF=y.B("html5_gapless_on_ad_autoplay");t.W=y.B("html5_gapless_disable_diff_aspect_radio");t.K=y.B("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!y.B("html5_disable_loop_range_for_shorts_ads");t.V=y.B("html5_pseudogapless_shorts_seek_to_next_start"); t.Y=y.B("html5_gapless_ad_autoplay_on_video_to_ad_only");return t}; g.vi=function(y,t,a,r){r=r===void 0?!1:r;wA.call(this);this.mediaElement=y;this.start=t;this.end=a;this.O2=r}; Man=function(y,t,a,r,E,h){h=h===void 0?0:h;g.H.call(this);var F=this;this.policy=y;this.V=t;this.K=a;this.LM=E;this.L=h;this.D=this.Y=null;this.currentVideoDuration=this.J=-1;this.W=!1;this.Bv=new M2;this.Ss=r-t.fJ()*1E3;this.Bv.then(void 0,function(){}); this.timeout=new g.Te(function(){F.Rm("timeout")},1E4); g.c(this,this.timeout);this.Z=isFinite(r)||this.LM.G().experiments.Nr("html5_pseudogapless_shorts")&&Rh(t.getVideoData());this.status={status:0,error:null}}; RU1=function(y){var t,a,r,E,h,F,x,U,C;return g.m(function(z){if(z.V==1){if(y.Qv())return z.return(Promise.reject(Error(y.status.error||"disposed")));y.timeout.start();return g.u(z,y.Bv,2)}t=y.V.uJ();if(t.isEnded())return y.Rm("ended_in_finishTransition"),z.return(Promise.reject(Error(y.status.error||"")));if(!y.D||!$q(y.D))return y.Rm("next_mse_closed"),z.return(Promise.reject(Error(y.status.error||"")));if(y.K.xm()!==y.D)return y.Rm("next_mse_mismatch"),z.return(Promise.reject(Error(y.status.error|| "")));a=pC(y);r=a.zU;E=a.UL;h=a.C7;y.V.eQ(!1,!0);F=wVF(y,t,r,h,!y.K.getVideoData().isAd());y.K.setMediaElement(F);(x=y.V.No())&&y.K.K4(x.d4,x.g4);y.Z&&(y.policy.V||y.K.seekTo(y.K.getCurrentTime()+.001,{RD:!0,zT:3,yD:"gapless_pseudo"}),F.play());U=t.Tl();U.cpn=y.V.getVideoData().clientPlaybackNonce;U.st=""+r;U.et=""+h;y.K.H4("gapless",U);y.V.H4("gaplessTo",{cpn:y.K.getVideoData().clientPlaybackNonce});C=y.V.getPlayerType()===y.K.getPlayerType();y.V.qM(E,!0,!1,C,y.K.getVideoData().clientPlaybackNonce); y.K.qM(y.K.getCurrentTime(),!0,!0,C,y.V.getVideoData().clientPlaybackNonce);y.K.b1();g.jv(function(){!y.K.getVideoData().Z&&y.K.getPlayerState().isOrWillBePlaying()&&y.K.uQ()}); eo(y,6);y.dispose();return z.return(Promise.resolve())})}; XVz=function(y){if(y.K.getVideoData().Y){var t=y.LM.G().B("html5_gapless_suspend_next_loader")&&y.L===1;y.K.JO(y.D,t,PM2(y));eo(y,3);N3V(y);var a=ddd(y);t=a.uO;a=a.bj;t.subscribe("updateend",y.Ny,y);a.subscribe("updateend",y.Ny,y);y.Ny(t);y.Ny(a)}}; N3V=function(y){y.V.unsubscribe("internalvideodatachange",y.Su,y);y.K.unsubscribe("internalvideodatachange",y.Su,y);y.LM.G().B("html5_gapless_use_format_info_fix")&&(y.V.unsubscribe("internalvideoformatchange",y.Su,y),y.K.unsubscribe("internalvideoformatchange",y.Su,y));y.V.unsubscribe("mediasourceattached",y.Su,y);y.K.unsubscribe("statechange",y.Nb,y)}; kS2=function(y){var t=y.LM.G().experiments.pJ().V.o7(l9);return CM7(y.policy,y.V,y.K,y.Ss,t)}; wVF=function(y,t,a,r,E){if(y.LM.G().experiments.pJ().V.o7(l9))return t.view={start:a,end:r,O2:E===void 0?!1:E},t;y=t.isView()?t.mediaElement:t;return new g.vi(y,a,r,E)}; eo=function(y,t){t<=y.status.status||(y.status={status:t,error:null},t===5&&y.Bv.resolve())}; PM2=function(y){return y.LM.G().B("html5_gapless_no_clear_buffer_timeline")&&y.L===1&&V3(y.V.getVideoData())}; pC=function(y){var t=y.V.uJ();t=t.isView()?t.start:0;var a=y.V.getVideoData().isLivePlayback?Infinity:y.V.ih(!0);a=Math.min(y.Ss/1E3,a)+t;var r=y.Z?100:0;y=a-y.K.cz()+r;return{LZ:t,zU:y,UL:a,C7:Infinity}}; ddd=function(y){return{uO:y.Y.V.ER,bj:y.Y.K.ER}}; u9=function(y){g.H.call(this);var t=this;this.app=y;this.W=this.K=this.V=null;this.AF=!1;this.hF=this.J=this.Y=this.D=null;this.L=LSz(this.app.G());this.Z=function(){g.jv(function(){fCn(t)})}}; WSV=function(y,t,a,r,E){r=r===void 0?0:r;E=E===void 0?0:E;y.nA()||(VE(y),nC(y));y.D=new M2;y.V=t;var h=a,F=E===0;F=F===void 0?!0:F;var x=y.app.le(),U=x.getVideoData().isLivePlayback?Infinity:x.ih(!0)*1E3;h>U&&(h=U-200,y.AF=!0);F&&x.getCurrentTime()>=h/1E3?y.Z():(y.K=x,F&&(F=h,h=y.K,y.app.Mr.addEventListener(g.q4("vqueued"),y.Z),F=isFinite(F)||F/1E3>h.getDuration()?F:0x8000000000000,y.W=new g.BK(F,0x8000000000000,{namespace:"vqueued"}),h.addCueRange(y.W)));F=r/=1E3;h=t.getVideoData().V;r&&h&&y.K&& (x=r,U=0,t.getVideoData().isLivePlayback&&(F=Math.min(a/1E3,y.K.ih(!0)),U=Math.max(0,F-y.K.getCurrentTime()),x=Math.min(r,t.ih()+U)),F=Hin(h,x)||r,F!==r&&y.V.H4("qvaln",{st:r,at:F,rm:U,ct:x}));t=F;r=y.V;r.getVideoData().RR=!0;r.getVideoData().W=!0;r.Bp(!0);h={};y.K&&(h=y.K.A_(),F=y.K.getVideoData().clientPlaybackNonce,h={crt:(h*1E3).toFixed(),cpn:F});r.H4("queued",h);t!==0&&r.seekTo(t+.01,{RD:!0,zT:3,yD:"videoqueuer_queued"});y.Y=new Man(y.L,y.app.le(),y.V,a,y.app,E);a=y.Y;a.status.status!==Infinity&& (eo(a,1),a.V.subscribe("internalvideodatachange",a.Su,a),a.K.subscribe("internalvideodatachange",a.Su,a),a.LM.G().B("html5_gapless_use_format_info_fix")&&(a.V.subscribe("internalvideoformatchange",a.Su,a),a.K.subscribe("internalvideoformatchange",a.Su,a)),a.V.subscribe("mediasourceattached",a.Su,a),a.K.subscribe("statechange",a.Nb,a),a.V.subscribe("newelementrequired",a.Eq,a),a.Su());return y.D}; fCn=function(y){var t,a,r,E,h,F,x;g.m(function(U){switch(U.V){case 1:if(y.Qv()||!y.D||!y.V)return U.return();y.AF&&y.app.le().oE(!0,!1);t=null;if(!y.Y){U.xG(2);break}g.xs(U,3);return g.u(U,RU1(y.Y),5);case 5:g.$s(U,2);break;case 3:t=a=g.Uy(U);case 2:if(!y.V)return U.return();jmb.NV("vqsp",function(){y.app.yq(y.V)}); if(!y.V)return U.return();r=y.V.uJ();y.app.G().B("html5_gapless_seek_on_negative_time")&&r&&r.getCurrentTime()<-.01&&y.V.seekTo(0);jmb.NV("vqpv",function(){y.app.playVideo()}); t&&(y.V?(E=t?t.message:"forced",(h=y.K)==null||h.H4("gapfulfbk",{r:E}),y.V.cn(E)):(F=y.K)==null||F.H4("gapsp",{}));x=y.D;nC(y);x&&x.resolve();return U.return(Promise.resolve())}})}; nC=function(y,t){t=t===void 0?!1:t;if(y.K){if(y.W){var a=y.K;y.app.Mr.removeEventListener(g.q4("vqueued"),y.Z);a.removeCueRange(y.W)}y.K=null;y.W=null}y.Y&&(y.Y.status.status!==6&&(a=y.Y,a.status.status!==Infinity&&a.L!==1&&a.Rm("Canceled")),y.Y=null);y.D=null;y.V&&!t&&y.V!==y.app.VW()&&y.V!==y.app.le()&&y.V.dispose();y.V&&t&&y.V.d1();y.V=null;y.AF=!1}; VE=function(y){y.hF&&y.J&&y.hF.removeEventListener("timeupdate",y.J);y.J=null;y.hF=null}; vA2=function(y,t){if(y.app.G().pJ().V.o7(S17)){var a=y.app.G().pJ().V.o7(Qm7);if(!(a<=0)){VE(y);var r,E=(r=y.app.le())==null?void 0:r.uJ();E&&y.V&&(y.V.getVideoData().h6=!0,y.J=function(){var h=E.getCurrentTime();h>=t+a/1E3&&(h=Date.now()-(h-t)*1E3,y.app.Fz().tick("pbs",h),VE(y))},y.hF=E,E.addEventListener("timeupdate",y.J))}}}; pV7=function(y){var t;return((t=y.Y)==null?void 0:t.currentVideoDuration)||-1}; eUy=function(y,t,a){if(y.nA())return"qie";if(y.V==null||y.V.Qv()||y.V.getVideoData()==null)return"qpd";if(t.videoId!==y.V.gH())return"vinm";if(pV7(y)<=0)return"ivd";if(a!==1)return"upt";if((a=y.Y)==null)y=void 0;else if(a.getStatus().status!==5)y="niss";else if(kS2(a)!=null)y="pge";else{t=ddd(a);y=t.uO;var r=t.bj;t=g.Gw(a.LM.G().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var E=a.J+t;a.LM.G().experiments.Nr("html5_pseudogapless_shorts")&&(E=pC(a).zU+t);a=TM(r.Ro(),E);y=TM(y.Ro(),E); y=!(t>0)||a&&y?null:"neb"}return y!=null?y:null}; lCy=function(){g.FM.call(this);var y=this;this.fullscreen=0;this.D=this.Y=this.pictureInPicture=this.V=this.K=this.inline=!1;this.L=function(){y.Ii()}; Zax(this.L);this.J=this.getVisibilityState(this.f_(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.L$(),this.m4(),this.Md(),this.qC())}; Fo7=function(y){return!(y.isMinimized()||y.isInline()||y.isBackground()||y.L$()||y.m4()||y.Md()||y.qC())}; g.mV=function(y){g.H.call(this);this.j=y;this.videoData=this.playerState=null}; nA7=function(y,t,a){return(a===void 0?0:a)?new ulV(y,t):new Va7(y,t)}; Va7=function(y,t){g.H.call(this);var a=this;this.data=[];this.Y=y||NaN;this.K=t||null;this.V=new g.Te(function(){Ji(a);oj(a)}); g.c(this,this.V)}; Ji=function(y){var t=(0,g.Wx)();y.data.forEach(function(a){a.expirer)break;var h=a.V.remove(),F=a.map.get(h);F&&F.rS===E&&b9(a,h,!0)}Bi(a)}); this.map=new Map;this.V=new BH;Number.isNaN(y);g.c(this,this.Y)}; b9=function(y,t,a){var r=y.map.get(t);if(!r)return!1;y.map.delete(t);a&&y.K&&y.K(r.value);if(y.V.V.length>y.map.size*2)for(y.V.clear(),t=g.p(y.map.entries()),a=t.next();!a.done;a=t.next())r=g.p(a.value),a=r.next().value,r=r.next().value,isFinite(r.rS)&&y.V.enqueue(r.rS,a);return!0}; Bi=function(y){y.Y.stop();for(var t;!y.V.isEmpty();){var a=bw(y.V);var r=y.V.V;r=r.length!=0?r[0].getValue():void 0;if(a===void 0||r===void 0)break;if((r=y.map.get(r))&&r.rS===a){t=a;break}else y.V.remove()}t!==void 0&&(a=(0,g.Wx)(),y.Y.start(Math.max(t-a,100)))}; g.ci=function(y,t){g.H.call(this);var a=this;this.api=y;this.Y={};this.h9=null;this.D={};this.V=null;this.W=new Map;this.L=null;t=nA7(t,function(r){r!==a.F3({playerType:r.getPlayerType()})&&r.dispose()},y.G().pJ().V.o7(mdn)); g.c(this,t);this.K=this.hF=this.Z=new g.mV(y.G());this.J=t}; qw=function(y){var t=[{cpn:y.K.Im()}];y.V&&t.push({cpn:y.V.Im()});y.api.publish("playbackChange",{JI7:t})}; JJz=function(y){for(var t=g.p(Object.values(y.D)),a=t.next();!a.done;a=t.next())a.value.dispose();y.D={};y.V=null;y.L=null;y.W.clear();qw(y)}; Yl=function(y,t,a){var r=r===void 0?"":r;y.D[t.Im()]=t;y.V=t;a&&(y.L=t);y.W.set(r,t);qw(y)}; Y1y=function(y){var t=y.experiments,a=t.Nr.bind(t);oA7=a("html5_use_async_stopVideo");HSV=a("html5_pause_for_async_stopVideo");bSd=a("html5_not_reset_media_source");a("html5_listen_for_audio_output_changed")&&(B37=!0);UK=a("html5_not_reset_media_source");cJF=a("html5_not_reset_media_source");EK=a("html5_retain_source_buffer_appends_for_debugging");j07(a("web_watch_pip")||a("web_shorts_pip"));anH(a("log_foreground_not_focused_as_background"));EiF(a("web_player_pip_logging_fix"));a("html5_mediastream_applies_timestamp_offset")&& (YF=!0);if(!t.pJ().V.o7(q1y)){var r=g.Gw(t,"html5_cobalt_override_quic");r&&Wk("QUIC",+(r>0))}y.Bb()&&zB7();Error.stackTraceLimit=50;var E=g.Gw(t,"html5_idle_rate_limit_ms");E&&Object.defineProperty(window,"requestIdleCallback",{value:function(h){return window.setTimeout(h,E)}}); $21(y.L);S6y(a("html5_use_ump_request_slicer"));hZx(a("html5_record_now"));a("html5_disable_streaming_xhr")&&(hP=!1);a("html5_byterate_constraints")&&(Jd=!0);a("html5_use_non_active_broadcast_for_post_live")&&(R1=!0);a("html5_enable_encrypted_av1")&&(VP=!0);x42(g.Gw(y.experiments,"html5_sticky_duration_mos"))}; t6V=function(y){function t(h,F,x){r.push(Zm(F(x),function(U){a[h]=U}))} var a={};y=y.experiments.QU();var r=[],E=y.V.o7(Ddd);Yh(E)&&Number(E)>0&&t("SetPreferMinimalPostProcessing",rPb,Number(E)===1);(E=y.V.o7(gAH))&&t("MediaSource.EnableUsingMediaSourceBufferedRange",E61,E===1);(E=y.V.o7(iS1))&&t("HTTP3",hBd,E===1);(E=y.V.o7(KSz))&&t("MediaSource.EnableUsingMediaSourceAttachmentMethods",FcN,E===1);(E=y.V.o7(ICb))&&t("QUIC",APu,E===1);(E=y.V.o7(T3b))&&t("Media.PlayerConfiguration.DecodeToTexturePreferred",s9V,E===1);(E=y.V.o7(GSn))&&t("Media.AudioWriteDurationLocal",x$F, Number(E));(E=y.V.o7(ZSN))&&t("Media.DisableExternalAllocator",$$u,Number(E)===1);(y=y.V.o7(yTu))&&t("Media.VideoBufferSizeClampMb",U$y,y);return Zm(plH(r),function(){return a})}; aKy=function(y){this.K=y===void 0?15:y;this.values=new Float64Array(176);this.V=new Float64Array(11);this.Y=new Float64Array(16)}; Dc=function(y,t,a,r){a=a===void 0?.5:a;r=r===void 0?0:r;this.resolution=t;this.K=0;this.Y=!1;this.k8=!0;this.V=Math.round(y*this.resolution);this.values=Array(this.V);for(y=0;y0)t=y.byterate,this.AF= !0;else{var r;a=(((r=navigator.connection)==null?void 0:r.downlink)||0)*64*1024;a>0&&(t=a,this.AF=!0)}this.Y.lW(this.policy.J,t);y.delay>0&&this.Z.lW(1,Math.min(y.delay,2));y.stall>0&&this.W.lW(1,y.stall);y.init>0&&(this.Ff=Math.min(y.init,this.Ff));y.interruptions&&(this.D=this.D.concat(y.interruptions),this.D.length>16&&this.D.pop());this.Vv=(0,g.Wx)();this.policy.W>0&&(this.C1=new g.Te(this.JF,this.policy.W,this),g.c(this,this.C1),this.C1.start())}; dH=function(y,t,a,r){y.Y.lW(r===void 0?t:r,a/t);y.J=(0,g.Wx)()}; WO7=function(y){y.L||(y.L=(0,g.Wx)());y.policy.hF&&(y.J=(0,g.Wx)())}; S5u=function(y,t){if(y.L){var a=t-y.L;if(a<6E4){if(a>1E3){var r=y.interruptions;r.push(Math.ceil(a));r.sort(function(E,h){return h-E}); r.length>16&&r.pop()}y.DE+=a}}y.L=t}; gC=function(y,t,a,r,E,h){h=h===void 0?!1:h;y.L1.lW(t,a/t);y.J=(0,g.Wx)();E||y.hF.lW(1,t-r);h||(y.L=0);y.Vv>-1&&(0,g.Wx)()-y.Vv>3E4&&(sAz(Mf(y)),y.Vv=(0,g.Wx)(),y.AF=!0)}; i9=function(y,t,a){t=Math.max(t,y.K.V);y.W.lW(1,a/t)}; Ka=function(y){y=y.Z.wP()+y.d0.wP()||0;y=isNaN(y)?.5:y;return y=Math.min(y,5)}; EEF=function(y,t,a){isNaN(a)||(y.o5+=a);isNaN(t)||(y.r0+=t)}; hj7=function(y){y=y.Y.wP();return y>0?y:1}; Tq=function(y,t,a){t=t===void 0?!1:t;a=a===void 0?1048576:a;var r=hj7(y);r=1/((y.W.wP()||0)*y.policy.AF+1/r);var E=y.L1.wP();E=E>0?E:1;var h=Math.max(r,E);y.policy.L>0&&E=4E3}; FU2=function(y){this.experiments=y;this.V=17;this.Y=13E4;this.J=.5;this.D=this.K=!1;this.Vv=this.B("html5_use_histogram_for_bandwidth");this.L=g.Gw(this.experiments,"html5_auxiliary_estimate_weight");this.AF=g.Gw(this.experiments,"html5_stall_factor")||1;this.W=g.Gw(this.experiments,"html5_check_for_idle_network_interval_ms");this.Z=this.experiments.Nr("html5_trigger_loader_when_idle_network");this.hF=this.experiments.Nr("html5_sabr_fetch_on_idle_network_preloaded_players")}; ATF=function(y,t,a){var r=new FU2(a);y&&(r.K=!0,r.J=.1);a.Nr("html5_media_time_weight")&&(r.K=!1);t&&(r.Y=t/8);r.D=Wh()>=480;return r}; sLN=function(y,t,a,r){r=r===void 0?0:r;g.I9.call(this,a.DG());var E=this;this.mL=y;this.videoData=t;this.duration=r;this.V=this.startTimeSecs=0;this.K=this.Y=!0;this.D=new xYN(function(h,F){return void E.H4(h,F)})}; xYN=function(y){this.H4=y;this.V={}}; $Y2=function(y,t,a){y.V[t]||(y.H4("huli-sdai-err",a),y.V[t]=!0)}; UYb=function(y){this.end=this.start=y}; g.KC=function(){this.V=new Map;this.Y=new Map;this.K=new Map}; C$n=function(y){var t=this;this.j=y;this.K=[];this.Y=new Map;this.D=new Map;this.V=new Map;this.Wb={e0:function(){return t.Y}, Mbr:function(){return t.D}, Vl:function(){return t.K}}; this.L=this.j.B("html5_huli_ssdai_deprecate_playback_timeline_id")}; zjz=function(y,t,a){y=y.K;var r=g.CJ(y,{zr:t},function(F,x){return F.zr-x.zr}); r=r<0?(r+2)*-1:r;if(r>=0)for(var E=r;E<=r+1&&E=h.zr-a&&t<=h.j_+a)return h}}; LUx=function(y,t){g.MX(y.K,t,function(a,r){return a.zr===r.zr?a.durationMs-r.durationMs:a.zr-r.zr}); y.Y.set(t.cpn,t);t.F7&&!y.L&&y.D.set(t.F7,t);t.O0&&OA2(y,t.O0,t)}; M6y=function(y,t){for(var a=[],r=g.p(y.K),E=r.next();!E.done;E=r.next())E=E.value,t(E)||a.push(E);if(y.j.B("html5_sstm_fixes"))for(r=g.p(y.K),E=r.next();!E.done;E=r.next())E=E.value,t(E)&&(y.Y.delete(E.cpn),E.F7&&y.D.delete(E.F7));y.K=a}; wpz=function(y,t){t=g.CJ(y.K,{j_:t},function(a,r){return a.j_-r.j_}); return t>=0?y.K[t]:null}; Rjy=function(y,t){var a=y.K.indexOf(t);a>=0&&y.K.splice(a,1);y.Y.delete(t.cpn);t.F7&&y.D.delete(t.F7)}; OA2=function(y,t,a){var r=y.V.get(t);r?(r.push(a),g.O9(r,function(E,h){return E.zr-h.zr})):y.V.set(t,[a])}; g.Ij=function(y,t,a,r){g.H.call(this);var E=this;this.api=y;this.j=t;this.playback=a;this.app=r;this.AF=new g.KC;this.K=new Map;this.MK=new Map;this.o5=new Map;this.d0=null;this.zl=NaN;this.n1=this.I7=null;this.Az=new g.Te(function(){P$V(E,E.zl,E.I7||void 0)}); this.events=new g.Ci(this);this.R5=15E3;this.J=new g.Te(function(){E.W=!0;E.playback.Qj(E.R5);N7d(E);if(E.playback.getVideoData().NP()){var h;E.QW({togab:(h=E.L)==null?void 0:h.identifier})}E.SY(!1)},this.R5); this.W=!1;this.ju=new Map;this.r0=[];this.L=null;this.cj=new Set;this.Z=[];this.Ff=[];this.MP=[];this.IR=[];this.yv=new Set;this.Re=0;this.hF=!1;this.vO=new Set;this.RR=new Set;this.pM=new Set;this.T7=new Set;this.nJ=this.FZ=0;this.N1=this.ZA=!1;this.B1=this.Y="";this.Vv=null;this.logger=new g.kK("dai");this.P1="";this.C1=!0;this.L1=new Map;this.FB=new Map;this.Wb={LCm:function(){return E.K}, e0:function(){return E.V.Wb.e0()}, wAr:function(){return E.Y}, Pge:function(h){E.onCueRangeEnter(E.K.get(h))}, DTG:function(h){E.onCueRangeExit(E.K.get(h))}, jee:function(h,F){E.K.set(h,F)}, h2X:function(h){E.B1=h}, If:function(){return E.If()}, qBF:function(h){return E.V.V.get(h)}, Jtv:function(){return E.Vv}, Vl:function(){return E.V.Wb.Vl()}, sQ:function(h,F){E.sQ(h,F)}, WCE:function(){return E.MK}, IC:function(h){E.IC(h)}}; this.playback.getPlayerType();this.V=new C$n(this.j);this.playback.nk(this);this.JF=this.j.Bb();g.c(this,this.Az);g.c(this,this.events);g.c(this,this.J);this.ix=this.j.B("html5_use_new_ssdai_transition_detector");this.sR=this.j.pJ().V.o7(oi7);this.XB=this.j.pJ().V.o7(dY7);this.uK=this.playback.getVideoData().FH;this.ix?this.playback.subscribe("playbackstarted",this.sQ,this):(this.events.N(this.api,g.q4("serverstitchedcuerange"),this.onCueRangeEnter),this.events.N(this.api,g.Ya("serverstitchedcuerange"), this.onCueRangeExit));this.oo=this.j.B("html5_ssdai_report_stitch_error_after_skip_ad");Yl(this.app.Hl(),this.playback,!1)}; jL2=function(y,t,a,r,E,h,F,x,U){var C=Xpb(y,h,h+E);y.W&&y.QW({adaftto:1});a||y.QW({missadcon:1,enter:h,len:E,aid:x});y.D&&!y.D.Rc&&(y.D.Rc=x);y.N1&&y.QW({adfbk:1,enter:h,len:E,aid:x});var z=y.playback;h>F&&Tg(y,{reason:"enterTime_greater_than_return",zr:h,j_:F});var O=z.WO()*1E3;hz&&Tg(y,{reason:"parent_return_greater_than_content_duration",j_:F,CA7:z});(z=wpz(y.V,h))&&z.j_>h&&kpH(y,t.video_id|| "",h,F,z);if(C&&z)for(O=0;O=t)return a}y=g.p(y.K.values());for(a=y.next();!a.done;a=y.next())if(a=a.value,a.start<=t&&a.end>=t)return a}; P$V=function(y,t,a){var r=y.n1||y.app.le().getPlayerState();yx(y,!0);y.playback.seekTo(t,a);y=y.app.le();t=y.getPlayerState();r.isOrWillBePlaying()&&!t.isOrWillBePlaying()?y.playVideo():r.isPaused()&&!t.isPaused()&&y.pauseVideo()}; yx=function(y,t){y.zl=NaN;y.I7=null;y.Az.stop();y.d0&&t&&y.d0.fN();y.n1=null;y.d0=null}; JT7=function(y){var t=t===void 0?-1:t;var a=a===void 0?Infinity:a;nEn(y,t,a);for(var r=g.p(y.K.values()),E=r.next();!E.done;E=r.next())E=E.value,E.start>=t&&E.end<=a&&(y.playback.removeCueRange(E),y.K.delete(E.getId()),y.QW({rmAdCR:1}));r=Zc(y,t/1E3);t=r.UN;r=r.jS;t&&(r=r*1E3-t.zr,mYn(y,t,r,t.zr+r),r=y.K.get(t.cpn))&&(r.start=t.zr,r.end=t.zr+t.durationMs);if(t=Zc(y,a/1E3).UN){var h;r="playback_timelinePlaybackId_"+t.F7+"_video_id_"+((h=t.videoData)==null?void 0:h.videoId)+"_durationMs_"+t.durationMs+ "_enterTimeMs_"+t.zr+"_parentReturnTimeMs_"+t.j_;y.LL("Invalid_clearEndTimeMs_"+a+"_that_falls_during_"+r+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; oE1=function(y){y.AF.clearAll();y.K.clear();y.V.clear();y.ju.clear();y.r0=[];y.L=null;y.cj.clear();y.yv.clear();y.Z=[];y.Ff=[];y.MP=[];y.IR=[];y.vO.clear();y.RR.clear();y.pM.clear();y.T7.clear();y.W=!1;y.Re=0;y.hF=!1;y.C1=!1;y.FZ=0;y.nJ=0;y.ZA=!1;y.N1=!1;y.Y="";JJz(y.app.Hl());Yl(y.app.Hl(),y.playback,!1);y.o5.clear();y.J.isActive()&&Gg(y)}; mYn=function(y,t,a,r){t.durationMs=a;t.j_=r;(r=y.o5.get(t.cpn))?r.Fd(a/1E3):y.QW({nop_d:t.cpn})}; nEn=function(y,t,a){M6y(y.V,function(r){return r.zr>=t&&r.j_<=a})}; B7N=function(y,t,a,r,E,h){if(!y.N1)if(g.HA7(y,a))y.QW({gdu:"undec",seg:a,itag:E});else if(t=bAV(y,t,a,r,h),!(y.playback.getVideoData().NP()&&(t==null?0:t.J8)))return t}; bAV=function(y,t,a,r,E){var h=y.ju.get(a);if(!h){if(h=FY(y,t))return h;t=y.jH(a-1,r!=null?r:2);if(E)return y.QW({misscue:E,sq:a,type:r,prevsstate:t==null?void 0:t.oG,prevrecord:y.ju.has(a-1)}),y.ju.get(a-1);if((t==null?void 0:t.oG)===2)return y.QW({adnf:1,sq:a,type:r,prevrecord:y.ju.has(a-1)}),y.ju.get(a-1)}return h}; FY=function(y,t){t+=y.X0();var a;if(y.playback.getVideoData().NP()){a:{var r=t*1E3;y=g.p(y.V.K);for(a=y.next();!a.done;a=y.next()){a=a.value;var E=a.c5?a.c5*1E3:a.zr;if(r>=a.zr-1E3&&r<=E+a.durationMs+1E3){r=a;break a}}r=void 0}a={UN:r,jS:t}}else a=Zc(y,t),((r=a)==null?0:r.UN)||(a=Zc(y,t,1));var h;return(h=a)==null?void 0:h.UN}; g.RJV=function(y,t,a,r,E,h,F){var x=E===3,U=B7N(y,t,a,E,r,F);if(!U){tA(y,a,x);var C=g.HA7(y,a)?"undec":"ncp";y.QW({gvprp:C,mt:t,seg:a,tt:E,itag:r,ce:F});return null}x||y.ju.set(a,U);F=U.O0;var z;E=((z=y.jH(a-1,E,h))==null?void 0:z.Lf)||"";E===""&&y.QW({eds:1});z=cTu(y,U.ssdaiAdsConfig);h=y.playback.getVideoData();var O;x=((O=h.K)==null?void 0:O.containerType)||0;O=h.Vu[x];U=U.TJ&&a>=U.TJ?U.TJ:void 0;O={d_:F?qeH(y,F):[],adsConfig:z,Lf:E,Rx:U,PN:iA(O.split(";")[0]),Yh:O.split(";")[1]||""};U={Zn:O}; y.JF&&(t={gvprpro:"v",sq:a,mt:t.toFixed(3),itag:r,acpns:((C=O.d_)==null?void 0:C.join("_"))||"none",abid:F},y.QW(t));return U}; cTu=function(y,t){t=t===void 0?"":t;var a=nN(t)||void 0;if(!t||!a){var r;y.QW({adcfg:(r=t)==null?void 0:r.length,dcfg:a==null?void 0:a.length})}return a}; Ye1=function(y){for(var t=g.p(y.K.values()),a=t.next();!a.done;a=t.next())y.playback.removeCueRange(a.value);y.K.clear();y.AF.clearAll()}; gEn=function(y,t,a,r,E,h,F){if(t&&a){y.B1=a.cpn;y.nz(a.cpn,a.startTimeSecs||E);QL1(y,a);var x=Sez(y,"a2a",a);y.QW(x);y.FZ++;x=DYx(y);y.playback.tR(t,a,r||0,E||0,!!h,!!F,void 0,x)}else y.QW({misspbkonadtrans:1,enter:(a==null?void 0:a.cpn)||"",exit:(t==null?void 0:t.cpn)||"",seek:h,skip:F})}; tA=function(y,t,a){if(a===void 0||!a){a=g.p(y.r0);for(var r=a.next();!r.done;r=a.next()){r=r.value;if(t>=r.start&&t<=r.end)return;if(t===r.end+1){r.end+=1;return}}y.r0.push(new UYb(t))}}; g.HA7=function(y,t){y=g.p(y.r0);for(var a=y.next();!a.done;a=y.next())if(a=a.value,t>=a.start&&t<=a.end)return!0;return!1}; iAn=function(y,t,a){var r;if(r=y.playback.getVideoData().NP())r=(r=y.V.F3({cpn:t}))&&r.O0?(y=y.V.V.get(r==null?void 0:r.O0))&&y.slice(-1)[0].cpn===t:!1;return r&&a===2?1E3:0}; kpH=function(y,t,a,r,E){var h;t={reason:"overlapping_playbacks",LN5:t,zr:a,j_:r,dTe:E.F7,g6r:((h=E.videoData)==null?void 0:h.videoId)||"",YBr:E.durationMs,iwX:E.zr,xT0:E.j_};Tg(y,t)}; Tg=function(y,t,a){y.playback.Uf(t,a)}; qeH=function(y,t){var a=[];y=y.V.V.get(t);if(!y)return[];y=g.p(y);for(t=y.next();!t.done;t=y.next())t=t.value,t.cpn&&a.push(t.cpn);return a}; KUV=function(y,t,a){var r=0;y=y.V.V.get(a);if(!y)return-1;y=g.p(y);for(a=y.next();!a.done;a=y.next()){if(a.value.cpn===t)return r;r++}return-1}; IKu=function(y,t){var a=0;y=y.V.V.get(t);if(!y)return 0;y=g.p(y);for(t=y.next();!t.done;t=y.next())t=t.value,t.durationMs!==0&&t.j_!==t.zr&&a++;return a}; T7N=function(y,t,a){var r=!1;if(a=y.V.V.get(a)){a=g.p(a);for(var E=a.next();!E.done;E=a.next())E=E.value,E.durationMs!==0&&E.j_!==E.zr&&(E=E.cpn,t===E&&(r=!0),r&&!y.RR.has(E)&&(y.QW({decoratedAd:E}),y.RR.add(E)))}}; N7d=function(y){y.JF&&y.QW({adf:"0_"+((new Date).getTime()/1E3-y.nJ)+"_isTimeout_"+y.W})}; Xpb=function(y,t,a){if(y.Z.length)for(var r=g.p(y.Z),E=r.next(),h={};!E.done;h={Q9:void 0},E=r.next()){h.Q9=E.value;E=h.Q9.startSecs*1E3;var F=h.Q9.iK*1E3+E;if(t>E&&tE&&a0&&(y.FZ=0,y.B1="",y.j.B("html5_huli_ssdai_use_playback_state")&&y.nz(y.playback.Im(),0),y.api.publish("serverstitchedvideochange"));y.playback.HI(r,E);return!0}; Gg=function(y){y.W=!1;y.J.isActive()&&N7d(y);y.J.stop();y.SY(!1)}; GpN=function(y,t){var a="";t?t.event==="unknown"?a="unknown":y.yv.has(t.identifier)?y.D&&y.D.Sj===t.identifier?y.D.Sj===t.identifier?a=rQ(y.Ff,function(r){return r.identifier===t.identifier})?"shortad":"pending":rQ(y.Ff,function(r){return r.identifier===t.identifier})||(a="noAdsAdded"):a="wrongAdBreakInfo":a="unscheduled":a="noCuepoint"; return a}; ro=function(y,t){y.Y||y.hF||aC(y,y.B1);var a=t.Fr,r=t.gf;if(r.cpn===y.B1)y.QW({igtranssame:1,enter:r.cpn,exit:a.cpn});else{var E=y.hF,h=!!y.Y;y.Y="";var F=t.DI,x=a.playerType===2?a.zr/1E3+a.videoData.FB:y.If().videoData.FB;y.api.B("html5_ssdai_enable_media_end_cue_range")&&(h||E||a.playerType!==2?(E||h)&&y.QW({mecr:0,seek:E,skip:h}):y.api.Q3(a.cpn));if(a.playerType===2&&r.playerType===2)h?y.QW({igtransskip:1,enter:r.cpn,exit:a.cpn,seek:E,skip:y.Y}):gEn(y,a,r,x,F,E,h);else{y.B1=r.cpn;y.nz(r.cpn,r.startTimeSecs|| F);t=t.BO0;if(a.playerType===1&&r.playerType===2){y.Re=0;QL1(y,r);var U=Sez(y,"c2a",r);y.QW(U);y.FZ++}else if(a.playerType===2&&r.playerType===1){y.api.publish("serverstitchedvideochange");U=Sez(y,"a2c");y.QW(U);y.FZ=0;y.Re=x;U=a.cpn;var C=y.Re;if(U!==y.playback.Im()){var z=y.o5.get(U);z?z.V=C:y.QW({nop_e:U})}y.IC(a.O0)}U=DYx(y);y.playback.tR(a,r,x,F,E,h,t,U)}ZAb(y)}}; y$2=function(y,t,a,r){y.j.B("html5_ssdai_log_ssevt_in_loader_timers")&&(r=y.hF?0:Math.round((r-a)*1E3),y.playback.H4("ssevt",{tag:"sstme",ad:t!==y.playback.Im(),cpn:t,st:(a-y.playback.X0()).toFixed(3),late:r}))}; tF7=function(y,t,a){y.playback.UV();y.playback.seekTo(t,a);y.playback.playVideo()}; ax2=function(y,t,a,r){t={Fr:t,gf:a,DI:y.playback.getCurrentTime(),BO0:r};ro(y,t)}; aC=function(y,t){var a=t||y.B1,r=y.V.F3({cpn:a});if(r){t=r.videoData;var E,h;a=r.c5||((h=(E=y.K.get(a))==null?void 0:E.start)!=null?h:0)/1E3;y=y.playback.getCurrentTime()-a;t.FB=y>0?y:0}else y.If().videoData.FB=y.playback.getCurrentTime()}; ZAb=function(y){y.T7.add(y.Y);y.Y="";y.hF=!1}; DYx=function(y){if(y.sR||y.XB){var t=Array.from(y.app.Hl().W.values()),a=[],r=[],E=[],h=[],F=[];t=g.p(t);for(var x=t.next();!x.done;x=t.next())if(x=y.V.F3({cpn:x.value.Im()}))x.serializedPlaybackPingContextLoggingData&&a.push(x.serializedPlaybackPingContextLoggingData),E.push(x.cpn),h.push(x.videoData.videoId||""),F.push(x.videoData.adFormat||x.videoData.Az),x.serializedQoeContextData&&r.push(x.serializedQoeContextData);x=t=void 0;y.sR&&(x={serializedPlaybackPingContextLoggingData:a});y.XB&&(t={d_:E, d3:h,adFormats:F,serializedQoeContextData:r});return{DX:x,jR:t}}}; Ex1=function(y,t,a,r){g.H.call(this);var E=this;this.api=y;this.j=t;this.V=a;this.app=r;this.L=new Map;this.K=[];this.Y=this.W=null;this.AF=NaN;this.J=this.D=this.hF=null;this.Z=new g.Te(function(){r$7(E,E.AF,E.hF||void 0)}); this.Vv=[];this.o5=new g.Te(function(){var h=E.Vv.pop();if(h){var F=h.F7,x=h.playerVars;h=h.playerType;x&&(x.prefer_gapless=!0,E.api.preloadVideoByPlayerVars(x,h,NaN,"",F),E.Vv.length&&g.Ge(E.o5,4500))}}); this.events=new g.Ci(this);this.Wb={uLG:function(){return E.K}}; this.V.getPlayerType();g.c(this,this.Z);g.c(this,this.o5);g.c(this,this.events);this.events.N(this.api,g.q4("childplayback"),this.onCueRangeEnter);this.events.N(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.N(this.api,"presentingplayerstatechange",this.jQ)}; xJN=function(y,t,a,r,E,h){var F=t.cpn,x=t.docid||t.video_id||t.videoId||t.id,U=y.V;h=h===void 0?E+r:h;if(E>h)return Ec(y,"enterAfterReturn enterTimeMs="+E+" is greater than parentReturnTimeMs="+h.toFixed(3),F,x),"";var C=U.WO()*1E3;if(EC)return U="returnAfterDuration parentReturnTimeMs="+h.toFixed(3)+" is greater than parentDurationMs="+C+". And timestampOffset in seconds is "+ U.fJ(),Ec(y,U,F,x),"";C=null;for(var z=g.p(y.K),O=z.next();!O.done;O=z.next()){O=O.value;if(E>=O.zr&&EO.zr)return Ec(y,"overlappingReturn",F,x),"";if(h===O.zr)return Ec(y,"outOfOrder",F,x),"";E===O.j_&&(C=O)}F="cs_childplayback_"+hvx++;x={vl:hA(r,!0),Ss:Infinity,target:null};var M={F7:F,playerVars:t,playerType:a,durationMs:r,zr:E,j_:h,Cz:x};y.K=y.K.concat(M).sort(function(d,k){return d.zr-k.zr}); C?Fr7(y,C,{vl:hA(C.durationMs,!0),Ss:C.Cz.Ss,target:M}):(t={vl:hA(E,!1),Ss:E,target:M},y.L.set(t.vl,t),U.addCueRange(t.vl));t=!0;if(y.V===y.app.le()&&(U=U.getCurrentTime()*1E3,U>=M.zr&&Ut)break;if(h>t)return{UN:r,jS:t-E};a=h-r.j_/1E3}return{UN:null,jS:t-a}}; r$7=function(y,t,a){a=a===void 0?{}:a;var r=y.J||y.app.le().getPlayerState();xg(y,!0);t=isFinite(t)?t:y.V.Lx();var E=Cey(y,t);t=E.jS;var h=(E=E.UN)&&!Fp(y,E)||!E&&y.V!==y.app.le(),F=t*1E3;F=y.Y&&y.Y.start<=F&&F<=y.Y.end;!h&&F||AA(y);E?A$H(y,E,t,a,r):zvu(y,t,a,r,"_execute")}; zvu=function(y,t,a,r,E){var h=y.V;h!==y.app.le()&&y.app.II();y.j.B("html5_sabr_csdai_seek_log")||(E="");var F;h.seekTo(t,Object.assign({},{yD:"application_timelinemanager"+((F=E)!=null?F:"")},a));OUb(y,r)}; A$H=function(y,t,a,r,E){var h=Fp(y,t);if(!h){t.playerVars.prefer_gapless=!0;var F=new g.hI(y.j,t.playerVars);F.F7=t.F7;y.api.Uk(F,t.playerType)}F=y.app.le();h||F.addCueRange(t.Cz.vl);F.seekTo(a,Object.assign({},{yD:"application_timelinemanager"},r));OUb(y,E)}; OUb=function(y,t){y=y.app.le();var a=y.getPlayerState();t.isOrWillBePlaying()&&!a.isOrWillBePlaying()?y.playVideo():t.isPaused()&&!a.isPaused()&&y.pauseVideo()}; xg=function(y,t){y.AF=NaN;y.hF=null;y.Z.stop();y.D&&t&&y.D.fN();y.J=null;y.D=null}; Fp=function(y,t){y=y.app.le();return!!y&&y.getVideoData().F7===t.F7}; Lrz=function(y){var t=y.K.find(function(E){return Fp(y,E)}); if(t){var a=y.app.le();AA(y);var r=new g.PY(8);t=UJH(y,t)/1E3;zvu(y,t,{},r,"_force");a.H4("forceParentTransition",{childPlayback:1});y.V.H4("forceParentTransition",{parentPlayback:1})}}; wu7=function(y,t,a){t=t===void 0?-1:t;a=a===void 0?Infinity:a;for(var r=t,E=a,h=g.p(y.L),F=h.next();!F.done;F=h.next()){var x=g.p(F.value);F=x.next().value;x=x.next().value;x.Ss>=r&&x.target&&x.target.j_<=E&&(y.V.removeCueRange(F),y.L.delete(F))}r=t;E=a;h=[];F=g.p(y.K);for(x=F.next();!x.done;x=F.next())if(x=x.value,x.zr>=r&&x.j_<=E){var U=y;U.W===x&&AA(U);Fp(U,x)&&U.app.II()}else h.push(x);y.K=h;r=Cey(y,t/1E3);t=r.UN;r=r.jS;t&&(r*=1E3,MF7(y,t,r,t.j_===t.zr+t.durationMs?t.zr+r:t.j_));(t=Cey(y,a/1E3).UN)&& Ec(y,"Invalid clearEndTimeMs="+a+" that falls during playback={timelinePlaybackId="+(t.F7+" video_id="+t.playerVars.video_id+" durationMs="+t.durationMs+" enterTimeMs="+t.zr+" parentReturnTimeMs="+t.j_+"}.Child playbacks can only have duration updated not their start."))}; MF7=function(y,t,a,r){t.durationMs=a;t.j_=r;r={vl:hA(a,!0),Ss:a,target:null};Fr7(y,t,r);Fp(y,t)&&y.app.le().getCurrentTime()*1E3>a&&(t=UJH(y,t)/1E3,a=y.app.le().getPlayerState(),zvu(y,t,{},a,"_update"))}; Ec=function(y,t,a,r){y.V.H4("timelineerror",{e:t,cpn:a?a:void 0,videoId:r?r:void 0})}; Pe7=function(y){y&&y!=="web"&&RvF.includes(y)}; sc=function(y){y=y===void 0?!1:y;g.H.call(this);this.V=nA7(5,null,y);g.c(this,this.V);this.K=nA7(15,null,y);g.c(this,this.K)}; oJy=function(y,t){return t?!!y.V.get(t):!1}; Nn1=function(y,t){y.dataset.version=t}; knx=function(y){g.q.call(this,{U:"div",mX:["html5-video-player"],T:{tabindex:y.G().disableOrganicUi?"":"-1",id:y.webPlayerContextConfig.rootElementId},S:[{U:"div",X:g.e_.VIDEO_CONTAINER,T:{"data-layer":"0"}}]});var t=this;this.app=y;this.xu=this.K1(g.e_.VIDEO_CONTAINER);this.xU=new g.yj(0,0,0,0);this.jz=null;this.zx=new g.yj(0,0,0,0);this.Fe=this.ZF=this.GB=NaN;this.Y4=this.IM=this.QV=this.jk=!1;this.uG=NaN;this.DF=!1;this.Q7=null;this.U9=new g.Te(function(){t.app.G().B("web_enable_smart_zoom")&& t.app.Mr.getInternalApi().isAutocropEnabled()||t.resize()},100); this.Uy=function(){t.element.focus({preventScroll:!0})}; this.pj=function(){t.app.Mr.publish("playerUnderlayVisibilityChange","visible");t.jz.classList.remove(g.e_.VIDEO_CONTAINER_TRANSITIONING);t.jz.removeEventListener(e1,t.pj);t.jz.removeEventListener("transitioncancel",t.pj)}; this.cg=this.Wr=!1;var a=this.element.addEventListener,r=this.element.removeEventListener;this.addEventListener=function(h,F,x){a.apply(t.element,[h,F,x])}; this.removeEventListener=function(h,F,x){r.apply(t.element,[h,F,x])}; var E=y.G();E.transparentBackground&&this.ov("ytp-transparent");E.controlsType==="0"&&this.ov("ytp-hide-controls");g.Al(this.element,"ytp-exp-bottom-control-flexbox");g.Al(this.element,"ytp-modern-caption");E.B("enable_new_paid_product_placement")&&!g.UJ(E)&&g.Al(this.element,"ytp-exp-ppp-update");g.Al(this.element,"ytp-livebadge-color");Nn1(this.element,dJy(y));this.py=!1;this.hH=new g.F1(NaN,NaN);Xu2(this);this.N(y.Mr,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.c(this,this.U9)}; Xu2=function(y){function t(F){y.jz&&$g(y);Uc(y)!==y.DF&&y.resize();y.app.G().B("web_enable_smart_zoom")&&y.nV&&(F.state.isPaused()?y.nV.pause():g.Og(F,8)&&y.nV.playState==="paused"&&y.nV.play())} function a(F,x){y.eP(F,x)} function r(F){F.getVideoData()&&y.updateVideoData(F.getVideoData())} function E(){y.zx=new g.yj(0,0,0,0);y.xU=new g.yj(0,0,0,0)} var h=y.app.Mr;h.addEventListener("initializingmode",E);h.addEventListener("videoplayerreset",r);h.addEventListener("videodatachange",a);h.addEventListener("presentingplayerstatechange",t);y.addOnDisposeCallback(function(){h.removeEventListener("initializingmode",E);h.removeEventListener("videoplayerreset",r);h.removeEventListener("videodatachange",a);h.removeEventListener("presentingplayerstatechange",t)})}; Wrb=function(y){var t=y.app.le();if(t=t?t.getVideoData():null){if(g.qD(t)||g.YU(t)||g.DQ(t))return 16/9;if(wU(t)&&t.Y.V)return y=t.Y.videoInfos[0].video,fxb(y.width,y.height)}return(y=y.jz)?fxb(y.videoWidth,y.videoHeight):16/9}; jw2=function(y,t,a,r){var E=a,h=fxb(t.width,t.height);y.jk?E=ah?{width:t.width,height:t.width/E,aspectRatio:E}:EE?y.width=y.height*a:aU;if(Uc(y)){var C=Wrb(y);var z=isNaN(C)||g.IU||kF&&g.wR||U;Kx&&!g.yu(601)?C=E.aspectRatio:z=z||h.controlsType==="3";z?U?(z=h.B("place_shrunken_video_on_left_of_player")?16:y.getPlayerSize().width-t.width-16,C=Math.max((y.getPlayerSize().height-t.height)/2,0),z=new g.yj(z,C,t.width, t.height),y.jz.style.setProperty("border-radius","12px")):z=new g.yj(0,0,t.width,t.height):(a=E.aspectRatio/C,z=new g.yj((t.width-E.width/a)/2,(t.height-E.height)/2,E.width/a,E.height),a===1&&g.wR&&(C=z.width-t.height*C,C>0&&(z.width+=C,z.height+=C)));g.Uz(y.element,"ytp-fit-cover-video",Math.max(z.width-E.width,z.height-E.height)<1);if(x||y.py)y.jz.style.display="";y.DF=!0}else{z=-t.height;Kx?z*=window.devicePixelRatio:g.C3&&(z-=window.screen.height);z=new g.yj(0,z,t.width,t.height);if(x||y.py)y.jz.style.display= "none";y.DF=!1}tq(y.zx,z)||(y.zx=z,g.ic(h)?(y.jz.style.setProperty("width",z.width+"px","important"),y.jz.style.setProperty("height",z.height+"px","important")):g.Or(y.jz,z.getSize()),r=new g.Em(z.left,z.top),g.$I(y.jz,Math.round(r.x),Math.round(r.y)),r=!0);t=new g.yj((t.width-E.width)/2,(t.height-E.height)/2,E.width,E.height);tq(y.xU,t)||(y.xU=t,r=!0);g.ry(y.jz,"transform",a===1?"":"scaleX("+a+")");F&&U!==y.IM&&(U&&(y.jz.addEventListener(e1,y.pj),y.jz.addEventListener("transitioncancel",y.pj),y.jz.classList.add(g.e_.VIDEO_CONTAINER_TRANSITIONING)), y.IM=U,y.app.Mr.publish("playerUnderlayVisibilityChange",y.IM?"transitioning":"hidden"));return r}; vx7=function(y){y.Wr=!y.Wr;y.cg=!0;y.element.classList.toggle("ytp-retro-player",y.Wr);y.resize();y.cg=!1;y.app.Mr.W4("onRetroModeChanged",y.Wr)}; pu2=function(){this.csn=g.XE();this.clientPlaybackNonce=null;this.elements=new Set;this.Y=new Set;this.V=new Set;this.K=new Set}; ev7=function(y){if(y.csn!==g.XE())if(y.csn==="UNDEFINED_CSN")y.csn=g.XE();else{var t=g.XE(),a=g.dE();if(t&&a){y.csn=t;for(var r=g.p(y.elements),E=r.next();!E.done;E=r.next())(E=E.value.visualElement)&&E.isClientVe()&&t&&a&&(g.WE("combine_ve_grafts")?Ly(z9(),E,a):g.EO(g.Yt)(void 0,t,a,E))}if(t)for(y=g.p(y.V),a=y.next();!a.done;a=y.next())(a=a.value.visualElement)&&a.isClientVe()&&g.ZB(t,a)}}; Cm=function(y,t){g.H.call(this);this.Y=y;this.H4=t;this.K=0}; lx2=function(y){var t,a,r,E;return g.m(function(h){if(h.V==1){if(y.dW)return h.return();y.dW=new Worker(Re(y.Y),void 0);g.xs(h,2);a=Promise.withResolvers();t=setTimeout(function(){a.reject("timeout")},1E3); y.dW.onerror=function(){a.reject("error")}; y.dW.onmessage=function(){a.resolve();clearTimeout(t)}; return g.u(h,a.promise,4)}if(h.V!=2)return y.dW.onmessage=null,y.dW.onerror=null,y.dW.addEventListener("message",function(F){return void y.onMessage(F)}),y.H4("workerCtor",{}),g.$s(h,0); r=g.Uy(h);clearTimeout(t);(E=y.dW)==null||E.terminate();y.dW.onmessage=null;y.dW.onerror=null;y.dW=void 0;y.H4("workerErr",{e:""+r});g.FU(h)})}; uXN=function(y,t,a){g.m(function(r){if(r.V==1)return g.u(r,lx2(y),2);if(!y.dW)return r.return();y.V=setInterval(function(){y.sendMessage(a)},t); g.FU(r)})}; VFd=function(y){var t;(t=y.dW)==null||t.terminate();y.dW=void 0;y.H4("workerDtor",{})}; g.z7=function(y,t,a,r){g.H.call(this);var E=this;this.logger=new g.kK("App");this.ZT=this.QQ=!1;this.xg={};this.ML=[];this.mY=!1;this.VS=null;this.intentionalPlayback=!1;this.VT=!0;this.Xu=!1;this.z_=this.pR=this.kD=null;this.Vr=!0;this.mediaElement=this.DA=null;this.Oy=NaN;this.e$=!1;this.ao=this.K8=this.tj=this.screenLayer=this.playlist=null;this.Up=[];this.bE=0;this.Wb={Hl:function(){return E.bJ}, Ea:function(){return E.tj}}; if(!a)throw Error("b/179532961");this.D9=(t==null?void 0:t.args)||{};this.webPlayerContextConfig=a;t=this.D9;this.j=new th(t,a,a.canaryState,r);g.c(this,this.j);Y1y(this.j);r=t6V(this.j);this.j.Bb()&&Zm(r,function(F){E.R0("h5vcc",F)}); this.j.experiments.Nr("jspb_serialize_with_worker")&&MiH();this.j.experiments.Nr("gzip_gel_with_worker")&&FT7();this.j.K&&(r=this.j.experiments.pJ().V.o7(l9),UdV(r));this.B("html5_onesie")&&(this.pW=new oR(this.j),g.c(this,this.pW));this.xE=new rT2(ATF(g.OY(this.j),this.j.B5,this.j.experiments),new UyN(this.j.experiments),function(){return void E.fB()}); g.c(this,this.xE);this.Ns=xH(ct(this.j)&&!0,t.enablesizebutton);this.dg=xH(!1,t.player_wide);this.visibility=new lCy;g.c(this,this.visibility);this.B("web_log_theater_mode_visibility")&&this.pG(xH(!1,t.player_wide));this.QQ=xH(!1,t.external_list);this.events=new g.Ci(this);g.c(this,this.events);this.B("start_client_gcf")&&(fs(Qq(),{Sv:$X,CY:vn7()}),this.O4=Qq().resolve($X),lwF(this.O4));this.kvu=new N$;g.c(this,this.kvu);this.JW=new pu2;t=new dO;this.Mr=new g.nf(this,t);g.c(this,this.Mr);this.template= new knx(this);g.c(this,this.template);this.appState=1;this.By=nxH(this);g.c(this,t);t={};this.hE=(t.internalvideodatachange=this.oK,t.playbackready=this.j7v,t.playbackstarted=this.OMv,t.statechange=this.h$X,t);this.hv=new F7(this.Mr);this.Ca=mJN(this);t=this.j.J;!1!==t&&this.R0("badps",{hbp:t,hostname:window.location.hostname,ps:this.j.playerStyle});this.dN=new jiy(this.j,this.Ca);this.Mr.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||PX(this.Ca))&&J$y(this);t=10;g.OY(this.j)&& (t=3);sJ(this.j)&&(t=g.Gw(this.j.experiments,"tvhtml5_unplugged_preload_cache_size"));this.bJ=new g.ci(this.Mr,t);t=oxb(this);this.bJ.Nt(t);HU1(this);t={};this.Tt=(t.airplayactivechange=this.zMG,t.airplayavailabilitychange=this.PKG,t.beginseeking=this.x71,t.sabrCaptionsDataLoaded=this.kOr,t.endseeking=this.gJE,t.internalAbandon=this.vJ5,t.internalaudioformatchange=this.YY0,t.internalvideodatachange=this.wju,t.internalvideoformatchange=this.ls1,t.liveviewshift=this.m75,t.playbackstalledatstart=this.JjG, t.progresssync=this.qYX,t.onAbnormalityDetected=this.KWr,t.onSnackbarMessage=this.rjv,t.onLoadProgress=this.FW4,t.SEEK_COMPLETE=this.CKr,t.SEEK_TO=this.twu,t.onVideoProgress=this.um1,t.onLoadedMetadata=this.Qou,t.onAutoplayBlocked=this.ia0,t.onPlaybackPauseAtStart=this.LWG,t.playbackready=this.as4,t.statechange=this.eR,t.newelementrequired=this.VZ,t.heartbeatparams=this.D7r,t.videoelementevent=this.fsm,t.drmoutputrestricted=this.d7e,t.signatureexpired=this.B77,t.nonfatalerror=this.U7X,t.reloadplayer= this.Mwf,t);this.kc=new g.Ci(this);g.c(this,this.kc);this.CB=new sc(this.j.pJ().V.o7(mdn));g.c(this,this.CB);this.dY=this.Ua=-1;this.rr=new g.Te(this.template.resize,16,this.template);g.c(this,this.rr);this.mL=new Ex1(this.Mr,this.j,this.VW(),this);this.YV=new u9(this);g.c(this,this.YV);this.wR=new QE(this);g.c(this,this.wR);Pe7(this.j.V.c);this.events.N(this.Mr,g.q4("appapi"),this.SSf);this.events.N(this.Mr,g.Ya("appapi"),this.EE4);this.events.N(this.Mr,g.q4("appprogressboundary"),this.GO7);this.events.N(this.Mr, g.Ya("applooprange"),this.by);this.events.N(this.Mr,"presentingplayerstatechange",this.jQ);this.events.N(this.Mr,"resize",this.clv);this.template.g0(MW(document,y));this.events.N(this.Mr,"offlineslatestatechange",this.Hae);this.events.N(this.Mr,"sabrCaptionsTrackChanged",this.DD4);this.events.N(this.Mr,"sabrCaptionsBufferedRangesUpdated",this.gT5);this.Ca.C.G().Wy&&Ng(this.Ca,"offline");this.j.JF&&g.Ul("ux",g.Wi);y=g.Gw(this.j.experiments,"html5_defer_fetch_att_ms");this.aZ=new g.Te(this.wz0,y,this); g.c(this,this.aZ);this.nM().Fm()&&(g.HG()&&this.nM().bv.push("mdx"),bUy(this));this.dN.tick("fs");Bnu(this);this.j.JF&&Ng(this.Ca,"ux",!0);g.bc(this.Ca.C.G())&&Ng(this.Ca,"embed");this.B("web_player_sentinel_is_uniplayer")||g.ls(new g.RV("Player experiment flags missing","web_player_sentinel_is_uniplayer"));y=this.B("web_player_sentinel_yt_experiments_sync");t=g.WE("web_player_sentinel_yt_experiments_sync");y!==t&&g.ls(new g.RV("b/195699950",{yt:y,player:t}));this.Zu=c$7(this);if(y=g.Gw(this.j.experiments, "html5_block_pip_safari_delay"))this.yx=new g.Te(this.Gk,y,this),g.c(this,this.yx);var h;a=p6((h=a==null?void 0:a.trustedEchoWorkerUrl)!=null?h:null);h=this.j.pJ().V.o7(qE7);y=this.j.pJ().V.o7(YE2);a&&h>0&&y>0&&(this.wj=new Cm(a,function(F,x){E.VW().H4(F,x)}),g.c(this,this.wj),uXN(this.wj,h,y)); oB=this.j.XB;this.Mr.publish("applicationInitialized")}; c$7=function(y){function t(a){a.stack&&a.stack.indexOf("player")!==-1&&y.le().Lj(a)} us.subscribe("handleError",t);aB.push(t);return function(){us.unsubscribe("handleError",t);var a=aB.indexOf(t);a!==-1&&aB.splice(a,1)}}; oxb=function(y){var t=new g.hI(y.j,y.D9);y.Mr.publish("initialvideodatacreated",t);return Oc(y,1,t,!1)}; HU1=function(y){var t=y.VW();t.setPlaybackRate(y.j.D?1:DJn(y,Number(g.JU("yt-player-playback-rate"))||1));t.LI(y.hE,y);t.Xn()}; mJN=function(y){var t="",a="",r=dJy(y),E=m0(r,"cb");E&&/^[\w-]+$/.test(E)&&(a=E);r.indexOf("//")===0&&(r=y.j.protocol+":"+r);E=r.lastIndexOf("/base.js");E!==-1&&(t=r.substring(0,E+1));if(r=Error().stack)if(r=r.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))r=r[1],r.includes(t)||g.ls(Error("Player module URL mismatch: "+(r+" vs "+t+".")));t=new qkx(y.Mr,t,a);a={};Ykd(t,(a.destroyed=function(){y.onApiChange()},a)); return t}; nxH=function(y){if(y.j.storeUserVolume){y=g.JU("yt-player-volume")||{};var t=y.volume;y={volume:isNaN(t)?100:g.tE(Math.floor(t),0,100),muted:!!y.muted}}else y={volume:100,muted:y.j.mute};return y}; Lm=function(y){var t=y.j.experiments.pJ().V.o7(l9);var a=y.j.deviceIsAudioOnly;t=t===void 0?!1:t;a=a?t?new g.jo(g.SU("AUDIO")):new g.nB(g.SU("AUDIO")):So.pop()||(t?new g.jo(g.SU("VIDEO")):new g.nB(g.SU("VIDEO")));y.mediaElement=a;g.c(y,y.mediaElement);y.le().setMediaElement(y.mediaElement);try{y.j.nJ?(y.K8&&y.events.Dh(y.K8),y.K8=y.events.N(y.mediaElement,"volumechange",y.SR1)):(y.mediaElement.aX(y.By.muted),y.mediaElement.setVolume(y.By.volume/100))}catch(E){y.Rm("html5.missingapi",2,"UNSUPPORTED_DEVICE", "setvolume.1;emsg."+(E&&typeof E==="object"&&"message"in E&&typeof E.message==="string"&&E.message.replace(/[;:,]/g,"_")));return}g.V1(y.kc);gx7(y);a=y.template;t=y.mediaElement.YE();a.jz=t;a.Y4=!1;a.jz.parentNode||lv(a.xu,a.jz,0);a.zx=new g.yj(0,0,0,0);QwH(a);$g(a);t=a.jz;g.Al(t,"video-stream");g.Al(t,g.e_.MAIN_VIDEO);var r=a.app.G();r.SQ&&t.setAttribute("data-no-fullscreen","true");r.B("html5_local_playsinline")?"playsInline"in Fc()&&(t.playsInline=!0):r.SF&&(t.setAttribute("webkit-playsinline", ""),t.setAttribute("playsinline",""));r.w9&&a.jz&&a.N(t,"click",t.play,t);try{y.mediaElement.activate()}catch(E){y.Rm("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(E&&typeof E==="object"&&"message"in E&&typeof E.message==="string"&&E.message.replace(/[;:,]/g,"_")))}}; KrN=function(y){if(!iU7(y)){var t=y.VW().uJ();t&&(t=t.CN(),t instanceof Promise&&t.catch(function(){})); Ma(y,SL(y.getPlayerStateObject()))}}; gx7=function(y){var t=y.mediaElement;$8()?y.kc.N(t,"webkitpresentationmodechanged",y.mDf):window.document.pictureInPictureEnabled&&(y.kc.N(t,"enterpictureinpicture",function(){y.sX(!0)}),y.kc.N(t,"leavepictureinpicture",function(){y.sX(!1)})); tU&&(y.kc.N(t,"webkitbeginfullscreen",function(){y.Qm(3)}),y.kc.N(t,"webkitendfullscreen",function(){y.Qm(0)}))}; g.wo=function(y,t){return y.bJ.F3(t)||y.bJ.Z}; g.Ixu=function(y,t,a,r){var E=y.dN;t===2&&(E=new jiy(y.j));return new g.cN(y.j,t,E,y.template,function(h,F,x){y.Mr.publish(h,F,x)},function(){return y.Mr.getVisibilityState()},y.visibility,y,y.xE,a,r)}; Oc=function(y,t,a,r,E){y=g.Ixu(y,t,a,E);y=new g.I9(y);r&&y.Xn();return y}; RC=function(y,t){return y.n0(t)?y.VW():t}; Pf=function(y,t){var a=y.le();return t===y.VW()&&y.n0(t)&&y.n0(a)?a:t}; TnH=function(y){if(!Na(y)){var t=kd(y.Ca);t&&!t.created&&D7H(y.Ca)&&t.create()}}; Gnn=function(y){var t=y.getVideoData(),a=y.Ca;tnx(a)||a.WB();!uc&&PX(a)&&xgF(a);Ng(a,"embed");Ng(a,"kids");Ng(a,"remote");Ng(a,"miniplayer");Ng(a,"offline");Ng(a,"unplugged");Ng(a,"ypc",!1,!0);Ng(a,"webgl",!1,!0);aOz(a)||(Ng(a,"captions",!0),Ng(a,"endscreen"),a.TN(),Ng(a,"creatorendscreen",!0));a.D_();a.C.publish("modulesCreated");y.Mr.publish("videoready",t)}; Xp=function(y){y=y.nM();y.Fm();return ZQ(y)}; Bnu=function(y){y.Ah();var t=y.D9;Lm(y);y.events.N(window,"resize",y.oTv);var a=y.nM();y.Mr.v1("onVolumeChange",y.By);if(t&&p97(t)){var r=hh(y.j);r&&!y.QQ&&(t.fetch=0);var E=g.bc(y.j);E&&!y.QQ&&(t.fetch=0);kg(y,t);g.bc(y.j)&&y.dN.tick("ep_pr_s");if(!r||y.QQ)if(E&&!y.QQ)ZUx(y);else if(!a.Fm())y.playlist.onReady(function(){fm(y)})}y.yq(y.VW(),!1,!0); g.D(y.VW().getPlayerState(),128)||(t=yGV(!y.j.deviceIsAudioOnly),t==="fmt.noneavailable"?y.Rm("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):t==="html5.missingapi"?y.Rm(t,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):a&&a.Fm()&&Xp(y)&&(y.j.pA||y.j.Xz)?Wf(y):a.wD?y.Mr.mutedAutoplay({durationMode:a.mutedAutoplayDurationMode}):g.JU("yt-player-playback-on-reload")?(g.Mc("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!y.j.DE}),g.m7("yt-player-playback-on-reload",!1),Wf(y)): OJ(y.j)||ytb(y),g.xp(y.j)||NO(y.j)==="MWEB"?(g.Z4(g.tk(),function(){jH(y)}),g.Z4(g.tk(),function(){hxn()})):(jH(y),hxn()))}; jH=function(y){if(!y.B("use_rta_for_player"))if(y.B("fetch_att_independently"))g.Ge(y.aZ);else{var t=y.getVideoData().botguardData;t&&g.fy(t,y.j,y.getVideoData().sE||"")}}; ytb=function(y){y.Mr.publish("initializingmode");y.Lc(2);Ng(y.Ca,"remote");Ng(y.Ca,"miniplayer")}; Wf=function(y){var t=y.VW();if(g.D(t.getPlayerState(),128))return!1;t=t.getVideoData();Xp(y)&&y.j.Xz&&(So.length&&y.ZT?(SH(y,{muted:!1,volume:y.By.volume},!1),Qx(y,!1)):So.length||y.By.muted||(SH(y,{muted:!0,volume:y.By.volume},!1),Qx(y,!0)));Xp(y)&&g.bc(y.j)&&t.mutedAutoplay&&(SH(y,{muted:!0,volume:y.By.volume},!1),Qx(y,!0));t.yI&&SH(y,{muted:!0,volume:y.By.volume},!1);tV7(y,1,t,!1);var a=y.VW();y.Mr.publish("initializingmode");y.yq(a);y.Lc(3);var r;if(!(r=!y.j.hW)){if(r=y.ao){r=y.ao;var E=y.mediaElement; r=!!E&&E===r.mediaElement}r=r&&y.mY}r&&(y.eQ(),Lm(y),a.setMediaElement(y.mediaElement));a.GA();if(g.D(a.getPlayerState(),128))return!1;t.TR||Ma(y,3);return y.mY=!0}; Na=function(y){y=o9(y.Ca);return!!y&&y.loaded}; al7=function(y,t){if(!y.DA)return!1;var a=y.DA.startTimeMs*.001-1,r=y.DA.endTimeMs*.001;y.DA.type==="repeatChapter"&&r--;return Math.abs(t-a)<=1E-6||Math.abs(t-r)<=1E-6||t>=a&&t<=r}; rty=function(y){var t=y.le();if(y.B("html5_disable_loop_range_for_shorts_ads")&&t.getVideoData().isAd()?0:Rh(t.getVideoData())&&!t.nf())t=vf(y)*1E3-y.getVideoData().JS,y.B("html5_gapless_new_slr")?(y=y.wR,pm(y.app,"gaplessshortslooprange"),t=new g.BK(0,t,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(y=y.app.le())&&y.addCueRange(t)):y.setLoopRange({startTimeMs:0,endTimeMs:t,type:"shortsLoop"})}; EWF=function(y){var t=y.VW();if(!(g.D(t.getPlayerState(),64)&&y.nM().isLivePlayback&&y.DA.startTimeMs<5E3)){if(y.DA.type==="repeatChapter"){var a,r=(a=ydN(y.gN()))==null?void 0:a.Uh(),E;a=(E=y.getVideoData())==null?void 0:E.IR;r instanceof g.bC&&a&&(E=a[rw(a,y.DA.startTimeMs)],r.renderChapterSeekingAnimation(0,E.title));isNaN(Number(y.DA.loopCount))?y.DA.loopCount=0:y.DA.loopCount++;y.DA.loopCount===1&&y.Mr.W4("innertubeCommand",y.getVideoData().QS)}r={yD:"application_loopRangeStart"};if(y.DA.type=== "clips"||y.DA.type==="shortsLoop")r.seekSource=58;t.seekTo(y.DA.startTimeMs*.001,r)}}; DJn=function(y,t){var a=y.Mr.getAvailablePlaybackRates();t=Number(t.toFixed(2));y=a[0];a=a[a.length-1];t<=y?t=y:t>=a?t=a:(y=Math.floor(t*100+.001)%5,t=y===0?t:Math.floor((t-y*.01)*100+.001)/100);return t}; vf=function(y,t){t=g.wo(y,{playerType:t});t=RC(y,t);return eH(y,t.ih(),t)}; eH=function(y,t,a){if(y.n0(a)&&(a=a.getVideoData(),!l0(y))){y=y.mL;for(var r=g.p(y.K),E=r.next();!E.done;E=r.next())if(E=E.value,a.F7===E.F7){t+=E.zr/1E3;break}r=t;y=g.p(y.K);for(E=y.next();!E.done;E=y.next()){E=E.value;if(a.F7===E.F7)break;var h=E.zr/1E3;if(h1&&(E=!1);y.e$&&E===t||(r=r.lock(E?"portrait":"landscape"),r!=null&&r.catch(function(){}),y.e$=!0)}else y.e$&&(y.e$=!1,r.unlock())},JA=function(y,t,a){y.Mr.publish(t,a); var r=g.OY(y.j)||g.ic(y.j)||g.Jf(y.j);if(a&&r){switch(t){case "cuerangemarkersupdated":var E="onCueRangeMarkersUpdated";break;case "cuerangesadded":E="onCueRangesAdded";break;case "cuerangesremoved":E="onCueRangesRemoved"}E&&y.Mr.W4(E,a.map(function(h){return{getId:function(){return this.id}, end:h.end,id:h.getId(),namespace:h.namespace==="ad"?"ad":"",start:h.start,style:h.style,visible:h.visible,markerPositionMs:h.markerPositionMs}}))}},oC=function(y,t,a,r,E,h){a=a===void 0?!0:a; var F=g.wo(y,{playerType:E});if((F.getPlayerType()!==2||y.n0(F))&&!g.BQ(F.getVideoData())){var x=y.bJ.h9;x?x.seekTo(t,{HH:!a,m5:r,yD:"application",seekSource:h}):(F&&F===y.VW()&&y.DA&&!al7(y,t)&&y.setLoopRange(null),y.seekTo(t,a,r,E,h,"_request"))}},RD2=function(y,t,a,r){a&&(y.eQ(),Lm(y)); a=y.le();a.Lk(t);var E=y.getVideoData(),h={};h.video_id=E.videoId;h.adformat=E.adFormat;E.isLivePlayback||(h.start=a.getCurrentTime(),h.resume="1");E.isLivePlayback&&QQ(E)&&g.CF(y.j)&&(h.live_utc_start=a.Pj(),h.resume="1");E.Vv&&(h.vvt=E.Vv);E.J&&(h.vss_credentials_token=E.J,h.vss_credentials_token_type=E.MH);E.oauthToken&&(h.oauth_token=E.oauthToken);h.autoplay=1;h.reload_count=E.r0+1;h.reload_reason=t;E.jF&&(h.unplugged_partner_opt_out=E.jF);E.uK&&(h.ypc_is_premiere_trailer=E.uK);E.playerParams&& (h.player_params=E.playerParams);E.AF&&(h.itct=E.AF);y.loadVideoByPlayerVars(h,void 0,!0,void 0,void 0,r);t==="signature"&&y.tj&&TnH(y)},P27=function(y,t){y.nM().autonavState=t; g.m7("yt-player-autonavstate",t);y.Mr.publish("autonavchange",t)},NS7=function(y){var t=y.getVideoData().o2,a=y.j.T7,r=y.isInline()&&!y.getVideoData().l6,E=y.mediaElement; t||a||r?E.hd():(E.eT(),SH(y,y.By))},u0=function(y){(y=kd(y.gN()))&&y.created&&y.destroy()},l0=function(y){return y.getVideoData().enableServerStitchedDai&&!!y.tj},ds2=function(y,t){t.bounds=y.getBoundingClientRect(); for(var a=g.p(["display","opacity","visibility","zIndex"]),r=a.next();!r.done;r=a.next())r=r.value,t[r]=Aq(y,r);t.hidden=!!y.hidden},dJy=function(y){var t=y.webPlayerContextConfig.trustedJsUrl; return t?p6(t).toString():y.webPlayerContextConfig.jsUrl},XsH=function(y,t){var a=y.F3({playerType:1}); if(a){if(a.getVideoData().clientPlaybackNonce===t)return a;if((y=y.YV.V)&&y.getVideoData().clientPlaybackNonce===t)return y}return null},J$y=function(y){td(y,function(){var t=this; return function r(){var E,h,F,x;return M9(r,function(U){switch(U.V){case 1:return g.sy(U,2),t.dN.tick("wasm_s"),E=PX(t.Ca)?function(C){return Zm(s47(t.Ca),function(z){return z.B0v(C)})}:void 0,g.xs(U,4),h=vq7(t.webPlayerContextConfig.wasmModuleUrl,E,t.R0.bind(t)),F=Rq,h7(U,at(h),6); case 6:x=F(U.K);t.dN.tick(x.V?"wasm_fa":"wasm_fw");Z8z(t.j,x);g.$s(U,2);break;case 4:g.Uy(U),t.dN.tick("wasm_ferr");case 2:g.CI(U),g.zE(U,0)}})}()})},kXF=function(y){return y.name==="TypeError"&&y.stack.includes("/s/player/")&&DY()<=105},fl2=function(y){return y.isTimeout?"NO_BID":"ERR_BID"},W4y=function(){var y=null; FFH().then(function(t){return y=t},function(t){return y=fl2(t)}); return y},jkb=function(){var y=Jx(1E3,"NO_BID"); return g.uY(z27([FFH(),y]).Eh(fl2),function(){y.cancel()})},Hf=function(y){return y.RR?g.qe().o7(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"},b0=function(y){this.player=y; this.Y=this.V=1},vWz=function(y,t,a,r,E,h){t.client||(t.client={}); y.player.G().B("h5_remove_url_for_get_ad_break")||(t.client.originalUrl=a);var F=Ct(a),x=g.Wv(a)?!1:!0;(F||x)&&typeof Intl!=="undefined"&&(t.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);x=g.Wv(a)?!1:!0;if(F||x||r!==""){var U={};a=Am(ws(r)).split("&");var C=new Map;a.forEach(function(z){z=z.split("=");z.length>1&&C.set(z[0].toString(),decodeURIComponent(z[1].toString()))}); C.has("bid")&&(U.bid=C.get("bid"));U.params=[];SAz.forEach(function(z){C.has(z)&&(z={key:z,value:C.get(z)},U.params.push(z))}); QkN(y,U);t.adSignalsInfo=U}t.client.unpluggedAppInfo||(t.client.unpluggedAppInfo={});t.client.unpluggedAppInfo.enableFilterMode=!1;a=E.V.cosver;a!=null&&a!=="cosver"&&(t.client.osVersion=a);a=E.V.cplatform;a!=null&&a!=="cplatform"&&a!==""&&(t.client.platform=a);a=E.V.cmodel;a!=null&&a!=="cmodel"&&(t.client.deviceModel=a);a=E.V.cplayer;a!=null&&a!=="cplayer"&&(t.client.playerType=a);a=E.V.cbrand;a!=null&&a!=="cbrand"&&(t.client.deviceMake=a);t.user||(t.user={});t.user.lockedSafetyMode=!1;g.g9(E)&& N$n(t,h,y.player.getPlayerState(1));if(y=E.livingRoomPoTokenId)t.client.tvAppInfo=Object.assign({},t.client.tvAppInfo,{livingRoomPoTokenId:y})},llx=function(y,t){var a=!1; if(t==="")return a;t.split(",").forEach(function(r){var E={},h={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},F="ACTIVE";r[0]==="!"&&(r=r.substring(1),F="INACTIVE");r=r.split("-");r.length<3||(r[0]in psx&&(h.clientName=psx[r[0]]),r[1]in eDN&&(h.platform=eDN[r[1]]),h.applicationState=F,h.clientVersion=r.length>2?r[2]:"",E.remoteClient=h,y.remoteContexts?y.remoteContexts.push(E):y.remoteContexts=[E],a=!0)}); return a},VVb=function(y){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in uA7))return!1; y=y.split(RegExp("[:&]"));var t=uA7.FLAG_AUTO_CAPTIONS_DEFAULT_ON,a="f"+(1+Math.floor(t/31)).toString();t=1<=2?F[1]:"";var x=msF.test(t),U=Jt2.exec(t);U=U!=null&&U.length>=2?U[1]:"";var C=oWu.exec(t);C=C!=null&&C.length>=2&&!Number.isNaN(Number(C[1]))?Number(C[1]):1;var z=Hr2.exec(t);z=z!=null&&z.length>=2?z[1]:"0";var O=Gu(y.player.G().bW),M=y.player.getVideoData(1),L=g.Gz(M.AF,!0),w="BISCOTTI_ID"in a?a.BISCOTTI_ID:"";vWz(y,L,t,w.toString(),y.player.G(),M);M={splay:!1,lactMilliseconds:a.LACT.toString(),playerHeightPixels:Math.trunc(a.P_H),playerWidthPixels:Math.trunc(a.P_W),vis:Math.trunc(a.VIS), signatureTimestamp:20411,autonavState:Hf(y.player.G())};r&&(r={},llx(r,a.YT_REMOTE)&&(M.mdxContext=r));if(r=br7.includes(O)?void 0:g.BE("PREF")){for(var d=r.split(RegExp("[:&]")),k=0,e=d.length;k1&&v[1].toUpperCase()==="TRUE"){L.user.lockedSafetyMode=!0;break}}M.autoCaptionsDefaultOn=VVb(r)}t=BSz.exec(t);(t=t!=null&&t.length>=2?t[1]:"")&&U&&(L.user.credentialTransferTokens=[{token:t,scope:"VIDEO"}]); t={contentPlaybackContext:M};F={adBlock:Math.trunc(a.AD_BLOCK),params:F,breakIndex:C,breakPositionMs:z,clientPlaybackNonce:a.CPN,topLevelDomain:O,isProxyAdTagRequest:x,context:L,adSignalsInfoString:Am(ws(w.toString())),overridePlaybackContext:t};E!==void 0&&(F.cueProcessedMs=Math.round(E).toString());U&&(F.videoId=U);a.LIVE_TARGETING_CONTEXT&&(F.liveTargetingParams=a.LIVE_TARGETING_CONTEXT);a.AD_BREAK_LENGTH&&(F.breakLengthMs=Math.trunc(a.AD_BREAK_LENGTH*1E3).toString());h&&(F.driftFromHeadMs=h.toString()); F.currentMediaTimeMs=Math.round(y.player.getCurrentTime(1)*1E3);(y=y.player.getGetAdBreakContext())&&(F.getAdBreakContext=y);return F},qA7=function(){b0.apply(this,arguments)},YAz=function(y,t,a,r,E){var h=a.v7; var F=a.vl;var x=y.player.G().T0,U=0;a.cueProcessedMs&&F&&!h&&(a=F.end-F.start,a>0&&(U=Math.floor(a/1E3)));var C={AD_BLOCK:E,AD_BREAK_LENGTH:h?h.iK:U,AUTONAV_STATE:Hf(y.player.G()),CA_TYPE:"image",CPN:y.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:y.player.ZQ()*1E3,LACT:du(),LIVE_INDEX:h?y.Y++:1,LIVE_TARGETING_CONTEXT:h&&h.context?h.context:"",MIDROLL_POS:F?Math.round(F.start/1E3):0,MIDROLL_POS_MS:F?Math.round(F.start):0,VIS:y.player.getVisibilityState(),P_H:y.player.ZE().Zf().height, P_W:y.player.ZE().Zf().width,YT_REMOTE:x?x.join(","):""},z=Mt(Lt);Object.keys(z).forEach(function(O){z[O]!=null&&(C[O.toUpperCase()]=z[O].toString())}); r!==""&&(C.BISCOTTI_ID=r);r={};OO(t)&&(r.sts="20411",(y=y.player.G().forcedExperiments)&&(r.forced_experiments=y));return UO(g.l4(t,C),r)},Ds2=function(y,t){var a=y.player.G(),r,E=(r=y.player.getVideoData(1))==null?void 0:r.oauthToken; return g.wY(a,E).then(function(h){if(h&&zc()){var F=i6();Kf(F,h)}return g.oW(y.player.RS(F),t,"/youtubei/v1/player/ad_break").then(function(x){return x})})},gW7=function(y){this.Um=y},iry=function(y){this.C=y},K41=function(y){this.Um=y},TSn=function(y){g.H.call(this); this.V=y;this.aB=Il2(this)},Il2=function(y){var t=new xhN(y.V.X7); g.c(y,t);y=[new gW7(y.V.Um),new iry(y.V.C),new K41(y.V.Um),new Lk(y.V.KD,y.V.tL),new wX,new Nl(y.V.dK,y.V.zZ,y.V.Um),new Ml,new OU(y.V.zZ)];y=g.p(y);for(var a=y.next();!a.done;a=y.next())s8x(t,a.value);y=g.p(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(a=y.next();!a.done;a=y.next())RH(t,a.value,function(){}); return t},GXy=function(y,t){this.dK=y; this.YG=t},Bf=function(y){var t=y.B4,a=y.YG; y=y.bK;var r={SEm:new GXy(t.get(),a),YG:a};return{rN:new qp(a,y,t),context:r}},cf=function(y,t,a,r,E){g.H.call(this); this.K=t;this.v4=a;this.B4=r;this.ye=E;this.listeners=[];var h=new lm(this);g.c(this,h);h.N(y,"internalAbandon",this.u71);this.addOnDisposeCallback(function(){g.V1(h)})},qa=function(y){this.C=y; this.adVideoId=this.V=this.videoId=this.adCpn=this.contentCpn=null;this.L=!0;this.K=this.Y=!1;this.adFormat=null;this.D="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"},Zrd=function(y){y.contentCpn=null; y.adCpn=null;y.videoId=null;y.adVideoId=null;y.adFormat=null;y.D="AD_PLACEMENT_KIND_UNKNOWN";y.actionType="unknown_type";y.Y=!1;y.K=!1},y6F=function(y,t){y=g.p(t); for(t=y.next();!t.done;t=y.next())if((t=t.value.renderer)&&(t.instreamVideoAdRenderer||t.linearAdSequenceRenderer||t.sandwichedLinearAdRenderer||t.instreamSurveyAdRenderer)){pM("ad_i");g.eW({isMonetized:!0});break}},t2b=function(y){var t; (t=y.C.getVideoData(1))!=null&&t.Z&&(y.K=!1,t={},y.V&&y.videoId&&(t.cttAuthInfo={token:y.V,videoId:y.videoId}),ly("video_to_ad",t))},Yq=function(y){y.K=!1; var t={};y.V&&y.videoId&&(t.cttAuthInfo={token:y.V,videoId:y.videoId});ly("ad_to_video",t);a6n(y)},a6n=function(y){if(y.Y)if(y.D==="AD_PLACEMENT_KIND_START"&&y.actionType==="video_to_ad")SW("video_to_ad"); else{var t={adBreakType:p8(y.D),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:y.videoStreamType};y.actionType==="ad_to_video"?(y.contentCpn&&(t.targetCpn=y.contentCpn),y.videoId&&(t.targetVideoId=y.videoId)):(y.adCpn&&(t.targetCpn=y.adCpn),y.adVideoId&&(t.targetVideoId=y.adVideoId));y.adFormat&&(t.adType=y.adFormat);y.contentCpn&&(t.clientPlaybackNonce=y.contentCpn);y.videoId&&(t.videoId=y.videoId);y.adCpn&&(t.adClientPlaybackNonce= y.adCpn);y.adVideoId&&(t.adVideoId=y.adVideoId);g.eW(t,y.actionType);y.C.G().experiments.Nr("html5_ads_csi_qoes")&&(t=y.C.A_(y.actionType==="ad_to_video"?1:2),t=(0,g.Wx)()-1E3*t,V_("qoes",t,y.actionType))}},Yg=function(y){g.H.call(this); this.C=y;this.V=new Map;this.K=new lm(this);g.c(this,this.K);this.K.N(this.C,g.q4("ad"),this.onCueRangeEnter,this);this.K.N(this.C,g.Ya("ad"),this.onCueRangeExit,this)},r6n=function(y,t,a,r,E,h,F){g.BK.call(this,t,a,{id:y, namespace:"ad",priority:E,visible:r,associatedClipId:h,markerPositionMs:F})},DU=function(y){this.C=y},EN7=function(y,t){y.C.cueVideoByPlayerVars(t,2)},go=function(y){this.C=y},i0=function(y){this.C=y},V4=function(y,t){return y.C.G().B(t)},hoN=function(y){return y.C.G().B("substitute_ad_cpn_macro_in_ssdai")},AY=function(y){var t,a,r; return((t=y.C.getVideoData(1).getPlayerResponse())==null?void 0:(a=t.playerConfig)==null?void 0:(r=a.daiConfig)==null?void 0:r.enableServerStitchedDai)||!1},YU2=function(y){return y.C.G().B("html5_enable_vod_slar_with_notify_pacf")},FLy=function(y){return y.C.G().B("html5_recognize_predict_start_cue_point")},qu=function(y){return y.C.G().experiments.Nr("enable_desktop_player_underlay")},A62=function(y){return y.C.G().experiments.Nr("html5_load_empty_player_in_media_break_sub_lra")},n8=function(y, t){return y.C.G().B("html5_cue_video_for_preroll")&&(t==null?void 0:t.kind)==="AD_PLACEMENT_KIND_START"?!1:y.C.G().experiments.Nr("html5_load_ads_instead_of_cue")},mq=function(y){return y.C.G().experiments.Nr("html5_preload_ads")},xL7=function(y){return y.C.G().experiments.Nr("should_ignore_cuepoints_during_lifa_preroll")},JY=function(y){return y.C.G().experiments.Nr("enable_ads_control_flow_deterministic_id_generation")},sxx=function(y){return y.C.G().experiments.Nr("enable_desktop_discovery_video_abandon_pings")|| FI(y.C.G())},$LV=function(y){return y.C.G().experiments.Nr("enable_progres_commands_lr_feeds")},ULu=function(y){return y.C.G().experiments.Nr("enable_progress_commands_lr_shorts")},x4=function(y){return y.C.G().experiments.Nr("html5_cuepoint_identifier_logging")},Gl7=function(y){y=y.C.getVideoData(1); return!!y&&y.B("html5_preload_first_vod_video_ad")&&!y.isDaiEnabled()&&!y.isLivePlayback},Cju=function(y){return y.C.G().experiments.Nr("html5_ssdai_enable_media_end_cue_range")},zoy=function(y){switch(y){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}},Ol7=function(){g.FM.call(this); var y=this;this.V={};this.addOnDisposeCallback(function(){for(var t=g.p(Object.keys(y.V)),a=t.next();!a.done;a=t.next())delete y.V[a.value]})},Km=function(){if(LLu===null){LLu=new Ol7; un(az).K="b";var y=un(az),t=KP(y)=="h"||KP(y)=="b",a=!(Pv(),!1);t&&a&&(y.L=!0,y.J=new uWx)}return LLu},M2d=function(y,t,a){y.V[t]=a},wOF=function(y){switch(y){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}},IC=function(y,t,a){this.v4=y; this.C=t;this.YG=a;this.K=new Set;this.V=new Map;Km().subscribe("adactiveviewmeasurable",this.kH,this);Km().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Mm,this);Km().subscribe("adviewableimpression",this.BT,this);Km().subscribe("adaudioaudible",this.yT,this);Km().subscribe("adaudiomeasurable",this.qm,this)},G7=function(y,t,a){var r=a.PA,E=a.SM,h=a.listener; a=a.YB;if(y.V.has(t))Ug("Unexpected registration of layout in LidarApi");else{if(a){if(y.K.has(a))return;y.K.add(a)}y.V.set(t,h);Y_(Pv().Yk,"fmd",1);qw7(un(az),r);M2d(Km(),t,{Gz:function(){if(!E)return{};var F=y.C.getPresentingPlayerType(!0),x;return(x=y.C.getVideoData(F))!=null&&x.isAd()?{currentTime:y.v4.get().getCurrentTimeSec(F,!1,void 0),duration:E,isPlaying:T7(y.v4.get(),F).isPlaying(),isVpaid:!1,isYouTube:!0,volume:y.v4.get().isMuted()?0:y.v4.get().getVolume()/100}:{}}})}},ZU=function(y,t){y.V.has(t)? (y.V.delete(t),delete Km().V[t]):Ug("Unexpected unregistration of layout in LidarApi")},Rod=function(y,t){if(y.C.isLifaAdPlaying()){var a=y.C.Vm(!0,!0); y.MY(t,a.width*.5*1.1,a.height*.25*1.1,a.width*.5*.9,a.height*.5*.9)}},dL1=function(y,t){var a={}; Pjy(y,a,t);N5V(a);a.LACT=yC(function(){return du().toString()}); a.VIS=yC(function(){return y.getVisibilityState().toString()}); a.SDKV="h.3.0";a.VOL=yC(function(){return y.isMuted()?"0":Math.round(y.getVolume()).toString()}); a.VED="";return a},XON=function(y,t){var a={}; if(t||!y||!y.kind)return a;if(y.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||y.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!y.adTimeOffset||!y.adTimeOffset.offsetStartMilliseconds)return g.pK(Error("malformed AdPlacementConfig")),a;a.MIDROLL_POS=yC(Yo(Math.round(iA(y.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else a.MIDROLL_POS=yC(Yo("0"));return a},yC=function(y){return{toString:function(){return y()}}},k_1=function(y,t,a){function r(x,U){(U=a[U])&&(h[x]=U)} function E(x,U){(U=a[U])&&(h[x]=F(U))} if(!a||g.pJ(a))return y;var h=Object.assign({},y),F=t?encodeURIComponent:function(x){return x}; E("DV_VIEWABILITY","doubleVerifyViewability");E("IAS_VIEWABILITY","integralAdsViewability");E("MOAT_INIT","moatInit");E("MOAT_VIEWABILITY","moatViewability");r("GOOGLE_VIEWABILITY","googleViewability");r("VIEWABILITY","viewability");return h},Pjy=function(y,t,a){t.CPN=yC(function(){var r; (r=y.getVideoData(1))?r=r.clientPlaybackNonce:(g.ls(Error("Video data is null.")),r=null);return r}); t.AD_MT=yC(function(){if(a!=null)var r=a;else if(y.G().B("enable_h5_shorts_ad_fill_ad_mt_macro")||y.G().B("enable_desktop_discovery_pings_ad_mt_macro")||FI(y.G())){var E=y.getPresentingPlayerType(!0),h;r=((h=y.getVideoData(E))==null?0:h.isAd())?y.getCurrentTime(E,!1):0}else r=y.getCurrentTime(2,!1);return f6b(r)}); t.MT=yC(function(){return f6b(y.getCurrentTime(1,!1))}); t.P_H=yC(function(){return y.ZE().Zf().height.toString()}); t.P_W=yC(function(){return y.ZE().Zf().width.toString()}); t.PV_H=yC(function(){return y.ZE().getVideoContentRect().height.toString()}); t.PV_W=yC(function(){return y.ZE().getVideoContentRect().width.toString()})},f6b=function(y){return Math.round(Math.max(0,y*1E3)).toString()},N5V=function(y){y.CONN=yC(Yo("0")); y.WT=yC(function(){return Date.now().toString()})},WLx=function(){},jxd=function(y,t,a,r,E){var h,F,x,U,C,z,O,M,L,w,d,k,e; g.m(function(v){switch(v.V){case 1:h=!!t.scrubReferrer;F=g.l4(t.baseUrl,k_1(a,h,r));x={};if(!t.headers){v.xG(2);break}U=y.D();if(!U.V){C=U.getValue();v.xG(3);break}return g.u(v,U.V,4);case 4:C=v.K;case 3:z=C;O=g.p(t.headers);for(M=O.next();!M.done;M=O.next())switch(L=M.value,L.headerType){case "VISITOR_ID":g.yd("VISITOR_DATA")&&(x["X-Goog-Visitor-Id"]=g.yd("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.yd("EOM_VISITOR_DATA")&&(x["X-Goog-EOM-Visitor-Id"]=g.yd("EOM_VISITOR_DATA"));break;case "USER_AUTH":z&& (x.Authorization="Bearer "+z);break;case "PLUS_PAGE_ID":(w=y.L())&&(x["X-Goog-PageId"]=w);break;case "AUTH_USER":d=y.V();!z&&d&&(x["X-Goog-AuthUser"]=d);break;case "DATASYNC_ID":if(k=void 0,(k=y.Y())==null?0:k.Nr("enable_datasync_id_header_in_web_vss_pings"))e=y.K(),Ct(F)&&g.yd("LOGGED_IN")&&e&&(x["X-YouTube-DataSync-Id"]=e)}"X-Goog-EOM-Visitor-Id"in x&&"X-Goog-Visitor-Id"in x&&delete x["X-Goog-Visitor-Id"];case 2:g.JR(F,void 0,h,Object.keys(x).length!==0?x:void 0,"",!0,E),g.FU(v)}})},SCy=function(y, t,a,r,E){this.D=y; this.L=t;this.V=a;this.K=r;this.Y=E},Qx7=function(y,t){this.V=y; this.YG=t},te=function(y,t,a,r,E,h){var F=F===void 0?new SCy(function(){var x=y.G(),U=y.getVideoData(1); return g.wY(x,U?g.y$(U):"")},function(){return y.G().pageId},function(){return y.G().DE},function(){var x; return(x=y.G().datasyncId)!=null?x:""},function(){return y.G().experiments}):F; this.C=y;this.K=t;this.KJ=a;this.B4=r;this.rN=E;this.YG=h;this.D=F;this.K9=null;this.V=new Map;this.Y=new Qx7(F,this.YG)},pOH=function(y,t,a,r,E){var h=wt(y.K.get(),a); h?(a=zk(y,vN7(h),h,void 0,void 0,r),t.hasOwnProperty("baseUrl")?y.D.send(t,a):y.Y.send(t,a,{},E)):Ug("Trying to ping from an unknown layout",void 0,void 0,{layoutId:a})},wj7=function(y,t,a,r,E,h){r=r===void 0?[]:r; var F=wt(y.K.get(),t);if(F){var x=y.KJ.get().JV(t,a),U=zk(y,vN7(F),F,E,h);r.forEach(function(C,z){C.baseUrl&&(y.Y.send(C.baseUrl,U,x,C.attributionSrcMode),C.serializedAdPingMetadata&&y.rN.V("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,F,new NJ1(C,z),void 0,void 0,F.adLayoutLoggingData))})}else Ug("Trying to track from an unknown layout.",void 0,void 0,{layoutId:t, trackingType:a})},FZ=function(y,t){y.C.sendVideoStatsEngageEvent(t,void 0,2)},K8=function(y,t){g.Mc("adsClientStateChange",t)},eoz=function(y,t){y.V.has(t.dB())?Ug("Trying to register an existing AdErrorInfoSupplier."):y.V.set(t.dB(),t)},l6V=function(y,t){y.V.delete(t.dB())||Ug("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")},Gy=function(y,t,a){typeof a==="string"?y.C.getVideoData(1).Tu(t,a):y.C.getVideoData(1).H4(t,a)},vN7=function(y){var t=Yb(y.clientMetadata,"metadata_type_ad_placement_config"); y=Yb(y.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:t,x9:y}},zk=function(y,t,a,r,E,h){var F=a?u07(y):{},x=a?V27(y,a.layoutId):{},U=nNu(y),C,z=E!=null?E:(C=t0(y.B4.get(),2))==null?void 0:C.clientPlaybackNonce; E={};y=Object.assign({},dL1(y.C,r),XON(t.adPlacementConfig,(a==null?void 0:a.renderingContent)!==void 0),x,F,U,(E.FINAL=yC(function(){return"1"}),E.AD_CPN=yC(function(){return z||""}),E)); (a==null?void 0:a.renderingContent)!==void 0||(y.SLOT_POS=yC(function(){return(t.x9||0).toString()})); a={};h=Object.assign({},y,h);y=g.p(Object.values(mLu));for(r=y.next();!r.done;r=y.next())r=r.value,F=h[r],F!=null&&F.toString()!=null&&(a[r]=F.toString());return a},u07=function(y){var t={},a,r=(a=y.K9)==null?void 0:a.Kx/1E3; r!=null&&(t.SURVEY_ELAPSED_MS=yC(function(){return Math.round(r*1E3).toString()})); t.SURVEY_LOCAL_TIME_EPOCH_S=yC(function(){return Math.round(Date.now()/1E3).toString()}); return t},V27=function(y,t){y=y.V.get(t); if(!y)return{};y=y.Ma();if(!y)return{};t={};return t.YT_ERROR_CODE=y.RF.toString(),t.ERRORCODE=y.GQ.toString(),t.ERROR_MSG=y.errorMessage,t},nNu=function(y){var t={},a=y.C.getVideoData(1); t.ASR=yC(function(){var r;return(r=a==null?void 0:a.E$)!=null?r:null}); t.EI=yC(function(){var r;return(r=a==null?void 0:a.eventId)!=null?r:null}); return t},av=function(y,t,a){g.H.call(this); this.C=y;this.Jc=t;this.YG=a;this.listeners=[];this.rg=null;this.S5=new Map;t=new g.Ci(this);g.c(this,t);t.N(y,"videodatachange",this.Z0m);t.N(y,"serverstitchedvideochange",this.UDG);this.QC=t0(this)},t0=function(y,t){var a=y.C.getVideoData(t); return a?y.PV(a,t||y.C.getPresentingPlayerType(!0)):null},J6x=function(y,t,a){var r=y.PV(t,a); y.QC=r;y.listeners.forEach(function(E){E.Tj(r)})},rr=function(y,t){g.H.call(this); this.C=y;this.B4=t;this.listeners=[];this.CE=[];this.uB=function(){Ug("Called 'doUnlockPreroll' before it's initialized.")}; t=new lm(this);var a=new g.Ci(this);g.c(this,a);g.c(this,t);t.N(y,"progresssync",this.SYm);t.N(y,"presentingplayerstatechange",this.yjv);t.N(y,"fullscreentoggled",this.onFullscreenToggled);t.N(y,"onVolumeChange",this.onVolumeChange);t.N(y,"minimized",this.A9);t.N(y,"overlayvisibilitychange",this.J1);t.N(y,"shortsadswipe",this.fL);t.N(y,"resize",this.Gl);a.N(y,g.q4("appad"),this.Be)},oNH=function(y,t){y.CE=y.CE.filter(function(a){return a!==t})},E8=function(y,t,a){return y.getCurrentTimeSec(t,a)}, he=function(y,t){var a; t=(a=y.B4.get().S5.get(t))!=null?a:null;if(t===null)return Ug("Expected ad video start time on playback timeline"),0;y=y.C.getCurrentTime(2,!0);return y0){var h=t.end.toString();E.forEach(function(F){(F=F.config&&F.config.adPlacementConfig)&&F.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&F.adTimeOffset&&F.adTimeOffset.offsetEndMilliseconds==="-1"&&F.adTimeOffset.offsetEndMilliseconds!==h&&(F.adTimeOffset.offsetEndMilliseconds=h)}); r.map(function(F){return g.P(F,Nu)}).forEach(function(F){var x; (F=F==null?void 0:(x=F.slotEntryTrigger)==null?void 0:x.mediaTimeRangeTrigger)&&F.offsetEndMilliseconds==="-1"&&(F.offsetEndMilliseconds=h)})}return{n4:E, adSlots:r,nG:!1,ssdaiAdsConfig:y.ssdaiAdsConfig}},$V=function(y){g.H.call(this); this.C=y;this.listeners=[];this.V=new lm(this);g.c(this,this.V);this.V.N(this.C,"aduxclicked",this.onAdUxClicked);this.V.N(this.C,"aduxmouseover",this.cZ);this.V.N(this.C,"aduxmouseout",this.IK);this.V.N(this.C,"muteadaccepted",this.Rd7)},YCn=function(y,t,a){t=g.v$(t,function(r){return new Pmy(r,a,r.id)}); y.C.W4("onAdUxUpdate",t)},U8=function(y,t){y=g.p(y.listeners); for(var a=y.next();!a.done;a=y.next())t(a.value)},CO=function(y,t){this.K=y; this.Y=t===void 0?!1:t;this.V={}},DLN=function(y,t){var a=y.startSecs+y.iK; a=a<=0?null:a;if(a===null)return null;switch(y.event){case "start":case "continue":case "stop":break;case "predictStart":if(t)break;return null;default:return null}t=Math.max(y.startSecs,0);return{s4:new fe(t,a),w40:new $v(t,a-t,y.context,y.identifier,y.event,y.V)}},gNx=function(){this.V=[]},oZb=function(y,t,a){var r=g.CJ(y.V,t); if(r>=0)return t;t=-r-1;return t>=y.V.length||y.V[t]>a?null:y.V[t]},zY=function(y,t,a){g.H.call(this); this.C=y;this.YG=t;this.Um=a;this.listeners=[];this.D=!1;this.A7=[];this.V=null;this.L=new CO(this,FLy(t.get()));this.Y=new gNx;this.K=null},il1=function(y,t){y.A7.push(t); for(var a=!1,r=g.p(y.listeners),E=r.next();!E.done;E=r.next())a=E.value.WZ(t)||a;y.D=a;x4(y.YG.get())&&Gy(y.Um.get(),"onci","cpi."+t.identifier+";cpe."+t.event+";cps."+t.startSecs+";cbi."+a)},I6F=function(y,t){K8(y.Um.get(),{cuepointTrigger:{event:KLF(t.event), cuepointId:t.identifier,totalCueDurationMs:t.iK*1E3,playheadTimeMs:t.V,cueStartTimeMs:t.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:y.C.getVideoData(1).clientPlaybackNonce}})},KLF=function(y){switch(y){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 SE(y,"Unexpected cuepoint event")}},O8=function(y){this.C=y},LO=function(y){this.C=y},T52=function(y){switch(y){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:SE(y,"unknown transitionReason")}},M1=function(){g.H.apply(this,arguments); this.dh4=new Map},G_x=function(y){this.C=y},Zl1=function(y,t,a,r,E){g.H.call(this); var h=this,F=SG(function(){return new mx(h.YG)}); g.c(this,F);var x=SG(function(){return new o5(F)}); g.c(this,x);var U=SG(function(){return new Lq}); g.c(this,U);var C=SG(function(){return new zi(y)}); g.c(this,C);var z=SG(function(){return new HZ(F,x,h.YG)}); g.c(this,z);var O=SG(function(){return new Y4}); g.c(this,O);this.VD=SG(function(){return new $V(t)}); g.c(this,this.VD);this.a7=SG(function(){return new vK(E)}); g.c(this,this.a7);this.mJ=SG(function(){return new qa(t)}); g.c(this,this.mJ);this.KM=SG(function(){return new Yg(t)}); g.c(this,this.KM);this.BO=SG(function(){return new DU(t)}); g.c(this,this.BO);this.X7=SG(function(){return new go(t)}); g.c(this,this.X7);this.YG=SG(function(){return new i0(t)}); g.c(this,this.YG);var M=SG(function(){return new s8(r)}); g.c(this,M);var L=SG(function(){return new Z1(h.YG)}); g.c(this,L);this.ys=SG(function(){return new O8(t)}); g.c(this,this.ys);this.MN=SG(function(){return new ld}); g.c(this,this.MN);this.B4=SG(function(){return new av(t,O,h.YG)}); g.c(this,this.B4);var w=Bf({B4:this.B4,YG:this.YG,bK:L}),d=w.context;this.rN=w.rN;this.ye=SG(function(){return new zY(t,h.YG,h.Um)}); g.c(this,this.ye);this.wV=SG(function(){return new LO(t)}); g.c(this,this.wV);this.v4=SG(function(){return new rr(t,h.B4)}); g.c(this,this.v4);this.Yn=SG(function(){return new M1}); g.c(this,this.Yn);w=SG(function(){return new rt(F,z,x,h.YG,L,"SLOT_TYPE_ABOVE_FEED",h.v4,h.Df,h.ai)}); g.c(this,w);this.qD=SG(function(){return new ud(h.YG)}); this.KJ=SG(function(){return new IC(h.v4,t,h.YG)}); g.c(this,this.KJ);this.Um=SG(function(){return new te(t,U,h.KJ,h.B4,h.rN,h.YG)}); g.c(this,this.Um);this.X5=new UB($4,wr,function(e,v,l,V){return co(x.get(),e,v,l,V)},C,z,x,L,this.YG,this.B4); g.c(this,this.X5);this.Io=new Cq(C,w,a,y,this.B4,this.v4,this.mJ);g.c(this,this.Io);var k=new cf(t,this.Io,this.v4,this.B4,this.ye);this.vz=SG(function(){return k}); this.Jr=k;this.Df=new FD(C,z,this.vz,this.ye,this.v4,this.YG,this.Um,this.wV);g.c(this,this.Df);this.Mh=new OB(C,z,this.KM,this.vz,d);g.c(this,this.Mh);this.sY=new Q9(this.YG,C,z,w,this.B4,this.Mh,a,this.BO);g.c(this,this.sY);this.A1=SG(function(){return new Tv(M,x,L,h.YG,h.Um,h.v4,h.wV)}); g.c(this,this.A1);this.jw=SG(function(){return new Gv}); g.c(this,this.jw);this.n_=new XD(y,this.VD,this.YG);g.c(this,this.n_);this.bY=new k4(y);g.c(this,this.bY);this.iT=new fq(y);g.c(this,this.iT);this.gO=new jB(y,this.vz,d);g.c(this,this.gO);this.C0=new SB(y,this.KM,this.v4,this.B4);g.c(this,this.C0);this.PT=new Q7(y,this.B4);g.c(this,this.PT);this.ai=new eB(y,this.ye,this.v4,this.Um,this.vz,this.Df);g.c(this,this.ai);this.hm=new vZ(y);g.c(this,this.hm);this.zR=new nq(y);g.c(this,this.zR);this.uh=new pq(y);g.c(this,this.uh);this.aI=new V7(y);g.c(this, this.aI);this.zR=new nq(y);g.c(this,this.zR);this.TO=SG(function(){return new R5}); g.c(this,this.TO);this.We=SG(function(){return new PZ(h.v4)}); g.c(this,this.We);this.Pu=SG(function(){return new mcx(h.VD,h.Um,y,U,h.KJ)}); g.c(this,this.Pu);this.h1=SG(function(){return new mu(h.sY,C,F)}); g.c(this,this.h1);this.Pe=SG(function(){return new H7(h.YG,h.Um,h.hm,h.KJ)}); g.c(this,this.Pe);this.pL=SG(function(){return new hN(y,h.zR,h.hm,h.B4,h.wV,h.v4,h.Yn,h.Um,O,h.ye,h.KJ,h.qD,h.BO,h.KM,h.mJ,h.X7,h.a7,h.ys,h.YG,U,d)}); g.c(this,this.pL);this.DZ=SG(function(){return new Gx7(h.v4,h.Um,h.a7,h.YG,h.KJ,h.B4)}); g.c(this,this.DZ);this.Ie=SG(function(){return new sWN(h.VD,h.v4,h.Um,U,h.KJ,h.iT,h.aI,h.a7,h.YG,a)}); g.c(this,this.Ie);this.SW=SG(function(){return new J4x(h.VD,h.Um,U)}); g.c(this,this.SW);this.TG=new xV(y,this.MN,F);g.c(this,this.TG);this.xX={eA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sY],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Df],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.X5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Io],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Mh]]),wU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.A1],["SLOT_TYPE_ABOVE_FEED",this.jw],["SLOT_TYPE_FORECASTING",this.jw], ["SLOT_TYPE_IN_PLAYER",this.jw],["SLOT_TYPE_PLAYER_BYTES",this.jw],["SLOT_TYPE_PLAYER_UNDERLAY",this.jw],["SLOT_TYPE_PLAYBACK_TRACKING",this.jw],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.jw]]),yn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.n_],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.n_],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.bY],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.bY],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.bY],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.bY],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.bY],["TRIGGER_TYPE_SLOT_ID_EXITED",this.bY],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.bY],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.bY],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.bY],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.bY],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.bY],["TRIGGER_TYPE_CLOSE_REQUESTED",this.iT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gO],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.C0],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.C0],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.C0],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.C0],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.C0],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.C0],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.C0],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.PT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.PT],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hm],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.gO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.uh],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.aI],["TRIGGER_TYPE_AD_BREAK_STARTED",this.zR],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.ai],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.ai],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.ai],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.ai],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.ai]]),Yl:new Map([["SLOT_TYPE_ABOVE_FEED",this.TO], ["SLOT_TYPE_AD_BREAK_REQUEST",this.TO],["SLOT_TYPE_FORECASTING",this.TO],["SLOT_TYPE_IN_PLAYER",this.TO],["SLOT_TYPE_PLAYER_BYTES",this.We],["SLOT_TYPE_PLAYER_UNDERLAY",this.TO],["SLOT_TYPE_PLAYBACK_TRACKING",this.TO],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.TO]]),mN:new Map([["SLOT_TYPE_ABOVE_FEED",this.Pu],["SLOT_TYPE_AD_BREAK_REQUEST",this.h1],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_PLAYER_BYTES",this.pL],["SLOT_TYPE_PLAYBACK_TRACKING",this.DZ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.DZ],["SLOT_TYPE_IN_PLAYER",this.Ie],["SLOT_TYPE_PLAYER_UNDERLAY",this.SW]])};this.listeners=[U.get()];this.J5={sY:this.sY,zZ:this.YG.get(),ue:this.a7.get(),P9:this.v4.get(),Io:this.Io,TW:F.get(),Yi:this.MN.get(),tL:this.n_,KD:U.get(),dK:this.B4.get()}},yzN=function(y,t,a,r,E){g.H.call(this); var h=this,F=SG(function(){return new mx(h.YG)}); g.c(this,F);var x=SG(function(){return new o5(F)}); g.c(this,x);var U=SG(function(){return new Lq}); g.c(this,U);var C=SG(function(){return new zi(y)}); g.c(this,C);var z=SG(function(){return new HZ(F,x,h.YG)}); g.c(this,z);var O=SG(function(){return new Y4}); g.c(this,O);this.VD=SG(function(){return new $V(t)}); g.c(this,this.VD);this.a7=SG(function(){return new vK(E)}); g.c(this,this.a7);this.mJ=SG(function(){return new qa(t)}); g.c(this,this.mJ);this.KM=SG(function(){return new Yg(t)}); g.c(this,this.KM);this.BO=SG(function(){return new DU(t)}); g.c(this,this.BO);this.X7=SG(function(){return new go(t)}); g.c(this,this.X7);this.YG=SG(function(){return new i0(t)}); g.c(this,this.YG);var M=SG(function(){return new s8(r)}); g.c(this,M);var L=SG(function(){return new Z1(h.YG)}); g.c(this,L);var w=SG(function(){return new rt(F,z,x,h.YG,L,null,null,h.Df,h.ai)}); g.c(this,w);this.ys=SG(function(){return new O8(t)}); g.c(this,this.ys);this.MN=SG(function(){return new ld}); g.c(this,this.MN);this.B4=SG(function(){return new av(t,O,h.YG)}); g.c(this,this.B4);var d=Bf({B4:this.B4,YG:this.YG,bK:L}),k=d.context;this.rN=d.rN;this.ye=SG(function(){return new zY(t,h.YG,h.Um)}); this.v4=SG(function(){return new rr(t,h.B4)}); g.c(this,this.v4);this.Yn=SG(function(){return new M1}); g.c(this,this.Yn);this.KJ=SG(function(){return new IC(h.v4,t,h.YG)}); g.c(this,this.KJ);this.Um=SG(function(){return new te(t,U,h.KJ,h.B4,h.rN,h.YG)}); g.c(this,this.Um);this.qD=SG(function(){return new ud(h.YG)}); g.c(this,this.qD);this.X5=new UB($4,wr,function(v,l,V,B){return co(x.get(),v,l,V,B)},C,z,x,L,this.YG,this.B4); g.c(this,this.X5);this.Io=new Cq(C,w,a,y,this.B4,this.v4,this.mJ);g.c(this,this.Io);var e=new cf(t,this.Io,this.v4,this.B4,this.ye);this.vz=SG(function(){return e}); this.Jr=e;this.Df=new FD(C,z,this.vz,this.ye,this.v4,this.YG,this.Um);g.c(this,this.Df);this.Mh=new OB(C,z,this.KM,this.vz,k);g.c(this,this.Mh);this.sY=new Q9(this.YG,C,z,w,this.B4,this.Mh,a,this.BO);g.c(this,this.sY);this.A1=SG(function(){return new Tv(M,x,L,h.YG,h.Um,h.v4)}); g.c(this,this.A1);this.jw=SG(function(){return new Gv}); g.c(this,this.jw);this.n_=new XD(y,this.VD,this.YG);g.c(this,this.n_);this.bY=new k4(y);g.c(this,this.bY);this.iT=new fq(y);g.c(this,this.iT);this.gO=new jB(y,this.vz,k);g.c(this,this.gO);this.C0=new SB(y,this.KM,this.v4,this.B4);g.c(this,this.C0);this.hm=new vZ(y);g.c(this,this.hm);this.uh=new pq(y);g.c(this,this.uh);this.aI=new V7(y);g.c(this,this.aI);this.wV=SG(function(){return new LO(t)}); g.c(this,this.wV);this.zR=new nq(y);g.c(this,this.zR);this.ai=new eB(y,this.ye,this.v4,this.Um,this.vz,this.Df);g.c(this,this.ai);this.TO=SG(function(){return new R5}); g.c(this,this.TO);this.We=SG(function(){return new PZ(h.v4)}); g.c(this,this.We);this.h1=SG(function(){return new mu(h.sY,C,F)}); g.c(this,this.h1);this.Pe=SG(function(){return new H7(h.YG,h.Um,h.hm,h.KJ)}); g.c(this,this.Pe);this.Ie=SG(function(){return new $_7(h.VD,h.v4,h.Um,U,h.KJ,h.iT,h.aI,h.a7,h.YG,a)}); g.c(this,this.Ie);this.pL=SG(function(){return new Fi(y,h.zR,h.hm,h.Um,h.KJ,h.qD,h.BO,h.B4,h.v4,h.Yn,h.KM,h.mJ,h.X7,h.a7,h.ys,h.YG,h.wV,k)}); g.c(this,this.pL);this.TG=new xV(y,this.MN,F);g.c(this,this.TG);this.xX={eA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sY],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Df],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.X5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Io],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Mh]]),wU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.A1],["SLOT_TYPE_FORECASTING",this.jw],["SLOT_TYPE_IN_PLAYER",this.jw], ["SLOT_TYPE_PLAYER_BYTES",this.jw]]),yn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.n_],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.bY],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.bY],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.bY],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.bY],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.bY],["TRIGGER_TYPE_SLOT_ID_EXITED",this.bY],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.bY],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.bY],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.bY], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.bY],["TRIGGER_TYPE_CLOSE_REQUESTED",this.iT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.C0],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.C0],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.C0],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hm],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.uh],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.aI],["TRIGGER_TYPE_AD_BREAK_STARTED",this.zR],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.ai],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.ai],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.ai],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.ai],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.ai]]),Yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TO],["SLOT_TYPE_FORECASTING",this.TO],["SLOT_TYPE_IN_PLAYER",this.TO],["SLOT_TYPE_PLAYER_BYTES",this.We]]), mN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h1],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER",this.Ie],["SLOT_TYPE_PLAYER_BYTES",this.pL]])};this.listeners=[U.get()];this.J5={sY:this.sY,zZ:this.YG.get(),ue:this.a7.get(),P9:this.v4.get(),Io:this.Io,TW:F.get(),Yi:this.MN.get(),tL:this.n_,KD:U.get(),dK:this.B4.get()}},tz7=function(y,t,a,r,E){g.H.call(this); var h=this,F=SG(function(){return new mx(h.YG)}); g.c(this,F);var x=SG(function(){return new o5(F)}); g.c(this,x);var U=SG(function(){return new Lq}); g.c(this,U);var C=SG(function(){return new zi(y)}); g.c(this,C);var z=SG(function(){return new HZ(F,x,h.YG)}); g.c(this,z);var O=SG(function(){return new Y4}); g.c(this,O);this.VD=SG(function(){return new $V(t)}); g.c(this,this.VD);this.a7=SG(function(){return new vK(E)}); g.c(this,this.a7);this.mJ=SG(function(){return new qa(t)}); g.c(this,this.mJ);this.KM=SG(function(){return new Yg(t)}); g.c(this,this.KM);this.BO=SG(function(){return new DU(t)}); g.c(this,this.BO);this.X7=SG(function(){return new go(t)}); g.c(this,this.X7);this.YG=SG(function(){return new i0(t)}); g.c(this,this.YG);var M=SG(function(){return new s8(r)}); g.c(this,M);var L=SG(function(){return new Z1(h.YG)}); g.c(this,L);var w=SG(function(){return new rt(F,z,x,h.YG,L,null,null,null,null)}); g.c(this,w);this.ys=SG(function(){return new O8(t)}); g.c(this,this.ys);this.B4=SG(function(){return new av(t,O,h.YG)}); g.c(this,this.B4);var d=Bf({B4:this.B4,YG:this.YG,bK:L}),k=d.context;this.rN=d.rN;this.v4=SG(function(){return new rr(t,h.B4)}); g.c(this,this.v4);this.Yn=SG(function(){return new M1}); g.c(this,this.Yn);this.KJ=SG(function(){return new IC(h.v4,t,h.YG)}); g.c(this,this.KJ);this.Um=SG(function(){return new te(t,U,h.KJ,h.B4,h.rN,h.YG)}); g.c(this,this.Um);this.qD=SG(function(){return new ud(h.YG)}); g.c(this,this.qD);this.X5=new UB($4,wr,function(v,l,V,B){return co(x.get(),v,l,V,B)},C,z,x,L,this.YG,this.B4); g.c(this,this.X5);this.Io=new Cq(C,w,a,y,this.B4,this.v4,this.mJ);g.c(this,this.Io);var e=new cf(t,this.Io,this.v4,this.B4);this.vz=SG(function(){return e}); this.Jr=e;this.Mh=new OB(C,z,this.KM,this.vz,k);g.c(this,this.Mh);this.sY=new Q9(this.YG,C,z,w,this.B4,this.Mh,a,this.BO);g.c(this,this.sY);this.A1=SG(function(){return new Tv(M,x,L,h.YG,h.Um,h.v4)}); g.c(this,this.A1);this.jw=SG(function(){return new Gv}); g.c(this,this.jw);this.n_=new XD(y,this.VD,this.YG);g.c(this,this.n_);this.bY=new k4(y);g.c(this,this.bY);this.gO=new jB(y,this.vz,k);g.c(this,this.gO);this.C0=new SB(y,this.KM,this.v4,this.B4);g.c(this,this.C0);this.hm=new vZ(y);g.c(this,this.hm);this.uh=new pq(y);g.c(this,this.uh);this.wV=SG(function(){return new LO(t)}); g.c(this,this.wV);this.zR=new nq(y);g.c(this,this.zR);this.TO=SG(function(){return new R5}); g.c(this,this.TO);this.We=SG(function(){return new PZ(h.v4)}); g.c(this,this.We);this.h1=SG(function(){return new mu(h.sY,C,F)}); g.c(this,this.h1);this.Pe=SG(function(){return new H7(h.YG,h.Um,h.hm,h.KJ)}); g.c(this,this.Pe);this.q4=SG(function(){return new IBH(h.VD,h.v4,h.Um,U,a,h.YG)}); g.c(this,this.q4);this.pL=SG(function(){return new Fi(y,h.zR,h.hm,h.Um,h.KJ,h.qD,h.BO,h.B4,h.v4,h.Yn,h.KM,h.mJ,h.X7,h.a7,h.ys,h.YG,h.wV,k)}); g.c(this,this.pL);this.xX={eA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sY],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.X5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Io],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Mh]]),wU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.A1],["SLOT_TYPE_FORECASTING",this.jw],["SLOT_TYPE_IN_PLAYER",this.jw],["SLOT_TYPE_PLAYER_BYTES",this.jw]]),yn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.n_],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.bY],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.bY],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.bY],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.bY],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.bY],["TRIGGER_TYPE_SLOT_ID_EXITED",this.bY],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.bY],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.bY],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.bY],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.C0],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.C0],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hm],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.uh],["TRIGGER_TYPE_AD_BREAK_STARTED",this.zR]]),Yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TO],["SLOT_TYPE_ABOVE_FEED",this.TO],["SLOT_TYPE_FORECASTING",this.TO],["SLOT_TYPE_IN_PLAYER",this.TO],["SLOT_TYPE_PLAYER_BYTES",this.We]]),mN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h1],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER", this.q4],["SLOT_TYPE_PLAYER_BYTES",this.pL]])};this.listeners=[U.get()];this.J5={sY:this.sY,zZ:this.YG.get(),ue:this.a7.get(),P9:this.v4.get(),Io:this.Io,TW:F.get(),Yi:null,tL:this.n_,KD:U.get(),dK:this.B4.get()}},avF=function(y,t,a,r,E){g.H.call(this); var h=this,F=SG(function(){return new mx(h.YG)}); g.c(this,F);var x=SG(function(){return new o5(F)}); g.c(this,x);var U=SG(function(){return new Lq}); g.c(this,U);var C=SG(function(){return new zi(y)}); g.c(this,C);var z=SG(function(){return new HZ(F,x,h.YG)}); g.c(this,z);var O=SG(function(){return new Y4}); g.c(this,O);this.T1=SG(function(){return new G_x(t)}); g.c(this,this.T1);this.VD=SG(function(){return new $V(t)}); g.c(this,this.VD);this.a7=SG(function(){return new vK(E)}); g.c(this,this.a7);this.mJ=SG(function(){return new qa(t)}); g.c(this,this.mJ);this.KM=SG(function(){return new Yg(t)}); g.c(this,this.KM);this.BO=SG(function(){return new DU(t)}); g.c(this,this.BO);this.X7=SG(function(){return new go(t)}); g.c(this,this.X7);this.YG=SG(function(){return new i0(t)}); g.c(this,this.YG);var M=SG(function(){return new s8(r)}); g.c(this,M);var L=SG(function(){return new Z1(h.YG)}); g.c(this,L);var w=SG(function(){return new rt(F,z,x,h.YG,L,null,null,null,null)}); g.c(this,w);this.ys=SG(function(){return new O8(t)}); g.c(this,this.ys);this.B4=SG(function(){return new av(t,O,h.YG)}); g.c(this,this.B4);var d=Bf({B4:this.B4,YG:this.YG,bK:L}),k=d.context;this.rN=d.rN;this.v4=SG(function(){return new rr(t,h.B4)}); g.c(this,this.v4);this.Yn=SG(function(){return new M1}); g.c(this,this.Yn);this.KJ=SG(function(){return new IC(h.v4,t,h.YG)}); g.c(this,this.KJ);this.Um=SG(function(){return new te(t,U,h.KJ,h.B4,h.rN,h.YG)}); g.c(this,this.Um);this.qD=SG(function(){return new ud(h.YG)}); g.c(this,this.qD);this.X5=new UB(KjH,wr,function(v,l,V,B){return wl7(x.get(),v,l,V,B)},C,z,x,L,this.YG,this.B4); g.c(this,this.X5);this.Io=new Cq(C,w,a,y,this.B4,this.v4,this.mJ);g.c(this,this.Io);var e=new cf(t,this.Io,this.v4,this.B4);this.vz=SG(function(){return e}); this.Jr=e;this.Mh=new OB(C,z,this.KM,this.vz,k);g.c(this,this.Mh);this.sY=new Q9(this.YG,C,z,w,this.B4,this.Mh,a,this.BO);g.c(this,this.sY);this.A1=SG(function(){return new Tv(M,x,L,h.YG,h.Um,h.v4)}); g.c(this,this.A1);this.jw=SG(function(){return new Gv}); g.c(this,this.jw);this.n_=new XD(y,this.VD,this.YG);g.c(this,this.n_);this.bY=new k4(y);g.c(this,this.bY);this.gO=new jB(y,this.vz,k);g.c(this,this.gO);this.C0=new SB(y,this.KM,this.v4,this.B4);g.c(this,this.C0);this.hm=new vZ(y);g.c(this,this.hm);this.uh=new pq(y);g.c(this,this.uh);this.wV=SG(function(){return new LO(t)}); g.c(this,this.wV);this.zR=new nq(y);g.c(this,this.zR);this.TO=SG(function(){return new R5}); g.c(this,this.TO);this.We=SG(function(){return new PZ(h.v4)}); g.c(this,this.We);this.h1=SG(function(){return new mu(h.sY,C,F)}); g.c(this,this.h1);this.Pe=SG(function(){return new H7(h.YG,h.Um,h.hm,h.KJ)}); g.c(this,this.Pe);this.pL=SG(function(){return new Fi(y,h.zR,h.hm,h.Um,h.KJ,h.qD,h.BO,h.B4,h.v4,h.Yn,h.KM,h.mJ,h.X7,h.a7,h.ys,h.YG,h.wV,k)}); g.c(this,this.pL);this.mw=SG(function(){return new CyF(h.VD,h.v4,h.Um,U,h.T1,a,h.B4)}); g.c(this,this.mw);this.xX={eA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sY],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.X5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Io],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Mh]]),wU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.A1],["SLOT_TYPE_FORECASTING",this.jw],["SLOT_TYPE_IN_PLAYER",this.jw],["SLOT_TYPE_PLAYER_BYTES",this.jw]]),yn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.n_],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.bY],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.bY],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.bY],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.bY],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.bY],["TRIGGER_TYPE_SLOT_ID_EXITED",this.bY],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.bY],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.bY],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.bY],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.C0],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.C0],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hm],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.uh],["TRIGGER_TYPE_AD_BREAK_STARTED",this.zR]]),Yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TO],["SLOT_TYPE_FORECASTING",this.TO],["SLOT_TYPE_IN_PLAYER",this.TO],["SLOT_TYPE_PLAYER_BYTES",this.We]]),mN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h1],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER",this.mw],["SLOT_TYPE_PLAYER_BYTES", this.pL]])};this.listeners=[U.get()];this.J5={sY:this.sY,zZ:this.YG.get(),ue:this.a7.get(),P9:this.v4.get(),Io:this.Io,TW:F.get(),Yi:null,tL:this.n_,KD:U.get(),dK:this.B4.get()}},rzn=function(y,t,a,r,E){g.H.call(this); var h=this,F=SG(function(){return new mx(h.YG)}); g.c(this,F);var x=SG(function(){return new o5(F)}); g.c(this,x);var U=SG(function(){return new Lq}); g.c(this,U);var C=SG(function(){return new zi(y)}); g.c(this,C);var z=SG(function(){return new HZ(F,x,h.YG)}); g.c(this,z);var O=SG(function(){return new Y4}); g.c(this,O);this.T1=SG(function(){return new G_x(t)}); g.c(this,this.T1);this.VD=SG(function(){return new $V(t)}); g.c(this,this.VD);this.a7=SG(function(){return new vK(E)}); g.c(this,this.a7);this.mJ=SG(function(){return new qa(t)}); g.c(this,this.mJ);this.KM=SG(function(){return new Yg(t)}); g.c(this,this.KM);this.BO=SG(function(){return new DU(t)}); g.c(this,this.BO);this.X7=SG(function(){return new go(t)}); g.c(this,this.X7);this.YG=SG(function(){return new i0(t)}); g.c(this,this.YG);var M=SG(function(){return new s8(r)}); g.c(this,M);var L=SG(function(){return new Z1(h.YG)}); g.c(this,L);this.ys=SG(function(){return new O8(t)}); g.c(this,this.ys);this.B4=SG(function(){return new av(t,O,h.YG)}); g.c(this,this.B4);var w=Bf({B4:this.B4,YG:this.YG,bK:L}),d=w.context;this.rN=w.rN;this.ye=SG(function(){return new zY(t,h.YG,h.Um)}); g.c(this,this.ye);this.wV=SG(function(){return new LO(t)}); g.c(this,this.wV);this.v4=SG(function(){return new rr(t,h.B4)}); g.c(this,this.v4);this.Yn=SG(function(){return new M1}); g.c(this,this.Yn);w=SG(function(){return new rt(F,z,x,h.YG,L,null,h.v4,h.Df,h.ai,3)}); g.c(this,w);this.qD=SG(function(){return new ud(h.YG)}); this.KJ=SG(function(){return new IC(h.v4,t,h.YG)}); g.c(this,this.KJ);this.Um=SG(function(){return new te(t,U,h.KJ,h.B4,h.rN,h.YG)}); g.c(this,this.Um);this.Io=new Cq(C,w,a,y,this.B4,this.v4,this.mJ);g.c(this,this.Io);var k=new cf(t,this.Io,this.v4,this.B4,this.ye);this.vz=SG(function(){return k}); this.Jr=k;this.X5=new UB(IiN,wr,function(e,v,l,V){return wl7(x.get(),e,v,l,V)},C,z,x,L,this.YG,this.B4); g.c(this,this.X5);this.Df=new FD(C,z,this.vz,this.ye,this.v4,this.YG,this.Um,this.wV);g.c(this,this.Df);this.Mh=new OB(C,z,this.KM,this.vz,d);g.c(this,this.Mh);this.sY=new Q9(this.YG,C,z,w,this.B4,this.Mh,a,this.BO);g.c(this,this.sY);this.A1=SG(function(){return new Tv(M,x,L,h.YG,h.Um,h.v4,h.wV)}); g.c(this,this.A1);this.jw=SG(function(){return new Gv}); g.c(this,this.jw);this.n_=new XD(y,this.VD,this.YG);g.c(this,this.n_);this.bY=new k4(y);g.c(this,this.bY);this.gO=new jB(y,this.vz,d);g.c(this,this.gO);this.C0=new SB(y,this.KM,this.v4,this.B4);g.c(this,this.C0);this.PT=new Q7(y,this.B4);g.c(this,this.PT);this.ai=new eB(y,this.ye,this.v4,this.Um,this.vz,this.Df);g.c(this,this.ai);this.hm=new vZ(y);g.c(this,this.hm);this.uh=new pq(y);g.c(this,this.uh);this.zR=new nq(y);g.c(this,this.zR);this.TO=SG(function(){return new R5}); g.c(this,this.TO);this.We=SG(function(){return new PZ(h.v4)}); g.c(this,this.We);this.h1=SG(function(){return new mu(h.sY,C,F)}); g.c(this,this.h1);this.Pe=SG(function(){return new H7(h.YG,h.Um,h.hm,h.KJ)}); g.c(this,this.Pe);this.pL=SG(function(){return new hN(y,h.zR,h.hm,h.B4,h.wV,h.v4,h.Yn,h.Um,O,h.ye,h.KJ,h.qD,h.BO,h.KM,h.mJ,h.X7,h.a7,h.ys,h.YG,U,d)}); g.c(this,this.pL);this.Ie=SG(function(){return new zbx(h.VD,h.v4,h.Um,U,h.T1,a,h.YG,h.B4)}); g.c(this,this.Ie);this.xX={eA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sY],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Df],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.X5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Io],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Mh]]),wU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.A1],["SLOT_TYPE_FORECASTING",this.jw],["SLOT_TYPE_IN_PLAYER",this.jw],["SLOT_TYPE_PLAYER_BYTES",this.jw]]),yn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.n_],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.bY],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.bY],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.bY],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.bY],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.bY],["TRIGGER_TYPE_SLOT_ID_EXITED",this.bY],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.bY],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.bY],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.bY],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.C0],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.C0],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.PT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.PT],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hm],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.uh],["TRIGGER_TYPE_AD_BREAK_STARTED",this.zR],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.ai],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.ai],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.ai],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.ai],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.ai]]),Yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.TO],["SLOT_TYPE_FORECASTING",this.TO],["SLOT_TYPE_IN_PLAYER",this.TO],["SLOT_TYPE_PLAYER_BYTES",this.We]]),mN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.h1],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_PLAYER_BYTES",this.pL],["SLOT_TYPE_IN_PLAYER",this.Ie]])};this.listeners=[U.get()]; this.J5={sY:this.sY,zZ:this.YG.get(),ue:this.a7.get(),P9:this.v4.get(),Io:this.Io,TW:F.get(),Yi:null,tL:this.n_,KD:U.get(),dK:this.B4.get()}},hny=function(y,t,a,r){function E(){return h.K} g.H.call(this);var h=this;y.G().experiments.Nr("html5_dispose_of_manager_before_dependency")?(this.V=EYz(E,y,t,a,r),this.K=(new Q4(this.V)).Y(),g.c(this,this.K),g.c(this,this.V)):(this.V=EYz(E,y,t,a,r),g.c(this,this.V),this.K=(new Q4(this.V)).Y(),g.c(this,this.K))},Rv=function(y){return y.V.J5},EYz=function(y,t,a,r,E){try{var h=t.G(); if(g.xp(h))var F=new Zl1(y,t,a,r,E);else if(g.UJ(h))F=new yzN(y,t,a,r,E);else if(y3(h))F=new tz7(y,t,a,r,E);else if(g.Jf(h))F=new avF(y,t,a,r,E);else if(g.ic(h))F=new rzn(y,t,a,r,E);else throw new TypeError("Unknown web interface");return F}catch(x){return F=t.G(),Ug("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:F.V.cplatform,interface:F.V.c,nxr:F.V.cver,ExF:F.V.ctheme,Sxr:F.V.cplayer,wLr:F.playerStyle}),new c6F(y,t,a,r,E)}},Fl7=function(y){DT.call(this,y)},Azd= function(y,t,a,r,E){ya.call(this,y,{U:"div", X:"ytp-ad-timed-pie-countdown-container",S:[{U:"svg",X:"ytp-ad-timed-pie-countdown",T:{viewBox:"0 0 20 20"},S:[{U:"circle",X:"ytp-ad-timed-pie-countdown-background",T:{r:"10",cx:"10",cy:"10"}},{U:"circle",X:"ytp-ad-timed-pie-countdown-inner",T:{r:"5",cx:"10",cy:"10"}},{U:"circle",X:"ytp-ad-timed-pie-countdown-outer",T:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",t,a,r,E);this.D=this.K1("ytp-ad-timed-pie-countdown-container");this.Y=this.K1("ytp-ad-timed-pie-countdown-inner");this.L=this.K1("ytp-ad-timed-pie-countdown-outer"); this.K=Math.ceil(2*Math.PI*5);this.hide()},xF7=function(y,t,a,r,E,h){CL.call(this,y,{U:"div", X:"ytp-ad-action-interstitial",T:{tabindex:"0"},S:[{U:"div",X:"ytp-ad-action-interstitial-background-container"},{U:"div",X:"ytp-ad-action-interstitial-slot",S:[{U:"div",X:"ytp-ad-action-interstitial-instream-info"},{U:"div",X:"ytp-ad-action-interstitial-card",S:[{U:"div",X:"ytp-ad-action-interstitial-image-container"},{U:"div",X:"ytp-ad-action-interstitial-headline-container"},{U:"div",X:"ytp-ad-action-interstitial-description-container"},{U:"div",X:"ytp-ad-action-interstitial-action-button-container"}]}]}]}, "ad-action-interstitial",t,a,r);this.N9=E;this.Aq=h;this.navigationEndpoint=this.V=this.skipButton=this.K=this.actionButton=null;this.yv=this.K1("ytp-ad-action-interstitial-instream-info");this.Ff=this.K1("ytp-ad-action-interstitial-image-container");this.Z=new Bz(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,"ytp-ad-action-interstitial-image");g.c(this,this.Z);this.Z.g0(this.Ff);this.d0=this.K1("ytp-ad-action-interstitial-headline-container");this.L=new GF(this.api,this.layoutId, this.interactionLoggingClientData,this.ue,"ytp-ad-action-interstitial-headline");g.c(this,this.L);this.L.g0(this.d0);this.Vv=this.K1("ytp-ad-action-interstitial-description-container");this.Y=new GF(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,"ytp-ad-action-interstitial-description");g.c(this,this.Y);this.Y.g0(this.Vv);this.T7=this.K1("ytp-ad-action-interstitial-background-container");this.C1=new Bz(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,"ytp-ad-action-interstitial-background", !0);g.c(this,this.C1);this.C1.g0(this.T7);this.JF=this.K1("ytp-ad-action-interstitial-action-button-container");this.slot=this.K1("ytp-ad-action-interstitial-slot");this.mH=this.K1("ytp-ad-action-interstitial-card");this.D=new lm;g.c(this,this.D);this.hide()},sK1=function(y){var t=g.d4("html5-video-player"); t&&g.Uz(t,"ytp-ad-display-override",y)},zn7=function(y,t,a,r){CL.call(this,y,{U:"div", X:"ytp-ad-overlay-slot",S:[{U:"div",X:"ytp-ad-overlay-container"}]},"invideo-overlay",t,a,r);this.Z=[];this.T7=this.d0=this.D=this.JF=this.yv=null;this.C1=!1;this.L=null;this.Vv=0;y=this.K1("ytp-ad-overlay-container");this.Ff=new xZ(y,45E3,6E3,.3,.4);g.c(this,this.Ff);this.Y=$Fu(this);g.c(this,this.Y);this.Y.g0(y);this.K=UFb(this);g.c(this,this.K);this.K.g0(y);this.V=CE7(this);g.c(this,this.V);this.V.g0(y);this.hide()},$Fu=function(y){var t=new g.Ui({U:"div", X:"ytp-ad-text-overlay",S:[{U:"div",X:"ytp-ad-overlay-ad-info-button-container"},{U:"div",X:"ytp-ad-overlay-close-container",S:[{U:"button",X:"ytp-ad-overlay-close-button",S:[ux(Ohx)]}]},{U:"div",X:"ytp-ad-overlay-title",er:"{{title}}"},{U:"div",X:"ytp-ad-overlay-desc",er:"{{description}}"},{U:"div",mX:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],er:"{{displayUrl}}"}]});y.N(t.K1("ytp-ad-overlay-title"),"click",function(a){Pn(y,t.element,a)}); y.N(t.K1("ytp-ad-overlay-link"),"click",function(a){Pn(y,t.element,a)}); y.N(t.K1("ytp-ad-overlay-close-container"),"click",y.jg);t.hide();return t},UFb=function(y){var t=new g.Ui({U:"div", mX:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{U:"div",X:"ytp-ad-overlay-ad-info-button-container"},{U:"div",X:"ytp-ad-overlay-close-container",S:[{U:"button",X:"ytp-ad-overlay-close-button",S:[ux(Ohx)]}]},{U:"div",X:"ytp-ad-overlay-text-image",S:[{U:"img",T:{src:"{{imageUrl}}"}}]},{U:"div",X:"ytp-ad-overlay-title",er:"{{title}}"},{U:"div",X:"ytp-ad-overlay-desc",er:"{{description}}"},{U:"div",mX:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],er:"{{displayUrl}}"}]});y.N(t.K1("ytp-ad-overlay-title"), "click",function(a){Pn(y,t.element,a)}); y.N(t.K1("ytp-ad-overlay-link"),"click",function(a){Pn(y,t.element,a)}); y.N(t.K1("ytp-ad-overlay-close-container"),"click",y.jg);y.N(t.K1("ytp-ad-overlay-text-image"),"click",y.uCX);t.hide();return t},CE7=function(y){var t=new g.Ui({U:"div", X:"ytp-ad-image-overlay",S:[{U:"div",X:"ytp-ad-overlay-ad-info-button-container"},{U:"div",X:"ytp-ad-overlay-close-container",S:[{U:"button",X:"ytp-ad-overlay-close-button",S:[ux(Ohx)]}]},{U:"div",X:"ytp-ad-overlay-image",S:[{U:"img",T:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});y.N(t.K1("ytp-ad-overlay-image"),"click",function(a){Pn(y,t.element,a)}); y.N(t.K1("ytp-ad-overlay-close-container"),"click",y.jg);t.hide();return t},Llu=function(y,t){if(t){var a=g.P(t,f_)||null; a==null?g.pK(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(t=g.d4("video-ads ytp-ad-module")||null,t==null?g.pK(Error("Could not locate the root ads container element to attach the ad info dialog.")):(y.d0=new g.Ui({U:"div",X:"ytp-ad-overlay-ad-info-dialog-container"}),g.c(y,y.d0),y.d0.g0(t),t=new TF(y.api,y.layoutId,y.interactionLoggingClientData,y.ue,y.d0.element,!1),g.c(y,t),t.init(Ei("ad-info-hover-text-button"),a,y.macros),y.L?(t.g0(y.L,0),t.subscribe("f",y.NNm,y),t.subscribe("e", y.uo,y),y.N(y.L,"click",y.TN5),y.N(g.d4("ytp-ad-button",t.element),"click",function(){var r;if(g.P((r=g.P(a.button,g.j7))==null?void 0:r.serviceEndpoint,vHN))y.C1=y.api.getPlayerState(1)===2,y.api.pauseVideo();else y.api.onAdUxClicked("ad-info-hover-text-button",y.layoutId)}),y.T7=t):g.pK(Error("Ad info button container within overlay ad was not present."))))}else g.ls(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))},wB7=function(y,t){if(Mz1(y,N1)||y.api.isMinimized())return!1; var a=zF(t.title),r=zF(t.description);if(g.TJ(a)||g.TJ(r))return!1;y.createServerVe(y.Y.element,t.trackingParams||null);y.Y.updateValue("title",zF(t.title));y.Y.updateValue("description",zF(t.description));y.Y.updateValue("displayUrl",zF(t.displayUrl));t.navigationEndpoint&&g.F4(y.Z,t.navigationEndpoint);y.Y.show();y.Ff.start();y.logVisibility(y.Y.element,!0);y.N(y.Y.element,"mouseover",function(){y.Vv++}); return!0},Rn1=function(y,t){if(Mz1(y,N1)||y.api.isMinimized())return!1; var a=zF(t.title),r=zF(t.description);if(g.TJ(a)||g.TJ(r))return!1;y.createServerVe(y.K.element,t.trackingParams||null);y.K.updateValue("title",zF(t.title));y.K.updateValue("description",zF(t.description));y.K.updateValue("displayUrl",zF(t.displayUrl));y.K.updateValue("imageUrl",Hty(t.image));t.navigationEndpoint&&g.F4(y.Z,t.navigationEndpoint);y.JF=t.imageNavigationEndpoint||null;y.K.show();y.Ff.start();y.logVisibility(y.K.element,!0);y.N(y.K.element,"mouseover",function(){y.Vv++}); return!0},PE7=function(y,t){if(y.api.isMinimized())return!1; var a=btd(t.image),r=a;a.width0?(t=new nD(y.api,y.V),t.g0(y.playerOverlay), g.c(y,t)):(y=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(t)),g.pK(y))}}else g.pK(Error("addCommonComponents() needs to be called before starting countdown."))},pB7=function(y){function t(a){return{toString:function(){return a()}}} y.macros.SURVEY_LOCAL_TIME_EPOCH_S=t(function(){var a=new Date;return(Math.round(a.valueOf()/1E3)+-1*a.getTimezoneOffset()*60).toString()}); y.macros.SURVEY_ELAPSED_MS=t(function(){return(Date.now()-y.Y).toString()})},en1=function(y,t,a,r,E){fO.call(this,y,t,a,r,"survey-question-multi-select"); this.Vv=E;this.noneOfTheAbove=null;this.submitEndpoints=[];this.L=null;this.hide()},lvn=function(y,t,a){y.noneOfTheAbove=new Wl7(y.api,y.layoutId,y.interactionLoggingClientData,y.ue); y.noneOfTheAbove.g0(y.answers);y.noneOfTheAbove.init(Ei("survey-none-of-the-above"),t,a)},Vzd=function(y){y.K.forEach(function(t){t.V.toggleButton(!1)}); uhb(y,!0)},uhb=function(y,t){var a=y.D; y=nYV(y);t=t===void 0?!1:t;a.V&&(y?a.V.hide():a.V.show(),t&&a.V instanceof w0&&!a.V.D&&oHF(a.V,!1));a.K&&(y?a.K.show():a.K.hide())},nYV=function(y){return y.K.some(function(t){return t.V.isToggled()})||y.noneOfTheAbove.button.isToggled()},Wn=function(y,t,a,r,E){fO.call(this,y,t,a,r,"survey-question-single-select",function(F){h.api.G().B("supports_multi_step_on_desktop")&&E([F])}); var h=this;this.hide()},jJ=function(y,t,a,r){CL.call(this,y,{U:"div", X:"ytp-ad-survey",S:[{U:"div",X:"ytp-ad-survey-questions"}]},"survey",t,a,r);this.questions=[];this.K=[];this.conditioningRules=[];this.V=0;this.L=this.K1("ytp-ad-survey-questions");this.api.G().B("fix_survey_color_contrast_on_destop")&&this.K1("ytp-ad-survey").classList.add("color-contrast-fix");this.api.G().B("web_enable_speedmaster")&&this.K1("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()},oY7=function(y,t){var a=y.K[t],r; (r=y.Y)==null||r.dispose();g.P(a,Xu)?mFx(y,g.P(a,Xu),y.macros):g.P(a,dG)&&JzV(y,g.P(a,dG),y.macros);y.V=t},mFx=function(y,t,a){var r=new Wn(y.api,y.layoutId,y.interactionLoggingClientData,y.ue,y.D.bind(y)); r.g0(y.L);r.init(Ei("survey-question-single-select"),t,a);y.api.G().B("supports_multi_step_on_desktop")?y.Y=r:y.questions.push(r);g.c(y,r)},JzV=function(y,t,a){var r=new en1(y.api,y.layoutId,y.interactionLoggingClientData,y.ue,y.D.bind(y)); r.g0(y.L);r.init(Ei("survey-question-multi-select"),t,a);y.api.G().B("supports_multi_step_on_desktop")?y.Y=r:y.questions.push(r);g.c(y,r)},SJ=function(y,t,a,r){CL.call(this,y,{U:"div", X:"ytp-ad-survey-interstitial",S:[{U:"div",X:"ytp-ad-survey-interstitial-contents",S:[{U:"div",X:"ytp-ad-survey-interstitial-logo",S:[{U:"div",X:"ytp-ad-survey-interstitial-logo-image"}]},{U:"div",X:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",t,a,r);this.V=this.actionButton=null;this.interstitial=this.K1("ytp-ad-survey-interstitial");this.K=this.K1("ytp-ad-survey-interstitial-contents");this.text=this.K1("ytp-ad-survey-interstitial-text");this.logoImage=this.K1("ytp-ad-survey-interstitial-logo-image"); this.transition=new g.r0(this,500,!1,300);g.c(this,this.transition)},Hhn=function(y,t){t=t&&bx(t)||""; if(g.TJ(t))g.ls(Error("Found ThumbnailDetails without valid image URL"));else{var a=y.style;y=y.style.cssText;var r=document.implementation.createHTMLDocument("").createElement("DIV");r.style.cssText=y;y=w67(r.style);a.cssText=[y,'background-image:url("'+t+'");'].join("")}},bhz=function(y){var t=g.d4("html5-video-player"); t&&g.Uz(t,"ytp-ad-display-override",y)},QC=function(y,t,a,r,E,h){h=h===void 0?0:h; ya.call(this,y,{U:"div",X:"ytp-preview-ad",S:[{U:"div",X:"ytp-preview-ad__text"}]},"preview-ad",t,a,r,E);var F=this;this.Vv=h;this.K=0;this.D=-1;this.Y=this.K1("ytp-preview-ad__text");switch(this.Vv){case 1:this.Y.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.r0(this,400,!1,100,function(){F.hide()}); g.c(this,this.transition);this.hide()},vn=function(y,t,a,r){CL.call(this,y,{U:"img", X:"ytp-ad-avatar"},"ad-avatar",t,a,r);this.hide()},BW2=function(y){switch(y.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}},pO=function(y,t,a,r,E,h){E=E===void 0?!1:E; h=h===void 0?!1:h;CL.call(this,y,{U:"button",X:"ytp-ad-button-vm"},"ad-button",t,a,r);this.buttonText=this.buttonIcon=null;this.hide();this.V=E;this.K=h},cz7=function(y,t,a,r,E){ya.call(this,y,{U:"div", mX:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],S:[{U:"div",X:"ytp-ad-avatar-lockup-card__avatar_and_text_container",S:[{U:"div",X:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",t,a,r,E);this.startMilliseconds=0;this.adAvatar=new vn(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this,this.adAvatar);lv(this.element,this.adAvatar.element,0);this.headline=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this, this.headline);this.headline.g0(this.K1("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this,this.description);this.description.g0(this.K1("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new pO(this.api,this.layoutId,this.interactionLoggingClientData, this.ue);g.c(this,this.adButton);this.adButton.g0(this.element);this.hide()},eJ=function(y,t,a,r){CL.call(this,y,{U:"button", X:"ytp-skip-ad-button",S:[{U:"div",X:"ytp-skip-ad-button__text"}]},"skip-button",t,a,r);var E=this;this.K=!1;this.D=this.K1("ytp-skip-ad-button__text");this.transition=new g.r0(this,500,!1,100,function(){E.hide()}); g.c(this,this.transition);this.V=new xZ(this.element,15E3,5E3,.5,.5,!0);g.c(this,this.V);this.hide()},q7N=function(y,t,a,r,E){ya.call(this,y,{U:"div", X:"ytp-skip-ad"},"skip-ad",t,a,r,E);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Y=new eJ(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this,this.Y);this.Y.g0(this.element);this.hide()},lZ=function(y,t,a,r){CL.call(this,y,{U:"div", X:"ytp-visit-advertiser-link"},"visit-advertiser-link",t,a,r);this.hide()},uZ=function(y,t,a,r,E){CL.call(this,y,{U:"div", X:"ytp-ad-player-overlay-layout",S:[{U:"div",X:"ytp-ad-player-overlay-layout__player-card-container"},{U:"div",X:"ytp-ad-player-overlay-layout__ad-info-container"},{U:"div",X:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{U:"div",X:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",t,a,r);this.K=E;this.d0=this.K1("ytp-ad-player-overlay-layout__player-card-container");this.V=this.K1("ytp-ad-player-overlay-layout__ad-info-container");this.Z=this.K1("ytp-ad-player-overlay-layout__skip-or-preview-container"); this.Vv=this.K1("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()},Y7H=function(y,t,a,r){CL.call(this,y,{U:"div", X:"ytp-ad-grid-card-text",S:[{U:"div",X:"ytp-ad-grid-card-text__metadata",S:[{U:"div",X:"ytp-ad-grid-card-text__metadata__headline"},{U:"div",X:"ytp-ad-grid-card-text__metadata__description",S:[{U:"div",X:"ytp-ad-grid-card-text__metadata__description__line"},{U:"div",X:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{U:"div",X:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",t,a,r);this.headline=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this,this.headline); this.headline.g0(this.K1("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new pO(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,!0);g.c(this,this.moreInfoButton);this.moreInfoButton.g0(this.K1("ytp-ad-grid-card-text__button"))},VC=function(y,t,a,r){CL.call(this,y,{U:"div", X:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",t,a,r);this.V=[]},nO=function(y,t,a,r,E,h,F){ya.call(this,y,h,F,t,a,r,E); this.playerProgressOffsetMs=0;this.K=!1},DF7=function(y){var t=g.d4("html5-video-player"); t&&g.Uz(t,"ytp-ad-display-override",y)},gYF=function(y,t,a,r,E){nO.call(this,y,t,a,r,E,{U:"div", X:"ytp-display-underlay-text-grid-cards",S:[{U:"div",X:"ytp-display-underlay-text-grid-cards__content_container",S:[{U:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header",S:[{U:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{U:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{U:"div",X:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},{U:"div",X:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]}, "display-underlay-text-grid-cards");this.adGridCardCollection=new VC(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this,this.adGridCardCollection);this.adGridCardCollection.g0(this.K1("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new pO(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this,this.adButton);this.adButton.g0(this.K1("ytp-display-underlay-text-grid-cards__content_container__ad_button"));this.Y= this.K1("ytp-display-underlay-text-grid-cards__content_container");this.D=this.K1("ytp-display-underlay-text-grid-cards__content_container__header")},mg=function(y,t,a,r){CL.call(this,y,{U:"div", X:"ytp-ad-details-line"},"ad-details-line",t,a,r);this.V=[];this.hide()},Je=function(y,t,a,r){CL.call(this,y,{U:"div", X:"ytp-image-background",S:[{U:"img",X:"ytp-image-background-image"}]},"image-background",t,a,r);this.hide()},ihV=function(y,t,a,r,E){ya.call(this,y,{U:"svg", X:"ytp-timed-pie-countdown",T:{viewBox:"0 0 20 20"},S:[{U:"circle",X:"ytp-timed-pie-countdown__background",T:{r:"10",cx:"10",cy:"10"}},{U:"circle",X:"ytp-timed-pie-countdown__inner",T:{r:"5",cx:"10",cy:"10"}},{U:"circle",X:"ytp-timed-pie-countdown__outer",T:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",t,a,r,E);this.Y=this.K1("ytp-timed-pie-countdown__inner");this.K=Math.ceil(2*Math.PI*5);this.hide()},ov=function(y,t,a,r){CL.call(this,y,{U:"div", X:"ytp-video-interstitial-buttoned-centered-layout",T:{tabindex:"0"},S:[{U:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content",S:[{U:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{U:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",S:[{U:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{U:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {U:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{U:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{U:"div",X:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",t,a,r);this.K=null;this.D=this.K1("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Y=new lm;g.c(this,this.Y);this.hide()}, Kl1=function(y){var t=g.d4("html5-video-player"); t&&g.Uz(t,"ytp-ad-display-override",y)},Ivb=function(y){if(!y.adAvatar||!g.P(y.adAvatar,Hn))return g.pK(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1; if(!y.headline)return g.pK(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!y.adBadge||!g.P(y.adBadge,bZ))return g.pK(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!y.adButton||!g.P(y.adButton,Bn))return g.pK(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!y.adInfoRenderer||!g.P(y.adInfoRenderer,f_))return g.pK(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")), !1;y=y.durationMilliseconds||0;return typeof y!=="number"||y<=0?(g.pK(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+y)),!1):!0},cn=function(y,t){t=t===void 0?2:t; g.FM.call(this);this.api=y;this.V=null;this.handler=new lm(this);g.c(this,this.handler);this.K=Hod;this.handler.N(this.api,"presentingplayerstatechange",this.y8);this.V=this.handler.N(this.api,"progresssync",this.QD);this.Iq=t;this.Iq===1&&this.QD()},q1=function(y,t,a){DT.call(this,y); this.api=y;this.ue=t;this.components={};y=new g.q({U:"div",mX:["video-ads","ytp-ad-module"]});g.c(this,y);J5&&g.Al(y.element,"ytp-ads-tiny-mode");this.D=new z8(y.element);g.c(this,this.D);g.q$(this.api,y.element,4);qu(a)&&(a=new g.q({U:"div",mX:["ytp-ad-underlay"]}),g.c(this,a),this.K=new z8(a.element),g.c(this,this.K),g.q$(this.api,a.element,0));g.c(this,OoV())},TWu=function(y,t){y=g.ek(y.components,t.id,null); y==null&&g.ls(Error("Component not found for element id: "+t.id));return y||null},G$2=function(y){g.Cc.call(this,y); var t=this;this.K=null;this.created=!1;this.Y=y.G().B("h5_use_refactored_get_ad_break")?new qA7(this.player):new b0(this.player);this.D=function(){if(t.K!=null)return t.K;var r=new TSn({tL:Rv(t.V).tL,dK:Rv(t.V).dK,C:t.player,zZ:Rv(t.V).zZ,Um:t.V.V.Um,KD:Rv(t.V).KD,X7:t.V.V.X7});t.K=r.aB;return t.K}; this.V=new hny(this.player,this,this.Y,this.D);g.c(this,this.V);var a=y.G();!zv(a)||g.ic(a)||y3(a)||(g.c(this,new q1(y,Rv(this.V).ue,Rv(this.V).zZ)),g.c(this,new Fl7(y)))},Zh7=function(y){y.created!==y.loaded&&Ug("Created and loaded are out of sync")},asF=function(y){g.Cc.prototype.load.call(y); var t=Rv(y.V).zZ;try{y.player.getRootNode().classList.add("ad-created")}catch(x){Ug(x instanceof Error?x:String(x))}var a=y.player.getVideoData(1),r=a&&a.videoId||"",E=a&&a.getPlayerResponse()||{},h=(E&&E.adPlacements||[]).map(function(x){return x.adPlacementRenderer}),F=((E==null?void 0:E.adSlots)||[]).map(function(x){return g.P(x,Nu)}); E=E.playerConfig&&E.playerConfig.daiConfig&&E.playerConfig.daiConfig.enableDai||!1;a&&a.US();t=yW7(h,F,t,Rv(y.V).TW);h=a&&a.clientPlaybackNonce||"";a=a&&a.oD||!1;F=1E3*y.player.getDuration(1);tuz(y);y.V.V.Jr.Jw(h,F,a,t.Sm,t.vu,t.Sm,E,r)},tuz=function(y){var t,a; if(a=(t=y.player.getVideoData(1))==null||!t.oD)t=y.player.G(),a=zv(t)&&!g.CF(t)&&t.playerStyle==="desktop-polymer";a&&(y=y.player.getInternalApi(),y.addEventListener("updateKevlarOrC3Companion",K7H),y.addEventListener("updateEngagementPanelAction",I4d),y.addEventListener("changeEngagementPanelVisibility",TB7),window.addEventListener("yt-navigate-start",Zob))}; var FdF=function(y,t){return n7[A[3]](this,3,y,t)}; YV=function(y,t){t===y.Kz&&(y.Kz=void 0)}; rWd=function(y){var t=Rv(y.V).Io,a=t.D().Kp("SLOT_TYPE_PLAYER_BYTES",1);t=t0(t.B4.get(),1).clientPlaybackNonce;var r=!1;a=g.p(a);for(var E=a.next();!E.done;E=a.next()){E=E.value;var h=E.slotType==="SLOT_TYPE_PLAYER_BYTES"&&E.slotEntryTrigger instanceof P2?E.slotEntryTrigger.L4:void 0;h&&h===t&&(r&&Ug("More than 1 preroll playerBytes slot detected",E),r=!0)}r||Rv(y.V).P9.uB()}; EPV=function(y){var t="";y=g.p(Rv(y.V).KD.IY.keys());for(var a=y.next();!a.done;a=y.next()){a=a.value;if(a.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a.f1==="core")return!0;t+=a.slotType+" "}Math.random()<.01&&Ug("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:t});return!1}; han=function(y){y=g.p(Rv(y.V).KD.IY.values());for(var t=y.next();!t.done;t=y.next())if(t.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Kwn=function(y,t,a,r,E,h,F){a=a===void 0?[]:a;r=r===void 0?"":r;E=E===void 0?"":E;var x=Rv(y.V).zZ,U=y.player.getVideoData(1);U&&U.getPlayerResponse();U&&U.US();a=yW7(t,a,x,Rv(y.V).TW);yD7(Rv(y.V).sY,r,a.Sm,a.vu,t,E,h,F)}; yW7=function(y,t,a,r){t={Sm:[],vu:t};y=g.p(y);for(var E=y.next();!E.done;E=y.next())if((E=E.value)&&E.renderer!=null){var h=E.renderer;if(!a.C.G().B("html5_enable_vod_lasr_with_notify_pacf")){var F=void 0,x=void 0,U=void 0,C=void 0,z=r;g.P((C=h.sandwichedLinearAdRenderer)==null?void 0:C.adVideoStart,a5)?(F=g.P((U=h.sandwichedLinearAdRenderer)==null?void 0:U.adVideoStart,a5),F=z4n(F,z),g.J4(h.sandwichedLinearAdRenderer.adVideoStart,a5,F)):g.P((x=h.linearAdSequenceRenderer)==null?void 0:x.adStart,a5)&& (U=g.P((F=h.linearAdSequenceRenderer)==null?void 0:F.adStart,a5),F=z4n(U,z),g.J4(h.linearAdSequenceRenderer.adStart,a5,F))}t.Sm.push(E)}return t}; g.D2=function(y){if(typeof DOMParser!="undefined")return BW(new DOMParser,CY1(y),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.gr=function(y){g.H.call(this);this.callback=y;this.V=new XV(0,0,.4,0,.2,1,1,1);this.delay=new g.If(this.next,window,this);g.c(this,this.delay)}; g.FG7=function(y){var t=y.G();return t.IR&&!t.Y&&g.bc(t)?y.isEmbedsShortsMode()?(y=y.Vm(),Math.min(y.width,y.height)>=315):!y.b2():!1}; g.iZ=function(y){g.q.call(this,{U:"div",X:"ytp-more-videos-view",T:{tabIndex:"-1"}});var t=this;this.api=y;this.K=!0;this.Y=new g.Ci(this);this.V=[];this.suggestionData=[];this.columns=this.containerWidth=this.W=this.D=this.scrollPosition=0;this.title=new g.q({U:"h2",X:"ytp-related-title",er:"{{title}}"});this.previous=new g.q({U:"button",mX:["ytp-button","ytp-previous"],T:{"aria-label":"Mostrar videos sugeridos anteriores"},S:[g.wf()]});this.J=new g.gr(function(a){t.suggestions.element.scrollLeft= -a}); this.next=new g.q({U:"button",mX:["ytp-button","ytp-next"],T:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},S:[g.Rn()]});g.c(this,this.Y);this.L=y.G().D;g.c(this,this.title);this.title.g0(this.element);this.suggestions=new g.q({U:"div",X:"ytp-suggestions"});g.c(this,this.suggestions);this.suggestions.g0(this.element);g.c(this,this.previous);this.previous.g0(this.element);this.previous.listen("click",this.M5,this);g.c(this,this.J);AWb(this);g.c(this,this.next);this.next.g0(this.element);this.next.listen("click", this.q5,this);this.Y.N(this.api,"appresize",this.Gl);this.Y.N(this.api,"fullscreentoggled",this.wc);this.Y.N(this.api,"videodatachange",this.onVideoDataChange);this.Gl(this.api.ZE().getPlayerSize());this.onVideoDataChange()}; AWb=function(y){for(var t={Ki:0};t.Ki<16;t={Ki:t.Ki},++t.Ki){var a=new g.q({U:"a",X:"ytp-suggestion-link",T:{href:"{{link}}",target:y.api.G().hF,"aria-label":"{{aria_label}}"},S:[{U:"div",X:"ytp-suggestion-image"},{U:"div",X:"ytp-suggestion-overlay",T:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},S:[{U:"div",X:"ytp-suggestion-title",er:"{{title}}"},{U:"div",X:"ytp-suggestion-author",er:"{{author_and_views}}"},{U:"div",T:{"data-is-live":"{{is_live}}"},X:"ytp-suggestion-duration", er:"{{duration}}"}]}]});g.c(y,a);var r=a.K1("ytp-suggestion-link");g.ry(r,"transitionDelay",t.Ki/20+"s");y.Y.N(r,"click",function(E){return function(h){var F=E.Ki;if(y.K){var x=y.suggestionData[F],U=x.sessionData;y.L&&y.api.B("web_player_log_click_before_generating_ve_conversion_params")?(y.api.logClick(y.V[F].element),F=x.MU(),x={},g.b6(y.api,x),F=g.lJ(F,x),g.MU(F,y.api,h)):g.La(h,y.api,y.L,U||void 0)&&y.api.CI(x.videoId,U,x.playlistId)}else h.preventDefault(),document.activeElement.blur()}}(t)); a.g0(y.suggestions.element);y.V.push(a);y.api.createServerVe(a.element,a)}}; xj2=function(y){if(y.api.G().B("web_player_log_click_before_generating_ve_conversion_params"))for(var t=Math.floor(-y.scrollPosition/(y.D+8)),a=Math.min(t+y.columns,y.suggestionData.length)-1;t<=a;t++)y.api.logVisibility(y.V[t].element,!0)}; g.KO=function(y){var t=y.api.KA()?32:16;t=y.W/2+t;y.next.element.style.bottom=t+"px";y.previous.element.style.bottom=t+"px";t=y.scrollPosition;var a=y.containerWidth-y.suggestionData.length*(y.D+8);g.Uz(y.element,"ytp-scroll-min",t>=0);g.Uz(y.element,"ytp-scroll-max",t<=a)}; $jF=function(y){for(var t=y.suggestionData.length,a=0;a>>0)+"_",E=0;return t}); qH("Symbol.iterator",function(y){if(y)return y;y=Symbol("Symbol.iterator");Dz(Array.prototype,y,{configurable:!0,writable:!0,value:function(){return ub1(Wd1(this))}}); return y}); qH("Promise",function(y){function t(F){this.V=0;this.Y=void 0;this.K=[];this.W=!1;var x=this.D();try{F(x.resolve,x.reject)}catch(U){x.reject(U)}} function a(){this.V=null} function r(F){return F instanceof t?F:new t(function(x){x(F)})} if(y)return y;a.prototype.K=function(F){if(this.V==null){this.V=[];var x=this;this.Y(function(){x.L()})}this.V.push(F)}; var E=g.Yu.setTimeout;a.prototype.Y=function(F){E(F,0)}; a.prototype.L=function(){for(;this.V&&this.V.length;){var F=this.V;this.V=[];for(var x=0;x0&&a>0;)if(r[--a]!=t[--E])return!1;return E<=0}}); qH("Array.prototype.find",function(y){return y?y:function(t,a){return Vyy(this,t,a).tq}}); qH("Array.prototype.entries",function(y){return y?y:function(){return N9(this,function(t,a){return[t,a]})}}); qH("Array.prototype.keys",function(y){return y?y:function(){return N9(this,function(t){return t})}}); qH("String.prototype.startsWith",function(y){return y?y:function(t,a){var r=Pd(this,t,"startsWith");t+="";var E=r.length,h=t.length;a=Math.max(0,Math.min(a|0,r.length));for(var F=0;F=h}}); qH("Number.isFinite",function(y){return y?y:function(t){return typeof t!=="number"?!1:!isNaN(t)&&t!==Infinity&&t!==-Infinity}}); qH("String.prototype.repeat",function(y){return y?y:function(t){var a=Pd(this,null,"repeat");if(t<0||t>1342177279)throw new RangeError("Invalid count value");t|=0;for(var r="";t;)if(t&1&&(r+=a),t>>>=1)a+=a;return r}}); qH("Object.entries",function(y){return y?y:function(t){var a=[],r;for(r in t)Zz(t,r)&&a.push([r,t[r]]);return a}}); qH("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); qH("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); qH("Array.from",function(y){return y?y:function(t,a,r){a=a!=null?a:function(x){return x}; var E=[],h=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];if(typeof h=="function"){t=h.call(t);for(var F=0;!(h=t.next()).done;)E.push(a.call(r,h.value,F++))}else for(h=t.length,F=0;F>>0;if(t===0)return 32;var a=0;(t&4294901760)===0&&(t<<=16,a+=16);(t&4278190080)===0&&(t<<=8,a+=8);(t&4026531840)===0&&(t<<=4,a+=4);(t&3221225472)===0&&(t<<=2,a+=2);(t&2147483648)===0&&a++;return a}}); qH("Number.isNaN",function(y){return y?y:function(t){return typeof t==="number"&&isNaN(t)}}); qH("Array.prototype.values",function(y){return y?y:function(){return N9(this,function(t,a){return a})}}); qH("Array.prototype.fill",function(y){return y?y:function(t,a,r){var E=this.length||0;a<0&&(a=Math.max(0,E+a));if(r==null||r>E)r=E;r=Number(r);r<0&&(r=Math.max(0,E+r));for(a=Number(a||0);a0&&a?a.repeat(Math.ceil(t/a.length)).substring(0,t):"")+r}}); qH("Array.prototype.findIndex",function(y){return y?y:function(t,a){return Vyy(this,t,a).ol}}); qH("Promise.prototype.finally",function(y){return y?y:function(t){return this.then(function(a){return Promise.resolve(t()).then(function(){return a})},function(a){return Promise.resolve(t()).then(function(){throw a; })})}}); qH("Math.imul",function(y){return y?y:function(t,a){t=Number(t);a=Number(a);var r=t&65535,E=a&65535;return r*E+((t>>>16&65535)*E+r*(a>>>16&65535)<<16>>>0)|0}}); qH("Math.sign",function(y){return y?y:function(t){t=Number(t);return t===0||isNaN(t)?t:t>0?1:-1}}); qH("WeakSet",function(y){function t(a){this.V=new WeakMap;if(a){a=g.p(a);for(var r;!(r=a.next()).done;)this.add(r.value)}} if(function(){if(!y||!Object.seal)return!1;try{var a=Object.seal({}),r=Object.seal({}),E=new y([a]);if(!E.has(a)||E.has(r))return!1;E.delete(a);E.add(r);return!E.has(a)&&E.has(r)}catch(h){return!1}}())return y; t.prototype.add=function(a){this.V.set(a,!0);return this}; t.prototype.has=function(a){return this.V.has(a)}; t.prototype.delete=function(a){return this.V.delete(a)}; return t}); qH("Array.prototype.copyWithin",function(y){function t(a){a=Number(a);return a===Infinity||a===-Infinity?a:a|0} return y?y:function(a,r,E){var h=this.length;a=t(a);r=t(r);E=E===void 0?h:t(E);a=a<0?Math.max(h+a,0):Math.min(a,h);r=r<0?Math.max(h+r,0):Math.min(r,h);E=E<0?Math.max(h+E,0):Math.min(E,h);if(ar;)--E in this?this[--a]=this[E]:delete this[--a];return this}}); cF("copyWithin",function(y){return y?y:Array.prototype.copyWithin}); qH("Array.prototype.at",function(y){return y?y:d2}); cF("at",function(y){return y?y:d2}); qH("String.prototype.at",function(y){return y?y:d2}); qH("Promise.withResolvers",function(y){return y?y:function(){var t,a;return{promise:new Promise(function(r,E){t=r;a=E}), resolve:t,reject:a}}}); qH("Array.prototype.findLastIndex",function(y){return y?y:function(t,a){return nuz(this,t,a).ol}}); cF("findLastIndex",function(y){return y?y:function(t,a){return nuz(this,t,a).ol}}); qH("Number.parseInt",function(y){return y||parseInt});var DI,u3,mHz;DI=DI||{};g.ks=this||self;u3="closure_uid_"+(Math.random()*1E9>>>0);mHz=0;g.Bd(cd,Error);cd.prototype.name="CustomError";var yB2;var Yn7,e$,rQ;Yn7=Array.prototype.indexOf?function(y,t){return Array.prototype.indexOf.call(y,t,void 0)}:function(y,t){if(typeof y==="string")return typeof t!=="string"||t.length!=1?-1:y.indexOf(t,0); for(var a=0;a=0;a--)if(a in y&&y[a]===t)return a;return-1}; g.wK=Array.prototype.forEach?function(y,t,a){Array.prototype.forEach.call(y,t,a)}:function(y,t,a){for(var r=y.length,E=typeof y==="string"?y.split(""):y,h=0;h=.3:this.mW>=.5};var KJ={y1f:0,Y6G:1},K6b={NONE:0,OIv:1,m1r:2};var hF2="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");JB.prototype.getValue=function(){return this.K}; g.N(oM,JB);oM.prototype.Y=function(y){this.K===null&&g.QY(this.D,y)&&(this.K=y)}; g.N(H1,JB);H1.prototype.Y=function(y){this.K===null&&typeof y==="number"&&(this.K=y)}; g.N(bN,JB);bN.prototype.Y=function(y){this.K===null&&typeof y==="string"&&(this.K=y)};c1.prototype.disable=function(){this.K=!1}; c1.prototype.enable=function(){this.K=!0}; c1.prototype.isEnabled=function(){return this.K}; c1.prototype.reset=function(){this.V={};this.K=!0;this.Y={}};var hv=document,qW=window;var Rad=Sc(1,!0),EM=Sc(610401301,!1);Sc(899588437,!1);var PXn=Sc(772657768,Rad),NVz=Sc(513659523,!1),djx=Sc(568333945,!0),OC7=Sc(1331761403,!1);Sc(651175828,!1);Sc(722764542,!1);Sc(748402145,!1);Sc(748402146,!1);var bbF=Sc(748402147,!0),Iv=Sc(824648567,Rad),yEu=Sc(824656860,!1);Sc(333098724,!1);Sc(2147483644,!1);Sc(2147483645,!1);Sc(2147483646,Rad);Sc(2147483647,!0);var hy=!!g.jc("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var yk=String.prototype.trim?function(y){return y.trim()}:function(y){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(y)[1]},vs2=/&/g,pdn=//g,l9H=/"/g,uUH=/'/g,Vcz=/\x00/g,Qq7=/[\x00&<>"']/;var FS,XTu=g.ks.navigator;FS=XTu?XTu.userAgentData||null:null;var wdz=globalThis.trustedTypes,OM;Mm.prototype.toString=function(){return this.V+""};PW.prototype.toString=function(){return this.V}; var N2d=new PW("about:invalid#zClosurez");var WNy=k$("tel"),k3x=k$("sms"),P3z=[k$("data"),k$("http"),k$("https"),k$("mailto"),k$("ftp"),new XS(function(y){return/^[^:]*([/?#]|$)/.test(y)})],d97=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Qk.prototype.toString=function(){return this.V+""};uA.prototype.toString=function(){return this.V+""};Jy.prototype.toString=function(){return this.V};var HW={};g.kb7=String.prototype.repeat?function(y,t){return y.repeat(t)}:function(y,t){return Array(t+1).join(y)};ZV[" "]=function(){};var hq,kF,MVb,fsn,WG1,j3x,mB,J5,SZn;g.oE=$$();g.Le=U9d();g.IU=x$("Edge");g.C3=g.IU||g.Le;hq=x$("Gecko")&&!(Zh(g.rI(),"WebKit")&&!x$("Edge"))&&!(x$("Trident")||x$("MSIE"))&&!x$("Edge");g.ko=Zh(g.rI(),"WebKit")&&!x$("Edge");kF=Gf();MVb=bIy();g.EX=HId();fsn=Ie();WG1=x$("iPad");j3x=x$("iPod");mB=Tf();J5=Zh(g.rI(),"KaiOS"); a:{var Q3z="",vP2=function(){var y=g.rI();if(hq)return/rv:([^\);]+)(\)|;)/.exec(y);if(g.IU)return/Edge\/([\d\.]+)/.exec(y);if(g.Le)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(y);if(g.ko)return/WebKit\/(\S+)/.exec(y);if(g.oE)return/(?:Version)[ \/]?(\S+)/.exec(y)}(); vP2&&(Q3z=vP2?vP2[1]:"");if(g.Le){var TY,pTb=g.ks.document;TY=pTb?pTb.documentMode:void 0;if(TY!=null&&TY>parseFloat(Q3z)){SZn=String(TY);break a}}SZn=Q3z}var YyH=SZn,c7x={};var tU,a_;g.OI=UM();tU=Ie()||x$("iPod");a_=x$("iPad");g.Ht=zF1();g.x8=Cb();g.wR=zf()&&!Tf();var tlz=!g.Le&&!zf();g.R=g.Em.prototype;g.R.clone=function(){return new g.Em(this.x,this.y)}; g.R.equals=function(y){return y instanceof g.Em&&hE(this,y)}; g.R.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.R.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.R.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.R.scale=function(y,t){this.x*=y;this.y*=typeof t==="number"?t:y;return this};g.R=g.F1.prototype;g.R.clone=function(){return new g.F1(this.width,this.height)}; g.R.aspectRatio=function(){return this.width/this.height}; g.R.isEmpty=function(){return!xo(this)}; g.R.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.R.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.R.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.R.scale=function(y,t){this.width*=y;this.height*=typeof t==="number"?t:y;return this};$o.prototype.toString=function(){return this.V}; var sm={};new $o(sm,"");var iI7=/^[a-z][a-z\d-]*$/i,Ki2="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),T2x="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),ZIF=["action","formaction","href"];var tkz={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.R=zR.prototype;g.R.YE=function(y){return MW(this.V,y)}; g.R.getElementsByTagName=function(y,t){return(t||this.V).getElementsByTagName(String(y))}; g.R.K1=function(y){return g.d4(y,this.V)}; g.R.setProperties=X1;g.R.createElement=function(y){return Wa(this.V,y)}; g.R.appendChild=g.va;g.R.append=function(y,t){hHd(Om(y),y,arguments,1)}; g.R.canHaveChildren=function(y){if(y.nodeType!=1)return!1;switch(y.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.R.removeNode=g.uv;g.R.getChildren=function(y){return y.children!=void 0?y.children:Array.prototype.filter.call(y.childNodes,function(t){return t.nodeType==1})}; g.R.contains=g.Vu;g.R.isFocusable=m6;Ha.prototype.now=function(){return 0}; Ha.prototype.K=function(){return 0}; Ha.prototype.Y=function(){return 0}; Ha.prototype.V=function(){return 0};g.N(ca,Ha);ca.prototype.now=function(){return bv()&&qW.performance.now?qW.performance.now():Ha.prototype.now.call(this)}; ca.prototype.K=function(){return bv()&&qW.performance.memory?qW.performance.memory.totalJSHeapSize||0:Ha.prototype.K.call(this)}; ca.prototype.Y=function(){return bv()&&qW.performance.memory?qW.performance.memory.usedJSHeapSize||0:Ha.prototype.Y.call(this)}; ca.prototype.V=function(){return bv()&&qW.performance.memory?qW.performance.memory.jsHeapSizeLimit||0:Ha.prototype.V.call(this)};var GG7=function(){if(!g.ks.addEventListener||!Object.defineProperty)return!1;var y=!1,t=Object.defineProperty({},"passive",{get:function(){y=!0}}); try{var a=function(){}; g.ks.addEventListener("test",a,t);g.ks.removeEventListener("test",a,t)}catch(r){}return y}();var qlb=xXV("AnimationEnd"),e1=xXV("TransitionEnd");g.R=Is.prototype;g.R.getHeight=function(){return this.bottom-this.top}; g.R.clone=function(){return new Is(this.top,this.right,this.bottom,this.left)}; g.R.contains=function(y){return this&&y?y instanceof Is?y.left>=this.left&&y.right<=this.right&&y.top>=this.top&&y.bottom<=this.bottom:y.x>=this.left&&y.x<=this.right&&y.y>=this.top&&y.y<=this.bottom:!1}; g.R.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.R.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.R.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.R.scale=function(y,t){t=typeof t==="number"?t:y;this.left*=y;this.right*=y;this.top*=t;this.bottom*=t;return this};g.R=g.yj.prototype;g.R.clone=function(){return new g.yj(this.left,this.top,this.width,this.height)}; g.R.contains=function(y){return y instanceof g.Em?y.x>=this.left&&y.x<=this.left+this.width&&y.y>=this.top&&y.y<=this.top+this.height:this.left<=y.left&&this.left+this.width>=y.left+y.width&&this.top<=y.top&&this.top+this.height>=y.top+y.height}; g.R.getSize=function(){return new g.F1(this.width,this.height)}; g.R.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.R.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.R.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.R.scale=function(y,t){t=typeof t==="number"?t:y;this.left*=y;this.width*=y;this.top*=t;this.height*=t;return this};var $Xz={};var w1d=g4(function(){var y=!1;try{var t=Object.defineProperty({},"passive",{get:function(){y=!0}}); g.ks.addEventListener("test",null,t)}catch(a){}return y});RH1.prototype.isVisible=function(){return P$(hv)===1};var kJH=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");W$.prototype.xJ=function(y,t,a){y=y+"//"+t+a;var r=v_z(this)-a.length;if(r<0)return"";this.V.sort(function(C,z){return C-z}); a=null;t="";for(var E=0;E=U.length){r-=U.length;y+=U;t=this.Y;break}a=a==null?h:a}}r="";a!=null&&(r=""+t+"trn="+a);return y+r};var CAN=ln(function(y){return typeof y==="number"}),U0=ln(function(y){return typeof y==="string"}),z37=ln(function(y){return typeof y==="boolean"}),i5=ln(function(y){return y!=null&&typeof y==="object"&&typeof y.then==="function"}),e4n=ln(function(y){return typeof y==="function"}),eay=ln(function(y){return!!y&&(typeof y==="object"||typeof y==="function")});var jMb={oVG:"allow-forms",sYr:"allow-modals",K1r:"allow-orientation-lock",zjE:"allow-pointer-lock",Pvu:"allow-popups",Yhr:"allow-popups-to-escape-sandbox",ix0:"allow-presentation",xUv:"allow-same-origin",dU0:"allow-scripts",gVf:"allow-top-navigation",DUF:"allow-top-navigation-by-user-activation"},Vkn=g4(function(){return S9N()});Vj.prototype.setInterval=function(y,t){return qW.setInterval(y,t)}; Vj.prototype.clearInterval=function(y){qW.clearInterval(y)}; Vj.prototype.setTimeout=function(y,t){return qW.setTimeout(y,t)}; Vj.prototype.clearTimeout=function(y){qW.clearTimeout(y)};var lV=void 0,ej,xWH=typeof TextDecoder!=="undefined",q9z,cBH=typeof String.prototype.isWellFormed==="function",BKV=typeof TextEncoder!=="undefined";var KsN={},c$=null,Ihd=hq||g.ko||typeof g.ks.btoa=="function";var Ftb=typeof Uint8Array!=="undefined",tE7=!g.Le&&typeof btoa==="function",aV7=/[-_.]/g,ZJH={"-":"+",_:"/",".":"="},YI={};qV.prototype.isEmpty=function(){return this.V==null}; qV.prototype.sizeBytes=function(){var y=gy(this);return y?y.length:0}; var h32;var AyF=void 0;var tj=typeof Symbol==="function"&&typeof Symbol()==="symbol",ls7=yo("jas",void 0,!0),H0=yo(void 0,"1oa"),Zf=yo(void 0,Symbol()),uCd=yo(void 0,"0ub"),e3x=yo(void 0,"0ubs"),VUd=yo(void 0,"0ubsb"),cyF=yo(void 0,"0actk"),II=yo("m_m","gc1",!0),VEu=yo(void 0,"vps"),VuN=yo();Math.max.apply(Math,g.i7(Object.values({Fle:1,mHE:2,v25:4,dNf:8,ycG:16,cLr:32,Up4:64,BK5:128,gPe:256,hL4:512,vPv:1024,r_v:2048,oSf:4096,LlG:8192})));var sez={rF1:{value:0,configurable:!0,writable:!0,enumerable:!1}},xmu=Object.defineProperties,aI=tj?ls7:"rF1",dM,nPy=[];E0(nPy,7);dM=Object.freeze(nPy);var TH={},FW={},IVn=Object.freeze({}),VS={},s0={};var Cz=typeof g.ks.BigInt==="function"&&typeof g.ks.BigInt(0)==="bigint";var Yh=ln(function(y){return Cz?y>=mj7&&y<=JWH:y[0]==="-"?Obz(y,oP2):Obz(y,HG7)}),oP2=Number.MIN_SAFE_INTEGER.toString(),mj7=Cz?BigInt(Number.MIN_SAFE_INTEGER):void 0,HG7=Number.MAX_SAFE_INTEGER.toString(),JWH=Cz?BigInt(Number.MAX_SAFE_INTEGER):void 0;var rEd=typeof Uint8Array.prototype.slice==="function",O0=0,Lz=0,nox;var m5=typeof BigInt==="function"?BigInt.asIntN:void 0,Wtx=typeof BigInt==="function"?BigInt.asUintN:void 0,qE=Number.isSafeInteger,pz=Number.isFinite,cA=Math.trunc,wW2=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var n$7={};var bGV={OAv:!0};var rM;var mmy,JyH;var Zbb=zH(0),GU={};we.prototype.init=function(y,t,a,r){var E=r===void 0?{}:r;r=E.jN===void 0?!1:E.jN;E=E.DS===void 0?!1:E.DS;this.jN=r;this.DS=E;y&&(y=Mn(y,this.DS),this.K=y.buffer,this.L=y.V,this.D=t||0,this.Y=a!==void 0?this.D+a:this.K.length,this.V=this.D)}; we.prototype.free=function(){this.clear();jj.length<100&&jj.push(this)}; we.prototype.clear=function(){this.K=null;this.L=!1;this.V=this.Y=this.D=0;this.jN=!1}; we.prototype.reset=function(){this.V=this.D}; var jj=[];Sj.prototype.free=function(){this.V.clear();this.K=this.Y=-1;QS.length<100&&QS.push(this)}; Sj.prototype.reset=function(){this.V.reset();this.D=this.V.V;this.K=this.Y=-1}; var QS=[];var Cv7,OpH;J_.prototype.length=function(){return this.V.length}; J_.prototype.end=function(){var y=this.V;this.V=[];return y};var ge=Yy(),BVy=Yy(),cW2=Yy(),qZ7=Yy(),YZz=Yy(),Dju=Yy(),gP7=Yy(),iG2=Yy(),KG7=Yy(),Isx=Yy(),TVb=Yy();Do.prototype.toJSON=function(){return FH(this)}; Do.prototype.Tv=function(y){return JSON.stringify(FH(this,y))}; Do.prototype.clone=function(){var y=this.jr,t=y[aI]|0;return Uw(this,y,t)?Cn(this,y,!0):new this.constructor($c(y,t,!1))}; Do.prototype[II]=TH;Do.prototype.toString=function(){return this.jr.toString()};var fP7=KY(function(y,t,a,r,E){if(y.K!==2)return!1;pY(y,bW(t,r,a),E);return!0},kRd),W67=KY(function(y,t,a,r,E){if(y.K!==2)return!1; pY(y,bW(t,r,a),E);return!0},kRd),hZ=Symbol(),yh=Symbol(),r8=Symbol(),eS2=Symbol(),Qsd=Symbol(),IO,TG;var Gb1=zH(0),ZGF=x0(function(y,t,a){if(y.K!==1)return!1;$0(t,a,fY(y.V));return!0},UQ,KG7),yo7=x0(function(y,t,a){if(y.K!==1)return!1; y=fY(y.V);$0(t,a,y===0?void 0:y);return!0},UQ,KG7),td2=x0(function(y,t,a,r){if(y.K!==1)return!1; JF(t,a,r,fY(y.V));return!0},UQ,KG7),ayF=x0(function(y,t,a){if(Iv)return y.K!==0?y=!1:($0(t,a,PC(y.V,WA)),y=!0),y; if(y.K!==0)return!1;$0(t,a,PC(y.V,kh));return!0},CE,gP7),rox=x0(function(y,t,a){if(Iv)return y.K!==0?t=!1:(y=PC(y.V,WA),$0(t,a,y===Gb1?void 0:y),t=!0),t; if(y.K!==0)return!1;y=PC(y.V,kh);$0(t,a,y===0?void 0:y);return!0},CE,gP7),ET2=x0(function(y,t,a,r){if(Iv)return y.K!==0?y=!1:(JF(t,a,r,PC(y.V,WA)),y=!0),y; if(y.K!==0)return!1;JF(t,a,r,PC(y.V,kh));return!0},CE,gP7),hl1=x0(function(y,t,a){if(y.K!==0)return!1; $0(t,a,Nn(y.V));return!0},zt,qZ7),FfV=x0(function(y,t,a){if(y.K!==0)return!1; y=Nn(y.V);$0(t,a,y===0?void 0:y);return!0},zt,qZ7),Ao7=x0(function(y,t,a,r){if(y.K!==0)return!1; JF(t,a,r,Nn(y.V));return!0},zt,qZ7),x6n=x0(function(y,t,a){if(Iv)return y.K!==1?y=!1:($0(t,a,ky(y.V)),y=!0),y; if(y.K!==1)return!1;$0(t,a,XF(y.V));return!0},function(y,t,a){N4b(y,a,je7(t))},iG2),sbx=sQ(function(y,t,a){if(Iv)return y.K!==1&&y.K!==2?y=!1:(t=lW(t,t[aI]|0,a),y.K==2?$Wz(y,ky,t):t.push(ky(y.V)),y=!0),y; if(y.K!==1&&y.K!==2)return!1;t=lW(t,t[aI]|0,a);y.K==2?$Wz(y,XF,t):t.push(XF(y.V));return!0},function(y,t,a){t=AZ(je7,t,!1); if(t!=null)for(var r=0;r>>0);return!0},function(y,t,a){t=Vo(t); t!=null&&t!=null&&(cC(y,a,0),HC(y.V,t))},YZz),r3=x0(function(y,t,a){if(y.K!==0)return!1; $0(t,a,Nn(y.V));return!0},function(y,t,a){t=uz(t); t!=null&&(t=parseInt(t,10),cC(y,a,0),MUH(y.V,t))},TVb);var Hp1=new Map;g.N(bp7,UWb);cEx.prototype.register=function(){ZV(this)};g.N(M8,Do);M8.prototype.Y=YmV([0,yo7,rox,-2,FfV]);ipx.prototype.o7=function(y){var t=this.V[y.key];if(y.valueType==="proto"){try{var a=JSON.parse(t);if(Array.isArray(a))return a}catch(r){}return y.defaultValue}return typeof t===typeof y.defaultValue?t:y.defaultValue};var IPu={f4G:1,IT:2,ObE:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};GRV.prototype.Lt=function(y){if(typeof y==="string"&&y.length!=0){var t=this.Yk;if(t.K){y=y.split("&");for(var a=y.length-1;a>=0;a--){var r=y[a].split("="),E=decodeURIComponent(r[0]);r.length>1?(r=decodeURIComponent(r[1]),r=/^[0-9]+$/g.exec(r)?parseInt(r,10):r):r=1;(E=t.V[E])&&E.Y(r)}}}};var E1=null;var Xo=g.ks.performance,wwd=!!(Xo&&Xo.mark&&Xo.measure&&Xo.clearMarks),N8=g4(function(){var y;if(y=wwd){var t=t===void 0?window:t;if(E1===null){E1="";try{y="";try{y=t.top.location.hash}catch(r){y=t.location.hash}if(y){var a=y.match(/\bdeid=([\d,]+)/);E1=a?a[1]:""}}catch(r){}}t=E1;y=!!t.indexOf&&t.indexOf("1337")>=0}return y}); d8.prototype.disable=function(){this.V=!1;this.events!==this.K.google_js_reporting_queue&&(N8()&&g.wK(this.events,EIn),this.events.length=0)}; d8.prototype.start=function(y,t){if(!this.V)return null;var a=aS7()||t$N();y=new rqF(y,t,a);t="goog_"+y.label+"_"+y.uniqueId+"_start";Xo&&N8()&&Xo.mark(t);return y}; d8.prototype.end=function(y){if(this.V&&typeof y.value==="number"){var t=aS7()||t$N();y.duration=t-y.value;t="goog_"+y.label+"_"+y.uniqueId+"_end";Xo&&N8()&&Xo.mark(t);!this.V||this.events.length>2048||this.events.push(y)}};var hfV=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),nE=/#|$/,UVV=/[?&]($|#)/;zf1.prototype.Xh=function(y,t,a,r,E){E=E||this.XP;try{var h=new W$;h.V.push(1);h.K[1]=j$("context",y);t.error&&t.meta&&t.id||(t=new Bv(cv(t)));if(t.msg){var F=t.msg.substring(0,512);h.V.push(2);h.K[2]=j$("msg",F)}var x=t.meta||{};if(this.j5)try{this.j5(x)}catch(L){}if(r)try{r(x)}catch(L){}r=[x];h.V.push(3);h.K[3]=r;var U=Wsd();if(U.K){var C=U.K.url||"";h.V.push(4);h.K[4]=j$("top",C)}var z={url:U.V.url||""};if(U.V.url){var O=g.fE(U.V.url);var M=k0(O[1],null,O[3],O[4])}else M="";C=[z,{url:M}];h.V.push(5); h.K[5]=C;Zp7(this.V,E,h,a)}catch(L){try{Zp7(this.V,E,{context:"ecmserr",rctx:y,msg:cv(L),url:U&&U.V.url},a)}catch(w){}}return this.Go}; g.N(Bv,yqz);var Hv,bJ,oF=new d8;Hv=new function(){var y="https:";qW&&qW.location&&qW.location.protocol==="http:"&&(y="http:");this.K=y;this.V=.01}; bJ=new zf1;qW&&qW.document&&(qW.document.readyState=="complete"?Ly1():oF.V&&Rg(qW,"load",function(){Ly1()}));var RfV=Date.now(),IF=-1,iJ=-1,vhN,Tt=-1,KE=!1;Gt.prototype.equals=function(y,t){return!!y&&(!(t===void 0?0:t)||this.volume==y.volume)&&this.Y==y.Y&&GR(this.V,y.V)&&!0};ZJ.prototype.YE=function(){return this.W}; ZJ.prototype.equals=function(y,t){return this.D.equals(y.D,t===void 0?!1:t)&&this.W==y.W&&GR(this.Y,y.Y)&&GR(this.J,y.J)&&this.V==y.V&&this.L==y.L&&this.K==y.K&&this.Z==y.Z};var Rl1={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},aD={El:"start",hJ:"firstquartile",rI:"midpoint",jB:"thirdquartile",COMPLETE:"complete",ERROR:"error",B8:"metric",PAUSE:"pause",Gh:"resume",SB:"skip",e7:"viewable_impression",wI:"mute",A0:"unmute",AJ:"fullscreen",Ez:"exitfullscreen",uI:"bufferstart",lI:"bufferfinish",Ha:"fully_viewable_audible_half_duration_impression",Cu:"measurable_impression",aA:"abandon",Sa:"engagedview",oB:"impression",Nw:"creativeview",LOADED:"loaded", prr:"progress",CLOSE:"close",mpv:"collapse",QfE:"overlay_resize",UNf:"overlay_unmeasurable_impression",LP4:"overlay_unviewable_impression",yLE:"overlay_viewable_immediate_impression",a4v:"overlay_viewable_end_of_session_impression",Ti:"custom_metric_viewable",kh:"audio_audible",tp:"audio_measurable",Ce:"audio_impression"},bnu="start firstquartile midpoint thirdquartile resume loaded".split(" "),BMF=["start","firstquartile","midpoint","thirdquartile"],ek7=["abandon"],XT={UNKNOWN:-1,El:0,hJ:1,rI:2, jB:3,COMPLETE:4,B8:5,PAUSE:6,Gh:7,SB:8,e7:9,wI:10,A0:11,AJ:12,Ez:13,Ha:14,Cu:15,aA:16,Sa:17,oB:18,Nw:19,LOADED:20,Ti:21,uI:22,lI:23,Ce:27,tp:28,kh:29};var Nyz={jde:"addEventListener",QN5:"getMaxSize",U1r:"getScreenSize",Lbm:"getState",aQX:"getVersion",xBf:"removeEventListener",QPX:"isViewable"};Srd.prototype.update=function(y){y&&y.document&&(this.W=yM(!1,y,this.isMobileDevice),this.V=yM(!0,y,this.isMobileDevice),vIN(this,y),QgH(this,y))};Av.prototype.cancel=function(){nQ().clearTimeout(this.V);this.V=null}; Av.prototype.schedule=function(){var y=this,t=nQ(),a=Pv().V.V;this.V=t.setTimeout(w8(a,Y0(143,function(){y.K++;y.Y.sample()})),Pnz())};g.R=xO.prototype;g.R.J7=function(){return!1}; g.R.initialize=function(){return this.isInitialized=!0}; g.R.NE=function(){return this.V.d0}; g.R.fn=function(){return this.V.AF}; g.R.fail=function(y,t){if(!this.AF||(t===void 0?0:t))this.AF=!0,this.d0=y,this.Z=0,this.V!=this||$O(this)}; g.R.getName=function(){return this.V.yv}; g.R.pz=function(){return this.V.gE()}; g.R.gE=function(){return{}}; g.R.qk=function(){return this.V.Z}; g.R.f6=function(){var y=Ed();y.V=yM(!0,this.Y,y.isMobileDevice)}; g.R.lF=function(){QgH(Ed(),this.Y)}; g.R.Js=function(){return this.D.V}; g.R.sample=function(){}; g.R.isActive=function(){return this.V.J}; g.R.H6=function(y){var t=this.V;this.V=y.qk()>=this.Z?y:this;t!==this.V?(this.J=this.V.J,$O(this)):this.J!==this.V.J&&(this.J=this.V.J,$O(this))}; g.R.jY=function(y){if(y.K===this.V){var t=!this.D.equals(y,this.hF);this.D=y;t&&lS1(this)}}; g.R.m2=function(){return this.hF}; g.R.dispose=function(){this.DE=!0}; g.R.Qv=function(){return this.DE};g.R=Ud.prototype;g.R.observe=function(){return!0}; g.R.unobserve=function(){}; g.R.MY=function(y){this.L=y}; g.R.dispose=function(){if(!this.Qv()){var y=this.K;g.tB(y.L,this);y.hF&&this.m2()&&ef1(y);this.unobserve();this.o5=!0}}; g.R.Qv=function(){return this.o5}; g.R.pz=function(){return this.K.pz()}; g.R.qk=function(){return this.K.qk()}; g.R.NE=function(){return this.K.NE()}; g.R.fn=function(){return this.K.fn()}; g.R.H6=function(){}; g.R.jY=function(){this.DL()}; g.R.m2=function(){return this.DE};g.R=Cj.prototype;g.R.qk=function(){return this.V.qk()}; g.R.NE=function(){return this.V.NE()}; g.R.fn=function(){return this.V.fn()}; g.R.create=function(y,t,a){var r=null;this.V&&(r=this.ac(y,t,a),sd(this.V,r));return r}; g.R.uF=function(){return this.wx()}; g.R.wx=function(){return!1}; g.R.init=function(y){return this.V.initialize()?(sd(this.V,this),this.D=y,!0):!1}; g.R.H6=function(y){y.qk()==0&&this.D(y.NE(),this)}; g.R.jY=function(){}; g.R.m2=function(){return!1}; g.R.dispose=function(){this.L=!0}; g.R.Qv=function(){return this.L}; g.R.pz=function(){return{}};Od.prototype.add=function(y,t,a){++this.Y;y=new V$2(y,t,a);this.V.push(new V$2(y.K,y.V,y.Y+this.Y/4096));this.K=!0;return this};HQn.prototype.toString=function(){var y="//pagead2.googlesyndication.com//pagead/gen_204",t=Mb(this.V);t.length>0&&(y+="?"+t);return y};g.H.prototype.bq=!1;g.H.prototype.Qv=function(){return this.bq}; g.H.prototype.dispose=function(){this.bq||(this.bq=!0,this.I5())}; g.H.prototype[Symbol.dispose]=function(){this.dispose()}; g.H.prototype.addOnDisposeCallback=function(y,t){this.bq?t!==void 0?y.call(t):y():(this.EM||(this.EM=[]),t&&(y=y.bind(t)),this.EM.push(y))}; g.H.prototype.I5=function(){if(this.EM)for(;this.EM.length;)this.EM.shift()()};var P8n=[0,ayF,$6b,-1];P4.prototype.update=function(y,t,a){y&&(this.V+=t,this.K+=t,this.D+=t,this.Y=Math.max(this.Y,this.D));if(a===void 0?!y:a)this.D=0};var Yrx=[1,.75,.5,.3,0];Nb.prototype.update=function(y,t,a,r,E,h){h=h===void 0?!0:h;t=E?Math.min(y,t):t;for(E=0;E0&&t>=F;F=!(y>0&&y>=F)||a;this.V[E].update(h&&x,r,!h||F)}};j3.prototype.update=function(y,t,a,r){this.W=this.W!=-1?Math.min(this.W,t.mW):t.mW;this.Vv=Math.max(this.Vv,t.mW);this.o5=this.o5!=-1?Math.min(this.o5,t.GZ):t.GZ;this.d0=Math.max(this.d0,t.GZ);this.n1.update(t.GZ,a.GZ,t.V,y,r);this.Ff+=y;t.mW===0&&(this.yv+=y);this.K.update(t.mW,a.mW,t.V,y,r);a=r||a.j9!=t.j9?a.isVisible()&&t.isVisible():a.isVisible();t=!t.isVisible()||t.V;this.r0.update(a,y,t)}; j3.prototype.Ge=function(){return this.r0.Y>=this.T7};if(hv&&hv.URL){var NqV=hv.URL,d6x;a:{if(NqV){var Xwy=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var hJ=Xwy.exec(decodeURIComponent(NqV));if(hJ){d6x=hJ[1]&&hJ[1].length>1?hJ[1].substring(1):"true";break a}}catch(y){}}d6x=""}bJ.Go=!(d6x.length>0)};var kPx=new Is(0,0,0,0);var ZQ7=new Is(0,0,0,0);g.N(e3,g.H);g.R=e3.prototype; g.R.I5=function(){if(this.Is.V){if(this.gq.jI){var y=this.Is.V;typeof y.removeEventListener==="function"&&y.removeEventListener("mouseover",this.gq.jI,wy());this.gq.jI=null}this.gq.nO&&(y=this.Is.V,typeof y.removeEventListener==="function"&&y.removeEventListener("mouseout",this.gq.nO,wy()),this.gq.nO=null)}this.LC&&this.LC.dispose();this.Qe&&this.Qe.dispose();delete this.Z9;delete this.WD;delete this.jW;delete this.Is.LB;delete this.Is.V;delete this.gq;delete this.LC;delete this.Qe;delete this.Yk; g.H.prototype.I5.call(this)}; g.R.L2=function(){return this.Qe?this.Qe.V:this.position}; g.R.Lt=function(y){Pv().Lt(y)}; g.R.m2=function(){return!1}; g.R.TV=function(){return new j3}; g.R.yQ=function(){return this.Z9}; g.R.Ql=function(y){return rj2(this,y,1E4)}; g.R.kG=function(y,t,a,r,E,h,F){this.oe||(this.W_&&(y=this.oh(y,a,E,F),r=r&&this.jf.mW>=(this.j9()?.3:.5),this.au(h,y,r),this.nH=t,y.mW>0&&-1===this.vM&&(this.vM=t),this.q0==-1&&this.Ge()&&(this.q0=t),this.lE==-2&&(this.lE=v4(this.L2())?y.mW:-1),this.jf=y),this.WD(this))}; g.R.au=function(y,t,a){this.yQ().update(y,t,this.jf,a)}; g.R.O_=function(){return new P1}; g.R.oh=function(y,t,a,r){a=this.O_();a.V=t;t=nQ().K;t=P$(hv)===0?-1:t.isVisible()?0:1;a.K=t;a.mW=this.JE(y);a.j9=this.j9();a.GZ=r;return a}; g.R.JE=function(y){return this.opacity===0&&Dh(this.Yk,"opac")===1?0:y}; g.R.j9=function(){return!1}; g.R.VG=function(){return this.p4F||this.N0X}; g.R.FV=function(){g8()}; g.R.G3=function(){g8()}; g.R.Iz=function(){return this.requestSource}; g.R.WK=function(){return 0}; g.R.Ge=function(){return this.Z9.Ge()}; g.R.uu=function(){var y=this.W_;y=(this.hasCompleted||this.Qv())&&!y;var t=Pv().K!==2||this.sdF;return this.oe||t&&y?2:this.Ge()?4:3}; g.R.BI=function(){return 0};g.uD.prototype.next=function(){return g.Fl}; g.Fl={done:!0,value:void 0};g.uD.prototype.J_=function(){return this};g.N(sI7,P1);var AJ=UEn([void 0,1,2,3,4,8,16]),xA=UEn([void 0,4,8,16]),fyy={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Jv("p0",xA),p1:Jv("p1",xA),p2:Jv("p2",xA),p3:Jv("p3",xA),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:mz("mtos1",[0,2,4],!1,xA),mtos2:mz("mtos2",[0,2,4],!1,xA),mtos3:mz("mtos3",[0,2,4],!1,xA),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Jv("a0",xA),a1:Jv("a1",xA),a2:Jv("a2",xA),a3:Jv("a3",xA),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:Jv("c0",xA),c1:Jv("c1",xA),c2:Jv("c2",xA),c3:Jv("c3",xA),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Jv("qmtos",AJ),qnc:Jv("qnc",AJ),qmv:Jv("qmv",AJ),qnv:Jv("qnv",AJ), 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:Jv("ss0",xA),ss1:Jv("ss1",xA),ss2:Jv("ss2",xA),ss3:Jv("ss3",xA),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"},Wfd=Object.assign({},fyy,{avid:Yo("audio"),avas:"avas",vs:"vs"}),jbu={atos:"atos",avt:mz("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(y,t){return function(a){return a[y]===void 0&&t!==void 0?t:a[y]}}("ss",0), t:"t"};B4.prototype.getValue=function(){return this.K}; B4.prototype.update=function(y,t){y>=32||(this.V&1<=.5;ap(t.volume)&&(this.D=this.D!=-1?Math.min(this.D,t.volume):t.volume,this.J=Math.max(this.J,t.volume));h&&(this.DE+=y,this.hF+=E?y:0);this.V.update(t.mW,a.mW,t.V,y,r,E);this.Y.update(!0,y);this.L.update(E,y);this.AF.update(a.fullscreen,y);this.Az.update(E&&!h,y);y=Math.floor(t.mediaTime/1E3);this.L1.update(y,t.isVisible());this.R5.update(y,t.mW>=1);this.JF.update(y, nj(t))}};wAH.prototype.K=function(y){this.Y||(this.V(y)?(y=QGF(this.hF,this.D,y),this.L|=y,y=y==0):y=!1,this.Y=y)};g.N(YO,wAH);YO.prototype.V=function(){return!0}; YO.prototype.J=function(){return!1}; YO.prototype.getId=function(){var y=this,t=v1(aD,function(a){return a==y.D}); return XT[t].toString()}; YO.prototype.toString=function(){var y="";this.J()&&(y+="c");this.Y&&(y+="s");this.L>0&&(y+=":"+this.L);return this.getId()+y};g.N(D7,YO);D7.prototype.K=function(y,t){t=t===void 0?null:t;t!=null&&this.W.push(t);YO.prototype.K.call(this,y)};g.N(gQ,RkF);gQ.prototype.K=function(){return null}; gQ.prototype.Y=function(){return[]};g.N(iD,Ud);g.R=iD.prototype;g.R.iG=function(){if(this.element){var y=this.element,t=this.K.V.Y;try{try{var a=fSz(y.getBoundingClientRect())}catch(C){a=new Is(0,0,0,0)}var r=a.right-a.left,E=a.bottom-a.top,h=OJu(y,t),F=h.x,x=h.y;var U=new Is(Math.round(x),Math.round(F+r),Math.round(x+E),Math.round(F))}catch(C){U=kPx.clone()}this.Y=U;this.V=u57(this,this.Y)}}; g.R.Tk=function(){this.J=this.K.D.V}; g.R.kf=function(y){var t=Dh(this.Yk,"od")==1;return GIV(y,this.J,this.element,t)}; g.R.RZ=function(){this.timestamp=g8()}; g.R.DL=function(){this.RZ();this.iG();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var y=this.element;var t=new g.F1(y.videoWidth,y.videoHeight);y=this.V;var a=TR(y),r=y.getHeight(),E=t.width;t=t.height;E<=0||t<=0||a<=0||r<=0||(E/=t,t=a/r,y=y.clone(),E>t?(a/=E,r=(r-a)/2,r>0&&(r=y.top+r,y.top=Math.round(r),y.bottom=Math.round(r+a))):(r*=E,a=Math.round((a-r)/2),a>0&&(a=y.left+a,y.left=Math.round(a),y.right=Math.round(a+r))));this.V=y}this.Tk(); y=this.V;a=this.J;y=y.left<=a.right&&a.left<=y.right&&y.top<=a.bottom&&a.top<=y.bottom?new Is(Math.max(y.top,a.top),Math.min(y.right,a.right),Math.min(y.bottom,a.bottom),Math.max(y.left,a.left)):new Is(0,0,0,0);a=y.top>=y.bottom||y.left>=y.right?new Is(0,0,0,0):y;y=this.K.D;t=E=r=0;if((this.V.bottom-this.V.top)*(this.V.right-this.V.left)>0)if(this.kf(a))a=new Is(0,0,0,0);else{r=Ed().D;t=new Is(0,r.height,r.width,0);var h;r=pj(a,(h=this.L)!=null?h:this.V);E=pj(a,Ed().V);t=pj(a,t)}h=a.top>=a.bottom|| a.left>=a.right?new Is(0,0,0,0):ZP(a,-this.V.left,-this.V.top);Ff()||(E=r=0);this.hF=new ZJ(y,this.element,this.V,h,r,E,this.timestamp,t)}; g.R.getName=function(){return this.K.getName()};var Sa7=new Is(0,0,0,0);g.N(Kj,iD);g.R=Kj.prototype;g.R.observe=function(){this.D();return!0}; g.R.jY=function(){iD.prototype.DL.call(this)}; g.R.RZ=function(){}; g.R.iG=function(){}; g.R.DL=function(){this.D();iD.prototype.DL.call(this)}; g.R.H6=function(y){y=y.isActive();y!==this.Z&&(y?this.D():(Ed().V=new Is(0,0,0,0),this.V=new Is(0,0,0,0),this.J=new Is(0,0,0,0),this.timestamp=-1));this.Z=y};var s1={},QId=(s1.firstquartile=0,s1.midpoint=1,s1.thirdquartile=2,s1.complete=3,s1);g.N(Tr,e3);g.R=Tr.prototype;g.R.m2=function(){return!0}; g.R.Lb=function(){return this.yb==2}; g.R.Ql=function(y){return rj2(this,y,Math.max(1E4,this.Y/3))}; g.R.kG=function(y,t,a,r,E,h,F){var x=this,U=this.W(this)||{};g.ms(U,E);this.Y=U.duration||this.Y;this.hF=U.isVpaid||this.hF;this.yv=U.isYouTube||this.yv;nQ();this.n1=!1;E=Np2(this,t);Pzd(this)===1&&(h=E);e3.prototype.kG.call(this,y,t,a,r,U,h,F);this.EE&&this.EE.Y&&g.wK(this.J,function(C){C.K(x)})}; g.R.au=function(y,t,a){e3.prototype.au.call(this,y,t,a);yg(this).update(y,t,this.jf,a);this.T7=nj(this.jf)&&nj(t);this.d0==-1&&this.R5&&(this.d0=this.yQ().Y.V);this.rP.Y=0;y=this.Ge();t.isVisible()&&bD(this.rP,"vs");y&&bD(this.rP,"vw");ap(t.volume)&&bD(this.rP,"am");nj(t)?bD(this.rP,"a"):bD(this.rP,"mut");this.i5&&bD(this.rP,"f");t.K!=-1&&(bD(this.rP,"bm"),t.K==1&&(bD(this.rP,"b"),nj(t)&&bD(this.rP,"umutb")));nj(t)&&t.isVisible()&&bD(this.rP,"avs");this.T7&&y&&bD(this.rP,"avw");t.mW>0&&bD(this.rP, "pv");tM(this,this.yQ().Y.V,!0)&&bD(this.rP,"gdr");fj(this.yQ().K,1)>=2E3&&bD(this.rP,"pmx");this.n1&&bD(this.rP,"tvoff")}; g.R.TV=function(){return new c4}; g.R.yQ=function(){return this.Z9}; g.R.O_=function(){return new sI7}; g.R.oh=function(y,t,a,r){y=e3.prototype.oh.call(this,y,t,a,r===void 0?-1:r);y.fullscreen=this.i5;y.paused=this.Lb();y.volume=a.volume;ap(y.volume)||(this.I7++,t=this.jf,ap(t.volume)&&(y.volume=t.volume));a=a.currentTime;y.mediaTime=a!==void 0&&a>=0?a:-1;return y}; g.R.JE=function(y){return Ed(),this.i5?1:e3.prototype.JE.call(this,y)}; g.R.WK=function(){return 1}; g.R.getDuration=function(){return this.Y}; g.R.uu=function(){return this.oe?2:XA7(this)?5:this.Ge()?4:3}; g.R.BI=function(){return this.Az?this.yQ().L.Y>=2E3?4:3:2}; g.R.MY=function(y){this.Qe&&this.Qe.MY(y)};var Qbn=g.oq();Hz1.prototype.reset=function(){this.V=[];this.K=[]}; var AM=un(Hz1);g.N($B,Cj);g.R=$B.prototype;g.R.getName=function(){return(this.K?this.K:this.V).getName()}; g.R.pz=function(){return(this.K?this.K:this.V).pz()}; g.R.qk=function(){return(this.K?this.K:this.V).qk()}; g.R.init=function(y){var t=!1;(0,g.wK)(this.Y,function(a){a.initialize()&&(t=!0)}); t&&(this.D=y,sd(this.V,this));return t}; g.R.dispose=function(){(0,g.wK)(this.Y,function(y){y.dispose()}); Cj.prototype.dispose.call(this)}; g.R.uF=function(){return rQ(this.Y,function(y){return y.J7()})}; g.R.wx=function(){return rQ(this.Y,function(y){return y.J7()})}; g.R.ac=function(y,t,a){return new iD(y,this.V,t,a)}; g.R.jY=function(y){this.K=y.K};var K5y={threshold:[0,.3,.5,.75,1]};g.N(U$,iD);g.R=U$.prototype;g.R.observe=function(){var y=this;this.Vv||(this.Vv=g8());if(w$N(298,function(){return Ify(y)}))return!0; this.K.fail("msf");return!1}; g.R.unobserve=function(){if(this.D&&this.element)try{this.D.unobserve(this.element),this.Z?(this.Z.unobserve(this.element),this.Z=null):this.W&&(this.W.disconnect(),this.W=null)}catch(y){}}; g.R.DL=function(){var y=CP(this);y.length>0&&zB(this,y);iD.prototype.DL.call(this)}; g.R.iG=function(){}; g.R.kf=function(){return!1}; g.R.Tk=function(){}; g.R.pz=function(){var y={};return Object.assign(this.K.pz(),(y.niot_obs=this.Vv,y.niot_cbk=this.AF,y))}; g.R.getName=function(){return"nio"};g.N(O$,Cj);O$.prototype.getName=function(){return"nio"}; O$.prototype.wx=function(){return!Ed().K&&this.V.V.Y.IntersectionObserver!=null}; O$.prototype.ac=function(y,t,a){return new U$(y,this.V,t,a)};g.N(LP,xO);LP.prototype.Js=function(){return Ed().V}; LP.prototype.J7=function(){var y=GH7();this.Z!==y&&(this.V!=this&&y>this.V.Z&&(this.V=this,$O(this)),this.Z=y);return y==2};Mr.prototype.sample=function(){PI(this,xB(),!1)}; Mr.prototype.D=function(){var y=Ff(),t=g8();y?(KE||(IF=t,g.wK(AM.V,function(a){var r=a.yQ();r.C1=qb(r,t,a.yb!=1)})),KE=!0):(this.W=rF7(this,t),KE=!1,vhN=t,g.wK(AM.V,function(a){a.W_&&(a.yQ().Z=t)})); PI(this,xB(),!y)}; var w6=un(Mr);var hP2=null,g6="",DN=!1;var xIF=AFF().aq,d6=AFF().qB;var UIF={iDX:"visible",ptG:"audible",VFX:"time",eLf:"timetype"},CW1={visible:function(y){return/^(100|[0-9]{1,2})$/.test(y)}, audible:function(y){return y=="0"||y=="1"}, timetype:function(y){return y=="mtos"||y=="tos"}, time:function(y){return/^(100|[0-9]{1,2})%$/.test(y)||/^([0-9])+ms$/.test(y)}}; $I7.prototype.setTime=function(y,t,a){t=="ms"?(this.Y=y,this.D=-1):(this.Y=-1,this.D=y);this.L=a===void 0?"tos":a;return this};g.N(WI,YO);WI.prototype.getId=function(){return this.W}; WI.prototype.J=function(){return!0}; WI.prototype.V=function(y){var t=y.yQ(),a=y.getDuration();return rQ(this.Z,function(r){if(r.V!=void 0)var E=On7(r,t);else b:{switch(r.L){case "mtos":E=r.K?t.L.Y:t.Y.V;break b;case "tos":E=r.K?t.L.V:t.Y.V;break b}E=0}E==0?r=!1:(r=r.Y!=-1?r.Y:a!==void 0&&a>0?r.D*a:-1,r=r!=-1&&E>=r);return r})};g.N(jR,zky);jR.prototype.V=function(y){var t=new CzF;t.V=H4(y,fyy);t.K=H4(y,jbu);return t};g.N(SR,YO);SR.prototype.V=function(y){return XA7(y)};g.N(Qg,RkF);g.N(ug,YO);ug.prototype.V=function(y){return y.yQ().Ge()};g.N(Vg,D7);Vg.prototype.V=function(y){var t=g.TE(this.W,Dh(Pv().Yk,"ovms"));return!y.oe&&(y.yb!=0||t)};g.N(nP,Qg);nP.prototype.K=function(){return new Vg(this.V)}; nP.prototype.Y=function(){return[new ug("viewable_impression",this.V),new SR(this.V)]};g.N(m8,Kj);m8.prototype.D=function(){var y=g.jc("ima.admob.getViewability"),t=Dh(this.Yk,"queryid");typeof y==="function"&&t&&y(t)}; m8.prototype.getName=function(){return"gsv"};g.N(JM,Cj);JM.prototype.getName=function(){return"gsv"}; JM.prototype.wx=function(){var y=Ed();Pv();return y.K&&!1}; JM.prototype.ac=function(y,t,a){return new m8(this.V,t,a)};g.N(oD,Kj);oD.prototype.D=function(){var y=this,t=g.jc("ima.bridge.getNativeViewability"),a=Dh(this.Yk,"queryid");typeof t==="function"&&a&&t(a,function(r){g.pJ(r)&&y.W++;var E=r.opt_nativeViewVisibleBounds||{},h=r.opt_nativeViewHidden;y.V=Wy2(r.opt_nativeViewBounds||{});var F=y.K.D;F.V=h?Sa7.clone():Wy2(E);y.timestamp=r.opt_nativeTime||-1;Ed().V=F.V;r=r.opt_nativeVolume;r!==void 0&&(F.volume=r)})}; oD.prototype.getName=function(){return"nis"};g.N(HI,Cj);HI.prototype.getName=function(){return"nis"}; HI.prototype.wx=function(){var y=Ed();Pv();return y.K&&!1}; HI.prototype.ac=function(y,t,a){return new oD(this.V,t,a)};g.N(bg,xO);g.R=bg.prototype;g.R.J7=function(){return this.K.Cb!=null}; g.R.gE=function(){var y={};this.L1&&(y.mraid=this.L1);this.o5&&(y.mlc=1);y.mtop=this.K.tfr;this.W&&(y.mse=this.W);this.Ff&&(y.msc=1);y.mcp=this.K.compatibility;return y}; g.R.eh=function(y){var t=g.w2.apply(1,arguments);try{return this.K.Cb[y].apply(this.K.Cb,t)}catch(a){DJ(538,a,.01,function(r){r.method=y})}}; g.R.initialize=function(){var y=this;if(this.isInitialized)return!this.fn();this.isInitialized=!0;if(this.K.compatibility===2)return this.W="ng",this.fail("w"),!1;if(this.K.compatibility===1)return this.W="mm",this.fail("w"),!1;Ed().Z=!0;this.Y.document.readyState&&this.Y.document.readyState=="complete"?RP1(this):QM(this.Y,"load",function(){nQ().setTimeout(Y0(292,function(){return RP1(y)}),100)},292); return!0}; g.R.f6=function(){var y=Ed(),t=kU1(this,"getMaxSize");y.V=new Is(0,t.width,t.height,0)}; g.R.lF=function(){Ed().D=kU1(this,"getScreenSize")}; g.R.dispose=function(){NMy(this);xO.prototype.dispose.call(this)};var vTF=new function(y,t){this.key=y;this.defaultValue=t===void 0?!1:t;this.valueType="boolean"}("45378663");g.R=cI.prototype;g.R.Oa=function(y){lD(y,!1);q0N(y)}; g.R.VE=function(){}; g.R.rX=function(y,t,a,r){var E=this;y=new Tr(qW,y,a?t:-1,7,this.Rh(),this.v3());y.Ht=r;Fi2(y.Yk);Y_(y.Yk,"queryid",y.Ht);y.Lt("");F51(y,function(){return E.Nz.apply(E,g.i7(g.w2.apply(0,arguments)))},function(){return E.Peu.apply(E,g.i7(g.w2.apply(0,arguments)))}); (r=un(s$).V)&&af7(y,r);this.Y&&(y.MY(this.Y),this.Y=null);y.Is.LB&&un(ZzH);return y}; g.R.H6=function(y){switch(y.qk()){case 0:if(y=un(s$).V)y=y.V,g.tB(y.L,this),y.hF&&this.m2()&&ef1(y);YB();break;case 2:RD()}}; g.R.jY=function(){}; g.R.m2=function(){return!1}; g.R.Peu=function(y,t){y.oe=!0;switch(y.WK()){case 1:vcd(y,t);break;case 2:this.SE(y)}}; g.R.FXG=function(y){var t=y.W(y);t&&(t=t.volume,y.Az=ap(t)&&t>0);W5z(y,0);return r6(y,"start",Ff())}; g.R.eU=function(y,t,a){PI(w6,[y],!Ff());return this.NB(y,t,a)}; g.R.NB=function(y,t,a){return r6(y,a,Ff())}; g.R.dru=function(y){return TB(y,"firstquartile",1)}; g.R.Dr4=function(y){y.R5=!0;return TB(y,"midpoint",2)}; g.R.Q50=function(y){return TB(y,"thirdquartile",3)}; g.R.Ym5=function(y){var t=TB(y,"complete",4);Gr(y);return t}; g.R.i1F=function(y){y.yb=3;return r6(y,"error",Ff())}; g.R.gQ=function(y,t,a){t=Ff();if(y.Lb()&&!t){var r=y.yQ(),E=g8();r.Z=E}PI(w6,[y],!t);y.Lb()&&(y.yb=1);return r6(y,a,t)}; g.R.mrv=function(y,t){t=this.eU(y,t||{},"skip");Gr(y);return t}; g.R.gG0=function(y,t){lD(y,!0);return this.eU(y,t||{},"fullscreen")}; g.R.xr1=function(y,t){lD(y,!1);return this.eU(y,t||{},"exitfullscreen")}; g.R.Ys=function(y,t,a){t=y.yQ();var r=g8();t.C1=qb(t,r,y.yb!=1);PI(w6,[y],!Ff());y.yb==1&&(y.yb=2);return r6(y,a,Ff())}; g.R.vGr=function(y){PI(w6,[y],!Ff());return y.K()}; g.R.fp=function(y){PI(w6,[y],!Ff());this.cQ(y);Gr(y);return y.K()}; g.R.Nz=function(){}; g.R.SE=function(){}; g.R.cQ=function(){}; g.R.bF=function(){}; g.R.G6=function(){}; g.R.v3=function(){this.V||(this.V=this.G6());return this.V==null?new gQ:new nP(this.V)}; g.R.Rh=function(){return new jR};g.N(GB,YO);GB.prototype.V=function(y){return y.BI()==4};g.N(ZN,D7);ZN.prototype.V=function(y){y=y.BI();return y==3||y==4};g.N(yZ,Qg);yZ.prototype.K=function(){return new ZN(this.V)}; yZ.prototype.Y=function(){return[new GB(this.V)]};g.N(t2,zky);t2.prototype.V=function(y){y&&(y.e===28&&(y=Object.assign({},y,{avas:3})),y.vs===4||y.vs===5)&&(y=Object.assign({},y,{vs:3}));var t=new CzF;t.V=H4(y,Wfd);t.K=H4(y,jbu);return t};uH7.prototype.K=function(){return g.jc(this.V)};g.N(az,cI);g.R=az.prototype;g.R.VE=function(y,t){var a=this,r=un(s$);if(r.V!=null)switch(r.V.getName()){case "nis":var E=JFF(this,y,t);break;case "gsv":E=mIN(this,y,t);break;case "exc":E=ocy(this,y)}E||(t.opt_overlayAdElement?E=void 0:t.opt_adElement&&(E=ePH(this,y,t.opt_adElement,t.opt_osdId)));E&&E.WK()==1&&(E.W==g.DP&&(E.W=function(h){return a.bF(h)}),nc2(this,E,t)); return E}; g.R.bF=function(y){y.K=0;y.DE=0;if(y.D=="h"||y.D=="n"){Pv();y.JF&&(Pv(),KP(this)!="h"&&KP(this));var t=g.jc("ima.common.getVideoMetadata");if(typeof t==="function")try{var a=t(y.Ht)}catch(E){y.K|=4}else y.K|=2}else if(y.D=="b")if(t=g.jc("ytads.bulleit.getVideoMetadata"),typeof t==="function")try{a=t(y.Ht)}catch(E){y.K|=4}else y.K|=2;else if(y.D=="ml")if(t=g.jc("ima.common.getVideoMetadata"),typeof t==="function")try{a=t(y.Ht)}catch(E){y.K|=4}else y.K|=2;else y.K|=1;y.K||(a===void 0?y.K|=8:a===null? y.K|=16:g.pJ(a)?y.K|=32:a.errorCode!=null&&(y.DE=a.errorCode,y.K|=64));a==null&&(a={});t=a;y.Z=0;for(var r in Rl1)t[r]==null&&(y.Z|=Rl1[r]);ljb(t,"currentTime");ljb(t,"duration");ap(a.volume)&&ap()&&(a.volume*=NaN);return a}; g.R.G6=function(){Pv();KP(this)!="h"&&KP(this);var y=Hnx(this);return y!=null?new uH7(y):null}; g.R.SE=function(y){!y.V&&y.oe&&ID(this,y,"overlay_unmeasurable_impression")&&(y.V=!0)}; g.R.cQ=function(y){y.Xb&&(y.Ge()?ID(this,y,"overlay_viewable_end_of_session_impression"):ID(this,y,"overlay_unviewable_impression"),y.Xb=!1)}; g.R.Nz=function(){}; g.R.rX=function(y,t,a,r){if(Pv().flags.o7(vTF)){var E=Dh(Pv().Yk,"mm"),h={};(E=(h[RF.Mw]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",h[RF.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",h)[E])&&qw7(this,E);this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&DJ(1044,Error())}y=cI.prototype.rX.call(this,y,t,a,r);this.L&&(t=this.J,y.L==null&&(y.L=new Aj7),t.V[y.Ht]=y.L,y.L.L=Qbn);return y}; g.R.Oa=function(y){y&&y.WK()==1&&this.L&&delete this.J.V[y.Ht];return cI.prototype.Oa.call(this,y)}; g.R.v3=function(){this.V||(this.V=this.G6());return this.V==null?new gQ:this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new yZ(this.V):new nP(this.V)}; g.R.Rh=function(){return this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new t2:new jR}; g.R.MY=function(y,t,a,r,E){t=new Is(a,t+r,a+E,t);(y=FT(AM,y))?y.MY(t):this.Y=t}; var pwV=q8(193,DIz,void 0,p0N);g.Wd("Goog_AdSense_Lidar_sendVastEvent",pwV);var el2=Y0(194,function(y,t){t=t===void 0?{}:t;y=cFF(un(az),y,t);return YwH(y)}); g.Wd("Goog_AdSense_Lidar_getViewability",el2);var lyu=q8(195,function(){return o_b()}); g.Wd("Goog_AdSense_Lidar_getUrlSignalsArray",lyu);var u8N=Y0(196,function(){return JSON.stringify(o_b())}); g.Wd("Goog_AdSense_Lidar_getUrlSignalsList",u8N);var Kmz=g.K7(["//ep2.adtrafficquality.google/sodar/",""]),Ij1=g.K7(["//tpc.googlesyndication.com/sodar/",""]);g.N(h2,Error);g.N(x7,g.H);x7.prototype.mV=function(){return this.wpc.f()}; x7.prototype.NG=function(y){this.wpc.c(y)}; x7.prototype.BL=function(y){return this.wpc.m(y_x(y))}; x7.prototype.tN=function(y){return this.wpc.mws(y_x(y))}; g.N(FP,g.H);FP.prototype.snapshot=function(y){return this.lK.s(Object.assign({},y.y$&&{c:y.y$},y.R3&&{s:y.R3},y.SD!==void 0&&{p:y.SD}))}; FP.prototype.nj=function(y){this.lK.e(y)}; FP.prototype.hq=function(){return this.lK.l()};g.N($7,g.H);$7.prototype.share=function(){if(this.Qv())throw Error("E:AD");this.K++;return this}; $7.prototype.dispose=function(){--this.K||g.H.prototype.dispose.call(this)};FnF.prototype.vG=function(y,t){this.V.vG("/client_streamz/bg/frs",y,t)}; A_x.prototype.vG=function(y,t,a,r,E,h){this.V.vG("/client_streamz/bg/wrl",y,t,a,r,E,h)}; xn2.prototype.QY=function(y,t){this.V.rK("/client_streamz/bg/ec",y,t)}; sO7.prototype.vG=function(y,t,a){this.V.vG("/client_streamz/bg/el",y,t,a)}; $nN.prototype.QY=function(y,t){this.V.rK("/client_streamz/bg/cec",y,t)}; Unb.prototype.QY=function(y,t){this.V.rK("/client_streamz/bg/po/csc",y,t)}; CVF.prototype.QY=function(y,t){this.V.rK("/client_streamz/bg/po/ctav",y,t)}; z5u.prototype.QY=function(y,t){this.V.rK("/client_streamz/bg/po/cwsc",y,t)};g.N(OY2,Do);g.N(zA,Do);var N3=[1,2,3];var Vd7=[0,N3,OTN,Ao7,C8N];var nTn=[0,Z2,[0,ZGF,ayF]];g.N(Oq,Do);var P6=[1,2,3];var m6n=[0,P6,ET2,td2,tJ,nTn];g.N(L0,Do);var Joz=[0,Z2,Vd7,m6n];var oT2=[0,GY];g.N(M3,Do);var HTF=[0,GY,-1,U6V];var bTn=[0,GY,-1,hl1,U6V];g.N(wi,Do);var qXd=[1,2,3];var Bqx=[0,qXd,tJ,HTF,tJ,bTn,tJ,oT2];g.N(Rz,Do);Rz.prototype.FA=function(){var y=fn(this,3,iz,3,!0);xh(y);return y[void 0]};Rz.prototype.Y=YmV([0,GY,Bqx,zlx,Z2,Joz,x6n,sbx]);g.N(MjF,Do);g.R=di.prototype;g.R.isEnabled=function(){if(!g.ks.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Ug:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.R.set=function(y,t,a){var r=!1;if(typeof a==="object"){var E=a.sameSite;r=a.secure||!1;var h=a.domain||void 0;var F=a.path||void 0;var x=a.Ug}if(/[;=\s]/.test(y))throw Error('Invalid cookie name "'+y+'"');if(/[;\r\n]/.test(t))throw Error('Invalid cookie value "'+t+'"');x===void 0&&(x=-1);a=h?";domain="+h:"";F=F?";path="+F:"";r=r?";secure":"";x=x<0?"":x==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+x*1E3)).toUTCString();this.V.cookie=y+"="+t+a+F+x+r+(E!=null? ";samesite="+E:"")}; g.R.get=function(y,t){for(var a=y+"=",r=(this.V.cookie||"").split(";"),E=0,h;E=0;t--)this.remove(y[t])}; var HE=new di(typeof document=="undefined"?null:document);k7.prototype.compress=function(y){var t,a,r,E;return g.m(function(h){switch(h.V){case 1:return t=new CompressionStream("gzip"),a=(new Response(t.readable)).arrayBuffer(),r=t.writable.getWriter(),g.u(h,r.write((new TextEncoder).encode(y)),2);case 2:return g.u(h,r.close(),3);case 3:return E=Uint8Array,g.u(h,a,4);case 4:return h.return(new E(h.K))}})}; k7.prototype.isSupported=function(y){return y<1024?!1:typeof CompressionStream!=="undefined"};g.N(f0,Do);W6.prototype.setInterval=function(y){this.intervalMs=y;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; W6.prototype.start=function(){var y=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){y.tick()},this.intervalMs),this.K=this.V())}; W6.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; W6.prototype.tick=function(){var y=this;if(this.enabled){var t=Math.max(this.V()-this.K,0);t0?a:void 0));a=P0(a,4,lz(E>0?E:void 0));a=P0(a,5,lz(h>0?h:void 0));E=a.jr;h=E[aI]|0;a=Aj(a,h)?a:Uw(a,E,h)?Cn(a,E):new a.constructor($c(E,h,!0));Yc(F,g.QZ,10,a)}F=this.V.clone();a=Date.now().toString();F=P0(F,4,BA(a));y=Dj(F,mK,3,y.slice());r&&(F=new j5,r=P0(F,13,lz(r)),F= new S5,r=Yc(F,j5,2,r),F=new n0,r=Yc(F,S5,1,r),r=re(r,2,9),Yc(y,n0,18,r));t&&yS(y,14,t);return y};g.B6.prototype.K=0;g.B6.prototype.reset=function(){this.V=this.Y=this.D;this.K=0}; g.B6.prototype.getValue=function(){return this.Y};g.N(OQ,Do);var coF=LE(OQ);g.N(B4y,Do);var $A;$A=new cEx;g.N(DW,g.H);g.R=DW.prototype;g.R.I5=function(){Y7(this);this.K.stop();this.L1.stop();g.H.prototype.I5.call(this)}; g.R.dispatch=function(y){if(y instanceof mK)this.log(y);else try{var t=new mK,a=y.Tv();var r=t_(t,8,a);this.log(r)}catch(E){gi(this,4,1)}}; g.R.log=function(y){gi(this,2,1);if(this.Ff){y=y.clone();var t=this.r0++;y=yS(y,21,t);this.componentId&&t_(y,26,this.componentId);t=y;var a=wM(t,1);var r=r===void 0?!1:r;var E=typeof a;r=a==null?a:E==="bigint"?String(m5(64,a)):el(a)?E==="string"?nz(a):r?Jj(a):oI(a):void 0;r==null&&(r=Date.now(),r=Number.isFinite(r)?r.toString():"0",P0(t,1,BA(r)));(yEu?kfn(wM(t,15,void 0,void 0,Df)):kfn(wM(t,15)))!=null||yS(t,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(r=this.experimentIds.clone(),Yc(t, f0,16,r));gi(this,1,1);t=this.V.length-1E3+1;t>0&&(this.V.splice(0,t),this.D+=t,gi(this,3,t));this.V.push(y);this.fE||this.K.enabled||this.K.start()}}; g.R.flush=function(y,t){var a=this;if(this.V.length===0)y&&y();else if(this.d0&&this.AF)this.Y.K=3,bYx(this);else{var r=Date.now();if(this.C1>r&&this.DE0&&(a.DE=Date.now(),a.C1=a.DE+M);M=Hd(Zf);var d;tj&&M&&((d=L.jr[M])==null?void 0:d[175237375])!=null&&ZS(uCd,3);a:{var k=k===void 0?!1:k;if(Hd(VuN)&&Hd(Zf)&&void 0===VuN){d=L.jr;M=d[Zf];if(!M)break a;if(M=M.zo)try{M(d,175237375,bGV);break a}catch(e){Jq(e)}}k&&(k=L.jr, (d=Hd(Zf))&&d in k&&(k=k[d])&&delete k[175237375])}k=$A.V?$A.K(L,$A.V,175237375,$A.Y):$A.K(L,175237375,null,$A.Y);if(k=k===null?void 0:k)k=g.iW(k,1,-1),k!==-1&&(a.L=new g.B6(k<1?1:k,3E5,.1),a.K.setInterval(a.L.getValue()))}}y&&y();a.J=0},z=function(M,L){var w=qI(h,mK,3); var d=Number(tUb(h,14));g.c6(a.L);a.K.setInterval(a.L.getValue());M===401&&F&&(a.yv=F);d&&(a.D+=d);L===void 0&&(L=a.isRetryable(M));L&&(a.V=w.concat(a.V),a.fE||a.K.enabled||a.K.start());gi(a,7,1);t&&t("net-send-failed",M);++a.J},O=function(){a.network&&a.network.send(U,C,z)}; x?x.then(function(M){gi(a,5,E);U.requestHeaders["Content-Encoding"]="gzip";U.requestHeaders["Content-Type"]="application/binary";U.body=M;U.wF=2;O()},function(){gi(a,6,E); O()}):O()}}}}; g.R.isRetryable=function(y){return 500<=y&&y<600||y===401||y===0};iQ.prototype.send=function(y,t,a){var r=this,E,h,F,x,U,C,z,O,M,L;return g.m(function(w){switch(w.V){case 1:return h=(E=r.Pf?new AbortController:void 0)?setTimeout(function(){E.abort()},y.timeoutMillis):void 0,g.xs(w,2,3),F=Object.assign({},{method:y.requestType, headers:Object.assign({},y.requestHeaders)},y.body&&{body:y.body},y.withCredentials&&{credentials:"include"},{signal:y.timeoutMillis&&E?E.signal:null}),g.u(w,fetch(y.url,F),5);case 5:x=w.K;if(x.status!==200){(U=a)==null||U(x.status);w.xG(3);break}if((C=t)==null){w.xG(7);break}return g.u(w,x.text(),8);case 8:C(w.K);case 7:case 3:g.CI(w);clearTimeout(h);g.zE(w,0);break;case 2:z=g.Uy(w);switch((O=z)==null?void 0:O.name){case "AbortError":(M=a)==null||M(408);break;default:(L=a)==null||L(400)}w.xG(3)}})}; iQ.prototype.Hn=function(){return 4};g.N(K0,g.H);K0.prototype.eV=function(){this.D=!0;return this}; K0.prototype.build=function(){this.network||(this.network=new iQ);var y=new DW({logSource:this.logSource,uL:this.uL?this.uL:SN7,sessionIndex:this.sessionIndex,MQm:this.yN,Te:this.Y,fE:!1,eV:this.D,w3:this.w3,network:this.network});g.c(this,y);if(this.buildLabel){var t=this.buildLabel,a=bQ(y.Y);t_(a,7,t)}y.W=new k7;this.componentId&&(y.componentId=this.componentId);this.G4&&(y.G4=this.G4);this.pageId&&(y.pageId=this.pageId);this.V&&((a=this.V)?(y.experimentIds||(y.experimentIds=new f0),t=y.experimentIds, a=a.Tv(),t_(t,4,a)):y.experimentIds&&P0(y.experimentIds,4));this.K&&(y.d0=y.AF);nyn(y.Y);this.network.cR&&this.network.cR(this.logSource);this.network.LSE&&this.network.LSE(y);return y};g.N(Iz,g.H);Iz.prototype.flush=function(y){y=y||[];if(y.length){for(var t=new MjF,a=[],r=0;r-1?(t=y[F],a||(t.Ft=!1)):(t=new Kn7(t,this.src,h,!!r,E),t.Ft=a,y.push(t));return t}; g.R.remove=function(y,t,a,r){y=y.toString();if(!(y in this.listeners))return!1;var E=this.listeners[y];t=Ax(E,t,a,r);return t>-1?(Eb(E[t]),g.GE(E,t),E.length==0&&(delete this.listeners[y],this.V--),!0):!1}; g.R.removeAll=function(y){y=y&&y.toString();var t=0,a;for(a in this.listeners)if(!y||a==y){for(var r=this.listeners[a],E=0;E-1?y[E]:null}; g.R.hasListener=function(y,t){var a=y!==void 0,r=a?y.toString():"",E=t!==void 0;return g.A1(this.listeners,function(h){for(var F=0;F>>0);g.Bd(g.MM,g.H);g.MM.prototype[gyz]=!0;g.R=g.MM.prototype;g.R.addEventListener=function(y,t,a,r){g.sb(this,y,t,a,r)}; g.R.removeEventListener=function(y,t,a,r){aJn(this,y,t,a,r)}; g.R.dispatchEvent=function(y){var t=this.sb;if(t){var a=[];for(var r=1;t;t=t.sb)a.push(t),++r}t=this.iz;r=y.type||y;if(typeof y==="string")y=new g.tx(y,t);else if(y instanceof g.tx)y.target=y.target||t;else{var E=y;y=new g.tx(r,t);g.ms(y,E)}E=!0;var h;if(a)for(h=a.length-1;!y.K&&h>=0;h--){var F=y.currentTarget=a[h];E=wk(F,r,!0,y)&&E}y.K||(F=y.currentTarget=t,E=wk(F,r,!0,y)&&E,y.K||(E=wk(F,r,!1,y)&&E));if(a)for(h=0;!y.K&&h0){this.K--;var y=this.V;this.V=y.next;y.next=null}else y=this.Y();return y};var NM;Xr.prototype.add=function(y,t){var a=x82.get();a.set(y,t);this.K?this.K.next=a:this.V=a;this.K=a}; Xr.prototype.remove=function(){var y=null;this.V&&(y=this.V,this.V=this.V.next,this.V||(this.K=null),y.next=null);return y}; var x82=new Rr(function(){return new kC},function(y){return y.reset()}); kC.prototype.set=function(y,t){this.V=y;this.scope=t;this.next=null}; kC.prototype.reset=function(){this.next=this.scope=this.V=null};var fZ,WL=!1,F07=new Xr;sF7.prototype.reset=function(){this.context=this.K=this.Y=this.V=null;this.D=!1}; var $87=new Rr(function(){return new sF7},function(y){y.reset()}); g.Qn.prototype.then=function(y,t,a){return PJ7(this,PL(typeof y==="function"?y:null),PL(typeof t==="function"?t:null),a)}; g.Qn.prototype.$goog_Thenable=!0;g.R=g.Qn.prototype;g.R.finally=function(y){var t=this;y=PL(y);return new g.Qn(function(a,r){OEx(t,function(E){y();a(E)},function(E){y(); r(E)})})}; g.R.Eh=function(y,t){return PJ7(this,null,PL(y),t)}; g.R.catch=g.Qn.prototype.Eh;g.R.cancel=function(y){if(this.V==0){var t=new Vn(y);g.jv(function(){L01(this,t)},this)}}; g.R.dC5=function(y){this.V=0;Sv(this,2,y)}; g.R.gjE=function(y){this.V=0;Sv(this,3,y)}; g.R.Sx=function(){for(var y;y=M8n(this);)wvb(this,y,this.V,this.W);this.J=!1}; var kty=Jq;g.Bd(Vn,cd);Vn.prototype.name="cancel";g.Bd(g.nZ,g.MM);g.R=g.nZ.prototype;g.R.enabled=!1;g.R.fM=null;g.R.setInterval=function(y){this.Rd=y;this.fM&&this.enabled?(this.stop(),this.start()):this.fM&&this.stop()}; g.R.O$r=function(){if(this.enabled){var y=g.oq()-this.X8;y>0&&y0&&(this.getStatus(),this.J=setTimeout(this.Ws.bind(this), this.AF)),this.getStatus(),this.hF=!0,this.V.send(y),this.hF=!1}catch(F){this.getStatus(),o01(this,F)}}; g.R.Ws=function(){typeof DI!="undefined"&&this.V&&(this.D="Timed out after "+this.AF+"ms, aborting",this.K=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.R.abort=function(y){this.V&&this.Y&&(this.getStatus(),this.Y=!1,this.L=!0,this.V.abort(),this.L=!1,this.K=y||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),YC(this))}; g.R.I5=function(){this.V&&(this.Y&&(this.Y=!1,this.L=!0,this.V.abort(),this.L=!1),YC(this,!0));g.qM.W1.I5.call(this)}; g.R.sj=function(){this.Qv()||(this.o5||this.hF||this.L?HE2(this):this.joF())}; g.R.joF=function(){HE2(this)}; g.R.isActive=function(){return!!this.V}; g.R.isComplete=function(){return g.gk(this)==4}; g.R.getStatus=function(){try{return g.gk(this)>2?this.V.status:-1}catch(y){return-1}}; g.R.getResponseHeader=function(y){if(this.V&&this.isComplete())return y=this.V.getResponseHeader(y),y===null?void 0:y}; g.R.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};GZ.prototype.send=function(y,t,a){t=t===void 0?function(){}:t; a=a===void 0?function(){}:a; m87(y.url,function(r){r=r.target;iY(r)?t(g.KZ(r)):a(r.getStatus())},y.requestType,y.body,y.requestHeaders,y.timeoutMillis,y.withCredentials)}; GZ.prototype.Hn=function(){return 1};yz.prototype.done=function(){this.logger.i7(this.event,ZI()-this.startTime)}; g.N(tw,$7);g.N(rb,tw);g.R=rb.prototype;g.R.gh=function(){}; g.R.OQ=function(){}; g.R.i7=function(){}; g.R.LL=function(){}; g.R.vp=function(){}; g.R.DW=function(y,t,a,r){return r}; g.R.Xl=function(){}; g.R.fq=function(){}; g.R.bd=function(){}; g.N(ES,tw);g.R=ES.prototype;g.R.update=function(y){this.logger.dispose();this.logger=y}; g.R.OQ=function(y){this.logger.OQ(y)}; g.R.i7=function(y,t){this.logger.i7(y,t)}; g.R.LL=function(y){this.logger.LL(y)}; g.R.vp=function(){this.logger.vp()}; g.R.DW=function(y,t,a,r){return this.logger.DW(y,t,a,r)}; g.R.Xl=function(y){this.logger.Xl(y)}; g.R.fq=function(y){this.logger.fq(y)}; g.R.bd=function(y){this.logger.bd(y)}; g.R.gh=function(y){this.logger.gh(y)}; g.N(qQ2,g.H);g.N(hw,tw);g.R=hw.prototype;g.R.gh=function(y){this.metrics.rVm.vG(y,this.ZP)}; g.R.OQ=function(y){this.metrics.eventCount.QY(y,this.ZP)}; g.R.i7=function(y,t){this.metrics.Zy.vG(t,y,this.ZP)}; g.R.LL=function(y){this.metrics.errorCount.QY(y,this.ZP)}; g.R.DW=function(y,t,a,r){function E(x){if(!h.Qv()){var U=ZI()-F;h.metrics.uiv.vG(U,y,a,x,t,h.ZP)}} var h=this,F=ZI();r.then(function(){return void E(0)},function(x){return void E(x instanceof HL?x.code:-1)}); return r}; g.R.Xl=function(y){this.metrics.py1.QY(y,this.ZP)}; g.R.fq=function(y){this.metrics.lz.QY(y,this.ZP)}; g.R.bd=function(y){this.metrics.b$5.QY(y,this.ZP)}; g.N(Fe,hw);Fe.prototype.vp=function(){YQ2(this.V)};g.N(Aw,Do);g.N(xm,Do);g.N(sS,Do);var EOb=LE(sS),g0b=function(y){return ln(function(t){return t instanceof y&&!Aj(t)})}(sS); sS.messageId="bfkj";g.N(sq,Do);g.N($m,Do);var iEV=LE($m);g.N(Cd,g.H);Cd.prototype.snapshot=function(y){if(this.Qv())throw Error("Already disposed");this.logger.OQ("n");var t=this.logger.share();return this.Y.then(function(a){var r=a.Mg;return new Promise(function(E){var h=new yz(t,"n");r(function(F){h.done();t.gh(F.length);t.vp();t.dispose();E(F)},[y.y$, y.R3,y.vN,y.SD])})})}; Cd.prototype.G2=function(y){var t=this;if(this.Qv())throw Error("Already disposed");this.logger.OQ("n");var a=ad(this.logger,function(){return t.D([y.y$,y.R3,y.vN,y.SD])},"n"); this.logger.gh(a.length);this.logger.vp();return a}; Cd.prototype.nj=function(y){this.Y.then(function(t){var a;(a=t.on0)==null||a(y)})}; Cd.prototype.hq=function(){return this.logger.share()};g.N(Ld,Do);g.N(Mi,Do);wb.prototype.DO=function(y){return xb2(this,y,new rb,0)};g.N(Rd,g.H);g.R=Rd.prototype;g.R.snapshot=function(y){var t=this;return g.m(function(a){switch(a.V){case 1:if(t.Qv())throw Error("Already disposed");if(t.K||t.W){a.xG(2);break}return g.u(a,t.L.promise,2);case 2:if(!t.K){a.xG(4);break}return g.u(a,t.K.snapshot(y),5);case 5:return a.return(a.K);case 4:throw t.W;}})}; g.R.pause=function(){this.Qv()||this.isPaused||(this.isPaused=!0,this.V&&this.V.pause())}; g.R.resume=function(){!this.Qv()&&this.isPaused&&(this.isPaused=!1,this.V&&this.V.resume())}; g.R.checkForRefresh=function(){var y=this;return g.m(function(t){if(y.Qv())throw Error("Already disposed");var a;if(a=y.V)a=y.V,a.isExpired()?(Xe(a),a.Kv(0),a=!0):a=!1,a=!a;return a?t.xG(0):g.u(t,y.Y.promise,0)})}; g.R.nj=function(y){var t,a;(t=this.K)==null||(a=t.nj)==null||a.call(t,y)}; g.R.handleError=function(y){if(!this.Qv()){this.W=y;this.L.resolve();var t,a;(a=(t=this.options).kr4)==null||a.call(t,y)}}; g.R.hq=function(){return this.logger.share()}; var Ubd={fe7:432E5,Yr:3E5,yX:10,Af:1E4,Av:3E4,cze:3E4,qV4:6E4,Tq:1E3,NR:6E4,RV:6E5,Gq:.25,WU:2,maxAttempts:10};db.prototype.pause=function(){this.isPaused||(this.isPaused=!0,Xe(this))}; db.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())}; db.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var D67,dbd=(D67=Math.imul)!=null?D67:function(y,t){return y*t|0},fd=[196, 200,224,18];Wg.prototype.Tv=function(){return String(this.V)+","+this.K.join()}; Wg.prototype.LA=function(y,t){var a=void 0;if(this.K[this.V]!==y){var r=this.K.indexOf(y);r!==-1?(this.K.splice(r,1),r0;)t[a++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(y%62),y=Math.floor(y/62);return t.join("")}};g.N(SP,g.H);SP.prototype.tN=function(y,t){var a=this.BL(y);t==null||t(a);return ad(this.logger,function(){return g.H$(a,2)},this.K)}; g.N(pd,SP);pd.prototype.BL=function(y,t){var a=this;this.logger.OQ(this.V);++this.L>=this.J&&this.Y.resolve();var r=y();y=ad(this.logger,function(){return a.D(r)},"C"); if(y===void 0)throw new h2(17,"YNJ:Undefined");if(!(y instanceof Uint8Array))throw new h2(18,"ODM:Invalid");t==null||t(y);return y}; g.N(eP,SP);eP.prototype.BL=function(){return this.D}; g.N(la,SP);la.prototype.BL=function(){var y=this;return ad(this.logger,function(){return B$(y.D)},"d")}; la.prototype.tN=function(){return this.D}; g.N(ua,SP);ua.prototype.BL=function(){if(this.D)return this.D;this.D=V32(this,function(y){return"_"+uf7(y)}); return V32(this,function(y){return y})}; g.N(nd,SP);nd.prototype.BL=function(){var y=Math.floor(Date.now()/1E3),t=[Math.random()*255,Math.random()*255],a=t.concat([this.D&255,this.clientState],[y>>24&255,y>>16&255,y>>8&255,y&255]);y=new Uint8Array(2+a.length);y[0]=34;y[1]=a.length;y.set(a,2);a=y.subarray(2);for(var r=t=t.length;r150))try{this.cache=new Qpy(y,this.logger)}catch(t){this.reportError(new h2(22,"GBJ:init",t))}}; g.R.reportError=function(y){this.logger.LL(y.code);this.onError(y);return y}; var JvF=function(y){return ln(function(t){if(!eay(t))return!1;for(var a=g.p(Object.entries(y)),r=a.next();!r.done;r=a.next()){var E=g.p(r.value);r=E.next().value;E=E.next().value;if(!(r in t)){if(E.hyF===!0)continue;return!1}if(!E(t[r]))return!1}return!0})}({lK:function(y){return ln(function(t){return t instanceof y})}(Rd)},"");var jru=(new Date).getTime();g.N(Hg,Do);var gTV=LE(Hg);ijV.prototype.getMetadata=function(){return this.metadata};ba.prototype.getMetadata=function(){return this.metadata}; ba.prototype.getStatus=function(){return this.status};Bg.prototype.J=function(y,t){t=t===void 0?{}:t;return new ijV(y,this,t)}; Bg.prototype.getName=function(){return this.name};var iT7=new Bg("/google.internal.waa.v1.Waa/Create",Ld,Hg,function(y){return y.Tv()},gTV);g.N(cg,Do);var Fzx=new Bg("/google.internal.waa.v1.Waa/GenerateIT",Mi,cg,function(y){return y.Tv()},LE(cg));var fNu=new Set(["SAPISIDHASH","APISIDHASH"]);g.N(qi,Do);qi.prototype.getValue=function(){var y=wM(this,2);if(Array.isArray(y)||y instanceof Do)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return pn(this,2)};g.N(Ym,Do);Ym.prototype.getMessage=function(){return IG(this,2)}; var yMd=LE(Ym);Dt.prototype.removeListener=function(y,t){y==="data"?Zt(this.K,t):y==="metadata"?Zt(this.D,t):y==="status"?Zt(this.L,t):y==="end"?Zt(this.Y,t):y==="error"&&Zt(this.V,t);return this}; Dt.prototype.cancel=function(){this.xhr.abort()}; g.N(I7u,Error);g.Bd(g.rl,V8d);g.rl.prototype.V=function(){var y=new ET(this.D,this.Y);this.K&&y.setCredentialsMode(this.K);return y}; g.rl.prototype.setCredentialsMode=function(y){this.K=y}; g.Bd(ET,g.MM);g.R=ET.prototype;g.R.open=function(y,t){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Vv=y;this.AF=t;this.readyState=1;h3(this)}; g.R.send=function(y){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.Z.signal.aborted)throw this.abort(),Error("Request was aborted.");this.V=!0;var t={headers:this.hF,method:this.Vv,credentials:this.L,cache:void 0,signal:this.Z.signal};y&&(t.body=y);(this.o5||g.ks).fetch(new Request(this.AF,t)).then(this.KX4.bind(this),this.oa.bind(this))}; g.R.abort=function(){this.response=this.responseText="";this.hF=new Headers;this.status=0;this.Z.abort("Request was aborted.");this.Y&&this.Y.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.V&&this.readyState!=4&&(this.V=!1,Fs(this));this.readyState=0}; g.R.KX4=function(y){if(this.V&&(this.D=y,this.K||(this.status=this.D.status,this.statusText=this.D.statusText,this.K=y.headers,this.readyState=2,h3(this)),this.V&&(this.readyState=3,h3(this),this.V)))if(this.responseType==="arraybuffer")y.arrayBuffer().then(this.oGm.bind(this),this.oa.bind(this));else if(typeof g.ks.ReadableStream!=="undefined"&&"body"in y){this.Y=y.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.W=new TextDecoder;tRN(this)}else y.text().then(this.s5r.bind(this),this.oa.bind(this))}; g.R.O1F=function(y){if(this.V){if(this.J&&y.value)this.response.push(y.value);else if(!this.J){var t=y.value?y.value:new Uint8Array(0);if(t=this.W.decode(t,{stream:!y.done}))this.response=this.responseText+=t}y.done?Fs(this):h3(this);this.readyState==3&&tRN(this)}}; g.R.s5r=function(y){this.V&&(this.response=this.responseText=y,Fs(this))}; g.R.oGm=function(y){this.V&&(this.response=y,Fs(this))}; g.R.oa=function(){this.V&&Fs(this)}; g.R.setRequestHeader=function(y,t){this.hF.append(y,t)}; g.R.getResponseHeader=function(y){return this.K?this.K.get(y.toLowerCase())||"":""}; g.R.getAllResponseHeaders=function(){if(!this.K)return"";for(var y=[],t=this.K.entries(),a=t.next();!a.done;)a=a.value,y.push(a[0]+": "+a[1]),a=t.next();return y.join("\r\n")}; g.R.setCredentialsMode=function(y){this.L=y}; Object.defineProperty(ET.prototype,"withCredentials",{get:function(){return this.L==="include"}, set:function(y){this.setCredentialsMode(y?"include":"same-origin")}});g.$u.prototype.toString=function(){var y=[],t=this.L;t&&y.push(C5(t,Kf7,!0),":");var a=this.V;if(a||t=="file")y.push("//"),(t=this.Z)&&y.push(C5(t,Kf7,!0),"@"),y.push(g.cW(a).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a=this.Y,a!=null&&y.push(":",String(a));if(a=this.K)this.V&&a.charAt(0)!="/"&&y.push("/"),y.push(C5(a,a.charAt(0)=="/"?Iyn:TqF,!0));(a=this.D.toString())&&y.push("?",a);(a=this.J)&&y.push("#",C5(a,GP7));return y.join("")}; g.$u.prototype.resolve=function(y){var t=this.clone(),a=!!y.L;a?g.A3(t,y.L):a=!!y.Z;a?t.Z=y.Z:a=!!y.V;a?g.Un(t,y.V):a=y.Y!=null;var r=y.K;if(a)g.xn(t,y.Y);else if(a=!!y.K){if(r.charAt(0)!="/")if(this.V&&!this.K)r="/"+r;else{var E=t.K.lastIndexOf("/");E!=-1&&(r=t.K.slice(0,E+1)+r)}E=r;if(E==".."||E==".")r="";else if(g.GJ(E,"./")||g.GJ(E,"/.")){r=IM(E,"/");E=E.split("/");for(var h=[],F=0;F1||h.length==1&&h[0]!="")&&h.pop(), r&&F==E.length&&h.push("")):(h.push(x),r=!0)}r=h.join("/")}else r=E}a?t.K=r:a=y.D.toString()!=="";a?sT(t,y.D.clone()):a=!!y.J;a&&(t.J=y.J);return t}; g.$u.prototype.clone=function(){return new g.$u(this)}; var Kf7=/[#\/\?@]/g,TqF=/[#\?:]/g,Iyn=/[#\?]/g,F8y=/[#\?@]/g,GP7=/#/g;g.R=UT.prototype;g.R.add=function(y,t){OT(this);this.Y=null;y=L5(this,y);var a=this.V.get(y);a||this.V.set(y,a=[]);a.push(t);this.K=this.K+1;return this}; g.R.remove=function(y){OT(this);y=L5(this,y);return this.V.has(y)?(this.Y=null,this.K=this.K-this.V.get(y).length,this.V.delete(y)):!1}; g.R.clear=function(){this.V=this.Y=null;this.K=0}; g.R.isEmpty=function(){OT(this);return this.K==0}; g.R.forEach=function(y,t){OT(this);this.V.forEach(function(a,r){a.forEach(function(E){y.call(t,E,r,this)},this)},this)}; g.R.lU=function(){OT(this);for(var y=Array.from(this.V.values()),t=Array.from(this.V.keys()),a=[],r=0;r0?String(y[0]):t}; g.R.toString=function(){if(this.Y)return this.Y;if(!this.V)return"";for(var y=[],t=Array.from(this.V.keys()),a=0;a>>3;h.Y!=1&&h.Y!=2&&h.Y!=15&&PS(h,F,x,"unexpected tag");h.V=1;h.K=0;h.D=0} function a(U){h.D++;h.D==5&&U&240&&PS(h,F,x,"message length too long");h.K|=(U&127)<<(h.D-1)*7;U&128||(h.V=2,h.Z=0,typeof Uint8Array!=="undefined"?h.L=new Uint8Array(h.K):h.L=Array(h.K),h.K==0&&E())} function r(U){h.L[h.Z++]=U;h.Z==h.K&&E()} function E(){if(h.Y<15){var U={};U[h.Y]=h.L;h.W.push(U)}h.V=0} for(var h=this,F=y instanceof Array?y:new Uint8Array(y),x=0;x0?y:null};NC.prototype.isInputValid=function(){return this.V===null}; NC.prototype.xT=function(){return this.V}; NC.prototype.NI=function(){return!1}; NC.prototype.parse=function(y){this.V!==null&&OPu(this,y,"stream already broken");var t=null;try{var a=this.Y;a.Y||ziV(a,y,"stream already broken");a.V+=y;var r=Math.floor(a.V.length/4);if(r==0)var E=null;else{try{var h=GJH(a.V.slice(0,r*4))}catch(F){ziV(a,a.V,F.message)}a.K+=r*4;a.V=a.V.slice(r*4);E=h}t=E===null?null:this.D.parse(E)}catch(F){OPu(this,y,F.message)}this.K+=y.length;return t};g.R=Xs.prototype;g.R.isInputValid=function(){return this.L!=3}; g.R.xT=function(){return this.hF}; g.R.done=function(){return this.L===2}; g.R.NI=function(){return!1}; g.R.parse=function(y){function t(){for(;O0;)if(L=y[O++],h.Z===4?h.Z=0:h.Z++,!L)break a;if(L==='"'&&!h.W){h.V=r();break}if(L==="\\"&&!h.W&&(h.W=!0,L=y[O++], !L))break;if(h.W)if(h.W=!1,L==="u"&&(h.Z=1),L=y[O++])continue;else break;x.lastIndex=O;L=x.exec(y);if(!L){O=y.length+1;break}O=L.index+1;L=y[L.index];if(!L)break}h.Y+=O-w;continue;case 9:if(!L)continue;L==="r"?h.V=10:kn(h,y,O);continue;case 10:if(!L)continue;L==="u"?h.V=11:kn(h,y,O);continue;case 11:if(!L)continue;L==="e"?h.V=r():kn(h,y,O);continue;case 12:if(!L)continue;L==="a"?h.V=13:kn(h,y,O);continue;case 13:if(!L)continue;L==="l"?h.V=14:kn(h,y,O);continue;case 14:if(!L)continue;L==="s"?h.V=15: kn(h,y,O);continue;case 15:if(!L)continue;L==="e"?h.V=r():kn(h,y,O);continue;case 16:if(!L)continue;L==="u"?h.V=17:kn(h,y,O);continue;case 17:if(!L)continue;L==="l"?h.V=18:kn(h,y,O);continue;case 18:if(!L)continue;L==="l"?h.V=r():kn(h,y,O);continue;case 19:L==="."?h.V=20:kn(h,y,O);continue;case 20:if("0123456789.eE+-".indexOf(L)!==-1)continue;else O--,h.Y--,h.V=r();continue;default:kn(h,y,O)}}} function r(){var L=F.pop();return L!=null?L:1} function E(L){h.K>1||(L||(L=z===-1?h.D+y.substring(C,O):y.substring(z,O)),h.AF?h.J.push(L):h.J.push(JSON.parse(L)),z=O)} for(var h=this,F=h.Vv,x=h.o5,U=y.length,C=0,z=-1,O=0;O0?(M=h.J,h.J=[],M):null}return null};f5.prototype.isInputValid=function(){return this.L===null}; f5.prototype.xT=function(){return this.L}; f5.prototype.NI=function(){return!1}; f5.prototype.parse=function(y){function t(U){h.K=6;h.L="The stream is broken @"+h.V+"/"+F+". Error: "+U+". With input:\n";throw Error(h.L);} function a(){h.Y=new Xs({kee:!0,vU:!0})} function r(U){if(U)for(var C=0;C1)&&t("extra status: "+U);h.J=!0;var C={};C[2]=U[0];h.D.push(C)}} for(var h=this,F=0;F0?(y=h.D,h.D=[],y):null};WS.prototype.vk=function(){return this.V}; WS.prototype.getStatus=function(){return this.L}; WS.prototype.AF=function(y){y=y.target;try{if(y==this.V)a:{var t=g.gk(this.V),a=this.V.K,r=this.V.getStatus(),E=g.KZ(this.V);y=[];if(g.Ir(this.V)instanceof Array){var h=g.Ir(this.V);h.length>0&&h[0]instanceof Uint8Array&&(this.hF=!0,y=h)}if(!(t<3||t==3&&!E&&y.length==0))if(r=r==200||r==206,t==4&&(a==8?j0(this,7):a==7?j0(this,8):r||j0(this,3)),this.K||(this.K=L8u(this.V),this.K==null&&j0(this,5)),this.L>2)S0(this);else{if(y.length>this.Y){var F=y.length;a=[];try{if(this.K.NI())for(var x=0;xthis.Y){x=E.slice(this.Y);this.Y=E.length;try{var C=this.K.parse(x);C!=null&&this.D&&this.D(C)}catch(z){j0(this,5);S0(this);break a}}t==4?(E.length!= 0||this.hF?j0(this,2):j0(this,4),S0(this)):j0(this,1)}}}catch(z){j0(this,6),S0(this)}};g.R=MR7.prototype;g.R.addListener=function(y,t){Ta(this,y,t);return this}; g.R.removeListener=function(y,t){var a=this.K[y];a&&g.tB(a,t);(y=this.V[y])&&g.tB(y,t);return this}; g.R.once=function(y,t){var a=this.V[y];a||(a=[],this.V[y]=a);a.push(t);return this}; g.R.vkm=function(y){var t=this.K.data;t&&wIz(y,t);(t=this.V.data)&&wIz(y,t);this.V.data=[]}; g.R.BHf=function(){switch(this.Y.getStatus()){case 1:Qt(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Qt(this,"error");break;case 8:Qt(this,"close");break;case 2:Qt(this,"end")}};Riy.prototype.serverStreaming=function(y,t,a,r){var E=this,h=y.substring(0,y.length-r.name.length);return W8x(function(F){var x=F.mF,U=F.getMetadata(),C=dr7(E,!1);U=XIF(E,U,C,h+x.getName());var z=kBb(C,x.K,!0);F=x.V(F.PQ);C.send(U,"POST",F);return z},this.Kl).call(this,r.J(t,a))};jDu.prototype.create=function(y,t,a){var r=this.V,E=this.K+"/$rpc/google.internal.waa.v1.Waa/Create";t=t||{};a=a===void 0?{}:a;return Av2(r,E,y,t,iT7,a)};var dY7,oi7,CKy,y1U,tys,azq,qE7,YE2,r12,zh,K$2,vBu,S17,Qm7,o4d,qDd,S2N,EuI,J82,h7s,q1y,Fdd,A19,hDz,U0F,mdn,l9,$gV,sVd;dY7=new vS(45742118);oi7=new vS(45742119);CKy=new vS(45738185);y1U=new vS(45739196);tys=new vS(45739198);azq=new vS(45739197);qE7=new p5(45737488,0);YE2=new p5(45737489,0);r12=new vS(45736776);zh=new vS(45738227);K$2=new vS(45732791);vBu=new vS(45728572);S17=new vS(45737482);Qm7=new p5(45741773,0);o4d=new vS(45732704);qDd=new vS(45731083);S2N=new vS(45728553);EuI=new vS(45734191); J82=new vS(45735523);h7s=new p5(45735428,4E3);q1y=new vS(45725537);Fdd=new vS(45735462);A19=new vS(45727949);hDz=new vS(45728181);U0F=new vS(45740357);mdn=new vS(45733155);l9=new vS(45732481);$gV=new vS(45732775);g.xHF=new vS(45734776);sVd=new vS(45739595);var GSn=new p5(45725542,0),ZSN=new p5(45739023,0),T3b=new p5(45725543,0),iS1=new p5(45725539,0),ICb=new p5(45725541,0),KSz=new p5(45725540,0),gAH=new p5(45725538,0),yTu=new p5(45741339,0),Ddd=new function(y,t,a,r){this.wp=y;this.BA=t;this.defaultValue=r;this.Fp="int"}(3,45721421,"h5vcc_set_prefer_minimal_post_processing",zH("0"));var pIu="://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(" "),ei7=/\bocr\b/;var uT1=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.N(VR2,Do);g.N(nBV,Do);g.N(u4,Do);u4.prototype.getName=function(){return IG(this,1)}; u4.prototype.getOptions=function(){return B0(this,nBV,3)}; u4.prototype.clearOptions=function(){return P0(this,3)};g.N(Vt,Do);g.R=Vt.prototype;g.R.getName=function(){return IG(this,1)}; g.R.getOptions=function(){return B0(this,VR2,3)}; g.R.clearOptions=function(){return P0(this,3)}; g.R.Sf=function(){return TU(this,6)}; g.R.lY=function(y){re(this,6,y)};var oBx=function(y){return function(t){t=JSON.parse(t);if(!Array.isArray(t))throw Error("Expected jspb data to be an array, got "+Qe(t)+": "+t);rp(t,34);return new y(t)}}(Vt);var JMu=Symbol();var bPd=Symbol();Object.assign({},{attributes:{},handleError:function(y){throw y;}},{jvu:!0, ham:!0,AT4:NVz,Hw7:NVz,Vbf:djx,ear:!1,I8v:!1,Ctv:!1,Ow0:!0,o6m:PXn,n5v:!1,QXX:!1,IxG:!1});var mh=null,of=!1,ZP2=1,INd=Symbol("SIGNAL"),U1={version:0,Vnr:0,k8:!1,producers:void 0,v9:void 0,qA:void 0,N6:void 0,W$:!1,fV:!1,lG:!1,kind:"unknown",Zl:function(){return!1}, SR:function(){}, i6:function(){}, Nb7:function(){}};var CS=Symbol("UNSET"),zS=Symbol("COMPUTING"),O1=Symbol("ERRORED");Object.assign({},U1,{value:CS,k8:!0,error:null,kK:n5,kind:"computed",Zl:function(y){return y.value===CS||y.value===zS}, SR:function(y){if(y.value===zS)throw Error("");var t=y.value;y.value=zS;var a=Y$V(y),r=!1;try{var E=y.j7();J3(null);r=t!==CS&&t!==O1&&E!==O1&&y.kK(t,E)}catch(h){E=O1,y.error=h}finally{J3(a),y&&gBx(y)}r?y.value=t:(y.value=E,y.version++)}});Object.assign({},U1,{lG:!0,fV:!0,k8:!0,kind:"effect"});var K8n=Object.assign({},U1,{kK:n5,value:void 0,kind:"signal"});Object.assign({},U1,{value:CS,k8:!0,error:null,kK:n5,kind:"linkedSignal",Zl:function(y){return y.value===CS||y.value===zS}, SR:function(y){if(y.value===zS)throw Error("");var t=y.value;y.value=zS;var a=Y$V(y);try{var r=y.source();var E=y.j7(r,t===CS||t===O1?void 0:{source:y.wlu,value:t});y.wlu=r}catch(h){E=O1,y.error=h}finally{J3(a),y&&gBx(y)}t!==CS&&E!==O1&&y.kK(t,E)?y.value=t:(y.value=E,y.version++)}});Object.assign({},U1,{lG:!0,fV:!1,i6:function(y){y.schedule!==null&&y.schedule(y.XLX)}, lrG:function(){}});g.N(cS,g.MM);cS.prototype.dispose=function(){window.removeEventListener("offline",this.Y);window.removeEventListener("online",this.Y);this.yB.Vb(this.L);delete cS.instance}; cS.prototype.z5=function(){return this.V}; cS.prototype.OY=function(){var y=this;this.L=this.yB.f$(function(){var t;return g.m(function(a){if(a.V==1)return y.V?((t=window.navigator)==null?0:t.onLine)?a.xG(3):g.u(a,BS(y),3):g.u(a,BS(y),3);y.OY();g.FU(a)})},3E4)};g.N(t5H,Do);var Th1=qm2(t5H,[0,r3,P8n,hl1,r3,-2,hl1,ayF]);Yn.prototype.set=function(y,t){t=t===void 0?!0:t;0<=y&&y<52&&Number.isInteger(y)&&this.data[y]!==t&&(this.data[y]=t,this.V=-1)}; Yn.prototype.get=function(y){return!!this.data[y]};var gl;g.Bd(g.If,g.H);g.R=g.If.prototype;g.R.start=function(){this.stop();this.D=!1;var y=r27(this),t=E7V(this);y&&!t&&this.K.mozRequestAnimationFrame?(this.V=g.sb(this.K,"MozBeforePaint",this.Y),this.K.mozRequestAnimationFrame(null),this.D=!0):this.V=y&&t?y.call(this.K,this.Y):this.K.setTimeout(sMu(this.Y),20)}; g.R.stop=function(){if(this.isActive()){var y=r27(this),t=E7V(this);y&&!t&&this.K.mozRequestAnimationFrame?zZ(this.V):y&&t?t.call(this.K,this.V):this.K.clearTimeout(this.V)}this.V=null}; g.R.isActive=function(){return this.V!=null}; g.R.N$=function(){this.D&&this.V&&zZ(this.V);this.V=null;this.J.call(this.L,g.oq())}; g.R.I5=function(){this.stop();g.If.W1.I5.call(this)};g.Bd(g.Te,g.H);g.R=g.Te.prototype;g.R.f8=0;g.R.I5=function(){g.Te.W1.I5.call(this);this.stop();delete this.V;delete this.K}; g.R.start=function(y){this.stop();this.f8=g.mJ(this.Y,y!==void 0?y:this.Rd)}; g.R.stop=function(){this.isActive()&&g.ks.clearTimeout(this.f8);this.f8=0}; g.R.isActive=function(){return this.f8!=0}; g.R.Xw=function(){this.f8=0;this.V&&this.V.call(this.K)};g.N(g.tl,g.H);g.R=g.tl.prototype;g.R.yw=function(y){this.Y=arguments;this.fM||this.K?this.V=!0:aY(this)}; g.R.stop=function(){this.fM&&(g.ks.clearTimeout(this.fM),this.fM=null,this.V=!1,this.Y=null)}; g.R.pause=function(){this.K++}; g.R.resume=function(){this.K--;this.K||!this.V||this.fM||(this.V=!1,aY(this))}; g.R.I5=function(){g.H.prototype.I5.call(this);this.stop()};g.rF.prototype[Symbol.iterator]=function(){return this}; g.rF.prototype.next=function(){var y=this.V.next();return{value:y.done?void 0:this.K.call(void 0,y.value),done:y.done}};g.Bd(g.Ce,g.MM);g.R=g.Ce.prototype;g.R.isPlaying=function(){return this.V==1}; g.R.isPaused=function(){return this.V==-1}; g.R.mZ=function(){this.Oi("begin")}; g.R.Vq=function(){this.Oi("end")}; g.R.onFinish=function(){this.Oi("finish")}; g.R.onStop=function(){this.Oi("stop")}; g.R.Oi=function(y){this.dispatchEvent(y)};var $HI=g4(function(){var y=g.SU("DIV"),t=g.ko?"-webkit":hq?"-moz":null,a="transition:opacity 1s linear;";t&&(a+=t+"-transition:opacity 1s linear;");t=GEu({style:a});if(y.nodeType===1&&/^(script|style)$/i.test(y.tagName))throw Error("");y.innerHTML=pb(t);return g.F5(y.firstChild,"transition")!=""});g.Bd(z4,g.Ce);g.R=z4.prototype;g.R.play=function(){if(this.isPlaying())return!1;this.mZ();this.Oi("play");this.startTime=g.oq();this.V=1;if($HI())return g.ry(this.K,this.J),this.Y=g.mJ(this.xh7,void 0,this),!0;this.F1(!1);return!1}; g.R.xh7=function(){g.LQ(this.K);A2x(this.K,this.W);g.ry(this.K,this.D);this.Y=g.mJ((0,g.mi)(this.F1,this,!1),this.L*1E3)}; g.R.stop=function(){this.isPlaying()&&this.F1(!0)}; g.R.F1=function(y){g.ry(this.K,"transition","");g.ks.clearTimeout(this.Y);g.ry(this.K,this.D);this.endTime=g.oq();this.V=0;if(y)this.onStop();else this.onFinish();this.Vq()}; g.R.I5=function(){this.stop();z4.W1.I5.call(this)}; g.R.pause=function(){};var szd={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};Oz("Element","attributes")||Oz("Node","attributes");Oz("Element","innerHTML")||Oz("HTMLElement","innerHTML");Oz("Node","nodeName");Oz("Node","nodeType");Oz("Node","parentNode");Oz("Node","childNodes");Oz("HTMLElement","style")||Oz("Element","style");Oz("HTMLStyleElement","sheet");var LKy=U37("getPropertyValue"),M5H=U37("setProperty");Oz("Element","namespaceURI")||Oz("Node","namespaceURI");var O01={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Nid,s37,PQx,Rtb,d32;Nid=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]");s37=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.UHF=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.MR=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]");PQx=/^http:\/\/.*/;g.C7F=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Rtb=/\s+/;d32=/[\d\u06f0-\u06f9]/;RY.prototype.J_=function(){return new PH(this.K())}; RY.prototype[Symbol.iterator]=function(){return new NR(this.K())}; RY.prototype.V=function(){return new NR(this.K())}; g.N(PH,g.uD);PH.prototype.next=function(){return this.K.next()}; PH.prototype[Symbol.iterator]=function(){return new NR(this.K)}; PH.prototype.V=function(){return new NR(this.K)}; g.N(NR,RY);NR.prototype.next=function(){return this.Y.next()};XV.prototype.clone=function(){return new XV(this.V,this.W,this.Y,this.L,this.D,this.J,this.K,this.Z)}; XV.prototype.equals=function(y){return this.V==y.V&&this.W==y.W&&this.Y==y.Y&&this.L==y.L&&this.D==y.D&&this.J==y.J&&this.K==y.K&&this.Z==y.Z};fe.prototype.clone=function(){return new fe(this.start,this.end)};(function(){if(MVb){var y=/Windows NT ([0-9.]+)/;return(y=y.exec(g.rI()))?y[1]:"0"}return kF?(y=/1[0|1][_.][0-9_.]+/,(y=y.exec(g.rI()))?y[0].replace(/_/g,"."):"10"):g.EX?(y=/Android\s+([^\);]+)(\)|;)/,(y=y.exec(g.rI()))?y[1]:""):fsn||WG1||j3x?(y=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(y=y.exec(g.rI()))?y[1].replace(/_/g,"."):""):""})();var kAx=function(){if(g.OI)return WH(/Firefox\/([0-9.]+)/);if(g.Le||g.IU||g.oE)return YyH;if(g.x8){if(Tf()||Gf()){var y=WH(/CriOS\/([0-9.]+)/);if(y)return y}return WH(/Chrome\/([0-9.]+)/)}if(g.wR&&!Tf())return WH(/Version\/([0-9.]+)/);if(tU||a_){if(y=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.rI()))return y[1]+"."+y[2]}else if(g.Ht)return(y=WH(/Android\s+([0-9.]+)/))?y:WH(/Version\/([0-9.]+)/);return""}();g.Bd(g.S4,g.H);g.R=g.S4.prototype;g.R.subscribe=function(y,t,a){var r=this.K[y];r||(r=this.K[y]=[]);var E=this.J;this.V[E]=y;this.V[E+1]=t;this.V[E+2]=a;this.J=E+3;r.push(E);return E}; g.R.unsubscribe=function(y,t,a){if(y=this.K[y]){var r=this.V;if(y=y.find(function(E){return r[E+1]==t&&r[E+2]==a}))return this.wO(y)}return!1}; g.R.wO=function(y){var t=this.V[y];if(t){var a=this.K[t];this.D!=0?(this.Y.push(y),this.V[y+1]=function(){}):(a&&g.tB(a,y),delete this.V[y],delete this.V[y+1],delete this.V[y+2])}return!!t}; g.R.publish=function(y,t){var a=this.K[y];if(a){var r=Array(arguments.length-1),E=arguments.length,h;for(h=1;h0&&this.D==0)for(;a=this.Y.pop();)this.wO(a)}}return h!=0}return!1}; g.R.clear=function(y){if(y){var t=this.K[y];t&&(t.forEach(this.wO,this),delete this.K[y])}else this.V.length=0,this.K={}}; g.R.I5=function(){g.S4.W1.I5.call(this);this.clear();this.Y.length=0};g.Qf.prototype.set=function(y,t){t===void 0?this.Mx.remove(y):this.Mx.set(y,g.bY(t))}; g.Qf.prototype.get=function(y){try{var t=this.Mx.get(y)}catch(a){return}if(t!==null)try{return JSON.parse(t)}catch(a){throw"Storage: Invalid value was encountered";}}; g.Qf.prototype.remove=function(y){this.Mx.remove(y)};g.Bd(vH,g.Qf);vH.prototype.set=function(y,t){vH.W1.set.call(this,y,jzF(t))}; vH.prototype.A5=function(y){y=vH.W1.get.call(this,y);if(y===void 0||y instanceof Object)return y;throw"Storage: Invalid value was encountered";}; vH.prototype.get=function(y){if(y=this.A5(y)){if(y=y.data,y===void 0)throw"Storage: Invalid value was encountered";}else y=void 0;return y};g.Bd(pe,vH);pe.prototype.set=function(y,t,a){if(t=jzF(t)){if(a){if(a=a.length)return g.Fl;var E=a.key(t++);if(y)return g.VM(E);E=a.getItem(E);if(typeof E!=="string")throw"Storage mechanism: Invalid value was encountered";return g.VM(E)}; return r}; g.R.clear=function(){Vf(this);this.V.clear()}; g.R.key=function(y){Vf(this);return this.V.key(y)};g.Bd(ne,uw);g.Bd(v7y,uw);g.Bd(mT,lw);mT.prototype.set=function(y,t){this.K.set(this.V+y,t)}; mT.prototype.get=function(y){return this.K.get(this.V+y)}; mT.prototype.remove=function(y){this.K.remove(this.V+y)}; mT.prototype.J_=function(y){var t=this.K[Symbol.iterator](),a=this,r=new g.uD;r.next=function(){var E=t.next();if(E.done)return E;for(E=E.value;E.slice(0,a.V.length)!=a.V;){E=t.next();if(E.done)return E;E=E.value}return g.VM(y?E.slice(a.V.length):a.K.get(E))}; return r};oY.prototype.getValue=function(){return this.K}; oY.prototype.clone=function(){return new oY(this.V,this.K)};g.R=HH.prototype;g.R.LA=function(y,t){var a=this.V;a.push(new oY(y,t));y=a.length-1;t=this.V;for(a=t[y];y>0;){var r=y-1>>1;if(t[r].V>a.V)t[y]=t[r],y=r;else break}t[y]=a}; g.R.remove=function(){var y=this.V,t=y.length,a=y[0];if(!(t<=0)){if(t==1)y.length=0;else{y[0]=y.pop();y=0;t=this.V;for(var r=t.length,E=t[y];y>1;){var h=y*2+1,F=y*2+2;h=FE.V)break;t[y]=t[h];y=h}t[y]=E}return a.getValue()}}; g.R.jP=function(){for(var y=this.V,t=[],a=y.length,r=0;r>>16&65535|0;for(var h;a!==0;){h=a>2E3?2E3:a;a-=h;do E=E+t[r++]|0,y=y+E|0;while(--h);E%=65521;y%=65521}return E|y<<16|0};for(var dN={},LS,wFd=[],Md=0;Md<256;Md++){LS=Md;for(var R7c=0;R7c<8;R7c++)LS=LS&1?3988292384^LS>>>1:LS>>>1;wFd[Md]=LS}dN=function(y,t,a,r){a=r+a;for(y^=-1;r>>8^wFd[(y^t[r])&255];return y^-1};var Fx={};Fx={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 Z$=[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],aT=[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],tv1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],qqF=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$R=Array(576);YM($R);var U_=Array(60);YM(U_);var tC=Array(512);YM(tC);var G4=Array(256);YM(G4);var yI=Array(29);YM(yI);var rN=Array(30);YM(rN);var GAd,Z0n,yxb,Tiu=!1;var ji;ji=[new Wr(0,0,0,0,function(y,t){var a=65535;for(a>y.Y2-5&&(a=y.Y2-5);;){if(y.R7<=1){Xx(y);if(y.R7===0&&t===0)return 1;if(y.R7===0)break}y.iY+=y.R7;y.R7=0;var r=y.O6+a;if(y.iY===0||y.iY>=r)if(y.R7=y.iY-r,y.iY=r,C6(y,!1),y.La.Bj===0)return 1;if(y.iY-y.O6>=y.xV-262&&(C6(y,!1),y.La.Bj===0))return 1}y.LA=0;if(t===4)return C6(y,!0),y.La.Bj===0?3:4;y.iY>y.O6&&C6(y,!1);return 1}), new Wr(4,4,8,4,kR),new Wr(4,5,16,8,kR),new Wr(4,6,32,32,kR),new Wr(4,4,16,16,f6),new Wr(8,16,32,32,f6),new Wr(8,16,128,128,f6),new Wr(8,32,128,256,f6),new Wr(32,128,258,1024,f6),new Wr(32,258,258,4096,f6)];var IWz={};IWz=function(){this.input=null;this.yy=this.m1=this.a6=0;this.output=null;this.iR=this.Bj=this.SS=0;this.msg="";this.state=null;this.hh=2;this.Ka=0};var aIF=Object.prototype.toString; Si.prototype.push=function(y,t){var a=this.La,r=this.options.chunkSize;if(this.ended)return!1;var E=t===~~t?t:t===!0?4:0;typeof y==="string"?a.input=lW7(y):aIF.call(y)==="[object ArrayBuffer]"?a.input=new Uint8Array(y):a.input=y;a.a6=0;a.m1=a.input.length;do{a.Bj===0&&(a.output=new qR.Je(r),a.SS=0,a.Bj=r);y=KK7(a,E);if(y!==1&&y!==0)return this.Vq(y),this.ended=!0,!1;if(a.Bj===0||a.m1===0&&(E===4||E===2))if(this.options.to==="string"){var h=qR.To(a.output,a.SS);t=h;h=h.length;if(h<65537&&(t.subarray&& My3||!t.subarray))t=String.fromCharCode.apply(null,qR.To(t,h));else{for(var F="",x=0;x0||a.Bj===0)&&y!==1);if(E===4)return(a=this.La)&&a.state?(r=a.state.status,r!==42&&r!==69&&r!==73&&r!==91&&r!==103&&r!==113&&r!==666?y=AC(a,-2):(a.state=null,y=r===113?AC(a,-3):0)):y=-2,this.Vq(y),this.ended=!0,y===0;E===2&&(this.Vq(0),a.Bj=0);return!0}; Si.prototype.Vq=function(y){y===0&&(this.result=this.options.to==="string"?this.chunks.join(""):qR.Sl(this.chunks));this.chunks=[];this.err=y;this.msg=this.La.msg};var vr="@@redux/INIT"+QI(),xMy="@@redux/REPLACE"+QI();var sru=typeof Symbol==="function"&&Symbol.observable||"@@observable";var P7y=[0,Lf7,-3,am];g.N(zw7,Do);var feN=qm2(zw7,[0,r3,Md2,GY,Lf7,GY,-1,am,Lf7,am,-1,r3,am,Md2,Z2,P7y,GY,-1,am]);var R7y=1067019870;var Nx3=function(y,t){return function(){var a=new bp7(y,t,VS);return function(){return a}}()}("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 vHN=new g.lt("adInfoDialogEndpoint");var Uh2=new g.lt("adPingingEndpoint");var jaz=new g.lt("crossDeviceProgressCommand");var IS=new g.lt("actionCompanionAdRenderer");var i_=new g.lt("adActionInterstitialRenderer");var dHe=new g.lt("adDurationRemainingRenderer");var f_=new g.lt("adHoverTextButtonRenderer");var SXn=new g.lt("adInfoDialogRenderer");var a5=new g.lt("adMessageRenderer");var Wo=new g.lt("adPreviewRenderer");var Gm=new g.lt("adsEngagementPanelRenderer");var ebx=new g.lt("dismissablePanelTextPortraitImageRenderer");var L_=new g.lt("adsEngagementPanelSectionListViewModel");var XFI=new g.lt("flyoutCtaRenderer");var Tm=new g.lt("imageCompanionAdRenderer");var DH=new g.lt("instreamAdPlayerOverlayRenderer");var QK7=new g.lt("instreamSurveyAdBackgroundImageRenderer");var k1=new g.lt("instreamSurveyAdPlayerOverlayRenderer");var sW=new g.lt("instreamSurveyAdRenderer"),Xu=new g.lt("instreamSurveyAdSingleSelectQuestionRenderer"),dG=new g.lt("instreamSurveyAdMultiSelectQuestionRenderer"),w3=new g.lt("instreamSurveyAdAnswerRenderer"),kNe=new g.lt("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var A8=new g.lt("instreamVideoAdRenderer");var fzq=new g.lt("textOverlayAdContentRenderer"),Wd7=new g.lt("enhancedTextOverlayAdContentRenderer"),jV9=new g.lt("imageOverlayAdContentRenderer");var gT=new g.lt("playerOverlayLayoutRenderer");var K$=new g.lt("videoInterstitialButtonedCenteredLayoutRenderer");var m_1=new g.lt("aboveFeedAdLayoutRenderer");var Ja1=new g.lt("belowPlayerAdLayoutRenderer");var njz=new g.lt("inPlayerAdLayoutRenderer");var ojn=new g.lt("inPlayerOrganicOverlayAdLayoutRenderer");var C_=new g.lt("playerBytesAdLayoutRenderer");var Po=new g.lt("playerBytesSequenceItemAdLayoutRenderer");var RN=new g.lt("playerUnderlayAdLayoutRenderer");var x1=new g.lt("adIntroRenderer");var h8=new g.lt("playerBytesSequentialLayoutRenderer");var RMN=new g.lt("slidingTextPlayerOverlayRenderer");var $1=new g.lt("surveyTextInterstitialRenderer");var zO=new g.lt("videoAdTrackingRenderer");var SFz=new g.lt("videoInterstitialCenteredLayoutViewModel");var Sne=new g.lt("simpleAdBadgeRenderer");var aS=new g.lt("skipAdRenderer"),QVU=new g.lt("skipButtonRenderer");var Nu=new g.lt("adSlotRenderer");var Mu=new g.lt("squeezebackPlayerSidePanelRenderer");var vuF=new g.lt("timedPieCountdownRenderer");var Hn=new g.lt("adAvatarViewModel");var bZ=new g.lt("adBadgeViewModel");var Bn=new g.lt("adButtonViewModel");var pF7=new g.lt("adDetailsLineViewModel");var e7E=new g.lt("adDisclosureBannerViewModel");var lzE=new g.lt("adPodIndexViewModel");var ub7=new g.lt("imageBackgroundViewModel");var Vyc=new g.lt("adGridCardCollectionViewModel");var nu9=new g.lt("adGridCardTextViewModel");var mH9=new g.lt("adPreviewViewModel");var J1d=new g.lt("playerAdAvatarLockupCardButtonedViewModel");var ous=new g.lt("skipAdButtonViewModel");var H7e=new g.lt("skipAdViewModel");var b79=new g.lt("timedPieCountdownViewModel");var Bxc=new g.lt("visitAdvertiserLinkViewModel");var ZF=new g.lt("bannerImageLayoutViewModel");var y9=new g.lt("topBannerImageTextIconButtonedLayoutViewModel");var t8=new g.lt("adsEngagementPanelLayoutViewModel");var wG=new g.lt("displayUnderlayTextGridCardsLayoutViewModel");g.HQ=new g.lt("browseEndpoint");var c1q=new g.lt("confirmDialogEndpoint");var DkF=new g.lt("commandContext");var cCd=new g.lt("rawColdConfigGroup");var BNN=new g.lt("rawHotConfigGroup");g.MT=new g.lt("commandExecutorCommand");g.N(OZ2,Do);var cu7={qQv:0,pvr:1,j_r:32,eZ1:61,PtX:67,o5m:103,cWv:86,nWG:42,O21:60,W2m:62,Vtr:73,AWf:76,svG:88,K3r:90,YEv:99,SQu:98,zZv:100,H20:102,i2f:41,xk1:69,dk1:70,g5f:71,sfG:2,KPm:27,ANDROID:3,F1m:54,QYu:14,BWv:91,UU7:55,L17:24,a50:20,ywX:18,M8m:21,kH0:104,Jwr:30,l5r:29,uEm:28,wvf:101,bxX:34,rw5:36,qhX:38,IOS:5,AQF:15,Pl7:92,HIX:40,ew1:25,IkG:17,cQf:19,o2v:64,sPG:66,KlF:26,iI1:22,xHu:33,dHv:68,g2v:35,zwu:53,YGG:37,Vu7:39,YQv:7,ic0:57,xqF:43,gW1:59,dq1:93,f5e:74,Dq5:75,vWE:85,mqG:65,Q_E:80,UqF:8,zL4:10, a3m:58,L2u:63,F24:72,wt7:23,mkf:11,F37:13,gmG:12,Pk5:16,EW4:56,Ir7:31,ezm:77,y_0:84,hZ0:87,MPm:89,q6e:94,TuE:95};g.N(ut,Do);ut.prototype.gZ=function(){return IG(this,3)}; ut.prototype.LU=function(){return IG(this,5)}; ut.prototype.UB=function(y){return t_(this,5,y)};g.N(VI,Do);g.N(LJ7,Do);g.N(n6,Do);g.R=n6.prototype;g.R.getDeviceId=function(){return IG(this,6)}; g.R.Wo=function(y){var t=fn(this,9,uz,3,!0);xh(t,y);return t[y]}; g.R.getPlayerType=function(){return TU(this,36)}; g.R.setHomeGroupInfo=function(y){return Yc(this,LJ7,81,y)}; g.R.clearLocationPlayabilityToken=function(){return P0(this,89)};g.N(mR,Do);mR.prototype.getValue=function(){return IG(this,oG(this,H67,2))}; var H67=[2,3,4,5,6];g.N(JC,Do);JC.prototype.setTrackingParams=function(y){return P0(this,1,$mz(y,!1))};g.N(oT,Do);g.N(Hr,Do);Hr.prototype.Wo=function(y){var t=fn(this,5,Vo,3,!0);xh(t,y);return t[y]};g.N(bt,Do);bt.prototype.getToken=function(){return Zj(this,2)}; bt.prototype.setToken=function(y){return t_(this,2,y)};g.N(Br,Do);Br.prototype.setSafetyMode=function(y){return re(this,5,y)};g.N(cr,Do);cr.prototype.eM=function(y){return Yc(this,n6,1,y)};var S7=new g.lt("thumbnailLandscapePortraitRenderer");g.qn7=new g.lt("changeEngagementPanelVisibilityAction");var EGV=new g.lt("continuationCommand");g.YnF=new g.lt("openPopupAction");var JN7=new g.lt("signalAction");g.Rm=new g.lt("webCommandMetadata");var Dub=new g.lt("metadataBadgeRenderer");var rk2=new g.lt("signalServiceEndpoint");var VT=new g.lt("innertubeCommand");var bob=new g.lt("loggingDirectives");var ZZx={hIe:"EMBEDDED_PLAYER_MODE_UNKNOWN",nmf:"EMBEDDED_PLAYER_MODE_DEFAULT",ODe:"EMBEDDED_PLAYER_MODE_PFP",js4:"EMBEDDED_PLAYER_MODE_PFL"};var Nt7=new g.lt("channelThumbnailEndpoint");var P57=new g.lt("embeddedPlayerErrorMessageRenderer");var LxH=new g.lt("embeddedPlayerOverlayVideoDetailsRenderer"),dp2=new g.lt("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),XZ7=new g.lt("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var c8d=new g.lt("embedsInfoPanelRenderer");var jJF=new g.lt("feedbackEndpoint");var DHI=new g.lt("callToActionButtonViewModel");var guq=new g.lt("interactionLoggingCommandMetadata");var gnF={Zc0:"WEB_DISPLAY_MODE_UNKNOWN",N17:"WEB_DISPLAY_MODE_BROWSER",RL1:"WEB_DISPLAY_MODE_MINIMAL_UI",Gy1:"WEB_DISPLAY_MODE_STANDALONE",T14:"WEB_DISPLAY_MODE_FULLSCREEN"};g.N(qv,Do);qv.prototype.getPlayerType=function(){return TU(this,7)}; qv.prototype.gH=function(){return IG(this,19)}; qv.prototype.setVideoId=function(y){return t_(this,19,y)};g.N(YR,Do);g.N(DR,Do);g.N(gN,Do); var i7q=[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 Kds=new g.lt("loggingContext");g.N(K6,Do);g.N(IT,Do);IT.prototype.gH=function(){return Zj(this,oG(this,Es,1))}; IT.prototype.setVideoId=function(y){return mm(this,1,Es,gp(y))}; IT.prototype.getPlaylistId=function(){return Zj(this,oG(this,Es,2))}; var Es=[1,2];g.N(g.TL,Do);g.TL.prototype.nN=J1(0);var IzE=new g.lt("dismissPlayerOverlayCommand");var LX=new g.lt("changeKeyedMarkersVisibilityCommand");var TxI=new g.lt("changeMarkersVisibilityCommand");var i_N=new g.lt("loadMarkersCommand");var GNU=new g.lt("suggestedActionDataViewModel");var Gsy=new g.lt("timelyActionViewModel");var T_V=new g.lt("timelyActionsOverlayViewModel");var NC7=new g.lt("productListItemRenderer");var Z7c=new g.lt("shoppingOverlayRenderer");var MBn=new g.lt("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var y77=new g.lt("adFeedbackEndpoint");var tc7=new g.lt("menuEndpoint");var f07=new g.lt("phoneDialerEndpoint");var XJ1=new g.lt("sendSmsEndpoint");var Oq7=new g.lt("copyTextEndpoint");var a92=new g.lt("shareEndpoint"),r7U=new g.lt("shareEntityEndpoint"),Esd=new g.lt("shareEntityServiceEndpoint"),hFe=new g.lt("webPlayerShareEntityServiceEndpoint");g.on=new g.lt("urlEndpoint");g.zo=new g.lt("watchEndpoint");var Fie=new g.lt("watchPlaylistEndpoint");g.A73=new g.lt("offlineOrchestrationActionCommand");var SL2=new g.lt("compositeVideoOverlayRenderer");var x9e=new g.lt("miniplayerRenderer");var UpF=new g.lt("paidContentOverlayRenderer");var gwy=new g.lt("playerMutedAutoplayOverlayRenderer"),iVu=new g.lt("playerMutedAutoplayEndScreenRenderer");var bVH=new g.lt("unserializedPlayerResponse"),E12=new g.lt("unserializedPlayerResponse");var sqc=new g.lt("playlistEditEndpoint");var PV;g.j7=new g.lt("buttonRenderer");PV=new g.lt("toggleButtonRenderer");var vjn=new g.lt("counterfactualRenderer");var $9e=new g.lt("resolveUrlCommandMetadata");var U9i=new g.lt("modifyChannelNotificationPreferenceEndpoint");var $hb=new g.lt("pingingEndpoint");var C32=new g.lt("unsubscribeEndpoint");g.bP=new g.lt("subscribeButtonRenderer");var zF7=new g.lt("subscribeEndpoint");var y97=new g.lt("buttonViewModel");var p_x=new g.lt("qrCodeRenderer");var YK2={w07:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Buv:"LIVING_ROOM_APP_MODE_MAIN",tuE:"LIVING_ROOM_APP_MODE_KIDS",rQr:"LIVING_ROOM_APP_MODE_MUSIC",JQE:"LIVING_ROOM_APP_MODE_UNPLUGGED",ClE:"LIVING_ROOM_APP_MODE_GAMING"};var H_y=new g.lt("autoplaySwitchButtonRenderer");var bK,Omu,$ub,jCb;bK=new g.lt("decoratedPlayerBarRenderer");Omu=new g.lt("chapteredPlayerBarRenderer");$ub=new g.lt("multiMarkersPlayerBarRenderer");jCb=new g.lt("chapterRenderer");g.RdN=new g.lt("markerRenderer");var edd=new g.lt("decoratedPlayheadRenderer");var qWy=new g.lt("desktopOverlayConfigRenderer");var l5y=new g.lt("engagementPanelSectionListRenderer");var BG7=new g.lt("gatedActionsOverlayViewModel");var Xfd=new g.lt("heatMarkerRenderer");var da7=new g.lt("heatmapRenderer");var g1z=new g.lt("watchToWatchTransitionRenderer");var wZV=new g.lt("playlistPanelRenderer");var OIe=new g.lt("productUpsellSuggestedActionViewModel");var Lic=new g.lt("suggestedActionTimeRangeTrigger"),Mcq=new g.lt("suggestedActionsRenderer"),wd9=new g.lt("suggestedActionRenderer");var k7x=new g.lt("timedMarkerDecorationRenderer");var P7n=new g.lt("cipher");var Bhb=new g.lt("playerVars");var hhN=new g.lt("playerVars");var Nd=g.ks.window,RFF,P39,GL=(Nd==null?void 0:(RFF=Nd.yt)==null?void 0:RFF.config_)||(Nd==null?void 0:(P39=Nd.ytcfg)==null?void 0:P39.data_)||{};g.Wd("yt.config_",GL);var aB=[];var WJd=/^[\w.]*$/,dM7={q:!0,search_query:!0},Nkd=String(Fk);var Lt=new function(){var y=window.document;this.V=window;this.K=y}; g.Wd("yt.ads_.signals_.getAdSignalsString",function(y){return Am(ws(y))});g.oq();var Sbz="XMLHttpRequest"in g.ks?function(){return new XMLHttpRequest}:null;var N2i="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.i7(N2i);var vCd=Symbol("flagNamePruned");var lIN={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"},qbV="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.i7(N2i)),HZb=!1,mM1=vE;g.N(lo,cd);nt.prototype.then=function(y,t,a){return this.V?this.V.then(y,t,a):this.Y===1&&y?(y=y.call(a,this.K))&&typeof y.then==="function"?y:Jm(y):this.Y===2&&t?(y=t.call(a,this.K))&&typeof y.then==="function"?y:m_(y):this}; nt.prototype.getValue=function(){return this.K}; nt.prototype.$goog_Thenable=!0;var oB=!1;var Kx=tU||a_;var Tkn=/^([0-9\.]+):([0-9\.]+)$/;g.N(wB,cd);wB.prototype.name="BiscottiError";g.N(Me,cd);Me.prototype.name="BiscottiMissingError";var tPy={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},R_=null;var f91=g.K7(["data-"]),$i7={};var d9I=0,PG=g.ko?"webkit":hq?"moz":g.Le?"ms":g.oE?"o":"",Xds=g.jc("ytDomDomGetNextId")||function(){return++d9I}; g.Wd("ytDomDomGetNextId",Xds);var Odz={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};WG.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; WG.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; WG.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var jb=g.ks.ytEventsEventsListeners||{};g.Wd("ytEventsEventsListeners",jb);var wg7=g.ks.ytEventsEventsCounter||{count:0};g.Wd("ytEventsEventsCounter",wg7);var diy=g4(function(){var y=!1;try{var t=Object.defineProperty({},"passive",{get:function(){y=!0}}); window.addEventListener("test",null,t)}catch(a){}return y}),RCy=g4(function(){var y=!1; try{var t=Object.defineProperty({},"capture",{get:function(){y=!0}}); window.addEventListener("test",null,t)}catch(a){}return y});var d3;d3=window;g.Wx=d3.ytcsi&&d3.ytcsi.now?d3.ytcsi.now:d3.performance&&d3.performance.timing&&d3.performance.now&&d3.performance.timing.navigationStart?function(){return d3.performance.timing.navigationStart+d3.performance.now()}:function(){return(new Date).getTime()};g.Bd(eb,g.H);eb.prototype.hF=function(y){y.V===void 0&&LFH(y);var t=y.V;y.K===void 0&&LFH(y);this.V=new g.Em(t,y.K)}; eb.prototype.L2=function(){return this.V||new g.Em}; eb.prototype.AF=function(){if(this.V){var y=(0,g.Wx)();if(this.D!=0){var t=this.J,a=this.V,r=t.x-a.x;t=t.y-a.y;r=Math.sqrt(r*r+t*t)/(y-this.D);this.K[this.Y]=Math.abs((r-this.L)/this.L)>.5?1:0;for(a=t=0;a<4;a++)t+=this.K[a]||0;t>=3&&this.W();this.L=r}this.D=y;this.J=this.V;this.Y=(this.Y+1)%4}}; eb.prototype.I5=function(){g.kz(this.Z);g.Q1(this.Vv)};g.N(lm,g.H);lm.prototype.N=function(y,t,a,r,E){a=g.EO((0,g.mi)(a,r||this.I7));a={target:y,name:t,callback:a};var h;E&&diy()&&(h={passive:!0});y.addEventListener(t,a.callback,h);this.J.push(a);return a}; lm.prototype.Dh=function(y){for(var t=0;t=B.G1)||k.V.version>=b||k.V.objectStoreNames.contains(V)||v.push(V)}U=v;if(U.length===0){d.xG(5);break}C=Object.keys(a.options.AT); z=x.objectStoreNames();if(a.La.options.version+1)throw M.close(),a.Y=!1,A32(a,L);return d.return(M);case 8:throw t(), O instanceof Error&&!g.WE("ytidb_async_stack_killswitch")&&(O.stack=O.stack+"\n"+F.substring(F.indexOf("\n")+1)),RU(O,a.name,"",(w=a.options.version)!=null?w:-1);}})} function t(){a.V===r&&(a.V=void 0)} var a=this;if(!this.Y)throw A32(this);if(this.V)return this.V;var r,E={blocking:function(h){h.close()}, closed:t,SVE:t,upgrade:this.options.upgrade};return this.V=r=y()};var YG=new cx("YtIdbMeta",{AT:{databases:{G1:1}},upgrade:function(y,t){t(1)&&g.Qw(y,"databases",{keyPath:"actualName"})}});var Gj,Tj=new function(){}(new function(){});new g.US;g.N(tR,cx);tR.prototype.K=function(y,t,a){a=a===void 0?{}:a;return(this.options.shared?M0z:Lh7)(y,t,Object.assign({},a))}; tR.prototype.delete=function(y){y=y===void 0?{}:y;return(this.options.shared?Nlb:wSy)(this.name,y)};var eFc={},XSb=g.a6("ytGcfConfig",{AT:(eFc.coldConfigStore={G1:1},eFc.hotConfigStore={G1:1},eFc),shared:!1,upgrade:function(y,t){t(1)&&(g.Vw(g.Qw(y,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Vw(g.Qw(y,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.N(EH,g.H);EH.prototype.I5=function(){for(var y=g.p(this.K),t=y.next();!t.done;t=y.next()){var a=this.V;t=a.indexOf(t.value);t>=0&&a.splice(t,1)}this.K.length=0;g.H.prototype.I5.call(this)};$X.prototype.UB=function(y){this.hotHashData=y;g.Wd("yt.gcf.config.hotHashData",this.hotHashData||null)};var l99=typeof TextEncoder!=="undefined"?new TextEncoder:null,$R1=l99?function(y){return l99.encode(y)}:function(y){y=g.og(y); for(var t=new Uint8Array(y.length),a=0;a=t?!1:!0}; g.R.wr=function(){var y=this;if(!lp(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.aS.Ur("QUEUED",this.rH).then(function(t){t&&!y.tZ(t,y.hU)?y.yB.f$(function(){return g.m(function(a){if(a.V==1)return t.id===void 0?a.xG(2):g.u(a,y.aS.eD(t.id,y.rH),2);y.wr();g.FU(a)})}):y.Pl.z5()&&y.jA()})};var n4;var Dv1={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 Vc9={},QY7=g.a6("ServiceWorkerLogsDatabase",{AT:(Vc9.SWHealthLog={G1:1},Vc9),shared:!0,upgrade:function(y,t){t(1)&&g.Vw(g.Qw(y,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var o6={},V4H=0;var H5;B5.prototype.requestComplete=function(y,t){t&&(this.K=!0);y=this.removeParams(y);this.V.get(y)||this.V.set(y,t)}; B5.prototype.isEndpointCFR=function(y){y=this.removeParams(y);return(y=this.V.get(y))?!1:y===!1&&this.K?!0:null}; B5.prototype.removeParams=function(y){return y.split("?")[0]}; B5.prototype.removeParams=B5.prototype.removeParams;B5.prototype.isEndpointCFR=B5.prototype.isEndpointCFR;B5.prototype.requestComplete=B5.prototype.requestComplete;B5.getInstance=c5;g.N(qG,g.MM);g.R=qG.prototype;g.R.z5=function(){return this.V.z5()}; g.R.QT=function(y){this.V.V=y}; g.R.Nf=function(){var y=window.navigator.onLine;return y===void 0?!0:y}; g.R.BU=function(){this.K=!0}; g.R.listen=function(y,t){return this.V.listen(y,t)}; g.R.WJ=function(y){y=BS(this.V,y);y.then(function(t){g.WE("use_cfr_monitor")&&c5().requestComplete("generate_204",t)}); return y}; qG.prototype.sendNetworkCheckRequest=qG.prototype.WJ;qG.prototype.listen=qG.prototype.listen;qG.prototype.enableErrorFlushing=qG.prototype.BU;qG.prototype.getWindowStatus=qG.prototype.Nf;qG.prototype.networkStatusHint=qG.prototype.QT;qG.prototype.isNetworkAvailable=qG.prototype.z5;qG.getInstance=JlV;g.N(g.YX,g.MM);g.YX.prototype.z5=function(){var y=g.jc("yt.networkStatusManager.instance.isNetworkAvailable");return y?y.bind(this.K)():!0}; g.YX.prototype.QT=function(y){var t=g.jc("yt.networkStatusManager.instance.networkStatusHint").bind(this.K);t&&t(y)}; g.YX.prototype.WJ=function(y){var t=this,a;return g.m(function(r){a=g.jc("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(t.K);return g.WE("skip_network_check_if_cfr")&&c5().isEndpointCFR("generate_204")?r.return(new Promise(function(E){var h;t.QT(((h=window.navigator)==null?void 0:h.onLine)||!0);E(t.z5())})):a?r.return(a(y)):r.return(!0)})};var Dd;g.N(ip,up);ip.prototype.writeThenSend=function(y,t){t||(t={});t=I6(y,t);g.I_()||(this.V=!1);up.prototype.writeThenSend.call(this,y,t)}; ip.prototype.sendThenWrite=function(y,t,a){t||(t={});t=I6(y,t);g.I_()||(this.V=!1);up.prototype.sendThenWrite.call(this,y,t,a)}; ip.prototype.sendAndWrite=function(y,t){t||(t={});t=I6(y,t);g.I_()||(this.V=!1);up.prototype.sendAndWrite.call(this,y,t)}; ip.prototype.awaitInitialization=function(){return this.Y.promise};var cl2=g.ks.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Wd("ytNetworklessLoggingInitializationOptions",cl2);g.T1.prototype.isReady=function(){!this.config_&&H57()&&(this.config_=g.C4());return!!this.config_};var nsE,yq,a8;nsE=g.ks.ytPubsubPubsubInstance||new g.S4;yq=g.ks.ytPubsubPubsubSubscribedKeys||{};a8=g.ks.ytPubsubPubsubTopicToKeys||{};g.tV=g.ks.ytPubsubPubsubIsSynchronous||{};g.S4.prototype.subscribe=g.S4.prototype.subscribe;g.S4.prototype.unsubscribeByKey=g.S4.prototype.wO;g.S4.prototype.publish=g.S4.prototype.publish;g.S4.prototype.clear=g.S4.prototype.clear;g.Wd("ytPubsubPubsubInstance",nsE);g.Wd("ytPubsubPubsubTopicToKeys",a8);g.Wd("ytPubsubPubsubIsSynchronous",g.tV); g.Wd("ytPubsubPubsubSubscribedKeys",yq);var KTH={};g.N(Cs,g.H);Cs.prototype.append=function(y){if(!this.K)throw Error("This does not support the append operation");y=y.YE();this.YE().appendChild(y)}; g.N(z8,Cs);z8.prototype.YE=function(){return this.V};g.N(OR,g.H);OR.prototype.onTouchStart=function(y){this.W=!0;this.K=y.touches.length;this.V.isActive()&&(this.V.stop(),this.L=!0);y=y.touches;this.J=G4d(this,y)||y.length!=1;var t=y.item(0);this.J||!t?this.hF=this.Z=Infinity:(this.Z=t.clientX,this.hF=t.clientY);for(t=this.Y.length=0;t=0)}if(t||y&&Math.pow(y.clientX-this.Z,2)+Math.pow(y.clientY-this.hF,2)>25)this.D=!0}; OR.prototype.onTouchEnd=function(y){var t=y.changedTouches;t&&this.W&&this.K==1&&!this.D&&!this.L&&!this.J&&G4d(this,t)&&(this.AF=y,this.V.start());this.K=y.touches.length;this.K===0&&(this.D=this.W=!1,this.Y.length=0);this.L=!1};var Ls=Date.now().toString();var Nh={};var WD=Symbol("injectionDeps");X3.prototype.toString=function(){return"InjectionToken("+this.name+")"}; aRd.prototype.resolve=function(y){return y instanceof kD?jg(this,y.key,[],!0):jg(this,y,[])};var Sg;var vD=window;var uR=g.WE("web_enable_lifecycle_monitoring")&&ps()!==0,Uvu=g.WE("web_enable_lifecycle_monitoring");xvy.prototype.cancel=function(){for(var y=g.p(this.V),t=y.next();!t.done;t=y.next())t=t.value,t.jobId===void 0||t.Yg||this.scheduler.Vb(t.jobId),t.Yg=!0;this.K.resolve()};g.R=Vq.prototype;g.R.install=function(y){this.plugins.push(y);return this}; g.R.uninstall=function(){var y=this;g.w2.apply(0,arguments).forEach(function(t){t=y.plugins.indexOf(t);t>-1&&y.plugins.splice(t,1)})}; g.R.transition=function(y,t){var a=this;uR&&FRH(this.state);var r=this.transitions.find(function(h){return Array.isArray(h.from)?h.from.find(function(F){return F===a.state&&h.to===y}):h.from===a.state&&h.to===y}); if(r){this.K&&(sTN(this.K),this.K=void 0);Ct2(this,y,t);this.state=y;uR&&eg(this.state);r=r.action.bind(this);var E=this.plugins.filter(function(h){return h[y]}).map(function(h){return h[y]}); r($vz(this,E),t)}else throw Error("no transition specified from "+this.state+" to "+y);}; g.R.HA1=function(y){var t=g.w2.apply(1,arguments);g.tk();for(var a=g.p(y),r=a.next(),E={};!r.done;E={iQ:void 0},r=a.next())E.iQ=r.value,ueV(function(h){return function(){ma(h.iQ.name);o8(function(){return h.iQ.callback.apply(h.iQ,g.i7(t))}); JV(h.iQ.name)}}(E))}; g.R.AV7=function(y){var t=g.w2.apply(1,arguments),a,r,E,h;return g.m(function(F){F.V==1&&(g.tk(),a=g.p(y),r=a.next(),E={});if(F.V!=3){if(r.done)return F.xG(0);E.Qf=r.value;E.Vo=void 0;h=function(x){return function(){ma(x.Qf.name);var U=o8(function(){return x.Qf.callback.apply(x.Qf,g.i7(t))}); i5(U)?x.Vo=g.WE("web_lifecycle_error_handling_killswitch")?U.then(function(){JV(x.Qf.name)}):U.then(function(){JV(x.Qf.name)},function(C){ACy(C); JV(x.Qf.name)}):JV(x.Qf.name)}}(E); ueV(h);return E.Vo?g.u(F,E.Vo,3):F.xG(3)}E={Qf:void 0,Vo:void 0};r=a.next();return F.xG(2)})}; g.R.JU=function(y){var t=g.w2.apply(1,arguments),a=this,r=y.map(function(E){return{Fh:function(){ma(E.name);o8(function(){return E.callback.apply(E,g.i7(t))}); JV(E.name)}, priority:ns(a,E)}}); r.length&&(this.K=new xvy(r))}; g.Yu.Object.defineProperties(Vq.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var bR;g.N(HD,Vq);HD.prototype.L=function(y,t){var a=this;this.V=g.Z4(0,function(){a.currentState==="application_navigating"&&a.transition("none")},5E3); y(t==null?void 0:t.event)}; HD.prototype.J=function(y,t){this.V&&(g.qC.Vb(this.V),this.V=null);y(t==null?void 0:t.event)};var zx=[];g.Wd("yt.logging.transport.getScrapedGelPayloads",function(){return zx});BD.prototype.storePayload=function(y,t){y=cD(y);this.store[y]?this.store[y].push(t):(this.K={},this.store[y]=[t]);this.V++;g.WE("more_accurate_gel_parser")&&(t=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(t));return y}; BD.prototype.smartExtractMatchingEntries=function(y){if(!y.keys.length)return[];for(var t=YD(this,y.keys.splice(0,1)[0]),a=[],r=0;r=0){r=!1;break a}}r=!0}r&&(t=m9(t))&&this.EC(t)}}; g.R.Ej=function(y){return y}; g.R.onTouchStart=function(y){this.o5.onTouchStart(y)}; g.R.onTouchMove=function(y){this.o5.onTouchMove(y)}; g.R.onTouchEnd=function(y){if(this.o5)this.o5.onTouchEnd(y)}; g.R.EC=function(y){this.layoutId?this.ue.executeCommand(y,this.layoutId):(y=new g.RV("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.pK(y))}; g.R.createServerVe=function(y,t){this.api.createServerVe(y,this);this.api.setTrackingParams(y,t)}; g.R.logVisibility=function(y,t){this.api.hasVe(y)&&this.api.logVisibility(y,t,this.interactionLoggingClientData)}; g.R.I5=function(){this.clear(null);this.Dh(this.n1);for(var y=g.p(this.DE),t=y.next();!t.done;t=y.next())this.Dh(t.value);g.Ui.prototype.I5.call(this)};g.N(VV,CL); VV.prototype.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);this.V=t;if(t.text==null&&t.icon==null)g.ls(Error("ButtonRenderer did not have text or an icon set."));else{switch(t.style||null){case "STYLE_UNKNOWN":y="ytp-ad-button-link";break;default:y=null}y!=null&&g.Al(this.element,y);t.text!=null&&(y=g.Oi(t.text),g.TJ(y)||(this.element.setAttribute("aria-label",y),this.Y=new g.Ui({U:"span",X:"ytp-ad-button-text",er:y}),g.c(this,this.Y),this.Y.g0(this.element)));t.accessibilityData&&t.accessibilityData.accessibilityData&& t.accessibilityData.accessibilityData.label&&!g.TJ(t.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",t.accessibilityData.accessibilityData.label);t.icon!=null&&(t=ux(t.icon,this.D),t!=null&&(this.K=new g.Ui({U:"span",X:"ytp-ad-button-icon",S:[t]}),g.c(this,this.K)),this.L?lv(this.element,this.K.element,0):this.K.g0(this.element))}}; VV.prototype.clear=function(){this.hide()}; VV.prototype.onClick=function(y){CL.prototype.onClick.call(this,y);y=g.p(z9b(this));for(var t=y.next();!t.done;t=y.next())t=t.value,this.layoutId?this.ue.executeCommand(t,this.layoutId):g.pK(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.N(nL,g.H);nL.prototype.I5=function(){this.K&&g.Q1(this.K);this.V.clear();mp=null;g.H.prototype.I5.call(this)}; nL.prototype.register=function(y,t){t&&this.V.set(y,t)}; var mp=null;g.N(Hz,CL); Hz.prototype.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);y=t.hoverText||null;t=t.button&&g.P(t.button,g.j7)||null;t==null?g.pK(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new VV(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,void 0,void 0,void 0,void 0,this.Y),g.c(this,this.button),this.button.init(Ei("button"),t,this.macros),y&&this.button.element.setAttribute("aria-label",g.Oi(y)),this.button.g0(this.element),this.Z&&!g.FV(this.button.element, "ytp-ad-clickable")&&g.Al(this.button.element,"ytp-ad-clickable"),this.Y&&g.Al(this.button.element,"ytp-ad-hover-text-button--clean-player"),y&&(this.K=new g.Ui({U:"div",X:"ytp-ad-hover-text-container"}),this.L&&(t=new g.Ui({U:"div",X:"ytp-ad-hover-text-callout"}),t.g0(this.K.element),g.c(this,t)),g.c(this,this.K),this.K.g0(this.element),t=JG(y),lv(this.K.element,t,0)),this.show())}; Hz.prototype.hide=function(){this.button&&this.button.hide();this.K&&this.K.hide();CL.prototype.hide.call(this)}; Hz.prototype.show=function(){this.button&&this.button.show();CL.prototype.show.call(this)};g.N(Bz,CL); Bz.prototype.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);a=(y=t.thumbnail)&&bx(y)||"";g.TJ(a)?Math.random()<.01&&g.ls(Error("Found AdImage without valid image URL")):(this.V?g.ry(this.element,"backgroundImage","url("+a+")"):X1(this.element,{src:a}),X1(this.element,{alt:y&&y.accessibility&&y.accessibility.label||""}),t&&t.adRendererCommands&&t.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Bz.prototype.clear=function(){this.hide()};g.N(cz,CL);g.R=cz.prototype;g.R.hide=function(){CL.prototype.hide.call(this);this.Y&&this.Y.focus()}; g.R.show=function(){this.Y=document.activeElement;CL.prototype.show.call(this);this.D.focus()}; g.R.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);this.K=t;t.dialogMessages||t.title!=null?t.confirmLabel==null?g.pK(Error("ConfirmDialogRenderer.confirmLabel was not set.")):t.cancelLabel==null?g.pK(Error("ConfirmDialogRenderer.cancelLabel was not set.")):wGz(this,t):g.pK(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.R.clear=function(){g.V1(this.V);this.hide()}; g.R.KS=function(){this.hide()}; g.R.Qz=function(){var y=this.K.cancelEndpoint;y&&(this.layoutId?this.ue.executeCommand(y,this.layoutId):g.pK(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.R.zj=function(){var y=this.K.confirmNavigationEndpoint||this.K.confirmEndpoint;y&&(this.layoutId?this.ue.executeCommand(y,this.layoutId):g.pK(Error("Missing layoutId for confirm dialog.")));this.hide()};g.N(qq,CL);g.R=qq.prototype; g.R.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);this.Y=t;if(t.defaultText==null&&t.defaultIcon==null)g.pK(Error("ToggleButtonRenderer must have either text or icon set."));else if(t.defaultIcon==null&&t.toggledIcon!=null)g.pK(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(t.style){switch(t.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":y="ytp-ad-toggle-button-default-style";break;default:y=null}y!=null&&g.Al(this.D,y)}y={};t.defaultText? (a=g.Oi(t.defaultText),g.TJ(a)||(y.buttonText=a,this.api.G().experiments.Nr("a11y_h5_associate_survey_question")||this.V.setAttribute("aria-label",a),this.api.G().experiments.Nr("fix_h5_toggle_button_a11y")&&this.K.setAttribute("aria-label",a))):g.MV(this.d0,!1);t.defaultTooltip&&(y.tooltipText=t.defaultTooltip,this.V.hasAttribute("aria-label")||this.K.setAttribute("aria-label",t.defaultTooltip));t.defaultIcon?(a=ux(t.defaultIcon),this.updateValue("untoggledIconTemplateSpec",a),t.toggledIcon?(this.Vv= !0,a=ux(t.toggledIcon),this.updateValue("toggledIconTemplateSpec",a)):(g.MV(this.Z,!0),g.MV(this.L,!1)),g.MV(this.V,!1)):g.MV(this.K,!1);g.pJ(y)||this.update(y);t.isToggled&&(g.Al(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(t.isToggled));Yr(this);this.N(this.element,"change",this.WY);this.show()}}; g.R.onClick=function(y){this.DE.length>0&&(this.toggleButton(!this.isToggled()),this.WY());CL.prototype.onClick.call(this,y)}; g.R.WY=function(){g.Uz(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var y=g.p(R97(this,this.isToggled())),t=y.next();!t.done;t=y.next())t=t.value,this.layoutId?this.ue.executeCommand(t,this.layoutId):g.pK(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Yr(this)}; g.R.clear=function(){this.hide()}; g.R.toggleButton=function(y){g.Uz(this.D,"ytp-ad-toggle-button-toggled",y);this.V.checked=y;Yr(this)}; g.R.isToggled=function(){return this.V.checked};g.N(DT,lm);DT.prototype.L=function(y){if(Array.isArray(y)){y=g.p(y);for(var t=y.next();!t.done;t=y.next())t=t.value,t instanceof Pmy&&this.Y(t)}};g.N(gf,CL);g.R=gf.prototype;g.R.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);t.reasons?t.confirmLabel==null?g.pK(Error("AdFeedbackRenderer.confirmLabel was not set.")):(t.cancelLabel==null&&g.ls(Error("AdFeedbackRenderer.cancelLabel was not set.")),t.title==null&&g.ls(Error("AdFeedbackRenderer.title was not set.")),kDH(this,t)):g.pK(Error("AdFeedbackRenderer.reasons were not set."))}; g.R.clear=function(){vG(this.L);vG(this.Z);this.D.length=0;this.hide()}; g.R.hide=function(){this.V&&this.V.hide();this.K&&this.K.hide();CL.prototype.hide.call(this);this.Y&&this.Y.focus()}; g.R.show=function(){this.V&&this.V.show();this.K&&this.K.show();this.Y=document.activeElement;CL.prototype.show.call(this);this.L.focus()}; g.R.XK=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.R.GR5=function(){this.hide()}; ix.prototype.YE=function(){return this.V.element}; ix.prototype.getCommand=function(){return this.K}; ix.prototype.isChecked=function(){return this.Y.checked};g.N(KL,cz);KL.prototype.KS=function(y){cz.prototype.KS.call(this,y);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; KL.prototype.Qz=function(y){cz.prototype.Qz.call(this,y);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; KL.prototype.zj=function(y){cz.prototype.zj.call(this,y);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.N(In,CL);g.R=In.prototype; g.R.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);this.L=t;if(t.dialogMessage==null&&t.title==null)g.pK(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{t.confirmLabel==null&&g.ls(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(y=t.closeOverlayRenderer&&g.P(t.closeOverlayRenderer,g.j7)||null)this.V=new VV(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.c(this,this.V),this.V.init(Ei("button"),y,this.macros),this.V.g0(this.element);t.title&&(y=g.Oi(t.title),this.updateValue("title",y));if(t.adReasons)for(y=t.adReasons,a=0;a=this.Ff?(this.Vv.hide(),this.C1=!0,this.publish("i")):this.Y&&this.Y.isTemplated()&&(y=Math.max(0,Math.ceil((this.Ff-y)/1E3)),y!=this.JF&&(ZT(this.Y,{TIME_REMAINING:String(y)}),this.JF=y)))}};g.N(Ft,ya);g.R=Ft.prototype; g.R.init=function(y,t,a){ya.prototype.init.call(this,y,t,a);if(t.image&&t.image.thumbnail)if(t.headline)if(t.description)if((y=t.actionButton&&g.P(t.actionButton,g.j7))&&y.navigationEndpoint){var r=this.api.getVideoData(2);if(r!=null)if(t.image&&t.image.thumbnail){var E=t.image.thumbnail.thumbnails;E!=null&&E.length>0&&g.TJ(g.DV(E[0].url))&&(E[0].url=r.profilePicture)}else g.ls(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Y.init(Ei("ad-image"),t.image,a);this.L.init(Ei("ad-text"), t.headline,a);this.D.init(Ei("ad-text"),t.description,a);this.K.init(Ei("button"),y,a);a=K5(this.K.element);i4(this.K.element,a+" This link opens in new tab");this.Vv=y.navigationEndpoint;this.api.al()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.TF.bind(this));this.d0=t.startMs||0;tf(this)}else g.pK(Error("FlyoutCtaRenderer has no valid action button."));else g.pK(Error("FlyoutCtaRenderer has no description AdText."));else g.pK(Error("FlyoutCtaRenderer has no headline AdText.")); else g.ls(Error("FlyoutCtaRenderer has no image."))}; g.R.onClick=function(y){ya.prototype.onClick.call(this,y);this.api.pauseVideo();!g.Vu(this.K.element,y.target)&&this.Vv&&(this.layoutId?this.ue.executeCommand(this.Vv,this.layoutId):g.pK(Error("Missing layoutId for flyout cta.")))}; g.R.DQ=function(){if(this.V){var y=this.V.getProgressState();(y&&y.current||this.Ff)&&1E3*y.current>=this.d0&&(aa(this),g.sz(this.element,"ytp-flyout-cta-inactive"),this.K.element.removeAttribute("tabIndex"))}}; g.R.du=function(){this.clear()}; g.R.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.TF.bind(this))}; g.R.show=function(){this.K&&this.K.show();ya.prototype.show.call(this)}; g.R.hide=function(){this.K&&this.K.hide();ya.prototype.hide.call(this)}; g.R.TF=function(y){y=="hidden"?this.show():this.hide()};g.N(Af,CL);g.R=Af.prototype; g.R.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);this.V=t;if(this.V.rectangle)for(y=this.V.likeButton&&g.P(this.V.likeButton,PV),t=this.V.dislikeButton&&g.P(this.V.dislikeButton,PV),this.Y.init(Ei("toggle-button"),y,a),this.K.init(Ei("toggle-button"),t,a),this.N(this.element,"change",this.Rk),this.D.show(100),this.show(),a=g.p(this.V&&this.V.impressionCommands||[]),y=a.next();!y.done;y=a.next())y=y.value,this.layoutId?this.ue.executeCommand(y,this.layoutId):g.pK(Error("Missing layoutId for instream user sentiment."))}; g.R.clear=function(){this.hide()}; g.R.hide=function(){this.Y.hide();this.K.hide();CL.prototype.hide.call(this)}; g.R.show=function(){this.Y.show();this.K.show();CL.prototype.show.call(this)}; g.R.Rk=function(){FKV(this.element,"ytp-ad-instream-user-sentiment-selected");this.V.postMessageAction&&this.api.W4("onYtShowToast",this.V.postMessageAction);this.D.hide()}; g.R.onClick=function(y){this.DE.length>0&&this.Rk();CL.prototype.onClick.call(this,y)};g.N(xZ,g.H);g.R=xZ.prototype;g.R.I5=function(){this.reset();g.H.prototype.I5.call(this)}; g.R.reset=function(){g.V1(this.D);this.J=!1;this.V&&this.V.stop();this.L.stop();this.Y&&(this.Y=!1,this.W.play())}; g.R.start=function(){this.reset();this.D.N(this.K,"mouseover",this.Zz,this);this.D.N(this.K,"mouseout",this.GF,this);this.AF&&(this.D.N(this.K,"focusin",this.Zz,this),this.D.N(this.K,"focusout",this.GF,this));this.V?this.V.start():(this.J=this.Y=!0,g.ry(this.K,{opacity:this.hF}))}; g.R.Zz=function(){this.Y&&(this.Y=!1,this.W.play());this.L.stop();this.V&&this.V.stop()}; g.R.GF=function(){this.J?this.L.start():this.V&&this.V.start()}; g.R.k7=function(){this.Y||(this.Y=!0,this.Z.play(),this.J=!0)};var nH7=[new sg("b.f_",0),new sg("j.s_",2),new sg("r.s_",4),new sg("e.h_",6),new sg("i.s_",8),new sg("s.t_",10),new sg("p.h_",12),new sg("s.i_",14),new sg("f.i_",16),new sg("a.b_",18),new sg("a.o_"),new sg("g.o_",22),new sg("p.i_",24),new sg("p.m_"),new sg("n.k_",20),new sg("i.f_"),new sg("a.s_"),new sg("m.c_"),new sg("n.h_",26),new sg("o.p_"),new sg("m.p_",28),new sg("o.a_"),new sg("d.p_"),new sg("e.i_")].reduce(function(y,t){y[t.K]=t;return y},{});g.N(LD,ya);g.R=LD.prototype; g.R.init=function(y,t,a){ya.prototype.init.call(this,y,t,a);this.Vv=t;(this.d0=JU7(this))&&g.ls(Error("hasAdControlInClickCommands_ is true."));if(!t||g.pJ(t))g.pK(Error("SkipButtonRenderer was not specified or empty."));else if(!t.message||g.pJ(t.message))g.pK(Error("SkipButtonRenderer.message was not specified or empty."));else if(y=this.L?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},t=this.api.G().B("delhi_modern_web_player_icons"),t=ux(y,!1,!1,t),t==null?g.pK(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+y.iconType+ ".")):(this.api.G().B("disable_touch_events_on_skip_button")&&(t.T=Object.assign({},t.T,{"aria-hidden":"true",focusable:"false"})),this.Y=new g.Ui({U:"button",mX:[this.L?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],S:[{U:"span",X:this.L?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",S:[t]}]}),g.c(this,this.Y),this.Y.g0(this.D.element),this.K=new GF(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,"ytp-ad-skip-button-text"),this.L&&this.K.element.classList.add("ytp-ad-skip-button-text-centered"), this.K.init(Ei("ad-text"),this.Vv.message,a),g.c(this,this.K),lv(this.Y.element,this.K.element,0)),!this.api.G().B("disable_touch_events_on_skip_button")){var r=r===void 0?null:r;a=this.api.G();!(this.DE.length>0)&&a.K&&(J5?0:"ontouchstart"in document.documentElement&&(NK7()||X5()))&&(this.Dh(this.n1),r&&this.Dh(r),this.DE=[this.N(this.element,"touchstart",this.onTouchStart,this),this.N(this.element,"touchmove",this.onTouchMove,this),this.N(this.element,"touchend",this.onTouchEnd,this)])}}; g.R.clear=function(){this.Ff.reset();this.hide()}; g.R.hide=function(){this.D.hide();this.K&&this.K.hide();aa(this);ya.prototype.hide.call(this)}; g.R.onClick=function(y){if(this.Y!=null){if(y){var t=y||window.event;t.returnValue=!1;t.preventDefault&&t.preventDefault()}var a;if(uLu(y,{contentCpn:((a=this.api.getVideoData(1))==null?void 0:a.clientPlaybackNonce)||""})===0)this.api.W4("onAbnormalityDetected");else if(ya.prototype.onClick.call(this,y),this.publish("j"),this.api.W4("onAdSkip"),this.C1||!this.d0)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.R.Ej=function(y){if(!this.C1)return this.d0&&Ug("SkipButton click commands not pruned while ALC exist"),y;var t,a=(t=g.P(y,g.MT))==null?void 0:t.commands;if(!a)return y;y=[];for(t=0;t=this.L&&oHF(this,!0)};g.N(Ra,VV);Ra.prototype.init=function(y,t,a){VV.prototype.init.call(this,y,t,a);y=!1;t.text!=null&&(y=g.Oi(t.text),y=!g.TJ(y));y?t.navigationEndpoint==null?g.ls(Error("No visit advertiser clickthrough provided in renderer,")):t.style!=="STYLE_UNKNOWN"?g.ls(Error("Button style was not a link-style type in renderer,")):this.show():g.ls(Error("No visit advertiser text was present in the renderer."))};g.N(Pm,CL); Pm.prototype.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);y=t.text;g.TJ(zF(y))?g.ls(Error("SimpleAdBadgeRenderer has invalid or empty text")):(y&&y.text&&(t=y.text,this.Y&&!this.K&&(t=this.api.G(),t=y.text+" "+(t&&t.K?"\u2022":"\u00b7")),t={text:t,isTemplated:y.isTemplated},y.style&&(t.style=y.style),y.targetId&&(t.targetId=y.targetId),y=new GF(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),y.init(Ei("simple-ad-badge"),t,a),y.g0(this.element),g.c(this,y)),this.show())}; Pm.prototype.clear=function(){this.hide()};g.N(NT,hG);g.N(d0,g.FM);g.R=d0.prototype;g.R.wf=function(){return this.durationMs}; g.R.stop=function(){this.V&&this.handler.Dh(this.V)}; g.R.QD=function(y){this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:y.current};this.publish("h")}; g.R.getProgressState=function(){return this.K}; g.R.TC=function(y){g.Og(y,2)&&this.publish("g")};g.N(Xt,g.FM);g.R=Xt.prototype;g.R.wf=function(){return this.durationMs}; g.R.start=function(){this.V||(this.V=!0,this.timer.start())}; g.R.stop=function(){this.V&&(this.V=!1,this.timer.stop())}; g.R.QD=function(){this.Kx+=100;var y=!1;this.Kx>this.durationMs&&(this.Kx=this.durationMs,this.timer.stop(),y=!0);this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Kx/1E3};this.publish("h");y&&this.publish("g")}; g.R.getProgressState=function(){return this.K};g.N(jI,ya);g.R=jI.prototype;g.R.init=function(y,t,a){ya.prototype.init.call(this,y,t,a);var r;if(t==null?0:(r=t.templatedCountdown)==null?0:r.templatedAdText){y=t.templatedCountdown.templatedAdText;if(!y.isTemplated){g.ls(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.K=new GF(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);this.K.init(Ei("ad-text"),y,{});this.K.g0(this.element);g.c(this,this.K)}this.show()}; g.R.clear=function(){this.hide()}; g.R.hide=function(){aa(this);ya.prototype.hide.call(this)}; g.R.du=function(){this.hide()}; g.R.DQ=function(){if(this.V!=null){var y=this.V.getProgressState();if(y!=null&&y.current!=null&&this.K){var t=this.V instanceof d0?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:y.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.V instanceof Xt?y.seekableEnd:this.api.getDuration(2,!1);y=y.current;var a,r,E=((a=this.api.getVideoData())==null?0:(r=a.NP)==null?0:r.call(a))?Math.max(t-y,0):t-y;ZT(this.K,{FORMATTED_AD_DURATION_REMAINING:String(g.kZ(E)), TIME_REMAINING:String(Math.ceil(E))})}}}; g.R.show=function(){tf(this);ya.prototype.show.call(this)};g.N(SI,GF);SI.prototype.onClick=function(y){GF.prototype.onClick.call(this,y);this.api.onAdUxClicked(this.componentType)};g.N(vm,CL);vm.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});if(y=t.content){g.np(this.element,y);var a,r;t=((a=t.interaction)==null?void 0:(r=a.accessibility)==null?void 0:r.label)||y;this.element.setAttribute("aria-label",t)}else g.pK(Error("AdSimpleAttributedString does not have text content"))}; vm.prototype.clear=function(){this.hide()}; vm.prototype.onClick=function(y){CL.prototype.onClick.call(this,y)};g.N(pD,CL); pD.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});(y=t.label)&&y.content&&!g.TJ(y.content)?(this.adBadgeText.init(Ei("ad-simple-attributed-string"),new Qa(y)),(t=t.adPodIndex)&&t.content&&!g.TJ(t.content)&&(this.V=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),this.V.g0(this.element),g.c(this,this.V),this.V.element.classList.add("ytp-ad-badge__pod-index"),this.V.init(Ei("ad-simple-attributed-string"),new Qa(t))),this.element.classList.add(this.K?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.pK(Error("No label is returned in AdBadgeViewModel."))}; pD.prototype.show=function(){this.adBadgeText.show();var y;(y=this.V)==null||y.show();CL.prototype.show.call(this)}; pD.prototype.hide=function(){this.adBadgeText.hide();var y;(y=this.V)==null||y.hide();CL.prototype.hide.call(this)};g.N(eI,CL);eI.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});(y=t.adPodIndex)&&y.content&&!g.TJ(y.content)&&(this.V=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),this.V.g0(this.element),g.c(this,this.V),this.V.init(Ei("ad-simple-attributed-string"),new Qa(y)),t.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()}; eI.prototype.show=function(){var y;(y=this.V)==null||y.show();CL.prototype.show.call(this)}; eI.prototype.hide=function(){var y;(y=this.V)==null||y.hide();CL.prototype.hide.call(this)};g.N(lI,CL); lI.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});if(t!=null&&t.text){var a;if(((a=t.text)==null?0:a.content)&&!g.TJ(t.text.content)){this.V=new g.Ui({U:"div",X:"ytp-ad-disclosure-banner__text",er:t.text.content});g.c(this,this.V);this.V.g0(this.element);if(this.api.G().B("enable_ad_disclosure_banner_a11y_fix")){var r,E,h=(r=t.interaction)==null?void 0:(E=r.accessibility)==null?void 0:E.label;h||(h=t.text.content+" This link opens in new tab");i4(this.element,h)}else{var F;r=((h= t.interaction)==null?void 0:(F=h.accessibility)==null?void 0:F.label)||t.text.content;this.element.setAttribute("aria-label",r)}var x;if((x=t.interaction)==null?0:x.onTap)this.api.G().B("remove_chevron_from_ad_disclosure_banner_h5")||(this.K=new g.Ui({U:"div",X:"ytp-ad-disclosure-banner__chevron",S:[g.Rn()]}),g.c(this,this.K),this.K.g0(this.element)),this.api.G().B("enable_ad_disclosure_banner_a11y_fix")&&(Dw(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.MC)); this.show()}}else g.pK(Error("No banner text found in AdDisclosureBanner."))}; lI.prototype.MC=function(y){if(y.key==="Enter"||y.key===" ")y.preventDefault(),this.element.click()}; lI.prototype.clear=function(){this.hide()};g.N(nD,g.Ui);nD.prototype.QD=function(){var y=this.K.getProgressState(),t=y.seekableEnd;this.api.getPresentingPlayerType()===2&&(t=this.Y?this.Y/1E3:y.seekableEnd);this.progressBar.style.width=Va(new uI(y.seekableStart,t),y.current,0)*100+"%"}; nD.prototype.onStateChange=function(){g.ic(this.api.G())||(this.api.getPresentingPlayerType()===2?this.V===-1&&(this.show(),this.V=this.K.subscribe("h",this.QD,this),this.QD()):this.V!==-1&&(this.hide(),this.K.wO(this.V),this.V=-1))};g.N(mZ,CL); mZ.prototype.init=function(y,t,a,r){CL.prototype.init.call(this,y,t,a);if(t.skipOrPreviewRenderer){if(y=g.P(t.skipOrPreviewRenderer,aS))a=new w0(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.K,this.Z),a.g0(this.yv),a.init(Ei("skip-button"),y,this.macros),g.c(this,a);if(y=g.P(t.skipOrPreviewRenderer,aS))var E=y.skipOffsetMilliseconds}t.brandInteractionRenderer&&(y=t.brandInteractionRenderer.brandInteractionRenderer,a=new Af(this.api,this.layoutId,this.interactionLoggingClientData,this.ue), a.g0(this.d0),a.init(Ei("instream-user-sentiment"),y,this.macros),g.c(this,a));if(y=g.P(t,XFI))if(y=g.P(y,XFI))a=new Ft(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.K,!!t.showWithoutLinkedMediaLayout),g.c(this,a),a.g0(this.L),a.init(Ei("flyout-cta"),y,this.macros);r=r&&r.videoAdDurationSeconds;t.adBadgeRenderer&&(a=t.adBadgeRenderer,y=g.P(a,bZ),y!=null?(a=new pD(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,!1),g.c(this,a),a.g0(this.V),a.init(Ei("ad-badge"), y,this.macros),this.Y=a.element):(y=a.simpleAdBadgeRenderer,y==null&&(y={text:{text:"Anuncio",isTemplated:!1}}),a=new Pm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,!0),g.c(this,a),a.g0(this.V),a.init(Ei("simple-ad-badge"),y,this.macros)));t.adPodIndex&&(y=g.P(t.adPodIndex,lzE),y!=null&&(a=new eI(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,a),a.g0(this.V),a.init(Ei("ad-pod-index"),y)));t.adDurationRemaining&&!t.showWithoutLinkedMediaLayout&&(y=t.adDurationRemaining.adDurationRemainingRenderer, y==null&&(y={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),r=new jI(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.K,r,!1),g.c(this,r),r.g0(this.V),r.init(Ei("ad-duration-remaining"),y,this.macros));t.adInfoRenderer&&(r=g.P(t.adInfoRenderer,f_))&&(y=new TF(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.element,void 0,!1),g.c(this,y),this.Y!==null?this.V.insertBefore(y.element,this.Y.nextSibling):y.g0(this.V), y.init(Ei("ad-info-hover-text-button"),r,this.macros));t.visitAdvertiserRenderer&&(y=g.P(t.visitAdvertiserRenderer,g.j7))&&(a=cUN(this)&&this.D?this.D:this.V)&&(r=new Ra(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,r),r.g0(a),r.init(Ei("visit-advertiser"),y,this.macros),Dw(r.element),y=K5(r.element),i4(r.element,y+" This link opens in new tab"));!(r=this.api.G())||g.De(r)||g.bc(r)||r.controlsType!="3"&&!r.disableOrganicUi||(E=new nD(this.api,this.K,E,!1),E.g0(this.Ff), g.c(this,E));t.adDisclosureBannerRenderer&&(t=g.P(t.adDisclosureBannerRenderer,e7E))&&(E=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),E.g0(this.Vv),E.init(Ei("ad-disclosure-banner"),t),g.c(this,E));this.api.G().B("enable_updated_html5_player_focus_style")&&g.Al(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; mZ.prototype.clear=function(){this.hide()};g.Hm.prototype.flush=function(y,t){y=y===void 0?[]:y;t=t===void 0?!1:t;if(g.WE("enable_client_streamz_web")){y=g.p(y);for(var a=y.next();!a.done;a=y.next())a=PVn(a.value),this.V&&Yc(a,wi,2,this.V),a={serializedIncrementBatch:g.H$(a.Y())},g.Mc("streamzIncremented",a,{sendIsolatedPayload:t})}}; g.N(YX7,g.Hm);var CBd=new Map;bI.prototype.set=function(y,t,a){a=a!==void 0?Date.now()+a:void 0;this.V.set(y,t,a)}; bI.prototype.get=function(y){return this.V.get(y)}; bI.prototype.remove=function(y){this.V.remove(y)};var gH7=null;var Dk=null,g0=null,iI=null,GDN=null;g.Wd("yt.www.ads.eventcache.getLastCompanionData",function(){return Dk}); g.Wd("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Wd("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return g0}); g.Wd("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return iI}); g.Wd("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return GDN});var ykx=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);KD.prototype.handleResponse=function(y,t){if(!t)throw Error("request needs to be passed into ConsistencyService");var a,r;t=((a=t.ZK.context)==null?void 0:(r=a.request)==null?void 0:r.consistencyTokenJars)||[];var E;(y=(E=y.responseContext)==null?void 0:E.consistencyTokenJar)&&this.replace(t,y)}; KD.prototype.replace=function(y,t){y=g.p(y);for(var a=y.next();!a.done;a=y.next())delete this.V[a.value.encryptedTokenJarContents];aAn(this,t)};var bIc=window.location.hostname.split(".").slice(-2).join("."),Sa;Tz.getInstance=function(){Sa=g.jc("yt.clientLocationService.instance");Sa||(Sa=new Tz,g.Wd("yt.clientLocationService.instance",Sa));return Sa}; g.R=Tz.prototype; g.R.setLocationOnInnerTubeContext=function(y){y.client||(y.client={});if(this.V)y.client.locationInfo||(y.client.locationInfo={}),y.client.locationInfo.latitudeE7=Math.floor(this.V.coords.latitude*1E7),y.client.locationInfo.longitudeE7=Math.floor(this.V.coords.longitude*1E7),y.client.locationInfo.horizontalAccuracyMeters=Math.round(this.V.coords.accuracy),y.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Y||this.locationPlayabilityToken)y.client.locationPlayabilityToken=this.Y|| this.locationPlayabilityToken}; g.R.handleResponse=function(y){var t;y=(t=y.responseContext)==null?void 0:t.locationPlayabilityToken;y!==void 0&&(this.locationPlayabilityToken=y,this.V=void 0,g.yd("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Ia(this))&&this.localStorage.set("yt-location-playability-token",y,15552E3):g.bo("YT_CL",JSON.stringify({loctok:y}),15552E3,bIc,!0))}; g.R.clearLocationPlayabilityToken=function(y){y==="TVHTML5"?(this.localStorage=Ia(this))&&this.localStorage.remove("yt-location-playability-token"):g.cE("YT_CL");this.Y=void 0;this.K!==-1&&(clearTimeout(this.K),this.K=-1)}; g.R.getCurrentPositionFromGeolocation=function(){var y=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var t=!1,a=1E4;g.yd("INNERTUBE_CLIENT_NAME")==="MWEB"&&(t=!0,a=15E3);return new Promise(function(r,E){navigator.geolocation.getCurrentPosition(function(h){y.V=h;r(h)},function(h){E(h)},{enableHighAccuracy:t, maximumAge:0,timeout:a})})}; g.R.createUnpluggedLocationInfo=function(y){var t={};y=y.coords;if(y==null?0:y.latitude)t.latitudeE7=Math.floor(y.latitude*1E7);if(y==null?0:y.longitude)t.longitudeE7=Math.floor(y.longitude*1E7);if(y==null?0:y.accuracy)t.locationRadiusMeters=Math.round(y.accuracy);return t}; g.R.createLocationInfo=function(y){var t={};y=y.coords;if(y==null?0:y.latitude)t.latitudeE7=Math.floor(y.latitude*1E7);if(y==null?0:y.longitude)t.longitudeE7=Math.floor(y.longitude*1E7);return t};g.R=Ak7.prototype;g.R.contains=function(y){return Object.prototype.hasOwnProperty.call(this.V,y)}; g.R.get=function(y){if(this.contains(y))return this.V[y]}; g.R.set=function(y,t){this.V[y]=t}; g.R.lU=function(){return Object.keys(this.V)}; g.R.remove=function(y){delete this.V[y]};Zk.prototype.getModuleId=function(y){return y.serviceId.getModuleId()}; Zk.prototype.get=function(y){a:{var t=this.mappings.get(y.toString());switch(t.type){case "mapping":y=t.value;break a;case "factory":t=t.value();this.mappings.set(y.toString(),{type:"mapping",value:t});y=t;break a;default:y=SE(t)}}return y}; Zk.prototype.registerService=function(y,t){this.mappings.set(y.toString(),{type:"mapping",value:t});return y}; new Zk;var Qb={},xx2=(Qb.WEB_UNPLUGGED="^unplugged/",Qb.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Qb.WEB_UNPLUGGED_OPS="^unplugged/",Qb.WEB_UNPLUGGED_PUBLIC="^unplugged/",Qb.WEB_CREATOR="^creator/",Qb.WEB_KIDS="^kids/",Qb.WEB_EXPERIMENTS="^experiments/",Qb.WEB_MUSIC="^music/",Qb.WEB_REMIX="^music/",Qb.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Qb.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Qb);aW.prototype.L=function(y,t,a){t=t===void 0?{}:t;a=a===void 0?OH:a;var r={context:g.Gz(y.clickTrackingParams,!1,this.D)};var E=this.K(y);if(E){this.V(r,E,t);var h;t=g.ta(this.Y());(E=(h=g.P(y.commandMetadata,g.Rm))==null?void 0:h.apiUrl)&&(t=E);h=gC1(qt(t));y=Object.assign({},{command:y},void 0);r={input:h,V3:Yz(h),ZK:r,config:y};r.config.Ai?r.config.Ai.identity=a:r.config.Ai={identity:a};return r}a=new g.RV("Error: Failed to create Request from Command.",y);g.pK(a)}; g.Yu.Object.defineProperties(aW.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.N(rJ,aW);g.N(EF,rJ);EF.prototype.L=function(){return{input:"/getDatasyncIdsEndpoint",V3:Yz("/getDatasyncIdsEndpoint","GET"),ZK:{}}}; EF.prototype.Y=function(){return[]}; EF.prototype.K=function(){}; EF.prototype.V=function(){};var B2e={},BRH=(B2e.GET_DATASYNC_IDS=y_(EF),B2e);var vV={},c72=(vV["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",vV["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",vV["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",vV["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",vV["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",vV["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",vV["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", vV["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",vV["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",vV["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",vV["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",vV["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",vV["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",vV["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",vV["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", vV["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",vV["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",vV["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",vV["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",vV["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",vV["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",vV["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", vV["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",vV.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",vV["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",vV["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",vV["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",vV["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",vV["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",vV["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", vV["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",vV["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",vV["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",vV["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",vV["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",vV["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",vV["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",vV["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",vV["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",vV["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",vV.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",vV["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",vV["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",vV["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",vV["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",vV["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",vV["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",vV["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",vV["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",vV["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",vV["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",vV["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",vV["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",vV["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",vV["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",vV["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",vV["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",vV["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",vV["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",vV["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",vV["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",vV["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", vV["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",vV["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",vV["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",vV["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",vV["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",vV["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",vV["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",vV["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",vV["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", vV["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",vV["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",vV["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",vV["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",vV["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",vV["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",vV["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",vV["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", vV),pS={},Lbn=(pS.auto_search="LATENCY_ACTION_AUTO_SEARCH",pS.ad_to_ad="LATENCY_ACTION_AD_TO_AD",pS.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",pS.app_startup="LATENCY_ACTION_APP_STARTUP",pS.browse="LATENCY_ACTION_BROWSE",pS.cast_splash="LATENCY_ACTION_CAST_SPLASH",pS.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",pS.channels="LATENCY_ACTION_CHANNELS",pS.chips="LATENCY_ACTION_CHIPS",pS.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",pS.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", pS.editor="LATENCY_ACTION_EDITOR",pS.embed="LATENCY_ACTION_EMBED",pS.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",pS.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",pS.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",pS.explore="LATENCY_ACTION_EXPLORE",pS.favorites="LATENCY_ACTION_FAVORITES",pS.home="LATENCY_ACTION_HOME",pS.inboarding="LATENCY_ACTION_INBOARDING",pS.landing="LATENCY_ACTION_LANDING",pS.learning="LATENCY_ACTION_LEARNING", pS.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",pS.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",pS.library="LATENCY_ACTION_LIBRARY",pS.live="LATENCY_ACTION_LIVE",pS.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",pS.management="LATENCY_ACTION_MANAGEMENT",pS.mini_app="LATENCY_ACTION_MINI_APP_PLAY",pS.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",pS.onboarding="LATENCY_ACTION_ONBOARDING",pS.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", pS.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",pS.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",pS.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",pS.prebuffer="LATENCY_ACTION_PREBUFFER",pS.prefetch="LATENCY_ACTION_PREFETCH",pS.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",pS.profile_switcher="LATENCY_ACTION_LOGIN",pS.projects="LATENCY_ACTION_PROJECTS",pS.reel_watch="LATENCY_ACTION_REEL_WATCH",pS.results="LATENCY_ACTION_RESULTS",pS.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", pS.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",pS.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",pS.review="LATENCY_ACTION_REVIEW",pS.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",pS.search_ui="LATENCY_ACTION_SEARCH_UI",pS.search_suggest="LATENCY_ACTION_SUGGEST",pS.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",pS.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",pS.seek="LATENCY_ACTION_PLAYER_SEEK",pS.settings="LATENCY_ACTION_SETTINGS",pS.store="LATENCY_ACTION_STORE", pS.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",pS.tenx="LATENCY_ACTION_TENX",pS.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",pS.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",pS.watch="LATENCY_ACTION_WATCH",pS.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",pS["watch,watch7"]="LATENCY_ACTION_WATCH",pS["watch,watch7_html5"]="LATENCY_ACTION_WATCH",pS["watch,watch7ad"]="LATENCY_ACTION_WATCH",pS["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",pS.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", pS.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",pS.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",pS.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",pS.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",pS.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",pS.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",pS.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",pS);Object.assign(Lbn,c72);g.N(OF,L4);var vGy=new MG("aft-recorded",OF);var qye=g.ks.ytLoggingGelSequenceIdObj_||{};g.Wd("ytLoggingGelSequenceIdObj_",qye);var wJ=g.ks.ytLoggingLatencyUsageStats_||{};g.Wd("ytLoggingLatencyUsageStats_",wJ);LM.prototype.tick=function(y,t,a,r){RW(this,"tick_"+y+"_"+t)||g.Mc("latencyActionTicked",{tickName:y,clientActionNonce:t},{timestamp:a,cttAuthInfo:r})}; LM.prototype.info=function(y,t,a){var r=Object.keys(y).join("");RW(this,"info_"+r+"_"+t)||(y=Object.assign({},y),y.clientActionNonce=t,g.Mc("latencyActionInfo",y,{cttAuthInfo:a}))}; LM.prototype.jspbInfo=function(y,t,a){for(var r="",E=0;E=E.length?(t.append(E),y-=E.length):y?(t.append(new Uint8Array(E.buffer,E.byteOffset,y)),a.append(new Uint8Array(E.buffer,E.byteOffset+y,E.length-y)),y=0):a.append(E);return{zm:t,q1:a}}; $k.prototype.isFocused=function(y){return y>=this.Y&&y=64&&(this.J.set(y.subarray(0,64-this.K),this.K),t=64-this.K,this.K=0,nXV(this,this.J,0));for(;t+64<=a;t+=64)nXV(this,y,t);t=this.start&&(y=2&&a.ssdaiAdsConfig&&Ug("Unexpected ad placement renderers length",y.slot,null,{length:r.length});var E;((E=a.adSlots)==null?0:E.some(function(h){var F,x;return((F=g.P(h,Nu))==null?void 0:(x=F.adSlotMetadata)==null?void 0:x.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||r.some(function(h){var F,x,U,C; return!!((F=h.renderer)==null?0:(x=F.linearAdSequenceRenderer)==null?0:(U=x.linearAds)==null?0:U.length)||!((C=h.renderer)==null||!C.instreamVideoAdRenderer)})||A47(y)})}; DX.prototype.gp=function(){gD7(this.V)};g$.prototype.nE=function(){var y=this;Dh7(this.K,function(){var t=Yb(y.slot.clientMetadata,"metadata_type_ad_break_request_data");return t.cueProcessedMs?y.V.get().fetch({kQ:t.getAdBreakUrl,Eo:new g.BK(t.x6,t.Y6),cueProcessedMs:t.cueProcessedMs}):y.V.get().fetch({kQ:t.getAdBreakUrl,Eo:new g.BK(t.x6,t.Y6)})})}; g$.prototype.gp=function(){gD7(this.K)};id.prototype.nE=function(){var y=this.slot.clientMetadata,t,a=(t=this.slot.fulfilledLayout)!=null?t:Yb(y,"metadata_type_fulfilled_layout");XDH(this.callback,this.slot,a)}; id.prototype.gp=function(){hH(this.callback,this.slot,new I("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")};IA.prototype.build=function(y,t){return t.fulfilledLayout||KF(t,{Hj:["metadata_type_fulfilled_layout"]})?new id(y,t):this.Y(y,t)};g.N(Tv,IA); Tv.prototype.Y=function(y,t){if(KF(t,{Hj:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new DX(y,t,this.V,this.K,this.bK,this.YG,this.Um,this.v4,this.wV);if(KF(t,{Hj:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new g$(y,t,this.V,this.K,this.bK,this.YG);throw new I("Unsupported slot with type: "+t.slotType+" and client metadata: "+D1(t.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.N(Gv,IA);Gv.prototype.Y=function(y,t){throw new I("Unsupported slot with type: "+t.slotType+" and client metadata: "+D1(t.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.R=xcN.prototype;g.R.Sz=function(){return this.slot}; g.R.Em=function(){return this.layout}; g.R.init=function(){}; g.R.release=function(){}; g.R.startRendering=function(y){if(y.layoutId!==this.layout.layoutId)this.callback.p_(this.slot,y,new cl("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 t=Yb(y.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.e_(this.slot,y),TJN(this.Y, this.slot,t)):Ug("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,y)}}; g.R.K0=function(y,t){y.layoutId!==this.layout.layoutId?this.callback.p_(this.slot,y,new cl("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.Ju(this.slot,y,t),$c7(this),Uc1(this))};g.N(rT,g.FM);g.R=rT.prototype;g.R.Sz=function(){return this.K.slot}; g.R.Em=function(){return this.K.layout}; g.R.init=function(){this.Y.get().addListener(this)}; g.R.release=function(){this.Y.get().removeListener(this);this.dispose()}; g.R.M8=function(){}; g.R.Lp=function(){}; g.R.U_=function(){}; g.R.Ia=function(){}; g.R.startRendering=function(y){var t=this;ao(this.K,y,function(){return void t.eg()})}; g.R.eg=function(){this.Y.get().eg(this.V)}; g.R.K0=function(y,t){var a=this;ao(this.K,y,function(){var r=a.Y.get();YCn(r,a.V,3);a.V=[];a.callback.Ju(a.slot,y,t)})}; g.R.I5=function(){this.Y.Qv()||this.Y.get().removeListener(this);g.FM.prototype.I5.call(this)}; g.Yu.Object.defineProperties(rT.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.K.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.K.layout}}});U4.prototype.JV=function(y,t){t=t===void 0?!1:t;var a=(this.Y.get(y)||[]).concat();if(t=t&&L97(y)){var r=this.Y.get(t);r&&a.push.apply(a,g.i7(r))}O4(this,y,a);this.V.add(y);t&&this.V.add(t)}; U4.prototype.uY=function(y,t){t=t===void 0?!1:t;if(!this.V.has(y)){var a=t&&L97(y);a&&(t=!this.V.has(a));this.JV(y,t)}};g.N(Rc1,hG);g.N(P7,rT);g.R=P7.prototype;g.R.Si=function(y,t){As("ads-engagement-panel-layout",y,this.J.get().IY,this.Um.get(),this.D,this.L,this.Sz(),this.Em(),t)}; g.R.startRendering=function(y){hs(this.Xf,this.Sz(),this.Em(),g.P(this.Em().renderingContent,t8),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(t,a,r,E,h){return new Rc1(t,a,r,E,h)},this.V); rT.prototype.startRendering.call(this,y)}; g.R.e_=function(y,t){this.L===t.layoutId&&(this.D===null?this.D=this.Um.get().V2():Ug("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.Ju=function(){}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){}; g.R.I5=function(){aA(this.PO(),this);rT.prototype.I5.call(this)};g.N(NEx,hG);g.N(NA,rT);g.R=NA.prototype;g.R.Si=function(y,t){As("banner-image",y,this.J.get().IY,this.Um.get(),this.D,this.L,this.Sz(),this.Em(),t)}; g.R.startRendering=function(y){hs(this.Xf,this.Sz(),this.Em(),g.P(this.Em().renderingContent,ZF),this.callback,"metadata_type_banner_image_layout_view_model",function(t,a,r,E,h){return new NEx(t,a,r,E,h)},this.V); rT.prototype.startRendering.call(this,y)}; g.R.e_=function(y,t){this.L===t.layoutId&&(this.D===null?this.D=this.Um.get().V2():Ug("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.Ju=function(){}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){}; g.R.I5=function(){aA(this.PO(),this);rT.prototype.I5.call(this)};g.N(dT,hG);g.N(XZ,rT);g.R=XZ.prototype;g.R.Si=function(y,t){As("action-companion",y,this.J.get().IY,this.Um.get(),this.D,this.L,this.Sz(),this.Em(),t)}; g.R.startRendering=function(y){hs(this.Xf,this.Sz(),this.Em(),g.P(this.Em().renderingContent,IS),this.callback,"metadata_type_action_companion_ad_renderer",function(t,a,r,E,h){return new dT(t,a,r,E,h)},this.V); rT.prototype.startRendering.call(this,y)}; g.R.e_=function(y,t){t.layoutId===this.layout.layoutId?this.Xf.uY("impression"):this.L===t.layoutId&&(this.D===null?this.D=this.Um.get().V2():Ug("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.Ju=function(){}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){}; g.R.I5=function(){aA(this.PO(),this);rT.prototype.I5.call(this)};g.N(kxb,hG);g.N(kL,rT);g.R=kL.prototype;g.R.Si=function(y,t){As("image-companion",y,this.J.get().IY,this.Um.get(),this.D,this.L,this.Sz(),this.Em(),t)}; g.R.startRendering=function(y){hs(this.Xf,this.Sz(),this.Em(),g.P(this.Em().renderingContent,Tm),this.callback,"metadata_type_image_companion_ad_renderer",function(t,a,r,E,h){return new kxb(t,a,r,E,h)},this.V); rT.prototype.startRendering.call(this,y)}; g.R.e_=function(y,t){t.layoutId===this.layout.layoutId?this.Xf.uY("impression"):this.L===t.layoutId&&(this.D===null?this.D=this.Um.get().V2():Ug("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.Ju=function(){}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){}; g.R.I5=function(){aA(this.PO(),this);rT.prototype.I5.call(this)};g.N(W9F,hG);g.N(f$,rT);g.R=f$.prototype;g.R.Si=function(y,t){As("shopping-companion",y,this.J.get().IY,this.Um.get(),this.D,this.L,this.Sz(),this.Em(),t)}; g.R.startRendering=function(y){hs(this.Xf,this.Sz(),this.Em(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(t,a,r,E,h){return new W9F(t,a,r,E,h)},this.V); rT.prototype.startRendering.call(this,y)}; g.R.e_=function(y,t){t.layoutId===this.layout.layoutId?this.Xf.uY("impression"):this.L===t.layoutId&&(this.D===null?this.D=this.Um.get().V2():Ug("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.Ju=function(){}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){}; g.R.I5=function(){aA(this.PO(),this);rT.prototype.I5.call(this)};g.N(Ss,rT);g.R=Ss.prototype;g.R.startRendering=function(y){hs(this.Xf,this.Sz(),this.Em(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(t,a,r,E,h){return new dT(t,a,r,E,h)},this.V); rT.prototype.startRendering.call(this,y)}; g.R.e_=function(){}; g.R.Ju=function(){}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){}; g.R.I5=function(){aA(this.PO(),this);rT.prototype.I5.call(this)}; g.R.Si=function(){};g.R=pjF.prototype;g.R.Sz=function(){return this.slot}; g.R.Em=function(){return this.layout}; g.R.init=function(){this.v4.get().addListener(this);this.v4.get().CE.push(this);var y=Yb(this.layout.clientMetadata,"metadata_type_video_length_seconds"),t=Yb(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");xL(this.layout.ez)&&G7(this.KJ.get(),this.layout.layoutId,{PA:t,SM:y,listener:this})}; g.R.release=function(){this.v4.get().removeListener(this);oNH(this.v4.get(),this);xL(this.layout.ez)&&ZU(this.KJ.get(),this.layout.layoutId)}; g.R.startRendering=function(y){this.callback.e_(this.slot,y)}; g.R.K0=function(y,t){sxx(this.YG.get())&&!this.V&&(this.Xf.uY("abandon"),this.V=!0);this.callback.Ju(this.slot,y,t)}; g.R.Be=function(y){switch(y.id){case "part2viewed":this.Xf.uY("start");this.Xf.uY("impression");break;case "videoplaytime25":this.Xf.uY("first_quartile");break;case "videoplaytime50":this.Xf.uY("midpoint");break;case "videoplaytime75":this.Xf.uY("third_quartile");break;case "videoplaytime100":sxx(this.YG.get())?this.V||(this.Xf.uY("complete"),this.V=!0):this.Xf.uY("complete");Ro(this.Xf)&&MA(this.Xf,Infinity,!0);$LV(this.YG.get())&&js(this.K,Infinity,!0);break;case "engagedview":Ro(this.Xf)||this.Xf.uY("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Ug("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.R.onVolumeChange=function(){}; g.R.CL=function(){}; g.R.A9=function(){}; g.R.J1=function(){}; g.R.onFullscreenToggled=function(){}; g.R.n$=function(){}; g.R.rW=function(){}; g.R.PZ=function(y){$LV(this.YG.get())&&js(this.K,y*1E3,!1);Ro(this.Xf)&&MA(this.Xf,y*1E3,!1)}; g.R.fL=function(){}; g.R.kH=function(){this.Xf.uY("active_view_measurable")}; g.R.BT=function(){this.Xf.uY("active_view_viewable")}; g.R.Mm=function(){this.Xf.uY("active_view_fully_viewable_audible_half_duration")}; g.R.qm=function(){this.Xf.uY("audio_measurable")}; g.R.yT=function(){this.Xf.uY("audio_audible")};g.N(Q5,rT);g.R=Q5.prototype;g.R.init=function(){rT.prototype.init.call(this);var y=Yb(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),t={adsClientData:this.layout.CJ};this.V.push(new NT(y,this.layout.layoutId,Yb(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),t,!0))}; g.R.Vp=function(){this.D||this.v4.get().resumeVideo(1)}; g.R.startRendering=function(y){rT.prototype.startRendering.call(this,y);Fm(this.v4.get(),"ad-showing");this.callback.e_(this.slot,y);this.L.Kz=this}; g.R.K0=function(y,t){rT.prototype.K0.call(this,y,t);Ae(this.v4.get(),"ad-showing");YV(this.L,this)}; g.R.Si=function(y){switch(y){case "ad-info-icon-button":(this.D=this.v4.get().Lb(1))||this.v4.get().pauseVideo();break;case "visit-advertiser":this.v4.get().pauseVideo()}}; g.R.I5=function(){rT.prototype.I5.call(this)};g.N(v7,hG);g.N(p$,rT);g.R=p$.prototype;g.R.startRendering=function(y){hs(this.Xf,this.Sz(),this.Em(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(t,a,r,E,h){return new v7(t,a,r,E,h)},this.V); rT.prototype.startRendering.call(this,y)}; g.R.e_=function(){}; g.R.Ju=function(){}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){}; g.R.I5=function(){aA(this.PO(),this);rT.prototype.I5.call(this)}; g.R.Si=function(){};g.N(es,hG);g.N(l_,rT);l_.prototype.init=function(){rT.prototype.init.call(this);this.V.push(new es(g.P(this.layout.renderingContent,wG),this.layout.layoutId,{adsClientData:this.layout.CJ}))}; l_.prototype.Si=function(){Mp(this.D.get(),this.L)&&FZ(this.Um.get(),3)}; l_.prototype.startRendering=function(y){rT.prototype.startRendering.call(this,y);this.callback.e_(this.slot,y)}; l_.prototype.I5=function(){rT.prototype.I5.call(this)};g.N(u_,hG);g.N(V5,rT);V5.prototype.init=function(){rT.prototype.init.call(this);var y=g.P(this.layout.renderingContent,i_)||Yb(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),t=E4(this.Xf);this.V.push(new u_(y,t,this.layout.layoutId,{adsClientData:this.layout.CJ},!0,!0))}; V5.prototype.startRendering=function(y){rT.prototype.startRendering.call(this,y);this.callback.e_(this.slot,y)}; V5.prototype.Si=function(y,t){if(t===this.layout.layoutId)switch(y){case "skip-button":var a;(y=(a=Yb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:a.current)&&BY(y,this.Sz(),this.layout)}}; V5.prototype.I5=function(){rT.prototype.I5.call(this)};mu.prototype.build=function(y,t,a,r){if(n$(r,{Hj:["metadata_type_ad_break_response_data"],Jj:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new xcN(y,a,r,this.K,this.Y,this.V);throw new cl("Unsupported layout with type: "+r.layoutType+" and client metadata: "+D1(r.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.N(uEn,hG);g.N(Js,rT);g.R=Js.prototype;g.R.Si=function(y,t){As("ads-engagement-panel",y,this.J.get().IY,this.Um.get(),this.D,this.L,this.Sz(),this.Em(),t)}; g.R.startRendering=function(y){hs(this.Xf,this.Sz(),this.Em(),g.P(this.Em().renderingContent,Gm),this.callback,"metadata_type_ads_engagement_panel_renderer",function(t,a,r,E,h){return new uEn(t,a,r,E,h)},this.V); rT.prototype.startRendering.call(this,y)}; g.R.e_=function(y,t){t.layoutId===this.layout.layoutId?this.Xf.uY("impression"):this.L===t.layoutId&&(this.D===null?this.D=this.Um.get().V2():Ug("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.Ju=function(){}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){}; g.R.I5=function(){aA(this.PO(),this);rT.prototype.I5.call(this)};g.N(oo,rT);g.R=oo.prototype;g.R.Si=function(y,t){As("top-banner-image-text-icon-buttoned",y,this.J.get().IY,this.Um.get(),this.D,this.L,this.Sz(),this.Em(),t)}; g.R.startRendering=function(y){hs(this.Xf,this.Sz(),this.Em(),g.P(this.Em().renderingContent,y9),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(t,a,r,E,h){return new v7(t,a,r,E,h)},this.V); rT.prototype.startRendering.call(this,y)}; g.R.e_=function(y,t){this.L===t.layoutId&&(this.D===null?this.D=this.Um.get().V2():Ug("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.Ju=function(){}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){}; g.R.I5=function(){aA(this.PO(),this);rT.prototype.I5.call(this)};mcx.prototype.build=function(y,t,a,r){if(n$(r,VpV())||g.P(r.renderingContent,Gm)!==void 0)return new Js(y,a,r,this.VD,this.Um,this.PO,this.KJ,this.V);if(n$(r,Xj7())||g.P(r.renderingContent,IS)!==void 0)return new XZ(y,a,r,this.VD,this.Um,this.PO,this.KJ,this.V);if(n$(r,fBy())||g.P(r.renderingContent,Tm)!==void 0)return new kL(y,a,r,this.VD,this.Um,this.PO,this.KJ,this.V);if(n$(r,jQN()))return new f$(y,a,r,this.VD,this.Um,this.PO,this.KJ,this.V);if(n$(r,vtV()))return new Ss(y,a,r,this.VD,this.Um,this.PO, this.KJ,this.V);if(n$(r,dc7())||g.P(r.renderingContent,ZF)!==void 0)return new NA(y,a,r,this.VD,this.Um,this.PO,this.KJ,this.V);if(n$(r,ntu())||g.P(r.renderingContent,y9)!==void 0)return new oo(y,a,r,this.VD,this.Um,this.PO,this.KJ,this.V);if(n$(r,ec2()))return new p$(y,a,r,this.VD,this.Um,this.PO,this.KJ,this.V);if(n$(r,Ps7())||g.P(r.renderingContent,t8)!==void 0)return new P7(y,a,r,this.VD,this.Um,this.PO,this.KJ,this.V);throw new cl("Unsupported layout with type: "+r.layoutType+" and client metadata: "+ D1(r.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};J4x.prototype.build=function(y,t,a,r){if(n$(r,{Hj:["metadata_type_linked_player_bytes_layout_id"],Jj:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new l_(y,a,r,this.VD,this.Um,this.V);throw new cl("Unsupported layout with type: "+r.layoutType+" and client metadata: "+D1(r.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.R=ot7.prototype;g.R.Sz=function(){return this.slot}; g.R.Em=function(){return this.layout}; g.R.init=function(){}; g.R.release=function(){}; g.R.startRendering=function(y){y.layoutId!==this.layout.layoutId?this.callback.p_(this.slot,y,new cl("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.e_(this.slot,y),this.Xf.uY("impression"),Dq(this.rd,y))}; g.R.K0=function(y,t){y.layoutId!==this.layout.layoutId?this.callback.p_(this.slot,y,new cl("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.Ju(this.slot,y,t)};g.R=bKF.prototype;g.R.Sz=function(){return this.slot}; g.R.Em=function(){return this.layout}; g.R.init=function(){}; g.R.release=function(){}; g.R.startRendering=function(y){y.layoutId!==this.layout.layoutId?this.callback.p_(this.slot,y,new cl("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.e_(this.slot,y),this.Xf.uY("impression"),Dq(this.rd,y))}; g.R.K0=function(y,t){y.layoutId!==this.layout.layoutId?this.callback.p_(this.slot,y,new cl("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.Ju(this.slot,y,t)};H7.prototype.build=function(y,t,a,r){if(!this.YG.get().C.G().B("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(n$(r,HK1()))return new ot7(y,a,r,this.Um,this.rd)}else if(n$(r,{Hj:[],Jj:["LAYOUT_TYPE_FORECASTING"]}))return new bKF(y,a,r,this.Um,this.rd);throw new cl("Unsupported layout with type: "+r.layoutType+" and client metadata: "+D1(r.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.N(qsy,hG);g.N(b_,rT);g.R=b_.prototype;g.R.init=function(){rT.prototype.init.call(this);var y=g.P(this.layout.renderingContent,gT)||Yb(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),t={adsClientData:this.layout.CJ};this.V.push(new qsy(y,Yb(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,t))}; g.R.Vp=function(){this.D||this.v4.get().resumeVideo(2)}; g.R.startRendering=function(y){rT.prototype.startRendering.call(this,y);this.callback.e_(this.slot,y);this.L.Kz=this}; g.R.K0=function(y,t){rT.prototype.K0.call(this,y,t);YV(this.L,this)}; g.R.Si=function(y,t){if(!V4(this.YG.get(),"stop_handling_click_for_non_rendering_overlay_layout")||t===this.layout.layoutId){if(Mp(this.J.get(),this.W))switch(y){case "visit-advertiser-link":FZ(this.Um.get(),3)}switch(y){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.v4.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.v4.get().Lb(2))||this.v4.get().pauseVideo();break; case "visit-advertiser-link":this.v4.get().pauseVideo();Ys7(this).Mt();break;case "skip-button":if(y=Ys7(this),this.layout.renderingContent&&!Hl(this.layout.clientMetadata,"metadata_type_dai")||!y||!y.yE){var a;(y=(a=Yb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:a.current)&&BY(y,this.Sz(),this.layout)}else Ug("Requesting to skip by LegacyPlayerBytes when components enabled"),y.hR(this.Sz(),this.layout)}}}; g.R.I5=function(){rT.prototype.I5.call(this)};g.N(B7,rT);g.R=B7.prototype;g.R.init=function(){rT.prototype.init.call(this);var y=g.P(this.layout.renderingContent,DH)||Yb(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),t={adsClientData:this.layout.CJ},a;(a=!!this.layout.renderingContent)||(a=c7(this),a=!(a&&a.yE));this.V.push(new NT(y,this.layout.layoutId,Yb(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),t,a))}; g.R.Vp=function(){this.D||this.v4.get().resumeVideo(2)}; g.R.startRendering=function(y){rT.prototype.startRendering.call(this,y);this.callback.e_(this.slot,y);this.L.Kz=this}; g.R.K0=function(y,t){rT.prototype.K0.call(this,y,t);YV(this.L,this)}; g.R.Si=function(y,t){if(!this.YG||!V4(this.YG.get(),"stop_handling_click_for_non_rendering_overlay_layout")||t===this.layout.layoutId){if(Mp(this.J.get(),this.W))switch(y){case "visit-advertiser":FZ(this.Um.get(),3)}switch(y){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.v4.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.v4.get().Lb(2))||this.v4.get().pauseVideo();break; case "visit-advertiser":this.v4.get().pauseVideo();c7(this).Mt();break;case "skip-button":if(y=c7(this),this.layout.renderingContent&&!Hl(this.layout.clientMetadata,"metadata_type_dai")||!y||!y.yE){var a;(y=(a=Yb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:a.current)&&BY(y,this.Sz(),this.layout)}else Ug("Requesting to skip by LegacyPlayerBytes"),y.hR(this.Sz(),this.layout)}}}; g.R.I5=function(){rT.prototype.I5.call(this)};g.N(gt2,hG);g.N(qA,rT);g.R=qA.prototype;g.R.startRendering=function(y){var t=this;ao(this.K,y,function(){t.V.push(new gt2(Yb(t.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),y.layoutId,y.CJ));t.eg();t.callback.e_(t.slot,y);g.D(T7(t.v4.get(),1),512)&&t.callback.p_(t.Sz(),t.Em(),new cl("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.R.rW=function(){}; g.R.n$=function(y){if(y.state.isError()){var t;this.callback.p_(this.Sz(),this.Em(),new cl("A player error happened during adNotify",{playerErrorCode:(t=y.state.mS)==null?void 0:t.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.R.onFullscreenToggled=function(){}; g.R.A9=function(){}; g.R.J1=function(){}; g.R.CL=function(){}; g.R.onVolumeChange=function(){}; g.R.Be=function(){}; g.R.fL=function(){}; g.R.Si=function(){};g.N(K9x,hG);g.N(YL,rT);YL.prototype.init=function(){rT.prototype.init.call(this);var y=g.P(this.layout.renderingContent,K$),t=E4(this.Xf);this.V.push(new K9x(y,t,this.layout.layoutId,{adsClientData:this.layout.CJ}))}; YL.prototype.startRendering=function(y){rT.prototype.startRendering.call(this,y);this.callback.e_(this.slot,y)}; YL.prototype.Si=function(y,t){if(t===this.layout.layoutId)switch(y){case "skip-button":var a;(y=(a=Yb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:a.current)&&BY(y,this.Sz(),this.layout)}}; YL.prototype.I5=function(){rT.prototype.I5.call(this)};IBH.prototype.build=function(y,t,a,r){if(y=Io(y,a,r,this.VD,this.v4,this.Um,this.K,this.V,this.YG))return y;throw new cl("Unsupported layout with type: "+r.layoutType+" and client metadata: "+D1(r.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.R=ZH.prototype;g.R.Sz=function(){return this.slot}; g.R.Em=function(){return this.layout}; g.R.init=function(){this.v4.get().addListener(this);this.v4.get().CE.push(this);var y=TEu(this),t=g.P(this.layout.renderingContent,zO),a=t?s4(t.pings):Yb(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");t=t?OK7(t.pings):Yb(this.layout.clientMetadata,"metadata_type_active_view_identifier");xL(this.layout.ez)&&G7(this.KJ.get(),this.layout.layoutId,{PA:a,SM:y,listener:this,YB:t})}; g.R.release=function(){this.v4.get().removeListener(this);oNH(this.v4.get(),this);xL(this.layout.ez)&&ZU(this.KJ.get(),this.layout.layoutId)}; g.R.startRendering=function(y){this.callback.e_(this.slot,y)}; g.R.K0=function(y,t){yP(this,"abandon");this.callback.Ju(this.slot,y,t)}; g.R.Be=function(y){switch(y.id){case "part2viewed":this.Xf.uY("start");this.Xf.uY("impression");break;case "videoplaytime25":this.Xf.uY("first_quartile");break;case "videoplaytime50":this.Xf.uY("midpoint");break;case "videoplaytime75":this.Xf.uY("third_quartile");break;case "videoplaytime100":yP(this,"complete");Ro(this.Xf)&&MA(this.Xf,Infinity,!0);ULu(this.YG.get())&&js(this.K,Infinity,!0);break;case "engagedview":Ro(this.Xf)||this.Xf.uY("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Ug("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.R.onVolumeChange=function(){}; g.R.CL=function(){}; g.R.A9=function(){}; g.R.J1=function(){}; g.R.onFullscreenToggled=function(){}; g.R.n$=function(y){this.V||(g.Og(y,4)&&!g.Og(y,2)?L$(this.Xf,"pause"):zz(y,4)<0&&!(zz(y,2)<0)&&L$(this.Xf,"resume"))}; g.R.rW=function(){}; g.R.PZ=function(y){ULu(this.YG.get())&&js(this.K,y*1E3,!1);Ro(this.Xf)&&MA(this.Xf,y*1E3,!1)}; g.R.fL=function(){yP(this,"swipe")}; g.R.kH=function(){this.Xf.uY("active_view_measurable")}; g.R.BT=function(){this.Xf.uY("active_view_viewable")}; g.R.Mm=function(){this.Xf.uY("active_view_fully_viewable_audible_half_duration")}; g.R.qm=function(){this.Xf.uY("audio_measurable")}; g.R.yT=function(){this.Xf.uY("audio_audible")};Gx7.prototype.build=function(y,t,a,r){if(a.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.P(r.renderingContent,zO)!==void 0)return new ZH(y,a,r,this.v4,this.Um,this.a7,this.YG,this.KJ,this.B4);t=["metadata_type_ad_placement_config"];for(var E=g.p(C$()),h=E.next();!h.done;h=E.next())t.push(h.value);if(n$(r,{Hj:t,Jj:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return a.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new ZH(y,a,r,this.v4,this.Um,this.a7,this.YG,this.KJ,this.B4):new pjF(y,a,r, this.v4,this.Um,this.a7,this.YG,this.KJ);throw new cl("Unsupported layout with type: "+r.layoutType+" and client metadata: "+D1(r.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var FsU,nS; FsU={vVG:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",W1F:"AUTHENTICATION_MALFORMED",NWf:"AUTHENTICATION_MISSING",Zxv:"BAD_REQUEST",HLm:"CAST_SESSION_DEVICE_MISMATCHED",Vqu:"CAST_SESSION_VIDEO_MISMATCHED",enF:"CAST_TOKEN_EXPIRED",In5:"CAST_TOKEN_FAILED",c15:"CAST_TOKEN_MALFORMED",omu:"CGI_PARAMS_MALFORMED",ss5:"CGI_PARAMS_MISSING",wer:"DEVICE_FALLBACK",IQE:"GENERIC_WITH_LINK_AND_CPN",c_4:"ERROR_HDCP",oPv:"LICENSE",Kbm:"VIDEO_UNAVAILABLE",d1G:"FORMAT_UNAVAILABLE",Fb7:"GEO_FAILURE", uM4:"HTML5_AUDIO_RENDERER_ERROR",bD5:"GENERIC_WITHOUT_LINK",pGE:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",XGr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Wbu:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",NKe:"HTML5_SPS_UMP_STATUS_REJECTED",hwm:"INVALID_DRM_MESSAGE",NnF:"PURCHASE_NOT_FOUND",Tnr:"PURCHASE_REFUNDED",dBf:"RENTAL_EXPIRED",UB7:"RETRYABLE_ERROR",tdv:"SERVER_ERROR",XKG:"SIGNATURE_EXPIRED",SNe:"STOPPED_BY_ANOTHER_PLAYBACK",E87:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",n8G:"STREAMING_NOT_ALLOWED", jq4:"STREAM_LICENSE_NOT_FOUND",cc4:"TOO_MANY_REQUESTS",oWG:"TOO_MANY_REQUESTS_WITH_LINK",s_G:"TOO_MANY_STREAMS_PER_ENTITLEMENT",K2r:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",B1G:"VIDEO_FORBIDDEN",rcG:"VIDEO_NOT_FOUND",OL1:"BROWSER_OR_EXTENSION_ERROR"};nS={}; g.nc=(nS.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.",nS.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",nS.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", nS.LICENSE="Se produjo un error de licencia con este video.",nS.VIDEO_UNAVAILABLE="Video no disponible",nS.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",nS.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",nS.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",nS.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",nS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",nS.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",nS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",nS.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", nS.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",nS.PURCHASE_NOT_FOUND="Este es un video pagado.",nS.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",nS.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",nS.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",nS.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", nS.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",nS.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",nS.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",nS.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",nS.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",nS.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",nS.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",nS.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",nS.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", nS.TOO_MANY_REQUESTS="Accede para mirar el video.",nS.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",nS.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",nS.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",nS.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", nS.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",nS.VIDEO_NOT_FOUND="No se puede encontrar este video.",nS.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",nS);var ABE;var xXq=g.rI(),sMs=xXq.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!sMs||sMs.length<2)ABE=void 0;else{var $X9=xXq.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);ABE=$X9&&$X9.length===6?Number($X9[5].replace("_",".")):0}var n3=ABE,pc=n3>=0;g.N(g.Ci,lm);g.Ci.prototype.N=function(y,t,a,r,E){return lm.prototype.N.call(this,y,t,a,r,E)};var mS={},cy=(mS.FAIRPLAY="fairplay",mS.PLAYREADY="playready",mS.WIDEVINE="widevine",mS.CLEARKEY=null,mS.FLASHACCESS=null,mS.UNKNOWN=null,mS.WIDEVINE_CLASSIC=null,mS);zM.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var JJ={},Za=(JJ.WIDTH={name:"width",video:!0,valid:640,Vn:99999},JJ.HEIGHT={name:"height",video:!0,valid:360,Vn:99999},JJ.FRAMERATE={name:"framerate",video:!0,valid:30,Vn:9999},JJ.BITRATE={name:"bitrate",video:!0,valid:3E5,Vn:2E9},JJ.EOTF={name:"eotf",video:!0,valid:"bt709",Vn:"catavision"},JJ.CHANNELS={name:"channels",video:!1,valid:2,Vn:99},JJ.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Vn:"invalidformat"},JJ.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Vn:"nope"},JJ.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Vn:"av99.0.05M.08"},JJ.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Vn:"invalid"},JJ.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",Vn:"false"},JJ);var UXd=["h","H"],CN3=["9","("],zH7=["9h","(h"],OJs=["8","*"],LsU=["a","A"],MkF=["o","O"],w1i=["m","M"],RH7=["mac3","MAC3"],PNc=["meac3","MEAC3"],om={},DBH=(om.h=UXd,om.H=UXd,om["9"]=CN3,om["("]=CN3,om["9h"]=zH7,om["(h"]=zH7,om["8"]=OJs,om["*"]=OJs,om.a=LsU,om.A=LsU,om.o=MkF,om.O=MkF,om.m=w1i,om.M=w1i,om.mac3=RH7,om.MAC3=RH7,om.meac3=PNc,om.MEAC3=PNc,om),NK3=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),JHx=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var G={},pi=(G["0"]="f",G["160"]="h",G["133"]="h",G["134"]="h",G["135"]="h",G["136"]="h",G["137"]="h",G["264"]="h",G["266"]="h",G["138"]="h",G["298"]="h",G["299"]="h",G["304"]="h",G["305"]="h",G["214"]="h",G["216"]="h",G["374"]="h",G["375"]="h",G["140"]="a",G["141"]="a",G["327"]="sa",G["258"]="m",G["380"]="mac3",G["328"]="meac3",G["161"]="H",G["142"]="H",G["143"]="H",G["144"]="H",G["222"]="H",G["223"]="H",G["145"]="H",G["224"]="H",G["225"]="H",G["146"]="H",G["226"]="H",G["227"]="H",G["147"]="H",G["384"]= "H",G["376"]="H",G["385"]="H",G["377"]="H",G["149"]="A",G["261"]="M",G["381"]="MAC3",G["329"]="MEAC3",G["598"]="9",G["278"]="9",G["242"]="9",G["243"]="9",G["244"]="9",G["775"]="9",G["776"]="9",G["777"]="9",G["778"]="9",G["779"]="9",G["780"]="9",G["781"]="9",G["782"]="9",G["783"]="9",G["247"]="9",G["248"]="9",G["353"]="9",G["355"]="9",G["356"]="9",G["271"]="9",G["577"]="9",G["313"]="9",G["579"]="9",G["272"]="9",G["302"]="9",G["303"]="9",G["407"]="9",G["408"]="9",G["308"]="9",G["315"]="9",G["330"]= "9h",G["331"]="9h",G["332"]="9h",G["333"]="9h",G["334"]="9h",G["335"]="9h",G["336"]="9h",G["337"]="9h",G["338"]="so",G["600"]="o",G["250"]="o",G["251"]="o",G["774"]="o",G["194"]="*",G["195"]="*",G["220"]="*",G["221"]="*",G["196"]="*",G["197"]="*",G["279"]="(",G["280"]="(",G["317"]="(",G["318"]="(",G["273"]="(",G["274"]="(",G["357"]="(",G["358"]="(",G["275"]="(",G["359"]="(",G["360"]="(",G["276"]="(",G["583"]="(",G["584"]="(",G["314"]="(",G["585"]="(",G["561"]="(",G["277"]="(",G["361"]="(h",G["362"]= "(h",G["363"]="(h",G["364"]="(h",G["365"]="(h",G["366"]="(h",G["591"]="(h",G["592"]="(h",G["367"]="(h",G["586"]="(h",G["587"]="(h",G["368"]="(h",G["588"]="(h",G["562"]="(h",G["409"]="(",G["410"]="(",G["411"]="(",G["412"]="(",G["557"]="(",G["558"]="(",G["394"]="1",G["395"]="1",G["396"]="1",G["397"]="1",G["398"]="1",G["399"]="1",G["720"]="1",G["721"]="1",G["400"]="1",G["401"]="1",G["571"]="1",G["402"]="1",G["694"]="1h",G["695"]="1h",G["696"]="1h",G["697"]="1h",G["698"]="1h",G["699"]="1h",G["700"]="1h", G["701"]="1h",G["702"]="1h",G["703"]="1h",G["386"]="3",G["387"]="w",G["406"]="6",G["787"]="1",G["788"]="1",G["548"]="1e",G["549"]="1e",G["550"]="1e",G["551"]="1e",G["809"]="1e",G["810"]="1e",G["552"]="1e",G["811"]="1e",G["812"]="1e",G["553"]="1e",G["813"]="1e",G["814"]="1e",G["554"]="1e",G["815"]="1e",G["816"]="1e",G["555"]="1e",G["817"]="1e",G["818"]="1e",G["572"]="1e",G["556"]="1e",G["645"]="(",G["646"]="(",G["647"]="(",G["648"]="(",G["649"]="(",G["650"]="(",G["651"]="(",G["652"]="(",G["653"]="(", G["654"]="(",G["655"]="(",G["656"]="(",G["657"]="(",G["658"]="(",G["659"]="(",G["660"]="(",G["661"]="(",G["662"]="(",G["663"]="(",G["664"]="(",G["665"]="(",G["666"]="(",G["667"]="(",G["668"]="(",G["669"]="(",G["670"]="(",G["671"]="(",G["672"]="(",G["673"]="(",G["674"]="(h",G["675"]="(h",G["676"]="(h",G["677"]="(h",G["678"]="(h",G["679"]="(h",G["680"]="(h",G["681"]="(h",G["682"]="(h",G["683"]="(h",G["684"]="(h",G["685"]="(h",G["686"]="(h",G["687"]="(h",G["688"]="A",G["689"]="A",G["690"]="A",G["691"]= "MEAC3",G["773"]="i",G["806"]="I",G["805"]="I",G["829"]="9",G["830"]="9",G["831"]="9",G["832"]="9",G["833"]="9",G["834"]="9",G["835"]="9",G["836"]="9",G["892"]="9",G["893"]="9",G["837"]="9",G["838"]="9",G["839"]="9",G["840"]="9",G["841"]="(",G["842"]="(",G["843"]="(",G["844"]="(",G["845"]="(",G["846"]="(",G["847"]="(",G["848"]="(",G["894"]="(",G["895"]="(",G["849"]="(",G["850"]="(",G["851"]="(",G["852"]="(",G["865"]="9",G["866"]="9",G["867"]="9",G["868"]="9",G["869"]="9",G["870"]="9",G["871"]="9", G["872"]="9",G["896"]="9",G["897"]="9",G["873"]="9",G["874"]="9",G["875"]="9",G["876"]="9",G["877"]="(",G["878"]="(",G["879"]="(",G["880"]="(",G["881"]="(",G["882"]="(",G["883"]="(",G["884"]="(",G["898"]="(",G["899"]="(",G["885"]="(",G["886"]="(",G["887"]="(",G["888"]="(",G["900"]="2",G["901"]="2",G["902"]="2",G["903"]="2",G["904"]="2",G["905"]="2",G["906"]="2",G["907"]="2",G["908"]="2",G);var HV={},WWx=(HV.STEREO_LAYOUT_UNKNOWN=0,HV.STEREO_LAYOUT_LEFT_RIGHT=1,HV.STEREO_LAYOUT_TOP_BOTTOM=2,HV);var EZ2={KK1:0,nS0:124,ESv:144,hsm:220,OHm:240,HH7:340,Ag5:360,Vd1:480,IKG:588,esv:608,cgf:720,o8e:740,GJr:1080,Zbf:1100,Sif:1440,jfm:2160,sqr: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 bM,Hh,BV,SDd;bM={};g.jt=(bM.auto=0,bM.tiny=144,bM.light=144,bM.small=240,bM.medium=360,bM.large=480,bM.hd720=720,bM.hd1080=1080,bM.hd1440=1440,bM.hd2160=2160,bM.hd2880=2880,bM.highres=4320,bM);Hh={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};BV={}; SDd=(BV.QUALITY_ORDINAL_UNKNOWN=0,BV.QUALITY_ORDINAL_144P_SAVER=124,BV.QUALITY_ORDINAL_144P=144,BV.QUALITY_ORDINAL_240P_SAVER=220,BV.QUALITY_ORDINAL_240P=240,BV.QUALITY_ORDINAL_360P_SAVER=340,BV.QUALITY_ORDINAL_360P=360,BV.QUALITY_ORDINAL_480P=480,BV.QUALITY_ORDINAL_608P_SAVER=588,BV.QUALITY_ORDINAL_608P=608,BV.QUALITY_ORDINAL_720P=720,BV.QUALITY_ORDINAL_720P_ENHANCED=740,BV.QUALITY_ORDINAL_1080P=1080,BV.QUALITY_ORDINAL_1080P_ENHANCED=1100,BV.QUALITY_ORDINAL_1440P=1440,BV.QUALITY_ORDINAL_2160P=2160, BV.QUALITY_ORDINAL_HIGHRES=9999,BV);var QP="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");St.prototype.isHdr=function(){return this.V==="smpte2084"||this.V==="arib-std-b67"};et.prototype.GO=function(){return this.containerType===2}; et.prototype.isEncrypted=function(){return!!this.YJ}; et.prototype.Ee=function(){return!!this.audio}; et.prototype.ji=function(){return!!this.video}; var VP=!1;g.N(rA,g.FM);g.R=rA.prototype;g.R.appendBuffer=function(y,t,a){if(this.ER.e6()!==this.appendWindowStart+this.start||this.ER.td()!==this.appendWindowEnd+this.start||this.ER.fJ()!==this.timestampOffset+this.start)this.ER.supports(1),this.ER.LP(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.ER.NN(this.timestampOffset+this.start);this.ER.appendBuffer(y,t,a)}; g.R.abort=function(){this.ER.abort()}; g.R.remove=function(y,t){this.ER.remove(y+this.start,t+this.start)}; g.R.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.R.clear=function(){this.ER.clear()}; g.R.LP=function(y,t){this.appendWindowStart=y;this.appendWindowEnd=t}; g.R.xL=function(){return this.timestampOffset+this.start}; g.R.e6=function(){return this.appendWindowStart}; g.R.td=function(){return this.appendWindowEnd}; g.R.NN=function(y){this.timestampOffset=y}; g.R.fJ=function(){return this.timestampOffset}; g.R.Ro=function(y){y=this.ER.Ro(y===void 0?!1:y);return ac(y,this.start,this.end)}; g.R.s6=function(){return this.ER.s6()}; g.R.e3=function(){return this.ER.e3()}; g.R.cG=function(){return this.ER.cG()}; g.R.IU=function(){return this.ER.IU()}; g.R.iL=function(){this.ER.iL()}; g.R.iA=function(y){return this.ER.iA(y)}; g.R.B7=function(){return this.ER.B7()}; g.R.pQ=function(){return this.ER.pQ()}; g.R.QL=function(y,t,a){this.ER.QL(y,t,a)}; g.R.U1=function(y,t,a){this.ER.U1(y,t,a)}; g.R.Tn=function(y,t){return this.ER.Tn(y,t)}; g.R.supports=function(y){return this.ER.supports(y)}; g.R.WI=function(){return this.ER.WI()}; g.R.isView=function(){return!0}; g.R.U2=function(){return this.ER.U2()?this.isActive:!1}; g.R.isLocked=function(){return this.jM&&!this.isActive}; g.R.Tl=function(y){y=this.ER.Tl(y);y.vw=this.start+"-"+this.end;return y}; g.R.Xr=function(){return this.ER.Xr()}; g.R.i4=function(){return this.ER.i4()}; g.R.oz=function(){return this.ER.oz()}; g.R.I5=function(){this.ER.y3(this.S0);g.FM.prototype.I5.call(this)};var YF=!1;g.N(hu,g.FM);g.R=hu.prototype;g.R.appendBuffer=function(y,t,a){this.v_=!1;a&&(this.cq=a);if(y.length){var r;((r=this.wN)==null?0:r.appendBuffer)?this.wN.appendBuffer(y):this.wN?this.wN.append(y):this.iq&&this.iq.webkitSourceAppend(this.id,y)}t&&(t.isEncrypted()&&(this.qe=this.cq),t.type===3&&(this.lx=t),this.In.push(t.iJ()),this.In.length>4&&this.In.shift());this.qL&&(this.qL.length>=2||y.length>1048576?delete this.qL:this.qL.push(y))}; g.R.abort=function(){try{this.wN?this.wN.abort():this.iq&&this.iq.webkitSourceAbort(this.id)}catch(t){if(cJF){var y=new g.RV("Error while abort the source buffer: "+t.name+", "+t.message);g.pK(y)}}this.cq=this.lx=null}; g.R.remove=function(y,t,a){this.v_=!1;var r;if((r=this.wN)==null?0:r.remove)a&&a({b:Ki(this.Ro()),s:y,e:t}),this.wN.remove(y,t)}; g.R.removeAll=function(){this.remove(this.e6(),this.td())}; g.R.clear=function(){this.cG()||(this.abort(),this.removeAll(),this.qe=this.cq=this.lx=null,this.appendWindowStart=this.timestampOffset=0,this.Yd=iH([],[]),this.v_=!1,this.qL=EK?[]:void 0,this.f5=!0)}; g.R.e6=function(){if(YF&&this.ji)return this.appendWindowStart;var y;return((y=this.wN)==null?void 0:y.appendWindowStart)||0}; g.R.td=function(){var y;return((y=this.wN)==null?void 0:y.appendWindowEnd)||0}; g.R.LP=function(y,t){this.wN&&(YF&&this.ji?(this.appendWindowStart=y,this.wN.appendWindowEnd=t):y>this.e6()?(this.wN.appendWindowEnd=t,this.wN.appendWindowStart=y):(this.wN.appendWindowStart=y,this.wN.appendWindowEnd=t))}; g.R.xL=function(){return this.timestampOffset}; g.R.NN=function(y){YF?this.timestampOffset=y:this.supports(1)&&(this.wN.timestampOffset=y)}; g.R.fJ=function(){return YF?this.timestampOffset:this.supports(1)?this.wN.timestampOffset:0}; g.R.Ro=function(y){if(y===void 0?0:y)return this.v_||this.s6()||(this.Yd=this.Ro(!1),this.v_=!0),this.Yd;try{return this.wN?this.wN.buffered:this.iq?this.iq.webkitSourceBuffered(this.id):iH([0],[Infinity])}catch(t){return iH([],[])}}; g.R.s6=function(){var y;return((y=this.wN)==null?void 0:y.updating)||!1}; g.R.cG=function(){return this.f5}; g.R.IU=function(){return!this.f5&&this.s6()}; g.R.iL=function(){this.f5=!1}; g.R.iA=function(y){var t=y==null?void 0:y.G7;y=y==null?void 0:y.containerType;return!t&&!y||t===this.G7&&y===this.containerType}; g.R.B7=function(){return this.cq}; g.R.pQ=function(){return this.qe}; g.R.Tn=function(y,t){return this.containerType!==y||this.G7!==t}; g.R.QL=function(y,t,a){if(this.containerType!==y||a&&this.Tn(y,a))this.supports(4),Fv()&&this.wN.changeType(t),a&&(this.G7=a);this.containerType=y}; g.R.U1=function(y,t,a){this.containerType&&this.Tn(y,t)&&Fv()&&this.wN.changeType(a);this.containerType=y;this.G7=t}; g.R.WI=function(){return this.lx}; g.R.isView=function(){return!1}; g.R.supports=function(y){switch(y){case 1:var t;return((t=this.wN)==null?void 0:t.timestampOffset)!==void 0;case 0:var a;return!((a=this.wN)==null||!a.appendBuffer);case 2:var r;return!((r=this.wN)==null||!r.remove);case 3:var E,h;return!!(((E=this.wN)==null?0:E.addEventListener)&&((h=this.wN)==null?0:h.removeEventListener));case 4:return!(!this.wN||!this.wN.changeType);default:return!1}}; g.R.U2=function(){return!this.s6()}; g.R.isLocked=function(){return!1}; g.R.Tl=function(y){y.to=this.fJ();y.up=this.s6();var t,a=((t=this.wN)==null?void 0:t.appendWindowStart)||0,r;t=((r=this.wN)==null?void 0:r.appendWindowEnd)||Infinity;y.aw=a.toFixed(3)+"-"+t.toFixed(3);return y}; g.R.e3=function(){var y;return((y=this.wN)==null?void 0:y.writeHead)||0}; g.R.Xr=function(){for(var y={},t=0;t=7&&(!t||((r=this.Om)==null?0:r.B("mweb_ios_allow_playback_workaround_when_ready")))&&ZKF(this,function(){g.Nt(function(){wmx(y,y.getCurrentTime(),0)},500)})}return t}; g.R.kS=function(y,t,a){var r;((r=this.Om)==null?0:r.Bb())&&this.Om.H4(y,t,a===void 0?!1:a)}; g.R.jL=function(y){this.Om=y}; g.R.PK=function(){return tu(this.FC(),this.getCurrentTime())}; g.R.seekTo=function(y){this.xj()>0&&(pc&&n3<4&&(y=Math.max(.1,y)),this.setCurrentTime(y))}; g.R.BW=function(y){if(this.xj()===0||this.hasError())return!1;var t=this.getCurrentTime()>0;if(y>=0){var a=this.pH();if(a.length||!t)return TM(a,y)}return t}; g.R.TH=function(){if(!this.Y&&this.tF)if(this.tF.J)try{var y;this.kS("rms",{l:"mer",sr:(y=this.Om)==null?void 0:y.xn(),rs:zy(this.tF)});this.tF.clear();this.Zd(this.tF);this.tF=void 0}catch(t){y=new g.RV("Error while clearing Media Source in MediaElement: "+t.name+", "+t.message),g.pK(y),this.stopVideo()}else this.stopVideo()}; g.R.stopVideo=function(){var y=this;if(!this.Y){var t;(t=this.tF)==null||L8(t);if(oA7){if(!this.W){var a=new M2;a.then(void 0,function(){}); this.W=a;HSV&&this.pause();g.Nt(function(){y.W===a&&(Rc(y),a.resolve())},200)}}else Rc(this)}}; g.R.aY=function(){var y=this.FC();return yX(y)&&this.getDuration()?GM(y,this.getCurrentTime()):0}; g.R.F2=function(){var y=this.FC();return yX(y)&&this.getDuration()?y.end(y.length-1):0}; g.R.uc=function(){var y=this.getDuration();return y===Infinity?1:y?this.aY()/y:0}; g.R.Tl=function(){try{var y=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Ki(this.bU(),",",3),vbu:Ki(this.FC()),vbs:Ki(this.pH()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.xj(),vns:""+this.Zp(),vec:""+this.Jl(),vemsg:this.xT(),vvol:""+this.getVolume(),vdom:""+ +this.S6(),vsrc:""+ +!!this.wH(),vw:""+y.width,vh:""+y.height}}catch(t){return{}}}; g.R.cW=function(){return this.Jl()===4}; g.R.hasError=function(){return this.Jl()>0}; g.R.ZI=function(){switch(this.Jl()){case 2:return"progressive.net.retryexhausted";case 3:var y=this.xT();return(y==null?0:y.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||B37&&(y==null?0:y.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.R.addEventListener=function(y,t){this.hF.listen(y,t,!1,this);this.So(y)}; g.R.removeEventListener=function(y,t){this.hF.Dh(y,t,!1,this)}; g.R.dispatchEvent=function(y){if(this.W&&y.type==="pause")return!1;if(bSd){var t,a=((t=y.V)==null?void 0:t.timeStamp)||Infinity;t=a>performance.now()?a-Date.now()+performance.now():a;a=this.Y||this.tF;if((a==null?0:a.cG())||t<=((a==null?void 0:a.D)||0)){var r;this.kS("rms",{l:"mede",sr:(r=this.Om)==null?void 0:r.xn(),et:y.type});return!1}if(this.Vf)return this.kS("rms",{l:"medes",et:y.type}),a&&y.type==="seeking"&&(a.D=performance.now(),this.Vf=!1),!1}return this.hF.dispatchEvent(y)}; g.R.eT=function(){this.o5=!1}; g.R.hd=function(){this.o5=!0;this.aX(!0)}; g.R.AA=function(){this.o5&&!this.GD()&&this.aX(!0)}; g.R.equals=function(y){return!!y&&y.YE()===this.YE()}; g.R.I5=function(){this.DE&&this.removeEventListener("volumechange",this.AA);oA7&&Rc(this);g.H.prototype.I5.call(this)}; var oA7=!1,HSV=!1,bSd=!1,B37=!1;g.R=g.PY.prototype;g.R.isPaused=function(){return g.D(this,4)}; g.R.isPlaying=function(){return g.D(this,8)&&!g.D(this,512)&&!g.D(this,64)&&!g.D(this,2)}; g.R.isOrWillBePlaying=function(){return g.D(this,8)&&!g.D(this,2)&&!g.D(this,1024)}; g.R.isCued=function(){return g.D(this,64)&&!g.D(this,8)&&!g.D(this,4)}; g.R.isBuffering=function(){return g.D(this,1)&&!g.D(this,2)}; g.R.isError=function(){return g.D(this,128)}; g.R.isSuspended=function(){return g.D(this,512)}; g.R.KB=function(){return g.D(this,64)&&g.D(this,4)}; g.R.toString=function(){return"PSt."+this.state.toString(16)}; var cV={},qd=(cV.BUFFERING="buffering-mode",cV.CUED="cued-mode",cV.ENDED="ended-mode",cV.PAUSED="paused-mode",cV.PLAYING="playing-mode",cV.SEEKING="seeking-mode",cV.UNSTARTED="unstarted-mode",cV);g.N(vY,g.H);g.R=vY.prototype;g.R.Sz=function(){return this.slot}; g.R.Em=function(){return this.layout}; g.R.init=function(){var y=Yb(this.layout.clientMetadata,"metadata_type_video_length_seconds"),t=Yb(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");xL(this.layout.ez)&&G7(this.KJ.get(),this.layout.layoutId,{PA:t,SM:y,listener:this});eoz(this.Um.get(),this);this.di()}; g.R.d2=function(){}; g.R.release=function(){xL(this.layout.ez)&&ZU(this.KJ.get(),this.layout.layoutId);l6V(this.Um.get(),this);this.eX()}; g.R.XV=function(){}; g.R.zP=function(){}; g.R.startRendering=function(y){if(y.layoutId!==this.layout.layoutId){this.Wp.p_(this.slot,y,new cl("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 t=!1}else t=!0;t&&(this.OR="rendering_start_requested",this.xW(-1),this.UA(y),this.zN(!1))}; g.R.e_=function(y,t){if(t.layoutId===this.layout.layoutId){this.OR="rendering";this.V=this.v4.get().isMuted()||this.v4.get().getVolume()===0;this.uY("impression");this.uY("start");if(this.v4.get().isMuted()){eL(this,"mute");var a;y=((a=QX(this))==null?void 0:a.muteCommands)||[];pF(this.a7.get(),y,this.layout.layoutId)}if(this.v4.get().isFullscreen()){this.JV("fullscreen");var r;a=((r=QX(this))==null?void 0:r.fullscreenCommands)||[];pF(this.a7.get(),a,this.layout.layoutId)}r=this.mJ.get();r.Y&&!r.K&& (r.L=!1,r.K=!0,r.actionType!=="ad_to_video"&&(nM("pbs",void 0,r.actionType),g.WE("finalize_all_timelines")&&VZ1(r.actionType)));this.xW(1);this.S4(t);var E;t=((E=QX(this))==null?void 0:E.impressionCommands)||[];pF(this.a7.get(),t,this.layout.layoutId)}}; g.R.xa=function(y,t,a){this.L={RF:3,GQ:y==="load_timeout"?402:400,errorMessage:t.message};this.uY("error");var r;y=((r=QX(this))==null?void 0:r.errorCommands)||[];pF(this.a7.get(),y,this.layout.layoutId);this.Wp.p_(this.slot,this.layout,t,a)}; g.R.uS=function(){if(this.OR==="rendering"){eL(this,"pause");var y,t=((y=QX(this))==null?void 0:y.pauseCommands)||[];pF(this.a7.get(),t,this.layout.layoutId);this.xW(2)}}; g.R.bS=function(){if(this.OR==="rendering"){eL(this,"resume");var y,t=((y=QX(this))==null?void 0:y.resumeCommands)||[];pF(this.a7.get(),t,this.layout.layoutId)}}; g.R.h7=function(y,t){t=t===void 0?!1:t;if(this.OR==="rendering"){MA(this.Xf,y*1E3,t);this.V||MA(this.Xf,y*1E3,t===void 0?!1:t);var a=this.R2();a&&(a/=1E3,(y>=a*.25||t)&&this.uY("first_quartile"),(y>=a*.5||t)&&this.uY("midpoint"),(y>=a*.75||t)&&this.uY("third_quartile"),this.YG.get().C.G().experiments.Nr("enable_progress_command_flush_on_kabuki")?js(this.K,y*1E3,t):js(this.K,y*1E3,Sgu(this)?t:!1))}}; g.R.fF=function(){var y;return((y=t0(this.B4.get(),1))==null?void 0:y.clientPlaybackNonce)||""}; g.R.BX=function(y,t){y.layoutId!==this.layout.layoutId?this.Wp.p_(this.slot,y,new cl("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"):t()}; g.R.Ju=function(y,t,a){if(t.layoutId===this.layout.layoutId)switch(this.OR="not_rendering",this.layoutExitReason=void 0,(y=a!=="normal"||this.position+1===this.D)&&this.zN(y),this.lS(a),this.xW(0),a){case "abandoned":if(wT(this.Xf,"impression")){var r,E=((r=QX(this))==null?void 0:r.abandonCommands)||[];pF(this.a7.get(),E,this.layout.layoutId)}break;case "normal":r=((E=QX(this))==null?void 0:E.completeCommands)||[];pF(this.a7.get(),r,this.layout.layoutId);break;case "skipped":var h;r=((h=QX(this))== null?void 0:h.skipCommands)||[];pF(this.a7.get(),r,this.layout.layoutId)}}; g.R.dB=function(){return this.layout.layoutId}; g.R.Ma=function(){return this.L}; g.R.kH=function(){if(this.OR==="rendering"){this.Xf.uY("active_view_measurable");var y,t=((y=QX(this))==null?void 0:y.activeViewMeasurableCommands)||[];pF(this.a7.get(),t,this.layout.layoutId)}}; g.R.Mm=function(){if(this.OR==="rendering"){this.Xf.uY("active_view_fully_viewable_audible_half_duration");var y,t=((y=QX(this))==null?void 0:y.activeViewFullyViewableAudibleHalfDurationCommands)||[];pF(this.a7.get(),t,this.layout.layoutId)}}; g.R.BT=function(){if(this.OR==="rendering"){this.Xf.uY("active_view_viewable");var y,t=((y=QX(this))==null?void 0:y.activeViewViewableCommands)||[];pF(this.a7.get(),t,this.layout.layoutId)}}; g.R.yT=function(){if(this.OR==="rendering"){this.Xf.uY("audio_audible");var y,t=((y=QX(this))==null?void 0:y.activeViewAudioAudibleCommands)||[];pF(this.a7.get(),t,this.layout.layoutId)}}; g.R.qm=function(){if(this.OR==="rendering"){this.Xf.uY("audio_measurable");var y,t=((y=QX(this))==null?void 0:y.activeViewAudioMeasurableCommands)||[];pF(this.a7.get(),t,this.layout.layoutId)}}; g.R.zN=function(y){this.mJ.get().zN(Yb(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,y,this.position,this.D,!1)}; g.R.onFullscreenToggled=function(y){if(this.OR==="rendering")if(y){this.JV("fullscreen");var t,a=((t=QX(this))==null?void 0:t.fullscreenCommands)||[];pF(this.a7.get(),a,this.layout.layoutId)}else this.JV("end_fullscreen"),t=((a=QX(this))==null?void 0:a.endFullscreenCommands)||[],pF(this.a7.get(),t,this.layout.layoutId)}; g.R.onVolumeChange=function(){if(this.OR==="rendering")if(this.v4.get().isMuted()){eL(this,"mute");var y,t=((y=QX(this))==null?void 0:y.muteCommands)||[];pF(this.a7.get(),t,this.layout.layoutId)}else eL(this,"unmute"),y=((t=QX(this))==null?void 0:t.unmuteCommands)||[],pF(this.a7.get(),y,this.layout.layoutId)}; g.R.A9=function(){}; g.R.J1=function(){}; g.R.CL=function(){}; g.R.Be=function(){}; g.R.fL=function(){}; g.R.JV=function(y){this.Xf.JV(y,!this.V)}; g.R.uY=function(y){this.Xf.uY(y,!this.V)};g.N(uT,vY);g.R=uT.prototype;g.R.di=function(){}; g.R.eX=function(){var y=this.Um.get();y.K9===this&&(y.K9=null);this.timer.stop()}; g.R.XV=function(){this.timer.stop();vY.prototype.uS.call(this)}; g.R.zP=function(){Qa7(this);vY.prototype.bS.call(this)}; g.R.R2=function(){return Yb(this.Em().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.R.K0=function(y,t){var a=this;this.BX(y,function(){a.OR!=="rendering_stop_requested"&&(a.OR="rendering_stop_requested",a.layoutExitReason=t,Xm7(a,t),a.timer.stop())})}; g.R.QD=function(){var y=Date.now(),t=y-this.BD;this.BD=y;this.Kx+=t;this.Kx>=this.R2()?(this.Kx=this.R2(),this.h7(this.Kx/1E3,!0),VX(this,this.Kx),this.yd()):(this.h7(this.Kx/1E3),VX(this,this.Kx))}; g.R.n$=function(y){if(this.OR!=="not_rendering"){y=kz1(this,y);var t=this.v4.get().getPresentingPlayerType()===2;this.OR==="rendering_start_requested"?t&&Tk(y)&&this.WV():t?g.Og(y,2)?Ug("Receive player ended event during MediaBreak",this.Sz(),this.Em()):fkn(this,y):this.rB()}}; g.R.UA=function(){WZ7(this);blF(this.v4.get());this.Um.get().K9=this;uy("pbp")||uy("pbs")||nM("pbp");uy("pbp","watch")||uy("pbs","watch")||nM("pbp",void 0,"watch");this.WV()}; g.R.S4=function(y){this.mJ.get();var t=Yb(y.clientMetadata,"metadata_type_ad_placement_config").kind,a=this.position===0;y=Yb(y.clientMetadata,"metadata_type_linked_in_player_layout_type");y={adBreakType:p8(t),adType:CUu(y)};var r=void 0;a?t!=="AD_PLACEMENT_KIND_START"&&(r="video_to_ad"):r="ad_to_ad";pM("ad_mbs",void 0,r);g.eW(y,r);Qa7(this)}; g.R.rB=function(){this.yd()}; g.R.lS=function(){}; g.R.rW=function(){};g.N(Ju,vY);g.R=Ju.prototype;g.R.rB=function(){this.yd()}; g.R.n$=function(y){this.Cp(y)}; g.R.di=function(){Yb(this.Em().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Yb(this.Em().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.R.eX=function(){Yb(this.Em().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.T5&&this.KM.get().removeCueRange(this.T5);this.T5=void 0;var y;(y=this.EH)==null||y.dispose();this.Nd&&this.Nd.dispose()}; g.R.UA=function(y){var t=Yb(y.clientMetadata,"metadata_type_ad_placement_config");t=n8(this.YG.get(),t);var a=mq(this.YG.get());if(t&&a){a=Yb(y.clientMetadata,"metadata_type_preload_player_vars");var r=this.YG.get();r=g.Gw(r.C.G().experiments,"html5_preload_wait_time_secs");a&&this.Nd&&this.Nd.start(r*1E3)}a=Yb(y.clientMetadata,"metadata_type_ad_video_id");r=Yb(y.clientMetadata,"metadata_type_legacy_info_card_vast_extension");a&&r&&this.ys.get().C.G().Ff.add(a,{M6:r});(a=Yb(y.clientMetadata,"metadata_type_sodar_extension_data"))&& cVx(this.qD.get(),a);B5d(this.v4.get(),!1);WZ7(this);t?(a=this.BO.get(),y=Yb(y.clientMetadata,"metadata_type_player_vars"),a.C.loadVideoByPlayerVars(y,!1,2)):EN7(this.BO.get(),Yb(y.clientMetadata,"metadata_type_player_vars"));var E;(E=this.EH)==null||E.start();t||this.BO.get().C.playVideo(2)}; g.R.S4=function(){var y;(y=this.EH)==null||y.stop();this.wg();(this.adCpn=dT7(this))||Ug("Media layout confirmed started, but ad CPN not set.");this.X7.get().Zx("onAdStart",this.adCpn);this.Dw=Date.now()}; g.R.R2=function(){var y;return(y=t0(this.B4.get(),2))==null?void 0:y.r$}; g.R.Mt=function(){this.Xf.JV("clickthrough")}; g.R.K0=function(y,t){var a=this;this.BX(y,function(){if(a.OR!=="rendering_stop_requested"){a.OR="rendering_stop_requested";a.layoutExitReason=t;Xm7(a,t);var r;(r=a.EH)==null||r.stop();a.Nd&&a.Nd.stop();B5d(a.v4.get(),!0);var E;((E=a.shrunkenPlayerBytesConfig)==null?0:E.shouldRequestShrunkenPlayerBytes)&&a.v4.get().a_(!1)}})}; g.R.onCueRangeEnter=function(y){y!==this.T5?Ug("Received CueRangeEnter signal for unknown layout.",this.Sz(),this.Em(),{cueRangeId:y}):(this.KM.get().removeCueRange(this.T5),this.T5=void 0,y=Yb(this.Em().clientMetadata,"metadata_type_video_length_seconds"),this.h7(y,!0),this.uY("complete"))}; g.R.lS=function(y){y!=="abandoned"&&this.X7.get().Zx("onAdComplete");this.X7.get().Zx("onAdEnd",this.adCpn)}; g.R.wg=function(){this.T5="adcompletioncuerange:"+this.Em().layoutId;this.KM.get().addCueRange(this.T5,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}; g.R.onCueRangeExit=function(){}; g.R.rW=function(y){this.OR==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&y>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.v4.get().a_(!0),this.h7(y))}; g.R.h7=function(y,t){vY.prototype.h7.call(this,y,t===void 0?!1:t);t=Date.now()-this.Dw;var a=y*1E3,r={contentCpn:this.fF(),adCpn:dT7(this)};if(y-this.lP>=5){var E=t0&&LF(this.V(),t)}; g.R.CA=function(y){this.L.delete(y.slotId);for(var t=[],a=g.p(this.yW.values()),r=a.next();!r.done;r=a.next()){r=r.value;var E=r.trigger;E instanceof qQ&&E.triggeringSlotId===y.slotId&&t.push(r)}t.length>0&&LF(this.V(),t)}; g.R.qZ=function(y){for(var t=[],a=g.p(this.yW.values()),r=a.next();!r.done;r=a.next()){r=r.value;var E=r.trigger;E instanceof uf&&E.slotType===y.slotType&&E.V!==y.slotId&&t.push(r)}t.length>0&&LF(this.V(),t)}; g.R.Ue=function(y){this.Y.add(y.slotId);for(var t=[],a=g.p(this.yW.values()),r=a.next();!r.done;r=a.next())r=r.value,r.trigger instanceof oS&&y.slotId===r.trigger.triggeringSlotId&&t.push(r);t.length>0&&LF(this.V(),t)}; g.R.L0=function(y){this.Y.delete(y.slotId);this.D.add(y.slotId);for(var t=[],a=g.p(this.yW.values()),r=a.next();!r.done;r=a.next())if(r=r.value,r.trigger instanceof H2)y.slotId===r.trigger.triggeringSlotId&&t.push(r);else if(r.trigger instanceof Xi){var E=r.trigger;y.slotId===E.slotId&&this.K.has(E.triggeringLayoutId)&&t.push(r)}t.length>0&&LF(this.V(),t)}; g.R.MZ=function(y){for(var t=[],a=g.p(this.yW.values()),r=a.next();!r.done;r=a.next())r=r.value,r.trigger instanceof bf&&y.slotId===r.trigger.triggeringSlotId&&t.push(r);t.length>0&&LF(this.V(),t)}; g.R.kX=function(y){for(var t=[],a=g.p(this.yW.values()),r=a.next();!r.done;r=a.next())r=r.value,r.trigger instanceof B2&&y.slotId===r.trigger.triggeringSlotId&&t.push(r);t.length>0&&LF(this.V(),t)}; g.R.YX=function(y,t){this.J.add(t.layoutId)}; g.R.zv=function(y,t){this.J.delete(t.layoutId)}; g.R.e_=function(y,t){this.K.add(t.layoutId);for(var a=[],r=g.p(this.yW.values()),E=r.next();!E.done;E=r.next())if(E=E.value,E.trigger instanceof kw)t.layoutId===E.trigger.triggeringLayoutId&&a.push(E);else if(E.trigger instanceof lf){var h=E.trigger;y.slotType===h.slotType&&t.layoutType===h.layoutType&&t.layoutId!==h.V&&a.push(E)}else E.trigger instanceof Xi&&(h=E.trigger,t.layoutId===h.triggeringLayoutId&&this.D.has(h.slotId)&&a.push(E));a.length>0&&LF(this.V(),a)}; g.R.Ju=function(y,t,a){this.K.delete(t.layoutId);y=[];for(var r=g.p(this.yW.values()),E=r.next();!E.done;E=r.next())if(E=E.value,E.trigger instanceof W2&&t.layoutId===E.trigger.triggeringLayoutId&&y.push(E),E.trigger instanceof fV){var h=E.trigger;t.layoutId===h.triggeringLayoutId&&h.V.includes(a)&&y.push(E)}y.length>0&&LF(this.V(),y)}; g.R.X3=function(){}; g.R.Jw=function(){this.D.clear()}; g.R.KI=function(){};g.N(fq,g.H);fq.prototype.TZ=function(y,t,a,r){if(this.yW.has(t.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(t instanceof NQ))throw new I("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in CloseRequestedTriggerAdapter");this.yW.set(t.triggerId,new gh(y,t,a,r))}; fq.prototype.Sq=function(y){this.yW.delete(y.triggerId)};g.N(jB,g.H);jB.prototype.TZ=function(y,t,a,r){if(this.yW.has(t.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(t instanceof P2||t instanceof nV))throw new I("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.yW.set(t.triggerId,new gh(y,t,a,r))}; jB.prototype.Sq=function(y){this.yW.delete(y.triggerId)}; jB.prototype.Jw=function(y){for(var t=[],a=t.push,r=a.apply,E=[],h=g.p(this.yW.values()),F=h.next();!F.done;F=h.next())F=F.value,F.trigger instanceof P2&&F.trigger.L4===y&&E.push(F);r.call(a,t,g.i7(E));a=t.push;r=a.apply;E=[];h=g.p(this.yW.values());for(F=h.next();!F.done;F=h.next())F=F.value,F.trigger instanceof nV&&F.trigger.V!==y&&E.push(F);r.call(a,t,g.i7(E));t.length&&LF(this.V(),t)}; jB.prototype.KI=function(y){for(var t=[],a=t.push,r=a.apply,E=[],h=g.p(this.yW.values()),F=h.next();!F.done;F=h.next()){F=F.value;var x=F.trigger;x instanceof nV&&x.V===y&&E.push(F)}r.call(a,t,g.i7(E));t.length&&LF(this.V(),t)};g.N(SB,g.H);g.R=SB.prototype;g.R.TZ=function(y,t,a,r){if(this.yW.has(t.triggerId))throw new I("Tried to register duplicate trigger for slot.");var E="adtriggercuerange:"+t.triggerId;if(t instanceof pV)a1y(this,y,t,a,r,E,t.V.start,t.V.end,t.L4,t.visible);else if(t instanceof dh)a1y(this,y,t,a,r,E,0x7ffffffffffff,0x8000000000000,t.L4,t.visible);else throw new I("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in CueRangeTriggerAdapter");}; g.R.Sq=function(y){var t=this.yW.get(y.triggerId);t&&this.KM.get().removeCueRange(t.cueRangeId);this.yW.delete(y.triggerId)}; g.R.onCueRangeEnter=function(y){if(y=rp7(this,y))if(y=this.yW.get(y))if(g.D(T7(this.v4.get()),32))this.V.add(y.cueRangeId);else{var t=y==null?void 0:y.Nc.trigger;(t instanceof pV||t instanceof dh)&&LF(this.K(),[y.Nc])}}; g.R.onCueRangeExit=function(y){(y=rp7(this,y))&&(y=this.yW.get(y))&&this.V.delete(y.cueRangeId)}; g.R.n$=function(y){if(zz(y,16)<0){y=g.p(this.V);for(var t=y.next();!t.done;t=y.next())this.onCueRangeEnter(t.value,!0);this.V.clear()}}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.e_=function(){}; g.R.Ju=function(){}; g.R.X3=function(){}; g.R.rW=function(){}; g.R.onFullscreenToggled=function(){}; g.R.A9=function(){}; g.R.J1=function(){}; g.R.CL=function(){}; g.R.onVolumeChange=function(){}; g.R.Be=function(){}; g.R.fL=function(){};g.N(Q7,g.H); Q7.prototype.TZ=function(y,t,a,r){if(this.K.has(t.triggerId)||this.Y.has(t.triggerId))throw new I("Tried to re-register the trigger.");y=new gh(y,t,a,r);if(y.trigger instanceof v2)this.K.set(y.trigger.triggerId,y);else if(y.trigger instanceof jX)this.Y.set(y.trigger.triggerId,y);else throw new I("Incorrect TriggerType: Tried to register trigger of type "+y.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.K.has(y.trigger.triggerId)&&y.slot.slotId===this.V&&LF(this.D(),[y])}; Q7.prototype.Sq=function(y){this.K.delete(y.triggerId);this.Y.delete(y.triggerId)}; Q7.prototype.Tj=function(y){y=y.slotId;if(this.V!==y){var t=[];this.V!=null&&t.push.apply(t,g.i7(Ebu(this.Y,this.V)));y!=null&&t.push.apply(t,g.i7(Ebu(this.K,y)));this.V=y;t.length&&LF(this.D(),t)}};g.N(vZ,g.H);g.R=vZ.prototype;g.R.TZ=function(y,t,a,r){if(this.yW.has(t.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(t instanceof Vm))throw new I("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.yW.set(t.triggerId,new gh(y,t,a,r))}; g.R.Sq=function(y){this.yW.delete(y.triggerId)}; g.R.e_=function(){}; g.R.Ju=function(){}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){};g.N(pq,g.H);g.R=pq.prototype;g.R.X3=function(y,t){for(var a=[],r=g.p(this.yW.values()),E=r.next();!E.done;E=r.next()){E=E.value;var h=E.trigger;h.opportunityType===y&&(h.associatedSlotId&&h.associatedSlotId!==t||a.push(E))}a.length&&LF(this.V(),a)}; g.R.TZ=function(y,t,a,r){if(this.yW.has(t.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(t instanceof YRn))throw new I("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in OpportunityEventTriggerAdapter");this.yW.set(t.triggerId,new gh(y,t,a,r))}; g.R.Sq=function(y){this.yW.delete(y.triggerId)}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.e_=function(){}; g.R.Ju=function(){};g.N(eB,g.H);g.R=eB.prototype;g.R.TZ=function(y,t,a,r){y=new gh(y,t,a,r);if(t instanceof SX||t instanceof eX||t instanceof Qm||t instanceof m3||t instanceof OM2){if(this.yW.has(t.triggerId))throw new I("Tried to register duplicate trigger for slot.");this.yW.set(t.triggerId,y)}else throw new I("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in PrefetchTriggerAdapter");}; g.R.Sq=function(y){this.yW.delete(y.triggerId)}; g.R.Wz=function(y){var t=y.slotFulfillmentTriggers.find(function(a){return a instanceof SX}); t&&(l5(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",t.breakDurationMs,new Set([y.slotId]),!0),Gy(this.Um.get(),"ads_css","sid."+y.slotId+";bd."+t.breakDurationMs))}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.e_=function(){}; g.R.Ju=function(){}; g.R.X3=function(){}; g.R.WZ=function(y){var t=this;if(!this.V)return Gy(this.Um.get(),"ads_nfi","a.pta;cid."+y.identifier),!1;this.K&&this.K.stop();this.L&&g.Ge(this.L);var a=xSy(this,y);if(!a){var r=h42(this),E=this.W!==void 0&&Date.now()<=this.W+1E4;Gy(this.Um.get(),"ads_ncfs","cid."+y.identifier+";cd."+y.iK.toFixed(3)+";ccs."+E+";cfa."+this.D+";bdc."+r.length+";"+r.slice(0,6).map(function(h){return";bd."+h}).join("")); return E?(sB(this.Df,this.V,y),!0):!1}(r=Yb(a.slot.clientMetadata,"metadata_type_triggering_cue_point"))?r.current=y:Ug("Expected triggering cue point ref to be available",a.slot);(new g.Te(function(){var h=a.trigger,F=a.slot;l5(t,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",h.breakDurationMs,new Set,!0);l5(t,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",h.breakDurationMs,new Set,!1);for(var x=0,U=g.p(t.yW.values()),C=U.next();!C.done;C=U.next()){C=C.value;var z=C.trigger; C.slot.slotId===F.slotId&&(t.yW.delete(z.triggerId),x++)}Gy(t.Um.get(),"ads_csf","sid."+F.slotId+";bd."+h.breakDurationMs+";dt."+x)},10)).start(); return!0}; g.R.Ye=function(){}; g.R.Jw=function(y){var t=this;this.D=!1;this.W=Date.now();if(this.V&&this.V.contentCpn!==y)Ug("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:y,fetchInstructionsCpn:this.V.contentCpn}),u5(this);else{this.Y=new g.Te(function(){if(t.D)delete t.Y;else{var r=t.v4.get().getGetAdBreakContext(),E;if(Number(r==null?void 0:(E=r.livePlaybackPosition)==null?void 0:E.utcTimeMillis)>0)delete t.Y,Ap2(t);else{var h;(h=t.Y)==null||h.start()}}},200); var a;(a=this.Y)==null||a.start()}}; g.R.KI=function(y){this.V&&this.V.contentCpn!==y&&Ug("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:y,fetchInstructionsCpn:this.V.contentCpn},!0);u5(this)}; g.R.Fx=function(y){var t=this;if(this.V)Ug("Unexpected multiple fetch instructions for the current content");else{this.V=y;y=$SV(y);this.K=new g.Te(function(){Ap2(t)},y?y:6E5); this.K.start();this.L=new g.Te(function(){t.V&&(t.K&&(t.K.stop(),t.K.start()),Fe7(t,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},sPu(this.V)); y=this.v4.get().getCurrentTimeSec(1,!1);for(var a=g.p(this.ye.get().A7),r=a.next();!r.done;r=a.next())r=r.value,Gy(this.Um.get(),"nocache","ct."+Date.now()+";cmt."+y+";d."+r.iK.toFixed(3)+";tw."+(r.startSecs-y)+";cid."+r.identifier+";")}}; g.R.I5=function(){g.H.prototype.I5.call(this);u5(this)};g.N(V7,g.H);g.R=V7.prototype;g.R.TZ=function(y,t,a,r){if(this.yW.has(t.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(t instanceof DF))throw new I("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.yW.set(t.triggerId,new gh(y,t,a,r));y=this.V.has(t.triggeringLayoutId)?this.V.get(t.triggeringLayoutId):new Set;y.add(t);this.V.set(t.triggeringLayoutId,y)}; g.R.Sq=function(y){this.yW.delete(y.triggerId);if(!(y instanceof DF))throw new I("Incorrect TriggerType: Tried to unregister trigger of type "+y.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var t=this.K.get(y.triggerId);t&&(t.dispose(),this.K.delete(y.triggerId));if(t=this.V.get(y.triggeringLayoutId))t.delete(y),t.size===0&&this.V.delete(y.triggeringLayoutId)}; g.R.Wz=function(){}; g.R.CA=function(){}; g.R.qZ=function(){}; g.R.Ue=function(){}; g.R.L0=function(){}; g.R.MZ=function(){}; g.R.kX=function(){}; g.R.YX=function(){}; g.R.zv=function(){}; g.R.X3=function(){}; g.R.e_=function(y,t){var a=this;if(this.V.has(t.layoutId)){y=this.V.get(t.layoutId);y=g.p(y);var r=y.next();for(t={};!r.done;t={vX:void 0},r=y.next())t.vX=r.value,r=new g.Te(function(E){return function(){var h=a.yW.get(E.vX.triggerId);LF(a.Y(),[h])}}(t),t.vX.durationMs),r.start(),this.K.set(t.vX.triggerId,r)}}; g.R.Ju=function(){};g.N(nq,g.H);nq.prototype.TZ=function(y,t){if(this.yW.has(t.triggerId))throw new I("Tried to register duplicate trigger for slot.");throw new I("Incorrect TriggerType: Tried to register trigger of type "+t.triggerType+" in VideoTransitionTriggerAdapter.");}; nq.prototype.Sq=function(y){this.yW.delete(y.triggerId)};HZ.prototype.PL=function(y){return y.kind==="AD_PLACEMENT_KIND_START"};g.N(cZ,g.H);cZ.prototype.logEvent=function(y){this.V(y)}; cZ.prototype.V=function(y,t,a,r,E,h,F,x,U,C,z,O){var M=this;O=O===void 0?0:O;V4(this.YG.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+y,"slot:",E,"layout:",h,"ping:",F,"Opportunity:",{opportunityType:t,associatedSlotId:a,vl0:r,LyF:x,adSlotLoggingData:U,adLayoutLoggingData:C});try{var L=function(){if(!M.YG.get().C.G().B("html5_disable_client_tmp_logs")&&y!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){y||Ug("Empty PACF event type",E,h);var w=IP(M.K.get()),d={eventType:y,eventOrder:++M.eventCount}, k={};E&&(k.slotData=K9(w,E));h&&(k.layoutData=Rpy(w,h));F&&(k.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:F.V.serializedAdPingMetadata,pingIndex:F.index});x&&(k.triggerData=iU(x.trigger,x.category));t&&(k.opportunityData=PRN(w,t,a,r));w={organicPlaybackContext:{contentCpn:t0(M.B4.get(),1).clientPlaybackNonce}};w.organicPlaybackContext.isLivePlayback=t0(M.B4.get(),1).US;var e;w.organicPlaybackContext.isMdxPlayback=(e=t0(M.B4.get(),1))==null?void 0: e.isMdxPlayback;var v;if((v=t0(M.B4.get(),1))==null?0:v.daiEnabled)w.organicPlaybackContext.isDaiContent=!0;var l;if(e=(l=t0(M.B4.get(),2))==null?void 0:l.clientPlaybackNonce)w.adVideoPlaybackContext={adVideoCpn:e};w&&(k.externalContext=w);d.adClientData=k;U&&(d.serializedSlotAdServingData=U.serializedSlotAdServingDataEntry);C&&(d.serializedAdServingData=C.serializedAdServingDataEntry);z&&(d.errorInfo=z);g.Mc("adsClientStateChange",{adsClientEvent:d})}}; O&&O>0?g.Z4(g.tk(),function(){return L()},O):L()}catch(w){V4(this.YG.get(),"html5_log_pacf_logging_errors")&&g.Z4(g.tk(),function(){Ug(w instanceof Error?w:String(w),E,h,{pacf_message:"exception during pacf logging"})})}};g.N(qp,cZ);qp.prototype.V=function(y,t,a,r,E,h,F,x,U,C,z){var O=this.YG.get();g.OY(O.C.G())?(O=this.YG.get(),O=g.Gw(O.C.G().experiments,"H5_async_logging_delay_ms")):O=void 0;cZ.prototype.V.call(this,y,t,a,r,E,h,F,x,U,C,z,O)};Y4.prototype.clear=function(){this.V.clear()};Dm.prototype.state=function(){return this.V==="fulfilled"?{state:"fulfilled",value:this.result}:this.V==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; Dm.prototype.D=function(y){i5(y)||gt(y)?Zm(Kq(y),this.D.bind(this),this.reject.bind(this)):(this.V="fulfilled",this.result=y,Gi(this))}; Dm.prototype.reject=function(y){this.V="rejected";this.error=y;Gi(this)}; var gt=ln(function(y){return eay(y)?y instanceof Dm:!1});var Ev=window.Uk0||"es-419";xf.prototype.eM=function(y){this.client=y}; xf.prototype.V=function(){this.clear();this.csn=g.XE()}; xf.prototype.clear=function(){this.Y.clear();this.K.clear();this.D.clear();this.csn=null};Uv.prototype.eM=function(y){g.EO($f().eM).bind($f())(y)}; Uv.prototype.clear=function(){g.EO($f().clear).bind($f())()};g.R=Cy.prototype;g.R.eM=function(y){this.client=y}; g.R.mu=function(y,t){var a=this;t=t===void 0?{}:t;g.EO(function(){var r,E,h,F=((r=g.P(y==null?void 0:y.commandMetadata,g.Rm))==null?void 0:r.rootVe)||((E=g.P(y==null?void 0:y.commandMetadata,guq))==null?void 0:(h=E.screenVisualElement)==null?void 0:h.uiType);if(F){r=g.P(y==null?void 0:y.commandMetadata,$9e);if(r==null?0:r.parentTrackingParams){var x=g.RQ(r.parentTrackingParams);if(r.parentCsn)var U=r.parentCsn}else t.clickedVisualElement?x=t.clickedVisualElement:y.clickTrackingParams&&(x=g.RQ(y.clickTrackingParams)); a:{r=g.P(y,g.zo);E=g.P(y,Fie);if(r){if(E=uj7(r,"VIDEO")){r={token:E,videoId:r.videoId};break a}}else if(E&&(r=uj7(E,"PLAYLIST"))){r={token:r,playlistId:E.playlistId};break a}r=void 0}t=Object.assign({},{cttAuthInfo:r,parentCsn:U},t);if(g.WE("expectation_logging")){var C;t.loggingExpectations=((C=g.P(y==null?void 0:y.commandMetadata,guq))==null?void 0:C.loggingExpectations)||void 0}Ov(a,F,x,t)}else g.ls(new g.RV("Error: Trying to create a new screen without a rootVeType",y))})()}; g.R.clickCommand=function(y,t,a){y=y.clickTrackingParams;a=a===void 0?0:a;y?(a=g.XE(a===void 0?0:a))?(IQ(this.client,a,g.RQ(y),t),t=!0):t=!1:t=!1;return t}; g.R.stateChanged=function(y,t,a){this.visualElementStateChanged(g.RQ(y),t,a===void 0?0:a)}; g.R.visualElementStateChanged=function(y,t,a){a=a===void 0?0:a;a===0&&this.K.has(a)?this.Z.push([y,t]):b9u(this,y,t,a)};Rt.prototype.fetch=function(y,t,a){var r=this,E=qtN(y,t,a);return new Promise(function(h,F){function x(){if(a==null?0:a.v5)try{var C=r.handleResponse(y,E.status,E.response,a);h(C)}catch(z){F(z)}else h(r.handleResponse(y,E.status,E.response,a))} E.onerror=x;E.onload=x;var U;E.send((U=t.body)!=null?U:null)})}; Rt.prototype.handleResponse=function(y,t,a,r){a=a.replace(")]}'","");try{var E=JSON.parse(a)}catch(h){g.ls(new g.RV("JSON parsing failed after XHR fetch",y,t,a));if((r==null?0:r.v5)&&a)throw new g.iy(1,"JSON parsing failed after XHR fetch");E={}}t!==200&&(g.ls(new g.RV("XHR API fetch failed",y,t,a)),E=Object.assign({},E,{errorMetadata:{status:t}}));return E};Ph.getInstance=function(){var y=g.jc("ytglobal.storage_");y||(y=new Ph,g.Wd("ytglobal.storage_",y));return y}; Ph.prototype.estimate=function(){var y,t,a;return g.m(function(r){y=navigator;return((t=y.storage)==null?0:t.estimate)?r.return(y.storage.estimate()):((a=y.webkitTemporaryStorage)==null?0:a.queryUsageAndQuota)?r.return(Ytx()):r.return()})}; g.Wd("ytglobal.storageClass_",Ph);Ny.prototype.LL=function(y){this.handleError(y)}; Ny.prototype.logEvent=function(y,t){switch(y){case "IDB_DATA_CORRUPTED":g.WE("idb_data_corrupted_killswitch")||this.V("idbDataCorrupted",t);break;case "IDB_UNEXPECTEDLY_CLOSED":this.V("idbUnexpectedlyClosed",t);break;case "IS_SUPPORTED_COMPLETED":g.WE("idb_is_supported_completed_killswitch")||this.V("idbIsSupportedCompleted",t);break;case "QUOTA_EXCEEDED":I11(this,t);break;case "TRANSACTION_ENDED":this.Y&&Math.random()<=.1&&this.V("idbTransactionEnded",t);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":y= Object.assign({},t,{hasWindowUnloaded:this.K}),this.V("idbTransactionAborted",y)}};var YA={},O_x=g.a6("yt-player-local-media",{AT:(YA.index={G1:2},YA.media={G1:2},YA.captions={G1:5},YA),shared:!1,upgrade:function(y,t){t(2)&&(g.Qw(y,"index"),g.Qw(y,"media"));t(5)&&g.Qw(y,"captions");t(6)&&(vx(y,"metadata"),vx(y,"playerdata"))}, version:5});var X19={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},DC;a:{var g3=g.rI();g3=g3.toLowerCase();if(g.GJ(g3,"android")){var kJ9=g3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(kJ9){var fhd=parseFloat(kJ9[1]);if(fhd<100){DC=fhd;break a}}var Wsi=g3.match("("+Object.keys(X19).join("|")+")");DC=Wsi?X19[Wsi[0]]:0}else DC=void 0}var Y3=DC,qO=Y3>=0;var Tv7={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 Z9d=g4(function(){var y,t;return(t=(y=window).matchMedia)==null?void 0:t.call(y,"(prefers-reduced-motion: reduce)").matches});var XQ;g.dP=new zT;XQ=0;var hP=FXu()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.IU?!0:!1;var V2={hY:function(y){y[A[18]]()}, BV:function(y,t){y[A[26]](0,t)}, Mk:function(y,t){var a=y[0];y[0]=y[t%y[A[6]]];y[t%y[A[6]]]=a}};var H8x={I5G:"adunit",J14:"detailpage",ZL0:"editpage",Eme:"embedded",qGr:"leanback",l4v:"previewpage",bb4:"profilepage",Hf:"unplugged",JLm:"playlistoverview",ZH7:"sponsorshipsoffer",lK0:"shortspage",CZf:"handlesclaiming",RIu:"immersivelivepage",ChE:"creatormusic",G$v:"immersivelivepreviewpage",Ox7:"admintoolyurt",fKr:"shortsaudiopivot",Lmu:"consumption",Rjr:"background_audio_playback"};var AHd=2592E3;var iM,jMU,Pi;iM={};g.e_=(iM.STOP_EVENT_PROPAGATION="html5-stop-propagation",iM.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",iM.IV_DRAWER_OPEN="ytp-iv-drawer-open",iM.MAIN_VIDEO="html5-main-video",iM.VIDEO_CONTAINER="html5-video-container",iM.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",iM.HOUSE_BRAND="house-brand",iM);jMU={};Pi=(jMU.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",jMU.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",jMU);var RAd={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var XKu={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},kv7={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"},Lc7={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var V7d={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.C7[A[41]][A[9]]=function(y,t){this[A[13]][y]!==t&&(this[A[13]][y]=t,this[A[1]]=A[14])}; g.C7[A[41]][A[5]]=function(y){h1(36,this);return this[A[13]][y]||null}; g.C7[A[41]][A[53]]=function(){this[A[1]]||(this[A[1]]=Q2(14,this));return this[A[1]]}; g.C7[A[41]][A[48]]=function(){var y=new g.C7(this[A[4]],this[A[34]]);y[A[21]]=this[A[21]];y[A[24]]=this[A[24]];y[A[20]]=this[A[20]];y[A[13]]=g.uN(this[A[13]]);y[A[1]]=this[A[1]];return y}; var Nx7=[WDV];g.V6.prototype.getLanguageInfo=function(){return this.qK}; g.V6.prototype.getXtags=function(){if(!this.xtags){var y=this.id.split(";");y.length>1&&(this.xtags=y[1])}return this.xtags}; g.V6.prototype.toString=function(){return this.qK.name}; g.V6.prototype.isAutoDubbed=function(){return this.qK.getIsAutoDubbed()}; g.V6.prototype.getLanguageInfo=g.V6.prototype.getLanguageInfo;g.V6.prototype.isAutoDubbed=g.V6.prototype.isAutoDubbed;ny.prototype.equals=function(y){return this.K===y.K&&this.V===y.V&&this.Y===y.Y&&this.reason===y.reason&&(!Jd||this.Hb===y.Hb)}; ny.prototype.isLocked=function(){return this.Y&&!!this.K&&this.K===this.V}; ny.prototype.compose=function(y){if(y.Y&&ot(y))return Eu;if(y.Y||ot(this))return y;if(this.Y||ot(y))return this;var t=this.K&&y.K?Math.max(this.K,y.K):this.K||y.K,a=this.V&&y.V?Math.min(this.V,y.V):this.V||y.V;t=Math.min(t,a);var r=0;Jd&&(r=this.Hb!==0&&y.Hb!==0?Math.min(this.Hb,y.Hb):this.Hb===0?y.Hb:this.Hb);return Jd&&t===this.K&&a===this.V&&r===this.Hb||!Jd&&t===this.K&&a===this.V?this:Jd?new ny(t,a,!1,a===this.V&&r===this.Hb?this.reason:y.reason,r):new ny(t,a,!1,a===this.V?this.reason:y.reason)}; ny.prototype.D=function(y){return!y.video||Jd&&this.Hb!==0&&this.Hb=0}; g.R.Qu=function(){var y=this.segments[this.segments.length-1];return y?y.endTime:NaN}; g.R.WO=function(){return this.segments[0].startTime}; g.R.SH=function(){return this.segments.length}; g.R.nD=function(){return 0}; g.R.G5=function(y){return(y=this.Jk(y))?y.a5:-1}; g.R.ST=function(y){return(y=this.AL(y))?y.sourceURL:""}; g.R.getStartTime=function(y){return(y=this.AL(y))?y.startTime:0}; g.R.R9=function(y){return this.getStartTime(y)+this.getDuration(y)}; g.R.OH=J1(3);g.R.isLoaded=function(){return this.segments.length>0}; g.R.AL=function(y){if(this.V&&this.V.a5===y)return this.V;y=g.CJ(this.segments,new yR(y,0,0,0,""),function(t,a){return t.a5-a.a5}); return this.V=y>=0?this.segments[y]:null}; g.R.Jk=function(y){if(this.V&&this.V.startTime<=y&&y=0?this.segments[y]:this.segments[Math.max(0,-y-2)]}; g.R.append=function(y){if(y.length)if(y=g.hB(y),this.segments.length){var t=this.segments.length?g.q9(this.segments).endTime:0,a=y[0].a5-this.lJ();a>1&&DH7(this.segments);for(a=a>0?0:-a+1;ay.a5&&this.index.zJ()<=y.a5+1}; g.R.update=function(y,t,a){this.index.append(y);D41(this.index,a);y=this.index;y.K=t;y.Y="update"}; g.R.K_=function(){return this.qd()?!0:Iy.prototype.K_.call(this)}; g.R.At=function(y,t){var a=this.index.ST(y),r=this.index.getStartTime(y),E=this.index.getDuration(y),h;t?E=h=0:h=this.info.Hb>0?this.info.Hb*E:1E3;return new $K([new a1(3,this,void 0,"liveCreateRequestInfoForSegment",y,r,E,0,h,!t)],a)}; g.R.jV=function(){return this.qd()?0:this.initRange.length}; g.R.d8=function(){return!1};wZ.prototype.update=function(y){var t=void 0;this.K&&(t=this.K);var a=new wZ,r=Array.from(y.getElementsByTagName("S"));if(r.length){var E=+Lw(y,"timescale")||1,h=(+r[0].getAttribute("t")||0)/E,F=+Lw(y,"startNumber")||0;a.D=h;var x=t?t.startSecs+t.iK:0,U=Date.parse(b$V(Lw(y,"yt:segmentIngestTime")))/1E3;a.L=y.parentElement.tagName==="SegmentTemplate";a.L&&(a.W=Lw(y,"media"));y=t?F-t.a5:1;a.J=y>0?0:-y+1;y=g.p(r);for(r=y.next();!r.done;r=y.next()){r=r.value;for(var C=+r.getAttribute("d")/E,z=(+r.getAttribute("yt:sid")|| 0)/E,O=+r.getAttribute("r")||0,M=0;M<=O;M++)if(t&&F<=t.a5)F++;else{var L=new oLV(F,x,C,U+z,h);a.V.push(L);var w=r;var d=E,k=L.startSecs;L=w.getAttribute("yt:cuepointTimeOffset");var e=w.getAttribute("yt:cuepointDuration");if(L&&e){L=Number(L);k=-L/d+k;d=Number(e)/d;e=w.getAttribute("yt:cuepointContext")||null;var v=w.getAttribute("yt:cuepointIdentifier")||"";w=w.getAttribute("yt:cuepointEvent")||"";w=new $v(k,d,e,v,QMc[w]||"unknown",L)}else w=null;w&&a.Y.push(w);F++;x+=C;h+=C;U+=C+z}}a.V.length&& (a.K=g.q9(a.V))}this.J=a.J;this.K=a.K||this.K;g.F4(this.V,a.V);g.F4(this.Y,a.Y);this.L=a.L;this.W=a.W;this.D===-1&&(this.D=a.getStreamTimeOffset())}; wZ.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.N(Py,g.t9);g.R=Py.prototype;g.R.Ml=function(){return this.dP}; g.R.D4=function(y,t){y=NK(this,y);return y>=0&&(t||!this.segments[y].pending)}; g.R.zJ=function(){return this.Zk?this.segments.length?this.Jk(this.WO()).a5:-1:g.t9.prototype.zJ.call(this)}; g.R.WO=function(){if(this.d7)return 0;if(!this.Zk)return g.t9.prototype.WO.call(this);if(!this.segments.length)return 0;var y=Math.max(g.q9(this.segments).endTime-this.x5,0);return this.H1>0&&this.Jk(y).a50)return this.H0/1E3;if(!this.segments.length)return g.t9.prototype.Qu.call(this);var y=this.lJ();if(!this.Zk||y<=this.segments[this.segments.length-1].a5)y=this.segments[this.segments.length-1];else{var t=this.segments[this.segments.length-1];y=new yR(y,Math.max(0,t.startTime-(t.a5-y)*this.dP),this.dP,0,"sq/"+y,void 0,void 0,!0)}return this.d7?Math.min(this.x5,y.endTime):y.endTime}; g.R.SH=function(){return this.Zk?this.segments.length?this.lJ()-this.zJ()+1:0:g.t9.prototype.SH.call(this)}; g.R.lJ=function(){var y=Math.min(this.On,Math.max(g.t9.prototype.lJ.call(this),this.Rq)),t=this.x5*1E3;t=this.H0>0&&this.H00&&this.Rq>0&&!t&&(t=this.Jk(this.x5))&&(y=Math.min(t.a5-1,y));return y}; g.R.rq=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.R.MI=function(y){var t=NK(this,y.a5);if(t>=0)this.segments[t]=y;else if(this.segments.splice(-(t+1),0,y),this.XN&&y.a5%(300/this.dP)===0){var a=this.segments[0].a5,r=Math.floor(this.XN/this.dP);y=y.a5-r;t=-(t+1)-r;t>0&&y>a&&(this.segments=this.segments.slice(t))}}; g.R.YY=function(){return this.Rq}; g.R.AN=function(y){return R1?!this.K&&y>=0&&this.lJ()<=y:g.t9.prototype.AN.call(this,y)}; g.R.Jk=function(y){if(!this.Zk)return g.t9.prototype.Jk.call(this,y);if(!this.segments.length)return null;var t=this.segments[this.segments.length-1];if(y=t.endTime)t=t.a5+Math.floor((y-t.endTime)/this.dP+1);else{t=zJ(this.segments,function(r){return y=r.endTime?1:0}); if(t>=0)return this.segments[t];var a=-(t+1);t=this.segments[a-1];a=this.segments[a];t=Math.floor((y-t.endTime)/((a.startTime-t.endTime)/(a.a5-t.a5-1))+1)+t.a5}return this.AL(t)}; g.R.AL=function(y){if(!this.Zk)return g.t9.prototype.AL.call(this,y);if(!this.segments.length)return null;var t=NK(this,y);if(t>=0)return this.segments[t];var a=-(t+1);t=this.dP;if(a===0)var r=Math.max(0,this.segments[0].startTime-(this.segments[0].a5-y)*t);else a===this.segments.length?(r=this.segments[this.segments.length-1],r=r.endTime+(y-r.a5-1)*t):(r=this.segments[a-1],t=this.segments[a],t=(t.startTime-r.endTime)/(t.a5-r.a5-1),r=r.endTime+(y-r.a5-1)*t);return new yR(y,r,t,0,"sq/"+y,void 0,void 0, !0)}; var R1=!1;g.N(dZ,O6);g.R=dZ.prototype;g.R.FN=function(){return!0}; g.R.K_=function(){return!0}; g.R.Ox=function(y){return this.Ar()&&y.K&&!y.Y||!y.z7.index.AN(y.a5)}; g.R.lT=function(){}; g.R.RJ=function(y,t){return typeof y!=="number"||isFinite(y)?O6.prototype.RJ.call(this,y,t===void 0?!1:t):new $K([new a1(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Z5,void 0,this.Z5*this.info.Hb)],"")}; g.R.At=function(y,t){var a=a===void 0?!1:a;if(this.index.D4(y))return O6.prototype.At.call(this,y,t);var r=this.index.getStartTime(y),E=Math.round(this.Z5*this.info.Hb),h=this.Z5;t&&(h=E=0);return new $K([new a1(a?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",y,r,h,void 0,E,!t)],y>=0?"sq/"+y:"")};g.N(X9,Iy);g.R=X9.prototype;g.R.IP=function(){return!1}; g.R.Ar=function(){return!1}; g.R.FN=function(){return!1}; g.R.lT=function(){return new $K([new a1(1,this,void 0,"otfInit")],this.L)}; g.R.SX=function(){return null}; g.R.b9=function(y){this.Ox(y);return Ku2(this,Ab(y),!1)}; g.R.RJ=function(y,t){t=t===void 0?!1:t;y=this.index.G5(y);t&&(y=Math.min(this.index.lJ(),y+1));return Ku2(this,y,!0)}; g.R.q8=function(y){y.info.type===1&&(this.V||(this.V=Mz(y.K)),y.V&&y.V.uri==="http://youtube.com/streaming/otf/durations/112015"&&IH1(this,y.V))}; g.R.Ox=function(y){return y.K===0?!0:this.index.lJ()>y.a5&&this.index.zJ()<=y.a5+1}; g.R.jV=function(){return 0}; g.R.d8=function(){return!1};var Z$1=new Map,aGz=new Map,y0b=new function(){var y=this;this.V=new Map;this.Wb={JTe:function(){return y.V}}};g.R=g.li.prototype;g.R.D4=function(y){return y<=this.lJ()}; g.R.nD=function(y){return this.offsets[y]}; g.R.getStartTime=function(y){return this.startTicks[y]/this.V}; g.R.R9=function(y){return this.getStartTime(y)+this.getDuration(y)}; g.R.OH=J1(2);g.R.Pj=function(){return NaN}; g.R.getDuration=function(y){y=this.KT(y);return y>=0?y/this.V:-1}; g.R.KT=function(y){return y+1=0}; g.R.Qu=function(){return this.K?this.startTicks[this.count]/this.V:NaN}; g.R.WO=function(){return 0}; g.R.SH=function(){return this.count}; g.R.ST=function(){return""}; g.R.G5=function(y){y=g.CJ(this.startTicks.subarray(0,this.count),y*this.V);return y>=0?y:Math.max(0,-y-2)}; g.R.isLoaded=function(){return this.lJ()>=0}; g.R.vS=function(y,t){if(y>=this.lJ())return 0;var a=0;for(t=this.getStartTime(y)+t;ythis.getStartTime(y);y++)a=Math.max(a,$B1(this,y)/this.getDuration(y));return a}; g.R.resize=function(y){y+=2;var t=this.offsets;this.offsets=new Float64Array(y+1);var a=this.startTicks;this.startTicks=new Float64Array(y+1);for(y=0;y0&&y&&(a=a.range.end+1,y=Math.min(y,this.info.contentLength-a),y>0&&r.push(new a1(4,this,yH(a,y),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,t)));return new $K(r)}; g.R.q8=function(y){if(y.info.type===1){if(this.V)return;this.V=Mz(y.K)}else if(y.info.type===2){if(this.L||this.index.lJ()>=0)return;if(g.bH(this.info)){var t=this.index,a=g.jh(y);y=y.info.range.start;var r=g.O5(a,0,1936286840);a=hLF(r);t.V=a.timescale;var E=a.qR;t.offsets[0]=a.VA+y+r.size;t.startTicks[0]=E;t.K=!0;y=a.VL.length;for(r=0;r0&&y===h[0].p5)for(y=0;y=t+a)break}E.length||(y=new g.RV("b189619593",""+y,""+t,""+a),g.pK(y));return new $K(E)}; g.R.Se=function(y){for(var t=this.ya(y.info),a=y.info.range.start+y.info.V,r=[],E=0;E=this.index.nD(a+1);)a++;return this.yU(a,t,y.K).Sr}; g.R.Ox=function(y){y.kV();return this.K_()?!0:y.range.end+1this.info.contentLength&&(t=new GC(t.start,this.info.contentLength-1)),new $K([new a1(4,y.z7,t,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,y.clipId)]);y.type===4&&(y=this.ya(y),y=y[y.length-1]);var a=0,r=y.range.start+y.V+y.K;y.type===3&&(y.kV(),a=y.a5,r===y.range.end+1&&(a+=1));return this.yU(a,r,t)}; g.R.b9=function(){return null}; g.R.RJ=function(y,t){t=t===void 0?!1:t;y=this.index.G5(y);t&&(y=Math.min(this.index.lJ(),y+1));return this.yU(y,this.index.nD(y),0,void 0)}; g.R.IP=function(){return!0}; g.R.Ar=function(){return!0}; g.R.FN=function(){return!1}; g.R.jV=function(){return this.indexRange.length+this.initRange.length}; g.R.d8=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Im={},jl7=(Im.COLOR_PRIMARIES_BT709="bt709",Im.COLOR_PRIMARIES_BT2020="bt2020",Im.COLOR_PRIMARIES_UNKNOWN=null,Im.COLOR_PRIMARIES_UNSPECIFIED=null,Im),TS={},CHb=(TS.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",TS.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",TS.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",TS.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",TS.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,TS.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,TS);g.R=g.nw.prototype;g.R.getName=function(){return this.name}; g.R.getId=function(){return this.id}; g.R.getIsDefault=function(){return this.isDefault}; g.R.getIsAutoDubbed=function(){return this.isAutoDubbed}; g.R.toString=function(){return this.name}; g.nw.prototype.getName=g.nw.prototype.getName;g.nw.prototype.getId=g.nw.prototype.getId;g.nw.prototype.getIsDefault=g.nw.prototype.getIsDefault;g.nw.prototype.getIsAutoDubbed=g.nw.prototype.getIsAutoDubbed;var Mtz=/action_display_post/;var wU7,o1,Hy;g.N(bi,g.FM);g.R=bi.prototype;g.R.isLoading=function(){return this.state===1}; g.R.oN=function(){return this.state===3}; g.R.VJr=function(y){var t=y.getElementsByTagName("Representation");if(y.getElementsByTagName("SegmentList").length>0||y.getElementsByTagName("SegmentTemplate").length>0){this.US=this.K=!0;this.W||(this.W=new csx);gLF(this.W,y);this.publish("refresh");for(y=0;y=0?z=ZE(M):O=O+"?range="+M}U.call(x,new yR(C.a5,C.startSecs,C.iK,C.V,O,z,C.K))}r=E}a.update(r,this.isLive,this.C1)}i$d(this.W);return!0}this.duration=H$b(Lw(y,"mediaPresentationDuration"));a:{for(y= 0;y0))return this.Gr()-y}}y=this.V;for(var t in y){var a=y[t].index;if(a.isLoaded()&&!DG(y[t].info.mimeType))return a.WO()}return 0}; g.R.getStreamTimeOffset=function(){return this.Z}; g.R.Pj=function(y){for(var t in this.V){var a=this.V[t].index;if(a.isLoaded()){var r=a.G5(y),E=a.Pj(r);if(E)return E+y-a.getStartTime(r)}}return NaN}; var t5=null,v_9,aE=!((v_9=navigator.mediaCapabilities)==null||!v_9.decodingInfo),ucV={commentary:1,alternate:2,dub:3,main:4};var hO=new Set,r9=new Map;Fg.prototype.clone=function(y){return new Fg(this.flavor,y,this.K,this.experiments)}; Fg.prototype.Tl=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Fg.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 p19={},MO=(p19.playready=["com.youtube.playready","com.microsoft.playready"],p19.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],p19),GS={},jXV=(GS.widevine="DRM_SYSTEM_WIDEVINE",GS.fairplay="DRM_SYSTEM_FAIRPLAY",GS.playready="DRM_SYSTEM_PLAYREADY",GS),ZC={},eHU=(ZC.widevine=1,ZC.fairplay=2,ZC.playready=3,ZC);var Pt;g.N(w9,g.H); w9.prototype.initialize=function(y,t){for(var a=this,r=g.p(Object.keys(y)),E=r.next();!E.done;E=r.next()){E=g.p(y[E.value]);for(var h=E.next();!h.done;h=E.next())if(h=h.value,h.YJ)for(var F=g.p(Object.keys(h.YJ)),x=F.next();!x.done;x=F.next()){var U=x.value;x=U;U=MO[U];!U&&this.B("html5_enable_vp9_fairplay")&&x==="fairplay"&&(U=["com.youtube.fairplay.sbdl"]);if(U){U=g.p(U);for(var C=U.next();!C.done;C=U.next())C=C.value,this.Y[C]=this.Y[C]||new Fg(x,C,h.YJ[x],this.P4.experiments),this.V[x]=this.V[x]|| {},this.V[x][h.mimeType]=!0}}}Tc()&&(this.Y["com.youtube.fairplay"]=new Fg("fairplay","com.youtube.fairplay","",this.P4.experiments),this.B("html5_enable_vp9_fairplay")||(this.V.fairplay=this.V.fairplay||{},this.V.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.V.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.K=g8y(t,this.useCobaltWidevine,this.B("html5_enable_safari_fairplay")&&!0,this.B("html5_enable_vp9_fairplay")).filter(function(z){return!!a.Y[z]})}; w9.prototype.B=function(y){return this.P4.experiments.Nr(y)};var lh2={"":"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 BAy={RED:"red",Dk4:"white"};d9.prototype.o7=function(y){if(y.wp!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return aqu(this,y)}; d9.prototype.Nr=function(y){return this.flags.get(""+y)==="true"};Xg.prototype.pJ=function(){return this.Y}; Xg.prototype.QU=function(){return this.K}; Xg.prototype.Nr=function(y){y=this.o7(y);JSON.stringify(y);return y==="true"}; Xg.prototype.o7=function(y){return this.flags[y]};var hVV=Promise.resolve(),sc2=window.queueMicrotask?window.queueMicrotask.bind(window):Fq7;fN.prototype.canPlayType=function(y,t){y=y.canPlayType?y.canPlayType(t):!1;Kx?y=y||u4E[t]:Y3===2.2?y=y||Vky[t]:Kt()&&(y=y||n_e[t]);return!!y}; fN.prototype.isTypeSupported=function(y){return this.Z?window.cast.receiver.platform.canDisplayType(y):sD(y)}; var Vky={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},n_e={"application/x-mpegURL":"maybe"},u4E={"application/x-mpegURL":"maybe"};g.N(SD,g.FM);SD.prototype.add=function(y,t){if(!this.items[y]&&(t.M6||t.C5||t.ws)){var a=this.items,r=t;Object.isFrozen&&!Object.isFrozen(t)&&(r=Object.create(t),Object.freeze(r));a[y]=r;this.publish("vast_info_card_add",y)}}; SD.prototype.remove=function(y){var t=this.get(y);delete this.items[y];return t}; SD.prototype.get=function(y){return this.items[y]||null}; SD.prototype.isEmpty=function(){return g.pJ(this.items)};Qr.prototype.encrypt=function(y){this.V.exports.AES128CTRCipher_encrypt(this.cipher,y.byteOffset,y.byteLength);return y}; Qr.prototype.Qv=function(){return this.cipher===0}; Qr.prototype.dispose=function(){this.V.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};pN.prototype.vG=function(y,t){t=t===void 0?1:t;this.s8+=t;this.K+=y;y/=t;for(var a=0;a0)r+="."+vt[E].toFixed(0)+"_"+a.V[E].toFixed(0);else break;a=r}a&&(y[t]=a)}this.V=new zVH;return y}; g.R.toString=function(){return""};g.R=PT7.prototype;g.R.isActive=function(){return!1}; g.R.a$=function(){}; g.R.QH=function(){}; g.R.wS=function(){}; g.R.NV=function(y,t){t()}; g.R.EL=function(){return{}}; g.R.toString=function(){return""};var mXE=new PT7,JBI=!!+tm("html5_enable_profiler"),o_U=!!+tm("html5_onesie_enable_profiler"),yN=JBI||o_U?new LqV:mXE,jmb=JBI?yN:mXE,lc=o_U?yN:mXE;jc1.prototype.emscripten_notify_memory_growth=function(){};g.R=eD.prototype;g.R.malloc=function(y){return this.exports.malloc(y)}; g.R.free=function(y){this.exports.free(y)}; g.R.realloc=function(y,t){return this.exports.realloc(y,t)}; g.R.DH=function(y){if(y.buffer!==this.exports.memory.buffer){var t=this.malloc(y.byteLength);t=new Uint8Array(this.exports.memory.buffer,t,y.byteLength);t.set(y);return t}}; g.R.rh=function(y){if(y.buffer===this.exports.memory.buffer){var t=y.slice();this.free(y.byteOffset);return t}}; var kyy=new function(){this.V="WebAssembly"in window},uc="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); lc.a$(eD,{DH:function(y){return{profile:"copyj2w",s8:y===void 0?0:Math.ceil(y.byteLength/16)}}, rh:function(y){return{profile:"copyw2j",s8:y===void 0?0:Math.ceil(y.byteLength/16)}}});Vr.prototype.encrypt=function(y,t){try{return this.V.rh(pYF(this,y,t))}catch(a){g.ls(Error("ocwce: wasm encrypt failed: "+a))}}; Vr.prototype.Qv=function(){return this.Y}; Vr.prototype.dispose=function(){this.Qv()||(g.wQ(this.K),this.V.free(this.D.byteOffset),this.Y=!0)};g.N(eVy,g.H);g.N(uv7,g.H);g.N(nq7,g.H);var b8N="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(" "),gqF={Cve:"caoe",t8f:"capsv",nV0:"cbrand",jYE:"cbr",hnr:"cbrver",zn1:"cchip",Dp7:"ccappver",vmF:"ccrv",x1r:"cfrmver",S6r:"c",jNv:"cver",nPr:"ctheme",EP5:"cplayer",jP5:"cmodel",l3:"cnetwork",FP4:"cos",OS_VERSION:"cosver",kJr:"cplatform",v84:"crqyear"};g.N(th,g.H);g.R=th.prototype;g.R.B=function(y){return this.experiments.Nr(y)}; g.R.pJ=function(){return this.experiments.pJ()}; g.R.QU=function(){return this.experiments.QU()}; g.R.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.R.getVideoUrl=function(y,t,a,r,E,h,F){t={list:t};a&&(E?t.time_continue=a:t.t=a);a=F?"music.youtube.com":g.rY(this);E=a==="www.youtube.com";!h&&r&&E?h="https://youtu.be/"+y:g.ic(this)?(h="https://"+a+"/fire",t.v=y):(h&&E?(h=this.protocol+"://"+a+"/shorts/"+y,r&&(t.feature="share")):(h=this.protocol+"://"+a+"/watch",t.v=y),Kx&&(y=Mvd())&&(t.ebc=y));return g.lJ(h,t)}; g.R.getVideoEmbedCode=function(y,t,a,r){t="https://"+g.rY(this)+"/embed/"+t;r&&(t=g.lJ(t,{list:r}));r=a.width;a=a.height;t=Y$(t);y=Y$(y!=null?y:"YouTube video player");return'')}; g.R.supportsGaplessAudio=function(){return g.x8&&!Kx&&DY()>=74||g.OI&&g.yu(68)?!0:!1}; g.R.supportsGaplessShorts=function(){return!this.B("html5_enable_short_gapless")||this.C1||g.wR?!1:!0}; g.R.getPlayerType=function(){return this.V.cplayer}; g.R.Bb=function(){return this.ix}; var TAz=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],D2F=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Kqx=[19];var tT={},aFN=(tT["140"]={numChannels:2},tT["141"]={numChannels:2},tT["251"]={audioSampleRate:48E3,numChannels:2},tT["774"]={audioSampleRate:48E3,numChannels:2},tT["380"]={numChannels:6},tT["328"]={numChannels:6},tT["773"]={},tT),aL={},yNy=(aL["1"]='video/mp4; codecs="av01.0.08M.08"',aL["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',aL["1e"]='video/mp4; codecs="av01.0.08M.08"',aL["9"]='video/webm; codecs="vp9"',aL["("]='video/webm; codecs="vp9"',aL["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', aL.h='video/mp4; codecs="avc1.64001e"',aL.H='video/mp4; codecs="avc1.64001e"',aL.o='audio/webm; codecs="opus"',aL.a='audio/mp4; codecs="mp4a.40.2"',aL.ah='audio/mp4; codecs="mp4a.40.2"',aL.mac3='audio/mp4; codecs="ac-3"; channels=6',aL.meac3='audio/mp4; codecs="ec-3"; channels=6',aL.i='audio/mp4; codecs="iamf.001.001.Opus"',aL),r7={},tXy=(r7["337"]={width:3840,height:2160,bitrate:3E7,fps:30},r7["336"]={width:2560,height:1440,bitrate:15E6,fps:30},r7["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, r7["702"]={width:7680,height:4320,bitrate:4E7,fps:60},r7["701"]={width:3840,height:2160,bitrate:2E7,fps:60},r7["700"]={width:2560,height:1440,bitrate:1E7,fps:60},r7["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},r7["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},r7["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},r7["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, r7["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},r7["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},r7["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},r7["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},r7["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},r7["315"]={width:3840,height:2160,bitrate:2E7,fps:60},r7["308"]={width:2560, height:1440,bitrate:1E7,fps:60},r7["303"]={width:1920,height:1080,bitrate:5E6,fps:60},r7["302"]={width:1280,height:720,bitrate:25E5,fps:60},r7["299"]={width:1920,height:1080,bitrate:75E5,fps:60},r7["298"]={width:1280,height:720,bitrate:35E5,fps:60},r7["571"]={width:7680,height:4320,bitrate:3E7,fps:60},r7["401"]={width:3840,height:2160,bitrate:15E6,fps:60},r7["400"]={width:2560,height:1440,bitrate:75E5,fps:60},r7["399"]={width:1920,height:1080,bitrate:2E6,fps:60},r7["398"]={width:1280,height:720,bitrate:1E6, fps:60},r7["397"]={width:854,height:480,bitrate:4E5,fps:30},r7["396"]={width:640,height:360,bitrate:25E4,fps:30},r7["787"]={width:1080,height:608,bitrate:2E5,fps:30},r7["788"]={width:1080,height:608,bitrate:4E5,fps:30},r7["572"]={width:7680,height:4320,bitrate:3E7,fps:60},r7["555"]={width:3840,height:2160,bitrate:15E6,fps:60},r7["554"]={width:2560,height:1440,bitrate:75E5,fps:60},r7["553"]={width:1920,height:1080,bitrate:2E6,fps:60},r7["552"]={width:1280,height:720,bitrate:1E6,fps:60},r7["551"]={width:854, height:480,bitrate:4E5,fps:30},r7["550"]={width:640,height:360,bitrate:25E4,fps:30},r7["313"]={width:3840,height:2160,bitrate:8E6,fps:30},r7["271"]={width:2560,height:1440,bitrate:4E6,fps:30},r7["248"]={width:1920,height:1080,bitrate:2E6,fps:30},r7["247"]={width:1280,height:720,bitrate:15E5,fps:30},r7["244"]={width:854,height:480,bitrate:52E4,fps:30},r7["243"]={width:640,height:360,bitrate:28E4,fps:30},r7["137"]={width:1920,height:1080,bitrate:4E6,fps:30},r7["136"]={width:1280,height:720,bitrate:3E6, fps:30},r7["135"]={width:854,height:480,bitrate:1E6,fps:30},r7["385"]={width:1920,height:1080,bitrate:6503313,fps:60},r7["376"]={width:1280,height:720,bitrate:5706960,fps:60},r7["384"]={width:1280,height:720,bitrate:3660979,fps:60},r7["225"]={width:1280,height:720,bitrate:5805E3,fps:30},r7["224"]={width:1280,height:720,bitrate:453E4,fps:30},r7["145"]={width:1280,height:720,bitrate:2682052,fps:30},r7);g.R=N0.prototype;g.R.getInfo=function(){return this.V}; g.R.p8=function(){return null}; g.R.PS=function(){var y=this.p8();return y?(y=g.sO(y.Pb),Number(y.expire)):NaN}; g.R.Qi=function(){}; g.R.getHeight=function(){return this.V.video.height};F3N.prototype.build=function(){sSn(this);var y=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],t={};a:if(this.V)var a=this.V;else{a="";for(var r=g.p(this.Y),E=r.next();!E.done;E=r.next())if(E=E.value,E.qK){if(E.qK.getIsDefault()){a=E.qK.getId();break a}a||(a=E.qK.getId())}}r=g.p(this.Y);for(E=r.next();!E.done;E=r.next())if(E=E.value,this.J||!E.qK||E.qK.getId()===a)t[E.itag]||(t[E.itag]=[]),t[E.itag].push(E);a=g.p(this.K);for(r=a.next();!r.done;r=a.next())if(r=r.value,E=t[r.V]){E=g.p(E);for(var h=E.next();!h.done;h= E.next()){var F=y,x=F.push;h=h.value;var U="#EXT-X-MEDIA:TYPE=AUDIO,",C="YES",z="audio";if(h.qK){z=h.qK;var O=z.getId().split(".")[0];O&&(U+='LANGUAGE="'+O+'",');(this.V?this.V===z.getId():z.getIsDefault())||(C="NO");z=z.getName()}O="";r!==null&&(O=r.itag.toString());O=XI(this,h.url,O);U=U+('NAME="'+z+'",DEFAULT='+(C+',AUTOSELECT=YES,GROUP-ID="'))+(xQn(h,r)+'",URI="'+(O+'"'));x.call(F,U)}}a=g.p(this.L);for(r=a.next();!r.done;r=a.next())r=r.value,E=HJd,r=(F=r.qK)?'#EXT-X-MEDIA:URI="'+XI(this,r.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+E+'",LANGUAGE="'+F.getId()+'",NAME="'+F.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,r&&y.push(r);a=this.L.length>0?HJd:void 0;r=g.p(this.K);for(E=r.next();!E.done;E=r.next())E=E.value,x=t[E.V],F=void 0,((F=x)==null?void 0:F.length)>0&&(F=E,x=x[0],x="#EXT-X-STREAM-INF:BANDWIDTH="+(F.bitrate+x.bitrate)+',CODECS="'+(F.codecs+","+x.codecs+'",RESOLUTION=')+(F.width+"x"+F.height+',AUDIO="')+(xQn(x,F)+'",')+(a?'SUBTITLES="'+a+'",':"")+"CLOSED-CAPTIONS=NONE",F.fps>1&&(x+= ",FRAME-RATE="+F.fps),F.s3&&(x+=",VIDEO-RANGE="+F.s3),y.push(x),y.push(XI(this,E.url,"")));return y.join("\n")}; var HJd="text";g.N(kp,N0);kp.prototype.PS=function(){return this.expiration}; kp.prototype.p8=function(){if(!this.Pb||this.Pb.Qv()){var y=this.K.build();y="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(y);this.Pb=new Au(y)}return this.Pb};g.N(f3,N0);f3.prototype.p8=function(){return new Au(this.K.xJ())}; f3.prototype.Qi=function(){this.K=h1(79,this.K)};g.N(We,N0);We.prototype.p8=function(){return new Au(this.K)};var Ee={},Pfu=(Ee.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Ee.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Ee.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Ee.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Ee);g.R=g.jM.prototype;g.R.getId=function(){return this.id}; g.R.getName=function(){return this.name}; g.R.isServable=function(){return this.V}; g.R.xJ=function(){return this.url}; g.R.getXtags=function(){return this.xtags}; g.R.toString=function(){return this.languageCode+": "+g.SM(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.R.equals=function(y){return y?this.toString()===y.toString():!1}; g.R.Fm=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var W3F={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},jSF={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},S3z=/^(\d*)_((\d*)_?(\d*))$/;var vw7={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},p22={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var hT={},lF2=(hT.ALWAYS=1,hT.BY_REQUEST=3,hT.UNKNOWN=void 0,hT),F_={},A8y=(F_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",F_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",F_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",F_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",F_);var w5d; w5d=function(y){for(var t=Object.keys(y),a={},r=0;rr-t?-1:y}; g.R.EP=function(){return this.K.lJ()}; g.R.L3=function(){return this.K.zJ()}; g.R.EW=function(y){this.K=y};g.N(rU,tI);rU.prototype.K=function(y,t){return tI.prototype.K.call(this,"$N|"+y,t)}; rU.prototype.L=function(y,t,a){return new ah(y,t,a,this.isLive)};g.N(g.hI,g.FM);g.R=g.hI.prototype; g.R.setData=function(y){var t=this;y=y||{};var a=y.errordetail;a!=null&&(this.errorDetail=a);var r=y.errorcode;r!=null?this.errorCode=r:y.status==="fail"&&(this.errorCode="auth");var E=y.reason;E!=null&&(this.errorReason=E);var h=y.subreason;h!=null&&(this.hL=h);this.clientPlaybackNonce||(this.clientPlaybackNonce=y.cpn||(this.P4.Bb()?"r"+g.wu(15):g.wu(16)));this.Ui=xH(this.P4.Ui,y.livemonitor);ehH(this,y);var F=y.raw_player_response;if(F)this.lX=F;else{var x=y.player_response;x&&(F=JSON.parse(x))}F&& (this.playerResponse=F);if(this.playerResponse){var U=this.playerResponse.annotations;U&&ui2(this,U);var C=this.playerResponse.attestation;C&&VXu(this,C);var z=this.playerResponse.cotn;z&&(this.cotn=z);var O=this.playerResponse.heartbeatParams;O&&HV7(this,O);var M=this.playerResponse.messages;M&&q3F(this,M);var L=this.playerResponse.overlay;L&&K3y(this,L);var w=this.playerResponse.playabilityStatus;if(w){IFn(this,w);var d=w.errorScreen;d&&F2F(this,d)}var k=this.playerResponse.playbackTracking;k&& Gm2(this,k,y);var e=this.playerResponse.playerCueRanges;e&&e.length>0&&(this.cueRanges=e);var v=this.playerResponse.playerCueRangeSet;v&&g.Uu(this,v);var l=C5x(this.playerResponse.adPlacements);k&&k.promotedPlaybackTracking&&l&&g.ls(new g.RV("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(l||BJ7(this.playerResponse.adSlots))this.xb=!0;var V=this.playerResponse.playerAds;V&&ZV1(this,V,y);var B=this.playerResponse.playerConfig;B&&y8n(this,B);var b=this.playerResponse.streamingData; b&&t7d(this,b,B||null);var Z=this.playerResponse.trackingParams;Z&&(this.AF=Z);var aV=this.playerResponse.videoDetails;if(aV){r87(this,aV,y);xuH(this,aV,B||null,y);var rx=aV.isPrivate;rx!==void 0&&(this.isPrivate=xH(this.isPrivate,rx))}w&&ow2(this,w,aV||null);var Fb=this.playerResponse.interstitialPods;Fb&&cNN(this,Fb);this.bZ&&this.eventId&&(this.bZ=UO(this.bZ,{ei:this.eventId}));var zN=this.playerResponse.captions;zN&&zN.playerCaptionsTracklistRenderer&&mQd(this,zN.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.zA=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Y3V(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var En;this.compositeLiveIngestionOffsetToken=(En=this.playerResponse.playbackTracking)==null?void 0:En.compositeLiveIngestionOffsetToken; var Xb;this.compositeLiveStatusToken=(Xb=this.playerResponse.playbackTracking)==null?void 0:Xb.compositeLiveStatusToken;this.B("html5_fill_default_mosaic_audio_track_id")&&a9(this)&&(this.P4.R5=Q5x(this));var TN,A7,b7=(TN=this.playerResponse.playerConfig)==null?void 0:(A7=TN.granularVariableSpeedConfig)==null?void 0:A7.minimumPlaybackRate,IV,md,KI=(IV=this.playerResponse.playerConfig)==null?void 0:(md=IV.granularVariableSpeedConfig)==null?void 0:md.maximumPlaybackRate;b7&&KI&&(this.hS=b7/100,this.O$= KI/100);this.B("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(ZW){var vI;((vI=g.P(ZW,JN7))==null?void 0:vI.signal)==="INIT_ATT_SERVICE"&&(t.X4=!0)})}AI(this,y); lgN(this,y);y.queue_info&&(this.queueInfo=y.queue_info);var ec=y.hlsdvr;ec!=null&&(this.allowLiveDvr=Number(ec)===1?Wt()?!0:a_&&n3<5?!1:!0:!1);this.adQueryId=y.ad_query_id||null;this.E$||(this.E$=y.encoded_ad_safety_reason||null);this.o2=xH(this.o2,y.infringe||y.muted);this.wA=y.authkey;this.Bh=y.authuser;this.mutedAutoplay=xH(this.mutedAutoplay,y&&y.playmuted);this.mutedAutoplayDurationMode=$H(this.mutedAutoplayDurationMode,y&&y.muted_autoplay_duration_mode);this.wD=xH(this.wD,y&&y.mutedautoplay); var Q=y.length_seconds;Q&&(this.lengthSeconds=typeof Q==="string"?iA(Q):Q);this.isAd()||this.pA||!g.Lo(g.IE(this.P4))?this.endSeconds=$H(this.endSeconds,this.eE||y.end||y.endSeconds):o12(this,g.IE(this.P4),this.lengthSeconds);this.AF=UX(this.AF,y.itct);this.aE=xH(this.aE,y.is_live_destination);this.isLivePlayback=xH(this.isLivePlayback,y.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.US();y.isUpcoming&&(this.isUpcoming=xH(this.isUpcoming,y.isUpcoming));this.d7=xH(this.d7, y.post_live_playback);this.Cx&&(this.d7=!1);this.isMdxPlayback=xH(this.isMdxPlayback,y.mdx);var Z9=y.mdx_control_mode;Z9&&(this.mdxControlMode=typeof Z9==="number"?Z9:iA(Z9));this.isInlinePlaybackNoAd=xH(this.isInlinePlaybackNoAd,y.is_inline_playback_no_ad);this.r0=$H(this.r0,y.reload_count);this.reloadReason=UX(this.reloadReason,y.reload_reason);this.NL=xH(this.NL,y.show_content_thumbnail);this.cycToken=y.cyc||null;var g2=p3(y);Object.keys(g2).length>0&&(this.rO=g2);this.Vv=UX(this.Vv,y.vvt);this.mdxEnvironment= UX(this.mdxEnvironment,y.mdx_environment);y.source_container_playlist_id&&(this.sourceContainerPlaylistId=y.source_container_playlist_id);y.serialized_mdx_metadata&&(this.serializedMdxMetadata=y.serialized_mdx_metadata);this.ub=y.osig;this.eventId||(this.eventId=y.eventid);this.osid||(this.osid=y.osid);this.playlistId=UX(this.playlistId,y.list);y.index&&(this.playlistIndex=this.playlistIndex===void 0?$H(0,y.index):$H(this.playlistIndex,y.index));this.m6=y.pyv_view_beacon_url;this.Y_=y.pyv_quartile25_beacon_url; this.x_=y.pyv_quartile50_beacon_url;this.CK=y.pyv_quartile75_beacon_url;this.PP=y.pyv_quartile100_beacon_url;var sn=y.session_data;!this.tS&&sn&&(this.tS=Fk(sn,"&").feature);this.isFling=$H(this.isFling?1:0,y.is_fling)===1;this.vnd=$H(this.vnd,y.vnd);this.forceAdsUrl=UX(this.forceAdsUrl,y.force_ads_url);this.VQ=UX(this.VQ,y.ctrl);this.Rs=UX(this.Rs,y.ytr);this.aG=y.ytrcc;this.BP=y.ytrexp;this.Z8=y.ytrext;this.Az=UX(this.Az,y.adformat);this.lH=UX(this.lH,y.attrib);this.slotPosition=$H(this.slotPosition, y.slot_pos);this.breakType=y.break_type;this.xw=xH(this.xw,y.ssrt);this.videoId=zD(y)||this.videoId;this.J=UX(this.J,y.vss_credentials_token);this.MH=UX(this.MH,y.vss_credentials_token_type);this.JM=xH(this.JM,y.audio_only);this.DE=xH(this.DE,y.aac_high);this.EQ=xH(this.EQ,y.prefer_low_quality_audio);this.XF=xH(this.XF,y.uncap_inline_quality);this.B("html5_enable_qoe_cat_list")?y.qoe_cat&&(this.mT=this.mT.concat(y.qoe_cat.split(","))):this.Eu=UX(this.Eu,y.qoe_cat);this.JQ=xH(this.JQ,y.download_media); this.W=uD7(this,y.prefer_gapless);O92(this.playerResponse)&&this.bv.push("ad");var vd=y.adaptive_fmts;vd&&(this.adaptiveFormats=vd,this.H4("adpfmts",{},!0));var f=y.allow_embed;f&&(this.allowEmbed=Number(f)===1);var t1=y.backgroundable;t1&&(this.backgroundable=Number(t1)===1);var dK=y.autonav;dK&&(this.isAutonav=Number(dK)===1);var x_=y.autoplay;x_&&(this.Nh=this.UQ=Number(x_)===1);var iN=y.iv_load_policy;iN&&(this.annotationsLoadPolicy=sX(this.annotationsLoadPolicy,iN,Tu));var s9=y.cc_lang_pref; s9&&(this.captionsLanguagePreference=UX(s9,this.captionsLanguagePreference));var GN=y.cc_load_policy;GN&&(this.Y8=sX(this.Y8,GN,Tu));var aq;this.deviceCaptionsOn=(aq=y.device_captions_on)!=null?aq:void 0;var jk;this.OZ=(jk=y.device_captions_lang_pref)!=null?jk:"";var S;this.jX=(S=y.viewer_selected_caption_langs)!=null?S:[];var X=y.cached_load;X&&(this.oD=xH(this.oD,X));if(y.dash==="0"||y.dash===0||y.dash===!1)this.IJ=!0;var W=y.dashmpd;W&&(this.Y5=g.lJ(W,{cpn:this.clientPlaybackNonce}));var n=y.delay; n&&(this.MB=iA(n));var K=this.eE||y.end;if(this.JF?K!=null:K!=void 0)this.clipEnd=$H(this.clipEnd,K);var xu=y.fmt_list;xu&&(this.Qx=xu);y.heartbeat_preroll&&this.bv.push("heartbeat");bJe&&(this.x8=-Math.floor(Math.random()*10),this.SF=-Math.floor(Math.random()*40));var T=y.is_listed;T&&(this.isListed=xH(this.isListed,T));var Y=y.is_private;Y&&(this.isPrivate=xH(this.isPrivate,Y));var J=y.is_dni;J&&(this.Zh=xH(this.Zh,J));var ey=y.dni_color;ey&&(this.BK=UX(this.BK,ey));var l7=y.pipable;l7&&(this.pipable= xH(this.pipable,l7));this.fK=(this.GI=this.pipable&&this.P4.GM)&&!this.P4.showMiniplayerButton;var PF=y.paid_content_overlay_duration_ms;PF&&(this.paidContentOverlayDurationMs=iA(PF));var vF=y.paid_content_overlay_text;vF&&(this.paidContentOverlayText=vF);var Ey=y.url_encoded_fmt_stream_map;Ey&&(this.C4=Ey);var Sy=y.hls_formats;Sy&&(this.hlsFormats=Sy);var B1=y.hlsvp;B1&&(this.hlsvp=B1);var VY=y.live_start_walltime;VY&&(this.f3=typeof VY==="number"?VY:iA(VY));var Iq=y.live_manifest_duration;Iq&&(this.wu= typeof Iq==="number"?Iq:iA(Iq));var p7=y.player_params;p7&&(this.playerParams=p7);var Ba=y.partnerid;Ba&&(this.partnerId=$H(this.partnerId,Ba));var u7=y.probe_url;u7&&(this.probeUrl=HK(g.lJ(u7,{cpn:this.clientPlaybackNonce})));var XU=y.pyv_billable_url;XU&&Zsx(XU)&&(this.Dd=XU);var BF=y.pyv_conv_url;BF&&Zsx(BF)&&(this.z8=BF);n1F(this,y);this.startSeconds>0?this.B("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.zA||this.DT||y.start||y.startSeconds)&&this.H4("lss",{css:this.startSeconds, pcss:this.zA,iss:this.DT,ps:y.start||void 0,pss:y.startSeconds||void 0}):(this.startSeconds=$H(this.startSeconds,this.zA||this.DT||y.start||y.startSeconds),this.B("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.H4("lsss",{css:this.startSeconds,pcss:this.zA,iss:this.DT,ps:y.start||void 0,pss:y.startSeconds||void 0}),this.C1=this.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var jq=y.live_utc_start;jq!=null?this.liveUtcStartSeconds=Number(jq):K2y(this.startSeconds)&& (this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var fI=y.utc_start_millis;fI&&(this.liveUtcStartSeconds=Number(fI)*.001)}var yY=y.stream_time_start_millis;yY&&(this.JT=Number(yY)*.001);var rK=this.DT||y.start;(this.JF?rK==null||Number(y.resume)===1:rK==void 0||y.resume=="1")||this.isLivePlayback||(this.clipStart=$H(this.clipStart,rK));var b3=y.url_encoded_third_party_media;b3&&(this.Bz=xz(b3));var Ve=y.ypc_offer_button_formatted_text;if(Ve){var Nm= JSON.parse(Ve);this.fY=Nm!=null?Nm:null;this.WP=Ve}var eU=y.ypc_offer_button_text;eU&&(this.Nj=eU);var ME=y.ypc_offer_description;ME&&(this.Ic=ME);var wp=y.ypc_offer_headline;wp&&(this.Ts=wp);var h_=y.ypc_full_video_message;h_&&(this.Vw=h_);var FF=y.ypc_offer_id;FF&&(this.PH=FF);var Er=y.ypc_buy_url;Er&&(this.p9=Er);var Pa=y.ypc_item_thumbnail;Pa&&(this.Xa=Pa);var A_=y.ypc_item_title;A_&&(this.eN=A_);var sN=y.ypc_item_url;sN&&(this.WX=sN);var $y=y.ypc_vid;$y&&(this.s$=$y);y.ypc_overlay_timeout&&(this.cP= Number(y.ypc_overlay_timeout));var KQ=y.ypc_trailer_player_vars;KQ&&(this.YM=f7(KQ));var HA=y.ypc_original_itct;HA&&(this.vC=HA);this.CD=UX(this.CD,y.ucid);this.Xd=y.storyboard_spec||null;this.fI=y.live_storyboard_spec||null;this.tK=y.iv_endscreen_url||null;this.vD=xH(this.vD,y.iv3_module);this.rD=xH(this.rD,y.ypc_module);this.bX=xH(this.bX,y.ypc_clickwrap_module);this.rD&&this.bv.push("ypc");this.bX&&this.bv.push("ypcRentalActivation");this.AS={video_id:y.video_id,eventid:y.eventid,cbrand:y.cbrand, cbr:y.cbr,cbrver:y.cbrver,c:y.c,cver:y.cver,ctheme:y.ctheme,cplayer:y.cplayer,cmodel:y.cmodel,cnetwork:y.cnetwork,cos:y.cos,cosver:y.cosver,cplatform:y.cplatform,user_age:y.user_age,user_display_image:y.user_display_image,user_display_name:y.user_display_name,user_gender:y.user_gender,csi_page_type:y.csi_page_type,csi_service_name:y.csi_service_name,enablecsi:y.enablecsi,enabled_engage_types:y.enabled_engage_types};uuN(this,y);var bz=y.cotn;bz&&(this.cotn=bz);Z_V(this)?fX(this)&&(this.isLivePlayback&& this.Y5&&(this.vO=!0),this.RN&&(this.Wy=!0)):yYz(this)?this.vO=!0:GON(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&QQ(this):this.Y5&&(this.P4.AF==="yt"&&this.US()&&this.B("drm_manifestless_unplugged")&&this.B("html5_deprecate_manifestful_fallback")?this.H4("deprecateMflFallback",{}):this.vO=!0);var Sq=y.adpings;Sq&&(this.qH=Sq?f7(Sq):null);var UN=y.feature;UN&&(this.Bi=UN);var Qi=y.referrer;Qi&&(this.referrer=Qi);this.clientScreenNonce=UX(this.clientScreenNonce,y.csn);this.S$= $H(this.S$,y.root_ve_type);this.tM=$H(this.tM,y.kids_age_up_mode);this.JF||y.kids_app_info==void 0||(this.kidsAppInfo=y.kids_app_info);this.JF&&y.kids_app_info!=null&&(this.kidsAppInfo=y.kids_app_info);this.WE=xH(this.WE,y.upg_content_filter_mode);this.unpluggedFilterModeType=$H(this.unpluggedFilterModeType,y.unplugged_filter_mode_type);var CY=y.unplugged_location_info;CY&&(this.zl=CY);var zG=y.unplugged_partner_opt_out;zG&&(this.jF=UX("",zG));this.sx=xH(this.sx,y.disable_watch_next);this.FT=UX(this.FT, y.internal_ip_override);this.V7=!!y.is_yto_interstitial;this.interstitials.length&&this.bv.push("playableSequences");var ON=y.sG;ON&&(this.sG=ON);this.hF=UX(this.hF,y.csi_timer);y.watchUrl&&(this.watchUrl=y.watchUrl);var NV=y.watch_endpoint;this.B("html5_attach_watch_endpoint_ustreamer_config")&&NV&&km2(this,NV);if(NV==null?0:NV.ustreamerConfig)this.cK=nN(NV.ustreamerConfig);var LY,Ig,v0=NV==null?void 0:(LY=NV.loggingContext)==null?void 0:(Ig=LY.qoeLoggingContext)==null?void 0:Ig.serializedContextData; v0&&(this.VO=v0);g.bc(this.P4)&&this.P4.bl&&(this.embedsRct=UX(this.embedsRct,y.rct),this.embedsRctn=UX(this.embedsRctn,y.rctn));y.embed_config&&(this.KH=y.embed_config);this.TR=this.TR||!!y.pause_at_start;y.default_active_source_video_id&&(this.defaultActiveSourceVideoId=y.default_active_source_video_id);this.pM=this.pM||!!y.live_preload}; g.R.G=function(){return this.P4}; g.R.B=function(y){return this.P4.B(y)}; g.R.u2=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.R.hasSupportedAudio51Tracks=function(){var y;return!((y=this.R5)==null||!y.Az)}; g.R.getUserAudio51Preference=function(){var y=1;sJ(this.P4)&&this.B("html5_ytv_surround_toggle_default_off")?y=0:FI(this.P4)&&this.isLivePlayback&&this.sM()&&(y=0);var t;return(t=g.JU("yt-player-audio51"))!=null?t:y}; g.R.Rt=function(){this.Qv()||(this.V.K||this.V.unsubscribe("refresh",this.Rt,this),this.OL(-1))}; g.R.OL=function(y){if(!this.isLivePlayback||!this.L||this.L.flavor!=="fairplay"){var t=pU2(this.V,this.w9);if(t.length>0){for(var a=g.p(t),r=a.next();!r.done;r=a.next())r=r.value,r.startSecs=Math.max(r.startSecs,this.WO()),this.B("html5_cuepoint_identifier_logging")&&r.event==="start"&&this.H4("cuepoint",{pubCue:r.identifier,segNum:y});this.publish("cuepointupdated",t,y);this.w9+=t.length;if(QQ(this)&&this.P4.Bb())for(t=g.p(t),a=t.next();!a.done;a=t.next())a=a.value,this.H4("cuepoint",{segNum:y,event:a.event, startSecs:a.startSecs,id:a.identifier.slice(-16)}),a.event==="start"&&(a=a.startSecs,this.OE.start=this.FB,this.OE.end=a+3)}}}; g.R.AO=function(){this.Qv()||(this.loading=!1,this.publish("dataloaded"))}; g.R.sM=function(){return this.B0!==void 0?this.B0:this.B0=!!this.YJ||!!this.V&&gP(this.V)}; g.R.PV=function(y){var t=this;if(this.Qv())return m_();this.n1=this.d0=this.Y=null;sf(this,"html5_high_res_logging_always")&&(this.P4.ix=!0);return rYx(this,y).then(void 0,function(){return h67(t,y)}).then(void 0,function(){return Fxz(t)}).then(void 0,function(){return xpn(t)})}; g.R.SL=function(y){this.Y=y;E4N(this,this.Y.getAvailableAudioTracks());if(this.Y){y=g.p(this.Y.videoInfos);for(var t=y.next();!t.done;t=y.next()){t=t.value;var a=t.containerType;a!==0&&(this.Vu[a]=t.id)}}y=this.getAvailableAudioTracks();y=y.concat(this.ix);for(t=0;t0)return this.Y.getAvailableAudioTracks();if(this.MP)return this.MP;if(this.xc)return this.xc}return[]}; g.R.getAudioTrack=function(){var y=this;if(this.D&&!BU(this.D)){var t=g.D9(this.getAvailableAudioTracks(),function(E){return E.id===y.D.id}),a; if(!t&&((a=this.D.qK)==null?0:a.id)){var r=this.D.qK.id;t=g.D9(this.getAvailableAudioTracks(),function(E){return E.qK.id===r}); this.H4("nat",{id:this.D.id,track:!!t})}return t||this.ix}if(this.MP){if(!this.SQ)for(t=g.p(this.MP),a=t.next();!a.done;a=t.next())if(a=a.value,a.qK.getIsDefault()){this.SQ=a;break}return this.SQ||this.ix}return this.ix}; g.R.getPlayerResponse=function(){return this.playerResponse}; g.R.getWatchNextResponse=function(){return this.o5}; g.R.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.R.getHeartbeatResponse=function(){return this.hI}; g.R.MU=function(){return this.watchUrl?this.watchUrl:this.P4.getVideoUrl(this.videoId)}; g.R.cD=function(){return!!this.V&&(Ngn(this.V)||dBb(this.V)||XUd(this.V))}; g.R.getEmbeddedPlayerResponse=function(){return this.Fi}; g.R.yR=function(){return(this.eventLabel||this.P4.o5)==="shortspage"}; g.R.isAd=function(){return this.qO||!!this.adFormat}; g.R.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.R.NP=function(){var y,t,a;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((y=this.playerResponse)==null?0:(t=y.playerConfig)==null?0:(a=t.daiConfig)==null?0:a.ssaEnabledPlayback)}; g.R.pP=function(){return this.A8}; g.R.Yw=function(){return this.rD||this.uK}; g.R.hX=function(){return sf(this,"html5_samsung_vp9_live")}; g.R.H4=function(y,t,a){this.publish("ctmp",y,t,a)}; g.R.Tu=function(y,t,a){this.publish("ctmpstr",y,t,a)}; g.R.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.R.getGetAdBreakContext=function(y,t){y=y===void 0?NaN:y;t=t===void 0?NaN:t;var a={isSabr:V3(this)},r,E=(r=this.getHeartbeatResponse())==null?void 0:r.adBreakHeartbeatParams;E&&(a.adBreakHeartbeatParams=E);if(this.B("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.V&&!isNaN(y)&&!isNaN(t)){t=y-t;for(var h in this.V.V)if(r=this.V.V[h],r.info.ji()||r.info.Ee())if(r=r.index,r.isLoaded()){h=r.G5(t);r=r.Pj(h)+t-r.getStartTime(h);this.H4("gabc",{t:y.toFixed(3),mt:t.toFixed(3),sg:h,igt:r.toFixed(3)}); a.livePlaybackPosition={utcTimeMillis:""+(r*1E3).toFixed(0)};break}}return a}; g.R.isEmbedsShortsMode=function(y,t){if(!g.bc(this.P4)||(this.P4.d0||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||t)return!1;if(this.B("embeds_enable_shorts")){var a,r;return!!((a=this.embeddedPlayerConfig)==null?0:(r=a.embeddedPlayerFlags)==null?0:r.isShortsExperienceEligible)}var E,h;return!!(((E=this.embeddedPlayerConfig)==null?0:(h=E.embeddedPlayerFlags)==null?0:h.isShortsExperienceEligible)&&y.width<=y.height)}; g.R.RM=function(y,t){t?this.EZ||(this.EZ=y):this.u4||(this.u4=y)}; g.R.I5=function(){g.FM.prototype.I5.call(this);this.qH=null;delete this.J4;delete this.accountLinkingConfig;delete this.V;this.Y=this.hI=this.playerResponse=this.o5=null;this.C4=this.adaptiveFormats="";delete this.botguardData;this.L1=this.suggestions=this.tQ=null;this.sabrContextUpdates.clear()}; var bJe=!0;var BtH={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},cYH={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Hqb={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},n47={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"},JYN={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},mp2={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"},bqy={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.N(Lf,g.H);g.R=Lf.prototype;g.R.handleExternalCall=function(y,t,a){var r=this.state.W[y],E=this.state.Z[y],h=r;if(E)if(a&&JH(a,hHi))h=E;else if(!r)throw Error('API call from an untrusted origin: "'+a+'"');this.logApiCall(y,a);if(h){a=!1;r=g.p(t);for(E=r.next();!E.done;E=r.next())if(String(E.value).includes("javascript:")){a=!0;break}a&&g.ls(Error('Dangerous call to "'+y+'" with ['+t+"]."));return h.apply(this,t)}throw Error('Unknown API method: "'+y+'".');}; g.R.logApiCall=function(y,t,a){var r=this.app.G();r.eY&&!this.state.hF.has(y)&&(this.state.hF.add(y),g.Mc("webPlayerApiCalled",{callerUrl:r.loaderUrl,methodName:y,origin:t||void 0,playerStyle:r.playerStyle||void 0,embeddedPlayerMode:r.d0,errorCode:a}))}; g.R.publish=function(y){var t=g.w2.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[y].concat(g.i7(t)));if(y==="videodatachange"||y==="resize"||y==="cardstatechange")this.state.K.publish.apply(this.state.K,[y].concat(g.i7(t))),this.state.D.publish.apply(this.state.D,[y].concat(g.i7(t)))}; g.R.W4=function(y){var t=g.w2.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[y].concat(g.i7(t)));this.state.K.publish.apply(this.state.K,[y].concat(g.i7(t)))}; g.R.hj=function(y){var t=g.w2.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[y].concat(g.i7(t)));this.state.K.publish.apply(this.state.K,[y].concat(g.i7(t)));this.state.D.publish.apply(this.state.D,[y].concat(g.i7(t)))}; g.R.v1=function(y){var t=g.w2.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[y].concat(g.i7(t)));this.state.K.publish.apply(this.state.K,[y].concat(g.i7(t)));this.state.D.publish.apply(this.state.D,[y].concat(g.i7(t)));this.state.L.publish.apply(this.state.L,[y].concat(g.i7(t)))}; g.R.B=function(y){return this.app.G().B(y)}; g.R.I5=function(){if(this.state.element){var y=this.state.element,t;for(t in this.state.V)this.state.V.hasOwnProperty(t)&&(y[t]=null);this.state.element=null}g.H.prototype.I5.call(this)};g.N(N$,g.S4);N$.prototype.publish=function(y){var t=g.w2.apply(1,arguments);if(this.L.has(y))return this.L.get(y).push(t),!0;var a=!1;try{for(t=[t],this.L.set(y,t);t.length;)a=g.S4.prototype.publish.call.apply(g.S4.prototype.publish,[this,y].concat(g.i7(t.shift())))}finally{this.L.delete(y)}return a};g.N(dO,g.H);dO.prototype.I5=function(){this.L.dispose();this.D.dispose();this.K.dispose();this.Y.dispose();this.hF=this.V=this.Z=this.W=this.J=void 0};var ImH=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.N(k6,Lf);g.R=k6.prototype;g.R.getApiInterface=function(){return Array.from(this.state.J)}; g.R.aT=function(y,t){this.state.L.subscribe(y,t)}; g.R.Xzf=function(y,t){this.state.L.unsubscribe(y,t)}; g.R.getPlayerState=function(y){return F4N(this.app,y)}; g.R.CU=function(){return F4N(this.app)}; g.R.sSm=function(y,t,a){j9(this)&&(nm(this.app,!0,1),oC(this.app,y,t,a,1))}; g.R.getCurrentTime=function(y,t,a){var r=this.getPlayerState(y);if(this.app.getAppState()===2&&r===5){var E;return((E=this.app.getVideoData())==null?void 0:E.startSeconds)||0}return this.B("web_player_max_seekable_on_ended")&&r===0?vf(this.app,y):y?this.app.getCurrentTime(y,t,a):this.app.getCurrentTime(y)}; g.R.vx=function(){return this.app.getCurrentTime(1)}; g.R.a8=function(){var y=this.app.Pj(1);return isNaN(y)?this.getCurrentTime(1):y}; g.R.QA=function(){return this.app.getDuration(1)}; g.R.OF=function(y,t){y=g.tE(Math.floor(y),0,100);isFinite(y)&&SH(this.app,{volume:y,muted:this.isMuted()},t)}; g.R.yV1=function(y){this.OF(y,!1)}; g.R.ow=function(y){SH(this.app,{muted:!0,volume:this.getVolume()},y)}; g.R.fA1=function(){this.ow(!1)}; g.R.QG=function(y){SH(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},y)}; g.R.xCe=function(){Wq(this.app)||this.QG(!1)}; g.R.getPlayerMode=function(){var y={};this.app.getVideoData().Zh&&(y.pfp={enableIma:this.app.nM().allowImaMonetization,autoplay:ZQ(this.app.nM()),mutedAutoplay:this.app.nM().mutedAutoplay});return y}; g.R.g8=function(){var y=this.app.getPresentingPlayerType();if(y===2&&!this.app.n0()){var t=kd(this.app.gN());if(!(EPV(t)||g.bc(this.app.G())&&g.D(this.app.le().getPlayerState(),1024))||han(t))return}(t=this.app.Hl().h9)?t.playVideo():this.app.playVideo(y)}; g.R.i_7=function(){nm(this.app,!0,1);this.g8()}; g.R.pauseVideo=function(y){var t=this.app.getPresentingPlayerType();if(t!==2||this.app.n0()||EPV(kd(this.app.gN()))){var a=this.app.Hl().h9;a?a.pauseVideo():this.app.pauseVideo(t,y)}}; g.R.Xlm=function(){var y=this.app,t=!1;y.j.MK&&(y.Mr.publish("pageTransition"),t=!0);y.stopVideo(t)}; g.R.clearVideo=function(){}; g.R.getAvailablePlaybackRates=function(){var y=this.app.G();if(y.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(y.D?y.ancestorOrigins[0]:window.location.origin)||y.IJ)return J79;y=this.app.getVideoData();var t=y.hS,a=y.O$;return os7.filter(function(r){return r>=t&&r<=a})}return[1]}; g.R.getPlaybackQuality=function(y){return(y=this.app.dH(y))?y.getPlaybackQuality():"unknown"}; g.R.mZ7=function(){}; g.R.getAvailableQualityLevels=function(y){return(y=this.app.dH(y))?(y=g.v$(y.VB(),function(t){return t.quality}),y.length&&(y[0]==="auto"&&y.shift(),y=y.concat(["auto"])),y):[]}; g.R.xO=function(){return this.getAvailableQualityLevels(1)}; g.R.wZ=function(){return this.fT()}; g.R.fU=function(){return 1}; g.R.getVideoLoadedFraction=function(y){return this.app.getVideoLoadedFraction(y)}; g.R.fT=function(){return this.getVideoLoadedFraction()}; g.R.b_=function(){return 0}; g.R.getSize=function(){var y=this.app.ZE().getPlayerSize();return{width:y.width,height:y.height}}; g.R.setSize=function(){this.app.ZE().resize()}; g.R.loadVideoById=function(y,t,a,r){if(!y)return!1;y=Xz(y,t,a);return this.app.loadVideoByPlayerVars(y,r)}; g.R.oEF=function(y,t,a){y=this.loadVideoById(y,t,a,1);nm(this.app,y,1)}; g.R.cueVideoById=function(y,t,a,r){y=Xz(y,t,a);this.app.cueVideoByPlayerVars(y,r)}; g.R.zq=function(y,t,a){this.cueVideoById(y,t,a,1)}; g.R.loadVideoByUrl=function(y,t,a,r){y=Kxy(y,t,a);return this.app.loadVideoByPlayerVars(y,r)}; g.R.zdr=function(y,t,a){y=this.loadVideoByUrl(y,t,a,1);nm(this.app,y,1)}; g.R.cueVideoByUrl=function(y,t,a,r){y=Kxy(y,t,a);this.app.cueVideoByPlayerVars(y,r)}; g.R.im=function(y,t,a){this.cueVideoByUrl(y,t,a,1)}; g.R.X$=function(){var y=this.app.G();if(y.Vv)return"";var t=this.app.nM(),a=void 0;t.isLivePlayback||(a=Math.floor(this.app.getCurrentTime(1)));return y.getVideoUrl(t.videoId,this.getPlaylistId()||void 0,a)}; g.R.F$=function(){return this.app.getDebugText()}; g.R.getVideoEmbedCode=function(){var y=this.app.G();if(y.Vv)return"";var t=this.app.nM();return y.getVideoEmbedCode(t.isPrivate?"":t.title,this.app.nM().videoId,this.app.ZE().getPlayerSize(),this.getPlaylistId()||void 0)}; g.R.UU=function(y,t,a){return Usd(this.app,y,t,a)}; g.R.removeCueRange=function(y){return this.app.Ir(y)}; g.R.loadPlaylist=function(y,t,a,r){this.app.loadPlaylist(y,t,a,r)}; g.R.IAf=function(y,t,a,r){this.loadPlaylist(y,t,a,r);nm(this.app,!0,1)}; g.R.cuePlaylist=function(y,t,a,r){this.app.cuePlaylist(y,t,a,r)}; g.R.nextVideo=function(y,t){this.app.nextVideo(y,t)}; g.R.lA1=function(){this.nextVideo();nm(this.app,!0,1)}; g.R.previousVideo=function(y){this.app.previousVideo(y)}; g.R.ymr=function(){this.previousVideo();nm(this.app,!0,1)}; g.R.playVideoAt=function(y){this.app.playVideoAt(y)}; g.R.YMe=function(y){this.playVideoAt(y);nm(this.app,!0,1)}; g.R.setShuffle=function(y){var t=this.app.getPlaylist();t&&t.setShuffle(y)}; g.R.setLoop=function(y){var t=this.app.getPlaylist();t&&(t.loop=y)}; g.R.Bx=function(){var y=this.app.getPlaylist();if(!y)return null;for(var t=[],a=0;a=400)if(y=this.nM(),this.C.G().B("client_respect_autoplay_switch_button_renderer"))y=!!y.autoplaySwitchButtonRenderer;else{var t,a,r,E;y=!!((t=y.getWatchNextResponse())==null?0:(a=t.contents)==null?0:(r=a.twoColumnWatchNextResults)==null?0:(E=r.autoplay)==null?0:E.autoplay)!==!1}y?this.V||(this.V=!0,this.lY(this.V),t=this.nM(),this.n6(t.autonavState),this.C.logVisibility(this.element,this.V)): (this.V=!1,this.lY(this.V))}; g.R.n6=function(y){nf7(this)?this.isChecked=y!==1:((y=y!==1)||(y=g.qe(),y=g.WE("web_autonav_allow_off_by_default")&&!y.o7(141)&&g.yd("AUTONAV_OFF_BY_DEFAULT")?!1:!y.o7(140)),this.isChecked=y);V_u(this)}; g.R.onClick=function(){this.isChecked=!this.isChecked;this.C.Ck(this.isChecked?2:1);V_u(this);if(nf7(this)){var y=this.nM().autoplaySwitchButtonRenderer;this.isChecked&&(y==null?0:y.onEnabledCommand)?this.C.W4("innertubeCommand",y.onEnabledCommand):!this.isChecked&&(y==null?0:y.onDisabledCommand)&&this.C.W4("innertubeCommand",y.onDisabledCommand)}this.C.logClick(this.element)}; g.R.getValue=function(){return this.isChecked}; g.R.nM=function(){return this.C.getVideoData(1)};g.N(my7,FK);g.N(lh,zq);lh.prototype.kG=function(y){y?this.V||(this.OS.NK(this),this.V=!0):this.V&&(this.OS.oi(this),this.V=!1);this.V&&O2(this,yHx())}; lh.prototype.D=function(){g.sz(this.element,"ytp-menuitem-highlight-transition-enabled")}; lh.prototype.Y=function(y){var t=yHx();y!==t&&(t=g.qe(),D4(190,y),D4(192,!0),t.save(),this.C.W4("cinematicSettingsToggleChange",y))}; lh.prototype.I5=function(){this.V&&this.OS.oi(this);zq.prototype.I5.call(this)};g.N(uh,FK);uh.prototype.updateCinematicSettings=function(y){this.V=y;var t;(t=this.menuItem)==null||t.kG(y);this.api.publish("onCinematicSettingsVisibilityChange",y)};g.N(ofd,FK);g.N(VB,FK);VB.prototype.setCreatorEndscreenVisibility=function(y){var t;(t=Sn(this.api.gN()))==null||t.lY(y)}; VB.prototype.V=function(y){function t(r){r==="creatorendscreen"&&(r=Sn(a.api.gN()))&&r.DZ5(a.hideButton)} var a=this;this.hideButton=y;this.events.N(this.api,"modulecreated",t);t("creatorendscreen")};g.N(byF,FK);g.N(na,zq);na.prototype.L=function(y){this.D(y?1:0)}; na.prototype.MD=function(){if(this.enableNewAudioSettingsMenu||this.Y){var y=this.C.getPresentingPlayerType();y===2||y===3?this.V&&(this.V=!1,this.OS.oi(this)):(y=this.getDrcState(),y!==1?(y===0?(O2(this,this.K()===1),this.setEnabled(!0)):(O2(this,!1),this.setEnabled(!1)),this.V||(this.OS.NK(this),this.V=!0)):this.V&&(this.OS.oi(this),this.V=!1))}else{y=this.hasDrcAudioTrack();var t=this.K()===1&&y;O2(this,t);this.setEnabled(y)}}; na.prototype.I5=function(){this.OS.oi(this);zq.prototype.I5.call(this)}; na.prototype.J=function(){this.C.logClick(this.element)};g.N(m1,FK);g.R=m1.prototype;g.R.getDrcUserPreference=function(){return this.V}; g.R.setDrcUserPreference=function(y){this.api.H4("drc_set",{pref:y});g.m7("yt-player-drc-pref",y,31536E3);y!==this.V&&(this.V=y,this.updateEnvironmentData(),this.uw()&&this.api.Ag(),this.api.AV())}; g.R.updateEnvironmentData=function(){this.api.G().Ri=this.V===1}; g.R.uw=function(){var y,t,a=(y=this.api.getVideoData())==null?void 0:(t=y.Y)==null?void 0:t.V;if(!a)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.B("mta_drc_mutual_exclusion_removal")){var r,E,h=(r=this.api.lL())==null?void 0:(E=r.qK)==null?void 0:E.id;return rQ(a,function(F){var x;return F.audio.V&&((x=F.qK)==null?void 0:x.id)===h})}return rQ(a,function(F){var x; return((x=F.audio)==null?void 0:x.V)===!0})}; g.R.getDrcState=function(){return this.api.Hr(3)};g.N(JX,FK);JX.prototype.onVideoDataChange=function(){var y=this,t=this.api.getVideoData();this.api.g7("embargo",1);var a=t==null?void 0:t.pI.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(a==null?0:a.length)?qvV(this,a.filter(function(r){return cd7(y,r)})):(t==null?0:t.cueRanges)&&qvV(this,t.cueRanges.filter(function(r){return cd7(y,r)}))}; JX.prototype.K=function(y){return y.embargo!==void 0}; JX.prototype.I5=function(){FK.prototype.I5.call(this);this.V={}};g.N(oX,FK); oX.prototype.addEmbedsConversionTrackingParams=function(y){var t=this.api.G(),a=t.widgetReferrer,r=t.ND,E=this.V,h="",F=t.getWebPlayerContextConfig();F&&(h=F.embedsIframeOriginParam||"");a.length>0&&(y.embeds_widget_referrer=a);r.length>0&&(y.embeds_referring_euri=r);t.D&&h.length>0&&(y.embeds_referring_origin=h);F&&F.embedsFeature&&(y.feature=F.embedsFeature);E.length>0&&(t.B("embeds_web_enable_lite_experiment_control_arm_logging")?E.unshift(28572):g.Lo(g.IE(t))&&E.unshift(159628),t=E.join(","),t= g.IB()?t:g.bn(t,4),y.source_ve_path=t);this.V.length=0};g.N(Yv7,FK);g.N(Dy1,FK);g.N(HP,g.H);HP.prototype.I5=function(){g.H.prototype.I5.call(this);this.V=null;this.K&&this.K.disconnect()};g.N(iyH,FK);g.N(bh,FK);bh.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.N(BP,g.q);BP.prototype.show=function(){g.q.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; BP.prototype.stopTimer=function(){this.V&&(this.V.dispose(),this.V=null)}; BP.prototype.onVideoDataChange=function(y){var t,a,r=(t=this.api.getVideoData())==null?void 0:(a=t.getPlayerResponse())==null?void 0:a.playabilityStatus;r&&(t=KEb(r),g.D(this.api.getPlayerStateObject(),128)||y==="dataloaderror"||!t?(this.K=0,this.stopTimer(),this.hide()):(y=(t.remainingTimeSecs||0)*1E3,y>0&&(this.show(),this.updateValue("label",FQ(t.label)),TPy(this,y))))}; BP.prototype.I5=function(){this.stopTimer();g.q.prototype.I5.call(this)};g.N(G9n,FK);g.N(cP,g.q);cP.prototype.onClick=function(){this.Mr.logClick(this.element);this.Mr.W4("onFullerscreenEduClicked")}; cP.prototype.kG=function(){this.Mr.isFullscreen()?this.V?this.fade.hide():this.fade.show():this.hide();this.Mr.logVisibility(this.element,this.Mr.isFullscreen()&&!this.V)};g.N(qU,FK);qU.prototype.updateFullerscreenEduButtonSubtleModeState=function(y){var t;(t=this.V)!=null&&(g.Uz(t.element,"ytp-fullerscreen-edu-button-subtle",y),y&&!t.K&&(t.Mr.B("player_tooltip_data_title_killswitch")?t.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"):t.element.setAttribute("data-tooltip-title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),u6(t.Mr,t.element,t),t.K=!0))}; qU.prototype.updateFullerscreenEduButtonVisibility=function(y){var t;(t=this.V)!=null&&(t.V=y,t.kG())};g.N(Zyd,g.q);g.N(aEn,FK);g.N(Y2,FK);Y2.prototype.getSphericalProperties=function(){var y=g.Bq(this.api.gN());return y?y.getSphericalProperties():{}}; Y2.prototype.setSphericalProperties=function(y){if(y){var t=g.Bq(this.api.gN());t&&t.setSphericalProperties(y,!0)}};g.N(DZ,FK);g.R=DZ.prototype;g.R.createClientVe=function(y,t,a,r){this.api.createClientVe(y,t,a,r===void 0?!1:r)}; g.R.createServerVe=function(y,t,a){this.api.createServerVe(y,t,a===void 0?!1:a)}; g.R.setTrackingParams=function(y,t){this.api.setTrackingParams(y,t)}; g.R.logClick=function(y,t){this.api.logClick(y,t)}; g.R.logVisibility=function(y,t,a){this.api.logVisibility(y,t,a)}; g.R.hasVe=function(y){return this.api.hasVe(y)}; g.R.destroyVe=function(y){this.api.destroyVe(y)};var EvV=!1;ih.prototype.setPlaybackRate=function(y){this.playbackRate=Math.max(1,y)}; ih.prototype.getPlaybackRate=function(){return this.playbackRate};tS.prototype.v2=function(y){var t=g.cU(y.info.z7.info,this.qr.US),a=y.info.a5+this.D,r=y.info.startTime*1E3;if(this.policy.R5)try{r=this.policy.R5?g.QH(y)*1E3:y.info.startTime*1E3}catch(F){Math.random()>.99&&this.logger&&(r=Mz(y.K).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:y.info.iJ(),encodedDataView:g.H$(r,4)})),r=y.info.startTime*1E3}var E=y.info.clipId,h=this.policy.R5?g.FWF(y)*1E3:y.info.duration*1E3;this.policy.R5&&(r<0||h<0)&&(this.logger&&(this.logger({missingSegInfo:y.info.iJ(), startTimeMs:r,durationMs:h}),this.policy.hW||(r<0&&(r=y.info.startTime*1E3),h<0&&(h=y.info.duration*1E3))),this.policy.hW&&(r<0&&(r=y.info.startTime*1E3),h<0&&(h=y.info.duration*1E3)));return{formatId:t,a5:a,startTimeMs:r,clipId:E,y0:h}}; tS.prototype.NN=function(y){this.timestampOffset=y};aZ.prototype.seek=function(y,t){y!==this.targetTime&&(this.seekCount=0);this.targetTime=y;var a=this.videoTrack.V,r=this.audioTrack.V,E=this.audioTrack.wN,h=dNb(this,this.videoTrack,y,this.videoTrack.wN,t);t=dNb(this,this.audioTrack,this.policy.I7?y:h,E,t);y=Math.max(y,h,t);this.D=!0;this.qr.isManifestless&&(MT7(this,this.videoTrack,a),MT7(this,this.audioTrack,r));return y}; aZ.prototype.isSeeking=function(){return this.D}; aZ.prototype.fP=function(y){this.K=y}; var Nzx=2/24;var fEd=0;var zV;Ox.prototype.add=function(y){if(this.pos+20>this.data.length){var t=new Uint8Array(this.data.length*2);t.set(this.data);this.data=t}for(;y>31;)this.data[this.pos++]=zV[(y&31)+32],y>>=5;this.data[this.pos++]=zV[y|0]}; Ox.prototype.Tv=function(){return g.dj(this.data.subarray(0,this.pos))}; Ox.prototype.reset=function(){this.pos=0};g.R=wH.prototype;g.R.Tg=function(){this.hF=this.now();S5u(this.xE,this.hF);this.w0.Tg()}; g.R.oX=function(y,t){var a=this.policy.K?(0,g.Wx)():0;RZ(this,y,t);y-this.J<10&&this.K>0||this.EX(y,t);this.w0.oX(y,t);this.policy.K&&(y=(0,g.Wx)()-a,this.zl+=y,this.n1=Math.max(y,this.n1))}; g.R.EX=function(y,t){var a=(y-this.J)/1E3,r=t-this.Y;this.CH||(EEF(this.xE,a,r),this.AM(a,r));this.J=y;this.Y=t}; g.R.fb=function(){this.DE&&jyN(this);this.w0.fb()}; g.R.eb=function(y){this.DE||(this.DE=this.L-this.XB+y,this.ZA=this.L,this.nJ=this.W)}; g.R.nB=function(y,t){y=y===void 0?this.W:y;t=t===void 0?this.L:t;this.K>0||(this.Z=y,this.K=t,this.AF=this.isActive=!0)}; g.R.NS=function(){return this.dP||2}; g.R.HQ=function(){}; g.R.Z3=function(){var y,t={rn:this.requestNumber,rt:(this.W-this.V).toFixed(),lb:this.L,stall:(1E3*this.D).toFixed(),ht:(this.hF-this.V).toFixed(),elt:(this.Z-this.V).toFixed(),elb:this.K,d:(y=this.d0)==null?void 0:y.Tv()};this.url&&r9d(t,this.url);this.policy.K&&(t.mph=this.n1.toFixed(),t.tph=this.zl.toFixed());t.ulb=this.L1;t.ult=this.Vv;return t}; g.R.now=function(){return(0,g.Wx)()}; g.R.deactivate=function(){this.isActive&&(this.isActive=!1)};g.N(Nf,wH);g.R=Nf.prototype;g.R.Z3=function(){var y=wH.prototype.Z3.call(this);y.pb=this.Bo;y.pt=(1E3*this.MK).toFixed();y.se=this.sR;return y}; g.R.Jg=function(){var y=this.w0;this.JF||(this.JF=y.Jg?y.Jg():1);return this.JF}; g.R.xD=function(){return this.PG?this.Jg()!==1:!1}; g.R.HZ=function(y,t,a){if(!this.FB){this.FB=!0;if(!this.CH){RZ(this,y,t);this.EX(y,t);var r=this.Jg();this.sR=a;if(!this.CH)if(r===2){r=y-this.Z0)||X2(this,r,t),this.K>0&&i9(this.xE,t,this.D));y=(y-this.V)/ 1E3||.01;this.policy.Z&&!(this.K>0)||gC(this.xE,y,this.Y,vv1(this),this.EG)}this.deactivate()}}; g.R.XT=function(y,t,a){a&&(this.JF=2);y<0&&this.dP&&(y=this.dP);t?this.r0+=y:this.C1+=y}; g.R.NS=function(){return this.C1||this.r0||wH.prototype.NS.call(this)}; g.R.EX=function(y,t){var a=(y-this.J)/1E3,r=t-this.Y,E=this.Jg();this.isActive?E===1&&((r>0||this.policy.L)&&(a>.2||r<1024)?(this.D+=a,r>0&&a>.2&&X2(this,this.YP?a:.05,r),this.Az=!0):r>0&&(X2(this,a,r),this.Az=!0)):t&&t>=this.policy.V&&this.nB(y,t);wH.prototype.EX.call(this,y,t)}; g.R.dw=function(y){if(!this.CH){RZ(this,y,this.L);var t=(y-this.V)/1E3;this.Jg()!==2&&this.K>0&&(this.D+=(y-this.J)/1E3,i9(this.xE,this.Y,this.D));gC(this.xE,t,this.Y,vv1(this),this.EG,!0);y=(y-this.J)/1E3;EEF(this.xE,y,0);this.AM(y,0)}}; g.R.nB=function(y,t){y=y===void 0?this.W:y;t=t===void 0?this.L:t;if(!(this.K>0)&&(wH.prototype.nB.call(this,y,t),this.Jg()===1)){t=(this.hF-this.V)/1E3;var a=(y-this.hF)/1E3;this.PG&&ki(this,this.now());this.I7||this.CH||(this.dP&&(a=Math.max(0,a-this.dP)),y=this.xE,y.Z.lW(1,t),y.d0.lW(1,a))}}; g.R.Mz=function(){this.PG&&ki(this,this.now());return this.yv}; g.R.HT=function(){var y;if(y=this.Y>this.I0)y=(y=this.Y)?y>=this.policy.V:!1;return y}; g.R.AG=function(){return this.R5}; g.R.Eb=function(y){y=y===void 0?this.now():y;if(this.PG){ki(this,y);if(this.JF?this.xD():this.o5!==this.Ff){var t=this.Ff;if(y0?a+y:a+Math.max(y,t)}; g.R.fQ=function(){return this.now()-this.Z}; g.R.Hk=function(){return(this.Y-this.K)*1E3/this.fQ()||0}; g.R.CT=function(){return this.Z};fW.prototype.feed=function(y){Uh(this.V,y);this.OY()}; fW.prototype.OY=function(){if(this.D){if(!this.V.totalLength)return;var y=this.V.split(this.Y-this.K),t=y.zm;y=y.q1;if(!this.w0.eb(this.D,t,this.K,this.Y))return;this.K+=t.totalLength;this.V=y;this.K===this.Y&&(this.D=this.Y=this.K=void 0)}for(;;){var a=0;y=g.p(u6d(this.V,a));t=y.next().value;a=y.next().value;a=g.p(u6d(this.V,a));y=a.next().value;a=a.next().value;if(t<0||y<0)break;if(!(a+y<=this.V.totalLength)){if(!(this.w0.eb&&a+1<=this.V.totalLength))break;a=this.V.split(a).q1;this.w0.eb(t,a,0, y)&&(this.D=t,this.K=a.totalLength,this.Y=y,this.V=new $k([]));break}y=this.V.split(a).q1.split(y);a=y.q1;this.w0.Va(t,y.zm);this.V=a}}; fW.prototype.dispose=function(){this.V=new $k};g.R=WR.prototype;g.R.wY=function(){return 0}; g.R.YY=function(){return null}; g.R.dE=function(){return null}; g.R.Yc=function(){return this.state>=1}; g.R.isComplete=function(){return this.state>=3}; g.R.oN=function(){return this.state===5}; g.R.onStateChange=function(){}; g.R.UR=function(y){var t=this.state;this.state=y;this.onStateChange(t);this.callback&&this.callback(this,t)}; g.R.ET=function(y){y&&this.state=this.xhr.HEADERS_RECEIVED}; g.R.getResponseHeader=function(y){try{return this.xhr.getResponseHeader(y)}catch(t){return""}}; g.R.sK=function(){return+this.getResponseHeader("content-length")}; g.R.E6=function(){return this.K}; g.R.nW=function(){return this.status>=200&&this.status<300&&!!this.K}; g.R.wb=function(){return this.V.totalLength>0}; g.R.gD=function(){var y=this.V;this.V=new $k;return y}; g.R.hZ=function(){return this.V}; g.R.abort=function(){this.Qv=!0;this.xhr.abort()}; g.R.g9=function(){return!0}; g.R.m7=function(){return this.Y}; g.R.xT=function(){return""};g.R=mNx.prototype; g.R.run=function(){var y=this,t,a,r,E,h,F,x,U,C,z,O,M,L,w,d;return g.m(function(k){if(k.V==1){y.status=200;t=y.V.get("docid");a=qm(y.V.get("fmtid")||"");r=y.V.get("lmt")||"0";E=+(y.V.get("csz")||0);if(!t||!a||!E)throw Error("Invalid local URL");y.V.get("ck")&&y.V.get("civ")&&(h=new nvu(y.V.get("ck"),y.V.get("civ")));F=y.range;x=Math.floor(F.start/E);U=Math.floor(F.end/E);C=x}if(k.V!=5)return C<=U?g.u(k,du7(t,a,r,C,h),5):k.xG(0);z=k.K;if(z===void 0)throw Error("invariant: data is undefined");O=C*E; M=(C+1)*E;L=Math.max(0,F.start-O);w=Math.min(F.end+1,M)-(L+O);d=new Uint8Array(z.buffer,L,w);y.K.append(d);y.loaded+=w;y.loaded=200&&this.status<300&&!!this.K}; g.R.wb=function(){return!!this.V.totalLength}; g.R.gD=function(){var y=this.V;this.V=new $k;return y}; g.R.hZ=function(){return this.V}; g.R.Qv=function(){return this.aborted}; g.R.abort=function(){this.Y&&this.Y.cancel().catch(function(){}); this.D&&this.D.abort();this.aborted=!0}; g.R.g9=function(){return!0}; g.R.m7=function(){return this.L}; g.R.xT=function(){return this.errorMessage};g.R=HRx.prototype;g.R.onDone=function(){if(!this.Qv){this.status=this.xhr.status;try{this.response=this.xhr.response,this.K=this.response.byteLength}catch(y){}this.V=!0;this.w0.fb()}}; g.R.H9=function(){this.xhr.readyState===2&&this.w0.Tg()}; g.R.onProgress=function(y){this.Qv||(this.status=this.xhr.status,this.V||(this.K=y.loaded),this.w0.oX((0,g.Wx)(),y.loaded))}; g.R.Ok=function(){return this.xhr.readyState>=2}; g.R.getResponseHeader=function(y){try{return this.xhr.getResponseHeader(y)}catch(t){return g.ls(Error("Could not read XHR header "+y)),""}}; g.R.sK=function(){return+this.getResponseHeader("content-length")}; g.R.E6=function(){return this.K}; g.R.nW=function(){return this.status>=200&&this.status<300&&this.V&&!!this.K}; g.R.wb=function(){return this.V&&!!this.response&&!!this.response.byteLength}; g.R.gD=function(){var y=this.response;this.response=void 0;return new $k([new Uint8Array(y)])}; g.R.hZ=function(){return new $k([new Uint8Array(this.response)])}; g.R.abort=function(){this.Qv=!0;this.xhr.abort()}; g.R.g9=function(){return!1}; g.R.m7=function(){return!1}; g.R.xT=function(){return""};g.N(QG,g.H);QG.prototype.U6=function(){if(!this.yY.length)return[];var y=this.yY;this.yY=[];this.Y=g.q9(y).info;return y}; QG.prototype.oy=function(){return this.yY}; QG.prototype.I5=function(){g.H.prototype.I5.call(this);this.V=null;this.yY.length=0;this.Sr.length=0;this.Y=null};g.N(pW,g.H);g.R=pW.prototype; g.R.Gvr=function(){if(!this.Qv()){var y=(0,g.Wx)(),t=!1;if(this.policy.ND){var a=this.timing.K>0?this.timing.Z:this.timing.V;this.policy.Tm0&&this.Y&&(a=this.Y);y=y-a-(this.policy.x8?this.policy.eY:this.timing.NS()*1E3);a=B3(eS(this),!1);y>=2E3*a?t=!0:y>=this.policy.Z8*a&&(this.V=this.policy.fI)}else if(this.timing.K>0){if(this.J){this.policy.nJ&&(this.V=0);return}y=this.timing.AG();this.timing.Eb();this.timing.AG()-y>=this.policy.ix*.8?(this.V++,t=this.V>=5):this.V=0}else t=y-this.timing.Mz(),this.policy.fI&& t>0&&(this.V+=1),y=B3(eS(this),!1)*this.policy.Ov,t=t>y*1E3;this.V>0&&this.w0.tG();t?this.UX():this.K.start()}}; g.R.UX=function(){this.L=!0;this.w0.hk();this.lastError="net.timeout";ur(this)}; g.R.canRetry=function(y){var t=eS(this);y=y?this.policy.AS:this.policy.Dk;return t.timedOut0&&(t=wj(t.V,0),y.ubyte=t,a===1&&t===0&&(y.b248180278=!0))}this.L_&&(y.rc=this.policy.EQ?this.L_:this.L_.toString());this.policy.MP&&this.Ll&&(y.tr=this.Ll);y.itag=this.info.Sr[0].z7.info.itag;y.ml=""+ +this.info.Sr[0].z7.K_();y.sq=""+this.info.Sr[0].a5;this.Ds&&(y.ifi=""+ +Q2(2,this.info.Pb.K));this.L_!==410&&this.L_!==500&&this.L_!==503||(y.fmt_unav="true");var r;(a=this.errorMessage||((r=this.xhr)==null? void 0:r.xT()))&&(y.msg=a);this.yH&&(y.smb="1");this.info.isDecorated()&&(y.sdai="1");return y}; g.R.oO=function(){return p37(this.timing)}; g.R.xT=function(){return this.xhr.xT()||""}; g.R.HT=function(){return this.isComplete()||this.timing.HT()}; g.R.oX=function(){!this.Qv()&&this.xhr&&(this.L_=this.xhr.status,this.policy.WE&&this.Am&&this.OG(!1),this.il()?this.ET(2):!this.V5&&this.HT()&&(this.ET(),this.V5=!0))}; g.R.Tg=function(){if(!this.Qv()&&this.xhr){if(!this.dS&&this.xhr.Ok()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var y=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.dS=((0,g.Wx)()-y)/1E3}this.xhr.Ok()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.AzX&&!OFV()&&g.m7("yt-player-headers-readable",!0,2592E3);y=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var t=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),a;(a=this.JI)==null||a.stop();this.Rq=y||this.Rq; this.H0=t||this.H0}}; g.R.fb=function(){var y=this.xhr;if(!this.Qv()&&y){this.L_=y.status;y=this.lw(y);if(this.policy.MP){var t;(t=this.JI)==null||t.stop()}y===5?ur(this.dV):this.UR(y);this.dV.K.stop()}}; g.R.lw=function(y){wyb(this);if(VG(this.dV,this.xhr.status,this.kx?this.timing.AF||this.Fa:this.xhr.nW(),!1,this.ev))return 5;var t="";nW(this.dV,this.xhr)&&(t=Y5F(this.dV,this.xhr));if(t)return bu(eS(this.dV)),this.info.hQ(this.Ds,t),3;t=y.E6();if(this.kP){this.OG(!0);wyb(this);if(VG(this.dV,this.xhr.status,this.timing.AF||this.Fa,!1,this.ev))return 5;if(!this.Rp){if(this.Fa)return bu(eS(this.dV)),3;this.dV.lastError="net.closed";return 5}}else{if(VG(this.dV,this.xhr.status,this.xhr.nW(),!1,this.ev))return 5; var a=this.info.Y;if(a&&a!==t||y.m7())return this.dV.lastError="net.closed",5;this.OG(!0)}a=VTV(this)?y.getResponseHeader("X-Bandwidth-Est"):0;if(y=VTV(this)?y.getResponseHeader("X-Bandwidth-Est3"):0)this.Ms=!0,this.policy.V_&&(a=y);q5z(this.dV,t,a?Number(a):0,this.info.Sr[0].type===5);return 4}; g.R.canRetry=function(){this.Qv();var y=this.info.isDecorated();return this.dV.canRetry(y)}; g.R.onStateChange=function(){this.isComplete()&&(this.policy.uX?this.hk():this.timing.deactivate())}; g.R.UX=function(){this.dV.UX()}; g.R.tG=function(){this.callback&&this.callback(this,this.state)}; g.R.UE=function(){return this.dV.UE()}; g.R.dispose=function(){WR.prototype.dispose.call(this);this.dV.dispose();var y;(y=this.JI)==null||y.dispose();this.policy.uX||this.hk()}; g.R.hk=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.R.U6=function(){if(!this.oy().length)return[];this.Xe=!0;return this.Am.U6()}; g.R.il=function(){if(this.state<1)return!1;if(this.Am&&this.Am.yY.length)return!0;var y;return((y=this.xhr)==null?0:y.wb())?!0:!1}; g.R.oy=function(){this.OG(!1);return this.Am?this.Am.oy():[]}; g.R.OG=function(y){try{if(y||this.xhr.Ok()&&this.xhr.wb()&&!nW(this.dV,this.xhr)&&!this.Ix)this.Am||(this.Am=new QG(this.policy,this.info.Sr)),this.xhr.wb()&&(this.kP?this.kP.feed(this.xhr.gD()):vR(this.Am,this.xhr.gD(),y&&!this.xhr.wb()))}catch(t){this.kP?LkV(this,t):g.ls(t)}}; g.R.Va=function(y,t){switch(y){case 21:y=t.split(1).q1;MhV(this,y);break;case 22:this.Rp=!0;vR(this.Am,new $k([]),!0);break;case 43:if(y=ee(new Wb(t),1))this.info.hQ(this.Ds,y),this.Fa=!0;break;case 45:t=fi(new Wb(t));y=t.uy;t=t.gt;y&&t&&(this.vV=y/t);break;case 44:this.kU=GFV(new Wb(t));var a,r,E;!this.timing.AF&&((a=this.kU)==null?void 0:a.action)===4&&((r=this.kU)==null?0:(E=r.QP)==null?0:E.kx)&&(this.kx=this.kU.QP.kx);break;case 53:this.policy.MP&&(y=Kp1(new Wb(t)).Hv)&&(this.JI||(this.Hv=y,this.JI= new g.Te(this.iC,y,this)),this.JI.start());break;case 60:this.B6=k8(new Wb(t));break;case 58:if(y=fT7(new Wb(t)))this.kW=y,y.kW===3&&(this.ev=!0)}}; g.R.eb=function(y,t,a,r){a||this.timing.eb(r);if(y!==21)return!1;if(y=this.policy.WE)if(y*=this.info.Sr[0].z7.info.Hb,t.totalLength+a!==r&&t.totalLength0)return!1;if(!this.xhr.Ok())return!0;if(this.kP)var y=!this.info.Y;else this.xhr.sK()?y=!1:(y=this.xhr.getResponseHeader("content-type"),y=y==="audio/mp4"||y==="video/mp4"||y==="video/webm");if(!y)return!1;if(isNaN(this.info.IS)){y=this.xhr.getResponseHeader("x-head-seqnum");var t=this.timing.policy.W?1:0;if(y&&Number(y)>this.info.Sr[0].a5+t)return!1}return!0}; g.R.zK=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.R.YY=function(){this.xhr&&(this.Rq=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Rq}; g.R.dE=function(){this.xhr&&(this.H0=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.H0}; g.R.Jl=function(){return this.dV.Jl()}; g.R.iC=function(){if(!this.Qv()&&this.xhr){this.Ll="heartbeat";var y=this.dV;y.V+=2;this.tG()}};g.N(qf,wH);g.R=qf.prototype;g.R.EX=function(y,t){var a=(y-this.J)/1E3,r=t-this.Y;this.K>0?r>0&&(this.o5&&(a>.2||r<1024?(this.D+=a,a>.2&&R0H(this,.05,r)):R0H(this,a,r)),this.Ff&&(this.yv+=r,this.C1+=a)):t>this.policy.V&&this.nB(y,t);wH.prototype.EX.call(this,y,t)}; g.R.HZ=function(y,t){RZ(this,y,t);this.EX(y,t);this.o5&&(t=this.Y*this.snapshot.stall+this.Y/this.snapshot.byterate,this.K>0&&i9(this.xE,this.yv,this.D),y=(y-this.V)/1E3||.01,this.policy.Z&&!(this.K>0)||gC(this.xE,y,this.Y,t,!1))}; g.R.dw=function(y){RZ(this,y,this.L);var t=(y-this.J)/1E3;EEF(this.xE,t,0);this.AM(t,0);!this.o5&&this.K>0||(t=this.Y*this.snapshot.stall+this.Y/this.snapshot.byterate,this.K>0&&(this.D+=(y-this.J)/1E3,i9(this.xE,this.yv,this.D)),gC(this.xE,(y-this.V)/1E3||.01,this.Y,t,!1,!0))}; g.R.AR=function(y){y=y.cB||2147483647;(y&2)!==2&&(this.Ff=!1);(y&1)===1&&(this.o5=!0)}; g.R.NO=function(y){y=y.cB||2147483647;(y&2)===2&&(this.Ff=!1);(y&1)===1&&(this.o5=!1)}; g.R.CT=function(){return this.Z}; g.R.fQ=function(){var y=this.Ff?this.now()-this.J:0;return Math.max(this.C1*1E3+y,1)}; g.R.Hk=function(){return this.yv*1E3/this.fQ()}; g.R.nB=function(y,t){y=y===void 0?this.W:y;t=t===void 0?this.L:t;this.K>0||(wH.prototype.nB.call(this,y,t),t=this.xE,y=(y-this.hF)/1E3,t.Z.lW(1,(this.hF-this.V)/1E3),t.d0.lW(1,y))}; g.R.HQ=function(y){this.r0=y}; g.R.Z3=function(){var y=wH.prototype.Z3.call(this);y.rbw=this.Hk();y.rbe=+this.Ff;y.gbe=+this.o5;y.ackt=(this.r0-this.V).toFixed();return y}; g.R.Eb=function(){}; g.R.AG=function(){return NaN}; g.R.Mz=function(){return this.V+this.snapshot.delay*1E3};Yi.prototype.Va=function(y,t){switch(y){case 20:y=new Wb(t);y={Gc:Qv(y,1),videoId:ee(y,2),itag:Qv(y,3),lmt:Qv(y,4),xtags:ee(y,5),tO:Qv(y,6),QB:vb(y,8),e8:Qv(y,9),Z2m:Qv(y,10),startMs:Qv(y,11),durationMs:Qv(y,12),Qq:Qv(y,14),timeRange:lG(y,15,PU),GH:Qv(y,16),gw:Qv(y,17),MR:Qv(y,20),clipId:ee(y,1E3)};this.Jo(y);break;case 21:this.BZ(t,!1);break;case 22:this.I_(t);break;case 31:y=nu(t,bLd);this.w0.Bm(y);break;case 52:y=nu(t,IT7);this.w0.Pw(y);break;case 69:y={Sp:Vv(new Wb(t),1,uMF)};this.w0.Hp(y);break; default:this.vZ(y,t)}}; Yi.prototype.Jo=function(){}; Yi.prototype.vZ=function(){};var cB9=new Set([53,49,50]);g.N(Dn,Yi);g.R=Dn.prototype;g.R.vZ=function(y,t){e0V(this.w0)&&!cB9.has(y)?this.V.push({id:y,data:t}):Piz(this,y,t)}; g.R.OC=function(y){y=new Wb(y);y={Ecu:Vv(y,1,Rl),Sk1:Vv(y,2,Rl)};this.w0.OC(y)}; g.R.ZW=function(y){var t=new Wb(y);y=uG(t,1);var a=uG(t,2);t=uG(t,3);this.w0.ZW(y,a,t)}; g.R.Kc=function(y){y=fi(new Wb(y));this.w0.Kc(y)}; g.R.Eg=function(y){y=nu(y,qi7);this.w0.Eg(y)}; g.R.LS=function(y){y=new Wb(y);y={videoId:ee(y,1),formatId:lG(y,2,Rl),endTimeMs:Qv(y,3),KCE:Qv(y,4),mimeType:ee(y,5),vW:lG(y,6,Vw7),indexRange:lG(y,7,Vw7),a9:lG(y,8,nrV)};this.w0.LS(y)}; g.R.u7=function(y){y=new Wb(y);y={type:Qv(y,1),scope:Qv(y,2),value:pu(y,3),sendByDefault:vb(y,4),writePolicy:Qv(y,5)};this.w0.u7(y)}; g.R.G_=function(){this.w0.G_()}; g.R.o_=function(y){y=Bfu(new Wb(y));this.w0.o_(y)}; g.R.RK=function(y){y=Kp1(new Wb(y));this.w0.RK(y)}; g.R.SG=function(y){y=GFV(new Wb(y));this.w0.SG(y)}; g.R.SZ=function(y){y={redirectUrl:ee(new Wb(y),1)};this.w0.SZ(y)}; g.R.BZ=function(y){var t=wj(y,0);if(y.totalLength!==1){y=y.split(1).q1;var a=this.K[t]||null;a&&Zn(this.w0.bx,t,a,y)}}; g.R.I_=function(y){y=wj(y,0);var t=this.K[y]||null;t&&this.w0.I_(y,t)}; g.R.Jo=function(y){var t=y.Gc,a=y.QB,r=y.tO,E=y.gw,h=y.GH,F=y.e8,x=y.startMs,U=y.durationMs,C=y.timeRange,z=y.Qq,O=y.MR,M=y.clipId,L=KR(y);y=NK3.has(pi[""+y.itag]);this.K[t]=L;var w=-1;O&&(C==null?0:C.timescale)&&(w=O/C.timescale);this.w0.XT(L,y,w,{Gc:t,QB:!!a,tO:r!=null?r:-1,e8:F!=null?F:-1,startMs:x!=null?x:-1,durationMs:U!=null?U:-1,Qq:z,gw:E,GH:h,clipId:M,timeRange:C})}; g.R.AR=function(y){y={cB:Qv(new Wb(y),1)};this.w0.AR(y)}; g.R.NO=function(y){y={cB:Qv(new Wb(y),1)};this.w0.NO(y)}; g.R.WL=function(y){y=fT7(new Wb(y));this.w0.WL(y)}; g.R.IX=function(y){y={Za:lG(new Wb(y),1,grV)};this.w0.IX(y)}; g.R.onSnackbarMessage=function(y){y=Qv(new Wb(y),1);this.w0.onSnackbarMessage(y)}; g.R.T_=function(y){y=new Wb(y);y={reloadPlaybackParams:lG(y,1,kFn),sz:vb(y,2)};this.w0.T_(y)}; g.R.yV=function(){for(var y=g.p(this.V),t=y.next();!t.done;t=y.next())t=t.value,Piz(this,t.id,t.data);this.V=[]};g.N(gH,g.H);g.R=gH.prototype;g.R.lc=function(){return Array.from(this.qP.keys())}; g.R.k6=function(y){y=this.qP.get(y);var t=y.yY;y.Po+=t.totalLength;y.yY=new $k;return t}; g.R.l2=function(y){return this.qP.get(y).l2}; g.R.S9=function(y){return this.qP.get(y).S9}; g.R.XT=function(y,t,a){this.qP.get(y)||this.qP.set(y,{yY:new $k,Po:0,bytesReceived:0,DC:0,qV:!1,l2:!1,S9:!1,Ee:t,vg:[],Sr:[],MO:[],c_:!1,Bt:new Map,vR:new Map,vT:[]});t=this.qP.get(y);this.qr?(y=Wk7(this,y,a),frV(this,a.Gc,t,y)):(a.QB?t.DC=a.Qq:t.MO.push(a),t.vg.push(a))}; g.R.i8=function(y){var t;return((t=this.qP.get(y))==null?void 0:t.Sr)||[]}; g.R.ET=function(){for(var y=g.p(this.qP.values()),t=y.next();!t.done;t=y.next())if(t=t.value,t.qV){if(t.onProgress)t.onProgress();t.qV=!1}}; g.R.I_=function(y,t){t=this.qP.get(t);ir?t&&!t.l2&&(t.Bt.get(y)?t.Bt.get(y).Ou=!0:t.Bt.set(y,{data:new $k,DB:0,Ou:!0}),t.S9=!0):t&&!t.S9&&(t.S9=!0)}; g.R.U6=function(y){if(ir){var t=this.qP.get(y);if(t)for(var a=g.p(t.Bt),r=a.next();!r.done;r=a.next()){var E=g.p(r.value);r=E.next().value;E=E.next().value;var h=t.vR.get(r);if(rZ(h[0])){if(!E.Ou)continue;var F=E.data,x=0,U=[];h=g.p(h);for(var C=h.next();!C.done;C=h.next()){C=C.value;var z=C.K,O=Cu(F,x,z);x+=z;U.push(new Wy(C,O))}t.vT.push.apply(t.vT,g.i7(U))}else if(E.data.totalLength>0||!h[0].range&&E.Ou)F=void 0,x=h[0],U=E.DB,h=E.data,x.range||(F=E.Ou),F=new Wy(lHb(x,x.V+U,h.totalLength,F),h), E.DB+=F.info.K,t.vT.push(F);t.Bt.get(r).data=new $k;E.Ou&&t.Bt.delete(r)}y=this.qP.get(y);if(!y)return[];t=y.vT;y.vT=[];a=g.p(t);for(r=a.next();!r.done;r=a.next())y.Po+=r.value.info.K;return t||[]}a=(t=this.qP.get(y))==null?void 0:t.Am;if(!a)return[];this.OG(y,a);return a.U6()}; g.R.il=function(y){if(ir)return GV(this,y);var t,a,r;return!!((a=(t=this.qP.get(y))==null?void 0:t.Am)==null?0:(r=a.oy())==null?0:r.length)||GV(this,y)}; g.R.OG=function(y,t){for(;GV(this,y);){var a=this.k6(y);var r=y;r=this.qP.get(r).l2&&!TV(this,r);vR(t,a,r&&kWz(this,y))}}; g.R.I5=function(){g.H.prototype.I5.call(this);for(var y=g.p(this.qP.keys()),t=y.next();!t.done;t=y.next())KW(this,t.value);var a;if((a=this.Zs)==null?0:a.bl)for(y=g.p(this.qP.values()),t=y.next();!t.done;t=y.next())t=t.value,t.Bt.clear(),t.vR.clear(),t.vT.length=0,t.Sr.length=0,t.vg.length=0,t.MO.length=0;this.qP.clear()}; var ir=!1;var q99=new Set([2]);g.N(yD,g.H);g.R=yD.prototype;g.R.oX=function(){!this.Qv()&&this.xhr&&(this.OG(!1),LH(this.w0,this))}; g.R.Tg=function(){}; g.R.fb=function(){if(!this.Qv()&&this.xhr){var y=this.lw();y===5?(this.policy.Sn&&this.Jl()==="net.badstatus"&&this.w0.Xx(),ur(this.dV)):(this.policy.Sn&&this.w0.Vi(),this.UR(y));this.dV.K.stop();var t;(t=this.XD)==null||t.stop()}}; g.R.lw=function(){var y="";nW(this.dV,this.xhr)&&(y=Y5F(this.dV,this.xhr));if(y)return this.info.Pb.hQ(this.Ds,y),3;this.OG(!0);if(VG(this.dV,this.xhr.status,this.xhr.nW(),this.info.W5(),this.ev))return 5;if(this.UO)return 3;q5z(this.dV,this.xhr.E6(),0,this.W5());this.policy.IR&&Qhn(this.w0);return 4}; g.R.OG=function(y){var t=this.xhr;!y&&nW(this.dV,this.xhr)||!t.wb()||(y=t.gD(),this.kP.feed(y))}; g.R.Va=function(y,t){this.xhr.g9()&&y===21&&vKN(this);this.xR.Va(y,t)}; g.R.eb=function(y,t,a,r){a||(this.S_.eb(r),this.policy.DY&&y===21&&vKN(this));if(y!==21)return!1;this.S_.AF=!0;y=t.totalLength;a||(this.jj=wj(t,0),t=t.split(1).q1);var E=this.policy.IB,h=this.xR.K[this.jj],F=this.qr.Y.get(h);if(E&&F&&(E*=F.info.Hb,y+a!==r&&y0){this.policy.ND&&this.dV.K.stop();y=this.S_.fQ();t=this.S_.Hk();var a=py7(this,y);if(!(t>a.Ay||a.E7>0&&this.info.Na()>a.E7)){this.jE=(0,g.Wx)();var r;(r=this.XD)==null||r.stop();this.policy.IR&&(r=this.w0,y={c7:Math.round(t*y/1E3),Lv:y},r.policy.IR&&(r.yv=y,r.D3++));this.UX()}}}}; g.R.UX=function(){this.dV.UX()}; g.R.SG=function(y){this.w0.SG(y,this.qU())}; g.R.SZ=function(y){this.UO=!0;this.info.Pb.hQ(this.Ds,y.redirectUrl)}; g.R.AR=function(y){this.S_ instanceof qf&&this.S_.AR(y)}; g.R.NO=function(y){this.S_ instanceof qf&&this.S_.NO(y)}; g.R.LS=function(y){var t=y.formatId,a=KR({itag:t.itag,lmt:t.lmt,xtags:t.xtags}),r,E,h=new GC(((r=y.vW)==null?void 0:r.first)||0,((E=y.vW)==null?void 0:E.fR)||0),F,x;r=new GC(((F=y.indexRange)==null?void 0:F.first)||0,((x=y.indexRange)==null?void 0:x.fR)||0);this.qr.Y.get(a)||(a=y.a9||{},a.mimeType=y.mimeType,a.itag=t.itag,a.lastModified=""+(t.lmt||0),a.xtags=t.xtags,y=this.qr,t=Dr(""),a=qK(a,null),Jb(y,new VH(t,a,h,r)))}; g.R.Kc=function(y){this.w0.Kc(y,this.qU())}; g.R.onSnackbarMessage=function(y){if(this.policy.wA)this.w0.onSnackbarMessage(y)}; g.R.Hp=function(y){this.policy.J&&this.w0.Hp(y,this.qU())}; g.R.Bm=function(y){this.fk=y;this.dV.Y=(0,g.Wx)();this.w0.Bm(y)}; g.R.ZW=function(y,t,a){this.w0.ZW(y,t,a)}; g.R.u7=function(y){y.scope===2&&(this.iO=y);this.w0.u7(y)}; g.R.G_=function(){this.QI=!0;this.w0.G_()}; g.R.OC=function(y){this.policy.G0&&this.w0.OC(y)}; g.R.Eg=function(y){this.w0.Eg(y,this.qU())}; g.R.WL=function(y){y.kW===3&&(this.ev=!0);this.w0.WL(y)}; g.R.IX=function(y){this.w0.IX(y)}; g.R.T_=function(y){this.w0.T_(y)}; g.R.canRetry=function(){this.Qv();return this.dV.canRetry(!1)}; g.R.dispose=function(){if(!this.Qv()){g.H.prototype.dispose.call(this);this.dV.dispose();var y;(y=this.XD)==null||y.dispose();this.UR(-1);this.hk()}}; g.R.UR=function(y){this.state=y;LH(this.w0,this)}; g.R.W5=function(){return this.info.W5()}; g.R.xd=function(){return this.QI}; g.R.s_=function(){return this.iO}; g.R.XT=function(y,t,a,r){a>=0&&this.w0.zL(a);r.clipId&&(this.clipId=r.clipId);this.policy.K&&!t&&(this.FM=r.e8);if(this.info.isDecorated()){var E=this.info,h,F;a=((h=E.data)==null?0:(F=h.Zn)==null?0:F.Rx)?E.data.Zn.Rx:-1;a>=0&&a>r.e8&&this.w0.loader.H4("sdai",{skpsqmismatch:"1",stsq:a,rcvsq:r.e8,a:t})}this.bx.XT(y,t,r);this.policy.pI&&this.fk&&this.S_ instanceof Nf&&(h=this.fk.b4,this.S_.XT(r.durationMs/1E3,t,h>0&&r.e8+1>=h));this.bx.qP.get(y).c_=!0;this.policy.T0&&this.w0.RM(2,t)}; g.R.I_=function(y,t){this.bx.I_(y,t)}; g.R.Pw=function(y){this.requestIdentifier=y}; g.R.U6=function(y){return this.bx.U6(y)}; g.R.i8=function(y){return this.bx.i8(y)}; g.R.il=function(y){return this.bx.il(y)}; g.R.lc=function(){return this.bx.lc()}; g.R.Jg=function(){return 1}; g.R.qU=function(){return this.S_.requestNumber}; g.R.Vg=function(){return this.requestIdentifier}; g.R.xJ=function(){return this.Ds.xJ()}; g.R.wL=function(){this.hk()}; g.R.hk=function(){this.S_.deactivate();var y;(y=this.xhr)==null||y.abort()}; g.R.isComplete=function(){return this.state>=3}; g.R.r5=function(){return this.state===3}; g.R.oN=function(){return this.state===5}; g.R.w5=function(){return this.state===4}; g.R.I$=function(){return this.isComplete()}; g.R.Yc=function(){return this.state>=1}; g.R.UE=function(){return this.policy.nJ?this.dV.UE():0}; g.R.tG=function(){this.policy.nJ&&LH(this.w0,this)}; g.R.BS=function(){return VJ(this.info)}; g.R.yV=function(){this.KO()&&!this.s7&&(this.s7=!0,this.xR.yV())}; g.R.KO=function(){var y,t;var a=(y=this.info.V)==null?void 0:(t=y.LH)==null?void 0:t.Np;return!!a&&q99.has(a)}; g.R.Iz=function(){return"SABR"}; g.R.Jl=function(){return this.dV.Jl()}; g.R.fH=function(){var y=DNz(this.dV);Object.assign(y,VM7(this.info));y.req="sabr";y.rn=this.qU();var t;if((t=this.xhr)==null?0:t.status)y.rc=this.policy.EQ?this.xhr.status:this.xhr.status.toString();var a;(t=(a=this.xhr)==null?void 0:a.xT())&&(y.msg=t);this.jE&&(a=py7(this,this.jE-this.S_.CT()),y.letm=a.EG5,y.mrbps=a.Ay,y.mram=a.E7);return y};lru.prototype.tick=function(y,t){this.ticks[y]=t?window.performance.timing.navigationStart+t:(0,g.Wx)()};g.N(a7,g.FM);g.R=a7.prototype; g.R.Jy=function(y,t,a,r){var E=!1;this.policy.K&&(E=a?this.o5===y.a5:this.Vv===y.a5);if(this.mL&&r&&!E){r=[];E=[];var h=[],F=void 0,x=0;t&&(r=t.V,E=t.K,h=t.D,F=t.Y,x=t.oG,this.H4("sdai",{sq:y.a5,ssvicpns:r.join("."),ssvid:E.join(".")}));this.policy.K&&(a?this.o5=y.a5:this.Vv=y.a5);this.mL.nS(y.a5,y.startTime,r,E,h,a,x,F)}if(this.policy.K){if(a){this.K===1&&EP(this,5,"noad");var U;y.a5!==((U=this.V)==null?void 0:U.a5)&&(Jb7(this,y,t,a),isNaN(y.startTime)||oKH(this,y.a5,xF(this,y.startTime,y.a5),!!t, this.mL))}}else a&&Jb7(this,y,t)}; g.R.wl=function(y,t,a){var r=this.videoTrack.z7.index.lJ()<=t;this.V={zO:y,a5:t,XZ:a};r&&rD(this,y,t)}; g.R.wB=function(){this.mL&&this.mL.wB()}; g.R.H4=function(y,t,a){(y!=="sdai"||this.policy.w9||(a===void 0?0:a))&&this.loader.H4(y,t)}; g.R.UG=function(y,t){var a=this.videoTrack.z7.index.G5(y);if(a>=0){var r;var E=((r=t.jH(a,2))==null?void 0:r.Lf)||"";if(this.policy.K||E)return t.Pd(y,a),hr(this.loader,y,y,a),this.H4("sdai",{cmskpad:1,t:y.toFixed(3),sq:a}),!0}this.H4("sdai",{cmskpad:0,t:y.toFixed(3),sq:a});return!1};g.R=Y6u.prototype;g.R.qT=function(y,t,a){var r=y||this.L;this.H4("clsdai",{setadcfg:y||"misscid",cid:r,acpn:a,acfglen:(t==null?void 0:t.length)||0});this.V.has(r)||(this.H4("clsdai",{setadcfg:"noentry",cid:r}),this.V.set(r,{event:"unknown",startTimeSecs:0,iK:0,nK:[],Xt:Date.now(),Pq:-1,wm:6}));(y=this.V.get(r))?t?(y.wm=6,y.nK.push(a),y.Z0=t):y.wm=2:this.H4("clsdai",{setadcfg:"notfound",cid:r})}; g.R.Hd=function(y){var t=y||this.L;this.H4("clsdai",{rmvadcfg:y||"misscid",lastcid:this.L});(y=this.V.get(t))?(y.Z0="",y.wm=4):this.H4("clsdai",{rmadcfg:"notfound",cid:t})}; g.R.Hp=function(y,t,a,r){this.J=t;var E;if(!((((E=y.Sp)==null?void 0:E.length)||0)<=0))if(r)this.Y=r,this.H4("clsdai",{oncldisabled:r,rn:t});else if(y=y.Sp[0],y.zO){var h;r=-(((h=y.zO)==null?void 0:h.bf)||0);y.timeRange&&(r+=(y.timeRange.startTicks||0)/(y.timeRange.timescale||1));var F,x,U,C,z;h=new $v(r,((F=y.zO)==null?void 0:F.e15)||0,((x=y.zO)==null?void 0:x.xA)||"",((U=y.zO)==null?void 0:U.identifier)||"",gK7((C=y.zO)==null?void 0:C.event),(((z=y.zO)==null?void 0:z.bf)||0)*1E3);F=y.e8||0;this.V.has(h.identifier)? (x=this.V.get(h.identifier),F>x.Pq&&(x.startTimeSecs=h.startSecs,x.iK=h.iK,x.event==="predictStart"&&x.wm===5&&h.event!=="predictStart"&&(x.Xt=Date.now()),x.event=h.event)):(x={event:h.event,startTimeSecs:h.startSecs,iK:h.iK,nK:[],Pq:F,wm:0},this.V.set(h.identifier,x),this.D&&this.H4("clsdai",{newcid:1,cid:h.identifier,evt:h.event,sn:F,rn:t,st:iwd(x.wm)}));x.wm===0&&((a==null?0:a.uA(h))?x.wm=5:(x.wm=a?11:3,x.Z0=""),x.Xt=Date.now(),x.Pq=F,this.D&&this.H4("clsdai",{onqpnt:1,cid:h.identifier,evt:h.event, sn:F,rn:t,st:iwd(x.wm)}));F>x.Pq&&(a==null||a.uA(h),x.Pq=F);this.L=h.identifier;this.D&&this.K.add(h.identifier)}}; g.R.Pd=function(y,t,a){var r=y;this.D&&(r+=a);var E,h="";r=DK2(this,r);r.length>0&&(h=r[0])&&(E=this.V.get(h));if(!E||E.D7){var F;this.H4("clsdai",{skipadfail:1,cid:h,sn:t,mt:y.toFixed(3),of:a.toFixed(3),skipsq:((F=E)==null?void 0:F.D7)||-1});return!1}this.H4("clsdai",{skipadsuc:1,cid:h,sn:t,mt:y.toFixed(3),of:a.toFixed(3)});E.D7=t;this.K.clear();this.K.add(h);return!0}; g.R.I3=function(){this.H4("clsdai",{rstskipad:1});for(var y=g.p(this.V.values()),t=y.next();!t.done;t=y.next())t.value.D7=NaN};g.N(Cv,g.H);Cv.prototype.hg=function(y,t,a){a=a===void 0?{}:a;this.policy.vt=h5(y,a,this.D,t===void 0?!1:t)};M5.prototype.lW=function(y,t){var a=Math.pow(this.alpha,y);this.V=t*(1-a)+a*this.V;this.K+=y}; M5.prototype.wP=function(){return this.V/(1-Math.pow(this.alpha,this.K))};R7.prototype.Mn=function(y){var t=this;if(this.policy.Bh){var a=new Set(y);a.size===this.d0.size&&[].concat(g.i7(a)).every(function(r){return t.d0.has(r)})||(this.loader.H4("lwnmow",{itagDenylist:[].concat(g.i7(y)).join(",")}),this.loader.oI(!!a.size),this.hF=-1,this.d0=a,P8(this,this.V),this.yv=!0)}}; R7.prototype.hg=function(y,t,a){a=a===void 0?{}:a;var r=this.policy.vt;this.L.hg(y,t===void 0?!1:t,a);if(r!==this.policy.vt){P8(this,this.V);N5(this);var E,h;r>this.policy.vt&&((E=this.Y)==null?0:ol(E.info))&&((h=this.nextVideo)==null||!ol(h.info))&&(this.AF=!0)}};var fv={O3:-1,Lq:!1,Np:0};g.N(W8,g.H);W8.prototype.I5=function(){this.K=fv;jr(this);g.H.prototype.I5.call(this)};Sr.prototype.NN=function(y){this.timestampOffset=y;this.flush()}; Sr.prototype.flush=function(){if(this.V.pos>0){var y={a:this.track.Ee(),u:this.V.Tv(),pd:Math.round(this.D),ad:Math.round(this.Y)},t=this.K;if(t){var a=t.z7.info;y.itag=a.itag;a.V&&(y.xtags=a.V);y.sq=t.a5;y.st=t.startTime;y.sd=t.duration;this.track.policy.RA&&(y.si=t.iJ());t.Y&&(y.esl=t.V+t.K);t.kV()&&(y.eos=1)}isNaN(this.timestampOffset)||(y.to=this.timestampOffset);var r;if(t=(r=this.track.wN)==null?void 0:r.Tl({})){for(var E in t)this.J[E]!==t[E]&&(y["sb_"+E]=t[E]);this.J=t}this.track.H4("sbu", y);this.V.reset();this.buffered=[];this.L=this.Y=this.D=0;this.timestampOffset=this.K=void 0}};v8.prototype.dispose=function(){this.Vv=!0}; v8.prototype.Qv=function(){return this.Vv}; g.N(nv,Error);o7.prototype.skip=function(y){this.offset+=y}; o7.prototype.nD=function(){return this.offset};g.R=euu.prototype;g.R.qz=function(){return this.K}; g.R.Pv=function(){return this.K.length?this.K[this.K.length-1]:null}; g.R.Xi=function(){this.K=[];c8(this);bq(this)}; g.R.k6=function(y){this.yv=this.K.shift().info;y.info.equals(this.yv)}; g.R.i8=function(){return g.v$(this.K,function(y){return y.info})}; g.R.Ee=function(){return!!this.z7.info.audio}; g.R.isDrm=function(){return!!this.z7.info.YJ}; g.R.getDuration=function(){return this.z7.index.Qu()};g.N(rH,WR);g.R=rH.prototype;g.R.onStateChange=function(){this.Qv()&&(IZ(this.bx,this.formatId),this.V.dispose())}; g.R.fH=function(){var y=Xyy(this.bx,this.formatId),t;var a=((t=this.bx.qP.get(this.formatId))==null?void 0:t.bytesReceived)||0;var r;t=((r=this.bx.qP.get(this.formatId))==null?void 0:r.Po)||0;return{expected:y,received:a,bytesShifted:t,sliceLength:TV(this.bx,this.formatId),isAnyMediaEndReceived:this.bx.S9(this.formatId)}}; g.R.oO=function(){return 0}; g.R.HT=function(){return!0}; g.R.U6=function(){return this.bx.U6(this.formatId)}; g.R.oy=function(){return[]}; g.R.il=function(){return this.bx.il(this.formatId)}; g.R.Jl=function(){return this.lastError}; g.R.UE=function(){return 0};g.N(gD,g.H);g.R=gD.prototype;g.R.Ee=function(){return!!this.z7.info.audio}; g.R.Pv=function(){return this.Y.Pv()}; g.R.k6=function(y){this.Y.k6(y);var t;(t=this.W)!=null&&(t.L.add(y.info.a5),t.V=$N2(t,t.cO,t.P0,y,t.V),t.Y=y,t.J=(0,g.Wx)());this.Hb=Math.max(this.Hb,y.info.z7.info.Hb||0)}; g.R.getDuration=function(){return this.z7.index.Qu()}; g.R.Xi=function(){hS(this);this.Y.Xi()}; g.R.nF=function(){return this.Y}; g.R.ut=function(y){return this.wN?TM(this.wN.Ro(),y):!0}; g.R.isRequestPending=function(y){return this.K.length?y===this.K[this.K.length-1].info.Sr[0].a5:!1}; g.R.NN=function(y){var t;(t=this.W)==null||t.NN(y);var a;(a=this.Z)==null||a.NN(y)}; g.R.H4=function(y,t){this.loader.H4(y,t)}; g.R.A_=function(){return this.loader.A_()}; g.R.dispose=function(){var y;(y=this.Z)==null||y.flush();g.H.prototype.dispose.call(this)};g.N(MZ,g.H);MZ.prototype.Y=function(){this.K++>15||(this.V=!this.V,new Lv7(this.loader,this.policy,this.xE,this.Pb,this.V),this.delay.start())}; g.R=Lv7.prototype;g.R.Tg=function(){}; g.R.oX=function(){}; g.R.fb=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.E6()===this.size)this.loader.H4("rqs",this.getInfo());else{var y="net.connect";this.xhr.status>200?y="net.badstatus":this.xhr.Ok()&&(y="net.closed");this.onError(y)}}; g.R.onError=function(y){var t=this;this.loader.handleError(y,this.getInfo());gL("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(a){t.loader.H4("pathprobe",a)},function(a){t.loader.handleError(a.errorCode,a.details)})}; g.R.getInfo=function(){var y=this.timing.Z3();y.shost=WF(36,this.location.uW);y.pb=this.size;return y};g.N(RR,g.H); RR.prototype.J=function(y,t){if(y.J){this.qr.isLive?(y=this.qr.H1&&this.qr.D?y.z7.At(this.qr.H1,!1):y.z7.RJ(Infinity),y.IS=this.IS):y=y.z7.At(0,!1);if(this.hF){var a=this.hF;y.IS===0&&(y.L=a.Z)}else y.L=this.Z;return y}a=y.V;if(!a.z7.K_())return a.z7.IP()?(y=Gq(this.D,y.z7.info.Hb,t.z7.info.Hb,0),y=a.z7.SX(a,y)):y=a.z7.b9(a),y;var r=a.L-this.loader.getCurrentTime(),E=!a.range||a.K===0&&a.V===0?0:a.range.length-(a.V+a.K),h=a.z7;this.YD(y,r)&&E===0&&(this.qr.isManifestless?h=y.z7:(h=a.startTime+yX7, a.K&&(h+=a.duration),xi(y,h),a=y.V,h=a.z7));h.IP()?(E=this.K,t=Gq(this.D,h.info.Hb,t.z7.info.Hb,r,E.D.length>0&&E.Z===0&&this.loader.Nk),r=sp(y),y=a.z7.SX(a,t),(t=y.Y)&&y.Sr.length>1&&(r||y.Pb.Y||y.Sr[0].z7!==a.z7?y=a.z7.SX(a,y.Sr[0].K):(r=y.Sr[y.Sr.length-1],h=r.K/t,!r.Y&&h<.4&&(y=a.z7.SX(a,t-r.K))))):(a.a5<0&&(t=xK(a),t.pr=""+y.K.length,this.loader.isSeeking()&&(t.sk="1"),t.snss=a.J,this.loader.H4("nosq",t)),y=h.b9(a));if(this.policy.L1)for(a=g.p(y.Sr),t=a.next();!t.done;t=a.next())t.value.type= 6;return y}; RR.prototype.YD=function(y,t){if(!sp(y)||!y.z7.K_())return!1;var a;(a=this.K.yv)||(a=sp(y)&&y.z7.K_()&&y.V.z7.info.Hb=t)return r.return();(a=y.V.get(0))&&ch1(y,a);g.FU(r)})}; var b37={uo4:0,kcf:1,PUF:2,CUG:3,r10:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};cc.prototype.decrypt=function(y){var t=this,a,r,E,h,F,x;return g.m(function(U){switch(U.V){case 1:if(t.V.length&&!t.V[0].isEncrypted)return U.return();t.K=!0;t.z1.gV("omd_s");a=new Uint8Array(16);EU()?r=new g.AL(y):E=new g.FJ(y);case 2:if(!t.V.length||!t.V[0].isEncrypted){U.xG(4);break}h=t.V.shift();if(!r){F=E.decrypt(Lu(h.buffer),a);U.xG(5);break}return g.u(U,r.decrypt(Lu(h.buffer),a),6);case 6:F=U.K;case 5:x=F;for(var C=0;C=4)){var t=hK(this),a=this.xhr;t.rc=a.status;y&&(t.ab=!0);if(a.xT()){var r="onesie.net";t.msg=a.xT()}else a.status>=400?r="onesie.net.badstatus":a.nW()?this.HW||(r="onesie.response.noplayerresponse"):r=a.status===204?"onesie.net.nocontent":"onesie.net.connect";r?this.fail(new g.rg(r,t)):(this.gV("or_fs"),this.S_.HZ((0,g.Wx)(),a.E6(),0),this.UR(4),this.AQ&&this.H4("rqs",t));this.AQ&&this.H4("ombre","ok."+ +!r);this.Ry=!1;rd(this); au(this.z1);if(!this.WR){this.VJ.stop();var E;(E=this.Wm)==null||E.stop()}var h;if(y=(h=this.c6)==null?void 0:qJu(h))for(h=0;h1E3){var y;(y=this.S_)==null||y.dw((0,g.Wx)());y=hK(this);if(this.j.Bb()&&this.xhr instanceof jS){var t=this.xhr;y.xrs=t.xhr.readyState;y.xpb=t.V.totalLength;y.xdc=t.D}this.fail(new g.rg("net.timeout",y))}}else(0,g.Wx)()-this.S_.V>1E4&&((t=this.S_)==null||t.dw((0,g.Wx)()),this.JG());this.isComplete()||this.Uo.start()}}; g.R.JG=function(){this.Ry=!1;if(!rd(this)){var y=hK(this);y.timeout="1";this.fail(new g.rg("onesie.request",y))}}; g.R.fail=function(y){var t=this;y=h0(y);this.v6?this.Om.Aj(y):(this.Bv.reject(y),this.v6=!0);au(this.z1);this.WR||this.VJ.stop();this.gV("or_fe");var a,r;(a=this.c6)==null||(r=qJu(a))==null||r.forEach(function(E){t.H4("pathprobe",E)}); this.UR(5);this.dispose()}; g.R.isComplete=function(){return this.state>=3}; g.R.w5=function(){return this.state===4}; g.R.I$=function(y){var t,a;return this.isComplete()||!!((t=this.OM)==null?0:(a=t.get(y))==null?0:a.V)}; g.R.r5=function(){return!1}; g.R.oN=function(){return this.state===5}; g.R.notifySubscribers=function(y){for(var t=0;t102400&&!this.y5&&(this.gV("or100k"),this.y5=!0);if(y.wb()){var t=y.gD(),a=t.totalLength;this.AQ&&this.H4("ombrss","len."+a);this.kP.feed(t)}if(this.OM)for(var r=g.p(this.OM.keys()),E=r.next();!E.done;E=r.next()){var h=E.value;y=void 0;(y=this.OM.get(h))==null||y.ET();this.notifySubscribers(h)}}catch(F){this.fail(F)}}; g.R.qU=function(){return this.S_.requestNumber}; g.R.Vg=function(y){return this.z2.get(y)}; g.R.KO=function(){return!1}; g.R.Iz=function(){return"ONESIE"};g.N(AK,g.H);g.R=AK.prototype; g.R.z6=function(y){var t=D3(this.loader)&&y&&y.O3!==void 0&&!y.Lq?y.O3*1E3+(this.loader.fJ()||0):xQ(this);if(this.policy.TR){var a=this.DE;var r=this.d0}else a=CH(this,this.audioTrack),r=CH(this,this.videoTrack);var E=[].concat(g.i7(a.cO),g.i7(r.cO));sL(this)&&E.push.apply(E,g.i7(this.L));var h=[].concat(g.i7(a.xP),g.i7(r.xP)),F=this.loader.GV();if(this.policy.aE&&!this.videoData.isLivePlayback){var x=this.videoData.lengthSeconds*1E3;t>=x&&this.loader.H4("invalidSabrCmt",{cmt:t,vd:x})}var U,C;x=this.xE; var z=this.Om,O=this.qr,M=this.Y,L=this.videoData.Ff,w=this.policy,d=this.loader.CO,k=d0N(this.loader)*1E3,e=(U=this.yv)==null?void 0:U.c7;U=(C=this.yv)==null?void 0:C.Lv;var v;C=Number((v=this.K.D)==null?void 0:v.info.itag)||0;var l;v=Number((l=this.K.L)==null?void 0:l.info.itag)||0;l=this.D3;var V=this.Om.pF();var B=(y==null?0:y.Np)?y.Np:this.loader.isSuspended?4:void 0;t={xE:x,Om:z,qr:O,cO:E,xP:h,E2:t,nextRequestPolicy:M,E_:L,Zs:w,JY:d,Uu:k,c7:e,Lv:U,D3:l,hdE:C,nGX:v,ox:F,cU:V,Np:B};E=this.loader.YS(); h=nN(E);E&&(t.dX=h);if(y=D3(this.loader)&&(y==null?0:y.Lq)?y.O3:this.Om.WA())t.Qp=y*1E3;var b;y=this.K;E=y.Vv;if(((b=y.Zs)==null?0:br(b))&&!E)for(b=g.p(y.Y),h=b.next();!h.done;h=b.next())if(h.value.qK){E=!0;break}b=br(y.Zs)&&!E?[]:Wvx(y,y.Y);t.hK=b;b=this.K;br(b.Zs)&&!b.o5?b=[]:(y=pey(b),y.length===0&&(y=b.J),b=Wvx(b,y));t.HR=b;t.AK=sL(this)?[this.J]:void 0;this.policy.Kg&&(t.Lr=IMu(this.loader,this.audioTrack),t.y7=IMu(this.loader,this.videoTrack));b=this.loader.getCurrentTime();a=UL(this,a.cO,b); r=UL(this,r.cO,b);r=Math.min(a,r);this.policy.Xd&&(this.L1=r);if(this.policy.K&&(sL(this)&&(a=UL(this,this.L,b),this.Om.Bb()&&a=h.nP?h.TJ:void 0,E={d_:y?qeH(a,y):[],adsConfig:E,Rx:h},b={gvprpro:"v",mt:b.toFixed(3), acpns:((Z=E.d_)==null?void 0:Z.join("_"))||"none",abid:y},a.QW(b),Z=E):(a.QW({gvprp:"ncp",mt:b}),Z=null)}Z&&(t.Zn=Z)}if(this.policy.J){var aV;Z=((aV=this.videoData.K)==null?void 0:aV.containerType)||0;aV=this.videoData.Vu[Z];a=this.loader.isSeeking()&&!this.loader.Rv?r+this.loader.fJ():NaN;if((Z=this.Vv)==null)aV=void 0;else if(Z.Y!==0){Z.H4("clsdai",{gssinfodisabled:Z.Y});aV=7;switch(Z.Y){case 1:aV=7;break;case 2:aV=9;break;case 3:aV=10;break;default:Z.H4("clsdai",{unknowndisr:Z.Y})}aV=[{wm:aV}]}else{r= [];if(!isNaN(a))if(b=DK2(Z,a),y=Z.J+1,b.length>0)for(Z.H4("clsdai",{updcids:1,mt:a.toFixed(3),cid:b.join(","),rn:y}),Z.K.clear(),a=g.p(b),b=a.next();!b.done;b=a.next())Z.K.add(b.value);else Z.W&&(Z.H4("clsdai",{updcids:0,mt:a.toFixed(3),rn:y}),Z.K.clear());a=g.p(Z.K);for(y=a.next();!y.done;y=a.next()){b=Z;if(y=y.value){b=b.V.get(y);y={cuepointId:y};if(b==null?0:b.Z0)y.adsConfig=nN(b.Z0)||void 0;if(b==null?0:b.nK)y.d_=b.nK;if(b==null?0:b.D7)y.Rx=b.D7;aV&&(y.PN=iA(aV.split(";")[0]),y.Yh=aV.split(";")[1]|| "");y.wm=(b==null?void 0:b.wm)||0;b=y}else b=void 0;b&&r.push(b)}aV=r}t.IE=aV;(aV=this.Vv)!=null&&(aV.K.clear(),aV.Y=0)}this.policy.AF&&this.V.length>0&&this.V[0].xd()&&(t.Op=this.V[0].s_());return t}; g.R.FW=function(y,t){this.Z=void 0;Qhn(this);Su7(this,y,t)}; g.R.zB=function(y){if(this.V.length===0)return!1;var t=this.V[0];return t instanceof Fq?y===this.loader.getCurrentTime()*1E3:!(t instanceof yD&&n2(t.info))&&Math.abs(t.BS()-y)<50}; g.R.o_=function(y,t){this.Y=y;this.policy.K&&!y.playbackCookie&&this.loader.H4("sbrnocookie",{rn:t!=null?t:-1});this.Z=(0,g.Wx)()+(y.backoffTimeMs||0)}; g.R.SG=function(y,t){if(y.action===void 0){var a=this.Om.WA();a!==void 0&&this.loader.yf(a)}else if(y.action!==0||!this.r0)if(y.action===0&&this.policy.fK&&(y.action=2),y.QJ==="sabr.malformed_config"&&this.R5++<3)this.loader.handleError("sabr.malformed_config",{action:y.action,rn:t,retry:this.R5},0);else switch(this.policy.pK||y.QJ!=="sabr.malformed_config"||(y.action=2),a={},a.reason=y.QJ,a.action=y.action,a.rn=t,y.action){case 1:this.policy.K&&this.mL&&Sf(this.mL,void 0,void 0,a);break;case 0:this.r0= !0;this.videoData.NP()&&this.policy.K&&this.mL&&Sf(this.mL,void 0,void 0,a,!1);this.loader.Vx(a);break;case 2:dQF(y.QJ)!=="sabr.config"&&delete a.reason;this.loader.handleError(dQF(y.QJ),a,1);break;case 3:this.policy.FB&&((y=this.qr.hF)!=null&&(y.Z=!0),this.loader.handleError("sabr.hostfallback",a))}}; g.R.u7=function(y){y&&(this.loader.H4("sabrctxt",{onsbrctxt:y.type,scp:y.scope,dflt:y.sendByDefault}),y.type&&y.sendByDefault&&this.videoData.Ff.add(y.type),y.scope!==2&&(y.type&&this.videoData.sabrContextUpdates.set(y.type,y),this.Om.u7(y)))}; g.R.G_=function(){}; g.R.Kc=function(y,t){if(this.loader.Rv)this.loader.H4("sdai",{ignSabrSeek:1,smt:y==null?void 0:y.uy,rn:t});else if(y.uy!==void 0&&y.gt){t=y.uy/y.gt;this.audioTrack.J=!1;this.videoTrack.J=!1;if(this.policy.o5||this.policy.mp||this.policy.sx)this.loader.De.V=!1;if(this.Om.getCurrentTime()!==t){var a={yD:"sabr_seek",gG:!0,Zv:!0};y.seekSource&&(a.seekSource=y.seekSource);Ux(this.loader,t+.1,a)}}}; g.R.onSnackbarMessage=function(y){this.Om.publish("onSnackbarMessage",y)}; g.R.Hp=function(y,t){this.policy.J&&this.loader.Hp(y,t)}; g.R.Bm=function(y){y.b4&&y.eS&&Zr(this.qr,y.b4,y.eS);this.policy.TI&&(y.Qr&&y.Uq&&(this.qr.j$=y.Qr/y.Uq),y.K7&&y.zw&&(this.qr.CG=y.K7/y.zw));cQ(this.videoData)&&!this.videoData.Cx&&y.eS&&this.loader.vK(y.eS,1E3);y.wi!=null&&this.Om.Ae(y.wi);y.JB&&(y=((0,g.Wx)()-y.JB)/1E3,this.loader.UZ.lW(1,y))}; g.R.WL=function(y){this.loader.WL(y)}; g.R.yh=function(y){return this.videoData.Ff.has(y)}; g.R.ZW=function(y,t,a){this.policy.Y&&this.loader.H4("sabrctxtplc",{start:y?y.join("_"):"",stop:t?t.join("_"):"",discard:a?a.join("_"):""});if(y){y=g.p(y);for(var r=y.next();!r.done;r=y.next())this.videoData.Ff.add(r.value)}if(t)for(t=g.p(t),y=t.next();!y.done;y=t.next())y=y.value,this.videoData.Ff.has(y)&&this.videoData.Ff.delete(y);if(a)for(a=g.p(a),t=a.next();!t.done;t=a.next())if(t=t.value,this.videoData.sabrContextUpdates.has(t)&&this.videoData.sabrContextUpdates.delete(t),this.policy.AF&&this.V.length)for(y= g.p(this.V),r=y.next();!r.done;r=y.next())if(r=r.value,!(r instanceof Fq)){var E=void 0;((E=r.iO)==null?void 0:E.type)===t&&(r.iO=void 0)}}; g.R.OC=function(){}; g.R.wQ=function(y){this.J=y}; g.R.q9=function(y){this.L=y}; g.R.Eg=function(y,t){L2(this.policy,y,4,t)}; g.R.IX=function(y){if(y==null?0:y.Za)if(y=y.Za.hs){y=g.p(y);for(var t=y.next();!t.done;t=y.next())if(t=t.value,t.formatId){var a=this.qr.Y.get(KR(t.formatId));a&&a.info&&(a.info.debugInfo=t.debugInfo)}}}; g.R.T_=function(y){this.JF=!0;this.Om.publish("reloadplayer",y)}; g.R.gH=function(){return this.Om.gH()||""}; g.R.Na=function(){var y=pQ2(this);return Math.min(y.K5,y.f9)}; g.R.QW=function(y,t){this.loader.H4(y,t)}; g.R.pT=function(y){Hf7(this.loader,E37(this.Az,y))}; g.R.RM=function(y,t){this.videoData.RM(y,t)}; g.R.zL=function(y){this.Om.zL(y)}; g.R.Vi=function(){this.loader.Vi()}; g.R.Xx=function(){this.loader.Xx()}; g.R.I5=function(){g.H.prototype.I5.call(this);this.Y=void 0;Su7(this,!0,"i");this.V=[]};e8n.prototype.getCurrentTime=function(){return this.Om.getCurrentTime()-this.Om.fJ()}; wd.prototype.Z=function(y){jL(y.state)&&Mo(this.L)}; wd.prototype.clear=function(){nUn(this.L);this.K.clear();this.V.clear();this.J=NaN;this.W=!1}; wd.prototype.jG=function(){this.isSeeking=!0;nUn(this.L);this.W=!1;this.J=NaN;this.D=this.hV};Pk.prototype.OY=function(y,t){if(this.D)return DDF(this,t);if(t=CW(y)){var a=t.V;a&&a.Y&&a.V&&(y=y.K.length?y.K[0]:null)&&y.state>=2&&!y.oN()&&y.info.IS===0&&(this.D=y,this.W=a,this.K=t.info,this.J=this.startTimeSecs=Date.now()/1E3,this.L=this.K.startTime)}return NaN}; Pk.prototype.clear=function(){this.K=this.W=this.D=null;this.V=this.L=this.J=this.startTimeSecs=NaN;this.Y=!1};g.N(dd,g.H);dd.prototype.I5=function(){IQz(this);g.H.prototype.I5.call(this)};var TUy=/[?&]cpn=/;g.N(fH,g.H);fH.prototype.flush=function(){var y={};this.K&&(y.pe=this.K);this.V.length>0&&(y.pt=this.V.join("."));this.V=[];return y}; fH.prototype.stop=function(){var y=this,t,a,r;return g.m(function(E){if(E.V==1)return g.xs(E,2),g.u(E,(t=y.D)==null?void 0:t.stop(),4);if(E.V!=2)return(a=E.K)&&y.logTrace(a),g.$s(E,0);r=g.Uy(E);y.K=t9b(r.message);g.FU(E)})}; fH.prototype.logTrace=function(y){this.encoder.reset();this.encoder.add(1);this.encoder.add(y.resources.length);for(var t=g.p(y.resources),a=t.next();!a.done;a=t.next()){a=a.value.replace("https://www.youtube.com/s/","");this.encoder.add(a.length);for(var r=0;r=0?y:g.eK(this.provider),this.o5?Y9i.has(this.kJ)&&(this.V.size||(this.kJ==="PL"?y>=this.K+30:y<=this.AF+30||y>=this.K+1200&&y<=this.AF+86400))&&(g.SK(this,y,"vps",[this.kJ]),this.K=y):["PL","B","S"].indexOf(this.kJ)>-1&&(this.V.size||y>=this.K+30)&&(g.SK(this,y,"vps",[this.kJ]),this.K=y),this.V.size)){this.sequenceNumber===7E3&&g.ls(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){ub(this,y);var t=this.provider.Om.Bc(); t=g.p(t);for(var a=t.next();!a.done;a=t.next())a=a.value,this.H4(a.key,a.value);t=y;a=this.provider.Om.Cn();var r=a.droppedVideoFrames||0,E=a.totalVideoFrames||0,h=r-this.d4,F=E&&!this.g4;r>a.totalVideoFrames||h>5E3?Xqu(this,"html5.badframedropcount","df."+r+";tf."+a.totalVideoFrames):(h>0||F)&&g.SK(this,t,"df",[h]);this.d4=r;this.g4=E;this.Z>0&&(g.SK(this,y,"glf",[this.Z]),this.Z=0);yN.isActive()&&(y=yN.EL(),Object.keys(y).length>0&&this.H4("profile",y));this.FB&&nH(this,"lwnmow");this.provider.j.Bb()&& this.provider.B("html5_record_now")&&this.H4("now",{wt:(0,g.Wx)()});y={};this.provider.videoData.K&&(y.fmt=this.provider.videoData.K.itag,(t=this.provider.videoData.D)&&t.itag!==y.fmt&&(y.afmt=t.itag));y.cpn=this.provider.videoData.clientPlaybackNonce;var x;((x=this.Ak)==null?0:x.length)?y.adcpn=this.Ak.join(","):this.adCpn&&(y.adcpn=this.adCpn);var U;((U=this.V9)==null?0:U.length)?y.addocid=this.V9.join(","):this.Ho.length&&(y.addocid=this.Ho);U=this.provider.videoData;x=U.NP();U=U.latencyClass; (this.provider.j.pJ().V.o7(azq)&&x&&U==="NORMAL"||this.provider.j.pJ().V.o7(tys)&&x&&U==="LOW"||this.provider.j.pJ().V.o7(y1U)&&this.provider.videoData.isDaiEnabled()&&dU(this.provider.videoData))&&(y.adc=1);this.provider.videoData.cotn&&(y.cotn=this.provider.videoData.cotn);y.el=Ih(this.provider.videoData);y.content_v=Go(this.provider.videoData);y.ns=this.provider.j.AF;y.fexp=Eqb(this.provider.j.experiments).toString();y.cl=(834519076).toString();x=this.provider.videoData.adFormat||this.adFormat; var C;((C=this.sZ)==null?0:C.length)?y.adformat=this.sZ.join(","):x&&(y.adformat=x);(C=mA(this.provider.videoData))&&(y.live=C);this.provider.videoData.sM()&&(y.drm=1,this.provider.videoData.L&&(y.drm_system=eHU[this.provider.videoData.L.flavor]||0),this.provider.videoData.drmProduct&&(y.drm_product=this.provider.videoData.drmProduct));zc()&&this.provider.videoData.J&&(y.ctt=this.provider.videoData.J,y.cttype=this.provider.videoData.MH,this.provider.videoData.mdxEnvironment&&(y.mdx_environment=this.provider.videoData.mdxEnvironment)); this.provider.videoData.isDaiEnabled()?(y.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Sn&&(y.dai_fallback="1"),dU(this.provider.videoData)&&(y.dai="mv")):this.provider.videoData.F7?y.dai="cs":this.provider.videoData.Fl&&(y.dai="disabled");y.seq=this.sequenceNumber++;if(this.provider.videoData.pm){if(C=this.provider.videoData.pm,y&&C)for(C.ns==="3pp"&&(y.ns="3pp"),this.cj.has(C.ns)&&nH(this,"hbps"),C.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext= C.shbpslc),this.provider.j.experiments.Nr("html5_use_server_qoe_el_value")&&this.T7.delete("el"),x=g.p(Object.keys(C)),U=x.next();!U.done;U=x.next())U=U.value,this.T7.has(U)||(y[U]=C[U])}else y.event="streamingstats",y.docid=this.provider.videoData.videoId,y.ei=this.provider.videoData.eventId;this.isEmbargoed&&(y.embargoed="1");Object.assign(y,this.provider.j.V);(C=y.seq)&&!this.provider.j.experiments.pJ().V.o7(EuI)&&(x=RBN(this,+C),x=g.qz(x,e$7),x=g.H$(x,4),this.V.set("qclc",[x]));y=g.lJ("//"+this.provider.j.Vu+ "/api/stats/qoe",y);U=x="";t=g.p(this.V.entries());for(a=t.next();!a.done;a=t.next())r=g.p(a.value),a=r.next().value,r=r.next().value,E=void 0,(E=r)!=null&&E.join&&(a="&"+a+"="+r.join(","),a.length>100?U+=a:x+=a);this.provider.j.experiments.pJ().V.o7(EuI)&&(C=RBN(this,+(C||0)),C.qoePingUrl=y+x+U,g.Mc("qoeClientLoggingContext",C),x+="&dl=1");P6d(this,y+x,U.replace(/ /g,"%20"))}this.V.clear()}}; g.R.oI=function(y){this.FB=y}; g.R.rQ=function(){if(this.provider.videoData.L){var y=this.provider.videoData.L;nH(this,"eme-"+(y.keySystemAccess?"final":x3(y)?"ms":UI(y)?"ytfp":$3(y)?"safarifp":"nonfinal"))}}; g.R.iZ=J1(49);g.R.Wt=function(y){this.isEmbargoed=y}; g.R.tV=J1(26);g.R.Bl=J1(32);g.R.onPlaybackRateChange=function(y){var t=g.eK(this.provider);y&&y!==this.IR&&(g.SK(this,t,"rate",[y]),this.IR=y);this.o5||this.reportStats(t)}; g.R.En=J1(20);g.R.getPlayerState=function(y){if(g.D(y,128))return"ER";if(g.D(y,2048))return"B";if(g.D(y,512))return"SU";if(g.D(y,16)||g.D(y,32))return"S";if(y.isOrWillBePlaying()&&g.D(y,64))return"B";var t=DXs[SL(y)];g.OY(this.provider.j)&&t==="B"&&this.provider.Om.getVisibilityState()===3&&(t="SU");t==="B"&&g.D(y,4)&&(t="PB");return t}; g.R.HE=function(y,t){var a=g.eK(this.provider);g.SK(this,a,"vfi",[y==="A"?"":""+(t!=null?t:0),y])}; g.R.I5=function(){g.H.prototype.I5.call(this);g.kz(this.Vv);g.kz(this.XB)}; g.R.MM=function(y){this.isOffline=y;g.SK(this,g.eK(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.R.H4=function(y,t,a){var r=this.pM.indexOf(y)!==-1;r||this.pM.push(y);if(!a||!r){t=typeof t!=="string"?al(t):t;t=kQn(t);if(!a&&!/^t[.]/.test(t)){var E=g.eK(this.provider)*1E3;t="t."+E.toFixed()+";"+t}vk(this,"ctmp",y+":"+t);Vs(this);return E}}; g.R.OX=function(y,t,a){this.L={VfF:Number(this.H4("glrem",{nst:y.toFixed(),rem:t.toFixed(),ca:+a})),BF:y,b_5:t,isAd:a}}; g.R.D8=function(y,t,a){g.SK(this,g.eK(this.provider),"ad_playback",[y,t,a])}; g.R.jn=function(y,t){var a=g.eK(this.provider)*1E3;vk(this,"daism","t."+a.toFixed(0)+";smw."+(y*1E3).toFixed(0)+";smo."+(t*1E3).toFixed(0))}; g.R.resume=function(){var y=this;isNaN(this.Vv)?NOu(this):this.Vv=g.ds(function(){y.reportStats()},1E4)}; var w7={},DXs=(w7[5]="N",w7[-1]="N",w7[3]="B",w7[0]="EN",w7[2]="PA",w7[1]="PL",w7[-1E3]="ER",w7[1E3]="N",w7),Y9i=new Set(["PL","B","S"]),jK=[];g.N(Bk,g.H);g.R=Bk.prototype;g.R.initialize=function(y,t,a){y=y||0;this.policy.V||(t=FBy(this.V),o6n(this.Om,new UP(t.video,t.reason)),this.Om.fW(new UP(t.audio,t.reason)));this.policy.V&&X$(this);this.qr.isManifestless&&k5F(this.J);this.Z&&cI2(this.Z,this.videoTrack.z7);t=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var r=!this.qr.isManifestless;this.policy.n8&&(r=r||this.qr.d7);if(!this.policy.Ff||this.policy.MK)this.currentTime=r?y:t;this.policy.o5&&this.seek(this.getCurrentTime(),{}).Eh(function(){}); if(this.policy.V){var E;((E=this.L)==null?0:LAF(E,this.gH()||""))&&eB7(this)&&ck(this,this.videoTrack)&&ck(this,this.audioTrack)&&(vUz(this.K,this.L),this.policy.L&&v6d(this))}else this.AF&&(lMy(this,this.videoTrack),lMy(this,this.audioTrack),dKN(this.AF),delete this.AF);a?(uz7(this,!1),g.Ge(this.l5)):(y=this.getCurrentTime()===0,kJ(this.J,this.videoTrack,this.videoTrack.z7,y),kJ(this.J,this.audioTrack,this.audioTrack.z7,y),this.policy.V&&R8V(this.K,{Np:1}),this.policy.o5||this.seek(this.getCurrentTime(), {}).Eh(function(){}),this.timing.tick("gv")); (this.qr.H1||this.qr.On||this.qr.qp||this.qr.hc||this.qr.Mq)&&this.Om.kF(this.qr)}; g.R.resume=function(){if(this.isSuspended||this.Nk){this.Ad=this.Nk=this.isSuspended=!1;try{this.OY()}catch(y){g.pK(y)}}}; g.R.nf=function(){return!this.policy.RR}; g.R.LN=function(y,t){y=y===void 0?!1:y;t=t===void 0?!1:t;m$d(this);this.Om.xn()&&(this.W=NaN);y?(this.policy.yv&&this.H4("loader",{setsmb:1}),this.policy.L1=!0,this.Xi()):(uz7(this,!1),t||this.Xi())}; g.R.setAudioTrack=function(y,t,a){a=a===void 0?!1:a;if(!this.Qv()){var r=!isNaN(t);a&&r&&(this.audioTrack.AF=Date.now(),this.policy.oo&&(this.T7=!0));a=this.Om.xn()&&!this.Om.getVideoData().Z;if(this.policy.V){var E=this.D.yP(y.id,r);this.Om.fW(E)}else E=this.V,E.K=E.qr.V[y.id],E.W=E.K,E=new $F(E.W,E.Y,r?"t":"m"),this.Om.fW(new UP(E.audio,E.reason));r?(this.I7=Date.now(),r=this.audioTrack.z7.index.G5(t),this.H4("setAudio",{id:y.id,cmt:t,sq:r}),r>=0&&(y=this.policy.f3?r+1:r,this.policy.V&&this.FW(!0, "mosaic"),hQ(this.audioTrack,y,NaN,NaN),!this.policy.cj&&this.qr.isLive&&GW(this.qr,y,!1))):a||this.Om.Xo()}}; g.R.setPlaybackRate=function(y){y!==this.hF.getPlaybackRate()&&this.hF.setPlaybackRate(y)}; g.R.uD=function(y){var t=this.K.J;this.K.wQ(y);this.H4("scfidc",{curr:KR(t),"new":KR(y)});y&&KR(y)!==KR(t)&&(this.FW(!0,"caption change"),this.OY())}; g.R.lD=function(y){this.K.q9(y)}; g.R.qn=function(y){y.V.info.Ee()?this.Om.fW(y):o6n(this.Om,y)}; g.R.pT=function(y){E6(y.Sr[y.Sr.length-1])&&Hf7(this,E37(this.V,y.Sr[0].z7))}; g.R.YS=function(){return this.Om.YS()}; g.R.GV=function(){return this.Om.GV()}; g.R.WL=function(y){this.Om.G().Bb()&&this.H4("sps",{status:y.kW||""});if(y.kW===1)this.iX=0;else if(y.kW===2||y.kW===3){var t=!1;if(y.kW===3){var a;this.IR=(a=y.u3e)!=null?a:Infinity;this.iX+=1;(t=jf(this))&&this.dc(!0)}this.Om.jZ(!0,t)}}; g.R.E5=function(){return this.Om.E5()}; g.R.Q2=function(){return this.Om.Q2()}; g.R.Ax=function(y){this.Om.Ax(y)}; g.R.vnu=function(){var y,t=(y=this.Om.uJ())==null?void 0:y.getCurrentTime();t?this.Om.H4("rms",{cta:t}):g.Ge(this.nJ)}; g.R.OY=function(){JP7(this);if(this.tF&&$q(this.tF)&&!this.tF.s6()&&(!this.policy.Ff||isFinite(this.getCurrentTime()))){var y=Kv(this.videoTrack);y=this.policy.vC&&y&&y.kV();this.qr.isManifestless&&this.qr.D&&ii(this.qr)?(this.W=ii(this.qr),this.tF.Fd(this.W)):yr(this.qr)&&!y?(y=this.policy.gx?YQ(this)-this.timestampOffset:this.getCurrentTime(),isNaN(this.W)?(this.W=y+3600,this.tF.Fd(this.W)):this.W<=y+1800&&(this.W=Math.max(this.W+1800,y+3600),this.tF.Fd(this.W))):this.tF.isView||(y=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.W)||this.W!==y)&&y>0&&(this.tF.Fd(y),this.W=y))}if(!this.Qv())if(gZ(this.qr)&&this.qr.oN()){var t=this.qr;this.handleError("manifest.net.retryexhausted",t.R5?{rc:t.L_}:{rc:t.L_.toString()},1)}else if(this.policy.V)a:{try{if(D3(this)&&this.vr){var a=this.K,r=this.vr,E=r.V;if(E){var h=a.Om.WA(),F=!0;h||(h=a.loader.getCurrentTime(),F=!1);t=h;var x=F?a.Om.Pr(t):t;if(a.loader.ut(x))var U=!1;else{var C={t:t.toFixed(3),isUtc:F};c:{var z=a.Om.gH();if(z){for(var O= g.p([a.audioTrack,a.videoTrack]),M=O.next();!M.done;M=O.next()){var L=TC(M.value.z7,a.qr.US);h=void 0;var w=((h=E)==null?void 0:h.i8(L,z))||[];if(w.length===0||!Js2(new $K(w),x)){var d=!1;break c}}d=!0}else d=!1}if(d)a.loader.H4("prebuffer",Object.assign(C,{inrange:1})),U=!0;else{if(n2(E.info)){var k;if(k=F){var e,v;k=(((e=E.info.V)==null?void 0:(v=e.LH)==null?void 0:v.Qp)||0)===t*1E3}var l=k}else l=!F&&VJ(E.info)===t*1E3;l?(a.loader.H4("prebuffer",Object.assign(C,{match:1})),U=!0):U=!1}}if(U){a.Om.gV("ismp_c"); a.V.push(E);var V;(V=a.o5)==null||w1(V,E.info.Pb);E.yV();jr(r,!1)}}}OL(this.K);this.qr.isManifestless&&this.policy.L&&sx(this.De);var B;((B=this.tF)==null?0:C8(B))&&this.YU();R8V(this.K);if(D3(this)&&this.vr){var b=this.K,Z=this.vr,aV=Z.K.O3;if(aV!==void 0&&aV>=0){b.Om.gV("ismp_a");var rx=Z.K;var Fb=rx.O3;if(Fb===void 0)var zN=!1;else{var En=rx.Lq?b.Om.Pr(Fb):Fb,Xb;if(Xb=!b.loader.ut(En)&&dDN(b,b.T7)){var TN=b.Om.getCurrentTime()*1E3,A7=XQ7(b,TN),b7=A7.aQ;Xb=A7.QF>=7E3&&b7>=7E3}zN=Xb}if(zN){var IV= wQx(b,rx);b.policy.jF>0&&b.T7.vv++;IV&&(Z.V!==IV&&(ONy(Z),Z.V=IV,Z.K=fv),b.Om.gV("ismp_rc"))}}}}catch(md){g.ls(md);t=md;if(t.message.includes("changeType")){this.H4("ctype",{exp:t.name,msg:t.message,s:t.stack});break a}this.handleError("fmt.unplayable",{exp:t.name,msg:t.message,s:t.stack,trg:"sabrslicerqt"},1)}GQN(this);g.Ge(this.JF)}else if(!this.qr.K||!rh7(this.videoTrack)&&!rh7(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Az?a=!1:(this.Xi(),this.Om.seekTo(Infinity,{yD:"checkLoaderTracksSync", vK:!0}),a=!0),!a){JP7(this);this.qr.isManifestless&&(Ep7(this.videoTrack),Ep7(this.audioTrack),sx(this.De),(a=CW(this.videoTrack))&&a.V&&(a=a.V.Y&&!this.policy.s0,this.H4(a===this.policy.Z.Pt?"strm":"strmbug",{strm:a,sfmp4:this.policy.Z.Pt,dfs:this.policy.s0},!0)));if(this.tF)this.YU();else if(this.policy.D){a=!1;if(this.policy.tS)for(r=g.p([this.videoTrack,this.audioTrack]),E=r.next();!E.done;E=r.next()){U=E.value;for(E=CW(U);E&&U.Pv()!==Kv(U);E=CW(U))U.k6(E);a=a||!!E}else(t=CW(this.videoTrack))&& this.videoTrack.k6(t),(F=CW(this.audioTrack))&&this.audioTrack.k6(F);tQ(this.videoTrack)&&tQ(this.audioTrack)||(t||F||a)&&zK(this)}qo(this);kJ(this.J,this.videoTrack,this.videoTrack.z7,!1);kJ(this.J,this.audioTrack,this.audioTrack.z7,!1);if(!this.policy.lr&&(t=this.videoTrack,r=this.audioTrack,(!this.tF||$q(this.tF)&&!this.policy.cA)&&!this.De.isSeeking()&&(this.policy.V||sp(t)&&t.z7.K_()&&this.V.AF)))a:{if(F=this.getCurrentTime(),a=this.hF,r=Gq(a,t.z7.info.Hb,r.z7.info.Hb,0),E=Ka(a.xE)+r/Tq(a.xE), F+=Math.max(E,E+a.policy.qQ-r/t.z7.info.Hb),t.K.length){if(t.K[0].info.Sr[0].startTime<=F)break a;hS(t)}a=t.Y;for(r=a.K.length-1;r>=0;r--)a.K[r].info.startTime>F&&a.K.pop();ZNy(t);t.V&&F5&&C.hF.shift();t=t.a5;var z;if((z=this.Om.getVideoData())==null?0:z.enableServerStitchedDai)z=x0V(this.audioTrack,t),a=x0V(this.videoTrack,t),z!==0&&a!==0&&z!==a&&this.handleError("ssdai.avsync",{sq:t,a:z,v:a}, 0)}}; g.R.wl=function(y,t,a,r){y.info.video&&this.Y.wl(t,a,r)}; g.R.Mn=function(y){this.V.Mn(y)}; g.R.Ea=function(){return this.mL}; g.R.hN=function(){return this.videoTrack.J||this.audioTrack.J}; g.R.seek=function(y,t){if(this.Qv())return ev();if(this.hN())return ev("seeking to head");if(this.policy.o5&&!isFinite(y))return RZb(this.De),g.pZ(Infinity);JP7(this);F1n(this,y,!1,t.seekSource);X$(this);this.policy.V||qo(this,y);this.tF&&this.tF.V&&this.tF.K&&!this.Om.getVideoData().Zq&&(this.tF.V.isLocked()||this.tF.K.isLocked())&&this.Om.Xo({reattachOnLockedBuffer:1,vsb:""+this.tF.K.isLocked(),asb:""+this.tF.V.isLocked()});var a=this.getCurrentTime(),r=this.De.seek(y,t);if(!this.policy.Ff||this.policy.MK)this.currentTime= r;sP(this.Y,y,a,this.policy.tK&&!t.gG);zK(this);return g.pZ(r)}; g.R.zB=function(y){return this.policy.V&&this.K.zB(y)}; g.R.yh=function(y){return this.K.yh(y)}; g.R.FW=function(y,t){this.K.FW(y,t)}; g.R.getCurrentTime=function(){if(this.policy.Ff){var y=this.fJ()||0;return this.Om.getCurrentTime(!0)-y}return this.currentTime}; g.R.Xp=function(){return this.audioTrack.z7.info}; g.R.w_=function(){return this.videoTrack.z7.info}; g.R.pN=function(){return this.audioTrack.z7.info.G7}; g.R.XG=function(){return this.videoTrack.z7.info.G7}; g.R.I5=function(){try{this.LN(),hS(this.audioTrack),hS(this.videoTrack),$J(this.audioTrack),$J(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.H.prototype.I5.call(this)}catch(y){g.pK(y)}}; g.R.handleError=function(y,t,a){a=a===void 0?0:a;var r=ED(a);y==="fmt.unplayable"&&this.qr.isLive&&(this.policy.HK=!1,TW(this.qr));t=new g.rg(y,t,a);g.nI(this);al(t.details);this.Om.handleError(t);y!=="html5.invalidstate"&&t.errorCode!=="fmt.unplayable"&&y!=="fmt.unparseable"&&r&&this.dispose()}; g.R.Tl=function(){var y=Kv(this.audioTrack),t=Kv(this.videoTrack);y={lct:this.getCurrentTime().toFixed(3),lsk:this.De.isSeeking(),lmf:this.V.V.isLocked(),lbw:hj7(this.schedule).toFixed(3),lhd:Ka(this.schedule).toFixed(3),lst:((this.schedule.W.wP()||0)*1E9).toFixed(3),laa:y?y.iJ():"",lva:t?t.iJ():"",lar:this.audioTrack.V?this.audioTrack.V.iJ():"",lvr:this.videoTrack.V?this.videoTrack.V.iJ():"",laq:""+aR(this.audioTrack),lvq:""+aR(this.videoTrack)};this.tF&&!this.tF.l2()&&this.tF.V&&this.tF.K&&(y.lab= Ki(this.tF.V.Ro()),y.lvb=Ki(this.tF.K.Ro()));this.Vv&&(y.lapt=((0,g.Wx)()-this.Vv).toFixed(0),y.lapr=bf7(this));this.L1&&(y.lapmabht=((0,g.Wx)()-this.L1).toFixed(0),y.lapmabh=AS(this,this.audioTrack).toFixed(0));this.yv&&(y.lapmvbht=((0,g.Wx)()-this.yv).toFixed(0),y.lapmvbh=AS(this,this.videoTrack).toFixed(0));this.Ff&&(y.lapsdai=((0,g.Wx)()-this.Ff).toFixed(0));return y}; g.R.Xi=function(){try{this.policy.V&&this.K.FW(!1,"pending"),this.audioTrack.Xi(),this.videoTrack.Xi()}catch(y){g.pK(y)}this.policy.D=""}; g.R.ut=function(y){return this.videoTrack&&this.audioTrack?this.videoTrack.ut(y)&&this.audioTrack.ut(y):!0}; g.R.rY=function(){return IX(this.hF)}; g.R.H4=function(y,t,a){this.Om.H4(y,t,a===void 0?!1:a)}; g.R.gH=function(){return this.Om.gH()}; g.R.vK=function(y,t){y/=t;isNaN(this.timestampOffset)&&E2y(this,y-Math.min(y,this.policy.e2));return(y-this.timestampOffset)*t}; g.R.fJ=function(){return this.timestampOffset}; g.R.isSeeking=function(){return this.De.isSeeking()}; g.R.wB=function(){this.Y.wB()}; g.R.hg=function(y,t,a){t=t===void 0?!1:t;a=a===void 0?{}:a;this.policy.V?this.D.hg(y,t,a):this.V.hg(y,t,a)}; g.R.UG=function(y,t){if(this.policy.K&&(this.Rv||this.isSeeking()))return this.H4("sdai",{ignoreSkip:"1",isSkip:this.Rv,isSeek:this.isSeeking(),t:y.toFixed(3)}),!1;var a=this.policy.K&&(this.policy.J||this.policy.GR),r=this.videoTrack.z7.index.G5(y),E=!1;if(a){var h;if(E=!((h=this.o5)==null||!h.Pd(y,r,this.timestampOffset)))if(hr(this,y,y,r),this.mL){var F;(F=this.mL)==null||F.Pd(y,r)}}else this.mL&&(E=!!this.Y.UG(y,this.mL));if(!E)return this.handleError("ad.skipfailed",{dec:!!this.mL,t:y.toFixed(3), sq:r}),!1;this.policy.K&&(this.H4("sdai",{skipAdStd:"1"}),this.Rv=!0);if(this.policy.bq){var x;(x=this.MP)==null||x.clear()}E2y(this,this.timestampOffset-t);zK(this);this.policy.K&&(TW(this.qr),$J(this.audioTrack),$J(this.videoTrack),this.Xi());return!0}; g.R.getManifest=function(){return this.qr}; g.R.isOffline=function(){return!!this.Om.getVideoData().cotn}; g.R.Cs=function(y,t){this.Om.Cs(y,t)}; g.R.mC=function(y,t){if(this.policy.V)F1n(this,y,!0,t),this.K.FW(!0,"utc"),this.OY();else if(t=this.Om.getVideoData().iW){var a=this.J;a.dO=y;a.iW=t;QJ(this)}}; g.R.yf=function(y){this.videoTrack.J=!1;this.audioTrack.J=!1;this.De.V=!1;this.Om.yf(y)}; g.R.fP=function(y){this.De.fP(y-this.fJ())}; g.R.Qd=function(){this.Om.Qd()}; g.R.dc=function(y){y!==this.policy.pA&&((this.policy.pA=y)||this.OY())}; g.R.Xo=function(y){this.Om.Xo(y)}; g.R.oI=function(y){this.Om.oI(y)}; g.R.qT=function(y,t,a){var r;(r=this.o5)==null||r.qT(y,t,a);this.policy.J&&(this.K.Z=void 0,this.OY())}; g.R.Hd=function(y){var t;(t=this.o5)==null||t.Hd(y)}; g.R.Hp=function(y,t){if(this.policy.J){var a,r=(a=y.Sp)==null?void 0:a[0],E=this.Om.getVideoData(),h,F;a=((h=E.playerResponse)==null?0:(F=h.playerConfig)==null?0:F.daiConfig)?E.Fl?1:E.Sn?2:0:3;var x,U,C;this.H4("clidai",{onqlst:1,len:((x=y.Sp)==null?void 0:x.length)||0,rn:t,evt:gK7(r==null?void 0:(U=r.zO)==null?void 0:U.event),cid:(r==null?void 0:(C=r.zO)==null?void 0:C.identifier)||"null",sq:(r==null?void 0:r.e8)||-1,trk:(r==null?void 0:r.trackType)||"null",dis:a});var z;(z=this.o5)==null||z.Hp(y, t,this.mL||void 0,a)}}; g.R.prefetchKeyPlay=function(y,t){var a=this;if(D3(this)){var r=Gwy().legacyApplicationQuality==="limited-memory";this.policy.zf&&r||(this.vr||(this.vr=new W8(function(E){a.Om.gV(E)}),g.c(this,this.vr)),zu7(this.vr,{O3:y, Lq:t,Np:2}),this.OY())}}; g.R.Xx=function(){this.zl++}; g.R.Vi=function(){this.zl=0};g.N(gd,g.FM);g.N(ib,gd);ib.prototype.J=function(y,t){if(y&&t){var a=Number(m0(y,"cpi"))*1+1;isNaN(a)||a<=0||athis.Y&&(this.Y=a,g.pJ(this.V)||(this.V={},this.D.stop(),this.K.stop())),this.V[t]=y,g.Ge(this.K))}}; ib.prototype.L=function(){for(var y=g.p(Object.keys(this.V)),t=y.next();!t.done;t=y.next()){var a=t.value;t=this.publish;for(var r=this.Y,E=g.fE(this.V[a]),h=[],F=g.p(E[6].split("&")),x=F.next();!x.done;x=F.next())x=x.value,x.indexOf("cpi=")===0?h.push("cpi="+r.toString()):x.indexOf("ek=")===0?h.push("ek="+g.cW(a)):h.push(x);E[6]="?"+h.join("&");a="skd://"+E.slice(2).join("");E=a.length*2;r=new Uint8Array(E+4);r[0]=E%256;r[1]=(E-r[0])/256;for(E=0;E0)for(var a=g.p(this.V),r=a.next();!r.done;r=a.next())if(t===r.value.info.cryptoPeriodIndex){t=!0;break a}t=!1}if(!t){t=(0,g.Wx)();a:{a=y.cryptoPeriodIndex;if(!isNaN(a)){r=g.p(this.Y.values());for(var E=r.next();!E.done;E=r.next())if(Math.abs(E.value.cryptoPeriodIndex-a)<=1){a=!0;break a}}a=!1}a?(a=y.V,a=Math.max(0,Math.random()*((isNaN(a)?120:a)-30))*1E3):a=0;this.publish("log_qoe",{wvagt:"delay."+a,cpi:y.cryptoPeriodIndex,reqlen:this.V.length}); a<=0?xU2(this,y):(this.V.push({time:t+a,info:y}),g.Ge(this.K,a))}}; KH.prototype.I5=function(){this.V=[];gd.prototype.I5.call(this)};var RL={},Oa7=(RL.DRM_TRACK_TYPE_AUDIO="AUDIO",RL.DRM_TRACK_TYPE_SD="SD",RL.DRM_TRACK_TYPE_HD="HD",RL.DRM_TRACK_TYPE_UHD1="UHD1",RL);g.N(Chz,g.H);g.N(M1N,g.FM);g.R=M1N.prototype;g.R.eF=function(y){var t=this;if(!(this.Qv()||y.size<=0)){var a={};y.forEach(function(r,E){var h=sI(t.K)?E:r;E=new Uint8Array(sI(t.K)?r:E);sI(t.K)&&uK1(E);r=g.H$(E,4);uK1(E);E=g.H$(E,4);t.V[r]?t.V[r].status=h:t.V[E]?t.V[E].status=h:t.V[r]={type:"",status:h};e_n(t,t.V[r].type,a)}); v2V(this,",");Iu(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.R.error=function(y,t,a,r){this.Qv()||(this.publish("licenseerror",y,t,a,r),y==="drm.provision"&&(y=(Date.now()-this.J)/1E3,this.J=NaN,this.publish("ctmp","provf",{et:y.toFixed(3)})));ED(t)&&this.dispose()}; g.R.shouldRetry=function(y,t){return!y&&this.requestNumber===t.requestNumber}; g.R.I5=function(){this.V={};g.FM.prototype.I5.call(this)}; g.R.Tl=function(){var y={ctype:this.Z.contentType||"",length:this.Z.initData.length,requestedKeyIds:this.DE,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Y&&(y.keyStatuses=this.V);return y}; g.R.getInfo=function(){var y=this.D.join();if(TK(this)){var t=new Set,a;for(a in this.V)this.V[a].status!=="usable"&&t.add(this.V[a].type);y+="/UKS."+Array.from(t)}return y+="/"+this.cryptoPeriodIndex}; g.R.xJ=function(){return this.url};g.N(Z3,g.H);g.R=Z3.prototype;g.R.SC=function(y){if(this.L){var t=y.messageType||"license-request";this.L(new Uint8Array(y.message),t)}}; g.R.eF=function(){this.W&&this.W(this.V.keyStatuses)}; g.R.onClosed=function(){this.Qv()||g.io("xboxone")&&this.Y&&this.Y("closedShouldNotRetry")}; g.R.Hw=function(y){this.L&&this.L(y.message,"license-request")}; g.R.AC=function(y){if(this.Y){if(this.K){var t=this.K.error.code;y=this.K.error.systemCode}else t=y.errorCode,y=y.systemCode;this.Y("t.prefixedKeyError;c."+t+";sc."+y,t,y)}}; g.R.hC=function(){this.J&&this.J()}; g.R.update=function(y){var t=this;if(this.V)return this.V.update(y).then(null,Ad(function(a){n2n(t,"t.update",a)})); this.K?this.K.update(y):this.element.addKey?this.element.addKey(this.Z.keySystem,y,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,y,this.initData,this.sessionId);return Jm()}; g.R.I5=function(){this.V&&(this.hF?this.V.close().catch(g.ls):this.V.close());this.element=null;g.H.prototype.I5.call(this)};g.N(yW,g.H);g.R=yW.prototype;g.R.setServerCertificate=function(){return this.K.setServerCertificate?this.V.flavor==="widevine"&&this.V.zI?this.K.setServerCertificate(this.V.zI):CN(this.V)&&this.V.RN?this.K.setServerCertificate(this.V.RN):null:null}; g.R.createSession=function(y,t){var a=y.initData;if(this.V.keySystemAccess){t&&t("createsession");var r=this.K.createSession();UI(this.V)?a=o22(a,this.V.RN):CN(this.V)&&(a=AX7(a)||new Uint8Array(0));t&&t("genreq");y=r.generateRequest(y.contentType,a);var E=new Z3(null,null,null,r,null,this.W);y.then(function(){t&&t("genreqsuccess")},Ad(function(F){n2n(E,"t.generateRequest",F)})); return E}if(x3(this.V))return bad(this,a);if($3(this.V))return Ha7(this,a);if((r=this.element)==null?0:r.generateKeyRequest)this.element.generateKeyRequest(this.V.keySystem,a);else{var h;(h=this.element)==null||h.webkitGenerateKeyRequest(this.V.keySystem,a)}return this.D=new Z3(this.element,this.V,a,null,null,this.W)}; g.R.Ol=function(y){var t=BLF(this,y);t&&t.Hw(y)}; g.R.jC=function(y){var t=BLF(this,y);t&&t.AC(y)}; g.R.nX=function(y){var t=BLF(this,y);t&&t.hC(y)}; g.R.getMetrics=function(){var y=null;if(this.K&&this.K.getMetrics)try{y=this.K.getMetrics()}catch(t){}return y}; g.R.I5=function(){this.Y=this.K=null;var y;(y=this.D)==null||y.dispose();y=g.p(Object.values(this.J));for(var t=y.next();!t.done;t=y.next())t.value.dispose();this.J={};g.H.prototype.I5.call(this);delete this.element};g.R=tO.prototype;g.R.get=function(y){y=this.findIndex(y);return y!==-1?this.values[y]:null}; g.R.remove=function(y){y=this.findIndex(y);y!==-1&&(this.keys.splice(y,1),this.values.splice(y,1))}; g.R.removeAll=function(){this.keys=[];this.values=[]}; g.R.set=function(y,t){var a=this.findIndex(y);a!==-1?this.values[a]=t:(this.keys.push(y),this.values.push(t))}; g.R.findIndex=function(y){return g.i3(this.keys,function(t){return g.LJ(y,t)})};g.N(Y2d,g.FM);g.R=Y2d.prototype;g.R.qR0=function(y){this.D5({onecpt:1});y.initData&&iax(this,new Uint8Array(y.initData),y.initDataType)}; g.R.hMr=function(y){this.D5({onndky:1});iax(this,y.initData,y.contentType)}; g.R.bA=function(y){this.D5({onneedkeyinfo:1});this.j.B("html5_eme_loader_sync")&&(this.W.get(y.initData)||this.W.set(y.initData,y));g22(this,y)}; g.R.mE=function(y){this.Y.push(y);a0(this)}; g.R.createSession=function(y){var t=IZN(this)?jE7(y):g.H$(y.initData);this.K.get(t);this.DE=!0;y=new M1N(this.videoData,this.j,y,this.drmSessionId);this.K.set(t,y);y.subscribe("ctmp",this.uC,this);y.subscribe("keystatuseschange",this.eF,this);y.subscribe("licenseerror",this.Cj,this);y.subscribe("newlicense",this.n7,this);y.subscribe("newsession",this.j4,this);y.subscribe("sessionready",this.d$,this);y.subscribe("fairplay_next_need_key_info",this.Gw,this);this.j.B("html5_enable_vp9_fairplay")&&y.subscribe("qualitychange", this.Mb,this);y.subscribe("sabrlicenseconstraint",this.vT4,this);NL7(y,this.D)}; g.R.n7=function(y){this.Qv()||(this.D5({onnelcswhb:1}),y&&!this.heartbeatParams&&(this.heartbeatParams=y,this.publish("heartbeatparams",y)))}; g.R.j4=function(){this.Qv()||(this.D5({newlcssn:1}),this.Y.shift(),this.DE=!1,a0(this))}; g.R.d$=function(){if(x3(this.V)&&(this.D5({onsnrdy:1}),this.Ff--,this.Ff===0)){var y=this.AF,t,a;(t=y.element)==null||(a=t.msSetMediaKeys)==null||a.call(t,y.Y)}}; g.R.eF=function(y){if(!this.Qv()){this.L1||(this.L1=!0,this.j.Bb()&&TLn(this));this.D5({onksch:1});var t=this.Mb;if(!TK(y)&&g.IU&&y.K.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var a="large";else{a=[];var r=!0;if(TK(y))for(var E=g.p(Object.keys(y.V)),h=E.next();!h.done;h=E.next())h=h.value,y.V[h].status==="usable"&&a.push(y.V[h].type),y.V[h].status!=="unknown"&&(r=!1);if(!TK(y)||r)a=y.D;a=QXd(a)}t.call(this,a);if(y.j.B("html5_enable_vp9_fairplay")&&CN(y.K))t=y.hF; else{if(!TK(y))for(t={},a=g.p(y.D),r=a.next();!r.done;r=a.next())e_n(y,r.value,t);t=y.authorizedFormats}this.videoData.authorizedFormats=t;this.publish("keystatuseschange",y)}}; g.R.uC=function(y,t){this.Qv()||this.publish("ctmp",y,t)}; g.R.Gw=function(y,t){this.Qv()||this.publish("fairplay_next_need_key_info",y,t)}; g.R.Cj=function(y,t,a,r){this.Qv()||(this.videoData.B("html5_log_drm_metrics_on_error")&&TLn(this),this.publish("licenseerror",y,t,a,r))}; g.R.Ji=function(){return this.Z}; g.R.Mb=function(y){var t=g.mE("auto",y,!1,"l");if(this.videoData.aD){if(this.Z.equals(t))return}else if(WXb(this.Z,y))return;this.Z=t;this.publish("qualitychange");this.D5({updtlq:y})}; g.R.vT4=function(y){this.videoData.sabrLicenseConstraint=y}; g.R.I5=function(){var y,t;this.V.keySystemAccess&&this.element&&!((y=this.mediaElement)==null?0:(t=y.Om)==null?0:t.xn())&&(this.o5?this.element.setMediaKeys(null).catch(g.ls):this.element.setMediaKeys(null));this.element=null;this.Y=[];y=g.p(this.K.values());for(t=y.next();!t.done;t=y.next())t=t.value,t.unsubscribe("ctmp",this.uC,this),t.unsubscribe("keystatuseschange",this.eF,this),t.unsubscribe("licenseerror",this.Cj,this),t.unsubscribe("newlicense",this.n7,this),t.unsubscribe("newsession",this.j4, this),t.unsubscribe("sessionready",this.d$,this),t.unsubscribe("fairplay_next_need_key_info",this.Gw,this),this.j.B("html5_enable_vp9_fairplay")&&t.unsubscribe("qualitychange",this.Mb,this),t.dispose();this.K.clear();this.J.removeAll();this.W.removeAll();this.heartbeatParams=null;g.FM.prototype.I5.call(this)}; g.R.Tl=function(){for(var y={systemInfo:this.V.Tl(),sessions:[]},t=g.p(this.K.values()),a=t.next();!a.done;a=t.next())y.sessions.push(a.value.Tl());return y}; g.R.getInfo=function(){return this.K.size<=0?"no session":""+this.K.values().next().value.getInfo()+(this.L?"/KR":"")}; g.R.D5=function(y,t){t=t===void 0?!1:t;this.Qv()||(al(y),(this.j.Bb()||t)&&this.publish("ctmp","drmlog",y))};var tSu=!1,rSb=!1;g.N(hGn,g.H);g.R=hGn.prototype;g.R.KQ=function(){return!!this.Kr}; g.R.I6=function(){return this.K}; g.R.handleError=function(y){var t=this;UfF(this,y);var a;if(a=!((y.errorCode==="html5.invalidstate"||y.errorCode==="fmt.unplayable"||y.errorCode==="fmt.unparseable")&&$f1(this,y.errorCode,y.details)))if(a=!Lod(this,y))this.videoData.errorDetail==="7"&&g.OY(this.P4)?(OW7(this,"innertube_player_reload_required"),a=!0):a=!1,a=!a;if(a)if(this.P4.AF!=="yt"&&zGF(this,y)&&this.videoData.oo&&(0,g.Wx)()/1E3>this.videoData.oo&&$U(this.videoData)&&(a=Object.assign({e:y.errorCode},y.details),a.stalesigexp="1", a.expire=Math.round(this.videoData.oo*1E3),a.init=Math.round(this.videoData.qa),a.now=Math.round((0,g.Wx)()),y=new g.rg(y.errorCode,a,2),this.Om.w7(y.errorCode,2,"SIGNATURE_EXPIRED",al(y.details))),ED(y.severity)){var r;a=(r=this.Om.loader)==null?void 0:r.V.V;if(this.P4.B("html5_use_network_error_code_enums"))if(CrN(y)&&a&&a.isLocked())var E="FORMAT_UNAVAILABLE";else if(this.P4.J||y.errorCode!=="auth"||y.details.rc!==429)y.errorCode==="ump.spsrejectfailure"&&(E="HTML5_SPS_UMP_STATUS_REJECTED");else{E= "TOO_MANY_REQUESTS";var h="6"}else CrN(y)&&a&&a.isLocked()?E="FORMAT_UNAVAILABLE":this.P4.J||y.errorCode!=="auth"||y.details.rc!=="429"?y.errorCode==="ump.spsrejectfailure"&&(E="HTML5_SPS_UMP_STATUS_REJECTED"):(E="TOO_MANY_REQUESTS",h="6");this.Om.w7(y.errorCode,y.severity,E,al(y.details),h)}else this.Om.publish("nonfatalerror",y),r=/^pp/.test(this.videoData.clientPlaybackNonce),this.Aj(y.errorCode,y.details),r&&y.errorCode==="manifest.net.connect"&&(y="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.Wx)(),gL(y,"manifest",function(F){t.J=!0;t.H4("pathprobe",F)},function(F){t.Aj(F.errorCode,F.details)}))}; g.R.H4=function(y,t){this.Om.Jz.H4(y,t)}; g.R.Aj=function(y,t){t=al(t);this.Om.Jz.Aj(y,t)};Eo.prototype.CF=function(y){var t=Pr1(this);if(!y)return{Bw:Eu,M2:Eu,Rr:Eu,dC:Eu,b6:Eu,S1:Eu,eW:t};var a=Eu;if(ot(t)||this.B("html5_perf_cap_override_sticky"))a=pR7(this,y);return{Bw:a,M2:Wob(this,y),Rr:kVb(this,y),dC:eG7(this,y.videoData),b6:ln7(this,y.videoData,y),S1:dfu(this,y),eW:t}}; Eo.prototype.tH=function(y){if(g.OY(this.j)&&G9(this.j.L,Za.HEIGHT))var t=y.V.videoInfos[0].video.qualityOrdinal;else{var a=this.rf(!!y.V.V);PQ(y.videoData)||rO(y.videoData);y=y.V.videoInfos;if(y.length){var r=.85,E=y[0].video;E.projectionType!=="MESH"&&E.projectionType!=="EQUIRECTANGULAR"&&E.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||qO||(r=.45);E=g.Gw(this.j.experiments,"html5_viewport_undersend_maximum");for(var h=0;h=0,stateAtSend:t,joinLatencySecs:h,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:r,playerCanaryStage:E,isAd:this.provider.videoData.isAd(),liveMode:a,hasDrm:!!g.VQ(this.provider.videoData),isGapless:this.provider.videoData.W,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:V3(this.provider.videoData)};y||g.Mc("html5PlayerHealthEvent",t);this.Y=!0;this.dispose()}}; FO.prototype.I5=function(){this.Y||this.send();window.removeEventListener("error",this.hO);window.removeEventListener("unhandledrejection",this.hO);g.H.prototype.I5.call(this)}; var g_U=/\bnet\b/;JSx.prototype.update=function(){if(this.Z){var y=this.cz()||0,t=g.eK(this.provider);y>=this.provider.Om.getDuration()-.1&&(this.previouslyEnded=!0);if(y!==this.V||BHb(this,y,t)){var a;if(!(a=yt-this.nH+2||BHb(this,y,t))){a=this.provider.Om.getVolume();var r=a!==this.AF,E=this.provider.Om.isMuted()?1:0;E!==this.hF?(this.hF=E,a=!0):(!r||this.D>=0||(this.AF=a,this.D=t),a=t-this.D,this.D>=0&&a>2?(this.D=-1,a=!0):a=!1)}a&&(x9(this),this.Y=y);this.nH=t;this.V=y}}}; JSx.prototype.cz=function(){var y=this.provider.Om.cz();return dU(this.provider.videoData)?y+this.provider.Om.fJ():y};cSu.prototype.send=function(y){var t=this;if(!this.R5){var a=Yxx(this),r=g.lJ(this.uri,a);this.j.B("vss_through_gel_double")&&Dfd(r);this.DE&&!this.j.B("html5_simplify_pings")?THz(this,r):qxb(this,y).then(function(E){if(t.MP){E=E||{};E.method="POST";var h=GVH(t);h&&(E.postBody=h)}t.DE&&(E=E||{},E.method="POST",E.postParams={atr:t.attestationResponse});kQ(r,E,{token:t.Vv,KY:t.I7,mdxEnvironment:t.mdxEnvironment},t.j,y,t.d0,t.isFinal&&t.TR||t.L1||t.Y&&t.Ri)}); this.R5=!0}}; cSu.prototype.K=function(y){y===void 0&&(y=NaN);return Number(y.toFixed(3)).toString()}; var Pp={},Koy=(Pp.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Pp.LIVING_ROOM_APP_MODE_MAIN=1,Pp.LIVING_ROOM_APP_MODE_KIDS=2,Pp.LIVING_ROOM_APP_MODE_MUSIC=3,Pp.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Pp.LIVING_ROOM_APP_MODE_GAMING=5,Pp),NY={},iWd=(NY.EMBEDDED_PLAYER_MODE_UNKNOWN=0,NY.EMBEDDED_PLAYER_MODE_DEFAULT=1,NY.EMBEDDED_PLAYER_MODE_PFP=2,NY.EMBEDDED_PLAYER_MODE_PFL=3,NY);g.N($9,g.H);g.R=$9.prototype; g.R.sQ=function(){if(!this.Y){this.provider.videoData.S$===16623&&g.ls(Error("Playback for EmbedPage"));var y=Oo(this,"playback");this.Z=ZWd(this);bWF(this.V);y.W=C1(this);this.K>0&&(y.V-=this.K);y.send();if(this.provider.videoData.Ec){y=this.provider.j;var t=this.provider.videoData,a={html5:"1",video_id:t.videoId,cpn:t.clientPlaybackNonce,ei:t.eventId,ptk:t.Ec,oid:t.Co,ptchn:t.kt,pltype:t.tC,content_v:Go(t)};t.zV&&Object.assign(a,{m:t.zV});y=g.lJ(y.bW+"ptracking",a);EFN(this,y)}this.provider.videoData.MB|| (hTd(this),FQN(this));this.Y=!0;y=this.V;y.V=y.cz();y.nH=g.eK(y.provider);!(y.Y===0&&y.V<5)&&y.V-y.Y>2&&(y.Y=y.V);y.Z=!0}}; g.R.onProgress=function(){this.V.update();auy(this)&&(hTd(this),FQN(this))}; g.R.I5=function(){g.H.prototype.I5.call(this);zs(this);HW7(this.V)}; g.R.Tl=function(){return Yxx(Oo(this,"playback"))}; g.R.V2=function(y){var t=Oo(this,"engage");t.o5=y;return gi7(t,U5F(this.provider))};$5x.prototype.isEmpty=function(){return this.endTime===this.startTime};Mk.prototype.B=function(y){return this.j.B(y)}; Mk.prototype.getCurrentTime=function(){return this.Om.getCurrentTime()}; Mk.prototype.cz=function(){return this.Om.cz()}; var Cqb={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.N(g.w_,g.H);g.R=g.w_.prototype;g.R.sQ=function(){this.V&&this.V.sQ();this.K&&this.K.sQ()}; g.R.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.hV){var y;(y=this.Y.get(this.hV))==null||y.onProgress()}else if(this.V)this.V.onProgress()}; g.R.Wt=function(y){this.qoe&&this.qoe.Wt(y)}; g.R.tV=J1(25);g.R.Bl=J1(31);g.R.jn=function(y,t){this.qoe&&this.qoe.jn(y,t)}; g.R.U8=function(){if(this.provider.videoData.enableServerStitchedDai&&this.hV){var y;(y=this.Y.get(this.hV))!=null&&x9(y.V)}else this.V&&x9(this.V.V)}; g.R.Aj=function(y,t){this.qoe&&Xqu(this.qoe,y,t);if(this.K)this.K.onError(y)}; g.R.HE=function(y,t){switch(y){case "M":var a;(a=this.qoe)==null||a.HE(y,t);break;case "A":var r;(r=this.qoe)==null||r.HE(y)}}; g.R.onPlaybackRateChange=function(y){if(this.qoe)this.qoe.onPlaybackRateChange(y);this.V&&x9(this.V.V)}; g.R.iZ=J1(48);g.R.H4=function(y,t,a){this.qoe&&this.qoe.H4(y,t,a)}; g.R.OX=function(y,t,a){this.qoe&&this.qoe.OX(y,t,a)}; g.R.Ae=function(y){var t;(t=this.qoe)==null||t.Ae(y)}; g.R.kF=function(y){var t;(t=this.qoe)==null||t.kF(y)}; g.R.hM=function(y,t,a,r){var E;(E=this.qoe)==null||E.hM(y,t,a,r)}; g.R.oI=function(y){this.qoe&&this.qoe.oI(y)}; g.R.D8=function(y,t,a){this.qoe&&this.qoe.D8(y,t,a)}; g.R.En=J1(19);g.R.xY=function(){if(this.qoe)return this.qoe.xY()}; g.R.Tl=function(){if(this.provider.videoData.enableServerStitchedDai&&this.hV){var y,t;return(t=(y=this.Y.get(this.hV))==null?void 0:y.Tl())!=null?t:{}}return this.V?this.V.Tl():{}}; g.R.No=function(){var y;return(y=this.qoe)==null?void 0:y.No()}; g.R.K4=function(y,t){var a;(a=this.qoe)==null||a.K4(y,t)}; g.R.V2=function(y){return this.V?this.V.V2(y):function(){}}; g.R.getVideoData=function(){return this.provider.videoData}; g.R.resume=function(){this.qoe&&this.qoe.resume()};g.N(g.PN,g.H);g.R=g.PN.prototype;g.R.Xm=function(y,t){this.sync();t&&this.V.array.length>=2E3&&this.q_("captions",1E4);t=this.V;if(y.length>1&&y.length>t.array.length)t.array=t.array.concat(y),t.array.sort(t.V);else{y=g.p(y);for(var a=y.next();!a.done;a=y.next())a=a.value,!t.array.length||t.V(a,t.array[t.array.length-1])>0?t.array.push(a):g.MX(t.array,a,t.V)}this.Y=NaN;this.sync()}; g.R.RY=function(y){y.length>1E4&&g.ls(new g.RV("Over 10k cueRanges removal occurs with a sample: ",y[0]));if(!this.Qv()){var t=new Set(y);this.K=this.K.filter(function(a){return!t.has(a)}); fuu(this.V,t);this.sync()}}; g.R.Ir=function(y){if(!this.Qv()){var t=this.Q2().find(function(a){return a.id===void 0&&a.namespace===y}); t&&this.RY([t])}}; g.R.q_=function(y,t){var a=(isNaN(this.Y)?SP7(this):this.Y)-t;t=this.Q2().filter(function(r){return r.namespace===y&&r.endthis.V,h=g.D(a,8)&&g.D(a,16),F=this.Om.Sf().isBackground()||a.isSuspended();p1(this,this.JF,h&&!F,E,"qoe.slowseek",function(){},"timeout"); var x=isFinite(this.V);x=h&&x&&t.BW(this.V);var U=!r||Math.abs(r-this.V)>10,C=this.j.B("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),z=r===0&&this.K&&[11,10].includes(this.K);p1(this,this.R5,x&&U&&!F&&(!C||!z),E,"qoe.slowseek",function(){t.seekTo(y.V)},"set_cmt"); U=x&&TM(t.FC(),this.V);var O=this.Om.loader;x=!O||O.nf();var M=function(){t.seekTo(y.V+.001)}; p1(this,this.L1,U&&x&&!F,E,"qoe.slowseek",M,"jiggle_cmt");x=function(){return y.Om.UV()}; p1(this,this.yv,U&&!F,E,"qoe.slowseek",x,"new_elem");var L=jL(a);z=a.isBuffering();var w=t.FC(),d=Il(w,r),k=d>=0&&w.end(d)>r+5;U=L&&z&&k;C=this.Om.getVideoData();p1(this,this.Ff,r<.002&&this.V<.002&&h&&g.OY(this.j)&&g.To(C)&&!F,E,"qoe.slowseek",x,"slow_seek_shorts");p1(this,this.hF,C.yR()&&h&&!F&&!C.Z,E,"qoe.slowseek",x,"slow_seek_gapless_shorts");p1(this,this.AF,U&&!F,L&&!z,"qoe.longrebuffer",M,"jiggle_cmt");p1(this,this.Vv,U&&!F,L&&!z,"qoe.longrebuffer",x,"new_elem_nnr");if(O){var e=O.getCurrentTime(); h=t.bU();h=CIF(h,e);h=!O.isSeeking()&&r===h;p1(this,this.FB,L&&z&&h&&!F,L&&!z&&!h,"qoe.longrebuffer",function(){t.seekTo(e)},"seek_to_loader")}h={}; M=Il(w,Math.max(r-3.5,0));var v=M>=0&&r>w.end(M)-1.1,l=M>=0&&M+1=0&&v&&l<11;h.close2edge=v;h.gapsize=l;h.buflen=w.length;this.K&&(h.seekSour=this.K);p1(this,this.o5,L&&z&&!F,L&&!z,"qoe.longrebuffer",function(){},"timeout",h); h=a.isSuspended();h=this.Om.Fo()&&!h;p1(this,this.W,h,!h,"qoe.start15s",function(){y.Om.K$("ad")},"ads_preroll_timeout"); h=this.j.experiments.Nr("html5_use_playback_rate_in_skip_slow_ad")?this.Om.getPlaybackRate()*1E3:1E3;d=r-this.D5;p1(this,this.r0,O,L&&!z,"qoe.longrebuffer",function(){y.Om.Xo()},"reset_media_source"); p1(this,this.C1,O,L&&!z,"qoe.longrebuffer",x,"reset_media_element");this.D===0&&(this.J=r);O=z&&this.V===0&&r>1&&r===this.J;p1(this,this.d0,g.To(C)&&O,L&&!z,"qoe.slowseek",function(){t.seekTo(0)},"reseek_after_time_jump"); F=a.isOrWillBePlaying()&&!F;k=this.Om.ih()-r<6&&!k&&this.Om.XA();p1(this,this.Z,C.yR()&&F&&z&&k,L&&!z,"qoe.longrebuffer",function(){y.Om.UV(!1,!0)},"handoff_end_long_buffer_reload"); F=this.K===104||this.Om.HM;a=Rh(C)&&C.isAd()&&!C.Z&&F&&(z||g.D(a,8)&&g.D(a,16));p1(this,this.T7,a,E,"qoe.start15s",x,"gapless_ad_slow_start");a=Rh(C)&&!C.Z&&F&&U;p1(this,this.n1,a,E,"qoe.longrebuffer",x,"gapless_slow_start");this.D=r;this.L.start()}}; vN.prototype.Aj=function(y,t,a){t=this.Tl(t);t.wn=a;t.wdup=this.Y[y]?"1":"0";this.Om.Aj(new g.rg(y,t));this.Y[y]=!0}; vN.prototype.Tl=function(y){y=Object.assign(this.Om.Tl(!0),y.Tl());this.V&&(y.stt=this.V.toFixed(3));this.Om.getVideoData().isLivePlayback&&(y.ct=this.Om.getCurrentTime().toFixed(3),y.to=this.Om.fJ().toFixed(3));delete y.uga;delete y.euri;delete y.referrer;delete y.fexp;delete y.vm;return y}; QW.prototype.reset=function(){this.V=this.K=this.Y=this.startTimestamp=0;this.D=!1}; QW.prototype.test=function(y){if(!this.L||this.K)return!1;if(!y)return this.reset(),!1;y=(0,g.Wx)();if(!this.startTimestamp)this.startTimestamp=y,this.Y=0;else if(this.Y>=this.L)return this.K=y,!0;this.Y+=1;return!1}; QW.prototype.Tl=function(){var y={},t=(0,g.Wx)();this.startTimestamp&&(y.wsd=(t-this.startTimestamp).toFixed());this.K&&(y.wtd=(t-this.K).toFixed());this.V&&(y.wssd=(t-this.V).toFixed());return y};g.N(D5y,g.H);g.R=D5y.prototype;g.R.setMediaElement=function(y){(this.mediaElement=y)?(this.mediaElement&&(this.L||this.Y||!this.mediaElement.Gn()||this.seekTo(.01,{yD:"seektimeline_setupMediaElement"})),eN(this)):uS(this)}; g.R.getCurrentTime=function(y){y=y===void 0?!1:y;if(lS(this.Om)){if(this.B("html5_use_centralized_player_time")&&!y&&!isNaN(this.J))return this.J;if(!isNaN(this.K))return this.K}else{if(this.B("html5_use_centralized_player_time")&&!y&&!isNaN(this.J)&&isFinite(this.J))return this.J;if(!isNaN(this.K)&&isFinite(this.K))return this.K}return this.mediaElement&&F$7(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Y||0}; g.R.WA=function(){return this.T7}; g.R.cz=function(){return this.getCurrentTime()-this.fJ()}; g.R.Lx=function(){return this.V?this.V.Lx():Infinity}; g.R.isAtLiveHead=function(y){if(!this.V)return!1;y===void 0&&(y=this.getCurrentTime());return WN(this.V,y)}; g.R.EN=function(){return!!this.V&&this.V.EN()}; g.R.seekTo=function(y,t){var a=t===void 0?{}:t;t=a.HH===void 0?!1:a.HH;var r=a.m5===void 0?0:a.m5;var E=a.RD===void 0?!1:a.RD;var h=a.zT===void 0?0:a.zT;var F=a.yD===void 0?"":a.yD;var x=a.seekSource===void 0?void 0:a.seekSource;var U=a.vK===void 0?!1:a.vK;var C=a.gG===void 0?!1:a.gG;a=a.Zv===void 0?!1:a.Zv;U&&(y+=this.fJ());V3(this.videoData)&&x===29&&(this.T7=void 0);U=y=this.Gr())||!g.BQ(this.videoData),d||(k={st:k,mst:this.Gr()},this.V&&this.B("html5_high_res_seek_logging")&&(k.ht=this.V.Lx(),k.adft=f1(this.V)),this.Om.H4("seeknotallowed",k)),k=d));if(!k)return this.D&&(this.D=null,rQy(this)),g.pZ(this.getCurrentTime());k=.005;C&&this.B("html5_sabr_seek_no_shift_tolerance")&&(k=0);if(Math.abs(y-this.K)<=k&&this.d0)return this.L;F&&(k=y,this.j.Bb()||this.B("html5_log_seek_reasons"))&& (F={reason:F,tgt:k},this.B("html5_sabr_csdai_seek_log")&&(F.source=x),this.Om.H4("seekreason",F));x&&(this.AF.K=x);this.d0&&uS(this);this.L||(this.L=new M2);y&&!isFinite(y)&&IuV(this,!1);(F=a||U)||(F=y,F=!(this.videoData.isLivePlayback&&this.videoData.Y&&!this.videoData.Y.V&&!(this.mediaElement&&this.mediaElement.xj()>0&&this.mediaElement.AY()>0)||QQ(this.videoData)&&this.WO()===this.Gr(!1)?0:isFinite(F)||!QQ(this.videoData)));F||(y=VW(this,y,E));y&&!isFinite(y)&&IuV(this,!1);this.B("html5_use_centralized_player_time")? this.J=y:this.K=this.Y=y;this.r0=h;this.W=0;this.V&&(E=this.V,h=y,Hvz(E,h,!1),bv2(E,h));E=this.Om;h=y;F={HH:t,seekSource:x};E.xk.Y=h;a=E.gT;a.mediaTime=h;a.V=!0;F.HH&&E.Zg(F);F=h>E.videoData.endSeconds&&h>E.videoData.limitedPlaybackDurationInSeconds;E.gb&&F&&isFinite(h)&&b21(E);h0&&yt.start&& b21(this.Om);return this.L}; g.R.Gr=function(y){if(!this.videoData.isLivePlayback)return this.Om.videoData.Gr();var t;return $6(this.videoData)&&((t=this.mediaElement)==null?0:t.isPaused())&&this.videoData.V?(y=this.getCurrentTime(),pZn(this.Pj(y)*1E3)+y):this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&V3(this.videoData)&&this.videoData.V?y?this.videoData.V.o5||0:this.videoData.V.CG||0:QQ(this.videoData)&&this.videoData.Cx&&this.videoData.V?this.videoData.V.Gr()+this.timestampOffset:this.videoData.Y&&this.videoData.Y.V? !y&&this.V?this.V.Lx():this.Om.videoData.Gr()+this.timestampOffset:this.mediaElement?Tc()?pZn(this.mediaElement.u9().getTime()):this.mediaElement.AY()+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.R.WO=function(){if(this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&V3(this.videoData)){var y;return((y=this.videoData.V)==null?void 0:y.j$)||0}y=this.videoData?this.videoData.WO()+this.timestampOffset:this.timestampOffset;if($6(this.videoData)&&this.videoData.V){var t,a=Number((t=this.videoData.progressBarStartPosition)==null?void 0:t.utcTimeMillis)/1E3;if(!isNaN(a)&&(t=this.Pr(a),!isNaN(t)))return Math.max(y,t)}return y}; g.R.Ut=function(){this.L||this.seekTo(this.Y,{yD:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.R.hN=function(){return this.d0&&!isFinite(this.K)}; g.R.I5=function(){TDz(this,null);this.AF.dispose();g.H.prototype.I5.call(this)}; g.R.Tl=function(){var y={};this.loader&&Object.assign(y,this.loader.Tl());this.mediaElement&&Object.assign(y,this.mediaElement.Tl());return y}; g.R.hx=function(y){this.timestampOffset=y}; g.R.getStreamTimeOffset=function(){return QQ(this.videoData)?0:this.videoData.V?this.videoData.V.getStreamTimeOffset():0}; g.R.fJ=function(){return this.timestampOffset}; g.R.Pj=function(y){return this.videoData&&this.videoData.V?this.videoData.V.Pj(y-this.timestampOffset):NaN}; g.R.uc=function(){if(!this.mediaElement)return 0;if(cQ(this.videoData)){var y=this.mediaElement.F2()+this.timestampOffset-this.WO(),t=this.Gr()-this.WO();return Math.max(0,Math.min(1,y/t))}return this.mediaElement.uc()}; g.R.fW=function(y){this.Z&&(this.Z.V=y)}; g.R.mC=function(y,t,a){this.Om.H4("requestUtcSeek",{time:y});V3(this.videoData)&&(this.T7=y);var r;(r=this.loader)==null||r.mC(y,a);t&&(this.DE=t)}; g.R.yf=function(y){V3(this.videoData)&&(this.T7=void 0);this.DE?(this.Om.H4("utcSeekingFallback",{source:"streamTime",timeSeconds:this.DE}),this.Om.seekTo(this.DE,{yD:"utcSeekingFallback_streamTime"}),this.DE=0):(y=this.Pr(y),isNaN(y)||(this.Om.H4("utcSeekingFallback",{source:"estimate",timeSeconds:y}),this.Om.seekTo(y,{yD:"utcSeekingFallback_estimate"})))}; g.R.Qd=function(){this.DE=0}; g.R.zL=function(y){this.yv=y}; g.R.Pr=function(y){var t=this.getCurrentTime();if(isNaN(t))return NaN;var a=this.Pj(t);return isNaN(a)?NaN:y-(a-t)}; g.R.B=function(y){return this.j&&this.j.B(y)};g.N(n1,g.H);n1.prototype.start=function(){this.K.start()}; n1.prototype.stop=function(){this.K.stop()}; n1.prototype.clear=function(){for(var y=g.p(this.V.values()),t=y.next();!t.done;t=y.next())t.value.clear()}; n1.prototype.sample=function(){for(var y=g.p(this.Y),t=y.next();!t.done;t=y.next()){var a=g.p(t.value);t=a.next().value;a=a.next().value;this.V.has(t)||this.V.set(t,new C1F(iJq.has(t)));this.V.get(t).update(a())}this.K.start()}; var iJq=new Set(["networkactivity"]);C1F.prototype.update=function(y){this.K?(this.buffer.add(y-this.V||0),this.V=y):this.buffer.add(y)}; C1F.prototype.clear=function(){this.buffer.clear();this.V=0};o0.prototype.Yc=function(){return this.started}; o0.prototype.start=function(){this.started=!0}; o0.prototype.reset=function(){this.finished=this.started=!1};var Rqu=!1;g.N(g.cN,g.FM);g.R=g.cN.prototype;g.R.I5=function(){g.kz(this.HJ);ySb(this.Ii);this.visibility.unsubscribe("visibilitystatechange",this.Ii);Ov2(this.Jz);g.wQ(this.Jz);iS(this);g.qC.Vb(this.ZM);this.eQ();this.EY=null;g.wQ(this.videoData);g.wQ(this.h_);g.wQ(this.HB);g.wQ(this.V4);g.Rp(this.Xbf);this.gb=null;g.FM.prototype.I5.call(this)}; g.R.D8=function(y,t,a,r,E){if(this.j.B("html5_log_ad_playback_docid")){var h=this.Jz;if(h.qoe){h=h.qoe;var F=this.j.AF||"yt";g.SK(h,g.eK(h.provider),"ad_playback",[y,t,a,E,F])}}else this.Jz.D8(y,t,a);this.B("html5_log_media_perf_info")&&this.H4("adloudness",{ld:r.toFixed(3),cpn:y})}; g.R.pN=function(){var y;return(y=this.loader)==null?void 0:y.pN()}; g.R.XG=function(){var y;return(y=this.loader)==null?void 0:y.XG()}; g.R.w_=function(){var y;return(y=this.loader)==null?void 0:y.w_()}; g.R.Xp=function(){var y;return(y=this.loader)==null?void 0:y.Xp()}; g.R.sM=function(){return this.videoData.sM()}; g.R.xn=function(){return this.B("html5_not_reset_media_source")&&this.videoData.isLivePlayback}; g.R.Xn=function(){this.videoData.W&&(this.videoData.Dk=this.videoData.Dk||this.LM.le().pN(),this.videoData.aP=this.videoData.aP||this.LM.le().XG());if(R67(this.videoData)||!x6(this.videoData)){var y=this.videoData.errorDetail;this.w7(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),y,y,this.videoData.hL||void 0)}this.B("html5_generate_content_po_token")&&this.My();this.B("html5_enable_d6de4")&&this.pC()}; g.R.getVideoData=function(){return this.videoData}; g.R.G=function(){return this.j}; g.R.CF=function(){return this.Oh.CF(this.EY)}; g.R.Sf=function(){return this.visibility}; g.R.ZL=function(){return this.mediaElement&&this.mediaElement.jb()?this.mediaElement.YE():null}; g.R.uJ=function(){return this.mediaElement}; g.R.Yu=function(){if(this.videoData.errorCode)return!1;this.G().J&&this.G().houseBrandUserStatus&&this.H4("hbut",{status:this.G().houseBrandUserStatus},!0);if(this.videoData.Fm())return!0;this.w7("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.R.Bp=function(y){(y=y===void 0?!1:y)||zT2(this.Jz);this.zg=y;!this.Yu()||this.zM.Yc()?l_F(this)&&this.zM.Yc()&&!this.zM.finished&&!this.zg&&this.LV():(this.zM.start(),y=this.Jz,g.eK(y.provider),y.qoe&&NOu(y.qoe),this.LV())}; g.R.LV=function(){if(this.videoData.isLoaded()){var y=this.h_;g.Gw(y.P4.experiments,"html5_player_min_build_cl")>0&&g.Gw(y.P4.experiments,"html5_player_min_build_cl")>834519076&&OW7(y,"oldplayer");mZN(this)}else this.videoData.vO||this.videoData.Wy?this.zg&&l_F(this)||(this.videoData.vO?tBx(this.videoData):(y=this.Jz,y.qoe&&(y=y.qoe,nH(y,"protected"),y.provider.videoData.L?y.rQ():y.provider.videoData.subscribe("dataloaded",y.rQ,y)),Igz(this.videoData))):!this.videoData.loading&&this.bz&&u$x(this)}; g.R.nk=function(y){this.mL=y;this.loader&&(Zfn(this.loader,y),this.H4("sdai",{sdsstm:1}))}; g.R.qT=function(y,t,a){var r;(r=this.loader)==null||r.qT(y,t,a)}; g.R.Hd=function(y){var t;(t=this.loader)==null||t.Hd(y)}; g.R.wq=function(){var y;return((y=this.loader)==null?void 0:y.Ea())||null}; g.R.isFullscreen=function(){return this.visibility.isFullscreen()}; g.R.isBackground=function(){return this.visibility.isBackground()}; g.R.Ag=function(){var y=this;Y9(this).then(function(){return D8(y)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.R.GA=function(){this.mediaElement&&this.mediaElement.activate();this.Bp();this.Yu()&&!g.D(this.playerState,128)&&(this.Pp.Yc()||(this.Pp.start(),this.videoData.TR?this.HO(Xv(this.playerState,4)):this.HO(Xv(Xv(this.playerState,8),1))),Vf1(this))}; g.R.UT=function(){return this.zM.finished}; g.R.sendAbandonmentPing=function(){g.D(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.X6(!0),Ov2(this.Jz),g.wQ(this.Jz),g.qC.Vb(this.ZM))}; g.R.oE=function(y,t,a){y=y===void 0?!0:y;(t===void 0||t)&&this.mediaElement&&this.mediaElement.pause();y&&a&&this.loader&&QQ(this.videoData)&&this.loader.hM(a);this.HO(y?new g.PY(14):new g.PY)}; g.R.RX=function(){this.Jz.U8()}; g.R.w7=function(y,t,a,r,E,h){var F,x;g.QY(FsU,a)?F=a:a?x=a:F="GENERIC_WITHOUT_LINK";r=(r||"")+(";a6s."+a2());if(y==="auth"||y==="drm.auth"||y==="heartbeat.stop")a&&(r+=";r."+a.replaceAll(" ","_")),h&&(r+="sr."+h.replaceAll(" ","_"));t={errorCode:y,errorDetail:E,errorMessage:x||g.nc[F]||"",zz:F,hL:h||"",vJ:r,vI:t,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=y;g_(this,"dataloaderror");this.HO(dA(this.playerState,128,t));g.qC.Vb(this.ZM);iS(this);this.TH()}; g.R.K$=function(y){this.Kw=this.Kw.filter(function(t){return y!==t}); this.Pp.Yc()&&Vf1(this)}; g.R.IN=function(){var y;(y=!!this.Kw.length)||(y=this.OV.V.array[0],y=!!y&&y.start<=-0x8000000000000);return y}; g.R.EN=function(){return this.xk.EN()}; g.R.isPlaying=function(){return this.playerState.isPlaying()}; g.R.KB=function(){return this.playerState.KB()&&this.videoData.TR}; g.R.getPlayerState=function(){return this.playerState}; g.R.uD=function(y){var t;(t=this.loader)==null||t.uD(y)}; g.R.lD=function(y){var t;(t=this.loader)==null||t.lD(y)}; g.R.getPlayerType=function(){return this.playerType}; g.R.getPreferredQuality=function(){if(this.EY){var y=this.EY;y=y.videoData.W0.compose(y.videoData.n8);y=bF(y)}else y="auto";return y}; g.R.uU=J1(12);g.R.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.R.setMediaElement=function(y){if(this.mediaElement&&y.YE()===this.mediaElement.YE()&&(y.isView()||this.mediaElement.isView())){if(y.isView()||!this.mediaElement.isView())this.Qa(),this.mediaElement=y,this.mediaElement.jL(this),a3n(this),this.xk.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.eQ();if(!this.playerState.isError()){var t=kq(this.playerState,512);g.D(t,8)&&!g.D(t,2)&&(t=Xv(t,1));y.isView()&&(t=kq(t,64));this.HO(t)}this.mediaElement=y;this.mediaElement.jL(this);!g.OY(this.j)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);a3n(this);this.xk.setMediaElement(this.mediaElement);this.B("html5_prewarm_media_source")&&!this.h_.KQ()&&this.mediaElement.PJ()}}; g.R.eQ=function(y,t,a){y=y===void 0?!1:y;t=t===void 0?!1:t;a=a===void 0?!1:a;if(this.mediaElement){var r=this.getCurrentTime();r>0&&(this.xk.Y=r);this.xk.setMediaElement(null);!y&&this.xn()?GhH(this):this.d1(a);this.loader&&(zK(this.loader),Gs(this,t));this.YH.stop();if(this.mediaElement&&(!this.Pp.Yc()&&!this.Fo()||this.playerState.isError()||g.D(this.playerState,2)||this.HO(Xv(this.playerState,512)),this.mediaElement)){this.Qa();if(y||!this.mediaElement.isView())this.dN.pw("mesv_s"),this.mediaElement.stopVideo(), Z8(this);this.mediaElement.jL(null);this.mediaElement=null}}}; g.R.playVideo=function(y,t){y=y===void 0?!1:y;t=t===void 0?!1:t;var a=this,r,E,h,F,x,U;return g.m(function(C){if(C.V==1){var z=window.google_image_requests;z&&z.length>10&&(window.google_image_requests=z.slice(-10));if(g.D(a.playerState,128))return C.return();if(a.h_.I6())return a.publish("signatureexpired"),C.return();a.mediaElement&&zT2(a.Jz);a.GA();(g.D(a.playerState,64)||y)&&a.HO(Xv(a.playerState,8));return a.Pp.finished&&a.mediaElement?a.EY||!a.Iy?C.xG(2):g.u(C,a.Iy,3):C.return()}if(C.V!=2&& g.D(a.playerState,128))return C.return();if(!a.videoData.Y)return a.videoData.isLivePlayback&&!g.jD(a.j.L,!0)?(r="html5.unsupportedlive",E=2):(r=a.videoData.sM()?"fmt.unplayable":"fmt.noneavailable",E=1),g.ls(Error("selectableFormats")),a.w7(r,E,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),C.return();if(a.f_()&&a.videoData.Y.V)return C.return(Y9(a));if(lS(a))z=a.xk,WQ(z.videoData)&&!z.isAtLiveHead(z.getCurrentTime())&&z.EN()&&z.Om.seekTo(Infinity,{yD:"seektimeline_peggedToLive", seekSource:34});else if(WQ(a.videoData)&&(h=a.getCurrentTime()F;if(!x||!F){E&&x&&(h=Math.max(h,E));var U;E=NHV(t,(U=r.V)==null?void 0:U.videoInfos);U=t.Om.getPlaybackRate();U>1&&E&&(U=x2n(t.j.L,r.V.videoInfos,U),y.V!==0&&U=480;if(t.B("html5_perf_cap_override_sticky")){C=t.Y;t=t.B("html5_perserve_av1_perf_cap");t=t===void 0?!1:t;if(t===void 0?0:t){z=S_();y=g.p(Object.keys(z));for(h=y.next();!h.done;h=y.next())h=h.value,h.indexOf("1")!==0&&delete z[h];g.m7("yt-player-performance-cap",z,2592E3)}else g.o_("yt-player-performance-cap");Cd2(t);if(t){t=g.p(r9.keys());for(z=t.next();!z.done;z=t.next())z=z.value,z.startsWith("1")|| r9.delete(z);t=g.p(hO.values());for(z=t.next();!z.done;z=t.next())z=z.value,z.startsWith("1")||hO.delete(z);t=g.p(C.keys());for(z=t.next();!z.done;z=t.next())z=z.value,z.startsWith("1")||C.delete(z)}else r9.clear(),hO.clear(),C.clear()}}}}this.loader&&(t=this.loader,a=a||"",t.policy.V?Lv(t.D.V,a):Lv(t.V.L,a));this.bk()}; g.R.getUserPlaybackQualityPreference=function(){return this.videoData.Y&&!this.videoData.Y.V?bF(this.videoData.W0):Hh[Wh()]}; g.R.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.R.setUserAudio51Preference=function(y,t){this.getUserAudio51Preference()!==y&&(this.H4("toggle51",{pref:y}),g.m7("yt-player-audio51",y,t?31536E3:2592E3),this.Ag())}; g.R.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.R.setProximaLatencyPreference=function(y){var t=this.getProximaLatencyPreference();this.H4("proxima",{pref:y});g.m7("yt-player-proxima-pref",y,31536E3);t!==y&&(y=this.xk,y.n1=!0,y.Om.seekTo(Infinity,{yD:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.R.getProximaLatencyPreference=function(){var y;return(y=j_())!=null?y:0}; g.R.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.R.My=function(){this.videoData.videoId?this.LM.My(this.videoData):this.H4("povid",{})}; g.R.pC=function(){this.videoData.videoId?this.LM.pC(this.videoData):this.H4("piavid",{})}; g.R.bk=function(){if(!this.Qv()&&!g.D(this.playerState,128)&&this.videoData.Y){if(this.videoData.Y.V)bS(this);else{var y=Ts(this),t=this.videoData;a:{var a=this.videoData.n1;if(y.V){for(var r=g.p(a),E=r.next();!E.done;E=r.next()){E=E.value;var h=E.getInfo(),F=g.jt[h.video.quality];if((!y.Y||h.video.quality!=="auto")&&F<=y.V){a=E;break a}}a=a[a.length-1]}else a=a[0]}t.d0=a;B1u(this,y.reason,hmd(this,this.videoData.d0))}if(this.B("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.xk.hF= !1,this.playVideo()}}; g.R.qy=function(y,t){if(this.Qv()||g.D(this.playerState,128))return!1;var a,r=!((a=this.videoData.Y)==null||!a.V);a=r&&t?this.getCurrentTime()-this.fJ():NaN;if(y.qK&&y.qK.id){var E=this.Jz;if(E.qoe){E=E.qoe;var h=[y.qK.id,isNaN(a)?"m":"t"];g.SK(E,g.eK(E.provider),"afi",h)}}if(r)return t&&(r=G02(this.xk),this.H4("aswh",{id:y.id,xtags:y.xtags,bh:r.toFixed(3)})),this.loader.setAudioTrack(y,a,t),!0;if(qpV(this)){a:{t=this.mediaElement.audioTracks();r=!1;for(a=0;ah.tF.getDuration()&&tK7(h,F)):tK7(h,C);var z=h.loader,O=h.tF;x=x===void 0?!1:x;U=U===void 0?!1:U;z.policy.L1&&(z.policy.yv&&z.H4("loader",{setsmb:0}),z.Xi(),z.policy.L1=!1);m$d(z,U);if(!C8(O)){var M=CW(z.videoTrack),L=CW(z.audioTrack),w=(M?M.info.z7:z.videoTrack.z7).info, d=(L?L.info.z7:z.audioTrack.z7).info,k=z.policy.XE,e=w.mimeType+(k===void 0?"":k),v=d.mimeType,l=w.G7,V=d.G7,B;O.AF=(B=O.tF)==null?void 0:B.addSourceBuffer(v);var b;O.Vv=e.split(";")[0]==="fakesb"?void 0:(b=O.tF)==null?void 0:b.addSourceBuffer(e);O.iq&&(O.iq.webkitSourceAddId("0",v),O.iq.webkitSourceAddId("1",e));var Z=new hu(O.AF,O.iq,"0",vU(v),V,!1),aV=new hu(O.Vv,O.iq,"1",vU(e),l,!0);LZN(O,Z,aV)}M=x;L=U;M=M===void 0?!1:M;L=L===void 0?!1:L;iq(z.videoTrack,O.K||null,L);iq(z.audioTrack,O.V||null, L);z.tF=O;z.tF.L=!0;M||z.resume();O.V.LI(z.r0,z);O.K.LI(z.r0,z);try{z.OY()}catch(rx){g.pK(rx)}h.publish("mediasourceattached")}}catch(rx){g.ls(rx),h.handleError(new g.rg("fmt.unplayable",{msi:"1",ename:rx&&typeof rx==="object"&&"name"in rx?String(rx.name):void 0,trg:"setmediasrc"},1))}} var h=this;t=t===void 0?!1:t;a=a===void 0?!1:a;yKV(this,r===void 0?!1:r);this.tF=y;this.xn()&&zy(this.tF)==="open"?E(this.tF):OD7(this.tF,E)}; g.R.bA=function(y){this.c9.set(y.initData,y);this.r7&&(this.r7.bA(y),this.B("html5_eme_loader_sync")||this.c9.remove(y.initData))}; g.R.Ax=function(y){this.videoData.NH=g.mE("auto",y,!1,"u");bS(this)}; g.R.fW=function(y){var t=y.reason,a=y.V.info,r=y.token,E=y.videoId,h=this.Jz,F=this.videoData;if(a!==F.D){var x=!F.D;F.D=a;t!=="m"&&t!=="t"&&(t=x?"i":"a");var U=t==="m"||t==="t";this.j.experiments.Nr("html5_refactor_sabr_audio_format_selection_logging")?this.oC=new wR7(F,a,t,"",r,E):(t=new wR7(F,a,t,"",r),h.qoe&&(h=h.qoe,a=g.eK(h.provider),Sf2(h,a,t)));this.publish("internalaudioformatchange",F,!x&&U)}this.AV();this.xk.fW(y.V.index)}; g.R.l7=function(y){this.publish("localmediachange",y)}; g.R.hg=function(y){y=y===void 0?{}:y;var t;(t=this.loader)==null||t.hg(this.j,ND(this.videoData),y)}; g.R.I6=function(){return this.h_.I6()}; g.R.Lk=function(y){this.Aj(new g.rg("staleconfig",{reason:y}))}; g.R.handleError=function(y){this.h_.handleError(y)}; g.R.KQ=function(){return this.h_.KQ()}; g.R.yf=function(y){this.xk.yf(y)}; g.R.UV=function(y,t){y=y===void 0?!1:y;t=t===void 0?!1:t;var a=this,r,E,h;return g.m(function(F){if(F.V==1){a.loader&&a.loader.wB();a.loader&&a.loader.Qv()&&iS(a);if(a.B("html5_enable_vp9_fairplay")&&a.sM()&&(r=a.videoData.V)!=null)for(var x in r.V)r.V.hasOwnProperty(x)&&(r.V[x].V=null,r.V[x].Y=!1);a.HO(Xv(a.playerState,2048));a.publish("newelementrequired");return y?g.u(F,Y9(a),2):F.xG(2)}a.videoData.US()&&((E=a.loader)==null?0:E.DE)&&!lS(a)&&((h=a.isAtLiveHead())&&WQ(a.videoData)?a.seekTo(Infinity, {yD:"videoPlayer_getNewElement"}):a.videoData.d7&&a.loader&&(x=a.loader,x.qr.US&&(x.qr.d7||x.qr.D||x.qr.isPremiere?(x.seek(0,{yD:"loader_resetSqless"}),x.videoTrack.J=!0,x.audioTrack.J=!0,x.videoTrack.D=!0,x.audioTrack.D=!0):yr(x.qr)&&QJ(x))));t&&a.seekTo(0,{seekSource:105});g.D(a.playerState,8)&&a.playVideo();g.FU(F)})}; g.R.uT=function(y){this.H4("hgte",{ne:+y});this.videoData.W=!1;y&&this.UV();this.loader&&n6b(this.loader)}; g.R.cn=function(y){this.H4("newelem",{r:y});this.UV()}; g.R.pauseVideo=function(y){y=y===void 0?!1:y;if((g.D(this.playerState,64)||g.D(this.playerState,2))&&!y)if(g.D(this.playerState,8))this.HO(f8(this.playerState,4,8));else if(this.KB())D8(this);else return;g.D(this.playerState,128)||(y?this.HO(Xv(this.playerState,256)):this.HO(f8(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.BQ(this.videoData)&&this.loader&&Gs(this,!1)}; g.R.stopVideo=function(){this.pauseVideo();this.loader&&(Gs(this,!1),this.loader.Xi())}; g.R.TH=function(y,t){y=y===void 0?!1:y;t=t===void 0?!1:t;if(this.xn()&&t){var a;(a=this.mediaElement)==null||a.TH()}else{var r;(r=this.mediaElement)==null||r.stopVideo()}Z8(this);iS(this);g.D(this.playerState,128)||(y?this.HO(kq(kq(Xv(this.playerState,4),8),16)):this.HO(dA(this.playerState)));this.videoData.videoId&&this.j.Ff.remove(this.videoData.videoId)}; g.R.seekTo=function(y,t){t=t===void 0?{}:t;g.D(this.playerState,2)&&D8(this);t.iBX&&this.HO(Xv(this.playerState,2048));if((t.seekSource===58||t.seekSource===60)&&this.B("html5_update_vss_during_gapless_seeking")){var a=this.Jz;a.V&&(a=a.V,t.seekSource===58?a.V.update():a.Y&&(zs(a),L1(a).send(),a.D=NaN))}this.xk.seekTo(y,t);this.OV.sync()}; g.R.Zg=function(y){this.dN.D.K=(0,g.Wx)();g.D(this.playerState,32)||(this.HO(Xv(this.playerState,32,y==null?void 0:y.seekSource)),g.D(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.QD()}; g.R.fN=function(y){y=y==null?void 0:y.seekSource;g.D(this.playerState,32)?(this.HO(f8(this.playerState,16,32,y)),this.publish("endseeking")):g.D(this.playerState,2)||this.HO(Xv(this.playerState,16,y));y=this.dN.D;var t=this.videoData,a=this.playerState.isPaused();if(t.clientPlaybackNonce&&!isNaN(y.V)){if(Math.random()<.01){a=a?"pbp":"pbs";var r={startTime:y.V};t.J&&(r.cttAuthInfo={token:t.J,videoId:t.videoId});ly("seek",r);g.eW({clientPlaybackNonce:t.clientPlaybackNonce},"seek");isNaN(y.K)||pM("pl_ss", y.K,"seek");pM(a,(0,g.Wx)(),"seek")}y.reset()}}; g.R.jG=function(y){this.fN(y)}; g.R.Ey=function(){this.publish("SEEK_COMPLETE")}; g.R.u7=function(y){var t=this.LM,a=this.videoData.clientPlaybackNonce,r=this.playerType;if(y.scope===4){var E=y.type;if(E){var h=t.VW(),F=h.getVideoData().clientPlaybackNonce;r===1&&(F=a);if(r=XsH(t,F)){if(a=r.getVideoData())y.writePolicy===2&&a.sabrContextUpdates.has(E)||(y.sendByDefault&&a.Ff.add(E),a.sabrContextUpdates.set(E,y)),t.B("html5_enable_t1_enf_on_sabr")&&(y=E===5,E=O92(a.playerResponse),y?(y=E?1:0,$Z(y,"m.p_",{}),ZR("MBSTAT",y)):y=1,y===0&&t.Mr.W4("onAbnormalityDetected"))}else h.H4("scuset", {ncpf:"1",ccpn:F,crcpn:a})}else g.ls(Error("b/380308491: contextUpdateType is undefined"))}}; g.R.pF=function(){if(this.playerType===2)return this.LM.pF("")}; g.R.getCurrentTime=function(y){return this.xk.getCurrentTime(y===void 0?!1:y)}; g.R.WA=function(){return this.xk.WA()}; g.R.cz=function(){return this.xk.cz()}; g.R.Wc=function(){return this.cz()}; g.R.Lx=function(){return this.xk.Lx()}; g.R.getPlaylistSequenceForTime=function(y){return this.videoData.getPlaylistSequenceForTime(y-this.fJ())}; g.R.aY=function(){var y=NaN;this.mediaElement&&(y=this.mediaElement.aY());return y>=0?y:this.getCurrentTime()}; g.R.Pj=function(){var y;return((y=this.videoData.V)==null?0:y.Pj)?this.videoData.V.Pj(this.getCurrentTime()-this.fJ()):this.mediaElement&&(y=this.mediaElement.u9())&&(y=y.getTime(),!isNaN(y))?y/1E3+this.getCurrentTime():NaN}; g.R.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.fJ():this.Gr()?this.Gr():0}; g.R.ql=function(){var y=new RTb;if(this.loader){var t=this.xE,a=this.j.Bb();a=a===void 0?!1:a;y.TM=t.o5;y.Fg=t.r0;y.bandwidthEstimate=Tq(t);if(a){a=(t.Z.wP()*1E3).toFixed();var r=(t.d0.wP()*1E3).toFixed(),E=Ka(t).toFixed(2),h=((t.W.wP()||0)*1E9).toFixed(2),F=t.Y.wP().toFixed(0),x=t.L1.wP().toFixed(0),U=t.hF.percentile(.5).toFixed(2),C=t.hF.percentile(.92).toFixed(2),z=t.hF.percentile(.96).toFixed(2),O=t.hF.percentile(.98).toFixed(2);t.V?t.V.reset():t.V=new Ox;t.V.add(t.DE);t.V.add(t.interruptions.length); for(var M=0,L=t.interruptions.length-1;L>=0;L--){var w=t.interruptions[L];t.V.add(w-M);M=w}M=0;for(L=t.D.length-1;L>=0;L--){w=t.D[L];var d=w.stamp/36E5;t.V.add(d-M);M=d;t.V.add(w.net/1E3);t.V.add(w.max)}t=t.V.Tv();y.V={ttr:a,ttm:r,d:E,st:h,bw:F,abw:x,v50:U,v92:C,v96:z,v98:O,"int":t}}t=this.loader;t.tF&&t.tF.L&&!t.tF.l2()&&(y.e9=Ep(t.videoTrack),y.K=Ep(t.audioTrack),t.policy.Y&&(a=aR(t.videoTrack),r=aR(t.audioTrack),E=Ki(t.tF.K.Ro(),"_",5),h=Ki(t.tF.V.Ro(),"_",5),Object.assign(y.V,{lvq:a,laq:r,lvb:E, lab:h})));y.bandwidthEstimate=IX(t.hF);var k;(k=t.audioTrack.Z)==null||k.flush();var e;(e=t.videoTrack.Z)==null||e.flush()}else this.mediaElement&&(y.e9=this.mediaElement.PK());y.TM=this.TM;y.Fg=this.Fg;y.Y=this.isAtLiveHead()&&this.isPlaying()?pcx(this):NaN;k=this.xk;k=k.V?f1(k.V):0;y.D=k;return y}; g.R.Cs=function(y,t){this.Fg+=y;this.TM+=t}; g.R.uc=function(){return this.mediaElement?g.BQ(this.videoData)?1:cQ(this.videoData)?this.isAtLiveHead()||this.EN()?1:this.xk.uc():this.mediaElement.uc():0}; g.R.OT=function(){var y=this.hB,t=JO(y,"bandwidth"),a=JO(y,"bufferhealth"),r=JO(y,"livelatency"),E=JO(y,"networkactivity"),h=mC(y,"bandwidth"),F=mC(y,"bufferhealth"),x=mC(y,"livelatency");y=mC(y,"networkactivity");var U=this.Cn(),C=U.droppedVideoFrames;U=U.totalVideoFrames;var z=this.getCurrentTime();if(this.r7){var O="IT/"+(this.r7.V.getInfo()+"/"+bF(this.Ji()));O+="/"+this.r7.getInfo()}else O="";var M=this.isGapless(),L=this.nA(),w=this.xY(),d=g.I0(this),k=this.getPlayerState().state.toString(16), e=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var v=0;var l="";if(this.mL){if(this.mL.N1){l="D,";break a}v=this.mL.FZ;l=this.mL.B1.substring(0,4)}v>0?(v="AD"+v+", ",l&&(v+=l+", "),l=v):l=""}return{us:h,zD:F,currentTime:z,pE:O,droppedVideoFrames:C,isGapless:M,nA:L,kZ:w,WW:t,Nv:a,R$:r,Gb:E,nR:x,k9:y,aj:d,uf:k,po:e,UJ:l,totalVideoFrames:U}}; g.R.Tl=function(y){var t={};if(y===void 0?0:y){Object.assign(t,this.Jz.Tl());this.mediaElement&&(Object.assign(t,this.mediaElement.Tl()),y=this.Cn(),t.dvf=y.droppedVideoFrames,t.tvf=y.totalVideoFrames);this.loader&&Object.assign(t,this.loader.Tl());this.r7&&(t.drm=JSON.stringify(this.r7.Tl()));t.state=this.playerState.state.toString(16);g.D(this.playerState,128)&&(t.debug_error=JSON.stringify(this.playerState.mS));this.IN()&&(t.prerolls=this.Kw.join(","));this.videoData.B5&&(t.ismb=this.videoData.B5); this.videoData.latencyClass!=="UNKNOWN"&&(t.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(t.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)t.is_mosaic=1;this.videoData.cotn&&(t.is_offline=1,t.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(t.playerResponseCpn=this.videoData.playerResponseCpn);this.LM.isOrchestrationLeader()&&(t.leader=1);this.videoData.isLivePlayback&& (this.videoData.V&&I1(this.videoData.V)&&(t.segduration=I1(this.videoData.V)),y=this.xk,t.lat=y.Z?uY7(y.Z.D):0,t.liveutcstart=this.videoData.liveUtcStartSeconds);t.relative_loudness=this.videoData.Vy.toFixed(3);if(y=g.I0(this))t.optimal_format=y.video.qualityLabel;t.user_qual=Wh();t.release_version=A[43]}t.debug_videoId=this.videoData.videoId;return t}; g.R.addCueRange=function(y){this.Yx([y])}; g.R.removeCueRange=function(y){this.OV.RY([y])}; g.R.Uc=function(){var y=this.OV;if(y.Om.G().B("html5_sort_cueranges_on_update")&&!(y.Q2().length<=0||y.Qv())){var t=y.V;t.array.sort(t.V)}y.sync()}; g.R.q_=function(y,t){return this.OV.q_(y,t)}; g.R.Yx=function(y,t){this.OV.Xm(y,t)}; g.R.cE=function(y){this.OV.RY(y)}; g.R.Q2=function(){return this.OV.Q2()||[]}; g.R.bN=function(){return this.mO}; g.R.f_=function(){return this.visibility.f_()}; g.R.Qn=function(){this.mediaElement&&this.mediaElement.Qn()}; g.R.SeE=function(){g_(this)}; g.R.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.R.Qa=function(){g.V1(this.Z7)}; g.R.Za0=function(){this.QD();this.publish("onLoadProgress",this.uc())}; g.R.Fq=function(y){var t=y.target.wH();if(this.mediaElement&&this.mediaElement.wH()&&this.mediaElement.wH()===t){Cb7(this,y.type);switch(y.type){case "error":var a=this.mediaElement.ZI()||"",r=this.mediaElement.xT();if(a==="capability.changed"){this.B("html5_restart_on_capability_change")?(this.H4("capchg",{msg:r}),this.UV(!0)):Y9(this);return}if(this.mediaElement.hasError()&&$f1(this.h_,a,{msg:r,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.cW()){this.TH();K1(this,"unplayable"); return}break;case "durationchange":a=this.mediaElement.getDuration();isFinite(a)&&(!this.tF||a>0)&&a!==1&&this.Fd(a);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());a=this.OV;a.started=!0;a.sync();this.Jz.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.pJ().V.o7(A19)||this.B("html5_prevent_mobile_background_play_on_event_shared"))&&BN(this,!1);OHn(this);this.publish("onLoadedMetadata");EQ7(this);a=this.Pj();this.videoData.uH&& (this.videoData.uH=a);break;case "loadstart":EQ7(this);break;case "progress":case "suspend":this.cw.yw();break;case "seeked":(a=this.loader)!=null&&a.policy.K&&a.Rv&&(a.H4("sdai",{skipAdSked:"1"}),a.Rv=!1);break;case "playing":(this.pJ().V.o7(A19)||this.B("html5_prevent_mobile_background_play_on_event_shared"))&&BN(this,!1);this.dN.pw("plev");this.Dv&&!lS(this)&&(this.Dv=!1,this.isAtLiveHead()||this.seekTo(Infinity,{yD:"videoplayer_onPlaying"}));break;case "timeupdate":(this.pJ().V.o7(A19)||this.B("html5_prevent_mobile_background_play_on_event_shared"))&& BN(this,!1);a=this.mediaElement&&!this.mediaElement.getCurrentTime();r=this.mediaElement&&this.mediaElement.xj()===0;if(a&&(!this.Pm||r))return;this.Pm=this.Pm||!!this.mediaElement.getCurrentTime();rKx(this);this.QD();if(!this.mediaElement||this.mediaElement.wH()!==t)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.bU().length>0&&this.mediaElement.FC().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return; this.B("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.xj()>2||!this.mediaElement.isSeeking()&&TM(this.mediaElement.FC(),this.mediaElement.getCurrentTime()))&&(a=this.mediaElement.Tl(),a.bh=this.mediaElement.PK().toFixed(3),this.H4("uwe",a));break;case "resize":OHn(this);this.videoData.K&&this.videoData.K.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.r3&&g.D(this.playerState,8)&&!g.D(this.playerState, 1024)&&this.getCurrentTime()===0&&g.wR){K1(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.wH()===t){sRy(this.xk,y);this.publish("videoelementevent",y);t=this.playerState;r=this.gT;var E=this.mediaElement;a=this.videoData.clientPlaybackNonce;if(!g.D(t,128)){var h=t.state;E=E?E:y.target;var F=E.getCurrentTime();if(!g.D(t,64)||y.type!=="ended"&&y.type!=="pause"){var x=E.getDuration();x=E.isEnded()||F>1&&Math.abs(F-x)<1.1;var U=y.type==="pause"&&E.isEnded();F=y.type=== "ended"||y.type==="waiting"||y.type==="timeupdate"&&!g.D(t,4)&&!Nk(r,F);if(U||x&&F)E.Zp()>0&&E.wH()&&(h=14);else switch(y.type){case "error":E.ZI()&&(h|=128);break;case "pause":g.D(t,256)?(h^=256)||(h=64):g.D(t,32)||g.D(t,2)||g.D(t,4)||(h=4,g.D(t,1)&&g.D(t,8)&&(h|=1));break;case "playing":F=h;h=(h|8)&-1093;F&4?(h|=1,N2(r,E,!0)):Nk(r,E.getCurrentTime())&&(h&=-2);g.D(t,1)&&N2(r,E)&&(h|=1);break;case "seeking":h|=16;g.D(t,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;N2(r,E,!0);break;case "waiting":g.D(t, 2)||(h|=1);N2(r,E);break;case "timeupdate":F=g.D(t,16),x=g.D(t,4),(g.D(t,8)||F)&&!x&&Nk(r,E.getCurrentTime())&&(h=8),N2(r,E)&&(h|=1)}}r=h;h=null;r&128&&(h=y.target,E=h.ZI(),F=1,E?(E==="capability.changed"&&(F=2),x="GENERIC_WITHOUT_LINK",U=h.Tl(),U.mediaElem="1",U.trg="melem",/AUDIO_RENDERER/.test(h.xT())&&(x="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:E,errorMessage:g.nc[x]||"",zz:x,vJ:al(U),vI:F,cpn:t.mS?t.mS.cpn:""}):h=null,h&&(h.cpn=a));t=dA(t,r,h)}!g.D(this.playerState,1)&&g.D(t,1)&&UoH(this,"evt"+ y.type);this.HO(t)}}}; g.R.Gl1=function(y){y=y.V.availability==="available";y!==this.mO&&(this.mO=y,this.publish("airplayavailabilitychange"))}; g.R.ZJr=function(){var y=(0,g.Wx)(),t=this.mediaElement.f_();this.H4("airplay",{ia:t});!t&&!isNaN(this.Bn)&&y-this.Bn<2E3||(this.Bn=y,t!==this.f_()&&(y=this.visibility,y.V!==t&&(y.V=t,y.Ii()),this.H4("airplay",{rbld:t}),this.Ag()),this.publish("airplayactivechange"))}; g.R.SY=function(y){if(this.loader){var t=this.loader,a=t.Y,r=t.getCurrentTime(),E=Date.now()-a.Z;a.Z=NaN;a.H4("sdai",{adfetchdone:y,d:E});y&&!isNaN(a.J)&&a.K!==3&&hr(a.loader,r,a.J,a.L);a.policy.K?a.Y=NaN:a.D=NaN;EP(a,4,a.K===3?"adfps":"adf");zK(t)}}; g.R.uQ=function(){g.kz(this.HJ);this.YH.stop();this.videoData.Z=!0;this.j.VN=!0;this.j.I7=0;var y=this.h_;if(y.videoData.K){var t=y.P4.L,a=y.videoData.K.G7;t.Y.has(a)&&(t.Y.delete(a),t.V=!0)}y.V.stop();this.mG();g.D(this.playerState,8)&&this.HO(kq(this.playerState,65));this.zg=!1;this.Jz.sQ();g.Ge(this.HB);this.publish("playbackstarted");(y=g.jc("yt.scheduler.instance.clearPriorityThreshold"))?y():rR(0)}; g.R.mG=function(){var y=this.LM.nM(),t={},a={};!uy("pbs",this.dN.timerName)&&P_.measure&&P_.getEntriesByName&&(P_.getEntriesByName("mark_nr")[0]?nGd("mark_nr"):nGd());y.videoId&&(t.videoId=y.videoId);y.clientPlaybackNonce&&!this.B("web_player_early_cpn")&&(t.clientPlaybackNonce=y.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(a.isPausedOnLoad=!0);a.itag=y.K?Number(y.K.itag):-1;y.RR&&(a.preloadType=String(this.eK?2:1));t.liveStreamMode=lh2[mA(y)];t.playerInfo=a;this.dN.infoGel(t); if(this.loader){y=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(y.Y&&(t=window.performance.getEntriesByName(y.Y),t.length&&(t=t[0],y.tick("vri",t.fetchStart),y.tick("vdns",t.domainLookupEnd),y.tick("vreq",t.requestStart),y.tick("vrc",t.responseEnd))),y.K&&(t=window.performance.getEntriesByName(y.K),t.length&&(t=t[0],y.tick("ari",t.fetchStart),y.tick("adns",t.domainLookupEnd),y.tick("areq",t.requestStart),y.tick("arc",t.responseEnd))));y=y.ticks;for(var r in y)y.hasOwnProperty(r)&& this.dN.tick(r,y[r])}}; g.R.QD=function(y){var t=this;y=y===void 0?!1:y;if(this.mediaElement&&this.videoData){Zvb(this.xk,this.isPlaying());var a=this.getCurrentTime();if(this.loader&&(g.D(this.playerState,4)&&g.BQ(this.videoData)||g.D(this.playerState,32)&&V3(this.videoData)||t1y(this.loader,a),this.B("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-YQ(this.loader))>10)){var r;this.H4("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(r=this.loader)==null?void 0:YQ(r)},!0)}a>5&&(this.xk.Y=a); (r=g.aU())?g.qC.Vb(this.ZM):g.Xk(this.ZM);var E=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!E||$6(this.videoData))&&!g.D(this.playerState,128)){var h=function(){if(t.mediaElement&&!g.D(t.playerState,128)){t.j.Bb()&&Cb7(t,"pfx");var F=t.getCurrentTime();t.B("html5_buffer_underrun_transition_fix")&&(F-=t.fJ());var x=t.mediaElement.PK(),U=g.D(t.playerState,8),C=Nk(t.gT,F),z=PIV(t.gT,F,(0,g.Wx)(),x);U&&C?t.HO(kq(t.playerState,1)):U&&z?(U=t.getDuration(),C=WQ(t.videoData),U&&Math.abs(U- F)<1.1?(t.H4("setended",{ct:F,bh:x,dur:U,live:C}),t.mediaElement.SP()?t.seekTo(0,{yD:"videoplayer_loop",seekSource:37}):t.oE()):(t.playerState.isBuffering()||UoH(t,"progress_fix"),t.HO(Xv(t.playerState,1)))):(U&&!C&&!z&&F>0&&(U=(Date.now()-t.Kr)/1E3,C=t.getDuration(),F>C-1&&t.H4("misspg",{t:F.toFixed(2),d:C.toFixed(2),r:U.toFixed(2),bh:x.toFixed(2)})),t.playerState.isPaused()&&t.playerState.isBuffering()&&t.mediaElement.PK()>5&&t.HO(kq(t.playerState,1)));t.QD()}}; this.mediaElement.bU().length===0?this.ZM=r?g.qC.f$(h,100):g.Nt(h,100):this.ZM=r?g.qC.f$(h,500):g.Nt(h,500)}this.videoData.FB=a;!y&&this.isPlaying()&&FMn(this);vix(this.Oh,this.EY,this.uJ(),this.isBackground())&&bS(this);this.publish("progresssync",y);E&&$6(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.R.Sy=function(){this.w7("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.R.xY=function(){return this.Jz.xY()}; g.R.rY=function(){return this.loader?this.loader.rY():Tq(this.xE,!0)}; g.R.HO=function(y){if(!g.WY(this.playerState,y)){var t=new g.CD(y,this.playerState);this.playerState=y;zmx(this);var a=!this.eL.length;this.eL.push(t);var r=this.mediaElement&&this.mediaElement.isSeeking();g.Og(t,1)&&this.loader&&V91(this.loader);r=t.oldState.state===8&&!r;if(g.Og(t,1)&&r&&g.D(this.playerState,8)&&!g.D(this.playerState,64)&&this.loader){r=this.loader;r.Nk=!0;if(r.policy.XB&&r.tF){var E,h,F,x;r.H4("lr_rb",{c:r.getCurrentTime(),s:r.isSeeking(),ab:Ki(r.tF.V.Ro()),ala:(E=Kv(r.audioTrack))== null?void 0:E.iJ(),alr:(h=r.audioTrack.V)==null?void 0:h.iJ(),vb:Ki(r.tF.K.Ro()),vla:(F=Kv(r.videoTrack))==null?void 0:F.iJ(),vlr:(x=r.videoTrack.V)==null?void 0:x.iJ()})}r.iX!==0&&r.H4("sps_rebuffer",{c:r.getCurrentTime()});this.mediaElement&&this.mediaElement.PK()>=5&&(E=this.Oh,h=this.EY,!h.videoData.K||E.B("html5_disable_performance_downgrade")?E=!1:(Date.now()-E.W>6E4&&(E.K=0),E.K++,E.W=Date.now(),E.K!==4?E=!1:(SxH(E,h.videoData.K),E=!0)),E&&bS(this))}(E=g.Gw(this.j.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.D(y,1)&&(g.D(y,8)||g.D(y,16))?this.NJ.start(E):this.NJ.stop();(zz(t,8)<0||g.Og(t,1024))&&this.YH.stop();!g.Og(t,8)||this.videoData.Z||g.D(t.state,1024)||this.YH.start();g.D(t.state,8)&&zz(t,16)<0&&!g.D(t.state,32)&&!g.D(t.state,2)&&this.playVideo();g.D(t.state,2)&&cQ(this.videoData)&&(this.Fd(this.getCurrentTime()),this.QD(!0));g.Og(t,2)&&(this.X6(!0),this.j.Bb()&&this.B("html5_sabr_parse_live_metadata_playback_boundaries")&&V3(this.videoData)&&this.videoData.V&&(y={minst:""+ this.videoData.V.j$,cminst:""+(this.videoData.V.WO()+this.fJ()),maxst:""+this.videoData.V.CG,hts:""+this.videoData.V.o5,cmaxst:""+(this.videoData.V.Gr()+this.fJ())},this.H4("sabrSeekableBoundaries",y)));g.Og(t,128)&&this.TH();this.videoData.V&&this.videoData.isLivePlayback&&!this.Vk&&(zz(t,8)<0?(y=this.videoData.V,y.L&&y.L.stop()):g.Og(t,8)&&this.videoData.V.resume());y=this.xk;g.Ge(y.AF.L);if(y.mediaElement)if(t.oldState.state===8&&jL(t.state)&&t.state.isBuffering()){var U=y.mediaElement.getCurrentTime(); E=y.mediaElement.FC();h=y.B("manifestless_post_live_ufph")||y.B("manifestless_post_live")?Il(E,Math.max(U-3.5,0)):Il(E,U-3.5);h>=0&&U>E.end(h)-1.1&&h+10?(qk(y.Om,y.getCurrentTime()+y.videoData.limitedPlaybackDurationInSeconds), y.R5=!0):y.videoData.isLivePlayback&&y.videoData.endSeconds>0&&(qk(y.Om,y.getCurrentTime()+y.videoData.endSeconds),y.R5=!0));U=this.Jz;if(g.Og(t,1024)||g.Og(t,512)||g.Og(t,4))U.K&&(y=U.K,y.K>=0||(y.V=-1,y.delay.stop())),U.qoe&&(y=U.qoe,y.W||(y.Y=-1));if(U.provider.videoData.enableServerStitchedDai&&U.hV){var C;(C=U.Y.get(U.hV))==null||x5x(C,t)}else U.V&&x5x(U.V,t);U.qoe&&(C=U.qoe,y=t.state,E=g.eK(C.provider),h=C.getPlayerState(y),F=y.seekSource||void 0,h!==C.kJ&&(C.o5||E=10&&C.playTimeSecs<=180&&(C.V.set("qoealert",["1"]),C.I7=!0)),h!=="B"||C.kJ!=="PL"&&C.kJ!=="PB"||(C.isBuffering=!0),C.K=E),C.kJ==="PL"&&(h==="B"||h==="S")||C.provider.j.Bb()?ub(C,E):(C.zl||h!=="PL"||(C.zl=!0,lb(C,E,C.provider.Om.ql())),pH(C,E)),h==="PL"&&g.Ge(C.MP),x=[h],h==="S"&&F&&x.push("ss."+F),g.SK(C,E,"vps",x),C.kJ=h,C.AF=E,C.K=E,C.D=!0),h=y.mS,g.D(y,128)&&h&&(h.vJ=h.vJ||"",d$d(C,E,h.errorCode, h.vI,h.vJ)),(g.D(y,2)||g.D(y,128))&&C.reportStats(E),y.isPlaying()&&!C.W&&(C.Y>=0&&C.V.set("user_intent",[C.Y.toString()]),C.W=!0),Vs(C));U.K&&(C=U.K,ni7(C),C.playerState=t.state,C.K>=0&&g.Og(t,16)&&C.seekCount++,t.state.isError()&&C.send());if(a&&!this.Qv())try{for(var z=g.p(this.eL),O=z.next();!O.done;O=z.next()){var M=O.value,L=this.OV;if(L.started&&(L.sync(),g.D(M.oldState,16))){t=L;var w=k02(t.V,Math.max(t.Y-2E3,0));!isNaN(w)&&w<0x7ffffffffffff&&t.D.start()}this.publish("statechange",M)}}finally{this.eL.length= 0}}}; g.R.ZV=function(){this.dN.tick("qoes")}; g.R.Ut=function(){this.xk.Ut()}; g.R.Cj=function(y,t,a,r){a:{var E=this.h_;r=r===void 0?"LICENSE":r;a=a.substring(0,256);var h=ED(t);y==="drm.keyerror"&&this.r7&&this.r7.K.keys.length>1&&E.D<96&&(y="drm.sessionlimitexhausted",h=!1);var F=E.P4.experiments.Nr("html5_retry_on_drm_unavailable"),x=E.P4.experiments.Nr("html5_retry_on_drm_key_error"),U=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(F&&y==="drm.unavailable"||x&&y==="drm.keyerror"&&!a.match(U))E.Aj("qoe.restart",{retryOnDrmError:1,e:y,detail:a}),E.Om.UV(!0);else{if(h)if(E.videoData.K&& E.videoData.K.video.isHdr())MS7(E,y);else{if(E.Om.w7(y,t,r,a),AS7(E,{detail:a}))break a}else E.Aj(y,{detail:a});y==="drm.sessionlimitexhausted"&&(E.H4("retrydrm",{sessionLimitExhausted:1}),E.D++,$o7(E.Om))}}}; g.R.pOr=function(){var y=this,t=g.Gw(this.j.experiments,"html5_license_constraint_delay"),a=FL();t&&a?(t=new g.Te(function(){y.bk();g_(y)},t),g.c(this,t),t.start()):(this.bk(),g_(this))}; g.R.yO=function(y){this.publish("heartbeatparams",y)}; g.R.eF=function(y){this.H4("keystatuses",pP2(y));var t="auto",a=!1;this.videoData.K&&(t=this.videoData.K.video.quality,a=this.videoData.K.video.isHdr());a:{switch(t){case "highres":case "hd2880":t="UHD2";break;case "hd2160":case "hd1440":t="UHD1";break;case "hd1080":case "hd720":t="HD";break;case "large":case "medium":case "small":case "light":case "tiny":t="SD";break;default:t="";break a}a&&(t+="HDR")}t=TK(y)?GK(y,t):y.D.includes(t);if(this.B("html5_enable_vp9_fairplay")){if(a)if(y.W){var r;if((r= this.r7)==null?0:CN(r.V))if((a=this.r7)==null)a=0;else{for(var E=r=void 0,h=g.p(a.K.values()),F=h.next();!F.done;F=h.next())F=F.value,r||(r=lZ1(F,"SD")),E||(E=lZ1(F,"AUDIO"));a.D5({sd:r,audio:E});a=r==="output-restricted"||E==="output-restricted"}else a=!t;if(a){this.H4("drm",{dshdr:1});MS7(this.h_);return}}else{this.videoData.cA||(this.videoData.cA=!0,this.H4("drm",{dphdr:1}),this.UV(!0));return}var x;if((x=this.r7)==null?0:CN(x.V))return}else if(x=y.W&&t,a&&!x){MS7(this.h_);return}t||GK(y,"AUDIO")&& GK(y,"SD")||(y=pP2(y),this.KP?(this.publish("drmoutputrestricted"),this.B("html5_report_fatal_drm_restricted_error_killswitch")||this.w7("drm.keyerror",2,void 0,"info."+y)):(this.KP=!0,this.Aj(new g.rg("qoe.restart",Object.assign({},{retrydrm:1},y))),bS(this),$o7(this)))}; g.R.XO7=function(){if(!this.videoData.Z&&this.mediaElement&&!this.isBackground()){var y="0";this.mediaElement.xj()>0&&this.mediaElement.PK()>=5&&this.videoData.Y&&this.videoData.Y.V&&(this.HO(Xv(this.playerState,1)),UoH(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),y="1");zmx(this);var t=this.videoData.Y;y={restartmsg:y,mfmt:!wU(this.videoData),mdrm:!(!(t&&t.videoInfos&&t.videoInfos.length&&t.videoInfos[0].YJ)||this.r7),mfmtinfo:!this.videoData.K,prerolls:this.IN()?this.Kw.join(","): "0"};if(this.r7){t=this.r7;if(t.K.size<=0){var a="ns;";t.hF||(a+="nr;");t=a+="ql."+t.Y.length}else t=pP2(t.K.values().next().value),t=al(t);y.drmp=t}var r;Object.assign(y,((r=this.loader)==null?void 0:r.Tl())||{});var E;Object.assign(y,((E=this.mediaElement)==null?void 0:E.Tl())||{});this.Jz.Aj("qoe.start15s",al(y));this.publish("loadsofttimeout")}}; g.R.Fd=function(y){this.videoData.lengthSeconds!==y&&(this.videoData.lengthSeconds=y,g_(this))}; g.R.X6=function(y,t){var a=this;y=y===void 0?!1:y;if(!this.cV)if(uy("att_s","player_att")||nM("att_s",void 0,"player_att"),this.B("use_rta_for_player"))(function(){var E,h,F,x,U;return g.m(function(C){switch(C.V){case 1:if(!(E=y)){C.xG(2);break}return g.u(C,g.O4V(),3);case 3:E=!C.K;case 2:if(E)return C.return();g.xs(C,4);h=MrH(a.Jz);if(!h)throw Error();F={};return g.u(C,g.zxd((F.cpn=a.videoData.clientPlaybackNonce,F.encryptedVideoId=a.videoData.videoId||"",F),g.Gw(a.j.experiments,"html5_att_playback_timeout_ms")|| 3E4),6);case 6:x=C.K;if(a.cV)throw Error();if(!x.challenge)throw U=x.error?"; error: "+x.error:"",g.ls(Error("Not sending atr ping; missing challenge string"+U)),Error();a.cV=!0;var z=[x.challenge];if(x.error){var O=Nx3();O=B6b(O).get(x.error)||0;z.push("r1c="+O)}else x.webResponse&&z.push("r1a="+x.webResponse);var M;((M=x.adblockReporting)==null?void 0:M.reportingStatus)!==void 0&&z.push("r6a="+x.adblockReporting.reportingStatus);var L;((L=x.adblockReporting)==null?void 0:L.broadSpectrumDetectionResult)!== void 0&&z.push("r6b="+x.adblockReporting.broadSpectrumDetectionResult);h(z.join("&"));nM("att_f",void 0,"player_att");g.$s(C,0);break;case 4:g.Uy(C),nM("att_e",void 0,"player_att"),g.FU(C)}})})().then(function(){t==null||t()}); else{var r=new g.Ea7(this.videoData);if("c1a"in r.XM&&!g.dP.isInitialized()){nM("att_wb",void 0,"player_att");this.AE===2&&Math.random()<.01&&g.ls(Error("Botguard not available after 2 attempts"));if(y)return;if(this.AE<5){g.Ge(this.V4);this.AE++;return}}(r=g.hAH(r))?(nM("att_f",void 0,"player_att"),LQu(this.Jz,r),this.cV=!0):nM("att_e",void 0,"player_att")}}; g.R.ih=function(y){y=y===void 0?!1:y;return WQ(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.EN()||g.BQ(this.videoData))?this.getCurrentTime():this.Gr(y)}; g.R.Xy=function(){return this.WO()}; g.R.Gr=function(y){return this.xk.Gr(y===void 0?!1:y)}; g.R.WO=function(){return this.xk.WO()}; g.R.fJ=function(){return this.xk?this.xk.fJ():0}; g.R.getStreamTimeOffset=function(){return this.xk?this.xk.getStreamTimeOffset():0}; g.R.X0=function(){return this.getStreamTimeOffset()===0?this.fJ():this.getStreamTimeOffset()}; g.R.setPlaybackRate=function(y){var t;this.playbackRate!==y&&NHV(this.Oh,(t=this.videoData.Y)==null?void 0:t.videoInfos)&&(this.playbackRate=y,bS(this));this.playbackRate=y;this.mediaElement&&this.mediaElement.setPlaybackRate(y)}; g.R.getPlaybackRate=function(){return this.playbackRate}; g.R.getPlaybackQuality=function(){var y="unknown";if(this.videoData.K&&(y=this.videoData.K.video.quality,y==="auto"&&this.mediaElement)){var t=this.ZL();t&&t.videoHeight>0&&(y=WU(t.videoWidth,t.videoHeight))}return y}; g.R.isHdr=function(){return!!(this.videoData.K&&this.videoData.K.video&&this.videoData.K.video.isHdr())}; g.R.sendVideoStatsEngageEvent=function(y,t){var a=this.Jz;a.V?(a=Oo(a.V,"engage"),a.o5=y,a.send(t)):t&&t()}; g.R.V2=function(y){return this.Jz.V2(y)}; g.R.isAtLiveHead=function(y,t){t=t===void 0?!1:t;return WQ(this.videoData)&&(this.Er||t)?this.xk.isAtLiveHead(y):!1}; g.R.ZQ=function(){var y=this.Gr(),t=this.getCurrentTime(),a;(a=!WQ(this.videoData))||(a=this.xk,a=!(a.V&&a.V.Y));return a||this.EN()||isNaN(y)||isNaN(t)?0:Math.max(0,y-t)}; g.R.yG=function(y){(this.Er=y)||this.YH.stop();if(this.videoData.V)if(y)this.videoData.V.resume();else{var t=this.videoData.V;t.L&&t.L.stop()}this.loader&&(t=this.videoData.B("html5_disable_preload_for_ssdai_with_preroll")&&this.Fo()&&this.videoData.isLivePlayback,y&&!t?this.loader.resume():Gs(this,!0));g.D(this.playerState,2)||y?g.D(this.playerState,512)&&y&&this.HO(kq(this.playerState,512)):this.HO(Xv(this.playerState,512));t=this.Jz;t.qoe&&(t=t.qoe,g.SK(t,g.eK(t.provider),"stream",[y?"A":"I"]))}; g.R.Lj=function(y){this.Jz.Aj("player.exception",al({n:y.name,m:y.message}))}; g.R.En=J1(18);g.R.iZ=J1(47);g.R.Wt=function(y){this.Jz.Wt(y)}; g.R.Ae=function(y){this.Jz.Ae(y)}; g.R.oI=function(y){this.Jz.oI(y)}; g.R.tV=J1(24);g.R.Bl=J1(30);g.R.kF=function(y){this.Jz.kF(y)}; g.R.hM=function(y,t,a,r){this.Jz.hM(y,t,a,r)}; g.R.Wn=function(){this.H4("hidden",{},!0)}; g.R.Cn=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.R.nf=function(){return this.loader?this.loader.nf():!0}; g.R.setLoop=function(y){this.loop=y;this.mediaElement&&!g.OY(this.j)&&this.mediaElement.setLoop(y)}; g.R.SP=function(){return this.mediaElement&&!g.OY(this.j)?this.mediaElement.SP():this.loop}; g.R.hx=function(y){this.H4("timestamp",{o:y.toString()});this.xk.hx(y)}; g.R.gV=function(y){this.dN.tick(y)}; g.R.Ze=function(y){return this.dN.Ze(y)}; g.R.pw=function(y){this.dN.pw(y)}; g.R.H4=function(y,t,a){this.Jz.H4(y,t,a===void 0?!1:a)}; g.R.Tu=function(y,t,a){this.Jz.H4(y,t,a===void 0?!1:a)}; g.R.Aj=function(y){this.Jz.Aj(y.errorCode,al(y.details));y=y.errorCode;if(this.videoData.isLivePlayback&&(y==="qoe.longrebuffer"||y==="qoe.slowseek")||y==="qoe.restart"){y=this.loader?Ien(this.loader.videoTrack):{};var t,a;this.H4("lasoe",Object.assign(this.loader?Ien(this.loader.audioTrack):{},(t=this.tF)==null?void 0:(a=t.V)==null?void 0:a.Xr()));var r,E;this.H4("lvsoe",Object.assign(y,(r=this.tF)==null?void 0:(E=r.K)==null?void 0:E.Xr()))}if(this.B("html5_log_centralized_player_time")){var h;this.H4("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(h=this.loader)==null?void 0:YQ(h)})}}; g.R.OX=function(y,t,a){this.Jz.OX(y,t,a)}; g.R.tR=function(y,t,a,r,E,h,F,x){var U;if((U=this.videoData.V)!=null&&U.isLive){var C=t.playerType===2?t:y,z=y.videoData.videoId,O=t.videoData.videoId;if(z&&O){U=this.Jz;if(x==null?0:x.jR){if(U.qoe){z=U.qoe;O=x.jR;z.reportStats();var M=z.provider.videoData.clientPlaybackNonce,L=z.provider.videoData.videoId||"",w,d=((w=z.Ak)==null?void 0:w.join("."))||M,k;w=((k=z.V9)==null?void 0:k.join("."))||L;Hk(z,h?4:E?2:0,O.d_.join(".")||M,O.d3.join(".")||L,r);z.reportStats();z.Ak=O.d_;z.V9=O.d3;z.sZ=O.adFormats; z.FD=O.serializedQoeContextData;Hk(z,h?5:E?3:1,d,w,a);z.reportStats()}}else if(U.qoe){k=U.qoe;w=y.cpn;M=t.cpn;L=C.videoData.Az;var e=k.provider.videoData.clientPlaybackNonce,v=k.provider.videoData.videoId;d=M!==e&&O!==v;e=w!==e&&z!==v;k.reportStats();k.adCpn&&k.adCpn!==w||(k.adCpn=e?w:"",k.Ho=e?z:"",k.adFormat=e?L:void 0,Hk(k,h?4:E?2:0,M,O,r),k.reportStats(),k.adCpn=d?M:"",k.Ho=d?O:"",k.adFormat=d?L:void 0,Hk(k,h?5:E?3:1,w,z,a),k.reportStats())}if(x==null?0:x.DX){var l=x.DX.serializedPlaybackPingContextLoggingData; if((r=U.V)!=null){C=r.V.L;var V=r.provider.j.pJ().V.o7(h7s)||4E3;C>V&&Uo(r)}var B;(B=U.V)!=null&&x9(B.V);(r=U.V)!=null&&(r.V.serializedPlaybackPingContextLoggingData=l);var b;(b=U.V)!=null&&x9(b.V);var Z;(Z=U.V)==null||Uo(Z);(U=U.V)!=null&&(U.W=0)}else b=y.cpn,U.Y.has(b)?(Z=U.Y.get(b),L1(Z,!0).send(),zs(Z),b!==U.provider.videoData.clientPlaybackNonce&&(ArN(Z),(V=U.V)==null||Uo(V),U.Y.delete(b))):(U.hV=U.provider.videoData.clientPlaybackNonce,U.hV&&U.V&&(U.Y.set(U.hV,U.V),L1(U.V).send(),zs(U.V))), b=t.cpn,Z=C.videoData,r-=this.X0(),U.Y.has(b)?(Z=U.Y.get(b),l=Z.Y&&isNaN(Z.L)?C1(Z):NaN,Z=rrF(Z,!1),isNaN(l)||(Z.W=l),Z.send()):(Z=w8V(U,U.provider,Z,r),U.Y.set(b,Z),x5x(Z,new g.CD(Xv(new g.PY,8),new g.PY)),Z.sQ(),(l=U.V)==null||zs(l)),U.hV=b;if(this.B("html5_unify_csi_server_stitched_transition_logging")){if(U=this.dN,b=y.cpn,y=t.cpn,Z=this.videoData.clientPlaybackNonce,l=t.videoData,t=(0,g.Wx)(),b=(b===Z?"video":"ad")+"_to_"+(y===Z?"video":"ad"),b!=="video_to_ad"){Z=b==="ad_to_video"?void 0:l;r= Z==null?void 0:Z.Uz;B={};if(l==null?0:l.J)B.cttAuthInfo={token:l.J,videoId:l.videoId};F&&(B.startTime=F);ly(b,B);var aV,rx,Fb;F={targetVideoId:(aV=l==null?void 0:l.videoId)!=null?aV:"empty_video",targetCpn:y,adVideoId:(rx=Z==null?void 0:Z.videoId)!=null?rx:"empty_video",adClientPlaybackNonce:(Fb=r==null?void 0:r.cpn)!=null?Fb:Z==null?void 0:Z.clientPlaybackNonce};r&&(F.adBreakType=r.adBreakType,F.adType=r.adType);g.eW(F,b);Ag(U,t,b)}}else aV=this.dN,U=this.videoData.clientPlaybackNonce,rx=(0,g.Wx)(), Fb=t.videoData,y=(y.cpn===U?"video":"ad")+"_to_"+(t.cpn===U?"video":"ad"),U={},Fb.J&&(U.cttAuthInfo={token:Fb.J,videoId:Fb.videoId}),F&&(U.startTime=F),ly(y,U),g.eW({targetVideoId:Fb.videoId,targetCpn:t.cpn,isSsdai:!0},y),F||Ag(aV,rx,y)}}else g.fw(this.logger,360717806,"SSTEvent for nonSS")}; g.R.Bc=function(){var y=this.LM,t=y.Up;y.Up=[];return t}; g.R.Vx=function(y){this.videoData.Vd=!0;this.Aj(new g.rg("sabr.fallback",y));this.UV(!0)}; g.R.HI=function(y,t){this.videoData.Sn=!0;if(t===void 0||t)this.Aj(new g.rg("qoe.restart",y)),this.UV(!0)}; g.R.Qj=function(y){this.H4("sdai",{aftimeout:y});this.Aj(new g.rg("ad.fetchtimeout",{timeout:y}))}; g.R.Uf=function(y,t){this.H4("timelineerror",y);y=new g.rg("dai.timelineerror",y);t?this.w7("dai.timelineerror",1,"RETRYABLE_ERROR",al(y.details)):this.Aj(y)}; g.R.A_=function(){return g.eK(this.Jz.provider)}; g.R.getPlayerSize=function(){return this.TA.getPlayerSize()}; g.R.Zf=function(){return this.TA.Zf()}; g.R.Fz=function(){return this.dN}; g.R.yu=function(){return this.LM.yu()}; g.R.getVolume=function(){return this.LM.getVolume()}; g.R.Sd=function(){return this.LM.Sd()}; g.R.isMuted=function(){return this.LM.isMuted()}; g.R.bL=function(){return this.LM.bL()}; g.R.Gx=function(){this.Vk=!0}; g.R.B=function(y){return this.j.B(y)}; g.R.pJ=function(){return this.j.pJ()}; g.R.qM=function(y,t,a,r,E){this.H4("xvt",{m:y,g:t?1:0,tt:a?1:0,np:r?1:0,c:E})}; g.R.JZ=function(){var y;(y=this.loader)==null||y.resume()}; g.R.Fo=function(){return g.TE(this.Kw,"ad")}; g.R.UG=function(){var y=this.getCurrentTime(),t=y-this.fJ();var a=this.mediaElement?ZG(this.mediaElement.FC()):0;a=Math.floor(Math.max(a-t,0))+100;var r;return((r=this.loader)==null?0:r.UG(t,a))?(this.H4("sdai",{skipad:1,ct:t.toFixed(3),adj:a.toFixed(3)}),V3(this.videoData)&&this.loader.seek(t+a,{seekSource:89,yD:"videoplayer_skipServerStitchedAd"}),UZV(this.xk,y),!0):!1}; g.R.Bb=function(){return this.j.Bb()}; g.R.YS=function(){if(this.B("html5_generate_content_po_token"))return this.videoData.jU||"";this.LM.yL();return this.j.GR||""}; g.R.GV=function(){if(this.videoData.videoId)return this.videoData.Iv}; g.R.gH=function(){return this.videoData.videoId}; g.R.E5=function(){return this.LM.pW}; g.R.Li=function(){return this.zg}; g.R.XA=function(){return this.LM.XA()}; g.R.mC=function(y,t,a){this.HO(Xv(this.playerState,16,a));this.xk.mC(y,t,a)}; g.R.prefetchKeyPlay=function(y,t){var a;(a=this.loader)==null||a.prefetchKeyPlay(y,t)}; g.R.Pr=function(y){return this.xk.Pr(y)}; g.R.Qd=function(){this.xk.Qd()}; g.R.jZ=function(y,t){var a=this.B("html5_generate_content_po_token")?this.videoData:void 0;this.LM.jZ(y,t,a)}; g.R.K4=function(y,t){this.Jz.K4(y,t)}; g.R.No=function(){return this.Jz.No()}; g.R.nA=function(){return this.LM.nA()}; g.R.PD=function(){return this.LM.PD(this)}; g.R.b1=function(){this.HM=!0}; g.R.dc=function(y){var t;(t=this.loader)==null||t.dc(y)}; g.R.zL=function(y){this.xk.zL(y)}; var DZV={primary:"Primary",secondary:"Secondary"};g.N(MK2,FK);g.N(yp,zq);yp.prototype.V=function(y){y&&O2(this,this.C.getLoopVideo());this.C.logVisibility(this.element,y)}; yp.prototype.logClick=function(){this.C.logClick(this.element)}; yp.prototype.onLoopChange=function(y){O2(this,y)}; yp.prototype.K=function(y){this.C.setLoopVideo(y)};g.N(wk7,FK);g.N(Rm2,FK);g.R=Rm2.prototype;g.R.seekToChapterWithAnimation=function(y){var t=this;if(g.ff(this.api)&&!(y<0)){var a=this.api.getVideoData(),r=a.IR;if(r&&y=0)return;t=~t;g.$_(this.items,t,0,y);lv(this.menuItems.element,y.element,t)}y.subscribe("size-change",this.fS,this);this.menuItems.publish("size-change")}; g.R.nZ=function(){I3x(this)||this.items[0].focus();return!0}; g.R.jl=function(){this.items[this.items.length-1].focus();return!0}; g.R.oi=function(y){y.unsubscribe("size-change",this.fS,this);this.Qv()||(g.tB(this.items,y),this.menuItems.element.removeChild(y.element),this.menuItems.publish("size-change"))}; g.R.fS=function(){this.menuItems.publish("size-change")}; g.R.focus=function(){for(var y=0,t=0;t1&&g.Ri(this)}; g.R.Ig=function(){yOF(this);this.sS&&(GK7(this),g.Or(this.element,this.size))}; g.R.C$=function(){var y=this.V.pop();ZHN(this,y,this.V[this.V.length-1],!0)}; g.R.MC=function(y){if(!y.defaultPrevented)switch(y.keyCode){case 27:this.LJ();y.preventDefault();break;case 37:this.V.length>1&&this.C$();y.preventDefault();break;case 39:y.preventDefault()}}; g.R.focus=function(){this.V.length&&this.V[this.V.length-1].focus()}; g.R.I5=function(){g.TQ.prototype.I5.call(this);this.Y&&this.Y.dispose();this.D&&this.D.dispose()};g.N(P9,g.M7);P9.prototype.open=function(y,t){this.initialize(y.items)&&this.rV(t,!!t)}; P9.prototype.initialize=function(y){g.LB(this.Wj);if(y===void 0||y.length===0)return!1;var t=y.length;y=g.p(y);for(var a=y.next();!a.done;a=y.next())this.NK(a.value,t--);return!0}; P9.prototype.NK=function(y,t){y.menuNavigationItemRenderer?rOb(this,y.menuNavigationItemRenderer,t):y.menuServiceItemRenderer&&E9N(this,y.menuServiceItemRenderer,t)};g.N(N7,CB);g.R=N7.prototype;g.R.Xs=function(y){y.target!==this.dismissButton.element&&y.target!==this.overflowButton.element&&(this.qx(),this.onClickCommand&&this.C.W4("innertubeCommand",this.onClickCommand))}; g.R.lA=function(){this.enabled=!1;this.Z.hide()}; g.R.zp=function(){return!!this.V&&this.enabled}; g.R.onVideoDataChange=function(y,t){this.Cy(t);if(this.V){this.BQ();a:if(!this.isCounterfactual){var a,r,E;this.banner.update({title:(a=this.V)==null?void 0:a.title,subtitle:(r=this.V)==null?void 0:r.subtitle,metadata:(E=this.V)==null?void 0:E.metadataText});var h;this.onClickCommand=g.P((h=this.V)==null?void 0:h.onTap,VT);var F;if(y=g.P((F=this.V)==null?void 0:F.onOverflow,VT))this.J=g.P(y,tc7);var x;if((x=this.V)==null?0:x.thumbnailImage){var U,C;F=((U=this.V)==null?void 0:(C=U.thumbnailImage)== null?void 0:C.sources)||[];if(F.length===0)break a;this.thumbnailImage.update({url:F[0].url})}else{var z;if((z=this.V)==null?0:z.thumbnailIconName){var O;this.thumbnailIcon.update({icon:(O=this.V)==null?void 0:O.thumbnailIconName})}}var M;this.shouldShowOverflowButton=!((M=this.V)==null||!M.shouldShowOverflowButton);var L;this.shouldHideDismissButton=!((L=this.V)==null||!L.shouldHideDismissButton)}var w;this.banner.element.setAttribute("aria-label",((w=this.V)==null?void 0:w.a11yLabel)||"");var d; this.r0=(d=this.V)==null?void 0:d.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;FCH(this)}}; g.R.M_m=function(){this.isVisible=!0;FCH(this)}; g.R.CJF=function(){this.isVisible=!1;FCH(this)}; g.R.Gm=function(){CB.prototype.Gm.call(this);this.Y&&this.C.logVisibility(this.banner.element,this.isVisible)}; g.R.qx=function(){CB.prototype.qx.call(this,!1);this.Y&&this.C.logClick(this.banner.element)}; g.R.h2=function(y){this.L||(this.L=new P9(this.C),g.c(this,this.L));var t,a;if((t=this.J)==null?0:(a=t.menu)==null?0:a.menuRenderer)this.L.open(this.J.menu.menuRenderer,y.target),y.preventDefault()}; g.R.Cy=function(){}; g.R.BQ=function(){}; g.R.I5=function(){this.C.g7("suggested_action_view_model");CB.prototype.I5.call(this)};g.N(dm,N7); dm.prototype.Cy=function(y){var t,a,r;this.productUpsellSuggestedActionViewModel=g.P((t=y.getWatchNextResponse())==null?void 0:(a=t.playerOverlays)==null?void 0:(r=a.playerOverlayRenderer)==null?void 0:r.suggestedActionViewModel,OIe);var E;if((E=this.productUpsellSuggestedActionViewModel)==null?0:E.content){var h;this.V=g.P((h=this.productUpsellSuggestedActionViewModel)==null?void 0:h.content,GNU)}var F,x;if(this.Y=!!((F=this.productUpsellSuggestedActionViewModel)==null?0:(x=F.loggingDirectives)==null? 0:x.trackingParams)){var U,C;this.C.setTrackingParams(this.banner.element,((U=this.productUpsellSuggestedActionViewModel)==null?void 0:(C=U.loggingDirectives)==null?void 0:C.trackingParams)||null)}var z;this.isCounterfactual=!((z=this.productUpsellSuggestedActionViewModel)==null||!z.isCounterfactualServing)}; dm.prototype.BQ=function(){var y=[],t,a=g.p(((t=this.productUpsellSuggestedActionViewModel)==null?void 0:t.ranges)||[]);for(t=a.next();!t.done;t=a.next()){var r=t.value;r&&(t=Number(r.startTimeMilliseconds),r=Number(r.endTimeMilliseconds),isNaN(t)||isNaN(r)||y.push(new g.BK(t,r,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.C.Xm(y)};g.N(AO7,FK);g.N(k5,FK);k5.prototype.onVideoDataChange=function(y,t){var a=this;if(!a9(t)&&(y==="newdata"&&$kN(this),this.V&&y==="dataloaded")){this.V=!1;var r;y6(Zm(R$(this.api.G(),(r=this.api.getVideoData())==null?void 0:g.y$(r)),function(E){MNH(a,E)}),function(){a.V=!0})}}; k5.prototype.RS=function(){var y=this;if(g.OY(this.api.G())){var t,a=g.wY(this.api.G(),(t=this.api.getVideoData())==null?void 0:g.y$(t));return Zm(Kq(a),function(r){var E=i6();Kf(E,r);return y.api.RS(E)})}return Kq(this.api.RS())};g.N(g.fB,g.aX);g.R=g.fB.prototype;g.R.open=function(){g.wm(this.OS,this.aR)}; g.R.uq=function(y){RYn(this);var t=this.options[y];t&&(t.element.setAttribute("aria-checked","true"),this.setContent(this.Ve(y)),this.XC=y)}; g.R.nL=function(y){g.LB(this.aR);for(var t={},a=!1,r=0;r=0?this.V.playbackRate:1}catch(y){return 1}}; g.R.setPlaybackRate=function(y){this.getPlaybackRate()!==y&&(this.V.playbackRate=y);return y}; g.R.SP=function(){return this.V.loop}; g.R.setLoop=function(y){this.V.loop=y}; g.R.canPlayType=function(y,t){return this.V.canPlayType(y,t)}; g.R.isPaused=function(){return this.V.paused}; g.R.isSeeking=function(){return this.V.seeking}; g.R.isEnded=function(){return this.V.ended}; g.R.GD=function(){return this.V.muted}; g.R.aX=function(y){UD();this.V.muted=y}; g.R.bU=function(){return this.V.played||iH([],[])}; g.R.FC=function(){try{var y=this.V.buffered}catch(t){}return y||iH([],[])}; g.R.pH=function(){return this.V.seekable||iH([],[])}; g.R.u9=function(){var y=this.V;return y.getStartDate?y.getStartDate():null}; g.R.getCurrentTime=function(){return this.V.currentTime}; g.R.setCurrentTime=function(y){this.V.currentTime=y}; g.R.getDuration=function(){return this.V.duration}; g.R.load=function(){var y=this.V.playbackRate;try{this.V.load()}catch(t){}this.V.playbackRate=y}; g.R.pause=function(){this.V.pause()}; g.R.play=function(){var y=this.V.play();if(!y||!y.then)return null;y.then(void 0,function(){}); return y}; g.R.xj=function(){return this.V.readyState}; g.R.Zp=function(){return this.V.networkState}; g.R.Jl=function(){return this.V.error?this.V.error.code:null}; g.R.xT=function(){return this.V.error?this.V.error.message:""}; g.R.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.V instanceof window.HTMLVideoElement&&this.V.getVideoPlaybackQuality)return this.V.getVideoPlaybackQuality();if(this.V){var y=this.V,t=y.webkitDroppedFrameCount;if(y=y.webkitDecodedFrameCount)return{droppedVideoFrames:t||0,totalVideoFrames:y}}return{}}; g.R.f_=function(){return!!this.V.webkitCurrentPlaybackTargetIsWireless}; g.R.Qn=function(){return!!this.V.webkitShowPlaybackTargetPicker()}; g.R.togglePictureInPicture=function(){var y=this.V,t=window.document;window.document.pictureInPictureEnabled?this.V!==t.pictureInPictureElement?y.requestPictureInPicture():t.exitPictureInPicture():$8()&&y.webkitSetPresentationMode(y.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.R.L2=function(){return UXF(this.V)}; g.R.getSize=function(){return g.LQ(this.V)}; g.R.setSize=function(y){g.Or(this.V,y)}; g.R.getVolume=function(){return this.V.volume}; g.R.setVolume=function(y){UD();this.V.volume=y}; g.R.So=function(y){this.K[y]||(this.V.addEventListener(y,this.listener),this.K[y]=this.listener)}; g.R.setAttribute=function(y,t){this.V.setAttribute(y,t)}; g.R.removeAttribute=function(y){this.V.removeAttribute(y)}; g.R.hasAttribute=function(y){return this.V.hasAttribute(y)}; g.R.O8=J1(53);g.R.Qy=J1(56);g.R.UP=J1(59);g.R.vA=J1(62);g.R.CN=function(){return fo(this.V)}; g.R.ov=function(y){g.Al(this.V,y)}; g.R.h5=function(y){return g.F5(this.V,y)}; g.R.S6=function(){return g.Vu(document.body,this.V)}; g.R.audioTracks=function(){var y=this.V;if("audioTracks"in y)return y.audioTracks}; g.R.I5=function(){for(var y=g.p(Object.keys(this.K)),t=y.next();!t.done;t=y.next())t=t.value,this.V.removeEventListener(t,this.K[t]);wA.prototype.I5.call(this)}; g.R.IL=function(y){this.V.disableRemotePlayback=y};g.N(mY,g.q);g.N(oi,g.q);oi.prototype.show=function(){g.q.prototype.show.call(this);this.kG()}; oi.prototype.hide=function(){g.q.prototype.hide.call(this);this.delay.stop();this.D.stop()}; oi.prototype.kG=function(){var y=(0,g.Wx)(),t=l87(this.Mr);Jn(this.V,t.bandwidth_samples);Jn(this.J,t.network_activity_samples);Jn(this.Y,t.live_latency_samples);Jn(this.K,t.buffer_health_samples);var a={};t=g.p(Object.entries(t));for(var r=t.next();!r.done;r=t.next()){var E=g.p(r.value);r=E.next().value;E=E.next().value;this.W[r]!==E&&(a[r]=" "+String(E));this.W[r]=E}this.update(a);y=(0,g.Wx)()-y>25?5E3:500;this.delay.start(y)}; oi.prototype.Z=function(){this.L?(this.position+=1,this.position>15&&(this.L=!1)):(--this.position,this.position<=0&&(this.L=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.N(n9n,FK);g.N(H9,g.H);H9.prototype.V=function(){var y=(0,g.Wx)()-this.startTime;y=ythis.D[y])&&(this.V=y,this.DM())}; g.R.onCueRangeExit=function(y){var t=KCz(this,y);t&&this.V===y&&this.api.W4("innertubeCommand",t);c9(this);this.V=void 0}; g.R.jG=function(y){this.Y=y}; g.R.Ey=function(){this.DM();this.Y=void 0}; g.R.DM=function(){if(this.V!==void 0){var y=(y=B9(this,this.V))&&y.onCueRangeEnter?m9(y.onCueRangeEnter):void 0;var t=B9(this,this.V);a:if(t&&t.additionalTrigger){var a=g.p(t.additionalTrigger);for(var r=a.next();!r.done;r=a.next())if(r=r.value,r.type){var E=void 0,h=void 0;if((E=this.DE[r.type])==null?0:E((h=r.args)!=null?h:{})){a=!0;break a}}a=!1}else a=!0;y&&a&&(this.api.W4("innertubeCommand",y),I82(this,t),this.D[this.V]!==void 0&&this.D[this.V]++,this.hF=!0)}}; g.R.I5=function(){this.timelyActions=this.Y=this.V=this.videoId=void 0;this.D={};this.RY();c9(this);FK.prototype.I5.call(this)};g.N(Z12,FK);g.N(q7,zq);q7.prototype.D=function(y){this.Y(y?2:1)}; q7.prototype.MD=function(){var y=this.C.getPresentingPlayerType();y===2||y===3?this.V&&(this.V=!1,this.OS.oi(this)):(y=this.getVoiceBoostState(),y!==1?(y===0?(O2(this,this.K()===2),this.setEnabled(!0)):(O2(this,!1),this.setEnabled(!1)),this.V||(this.OS.NK(this),this.V=!0)):this.V&&(this.OS.oi(this),this.V=!1))}; q7.prototype.I5=function(){this.OS.oi(this);zq.prototype.I5.call(this)};g.N(Y5,FK);Y5.prototype.getVoiceBoostUserPreference=function(){return this.V}; Y5.prototype.setVoiceBoostUserPreference=function(y){this.api.H4("vb_set",{pref:y});g.m7("yt-player-voice-boost",y);y!==this.V&&(this.V=y,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.Ag(),this.api.AV())}; Y5.prototype.getVoiceBoostState=function(){return this.api.Hr(1)}; Y5.prototype.updateEnvironmentData=function(){this.api.G().Iv=this.V};g.N(gm,FK);gm.prototype.I5=function(){this.Z&&(g.kz(this.Z),this.Z=void 0);FK.prototype.I5.call(this)}; gm.prototype.yL=function(){(this.K?!this.V:this.Y)&&Ii(this)}; gm.prototype.Hy=function(y,t,a){var r=this;if(ap7(y)){var E=a||"";if(this.V)t=T2(this,E),rnn(y,t);else{var h=new g.US;t.push(h.promise);this.L.promise.then(function(){var F=T2(r,E);rnn(y,F);h.resolve()})}}}; gm.prototype.My=function(y){var t=this;if(this.K||this.Y)y.jU=T2(this,y.videoId),this.V||(this.D=new M2,this.L.promise.then(function(){t.dN.Ze("pot_if");y.jU=T2(t,y.videoId)}))};g.N(G2,g.q);g.R=G2.prototype;g.R.qJ=function(){var y=this.C.getVideoData(1),t,a,r=(a=((y==null?0:(t=y.suggestions)==null?0:t.length)?y.suggestions:(y==null?0:g.Ou(y))?[g.Ou(y)]:[])[0])==null?void 0:a.Qs("mqdefault.jpg");this.K&&r&&g.ry(this.K,"background-image",r?'url("'+r+'")':"")}; g.R.onClick=function(){this.C.logClick(this.element)}; g.R.UR=function(y){this.lY([1,2].includes(y));OB7(this,y)}; g.R.lY=function(y){g.q.prototype.lY.call(this,y);this.element.setAttribute("aria-hidden",String(!y));y&&this.qJ()}; g.R.I5=function(){g.q.prototype.I5.call(this)};g.N(g.y0,g.q);g.y0.prototype.select=function(){this.api.CI(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.ME||void 0)&&this.api.logClick(this.element)}; g.y0.prototype.onClick=function(y){if(g.bc(this.api.G())&&this.api.B("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var t=this.suggestion.MU(),a={};g.b6(this.api,a);t=g.lJ(t,a);g.MU(t,this.api,y)}else g.La(y,this.api,this.K,this.suggestion.sessionData||void 0)&&this.select()}; g.y0.prototype.onKeyPress=function(y){switch(y.keyCode){case 13:case 32:y.defaultPrevented||(this.select(),y.preventDefault())}}; g.y0.prototype.onVideoDataChange=function(){var y=this.api.getVideoData(),t=this.api.G();this.K=y.Zh?!1:t.D};g.N(MQn,g.q);g.R=MQn.prototype;g.R.I5=function(){this.hide();g.V1(this.W);g.Rp(this.stills);this.stills.length=0;this.Y&&(this.Y.remove(),this.Y=void 0);this.V&&(this.V.remove(),this.V=void 0);this.K&&(this.K.remove(),this.K=void 0);g.q.prototype.I5.call(this)}; g.R.setCommentsButton=function(y){y!==this.V&&(this.V&&this.V.remove(),this.V=y)&&(g.Al(this.V,"ytp-fullscreen-grid-action-button"),this.Z.appendChild(this.V))}; g.R.setDescriptionButton=function(y){y!==this.K&&(this.K&&this.K.remove(),this.K=y)&&(g.Al(this.K,"ytp-fullscreen-grid-action-button"),lv(this.Z,this.K,0))}; g.R.kL=function(y){this.o5&&this.o5(y)}; g.R.onVideoDataChange=function(){if(!this.Vv){this.videoData=this.player.getVideoData(1);var y,t,a,r,E;var h=(((y=this.videoData)==null?0:(t=y.suggestions)==null?0:t.length)?(a=this.videoData)==null?void 0:a.suggestions:((r=this.videoData)==null?0:g.Ou(r))?[(E=this.videoData)==null?void 0:g.Ou(E)]:[]).slice(0,18);if((y=this.AF)&&this.D)if(g.pp(y),h.length)for(this.stills.length>h.length&&g.Rp(this.stills.splice(h.length)),this.stills.length=h.length,t=0;t=0;y--)this.features[y].dispose();this.features.length=0;g.H.prototype.I5.call(this)};WYb.prototype.reset=function(){this.V=this.K=NaN};g.R=jiy.prototype;g.R.reset=function(){SW(this.timerName)}; g.R.tick=function(y,t){pM(y,t,this.timerName)}; g.R.Ze=function(y){return V_(y,void 0,this.timerName)}; g.R.pw=function(y){g.lT(y,void 0,this.timerName)}; g.R.infoGel=function(y){g.eW(y,this.timerName)};g.N(v5H,g.FM);g.R=v5H.prototype;g.R.hasNext=function(y){return this.loop||!!y||this.index+1=0}; g.R.setShuffle=function(y){this.shuffle=y;y=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var t=0;t=t.top&&y.right<=t.right&&y.bottom<=t.bottom&&y.left>=t.left))return}Q0(this,2,!1)}; g.R.FV=function(y){var t=new g.Em(y.pageX,y.pageY);hE(t,this.D)||(this.D=t,(y=y.target)&&this.L5(y)&&(Q0(this,4,!0),this.V.Dh(this.Y),this.Y=this.V.N(this.target,"mouseover",this.G3),this.W=this.V.N(this.target,"mouseout",this.G3)))}; g.R.G3=function(y){y=y.relatedTarget;y&&this.L5(y)||(this.D=new g.Em(NaN,NaN),OcN(this))}; g.R.Z1v=function(){Q0(this,1,!0)}; g.R.ey=function(y){y=y.target;y instanceof Element&&!(y.tabIndex>0)||Q0(this,1,!0)}; g.R.Hu=function(){this.J=!0;this.V.Dh(this.L);this.L=this.V.N(document,"mouseup",this.eB)}; g.R.eB=function(){this.J=!1;Q0(this,8,!1);this.V.Dh(this.L);this.L=this.V.N(this.target,"mousedown",this.Hu)}; g.R.VI=function(y){if(y=(y=y.changedTouches)&&y[0])this.DE=y.identifier,this.V.Dh(this.Z),this.Z=this.V.N(this.target,"touchend",this.Ib,void 0,!0),Q0(this,1024,!0)}; g.R.Ib=function(y){if(y=y.changedTouches)for(var t=0;t1280||E>720)if(t=r.Qs("maxresdefault.jpg"))break;if(h>640||E>480)if(t=r.Qs("maxresdefault.jpg"))break;if(h>320||E>180)if(t=r.Qs("sddefault.jpg")||r.Qs("hqdefault.jpg")||r.Qs("mqdefault.jpg"))break;if(t=r.Qs("default.jpg"))break}g.UJ(y)&&(y=new Image,y.addEventListener("load", function(){bxd()}),y.src=t?t:"",this.api.Fz().tick("ftr")); this.D.style.backgroundImage=t?"url("+t+")":""};g.N(g.uC,g.q);g.uC.prototype.resize=function(){}; g.uC.prototype.K=function(y){var t=this;this.Y=!1;wX7(this);var a=y.zz,r=this.api.G();a!=="GENERIC_WITHOUT_LINK"||r.J?a==="TOO_MANY_REQUESTS"?(r=this.api.getVideoData(),this.setContent(mP(this,"TOO_MANY_REQUESTS_WITH_LINK",r.MU(),void 0,void 0,void 0,!1))):a!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||r.J?this.api.G().B("html5_enable_bandaid_error_screen")&&a==="HTML5_SPS_UMP_STATUS_REJECTED"&&!r.J?(r=r.hostLanguage,y="//support.google.com/youtube?p=videoError",r&&(y=g.lJ(y,{hl:r})),this.setContent(mP(this, "HTML5_SPS_UMP_STATUS_REJECTED",y))):this.api.G().B("enable_adb_handling_in_sabr")&&a==="BROWSER_OR_EXTENSION_ERROR"&&!r.J?(r=r.hostLanguage,y="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",r&&(y=g.lJ(y,{hl:r})),this.setContent(mP(this,"BROWSER_OR_EXTENSION_ERROR",y))):this.setContent(g.V0(y.errorMessage)):this.setContent(mP(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(y=r.hostLanguage,a= "//support.google.com/youtube/?p=player_error1",y&&(a=g.lJ(a,{hl:y})),this.setContent(mP(this,"GENERIC_WITH_LINK_AND_CPN",a,!0)),r.MK&&!r.D&&Mnb(this,function(h){if(g.La(h,t.api,!hh(t.api.G()))){h={as3:!1,html5:!0,player:!0,cpn:t.api.getVideoData().clientPlaybackNonce};var F=t.api;F.hj("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:h});F.isFullscreen()&&F.toggleFullscreen()}})); if(this.Y){var E=this.K1("ytp-error-link");E&&(this.api.createClientVe(E,this,216104),this.api.logVisibility(E,!0),Mnb(this,function(){t.api.logClick(E)}))}}; var LPF=/([^<>]+)<\/a>/;g.N(RQy,g.q);RQy.prototype.gm=function(y,t,a){a=a===void 0?!1:a;switch(t){case 1:Jg(this,y,this.Y,a);break;case 2:Jg(this,y,this.D,a);break;case 3:Jg(this,y,this.V,a);break;case 4:Jg(this,y,this.K,a)}};g.N(PCu,g.q);g.R=PCu.prototype;g.R.onClick=function(y){this.innertubeCommand?(this.C.W4("innertubeCommand",this.innertubeCommand),y.preventDefault()):g.La(y,this.C,!0);this.C.logClick(this.element)}; g.R.onVideoDataChange=function(y,t){XXb(this,t);this.kJ&&k6n(this,this.kJ)}; g.R.c8=function(y){var t=this.C.getVideoData();this.videoId!==t.videoId&&XXb(this,t);this.V&&k6n(this,y.state);this.kJ=y.state}; g.R.rV=function(){this.fade.show();this.C.publish("paidcontentoverlayvisibilitychange",!0);this.C.logVisibility(this.element,!0)}; g.R.LJ=function(){this.fade.hide();this.C.publish("paidcontentoverlayvisibilitychange",!1);this.C.logVisibility(this.element,!1)};g.N(o4,g.q);o4.prototype.hide=function(){this.V.stop();this.message.style.display="none";g.q.prototype.hide.call(this)}; o4.prototype.onStateChange=function(y){this.UR(y.state)}; o4.prototype.UR=function(y){if(g.D(y,128)||this.api.Li())var t=!1;else{var a;t=this.api.B("web_watch_enable_multiview_manager")&&((a=this.api.getVideoData())==null?0:a9(a))?!1:g.D(y,16)||g.D(y,1)?!0:!1}t?this.V.start():this.hide()}; o4.prototype.K=function(){this.message.style.display="block"};g.N(HX,g.TQ);HX.prototype.onMutedAutoplayChange=function(y){this.K&&(y?(fOu(this),this.rV()):(this.V&&this.logClick(),this.LJ()))}; HX.prototype.jQ=function(y){this.api.isMutedByMutedAutoplay()&&g.Og(y,2)&&this.LJ()}; HX.prototype.onClick=function(){this.api.unMute();this.logClick()}; HX.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.N(g.bC,g.Ci);g.R=g.bC.prototype;g.R.init=function(){var y=this.api,t=y.getPlayerStateObject();this.gi=y.getPlayerSize();this.HO(t);this.XW();this.Gl();this.api.publish("basechromeinitialized",this);this.YL()&&this.api.publish("standardControlsInitialized")}; g.R.onVideoDataChange=function(y,t){var a=this.on!==t.videoId;if(a||y==="newdata")y=this.api,y.isFullscreen()||(this.gi=y.getPlayerSize());a&&(this.on=t.videoId,a=this.kT,a.d0=3E3,Q0(a,512,!0),this.XW());this.api.B("web_render_jump_buttons")&&t.showSeekingControls&&(this.T2=572)}; g.R.so7=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.R.W9=function(){var y=this.api.He()&&this.api.mK(),t=this.api.q3();return this.pV||y||this.N8||t}; g.R.qY=function(){var y=!this.W9();g.Uz(this.api.getRootNode(),"ytp-menu-shown",!y)}; g.R.L5=function(y){try{if(!g.Vu(this.api.getRootNode(),y))return!1}catch(t){return!1}for(;y&&!m6(y);)y=y===this.api.getRootNode()?null:y.parentElement||null;return!!y}; g.R.Od=function(y){var t=this.api.getRootNode();g.Uz(t,"ytp-autohide",y);g.Uz(t,"ytp-autohide-active",!0);this.Cm.start(y?250:100);y&&(this.gR=!1,g.sz(t,"ytp-touch-mode"));this.XS=!y;this.api.Tx(!y);this.api.B("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",y)}; g.R.sy=function(){var y=this.api.getRootNode();g.Uz(y,"ytp-autohide-active",!1)}; g.R.dD7=function(){this.xQ=!0}; g.R.xD4=function(y){if(this.api.G().B("player_doubletap_to_seek")||this.api.G().W)this.xQ=!1,this.d6&&this.Dh(this.d6),this.bQ===0&&BX(this,y)?(this.TK(),this.Vt.start(),this.d6=this.N(this.api.ZE(),"touchmove",this.dD7,void 0,!0)):this.Vt.stop();Q4x(this)&&BX(this,y)&&!this.api.G().W&&j4F(this);var t=this.FR.Dn();if(!g.bc(this.api.G())&&mB&&vdN(this,y))t&&y.preventDefault();else if(this.gR=!0,g.Al(this.api.getRootNode(),"ytp-touch-mode"),this.kT.w1(),this.api.G().B("player_doubletap_to_seek")||this.api.G().W)if(t= this.api.getPlayerStateObject(),!(!this.api.u2()||g.D(t,2)&&g.mc(this.api)||g.D(t,64))){t=Date.now()-this.bP;this.bQ+=1;if(t<=350){this.bB=!0;t=this.api.getPlayerSize().width/3;var a=this.api.getRootNode().getBoundingClientRect(),r=y.targetTouches[0].clientX-a.left;a=y.targetTouches[0].clientY-a.top;var E=(this.bQ-1)*10;r>0&&rt*2&&r=650,r=y.width<528;this.kT.resize();if(this.api.B("web_player_use_screen_width_for_big_mode")){var E,h=y.width>=((E=g.Gw(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?E:2E3);g.Uz(t,"ytp-big-mode",h)}g.Uz(t,"ytp-fullscreen",this.api.isFullscreen());g.Uz(t,"ytp-large-width-mode",a);this.api.B("delhi_modern_web_player")?g.Uz(t,"ytp-xsmall-width-mode",r):g.Uz(t,"ytp-small-mode",this.b2()); g.Uz(t,"ytp-tiny-mode",this.M3());g.Uz(t,"ytp-big-mode",this.KA());this.mM&&this.mM.resize(y)}; g.R.jQ=function(y){this.HO(y.state);this.XW()}; g.R.w4=J1(5);g.R.SV=function(){var y=!!this.on&&!this.api.Al()&&!this.c$,t=this.api.getPresentingPlayerType()===2,a=this.api.G();if(t)return a=kd(this.api.gN()),y&&(a&&a.player?y=(y=a.player.getVideoData(2))?y.isListed&&!g.CF(a.player.G()):!1:(Ug("showInfoBarDuringAd: this is null"),y=!1)),y;t=a.B("web_player_imax_theater_mode")&&this.api.qC()&&!this.api.isInline();return y&&(a.jF||t||this.api.isFullscreen()||a.Aw)}; g.R.XW=function(){var y=this.SV();this.mP!==y&&(this.mP=y,g.Uz(this.api.getRootNode(),"ytp-hide-info-bar",!y))}; g.R.HO=function(y){var t=y.isCued()||this.api.IN()&&this.api.getPresentingPlayerType()!==3;t!==this.isCued&&(this.isCued=t,this.g6&&this.Dh(this.g6),this.g6=this.N(this.api.ZE(),"touchstart",this.xD4,void 0,t));var a=this.kT,r=y.isPlaying()&&!g.D(y,32)||this.api.Og();Q0(a,128,!r);a=this.kT;r=this.api.getPresentingPlayerType()===3;Q0(a,256,r);a=this.api.getRootNode();g.D(y,2)?r=[qd.ENDED]:(r=[],g.D(y,8)?r.push(qd.PLAYING):g.D(y,4)&&r.push(qd.PAUSED),g.D(y,1)&&!g.D(y,32)&&r.push(qd.BUFFERING),g.D(y, 32)&&r.push(qd.SEEKING),g.D(y,64)&&r.push(qd.UNSTARTED));g.LJ(this.Wh,r)||(g.$M(a,this.Wh),this.Wh=r,g.xM(a,r));r=this.api.G();var E=g.D(y,2);a:{var h=this.api.G();var F=h.controlsType;switch(F){case "2":case "0":h=!1;break a}h=F==="3"&&!g.D(y,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:han(kd(this.api.gN())))||this.api.q3()||g.bc(h)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Uz(a,"ytp-hide-controls",!h);g.Uz(a,"ytp-native-controls",r.controlsType==="3"&&!t&&!E&&!this.N8);g.D(y, 128)&&!g.bc(r)?(this.mM||(this.mM=new g.uC(this.api),g.c(this,this.mM),g.q$(this.api,this.mM.element,4)),this.mM.K(y.mS),this.mM.show()):this.mM&&(this.mM.dispose(),this.mM=null)}; g.R.Dr=function(){return this.api.He()&&this.api.mK()?(this.api.r4(!1,!1),!0):this.api.Al()?(g.JP(this.api,!0),!0):!1}; g.R.onMutedAutoplayChange=function(y){this.N8=y;this.qY()}; g.R.KA=function(){return!1}; g.R.b2=function(){return!this.KA()&&(this.api.getPlayerSize().width=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null;t=this.size;y=y.clone();t=t.clone();r&&(F=t,E=5,(E&65)==65&&(y.x=r.right)&&(E&=-2),(E&132)==132&&(y.y=r.bottom)&&(E&=-5),y.xr.right&&(F.width=Math.min(r.right-y.x,h+F.width-r.left),F.width=Math.max(F.width,0))),y.x+F.width>r.right&&E&1&&(y.x=Math.max(r.right-F.width,r.left)),y.yr.bottom&&(F.height=Math.min(r.bottom-y.y,h+F.height-r.top),F.height=Math.max(F.height,0))),y.y+F.height>r.bottom&&E&4&&(y.y=Math.max(r.bottom-F.height,r.top)));r=new g.yj(0,0,0,0);r.left=y.x;r.top=y.y;r.width= t.width;r.height=t.height;g.$I(this.element,new g.Em(r.left,r.top));g.V1(this.K);this.K.N(GQ(this),"contextmenu",this.UP4);this.K.N(this.C,"fullscreentoggled",this.onFullscreenToggled);this.K.N(this.C,"pageTransition",this.x0)}; g.R.UP4=function(y){if(!y.defaultPrevented){var t=po(y);g.Vu(this.element,t)||this.LJ();this.C.G().disableNativeContextMenu&&y.preventDefault()}}; g.R.onFullscreenToggled=function(){this.LJ();a0n(this)}; g.R.x0=function(){this.LJ()};g.N(G6,g.q);G6.prototype.onClick=function(){var y=this,t,a,r,E;return g.m(function(h){if(h.V==1)return t=y.api.G(),a=y.api.getVideoData(),r=y.api.getPlaylistId(),E=t.getVideoUrl(a.videoId,r,void 0,!0),g.u(h,hgd(y,E),2);h.K&&ES2(y);y.api.logClick(y.element);g.FU(h)})}; G6.prototype.kG=function(){this.updateValue("icon",{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{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= rcu(this);g.Uz(this.element,"ytp-copylink-button-visible",this.visible);this.lY(this.visible);this.tooltip.jJ();this.api.logVisibility(this.element,this.visible&&this.hF)}; G6.prototype.Au=function(y){g.q.prototype.Au.call(this,y);this.api.logVisibility(this.element,this.visible&&y)}; G6.prototype.I5=function(){g.q.prototype.I5.call(this);g.sz(this.element,"ytp-copylink-button-visible")};g.N(FN7,g.q);g.R=FN7.prototype;g.R.show=function(){g.q.prototype.show.call(this);g.Ge(this.K)}; g.R.hide=function(){this.D.stop();this.Y=0;this.K1("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.sz(this.element,"ytp-chapter-seek");g.sz(this.element,"ytp-time-seeking");g.q.prototype.hide.call(this)}; g.R.Ud=function(y,t,a,r){this.Y=y===this.J?this.Y+r:r;this.J=y;var E=y===-1?this.Z:this.W;E&&this.C.logClick(E);this.L?this.K.stop():g.yf(this.K);this.D.start();this.element.setAttribute("data-side",y===-1?"back":"forward");var h=3*this.C.ZE().getPlayerSize().height;E=this.C.ZE().getPlayerSize();E=E.width/3-3*E.height;this.V.style.width=h+"px";this.V.style.height=h+"px";y===1?(this.V.style.left="",this.V.style.right=E+"px"):y===-1&&(this.V.style.right="",this.V.style.left=E+"px");var F=h*2.5;h=F/ 2;var x=this.K1("ytp-doubletap-ripple");x.style.width=F+"px";x.style.height=F+"px";y===1?(y=this.C.ZE().getPlayerSize().width-t+Math.abs(E),x.style.left="",x.style.right=y-h+"px"):y===-1&&(y=Math.abs(E)+t,x.style.right="",x.style.left=y-h+"px");x.style.top="calc((33% + "+Math.round(a)+"px) - "+h+"px)";if(a=this.K1("ytp-doubletap-ripple"))a.classList.remove("ytp-doubletap-ripple"),a.classList.add("ytp-doubletap-ripple");AcF(this,this.L?this.Y:r)}; g.R.g1=function(y,t,a){if(a=a===void 0?null:a){var r=y===-1?this.Z.visualElement:this.W.visualElement;a={seekData:a};var E=g.XE();E&&rf(E,r,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",a)}this.Y=y===this.J?this.Y+t:t;this.J=y;r=this.C.ZE().getPlayerSize();this.L?this.K.stop():g.yf(this.K);this.D.start();this.element.setAttribute("data-side",y===-1?"back":"forward");g.Al(this.element,"ytp-time-seeking");this.V.style.width="110px";this.V.style.height="110px";a=r.width*.1-15;y===1?this.AF?(this.V.style.right= a+"px",this.V.style.left=""):(this.V.style.right="",this.V.style.left=r.width*.8-30+"px"):y===-1&&(this.AF?(this.V.style.right="",this.V.style.left=a+"px"):(this.V.style.right="",this.V.style.left=r.width*.1-15+"px"));this.V.style.top=r.height*.5+15+"px";AcF(this,this.L?this.Y:t)}; g.R.uM=function(y,t,a){a=a===void 0?null:a;g.yf(this.K);this.D.start();switch(y){case -1:y="back";break;case 1:y="forward";break;default:y=""}this.element.setAttribute("data-side",y);this.V.style.width="0";this.V.style.height="0";g.Al(this.element,"ytp-chapter-seek");this.updateValue("seekText",t);this.updateValue("seekTime","");t=this.K1("ytp-seek-icon");if(a){a:if(a){switch(a){case "PREMIUM_STANDALONE":a=F7H();break a;case "PREMIUM_STANDALONE_CAIRO":a=AUu();break a}a=void 0}else a=null;this.updateValue("seekIcon", a);t.style.display="inline-block"}else t.style.display="none"};g.N(sJb,CB);g.R=sJb.prototype;g.R.dI=function(y){this.Ff||(this.Ff=new P9(this.C),g.c(this,this.Ff));var t,a;if((t=this.zl)==null?0:(a=t.menu)==null?0:a.menuRenderer)this.Ff.open(this.zl.menu.menuRenderer,y.target),y.preventDefault()}; g.R.zp=function(){return!!this.V}; g.R.HX=function(){return!!this.V}; g.R.Xs=function(y){y.target===this.overflowButton.element?y.preventDefault():(this.nJ&&this.C.W4("innertubeCommand",this.nJ),this.qx(!1))}; g.R.lA=function(){this.qx(!0);var y,t;if((y=this.V)==null?0:(t=y.bannerData)==null?0:t.dismissedStatusKey){if(this.R5.includes(this.V.bannerData.dismissedStatusKey))return;this.R5.push(this.V.bannerData.dismissedStatusKey)}this.JR();this.C.B("web_enable_shopping_timely_shelf_client")&&(y={},g.J4(y,IzE,{overlayId:"player_overlay_timely_shelf"}),this.C.W4("innertubeCommand",y))}; g.R.je=function(){this.JR();tc(this)}; g.R.gXr=function(y){var t=this,a;if(y.id!==((a=this.V)==null?void 0:a.identifier)){this.JR();a=g.p(this.DE);for(var r=a.next();!r.done;r=a.next()){var E=r.value,h=void 0,F=void 0;if((r=(h=E)==null?void 0:(F=h.bannerData)==null?void 0:F.itemData)&&E.identifier===y.id){F=h=void 0;var x=((h=E)==null?void 0:(F=h.bannerData)==null?void 0:F.dismissedStatusKey)||"";if(this.R5.includes(x))return;this.V=E;this.banner.element.setAttribute("aria-label",r.accessibilityLabel||"");r.trackingParams&&(this.K=!0, this.C.setTrackingParams(this.badge.element,r.trackingParams));this.show();this.Z.show();Uk(this);this.d0.lY(!r.stayInApp);dP7(this);UPF(this);yO(this);this.nJ=g.P(r.onTapCommand,VT);if(E=g.P(r.menuOnTap,VT))this.zl=g.P(E,tc7);E=void 0;this.banner.update({thumbnail:(E=(r.thumbnailSources||[])[0])==null?void 0:E.url,title:r.productTitle,price:r.priceReplacementText?r.priceReplacementText:r.price,salesOriginalPrice:Ogu(this),priceDropReferencePrice:LNV(this),promotionText:zgu(this),priceA11yText:MA7(this), affiliateDisclaimer:r.affiliateDisclaimer,vendor:wJ7(this)});x=F=h=E=void 0;((E=r)==null?0:(h=E.hiddenProductOptions)==null?0:h.showDropCountdown)&&((F=r)==null?0:(x=F.hiddenProductOptions)==null?0:x.dropTimestampMs)&&(this.MK=new g.Te(function(){Nw2(t)},1E3),this.d0.hide(),this.countdownTimer.show(),Nw2(this)); this.C.B("web_player_enable_featured_product_banner_exclusives_on_desktop")&&$Px(this)&&(this.sR=new g.Te(function(){Ck7(t)},1E3),Ck7(this))}}this.C.getRootNode()&&g.Al(this.C.getRootNode(),"ytp-featured-product-shown")}}; g.R.JR=function(){this.V&&(this.V=void 0,this.nx(),this.C.getRootNode()&&g.sz(this.C.getRootNode(),"ytp-featured-product-shown"))}; g.R.onVideoDataChange=function(y,t){var a=this;xPu(this,t);y==="dataloaded"&&tc(this);var r,E,h;y=g.P((r=t.getWatchNextResponse())==null?void 0:(E=r.playerOverlays)==null?void 0:(h=E.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer,Z7c);this.overflowButton.show();this.dismissButton.hide();var F=y==null?void 0:y.featuredProductsEntityKey;this.trendingOfferEntityKey=y==null?void 0:y.trendingOfferEntityKey;this.DE.length||(PkV(this,F),yO(this));var x;(x=this.IR)==null||x.call(this); this.IR=g.MD.subscribe(function(){PkV(a,F);yO(a)})}; g.R.I5=function(){tc(this);dP7(this);UPF(this);CB.prototype.I5.call(this)};g.N(QJn,g.q);QJn.prototype.onClick=function(){this.C.logClick(this.element,this.Y);if(this.C.B("embeds_enable_info_panel_dismissal")&&this.V&&this.feedbackToken){var y=this.C.RS();if(y==null?0:hKx(this.V,y.iN))Ja(y,this.V,{feedbackTokens:[this.feedbackToken]}),this.C.publish("infopaneldetaildismissed")}};g.N(vS7,g.TQ);g.R=vS7.prototype;g.R.show=function(){g.TQ.prototype.show.call(this);this.C.publish("infopaneldetailvisibilitychange",!0);this.C.logVisibility(this.element,!0);pJN(this,!0)}; g.R.hide=function(){g.TQ.prototype.hide.call(this);this.C.publish("infopaneldetailvisibilitychange",!1);this.C.logVisibility(this.element,!1);pJN(this,!1)}; g.R.getId=function(){return this.Y}; g.R.G$=function(){return this.itemData.length}; g.R.onVideoDataChange=function(y,t){if(t){var a,r,E,h;this.update({title:((a=t.ND)==null?void 0:(r=a.title)==null?void 0:r.content)||"",body:((E=t.ND)==null?void 0:(h=E.bodyText)==null?void 0:h.content)||""});var F;y=((F=t.ND)==null?void 0:F.trackingParams)||null;this.C.setTrackingParams(this.element,y);F=g.p(this.itemData);for(y=F.next();!y.done;y=F.next())y.value.dispose();this.itemData=[];var x;if((x=t.ND)==null?0:x.ctaButtons)for(t=g.p(t.ND.ctaButtons),x=t.next();!x.done;x=t.next())if(x=g.P(x.value, DHI))x=new QJn(this.C,x,this.V),x.Fm&&(this.itemData.push(x),x.g0(this.items))}}; g.R.I5=function(){this.hide();g.TQ.prototype.I5.call(this)};g.N(udF,g.q);g.R=udF.prototype;g.R.onVideoDataChange=function(y,t){l0b(this,t);this.kJ&&nSx(this,this.kJ)}; g.R.v8=function(y){var t=this.C.getVideoData();this.videoId!==t.videoId&&l0b(this,t);nSx(this,y.state);this.kJ=y.state}; g.R.Tw=function(y){(this.Y=y)?this.hide():this.V&&!this.isDismissed&&this.show()}; g.R.Di=function(){this.K||this.rV();this.showControls=!0}; g.R.gI=function(){this.K||this.LJ();this.showControls=!1}; g.R.rV=function(){if(!this.isDismissed){var y,t=(y=this.C)==null?void 0:y.getPlayerSize();y=t.width<380;var a;t=t.height<(((a=this.C)==null?0:a.isEmbedsShortsMode())?400:280);var r,E;(((r=this.C)==null?0:r.getPlayerStateObject().isCued())||((E=this.C)==null?0:g.D(E.getPlayerStateObject(),1024)))&&y&&t||!this.V||this.Y||(this.fade.show(),this.C.publish("infopanelpreviewvisibilitychange",!0),this.C.logVisibility(this.element,!0))}}; g.R.LJ=function(){this.V&&!this.Y&&(this.fade.hide(),this.C.publish("infopanelpreviewvisibilitychange",!1),this.C.logVisibility(this.element,!1))}; g.R.UZ5=function(){this.K=!1;this.showControls||this.LJ()};var GJ9={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(GJ9).reduce(function(y,t){y[GJ9[t]]=t;return y},{}); var ZJ9={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ZJ9).reduce(function(y,t){y[ZJ9[t]]=t;return y},{}); var yy3={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(yy3).reduce(function(y,t){y[yy3[t]]=t;return y},{});var tE3,aVF;tE3=[{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"}];aVF=[{option:0,text:aJ(0)},{option:.25,text:aJ(.25)},{option:.5,text:aJ(.5)},{option:.75,text:aJ(.75)},{option:1,text:aJ(1)}]; g.Fd=[{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:tE3},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:aJ(.5)},{option:-1,text:aJ(.75)},{option:0,text:aJ(1)},{option:1, text:aJ(1.5)},{option:2,text:aJ(2)},{option:3,text:aJ(3)},{option:4,text:aJ(4)}]},{option:"background",text:"Color de fondo",options:tE3},{option:"backgroundOpacity",text:"Opacidad de fondo",options:aVF},{option:"windowColor",text:"Color de la ventana",options:tE3},{option:"windowOpacity",text:"Opacidad de la ventana",options:aVF},{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:aJ(.25)},{option:.5,text:aJ(.5)},{option:.75,text:aJ(.75)},{option:1,text:aJ(1)}]}];var ryq=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.N(BwV,g.Ci);g.R=BwV.prototype; g.R.RO=function(y){y.repeat||(this.Y.X_=!1);var t=!1,a=y.keyCode,r=po(y),E=!y.altKey&&!y.ctrlKey&&!y.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||ryq.includes(a)),h=!1,F=!1,x=this.api.G();y.defaultPrevented?(E=!1,F=!0):x.oo&&!this.api.isMutedByEmbedsMutedAutoplay()&&(E=!1);if(a===9)t=!0;else{if(r)switch(a){case 32:case 13:if(r.tagName==="BUTTON"||r.tagName==="A"||r.tagName==="INPUT")t=!0,E=!1;else if(E){var U=r.getAttribute("role");!U||U!=="option"&&U!=="button"&&U.indexOf("menuitem")!==0|| (t=!0,r.click(),h=!0)}break;case 37:case 39:case 36:case 35:t=r.getAttribute("role")==="slider";break;case 38:case 40:U=r.getAttribute("role"),r=a===38?r.previousSibling:r.nextSibling,U==="slider"?t=!0:E&&(U==="option"?(r&&r.getAttribute("role")==="option"&&r.focus(),h=t=!0):U&&U.indexOf("menuitem")===0&&(r&&r.hasAttribute("role")&&r.getAttribute("role").indexOf("menuitem")===0&&r.focus(),h=t=!0))}if(E&&!h)switch(a){case 38:h=Math.min(this.api.getVolume()+5,100);Yd(this.vj,h,!1);this.api.setVolume(h); F=h=!0;break;case 40:h=Math.max(this.api.getVolume()-5,0);Yd(this.vj,h,!0);this.api.setVolume(h);F=h=!0;break;case 36:this.api.u2()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),F=h=!0);break;case 35:this.api.u2()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),F=h=!0)}}t&&EV(this,!0);(t||F)&&this.kT.w1();(h||E&&this.handleGlobalKeyDown(a,y.shiftKey,y.ctrlKey,y.altKey,y.metaKey,y.key,y.code,y.repeat))&&y.preventDefault();x.Z&&(y={keyCode:y.keyCode, altKey:y.altKey,ctrlKey:y.ctrlKey,metaKey:y.metaKey,shiftKey:y.shiftKey,handled:y.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.v1("onKeyPress",y))}; g.R.GS=function(y){var t=y.keyCode;!this.Y.U7&&this.handleGlobalKeyUp(t,y.shiftKey,y.ctrlKey,y.altKey,y.metaKey,y.key,y.code)&&y.preventDefault()}; g.R.handleGlobalKeyUp=function(y,t,a,r,E,h,F){this.api.publish("keyboardserviceglobalkeyup",{keyCode:y,shiftKey:t,ctrlKey:a,altKey:r,metaKey:E,key:h,code:F});t=!1;if(this.Y.X_)return t;(h=g.Bq(this.api.gN()))&&(h=h.tT)&&h.sS&&(h.WS(y),t=!0);switch(y){case 9:EV(this,!0);t=!0;break;case 32:if(this.api.B("web_speedmaster_spacebar_control")&&!this.api.G().oo){var x,U;y=(x=this.progressBar)==null?void 0:(U=x.K)==null?void 0:U.isEnabled;t=this.NT(y)}break;case 39:(this.api.B("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(E||a&&r))&&(kF?r:a)&&this.api.u2()&&this.api.B("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),x=(x=this.api.getVideoData())?x.IR:[],U=JcN(x,this.api.getCurrentTime()*1E3),U!==-1&&this.V!=null&&(this.V.uM(1,x[U].title),this.api.seekTo(x[U].startTime/1E3,void 0,void 0,void 0,52),t=!0))}return t}; g.R.handleGlobalKeyDown=function(y,t,a,r,E,h,F,x){x||(this.Y.X_=!1);var U=!1,C=this.api.G();if(C.oo&&!this.api.isMutedByEmbedsMutedAutoplay())return U;var z=g.Bq(this.api.gN());if(z&&(z=z.tT)&&z.sS)switch(y){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:U=z.X2(y)}C.J||U||(U=h||String.fromCharCode(y).toLowerCase(),this.K+=U,"awesome".indexOf(this.K)===0||this.api.B("web_player_rtr_ctrls")&&"bday".indexOf(this.K)===0?(U=!0,4===this.K.length&&this.K==="bday"&&this.api.B("web_player_rtr_ctrls")&& (vx7(this.L),this.kT.w1()),7===this.K.length&&this.K==="awesome"&&FKV(this.api.getRootNode(),"ytp-color-party")):(this.K=U,U="awesome".indexOf(this.K)===0||"bday".indexOf(this.K)===0));if(!U&&(!this.api.isMutedByEmbedsMutedAutoplay()||ryq.includes(y))){var O=this.api.getVideoData(),M,L;z=(M=this.progressBar)==null?void 0:(L=M.K)==null?void 0:L.isEnabled;M=O?O.IR:[];L=kF?r:a;switch(y){case 80:t&&!C.yv&&(qg(this.vj,xex(),"Anterior"),this.api.previousVideo(),U=!0);break;case 78:t&&!C.yv&&(qg(this.vj, kr(),"Siguiente"),this.api.nextVideo(),U=!0);break;case 74:this.api.u2()&&(this.api.startSeekCsiAction(),this.V?this.api.B("enable_key_press_seek_logging")?(U=hc(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.V.g1(-1,10,U)):this.V.g1(-1,10):qg(this.vj,{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{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),U=!0);break;case 76:this.api.u2()&&(this.api.startSeekCsiAction(),this.V?this.api.B("enable_key_press_seek_logging")?(U=hc(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.V.g1(1,10,U)):this.V.g1(1,10):qg(this.vj,{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{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),U=!0);break;case 37:if(this.api.u2())if(this.api.startSeekCsiAction(),L){if(this.api.B("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(E||a&&r))L=oSb(M,this.api.getCurrentTime()*1E3),L!==-1&&this.V!=null&&(this.V.uM(-1,M[L].title),this.api.seekTo(M[L].startTime/1E3,void 0,void 0,void 0,53),U=!0)}else this.V?this.api.B("enable_key_press_seek_logging")?(U=hc(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.V.g1(-1,5,U)):this.V.g1(-1,5):qg(this.vj,{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{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),U=!0;break;case 39:this.api.u2()&&(this.api.startSeekCsiAction(),L?this.api.B("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.B("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(E||a&&r)||(L=JcN(M,this.api.getCurrentTime()*1E3),L!==-1&&this.V!=null&&(this.V.uM(1,M[L].title),this.api.seekTo(M[L].startTime/1E3,void 0,void 0,void 0,52),U=!0)):(this.V!=null?this.api.B("enable_key_press_seek_logging")?(U=hc(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.V.g1(1,5,U)):this.V.g1(1,5):qg(this.vj,{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{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),U=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Yd(this.vj,this.api.getVolume(),!1)):(this.api.mute(),Yd(this.vj,0,!0));U=!0;break;case 32:U=this.api.B("web_speedmaster_spacebar_control")?!this.api.G().yv:this.NT(z);break;case 75:U=this.NT(z);break;case 190:t?C.enableSpeedOptions&&qVF(this)&&(U=this.api.getPlaybackRate(),this.api.setPlaybackRate(U+.25,!0),eQ2(this.vj,!1),U=!0):this.api.u2()&&(this.step(1),U=!0);break;case 188:t? C.enableSpeedOptions&&qVF(this)&&(U=this.api.getPlaybackRate(),this.api.setPlaybackRate(U-.25,!0),eQ2(this.vj,!0),U=!0):this.api.u2()&&(this.step(-1),U=!0);break;case 70:NPu(this.api)&&(this.api.toggleFullscreen().catch(function(){}),U=!0); break;case 27:z?(this.progressBar.Cf(),U=!0):this.W()&&(U=!0)}if(C.controlsType!=="3")switch(y){case 67:g.R4(this.api.gN())&&(C=this.api.getOption("captions","track"),this.api.toggleSubtitles(),lO7(this.vj,!C||C&&!C.displayName),U=!0);break;case 79:Ac(this,"textOpacity");break;case 87:Ac(this,"windowOpacity");break;case 187:case 61:Ac(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Ac(this,"fontSizeIncrement",!0,!0)}var w;t||a||r||(y>=48&&y<=57?w=y-48:y>=96&&y<=105&&(w=y-96));w!=null&&this.api.u2()&& !this.api.B("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),C=this.api.getProgressState(),this.api.seekTo(w/10*(C.seekableEnd-C.seekableStart)+C.seekableStart,void 0,void 0,void 0,81),U=!0);U&&this.kT.w1()}this.Y.PC=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:y,shiftKey:t,ctrlKey:a,altKey:r,metaKey:E,key:h,code:F,repeat:x},this.Y);this.Y.PC&&(U=!0,this.kT.w1());return U}; g.R.step=function(y){this.api.u2();if(this.api.getPlayerStateObject().isPaused()){var t=this.api.getVideoData().K;t&&(t=t.video)&&this.api.seekBy(y/(t.fps||30),void 0,void 0,y>0?77:78)}}; g.R.NT=function(y){if(!this.api.G().yv){var t;var a,r=(t=this.api.getVideoData())==null?void 0:(a=t.getPlayerResponse())==null?void 0:a.playabilityStatus;if(r){var E;t=((E=g.P(r.miniplayer,x9e))==null?void 0:E.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else t=!1;t&&this.api.W4("onExpandMiniplayer");y?this.progressBar.vc():(y=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.vj.dk(y),y?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.R.I5=function(){g.yf(this.D);g.Ci.prototype.I5.call(this)};g.N(xS,g.q);xS.prototype.kG=function(){var y=this.C.G(),t=y.Y||this.C.B("web_player_hide_overflow_button_if_empty_menu")&&this.VR.isEmpty();y=g.bc(y)&&g.Hq(this.C)&&g.D(this.C.getPlayerStateObject(),128);var a=this.C.getPlayerSize();this.visible=this.C.b2()&&!y&&a.width>=240&&!this.C.getVideoData().Zh&&!t&&!this.C.isEmbedsShortsMode();g.Uz(this.element,"ytp-overflow-button-visible",this.visible);this.lY(this.visible);this.visible&&this.C.jJ();this.C.logVisibility(this.element,this.visible&&this.hF)}; xS.prototype.Au=function(y){g.q.prototype.Au.call(this,y);this.C.logVisibility(this.element,this.visible&&y)}; xS.prototype.I5=function(){g.q.prototype.I5.call(this);g.sz(this.element,"ytp-overflow-button-visible")};g.N(YVd,g.TQ);g.R=YVd.prototype;g.R.mI=function(y){y=po(y);g.Vu(this.element,y)&&(g.Vu(this.V,y)||g.Vu(this.closeButton,y)||ZM(this))}; g.R.LJ=function(){g.TQ.prototype.LJ.call(this);this.C.pD(this.element)}; g.R.show=function(){this.sS&&this.C.publish("OVERFLOW_PANEL_OPENED");g.TQ.prototype.show.call(this);this.element.setAttribute("aria-modal","true");gSn(this,!0)}; g.R.hide=function(){g.TQ.prototype.hide.call(this);this.element.removeAttribute("aria-modal");gSn(this,!1)}; g.R.onFullscreenToggled=function(y){!y&&this.Dn()&&ZM(this)}; g.R.isEmpty=function(){return this.actionButtons.length===0}; g.R.focus=function(){for(var y=g.p(this.actionButtons),t=y.next();!t.done;t=y.next())if(t=t.value,t.sS){t.focus();break}};g.N(ig7,g.q);ig7.prototype.onClick=function(y){g.La(y,this.api)&&this.api.playVideoAt(this.index)};g.N(KN7,g.TQ);g.R=KN7.prototype;g.R.show=function(){g.TQ.prototype.show.call(this);this.V.N(this.api,"videodatachange",this.kp);this.V.N(this.api,"onPlaylistUpdate",this.kp);this.kp()}; g.R.hide=function(){g.TQ.prototype.hide.call(this);g.V1(this.V);this.updatePlaylist(null)}; g.R.kp=function(){this.updatePlaylist(this.api.getPlaylist());this.api.G().Y&&(this.K1("ytp-playlist-menu-title-name").removeAttribute("href"),this.K&&(this.Dh(this.K),this.K=null))}; g.R.BJ=function(){var y=this.playlist,t=y.author,a=t?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",r={CURRENT_POSITION:String(y.index+1),PLAYLIST_LENGTH:String(y.length)};t&&(r.AUTHOR=t);this.update({title:y.title,subtitle:g.ts(a,r),playlisturl:this.api.getVideoUrl(!0)});t=y.K;if(t===this.Y)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[y.index];else{a=g.p(this.playlistData);for(r=a.next();!r.done;r=a.next())r.value.dispose(); a=y.length;this.playlistData=[];for(r=0;r=this.K&&!y.Y&&!t.isAd()&&!this.api.isEmbedsShortsMode()}else y=!1;this.visible=y;this.lY(this.visible);g.Uz(this.element,"ytp-search-button-visible",this.visible);g.Uz(this.element,"ytp-show-search-title",!this.api.b2());this.api.logVisibility(this.element,this.visible&&this.hF)}; Cg.prototype.Au=function(y){g.q.prototype.Au.call(this,y);this.api.logVisibility(this.element,this.visible&&y)};g.N(z3,g.q); z3.prototype.trigger=function(y,t,a,r){this.show();if(this.K&&y!==this.K){var E=1;this.Y&&(E=Aix(this));acV(this,E,!1);FVy(this)}this.K=y;this.D=this.K===-1?this.W:this.Z;y="";t?(this.K===-1&&this.C.getCurrentTime()<=t?this.L=t:this.L+=t,y=(this.K===-1?"\u2212":"+")+" "+this.L):this.L=0;this.updateValue(this.K===-1?"durationBack":"durationForward",y);if(this.V==="hidden"||this.V==="fading-out")t=0,this.V==="fading-out"&&(t=Aix(this),h17(this)),riN(this,t),this.V!=="fading-out"&&El1(this,this.D.querySelector(".ytp-seek-overlay-arrow-persistent")), this.V="fading-in";else if(this.V==="fading-in"||this.V==="lingering")t=this.D.querySelector(".ytp-seek-overlay-duration"),y=g.Gw(this.C.G().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,t.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("+y+")"},{offset:1,transform:"scale(1)"}],{duration:184}),h17(this),this.V==="lingering"&&(this.J.stop(),this.J.start());a&&xwu(this, a,r)}; z3.prototype.Ud=function(y,t,a,r){this.trigger(y,r)}; z3.prototype.g1=function(y,t,a){this.trigger(y,t);a&&(y=y===-1?this.Z.visualElement:this.W.visualElement,a={seekData:a},(t=g.XE())&&rf(t,y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",a))}; z3.prototype.uM=function(y,t,a){this.trigger(y,void 0,t,a)};g.N(OV,g.q);OV.prototype.onClick=function(){var y=this,t=this.api.G(),a=this.api.getVideoData(this.api.getPresentingPlayerType()),r=this.api.getPlaylistId();t=this.api.B("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):t.getVideoUrl(a.videoId,r,void 0,!0);if(navigator.share)try{var E=navigator.share({title:a.title,url:t});E instanceof Promise&&E.catch(function(h){$w2(y,h)})}catch(h){h instanceof Error&&$w2(this,h)}else this.V.Dr(),ZM(this.K,this.element,!1); this.api.logClick(this.element)}; OV.prototype.kG=function(){var y=this.api.G(),t=this.api.isEmbedsShortsMode();g.Uz(this.element,"ytp-show-share-title",g.bc(y)&&!t);this.V.KA()&&t?(y=(this.api.ZE().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ry(this.element,"right",y+"px")):t&&g.ry(this.element,"right","0px");this.updateValue("icon",{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{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=sjd(this);g.Uz(this.element,"ytp-share-button-visible",this.visible);this.lY(this.visible);this.tooltip.jJ();this.api.logVisibility(this.element,sjd(this)&&this.hF)}; OV.prototype.Au=function(y){g.q.prototype.Au.call(this,y);this.api.logVisibility(this.element,this.visible&&y)}; OV.prototype.I5=function(){g.q.prototype.I5.call(this);g.sz(this.element,"ytp-share-button-visible")};g.N(C97,g.TQ);g.R=C97.prototype;g.R.zX=function(y){y=po(y);g.Vu(this.D,y)||g.Vu(this.closeButton,y)||ZM(this)}; g.R.LJ=function(){g.TQ.prototype.LJ.call(this);this.tooltip.pD(this.element);this.api.logVisibility(this.V,!1);for(var y=g.p(this.K),t=y.next();!t.done;t=y.next())t=t.value,this.api.hasVe(t.element)&&this.api.logVisibility(t.element,!1)}; g.R.show=function(){var y=this.sS;g.TQ.prototype.show.call(this);this.kG();y||this.api.W4("onSharePanelOpened")}; g.R.xKE=function(){this.sS&&this.kG()}; g.R.kG=function(){var y=this;g.Al(this.element,"ytp-share-panel-loading");g.sz(this.element,"ytp-share-panel-fail");var t=this.api.getVideoData(),a=this.api.getPlaylistId()&&this.Y.checked;t.getSharePanelCommand&&Ja(this.api.RS(),t.getSharePanelCommand,{includeListId:a}).then(function(r){y.Qv()||(g.sz(y.element,"ytp-share-panel-loading"),LVb(y,r))}); t=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",t);this.updateValue("linkText",t);this.updateValue("shareLinkWithUrl",g.ts("Compartir v\u00ednculo $URL",{URL:t}));PP(this.V);this.api.logVisibility(this.V,!0)}; g.R.onFullscreenToggled=function(y){!y&&this.Dn()&&ZM(this)}; g.R.focus=function(){this.V.focus()}; g.R.I5=function(){g.TQ.prototype.I5.call(this);z17(this)};g.N(R1F,CB);g.R=R1F.prototype;g.R.I5=function(){kgN(this);CB.prototype.I5.call(this)}; g.R.Xs=function(y){y.target!==this.dismissButton.element&&(this.qx(!1),this.C.W4("innertubeCommand",this.onClickCommand))}; g.R.lA=function(){this.JF=!0;this.qx(!0);this.nx()}; g.R.baX=function(y){this.J=y;this.nx()}; g.R.onVideoDataChange=function(y,t){if(y=!!t.videoId&&this.videoId!==t.videoId)this.videoId=t.videoId,this.JF=!1,this.o5=!0,this.W=this.Vv=!1,kgN(this),Xi1(this,!1),this.Y=this.V=!1,MP(this),P9y(this);if(y||!t.videoId)this.AF=this.K=!1;var a,r;if(t==null?0:(a=t.getPlayerResponse())==null?0:(r=a.videoDetails)==null?0:r.isLiveContent)this.Ii(!1);else{var E,h,F;t=g.P((E=t.getWatchNextResponse())==null?void 0:(h=E.playerOverlays)==null?void 0:(F=h.playerOverlayRenderer)==null?void 0:F.productsInVideoOverlayRenderer, Z7c);this.J=this.enabled=!1;if(t){if(E=t==null?void 0:t.featuredProductsEntityKey){h=g.MD.getState().entities;var x;if((x=iG(h,"featuredProductsEntity",E))==null?0:x.productsData){this.Ii(!1);return}}if(!t.text||!t.onClickCommand||!t.timing){this.Ii(!1);return}this.enabled=!0;if(!this.K){var U;x=(U=t.badgeInteractionLogging)==null?void 0:U.trackingParams;(this.K=!!x)&&this.C.setTrackingParams(this.badge.element,x||null)}if(!this.AF){var C;if(this.AF=!((C=t.dismissButton)==null||!C.trackingParams)){var z; this.C.setTrackingParams(this.dismissButton.element,((z=t.dismissButton)==null?void 0:z.trackingParams)||null)}}t.isContentForward&&(U=t.productsData,Xi1(this,!0),P9y(this),U=dw7(this,U),C=[],U.length>0&&C.push(U[0]),U.length>1&&(z=new g.q({U:"div",X:"ytp-suggested-action-more-products-icon"}),g.c(this,z),C.push(z),C.push.apply(C,g.i7(U.slice(1)))),this.L=new g.q({U:"div",S:C,X:"ytp-suggested-action-content-forward-container"}),g.c(this,this.L),this.L1.element.append(this.L.element));this.text=g.Oi(t.text); var O;if(U=(O=t.dismissButton)==null?void 0:O.a11yLabel)this.r0=g.Oi(U);this.onClickCommand=t.onClickCommand;this.timing=t.timing;this.Xm()}KMn(this);Uk(this);this.nx()}}; g.R.zp=function(){return!this.J&&this.enabled&&!this.JF&&!this.C.b2()&&!this.FB&&(this.W||this.o5)}; g.R.Qc=function(y){CB.prototype.Qc.call(this,y);if(this.V||this.Y)this.timing&&Lg(this.timing.preview)&&(this.V=!1,MP(this),this.Y=!1,MP(this),this.C.g7("shopping_overlay_preview_collapsed"),this.C.g7("shopping_overlay_preview_expanded"),y=ww(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Lg(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.C.g7("shopping_overlay_expanded"),y.end=this.timing.expanded.endSec*1E3),this.C.Xm([y])), this.Vv=!0,Uk(this);MP(this)}; g.R.Ii=function(y){(this.W=y)?($5(this),Uk(this,!1)):(kgN(this),this.yv.start());this.nx()}; g.R.Xm=function(y){var t=this.timing;y=(y===void 0?0:y)+this.C.getCurrentTime();var a=[],r=t.visible,E=t.preview;t=t.expanded;Lg(r)&&(Mo7(r,y),a.push(ww(r.startSec,r.endSec,"shopping_overlay_visible")));Lg(E)&&(Mo7(E,y),r=E.startSec+1,a.push(ww(E.startSec,r,"shopping_overlay_preview_collapsed")),a.push(ww(r,E.endSec,"shopping_overlay_preview_expanded")));Lg(t)&&(Mo7(t,y),a.push(ww(t.startSec,t.endSec,"shopping_overlay_expanded")));this.C.Xm(a)}; g.R.nx=function(){CB.prototype.nx.call(this);this.C.getRootNode()&&g.Uz(this.C.getRootNode(),"ytp-shopping-pill-shown",this.zp())};g.N(jj7,g.q); jj7.prototype.kG=function(){var y=this.api.G();this.lY(g.bc(y)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.sS);var t=this.api.getVideoData(),a=!1;this.api.getPresentingPlayerType()===2?a=!!t.videoId&&!!t.isListed&&!!t.author&&!!t.yv&&!!t.profilePicture:g.bc(y)&&(a=!!t.videoId&&!!t.yv&&!!t.profilePicture&&!t.Zh&&!y.Y&&!(y.W&&this.api.getPlayerSize().width<200));var r=t.profilePicture;y=g.bc(y)?t.expandedTitle:t.author;r=r===void 0? "":r;y=y===void 0?"":y;a?(this.K!==r&&(this.V.style.backgroundImage="url("+r+")",this.K=r),this.updateValue("channelLogoLabel",g.ts("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:y})),g.Al(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.sz(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.V,a&&this.hF);this.api.logVisibility(this.channelName,a&&this.hF);this.subscribeButton&&(this.subscribeButton.channelId=t.CD);this.updateValue("expandedTitle",t.expandedTitle)};g.N(RJ,g.TQ);RJ.prototype.show=function(){g.TQ.prototype.show.call(this);this.V.start()}; RJ.prototype.hide=function(){g.TQ.prototype.hide.call(this);this.V.stop()}; RJ.prototype.eP=function(y,t){y==="dataloaded"&&((this.ZH=t.ZH,this.cL=t.cL,isNaN(this.ZH)||isNaN(this.cL))?this.K&&(this.C.g7("intro"),this.C.removeEventListener(g.q4("intro"),this.W),this.C.removeEventListener(g.Ya("intro"),this.D),this.C.removeEventListener("onShowControls",this.Y),this.hide(),this.K=!1):(this.C.addEventListener(g.q4("intro"),this.W),this.C.addEventListener(g.Ya("intro"),this.D),this.C.addEventListener("onShowControls",this.Y),y=new g.BK(this.ZH,this.cL,{priority:9,namespace:"intro"}), this.C.Xm([y]),this.K=!0))};g.N(PJ,g.q);PJ.prototype.onClick=function(){this.C.Qn()}; PJ.prototype.kG=function(){var y=!0;g.bc(this.C.G())&&(y=y&&this.C.ZE().getPlayerSize().width>=480);this.lY(y);y=this.updateValue;var t=this.C.B("delhi_modern_web_player_icons"),a=t?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,T:{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"}}]};t=t?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{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"}}]};y.call(this,"icon",this.C.f_()?a:t)};g.N(QjF,g.q);QjF.prototype.I5=function(){this.V=null;g.q.prototype.I5.call(this)};g.N(NP,g.q);NP.prototype.onClick=function(){this.C.W4("innertubeCommand",this.K)}; NP.prototype.Z=function(){if(this.C.B("delhi_modern_web_player")){var y=this.C.getPlayerSize();y.width&&(this.element.style.maxWidth=y.width*.25+"px")}}; NP.prototype.Vv=function(y){y!==this.J&&(this.update({chapterTitle:y,ariaLabel:y}),this.J=y);y?this.show():this.hide()}; NP.prototype.AF=function(){this.V.disabled=this.K==null;g.Uz(this.V,"ytp-chapter-container-disabled",this.V.disabled);this.QD()};g.N(dw,NP);dw.prototype.onClickCommand=function(y){g.P(y,LX)&&this.QD()}; dw.prototype.updateVideoData=function(y,t){var a,r,E;y=g.P((a=t.getWatchNextResponse())==null?void 0:(r=a.playerOverlays)==null?void 0:(E=r.playerOverlayRenderer)==null?void 0:E.decoratedPlayerBarRenderer,bK);a=g.P(y==null?void 0:y.playerBarActionButton,g.j7);if(this.C.B("web_player_updated_entrypoint")){this.W=FQ(a==null?void 0:a.text);var h;r=(h=a==null?void 0:a.tooltip)!=null?h:"Ver cap\u00edtulo";this.L.setAttribute("title",r)}this.K=a==null?void 0:a.command;NP.prototype.AF.call(this)}; dw.prototype.QD=function(){var y=this.W,t=this.D.V,a,r=((a=this.C.getLoopRange())==null?void 0:a.type)==="clips";if(t.length>1&&!r){y=this.C.getProgressState().current*1E3;a=rw(t,y);y=t[a].title||"Cap\u00edtulos";if(a!==this.currentIndex||this.Y)this.C.W4("innertubeCommand",t[a].onActiveCommand),this.currentIndex=a;this.Y=!1}else this.Y=!0;NP.prototype.Vv.call(this,y)};g.N(Xd,g.Ui);Xd.prototype.K=function(){var y;(y=this.element.parentElement)==null||y.classList.contains("ytp-right-controls-left");(this.V=!this.V)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; Xd.prototype.isExpanded=function(){return this.V};g.N(kS,g.q);kS.prototype.Y=function(y){g.D(y.state,32)?piF(this,this.api.Un()):this.sS&&(g.D(y.state,16)||g.D(y.state,1))||this.fade.hide()}; kS.prototype.onProgress=function(){var y=this.api.getPlayerStateObject();(g.D(y,32)||g.D(y,16))&&e1V(this)}; kS.prototype.D=function(){this.frameIndex=NaN;e1V(this)}; kS.prototype.hide=function(){this.V&&piF(this,null);g.q.prototype.hide.call(this)};g.N(lcx,g.q);g.R=lcx.prototype;g.R.onClick=function(){var y=this;if(this.C.G().n1||this.C.G().W){this.C.logClick(this.element);try{this.C.toggleFullscreen().catch(function(t){y.JH(t)})}catch(t){this.JH(t)}}else ZM(this.message,this.element,!0)}; g.R.JH=function(y){String(y).includes("fullscreen error")?g.ls(y):g.pK(y);this.aK()}; g.R.aK=function(){this.disable();this.message.rV(this.element,!0)}; g.R.wc=function(){kH()===this.C.getRootNode()?this.Y.start():(this.Y.stop(),this.message&&this.message.hide())}; g.R.Ng=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var y=window.screen.width*.9,t=window.screen.height*.9,a=Math.max(window.outerWidth,window.innerWidth),r=Math.max(window.outerHeight,window.innerHeight);if(a>r!==y>t){var E=a;a=r;r=E}y>a&&t>r&&this.aK()}}; g.R.disable=function(){var y=this;if(!this.message){var t=(Ne(["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.TQ(this.C,{U:"div",mX:["ytp-popup","ytp-generic-popup"], T:{role:"alert",tabindex:"0"},S:[t[0],{U:"a",T:{href:"https://support.google.com/youtube/answer/6276924",target:this.C.G().hF},er:t[2]},t[4]]},100,!0);this.message.hide();g.c(this,this.message);this.message.subscribe("show",function(a){y.K.TL(y.message,a)}); g.q$(this.C,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.V)();this.V=null}}; g.R.kG=function(){var y=NPu(this.C),t=this.C.G().W&&this.C.getPlayerSize().width<250;this.lY(y&&!t);this.C.logVisibility(this.element,this.sS)}; g.R.Qm=function(y){if(y){var t=g.V$(this.C,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.C.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(a){g.ls(a)})}else t=g.V$(this.C,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); y=uyH(this,y);t=this.message?null:t;this.C.G().B("player_tooltip_data_title_killswitch")?this.update({title:t,icon:y}):this.update({"tooltip-title":t,"aria-label":t,icon:y});this.K.q7().jJ()}; g.R.I5=function(){this.message||((0,this.V)(),this.V=null);g.q.prototype.I5.call(this)}; g.R.Au=function(y){g.q.prototype.Au.call(this,y)};g.N(fg,g.q);fg.prototype.onClick=function(){this.C.logClick(this.element);this.C.seekBy(this.V,!0);var y=this.V>0?1:-1,t=Math.abs(this.V),a=this.C.Uh().qo;a&&a.g1(y,t);this.K.isActive()?this.Y=!0:(y=["ytp-jump-spin"],this.V<0&&y.push("backwards"),this.element.classList.add.apply(this.element.classList,g.i7(y)),g.Ge(this.K))};g.N(WJ,NP);WJ.prototype.onClickCommand=function(y){g.P(y,TxI)&&this.QD()}; WJ.prototype.updateVideoData=function(){var y,t;this.K=(y=nlz(this))==null?void 0:(t=y.onTap)==null?void 0:t.innertubeCommand;NP.prototype.AF.call(this)}; WJ.prototype.QD=function(){var y="",t=this.D.W,a,r=(a=nlz(this))==null?void 0:a.headerTitle;a=r?g.Oi(r):"";var E;r=((E=this.C.getLoopRange())==null?void 0:E.type)==="clips";t.length>1&&!r&&(y=this.C.getProgressState().current*1E3,E=mPu(t,y),y=E!=null?t[E].title:a,E!=null&&E!==this.currentIndex&&(this.C.W4("innertubeCommand",t[E].onActiveCommand),this.currentIndex=E));NP.prototype.Vv.call(this,y)};g.N(jA,g.q);jA.prototype.onClick=function(){this.C.W4("onCollapseMiniplayer");this.C.logClick(this.element)}; jA.prototype.kG=function(){this.visible=!this.C.isFullscreen();this.lY(this.visible);this.C.logVisibility(this.element,this.visible&&this.hF)}; jA.prototype.Au=function(y){g.q.prototype.Au.call(this,y);this.C.logVisibility(this.element,this.visible&&y)};g.N(SA,g.q);SA.prototype.init=function(){this.update({minvalue:this.Y,maxvalue:this.L,stepvalue:this.W,slidervalue:this.V,ariaValueNow:this.V,ariaMinValue:this.Y,ariaMaxValue:this.L});JiF(this,this.V)}; SA.prototype.D=function(){QO(this,Number(this.K.value));this.K.focus()}; SA.prototype.J=function(y){if(!y.defaultPrevented){switch(y.code){case "ArrowDown":y=-this.W;break;case "ArrowUp":y=this.W;break;default:return}QO(this,Math.min(this.L,Math.max(Number((this.V+y).toFixed(2)),this.Y)))}};g.N(vJ,SA);vJ.prototype.onVolumeChange=function(y){if(this.Z)this.Z=!1;else{var t=y.volume;t===0||y.muted?QO(this,0):QO(this,t)}}; vJ.prototype.D=function(){SA.prototype.D.call(this);this.AF(this.V)}; vJ.prototype.Vv=function(y){var t=-y.deltaY;t=y.deltaMode===WheelEvent.DOM_DELTA_LINE||y.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.tE(this.V+t,0,100):g.tE(this.V+g.tE(t/10,-10,10),0,100);t===0?QO(this,0):QO(this,t);this.AF(t);y.preventDefault();y.stopPropagation()}; vJ.prototype.o5=function(y,t){this.Z=!0;y===0||t?this.C.mute():(this.C.isMuted()&&this.C.unMute(),this.C.setVolume(y))};g.N(oln,g.q);g.N(eA,g.q);g.R=eA.prototype;g.R.lR=function(){if(!this.C.Qb()){this.updateValue("dataTooltipOffsetY",-120);var y;(y=this.V)!=null&&pg(y,!0);var t;(t=this.V)!=null&&t.V.stop()}}; g.R.zb=function(){var y;(y=this.V)!=null&&y.V.start()}; g.R.uR=function(y){this.visible=y.width>=300||this.Ff;this.lY(this.visible);this.C.logVisibility(this.element,this.visible&&this.hF)}; g.R.pS=function(){this.C.G().L1?this.C.isMuted()?this.C.unMute():this.C.mute():ZM(this.message,this.element,!0);this.C.logClick(this.element)}; g.R.ETv=function(y){if(this.C.G().L1&&this.V)if(y.target===this.Y){var t;if(!this.C.Qb()||((t=this.V)==null?0:t.isVisible))this.pS();else{var a;(a=this.V)!=null&&pg(a,!0)}}else{var r;(r=this.V)!=null&&pg(r,!0)}else this.pS()}; g.R.onVolumeChange=function(y){this.setVolume(y.volume,y.muted)}; g.R.setVolume=function(y,t){var a=this,r=t?0:y/100;y=r===0?1:y>50?1:0;if(this.Z!==y){var E=this.W;isNaN(E)?qGy(this,y):o92(this.L1,function(F){qGy(a,E+(a.Z-E)*F)},250); this.Z=y}r=r===0?1:0;if(this.J!==r){var h=this.o5;isNaN(h)?YGu(this,r):o92(this.DE,function(F){YGu(a,h+(a.J-h)*F)},250); this.J=r}bCH(this,t)}; g.R.Au=function(y){g.q.prototype.Au.call(this,y);this.C.logVisibility(this.element,this.visible&&y)}; var BCz=["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"],ciy=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.N(g.lk,g.q);g.R=g.lk.prototype;g.R.onStateChange=function(y){this.UR(y.state)}; g.R.UR=function(y){var t=g.BQ(this.C.getVideoData()),a=!1;y.isOrWillBePlaying()?y=t?4:2:g.D(y,2)?(y=3,a=t):y=1;this.element.disabled=a;if(this.V!==y){t=null;switch(y){case 2:t=g.V$(this.C,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:t="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:t=g.V$(this.C,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:t="Detener la reproducci\u00f3n",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n"})}y=== 3?this.C.G().B("player_tooltip_data_title_killswitch")?this.update({title:t,icon:Dwy(this,y)}):this.update({"tooltip-title":t,icon:Dwy(this,y)}):(this.C.B("player_tooltip_data_title_killswitch")?this.update({title:t}):this.update({"tooltip-title":t}),(t=Dwy(this,y))&&this.V&&this.V!==3?b1N(this.transition,this.element,t):this.updateValue("icon",t));this.tooltip.jJ();this.V=y}}; g.R.onVideoDataChange=function(){g.Uz(this.element,"ytp-play-button-playlist",g.Hq(this.C))}; g.R.NT=function(y){this.C.logClick(this.element);if(this.C.getPlayerStateObject().isOrWillBePlaying())this.C.pauseVideo();else{if(this.C.isMinimized()&&this.C.getPlayerStateObject().isCued()){var t={},a;if((a=this.C.getVideoData())==null?0:a.J)t.cttAuthInfo={token:this.C.getVideoData().J,videoId:this.C.getVideoData().videoId};ly("direct_playback",t);this.C.Fz().timerName="direct_playback"}this.C.playVideo()}this.C.isMinimized()&&(y==null?void 0:y.type)==="click"&&this.element.blur()}; g.R.Au=function(y){g.q.prototype.Au.call(this,y)};g.N(g.uk,g.q);g.R=g.uk.prototype;g.R.onVideoDataChange=function(){KV2(this);this.D&&(this.Dh(this.D),this.D=null);this.videoData=this.C.getVideoData(1);if(this.playlist=this.C.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.N(this.C,"progresssync",this.Pa);this.Y=Ic1(this);iCx(this);this.Sg(this.C.ZE().getPlayerSize())}; g.R.Sg=function(y){y=y===void 0?this.C.ZE().getPlayerSize():y;var t,a=((t=this.C.getLoopRange())==null?void 0:t.type)==="clips";t=g.Hq(this.C)||this.V&&g.Y6(this.C)&&!this.C.B("web_hide_next_button")||TCx(this);var r=!this.V&&y.width<400;y=this.C.B("delhi_modern_web_player_horizontal_volume_controls")&&y.width<640;a=t&&!a&&!r&&!y;this.lY(a);this.C.logVisibility(this.element,a)}; g.R.onClick=function(y){this.C.logClick(this.element);var t=!0;this.J?t=g.La(y,this.C):y.preventDefault();t&&(this.V&&this.C.getPresentingPlayerType()===5?this.C.publish("ytoprerollinternstitialnext"):this.V?(xd(this.C.Fz()),this.C.publish("playlistnextbuttonclicked",this.element),this.C.nextVideo(!0)):this.Y?this.C.seekTo(0):(xd(this.C.Fz()),this.C.publish("playlistprevbuttonclicked",this.element),this.C.previousVideo(!0)))}; g.R.Pa=function(){var y=Ic1(this);y!==this.Y&&(this.Y=y,iCx(this))}; g.R.I5=function(){this.K&&(this.K(),this.K=null);KV2(this);g.q.prototype.I5.call(this)};g.N(ZCn,g.q);g.R=ZCn.prototype;g.R.ip=function(y){this.n9(y.pageX);this.EF(y.pageX+y.deltaX);yAz(this)}; g.R.n9=function(y){this.AF=y-this.Ff}; g.R.EF=function(y){y-=this.Ff;!isNaN(this.AF)&&this.thumbnails.length>0&&(this.Z=y-this.AF,this.thumbnails.length>0&&this.Z!==0&&(this.Y=this.W+this.Z,y=hdz(this,this.Y),this.Y<=this.V/2&&this.Y>=EgN(this)?(this.api.seekTo(y,!1,void 0,void 0,25),g.ry(this.o5,"transform","translateX("+(this.Y-this.V/2)+"px)"),Gg7(this,y)):this.Y=this.W))}; g.R.Yz=function(){this.Vv&&(this.Vv.YZ=!0);var y=(0,g.Wx)()-this.C1<300;if(Math.abs(this.Z)<5&&!y){this.C1=(0,g.Wx)();y=this.AF+this.Z;var t=this.V/2-y;this.n9(y);this.EF(y+t);yAz(this);this.api.logClick(this.L)}yAz(this)}; g.R.xz=function(){VO(this,this.api.getCurrentTime())}; g.R.play=function(y){this.api.seekTo(hdz(this,this.Y),void 0,void 0,void 0,26);this.api.playVideo();y&&this.api.logClick(this.playButton)}; g.R.onExit=function(y){this.api.seekTo(this.yv,void 0,void 0,void 0,63);this.api.playVideo();y&&this.api.logClick(this.dismissButton)}; g.R.Gl=function(y,t){this.Ff=y;this.V=t;VO(this,this.api.getCurrentTime())}; g.R.enable=function(){this.isEnabled||(this.isEnabled=!0,this.yv=this.api.getCurrentTime(),Gg7(this,this.yv),g.Uz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.L1=this.N(this.element,"wheel",this.ip),this.logVisibility(this.isEnabled))}; g.R.disable=function(){this.isEnabled=!1;this.hide();g.Uz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.L1&&this.Dh(this.L1);this.logVisibility(this.isEnabled)}; g.R.reset=function(){this.disable();this.D=[];this.d0=!1}; g.R.logVisibility=function(y){this.api.logVisibility(this.element,y);this.api.logVisibility(this.L,y);this.api.logVisibility(this.dismissButton,y);this.api.logVisibility(this.playButton,y)}; g.R.I5=function(){for(;this.K.length;){var y=void 0;(y=this.K.pop())==null||y.dispose()}g.q.prototype.I5.call(this)}; g.N(tHb,g.q);g.N(aU7,g.q);g.N(FDN,g.q);g.N(ng,g.q);ng.prototype.YE=function(y){return y==="PLAY_PROGRESS"?this.W:y==="LOAD_PROGRESS"?this.J:y==="LIVE_BUFFER"?this.L:this.Y};sCb.prototype.update=function(y,t,a,r){a=a===void 0?0:a;this.width=t;this.D=a;this.V=t-a-(r===void 0?0:r);this.position=g.tE(y,a,a+this.V);this.Y=this.position-a;this.K=this.Y/this.V};g.N($ax,g.q);g.N(g.oJ,g.Ui);g.R=g.oJ.prototype; g.R.HN=function(){var y=!1,t=this.api.getVideoData();if(!t)return y;this.api.g7("timedMarkerCueRange");zdy(this);for(var a=g.p(t.L1),r=a.next();!r.done;r=a.next()){r=r.value;var E=void 0,h=(E=this.JF[r])==null?void 0:E.markerType,F=void 0;E=(F=this.JF[r])==null?void 0:F.markers;if(!E)break;if(h==="MARKER_TYPE_TIMESTAMPS"){y=g.p(E);for(h=y.next();!h.done;h=y.next()){F=h.value;h=new $ax;var x=void 0;h.title=((x=F.title)==null?void 0:x.simpleText)||"";h.timeRangeStartMillis=Number(F.startMillis);h.V= Number(F.durationMillis);var U=x=void 0;h.onActiveCommand=(U=(x=F.onActive)==null?void 0:x.innertubeCommand)!=null?U:void 0;P07(this,h)}NoV(this,this.W);y=this.W;h=this.Xz;F=[];x=null;for(U=0;UC&&(x.end=C);C=HgF(C,C+O);F.push(C);x=C;h[C.id]=y[U].onActiveCommand}}this.api.Xm(F);a:{y=g.p(E);for(E=y.next();!E.done;E=y.next())if(E.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){y= !1;break a}y=!0}y&&(this.Wy=this.JF[r]);y=!0}else if(h==="MARKER_TYPE_HEATMAP"){r=this.JF[r];z=C=h=U=x=F=void 0;if(r&&r.markers){E=(h=(z=r.markersMetadata)==null?void 0:(C=z.heatmapMetadata)==null?void 0:C.minHeightDp)!=null?h:0;h=(F=(U=r.markersMetadata)==null?void 0:(x=U.heatmapMetadata)==null?void 0:x.maxHeightDp)!=null?F:60;F=this.V.length;x=null;for(U=0;U=z&&w<=O&&C.push(L)}h>0&&(this.Vv.style.height=h+"px");z=this.D[U];O=C;L=E;var d=h,k=U===0;k=k===void 0?!1:k;AAd(z,d);M=O;w=z.K;k=k===void 0?!1:k;var e=1E3/M.length,v=[];v.push({x:0,y:100});for(var l=0;l0&&(x=C[C.length-1])}g.HJ(this)}h=void 0;E=[];if(r=(h=r.markersDecoration)==null?void 0:h.timedMarkerDecorations)for(r=g.p(r),h=r.next();!h.done;h=r.next())h=h.value,U=x=F=void 0,E.push({visibleTimeRangeStartMillis:(F=h.visibleTimeRangeStartMillis)!= null?F:-1,visibleTimeRangeEndMillis:(x=h.visibleTimeRangeEndMillis)!=null?x:-1,decorationTimeMillis:(U=h.decorationTimeMillis)!=null?U:NaN,label:h.label?g.Oi(h.label):""});r=E;this.heatMarkersDecorations=r}}t.Rg=this.W;g.Uz(this.element,"ytp-timed-markers-enabled",y);return y}; g.R.Gl=function(){g.HJ(this);cJ(this);NoV(this,this.W);if(this.K){var y=g.CQ(this.element).x||0;this.K.Gl(y,this.J)}}; g.R.si0=function(){var y=this.api.getVideoData();y&&lUx(this,y)}; g.R.onClickCommand=function(y){if(y=g.P(y,LX)){var t=y.key;y.isVisible&&t&&fUN(this,t)}}; g.R.p1r=function(y){this.api.W4("innertubeCommand",this.Xz[y.id])}; g.R.QD=function(){cJ(this);var y=this.api.getCurrentTime();(ythis.clipEnd)&&this.qt()}; g.R.MC=function(y){if(!y.defaultPrevented){var t=!1;switch(y.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);t=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);t=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);t=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);t=!0;break;case 38:this.api.B("enable_key_press_seek_logging")&&Kg(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);t=!0;break;case 40:this.api.B("enable_key_press_seek_logging")&&Kg(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),t=!0}t&&y.preventDefault()}}; g.R.eP=function(y,t){this.updateVideoData(t,y==="newdata")}; g.R.IEu=function(){this.eP("newdata",this.api.getVideoData())}; g.R.updateVideoData=function(y,t){t=t===void 0?!1:t;var a=!!y&&y.Fm();a&&($6(y)||pfV(this)?this.Wl=!1:this.Wl=y.allowLiveDvr,g.Uz(this.api.getRootNode(),"ytp-enable-live-buffer",!(y==null||!$6(y))),lUx(this,y));ggz(this,this.api.u2());if(t){if(a){t=y.clipEnd;this.clipStart=y.clipStart;this.clipEnd=t;IJ(this);for(D0(this,this.AF,this.zl);this.D.length>0;)this.D.pop().dispose();this.heatMarkersDecorations=[];this.MK={};var r;(r=this.K)==null||r.reset();Z0(this);g.Uz(this.api.getRootNode(),"ytp-fine-scrubbing-exp", Jc(this))}else this.qt();this.EV()}if(y){var E;r=((E=this.DA)==null?void 0:E.type)==="clips";if(E=!y.isLivePlayback){E=this.api.getVideoData();t=g.Be(E);a=LDF(E);var h;E=t!=null||a!=null&&a.length>0||((h=E.ll)==null?void 0:h.length)>0}if(E&&!r){h=this.api.getVideoData();r=g.Be(h);E=!1;if(r==null?0:r.markersMap){E=this.api.getVideoData();var F;E.eY=((F=r.visibleOnLoad)==null?void 0:F.key)||E.eY;F=g.p(r.markersMap);for(r=F.next();!r.done;r=F.next())r=r.value,r.key&&r.value&&(this.MK[r.key]=r.value, r.value.onChapterRepeat&&(E.QS=r.value.onChapterRepeat));E.eY!=null&&fUN(this,E.eY);E=!0}var x;if(((x=h.ll)==null?void 0:x.length)>0){x=g.MD.getState().entities;F=g.p(h.ll);for(r=F.next();!r.done;r=F.next()){r=r.value;a=void 0;t=(a=iG(x,"macroMarkersListEntity",r))==null?void 0:a.markersList;var U=a=void 0;if(((a=t)==null?void 0:a.markerType)==="MARKER_TYPE_TIMESTAMPS"||((U=t)==null?void 0:U.markerType)==="MARKER_TYPE_HEATMAP")this.JF[r]=t}E=this.HN()||E}!E&&(x=LDF(h))&&(wfu(this,x),h.IR=this.V,MHF(this)); upu(this,null);y.u0&&this.D.length===0&&(y=y.u0,x=y.key,y.isVisible&&x&&fUN(this,x))}else Uab(this),zdy(this)}cJ(this)}; g.R.Cp=function(y){this.Z&&!g.D(y.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Z.cancel();var t;((t=this.K)==null?0:t.isEnabled)&&g.D(y.state,8)&&this.api.pauseVideo();y=this.api.getPresentingPlayerType()===2||!this.api.u2()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Uz(this.Bz,"ytp-hide-scrubber-button",y)}; g.R.bR=function(y){var t=!!this.DA!==!!y,a=this.DA;this.DA=y;upu(this,a);(y==null?void 0:y.type)!=="clips"&&y||(y?(this.updateValue("clipstarticon",ZtF()),this.updateValue("clipendicon",ZtF()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",DtV()),this.updateValue("clipendicon",YO7()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),t&&(this.updateVideoData(this.api.getVideoData(), !0),g.HJ(this)),IJ(this));D0(this,this.AF,this.zl)}; g.R.Xje=function(){this.api.publish("progressBarHoverStart")}; g.R.N7X=function(y,t,a){var r=g.CQ(this.element),E=BJ(this).V,h=a?a.getAttribute("data-tooltip"):void 0,F=a?a.getAttribute("data-position"):void 0,x=a?a.getAttribute("data-offset-y"):void 0;x=x?Number(x):0;F&&(y=Va(this.Y,Number(a.getAttribute("data-position")),0)*E+g.CQ(this.progressBar).x);this.I7.x=y-r.x;this.I7.y=t-r.y;y=BJ(this);a=ik(this,y);t=0;var U;if((U=this.api.getVideoData())==null?0:$6(U))(U=this.api.getProgressState().seekableEnd)&&a>U&&(a=U,y.position=Va(this.Y,U)*BJ(this).V),t=this.Y.K; pfV(this)&&(t=this.Y.K);U=h||g.kZ(this.Wl?a-this.Y.V:a-t);t=y.position+this.SQ;a-=this.api.fJ();var C;if((C=this.K)==null||!C.isEnabled)if(this.api.Un()){if(this.V.length>1){C=gw(this,this.I7.x,!0);if(!this.DA)for(r=0;r1)for(r=0;r0)for(C=this.I7.x,r=g.p(this.W),E=r.next();!E.done;E=r.next())E=E.value,F=bk(this,E.timeRangeStartMillis/ (this.Y.V*1E3),BJ(this)),g.Uz(E.element,"ytp-timed-marker-hover",F<=C&&F+6>=C);r=this.tooltip.scale;C=this.api.B("delhi_modern_web_player")?67:45;x=(isNaN(x)?0:x)-C*r;this.api.B("web_key_moments_markers")?this.Wy?(C=mPu(this.W,a*1E3),C=C!=null?this.W[C].title:""):(C=rw(this.V,a*1E3),C=this.V[C].title):(C=rw(this.V,a*1E3),C=this.V[C].title);C||(x+=16*r);this.tooltip.scale===.6&&(g.xp(this.api.G())?(x=this.api.ZE().getPlayerSize().height-225,r=this.api.B("delhi_modern_web_player")?70:110,x=C?x+r:x+ r+16):x=C?110:126);r=rw(this.V,a*1E3);this.L1=ngb(this,a,r)?r:ngb(this,a,r+1)?r+1:-1;g.Uz(this.api.getRootNode(),"ytp-progress-bar-snap",this.L1!==-1&&this.V.length>1);r=!1;E=g.p(this.heatMarkersDecorations);for(F=E.next();!F.done;F=E.next()){F=F.value;var z=a*1E3;z>=F.visibleTimeRangeStartMillis&&z<=F.visibleTimeRangeEndMillis&&(C=F.label,U=g.kZ(ik(this,y)),r=!0)}this.ND!==r&&(this.ND=r,this.api.logVisibility(this.P1,this.ND));g.Uz(this.api.getRootNode(),"ytp-progress-bar-decoration",r);r=160*this.tooltip.scale* 2;E=C.length*(this.L?8.55:5.7);E=E<=r?E:r;F=E<160*this.tooltip.scale;r=3;!F&&E/2>y.position&&(r=1);!F&&E/2>this.J-y.position&&(r=2);this.api.G().W&&(x-=10);this.D.length&&this.D[0].Fm&&(x-=14*(this.L?2:1),this.C1||(this.C1=!0,this.api.logVisibility(this.Vv,this.C1)));var O;if(Jc(this)&&(((O=this.K)==null?0:O.isEnabled)||this.T7>0)){var M;x-=((M=this.K)==null?0:M.isEnabled)?(this.L?135:90)-this.o5:this.T7}O=void 0;Jc(this)&&!this.api.B("web_player_hide_fine_scrubbing_edu")&&(O="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa", this.yv||(this.yv=!0,this.api.logVisibility(this.uK,this.yv)));this.tooltip.IF(t,a,U,!!h,x,C,r,O)}else this.tooltip.IF(t,a,U,!!h,x);g.Al(this.api.getRootNode(),"ytp-progress-bar-hover");vgn(this)}; g.R.WW0=function(){this.EV();g.sz(this.api.getRootNode(),"ytp-progress-bar-hover");this.C1&&(this.C1=!1,this.api.logVisibility(this.Vv,this.C1));this.yv&&(this.yv=!1,this.api.logVisibility(this.uK,this.yv));this.api.B("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.R.pj4=function(y,t){var a=g.CQ(this.element);this.MP=y-a.x;Jc(this)&&this.K&&(this.K.d0?VO(this.K,this.api.getCurrentTime()):rAN(this.K),this.K.show(),g.Uz(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.K.isEnabled));this.GR&&(this.GR.dispose(),this.GR=null);this.Aw=t;this.Ri=this.api.getCurrentTime();this.V.length>1&&this.L1!==-1?this.api.seekTo(this.V[this.L1].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(ik(this,BJ(this)),!1,void 0,void 0,7);g.Al(this.element,"ytp-drag");(this.mp= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.R.T77=function(){if(Jc(this)&&this.K){var y=(this.L?135:90)-this.o5;this.T7>=y*.5?(this.K.enable(),VO(this.K,this.api.getCurrentTime()),Dax(this,y)):Z0(this)}if(g.D(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var t;if((t=this.K)==null?0:t.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.V.length>1&&this.L1!==-1)this.api.B("html5_enable_progress_bar_slide_seek_logging")&&Kg(this,this.Ri,this.V[this.L1].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.V[this.L1].startTime/1E3,void 0,void 0,void 0,7);else{y=ik(this,BJ(this));this.api.B("html5_enable_progress_bar_slide_seek_logging")&&Kg(this,this.Ri,y,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(y,void 0,void 0,void 0,7);t=g.p(this.heatMarkersDecorations);for(var a=t.next();!a.done;a=t.next())a=a.value,y*1E3>=a.visibleTimeRangeStartMillis&&y*1E3<=a.visibleTimeRangeEndMillis&& this.api.logClick(this.P1)}g.sz(this.element,"ytp-drag");this.d0&&(this.DE.src=this.d0);this.mp&&!g.D(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.R.RM7=function(y,t){var a=this,r=BJ(this),E=ik(this,r);this.api.ZE().Wr||(r.position>this.MP+2?this.IR&&(this.DE.src=this.IR):r.position1);this.lY(y&&this.C.ZE().getPlayerSize().width>=400);this.C.logVisibility(this.element,this.sS);var t=1;y&&this.isActive()&&(t=2);if(this.V!==t){this.V=t;y=this.C.B("delhi_modern_web_player_icons");switch(t){case 1:this.updateValue("icon",y?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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"}}]}:{U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{U:"path",oR:!0,T:{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", y?{U:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{U:"path",T:{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.Bs7())}g.Uz(this.element,"ytp-remote-button-active",this.isActive())}}; yE.prototype.K=function(){if(this.C.getOption("remote","quickCast"))this.C.setOption("remote","quickCast",!0);else{var y=this.OS,t=this.element;if(y.Dn())y.LJ();else{y.initialize();a:{var a=g.p(y.Wj.items);for(var r=a.next();!r.done;r=a.next())if(r=r.value,r.priority===1){a=r;break a}a=null}a&&(a.open(),y.rV(t));y.rV(t)}}this.C.logClick(this.element)};g.N(ti,g.q);ti.prototype.V=function(y){var t=this.C.G(),a=400;t.J?a=300:t.W&&(a=200);y=this.K&&y.width>=a;this.lY(y);this.C.logVisibility(this.element,y)}; ti.prototype.Y=function(){if(this.OS.sS)this.OS.LJ();else{var y=g.R4(this.C.gN());y&&!y.loaded&&(y.NZ("tracklist",{includeAsr:!0}).length||y.load());this.C.logClick(this.element);this.OS.rV(this.element)}}; ti.prototype.updateBadge=function(){var y=this.C.isHdr(),t=this.C.getPresentingPlayerType(),a=t!==2&&t!==3,r=g.cq(this.C),E=a&&!!g.Bq(this.C.gN());t=E&&r.displayMode===1;r=E&&r.displayMode===2;a=(E=t||r)||!a?null:this.C.getPlaybackQuality();g.Uz(this.element,"ytp-hdr-quality-badge",y);g.Uz(this.element,"ytp-hd-quality-badge",!y&&(a==="hd1080"||a==="hd1440"));g.Uz(this.element,"ytp-4k-quality-badge",!y&&a==="hd2160");g.Uz(this.element,"ytp-5k-quality-badge",!y&&a==="hd2880");g.Uz(this.element,"ytp-8k-quality-badge", !y&&a==="highres");g.Uz(this.element,"ytp-3d-badge-grey",!y&&E&&t);g.Uz(this.element,"ytp-3d-badge",!y&&E&&r)};g.N(aj,g.fB);g.R=aj.prototype;g.R.kG=function(){var y=this.C.getAvailableAudioTracks();if(y.length>1){if(this.C.G().experiments.pJ().V.o7(r12)){var t=y.filter(function(E){return E.isAutoDubbed()}),a=y.filter(function(E){return!E.isAutoDubbed()}).map(this.FX); t.length>0&&(a.push(new wNu),a.push.apply(a,g.i7(t.map(this.FX))));PSu(this,a)}else this.nL(g.v$(y,this.FX));this.tracks=g.RM(y,this.FX,this);this.countLabel.setContent(y.length?" ("+y.length+")":"");this.publish("size-change");y=this.FX(this.C.getAudioTrack());this.uq(y);if(this.C.B("html5_enable_new_audio_settings_menu")){var r;(r=this.V)!=null&&r.setContent(y.toString())}this.enable(!0)}else this.C.B("html5_enable_new_audio_settings_menu")&&(t=this.V)!=null&&t.setContent(""),this.enable(!1)}; g.R.CM=function(y){g.fB.prototype.CM.call(this,y);this.C.setAudioTrack(this.tracks[y]);this.OS.C$()}; g.R.FX=function(y){return y.toString()}; g.R.HA=function(y){this.C.B("html5_enable_new_audio_settings_menu")?this.V&&(y?this.V.NK(this):this.V.oi(this)):g.fB.prototype.HA.call(this,y)}; g.R.onClick=function(){this.C.logClick(this.element)};g.N(KDz,g.aX);g.R=KDz.prototype;g.R.AV=function(){this.C.AV()}; g.R.open=function(){this.aR.G$()>0&&g.wm(this.OS,this.aR)}; g.R.MD=function(){this.aR.G$()>0&&this.C.getPresentingPlayerType()!==2&&this.C.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.R.MC=function(y){y.defaultPrevented||(this.open(),y.preventDefault())}; g.R.NK=function(y){this.aR.NK(y)}; g.R.oi=function(y){this.aR.oi(y)};g.N(rC,zq); rC.prototype.MD=function(){var y=this.C.getPresentingPlayerType();if(y!==2&&y!==3&&g.Y6(this.C))this.V||(this.OS.NK(this),this.V=!0,this.K.push(this.N(this.C,"videodatachange",this.MD)),this.K.push(this.N(this.C,"videoplayerreset",this.MD)),this.K.push(this.N(this.C,"onPlaylistUpdate",this.MD)),this.K.push(this.N(this.C,"autonavchange",this.Y)),y=this.C.getVideoData(),this.Y(y.autonavState),this.C.logVisibility(this.element,this.V));else if(this.V){this.OS.oi(this);this.V=!1;y=g.p(this.K);for(var t= y.next();!t.done;t=y.next())this.Dh(t.value)}}; rC.prototype.Y=function(y){O2(this,y!==1)}; rC.prototype.onSelect=function(y){this.C.Ck(y?2:1);this.V&&(this.C.logVisibility(this.element,this.V),this.C.logClick(this.element))}; rC.prototype.I5=function(){this.V&&this.OS.oi(this);zq.prototype.I5.call(this)};g.N(IUn,g.aX);IUn.prototype.onClick=function(y){y.preventDefault();var t,a;(t=g.ff(this.C))==null||(a=t.QR())==null||a.LJ();var r,E;(r=g.ff(this.C))==null||(E=r.cS())==null||E.rV(y.target)};g.N(To1,g.fB);g.R=To1.prototype; g.R.MD=function(){var y=this.C.getPresentingPlayerType();if(y!==2&&y!==3){this.AF=this.C.VB();var t=this.C.getAvailableQualityLevels();if(this.V){this.K={};y=g.Pq(this.C,"getAvailableQualityData",[]);y=g.p(y);for(var a=y.next();!a.done;a=y.next())a=a.value,this.K[a.qualityLabel]=a;y=Object.keys(this.K);t[t.length-1]==="auto"&&y.push("auto");this.Vv=new Set(t)}else if(this.Y){a=g.Pq(this.C,"getAvailableQualityData",[]);y=[];a=g.p(a);for(var r=a.next();!r.done;r=a.next())r=r.value,this.J[r.quality]= r,r.quality&&y.push(r.quality);t[t.length-1]==="auto"&&y.push("auto")}else y=t;g.st7(this.C)&&this.C.bT()&&y.unshift("missing-qualities");t=this.C.app.le();a=t.getVideoData();if(!a.K||!a.K.video||a.K.video.qualityOrdinal<1080||a.Hq)t=!1;else{r=/^qsa/.test(a.clientPlaybackNonce);var E="r";a.K.id.indexOf(";")>=0&&(r=/^[a-p]/.test(a.clientPlaybackNonce),E="x");r?(t.H4("iqss",{trigger:E},!0),t=!0):t=!1}t&&y.unshift("inline-survey");this.nL(y);t=this.C.getVideoData().cotn?!0:!1;a=this.Z.z5();a=!g.xp(this.C.G())|| !(t===void 0?0:t)||!(a===void 0||a);t=this.aR;a=a===void 0?!1:a;t.OD&&g.Uz(t.K1("ytp-panel-footer"),"ytp-panel-hide-footer",a===void 0?!1:a);if(y.length){this.pY();this.enable(!0);return}}this.enable(!1)}; g.R.pY=function(){if(this.V){var y=this.C.getPreferredQuality();this.Vv.has(y)&&(this.D=this.C.getPlaybackQuality(),this.W=this.C.getPlaybackQualityLabel(),y==="auto"?(this.uq(y),this.setContent(this.Ve(y))):this.uq(this.W))}else y=this.C.getPreferredQuality(),this.options[y]&&(this.D=this.C.getPlaybackQuality(),this.uq(y),y==="auto"&&this.setContent(this.Ve(y)))}; g.R.CM=function(y){if(y!=="missing-qualities"){g.fB.prototype.CM.call(this,y);var t=this.V?this.K[y]:this.J[y];var a=t==null?void 0:t.quality,r=t==null?void 0:t.formatId,E=t==null?void 0:t.paygatedQualityDetails;t=E==null?void 0:E.endpoint;if(E){var h;E=(h=this.options[y])==null?void 0:h.element;this.C.logClick(E)}if(this.V){var F,x;if((F=g.P(t,g.YnF))==null?0:(x=F.popup)==null?0:x.notificationActionRenderer)this.C.W4("innertubeCommand",t);else if(t){this.C.W4("innertubeCommand",t);return}r?this.C.setPlaybackQuality(a, r):this.C.setPlaybackQuality(a)}else{if(this.Y){var U,C;if((U=g.P(t,g.YnF))==null?0:(C=U.popup)==null?0:C.notificationActionRenderer)this.C.W4("innertubeCommand",t);else if(t){this.C.W4("innertubeCommand",t);return}}this.C.setPlaybackQuality(y)}this.OS.LJ();this.MD()}}; g.R.open=function(){for(var y=g.p(Object.values(this.options)),t=y.next();!t.done;t=y.next()){t=t.value;var a=void 0;this.C.hasVe((a=t)==null?void 0:a.element)&&(a=void 0,this.C.logVisibility((a=t)==null?void 0:a.element,!0))}g.fB.prototype.open.call(this);this.C.logClick(this.element)}; g.R.ID=function(y,t,a){var r=this;if(y==="missing-qualities")return new g.aX({U:"a",mX:["ytp-menuitem"],T:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.C.G().hF,tabindex:"0",role:"menuitemradio"},S:[{U:"div",mX:["ytp-menuitem-label"],er:"{{label}}"}]},t,this.Ve(y));if(y!=="inline-survey"){var E,h=(E=this.V?this.K[y]:this.J[y])==null?void 0:E.paygatedQualityDetails;E=h==null?void 0:h.veType;h=h==null?void 0:h.trackingParams;t=g.fB.prototype.ID.call(this,y,t,a);h?(this.C.createServerVe(t.element, this,!0),this.C.setTrackingParams(t.element,h)):E&&this.C.createClientVe(t.element,this,E,!0);return t}y=[{U:"span",er:"\u00bfSe ve bien?"}];a=g.p([!0,!1]);h=a.next();for(E={};!h.done;E={ZG:void 0},h=a.next())E.ZG=h.value,h=new g.q({U:"span",X:"ytp-menuitem-inline-survey-response",S:[E.ZG?GcV():it7()],T:{tabindex:"0",role:"button"}}),h.listen("click",function(F){return function(){var x=r.C.app.le();x.H4("iqsr",{tu:F.ZG});x.getVideoData().Hq=!0;r.OS.LJ();r.MD()}}(E)),y.push(h); return new g.aX({U:"div",X:"ytp-menuitem",T:{"aria-disabled":"true"},S:[{U:"div",mX:["ytp-menuitem-label"],S:y}]},t)}; g.R.Ve=function(y,t){t=t===void 0?!1:t;if(y==="missing-qualities")return{U:"div",er:"\u00bfFaltan opciones?"};if(y==="inline-survey")return"";var a=this.Y||this.V?[ye1(this,y,t,!1)]:[Zmb(this,y)];var r=this.C.getPreferredQuality();t||r!=="auto"||y!=="auto"||(a.push(" "),this.V?a.push(ye1(this,this.W,t,!0,["ytp-menu-label-secondary"])):this.Y?a.push(ye1(this,this.D,t,!0,["ytp-menu-label-secondary"])):a.push(Zmb(this,this.D,["ytp-menu-label-secondary"])));return{U:"div",S:a}};g.N(EG,SA);EG.prototype.D=function(){SA.prototype.D.call(this);this.Z&&tJd(this)}; EG.prototype.DE=function(){this.AF()}; EG.prototype.o5=function(){this.C.setPlaybackRate(this.V,!0)}; EG.prototype.J=function(y){SA.prototype.J.call(this,y);this.AF();tJd(this);y.preventDefault()};g.N(hi,g.q);g.R=hi.prototype;g.R.init=function(){this.xv(this.V);this.updateValue("minvalue",this.K);this.updateValue("maxvalue",this.Y)}; g.R.Dm=function(y){if(!y.defaultPrevented){switch(y.keyCode){case 37:case 40:var t=-this.W;break;case 39:case 38:t=this.W;break;default:return}this.xv(this.V+t);y.preventDefault()}}; g.R.dM=function(y){var t=this.V;t+=(y.deltaX||-y.deltaY)<0?-this.Z:this.Z;this.xv(t);y.preventDefault()}; g.R.gM=function(y){y=(y-g.CQ(this.D).x)/this.AF*this.range+this.K;this.xv(y)}; g.R.xv=function(y,t){t=t===void 0?"":t;y=g.tE(y,this.K,this.Y);t===""&&(t=y.toString());this.updateValue("valuenow",y);this.updateValue("valuetext",t);this.Vv.style.left=(y-this.K)/this.range*(this.AF-this.d0)+"px";this.V=y}; g.R.focus=function(){this.L1.focus()};g.N(Fy,hi);Fy.prototype.o5=function(){this.C.setPlaybackRate(this.V,!0)}; Fy.prototype.xv=function(y){hi.prototype.xv.call(this,y,red(this,y).toString());this.L&&(a2u(this),this.DE())}; Fy.prototype.updateValues=function(){var y=this.C.getPlaybackRate();red(this,this.V)!==y&&(this.xv(y),a2u(this))};g.N(EVN,g.Ui);EVN.prototype.focus=function(){this.V.focus()};g.N(hN7,z2);g.N(Ae7,g.fB);g.R=Ae7.prototype;g.R.onVideoDataChange=function(y){y==="dataloaded"&&(y=this.C.getAvailablePlaybackRates(),g.LJ(this.wv,y)||(this.wv=y,this.qq.dispose(),this.qq=new EG(this.C)),this.kG())}; g.R.Ve=function(y){return y==="1"?"Normal":y.toLocaleString()}; g.R.kG=function(){var y,t=(y=this.C.getVideoData())==null?void 0:y.NP();y=this.C.getPresentingPlayerType(t);this.enable(y!==2&&y!==3);$1V(this)}; g.R.nL=function(y){g.fB.prototype.nL.call(this,y);this.qq&&this.qq.K.focus()}; g.R.HA=function(y){g.fB.prototype.HA.call(this,y);y?(this.D=this.N(this.C,"onPlaybackRateChange",this.onPlaybackRateChange),$1V(this),x1y(this,this.C.getPlaybackRate()),this.C.B("enable_web_premium_varispeed_upsell")&&(this.C.logVisibility(this.element,!0),this.hw&&this.C.logVisibility(this.u8.element,!0))):(this.Dh(this.D),this.D=null)}; g.R.onPlaybackRateChange=function(y){var t=this.C.getPlaybackRate();!this.K&&this.wv.includes(t)||svu(this,t);x1y(this,y)}; g.R.ID=function(y,t,a){return y===this.V&&U1H(this.C)?g.fB.prototype.ID.call(this,y,t,a,{U:"div",X:"ytp-speed-slider-menu-footer",S:[this.qq]}):y===this.hw&&FgN(this.C,this.iD)?this.KV(y,t,a):g.fB.prototype.ID.call(this,y,t,a)}; g.R.KV=function(y,t,a){var r=this;t=new g.aX({U:"div",mX:["ytp-menuitem"],T:{tabindex:"0",role:"menuitemradio","aria-checked":a?"true":"false"},S:[{U:"div",mX:["ytp-menuitem-label"],S:[{U:"div",mX:["ytp-menuitem-container-with-badge"],S:[{U:"div",er:"{{label}}"},this.u8]}]}]},t,this.Ve(y));t.listen("click",function(){r.JL(y)}); return t}; g.R.CM=function(y){g.fB.prototype.CM.call(this,y);y===this.hw?(this.C.logClick(this.u8.element),this.C.W4("innertubeCommand",this.iD)):y===this.V?this.C.setPlaybackRate(this.Y,!0):this.C.setPlaybackRate(Number(y),!0);(!U1H(this.C)||y!==this.V&&y!==this.hw)&&this.OS.C$()}; g.R.JL=function(y){var t=y===this.V;this.K=!1;t&&Ai(this.C)&&!U1H(this.C)?(y=new hN7(this.C),g.wm(this.OS,y)):g.fB.prototype.JL.call(this,y)};g.N(zNN,g.Ok);g.R=zNN.prototype;g.R.kG=function(){var y,t=(y=this.C.getVideoData())==null?void 0:y.NP();y=this.C.getPresentingPlayerType(t);if(y===2||y===3)g.LB(this);else{g.LB(this);y=this.wv.map(CZb);this.hw&&y.push(this.hw);this.XC=CZb(this.C.getPlaybackRate());for(t=0;t0&&g.M7.prototype.rV.call(this,y)}; g.R.LJ=function(){this.Zj?this.Zj=!1:g.M7.prototype.LJ.call(this)}; g.R.show=function(){g.M7.prototype.show.call(this);g.Al(this.C.getRootNode(),"ytp-settings-shown")}; g.R.hide=function(){g.M7.prototype.hide.call(this);g.sz(this.C.getRootNode(),"ytp-settings-shown")}; g.R.Ii=function(y){this.C.logVisibility(this.element,y);this.C.publish("settingsMenuVisibilityChanged",y)}; g.R.AV=function(){this.C.AV()};g.N(Wgu,g.q);g.R=Wgu.prototype;g.R.onClick=function(){if(zg(this)&&(this.C.toggleSubtitles(),this.C.logClick(this.element),!this.isEnabled())){var y=!1,t=g.qe().o7(65);g.xp(this.C.G())&&t!=null&&(y=!t);y&&this.C.G().B("web_player_nitrate_promo_tooltip")&&this.C.publish("showpromotooltip",this.element)}}; g.R.WHX=function(y){var t,a;(t=g.ff(this.C))==null||(a=t.QR())==null||a.rV(y)}; g.R.isEnabled=function(){var y=this.C.getOption("captions","track");return!(!y||!y.displayName)}; g.R.kG=function(){var y=zg(this),t=300;this.C.G().W&&(t=480);this.C.B("delhi_modern_web_player_icons")&&this.updateValue("icon",f22(this));if(this.C.G().J){this.updateValue("title",g.V$(this.C,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.V$(this.C,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var a=y}else{if(y)(a=this.K1("ytp-subtitles-button-icon"))==null||a.setAttribute("fill-opacity","1"),this.C.G().B("player_tooltip_data_title_killswitch")?this.updateValue("title", g.V$(this.C,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.V$(this.C,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.C.B("delhi_modern_web_player_icons")){var r;(r=this.K1("ytp-subtitles-button-icon"))==null||r.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var E;(E=this.K1("ytp-subtitles-button-icon"))==null||E.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"})}a=this.C.B("player_disable_caption_button_if_captions_not_available")&&this.C.B("delhi_modern_web_player")?y:!0}this.tooltip.jJ();a=a&&this.C.ZE().getPlayerSize().width>=t;this.lY(a);this.C.logVisibility(this.element,a);y?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.R.Au=function(y){g.q.prototype.Au.call(this,y)};g.N(g.OG,g.q);g.R=g.OG.prototype;g.R.canShowCountdown=function(){return!Mw(this)&&!LC(this)}; g.R.QD=function(){var y=this.api.ZE().getPlayerSize().width,t=this.AF;this.api.G().W&&(t=400);t=y>=t&&(!LC(this)||!g.D(this.api.getPlayerStateObject(),64));this.lY(t);g.Uz(this.element,"ytp-time-display-allow-autohide",t&&y<400);y=this.api.getProgressState();if(t){var a=this.api.getPresentingPlayerType();t=this.api.getCurrentTime(a,!1);this.K&&(t-=y.airingStart);Mw(this)&&(t-=this.DA.startTimeMs/1E3);this.canShowCountdown()&&this.Y&&(t-=this.api.getDuration(a,!1));var r=g.kZ(t);this.D!==r&&(this.updateValue("currenttime", r),this.D=r);a=Mw(this)?(this.DA.endTimeMs-this.DA.startTimeMs)/1E3:this.api.getDuration(a,!1);r=g.kZ(a);this.L!==r&&(this.updateValue("duration",r),this.L=r);t=g.ts("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.kZ(t,!0),DURATION:g.kZ(a,!0)});this.updateValue("timeDisplayAriaLabel",t)}jv7(this,y.isAtLiveHead);S8H(this,this.api.getLoopRange())}; g.R.onLoopRangeChange=function(y){var t=this.DA!==y;this.DA=y;t&&(this.QD(),Qv1(this))}; g.R.nTm=function(){this.api.setLoopRange(null)}; g.R.DPE=function(){this.Y=!this.Y;this.QD()}; g.R.onVideoDataChange=function(y,t,a){this.updateVideoData((this.api.G().B("enable_topsoil_wta_for_halftime")||this.api.G().B("enable_topsoil_wta_for_halftime_live_infra"))&&a===2?this.api.getVideoData(1):t);this.QD();Qv1(this)}; g.R.updateVideoData=function(y){this.j6=y.isLivePlayback&&!y.Ui;this.K=$6(y);this.isPremiere=y.isPremiere;var t,a,r;this.liveIndicatorText=(y=(t=y.getWatchNextResponse())==null?void 0:(a=t.playerOverlays)==null?void 0:(r=a.playerOverlayRenderer)==null?void 0:r.liveIndicatorText)?FQ(y):null;g.Uz(this.element,"ytp-live",LC(this));this.api.B("delhi_modern_web_player")&&this.K1("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.R.onClick=function(y){y.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.R.I5=function(){this.V&&this.V();g.q.prototype.I5.call(this)};g.N(eN7,g.q);g.R=eN7.prototype;g.R.wc=function(){l22(this)}; g.R.AuX=function(y){vVu(this,y);this.Z&&l22(this)}; g.R.Uv=function(y){if(!y.defaultPrevented){var t=y.keyCode,a=null;t===37?a=this.volume-5:t===39?a=this.volume+5:t===36?a=0:t===35&&(a=100);a!==null&&(a=g.tE(a,0,100),a===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(a)),y.preventDefault())}}; g.R.FQ=function(y){var t=y.deltaX||-y.deltaY;y.deltaMode?this.api.setVolume(this.volume+(t<0?-10:10)):this.api.setVolume(this.volume+g.tE(t/10,-10,10));y.preventDefault();var a,r;((a=this.api.G())==null?0:(r=a.getWebPlayerContextConfig())==null?0:r.enableFullscreenComponentsFeature)&&y.stopPropagation()}; g.R.kRX=function(){wC(this,this.V,!0,this.K,this.api.Qb());this.AF=this.volume;this.api.isMuted()&&this.api.unMute()}; g.R.Q8=function(y){var t=this.Y?78:52,a=this.Y?18:12;y-=g.CQ(this.W).x;a=g.tE((y-a/2)/(t-a),0,1);this.Z&&(a=g.tE(y/t,0,1));t=a;t=this.api.B("web_player_non_linear_volume_controls")?t<=.25?t/.25*.1:.1+(t-.25)/.75*.9:t;this.api.setVolume(t*100)}; g.R.Mir=function(){wC(this,this.V,!1,this.K,this.api.Qb());this.volume===0&&(this.api.mute(),this.api.setVolume(this.AF))}; g.R.onVolumeChange=function(y){pn7(this,y.volume,y.muted)}; g.R.hA=function(){wC(this,this.V,this.isDragging,this.K,this.api.Qb())}; g.R.I5=function(){g.q.prototype.I5.call(this);g.sz(this.J,"ytp-volume-slider-active")};g.N(Rj,g.q); Rj.prototype.onVideoDataChange=function(){var y=this.api.G();this.Gl();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).Zh;this.lY(this.visible);this.api.logVisibility(this.element,this.visible&&this.hF);if(this.visible){var t=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",t)}y.Y&&(this.V&&(this.Dh(this.V),this.V=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Al(this.element,"no-link")); t=this.api.G();y=this.api.getVideoData();var a="";t.Y||(t=g.rY(t),t.indexOf("www.")===0&&(t=t.substring(4)),a=g.Uf(y)?"Mirar en YouTube Music":t==="youtube.com"?"Mirar en YouTube":g.ts("Mirar en $WEBSITE",{WEBSITE:t}));this.api.B("player_tooltip_data_title_killswitch")?this.updateValue("title",a):this.updateValue("tooltip-title",a)}; Rj.prototype.onClick=function(y){this.api.B("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var t=this.api.G(),a=this.api.getVideoUrl(!g.Wm(y),!1,!0,!0);if(g.bc(t)){var r={};g.bc(t)&&g.Pq(this.api,"addEmbedsConversionTrackingParams",[r]);a=g.lJ(a,r)}g.MU(a,this.api,y);this.api.B("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Rj.prototype.Gl=function(){var y={U:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{U:"path",oR:!0,X:"ytp-svg-fill",T:{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 "}}]}, t=28666,a=this.api.getVideoData();this.api.isEmbedsShortsMode()?y={U:"svg",T:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},S:[{U:"path",T:{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.Uf(a)&&(y={U:"svg",T:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},S:[{U:"path",T:{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"}},{U:"path",T:{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"}},{U:"path",T:{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"}},{U:"path",T:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{U:"path",T:{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"}},{U:"path",T:{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"}},{U:"path",T:{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"}},{U:"path",T:{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"}},{U:"path",T:{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"}},{U:"path",T:{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"}},{U:"path",T:{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"}},{U:"path",T:{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"}}]},t=216163);g.Uf(a)?g.Al(this.element,"ytp-youtube-music-button"):g.sz(this.element,"ytp-youtube-music-button");y.T=Object.assign({},y.T,{"aria-hidden":"true"});this.updateValue("logoSvg",y);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,t,!0)}; Rj.prototype.Au=function(y){g.q.prototype.Au.call(this,y);this.api.logVisibility(this.element,this.visible&&y)};g.N(nVx,g.Ci);g.R=nVx.prototype;g.R.onProgress=function(){if(this.C.B("web_player_max_seekable_on_ended")||!g.D(this.C.getPlayerStateObject(),2))vX(this.kT),this.progressBar.QD(),this.XL.QD()}; g.R.Od=function(){this.qb();if(vX(this.kT))this.progressBar.EV();else this.onProgress()}; g.R.Ld=function(){this.onProgress();this.Z.start()}; g.R.qb=function(){var y;if(y=!this.C.G().K){y=this.progressBar;var t=2*g.Ah()*y.J,a=y.Y;y=(a.V-a.K)*1E3/y.api.getPlaybackRate()/t<300}y=y&&this.C.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;t=!y;vX(this.kT)&&(y=t=!1);t?this.Vv||(this.Vv=this.N(this.C,"progresssync",this.onProgress)):this.Vv&&(this.Dh(this.Vv),this.Vv=null);y?this.Z.isActive()||this.Z.start():this.Z.stop()}; g.R.Gl=function(){var y=this.C.KA(),t=this.C.ZE().getPlayerSize(),a=this.C.ZE().Wr,r=Jez(this),E=oVu(this),h=Math.max(t.width-r*2,100);if(this.T7!==t.width||this.R5!==y||this.C.B("web_player_rtr_ctrls")&&this.z_!==a)this.T7=t.width,this.R5=y,this.z_=a,this.V.element.style.width=E+"px",this.V.element.style.left=r+"px",g.qcy(this.progressBar,r,E,y),this.C.q7().WC=E;a=this.Y;h=Math.min(570*(y?1.5:1),h);y=Math.min(413*(y?1.5:1),Math.round((t.height-HOx(this))*.82));a.maxWidth=h;a.maxHeight=y;a.Ig();this.qb(); this.Az&&SGz(this.r0,t.height)}; g.R.onVideoDataChange=function(){var y=this.C.getVideoData();this.Ff.style.background=y.Zh?y.BK:"";this.AF&&Vod(this.AF,y.showSeekingControls);this.hF&&Vod(this.hF,y.showSeekingControls)}; g.R.YE=function(){return this.V.element};g.N(Brb,CB);g.R=Brb.prototype;g.R.Xs=function(y){y.target===this.dismissButton.element?this.V&&H9V(z9(),this.V):(this.onClickCommand&&(this.qx(!1),this.C.W4("innertubeCommand",this.onClickCommand)),this.lA())}; g.R.lA=function(){this.enabled=!1;this.Z.hide()}; g.R.onVideoDataChange=function(y,t){y==="dataloaded"&&ceN(this);y=[];var a,r,E,h;if(t=(h=g.P((a=t.getWatchNextResponse())==null?void 0:(r=a.playerOverlays)==null?void 0:(E=r.playerOverlayRenderer)==null?void 0:E.suggestedActionsRenderer,Mcq))==null?void 0:h.suggestedActions)for(a=g.p(t),r=a.next();!r.done;r=a.next())(r=g.P(r.value,wd9))&&g.P(r.trigger,Lic)&&y.push(r);if(y.length!==0){a=[];y=g.p(y);for(r=y.next();!r.done;r=y.next())if(r=r.value,E=g.P(r.trigger,Lic)){h=(h=r.title)?g.Oi(h):"View Chapters"; t=E.timeRangeStartMillis;var F=E.timeRangeEndMillis;E=E.onlyTriggersOnPlayerPause;r.tapCommand&&(t!=null&&F!=null&&a.push(new g.BK(t,F,{priority:9,namespace:"suggested_action_button_visible",id:h})),t!=null&&F!=null||E)&&(this.suggestedActions[h]=r)}this.C.Xm(a)}}; g.R.zp=function(){return this.enabled}; g.R.Ii=function(){if(this.enabled){if(this.yv.start(),!this.Y&&this.V&&(Ly(z9(),this.V),this.Y=!0),this.text){var y,t=(y=this.suggestedActions[this.text])==null?void 0:y.rendererContext;if(y=g.P(t,Kds)){var a;if(y=(a=y.loggingDirectives)==null?void 0:a.trackingParams)this.C.setTrackingParams(this.badge.element,y),this.K=!0}}}else $5(this),this.C.setTrackingParams(this.badge.element,null),this.K=!1;this.nx()}; g.R.onStateChange=function(y){for(var t=g.p(Object.keys(this.suggestedActions)),a=t.next();!a.done;a=t.next()){a=a.value;var r=void 0;if((r=g.P(this.suggestedActions[a].trigger,Lic))==null?0:r.onlyTriggersOnPlayerPause){y.state.isPaused()?(bOV(this,a),this.enabled=!0,this.Ii()):y.oldState.isPaused()&&(this.enabled=!1,this.Ii());break}}}; g.R.I5=function(){ceN(this);CB.prototype.I5.call(this)};var Wp={},dC=(Wp.CHANNEL_NAME="ytp-title-channel-name",Wp.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Wp.LINK="ytp-title-link",Wp.SESSIONLINK="yt-uix-sessionlink",Wp.SUBTEXT="ytp-title-subtext",Wp.TEXT="ytp-title-text",Wp.TITLE="ytp-title",Wp);g.N(Xy,g.q);Xy.prototype.onClick=function(y){this.api.logClick(this.element);var t=this.api.G(),a=this.api.getVideoUrl(!g.Wm(y),!1,!0);g.bc(t)&&(t={},g.Pq(this.api,"addEmbedsConversionTrackingParams",[t]),a=g.lJ(a,t));g.MU(a,this.api,y)}; Xy.prototype.kG=function(){var y=this.api.getVideoData(),t=this.api.G();this.updateValue("title",y.title);var a={U:"a",X:dC.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},er:"{{channelName}}"};this.api.G().Y?a={U:"span",X:dC.CHANNEL_NAME,er:"{{channelName}}",T:{tabIndex:"{{channelSubtextFocusable}}"}}:y.fv&&(a={U:"span",X:dC.SUBTEXT,er:y.fv});this.updateValue("subtextElement",a);q8V(this);this.api.getPresentingPlayerType()===2&&(a=this.api.getVideoData(),a.videoId&&a.isListed&&a.author&& a.yv&&a.profilePicture?(this.updateValue("channelLink",a.yv),this.updateValue("channelName",a.author),this.updateValue("channelTitleFocusable","0")):q8V(this));a=t.externalFullscreen||!this.api.isFullscreen()&&t.Aw;g.Uz(this.link,dC.FULLERSCREEN_LINK,a);t.Vv||!y.videoId||a||y.Zh||t.Y?this.V&&(this.updateValue("url",null),this.Dh(this.V),this.V=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.V||(this.V=this.N(this.link,"click",this.onClick)));t.Y&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.bc(t)?y.expandedTitle:y.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.N(g.kl,g.q);g.R=g.kl.prototype;g.R.setEnabled=function(y){if(this.type!=null)if(y)switch(this.type){case 3:case 2:fC(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.J=y}; g.R.IF=function(y,t,a,r,E,h,F,x){if(!this.DE||this.env.W){this.type===3&&this.EV();this.type!==1&&(g.hl(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.J&&this.fade.show(),this.K&&this.K.dispose(),(this.K=this.api.Un())&&this.K.subscribe("l",this.ZR,this));if(x){var U=g.LQ(this.bg).height||141;this.d0.style.bottom=U+2+"px"}else this.d0.style.display="none";this.env.B("delhi_modern_web_player")?(this.update({pillTimeStamp:a,pillTitle:h!=null?h:"",eduText:x!=null?x:""}),g.Al(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:a,title:h!=null?h:"",eduText:x!=null?x:""}),g.Uz(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!h));this.api.isInline()&&g.Al(this.bottomText,"ytp-modern-tooltip-text");g.Uz(this.element,"ytp-text-detail",!!r);a=-1;this.K&&(a=T5(this.K,243*this.scale),this.env.B("web_l3_storyboard")&&this.K.levels.length===4&&(a=this.K.levels.length-1),a=QNV(this.K,a,t));iOz(this,a);if(F)switch(t=g.LQ(this.element).width,F){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=t+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=t/2+"px",this.title.style.textAlign="center"}gVb(this,!!r,y,E)}}; g.R.Rz=function(){this.type===1&&this.EV()}; g.R.gk=function(y,t){if(this.type)if(this.type===3)this.EV();else return;Y8u(this,y,3,t)}; g.R.jJ=function(){this.V&&!this.W&&(this.env.B("player_tooltip_data_title_killswitch")?this.V.hasAttribute("title")&&(this.Y=this.V.getAttribute("title")||"",this.V.removeAttribute("title"),this.J&&fC(this)):this.V.hasAttribute("data-tooltip-title")&&(this.Y=this.V.getAttribute("data-tooltip-title")||"",this.V.removeAttribute("data-tooltip-title"),this.J&&fC(this)))}; g.R.ZR=function(y,t){y<=this.D&&this.D<=t&&(y=this.D,this.D=NaN,iOz(this,y))}; g.R.edX=function(){jN2(this.K,this.D,243*this.scale)}; g.R.EV=function(){switch(this.type){case 2:var y=this.V;y.removeEventListener("mouseout",this.Z);y.addEventListener("mouseover",this.L);y.removeEventListener("blur",this.Z);y.addEventListener("focus",this.L);Kg7(this);break;case 3:Kg7(this);break;case 1:this.K&&(this.K.unsubscribe("l",this.ZR,this),this.K=null),this.api.removeEventListener("videoready",this.AF),this.Vv.stop()}this.type=null;this.J&&this.fade.hide()}; g.R.pD=function(){if(this.V)for(var y=0;y=0;t--)if(this.wG[t]===y){this.wG.splice(t,1);break}Q0(this.kT,64,this.wG.length>0)}; g.R.W9=function(){this.api.He()&&this.api.mK();return!!this.B_||aC2(this)||g.bC.prototype.W9.call(this)}; g.R.qY=function(){var y=!this.W9(),t=y&&this.api.He()&&!g.D(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().Zh&&!this.api.G().Y&&!this.api.isEmbedsShortsMode(),a=this.f2&&g.Hq(this.api)&&g.D(this.api.getPlayerStateObject(),128);y||a?(this.xr.show(),this.dR.show()):(this.xr.hide(),this.dR.hide(),this.api.pD(this.Yj.element));t?this.Jm.rV():this.Jm.LJ();this.qh&&m1y(this.qh,this.H_r||!y);this.api.B("web_player_hide_overflow_button_if_empty_menu")&&rJN(this);g.bC.prototype.qY.call(this)}; g.R.R6=function(y,t,a,r,E){y.style.left="";y.style.top="";y.style.bottom="";var h=g.LQ(y),F=r||this.qh&&g.Vu(this.qh.YE(),t),x=r=null;a!=null&&F||(r=g.LQ(t),x=g.zI(t,this.api.getRootNode()),a==null&&(a=x.x+r.width/2));a-=h.width/2;F?(t=this.qh,r=Jez(t),x=oVu(t),F=this.api.ZE().getPlayerSize().height,a=g.tE(a,r,r+x-h.width),h=F-HOx(t)-h.height):g.Vu(this.Yj.element,t)?(t=this.api.ZE().getPlayerSize().width,a=g.tE(a,12,t-h.width-12),h=this.KA()?this.qG:this.y4,this.api.G().playerStyle==="gvn"&&(h+= 20),this.f2&&(h-=this.KA()?26:18)):(t=this.api.ZE().getPlayerSize(),a=g.tE(a,12,t.width-h.width-12),h=x.y>(t.height-r.height)/2?x.y-h.height-12:x.y+r.height+12);y.style.top=h+(E||0)+"px";y.style.left=a+"px"}; g.R.Od=function(y){y&&(this.api.pD(this.Yj.element),this.qh&&this.api.pD(this.qh.YE()));this.QE&&(g.Uz(this.contextMenu.element,"ytp-autohide",y),g.Uz(this.contextMenu.element,"ytp-autohide-active",!0));g.bC.prototype.Od.call(this,y)}; g.R.sy=function(){g.bC.prototype.sy.call(this);this.QE&&(g.Uz(this.contextMenu.element,"ytp-autohide-active",!1),this.QE&&(this.contextMenu.hide(),this.VR&&this.VR.hide()))}; g.R.Vm=function(y,t){var a=this.api.ZE().getPlayerSize();a=new g.yj(0,0,a.width,a.height);if(y||!vX(this.kT)&&!this.W9()){if(this.api.G().jF||t)y=this.KA()?this.qG:this.y4,a.top+=y,a.height-=y;this.qh&&(a.height-=HOx(this.qh))}return a}; g.R.wc=function(y){var t=this.api.getRootNode();y?t.parentElement?(t.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.G().externalFullscreen||(t.parentElement.insertBefore(this.VU.element,t),t.parentElement.insertBefore(this.H2.element,t.nextSibling))):g.pK(Error("Player not in DOM.")):(t.setAttribute("aria-label","Reproductor de video de YouTube"),this.VU.detach(),this.H2.detach());this.Gl();this.XW()}; g.R.KA=function(){if(this.api.B("web_player_use_screen_width_for_big_mode")){var y;return this.api.ZE().getPlayerSize().width>=((y=g.Gw(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?y:2E3)}y=this.api.G();return this.api.isFullscreen()&&!y.W||!1}; g.R.showControls=function(y){this.pV=!y;this.qY()}; g.R.Gl=function(){var y=this.KA();this.tooltip.scale=y?1.5:1;this.contextMenu&&g.Uz(this.contextMenu.element,"ytp-big-mode",y);this.qY();this.api.B("web_player_hide_overflow_button_if_empty_menu")||rJN(this);this.XW();var t=this.api.isEmbedsShortsMode();t&&y?(y=(this.api.ZE().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ry(this.Yj.element,"padding-left",y+"px"),g.ry(this.Yj.element,"padding-right",y+"px")):t&&(g.ry(this.Yj.element,"padding-left",""),g.ry(this.Yj.element,"padding-right", ""));g.bC.prototype.Gl.call(this)}; g.R.SV=function(){if(aC2(this)&&!g.Hq(this.api))return!1;var y=this.api.getVideoData();return!g.bc(this.api.G())||this.api.getPresentingPlayerType()===2||!this.Fi||((y=this.Fi||y.Fi)?(y=y.embedPreview)?(y=y.thumbnailPreviewRenderer,y=y.videoDetails&&g.P(y.videoDetails,LxH)||null):y=null:y=null,y&&y.collapsedRenderer&&y.expandedRenderer)?g.bC.prototype.SV.call(this):!1}; g.R.XW=function(){g.bC.prototype.XW.call(this);this.api.logVisibility(this.title.element,!!this.mP);this.T4&&this.T4.Au(!!this.mP);this.channelAvatar.Au(!!this.mP);this.overflowButton&&this.overflowButton.Au(this.b2()&&!!this.mP);this.shareButton&&this.shareButton.Au(!this.b2()&&!!this.mP);this.sN&&this.sN.Au(!this.b2()&&!!this.mP);this.searchButton&&this.searchButton.Au(!this.b2()&&!!this.mP);this.copyLinkButton&&this.copyLinkButton.Au(!this.b2()&&!!this.mP);if(!this.mP){this.api.pD(this.Yj.element); for(var y=0;y=0?this.V.playbackRate:1}catch(y){return 1}}; g.R.setPlaybackRate=function(y){this.getPlaybackRate()!==y&&(this.V.playbackRate=y);return y}; g.R.SP=function(){return this.V.loop}; g.R.setLoop=function(y){this.V.loop=y}; g.R.canPlayType=function(y,t){return this.V.canPlayType(y,t)}; g.R.isPaused=function(){return this.V.paused}; g.R.isSeeking=function(){return this.V.seeking}; g.R.isEnded=function(){return this.V.ended}; g.R.GD=function(){return this.V.muted}; g.R.aX=function(y){UD();this.V.muted=y}; g.R.bU=function(){var y=this.V.played||iH([],[]);return this.view?sm7(this,y):y}; g.R.FC=function(){try{var y=this.V.buffered}catch(t){}y=y||iH([],[]);return this.view?sm7(this,y):y}; g.R.pH=function(){var y=this.V.seekable||iH([],[]);return this.view?sm7(this,y):y}; g.R.u9=function(){var y=this.V;return y.getStartDate?y.getStartDate():null}; g.R.getCurrentTime=function(){if(this.view){var y=this.V.currentTime;y=this.view?y-this.view.start:y;return this.view.O2||!isFinite(this.view.end)?y:Math.min(y,this.view.end-this.view.start)}return this.V.currentTime}; g.R.setCurrentTime=function(y){this.V.currentTime=this.view?this.view?y+this.view.start:y:y}; g.R.getDuration=function(){return this.view?isFinite(this.view.end)&&!this.view.O2?this.view.end-this.view.start:this.V.duration-this.view.start:this.V.duration}; g.R.load=function(){var y=this.V.playbackRate;try{this.V.load()}catch(t){}this.V.playbackRate=y}; g.R.pause=function(){this.V.pause()}; g.R.play=function(){if(this.view&&this.Gn())try{this.V.currentTime=this.view.start}catch(t){}var y=this.V.play();if(!y||!y.then)return null;y.then(void 0,function(){}); return y}; g.R.xj=function(){return this.V.readyState}; g.R.Zp=function(){return this.V.networkState}; g.R.Jl=function(){return this.V.error?this.V.error.code:null}; g.R.xT=function(){return this.V.error?this.V.error.message:""}; g.R.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.V instanceof window.HTMLVideoElement&&this.V.getVideoPlaybackQuality)return this.V.getVideoPlaybackQuality();if(this.V){var y=this.V,t=y.webkitDroppedFrameCount;if(y=y.webkitDecodedFrameCount)return{droppedVideoFrames:t||0,totalVideoFrames:y}}return{}}; g.R.Tl=function(){try{var y=this.getSize(),t={vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Ki(this.bU(),",",3),vbu:Ki(this.FC()),vbs:Ki(this.pH()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.xj(),vns:""+this.Zp(),vec:""+this.Jl(),vemsg:this.xT(),vvol:""+this.getVolume(),vdom:""+ +this.S6(),vsrc:""+ +!!this.wH(),vw:""+y.width,vh:""+y.height};this.view&&(t.view=this.view.start+"-"+this.view.end);return t}catch(a){return{}}}; g.R.f_=function(){return!!this.V.webkitCurrentPlaybackTargetIsWireless}; g.R.Qn=function(){return!!this.V.webkitShowPlaybackTargetPicker()}; g.R.togglePictureInPicture=function(){var y=this.V,t=window.document;window.document.pictureInPictureEnabled?this.V!==t.pictureInPictureElement?y.requestPictureInPicture():t.exitPictureInPicture():$8()&&y.webkitSetPresentationMode(y.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.R.L2=function(){return UXF(this.V)}; g.R.getSize=function(){return g.LQ(this.V)}; g.R.setSize=function(y){g.Or(this.V,y)}; g.R.getVolume=function(){return this.V.volume}; g.R.setVolume=function(y){UD();this.V.volume=y}; g.R.addEventListener=function(y,t){this.Vv.listen(y,t,!1,this);this.So(y)}; g.R.removeEventListener=function(y,t){this.Vv.Dh(y,t,!1,this)}; g.R.dispatchEvent=function(y){if(this.J&&y.type==="pause")return!1;if(E$F){var t,a=((t=y.V)==null?void 0:t.timeStamp)||Infinity;t=a>performance.now()?a-Date.now()+performance.now():a;a=this.K||this.D;if((a==null?0:a.cG())||t<=((a==null?void 0:a.D)||0)){var r;this.kS("rms",{l:"mede",sr:(r=this.Om)==null?void 0:r.xn(),et:y.type});return!1}if(this.Vf)return this.kS("rms",{l:"medes",et:y.type}),a&&y.type==="seeking"&&(a.D=performance.now(),this.Vf=!1),!1}return this.Vv.dispatchEvent(y)}; g.R.So=function(y){this.Z[y]||(this.V.addEventListener(y,this.listener),this.Z[y]=this.listener)}; g.R.setAttribute=function(y,t){this.V.setAttribute(y,t)}; g.R.removeAttribute=function(y){this.V.removeAttribute(y)}; g.R.hasAttribute=function(y){return this.V.hasAttribute(y)}; g.R.O8=J1(52);g.R.Qy=J1(55);g.R.UP=J1(58);g.R.vA=J1(61);g.R.CN=function(){return fo(this.V)}; g.R.ov=function(y){g.Al(this.V,y)}; g.R.h5=function(y){return g.F5(this.V,y)}; g.R.S6=function(){return g.Vu(document.body,this.V)}; g.R.audioTracks=function(){var y=this.V;if("audioTracks"in y)return y.audioTracks}; g.R.eT=function(){this.d0=!1}; g.R.hd=function(){this.d0=!0;this.aX(!0)}; g.R.M4=function(){this.d0&&!this.GD()&&this.aX(!0)}; g.R.equals=function(y){return!!y&&y.YE()===this.YE()}; g.R.I5=function(){for(var y=g.p(Object.keys(this.Z)),t=y.next();!t.done;t=y.next())t=t.value,this.V.removeEventListener(t,this.Z[t]);this.L1&&this.removeEventListener("volumechange",this.M4);h3e&&xdb(this);wA.prototype.I5.call(this)}; g.R.cW=function(){return this.Jl()===4}; g.R.hasError=function(){return this.Jl()>0}; g.R.ZI=function(){switch(this.Jl()){case 2:return"progressive.net.retryexhausted";case 3:var y=this.xT();return(y==null?0:y.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.R.IL=function(y){this.V.disableRemotePlayback=y}; g.R.AY=function(){var y=this.pH();return y.length<1?NaN:y.end(y.length-1)}; g.R.l9=function(){return this.L}; g.R.activate=function(y){var t="";y&&(AJ1(this,y),t=y.Pb);if(!this.wH()||t)t&&this.wH()!==t&&(this.dD(t),delete this.K,this.J&&(this.J.reject(),delete this.J),!window.MediaSource&&window.ManagedMediaSource&&this.IL(!(y==null||!y.V))),y&&y.V||this.load(),this.L1||(this.addEventListener("volumechange",this.M4),this.L1=!0)}; g.R.PJ=function(){var y=this;!this.K&&sK()&&(this.J?this.J.then(function(){return void y.PJ()}):this.wH()||(this.K=this.xm()))}; g.R.JX=function(){this.K&&(this.K.dispose(),this.K=void 0)}; g.R.xm=function(y,t){if(this.K)if(E$F&&C8(this.K)&&!this.K.iA(y,t)){var a;this.kS("rms",{l:"megms",sr:(a=this.Om)==null?void 0:a.xn()});this.JX();this.stopVideo()}else return this.D=this.K,this.K=void 0,this.D;y=zOn(this);this.activate(y.Y);this.D=y;this.Vf=!1;return y}; g.R.Zd=function(y){this.K=y}; g.R.playVideo=function(){var y=this;this.isEnded()&&this.seekTo(0);!this.wH()&&this.L&&(g.pK(Error("playVideo without src")),this.dD(this.L.Pb),this.L.V||this.load());var t=this.play(),a;if((a=this.Om)==null||!LMn(a)){var r;pc&&(n3||0)>=7&&(!t||((r=this.Om)==null?0:r.B("mweb_ios_allow_playback_workaround_when_ready")))&&ZKF(this,function(){g.Nt(function(){FSu(y,y.getCurrentTime(),0)},500)})}return t}; g.R.kS=function(y,t,a){var r;((r=this.Om)==null?0:r.Bb())&&this.Om.H4(y,t,a===void 0?!1:a)}; g.R.jL=function(y){this.Om=y}; g.R.PK=function(){return tu(this.FC(),this.getCurrentTime())}; g.R.seekTo=function(y){this.xj()>0&&(pc&&n3<4&&(y=Math.max(.1,y)),this.setCurrentTime(y))}; g.R.BW=function(y){if(this.xj()===0||this.hasError())return!1;var t=this.getCurrentTime()>0;if(y>=0){var a=this.pH();if(a.length||!t)return TM(a,y)}return t}; g.R.TH=function(){if(!this.K&&this.D)if(this.D.J)try{var y;this.kS("rms",{l:"mer",sr:(y=this.Om)==null?void 0:y.xn(),rs:zy(this.D)});this.D.clear();this.Zd(this.D);this.D=void 0}catch(t){y=new g.RV("Error while clearing Media Source in MediaElement: "+t.name+", "+t.message),g.pK(y),this.stopVideo()}else this.stopVideo()}; g.R.stopVideo=function(){var y=this;if(!this.K){var t;(t=this.D)==null||L8(t);if(h3e){if(!this.J){var a=new M2;a.then(void 0,function(){}); this.J=a;FtU&&this.pause();g.Nt(function(){y.J===a&&(xdb(y),a.resolve())},200)}}else xdb(this)}}; g.R.aY=function(){var y=this.FC();return yX(y)&&this.getDuration()?GM(y,this.getCurrentTime()):0}; g.R.F2=function(){var y=this.FC();return yX(y)&&this.getDuration()?y.end(y.length-1):0}; g.R.uc=function(){var y=this.getDuration();return y===Infinity?1:y?this.aY()/y:0}; var h3e=!1,FtU=!1,E$F=!1;var So=[],$du=!1;g.N(QE,g.H);QE.prototype.W=function(){this.V!=null&&this.app.getVideoData()!==this.V&&FB(this.V)&&At7(this.app,this.V,void 0,void 0,this.Y)}; QE.prototype.J=function(){if(this.V!=null&&this.app.getVideoData()!==this.V&&this.K!=null&&this.D!=null&&this.L!=null&&FB(this.V)){var y=this.app.G().experiments.pJ().V.o7(l9);y=zUb(this.K,this.D,this.L,y);y==null?At7(this.app,this.V,void 0,void 0,this.Y):(this.K.H4("sgap",y),this.K.getVideoData().W&&this.K.uT(!1),this.app.G().B("html5_remove_loop_range_on_gapless_fallback")&&(pm(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}}; QE.prototype.Z=function(y){var t=this.app.le();if(t){var a=this.app.getCurrentTime();Math.abs(a-y.end/1E3)>5&&t.H4("glrs",{cmt:a});t.seekTo(0,{seekSource:58});t.H4("glrre",{cmt:a})}}; QE.prototype.I5=function(){this.V=null;g.H.prototype.I5.call(this)};g.N(g.vi,wA);g.R=g.vi.prototype;g.R.isView=function(){return!0}; g.R.Gn=function(){var y=this.mediaElement.getCurrentTime();if(y1;TM(y.Ro(),r-.01)&&!E&&(eo(this,4),a.isActive=!1,a.jM=a.jM||a.isActive,(this.L===1?this.V:this.K).H4("sbh",{}),t.isActive=!0,t.jM=t.jM||t.isActive,this.L!==0&&(this.V.getVideoData().Zq=!0));y=this.D.K;if(this.D.V.isActive&&y.isActive&&(eo(this,5),this.L!==0)){y=this.K.w_();a=this.V.w_(); this.V.H4("sbs",{citag:a==null?void 0:a.itag,nitag:y==null?void 0:y.itag});this.K.H4("gitags",{pitag:a==null?void 0:a.itag,citag:y==null?void 0:y.itag});var h;(h=this.K)==null||h.Ya()}}}; g.R.Eq=function(){this.XA()&&this.Rm("player-reload-after-handoff")}; g.R.Rm=function(y,t){t=t===void 0?{}:t;if(!this.Qv()&&this.status.status!==6){var a=this.status.status>=4&&y!=="player-reload-after-handoff";this.status={status:Infinity,error:y};if(this.V&&this.K){var r=this.K.getVideoData().clientPlaybackNonce;this.V.Aj(new g.rg("dai.transitionfailure",Object.assign(t,{cpn:r,transitionTimeMs:this.Ss,msg:y})));this.V.uT(a)}this.Bv.reject(y);this.dispose()}}; g.R.XA=function(){return this.status.status>=4&&this.status.status<6}; g.R.I5=function(){N3V(this);this.V.unsubscribe("newelementrequired",this.Eq,this);if(this.Y){var y=this.Y.K;this.Y.V.ER.unsubscribe("updateend",this.Ny,this);y.ER.unsubscribe("updateend",this.Ny,this)}g.H.prototype.I5.call(this)}; g.R.Nb=function(y){g.Og(y,128)&&this.Rm("player-error-event")};g.N(u9,g.H);u9.prototype.clearQueue=function(y,t){y=y===void 0?!1:y;t=t===void 0?!1:t;VE(this);this.D&&this.D.reject("Queue cleared");this.app.G().B("html5_gapless_fallback_on_qoe_restart_v2")||t&&this.K&&this.K.uT(!1);nC(this,y)}; u9.prototype.nA=function(){return!this.V}; u9.prototype.XA=function(){var y;return((y=this.Y)==null?void 0:y.XA())||!1}; u9.prototype.I5=function(){VE(this);nC(this);g.H.prototype.I5.call(this)};g.N(lCy,g.FM);g.R=lCy.prototype;g.R.getVisibilityState=function(y,t,a,r,E,h,F,x){return y?4:E&&rSb?7:tSu&&!(r_()||document.hasFocus&&document.hasFocus())||r_()?3:t?2:a?1:r?5:E&&!rSb?7:h?8:F?9:x?10:0}; g.R.Qm=function(y){this.fullscreen!==y&&(this.fullscreen=y,this.Ii())}; g.R.setMinimized=function(y){this.K!==y&&(this.K=y,this.Ii())}; g.R.setInline=function(y){this.inline!==y&&(this.inline=y,this.Ii())}; g.R.sX=function(y){this.pictureInPicture!==y&&(this.pictureInPicture=y,this.Ii())}; g.R.setSqueezeback=function(y){this.Y!==y&&(this.Y=y,this.Ii())}; g.R.pG=function(y){this.D!==y&&(this.D=y,this.Ii())}; g.R.f_=function(){return this.V}; g.R.Sd=function(){return this.fullscreen!==0}; g.R.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.R.P2=function(){return this.fullscreen}; g.R.isMinimized=function(){return this.K}; g.R.isInline=function(){return this.inline}; g.R.isBackground=function(){return r_()}; g.R.L$=function(){return this.pictureInPicture}; g.R.m4=function(){return!1}; g.R.Md=function(){return this.Y}; g.R.qC=function(){return this.D}; g.R.Ii=function(){this.publish("visibilitychange");var y=this.getVisibilityState(this.f_(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.L$(),this.m4(),this.Md(),this.qC());y!==this.J&&this.publish("visibilitystatechange");this.J=y}; g.R.I5=function(){ySb(this.L);g.FM.prototype.I5.call(this)};g.N(g.mV,g.H);g.R=g.mV.prototype;g.R.I5=function(){this.videoData=this.playerState=null;g.H.prototype.I5.call(this)}; g.R.addCueRange=function(){}; g.R.Yx=function(){}; g.R.mG=function(){}; g.R.Yu=function(){return!1}; g.R.dj=function(){return!1}; g.R.U8=function(){}; g.R.HI=function(){}; g.R.q_=function(){return[]}; g.R.AV=function(){}; g.R.fN=function(){}; g.R.Hr=function(){return 1}; g.R.getAudioTrack=function(){return this.getVideoData().ix}; g.R.lL=function(){return null}; g.R.getAvailableAudioTracks=function(){return[]}; g.R.VB=function(){return[]}; g.R.m3=function(){return[]}; g.R.Im=function(){return""}; g.R.Q2=function(){return[]}; g.R.pN=function(){}; g.R.cz=function(){return 0}; g.R.getCurrentTime=function(){return 0}; g.R.XG=function(){}; g.R.w_=function(){}; g.R.Tl=function(){return{}}; g.R.getDuration=function(){return 0}; g.R.Lx=function(){return 0}; g.R.Pj=function(){return 0}; g.R.bN=function(){return!1}; g.R.ZQ=function(){return 0}; g.R.aY=function(){return 0}; g.R.wq=function(){return null}; g.R.A_=function(){return 0}; g.R.SP=function(){return!1}; g.R.ih=function(){return 0}; g.R.uJ=function(){return null}; g.R.xm=function(){return null}; g.R.WO=function(){return 0}; g.R.Xy=function(){return 0}; g.R.UV=function(){return g.m(function(y){g.FU(y)})}; g.R.uU=J1(11);g.R.getPlaybackQuality=function(){return"auto"}; g.R.getPlaybackRate=function(){return 1}; g.R.getPlayerState=function(){this.playerState||(this.playerState=new g.PY);return this.playerState}; g.R.getPlayerType=function(){return 0}; g.R.getPlaylistSequenceForTime=function(){return null}; g.R.V2=function(){return function(){}}; g.R.YS=function(){return""}; g.R.getPreferredQuality=function(){return"unknown"}; g.R.No=function(){}; g.R.getProximaLatencyPreference=function(){return 0}; g.R.jT=function(){return Eu}; g.R.Un=function(){return null}; g.R.getStoryboardFormat=function(){return null}; g.R.getStreamTimeOffset=function(){return 0}; g.R.X0=function(){return 0}; g.R.fJ=function(){return 0}; g.R.OT=function(){return{us:[],zD:[],currentTime:0,pE:"",droppedVideoFrames:0,isGapless:!1,nA:!0,kZ:0,WW:0,Nv:0,R$:0,Gb:0,nR:[],k9:[],aj:null,uf:"0",po:null,UJ:"",totalVideoFrames:0}}; g.R.getUserAudio51Preference=function(){return 0}; g.R.getUserPlaybackQualityPreference=function(){return""}; g.R.getVideoData=function(){this.videoData||(this.videoData=new g.hI(this.j),g.c(this,this.videoData));return this.videoData}; g.R.DG=function(){return null}; g.R.ZL=function(){return null}; g.R.gH=function(){}; g.R.getVideoLoadedFraction=function(){return 0}; g.R.SY=function(){}; g.R.handleError=function(){}; g.R.uT=function(){}; g.R.cn=function(){}; g.R.Tc=J1(36);g.R.IN=function(){return!1}; g.R.hasSupportedAudio51Tracks=function(){return!1}; g.R.isAd=function(){return!1}; g.R.Fo=function(){return!1}; g.R.f_=function(){return!1}; g.R.isAtLiveHead=function(){return!1}; g.R.nf=function(){return!0}; g.R.isGapless=function(){return!1}; g.R.isHdr=function(){return!1}; g.R.KB=function(){return!1}; g.R.UT=function(){return!1}; g.R.Li=function(){return!1}; g.R.isProximaLatencyEligible=function(){return!1}; g.R.nA=function(){return!0}; g.R.yh=function(){return!1}; g.R.I6=function(){return!1}; g.R.Wn=function(){}; g.R.dc=function(){}; g.R.Ya=function(){}; g.R.fB=function(){}; g.R.uQ=function(){}; g.R.Uc=function(){}; g.R.Lj=function(){}; g.R.iZ=J1(46);g.R.En=J1(17);g.R.b1=function(){}; g.R.pauseVideo=function(){}; g.R.prefetchKeyPlay=function(){}; g.R.playVideo=function(){return g.m(function(y){return y.return()})}; g.R.D8=function(){}; g.R.tV=J1(23);g.R.Bl=J1(29);g.R.qM=function(){}; g.R.H4=function(){}; g.R.Wt=function(){}; g.R.jn=function(){}; g.R.OX=function(){}; g.R.Aj=function(){}; g.R.Qj=function(){}; g.R.Uf=function(){}; g.R.tR=function(){}; g.R.VP=function(){}; g.R.Lk=function(){}; g.R.TH=function(){}; g.R.removeCueRange=function(){}; g.R.cE=function(){}; g.R.g7=function(){return[]}; g.R.d1=function(){}; g.R.eQ=function(){}; g.R.Qa=function(){}; g.R.Hd=function(){}; g.R.ij=function(){}; g.R.JZ=function(){}; g.R.mC=function(){}; g.R.seekTo=function(){}; g.R.sendAbandonmentPing=function(){}; g.R.sendVideoStatsEngageEvent=function(){}; g.R.oE=function(){}; g.R.setLoop=function(){}; g.R.Gx=function(){}; g.R.setMediaElement=function(){}; g.R.JO=function(){}; g.R.setPlaybackRate=function(){}; g.R.w7=function(){}; g.R.K4=function(){}; g.R.K$=function(){}; g.R.setProximaLatencyPreference=function(){}; g.R.lD=function(){}; g.R.uD=function(){}; g.R.qT=function(){}; g.R.Xn=function(){}; g.R.nk=function(){}; g.R.setUserAudio51Preference=function(){}; g.R.KC=function(){}; g.R.xn=function(){return!1}; g.R.Qn=function(){}; g.R.UG=function(){return!1}; g.R.Bp=function(){}; g.R.GA=function(){}; g.R.Zg=function(){}; g.R.stopVideo=function(){}; g.R.subscribe=function(){return NaN}; g.R.LI=function(){}; g.R.togglePictureInPicture=function(){}; g.R.Q3=function(){return 0}; g.R.lM=function(){}; g.R.unsubscribe=function(){return!1}; g.R.y3=function(){}; g.R.qy=function(){return!1}; g.R.bk=function(){}; g.R.yG=function(){}; g.R.Ag=function(){};g.N(Va7,g.H);g.R=Va7.prototype;g.R.get=function(y){Ji(this);var t=this.data.find(function(a){return a.key===y}); return t?t.value:null}; g.R.CQ=function(){Ji(this);return this.data.map(function(y){return y.value})}; g.R.set=function(y,t,a){this.remove(y,!0);Ji(this);y={key:y,value:t,expire:Infinity};a&&isFinite(a)&&(a*=1E3,y.expire=(0,g.Wx)()+a);for(this.data.push(y);this.data.length>this.Y;)(a=this.data.shift())&&Hi(this,a,!0);oj(this)}; g.R.remove=function(y,t){t=t===void 0?!1:t;var a=this.data.find(function(r){return r.key===y}); a&&(Hi(this,a,t),g.aM(this.data,function(r){return r.key===y}),oj(this))}; g.R.removeAll=function(y){if(y=y===void 0?!1:y)for(var t=g.p(this.data),a=t.next();!a.done;a=t.next())Hi(this,a.value,y);this.data=[];oj(this)}; g.R.I5=function(){var y=this;g.H.prototype.I5.call(this);this.data.forEach(function(t){Hi(y,t,!0)}); this.data=[]}; g.N(ulV,g.H);g.R=ulV.prototype;g.R.get=function(y){var t=this.map.get(y);return t?t.rS<=(0,g.Wx)()?(this.remove(y,!0),null):t.value:null}; g.R.CQ=function(){for(var y=[],t=(0,g.Wx)(),a=[],r=g.p(this.map.entries()),E=r.next();!E.done;E=r.next()){var h=g.p(E.value);E=h.next().value;h=h.next().value;h.rS<=t?a.push(E):y.push(h.value)}if(a.length>0){t=g.p(a);for(a=t.next();!a.done;a=t.next())b9(this,a.value,!0);Bi(this)}return y}; g.R.set=function(y,t,a){this.map.has(y)&&b9(this,y,!0);var r=(0,g.Wx)(),E=Infinity;a!==void 0&&a!==null&&isFinite(a)&&(E=r+a*1E3);this.map.set(y,{value:t,rS:E});isFinite(E)&&(this.V.enqueue(E,y),bw(this.V)===E&&Bi(this));if(!Number.isNaN(this.D))for(y=this.map.keys();this.map.size>this.D;){t=y.next();if(t.done)break;b9(this,t.value,!0)}}; g.R.remove=function(y,t){b9(this,y,t===void 0?!1:t)&&Bi(this)}; g.R.removeAll=function(y){if((y===void 0?0:y)&&this.K){y=g.p(this.map.values());for(var t=y.next();!t.done;t=y.next())this.K(t.value.value)}this.map.clear();this.V.clear();this.Y.stop()}; g.R.I5=function(){g.H.prototype.I5.call(this);this.removeAll(!0)};g.N(g.ci,g.H);g.R=g.ci.prototype;g.R.I5=function(){for(var y=g.p(Object.values(this.Y)),t=y.next();!t.done;t=y.next())t.value.dispose();JJz(this);this.Z.dispose();g.H.prototype.I5.call(this)}; g.R.dH=function(y){return y?y===1?this.hF:this.K.getVideoData().enableServerStitchedDai&&y===2?this.K.getVideoData().oH?this.Y[2]||this.K:this.K:this.Y[y]||null:this.K}; g.R.F3=function(y){var t=y.cpn;y=y.playerType;if(t)a:{y=g.p(Object.values(this.Y));for(var a=y.next();!a.done;a=y.next())if(a=a.value,a.Im()===t){t=a;break a}t=this.D[t]||null}else t=y?this.dH(y):this.K;return t}; g.R.VW=function(){return this.hF}; g.R.Nt=function(y){this.hF=y}; g.R.le=function(){return this.K}; g.R.yq=function(y){this.K=y;qw(this)}; g.R.oL=J1(42);g.R.wX=J1(44);aKy.prototype.lW=function(y,t){for(var a=0;a<10;a++){var r=this.V[a],E=r+(a===0?y:0),h=1*Math.pow(2,a);if(E<=h)break;r=Math.min(1,(E-h*.5)/r);for(E=0;E<16;E++)h=this.values[a*16+E]*r,this.values[(a+1)*16+E]+=h,this.V[a+1]+=h,this.values[a*16+E]-=h,this.V[a]-=h}r=a=0;E=8192;t>8192&&(a=Math.ceil(Math.log(t/8192)/Math.log(2)),r=8192*Math.pow(2,a-1),E=r*2);a+2>16?this.values[15]+=y:(t=(t-r)/(E-r),this.values[a]+=y*(1-t),this.values[a+1]+=y*t);this.V[0]+=y}; aKy.prototype.wP=function(){var y=y===void 0?this.K:y;var t=t===void 0?.02:t;var a=a===void 0?.98:a;for(var r=this.Y,E=0;E<16;E++)r[E]=this.values[E];E=this.V[0];for(var h=1;h<11;h++){var F=this.V[h];if(F===0)break;for(var x=Math.min(1,(y-E)/F),U=0;U<16;U++)r[U]+=this.values[h*16+U]*x;E+=F*x;if(x<1)break}for(h=y=F=0;h<16;h++){x=F+r[h]/E;y+=Math.max(0,Math.min(x,a)-Math.max(F,t))*(h>0?8192*Math.pow(2,h-1):0);if(x>a)break;F=x}return y/(a-t)};Dc.prototype.lW=function(y,t){y=Math.min(this.V,Math.max(1,Math.round(y*this.resolution)));y+this.K>=this.V&&(this.Y=!0);for(;y--;)this.values[this.K]=t,this.K=(this.K+1)%this.V;this.k8=!0}; Dc.prototype.percentile=function(y){var t=this;if(!this.Y&&this.K===0)return 0;this.k8&&(g.O9(this.L,function(a,r){return t.values[a]-t.values[r]}),this.k8=!1); return this.values[this.L[Math.round(y*((this.Y?this.V:this.K)-1))]]||0}; Dc.prototype.wP=function(){return this.J?(this.percentile(this.D-this.J)+this.percentile(this.D)+this.percentile(this.D+this.J))/3:this.percentile(this.D)};g.N(rT2,g.H);rT2.prototype.JF=function(){var y;(y=this.C1)==null||y.start();d1(this)&&this.policy.Z&&this.R5()};FU2.prototype.B=function(y){return this.experiments.Nr(y)};g.N(sLN,g.I9);g.R=sLN.prototype;g.R.rj=function(){}; g.R.Im=function(){return this.videoData.clientPlaybackNonce}; g.R.getVideoData=function(){if(g.I9.prototype.getVideoData.call(this).B("html5_huli_ssdai_use_playback_state")){var y=V6x(this.mL,g.I9.prototype.getCurrentTime.call(this))||g.I9.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==y.clientPlaybackNonce&&$Y2(this.D,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:y.clientPlaybackNonce});return this.videoData}return V6x(this.mL,g.I9.prototype.getCurrentTime.call(this))||g.I9.prototype.getVideoData.call(this)}; g.R.getCurrentTime=function(y){var t=g.I9.prototype.getCurrentTime.call(this);if(g.I9.prototype.getVideoData.call(this).B("html5_huli_ssdai_use_playback_state")){this.V===0?y||(t-=this.startTimeSecs,g.I9.prototype.getVideoData.call(this).B("html5_ssdai_log_missed_ad_impressions")&&this.K&&this.Y&&t>1&&this.H4("sdai-admiss",{cpn:this.Im(),ct:t.toFixed(3),pfs:this.Y}),this.K=!1):y&&(t=this.V);var a=y?this.mL.Re||g.I9.prototype.getCurrentTime.call(this):ppd(this.mL,g.I9.prototype.getCurrentTime.call(this)); t!==a&&$Y2(this.D,"time"+(y!=null?y:!1),{time:t,ref:a,ct:y!=null?y:!1})}else t=y?this.mL.Re||t:ppd(this.mL,t);return t}; g.R.getDuration=function(){if(g.I9.prototype.getVideoData.call(this).B("html5_huli_ssdai_use_playback_state")){var y=lKx(this.mL,g.I9.prototype.getCurrentTime.call(this));this.duration!==y&&$Y2(this.D,"duration",{dur:this.duration,ref:y});return this.duration}return lKx(this.mL,g.I9.prototype.getCurrentTime.call(this))}; g.R.Fd=function(y){this.duration=y};g.KC.prototype.jH=function(y,t){if(t===1)return this.V.get(y);if(t===2)return this.Y.get(y);if(t===3)return this.K.get(y)}; g.KC.prototype.b0=J1(68);g.KC.prototype.nS=function(y,t,a,r){a={Lf:r,oG:a};t?this.Y.set(y,a):this.V.set(y,a)}; g.KC.prototype.clearAll=function(){this.V.clear();this.Y.clear();this.K.clear()}; C$n.prototype.clear=function(){this.K=[];this.Y.clear();this.D.clear();this.V.clear()}; C$n.prototype.F3=function(y){var t=y.cpn;y=y.F7;if(t&&(t=this.Y.get(t))||y&&(t=(this.L?this.Y:this.D).get(y)))return t}; g.N(g.Ij,g.H);g.R=g.Ij.prototype;g.R.onCueRangeEnter=function(y){var t=y.getId();this.QW({oncueEnter:1,cpn:t,start:y.start,end:y.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.cz()||0).toFixed(3)});var a=this.V.F3({cpn:t});this.QW({enterAdCueRange:1});var r=this.B1||this.If().cpn,E;r=(E=this.V.F3({cpn:r}))!=null?E:this.If();a&&(E=this.playback.getCurrentTime(),a.startTimeSecs=y.start/1E3,a={Fr:r,gf:a,DI:E},y$2(this,t,y.start/1E3,E),ro(this,a));this.C1=!1}; g.R.sQ=function(y,t,a){if(y&&t)if((this.app.Hl().D[y]||null)===null){var r;this.QW({nocpn:y,active:(r=this.app.Hl().V)==null?void 0:r.Im()})}else{this.C1=a!=null?a:!1;var E;a=((E=this.app.Hl().V)==null?void 0:E.Im())||this.playback.Im();var h;E=(h=this.V.F3({cpn:a}))!=null?h:this.If();var F;h=(F=this.V.F3({cpn:y}))!=null?F:this.If();h.startTimeSecs=t;h.playerType===2&&(h.c5=h.c5!=null?Math.min(h.c5,t):t);F=this.playback.getCurrentTime();y$2(this,a,t,F);ro(this,{Fr:E,gf:h,DI:F});if(this.playback.getVideoData().NP()&& y===this.playback.Im())if(t=this.FB.get(a)){var x;y=g.p((x=this.L1.get(t))!=null?x:[]);for(x=y.next();!x.done;x=y.next()){x=x.value;a=F=void 0;h=this.app.Hl();a=a===void 0?"":a;if(E=h.D[x])h.V===E&&(h.V=null),h.L===E&&(h.L=null),x===((F=h.W.get(a))==null?void 0:F.Im())&&h.W.delete(a),delete h.D[x];this.o5.delete(x);this.FB.delete(x)}this.L1.delete(t)}else this.QW({no_abid:y})}}; g.R.nz=function(y,t){if(y===this.playback.Im())Yl(this.app.Hl(),this.playback,!1);else{var a=this.o5.get(y);a?(y=!this.C1,a.V=0,a.startTimeSecs=t,a.Y=y===void 0?!0:y,a.K=!0,Yl(this.app.Hl(),a,!0)):this.QW({nop_s:y})}}; g.R.onCueRangeExit=function(y){for(var t=this.playback.getCurrentTime()*1E3,a=y.getId(),r=g.p(this.K.values()),E=r.next();!E.done;E=r.next())if(E=E.value,E.getId()!==a&&t>=E.start&&t<=E.end)return;if(a=this.V.F3({cpn:a}))t=this.playback.getCurrentTime(),r=this.If(),r.startTimeSecs=y.end/1E3,a={Fr:a,gf:r,DI:t},y$2(this,this.playback.Im(),y.end/1E3,t),ro(this,a)}; g.R.If=function(){return{cpn:this.playback.Im(),durationMs:0,zr:0,playerType:1,j_:0,videoData:this.playback.getVideoData(),errorCount:0,O0:""}}; g.R.seekTo=function(y,t,a,r){y=y===void 0?0:y;t=t===void 0?{}:t;a=a===void 0?!1:a;r=r===void 0?null:r;aC(this,this.B1);if(this.playback.getVideoData().NP()&&y<=this.Re)this.playback.pauseVideo(),this.Re=0,tF7(this,y);else if(this.C1=this.hF=!0,a)P$V(this,y,t);else{a=this.app.le();var E=a===this.d0?this.n1:null;yx(this,!1);this.zl=y;this.I7=t;r!=null&&this.Az.start(r);a&&(this.n1=E||a.getPlayerState(),a.Zg(t),this.d0=a)}}; g.R.I5=function(){yx(this,!1);JT7(this);oE1(this);g.H.prototype.I5.call(this)}; g.R.hQ=function(y,t,a){if(a&&t){var r=this.ju.get(y);if(r){r.locations||(r.locations=new Map);var E=Number(t.split(";")[0]);a=new g.C7(a);this.QW({hdlredir:1,itag:t,seg:y,hostport:WF(35,a)});r.locations.set(E,a)}}}; g.R.Jd=function(y,t,a,r,E,h){var F=Number(a.split(";")[0]),x=r===3;y=B7N(this,y,t,r,a,h);this.QW({gdu:1,seg:t,itag:F,pb:""+!!y});if(!y)return tA(this,t,x),null;y.locations||(y.locations=new Map);if(!y.locations.has(F)){var U,C;h=(U=y.videoData.getPlayerResponse())==null?void 0:(C=U.streamingData)==null?void 0:C.adaptiveFormats;if(!h)return this.QW({gdu:"noadpfmts",seg:t,itag:F}),tA(this,t,x),null;U=h.find(function(M){return M.itag===F}); if(!U||!U.url){var z=y.videoData.videoId;y=[];var O=g.p(h);for(r=O.next();!r.done;r=O.next())y.push(r.value.itag);this.QW({gdu:"nofmt",seg:t,vid:z,itag:F,fullitag:a,itags:y.join(",")});tA(this,t,x);return null}y.locations.set(F,new g.C7(U.url,!0))}h=y.locations.get(F);if(!h)return this.QW({gdu:"nourl",seg:t,itag:F}),tA(this,t,x),null;h=new oy(h);this.ZA&&(h.get("dvc")?this.QW({dvc:h.get("dvc")||""}):h.set("dvc","webm"));(r=(O=this.jH(t-1,r,E))==null?void 0:O.Lf)&&h.set("daistate",r);y.TJ&&t>=y.TJ&& h.set("skipsq",""+y.TJ);(O=this.playback.getVideoData().clientPlaybackNonce)&&h.set("cpn",O);O=[];y.O0&&(O=qeH(this,y.O0),O.length>0&&h.set("acpns",O.join(",")));x||this.ju.set(t,y);x=null;x=h.get("aids");r=h.xJ();(r==null?void 0:r.length)>2048&&this.QW({urltoolong:1,sq:t,itag:F,len:r.length});this.JF&&(r&&(h=y.cpn,E=y.O0,T7N(this,h,E),E&&!this.pM.has(E)&&(h=KUV(this,h,E),U=IKu(this,E),this.QW({iofa:h}),this.QW({noawnzd:U-h}),this.QW({acpns:O.join("."),aids:(z=x)==null?void 0:z.replace(/,/g,".")}), this.pM.add(E))),this.QW({gdu:"v",seg:t,itag:a,ast:y.zr.toFixed(3),alen:y.durationMs.toFixed(3),acpn:y.cpn,avid:y.videoData.videoId}));return r}; g.R.Pd=function(y,t,a){a=a===void 0?!1:a;var r=bAV(this,y,t);if(r){this.oo&&(this.DE=r);var E=void 0,h=r.O0;if(h){this.QW({skipadonsq:t,sts:a,abid:h,acpn:r.cpn,avid:r.videoData.videoId});a=this.V.V.get(h);if(!a)return;a=g.p(a);for(h=a.next();!h.done;h=a.next())h=h.value,h.TJ=t,h.nP=y,h.zr>r.zr&&(E=h)}aC(this,this.B1);this.Y=r.cpn;Ye1(this);this.api.B("html5_ssdai_enable_media_end_cue_range")&&this.playback.lM(this.Y);y=this.playback.getCurrentTime();gEn(this,r,E,y,y,!1,!0);ZAb(this)}}; g.R.I3=function(){for(var y=g.p(this.V.K),t=y.next();!t.done;t=y.next())t=t.value,t.TJ=NaN,t.nP=NaN;Ye1(this);this.QW({rsac:"resetSkipAd",sac:this.Y});this.T7.delete(this.Y);this.Y="";this.oo&&(this.DE=void 0)}; g.R.jH=function(y,t,a){return this.AF.jH(y,t,a)}; g.R.b0=J1(67); g.R.nS=function(y,t,a,r,E,h,F,x){a.length>0&&this.QW({onssinfo:1,sq:y,start:t.toFixed(3),cpns:a.join(","),ds:r.join(","),isVideo:h?1:0});if(this.oo&&this.DE&&this.DE.TJ&&a.length>0)for(var U=g.p(a),C=U.next();!C.done;C=U.next())if(C=C.value,C===this.DE.cpn){this.P1!==C&&(this.QW({skiperror:1,sq:y,acpn:this.DE.cpn,skipsq:this.DE.TJ||0}),this.P1=C);break}x&&this.AF.nS(y,h,F,x);if(h){if(a.length&&r.length)for(this.T7.has(a[0])&&this.QW({skipfail:1,sq:y,acpn:a[0]}),y=t+this.X0(),h=0;hthis.D.G8+1){this.QW({cueStChg:y.identifier,oldSt:this.D.G8.toFixed(3),newSt:y.startSecs.toFixed(3),abid:this.D.Rc});if(this.D.Rc){var a=y.startSecs-this.D.G8,r=this.V.V.get(this.D.Rc);if(r){r=g.p(r);for(var E= r.next();!E.done;E=r.next())E=E.value,E.zr>=0&&(E.zr+=a*1E3,this.j.B("html5_ssdai_update_timeline_on_start_time_change")&&(E.j_+=a*1E3),this.QW({newApEt:E.zr,newApPrt:E.j_,acpn:E.cpn}))}}this.D.G8=y.startSecs}t?this.yv.add(y.identifier):this.yv.has(y.identifier)&&this.yv.delete(y.identifier);return t}; g.R.Ep=function(y){var t=this;if(this.j.B("html5_lifa_ignore_multiple_skips")&&this.Vv)return this.QW({ufs_ad:this.Y,ufs_cur:this.B1,ufs_cont:this.If().cpn}),!1;aC(this,this.B1);this.playback.pauseVideo();var a=this.playback.getCurrentTime(),r=this.V.F3({cpn:this.B1});if(!r)return this.QW({skipFail:a}),!1;this.Y=this.B1;this.hF=!1;this.api.B("html5_ssdai_enable_media_end_cue_range")&&this.playback.lM(this.Y);this.IC(r.O0);ax2(this,r,this.If(),y);tF7(this,a,{seekSource:89,yD:"lifa_skip"});this.Vv|| (this.Vv=this.events.N(this.api,"progresssync",function(){Ag(t.api.Fz(),(0,g.Wx)(),"ad_to_video");t.Vv&&(t.events.Dh(t.Vv),t.Vv=null)})); return!0}; g.R.IC=function(y){if(this.playback.getVideoData().NP()){var t=this.V.V.get(y);if(t){t=g.p(t);for(var a=t.next();!a.done;a=t.next()){a=a.value;var r=this.K.get(a.cpn);this.K.delete(a.cpn);r&&this.playback.removeCueRange(r);Rjy(this.V,a)}this.ju.clear();t=this.V;var E;a=(E=t.V.get(y))!=null?E:[];E=g.p(a);for(a=E.next();!a.done;a=E.next())Rjy(t,a.value);t.V.delete(y);(y=this.MK.get(y))&&this.uK&&this.playback.Hd(y)}}}; g.R.QW=function(y,t){((t===void 0?0:t)||this.JF)&&this.playback.H4("sdai",y)}; var fKH=0;g.N(Ex1,g.H);g.R=Ex1.prototype;g.R.onCueRangeEnter=function(y){if(this.V===this.app.le()){var t=this.L.get(y);t?$J1(this,t.target,t.Ss,y):this.Aj("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:y.toString()})}else if(t=this.K.find(function(E){return E.Cz.vl===y})){var a=t.Cz,r=a.target; a=a.Ss;r?$J1(this,r,a,y):swH(this,t.j_,a,y)}}; g.R.onQueuedVideoLoaded=function(){var y=this.W;AA(this);if(y){if(!Fp(this,y)){var t=this.app.le();this.Aj("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:t==null?void 0:t.getVideoData().clientPlaybackNonce,ccpn:""+y.playerVars.cpn})}this.app.le().addCueRange(y.Cz.vl)}}; g.R.seekTo=function(y,t,a,r){y=y===void 0?0:y;t=t===void 0?{}:t;r=r===void 0?null:r;if(a===void 0?0:a)r$7(this,y,t);else{a=this.app.le()||null;var E=a===this.D?this.J:null;xg(this,!1);this.AF=y;this.hF=t;r!=null&&this.Z.start(r);a&&(this.J=E||a.getPlayerState(),a.Zg(),this.D=a)}}; g.R.jQ=function(y){g.Og(y,128)&&Lrz(this)}; g.R.isManifestless=function(){return QQ(this.V.getVideoData())}; g.R.I5=function(){xg(this,!1);wu7(this);g.H.prototype.I5.call(this)}; g.R.Aj=function(y,t){this.V.Aj(new g.rg(y,t))}; var hvx=0;var RvF="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.N(sc,g.H);sc.prototype.lN=function(y){if(y)return this.K.get(y)}; sc.prototype.I5=function(){this.V.removeAll();this.K.removeAll();g.H.prototype.I5.call(this)};g.Ayd=g4(function(){var y=window.AudioContext||window.webkitAudioContext;try{return new y}catch(t){return t.name}});g.N(knx,g.q);g.R=knx.prototype;g.R.ov=function(){g.xM(this.element,g.w2.apply(0,arguments))}; g.R.eQ=function(){this.jz&&(this.jz.removeEventListener("focus",this.Uy),g.uv(this.jz),this.jz=null)}; g.R.Ah=function(){this.Qv();var y=this.app.G();y.hW||this.ov("tag-pool-enabled");y.J&&this.ov(g.e_.HOUSE_BRAND);y.playerStyle==="gvn"&&(this.ov("ytp-gvn"),this.element.style.backgroundColor="transparent");y.MK&&(this.uG=g.ru("yt-dom-content-change",this.resize,this));this.N(window,"orientationchange",this.resize,this);this.N(window,"resize",this.resize,this)}; g.R.Tx=function(y){g.De(this.app.G());this.Y4=!y;$g(this)}; g.R.resize=function(){if(this.jz){var y=this.Zf();if(!y.isEmpty()){this.app.Mr.isFullscreen()&&Kt()&&this.U9.start();var t=!g.AE(y,this.xU.getSize()),a=QwH(this);t&&(this.xU.width=y.width,this.xU.height=y.height);y=this.app.G();(a||t||this.cg||y.MK)&&this.app.Mr.publish("resize",this.getPlayerSize())}}}; g.R.eP=function(y,t){this.updateVideoData(t)}; g.R.updateVideoData=function(y){if(this.jz){var t=this.app.G();Kx&&(this.jz.setAttribute("x-webkit-airplay","allow"),y.title?this.jz.setAttribute("title",y.title):this.jz.removeAttribute("title"));this.jz.setAttribute("controlslist","nodownload");t.Z8&&y.videoId?this.jz.poster=y.Qs("default.jpg"):t.experiments.pJ().V.o7(sVd)&&hU()&&(Y3!=null?Y3:0)>=10&&(this.jz.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}t=g.JI(y,"yt:bgcolor");this.xu.style.backgroundColor= t?t:"";this.GB=Co(g.JI(y,"yt:stretch"));this.ZF=Co(g.JI(y,"yt:crop"),!0);g.Uz(this.element,"ytp-dni",y.Zh);this.resize()}; g.R.setGlobalCrop=function(y){this.Fe=Co(y,!0);this.resize()}; g.R.setCenterCrop=function(y){this.jk=y;this.resize()}; g.R.Qm=function(){}; g.R.getPlayerSize=function(){var y=this.app.G(),t=this.app.Mr.isFullscreen(),a=y.externalFullscreen&&g.bc(y);if(t&&Kt()&&!a)return new g.F1(window.outerWidth,window.outerHeight);a=!isNaN(this.hH.width)&&!isNaN(this.hH.height);var r=this.app.G().B("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.G().B("web_watch_enable_fs_squeezeback_panels");if(t&&!a&&r)return new g.F1(this.element.clientWidth,this.element.clientHeight);if(t||y.zf){if(window.matchMedia){y="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.Q7&&this.Q7.media===y||(this.Q7=window.matchMedia(y));var E=this.Q7&&this.Q7.matches}if(E)return new g.F1(window.innerWidth,window.innerHeight)}else if(a)return this.hH.clone();return new g.F1(this.element.clientWidth,this.element.clientHeight)}; g.R.Zf=function(){var y=this.app.G().B("enable_desktop_player_underlay"),t=this.getPlayerSize(),a=g.Gw(this.app.G().experiments,"player_underlay_min_player_width");return y&&this.QV&&t.width>a?(y=g.Gw(this.app.G().experiments,"player_underlay_video_width_fraction"),new g.F1(Math.min(t.height*this.getVideoAspectRatio(),t.width*y),Math.min(t.height,t.width*y/this.getVideoAspectRatio()))):t}; g.R.getVideoAspectRatio=function(){return isNaN(this.GB)?Wrb(this):this.GB}; g.R.getVideoContentRect=function(y){var t=this.Zf();y=jw2(this,t,this.getVideoAspectRatio(),y);return new g.yj((t.width-y.width)/2,(t.height-y.height)/2,y.width,y.height)}; g.R.a_=function(y){this.QV=y;this.resize()}; g.R.al=function(){return this.IM}; g.R.onMutedAutoplayChange=function(){$g(this)}; g.R.setInternalSize=function(y){g.AE(this.hH,y)||(this.hH=y,this.resize())}; g.R.I5=function(){this.uG&&g.ER(this.uG);this.eQ();g.q.prototype.I5.call(this)};g.R=pu2.prototype;g.R.click=function(y,t){this.elements.has(y);this.V.has(y);var a=g.XE();a&&y.visualElement&&g.an(a,y.visualElement,t)}; g.R.createClientVe=function(y,t,a,r){var E=this;r=r===void 0?!1:r;this.elements.has(y);this.elements.add(y);a=Pj(a);y.visualElement=a;var h=g.XE(),F=g.dE();h&&F&&(g.WE("combine_ve_grafts")?Ly(z9(),a,F):g.EO(g.Yt)(void 0,h,F,a));t.addOnDisposeCallback(function(){E.elements.has(y)&&E.destroyVe(y)}); r&&this.K.add(y)}; g.R.createServerVe=function(y,t,a){var r=this;a=a===void 0?!1:a;this.elements.has(y);this.elements.add(y);t.addOnDisposeCallback(function(){r.destroyVe(y)}); a&&this.K.add(y)}; g.R.destroyVe=function(y){this.elements.has(y);this.elements.delete(y);this.Y.delete(y);this.V.delete(y);this.K.delete(y)}; g.R.mu=function(y,t){this.clientPlaybackNonce!==t&&(this.clientPlaybackNonce=t,Ov(z9(),y),ev7(this))}; g.R.setTrackingParams=function(y,t){this.elements.has(y);t&&(y.visualElement=g.RQ(t))}; g.R.lY=function(y,t,a){this.elements.has(y);t?this.V.add(y):this.V.delete(y);var r=g.XE(),E=y.visualElement;this.K.has(y)?r&&E&&(t?g.yV(r,[E]):g.tG(r,[E])):t&&!this.Y.has(y)&&(r&&E&&g.ZB(r,E,void 0,a),this.Y.add(y))}; g.R.hasVe=function(y){return this.elements.has(y)};g.N(Cm,g.H);Cm.prototype.sendMessage=function(y){var t=y;y=new Uint8Array(t);for(var a=0;t>0;){var r=new Uint8Array(Math.min(t,65536));crypto.getRandomValues(r);y.set(r,a);t-=r.length;a+=r.length}t=performance.now();var E;(E=this.dW)==null||E.postMessage({mainEventSent:t,data:y})}; Cm.prototype.onMessage=function(y){var t=y.timeStamp,a=performance.now();y=y.data;var r=y.mainEventSent;this.H4("worker",{t1:(y.workerEventCreated-performance.timeOrigin-r).toFixed(3),t2:(y.workerEventProcessed-performance.timeOrigin-r).toFixed(3),t3:(t-r).toFixed(3),t4:(a-r).toFixed(3),data:Uint8Array.BYTES_PER_ELEMENT*y.data.length});this.K++;this.K>1E4&&VFd(this)}; Cm.prototype.I5=function(){clearInterval(this.V);this.V=void 0;VFd(this);g.H.prototype.I5.call(this)};g.N(g.z7,g.H);g.z7.create=function(y,t,a,r){try{var E=typeof y==="string"?y:"player"+g.nI(y),h=j6[E];if(h){try{h.dispose()}catch(x){g.pK(x)}j6[E]=null}var F=new g.z7(y,t,a,r);F.addOnDisposeCallback(function(){j6[E]=null;F.Zu&&F.Zu()}); return j6[E]=F}catch(x){throw g.pK(x),(x&&x instanceof Error?x:Error(String(x))).stack;}}; g.R=g.z7.prototype;g.R.Sf=function(){return this.visibility}; g.R.Nt=function(y){var t=this.VW();if(y!==t){y.getVideoData().autonavState=t.getVideoData().autonavState;t.y3(this.hE,this);var a=t.getPlaybackRate();t.dispose();this.bJ.Nt(y);y.setPlaybackRate(a);y.LI(this.hE,this);bUy(this)}}; g.R.RS=function(){this.VS||(this.VS=g.Tl(i6(),cp7()));return this.VS}; g.R.eQ=function(y){if(this.mediaElement){this.K8&&(this.events.Dh(this.K8),this.K8=null);g.V1(this.kc);this.le().eQ(!0,!1,y);this.template.eQ();try{this.B("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Fn()}catch(t){g.ls(t)}this.mediaElement=null}}; g.R.yq=function(y,t,a){if(y!==this.le()){var r=null;if(a===void 0||!a){a=this.le();r=a.getPlayerState();X7(this.Ca,3);JA(this,"cuerangesremoved",a.Q2());this.YV&&!y.isGapless()&&a.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();a=y.xn()&&a.xn();this.dN.pw("iv_s");a=a===void 0?!0:a;var E;if(E=this.ao){E=this.ao;var h=this.mediaElement;E=!!h&&h===E.mediaElement}E&&(this.eQ(),Lm(this));E=this.le();E.eQ(!a);E.y3(this.Tt,this);E.getPlayerType()!==1&&E.dispose();a=this.bJ;a.K=a.Z;qw(a)}y.getPlayerType()=== 1&&this.Nt(y);a=y.getPlayerType();E=this.bJ.Y[a]||null;y!==this.VW()&&y!==E&&(E==null||E.dispose(),this.bJ.Y[a]=y);this.bJ.yq(y);this.mediaElement&&y.setMediaElement(this.mediaElement);y.LI(this.Tt,this);y.I6()?RD2(this,"setPresenting",!1):(this.eP("newdata",y,y.getVideoData()),r&&!g.WY(r,y.getPlayerState())&&this.eR(new g.CD(y.getPlayerState(),r)),t=t&&y.getPlayerType()===1,y.UT()&&!t&&this.eP("dataloaded",y,y.getVideoData()),(t=(t=y.getVideoData().K)&&t.video)&&this.Mr.v1("onPlaybackQualityChange", t.quality),JA(this,"cuerangesadded",y.Q2()),t=y.getPlayerState(),g.D(t,2)?KrN(this):g.D(t,8)?y.playVideo():y.KB()&&y.pauseVideo(),t=this.VW(),y.getPlayerType()===2&&(y.getVideoData().NW=t.getVideoData().clientPlaybackNonce),y.getPlayerType()!==2||this.n0()||(y=y.getVideoData(),t.D8(y.clientPlaybackNonce,y.Az||"",y.breakType||0,y.Vy,y.videoId||"")))}}; g.R.II=function(){this.VW()!==this.le()&&this.yq(this.VW())}; g.R.Hl=function(){return this.bJ}; g.R.F3=function(y){return this.bJ.F3(y)}; g.R.dH=function(y){return this.bJ.dH(y)}; g.R.VW=function(){return this.bJ.VW()}; g.R.le=function(){return this.bJ.le()}; g.R.t6=J1(40);g.R.j7v=function(){Na(this)||this.Lc(5)}; g.R.as4=function(){if(!Na(this)){Or7(this);var y=this.le(),t=y.getVideoData();this.j.B("html5_allow_multiview_tile_preload")&&t.pM&&y.seekTo(Infinity);t=y.getPlayerState();y.KB()?this.pauseVideo():t.isOrWillBePlaying()&&this.playVideo()}}; g.R.canPlayType=function(y){return A0(y)}; g.R.G=function(){return this.j}; g.R.getVideoData=function(){return this.le().getVideoData()}; g.R.Ea=function(){return this.le().wq()}; g.R.nM=function(){return this.VW().getVideoData()}; g.R.getVideoLoadedFraction=function(y){return g.wo(this,{playerType:y}).getVideoLoadedFraction()}; g.R.ZE=function(){return this.template}; g.R.gN=function(){return this.Ca}; g.R.Fz=function(){return this.dN}; g.R.fG=function(y,t,a){g.wo(this,{playerType:t===void 0?1:t}).oE(y,void 0,a)}; g.R.yu=function(){var y=this.Ca.yu();this.Mr.publish("videoStatsPingCreated",y);return y}; g.R.getVolume=function(){return Math.round(this.Mr.getVolume())}; g.R.isMuted=function(){return this.Mr.isMuted()}; g.R.bL=function(){if(this.VW()===this.le()&&this.DA)return this.DA.postId}; g.R.wz0=function(){var y=this;this.B("use_rta_for_player")||(g.OY(this.j)?g.wY(this.j,g.y$(this.getVideoData())).then(function(t){Kf(i6(),t);iq7(y.getVideoData(),y.j,y.RS())}):iq7(this.getVideoData(),this.j,this.RS()))}; g.R.My=function(y){this.Mr.publish("poTokenVideoBindingChange",y)}; g.R.pC=function(y){this.Mr.publish("d6de4videobindingchange",y)}; g.R.yL=function(){this.Xq&&this.Xq.yL()}; g.R.Bg=function(y){this.Xq=y}; g.R.gX=function(y){if(y===1){this.dN.tick("vr");var t=this.le();t.mG();Sk7(this.dN,t.getVideoData(),zDF(this));rgy(this.Ca)}t=this.j;if(OJ(t)&&t.Z||g.ic(t)){var a;(((a=this.le().getVideoData())==null?0:a.enableServerStitchedDai)||!this.n0())&&this.Mr.v1("onAdStateChange",y)}}; g.R.setLoopVideo=function(y){var t=this.le();t===this.VW()&&t.SP()!==y&&(t.setLoop(y),this.Mr.W4("onLoopChange",y))}; g.R.getLoopVideo=function(){return this.le().SP()}; g.R.setLoopRange=function(y){var t=!1;!!this.DA!==!!y?t=!0:this.DA&&y&&(t=this.DA.startTimeMs!==y.startTimeMs||this.DA.endTimeMs!==y.endTimeMs||this.DA.postId!==y.postId||this.DA.type!==y.type);if(t){t=this.le();Rh(t.getVideoData())&&t.H4("slr",{et:(y==null?void 0:y.endTimeMs)||-1});t=this.VW();t.g7("applooprange");if(y){var a=new g.BK(y.startTimeMs,y.endTimeMs,{id:"looprange",namespace:"applooprange"});t.addCueRange(a)}else{this.nM().clipConfig=void 0;var r;((a=this.DA)==null?void 0:a.type)!=="repeatChapter"|| isNaN(Number((r=this.DA)==null?void 0:r.loopCount))||(a={loopCount:String(this.DA.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Mc("repeatChapterLoopEvent",a))}this.DA=y;this.Mr.W4("onLoopRangeChange",y||void 0);this.VW()===this.le()&&(this.by(),t.U8())}}; g.R.getLoopRange=function(){return this.DA}; g.R.by=function(){var y="",t=this.VW();this.DA?t!==this.le()?y="pnea":al7(this,t.getCurrentTime())&&(this.DA.loopCount=0,y="ilr"):y="nlr";var a=this.le();if(Rh(a.getVideoData()))if(this.B("html5_gapless_log_loop_range_info")){var r,E;a.H4("slrre",{rej:y,ct:t.getCurrentTime(),lst:(r=this.DA)==null?void 0:r.startTimeMs,let:(E=this.DA)==null?void 0:E.endTimeMs})}else a.H4("slrre",{});y||EWF(this)}; g.R.setPlaybackRate=function(y,t){if(!isNaN(y)){y=DJn(this,y);var a=this.VW();a.getPlaybackRate()!==y&&(a.setPlaybackRate(y),t&&!this.j.D&&g.m7("yt-player-playback-rate",y),this.Mr.v1("onPlaybackRateChange",y))}}; g.R.getCurrentTime=function(y,t){t=t===void 0?!0:t;var a=this.bJ.h9;if(a)return a.getCurrentTime();y=(a=y===2&&this.getVideoData().enableServerStitchedDai)?this.le():g.wo(this,{playerType:y});return a&&this.tj?(a=this.bJ.L)?a.getCurrentTime(t):y.getCurrentTime():t?(t=Pf(this,y),eH(this,t.getCurrentTime(),t)):y.getCurrentTime()}; g.R.aY=function(){var y=g.wo(this,{playerType:void 0});y=Pf(this,y);return eH(this,y.aY(),y)}; g.R.getDuration=function(y,t){t=t===void 0?!0:t;var a=this.bJ.h9;if(a)return a.getDuration();a=this.getVideoData();var r=y===2&&a.enableServerStitchedDai;var E=r?this.le():g.wo(this,{playerType:y});if(a.hasProgressBarBoundaries()&&!r){var h,F=Number((h=a.progressBarStartPosition)==null?void 0:h.utcTimeMillis),x;h=Number((x=a.progressBarEndPosition)==null?void 0:x.utcTimeMillis);if(!isNaN(F)&&!isNaN(h))return(h-F)/1E3}if(Rh(a)&&!a.isLivePlayback)return vf(this,y);if(t)return y=RC(this,E),eH(this,y.getDuration(), y);if(r&&this.tj){if(this.B("html5_huli_ssdai_use_playback_state"))return y=this.bJ,y=y.V===y.L?y.V:null,(y==null?void 0:y.getDuration())||0;var U;return((U=this.bJ.L)==null?void 0:U.getDuration())||0}return E.getDuration()}; g.R.Pj=function(y){var t=g.wo(this,{playerType:y});return this.n0(t)?(t=RC(this,t),t.Pj()-t.getCurrentTime()+this.getCurrentTime(y)):t.Pj()}; g.R.finishSegmentByCpn=function(){return[]}; g.R.Ah=function(){this.template.Ah();var y=this.Mr;y.state.element=this.template.element;var t=y.state.element,a;for(a in y.state.V)y.state.V.hasOwnProperty(a)&&(t[a]=y.state.V[a]);(y=Cay(this.template.element))&&this.events.N(this.template,y,this.onFullscreenChange)}; g.R.getDebugText=function(y){var t=this.VW().Tl(y),a=this.le();if(a!==this.VW()){a=a.Tl(y);for(var r=g.p(Object.keys(a)),E=r.next();!E.done;E=r.next())E=E.value,t["ad"+E]=a[E];if(y){a=t;r={};if(E=MW(document,"movie_player"))r.bounds=E.getBoundingClientRect(),r["class"]=E.className;E={};var h=g.d4("video-ads");h?(ds2(h,E),E.html=h.outerHTML):E.missing=1;h={};var F=g.d4("videoAdUiSkipContainer"),x=g.d4("ytp-ad-skip-button-container"),U=g.d4("ytp-skip-ad-button"),C=F||x||U;C?(ds2(C,h),h.ima=F?1:0,h.bulleit= x?1:0,h.component=U?1:0):h.missing=1;r=JSON.stringify({player:r,videoAds:E,skipButton:h});a.ad_skipBtnDbgInfo=r}}y&&this.mediaElement&&(t["0sz"]=""+(+xo(this.mediaElement.getSize())===0),t.op=this.mediaElement.h5("opacity"),a=this.mediaElement.L2().y+this.mediaElement.getSize().height,t.yof=""+(+a<=0),t.dis=this.mediaElement.h5("display"));y&&((y=(0,g.mM)())&&(t.gpu=y),(y=this.j.playerStyle)&&(t.ps=y),this.j.C1&&(t.webview=1),(y=this.webPlayerContextConfig.jsUrl)&&(t.js=y));t.debug_playbackQuality= this.Mr.getPlaybackQuality(1);t.debug_date=(new Date).toString();t.origin=window.origin;t.timestamp=Date.now();delete t.uga;delete t.q;return JSON.stringify(t,null,2)}; g.R.getFeedbackProductData=function(){var y={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.G().experiments.experimentIds.join(", "),player_release:A[43]},t=this.getPlayerStateObject().mS;t&&(y.player_error_code=t.errorCode,y.player_error_details=JSON.stringify(t.errorDetail));return y}; g.R.getPresentingPlayerType=function(y){if(this.appState===1)return 1;if(Na(this))return 3;var t,a,r;return(y&&this.j.pJ().V.o7(hDz)?(r=(t=this.bJ.V)==null?void 0:t.isAd())!=null&&r:(a=this.tj)==null?0:u_7(a,this.getCurrentTime()))?2:this.le().getPlayerType()}; g.R.q3=function(){return!1}; g.R.getPlayerStateObject=function(y){var t=this.bJ.h9;return t?t.getPlayerState():g.wo(this,{playerType:y}).getPlayerState()}; g.R.getAppState=function(){return this.appState}; g.R.fsm=function(y){switch(y.type){case "loadedmetadata":this.rr.start();y=g.p(this.ML);for(var t=y.next();!t.done;t=y.next())t=t.value,C2z(this,t.id,t.J97,t.r9X,void 0,!1);this.ML=[];break;case "loadstart":this.dN.pw("gv");break;case "progress":case "timeupdate":ZG(y.target.FC())>=2&&this.dN.pw("l2s");break;case "playing":g.C3&&this.rr.start();if(g.OY(this.j))y=!1;else{t=g.Bq(this.gN());y=this.mediaElement.h5("display")==="none"||xo(this.mediaElement.getSize())===0;var a=Uc(this.template),r=this.le().getVideoData(), E=g.Jf(this.j);r=PQ(r);t=!a||t||E||r||this.j.T7;y=y&&!t}y&&(y=this.le(),y.Wn(),this.getVideoData().r0||(this.getVideoData().r0=1,this.VZ(),y.playVideo()))}}; g.R.FW4=function(y){this.Mr.hj("onLoadProgress",y)}; g.R.JjG=function(){this.Mr.publish("playbackstalledatstart")}; g.R.kOr=function(y,t){this.Mr.publish("sabrCaptionsDataLoaded",y,t)}; g.R.DD4=function(y){this.le().uD(y)}; g.R.gT5=function(y){this.le().lD(y)}; g.R.um1=function(y){y=Pf(this,this.le());y=eH(this,y.getCurrentTime(),y);this.Mr.v1("onVideoProgress",y);this.j.iU&&xsb(this,this.visibility.L$())&&this.pauseVideo()}; g.R.ia0=function(){this.Mr.v1("onAutoplayBlocked");var y=this.le().getVideoData();y&&(y.SU=!0);g.bc(this.j)&&(y={autoplayBrowserPolicy:lF(),autoplayIntended:uF(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.Mc("embedsAutoplayStatusChanged",y))}; g.R.qYX=function(){this.Mr.publish("progresssync")}; g.R.LWG=function(){this.Mr.hj("onPlaybackPauseAtStart")}; g.R.h$X=function(y){if(this.getPresentingPlayerType()===1){g.Og(y,1)&&!g.D(y.state,64)&&this.nM().isLivePlayback&&this.VW().isAtLiveHead()&&this.Mr.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Og(y,2)){if(this.DA&&this.DA.endTimeMs>=(this.getDuration()-1)*1E3){EWF(this);return}KrN(this)}if(g.D(y.state,128)){var t=y.state;this.cancelPlayback(5);t=t.mS;JSON.stringify({errorData:t,debugInfo:this.getDebugText(!0)});this.Mr.v1("onError",FEF(t.errorCode));this.Mr.hj("onDetailedError",{errorCode:t.errorCode, errorDetail:t.errorDetail,message:t.errorMessage,messageKey:t.zz,cpn:t.cpn});(0,g.Wx)()-this.j.TR>6048E5&&this.Mr.hj("onReloadRequired")}t={};if(y.state.isPlaying()&&!y.state.isBuffering()&&!uy("pbresume","ad_to_video")&&uy("_start","ad_to_video")){var a=this.getVideoData();t.clientPlaybackNonce=a.clientPlaybackNonce;a.videoId&&(t.videoId=a.videoId);g.eW(t,"ad_to_video");pM("pbresume",void 0,"ad_to_video");rgy(this.Ca)}this.Mr.publish("applicationplayerstatechange",y)}}; g.R.eR=function(y){this.bJ.h9||this.Mr.publish("presentingplayerstatechange",y)}; g.R.jQ=function(y){Ma(this,SL(y.state));g.D(y.state,1024)&&this.Mr.isMutedByMutedAutoplay()&&(SH(this,{muted:!1,volume:this.By.volume},!1),Qx(this,!1))}; g.R.onPlayerRequestSent=function(y){this.Mr.W4("onPlayerRequestSent",y)}; g.R.oK=function(y,t){y==="newdata"&&bUy(this);this.Mr.publish("applicationvideodatachange",y,t)}; g.R.YY0=function(y,t){Or7(this);this.Mr.hj("onPlaybackAudioChange",this.Mr.getAudioTrack().qK.name);this.Mr.publish("internalaudioformatchange",this.Mr.getAudioTrack().qK.id,t)}; g.R.ls1=function(y){var t=this.le().getVideoData();y===t&&this.Mr.v1("onPlaybackQualityChange",y.K.video.quality)}; g.R.ra=function(){var y=this.bJ.Y[2]||null;y&&(y=y.getVideoData(),this.le().H4("ssdai",{cleanaply:1,acpn:y==null?void 0:y.clientPlaybackNonce,avid:y.videoId,isDai:this.nM().enableServerStitchedDai?1:0}),delete this.bJ.Y[2])}; g.R.wju=function(y,t){this.eP(y,this.le(),t)}; g.R.eP=function(y,t,a){this.j.Bb()&&t.H4("vdc",{type:y,vid:a.videoId||"",cpn:a.clientPlaybackNonce||""});t===this.VW()&&(this.j.NC=a.oauthToken);t===this.VW()&&(this.getVideoData().enableServerStitchedDai&&!this.tj?(this.VW().H4("sdai",{initSstm:1}),this.tj=new g.Ij(this.Mr,this.j,this.VW(),this)):!this.getVideoData().enableServerStitchedDai&&this.tj&&(this.tj.dispose(),this.tj=null));if(y==="newdata")X7(this.Ca,2),this.Mr.publish("videoplayerreset",t);else{if(!this.mediaElement)return;if(y==="dataloaded")if(this.VW()=== this.le()){if(Ze(a.P4,a.AS),!this.VW().getPlayerState().isError()){var r=Na(this);this.nM().isLoaded();r&&this.Lc(6);Gnn(this);tnx(this.Ca)||TnH(this)}}else Gnn(this);if(t.getPlayerType()===1&&(this.j.L1&&NS7(this),this.getVideoData().isLivePlayback&&!this.j.uX&&this.Rm("html5.unsupportedlive",2,"DEVICE_FALLBACK"),a.isLoaded()&&((z6n(a)||this.getVideoData().qH)&&this.Mr.publish("legacyadtrackingpingchange",this.getVideoData()),a.hasProgressBarBoundaries()))){var E;r=Number((E=this.getVideoData().progressBarEndPosition)== null?void 0:E.utcTimeMillis)/1E3;!isNaN(r)&&(E=this.Pj())&&(E-=this.getCurrentTime(),r=(r-E)*1E3,E=this.xg.progressEndBoundary,(E==null?void 0:E.start)!==r&&(E&&this.cE([E]),r=new g.BK(r,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.VW().addCueRange(r),this.xg.progressEndBoundary=r))}this.Mr.publish("videodatachange",y,a,t.getPlayerType())}this.Mr.v1("onVideoDataChange",{type:y,playertype:t.getPlayerType()});this.by();(y=a.S$)?this.JW.mu(y,a.clientPlaybackNonce): ev7(this.JW)}; g.R.kd=function(){kg(this,null);this.Mr.hj("onPlaylistUpdate")}; g.R.GO7=function(y){delete this.xg[y.getId()];this.VW().removeCueRange(y);a:{y=this.getVideoData();var t,a,r,E,h,F,x,U,C,z,O=((t=y.o5)==null?void 0:(a=t.contents)==null?void 0:(r=a.singleColumnWatchNextResults)==null?void 0:(E=r.autoplay)==null?void 0:(h=E.autoplay)==null?void 0:h.sets)||((F=y.o5)==null?void 0:(x=F.contents)==null?void 0:(U=x.twoColumnWatchNextResults)==null?void 0:(C=U.autoplay)==null?void 0:(z=C.autoplay)==null?void 0:z.sets);if(O)for(t=g.p(O),a=t.next();!a.done;a=t.next())if(a= a.value,E=r=void 0,a=a.autoplayVideo||((r=a.autoplayVideoRenderer)==null?void 0:(E=r.autoplayEndpointRenderer)==null?void 0:E.endpoint),r=g.P(a,g.zo),h=E=void 0,a!=null&&((E=r)==null?void 0:E.videoId)===y.videoId&&((h=r)==null?0:h.continuePlayback)){y=a;break a}y=null}(t=g.P(y,g.zo))&&this.Mr.W4("onPlayVideo",{sessionData:{autonav:"1",itct:y==null?void 0:y.clickTrackingParams},videoId:t.videoId,watchEndpoint:t})}; g.R.Lc=function(y){y!==this.appState&&(y===2&&this.getPresentingPlayerType()===1&&(Ma(this,-1),Ma(this,5)),this.appState=y,this.Mr.publish("appstatechange",y))}; g.R.Rm=function(y,t,a,r,E){this.VW().w7(y,t,a,r,E)}; g.R.yp=J1(9);g.R.isAtLiveHead=function(y,t){t=t===void 0?!1:t;var a=g.wo(this,{playerType:y});y=RC(this,a);a=Pf(this,a);return y!==a?y.isAtLiveHead(eH(this,a.getCurrentTime(),a),!0):y.isAtLiveHead(void 0,t)}; g.R.ZQ=function(){var y=g.wo(this,{playerType:void 0});return RC(this,y).ZQ()}; g.R.seekTo=function(y,t,a,r,E,h){t=t!==!1;r=g.wo(this,{playerType:r});this.appState===2&&Wf(this);if(this.n0(r))l0(this)?this.tj.seekTo(y,{seekSource:E},t,a):this.mL.seekTo(y,{seekSource:E},t,a);else{this.B("html5_sabr_csdai_seek_log")||(h="");var F;r.seekTo(y,{HH:!t,m5:a,yD:"application"+((F=h)!=null?F:""),seekSource:E})}}; g.R.seekBy=function(y,t,a,r){this.seekTo(this.getCurrentTime()+y,t,a,r,void 0,"_by")}; g.R.CKr=function(){this.Mr.v1("SEEK_COMPLETE")}; g.R.KWr=function(){this.Mr.W4("onAbnormalityDetected")}; g.R.rjv=function(y){this.Mr.W4("onSnackbarMessage",y)}; g.R.twu=function(y){var t=this.le(),a=t.getVideoData();if(this.appState===1||this.appState===2)a.startSeconds=y;this.appState===2?g.D(t.getPlayerState(),512)||Wf(this):this.Mr.v1("SEEK_TO",y)}; g.R.zMG=function(){this.Mr.publish("airplayactivechange")}; g.R.PKG=function(){this.Mr.publish("airplayavailabilitychange")}; g.R.showAirplayPicker=function(){this.le().Qn()}; g.R.x71=function(){this.Mr.publish("beginseeking")}; g.R.gJE=function(){this.Mr.publish("endseeking")}; g.R.getStoryboardFormat=function(y){y=g.wo(this,{playerType:y});return RC(this,y).getStoryboardFormat()}; g.R.Un=function(y){y=g.wo(this,{playerType:y});return RC(this,y).getVideoData().Un()}; g.R.n0=function(y){y=(y||this.le()).getVideoData();if(l0(this))y=y===this.tj.playback.getVideoData();else a:{var t=this.mL;if(y===t.V.getVideoData()&&t.K.length)y=!0;else{t=g.p(t.K);for(var a=t.next();!a.done;a=t.next())if(y.F7===a.value.F7){y=!0;break a}y=!1}}return y}; g.R.KE=function(y,t,a,r,E,h,F,x){var U=l0(this);this.le().H4("appattl",{sstm:this.tj?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:U});U?(a=jL2(this.tj,y,t,a,r,E,h,F,x),y=(a==null?void 0:a.F7)||"",(this.B("html5_ssdai_new_decoration_logic")||this.VW().getVideoData().FH)&&this.VW().qT(x||"",t,(a==null?void 0:a.clientPlaybackNonce)||"")):y=xJN(this.mL,y,a,r,E,h);return y}; g.R.TE=function(y,t,a,r,E,h,F,x){if(l0(this)){var U;(U=this.tj)==null||jL2(U,y,t,a,r,E,h,F,x)}}; g.R.pB=function(y){(this.B("html5_ssdai_new_decoration_logic")||this.VW().getVideoData().FH)&&this.VW().qT(y,"","");var t;(t=this.tj)==null||t.pB(y)}; g.R.YK=function(y,t){y=y===void 0?-1:y;t=t===void 0?Infinity:t;l0(this)||wu7(this.mL,y,t)}; g.R.XH=function(y,t,a){if(l0(this)){var r=this.tj,E=r.V.F3({F7:y});E?(a===void 0&&(a=E.j_),mYn(r,E,t,a)):r.LL("Invalid_timelinePlaybackId_"+y+"_specified")}else{r=this.mL;E=null;for(var h=g.p(r.K),F=h.next();!F.done;F=h.next())if(F=F.value,F.F7===y){E=F;break}E?(a===void 0&&(a=E.j_),MF7(r,E,t,a)):Ec(r,"InvalidTimelinePlaybackId timelinePlaybackId="+y)}}; g.R.enqueueVideoByPlayerVars=function(y,t,a,r){a=a===void 0?Infinity:a;r=r===void 0?"":r;this.n0();y=new g.hI(this.j,y);r&&(y.F7=r);At7(this,y,t,a)}; g.R.queueNextVideo=function(y,t,a,r,E){a=a===void 0?NaN:a;y=this.preloadVideoByPlayerVars(y,t===void 0?1:t,a,r===void 0?"":r,E===void 0?"":E);t=this.le();y&&(this.B("html5_check_queue_on_data_loaded")?this.G().supportsGaplessShorts()&&t.getVideoData().W&&(a=this.wR,r=this.YV.L,a.D!==y&&(a.K=t,a.D=y,a.Y=1,a.V=y.getVideoData(),a.L=r,a.V.isLoaded()?a.J():a.V.subscribe("dataloaded",a.J,a))):(a=this.j.experiments.pJ().V.o7(l9),a=zUb(t,y,this.YV.L,a),a!=null?(t.H4("sgap",a),t.getVideoData().W&&t.uT(!1)): (y=y.getVideoData(),t=this.wR,t.V!==y&&(t.V=y,t.Y=1,y.isLoaded()?t.W():t.V.subscribe("dataloaded",t.W,t)))))}; g.R.xq=function(y,t,a,r){var E=this;a=a===void 0?0:a;r=r===void 0?0:r;RC(this,this.le()).Gx();WSV(this.YV,y,t,a,r).then(function(){E.Mr.hj("onQueuedVideoLoaded")},function(){})}; g.R.nA=function(){return this.YV.nA()}; g.R.PD=function(y){var t=this.YV.V;return t?t.dj(y):!1}; g.R.clearQueue=function(y,t){this.YV.clearQueue(y===void 0?!1:y,t===void 0?!1:t)}; g.R.loadVideoByPlayerVars=function(y,t,a,r,E,h){t=t===void 0?1:t;var F=this.VW();if(t===2&&this.nM().enableServerStitchedDai&&F&&!F.Fo())return F.H4("lvonss",{vid:(y==null?void 0:y.videoId)||"",ptype:t}),!1;var x=!1;F=new g.hI(this.j,y);F.G0=h;g.UJ(this.j)&&!F.Nh&&xd(this.dN);var U;h=this.dN;var C=(U=F.hF)!=null?U:"";h.timerName=C;this.dN.Ze("pl_i");this.B("web_player_early_cpn")&&F.clientPlaybackNonce&&this.dN.infoGel({clientPlaybackNonce:F.clientPlaybackNonce});qB1(F).supportsVp9Encoding===!1&& this.le().H4("noVp9enc",{});if(this.G().supportsGaplessShorts()){U=eUy(this.YV,F,t);if(U==null){Ma(this,-1);var z;((z=this.YV.V)==null?0:z.getVideoData().isAd())||u0(this);y=this.YV;y.app.G().B("html5_gapless_new_slr")?pm(y.app,"gaplessshortslooprange"):y.app.setLoopRange(null);y.app.getVideoData().oJ=!0;var O;(O=y.V)==null||O.JZ();var M;(M=y.V)==null||M.VP();a={yD:"gapless_to_next_video",seekSource:60,Zv:y.L.V};r=pV7(y);if(y.L.V){var L;E=((L=y.Y)==null?void 0:pC(L))||{};L=E.LZ;E=E.zU;E!=null&&L!= null&&(r=E-L+.001)}var w;(w=y.app.le())==null||w.seekTo(r,a);if(!y.app.getPlayerStateObject(t).isPlaying()){var d;(d=y.app.le())==null||d.playVideo(!0)}vA2(y,r);var k;(k=y.app.le())==null||k.Qa();y.Z();return!0}w=this.B("html5_shorts_gapless_preload_fallback");d=this.YV.V;w&&d&&!d.Qv()&&(k=d.getVideoData(),this.bJ.J.set(Vx(t,k),d,3600));this.YV.clearQueue(w);this.le().H4("sgap",{f:U})}if(E){for(;F.sG.length&&F.sG[0].isExpired();)F.sG.shift();w=F.sG.length-1;x=w>0&&E.K(F.sG[w])&&E.K(F.sG[w-1]);F.sG.push(E)}a|| (y&&p97(y)?(hh(this.j)&&!this.QQ&&(y.fetch=0),kg(this,y)):this.playlist&&kg(this,null),y&&(this.QQ=xH(!1,y.external_list)));this.Mr.publish("loadvideo");w=this.Uk(F,t,r);x&&this.Rm("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+F.sG.join()).replace(/[;:,]/g,"_"));return w}; g.R.preloadVideoByPlayerVars=function(y,t,a,r,E){t=t===void 0?1:t;a=a===void 0?NaN:a;E=E===void 0?"":E;r=t;var h=E,F=zD(y);if(r=this.bJ.J.get(r+"_"+F+"_"+h+"_"+ +(y.autonav==="1"||y.autonav===!0)+ +(y.autoplay==="1"||y.autoplay===!0||y.autoplay===1))||null)return r;y=new g.hI(this.j,y);E&&(y.F7=E);E=Vx(t,y);r=this.le();h=Vx(r.getPlayerType(),r.getVideoData());E===h?(r.Bp(!0),y.dispose(),a=null):(y.RR=!0,y.Xg=!0,r=Oc(this,t,y,!0),(t!==1||!sJ(this.j)||this.j.B("html5_allow_multiview_tile_preload")&& y.pM)&&r.Bp(!0),this.bJ.J.set(E,r,a||3600),a=r);return a}; g.R.setMinimized=function(y){this.visibility.setMinimized(y);(y=AgV(this.Ca))&&(this.isMinimized()?y.load():y.unload());this.Mr.publish("minimized")}; g.R.setInline=function(y){this.visibility.setInline(y)}; g.R.setInlinePreview=function(y){this.visibility.setInline(y)}; g.R.sX=function(y){skn(this,y)||this.visibility.sX(y)}; g.R.setSqueezeback=function(y){this.visibility.setSqueezeback(y)}; g.R.Gk=function(){var y,t=(y=this.mediaElement)==null?void 0:y.YE();t&&(this.j.Sn&&y6(Ti(function(){return document.exitFullscreen()}),function(){}),y6(Ti(function(){return fo(t)}),function(){}))}; g.R.mDf=function(){this.mediaElement.YE();this.mediaElement.YE().webkitPresentationMode==="picture-in-picture"?this.sX(!0):this.sX(!1)}; g.R.togglePictureInPicture=function(){this.le().togglePictureInPicture()}; g.R.Uk=function(y,t,a){t=t===void 0?1:t;uy("_start",this.dN.timerName)||g.EO(kj)(void 0,this.dN.timerName);var r=!1,E=tV7(this,t,y,!1);E?(r=!0,y.dispose(),E.getVideoData().pM&&E.H4("app_lv",{pdl:E.UT()})):(E=Oc(this,t,y,!0,a),(this.B("html5_onesie")||this.B("html5_load_before_stop"))&&E.Yu()&&E.Bp(),this.rr.stop(),t===1&&t!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,t),this.yq(E));E===this.VW()&&(this.j.NC=y.oauthToken);if(!E.Yu())return!1;if(E===this.VW())return this.Lc(1), y=Wf(this),r&&this.B("html5_player_preload_ad_fix")&&E.getPlayerType()===1&&E.UT()&&this.eP("dataloaded",E,E.getVideoData()),y;E.GA();return!0}; g.R.cueVideoByPlayerVars=function(y,t){var a=this;t=t===void 0?1:t;var r=this.VW();if(this.nM().enableServerStitchedDai&&r&&!r.Fo()&&y&&Object.keys(y).length>0)r.H4("qvonss",{vid:(y==null?void 0:y.videoId)||"",ptype:t});else if(y&&p97(y))if(this.VT=!0,kg(this,y),(y=g.sl(this.playlist))&&y.Fm())mD(this,y,t);else this.playlist.onReady(function(){fm(a)}); else{t||(t=this.getPresentingPlayerType());t===1&&this.kd();r=new g.hI(this.j,y);var E=g.bc(this.j)&&!this.j.Vv&&t===1&&!r.isAd()&&!r.Az;this.Mr.publish("cuevideo",t);E?(this.le().getVideoData().loading=!0,Jnd(r,y?y:{}).then(function(h){mD(a,h,t)}),r.dispose()):mD(this,r,t)}}; g.R.CI=function(y,t,a,r,E,h,F){if(!y&&!a)throw Error("Playback source is invalid");if(ct(this.j)||g.CF(this.j))return t=t||{},t.lact=du(),t.vis=this.Mr.getVisibilityState(),this.Mr.W4("onPlayVideo",{videoId:y,watchEndpoint:h,sessionData:t,listId:a}),!1;Qiu(this.dN);this.dN.reset();y={video_id:y};r&&(y.autoplay="1");r&&(y.autonav="1");h&&(y.player_params=h.playerParams);F&&(y.oauth_token=F);a?(y.list=a,this.loadPlaylist(y)):this.loadVideoByPlayerVars(y,1);return!0}; g.R.cuePlaylist=function(y,t,a,r){this.VT=!0;$sV(this,y,t,a,r)}; g.R.loadPlaylist=function(y,t,a,r){this.VT=!1;$sV(this,y,t,a,r)}; g.R.o1=function(){return this.Mr.isMutedByMutedAutoplay()?!1:this.bJ.h9?!0:!(!this.playlist||!this.playlist.hasNext())}; g.R.fz=J1(7); g.R.nextVideo=function(y,t){var a=g.Ou(this.VW().getVideoData());g.Y6(this.Mr)&&a?this.CI(a.videoId,t?a.ZN:a.sessionData,a.playlistId,t,void 0,a.Bu||void 0):this.QQ?this.Mr.hj("onPlaylistNext"):this.getPresentingPlayerType()===3?o9(this.Ca).nextVideo():!this.playlist||hh(this.j)&&!this.Mr.isFullscreen()||(this.playlist.hasNext(y)&&uRx(this.playlist,ey2(this.playlist)),this.playlist.loaded?(y=t&&this.j.B("html5_player_autonav_logging"),t&&this.Mr.publish("playlistautonextvideo"),this.Uk(g.sl(this.playlist,void 0, t,y),1)):this.VT=!1)}; g.R.previousVideo=function(y){this.QQ?this.Mr.hj("onPlaylistPrevious"):this.getPresentingPlayerType()===3?o9(this.Ca).Kk():!this.playlist||hh(this.j)&&!this.Mr.isFullscreen()||(this.playlist.hasPrevious(y)&&uRx(this.playlist,lpu(this.playlist)),this.playlist.loaded?this.Uk(g.sl(this.playlist),1):this.VT=!1)}; g.R.playVideoAt=function(y){this.QQ?this.Mr.hj("onPlaylistIndex",y):this.playlist&&(this.playlist.loaded?this.Uk(g.sl(this.playlist,y),1):this.VT=!1,uRx(this.playlist,y))}; g.R.getPlaylist=function(){return this.playlist}; g.R.F_=J1(15);g.R.Ir=function(y){this.ML=g.op(this.ML,function(h){return h.id!==y}); for(var t=this.VW(),a=t.Q2(),r=0;r0&&(U=Math.floor(C/1E3))}U=t?t.iK:U;var z={AD_BLOCK:this.V++,AD_BREAK_LENGTH:U,AUTONAV_STATE:Hf(this.player.G()),CA_TYPE:"image",CPN:x.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.ZQ()*1E3,LACT:du(),LIVE_INDEX:t?this.Y++:1,LIVE_TARGETING_CONTEXT:t&&t.context?t.context:"",MIDROLL_POS:h? Math.round(h.start/1E3):0,MIDROLL_POS_MS:h?Math.round(h.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.ZE().Zf().height,P_W:this.player.ZE().Zf().width,YT_REMOTE:E?E.join(","):""},O=Mt(Lt);Object.keys(O).forEach(function(L){O[L]!=null&&(z[L.toUpperCase()]=O[L].toString())}); a!==""&&(z.BISCOTTI_ID=a);a={};OO(y)&&(a.sts="20411",(t=this.player.G().forcedExperiments)&&(a.forced_experiments=t));var M=UO(g.l4(y,z),a);return M.split("?").length!==2?ev(Error("Invalid AdBreakInfo URL")):g.wY(this.player.G(),x==null?void 0:x.oauthToken).then(function(L){if(L&&zc()){var w=i6();Kf(w,L)}L=r.player.RS(w);w=ctF(r,M,z,x.isMdxPlayback,F);return g.oW(L,w,"/youtubei/v1/player/ad_break").then(function(d){return d})})}; b0.prototype.reset=function(){this.Y=this.V=1};g.N(qA7,b0); qA7.prototype.K=function(y,t,a){t=t===void 0?{}:t;var r=t.v7;var E=t.vl;var h=t.cueProcessedMs;a=a===void 0?"":a;t=this.V;this.V++;var F=this.player.G().B("h5_disable_macro_substitution_in_get_ad_break")?y:YAz(this,y,{v7:r,vl:E,cueProcessedMs:h},a,t);if(F.split("?").length!==2)return Math.random()<.1&&g.ls(Error("Invalid AdBreakInfo URL")),ev(Error("Invalid AdBreakInfo URL"));var x=this.player.getVideoData(1).isMdxPlayback,U=a;a=nWu.exec(F);a=a!=null&&a.length>=2?a[1]:"";y=msF.test(F);var C=Jt2.exec(F); C=C!=null&&C.length>=2?C[1]:"";var z=oWu.exec(F);z=z!=null&&z.length>=2&&!Number.isNaN(Number(z[1]))?Number(z[1]):1;var O=Hr2.exec(F);O=O!=null&&O.length>=2?O[1]:"0";var M=Gu(this.player.G().bW),L=g.Gz(this.player.getVideoData(1).AF,!0);vWz(this,L,F,U===""?"":U,this.player.G(),this.player.getVideoData(1));U={splay:!1,lactMilliseconds:String(du()),playerHeightPixels:Math.trunc(this.player.ZE().Zf().height),playerWidthPixels:Math.trunc(this.player.ZE().Zf().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20411,autonavState:Hf(this.player.G())};if(x){x={};var w=this.player.G().T0;llx(x,w?w.join(","):"")&&(U.mdxContext=x)}if(x=br7.includes(M)?void 0:g.BE("PREF")){w=x.split(RegExp("[:&]"));for(var d=0,k=w.length;d1&&e[1].toUpperCase()==="TRUE"){L.user.lockedSafetyMode=!0;break}}U.autoCaptionsDefaultOn=VVb(x)}F=BSz.exec(F);(F=F!=null&&F.length>=2?F[1]:"")&&C&&(L.user.credentialTransferTokens= [{token:F,scope:"VIDEO"}]);F={contentPlaybackContext:U};U=this.player.getVideoData(1).getGetAdBreakContext();x=this.player.getVideoData(1).clientPlaybackNonce;w=h!==void 0?Math.round(h).toString():void 0;d=(r==null?0:r.context)?r.context:void 0;k=0;h&&E&&!r&&(E=E.end-E.start,E>0&&(k=Math.floor(E/1E3)));r=(r=Math.trunc((r?r.iK:k)*1E3))?String(r):void 0;E=this.player.ZQ()*1E3;E=Number.isNaN(E)?0:Math.trunc(E);t={adBlock:t,params:a,breakIndex:z,breakPositionMs:O,clientPlaybackNonce:x,topLevelDomain:M, isProxyAdTagRequest:y,context:L,overridePlaybackContext:F,cueProcessedMs:w,videoId:C?C:void 0,liveTargetingParams:d,breakLengthMs:r,driftFromHeadMs:E?String(E):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:U?U:void 0};return Ds2(this,t)};var se9={g8r:"replaceUrlMacros",DNE:"onAboutThisAdPopupClosed",PZf:"executeCommand"};gW7.prototype.FA=function(){return"adPingingEndpoint"}; gW7.prototype.Ex=function(y,t,a){pOH(this.Um.get(),y,t,a)};iry.prototype.FA=function(){return"changeEngagementPanelVisibilityAction"}; iry.prototype.Ex=function(y){this.C.W4("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:y})};K41.prototype.FA=function(){return"loggingUrls"}; K41.prototype.Ex=function(y,t,a){y=g.p(y);for(var r=y.next();!r.done;r=y.next())r=r.value,pOH(this.Um.get(),r.baseUrl,t,a,r.attributionSrcMode)};g.N(TSn,g.H);GXy.prototype.QW=function(y,t){var a={};t=Object.assign({},t,(a.cc=this.dK.fF(),a));this.dK.C.H4(y,t)};g.N(cf,g.H);g.R=cf.prototype;g.R.addListener=function(y){this.listeners.push(y)}; g.R.removeListener=function(y){this.listeners=this.listeners.filter(function(t){return t!==y})}; g.R.Jw=function(y,t,a,r,E,h,F,x){if(y==="")Ug("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(y!==this.V||a){this.V=y;this.v4.get().Jw(y,t,a,r,E,h,F,x);this.B4.get().Jw(y,t,a,r,E,h,F,x);var U;(U=this.ye)==null||U.get().Jw(y,t,a,r,E,h,F,x);this.K.Jw(y,t,a,r,E,h,F,x);U=g.p(this.listeners);for(var C=U.next();!C.done;C=U.next())C.value.Jw(y,t,a,r,E,h,F,x)}else Ug("Duplicate content video loaded signal")}; g.R.u71=function(){this.V&&this.KI(this.V)}; g.R.KI=function(y){this.V=void 0;for(var t=g.p(this.listeners),a=t.next();!a.done;a=t.next())a.value.KI(y)};qa.prototype.zN=function(y,t,a,r,E){Zrd(this);this.L=!t&&a===0;var h=this.C.getVideoData(1),F=this.C.getVideoData(2);h&&(this.contentCpn=h.clientPlaybackNonce,this.videoId=h.videoId,this.V=h.J);F&&(this.adCpn=F.clientPlaybackNonce,this.adVideoId=F.videoId,this.adFormat=F.adFormat);this.D=y;r<=0?(Zrd(this),this.L=!t&&a===0):(this.actionType=this.L?t?"unknown_type":"video_to_ad":t?"ad_to_video":"ad_to_ad",this.videoStreamType=E?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Y=!0,uy("_start",this.actionType)&&a6n(this)))}; qa.prototype.reset=function(){return new qa(this.C)};g.N(Yg,g.H);Yg.prototype.addCueRange=function(y,t,a,r,E,h,F,x,U){h=h===void 0?3:h;F=F===void 0?1:F;this.V.has(y)?Ug("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:y}):(y=new r6n(y,t,a,r,h,x,U),this.V.set(y.id,{vl:y,listener:E,Iq:F}),this.C.Xm([y],F))}; Yg.prototype.removeCueRange=function(y){var t=this.V.get(y);t?(this.C.RY([t.vl],t.Iq),this.V.delete(t.vl.id)):Ug("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:y})}; Yg.prototype.onCueRangeEnter=function(y){if(this.V.has(y.id))this.V.get(y.id).listener.onCueRangeEnter(y.id)}; Yg.prototype.onCueRangeExit=function(y){if(this.V.has(y.id))this.V.get(y.id).listener.onCueRangeExit(y.id)}; g.N(r6n,g.BK);DU.prototype.addPlayerResponseForAssociation=function(y){this.C.addPlayerResponseForAssociation(y)};go.prototype.gX=function(y){this.C.gX(y)}; go.prototype.Zx=function(y){var t=g.w2.apply(1,arguments);y==="onAdStart"||y==="onAdEnd"?this.C.v1.apply(this.C,[y].concat(g.i7(t))):this.C.W4.apply(this.C,[y].concat(g.i7(t)))};var LLu=null;g.N(Ol7,g.FM);Ol7.prototype.Gz=function(y){return this.V.hasOwnProperty(y)?this.V[y].Gz():{}}; g.Wd("ytads.bulleit.getVideoMetadata",function(y){return Km().Gz(y)}); g.Wd("ytads.bulleit.triggerExternalActivityEvent",function(y,t,a){var r=Km();a=zoy(a);a!==null&&r.publish(a,{queryId:y,viewabilityString:t})});g.R=IC.prototype;g.R.JV=function(y,t){if(!this.V.has(y))return{};if(t==="seek"){t=!1;t=t===void 0?!1:t;var a=un(az).VE(y,{});a?Gr(a):t&&(y=un(az).rX(null,g8(),!1,y),y.yb=3,DE7([y]));return{}}t=wOF(t);if(t===null)return{};var r=this.C.ZL();if(!r)return{};var E=this.C.getPresentingPlayerType(!0);if((a=this.C.getVideoData(E))==null||!a.isAd())return{};a={opt_adElement:r,opt_fullscreen:this.v4.get().isFullscreen()};return DIz(t,y,a)}; g.R.MY=function(y,t,a,r,E){this.V.has(y)&&(r<=0||E<=0||un(az).MY(y,t,a,r,E))}; g.R.kH=function(y){var t;(t=this.V.get(y.queryId))==null||t.kH()}; g.R.Mm=function(y){var t;(t=this.V.get(y.queryId))==null||t.Mm()}; g.R.BT=function(y){var t;(t=this.V.get(y.queryId))==null||t.BT()}; g.R.yT=function(y){var t;(t=this.V.get(y.queryId))==null||t.yT()}; g.R.qm=function(y){var t;(t=this.V.get(y.queryId))==null||t.qm()};WLx.prototype.send=function(y,t,a,r){try{jxd(this,y,t,a,r===void 0?!1:r)}catch(E){}};g.N(SCy,WLx);Qx7.prototype.send=function(y,t,a,r){var E=!1;try{if(r==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||r==="ATTRIBUTION_SRC_MODE_XHR_OPTION")E=!0,y=nMn(y);r=E;var h=g.fE(y);if(h[1]==="https")var F=y;else h[1]="https",F=k0("https",h[2],h[3],h[4],h[5],h[6],h[7]);var x=lN7(F);h=[];var U=fI7(F)&&this.YG.get().C.G().experiments.Nr("add_auth_headers_to_remarketing_google_dot_com_ping");if(OO(F)||U)h.push({headerType:"USER_AUTH"}),h.push({headerType:"PLUS_PAGE_ID"}),h.push({headerType:"VISITOR_ID"}),h.push({headerType:"EOM_VISITOR_ID"}), h.push({headerType:"AUTH_USER"}),h.push({headerType:"DATASYNC_ID"});this.V.send({baseUrl:F,scrubReferrer:x,headers:h},t,a,r)}catch(C){}};te.prototype.V2=function(){return this.C.V2(1)};g.N(av,g.H);g.R=av.prototype;g.R.fF=function(){return this.C.getVideoData(1).clientPlaybackNonce}; g.R.addListener=function(y){this.listeners.push(y)}; g.R.removeListener=function(y){this.listeners=this.listeners.filter(function(t){return t!==y})}; g.R.Jw=function(){this.S5.clear();this.rg=null;this.Jc.get().clear()}; g.R.KI=function(){}; g.R.Z0m=function(y,t,a){t.videoId==="nPpU29QrbiU"&&this.C.H4("ads_ssm_vdc_s",{pt:a,dvt:y});AY(this.YG.get())&&y!=="dataloaded"||J6x(this,t,a)}; g.R.UDG=function(y,t){y!==void 0&&(this.rg=y,t===void 0?Ug("Expected ad video start time on SS video changed"):this.S5.set(y,t));var a=this.C.getPresentingPlayerType(!0),r=this.C.getVideoData(a),E;y===void 0?E=null:E=this.Jc.get().V.get(y)||null;this.C.getVideoData(1).H4("ads_ssvc",{pt:a,cpn:r==null?void 0:r.clientPlaybackNonce,crtt:this.C.getCurrentTime(1,!1),atlh:this.C.isAtLiveHead(),adstt:t,pid:y,slid:E==null?void 0:E.layoutId});r?J6x(this,r,a):Ug("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.C.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:y})}; g.R.PV=function(y,t){var a=y.author,r=y.clientPlaybackNonce,E=y.isListed,h=y.F7,F=y.title,x=y.VQ,U=y.Rs,C=y.isMdxPlayback,z=y.MH,O=y.mdxEnvironment,M=y.isAutonav,L=y.UQ,w=y.Nh,d=y.oD,k=y.videoId||"",e=y.profilePicture||"",v=y.CD||"",l=y.yR()||!1,V=y.NP()||!1;y=y.aG||void 0;h=this.Jc.get().V.get(h)||{layoutId:null,slotId:null};var B=this.C.getVideoData(1),b=B.US();B=B.getPlayerResponse();t=1E3*this.C.getDuration(t);var Z=1E3*this.C.getDuration(1),aV,rx,Fb=(B==null?void 0:(aV=B.playerConfig)==null? void 0:(rx=aV.daiConfig)==null?void 0:rx.enableDai)||!1,zN,En;aV=(B==null?void 0:(zN=B.playerConfig)==null?void 0:(En=zN.daiConfig)==null?void 0:En.enablePreroll)||!1;return Object.assign({},h,{videoId:k,author:a,clientPlaybackNonce:r,r$:t,vy:Z,daiEnabled:Fb,yF:aV,isListed:E,US:b,profilePicture:e,title:F,CD:v,VQ:x,Rs:U,aG:y,isMdxPlayback:C,MH:z,mdxEnvironment:O,isAutonav:M,UQ:L,Nh:w,oD:d,yR:l,NP:V})}; g.R.I5=function(){this.listeners.length=0;this.QC=null;g.H.prototype.I5.call(this)};g.N(rr,g.H);g.R=rr.prototype;g.R.Jw=function(){var y=this;this.uB=iv(function(){y.C.Qv()||y.C.K$("ad",1)})}; g.R.KI=function(){}; g.R.addListener=function(y){this.listeners.push(y)}; g.R.removeListener=function(y){this.listeners=this.listeners.filter(function(t){return t!==y})}; g.R.PZ=function(){}; g.R.playVideo=function(){this.C.playVideo()}; g.R.pauseVideo=function(){this.C.pauseVideo()}; g.R.resumeVideo=function(y){this.Lb(y)&&this.C.playVideo()}; g.R.Lb=function(y){return this.C.getPlayerState(y)===2}; g.R.getCurrentTimeSec=function(y,t){var a=this.B4.get().rg;return y!==2||t||a===null?this.C.getCurrentTime(y,t):he(this,a)}; g.R.getVolume=function(){return this.C.getVolume()}; g.R.isMuted=function(){return this.C.isMuted()}; g.R.getPresentingPlayerType=function(){return this.C.getPresentingPlayerType(!0)}; g.R.getPlayerState=function(y){return this.C.getPlayerState(y)}; g.R.getGetAdBreakContext=function(){return this.C.getGetAdBreakContext()}; g.R.isFullscreen=function(){return this.C.isFullscreen()}; g.R.isAtLiveHead=function(){return this.C.isAtLiveHead()}; g.R.a_=function(y){this.C.a_(y)}; g.R.SYm=function(){var y=this.C.getPresentingPlayerType(!0),t=this.getCurrentTimeSec(y,!1);if(y===2){y=g.p(this.listeners);for(var a=y.next();!a.done;a=y.next())a.value.rW(t)}else if(y===1)for(y=g.p(this.CE),a=y.next();!a.done;a=y.next())a.value.PZ(t)}; g.R.yjv=function(y){for(var t=g.p(this.listeners),a=t.next();!a.done;a=t.next())a.value.n$(y,this.getPresentingPlayerType())}; g.R.onFullscreenToggled=function(y){for(var t=g.p(this.listeners),a=t.next();!a.done;a=t.next())a.value.onFullscreenToggled(y)}; g.R.onVolumeChange=function(){for(var y=g.p(this.listeners),t=y.next();!t.done;t=y.next())t.value.onVolumeChange()}; g.R.A9=function(){for(var y=this.C.isMinimized(),t=g.p(this.listeners),a=t.next();!a.done;a=t.next())a.value.A9(y)}; g.R.J1=function(y){for(var t=g.p(this.listeners),a=t.next();!a.done;a=t.next())a.value.J1(y)}; g.R.Gl=function(){for(var y=this.C.ZE().Zf(),t=g.p(this.listeners),a=t.next();!a.done;a=t.next())a.value.CL(y)}; g.R.Be=function(y){for(var t=g.p(this.listeners),a=t.next();!a.done;a=t.next())a.value.Be(y)}; g.R.fL=function(){for(var y=g.p(this.listeners),t=y.next();!t.done;t=y.next())t.value.fL()};g.N(c6F,g.H);g.N(xV,g.H);xV.prototype.I5=function(){this.MN.Qv()||this.MN.get().removeListener(this);g.H.prototype.I5.call(this)};s8.prototype.fetch=function(y){var t=y.Eo;return this.V.fetch(y.kQ,{v7:y.v7===void 0?void 0:y.v7,vl:t,cueProcessedMs:y.cueProcessedMs===void 0?0:y.cueProcessedMs}).then(function(a){return qCx(a,t)})};g.N($V,g.H);g.R=$V.prototype;g.R.addListener=function(y){this.listeners.push(y)}; g.R.removeListener=function(y){this.listeners=this.listeners.filter(function(t){return t!==y})}; g.R.eg=function(y){YCn(this,y,1)}; g.R.onAdUxClicked=function(y,t){U8(this,function(a){a.Si(y,t)})}; g.R.cZ=function(y){U8(this,function(t){t.Lp(y)})}; g.R.IK=function(y){U8(this,function(t){t.U_(y)})}; g.R.Rd7=function(y){U8(this,function(t){t.Ia(y)})};CO.prototype.reduce=function(y){switch(y.event){case "unknown":return}var t=y.identifier;var a=this.V[t];a?t=a:(a={rT:null,Tb:-Infinity},t=this.V[t]=a);a=y.startSecs+y.V/1E3;if(!(a=this.V.startSecs&&a.startSecs<=this.V.startSecs+this.V.iK)){var r=void 0;if(x4(this.YG.get())&&a.identifier!==((r=this.V)==null?void 0:r.identifier)){var E=r=void 0,h=void 0,F=void 0;Gy(this.Um.get(),"ocud","ccpi."+a.identifier+";ccpe."+a.event+";ccps."+a.startSecs+";\n ccpd."+a.iK+";pcpi."+((r=this.V)==null?void 0:r.identifier)+ ";pcpe."+((E=this.V)==null?void 0:E.event)+";\n pcps."+((h=this.V)==null?void 0:h.startSecs)+";pcpd."+((F=this.V)==null?void 0:F.iK)+";")}r=void 0;a.identifier!==((r=this.V)==null?void 0:r.identifier)&&Ug("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.V=a,il1(this,a)}}; g.R.I5=function(){this.K!=null&&(this.K.unsubscribe("cuepointupdated",this.xe,this),this.K=null);this.listeners.length=0;this.A7.length=0;g.H.prototype.I5.call(this)};g.R=LO.prototype;g.R.KE=function(y,t,a,r,E,h,F,x){return this.C.KE(y,t,a,r,E,h,F,x)}; g.R.YK=function(y,t){this.C.YK(y,t)}; g.R.XH=function(y,t,a){this.C.XH(y,t,a)}; g.R.pB=function(y){this.C.pB(y)}; g.R.TE=function(y,t,a,r,E,h,F,x){this.C.TE(y,t,a,r,E,h,F,x)}; g.R.UG=function(y){return this.C.UG(y)}; g.R.finishSegmentByCpn=function(y,t,a){a=T52(a);this.C.finishSegmentByCpn(y,t,a)};g.N(M1,g.H);g.N(Zl1,g.H);g.N(yzN,g.H);g.N(tz7,g.H);g.N(avF,g.H);g.N(rzn,g.H);g.N(hny,g.H);hny.prototype.Y=function(){return this.K};g.N(Fl7,DT); Fl7.prototype.Y=function(y){var t=y.content;if(t.componentType==="shopping-companion")switch(y.actionType){case 1:case 2:y=this.V.getVideoData(1);this.V.W4("updateKevlarOrC3Companion",{contentVideoId:y&&y.videoId,shoppingCompanionCarouselRenderer:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.V,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:this.V.W4("updateKevlarOrC3Companion",{})}else if(t.componentType==="action-companion")switch(y.actionType){case 1:case 2:y=this.V.getVideoData(1); this.V.W4("updateKevlarOrC3Companion",{contentVideoId:y&&y.videoId,actionCompanionAdRenderer:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.V,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t.renderer&&(t=this.V.getVideoData(1),this.V.W4("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId})),this.V.W4("updateKevlarOrC3Companion",{})}else if(t.componentType==="image-companion")switch(y.actionType){case 1:case 2:y=this.V.getVideoData(1);this.V.W4("updateKevlarOrC3Companion", {contentVideoId:y&&y.videoId,imageCompanionAdRenderer:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.V,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t=this.V.getVideoData(1),this.V.W4("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId}),this.V.W4("updateKevlarOrC3Companion",{})}else if(t.componentType==="top-banner-image-text-icon-buttoned")switch(y.actionType){case 1:case 2:y=this.V.getVideoData(1);this.V.W4("updateKevlarOrC3Companion", {contentVideoId:y&&y.videoId,topBannerImageTextIconButtonedLayoutViewModel:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.V,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t.renderer&&(t=this.V.getVideoData(1),this.V.W4("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId})),this.V.W4("updateKevlarOrC3Companion",{})}else if(t.componentType==="banner-image")switch(y.actionType){case 1:case 2:y=this.V.getVideoData(1);this.V.W4("updateKevlarOrC3Companion", {contentVideoId:y&&y.videoId,bannerImageLayoutViewModel:t.renderer,layoutId:t.layoutId,macros:t.macros,onLayoutVisibleCallback:t.V,interactionLoggingClientData:t.interactionLoggingClientData});break;case 3:t=this.V.getVideoData(1),this.V.W4("updateKevlarOrC3Companion",{contentVideoId:t&&t.videoId}),this.V.W4("updateKevlarOrC3Companion",{})}else if(t.componentType==="ads-engagement-panel")switch(t=t.renderer,y.actionType){case 1:case 2:this.V.W4("updateEngagementPanelAction",t.addAction);this.V.W4("changeEngagementPanelVisibility", t.expandAction);break;case 3:this.V.W4("changeEngagementPanelVisibility",t.hideAction),this.V.W4("updateEngagementPanelAction",t.removeAction)}else if(t.componentType==="ads-engagement-panel-layout"){var a=t.renderer;switch(y.actionType){case 1:case 2:this.V.W4("updateEngagementPanelAction",{action:m9(a.addAction),layoutId:t.layoutId,onLayoutVisibleCallback:t.V,interactionLoggingClientData:t.interactionLoggingClientData});this.V.W4("changeEngagementPanelVisibility",m9(a.expandAction));break;case 3:this.V.W4("changeEngagementPanelVisibility", m9(a.hideAction)),this.V.W4("updateEngagementPanelAction",{action:m9(a.removeAction)})}}};g.N(Azd,ya);g.R=Azd.prototype;g.R.init=function(y,t,a){ya.prototype.init.call(this,y,t,a);g.ry(this.Y,"stroke-dasharray","0 "+this.K);this.Y.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.L.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.R.clear=function(){this.hide()}; g.R.hide=function(){aa(this);ya.prototype.hide.call(this)}; g.R.show=function(){tf(this);ya.prototype.show.call(this)}; g.R.du=function(){this.hide()}; g.R.DQ=function(){if(this.V){var y=this.V.getProgressState();y!=null&&y.current!=null&&g.ry(this.Y,"stroke-dasharray",y.current/y.seekableEnd*this.K+" "+this.K)}};g.N(xF7,CL);g.R=xF7.prototype; g.R.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);if(t.image&&t.image.thumbnail)if(t.headline)if(t.description)if(t.backgroundImage&&t.backgroundImage.thumbnail)if(t.actionButton&&g.P(t.actionButton,g.j7))if(y=t.durationMilliseconds||0,typeof y!=="number"||y<=0)g.pK(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+y));else if(t.navigationEndpoint){var r=this.api.getVideoData(2);if(r!=null){var E=t.image.thumbnail.thumbnails;E!=null&& E.length>0&&g.TJ(g.DV(E[0].url))&&(E[0].url=r.profilePicture,g.TJ(g.DV(r.profilePicture))&&GkH("VideoPlayer",239976093,"Expected non-empty profile picture."));E=t.backgroundImage.thumbnail.thumbnails;E!=null&&E.length>0&&g.TJ(g.DV(E[0].url))&&(E[0].url=r.Qs());E=t.headline;E!=null&&g.TJ(g.DV(E.text))&&(E.text=r.author)}this.Z.init(Ei("ad-image"),t.image,a);this.L.init(Ei("ad-text"),t.headline,a);this.Y.init(Ei("ad-text"),t.description,a);this.C1.init(Ei("ad-image"),t.backgroundImage,a);r=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.L.element.classList.add("ytp-ad-action-interstitial-headline-light");this.Y.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.G().B("enable_default_mono_cta_migration_web_client")?r.push("ytp-ad-action-interstitial-action-button-mono-dark"):r.push("ytp-ad-action-interstitial-action-button-dark");this.api.G().K&&(r.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.G().B("enable_default_mono_cta_migration_web_client")?r.push("ytp-ad-action-interstitial-action-button-mono-dark"):r.push("ytp-ad-action-interstitial-action-button-dark"));this.api.G().B("enable_unified_action_endcap_on_web")&&!this.api.G().K&&(this.api.G().B("enable_default_mono_cta_migration_web_client")?r.push("ytp-ad-action-interstitial-action-button-unified-mono"):r.push("ytp-ad-action-interstitial-action-button-unified"),this.JF.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.Z.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.T7.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.mH.classList.add("ytp-ad-action-interstitial-card-unified"),this.Vv.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Y.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.d0.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.Ff.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.yv.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new VV(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,r);g.c(this,this.actionButton);this.actionButton.g0(this.JF);this.actionButton.init(Ei("button"),g.P(t.actionButton,g.j7),a);Dw(this.actionButton.element);r=K5(this.actionButton.element);i4(this.actionButton.element, r+" This link opens in new tab");this.navigationEndpoint=t.navigationEndpoint;this.D.N(this.Ff,"click",this.Pc,this);this.D.N(this.Vv,"click",this.Pc,this);this.api.G().K||this.D.N(this.d0,"click",this.Pc,this);this.V=this.N9?new d0(this.api,y):new Xt(y);g.c(this,this.V);if(t.skipButton){(y=g.P(t.skipButton,QVU))&&this.V&&(this.skipButton=new LD(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.V,this.Aq),g.c(this,this.skipButton),this.skipButton.g0(this.element),this.skipButton.init(Ei("skip-button"), y,a));if(a=t.adBadgeRenderer)if(a=g.P(a,Sne))y=new Pm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,!0,!0),y.g0(this.yv),y.init(Ei("simple-ad-badge"),a,this.macros),g.c(this,y);if(a=t.adInfoRenderer)if(a=g.P(a,f_))y=new TF(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.element,void 0,!0),y.g0(this.yv),y.init(Ei("ad-info-hover-text-button"),a,this.macros),g.c(this,y)}else t.nonskippableOverlayRenderer&&(y=g.P(t.nonskippableOverlayRenderer,Wo))&&this.V&&(this.K= new hf(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.V,!1),g.c(this,this.K),this.K.g0(this.element),this.K.init(Ei("ad-preview"),y,a));t.countdownRenderer&&(t=t.countdownRenderer,g.P(t,vuF)&&this.V&&(a=new Azd(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.V),g.c(this,a),a.g0(this.element),a.init(Ei("timed-pie-countdown"),g.P(t,vuF),this.macros)));this.show();this.element.focus()}else g.pK(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.pK(Error("AdActionInterstitialRenderer has no button."));else g.pK(Error("AdActionInterstitialRenderer has no background AdImage."));else g.pK(Error("AdActionInterstitialRenderer has no description AdText."));else g.pK(Error("AdActionInterstitialRenderer has no headline AdText."));else g.pK(Error("AdActionInterstitialRenderer has no image."))}; g.R.clear=function(){g.V1(this.D);this.hide()}; g.R.show=function(){sK1(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.K&&this.K.show();CL.prototype.show.call(this)}; g.R.hide=function(){sK1(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.K&&this.K.hide();CL.prototype.hide.call(this)}; g.R.Pc=function(){this.navigationEndpoint&&(this.layoutId?this.ue.executeCommand(this.navigationEndpoint,this.layoutId):g.pK(Error("Missing layoutId for ad action interstitial.")))};var Ohx={iconType:"CLOSE"},N1=new g.F1(320,63);g.N(zn7,CL);g.R=zn7.prototype; g.R.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);this.D=t;this.Z=g.hB(this.D.onClickCommands||[]);this.yv=this.D.onErrorCommand||null;if(y=this.D.contentSupportedRenderer)y=this.D.contentSupportedRenderer,t=this.D.adInfoRenderer||null,g.P(y,fzq)?(this.L=g.d4("ytp-ad-overlay-ad-info-button-container",this.Y.element),Llu(this,t),y=wB7(this,g.P(y,fzq))):g.P(y,Wd7)?(this.L=g.d4("ytp-ad-overlay-ad-info-button-container",this.K.element),Llu(this,t),y=Rn1(this,g.P(y,Wd7))):g.P(y,jV9)?(this.L= g.d4("ytp-ad-overlay-ad-info-button-container",this.V.element),Llu(this,t),y=PE7(this,g.P(y,jV9))):(g.pK(Error("InvideoOverlayAdRenderer content could not be initialized.")),y=!1);y&&(this.show(),NWb(this,!0))}; g.R.clear=function(){NWb(this,!1);this.Ff.reset();this.Vv=0;this.Y.hide();this.logVisibility(this.Y.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.V.hide();this.logVisibility(this.V.element,!1);this.hide();this.dispose()}; g.R.uCX=function(){this.JF&&(this.layoutId?this.ue.executeCommand(this.JF,this.layoutId):g.pK(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.R.jg=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var y=this.D.closeButton.buttonRenderer;if(y.serviceEndpoint){y=[y.serviceEndpoint];break a}}y=[]}y=g.p(y);for(var t=y.next();!t.done;t=y.next())t=t.value,this.layoutId?this.ue.executeCommand(t,this.layoutId):g.pK(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.R.NNm=function(){this.C1||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.R.uo=function(){this.C1||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.uo("invideo-overlay")}; g.R.TN5=function(y){y.target===this.L&&g.d4("ytp-ad-button",this.T7.element).click()};g.N(dF2,ya);g.R=dF2.prototype;g.R.init=function(y,t,a){ya.prototype.init.call(this,y,t,a);y=t.durationMs;this.Y=y==null||y===0?0:y+this.V.getProgressState().current*1E3;if(t.text)var r=t.text.templatedAdText;else t.staticMessage&&(r=t.staticMessage);this.messageText.init(Ei("ad-text"),r,a);this.messageText.g0(this.K.element);this.D.show(100);this.show()}; g.R.clear=function(){this.hide()}; g.R.hide=function(){XBn(this,!1);ya.prototype.hide.call(this);this.K.hide();this.messageText.hide();aa(this)}; g.R.show=function(){XBn(this,!0);ya.prototype.show.call(this);tf(this);this.K.show();this.messageText.show()}; g.R.du=function(){this.hide()}; g.R.DQ=function(){if(this.V!=null){var y=this.V.getProgressState();y!=null&&y.current!=null&&(y=1E3*y.current,!this.Vv&&y>=this.Y?(this.D.hide(),this.Vv=!0):this.messageText&&this.messageText.isTemplated()&&(y=Math.max(0,Math.ceil((this.Y-y)/1E3)),y!==this.L&&(ZT(this.messageText,{TIME_REMAINING:String(y)}),this.L=y)))}};g.N(k$N,CL);g.R=k$N.prototype; g.R.init=function(y,t,a){CL.prototype.init.call(this,y,t,{});t.image&&t.image.thumbnail?t.headline?t.description?t.actionButton&&g.P(t.actionButton,g.j7)?(this.Y.init(Ei("ad-image"),t.image,a),this.K.init(Ei("ad-text"),t.headline,a),this.D.init(Ei("ad-text"),t.description,a),this.actionButton=new VV(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,["ytp-ad-underlay-action-button"]),t.backgroundColor&&g.ry(this.element,"background-color",g.oa(t.backgroundColor)),g.c(this,this.actionButton), this.actionButton.g0(this.L),this.actionButton.init(Ei("button"),g.P(t.actionButton,g.j7),a),y=g.Gw(this.api.G().experiments,"player_underlay_video_width_fraction"),this.api.G().B("place_shrunken_video_on_left_of_player")?(t=this.V,g.sz(t,"ytp-ad-underlay-left-container"),g.Al(t,"ytp-ad-underlay-right-container"),g.ry(this.V,"margin-left",Math.round((y+.02)*100)+"%")):(t=this.V,g.sz(t,"ytp-ad-underlay-right-container"),g.Al(t,"ytp-ad-underlay-left-container")),g.ry(this.V,"width",Math.round((1-y- .04)*100)+"%"),this.api.al()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Ru.bind(this)),this.api.addEventListener("resize",this.TT.bind(this))):g.pK(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.pK(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.pK(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.pK(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.R.show=function(){fv1(!0);this.actionButton&&this.actionButton.show();CL.prototype.show.call(this)}; g.R.hide=function(){fv1(!1);this.actionButton&&this.actionButton.hide();CL.prototype.hide.call(this)}; g.R.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ru.bind(this));this.api.removeEventListener("resize",this.TT.bind(this));this.hide()}; g.R.onClick=function(y){CL.prototype.onClick.call(this,y);this.actionButton&&g.Vu(this.actionButton.element,y.target)&&this.api.pauseVideo()}; g.R.Ru=function(y){y==="transitioning"?(this.V.classList.remove("ytp-ad-underlay-clickable"),this.show()):y==="visible"?this.V.classList.add("ytp-ad-underlay-clickable"):y==="hidden"&&(this.hide(),this.V.classList.remove("ytp-ad-underlay-clickable"))}; g.R.TT=function(y){y.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):y.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.ry(this.K.element,"font-size",y.width/40+"px")};g.N(dr,CL); dr.prototype.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);t.toggledLoggingParams&&(this.toggledLoggingParams=t.toggledLoggingParams);t.answer&&g.P(t.answer,g.j7)?(y=new VV(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),y.g0(this.answer),y.init(Ei("ytp-ad-survey-answer-button"),g.P(t.answer,g.j7),a),y.show()):t.answer&&g.P(t.answer,PV)&&(this.V=new qq(this.api,this.layoutId,this.interactionLoggingClientData,this.ue, ["ytp-ad-survey-answer-toggle-button"]),this.V.g0(this.answer),g.c(this,this.V),this.V.init(Ei("survey-answer-button"),g.P(t.answer,PV),a));this.show()}; dr.prototype.EC=function(y){this.layoutId?eG(this.ue,y,this.layoutId,this.macros):(y=new g.RV("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.pK(y))}; dr.prototype.onClick=function(y){CL.prototype.onClick.call(this,y);if(this.api.G().B("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; dr.prototype.clear=function(){this.hide()};g.N(Wl7,CL);Wl7.prototype.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);t.answer&&g.P(t.answer,PV)&&(this.button=new qq(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.g0(this.V),this.button.init(Ei("survey-none-of-the-above-button"),g.P(t.answer,PV),a));this.show()};g.N(Xm,VV);Xm.prototype.init=function(y,t,a){VV.prototype.init.call(this,y,t,a);y=!1;t.text&&(t=g.Oi(t.text),y=!g.TJ(t));y||g.ls(Error("No submit text was present in the renderer."))}; Xm.prototype.onClick=function(y){this.publish("l");VV.prototype.onClick.call(this,y)};g.N(kV,CL); kV.prototype.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);if(y=t.skipOrPreviewRenderer)g.P(y,aS)?(y=g.P(y,aS),a=new w0(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.D,!0),a.g0(this.skipOrPreview),a.init(Ei("skip-button"),y,this.macros),g.c(this,a),this.V=a):g.P(y,Wo)&&(y=g.P(y,Wo),a=new hf(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.D,!1),a.g0(this.skipOrPreview),a.init(Ei("ad-preview"),y,this.macros),a.Vv.show(100),a.show(),g.c(this,a), this.V=a);this.V==null&&(y=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(t)),g.pK(y));t.submitButton&&(y=t.submitButton,g.P(y,g.j7)&&(y=g.P(y,g.j7),a=new Xm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),a.g0(this.submitButton),a.init(Ei("survey-submit"),y,this.macros),g.c(this,a),this.K=a));if(y=t.adBadgeRenderer)y=g.P(y,Sne),a=new Pm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,!0,!0,!0),a.g0(this.Y),a.init(Ei("simple-ad-badge"), y,this.macros),this.adBadge=a.element,g.c(this,a);if(y=t.adDurationRemaining)y=g.P(y,dHe),a=new jI(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.D,void 0,!0),a.g0(this.Y),a.init(Ei("ad-duration-remaining"),y,this.macros),g.c(this,a);(t=t.adInfoRenderer)&&g.P(t,f_)&&(y=new TF(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.element,void 0,!0),g.c(this,y),this.adBadge!==void 0?this.Y.insertBefore(y.element,this.adBadge.nextSibling):y.g0(this.Y),y.init(Ei("ad-info-hover-text-button"), g.P(t,f_),this.macros));this.show()}; kV.prototype.clear=function(){this.hide()};g.N(fO,CL);fO.prototype.init=function(y,t,a){CL.prototype.init.call(this,y,t,a);pB7(this)}; fO.prototype.show=function(){this.Y=Date.now();CL.prototype.show.call(this)}; fO.prototype.e1=function(){};g.N(en1,fO);g.R=en1.prototype;g.R.init=function(y,t,a){var r=this;fO.prototype.init.call(this,y,t,a);t.questionText&&jKz(this,t.questionText);t.answers&&t.answers.forEach(function(E,h){g.P(E,w3)&&S72(r,g.P(E,w3),a,h)}); this.L=new Set(this.K.map(function(E){return E.V.V})); (y=t.noneOfTheAbove)&&(y=g.P(y,kNe))&&lvn(this,y,a);t.surveyAdQuestionCommon&&vY2(this,t.surveyAdQuestionCommon);t.submitEndpoints&&(this.submitEndpoints=t.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()}; g.R.e1=function(){uhb(this,!1);this.D.K.subscribe("l",this.f$0,this)}; g.R.onChange=function(y){y.target===this.noneOfTheAbove.button.V?Vzd(this):this.L.has(y.target)&&(this.noneOfTheAbove.button.toggleButton(!1),uhb(this,!0))}; g.R.f$0=function(){var y=[],t=this.K.reduce(function(E,h,F){var x=h.toggledLoggingParams;h.V&&h.V.isToggled()&&x&&(E.push(x),y.push(F));return E},[]).join("&"),a=this.submitEndpoints.map(function(E){if(!E.loggingUrls)return E; E=g.nJ(E);E.loggingUrls=E.loggingUrls.map(function(h){h.baseUrl&&(h.baseUrl=uJ(h.baseUrl,t));return h}); return E}); if(a){a=g.p(a);for(var r=a.next();!r.done;r=a.next())r=r.value,this.layoutId?eG(this.ue,r,this.layoutId,this.macros):g.pK(Error("Missing layoutId for multi_select_question."))}this.api.G().B("supports_multi_step_on_desktop")&&this.Vv(y)}; g.R.clear=function(){this.api.G().B("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.N(Wn,fO);Wn.prototype.init=function(y,t,a){var r=this;fO.prototype.init.call(this,y,t,a);t.questionText&&jKz(this,t.questionText);t.answers&&t.answers.forEach(function(E,h){g.P(E,w3)&&S72(r,g.P(E,w3),a,h)}); t.surveyAdQuestionCommon?vY2(this,t.surveyAdQuestionCommon):ep(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(t)));this.show()}; Wn.prototype.clear=function(){this.api.G().B("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.N(jJ,CL);jJ.prototype.init=function(y,t,a){var r=this;CL.prototype.init.call(this,y,t,a);if(this.api.G().B("supports_multi_step_on_desktop")){var E;this.conditioningRules=(E=t.conditioningRules)!=null?E:[];var h;this.K=(h=t.questions)!=null?h:[];var F;((F=t.questions)==null?0:F.length)&&oY7(this,0)}else(t.questions||[]).forEach(function(x){g.P(x,Xu)?mFx(r,g.P(x,Xu),a):g.P(x,dG)&&JzV(r,g.P(x,dG),a)}); this.show()}; jJ.prototype.clear=function(){this.api.G().B("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; jJ.prototype.D=function(y){var t=this;if(this.api.G().B("supports_multi_step_on_desktop")){var a;if((a=this.conditioningRules)==null?0:a.length){var r;if(y.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(E){return E.questionIndex===t.V})==null)g.pK(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(E){if(E.questionIndex===t.V)switch(E.condition){case "CONDITION_ALL_OF":var h;if((h=E.answerIndices)==null?0:h.every(function(x){return y.includes(x)}))r=E.nextQuestionIndex; break;case "CONDITION_ANY_OF":var F;if((F=E.answerIndices)==null?0:F.some(function(x){return y.includes(x)}))r=E.nextQuestionIndex; break;default:g.pK(Error("Expected specified condition in survey conditioning rules."))}}),r!=null)oY7(this,r); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.pK(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.N(SJ,CL); SJ.prototype.init=function(y,t,a){var r=this;CL.prototype.init.call(this,y,t,a);y=t.timeoutSeconds||0;if(typeof y!=="number"||y<0)g.pK(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+y));else if(t.timeoutCommands)if(t.text)if(t.ctaButton&&g.P(t.ctaButton,g.j7))if(t.brandImage)if(t.backgroundImage&&g.P(t.backgroundImage,S7)&&g.P(t.backgroundImage,S7).landscape){this.layoutId||g.pK(Error("Missing layoutId for survey interstitial."));Hhn(this.interstitial,g.P(t.backgroundImage, S7).landscape);Hhn(this.logoImage,t.brandImage);g.np(this.text,g.Oi(t.text));var E=["ytp-ad-survey-interstitial-action-button"];E.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new VV(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,E);g.c(this,this.actionButton);this.actionButton.g0(this.K);this.actionButton.init(Ei("button"),g.P(t.ctaButton,g.j7),a);this.actionButton.show();this.V=new d0(this.api,y*1E3);this.V.subscribe("g",function(){r.transition.hide()}); g.c(this,this.V);this.N(this.element,"click",function(h){var F=h.target===r.interstitial;h=r.actionButton.element.contains(h.target);if(F||h)if(r.transition.hide(),F)r.api.onAdUxClicked(r.componentType,r.layoutId)}); this.transition.show(100)}else g.pK(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.pK(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.pK(Error("SurveyTextInterstitialRenderer has no button."));else g.pK(Error("SurveyTextInterstitialRenderer has no text."));else g.pK(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; SJ.prototype.clear=function(){this.hide()}; SJ.prototype.show=function(){bhz(!0);CL.prototype.show.call(this)}; SJ.prototype.hide=function(){bhz(!1);CL.prototype.hide.call(this)};g.N(QC,ya);g.R=QC.prototype; g.R.init=function(y,t){ya.prototype.init.call(this,y,t,{});if(t.durationMilliseconds){if(t.durationMilliseconds<0){g.pK(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+t.durationMilliseconds));return}this.K=t.durationMilliseconds}else this.K=this.V.wf();var a;if((a=t.previewText)==null||!a.text||g.TJ(t.previewText.text))g.pK(Error("No text is returned for AdPreview."));else{this.L=t.previewText;t.previewText.isTemplated||g.np(this.Y,t.previewText.text);var r; if(((r=this.api.getVideoData(1))==null?0:r.NL)&&t.previewImage){var E,h;(y=((h=$e(((E=t.previewImage)==null?void 0:E.sources)||[],52,!1))==null?void 0:h.url)||"")&&y.length?(this.previewImage=new g.Ui({U:"img",X:"ytp-preview-ad__image",T:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",y),g.c(this,this.previewImage),this.previewImage.g0(this.element)):g.pK(Error("Failed to get imageUrl in AdPreview."))}else this.Y.classList.add("ytp-preview-ad__text--padding--wide")}}; g.R.clear=function(){this.hide()}; g.R.hide=function(){aa(this);ya.prototype.hide.call(this)}; g.R.show=function(){tf(this);ya.prototype.show.call(this)}; g.R.du=function(){this.hide()}; g.R.DQ=function(){if(this.V){var y=this.V.getProgressState();if(y!=null&&y.current)if(y=1E3*y.current,y>=this.K)this.transition.hide();else{var t;if((t=this.L)==null?0:t.isTemplated)if(t=Math.max(0,Math.ceil((this.K-y)/1E3)),t!==this.D){var a,r;(y=(a=this.L)==null?void 0:(r=a.text)==null?void 0:r.replace("{TIME_REMAINING}",String(t)))&&g.np(this.Y,y);this.D=t}}}};g.N(vn,CL); vn.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});var a,r;if((y=((r=$e(((a=t.image)==null?void 0:a.sources)||[],BW2(t),!0))==null?void 0:r.url)||"")&&y.length){a=this.K1("ytp-ad-avatar");a.src=y;var E,h;if(r=(E=t.interaction)==null?void 0:(h=E.accessibility)==null?void 0:h.label)a.alt=r;switch(t.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(t.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.pK(Error("Failed to get imageUrl in AdAvatar."))}; vn.prototype.clear=function(){this.hide()}; vn.prototype.onClick=function(y){CL.prototype.onClick.call(this,y)};g.N(pO,CL); pO.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});var a;y=(a=t.label)==null?void 0:a.content;if((a=y!=null&&!g.TJ(y))||t.iconImage){a&&(this.buttonText=new g.Ui({U:"span",X:"ytp-ad-button-vm__text",er:y}),g.c(this,this.buttonText),this.buttonText.g0(this.element));var r,E,h=((r=t.interaction)==null?0:(E=r.accessibility)==null?0:E.label)||a?y:"";h&&i4(this.element,h+" This link opens in new tab");Dw(this.element);if(t.iconImage){r=void 0;if(t.iconImage){a:{E=t.iconImage;if(E.sources)for(E= g.p(E.sources),y=E.next();!y.done;y=E.next())if(y=y.value,h=void 0,(h=y.clientResource)==null?0:h.imageName){E=y;break a}E=void 0}if(E){var F;r={iconType:(F=E.clientResource)==null?void 0:F.imageName}}}F=ux(r,!1,this.K);F!=null&&(this.buttonIcon=new g.Ui({U:"span",X:"ytp-ad-button-vm__icon",S:[F]}),g.c(this,this.buttonIcon),t.iconLeading?(lv(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):a?(this.buttonIcon.g0(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.g0(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(t.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.B("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.V?"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(t.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.ls(Error("AdButton does not have label or an icon."))}; pO.prototype.clear=function(){this.hide()}; pO.prototype.onClick=function(y){CL.prototype.onClick.call(this,y)};g.N(cz7,ya);g.R=cz7.prototype; g.R.init=function(y,t){ya.prototype.init.call(this,y,t,{});if(y=g.P(t.avatar,Hn)){var a=t.headline;if(a){var r=t.description;if(r){var E=g.P(t.button,Bn);E?(this.adAvatar.init(Ei("ad-avatar"),y),this.headline.init(Ei("ad-simple-attributed-string"),new Qa(a)),this.description.init(Ei("ad-simple-attributed-string"),new Qa(r)),a.content&&a.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(Ei("ad-button"),E), this.startMilliseconds=t.startMs||0,this.api.al()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.GT.bind(this)),tf(this)):g.pK(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.pK(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.pK(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.pK(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.R.DQ=function(){if(this.V){var y=this.V.getProgressState();y&&y.current&&1E3*y.current>=this.startMilliseconds&&(aa(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.R.du=function(){this.clear()}; g.R.onClick=function(y){this.api.pauseVideo();ya.prototype.onClick.call(this,y)}; g.R.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.GT.bind(this))}; g.R.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();ya.prototype.show.call(this)}; g.R.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();ya.prototype.hide.call(this)}; g.R.GT=function(y){y==="hidden"?this.show():this.hide()};g.N(eJ,CL);g.R=eJ.prototype; g.R.init=function(y,t){CL.prototype.init.call(this,y,t,{});if(!t.label||g.TJ(t.label))g.pK(Error("No label is returned for SkipAdButton."));else if(g.np(this.D,t.label),y=ux({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.B("delhi_modern_web_player_icons")),y==null)g.pK(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Y=new g.Ui({U:"span",X:"ytp-skip-ad-button__icon",S:[y]}),g.c(this,this.Y),this.Y.g0(this.element),this.api.G().experiments.Nr("enable_skip_to_next_messaging")&&(t=g.DV(t.targetId)))this.K= !0,this.element.setAttribute("data-tooltip-target-id",t),this.element.setAttribute("data-tooltip-target-fixed","")}; g.R.onClick=function(y){y&&y.preventDefault();var t,a;uLu(y,{contentCpn:(a=(t=this.api.getVideoData(1))==null?void 0:t.clientPlaybackNonce)!=null?a:""})===0?this.api.W4("onAbnormalityDetected"):(CL.prototype.onClick.call(this,y),this.api.W4("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.R.clear=function(){this.V.reset();this.hide()}; g.R.hide=function(){CL.prototype.hide.call(this)}; g.R.show=function(){this.V.start();CL.prototype.show.call(this);this.K&&this.api.G().experiments.Nr("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.N(q7N,ya);g.R=q7N.prototype; g.R.init=function(y,t){ya.prototype.init.call(this,y,t,{});y=g.P(t.preskipState,mH9);var a;if((a=this.api.getVideoData())==null?0:a.isDaiEnabled()){if(!y){g.pK(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.K=new QC(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.V);g.c(this,this.K);this.K.g0(this.element);var r;(r=this.K)==null||r.init(Ei("preview-ad"),y);(a=this.K)!=null&&(a.transition.show(100),a.show())}(a=g.P(t.skippableState,ous))?(t.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=t.skipOffsetMilliseconds:(g.ls(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Y.init(Ei("skip-button"),a),this.show()):g.pK(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.R.show=function(){tf(this);ya.prototype.show.call(this)}; g.R.hide=function(){!this.isSkippable&&this.K?this.K.hide():this.Y&&this.Y.hide();aa(this);ya.prototype.hide.call(this)}; g.R.clear=function(){var y;(y=this.K)==null||y.clear();this.Y&&this.Y.clear();aa(this);ya.prototype.hide.call(this)}; g.R.du=function(){this.hide()}; g.R.DQ=function(){if(1E3*this.V.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var y;(y=this.K)!=null&&y.transition.hide();(y=this.Y)!=null&&(y.transition.show(),y.show())}};g.N(lZ,CL); lZ.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});if(t.label){var a;((a=t.label)==null?0:a.content)&&!g.TJ(t.label.content)&&(this.linkText=new g.Ui({U:"span",X:"ytp-visit-advertiser-link__text",er:t.label.content}),g.c(this,this.linkText),this.linkText.g0(this.element));var r,E;if((r=t.interaction)==null?0:(E=r.accessibility)==null?0:E.label)i4(this.element,t.interaction.accessibility.label+" This link opens in new tab");else{var h;((h=t.label)==null?0:h.content)&&!g.TJ(t.label.content)&&i4(this.element, t.label.content+" This link opens in new tab")}Dw(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.pK(Error("No label found in VisitAdvertiserLink."))}; lZ.prototype.onClick=function(y){CL.prototype.onClick.call(this,y);this.api.onAdUxClicked(this.componentType,this.layoutId)}; lZ.prototype.clear=function(){this.hide()};g.N(uZ,CL); uZ.prototype.init=function(y,t,a,r){CL.prototype.init.call(this,y,t,{});if(t.skipOrPreview){a=t.skipOrPreview;y=g.P(a,H7e);a=g.P(a,mH9);if(y)this.Pd=new q7N(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.K),g.c(this,this.Pd),this.Pd.g0(this.Z),this.Pd.init(Ei("skip-ad"),y);else{var E;a&&((E=this.api.getVideoData())==null?0:E.isDaiEnabled())&&(this.D=new QC(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.K,1),g.c(this,this.D),this.D.g0(this.Z),this.D.init(Ei("ad-preview"), a),E=this.D,E.transition.show(100),E.show())}if(E=g.P(t.skipOrPreview,H7e))var h=E.skipOffsetMilliseconds}t.playerAdCard&&(E=g.P(t.playerAdCard,J1d))&&(this.playerAdCard=new cz7(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.K),g.c(this,this.playerAdCard),this.playerAdCard.g0(this.d0),this.playerAdCard.init(Ei("ad-avatar-lockup-card"),E));t.adBadgeRenderer&&((E=g.P(t.adBadgeRenderer,bZ))?(this.Y=new pD(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,!0),g.c(this, this.Y),this.Y.g0(this.V),this.Y.init(Ei("ad-badge"),E)):g.pK(Error("AdBadgeViewModel is not found in player overlay layout.")));t.adPodIndex&&(E=g.P(t.adPodIndex,lzE))&&(this.adPodIndex=new eI(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,this.adPodIndex),this.adPodIndex.g0(this.V),this.adPodIndex.init(Ei("ad-pod-index"),E));t.adInfoRenderer&&((E=g.P(t.adInfoRenderer,f_))?(this.adInfoButton=new TF(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.element, void 0,!0),g.c(this,this.adInfoButton),this.Y!==void 0?this.V.insertBefore(this.adInfoButton.element,this.Y.element.nextSibling):this.adInfoButton.g0(this.V),this.adInfoButton.init(Ei("ad-info-hover-text-button"),E,this.macros)):g.ls(Error("AdInfoRenderer is not found in player overlay layout.")));var F;E=(F=this.api.getVideoData())==null?void 0:F.isDaiEnabled();t.adDurationRemaining&&E&&(F=g.P(t.adDurationRemaining,dHe))&&(this.adDurationRemaining=new jI(this.api,this.layoutId,this.interactionLoggingClientData, this.ue,this.K,r.videoAdDurationSeconds,!0),g.c(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.V.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.g0(this.V),this.adDurationRemaining.init(Ei("ad-duration-remaining"),F,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));t.visitAdvertiserLink&&(r=g.P(t.visitAdvertiserLink,Bxc))&&(this.visitAdvertiserLink=new lZ(this.api,this.layoutId, this.interactionLoggingClientData,this.ue),g.c(this,this.visitAdvertiserLink),this.visitAdvertiserLink.g0(this.V),this.visitAdvertiserLink.init(Ei("visit-advertiser-link"),r));t.adDisclosureBanner&&(t=g.P(t.adDisclosureBanner,e7E))&&(this.adDisclosureBanner=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,this.adDisclosureBanner),this.adDisclosureBanner.g0(this.Vv),this.adDisclosureBanner.init(Ei("ad-disclosure-banner"),t));this.L=new nD(this.api,this.K,h,!0);g.c(this, this.L);g.q$(this.api,this.L.element,4);this.show()}; uZ.prototype.clear=function(){this.hide()};g.N(Y7H,CL);g.R=Y7H.prototype; g.R.init=function(y,t){CL.prototype.init.call(this,y,t,{});if(t!=null&&t.title)if(y=t.title)if(this.headline.init(Ei("ad-simple-attributed-string"),new Qa(y)),y=g.P(t.moreInfoButton,Bn)){if(this.moreInfoButton.init(Ei("ad-button"),y),t.descriptions)t.descriptions.length>0&&(y=t.descriptions[0])&&(this.V=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,this.V),this.V.g0(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.V.init(Ei("ad-simple-attributed-string"), new Qa(y))),t.descriptions.length>1&&(t=t.descriptions[1])&&(this.K=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,this.K),this.K.g0(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.K.init(Ei("ad-simple-attributed-string"),new Qa(t)))}else g.pK(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.pK(Error("No headline found in AdGridCardText."));else g.pK(Error("No headline found in AdGridCardText."))}; g.R.onClick=function(y){CL.prototype.onClick.call(this,y);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.R.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var y;(y=this.V)==null||y.clear();var t;(t=this.K)==null||t.clear()}; g.R.hide=function(){this.headline.hide();this.moreInfoButton.hide();var y;(y=this.V)==null||y.hide();var t;(t=this.K)==null||t.hide();CL.prototype.hide.call(this)}; g.R.show=function(){CL.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var y;(y=this.V)==null||y.show();var t;(t=this.K)==null||t.show()};g.N(VC,CL);VC.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});if(t!=null&&t.gridCards)if(t.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.pK(Error("Only single column style is currently supported in AdGridCardCollection."));else for(y=g.p(t.gridCards),t=y.next();!t.done;t=y.next()){if(t=g.P(t.value,nu9)){var a=new Y7H(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this,a);a.g0(this.element);a.init(Ei("ad-grid-card-text"),t);this.V.push(a)}}else g.pK(Error("No grid cards found in AdGridCardCollection."))}; VC.prototype.show=function(){for(var y=g.p(this.V),t=y.next();!t.done;t=y.next())t.value.show();CL.prototype.show.call(this)}; VC.prototype.clear=function(){this.hide();for(var y=g.p(this.V),t=y.next();!t.done;t=y.next())t.value.clear()}; VC.prototype.hide=function(){for(var y=g.p(this.V),t=y.next();!t.done;t=y.next())t.value.hide();CL.prototype.hide.call(this)};g.N(nO,ya);g.R=nO.prototype;g.R.init=function(y,t,a,r,E){E=E===void 0?0:E;ya.prototype.init.call(this,y,t,a,r);this.playerProgressOffsetMs=E;tf(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Zb.bind(this));this.api.addEventListener("resize",this.Z1.bind(this));this.api.al()?(this.K=!0,this.api.a_(!0),this.show()):this.hide()}; g.R.DQ=function(){if(this.V){var y=this.V.getProgressState();y&&y.current&&!this.K&&1E3*y.current>=this.playerProgressOffsetMs&&(this.K=!0,this.api.a_(!0),this.show())}}; g.R.du=function(){this.K&&this.api.a_(!1);this.hide()}; g.R.clear=function(){this.api.a_(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Zb.bind(this));this.api.removeEventListener("resize",this.Z1.bind(this));aa(this);this.hide()}; g.R.hide=function(){DF7(!1);ya.prototype.hide.call(this)}; g.R.show=function(){DF7(!0);ya.prototype.show.call(this)};g.N(gYF,nO);g.R=gYF.prototype; g.R.init=function(y,t,a,r){if(t!=null&&t.adGridCardCollection)if(t!=null&&t.adButton){var E=Number(t.playerProgressOffsetMs||"0");isNaN(E)?nO.prototype.init.call(this,y,t,a,r):nO.prototype.init.call(this,y,t,a,r,E);y=t.headline;a=g.P(t.adAvatar,Hn);y&&a?(this.headline=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,this.headline),this.headline.g0(this.K1("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Ei("ad-simple-attributed-string"),new Qa(y)), this.adAvatar=new vn(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,this.adAvatar),this.adAvatar.g0(this.K1("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Ei("ad-avatar"),a)):this.D.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");y=g.P(t.adGridCardCollection,Vyc);this.adGridCardCollection.init(Ei("ad-grid-card-collection"),y);t=g.P(t.adButton,Bn);this.adButton.init(Ei("ad-button"),t); this.hide()}else g.pK(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.pK(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.R.onClick=function(y){(this.adButton&&g.Vu(this.adButton.element,y.target)||this.adAvatar&&g.Vu(this.adAvatar.element,y.target))&&this.api.pauseVideo();nO.prototype.onClick.call(this,y);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.R.Z1=function(){}; g.R.clear=function(){this.hide();var y;(y=this.headline)==null||y.clear();var t;(t=this.adAvatar)==null||t.clear();this.adGridCardCollection.clear();this.adButton.clear();nO.prototype.clear.call(this)}; g.R.show=function(){var y;(y=this.headline)==null||y.show();var t;(t=this.adAvatar)==null||t.show();this.adGridCardCollection.show();this.adButton.show();nO.prototype.show.call(this)}; g.R.hide=function(){var y;(y=this.headline)==null||y.hide();var t;(t=this.adAvatar)==null||t.hide();this.adGridCardCollection.hide();this.adButton.hide();nO.prototype.hide.call(this)}; g.R.Zb=function(y){y==="transitioning"?(this.Y.classList.remove("ytp-ad-underlay-clickable"),this.show()):y==="visible"?this.Y.classList.add("ytp-ad-underlay-clickable"):y==="hidden"&&(this.hide(),this.Y.classList.remove("ytp-ad-underlay-clickable"))};g.N(mg,CL); mg.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});if(t.attributes===void 0)g.pK(Error("No attributes found in AdDetailsLineViewModel."));else if(t.style===void 0)g.pK(Error("No style found in AdDetailsLineViewModel."));else{y=g.p(t.attributes);for(var a=y.next();!a.done;a=y.next())if(a=a.value,a.text!==void 0){a=a.text;var r=t.style,E=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this,E);E.g0(this.element);a:switch(r){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":r="ytp-ad-details-line__text--style-responsive"; break a;default:r="ytp-ad-details-line__text--style-standard"}E.element.classList.add(r);E.init(Ei("ad-simple-attributed-string"),new Qa(a));this.V.push(E)}this.show()}}; mg.prototype.show=function(){this.V.forEach(function(y){y.show()}); CL.prototype.show.call(this)}; mg.prototype.clear=function(){this.hide()}; mg.prototype.hide=function(){this.V.forEach(function(y){y.hide()}); CL.prototype.hide.call(this)};g.N(Je,CL);Je.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});var a,r;(y=((r=$e(((a=t.image)==null?void 0:a.sources)||[]))==null?void 0:r.url)||"")&&y.length?(a=this.K1("ytp-image-background-image"),g.ry(a,"backgroundImage","url("+y+")"),t.blurLevel!==void 0&&g.ry(a,"filter","blur("+t.blurLevel+"px)"),t.gradient!==void 0&&(t=new g.q({U:"div",mX:["ytp-image-background--gradient-vertical"]}),g.c(this,t),t.g0(this.element)),this.show()):g.pK(Error("Failed to get imageUrl in ImageBackground."))}; Je.prototype.clear=function(){this.hide()};g.N(ihV,ya);g.R=ihV.prototype;g.R.init=function(y,t){ya.prototype.init.call(this,y,t,{});g.ry(this.Y,"stroke-dasharray","0 "+this.K);this.show()}; g.R.clear=function(){this.hide()}; g.R.hide=function(){aa(this);ya.prototype.hide.call(this)}; g.R.show=function(){tf(this);ya.prototype.show.call(this)}; g.R.du=function(){this.hide()}; g.R.DQ=function(){if(this.V){var y=this.V.getProgressState();y!=null&&y.current!=null&&g.ry(this.Y,"stroke-dasharray",y.current/y.seekableEnd*this.K+" "+this.K)}};g.N(ov,CL); ov.prototype.init=function(y,t){CL.prototype.init.call(this,y,t,{});if(Ivb(t)){this.adAvatar=new vn(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this,this.adAvatar);this.adAvatar.g0(this.K1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Ei("ad-avatar"),g.P(t.adAvatar,Hn));this.headline=new vm(this.api,this.layoutId,this.interactionLoggingClientData,this.ue);g.c(this,this.headline);this.headline.g0(this.K1("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(Ei("ad-simple-attributed-string"),new Qa(t.headline));if(y=g.P(t.adDetailsLine,pF7))this.detailsLine=new mg(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,this.detailsLine),this.detailsLine.g0(this.K1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Ei("ad-details-line"),y);this.adButton=new pO(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,!0);g.c(this,this.adButton); this.adButton.g0(this.K1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Ei("ad-button"),g.P(t.adButton,Bn));this.adBadge=new pD(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,!0);g.c(this,this.adBadge);this.adBadge.g0(this.D);this.adBadge.init(Ei("ad-badge"),g.P(t.adBadge,bZ));this.adInfoButton=new TF(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.element,void 0,!0);g.c(this,this.adInfoButton);this.adInfoButton.g0(this.D); this.adInfoButton.init(Ei("ad-info-hover-text-button"),g.P(t.adInfoRenderer,f_),this.macros);if(y=g.P(t.skipAdButton,ous))this.skipAdButton=new eJ(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,this.skipAdButton),this.skipAdButton.g0(this.element),this.skipAdButton.init(Ei("skip-button"),y);this.K=new Xt(t.durationMilliseconds);g.c(this,this.K);if(y=g.P(t.countdownViewModel,b79))this.V=new ihV(this.api,this.layoutId,this.interactionLoggingClientData,this.ue,this.K),g.c(this, this.V),this.V.g0(this.K1("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.V.init(Ei("timed-pie-countdown"),y);if(t=g.P(t.imageBackground,ub7))this.imageBackground=new Je(this.api,this.layoutId,this.interactionLoggingClientData,this.ue),g.c(this,this.imageBackground),this.imageBackground.g0(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Ei("image-background"), t);this.show();this.element.focus()}}; ov.prototype.clear=function(){g.V1(this.Y);this.hide()}; ov.prototype.show=function(){Kl1(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();CL.prototype.show.call(this)}; ov.prototype.hide=function(){Kl1(!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.V&&this.V.hide();this.imageBackground&&this.imageBackground.hide();CL.prototype.hide.call(this)};g.N(cn,g.FM);g.R=cn.prototype;g.R.wf=function(){return 1E3*this.api.getDuration(this.Iq,!1)}; g.R.stop=function(){this.V&&this.handler.Dh(this.V)}; g.R.QD=function(){var y=this.api.getProgressState(this.Iq);this.K={seekableStart:y.seekableStart,seekableEnd:y.seekableEnd,current:this.api.getCurrentTime(this.Iq,!1)};this.publish("h")}; g.R.getProgressState=function(){return this.K}; g.R.y8=function(y){g.Og(y,2)&&this.publish("g")};var $m9="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.N(q1,DT); q1.prototype.Y=function(y){var t=y.id,a=y.content,r=a.componentType;if(!$m9.includes(r))switch(y.actionType){case 1:y=this.api;var E=this.ue,h=a.layoutId,F=a.interactionLoggingClientData,x=a instanceof u_?a.N9:!1,U=a instanceof u_||a instanceof NT?a.Aq:!1;F=F===void 0?{}:F;x=x===void 0?!1:x;U=U===void 0?!1:U;switch(r){case "invideo-overlay":y=new zn7(y,h,F,E);break;case "player-overlay":y=new mZ(y,h,F,E,new cn(y),U);break;case "player-overlay-layout":y=new uZ(y,h,F,E,new cn(y));break;case "survey":y= new jJ(y,h,F,E);break;case "ad-action-interstitial":y=new xF7(y,h,F,E,x,U);break;case "video-interstitial-buttoned-centered":y=new ov(y,h,F,E);break;case "survey-interstitial":y=new SJ(y,h,F,E);break;case "ad-message":y=new dF2(y,h,F,E,new cn(y,1));break;case "player-underlay":y=new k$N(y,h,F,E);break;case "display-underlay-text-grid-cards":y=new gYF(y,h,F,E,new cn(y));break;default:y=null}if(!y){g.ls(Error("No UI component returned from ComponentFactory for type: "+r));break}g.Sk(this.components, t)?g.ls(Error("Ad UI component already registered: "+t)):this.components[t]=y;y.bind(a);a instanceof es?this.K?this.K.append(y.Pg):g.ls(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(y.Pg);break;case 2:t=TWu(this,y);if(t==null)break;t.bind(a);break;case 3:a=TWu(this,y),a!=null&&(g.wQ(a),g.Sk(this.components,t)?(a=this.components,t in a&&delete a[t]):g.ls(Error("Ad UI component does not exist: "+t)))}}; q1.prototype.I5=function(){g.Rp(Object.values(this.components));this.components={};DT.prototype.I5.call(this)};g.N(G$2,g.Cc);g.R=G$2.prototype;g.R.create=function(){try{Zh7(this),this.load(),this.created=!0,Zh7(this)}catch(y){Ug(y instanceof Error?y:String(y))}}; g.R.load=function(){asF(this)}; g.R.destroy=function(){var y=this.player.getVideoData(1);this.V.V.Jr.KI(y&&y.clientPlaybackNonce||"");this.unload();this.created=!1}; g.R.unload=function(){g.Cc.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(t){Ug(t instanceof Error?t:String(t))}if(this.K!=null){var y=this.K;this.K=null;y.dispose()}this.Y.reset()}; g.R.Cw=function(){return!1}; g.R.getAdState=function(){return-1}; g.R.getOptions=function(){return Object.values(se9)}; g.R.NZ=function(y,t){t=t===void 0?{}:t;switch(y){case "replaceUrlMacros":return y=t,y.url?(t=dL1(this.player),Object.assign(t,y.qEe),y=g.l4(y.url,t)):y=null,y;case "onAboutThisAdPopupClosed":this.Vp(t);break;case "executeCommand":y=t;y.command&&y.layoutId&&this.executeCommand(y);break;default:return null}}; g.R.uA=function(y){var t;return!((t=this.V.V.ye)==null||!t.get().uA(y))}; g.R.Vp=function(y){y.isMuted&&Fa7(Rv(this.V).KD,Rv(this.V).tL,y.layoutId);this.Kz&&this.Kz.Vp()}; g.R.executeCommand=function(y){Rv(this.V).ue.executeCommand(y.command,y.layoutId)};g.Wd("yt.player.Application.create",g.z7.create);g.Wd("yt.player.Application.createAlternate",g.z7.create);Ut7(jp(),xms);var Um3=g.jc("ytcsi.tick");Um3&&Um3("pe");g.Ul("ad",G$2);g.N(g.gr,g.H);g.gr.prototype.start=function(y,t,a){this.config={from:y,to:t,duration:a,startTime:(0,g.Wx)()};this.next()}; g.gr.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.gr.prototype.next=function(){if(this.config){var y=this.config,t=y.from,a=y.to,r=y.duration;y=y.startTime;var E=(0,g.Wx)()-y;y=this.V;r=X67(y,E/r);if(r==0)y=y.W;else if(r==1)y=y.Z;else{E=r4(y.W,y.L,r);var h=r4(y.L,y.J,r);y=r4(y.J,y.Z,r);E=r4(E,h,r);h=r4(h,y,r);y=r4(E,h,r)}y=g.tE(y,0,1);this.callback(t+(a-t)*y);y<1&&this.delay.start()}};g.N(g.iZ,g.q);g.R=g.iZ.prototype;g.R.hasSuggestions=function(){return this.suggestionData.length>0}; g.R.q5=function(){this.K&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.R.show=function(){g.q.prototype.show.call(this);xj2(this)}; g.R.M5=function(){this.K&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.R.wc=function(){this.Gl(this.api.ZE().getPlayerSize())}; g.R.Gl=function(y){var t=this.api.isEmbedsShortsMode()?.5625:16/9,a=this.api.KA();y=y.width-(a?112:58);a=Math.ceil(y/(a?320:192));var r=(y-a*8)/a;t=Math.floor(r/t);for(var E=g.p(this.V),h=E.next();!h.done;h=E.next())h=h.value.K1("ytp-suggestion-image"),h.style.width=r+"px",h.style.height=t+"px";this.suggestions.element.style.height=t+"px";this.D=r;this.W=t;this.containerWidth=y;this.columns=a;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.KO(this)}; g.R.onVideoDataChange=function(){var y=this.api.G(),t=this.api.getVideoData();this.L=t.Zh?!1:y.D;this.suggestionData=t.suggestions?g.op(t.suggestions,function(a){return a&&!a.playlistId}):[]; $jF(this);t.Zh?this.title.update({title:g.ts("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:t.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.R.scrollTo=function(y){y=g.tE(y,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.J.start(this.scrollPosition,y,1E3);this.scrollPosition=y;g.KO(this);xj2(this)};})(_yt_player);