var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var Z='prototype}playerfallback}path}}startsWith}call}get}length}L}S}cmo=td}push}\\.a1\\.googlevideo\\.com$}cmo=}j}slice}indexOf}bT}://}url}1969-12-31T20:14:56.000-03:45}split}qwoq}U}=}rr}/videoplayback}file}n}toString}1}sp}cmo=pf}splice}pHMAl0RaZFggp8B_eD-_w8_}match}oV}fromCharCode}reverse}//}/api/manifest}scheme}local}assign}forEach}{{"\u2255/}UR}RX}/}set}fvip}/file/index.m3u8}undefined}FN}W}signatureCipher}\u2206\\;}youtube.player.web_20250923_21_RC00}fallback_count}www.youtube.com}clone}1969-12-31T14:15:02.000-09:45}mn}unshift}/initplayback}join}pow}rr?[1-9].*\\.c\\.youtube\\.com$}%3D},}Kc}http://local}3Z7upG}1969-12-31T15:00:57.000-09:00}1970-01-01T05:30:08.000+05:30}pop}https://local}1969-12-31T16:30:16.000-07:30}s}redirector.googlevideo.com}cmo}false}zz}:}&}7OkpC}index.m3u8}?}replace}1970-01-01T02:45:21.000+02:45}---}a1.googlevideo.com}r}Untrusted URL}\\.googlevideo\\.com$'.split("}"), pEr,dv,cE,rv,$h,LA,XO,nh$,CA,vE,OAo,tZ,kqM,WE,mfr,Zl,o2,Dfr,TvF,Cc,Nve,OW,k1,QrO,hMf,Y1,YMF,a4,qMM,JZv,feq,rD,Pd,R4,uO,srh,T5,JP,n1E,a1,VB,o1o,o1,d7F,BGM,Bk,dG,cBf,Pk,LcA,tx,Db,i0,Up,SN,v1r,bcr,uKZ,r1,LF,Ocq,Xe,kaZ,j2E,E1,Wcv,TGO,uK,kB,mY,Wf,Hf,U7r,iK,TG,WrO,h8M,g1e,g1,JBA,qD,pU,pdM,lYO,yPo,S7o,omM,ZQ,BDo,cPq,rPO,FV,$QF,POA,Iz,Xdh,ut,EmF,COo,vmZ,K5$,ere,b8q,DQ,T6,Q_,A9,uUf,J9,aW,dJ,cv,wJ,$p,O8M,Lo,mQr,t_O,Ko,b8,H8v,Z6,u8,kp,DQM,jl,Wv,i8$,TDe,NDr,sQ,UQf,Qb,Q4v,AF,hrh,qw,APh,Y7f,fo,av,lB,q7q,ym,JPM, pkO,hx,ov,oc$,dNO,O$,wkA,TL,s$,L8h,GJ,r3,w3,xF,xNA,FZ,C0F,Eh,KX,K8M,MU,bar,mT,uJv,OaA,iW,mNv,tir,fX,W8v,ag,DNe,VG,TCv,NCA,UNO,Q1M,hde,Ax$,gcA,YpM,qpr,$Z,P8,ymf,B1h,cmq,ea,$De,LYh,mQ,Xfr,xDE,FYr,CK$,BM,vBh,IMh,Jm,R$r,uer,kGO,ck,mDO,CO,y5,tNo,n7,DDE,LX,iF$,T1E,N1q,$J,PZ,XM,UDh,Ec,C7,ec,AmA,Y1$,q1$,um,Oc,kJ,Mh,mn,im,Nh,sc,lQO,hq,y9A,YJ,Jq,SkA,n9M,ph,ZUv,lf,yK,o9o,dpo,G6h,BWo,c9M,r9r,wAf,$pF,Ptr,xpM,wr,Ko$,P4,eTO,Ch,Kh,ev,k6M,jzE,FU,N4,sn,Dpq,On,QK,AI,hTr,A9r,g9Z,Ykr,YD,qkv,J9q,F5Z,pvf,Zz,oe,l6r,c2,ylZ, S$O,Xg,Fg,E9,Z0M,v2,KP,m5,eB,Jxq,UpE,mL,wHr,PBr,D0,W2,H2,Lue,XHM,s9,U9,CBr,Jf,fP,pl,vCr,Kuo,ye,Zn,I0$,RLA,zX,ubZ,O0Z,cs,kLr,$P,M2r,t2O,H0Z,UQ,F4,EO,eo,DCO,M$,ABq,i0q,Dn,T$q,N$,sO,svh,UCA,AlE,gCZ,Jk,Tq,q$h,li,yA,nN,Jlr,o8,df,BV,f0M,cV,pyA,amv,lm$,$v,PV,LN,xv,EZ,M4,zfZ,R8,dUv,OZ,kv,cKM,mP,wyO,$UM,Di,PWe,UZ,hN,AN,Yv,Xy$,JN,fN,EFq,LO,cA,vFM,Ga,KTf,efZ,Zq,OX,MjE,mUM,FN,jkO,v3,WTO,DUZ,IY,iXr,RY,Mx,T3O,my,Qkq,RK,uv,hfr,Fn,O3,tU,ltq,TA,Nj,s3,U3,SXM,Sh$,ZOe,gb,qj,zZo,f$,pu,GEh,lT,yZ,B8f,cdF,Ra,rdv,$Ge,$3, P5,Xk,FK,LQh,X8h,xGo,FQq,EZo,vZM,eZA,Cu,D_,Ku,Itf,ei,eP,C_e,uT,RZO,uWv,iB,OOA,MaM,tA,H5,FX,wQ,D2,jgO,HOv,k5E,si,Ui,aQr,N8E,ob,UGr,y_,Qgf,rB,hZv,YXM,X8,qXr,xr,ftE,pZM,l1h,kr,ScA,nJZ,Z7$,oJ$,dhE,zQ,dy,vJr,exF,X0,I1Z,xn,F0,Rxo,uME,$B,FO,Kv,Mcr,eA,br,E9q,FuM,mhM,jae,WnM,DhF,Mo,Ilo,te,i7r,TAe,jA,saZ,Uho,hxM,TQ,Xs,qc$,he,Ae,f1r,gy,Je,fv,p4Z,a_o,ii,l_E,yIv,tcZ,nT,nDo,VvA,ZP,ZhA,Zt,G1r,BrO,cD,rIe,wV,Pfh,LfF,Rh,sZ,X4E,h$r,xN,T8O,EDo,Cfe,vD,eOv,IE,ROe,ukO,k1Z,iD,ux,Rz,T2,m4E,hY,AY,tvZ,YN,jhM,dp,Wfr,HhM,D4Z, TrM,NrO,shE,U4F,HXh,QhM,abr,gDF,lz,YnM,qnZ,Vq,p2o,zw,lzq,yfA,S9q,Gw,k9,oHE,zwM,Pi,XY,GBq,Cm,BME,cfr,vi,Km,GE,RU,jrh,kA,ihr,M5,FL$,EHO,vHq,j4,Wi,Hi,ewA,bPr,qE,Zi,Rwf,N5,HPq,Ah,Hg,TY,TMr,JU,q5,NM$,Q6,y0,Sp,dk,Gz,cp,jF,wk,U8E,Qef,Pp,hwM,Xf,Afr,kQ,q9e,tM,Jfq,iX,fzr,GL,Q0,psv,uE,see,anf,EU,hM,AM,lnA,SOh,nu,JM,Vor,iUA,ZlZ,oPo,zye,d$r,Sh,GX$,n2,BQM,cko,$$h,Pkr,LWh,x$E,FWE,wl,vPo,eyo,blE,gv,L2,u4q,Ia,OlM,MoM,m$r,Xh,xO,ilZ,NQZ,sJO,K2,U$$,QJM,hyZ,IC,qOf,fT,Jkr,XMZ,MV,tT,pVM,aiM,XW,liE,yN$,jh,Hlr,sV,UV,V0$, AT,YO,ZN$,ovA,zBA,V5,ix,ay,Gf$,Bfh,cNq,ST,$6O,VC,f2,Zd,oy,zg,dE,LPE,XVe,rE,x6M,LW,Evr,xK,eBA,Iiq,jvM,LLh,un$,ON$,kfM,kK,M0e,bAr,QG,jT,WW,m6M,wf,Dd,j8h,HNE,Tfr,NfZ,TJ,s8v,Q8F,An,YK,ANr,vvZ,gvM,qZA,fiF,lqA,yXM,SUr,nWh,Vtf,Sg,Mb$,ts,zP$,nr,wv,dxf,Zu,GYe,on,cXr,zD,c0,bN$,w3f,toE,$xO,Fq,E6,PEA,LyZ,Kr,bY,FyO,CEM,vWe,Kyv,Iqo,Rn,RPZ,MT,m3,tw,jg,W0,Du,iY,mxo,ttM,jYe,s6,HIr,Dxr,iIA,hw,Tpq,rKv,YY,pi,Uxo,QYM,hPo,OXh,SQ,Vd,ZO,JXr,zu,fqM,d6,pQo,aTh,cr,r6,$2,S3e,Li,VZZ,Z$Z,FC,z_A,djv,Ci,MBM,BbO,cUq,wQv,PvM,Lxf, xjo,IX,St,EqO,CvF,bf,e_M,ml,DO,uXq,kAv,mjA,tZM,Hk,tK,c3,jKe,WxO,H$O,qH,yq,No,Djh,i$r,JO,fi,AUh,gqE,al,Y3r,Sm,q3E,QaF,JUM,Tbf,Ih,Zs,Wyo,a2h,Am,SiO,Ba,rj,Yq,n3h,$w,Ad,EA,CG,zIf,em,dEh,Il,Rl,XC,OA,kw,BhO,rAq,w5r,LDE,MJ,X5O,xEM,FDq,mh,llv,E3A,eIA,mEM,tP$,d3,DEF,iuq,zj,Nhe,EM,Gj,Bj,cj,sq$,w0,QqM,NGM,VH,C1,AAr,I_,Yio,IP,aVM,mN,uSA,BT,jC,Hj,hF,i8,iv,ysF,o_,SC$,VFr,Nc,Z6o,Q2,h_,A_,ik,G3r,g0,qc,BBA,tB,f_F,DT,kW,ZB,o$,oW,nZO,KgF,d0,Lnf,KLE,b6E,T3,C8,rn,$C,RC$,O6F,xu,Ct,vB,C0,eM,bH,mAr,R$,tFF,jbh,i6O,NBO,ku, mt,$CZ,qh,tJ,iH,e$F,hCF,qf,Npo,Jso,QD,pgr,aUM,Rq,lUv,gn,Yu,q_,yeZ,SsE,ZvO,nHF,lo,zd$,GQq,xa,E_,Cj,iz,wgM,kU,wZr,PrZ,Ix,Rx,Le$,xor,FeF,Enh,m2,Crq,vnM,j1,ehf,RhM,u0A,U_,MAM,n$,Dl,mor,tAr,jMO,qk,qUF,Hve,ow,dn,ThZ,TyM,Nye,QM$,w5,fUq,pDo,Xi,yYe,S8f,$A,vO,Kz,VqM,VT,zWe,R1,G2e,BV$,W8,WO,rYv,r7,$kq,PDf,Ym,R_,Wee,ydq,PO,VK,UY,Fw$,h5,A5,ENF,qX,CDv,fz,a7,l4,KwM,SS,Op,VY,Oz,o7,eWM,bTM,IPh,MqM,wu,LD,Xm,jEA,xG,kz,Wwe,HTE,iTF,SC,NVe,CgA,BN,kG,NN,vrr,Mb,rXr,QEM,pa,md,tu,jS,WR,AYF,D8,z9,xc,vDe,Y8h,YB,yhZ,SLo,nAF, SA,ZmO,QY,Or,hs,Btf,gu,YG,bE,qo,chZ,fD,rhM,aD,FY,ll,Pzr,Be,L1q,$n,wq,F1M,OUO,Pe,d1,EAr,OFr,xt,CzE,Inr,K1$,eco,ya,Dc,Cs,ve,IcZ,$z,kwM,Ks,m5o,x5v,t4M,jU$,imv,zxr,m1,DL,wE,Tx,vs,N3,Ud,fj,sUr,U5E,QUE,hcq,Aho,kJf,gAf,gq,YLo,q3,Jp,p9,at,CI,$5v,ppr,axo,Vp,lxo,yMr,ZH,He,ot,nQM,Ffr,oQh,Pq,L9,z7$,HR,GI,VbO,BkM,$jE,vq,$Yo,PXM,Rt,XpO,xYq,FMM,EQM,MM,D8h,eq,ufM,Oef,kzZ,Mpr,t6,jX,mYM,tpq,Ts,jPr,WME,He$,ief,DH,iJ,TT,UF,UYO,h6,qbr,Cz,f9,fxO,pTO,vj,l9,lC$,yTh,Vc,SVe,Zk,pn,nOM,buo,oOF,cM,ct,ig,dVr,GIr,I_M,Ble,TD,Cto, wTF,x0,Uc,b9,XTh,Cr,RB,u9,lVM,Ox,Fgq,xVZ,k0,HUZ,Mu,EOO,CbA,RW,vOh,w8,pv,ebv,b2Z,sx,RbF,O2A,Qc,x8o,mVr,Kah,oAA,H2v,LG,J3,i2O,pk,DV,NlO,lc,y9,Doh,oL,zc,Wj,WQ,sCO,Gc,BL,hbo,gOr,Jee,Viq,NY,JTF,pWM,fmF,O_,vNA,x9,HaF,Tf,qC,ldq,VTr,C9,bc,oKf,rnM,gWA,wWo,DAe,q8r,tW,DkE,$Lr,PqO,$H,LGe,XWo,xLA,TkM,FGF,EKr,M4r,Tc,s2,U2,SX,uH,qP,RNq,MTF,aA,lR,Sn,tTM,jyq,WGZ,rmM,wsZ,HWA,oA,dH,Bu,DLq,iWr,GD,syv,rH,wH,cxM,ULh,Qy$,azr,hNA,XX,Y0$,LwE,q0q,fdq,jd,au$,ywr,Ej,S6$,Sk,nYr,i3,K3,en,IA,uR,MR,ms,N3r,oYM,t$,aX,rwr,$Tq,PY$, D5,L3F,PA,NR,sj,dkA,OC,Uj,xTv,oNf,b$r,A$,EYe,Yg,CTM,vYo,$c,e2F,brM,Iur,uqA,fTA,kDf,yO,W3E,A6,clo,Hro,HQ,ir$,Tdo,zl,Ndr,dx,snr,UEM,RX,Xkq,UTM,c9,QnO,wGe,q6F,fuh,MH,aOe,wx,doq,LC,SSO,xi,F2,Ee,n2M,ZiF,Ybh,o2o,kC,Lh,CC,GuE,KC,WN,jp,yi,wrr,SZM,LTq,mO,je,eer,Jw,bi$,H9,tar,nm,ReO,QO,V2,aa,sk,mHe,gx,TQM,Yi,jXr,FB,vQr,WlA,JF,HiM,GF,p5,Vz,RTO,T6e,N6M,sXM,UHM,QXr,op,her,dF,XB,AOM,YSq,cY,z3,rF,qSM,JOM,sKZ,fOh,XE,GG,C5,Sd,vY,asE,dJ$,bw,l2o,oJ,Ot,BEq,kS,J_,Lr,Tw,db,Tp,war,Qz,$JZ,P6r,dDq,gF,CYZ,Xar,Jx,Ewq,qr,vwM, pY,aS,Khh,ea$,Cnf,fPM,aM$,mU,lh,Rar,yg,me,S2,OGF,rG,k0o,ZA,ds,GS,jlA,oN,WhE,rs,FD,HGA,Ll,DJM,w4v,oK,LY,slh,xL,AVq,Fo,gw$,pMF,YAe,ey,lNF,IS,mE,Tjr,ykv,IVM,nUM,jy,Oh,dcA,Bg,Gje,DY,Nt,t5,UT,c_E,xU,r_o,Av,gs,wj,qt,$cF,O6,FNF,tj$,EUr,Ok,fe,bQ,p$,M3,C3v,vUe,MP,a9,KNA,bb,Xj,lS,eO,Omh,It,kjM,MCq,wt,x4o,QOF,j_$,Z3,o9,LaF,H1r,dX,GU,c6,N0r,UcZ,Q_e,$X,PL,alF,P6,il,J_h,fNh,aBr,xX,F_,nue,E4,CJ,vv,v6,eY,bS,zE,ep,I9,c8,ugM,ZtE,U6,ouh,zir,d_M,Bnh,rJq,tG,PHo,XBM,H6,T1,D3,zf,uNq,fG,FtO,u4,TU,Nl,KtF,eiA,btr,U4,IBf,Sc, hG,AG,Otf,gX,YX,m_Z,OiF,j$F,WT,Wtv,I7,Qze,fJ,ICO,p_,D_M,yE,n_,itF,B3,oZ,n5,Tnf,zr,rb,NnZ,s$h,dU,NWO,BJ,Co,L5r,hiv,AJZ,gur,fB$,Fa,NO,P_Z,aD$,yrO,S_E,b4,K_,eH,nao,bj,ECF,oaA,IZ,RZ,dOo,mJq,uj,crO,M9,mF,iG,TH,mH,fVM,oCh,rrE,wNh,PoO,Ju,Ukv,L2M,pN,xOZ,SBh,rJ,dAO,F2E,Tr,ma,sm,QE,S4,cy,MY,CoZ,vah,K2$,eJO,aK,Ap,bjv,ca,At,NV,Mif,OjZ,FE,f_,wm,qCv,jxr,D5$,HjZ,pq,Z8e,T7q,$oA,sxv,XZF,aH,HAA,Arq,yx,Ss,gah,nq,Vx,Y_v,d9,$W,ok,q_h,fDM,aaF,Vb,BF,iE,r9,H3,w9,OF,$_,SYM,PF,Lq,XP,nzq,MwO,Eq,CqO,Cq,k9Z,Kq,xS,es,Wp,V1$,bV, zzZ,dXM,GoM,fu,Oq,k_,Uk,c5E,gA,tj,r5F,hB,Ex,wOE,Yce,Q9,WF,VD,Lz,iV,rVM,NK,sq,nn,Uq,SM,xXr,Qx,FvF,EzZ,vzF,KvF,Dce,ezM,Na,LT,uio,kov,mXq,tke,Aq,Sy,gp,yOE,Y_,jwo,Jj,AeA,HzZ,Ano,Lv,X0A,DXh,Cv,Za,vg,f8,l7,T5o,N5r,y1,Sf,cA$,g$,fno,nw,ZW,WN$,ub,z$,G$,hl,Bt,qYr,oE,fh,wT,J5q,P1,$4f,nGr,ZDM,Lw,oGM,zo$,Gs$,Jhv,AJ,Cw,ef,IV,P4M,lbr,RV,Aa,sY$,Q2Z,ZD,ZN,bDr,fw,wjM,aQ,Ror,Ge,lN,ODF,ksf,S3,MA,mbM,nx,j7o,Dv,cf,Vv,bo,ZS,Dbo,V$,DJ,dg,Yrv,zd,qrM,Gk,p3M,f8r,ap,rg,ET,Huq,lLO,zU,rM,VCh,ypq,Sdv,nth,Zsv,ee,Pz,Lx,qVE,XI,xI, kuF,d3o,v9h,FI,gJ,GxA,Ef,Cx,Bqv,vR,cpA,rpA,we$,GDq,G0o,sgM,bN,S0,uzF,$3F,Iy,Xeo,x3q,qR,mR,Zcv,GB,MkM,t8,BD,Cle,Nx,j3,Wz,DS,yp,Fh,vtr,hO,YH,Uf,Kjf,h8,bsA,ih,gg,qz,J8,Plq,pf,nI,yX,zW,yH,rk,uo,aM,IK,HsO,Yp,Gh,vKq,cVv,isE,rw,sDZ,tSh,cu,U3A,X3,QDr,hgr,Apo,NX,qdr,Jp$,fLM,pqA,OTq,zeF,aH$,lHO,ox,lt,$S,y6E,Kf,bU,Ij,Rj,uU,ner,VXh,Hq,Z9r,oeA,kIA,z3A,dMA,VBo,e5r,OI,YVr,JJ,gT,nC,c6E,r6M,kx,sK,$Mq,$bE,L4E,Xqh,xM$,Tj,gPF,m7,EeZ,$G,CJZ,hr,Wl,W6,Ce,vef,K4Z,Hl,b9h,nG,Xb,u$v,qL,kTq,mMZ,tX$,iU,jtf,dCr,Ne,sI,jf,i9F,WV, YdM,NRe,stF,sp,UMM,Qtq,UI,gE,h0,vJ,h3o,gw,A6o,qiF,geO,YF$,xA,qFf,fHq,qe,pth,IHZ,n0F,B2,ff,Vxq,Z_,PB,Znf,o0Z,pBF,z1A,duF,zhZ,$Xe,Bmo,c3O,XiZ,$uO,gHA,P9$,Xt$,FV$,twM,JX,Ikh,R1E,Ft,uph,OnA,kiM,WB,et,EPr,kKF,Mxr,mur,txo,ju,jBZ,WVv,SG,wR,Hnv,DuO,inM,ha,Tmv,NmA,bW,sBF,UuO,aNE,QBv,nrr,A3o,Xt,g0O,Yxv,qxO,yWM,z4,xq,S2q,nkv,VdA,okh,IUM,cb,Gcr,rP,wP,B_r,W,KN,cWo,XZ,sF,ucr,bX,$Pv,LFf,h7h,XLr,NL,FFf,iAM,Gu,EkA,CcO,vkM,CV,acr,lV,e4M,vb,sOM,IJ$,YA,Mc,XQF,lO,Ok$,lx,tp,OT,kcO,rMe,bd,Mdo,mPh,I5,R5,fcA,Dx,tn,dq,WG, DPe,umA,ikE,fx,T_r,N_O,KT,VAr,sLq,h4o,AWO,UAO,Y2r,$D,m0,X6,JWf,y$o,Sj$,oZO,Vnf,B0,KD,Q5,eoe,qx,v9,zHZ,dRo,Wb,BHO,NE,M$E,c$A,el,B1,DF,DN,B5,vhq,Ga$,Sb,GW,akv,rOO,CRZ,vgM,TWh,ZeM,cqF,Ksq,b3M,I5h,RHZ,B6,UG,n1,MnO,mRv,tnv,jAr,Wsr,H3r,DRE,hg,Ag,THe,bl,gP,NHr,dm,EC,U$,sAe,URE,HFE,JQ,hHr,MPM,qZ,gge,YjE,fV,CU,xhq,qjO,F8,as,EB,f5F,p9F,daA,MNf,f6,np,EBr,NQ,uVv,Bx$,DP,l8A,Vce,KOE,bCf,I$M,u2E,Bc,cc,OCM,Me$,ma$,teE,SO,jNo,tI,pJ,w1,$R,WOM,HCh,Lp,iNF,XL,xR,iCv,TxA,yUq,Eg,Ohv,JIq,NxF,jM,Er,IN,KMM,jt,NT,CXO,Kp,eK, YeZ,Od,qef,f$v,pYE,avE,XJ,lvM,U0,kR,Mi,qBZ,yDA,StM,EiE,ta,dO,jm,Z5r,oSO,zk$,uZq,pH,eX,Gpq,rDE,PwF,LUv,XYO,cMe,cN,Wg,FUo,FM,ESo,IQ,vSA,xW,HV,sNE,vk,H4,ekA,Ux,DGr,ZG,Zkq,IvO,of,rm,zR,uEM,dN,XV,uYF,O5A,kpf,WUE,H5F,DrE,i5O,fr,rN,mx,Qp$,hkh,gSM,MgM,LgM,Ytv,id,H8,$V,JD$,PN,fvZ,Ja,M_M,PK,aAM,$VM,dw,ZYr,sd,M_,oLr,dte,JNF,LH,MD,cvO,FA,Fc,Pb,i3E,rvO,a1$,$tM,LEv,XXO,gJe,Ev,h$,ek,bYv,IAO,cDM,M1q,zCM,Eb,ew,Rmo,uoE,vK,S8,STv,kSo,mtF,Sno,IW,tyh,jSE,P3,tqA,yQe,jDh,oj,M6,Ov,Md,sbv,kHv,hI,Avo,gLE,YT$,Y3,JvE,fAA,l3h, yGr,p0q,jD,nXr,ITA,Yzf,hJA,V6,oXO,e8,Qw,GUe,BXA,lL,TR,Sbe,Pr,Nd,L3,haM,w6A,nSv,$OE,PSh,Jnr,AE,X6M,xlM,m7r,tN,e8M,FqM,EuA,KG,Kqv,eU$,Hp,Xuo,bJo,I3v,qd,RUZ,hU,JE,yv,fH,zo,OJh,MFF,pR,MYM,Q$,aF,B7q,j9r,ud,WqF,NG,HA,cZ,iJr,Ff,Qi,hWq,wde,nR,vN,VP,NXO,Hv,Ulr,Q9q,ra,uc,wa,vG$,$E,AGO,gX$,Y4r,q4v,JGF,pJq,UPE,lph,mZ,Xw,TVO,Fw,VHF,Jl,b0,Z_r,X9$,xAZ,osZ,d9A,SF,Gre,BUv,y5A,ctE,gto,wJF,Mte,l8,fYO,Y9r,$9o,Pj$,Ob,mg,f5,e3,nY,Gt,Krq,E$,cIo,FHM,EsE,Cjh,KHr,v7,i6,yKr,WQe,KR,hA,If,Pl,OsZ,Mw,H_$,D9M,i_q,NU$,YUo,XA,U9r, hqO,p8M,i1Z,AtM,uu,pr,gBv,gsr,Ymr,L7,zK,Jto,E7,Vsr,Zqr,m9,Y$r,xJq,Lj,eN,pF,B9q,Og,cjF,J5,Xsf,jQ,sU,PRq,gQM,W7,H7,rjo,th,wFE,$Kh,PVM,LAE,XFA,xKe,K$,LO$,FAM,Idh,zz,Dq,ATE,ByZ,E_$,ILf,sS,v_e,eEf,bq$,IRe,AXF,REZ,uPv,BA$,OqF,kd$,HO,QP,wd,tsM,HqO,DKo,T9M,CHO,N9r,UKF,qN,RS,T4,QHO,AjM,Yqo,$g,QU,X_,JL,e0,Jjh,fRh,Xq,eF,Gp,rTo,aWv,Qh,lWA,yao,IB,SKr,nje,EW,la,Zwq,ojM,KAf,xw,d1h,Vh,WL,KFv,BTA,CR,UfE,C_,Dm,RQ,jOZ,VL,hQ,LHv,HB,ae,UM,LJM,X1f,wM,FJM,d7,nCM,$1,HL,EjE,WuE,FOA,ZK,a8h,de,Hwq,oS,NTA,lAA,g3$,U1f,QVO,h9h, bnh,WjE,Aah,gje,FEE,dP,DA,pzO,xuf,lSZ,$8,EGr,x1$,Xo,FdE,Zxo,EY,Mhr,AMF,r8A,wzv,Eto,hOA,PN$,kWe,LRh,e7q,fQO,XzO,xzv,FRf,XF,CNF,vIq,x8,cq,Sq,GK,Yx,KRr,eQo,B9,bxr,uIO,Oxq,kg,I8o,fkM,d$,sp$,NgM,Wgh,ED,sQM,UzF,OK,Ey,QQZ,CE,gIh,Fd,vx,MK,GY,qfr,J8o,Rf,fSe,MZ,C3,rko,RkE,D6,wKo,$dh,pE,lm,WWv,Gv$,p1,PKh,IG,uw,nv,PCh,VkM,XNZ,UO,FCf,S0M,hmr,EVq,jnv,YCM,ni,CCM,wBF,p0,Ma,bu,KCe,eV$,bHZ,IGM,IOM,OHM,ceq,cQO,HHq,bk,Ddr,ELO,YfZ,m$,NNM,uf,IM,x9o,Udr,hVr,wN,u3,tb,Ad$,Ke,Os,gVO,NU,YvA,yl,wqF,fGr,s7v,p7h,Te,n0,mJ,tmM, ozM,ahh,lJ,yLe,nEM,S4r,pW,SWO,V5O,oEZ,H9r,zAh,an,GbZ,Hx,Baf,ia,TS,rLM,TO,$EA,Py,F8$,Nn,lDF,NF$,gQ,ki,Pur,L9F,GgM,EEE,fI,XOq,vEO,K9v,VaF,KEO,nco,m4,w$,XU,Ab,bRM,Ihr,RAr,OR$,pOf,RD,kbA,Mz,W1Z,Y8,sr,Bgv,tY,xRr,kL,W3,emr,mWo,t5f,Zrr,WAq,HRv,iRE,Al,TaF,Ovo,O0,Cw$,ALr,Mp,gEM,Yyf,qyo,xC,fhE,pxf,lP,yAe,aK$,VW,EcM,SDr,Fi,ruf,z$r,S1,VJf,XG$,ZEe,Srr,g_,Sz,GOq,Ber,cbE,$nq,Ca,PaF,nL,TX,Vgf,tX,xno,bGr,A8$,F$F,EI,Z7,nk,Ca$,Yk,v8E,K$o,xbo,xUo,IKh,GM,R0f,uGq,qhr,rC,G$o,jG,aP,Gx,r2,kOf,MJf,eC$,rqE,tJr,iiF,ic,drM,jGE, Oy,dlE,W$o,A$f,E0O,DnM,Teq,Neh,V_h,zS,sGZ,C$,N9,bD,Jwf,cnh,PS,QGE,tV,KYF,OU,YW,dbr,UrM,YC,dPF,Abr,g8$,uN,DB,ce,dd,Qm,gUv,g2o,xM,zI,KW$,SD,i4,GzO,wL$,JbF,fKf,T$,FR,gKA,y1O,SRA,Qfe,Ed,nMM,Dze,ZLv,mq,oMO,zGE,re,dFo,vz,ez,B2o,c1r,$M,r1v,dT,$Fh,PPe,Lzf,XSO,tff,xFF,Fzv,EMM,CPM,vMr,Kzr,eGF,xE,yV,I7h,c7,qDr,QFM,JD,OrF,J6,oC,RG$,UXE,u7,uRv,U6r,l5$,GKA,dHo,Of,mFv,RR,QH,qmo,rBv,pfr,LP,uB,na,z0f,B3F,iLF,T2v,N$M,N2r,ND,Gl,bq,hYE,QRM,hGM,rd,OR,A1e,kF,gMF,bm,eh,Go,YRM,qRv,sR$,RE,J1E,JW,fa,QL,LdF,fMe,a4o,dj,l4o, y2q,dnr,bwr,MF,h2r,n$M,mz,Xc,oH,VRo,pV,aN,Iw,j1Z,Kj,bC,vV,WFr,GVf,m9F,TTv,G5O,Em,t1,EV,PZO,Xnr,xsO,D7,KGA,xH,FpO,dh,Tg,v$O,KpZ,bgf,xB,I4r,RN,uTZ,QKF,kVO,iGo,QbM,msE,tRq,f7,$We,rer,PX,Q1,onv,TM,UD,Dso,NF,lRr,os,nj,Bd,igA,Ds,E2,sR,lH,hp,UX,NKF,mdM,aRr,sdZ,u8q,hRo,A2v,rxh,vS,Ywf,nl,qwA,f4h,aEM,lEq,ych,QW,CSo,PE,wMr,FnE,YL,t0,f7F,ooF,z6M,iP,d2,d0q,G7$,B4$,ccE,qtq,nz,rch,wh$,Hy,lZ,XN,e1r,eYf,sPh,Fb,$0q,wfh,v3Z,PMo,SR,LIr,eJ,UWO,klq,uh,SFe,KIe,cOM,eT,IEM,R6F,K9,CVE,pRA,MEM,wih,To,Rw,bU$,Xz,Ip,tMO,xQM,L5, atA,kY,fl,Da,R5o,N4O,zO,YS,Qcq,jz,cJ,vp,h6F,x2,C7M,goO,JYq,qlO,Jcq,GV,jn,G9,ao$,DK,loo,UUq,QvZ,tQZ,yoA,Zv,SHf,nTM,V6v,cn,ZZv,kkM,oTo,Ve,n9,zKq,dSA,v1,BzZ,rov,wK,p5M,qM,wPe,Vpr,JY,$$,XPZ,yW,WS,Pn,Lg,A5F,DWq,Kx,FB$,ETo,C1E,w1r,XT,KBM,bK,eKM,vVh,f2o,zJ,G6,lOM,G4,QX,ad,yxO,TI,b7f,a$,OZo,faZ,kZo,M6$,R9A,jIo,WBo,Lc,cuF,VO,HZO,DSf,D1A,rQ$,As,x$,pm,iZF,Mvr,FG,L0,$a,FT,Ew,Dav,Nzv,eqe,sIM,USO,t$q,nvh,j0,HN,ybM,hKv,mr,YHf,pwr,Id,afA,Rd,lfh,sfh,Ms,nbF,V9Z,xrA,ZBo,mp,L$,oDq,pr$,PH,mpo,DTh,A0,zrO,V1,uth,zXO,Wn, Sfo,$Y,EL,eu,zEq,ld,zk,phA,Gmo,BoA,cRq,szr,ijr,rRZ,AO,QC,V9,zT,wwr,$2Z,Zav,Rs,P$r,LSe,d8Z,$av,WIM,bLr,FSh,D4,rV,C$M,vbZ,uAA,LNr,eXE,rq,Ml,PTF,QA$,nJ,If$,voo,jTr,Cn,xZ,Q8,WSr,zQr,HBM,jZo,Gf,Wzq,Ouv,iBr,U2f,zNq,h2,VX,pSr,SmM,CMF,u_A,Ya$,qa$,WRF,JRe,ff$,pO,yG,WJ,W2M,lPr,ZT,hLE,ajM,pGe,du,UOZ,y8,ljO,keF,A2,yCO,S5h,Msr,O7,ol,Zc,n5o,qF,VIo,J6v,$q,dBO,ID,GNO,Biv,Y0,kH,cCr,k7,kj,rCr,kYo,va,wUM,W1,k2M,CGq,I2E,Pyr,DFF,XUr,tYZ,xBO,FKr,B7,xs,UaO,jB,qs,lM$,k3v,CyE,uJ,J2,k$q,BH,ZjO,Nqr,bdo,hT,cR,DR,tIA,tbE,eS, cYf,SqM,VQ,lY,WKM,HdF,gN,XRr,wRM,uY,Nir,oB,cS,siv,wpe,UBq,p4,ke,Qih,Wr,huM,NAh,CD,$7f,B5r,pnF,E3,g5O,xe,kZ,nFr,Yt,ac,E8q,iC,lM,sHO,JCO,AQZ,RcZ,a9v,XDf,uBZ,I$,y7Z,tgO,tzA,n4,ip,SPM,yBo,ndM,n3,fC,bmO,tF,Zyr,ZE,odE,zSh,zM,DW,xdO,R_M,Spo,JEq,tDM,zh,tO,c7v,r7O,N7r,w_M,$gr,Naq,eAE,P5F,x2M,LXv,NEv,z7,f3,kEZ,Va,Js,Pc,fk,oX,MOf,zt,Bb,fJ$,Hkr,E0,U_F,FXh,hzo,EdZ,wb,sTq,qG,wX,M5f,YKo,C6,C5v,Ka,QI,vdq,iav,MMv,Kdh,Yj,vuM,I9h,O8,R7,kPv,MVO,mgO,tVM,NM,j0F,BQ,WXO,CWZ,s0v,w7v,qzO,mKM,Ugh,dV,Q0r,k8,A7F,AL,Hz,js,Rp, obF,gdA,C4M,aPZ,YPM,Vn,pmO,ayE,Pxr,Pg,a2,ySO,SJE,jqE,uOh,JqE,G0,ch,ZQA,KE,Hxv,uq,zvh,wO,GJf,O3M,af,GyA,od,pL,BLE,cJE,h5o,ej,FP,ui,w4,$o,rSO,wmv,$yr,hIF,Li$,K3$,XmA,sVE,Sa,X3r,bBF,RG,TqE,xyr,Fio,Z8,E6Z,CAq,PAM,YlM,v6r,l3,qA,dl,L$h,fc,a3M,Kio,GPM,VQE,no,bQf,Xv,D0v,xo,Fv,MDo,IyM,GSM,rX,u1v,kO,Sl,pUo,ur,Se,UnO,bEe,El,NW,qp,kn,ky$,i7,tUO,zgh,K4,wn,wp,j6F,vQ,WiE,J1,eE,HQM,DyZ,aR,iQh,jRE,Hu,sFM,tL,eR,Sx,Che,NLA,s6h,o6M,Uyq,Q6r,$u,mLh,iOe,nW,aw,gB,As$,hvv,ASF,g6$,Wq,puo,Rc,ToZ,$7,uM,pAA,Y6h,BpA,pCq,oU,aZF, nmO,uro,P2,mTr,s8,bZM,AkM,p7,V7r,GH,Nur,ofr,rh,ztF,PY,zmv,QPr,Ax,M0,GnM,BSe,IH,RRv,vt,ZU,LJ,z4M,M1,Hb,mI,gm,riq,z8h,a$f,hj,H7o,tc,yh,Aj,jE,M3F,wCZ,Wh,OG,NZ,$q$,oD,Bv,mzq,LvM,Rg$,rWr,Lj$,b5A,XCr,xqZ,s2M,gkM,BdA,Fbq,bZ,GZF,hu,px,YYv,Rfr,EfM,b0F,GLA,Ce$,zL,jVe,zYZ,uQO,aqh,Hr,Gr,L4,gb$,lKv,Jn,M7A,qJh,QR,Au,mqh,X9,DE,t7r,Vy,j3v,WbM,HSr,Dqr,jdF,e3v,Ri$,KfM,skM,C4,fpZ,a8,iM,Rb,mnO,rf,iSZ,ln,gZv,J7f,TSM,ISh,lar,P0A,Fj,NSM,VVO,UqZ,Q3e,htZ,t3r,Aiv,R9,d5,HJ,gfE,YNE,qNE,JiE,ZWr,PW,p6M,B$F,fZq,pof,qK,Ul,jCO,lXv, yHv,h1F,Sor,SNF,f3M,BX,qLM,ir,UFO,pg,EIM,tv,zF,ql,A8,nle,uvM,Vrr,KJF,FsO,idA,RP,wy,sl,rt$,MQM,nO,VUr,o5M,piE,n6,olM,zlv,rHZ,Xd,ZIE,gt,Fxe,P2A,L_f,hc,$N,$AA,Xoq,YZe,ps,yRe,Ac,F_$,g4,C2e,v0,Oj,Ki,Qwf,hP,mlf,F3q,Bce,trr,OIo,oG,io,Tih,$K,pXv,nf,MO,dso,OLA,s1,HMA,hhq,GA,nV,d8,Jc,TcZ,Dmr,nt,oUo,NcM,kI,UmF,FTA,hlZ,csv,fW,O7e,jw,AHr,pZ,glO,Yor,MHE,JHv,fXh,xaZ,VfZ,OQr,SZ,lgq,mD,$zh,mG,$HA,RtO,nyM,ZbO,oyO,zFZ,y3,S6,dIF,Bj$,kXE,nov,GCh,c4$,HDO,r4h,AP,OEv,bhe,E$M,MRA,ba,uz,ZuA,nZ,xmh,$IM,PIr,A_v,yu,JQe,GWq,D3e, Ak,GT,cH,ww,mC,ji$,Q7h,cQ,WpF,Ppe,xIE,eHO,oI,eZ,F3,ZPo,Fko,Eyh,vyM,KkZ,oIF,eF$,F9,xk,jZ,x_r,JG,bbE,nNh,DMv,Ige,y6,Dz,zV,FJ,N1,gzM,Un,q2r,tE,rR,Obe,q1,td,kCF,uC,d_,kV,$t,LV,MLq,Px,Rk,B6O,yuZ,tLF,KL,oR,Wvv,Nor,RvE,t9O,Cg,e1,RO,L1,apF,CkF,P7,lC,pNA,WkA,ogh,Hbr,e6f,bv,o3q,fE,DIe,paM,BZO,IbA,CpM,dC,ib$,WA,uxr,knv,AZ,TZo,sur,cF,tOE,UIE,nI$,D$v,hFo,cTh,YEo,Lqr,m2f,s_h,Pm$,qqE,zG,Gw$,T0$,CZO,O1,Om,yyF,SuF,ht,NP,QM,o4r,znA,ah,dvf,Qe,vG,y2,E1o,p_v,rx,h0E,iHZ,s7,joZ,l9f,cyE,sZF,Ys,ryr,JAM,Th,g7,YP,w$q,Nkr,$ve, YBf,PsM,WoO,dz,GdE,eG,L6M,AD,WaM,uwM,RSr,VP$,Kt,rl,a5v,W_r,xv$,LbM,t0r,iDr,XxA,Izq,IO,ElZ,XJZ,E4q,D6F,Csr,$hO,SlM,BP,RMq,K6O,enZ,DBf,HG,VSO,bKE,OSM,cP,c8r,SwO,O4,ZT$,u7A,ES,$k,kxO,OKA,wz,W9,bWE,lv,MWM,ra$,mvo,j8,vn,z5h,$0,eRE,iK$,n8,TIO,LE,HF,NIo,s3A,Af,KnA,AyE,Ixh,Pa,YuO,gD,quo,Kx$,t2,PP,Jyf,w7,frr,w8r,aeK,RnZ,Pu,ZC,OyE,xg,iZ,aq,zbv,ks,LtM,yZK,l0O,SMc,FPE,LZ,nhb,Yhf,XIE,V$U,n8h,GX,mro,O4r,$sr,SY,yM,rZK,Bl,nKf,Lrl,Fx,l7v,udE,CZ,vP,XEa,xfc,tWM,vZ,UK,zuF,b1,eMG,bA2,Kg,rlh,XD,DI,RMa,uO1,D$,N0,cHo,OAU, kq8,iMF,M$M,mfc,t$a,YJq,Ol,TlZ,eC,pFZ,ege,jLo,II,$1r,oM,wG,vH,RIM,Vl,jR,og,rGh,QxM,icv,PQ,QLZ,QA,HAc,Dfc,iAW,sD,T7,cEv,XG,tz,Pcv,a_,R3q,Lk,cT,dt,Nvl,hL,We,nA,sr1,$No,Ph,UfM,Zo,QrK,HgE,DHA,h3,VLM,IF,JMh,hM7,Mt,ive,lG,zRh,Aur,wDf,Tu,Egq,qs$,DM,qM8,ZMo,qT,Fhf,JZG,WYO,fea,uL,pM_,o8F,ko,mIq,al_,GZ,gnE,KDe,uFh,u1,jHZ,E5$,y4h,lZZ,l0,Nu,fg,La,viv,Y$,OH,yBU,zUO,zTo,caA,q5e,n1M,WDr,ZcG,Wu,V3,o1U,nH,niA,evA,CFE,zqM,hk,YM,Gab,YWr,hd,BG8,bP,yR,rBG,wMc,k8f,WLv,YOF,RWv,Qp,$77,Qd,kgq,ul,xx,dYM,dGA,Ye,$_M,DC,LsO, pPo,zp,foZ,ry,Cf,z81,YsM,YM_,uP,kN,Gq8,LR,e8W,uX,bcc,bJ,$L,Yr,WCe,IlU,RBq,UtM,R82,uKB,eSo,kaB,qHe,uyf,IZq,IeW,$BZ,j5,BFA,OB,bev,rr,MzZ,GMA,hUf,PGF,iyf,Mbb,m72,tbM,j2M,edr,dzZ,AU,IWe,gr,nLZ,n_o,WcG,c1,P0,mB,HY,xz,Hcc,De,RQ$,Vg,D77,vXo,WJr,t1$,P_B,otA,PR,RYM,gNv,Qdr,EXO,NGW,s2W,U7c,NH,jO,lec,Q2B,kD,j6,SaM,H1,K1,h88,mM,j4E,g1l,zOM,qO,bt,Iq,z9O,Qr,pP,MZe,JJe,YW2,iR,agh,UC,z0,JBc,RFM,mOA,flU,HP,qW$,T4h,pdW,Do,aY_,i1,O1Z,CT,g4o,lYK,s1v,Z4,x_,w9o,YDE,VR,d4O,MUf,yjo,b_r,dqA,TZ,rt,ZRF,Xa,Joe,NS,vqA,HKZ,sH, UH,KW,S7U,nmK,zcM,cK,vLr,iu,O$f,uhO,i4$,kt,Q3,sEE,HT,dQM,sz,bT,TFv,FW,GAr,po;pEr=function(p){g.pA(p.d0);nA(p)||(p.d0=g.Vo(function(){return nA(p)},100))}; dv=function(p,a){a=a===void 0?200:a;return p?a===300?aeO:ler:a===300?yZO:SMr}; cE=function(p){g.X.call(this,{X:"button",A9:["ytp-fullerscreen-edu-button","ytp-button"],N:[{X:"div",A9:["ytp-fullerscreen-edu-text"],yY:"Desliza hacia abajo para ver m\u00e1s detalles"},{X:"div",A9:["ytp-fullerscreen-edu-chevron"],N:[{X:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},N:[{X:"path",V:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],V:{"data-priority":"2"}});this.Tm=p;this.fade=new g.Gq(this,250,void 0,100);this.S=this.L=!1;p.createClientVe(this.element, this,61214);g.E(this,this.fade);this.J(p,"fullscreentoggled",this.pz);this.J(p,"presentingplayerstatechange",this.pz);this.listen("click",this.onClick);this.pz()}; rv=function(p,a){p instanceof String&&(p+="");var l=0,y=!1,S={next:function(){if(!y&&l=p.a7()-wv(p)}; LA=function(p){return PE(p.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; XO=function(p){p.B.lf("shopping_overlay_visible");p.B.lf("shopping_overlay_preview_collapsed");p.B.lf("shopping_overlay_preview_expanded");p.B.lf("shopping_overlay_expanded")}; nh$=function(p,a){var l=!(!p.m&&!p.M),y=!(!p.mac3&&!p.MAC3),S=!(!p.meac3&&!p.MEAC3);p=!(!p.i&&!p.I);a.bf=p;return l||y||S||p}; CA=function(p,a,l,y,S,n,V){p-9>>3||l[Z[7]]==0||(a=(a%l[Z[7]]+l[Z[7]])%l[Z[7]],l[Z[33]](0,1,l[Z[33]](a,1,l[0])[0]));if((p-2|24)>=p&&(p+6^10)>2&23)){z=64;for(d=[];++z-d[Z[7]]-32;){switch(z){case 58:z-=14;case 91:case 92:case 93:continue;case 123:z=47;case 94:case 95:case 96:continue;case 46:z=95}d[Z[11]](String[Z[37]](z))}G= d}p-8<<2>=p&&(p-3|80)>1&15)==3)a:if(z=a[Z[21]](Z[3]),d=[V$o,-1687681335,1975496050,Z[22],Z[72],-894082331,-1393361600,ZAO,ohq,-1687681335,zMh,Z[56],dfh,-1309487491,-751657051,522793361,522793361,GqM,-1575323457,573059543,217843459,-1643848298,z,2094462010,234958512,-1370132344,z,-590357789,-8460793,BvA,826080953,cZr,797878449,rZO,wEM,662994867,217843459,-1883588102,1575126946,923076622,1525460341,1729191177,null,Z[85],-1897252112,1014843632,-666264848,555176624,1512480846,-616216324, Z[45],Z[45],1265697276,1818208290,1240908847,$fZ,PFO,Lre,1964530005,969729145,null,-264049654,null,307311784,1937728069,function(r,w,P){var F=w[Z[7]];r[Z[44]](function(v,I,b){this[Z[11]](b[I]=w[(w[Z[16]](v)-w[Z[16]](this[I])+I+F--)%w[Z[7]]])},P[Z[21]](Z[3]))}, 2121647474,XEq,1263562306,z,-702224998,-1993918255,xfr,-1943534582,65789552,-317592609,function(r,w){r=(r%w[Z[7]]+w[Z[7]])%w[Z[7]];w[Z[33]](-r)[Z[38]]()[Z[44]](function(P){w[Z[63]](P)})}, -1442139556,1580083333,-1725506300,FrM,-7760278],d[42]=d,d[60]=d,d[62]=d,typeof EhM===Z[52])G=a;else{try{try{var B=FO(18,d,Date);d=B[0];Date=B[1]}catch(r){var c=EM(1,d,Date);d=c[0];Date=c[1]}try{d[6]===7&&(((((((0,d[20])(d[8],d[28]),d[73])(d[32],(0,d[21])(),d[50]),d[23])(d[69]),(0,d[73])(d[32],(0,d[21])(),d[11]),d[73])(d[28],(0,d[new Date(Z[73])/1E3])(),d[50]),d[73])(d[69],(0,d[57])(),d[11]),d[307-Math[Z[66]](new Date(Z[74])/1E3,4)%350])(d[27],d[12]),1)||((0,d[42])(((0,d[73])(d[28],(0,d[21])(),d[51]), d[54])(d[69]),d[83],d[77],d[12]),d[25])((0,d[42])((0,d[61])(d[36],d[32]),d[61],d[2],d[28]),d[82],(0,d[66])(d[28],d[67]),d[8],d[12]),((0,d[73])(d[69],d[37],d[50]),d[73])(d[28],(0,d[46])(),d[51])}catch(r){d[40]!==4&&(d[41]<=3||((((0,d[20])(d[1],d[32]),(0,d[54])(d[78]),d[47])(d[78],d[65]),(0,d[54])(d[12]),d[20])(d[79],d[69]),void 0))&&(((0,d[82])(d[72],d[76]),d[54])(d[76]),(0,d[24])(d[54],d[73]),d[39])(d[58],d[43])*(0,d[60])(d[80],d[23])}}catch(r){G=Z[34]+a;break a}G=z[Z[65]](Z[3])}return G}; vE=function(p,a){p.L.objectStoreNames.contains(a)&&p.L.deleteObjectStore(a)}; OAo=function(p){var a=p.api.C(),l=CFE(a);l=vhq(l);var y=l.kG.bind(l);l.kG=function(z){var d;return g.R(function(G){if(G.L==1)return g.u(G,y(z),2);d=G.S;p.api.jl("itr",{});return G.return(d)})}; try{var S=Krq({a8:l,gt:{maxAttempts:5},FQ:{SR:"CLEn",disable:a.experiments.Cz("html5_web_po_disable_remote_logging")||eMv.includes(g.Ir(a.M0)||""),fA:bAr(a.experiments),UK:a.experiments.Cz("wpo_gel_strz")?function(z){var d=IeM.get(z);d||(d=new RMq(z),d=new g.Rr(d),IeM.set(z,d));return d}:void 0, ovz:p.D("wpo_dis_lfdms")?0:1E3},ix7:g.Mf});var n=new mr({Yy:S,a8:l,onError:g.Mf});uOh(n.tU()).then(function(){p.L=!0;p.W.resolve()}); p.D("html5_web_po_token_disable_caching")||n.C2(150);g.E(p,S);g.E(p,n);p.S=n}catch(z){g.Mf(z);var V;(V=S)==null||V.dispose()}}; tZ=function(p,a,l,y){this.flavor=p;this.keySystem=a;this.S=l;this.experiments=y;this.L={};this.r7=this.keySystemAccess=null;this.JX=this.Zs=-1;this.e8=null;this.U=!!y&&y.Cz("edge_nonprefixed_eme");y&&y.Cz("html5_enable_vp9_fairplay")}; kqM=function(){var p=XMLHttpRequest.prototype.fetch;return!!p&&p.length===3}; g.j$=function(p,a,l){for(var y in p)if(a.call(l,p[y],y,p))return!0;return!1}; WE=function(p){return p}; mfr=function(p){var a=M$E();if(a.values){a=a.values;for(var l={},y=g.t(Object.keys(p.values)),S=y.next();!S.done;S=y.next()){S=S.value;a[S]&&p.S[S]&&(p.values[S]+=a[S]-p.S[S]);var n=p,V=n;if(!V.values[S]){var z=M$E();V.values=z.values||{};V.fp=z.halfLives||{};V.S=z.values?Object.assign({},z.values):{}}l[S]=n.values[S]&&n.fp[S]?n.values[S]/Math.pow(2,n.L/n.fp[S]):0}p.S=l}a=p.fp;l={};l.values=p.S;l.halfLives=a;g.HE("yt-player-memory",l,2592E3)}; Zl=function(p,a,l,y,S,n){var V=n===void 0?{}:n;var z=V.Vt===void 0?[]:V.Vt;var d=V.YL===void 0?!1:V.YL;var G=V.X5===void 0?0:V.X5;var B=V.poToken===void 0?"":V.poToken;var c=V.ND===void 0?void 0:V.ND;var r=V.XN===void 0?"":V.XN;var w=V.rE===void 0?0:V.rE;var P=V.GD===void 0?new Uint8Array(0):V.GD;var F=V.DZ===void 0?!1:V.DZ;n=V.QR===void 0?0:V.QR;V=V.D$===void 0?void 0:V.D$;De.call(this,a,S);var v=this;this.policy=p;this.logger=new g.iF("dash/request");this.kV=this.MA=0;this.vp=!1;this.vL=this.LU= null;this.e7=!1;this.GD=this.rE=null;this.TQ=this.iR=!1;this.Oa=null;this.QR=this.Do=0;this.US=!1;this.hg={cZ:function(b){v.cZ(b)}, npv:function(){return v.dc}, jwY:function(b){v.dc=b}, S1I:function(b){v.MA=b}, L_O:function(b){v.R4.lastError=b}, sJ:function(){return v.xhr}}; this.timing=new Tq(this,l);this.YL=d;this.rE=w;this.GD=P;this.G9=g.sM(this.info,this.policy,y);this.G9.set("rn",this.R1().toString());this.G9.set("rbuf",(G*1E3).toFixed().toString());this.YL&&this.G9.set("smb","1");this.policy.Sr&&B&&this.G9.set("pot",B);r&&this.G9.set("bbs",r);this.policy.useUmp&&!UM(29,this.G9.VS)&&(this.hk=new AZ(this),this.G9.set("ump","1"),this.G9.set("srfvp","1"));if(p=this.policy.Lg?this.policy.KY&&!isNaN(this.info.gE)&&this.info.gE>this.policy.uO?!1:!0:!1)a=null,this.policy.Jx&& this.policy.BW?a=[1]:F&&(a=[]),a!=null&&(this.policy.bb&&a.push(2),this.G9.set("defsel",a.join(",")));this.R4=new gv(this,this.policy,this.G9,this.info.bM,this.timing,this.logger,y,c);this.Vt=z||null;this.Bw=t$q(this);jrh(this.R4);y=void 0;if(this.policy.rg||this.hk||this.policy.Hs)y={method:"POST"},z=(0,g.Yh)([120,0]),c={},this.policy.RY&&V&&(V=qf(void 0,V),c.Nf=V),this.policy.fl&&this.GD&&(c.videoPlaybackUstreamerConfig=this.GD),this.policy.Hs&&(V=this.info.j)&&Object.assign(c,V),Object.keys(c).length> 0?y.body=g.JZ(c,g.fA):y.body=z;if(this.rE&&this.GD){this.G9.set("iwts","1");y={method:"POST"};V={lj:this.rE*1E3};var I;z=(I=this.info.j)==null?void 0:I.VZ;I=g.JZ({eK:V,VZ:z||void 0,videoPlaybackUstreamerConfig:this.GD},g.fA);y.body=I}try{this.xhr=a2(this.G9,this.policy.Z,this.timing,p,y),this.R4.S.start(),n&&(this.s1=new g.l_(this.Qy,n,this),this.s1.start(n+(this.timing.s6.Z.Cv()||0)*1E3)),this.policy.xt&&Sb(this.timing,this.RX()),g.VU(function(){})}catch(b){WrO(this,b,!0)}}; o2=function(p){this.value=p}; Dfr=function(p){p=HAA(p);return dG(p)}; TvF=function(p,a,l,y,S){var n=Ga(p.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");y=[new BM({getAdBreakUrl:y.getAdBreakUrl,gI:0,WI:0}),new cM(!0)];p=a.pauseDurationMs?a.lactThresholdMs?{slotId:n,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new rG(p.L,n),slotFulfillmentTriggers:[new iAM(p.L)],slotExpirationTriggers:[new wG(p.L,S),new $1(p.L,n)],iT:"core",clientMetadata:new Lc(y),adSlotLoggingData:l}:new W("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new W("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return p instanceof W?p:[p]}; g.x1=function(p){return(p=g.XK(p.DN()))?p.fF():{}}; Cc=function(p,a){FK.call(this,p,a);this.options=a;EW(p)}; Nve=function(p){for(var a=[],l=0;l0&&p.api.getPlayerSize().width<=l;p=p.api.getRootNode();p.classList.toggle("ytp-delhi-modern-compact-controls",a);l=a?"8px":"12px";var y=a?"56px":"72px",S=a?"56px":"64px",n=a?"48px":"56px",V=a?"12px":"20px",z=a?"72px":"96px";p.style.setProperty("--yt-delhi-pill-height",a?"40px":"48px");p.style.setProperty("--yt-delhi-pill-top-height", l);p.style.setProperty("--yt-delhi-bottom-controls-height",y);p.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",S);p.style.setProperty("--yt-delhi-big-mode-pill-height",n);p.style.setProperty("--yt-delhi-big-mode-pill-top-height",V);p.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",z)}; g.AB=function(p,a){a=a===void 0?AZE:a;a:if(a=a===void 0?AZE:a,!(p instanceof QU)){for(var l=0;la?1:0}; qMM=function(p){var a=a===void 0?51:a;var l=[];lO(p,yi,6).forEach(function(y){n8(y,2)<=a&&l.push(n8(y,1))}); return l}; JZv=function(p,a){a=p.L&&!a;return p.U5||a?new g.Vi(new g.ZY({FNT:p.U5,ji:a})):new g.Vi}; feq=function(p){var a=g.o4("window.location.href");p==null&&(p='Unknown Error of type "null/undefined"');if(typeof p==="string")return{message:p,name:"Unknown error",lineNumber:"Not available",fileName:a,stack:"Not available"};var l=!1;try{var y=p.lineNumber||p.line||"Not available"}catch(V){y="Not available",l=!0}try{var S=p.fileName||p.filename||p.sourceURL||g.dD.$googDebugFname||a}catch(V){S="Not available",l=!0}a=Bd(p);if(!(!l&&p.lineNumber&&p.fileName&&p.stack&&p.message&&p.name)){l=p.message; if(l==null){if(p.constructor&&p.constructor instanceof Function){if(p.constructor.name)l=p.constructor.name;else if(l=p.constructor,cd[l])l=cd[l];else{l=String(l);if(!cd[l]){var n=/function\s+([^\(]+)/m.exec(l);cd[l]=n?n[1]:"[Anonymous]"}l=cd[l]}l='Unknown Error of type "'+l+'"'}else l="Unknown Error of unknown type";typeof p.toString==="function"&&Object.prototype.toString!==p.toString&&(l+=": "+p.toString())}return{message:l,name:p.name||"UnknownError",lineNumber:y,fileName:S,stack:a||"Not available"}}return{message:p.message, name:p.name,lineNumber:p.lineNumber,fileName:p.fileName,stack:a}}; rD=function(p){return p.Ws.D("html5_disable_av1")?!0:!1}; Pd=function(p){wD.S.cancel();$m=p;wD.done=!0}; g.L8=function(p,a,l){p.L=a;p.G=l||0}; g.bO=function(p,a,l,y,S){S=S===void 0?!1:S;l&&XU(p,l);l=g.AB(p);var n=g.xm(l);p!=n&&FU(Error("Unsafe window.open URL: "+p));p=n;a=a||E7(p).toString(36);try{if(S)return S=p,S=pMF(S),C8(S),g.vd(window,S,a,"attributionsrc")}catch(V){g.K8(V)}C8(p);return g.vd(window,l,a,y)}; R4=function(p,a){a=a===void 0?!1:a;if(p.S){if(p.G){var l=p.S;p.app.Tm.removeEventListener(g.I4("vqueued"),p.K);l.removeCueRange(p.G)}p.S=null;p.G=null}p.U&&(p.U.status.status!==6&&(l=p.U,l.status.status!==Infinity&&l.W!==1&&l.jj("Canceled")),p.U=null);p.j=null;p.L&&!a&&p.L!==p.app.jb()&&p.L!==p.app.qO()&&p.L.dispose();p.L&&a&&p.L.TF();p.L=null;p.Z=!1}; uO=function(p,a,l,y){this.wM=a;this.visible=l;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=y||p(this.triggerType)}; srh=function(p){var a=O7();switch(a){case 1:MQ.h5vcc.traceEvent.traceEnd("YTLR",p);break;case 2:a=p+"-start";var l=p+"-end";MQ.performance.mark(l);MQ.performance.measure(p,a,l);break;case 0:break;default:m5(a,"unknown trace type")}}; g.tP=function(p,a){function l(){} l.prototype=a.prototype;p.Lv=a.prototype;p.prototype=new l;p.prototype.constructor=p;p.VS=function(y,S,n){for(var V=Array(arguments.length-2),z=2;z>31));NQ(p,16,a.dOY);NQ(p,17,a.detailedNetworkType);NQ(p,18,a.Bc);NQ(p,19,a.bq);NQ(p,21,a.zLs);NQ(p,23,a.F6);NQ(p,28,a.N6);NQ(p,29,a.e5c);NQ(p,34,a.visibility);l=a.playbackRate;if(l!==void 0){var y=new ArrayBuffer(4);(new Float32Array(y))[0]=l;l=(new Uint32Array(y))[0];if(l!==void 0)for(s7(p,285),Qi(p,4),y=0;y<4;)p.view.setUint8(p.pos,l&255),l>>=8,p.pos+=1,y+=1}NQ(p,36,a.oH); hP(p,38,a.mediaCapabilities,alF,3);NQ(p,39,a.fdm);NQ(p,40,a.Bn);NQ(p,44,a.playerState);AP(p,46,a.JC);NQ(p,48,a.lj);NQ(p,50,a.f6);NQ(p,51,a.a$);NQ(p,54,a.Ii);if(a.cU)for(l=0;l=0;y--)if(y in S&&a.call(l,S[y],y,p))return y;return-1}; o1=function(p,a){var l=a.Rc;p.K="updateWithSegmentInfo";p.Rc=l;if(p.startTime!==a.startTime||p.duration!==a.duration)p.startTime=a.startTime+0,p.duration=a.duration,z8h(p)}; d7F=function(p){for(var a,l=[];!(a=p.next()).done;)l.push(a.value);return l}; BGM=function(p,a){if(p.playerType===2||p.Y.r8)a.Dr=!0;var l=Ga$(a.n1,a.Go,p.Y.j,p.Y.Z);l&&(a.adFormat=l);p.playerType===2&&(a.Sj=!0);if(p.isFullscreen()||p.Y.j)l=g.zv("yt-player-autonavstate"),a.autonavState=l||(p.Y.j?2:p.videoData.autonavState);a.endSeconds&&a.endSeconds>a.startSeconds&&dC(p,a.endSeconds)}; Bk=function(p,a){return g.Gv(p.toLowerCase(),a.toLowerCase())}; dG=function(p){var a=ck();p=a?a.createHTML(p):p;return new rC(p)}; cBf=function(p){if(!Array.isArray(p))for(var a=p.length-1;a>=0;a--)delete p[a];p.length=0}; g.wC=function(p){return p&&p.parentNode?p.parentNode.removeChild(p):null}; Pk=function(p,a){var l=$c(p);return l.defaultView&&l.defaultView.getComputedStyle&&(p=l.defaultView.getComputedStyle(p,null))?p[a]||p.getPropertyValue(a)||"":""}; LcA=function(p,a,l,y,S){var n;if((n=p.playerOverlay)==null||!n.instreamSurveyAdRenderer)return function(){return[]}; if(!rBv(p))return function(){return new W("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:p})}; var V=p.playerOverlay.instreamSurveyAdRenderer,z=La(V);return z<=0?function(){return new W("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:V})}:function(d,G){var B=wMr(d,l,y,function(c){var r=c.slotId; c=G(c);var w=XJ(V);r=xc(S.S.get(),"LAYOUT_TYPE_SURVEY",r);var P={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",iT:"core"},F=new FJ(S.L,y),v=new Ca(S.L,r),I=new vk(S.L,r),b=new $7f(S.L);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Xh:new Map,layoutExitNormalTriggers:[F,b],layoutExitSkipTriggers:[v],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[I],layoutExitUserCancelledTriggers:[],iT:"core",clientMetadata:new Lc([new Ka(V),new ei(a),new b0(z/1E3),new R1(w)]),nx:c(P),adLayoutLoggingData:V.adLayoutLoggingData}}); d=P_Z(p,l,B.slotId,y,S,d,G);return d instanceof W?d:[B].concat(g.u0(d))}}; g.m8=function(p,a){var l=l===void 0?0:l;var y=new XMZ;gD(y,2,Op(p));p=x7A[a];if(typeof p==="undefined")throw l=new g.kc("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:a}),g.iO(l),l;NQ(y,4,p);NQ(y,5,1);a=new Uint8Array(y.L.buffer,y.L.byteOffset,y.pos);return encodeURIComponent(g.MN(a,l))}; tx=function(p){return[p.auth===void 0?"undefined":p.auth,p.isJspb===void 0?"undefined":p.isJspb,p.cttAuthInfo===void 0?"undefined":p.cttAuthInfo,p.tier===void 0?"undefined":p.tier].join("/")}; g.Wk=function(p){return Object.prototype.hasOwnProperty.call(p,ji)&&p[ji]||(p[ji]=++Fcq)}; Db=function(p){var a=this;this.ol=this.L=!1;this.potentialEsfErrorCounter=this.S=0;this.handleError=function(){}; this.eA=function(){}; this.now=Date.now;this.yI=!1;this.hg={F0I:function(B){a.PX=B}, lkv:function(){a.XH()}, St:function(){a.A6()}, QE:function(B){return g.R(function(c){return g.u(c,a.QE(B),0)})}, iY:function(B,c){return a.iY(B,c)}, Od:function(){a.Od()}}; var l;this.W5=(l=p.W5)!=null?l:100;var y;this.gm=(y=p.gm)!=null?y:1;var S;this.LT=(S=p.LT)!=null?S:2592E6;var n;this.CM=(n=p.CM)!=null?n:12E4;var V;this.Wp=(V=p.Wp)!=null?V:5E3;var z;this.PX=(z=p.PX)!=null?z:void 0;this.Ry=!!p.Ry;var d;this.mz=(d=p.mz)!=null?d:.1;var G;this.BP=(G=p.BP)!=null?G:10;p.handleError&&(this.handleError=p.handleError);p.eA&&(this.eA=p.eA);p.yI&&(this.yI=p.yI);p.ol&&(this.ol=p.ol);this.Cz=p.Cz;this.P1=p.P1;this.xg=p.xg;this.lN=p.lN;this.sendFn=p.sendFn;this.KD=p.KD;this.xq= p.xq;Hk(this)&&(!this.Cz||this.Cz("networkless_logging"))&&E1o(this)}; i0=function(p){p=Error(p);C_e(p,"warning");return p}; Up=function(p,a,l,y){(p=p.ir.get(l))&&!p.h$&&(Tv?(p.KC.has(a)||p.KC.set(a,{data:new NN,qN:0,NB:!1}),sp(p.KC.get(a).data,y)):sp(p.ZF,y),p.bytesReceived+=y.totalLength,p.Uh=!0)}; SN=function(p,a,l){var y=p[QB]|0,S=hx(y),n=Ax(p,l,S);if(n!=null&&n[gC]===Yc){if(!qN(n))return Jx(n),n.NO;var V=n.NO}else Array.isArray(n)&&(V=n);if(V){var z=V[QB]|0;z&2&&(V=fa(V,z))}V=pF(V,a,!0);V!==n&&yH(p,y,l,V,S);return V}; v1r=function(p){for(var a=p.L,l=[],y=0;y1?d[1]:""),G=d==="/pagead";d=G?!0:!1}d=!d}d||S&&a[n]!==void 0||y==="TVHTML5_UNPLUGGED"&&z||(a[n]=V)}"X-Goog-EOM-Visitor-Id"in a&&"X-Goog-Visitor-Id"in a&&delete a["X-Goog-Visitor-Id"];if(l||!g.Ir(p))a["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(l||!g.Ir(p)){try{var B=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(c){}B&&(a["X-YouTube-Time-Zone"]=B)}document.location.hostname.endsWith("youtubeeducation.com")||!l&&g.Ir(p)||(a["X-YouTube-Ad-Signals"]= d1(GG()));return a}; uKZ=function(){var p=Ilo("IFRAME"),a={};g.Bf(R8r(),function(l){p.sandbox&&p.sandbox.supports&&p.sandbox.supports(l)&&(a[l]=!0)}); return a}; r1=function(p,a){return cf(p,a.slotType+"_"+a.slotPhysicalPosition).get(a.slotId)}; g.Pf=function(p,a,l){w1(p,l)||$B(p,a,l);w1(p,"video_to_ad")||$B(p,a,"video_to_ad");w1(p,"ad_to_video")||$B(p,a,"ad_to_video");w1(p,"ad_to_ad")||$B(p,a,"ad_to_ad")}; LF=function(p){return p?p.defaultView:window}; Ocq=function(p,a){return p===a}; Xe=function(p,a){return typeof a==="string"?p.getElementById(a):a}; kaZ=function(){this.U=[];this.S=0;this.L=new xB}; j2E=function(p,a){var l=Mb$(a),y=m7r(a);if(!a.SD||!p.B.aQ())if(p.L||p.B.D("enable_paid_content_overlay_bugfix")){if(a.videoId&&a.videoId!==p.videoId){var S;(S=p.L)==null||g.Fe(S);!p.B.D("enable_paid_content_overlay_bugfix")||l&&y?(p.videoId=a.videoId,p.U=!!y,p.U&&l&&tbE(p,y,l,a)):p.U=!1}}else l&&y&&!p.B.D("enable_paid_content_overlay_bugfix")&&tbE(p,y,l,a)}; E1=function(p){return p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; Wcv=function(){}; TGO=function(p){for(var a="",l=Object.keys(p),y=0;y>>0;tm=a;jN=(p-a)/4294967296>>>0}; Hf=function(p){return p==null?p:NGM(p)}; U7r=function(p,a){this.logger=a;try{var l=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(y){l=!1}l&&(this.index=s2M(p))}; iK=function(p){var a={};a[p.status]=DM(p)?Q2Z(p,"."):p.j.join(".");return a}; TG=function(p,a,l){return new g.nF(p*1E3,a*1E3,{priority:9,namespace:l})}; WrO=function(p,a,l){l=l===void 0?!1:l;g.iO(a);p.R4.lastError="player.exception";p.errorMessage=a.name+"_"+a.message;l?g.VU(function(){ND(p.R4)}):ND(p.R4)}; h8M=function(p){return s1(p,"html5_ssap_play_cached_preroll")}; g1e=function(p){var a=ABq(p);p=p.defaultView;return new g.U1((p==null?void 0:p.pageXOffset)||a.scrollLeft,(p==null?void 0:p.pageYOffset)||a.scrollTop)}; g1=function(p){QH.call(this,p);var a=this;this.L=!0;var l=new g.hm(p);g.E(this,l);l.J(p,"internalaudioformatchange",function(y,S){YWr(a,y,S)}); l.J(p,"annotationvisibility",function(y){a.api.D("web_fix_annotations")&&qW$(a,(294).toString(),{boolValue:y})}); l.J(p,"videoplayerreset",function(){Am(a)}); l.J(p,"videodatachange",function(y,S){a.onVideoDataChange(y,S)})}; JBA=function(p,a){for(var l=[],y=g.t(p.Ag.values()),S=y.next();!S.done;S=y.next())S=S.value,S.trigger.triggerType===a&&l.push(S);l.length>0&&YB(p.G(),l)}; qD=function(p){var a=p.data.getUint16(p.offset+p.L);p.L+=2;return a}; pU=function(){return flo||(flo=new Jm(null,fF))}; pdM=function(p,a){return(p=Zcv(p,a*1E3))?a-p.start/1E3:a}; lYO=function(p,a){p.showShareButton=!!a;var l,y,S=((l=g.T(a,g.az))==null?void 0:l.navigationEndpoint)||((y=g.T(a,g.az))==null?void 0:y.command);S&&(p.IK=!!g.T(S,aYF))}; yPo=function(p,a){p=g.t(p.actionButtons);for(var l=p.next();!l.done;l=p.next())l.value.UC(a)}; S7o=function(){this.S=this.position=this.U=this.L=this.j=this.width=NaN}; omM=function(p,a){var l=a.cancelRenderer&&a.cancelRenderer.buttonRenderer||null;l&&(p.L=new lt(p.api,p.layoutId,p.interactionLoggingClientData,p.ZV,["ytp-ad-feedback-dialog-close-button"],"button"),g.E(p,p.L),p.L.init(y_("button"),l,p.macros),p.L.listen("click",p.PK,p),p.L.lT(p.element));a.title&&(l=g.Sw(a.title),p.updateValue("title",l));a.reasonsTitle&&(l=g.Sw(a.reasonsTitle),p.updateValue("reasonsTitle",l));a.reasons&&nmO(p,a.reasons);a.cancelLabel&&(l=g.Sw(a.cancelLabel),p.updateValue("cancelLabel", l),g.nU(p.W,"click",function(){return p.PK()})); a.confirmLabel&&(l=g.Sw(a.confirmLabel),p.updateValue("confirmLabel",l),g.nU(p.Z,"click",function(){return V_h(p)})); a.undoRenderer&&Z8e(p,a.undoRenderer)}; g.V_=function(p){var a=[],l=0,y;for(y in p)a[l++]=y;return a}; ZQ=function(p){zrO(fF);var a=p.L;a=a==null||dQE&&a!=null&&a instanceof Uint8Array?a:typeof a==="string"?G5O(a):null;return a==null?a:p.L=a}; g.oz=function(p){var a;return p.fg||((a=p.suggestions)==null?void 0:a[0])||null}; g.BA=function(p){var a=G6(p);return a=="array"||a=="object"&&typeof p.length=="number"}; g.$9=function(p){var a=p.C();if(!a.Ct)return!1;var l=p.getVideoData();if(!l||p.getPresentingPlayerType()===3)return!1;var y=(!l.isLiveDefaultBroadcast||a.D("allow_poltergust_autoplay"))&&!cA(l);y=l.isLivePlayback&&(!a.D("allow_live_autoplay")||!y);var S=l.isLivePlayback&&a.D("allow_live_autoplay_on_mweb");p=p.getPlaylist();p=!!p&&p.nO();var n=l.Hs&&l.Hs.playerOverlays||null;n=!!(n&&n.playerOverlayRenderer&&n.playerOverlayRenderer.autoplay);n=l.S5&&n;return!l.ypcPreview&&(!y||S)&&!g.rW(l.Bs,"ypc")&& !p&&(!g.wW(a)||n)}; BDo=function(p){var a=this;this.S=void 0;this.L=!1;p.addEventListener("beforeinstallprompt",function(l){l.preventDefault();a.S=l}); p.addEventListener("appinstalled",function(){a.L=!0},{once:!0})}; cPq=function(p,a,l){var y=new PA(p.api,p.layoutId,p.interactionLoggingClientData,p.ZV,p.j.bind(p));y.lT(p.W);y.init(y_("survey-question-single-select"),a,l);p.api.C().D("supports_multi_step_on_desktop")?p.U=y:p.questions.push(y);g.E(p,y)}; rPO=function(p){var a=!1;a=a===void 0?!1:a;LU.google_image_requests||(LU.google_image_requests=[]);var l=Ilo("IMG",LU.document);a&&(l.attributionSrc="");l.src=p;LU.google_image_requests.push(l)}; FV=function(p,a){p.Y.D("html5_log_rebuffer_reason")&&(a={r:a,lact:XV()},p.mediaElement&&(a.bh=x9(p.mediaElement)),p.jl("bufreason",a))}; $QF=function(p,a,l,y,S){var n=(0,g.Ek)(),V=S?S(a):void 0,z;S=(z=V==null?void 0:V.EZ)!=null?z:1;if(S!==0){var d;z=(d=V==null?void 0:V.profile)!=null?d:l;wde(p,z,n-y,S)}return a}; POA=function(){var p=["metadata_type_ad_action_interstitial_renderer"];CU().forEach(function(a){p.push(a)}); return{XX:p,OE:["LAYOUT_TYPE_ENDCAP"]}}; Iz=function(p){if(!p.G){if(g.vA(p.info.L.info)){var a=g.KU(p);var l=ew(a,0,1836019574);if(l){l=l.offset+l.size;var y=new Uint8Array(l);y.set(new Uint8Array(a.buffer,a.byteOffset,l));a=y}else a=null}else a=L5r(new bt(g.KU(p)));a&&(p.info.L.L=a,p.G=!0)}}; Xdh=function(p,a){a=(a.DI+1)*1E3;var l=void 0;p=g.t(p.Ag.values());for(var y=p.next();!y.done;y=p.next()){var S=y.value;y=S.trigger;S=S.slot;y instanceof Rz&&y.breakDurationMs<=a&&(!l||y.breakDurationMs>l.trigger.breakDurationMs)&&(l={slot:S,trigger:y})}return l}; ut=function(p){p=Math.trunc(p)||0;p<0&&(p+=this.length);if(!(p<0||p>=this.length))return this[p]}; g.mo=function(p){p.Hs=p.L.length-1;p.Ha=0;xQM(p,!0)&&xQM(p,!1);for(var a=0,l=0;l=0;y--)if(p.L[y].width>0){Ok(p.L[y],0);var S=Math.floor(p.L[y].width);p.L[y].width=S;k9(p.L[y],S+"px");break}p.L[l].width=0;k9(p.L[l],"0")}else l===p.L.length-1?(y=Math.floor(p.L[l].width+a),p.L[l].width=y,k9(p.L[l],y+"px")):(a=p.L[l].width+a,y=Math.round(a),a-=y,p.L[l].width=y,k9(p.L[l],y+"px"));l=0;if(p.j.length===p.L.length)for(a=0;a< p.j.length;a++)y=p.L[a].width,p.j[a].element.style.width=y+"px",p.j[a].element.style.left=l+"px",l+=y+Mp(p);p.api.D("delhi_modern_web_player")&&(p.L.length===1?p.L[0].S.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(p.L[0].S.classList.remove("ytp-progress-bar-end"),p.L[0].S.classList.add("ytp-progress-bar-start"),p.L[p.L.length-1].S.classList.add("ytp-progress-bar-end")))}; EmF=function(p){var a=p.jb();if(!(g.h(a.getPlayerState(),64)&&p.y$().isLivePlayback&&p.lM.startTimeMs<5E3)){if(p.lM.type==="repeatChapter"){var l,y=(l=F5Z(p.DN()))==null?void 0:l.nC(),S;l=(S=p.getVideoData())==null?void 0:S.ej;y instanceof g.t9&&l&&(S=l[jw(l,p.lM.startTimeMs)],y.renderChapterSeekingAnimation(0,S.title));isNaN(Number(p.lM.loopCount))?p.lM.loopCount=0:p.lM.loopCount++;p.lM.loopCount===1&&p.Tm.xv("innertubeCommand",p.getVideoData().h5Y)}y={JP:"application_loopRangeStart"};if(p.lM.type=== "clips"||p.lM.type==="shortsLoop")y.seekSource=58;a.seekTo(p.lM.startTimeMs*.001,y)}}; COo=function(p,a){WA(p)?g.VU(function(){a(p)}):p.callback=a}; vmZ=function(p){return isNaN(p)?0:Math.max((Date.now()-p)/1E3-30,0)}; K5$=function(p,a){p.raw=a;Object.freeze&&(Object.freeze(p),Object.freeze(a));return p}; ere=function(p,a,l,y,S){this.U=p;this.S=a;this.W=l;this.cpn=y;this.G=S;this.j=0;this.L=""}; b8q=function(p){var a=p.RJ,l=p.Ky,y=p.lQ,S=p.Dn;p.lQ=void 0;p.Dn=void 0;y!==void 0?y.Dn=S:a.fJ=S;if(S!==void 0)S.lQ=y;else if(a.hq=y,!HA(a))for(p=a.producers;p!==void 0;)p=b8q(p);return l}; DQ=function(p,a){a={current:a/1E3,duration:p.mH()/1E3};p.VL.get().KH("onAdPlaybackProgress",a)}; T6=function(p){return{fieldType:2,fieldName:p}}; Q_=function(p,a){if(a){Np=a==null||a===sk||a[IYZ]!==RrZ?sk:a;try{return Uk(p)}finally{Np=void 0}}return Uk(p)}; A9=function(p,a,l,y,S){Object.isExtensible(p);a=Ax(p.NO,a,l,S);if(a!==null||y&&p.S!==h9)return a}; uUf=function(p,a,l){if(p.r$){p.r$.yn();var y=p.r$.Sl,S=y.j,n=S.L;if(y.G!=null){var V=y.U;p.aS=new g.U1(V.left-n.left,V.top-n.top)}n=p.dg()?Math.max(y.L,y.W):y.L;V={};S.volume!==null&&(V.volume=S.volume);S=p.tI(y);p.zG=y;p.pz(n,a,l,!1,V,S,y.Z)}}; J9=function(p,a,l,y,S,n,V,z){a?a.test(l)?(p.w$(S,a,V),a.G||n()):(!a.S||a.j?l=!1:(l=(0,g.Ek)(),y?a.L||(a.L=l):a.L=0,n=!y&&l-a.S>3E4,l=a.L&&l-a.L>1E3||n?a.j=!0:!1),l&&(z=Object.assign({},p.mS(a),z),z.wn=V,z.we=S,z.wsuc=y,p.Lz.jl("workaroundReport",z),y&&(a.reset(),p.U[S]=!1))):p.Lz.Ne("auth",2,"BROWSER_OR_EXTENSION_ERROR",qp({source:"watchdog",name:V}))}; aW=function(p,a){if(a)a:{var l=g.fU;p=p.split(".");for(var y=0;y1?a=a.PV:(l=GF(l,Bv(p,p.Lo(a,l),a)),a=Math.max(p.W,l.timedOut)+a.DR*(p.U-p.W)+.25*p.K,a=a>3?1E3*Math.pow(1.6,a-3):0);return a===0?!0:p.Sl+a<(0,g.Ek)()}; wJ=function(p){p.Z=!1;p.K.isActive()&&rJ(p);p.K.stop();p.Zo(!1)}; $p=function(p){p.B.cueVideoByPlayerVars({videoId:"empty_video"},2)}; O8M=function(p){var a,l;return(l=(a=/https?:\/\/[^\/]+/.exec(p))==null?void 0:a[0])!=null?l:""}; Lo=function(p){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(p),l=new Uint8Array(p);window.crypto.getRandomValues(l);for(var y=0;y=0&&p<32768}; sQ=function(p){return p?p.passive&&s4A()?p:p.capture||!1:!1}; UQf=function(p,a,l,y,S){if(p.S.has(a.identifier)){var n=p.S.get(a.identifier);y>n.xi&&(n.startTimeSecs=a.startSecs,n.DI=a.DI,n.event==="predictStart"&&n.bU===5&&a.event!=="predictStart"&&(n.UF=Date.now()),n.event=a.event)}else n={event:a.event,startTimeSecs:a.startSecs,DI:a.DI,GU:[],xi:y,bU:0},p.S.set(a.identifier,n);S&&n.bU===0&&(S.Aa(a)?n.bU=5:(n.bU=2,n.k_=""),n.UF=Date.now(),n.xi=y);y>n.xi&&(S==null||S.Aa(a),n.xi=y);p.W&&l>-1&&l=524}; pkO=function(p,a,l,y){if(p)if(Array.isArray(p)){var S=y;for(y=0;y500));y++);y=S}else if(typeof p==="object")for(S in p){if(p[S]){var n=S;var V=p[S],z=a,d=l;n=typeof V!=="string"||n!=="clickTrackingParams"&&n!=="trackingParams"?0:(V=fYO(atob(V.replace(/-/g,"+").replace(/_/g,"/"))))?S2(n+".ve",V,z,d):0;y+=n;y+=S2(S,p[S],a,l);if(y>500)break}}else l[a]=n0(p),y+=l[a].length;else l[a]=n0(p),y+=l[a].length;return y}; hx=function(p){return p&128?Vm:void 0}; ov=function(p){var a=g.Z0(p.api.C())&&(p.api.D("web_shorts_pip")||p.api.D("web_watch_pip")),l;return!((l=p.api.getVideoData())==null?0:l.isLivePlayback)&&!p.api.isMinimized()&&!p.api.isInline()&&(!p.api.Yn()||!a)}; oc$=function(p,a,l){if(p.policy.Kz&&zL(a))return!1;if(l.Nl())return!0;if(!l.Vo())return!1;var y=d$(a);if(!y||y.info.type===6)return!1;var S;if(p.policy.Vu||((S=p.U)==null?0:abr(S,a,y.info.Rc)))p.OO=0;else return p.R9.isSeeking()&&GL(p),p.OO=p.OO||(0,g.Ek)(),!1;if(!BH(p,a,l,y.info))return!1;if(p.MO.S&&y.info.S===0){if(l.rK()==null){S=cH(a);var n;if(!(n=!S||S.L!==y.info.L)){b:if(S=S.Sl,n=y.info.Sl,S.length!==n.length)S=!1;else{for(var V=0;Vn)return p.policy.L&&(a===p.videoTrack?p.Kz=p.Kz||(0,g.Ek)():p.r7=p.r7||(0,g.Ek)()),p.policy.F4&&yxO(a.j,n,!1),!1;a===p.videoTrack?p.Kz=0:p.r7=0;var z;p.policy.aM&&l===((z=p.Ic)==null?void 0:z.L)&&p.yQ&&(l.g5()===0?(p.yQ=!1,p.policy.aM=!1):p.eb=l.g5());a:{z=p.policy.O6?(0,g.Ek)():0;V=y.W&&y.info.L.L||void 0;n=y.S;y.W&&(n=Spo(p,y,n)||n);var d=Xb(n);n=p.policy.O6?(0,g.Ek)():0;l=nco(p,l,d,y.info,V);(V=a.Sl)!=null&&(d=y.info,z=n-z,n=(0,g.Ek)()-n,!V.S||Viq(V.S,d)&& V.S.Rc===d.Rc||V.flush(),V.j+=z,V.U+=n,z=1,!V.S&&d.S&&(z=2),xC(V,z,l),n=Math.ceil(d.S/1024),z===2&&V.L.add(n),V.L.add(Math.ceil((d.S+d.U)/1024)-n),V.S=d);p.t9=0;if(l===0)p.nz&&(p.nz=!1,p.oo=!1),p.Ha=0,l=!0;else{if(l===2||l===5)Fb(p,"checked",l,y.info);else{if(l===1){if(!p.nz){p.nz=!0;l=!1;break a}if(!p.oo){p.oo=!0;p.Lz.seekTo(p.getCurrentTime(),{JP:"quotaExceeded",Ql:!0});l=!1;break a}y.info.HX()?(z=p.policy,z.nz=Math.floor(z.nz*.8),z.Bs=Math.floor(z.Bs*.8)):(z=p.policy,z.Sb=Math.floor(z.Sb*.8),z.Bs= Math.floor(z.Bs*.8));p.policy.L?E$(p.j.L,y.info.L,!1):C0(p.L,y.info.L)}p.Lz.jS({reattachOnAppend:l})}l=!1}}if(!l)return!1;p.policy.Kz&&y.info.I7()?(p.Lz.C().ao()&&p.jl("eosl",{ls:y.info.AP()}),y.isLocked=!0):(a.Gj(y),Zav(p.L,y.info));S&&(a=y.info.L.Eb)&&p.Lz.tv(new vH(a.key,a.type));return!0}; dNO=function(p){p=g.t(g.Rv(p,!0));for(var a=p.next();!a.done;a=p.next())if(zd$(a.value))return!0;return!1}; O$=function(p,a,l){l=l===void 0?!1:l;if(!p.S||!p.S.U)return NaN;p=uB(p);a:{a+=.02;var y=l;y=y===void 0?!1:y;for(var S=-1,n=0;n=a){a=n;break a}}a=S}return a<0?NaN:Gv$(p,l?a:0)?p[a].startTime:NaN}; wkA=function(p,a){p.status="km";kC("drm_net_s",void 0,p.videoData.UO);var l=new g.MC(p.Y.Co),y={context:g.mu(l.config_||g.tl())};y.drmSystem=BCe[p.S.flavor];y.videoId=p.videoData.videoId;y.cpn=p.videoData.clientPlaybackNonce;y.sessionId=p.sessionId;y.licenseRequest=g.MN(a.message);y.drmParams=p.videoData.drmParams;isNaN(p.cryptoPeriodIndex)||(y.isKeyRotated=!0,y.cryptoPeriodIndex=p.cryptoPeriodIndex);var S,n,V=!!((S=p.videoData.S)==null?0:(n=S.video)==null?0:n.isHdr());y.drmVideoFeature=V?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(y.context&&y.context.client){if(S=p.Y.L)y.context.client.deviceMake=S.cbrand,y.context.client.deviceModel=S.cmodel,y.context.client.browserName=S.cbr,y.context.client.browserVersion=S.cbrver,y.context.client.osName=S.cos,y.context.client.osVersion=S.cosver;y.context.user=y.context.user||{};y.context.request=y.context.request||{};p.videoData.t9&&(y.context.user.credentialTransferTokens=[{token:p.videoData.t9,scope:"VIDEO"}]);y.context.request.mdxEnvironment=p.videoData.mdxEnvironment|| y.context.request.mdxEnvironment;p.videoData.EC&&(y.context.user.kidsParent={oauthToken:p.videoData.EC});g.j2(p.S)&&(y.fairplayKeyId=g.MN(cxM(p.fairplayKeyId)));g.WH(p.Y,g.HH(p.videoData)).then(function(z){rxh(a,y,l,z);p.status="rs"})}else p.error("drm.net",2,"t.r;ic.0")}; TL=function(p,a,l){p=p.NO;return D0(iB(p),p,void 0,a)===l?l:-1}; s$=function(p,a){var l=l===void 0?0:l;p=A9(p,a);p=p==null?p:NC(p)?p|0:void 0;return p!=null?p:l}; L8h=function(p){var a=new $No(p.L.VL);g.E(p,a);p=[new U$(p.L.uT),new Qm(p.L.B),new hl(p.L.uT),new Al(p.L.T_,p.L.hw),new g$,new YC(p.L.Y3,p.L.lU,p.L.uT),new qC,new Jl];p=g.t(p);for(var l=p.next();!l.done;l=p.next())P0A(a,l.value);p=g.t(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(l=p.next();!l.done;l=p.next())ok(a,l.value,function(){}); return a}; GJ=function(p,a,l){if(a&2)throw Error();var y=hx(a),S=zJ(p,l,y),n=S===yb?7:S[QB]|0,V=d3(n,a);if(2&V||Sl(V)||16&V)S=Vb(S),n=0,V=Z6(V,a),yH(p,a,l,S,y);V&=-13;V!==n&&oW(S,V);return S}; r3=function(p){p=g.By(p);return cy(null,null,null,null,p[5],p[6],p[7])}; w3=function(p,a){return Xkq(p,a,!0)}; g.$F=function(p,a,l){l=p.Sl.splice(l||0)[0];(l=p.U=p.U||l)?l.MX?p.L=p.G||p.W:l.g7!=void 0&&p.W122)return!1}return!0}; KX=function(p,a){g.CX.call(this,g.vy({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.B=p;this.U6=a;this.J(this.element,"click",this.onClick);this.U6.Lt(this)}; g.Ik=function(p){var a=a===void 0?!1:a;return ej(bW(p,vcr),p,a,"Trusted Image URL")}; K8M=function(p,a,l){if(p.api.D("web_player_nitrate_promo_tooltip")&&p.api.getPresentingPlayerType(!0)!==2){var y=p.api.getVideoData(1);if(y==null?0:y.tooltipRenderer){y=y.tooltipRenderer;var S;if(S=!p.Y4){if(!(a=!a)){var n,V,z;a=((n=y.tooltipDisplayStrategy)==null?void 0:n.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((V=y.promoConfig)==null?void 0:V.promoId)!=="dtip-edu-player-iseecaptions"&&((z=y.promoConfig)==null?void 0:z.promoId)!=="dtip-edu-player-tc-m2"}S=a}S&&(p.Y4=new Rk(y,p.api), g.E(p,p.Y4),g.uW(p.api,p.Y4.element,9));var d;(d=p.Y4)==null||Oh(d,y,l)}}}; MU=function(p){p=p.y$();p.Me();return kF(p)}; bar=function(p,a){var l=a==null?void 0:a.primary;p.U(0,l);l=l?edr(l):void 0;p.U(2,l);p.U(1,a==null?void 0:a.secondary)}; mT=function(p,a){if(!a)return p;var l=p.indexOf("#");l<0&&(l=p.length);var y=p.indexOf("?");if(y<0||y>l){y=l;var S=""}else S=p.substring(y+1,l);p=[p.slice(0,y),S,p.slice(l)];l=p[1];p[1]=a?l?l+"&"+a:a:l;return p[0]+(p[1]?"?"+p[1]:"")+p[2]}; uJv=function(p){p=p||tK();for(var a=new IbA(g.dD.location.href,!1),l=null,y=p.length-1,S=y;S>=0;--S){var n=p[S];!l&&Rdq.test(n.url)&&(l=n);if(n.url&&!n.L){a=n;break}}S=null;n=p.length&&p[y].url;a.depth!==0&&n&&(S=p[y]);return new TDe(a,S,l)}; OaA=function(){return(jj||Wy)&&Si?Si.mobile:!Hy()&&(na("iPod")||na("iPhone")||na("Android")||na("IEMobile"))}; iW=function(p){this.NO=Dm(p)}; mNv=function(p){p=p.bk.d1;var a;if(a=p&&p.getAttribute)a=/-[a-z]/.test("googleAvInapp")?!1:kvM&&p.dataset?"googleAvInapp"in p.dataset:p.hasAttribute?p.hasAttribute("data-"+Mif()):!!p.getAttribute("data-"+Mif());a&&(TJ().S=!0)}; tir=function(p,a){var l=p.app;NU(l.y$())&&l.HZ.U[2]&&g.JK(p.logger,360717806,"SSTM lingering playback");p.api.NN();p.api.publish("serverstitchedvideochange",a.a4,a.BO)}; fX=function(p){return p?p:Array.prototype.fill}; W8v=function(p,a){var l;if((l=d$(a))!=null&&l.isLocked&&j1Z(a)){if(p.Lz.C().ao()){var y;p.jl("eosl",{munlock:(y=d$(a))==null?void 0:y.info.AP()})}pO(p,a===p.audioTrack)}}; ag=function(){}; DNe=function(p){if(!HaF(p)){var a=p.jb().F7();a&&(a=a.sb(),a instanceof Promise&&a.catch(function(){})); ln(p,yG(p.getPlayerStateObject()))}}; VG=function(p){QH.call(this,p);var a=this;Sa(p,"setAccountLinkState",function(l){a.setAccountLinkState(l)}); Sa(p,"updateAccountLinkingConfig",function(l){a.updateAccountLinkingConfig(l)}); p.addEventListener("videodatachange",function(l,y){a.onVideoDataChange(y)}); p.addEventListener("settingsMenuInitialized",function(){a.menuItem=new nO(a.api);g.E(a,a.menuItem)})}; TCv=function(p){var a=Zt(p.L)>>>0;return iav(p.L,a)}; NCA=function(p,a){p.L=a}; UNO=function(p){var a=p.api.d4();if(a){var l=90*p.scale,y=og(a,160*p.scale);if(a=a.levels[y]){p.G=a.width;if(!p.j.length){y=[];for(var S=zE(a,a.Xp()),n=a.columns*a.rows,V=a.frameCount,z=0;z<=S;z++)for(var d=Vp.j.length;)y= void 0,(y=p.thumbnails.pop())==null||y.dispose();for(;p.thumbnails.lengthl.length;)y=void 0,(y=p.S.pop())==null||y.dispose(); for(;p.S.lengthp.xE())p.segments=[];else{var l=c8(p.segments,function(y){return y.Rc>=a},p); l>0&&p.segments.splice(0,l)}}; hde=function(p,a){p.Ny=p.Ny.filter(function(l){return l!==a})}; g.r8=function(p){return Array.prototype.concat.apply([],arguments)}; Ax$=function(p){var a={};return a.viewability=p.L,a.googleViewability=p.S,a}; gcA=function(p){this.B=p}; YpM=function(p){var a=0;return function(){return a0}; P8=function(p,a){a=a===void 0?"":a;p=Jxq(p)[0][fbM];var l;a=(l=a)!=null?l:"[signal]";p.debugName=a}; ymf=function(p){LO().j=!!p.Pf("isViewable");XW(p,"viewableChange",pfr);p.Pf("getState")==="loading"?XW(p,"ready",aM$):lM$(p)}; var PFO=function(p,a){return xZ[Z[5]](this,56,p,a)}; var S1M=function(p){return{JO:FW(p,1),di:FW(p,2),minReadaheadMs:FW(p,3)}},nBr=function(p,a,l){var y; if(y=p.playback.getVideoData().vy())y=(y=p.L.tP({cpn:a}))&&y.yZ?(p=p.L.L.get(y==null?void 0:y.yZ))&&p.slice(-1)[0].cpn===a:!1;return y&&l===2?1E3:0},VNE=function(p,a){NQ(p,1,a.deviceInterface); Ym(p,2,a.deviceVersion);AP(p,3,a.isSleeping)},EX=function(p){return p},ZFA=function(){CO(); var p=LU.document;return!!(p&&p.body&&p.body.getBoundingClientRect&&typeof LU.setInterval==="function"&&typeof LU.clearInterval==="function"&&typeof LU.setTimeout==="function"&&typeof LU.clearTimeout==="function")},KO=function(p,a,l){this.FM=p; this.hM=a;p=WE(v8);this.L=!!p&&l===p||!1}; var oBv=function(p){return z$r[Z[5]](this,15,p)}; g.JZ=function(p,a){var l=new XMZ(4096);a(l,p);return new Uint8Array(l.L.buffer,l.L.byteOffset,l.pos)}; B1h=function(p,a,l,y){y=y===void 0?function(){}:y; var S,n,V,z,d,G,B,c,r,w,P,F,v,I,b,O,m,H,Y,N,yo,zq,S$,BE,f,xh,Nf,nc,yU,kh;return g.R(function(OM){switch(OM.L){case 1:OM.g7(2);break;case 3:if((S=OM.S)&&!S.isExpired())return OM.return(Promise.resolve(S.L()));case 2:if(!((n=a)==null?0:(V=n.jp)==null?0:V.context)){OM.g7(4);break}z=a.jp.context;OM.g7(5);break;case 5:d=g.t([]),G=d.next();case 8:if(G.done){OM.g7(4);break}B=G.value;return g.u(OM,B.cnv(z),9);case 9:G=d.next();OM.g7(8);break;case 4:if((c=p.U)==null||!c.fkO(a.input,a.jp)){OM.g7(12);break}return g.u(OM, p.U.E0u(a.input,a.jp),13);case 13:return r=OM.S,dDq(p,r,a),OM.return(r);case 12:return(F=(P=a.config)==null?void 0:P.RE)&&p.S.has(F)?w=p.S.get(F):(v=JSON.stringify(a.jp),O=(b=(I=a.z3)==null?void 0:I.headers)!=null?b:{},a.z3=Object.assign({},a.z3,{headers:Object.assign({},O,l)}),m=Object.assign({},a.z3),a.z3.method==="POST"&&(m=Object.assign({},m,{body:v})),((H=a.config)==null?0:H.YQY)&&kC(a.config.YQY),Y=function(){return p.lN.fetch(a.input,m,a.config)},w=Y(),F&&p.S.set(F,w)),g.u(OM,w,14); case 14:(N=OM.S)&&g.oO("web_streaming_player")&&Array.isArray(N)&&(N=N[0].playerResponse);if(N&&"error"in N&&((yo=N)==null?0:(zq=yo.error)==null?0:zq.details))for(S$=N.error.details,BE=g.t(S$),f=BE.next();!f.done;f=BE.next())xh=f.value,(Nf=xh["@type"])&&GGF.indexOf(Nf)>-1&&(delete xh["@type"],N=xh);F&&p.S.has(F)&&p.S.delete(F);((nc=a.config)==null?0:nc.j9c)&&kC(a.config.j9c);if(N||(yU=p.U)==null||!yU.OUu(a.input,a.jp)){OM.g7(15);break}return g.u(OM,p.U.eUl(a.input,a.jp),16);case 16:N=OM.S;case 15:return dDq(p, N,a),((kh=a.config)==null?0:kh.Ky7)&&kC(a.config.Ky7),y(),OM.return(N||void 0)}})}; cmq=function(){}; ea=function(p){this.W=!1;this.L=p;this.j=function(){}}; g.bn=function(p,a,l){g.bn=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?rmM:wfh;return g.bn.apply(null,arguments)}; $De=function(p){g.pA(p.G);p.G=NaN}; LYh=function(p){var a=Rg(Number(p));if(un(a))return OX(a);a=p.indexOf(".");a!==-1&&(p=p.substring(0,a));return kZ()?OX(MG(64,BigInt(p))):OX(PKh(p))}; mQ=function(p,a){if(typeof a!=="number"||a<0||a>=p.length)throw Error();}; Xfr=function(p){if(!p.j){var a=p.L[p.S];p.j=new DataView(a.buffer,a.byteOffset,a.length)}return p.j}; xDE=function(p,a){try{return td(p[a]),!0}catch(l){}return!1}; FYr=function(p,a){p.S=a;return p}; CK$=function(p,a,l){l=l===void 0?1:l;var y=a.itag;if(y==="0")return!0;var S=a.mimeType;if(a.h9==="1e"&&!p.W)return"dav1enc";if(W8(a)&&p.UO)return"dav1";if(a.video&&(a.video.isHdr()||a.video.primaries==="bt2020")&&!(H8(p,Dt.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(y==="338"&&!(g.TE?NG(53):g.sX&&NG(64)))return"dopus";var n=l;n=n===void 0?1: n;l={};a.video&&(a.video.width&&(l[Dt.WIDTH.name]=a.video.width),a.video.height&&(l[Dt.HEIGHT.name]=a.video.height),a.video.fps&&(l[Dt.FRAMERATE.name]=a.video.fps*n),a.video.L&&(l[Dt.EOTF.name]=a.video.L),a.Lx&&(l[Dt.BITRATE.name]=a.Lx*8*n),a.h9==="("&&(l[Dt.CRYPTOBLOCKFORMAT.name]="subsample"),a.video.projectionType==="EQUIRECTANGULAR"||a.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||a.video.projectionType==="MESH")&&(l[Dt.DECODETOTEXTURE.name]="true");var V;((V=a.audio)==null?0:V.numChannels)&& a.h9!=="i"&&a.h9!=="I"&&(l[Dt.CHANNELS.name]=a.audio.numChannels);p.U&&UX(a)&&(l[Dt.EXPERIMENTAL.name]="allowed");V=g.t(Object.keys(Dt));for(n=V.next();!n.done;n=V.next()){n=Dt[n.value];var z;if(z=l[n.name])if(z=!(n===Dt.EOTF&&a.mimeType.indexOf("vp09.02")>0)){z=n;var d=a;z=!(p.experiments.Cz("html5_ignore_h264_framerate_cap")&&z===Dt.FRAMERATE&&EBr(d))}if(z)if(H8(p,n))if(p.G){if(p.G[n.name]1080&&a.Hy&&(S+="; hdcp=2.2");return y==="227"?"hqcenc":y!=="585"&&y!=="588"&&y!=="583"&&y!=="586"&&y!=="584"&&y!=="587"&&y!=="591"&&y!=="592"||p.experiments.Cz("html5_enable_new_hvc_enc")?hd()&&Ad()>=21&&g.g8("appletv5")&&(y==="410"||y==="845")?!0:p.isTypeSupported(S)?!0:"tpus":"newhvc"}; BM=function(p){this.value=p}; vBh=function(p){/[^a-zA-Z0-9;.!_-]/.test(p)&&(p=p.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return p}; IMh=function(p){var a=p!==p.top,l=p.top===KYF(p),y=-1,S=0;if(a&&l&&p.top.mraid){y=3;var n=p.top.mraid}else y=(n=p.mraid)?a?l?2:1:0:-1;n&&(n.IS_GMA_SDK||(S=2),e$F(bFo,function(V){return typeof n[V]==="function"})||(S=1)); return{Fq:n,compatibility:S,J$l:y}}; Jm=function(p,a){zrO(a);this.L=p;if(p!=null&&p.length===0)throw Error("ByteString should be constructed with non-empty values");}; R$r=function(p){var a,l;return!!((a=p.playerResponse)==null?0:(l=a.playerConfig)==null?0:l.granularVariableSpeedConfig)}; uer=function(p){var a=new g.YZ({X:"div",A9:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],N:[{X:"div",T:"ytp-ad-overlay-ad-info-button-container"},{X:"div",T:"ytp-ad-overlay-close-container",N:[{X:"button",T:"ytp-ad-overlay-close-button",N:[qG(Jd)]}]},{X:"div",T:"ytp-ad-overlay-text-image",N:[{X:"img",V:{src:"{{imageUrl}}"}}]},{X:"div",T:"ytp-ad-overlay-title",yY:"{{title}}"},{X:"div",T:"ytp-ad-overlay-desc",yY:"{{description}}"},{X:"div",A9:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], yY:"{{displayUrl}}"}]});p.J(a.d7("ytp-ad-overlay-title"),"click",function(l){T5(p,a.element,l)}); p.J(a.d7("ytp-ad-overlay-link"),"click",function(l){T5(p,a.element,l)}); p.J(a.d7("ytp-ad-overlay-close-container"),"click",p.Sn);p.J(a.d7("ytp-ad-overlay-text-image"),"click",p.zF9);a.hide();return a}; kGO=function(){function p(l){return a.call(p.src,p.listener,l)} var a=OFr;return p}; ck=function(){fO===void 0&&(fO=MNf());return fO}; mDO=function(p){return{q1:FW(p,1),zDs:FW(p,2)}}; CO=function(){var p=p7(cmq);if(!p.L){if(!LU)throw Error("Context has not been set and window is undefined.");p.L=p7(aa)}return p.L}; y5=function(p){return lm(p)==="WEB_KIDS"}; tNo=function(p,a){p!=null?no(p,a):p=void 0;return p}; n7=function(p,a){a=Sc(a);return a===0?0:Sc(p)/a}; g.Z1=function(p,a){var l=p.style[jOZ(a)];return typeof l!=="undefined"?l:p.style[V5(p,a)]||""}; g.dA=function(p,a){g.oa.call(this,p,a);WYO(this);zW(this,"addEventListener",this.OL);zW(this,"removeEventListener",this.CCI);zW(this,"cueVideoByPlayerVars",this.uE);zW(this,"loadVideoByPlayerVars",this.Hz9);zW(this,"preloadVideoByPlayerVars",this.aFm);zW(this,"loadVideoById",this.U0);zW(this,"loadVideoByUrl",this.jX);zW(this,"playVideo",this.Vm);zW(this,"loadPlaylist",this.loadPlaylist);zW(this,"nextVideo",this.nextVideo);zW(this,"previousVideo",this.previousVideo);zW(this,"playVideoAt",this.playVideoAt); zW(this,"getVideoData",this.oB);zW(this,"seekBy",this.bvY);zW(this,"seekTo",this.DAV);zW(this,"showControls",this.showControls);zW(this,"hideControls",this.hideControls);zW(this,"cancelPlayback",this.cancelPlayback);zW(this,"getProgressState",this.getProgressState);zW(this,"isInline",this.isInline);zW(this,"setInline",this.setInline);zW(this,"setLoopVideo",this.setLoopVideo);zW(this,"getLoopVideo",this.getLoopVideo);zW(this,"getVideoContentRect",this.getVideoContentRect);zW(this,"getVideoStats",this.YN); zW(this,"getCurrentTime",this.aV);zW(this,"getDuration",this.Bm);zW(this,"getPlayerState",this.zt);zW(this,"getVideoLoadedFraction",this.mW);zW(this,"mute",this.Qk);zW(this,"unMute",this.I2);zW(this,"setVolume",this.yH);zW(this,"loadModule",this.loadModule);zW(this,"unloadModule",this.unloadModule);zW(this,"getOption",this.aB);zW(this,"getOptions",this.getOptions);zW(this,"setOption",this.setOption);zW(this,"addCueRange",this.addCueRange);zW(this,"getDebugText",this.getDebugText);zW(this,"getStoryboardFormat", this.getStoryboardFormat);zW(this,"toggleFullscreen",this.toggleFullscreen);zW(this,"isFullscreen",this.isFullscreen);zW(this,"getPlayerSize",this.getPlayerSize);zW(this,"toggleSubtitles",this.toggleSubtitles);zW(this,"setCenterCrop",this.setCenterCrop);zW(this,"setFauxFullscreen",this.setFauxFullscreen);zW(this,"setSizeStyle",this.setSizeStyle);zW(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);zW(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);HFE(this)}; DDE=function(p,a,l){a&&(p.MC=a);l&&(p.zL=l)}; LX=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",a,l,y);this.L=[]}; iF$=function(p){var a=GW("aft",p);if(a)return a;a=g.ZM((p||"")+"TIMING_AFT_KEYS",["ol"]);for(var l=a.length,y=0;y>1,a),cZ(p,p.length>>1)]}; g.rA=function(p,a,l){a=c8(p,a,l);return a<0?null:typeof p==="string"?p.charAt(a):p[a]}; N1q=function(p){this.L=p;p.eT("/client_streamz/bg/po/csc",T6("cs"),g.wA("mk"))}; $J=function(p,a){p.element.classList.toggle("ytp-volume-popover-hovering",a);p.isVisible=a;(p=p.element.closest(".ytp-chrome-bottom"))&&p.classList.toggle("ytp-volume-popover-showing",a)}; PZ=function(p){var a=p.toString();p.name&&a.indexOf(p.name)==-1&&(a+=": "+p.name);p.message&&a.indexOf(p.message)==-1&&(a+=": "+p.message);if(p.stack)a:{p=p.stack;var l=a;try{p.indexOf(l)==-1&&(p=l+"\n"+p);for(var y;p!=y;)y=p,p=p.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");a=p.replace(/\n */g,"\n");break a}catch(S){a=l;break a}a=void 0}return a}; XM=function(p,a,l){this.U=p;this.nz=l===void 0?"na":l;this.W=[];this.isInitialized=!1;this.j=new L7(-1,!0,this);this.L=this;this.Z=a;this.UO=this.Sl=!1;this.QY="uk";this.Bs=!1;this.G=!0}; UDh=function(){var p=Promise.resolve(void 0);xJ=function(){p.then(sOM)}}; Ec=function(p){g.D.call(this);this.B=p;this.listeners=[];this.L=new FM(this);g.E(this,this.L);this.L.J(this.B,"aduxclicked",this.onAdUxClicked);this.L.J(this.B,"aduxmouseover",this.V0);this.L.J(this.B,"aduxmouseout",this.P7);this.L.J(this.B,"muteadaccepted",this.S6l)}; C7=function(p,a){return a?"&"+p+"="+encodeURIComponent(a):""}; g.K7=function(p,a){var l=p.L[p.L.length-1];l!==a&&(p.L.push(a),vZ(p,l,a))}; ec=function(p){p=p===void 0?LU:p;ea.call(this,new XM(p,2))}; AmA=function(p,a,l,y,S,n){n=n===void 0?{}:n;var V=a.substring(0,a.length-S.name.length),z,d=(z=n)==null?void 0:z.signal;return QOF(function(G){return new Promise(function(B,c){if(d==null?0:d.aborted){var r=new bm(1,"Aborted");r.cause=d.reason;c(r)}else{var w={},P=h$r(p,G,V);Ia(P,"error",function(F){return void c(F)}); Ia(P,"metadata",function(F){w=F}); Ia(P,"data",function(F){var v=w;v=v===void 0?{}:v;B(new Ra(F,v))}); d&&d.addEventListener("abort",function(){P.cancel();var F=new bm(1,"Aborted");F.cause=d.reason;c(F)})}})},p.Z3).call(p,S.K(l,y)).then(function(G){return G.UAu})}; Y1$=function(p,a,l,y){y=y===void 0?!1:y;a=new gBv(a||p,l||p);return{x:p.x+((y===void 0?0:y)?a.L*-1:a.L)*.2,y:p.y+((y===void 0?0:y)?a.S*-1:a.S)*.2}}; q1$=function(p){var a=p.Hs.toString(10).padStart(2,"0");a=""+p.Ha+a;p.Hs<99&&p.Hs++;return a}; um=function(p,a){if(p.L){p.G&&(clearTimeout(p.G),p.G=null);var l=p.L;p.L=null;a||p.dispatchEvent("ready");try{l.onreadystatechange=null}catch(y){}}}; Oc=function(p){var a={};a.dt=JmF;a.flash="0";a:{try{var l=p.L.top.location.href}catch(G){p=2;break a}p=l?l===p.S.location.href?0:1:2}a=(a.frm=p,a);try{a.u_tz=-(new Date).getTimezoneOffset();try{var y=LU.history.length}catch(G){y=0}a.u_his=y;var S;a.u_h=(S=LU.screen)==null?void 0:S.height;var n;a.u_w=(n=LU.screen)==null?void 0:n.width;var V;a.u_ah=(V=LU.screen)==null?void 0:V.availHeight;var z;a.u_aw=(z=LU.screen)==null?void 0:z.availWidth;var d;a.u_cd=(d=LU.screen)==null?void 0:d.colorDepth}catch(G){}return a}; kJ=function(){return!(!LU||!LU.performance)}; Mh=function(p){if(p instanceof rC)return p.L;throw Error("");}; mn=function(p){return p==null?p:fMe(p)}; im=function(){var p=wD;p.G||(p.G=!0,pAA(p,function(){return p.j.apply(p,g.u0(g.D1.apply(0,arguments)))}),p.j())}; Nh=function(p){this.B=p;this.adVideoId=this.L=this.videoId=this.adCpn=this.contentCpn=null;this.W=!0;this.S=this.U=!1;this.adFormat=null;this.j="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; sc=function(p,a,l){p.insertBefore(a,p.childNodes[l]||null)}; lQO=function(p,a){return function(l,y){var S={GQ:!0};y&&Object.assign(S,y);l=aQr(l,void 0,void 0,S);try{var n=new p,V=n.NO;Uc(a)(V,l);var z=n}finally{l.free()}return z}}; hq=function(p,a,l){if(l&&!l.includes(p.layoutType))return!1;a=g.t(a);for(l=a.next();!l.done;l=a.next())if(!Q5(p.clientMetadata,l.value))return!1;return!0}; y9A=function(p,a,l,y,S,n){if(Array.isArray(l))for(var V=0;V=((B=l.video)==null?void 0:B.height)){G=!1;break a}}G=!0}G&&(G=l.itag,a=V?V:{itag:G,h9:a,Qh:n},n?a.numChannels=l.audio.numChannels:(n=l.video,a.maxWidth=n==null?void 0:n.width,a.maxHeight=n==null?void 0:n.height,a.maxFramerate=S,H8(p,Dt.BITRATE)&&(a.maxBitrateBps=l.Lx* 8),a.vT=n==null?void 0:n.isHdr()),p.L.set(y,a))}; wAf=function(p){p.sourceElement&&(document.activeElement&&g.oh(p.element,document.activeElement)&&p.sourceElement.focus(),p.sourceElement.setAttribute("aria-expanded","false"),p.sourceElement=void 0);g.z1(p.W);p.G=void 0}; $pF=function(p,a){this.L=p;this.options=a;this.transactionCount=0;this.U=Math.round((0,g.Ek)());this.S=!1}; Ptr=function(p){p.U&&g.dr(p.U);p.j&&g.dr(p.j)}; xpM=function(p){if(g.Ta(g.G1(p)))return!1;if(p.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var a=new g.B4(p)}catch(l){return g.rA(Lor,function(y){return p.search(y)>0})!=null}return a.G.match(XAM)?!0:g.rA(Lor,function(l){return p.match(l)!=null})!=null}; wr=function(p){QH.call(this,p);var a=this;this.S=new Map;this.j=this.L=void 0;this.compositeVideoState=null;this.U=void 0;this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"modulecreated",function(l){var y;a:{var S,n,V,z=(S=a.api.getVideoData())==null?void 0:(n=S.getPlayerResponse())==null?void 0:(V=n.overlay)==null?void 0:V.playerControlsOverlayRenderer;if(z&&(S=g.T(z.compositeVideoOverlay,FoF),S==null?0:(y=S.sources)==null?0:y.length))for(y=g.t(S==null?void 0:S.sources),S=y.next();!S.done;S= y.next())if(S=S.value,S.isActive){y=S;break a}y=void 0}l==="captions"&&(y==null?void 0:y.topLeftCornerX)!==void 0&&(y==null?void 0:y.topLeftCornerY)!==void 0&&(y==null?void 0:y.width)!==void 0&&(y==null?void 0:y.height)!==void 0&&a.api.K4({top:y.topLeftCornerY,right:1-y.topLeftCornerX-y.width,bottom:1-y.topLeftCornerY-y.height,left:y.topLeftCornerX})}); this.events.J(p,"videodatachange",function(l){var y=a.api.getVideoData();a.L=void 0;a.S.clear();a.api.lf("compositeembargo",1);var S=y==null?void 0:y.qB.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(S==null?0:S.length)?E9q(a,S.filter(function(n){return Cto(a,n)})):(y==null?0:y.cueRanges)&&E9q(a,y.cueRanges.filter(function(n){return Cto(a,n)})); l==="dataupdated"&&(y==null?void 0:y.compositeLiveStatusToken)!==a.j&&(a.j=y==null?void 0:y.compositeLiveStatusToken,a.api.Jz())}); this.events.J(p,g.I4("compositeembargo"),function(l){var y;if(((y=a.L)==null?void 0:y.id)!==l.id&&(a.api.zM(!0),a.S.has(l.id))){var S=a.S.get(l.id);y=a.api.getVideoData();S=g.t(S);for(var n=S.next();!n.done;n=S.next()){var V=void 0;n=(V=n.value.compositeEmbargo)==null?void 0:V.embargoStatusToken;y.Ve!==n&&(y.Ve=n,a.api.Jz());v9h(a,l)}}}); this.events.J(p,g.c4("compositeembargo"),function(l){var y;if(((y=a.L)==null?void 0:y.id)===l.id&&(a.api.zM(!1),a.S.has(l.id))){if(l=a.api.getVideoData())l.Ve=void 0;a.api.Jz();v9h(a)}}); this.events.J(p,"heartbeatRequest",function(l){a.compositeVideoState!==null&&(l.playbackState||(l.playbackState={}),l.playbackState.compositeVideoState=a.compositeVideoState)}); this.events.J(p,"internalaudioformatchange",function(l,y){var S=a.api.getVideoData(void 0,!0);S==null||S.jl("atrkchg",{id:l,m:y});if(S&&rr(S))for(y=a.api.getAvailableAudioTracks(),y=g.t(y),S=y.next();!S.done;S=y.next())if(S.value.getLanguageInfo().getId()===l){a.api.C().VY=l;break}}); this.events.J(p,"onPlaybackAudioChange",function(){a.api.Jz()}); Sa(p,"setCompositeParam",function(l){a.compositeVideoState=l}); this.api.D("web_watch_enable_multiview_manager")&&Sa(p,"setCompositeVideoOverlayRendererComponent",function(l){a.setCompositeVideoOverlayRendererComponent(l)})}; Ko$=function(p,a){var l=p.xm;p.xm=function(){l();a()}}; g.j2=function(p){return p.flavor==="fairplay"}; P4=function(p,a,l,y,S){p={retry:!0,onSuccess:l,onError:y,networklessOptions:p,dangerousLogToVisitorSession:a,qmY:!!S,headers:{},postBodyFormat:"",postBody:"",compress:g.oO("compress_gel")||g.oO("compress_gel_lr")};$D()&&(p.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Ek)())));return p}; eTO=function(p,a,l,y){Lh(p,Xk(a||g.xD,l||null,y))}; Ch=function(p,a,l,y){var S=y[p];if(S)return S;S={};S.hc=y;S.fG=bU$(y[0]);var n=y[1],V=1;n&&n.constructor===Object&&(S.extensions=n,n=y[++V],typeof n==="function"&&(S.rW=!0,Fk!=null||(Fk=n),En!=null||(En=y[V+1]),n=y[V+=2]));for(var z={};n&&Array.isArray(n)&&n.length&&typeof n[0]==="number"&&n[0]>0;){for(var d=0;da.U?!1:p.Sa.S?!1:typeof p.Ltypeof a.L?!1:p.L>>0;a=l>>>3;l&=7;if(!(l>=0&&l<=5))throw Error();if(a<1)throw Error();p.U=a;p.S=l;return!0}; Ykr=function(p,a){return a?g.rA(p.L,function(l){return l.bk.d1==a}):null}; YD=function(){var p=null;try{p=g.dD.localStorage||null}catch(a){}gr.call(this,p)}; qkv=function(p){var a=new Set,l=new Map,y={};p=g.t(p);for(var S=p.next();!S.done;S=p.next()){S=S.value;var n=S.quality,V=S.isPlayable,z=S.qualityLabel;z&&n&&(V&&l.has(n)&&l.get(n)!==z?a.add(n):V&&l.set(n,z),y[z]||(y[z]=S))}l=[];y=g.t(Object.values(y));for(p=y.next();!p.done;p=y.next())S=p.value,(p=S.quality)&&!a.has(p)&&(S.formatId=void 0),l.push(S);return l}; g.q4=function(p){g.D.call(this);this.S=p;this.L={}}; J9q=function(p,a){NQ(p,1,a.videoCodec);NQ(p,3,a.maxHeight);NQ(p,4,a.maxWidth);NQ(p,11,a.maxFramerate);NQ(p,12,a.maxBitrateBps);AP(p,15,a.is10BitSupported)}; F5Z=function(p){if(p.B.C().Kz)return p.mO.get("ux")}; pvf=function(p){return new Promise(function(a){var l=g.JI("SCRIPT");if(p){var y=fh(p,6);y=y===null||y===void 0?null:fQO(y)}else y=null;l.textContent=pP(y);ae(l);(g.Vt("HEAD")[0]||document.documentElement).appendChild(l);g.wC(l);a()})}; Zz=function(p){var a=a===void 0?!1:a;return ej(bW(p,a6M),p,a,"Trusted Stream URL")}; oe=function(p,a){var l={};l[p]=a;return[l]}; l6r=function(p,a,l,y,S,n){this.callback=p;this.slot=a;this.layout=l;this.U=y;this.L=S;this.S=n}; g.dM=function(p,a){var l;return p.C().D("safari_live_drm_captions_fix")&&((l=p.getVideoData())==null?0:l.m7())?!1:g.zB(p.C())&&!a.isManifestless}; c2=function(p,a,l){a=a==null||typeof a==="number"?a:a==="NaN"||a==="Infinity"||a==="-Infinity"?Number(a):void 0;a!=null&&(GB(p,l,1),p=p.L,l=yFE||(yFE=new DataView(new ArrayBuffer(8))),l.setFloat64(0,+a,!0),tm=l.getUint32(0,!0),jN=l.getUint32(4,!0),B2(p,tm),B2(p,jN))}; ylZ=function(p,a,l,y,S,n,V){if(!l.prefetchModeConfig)return new W("AdPlacementConfig for Live Prefetch is missing prefetch_config");l=l.prefetchModeConfig;y*=1E3;var z=[];if(!l.breakLengthMs)return new W("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var d=g.t(l.breakLengthMs),G=d.next();!G.done;G=d.next())if(G=G.value,Number(G)>0){var B=y+Number(l.startTimeOffsetMs),c=B+Number(l.cacheFetchSmearingDurationMs);G={Up:new rM(c,c+Number(G)),yz:!1,oK:new rM(Math.floor(B+Math.random()* Number(l.cacheFetchSmearingDurationMs)),c),cueProcessedMs:y?y:B};B=[];B.push(new wM({}));c=[];c.push(new $H(p.L));c.push(new l0O(p.L));V&&B.push(new P2({}));z.push(LP(p,a,S,G,n,B,c))}return z}; S$O=function(p){QH.call(this,p);var a=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"heartbeatRequest",function(l){if(a.freePreviewUsageDetails.length||a.freePreviewWatchedDuration!==null)l.heartbeatRequestParams||(l.heartbeatRequestParams={}),l.heartbeatRequestParams.unpluggedParams||(l.heartbeatRequestParams.unpluggedParams={}),a.freePreviewUsageDetails.length>0?l.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= a.freePreviewUsageDetails:l.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+a.freePreviewWatchedDuration}}); Sa(p,"setFreePreviewWatchedDuration",function(l){a.freePreviewWatchedDuration=l}); Sa(p,"setFreePreviewUsageDetails",function(l){a.freePreviewUsageDetails=l})}; Xg=function(p,a,l,y){for(var S=Number(a.getAttribute("data-overlay-order"))||0,n=0,V=null,z=g.t(l.children),d=z.next();!d.done;d=z.next()){d=d.value;if(y&&d.classList.contains("ytp-overlay-inline-container")){V=d;break}if(S<(Number(d.getAttribute("data-overlay-order"))||0))break;n++}V?Xg(p,a,V,!1):y?(p=document.createElement("div"),p.classList.add("ytp-overlay-inline-container"),p.setAttribute("data-overlay-order",""+S),V=p,V.appendChild(a),sc(l,V,n)):sc(l,a,n)}; Fg=function(p){for(var a=g.t(p.U),l=a.next();!l.done;l=a.next())xH(p,l.value);p.U=[];p.S=null}; E9=function(p){var a={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};p&&(a.interpreterHash=p);return a}; g.V2F=function(p,a,l){nCM(p,a,l,null)||g.VU(g.CP(a,p))}; Z0M=function(p,a){p.j(a);p.S<100&&(p.S++,a.next=p.L,p.L=a)}; v2=function(p,a){for(var l=0;l1E5||++a.j})}; g.O9=function(p,a,l){return p.app.C().Ae?a:g.ug("$DESCRIPTION\u00a0($SHORTCUT)",{DESCRIPTION:a,SHORTCUT:l})}; mL=function(){if(!kH.instance){var p=g.o4("yt.networkRequestMonitor.instance")||new kH;g.M8("yt.networkRequestMonitor.instance",p);kH.instance=p}return kH.instance}; g.tf=function(p,a){if(a){a=Number(a);if(isNaN(a)||a<0)throw Error("Bad port number "+a);p.U=a}else p.U=null}; wHr=function(p){QH.call(this,p);var a=this;Sa(p,"getStatsForNerds",function(){return B$F(a.api)}); jB(p,"showVideoInfo",function(){clo(a,!0)}); jB(p,"hideVideoInfo",function(){clo(a,!1)}); jB(p,"isVideoInfoVisible",function(){return rlh(a)})}; PBr=function(p,a){if(a.Rm)for(var l=0;l0){for(var l=Array(a),y=0;y0&&ECF(12E4,p-1);throw a;}; Jf=function(p,a,l,y){q8.aF(p,a,l,y)}; fP=function(p){this.NO=Dm(p)}; pl=function(p){this.NO=Dm(p)}; vCr=function(p){if(p==null||typeof p=="string"||p instanceof Jm)return p}; g.aJ=function(p){g.D.call(this);this.Y=p;this.videoData=this.playerState=null}; Kuo=function(p,a,l){if(!p.zG||p.d8==-1||a.S===-1||p.zG.S===-1)return 0;p=a.S-p.zG.S;return p>l?0:p}; ye=function(){this.data=new Uint8Array(2048);this.pos=0;lk||(lk=Op("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; g.So=function(p,a){a>=p.TE()&&p.Xp();var l=zE(p,a),y=p.columns*p.rows,S=a%y;a=S%p.columns;S=Math.floor(S/p.columns);var n=p.Xp()+1-y*l;if(n16-l?(p.vG|=a<>16-p.r4,p.r4+=l-16):(p.vG|=a<0&&p.seekTo(a.startSeconds,{JP:"seektimeline_startPlayback",seekSource:15}));p.Sl=!1}else YP(p)||(p.U=p.U||p.videoData.startSeconds||0,p.videoData.isLivePlayback||(a=p.Lz.videoData.Lh(),p.U>a&&(p.D("html5_sabr_log_invalid_sabr_current_time")&&p.Lz.jl("invalidSabrCmtStart",{rt:p.U,mst:a}),p.D("html5_sabr_vod_invalid_start_time_fallback")&&(p.U=0))))}; g.N7=function(p,a){for(var l=1;la||y>=0&&S.bX>y+1)break;l=Math.max(l,S.startTimeMs+S.durationMs);y=Math.max(y,S.jD)}return Math.max(0,l-a)}; yA=function(p,a,l){var y=p.L.U,S=Zt(p.L)>>>0;S=p.L.L+S;var n=S-y;n<=0&&(p.L.U=S,l(a,p,void 0,void 0,void 0),n=S-p.L.L);if(n)throw Error();p.L.L=S;p.L.U=y}; nN=function(p){var a=null;a={X:"button",A9:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],V:{title:"close"},yY:"[X]"};g.X.call(this,{X:"div",A9:["html5-video-info-panel","ytp-sfn"],N:[a,{X:"div",A9:["html5-video-info-panel-content","ytp-sfn-content"],N:[{X:"div",N:[{X:"div",yY:"Video ID / sCPN"},{X:"span",yY:"{{video_id_and_cpn}}",T:"ytp-sfn-cpn"}]},{X:"div",N:[{X:"div",yY:"Viewport / Frames"},{X:"span",yY:"{{dims_and_frames}}"}]},{X:"div",N:[{X:"div",yY:"Current / Optimal Res"},{X:"span", yY:"{{resolution}}"}]},{X:"div",N:[{X:"div",yY:"Volume / Normalized"},{X:"span",yY:"{{volume}}"}]},{X:"div",N:[{X:"div",yY:"Codecs"},{X:"span",yY:"{{codecs}}"}]},{X:"div",V:{style:"{{shader_info_style}}"},N:[{X:"div",yY:"Shader Info"},{X:"span",yY:"{{shader_info}}"}]},{X:"div",V:{style:"{{color_style}}"},N:[{X:"div",yY:"Color"},{X:"span",yY:"{{color}}"}]},{X:"div",V:{style:"{{drm_style}}"},N:[{X:"div",yY:"Protected"},{X:"span",yY:"{{drm}}"}]},{X:"div",V:{style:"{{bandwidth_style}}"},N:[{X:"div",yY:"Connection Speed"}, {X:"span",N:[{X:"span",yY:"{{bandwidth_chart}}"},{X:"span",yY:"{{bandwidth_kbps}}"}]}]},{X:"div",V:{style:"{{network_activity_style}}"},N:[{X:"div",yY:"Network Activity"},{X:"span",N:[{X:"span",yY:"{{network_activity_chart}}"},{X:"span",yY:"{{network_activity_bytes}}"}]}]},{X:"div",N:[{X:"div",yY:"Buffer Health"},{X:"span",N:[{X:"span",yY:"{{buffer_health_chart}}"},{X:"span",yY:"{{buffer_health_seconds}}"}]}]},{X:"div",V:{style:"{{live_latency_style}}"},N:[{X:"div",yY:"Live Latency"},{X:"span",N:[{X:"span", yY:"{{live_latency_chart}}"},{X:"span",yY:"{{live_latency_secs}}"}]}]},{X:"div",V:{style:"{{live_mode_style}}"},N:[{X:"div",yY:"Live Mode"},{X:"span",yY:"{{live_mode}}"}]},{X:"div",V:{style:"{{playback_categories_style}}"},N:[{X:"div",yY:"Playback Categories"},{X:"span",yY:"{{playback_categories}}"}]},{X:"div",V:{style:"{{fmt_debug_info_style}}"},N:[{X:"div",yY:"Format Debug Info"},{X:"span",yY:"{{fmt_debug_info}}"}]},{X:"div",N:[{X:"div",yY:"Mystery Text"},{X:"span",yY:"{{debug_info}}"}]},{X:"div", V:{style:"{{extra_debug_info_style}}"},N:[{X:"div",yY:""},{X:"span",N:[{X:"span",yY:"{{extra_debug_info}}"}]}]},{X:"div",N:[{X:"div",yY:"Date"},{X:"span",yY:"{{date}}"}]},{X:"div",V:{style:"{{cotn_and_local_media_style}}"},N:[{X:"div",yY:"COTN / Local Media"},{X:"span",yY:"{{cotn_and_local_media}}"}]},{X:"div",V:{style:"{{release_style}}"},N:[{X:"div",yY:"Player Release"},{X:"span",yY:"{{release_name}}"}]}]}]});this.Tm=p;this.position=0;this.W=!0;a?this.J(this.d7("ytp-sfn-close"),"click",this.hide): this.J(this.element,"click",this.hide);p=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];a="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var l=p.map(function(y){return y/4}); this.K={};this.L=new S0(300,1,150,p,a);g.E(this,this.L);this.updateValue("bandwidth_chart",this.L);this.U=new S0(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.E(this,this.U);this.updateValue("live_latency_chart",this.U);this.S=new S0(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.E(this,this.S);this.updateValue("buffer_health_chart",this.S);this.G=new S0(300,1,150,l,a);g.E(this,this.G);this.updateValue("network_activity_chart", this.G);this.delay=new g.l_(this.pz,500,this);g.E(this,this.delay);this.j=new g.l_(this.Z,2E4,this);g.E(this,this.j)}; Jlr=function(p,a){var l=a.L.getValue();l=new g.l_(function(){wkA(p,a)},l); g.E(p,l);l.start();g.VA(a.L);Zi(p,{rtyrq:1})}; o8=function(p,a){a=a===void 0?!1:a;return p.B.C().D("html5_ssap_force_ads_ctmp")?!0:(a||p.B.C().ao())&&p.B.C().D("html5_ssap_pacf_qoe_ctmp")}; df=function(p,a){a+=p.CE();var l;if(p.playback.getVideoData().vy()){a:{var y=a*1E3;p=g.t(p.L.S);for(l=p.next();!l.done;l=p.next()){l=l.value;var S=l.BO?l.BO*1E3:l.QL;if(y>=l.QL-1E3&&y<=S+l.durationMs+1E3){y=l;break a}}y=void 0}l={MR:y,S1:a}}else l=zf(p,a),((y=l)==null?0:y.MR)||(l=zf(p,a,1));var n;return(n=l)==null?void 0:n.MR}; BV=function(p,a){p=Gf(p);var l={};if(a){a=g.t(a.split(","));for(var y=a.next();!y.done;y=a.next())(y=y.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(l[y[1]]={width:y[2],height:y[3]})}a=g.t(p);for(y=a.next();!y.done;y=a.next()){y=y.value;var S=l[y.itag];S&&(y.width=S.width,y.height=S.height)}return p}; f0M=function(){}; cV=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-image-background",N:[{X:"img",T:"ytp-image-background-image"}]},"image-background",a,l,y);this.hide()}; pyA=function(p,a){if(p.policy.Hv){var l=a.info.Lx,y=rf(p.schedule);a=a.index.SW();l=Math.max(1,y/l);p.Z=Math.round(Math.max(((l-1)*a+p.policy.Ct)/l,a-p.policy.e8)*1E3)}}; amv=function(){this.Db=!1}; lm$=function(p,a){for(var l=p.L.length,y=0,S=g.t(p.L),n=S.next();!n.done;n=S.next())if(n=n.value,n.width!==0)if(a>n.width)a-=n.width,a-=Mp(p),y++;else break;return y===l?l-1:y}; $v=function(p){if(p instanceof wf)return p.L;throw Error("");}; PV=function(p,a){return p?a?decodeURI(p.replace(/%25/g,"%2525")):decodeURIComponent(p):""}; LN=function(p,a){p=A9(p,a,void 0,void 0,yKr);return p==null?pU():p}; g.Rr=function(p){g.D.call(this);this.K=p;this.j=0;this.U=100;this.W=!1;this.S=new Map;this.G=new Set;this.flushInterval=3E4;this.L=new g.Xn(this.flushInterval);this.L.listen("tick",this.BS,!1,this);g.E(this,this.L)}; xv=function(p,a,l,y,S){var n;l=l===void 0?!1:l;y=y===void 0?!1:y;var V=p.mO.get(a);if(!V||y)if(S||(S=function(){xv(p,a,l,y)}),n||(n=function(){Fn(p,a)}),V=V||Sh$(p,a,nFr(p,a),S,n))p.mO.set(a,V),V.create(),p.B.publish("modulecreated",a),l&&p.B.uC("onApiChange")}; EZ=function(){this.finished=this.started=!1}; M4=function(p){var a=p.jb();if(g.h(a.getPlayerState(),128))return!1;a=a.getVideoData();MU(p)&&p.Y.zy&&(CN.length&&p.NF?(vV(p,{muted:!1,volume:p.zD.volume},!1),KN(p,!1)):CN.length||p.zD.muted||(vV(p,{muted:!0,volume:p.zD.volume},!1),KN(p,!0)));MU(p)&&g.wW(p.Y)&&a.mutedAutoplay&&(vV(p,{muted:!0,volume:p.zD.volume},!1),KN(p,!0));a.Bd&&vV(p,{muted:!0,volume:p.zD.volume},!1);e0(p,1,a,!1);var l=p.jb();p.Tm.publish("initializingmode");p.vI(l);p.Ja(3);var y;if(!(y=!p.Y.yl)){if(y=p.IX){y=p.IX;var S=p.mediaElement; y=!!S&&S===y.mediaElement}y=y&&p.H$}y&&(p.Rd(),bf(p),l.setMediaElement(p.mediaElement));l.YA();if(g.h(l.getPlayerState(),128))return!1;a.Us||ln(p,3);return p.H$=!0}; zfZ=function(p,a,l){if(!(l in a))return!1;a=a[l];Array.isArray(a)||(a=[a]);a=g.t(a);for(l=a.next();!l.done;l=a.next()){l=l.value;var y={CPN:p.api.getVideoData().clientPlaybackNonce};l=g.bi(l,y);y=void 0;y=y===void 0?!1:y;(y=ej(bW(l,VjA),l,y,"Active View 3rd Party Integration URL"))||(y=void 0,y=y===void 0?!1:y,y=ej(bW(l,ZXO),l,y,"Google/YouTube Brand Lift URL"));y||(y=void 0,y=y===void 0?!1:y,y=ej(bW(l,oFE),l,y,"Nielsen OCR URL"));g.I8(l,void 0,y)}return!0}; var ohq=function(){return xZ[Z[5]](this,64)}; R8=function(p,a,l){var y=a*p.U.L*1E3;for(var S=-1,n=g.t(p.L),V=n.next();!V.done;V=n.next())V=V.value,y>V.startTime&&V.width>0&&S++;y=S<0?0:S;S=l.L-Mp(p)*p.Hs;return a*S+Mp(p)*y+l.j}; dUv=function(p,a,l,y,S){var n=Ga(p.S.get(),"SLOT_TYPE_IN_PLAYER");l=new ui(p.L,y,l);y=[new D6(p.L,n)];p=[new wG(p.L,a)];return{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:y,slotExpirationTriggers:p,iT:"core",clientMetadata:new Lc([new i8(S({slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,iT:"core",slotEntryTrigger:l,slotFulfillmentTriggers:y,slotExpirationTriggers:p}))])}}; OZ=function(p){GJf();B3F();p.timerName=""}; kv=function(p,a,l){this.buffer=p;if(l&&!a)throw Error();this.L=a}; cKM=function(p){return new M6(function(a,l){l(p)})}; mP=function(p,a){return rKv(p,a||{},!1)}; g.oh=function(p,a){if(!p||!a)return!1;if(p.contains&&a.nodeType==1)return p==a||p.contains(a);if(typeof p.compareDocumentPosition!="undefined")return p==a||!!(p.compareDocumentPosition(a)&16);for(;a&&p!=a;)a=a.parentNode;return a==p}; wyO=function(p,a){a=$h(p,a);p.j!==a&&p.publish("livestatusshift",a);p.j=a}; $UM=function(p,a,l,y){l.adFormat=l.n1;var S=a.Lz;a=new tN(new j0(l,a.Y,{getDuration:function(){return l.lengthSeconds}, getCurrentTime:function(){return S.getCurrentTime()}, Bi:function(){return S.Bi()}, xG:function(){return S.xG()}, YD:function(){return S.YD()}, getPlayerSize:function(){return S.getPlayerSize()}, getAudioTrack:function(){return l.getAudioTrack()}, getPlaybackRate:function(){return S.getPlaybackRate()}, XL:function(){return S.XL()}, getVisibilityState:function(){return S.getVisibilityState()}, f0:function(){return S.f0()}, M8:function(){return S.M8()}, getVolume:function(){return S.getVolume()}, isMuted:function(){return S.isMuted()}, Xx:function(){return S.Xx()}, zY:function(){return S.zY()}, getProximaLatencyPreference:function(){return S.getProximaLatencyPreference()}, tR:function(){S.tR()}, jl:function(n,V){S.jl(n,V)}, i6:function(){return S.i6()}, Jg:function(){return S.Jg()}})); a.S=y;g.E(p,a);return a}; Di=function(p,a,l,y){WV.call(this,p);this.j=a;this.G=l;this.L="m";this.S="x";this.W=0;HV(this,y)}; PWe=function(){this.U=!ii(LU.top);this.isMobileDevice=Hy()||OaA();var p=tK();this.domain=p.length>0&&p[p.length-1]!=null&&p[p.length-1].url!=null?g.Ir(p[p.length-1].url)||"":"";this.L=new Tf(0,0,0,0);this.j=new g.N6(0,0);this.W=new g.N6(0,0);this.K=new Tf(0,0,0,0);this.frameOffset=new g.U1(0,0);this.G=0;this.Z=!1;this.S=!(!LU||!IMh(LU).Fq);this.update(LU)}; UZ=function(p){sZ.call(this);var a=this;this.logger=p;this.hg={Fgm:function(){return a.logger}, Ce:function(){return a.logger.hg.Ce()}}; this.addOnDisposeCallback(function(){return void a.logger.dispose()})}; hN=function(p){this.provider=p;this.K=!1;this.L=0;this.j=-1;this.d8=NaN;this.U=0;this.segments=[];this.G=this.W=0;this.previouslyEnded=!1;this.Sl=this.provider.Lz.getVolume();this.Z=this.provider.Lz.isMuted()?1:0;this.S=QA(this.provider)}; AN=function(p,a,l,y){for(var S=0;S=400&&z.status<500)?z.json().then(G,function(){G(null)}):G(null)}}).catch(function(){a.onError&&a.onError.call(S,{},{})}); p=a.timeout||0;a.onFetchTimeout&&p>0&&(V=g.aY(function(){n||(n=!0,g.pI(V),a.onFetchTimeout.call(a.context||g.dD))},p))}else g.lE(p,a)}; LO=function(){return p7(CWZ)}; cA=function(p){return!(!p.isLivePlayback||!p.hasProgressBarBoundaries())}; vFM=function(p,a,l,y,S){S=S===void 0?!1:S;var n="https://youtubei.googleapis.com/youtubei/"+a.Co.innertubeApiVersion+"/player",V=[{name:"Content-Type",value:"application/json"}];y&&V.push({name:"Authorization",value:"Bearer "+y});V.push({name:"User-Agent",value:g.yI()});g.ZM("EOM_VISITOR_DATA")?V.push({name:"X-Goog-EOM-Visitor-Id",value:g.ZM("EOM_VISITOR_DATA")}):(l=l.visitorData||g.ZM("VISITOR_DATA"))&&V.push({name:"X-Goog-Visitor-Id",value:l});(l=g.ZM("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&V.push({name:"X-YouTube-Lava-Device-Context", value:l});(a=St(a.experiments,"debug_sherlog_username"))&&V.push({name:"X-Youtube-Sherlog-Username",value:a});p=Op(JSON.stringify(p));return{url:n,ZO:V,postBody:p,cNm:S,vt:S}}; Ga=function(p,a){if(nI(p.EO.get())){var l=p.S.get(a)||0;l++;p.S.set(a,l);return a+"_"+l}return g.VI(16)}; KTf=function(p,a){var l=p.G*p.scale;a-=p.L/2;return a>-l?-a/l*p.interval*.5:-(a+l/2)/l*p.interval}; efZ=function(p){return p.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(a,l,y){return l+y.toUpperCase()})}; Zq=function(p){return p.mO.get("creatorendscreen")}; OX=function(p){var a=p;if(oY(a)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(a))throw Error(String(a));}else if(bXA(a)&&!Number.isSafeInteger(a))throw Error(String(a));return zY?BigInt(p):p=Imf(p)?p?"1":"0":oY(p)?p.trim()||"0":String(p)}; MjE=function(p){var a=new dp;a=GY(a,1,p.S);var l=Rfr(p);a=uZq(a,l,OXh);l=[];for(var y=[],S=g.t(p.L.keys()),n=S.next();!n.done;n=S.next())y.push(n.value.split(","));for(S=0;S=2)return null;var S=new DataView(a.buffer,a.byteOffset,a.length),n=g.KI(S,0,1937011556);if(!n)return null;a=S.getUint32(n.dataOffset+8);y=S.getUint32(n.dataOffset+12);if(y!==1701733217&&y!==1701733238)return null;y=new HXh(p.byteLength+a);et(y,p,0,l.offset+12);y.data.setInt32(y.offset,2);y.offset+=4;et(y,p,l.offset+16,l.size-16);et(y,S,S.byteOffset+n.dataOffset+8,a);et(y,p,l.offset+l.size,p.byteLength- (l.offset+l.size));l=g.t([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(S=l.next();!S.done;S=l.next())S=g.KI(p,0,S.value),y.data.setUint32(S.offset,S.size+a);p=g.KI(y.data,0,1953654136);y.data.setUint32(p.offset+16,2);return y.data}; IY=function(p,a,l,y,S,n){hI.call(this,p,{X:"div",T:"ytp-ad-preview-slot"},"ad-preview",a,l,y,S);var V=this;this.Kz=-1;this.j=this.api.C().experiments.Cz("enable_modern_skip_button_on_web");this.S=new g.YZ({X:"span",T:"ytp-ad-preview-container"});this.j&&this.S.element.classList.add("ytp-ad-preview-container-detached");g.E(this,this.S);this.U=this.j?new qh(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,"ytp-ad-preview-text-modern"):new qh(this.api,this.layoutId,this.interactionLoggingClientData, this.ZV,"ytp-ad-preview-text");g.E(this,this.U);this.U.lT(this.S.element);this.QY=this.j?new g.YZ({X:"span",T:"ytp-ad-preview-image-modern"}):new g.YZ({X:"span",T:"ytp-ad-preview-image"});g.E(this,this.QY);this.W=new bE(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV);g.E(this,this.W);this.W.lT(this.QY.element);this.QY.lT(this.S.element);this.S.lT(this.element);this.Xu=new g.Gq(this.S,400,!1,100,function(){return V.hide()}); g.E(this,this.Xu);this.Hs=0;this.r7=!1;this.Ps=n;this.hide()}; iXr=function(p,a){return p.z9.k9&&a.reason==="b"||p.z9.ZS&&a.reason==="l"||p.z9.PH?!1:p.z9.aU?!0:a.reason==="l"||a.reason==="b"||a.reason==="o"}; RY=function(p,a){g.X.call(this,{X:"div",T:"ytp-storyboard-framepreview",N:[{X:"div",T:"ytp-storyboard-framepreview-timestamp",yY:"{{timestamp}}"},{X:"div",T:"ytp-storyboard-framepreview-img"}]});this.api=p;this.S=this.d7("ytp-storyboard-framepreview-img");this.L=null;this.frameIndex=NaN;this.events=new g.hm(this);this.fade=new g.Gq(this,100);g.E(this,this.events);g.E(this,this.fade);this.J(this.api,"presentingplayerstatechange",this.U);a&&this.J(this.element,"click",function(){a.MB()})}; Mx=function(p,a){this.o6=a=a===void 0?!1:a;this.uach=this.locale=null;this.S=0;this.isFinal=!1;this.L=new uE;Number.isInteger(p)&&this.L.c6(p);a||(this.locale=document.documentElement.getAttribute("lang"));OU(this,new kW)}; T3O=function(){var p=g.ZM("csn-to-ctt-auth-info");p||(p={},D_("csn-to-ctt-auth-info",p));return p}; my=function(p){return!!p.Fz&&p.Fz.I7()}; Qkq=function(p,a,l,y,S){g.D.call(this);var n=this,V=tX(function(){return new jt(n.EO)}); g.E(this,V);var z=tX(function(){return new W3(V,n.EO)}); g.E(this,z);var d=tX(function(){return new H3}); g.E(this,d);var G=tX(function(){return new Dq(p)}); g.E(this,G);var B=tX(function(){return new iE(V,z,n.EO)}); g.E(this,B);var c=tX(function(){return new TY}); g.E(this,c);this.wp=tX(function(){return new gcA(a)}); g.E(this,this.wp);this.X7=tX(function(){return new Ec(a)}); g.E(this,this.X7);this.uM=tX(function(){return new Nx(S)}); g.E(this,this.uM);this.lr=tX(function(){return new Nh(a)}); g.E(this,this.lr);this.gq=tX(function(){return new sU(a)}); g.E(this,this.gq);this.BZ=tX(function(){return new QI(a)}); g.E(this,this.BZ);this.VL=tX(function(){return new gp(a)}); g.E(this,this.VL);this.EO=tX(function(){return new YW(a)}); g.E(this,this.EO);var r=tX(function(){return new qx(y)}); g.E(this,r);var w=tX(function(){return new JX(n.EO)}); g.E(this,w);var P=tX(function(){return new fI(V,B,z,n.EO,w,null,null,null,null)}); g.E(this,P);this.Ty=tX(function(){return new p$(a)}); g.E(this,this.Ty);this.ac=tX(function(){return new aK(a,c,n.EO)}); g.E(this,this.ac);var F=lv({ac:this.ac,EO:this.EO,UQ:w}),v=F.context,I=F.Pl;this.Tn=F.Tn;this.sO=tX(function(){return new yh(a,n.ac,n.EO)}); g.E(this,this.sO);this.wc=tX(function(){return new SZ}); g.E(this,this.wc);this.dG=tX(function(){return new n$(n.sO,a,n.EO)}); g.E(this,this.dG);this.uT=tX(function(){return new Vh(a,d,n.dG,n.ac,n.Tn,n.EO,I)}); g.E(this,this.uT);this.oM=tX(function(){return new ZT(n.EO)}); g.E(this,this.oM);this.o1=new oK(N3r,zA,function(O,m,H,Y){return skM(z.get(),O,m,H,Y)},G,B,z,w,this.EO,this.ac); g.E(this,this.o1);this.g$=new db(G,P,l,this.EO,p,this.ac,this.sO,this.lr);g.E(this,this.g$);var b=new GA(a,this.g$,this.sO,this.ac);this.t$=tX(function(){return b}); this.OS=b;this.o9=new BQ(G,B,this.gq,this.t$,v);g.E(this,this.o9);this.By=new cQ(this.EO,G,B,P,this.ac,this.o9,l,this.BZ);g.E(this,this.By);this.wh=tX(function(){return new rb(r,z,w,n.EO,n.uT,n.sO)}); g.E(this,this.wh);this.WX=tX(function(){return new wb}); g.E(this,this.WX);this.Et=new $q(p,this.X7,this.EO);g.E(this,this.Et);this.zn=new PQ(p);g.E(this,this.zn);this.Tp=new L$(p,this.t$,v);g.E(this,this.Tp);this.zO=new XX(p,this.gq,this.sO,this.ac,v);g.E(this,this.zO);this.Qr=new xq(p);g.E(this,this.Qr);this.Jl=new FX(p);g.E(this,this.Jl);this.WZ=tX(function(){return new E3(a)}); g.E(this,this.WZ);this.sE=new C$(p);g.E(this,this.sE);this.f1=tX(function(){return new vQ}); g.E(this,this.f1);this.q7=tX(function(){return new K$(n.sO)}); g.E(this,this.q7);this.Es=tX(function(){return new eZ(n.By,G,V)}); g.E(this,this.Es);this.Dl=tX(function(){return new bv(n.EO,n.uT,n.Qr,n.dG)}); g.E(this,this.Dl);this.Zl=tX(function(){return new IK(p,n.sE,n.Qr,n.uT,n.dG,n.oM,n.BZ,n.ac,n.sO,n.wc,n.gq,n.lr,n.VL,n.uM,n.Ty,n.EO,n.WZ,v,I)}); g.E(this,this.Zl);this.dk=tX(function(){return new UUq(n.X7,n.sO,n.uT,d,n.wp,l,n.ac)}); g.E(this,this.dk);this.Gp={bZ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.By],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.o1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.g$],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.o9]]),RI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wh],["SLOT_TYPE_FORECASTING",this.WX],["SLOT_TYPE_IN_PLAYER",this.WX],["SLOT_TYPE_PLAYER_BYTES",this.WX]]),V9:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Et],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.zn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.zn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.zn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.zn],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.zn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.zn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.zn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.zn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.zn],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Qr],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jl],["TRIGGER_TYPE_AD_BREAK_STARTED",this.sE]]),Nt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f1],["SLOT_TYPE_FORECASTING",this.f1],["SLOT_TYPE_IN_PLAYER",this.f1],["SLOT_TYPE_PLAYER_BYTES",this.q7]]),fH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Es],["SLOT_TYPE_FORECASTING",this.Dl],["SLOT_TYPE_IN_PLAYER",this.dk],["SLOT_TYPE_PLAYER_BYTES", this.Zl]])};this.listeners=[d.get()];this.o_={By:this.By,lU:this.EO.get(),ZV:this.uM.get(),lZ:this.sO.get(),g$:this.g$,xk:V.get(),VE:null,hw:this.Et,T_:d.get(),Y3:this.ac.get()}}; RK=function(p){return p.L||p.EO.get().B.C().D("html5_force_debug_data_for_client_tmp_logs")}; uv=function(p){return function(){return p}}; hfr=function(p){var a;return(a=p.layout.z4)!=null?a:PE(p.layout.clientMetadata,"metadata_type_sub_layouts")}; Fn=function(p,a){a=g.t(AKv[a]);for(var l=a.next();!l.done;l=a.next())p.B.iG(l.value)}; g.gFe=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,V:{d:"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 M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 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 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", fill:"#fff"}}]}}; O3=function(p,a,l){if(p.L==null)return a.W2|=4,!1;p=Yhf(p.L,l,a);a.W2|=p;return p==0}; tU=function(p){var a=Zt(p.L)>>>0;p=p.L;var l=qhr(p,a);p=p.S;if(JKo){var y=p,S;(S=kq)||(S=kq=new TextDecoder("utf-8",{fatal:!0}));a=l+a;y=l===0&&a===y.length?y:y.subarray(l,a);try{var n=S.decode(y)}catch(G){if(Mj===void 0){try{S.decode(new Uint8Array([128]))}catch(B){}try{S.decode(new Uint8Array([97])),Mj=!0}catch(B){Mj=!1}}!Mj&&(kq=void 0);throw G;}}else{n=l;a=n+a;l=[];for(var V=null,z,d;n=a?mx():(d=p[n++],z<194||(d&192)!==128?(n--,mx()):l.push((z&31)<<6|d&63)): z<240?n>=a-1?mx():(d=p[n++],(d&192)!==128||z===224&&d<160||z===237&&d>=160||((S=p[n++])&192)!==128?(n--,mx()):l.push((z&15)<<12|(d&63)<<6|S&63)):z<=244?n>=a-2?mx():(d=p[n++],(d&192)!==128||(z<<28)+(d-144)>>30!==0||((S=p[n++])&192)!==128||((y=p[n++])&192)!==128?(n--,mx()):(z=(z&7)<<18|(d&63)<<12|(S&63)<<6|y&63,z-=65536,l.push((z>>10&1023)+55296,(z&1023)+56320))):mx(),l.length>=8192&&(V=fmF(V,l),l.length=0);n=fmF(V,l)}return n}; ltq=function(p,a,l,y,S,n,V,z,d){var G=l.pings;return G?[p8M(p,n,z,S,function(B){var c=B.slotId;B=d(B);var r=l.adLayoutLoggingData,w=l.progressCommands;c=xc(a.S.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",c);var P={layoutId:c,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",iT:"core"};return{layoutId:c,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Xh:jZ(G),layoutExitNormalTriggers:[new wG(a.L,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[], layoutExitUserCancelledTriggers:[],iT:"core",clientMetadata:new Lc([new ei(y),new WQ(HQ(G)),new DT(atA(G)),new iv(V/1E3),new R1({progressCommands:w}),new b0(V/1E3)]),nx:B(P),adLayoutLoggingData:r}})]:new W("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:l})}; TA=function(p,a,l){this.experiments=p;this.Bs=a;this.QY=l===void 0?!1:l;this.Sl=!!g.o4("cast.receiver.platform.canDisplayType");this.Z={};this.UO=!1;this.j=new Map;this.K=!0;this.S=this.U=!1;this.L=new Map;this.Xu=0;this.w7=this.experiments.Cz("html5_disable_vp9_encrypted");this.W=this.experiments.Cz("html5_enable_encrypted_av1");p=g.o4("cast.receiver.platform.getValue");this.G=!this.Sl&&p&&p("max-video-resolution-vpx")||null;ydq(this);this.U=!!(hd()&&Ad()>=21)}; Nj=function(p,a,l,y,S,n,V,z,d){n=n===void 0?!1:n;V=V===void 0?[]:V;d=d===void 0?!1:d;JF.call(this,p,{X:"span",A9:["ytp-ad-hover-text-button"].concat(V)},z===void 0?"ad-hover-text-button":z,a,l,y);this.button=this.S=null;this.Z=n;this.W=S;this.U=d;this.hide()}; s3=function(p){return p.D("web_settings_menu_surface_custom_playback")}; U3=function(p,a){for(var l=[],y=g.t(p.Ag.values()),S=y.next();!S.done;S=y.next())S=S.value,S.trigger.L===a.layoutId&&l.push(S);l.length&&YB(p.L(),l)}; SXM=function(p,a){if(p.L==0)if(p.U){var l=p.U;if(l.S){for(var y=0,S=null,n=null,V=l.S;V&&(V.j||(y++,V.L==p&&(S=V),!(S&&y>1)));V=V.next)S||(n=V);S&&(l.L==0&&y==1?SXM(l,a):(n?(y=n,y.next==l.j&&(l.j=y),y.next=y.next.next):nZO(l),VaF(l,S,3,a)))}p.U=null}else Qh(p,3,a)}; Sh$=function(p,a,l,y,S){try{if(l){var n=nh.get(a);if(n)return new n(p.B);zTo(p,a,y,S)}else Fn(p,a)}catch(V){Fn(p,a),g.iO(V)}return null}; ZOe=function(p){p.L.forEach(function(a){a.delay.dispose()}); p.L.clear()}; gb=function(p,a,l){return hU(p)?new AU(Math.max(a,p.lM.startTimeMs/1E3),Math.min(l,p.lM.endTimeMs/1E3)):new AU(a,l)}; qj=function(){return Yq()||na("iPad")||na("iPod")}; zZo=function(p,a,l){if(l!=null){switch(typeof l){case "string":oZO(l)}GB(p,a,1);switch(typeof l){case "number":p=p.L;Wf(l);B2(p,tm);B2(p,jN);break;case "bigint":l=BigInt.asUintN(64,l);l=new JU(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)));p=p.L;a=l.L;B2(p,l.S);B2(p,a);break;default:l=oZO(l),p=p.L,a=l.L,B2(p,l.S),B2(p,a)}}}; f$=function(p){return p.L.getUint8(p.pos++)}; pu=function(p){p=p===void 0?document:p;var a,l;p=(l=(a=p).querySelector)==null?void 0:l.call(a,"script[nonce]");return p==null?"":p.nonce||p.getAttribute("nonce")||""}; GEh=function(p,a,l){l=l.opt_configurable_tracking_events;p.L!=null&&Array.isArray(l)&&dGA(p,l,a)}; lT=function(p){return aq(p,"custom_metric_viewable")}; yZ=function(p){this.NO=Dm(p)}; B8f=function(){var p=LO().U,a=SP>=0?nu()-SP:-1,l=VZ?nu()-Z2:-1,y=oq>=0?nu()-oq:-1;if(p==947190542)return 100;if(p==79463069)return 200;p=[2E3,4E3];var S=[250,500,1E3];Jf(637,Error(),.001);var n=a;l!=-1&&l1500&&y<4E3?500:V}; cdF=function(p){if(!p.MO.ke)return!0;var a=p.Lz.getVideoData();if(p.Lz.q9())return p.jl("ombpa",{}),!1;var l,y;if(!!((l=p.UO)==null?0:(y=l.Y1)==null?0:y.tac)!==p.MO.uf)return p.jl("ombplmm",{}),!1;l=a.eb||a.liveUtcStartSeconds||a.o4;if(p.MO.uf&&l)return p.jl("ombplst",{}),!1;if(p.MO.UO)return p.jl("ombab",{}),!1;l=Date.now();return z9(p.MO)&&!isNaN(p.QY)&&l-p.QY>p.policy.ez*1E3?(p.jl("ombttl",{}),!1):p.MO.BX&&p.MO.j||dh(a)!==0&&!p.policy.L||a.D("html5_disable_onesie_media_for_mosaic")&&rr(a)||a.D("html5_disable_onesie_media_for_lifa_eligible")&& G9(a)?!1:!0}; Ra=function(p,a){a=a===void 0?{}:a;this.UAu=p;this.metadata=a;this.status=null}; rdv=function(p,a){var l=p.HZ.sU;if(l)return yG(l.getPlayerState());if(p.getVideoData().enableServerStitchedDai&&a===2){var y;return((y=p.V$)==null?0:B5(y,p.getCurrentTime()))?p.Z2:-1}return a!==2||p.fv()?p.Z2:p.H0}; $Ge=function(p,a,l){p=w8r(p);a=a?g.c5(a):"";l=l||5;rh()&&g.wh(p,a,l)}; $3=function(p,a){a=String(a);p.contentType==="application/xhtml+xml"&&(a=a.toLowerCase());return p.createElement(a)}; P5=function(p,a,l,y,S,n){var V={X:"div",T:"ytp-panel"};if(l){var z="ytp-panel-back-button";var d="ytp-panel-title";var G={X:"div",T:"ytp-panel-header",N:[{X:"div",A9:["ytp-panel-back-button-container"],N:[{V:{"aria-label":"Volver al men\u00fa anterior"},X:"button",A9:["ytp-button",z]}]},{X:"span",A9:[d],V:p.D("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,N:[l]}]};if(S){var B="ytp-panel-options";G.N.push({X:"button",A9:["ytp-button",B],N:[y]})}V.N=[G]}y=!1;n&&(n= {X:"div",T:"ytp-panel-footer",N:[n]},y=!0,V.N?V.N.push(n):V.N=[n]);g.YZ.call(this,V);this.content=a;y&&V.N?a.lT(this.element,V.N.length-1):a.lT(this.element);this.yq=!1;this.Xg=y;l&&(this.backButton=this.d7(z),l=this.d7(d),this.J(this.backButton,"click",this.qo),this.J(l,"click",this.qo),this.yq=!0,S&&this.J(this.d7(B),"click",S));a.subscribe("size-change",this.Vy,this);this.J(p,"fullscreentoggled",this.Vy);this.B=p}; Xk=function(p,a,l){var y=Pne.get();y.U=p;y.S=a;y.context=l;return y}; FK=function(p,a){this.name=p;this.options=a;this.U=!0;this.W=this.j=0}; LQh=function(p,a){for(var l=0;l=S.timeRangeStartMillis&&ag.XS()}; eZA=function(p,a){this.S=(new TextEncoder).encode(p);this.L=(new TextEncoder).encode(a)}; g.FS=function(p,a){a=bOr(p,a);var l;(l=a>=0)&&g.x3(p,a);return l}; Cu=function(p,a){a=a===void 0?[]:a;g.Ei(p,function(l,y){var S=y.Lx-l.Lx;if(!l.HX()||!y.HX())return S;var n=y.video.height*y.video.width-l.video.height*l.video.width;!n&&a&&a.length>0&&(l=a.indexOf(l.h9)+1,y=a.indexOf(y.h9)+1,n=l===0||y===0?y||-1:l-y);n||(n=S);return n})}; D_=function(){var p=arguments,a=v5;p.length>1?a[p[0]]=p[1]:p.length===1&&Object.assign(a,p[0])}; Ku=function(p,a,l){this.S=p;this.isAsync=a;this.L=l}; Itf=function(p,a){a&&(p.j=a)}; ei=function(p){this.value=p}; eP=function(p,a,l,y){y=g.t(y);for(var S=y.next();!S.done;S=y.next()){S=S.value;var n=p.Gp.V9.get(S.triggerType);n.Os(l,S,a.slot,a.layout?a.layout:null);a.Xu.set(S.triggerId,n)}}; C_e=function(p,a){p.__closure__error__context__984382||(p.__closure__error__context__984382={});p.__closure__error__context__984382.severity=a}; uT=function(p,a,l,y,S,n,V,z){bT.call(this,p,a,l,y);this.uT=S;this.Ye=n;this.G=z;this.FF=!0;this.j=null;this.W=PE(l.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Iq(this.Ye(),this);p=PE(l.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,this.uT,p,l.layoutId)}; RZO=function(p,a,l){var y=0;p=p.L.L.get(l);if(!p)return-1;p=g.t(p);for(l=p.next();!l.done;l=p.next()){if(l.value.cpn===a)return y;y++}return-1}; uWv=function(p){p.policy.vR&&p.xx&&!p.z8?p.z8=!0:p.UE.Jv()}; iB=function(p){if(Oi){var a;return(a=p[k3])!=null?a:p[k3]=new Map}if(k3 in p)return p[k3];a=new Map;Object.defineProperty(p,k3,{value:a});return a}; g.Ta=function(p){return/^[\s\xa0]*$/.test(p)}; OOA=function(p){p.wq=[];p.T4=[];p.W.clear();p.L=-1;p.U=void 0}; MaM=function(p,a,l){kEZ(p);wQ(p,l);wQ(p,~l);ME.WC(p.lG,p.window,a,l,p.pending);p.pending+=l}; g.z1=function(p,a){for(;p.K.length;){var l=p.K.pop(),y=void 0;a&&mGE()&&(y={passive:!0});l.target.removeEventListener(l.name,l.callback,y)}}; tA=function(p){var a=mD(!0);return a&&(a===p.template.element||p.mediaElement&&a===p.mediaElement.gG())?a:null}; H5=function(p){p=jP(p);W5||(W5=tar());W5(p)}; FX=function(p){g.D.call(this);this.L=p;this.FF=!0;this.Ag=new Map}; wQ=function(p,a){p.lG[p.pending++]=a&255;p.lG[p.pending++]=a>>>8&255}; D2=function(p){return p&&p.thumbnails&&(p.thumbnails||null).length!=0&&p.thumbnails[0].url?g.G1(p.thumbnails[0].url):""}; jgO=function(p,a){p.Gm()||(p.S=a,p.logger.update(a.eG()),p.W.resolve(),p.G.resolve(void 0),p.xm())}; HOv=function(p,a){var l=4320;!p.Y.S||g.iT(p.Y)||p.Y.D("hls_for_vod")||p.Y.D("mweb_remove_360p_cap")||(l=g.T9.medium);var y=g.sW(p.Y.experiments,"html5_default_quality_cap");y&&a.L.L&&(p.Y.D("html5_always_apply_default_quality_cap")||!a.videoData.E2&&!a.videoData.Hy)&&(l=Math.min(l,y));y=g.sW(p.Y.experiments,"html5_random_playback_cap");var S=/[a-h]$/;y&&S.test(a.videoData.clientPlaybackNonce)&&(l=Math.min(l,y));if(S=y=g.sW(p.Y.experiments,"html5_hfr_quality_cap"))a:{S=a.L;if(S.L){S=g.t(S.videoInfos); for(var n=S.next();!n.done;n=S.next())if(n.value.video.fps>32){S=!0;break a}}S=!1}S&&(l=Math.min(l,y));(y=g.sW(p.Y.experiments,"html5_live_quality_cap"))&&a.videoData.isLivePlayback&&(l=Math.min(l,y));l=WQe(p,a,l);p=g.sW(p.Y.experiments,"html5_byterate_soft_cap");return new NE(0,l===4320?0:l,!1,"d",p)}; k5E=function(p){this.L=p}; si=function(p){this.L=p}; Ui=function(p){g.D.call(this);this.wpc=p}; aQr=function(p,a,l,y){if(QZ.length){var S=QZ.pop();DGr(S,y);S.L.init(p,a,l,y);return S}return new hA(p,a,l,y)}; g.AA=function(p,a,l){p.L=l?PV(a,!0):a}; g.gh=function(p,a){if(p.Bs)return function(){}; a.addEventListener("mouseover",p.W);a.addEventListener("focus",p.W);var l=p.env.D("player_tooltip_data_title_killswitch")?a.getAttribute("title"):a.getAttribute("data-tooltip-title");l&&!a.hasAttribute("aria-label")&&a.setAttribute("aria-label",l);return function(){p.L===a&&p.g4();a.removeEventListener("mouseover",p.W);a.removeEventListener("focus",p.W)}}; g.JA=function(p,a,l){p=p.L.openCursor(a.query,a.direction);return Y3(p).then(function(y){return qE(y,l)})}; N8E=function(){this.env=new iOe;this.wasi_snapshot_preview1=new T8O}; g.j_=function(p){var a={},l;for(l in p)a[l]=p[l];return a}; g.ZV=function(p){g.vA(p.info.L.info)||p.info.L.info.EQ();if(p.U!==-1)return p.U;if(p.L&&sgM(p.L))return p.U=sgM(p.L),p.U;if(g.vA(p.info.L.info)){var a=g.KU(p);for(var l=p.info.L.L,y=NaN,S=NaN,n=0;Eh(a,n);){var V=fu(a,n);V.type===1936286840?S=V.data.getUint32(V.dataOffset+8):V.type===1836476516?S=g.p6(V):V.type===1952867444&&isNaN(y)&&(y=g.ab(V));n=lx(V.type)?n+8:n+V.size}!S&&l&&(S=y6(l));a=y/S}else a=new bt(g.KU(p)),l=p.W?a:new bt(new DataView(p.info.L.L.buffer)),y=SF(l),l=a.pos,a.pos=0,n6(a)?$C(a, 231)?(y=V6(a)*y/1E9,a.pos=l,a=y):(a.pos=l,a=NaN):(a.pos=l,a=NaN);p.U=a||p.info.W;return p.U}; ob=function(p){g.z1(p.j,!p.L)}; UGr=function(p,a,l){if(a&&a.status===204)return!0;switch(p){case "JSON":return!!l;case "XML":return Number(l&&l.return_code)===0;case "RAW":return!0;default:return!!l}}; y_=function(p){var a=":"+(z3.getInstance().L++).toString(36);return p+a}; Qgf=function(p){p=p.api.C();return g.dB(p)&&p.S}; rB=function(p,a){var l=null;return(new g.BG(function(y,S){l=g.cG(function(){y(a)},p); l==-1&&S(Error("Failed to schedule timer."))})).Nb(function(y){g.dD.clearTimeout(l); throw y;})}; hZv=function(p,a,l){var y=480;a=g.t(a);for(var S=a.next();!S.done;S=a.next()){S=S.value;var n=S.video.qualityOrdinal;n<=1080&&n>y&&CK$(p,S,l)===!0&&(y=n)}return y}; g.wB=function(){return!!g.o4("yt.scheduler.instance")}; YXM=function(p,a){var l,y,S,n,V,z,d,G,B,c,r;return g.R(function(w){switch(w.L){case 1:l=a.isAd(),y=!l,S=l?1:3,n=0;case 2:if(!(n0)){w.g7(5);break}return g.u(w,rB(5E3),6);case 6:V=new g.kc("Retrying OnePlatform request",{attempt:n}),g.Mf(V);case 5:return g.$r(w,7),g.u(w,Ad$(p,a),9);case 9:return w.return();case 7:z=g.L6(w);d=jl(z);G=d.errorCode;B=p.C();c=B.D("html5_use_network_error_code_enums")?401:"401";y&&G==="manifest.net.badstatus"&&d.details.rc===c&&(y=!1,n===S-1&&(S+= 1));if(n===S-1)return r=gZv(l,d.details),r.details.backend="op",r.details.originec=G,w.return(Promise.reject(r));if(G==="auth"||G==="manifest.net.retryexhausted")return w.return(Promise.reject(d));p.handleError(d);if(tF(d.severity)){w.g7(4);break}case 3:n++;w.g7(2);break;case 4:return w.return(Promise.reject(gZv(l,{backend:"op"})))}})}; X8=function(p){this.value=p}; qXr=function(p){var a=g.t(p.split("."));p=a.next().value;a=a.next().value;return[Number(p),a]}; xr=function(p,a){p.L.has(a.NI())?hF("Trying to register an existing AdErrorInfoSupplier."):p.L.set(a.NI(),a)}; g.oO=function(p){p=lB(p);return typeof p==="string"&&p==="false"?!1:!!p}; ftE=function(p,a){var l=2,y={};try{var S=Jdq(a);l=n8(S,1);var n=S.getMessage();lO(S,F8,3).length&&(y["grpc-web-status-details-bin"]=a)}catch(V){p.xhr&&p.xhr.getStatus()===404?(l=5,n="Not Found: "+String(p.xhr.Z)):(l=14,n="Unable to parse RpcStatus: "+V)}return{code:l,details:n,metadata:y}}; pZM=function(p,a){p.Lz.jl("sdai",{adj4t:a.toFixed(3)});p.Hs=a;a+=1;p.S=a;p.U=a;EC(p).then(function(l){C6(p,l)},function(){vG(p)})}; g.bx=function(p,a){if(!a)throw g.K6("openWithToken",eF(p.name));return p.open()}; l1h=function(p){return function(){var a=new kaZ;a1$(this.NO,a,Ch(Ib,Rb,ux,p));ym(a,a.L.end());for(var l=new Uint8Array(a.S),y=a.U,S=y.length,n=0,V=0;V=0?p=String(a):(a=p.indexOf("."),a!==-1&&(p=p.substring(0,a)),p[0]==="-"?a=!1:(a=p.length,a=a<20?!0:a===20&&p<="18446744073709551615"),a||(mg(p),p=ts(tm,jN))),p;if(a==="number")return MA(p),p=Rg(p),p>=0&&un(p)||(jF(p),p=WG(tm,jN)),p}}; nJZ=function(p,a){p.U[a]||(p.U[a]=new HG);return p.U[a]}; Z7$=function(){var p=Vce;return function(){var a=DV();if(!a.resolve(ix(p))){var l={};T3(a,(l.Xl=p,l.ZZ=p,l[NA]=void 0,l))}return a.resolve(p)}}; oJ$=function(p,a,l,y,S){if(Array.isArray(a))for(var n=0;n=2)||V.isComplete()||V.a6()||!(!p.loader.Ic||p.loader.isSuspended||qA(G)>3)){var B=wZr(V,p.policy,p.j);B===1&&(p.w7=!0);$hO(p,V,B);if(V.isComplete()||V.Gm()&&z<3){if(p.policy.U){var c=V.timing.b4();c.rst=V.state;c.strm=V.xhr.Sh();c.cncl=V.xhr&&V.R4.W?1:0;p.loader.jl("rqs",c)}V.vp&&p.loader.jl("sbwe3",{},!0)}if(!p.Gm()&&V.state>=2){Pm$(p.timing,V,d);var r=p.loader;p.rE&&V.Oa&&r&&(p.rE=NaN,p.loader.h_(V.Oa),p.loader.x9(),p.loader.jl("cabrUtcSeek",{mediaTimeSeconds:V.Oa}));V.cw&&p.rE&&V.cw&& !V.cw.action&&(p.loader.Wf(p.rE),p.rE=NaN,p.loader.jl("cabrUtcSeekFallback",{targetUtcTimeSeconds:p.rE}));V.q1&&p.loader.nH(V.q1);p.policy.bf&&(p.QR=V.QR);if(V.state===3){Js(G,V);Yr(V.info)&&f6(p,G,d,!0);if(p.S){var w=V.info.VV();w&&p.S.kz(V.info.mT[0].Rc,d.info.id,w)}p.loader.e5()}else if(V.isComplete()&&V.info.mT[0].type===5){if(V.state!==4)V.M5()&&p.loader.handleError(V.q3(),V.zw());else{var P=(V.info.mT[0].L.info.video?p.videoTrack:p.audioTrack).U[0]||null;P&&P instanceof Zl&&P.a6()&&P.eh()}V.dispose()}else{if(!V.M5()&& V.Bw&&V.state>=2&&V.state!==3){var F=V.xhr.getResponseHeader("X-Response-Itag");if(F){var v=Lnf(p.U,F),I=V.info.U;if(I){var b=I-v.Lb();v.U=!0;V.info.mT[0].L.U=!1;var O=v.K6(b);V.info=O;if(V.dc){var m=V.dc,H=O.mT;(H.length!==m.mT.length||H.length=p.policy.Oo&&p.S&&V.info.isDecorated()&&xh==="net.badstatus"&&p.S.TY(yU,nc))){var kh=(f.info.video&&f.bM.U>1||V.MA===410||V.MA===500||V.MA===503)&&!(nv(p.U.W).size>0)&&!UM(19,f.bM.L),OM=V.zw(),q7=f.info.video?p.videoTrack:p.audioTrack;kh&&(OM.stun="1");p.loader.handleError(xh,OM);p.Gm()||(kh&&C0(p.U,f),Js(q7,V),p.loader.e5())}}else v=1,p.S&&V.info.isDecorated()&& xh==="net.badstatus"&&p.S.TY(yU,nc)&&(v=0),p.MO.isLive&&V.q3()==="net.badstatus"&&p.G<=p.policy.V4*2?(xhq(p.MO),p.MO.uf||p.MO.isPremiere?VR(p.loader,0,{JP:"badStatusWorkaround"}):p.MO.j?VR(p.loader,p.MO.QY,{JP:"badStatusWorkaround",Ql:!0}):ZU(p.loader)):p.loader.handleError(xh,V.zw(),v);isNaN(p.rE)||(p.loader.Wf(p.rE),p.rE=NaN)}p.policy.vZ&&!V.isComplete()?oM(p.loader):p.loader.e5();var u_=FnE(V,p.policy,p.j);$hO(p,V,u_)}}}}}catch(i_){xh=p.Xu?1:0,p.Xu=!0,V=tF(xh),xh=jl(i_,xh),p.loader.handleError(xh.errorCode, xh.details,xh.severity),V||p.loader.FG()}},y)}; dy=function(p,a){p.B.sendVideoStatsEngageEvent(a,void 0,2)}; g.Cmf=function(p,a){if(p.L!=null&&g.dM(a,p.L)&&p.L.L.rawcc!=null)return!0;if(!p.ke())return!1;a=!!p.L&&p.L.isManifestless&&Object.values(p.L.L).some(function(l){return g.GQ(l,"386")}); p=!!p.L&&!p.L.isManifestless&&g.EJM(p.L);return a||p}; vJr=function(p,a){a.subscribeCommand&&(p.subscribeCommand=a.subscribeCommand);a.unsubscribeCommand&&(p.unsubscribeCommand=a.unsubscribeCommand);a.addToWatchLaterCommand&&(p.addToWatchLaterCommand=a.addToWatchLaterCommand);a.removeFromWatchLaterCommand&&(p.removeFromWatchLaterCommand=a.removeFromWatchLaterCommand);a.getSharePanelCommand&&(p.getSharePanelCommand=a.getSharePanelCommand)}; exF=function(p,a,l){l=l===void 0?p.C().schedule:l;var y,S,n,V,z,d,G,B,c,r,w,P,F,v,I,b,O,m,H,Y,N,yo,zq,S$,BE,f;return g.R(function(xh){if(xh.L==1)return a.fetchType="onesie",y=KnA(a,p.getPlayerSize(),p.getVisibilityState()),S=new Bg(p,y,l),g.u(xh,S.fetch(),2);n=xh.S;V={player_response:n};a.loading=!1;z=p.TR.Bf;if(S.eD){d=g.t(S.eD.entries());for(G=d.next();!G.done;G=d.next())B=G.value,c=g.t(B),r=c.next().value,w=c.next().value,P=r,F=w,z.L.set(P,F,180),P===a.videoId&&(v=F.vx(),a.QU=v);z.a8=S}I=g.t(S.f5.entries()); for(b=I.next();!b.done;b=I.next())O=b.value,m=g.t(O),H=m.next().value,Y=m.next().value,N=H,yo=Y,z.S.set(N,yo,180);g.cg(a,V,!0);if(a.loading||ry(a))return xh.return(Promise.resolve());z.L.removeAll();z.S.removeAll();a.QU=[];zq={};S$="onesie.response";BE=0;a.errorCode?(S$="auth",zq.ec=a.errorCode,zq.ed=a.errorDetail,zq.es=a.Aw||"",BE=2):(zq.successButUnplayable="1",zq.disposed=""+ +a.Gm(),zq.afmts=""+ +/adaptiveFormats/.test(n),zq.cpn=a.clientPlaybackNonce);f=new g.mm(S$,zq,BE);return xh.return(Promise.reject(f))})}; X0=function(p,a,l){var y=l.Yp,S=l.Tq,n=l.listener,V=l.rb;l=l.z2===void 0?!1:l.z2;if(p.L.has(a))hF("Unexpected registration of layout in LidarApi");else{if(V){if(p.S.has(V))return;p.S.add(V)}p.L.set(a,n);wy(LO().sC,"fmd",1);Itf(p7($n),y);var z=l?a:void 0;b7f(Pg(),a,{Fs:function(){if(!S)return{};var d=p.B.getPresentingPlayerType(!0),G;return(G=p.B.getVideoData(d))!=null&&G.isAd()?{currentTime:p.sO.get().getCurrentTimeSec(d,!1,z),duration:S,isPlaying:Lv(p.sO.get(),d).isPlaying(),isVpaid:!1,isYouTube:!0, volume:p.sO.get().isMuted()?0:p.sO.get().getVolume()/100}:{}}})}}; I1Z=function(p,a,l,y,S){a=RTO(a,y);a!=null&&(l=uVv(p,l),S(a,p),OUO(p,l))}; xn=function(p){this.track=p;this.buffered=[];this.U=this.j=0;this.G={};this.W=0;this.L=new ye}; F0=function(p,a,l){WV.call(this,p);this.j=a;this.L="w";this.S="z";HV(this,l)}; Rxo=function(p,a){(0,g.Bf)(a.L,function(l){p.add(l.S,l.L,q7q(l))})}; uME=function(p,a){var l={};a=g.t(a);for(var y=a.next();!y.done;y=a.next())if((y=y.value)&&y.video){var S=y.video.qualityOrdinal,n=l[S],V=n&&W8(n)&&n.video.qualityOrdinal>p.policy.R7,z=S<=p.policy.R7?W8(y):UX(y);if(!n||V||z)l[S]=y}return l}; $B=function(p,a,l){g.Es(function(){if(!Cv(l)||w1(p,l))return!1;kC(p,a,l);return!0})()}; FO=function(p,a,l,y){if(!(p+3>>4)){var S=a[l],n=S[Z[16]](Z[24]);n>0?vg(59,y,S[Z[15]](0,n),S[Z[15]](n+1)):S&&(y[S]=Z[3]);var V=[a,l,y]}p-2>>3==2&&(a[23]>-6&&(a[68]>new l(Z[61])/1E3&&((0,a[57])(((0,a[34])(a[47],a[26]),(0,a[31])(a[60]),a[50])(a[55]),a[69],(0,a[5])(a[43],a[12]),a[47],a[49],a[12]),1)||(0,a[52])((0,a[47])(a[42],a[59]),a[47],((0,a[47])(a[44],a[19]),(0,a[74])(a[55],a[76]),a[26])(a[17],a[59]),a[0],a[59])),a[17]>=-10&&(((0,a[9])(a[55],a[36]),a[9])(a[21],a[13]),1)||(0,a[69])((0,a[47])(a[32], a[55]),a[9],a[12],a[3]),(a[2]<=7||((0,a[26])(a[51],a[39]),Z[3]))&&(0,a[16])(a[12],(0,a[48])(),a[38]),a[22]!==new l(Z[20])/1E3&&(0,a[81])(a[21]),a[77]<7&&(0,a[56])(a[39],a[60]),a[2]!=6&&((0,a[0])(a[60]),Z[81])||(0,a[48])(a[57],a[13]),a[7]<=-4&&(a[80]!=9||((0,a[15])((0,a[70])((0,a[70])((0,a[17])(a[60],(0,a[49])(),a[39]),a[82],a[22]),a[51],a[40]),(0,a[70])((0,a[17])(a[60],(0,a[74])(),a[79]),a[17],a[13],(0,a[74])(),a[79]),a[53],(0,a[6])(a[81],a[60]),a[10],(0,a[51])(a[60]),a[20],a[5]),(0,a[17])(a[60], (0,a[74])(),a[39]),(0,a[70])((0,a[17])(a[56],(0,a[72])(),a[79]),a[17],a[13],(0,a[72])(),a[78]),0))&&(((((((0,a[6])(a[3],a[56]),a[27])(a[new l(Z[77])/1E3],a[22]),a[51])(a[60]),a[6])(a[38],a[22]),a[74])(a[43],a[81]),(0,a[55])(((0,a[2])(a[45],(0,a[34])(),a[63]),a[12])(a[4],a[41]),a[60],a[5],a[75]),a[14])(a[15],a[47]),a[57])((0,a[76])(a[11],a[27]),a[55],a[64]),a[51]>10&&((0,a[74])((0,a[79])(a[24],a[80]),a[66],a[47],a[57]),1)||((0,a[39])(a[32],a[51]),a[39])(a[59],a[51]),a[55]!==-4&&(a[28]>=-3?(0,a[61])((0,a[17])(a[70], a[31]),a[66],a[4],a[33]):(0,a[61])((0,a[39])(a[71],a[47]),a[42],a[13])),a[67]!==2?((0,a[66])(a[31],a[25]),a[12])(a[41],a[20]):((0,a[23])(a[69]),(0,a[47])(a[12],a[19])),V=[a,l]);if(!(p+7&5))for(l=(l%a[Z[7]]+a[Z[7]])%a[Z[7]];l--;)a[Z[63]](a[Z[75]]());return V}; Kv=function(p,a,l,y){var S=p.NO,n=S[QB]|0;a=O7e(S,n,a,l,y);if(a==null)return a;n=S[QB]|0;if(!qN(p,n)){var V=kWe(a);V!==a&&(Jx(p)&&(S=p.NO,n=S[QB]|0),a=V,n=yH(S,n,l,a,y),zF(S,n))}return a}; Mcr=function(p,a){if(!p.lM)return!1;var l=p.lM.startTimeMs*.001-1,y=p.lM.endTimeMs*.001;p.lM.type==="repeatChapter"&&y--;return Math.abs(a-l)<=1E-6||Math.abs(a-y)<=1E-6||a>=l&&a<=y}; eA=function(p,a){p=Error.call(this,p);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.L=a===void 0?!1:a}; br=function(p){this.value=p}; E9q=function(p,a){a=g.t(a);for(var l=a.next();!l.done;l=a.next()){var y=l.value,S=void 0;l=Number((S=y.playbackRelativePosition)==null?void 0:S.utcTimeMs)/1E3;var n=void 0;S=l+Number((n=y.duration)==null?void 0:n.seconds);n="composite_embargo_"+l;y.onEnter&&(y=y.onEnter.filter(p.W),y.length&&(p.S.set(n,y),p.api.addUtcCueRange(n,l,S,"compositeembargo",!1)))}}; FuM=function(p){g.M8("yt.ads.biscotti.lastId_",p)}; mhM=function(p){var a=null,l="No puedes cambiar el volumen en este navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK".split(/\$(BEGIN|END)_LINK/);a=new g.Cl(p.B,{X:"span",A9:["ytp-popup","ytp-generic-popup"],V:{tabindex:"0"},N:[l[0],{X:"a",V:{href:"https://support.google.com/youtube/?p=noaudio",target:p.B.C().Sl},yY:l[2]},l[4]]},100,!0);g.E(p,a);a.hide();a.subscribe("show",function(y){p.B.gD(a,y)}); g.uW(p.B,a.element,4)}; jae=function(p,a){var l,y,S,n;return g.R(function(V){if(V.L==1)return l={startTime:(0,g.Ek)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.u(V,IM(a),2);if(V.L!=3)return y=V.S,S=Object.assign({},p,{options:JSON.parse(JSON.stringify(p.options)),interface:g.ZM("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.u(V,g.RM(y,"LogsRequestsStore",S),3);n=V.S;l.ticks.tc=(0,g.Ek)();tcZ(l);return V.return(n)})}; WnM=function(p){return new g.BG(function(a,l){p.length||a(void 0);for(var y,S=0;S>3,S=l&7;if(y===a)return!0;if(y>a){p.S=l;break}l=-1;switch(S){case 0:me(p);break;case 1:p.pos+=8;break;case 2:y=me(p);p.pos+=y;break;case 5:p.pos+=4}}return!1}; i7r=function(p){var a=g.hf(p.W);g.Bf(a,function(l){l.OG(p.j)})}; TAe=function(){return g.o4("yt.ads.biscotti.lastId_")||""}; g.JI=function(p){return $3(document,p)}; jA=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",V:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}}; g.Wd=function(p){var a=NAh;if(Wg(p,"display")!="none")return a(p);var l=p.style,y=l.display,S=l.visibility,n=l.position;l.visibility="hidden";l.position="absolute";l.display="inline";p=a(p);l.display=y;l.position=n;l.visibility=S;return p}; saZ=function(p){return lm(p)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Uho=function(p,a){return Hg(p,1,a)}; hxM=function(p){try{var a=QaF(p,!0),l=QaF(p,!1);return{id:a,size:l}}catch(y){return{id:-1,size:-1}}}; TQ=function(p,a){for(var l=p.search(DU),y=0,S,n=[];(S=ir(p,y,a,l))>=0;)n.push(p.substring(y,S)),y=Math.min(p.indexOf("&",S)+1||l,l);n.push(p.slice(y));return n.join("").replace(Aqe,"$1")}; Xs=function(p,a){var l=p.j;p=gJe(p);a=a===void 0?!1:a;l.L&&(p?l.L.hide():l.L.show(),a&&l.L instanceof No&&!l.L.j&&Yce(l.L,!1));l.S&&(p?l.S.show():l.S.hide())}; qc$=function(p,a){this.layoutId=a;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=p(this.triggerType)}; he=function(p,a){g.X.call(this,{X:"div",T:"ytp-volume-panel",V:{title:p.D("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},N:[{X:"div",T:"ytp-volume-slider",N:[{X:"div",T:"ytp-volume-slider-handle"}]}]});var l=this;this.api=p;this.G=a;this.M7=!1;this.UO=this.volume=0;this.W=null;this.S=this.L=this.isDragging=!1;this.G=a;this.U=p.QT(); this.Z=p.D("web_player_use_screen_width_for_big_mode");this.K=this.d7("ytp-volume-slider");this.Xu=this.d7("ytp-volume-slider-handle");this.j=new g.Us(this.K,!0);g.E(this,this.j);this.j.subscribe("dragstart",this.JeV,this);this.j.subscribe("dragmove",this.XY,this);this.j.subscribe("dragend",this.cem,this);this.J(p,"onVolumeChange",this.onVolumeChange);this.J(p,"appresize",this.dcz);this.J(p,"fullscreentoggled",this.zH);this.J(p,"onShowControls",this.eL);this.J(p,"onHideControls",this.eL);this.J(this.element, "keydown",this.yx);this.J(this.element,"focus",function(){fc(l,l.L,l.isDragging,!0,l.api.M7())}); this.J(this.element,"blur",function(){fc(l,l.L,l.isDragging,!1,l.api.M7())}); JqE(this,p.Fu().getPlayerSize());QR(this,p.getVolume(),p.isMuted());OC(p,this.element,this)}; g.kc=function(p){var a=g.D1.apply(1,arguments);var l=Error.call(this,p);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.args=[].concat(g.u0(a));Object.setPrototypeOf(this,this.constructor.prototype)}; Ae=function(p,a,l,y){y=new g.X({X:"div",A9:["ytp-linked-account-popup-button"],yY:y,V:{role:"button",tabindex:"0"}});a=new g.X({X:"div",T:"ytp-linked-account-popup",V:{role:"dialog","aria-modal":"true",tabindex:"-1"},N:[{X:"div",T:"ytp-linked-account-popup-title",yY:a},{X:"div",T:"ytp-linked-account-popup-description",yY:l},{X:"div",T:"ytp-linked-account-popup-buttons",N:[y]}]});g.Cl.call(this,p,{X:"div",T:"ytp-linked-account-popup-container",N:[a]},100);var S=this;this.dialog=a;g.E(this,this.dialog); y.listen("click",function(){S.Ro()}); g.E(this,y);g.uW(this.B,this.element,4);this.hide()}; f1r=function(p){this.U=p;this.L=-1;this.S=this.j=0}; gy=function(p){this.value=p}; Je=function(){Yn||(Yn=new qo("yt.offline"));return Yn}; fv=function(p,a){p.has(a)||p.set(a,{instreamVideoAdRenderer:void 0,HT:void 0,adVideoId:a,Nd:[]});return p.get(a)}; p4Z=function(p,a,l){p instanceof String&&(p=String(p));for(var y=p.length-1;y>=0;y--){var S=p[y];if(a.call(l,S,y,p))return{gx:y,qp:S}}return{gx:-1,qp:void 0}}; a_o=function(p){p={next:p};p[Symbol.iterator]=function(){return this}; return p}; ii=function(p){try{return!!p&&p.location.href!=null&&xDE(p,"foo")}catch(a){return!1}}; l_E=function(p){var a,l;g.R(function(y){if(y.L==1){var S;if(S=g.pT()){var n;S=!((n=p.j.S)==null||!n.getMetrics)}return S?g.u(y,p.j.getMetrics(),2):y.return()}a=y.S;if(!a)return y.return();oY(a)||(a=g.aE(a));l=/^[A-Za-z0-9_-]+={0,3}$/;l.test(a)||(a=g.lr(a,void 0,!0));p.publish("ctmp","drm",{metrics:a});g.lD(y)})}; yIv=function(p){if(p.policy.ej&&p.policy.s3)for(var a=g.t(p.policy.ej),l=a.next(),y={};!l.done;y={rH:void 0,NL:void 0},l=a.next())if(l=g.yn(l.value),y.rH=+l.clen,y.NL=+l.csz,y.rH>0&&y.NL>0&&p.policy.j===l.docid&&p.L.info.id===l.fmtid&&p.L.info.lastModified===+l.lmt)return p={},p.clen=y.rH,p.csz=y.NL,p.ck=l.ck,p.civ=l.civ,p}; tcZ=function(p){g.oO("nwl_csi_killswitch")||Sq("networkless_performance",p,{sampleRate:1})}; nT=function(p){return p&&"status"in p?p.status:-1}; nDo=function(p){Sno(p,function(a,l){a=new URL(a);a.searchParams.set("format","json");var y=!1;try{y=LF().navigator.sendBeacon(a.toString(),l.Ut())}catch(S){}y||(p.UO=!1);return y})}; VvA=function(p){p.Z||(p.Z=Vn());try{return(new URL(p.Z)).toString()}catch(a){return(new URL(p.Z,LF().location.origin)).toString()}}; ZP=function(p,a,l){p.Sl&&p.Sl.cX(a,l)}; var FrM=function(){return xZ[Z[5]](this,28)}; ZhA=function(p){p=Number(p.driftRecoveryMs);return isNaN(p)||p<=0?null:p}; Zt=function(p){var a=p.S,l=p.L,y=a[l++],S=y&127;if(y&128&&(y=a[l++],S|=(y&127)<<7,y&128&&(y=a[l++],S|=(y&127)<<14,y&128&&(y=a[l++],S|=(y&127)<<21,y&128&&(y=a[l++],S|=y<<28,y&128&&a[l++]&128&&a[l++]&128&&a[l++]&128&&a[l++]&128&&a[l++]&128)))))throw Error();oE(p,l);return S}; G1r=function(p,a,l,y){y=y===void 0?{}:y;p.S.add(y.layer||0);p.j=function(){oDq(p,a,l,y);var V=g.z2(y.layer);if(V){for(var z=g.t(p.K),d=z.next();!d.done;d=z.next())d=d.value,dV(p,d[0],d[1]||V,y.layer);V=g.t(p.Z);for(z=V.next();!z.done;z=V.next())z=z.value,zOM(p,z[0],z[1])}}; l||g.G2(y.layer)||p.j();if(y.T8)for(var S=g.t(y.T8),n=S.next();!n.done;n=S.next())d4O(p,n.value,y.layer);else g.iO(Error("Delayed screen needs a data promise."))}; BrO=function(p){p.L.queryid||(p.L.queryid=new BD)}; cD=function(p){return p==="gelDebuggingEvent"}; rIe=function(p,a,l){var y=new cIo(l);p&&(y.S=!0,y.G=.1);l.Cz("html5_media_time_weight")&&(y.S=!1);a&&(y.U=a/8);y.j=rV()>=480;return y}; g.K8=function(p){var a=g.o4("yt.logging.errors.log");a?a(p,"ERROR",void 0,void 0,void 0,void 0,void 0):(a=g.ZM("ERRORS",[]),a.push([p,"ERROR",void 0,void 0,void 0,void 0,void 0]),D_("ERRORS",a));w4v(p)}; wV=function(p){return new g.BG(function(a,l){l(p)})}; Pfh=function(p,a){return $4f(function(l){return l.publicName===p&&l.userIdentifier!==void 0},a)}; LfF=function(p,a){return(p=o1o(p,a*1E3))?p.durationMs/1E3:0}; Rh=function(p){return $N(p)&&!g.PD(p)}; sZ=function(){LT.apply(this,arguments);this.hg={Ce:function(){return[]}}}; X4E=function(){this.j=0;this.Sl=Infinity;this.Z=!0;this.S=this.L=2;this.U=1;this.W=!1;this.G=10;this.Xu=!1;this.K=1;this.UO=!1}; h$r=function(p,a,l){var y=a.Ra,S=a.getMetadata(),n=JZv(p,!0);p=x4o(p,S,n,l+y.getName());l=n1E(n,y.S,!1);Ffr(l,S["X-Goog-Encode-Response-If-Executable"]==="base64");a=y.L(a.jU);n.send(p,"POST",a);return l}; xN=function(p,a){if(a==0)return p.L;if(a==1)return p.S;var l=Xj(p.L,p.U,a),y=Xj(p.U,p.j,a);p=Xj(p.j,p.S,a);l=Xj(l,y,a);y=Xj(y,p,a);return Xj(l,y,a)}; g.E8=function(p){return new Fj({trackingParams:p})}; T8O=function(){var p=this;this.proc_exit=function(){}; this.fd_write=function(a,l,y){if(!p.exports)return 1;a=new Uint32Array(p.exports.memory.buffer,l,y*2);l=[];for(var S=0;S>>=1)if(a&1&&p.QZ[l*2]!==0)return 0;if(p.QZ[18]!==0||p.QZ[20]!==0||p.QZ[26]!==0)return 1;for(l=32;l<256;l++)if(p.QZ[l*2]!==0)return 1;return 0}; vD=function(p,a){var l=vDe(p,CT(p));!isNaN(p.j)&&a&&(l.Sl=p.j);return l}; eOv=function(p,a,l,y,S,n){y=y===void 0?[]:y;var V=KT(p.S.get(),a);if(V){var z=p.dG.get().h5(a,l),d=eq(p,bD(V),V,S,n);y.forEach(function(G,B){G.baseUrl&&(p.U.send(G.baseUrl,d,z,G.attributionSrcMode),G.serializedAdPingMetadata&&p.Tn.xY("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,V,new KfM(G,B),void 0,void 0,V.adLayoutLoggingData))})}else hF("Trying to track from an unknown layout.",void 0,void 0,{layoutId:a, trackingType:l})}; IE=function(p){p.Cx="rendering_start_requested";p.cL(-1)}; g.mw=function(p,a,l,y,S,n,V,z,d,G,B,c){p=p.charAt(0)+p.substring(1).toLowerCase();l=l.charAt(0)+l.substring(1).toLowerCase();if(a==="0"||a==="-1")a=null;if(y==="0"||y==="-1")y=null;var r=B.C(),w=r.userDisplayName&&g.iT(r);g.X.call(this,{X:"div",A9:["ytp-button","ytp-sb"],N:[{X:"div",T:"ytp-sb-subscribe",V:w?{title:B.C().D("player_tooltip_data_title_killswitch")?g.ug("Suscribirse como $USER_NAME",{USER_NAME:r.userDisplayName}):"","data-tooltip-title":g.ug("Suscribirse como $USER_NAME",{USER_NAME:r.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":RE(r),"data-tooltip-opaque":String(g.wW(r)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},N:[{X:"div",T:"ytp-sb-text",N:[{X:"div",T:"ytp-sb-icon"},p]},a?{X:"div",T:"ytp-sb-count",yY:a}:""]},{X:"div",T:"ytp-sb-unsubscribe",V:w?{title:B.D("player_tooltip_data_title_killswitch")?g.ug("Te has suscrito como $USER_NAME",{USER_NAME:r.userDisplayName}):"","data-tooltip-title":g.ug("Te has suscrito como $USER_NAME",{USER_NAME:r.userDisplayName}), "aria-label":"Anular suscripci\u00f3n al canal","data-tooltip-image":RE(r),"data-tooltip-opaque":String(g.wW(r)),tabindex:"0",role:"button"}:{"aria-label":"Anular suscripci\u00f3n al canal"},N:[{X:"div",T:"ytp-sb-text",N:[{X:"div",T:"ytp-sb-icon"},l]},y?{X:"div",T:"ytp-sb-count",yY:y}:""]}],V:{"aria-live":"polite"}});var P=this;this.channelId=V;this.B=B;this.U=c;var F=this.d7("ytp-sb-subscribe"),v=this.d7("ytp-sb-unsubscribe");n&&g.uD(this.element,"ytp-sb-classic");if(S){z?this.L():this.S();var I= function(){var O=P.channelId;if(d||G){var m=B.getVideoData();O8(B.eE(),m.unsubscribeCommand,{feature:d});B.xv("UNSUBSCRIBE",O)}F.focus();F.removeAttribute("aria-hidden");v.setAttribute("aria-hidden","true")},b=function(){if(r.w7){var O=P.channelId; if(d||G){var m={c:O};var H;g.EQ.isInitialized()&&(H=j4E(m));m=H||"";if(H=B.getVideoData())if(H=H.subscribeCommand){var Y=B.eE();Y?(O8(Y,H,{botguardResponse:m,feature:d}),B.xv("SUBSCRIBE",O)):g.iO(Error("No innertube service available when updating subscriptions."))}else g.iO(Error("No subscribe command in videoData."));else g.iO(Error("No video data available when updating subscription."))}v.focus();v.removeAttribute("aria-hidden");F.setAttribute("aria-hidden","true")}else kN(g.Mk(P.B.C()),"sb_button", P.j)}; this.J(F,"click",b);this.J(v,"click",I);this.J(F,"keypress",function(O){O.keyCode===13&&b(O)}); this.J(v,"keypress",function(O){O.keyCode===13&&I(O)}); this.J(B,"SUBSCRIBE",this.L);this.J(B,"UNSUBSCRIBE",this.S);this.U&&w&&(bhe(B),OC(B,F,this),OC(B,v,this))}else g.uD(F,"ytp-sb-disabled"),g.uD(v,"ytp-sb-disabled")}; ROe=function(p,a){var l=globalThis.sessionStorage.getItem(p);if(!l)return["m"];try{var y=tY(l);I_M(y,a)}catch(S){return globalThis.sessionStorage.removeItem(p),["c"]}for(a=4;a<7&&y[a]===0;)a++;for(l=0;l=l?(globalThis.sessionStorage.removeItem(p),["e"]):["a",new Uint8Array(y.buffer,a+4)]}; ukO=function(){var p=Error();p.name="SecurityError";throw p;}; k1Z=function(p,a,l,y){a={Xf:[],vU:a};p=g.t(p);for(var S=p.next();!S.done;S=p.next())if((S=S.value)&&S.renderer!=null){var n=S.renderer;if(!l.B.C().D("html5_enable_vod_lasr_with_notify_pacf")){var V=void 0,z=void 0,d=void 0,G=void 0,B=y;g.T((G=n.sandwichedLinearAdRenderer)==null?void 0:G.adVideoStart,WD)?(V=g.T((d=n.sandwichedLinearAdRenderer)==null?void 0:d.adVideoStart,WD),V=Ohv(V,B),g.HD(n.sandwichedLinearAdRenderer.adVideoStart,WD,V)):g.T((z=n.linearAdSequenceRenderer)==null?void 0:z.adStart,WD)&& (d=g.T((V=n.linearAdSequenceRenderer)==null?void 0:V.adStart,WD),V=Ohv(d,B),g.HD(n.linearAdSequenceRenderer.adStart,WD,V))}a.Xf.push(S)}return a}; iD=function(p){var a=DP(p),l=DP(p);p=(l>>31)*2+1;var y=l>>>20&2047;a=4294967296*(l&1048575)+a;return y==2047?a?NaN:p*Infinity:y==0?p*4.9E-324*a:p*Math.pow(2,y-1075)*(a+4503599627370496)}; ux=function(p,a,l,y){var S,n,V=l.hM;p[a]=function(z,d,G){return V(z,d,G,n||(n=Ch(Ib,Rb,ux,y).fG),S||(S=Mvr(y)))}}; Rz=function(p,a){this.breakDurationMs=p;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=a||""}; T2=function(p){return window.Int32Array?new Int32Array(p):Array(p)}; g.RM=function(p,a,l){return g.Nk(p,[a],{mode:"readwrite",Gn:!0,commit:s8()},function(y){return g.U8(y.objectStore(a),l)})}; m4E=function(p,a,l,y){l=l===void 0?!0:l;var S;return g.R(function(n){if(n.L==1)return g.u(n,IM(a),2);S=n.S;return n.return(g.Nk(S,["LogsRequestsStore"],{mode:"readwrite",Gn:!0},function(V){var z=V.objectStore("LogsRequestsStore");return z.get(p).then(function(d){return d?(d.status="NEW",l&&(d.sendCount+=1),y!==void 0&&(d.options.compress=y),g.U8(z,d).then(function(){return d})):g.Qn.resolve(void 0)})}))})}; g.Qn=function(p){function a(S){if(y.state.status==="PENDING"){y.state={status:"FULFILLED",value:S};S=g.t(y.L);for(var n=S.next();!n.done;n=S.next())n=n.value,n()}} function l(S){if(y.state.status==="PENDING"){y.state={status:"REJECTED",reason:S};S=g.t(y.S);for(var n=S.next();!n.done;n=S.next())n=n.value,n()}} var y=this;this.state={status:"PENDING"};this.L=[];this.S=[];p=p.L;try{p(a,l)}catch(S){l(S)}}; hY=function(p){QH.call(this,p);this.events=new g.hm(p);g.E(this,this.events);Sa(p,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Sa(p,"setCreatorEndscreenHideButton",this.L.bind(this))}; AY=function(p,a,l){this.client=p;this.RE=a;this.L=l}; tvZ=function(p,a){return p.G.has(a)?void 0:p.S.get(a)}; YN=function(p,a,l,y,S){g.gV.call(this);this.S=p;this.W=a;this.G=l;this.j=y;this.K=Array.isArray(S)?S:[S]}; jhM=function(p){return p.B.C().experiments.Cz("html5_load_empty_player_in_media_break_sub_lra")}; g.T=function(p,a){if(p)return p[a.name]}; dp=function(p){this.NO=Dm(p)}; Wfr=function(p){var a,l,y,S;return!!((a=p.Sa)==null?0:(l=a.title)==null?0:l.content)||!!((y=p.Sa)==null?0:(S=y.bodyText)==null?0:S.content)}; HhM=function(p){return CA[Z[5]](this,6,p)}; D4Z=function(p){QH.call(this,p);var a=this;p.addEventListener("settingsMenuInitialized",function(){a.menuItem||(a.menuItem=new qk(a.api),g.E(a,a.menuItem))}); p.addEventListener("videodatachange",function(l,y){l=a.api.getPresentingPlayerType()===2;var S;(S=a.menuItem)==null||S.Kx(!y.isLivePlayback&&!l)})}; TrM=function(p){return p?p.dataset?p.dataset[ihr()]:p.getAttribute("data-loaded"):null}; NrO=function(p,a,l,y,S,n,V,z,d,G){this.X7=p;this.sO=a;this.uT=l;this.j=y;this.dG=S;this.S=n;this.U=V;this.uM=z;this.EO=d;this.L=G}; shE=function(p){p.Sl=p.W.length?gf(p.W,function(a){return a.KU()}):!1}; U4F=function(p){var a=new JY;fT(p,function(l,y,S){a[y]=Vb(S)}); a.n3=p.n3;return a}; HXh=function(p){this.offset=0;this.data=new DataView(new ArrayBuffer(p))}; QhM=function(p){var a=g.dD.CSSStyleDeclaration;return a&&a.prototype&&a.prototype[p]||null}; abr=function(p,a,l){if(p.policy.Y$&&p.policy.S)return!(p.S===1||p.S===2||!p.policy.TO&&p.S===3&&l>=p.j);if(p.S===1||p.S===2)return!1;if(p.S!==0&&a===p.audioTrack){if(p.policy.S)return hOA(p.videoTrack,l)||hOA(p.videoTrack,l+1);p=pm(p.videoTrack);if(l>(p?p.Rc:-1))return!1}return!0}; gDF=function(p,a){var l=0;l=0;for(var y={};l0}; qnZ=function(p,a,l,y){if(Math.random()<(y||p.L))try{if(l instanceof yq)var S=l;else S=new yq,S4(l,function(V,z){var d=S,G=d.j++;V=oe(z,V);d.L.push(G);d.S[G]=V}); var n=S.RX(p.S,"pagead2.googlesyndication.com","/pagead/gen_204?id="+a+"&");n&&(CO(),rPO(n))}catch(V){}}; Vq=function(p){nm.call(this,p,!1);var a=this;this.suggestedActions={};this.element.setAttribute("data-overlay-order","7");this.J(this.B,"videodatachange",this.onVideoDataChange);this.J(this.B,g.I4("suggested_action_button_visible"),function(l){l=l.id;a.text=l;JIq(a);a.onClickCommand=a.suggestedActions[l];a.enabled=!0;a.JN()}); this.J(this.B,g.c4("suggested_action_button_visible"),function(l){a.enabled=!1;a.JN();a.B.removeCueRange(l.id)})}; p2o=function(p){if(p.dD&&p.ma){var a=Zc(p.sC,"od")==1,l=TJ().L,y=p.ma,S=p.r$?p.r$.getName():"ns",n=p.aS,V=new g.N6(oU(l),l.getHeight());l=p.dg();p={CGm:S,aS:n,ogv:V,dg:l,aX:p.D1.aX,KNz:a};if(a=y.S){a.yn();S=a.Sl;n=S.j.L;var z=V=null;S.G!=null&&n&&(V=S.U,V=new g.U1(V.left-n.left,V.top-n.top),z=new g.N6(n.right-n.left,n.bottom-n.top));S=l?Math.max(S.L,S.W):S.L;l={CGm:a.getName(),aS:V,ogv:z,dg:l,KNz:!1,aX:S}}else l=null;l&&f_F(y,p,l)}}; zw=function(p,a){g.X.call(this,{X:"button",A9:["ytp-button","ytp-cards-button"],V:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.wW(p.C()))},N:[{X:"span",T:"ytp-cards-button-icon-default",N:[{X:"div",T:"ytp-cards-button-icon",N:[p.C().D("player_new_info_card_format")?azr():{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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"}}]}]}, {X:"div",T:"ytp-cards-button-title",yY:"Informaci\u00f3n"}]},{X:"span",T:"ytp-cards-button-icon-shopping",N:[{X:"div",T:"ytp-cards-button-icon",N:[{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",T:"ytp-svg-shadow",V:{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"}},{X:"path",T:"ytp-svg-fill",V:{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"}},{X:"path",T:"ytp-svg-shadow-fill",V:{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"}}]}]},{X:"div", T:"ytp-cards-button-title",yY:"Shopping"}]}]});this.B=p;this.S=a;this.L=null;this.fade=new g.Gq(this,250,!0,100);g.E(this,this.fade);g.JB(this.S,"ytp-show-cards-title",g.wW(p.C()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.ZJ(!0)}; lzq=function(p,a,l){function y(){var n=S.endTimeMs-Date.now();n<=l?S.Qe(0):setTimeout(y,Math.min(n,a))} var S=this;this.endTimeMs=Date.now()+p;this.promise=new Promise(function(n){S.Qe=n}); y()}; yfA=function(p,a){return a.priority-p.priority}; S9q=function(p){var a=Number(getComputedStyle(p.j).opacity),l;(l=p.U)==null||l.cancel();p.U=void 0;return a}; Gw=function(p){dt.call(this,"audio_measurable",p)}; k9=function(p,a){g.B8(p.L,"width",a)}; g.ci=function(){try{return g.Bi(),!0}catch(p){return!1}}; oHE=function(p,a,l){l=nHF(p,l);var y=a.getElementsByTagName("path")[0],S=y.getAttribute("d");if(y.getAttribute("id")){var n=vs();a=a.getElementsByTagName("use");for(var V=0;V.4?-1:1;return(a==0?null:a)==-1?"rtl":"ltr"}; GE=function(){g.X.call(this,{X:"div",T:"ytp-fine-scrubbing-chapter-title",N:[{X:"div",T:"ytp-fine-scrubbing-chapter-title-content",yY:"{{chapterTitle}}"}]})}; RU=function(p,a){g.IU.call(this,p);this.nh=a;this.S=new g.hm(this);this.K=new g.l_(this.FOz,1E3,this);this.Z=this.OC=null;g.E(this,this.S);g.E(this,this.K);a=this.B.C();p.createClientVe(this.element,this,28656);g.uD(this.element,"ytp-contextmenu");this.B.C().experiments.Cz("delhi_modern_web_player")&&g.Z0(a)&&g.uD(this.element,"ytp-delhi-modern-contextmenu");LLh(this);this.hide()}; jrh=function(p){p.bM.Sl=(0,g.Ek)();p=uz(p);p.S=(0,g.Ek)();p.started+=1}; kA=function(p){var a={},l=g.OL(p.L,function(y){return y.L}); g.Re(l,function(y,S){y=p.U[S]!==void 0?String(p.U[S]):y.L&&y.S!==null?String(y.S):"";y.length>0&&(a[S]=y)},p); return a}; ihr=function(){return X2v.loaded||(X2v.loaded="loaded".replace(/\-([a-z])/g,function(p,a){return a.toUpperCase()}))}; M5=function(p){QH.call(this,p);var a=this;this.loaded=!1;this.overlay=null;this.events=new g.hm(p);g.E(this,this.events);this.L=new g.hm(p);g.E(this,this.L);this.events.J(p,"modulesCreated",function(){a.oD()&&a.load()}); this.events.J(p,"modulesDestroyed",function(l){var y=!0;switch(l){case 2:case 3:y=!1;break;case 4:y=a.api.getPresentingPlayerType()===1}y&&a.unload()})}; FL$=function(p){p.rP.style.removeProperty("height");for(var a=g.t(Object.keys(p.OO)),l=a.next();!l.done;l=a.next())x8o(p,l.value);m1(p);th(p,p.UO,p.eb)}; EHO=function(p,a){p=p.K;VZ&&(p+=a-Z2);return p}; vHq=function(p){p.Pf("removeEventListener",p.S.Fq.AFMA_LIDAR,CgA);p.w7=!1}; j4=function(){var p;return(p=g.zv("yt-player-performance-cap-active-set"))!=null?p:[]}; Wi=function(p){return p.B.C().experiments.Cz("html5_load_ads_instead_of_cue")}; Hi=function(p){this.Sl=null;this.G=[];this.j="";this.Xu=[];this.U=this.S=0;this.K=!1;this.Z=0;this.w7=/[\\"]/g;this.L=this.W=0;this.UO=!(!p||!p.rY)}; ewA=function(){return typeof Worker==="function"&&KLE()?!0:!1}; bPr=function(p,a){var l=a.params||{};p={urlParams:{a:"logerror",t:"jserror",type:a.name,msg:a.message.substr(0,250),line:a.lineNumber,level:p,"client.name":l.name},postParams:{url:g.ZM("PAGE_NAME",window.location.href),file:a.fileName},method:"POST"};l.version&&(p["client.version"]=l.version);if(p.postParams){a.stack&&(p.postParams.stack=a.stack);a=g.t(Object.keys(l));for(var y=a.next();!y.done;y=a.next())y=y.value,p.postParams["client."+y]=l[y];if(l=g.ZM("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(a= g.t(Object.keys(l)),y=a.next();!y.done;y=a.next())y=y.value,p.postParams[y]=l[y];(l=g.ZM("LAVA_VERSION"))&&(p.postParams["lava.version"]=l);l=g.ZM("SERVER_NAME");a=g.ZM("SERVER_VERSION");l&&a&&(p.postParams["server.name"]=l,p.postParams["server.version"]=a)}g.lE(g.ZM("ECATCHER_REPORT_HOST","")+"/error_204",p)}; qE=function(p,a){return new g.Qn(new Dc(function(l,y){function S(){var n=p?a(p):null;n?n.then(function(V){p=V;S()},y):l()} S()}))}; Zi=function(p,a){var l=l===void 0?!1:l;qp(a);(l||p.Y.ao())&&p.publish("ctmp","drmlog",a)}; Rwf=function(){var p=iz;this.L=Izq;this.isRepeated=0;this.S=Kv;this.defaultValue=void 0;this.U=p.messageId!=null?Vm:void 0}; N5=function(p,a){g.h(p.playerState,128)||(p.ju(Tw(p.playerState,1028,9)),p.jl("dompaused",{r:a}),p.publish("onAutoplayBlocked"))}; HPq=function(p){var a=a===void 0?!1:a;var l=l===void 0?!1:l;var y=(0,g.Ek)(),S={startTime:y,ticks:{},infos:{}},n=a?g.o4("yt.logging.gzipForFetch",!1):!0;if(sL&&n){if(!p.body)return p;try{var V=l?p.body:typeof p.body==="string"?p.body:JSON.stringify(p.body);n=V;if(!l&&typeof V==="string"){var z=ugM(V);if(z!=null&&(z>OPh||z=tBv)if(Qq++,g.oO("abandon_compression_after_N_slow_zips")||g.oO("abandon_compression_after_N_slow_zips_lr")){a=Qq/UL;var G=jeF/g.hh("compression_disable_point");UL>0&&UL%g.hh("compression_disable_point")===0&&a>=G&&(sL=!1)}else sL=!1;WLv(S)}}p.headers=Object.assign({},{"Content-Encoding":"gzip"},p.headers||{});p.body=n;return p}catch(B){return FU(B),p}}else return p}; Ah=function(p){return p.tagName=="A"&&p.hasAttribute("href")||p.tagName=="INPUT"||p.tagName=="TEXTAREA"||p.tagName=="SELECT"||p.tagName=="BUTTON"?!p.disabled&&(!p.hasAttribute("tabindex")||NDr(p)):p.hasAttribute("tabindex")&&NDr(p)}; Hg=function(p,a,l,y){return gt(p,a,XN(l),"",y)}; g.iPr=function(p){p.cursor.continue(void 0);return D8h(p.request)}; TY=function(){this.L=new Map}; TMr=function(p,a){p.network=a;return p}; JU=function(p,a){this.S=p>>>0;this.L=a>>>0}; q5=function(p,a){var l=tx(a);if(p.S[l])return p.S[l];var y=Object.keys(p.store)||[];if(y.length<=1&&tx(a)===y[0])return y;for(var S=[],n=0;n0}; Q6=function(p){p=p[pe];return p instanceof aP?p:null}; y0=function(p,a){var l;if((l=p.api.getVideoData())==null?0:l.mutedAutoplay){var y,S;if((y=a.target)==null?0:(S=y.className)==null?0:S.includes("ytp-info-panel"))return!1}return g.lX(a)&&p.api.isMutedByMutedAutoplay()?(p.api.unMute(),p.api.getPresentingPlayerType()===2&&p.api.playVideo(),a=p.api.getPlayerStateObject(),!g.h(a,4)||g.h(a,8)||g.h(a,2)||p.It(),!0):!1}; Sp=function(p){var a=g.hf(p.W);g.Bf(a,function(l){l.fd(p.L)}); p.L!=p||i7r(p)}; dk=function(p,a,l,y,S){S=S===void 0?!1:S;if(p.policy.cI)return Math.ceil(p.policy.cI*a);p.policy.NJ&&(y=Math.abs(y));y/=p.playbackRate;var n=1/rf(p.s6);l=Math.max(.9*(y-3),zz(p.s6)+p.s6.S.L*n)/n*.8/(a+l);l=Math.min(l,y);p.policy.Co>0&&S&&(l=Math.max(l,p.policy.Co));return see(p,l,a)}; Gz=function(p){var a;if(!(a=!p.L)){a=p.L;var l=window.getComputedStyle(a);a=l.display==="none"||l.visibility==="hidden"||a.getAttribute("aria-hidden")==="true"}if(a||p.B.isMinimized())p.Kx(!1);else if(a=g.Wd(p.L),a.width&&a.height){p.B.SP(p.element,p.L);var y=p.B.Fu().getPlayerSize().height;l=g.Wd(p.d7("ytp-promotooltip-container")).height;p.U?p.element.style.top=y-l-a.height-12+"px":p.K||(y=p.B.uU().height-l-a.height-12,p.element.style.top=y+"px");y=p.d7("ytp-promotooltip-pointer");var S=g.Hd(p.L, p.B.getRootNode()),n=Number(p.element.style.left.replace(/[^\d\.]/g,""));p=p.B.isFullscreen()?18:12;y.style.left=S.x-n+a.width/2-p+"px";y.style.top=l+"px"}else p.Kx(!1)}; g.Bp=function(p,a){return{itag:+p.itag,lmt:a?0:p.lastModified,xtags:p.L||""}}; cp=function(p,a,l,y,S,n,V){p=[new rG(p.L,a)];return{slotId:a,slotType:l,slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:p,slotExpirationTriggers:S,iT:"core",clientMetadata:new Lc([new i8(V({slotId:a,slotType:l,slotPhysicalPosition:1,iT:"core",slotEntryTrigger:y,slotFulfillmentTriggers:p,slotExpirationTriggers:S}))]),adSlotLoggingData:n}}; jF=function(p){if(p<0){Wf(0-p);var a=g.t(rk(tm,jN));p=a.next().value;a=a.next().value;tm=p>>>0;jN=a>>>0}else Wf(p)}; wk=function(p){return(p==null?void 0:p.layoutId)!=null&&(p==null?void 0:p.layoutType)!=null}; U8E=function(p){return p}; Qef=function(){var p=document;if("visibilityState"in p)return p.visibilityState;var a=$Q+"VisibilityState";if(a in p)return p[a]}; Pp=function(p){var a=ck();p=a?a.createScriptURL(p):p;return new wf(p)}; hwM=function(p){QH.call(this,p);var a=this;Sa(this.api,"getAudioTrackState",function(){return a.api.v1(0)})}; Xf=function(p){if(Le&&p.Lx)return!1;var a=g.T9.auto;return p.S===a&&p.L===a}; Afr=function(p){if(p.sM()!==xQ.contentCpn){var a={};a=(a.c=xQ.contentCpn,a);p.B.jl("ccm",a)}}; kQ=function(p,a,l){if(p.beforeContentVideoIdStartedTrigger)p=p.beforeContentVideoIdStartedTrigger?new oJ(Ff,a,p.id):new W("Not able to create BeforeContentVideoIdStartedTrigger");else{if(p.layoutIdExitedTrigger){var y;a=(y=p.layoutIdExitedTrigger)!=null&&y.triggeringLayoutId?new FJ(Ff,p.layoutIdExitedTrigger.triggeringLayoutId,p.id):new W("Not able to create LayoutIdExitedTrigger")}else{if(p.layoutExitedForReasonTrigger){var S,n;((S=p.layoutExitedForReasonTrigger)==null?0:S.triggeringLayoutId)&&((n= p.layoutExitedForReasonTrigger)==null?0:n.layoutExitReason)?(a=gHA(p.layoutExitedForReasonTrigger.layoutExitReason),p=a instanceof W?a:new Eb(Ff,p.layoutExitedForReasonTrigger.triggeringLayoutId,[a],p.id)):p=new W("Not able to create LayoutIdExitedForReasonTrigger")}else{if(p.onLayoutSelfExitRequestedTrigger){var V;a=(V=p.onLayoutSelfExitRequestedTrigger)!=null&&V.triggeringLayoutId?new Ce(Ff,p.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,p.id):new W("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(p.onNewPlaybackAfterContentVideoIdTrigger)p= p.onNewPlaybackAfterContentVideoIdTrigger?new wG(Ff,a,p.id):new W("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(p.skipRequestedTrigger){var z;a=(z=p.skipRequestedTrigger)!=null&&z.triggeringLayoutId?new Ca(Ff,p.skipRequestedTrigger.triggeringLayoutId,p.id):new W("Not able to create SkipRequestedTrigger")}else if(p.slotIdEnteredTrigger){var d;a=(d=p.slotIdEnteredTrigger)!=null&&d.triggeringSlotId?new D6(Ff,p.slotIdEnteredTrigger.triggeringSlotId,p.id):new W("Not able to create SlotIdEnteredTrigger")}else if(p.slotIdExitedTrigger){var G; a=(G=p.slotIdExitedTrigger)!=null&&G.triggeringSlotId?new $1(Ff,p.slotIdExitedTrigger.triggeringSlotId,p.id):new W("Not able to create SkipRequestedTrigger")}else if(p.surveySubmittedTrigger){var B;a=(B=p.surveySubmittedTrigger)!=null&&B.triggeringLayoutId?new vk(Ff,p.surveySubmittedTrigger.triggeringLayoutId,p.id):new W("Not able to create SurveySubmittedTrigger")}else{if(p.mediaResumedTrigger)p=p.mediaResumedTrigger&&p.id?new Y9r(p.id):new W("Not able to create MediaResumedTrigger");else{if(p.closeRequestedTrigger){var c; a=(c=p.closeRequestedTrigger)!=null&&c.triggeringLayoutId?new vp(Ff,p.closeRequestedTrigger.triggeringLayoutId,p.id):new W("Not able to create CloseRequestedTrigger")}else if(p.slotIdScheduledTrigger){var r;a=(r=p.slotIdScheduledTrigger)!=null&&r.triggeringSlotId?new rG(Ff,p.slotIdScheduledTrigger.triggeringSlotId,p.id):new W("Not able to create SlotIdScheduledTrigger")}else{if(p.mediaTimeRangeTrigger){var w;y=Number((w=p.mediaTimeRangeTrigger)==null?void 0:w.offsetStartMilliseconds);var P;V=Number((P= p.mediaTimeRangeTrigger)==null?void 0:P.offsetEndMilliseconds);isFinite(y)&&isFinite(V)?(P=V,P===-1&&(P=l),l=y>P?new W("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:y,offsetEndMs:P},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",P===l&&y-500<=P):new rM(y,P),p=l instanceof W?l:new Ke(Ff,a,l,!1,p.id)):p=new W("Not able to create MediaTimeRangeTrigger")}else if(p.contentVideoIdEndedTrigger)p=p.contentVideoIdEndedTrigger?new uO(Ff,a,!1,p.id):new W("Not able to create ContentVideoIdEndedTrigger"); else{if(p.layoutIdEnteredTrigger){var F;a=(F=p.layoutIdEnteredTrigger)!=null&&F.triggeringLayoutId?new Hv(Ff,p.layoutIdEnteredTrigger.triggeringLayoutId,p.id):new W("Not able to create LayoutIdEnteredTrigger")}else if(p.timeRelativeToLayoutEnterTrigger){var v;a=(v=p.timeRelativeToLayoutEnterTrigger)!=null&&v.triggeringLayoutId?new ep(Ff,Number(p.timeRelativeToLayoutEnterTrigger.durationMs),p.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,p.id):new W("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(p.onDifferentLayoutIdEnteredTrigger){var I; a=(I=p.onDifferentLayoutIdEnteredTrigger)!=null&&I.triggeringLayoutId&&p.onDifferentLayoutIdEnteredTrigger.slotType&&p.onDifferentLayoutIdEnteredTrigger.layoutType?new bX(Ff,p.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,p.onDifferentLayoutIdEnteredTrigger.slotType,p.onDifferentLayoutIdEnteredTrigger.layoutType,p.id):new W("Not able to create CloseRequestedTrigger")}else{if(p.liveStreamBreakStartedTrigger)p=p.liveStreamBreakStartedTrigger&&p.id?new IP(Ff,p.id):new W("Not able to create LiveStreamBreakStartedTrigger"); else if(p.liveStreamBreakEndedTrigger)p=p.liveStreamBreakEndedTrigger&&p.id?new RP(Ff,p.id):new W("Not able to create LiveStreamBreakEndedTrigger");else{if(p.liveStreamBreakScheduledDurationMatchedTrigger){var b;a=(b=p.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&b.breakDurationMs?new Rz(Number(p.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,p.id):new W("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(p.liveStreamBreakScheduledDurationNotMatchedTrigger){var O; a=(O=p.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&O.breakDurationMs?new uX(Number(p.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,p.id):new W("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(p.newSlotScheduledWithBreakDurationTrigger){var m;a=(m=p.newSlotScheduledWithBreakDurationTrigger)!=null&&m.breakDurationMs?new Ob(Number(p.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,p.id):new W("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else a= p.prefetchCacheExpiredTrigger?new $H(Ff,p.id):new W("Not able to convert an AdsControlflowTrigger.");p=a}a=p}p=a}a=p}p=a}a=p}p=a}a=p}p=a}a=p}p=a}return p}; q9e=function(p,a,l,y,S){try{if(p.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var n=l(p.state.reason);n instanceof g.Qn?MY(p,a,n,y,S):y(n)}catch(V){S(V)}}; tM=function(p,a){(p.loader=a)?mM(p,!0):vG(p)}; Jfq=function(p,a){if(a!==p.icon){switch(a){case 3:var l=jp();break;case 1:l=jA();break;case 2:l={X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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:l={X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path", yL:!0,V:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}p.updateValue("icon",l);p.icon=a}}; iX=function(p,a,l,y){g.D.call(this);this.policy=p;this.S=a;this.TR=l;this.Kz=y;this.w7=this.r7=0;this.Xu=-1;this.Bs=this.W=0;this.UO=!1;this.interruptions=[];this.j=[{stamp:0,net:0,max:0}];this.Hs=this.G=(0,g.Ek)();this.Z=new Wp(4,1,.6,.4);this.QY=new Wp(4,1,.6,.4);this.K=new Wp(20,1,.5,.4);p.Xu?this.U=new Hp(p.L):p.S?this.U=new Dx(p.L):this.U=new Wp(p.L,20,.5,.4);this.t9=new Wp(5,1,.25);this.Sl=new Wp(30,1,.5);p=g.zv("yt-player-bandwidth")||{};a=this.policy.U;if(p.byterate>0)a=p.byterate,this.UO= !0;else{var S;l=(((S=navigator.connection)==null?void 0:S.downlink)||0)*64*1024;l>0&&(a=l,this.UO=!0)}this.U.P9(this.policy.G,a);p.delay>0&&this.Z.P9(1,Math.min(p.delay,2));p.stall>0&&this.K.P9(1,p.stall);p.init>0&&(this.Hs=Math.min(p.init,this.Hs));p.interruptions&&(this.j=this.j.concat(p.interruptions),this.j.length>16&&this.j.pop());this.Xu=(0,g.Ek)();this.policy.K>0&&(this.nz=new g.l_(this.OO,this.policy.K,this),g.E(this,this.nz),this.nz.start())}; fzr=function(p){if(!p.length)return[];p=(0,g.Tz)(p,function(l){return l!=null&&l.Va()}); for(var a=1;a-1)return a.apply(null,g.u0(l));try{return p.L=p.U.L.now(),a.apply(null,g.u0(l))}finally{p.j+=p.U.L.now()-p.L,p.L=-1,p.S+=1}}}; hM=function(p,a){return p==a?!0:p&&a?p.left==a.left&&p.width==a.width&&p.top==a.top&&p.height==a.height:!1}; AM=function(p,a,l,y){return typeof p.addEventListener==="function"?(p.addEventListener(a,l,sQ(y)),!0):!1}; lnA=function(p,a){p.L=a;p.element.classList.toggle(gk.NOTIFICATIONS_ENABLED,p.L);var l=p.api.getVideoData();l?(a=a?l.jz:l.Sz)?(p=p.api.eE())?O8(p,a):g.iO(Error("No innertube service available when updating notification preferences.")):g.iO(Error("No update preferences command available.")):g.iO(Error("No video data when updating notification preferences."))}; g.YQ=function(){return!!Yv(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; SOh=function(p,a,l){if(p.forEach&&typeof p.forEach=="function")p.forEach(a,l);else if(g.BA(p)||typeof p==="string")Array.prototype.forEach.call(p,a,l);else for(var y=hTr(p),S=ykv(p),n=S.length,V=0;V0?y[l]-y[l-1]:y[l]})}; Sh=function(p,a){var l=g.o4("yt.logging.transport.enableScrapingForTest"),y=lB("il_payload_scraping");y=(y!==void 0?String(y):"")==="enable_il_payload_scraping";if(!l)if(y)y$=[],g.M8("yt.logging.transport.enableScrapingForTest",!0),g.M8("yt.logging.transport.scrapedPayloadsForTesting",y$),g.M8("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.M8("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.M8("yt.logging.transport.scrapeClientEvent",!0);else return;l=g.o4("yt.logging.transport.scrapedPayloadsForTesting");y=g.o4("yt.logging.transport.payloadToScrape");a&&(a=a.payload,(a=g.o4("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(a)())&&l.push(a));a=g.o4("yt.logging.transport.scrapeClientEvent");if(y&&y.length>=1)for(var S=0;S1?a:"0"+a}).join("")}; cko=function(p){this.xhr=p}; $$h=function(p,a,l){var y={stack:[],error:void 0,hasError:!1};try{if(!a.nK)throw new V$(29,"SDF:notready");return M$(rko(y,new ZC(p.logger,0,p.state)),function(){return oC(p,a)},l)}catch(S){y.error=S,y.hasError=!0}finally{wsZ(y)}}; Pkr=function(p,a){p.attestationResponse&&zI(p).then(function(l){l=l||{};l.method="POST";l.postParams={atr:p.attestationResponse};p.QY?p.t9?dl().sendAndWrite(a,l):dl().sendThenWrite(a,l):g.lE(a,l)})}; LWh=function(p,a){a=a===void 0?!1:a;if(!p.mediaElement||p.mediaElement.w3()===0||p.mediaElement.hasError())return!1;var l=p.mediaElement.getCurrentTime()>0;return p.videoData.U&&p.videoData.U.L||p.videoData.isLivePlayback||!p.videoData.m7()?p.S>=0&&!a&&(a=p.mediaElement.SA(),a.length||!l)?GI(a,p.S-p.timestampOffset):l:l}; x$E=function(){var p=p7(BT);if(p.L!=null){var a=p.L;g.Bf(cT(),function(l){return Xsf(l,a)})}}; FWE=function(p){return p.L.flavor==="widevine"&&p.videoData.D("html5_drm_cpi_license_key")}; wl=function(p,a){var l=EPr(p.U,a.S);if(p.L.length>1){l=rl(p,a.U,!0);for(var y=0,S=0;S0&&(y+=p.L[S].width,y+=Mp(p));l=(p.L[l].startTime+(a.U-y)/p.L[l].width*((l===p.L.length-1?p.U.L*1E3:p.L[l+1].startTime)-p.L[l].startTime))/1E3||0}return l}; vPo=function(p){var a=CkF(p);if(a)return p.videoData.getAvailableAudioTracks().find(function(l){return l.Mc.getName()===a})}; eyo=function(p,a,l,y){var S=this;y=y===void 0?{}:y;this.policy=a;this.Wa=l;this.K=y;this.status=0;this.response=void 0;this.S=0;this.W=this.G=!1;this.errorMessage="";this.Sl=function(n){if(n)if(S.status=n.status,n.ok&&n.body&&S.status!==204)S.status=S.status||242,S.U=n.body.getReader(),S.Gm()?S.U.cancel().catch(function(){}):(S.responseHeaders=n.headers,S.Wa.T3(),KW$(S)); else S.onDone();else S.onError(Error("null_response"))}; this.Z=function(n){var V=(0,g.Ek)();S.Gm()||(n.done?(S.U=void 0,S.onDone()):(n=n.value,S.S+=n.length,S.L.append(n),KW$(S),S.Wa.yp(V,S.S)))}; this.onError=function(n){S.errorMessage=String(n);S.G=!0;S.onDone()}; this.L=new NN;this.j=window.AbortController?new AbortController:void 0;this.start(p)}; blE=function(p){var a="";g.Bf(p.childNodes,function(l){a+=l.nodeValue}); return a}; gv=function(p,a,l,y,S,n,V,z,d){d=d===void 0?!1:d;g.D.call(this);this.Wa=p;this.policy=a;this.G9=l;this.bM=y;this.timing=S;this.logger=n;this.j=V;this.ND=z;this.G=d;this.lastError=null;this.L=0;this.W=!1;this.U=0;this.S=new g.l_(this.NPv,this.policy.rP,this)}; g.PT=function(p){return Inr(p,function(){return g.$O(RyZ,p)>=0})}; L2=function(p,a,l,y,S,n){JF.call(this,p,{X:"div",T:"ytp-ad-action-interstitial",V:{tabindex:"0"},N:[{X:"div",T:"ytp-ad-action-interstitial-background-container"},{X:"div",T:"ytp-ad-action-interstitial-slot",N:[{X:"div",T:"ytp-ad-action-interstitial-instream-info"},{X:"div",T:"ytp-ad-action-interstitial-card",N:[{X:"div",T:"ytp-ad-action-interstitial-image-container"},{X:"div",T:"ytp-ad-action-interstitial-headline-container"},{X:"div",T:"ytp-ad-action-interstitial-description-container"},{X:"div", T:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",a,l,y);this.Xj=S;this.E7=n;this.navigationEndpoint=this.L=this.skipButton=this.S=this.actionButton=null;this.nz=this.d7("ytp-ad-action-interstitial-instream-info");this.Hs=this.d7("ytp-ad-action-interstitial-image-container");this.Z=new bE(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,"ytp-ad-action-interstitial-image");g.E(this,this.Z);this.Z.lT(this.Hs);this.QY=this.d7("ytp-ad-action-interstitial-headline-container"); this.W=new qh(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,"ytp-ad-action-interstitial-headline");g.E(this,this.W);this.W.lT(this.QY);this.Xu=this.d7("ytp-ad-action-interstitial-description-container");this.U=new qh(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,"ytp-ad-action-interstitial-description");g.E(this,this.U);this.U.lT(this.Xu);this.Ps=this.d7("ytp-ad-action-interstitial-background-container");this.r7=new bE(this.api,this.layoutId,this.interactionLoggingClientData, this.ZV,"ytp-ad-action-interstitial-background",!0);g.E(this,this.r7);this.r7.lT(this.Ps);this.Kz=this.d7("ytp-ad-action-interstitial-action-button-container");this.slot=this.d7("ytp-ad-action-interstitial-slot");this.IM=this.d7("ytp-ad-action-interstitial-card");this.j=new FM;g.E(this,this.j);this.hide()}; u4q=function(){return{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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"}}]}}; Ia=function(p,a,l){a==="data"?p.S.push(l):a==="metadata"?p.j.push(l):a==="status"?p.W.push(l):a==="end"?p.U.push(l):a==="error"&&p.L.push(l)}; OlM=function(p){switch(p){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}}; MoM=function(){this.L={};var p=LF();QK(this,p,document);var a=kXE();try{if("1"==a){for(var l=p.parent;l!=p.top;l=l.parent)QK(this,l,l.document);QK(this,p.top,p.top.document)}}catch(y){}}; m$r=function(p,a,l){if(!p.policy.W){p=a.L.index;var y=a.S.Rc;p.iW(y)||l&&l.Rc===y?(a.W=!p.iW(y),a.w7=!p.iW(y)):(a.W=!0,a.w7=!0)}}; Xh=function(p,a,l,y,S){fo.call(this,p,a,l,y,"survey-question-multi-select");this.Xu=S;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}; xO=function(p,a){var l,y;return(y=(l=p.U)!=null?l:a.priority)!=null?y:0}; ilZ=function(p){p.loading=!0;p.UU=!1;if(toE(p))g.jJE(p.videoId).then(function(y){var S;if((S=p.playerResponse)!=null&&S.streamingData){S=[];y=g.t(y);for(var n=y.next();!n.done;n=y.next())n=Object.assign({},n.value),n.signatureCipher="",S.push(n);S.length<2&&p.jl("offmlf",{len:S.length});S=WWv(p,S);Fh(p)&&Hlr(S,!1);EV(p,S);p.jl("dlr",{})}else p.jl("offsdm",{cotn:p.U8?p.U8.cotn:"0",cpn:p.clientPlaybackNonce})}).then(function(){p.X0()}); else{Zz(p.O6)||g.Mf(new g.kc("DASH MPD Origin invalid: ",p.O6));var a=p.O6,l=g.sW(p.Ws.experiments,"dash_manifest_version")||4;a=g.C2(a,{mpd_version:l});p.isLowLatencyLiveStream&&p.latencyClass!=="NORMAL"||(a=g.C2(a,{pacing:0}));D$v(a,p.Ws.experiments,p.isLivePlayback).then(function(y){p.Gm()||(EV(p,y,!0),kC("mrc",void 0,p.UO),p.X0())},function(y){p.Gm()||(p.loading=!1,p.publish("dataloaderror",new g.mm("manifest.net.retryexhausted",{backend:"manifest", rc:y.status},1)))}); kC("mrs",void 0,p.UO)}}; g.vT=function(p,a){g.Es(function(){g.Bf(a,function(l){TQM(void 0,p,l)})})()}; NQZ=function(p){var a=null;p.L!=null&&(a=[p.L.serviceEndpoint,p.L.navigationEndpoint].filter(function(l){return l!=null}),p.L.command&&(a=a.concat(p.L.command))); return a||[]}; sJO=function(p){LO();switch(a8(p)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; K2=function(p,a,l){return p.getCurrentTimeSec(a,l)}; U$$=function(p){return g.ZM("client-screen-nonce-store",{})[p===void 0?0:p]}; QJM=function(p,a,l){var y=p.getVideoData(),S=a.getVideoData();if(!y.C().supportsGaplessShorts())return{nq:"env"};if((!l.Sl||y.Sj&&!y.isAd()||S.Sj&&!S.isAd())&&(!l.S||y.Sj&&!y.isAd()||S.Sj)&&(!l.U||S.Sj&&!S.isAd()||y.Sj)&&(y.Sj||S.Sj))return{nq:"autoplay"};if(y.endSeconds>0)return{nq:"endcr"};if(!y.K)return{nq:"client"};if(!p.B9())return{nq:"no-empty"};p=eh(l,p,a,Infinity);return p!=null?{nq:p.msg}:null}; hyZ=function(p){return{dR:FW(p,3),Ey:FW(p,4),S6:FW(p,5),tac:bb(p,8),xa9:FW(p,10),u7:FW(p,12),Gl:FW(p,13),WK:FW(p,14),ge:FW(p,15),V_:FW(p,16)}}; IC=function(p,a,l){return p.parseFromString(Mh(a),l)}; g.X=function(p){g.RC.call(this,p);this.E6=!0;this.Sl=!1;this.listeners=[]}; qOf=function(p,a){if(!AkM(p,a)&&!p.S)return!1;a.details.sts="20354";if(gPF(p))return tF(a.severity)&&(a=Object.assign({e:a.errorCode},a.details),a=new g.mm("qoe.restart",a)),p.w$(a.errorCode,a.details),YOF(p),!0;(0,g.Ek)()-p.Ws.aM>6048E5&&ub(p,"signature");return!1}; fT=function(p,a){for(var l in p)!isNaN(l)&&a(p,+l,p[l])}; g.Mf=function(p){g.iO(p,"WARNING")}; Jkr=function(p){this.L=p}; g.OV=function(p){if(!p||typeof p!=="object")return p;if(typeof p.clone==="function")return p.clone();if(typeof Map!=="undefined"&&p instanceof Map)return new Map(p);if(typeof Set!=="undefined"&&p instanceof Set)return new Set(p);if(p instanceof Date)return new Date(p.getTime());var a=Array.isArray(p)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(p)||p instanceof DataView?{}:new p.constructor(p.length),l;for(l in p)a[l]=g.OV(p[l]);return a}; XMZ=function(p){this.pos=0;this.S=[];this.L=fno(p===void 0?4096:p);this.view=new DataView(this.L.buffer,this.L.byteOffset,this.L.byteLength)}; MV=function(p,a,l){GB(p,a,2);kO(p.L,l.length);ym(p,p.L.end());ym(p,l)}; tT=function(p,a){ma(p.zm,a,!p.S)}; pVM=function(){return{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}}; aiM=function(p,a,l){if(UM(47,p.L))return!1;var y=GF(l,ik(22,p.L));if(y.timedOut<1&&y.L<1)return!1;y=y.timedOut+y.L;p=gJ(p,a);l=GF(l,ik(22,p));return l.timedOut+l.L+0=0)return a;a=-y-1;return a>=p.L.length||p.L[a]>l?null:p.L[a]}; ovA=function(p){var a;p=p==null?void 0:(a=p.error)==null?void 0:a.code;return!(p!==400&&p!==415)}; zBA=function(p,a){a=Array.prototype.splice.call(p,a,1);Array.prototype.splice.call(p,0,0,a[0])}; V5=function(p,a){var l=d6v[a];if(!l){var y=jOZ(a);l=y;p.style[y]===void 0&&(y=(g.Hs?"Webkit":JT?"Moz":null)+efZ(y),p.style[y]!==void 0&&(l=y));d6v[a]=l}return l}; ix=function(p){return new f2(p)}; ay=function(p,a){return pW(p,a,function(l){return l.L})}; Gf$=function(p){return p.OI||p.uF}; Bfh=function(p){lq[p]&&(p=lq[p],g.Bf(p,function(a){yC[a]&&delete yC[a]}),p.length=0)}; cNq=function(p,a,l){p.Tn.L0("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",a,l,void 0);p=g.t(p.S);for(var y=p.next();!y.done;y=p.next())y.value.Lq(a,l)}; ST=function(p,a,l,y,S){this.jH=p;this.r9T=a;this.FTz=l;this.Mlu=y;this.func=S}; g.rNF=function(p){var a="";g.Re(p,function(l,y){a+=y;a+=":";a+=l;a+="\r\n"}); return a}; $6O=function(){var p=p===void 0?window.location.href:p;if(g.oO("kevlar_disable_theme_param"))return null;var a=zG(p);if(g.oO("enable_dark_theme_only_on_shorts")&&a!=null&&a.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var l=g.yn(p).theme;return wVE.get(l)||null}catch(y){}return null}; VC=function(p){if(p.L==null)throw Error("Storage mechanism: Storage unavailable");p.isAvailable()||nW(Error("Storage mechanism: Storage unavailable"))}; f2=function(p){this.key=p}; Zd=function(p){this.NO=Dm(p)}; oy=function(p){var a=p.state,l=a.pending;l>p.Ch&&(l=p.Ch);l!==0&&(ME.WC(p.output,a.lG,a.Pb,l,p.YC),p.YC+=l,a.Pb+=l,p.T6+=l,p.Ch-=l,a.pending-=l,a.pending===0&&(a.Pb=0))}; zg=function(p,a,l){a.startSecs+=isNaN(p.Z)?0:p.Z;p=p.MO;p.Bs.push(a);p.publish("cuepointsadded",l)}; dE=function(){var p=this;this.store={};this.L=0;this.S={};this.hg={NNO:function(){return p.L}}}; LPE=function(){Pie=Gg=BW=cW=null}; XVe=function(p,a,l,y){var S=a*2,n=l*2;return p[S]1)p.j=!0;if((S===void 0?0:S)||isNaN(p.S))p.S=a;if(p.L)a!==p.mediaTime&&(p.L=!1);else if(a>0&&p.mediaTime===a){S=1500;if(p.Y.D("html5_buffer_underrun_transition_fix")){S=g.sW(p.Y.experiments,"html5_min_playback_advance_for_steady_state_secs");var n=g.sW(p.Y.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");S=S>0&&n>0&&Math.abs(a-p.S)(y||!p.j?S:400)}p.mediaTime=a;p.U=l;return!1}; ON$=function(p,a,l,y,S){g.D.call(this);var n=this,V=tX(function(){return new jt(n.EO)}); g.E(this,V);var z=tX(function(){return new W3(V,n.EO)}); g.E(this,z);var d=tX(function(){return new H3}); g.E(this,d);y=tX(function(){return new Dq(p)}); g.E(this,y);var G=tX(function(){return new iE(V,z,n.EO)}); g.E(this,G);var B=tX(function(){return new TY}); g.E(this,B);this.uM=tX(function(){return new Nx(S)}); g.E(this,this.uM);this.lr=tX(function(){return new Nh(a)}); g.E(this,this.lr);this.gq=tX(function(){return new sU(a)}); g.E(this,this.gq);this.BZ=tX(function(){return new QI(a)}); g.E(this,this.BZ);this.VL=tX(function(){return new gp(a)}); g.E(this,this.VL);this.EO=tX(function(){return new YW(a)}); g.E(this,this.EO);var c=tX(function(){return new JX(n.EO)}); g.E(this,c);var r=tX(function(){return new fI(V,G,z,n.EO,c,null,null,null,null)}); g.E(this,r);this.ac=tX(function(){return new aK(a,B,n.EO)}); g.E(this,this.ac);var w=lv({ac:this.ac,EO:this.EO,UQ:c}),P=w.context,F=w.Pl;this.Tn=w.Tn;this.sO=tX(function(){return new yh(a,n.ac,n.EO)}); g.E(this,this.sO);this.dG=tX(function(){return new n$(n.sO,a,n.EO)}); g.E(this,this.dG);this.uT=tX(function(){return new Vh(a,d,n.dG,n.ac,n.Tn,n.EO,F)}); g.E(this,this.uT);this.g$=new db(y,r,l,this.EO,p,this.ac,this.sO,this.lr);g.E(this,this.g$);var v=new GA(a,this.g$,this.sO,this.ac);this.t$=tX(function(){return v}); this.OS=v;this.o9=new BQ(y,G,this.gq,this.t$,P);g.E(this,this.o9);this.By=new cQ(this.EO,y,G,r,this.ac,this.o9,l,this.BZ);g.E(this,this.By);this.Gp={bZ:new Map,RI:new Map,V9:new Map,Nt:new Map,fH:new Map};this.listeners=[];this.o_={By:this.By,lU:this.EO.get(),ZV:this.uM.get(),lZ:this.sO.get(),g$:this.g$,xk:V.get(),VE:null,hw:{tp:function(){}}, T_:d.get(),Y3:this.ac.get()}}; kfM=function(p){p=g.Ir(p);return p!==null?p.split(".").reverse():null}; kK=function(p){nm.call(this,p,!1,!0);this.Bs=[];this.va=[];this.element.setAttribute("data-overlay-order","9");this.K=!0;this.badge.element.classList.add("ytp-featured-product");this.QY=new g.X({X:"div",T:"ytp-featured-product-open-in-new"});g.E(this,this.QY);this.countdownTimer=new g.X({X:"text",T:"ytp-featured-product-countdown",yY:"{{content}}"});this.countdownTimer.hide();g.E(this,this.countdownTimer);this.S=new g.X({X:"div",T:"ytp-featured-product-trending",N:[{X:"div",T:"ytp-featured-product-trending-icon"}, {X:"text",T:"ytp-featured-product-trending-text",yY:"{{trendingOffer}}"}]});this.S.hide();g.E(this,this.S);this.overflowButton=new g.X({X:"button",A9:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.E(this,this.overflowButton);this.G=new g.X({X:"text",T:"ytp-featured-product-exclusive-countdown",yY:"{{content}}",V:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.E(this,this.G);this.W=new g.X({X:"div",T:"ytp-featured-product-exclusive-container", V:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},N:[{X:"div",T:"ytp-featured-product-exclusive-badge-container",N:[{X:"div",T:"ytp-featured-product-exclusive-badge",N:[{X:"text",T:"ytp-featured-product-exclusive-badge-text",yY:"{{exclusive}}",V:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.W.hide();g.E(this,this.W);this.banner=new g.X({X:"a",T:"ytp-featured-product-container",N:[{X:"div",T:"ytp-featured-product-thumbnail",N:[{X:"img",V:{src:"{{thumbnail}}"}},this.QY]},{X:"div", T:"ytp-featured-product-details",N:[{X:"text",T:"ytp-featured-product-title",yY:"{{title}}"},this.B.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",T:"ytp-featured-product-price-container",V:{"aria-label":"{{priceA11yText}}"},N:[{X:"text",T:"ytp-featured-product-price-when-promotion-text-enabled",yY:"{{price}}",V:{"aria-hidden":"true"}},{X:"text",T:"ytp-featured-product-promotion-text",yY:"{{promotionText}}",V:{"aria-hidden":"true"}}]}:{X:"div",V:{"aria-label":"{{priceA11yText}}"}, N:[{X:"text",T:"ytp-featured-product-price",yY:"{{price}}",V:{"aria-hidden":"true"}},{X:"text",T:"ytp-featured-product-sales-original-price",yY:"{{salesOriginalPrice}}",V:{"aria-hidden":"true"}},{X:"text",T:"ytp-featured-product-price-drop-reference-price",yY:"{{priceDropReferencePrice}}",V:{"aria-hidden":"true"}}]},this.B.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",T:"ytp-featured-product-when-promotion-text-enabled",N:[{X:"text",T:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", yY:"{{affiliateDisclaimer}}"},this.S,{X:"text",T:"ytp-featured-product-vendor-when-promotion-text-enabled",yY:"{{vendor}}"}]}:{X:"div",N:[{X:"text",T:"ytp-featured-product-affiliate-disclaimer",yY:"{{affiliateDisclaimer}}"},this.B.D("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.W:null,this.S,{X:"text",T:"ytp-featured-product-vendor",yY:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.E(this,this.banner);this.banner.lT(this.U.element);this.J(this.B,g.I4("featured_product"), this.voY);this.J(this.B,g.c4("featured_product"),this.B6);this.J(this.B,"videodatachange",this.onVideoDataChange);this.J(this.overflowButton.element,"click",this.VM);this.J(p,"featuredproductdismissed",this.Hf)}; M0e=function(p,a){p=document.querySelector(p);if(!p)return!1;var l="",y=p.nodeName;y==="SCRIPT"?(l=p.src,l||(l=p.getAttribute("data-timing-href"))&&(l=window.location.protocol+l)):y==="LINK"&&(l=p.href);pu(document)&&p.setAttribute("nonce",pu(document));return l?(p=ML.getEntriesByName(l))&&p[0]&&(p=p[0],l=mG(),tn("rsf_"+a,l+Math.round(p.fetchStart)),tn("rse_"+a,l+Math.round(p.responseEnd)),p.transferSize!==void 0&&p.transferSize===0)?!0:!1:!1}; bAr=function(p){if(p=p.Zy("html5_web_po_experiment_ids"))if(p=p.replace(/\[ *(.*?) *\]/,"$1"))return p.split(",").map(Number);return[]}; QG=function(p){return p.h9==="9h"||p.h9==="(h"}; jT=function(p,a){for(;p;p=p.parentNode){var l=p.getElementsByTagName(a);if(l.length>0)return l[0]}return null}; WW=function(p,a){this.L=p;this.S=a}; m6M=function(p,a,l,y){p=p.isView()?p.mediaElement:p;return new g.HW(p,a,l,y)}; wf=function(p){this.L=p}; Dd=function(p){var a=[],l=0,y;for(y in p)a[l++]=p[y];return a}; g.$O=function(p,a){var l=0;p=iq(String(p)).split(".");a=iq(String(a)).split(".");for(var y=Math.max(p.length,a.length),S=0;l==0&&S=5:p.isLowLatencyLiveStream&&p.L!=void 0&&gE(p.L)>=5}; ANr=function(p){return Object.values(hBr).includes(p)}; vvZ=function(p){p.skip(4);return{W7l:qL(p,0),value:qL(p,0),timescale:Jn(p),K07:Jn(p),eventDuration:Jn(p),id:Jn(p),As:qL(p),offset:p.offset}}; gvM=function(p){fW("play",function(){p.api.playVideo()}); fW("pause",function(){p.api.pauseVideo()}); fW("seekbackward",function(){p.api.seekBy(-5*p.api.getPlaybackRate())}); fW("seekforward",function(){p.api.seekBy(5*p.api.getPlaybackRate())}); fW("seekto",function(a){a=a.seekTime;a!=null&&p.api.seekTo(a)})}; qZA=function(p){return YZe()===1?g.Tz(p,pr):p}; fiF=function(p,a){return JNF(p,Kv(a,an,1,Vm),Kv(a,lY,2,Vm),$K(a,3,void 0,Vm))}; lqA=function(){p7(p3M);var p=p7(BT);p.L!=null&&p.L.L?aqh(p.L.L):TJ().update(LU)}; yXM=function(){}; SUr=function(p){var a=[];if(!p||!p.thumbnails)return a;p=g.t(p.thumbnails);for(var l=p.next();!l.done;l=p.next())l=l.value,l.url&&(!l.width||l.width<=0||!l.height||l.height<=0||g.Ik(l.url)&&a.push({src:l.url||"",sizes:l.width+"x"+l.height,type:"image/jpeg"}));return a}; nWh=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},N:[{X:"path",yL:!0,V:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; Vtf=function(p){if(p!==yy)throw Error();}; Sg=function(p,a,l){a=l?a.lastElementChild:a.firstElementChild;for(var y=null;a;){if(Pk(a,"display")!=="none"&&a.getAttribute("aria-hidden")!=="true"){var S=void 0;a.tabIndex>=0?S=a:S=Sg(p,a,l);S&&(y?l?S.tabIndex>y.tabIndex&&(y=S):S.tabIndex>>=0;p>>>=0;if(a<=2097151)var l=""+(4294967296*a+p);else kZ()?l=""+(BigInt(a)<>>24|a<<8)&16777215,a=a>>16&65535,p=(p&16777215)+l*6777216+a*6710656,l+=a*8147497,a*=2,p>=1E7&&(l+=p/1E7>>>0,p%=1E7),l>=1E7&&(a+=l/1E7>>>0,l%=1E7),l=a+ZIE(l)+ZIE(p));return l}; zP$=function(p){var a=[];return g.oWh(p,{query:void 0},function(l){a.push(l.cursor.primaryKey);return g.iPr(l)}).then(function(){return a})}; nr=function(p){var a;return((a=p.autoplaySwitchButtonRenderer)==null?void 0:a.enabled)!==void 0}; wv=function(p){var a=p.policy.L;p.j||(a=Math.max(a-1,0));return a*Vy(p)}; g.G2=function(p){p=U$$(p===void 0?0:p);if(!p&&!g.ZM("USE_CSN_FALLBACK",!0))return null;p||(p="UNDEFINED_CSN");return p?p:null}; dxf=function(p){var a=a||0;return function(){return p.apply(this,Array.prototype.slice.call(arguments,0,a))}}; Zu=function(p){return typeof p==="object"&&Array.isArray(p)}; GYe=function(p,a){p.L&&(g.h(a,8)?(p.S=!0,p.qE(),p.L.start()):(g.h(a,2)||g.h(a,64))&&p.videoId&&(p.videoId=null))}; on=function(p){var a=this;this.Y=p;this.S=[];this.U=new Map;this.j=new Map;this.L=new Map;this.hg={wL:function(){return a.U}, rJm:function(){return a.j}, Ej:function(){return a.S}}; this.W=this.Y.D("html5_huli_ssdai_deprecate_playback_timeline_id")}; g.pT=function(){return g.g8("cobalt")}; cXr=function(p){if(!p.L&&!p.U.isEmpty()){var a=p.U.remove();p.L=BpA(p,a)}}; zD=function(p,a){return p==a?!0:p&&a?p.x==a.x&&p.y==a.y:!1}; c0=function(p,a,l,y,S,n){n=n===void 0?new dd:n;GD.call(this,a,l,y);this.xH=S;this.yW=0;this.v9={};this.xo=new rXr;this.fZ={};this.eR="";this.Kz=null;this.eb=!1;this.L=[];this.PO=n.S();this.G=n.U();this.j=null;this.U=-1;this.nz=this.Sl=void 0;this.Xu=this.UO=0;this.QY=-1;this.Ps=this.VY=!1;this.Bs=this.Z=this.S=this.W2=this.yQ=0;new B0;this.t9=this.r7=0;this.OO=-1;this.po=0;this.K=g.xD;this.w7=[this.UP()];this.va=2;this.Zq={};this.Zq.pause="p";this.Zq.resume="r";this.Zq.skip="s";this.Zq.mute="m";this.Zq.unmute= "um";this.Zq.exitfullscreen="ef";this.W=null;this.Yv=this.Sb=!1;this.Ha=Math.floor(Date.now()/1E3-1704067200);this.Hs=0}; bN$=function(p,a,l,y,S){rd(l,a);y=wd({cttAuthInfo:$Y(a)||void 0},a);l={csn:a,ve:l.getAsJson(),eventType:1};S&&(l.clientData=S);a==="UNDEFINED_CSN"?P0("visualElementShown",y,l):p?Lr("visualElementShown",l,p,y):g.mf("visualElementShown",l,y)}; w3f=function(p){return new Xq(p)}; toE=function(p){var a;if(a=!!p.cotn)a=p.videoId,a=!!a&&g.xY(a)===1;return a&&!p.Tx}; $xO=function(){this.S=this.L=NaN}; Fq=function(){}; E6=function(){return{X:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z", fill:"white"}}]}}; PEA=function(p,a){var l=(a-p.L)/(p.S-p.L);if(l<=0)return 0;if(l>=1)return 1;for(var y=0,S=1,n=0,V=0;V<8;V++){n=xN(p,l);var z=(xN(p,l+1E-6)-n)/1E-6;if(Math.abs(n-a)<1E-6)return l;if(Math.abs(z)<1E-6)break;else n1E-6&&V<8;V++)n32)for(l|=(V&127)>>4,y=3;y<32&&V&128;y+=7)V=S[n++],l|=(V&127)<>>0,l>>>0);throw Error();}; FyO=function(p,a,l,y,S,n){var V=xxo++;return new Fj({veType:p,veCounter:V,elementIndex:l,dataElement:a,youtubeData:y,jspbYoutubeData:S,loggingDirectives:n})}; CEM=function(p,a,l,y,S){this.listener=p;this.proxy=null;this.src=a;this.type=l;this.capture=!!y;this.handler=S;this.key=++EWE;this.removed=this.x_=!1}; vWe=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}}; Kyv=function(p,a){var l=new g.U1(0,0),y=LF($c(p));if(!xDE(y,"parent"))return l;do{var S=y==a?g.In(p):G6h(p);l.x+=S.x;l.y+=S.y}while(y&&y!=a&&y!=y.parent&&(p=y.frameElement)&&(y=y.parent));return l}; Iqo=function(p,a){if(!p)return!1;var l,y=(l=g.T(p,ePf))==null?void 0:l.signal;if(y&&a.kZ)return!!a.kZ[y];var S;if((l=(S=g.T(p,bI$))==null?void 0:S.request)&&a.z0)return!!a.z0[l];for(var n in p)if(a.Ik[n])return!0;return!1}; Rn=function(p){if(p.isAd()&&(p.qc?p.videoId!==p.Ws.yQ:p.videoId!=p.Ws.yQ))return p.Ws.yQ}; RPZ=function(p,a){if((p=uY(p,a))&&p.onCueRangeExit)return O6(p.onCueRangeExit)}; MT=function(){var p=uNq();p=p===void 0?"bevasrsg":p;return new Promise(function(a){var l=window===window.top?window:OIo()?window:window.top,y=l[p],S;((S=y)==null?0:S.bevasrs)?a(new kY(y.bevasrs)):(y||(y={},y=(y.nqfbel=[],y),l[p]=y),y.nqfbel.push(function(n){a(new kY(n))}))})}; m3=function(p){g.X.call(this,{X:"div",A9:["ytp-more-videos-button","ytp-button"],V:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},N:[{X:"div",T:"ytp-more-videos-button-thumbnail"},{X:"span",T:"ytp-more-videos-button-title",yY:"{{title}}"}]});this.B=p;this.S=this.d7("ytp-more-videos-button-thumbnail");this.U=this.d7("ytp-more-videos-button-title");this.L=new g.hm(this);g.E(this,this.L);this.L.J(this.B,"videodatachange",this.Kj);this.Kj();this.listen("click",this.onClick);kYo(this, 0);this.hide()}; tw=function(){this.aX=0;this.L=!1;this.S=-1;this.m9=!1;this.PW=0}; jg=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; W0=function(p,a){function l(){var S;return g.R(function(n){S=y-Date.now();return S<1E3?g.u(n,Mte(p),0):(Cr(l,0,Math.min(S,6E4)),n.g7(0))})} var y=Date.now()+a;l()}; Du=function(){var p;return(p=H0())==null?void 0:p.get("LAST_RESULT_ENTRY_KEY",!0)}; iY=function(){}; var wEM=function(p,a){return TD[Z[5]](this,34,p,a)}; mxo=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"onSnackbarMessage",function(l){switch(l){case 1:l=a.api.getPlayerStateObject(),l.isBuffering()&&(a.api.D("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.h(l,8)&&g.h(l,16))&&a.api.xv("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl v\u00eddeo se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Saber por qu\u00e9"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}}, durationHintMs:5E3,popupType:"TOAST"}})}})}; ttM=function(p){return p?(p=("responseXML"in p?p.responseXML:p).getElementsByTagName("root"))&&p.length>0?p[0]:null:null}; jYe=function(p){if(p.nodeType==1)return G6h(p);p=p.changedTouches?p.changedTouches[0]:p;return new g.U1(p.clientX,p.clientY)}; s6=function(p,a){for(var l in a)if(NT(a[l])){if(l in p&&!NT(p[l]))throw Error("Cannot merge an object into a non-object.");l in p||(p[l]={});s6(p[l],a[l])}else if(Zu(a[l])){if(l in p&&!Zu(p[l]))throw Error("Cannot merge an array into a non-array.");l in p||(p[l]=[]);Wyo(p[l],a[l])}else p[l]=a[l];return p}; HIr=function(p,a,l){g.VU(function(){p.apply(a,l)})}; g.Qy=function(p,a){g.D.call(this);var l=this;this.api=p;this.U={};this.sU=null;this.G={};this.K=this.j=null;a=new U6(a,function(y){y!==l.tP({playerType:y.getPlayerType()})&&y.dispose()}); g.E(this,a);this.S=this.Z=this.L=new g.aJ(p.C());this.W=a}; Dxr=function(p){(p===void 0?0:p)?(p=j4().filter(function(a){return a.startsWith("1")}),g.HE("yt-player-performance-cap-active-set",p,2592E3)):g.HE("yt-player-performance-cap-active-set",[],2592E3)}; iIA=function(p,a){p=g.t(p.UO);for(var l=p.next();!l.done;l=p.next())if(l=l.value,l.OM===a)return l.xA9?2:1;return 0}; hw=function(p){this.value=p}; g.Aw=function(p,a,l){p=p.L.openCursor(a.query===void 0?null:a.query,a.direction===void 0?"next":a.direction);return Y3(p).then(function(y){return qE(y,l)})}; Tpq=function(p,a){var l=this;this.j=p;this.jl=a;this.L="";this.U=new Set;this.S=new Map;this.hg={VQs:function(){return l.U}}}; rKv=function(p,a,l){var y=p.split("#",2);p=y[0];y=y.length>1?"#"+y[1]:"";var S=p.split("?",2);p=S[0];S=vv(S[1]||"");for(var n in a)if(l||!g.gd(S,n))S[n]=a[n];return g.C2(p,S)+y}; YY=function(p,a,l){p=new p.constructor(a);l&&(p.L=h9);p.S=h9;return p}; pi=function(p,a){a=a===void 0?0:a;var l,y,S,n,V,z,d,G,B,c,r,w;return g.R(function(P){switch(P.L){case 1:l=E9(qT().L);if(g.oO("att_fet_ks"))return g.$r(P,7),g.u(P,Jw(p,l),9);g.$r(P,4);return g.u(P,Npo(p,l),6);case 6:V=P.S;S=V.E3z;n=V.wXI;y=V;g.L8(P,3);break;case 4:return g.L6(P),g.Mf(Error("Failed to fetch attestation challenge after "+(a+" attempts; not retrying for 24h."))),W0(p,864E5),P.return({challenge:"",WL:{},Yy:void 0,bgChallenge:void 0});case 9:y=P.S;if(!y)throw Error("Fetching Attestation challenge returned falsy"); if(!y.challenge)throw Error("Missing Attestation challenge");S=y.challenge;n=fr(S);if("c1a"in n&&(!y.bgChallenge||!y.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.L8(P,3);break;case 7:z=g.L6(P);g.Mf(z);a++;if(a>=5)return g.Mf(Error("Failed to fetch attestation challenge after "+(a+" attempts; not retrying for 24h."))),W0(p,864E5),P.return({challenge:"",WL:{},Yy:void 0,bgChallenge:void 0});d=1E3*Math.pow(2,a-1)+Math.random()*1E3;return P.return(new Promise(function(F){g.jv(0, function(){F(pi(p,a))},d)})); case 3:G=Number(n.t)||7200;W0(p,G*1E3);B=void 0;if(!("c1a"in n&&y.bgChallenge)){P.g7(10);break}c=sY$(y.bgChallenge);g.$r(P,11);return g.u(P,fiF(qT(),c),13);case 13:g.L8(P,12);break;case 11:return r=g.L6(P),g.Mf(r),P.return({challenge:S,WL:n,Yy:B,bgChallenge:c});case 12:return g.$r(P,14),B=new aX({challenge:c,FQ:{SR:"aGIf"}}),g.u(P,B.qf,16);case 16:g.L8(P,10);break;case 14:w=g.L6(P),g.Mf(w),B=void 0;case 10:return P.return({challenge:S,WL:n,Yy:B,bgChallenge:c})}})}; Uxo=function(p){this.NO=Dm(p)}; QYM=function(p,a){this.videoData=p;this.L=a}; hPo=function(p,a,l){var y=l.reason==="m"||l.reason==="s";p.policy.tQ&&lQ&&g.yd&&(!y||l.L<1080)&&(a=a.filter(function(G){return G.video&&(!G.S||G.S.powerEfficient)})); if(a.length>0)if(MD()){var S=uME(p,a);a=a.filter(function(G){return!!G&&!!G.video&&G.h9===S[G.video.qualityOrdinal].h9})}else{var n,V,z=(n=a[0])==null?void 0:(V=n.video)==null?void 0:V.qualityOrdinal; if(z){l=a.filter(function(G){return!!G&&!!G.video&&G.video.qualityOrdinal===z}); var d=uME(p,l)[z].h9;a=a.filter(function(G){return!!G&&!!G.video&&G.h9===d})}}return a}; OXh=function(p){if(typeof p!=="string")throw Error();return p}; SQ=function(p){return{toString:function(){return p()}}}; Vd=function(){ni.apply(this,arguments)}; ZO=function(p){this.value=p}; JXr=function(p){var a=AXF(g.dD==null?void 0:g.dD.location.href),l=[];if(gWA()){a=a.indexOf("https:")==0||a.indexOf("chrome-extension:")==0||a.indexOf("chrome-untrusted://new-tab-page")==0||a.indexOf("moz-extension:")==0;var y=a?g.dD.__SAPISID:g.dD.__APISID;y||typeof document==="undefined"||(y=new oX(document),y=y.get(a?"SAPISID":"APISID")||y.get("__Secure-3PAPISID"));(y=y?YUo(y,a?"SAPISIDHASH":"APISIDHASH",p):null)&&l.push(y);a&&((a=qUF("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",p))&&l.push(a), (p=qUF("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",p))&&l.push(p))}return l.length==0?null:l.join(" ")}; zu=function(p){return p.j&&p.j.takeRecords?p.j.takeRecords():[]}; fqM=function(p,a,l,y,S){function n(d){z||(z=!0,l.call(S,d))} function V(d){z||(z=!0,y.call(S,d))} var z=!1;try{a.call(p,n,V)}catch(d){V(d)}}; d6=function(p){this.value=p}; pQo=function(){return"av.default_js".includes("ima_html5_sdk")?{rX:"ima",pE:null}:"av.default_js".includes("ima_native_sdk")?{rX:"nima",pE:null}:"av.default_js".includes("admob-native-video-javascript")?{rX:"an",pE:null}:"youtube.player.web_20250923_21_RC00".includes("cast_js_sdk")?{rX:"cast",pE:Gu()}:"youtube.player.web_20250923_21_RC00".includes("youtube.player.web")?{rX:"yw",pE:Gu()}:"youtube.player.web_20250923_21_RC00".includes("outstream_web_client")?{rX:"out",pE:Gu()}:"youtube.player.web_20250923_21_RC00".includes("drx_rewarded_web")? {rX:"r",pE:Gu()}:"youtube.player.web_20250923_21_RC00".includes("gam_native_web_video")?{rX:"n",pE:Gu()}:"youtube.player.web_20250923_21_RC00".includes("admob_interstitial_video")?{rX:"int",pE:Gu()}:{rX:"j",pE:null}}; g.wA=function(p){return{fieldType:3,fieldName:p}}; aTh=function(p){switch(p){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}}; cr=function(p){return p.length?Br?Br.decode(p):String.fromCharCode.apply(null,p):""}; r6=function(p,a){if(!p)throw new TypeError("Expected instream video ad renderer");if(!p.playerVars)throw new TypeError("Expected player vars in url encoded string");var l=vv(p.playerVars),y=Number(l.length_seconds);if(isNaN(y))throw new TypeError("Expected valid length seconds in player vars");var S=Number(p.trimmedMaxNonSkippableAdDurationMs);y=isNaN(S)?y:Math.min(y,S/1E3);S=p.playerOverlay||{};S=S.instreamAdPlayerOverlayRenderer===void 0?null:S.instreamAdPlayerOverlayRenderer;var n=p.playerOverlay|| {};n=n.playerOverlayLayoutRenderer===void 0?null:n.playerOverlayLayoutRenderer;var V=l.video_id;V||(V=(V=p.externalVideoId)?V:void 0);if(!V)throw new TypeError("Expected valid video id in IVAR");if(a&&y===0){var z;a=(z=lTo[V])!=null?z:y}else a=y;return{playerVars:l,videoLengthSeconds:a,instreamAdPlayerOverlayRenderer:S,playerOverlayLayoutRenderer:n,adVideoId:V,Xh:p.pings?jZ(p.pings):new Map,Yp:HQ(p.pings)}}; $2=function(p,a){w6[a]=w6[a]||{count:0};var l=w6[a];l.count++;l.time=(0,g.Ek)();p.L||(p.L=g.jv(0,function(){var y=(0,g.Ek)(),S;for(S in w6)w6[S]&&y-w6[S].time>6E4&&delete w6[S];p&&(p.L=0)},5E3)); return l.count>5?(l.count===6&&Math.random()*1E5<1&&(l=new g.kc("CSI data exceeded logging limit with key",a.split("_")),a.indexOf("plev")>=0||g.Mf(l)),!0):!1}; S3e=function(p){return{type:FW(p,1),event:FW(p,2),wlI:yUq(p,3),KM:yUq(p,4),nR:Pr(p,5),identifier:Pr(p,6),bX:FW(p,9)}}; Li=function(p,a){p.eb=NaN;p.yQ=null;p.Sb.stop();p.QY&&a&&p.QY.oN();p.Yv=null;p.QY=null}; VZZ=function(p,a){a<100||XC(nqM,1)}; Z$Z=function(){return{X:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},N:[{X:"path",V:{d:"M0 0h48v48H0z",fill:"none"}},{X:"path",V:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}}; FC=function(p,a,l){var y=p.tP({playerType:l});y&&(a=y.lf(a),l&&p.getPresentingPlayerType()!==l||x2(p,"cuerangesremoved",a))}; z_A=function(p){return p&&p.match(oqe)?p:ES(p)}; djv=function(p,a){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(p,a===void 0?"":a))return!0}catch(l){}return!1}; Ci=function(p,a){a=Math.max(Math.max(1,Math.ceil(p.policy.j/Vy(p))),a);return Math.min(Math.min(8,Math.floor(p.policy.Sl/Vy(p))),a)}; g.vr=function(p,a){return GAr[p]=a}; MBM=function(p,a){a=a||{};a.Xe=!0;a=new Ki(a);a.push(p,!0);if(a.err)throw a.msg||eQ[a.err];return a.result}; BbO=function(p,a,l,y,S){if((p=p.L.get(a))&&typeof p==="function")try{p(l,y,S)}catch(n){g.iO(n)}else a=new g.kc("Unhandled field",a),g.Mf(a)}; cUq=function(p,a){if(p.L){a=Math.floor(a*.4);a=Math.max(a,47);var l=a+2;if(p.U!==l){p.U=l;p.S.height=l;p.L.clearRect(0,0,1,l);var y=p.L.createLinearGradient(0,2,0,2+a),S=a-42;y.addColorStop(0,"rgba(0, 0, 0, 0)");y.addColorStop(S/a,"rgba(0, 0, 0, 0.3)");y.addColorStop(1,"rgba(0, 0, 0, 0.68)");p.L.fillStyle=y;p.L.fillRect(0,2,1,a);p.element.style.height=l+"px";try{p.element.style.backgroundImage="url("+p.S.toDataURL()+")"}catch(n){}}}}; g.Re=function(p,a,l){for(var y in p)a.call(l,p[y],y,p)}; wQv=function(p,a,l,y,S){rUF=!1;var n=(0,g.Ek)();a.ticks.gelc=n;UL++;g.oO("disable_compression_due_to_performance_degredation")&&n-a.startTime>=tBv&&(Qq++,g.oO("abandon_compression_after_N_slow_zips")?UL===g.hh("compression_disable_point")&&Qq>jeF&&(sL=!1):sL=!1);WLv(a);y.headers||(y.headers={});y.headers["Content-Encoding"]="gzip";y.postBody=p;y.postParams=void 0;S(l,y)}; g.MC=function(p){this.config_=null;p?this.config_=p:$jE()&&(this.config_=g.tl())}; PvM=function(p){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(p)}; Lxf=function(p,a){var l,y,S,n,V,z,d,G,B;return g.R(function(c){if(c.L==1)return l={startTime:(0,g.Ek)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.u(c,IM(a),2);if(c.L!=3)return y=c.S,S=g.ZM("INNERTUBE_CONTEXT_CLIENT_NAME",0),n=[p,S,0],V=[p,S,(0,g.Ek)()],z=IDBKeyRange.bound(n,V),d="prev",g.oO("use_fifo_for_networkless")&&(d="next"),G=void 0,B=p==="NEW"?"readwrite":"readonly",g.oO("use_readonly_for_get_most_recent_by_status_killswitch")&&(B="readwrite"),g.u(c,g.Nk(y,["LogsRequestsStore"], {mode:B,Gn:!0},function(r){return g.Aw(r.objectStore("LogsRequestsStore").index("newRequestV2"),{query:z,direction:d},function(w){w.getValue()&&(G=w.getValue(),p==="NEW"&&(G.status="QUEUED",w.update(G)))})}),3); l.ticks.tc=(0,g.Ek)();tcZ(l);return c.return(G)})}; xjo=function(p,a){a=a?{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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"}}]}:XQF();var l=p.B.getPlaybackRate(),y=g.ug("Velocidad: $RATE",{RATE:String(l)});bQ(p,a,y,l+"x")}; g.x3=function(p,a){return Array.prototype.splice.call(p,a,1).length==1}; IX=function(p,a,l){Fxe(p.L(),a,l)}; St=function(p,a){return(p=p.Zy(a))?p.toString():""}; EqO=function(p){return isNaN(p.cryptoPeriodIndex)?g.MN(p.initData):""+p.cryptoPeriodIndex}; CvF=function(p){if(p.Lz.getVideoData().isLivePlayback)return!1;var a=p.Lz.F7();if(!a)return!1;a=a.getDuration();if(p.Ic&&p.Ic.L&&p.Ic.S){var l=p.getCurrentTime(),y=p.Ic.L.ea();p=p.Ic.S.ea();y=y?RX(y,l):l;l=p?RX(p,l):l;l=Math.min(y,l);a=isNaN(l)?!1:l>=a-.01}else a=!1;return a}; bf=function(p){p.mediaElement=p.Y.deviceIsAudioOnly?new g.uQ(g.JI("AUDIO")):CN.pop()||new g.uQ(g.JI("VIDEO"));g.E(p,p.mediaElement);p.qO().setMediaElement(p.mediaElement);try{p.Y.EC?(p.bO&&p.events.ME(p.bO),p.bO=p.events.J(p.mediaElement,"volumechange",p.XZT)):(p.mediaElement.qk(p.zD.muted),p.mediaElement.setVolume(p.zD.volume/100))}catch(S){p.jj("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(S&&typeof S==="object"&&"message"in S&&typeof S.message==="string"&&S.message.replace(/[;:,]/g, "_")));return}g.z1(p.bQ);vqA(p);var a=p.template,l=p.mediaElement.gG();a.Su=l;a.kF=!1;a.Su.parentNode||sc(a.BA,a.Su,0);a.Ar=new g.OS(0,0,0,0);Kx$(a);kB(a);l=a.Su;g.uD(l,"video-stream");g.uD(l,g.k2.MAIN_VIDEO);var y=a.app.C();y.O2&&l.setAttribute("data-no-fullscreen","true");y.D("html5_local_playsinline")?"playsInline"in MH()&&(l.playsInline=!0):y.Sr&&(l.setAttribute("webkit-playsinline",""),l.setAttribute("playsinline",""));y.UD&&a.Su&&a.J(l,"click",l.play,l);try{p.mediaElement.activate()}catch(S){p.jj("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(S&&typeof S==="object"&&"message"in S&&typeof S.message==="string"&&S.message.replace(/[;:,]/g,"_")))}}; g.M8=function(p,a,l){p=p.split(".");l=l||g.dD;for(var y;p.length&&(y=p.shift());)p.length||a===void 0?l[y]&&l[y]!==Object.prototype[y]?l=l[y]:l=l[y]={}:l[y]=a}; e_M=function(p){return(p=p.L9)&&p.showError?p.showError:!1}; ml=function(){g.D.call(this);var p=this;this.L=new Map;this.S=b$r(function(a){if(a.target&&(a=p.L.get(a.target))&&a)for(var l=0;l=0?p:-p-2}; i$r=function(p){p.Xu||(p.Xu=!0,p.dispatchEvent("complete"),p.dispatchEvent("error"))}; JO=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-ad-underlay-companion",N:[{X:"div",T:"ytp-ad-underlay-side-container",N:[{X:"div",T:"ytp-ad-underlay-image-container"},{X:"div",T:"ytp-ad-underlay-description-container"},{X:"div",T:"ytp-ad-underlay-headline-container"},{X:"div",T:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",a,l,y);this.actionButton=null;this.QY=this.d7("ytp-ad-underlay-image-container");this.U=new bE(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV, "ytp-ad-underlay-image");g.E(this,this.U);this.U.lT(this.QY);this.Xu=this.d7("ytp-ad-underlay-headline-container");this.S=new qh(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,"ytp-ad-underlay-headline");g.E(this,this.S);this.S.lT(this.Xu);this.Z=this.d7("ytp-ad-underlay-description-container");this.j=new qh(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,"ytp-ad-underlay-description");g.E(this,this.j);this.j.lT(this.Z);this.W=this.d7("ytp-ad-underlay-action-button-container"); this.L=this.d7("ytp-ad-underlay-side-container");this.hide()}; fi=function(p,a){p.L.has(a)?(p.L.delete(a),delete Pg().L[a]):hF("Unexpected unregistration of layout in LidarApi")}; AUh=function(p){if(!p)return"";var a=document.createElement("div").style;Tbf(p).forEach(function(l){var y=g.Hs&&l in Nbq?l:l.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");aq(y,"--")||aq(y,"var")||(l=sKZ(UjM,p,p.getPropertyValue?"getPropertyValue":"getAttribute",[l])||"",l=QKF(l),l!=null&&sKZ(h_F,a,a.setProperty?"setProperty":"setAttribute",[y,l]))}); return a.cssText||""}; gqE=function(p,a,l){p.ir.get(a).onProgress=l}; al=function(p){return pG[p.L||p.S]||"auto"}; Y3r=function(p,a){p=g.l6(p.components,a.id,null);p==null&&g.Mf(Error("Component not found for element id: "+a.id));return p||null}; Sm=function(p,a){g.yT.call(this);this.w7=p;this.G=a;this.W=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Sl=new Headers;this.S=null;this.Xu="GET";this.UO="";this.L=!1;this.K=this.U=this.j=null;this.Z=new AbortController}; q3E=function(p,a,l,y){a={KJ:a,rr:l,TJ:p.playback.getCurrentTime(),ivV:y};nG(p,a)}; QaF=function(p,a){a=a===void 0?!1:a;var l=VT(p);if(l===1){a=-1;for(l=0;l<7;l++){var y=VT(p);a===-1&&y!==255&&(a=0);a>-1&&(a=a*256+y)}return a}y=128;for(var S=0;S<6&&y>l;S++)l=l*256+VT(p),y*=128;return a?l:l-y}; JUM=function(p,a,l){var y=a&128?0:-1,S=p.length,n;if(n=!!S)n=p[S-1],n=n!=null&&typeof n==="object"&&n.constructor===Object;var V=S+(n?-1:0);for(a=a&128?1:0;a2&&p.B.D("enable_web_premium_varispeed");p.Xu.classList.toggle("ytp-speedslider-premium-badge",a);p.Xu.setAttribute("aria-label",a?"Premium":"")}; rj=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);p.D("html5_show_drc_toggle")&&p.addEventListener("settingsMenuInitialized",function(){a.menuItem||(a.menuItem=new ca(a.api,a.setDrcUserPreference.bind(a),a.getDrcUserPreference.bind(a),a.TN.bind(a),a.getDrcState.bind(a)),g.E(a,a.menuItem))}); Sa(this.api,"setDrcUserPreference",function(y){a.setDrcUserPreference(y)}); Sa(this.api,"getDrcUserPreference",function(){return a.getDrcUserPreference()}); Sa(this.api,"hasDrcAudioTrack",function(){return a.TN()}); Sa(this.api,"getDrcState",function(){return a.getDrcState()}); var l;this.L=(l=g.zv("yt-player-drc-pref"))!=null?l:1;this.updateEnvironmentData()}; Yq=function(){return na("iPhone")&&!na("iPod")&&!na("iPad")}; n3h=function(){var p=wj();p.info||(p.info={});return p.info}; $w=function(p){this.data=window.Float32Array?new Float32Array(p):Array(p);this.S=this.L=p-1}; Ad=function(){var p=/\sCobalt\/(\S+)\s/.exec(g.yI());if(!p)return NaN;var a=[];p=g.t(p[1].split("."));for(var l=p.next();!l.done;l=p.next())l=parseInt(l.value,10),l>=0&&a.push(l);return parseFloat(a.join("."))}; EA=function(p){if(p.dP){var a=p.y4;var l=p.dP;p=p.p6();var y=VP$(a);if(Xf(y)){if(y=a.yE(l).compose(ZuA(a,l)).compose(HOv(a,l)).compose(Pa(a,l.videoData)).compose(LG(a,l.videoData,l)).compose(Xz(a,l)).compose(xw(a,l)),Xf(p)||a.D("html5_apply_pbr_cap_for_drm"))y=y.compose(o3q(a,l))}else a.D("html5_perf_cap_override_sticky")&&(y=y.compose(Xz(a,l))),a.D("html5_ustreamer_cap_override_sticky")&&(y=y.compose(o3q(a,l)));y=y.compose(xw(a,l));a=l.videoData.ye.compose(y).compose(l.videoData.hE).compose(p)}else a= Fz;return a}; CG=function(p){return p=="\r"||p=="\n"||p==" "||p=="\t"}; zIf=function(p,a,l){return va(TQ(p,a),a,l)}; em=function(){this.S=new B0;this.nz=this.Hs=0;this.OO=new KG;this.Xu=this.K=-1;this.Ps=1E3;this.Yv=new B0([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.QY=this.w7=-1}; dEh=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);Sa(this.api,"musicDisableUi",function(){g.uD(a.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); Sa(this.api,"musicEnableUi",function(){g.b6(a.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}; Il=function(p){p.onreadystatechange&&p.onreadystatechange.call(p)}; Rl=function(p){g.X.call(this,{X:"div",T:"ytp-gradient-bottom"});this.S=g.JI("CANVAS");this.L=this.S.getContext("2d",{willReadFrequently:!0});this.U=NaN;this.S.width=1;cUq(this,p.Fu().getPlayerSize().height)}; XC=function(p,a){if(p!=null){var l;var y=(l=G9M)!=null?l:G9M={};l=y[p]||0;l>=a||(y[p]=l+1,p=Error(),C_e(p,"incident"),nW(p))}}; OA=function(p){g.X.call(this,{X:"div",T:"ytp-doubletap-ui-legacy",N:[{X:"div",T:"ytp-doubletap-fast-forward-ve"},{X:"div",T:"ytp-doubletap-rewind-ve"},{X:"div",T:"ytp-doubletap-static-circle",N:[{X:"div",T:"ytp-doubletap-ripple"}]},{X:"div",T:"ytp-doubletap-overlay-a11y"},{X:"div",T:"ytp-doubletap-seek-info-container",N:[{X:"div",T:"ytp-doubletap-arrows-container",N:[{X:"span",T:"ytp-doubletap-base-arrow"},{X:"span",T:"ytp-doubletap-base-arrow"},{X:"span",T:"ytp-doubletap-base-arrow"}]},{X:"div", T:"ytp-doubletap-tooltip",N:[{X:"div",T:"ytp-seek-icon-text-container",N:[{X:"div",T:"ytp-seek-icon",yY:"{{seekIcon}}"},{X:"div",T:"ytp-chapter-seek-text-legacy",yY:"{{seekText}}"}]},{X:"div",T:"ytp-doubletap-tooltip-label",yY:"{{seekTime}}"}]}]}]});this.B=p;this.j=new g.l_(this.show,10,this);this.S=new g.l_(this.hide,700,this);this.G=this.U=0;this.UO=this.W=!1;this.L=this.d7("ytp-doubletap-static-circle");g.E(this,this.j);g.E(this,this.S);this.hide();this.K=this.d7("ytp-doubletap-fast-forward-ve"); this.Z=this.d7("ytp-doubletap-rewind-ve");this.B.createClientVe(this.K,this,28240);this.B.createClientVe(this.Z,this,28239);this.B.logVisibility(this.K,!0);this.B.logVisibility(this.Z,!0);this.W=p.D("web_show_cumulative_seek_time");this.UO=p.D("web_center_static_circles")}; kw=function(p,a,l){var y=p.api.getCurrentTime()*1E310&&(p.D("html5_sky_skip_pause_jump")? p.Lz.jl("skipPauseJump",{evt:y,cmt:p.getCurrentTime(),lpt:p.K}):p.seekTo(p.K,{JP:"pauseJump"})),y!=="pause"&&y!=="play"&&y!=="playing"&&y!=="progress"&&(p.K=0))}; g.JV=function(p,a,l,y,S){function n(){} S=S===void 0?{L6:{identity:Wa}}:S;var V=V===void 0?!0:V;n=buo(I2E(l));a.context||(a.context=g.Ha(y,V));return new g.BG(function(z){var d,G,B,c,r;return g.R(function(w){if(w.L==1)return d=Ds(l),G=VH(d)?"same-origin":"cors",p.L.ET?(B=RIM(p,S,G),w.g7(2)):g.u(w,uSA(p,S,G),3);w.L!=2&&(B=w.S);c=Ouv(Ds(l));r={input:c,z3:i6(c),jp:a,config:S};z(B1h(p,r,B,n));g.lD(w)})})}; mEM=function(p,a,l,y,S,n,V,z){function d(c){return k9Z(p,c,y,G)} function G(c,r){var w=c.slotId;c=V(c);w=xc(a.S.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",w);return fG(a,w,r,l,c,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new gy(S),n],S.adLayoutLoggingData)} if(!MPM(S))return new W("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:S});var B=S.timeoutSeconds*1E3;return function(c){var r=c.slotId,w={impressionCommands:S.impressionCommands,completeCommands:S.timeoutCommands,skipCommands:S.dismissCommands};c=V(c);r=p1(a,r,l,B,w,new Map,c,d,void 0,a_(a,l,S.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));w=new l3(r.SY);c=new y2(z);return{sY:{layoutId:r.layoutId,layoutType:r.layoutType,Xh:r.Xh,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],iT:r.iT,clientMetadata:new Lc([].concat(g.u0(r.RN),[w,c])),nx:r.nx,adLayoutLoggingData:r.adLayoutLoggingData},gA:[],gh:r.layoutExitMuteTriggers,tT:r.layoutExitUserInputSubmittedTriggers,vC:r.layoutExitUserCancelledTriggers,T9:r.T9}}}; tP$=function(){var p=!1;try{p=!!window.sessionStorage.getItem("session_logininfo")}catch(a){p=!0}return(g.ZM("INNERTUBE_CLIENT_NAME")==="WEB"||g.ZM("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&p}; g.Ha=function(p,a,l){a=a===void 0?!1:a;l=l===void 0?!1:l;var y=g.ZM("INNERTUBE_CONTEXT");if(!y)return g.iO(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};y=g.OV(y);g.oO("web_no_tracking_params_in_shell_killswitch")||delete y.clickTracking;y.client||(y.client={});var S=y.client;S.clientName==="MWEB"&&S.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(S.clientFormFactor=g.ZM("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");S.screenWidthPoints=window.innerWidth;S.screenHeightPoints= window.innerHeight;S.screenPixelDensity=Math.round(window.devicePixelRatio||1);S.screenDensityFloat=window.devicePixelRatio||1;S.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var n=n===void 0?!1:n;var V=g.hn(),z="USER_INTERFACE_THEME_LIGHT";V.Zy(165)?z="USER_INTERFACE_THEME_DARK":V.Zy(174)?z="USER_INTERFACE_THEME_LIGHT":!g.oO("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (z="USER_INTERFACE_THEME_DARK");n=n?z:$6O()||z;S.userInterfaceTheme=n;if(!a){if(n=jqE())S.connectionType=n;g.oO("web_log_effective_connection_type")&&(n=WDr())&&(y.client.effectiveConnectionType=n)}var d;if(g.oO("web_log_memory_total_kbytes")&&((d=g.dD.navigator)==null?0:d.deviceMemory)){var G;d=(G=g.dD.navigator)==null?void 0:G.deviceMemory;y.client.memoryTotalKbytes=""+d*1E6}g.oO("web_gcf_hashes_innertube")&&(n=Huq())&&(G=n.coldConfigData,d=n.coldHashData,n=n.hotHashData,y.client.configInfo=y.client.configInfo|| {},G&&(y.client.configInfo.coldConfigData=G),d&&(y.client.configInfo.coldHashData=d),n&&(y.client.configInfo.hotHashData=n));G=g.yn(g.dD.location.href);!g.oO("web_populate_internal_geo_killswitch")&&G.internalcountrycode&&(S.internalGeo=G.internalcountrycode);S.clientName==="MWEB"||S.clientName==="WEB"?(S.mainAppWebInfo||(S.mainAppWebInfo={}),S.mainAppWebInfo.graftUrl=g.dD.location.href,g.oO("kevlar_woffle")&&BDo.instance&&(G=BDo.instance,S.mainAppWebInfo.pwaInstallabilityStatus=!G.L&&G.S?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),S.mainAppWebInfo.webDisplayMode=SC(),S.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):S.clientName==="TVHTML5"&&(!g.oO("web_lr_app_quality_killswitch")&&(G=g.ZM("LIVING_ROOM_APP_QUALITY"))&&(S.tvAppInfo=Object.assign(S.tvAppInfo||{},{appQuality:G})),G=g.ZM("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(S.tvAppInfo=Object.assign(S.tvAppInfo||{},{certificationScope:G}));if(!g.oO("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var B=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(H){}B=void 0}B&&(S.timeZone=B)}(B=n1())?S.experimentsToken=B:delete S.experimentsToken;B=V2();ZN.instance||(ZN.instance=new ZN);y.request=Object.assign({},y.request,{internalExperimentFlags:B,consistencyTokenJars:Dd(ZN.instance.L)});!g.oO("web_prequest_context_killswitch")&&(B=g.ZM("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(y.request.externalPrequestContext=B);S=g.hn();B=S.Zy(58);S=S.get("gsml","");y.user=Object.assign({}, y.user);B&&(y.user.enableSafetyMode=B);S&&(y.user.lockedSafetyMode=!0);g.oO("warm_op_csn_cleanup")?l&&(a=g.G2())&&(y.clientScreenNonce=a):!a&&(a=g.G2())&&(y.clientScreenNonce=a);p&&(y.clickTracking={clickTrackingParams:p});if(p=g.o4("yt.mdx.remote.remoteClient_"))y.remoteClient=p;o_.getInstance().setLocationOnInnerTubeContext(y);try{var c=GG(),r=c.bid;delete c.bid;y.adSignalsInfo={params:[],bid:r};for(var w=g.t(Object.entries(c)),P=w.next();!P.done;P=w.next()){var F=g.t(P.value),v=F.next().value, I=F.next().value;c=v;r=I;p=void 0;(p=y.adSignalsInfo.params)==null||p.push({key:c,value:""+r})}var b,O;if(((b=y.client)==null?void 0:b.clientName)==="TVHTML5"||((O=y.client)==null?void 0:O.clientName)==="TVHTML5_UNPLUGGED"){var m=g.ZM("INNERTUBE_CONTEXT");m.adSignalsInfo&&(y.adSignalsInfo.advertisingId=m.adSignalsInfo.advertisingId,y.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",y.adSignalsInfo.limitAdTracking=m.adSignalsInfo.limitAdTracking)}}catch(H){g.iO(H)}return y}; d3=function(p,a){2&a&&(p|=2);return p|1}; DEF=function(p){return gf(p,function(a){return"FORMAT_STREAM_TYPE_OTF"===a.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; iuq=function(p){p=p.j;if(!p)return"";var a=C7("uap",p.platform)+C7("uapv",p.platformVersion)+C7("uafv",p.uaFullVersion)+C7("uaa",p.architecture)+C7("uam",p.model)+C7("uab",p.bitness);p.fullVersionList&&(a+="&uafvl="+encodeURIComponent(p.fullVersionList.map(function(l){return encodeURIComponent(l.brand)+";"+encodeURIComponent(l.version)}).join("|"))); p.wow64!=null&&(a+="&uaw="+Number(p.wow64));return a.slice(1)}; zj=function(p,a){a.L>=2&&(p.slot_pos=a.adPodIndex);p.autoplay="1"}; Nhe=function(p,a,l){var y=Array(16),S=0,n;for(n=1;n<=15;n++)y[n]=S=S+l[n-1]<<1;for(l=0;l<=a;l++)S=p[l*2+1],S!==0&&(p[l*2]=ThZ(y[S]++,S))}; EM=function(p,a,l){if(p+3>>1=p){var y=a[Z[21]](Z[48]),S=0;y[0]||S++;for(var n={};S>3==1&&(a=(a%l[Z[7]]+l[Z[7]])%l[Z[7]],y=l[0],l[0]=l[a],l[a]=y,V=[a,l]);(p|2)>>4||((0,a[23])(a[32]),(0,a[73])(a[69],(0,a[new l(Z[89])/1E3])(),a[51]),(0,a[73])(a[32],(0,a[46])(),a[50]),((((0,a[83])(a[34],a[12]),a[42])((0,a[20])(a[68],a[12]),a[20],a[26],a[76]),a[47])(a[69],a[63]),a[73])(a[69],(0,a[44])(),a[64]),(0,a[42])((0,a[47])(a[78],a[33]),a[73],a[69], (0,a[57])(),a[11]),V=[a,l]);return V}; Gj=function(p){g.X.call(this,{X:"button",A9:["ytp-pip-button","ytp-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},N:[d0()]});var a=this;this.api=p;this.listen("click",this.onClick);var l=this.api.TM(),y=l.subscribe("visibilitystatechange",function(){a.pz(l.Yn())}); this.addOnDisposeCallback(function(){l.mN(y)}); OC(p,this.element,this);this.pz(l.Yn())}; Bj=function(p,a){return new g.nF(Math.max(0,p-5E3),a?0x8000000000000:p-1,{namespace:"childplayback",priority:9})}; cj=function(p){QH.call(this,p);Sa(p,"createClientVe",this.createClientVe.bind(this));Sa(p,"createServerVe",this.createServerVe.bind(this));Sa(p,"destroyVe",this.destroyVe.bind(this));Sa(p,"hasVe",this.hasVe.bind(this));Sa(p,"logClick",this.logClick.bind(this));Sa(p,"logVisibility",this.logVisibility.bind(this));Sa(p,"setTrackingParams",this.setTrackingParams.bind(this))}; sq$=function(p){return p in r0?r0[p]:r0[p]="on"+p}; w0=function(p,a){a=a===void 0?"0":a;g.D.call(this);this.logSource=p;this.sessionIndex=a;this.bS="https://play.google.com/log?format=json&hasfast=true";this.S=null;this.j=!1;this.network=null;this.componentId="";this.L=this.Uo=null;this.U=!1;this.pageId=null}; g.Pj=function(p,a,l){if(a instanceof g.N6)l=a.height,a=a.width;else if(l==void 0)throw Error("missing height argument");p.style.width=g.$U(a,!0);p.style.height=g.$U(l,!0)}; QqM=function(p,a,l,y,S,n){a=L1(p,a,l,y);if(a instanceof W)return a;var V=a instanceof Ke?new UEM(p.L,l,a.L):null;y=Ga(p.S.get(),"SLOT_TYPE_IN_PLAYER");var z=[new D6(p.L,y)];p=[new wG(p.L,l),new $1(p.L,y)];n=n({slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,iT:"core",slotEntryTrigger:a,slotFulfillmentTriggers:z,slotExpirationTriggers:p},V);return n instanceof Xd?new W(n):{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:z,slotExpirationTriggers:p, iT:"core",clientMetadata:new Lc([new i8(n)]),adSlotLoggingData:S}}; NGM=function(p){var a=0;a=a===void 0?0:a;if(!MA(p))throw i0("int64");var l=typeof p;switch(a){case 512:switch(l){case "string":return xU(p);case "bigint":return String(MG(64,p));default:return Fd(p)}case 1024:switch(l){case "string":return LYh(p);case "bigint":return OX(MG(64,p));default:return hIF(p)}case 0:switch(l){case "string":return xU(p);case "bigint":return OX(MG(64,p));default:return EB(p)}default:return m5(a,"Unknown format requested type for int64")}}; VH=function(p){if(!a)var a=window.location.href;var l=g.By(p)[1]||null,y=g.Ir(p);l&&y?(p=g.By(p),a=g.By(a),p=p[3]==a[3]&&p[1]==a[1]&&p[4]==a[4]):p=y?g.Ir(a)===y&&(Number(g.By(a)[4]||null)||null)===(Number(g.By(p)[4]||null)||null):!0;return p}; C1=function(p,a,l,y){var S=p[QB]|0,n=hx(S);S=AO(p,S,l,a,n);yH(p,S,a,y,n)}; AAr=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"initialvideodatacreated",function(l){vj(K1(),16623);a.L=g.G2();var y=p.C().SD&&!l.TO;if(kF(l)&&y){vj(K1(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(l.getWatchNextResponse()){var S,n=(S=l.getWatchNextResponse())==null?void 0:S.trackingParams;n&&eC(n)}if(l.getPlayerResponse()){var V;(l=(V=l.getPlayerResponse())==null?void 0:V.trackingParams)&&eC(l)}}else vj(K1(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),l.getEmbeddedPlayerResponse()&&(V=(n=l.getEmbeddedPlayerResponse())==null?void 0:n.trackingParams)&&eC(V)}); this.events.J(p,"loadvideo",function(){vj(K1(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:a.L})}); this.events.J(p,"cuevideo",function(){vj(K1(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:a.L})}); this.events.J(p,"largeplaybuttonclicked",function(l){vj(K1(),27240,l.visualElement)}); this.events.J(p,"playlistnextbuttonclicked",function(l){vj(K1(),27240,l.visualElement)}); this.events.J(p,"playlistprevbuttonclicked",function(l){vj(K1(),27240,l.visualElement)}); this.events.J(p,"playlistautonextvideo",function(){vj(K1(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; I_=function(p,a){var l;if((l=b3)==null?0:l.encodeInto)return a=b3.encodeInto(p,a),a.read>6|192:((S&64512)===55296&&y+1>18|240,a[l++]=S>>12&63|128):a[l++]=S>>12|224,a[l++]=S>>6&63|128),a[l++]=S&63|128)}return l}; Yio=function(p){p.Xu.clearAll();p.S.clear();p.L.clear();p.W.clear();p.r7=[];p.G=null;p.vZ.clear();p.Y.experiments.Cz("html5_ssdai_log_missing_ad_config_reason")&&p.Hs.clear();p.Sl=[];p.VY=[];p.qc=[];p.Fh=[];p.oo.clear();p.EC.clear();p.O6.clear();p.Ps.clear();p.Z=!1;p.pH=0;p.UO=!1;p.nz=!1;p.sZ=0;p.va=0;p.Ha=!1;p.bK=!1;p.U="";g3$(p.app.mD());R_(p.app.mD(),p.playback,!1);p.t9.clear();p.K.isActive()&&wJ(p)}; IP=function(p,a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a||p(this.triggerType)}; aVM=function(p,a,l,y,S,n,V,z,d,G,B,c){var r=u3(y,l,G);return r instanceof Xd?new W(r):G.B.C().experiments.Cz("html5_refactor_in_player_slot_generation")?function(w){var P=new NH(0,[r.uc]);w=qiF(a,r.layoutId,r.Q5,l,sS(r.playerVars,r.GW,n,d,P),r.uc,S,P,V(w),z.get(r.Q5.externalVideoId),c);P=[];if(r.Q5.playerOverlay.instreamAdPlayerOverlayRenderer){var F=JAM(w);if(!F)return hF("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,w),{layout:w,tN:[]}; P=[i8$(p,F.contentCpn,F.VR,function(I){return OB(a,I.slotId,"core",F,kU(B,I))},F.inPlayerSlotId)].concat(g.u0(P)); if(F.instreamAdPlayerUnderlayRenderer&&Mc(G)){var v=F.instreamAdPlayerUnderlayRenderer;P=[f2o(p,F.contentCpn,F.VR,function(I){return pGe(a,I.slotId,v,F.adPlacementConfig,F.VR,kU(B,I))})].concat(g.u0(P))}}return{layout:w, tN:P}}:function(w){var P=new NH(0,[r.uc]); return{layout:qiF(a,r.layoutId,r.Q5,l,sS(r.playerVars,r.GW,n,d,P),r.uc,S,P,V(w),z.get(r.Q5.externalVideoId),c),tN:[]}}}; mN=function(p){this.value=p}; uSA=function(p,a,l){var y,S,n,V,z,d,G;return g.R(function(B){if(B.L==1){n=((y=a)==null?void 0:(S=y.L6)==null?void 0:S.identity)||Wa;d=(V=a)==null?void 0:(z=V.L6)==null?void 0:z.sessionIndex;var c=g.t_(p.L.MM(n,{sessionIndex:d}));return g.u(B,c,2)}G=B.S;return B.return(Promise.resolve(Object.assign({},lVM(l),G)))})}; BT=function(){this.L=this.S=null}; jC=function(p,a){if(Tv){var l=0;p=p.ir.get(a);if(p==null||!p.KC)return 0;p=g.t(p.KC.values());for(a=p.next();!a.done;a=p.next())l+=a.value.data.totalLength;return l}return((l=p.ir.get(a))==null?void 0:l.ZF.totalLength)||0}; Hj=function(p,a,l,y,S,n){hI.call(this,p,{X:"div",A9:["ytp-flyout-cta","ytp-flyout-cta-inactive"],N:[{X:"div",T:"ytp-flyout-cta-icon-container"},{X:"div",T:"ytp-flyout-cta-body",N:[{X:"div",T:"ytp-flyout-cta-text-container",N:[{X:"div",T:"ytp-flyout-cta-headline-container"},{X:"div",T:"ytp-flyout-cta-description-container"}]},{X:"div",T:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",a,l,y,S);this.U=new bE(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,"ytp-flyout-cta-icon"); g.E(this,this.U);this.U.lT(this.d7("ytp-flyout-cta-icon-container"));this.U.element.classList.add("ytp-flyout-cta-icon-rounded");this.W=new qh(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,"ytp-flyout-cta-headline");g.E(this,this.W);this.W.lT(this.d7("ytp-flyout-cta-headline-container"));this.j=new qh(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,"ytp-flyout-cta-description");g.E(this,this.j);this.j.lT(this.d7("ytp-flyout-cta-description-container"));p=["ytp-flyout-cta-action-button"]; this.api.C().D("web_modern_buttons")&&p.push("ytp-flyout-cta-action-button-rounded");this.S=new lt(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,p);g.E(this,this.S);this.S.lT(this.d7("ytp-flyout-cta-action-button-container"));this.S.element.setAttribute("tabIndex","-1");Wj(this.S.element);this.Xu=null;this.QY=0;this.Hs=n;this.hide()}; hF=function(p,a,l,y,S){y=y===void 0?{}:y;if(!S||Math.random()<5E-4){a=a||null;l=l||null;p=p instanceof Error?p:new g.kc(p);if(p.args)for(var n=g.t(p.args),V=n.next();!V.done;V=n.next())V=V.value,V instanceof Object&&(y=Object.assign({},V,y));y.category="H5 Ads Control Flow";a&&(y.slot=a?"slot: "+a.slotType:"");l&&(y.layout=DN(l),y.layoutId=l.layoutId);S&&(y.known_error_aggressively_sampled=!0);p.args=[y];g.Mf(p)}}; i8=function(p){this.value=p}; iv=function(p){this.value=p}; ysF=function(p,a,l){l-=p.d8;return a===p.L&&l>.5}; o_=function(){this.S=-1;var p=g.ZM("LOCATION_PLAYABILITY_TOKEN");g.ZM("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=i3(this))&&(p=this.localStorage.get("yt-location-playability-token"));p&&(this.locationPlayabilityToken=p,this.L=void 0)}; SC$=function(p){var a=p.B.Fu().getPlayerSize().width;return Math.max(a-Tj(p)*2,100)}; VFr=function(){g.R(function(p){return g.u(p,nrr("LogsDatabaseV2"),0)})}; Nc=function(p){return p?p:Array.prototype.copyWithin}; Z6o=function(p){if(sB){for(var a=g.t(sB),l=a.next();!l.done;l=a.next())l=l.value,l.payload&&(l.payload.csn=p.csn,g.mf(l.payloadName,l.payload,l.options));sB.length=0}UB=0}; Q2=function(p){if(p&&p.simpleText)return p.simpleText;var a="";if(p&&p.runs)for(var l=0;l1&&z[1]){n=y[Z[8]];var d=n[Z[88]](/^[^.]*/,Z[3]);g.AA(y,(n[Z[16]](Z[25])===0?Z[25]:Z[92])+V+Z[90]+z[1]+d);y=new g.ib(y[Z[29]]());y[Z[49]](Z[58],Z[30]);S=y}else l?(y=a[Z[60]](),y[Z[49]](Z[58],Z[30]),S=y):(V=y[Z[8]][Z[35]](Z[12]),y[Z[8]][Z[35]](Z[94])? (g.AA(y,Z[79]),n=y[Z[29]]()):y[Z[8]][Z[35]](Z[67])?(g.AA(y,Z[59]),n=y[Z[29]]()):(y=zCM(n),Zz(y)&&(n=y)),y=new g.ib(n),y[Z[49]](Z[32],Z[30]),V&&y[Z[49]](Z[10],Z[91]),S=y)}(p-7^31)=p&&(TD(8,a),S=a[Z[23]]);return S}; G3r=function(p,a){return dAO(p,function(l){return l.U},a===void 0?!0:a)}; g0=function(p){this.value=p}; qc=function(p){return g.YU(p.B.DN())!=null?g.YU(p.B.DN()).jZ()?!!p.B.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; BBA=function(p){if(p.api.C().D("web_player_log_click_before_generating_ve_conversion_params"))for(var a=Math.floor(-p.scrollPosition/(p.j+8)),l=Math.min(a+p.columns,p.suggestionData.length)-1;a<=l;a++)p.api.logVisibility(p.L[a].element,!0)}; tB=function(p,a){var l=p.api.Fu().W9(),y=p.api.uU(!0,!1);return(a=J_(l,l.height-(y.height+y.top),a))?(p.nz&&a&&(l=g.j_(p.macros),l.ERRORCODE=a.aZ.toString(),l.ERROR_MSG=a.errorMessage,p.layoutId?DY(p.ZV,p.nz,p.layoutId,l):g.iO(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; g.yD=function(p){g.D.call(this);var a=this;this.provider=p;this.logger=new g.iF("qoe");this.L=new Map;this.sequenceNumber=1;this.Xu=NaN;this.qe="N";this.Z=this.kA=this.RL=this.UO=this.S=0;this.oo=this.Hs=this.G=this.r7="";this.O6=this.nz=NaN;this.qc=0;this.vZ=-1;this.EC=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.yQ=this.isEmbargoed=this.QY=this.isOffline=this.isBuffering=!1;this.o4=[];this.Sl=null;this.Sb=this.j=this.Yv=this.K=!1;this.U=-1;this.Kz=!1;this.Kt=new g.l_(this.sB,750,this);this.wj= this.adCpn=this.Bs=this.contentCpn="";this.adFormat=void 0;this.Ae=0;this.Ps=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.bf=new Set(["gd","pw","gp","gm","da"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.eb=!1;this.Fh=NaN;this.t9=0;this.Ha=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.va=!1;this.Ct=new Set;this.hg={eN:function(n){a.eN(n)}, WnO:function(){return a.W}, sM:function(){return a.contentCpn}, x8Y:function(){return a.Bs}, reportStats:function(){a.reportStats()}, ZgI:function(){return a.L.get("cat")||[]}, j2:function(n){return a.L.get(n)||[]}, iNT:function(){return a.L}, ONl:function(){return 0}, a7z:function(){return{adCpn:a.adCpn,wj:a.wj,adFormat:a.adFormat}}}; this.w7=this.provider.Y.D("html5_qoe_relaxed_reporting");var l=g.sW(this.provider.Y.experiments,"html5_qoe_proto_mock_length");l&&!f1.length&&(f1=csv(l));g.E(this,this.Kt);try{var y,S;(S=(y=navigator).getBattery)==null||S.call(y).then(function(n){a.Sl=n})}catch(n){}g.pt(this,0,"vps",["N"]); p.Y.ao()&&(this.t9=(0,g.Ek)(),this.Fh=g.Vo(function(){var n=(0,g.Ek)(),V=n-a.t9;V>500&&a.jl("vmlock",{diff:V.toFixed()});a.t9=n},250)); this.provider.videoData.E2&&(this.remoteControlMode=rsM[this.provider.videoData.E2]||0);this.provider.videoData.xz&&(l=wGe(this.provider.videoData.xz),l==null?0:l.length)&&(this.remoteConnectedDevices=l);p.Y.ao()&&(this.VY=new a$,g.E(this,this.VY));$AA(p.Y)&&(this.OO=new lH,g.E(this,this.OO))}; f_F=function(p,a,l){(0,g.Bf)(p.U,function(y){var S=p.L;if(!y.L&&(y.U(a,l),y.j())){y.L=!0;var n=y.S(),V=new SM;V.add("id","av-js");V.add("type","verif");V.add("vtype",y.W);y=p7(Pxr);V.add("i",y.L++);V.add("adk",S);nt(V,n);S=new LgM(V);XG$(S)}})}; DT=function(){p0.apply(this,arguments)}; g.pI=function(p){window.clearTimeout(p)}; kW=function(p){this.NO=Dm(p)}; ZB=function(){VD.apply(this,arguments)}; o$=function(p,a,l,y,S,n,V,z,d){var G=qN(p,l);n=G?1:n;z=!!z||n===3;G=d&&!G;(n===2||G)&&Jx(p)&&(a=p.NO,l=a[QB]|0);p=zJ(a,S,V);var B=p===yb?7:p[QB]|0,c=d3(B,l);if(d=!(4&c)){var r=p,w=l,P=!!(2&c);P&&(w|=2);for(var F=!P,v=!0,I=0,b=0;I1;)p.L.pop().dispose();k9(p.L[0],"100%");p.L[0].startTime=0;p.L[0].title=""}; R$=function(p){g.iO(p)}; tFF=function(p,a){return p.slice(a.length).replace(/_[a-z]/g,function(l){return l.toUpperCase().replace("_","")}).replace("Dot",".")}; jbh=function(p){this.NO=Dm(p)}; i6O=function(){var p=Wgh();if(p!==void 0)return wV(p);gM||(gM=uH("//googleads.g.doubleclick.net/pagead/id",H6A).then(DAe).Nb(function(a){return CBr(2,a)})); return gM}; NBO=function(p){var a=a===void 0?"UNKNOWN_INTERFACE":a;if(p.length===1)return p[0];var l=TBF[a];if(l){l=new RegExp(l);for(var y=g.t(p),S=y.next();!S.done;S=y.next())if(S=S.value,l.exec(S))return S}var n=[];Object.entries(TBF).forEach(function(V){var z=g.t(V);V=z.next().value;z=z.next().value;a!==V&&n.push(z)}); l=new RegExp(n.join("|"));p.sort(function(V,z){return V.length-z.length}); y=g.t(p);for(S=y.next();!S.done;S=y.next())if(S=S.value,!l.exec(S))return S;return p[0]}; ku=function(p){var a,l,y,S;g.R(function(n){if(!p.D("html5_generate_session_po_token")||p.useLivingRoomPoToken)return n.return();a=p.api.C();l=g.ZM("EOM_VISITOR_DATA")||g.ZM("VISITOR_DATA");y=a.mE?a.datasyncId:l;S=St(a.experiments,"html5_mock_content_binding_for_session_token")||a.livingRoomPoTokenId||y;a.rP=Oz(p,S);g.lD(n)})}; mt=function(p,a,l,y){g.D.call(this);var S=this;this.loader=p;this.policy=a;this.L=l;this.timing=y;this.logger=new g.iF("dash");this.U=[];this.Bs=[];this.S=this.Io=null;this.r7=!1;this.Hs=this.nz=0;this.G=-1;this.w7=!1;this.QY=-1;this.t9=null;this.Xu=NaN;this.UO=[];this.hg={YG:function(){return S.j}, AzT:function(){return S.U}, igz:function(){return S.Z}}; this.j=new sbv(p,a,l);this.policy.L&&(this.Z=new M_(this.j,this.loader.getManifest(),this.policy,function(n){S.policy.qa&&S.jl("buftl",n)})); this.policy.O6&&(this.Sl=new xn(this));this.Lx=l.info.Lx;this.K=this.policy.Xu?!1:l.tf();this.isManifestless=l.tf();this.W=this.K;g.E(this,this.t9)}; $CZ=function(p,a){Ym(p,1,a.videoId);NQ(p,2,a.lmt)}; qh=function(p,a,l,y,S,n){JF.call(this,p,{X:"div",T:"ytp-ad-text"},n===void 0?"ad-text":n,a,l,y,S===void 0?null:S);this.L=null;this.hide()}; tJ=function(p,a){g.D.call(this);var l=this;this.j=p;this.S=new Map;this.U=new Map;this.L=null;a.get().addListener(this);this.addOnDisposeCallback(function(){a.Gm()||a.get().removeListener(l)}); var y;this.L=((y=a.get().HA)==null?void 0:y.slotId)||null}; iH=function(p,a){a=a===void 0?{}:a;g.Es(function(){UAO(p);var l=a.sampleRate;if(!g.oO("web_csi_action_sampling_enabled")||l===void 0||l<=1)l=!1;else{var y=bH(p);l=QbM(y)%l!==0}l&&(wj(p).actionDisabled=!0);jM(p||"").info.actionType=p;a.cttAuthInfo&&(wj(p).cttAuthInfo=a.cttAuthInfo);D_(p+"TIMING_ACTION",p);g.Es(WB)(a.startTime,p);l={actionType:HB(p)};a.dj7&&(l.previousAction=HB(g.ZM("TIMING_ACTION")));(y=g.G2())&&y!=="UNDEFINED_CSN"&&(l.clientScreenNonce=y);g.Bs(l,p);DB(!0,p)})()}; e$F=function(p,a){for(var l in p)if(!a.call(void 0,p[l],l,p))return!1;return!0}; hCF=function(p,a,l){l=p.L[a].gG(l);TH(p,l,0,p.L[a].width)}; qf=function(p,a,l,y,S,n,V){var z={};a&&(z.D$=a);if(!p)return z;z.playbackCookie=l==null?void 0:l.playbackCookie;S&&(z.L_=S);z.EK=[];z.Dq=[];if(V==null?0:V.size)for(a=g.t(V.values()),l=a.next();!l.done;l=a.next())z.Dq.push(l.value);if(p.sabrContextUpdates.size>0)for(a=g.t(p.sabrContextUpdates.values()),l=a.next();!l.done;l=a.next())As$(z,l.value,y);gQ(p)&&n&&As$(z,n,y);y=p.C().L;z.clientInfo={clientName:grr[y.c.toUpperCase()]||0};y.cbrand&&(z.clientInfo.deviceMake=y.cbrand);y.cmodel&&(z.clientInfo.deviceModel= y.cmodel);y.cver&&(z.clientInfo.clientVersion=y.cver);y.cos&&(z.clientInfo.osName=y.cos);y.cosver&&(z.clientInfo.osVersion=y.cosver);y=p.C();y.D("html5_sabr_enable_server_xtag_selection")&&y.o4&&(z.clientInfo.hl=y.o4);p.DE&&(z.DE=p.DE);return z}; Npo=function(p,a){var l,y,S,n,V;return g.R(function(z){switch(z.L){case 1:l=void 0,y=0,S={};case 2:if(!(y<5)){z.g7(4);break}if(!(y>0)){z.g7(5);break}S.PU=1E3*Math.pow(2,y-1)+Math.random()*1E3;return g.u(z,new Promise(function(d){return function(G){g.jv(0,function(){G(void 0)},d.PU)}}(S)),5); case 5:return g.$r(z,7),g.u(z,Jw(p,a),9);case 9:return n=z.S,z.return(YCM(n));case 7:l=V=g.L6(z),V instanceof Error&&g.Mf(V);case 8:y++;S={PU:void 0};z.g7(2);break;case 4:throw l;}})}; Jso=function(p){g.N_.prototype.load.call(p);var a=sz(p.L).lU;try{p.player.getRootNode().classList.add("ad-created")}catch(d){hF(d instanceof Error?d:String(d))}var l=p.player.getVideoData(1),y=l&&l.videoId||"",S=l&&l.getPlayerResponse()||{},n=(S&&S.adPlacements||[]).map(function(d){return d.adPlacementRenderer}),V=((S==null?void 0:S.adSlots)||[]).map(function(d){return g.T(d,Uz)}); S=S.playerConfig&&S.playerConfig.daiConfig&&S.playerConfig.daiConfig.enableDai||!1;l&&l.ke();n=k1Z(n,V,a,sz(p.L).xk);V=l&&l.clientPlaybackNonce||"";l=l&&l.e_||!1;if(o8(a,!0)&&l){var z;a={};(z=p.player.getVideoData())==null||z.jl("p_cpb",(a.cc=V,a))}z=1E3*p.player.getDuration(1);qCv(p);p.L.L.OS.Jo(V,z,l,n.Xf,n.vU,n.Xf,S,y)}; QD=function(p,a){var l=vs();g.Cl.call(this,p,{X:"div",T:"ytp-info-panel-detail-skrim",N:[{X:"div",T:"ytp-info-panel-detail",V:{role:"dialog",id:l},N:[{X:"div",T:"ytp-info-panel-detail-header",N:[{X:"div",T:"ytp-info-panel-detail-title",yY:"{{title}}"},{X:"button",A9:["ytp-info-panel-detail-close","ytp-button"],V:{"aria-label":"Cerrar"},N:[g.Kl()]}]},{X:"div",T:"ytp-info-panel-detail-body",yY:"{{body}}"},{X:"div",T:"ytp-info-panel-detail-items"}]}]},250);var y=this;this.L=a;this.items=this.d7("ytp-info-panel-detail-items"); this.S=new g.hm(this);this.itemData=[];this.U=l;this.J(this.d7("ytp-info-panel-detail-close"),"click",this.Ro);this.J(this.d7("ytp-info-panel-detail-skrim"),"click",this.Ro);this.J(this.d7("ytp-info-panel-detail"),"click",function(S){S.stopPropagation()}); this.J(this.B,"infopaneldetaildismissed",function(){p.D("embeds_enable_info_panel_dismissal")&&y.Ro()}); g.E(this,this.S);this.B.createServerVe(this.element,this,!0);this.J(p,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",p.getVideoData());this.hide()}; pgr=function(p){p=g.hJ(p,1886614376);for(var a=g.t(p),l=a.next();!l.done;l=a.next());return g.lb(p,function(y){return fVM(y)})}; aUM=function(p){if(!p)return"unknown";switch(p){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; Rq=function(p,a,l,y,S){S=S===void 0?null:S;this.U=p;this.uT=a;this.layoutId=y;this.j=0;this.G=null;this.W=void 0;this.L=new Set;this.S=Array.from(this.U.get("progress")||[]);this.S.sort(function(n,V){return(n.offsetMilliseconds||0)-(V.offsetMilliseconds||0)}); this.K={adPlacementConfig:l,D6:S}}; lUv=function(p,a,l){l=l===void 0?null:l;var y=y===void 0?p.withCredentials:y;var S={},n=new URL(VvA(p));l&&(S.Authorization=l);p.sessionIndex&&(S["X-Goog-AuthUser"]=p.sessionIndex,n.searchParams.set("authuser",p.sessionIndex));p.pageId&&(Object.defineProperty(S,"X-Goog-PageId",{value:p.pageId}),n.searchParams.set("pageId",p.pageId));return{url:n.toString(),body:a,mY:1,requestHeaders:S,requestType:"POST",withCredentials:y,timeoutMillis:p.timeoutMillis}}; gn=function(p,a){p=p instanceof Uint8Array?new NN([p]):p;return a(new AJ(p))}; Yu=function(){}; q_=function(p){var a;return(a=p.B.getVideoData(1)==null?void 0:!1)!=null?a:!1}; yeZ=function(p){return{CB:JJ(p,2),videoId:Pr(p,3),NZ:FW(p,4)}}; SsE=function(p){var a=p.api.C(),l=p.api.getVideoData();l=g.ft(a)+l.Sb;if(!g.wW(a))return l;a={};g.pj(p.api,"addEmbedsConversionTrackingParams",[a]);return g.C2(l,a)}; ZvO=function(p,a){var l,y,S;return g.R(function(n){if(n.L==1)return l={context:g.Ha(),settingItemIds:a},y=g.ax(nne),g.u(n,g.JV(p,l,y),2);S=n.S;return!S||S.errorMetadata?(VAr("GetSettingValuesRequest",S),n.return(void 0)):n.return(S.settingValues)})}; nHF=function(p,a){if(a.X==="path")return a.V.d;if(a.N)for(var l=0;l0&&(Y.push(I),Y.push(new PN(H.adPodSkipTarget)));(n=G.get(H.externalVideoId))&&Y.push(new o2(n));n=Y}else n=new W("Invalid vod media renderer")}if(n instanceof W)return n;p=Object.assign({},V,y,{Xh:O,renderingContent:l.renderingContent,clientMetadata:new Lc(n),nx:kU(B,p)(V),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});l=g.T(l.renderingContent,iQ);if(!l||!Tu(l))return new W("Invalid meida renderer");c=fv(c,l.externalVideoId);c.instreamVideoAdRenderer=l;c.HT="AD_PLACEMENT_KIND_START";return w?(d=Lj(r,p,d,F,B,v,P,I,!1),d instanceof W?d:doq(p.layoutId,r)&&d?{layout:Object.assign({},p,{clientMetadata:new Lc(n.concat(new Xc(d)))})}:{layout:p,T9:d}): {layout:p}}; xa=function(){H2.apply(this,arguments)}; E_=function(p){Fc.call(this,p.pN,p.ac,p.WZ,p.BZ,p.sO,p.wc,p.lr,p.wX,p.slot,p.layout,p.sE,p.Z1,p.Ye,p.EO)}; g.IU=function(p,a){g.Cl.call(this,p,{X:"div",A9:["ytp-popup",a||""],N:[{X:"div",T:"ytp-focus-trap-before",V:{tabindex:"0"}},{X:"div",T:"ytp-popup-content"},{X:"div",T:"ytp-focus-trap-after",V:{tabindex:"0"}}]},100,!0);this.L=[];this.j=this.U=null;this.maxHeight=this.maxWidth=0;this.size=new g.N6(0,0);this.content=this.d7("ytp-popup-content");this.listen("keydown",this.i_);this.J(this.d7("ytp-focus-trap-before"),"focus",this.q6T);this.J(this.d7("ytp-focus-trap-after"),"focus",this.oez)}; Cj=function(p,a){g.oO("use_event_time_ms_header")&&VH(p)&&(a.headers||(a.headers={}),a.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Ek)())));return a}; iz=function(p){this.NO=Dm(p,8)}; wgM=function(p,a,l,y,S,n,V){if(p.L)return p.L;var z={},d=new Set,G={};if(vN(y)){for(var B in y.L)y.L.hasOwnProperty(B)&&(p=y.L[B],G[p.info.h9]=[p.info]);return G}B=ByZ(a,y,z);n&&S({aftsrt:Kj(B)});for(var c={},r=g.t(Object.keys(B)),w=r.next();!w.done;w=r.next()){w=w.value;for(var P=g.t(B[w]),F=P.next();!F.done;F=P.next()){F=F.value;var v=F.itag,I=void 0,b=w+"_"+(((I=F.video)==null?void 0:I.fps)||0);c.hasOwnProperty(b)?c[b]===!0?G[w].push(F):z[v]=c[b]:(I=e1(a,F,l,y.isLive,d),I!==!0?(V.add(w),z[v]=I, I==="disablevp9hfr"&&(c[b]="disablevp9hfr")):(G[w]=G[w]||[],G[w].push(F),c[b]=!0))}}n&&S({bfflt:Kj(G)});for(var O in G)G.hasOwnProperty(O)&&(y=O,G[y]&&G[y][0].HX()&&(G[y]=G[y],G[y]=ceq(a,G[y],z),G[y]=rer(G[y],z)));n&&Object.keys(z).length>0&&S({rjr:qp(z)});a=g.t(d.values());for(y=a.next();!y.done;y=a.next())(y=l.j.get(y.value))&&--y.wm;n&&S({aftflt:Kj(G)});p.L=g.OL(G,function(m){return!!m.length}); return p.L}; kU=function(p,a){return function(l){return $oA(RK(p),a.slotId,a.slotType,a.slotPhysicalPosition,a.iT,a.slotEntryTrigger,a.slotFulfillmentTriggers,a.slotExpirationTriggers,l.layoutId,l.layoutType,l.iT)}}; wZr=function(p,a,l){var y=p.a6();if(p.isComplete()||!y||p.info.bM.Lo(a,l))return 0;var S=a.Us;if(!S||y0&&YB(p.G(),n)}; Le$=function(p){var a=sz(p.L).g$,l=a.j().wJ("SLOT_TYPE_PLAYER_BYTES",1);a=uo(a.ac.get(),1).clientPlaybackNonce;var y=!1;l=g.t(l);for(var S=l.next();!S.done;S=l.next()){S=S.value;var n=S.slotType==="SLOT_TYPE_PLAYER_BYTES"&&S.slotEntryTrigger instanceof oJ?S.slotEntryTrigger.wM:void 0;n&&n===a&&(y&&hF("More than 1 preroll playerBytes slot detected",S),y=!0)}y||O_(sz(p.L).lZ)}; xor=function(){var p,a,l,y=(p=window.h5vcc)==null?void 0:(a=p.settings)==null?void 0:(l=a.getPersistentSettingAsString)==null?void 0:l.call(a,"cpu_usage_tracker_intervals");if(y!=null){var S;p=(S=JSON.parse(y))!=null?S:[];S=p.filter(function(G){return G.type==="total"}).map(function(G){return G.seconds}); a=g.t(XgO);for(l=a.next();!l.done;l=a.next())l=l.value,S.indexOf(l)===-1&&p.push({type:"total",seconds:l});var n,V;(n=window.h5vcc)==null||(V=n.settings)==null||V.set("cpu_usage_tracker_intervals_enabled",1);var z,d;(z=window.h5vcc)==null||(d=z.settings)==null||d.set("cpu_usage_tracker_intervals",JSON.stringify(p))}}; g.Bi=function(p){if(g.ZM("DATASYNC_ID")!==void 0)return g.ZM("DATASYNC_ID");throw new g.kc("Datasync ID not set",p===void 0?"unknown":p);}; FeF=function(p,a){return new g.ka("INCOMPATIBLE_DB_VERSION",{dbName:p.name,oldVersion:p.options.version,newVersion:a})}; Enh=function(p,a,l,y,S){var n=[];S4(p,function(V,z){(V=MO(V,a,l,y,S))&&n.push(z+"="+V)}); return n.join(a)}; m2=function(p){if(p.currentState!==2)return!1;p.currentState=3;return!0}; Crq=function(){return na("Android")&&!(tO()||Hr()||jQ()||na("Silk"))}; vnM=function(p,a){var l=!g.tr(p,a);g.JB(p,a,l)}; j1=function(p,a,l,y){this.GJ=p;this.lN=a;this.L=l;this.j=y;this.U=void 0;this.S=new Map;p.kZ||(p.kZ={});p.kZ=Object.assign({},Ker,p.kZ)}; ehf=function(p,a){var l=0;p=p.L.L.get(a);if(!p)return 0;p=g.t(p);for(a=p.next();!a.done;a=p.next())a=a.value,a.durationMs!==0&&a.fh!==a.QL&&l++;return l}; RhM=function(p,a,l){var y=bvo;l=l===void 0?!1:l;return WN(y,function(){var S=this;return function V(){var z,d,G;return HN(V,function(B){switch(B.L){case 1:g.DD(B,2);if(!S.S)throw"wasm.ps.ns";z=p;d=EX;return lo(B,io(IUM(S,a,l)),4);case 4:G=d(B.S);if(!G)throw"wasm.ps.um";if(S.L&&!l)try{return B.return(new WebAssembly.Instance(G,z))}catch(c){S.L=!1}return lo(B,io(WebAssembly.instantiate(G,z)),5);case 5:return B.return(B.S);case 2:g.TK(B),g.$F(B,0)}})}()})}; u0A=function(p,a){return(p==null?void 0:p.maxWidth)>(a==null?void 0:a.maxWidth)||(p==null?void 0:p.maxHeight)>(a==null?void 0:a.maxHeight)}; U_=function(p,a,l){var y=p.fZ[a];if(y!=null)return y;y=t2O(p,a);var S=NO(s_,function(n){return n==a}); p=Ovo(p,y,y,l,kQM[s_[S]]);a=="fully_viewable_audible_half_duration_impression"&&(p.std="csm");return p}; MAM=function(p,a,l,y,S){var n=l.lJ;var V=l.Kq;var z=p.player.C().QS,d=0;l.cueProcessedMs&&V&&!n&&(l=V.end-V.start,l>0&&(d=Math.floor(l/1E3)));var G={AD_BLOCK:S,AD_BREAK_LENGTH:n?n.DI:d,AUTONAV_STATE:An(p.player.C()),CA_TYPE:"image",CPN:p.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:p.player.Ak()*1E3,LACT:XV(),LIVE_INDEX:n?p.U++:1,LIVE_TARGETING_CONTEXT:n&&n.context?n.context:"",MIDROLL_POS:V?Math.round(V.start/1E3):0,MIDROLL_POS_MS:V?Math.round(V.start):0,VIS:p.player.getVisibilityState(), P_H:p.player.Fu().W9().height,P_W:p.player.Fu().W9().width,YT_REMOTE:z?z.join(","):""},B=Oc(Ql);Object.keys(B).forEach(function(c){B[c]!=null&&(G[c.toUpperCase()]=B[c].toString())}); y!==""&&(G.BISCOTTI_ID=y);y={};hr(a)&&(y.sts="20354",(p=p.player.C().forcedExperiments)&&(y.forced_experiments=p));return mP(g.bi(a,G),y)}; n$=function(p,a,l){this.sO=p;this.B=a;this.EO=l;this.S=new Set;this.L=new Map;Pg().subscribe("adactiveviewmeasurable",this.oz,this);Pg().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ZW,this);Pg().subscribe("adviewableimpression",this.qD,this);Pg().subscribe("adaudioaudible",this.Jy,this);Pg().subscribe("adaudiomeasurable",this.ix,this)}; Dl=function(p,a){p=p===void 0?null:p;a=a===void 0?null:a;if(p==null)return g.Mf(Error("Got null or undefined adText object")),"";var l=g.G1(p.text);if(!p.isTemplated)return l;if(a==null)return g.Mf(Error("Missing required parameters for a templated message")),l;p=g.t(Object.entries(a));for(a=p.next();!a.done;a=p.next()){var y=g.t(a.value);a=y.next().value;y=y.next().value;l=l.replace("{"+a+"}",y)}return l}; mor=function(p){p.length===1||g.Ar(p,function(l){return!!l.range}); for(var a=1;a>>=1,l<<=1;while(--a>0);return l>>>1}; TyM=function(p){this.L=p;p.SJ("/client_streamz/bg/wrl",g.wA("mn"),T6("ac"),T6("sc"),g.wA("rk"),g.wA("mk"))}; Nye=function(p,a){zo(p,"impression")&&p.h5(a?"fullscreen":"end_fullscreen")}; g.Lt=function(p){p.cursor.continue(void 0);return Y3(p.request)}; QM$=function(p,a,l,y,S,n,V,z){var d=sMh(),G=new Fj({veType:a,youtubeData:n,jspbYoutubeData:void 0});n=wd({},d);S&&(n.cttAuthInfo=S);S={csn:d,pageVe:G.getAsJson()};g.oO("expectation_logging")&&z&&z.screenCreatedLoggingExpectations&&(S.screenCreatedLoggingExpectations=z.screenCreatedLoggingExpectations);l&&l.visualElement?(S.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()},V&&(S.implicitGesture.gestureType=V)):l&&g.Mf(new g.kc("newScreen() parent element does not have a VE - rootVe", a));y&&(S.cloneCsn=y);p?Lr("screenCreated",S,p,n):g.mf("screenCreated",S,n);d5(Uof,new Go(d));TB.clear();BO.clear();cO.clear();return d}; g.r5=function(p,a,l,y){this.j=p;this.W=a;this.L=this.U=p;this.G=l||0;this.K=y||2}; w5=function(p,a,l,y){y=y===void 0?0:y;isNaN(p.Xu)||(p.jl("aswm",{sq:a[0].Rc,id:a[0].L.info.itag,xtag:a[0].L.info.L,ep:Date.now()-p.Xu}),p.Xu=NaN);switch(l.info.type){case 1:case 2:hhq(p,l);break;case 4:var S=l.info.L,n=S.Mh(l),V;((V=p.S)==null?0:V.type===4)&&AeA(l.info,p.S)&&(p.S=S.TW(p.S).pop());l=g.t(n);for(S=l.next();!S.done;S=l.next())w5(p,a,S.value,y);break;case 3:l.info.L.info.video?(S=p.timing,S.QY||(S.QY=(0,g.Ek)(),g.Pf("fvb_r",S.QY,S.L))):(S=p.timing,S.G||(S.G=(0,g.Ek)(),g.Pf("fab_r",S.G, S.L)));gnE(p.j,a,l,y);p.policy.L&&YsM(p);break;case 6:gnE(p.j,a,l,y),p.S=l.info}}; fUq=function(p,a,l,y,S,n,V,z,d,G,B,c,r,w,P,F,v,I,b,O,m,H,Y){function N(){var BE=$z(Object.assign({},S$,{callback:{Pa:p.Pa.bind(p),Dy:p.Dy.bind(p),ra:function(){}, N2:p.N2.bind(p)},slot:l,sY:y,Um:function(){PO(V,y,"normal")}, Oi:0,Bz:1,Sc:!0}));return BE?new Lz(p,B,r,F,BE,S,O):BE} function yo(){var BE=Object.assign({},S$,{callback:{Pa:function(){}, Dy:function(){}, ra:function(){return void PO(V,y,"normal")}, N2:function(){}}, slot:l,sY:y,Um:function(){}, Oi:0,Bz:1,Sc:!0});return qs$({pN:p,slot:l,layout:y,sE:n,Qr:V,ac:c,WZ:m,BZ:B,Ye:S,sO:r,F7O:BE,context:H})} function zq(){var BE,f=(BE=y.z4)!=null?BE:PE(y.clientMetadata,"metadata_type_sub_layouts");BE=Jee({pN:p,ac:c,WZ:m,BZ:B,sO:r,wc:w,lr:F,wX:a,slot:l,layout:y,sE:n,Z1:V,Ye:S,EO:O});for(var xh=[],Nf={zc:0};Nf.zc=p.L.totalLength)throw Error();return ek(p.L,p.offset++)}; zWe=function(p,a,l){l=l===void 0?!1:l;a.video.qualityOrdinal>1080&&!p.cH&&(p.nz=36700160,p.Sb=5242880,p.r7=Math.max(4194304,p.r7),p.cH=!0);a.video.qualityOrdinal>2160&&!p.JX&&(p.nz=104857600,p.Lx=13107200,p.JX=!0);g.sW(p.Ws.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?a.isEncrypted()&&g.pT()&&g.g8("samsung")&&(g.g8("kant")||g.g8("muse"))&&(p.Lx=g.sW(p.Ws.experiments,"html5_samsung_kant_limit_max_bitrate")):a.isEncrypted()&&g.pT()&&g.g8("kant")&&(p.Lx=1310720);p.k$!==0&&a.isEncrypted()&& (p.Lx=p.k$);p.vk!==0&&a.isEncrypted()&&l&&(p.Lx=p.vk);a.Lx&&(p.n6=Math.max(p.S8,Math.min(p.r7,5*a.Lx)))}; R1=function(){p0.apply(this,arguments)}; G2e=function(){var p,a,l,y;return g.R(function(S){switch(S.L){case 1:p=Du();if((a=p)==null?0:a.hasSucceededOnce)return S.return(!0);if(bp&&Iw()&&!Rw()||g.up)return S.return(!1);try{if(l=self,!(l.indexedDB&&l.IDBIndex&&l.IDBKeyRange&&l.IDBObjectStore))return S.return(!1)}catch(n){return S.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return S.return(!1);g.$r(S,2);y={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.u(S,dkA(y,OY),4);case 4:return g.u(S,kz("yt-idb-test-do-not-use",OY),5);case 5:return S.return(!0);case 2:return g.L6(S),S.return(!1)}})}; BV$=function(p,a,l,y){var S=this[MX],n=this[mv],V=pF(void 0,S.fG,!1),z=t5(p);if(z){var d=!1,G=S.extensions;if(G){S=function(P,F,v){if(v.length!==0)if(G[F])for(P=g.t(v),F=P.next();!F.done;F=P.next()){F=aQr(F.value);try{d=!0,n(V,F)}finally{F.free()}}else y==null||y(p,F,v)}; if(a==null)fT(z,S);else if(z!=null){var B=z[a];B&&S(z,a,B)}if(d){var c=p[QB]|0;if(c&2&&c&2048&&(l==null||!l.Xi9))throw Error();var r=hx(c),w=function(P,F){if(Ax(p,P,r)!=null)switch(l==null?void 0:l.Zc7){case 1:return;default:throw Error();}F!=null&&(c=yH(p,c,P,F,r));delete z[P]}; a==null?JUM(V,V[QB]|0,function(P,F){w(P,F)}):w(a,Ax(V,a,r))}}}}; W8=function(p){return p.h9==="1"||p.h9==="1h"||jk&&p.h9==="1e"}; WO=function(p){this.value=p}; rYv=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"applicationInitialized",function(){cYf(a)})}; r7=function(p){this.value=p}; $kq=function(p){if(my(p))if(p.Fz&&p.indexRange)if(p.S){var a=new Uint8Array(p.W.buffer,0,p.S),l=wDf(p),y=p.policy.j;Promise.all(p.UO).then(function(){var S=HO(y,p.Fz.L.info,Da(p,!0),l,p.policy.Yv,p.j,a,p.crypto);ip(p,S,!0)})}else To(p,new eA("Woffle: Expect always re-mark currentChunkOffset at EOS")); else To(p,new eA("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; PDf=function(p){var a;for(a=0;a<286;a++)p.QZ[a*2]=0;for(a=0;a<30;a++)p.uJ[a*2]=0;for(a=0;a<19;a++)p.C0[a*2]=0;p.QZ[512]=1;p.fN=p.SI=0;p.n8=p.matches=0}; Ym=function(p,a,l){l!==void 0&&(LwE(p,a,Math.ceil(Math.log2(l.length*4+2)/7)),Qi(p,l.length*1.2),a=I_(l,p.L.subarray(p.pos)),p.pos+a>p.L.length&&(Qi(p,a),a=I_(l,p.L.subarray(p.pos))),p.pos+=a,XDf(p))}; R_=function(p,a,l){p.G[a.Zd()]=a;p.j=a;l&&(p.K=a);NX(p)}; Wee=function(){return{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}}; ydq=function(p){var a;(a=navigator.mediaCapabilities)!=null&&a.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(l){l.smooth&&l.powerEfficient&&(p.Xu=2160)})}; PO=function(p,a,l){a=a.layoutId;for(var y=[],S=g.t(p.Ag.values()),n=S.next();!n.done;n=S.next())if(n=n.value,n.trigger instanceof Ce){var V;if(V=n.trigger.layoutId===a){V=l;var z=xkA.get(n.category);V=z?z===V:!1}V&&y.push(n)}y.length&&YB(p.L(),y)}; VK=function(p){try{return p.getBoundingClientRect()}catch(a){return{left:0,top:0,right:0,bottom:0}}}; UY=function(p){p=new g.B4(p);g.sY(p,document.location.protocol);return p.toString()}; Fw$=function(p,a){p.timing.UO=!0;p.xhr.Sh()&&p.timing.Jv();if(p.policy.bf){var l;(l=p.s1)==null||l.stop()}Ct(p.dc,a,!1)}; h5=function(){var p=KLE();Qu||p===void 0||(Qu=new Worker($v(p),void 0));return Qu}; A5=function(p,a,l,y){if(y.substring(0,2)==="{{")p.TO[y]=[a,l];else return y}; ENF=function(p){this.Y=p;this.U=this.S=this.mediaTime=NaN;this.j=this.L=!1;this.W=.001;g.g5(p)&&(this.W=.01)}; g.uW=function(p,a,l){p=p.Fu().element;var y=w3(p.children,function(S){S=Number(S.getAttribute("data-layer"));return l-S||1}); y<0&&(y=-(y+1));sc(p,a,y);a.setAttribute("data-layer",String(l))}; qX=function(p,a,l,y,S,n,V){a={id:a,namespace:V!=null?V:"appapi"};n==="chapter"?(a.style=Yz.CHAPTER_MARKER,a.visible=!0):isNaN(S)||(n==="ad"?a.style=Yz.AD_MARKER:(a.style=Yz.TIME_MARKER,a.color=S),a.visible=!0);p.SK([new g.nF(l*1E3,y*1E3,a)],1);return!0}; CDv=function(p){if(jg()){p.QQ=p.api.f0();p.L=new tV;p.U=2;var a=g.sW(p.api.C().experiments,"html5_d6de4_defer_timeout_ms");p.QQ.Xb("pt_pish");a?g.aY(function(){J5(p)},a):p.api.D("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){J5(p)}):J5(p)}}; fz=function(p,a){return a===void 0||a===null?p:Number(a)}; g.pD=function(p,a,l,y,S){if(y&&y.once)return Aq(p,a,l,y,S);if(Array.isArray(a)){for(var n=0;nl&&(a=a.subarray(0,l));return a}; VY=function(p){var a=p.L.F7();a=a.isView()?a.start:0;var l=p.L.getVideoData().isLivePlayback?Infinity:p.L.Mb(!0);l=Math.min(p.PL/1E3,l)+a;var y=p.Z?100:0;p=l-p.S.Bi()+y;return{MS:a,At:p,nL:l,Ia:Infinity}}; Oz=function(p,a){if(!p.S){if(p.U)try{return p.U(a)}catch(n){g.Mf(n)}return""}try{p.QQ.Xb(p.L?"pot_cms":"pot_csms");var l={nK:!0,Mo:!0,Tw:a};p.D("html5_web_po_token_disable_caching")||(l.Xd={bl:a,T7:!0,UT:!0});var y=p.S.eq(l);p.QQ.Xb(p.L?"pot_cmf":"pot_csmf");if(p.L){var S;(S=p.j)==null||S.resolve();p.j=null;p.G&&(p.G=!1,p.api.app.qO().HR(!1))}return y}catch(n){return g.Mf(n),""}}; o7=function(p){var a=new Z8;p=p===void 0?null:p;a.U=1;a.S=p===void 0?null:p;return a}; g.sY=function(p,a,l){p.W=l?PV(a,!0):a;p.W&&(p.W=p.W.replace(/:$/,""))}; eWM=function(p,a,l,y,S,n){if(!p.bK)if(g.zs(p,l))p.wG({gdu:"undec",seg:l,itag:S});else if(a=du(p,a,l,y,n),!(p.playback.getVideoData().vy()&&(a==null?0:a.pu)))return a}; bTM=function(p){var a=p.B.getPlayerSize(),l=p.B.C(),y=p.B.getVideoData(),S=g.wW(l)&&g.Gs(p.B)&&g.h(p.B.getPlayerStateObject(),128),n=l.U;return l.OY&&a.width>=240&&!y.isAd()&&y.OY&&!S&&!y.S5&&!p.B.isEmbedsShortsMode()&&!n}; IPh=function(p,a,l){var y=p.ib(a,l);p.HA=y;p.listeners.forEach(function(S){S.Oq(y)})}; MqM=function(p,a){RWv(p);for(var l=a.links||a.shareTargets,y=0,S={},n=0;n0&&!Y&&!m?(O.length===2&&(O=["noreferrer"]),g.vd(w,F,r,O[0]),w=OTq()):(v=b.join(","),qj()&&w.navigator&&w.navigator.standalone&&r&&r!="_self"?(v=g.JI("A"),g.BR(v,F),v.target=r,I&&(v.rel="noreferrer"),((P=P.attributionsrc)||P==="")&&v.setAttribute("attributionsrc",P),P=document.createEvent("MouseEvent"), P.initMouseEvent("click",!0,!0,w,1),v.dispatchEvent(P),w=OTq()):I?(w=g.vd(w,"",r,v),P=g.xm(F),w&&(w.opener=null,P===""&&(P="javascript:''"),P='',P=dG(P),(F=w.document)&&F.write&&(F.write(Mh(P)),F.close()))):((w=g.vd(w,F,r,v))&&P.noopener&&(w.opener=null),w&&P.noreferrer&&(w.opener=null)));w&&(w.opener||(w.opener=window),w.focus());c.preventDefault()}}}(S)); S.J4.addOnDisposeCallback(g.gh(p.tooltip,S.J4.element));z==="Facebook"?p.api.createClientVe(S.J4.element,S.J4,164504):z==="Twitter"&&p.api.createClientVe(S.J4.element,S.J4,164505);p.J(S.J4.element,"click",function(B){return function(){p.api.logClick(B.J4.element)}}(S)); p.api.logVisibility(S.J4.element,!0);p.S.push(S.J4);y++}}var d=a.more||a.moreLink,G=new g.X({X:"a",A9:["ytp-share-panel-service-button","ytp-button"],N:[{X:"span",T:"ytp-share-panel-service-button-more",N:[{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},N:[{X:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",V:{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"}}]}]}],V:{href:d,target:"_blank",title:"M\u00e1s"}});G.listen("click",function(B){var c=d;p.api.logClick(p.moreButton.element);c=k2M(p,c);g.ru(c,p.api,B)&&p.api.xv("SHARE_CLICKED")}); G.addOnDisposeCallback(g.gh(p.tooltip,G.element));p.api.createClientVe(G.element,G,164506);p.J(G.element,"click",function(){p.api.logClick(G.element)}); p.api.logVisibility(G.element,!0);p.S.push(G);p.moreButton=G;p.updateValue("buttons",p.S)}; g.mkO=function(p){return p.data["Serialized-State"]?p.data["Serialized-State"]:""}; wu=function(p,a){this.S=p>>>0;this.L=a>>>0}; LD=function(p,a,l,y,S,n,V,z){y=y||PE(l.clientMetadata,n);p=$G(p);var d=PR(function(){S.Pa(a,l)}); z.push(V(y,p,l.layoutId,{adsClientData:l.nx},function(){d()}))}; Xm=function(p,a,l){if(a==null)l.push("null");else{if(typeof a=="object"){if(Array.isArray(a)){var y=a;a=y.length;l.push("[");for(var S="",n=0;n0)){P.g7(5);break}return g.u(P,rB(5E3),6);case 6:B={playerretry:d,playerretrysrc:l},V||(B.recover="embedded"),G=mP(n,B);case 5:return g.u(P,TVO(a,G).then(S,y),7);case 7:if(c=P.S)return P.return();d++;P.g7(2);break;case 4:r=V?"auth":"manifest.net.retryexhausted";w= V?2:1;if(!V&&Math.random()<1E-4)try{g.Mf(new g.kc("b/152131571",btoa(n)))}catch(v){}return P.return(Promise.reject(new g.mm(r,{backend:"gvi"},w)))}})}; CgA=function(p,a){try{var l=p7(R7);l.Xu=!0;var y=p?new Tf(p.y,p.x+p.width,p.y+p.height,p.x):new Tf(0,0,0,0);var S=nu(),n=u4();var V=new L7(S,n,l);V.L=y;V.volume=a;l.OG(V)}catch(z){Jf(542,z)}}; BN=function(p){this.value=p}; kG=function(p,a){a=a===void 0?!1:a;var l=Or(p);p=a?0:p.info.Z;return l||p}; NN=function(p){var a=this;p=p===void 0?[]:p;this.L=[];this.U=this.S=0;this.j=void 0;this.totalLength=0;p.forEach(function(l){a.append(l)})}; vrr=function(p,a,l){var y=[];l=g.t(l);for(var S=l.next();!S.done;S=l.next()){var n=y,V=n.push;var z=p;var d=a;S=S.value;z=S.triggeringSlotId!=null&&S.triggeringSlotId===z?S.clone(d):S;V.call(n,z)}return y}; Mb=function(p,a){p=g.dD[p];return p&&p.prototype?(a=Object.getOwnPropertyDescriptor(p.prototype,a))&&a.get||null:null}; rXr=function(){var p={};this.S=(p.vs=[1,0],p.vw=[0,1],p.am=[2,2],p.a=[4,4],p.f=[8,8],p.bm=[16,16],p.b=[32,32],p.avw=[0,64],p.avs=[64,0],p.pv=[256,256],p.gdr=[0,512],p.p=[0,1024],p.r=[0,2048],p.m=[0,4096],p.um=[0,8192],p.ef=[0,16384],p.s=[0,32768],p.pmx=[0,16777216],p.mut=[33554432,33554432],p.umutb=[67108864,67108864],p.tvoff=[134217728,134217728],p);this.L={};for(var a in this.S)this.S[a][1]>0&&(this.L[a]=0);this.U=0}; QEM=function(){var p=Z6o,a=sEE(function(l){p.apply(void 0,arguments);Ukv(a)}); return a}; pa=function(p,a){this.S=[];this.j=[];this.W=[];this.U=[];this.L=[];this.G=p.hIT;this.K=a;this.xhr=p.xhr;this.G&&hWq(this)}; md=function(p,a,l,y,S,n){g.D.call(this);this.Gp=p;this.U=a;this.W=l;this.j=y;this.S=S;this.EO=n;this.L=new Map}; tu=function(p){p.Z.removeAll();if(p.L){var a=p.L;p.L=null;a.abort();a.dispose()}}; jS=function(p,a,l){a=a===void 0?",":a;l=l===void 0?p?p.length:0:l;var y=[];if(p)for(l=Math.max(p.length-l,0);l0){for(var y=g.t(a),S=y.next();!S.done;S=y.next())S=S.value,S.startTime-=p.S,S.endTime-=p.S;l.L-=p.S}else l.L=p.L.L;l.segments=a;return l}; Y8h=function(p){if(p.L){var a=p.L;a.L={};a.wr={}}p.U=!1;p.W=void 0;p.S=NaN}; g.Nb=function(){var p=Ts();return p?Promise.resolve(p):q8r().then(function(a){(a=a?OY:void 0)&&g.M8("ytglobal.idbToken_",a);return a})}; YB=function(p,a){a.sort(function(n,V){function z(d){hF("TriggerCategoryOrder enum does not contain trigger category: "+d)} return n.category===V.category?n.trigger.triggerId.localeCompare(V.trigger.triggerId):JYq(n.category,z)-JYq(V.category,z)}); var l=new Map;a=g.t(a);for(var y=a.next();!y.done;y=a.next())if(y=y.value,sr(p.L,y.slot))if(r1(p.L,y.slot).G)r1(p.L,y.slot).Z.push(y);else{p.Tn.Md("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",y.slot,y,y.layout);var S=l.get(y.category);S||(S=[]);S.push(y);l.set(y.category,S)}a=g.t(xkA);for(y=a.next();!y.done;y=a.next())S=g.t(y.value),y=S.next().value,S=S.next().value,(y=l.get(y))&&fPM(p,y,S);(a=l.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&piE(p,a);(a=l.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&hrh(p, a);(l=l.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&acr(p,l)}; yhZ=function(){var p=g.hn();return p.Zy(192)?p.Zy(190):!(g.oO("web_watch_cinematics_disabled_by_default")||g.oO("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&lcv())}; SLo=function(p,a){return Hg(p,3,a)}; nAF=function(p){g.HE("yt-player-bandwidth",p,2592E3)}; g.c4=function(p){return"crx_"+p}; g.A=function(p,a){p.prototype=V4f(a.prototype);p.prototype.constructor=p;if(Ur)Ur(p,a);else for(var l in a)if(l!="prototype")if(Object.defineProperties){var y=Object.getOwnPropertyDescriptor(a,l);y&&Object.defineProperty(p,l,y)}else p[l]=a[l];p.Lv=a.prototype}; SA=function(p){return p.Lz.II()=0))a:{l=g.KU(p);a=p.info.L.L;for(var S=y=0,n=0;Eh(l,y);){var V=fu(l,y);if(V.type===1836476516)S=g.p6(V);else if(V.type===1836019558){!S&&a&&(S=y6(a));if(!S){l=NaN;break a}var z=ew(V.data,V.dataOffset,1953653094),d=z;z=S;var G=ew(d.data,d.dataOffset, 1952868452);d=ew(d.data,d.dataOffset,1953658222);var B=hu(G);hu(G);B&2&&hu(G);G=B&8?hu(G):0;var c=hu(d),r=c&1;B=c&4;var w=c&256,P=c&512,F=c&1024;c&=2048;var v=Jn(d);r&&hu(d);B&&hu(d);for(var I=r=0;I5||a<0)return p?ya(p,-2):-2;var l=p.state;if(!p.output||!p.input&&p.kf!==0||l.status===666&&a!==4)return ya(p,p.Ch===0?-5:-2);l.ph=p;var y=l.cN;l.cN=a;if(l.status===42)if(l.wrap===2)p.Q$=0,SO(l,31),SO(l,139),SO(l,8),l.Wy?(SO(l,(l.Wy.text?1:0)+(l.Wy.Px?2:0)+(l.Wy.extra?4:0)+(l.Wy.name?8:0)+(l.Wy.comment?16:0)),SO(l,l.Wy.time&255),SO(l,l.Wy.time>>8&255),SO(l,l.Wy.time>>16&255),SO(l,l.Wy.time>>24&255),SO(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),SO(l,l.Wy.os& 255),l.Wy.extra&&l.Wy.extra.length&&(SO(l,l.Wy.extra.length&255),SO(l,l.Wy.extra.length>>8&255)),l.Wy.Px&&(p.Q$=ns(p.Q$,l.lG,l.pending,0)),l.Jw=0,l.status=69):(SO(l,0),SO(l,0),SO(l,0),SO(l,0),SO(l,0),SO(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),SO(l,3),l.status=113);else{var S=8+(l.LX-8<<4)<<8;S|=(l.strategy>=2||l.level<2?0:l.level<6?1:l.level===6?2:3)<<6;l.Ba!==0&&(S|=32);l.status=113;Va(l,S+(31-S%31));l.Ba!==0&&(Va(l,p.Q$>>>16),Va(l,p.Q$&65535));p.Q$=1}if(l.status===69)if(l.Wy.extra){for(S= l.pending;l.Jw<(l.Wy.extra.length&65535)&&(l.pending!==l.p8||(l.Wy.Px&&l.pending>S&&(p.Q$=ns(p.Q$,l.lG,l.pending-S,S)),oy(p),S=l.pending,l.pending!==l.p8));)SO(l,l.Wy.extra[l.Jw]&255),l.Jw++;l.Wy.Px&&l.pending>S&&(p.Q$=ns(p.Q$,l.lG,l.pending-S,S));l.Jw===l.Wy.extra.length&&(l.Jw=0,l.status=73)}else l.status=73;if(l.status===73)if(l.Wy.name){S=l.pending;do{if(l.pending===l.p8&&(l.Wy.Px&&l.pending>S&&(p.Q$=ns(p.Q$,l.lG,l.pending-S,S)),oy(p),S=l.pending,l.pending===l.p8)){var n=1;break}n=l.JwS&&(p.Q$=ns(p.Q$,l.lG,l.pending-S,S));n===0&&(l.Jw=0,l.status=91)}else l.status=91;if(l.status===91)if(l.Wy.comment){S=l.pending;do{if(l.pending===l.p8&&(l.Wy.Px&&l.pending>S&&(p.Q$=ns(p.Q$,l.lG,l.pending-S,S)),oy(p),S=l.pending,l.pending===l.p8)){n=1;break}n=l.JwS&&(p.Q$=ns(p.Q$,l.lG,l.pending-S,S));n===0&&(l.status=103)}else l.status= 103;l.status===103&&(l.Wy.Px?(l.pending+2>l.p8&&oy(p),l.pending+2<=l.p8&&(SO(l,p.Q$&255),SO(l,p.Q$>>8&255),p.Q$=0,l.status=113)):l.status=113);if(l.pending!==0){if(oy(p),p.Ch===0)return l.cN=-1,0}else if(p.kf===0&&(a<<1)-(a>4?9:0)<=(y<<1)-(y>4?9:0)&&a!==4)return ya(p,-5);if(l.status===666&&p.kf!==0)return ya(p,-5);if(p.kf!==0||l.xe!==0||a!==0&&l.status!==666){y=l.strategy===2?wih(l,a):l.strategy===3?$5v(l,a):ZL[l.level].func(l,a);if(y===3||y===4)l.status=666;if(y===1||y===3)return p.Ch===0&&(l.cN= -1),0;if(y===2&&(a===1?($P(l,2,3),oD(l,256,zx),l.r4===16?(wQ(l,l.vG),l.vG=0,l.r4=0):l.r4>=8&&(l.lG[l.pending++]=l.vG&255,l.vG>>=8,l.r4-=8)):a!==5&&($P(l,0,3),MaM(l,0,0),a===3&&(dq(l.head),l.xe===0&&(l.Ba=0,l.QP=0,l.zp=0))),oy(p),p.Ch===0))return l.cN=-1,0}if(a!==4)return 0;if(l.wrap<=0)return 1;l.wrap===2?(SO(l,p.Q$&255),SO(l,p.Q$>>8&255),SO(l,p.Q$>>16&255),SO(l,p.Q$>>24&255),SO(l,p.rl&255),SO(l,p.rl>>8&255),SO(l,p.rl>>16&255),SO(l,p.rl>>24&255)):(Va(l,p.Q$>>>16),Va(l,p.Q$&65535));oy(p);l.wrap>0&& (l.wrap=-l.wrap);return l.pending!==0?0:1}; Be=function(p,a){a?p.Z||(p.element.removeAttribute("aria-disabled"),p.Z=new g.Us(p.progressBar,!0),p.api.D("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&p.Z.subscribe("hoverstart",p.hi7,p),p.Z.subscribe("hovermove",p.Nqc,p),p.Z.subscribe("hoverend",p.mEO,p),p.Z.subscribe("dragstart",p.FBl,p),p.Z.subscribe("dragmove",p.LOl,p),p.Z.subscribe("dragend",p.YCO,p),p.api&&p.api.D("delhi_modern_web_player")&&p.api.D("delhi_modern_web_player_cutout")&&(p.GO=new g.Us(p.progressBar, !0),p.GO.subscribe("hoverstart",function(){p.aM=!0;Gx(p)},p),p.GO.subscribe("hoverend",function(){p.aM=!1; Gx(p)},p)),p.yS=p.listen("keydown",p.i_)):p.Z&&(p.element.setAttribute("aria-disabled","true"),p.ME(p.yS),p.Z.cancel(),p.Z.dispose(),p.Z=null)}; L1q=function(p){p.S&&p.S.send();if(p.qoe){var a=p.qoe;if(a.j){a.qe==="PL"&&(a.qe="N");var l=g.US(a.provider);g.pt(a,l,"vps",[a.qe]);a.K||(a.U>=0&&a.L.set("user_intent",[a.U.toString()]),a.K=!0);a.provider.Y.ao()&&a.jl("finalized",{});a.QY=!0;a.reportStats(l)}}if(p.provider.videoData.enableServerStitchedDai)for(a=g.t(p.U.values()),l=a.next();!l.done;l=a.next())ce(l.value);else p.L&&ce(p.L);p.dispose()}; $n=function(){rq.call(this);this.G=null;this.W=!1;this.j="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; wq=function(p){var a=p.data;var l=p.offset+p.L;a=a.getUint32(l)*4294967296+a.getUint32(l+4);p.L+=8;return a}; F1M=function(p){var a,l,y,S,n,V;return g.R(function(z){switch(z.L){case 1:if(p.L)return z.return($t());if(!p.W)return a=g.K6("getColdConfig IDB not initialized"),FU(a),z.return(Promise.reject(a));l=Ts();y=g.ZM("TIME_CREATED_MS");if(!l){S=g.K6("getColdConfig");FU(S);z.g7(2);break}return g.u(z,XiZ(l),3);case 3:if((n=z.S)&&n.timestamp>y)return b4(p,n.config),DkE(p,n.configData),I7(p,n.hashData),z.return($t());case 2:iTF(p);if(!(l&&p.L&&p.coldHashData&&p.configData)){z.g7(4);break}return g.u(z,x5v(p.L, p.coldHashData,p.configData,l,y),4);case 4:return p.L?z.return($t()):(V=new g.kc("Config not available in ytConfig"),FU(V),z.return(Promise.reject(V)))}})}; OUO=function(p,a){var l=a.pop();for(l=p.S+p.L.length()-l;l>127;)a.push(l&127|128),l>>>=7,p.S++;a.push(l);p.S++}; Pe=function(p){return/(vp9|vp09|vp8|avc1|av01)/.test(p)}; d1=function(p){var a=[];g.Re(p,function(l,y){var S=g.Ls(y);g.Bf(Array.isArray(l)?l:[l],function(n){n==""?a.push(S):a.push(S+"="+g.Ls(n))})}); return a.join("&")}; EAr=function(){switch(Qef()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; g.HD=function(p,a,l){l===void 0?delete p[a.name]:p[a.name]=l}; OFr=function(p,a){if(p.removed)p=!0;else{a=new XF(a,this);var l=p.listener,y=p.handler||p.src;p.x_&&hs(p);p=l.call(y,a)}return p}; xt=function(p){var a=g.D1.apply(1,arguments);if(!NT(p)||a.some(function(y){return!NT(y)}))throw Error("Only objects may be merged."); a=g.t(a);for(var l=a.next();!l.done;l=a.next())s6(p,l.value)}; g.FF=function(p,a,l,y){Array.prototype.splice.apply(p,k1(arguments,1))}; CzE=function(p){g.Bf(p.L,function(a){a.S=0})}; Inr=function(p,a){var l=vAo;return Object.prototype.hasOwnProperty.call(l,p)?l[p]:l[p]=a(p)}; K1$=function(p){return g.rW(p,"UHD2")||g.rW(p,"UHD2HDR")?"highres":g.rW(p,"UHD1")||g.rW(p,"UHD1HDR")?"hd2160":g.rW(p,"HD")||g.rW(p,"HDHDR")?"hd1080":g.rW(p,"HD720")||g.rW(p,"HD720HDR")?"hd720":"large"}; eco=function(p){p.K=!0;p.W=!0;p.G=-1;Ed(p,Infinity)}; ya=function(p,a){p.msg=eQ[a];return a}; Dc=function(p){this.L=p}; Cs=function(){}; ve=function(p,a){a=g.t(a);for(var l=a.next();!l.done;l=a.next()){l=l.value;var y=l[1];l[0]===1?p.K(g.I4(y.namespace),y):p.K(g.c4(y.namespace),y)}}; IcZ=function(p,a){Km(p);if(a){var l=g.q6.getState().entities;l=ur(l,"featuredProductsEntity",a);if(l!=null&&l.productsData){a=[];l=g.t(l.productsData);for(var y=l.next();!y.done;y=l.next()){y=y.value;var S=void 0;if((S=y)!=null&&S.identifier&&y.featuredSegments){p.Bs.push(y);var n=void 0;S=g.t((n=y)==null?void 0:n.featuredSegments);for(n=S.next();!n.done;n=S.next()){var V=n.value;n=bmO(V.startTimeSec);n!==void 0&&(V=bmO(V.endTimeSec),a.push(new g.nF(n*1E3,V===void 0?0x7ffffffffffff:V*1E3,{id:y.identifier, namespace:"featured_product"})))}}}p.B.Kh(a)}}}; $z=function(p){for(var a=p.sY,l=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],y=g.t(CU()),S=y.next();!S.done;S=y.next())l.push(S.value);if(W2(a,{XX:l,OE:["LAYOUT_TYPE_MEDIA_BREAK"]}))return RcZ(p);a=p.sY;l=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];y=g.t(CU());for(S=y.next();!S.done;S=y.next())l.push(S.value);if(W2(a,{XX:l,OE:["LAYOUT_TYPE_MEDIA"]}))return Q5(p.sY.clientMetadata,"metadata_type_ad_intro")?uYF(p):Omh(p)}; kwM=function(p){var a=1,l;for(l in p.S)l.length>a&&(a=l.length);return 3997-a-p.U.length-1}; Ks=function(p){this.NO=Dm(p)}; m5o=function(){CO();return M4r()}; x5v=function(p,a,l,y,S){var n,V,z;return g.R(function(d){switch(d.L){case 1:return n={config:p,hashData:a,configData:l,timestamp:S!==void 0?S:(0,g.Ek)()},g.u(d,eO(y),2);case 2:return V=d.S,g.u(d,V.clear("coldConfigStore"),3);case 3:return g.u(d,g.RM(V,"coldConfigStore",n),4);case 4:return z=d.S,d.return(z)}})}; t4M=function(p){for(var a=g.t("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),l=a.next();!l.done;l=a.next())p.Mm.J(p.mediaElement,l.value,p.kW,p);p.Y.U9&&p.mediaElement.M$()&&(p.Mm.J(p.mediaElement,"webkitplaybacktargetavailabilitychanged",p.Uc9,p),p.Mm.J(p.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",p.jo9,p))}; jU$=function(p,a){p.isContentForward=a;g.JB(p.badge.element,"ytp-suggested-action-badge-content-forward",a)}; imv=function(p,a){p.fflags=bl(p.fflags,a.fflags);var l=a.iv_invideo_url;l&&(p.nz=UY(l));p.yO=ID(p.yO,a.iv_ads_only);if(l=a.cta_conversion_urls)p.BPT=l;p.isPharma=ID(p.isPharma,a.is_pharma);p.author=bl(p.author,a.author);p.Ae=W1Z(a.ttsurl)||p.Ae;p.NJ=ID(p.NJ,a.cc_asr);p.Sb=bl(p.Sb,a.channel_path);if(l=a.profile_picture)p.profilePicture=bl(p.profilePicture,l);p.videoCountText=bl(p.videoCountText,a.video_count_text);p.autonavState=RD(p.autonavState,a.autonav_state,Hmr);p.clientPlaybackNonce=bl(p.clientPlaybackNonce, a.cpn);p.subscribed=ID(p.subscribed,a.subscribed);p.rawViewCount=fz(p.rawViewCount,a.view_count);p.shortViewCount=bl(p.shortViewCount,a.short_view_count_text);p.publishedTimeText=bl(p.publishedTimeText||"",a.publishedTimeText);p.lengthText=bl(p.lengthText||"",a.lengthText);p.bx=bl(p.bx||"",a.bx);p.UG=bl(p.UG||"",a.UG);p.title=bl(p.title,a.title);p.subtitle=bl(p.subtitle,a.subtitle);p.expandedTitle=bl(p.expandedTitle,a.expanded_title);p.expandedSubtitle=bl(p.expandedSubtitle,a.expanded_subtitle);p.ypcPreview= bl(p.ypcPreview,a.ypc_preview);p.Br=bl(p.Br,a.ypc_origin);p.Co=ID(p.Co,a.ypc_is_premiere_trailer);p.Wo=bl(p.Wo,a.ypc_clickwrap_message);p.paygated=ID(p.paygated,a.paygated);p.BU=ID(p.BU,a.requires_purchase);p.showShareButton=!ID(!p.showShareButton,a.ss);p.OY=ID(p.OY,a.showwatchlater);p.yP=ID(p.yP,a.shownotifybutton);p.IK=ID(p.IK,a.copy_share);if(l=a.el)p.eventLabel=l;if(l=a.keywords)p.keywords=n9M(l.split(","));if(l=a.rvs)p.suggestions=Gf(l).map(function(y){return y.playlist||y.list||y.api?new ul(p.Ws, y):new Od(p.Ws,y)}); p.contentCheckOk=ID(p.contentCheckOk,a.cco);p.racyCheckOk=ID(p.racyCheckOk,a.rco);p.isLivingRoomDeeplink=ID(p.isLivingRoomDeeplink,a.is_living_room_deeplink);p.oauthToken=bl(p.oauthToken,a.oauth_token);p.EC=bl(p.EC,a.kpt);p.visitorData=bl(p.visitorData,a.visitor_data);if(l=a.session_data)p.sessionData=kt(l,"&");p.PV=bl(p.PV,a.endscreen_ad_tracking_data);p.md=ID(p.md,a.wait_for_vast_info_cards_xml);p.TI=ID(p.TI,a.suppress_creator_endscreen);p.Bh=ID(p.Bh,a.is_trueview_action);p.qS=bl(p.qS,a.tracking_list); D5$(p,a)}; zxr=function(p){AN(p.W,p.element,["keymessage","webkitkeymessage"],p.pk);AN(p.W,p.element,["keyerror","webkitkeyerror"],p.Tk);AN(p.W,p.element,["keyadded","webkitkeyadded"],p.MV)}; m1=function(p){var a=!!p.lM&&p.api.getPresentingPlayerType()!==2,l=p.clipStart,y=p.clipEnd,S=!0,n=!0;a&&p.lM?(l=p.lM.startTimeMs/1E3,y=p.lM.endTimeMs/1E3):(S=l>p.U.S,n=p.U.L>0&&y=0?p.start(a):NaN}; hcq=function(p,a){if(!p.index.isLoaded()){var l=[],y=a.j;a=a.W.split(",").filter(function(B){return B.length>0}); for(var S=0,n=0,V=0,z=/^(\d+)/,d=/r=(\d+)/,G=0;G=3&&p.Ba>0&&(y=p.Ba-1,l=n[y],l===n[++y]&&l===n[++y]&&l===n[++y])){for(S=p.Ba+258;l===n[++y]&&l===n[++y]&&l===n[++y]&&l===n[++y]&&l===n[++y]&&l===n[++y]&&l===n[++y]&&l===n[++y]&&yp.xe&&(p.wP=p.xe)}p.wP>=3?(l=yp(p,1,p.wP-3),p.xe-=p.wP,p.Ba+=p.wP,p.wP=0):(l=yp(p,0,p.window[p.Ba]),p.xe--,p.Ba++);if(l&&(SX(p,!1),p.ph.Ch===0))return 1}p.zp=0;return a=== 4?(SX(p,!0),p.ph.Ch===0?3:4):p.n8&&(SX(p,!1),p.ph.Ch===0)?1:2}; ppr=function(p,a){var l=a.totalLength,y=!1;switch(p.U){case 0:p.Rs(a,p.j).then(function(S){var n=p.kE;n.nt("oprr");n.playerResponse=S;n.Tr||(n.tA=!1);n9(n)},function(S){p.kE.fail(S)}); break;case 2:p.nt("ormk");a=Xb(a);p.queue.decrypt(a);break;default:y=!0}p.kE.kT&&p.kE.jl("ombup","id.11;pt."+p.U+";len."+l+(y?";ignored.1":""));p.U=null}; axo=function(p,a){if(a.itagDenylist)for(var l=0;l=0;){var y=p.levels[l];if(y.isLoaded(zE(y,a))&&(y=g.So(y,a)))return y;l--}return g.So(p.levels[0],a)}; yMr=function(p){this.L=p;p.eT("/client_streamz/bg/cec",T6("ec"),g.wA("mk"))}; ZH=function(p,a,l,y,S,n){bT.call(this,p,a,l,y);this.uT=S;this.j=n;this.W=PE(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; He=function(p,a){return g.h(p.state,a)&&!g.h(p.oldState,a)?1:!g.h(p.state,a)&&g.h(p.oldState,a)?-1:0}; ot=function(){H2.apply(this,arguments)}; nQM=function(p,a,l){var y,S;return g.R(function(n){if(n.L==1){y=zT();if(!y)return n.return(mQr(p,a,l));g.$r(n,3);return g.u(n,Sbe(p,a,l,y),5)}if(n.L!=3)return n.return(n.S);S=g.L6(n);g.Mf(S);dR=!0;return n.return(mQr(p,a,l))})}; Ffr=function(p,a){var l=new Vpr;g.pD(p.xhr,"complete",function(){if(GT(p.xhr)){var y=g.Bq(p.xhr);if(a&&p.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");y=atob(y)}try{var S=p.K(y)}catch(z){v2(p,cq(new bm(13,"Error when deserializing response data; error: "+z+(", response: "+y)),l));return}y=ZeM(p.xhr.getStatus());rR(p,A_(p));y===0?LQh(p,S):v2(p,cq(new bm(y,"Xhr succeeded but the status code is not 200"),l))}else{y=g.Bq(p.xhr);S=A_(p);if(y){var n= ftE(p,y);y=n.code;var V=n.details;n=n.metadata}else y=2,V="Rpc failed due to xhr error. uri: "+String(p.xhr.Z)+", error code: "+(p.xhr.S+", error: ")+p.xhr.getLastError(),n=S;rR(p,S);v2(p,cq(new bm(y,V,n),l))}})}; oQh=function(p,a){var l;a===1?l=p.B.D("delhi_modern_web_player_icons")?{X:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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"}}]}:wR():l=p.S;p.w7=a;if(p.B.D("delhi_modern_web_player_icons"))p.S.d7("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-a+") translate(-18,-12)")),p.S.d7("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(p.K-a+") translate(-22, -12)"));else{for(var y=20*a,S=0;S49?"p60":y>32?"p48":"");l=T1(l,y,n);S>0&&(l=Math.min(l,S));if(!X$.has(a)&&j4().includes(a)){var V=l;l=xe();+l[a]>0&&(V=Math.min(+l[a],V));l[a]!==V&&(l[a]=V,g.HE("yt-player-performance-cap",l,2592E3))}else if(X$.has(a)||n==null){a:{V=V===void 0?!0:V;y=j4().slice();if(V){if(y.includes(a))break a;y.push(a)}else{if(!y.includes(a))break a;y.splice(y.indexOf(a),1)}g.HE("yt-player-performance-cap-active-set",y,2592E3)}F$.set(a, l)}else X$.add(a),n==null||n.set(a,l);p.Lz.Bk()}; HR=function(p,a,l){l=l===void 0?!1:l;a&&EF&&dYM(p.j,a.BJ());if(!l){var y;(y=p.Z)==null||OOA(y)}p.Io=a;(a=p.Z)!=null&&(a.Io=p.Io)}; GI=function(p,a){return hp(p,a)>=0}; g.tl=function(){return{innertubeApiKey:g.ZM("INNERTUBE_API_KEY"),innertubeApiVersion:g.ZM("INNERTUBE_API_VERSION"),MY:g.ZM("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),PJ:g.ZM("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),RR:g.ZM("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.ZM("INNERTUBE_CONTEXT_CLIENT_VERSION"),Cb:g.ZM("INNERTUBE_CONTEXT_HL"),Vg:g.ZM("INNERTUBE_CONTEXT_GL"),v$:g.ZM("INNERTUBE_HOST_OVERRIDE")||"",tZ:!!g.ZM("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),zZ:!!g.ZM("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.ZM("SERIALIZED_CLIENT_CONFIG_DATA")}}; VbO=function(p){var a=new C9(function(l,y,S,n){return new md(p.L.Gp,l,y,S,n,p.L.EO)},new Set(GzO(p.L.Gp).concat(p.L.listeners)),p.L.Tn,p.L.EO); g.E(p,a);return a}; BkM=function(p){var a=p.B.getVideoData(),l=p.G&&!a.isInlinePlaybackNoAd;p.B.D("html5_defer_modules_on_ads_only")&&!a.isAd()&&(l=!1);return l}; $jE=function(){return"INNERTUBE_API_KEY"in v5&&"INNERTUBE_API_VERSION"in v5}; g.Cl=function(p,a,l,y){y=y===void 0?!1:y;g.YZ.call(this,a);var S=this;this.B=p;this.UO=y;this.W=new g.hm(this);this.fade=new g.Gq(this,l,!0,void 0,void 0,function(){S.Xr()}); g.E(this,this.W);g.E(this,this.fade)}; vq=function(p){this.value=p}; $Yo=function(p,a){if(!p.Gm()&&!a.videoData.Gm()){p.dP=a;AlE(p.GR,p.dP);if(p.videoData.isLivePlayback){var l=cMe(p.TR.Bf,p.videoData.videoId)||p.loader&&!isNaN(p.loader.QY);l=p.D("html5_onesie_live")&&l;Ak(p)||p.videoData.eb>0&&!Qe(p.videoData)||l||p.seekTo(p.Lh(),{JP:"videoplayer_playbackData",seekSource:18})}if(p.videoData.U.L){if(rMe(p.videoData)){p.Ne("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",qp({missabrurl:1}));return}p.loader?g.Mf(Error("Duplicated Loader")):(l=g.sW(p.Y.experiments,"html5_onesie_defer_content_loader_ms"))&& p.q9()&&cMe(p.TR.Bf,p.videoData.PNl)?g.aY(function(){p.Gm()||p.loader||K9(p)},l):K9(p)}else!p.videoData.U.L&&eX(p.videoData)&&p.PR(new bJ(p.videoData.videoId||"",4)); p.N1();wpe(a).then(function(){var y={};p.Bk(y);p.Y.ao()&&p.D("html5_log_media_perf_info")&&p.jl("av1Info",y);It(p)})}}; PXM=function(p){p.L&&(p.L.L=[]);g.Re(p.S,function(a){a.L=[]}); g.Re(p.U,function(a){a.L=[]})}; Rt=function(p){return!!p.L||!!p.S}; XpO=function(p,a){a=a===void 0?!1:a;return ej(bW(p,LMM),p,a,"Captions URL")}; xYq=function(p,a){var l=this;this.L=p;this.Wa=a;this.loaded=this.status=0;this.error="";p=uJ(this.L.get("range")||"");if(!p)throw Error("bad range");this.range=p;this.S=new NN;this.run().then(function(){l.Wa.N9()},function(y){l.error=""+y||"unknown_err"; l.Wa.N9()})}; FMM=function(p,a){var l=[];for(a=a||0;a=0&&p.indexOf(a,l)==l}; g.DYv=function(p){return p.TI?null:p.playerResponse&&p.playerResponse.endscreen&&p.playerResponse.endscreen.endscreenRenderer||null}; ief=function(p,a,l){this.label=p;this.type=a;this.value=l;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; DH=function(p,a){a===p.Na&&(p.Na=void 0)}; iJ=function(p,a,l){a.layoutId!==p.layout.layoutId?p.L.N2(p.slot,a,new Xd("Unknown layout received. Required LayoutId: "+p.layout.layoutId+("and LayoutType: "+p.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):l()}; TT=function(p){this.player=p;this.U=this.L=1}; UF=function(p,a,l,y,S,n,V,z,d,G,B,c,r,w,P,F,v,I){NM.call(this,p,a,l,y,S,n,V,z,G,B,c,r,w,P,F,v,I);var b=this;this.VL=d;this.Um=c;this.KF=!0;this.RF=this.BG=0;this.XI=PR(function(){TkM(sF(b));b.dX.Pa(b.slot,b.layout)}); this.F9=PR(function(){Nkr(sF(b));b.Cx!=="rendering_stop_requested"&&b.Um(b);b.layoutExitReason?b.dX.Dy(b.slot,b.layout,b.layoutExitReason):sPh(b)}); this.timer=new g.Xn(200);this.timer.listen("tick",function(){b.rq()}); g.E(this,this.timer)}; UYO=function(p,a,l,y,S,n,V){if(a&&l){p.x3=l.cpn;p.qj(l.cpn,l.startTimeSecs||S);tir(p,l);var z=Qp(p,"a2a",l);p.wG(z);p.sZ++;p.playback.dQ(a,l,y||0,S||0,!!n,!!V)}else p.wG({misspbkonadtrans:1,enter:(l==null?void 0:l.cpn)||"",exit:(a==null?void 0:a.cpn)||"",seek:n,skip:V})}; h6=function(p,a,l,y){p.L=3;p.G="The stream is broken @"+p.Sl+"/"+l+". Error: "+y+". With input:\n"+a;throw Error(p.G);}; g.gR=function(p){return A6(p)&&p.r7?(p={},p.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",p):p.S&&p.S.Hy||null}; qbr=function(p,a,l,y,S,n,V){V=V===void 0?!1:V;var z=[];try{var d=[];if(l.renderer.linearAdSequenceRenderer)var G=function(F){F=QPr(F.slotId,l,a,S(F),y,n,V);d=F.YY7;return F.aH}; else if(l.renderer.instreamVideoAdRenderer)G=function(F){var v=F.slotId;F=S(F);var I=V,b=l.config.adPlacementConfig,O=h7h(b),m=O.Pc,H=O.hm;O=l.renderer.instreamVideoAdRenderer;var Y;if(O==null?0:(Y=O.playerOverlay)==null?0:Y.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var N=r6(O,I);Y=Math.min(m+N.videoLengthSeconds*1E3,H);I=new NH(0,[N.videoLengthSeconds]);H=N.videoLengthSeconds;var yo=N.playerVars,zq=N.instreamAdPlayerOverlayRenderer,S$=N.playerOverlayLayoutRenderer, BE=N.adVideoId,f=ZhA(l),xh=N.Xh;N=N.Yp;var Nf=O==null?void 0:O.adLayoutLoggingData;O=O==null?void 0:O.sodarExtensionData;v=xc(a.S.get(),"LAYOUT_TYPE_MEDIA",v);var nc={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",iT:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",Xh:xh,layoutExitNormalTriggers:[new RP(a.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],iT:"core",clientMetadata:new Lc([new yK(y),new iv(H),new GK(yo), new Ye(m),new qM(Y),zq&&new UO(zq),S$&&new ox(S$),new ei(b),new d7(BE),new zK(I),new hw(f),O&&new br(O),new BN({current:null}),new P2({}),new WQ(N)].filter(AMF)),nx:F(nc),adLayoutLoggingData:Nf}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var B=gQM(p,y,l.adSlotLoggingData,G);z.push(B);for(var c=g.t(d),r=c.next();!r.done;r=c.next()){var w=r.value,P=w(p,S);if(P instanceof W)return P;z.push.apply(z,g.u0(P))}}catch(F){return new W(F,{errorMessage:F.message,AdPlacementRenderer:l,numberOfSurveyRenderers:Ybh(l)})}return z}; Cz=function(p,a,l,y){this.element=p;this.L=new Tf(0,0,0,0);this.U=null;this.G=new Tf(0,0,0,0);this.S=a;this.sC=l;this.Bs=y;this.w7=!1;this.timestamp=-1;this.Sl=new J6(a.j,this.element,this.L,new Tf(0,0,0,0),0,0,nu(),0);this.W=void 0}; f9=function(p){p.w4()&&(p.Lz&&p.Lz.jh("rs_s"),bp&&p.getCurrentTime()>0&&p.seekTo(0),p.KQ(),p.load(),JMh(p,null));delete p.U}; fxO=function(p,a){return pn(p)?a!==1&&a!==2&&a!==0?"AUTOPLAY_STATUS_UNAVAILABLE":p.Qo?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; g.aB=function(p){return{value:p,done:!1}}; pTO=function(){this.U=!1}; vj=function(p,a,l,y){y=y===void 0?{}:y;g.Es(function(){aCo.includes(a)||(g.Mf(new g.kc("createClientScreen() called with a non-page VE",a)),a=83769);y.isHistoryNavigation||(p.Xu=[],p.L.push({rootVe:a,key:y.key||""}));p.K=[];p.Z=[];y.T8?G1r(p,a,l,y):oDq(p,a,l,y)})()}; l9=function(p,a,l){vO.call(this,p,a,l)}; lC$=function(p){return function(a){for(var l=0;l0;return p.GH.length>0||a}return!(p==null||!p.nP)&&!(p==null||!p.ZF.totalLength)}; pn=function(p){return p.zy||p.Sj||p.mutedAutoplay}; nOM=function(p){p=kA(p);var a=[];g.Re(p,function(l,y){y in Object.prototype||typeof l!="undefined"&&a.push([y,":",l].join(""))}); return a}; g.zi=function(p){return oB(p)==="shortspage"}; buo=function(p){if(!g.oO("universal_csi_network_ticks"))return function(){}; var a=Vh$[p];return a?(dm(a),function(){var l=g.oO("universal_csi_network_ticks")?(l=Z2M[p])?dm(l):!1:!1;return l}):function(){}}; g.u0=function(p){return p instanceof Array?p:d7F(g.t(p))}; oOF=function(){try{var p=g.o4("yt.ads.biscotti.getId_");return p?p():i6O()}catch(a){return wV(a)}}; cM=function(p){this.value=p}; ct=function(p,a,l,y,S){var n=p.rG,V=p.videoData;V.S=l;var z=g.Gi(p);l=new Bt(V,l,a,z?z.itag:"",y);p.Y.experiments.Cz("html5_refactor_sabr_video_format_selection_logging")?(l.videoId=S,p.zQ=l):n.qoe&&zbv(n.qoe,l);S=p.y4;S.S=0;S.L=0;p.publish("internalvideoformatchange",V,a==="m")}; ig=function(p,a){return""+p.getAsJson().veType+p.getAsJson().veCounter+a}; dVr=function(p,a){a=a&&D2(a)||"";if(g.Ta(a))g.Mf(Error("Found ThumbnailDetails without valid image URL"));else{var l=p.style;p=p.style.cssText;var y=document.implementation.createHTMLDocument("").createElement("DIV");y.style.cssText=p;p=AUh(y.style);l.cssText=[p,'background-image:url("'+a+'");'].join("")}}; GIr=function(p){this.slot=p;this.w7=new Map;this.UO=new Map;this.Sl=new Map;this.Xu=new Map;this.U=this.layout=this.S=this.K=void 0;this.G=this.W=!1;this.Z=[];this.L="not_scheduled";this.j="not_filled"}; I_M=function(p,a){var l=T1E(a);p=new Uint32Array(p.buffer);a=p[0];var y=g.t(l);l=y.next().value;y=y.next().value;for(var S=1;S>>8|V<<24,V+=n|0,V^=z+38293,n=n<<3|n>>>29,n^=V,d=d>>>8|d<<24,d+=z|0,d^=G+38293,z=z<<3|z>>>29,z^=d;n=[n,V];p[S]^=n[0];S+1=p&&(p-1|8)1&&!!y[1]}(p&45)==p&&a[Z[9]]&&(y=z$r(32,a),a=y[0]);(p|32)==p&&(a=(a%l[Z[7]]+l[Z[7]])%l[Z[7]],l[Z[33]](a,1));return S}; Cto=function(p,a){var l;return(l=a.onEnter)==null?void 0:l.some(p.W)}; wTF=function(p){this.data=p}; x0=function(p){return p.h9==="MAC3"||p.h9==="MEAC3"||p.h9==="M"||p.h9==="I"}; Uc=function(p){var a=p[mv];if(a!=null)return a;var l=Ch(MX,Ex,Cn,p);a=l.rW?function(y,S){return Fk(y,S,l)}:function(y,S){for(;g9Z(S)&&S.S!=4;){var n=S.U,V=l[n]; if(V==null){var z=l.extensions;z&&(z=z[n])&&(z=$VM(z),z!=null&&(V=l[n]=z))}if(V==null||!V(S,y,n)){z=S;V=z.j;vt(z);if(z.d2)var d=void 0;else{var G=z.L.L-V;z.L.L=V;d=iav(z.L,G)}G=z=V=void 0;var B=y;d&&((V=(z=(G=B[Kn])!=null?G:B[Kn]=new JY)[n])!=null?V:z[n]=[]).push(d)}}if(y=t5(y))y.n3=l.hc[Pb$];return!0}; p[mv]=a;p[Pb$]=BV$.bind(p);return a}; b9=function(p){g.X.call(this,{X:"button",A9:["ytp-replay-button","ytp-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"Ver de nuevo":"","data-tooltip-title":"Ver de nuevo"},N:[g.ex()]});this.B=p;this.J(p,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.cZ(p.getPlayerStateObject());OC(this.B,this.element,this)}; XTh=function(p,a,l,y,S,n,V,z){S=S===void 0?l.schedule:S;var d=g.JZ(p,xz);if(d=LaF(a,d))return Fi({B0:d.wO,gR:d.signature},a,l,y,!!p.vt,S,n,V,z)}; Cr=function(p,a,l){l!==void 0&&Number.isNaN(Number(l))&&(l=void 0);var y=g.o4("yt.scheduler.instance.addJob");return y?y(p,a,l):l===void 0?(p(),NaN):g.aY(p,l||0)}; RB=function(p,a,l,y){if(!p.L.index.iW(a,!0))return!1;try{Fg(p);for(var S=p.j,n=null,V=S.S.length-1;V>=0;V--){var z=S.S[V];z.info.Rc>=a&&(S.S.pop(),S.U-=kG(z,S.policy.EC),n=z.info)}n&&(S.j=S.S.length>0?S.S[S.S.length-1].info:S.r7,S.S.length!==0||S.j||IB(S,"r"));S.loader.jl("mdstm",{rollbk:1,itag:n?n.L.info.itag:"",popped:n?n.Rc:-1,sq:a,lastslc:S.j?S.j.Rc:-1,lastfraget:S.U.toFixed(3)});if(p.policy.L)return p.S=null,!0;y>l?Ed(p,y):p.S=p.L.CN(a-1,!1).mT[0]}catch(d){return a=jl(d),a.details.reason="rollbkerr", p.loader.handleError(a.errorCode,a.details,a.severity),!1}return!0}; u9=function(){}; lVM=function(p){var a={"Content-Type":"application/json"};g.ZM("EOM_VISITOR_DATA")?a["X-Goog-EOM-Visitor-Id"]=g.ZM("EOM_VISITOR_DATA"):g.ZM("VISITOR_DATA")&&(a["X-Goog-Visitor-Id"]=g.ZM("VISITOR_DATA"));a["X-Youtube-Bootstrap-Logged-In"]=g.ZM("LOGGED_IN",!1);g.ZM("DEBUG_SETTINGS_METADATA")&&(a["X-Debug-Settings-Metadata"]=g.ZM("DEBUG_SETTINGS_METADATA"));if(p!=="cors"){var l=g.ZM("INNERTUBE_CONTEXT_CLIENT_NAME");l&&(a["X-Youtube-Client-Name"]=l);(l=g.ZM("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(a["X-Youtube-Client-Version"]= l);(l=g.ZM("CHROME_CONNECTED_HEADER"))&&(a["X-Youtube-Chrome-Connected"]=l);(l=g.ZM("DOMAIN_ADMIN_STATE"))&&(a["X-Youtube-Domain-Admin-State"]=l)}g.ZM("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(p=g.ZM("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(a["X-YouTube-Lava-Device-Context"]=p):p!=="cors"&&g.ZM("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(p=g.ZM("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(a["X-YouTube-Lava-Device-Context"]=p);return a}; Ox=function(p){var a=Ie;Ie=p;return a}; Fgq=function(p,a,l,y,S,n,V,z,d){var G=a;V===1||(V!==4?0:2&a||!(16&a)&&32&y)?Sl(a)||(a|=!p.length||z&&!(4096&a)||32&y&&!(4096&a||16&a)?2:256,a!==G&&oW(p,a),Object.freeze(p)):(V===2&&Sl(a)&&(p=Vb(p),G=0,a=Z6(a,y),y=yH(l,y,S,p,n)),Sl(a)||(d||(a|=16),a!==G&&oW(p,a)));2&a||!(4096&a||16&a)||zF(l,y);return p}; xVZ=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"applicationvideodatachange",function(l,y){y=y.clipConfig;l==="dataloaded"&&y&&y.startTimeMs!=null&&y.endTimeMs!=null&&a.api.setLoopRange({startTimeMs:Math.floor(Number(y.startTimeMs)),endTimeMs:Math.floor(Number(y.endTimeMs)),postId:y.postId,type:"clips"})})}; k0=function(p,a){this.L=p;this.depth=a}; HUZ=function(){return g.g8("armv7")||g.g8("aarch64")||g.g8("android")}; Mu=function(p){var a;return(a=xQ.Pr.get(p))!=null?a:"u"}; EOO=function(p){FaM=p}; CbA=function(){return{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]}}; g.CX=function(p,a,l,y){g.YZ.call(this,p);this.priority=a;l&&g.mV(this,l);y&&this.setContent(y)}; RW=function(p,a,l,y){p.U.P9(y===void 0?a:y,l/a);p.G=(0,g.Ek)()}; g.Ti=function(p){for(var a=g.t(p.items),l=a.next();!l.done;l=a.next())l.value.unsubscribe("size-change",p.lI,p);p.items=[];try{g.Jh(p.menuItems.element)}catch(n){var y,S;g.Mf(new g.kc("Failed to remove menu items from panel menu.",{error:n.message,originalStack:n.stack,childToBeRemoved:(S=(y=p.menuItems.element.firstChild)==null?void 0:y.textContent)!=null?S:"child element not found"}))}p.menuItems.publish("size-change")}; vOh=function(){return{X:"svg",V:{viewBox:"0 0 24 24"},N:[{X:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",V:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}}; w8=function(p){return p!=null&&p>=0&&p<=1}; pv=function(p,a,l){return p.split(a).CO.split(l).HV}; ebv=function(p){var a=p.baseUrl;Kah(a)||p.error("drm.net",2,"t.x");if(!$0(a,"fexp")){var l=["23898307","23914062","23916106","23883098"].filter(function(S){return p.Y.experiments.experiments[S]}); l.length>0&&(p.W.fexp=l.join())}l=g.t(Object.keys(p.W));for(var y=l.next();!y.done;y=l.next())y=y.value,a=zIf(a,y,p.W[y]);return a}; b2Z=function(p){var a;(a=p.L)==null||a.AT();var l;(l=p.S)==null||l.AT();p.W=!1}; sx=function(p){NM.call(this,p.callback,p.slot,p.sY,p.uT,p.dG,p.ac,p.sO,p.lr,p.uM,p.cL,p.Um,p.Oi,p.Bz,p.EO,p.Sc,p.Pl,p.context);var a=this;this.adCpn="";this.c$=this.kM=0;this.XI=PR(function(){TkM(sF(a));a.dX.Pa(a.slot,a.layout)}); this.F9=PR(function(){Nkr(sF(a));a.Cx!=="rendering_stop_requested"&&a.Um(a);a.layoutExitReason?a.dX.Dy(a.slot,a.layout,a.layoutExitReason):sPh(a)}); this.oM=p.oM;this.BZ=p.BZ;this.gq=p.gq;this.VL=p.VL;this.Ty=p.Ty;this.Um=p.Um;if(!this.lC()){s1(this.EO.get(),"html5_disable_media_load_timeout")||(this.fm=new g.l_(function(){a.ut("load_timeout",new Xd("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); p=Wi(this.EO.get());var l=Nu(this.EO.get());p&&l&&(this.Cd=new g.l_(function(){var y=PE(a.layout.clientMetadata,"metadata_type_preload_player_vars");y&&a.BZ.get().B.preloadVideoByPlayerVars(y,2,300)}))}}; RbF=function(p,a){Ux(p.uT.get(),{cuepointTrigger:{event:ICO(a.event),cuepointId:a.identifier,totalCueDurationMs:a.DI*1E3,playheadTimeMs:a.L,cueStartTimeMs:a.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:p.B.getVideoData(1).clientPlaybackNonce}})}; O2A=function(p,a){return uhO(p.EO.get())?new Eb(p.L,a,["normal","error","skipped"]):new Eb(p.L,a,["normal"])}; Qc=function(p){p.hasCompleted=!0;p.po!=0&&(p.po=3)}; x8o=function(p,a){var l=p.OO[a];a=p.O6[a];var y=h3(p),S=M3(p.U,l.start/1E3,0),n=kIA(l,p.W)/y.width;var V=M3(p.U,l.end/1E3,1);n!==Number.POSITIVE_INFINITY&&(S=g.Lu(S,0,V-n));V=Math.min(V,S+n);l.color&&(a.style.background=l.color);l=S;a.style.left=Math.max(l*y.L+y.j,0)+"px";TH(p,a,g.Lu((V-l)*y.L+y.j,0,y.width),y.width,!0)}; g.A3=function(p,a){p%=a;return p*a<0?p+a:p}; mVr=function(p,a){var l=p.api.getRootNode();g.JB(l,"ytp-fullscreen-grid-peeking",a===1);g.JB(l,"ytp-fullscreen-grid-active",a===2);a===1&&Mhr(p)}; Kah=function(p){var a=a===void 0?!1:a;return ej(bW(p,thM),p,a,"Drm Licensor URL")}; oAA=function(p){p=new gm(p.data,p.offset,p.size,p.type,p.S);var a=Y0(p);p.skip(7);var l=Jn(p);if(a===0){a=Jn(p);var y=Jn(p)}else a=wq(p),y=wq(p);p.skip(2);for(var S=qD(p),n=[],V=[],z=0;z=1080||a.osid))return Fz;var y=g.sW(p.Y.experiments,"html5_autonav_quality_cap"),S=g.sW(p.Y.experiments,"html5_autonav_cap_idle_secs");return y&&a.isAutonav&&XV()/1E3>S?(l&&(y=WQe(p,l,y)),new NE(0,y,!1,"e")):Fz}; J3=function(p,a){a=a===void 0?2:a;g.qu.call(this);this.api=p;this.L=null;this.handler=new FM(this);g.E(this,this.handler);this.S=DVf;this.handler.J(this.api,"presentingplayerstatechange",this.Eg);this.L=this.handler.J(this.api,"progresssync",this.rq);this.N5=a;this.N5===1&&this.rq()}; i2O=function(p){return p.D("html5_onesie_host_probing")||p.kT?fn:!1}; pk=function(p,a){p.B.cueVideoByPlayerVars(a,2)}; DV=function(){aL||(aL=new TlZ);return aL}; NlO=function(p,a,l,y,S,n,V){V==="PLAY_PROGRESS"&&(l=!y||p.api.C().S?1:l/y,p.bf.clientWidth>0||p.o4.clientWidth>0?(n=a.clientWidth/l,p=-1*p.bf.clientWidth/l):(n/=l,p=-1*p.L[S].element.offsetLeft/l),g.B8(a,"background-size",n+"px"),g.B8(a,"background-position-x",p+"px"))}; lc=function(p,a,l,y,S,n,V){Nj.call(this,p,a,l,y,n===void 0?!0:n,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",V===void 0?!1:V);this.L=null;this.j=S;this.hide()}; y9=function(p,a,l){if(a<=0){l=wR();a="silenciado";var y=0}else l=l?{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,V:{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"}}]}:{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,V:{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"}}]},y=Math.floor(a),a=y+"volumen";bQ(p,l,a,y+"%")}; Doh=function(){return{XX:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],OE:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; g.ZJ=function(p){if(p instanceof Sd||p instanceof nk||p instanceof V9)return p;if(typeof p.next=="function")return new Sd(function(){return p}); if(typeof p[Symbol.iterator]=="function")return new Sd(function(){return p[Symbol.iterator]()}); if(typeof p.y9=="function")return new Sd(function(){return p.y9()}); throw Error("Not an iterator or iterable.");}; oL=function(p,a){return p==a?!0:p&&a?p.top==a.top&&p.right==a.right&&p.bottom==a.bottom&&p.left==a.left:!1}; zc=function(p){return!!(p.Fe&&p.slot&&p.layout)}; Wj=function(p){p.setAttribute("role","link")}; WQ=function(){p0.apply(this,arguments)}; sCO=function(p,a){a>0&&(p.S=a,p.K.style.height=p.S+"px")}; Gc=function(p){var a;!(a=p.L.info.h9==="f")&&(a=p.policy.j)&&(a=p.j,a=!!a.K&&my(a.K));if(a)return!0;a=cH(p);if(!a)return!1;var l=d_(a)&&a.j;return p.isManifestless&&p.QY>0?l||a.Rc>=p.QY:l}; g.D=function(){this.zF=this.zF;this.Rr=this.Rr}; BL=function(p,a,l,y){a=eF(a);var S=p instanceof Error?p:Error("Unexpected error: "+p);if(S instanceof g.ka)return S;p={objectStoreNames:l,dbName:a,dbVersion:y};if(S.name==="QuotaExceededError")return new g.ka("QUOTA_EXCEEDED",p);if(g.yd&&S.name==="UnknownError")return new g.ka("QUOTA_MAYBE_EXCEEDED",p);if(S instanceof FZ)return new g.ka("MISSING_INDEX",Object.assign({},p,{objectStore:S.objectStore,index:S.index}));if(S.name==="InvalidStateError"&&UVr.some(function(n){return S.message.includes(n)}))return new g.ka("EXECUTE_TRANSACTION_ON_CLOSED_DB", p); if(S.name==="AbortError")return new g.ka("UNKNOWN_ABORT",p,S.message);S.args=[Object.assign({},p,{name:"IdbError",LQ:S.name})];S.level="WARNING";return S}; hbo=function(p,a){return p.enabledEngageTypes.has(a.toString())||QCf.includes(a)}; gOr=function(p){var a=g.yI();if(p==="Internet Explorer"){if(DQM())if((p=/rv: *([\d\.]*)/.exec(a))&&p[1])a=p[1];else{p="";var l=/MSIE +([\d\.]+)/.exec(a);if(l&&l[1])if(a=/Trident\/(\d.\d)/.exec(a),l[1]=="7.0")if(a&&a[1])switch(a[1]){case "4.0":p="8.0";break;case "5.0":p="9.0";break;case "6.0":p="10.0";break;case "7.0":p="11.0"}else p="7.0";else p=l[1];a=p}else a="";return a}var y=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");l=[];for(var S;S=y.exec(a);)l.push([S[1],S[2],S[3]||void 0]); a=ATE(l);switch(p){case "Opera":if(jQ())return a(["Version","Opera"]);if(Mw()?Wr("Opera"):na("OPR"))return a(["OPR"]);break;case "Microsoft Edge":if(Mw()?0:na("Edge"))return a(["Edge"]);if(ITA())return a(["Edg"]);break;case "Chromium":if(tO())return a(["Chrome","CriOS","HeadlessChrome"])}return p==="Firefox"&&Hr()||p==="Safari"&&DO()||p==="Android Browser"&&Crq()||p==="Silk"&&na("Silk")?(a=l[2])&&a[1]||"":""}; g.w_=function(p,a,l){if(g.cL(l))return p;l=g.rNF(l);if(typeof p==="string")return va(p,g.Ls(a),l);g.r_(p,a,l);return p}; Jee=function(p){return Q0(p.slot,p.EO.get())?new $k(p):new E_(p)}; Viq=function(p,a){return p.Rc!==a.Rc&&a.Rc!==p.Rc+1||p.type!==a.type?!1:PL(p,a)?!0:Math.abs(p.W-a.W)<=1E-6&&p.Rc===a.Rc?!1:YVr(p,a)}; NY=function(p,a){g.rW(p.W,a)||(p.W.push(a),a.fd(p.L),a.OG(p.j),a.KU()&&(p.Sl=!0))}; JTF=function(p,a){p.L&&qVE(p.L,a)}; g.lr=function(p,a,l){if(fCM&&!a)p=g.dD.btoa(p);else{for(var y=[],S=0,n=0;n255){var z=Error("go/unicode-to-byte-error");if(l)throw z;y[S++]=V&255;V>>=8}y[S++]=V}p=g.MN(y,a)}return p}; pWM=function(p,a){if(sr(p.L,a)&&Lk(r1(p.L,a))&&XB(p.L,a)&&!ll(p.L,a)){var l;p.Tn.L0("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",a,(l=XB(p.L,a))!=null?l:void 0);p=r1(p.L,a);p.L!=="entered"&&xk(p.slot,p.L,"enterLayoutForSlot");p.L="rendering";p.U.startRendering(p.layout)}}; g.Ln=function(p){var a=[];if(p.displayName)a.push(p.displayName);else{var l=p.languageName||"";a.push(l);p.kind==="asr"&&l.indexOf("(")===-1&&a.push(" (Subt\u00edtulos autom\u00e1ticos)");p.name&&a.push(" - "+p.name)}p.translationLanguage&&a.push(" >> "+p.translationLanguage.languageName);return a.join("")}; fmF=function(p,a){a=String.fromCharCode.apply(null,a);return p==null?a:p+a}; O_=function(p){q_(p.EO.get())||p.L()}; vNA=function(p,a,l,y,S,n){if(!a)throw Error("Invalid event type");var V=g.sC(S)?!!S.capture:!!S,z=Q6(p);z||(p[pe]=z=new aP(p));l=z.add(a,l,y,V,n);if(l.proxy)return l;y=kGO();l.proxy=y;y.src=p;y.listener=l;if(p.addEventListener)ade||(S=V),S===void 0&&(S=!1),p.addEventListener(a.toString(),y,S);else if(p.attachEvent)p.attachEvent(sq$(a.toString()),y);else if(p.addListener&&p.removeListener)p.addListener(y);else throw Error("addEventListener and attachEvent are unavailable.");d5M++;return l}; x9=function(p){return FB(p.Vh(),p.getCurrentTime())}; HaF=function(p){if(p.playlist&&g.iT(p.Y)&&p.rD()){var a=p.Y.D("html5_player_autonav_logging");p.nextVideo(!1,a);return!0}return!1}; Tf=function(p,a,l,y){this.top=p;this.right=a;this.bottom=l;this.left=y}; qC=function(){}; ldq=function(p,a,l){if(p.appInstallData)if(a){var y;l=(y=Kv(a,E2,62))!=null?y:new E2;GY(l,6,p.appInstallData);$W(a,E2,62,l)}else l&&(l.client.configInfo=l.client.configInfo||{},l.client.configInfo.appInstallData=p.appInstallData)}; VTr=function(p){var a;return(a=p[ynv])!=null?a:p[ynv]=new Map(S0M(nKf(p)).map(function(l){return[l.getName(),n8(l,2)]}))}; g.ed=function(p){return(p.deviceIsAudioOnly||!g.TE||bp||p.controlsType==="3"?!1:g.Ck?p.j&&g.PT(51):!0)||(p.deviceIsAudioOnly||!g.sX||bp||p.controlsType==="3"?!1:g.Ck?p.j&&g.PT(48):g.PT(38))||(p.deviceIsAudioOnly||!g.vL||bp||p.controlsType==="3"?!1:g.Ck?p.j&&g.PT(37):g.PT(27))||!p.deviceIsAudioOnly&&g.Kk&&!ZWr()&&g.PT(11)||!p.deviceIsAudioOnly&&g.yd&&g.PT("604.4")}; C9=function(p,a,l,y){g.D.call(this);this.S=a;this.Tn=l;this.EO=y;this.L=p(this,this,this,this,this);g.E(this,this.L);p=g.t(a);for(a=p.next();!a.done;a=p.next())g.E(this,a.value)}; bc=function(p,a,l,y,S){bT.call(this,l,p,a,y);this.uT=S;p=PE(a.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(a.Xh,S,p,a.layoutId)}; oKf=function(p,a){var l;if(g.oO("web_log_memory_total_kbytes")&&((l=g.dD.navigator)==null?0:l.deviceMemory)){var y;l=(y=g.dD.navigator)==null?void 0:y.deviceMemory;p?U9(p,95,Hf(l*1E6)):a&&(a.client.memoryTotalKbytes=""+l*1E6)}}; rnM=function(p,a,l){l=l===void 0?null:l;var y=zNq(typeof p==="string"?p:p.toString()),S=document.getElementById(y),n=S&&TrM(S),V=S&&!n;n?a&&a():(a&&(n=g.IL(y,a),a=""+g.Wk(a),dLZ[a]=n),V||(S=GgM(p,y,function(){TrM(S)||(BEq(S),g.RL(y),g.aY(function(){cnh(y)},0))},l)))}; gWA=function(){var p=g.dD.__SAPISID||g.dD.__APISID||g.dD.__3PSAPISID||g.dD.__1PSAPISID||g.dD.__OVERRIDE_SID;if(p)return!0;typeof document!=="undefined"&&(p=new oX(document),p=p.get("SAPISID")||p.get("APISID")||p.get("__Secure-3PAPISID")||p.get("__Secure-1PAPISID"));return!!p}; wWo=function(p,a){return p.L.length===0?!1:(p=p.L[p.L.length-1])&&p.buffer===a.buffer&&p.byteOffset+p.length===a.byteOffset}; DAe=function(p){p=p.xhr.responseText;if(!aq(p,")]}'"))throw new uc;p=JSON.parse(p.substr(4));if((p.type||1)>1)throw new uc;p=p.id;FuM(p);gM=o7(p);ECF(18E5,2);return p}; q8r=function(){if(O2!==void 0)return O2;kk=!0;return O2=G2e().then(function(p){kk=!1;var a;if((a=H0())!=null&&a.L){var l;a={hasSucceededOnce:((l=Du())==null?void 0:l.hasSucceededOnce)||p};var y;(y=H0())==null||y.set("LAST_RESULT_ENTRY_KEY",a,2592E3,!0)}return p})}; tW=function(p){var a=p.isMuted()?0:p.getVolume();MP.call(this,0,100,1,a,void 0,!0);this.B=p;this.UO=mF(this.w7,10,this);this.Z=!1;this.J(p,"onVolumeChange",this.onVolumeChange);this.J(this.element,"wheel",this.Xu)}; DkE=function(p,a){p.configData=a;g.M8("yt.gcf.config.coldConfigData",p.configData||null)}; $Lr=function(){if(!jd.instance){var p=new jd;jd.instance=p}return jd.instance}; PqO=function(p){return p.action==="END_LINEAR_AD"||p.action==="END_LINEAR_AD_PLACEMENT"}; $H=function(p,a){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=a||p(this.triggerType)}; LGe=function(p){var a=p.provider.videoData.Cl,l=p.provider.videoData.Fl,y=[10+a,10,10,40+l-a,40],S,n=(S=p.provider.videoData.getPlayerResponse())==null?void 0:S.playbackTracking,V=n==null?void 0:n.videostatsScheduledFlushWalltimeSeconds;S=n==null?void 0:n.videostatsDefaultFlushIntervalSeconds;if(!(V&&V.length>0&&S))return y;a=[V[0]+a].concat(g.u0(V.slice(1).map(function(z,d){return z-V[d]})),[S+l-a, S]);return a.some(function(z){return z<0})?(g.JK(p.logger,347111855,"Neg vss scheduled pings "+V+" "+S),y):a}; XWo=function(p){p.then(function(){},function(){})}; xLA=function(p,a,l){var y=p.L.get(a);y?(y.push(l),g.Ei(y,function(S,n){return S.QL-n.QL})):p.L.set(a,[l])}; TkM=function(p){var a=p.layoutId,l=p.q8;if(p.z2){var y={};WL(p.Y3,"slso",(y.ec=a,y.is=l,y.ctp=Mu(a),y))}}; FGF=function(p,a){if(p.S&&!p.D("html5_disable_d6de4_mint_debug")){var l=a.videoId;p.U=3;p.QQ.Xb("pt_ms");try{p.S.requestToken(l).then(function(y){p.QQ.Xb("pt_mf");if(y=hT(y))a.fP={D2s:y}}).catch(function(y){p.QQ.Xb("pt_me"); HL(y,"player_generate");p.handleError(y,a)})}catch(y){HL(y,"player_generate_catch"),p.handleError(y,a)}}}; EKr=function(){}; M4r=function(){var p=p===void 0?CqO():p;return p.map(function(a){return MO(a)})}; Tc=function(p){if(p.Yo()&&!p.api.isEmbedsShortsMode()&&p.A3){var a=p.api.D("web_player_hide_overflow_button_if_empty_menu");!p.lc||a&&!bTM(p.lc)||DJ(p.A3,p.lc);!p.shareButton||a&&!ic(p.shareButton)||DJ(p.A3,p.shareButton);!p.copyLinkButton||a&&!vKq(p.copyLinkButton)||DJ(p.A3,p.copyLinkButton)}else{a=p.api.C().getWebPlayerContextConfig();if(p.A3){for(var l=p.A3,y=g.t(l.actionButtons),S=y.next();!S.done;S=y.next())S.value.detach();l.actionButtons=[]}p.searchButton&&!g.oh(p.Hi.element,p.searchButton.element)&& p.searchButton.lT(p.Hi.element);!p.lc||(a==null?0:a.hideTopWatchNextButton)||g.oh(p.Hi.element,p.lc.element)||p.lc.lT(p.Hi.element);!p.shareButton||(a==null?0:a.hideTopShareButton)||g.oh(p.Hi.element,p.shareButton.element)||p.shareButton.lT(p.Hi.element);p.copyLinkButton&&!g.oh(p.Hi.element,p.copyLinkButton.element)&&p.copyLinkButton.lT(p.Hi.element)}}; s2=function(p,a,l){if(sr(p.L,a)){a:switch(r1(p.L,a).L){case "exit_requested":var y=!0;break a;default:y=!1}if(!y)a:switch(r1(p.L,a).L){case "rendering_stop_requested":y=!0;break a;default:y=!1}if(y&&(r1(p.L,a).W=!0,!l))return;if(Lk(r1(p.L,a)))r1(p.L,a).W=!0,KGA(p,a,l);else{a:switch(r1(p.L,a).j){case "fill_requested":l=!0;break a;default:l=!1}if(l)r1(p.L,a).W=!0,sr(p.L,a)&&(p.Tn.jo("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",a),a=r1(p.L,a),a.j="fill_cancel_requested",a.K.ll());else{l= XB(p.L,a);(y=p.EO.get().B.C().experiments.Cz("h5_enable_layout_unscheduling_events"))&&(l?p.EY(a,l):hF(Error("Layout is null for LayoutUnscheduled event."),a,l,void 0,!1));p.Tn.jo("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",a);var S=r1(p.L,a),n=a.slotEntryTrigger,V=S.w7.get(n.triggerId);V&&(V.Fv(n),S.w7.delete(n.triggerId));n=g.t(a.slotFulfillmentTriggers);for(V=n.next();!V.done;V=n.next()){V=V.value;var z=S.UO.get(V.triggerId);z&&(z.Fv(V),S.UO.delete(V.triggerId))}n=g.t(a.slotExpirationTriggers); for(V=n.next();!V.done;V=n.next())if(V=V.value,z=S.Sl.get(V.triggerId))z.Fv(V),S.Sl.delete(V.triggerId);S.layout!=null&&(n=S.layout,NP(S,n.layoutExitNormalTriggers),NP(S,n.layoutExitSkipTriggers),NP(S,n.layoutExitMuteTriggers),NP(S,n.layoutExitUserInputSubmittedTriggers),NP(S,n.layoutExitUserCancelledTriggers));S.K=void 0;S.S!=null&&(S.S.release(),S.S=void 0);S.U!=null&&(S.U.release(),S.U=void 0);S=p.L;r1(S,a)&&(S=cf(S,a.slotType+"_"+a.slotPhysicalPosition))&&S.delete(a.slotId);p.Tn.jo("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED", a);p=g.t(p.S);for(S=p.next();!S.done;S=p.next())S=S.value,S.t5(a),l&&!y&&S.EY(a,l)}}}}; U2=function(p,a,l,y){hF(l,a,void 0,void 0,l.Yt);l.Bo?p.Tn.jT(y,l.Bo,a):hF("adsClientErrorMessage is missing.",a);s2(p,a,!0)}; SX=function(p,a){var l=p.QP>=0?p.QP:-1,y=p.Ba-p.QP,S=0;if(p.level>0){p.ph.jx===2&&(p.ph.jx=Cfe(p));Q9(p,p.qY);Q9(p,p.Be);Q4v(p,p.QZ,p.qY.Vc);Q4v(p,p.uJ,p.Be.Vc);Q9(p,p.C7);for(S=18;S>=3&&p.C0[eNA[S]*2+1]===0;S--);p.fN+=3*(S+1)+5+5+4;var n=p.fN+3+7>>>3;var V=p.SI+3+7>>>3;V<=n&&(n=V)}else n=V=y+5;if(y+4<=n&&l!==-1)$P(p,a?1:0,3),MaM(p,l,y);else if(p.strategy===4||V===n)$P(p,2+(a?1:0),3),bWE(p,zx,hW);else{$P(p,4+(a?1:0),3);l=p.qY.Vc+1;y=p.Be.Vc+1;S+=1;$P(p,l-257,5);$P(p,y-1,5);$P(p,S-4,4);for(n=0;n":(p=kgq(a.map(function(y){return y instanceof rC?y:eN(String(y))})),l+=">"+p.toString()+""); return dG(l)}; aA=function(p){p.readyState=4;p.j=null;p.U=null;p.K=null;Il(p)}; lR=function(p,a){var l=l===void 0?v8:l;return new KO(p,a,l)}; Sn=function(p,a){p.timestampOffset!==a&&(p.timestampOffset=a,p.policy.n1&&yM(p.MO),p.U.Z=p.timestampOffset,p.Lz.Tg(p.timestampOffset),p.MO.isManifestless&&(p.MO.timestampOffset=p.timestampOffset),p.videoTrack.y5(p.timestampOffset),p.audioTrack.y5(p.timestampOffset))}; tTM=function(p,a,l,y){if(!a||!l||!a.videoData.S)return!1;var S=g.sW(p.Y.experiments,"html5_df_downgrade_thresh"),n=p.D("html5_log_media_perf_info");if(!((0,g.Ek)()-p.j<5E3?0:n||S>0))return!1;var V=((0,g.Ek)()-p.j)/1E3;p.j=(0,g.Ek)();l=l.getVideoPlaybackQuality();if(!l)return!1;var z=l.droppedVideoFrames-p.G,d=l.totalVideoFrames-p.Z;p.G=l.droppedVideoFrames;p.Z=l.totalVideoFrames;var G=l.displayCompositedVideoFrames===0?0:l.displayCompositedVideoFrames||-1;n&&p.Y.ao()&&p.Lz.jl("ddf",{dr:l.droppedVideoFrames, de:l.totalVideoFrames,comp:G});if(y)return p.L=0,!1;if((d-z)/V>p.Sl||!S||g.g5(p.Y))return!1;p.L=(d>60?z/d:0)>S?p.L+1:0;if(p.L!==3)return!1;z7$(p,a.videoData.S);p.Lz.jl("dfd",Object.assign({dr:l.droppedVideoFrames,de:l.totalVideoFrames},mLh()));return!0}; jyq=function(p,a,l,y,S,n,V){n3(p,a,new g.VM(l,new g.Z5),y,S,V,!1,n)}; WGZ=function(p,a,l,y,S,n,V,z,d,G){a=p1(p,a,l,y,n,new Map,V,function(B){return z(B,d)},void 0,a_(p,l,S.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); p=new vk(p.L,a.SY);l=new l3(a.SY);G=new y2(G);return{sY:{layoutId:a.layoutId,layoutType:a.layoutType,Xh:a.Xh,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],iT:a.iT,clientMetadata:new Lc([].concat(g.u0(a.RN),[l,G])),nx:a.nx,adLayoutLoggingData:a.adLayoutLoggingData},gA:a.layoutExitSkipTriggers,gh:a.layoutExitMuteTriggers,tT:[].concat(g.u0(a.layoutExitUserInputSubmittedTriggers),[p]),vC:a.layoutExitUserCancelledTriggers, T9:a.T9}}; rmM=function(p,a,l){return p.call.apply(p.bind,arguments)}; wsZ=function(p){function a(){for(;y=p.stack.pop();)try{if(!y.async&&S===1)return S=0,p.stack.push(y),Promise.resolve().then(a);if(y.dispose){var n=y.dispose.call(y.value);if(y.async)return S|=2,Promise.resolve(n).then(a,function(V){l(V);return a()})}else S|=1}catch(V){l(V)}if(S===1)return p.hasError?Promise.reject(p.error):Promise.resolve(); if(p.hasError)throw p.error;} function l(n){p.error=p.hasError?new SuppressedError(n,p.error,"An error was suppressed during disposal."):n;p.hasError=!0} var y,S=0;a()}; HWA=function(p){p.S&&(p.S.dispose(),p.S=void 0)}; oA=function(p){p=wj(p);p.tick||(p.tick={});return p.tick}; dH=function(p){p.Xu&&(p.isToggled()?(g.ze(p.Z,!1),g.ze(p.W,!0),p.S.setAttribute("aria-checked",!0)):(g.ze(p.Z,!0),g.ze(p.W,!1),p.S.setAttribute("aria-checked",!1)))}; Bu=function(){Ge.apply(this,arguments);this.requestHeaders={}}; DLq=function(p){var a=g.KU(p);var l=(l=g.KI(a,0,1936286840))?l.data.getUint32(l.dataOffset+8):NaN;isNaN(l)&&(p=p.info.L.L,l=(a=g.KI(a,0,1836476516))?g.p6(a):p?y6(p):NaN);return l}; iWr=function(p,a,l){return a?a.map(function(y){return y instanceof f2?cu(p,y.key,l,!0):cu(p,y,l)}):[]}; GD=function(p,a,l){g.D.call(this);this.position=TEh.clone();this.X$=this.UP();this.tO=-2;this.timeCreated=Date.now();this.H5=-1;this.d8=a;this.zG=null;this.dD=!1;this.aS=null;this.opacity=-1;this.requestSource=l;this.bql=!1;this.MC=function(){}; this.zL=function(){}; this.bk=new NfZ;this.bk.d1=p;this.bk.L=p;this.Fd=!1;this.Q2={oF:null,ZG:null};this.oO=!0;this.ma=null;this.sy=this.jc9=!1;LO().G++;this.D1=this.Se();this.bR=-1;this.r$=null;this.hasCompleted=this.YI=!1;this.sC=new L9;NEv(this.sC);mNv(this);this.requestSource==1?wy(this.sC,"od",1):wy(this.sC,"od",0)}; syv=function(p){var a=g.q$("html5-video-player");a&&g.JB(a,"ytp-ad-display-override",p)}; rH=function(p,a){this.intervalMs=p;this.callback=a;this.enabled=!1;this.L=function(){return g.XS()}; this.S=this.L()}; wH=function(p,a){ct(p,a.reason,a.L.info,a.token,a.videoId)}; cxM=function(p){for(var a=[],l=0;l0?Math.min(S,r):r;return V(B).then(function(){n&&n(c,G-1);return z(uH(p,a),G-1,w)})})} S=S===void 0?-1:S;return z(uH(p,a),l-1,y)}; g.sW=function(p,a,l){l=l===void 0?0:l;p=p.Zy(a);JSON.stringify(p);return p===void 0?l:Number(p)}; IA=function(p){return p.backButton?(p.backButton.focus(),!0):!1}; g.RA=function(p){p=p===void 0?{}:p;g.yT.call(this);var a=this;this.L=this.j=0;this.S=YLo();var l=g.o4("yt.networkStatusManager.instance.listen").bind(this.S);l&&(p.rateLimit?(this.rateLimit=p.rateLimit,l("networkstatus-online",function(){Vgf(a,"publicytnetworkstatus-online")}),l("networkstatus-offline",function(){Vgf(a,"publicytnetworkstatus-offline")})):(l("networkstatus-online",function(){a.dispatchEvent("publicytnetworkstatus-online")}),l("networkstatus-offline",function(){a.dispatchEvent("publicytnetworkstatus-offline")})))}; uR=function(p,a){var l=new g.ib(a);(a=l.get("req_id"))&&p.set("req_id",a);g.Re(p.L,function(y,S){l["set"](S,null)}); return l}; MR=function(p){QH.call(this,p);var a=this;this.j=this.U=!1;this.S=new g.hm(p);g.E(this,this.S);this.Sl="2x";this.speedmasterUserEdu=new Oj(p,this.Sl);g.E(this,this.speedmasterUserEdu);g.uW(this.api,this.speedmasterUserEdu.element,4);this.L=new g.Us(this.api.Fu().BA,!0,null,!1,!0);g.E(this,this.L);this.delay=new g.l_(this.Bs,500,this);g.E(this,this.delay);this.S.J(p,"videodatachange",function(){kg(a)},this); this.S.J(p,"presentingplayerstatechange",function(){kg(a)},this); this.S.J(p,"autonavvisibility",function(){kg(a)},this); this.api.TM().subscribe("visibilitystatechange",function(){kg(a)}); this.S.J(p,"rootnodemousedown",function(l){a.K=l}); this.D("web_speedmaster_spacebar_control")&&(this.S.J(p,"keyboardserviceglobalkeydown",function(l,y){a.UO=y;Zrr(a,l,y.gy,!0)},this),this.S.J(p,"keyboardserviceglobalkeyup",function(l){Zrr(a,l,!1,!1)},this))}; ms=function(p,a,l){p.L[a]||(p.jl("huli-sdai-err",l),p.L[a]=!0)}; N3r=function(p,a){return a2h(p,a)}; oYM=function(p){p.S&&(p.j=new tV,p.W.promise.then(function(){p.QQ.Xb("pot_if");ku(p)}))}; t$=function(){return g.Ck&&g.g8("version/")}; aX=function(p){function a(P,F,v,I){if(!y.logger.Gm()){var b="k";F?b="h":v&&(b="u");b!=="k"?I!==0&&(y.logger.B8(b),y.logger.sS(b,P)):y.S<=0?(y.logger.B8(b),y.logger.sS(b,P),y.S=Math.floor(Math.random()*200)):y.S--}} function l(P,F,v,I){Promise.resolve().then(function(){d.done();z.BI();z.dispose();V.resolve({xO:P,c$z:F,WyY:v,zgv:I})})} g.D.call(this);var y=this;this.S=Math.floor(Math.random()*200);this.L=new jn;if("challenge"in p&&z2M(p.challenge)){var S=$K(p.challenge,4,void 0,Vm);var n=$K(p.challenge,5,void 0,Vm);$K(p.challenge,7,void 0,Vm)&&(this.L=dTF($K(p.challenge,7,void 0,Vm)))}else S=p.program,n=p.globalName;this.addOnDisposeCallback(function(){var P,F,v;return g.R(function(I){if(I.L==1)return g.u(I,y.U,2);P=I.S;F=P.c$z;(v=F)==null||v();g.lD(I)})}); this.logger=GDq(p.FQ||{},this.L);g.E(this,this.logger);var V=new g.rQ;this.U=V.promise;this.logger.B8("t");var z=this.logger.share(),d=new Wu(z,"t");if(!g.dD[n])throw this.logger.Tf(25),Error("EGOU");if(!g.dD[n].a)throw this.logger.Tf(26),Error("ELIU");try{var G=g.dD[n].a;n=[];for(var B=[],c=qMM(this.L),r=0;r0){if(a<604800){var V,z,d,G;l=(V=p.L)==null?void 0:(z=V.bannerData)==null?void 0:(d=z.itemData)==null?void 0:(G=d.exclusivesData)==null?void 0:G.exclusiveOfferCountdownText;if(l!==void 0)for(V=Date.now(),z=g.t(l),d=z.next();!d.done;d=z.next())if(d=d.value,d!==void 0&&d.text!==void 0&&(G=Number(d.textDisplayStartTimestampMs), !isNaN(G)&&V>=G)){d.insertCountdown?(a=d.text.replace(/\$0/,String(iR({seconds:a}))),p.G.setContent(a)):p.G.setContent(d.text);p.G.show();break}}var B,c,r,w;p.W.update({exclusive:(B=p.L)==null?void 0:(c=B.bannerData)==null?void 0:(r=c.itemData)==null?void 0:(w=r.exclusivesData)==null?void 0:w.exclusiveOfferLabelText});p.W.show();Os(p);var P;(P=p.oo)==null||P.start()}else Te(p)}; PA=function(p,a,l,y,S){fo.call(this,p,a,l,y,"survey-question-single-select",function(V){n.api.C().D("supports_multi_step_on_desktop")&&S([V])}); var n=this;this.hide()}; NR=function(p,a,l,y,S,n,V,z){bT.call(this,p,a,l,y);this.uT=S;this.Ye=n;this.G=z;this.FF=!0;this.j=null;this.W=PE(l.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Iq(this.Ye(),this);p=PE(l.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,this.uT,p,l.layoutId)}; sj=function(p,a,l,y){y=y===void 0?240:y;g.X.call(this,{X:"button",A9:["ytp-button","ytp-share-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":l.element.id,"data-tooltip-opaque":String(g.wW(p.C()))},N:[{X:"div",T:"ytp-share-icon",yY:"{{icon}}"},{X:"div",T:"ytp-share-title",yY:"Compartir"}]});this.api=p;this.L=a;this.S=l;this.U=y;this.visible=!1;this.tooltip=this.L.ZI();p.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.J(p,"videodatachange",this.pz);this.J(p,"videoplayerreset",this.pz);this.J(p,"appresize",this.pz);this.J(p,"presentingplayerstatechange",this.pz);this.pz();this.addOnDisposeCallback(g.gh(this.tooltip,this.element))}; dkA=function(p,a){var l;return g.R(function(y){if(y.L==1)return g.u(y,g.bx(Fm,a),2);l=y.S;return y.return(g.Nk(l,["databases"],{Gn:!0,mode:"readwrite"},function(S){var n=S.objectStore("databases");return n.get(p.actualName).then(function(V){if(V?p.actualName!==V.actualName||p.publicName!==V.publicName||p.userIdentifier!==V.userIdentifier:1)return g.U8(n,p).then(function(){})})}))})}; OC=function(p,a,l){p=g.gh(p.ZI(),a);return l?(l.addOnDisposeCallback(p),null):p}; Uj=function(p){this.NO=Dm(p)}; xTv=function(p,a){Ym(p,1,a.cpn);NQ(p,2,a.sequenceNumber);Ym(p,3,a.serializedWatchEndpointLoggingContext);if(a.decoderInfo)for(var l=0;l=43&&(p=!0);K3$("Firefox")<=40&&(p=!1);return p}; brM=function(p){var a;g.R(function(l){switch(l.L){case 1:return g.$r(l,2),g.u(l,p.j,4);case 4:g.L8(l,3);break;case 2:g.L6(l);case 3:(a=p.U)==null||a.disconnect(),g.lD(l)}})}; Iur=function(p,a,l,y,S,n,V,z,d){var G=r6(g.T(a,iQ),d),B=l.La,c=l.Oi,r=Math.min(B+G.videoLengthSeconds*1E3,z);l.La=r;l.Oi++;l.hLs.push(G.videoLengthSeconds);var w,P,F=(w=g.T(a,iQ))==null?void 0:(P=w.playerOverlay)==null?void 0:P.instreamSurveyAdRenderer;if(G.adVideoId==="nPpU29QrbiU"&&F==null)throw new TypeError("Survey slate media has no survey overlay");return function(v){zj(G.playerVars,v);var I,b,O=G.videoLengthSeconds,m=G.playerVars,H=G.Xh,Y=G.Yp,N=G.instreamAdPlayerOverlayRenderer,yo=G.playerOverlayLayoutRenderer, zq=G.adVideoId,S$=(I=g.T(a,iQ))==null?void 0:I.adLayoutLoggingData;I=(b=g.T(a,iQ))==null?void 0:b.sodarExtensionData;b=xc(y.S.get(),"LAYOUT_TYPE_MEDIA",p);var BE={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",iT:"adapter"};v={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Xh:H,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],iT:"adapter",clientMetadata:new Lc([new yK(V),new iv(O),new GK(m),new Ye(B),new qM(r), new ZD(c),new BN({current:null}),N&&new UO(N),yo&&new ox(yo),new ei(n),new d7(zq),new zK(v),I&&new br(I),F&&new f3(F),new P2({}),new WQ(Y)].filter(AMF)),nx:S(BE),adLayoutLoggingData:S$};O=LcA(g.T(a,iQ),n,V,v.layoutId,y);return{Mi:v,NcI:O}}}; g.pC=function(p,a,l){a=a===void 0?{}:a;l=l===void 0?!1:l;var y=g.ZM("EVENT_ID");y&&(a.ei||(a.ei=y));a&&XU(p,a);l||(C8(p),g.R2M(p))}; uqA=function(p,a){return a.getUserAudio51Preference()?g.Tz(p,aN):p}; fTA=function(p,a){return Q5(p.clientMetadata,"metadata_ad_video_is_listed")?PE(p.clientMetadata,"metadata_ad_video_is_listed"):a?a.isListed:(hF("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; kDf=function(p,a){return function(){p.Y.D("html5_simplify_pings")?(p.L=p.Hs,p.Kt=a(),p.o4=0,p.send()):zI(p).then(function(l){var y=lG(p);y.cmt=y.len;y.lact="0";var S=a().toFixed(3);y.rt=Number(S).toString();y=g.C2(p.uri,y);p.Y.D("vss_through_gel_double")&&OrF(y);p.QY?(l==null&&(l={}),p.t9?dl().sendAndWrite(y,l):dl().sendThenWrite(y,l)):l?g.lE(y,l):g.I8(y)})}}; yO=function(p,a,l){return typeof p==="string"?(p=encodeURI(p).replace(a,MgM),l&&(p=p.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),p):null}; W3E=function(p,a){var l=[];a=Array.from(a.getElementsByTagName("SegmentTimeline"));a=g.t(a);for(var y=a.next();!y.done;y=a.next()){y=y.value;var S=y.parentNode.parentNode,n=null;S.nodeName==="Period"?n=mTr(p):S.nodeName==="AdaptationSet"?(S=S.getAttribute("id")||S.getAttribute("mimetype")||"",n=tgO(p,S)):S.nodeName==="Representation"&&(S=S.getAttribute("id")||"",n=nJZ(p,S));if(n==null)return;n.update(y);g.N7(l,H8v(n))}g.N7(p.j,l);jnv(p.j,function(V){return V.startSecs*1E3+V.L})}; A6=function(p){return hd()?!JW(p):Iw()?!(!p.r7||!p.D("html5_enable_safari_fairplay")&&fk()):!1}; clo=function(p,a){var l=rlh(p);p.OC||(p.OC=new nN(p.api),g.E(p,p.OC),g.uW(p.api,p.OC.element,4));p.OC.Kx(a);var y=Se(p.api.DN());y&&y.loaded&&l!==a&&y.G6();a&&p.api.jl("sfn",{},!0)}; Hro=function(p){if(!p)return null;var a=p.split("x");if(a.length!==2)return null;p=Number(a[0]);a=Number(a[1]);return isNaN(p)||isNaN(a)||p*a<=0?null:new g.N6(p,a)}; HQ=function(p){var a,l;return(l=p==null?void 0:(a=p.activeViewTracking)==null?void 0:a.trafficType)!=null?l:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; ir$=function(p,a,l,y,S){y=y===void 0?0:y;S=S===void 0?0:S;p.B9()||R4(p);p.j=new tV;p.L=a;var n=l,V=S===0;V=V===void 0?!0:V;var z=p.app.qO(),d=z.getVideoData().isLivePlayback?Infinity:z.Mb(!0)*1E3;n>d&&(n=d-200,p.Z=!0);V&&z.getCurrentTime()>=n/1E3?p.K():(p.S=z,V&&(V=n,n=p.S,p.app.Tm.addEventListener(g.I4("vqueued"),p.K),V=isFinite(V)||V/1E3>n.getDuration()?V:0x8000000000000,p.G=new g.nF(V,0x8000000000000,{namespace:"vqueued"}),n.addCueRange(p.G)));V=y/=1E3;n=a.getVideoData().L;y&&n&&p.S&&(z=y,d=0, a.getVideoData().isLivePlayback&&(V=Math.min(l/1E3,p.S.Mb(!0)),d=Math.max(0,V-p.S.getCurrentTime()),z=Math.min(y,a.Mb()+d)),V=DTh(n,z)||y,V!==y&&p.L.jl("qvaln",{st:y,at:V,rm:d,ct:z}));a=V;y=p.L;y.getVideoData().b_=!0;y.getVideoData().K=!0;y.rI(!0);n={};p.S&&(n=p.S.Ho(),V=p.S.getVideoData().clientPlaybackNonce,n={crt:(n*1E3).toFixed(),cpn:V});y.jl("queued",n);a!==0&&y.seekTo(a+.01,{PA:!0,aC:3,JP:"videoqueuer_queued"});p.U=new nC(p.W,p.app.qO(),p.L,l,p.app,S);l=p.U;l.status.status!==Infinity&&(VO(l, 1),l.L.subscribe("internalvideodatachange",l.B1,l),l.S.subscribe("internalvideodatachange",l.B1,l),l.TR.C().D("html5_gapless_use_format_info_fix")&&(l.L.subscribe("internalvideoformatchange",l.B1,l),l.S.subscribe("internalvideoformatchange",l.B1,l)),l.L.subscribe("mediasourceattached",l.B1,l),l.S.subscribe("statechange",l.G$,l),l.L.subscribe("newelementrequired",l.No,l),l.B1());return p.j}; Tdo=function(p){var a;return(p==null?void 0:(a=p.adSlotMetadata)==null?void 0:a.slotType)==="SLOT_TYPE_IN_PLAYER"}; g.Z$=function(p,a){a=jP(a);a=Xk(a,a);a.j=!0;Lh(p,a);return p}; zl=function(){em.call(this);this.U=new KG;this.r7=this.Sl=this.Bs=0;this.Z=-1;this.Sb=new KG;this.W=new KG;this.L=new B0;this.G=this.j=-1;this.UO=new KG;this.Ps=2E3;this.t9=new oN;this.VY=new oN;this.Kz=new oN}; Ndr=function(p){var a;return(p=p==null?void 0:(a=p.error)==null?void 0:a.code)&&p>=400&&p<=599?!1:!0}; dx=function(p,a,l,y,S,n,V,z){this.sampleRate=p===void 0?0:p;this.numChannels=a===void 0?0:a;this.spatialAudioType=l===void 0?"SPATIAL_AUDIO_TYPE_NONE":l;this.L=y===void 0?!1:y;this.U=S;this.j=n;this.audioQuality=V===void 0?"AUDIO_QUALITY_UNKNOWN":V;this.S=z===void 0?!1:z}; snr=function(p,a,l){a.M9().currentState<2&&(l=Gl(l,p.EO),a.NE(a.J9(),l));l=a.M9().L;p.il(p.slot,a.J9(),l)}; g.Gq=function(p,a,l,y,S,n){g.D.call(this);this.element=p;this.state=null;l||p.hide();this.S=a;this.U=y===void 0?a:y;this.L=n;this.onHidden=S;this.delay=new g.l_(this.YB,0,this);g.E(this,this.delay)}; g.Ei=function(p,a){p.sort(a||B9)}; UEM=function(p,a,l){this.wM=a;this.L=l;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=p(this.triggerType)}; RX=function(p,a){if(!p)return NaN;a=hp(p,a);return a>=0?p.end(a):NaN}; Xkq=function(p,a,l,y){for(var S=0,n=p.length,V;S>>1),d=void 0;l?d=a.call(void 0,p[z],z,p):d=a(y,p[z]);d>0?S=z+1:(n=z,V=!d)}return V?S:-S-1}; UTM=function(p,a,l){a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;a!=null&&(GB(p,l,0),p.L.L.push(a?1:0))}; c9=function(p){var a,l=(a=p.config)==null?void 0:a.adPlacementConfig;p=p.renderer;return!(!l||l.kind==null||!p)}; QnO=function(p){function a(V,z){p.G_(V,z)} function l(V){V.getVideoData()&&p.updateVideoData(V.getVideoData())} function y(){p.Ar=new g.OS(0,0,0,0);p.Hw=new g.OS(0,0,0,0)} function S(V){p.Su&&kB(p);O1(p)!==p.wy&&p.resize();p.app.C().D("web_enable_smart_zoom")&&p.Sx&&(V.state.isPaused()?p.Sx.pause():g.mj(V,8)&&p.Sx.playState==="paused"&&p.Sx.play())} var n=p.app.Tm;n.addEventListener("initializingmode",y);n.addEventListener("videoplayerreset",l);n.addEventListener("videodatachange",a);n.addEventListener("presentingplayerstatechange",S);p.addOnDisposeCallback(function(){n.removeEventListener("initializingmode",y);n.removeEventListener("videoplayerreset",l);n.removeEventListener("videodatachange",a);n.removeEventListener("presentingplayerstatechange",S)})}; wGe=function(p){return h2r(p).map(function(a){return{deviceInterface:Aw$[gYE[a.Pp]]||0,deviceVersion:a.deviceVersion||"",isSleeping:a.Qq}})}; q6F=function(p,a,l,y){Y6h(p,a,l,"skipped",function(){rx(p,y)})}; fuh=function(p){return p.array.slice(Jwf(p,0x7ffffffffffff),p.array.length)}; MH=function(){var p=g.o4("yt.player.utils.videoElement_");p||(p=g.JI("VIDEO"),g.M8("yt.player.utils.videoElement_",p));return p}; aOe=function(p,a,l){p.Z&&clearTimeout(p.Z);p.L===0&&g.b6(p.api.getRootNode(),"ytp-grid-scrolling");a?pr$(p,l):p.L<.1&&(p.Z=window.setTimeout(function(){pr$(p)},1E3))}; wx=function(){this.next=this.scope=this.L=null}; doq=function(p,a){a=g.t(a);for(var l=a.next();!l.done;l=a.next())if(l=l.value,l.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var y=g.T(l.fulfillmentContent.fulfilledLayout,$i);if(y&&(y=g.T(y.renderingContent,P9))&&y.associatedPlayerBytesLayoutId===p)return l}}; LC=function(p,a){if(!a.SD||!p.B.aQ()){var l=a.vr||1E4,y=Wfr(a);p.L?a.videoId&&a.videoId!==p.videoId&&(g.Fe(p.L),p.videoId=a.videoId,y?(lOM(p,l,a),p.qE()):(p.Ro(),p.L.dispose(),p.L=null)):y&&(a.videoId&&(p.videoId=a.videoId),lOM(p,l,a),p.qE())}}; SSO=function(p){p=p===void 0?function(){return{}}:p; q8.V6="av-js";X2.L=.01;yOE([function(a){var l=LO(),y={};y=(y.bin=l.S,y.type="error",y);l=kA(l.sC);if(!wD.U){var S=wD,n=LU.document,V=SP>=0?nu()-SP:-1,z=nu();S.L.xR==-1&&(V=z);var d=TJ(),G=LO(),B=kA(G.sC),c=cT();try{if(c.length>0){var r=d.L;r&&(B.bs=[oU(r),r.getHeight()]);var w=d.W;w&&(B.ps=[w.width,w.height]);LU.screen&&(B.scs=[LU.screen.width,LU.screen.height])}else B.url=encodeURIComponent(LU.location.href.substring(0,512)),n.referrer&&(B.referrer=encodeURIComponent(n.referrer.substring(0,512))); B.tt=V;B.pt=SP;B.bin=G.S;LU.google_osd_load_pub_page_exp!==void 0&&(B.olpp=LU.google_osd_load_pub_page_exp);B.deb=[1,S.L.pB,S.L.HU,S.L.iq,S.L.xR,0,S.S.S,S.L.lE,S.L.Du,S.L.sW,S.L.PGT,-1].join(";");B.tvt=EHO(S,z);d.S&&(B.inapp=1);if(LU!==null&&LU!=LU.top){c.length>0&&(B.iframe_loc=encodeURIComponent(LU.location.href.substring(0,512)));var P=d.K;B.is=[oU(P),P.getHeight()]}}catch(F){B.error=1}wD.U=B}r=g.j_(wD.U);w=LO().L;Zc(w.U,"prf")==1?(P=new at,S=w.L,n=0,S.L>-1&&(n=S.U.L.now()-S.L),P=gt(P,1,wp(S.j+ n),0),S=w.L,P=gt(P,5,mn(S.L>-1?S.S+1:S.S),0),P=gt(P,2,Hf(w.S.L.U()),"0"),P=gt(P,3,Hf(w.S.L.S()),"0"),w=gt(P,4,Hf(w.S.L.L()),"0"),P={},w=(P.pf=g.MN(w.U()),P)):w={};g.Qt(r,w);g.Qt(a,y,l,r,p())}])}; xi=function(p){this.NO=Dm(p)}; F2=function(p,a){UQ.call(this,p,a)}; Ee=function(p){return p?function(){try{return p.apply(this,arguments)}catch(a){g.iO(a)}}:p}; n2M=function(p,a){p.env.D("delhi_modern_web_player")&&p.scale!==.6&&(p.scale=a?.8:1)}; ZiF=function(p,a,l){if(!VQE(p,a))return 0;if(!p.Db||!isNaN(l)&&l>0)return 2;if(a<0)return 1;l=p.xE();return a0&&l>0&&!p.S&&p.U<1E7)try{p.j=p.W({sampleInterval:a,maxBufferSize:l});var y;(y=p.j)==null||y.addEventListener("samplebufferfull",function(){return g.R(function(S){if(S.L==1)return g.u(S,p.stop(),2);o2o(p);g.lD(S)})})}catch(S){p.S=zeF(S.message)}}; kC=function(p,a,l){return g.Es(tn)(p,a,l)}; Lh=function(p,a){p.S||p.L!=2&&p.L!=3||dHo(p);p.j?p.j.next=a:p.S=a;p.j=a}; g.Gv=function(p,a){return p.indexOf(a)!=-1}; CC=function(p){p.removeCueRange(p.HO);p.HO=null}; GuE=function(p){p&&(p.uZ=void 0,p.yA=!0);return Ox(p)}; KC=function(p,a){var l=new v9(p,a),y=["Este ajuste solo afecta al v\u00eddeo que est\u00e1s viendo. Para cambiar la visualizaci\u00f3n de los subt\u00edtulos en todos los v\u00eddeos, ve a ","."],S;g.Z0(p.C())&&(S={X:"div",T:"ytp-panel-footer-content",N:[{X:"span",yY:y[0]},{X:"a",T:"ytp-panel-footer-content-link",yY:"Configuraci\u00f3n",V:{href:"/account_playback"}},{X:"span",yY:y[1]}]});g.gl.call(this,"Subt\u00edtulos",g.Ya.SUBTITLES,p,a,"Opciones",function(){g.K7(a,l)},S); var n=this;this.B=p;this.U6=a;this.tracks={};this.W=new g.l_(function(){B6O(n,!1)},3E3); g.E(this,this.W);this.countLabel=new g.X({X:"div",N:[{X:"span",yY:"Subt\u00edtulos"},{X:"span",T:"ytp-menuitem-label-count",yY:"{{content}}"}]});g.E(this,this.countLabel);g.mV(this,this.countLabel);p.D("web_settings_menu_icons")&&this.setIcon(cOM(p.D("delhi_modern_web_player_icons")));this.L=new YO(p,a);g.E(this,this.L);this.L.subscribe("select",this.Sv,this);this.j=l;g.E(this,this.j);this.j.subscribe("settingChange",this.cW,this);a.subscribe("show",this.pyz,this);this.J(p,"videodatachange",this.pz); this.J(p,"onApiChange",this.pz);this.J(p,"onCaptionsTrackListChanged",this.pz);this.J(p,"captionschanged",this.pz);p.createClientVe(this.element,this,127300);this.pz()}; WN=function(p,a){return rOO(a.call(p))}; jp=function(){return{X:"div",T:"ytp-spinner-container",N:[{X:"div",T:"ytp-spinner-rotator",N:[{X:"div",T:"ytp-spinner-left",N:[{X:"div",T:"ytp-spinner-circle"}]},{X:"div",T:"ytp-spinner-right",N:[{X:"div",T:"ytp-spinner-circle"}]}]}]}}; yi=function(p){this.NO=Dm(p)}; wrr=function(p,a,l){this.layoutId=a;this.offsetMs=l;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=p(this.triggerType)}; SZM=function(p){p=p.api.getPlayerStateObject();p=p.isCued()||p.isError()?"none":p.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=p}; LTq=function(p,a){var l,y;return(l=ur(p,"macroMarkersListEntity",a))==null?void 0:(y=l.markersList)==null?void 0:y.markerType}; g.bG=function(p,a,l){g.X.call(this,{X:"a",A9:[l?"ytp-next-button":"ytp-prev-button","ytp-button"],V:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},N:[$HA(l,p.D("delhi_modern_web_player_icons"))]}); var y=this;this.B=p;this.L=l;this.playlist=this.videoData=null;this.G=!1;this.j=this.W=this.S=null;this.U=!1;this.tooltip=a.ZI();l?p.createClientVe(this.element,this,6193):p.createClientVe(this.element,this,6194);this.J(p,"fullscreentoggled",this.onVideoDataChange);this.J(p,"videodatachange",this.onVideoDataChange);this.J(p,"onPlaylistUpdate",this.onVideoDataChange);this.J(p,"onLoopRangeChange",this.onVideoDataChange);this.L||this.J(p,"appresize",this.mQ);this.J(p,"mdxpreviousnextchange",function(){ee(y); y.mQ()}); this.onVideoDataChange()}; g.iO=function(p,a){var l=l===void 0?{}:l;l.name=g.ZM("INNERTUBE_CONTEXT_CLIENT_NAME",1);l.version=g.ZM("INNERTUBE_CONTEXT_CLIENT_VERSION");a=a===void 0?"ERROR":a;var y=!1;a=a===void 0?"ERROR":a;y=y===void 0?!1:y;if(p){p.hasOwnProperty("level")&&p.level&&(a=p.level);if(g.oO("console_log_js_exceptions")){var S=[];S.push("Name: "+p.name);S.push("Message: "+p.message);p.hasOwnProperty("params")&&S.push("Error Params: "+JSON.stringify(p.params));p.hasOwnProperty("args")&&S.push("Error args: "+JSON.stringify(p.args)); S.push("File name: "+p.fileName);S.push("Stacktrace: "+p.stack);window.console.log(S.join("\n"),p)}if(!(PQv>=5)){S=[];for(var n=g.t(Llh),V=n.next();!V.done;V=n.next()){V=V.value;try{V()&&S.push(V())}catch(F){}}S=[].concat(g.u0(Xrr),g.u0(S));var z=feq(p);n=z.message||"Unknown Error";V=z.name||"UnknownError";var d=z.stack||p.S||"Not available";if(d.startsWith(V+": "+n)){var G=d.split("\n");G.shift();d=G.join("\n")}G=z.lineNumber||"Not available";z=z.fileName||"Not available";var B=0;if(p.hasOwnProperty("args")&& p.args&&p.args.length)for(var c=0;c=500);c++);else if(p.hasOwnProperty("params")&&p.params){var r=p.params;if(typeof p.params==="object")for(c in r){if(r[c]){var w="params."+c,P=n0(r[c]);l[w]=P;B+=w.length+P.length;if(B>500)break}}else l.params=n0(r)}if(S.length)for(c=0;c=500);c++);navigator.vendor&&!l.hasOwnProperty("vendor")&&(l["device.vendor"]=navigator.vendor);l={message:n,name:V,lineNumber:G, fileName:z,stack:d,params:l,sampleWeight:1};c=Number(p.columnNumber);isNaN(c)||(l.lineNumber=l.lineNumber+":"+c);if(p.level==="IGNORED")p=0;else a:{p=IN();c=g.t(p.Cg);for(S=c.next();!S.done;S=c.next())if(S=S.value,l.message&&l.message.match(S.VO)){p=S.weight;break a}p=g.t(p.sD);for(c=p.next();!c.done;c=p.next())if(c=c.value,c.callback(l)){p=c.weight;break a}p=1}l.sampleWeight=p;p=g.t(xHM);for(c=p.next();!c.done;c=p.next())if(c=c.value,c.fQ[l.name])for(n=g.t(c.fQ[l.name]),S=n.next();!S.done;S=n.next())if(V= S.value,S=l.message.match(V.xf)){l.params["params.error.original"]=S[0];n=V.groups;V={};for(G=0;G=0?p-a:0}; vQr=function(p,a){this.request=p;this.cursor=a}; WlA=function(p){return qa(p,function(a,l){return a.time>l.time?a:l},p[0])}; JF=function(p,a,l,y,S,n,V){V=V===void 0?null:V;g.YZ.call(this,a);this.api=p;this.macros={};this.componentType=l;this.G=this.K=null;this.Sb=V;this.layoutId=y;this.interactionLoggingClientData=S;this.ZV=n;this.OO=null;this.MU=new JQ(this.element);g.E(this,this.MU);this.Yv=this.J(this.element,"click",this.onClick);this.Bs=[];this.w7=new fC(this.onClick,this);g.E(this,this.w7);this.yQ=!1;this.t9=this.UO=null}; HiM=function(p){if(p.U){var a=p.options[p.U];a.element.getAttribute("aria-checked");a.element.setAttribute("aria-checked","false");p.U=null}}; g.cG=function(p,a,l){if(typeof p==="function")l&&(p=(0,g.bn)(p,l));else if(p&&typeof p.handleEvent=="function")p=(0,g.bn)(p.handleEvent,p);else throw Error("Invalid listener argument");return Number(a)>2147483647?-1:g.dD.setTimeout(p,a||0)}; GF=function(p,a){p[a]||(p[a]=new DHA);return p[a]}; p5=function(p,a,l){var y;eOv(p.uT.get(),p.layoutId,a,l,(y=p.G)!=null?y:void 0,p.W)}; Vz=function(p,a,l){l=l===void 0?0:l;var y=p.type;var S=p.itag;var n=p.xtags;n&&(S=p.itag+";"+n);if(Pe(y)){var V=(p.size||"640x360").split("x");V=new HT(+V[0],+V[1],+p.fps,p.projection_type,+p.stereo_layout,void 0,p.quality_label,+p.quality_ordinal,p.eotf,p.primaries);y=ap(y,V,lw[p.itag]);yz&&(y+="; enableflushduringseek=true");Su&&(y+="; enableresetaudiodecoder=true")}var z;if(n5(y)){var d=new dx(+p.audio_sample_rate||void 0,+p.audio_channels||0,p.spatial_audio_type,!!p.drc);p.name&&(z=new g.AQ(p.name, p.audio_track_id,p.isDefault==="1"))}var G;p.caption_display_name&&p.caption_vss_id&&p.caption_language_code&&(G=new iiF(p.caption_display_name,p.caption_vss_id,p.caption_language_code,p.caption_kind,p.xtags,p.caption_id));n=Number(p.bitrate)/8;var B=Number(p.clen),c=Number(p.lmt);l=l&&B?B/l:0;if(a&&p.drm_families){var r={};for(var w=g.t(p.drm_families.split(",")),P=w.next();!P.done;P=w.next())P=P.value,r[P]=a[P]}return new WT(S,y,{audio:d,video:V,Mc:z,Hy:r,Lx:n,gj:l,contentLength:B,lastModified:c, captionTrack:G,streamType:p.stream_type,approxDurationMs:Number(p.approx_duration_ms)})}; RTO=function(p,a){if(p instanceof Zv)return p.NO;if(Array.isArray(p))return pF(p,a,!1)}; T6e=function(p){return window.Profiler&&new window.Profiler(p)}; N6M=function(p){return!!p.j_||!!p.oZ||!!p.F4||!!p.hX||p.vP}; sXM=function(){}; UHM=function(){var p=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];CU().forEach(function(a){p.push(a)}); return{XX:p,OE:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; QXr=function(p){return(p===void 0?0:p)&&g.oO("vss_through_gel_video_stats")?"video_stats":"log_event"}; op=function(p){this.value=p}; her=function(p){p.mediaElement&&p.mediaElement.Bl()&&(p.OP=(0,g.Ek)());p.Y.jQ?g.aY(function(){zp(p)},0):zp(p)}; dF=function(p){return{itagDenylist:JJ(p,1)}}; XB=function(p,a){(p=r1(p,a))?p.layout!=null&&!p.layout&&hF("Unexpected empty layout",a):hF("Unexpected undefined slotState",a);return(p==null?void 0:p.layout)||null}; AOM=function(p){return new EL(p.type,p.L,p.range,"getEmptyStubBefore"+p.K,p.Rc,p.startTime,0,p.S,0)}; YSq=function(p){var a=p.getVideoData(),l=p.Py;Gp(l)||l.VN();!BY&&l.B.D("html5_allow_asmjs")&&g2o(l);xv(l,"embed");xv(l,"kids");xv(l,"remote");xv(l,"miniplayer");xv(l,"offline");xv(l,"unplugged");xv(l,"ypc",!1,!0);xv(l,"yto",!1,!0);xv(l,"webgl",!1,!0);BkM(l)||(xv(l,"captions",!0),xv(l,"endscreen"),l.EF(),xv(l,"creatorendscreen",!0));l.RT();l.B.publish("modulesCreated");p.Tm.publish("videoready",a)}; cY=function(p,a,l){if(isNaN(a))return NaN;var y=p.hP();l=p.Lh(l);return p.D("html5_clamp_invalid_seek_to_min_seekable_time")&&!p.videoData.isLivePlayback&&a>l+1&&a0&&(this.items=[]);p=g.t(p);for(l=p.next();!l.done;l=p.next())(l=l.value)&& this.items.push({video_id:l});this.length=this.items.length;if(p=a.video)this.items=p.slice(0),this.loaded=!0}this.setShuffle(!!a.shuffle);if(p=a.suggestedQuality)this.quality=p;this.Z=L5(a,"playlist_");this.U=(a=a.thumbnail_ids)?a.split(","):[]}; GG=function(p){var a=Ql;p=p===void 0?TAe():p;var l=Object,y=l.assign,S=Oc(a);var n=a.L;try{var V=n.screenX;var z=n.screenY}catch(I){}try{var d=n.outerWidth;var G=n.outerHeight}catch(I){}try{var B=n.innerWidth;var c=n.innerHeight}catch(I){}try{var r=n.screenLeft;var w=n.screenTop}catch(I){}try{B=n.innerWidth,c=n.innerHeight}catch(I){}try{var P=n.screen.availWidth;var F=n.screen.availTop}catch(I){}n=[r,w,V,z,P,F,d,G,B,c];V=OiF(!1,a.L.top);z={};var v=v===void 0?g.dD:v;d=new xS;"SVGElement"in v&&"createElementNS"in v.document&&d.set(0);G=uKZ();G["allow-top-navigation-by-user-activation"]&&d.set(1);G["allow-popups-to-escape-sandbox"]&&d.set(2);v.crypto&&v.crypto.subtle&&d.set(3);"TextDecoder"in v&&"TextEncoder"in v&&d.set(4);v=paM(d);a=(z.bc=v,z.bih=V.height,z.biw=V.width,z.brdim=n.join(),z.vis=FE(a.S),z.wgl=!!LU.WebGLRenderingContext,z);l=y.call(l,S,a);l.ca_type="image";p&&(l.bid=p);return l}; C5=function(p){g.YZ.call(this,{X:"button",A9:["ytp-expand-right-bottom-section-button","ytp-button"],V:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},N:[g.Et()]});this.L=!1;this.listen("click",this.S);p.createClientVe(this.element,this,276954)}; Sd=function(p){this.S=p}; vY=function(p){g.X.call(this,{X:"button",A9:["ytp-button","ytp-autonav-toggle"],V:{title:p.D("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"},N:[{X:"div",T:"ytp-autonav-toggle-button-container",N:[{X:"div",T:"ytp-autonav-toggle-button",V:{"aria-checked":"true"}}]}]});this.B=p;this.S=[];this.L=!1;this.isChecked=!0;p.createClientVe(this.element,this, 113681);this.J(p,"presentingplayerstatechange",this.Yl);this.listen("click",this.onClick);this.S.push(this.J(this.B,"videodatachange",this.Yl));this.S.push(this.J(this.B,"videoplayerreset",this.Yl));this.S.push(this.J(this.B,"onPlaylistUpdate",this.Yl));this.S.push(this.J(this.B,"autonavchange",this.T1));OC(p,this.element,this);this.Yl()}; asE=function(){var p=["metadata_type_action_companion_ad_renderer"];CU().forEach(function(a){p.push(a)}); return{XX:p,OE:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; dJ$=function(p){var a={},l=p.experiments,y=l.Ci();l=l.RQ();var S=y.L.Zy(lsA);K5(S)&&Number(S)>0&&(a.SetPreferMinimalPostProcessing=eu("SetPreferMinimalPostProcessing",Number(S)===1?1:0));if(l.L.Zy(yVA))(p=y.L.Zy(SAe))&&(a["MediaSource.EnableUsingMediaSourceBufferedRange"]=eu("MediaSource.EnableUsingMediaSourceBufferedRange",p===1?1:0)),(p=y.L.Zy(nwv))&&(a.HTTP3=eu("HTTP3",p===1?1:0)),(p=y.L.Zy(VmA))&&(a["MediaSource.EnableUsingMediaSourceAttachmentMethods"]=eu("MediaSource.EnableUsingMediaSourceAttachmentMethods", p===1?1:0)),(p=y.L.Zy(ZGE))&&(a.QUIC=eu("QUIC",p===1?1:0)),(p=y.L.Zy(owo))&&(a["Media.PlayerConfiguration.DecodeToTexturePreferred"]=eu("Media.PlayerConfiguration.DecodeToTexturePreferred",p===1?1:0)),(p=y.L.Zy(zaZ))&&(a["Media.AudioWriteDurationLocal"]=eu("Media.AudioWriteDurationLocal",Number(p)));else for(y=Object.keys(p.experiments.flags),y=g.t(y),l=y.next();!l.done;l=y.next())l=l.value,l.startsWith("cobalt_h5vcc")&&(l.startsWith("cobalt_h5vcc_string")?(S=tFF(l,"cobalt_h5vcc_string"),l=St(p.experiments, l),S&&l&&(a[S]=eu(S,l))):l.startsWith("cobalt_h5vcc")&&(S=tFF(l,"cobalt_h5vcc"),l=g.sW(p.experiments,l),S&&l&&(a[S]=eu(S,l))));return a}; bw=function(p){var a;(a=p.K)==null||a.dispose();p.K=null}; l2o=function(p){p=Ip(p);var a=ol();p=a?a.get(p):void 0;return p&&p.stringValue?p.stringValue:""}; oJ=function(p,a,l){this.wM=a;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=l||p(this.triggerType)}; Ot=function(p){g.D.call(this);this.Lz=p;this.L=0;this.S=null;this.G=this.j=0;this.U={};this.Y=this.Lz.C();this.W=new g.l_(this.e5,1E3,this);this.Kz=Rp(this,"html5_seek_timeout_delay_ms");this.w7=Rp(this,"html5_long_rebuffer_threshold_ms");this.VY=Rp(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.t9=Rp(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.nz=Rp(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Ha=Rp(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.UO=Rp(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.Xu=new uw(2E4);this.Hs=Rp(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.OO=Rp(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.r7=Rp(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.QY=Rp(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.Z=Rp(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.Sl=Rp(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.Ps=Rp(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.Yv=Rp(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.K=Rp(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.Sb=new uw(g.sW(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Y.D("html5_report_slow_ads_as_error"));this.yQ=new uw(g.sW(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Y.D("html5_skip_slow_buffering_ad"));this.eb=Rp(this,"html5_slow_start_timeout_delay_ms");this.Bs=Rp(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.E(this,this.W)}; BEq=function(p){p&&(p.dataset?p.dataset[ihr()]="true":G0o(p))}; kS=function(p,a,l,y){l=l===void 0?!0:l;y=y===void 0?function(){return!0}:y; return function(S){var n=S[p];if(Array.isArray(n)&&y(S))return Bj$(n,a,l)}}; J_=function(p,a,l){l=l===void 0?Mr:l;l.widthp.width*p.height*.2)return{C4:3,aZ:501,errorMessage:"ad("+mU(l)+") to container("+mU(p)+") ratio exceeds limit."};if(l.height>p.height/3-a)return{C4:3,aZ:501,errorMessage:"ad("+mU(l)+") covers container("+mU(p)+") center."}}; Lr=function(p,a,l,y){y=y===void 0?{}:y;var S={},n=Math.round(y.timestamp||(0,g.Ek)());S.eventTimeMs=n1){g.Mf(new g.kc("Exit already started",{current:p.currentState}));var l=!1}else l=!0;if(!l)return!1;p.currentState=2;p.L=a;return!0}; war=function(p){var a=p.api.getPresentingPlayerType()===2&&(p.api.Fu().kF||p.api.C().disableOrganicUi)&&p.api.C().S&&Nr&&Ut>=11;p=p.api.C().K&&Nr;return!(!a&&!p)}; g.L6=function(p,a){p.G=a||0;a=p.U.Fi;p.U=null;return a}; Qz=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}}; $JZ=function(p){if(p.B.D("delhi_modern_web_player_icons"))return p=hD.includes("es")?qc(p)&&p.isEnabled()?{X:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 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 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z", fill:"white"}}]}:E6():qc(p)&&p.isEnabled()?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 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 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z", fill:"white"}}]}:u4q()}; P6r=function(p,a){if(p.w3()===0||p.hasError())return!1;var l=p.getCurrentTime()>0;return a>=0&&(p=p.SA(),p.length||!l)?GI(p,a):l}; dDq=function(p,a,l){var y;if(a&&!(a==null?0:(y=a.sequenceMetaData)==null?0:y.skipProcessing)&&p.j){y=g.t(LhA);for(var S=y.next();!S.done;S=y.next())S=S.value,p.j[S]&&p.j[S].handleResponse(a,l)}}; gF=function(p,a){AD.call(this,1,arguments);this.timer=a}; CYZ=function(p){return p.linearAd!=null&&p.adVideoStart!=null}; Xar=function(p){for(var a=Array(p.L),l=0;ly}; pY=function(p){this.sO=p;this.L=!1}; aS=function(p,a){if((a=p.ir.get(a))&&!a.h$){a.h$=!0;if(a.onProgress)a.onProgress();a:{a=g.t(p.ir.values());for(var l=a.next();!l.done;l=a.next())if(!l.value.h$){a=!1;break a}a=!0}a&&p.j.Z6()}}; Khh=function(p){zo(p,"impression")&&!zo(p,"seek")&&p.h5("active_view_fully_viewable_audible_half_duration")}; ea$=function(p,a){a&&a.screen&&(p.j=new g.N6(a.screen.width,a.screen.height))}; Cnf=function(){var p={format:"jspb"};p=p===void 0?{}:p;this.fW=p.fW||g.o4("suppressCorsPreflight",p)||!1;this.withCredentials=p.withCredentials||g.o4("withCredentials",p)||!1;this.XE=p.XE||[];this.Z3=p.Z3||[];this.U5=p.U5;this.L=p.HHm||!1}; fPM=function(p,a,l){a=g.t(a);for(var y=a.next();!y.done;y=a.next())y=y.value,y.layout&&ll(p.L,y.slot)&&bGr(p,y.slot,y.layout,l)}; g.iF=function(p){this.tag=p}; aM$=function(){try{var p=p7(R7);p.Pf("removeEventListener","ready",aM$);lM$(p)}catch(a){Jf(541,a)}}; mU=function(p){return Math.round(p.width)+"x"+Math.round(p.height)}; lh=function(p,a,l,y,S,n,V,z){bT.call(this,p,a,l,y);this.uT=S;this.Ye=n;this.G=z;this.FF=!0;this.j=null;this.W=PE(l.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Iq(this.Ye(),this);p=PE(l.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,this.uT,p,l.layoutId)}; Rar=function(p){var a=a===void 0?!1:a;return ej(bW(p,Isv),p,a,"Trusted Promoted Video Domain URL")}; yg=function(p,a,l,y,S,n,V,z,d){this.slot=a;this.S=l;this.uT=V;this.sO=z;this.WZ=d;this.L=new uzF(p,a,y,S,n)}; me=function(p){var a=ek(p.L,p.pos);++p.pos;if(a<128)return a;for(var l=a&127,y=1;a>=128;)a=ek(p.L,p.pos),++p.pos,y*=128,l+=(a&127)*y;return l}; S2=function(p,a,l,y){l+="."+p;p=n0(a);y[l]=p;return l.length+p.length}; OGF=function(p,a,l){if(p.provider.Y.experiments.Cz("html5_refactor_sabr_audio_format_selection_logging")){a=l.L;var y=[a.audio&&a.video?a.DP?a.DP:"":a.id];a.Mc&&a.Mc.id&&y.push(a.Mc.id);a=y.join(";");a!==p.G&&(y=[a,p.G,l.reason],l.token&&y.push(l.token),g.pt(p,g.US(p.provider),"afs",y),p.G=a)}else l.L.id!==p.G&&(y=[l.L.id,p.G,l.reason],l.token&&y.push(l.token),g.pt(p,a,"afs",y),p.G=l.L.id)}; rG=function(p,a,l){this.triggeringSlotId=a;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=l||p(this.triggerType)}; k0o=function(p,a){var l=[],y=Sy(a.type,"auto",a.itag);l.push(new nY(y,a.url));return Vg(p.W,l,!1,!0)}; g.Mmr=function(p){return p?p==="music"?!0:p.includes("dlt=-1")||!p.includes("dlt="):!1}; ZA=function(p){return p.isPlaying()&&!g.h(p,16)&&!g.h(p,32)}; ds=function(p){var a,l,y,S,n,V,z,d,G,B,c,r,w,P,F;return g.R(function(v){switch(v.L){case 1:a=void 0;p.j++;l=new g.rQ;p.Yy instanceof oS&&p.Yy.j.push(l.promise);if(!p.Qb){v.g7(2);break}y=new g.rQ;setTimeout(function(){return void y.resolve()}); return g.u(v,y.promise,2);case 2:return S=p.logger.share(),g.$r(v,4,5),p.state=5,n={},V=[],g.u(v,zS(p.Yy.snapshot({Tw:n,wk:V}),p.gt.ooT,function(){return Promise.reject(new V$(15,"MDA:Timeout"))}),7); case 7:z=v.S;if(p.Gm())throw new V$(p.L?20:32,"MDA:Disposed");d=V[0];p.state=6;return g.u(v,zS(mJq(p.a8,S,z),p.gt.b0,function(){return Promise.reject(new V$(10,"BWB:Timeout"))}),8); case 8:G=v.S;if(p.Gm())throw new V$(p.L?20:32,"BWB:Disposed");p.state=7;a=bk(S,function(){var b=x6M(p,G,l,d);b.U.promise.then(function(){return void p.W()}); return b},"i"); case 5:g.TK(v);S.dispose();g.$F(v,6);break;case 4:B=g.L6(v);(c=a)==null||c.dispose();if(!p.S){r=tmM(p,B);l.resolve();var I;if(I=p.Yy instanceof oS&&p.j<2)a:if(B instanceof V$)I=B.code!==32&&B.code!==20&&B.code!==10;else{if(B instanceof bm)switch(B.code){case 2:case 13:case 14:case 4:break;default:I=!1;break a}I=!0}if(I)return w=(1+Math.random()*.25)*(p.L?6E4:1E3),P=setTimeout(function(){return void p.W()},w),p.addOnDisposeCallback(function(){return void clearTimeout(P)}),v.return(); p.S=r}S.Tf(p.L?13:14);p.U.reject(p.S);return v.return();case 6:p.state=8,p.j=0,(F=p.L)==null||F.dispose(),p.L=a,p.U.resolve(),g.lD(v)}})}; GS=function(p,a){if(p.length<2)return!1;var l=a(p[0]);return p.some(function(y){return a(y)!==l})}; jlA=function(p,a,l,y){var S=Xk(null,null,null);S.L=new g.BG(function(n,V){S.U=a?function(z){try{var d=a.call(y,z);n(d)}catch(G){V(G)}}:n; S.S=l?function(z){try{var d=l.call(y,z);d===void 0&&z instanceof Yk?V(z):n(d)}catch(G){V(G)}}:V}); S.L.U=p;Lh(p,S);return S.L}; oN=function(){this.L=this.S=0}; g.ze=function(p,a){p.style.display=a?"":"none"}; WhE=function(p){var a=ay(p.rd().L,1);return BX(p,a)}; g.cX=function(p){for(var a=0,l=arguments.length;a>2];V=a[(V&3)<<4|z>>4];z=a[(z&15)<<2|d>>6];d=a[d&63];l[n++]=""+G+V+z+d}G=0;d=y;switch(p.length-S){case 2:G=p[S+1],d=a[(G&15)<<2]||y;case 1:p=p[S],l[n]=""+a[p>>2]+a[(p&3)<<4|G>>4]+d+y}return l.join("")}; Ll=function(p,a){return g.rA(p.L,function(l){return l.eR==a})}; DJM=function(p){g.HE("yt-player-watch-later-pending",p)}; w4v=function(p){ws.forEach(function(a){return a(p)})}; oK=function(p,a,l,y,S,n,V,z,d){g.D.call(this);this.j=p;this.G=a;this.W=l;this.U=y;this.L=S;this.S=n;this.UQ=V;this.EO=z;this.ac=d;this.FF=!0}; LY=function(p,a){var l=$L(g.Bp(a.L.info,p.MO.ke)),y,S=((y=p.Xu)==null?void 0:y.V5(l))||[];if(S.length===0)return p.jl("ombmsi",{}),!1;S=new PX(S);if(y=!p.policy.Xu||isFinite(p.getCurrentTime())||p.Lz.cA()){a:{y=p.getCurrentTime();S=g.t(S.mT);for(var n=S.next();!n.done;n=S.next())if(n=n.value,n.type===3&&y>=n.W&&y<=n.G){y=!0;break a}y=!1}y=!y}if(y)return p.jl("ostmf",{ct:p.getCurrentTime(),a:a.L.info.Qh()}),!1;(p=p.Xu)!=null&&(p.ir.get(l).nP=!0);return!0}; slh=function(p,a){function l(n){return y.UO!=="yt"&&(S.partnerId===38&&y.playerStyle==="books"||S.partnerId===30&&y.playerStyle==="docs"||S.partnerId===33&&y.playerStyle==="google-live")?NVe(p,S,n):YXM(p,S).then(function(){y.D("embeds_enable_shorts")&&p.C().IK&&S.isEmbedsShortsMode(new g.N6(0,0),!!S.playlistId)?iGo(p,S):Xo(p,S)},function(V){Xo(p,S,!0); throw V;})} a=a===void 0?p.C().schedule:a;var y=p.C(),S=p.getVideoData();S.Gm();S.loading=!0;return Tjr(p)?exF(p,S,a).then(function(){Xo(p,S)},function(n){n=jl(n); if(tF(n.severity))return Xo(p,S,!0),Promise.reject(n);n.errorCode==="onesie.response.badproxystatus"&&""+n.details.st==="3"&&(NjA=!0);p.handleError(n);return l("onesie")}):l("gvi")}; xL=function(p){return new hB(function(a){return a.substr(0,p.length+1).toLowerCase()===p+":"})}; AVq=function(p){var a,l,y,S,n,V,z,d,G,B;return g.R(function(c){return c.L==1?(y=(a=p)==null?void 0:(l=a.responseContext)==null?void 0:l.globalConfigGroup,S=g.T(y,UJf),V=(n=y)==null?void 0:n.hotHashData,z=g.T(y,QlM),G=(d=y)==null?void 0:d.coldHashData,(B=DV().resolve(ix(jd)))?V?S?g.u(c,Y0$(B,V,S),2):g.u(c,Y0$(B,V),2):c.g7(2):c.return()):G?z?g.u(c,haM(B,G,z),0):g.u(c,haM(B,G),0):c.g7(0)})}; Fo=function(p){var a=g.o4("yt.scheduler.instance.setPriorityThreshold");a&&a(p)}; gw$=function(p,a){var l=p.startSecs+p.DI;l=l<=0?null:l;if(l===null)return null;switch(p.event){case "start":case "continue":case "stop":break;case "predictStart":if(a)break;return null;default:return null}a=Math.max(p.startSecs,0);return{RH:new rM(a,l),CV:new ET(a,l-a,p.context,p.identifier,p.event,p.L)}}; g.CY=function(p,a){typeof p.className=="string"?p.className=a:p.setAttribute&&p.setAttribute("class",a)}; pMF=function(p){var a;return((a=document.featurePolicy)==null?0:a.allowedFeatures().includes("attribution-reporting"))?p+"&nis=6":p+"&nis=5"}; YAe=function(p){var a=p.cpn,l=p.Y3;p=p.q8;var y=l.sM(),S={};WL(l,"ce",(S.ec=a,S.ia=a!==y,S.r=xQ.Pr.has(a),S.is=p,S.ctp=Mu(a),S))}; ey=function(p,a,l){g.X.call(this,{X:"div",A9:["ytp-info-panel-action-item"],N:[{X:"div",T:"ytp-info-panel-action-item-disclaimer",yY:"{{disclaimer}}"},{X:"a",A9:["ytp-info-panel-action-item-button","ytp-button"],V:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},N:[{X:"div",T:"ytp-info-panel-action-item-icon",yY:"{{icon}}"},{X:"div",T:"ytp-info-panel-action-item-label",yY:"{{label}}"}]}]});this.B=p;this.S=l;this.disclaimer=this.d7("ytp-info-panel-action-item-disclaimer");this.button= this.d7("ytp-info-panel-action-item-button");this.Me=!1;this.B.createServerVe(this.element,this,!0);this.listen("click",this.onClick);p="";l=g.T(a==null?void 0:a.onTap,aU);var y=g.T(l,g.vX);this.Me=!1;y?(p=y.url||"",p.startsWith("//")&&(p="https:"+p),this.Me=!0,g.BR(this.button,g.AB(p))):(y=g.T(l,qAA))&&!this.S?((p=y.phoneNumbers)&&p.length>0?(p="sms:"+p[0],y.messageText&&(p+="?&body="+encodeURI(y.messageText))):p="",this.Me=!0,g.BR(this.button,g.AB(p,[JVM]))):(l=g.T(l,fsM))&&!this.S&&(p=l.phoneNumber? "tel:"+l.phoneNumber:"",this.Me=!0,g.BR(this.button,g.AB(p,[pjE])));this.B.D("embeds_enable_info_panel_dismissal")&&!p&&(l=g.T(a==null?void 0:a.onTap,aU),y=g.T(l,KY))&&(this.Me=!0,this.L=l,this.feedbackToken=y.feedbackToken);var S;if(l=(S=a.disclaimerText)==null?void 0:S.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var n;this.update({label:(n=a.bodyText)==null?void 0:n.content,icon:gu(),disclaimer:l})}else{this.disclaimer.style.display="none";var V; this.update({label:(V=a.bodyText)==null?void 0:V.content,icon:gu()})}this.B.setTrackingParams(this.element,a.trackingParams||null);this.Me&&(this.U={externalLinkData:{url:p}})}; g.bh=function(p){g.D.call(this);this.Tm=p;this.S=new aNE;this.U=null;this.W=[];this.Z=[]}; lNF=function(p){var a=lT(p)?"custom_metric_viewable":p.toLowerCase();return NO(s_,function(l){return l==a})}; IS=function(){this.L=y_v[0].toLowerCase()}; mE=function(p){g.N_.call(this,p);var a=this;this.S=null;this.created=!1;this.U=p.C().D("h5_use_refactored_get_ad_break")?new RS(this.player):new TT(this.player);this.j=function(){if(a.S!=null)return a.S;var y=new SBh({hw:sz(a.L).hw,Y3:sz(a.L).Y3,B:a.player,lU:sz(a.L).lU,uT:a.L.L.uT,T_:sz(a.L).T_,VL:a.L.L.VL});a.S=y.ev;return a.S}; this.L=new uh(this.player,this,this.U,this.j);g.E(this,this.L);var l=p.C();!OT(l)||g.PD(l)||y5(l)||(g.E(this,new kL(p,sz(this.L).ZV,sz(this.L).lU)),g.E(this,new Mt(p)))}; Tjr=function(p){var a=p.C();if(a.D("html5_disable_onesie")||!a.D("html5_onesie")||!a.D("html5_onesie_inline")&&p.getVisibilityState()===5||a.UO!=="yt")return!1;var l=a.O6;if(!l||!l.L)return p.handleError(new g.mm("onesie.unavailable.hotconfig",{key:"0"})),!1;if(l.L.G<(0,g.Ek)()&&(p.jl("okexp","1"),(l=p.Ld())&&a.D("html5_prefer_trusted_host_on_key_expiration"))){l.S=!0;var y;(a=(y=l.L.get(0))==null?void 0:ik(21,y.location))&&!zX(a)&&l.L.delete(0)}if(NjA)return p.jl("ost3","1"),!1;y={};return Object.keys(y).length> 0?(y.onesie="0",p.handleError(new g.mm("html5.missingapi",y)),!1):!0}; ykv=function(p){if(p.HL&&typeof p.HL=="function")return p.HL();if(typeof Map!=="undefined"&&p instanceof Map||typeof Set!=="undefined"&&p instanceof Set)return Array.from(p.values());if(typeof p==="string")return p.split("");if(g.BA(p)){for(var a=[],l=p.length,y=0;y=p.L.length)return p.G;for(var l=0,y=0;y-1)if(p.tooltipRenderer.targetId){a=[];y=y.split("$TARGET_ICON");var V=new g.RC({X:"span",T:"ytp-promotooltip-details-icon", N:[Z1o[p.tooltipRenderer.targetId]]});g.E(p,V);for(var z=[],d=g.t(y),G=d.next();!G.done;G=d.next())G=new g.RC({X:"span",T:"ytp-promotooltip-details-component",yY:G.value}),g.E(p,G),z.push(G);y.length===2?(a.push(z[0].element),a.push(V.element),a.push(z[1].element)):y.length===1&&(n===0?(a.push(V.element),a.push(z[0].element)):(a.push(z[0].element),a.push(V.element)));n=a.length?a:null}else n=null;else n=y;if(n){if(typeof n!=="string")for(g.Jh(p.details),S=g.t(n),n=S.next();!n.done;n=S.next())p.details.appendChild(n.value); else p.update({details:n});S=!0}}g.ze(p.details,S);S=p.tooltipRenderer.acceptButton;n=!1;var B,c,r;((B=g.T(S,g.az))==null?0:(c=B.text)==null?0:(r=c.runs)==null?0:r.length)&&g.T(S,g.az).text.runs[0].text&&(p.update({acceptButtonText:g.T(S,g.az).text.runs[0].text.toString()}),n=!0);g.ze(p.acceptButton,n);B=p.tooltipRenderer.dismissButton;c=!1;var w,P,F;((w=g.T(B,g.az))==null?0:(P=w.text)==null?0:(F=P.runs)==null?0:F.length)&&g.T(B,g.az).text.runs[0].text&&(p.update({dismissButtonText:g.T(B,g.az).text.runs[0].text.toString()}), c=!0);g.ze(p.dismissButton,c)}l&&(p.sourceElement=l);p.L=oUo(p);p.W=!1;p.B.C().D("web_player_hide_nitrate_promo_tooltip")||p.Kx(!0);Gz(p);p.E6&&!p.Z&&(p.Z=!0,p.hg.IE(0));p.S&&p.B.logVisibility(p.element,p.E6)}}; g.WX=function(){this.L=new Map;this.U=new Map;this.S=new Map}; dcA=function(p,a,l,y,S,n){var V=V===void 0?"trayride":V;l?(p.cZ(2),g.HX(g.Pt(l),function(){if(window[V])z5h(p,y,V,S);else{p.cZ(3);var z=zNq(l),d=document.getElementById(z);d&&(cnh(z),d.parentNode.removeChild(d));g.Mf(new g.kc("BL:ULB",""+l))}},n)):a?(n=g.JI("SCRIPT"),a instanceof si?(n.textContent=pP(a),ae(n)):n.textContent=a,n.nonce=pu(document),document.head.appendChild(n),document.head.removeChild(n),window[V]?z5h(p,y,V,S):(p.cZ(4),g.Mf(new g.kc("BL:ULBJ")))):g.Mf(new g.kc("BL:ULV"))}; Bg=function(p,a,l){l=l===void 0?p.C().schedule:l;g.D.call(this);var y=this;this.Lz=p;this.playerRequest=a;this.s6=l;this.logger=new g.iF("onesie");this.xhr=null;this.state=1;this.Om=new tV;this.fu=!1;this.playerResponse="";this.hk=new AZ(this);this.rA=new DA(this);this.Iw="";this.If=this.GB=!1;this.Is="";this.enableCompression=this.Tr=this.kC=!1;this.SO=[];this.OM=-1;this.Xm=0;this.Y=this.Lz.C();this.videoData=this.Lz.getVideoData();this.kT=this.Y.ao();this.We=this.Y.O6;this.ZY=new ih(this.We.L); this.kB=this.Y.D("html5_onesie_check_timeout");this.vY=new g.l_(this.yJ,500,this);this.oh=new g.l_(this.ag,1E4,this);this.NH=new g.l_(function(){if(!y.isComplete()){var S=gx(y);y.fail(new g.mm("net.timeout",S))}},1E3); this.vQ=new g.l_(this.ps7,2E3,this);this.WN=this.Lz.Ld();this.tA=this.D("html5_onesie_wait_for_media_availability");g.E(this.videoData,this);g.E(this,this.vY);g.E(this,this.oh);g.E(this,this.vQ);p=fk();fn&&p&&(this.eD=new Map);this.f5=new Map;this.KK=new Map;this.Uk=new Map;this.MQ=new Map}; Gje=function(){return l0()?Si.platform==="Android":na("Android")}; DY=function(p,a,l,y){(p=p.L())||hF("Could not initiate a command router instance.");TS(p,a,l,y)}; Nt=function(p){this.L=new Ju(p)}; t5=function(p){var a=WE(Kn);return a?p[a]:void 0}; UT=function(p,a){if(a){var l=g.T(a,sT)||null;l==null?g.iO(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(a=g.q$("video-ads ytp-ad-module")||null,a==null?g.iO(Error("Could not locate the root ads container element to attach the ad info dialog.")):(p.QY=new g.YZ({X:"div",T:"ytp-ad-overlay-ad-info-dialog-container"}),g.E(p,p.QY),p.QY.lT(a),a=new lc(p.api,p.layoutId,p.interactionLoggingClientData,p.ZV,p.QY.element,!1),g.E(p,a),a.init(y_("ad-info-hover-text-button"),l,p.macros), p.W?(a.lT(p.W,0),a.subscribe("f",p.YOT,p),a.subscribe("e",p.sH,p),p.J(p.W,"click",p.LSV),p.J(g.q$("ytp-ad-button",a.element),"click",function(){var y;if(g.T((y=g.T(l.button,g.az))==null?void 0:y.serviceEndpoint,B0o))p.r7=p.api.getPlayerState(1)===2,p.api.pauseVideo();else p.api.onAdUxClicked("ad-info-hover-text-button",p.layoutId)}),p.Ps=a):g.iO(Error("Ad info button container within overlay ad was not present."))))}else g.Mf(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; g.Qg=function(p,a){nh.get(p);nh.set(p,a)}; c_E=function(p){p=hv[p]!==void 0?hv[p].toString():null;return p!=null&&/^[A-Fa-f0-9]+$/.test(p)?parseInt(p,16):null}; xU=function(p){MA(p);var a=Rg(Number(p));if(un(a))return String(a);a=p.indexOf(".");a!==-1&&(p=p.substring(0,a));return PKh(p)}; r_o=function(p,a){p.S=a}; Av=function(p,a){switch(a){case "normal":p.ZN("complete");break;case "skipped":p.ZN("skip");break;case "abandoned":zo(p.zm,"impression")&&p.ZN("abandon")}}; gs=function(p){this.NO=Dm(p)}; wj=function(p){return g.o4("ytcsi."+(p||"")+"data_")||wjM(p)}; qt=function(p,a){YL.call(this,p,a,"timedMarkerCueRange","Ver momentos clave");this.J(p,g.c4("timedMarkerCueRange"),this.rq);this.J(p,"updatemarkervisibility",this.updateVideoData)}; $cF=function(p){Pu(p,g.ZM("RAW_HOT_CONFIG_GROUP"));p.Rt(g.ZM("SERIALIZED_HOT_HASH_DATA"))}; O6=function(p){var a=g.T(p,aU);if(a)return a;if((a=g.T(p,P3e))&&a.commands)return LNr(a.commands);if((a=g.T(p,XjF))&&a.commands)return LNr(a.commands);if((p=g.T(p,xcq))&&p.identifier&&p.command&&(Jv||(Jv=[]),!Jv.includes(p.identifier)))return Jv.push(p.identifier),g.T(p.command,aU)}; FNF=function(p){this.Lz=p;this.L=new Map}; tj$=function(p){p&&fY&&OQ()&&(fY.clearMarks("goog_"+p.label+"_"+p.uniqueId+"_start"),fY.clearMarks("goog_"+p.label+"_"+p.uniqueId+"_end"))}; EUr=function(p,a,l,y){var S=Math.min(p.uw,300*p.scale);p.element.style.maxWidth=a?"":S+"px";p.t9.SP(p.element,p.L,l,p.type===1,y);p.element.style.top?g.uD(p.element,"ytp-bottom"):p.element.style.bottom&&g.uD(p.element,"ytp-top");p.type===3&&p.w7.start()}; Ok=function(p,a){g.B8(p.L,"margin-right",a+"px")}; fe=function(p,a){return{start:function(l){return p[l]}, end:function(l){return a[l]}, length:p.length}}; bQ=function(p,a,l,y){y=y===void 0?"":y;p.updateValue("label",l===void 0?"":l);p.updateValue("icon",a);g.Fe(p.L);p.S.start();p.updateValue("title",y);g.JB(p.element,"ytp-bezel-text-hide",!y)}; p$=function(p){this.B=p}; M3=function(p,a,l){return p.L-p.S?g.Lu((a-p.S)/(p.L-p.S),0,1):l!=null?l:Infinity}; C3v=function(p){var a={};var l=g.XS()-p.W;a=(a.ptlt=l,a);(l=p.S)&&(a.pnk=l);(l=p.U)&&(a.pnc=l);(l=p.j)&&(a.pnmm=l);(p=p.L)&&(a.pns=p);return a}; vUe=function(){this.L=1;this.S=new pJ}; MP=function(p,a,l,y,S,n){n=n===void 0?!1:n;var V={X:"div",A9:["ytp-input-slider-section"],N:[{X:"input",T:"ytp-input-slider",V:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};S&&V.N.unshift(S);n&&V.A9.push("ytp-vertical-slider");g.X.call(this,V);this.j=p;this.W=a;this.K=l;this.initialValue=y;this.header=S;this.S=this.d7("ytp-input-slider");this.L=y?y:p;this.init();this.J(this.S,"input",this.U);this.J(this.S,"keydown", this.G)}; a9=function(p){return p.keySystem==="com.youtube.fairplay"}; KNA=function(p,a){NQ(p,1,a.yn7);NQ(p,2,a.QIT)}; bb=function(p,a){if(te(p,a))return!!me(p)}; g.BB=function(p){return p instanceof g.B4?p.clone():new g.B4(p)}; Xj=function(p,a,l){return p+l*(a-p)}; lS=function(p){g.Cl.call(this,p,{X:"button",A9:["ytp-skip-intro-button","ytp-popup","ytp-button"],N:[{X:"div",T:"ytp-skip-intro-button-text",yY:"Saltar introducci\u00f3n"}]},100);var a=this;this.S=!1;this.L=new g.l_(function(){a.hide()},5E3); this.GO=this.yS=NaN;g.E(this,this.L);this.K=function(){a.show()}; this.j=function(){a.hide()}; this.U=function(){var l=a.B.getCurrentTime();l>a.yS/1E3&&la.L&&a.reason==="b";y||S||l?(p.Lz.jS({reattachOnConstraint:y?"u":S?"drm":"perf",lo:a.S,up:a.L}), p.policy.zF||(p.j.L.S=!1)):(p.policy.zF&&(p.j.L.S=!1),GL(p))}}else!udE(p.L,a)&&p.videoTrack&&(S=p.L.L,SY(p,O1Z(p.L,a)),nJ(p),l=a.isLocked()&&a.reason==="m"&&p.L.Xu,y=p.policy.XG&&a.reason==="l"&&VW(p.videoTrack),a=S.L>a.L&&a.reason==="b",S=p.L.Kz&&!MD(),l||y||a||S?p.Lz.jS({reattachOnConstraint:l?"u":y?"drm":S?"codec":"perf"}):GL(p))}}; kjM=function(p,a){p.Z=a;p.U&&(p.U.U=a);p.Z.NU(p.videoTrack.L.info.EQ());p.W.S=p.Z;p.policy.S&&(p.S.K=p.Z)}; MCq=function(p){p.suggestedActions={};p.B.lf("suggested_action_button_visible")}; wt=function(p,a,l,y,S,n){l=l===void 0?{}:l;this.componentType=p;this.renderer=a===void 0?null:a;this.macros=l;this.layoutId=y;this.interactionLoggingClientData=S;this.L=n;this.id=y_(p)}; x4o=function(p,a,l,y){a["Content-Type"]="application/json+protobuf";a["X-User-Agent"]="grpc-web-javascript/0.1";var S=a.Authorization;if(S&&mcv.has(S.split(" ")[0])||p.withCredentials)l.K=!0;if(p.fW)y=g.w_(y,"$httpHeaders",a);else for(p=g.t(Object.keys(a)),S=p.next();!S.done;S=p.next())S=S.value,l.headers.set(S,a[S]);return y}; g.tCO=function(p,a,l,y){var S=p.G!==l,n=p.W!==y;p.QS=a;p.G=l;p.W=y;ov(p)&&(a=p.S)!=null&&(a.scale=y?1.5:1);FL$(p);p.L.length===1&&(p.L[0].width=l||0);S&&g.mo(p);p.S&&n&&ov(p)&&(p.S.isEnabled&&(l=p.W?135:90,y=l-p.w7,p.Sb.style.height=l+"px",g.B8(p.Xu,"transform","translateY("+-y+"px)"),g.B8(p.progressBar,"transform","translateY("+-y+"px)")),UNO(p.S))}; QOF=function(p,a){return a.reduce(function(l,y){return function(S){return y.intercept(S,l)}},p)}; j_$=function(p){var a=g.KI(p,0,1937011556);if(!a)return null;var l=p.getUint32(a.dataOffset+12);if(l!==1701733217&&l!==1701733238)return null;a=ew(p,a.offset+24+(l===1701733217?28:78),1936289382);if(!a)return null;l=ew(p,a.offset+8,1935894637);if(!l||p.getUint32(l.offset+12)!==1667392371)return null;a=ew(p,a.offset+8,1935894633);if(!a)return null;a=ew(p,a.offset+8,1952804451);if(!a)return null;l=new Uint8Array(16);for(var y=0;y<16;y++)l[y]=p.getInt8(a.offset+16+y);return l}; Z3=function(p,a){var l=vs(),y=p.C();l={X:"div",T:"ytp-share-panel",V:{id:vs(),role:"dialog","aria-labelledby":l},N:[{X:"div",T:"ytp-share-panel-inner-content",N:[{X:"div",T:"ytp-share-panel-title",V:{id:l},yY:"Compartir"},{X:"a",A9:["ytp-share-panel-link","ytp-no-contextmenu"],V:{href:"{{link}}",target:y.Sl,title:"Enlace de v\u00eddeo compartido","aria-label":"{{shareLinkWithUrl}}"},yY:"{{linkText}}"},{X:"label",T:"ytp-share-panel-include-playlist",N:[{X:"input",T:"ytp-share-panel-include-playlist-checkbox", V:{type:"checkbox",checked:"true"}},"Incluir lista de reproducci\u00f3n"]},{X:"div",T:"ytp-share-panel-loading-spinner",N:[jp()]},{X:"div",T:"ytp-share-panel-service-buttons",yY:"{{buttons}}"},{X:"div",T:"ytp-share-panel-error",yY:"Se ha producido un error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{X:"button",A9:["ytp-share-panel-close","ytp-button"],V:{title:"Cerrar"},N:[g.Kl()]}]};g.Cl.call(this,p,l,250);var S=this;this.moreButton=null;this.api= p;this.tooltip=a.ZI();this.S=[];this.j=this.d7("ytp-share-panel-inner-content");this.closeButton=this.d7("ytp-share-panel-close");this.J(this.closeButton,"click",this.Ro);this.addOnDisposeCallback(g.gh(this.tooltip,this.closeButton));this.U=this.d7("ytp-share-panel-include-playlist-checkbox");this.J(this.U,"click",this.pz);this.L=this.d7("ytp-share-panel-link");this.addOnDisposeCallback(g.gh(this.tooltip,this.L));this.api.createClientVe(this.L,this,164503);this.J(this.L,"click",function(n){n.preventDefault(); S.api.logClick(S.L);var V=S.api.getVideoUrl(!0,!0,!1,!1);V=k2M(S,V);g.ru(V,S.api,n)&&S.api.xv("SHARE_CLICKED")}); this.listen("click",this.UL);this.J(p,"videoplayerreset",this.hide);this.J(p,"fullscreentoggled",this.onFullscreenToggled);this.J(p,"onLoopRangeChange",this.uum);this.hide()}; o9=function(p){this.NO=Dm(p)}; LaF=function(p,a){(0,g.Ek)();var l;if((l=p.L.L)==null)var y=void 0;else a:{p=p.iv;try{var S=WN$(l,a,p),n=l.L.DK(p),V=l.L,z=l.j,d=new Uint8Array(V.exports.memory.buffer,V.malloc(32),32);V.exports.Sha256Hmac(z.byteOffset,z.byteLength,n.byteOffset,n.byteLength,S.byteOffset,S.byteLength,d.byteOffset);l.L.free(n.byteOffset);y={wO:l.L.wz(S),signature:l.L.wz(d)};break a}catch(G){g.Mf(Error("ocwceas: wasm encryptAndSign failed: "+G))}y=void 0}return y}; H1r=function(p,a,l,y,S){S=tNo(S,a);c3(p,l,y,S);S&&!qN(S)&&zF(p.NO);return p}; dX=function(p,a,l){var y=this;this.network=p;this.options=a;this.S=l;this.L=null;if(a.AvY){var S=new g.rQ;this.L=S.promise;g.dD.ytAtRC&&Cr(function(){var n,V;return g.R(function(z){if(z.L==1){if(!g.dD.ytAtRC)return z.return();n=E9(null);return g.u(z,Jw(y,n),2)}V=z.S;g.dD.ytAtRC&&g.dD.ytAtRC(JSON.stringify(V));g.lD(z)})},2); Dce().then(function(n){var V,z,d,G;return g.R(function(B){if(B.L==1)return n.bindInnertubeChallengeFetcher(function(c){return Jw(y,E9(c))}),g.u(B,MT(),2); V=B.S;z=n.getLatestChallengeResponse();d=z.challenge;if(!d)throw Error("BGE_MACIL");G={challenge:d,WL:fr(d),Yy:V,bgChallenge:new zU};S.resolve(G);n.registerChallengeFetchedCallback(function(c){c=c.challenge;if(!c)throw Error("BGE_MACR");c={challenge:c,WL:fr(c),Yy:V,bgChallenge:new zU};y.L=Promise.resolve(c)}); g.lD(B)})})}else a.preload&&NCA(this,new Promise(function(n){g.jv(0,function(){n(pi(y))},0)}))}; GU=function(p,a,l){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(l===void 0?0:l)&&Symbol.for&&p?Symbol.for(p):p!=null?Symbol(p):Symbol():a}; c6=function(p,a){g.CX.call(this,g.vy({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.Ya.uL);this.B=p;this.U6=a;g.uD(this.element,"ytp-audio-settings-menu-item");this.OC=new g.gH(p,void 0,"Audio");this.countLabel=new g.X({X:"div",N:[{X:"span",yY:"Audio"},{X:"span",T:"ytp-menuitem-label-count",yY:"{{content}}"}]});p.D("web_settings_menu_icons")&&this.setIcon({X:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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.Vs=new B6(p,this.U6,this);g.E(this,this.Vs);this.J(p,"settingsMenuInitialized",this.q2.bind(this));this.J(p,"videodatachange",this.q2.bind(this));g.E(this,this.countLabel);g.mV(this,this.countLabel);this.U6.Lt(this);this.J(p,"onPlaybackAudioChange",this.GM);this.listen("keydown",this.i_);this.listen("click",this.open)}; N0r=function(p,a){hP(p,2,a.eK,JP,3);hP(p,3,a.innertubeRequest,i1Z,3);gD(p,4,a.onesieUstreamerConfig);gD(p,9,a.DE);hP(p,10,a.Nf,rX,3);hP(p,15,a.reloadPlaybackParams,T0$,3);Ym(p,18,a.PTT)}; UcZ=function(p){var a=p.UO.map(wX);p.S&&a.push(p.S);p.d3(a);p.L=null;p.W=null;a=p.B.getPlaybackRate();s3(p.B)&&s_h(p,a);!p.UO.includes(a)||p.j?p.SE(p.L):p.SE(wX(a))}; Q_e=function(p){p.L>=0||(p.provider.Lz.getVisibilityState()===3?p.W=!0:(p.L=g.US(p.provider),p.delay.start()))}; $X=function(p,a){this.S=this.L=null;this.U=p||null;this.j=!!a}; PL=function(p,a){return p.L===a.L?p.range&&a.range?p.range.start+p.S+p.U===a.range.start+a.S:p.Rc===a.Rc?p.S+p.U===a.S:p.Rc+1===a.Rc&&a.S===0&&p.j:!1}; alF=function(p,a){if(a.videoFormatCapabilities)for(var l=0;l>>0:void 0}; J_h=function(p){WN(p,function(){var a=this;return function y(){var S,n,V,z,d,G,B,c,r;return HN(y,function(w){switch(w.L){case 1:g.DD(w,2);a.QQ.tick("wasm_s");S=LJ(a.Py)?function(P){return z0(h5o(a.Py),function(F){return F.xI(P)})}:void 0; n=g.sW(a.Y.experiments,"html5_wasm_initialization_delay_ms");V=a.D("html5_wasm_initialization_disable_sync");z=a.D("html5_wasm_initialization_wait_for_idle");if(!(n>0)){w.g7(4);break}d=EX;return lo(w,io(A_v(n)),5);case 5:d(w.S);case 4:if(!z){w.g7(6);break}G=EX;return lo(w,io(gUv()),7);case 7:G(w.S);case 6:return g.$r(w,8),B=YBf(a.webPlayerContextConfig.wasmModuleUrl,S,a.wF.bind(a),V),c=EX,lo(w,io(B),10);case 10:r=c(w.S);a.QQ.tick(r.L?"wasm_fa":"wasm_fw");qBZ(a.Y,r);g.L8(w,2);break;case 8:g.L6(w), a.QQ.tick("wasm_ferr");case 2:g.TK(w),g.$F(w,0)}})}()})}; fNh=function(p,a){this.location=p;this.L=a}; aBr=function(p){if(p.S.getVideoData().U){var a=p.TR.C().D("html5_gapless_suspend_next_loader")&&p.W===1;p.S.oL(p.j,a,pBF(p));VO(p,3);FQq(p);var l=X_(p);a=l.Ys;l=l.J2;a.subscribe("updateend",p.hG,p);l.subscribe("updateend",p.hG,p);p.hG(a);p.hG(l)}}; xX=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",a,l,y);this.hide()}; F_=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; nue=function(p){var a=!1;a=a===void 0?!1:a;if(lBv){if(a&&(yJr?!p.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(p)))throw Error("Found an unpaired surrogate");p=(SzM||(SzM=new TextEncoder)).encode(p)}else{for(var l=0,y=new Uint8Array(3*p.length),S=0;S>6|192;else{if(n>=55296&&n<=57343){if(n<=56319&&S=56320&&V<=57343){n=(n-55296)*1024+ V-56320+65536;y[l++]=n>>18|240;y[l++]=n>>12&63|128;y[l++]=n>>6&63|128;y[l++]=n&63|128;continue}else S--}if(a)throw Error("Found an unpaired surrogate");n=65533}y[l++]=n>>12|224;y[l++]=n>>6&63|128}y[l++]=n&63|128}}p=l===y.length?y:y.subarray(0,l)}return p}; E4=function(p){for(var a=0,l=p.L,y=l+10,S=p.S;la)break;if(n>a)return{MR:y,S1:a-S};l=n-y.fh/1E3}return{MR:null,S1:a-l}}; g.mf=function(p,a,l){l=l===void 0?{}:l;var y=g.MC;g.ZM("ytLoggingEventsDefaultDisabled",!1)&&g.MC===g.MC&&(y=null);Lr(p,a,y,l)}; bS=function(p){UF.call(this,p.dX,p.slot,p.sY,p.uT,p.dG,p.ac,p.sO,p.lr,p.VL,p.uM,p.cL,p.Um,p.Oi,p.Bz,p.EO,p.Sc,p.Pl,p.context)}; zE=function(p,a){return Math.floor(a/(p.columns*p.rows))}; ep=function(p,a,l,y){this.durationMs=a;this.triggeringLayoutId=l;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=y||p(this.triggerType)}; I9=function(p,a){this.slotId=a;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=p(this.triggerType)}; c8=function(p,a,l){for(var y=p.length,S=typeof p==="string"?p.split(""):p,n=0;na||l>10||(p.play(),g.aY(function(){ZtE(p,p.getCurrentTime(),l+1)},500))}; U6=function(p,a){g.D.call(this);var l=this;this.data=[];this.U=p||NaN;this.S=a||null;this.L=new g.l_(function(){R9(l);fD(l)}); g.E(this,this.L)}; g.wh=function(p,a,l,y,S){uS||aC.set(""+p,a,{Sq:l,path:"/",domain:y===void 0?"youtube.com":y,secure:S===void 0?!1:S})}; ouh=function(p){return p.linearAds!=null&&wk(p.adLayoutMetadata)}; zir=function(p,a,l){var y;O4(p.uT.get(),"ads_qua","cpn."+PE(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((y=uo(p.ac.get(),2))==null?void 0:y.clientPlaybackNonce)+";qt."+a+";clr."+l)}; d_M=function(p,a){var l=p.b7,y=p.Ba,S=p.Zz,n=p.Js,V=p.Ba>p.s2-262?p.Ba-(p.s2-262):0,z=p.window,d=p.Qu,G=p.M1,B=p.Ba+258,c=z[y+S-1],r=z[y+S];p.Zz>=p.x6&&(l>>=2);n>p.xe&&(n=p.xe);do{var w=a;if(z[w+S]===r&&z[w+S-1]===c&&z[w]===z[y]&&z[++w]===z[y+1]){y+=2;for(w++;z[++y]===z[++w]&&z[++y]===z[++w]&&z[++y]===z[++w]&&z[++y]===z[++w]&&z[++y]===z[++w]&&z[++y]===z[++w]&&z[++y]===z[++w]&&z[++y]===z[++w]&&yS){p.xC=a;S=w;if(w>=n)break;c=z[y+S-1];r=z[y+S]}}}while((a=G[a&d])>V&&--l!== 0);return S<=p.xe?S:p.xe}; g.kX=function(p){return document.createTextNode(String(p))}; Bnh=function(p){return(p=GHA&&GHA.exec(p))?p[0]:""}; rJq=function(p,a,l,y,S){return p instanceof AY?cJE(p,y,S,a,l):cJE(p,y,S,new Ml,0)}; tG=function(p){var a=p.api.C().D("enable_linear_program_progress"),l=p.api.getPresentingPlayerType()===2;return p.tB&&!mq(p)&&(!a||!p.S)&&!l}; PHo=function(p,a,l,y,S,n,V,z,d,G,B,c,r,w,P){var F=wBF(S,r,w);if(F instanceof W)return F;var v=[],I=[];F=g.t(F);for(var b=F.next();!b.done;b=F.next()){var O=b.value;b=p;var m=S[O.Oi],H=O,Y=a;O=n;var N=V,yo=z,zq=d,S$=G,BE=B,f=S1(m);if(f instanceof W)b=f;else{var xh={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,iT:"adapter"};H=$_M(Y,m,H,O);H instanceof W?b=H:(b=Object.assign({},xh,jY,{Xh:f,renderingContent:m.renderingContent,clientMetadata:new Lc(H),nx:kU(yo,b)(xh),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData}), b=(m=Lj(BE,b,O,N.TD,yo,zq,S$,void 0,!0))?m instanceof W?m:{layout:b,T9:m}:new W("Expecting associatedInPlayerSlot"))}if(b instanceof W)return b;v.push(b.layout);I.push(b.T9)}S={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,iT:"core"};a=[new hw(Number(l.driftRecoveryMs)),new Ye(r),new qM(w),new ei(nj(a)),new W6(c),new P2({})];P&&a.push(new wM({}));return{K2:Object.assign({},S,y,{z4:v,Xh:new Map,clientMetadata:new Lc(a),nx:kU(z,p)(S)}),tN:I}}; XBM=function(p,a){a=a===void 0?!1:a;if(p.loader){p.videoData.enableServerStitchedDai&&LtM(p.loader);var l=p.getCurrentTime()-p.Jg();p.loader.seek(l,{U1:a}).Nb(function(){})}else K9(p)}; H6=function(p,a){NQ(p,1,a.startTicks);NQ(p,2,a.wD);NQ(p,3,a.timescale)}; T1=function(p,a,l){p=""+p+(a>49?"p60":a>32?"p48":"");a=xe()[p];if(a!=null&&a>0)return a;a=F$.get(p);if(a!=null&&a>0)return a;l=l==null?void 0:l.get(p);return l!=null&&l>0?l:8192}; D3=function(p,a,l){p.cpn&&(a=g.C2(a,{cpn:p.cpn}));l&&(a=g.C2(a,{paired:l}));return a}; zf=function(p,a,l){return{MR:x_r(p.L,a*1E3,(l===void 0?0:l)*1E3),S1:a}}; uNq=function(){if(g.oO("bg_st_hr"))return"havuokmhhs-0";var p,a=((p=globalThis.performance)==null?void 0:p.timeOrigin)||0;return"havuokmhhs-"+Math.floor(a)}; fG=function(p,a,l,y,S,n,V,z){var d={layoutId:a,layoutType:n,iT:"core"};return{layoutId:a,layoutType:n,Xh:new Map,layoutExitNormalTriggers:[new FJ(p.L,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],iT:"core",clientMetadata:new Lc([new ei(y)].concat(g.u0(V))),nx:S(d),adLayoutLoggingData:z}}; FtO=function(p){p=p.B.getVideoData(1);return!!p&&p.D("html5_preload_first_vod_video_ad")&&!p.isDaiEnabled()&&!p.isLivePlayback}; u4=function(){var p=TJ();if(p.G>0||p.Z)return!0;p=CO().S.isVisible();var a=FE(iS)===0;return p||a}; TU=function(p){return rf(p.s6,!p.policy.mE,p.policy.n6)}; Nl=function(){}; KtF=function(p,a,l){try{if(p.Gm())throw new V$(21,"BNT:disposed");if(!p.L&&p.S)throw p.S;var y,S;return(S=(y=VqM(p,a,l))!=null?y:EuA(p,a,l))!=null?S:$$h(p,a,l)}catch(n){if(!a.Mo)throw CHO(p,n);return vuM(p,l,n)}}; eiA=function(p,a){var l;return g.R(function(y){if(y.L==1){if(!a)return y.return(a);l=new g.s4(p.S);return g.u(y,l.decrypt(a,p.L),2)}return y.return(y.S)})}; btr=function(p){return p?(p=p.privateDoNotAccessOrElseSafeScriptWrappedValue)?fQO(p):null:null}; U4=function(p){this.L=p}; IBf=function(p,a){kN(g.Mk(p.B.C()),"wl_button",function(){DJM({videoId:a});window.location.reload()})}; Sc=function(p){return Math.max(p.bottom-p.top,0)*Math.max(p.right-p.left,0)}; hG=function(p,a){return!p.api.isInline()&&!Ri$(p,QW(a))&&g.lX(a)}; AG=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",a,l,y);this.button=null;this.L=this.d7("ytp-ad-survey-none-of-the-above");this.hide()}; Otf=function(p){if(!wk(p.adLayoutMetadata))return!1;p=p.renderingContent;return g.T(p,lp)||g.T(p,Vu)||g.T(p,uDF)||g.T(p,Jr)||g.T(p,pz)?!0:!1}; gX=function(p){g.D.call(this);var a=this;this.app=p;this.G=this.S=this.L=null;this.Z=!1;this.U=this.j=null;this.W=kHv(this.app.C());this.K=function(){g.VU(function(){MMv(a)})}}; YX=function(){this.L=0}; m_Z=function(){return!!g.zv("yt-player-headers-readable")}; OiF=function(p,a,l){if(p&&a!==null&&a!=a.top){if(!a.top)return new g.N6(-12245933,-12245933);a=a.top}try{return(l===void 0?0:l)?(new g.N6(a.innerWidth,a.innerHeight)).round():tMO(a||window).round()}catch(y){return new g.N6(-12245933,-12245933)}}; j$F=function(p){var a,l,y=(a=p.L)==null?void 0:(l=a.bannerData)==null?void 0:l.itemData;if(y==null?0:y.priceReplacementText)return y==null?void 0:y.priceReplacementText;if((y==null?0:y.promotionText)&&p.B.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var S;return(y==null?void 0:y.price)+" "+(y==null?void 0:(S=y.promotionText)==null?void 0:S.content)}var n,V;if(y==null?0:(n=y.dealsData)==null?0:(V=n.sales)==null?0:V.originalPrice){var z,d;return y==null?void 0:(z=y.dealsData)== null?void 0:(d=z.sales)==null?void 0:d.salesPriceAccessibilityLabel}var G,B;if(y==null?0:(G=y.dealsData)==null?0:(B=G.priceDrop)==null?0:B.referencePrice){var c,r;return(y==null?void 0:y.price)+" "+(y==null?void 0:(c=y.dealsData)==null?void 0:(r=c.priceDrop)==null?void 0:r.referencePrice)}return y==null?void 0:y.price}; WT=function(p,a,l){l=l===void 0?{}:l;this.id=p;this.mimeType=a;l.Lx>0||(l.Lx=16E3);Object.assign(this,l);p=g.t(this.id.split(";"));this.itag=p.next().value;this.L=p.next().value;this.containerType=ql(a);this.h9=lw[this.itag]||""}; Wtv=function(p,a,l,y,S){wt.call(this,"ads-engagement-panel",p,a,l,y,S)}; I7=function(p,a){p.coldHashData=a;g.M8("yt.gcf.config.coldHashData",p.coldHashData||null)}; g.Ht$=function(){var p;return(p=(p=g.o4("yt.aba.att2"))?p:dX.instance!==void 0?dX.instance.j.bind(dX.instance):null)?p():Promise.resolve(!1)}; Qze=function(p){g.Re(p.L,function(a){a.S>1E5||++a.S})}; fJ=function(p){var a={delay:zz(p),stall:p.K.Cv()||0,byterate:JG(p),init:p.Hs},l=p.j[0];l.stamp=Math.round(p.G/36E5)*36E5;l.net=Math.ceil(p.Bs);l.max=p.interruptions[0]||0;a.interruptions=p.j;return a}; ICO=function(p){switch(p){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 m5(p,"Unexpected cuepoint event")}}; p_=function(p,a,l,y,S,n,V,z){bT.call(this,p,a,l,y);this.uT=S;this.Ye=n;this.G=z;this.FF=!0;this.j=null;this.W=PE(l.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Iq(this.Ye(),this);p=PE(l.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,this.uT,p,l.layoutId)}; D_M=function(p,a,l,y,S,n,V,z){y=y===void 0?{}:y;z=z===void 0?{value:0}:z;n=QXr(n);y=P4(y,V,function(d){g.oO("start_client_gcf")&&g.$e.xn(function(){return g.R(function(G){return g.u(G,AVq(d),0)})}); z.value--;z.value||l()},function(){z.value--; z.value||l()},S); y.headers["Content-Type"]="application/json+protobuf";y.postBodyFormat="JSPB";y.postBody=p;g.aZ(a,n,"",y);lj=!1}; yE=function(p,a,l,y){l&&(p.Rd(),bf(p));l=p.qO();l.r0(a);var S=p.getVideoData(),n={};n.video_id=S.videoId;n.adformat=S.adFormat;S.isLivePlayback||(n.start=l.getCurrentTime(),n.resume="1");S.isLivePlayback&&Qe(S)&&g.zB(p.Y)&&(n.live_utc_start=l.d$(),n.resume="1");S.t9&&(n.vvt=S.t9);S.G&&(n.vss_credentials_token=S.G,n.vss_credentials_token_type=S.C8);S.oauthToken&&(n.oauth_token=S.oauthToken);n.autoplay=1;n.reload_count=S.Fh+1;n.reload_reason=a;S.GI&&(n.unplugged_partner_opt_out=S.GI);S.Co&&(n.ypc_is_premiere_trailer= S.Co);S.playerParams&&(n.player_params=S.playerParams);p.D("html5_forward_click_tracking_params_on_reload")&&S.Xu&&(n.itct=S.Xu);p.loadVideoByPlayerVars(n,void 0,!0,void 0,void 0,y);a==="signature"&&p.V$&&uK(p)}; g.SH=function(p,a){a=g.t(a);for(var l=a.next();!l.done;l=a.next())if(l=l.value,l.cueRangeSetIdentifier){var y=void 0;p.qB.set(l.cueRangeSetIdentifier,(y=l.playerCueRanges)!=null?y:[])}}; n_=function(p){this.S=p;this.L=NaN;this.buffer=new $w(100)}; itF=function(){if(ewA()&&!VE){var p=function(l){l=l.data;if(l.op==="gzippedGelBatch"){var y=Zp.get(l.key);y&&(wQv(l.gzippedBatch,y.latencyPayload,y.url,y.options,y.sendFn),Zp.delete(l.key))}},a=h5(); a&&(a.addEventListener("message",p),a.onerror=function(){Zp.clear()},VE=!0)}}; B3=function(p){this.NO=Dm(p)}; oZ=function(p,a){var l=[];if(!a.length)return l;for(var y=0;y1E5||++a.L})}; BJ=function(p,a,l,y,S,n){var V={format:"RAW"},z={};if(VH(p)&&Er()){var d=g.ZM("EOM_VISITOR_DATA");d?z["X-Goog-EOM-Visitor-Id"]=d:y?z["X-Goog-Visitor-Id"]=y:g.ZM("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=g.ZM("VISITOR_DATA"));l&&(z["X-Goog-PageId"]=l);(y=a.w7)&&!Gr(a)&&(z["X-Goog-AuthUser"]=y);S&&(z.Authorization="Bearer "+S);a.D("enable_datasync_id_header_in_web_vss_pings")&&a.mE&&a.datasyncId&&(z["X-YouTube-DataSync-Id"]=a.datasyncId);if(a.D("enable_rollout_token_header")){var G,B,c=(G=g.ZM("INNERTUBE_CONTEXT"))== null?void 0:(B=G.client)==null?void 0:B.rolloutToken;c&&(z["X-YouTube-Rollout-Token"]=c)}d||z["X-Goog-Visitor-Id"]||S||l||y?V.withCredentials=!0:a.D("html5_send_cpn_with_options")&&Q$h.test(p)&&(V.withCredentials=!0)}Object.keys(z).length>0&&(V.headers=z);n&&(V.onFinish=n);return Object.keys(V).length>1?V:null}; Co=function(){var p=Number(g.ZM("DCLKSTAT",0));return isNaN(p)?0:p}; L5r=function(p){if(!$C(p,440786851,!0))return null;var a=p.pos;$u(p,!1);var l=$u(p,!0)+p.pos-a;p.pos=a+l;if(!$C(p,408125543,!1))return null;$u(p,!0);if(!$C(p,357149030,!0))return null;var y=p.pos;$u(p,!1);var S=$u(p,!0)+p.pos-y;p.pos=y+S;if(!$C(p,374648427,!0))return null;var n=p.pos;$u(p,!1);var V=$u(p,!0)+p.pos-n,z=new Uint8Array(l+12+S+V),d=new DataView(z.buffer);z.set(new Uint8Array(p.L.buffer,p.L.byteOffset+a,l));d.setUint32(l,408125543);d.setUint32(l+4,33554431);d.setUint32(l+8,4294967295); z.set(new Uint8Array(p.L.buffer,p.L.byteOffset+y,S),l+12);z.set(new Uint8Array(p.L.buffer,p.L.byteOffset+n,V),l+12+S);return z}; hiv=function(p,a){p.hv()&&!m2(p.wC.S)||p.callback.Dy(p.slot,p.layout,a)}; AJZ=function(p,a){return uZq(p,a,fMe)}; gur=function(p){p.provider.videoData.b_&&cJ(p,"prefetch");p.provider.videoData.Fh&&p.jl("reload",{r:p.provider.videoData.reloadReason,ct:p.provider.videoData.Fh});p.provider.videoData.Yv&&cJ(p,"monitor");p.provider.videoData.isLivePlayback&&cJ(p,"live");fn&&cJ(p,"streaming");p.provider.videoData.E2&&p.jl("ctrl",{mode:p.provider.videoData.E2},!0);if(p.provider.videoData.xz){var a=p.provider.videoData.xz.replace(/,/g,"_");p.jl("ytp",{type:a},!0)}p.provider.videoData.gU&&(a=p.provider.videoData.gU.replace(/,/g, "."),p.jl("ytrexp",{ids:a},!0));a=p.provider.videoData;var l=p.provider.Y.D("enable_white_noise")||p.provider.Y.D("enable_webgl_noop"),y=g.rU(a)||g.wU(a)||g.$s(a)||g.PJ(a);(l||y)&&(l=(0,g.L_)())&&p.L.set("gpu",[l]);eX(p.provider.videoData)&&g.pt(p,g.US(p.provider),"dt",["1"]);a.cotn&&!eX(a)&&p.eN(!0);p.provider.Y.ao()&&(a=(0,g.Ek)()-p.provider.Y.aM,p.jl("playerage",{secs:Math.pow(1.6,Math.round(Math.log(a/1E3)/Math.log(1.6))).toFixed()}));p.j=!0;p.Xu=g.Vo(function(){p.reportStats()},1E4)}; fB$=function(p,a){hP(p,1,a.eK,JP,3);if(a.R_)for(var l=0;l>6|192:((S&64512)==55296&&y+1>18|240,a[l++]=S>>12&63|128):a[l++]=S>>12|224,a[l++]=S>>6&63|128),a[l++]=S&63|128)}return a}; g.z2=function(p){return(p=XNZ(p===void 0?0:p))?new Fj({veType:p,youtubeData:void 0,jspbYoutubeData:void 0}):null}; xOZ=function(p){return p.end==null?{start:String(p.start)}:{start:String(p.start),end:String(p.end)}}; SBh=function(p){g.D.call(this);this.L=p;this.ev=L8h(this)}; rJ=function(p){p.OO&&p.wG({adf:"0_"+((new Date).getTime()/1E3-p.va)+"_isTimeout_"+p.Z})}; dAO=function(p,a,l){p=g.lb(p.L,function(y){return a(y)}); return l?p:d$r(p)}; F2E=function(p,a,l,y,S){this.wM=a;this.L=l;this.visible=y;this.layoutId=S;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=p(this.triggerType)}; Tr=function(p,a,l,y){JF.call(this,p,{X:"span",T:"ytp-ad-pod-index"},"ad-pod-index",a,l,y);this.api.C().S&&(this.element.classList.add("ytp-ad-pod-index--mweb"),bp&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; ma=function(p,a,l){l=l===void 0?!1:l;p.L.has(a)?p5(p,a,[]):p.ZN(a,l)}; sm=function(p,a){g.X.call(this,{X:"button",A9:["ytp-button","ytp-overflow-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"M\u00e1s":"","data-tooltip-title":"M\u00e1s","aria-haspopup":"true","aria-owns":a.element.id},N:[{X:"div",T:"ytp-overflow-icon",N:[{X:"svg",V:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},N:[{X:"path",V:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]}); var l=this;this.B=p;this.A3=a;this.visible=!1;p.createClientVe(this.element,this,16499);this.J(p,"videoplayerreset",this.pz);this.J(p,"appresize",this.pz);this.J(p,"fullscreentoggled",this.pz);this.J(p,"presentingplayerstatechange",this.pz);this.pz();OC(p,this.element,this);this.listen("click",function(){p.logClick(l.element);N9(a,l.element,!1)}); this.J(a.closeButton,"click",function(){l.focus()})}; g.Um=function(p){return(p=F5Z(p.app.DN()))?p.nC():null}; QE=function(p,a,l){return U9(p,a,Hf(l))}; S4=function(p,a){if(p)for(var l in p)Object.prototype.hasOwnProperty.call(p,l)&&a(p[l],l,p)}; cy=function(p,a,l,y,S,n,V){var z="";p&&(z+=p+":");l&&(z+="//",a&&(z+=a+"@"),z+=l,y&&(z+=":"+y));S&&(z+=S);n&&(z+="?"+n);V&&(z+="#"+V);return z}; MY=function(p,a,l,y,S){a===l?S(new TypeError("Circular promise chain detected.")):l.then(function(n){n instanceof g.Qn?MY(p,a,n,y,S):y(n)},function(n){S(n)})}; CoZ=function(){if(!EaA)return null;var p=EaA();return"open"in p?p:null}; vah=function(p){return{token:Pr(p,1),videoId:Pr(p,2)}}; K2$=function(p){var a=p.S.find(function(S){return Wq(p,S)}); if(a){var l=p.app.qO();ht(p);var y=new g.Z5(8);a=mYM(p,a)/1E3;Jp(p,a,{},y,"_force");l.jl("forceParentTransition",{childPlayback:1});p.L.jl("forceParentTransition",{parentPlayback:1})}}; eJO=function(p,a,l){return f2o(p.L.get(),a.contentCpn,a.VR,function(y){return pGe(p.S.get(),y.slotId,l,a.adPlacementConfig,a.VR,kU(p.UQ.get(),y))})}; aK=function(p,a,l){g.D.call(this);this.B=p;this.xS=a;this.EO=l;this.listeners=[];this.kq=null;this.L2=new Map;a=new g.hm(this);g.E(this,a);a.J(p,"videodatachange",this.N$O);a.J(p,"serverstitchedvideochange",this.reT);this.HA=uo(this)}; Ap=function(p,a,l,y,S,n,V,z,d){this.Rc=p;this.startTime=a;this.duration=l;this.ingestionTime=y;this.sourceURL=S;this.YE=d;this.endTime=a+l;this.L=V||0;this.range=n||null;this.pending=z||!1;this.YE=d||null}; bjv=function(p){var a=1;p=p.split(":");for(var l=[];a>0&&p.length;)l.push(p.shift()),a--;p.length&&l.push(p.join(":"));return l}; ca=function(p,a,l,y,S){var n=p.D("html5_enable_new_audio_settings_menu");g7.call(this,"Volumen estable",n?IDO.zE:g.Ya.zE);this.B=p;this.U=a;this.S=l;this.hasDrcAudioTrack=y;this.getDrcState=S;this.enableNewAudioSettingsMenu=this.L=!1;g.uD(this.element,"ytp-drc-menu-item");this.U6=(this.enableNewAudioSettingsMenu=n)?p.K0().Il:p.K0();p.addEventListener("videodatachange",this.q2.bind(this));p.D("mta_drc_mutual_exclusion_removal")&&this.J(p,"onPlaybackAudioChange",this.q2);p.D("html5_enable_audio_ve_logging")&& (p.createClientVe(this.element,this,273317),this.listen("click",this.W));a=this.S()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(p=p.D("delhi_modern_web_player_icons")?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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"}}]}:{X:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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(p));this.subscribe("select",this.j,this);this.enableNewAudioSettingsMenu?this.q2():(this.setEnabled(this.hasDrcAudioTrack()),qO(this,a),this.U6.Lt(this))}; At=function(p){return(p=p.exec(g.yI()))?p[1]:""}; NV=function(p,a){this.start=p;this.end=a;this.length=a-p+1}; Mif=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; OjZ=function(p,a){a=a===void 0?RJr:a;if(!gU){var l;p=(l=p.navigator)==null?void 0:l.userAgentData;if(!p||typeof p.getHighEntropyValues!=="function"||p.brands&&typeof p.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));ucr((p.brands||[]).map(function(S){var n=new Ys;n=GY(n,1,S.brand);return GY(n,2,S.version)})); typeof p.mobile==="boolean"&&U9(q9,2,xW(p.mobile));gU=p.getHighEntropyValues(a)}var y=new Set(a);return gU.then(function(S){var n=q9.clone();y.has("platform")&&GY(n,3,S.platform);y.has("platformVersion")&&GY(n,4,S.platformVersion);y.has("architecture")&&GY(n,5,S.architecture);y.has("model")&&GY(n,6,S.model);y.has("uaFullVersion")&&GY(n,7,S.uaFullVersion);return n.Ut()}).catch(function(){return q9.Ut()})}; FE=function(p){if(p.prerendering)return 3;var a;return(a={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[p.visibilityState||p.webkitVisibilityState||p.mozVisibilityState||""])!=null?a:0}; g.Jt=function(p){return p[p.length-1]}; f_=function(p){for(;p.K.length;)p.K.pop().dispose()}; wm=function(p){var a=g.D1.apply(1,arguments).filter(Boolean).join("&");if(!a)return p;var l=p.match(/[?&]adurl=/);return l?p.slice(0,l.index+1)+a+"&"+p.slice(l.index+1):p+(p.indexOf("?")<0?"?":"&")+a}; qCv=function(p){var a,l;if(l=(a=p.player.getVideoData(1))==null||!a.e_)a=p.player.C(),l=OT(a)&&!g.zB(a)&&a.playerStyle==="desktop-polymer";l&&(p=p.player.getInternalApi(),p.addEventListener("updateKevlarOrC3Companion",kKF),p.addEventListener("updateEngagementPanelAction",M1q),p.addEventListener("changeEngagementPanelVisibility",mOA),window.addEventListener("yt-navigate-start",LPE))}; jxr=function(p){if(!p.L){g.vA(p.info.L.info)||p.info.L.info.EQ();if(g.vA(p.info.L.info))var a=g.KPM(g.KU(p));else{a=new bt(g.KU(p));var l=a.pos;a.pos=0;var y=null,S=null;if(C_(a,[408125543,307544935]))for(var n=a.pos+$u(a,!0);a.pos0&&(l=((0,g.Ek)()-p.loader.AO)/1E3,a=Math.min(a,p.policy.va+p.policy.b_*l));a=p.loader.getCurrentTime()+a;return p.policy.Zs&&(l=hJA(p.loader)+p.policy.Zs,l0&&l.push(g.JI("BR"));l.push(g.kX(n))}):l.push(g.kX(y))}return l}; nq=function(p,a){a=p.indexOf(a);a>-1&&p.splice(a,1)}; Vx=function(p,a){g7.call(this,"Reproducci\u00f3n autom\u00e1tica",g.Ya.GK);this.B=p;this.U6=a;this.L=!1;this.S=[];this.J(p,"presentingplayerstatechange",this.q2);this.subscribe("select",this.onSelect,this);p.createClientVe(this.element,this,113682);this.q2()}; Y_v=function(p){var a=lT(p)?"custom_metric_viewable":p;p=NO(s_,function(l){return l==a}); return ZR[p]}; d9=function(p,a,l){var y=p.sO.get().getCurrentTimeSec(1,!1);p.EO.get().B.C().ao()&&O4(p.uT.get(),"sdai","onopp.1;evt."+l.event+";start."+l.startSecs.toFixed(3)+";d."+l.DI.toFixed(3));$g(p.S.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var S=p.U.get(),n=a.adPlacementRenderer.renderer.adBreakServiceRenderer,V=a.contentCpn,z=a.adPlacementRenderer.adSlotLoggingData;oH(p.EO.get());var d=p.uT;var G=S.EO.get();G=g.sW(G.B.C().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var B=S.EO.get();var c=g.sW(B.B.C().experiments,"min_prefetch_offset_sec_for_livestream_optimization");B=l.startSecs*1E3;B={Up:new rM(B,B+l.DI*1E3),yz:!1,cueProcessedMs:y*1E3};var r=l.startSecs+l.DI;if(y===0)B.oK=new rM(0,r*1E3);else{c=l.startSecs-c;var w=c-y;B.oK=w<=0?new rM(c*1E3,r*1E3):new rM(Math.floor(y+Math.random()*Math.min(w,G))*1E3,r*1E3)}n=LP(S,n,V,B,z,[new op(l)]);zd(S.EO.get())&&O4(d.get(),"abrsm","cpi."+l.identifier+";cps."+l.startSecs+";cpd."+l.DI+";cts."+y+";rbf."+B.oK.start);d.get().B.iQ(l.startSecs- y,B.oK.start/1E3-y);return[n]})}; $W=function(p,a,l,y,S){y=tNo(y,a);U9(p,l,y,S);y&&!qN(y)&&zF(p.NO);return p}; ok=function(p,a,l){p.Gm();p.L.get(a)&&g.iO(Error("Extension name "+a+" already registered"));p.L.set(a,l)}; q_h=function(p){switch(p){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}; fDM=function(){if(ewA()&&!JrM){var p=function(l){l=l.data;if(l.op==="serializedGelBatch"){var y=Gd.get(l.key);y&&(D_M(l.serializedBatch,y.client,y.resolve,y.networklessOptions,y.isIsolated,y.useVSSEndpoint,y.dangerousLogToVisitorSession,y.requestsOutstanding),Gd.delete(l.key))}},a=h5(); a&&(a.addEventListener("message",p),a.onerror=function(){Gd.clear()}); JrM=!0}}; aaF=function(p){if(!pOf(p))return!1;var a;p=(a=p.mediaElement)==null?void 0:a.audioTracks();return!!(p&&p.length>1)}; Vb=function(p){return Array.prototype.slice.call(p)}; BF=function(p){var a,l,y,S,n;return!((a=p.get("active_view_viewable"))==null||!a.length)||!((l=p.get("active_view_measurable"))==null||!l.length)||!((y=p.get("active_view_fully_viewable_audible_half_duration"))==null||!y.length)||!((S=p.get("audio_audible"))==null||!S.length)||!((n=p.get("audio_measurable"))==null||!n.length)}; iE=function(p,a,l){var y=this;this.S=p;this.U=a;this.EO=l;this.L=function(S){return K3(y.S.get(),S)}}; r9=function(p,a,l,y,S,n,V,z){g.D.call(this);var d=this;this.loader=p;this.z9=a;this.videoTrack=l;this.audioTrack=y;this.MO=S;this.Sl=n;this.isAudioOnly=V;this.Z=z;this.S=Fz;this.w7=!1;this.logger=new g.iF("sabr");this.K=this.Xu=this.UO=!1;this.videoInfos=this.G=this.Sl.videoInfos;this.U=this.Bs=this.Sl.L;this.L=new cF(a,n,function(G,B){d.loader.jl(G,B)}); this.isAudioOnly&&lar(this,this.MO.L["0"])}; H3=function(){g.D.apply(this,arguments);this.FF=!0;this.WG=new Map;this.L=new Map}; w9=function(p,a,l){p.isFocused(a);return a-p.U+l<=p.L[p.S].length}; OF=function(p,a,l){if(Array.isArray(a))for(var y=0;y=Math.floor(n*16/9)*1.3||p>=n*1.3)return a;a=S}return"tiny"}; xS=function(){this.data=[];this.L=-1}; es=function(p,a,l,y,S,n){g.D.call(this);var V=this;this.G=p;this.Je=a;this.sO=l;this.uT=y;this.Iv=n;this.L=null;this.j=!1;this.FF=!0;this.Ag=new Map;a.get().addListener(this);this.addOnDisposeCallback(function(){a.Gm()||a.get().removeListener(V)}); S.get().addListener(this);this.addOnDisposeCallback(function(){S.Gm()||S.get().removeListener(V)})}; Wp=function(p,a,l,y){l=l===void 0?.5:l;y=y===void 0?0:y;this.resolution=a;this.S=0;this.U=!1;this.KE=!0;this.L=Math.round(p*this.resolution);this.values=Array(this.L);for(p=0;p=p.length?0:a}; GoM=function(p){if(p.U&&typeof RH!="undefined")if(p.Sl&&g.uV(p)==4)setTimeout(p.w9.bind(p),0);else if(p.dispatchEvent("readystatechange"),p.isComplete()){p.getStatus();p.U=!1;try{if(GT(p))p.dispatchEvent("complete"),p.dispatchEvent("success");else{p.S=6;try{var a=g.uV(p)>2?p.L.statusText:""}catch(l){a=""}p.j=a+" ["+p.getStatus()+"]";i$r(p)}}finally{um(p)}}}; fu=function(p,a){var l=p.getUint32(a),y=p.getUint32(a+4);return new gm(p,a,l,y)}; Oq=function(p){if(document.createRange){var a=document.createRange();a&&(a.selectNodeContents(p),p=window.getSelection())&&(p.removeAllRanges(),p.addRange(a))}}; k_=function(p,a){isNaN(p.Xu)||p.jl("aswr",{sq:a.info.mT[0].Rc,id:a.info.mT[0].L.info.itag,xtag:a.info.mT[0].L.info.L,ep:Date.now()-p.Xu});p.U.push(a);p.S=g.Jt(a.info.mT);p.Bs.push(a.AP());p.Bs.length>4&&p.Bs.shift()}; Uk=function(p){p=p.NO;return MK(p,p[QB]|0,B5r)}; c5E=function(p,a){this.Y3=p;this.EO=a}; gA=function(p,a){p.U={Fi:a,MX:!0};p.L=p.G||p.W}; tj=function(p,a,l,y,S,n){g.qu.call(this);var V=this;this.Io=p;this.uN=a;this.id=l;this.containerType=y;this.h9=S;this.HX=n;this.DG=this.Zh=this.Fz=null;this.Y_=!1;this.appendWindowStart=this.timestampOffset=0;this.BY=fe([],[]);this.qy=!1;this.JB=[];this.IL=mA?[]:void 0;this.handler=function(d){return V.publish(d.type,V)}; var z;if((z=this.Io)==null?0:z.addEventListener)this.Io.addEventListener("updateend",this.handler),this.Io.addEventListener("error",this.handler)}; r5F=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; hB=function(p){this.Me=p}; Ex=function(p,a,l,y){var S=l.FM;p[a]=y?function(n,V,z){return S(n,V,z,y)}:S}; wOE=function(p){this.L=p;p.SJ("/client_streamz/bg/el",g.wA("en"),g.wA("mk"))}; Yce=function(p,a){p.j||(p.j=!0,p.S&&(a?p.S.Xu.hide():p.S.hide()),a?(p=p.U,p.Ps.show(),p.show()):p.U.show())}; Q9=function(p,a){var l=a.oT,y=a.Ls.Yb,S=a.Ls.dW,n=a.Ls.OW,V,z=-1;p.I6=0;p.wx=573;for(V=0;V>1;V>=1;V--)js(p,l,V);d=n;do V=p.a9[1],p.a9[1]=p.a9[p.I6--],js(p,l,1),y=p.a9[1],p.a9[--p.wx]=V,p.a9[--p.wx]=y,l[d*2]=l[V*2]+l[y*2],p.depth[d]=(p.depth[V]>=p.depth[y]?p.depth[V]:p.depth[y])+1,l[V*2+1]=l[y*2+1]=d,p.a9[1]=d++,js(p,l,1);while(p.I6>= 2);p.a9[--p.wx]=p.a9[1];V=a.oT;d=a.Vc;y=a.Ls.Yb;S=a.Ls.dW;n=a.Ls.wV;var G=a.Ls.Ef,B=a.Ls.T7m,c,r=0;for(c=0;c<=15;c++)p.l4[c]=0;V[p.a9[p.wx]*2+1]=0;for(a=p.wx+1;a<573;a++){var w=p.a9[a];c=V[V[w*2+1]*2+1]+1;c>B&&(c=B,r++);V[w*2+1]=c;if(!(w>d)){p.l4[c]++;var P=0;w>=G&&(P=n[w-G]);var F=V[w*2];p.fN+=F*(c+P);S&&(p.SI+=F*(y[w*2+1]+P))}}if(r!==0){do{for(c=B-1;p.l4[c]===0;)c--;p.l4[c]--;p.l4[c+1]+=2;p.l4[B]--;r-=2}while(r>0);for(c=B;c!==0;c--)for(w=p.l4[c];w!==0;)y=p.a9[--a],y>d||(V[y*2+1]!==c&&(p.fN+=(c- V[y*2+1])*V[y*2],V[y*2+1]=c),w--)}Nhe(l,z,p.l4)}; WF=function(p,a,l){g.D.call(this);this.B=p;this.EO=a;this.uT=l;this.listeners=[];this.j=!1;this.ya=[];this.L=null;this.W=new rn(this,oPo(a.get()));this.U=new $Xe;this.S=null}; VD=function(){this.state=1;this.Yy=null;this.M0=void 0}; g.B8=function(p,a,l){if(typeof a==="string")(a=V5(p,a))&&(p.style[a]=l);else for(var y in a){l=p;var S=a[y],n=V5(l,y);n&&(l.style[n]=S)}}; Lz=function(p,a,l,y,S,n,V){g.D.call(this);this.callback=p;this.BZ=a;this.sO=l;this.lr=y;this.PZ=S;this.Ye=n;this.EO=V;this.FF=!0;this.V2=!1}; iV=function(p){QH.call(this,p);var a=this;this.useLivingRoomPoToken=!1;this.W=new g.rQ;this.L=!1;this.QQ=null;this.Z=!1;this.j=null;this.G=!1;var l=p.C().getWebPlayerContextConfig();this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"spsumpreject",function(y,S,n){a.G=S;y&&a.Z&&!a.j&&(a.D("html5_generate_content_po_token")&&n?a.JG(n):a.D("html5_generate_session_po_token")&&oYM(a));a.j||a.api.jl("stp",{s:+a.Z,b:+a.G})}); this.events.J(p,"poTokenVideoBindingChange",function(y){a.JG(y)}); this.useLivingRoomPoToken=!(l==null||!l.useLivingRoomPoToken);p.addEventListener("csiinitialized",function(){a.QQ=p.f0();var y=(a.D("html5_generate_session_po_token")||a.D("html5_generate_content_po_token"))&&!a.useLivingRoomPoToken;try{if(a.D("html5_use_shared_owl_instance"))Ppe(a);else if(y){a.QQ.Xb("pot_isc");var S=g.sW(a.api.C().experiments,"html5_webpo_kaios_defer_timeout_ms");S?(a.U=HF(),g.aY(function(){DR(a)},S)):a.D("html5_webpo_idle_priority_job")?(a.U=HF(),g.jv(g.W4(),function(){DR(a)})): DR(a)}}catch(n){n instanceof Error&&g.Mf(n)}}); p.addEventListener("trackListLoaded",this.q0.bind(this));p.C3(this)}; rVM=function(p,a){if(p.endpoint==="log_event"){Sh(p);var l=NL(p),y=D6F(p.payload)||"",S=LvM(y),n=200;if(S){if(S.enabled===!1&&!g.oO("web_payload_policy_disabled_killswitch"))return;n=OlM(S.tier);if(n===400){Tfr(p,a);return}}Td[l]=!0;l={cttAuthInfo:l,isJspb:!1,tier:n};Tg().storePayload(l,p.payload);XOq(a,!1,l,cD(y))}}; NK=function(p,a,l,y,S,n){S=S===void 0?[]:S;n=n===void 0?"toggle-button":n;var V=y_("ytp-ad-toggle-button-input"),z={role:"button","aria-label":"{{tooltipText}}"};p.C().experiments.Cz("fix_h5_toggle_button_a11y")&&(z.tabindex="0");z.role="checkbox";JF.call(this,p,{X:"div",A9:["ytp-ad-toggle-button"].concat(S),N:[{X:"label",T:"ytp-ad-toggle-button-label",V:{"for":V},N:[{X:"span",T:"ytp-ad-toggle-button-icon",V:z,N:[{X:"span",T:"ytp-ad-toggle-button-untoggled-icon",yY:"{{untoggledIconTemplateSpec}}"}, {X:"span",T:"ytp-ad-toggle-button-toggled-icon",yY:"{{toggledIconTemplateSpec}}"}]},{X:"input",T:"ytp-ad-toggle-button-input",V:{id:V,type:"checkbox"}},{X:"span",T:"ytp-ad-toggle-button-text",yY:"{{buttonText}}"},{X:"span",T:"ytp-ad-toggle-button-tooltip",yY:"{{tooltipText}}"}]}]},n,a,l,y);this.j=this.d7("ytp-ad-toggle-button");this.L=this.d7("ytp-ad-toggle-button-input");this.S=this.d7("ytp-ad-toggle-button-icon");this.Z=this.d7("ytp-ad-toggle-button-untoggled-icon");this.W=this.d7("ytp-ad-toggle-button-toggled-icon"); this.QY=this.d7("ytp-ad-toggle-button-text");this.U=null;this.Xu=!1;this.hide()}; g.Sw=function(p){if(p.simpleText)return p.simpleText;if(p.runs){var a=[];p=g.t(p.runs);for(var l=p.next();!l.done;l=p.next())l=l.value,l.text&&a.push(l.text);return a.join("")}return""}; sq=function(p,a){this.triggeringSlotId=a;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=p(this.triggerType)}; nn=function(p){return p.LC()&&p.C().supportsGaplessShorts()}; Uq=function(p,a){var l;Ux(p.uT.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(l=p.ac.get().HA)==null?void 0:l.clientPlaybackNonce,adClientData:p.layout.nx.adClientDataEntry},a)})}; SM=function(){this.U=0;this.L=[];this.S=!1}; xXr=function(p){var a=p.y4;p=p.videoData;var l=Pa(a,p);a.D("html5_disable_client_autonav_cap_for_onesie")||l.compose(LG(a,p));return l}; Qx=function(p,a){this.L=a;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=p(this.triggerType)}; FvF=function(p,a){if(p.Ic)return p.Ic.U;a:{a=a===void 0?!1:a;a=a===void 0?!1:a;try{g.pT()&&p.videoData.LI()&&HWA(p.mediaElement);var l=p.mediaElement.D_(p.Op(),p.ze())}catch(S){if(hj(p.Dz,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",S);p.Ne("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}p.oL(l,!1,!1,a)}var y;return((y=p.D_())==null?void 0:y.U)||null}; EzZ=function(p){return p.info.L.info.EQ()&&ek(p.S,0)===160}; vzF=function(p){p.Sb&&!p.isSuspended&&Aj(p.schedule)&&(CpM(p,p.Sb),p.Sb="")}; KvF=function(p){var a={cpn:p.clientPlaybackNonce,c:p.Ws.L.c,cver:p.Ws.L.cver};p.Vu&&(a.ptk=p.Vu,a.oid=p.QG,a.ptchn=p.Bq,a.pltype=p.Dc,p.cH&&(a.m=p.cH));return a}; Dce=function(){return new Promise(function(p){var a=window;a.ntpevasrs!==void 0?p(new vB(a.ntpevasrs)):(a.ntpqfbel===void 0&&(a.ntpqfbel=[]),a.ntpqfbel.push(function(l){p(new vB(l))}))})}; ezM=function(){var p=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];CU().forEach(function(a){p.push(a)}); return{XX:p,OE:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; g.g9=function(p){var a,l;if(!((a=p.webPlayerContextConfig)==null?0:(l=a.embedsHostFlags)==null?0:l.enableLiteUx)||p.qc||p.G||p.U||p.Bs==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";p=g.sW(p.experiments,"embeds_web_lite_mode");return p===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":p>=0&&p=p){TD(1,a);var G=g.j$(a[Z[8]],oBv)}if(!(p+6>>4)){var B=g.T(a,Iah)||a[Z[55]],c={UR:!1,zz:Z[3],FN:Z[3],s:Z[3]};B?(B=vv(B),c[Z[46]]=!0,c[Z[82]]=B[Z[19]],c[Z[53]]=B[Z[31]],c[Z[78]]=B[Z[78]],G=c):G=c}(p-4|41)>=p&&(p+5&26)=a.range.start+a.S&&p.range.start+p.S+p.U<=a.range.start+a.S+a.U:p.Rc===a.Rc&&p.S>=a.S&&(p.S+p.U<=a.S+a.U||a.j)}; HzZ=function(p){return new Promise(function(a,l){Wvv(p,a,l)})}; Ano=function(p){var a,l;return g.R(function(y){return y.L==1?g.u(y,eO(p),2):y.L!=3?(a=y.S,l=void 0,g.u(y,g.Nk(a,["hotConfigStore"],{mode:"readwrite",Gn:!0},function(S){return g.Aw(S.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(n){l=n.getValue()})}),3)):y.return(l)})}; Lv=function(p,a){return p.B.getPlayerStateObject(a)}; X0A=function(p,a){NQ(p,1,a.elapsedTimeMs);Ym(p,3,a.videoDecoderName)}; DXh=function(p,a,l){return a.itag!==l.itag||a.xtags!==l.xtags?!1:p.MO.ke||a.lmt===l.lmt}; Cv=function(p){return g.Es(function(){return w1("_start",p)})()}; g.fq=function(p){g.N_.call(this,p);this.chrome=null;this.load()}; Za=function(p,a,l,y,S){bT.call(this,p,a,l,y);p=PE(l.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,S,p,l.layoutId)}; vg=function(p,a,l,y){if((p|56)==p){if(l===Z[80]){var S;(S=y[Z[16]](Z[24]))>=0?(l=Z[13]+y[Z[15]](0,S),y=y[Z[15]](S+1)):(S=y[Z[16]](Z[68]))>=0&&(l=Z[13]+y[Z[15]](0,S),y=y[Z[15]](S+3))}a[l]=y}if(!(p<<1&14)){S=64;for(var n=[];++S-n[Z[7]]-32;)switch(S){case 46:S=95;default:n[Z[11]](String[Z[8]](S));case 94:case 95:case 96:break;case 123:S-=76;case 92:case 93:continue;case 58:S=44;case 91:}var V=n}if((p>>1&15)==2){S=a[Z[21]](Z[84]);var z={};for(n=0;n=p){TD(1,a);if(S=a[Z[8]][Z[28]]||null)S=izr[0](S),a[Z[49]](Z[28],S);V=[a]}return V}; f8=function(p){this.L=p;this.S=null;this.W=this.U=0;this.Sl=!1;this.j=this.K=this.G=null;this.Z=new g.q4(this);this.Z.listen(this.L,"readystatechange",this.UO)}; l7=function(p){if(p.L){var a=p.L.getAttribute("data-tooltip-text");if(p.U&&p.L.getAttribute("aria-label")!==p.U)var l=p.U;var y=p.L.getAttribute("aria-keyshortcuts"),S=p.L.getAttribute("data-title-no-tooltip");y&&S&&(l=g.ug("$BUTTON_TITLE combinaci\u00f3n de teclas $SHORTCUT_KEY",{BUTTON_TITLE:S,SHORTCUT_KEY:y}));l&&p.L.setAttribute("aria-label",l);if(a&&!p.K){n2M(p,!0);var n=p.L;p.updateValue("text",a);l=n.getAttribute("data-duration");p.update({title:p.U,duration:l});n=n.getAttribute("data-preview"); p.env.D("delhi_modern_web_player")?(p.updateValue("title",S),p.updateValue("keyBoardShortcutTitle",y.toUpperCase())):n2M(p,!1);y=243*p.scale;S=141*p.scale;p.bg.style.width=y+"px";p.bg.style.height=S+"px";p.bg.style.backgroundImage=n?"url("+n+")":"";p.bg.style.backgroundSize=y+"px "+S+"px";p.wrapper.style.width=y+"px";g.pw(p.element,["ytp-text-detail","ytp-preview"]);g.JB(p.element,"ytp-has-duration",!!l)}else S&&y&&p.env.D("delhi_modern_web_player")?(p.updateValue("text",S),p.updateValue("keyBoardShortcut", y.toUpperCase())):p.updateValue("text",p.U),g.aV(p.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);l=p.L;l.hasAttribute("data-tooltip-offset-y")?(l=Number(l.getAttribute("data-tooltip-offset-y")),l=isNaN(l)?0:l):l=0;EUr(p,!!a,void 0,l)}}; T5o=function(p,a,l){a=g.t(a);for(var y=a.next();!y.done;y=a.next()){y=y.value;var S=void 0,n=Number((S=y.playbackRelativePosition)==null?void 0:S.utcTimeMs)/1E3,V=void 0;S=n+Number((V=y.duration)==null?void 0:V.seconds);V="stations:"+l+":"+n;p.S.has(V)||(p.S.add(V),y.onEnter&&(p.L[V]=y.onEnter),p.api.addUtcCueRange(V,n,S,l,!1))}}; N5r=function(p,a){for(var l=[],y=g.t(p.Ag.values()),S=y.next();!S.done;S=y.next())S=S.value,S.trigger instanceof I9&&S.trigger.slotId===a&&l.push(S);l.length>=1&&YB(p.L(),l)}; y1=function(p,a){var l;return(l=p.eD)==null?void 0:l.get(a)}; Sf=function(){var p=swf;var a=a===void 0?[]:a;var l=l===void 0?[]:l;a=dOo.apply(null,[UXE.apply(null,g.u0(a))].concat(g.u0(l)));this.store=Qwf(p,void 0,a)}; cA$=function(){function p(c,r){if(typeof c==="string"){c=unescape(encodeURIComponent(c));for(var w=[],P=0,F=c.length;P>>31)&4294967295;c=S[0];var P=S[1],F=S[2],v=S[3],I=S[4];for(w=0;w<80;w++){if(w<40)if(w<20){var b=v^P&(F^v);var O=1518500249}else b=P^F^v,O=1859775393;else w<60?(b=P&F|v&(P|F),O=2400959708):(b=P^F^v,O=3395469782);b=((c<<5|c>>>27)&4294967295)+b+I+O+r[w]&4294967295;I=v;v=F;F=(P<<30|P>>>2)&4294967295;P=c;c=b}S[0]=S[0]+c&4294967295;S[1]=S[1]+P&4294967295;S[2]= S[2]+F&4294967295;S[3]=S[3]+v&4294967295;S[4]=S[4]+I&4294967295} function y(){var c=[],r=B*8;G<56?p(z,56-G):p(z,64-(G-56));for(var w=63;w>=56;w--)n[w]=r&255,r>>>=8;l(n);for(w=r=0;w<5;w++)for(var P=24;P>=0;P-=8)c[r++]=S[w]>>P&255;return c} for(var S=[],n=[],V=[],z=[128],d=1;d<64;++d)z[d]=0;var G,B;a();return{reset:a,update:p,digest:y,TC:function(){for(var c=y(),r="",w=0;w0){var r=hp(c,d);r>=0&&(B=(c.end(r)-d+.1)*1E3)}n.push({formatId:g.Bp(z.info.L.info,p.MO.ke), CC:z.info.CC,sequenceNumber:z.info.Rc+p.j,oy:G,Cu:z.info.U,CL:B})}p={wq:a,iU:n}}return(y=p)!=null?y:l}; ZW=function(p,a){try{if(a.length){p.UO||(p.UO=nu());var l=WlA(a),y=Kyv(p.element,p.S.L.U),S=y.x,n=y.y;p.U=new Tf(Math.round(n),Math.round(S)+l.boundingClientRect.width,Math.round(n)+l.boundingClientRect.height,Math.round(S));p.L=BhO(p,p.U);var V=YYv(l.intersectionRect);p.G=V1(V,p.U.left-V.left,p.U.top-V.top)}}catch(z){p.unobserve(),Jf(299,z)}}; WN$=function(p,a,l){l=p.L.DK(l);var y=p.S;y.L.exports.AES128CTRCipher_setCounter(y.cipher,l.byteOffset);p.L.free(l.byteOffset);a=p.L.DK(a);p.S.encrypt(a);return a}; ub=function(p,a){try{a={detail:"pr."+a},(g.oV(p.Ws)||lm(p.Ws)==="TVHTML5_FOR_KIDS")&&p.Ws.D("html5_reload_by_kabuki_app")?p.Lz.Ne("qoe.restart",1,void 0,qp(a),"7"):(p.w$("qoe.restart",a),window.location.reload())}catch(l){}}; z$=function(p,a,l,y,S,n,V,z,d){if(a===p)if(d){if(d===z.layoutId){a:{p=g.t(l.keys());for(a=p.next();!a.done;a=p.next())if(a=a.value,a.slotType==="SLOT_TYPE_PLAYER_BYTES"&&n===l.get(a).layoutId){l=!0;break a}l=!1}l?dy(y,1):S?S():hF("Tried to call engagePingCallback but it is null",V,z)}}else hF("Companion AdUxClick received without a layoutId",V,z)}; G$=function(p,a){dT.call(this,p,2,a)}; hl=function(p){this.uT=p}; Bt=function(p,a,l,y,S,n){this.videoData=p;this.L=a;this.reason=l;this.S=y;this.token=S;this.videoId=n}; qYr=function(p){if(p.Ic)if(p.rj(),p.Ic.W)try{p.Y.ao()&&p.jl("rms",{l:"vprms",sr:p.M3(),rs:B1(p.Ic)});p.Ic.clear();var a;(a=p.mediaElement)!=null&&(a.S=p.Ic);p.Ic=null}catch(l){a=new g.kc("Error while clearing Media Source in VideoPlayer: "+l.name+", "+l.message),a=jl(a),p.handleError(a),p.TF()}else p.TF()}; oE=function(p,a){p.L=a;if(a>p.U)throw Error();}; fh=function(p,a){return c1(A9(p,a,void 0,rT))}; wT=function(p){this.value=p}; J5q=function(p,a,l,y){return a&&l.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?p.map(function(S){return S instanceof D6?new rG(function(n){return K3(y,n)},l.adSlotMetadata.slotId):S}):p}; P1=function(p,a,l,y,S,n,V,z,d,G,B){var c=[];if(a.length===0&&y.length===0&&l.length===0)return c;a=a.filter(c9);var r=l.filter(faZ),w=y.filter(c9),P=new Map,F=pRA(a),v=l.some(function(yU){var kh;return(yU==null?void 0:(kh=yU.adSlotMetadata)==null?void 0:kh.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),I=l.some(function(yU){var kh; return(yU==null?void 0:(kh=yU.adSlotMetadata)==null?void 0:kh.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),b=l.some(function(yU){var kh; return(yU==null?void 0:(kh=yU.adSlotMetadata)==null?void 0:kh.slotType)==="SLOT_TYPE_IN_PLAYER"}),O=l.some(function(yU){var kh,OM; return(yU==null?void 0:(kh=yU.adSlotMetadata)==null?void 0:kh.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(yU==null?void 0:(OM=yU.adSlotMetadata)==null?void 0:OM.slotType)==="SLOT_TYPE_ABOVE_FEED"}),m=l.some(function(yU){var kh; return(yU==null?void 0:(kh=yU.adSlotMetadata)==null?void 0:kh.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); l=l.some(function(yU){var kh;return(yU==null?void 0:(kh=yU.adSlotMetadata)==null?void 0:kh.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(v||I||b||O||m||l)G=a8h(r,a,z,S,F,p.UQ.get(),p.loadPolicy,P,p.EO.get(),p.j.get(),b,V,d,G,B),G instanceof W?hF(G,void 0,void 0,{contentCpn:S}):c.push.apply(c,g.u0(G));G=g.t(a);for(B=G.next();!B.done;B=G.next())B=B.value,l=l8A(p,P,B,S,n,V,v,z,F,d,r),l instanceof W?hF(l,void 0,void 0,{renderer:B.renderer,config:B.config.adPlacementConfig,kind:B.config.adPlacementConfig.kind,contentCpn:S,daiEnabled:V}):c.push.apply(c,g.u0(l));uhO(p.EO.get())||(n=yuZ(p,w,S,z,F,P),c.push.apply(c,g.u0(n)));if(p.U===null|| V&&!z.rO){var H,Y,N;p=z.ke&&a.length===1&&((H=a[0].config)==null?void 0:(Y=H.adPlacementConfig)==null?void 0:Y.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((N=a[0].renderer)==null?void 0:N.adBreakServiceRenderer);if(!c.length&&!p){var yo,zq,S$,BE;hF("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":a.length,contentCpn:S,"first APR kind":(yo=a[0])==null?void 0:(zq=yo.config)==null?void 0:(S$=zq.adPlacementConfig)==null?void 0:S$.kind,renderer:(BE= a[0])==null?void 0:BE.renderer})}return c}H=y.filter(c9);c.push.apply(c,g.u0(Srr(P,H,p.S.get(),p.U,S,v)));if(!c.length){var f,xh,Nf,nc;hF("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":a.length,contentCpn:S,daiEnabled:V.toString(),"first APR kind":(f=a[0])==null?void 0:(xh=f.config)==null?void 0:(Nf=xh.adPlacementConfig)==null?void 0:Nf.kind,renderer:(nc=a[0])==null?void 0:nc.renderer})}return c}; $4f=function(p,a){var l,y;return g.R(function(S){return S.L==1?(l=[],g.u(S,g.bx(Fm,a),2)):S.L!=3?(y=S.S,g.u(S,g.Nk(y,["databases"],{Gn:!0,mode:"readonly"},function(n){l.length=0;return g.JA(n.objectStore("databases"),{},function(V){p(V.getValue())&&l.push(V.getValue());return g.Lt(V)})}),3)):S.return(l)})}; nGr=function(){return g.R(function(p){return g.u(p,nrr("ytGcfConfig"),0)})}; ZDM=function(p,a){p.timestampOffset>0&&(a-=p.timestampOffset);var l=g.ZV(p)+a;VSO(p,l);p.timestampOffset=a}; Lw=function(p,a,l,y,S){JF.call(this,p,{X:"div",T:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",a,l,y,S===void 0?null:S);var n=this;this.L=null;this.U=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,["ytp-ad-instream-user-sentiment-like-button"]);g.E(this,this.U);this.U.lT(this.element);this.S=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,["ytp-ad-instream-user-sentiment-dislike-button"]);g.E(this,this.S);this.S.lT(this.element); this.j=new g.Gq(this,400,!1,500,function(){return n.hide()}); g.E(this,this.j);this.hide()}; oGM=function(p,a){return Hg(p,2,a)}; zo$=function(p){return g.rA(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(a){return"on"+a.toLowerCase()in p})}; Gs$=function(p,a){p=p===void 0?{}:p;switch(a.type){case "ENTITY_LOADED":return a.payload.reduce(function(y,S){var n,V=(n=S.options)==null?void 0:n.persistenceOption;if(V&&V!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&V!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return y;if(!S.entityKey)return g.iO(Error("Missing entity key")),y;if(S.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!S.payload)return S=new g.kc("REPLACE entity mutation is missing a payload",{entityKey:S.entityKey}),g.iO(S),y;var z=g.Xl(S.payload); return jX(y,z,S.entityKey,S.payload[z])}if(S.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{S=S.entityKey;try{var d=g.xj(S).entityType;z=jX(y,d,S);break a}catch(c){if(c instanceof Error){S=new g.kc("Failed to deserialize entity key",{entityKey:S,originalMessage:c.message});g.iO(S);z=y;break a}throw c;}z=void 0}return z}if(S.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!S.payload)return S=new g.kc("UPDATE entity mutation is missing a payload",{entityKey:S.entityKey}),g.iO(S),y;z=g.Xl(S.payload);var G,B;return dbr(y, z,S.entityKey,S.payload[z],(G=S.fieldMask)==null?void 0:(B=G.mergeOptions)==null?void 0:B.repeatedFieldsMergeOption)}return y},p); case "REPLACE_ENTITY":var l=a.payload;return jX(p,l.entityType,l.key,l.mf);case "REPLACE_ENTITIES":return Object.keys(a.payload).reduce(function(y,S){var n=a.payload[S];return Object.keys(n).reduce(function(V,z){return jX(V,S,z,n[z])},y)},p); case "UPDATE_ENTITY":return l=a.payload,dbr(p,l.entityType,l.key,l.mf,l.g0u);default:return p}}; g.jJE=function(p){var a,l;return g.R(function(y){if(y.L==1)return g.u(y,g.Nb(),2);if(y.L!=3){a=y.S;if(!a)throw g.K6("ri");return g.u(y,g.Fl(a),3)}l=y.S;return y.return(g.Nk(l,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(S){var n=IDBKeyRange.bound(p+"|",p+"~");return S.objectStore("index").getAll(n).then(function(V){return V.map(function(z){return z?z.format:{}})})}))})}; Jhv=function(p,a){p=p.app.qO();var l=p.getPlayerState();a.isOrWillBePlaying()&&!l.isOrWillBePlaying()?p.playVideo():a.isPaused()&&!l.isPaused()&&p.pauseVideo()}; AJ=function(p){this.L=p;this.pos=0;this.S=-1}; g.VU=function(p,a){xJ||UDh();EK||(xJ(),EK=!0);Buo.add(p,a)}; Cw=function(){}; g.g8=function(p){var a=g.yI();return a?a.toLowerCase().indexOf(p)>=0:!1}; ef=function(p,a,l){g.gH.call(this,p);var y=this;this.U6=a;this.nh=l;this.getVideoUrl=new v1(6);this.K9=new v1(5);this.n9=new v1(4);this.mS=new v1(3);this.AA=new g.CX(g.vy({href:"{{href}}",target:this.B.C().Sl},void 0,!0),2,"Solucionar un problema de reproducci\u00f3n");this.showVideoInfo=new g.CX(g.vy(),1,"Estad\u00edsticas para nerds");this.GY=new g.YZ({X:"div",A9:["ytp-copytext","ytp-no-contextmenu"],V:{draggable:"false",tabindex:"1"},yY:"{{text}}"});this.Hc=new P5(this.B,this.GY);this.ud=this.Vn= null;g.wW(this.B.C())&&(this.closeButton=new g.X({X:"button",A9:["ytp-collapse","ytp-button"],V:{title:"Cerrar"},N:[g.Kw()]}),g.E(this,this.closeButton),this.closeButton.lT(this.element),this.closeButton.listen("click",this.dY,this));g.wW(this.B.C())&&(this.VP=new g.CX(g.vy(),8,"Cuenta"),g.E(this,this.VP),this.Lt(this.VP,!0),this.VP.listen("click",this.IIm,this),p.createClientVe(this.VP.element,this.VP,137682));this.B.C().So&&(this.pO=new g7("Bucle",7),g.E(this,this.pO),this.Lt(this.pO,!0),this.pO.listen("click", this.Y6v,this),p.createClientVe(this.pO.element,this.pO,28661));this.B.D("web_player_miniplayer_in_context_menu")&&(this.hJ=new g.CX(g.vy(),6,"Minirreproductor"),g.E(this,this.hJ),this.Lt(this.hJ,!0),this.hJ.listen("click",this.yPY,this),p.createClientVe(this.hJ.element,this.hJ,62946));g.E(this,this.getVideoUrl);this.Lt(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.PMY,this);p.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.E(this,this.K9);this.Lt(this.K9,!0);this.K9.listen("click", this.Vbu,this);p.createClientVe(this.K9.element,this.K9,28660);g.E(this,this.n9);this.Lt(this.n9,!0);this.n9.listen("click",this.xcm,this);p.createClientVe(this.n9.element,this.n9,28658);g.E(this,this.mS);this.Lt(this.mS,!0);this.mS.listen("click",this.zvv,this);g.E(this,this.AA);this.Lt(this.AA,!0);this.AA.listen("click",this.bhV,this);g.E(this,this.showVideoInfo);this.Lt(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.KOs,this);g.E(this,this.GY);this.GY.listen("click",this.tbs,this); g.E(this,this.Hc);e2F()&&(this.Vn=new g.X({X:"textarea",T:"ytp-html5-clipboard",V:{readonly:"",tabindex:"-1"}}),g.E(this,this.Vn),this.Vn.lT(this.element));var S;(S=this.VP)==null||S.setIcon(chZ());var n;(n=this.pO)==null||n.setIcon(Wee());var V;(V=this.hJ)==null||V.setIcon(d0());this.mS.setIcon({X:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{"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.AA.setIcon(CbA());this.showVideoInfo.setIcon(Z$Z());this.J(p,"onLoopChange",this.onLoopChange);this.J(p,"videodatachange",this.onVideoDataChange);this.J(p,"fullscreentoggled",function(){cuF(y)}); ruf(this);wRM(this,this.B.getVideoData())}; IV=function(p,a,l,y){this.videoInfos=p;this.L=a;this.audioTracks=[];this.S=y||[];if(this.L){p=new Set;l==null||l({ainfolen:this.L.length});a=g.t(this.L);for(y=a.next();!y.done;y=a.next())if(y=y.value,!y.Mc||p.has(y.Mc.id)){var S=void 0,n=void 0,V=void 0;(V=l)==null||V({atkerr:!!y.Mc,itag:y.itag,xtag:y.L,lang:((S=y.Mc)==null?void 0:S.name)||"",langid:((n=y.Mc)==null?void 0:n.id)||""})}else S=new g.b7(y.id,y.Mc),p.add(y.Mc.id),this.audioTracks.push(S);l==null||l({atklen:this.audioTracks.length})}}; P4M=function(p,a){var l=p[a];if(l)return l;if(l=p.extensions)if(l=l[a]){l=$bE(l);var y=l[0].hM;if(l=l[1]){var S=Mvr(l),n=Ch(Ib,Rb,ux,l).fG;l=p.rW?En(n,S):function(V,z,d){return y(V,z,d,n,S)}}else l=y; return p[a]=l}}; lbr=function(p){if(p.O9()){if(!$C(p,408125543))return!1;$u(p,!0)}return!0}; RV=function(p,a,l,y){g.qu.call(this);var S=this;this.j5=p;this.start=a;this.end=l;this.isActive=y;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Lu={error:function(){!S.Gm()&&S.isActive&&S.publish("error",S)}, updateend:function(){!S.Gm()&&S.isActive&&S.publish("updateend",S)}}; this.j5.xT(this.Lu);this.cz=this.isActive}; g.u=function(p,a,l){p.L=l;return{value:a}}; Aa=function(p){g.D.call(this);this.features=[];var a=this.L,l=new cj(p),y=new VG(p),S=new u7(p),n=new iV(p);var V=g.zB(p.C())?void 0:new OK(p);var z=new wr(p),d=new wHr(p),G=new RLA(p),B=new kj(p);var c=g.zB(p.C())?new S$O(p):void 0;var r;var w=(r=p.C().getWebPlayerContextConfig())!=null&&r.cinematicSettingsAvailable?new M1(p):void 0;r=new mJ(p);var P=p.D("enable_courses_player_overlay_purchase")?new LdF(p):void 0;var F=g.Z0(p.C())?new XRr(p):void 0;var v=new ta(p);var I=p.C().j?new AAr(p):void 0; var b=g.wW(p.C())?new EYe(p):void 0;var O=p.D("web_player_move_autonav_toggle")&&p.C().Ct?new xbo(p):void 0;var m=g.Z0(p.C())?new jf(p):void 0;var H=p.D("web_enable_speedmaster")&&g.Z0(p.C())?new MR(p):void 0;var Y=p.C().V4?void 0:new c9M(p);var N=p.D("report_pml_debug_signal")?new FdE(p):void 0;var yo=new W1(p),zq=new H1(p);var S$=g.dB(p.C())?new dEh(p):void 0;var BE=navigator.mediaSession&&window.MediaMetadata&&p.C().vk?new jh(p):void 0;var f=p.D("html5_enable_drc")&&!p.C().G?new rj(p):void 0;var xh= new Vc(p);var Nf=g.Z0(p.C())?new EGr(p):void 0;var nc=p.D("html5_enable_d6de4")?new DW(p):void 0;var yU=g.Z0(p.C())&&p.D("web_sleep_timer")?new i7(p):void 0;var kh=g.wW(p.C())?new rYv(p):void 0;var OM=new g1(p),q7=new xVZ(p),u_=new C4M(p);var i_=p.D("enable_sabr_snackbar_message")?new mxo(p):void 0;var p8=p.D("web_enable_timely_actions")?new T$(p):void 0;var G5=new hY(p);var km,Kc;var lF=((km=p.C())==null?0:(Kc=km.getWebPlayerContextConfig())==null?0:Kc.enableFullscreenComponentsFeature)?new N1(p): void 0;km=p.D("html5_enable_voice_boost")?new sK(p):void 0;Kc=p.D("web_player_loop_settings_menu")&&p.C().So?new D4Z(p):void 0;var eb=g.zB(p.C())?void 0:new UK(p);var C=new Q1(p),ar=new ha(p),e_=new M5(p),qQ=new hwM(p);var jb=g.Z0(p.C())&&p.C().D("delhi_modern_web_player")?new vG$(p):void 0;var Qo=p.C().U?void 0:new Lue(p);a.call(this,l,y,S,n,V,z,d,G,B,c,w,r,P,F,v,I,b,O,m,H,Y,N,yo,zq,S$,void 0,BE,f,xh,void 0,Nf,nc,yU,kh,void 0,OM,q7,u_,void 0,i_,p8,G5,lF,km,void 0,Kc,void 0,eb,C,ar,e_,qQ,jb,Qo,new Kdh(p))}; sY$=function(p){var a=new zU;if(p.interpreterJavascript){var l=btr(p.interpreterJavascript);l=pP(l).toString();var y=new an;GY(y,6,l);$W(a,an,1,y,Vm)}else p.interpreterUrl&&(l=dn(p.interpreterUrl),l=$v(l).toString(),y=new lY,GY(y,4,l),$W(a,lY,2,y,Vm));p.interpreterHash&&Hg(a,3,p.interpreterHash,Vm);p.program&&Hg(a,4,p.program,Vm);p.globalName&&Hg(a,5,p.globalName,Vm);p.clientExperimentsStateBlob&&Hg(a,7,p.clientExperimentsStateBlob,Vm);return a}; Q2Z=function(p,a){for(var l=[],y=g.t(Object.keys(p.L)),S=y.next();!S.done;S=y.next())S=S.value,l.push(S+"_"+p.L[S].type+"_"+p.L[S].status);return l.join(a)}; ZD=function(p){this.value=p}; ZN=function(){this.L={};if(this.S=ZlZ()){var p=g.cB("CONSISTENCY");p&&eoe(this,{encryptedTokenJarContents:p})}}; bDr=function(p,a,l){if(sr(p.L,a))if(r1(p.L,a).j=l?"filled":"not_filled",l===null){p.Tn.L0("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",a);l=g.t(p.S);for(var y=l.next();!y.done;y=l.next())y.value.Rv(a);s2(p,a,!1)}else{p.Tn.L0("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",a,l);p.Tn.L0("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",a,l);var S,n=(S=l.z4)!=null?S:PE(l.clientMetadata,"metadata_type_sub_layouts");if(n)for(S=g.t(n),n=S.next();!n.done;n=S.next())p.Tn.L0("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED", a,n.value);S=g.t(p.S);for(n=S.next();!n.done;n=S.next())n.value.vl(a);if(sr(p.L,a))if(r1(p.L,a).W)s2(p,a,!1);else{p.Tn.L0("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",a,l);try{y=p.L;if(!r1(y,a))throw new Xd("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!y.Gp.fH.get(a.slotType))throw new Xd("No LayoutRenderingAdapterFactory registered for slot of type: "+a.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY"); if(l.layoutExitNormalTriggers.length==0&&l.layoutExitSkipTriggers.length==0&&l.layoutExitMuteTriggers.length==0&&l.layoutExitUserInputSubmittedTriggers.length==0&&l.layoutExitUserCancelledTriggers.length==0)throw new Xd("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");gT(y,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",l.layoutExitNormalTriggers);gT(y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",l.layoutExitSkipTriggers);gT(y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED", l.layoutExitMuteTriggers);gT(y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",l.layoutExitUserInputSubmittedTriggers);gT(y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",l.layoutExitUserCancelledTriggers)}catch(G){G instanceof Xd?p.N2(a,l,G,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):p.N2(a,l,new Xd("Unexpected error: "+G,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");s2(p,a,!0);return}r1(p.L,a).G=!0;try{var V=p.L,z=r1(V,a),d=V.Gp.fH.get(a.slotType).get().build(V.j, V.S,a,l);d.init();z.layout=l;if(z.U)throw new Xd("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");z.U=d;eP(V,z,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",l.layoutExitNormalTriggers);eP(V,z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",l.layoutExitSkipTriggers);eP(V,z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",l.layoutExitMuteTriggers);eP(V,z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",l.layoutExitUserInputSubmittedTriggers); eP(V,z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",l.layoutExitUserCancelledTriggers)}catch(G){Yj(p,a);G instanceof Xd?p.N2(a,l,G,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):p.N2(a,l,new Xd("Unexpected error: "+G,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");s2(p,a,!0);return}p.Tn.L0("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",a,l);y=g.t(p.S);for(V=y.next();!V.done;V=y.next())V.value.Lq(a,l);Yj(p,a);pWM(p,a)}else p=p.EO.get(),g.zB(p.B.C())|| OT(p.B.C())||g.g5(p.B.C())?p=!0:(hF("Composite VOD on legacy path."),p=!1),p&&hF("slot is unscheduled after been fulfilled.",a,l)}}; fw=function(p,a){g.X.call(this,{X:"div",T:"ytp-fine-scrubbing",N:[{X:"div",T:"ytp-fine-scrubbing-draggable",N:[{X:"div",T:"ytp-fine-scrubbing-thumbnails",V:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic o despl\u00e1zate por el panel para hacer b\u00fasquedas precisas.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{X:"div",V:{"aria-hidden":"true"},T:"ytp-fine-scrubbing-cursor"},{X:"div",T:"ytp-fine-scrubbing-seek-time", V:{"aria-hidden":"true"},yY:"{{seekTime}}"},{X:"div",T:"ytp-fine-scrubbing-play",N:[p.D("delhi_modern_web_player_icons")?q1():Ja()],V:{title:"Reproducir desde esta posici\u00f3n",role:"button"}},{X:"div",T:"ytp-fine-scrubbing-dismiss",N:[g.Kl()],V:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var l=this;this.api=p;this.W=this.d7("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.d7("ytp-fine-scrubbing-dismiss");this.w7=this.d7("ytp-fine-scrubbing-draggable");this.playButton= this.d7("ytp-fine-scrubbing-play");this.thumbnails=[];this.S=[];this.Hs=this.L=0;this.t9=void 0;this.UO=NaN;this.nz=this.Z=this.U=this.K=0;this.j=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.r7=0;this.isEnabled=this.QY=!1;je(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.gh(a,this.dismissButton));this.addOnDisposeCallback(g.gh(a,this.playButton));this.Bs=new g.Us(this.w7,!0);this.Bs.subscribe("dragstart",this.Yu,this);this.Bs.subscribe("dragmove",this.Np,this);this.Bs.subscribe("dragend", this.FA,this);this.J(p,"SEEK_COMPLETE",this.mJ);p.D("web_fix_fine_scrubbing_false_play")&&this.J(p,"rootnodemousedown",function(y){l.Xu=y}); this.W.addEventListener("keydown",function(){}); g.E(this,this.Bs);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; wjM=function(p){var a={tick:{},info:{}};g.M8("ytcsi."+(p||"")+"data_",a);return a}; aQ=function(p,a,l){a.M9().currentState>=2||(a.NE(a.J9(),l),m2(a.M9())&&(px(p.wX,p.slot,a.J9(),l),p.sQ=void 0))}; Ror=function(p,a,l,y,S,n,V,z){z=z===void 0?!1:z;if(a.o4&&V&&V.length>1&&!(a.R7>0||a.Z)){for(var d=a.S||!!S,G=d&&a.oo?n:void 0,B=ByZ(a,y),c=[],r=[],w={},P=0;P=l.start&&a<=l.end)return!0;return!1}; Ge=function(){this.ET=!0}; lN=function(p){var a=g.Ir(p);return(p=Number(g.By(p)[4]||null)||null)?a+":"+p:a}; ODF=function(p,a){a=a===void 0?{}:a;var l,y;return g.R(function(S){if(S.L==1)return g.u(S,g.Nb(),2);if(S.L!=3){l=S.S;if(!l)return S.return();EW(p);y=umA(p);return g.u(S,yv(y.actualName,a),3)}return g.u(S,kz(y.actualName,l),0)})}; ksf=function(){this.L=this.K=this.U=this.S=this.Sl=this.G=this.UO=this.Z=this.W=this.j=!1}; S3=function(){var p=g.o4("yt.abuse.playerAttLoader");return p&&["bgvma","bgvmb","bgvmc"].every(function(a){return a in p})?p:null}; MA=function(p){switch(typeof p){case "bigint":return!0;case "number":return NC(p);case "string":return MSM.test(p);default:return!1}}; mbM=function(){var p=p===void 0?g.dD:p;return(p=p.performance)&&p.now?p.now():null}; nx=function(p,a){return g.oO("transport_use_scheduler")===!1?g.aY(p,a):g.oO("logging_avoid_blocking_during_navigation")||g.oO("lr_logging_avoid_blocking_during_navigation")?g.jv(0,function(){if(tSh().currentState==="none")p();else{var l={};tSh().install((l.none={callback:p},l))}},a):Cr(p,0,a)}; j7o=function(){var p=g.zv("yt-player-quality");if(p instanceof Object&&p.quality&&p.previousQuality){if(p.quality>p.previousQuality)return 1;if(p.quality=V&&F<=B&&n.push(r)}d>0&&(p.Xu.style.height=d+"px");V=p.j[y];B=n;r=S;P=d;F=y===0;F=F===void 0?!1:F;sCO(V,P);c=B;w=V.S;F=F===void 0?!1:F;var v=1E3/c.length,I=[];I.push({x:0,y:100});for(var b=0;b0&&(l=n[n.length-1])}g.mo(p);z=[];a=g.t(a.heatMarkersDecorations||[]);for(S=a.next();!S.done;S=a.next())if(S=g.T(S.value,gGv))d=S.label,y=l=G=void 0,z.push({visibleTimeRangeStartMillis:(G=S.visibleTimeRangeStartMillis)!=null?G:-1,visibleTimeRangeEndMillis:(l=S.visibleTimeRangeEndMillis)!=null?l:-1,decorationTimeMillis:(y=S.decorationTimeMillis)!=null?y:NaN,label:d?g.Sw(d):""});p.heatMarkersDecorations=z}}; Yrv=function(p,a,l){l=l===void 0?!0:l;p.U=p.j.animate([{offset:0,opacity:a===void 0?1:a},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});l&&(p.U.addEventListener("finish",function(){p.U=void 0;cfr(p);p.hide()}),p.L="fading-out")}; zd=function(p){return p.B.C().experiments.Cz("html5_cuepoint_identifier_logging")}; qrM=function(p,a,l){a=c1(a);a!=null&&MV(p,l,nue(a))}; Gk=function(p,a){g.Re(a,function(l,y){y=="style"?p.style.cssText=l:y=="class"?p.className=l:y=="for"?p.htmlFor=l:JuF.hasOwnProperty(y)?p.setAttribute(JuF[y],l):aq(y,"aria-")||aq(y,"data-")?p.setAttribute(y,l):p[y]=l})}; p3M=function(){}; f8r=function(p){return"getAllKeys"in IDBObjectStore.prototype?m4(p.L.getAllKeys(void 0,void 0)):zP$(p)}; ap=function(p,a,l){Bz===null&&(Bz=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(pe$&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Bz||l!=="9"&&l!=="("?Bz||l!=="9h"&&l!=="(h"||(p='video/webm; codecs="vp9.2"'):p='video/webm; codecs="vp9"',p;if(!Bz&&!cz||p!=='video/webm; codecs="vp9"'&&p!=='video/webm; codecs="vp9.2"')return p; l="00";var y="08",S="01",n="01",V="01";p==='video/webm; codecs="vp9.2"'&&(l="02",y="10",a.primaries==="bt2020"&&(V=S="09"),a.L==="smpte2084"&&(n="16"),a.L==="arib-std-b67"&&(n="18"));return'video/webm; codecs="'+["vp09",l,"51",y,"01",S,n,V,"00"].join(".")+'"'}; rg=function(p){this.value=p}; ET=function(p,a,l,y,S,n){this.startSecs=p;this.DI=a;this.context=l;this.identifier=y;this.event=S;this.L=n}; Huq=function(){var p=$Lr(),a=(0,g.Ek)()-p.U;if(!(p.U!==0&&a=0||(p.provider.Y.Sa||p.provider.Lz.getVisibilityState()!==3?p.U=g.US(p.provider):p.Kz=!0)}; Sdv=function(){this.L=g.wg;this.array=[]}; nth=function(p,a,l){this.actionType=a;this.id=l;this.content=p}; Zsv=function(p){p&&p!=="web"&&VOv.includes(p)}; ee=function(p){var a={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},l=p.playlist!=null&&p.playlist.nO();l=g.Gs(p.B)&&(!p.L||l);var y=p.L&&g.$9(p.B),S=otA(p),n=p.L&&p.B.getPresentingPlayerType()===5,V=g.O9(p.B,"Siguiente","SHIFT+n"),z=g.O9(p.B,"Anterior","SHIFT+p");if(n)a.title="Iniciar v\u00eddeo",a["tooltip-title"]="Iniciar v\u00eddeo";else if(p.U)a.title="Ver de nuevo",a["tooltip-title"]="Ver de nuevo";else if(l){var d= null;p.playlist&&(d=g.p2(p.playlist,p.L?dXM(p.playlist):zgh(p.playlist)));if(d){if(d.videoId){var G=p.playlist.listId;a.url=p.B.C().getVideoUrl(d.videoId,G?G.toString():void 0)}a.text=d.title;a.duration=d.lengthText?d.lengthText:d.lengthSeconds?g.tQ(d.lengthSeconds):null;a.preview=d.Gy("mqdefault.jpg")}p.L?(a.title=V,a["tooltip-title"]=V,a["data-title-no-tooltip"]="Siguiente",a["aria-keyshortcuts"]="SHIFT+n"):(a.title=z,a["tooltip-title"]=z,a["data-title-no-tooltip"]="Anterior",a["aria-keyshortcuts"]= "SHIFT+p")}else if(y){if(z=(d=p.videoData)==null?void 0:g.oz(d))a.url=z.pC(),a.text=z.title,a.duration=z.lengthText?z.lengthText:z.lengthSeconds?g.tQ(z.lengthSeconds):null,a.preview=z.Gy("mqdefault.jpg");a.title=V;a["tooltip-title"]=V;a["data-title-no-tooltip"]="Siguiente";a["aria-keyshortcuts"]="SHIFT+n"}a.disabled=!y&&!l&&!S&&!n;p.update(a);p.G=!!a.url;y||l||p.U||S||n?p.S||(p.S=g.gh(p.tooltip,p.element),p.W=p.listen("click",p.onClick,p)):p.S&&(p.S(),p.S=null,p.ME(p.W),p.W=null);p.tooltip.wE();g.JB(p.element, "ytp-playlist-ui",p.L&&(l||p.B.D("web_hide_next_button")))}; g.$I=function(p){p&=16777215;var a=[(p&16711680)>>16,(p&65280)>>8,p&255];p=a[0];var l=a[1];a=a[2];p=Number(p);l=Number(l);a=Number(a);if(p!=(p&255)||l!=(l&255)||a!=(a&255))throw Error('"('+p+","+l+","+a+'") is not a valid RGB color');l=p<<16|l<<8|a;return p<16?"#"+(16777216|l).toString(16).slice(1):"#"+l.toString(16)}; Pz=function(p){return p.QY?p.QY-(p.Z||p.timestampOffset):0}; Lx=function(p,a){if((p=p.L.get(a))==null)p=void 0;else{p=p.buffer;for(a=[];p.S!==p.L;)p.S=(p.S+1)%p.data.length,a.push(p.data[p.S]);p=a}return p||[]}; qVE=function(p,a,l){if(!p.UO){l||(l=i4(p,"atr"));l.attestationResponse=a;try{l.send()}catch(y){if(y.message!=="Unknown Error")throw y;}p.UO=!0}}; XI=function(p){var a=[];p=g.t(p.values());for(var l=p.next();!l.done;l=p.next())l=l.value,l.FF&&a.push(l);return a}; xI=function(p){return qa(p,function(a,l){return Math.max(a,l.video.qualityOrdinal)},0)}; kuF=function(){}; d3o=function(p){var a=p.j;p.j=[];return a}; v9h=function(p,a){var l;((l=p.L)==null?void 0:l.id)!==(a==null?void 0:a.id)&&(p.L&&(p.S.delete(p.L.id),p.api.PG([p.L],1)),p.L=a)}; FI=function(p){this.NO=Dm(p)}; gJ=function(p,a){a=a?a.yl:!1;p.j||(p.j=ik(10,p.S,a));return p.j}; GxA=function(p,a){var l,y,S,n=(l=p.playerResponse)==null?void 0:(y=l.playerConfig)==null?void 0:(S=y.compositeVideoConfig)==null?void 0:S.sourceConfigs,V,z,d;p=(V=p.playerResponse)==null?void 0:(z=V.playerConfig)==null?void 0:(d=z.compositeVideoConfig)==null?void 0:d.defaultActiveSourceVideoId;if(!n||!n.length)return"";!p&&a&&(p=n[0].videoId||"");a=g.t(n);for(n=a.next();!n.done;n=a.next())if(n=n.value,n.videoId===p&&n.audioTracks)for(n=g.t(n.audioTracks),V=n.next();!V.done;V=n.next())if(V=V.value, V.isDefaultForSource)return V.id||"";return""}; Ef=function(p,a,l,y,S,n,V,z,d,G,B){qK.call(this,p,a,l,y,S,n,V,z,d,G);this.U=B;this.S=this.L=null;p=g.t(this.U);for(a=p.next();!a.done;a=p.next())a=a.value,Q5(a.J9().clientMetadata,"metadata_type_survey_overlay")&&(this.S=a.J9().layoutId)}; Cx=function(p,a){this.s6=p;this.policy=a;this.playbackRate=1}; Bqv=function(p){this.NO=Dm(p)}; vR=function(p,a){a?p.requestHeaders.Authorization="Bearer "+a:delete p.requestHeaders.Authorization}; cpA=function(p){p=["object"==typeof globalThis&&globalThis,p,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var a=0;ap.l8+6283){if(p.D("html5_unified_live_latency_reporting")){var a=p.rG;a.qoe&&Plq(a.qoe)}else!p.isAtLiveHead()||p.videoData.L&&uN(p.videoData.L)||(a=p.rG,a.qoe&&Plq(a.qoe));a=g.zB(p.Y);var l=p.D("html5_always_log_rawlat");(a||l)&&p.jl("rawlat",{l:Of(p.s_,"rawlivelatency").toFixed(3)});p.l8=Date.now()}p.videoData.S&&kI(p.videoData.S)&&(a=p.iS())&&a.videoHeight!==p.Q0&&(p.Q0=a.videoHeight,ct(p,"a",Lj$(p,p.videoData.Kz)))}; x3q=function(p){return new EL(p.type,p.L,p.range,"getEmptyStubAfter"+p.K,p.Rc,p.startTime+p.duration,0,p.S+p.U,0)}; qR=function(p,a,l){a=Fjo[a];var y,S,n={detected:p===0,source:""+a.S+((y=l.triggerContext)!=null?y:"")+((S=l.cE)!=null?S:""),detectionStates:l.states,durationMs:l.KB};l.metadata&&(n.contentCpn=l.metadata.contentCpn,n.adCpn=l.metadata.adCpn);g.mf("biscottiBasedDetection",n);a.L!==void 0&&(l=Number(g.ZM("CATSTAT",0)),a.L!==void 0?(a=a.L,p=Eto(p),p=l&~(3<=a)return l}p=g.t(p.S.values());for(l=p.next();!l.done;l=p.next())if(l=l.value,l.start<=a&&l.end>=a)return l}; var BvA=function(p,a,l,y,S,n){return CA[Z[5]](this,83,p,a,l,y,S,n)}; GB=function(p,a,l){kO(p.L,a*8+l)}; MkM=function(p){p=hD.includes("es")?p.D("delhi_modern_web_player_icons")?E6():{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,V:{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"}}]}:p.D("delhi_modern_web_player_icons")?u4q():{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,V:{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"}}]};p.T="ytp-subtitles-button-icon"; return p}; t8=function(p,a,l){if(Array.isArray(a)){var y=a[QB]|0;if(y&4)return a;for(var S=0,n=0;S>>8&255;p.lG[p.Ub+p.n8*2+1]=a&255;p.lG[p.b8+p.n8]=l&255;p.n8++;a===0?p.QZ[l*2]++:(p.matches++,a--,p.QZ[(iN[l]+256+1)*2]++,p.uJ[(a<256?Tk[a]:Tk[256+(a>>>7)])*2]++);return p.n8===p.hB-1}; g.Nz=function(p){var a=g.KJ();a&&(typeof p==="number"?p=[p]:typeof p==="string"&&(p=[parseInt(p,10)]),g.Bf(p,function(l){a.unsubscribeByKey(l);delete yC[l]}))}; Fh=function(p){var a=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],l=lm(p.Ws)==="TVHTML5_SIMPLY"&&p.Ws.L.ctheme==="MUSIC";!p.rP&&(g.dB(p.Ws)||g.sf(p.Ws)||l)&&(a.includes(p.musicVideoType)||p.isExternallyHostedPodcast)&&(p.rP=!0);if(a=g.pT())a=/Starboard\/([0-9]+)/.exec(g.yI()),a=(a?parseInt(a[1],10):NaN)<10;l=p.Ws;l=(lm(l)==="TVHTML5_CAST"||lm(l)==="TVHTML5"&&(l.L.cver.startsWith("6.20130725")||l.L.cver.startsWith("6.20130726")))&&p.Ws.L.ctheme==="MUSIC";var y;if(y=!p.rP)l||(l= p.Ws,l=lm(l)==="TVHTML5"&&l.L.cver.startsWith("7")),y=l;y&&!a&&(a=p.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",l=(p.D("cast_prefer_audio_only_for_atv_and_uploads")||p.D("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&p.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",a||l||p.isExternallyHostedPodcast)&&(p.rP=!0);return p.Ws.deviceIsAudioOnly||p.rP&&p.Ws.Z}; vtr=function(p){p.BG=p.mH();p.To(p.BG/1E3,!0);DQ(p,p.BG)}; hO=function(p){if(!p.provider.Y.D("html5_qoe_no_len_check")){for(var a=0,l=g.t(p.L.entries()),y=l.next();!y.done;y=l.next()){var S=g.t(y.value);y=S.next().value;S=S.next().value;a+=y.length+Number(qa(S,function(n,V){return n+V.length},0))}a>96E3&&(new g.l_(p.reportStats,0,p)).start()}}; YH=function(p){var a=new Z8;p=p===void 0?null:p;a.U=2;a.S=p===void 0?null:p;return a}; Uf=function(p,a,l){l=l===void 0?!1:l;return un$(p,a.getCurrentTime(),(0,g.Ek)(),x9(a),l)}; Kjf=function(p){if(p==null)return p;var a=typeof p;if(a==="bigint")return String(MG(64,p));if(MA(p)){if(a==="string")return xU(p);if(a==="number")return EB(p)}}; g.aE=function(p){if(!p.length)return"";try{if(Br)return Br.decode(p);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(p)}catch(V){}for(var a=0,l=[],y=p.length;a>10;n=56320|n&1023}Qv[S++]=n}}n=String.fromCharCode.apply(String,Qv); S<1024&&(n=n.substring(0,S));l.push(n)}return l.join("")}; h8=function(p){p.S=!1;var a={};p.L&&p.videoId&&(a.cttAuthInfo={token:p.L,videoId:p.videoId});iH("ad_to_video",a);ege(p)}; bsA=function(p){switch(p){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"}}; ih=function(p){this.L=p;this.iv=(0,g.Yh)(Lo(16))}; gg=function(p,a){if(a.info.j){p.Ps=a.info;if(p.G){var l=p.G,y=ILf(p,!1);l=Rg$(l);p.loader.qH(p.W,y,l);p.Xu||p.policy.zy||uFh(p);p.Xu=null}A8(p)}p.K&&OsZ(p.K,a);if(y=p.ai())if(y=g.Ez(y,a,p.policy.r6,p.policy.OY)){p.S.pop();p.S.push(y);return}p.S.push(a)}; qz=function(p,a,l,y){var S=g.YU(p.api.DN());if(S&&S.loaded){var n=p.api.getSubtitlesUserSettings();S=void 0;for(var V=0;V0&&p.B.getPlayerSize().width<=a,a=p.B.QT()?112:a?70:78,p.B.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(p=getComputedStyle(p.B.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||"36px",a+=Number(p.replace("px","")))):a=62,g.iT(l)&&(a=54));return a}; Plq=function(p){var a=p.provider.Lz.YD(),l=g.US(p.provider);fx(p,l,a);var y=a.U;a=a.j;isNaN(y)||(p.provider.Y.D("html5_unified_live_latency_reporting")&&!isNaN(a)&&a?g.pt(p,l,"e2el",[y.toFixed(3),a.toFixed(3)]):g.pt(p,l,"e2el",[y.toFixed(3)]))}; pf=function(p,a,l){p.L&&p.videoTrack.G!==-1&&p.audioTrack.G!==-1&&(p.L=!1,p.targetTime=a,VR(p.loader,a+.1,{PA:!0,JP:"chunkSelectorSynchronize",Ql:!0,seekSource:l}))}; nI=function(p){return p.B.C().experiments.Cz("enable_ads_control_flow_deterministic_id_generation")}; yX=function(p,a){kk||(aj?aj.logEvent(p,a):(lU.push({type:"EVENT",eventType:p,payload:a}),lU.length>10&&lU.shift()))}; g.aZ=function(p,a,l,y){function S(G){try{if((G===void 0?0:G)&&y.retry&&!y.networklessOptions.bypassNetworkless)n.method="POST",y.networklessOptions.writeThenSend?dl().writeThenSend(d,n):dl().sendAndWrite(d,n);else if(y.compress){var B=!y.networklessOptions.writeThenSend;if(n.postBody){var c=n.postBody;typeof c!=="string"&&(c=JSON.stringify(n.postBody));S8(d,c,n,g.lE,B)}else S8(d,JSON.stringify(n.postParams),n,nf,B)}else g.oO("web_all_payloads_via_jspb")?g.lE(d,n):nf(d,n)}catch(r){if(r.name==="InvalidAccessError")FU(Error("An extension is blocking network request.")); else throw r;}} !g.ZM("VISITOR_DATA")&&a!=="visitor_id"&&Math.random()<.01&&FU(new g.kc("Missing VISITOR_DATA when sending innertube request.",a,l,y));if(!p.isReady())throw p=new g.kc("innertube xhrclient not ready",a,l,y),g.K8(p),p;var n={headers:y.headers||{},method:"POST",postParams:l,postBody:y.postBody,postBodyFormat:y.postBodyFormat||"JSON",onTimeout:function(){y.onTimeout()}, onFetchTimeout:y.onTimeout,onSuccess:function(G,B){if(y.onSuccess)y.onSuccess(B)}, onFetchSuccess:function(G){if(y.onSuccess)y.onSuccess(G)}, onProgress:function(G){if(y.onProgress)y.onProgress(G)}, onError:function(G,B){if(y.onError)y.onError(B)}, onFetchError:function(G){if(y.onError)y.onError(G)}, timeout:y.timeout,withCredentials:!0,compress:y.compress};n.headers["Content-Type"]||(n.headers["Content-Type"]="application/json");l="";var V=p.config_.v$;V&&(l=V);V=p.config_.tZ||!1;var z=MOf(V,l,y);Object.assign(n.headers,z);n.headers.Authorization&&!l&&V&&(n.headers["x-origin"]=window.location.origin);var d=VX(""+l+("/youtubei/"+p.config_.innertubeApiVersion+"/"+a),{alt:"json"});g.o4("ytNetworklessLoggingInitializationOptions")&&m3M.isNwlInitialized?q8r().then(function(G){S(G)}):S(!1)}; zW=function(p,a,l){p.state.L.hasOwnProperty(a)||Sa(p,a,l);p.app.C().Z&&(p.state.Z[a]=function(){return l.apply(p,g.D1.apply(0,arguments))},p.state.G.add(a))}; yH=function(p,a,l,y,S){var n=l+(S?0:-1),V=p.length-1;if(V>=1+(S?0:-1)&&n>=V){var z=p[V];if(z!=null&&typeof z==="object"&&z.constructor===Object)return z[l]=y,a}if(n<=V)return p[n]=y,a;if(y!==void 0){var d;V=((d=a)!=null?d:a=p[QB]|0)>>13&1023||536870912;l>=V?y!=null&&(n={},p[V+(S?0:-1)]=(n[l]=y,n)):p[n]=y}return a}; rk=function(p,a){a=~a;p?p=~p+1:a+=1;return[p,a]}; g.ZI=function(){}; uo=function(p,a){var l=p.B.getVideoData(a);return l?p.ib(l,a||p.B.getPresentingPlayerType(!0)):null}; aM=function(p,a){if(p.policy.useUmp&&a.Gm())return!1;try{var l=a.info.mT[0].L,y=l.info.video?p.videoTrack:p.audioTrack;if(p.MO.isManifestless&&y){p.G=0;y.K&&(a.Gm(),a.isComplete()||a.ID(),y.K=!1);a.qQ()&&p.loader.V8.P9(1,a.qQ());var S=a.ip(),n=a.sj();oj(p.MO,S,n)}if(a.info.DU()&&!zh(a.info))for(var V=g.t(a.Po()),z=V.next();!z.done;z=V.next())hhq(y,z.value);for(p.loader.getCurrentTime();y.U.length&&y.U[0].state===4;){var d=y.U.shift();tOE(y,d);y.nz=d.Wm()}y.U.length&&tOE(y,y.U[0]);var G=!!d$(y);G&& a instanceof dw&&(l.info.Qh()?jDh(p.timing):WjE(p.timing));return G}catch(B){a=a.zw();a.origin="hrhs";a:{p=p.loader;l=B;if(l instanceof Error){a.msg||(a.msg=""+l.message);a.name||(a.name=""+l.name);if(l instanceof g.kc&&l.args)for(y=g.t(Object.entries(l.args)),S=y.next();!S.done;S=y.next())n=g.t(S.value),S=n.next().value,n=n.next().value,a["arg"+S]=""+n;g.Mf(l);if(l.level==="WARNING"){p.Lz.jS(a);break a}}p.handleError("fmt.unplayable",a,1)}return!1}}; IK=function(p,a,l,y,S,n,V,z,d,G,B,c,r,w,P,F,v,I,b){this.Ye=p;this.sE=a;this.Z1=l;this.uT=y;this.dG=S;this.oM=n;this.BZ=V;this.ac=z;this.sO=d;this.wc=G;this.gq=B;this.lr=c;this.VL=r;this.uM=w;this.Ty=P;this.EO=F;this.WZ=v;this.context=I;this.Pl=b}; HsO=function(p){var a;return((a=((p==null?void 0:p.messageRenderers)||[]).find(function(l){return!!l.timeCounterRenderer}))==null?void 0:a.timeCounterRenderer)||null}; g.aY=function(p,a){typeof p==="function"&&(p=g.Es(p));return window.setTimeout(p,a)}; Yp=function(p){this.VS=p;this.L={};this.url=""}; Gh=function(p,a,l,y){g.D.call(this);var S=this;this.api=p;this.Y=a;this.L=l;this.app=y;this.W=new Map;this.S=[];this.U=this.K=null;this.UO=NaN;this.G=this.j=this.Sl=null;this.Z=new g.l_(function(){D3e(S,S.UO,S.Sl||void 0)}); this.Xu=[];this.w7=new g.l_(function(){var n=S.Xu.pop();if(n){var V=n.a4,z=n.playerVars;n=n.playerType;z&&(z.prefer_gapless=!0,S.api.preloadVideoByPlayerVars(z,n,NaN,"",V),S.Xu.length&&g.sb(S.w7,4500))}}); this.events=new g.hm(this);this.hg={oYI:function(){return S.S}}; this.L.getPlayerType();g.E(this,this.Z);g.E(this,this.w7);g.E(this,this.events);this.events.J(this.api,g.I4("childplayback"),this.onCueRangeEnter);this.events.J(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.J(this.api,"presentingplayerstatechange",this.XP)}; vKq=function(p){var a=p.api.C(),l=p.api.getVideoData(),y=p.api.Fu().getPlayerSize().width;a=a.U;return!!l.videoId&&y>=p.S&&l.IK&&!l.S5&&!p.api.isEmbedsShortsMode()&&!a}; cVv=function(p){tD[p]=p in tD?tD[p]+1:0;return tD[p]}; isE=function(p){var a=p.VS.RX(),l=[];g.Re(p.L,function(S,n){l.push(n+"="+S)}); if(!l.length)return a;var y=l.join("&");p=Na(17,p.VS)?"&":"?";return a+p+y}; rw=function(p,a,l,y){this.Y=a;this.oo=l;this.segments=[];this.experimentIds=[];this.Kz=this.Fh=this.isFinal=this.delayThresholdMet=this.Ha=this.vZ=this.autoplay=this.autonav=!1;this.qc="yt";this.G=[];this.K=this.Sl=null;this.sendVisitorIdHeader=this.VY=!1;this.Z=this.pageId="";this.W=l==="watchtime";this.U=l==="playback";this.Bs=l==="atr";this.aM=l==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Bs?"/api/stats/"+l:"//"+a.er+"/api/stats/"+l;y&&(this.Fh=y.fs,y.rtn&&(this.K=y.rtn),this.W?(this.playerState= y.state,y.rti>0&&(this.Sl=y.rti)):(this.OY=y.mos,this.SD=y.volume,y.at&&(this.adType=y.at)),y.autonav&&(this.autonav=y.autonav),y.inview!=null&&(this.EC=y.inview),y.size&&(this.O6=y.size),y.playerwidth&&(this.GO=y.playerwidth),y.playerheight&&(this.Sa=y.playerheight));this.bf=g.j_(a.L);this.Z=St(a.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Z==="all"||this.Z==="once")this.va=g.j_(a.va);this.n1=a.n1;this.experimentIds=TqE(a.experiments);this.OO=a.o4;this.qc=a.UO;this.region=a.region; this.userAge=a.userAge;this.Yv=a.UU;this.o4=XV();this.sendVisitorIdHeader=a.sendVisitorIdHeader;this.QY=a.D("vss_pings_using_networkless")||a.D("kevlar_woffle");this.M2=a.D("vss_final_ping_send_and_write");this.t9=a.D("vss_use_send_and_write");this.pageId=a.pageId;this.rP=a.D("vss_playback_use_send_and_write");a.livingRoomAppMode&&(this.livingRoomAppMode=a.livingRoomAppMode);g.wW(a)&&(this.nz=a.Bs);g.dQ(g.g9(a))&&this.G.push(1);this.accessToken=g.HH(p);p.Xq[this.oo]?this.j=p.Xq[this.oo]:p.Xq.playback&& (this.j=p.Xq.playback);this.adFormat=p.adFormat;this.adQueryId=p.adQueryId;this.autoplay=Nqr(p);this.U&&(this.vZ=p.c8&&oB(p)==="adunit"?!0:!1);this.autonav=p.isAutonav||this.autonav;this.contentVideoId=Rn(p);this.clientPlaybackNonce=p.clientPlaybackNonce;this.Ha=p.S5;p.G&&(this.Xu=p.G,this.eb=p.C8);p.mdxEnvironment&&(this.mdxEnvironment=p.mdxEnvironment);this.L=p.bf;this.yQ=p.yQ;p.S&&(this.Ct=p.S.itag,p.j&&p.j.itag!==this.Ct&&(this.Sb=p.j.itag));p.L&&vN(p.L)&&(this.offlineDownloadUserChoice="1"); this.eventLabel=oB(p);this.Kz=p.TO?!1:p.zy;this.Ae=p.Cl;if(a=Bl(p))this.TO=a;this.L1=p.Fl;this.partnerId=p.partnerId;this.eventId=p.eventId;this.playlistId=p.qS||p.playlistId;this.n6=p.n6;this.E2=p.E2;this.xz=p.xz;this.vk=p.vk;this.subscribed=p.subscribed;this.videoId=p.videoId;this.videoMetadata=p.videoMetadata;this.visitorData=p.visitorData;this.osid=p.osid;this.Ze=p.Ze;this.referrer=p.referrer;this.E9=p.WU||p.E9;this.Ps=p.GI;this.vR=p.vR;this.userGenderAge=p.userGenderAge;this.qa=p.qa;this.embedsRct= p.embedsRct;this.embedsRctn=p.embedsRctn;g.wW(this.Y)&&p.mutedAutoplay&&(p.mutedAutoplayDurationMode===2&&p.limitedPlaybackDurationInSeconds===0&&p.endSeconds===0?this.G.push(7):this.G.push(2));p.isEmbedsShortsMode(new g.N6(this.GO,this.Sa),!!this.playlistId)&&this.G.push(3);g.cl(p)&&this.G.push(4);this.r7=p.Ea;p.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=p.compositeLiveIngestionOffsetToken)}; sDZ=function(p,a,l,y){a=L1(p,a,l,y);return a instanceof W?a:ww(p,a,l)}; tSh=function(){$x||($x=new Pl);return $x}; cu=function(p,a,l,y){y=y===void 0?!1:y;if(l.indexOf(a)>-1)throw Error("Deps cycle for: "+a);if(p.S.has(a))return p.S.get(a);if(!p.L.has(a)){if(y)return;throw Error("No provider for: "+a);}y=p.L.get(a);l.push(a);if(y.Fj!==void 0)var S=y.Fj;else if(y.plO)S=y[NA]?iWr(p,y[NA],l):[],S=y.plO.apply(y,g.u0(S));else if(y.ZZ){S=y.ZZ;var n=S[NA]?iWr(p,S[NA],l):[];S=new (Function.prototype.bind.apply(S,[null].concat(g.u0(n))))}else throw Error("Could not resolve providers for: "+a);l.pop();y.gwl||p.S.set(a,S); return S}; U3A=function(p,a,l,y,S){var n,V,z;return g.R(function(d){if(d.L==1)return g.u(d,g.Nb(),2);if(d.L!=3){n=d.S;if(!n)throw g.K6("rc");return g.u(d,g.Fl(n),3)}V=d.S;z=g.Nk(V,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(G){var B=""+p+"|"+a+"|"+l+"|"+String(y).padStart(10,"0");return G.objectStore("media").get(B)}); return S?d.return(z.then(function(G){if(G===void 0)throw Error("No data from indexDb");return eiA(S,G)}).catch(function(G){throw new g.kc("Error while reading chunk: "+G.name+", "+G.message); })):d.return(z)})}; X3=function(p){var a=CD();vR(a,p);return g.Lf(a,WME())}; QDr=function(p,a,l,y){function S(z){z&&a.appendChild(typeof z==="string"?p.createTextNode(z):z)} for(;y0)S(n);else{a:{if(n&&typeof n.length=="number"){if(g.sC(n)){var V=typeof n.item=="function"||typeof n.item=="string";break a}if(typeof n==="function"){V=typeof n.item=="function";break a}}V=!1}g.Bf(V?g.hf(n):n,S)}}}; g.rQ=function(){var p=this;this.promise=new Promise(function(a,l){p.resolve=a;p.reject=l})}; hgr=function(){var p;if(g.oO("csi_use_performance_navigation_timing")){var a,l,y,S=ML==null?void 0:(p=ML.getEntriesByType)==null?void 0:(a=p.call(ML,"navigation"))==null?void 0:(l=a[0])==null?void 0:(y=l.toJSON)==null?void 0:y.call(l);S?(S.requestStart=xx(S.requestStart),S.responseEnd=xx(S.responseEnd),S.redirectStart=xx(S.redirectStart),S.redirectEnd=xx(S.redirectEnd),S.domainLookupEnd=xx(S.domainLookupEnd),S.connectStart=xx(S.connectStart),S.connectEnd=xx(S.connectEnd),S.responseStart=xx(S.responseStart), S.secureConnectionStart=xx(S.secureConnectionStart),S.domainLookupStart=xx(S.domainLookupStart),S.isPerformanceNavigationTiming=!0,p=S):p=ML.timing}else p=g.oO("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(ML.timing)):ML.timing;return p}; Apo=function(p,a,l){a=a===void 0?0:a;l=l===void 0?-1:l;if(!p.totalLength||!l)return new DataView(new ArrayBuffer(0));l<0&&(l=p.totalLength-a);p.focus(a);if(!w9(p,a,l)){var y=p.S,S=p.U;p.focus(a+l-1);S=new Uint8Array(p.U+p.L[p.S].length-S);for(var n=0,V=y;V<=p.S;V++)S.set(p.L[V],n),n+=p.L[V].length;p.L.splice(y,p.S-y+1,S);F3(p);p.focus(a)}y=p.L[p.S];return new DataView(y.buffer,y.byteOffset+a-p.U,l)}; NX=function(p){var a=[{cpn:p.S.Zd()}];p.j&&a.push({cpn:p.j.Zd()});p.api.publish("playbackChange",{rnO:a})}; qdr=function(p,a){gD(p,1,a.D2s);hP(p,2,a.QMl,gto,3);hP(p,3,a.coldStartInfo,YdM,3)}; Jp$=function(p,a,l){var y=p.index.y_(a),S=p.index.getStartTime(a),n=p.index.getDuration(a);l?n=l=0:l=p.info.Lx*n;return new PX([new EL(3,p,void 0,"otfCreateRequestInfoForSegment",a,S,n,0,l)],y)}; fLM=function(p,a,l,y){if(g.sC(p)&&!Array.isArray(p)){a="playlist list listType index startSeconds suggestedQuality".split(" ");l={};for(y=0;y=S-n||!l.yR()?l=y0||a>127;)p.L.push(a&127|128),a=(a>>>7|l<<25)>>>0,l>>>=7;p.L.push(a)}; kx=function(p,a){this.S=a;this.L=new g.YZ({X:"label",T:"ytp-ad-feedback-dialog-reason-label",N:[{X:"input",T:"ytp-ad-feedback-dialog-reason-input",V:{type:"radio",name:"feedback-reason-group"}},{X:"span",T:"ytp-ad-feedback-dialog-reason-text",yY:g.Sw(p)}]});this.U=this.L.d7("ytp-ad-feedback-dialog-reason-input")}; sK=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"settingsMenuInitialized",function(){aH$(a)}); Sa(this.api,"getVoiceBoostUserPreference",function(){return a.getVoiceBoostUserPreference()}); Sa(this.api,"setVoiceBoostUserPreference",function(y){a.setVoiceBoostUserPreference(y)}); Sa(this.api,"hasVoiceBoostAudioTrack",function(){return a.hasVoiceBoostAudioTrack()}); Sa(this.api,"getVoiceBoostState",function(){return a.getVoiceBoostState()}); var l;this.L=(l=wqF())!=null?l:0;this.updateEnvironmentData()}; $Mq=function(p){return p.B.C().experiments.Cz("html5_ssdai_enable_media_end_cue_range")}; $bE=function(p){return Array.isArray(p)?p[0]instanceof KO?p:[PJM,p]:[p,void 0]}; L4E=function(p,a,l,y,S,n){yX("TRANSACTION_ENDED",{objectStoreNames:y,connectionHasUnknownAbortedTransaction:p.S,duration:S,isSuccessful:a,tryCount:l,tag:n===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":n})}; Xqh=function(){Me==null&&(Me=new ml);return Me}; xM$=function(){this.csn=g.G2();this.clientPlaybackNonce=null;this.elements=new Set;this.U=new Set;this.L=new Set;this.S=new Set}; Tj=function(p){if(p.B.D("web_player_rtr_ctrls")&&p.B.Fu().XW)return 0;var a=p.B.QT(),l=p.B.getVideoData().S5,y=0;p.B.QT()&&p.B.isEmbedsShortsMode()&&(y=(p.B.Fu().getPlayerSize().width-p.B.getVideoContentRect().width)/2);return 12*(l?0:a?2:1)+y}; gPF=function(p){return p.S?!0:p.Ws.UO==="yt"?p.videoData.Sl?p.videoData.Fh<25:!p.videoData.Fh:!1}; m7=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-ad-details-line"},"ad-details-line",a,l,y);this.L=[];this.hide()}; EeZ=function(p,a){if(a){if(p==="fullwidth")return Infinity;if(p==="fullheight")return 0}return p&&(a=p.match(F4q))&&(p=Number(a[2]),a=Number(a[1]),!isNaN(p)&&!isNaN(a)&&p>0)?a/p:NaN}; $G=function(p){var a=p.uT.get();return eq(a,p.K)}; CJZ=function(){var p=document;return g.rA(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(a){return"on"+a.toLowerCase()in p})}; hr=function(p){p=kfM(p);return p===null?!1:p[0]==="com"&&p[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; Wl=function(p){var a=t0(p);g.JB(p.api.getRootNode(),"ytp-full-bleed-player",a);p.w7&&g.ze(p.w7,a);p.playerOverlayVideoDetailsRenderer&&g.ze(p.playerOverlayVideoDetailsRenderer,a);p.U&&j8(p)}; W6=function(p){this.value=p}; Ce=function(p,a,l){this.layoutId=a;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=l||p(this.triggerType)}; vef=function(p){var a=p.cpn,l=p.Y3;p=p.q8;var y=l.sM(),S={};WL(l,"cx",(S.xc=a,S.ia=a!==y,S.r=xQ.Pr.has(a),S.is=p,S.ctp=Mu(a),S))}; K4Z=function(p,a){p.focus(a);return w9(p,a,4)?Xfr(p).getUint32(a-p.U):256*(256*(256*ek(p,a)+ek(p,a+1))+ek(p,a+2))+ek(p,a+3)}; Hl=function(p,a,l,y){var S=this;this.j=p;this.cpn=a;this.Lz=l;this.L=y;this.S=new Map;this.W=new Map;this.K=this.Z=NaN;this.G=!1;this.J5="";this.isSeeking=!1;this.Sl=0;this.U=new FNF(l);this.UY=l.UY;this.Lz.subscribe("statechange",this.UO,this);this.Lz.subscribe("SEEK_TO",function(){S.pG()}); this.Lz.subscribe("SEEK_COMPLETE",function(){e3v(S)})}; b9h=function(p,a){var l=new Map;p=g.t(p);for(var y=p.next();!y.done;y=p.next()){y=y.value;if(y.layoutType==="LAYOUT_TYPE_MEDIA")var S="v";else y.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(S=PE(y.clientMetadata,"metadata_type_linked_in_player_layout_type"),S=S==="LAYOUT_TYPE_ENDCAP"||S==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":S==="LAYOUT_TYPE_SURVEY"?"s":S==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):S="u";l.set(y.layoutId,S);if(S==="u"){var n={};S=a;y=(n.c=y.layoutId,n);S.B.jl("uct",y)}}p= a.sM();xQ={contentCpn:p,Pr:l};y={};l=(y.ct=l.size,y.c=p,y);a.B.jl("acc",l)}; nG=function(p,a){p.U||p.UO||DI(p,p.x3);var l=a.KJ,y=a.rr;if(y.cpn===p.x3)p.wG({igtranssame:1,enter:y.cpn,exit:l.cpn});else{var S=p.UO,n=!!p.U;p.U="";var V=a.TJ,z=l.playerType===2?l.QL/1E3+l.videoData.bf:p.G2().videoData.bf;p.api.D("html5_ssdai_enable_media_end_cue_range")&&(n||S||l.playerType!==2?(S||n)&&p.wG({mecr:0,seek:S,skip:n}):p.api.yu(l.cpn));if(l.playerType===2&&y.playerType===2)n?p.wG({igtransskip:1,enter:y.cpn,exit:l.cpn,seek:S,skip:p.U}):UYO(p,l,y,z,V,S,n);else{p.x3=y.cpn;p.qj(y.cpn,y.startTimeSecs|| V);a=a.ivV;if(l.playerType===1&&y.playerType===2){p.pH=0;tir(p,y);var d=Qp(p,"c2a",y);p.wG(d);p.sZ++}else if(l.playerType===2&&y.playerType===1){p.api.publish("serverstitchedvideochange");d=Qp(p,"a2c");p.wG(d);p.sZ=0;p.pH=z;d=l.cpn;var G=p.pH;if(d!==p.playback.Zd()){var B=p.t9.get(d);B?B.L=G:p.wG({nop_e:d})}IHZ(p,l.yZ)}p.playback.dQ(l,y,z,V,S,n,a)}R3q(p)}}; Xb=function(p,a,l){p=Apo(p,a===void 0?0:a,l===void 0?-1:l);return new Uint8Array(p.buffer,p.byteOffset,p.byteLength)}; u$v=function(){SS.apply(this,arguments)}; qL=function(p,a){a=a===void 0?NaN:a;if(isNaN(a))var l=p.size;else for(l=p.L;l10&&(p.Hs=a);return a}if(p.isLive&&(y=a[l],y.FP))return y.FP}return NaN}; h0=function(p,a){p.S.delete(a)}; vJ=function(p,a){var l=new Uint8Array(p.L.buffer,p.L.byteOffset+p.pos,a);p.pos+=a;return l}; h3o=function(p,a,l,y){if(!l.playerVars)return new W("No playerVars available in AdIntroRenderer.");var S=vv(l.playerVars);S.autoplay="1";return function(n){var V=n.slotId;n=y(n);V=xc(p.S.get(),"LAYOUT_TYPE_MEDIA",V);var z={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",iT:"adapter"};return{sY:{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",Xh:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],iT:"adapter", clientMetadata:new Lc([new A0({}),new ei(a),new BN({current:null}),new GK(S)]),nx:n(z)},gA:[new Eb(p.L,V,["error"])],gh:[],tT:[],vC:[]}}}; gw=function(p){return p.kind==="AD_PLACEMENT_KIND_START"}; A6o=function(){return{X:"svg",V:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},N:[{X:"path",V:{d:"M 12.75 4.5 L 9.75 4.5 C 9.15 4.5 8.58 4.73 8.15 5.15 C 7.73 5.58 7.5 6.15 7.5 6.75 L 7.5 29.25 C 7.5 29.84 7.73 30.41 8.15 30.84 C 8.58 31.26 9.15 31.5 9.75 31.5 L 12.75 31.5 C 13.34 31.5 13.91 31.26 14.34 30.84 C 14.76 30.41 15 29.84 15 29.25 L 15 6.75 C 15 6.15 14.76 5.58 14.34 5.15 C 13.91 4.73 13.34 4.5 12.75 4.5 Z M 26.25 4.5 L 23.25 4.5 C 22.65 4.5 22.08 4.73 21.65 5.15 C 21.23 5.58 21 6.15 21 6.75 V 29.25 C 21 29.84 21.23 30.41 21.65 30.84 C 22.08 31.26 22.65 31.5 23.25 31.5 L 26.25 31.5 C 26.84 31.5 27.41 31.26 27.84 30.84 C 28.26 30.41 28.5 29.84 28.5 29.25 V 6.75 L 28.5 6.75 C 28.5 6.15 28.26 5.58 27.84 5.15 C 27.41 4.73 26.84 4.5 26.25 4.5 Z", fill:"white"}}]}}; qiF=function(p,a,l,y,S,n,V,z,d,G,B){p=zzZ(p,a,"core",l,y,S,n,V,z,d,G,void 0,B);return{layoutId:p.layoutId,layoutType:p.layoutType,Xh:p.Xh,layoutExitNormalTriggers:p.layoutExitNormalTriggers,layoutExitSkipTriggers:p.layoutExitSkipTriggers,layoutExitMuteTriggers:p.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:p.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:p.layoutExitUserCancelledTriggers,iT:p.iT,clientMetadata:new Lc(p.dO),nx:p.nx,adLayoutLoggingData:p.adLayoutLoggingData}}; geO=function(p){return{first:FW(p,1),Ku:FW(p,2)}}; YF$=function(p){this.L=p;p.eT("/client_streamz/bg/ec",g.wA("en"),g.wA("mk"))}; xA=function(p,a){p.ir.has(a)&&(Tv?p.ir.get(a).KC.clear():p.ir.get(a).ZF=new NN,aS(p,a),p.S=!0)}; qFf=function(p,a,l){var y=p.Yv||p.app.qO().getPlayerState();Li(p,!0);p.playback.seekTo(a,l);p=p.app.qO();a=p.getPlayerState();y.isOrWillBePlaying()&&!a.isOrWillBePlaying()?p.playVideo():y.isPaused()&&!a.isPaused()&&p.pauseVideo()}; fHq=function(p){return{jN:Pr(p,1),action:FW(p,2),Bp:Yx(p,3,J6v)}}; qe=function(p,a){this.L=p;this.S=a}; pth=function(p,a,l,y,S){this.X7=p;this.uT=a;this.Ye=l;this.L=y;this.dG=S}; IHZ=function(p,a){if(p.playback.getVideoData().vy()){var l=p.L.L.get(a);if(l){l=g.t(l);for(var y=l.next();!y.done;y=l.next()){var S=p;y=y.value;var n=S.S.get(y.cpn);S.S.delete(y.cpn);n&&S.playback.removeCueRange(n);akv(S.L,y)}p.W.clear();p=p.L;var V;l=(V=p.L.get(a))!=null?V:[];V=g.t(l);for(l=V.next();!l.done;l=V.next())akv(p,l.value);p.L.delete(a)}}}; n0F=function(p,a,l,y,S,n,V){if(p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(V=g.T(p.renderingContent,P9))if(V=g.T(V.sidePanel,lkh)){var z={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,iT:"core"};a=L3(p,a,l);p=a instanceof W?a:Object.assign({},z,{renderingContent:p.renderingContent,Xh:new Map([["impression",V.impressionPings||[]],["resume",V.resumePings||[]]])},a,{nx:kU(y,S)(z),clientMetadata:new Lc([new ei(nj(n))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})}else p= new W("DismissablePanelTextPortraitImageRenderer is missing");else p=new W("SqueezebackPlayerSidePanelRenderer is missing");else p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.T(p.renderingContent,y3v)?(V={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,iT:"core"},a=L3(p,a,l),p=a instanceof W?a:Object.assign({},V,{renderingContent:p.renderingContent,Xh:new Map},a,{nx:kU(y,S)(V),clientMetadata:new Lc([new ei(nj(n))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData})): p=new W("CounterfactualRenderer is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?p=new W("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?p=new W("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.T(p.renderingContent,Sxf)?(n={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType, iT:"core"},a=L3(p,a,l),p=a instanceof W?a:V?Object.assign({},n,{renderingContent:p.renderingContent,Xh:new Map},a,{nx:kU(y,S)(n),clientMetadata:new Lc([new cN(V)]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}):new W("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):p=new W("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.T(p.renderingContent,J0)?(n= {layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,iT:"core"},a=L3(p,a,l),p=a instanceof W?a:Object.assign({},n,{renderingContent:p.renderingContent,Xh:new Map([])},a,{nx:kU(y,S)(n),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Lc([])})):p=new W("AdsEngagementPanelSectionListViewModel is missing"):p=new W("LayoutType ["+p.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return p}; B2=function(p,a){p.L.push(a>>>0&255);p.L.push(a>>>8&255);p.L.push(a>>>16&255);p.L.push(a>>>24&255)}; ff=function(p){this.J6=3;this.sG=p;this.defaultValue=!1;this.u6="bool"}; Vxq=function(p){p.CONN=SQ(uv("0"));p.WT=SQ(function(){return Date.now().toString()})}; Z_=function(p){g.X.call(this,{X:"button",A9:["ytp-size-button","ytp-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"t","data-priority":"9","data-title-no-tooltip":"{{data-title-no-tooltip}}"},yY:"{{icon}}"});this.api=p;this.c9=null;this.transition=new tv;g.E(this,this.transition);this.J(p,"sizestylechange",this.pz);this.J(p,"fullscreentoggled",this.pz);this.J(p,"presentingplayerstatechange",this.pz);p.createClientVe(this.element, this,139116);this.pz();this.listen("click",this.onClick);OC(p,this.element,this)}; PB=function(p){var a=$u(p,!0);p.pos+=a}; Znf=function(p){var a=!p.C().O2&&p.getPresentingPlayerType()!==3;return p.isFullscreen()||a}; o0Z=function(p){if(!p)throw Error();throw p;}; pBF=function(p){return p.TR.C().D("html5_gapless_no_clear_buffer_timeline")&&p.W===1&&gQ(p.L.getVideoData())}; z1A=function(p){return p.h9==="("||p.h9==="(h"||p.h9==="H"||jk&&p.h9==="1e"}; duF=function(){return{X:"svg",V:{height:"100%",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",V:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}}; zhZ=function(p){var a=[],l=p.sandwichedLinearAdRenderer&&p.sandwichedLinearAdRenderer.linearAd&&g.T(p.sandwichedLinearAdRenderer.linearAd,iQ);if(l)return a.push(l),a;if(p.instreamVideoAdRenderer)return a.push(p.instreamVideoAdRenderer),a;if(p.linearAdSequenceRenderer&&p.linearAdSequenceRenderer.linearAds){p=g.t(p.linearAdSequenceRenderer.linearAds);for(l=p.next();!l.done;l=p.next())l=l.value,g.T(l,iQ)&&a.push(g.T(l,iQ));return a}return null}; g.zB=function(p){return g.PD(p)||lm(p)==="TV_UNPLUGGED_CAST"||Gr(p)}; $Xe=function(){this.L=[]}; g.GiM=function(p){for(var a in p)delete p[a]}; Bmo=function(p,a,l,y,S){y.x0?pV(p,4,"cue"):(p.G=a,p.K=l,p.jl("sdai",{joinad:p.S,sg:p.G,st:p.K.toFixed(3)}),p.Sl=Date.now(),pV(p,2,p.S===3?"staftpred":"join"),S.BV(y.YE))}; c3O=function(p){switch(p){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; XiZ=function(p){var a,l;return g.R(function(y){return y.L==1?g.u(y,eO(p),2):y.L!=3?(a=y.S,l=void 0,g.u(y,g.Nk(a,["coldConfigStore"],{mode:"readwrite",Gn:!0},function(S){return g.Aw(S.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(n){l=n.getValue()})}),3)):y.return(l)})}; $uO=function(p){var a=r3E[lw[p]],l=wtq[p];return l&&a?new WT(p,a,{audio:new dx(l.audioSampleRate,l.numChannels)}):null}; gHA=function(p){switch(p){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new W("Invalid layout exit reason: "+ p)}}; P9$=function(){g.Es(function(){var p=bH();requestAnimationFrame(function(){setTimeout(function(){p===bH()&&kC("ftl",void 0,void 0)},0)})})()}; g.LVO=function(){return g.pT()&&(g.g8("ps4 vr")||g.g8("ps4 pro vr"))}; Xt$=function(){if(a5===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(a){}a:{try{var p=!!self.localStorage}catch(a){p=!1}if(p&&(p=g.qb(g.Bi()+"::yt-player"))){a5=new Nt(p);break a}a5=void 0}}return a5}; FV$=function(){this.L=new xuf}; twM=function(){if(rh()){var p=g.ZM("PLAYER_VARS",{});if(g.l6(p,"privembed",!1)!="1"&&!E0O(p)){var a=function(){C9F=!0;"google_ad_status"in window?D_("DCLKSTAT",1):D_("DCLKSTAT",2)}; try{g.HX(v0e,a)}catch(l){}KVo.push(g.$e.xn(function(){if(!(C9F||"google_ad_status"in window)){try{if(v0e.toString()&&a){var l=""+g.Wk(a),y=dLZ[l];y&&g.Nz(y)}}catch(S){}C9F=!0;D_("DCLKSTAT",3)}},5E3))}}}; JX=function(p){this.EO=p;p=Math.random();var a=this.EO.get();a=g.sW(a.B.C().experiments,"html5_debug_data_log_probability");a=Number.isFinite(a)&&a>=0&&a<=1?a:0;this.L=p-1&&(0,g.Ek)()-p.Xu>3E4&&(nAF(fJ(p)),p.Xu=(0,g.Ek)(),p.UO=!0)}; wR=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}}; Hnv=function(p,a,l){if(!(p.videoTrack.L.Dg()&&p.audioTrack.L.Dg()&&p.Ic&&p.Ic.S&&p.Ic.L))return!1;if(l&&p.MO.isManifestless&&(p.videoTrack.G===-1||p.audioTrack.G===-1))return!0;var y=nV(p.videoTrack,a,l);if(isNaN(y))return!1;p=nV(p.audioTrack,p.policy.Ha?a:y,l);return isNaN(p)?!1:!0}; DuO=function(p){var a=p.Xu;isFinite(a)&&(uN(p)?p.refresh():(a=Math.max(0,p.nz+a-(0,g.Ek)()),p.W||(p.W=new g.l_(p.refresh,a,p),g.E(p,p.W)),p.W.start(a)))}; inM=function(p){return g.j$(p.L,function(a){return a.info.video?a.info.video.projectionType==="EQUIRECTANGULAR":!1})}; ha=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);var l=this.api.D("html5_enable_audio_quality_setting_feature");Sa(this.api,"getUserAudioQualitySetting",function(){return l?a.getUserAudioQualitySetting():2}); Sa(this.api,"setUserAudioQualitySetting",function(y){l&&a.setUserAudioQualitySetting(y)}); Sa(this.api,"hasHqaAudioTrack",function(){return l?a.hasHqaAudioTrack():!1}); Sa(this.api,"getAudioQualitySettingState",function(){return l?a.api.v1(4):1}); this.D7=YZe();this.updateEnvironmentData()}; Tmv=function(p,a){var l=a||RNq(p)||p.isExternallyHostedPodcast;if(!p.L||l)return p.jl("skipDash",{dm:!!p.L,air:a,dd:p.bF,mss:fk(),"3pp":p.isExternallyHostedPodcast}),YH();Fh(p)&&Hlr(p.L,p.isLivePlayback);return o7().then(function(){return Ror(p.HH,g.Vw(p),p.Ws.W,p.L,p.W,function(y){return p.publish("ctmp","fmtflt",y)},p.QU,gQ(p)&&p.D("html5_enable_server_format_filter")).then(function(y){p.SG(y); p.HH.L=null;/^av/.test(p.clientPlaybackNonce)&&p.L1&&p.jl("av1",p.L1.L)})})}; NmA=function(p,a,l,y,S,n,V,z){bT.call(this,p,a,l,y);this.uT=S;this.Ye=n;this.G=z;this.FF=!0;this.j=null;this.W=PE(l.clientMetadata,"metadata_type_linked_player_bytes_layout_id");Iq(this.Ye(),this);this.adPlacementConfig=PE(l.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,this.uT,this.adPlacementConfig,l.layoutId)}; bW=function(p,a){return a&&a.test(p)?!0:!1}; sBF=function(p,a){return p.w7[a!=null&&a0&&p.L[a]==0&&(p.L[a]=1)}; acr=function(p,a){a=g.t(a);for(var l=a.next();!l.done;l=a.next()){l=l.value;p.Tn.jo("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",l.slot);for(var y=g.t(p.S),S=y.next();!S.done;S=y.next())S.value.Hl(l.slot);try{var n=p.L,V=l.slot,z=r1(n,V);if(!z)throw new W("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!z.S)throw new W("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(z.L!=="scheduled")throw new W("Tried to enter a slot from stage: "+ z.L,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(Lk(z))throw new W("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var d=g.t(cf(n,V.slotType+"_"+V.slotPhysicalPosition).values()),G=d.next();!G.done;G=d.next()){var B=G.value,c;if(c=z!==B&&Lk(B))S=y=void 0,c=!(((S=z.slot.fulfilledLayout)==null?void 0:S.layoutType)==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"&&((y=B.layout)==null?void 0:y.layoutType)==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"); if(c)throw new W("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:B.L},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(r){r instanceof W&&r.Bo?(p.Tn.jT("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",r.Bo,l.slot),hF(r,l.slot,XB(p.L,l.slot),void 0,r.Yt)):(p.Tn.jT("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",l.slot),hF(r,l.slot));s2(p,l.slot,!0);continue}l=r1(p.L,l.slot);l.L!=="scheduled"&&xk(l.slot,l.L,"enterSlot");l.L="enter_requested"; l.S.MP()}}; lV=function(p){var a=(0,g.Ek)();p.AO=a}; e4M=function(p){return{YE:Yx(p,1,S3e),trackType:FW(p,2),wd:FW(p,3),timeRange:Yx(p,4,KFv)}}; vb=function(p,a){a=a===void 0?240:a;g.X.call(this,{X:"button",A9:["ytp-button","ytp-search-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.wW(p.C()))},N:[{X:"div",T:"ytp-search-icon",yY:"{{icon}}"},{X:"div",T:"ytp-search-title",yY:"Buscar"}]});this.api=p;this.S=a;this.visible=!1;this.updateValue("icon",{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},N:[{X:"path",T:"ytp-svg-fill",V:{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"}}]}); p.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.L();this.J(p,"appresize",this.L);this.J(p,"videodatachange",this.L);OC(p,this.element,this)}; sOM=function(){for(var p;p=Buo.remove();){try{p.L.call(p.scope)}catch(a){nW(a)}Z0M(bkZ,p)}EK=!1}; IJ$=function(p){p=wj(p);p.metadata||(p.metadata={});return p.metadata}; YA=function(p,a){return p===void 0||p==="undefined"?!0:p===a}; Mc=function(p){return p.B.C().experiments.Cz("enable_desktop_player_underlay")}; XQF=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}}; lO=function(p,a,l){var y=p.NO;return o$(p,y,y[QB]|0,a,l,void 0===R4f?2:4,void 0,!1,!0)}; g.KV=function(p,a){g.D.call(this);this.Lz=p;this.K=a;this.U=NaN;this.W=this.G=this.started=!1;this.S=[];this.Z=new g.l_(this.sync,250,this);g.E(this,this.Z);this.j=new g.l_(this.sync,0,this);g.E(this,this.j);this.L=new Sdv}; Ok$=function(p,a,l,y){var S,n,V,z,d,G;return g.R(function(B){switch(B.L){case 1:return n=(S=Error().stack)!=null?S:"",g.u(B,g.Nb(),2);case 2:V=B.S;if(!V)throw z=g.K6("openDbImpl",p,a),g.oO("ytidb_async_stack_killswitch")||(z.stack=z.stack+"\n"+n.substring(n.indexOf("\n")+1)),eG(z),z;EW(p);d=l?{actualName:p,publicName:p,userIdentifier:void 0}:umA(p);g.$r(B,3);return g.u(B,dkA(d,V),5);case 5:return g.u(B,uBZ(d.actualName,a,y),6);case 6:return B.return(B.S);case 3:return G=g.L6(B),g.$r(B,7),g.u(B,kz(d.actualName, V),9);case 9:g.L8(B,8);break;case 7:g.L6(B);case 8:throw G;}})}; lx=function(p){return p===1701082227||p===1836019558||p===1836019574||p===1835297121||p===1835626086||p===1937007212||p===1953653094||p===1953653099||p===1836475768}; tp=function(p){g.pI(p.W);p.W=NaN}; OT=function(p){return/web/i.test(lm(p))}; kcO=function(p){var a=Zc(LO().sC,"sneio")==1,l=p.S.Fq.AFMA_LIDAR_EXP_1!==void 0,y=p.S.Fq.AFMA_LIDAR_EXP_2!==void 0;(a=a&&y)&&(p.S.Fq.AFMA_LIDAR_EXP_2=!0);l&&(p.S.Fq.AFMA_LIDAR_EXP_1=!a)}; rMe=function(p){return p.O2&&!p.H9}; bd=function(p){var a=this;this.L=p;this.U=new Map;this.S=!1;this.done=new Promise(function(l,y){a.L.addEventListener("complete",function(){l()}); a.L.addEventListener("error",function(S){S.currentTarget===S.target&&y(a.L.error)}); a.L.addEventListener("abort",function(){var S=a.L.error;if(S)y(S);else if(!a.S){S=g.ka;for(var n=a.L.objectStoreNames,V=[],z=0;z=2160})}; mPh=function(p){return g.j$(p.L,function(a){return a.info.video?a.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; I5=function(p){return p.L&&p.Ko&&p.playbackStartPolicy}; R5=function(){}; g.ex=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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"}}]}}; fcA=function(p,a,l){l=l===void 0?{}:l;this.error=p;this.meta=l;this.context=a.context;this.msg=a.message||"";this.id=a.id||"jserror"}; Dx=function(p){this.L=this.S=0;this.alpha=Math.exp(Math.log(.5)/p)}; tn=function(p,a,l){if(!g.oO("web_csi_action_sampling_enabled")||!wj(l).actionDisabled){var y=bH(l),S;if(S=g.oO("web_csi_debug_sample_enabled")&&y){(DV().resolve(ix(jd))==null?0:ud())&&!tdo&&(tdo=!0,tn("gcfl",(0,g.Ek)(),l));var n,V,z;S=(DV().resolve(ix(jd))==null?void 0:(n=ud())==null?void 0:(V=n.loggingHotConfig)==null?void 0:(z=V.csiConfig)==null?void 0:z.debugSampleWeight)||0;if(n=S!==0)b:{n=jLo();if(n.length>0)for(V=0;V=0;)p[a]=0}; WG=function(p,a){var l=a*4294967296+(p>>>0);return Number.isSafeInteger(l)?l:ts(p,a)}; DPe=function(p){var a={};g.Bf(p,function(l){var y=l.event,S=a[y];a.hasOwnProperty(y)?S!==null&&(l.equals(S)||(a[y]=null)):a[y]=l}); Hkr(p,function(l){return a[l.event]===null})}; umA=function(p){if(!g.ci())throw p=new g.ka("AUTH_INVALID",{dbName:p}),eG(p),p;var a=g.Bi();return{actualName:p+":"+a,publicName:p,userIdentifier:a}}; ikE=function(p,a,l,y){if(p.Y.D("html5_ssdai_log_ssevt_in_loader")||p.Y.D("html5_ssdai_log_ssevt_in_loader_200ms")||p.Y.D("html5_ssdai_log_ssevt_in_loader_timers")||p.Y.D("html5_ssdai_log_ssevt_in_loader_cuerange"))y=p.UO?0:Math.round((y-l)*1E3),p.playback.jl("ssevt",{tag:"sstme",ad:a!==p.playback.Zd(),cpn:a,st:(l-p.playback.CE()).toFixed(3),late:y})}; fx=function(p,a,l){if(!isNaN(l.X5)){var y=l.X5;l.Sl&&(a=mYM(p,a)/1E3,l=p.app.qO().getPlayerState(),Jp(p,a,{},l,"_update"))}; dRo=function(p,a){var l;g.Z0(p.C())&&(l={X:"div",T:"ytp-panel-footer-content",N:[{X:"span",yY:"Ajusta la calidad de descarga desde tu "},{X:"a",T:"ytp-panel-footer-content-link",yY:"Configuraci\u00f3n",V:{href:"/account_downloads"}}]});g.gl.call(this,"Calidad",g.Ya.Df,p,a,void 0,void 0,l);this.B=p;this.Xu={};this.G={};this.S={};this.w7=new Set;this.L=this.j=!1;this.W="unknown";this.K="";this.UO=new g.RA;g.E(this,this.UO);this.j=this.B.D("web_player_use_new_api_for_quality_pullback");this.L=this.B.D("web_player_enable_premium_hbr_playback_cap"); p.D("web_settings_menu_icons")&&(a=p.D("delhi_modern_web_player_icons")?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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"}}]}:{X:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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(a));g.uD(this.OC.element,"ytp-quality-menu");this.J(p,"videodatachange",this.q2);this.J(p,"videoplayerreset",this.q2);this.J(p,"onPlaybackQualityChange",this.Hq);this.q2();p.createClientVe(this.element,this,137721)}; Wb=function(p){this.content=p.content;if(p.commandRuns){p=g.t(p.commandRuns);for(var a=p.next();!a.done;a=p.next())a=a.value,this.loggingDirectives=g.T(a,Geh),a.onTap&&(this.interaction={onTap:a.onTap})}}; BHO=function(p,a){ah(p);a=Hb(p,a);return p.L.has(a)}; NE=function(p,a,l,y,S){this.S=p;this.L=a;this.U=l;this.reason=y;this.Lx=S===void 0?0:S}; var xfr=function(p,a){return IW[Z[5]](this,3,p,a)}; M$E=function(){var p={values:{},fp:{}};try{var a=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);p.values=a.values;p.halfLives=a.halfLives}catch(l){}return p}; c$A=function(p,a,l){a=g.lb(a,function(y){return new nth(y,l,y.id)}); p.B.xv("onAdUxUpdate",a)}; el=function(){var p=window,a=p.MSMediaKeys;Iw()&&!a&&(a=p.WebKitMediaKeys);return a&&a.isTypeSupported?a:null}; B1=function(p){if(p.Ic)return p.Ic.readyState;switch(p.uN.webkitSourceState){case p.uN.SOURCE_OPEN:return"open";case p.uN.SOURCE_ENDED:return"ended";default:return"closed"}}; DF=function(p){this.value=p}; DN=function(p){return p?"layout: "+p.layoutType:""}; B5=function(p){if(p.bK)return!1;var a=void 0;p.x3&&(a=p.L.tP({cpn:p.x3}));return p.playback.getVideoData().vy()?!!a&&!a.pu:!!a}; vhq=function(p){var a=new vZM,l={},y=(l["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",l);return new AY(a,p,function(){return y})}; Ga$=function(p,a,l,y){p||(p=a&&r$F.hasOwnProperty(a)&&wuF.hasOwnProperty(a)?wuF[a]+"_"+r$F[a]:void 0);a=p;if(!a)return null;p=a.match($RZ);if(!p||p.length!==5)return null;if(p=a.match($RZ)){var S=Number(p[3]),n=[7,8,10,5,6];p=!(Number(p[1])===1&&S===8)&&n.indexOf(S)>=0}else p=!1;return l||y||p?a:null}; Sb=function(p,a){p.url=a;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; GW=function(p,a){if(p=oA(a)[p])return typeof p==="number"?p:p[p.length-1]}; akv=function(p,a){var l=p.S.indexOf(a);l>=0&&p.S.splice(l,1);p.U.delete(a.cpn);a.a4&&p.j.delete(a.a4)}; rOO=function(p){return id(function(){return PRq(p,p.next())})}; CRZ=function(p,a,l,y,S,n,V,z,d,G,B,c,r,w){a=LsO(p,a,l,S,n,V,d,G,B,c,r,w);Xuo(S)?(S=sDZ(p,l,V,z),S instanceof W?p=S:(z=Ga(p.S.get(),"SLOT_TYPE_IN_PLAYER"),d=xc(p.S.get(),"LAYOUT_TYPE_SURVEY",z),V=[].concat(g.u0(S.slotExpirationTriggers),[new vp(p.L,d)]),z=a({slotId:S.slotId,slotType:S.slotType,slotPhysicalPosition:S.slotPhysicalPosition,iT:S.iT,slotEntryTrigger:S.slotEntryTrigger,slotFulfillmentTriggers:S.slotFulfillmentTriggers,slotExpirationTriggers:V},{slotId:z,layoutId:d}),p=z instanceof W?z:{Y8:{slotId:S.slotId, slotType:S.slotType,slotPhysicalPosition:S.slotPhysicalPosition,slotEntryTrigger:xRr(p,l,S.slotId,S.slotEntryTrigger),slotFulfillmentTriggers:FsO(p,l,S.slotId,S.slotFulfillmentTriggers),slotExpirationTriggers:V,iT:S.iT,clientMetadata:new Lc([new T4(gw(l)),new i8(z.layout),new NZ({Nj:p.Nj(l)})]),adSlotLoggingData:y},tN:z.tN})):p=Egq(p,l,V,z,y,d.ke,a);return p instanceof W?p:p.tN.concat(p.Y8)}; vgM=function(p,a){p.U=p.j.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:a},{offset:1,opacity:1}],{duration:200,fill:"forwards"});p.U.addEventListener("finish",function(){p.U=void 0;p.G.start();p.L="lingering"})}; TWh=function(p){g.Re(p.L,function(a){a.U>1E5||++a.U})}; ZeM=function(p){switch(p){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; cqF=function(p,a){return Math.max(0,p.mT[0].W-a)}; Ksq=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},N:[{X:"path",V:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{X:"path",V:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}}; b3M=function(p){nm.call(this,p);this.S=this.L=this.isContentForward=this.G=!1;this.element.setAttribute("data-overlay-order","8");eHO(this);this.J(this.B,"changeProductsInVideoVisibility",this.Crm);this.J(this.B,"videodatachange",this.onVideoDataChange)}; I5h=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; RHZ=function(p,a,l,y){return WN(void 0,function(){return function n(){var V,z,d,G,B,c,r,w;return HN(n,function(P){switch(P.L){case 1:g.DD(P,2),V=performance.now(),z=V+p,d=0,G=V;case 4:if(!(dz){P.g7(2);break}r=G+a;w=c-r;wa;p=l}else p=!1;return p}; fV=function(){}; CU=function(){return["metadata_type_ad_placement_config"]}; xhq=function(p){for(var a in p.L)QX(p.L[a].info.mimeType)||Q1M(p.L[a].index,Infinity)}; qjO=function(p){this.value=p}; F8=function(p){this.NO=Dm(p)}; as=function(p,a,l,y,S,n,V){y=y===void 0?!1:y;S=S===void 0?!1:S;V=V===void 0?!0:V;S||(S=p.api.C().j);var z=p.api.getVideoData();a=g.ug(g.pp[a]||"",y?{CPN:z.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);y=[];n&&y.push({X:"h2",yY:n});y.push(a[0]);V&&y.push({X:"br"});y.push({X:"a",V:{href:l,target:S?"_blank":null},T:"ytp-error-link",yY:a[2]});p.U=!0;y.push(a[4]);return{X:"span",N:y}}; EB=function(p){MA(p);p=Rg(p);un(p)||(jF(p),p=X3r(tm,jN));return p}; f5F=function(p,a,l,y){var S=hd(),n=(l=S||l&&Iw())?["com.youtube.fairplay"]:["com.widevine.alpha"];a&&n.unshift("com.youtube.widevine.l3");S&&y&&n.unshift("com.youtube.fairplay.sbdl");return l?n:p?[].concat(g.u0(n),g.u0(J$$.playready)):[].concat(g.u0(J$$.playready),g.u0(n))}; p9F=function(p,a){for(var l={},y=0;y>>0}; l8A=function(p,a,l,y,S,n,V,z,d,G,B){function c(I){return kU(p.UQ.get(),I)} var r=l.renderer,w=l.config.adPlacementConfig,P=w.kind,F=l.adSlotLoggingData,v=z.rO&&P==="AD_PLACEMENT_KIND_START";v=n&&!v;if(r.adsEngagementPanelRenderer!=null)return os(a,l.elementId,P,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,w,F,function(I,b,O,m){var H=p.L.get(),Y=I.slotId,N=r.adsEngagementPanelRenderer;I=kU(p.UQ.get(),I);return zt(H,Y,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new cQO(N),b,O,N.impressionPings,I,r.adsEngagementPanelRenderer.adLayoutLoggingData,m)}),[]; if(r.adsEngagementPanelLayoutViewModel)return os(a,l.elementId,P,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,F,function(I,b,O,m){var H=p.L.get(),Y=I.slotId,N=r.adsEngagementPanelLayoutViewModel;I=kU(p.UQ.get(),I);return txo(H,Y,"LAYOUT_TYPE_PANEL",new rQ$(N),b,O,I,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,m)}),[]; if(r.actionCompanionAdRenderer!=null){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return jXr(p.S.get(),p.U,p.L.get(),r.actionCompanionAdRenderer,w,F,y,c);os(a,l.elementId,P,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,F,function(I,b,O,m){var H=p.L.get(),Y=I.slotId,N=r.actionCompanionAdRenderer;I=kU(p.UQ.get(),I);return zt(H,Y,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new d6(N),b,O,N.impressionPings,I,r.actionCompanionAdRenderer.adLayoutLoggingData,m)})}else if(r.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return w9o(p.S.get(),p.U,p.L.get(),r.topBannerImageTextIconButtonedLayoutViewModel,w,F,y,c); os(a,l.elementId,P,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,F,function(I,b,O,m){var H=p.L.get(),Y=I.slotId,N=r.topBannerImageTextIconButtonedLayoutViewModel;I=kU(p.UQ.get(),I);return txo(H,Y,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new DF(N),b,O,I,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,m)})}else if(r.imageCompanionAdRenderer)os(a, l.elementId,P,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,F,function(I,b,O,m){var H=p.L.get(),Y=I.slotId,N=r.imageCompanionAdRenderer; I=kU(p.UQ.get(),I);return zt(H,Y,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new $av(N),b,O,N.impressionPings,I,r.imageCompanionAdRenderer.adLayoutLoggingData,m)}); else if(r.bannerImageLayoutViewModel)os(a,l.elementId,P,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,F,function(I,b,O,m){var H=p.L.get(),Y=I.slotId,N=r.bannerImageLayoutViewModel;I=kU(p.UQ.get(),I);return txo(H,Y,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new mN(N),b,O,I,r.bannerImageLayoutViewModel.adLayoutLoggingData,m)}); else if(r.shoppingCompanionCarouselRenderer)os(a,l.elementId,P,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,w,F,function(I,b,O,m){var H=p.L.get(),Y=I.slotId,N=r.shoppingCompanionCarouselRenderer;I=kU(p.UQ.get(),I);return zt(H,Y,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new PGF(N),b,O,N.impressionPings,I,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,m)}); else if(r.adBreakServiceRenderer){if(!LO$(l))return[];if(P==="AD_PLACEMENT_KIND_PAUSE")return TvF(p.S.get(),w,F,l.renderer.adBreakServiceRenderer,y);if(P!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&P!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return X9$(p.S.get(),w,F,l.renderer.adBreakServiceRenderer,y,S,n);z.ke||hF("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:P,adPlacementConfig:w,daiEnabledForContentVideo:String(n),isServedFromLiveInfra:String(z.ke),clientPlaybackNonce:z.clientPlaybackNonce}); if(P==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!p.sO)return new W("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!p.iC)return new W("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");p.iC.j$({adPlacementRenderer:l,contentCpn:y,TD:S});S=p.sO.get().getCurrentTimeSec(1,!1);return ylZ(p.S.get(),l.renderer.adBreakServiceRenderer,w,S,y,F,n)}if(!p.Iv)return new W("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); p.Iv.j$({adPlacementRenderer:l,contentCpn:y,TD:S})}else{if(r.clientForecastingAdRenderer)return xaZ(p.S.get(),p.L.get(),w,F,r.clientForecastingAdRenderer,y,S,c);if(r.invideoOverlayAdRenderer)return h4o(p.S.get(),p.L.get(),w,F,r.invideoOverlayAdRenderer,y,S,c);if(r.instreamAdPlayerOverlayRenderer)return svh(p.S.get(),p.L.get(),w,F,r.instreamAdPlayerOverlayRenderer,y,c);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&v)return qbr(p.S.get(),p.L.get(),l,y,c,G,!p.EO.get().B.C().D("html5_override_ad_video_length_killswitch")); if(r.linearAdSequenceRenderer&&!v){if(V)return[];dO(a,r,P);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!ouh(r.linearAdSequenceRenderer))return new W("Received invalid LinearAdSequenceRenderer.")}else if(r.linearAdSequenceRenderer.linearAds==null)return new W("Received invalid LinearAdSequenceRenderer.");if(g.T(r.linearAdSequenceRenderer.adStart,WD)){hF("Found AdNotify in LinearAdSequenceRenderer");l=g.T(r.linearAdSequenceRenderer.adStart,WD);if(!YnM(l))return new W("Invalid AdMessageRenderer."); n=r.linearAdSequenceRenderer.linearAds;return FOA(p.j.get(),p.S.get(),p.L.get(),p.UQ.get(),w,F,l,wk(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,n,y,S,z,c,d,p.loadPolicy,p.EO.get())}return CRZ(p.S.get(),p.L.get(),w,F,r.linearAdSequenceRenderer.linearAds,wk(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,y,S,z,c,d,p.loadPolicy,p.EO.get(),B)}if(!r.remoteSlotsRenderer||n){if(r.instreamVideoAdRenderer&& !v){if(V)return[];dO(a,r,P);return EiE(p.S.get(),p.L.get(),w,F,r.instreamVideoAdRenderer,y,S,z,c,d,p.loadPolicy,p.EO.get(),p.UQ.get(),B)}if(r.instreamSurveyAdRenderer)return CGq(p.S.get(),p.L.get(),r.instreamSurveyAdRenderer,w,F,y,c,s1(p.EO.get(),"supports_multi_step_on_desktop"));if(r.sandwichedLinearAdRenderer!=null)return CYZ(r.sandwichedLinearAdRenderer)?g.T(r.sandwichedLinearAdRenderer.adVideoStart,WD)?(hF("Found AdNotify in SandwichedLinearAdRenderer"),l=g.T(r.sandwichedLinearAdRenderer.adVideoStart, WD),YnM(l)?(n=g.T(r.sandwichedLinearAdRenderer.linearAd,iQ))?viv(l,n,w,p.j.get(),p.S.get(),p.L.get(),p.UQ.get(),F,y,S,z,c,d,p.loadPolicy,p.EO.get()):new W("Missing IVAR from Sandwich"):new W("Invalid AdMessageRenderer.")):CRZ(p.S.get(),p.L.get(),w,F,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,y,S,z,c,d,p.loadPolicy,p.EO.get()):new W("Received invalid SandwichedLinearAdRenderer.");if(r.videoAdTrackingRenderer!=null)return ltq(p.S.get(),p.L.get(),r.videoAdTrackingRenderer, w,F,y,S,z.LC,c)}}return[]}; Vce=function(){}; KOE=function(p){p.U.isFinal=!0;p.flush();p.U.isFinal=!1}; bCf=function(p){var a=eYf();a&&document.addEventListener(a,p,!1)}; I$M=function(p,a,l,y,S){g.D.call(this);var n=this,V=tX(function(){return new jt(n.EO)}); g.E(this,V);var z=tX(function(){return new W3(V,n.EO)}); g.E(this,z);var d=tX(function(){return new H3}); g.E(this,d);var G=tX(function(){return new Dq(p)}); g.E(this,G);var B=tX(function(){return new iE(V,z,n.EO)}); g.E(this,B);var c=tX(function(){return new TY}); g.E(this,c);this.X7=tX(function(){return new Ec(a)}); g.E(this,this.X7);this.uM=tX(function(){return new Nx(S)}); g.E(this,this.uM);this.lr=tX(function(){return new Nh(a)}); g.E(this,this.lr);this.gq=tX(function(){return new sU(a)}); g.E(this,this.gq);this.BZ=tX(function(){return new QI(a)}); g.E(this,this.BZ);this.VL=tX(function(){return new gp(a)}); g.E(this,this.VL);this.EO=tX(function(){return new YW(a)}); g.E(this,this.EO);var r=tX(function(){return new qx(y)}); g.E(this,r);var w=tX(function(){return new JX(n.EO)}); g.E(this,w);var P=tX(function(){return new fI(V,B,z,n.EO,w,null,null,null,null)}); g.E(this,P);this.Ty=tX(function(){return new p$(a)}); g.E(this,this.Ty);this.ac=tX(function(){return new aK(a,c,n.EO)}); g.E(this,this.ac);var F=lv({ac:this.ac,EO:this.EO,UQ:w}),v=F.context,I=F.Pl;this.Tn=F.Tn;this.sO=tX(function(){return new yh(a,n.ac,n.EO)}); g.E(this,this.sO);this.wc=tX(function(){return new SZ}); g.E(this,this.wc);this.dG=tX(function(){return new n$(n.sO,a,n.EO)}); g.E(this,this.dG);this.uT=tX(function(){return new Vh(a,d,n.dG,n.ac,n.Tn,n.EO,I)}); g.E(this,this.uT);this.oM=tX(function(){return new ZT(n.EO)}); g.E(this,this.oM);this.o1=new oK(Dn,zA,function(O,m,H,Y){return OB(z.get(),O,m,H,Y)},G,B,z,w,this.EO,this.ac); g.E(this,this.o1);this.g$=new db(G,P,l,this.EO,p,this.ac,this.sO,this.lr);g.E(this,this.g$);var b=new GA(a,this.g$,this.sO,this.ac);this.t$=tX(function(){return b}); this.OS=b;this.o9=new BQ(G,B,this.gq,this.t$,v);g.E(this,this.o9);this.By=new cQ(this.EO,G,B,P,this.ac,this.o9,l,this.BZ);g.E(this,this.By);this.wh=tX(function(){return new rb(r,z,w,n.EO,n.uT,n.sO)}); g.E(this,this.wh);this.WX=tX(function(){return new wb}); g.E(this,this.WX);this.Et=new $q(p,this.X7,this.EO);g.E(this,this.Et);this.zn=new PQ(p);g.E(this,this.zn);this.Tp=new L$(p,this.t$,v);g.E(this,this.Tp);this.zO=new XX(p,this.gq,this.sO,this.ac,v);g.E(this,this.zO);this.Qr=new xq(p);g.E(this,this.Qr);this.Jl=new FX(p);g.E(this,this.Jl);this.WZ=tX(function(){return new E3(a)}); g.E(this,this.WZ);this.sE=new C$(p);g.E(this,this.sE);this.f1=tX(function(){return new vQ}); g.E(this,this.f1);this.q7=tX(function(){return new K$(n.sO)}); g.E(this,this.q7);this.Es=tX(function(){return new eZ(n.By,G,V)}); g.E(this,this.Es);this.Dl=tX(function(){return new bv(n.EO,n.uT,n.Qr,n.dG)}); g.E(this,this.Dl);this.aA=tX(function(){return new Mxr(n.X7,n.sO,n.uT,d,l,n.EO)}); g.E(this,this.aA);this.Zl=tX(function(){return new IK(p,n.sE,n.Qr,n.uT,n.dG,n.oM,n.BZ,n.ac,n.sO,n.wc,n.gq,n.lr,n.VL,n.uM,n.Ty,n.EO,n.WZ,v,I)}); g.E(this,this.Zl);this.Gp={bZ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.By],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.o1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.g$],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.o9]]),RI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wh],["SLOT_TYPE_FORECASTING",this.WX],["SLOT_TYPE_IN_PLAYER",this.WX],["SLOT_TYPE_PLAYER_BYTES",this.WX]]),V9:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Et],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.zn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.zn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.zn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.zn],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.zn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.zn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.zn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.zn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.zn],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Qr],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jl],["TRIGGER_TYPE_AD_BREAK_STARTED",this.sE]]),Nt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f1],["SLOT_TYPE_ABOVE_FEED",this.f1],["SLOT_TYPE_FORECASTING",this.f1],["SLOT_TYPE_IN_PLAYER",this.f1],["SLOT_TYPE_PLAYER_BYTES",this.q7]]),fH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Es],["SLOT_TYPE_FORECASTING",this.Dl],["SLOT_TYPE_IN_PLAYER", this.aA],["SLOT_TYPE_PLAYER_BYTES",this.Zl]])};this.listeners=[d.get()];this.o_={By:this.By,lU:this.EO.get(),ZV:this.uM.get(),lZ:this.sO.get(),g$:this.g$,xk:V.get(),VE:null,hw:this.Et,T_:d.get(),Y3:this.ac.get()}}; u2E=function(p,a){var l=a.bgp&&a.bgub,y=!!a.upb;a.siub&&a.scs&&(l||y)&&(y&&s1(p.EO.get(),"html5_export_sodar_snapshot")?MT().then(function(S){S=S.snapshot.bind(S);g.M8("yt.abuse.playerAttLoaderRun",S);RYM(a.siub,a.scs,a.bgub,a.bgp,a.upb)}):RYM(a.siub,a.scs,a.bgub,a.bgp,a.upb))}; Bc=function(p,a,l,y){Gt.call(this,p,0,void 0,a,!(y===void 0||!y));for(p=0;p0?{associatedSlotId:l}:{},y.length>0?{slots:y}:{})); return a}; TxA=function(p,a,l){p.updateValue("text",a);if(l){a:{switch(l){case "PREMIUM_STANDALONE":a=jEA();break a;case "PREMIUM_STANDALONE_CAIRO":a=liE();break a}a=void 0}p.updateValue("icon",a)}a=g.t(p.UO.getAnimations());for(l=a.next();!l.done;l=a.next())l.value.cancel();p.UO.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){p.updateValue("text","");p.updateValue("icon","")})}; yUq=function(p,a){if(te(p,a))return a=Xb(p.L,p.pos,8),p.pos+=8,(new DataView(a.buffer,a.byteOffset,a.byteLength)).getFloat64(0,!0)}; g.xY=function(p){return g.FL()[p]||0}; Eg=function(p){return p.type===3||p.type===6}; Ohv=function(p,a){var l={slotId:Ga(a,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],iT:"surface",clientMetadata:new Lc([])},y=Object,S=y.assign;a=xc(a,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l.slotId);a={layoutId:a,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Xh:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], iT:"surface",clientMetadata:new Lc([]),nx:$oA(!1,l.slotId,l.slotType,l.slotPhysicalPosition,l.iT,l.slotEntryTrigger,l.slotFulfillmentTriggers,l.slotExpirationTriggers,a,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return S.call(y,{},p,{Fe:!0,slot:l,layout:a})}; JIq=function(p){var a=p.text||"",l=g.q$("ytp-suggested-action-badge-title",p.element);l&&g.Cp(l,a);p.badge.element.setAttribute("aria-label",a);p.dismissButton.element.setAttribute("aria-label",p.OO?p.OO:"")}; NxF=function(){var p={},a=window.performance;if(a){var l=a.memory;if(l){p.jsTotal=l.totalJSHeapSize;p.jsUsed=l.usedJSHeapSize;p.jsLimit=l.jsHeapSizeLimit;var y,S;p.msTotal=(S=(y=l.getMediaSourceTotalAllocatedMemory)==null?void 0:y.call(l))!=null?S:l.totalMediaSourceSize;var n,V;p.msLimit=(V=(n=l.getMediaSourceMaximumMemoryCapacity)==null?void 0:n.call(l))!=null?V:l.mediaSourceSizeLimit;var z,d;p.msUsed=(d=(z=l.getMediaSourceCurrentMemoryCapacity)==null?void 0:z.call(l))!=null?d:l.usedMediaSourceMemorySize}a.measureAvailableCpuMemory&& (p.cbFree=a.measureAvailableCpuMemory());a.measureUsedCpuMemory&&(p.cbUsed=a.measureUsedCpuMemory())}var G;if((G=window.h5vcc)==null?0:G.cVal)p.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),p.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),p.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return p}; jM=function(p){p=p||"";var a=sNE();if(a[p])return a[p];var l=UaO(),y={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};l.push(y);return a[p]=y}; Er=function(p){p||(p=document.location.href);p=g.By(p)[1]||null;return p!==null&&p==="https"}; IN=function(){if(!QNr){var p=QNr=new hYE;p.Cg.length=0;p.sD.length=0;AQZ(p,giA)}return QNr}; g.vc=function(p){p=p.DN();var a=p.mO.get("endscreen");return a&&a.oD()?!0:p.z5()}; KMM=function(p){var a={},l,y=(l=p.X1)==null?void 0:l.BG/1E3;y!=null&&(a.SURVEY_ELAPSED_MS=SQ(function(){return Math.round(y*1E3).toString()})); a.SURVEY_LOCAL_TIME_EPOCH_S=SQ(function(){return Math.round(Date.now()/1E3).toString()}); return a}; jt=function(p){this.EO=p;this.S=new Map;this.L=new Map;this.U=new Map}; NT=function(p){return typeof p==="object"&&!Array.isArray(p)}; CXO=function(p,a){if(a<0)return"0";p=Math.floor(Math.min(a,p.api.getDuration())*1E3);return p>2147483647?"0":String(p)}; Kp=function(p,a,l){a=Math.max(a,p.S.L);p.K.P9(1,l/a)}; g.p3=function(p){p&&typeof p.dispose=="function"&&p.dispose()}; eK=function(){g.qu.call(this);this.items={}}; g.Kl=function(){return{X:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},N:[{X:"path",V:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}}; YeZ=function(p){if(!p)return null;switch(p.iconType){case "ACCOUNT_CIRCLE":return{X:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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 CbA();case "HIDE":return{X:"svg",V:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"g",N:[{X:"path",V:{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 gu()}}; Od=function(p,a){this.Ws=p;this.UG=this.author="";this.QI=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.bx=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(a){this.ariaLabel=a.aria_label||void 0;this.author=a.author||"";this.UG=a.UG||"";if(p=a.endscreen_autoplay_session_data)this.QI=kt(p,"&");this.cC=a.cC;this.isLivePlayback=a.live_playback==="1";this.isUpcoming=!!a.isUpcoming;if(p=a.length_seconds)this.lengthSeconds=typeof p==="string"?Number(p):p;this.lengthText= a.lengthText||"";this.bx=a.bx||"";this.publishedTimeText=a.publishedTimeText||void 0;if(p=a.session_data)this.sessionData=kt(p,"&");this.shortViewCount=a.short_view_count_text||void 0;this.Z=L5(a);this.title=a.title||"";this.videoId=a.docid||a.video_id||a.videoId||a.id||void 0;this.watchUrl=a.watchUrl||void 0}}; qef=function(p,a){var l=p.started+p.L*4;a&&(l+=p.U);l=Math.max(0,l-3);return Math.pow(1.6,l)}; f$v=function(p,a,l,y,S,n,V,z,d,G,B,c,r){l=LsO(a,l,y,n,V,z,d,G,B,c,r);Xuo(n)?(y=O2A(a,p),p=Ga(a.S.get(),"SLOT_TYPE_IN_PLAYER"),n=xc(a.S.get(),"LAYOUT_TYPE_SURVEY",p),z=ww(a,y,z),a=[].concat(g.u0(z.slotExpirationTriggers),[new vp(a.L,n)]),p=l({slotId:z.slotId,slotType:z.slotType,slotPhysicalPosition:z.slotPhysicalPosition,slotEntryTrigger:z.slotEntryTrigger,slotFulfillmentTriggers:z.slotFulfillmentTriggers,slotExpirationTriggers:a,iT:z.iT},{slotId:p,layoutId:n}),S=p instanceof W?p:{Y8:Object.assign({}, z,{slotExpirationTriggers:a,clientMetadata:new Lc([new i8(p.layout)]),adSlotLoggingData:S}),tN:p.tN}):S=JQe(a,p,z,S,l);return S instanceof W?S:[].concat(g.u0(S.tN),[S.Y8])}; pYE=function(p){return Math.round(Math.max(0,p*1E3)).toString()}; avE=function(p,a){for(var l=new Map,y=g.t(p.L.keys()),S=y.next();!S.done;S=y.next()){S=S.value;var n=S.split("_")[0];a.has(n)||l.set(S,p.L.get(S))}p.L=l}; XJ=function(p){var a,l,y,S,n=((l=g.T((a=p.questions)==null?void 0:a[0],bL))==null?void 0:l.surveyAdQuestionCommon)||((S=g.T((y=p.questions)==null?void 0:y[0],Is))==null?void 0:S.surveyAdQuestionCommon),V;a=[].concat(g.u0(((V=p.playbackCommands)==null?void 0:V.instreamAdCompleteCommands)||[]),g.u0((n==null?void 0:n.timeoutCommands)||[]));var z,d,G,B,c,r,w,P,F,v,I,b,O,m,H,Y,N,yo,zq,S$;return{impressionCommands:(z=p.playbackCommands)==null?void 0:z.impressionCommands,errorCommands:(d=p.playbackCommands)== null?void 0:d.errorCommands,muteCommands:(G=p.playbackCommands)==null?void 0:G.muteCommands,unmuteCommands:(B=p.playbackCommands)==null?void 0:B.unmuteCommands,pauseCommands:(c=p.playbackCommands)==null?void 0:c.pauseCommands,rewindCommands:(r=p.playbackCommands)==null?void 0:r.rewindCommands,resumeCommands:(w=p.playbackCommands)==null?void 0:w.resumeCommands,skipCommands:(P=p.playbackCommands)==null?void 0:P.skipCommands,progressCommands:(F=p.playbackCommands)==null?void 0:F.progressCommands,Vpc:(v= p.playbackCommands)==null?void 0:v.clickthroughCommands,fullscreenCommands:(I=p.playbackCommands)==null?void 0:I.fullscreenCommands,activeViewViewableCommands:(b=p.playbackCommands)==null?void 0:b.activeViewViewableCommands,activeViewMeasurableCommands:(O=p.playbackCommands)==null?void 0:O.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(m=p.playbackCommands)==null?void 0:m.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(H=p.playbackCommands)== null?void 0:(Y=H.activeViewTracking)==null?void 0:Y.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(N=p.playbackCommands)==null?void 0:(yo=N.activeViewTracking)==null?void 0:yo.activeViewAudioMeasurableCommands,endFullscreenCommands:(zq=p.playbackCommands)==null?void 0:zq.endFullscreenCommands,abandonCommands:(S$=p.playbackCommands)==null?void 0:S$.abandonCommands,completeCommands:a}}; lvM=function(p){var a=g.g9(p.app.C()),l,y=(l=p.app.getVideoData())==null?void 0:l.h4;p=Rs(p.app);return g.dQ(a)&&!y||p?!1:!0}; U0=function(p){return navigator.requestMediaKeySystemAccess?g.TE&&!g.pT()?NG("45"):g.up||g.wF?p.Cz("edge_nonprefixed_eme"):g.sX?NG("47"):g.yd&&p.Cz("html5_enable_safari_fairplay")?!1:!0:!1}; kR=function(p,a){a=p.tP({playerType:a});if(!a)return p.HZ.L.Mb();a=uL(p,a);return Og(p,a.Mb(),a)}; Mi=function(p,a){var l=g.o4("CLOSURE_FLAGS");p=l&&l[p];return p!=null?p:a}; qBZ=function(p,a){p.XG=a;var l,y;(l=p.O6)!=null&&(y=l.L)!=null&&(y.L=new mZ(a,y.S,y.U),g.E(y,y.L))}; yDA=function(p,a,l,y){a.durationMs=l;a.fh=y;(y=p.t9.get(a.cpn))?y.iK(l/1E3):p.wG({nop_d:a.cpn})}; StM=function(p,a){if(a.title){var l=g.Sw(a.title);p.updateValue("title",l)}if(a.dialogMessages){l=g.t(a.dialogMessages);for(var y=l.next();!y.done;y=l.next())y=tz(y.value),p.Xu.appendChild(y)}a.cancelLabel&&(l=g.Sw(a.cancelLabel),p.updateValue("cancelLabel",l),p.L.J(p.j,"click",function(S){return p.nj(S)})); a.confirmLabel&&(a=g.Sw(a.confirmLabel),p.updateValue("confirmLabel",a),p.L.J(p.W,"click",function(S){return p.m1(S)})); p.L.J(p.Z,"click",function(S){return p.hO(S)})}; EiE=function(p,a,l,y,S,n,V,z,d,G,B,c,r,w){a=aVM(p,a,l,S,n,z,d,G,B,c,r,w);if(a instanceof W)return a;p=Egq(p,l,n,V,y,z.ke,a);return p instanceof W?p:p.tN.concat(p.Y8)}; ta=function(p){QH.call(this,p);var a=this;this.L=[];this.events=new g.hm(p);g.E(this,this.events);Sa(p,"addEmbedsConversionTrackingParams",function(l){a.addEmbedsConversionTrackingParams(l)}); this.events.J(p,"veClickLogged",function(l){a.api.hasVe(l)&&(l=l.visualElement.getAsJspb(),l=n8(l,2),a.L.push(l))})}; dO=function(p,a,l){if(a=zhZ(a)){a=g.t(a);for(var y=a.next();!y.done;y=a.next())if((y=y.value)&&y.externalVideoId){var S=fv(p,y.externalVideoId);S.instreamVideoAdRenderer||(S.instreamVideoAdRenderer=y,S.HT=l)}else hF("InstreamVideoAdRenderer without externalVideoId")}}; jm=function(p,a){if(p.j)if(p.videoData.isLivePlayback&&p.videoData.U&&!p.videoData.U.L&&p.mediaElement&&p.mediaElement.w3()>0&&nSv(p.mediaElement)>0&&(p.S=cY(p,p.S,!1)),a=p.D("html5_pseudogapless_shorts_seek_to_next_start")&&(a==null?void 0:a.seekSource)===60,!p.mediaElement||!LWh(p,a))p.Ha.start(750);else if(!isNaN(p.S)&&isFinite(p.S)&&(a=p.nz-(p.S-p.timestampOffset),!(a===0||Math.abs(a)<.005)))if(a=p.mediaElement.getCurrentTime()-p.S,Math.abs(a)<=p.r7||Math.abs(a)<.005)ubZ(p);else{if(p.videoData.D5)p.videoData.D5= !1;else if(!RQ(p.videoData)&&p.S>=p.Lh()-.1){p.S=p.Lh();p.j.resolve(p.Lh());p.Y.ao()&&p.Lz.jl("setEndedInSeek",{tgt:""+p.S,maxst:""+p.Lh()});p.Lz.Vi();return}try{var l=p.S-p.timestampOffset;p.mediaElement.seekTo(l);p.UO.L=l;p.nz=l;p.U=p.S;p.Xu=!1}catch(y){}}}; Z5r=function(p,a){var l=eH(a,"id");l=l.replace(":",";");var y=eH(a,"mimeType"),S=eH(a,"codecs");y=S?y+'; codecs="'+S+'"':y;S=Number(eH(a,"bandwidth"))/8;var n=Number(jT(a,"BaseURL").getAttribute(p.G+":contentLength")),V=p.duration&&n?n/p.duration:0;if(Pe(y)){var z=Number(eH(a,"width"));var d=Number(eH(a,"height")),G=Number(eH(a,"frameRate")),B=R1E(eH(a,p.G+":projectionType"));a:switch(eH(a,p.G+":stereoLayout")){case "layout_left_right":var c=1;break a;case "layout_top_bottom":c=2;break a;default:c= 0}z=new HT(z,d,G,B,c)}if(n5(y)){var r=Number(eH(a,"audioSamplingRate"));var w=Number(eH(a.getElementsByTagName("AudioChannelConfiguration")[0],"value"));d=bsA(eH(a,p.G+":spatialAudioType"));r=new dx(r,w,d);a:{w=eH(a,"lang")||"und";if(d=jT(a,"Role"))if(B=eH(d,"value")||"",g.gd(Vuq,B)){d=w+"."+Vuq[B];G=B==="main";p=eH(a,p.G+":langName")||w+" - "+B;w=new g.AQ(p,d,G);break a}w=void 0}}if(a=jT(a,"ContentProtection"))if(a.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var P={};for(a= a.firstChild;a!=null;a=a.nextSibling)a instanceof Element&&/SystemURL/.test(a.nodeName)&&(p=a.getAttribute("type"),d=a.textContent,p&&d&&(P[p]=d.trim()))}else P=void 0;return new WT(l,y,{audio:r,video:z,Mc:w,Hy:P,Lx:S,gj:V,contentLength:n})}; oSO=function(p){var a=PE(p.clientMetadata,"metadata_type_ad_placement_config").kind,l=PE(p.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:p.layoutId,adType:c3O(l),adBreakType:GX(a)}}; zk$=function(p,a,l){var y=T3O();(l=g.G2(l))&&delete y[l];a&&(y[p]=a)}; uZq=function(p,a,l){l8(p);var y=p.NO,S=y[QB]|0;if(a==null)return yH(y,S,3),p;if(!Array.isArray(a))throw i0();var n=a===yb?7:a[QB]|0,V=n,z=Sl(n),d=z||Object.isFrozen(a);z||(n=0);d||(a=Vb(a),V=0,n=Z6(n,S),d=!1);n|=5;z=4&n?512&n?512:1024&n?1024:0:void 0;z=z!=null?z:0;for(var G=0;G0&&p.api.getPlayerSize().width<=n;p.api.D("delhi_modern_web_player")?a=p.api.getPlayerSize().width<=528?n?56:64:p.W?n?72:96:n?56:72:p.W?a=54:g.wW(S)&& !S.S&&(a=40);p.w7=a}}}; Zkq=function(p,a){var l=window;p=p===void 0?!1:p;a=a===void 0?!0:a;g.nU(l.document,"keydown",dP);g.nU(l.document,"keyup",dP);g.nU(l.document,"mousedown",dP);g.nU(l.document,"mouseup",dP);p?g.nU(l,"touchmove",function(){Bb("touchmove",200)},{passive:!0}):(g.nU(l,"resize",function(){Bb("resize",200)}),a&&g.nU(l,"scroll",function(){Bb("scroll",200)})); g.nU(l.document,"touchstart",dP,{passive:!0});g.nU(l.document,"touchend",dP,{passive:!0})}; IvO=function(p,a,l){var y=!1;if(l=p.L.L.get(l)){l=g.t(l);for(var S=l.next();!S.done;S=l.next())S=S.value,S.durationMs!==0&&S.fh!==S.QL&&(S=S.cpn,a===S&&(y=!0),y&&!p.EC.has(S)&&(p.wG({decoratedAd:S}),p.EC.add(S)))}}; of=function(p){this.NO=Dm(p)}; rm=function(p,a,l,y,S,n,V,z,d){function G(){(B&&"readyState"in B?B.readyState:0)===4&&a&&g.Es(a)(B)} l=l===void 0?"GET":l;y=y===void 0?"":y;z=z===void 0?!1:z;var B=CoZ();if(!B)return null;"onloadend"in B?B.addEventListener("loadend",G,!1):B.onreadystatechange=G;g.oO("debug_forward_web_query_parameters")&&(p=RkE(p));B.open(l,p,!0);n&&(B.responseType=n);V&&(B.withCredentials=!0);l=l==="POST"&&(window.FormData===void 0||!(y instanceof FormData));if(S=bcr(p,S))for(var c in S)B.setRequestHeader(c,S[c]),"content-type"===c.toLowerCase()&&(l=!1);l&&B.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); d&&"onprogress"in B&&(B.onprogress=function(){d(B.responseText)}); if(z&&"setAttributionReporting"in XMLHttpRequest.prototype){p={eventSourceEligible:!0,triggerEligible:!1};try{B.setAttributionReporting(p)}catch(r){FU(r)}}B.send(y);return B}; zR=function(p){this.NO=Dm(p)}; uEM=function(p){return g.Hs?"webkit"+p:p.toLowerCase()}; g.Es=function(p){return p&&window.yterr?function(){try{return p.apply(this,arguments)}catch(a){g.K8(a)}}:p}; dN=function(p){p.L!=null&&p.Z!==-1&&(p.L.mN(p.Z),p.L.mN(p.nz),p.nz=-1,p.Z=-1)}; XV=function(){var p=g.o4("_lact",window);return p==null?-1:Math.max(Date.now()-p,0)}; uYF=function(p){return new sx(Object.assign({},p,{cL:function(a){p.VL.get().KH("onAdIntroStateChange",a)}}))}; O5A=function(p){var a=g.q$("html5-video-player");a&&g.JB(a,"ytp-ad-display-override",p)}; kpf=function(p){var a=p.B.getVideoData();return!!a.Ae||!!a.captionTracks.length||g.Cmf(a,p.B)}; g.GR=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; WUE=function(p,a){var l,y,S,n,V;return g.R(function(z){switch(z.L){case 1:p.kE.nt("oprgz_s");if(!Mur){z.g7(2);break}g.$r(z,3);return g.u(z,mro(a),5);case 5:return l=z.S,p.kE.nt("oprgz_n"),p.kE.jl("oprsgz",{i:"n"}),z.return(l);case 3:y=g.L6(z),p.kE.jl("gzerr",{impl:"native",err:""+y});case 2:if(S=p.kE.C().XG)try{var d=BK.hA(),G=S.DK(a),B=S,c=G!=null?G:a,r=c.byteOffset,w=c.byteLength,P=B.exports.getInflatedSize(r,w);if(P===0)throw Error("wasm_gz: bad input");var F=B.malloc(P),v=B.exports.inflateGzip(r, w,F);if(v)throw B.free(F),Error("wasm_gz: fail"+v);var I=new Uint8Array(B.exports.memory.buffer,F,P);G&&S.free(G.byteOffset);var b=S.wz(I);BK.Zw("gzwb",d,Math.ceil(b.byteLength/16));n=b;p.kE.nt("oprgz_w");p.kE.jl("oprsgz",{i:"w"});return z.return(n)}catch(O){p.kE.jl("gzerr",{impl:"wasm",err:""+O})}d=BK.hA();G=g.tue(new g.jpZ(a));BK.Zw("gzjb",d,Math.ceil(G.byteLength/16));V=G;p.kE.nt("oprgz_p");p.kE.jl("oprsgz",{i:"j"});return z.return(V)}})}; H5F=function(p,a){a=GX$(a,p.L.r7);a=p.U.createSession("video/mp4",a);return new cK(null,null,null,null,a,p.K)}; DrE=function(p,a){if(!p)return{N$:[],adSlots:[],jI:!0,ssdaiAdsConfig:void 0};p.trackingParams&&eC(p.trackingParams);if(p.adThrottled)return{N$:[],adSlots:[],jI:!0,ssdaiAdsConfig:void 0};var l,y=(l=p.adSlots)!=null?l:[],S;l=(S=p.playerAds)!=null?S:[];if(!(l&&l.length||y.length))return{N$:[],adSlots:y,jI:!1,ssdaiAdsConfig:void 0};S=l.map(function(V){return V.adPlacementRenderer}).filter(function(V){return!(!V||!V.renderer)}); if(!S.length&&!y.length)return{N$:[],adSlots:y,jI:!1,ssdaiAdsConfig:void 0};if(a.end>0){var n=a.end.toString();S.forEach(function(V){(V=V.config&&V.config.adPlacementConfig)&&V.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&V.adTimeOffset&&V.adTimeOffset.offsetEndMilliseconds==="-1"&&V.adTimeOffset.offsetEndMilliseconds!==n&&(V.adTimeOffset.offsetEndMilliseconds=n)}); y.map(function(V){return g.T(V,Uz)}).forEach(function(V){var z; (V=V==null?void 0:(z=V.slotEntryTrigger)==null?void 0:z.mediaTimeRangeTrigger)&&V.offsetEndMilliseconds==="-1"&&(V.offsetEndMilliseconds=n)})}return{N$:S, adSlots:y,jI:!1,ssdaiAdsConfig:p.ssdaiAdsConfig}}; i5O=function(p){var a,l;return!!((a=p.L)==null?0:(l=a.eK)==null?0:l.lj)}; g.GQ=function(p,a){return QX(p.info.mimeType)?a?p.info.itag===a:!0:!1}; fr=function(p){var a={};p=p.split("&");p=g.t(p);for(var l=p.next();!l.done;l=p.next())l=l.value.split("="),l.length===2&&(a[l[0]]=l[1]);return a}; g.mu=function(p){var a={client:{hl:p.Cb,gl:p.Vg,clientName:p.PJ,clientVersion:p.innertubeContextClientVersion,configInfo:p.MY}};navigator.userAgent&&(a.client.userAgent=String(navigator.userAgent));var l=g.dD.devicePixelRatio;l&&l!=1&&(a.client.screenDensityFloat=String(l));l=n1();l!==""&&(a.client.experimentsToken=l);l=V2();l.length>0&&(a.request={internalExperimentFlags:l});TFv(p,void 0,a);NF$(void 0,a);oKf(void 0,a);ldq(p,void 0,a);sp$(void 0,a);g.oO("start_client_gcf")&&UrM(void 0,a);g.ZM("DELEGATED_SESSION_ID")&& !g.oO("pageid_as_header_web")&&(a.user={onBehalfOfUser:g.ZM("DELEGATED_SESSION_ID")});!g.oO("fill_delegate_context_in_gel_killswitch")&&(p=g.ZM("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(a.user=Object.assign({},a.user,{serializedDelegationContext:p}));p=g.ZM("INNERTUBE_CONTEXT");var y;if(g.oO("enable_persistent_device_token")&&(p==null?0:(y=p.client)==null?0:y.rolloutToken)){var S;a.client.rolloutToken=p==null?void 0:(S=p.client)==null?void 0:S.rolloutToken}y=Object;S=y.assign;p=a.client; l={};for(var n=g.t(Object.entries(vv(g.ZM("DEVICE","")))),V=n.next();!V.done;V=n.next()){var z=g.t(V.value);V=z.next().value;z=z.next().value;V==="cbrand"?l.deviceMake=z:V==="cmodel"?l.deviceModel=z:V==="cbr"?l.browserName=z:V==="cbrver"?l.browserVersion=z:V==="cos"?l.osName=z:V==="cosver"?l.osVersion=z:V==="cplatform"&&(l.platform=z)}a.client=S.call(y,p,l);return a}; rN=function(p,a){dT.call(this,p,3,a)}; g.VM=function(p,a){this.state=p;this.oldState=a}; mx=function(){throw Error("Invalid UTF8");}; Qp$=function(p){var a=p.r7||p.OO;return a?p.snapshot.delay+Math.min(p.A$,(p.Z-p.Sl)/1E3)+a:p.va}; hkh=function(p){this.NO=Dm(p)}; gSM=function(p,a){var l=[];a=g.t(a);for(var y=a.next();!y.done;y=a.next()){y=y.value;var S=ADr[y]||0;p.L&&S>p.L||l.push(y)}return l}; MgM=function(p){p=p.charCodeAt(0);return"%"+(p>>4&15).toString(16)+(p&15).toString(16)}; LgM=function(p){var a=a===void 0?!0:a;this.L=new SM;p!==void 0&&Rxo(this.L,p);a&&this.L.add("v","unreleased",-16)}; Ytv=function(p){var a=[new cN(p.VR),new WO(p.F8),new ei(p.adPlacementConfig),new iv(p.videoLengthSeconds),new b0(p.yk)];p.instreamAdPlayerOverlayRenderer&&a.push(new UO(p.instreamAdPlayerOverlayRenderer));p.playerOverlayLayoutRenderer&&a.push(new ox(p.playerOverlayLayoutRenderer));p.Yd&&a.push(new cb(p.Yd));return a}; g.Xn=function(p,a){g.yT.call(this);this.N0=p||1;this.Wz=a||g.dD;this.Fo=(0,g.bn)(this.y5z,this);this.oR=g.XS()}; id=function(p){try{return wN(p())}catch(a){return cKM(a)}}; H8=function(p,a){a.name in p.Z||(p.Z[a.name]=qtq(p,a));return p.Z[a.name]}; $V=function(p,a,l,y){var S=p.j.zw();S.ssr_sk=(a*1E3).toFixed(0);S.ssr_t=(p.L*1E3).toFixed(0);S.ssr_r=l;S.ssr_st=(p.startTimeSecs*1E3).toFixed(0);S.ssr_n=(0,g.Ek)().toFixed(0);S.ssr_f=(p.K.L*1E3).toFixed(0);S.ssr_fa=p.U?"1":"0";S.ssr_o=(p.kV.Cv()*1E3||0).toFixed(0);S.ssr_v=(y*1E3).toFixed(0);a=p.S.L.index;a.iW(p.S.Rc,!0)&&(S.ssr_ist=(a.getStartTime(p.S.Rc)*1E3).toFixed(0),S.ssr_id=(a.getDuration(p.S.Rc)*1E3).toFixed(0));p.loader.jl("ssr",S)}; g.Vt=function(p,a){return(a||document).getElementsByTagName(String(p))}; JD$=function(p){this.NO=Dm(p)}; PN=function(p){this.value=p}; fvZ=function(){return g.g8("(ps3; leanback shell)")||g.g8("ps3")&&g.pT()}; Ja=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}}; M_M=function(p,a,l){p=new MJ(p.L);p.update(a);p.update(l);a=pXv(p);p.update(p.W);p.update(a);a=pXv(p);p.reset();return a}; PK=function(){return g.g8("smart-tv")&&g.g8("samsung")}; aAM=function(p,a,l,y,S){wt.call(this,"top-banner-image-text-icon-buttoned",p,a,l,y,S)}; $VM=function(p){p=$bE(p);var a=p[0].FM;if(p=p[1]){var l=Uc(p),y=Ch(MX,Ex,Cn,p).fG;return function(S,n,V){return a(S,n,V,y,l)}}return a}; dw=function(p,a,l,y,S){De.call(this,l,S);var n=this;this.policy=p;this.formatId=a;this.hN=y;this.lastError=null;this.onProgress=function(){n.Gm()||(n.hN.ir.has(n.formatId)?(n.isComplete()||n.L.start(),Zk(n.hN,n.formatId)&&n.Lr(2),n.hN.h$(n.formatId)&&(lAA(n.hN,n.formatId)?n.cZ(4):(n.lastError="net.closed",n.cZ(5)))):(n.lastError="player.exception",n.cZ(5)))}; this.L=new g.l_(function(){n.isComplete()||(n.lastError="net.timeout",n.cZ(5))},1E3); this.L.start();gqE(this.hN,this.formatId,this.onProgress);g.VU(this.onProgress)}; ZYr=function(p){if(!p.isInitialized){p.isInitialized=!0;try{var a=nu(),l=LO(),y=TJ();SP=a;l.U=79463069;p.S!=="o"&&(yvr=KYF(LU));if(ZFA()){wD.L.HU=0;wD.L.xR=nu()-a;var S=vSA(),n=p7(BT);n.S=S;STv(n,function(){nLZ()})?wD.done||(x$E(),NY(n.L.L,p),im()):y.U?nLZ():im()}else Vy$=!0}catch(V){throw Ps.reset(),V; }}}; sd=function(p,a){g.D.call(this);this.app=p;this.state=a}; M_=function(p,a,l,y){var S=this;this.K=p;this.MO=a;this.policy=l;this.logger=y;this.T4=[];this.wq=[];this.L=-1;this.Io=null;this.G=this.timestampOffset=0;this.S=10;this.W=new Set;this.hg={Pn:function(n){return S.Pn(n)}}; this.j=a.ke?0:1;l.In>0&&(this.S=l.In)}; oLr=function(p){if(!p.stack)return!0;var a=!p.stack.includes("\n");return a&&p.stack.includes("ErrorType: ")||a&&p.stack.includes("Anonymous function (Unknown script")||p.stack.toLowerCase()==="not available"||p.fileName==="user-script"||p.fileName.startsWith("user-script:")?!0:!1}; dte=function(p,a){if(!p.isSeeking&&p.Sl!==a&&!isNaN(p.Z)){p.Sl=a;var l=p.G?p.K:p.j.Ot(a);(l!==p.K||p.G)&&zmv(p,l,a)}}; JNF=function(p,a,l,y){if(!a&&!l)return Promise.resolve();if(!y)return GSM(a,l);var S;(S=p.S)[y]||(S[y]=new Promise(function(n,V){GSM(a,l).then(function(){p.L=y;n()},function(z){delete p.S[y]; V(z)})})); return p.S[y]}; LH=function(){g.D.call(this);this.t8=!1;this.bM=null;this.Z=this.K=!1;this.j=new g.yT;this.G=this.Lz=null;g.E(this,this.j)}; MD=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; g.BsA=function(p){if(p.info.L.G4())return p.info.duration;p.j===-1&&(p.j=Or(p));return p.j||p.info.duration}; cvO=function(p){return p.Cs?["OK","LIVE_STREAM_OFFLINE"].includes(p.Cs.status):!0}; g.qb=function(p){var a=new YD;return a.isAvailable()?p?new XA(a,p):a:null}; FA=function(p,a,l,y,S,n){l=l===void 0?!0:l;var V=p.tP({playerType:S});if(!V||(V.getPlayerType()!==2||p.fv(V))&&!g.xV(V.getVideoData())){var z=p.HZ.sU;z?z.seekTo(a,{eI:!l,JS:y,JP:"application",seekSource:n}):(V&&V===p.jb()&&p.lM&&!Mcr(p,a)&&p.setLoopRange(null),p.seekTo(a,l,y,S,n,"_request"))}}; Fc=function(p,a,l,y,S,n,V,z,d,G,B,c,r,w){g.D.call(this);this.callback=p;this.ac=a;this.WZ=l;this.BZ=y;this.sO=S;this.wc=n;this.lr=V;this.wX=z;this.slot=d;this.layout=G;this.sE=B;this.Z1=c;this.Ye=r;this.EO=w;this.FF=!0;this.V2=!1;this.Fb=[];this.aY=-1;this.hp=!1;this.wC=new vUe}; Pb=function(p){var a=$u(p,!0),l=0;a===4?l=p.L.getFloat32(p.pos):a===8&&(l=p.L.getFloat64(p.pos));p.pos+=a;return l}; i3E=function(p){this.Sl=this.K=this.W=this.U=0;this.Z=this.G=!1;this.L=p;this.S=p.clone()}; rvO=function(p){zo(p,"impression")&&!zo(p,"seek")&&p.h5("audio_measurable")}; a1$=function(p,a,l){JUM(p,p[QB]|0,function(y,S){if(S!=null){var n=P4M(l,y);n?n(a,S,y):y<500||XC(wXM,3)}}); (p=t5(p))&&fT(p,function(y,S,n){ym(a,a.L.end());for(y=0;yOPh||V0)l=!0;else{for(var y=g.t(p.U.values()),S=y.next();!S.done;S=y.next())if(S.value.cryptoPeriodIndex===l){l=!0;break a}l=!1}}p.publish("log_qoe",{wvagt:"reqnews",canskip:l});l||p.publish("rotated_need_key_info_ready",a)}; mtF=function(p){var a=a===void 0?5:a;return p?MyF[p]||a:a}; Sno=function(p,a){if(p.L.length!==0){var l=new URL(VvA(p));l.searchParams.delete("format");var y=p.Ov();y&&l.searchParams.set("auth",y);l.searchParams.set("authuser",p.sessionIndex||"0");for(y=0;y<10&&p.L.length;++y){var S=p.L.slice(0,32),n=p.U.build(S,p.j,p.G,p.Uo,p.w7,p.Xu);if(!a(l.toString(),n)){++p.G;break}p.j=0;p.G=0;p.w7=0;p.Xu=0;p.L=p.L.slice(S.length)}p.S.enabled&&p.S.stop()}}; IW=function(p,a,l){if((p-6|30)=p){var y=a[Z[21]](Z[3]);KH[Z[17]](y,45);KH[Z[17]](y,7);KH[Z[70]](y,3);KH[Z[36]](y,34);KH[Z[70]](y,3);KH[Z[17]](y,37);var S=y[Z[65]](Z[3])}(p-9&7)==1&&a[Z[38]]();if((p>>2&11)>=7&&(p>>1&5)<4)for(y=a[Z[7]];y;)a[Z[11]](a[Z[33]](--y,1)[0]);p-7<<1=p&&a[Z[7]]!=0&&(y=EM(16,l,a),l=y[0],a=y[1]);return S}; tyh=function(){return Object.values(g.ZM("client-screen-nonce-store",{})).filter(function(p){return p!==void 0})}; jSE=function(p){var a=[];g.Bf(p,function(l){gf(Ps.L,function(y){return y.bk.d1===l.bk.d1&&y.eR===l.eR})||(Ps.L.push(l),a.push(l))})}; P3=function(p){this.NO=Dm(p)}; tqA=function(p,a){a.push('"',p.replace(WEf,function(l){var y=HYF[l];y||(y="\\u"+(l.charCodeAt(0)|65536).toString(16).slice(1),HYF[l]=y);return y}),'"')}; yQe=function(p,a,l){var y=l.channelThumbnail;y&&(y=y.thumbnails)&&(y=y[0])&&(a.profile_picture=y.url);var S;if(y=g.T((S=g.T(l==null?void 0:l.channelThumbnailEndpoint,Dtr))==null?void 0:S.urlEndpoint,g.vX))a.channel_path=y.url;if(S=l.collapsedRenderer)if(S=g.T(S,iYE)){if(y=S.title)a.title=g.Sw(y);if(S=S.subtitle)a.subtitle=g.Sw(S)}if(l=l.expandedRenderer)if(l=g.T(l,TsA)){if(S=l.title)a.expanded_title=g.Sw(S);if(S=l.subtitle)a.expanded_subtitle=g.Sw(S);if(l=l.subscribeButton)p.subscribeButtonRenderer= g.T(l,g.eD),p.subscribeButtonRenderer&&(a.ucid=p.subscribeButtonRenderer.channelId,a.subscribed=p.subscribeButtonRenderer.subscribed,p.yP=!!p.subscribeButtonRenderer.notificationPreferenceToggleButton,p.subscribeButtonRenderer.notificationPreferenceToggleButton&&p.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(a=p.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,a.isToggled?(p.jz=a.toggledServiceEndpoint||null,p.Sz=a.defaultServiceEndpoint|| null):(p.jz=a.defaultServiceEndpoint||null,p.Sz=a.toggledServiceEndpoint||null)))}}; jDh=function(p){p.w7||(p.w7=(0,g.Ek)(),g.Pf("oafs_rp",p.w7,p.L))}; oj=function(p,a,l){for(var y in p.L){var S=p.L[y].index,n=a,V=l;S.bW&&(n&&(S.LU=Math.max(S.LU,n)),V&&(S.vL=Math.max(S.vL||0,V)))}l&&(p.w7=l/1E3)}; M6=function(p){this.L="pending";this.S=[];this.U=[];try{p(this.j.bind(this),this.reject.bind(this))}catch(a){this.reject(a)}}; g.Lf=function(p,a){if(!Nsq){var l=DV();T3(l,{Xl:sSM,ZZ:bC});var y={Ik:{feedbackEndpoint:If(Yu),modifyChannelNotificationPreferenceEndpoint:If(Cw),playlistEditEndpoint:If(fV),shareEntityEndpoint:If(XP),subscribeEndpoint:If(Rf),unsubscribeEndpoint:If(vK),webPlayerShareEntityServiceEndpoint:If(uC)}},S=o_.getInstance(),n={};S&&(n.client_location=S);p===void 0&&(p=NHr());a===void 0&&(a=l.resolve(sSM));UtM(y,a,p,n);T3(l,{Xl:QSF,Fj:j1.instance});Nsq=l.resolve(QSF)}return Nsq}; Ov=function(p,a){a!=p.sy&&(p.sy=a,p=TJ(),a?p.G++:p.G>0&&p.G--)}; Md=function(p,a,l){p.S=a;var y;(y=p.W)==null||y.cZ(a,l);var S;(S=p.UO)==null||S.cZ(a);p.L=0;kV(p);mVr(p,a)}; sbv=function(p,a,l){var y=this;this.loader=p;this.policy=a;this.W=l;this.logger=new g.iF("dash");this.S=[];this.L=null;this.w7=-1;this.Sl=0;this.QY=NaN;this.UO=0;this.U=NaN;this.Z=this.Hs=0;this.Kz=-1;this.t9=this.j=this.G=this.Bs=null;this.VY=this.OO=NaN;this.K=this.Xu=this.r7=this.Ps=null;this.Yv=!1;this.nz=this.timestampOffset=0;this.hg={Ti:function(){return y.S}}; if(this.policy.j){var S=this.W,n=this.policy.j;this.policy.Yv&&p.jl("atv",{ap:this.policy.Yv});this.K=new HCh(this.policy,S,function(V,z,d){p.Lz.PR(new bJ(y.policy.j,2,{Nr:new hmr(n,V,S.info,z,d)}))}); this.K.Z.promise.then(function(V){y.K=null;V===1?p.Lz.PR(new bJ(y.policy.j,V)):y.loader.jl("offlineerr",{status:V.toString()})},function(V){var z=(V.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); V instanceof eA&&!V.L?(y.loader.jl("offlinenwerr",{em:z}),bw(y),p.Lz.PR(new bJ(y.policy.j,4))):(y.loader.jl("dldbwerr",{em:z}),bw(y),p.Lz.PR(new bJ(y.policy.j,4,{vV:!0})))})}}; kHv=function(p){var a=new ksf;a.j=p.D("h5_gapless_support_types_diff");a.Z=!1;a.UO=p.D("html5_gapless_use_format_info_fix");a.G=p.D("html5_gapless_disable_on_av1")&&!p.D("html5_gapless_enable_on_av1");a.W=p.D("html5_gapless_check_codec_diff_strictly");a.Sl=p.D("html5_gapless_on_ad_autoplay");a.K=p.D("html5_gapless_disable_diff_aspect_radio");a.S=p.D("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!p.D("html5_disable_loop_range_for_shorts_ads");a.L=p.D("html5_pseudogapless_shorts_seek_to_next_start"); a.U=p.D("html5_gapless_ad_autoplay_on_video_to_ad_only");return a}; hI=function(p,a,l,y,S,n,V){JF.call(this,p,a,l,y,S,n);this.L=V;g.E(this,this.L);this.nz=this.Z=-1}; Avo=function(p){this.NO=Dm(p,500)}; gLE=function(p,a,l){return p.policy.L?qA(p,!0)a&&p.Gp.S&&a.S+a.U<=p.S+p.U}; fAA=function(p){return gf(p.U,function(a){return a.Bw})}; l3h=function(p,a,l){var y=a.S?a.S.L.bM:a.L.bM;var S=p.j,n;(n=!p.policy.gf)||(n=ik(28,y.L)===ik(23,y.S));n?y=!1:(S=GF(S,ik(20,y.S)),n=6E4*Math.pow(S.j,1.6),(0,g.Ek)()p.getCurrentTime())return l.start/1E3;return Infinity}; V6=function(p){for(var a=$u(p,!0),l=f$(p),y=1;y>>=8,p++;a=y.start+y.pos;var S=$u(y,!0);y=p+(y.start+y.pos-a)+S;y=y>9?zUO(y-9,8):zUO(y-2,1);p=a-p;l.setUint8(p++,236);for(a=0;a=S){S=rGh(V.url);g.Ik(S)&&(a[y]=S);break}}(p=p.pop())&&p.width>=1280&&(p=rGh(p.url),g.Ik(p)&&(a["maxresdefault.jpg"]=p));return a}; TR=function(p,a){return iC(p,a)}; Sbe=function(p,a,l,y){var S,n,V;return g.R(function(z){switch(z.L){case 1:if(p.L){z.g7(2);break}return g.u(z,y.importKey("raw",p.S,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:p.L=z.S;case 2:return S=new Uint8Array(a.length+l.length),S.set(a),S.set(l,a.length),n={name:"HMAC",hash:"SHA-256"},g.u(z,y.sign(n,p.L,S),4);case 4:return V=z.S,z.return(new Uint8Array(V))}})}; Pr=function(p,a){if(p=Cf(p,a))return g.aE(p)}; Nd=function(p){return p.va?p.va-(p.Z||p.timestampOffset):0}; L3=function(p,a,l){for(var y=[],S=g.t(p.layoutExitNormalTriggers||[]),n=S.next();!n.done;n=S.next()){n=kQ(n.value,a,l);if(n instanceof W)return n;y.push(n)}S=[];n=g.t(p.layoutExitSkipTriggers||[]);for(var V=n.next();!V.done;V=n.next()){V=kQ(V.value,a,l);if(V instanceof W)return V;S.push(V)}n=[];V=g.t(p.layoutExitMuteTriggers||[]);for(var z=V.next();!z.done;z=V.next()){z=kQ(z.value,a,l);if(z instanceof W)return z;n.push(z)}V=[];p=g.t(p.layoutExitUserInputSubmittedTriggers||[]);for(z=p.next();!z.done;z= p.next()){z=kQ(z.value,a,l);if(z instanceof W)return z;V.push(z)}return{layoutExitNormalTriggers:y,layoutExitSkipTriggers:S,layoutExitMuteTriggers:n,layoutExitUserInputSubmittedTriggers:V,layoutExitUserCancelledTriggers:[]}}; haM=function(p,a,l){var y,S,n,V;return g.R(function(z){if(z.L==1){if(!g.oO("start_client_gcf"))return z.g7(0);I7(p,a);return(y=Ts())?l?z.g7(4):g.u(z,XiZ(y),5):z.g7(0)}z.L!=4&&(S=z.S,l=(n=S)==null?void 0:n.config);if(!l)return z.g7(0);V=l.configData;return g.u(z,x5v(l,a,V,y),0)})}; w6A=function(p,a){WV.call(this,p);this.error=a;this.L="e";this.S="y"}; nSv=function(p){p=p.SA();return p.length<1?NaN:p.end(p.length-1)}; $OE=function(p){return{minBandwidthBytesPerSec:FW(p,1),minReadaheadMs:FW(p,2)}}; g.o4=function(p,a){p=p.split(".");a=a||g.dD;for(var l=0;l=0&&g.x3(p,a)}; PSh=function(p){if(p.B.isEmbedsShortsMode())return!1;p=p.B;var a=p.C();if(a.U)return!1;var l;if(((l=a.getWebPlayerContextConfig())==null?0:l.embedsEnableEmc3ds)||a.controlsType==="3")return!1;if(a.playerStyle==="creator-endscreen-editor")return!0;l=p.getVideoData();return!!l&&(!!g.WPr(l)||!!g.DYv(l))}; g.fs=function(p,a){this.type=p;this.currentTarget=this.target=a;this.defaultPrevented=this.S=!1}; Jnr=function(p){if(g.T(p.renderingContent,Uv)){var a;return((a=g.T(p.renderingContent,Uv))==null?void 0:a.impressionPings)||[]}if(g.T(p.renderingContent,QV)){var l;return((l=g.T(p.renderingContent,QV))==null?void 0:l.impressionPings)||[]}if(g.T(p.renderingContent,hE)){var y;return((y=g.T(p.renderingContent,hE))==null?void 0:y.impressionPings)||[]}return[]}; AE=function(p,a){Lqr(p,a).then(function(l){g.I8(a,void 0,void 0,l)})}; X6M=function(p,a){NQ(p,1,a.trackType);AP(p,2,a.isHdr)}; xlM=function(p,a,l,y,S,n,V){g.nF.call(this,a,l,{id:p,namespace:"ad",priority:S,visible:y,associatedClipId:n,markerPositionMs:V})}; m7r=function(p){var a=xK(p);return a&&a.durationMs?bo(a.durationMs):p.paidContentOverlayDurationMs}; tN=function(p){g.D.call(this);this.provider=p;this.G="paused";this.W=NaN;this.K=[10,10,10,40];this.Sl=this.Z=0;this.Xu=this.Bs=this.w7=this.UO=this.U=!1;this.S=this.j=NaN;this.logger=new g.iF("vss");this.L=new hN(p)}; e8M=function(p){p=kfM(p);return p===null?!1:p[1]==="google"?!0:p[2]==="google"?p[0]==="au"&&p[1]==="com"?!0:p[0]==="uk"&&p[1]==="co"?!0:!1:!1}; FqM=function(p){Tv=p}; EuA=function(p,a,l){var y;if((y=a.Xd)!=null&&y.T7)try{var S,n=(S=p.cache)==null?void 0:EXO(S,oC(p,a),a.Xd.bl);return n?l?bk(p.logger,function(){return g.MN(n,2)},"a"):n:void 0}catch(V){p.reportError(new V$(23,"RXO:read",V))}}; KG=function(){this.S=this.U=this.j=this.L=0}; Kqv=function(p,a){a=a===void 0?!1:a;if(CSo(p)){a=a===void 0?!1:a;p.policy.K&&p.loader.jl("sabrcrq",{create:1});a=vXo(p,new gN(0,p.MO.Sl,p),a);p.L.push(a);var l;(l=p.nz)==null||a3M(l,p.MO.Sl);p.Sl>0&&p.t9.xw++}}; eU$=function(p){if(!p.L)return!1;p=p.S.get(p.L);return p&&p.event!=="predictStart"&&p.bU===5?(p==null?0:p.UF)&&Date.now()-(p==null?NaN:p.UF)>1E4?(p.bU=1,!1):!0:!1}; Hp=function(p){this.S=p===void 0?15:p;this.values=new Float64Array(176);this.L=new Float64Array(11);this.U=new Float64Array(16)}; g.p6=function(p){var a=p.data.getUint8(p.dataOffset)?20:12;return p.data.getUint32(p.dataOffset+a)}; Xuo=function(p){p=g.t(p);for(var a=p.next();!a.done;a=p.next())if(g.T(a.value,YV))return!0;return!1}; bJo=function(p){return p.B.C().experiments.Cz("enable_progres_commands_lr_feeds")}; I3v=function(p){this.value=p}; qd=function(p,a,l){g.D.call(this);this.loader=p;this.policy=a;this.s6=l;this.S=0;this.L=!1;this.delay=new g.l_(this.U,this.policy.Rr,this);g.E(this,this.delay)}; RUZ=function(p){return p.Rc+(p.j?1:0)}; hU=function(p){var a;return!((a=p.lM)==null||!a.postId)&&p.api.getPresentingPlayerType()!==2}; JE=function(p,a,l,y,S,n,V,z,d,G,B,c,r){bT.call(this,n,p,a,S);this.uT=l;this.j=V;this.Z=z;this.sO=d;this.uM=G;this.EO=B;this.G=c;this.W=r;this.zm=u_A(a,l)}; yv=function(p,a){a=a===void 0?{}:a;var l,y,S,n;return g.R(function(V){if(V.L==1)return g.$r(V,2),l=self.indexedDB.deleteDatabase(p),y=a,(S=y.blocked)&&l.addEventListener("blocked",function(){S()}),g.u(V,HzZ(l),4); if(V.L!=2)return g.L8(V,0);n=g.L6(V);throw BL(n,p,"",-1);})}; fH=function(p,a,l){var y=PE(p.J9().clientMetadata,"metadata_type_linked_in_player_layout_id");return y?y:(hF("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",p.iM(),p.J9(),{requestingSlot:a,requestingLayout:l}),null)}; var V$o=function(p){return IW[Z[5]](this,18,p)}; zo=function(p,a){return p.L.has(a)}; OJh=function(){}; MFF=function(p,a,l,y){return new EL(p.type,p.L,p.range,"reslice"+p.K,p.Rc,p.startTime,p.duration,a,l,y,p.CC,p.clipId)}; pR=function(p){var a=p.D("web_player_use_cinematic_label_2")?"Modo Ambiente":"Iluminaci\u00f3n cinem\u00e1tica";g7.call(this,a,g.Ya.Ij);var l=this;this.B=p;this.L=!1;this.S=new g.l_(function(){g.b6(l.element,"ytp-menuitem-highlighted")},0); this.U6=p.K0();p=p.D("delhi_modern_web_player_icons")?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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"}}]}:{X:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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(p);this.subscribe("select",this.U,this);this.listen(kUZ,this.j);g.E(this,this.S)}; MYM=function(p,a){this.statusCode=p;this.message=a;this.S=this.heartbeatParams=this.errorMessage=null;this.L={};this.nextFairplayKeyId=null}; Q$=function(p,a){return new g.ib("https://"+a+p.Y.O6.baseUrl)}; aF=function(p,a,l){mlf(p.s6,a);p.QY&&(p.QY.add(Math.ceil(a)-Math.ceil(p.K)),p.QY.add(Math.max(0,Math.ceil(l/1024)-Math.ceil(p.W/1024))));var y=a-p.K,S=l-p.W;p.Fh=S;p.Ps=Math.max(p.Ps,S/(y+.01)*1E3);p.K=a;p.W=l;p.Bs&&l>p.Bs&&tYZ(p)}; B7q=function(){var p=yvr||LU;if(!p)return"";var a=[];if(!p.location||!p.location.href)return"";a.push("url="+encodeURIComponent(p.location.href.substring(0,512)));p.document&&p.document.referrer&&a.push("referrer="+encodeURIComponent(p.document.referrer.substring(0,512)));return a.join("&")}; j9r=function(p){return{videoId:Pr(p,2)}}; ud=function(){var p;return(p=xg())!=null?p:g.ZM("RAW_HOT_CONFIG_GROUP")}; WqF=function(p,a){return""+p+"|"+(a?"v":"a")}; NG=function(p){return g.$O(HJE,p)>=0}; HA=function(p){return p.qL||p.hq!==void 0}; cZ=function(p,a,l,y){a=a===void 0?0:a;l=l===void 0?p.length:l;var S=0;for(y&&(S=cZ(y));a=a)){for(var l=p.L.length*2;l=0&&(a in p.L||(p.L[a]=new Rmo),p.L[a].q5(l,y))}; nR=function(p,a,l){var y=p.L.get(a);y?y.push(l):p.L.set(a,[l])}; vN=function(p){return g.j$(p.L,function(a){return UM(28,a.bM.L)})}; VP=function(p,a){p=p.element.element;a?p.setAttribute("aria-hidden","true"):p.removeAttribute("aria-hidden")}; NXO=function(p){g.D.call(this);this.counter=[0,0,0,0];this.S=new Uint8Array(16);this.L=16;if(!TXM){var a,l=new Uint8Array(256),y=new Uint8Array(256);var S=1;for(a=0;a<256;a++)l[S]=a,y[a]=S,S^=S<<1^(S>>7&&283);Zh=new Uint8Array(256);oF=T2(256);zb=T2(256);da=T2(256);Gb=T2(256);for(var n=0;n<256;n++){S=n?y[255^l[n]]:0;S^=S<<1^S<<2^S<<3^S<<4;S=S&255^S>>>8^99;Zh[n]=S;a=S<<1^(S>>7&&283);var V=a^S;oF[n]=a<<24|S<<16|S<<8|V;zb[n]=V<<24|oF[n]>>>8;da[n]=S<<24|zb[n]>>>8;Gb[n]=S<<24|da[n]>>>8}TXM=!0}S=T2(44); for(l=0;l<4;l++)S[l]=p[4*l]<<24|p[4*l+1]<<16|p[4*l+2]<<8|p[4*l+3];for(y=1;l<44;l++)p=S[l-1],l%4||(p=(Zh[p>>16&255]^y)<<24|Zh[p>>8&255]<<16|Zh[p&255]<<8|Zh[p>>>24],y=y<<1^(y>>7&&283)),S[l]=S[l-4]^p;this.key=S}; Hv=function(p,a,l){this.triggeringLayoutId=a;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=l||p(this.triggerType)}; Ulr=function(p){var a=a===void 0?RJr:a;var l=p.o6?void 0:LF();l?OjZ(l,a).then(function(y){p.uach=s9r(y!=null?y:"[]");y=B7(p);$W(y,c7,9,p.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; Q9q=function(p){var a=p.S;a&&a.Rc===-1&&(p=p.j.ai())&&Eg(p.info)&&(p=p.info.Rc,a.K="updateLastSliceRequested",a.Rc=p)}; ra=function(p){g.X.call(this,{X:"div",T:"ytp-seek-overlay",N:[{X:"div",A9:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],N:[{X:"div",A9:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],N:[{X:"svg",V:{viewBox:"0 0 22 32",width:"22",height:"24"},N:[{X:"path",V:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{X:"div",T:"ytp-seek-overlay-duration",yY:"{{durationBack}}"}]},{X:"div",A9:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],N:[{X:"div",T:"ytp-seek-overlay-duration",yY:"{{durationForward}}"},{X:"div",A9:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],N:[{X:"svg",V:{viewBox:"0 0 22 32",width:"22",height:"24"},N:[{X:"path",V:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{X:"div",T:"ytp-seek-overlay-message",N:[{X:"div",T:"ytp-seek-overlay-message-icon",yY:"{{icon}}"},{X:"div",T:"ytp-seek-overlay-message-text", yY:"{{text}}"}]}]});var a=this;this.B=p;this.W=0;this.L="hidden";this.K=this.d7("ytp-seek-overlay-animation-back");this.Z=this.d7("ytp-seek-overlay-animation-forward");this.UO=this.d7("ytp-seek-overlay-message");this.G=new g.l_(function(){Yrv(a)},g.sW(this.B.C().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.E(this,this.G);this.B.createClientVe(this.Z,this,28240);this.B.createClientVe(this.K,this,28239);this.B.logVisibility(this.Z,!0);this.B.logVisibility(this.K,!0);this.hide()}; uc=function(){LV.call(this,"Biscotti ID is missing from server")}; wa=function(p,a,l){l=l===void 0?1:l;if(a.Me()){var y=wO(p,l,a,!1);p.cancelPlayback(4,l);p.vI(y);y.F0();l===1&&(p.Ja(1),g.wW(p.Y)&&!cvO(a)?(a.dispose(),p.jb().dispose()):mpo(p))}else a.dispose(),(a=p.tP({playerType:l}))&&a.dispose(),NU(p.y$())&&l===2&&p.NN()}; vG$=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"videodatachange",function(){var l=a.api.getRootNode(),y=a.api.C();g.uD(l,"ytp-delhi-modern");y.D("delhi_modern_web_player_icons")&&g.uD(l,"ytp-delhi-modern-icons");y.D("delhi_modern_web_player_horizontal_volume_controls")&&g.uD(l,"ytp-delhi-horizontal-volume-controls");y.D("delhi_modern_web_player_compact_controls")&&g.uD(l,"ytp-delhi-modern-compact-controls");switch(St(y.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.uD(l, "ytp-delhi-modern-with-luminosity");break;case "difference":g.uD(l,"ytp-delhi-modern-with-difference");break;case "exclusion":g.uD(l,"ytp-delhi-modern-with-exclusion")}l=a.api.isHdr()||a.api.D("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";a.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",l);hMf(a)}); this.events.J(p,"resize",function(){hMf(a)})}; $E=function(p,a,l,y,S,n,V,z,d,G,B,c){bT.call(this,n,p,a,S);this.uT=l;this.j=V;this.sO=z;this.uM=d;this.EO=G;this.G=B;this.W=c;this.zm=u_A(a,l)}; AGO=function(p,a,l,y){if(p.policy.W)!y||!p.L&&p.policy.eb||g.VU(function(){P7(p)}); else{if(p.isSeeking()&&p.targetTime){var S=hUf(p,a,l);if(S!==-1){p.videoTrack.W=!1;p.audioTrack.W=!1;p.L=!0;p.S=0;g.VU(function(){p.loader.jl("seekreason",{reason:"behindMinSq",tgt:S});pf(p,S)}); return}}l?p.videoTrack.w7=!1:p.audioTrack.w7=!1;var n=!p.L;nV(p.videoTrack,p.targetTime)>=0&&nV(p.audioTrack,p.targetTime)>=0&&n?((p.videoTrack.W||p.audioTrack.W)&&p.loader.jl("iterativeSeeking",{status:"done",count:p.seekCount}),p.videoTrack.W=!1,p.audioTrack.W=!1):y&&g.VU(function(){if(p.L||!p.policy.eb)P7(p);else{var V=a.startTime,z=a.duration;if(!p.policy.W){var d=l?p.videoTrack.W:p.audioTrack.W,G=p.videoTrack.G!==-1&&p.audioTrack.G!==-1,B=p.targetTime>=V&&p.targetTime=a.mediaTime?(a.resolve([a.mediaTime,a.id]),p.L.delete(a.id)):(a.delay.dispose(),l=(a.mediaTime-l)*1E3/p.Lz.getPlaybackRate(),a.delay=new g.l_(function(){pJq(p,a)},l/2),a.delay.start()))}; UPE=function(p,a,l,y,S,n,V){var z={layoutId:a,layoutType:l,iT:"core"};return{layoutId:a,layoutType:l,Xh:new Map,layoutExitNormalTriggers:V,layoutExitSkipTriggers:[new vp(p.L,a)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],iT:"core",clientMetadata:new Lc([new apF(y),new ei(S)]),nx:n(z),adLayoutLoggingData:y.adLayoutLoggingData}}; lph=function(){this.S=this.L=""}; g.ytO=function(p,a){return p.M0+"timedtext_video?ref=player&v="+a.videoId}; mZ=function(p,a,l){this.L=p;this.U=!1;a=this.L.DK(a);this.S=new LR(p,a);this.L.free(a.byteOffset);this.j=this.L.DK(l)}; Xw=function(p){return p&&p.length?p.end(p.length-1):NaN}; TVO=function(p,a){function l(v){return y(v.xhr)} function y(v){if(!p.Gm()){v=v?v.status:-1;var I=0,b=((0,g.Ek)()-B).toFixed();b=S.D("html5_use_network_error_code_enums")?{backend:"gvi",rc:v,rt:b}:{backend:"gvi",rc:""+v,rt:b};var O="manifest.net.connect";v===429?(O="auth",I=2):v>200&&(O="manifest.net.badstatus",v===400&&(I=2));return Promise.reject(new g.mm(O,b,I))}} var S,n,V,z,d,G,B,c,r,w,P,F;return g.R(function(v){if(v.L==1){p.fetchType="gvi";S=p.C();var I={};p.RU&&(I.ytrext=p.RU);(z=g.cL(I)?void 0:I)?(n={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:z},V=mP(a,{action_display_post:1})):(n={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},V=a);d={};S.sendVisitorIdHeader&&p.visitorData&&(d["X-Goog-Visitor-Id"]=p.visitorData);(G=St(S.experiments,"debug_sherlog_username"))&&(d["X-Youtube-Sherlog-Username"]=G);Object.keys(d).length> 0&&(n.headers=d);B=(0,g.Ek)();return g.u(v,SmM(uH,V,n).then(void 0,l),2)}c=v.S;if(!c||!c.responseText)return v.return(y(c));p.loading=!1;r=vv(c.responseText);g.cg(p,r,!0);if(p.errorCode)return w={ec:p.errorCode,ed:p.errorDetail,es:p.Aw||""},v.return(Promise.reject(new g.mm("auth",w,2)));if(!p.loading&&!ry(p))return P=p.isAd()?"auth":"manifest.net.retryexhausted",F=p.isAd()?2:1,v.return(Promise.reject(new g.mm(P,{successButUnplayable:"1"},F)));g.lD(v)})}; Fw=function(p,a,l,y,S,n){hI.call(this,p,{X:"div",T:"ytp-ad-skip-button-slot"},"skip-button",a,l,y,S);var V=this;this.Xu=null;this.QY=!1;this.r7=n;this.W=this.api.C().experiments.Cz("enable_modern_skip_button_on_web");this.Kz=!1;this.j=new g.YZ({X:"span",A9:["ytp-ad-skip-button-container"]});this.W&&this.j.element.classList.add("ytp-ad-skip-button-container-detached");g.E(this,this.j);this.j.lT(this.element);this.S=this.U=null;this.Ps=new g.Gq(this.j,500,!1,100,function(){return V.hide()}); g.E(this,this.Ps);this.Hs=new xE(this.j.element,15E3,5E3,.5,.5,this.W);g.E(this,this.Hs);this.hide()}; g.nsq=function(p){var a=p.B.C();if(a.U||tI(a)||a.G||!a.vZ&&!a.TO)return!1;var l=p.B.getPresentingPlayerType();if(l===2||l===3)return!1;p=p.B.getVideoData();if(!p)return!1;l=!p.isLiveDefaultBroadcast||a.D("allow_poltergust_autoplay");l=p.isLivePlayback&&(!a.D("allow_live_autoplay")||!l);a=p.isLivePlayback&&a.D("allow_live_autoplay_on_mweb");return!l||a}; VHF=function(p){var a;g.R(function(l){if(l.L==1)return g.oO("start_client_gcf")||g.oO("delete_gcf_config_db")?g.oO("start_client_gcf")?g.u(l,g.Nb(),3):l.g7(2):l.return();l.L!=2&&((a=l.S)&&g.ci()&&!g.oO("delete_gcf_config_db")?(p.W=!0,p0q(p)):(iTF(p),$cF(p)));return g.oO("delete_gcf_config_db")?g.u(l,nGr(),0):l.g7(0)})}; Jl=function(){}; b0=function(p){this.value=p}; Z_r=function(){var p=MH();return!(!p.webkitSupportsPresentationMode||typeof p.webkitSetPresentationMode!=="function")}; X9$=function(p,a,l,y,S,n,V){a=b0F(a,n,Number(y.prefetchMilliseconds)||0,V);p=a instanceof W?a:LP(p,y,S,a,l);return p instanceof W?p:[p]}; xAZ=function(p,a,l){if(p!=null&&p[gC]===Yc)return p;if(Array.isArray(p)){var y=p[QB]|0;l=y|l&32|l&2;l!==y&&oW(p,l);return new a(p)}}; osZ=function(p){g.X.call(this,{X:"div",T:"ytp-shorts-title-channel",N:[{X:"a",T:"ytp-shorts-title-channel-logo",V:{href:"{{channelLink}}",target:p.C().Sl,"aria-label":"{{channelLogoLabel}}"}},{X:"div",T:"ytp-shorts-title-expanded-heading",N:[{X:"div",T:"ytp-shorts-title-expanded-title",N:[{X:"a",yY:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:p.C().Sl,tabIndex:"0"}}]}]}]});var a=this;this.api=p;this.L=this.d7("ytp-shorts-title-channel-logo");this.channelName=this.d7("ytp-shorts-title-expanded-title"); this.subscribeButton=null;p.createClientVe(this.L,this,36925);this.J(this.L,"click",function(l){a.api.logClick(a.L);g.vd(window,SsE(a));l.preventDefault()}); p.createClientVe(this.channelName,this,37220);this.J(this.channelName,"click",function(l){a.api.logClick(a.channelName);g.vd(window,SsE(a));l.preventDefault()}); EQM(this);this.J(p,"videodatachange",this.pz);this.J(p,"videoplayerreset",this.pz);this.pz()}; d9A=function(p){return g.zv("yt-player-drc-pref")?g.Tz(p,zqM):p}; g.HW=function(p,a,l,y){y=y===void 0?!1:y;LH.call(this);this.mediaElement=p;this.start=a;this.end=l;this.L=y}; g.HH=function(p){return p.oauthToken||p.Ws.b_}; SF=function(p){var a=p.pos;p.pos=0;var l=1E6;C_(p,[408125543,357149030,2807729])&&(l=V6(p));p.pos=a;return l}; Gre=function(p){return Ey(p,1,1)}; BUv=function(p){var a=g.q$("html5-video-player");a&&g.JB(a,"ytp-ad-display-override",p)}; y5A=function(p,a,l,y,S){rd(l,a);y=y||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var n=wd({cttAuthInfo:$Y(a)||void 0},a);l={csn:a,ve:l.getAsJson(),gestureType:y};S&&(l.clientData=S);a==="UNDEFINED_CSN"?P0("visualElementGestured",n,l):p?Lr("visualElementGestured",l,p,n):g.mf("visualElementGestured",l,n)}; ctE=function(p,a,l){a=$h(p,a);l||a?a&&(p.U=!0):p.U=!1;p.K=p.policy.U===2||p.policy.U===3&&p.U}; gto=function(p,a){var l=a.code;l!==void 0&&(s7(p,8),s7(p,l<<1^l>>31));Ym(p,2,a.message)}; wJF=function(p,a){R5.getInstance().estimate().then(function(l){l=Object.assign({},a,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:rt$(l==null?void 0:l.usage),deviceStorageQuotaMbytes:rt$(l==null?void 0:l.quota)});p.L("idbQuotaExceeded",l)})}; Mte=function(p){var a,l,y;return g.R(function(S){if(S.L==1)return g.u(S,Promise.race([p.L,null]),2);a=S.S;var n=pi(p);p.L=n;(l=a)==null||(y=l.Yy)==null||y.dispose();g.lD(S)})}; l8=function(p){if(!Jx(p)&&qN(p,p.NO[QB]|0))throw Error();}; fYO=function(p){function a(){return p.charCodeAt(y++)} var l=p.length,y=0;do{var S=bN(a);if(S===Infinity)break;var n=S>>3;switch(S&7){case 0:S=bN(a);if(n===2)return S;break;case 1:if(n===2)return;y+=8;break;case 2:S=bN(a);if(n===2)return p.substr(y,S);y+=S;break;case 5:if(n===2)return;y+=4;break;default:return}}while(y>>0,jN=Number(p>>BigInt(32)&BigInt(4294967295));else{var a=+(p[0]==="-");jN=tm=0;for(var l=p.length,y=0+a,S=(l-a)%6+a;S<=l;y=S,S+=6)y=Number(p.slice(y,S)),jN*=1E6,tm=tm*1E6+y,tm>=4294967296&&(jN+=Math.trunc(tm/4294967296),jN>>>=0,tm>>>=0);a&&(a=g.t(rk(tm,jN)),p=a.next().value,a=a.next().value,tm=p,jN=a)}}; f5=function(p,a){if(!p.t9[a.id]){var l=p.MO.L[a.id].index.RB(p.Bs,15);l=a.gj&&p.U&&p.U.index.isLoaded()?l||a.gj:l||a.Lx;p.t9[a.id]=l}l=p.t9[a.id];p.r7.has(a.itag)&&(l*=1.5);return l*=Math.max(1,p.VY.Cv()||0)}; e3=function(p,a){a=a===void 0?[]:a;var l={SR:p.SR||"_",i5:p.i5||[],u8:p.u8|0,bS:p.bS,Km:p.Km||function(){}, UK:p.UK||function(n,V){return LHv(n,V,l.Km,l.bS)}},y=l.UK("51",l.i5.concat(a)); mh.call(this,{Zvu:new XJZ(y),errorCount:new yMr(y),eventCount:new YF$(y),X2:new wOE(y),OqT:new TyM(y),x3m:new N1q(y),YO:new BWo(y),z5v:new x9o(y)},l.SR);var S=this;this.hg={Ce:function(){return S.options.i5.concat(S.j).sort(function(n,V){return n-V})}}; this.options=l;this.service=y;this.U=!p.UK;this.L=new X5O(function(){return void S.service.BS()},l.u8); this.addOnDisposeCallback(function(){S.L.dispose();S.U&&S.service.dispose()}); g.Ei(this.j=a.slice())}; nY=function(p,a){this.L=p;this.S=a}; Gt=function(p,a,l,y,S){y=y===void 0?!1:y;S=S===void 0?!1:S;CR.call(this,l);this.isLive=y;this.K=!!S;this.levels=this.S(p,a);this.j=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; Krq=function(p){return new oS(p)}; E$=function(p,a,l){if(l===void 0?0:l)p.G=!0;++p.W;l=6E4*Math.pow(2,p.W);l=(0,g.Ek)()+l;p.U.set(a.info.id,l)}; cIo=function(p){this.experiments=p;this.L=17;this.U=13E4;this.G=.5;this.j=this.S=!1;this.Xu=this.D("html5_use_histogram_for_bandwidth");this.W=g.sW(this.experiments,"html5_auxiliary_estimate_weight");this.UO=g.sW(this.experiments,"html5_stall_factor")||1;this.K=g.sW(this.experiments,"html5_check_for_idle_network_interval_ms");this.Z=this.experiments.Cz("html5_trigger_loader_when_idle_network");this.Sl=this.experiments.Cz("html5_sabr_fetch_on_idle_network_preloaded_players")}; FHM=function(p,a){p=g.t(p.Ag.entries());for(var l=p.next();!l.done;l=p.next()){var y=g.t(l.value);l=y.next().value;y=y.next().value;if(a===y.cueRangeId)return l}return""}; g.JB=function(p,a,l){l?g.uD(p,a):g.b6(p,a)}; EsE=function(p,a){return(p=p.flags.get(""+a))?p.toString():""}; Cjh=function(p){p=k7(p);p.gelInfos||(p.gelInfos={});return p.gelInfos}; KHr=function(p){if(!p.element)return!1;var a=p.element,l=p.S.L.U,y=LO().L.L;p.j=new l.IntersectionObserver(EU(y,function(S){return ZW(p,S)}),vso); y=EU(y,function(){p.j.unobserve(a);p.j.observe(a);ZW(p,zu(p))}); l.ResizeObserver?(p.Z=new l.ResizeObserver(y),p.Z.observe(a)):l.MutationObserver&&(p.K=new g.dD.MutationObserver(y),p.K.observe(a,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));p.j.observe(a);ZW(p,zu(p));return!0}; v7=function(){sx.apply(this,arguments)}; i6=function(p,a){var l=l===void 0?{}:l;p={method:a===void 0?"POST":a,mode:VH(p)?"same-origin":"cors",credentials:VH(p)?"same-origin":"include"};a={};for(var y=g.t(Object.keys(l)),S=y.next();!S.done;S=y.next())S=S.value,l[S]&&(a[S]=l[S]);Object.keys(a).length>0&&(p.headers=a);return p}; yKr=function(p){return APh(p,!0)}; WQe=function(p,a,l){if(p.D("html5_optimality_defaults_chooses_next_higher")&&l)for(p=a.L.videoInfos,a=1;a0))){var l=eqe(p);l=HO(p.policy.j,p.L.info,Da(p),l,p.policy.Yv);ip(p,l)}if(a.info.type===1){if(p.Fz){To(p,Error("Woffle: Expect INIT slices to always start us off"));return}p.initRange=FY(0,a.S.totalLength)}else if(a.info.type===2)p.Fz&&p.Fz.type===1||To(p,Error("Woffle: Index before init")),p.indexRange=FY(p.initRange.end+1,a.S.totalLength);else if(a.info.type===3){if(!p.Fz){To(p,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(p.Fz.type===3&&!PL(p.Fz,a.info)&&(p.Sl=[],a.info.Rc!==RUZ(p.Fz)||a.info.S!==0))return;if(a.info.j){l=g.t(p.Sl);for(var y=l.next();!y.done;y=l.next())b_r(p,y.value);p.Sl=[]}else{p.Sl.push(a);p.Fz=a.info;return}}else{To(p,Error("Woffle: Unexpected slice type"));return}p.Fz=a.info;b_r(p,a);$kq(p)}}; Mw=function(){return jj||Wy?!!Si&&Si.brands.length>0:!1}; H_$=function(p,a,l,y,S){var n=l.DRIFT_FROM_HEAD_MS&&!Number.isNaN(l.DRIFT_FROM_HEAD_MS)?Math.trunc(l.DRIFT_FROM_HEAD_MS):0,V=Ipr.exec(a);V=V!=null&&V.length>=2?V[1]:"";var z=Rqh.test(a),d=ua$.exec(a);d=d!=null&&d.length>=2?d[1]:"";var G=O_v.exec(a);G=G!=null&&G.length>=2&&!Number.isNaN(Number(G[1]))?Number(G[1]):1;var B=krE.exec(a);B=B!=null&&B.length>=2?B[1]:"0";var c=lN(p.player.C().M0),r=p.player.getVideoData(1),w=g.Ha(r.Xu,!0),P="BISCOTTI_ID"in l?l.BISCOTTI_ID:"";MHE(p,w,a,P.toString(),p.player.C(), r);r={splay:!1,lactMilliseconds:l.LACT.toString(),playerHeightPixels:Math.trunc(l.P_H),playerWidthPixels:Math.trunc(l.P_W),vis:Math.trunc(l.VIS),signatureTimestamp:20354,autonavState:An(p.player.C())};y&&(y={},m9F(y,l.YT_REMOTE)&&(r.mdxContext=y));if(y=tHO.includes(c)?void 0:g.cB("PREF")){for(var F=y.split(RegExp("[:&]")),v=0,I=F.length;v1&&b[1].toUpperCase()==="TRUE"){w.user.lockedSafetyMode=!0;break}}r.autoCaptionsDefaultOn= jZo(y)}a=WHr.exec(a);(a=a!=null&&a.length>=2?a[1]:"")&&d&&(w.user.credentialTransferTokens=[{token:a,scope:"VIDEO"}]);a={contentPlaybackContext:r};V={adBlock:Math.trunc(l.AD_BLOCK),params:V,breakIndex:G,breakPositionMs:B,clientPlaybackNonce:l.CPN,topLevelDomain:c,isProxyAdTagRequest:z,context:w,adSignalsInfoString:d1(GG(P.toString())),overridePlaybackContext:a};S!==void 0&&(V.cueProcessedMs=Math.round(S).toString());d&&(V.videoId=d);l.LIVE_TARGETING_CONTEXT&&(V.liveTargetingParams=l.LIVE_TARGETING_CONTEXT); l.AD_BREAK_LENGTH&&(V.breakLengthMs=Math.trunc(l.AD_BREAK_LENGTH*1E3).toString());n&&(V.driftFromHeadMs=n.toString());V.currentMediaTimeMs=Math.round(p.player.getCurrentTime(1)*1E3);(p=p.player.getGetAdBreakContext())&&(V.getAdBreakContext=p);return V}; D9M=function(p){var a,l,y=(a=p.L)==null?void 0:(l=a.bannerData)==null?void 0:l.itemData,S,n;if(!(y!=null&&y.priceReplacementText||p.B.D("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(y==null?0:(S=y.dealsData)==null?0:(n=S.sales)==null?0:n.originalPrice)){var V,z;return y==null?void 0:(V=y.dealsData)==null?void 0:(z=V.sales)==null?void 0:z.originalPrice}return null}; i_q=function(p,a){this.S=p;this.U=a;this.L=new f1r(p)}; NU$=function(p){if(p.r7)return["f"];if(g.g8("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var a=["9h","9","h","8"];p.Kt&&a.push("1e");a=a.concat(["(h","(","H","*"]);p.Bs&&(a.unshift("1"),a.unshift("1h"));p.SS&&a.unshift("h");p.Sl&&(a=(TU$[p.Sl]||[p.Sl]).concat(a));return a}; g.OS=function(p,a,l,y){this.left=p;this.top=a;this.width=l;this.height=y}; YUo=function(p,a,l){var y=String(g.dD.location.href);return y&&p&&a?[a,sZF(AXF(y),p,l||null)].join(" "):null}; g.RF=function(p){this.g1=p}; XA=function(p,a){this.S=p;this.L=a+"::"}; U9r=function(p,a){Ym(p,1,a.name);Ym(p,2,a.value)}; hqO=function(p,a,l,y,S){if(!a.L.Dg()){if(!(S=l===0||!!a.U.length&&a.U[0]instanceof dw))a:{if(a.U.length&&(S=a.U[0],S instanceof Zl&&S.rE&&S.GD)){S=!0;break a}S=!1}S||p.policy.L||Fg(a);return l}var n=nV(a,l);if(!isNaN(n))return n;if(p.loader.UA(l*1E3))return l;S.U1?p.policy.Cs&&(p=L0(p.loader,a),yxO(a.j,l+p,!0)):(a.FG(),p.loader.Dv(!1,"sta_"+ +a.L.info.Qh()));return y&&(p=RX(y.ea(),l),!isNaN(p))?(Ed(a,p+QZO,S),l):Ed(a,l,S)}; p8M=function(p,a,l,y,S){l=l?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var n=Ga(p.S.get(),l);a=new oJ(p.L,a);var V=[new D6(p.L,n)];p=[new $1(p.L,n)];return{slotId:n,slotType:l,slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:V,slotExpirationTriggers:p,iT:"core",clientMetadata:new Lc([new i8(S({slotId:n,slotType:l,slotPhysicalPosition:1,iT:"core",slotEntryTrigger:a,slotFulfillmentTriggers:V,slotExpirationTriggers:p}))]),adSlotLoggingData:y}}; i1Z=function(p,a){gD(p,2,a.CR);gD(p,5,a.encryptedClientKey);gD(p,6,a.iv);gD(p,7,a.gR);AP(p,10,a.A$O);AP(p,13,a.zC);AP(p,14,a.OX);gD(p,16,a.R5Y);AP(p,17,a.Idv)}; AtM=function(p){var a={},l=window.h5vcc;a.hwConcurrency=navigator.hardwareConcurrency;p.L&&(a.cpe=p.L.message);p.S&&(a.cpt=p.S.time,a.cps=p.S.state);if(l==null?0:l.cVal)a.cb2s=l.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),a.cb5s=l.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),a.cb30s=l.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return a}; uu=function(p){if(!p.nextVideo||!p.policy.j)if(p.L.isLocked())p.nextVideo=p.L.L<=360?p.MO.L[p.j[0].id]:p.MO.L[g.Jt(p.j).id];else{for(var a=Math.min(p.Z,p.j.length-1),l=JD(p.w7),y=f5(p,p.S.info),S=l/p.policy.w7-y;a>0&&!(f5(p,p.j[a])<=S);a--);for(l=l/p.policy.Sl-y;a=l);a++);p.nextVideo=p.MO.L[p.j[a].id];p.Z=a}}; pr=function(p){var a;return((a=p.audio)==null?void 0:a.audioQuality)==="AUDIO_QUALITY_HIGH"}; gBv=function(p,a){this.S=this.L=0;this.L=a.x-p.x;this.S=a.y-p.y}; gsr=function(p){dt.call(this,"measurable_impression",p)}; Ymr=function(p){var a=navigator.mediaCapabilities;if(a==null||!a.decodingInfo||p.h9==="f")return Promise.resolve();var l={type:p.audio&&p.video?"file":"media-source"};p.video&&(l.video={contentType:p.mimeType,width:p.video.width||640,height:p.video.height||360,bitrate:p.Lx*8||1E6,framerate:p.video.fps||30});p.audio&&(l.audio={contentType:p.mimeType,channels:""+(p.audio.numChannels||2),bitrate:p.Lx*8||128E3,samplerate:p.audio.sampleRate||44100});return a.decodingInfo(l).then(function(y){p.S=y})}; L7=function(p,a,l){var y=new Tf(0,0,0,0);this.time=p;this.volume=null;this.U=a;this.L=y;this.S=l}; g.Mk=function(p){p=lN(p.M0);return p==="www.youtube-nocookie.com"?"www.youtube.com":p}; zK=function(p){this.value=p}; Jto=function(p,a,l){var y,S=((y=l.adSlots)!=null?y:[]).map(function(z){return g.T(z,Uz)}); if(l.jI)if(PE(a.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))$g(p.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},a.slotId); else{if(p.EO.get().B.C().D("h5_check_forecasting_renderer_for_throttled_midroll")){var n=l.N$.filter(function(z){var d;return((d=z.renderer)==null?void 0:d.clientForecastingAdRenderer)!=null}); n.length!==0?qmo(p.U,n,S,a.slotId,l.ssdaiAdsConfig):$g(p.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},a.slotId)}else $g(p.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},a.slotId); XYO(p.j,a)}else{var V;y={gI:Math.round(((n=PE(a.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:n.gI)||0),WI:(V=PE(a.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:V.WI};n=PE(a.clientMetadata,"metadata_type_cue_point");qmo(p.U,l.N$,S,a.slotId,l.ssdaiAdsConfig,y,n)}}; E7=function(p){for(var a=0,l=0;l>>0;return a}; g.kE=function(p,a,l,y,S,n,V,z,d,G){z=z===void 0?!1:z;g.D.call(this);var B=this;this.Lz=p;this.schedule=a;this.policy=l;this.MO=y;this.Xu=d;this.bf=G;this.Hs=this.Ic=null;this.OO=this.Kz=this.r7=this.Bs=0;this.fU=this.sF=this.isSuspended=!1;this.Sb="";this.Ae={};this.va=NaN;this.Ha=0;this.Z=null;this.oo=this.nz=!1;this.AO=0;this.yQ=!1;this.t9=this.eb=0;this.EC=null;this.Y0=!1;this.Ho=function(){return B.Lz.Ho()}; this.timing=new fpZ(this.bf);this.Sl=new Cx(this.schedule,this.policy);this.O6=new g.l_(this.e5,0,this);this.qc=new g.l_(this.e5,this.policy.vZ,this);this.Oy=new g.l_(this.e5,1E3,this);this.Ct=new g.l_(this.e5,void 0,this);this.Yv=new g.l_(function(){B.isSuspended||B.e5()},1E4,this); this.Kt=new g.l_(this.v39,250,this);this.G=this.currentTime=NaN;this.V8=new Dx(5);this.QY=this.timestampOffset=NaN;this.logger=new g.iF("dash");this.o4=Infinity;this.hg={qDT:function(){return B.R9}, P4I:function(){return B.U}, getAudioTrack:function(){return B.audioTrack}, opl:function(){return B.videoTrack}, hy9:function(){return B.w7}, getManifest:function(){return B.MO}, TIu:function(){return B.S}, e5:function(){B.e5()}, A7:function(){B.Bs=0;B.A7()}, Iom:function(r){return BH(B,B.videoTrack,B.Ic.S,r)}}; p=d&&d.vx();d&&(pFZ(d,this.MO,this.policy),this.QY=Date.now());this.L=new aRr(this,this.Sl,l,this.MO,S,p);l=y$o(this.L,n,V&&V.id);this.audioTrack=new mt(this,this.policy,l.audio,this.timing);this.videoTrack=new mt(this,this.policy,l.video,this.timing);this.videoTrack.j.Bs=this.audioTrack.YG();this.Ps={updateend:this.Gk,error:this.fNv};g.E(this,this.O6);g.E(this,this.qc);g.E(this,this.Oy);g.E(this,this.Ct);g.E(this,this.Yv);l=this.policy.Ze&&this.policy.BW?!EBr(this.videoTrack.L.info):!1;this.vZ=lRr({Db:this.policy.Z.Db|| l,BW:this.policy.BW&&!l,Lg:this.policy.Lg});this.K=yjo(this,this.policy,this.vZ,this.schedule,this.V8,function(r,w){return Hnv(B,r,w)}); this.U=new SqM(this,this.MO,this.policy,this.videoTrack,this.audioTrack,z);this.policy.Ps&&this.policy.S&&(this.w7=new Tpq(this.policy.G,function(r,w){B.jl(r,w)})); this.R9=new np(this,this.MO,this.videoTrack,this.audioTrack,this.policy);z=this.policy.fl?this.Lz.getVideoData().GD:null;this.W=new Oy(this,this.policy,this.videoTrack,this.audioTrack,this.Ae,this.U,this.timing,this.Sl,this.schedule,this.MO,this.L,this.K,l,z);g.E(this,this.W);this.j=new r9(this,this.policy,this.videoTrack,this.audioTrack,this.MO,S,Fh(this.Lz.getVideoData()),V==null?void 0:V.id);g.E(this,this.j);R5o(this.j,n);this.S=new $9o(this.Lz,this,this.policy,this.audioTrack,this.videoTrack, this.MO,this.schedule,this.L,this.j,this.timing,this.U,this.w7);g.E(this,this.S);this.UO=this.Lz.TR.Bf.a8;this.policy.W||n_o(this);if(this.policy.qc){var c;this.VY=new Hl(this.videoTrack.L.index,(c=this.Lz.getVideoData().clientPlaybackNonce)!=null?c:"",this.Lz,this.policy.yQ);this.policy.yQ===3&&(this.Fh=new g.l_(this.jt,200,this),this.Fh.start(),g.E(this,this.Fh))}}; Vsr=function(p){for(var a=0,l=0,y={};l/g,">").replace(/"/g,""").replace(/'/g,"'");return dG(p)}; g.xj=function(p){var a=new AJ(new NN([tY(decodeURIComponent(p))]));p=Pr(a,2);a=FW(a,4);var l=dKq[a];if(typeof l==="undefined")throw p=new g.kc("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:a}),g.iO(p),p;return{Ni:a,entityType:l,entityId:p}}; pF=function(p,a,l){return p=Dm(p,a[0],a[1],l?1:2)}; B9q=function(p,a){var l=null,y=p.text;a&&(y=GdE(y)||y);p.bold&&(l=tL("B",null,l||y));p.italics&&(l=tL("I",null,l||y));p.strikethrough&&(l=tL("STRIKE",null,l||y));p.navigationEndpoint&&g.T(p.navigationEndpoint,g.vX)&&(a=g.T(p.navigationEndpoint,g.vX),l=tL("A",null,l||y),g.BR(l,a.url),a.target=="TARGET_NEW_WINDOW"&&(l.target="_blank"),p=p.navigationEndpoint.loggingUrls)&&(p=p.map(function(S){return S.baseUrl}),Xqh().register(l,p),g.uD(l,"ytp-ad-has-logging-urls")); return l||tL("SPAN",null,y)}; Og=function(p,a,l){if(p.fv(l)&&(l=l.getVideoData(),!j5(p))){p=p.I4;for(var y=g.t(p.S),S=y.next();!S.done;S=y.next())if(S=S.value,l.a4===S.a4){a+=S.QL/1E3;break}y=a;p=g.t(p.S);for(S=p.next();!S.done;S=p.next()){S=S.value;if(l.a4===S.a4)break;var n=S.QL/1E3;if(n=0)throw Error("Database name cannot contain ':'");}; la=function(p,a){g.X.call(this,{X:"button",A9:["ytp-button","ytp-jump-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},N:[a>0?{X:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},N:[{X:"path",A9:["ytp-circle-arrow","ytp-svg-fill"],V:{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"}}, {X:"text",A9:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"7.05",y:"15.05"}}]}:{X:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},N:[{X:"path",A9:["ytp-circle-arrow","ytp-svg-fill"],V:{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"}}, {X:"text",A9:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"6.5",y:"15"}}]}]});var l=this;this.B=p;this.L=a;this.S=new g.l_(function(){l.U?(l.U=!1,l.S.start()):l.element.classList.remove("ytp-jump-spin","backwards")},250); this.U=!1;(a=a>0)?this.B.createClientVe(this.element,this,36843):this.B.createClientVe(this.element,this,36844);var y=g.ug(a?"Avanzar $SECONDS segundos. (\u2192)":"Retroceder $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.L).toString()});this.B.D("player_tooltip_data_title_killswitch")?this.update({title:y,"data-title-no-tooltip":y,"aria-keyshortcuts":a?"\u2192":"\u2190"}):this.update({"tooltip-title":y,"data-title-no-tooltip":y,"aria-keyshortcuts":a?"\u2192":"\u2190"});this.j=this.element.querySelector(".ytp-jump-button-text"); this.j.textContent=Math.abs(this.L).toString();this.listen("click",this.onClick,this);OC(p,this.element,this)}; Zwq=function(p,a,l){var y=g.sW(a.experiments,"bg_vm_reinit_threshold");(!Jg||(0,g.Ek)()-Jg>y)&&VfZ(p,l).then(function(S){S&&(S=S.botguardData)&&g.KUr(S,a)},function(S){p.Gm()||(S=jl(S),p.jl("attf",S.details))})}; ojM=function(p,a,l,y,S){if(!g.T(p.renderingContent,J0))return new W("AdsEngagementPanelSectionListViewModel is missing");var n={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,iT:"core"};a=L3(p,a,l);return a instanceof W?a:Object.assign({},n,{renderingContent:p.renderingContent,Xh:new Map([])},a,{nx:kU(y,S)(n),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Lc([])})}; KAf=function(p,a){a=Math.min(a,p.info.U);var l=p.S.split(a),y=l.CO;l=new FD(new EL(p.info.type,p.info.L,p.info.range,p.info.K,p.info.Rc,p.info.startTime,p.info.duration,p.info.S,a,!1,p.info.CC,p.info.clipId),l.HV);l.j=p.j;l.U=p.U;a=new FD(new EL(p.info.type,p.info.L,p.info.range,p.info.K,p.info.Rc,p.info.startTime,p.info.duration,p.info.S+a,p.info.U-a,p.info.j,p.info.CC,p.info.clipId),y);a.j=p.j;a.U=p.U;return[l,a]}; xw=function(p,a){var l,y=z9O(p,(l=a.L)==null?void 0:l.videoInfos);l=p.Lz.getPlaybackRate();return l>1&&y?(p=hZv(p.Y.W,a.L.videoInfos,l),new NE(0,p,!0,"o")):new NE(0,0,!1,"o")}; d1h=function(p){this.NO=Dm(p)}; Vh=function(p,a,l,y,S,n,V){var z=z===void 0?new Sj$(function(){var d=p.C(),G=p.getVideoData(1);return g.WH(d,G?g.HH(G):"")},function(){return p.C().pageId},function(){return p.C().w7},function(){var d; return(d=p.C().datasyncId)!=null?d:""},function(){return p.C().experiments}):z; this.B=p;this.S=a;this.dG=l;this.ac=y;this.Tn=S;this.EO=n;this.Pl=V;this.j=z;this.X1=null;this.L=new Map;this.U=new G$o(z,this.EO)}; WL=function(p,a,l){p.B.jl(a,l);Afr(p)}; KFv=function(p){return{startTicks:FW(p,1),wD:FW(p,2),timescale:FW(p,3)}}; BTA=function(p){var a;(a=p.WZ)==null||a.get().uQ(PE(p.slot.clientMetadata,"metadata_type_cue_point").identifier)}; CR=function(p){g.qu.call(this);this.L=null;this.U=new u$v;this.L=null;this.G=new Set;this.crossOrigin=p||""}; g.yL=function(p,a,l){g.D.call(this);this.j=l!=null?p.bind(l):p;this.N0=a;this.U=null;this.L=!1;this.S=0;this.zR=null}; UfE=function(p){p=p===void 0?null:p;return p!=null&&(p=p.thumbnail,p!=null&&p.thumbnails!=null&&p.thumbnails.length!=0&&p.thumbnails[0].url!=null)?g.G1(p.thumbnails[0].url):""}; g.SJ=function(p,a){g.X.call(this,{X:"button",A9:["ytp-play-button","ytp-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},yY:"{{icon}}"});this.B=p;this.L=null;this.transition=new tv;this.tooltip=a.ZI();g.E(this,this.transition);p.createClientVe(this.element,this,36842);p.logVisibility(this.element,!0);this.J(p,"fullscreentoggled",this.onVideoDataChange); this.J(p,"presentingplayerstatechange",this.onStateChange);this.J(p,"videodatachange",this.onVideoDataChange);this.cZ(p.getPlayerStateObject());this.listen("click",this.It,this);this.addOnDisposeCallback(g.gh(a.ZI(),this.element))}; C_=function(p,a){for(var l=0;l=1024)throw Error("pvtlmt");for(var d in z)n= +d,n1024)throw Error("spvt");S=S&-8380417|(d&1023)<<13}}}S|=64;y===0&&(S|=2048);oW(p,S);return p}; RQ=function(p){return p.D("html5_live_head_playable")&&Qe(p)&&p.Ws.UO==="yt"?p.isLiveHeadPlayable:p.isLivePlayback}; jOZ=function(p){return String(p).replace(/\-([a-z])/g,function(a,l){return l.toUpperCase()})}; VL=function(p,a,l){p.B.D("delhi_modern_web_player")?a.lT(p.U.d7(nE[l])):a.lT(p.U.element)}; hQ=function(){if(!kJ())throw Error();}; LHv=function(p,a,l,y){p=caA(TMr(FYr(new w0(1828,"0"),p),new ra$)).w2();a.length&&w1r(p,AJZ(new Zqr,a));y!==void 0&&(p.bS=y);var S=new $1r(1828,"","",!1,"",p.build());g.E(S,p);var n=new g.Rr({flush:function(V){try{S.flush(V)}catch(z){l(z)}}}); n.addOnDisposeCallback(function(){setTimeout(function(){try{n.BS()}finally{S.dispose()}})}); n.U=1E5;n.flushInterval=3E4;n.L.setInterval(3E4);return n}; HB=function(p){return P7M[p]||"LATENCY_ACTION_UNKNOWN"}; ae=function(p){var a=pu(p.ownerDocument);a&&p.setAttribute("nonce",a)}; UM=function(p,a,l,y,S,n){if((p|5)>>3==1){TD(5,a);var V=a[Z[41]]+(a[Z[41]]?Z[18]:Z[39])+a[Z[23]]+a[Z[2]];if(Na(18,a)){var z=[];g.Re(a[Z[8]],function(G,B){G!==null&&z[Z[11]](B+Z[24]+G)}); V+=Z[87]+z[Z[65]](Z[84])}var d=V}(p&117)==p&&(d=l(y,S,n));(p+9&61)>=p&&(p+1^29)=3&&(p.oX=(p.oX<=3)if(l=yp(p,p.Ba-p.xC,p.wP-3),p.xe-=p.wP,p.wP<=p.nI&&p.xe>=3){p.wP--;do p.Ba++,p.oX=(p.oX<=p.U&&p.BS()}; g.Bx=function(p){var a=p.api.QT()?32:16;a=p.K/2+a;p.next.element.style.bottom=a+"px";p.previous.element.style.bottom=a+"px";a=p.scrollPosition;var l=p.containerWidth-p.suggestionData.length*(p.j+8);g.JB(p.element,"ytp-scroll-min",a>=0);g.JB(p.element,"ytp-scroll-max",a<=l)}; h9h=function(p,a,l){for(var y=p.K,S=p.L[0],n=p.L[1],V=p.L[2],z=p.L[3],d=p.L[4],G=p.L[5],B=p.L[6],c=p.L[7],r,w,P,F=0;F<64;)F<16?(y[F]=P=a[l]<<24|a[l+1]<<16|a[l+2]<<8|a[l+3],l+=4):(r=y[F-2],w=y[F-15],P=y[F-7]+y[F-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),y[F]=P),r=c+cx[F]+P+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&G^~d&B),w=((S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10))+(S&n^S&V^n&V),c=r+w,z+=r,F++,F<16?(y[F]=P=a[l]<<24|a[l+1]<<16|a[l+2]<<8|a[l+3],l+=4):(r= y[F-2],w=y[F-15],P=y[F-7]+y[F-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),y[F]=P),r=B+cx[F]+P+((z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7))+(z&d^~z&G),w=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&S^c&n^S&n),B=r+w,V+=r,F++,F<16?(y[F]=P=a[l]<<24|a[l+1]<<16|a[l+2]<<8|a[l+3],l+=4):(r=y[F-2],w=y[F-15],P=y[F-7]+y[F-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),y[F]=P),r=G+cx[F]+P+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&z^ ~V&d),w=((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(B&c^B&S^c&S),G=r+w,n+=r,F++,F<16?(y[F]=P=a[l]<<24|a[l+1]<<16|a[l+2]<<8|a[l+3],l+=4):(r=y[F-2],w=y[F-15],P=y[F-7]+y[F-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),y[F]=P),r=d+cx[F]+P+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&V^~n&z),w=((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+(G&B^G&c^B&c),P=c,c=z,z=P,P=B,B=V,V=P,P=G,G=n,n=P,d=S+r,S=r+w,F++;p.L[0]=S+p.L[0]|0;p.L[1]=n+p.L[1]|0;p.L[2]=V+p.L[2]|0;p.L[3]= z+p.L[3]|0;p.L[4]=d+p.L[4]|0;p.L[5]=G+p.L[5]|0;p.L[6]=B+p.L[6]|0;p.L[7]=c+p.L[7]|0}; bnh=function(p,a,l){var y=[];for(a=Jwf(p,a);al)break}return y}; WjE=function(p){p.Bs||(p.Bs=(0,g.Ek)(),g.Pf("ovfs_rp",p.Bs,p.L))}; g.RC=function(p){g.D.call(this);this.Fh={};this.TO={};this.element=this.createElement(p)}; Aah=function(p){var a=/codecs="([^"]*)"/.exec(p.mimeType);return a&&a[1]?a[1]+" ("+p.itag+")":p.itag}; gje=function(p,a,l,y,S){wt.call(this,"banner-image",p,a,l,y,S)}; FEE=function(p){var a,l;return g.R(function(y){if(y.L==1)return g.u(y,IM(p),2);a=y.S;l=(0,g.Ek)()-2592E6;return g.u(y,g.Nk(a,["LogsRequestsStore"],{mode:"readwrite",Gn:!0},function(S){return g.JA(S.objectStore("LogsRequestsStore"),{},function(n){if(n.getValue().timestamp<=l)return n.delete().then(function(){return g.Lt(n)})})}),0)})}; dP=function(){g.o4("_lact",window)==null&&(okh(),g.o4("_lact",window));var p=Date.now();g.M8("_lact",p,window);g.o4("_fact",window)==-1&&g.M8("_fact",p,window);(p=g.o4("ytglobal.ytUtilActivityCallback_"))&&p()}; DA=function(p){re.call(this,"onesie");this.kE=p;this.L={};this.j=!0;this.U=null;this.queue=new YKo(this);this.W={}}; g.xV=function(p){return RQ(p)&&!p.allowLiveDvr}; pzO=function(p,a){function l(){Ma({writeThenSend:!0},p,a)} p=p===void 0?!1:p;a=a===void 0?200:a;var y=dv(p,a),S=y===aeO||y===yZO?5E3:qKM;g.oO("web_gel_timeout_cap")&&!y.L&&(S=nx(function(){l()},S),y.L=S); Pq(y.S);S=g.ZM("LOGGING_BATCH_TIMEOUT",g.hh("web_gel_debounce_ms",1E4));g.oO("shorten_initial_gel_batch_timeout")&&lj&&(S=JaZ);S=nx(function(){g.hh("gel_min_batch_size")>0?Tg().getSequenceCount({cttAuthInfo:void 0,isJspb:p,tier:a})>=fWM&&l():l()},S); y.S=S}; xuf=function(){}; g.we=function(p){this.g1=p}; lSZ=function(p){var a;return((a=aSM.get(p))==null?void 0:a.uj)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; g.rU=function(p){return!!p.L&&vkM(p.L)}; $8=function(p){var a={};a.itag=p.L.info.itag;a.type=""+p.type;a.src=""+p.source;a.segsrc=p.K;a.seg=String(p.Rc);p.range&&(a.range=p.range.start+p.S+"-"+(p.range.start+p.S+p.U-1));a.time=p.W.toFixed(1)+"-"+(p.W+p.Z).toFixed(1);a.off=String(p.S);a.len=String(p.U);p.j&&(a.end="1");p.I7()&&(a.eos="1");p.clipId&&(a.cid=p.clipId);return a}; EGr=function(p){QH.call(this,p);this.L=new Px(this.api);g.E(this,this.L);g.uW(this.api,this.L.element,4)}; x1$=function(p,a,l){a=a.dialog&&g.T(a.dialog,y8M)||null;a==null?g.iO(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(p.L=new Sfo(p.api,p.layoutId,p.interactionLoggingClientData,p.ZV,p.j),g.E(p,p.L),p.L.init(y_("ad-info-dialog"),a,l),p.L.lT(p.j),p.L.subscribe("d",function(){return p.publish("f")}),p.L.subscribe("c",function(){return p.publish("e")}))}; Xo=function(p,a,l){l=l===void 0?!1:l;var y,S,n,V;g.R(function(z){if(z.L==1){y=p.C();if(l&&(!g.Ry(y)||oB(a)!=="embedded")||a.lF||oB(a)!=="adunit"&&(g.g5(y)||y5(y)||g.dB(y)||g.sf(y)||g.PD(y)||lm(y)==="WEB_CREATOR"))return z.return();S=g.WH(y,g.HH(a));return S.L?g.u(z,S.L,3):(n=S.getValue(),z.g7(2))}z.L!=2&&(n=z.S);V=n;return z.return(nI$(p,a,V))})}; FdE=function(p){QH.call(this,p);this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"videoready",function(a){if(p.getPresentingPlayerType()===1){var l,y,S={playerDebugData:{pmlSignal:!!((l=a.getPlayerResponse())==null?0:(y=l.adPlacements)==null?0:y.some(function(n){var V;return n==null?void 0:(V=n.adPlacementRenderer)==null?void 0:V.renderer})), contentCpn:a.clientPlaybackNonce}};g.mf("adsClientStateChange",S)}})}; Zxo=function(p,a){g.ka.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:a,foundObjectStores:p},V3o.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Zxo.prototype)}; EY=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-ad-feedback-dialog-background",N:[{X:"div",T:"ytp-ad-feedback-dialog-container",N:[{X:"div",T:"ytp-ad-feedback-dialog-form",V:{role:"dialog",tabindex:"-1"},N:[{X:"div",T:"ytp-ad-feedback-dialog-title",N:[{X:"span",yY:"{{title}}"}]},{X:"span",T:"ytp-ad-info-dialog-feedback-options-title",yY:"{{reasonsTitle}}"},{X:"div",T:"ytp-ad-info-dialog-feedback-options"},{X:"div",T:"ytp-ad-feedback-dialog-confirm-container",N:[{X:"button",T:"ytp-ad-feedback-dialog-cancel-button", yY:"{{cancelLabel}}"},{X:"button",T:"ytp-ad-feedback-dialog-confirm-button",yY:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",a,l,y);this.j=[];this.L=null;this.W=this.d7("ytp-ad-feedback-dialog-cancel-button");this.Z=this.d7("ytp-ad-feedback-dialog-confirm-button");this.Xu=this.d7("ytp-ad-info-dialog-feedback-options");this.QY=this.d7("ytp-ad-feedback-dialog-title");this.U=this.S=null;this.hide()}; Mhr=function(p){var a=p.api.getRootNode();if(g.h(p.api.getPlayerStateObject(),256)||g.h(p.api.getPlayerStateObject(),32)||g.h(p.api.getPlayerStateObject(),16))var l=p.K;else if(p.t9&&p.api.getPlayerStateObject().isPaused()){var y;l=(((y=p.W)==null?void 0:y.element.clientWidth)||0)*.5625/3*p.Hs||p.Bs}else l=p.Bs;p.K=l;a.style.setProperty("--ytp-grid-peek-height",p.K+"px");g.JB(a,"ytp-disable-bottom-gradient",p.K<=12&&p.G===0)}; g.lX=function(p){return(!("button"in p)||typeof p.button!=="number"||p.button===0)&&!("shiftKey"in p&&p.shiftKey)&&!("altKey"in p&&p.altKey)&&!("metaKey"in p&&p.metaKey)&&!("ctrlKey"in p&&p.ctrlKey)}; AMF=function(p){return p!=null}; r8A=function(p,a,l,y,S,n,V,z){var d=oIF(p,n,n+S);p.Z&&p.wG({adaftto:1});l||p.wG({missadcon:1,enter:n,len:S,aid:z});p.j&&!p.j.Hd&&(p.j.Hd=z);p.bK&&p.wG({adfbk:1,enter:n,len:S,aid:z});var G=p.playback;n>V&&LE(p,{reason:"enterTime_greater_than_return",QL:n,fh:V});var B=G.hP()*1E3;nG&&LE(p,{reason:"parent_return_greater_than_content_duration",fh:V,GAT:G});(G=zQr(p.L,n))&&G.fh>n&&dzZ(p,a.video_id||"", n,V,G);if(d&&G)for(B=0;Ba?1:p0&&w&&r&&(B=[V,l],m=r.concat(w).filter(function(H){return H})); if(m.length&&!a.SS){Cu(m,B);if(d){d=[];a=g.t(m);for(y=a.next();!y.done;y=a.next())d.push(y.value.itag);n({hbdfmt:d.join(".")})}return o7(new IV(m,S,G,p))}m=NU$(a);m=g.rA(m,z);if(!m){if(c[V])return n=c[V],Cu(n),o7(new IV(n,S,G,p));d&&n({novideo:1});return YH()}a.vZ&&(m==="1"||m==="1h")&&c[l]&&(V=xI(c[m]),B=xI(c[l]),B>V?m=l:B===V&&T9M(c[l])&&(m=l));m==="9"&&c.h&&xI(c.h)>xI(c["9"])&&(m="h");a.yQ&&y.isLive&&m==="("&&c.H&&xI(c["("])<1440&&(m="H");d&&n({vfmly:Hxv(m)});a=c[m];if(!a.length)return d&&n({novfmly:Hxv(m)}), YH();Cu(a);return o7(new IV(a,S,G,p))}; fkM=function(p,a,l){var y=a.C();p.thirdParty||(p.thirdParty={});y.ancestorOrigins&&(p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{ancestorOrigins:y.ancestorOrigins}));y.X_!=null&&(p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(y.X_)}));y.yP&&(p.thirdParty.embeddedPlayerContext=Object.assign({},p.thirdParty.embeddedPlayerContext,{visibilityFractionSource:y.yP}));p.thirdParty.embeddedPlayerContext= Object.assign({},p.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Dze(),autoplayIntended:pn(a),autoplayStatus:fxO(a,l)})}; d$=function(p){return LRh(p.j)}; sp$=function(p,a){var l=jqE();l&&(p?Ey(p,61,ixv[l]):a&&(a.client.connectionType=l));g.oO("web_log_effective_connection_type")&&(l=WDr())&&(p?Ey(p,94,TgZ[l]):a&&(a.client.effectiveConnectionType=l))}; NgM=function(p){re.call(this,"sabr");this.Wa=p}; Wgh=function(){if(g.oO("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!rh())return Error("User has not consented - not fetching biscotti id.");var p=g.ZM("PLAYER_VARS",{});if(g.l6(p,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(E0O(p))return Error("Biscotti id fetching has been disabled for pfl.")}; ED=function(p,a){for(var l in p.L)if(p.L[l].status==="usable"&&p.L[l].type===a)return!0;return!1}; sQM=function(p,a){for(var l=[],y=g.t(p.Ag.values()),S=y.next();!S.done;S=y.next()){S=S.value;var n=S.trigger;n instanceof vk&&n.triggeringLayoutId===a&&l.push(S)}l.length?YB(p.aq(),l):hF("Survey is submitted but no registered triggers can be activated.")}; UzF=function(p){p.updateValue("icon",jA());if(p.api.C().S)p.tooltip.P6(p.element,"Se ha copiado el enlace en el portapapeles.");else{p.updateValue("title-attr","Se ha copiado el enlace en el portapapeles.");p.updateValue("tooltip-title","Se ha copiado el enlace en el portapapeles.");p.tooltip.wE();p.tooltip.P6(p.element);var a=p.listen("mouseleave",function(){p.ME(a);p.pz();p.tooltip.dA()})}}; OK=function(p){QH.call(this,p);var a=this;this.L={};this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"videodatachange",function(){a.onVideoDataChange()}); this.events.J(p,g.I4("embargo"),function(l){a.api.zM(!0);var y,S=(y=a.L[l.id])!=null?y:[];y=g.t(S);for(S=y.next();!S.done;S=y.next()){var n=S.value;a.api.hideControls();a.api.Ne("auth",2,"This video isn't available in your current playback area",qp({embargoed:1,id:l.id,idx:l.S,start:l.start}));S=void 0;(n=(S=n.embargo)==null?void 0:S.onTrigger)&&a.api.xv("innertubeCommand",n)}})}; Ey=function(p,a,l){if(l!=null){if(!NC(l))throw i0("enum");l|=0}return U9(p,a,l)}; QQZ=function(p,a){g.X.call(this,{X:"div",T:"ytp-cards-teaser",N:[{X:"div",T:"ytp-cards-teaser-box"},{X:"div",T:"ytp-cards-teaser-text",N:p.C().D("player_new_info_card_format")?[{X:"button",T:"ytp-cards-teaser-info-icon",V:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},N:[azr()]},{X:"img",T:"ytp-cards-teaser-channel-avatar",V:{alt:"","aria-hidden":"true"}},{X:"span",T:"ytp-cards-teaser-label",yY:"{{text}}"},{X:"button",T:"ytp-cards-teaser-close-button",V:{"aria-label":"Cerrar"},N:[g.Kl()]}]: [{X:"span",T:"ytp-cards-teaser-label",yY:"{{text}}"}]}]});var l=this;this.B=p;this.Pi=a;this.fade=new g.Gq(this,250,!1,250);this.L=null;this.G=new g.l_(this.eiz,300,this);this.W=new g.l_(this.fyl,2E3,this);this.j=[];this.S=null;this.K=new g.l_(function(){l.element.style.margin="0"},250); this.onClickCommand=this.U=null;g.E(this,this.fade);g.E(this,this.G);g.E(this,this.W);g.E(this,this.K);p.C().D("player_new_info_card_format")?(g.uD(p.getRootNode(),"ytp-cards-teaser-dismissible"),this.J(this.d7("ytp-cards-teaser-close-button"),"click",this.qV),this.J(this.d7("ytp-cards-teaser-info-icon"),"click",this.vg),this.J(this.d7("ytp-cards-teaser-label"),"click",this.vg)):this.listen("click",this.vg);this.J(a.element,"mouseover",this.qh);this.J(a.element,"mouseout",this.ou);this.J(p,"cardsteasershow", this.Oh7);this.J(p,"cardsteaserhide",this.Ro);this.J(p,"cardstatechange",this.P5);this.J(p,"presentingplayerstatechange",this.P5);this.J(p,"appresize",this.cj);this.J(p,"onShowControls",this.cj);this.J(p,"onHideControls",this.wY);this.listen("mouseenter",this.Ol)}; CE=function(p,a){p=g.t(p.listeners);for(var l=p.next();!l.done;l=p.next())a(l.value)}; g.hQF=function(){return g.lb(Lo(16),function(p){return(p&15).toString(16)}).join("")}; gIh=function(p,a,l,y,S,n,V,z){var d=uo(p.ac.get(),1);if(FtO(p.EO.get())){var G=P1(p.S.get(),l,y,S,d.clientPlaybackNonce,d.TD,d.daiEnabled,d,n,V);A8$(p,G);$g(p.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return G},a)}else $g(p.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return P1(p.S.get(),l,y,S,d.clientPlaybackNonce,d.TD,d.daiEnabled,d,n,V,z)},a)}; Fd=function(p){MA(p);p=Rg(p);un(p)?p=String(p):(jF(p),p=YfZ());return p}; vx=function(p){nm.call(this,p,!1,!0);this.isCounterfactual=this.S=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.K=!0;this.overflowButton=new g.X({X:"button",A9:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.E(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.X({X:"img",T:"ytp-suggested-action-badge-img",V:{src:"{{url}}"}}); this.thumbnailImage.hide();g.E(this,this.thumbnailImage);this.thumbnailIcon=new g.X({X:"div",T:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.E(this,this.thumbnailIcon);this.banner=new g.X({X:"a",T:"ytp-suggested-action-container",N:[this.thumbnailImage,this.thumbnailIcon,{X:"div",T:"ytp-suggested-action-details",N:[{X:"text",T:"ytp-suggested-action-title",yY:"{{title}}"},{X:"text",T:"ytp-suggested-action-subtitle",yY:"{{subtitle}}"},{X:"text",T:"ytp-suggested-action-metadata-text", yY:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.E(this,this.banner);this.banner.lT(this.U.element);this.J(this.B,"videodatachange",this.onVideoDataChange);this.J(this.B,g.I4("suggested_action_view_model"),this.JgO);this.J(this.B,g.c4("suggested_action_view_model"),this.ZxY);this.J(this.overflowButton.element,"click",this.Ib);this.J(p,"featuredproductdismissed",this.Hf);this.B.createServerVe(this.banner.element,this.banner,!0)}; MK=function(p,a,l,y){var S=y!==void 0;y=!!y;var n=WE(Kn),V;!S&&Oi&&n&&(V=p[n])&&fT(V,VZZ);n=[];var z=p.length;V=4294967295;var d=!1,G=!!(a&64),B=G?a&128?0:-1:void 0;if(!(a&1)){var c=z&&p[z-1];c!=null&&typeof c==="object"&&c.constructor===Object?(z--,V=z):c=void 0;if(G&&!(a&128)&&!S){d=!0;var r;V=((r=Np)!=null?r:sk)(V-B,B,p,c,void 0)+B}}a=void 0;for(r=0;r=V){var P=r-B,F=void 0;((F=a)!=null?F:a={})[P]=w}else n[r]=w}if(c)for(var v in c)z=c[v],z!= null&&(z=l(z,y))!=null&&(r=+v,w=void 0,G&&!Number.isNaN(r)&&(w=r+B)0))return a}; uw=function(p,a){this.G=a===void 0?!1:a;this.L=this.S=this.U=this.startTimestamp=0;this.j=!1;this.W=Math.ceil(p/1E3)}; nv=function(p){for(var a=g.t(p.U.entries()),l=a.next();!l.done;l=a.next()){var y=g.t(l.value);l=y.next().value;y=y.next().value;y<(0,g.Ek)()&&p.U.delete(l)}return p.U}; g.rW=function(p,a){return bOr(p,a)>=0}; PCh=function(p){this.NO=Dm(p)}; VkM=function(p,a){g.Ar(a,function(S){return S.depth>=0}); var l=qa(a,function(S,n){return Math.max(S,n.depth)},-1),y=Nve(l+2); y[0]=p;g.Bf(a,function(S){return y[S.depth+1]=S.L}); return y}; g.ka=function(p,a,l,y,S){a=a===void 0?{}:a;l=l===void 0?V3o[p]:l;y=y===void 0?LCM[p]:y;S=S===void 0?XKh[p]:S;g.kc.call(this,l,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:p},a));this.type=p;this.message=l;this.level=y;this.L=S;Object.setPrototypeOf(this,g.ka.prototype)}; XNZ=function(p){return g.ZM(xdO(p===void 0?0:p))}; UO=function(p){this.value=p}; FCf=function(p){var a=p.videoTrack.L.index;p.IQ=new Iiq({BW:p.policy.BW,Db:p.policy.Z.Db,A$:a.SW(),xE:function(){return a.xE()}, Tc:function(){return a.Tc()}})}; S0M=function(p){var a=p.NO;return o$(p,a,a[QB]|0,Zd,2,1)}; hmr=function(p,a,l,y,S){this.videoId=p;this.Te=a;this.S=l;this.bytesDownloaded=y;this.L=S}; EVq=function(p,a,l,y){l=l.split("#");l=[l[1],l[2],0,l[3],l[4],-1,l[0],""].join("#");g.VV.call(this,p,a,l,0);this.S=null;this.W=y?2:0}; jnv=function(p,a){var l=B9;g.Ei(p,function(y,S){return l(a(y),a(S))})}; YCM=function(p){if(!p)throw Error("Fetching Attestation challenge returned falsy");if(!p.challenge)throw Error("Missing Attestation challenge");var a=p.challenge,l=fr(a);if("c1a"in l&&(!p.bgChallenge||!p.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},p,{E3z:a,wXI:l})}; ni=function(){this.L=new WeakMap}; CCM=function(p){var a,l,y,S,n=(a=p.L)==null?void 0:(l=a.bannerData)==null?void 0:(y=l.itemData)==null?void 0:(S=y.hiddenProductOptions)==null?void 0:S.dropTimestampMs;a=(Number(n)-Date.now())/1E3;p.countdownTimer.setContent(iR({seconds:a}));if(a>0){var V;(V=p.Ha)==null||V.start()}}; wBF=function(p,a,l){p=p.map(function(d){return r6(g.T(d.renderingContent,iQ),!1)}); var y=p.map(function(d){return d.videoLengthSeconds}),S=y.map(function(d,G){return new NH(G,y)}),n=a,V=l,z=[]; p.forEach(function(d,G){V=Math.min(n+d.videoLengthSeconds*1E3,l);zj(d.playerVars,S[G]);z.push({Q1:d,La:n,yB:V,Oi:G,tD:S[G]});n=V}); return z}; p0=function(p){this.value=p}; Ma=function(p,a,l){p=p===void 0?{}:p;a=a===void 0?!1:a;new g.BG(function(y,S){var n=dv(a,l),V=n.U;n.U=!1;Pq(n.S);Pq(n.L);n.L=0;s0&&s0.isReady()?l===void 0&&g.oO("enable_web_tiered_gel")?vVh(y,S,p,a,300,V):vVh(y,S,p,a,l,V):(pzO(a,l),y())})}; bu=function(p,a,l,y){this.S=null;this.W=!1;this.L=this.U=this.j=0;this.init(p,a,l,y)}; g.tg=function(p,a,l){var y={};(0,g.Bf)(p,function(S,n){y[a.call(l,S,n,p)]=S}); return y}; KCe=function(p,a,l,y,S,n,V,z,d,G,B,c,r){p=p1(p,a,l,S,n,V,z,d,c,a_(p,l,y.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);a=p.RN;l=new l3(p.SY);y=p.layoutExitSkipTriggers;G>0&&(a.push(l),a.push(new PN(G)),y=[]);a.push(new y2(B));return{sY:{layoutId:p.layoutId,layoutType:p.layoutType,Xh:p.Xh,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],iT:p.iT,clientMetadata:new Lc(a),nx:p.nx, adLayoutLoggingData:p.adLayoutLoggingData},gA:y,gh:p.layoutExitMuteTriggers,tT:p.layoutExitUserInputSubmittedTriggers,vC:p.layoutExitUserCancelledTriggers,T9:p.T9}}; eV$=function(p,a){return g.R(function(l){if(l.L==1)return g.$r(l,2),g.u(l,navigator.clipboard.writeText(a),4);if(l.L!=2)return l.return(!0);g.L6(l);var y=l.return,S=!1,n=g.JI("TEXTAREA");n.value=a;n.setAttribute("readonly","");var V=p.api.getRootNode();V.appendChild(n);if(bp){var z=window.getSelection();z.removeAllRanges();var d=document.createRange();d.selectNodeContents(n);z.addRange(d);n.setSelectionRange(0,a.length)}else n.select();try{S=document.execCommand("copy")}catch(G){}V.removeChild(n); return y.call(l,S)})}; g.ua=function(p){return!!(p.O6||p.M2||p.fO||p.hlsvp||p.o8())}; g.OD=function(p,a,l){p.L.createIndex(a,l,{unique:!1})}; bHZ=function(p){var a;if((a=p.S)==null?0:a.isLocked())return p.videoInfos;var l=nv(p.L);a=g.Tz(p.videoInfos,function(y){return y.Lx>p.z9.Lx?!1:!l.has(y.id)}); NM$(p.L)&&(a=g.Tz(a,function(y){return y.video.width<=854&&y.video.height<=480})); return a}; IGM=function(p,a,l,y){wt.call(this,"video-interstitial-buttoned-centered",p,a,l,y);this.interactionLoggingClientData=y}; IOM=function(p){a:{var a=p.initData;try{for(var l=0,y=new DataView(a.buffer);l0){var V=y.getUint32(l+28);n+=V*16+4}var z=y.getUint32(l+n-4);try{var d=RVr(a.subarray(l+n,l+n+z));if(d!==null){var G=d;break a}}catch(B){}}l+=S}G=null;break a}catch(B){G=null;break a}G=void 0}if(G!=null)for(a=il(A9(G,7,void 0,rT)),a==null||p.EQ||(p.cryptoPeriodIndex=a),a=il(A9(G,10,void 0,rT)),a!=null&&a>0&& !p.EQ&&(p.L=a),G=xR(G,2,yKr,void 0===R4f?2:4),G=g.t(G),y=G.next();!y.done;y=G.next())a=p.U,l=a.push,y=Ko(y.value),y=g.MN(y,4),l.call(a,y)}; OHM=function(p){if(!p.api.C().Fh){var a=p.api.getVideoData(),l=new g.mw("Suscribirme",null,"Suscrito",null,!0,!1,a.mK,a.subscribed,"channel_avatar",null,p.api,!0);p.api.createServerVe(l.element,p);var y;p.api.setTrackingParams(l.element,((y=a.subscribeButtonRenderer)==null?void 0:y.trackingParams)||null);p.J(l.element,"click",function(){p.api.logClick(l.element)}); p.subscribeButton=l;g.E(p,p.subscribeButton);p.subscribeButton.lT(p.W);p.subscribeButton.hide();var S=new uAA(p.api);p.L=S;g.E(p,S);S.lT(p.W);S.hide();p.J(p.api,"SUBSCRIBE",function(){a.yP&&(S.show(),p.api.logVisibility(S.element,!0))}); p.J(p.api,"UNSUBSCRIBE",function(){a.yP&&(S.hide(),p.api.logVisibility(S.element,!1),lnA(S,!1))})}}; ceq=function(p,a,l){return a=a.filter(function(y){if(y.video.qualityOrdinal<=p.qc)return!0;l[y.itag]="maxquality";return!1})}; cQO=function(p){this.value=p}; g.tue=function(p){for(;!p.j&&!p.error;){var a=p;a.j=!!k8(a,1);switch(k8(a,2)){case 2:var l=[],y=[];y.length=19;y.fill(0);var S=k8(a,5)+257;var n=k8(a,5)+1;for(var V=k8(a,4)+4,z=0;z0;d--)l.push(z)}l.length!==V?a.error=!0:(n=l.slice(-n),l.length=S,tDM(a,l,n));break;case 1:tDM(a,Mn,jfM);break;case 0:WCe(a, a.L&7);l=k8(a,16);S=k8(a,16);(l^S)!==65535&&(a.error=!0);a.output.set(a.data.subarray(a.S,a.S+l),a.U);a.S+=l;a.U+=l;break;default:a.error=!0}p.U>p.output.length&&(p.output=new Uint8Array(p.U*2),p.U=0,p.S=0,p.j=!1,p.L=0,p.register=0)}p.output.length!==p.U&&(p.output=p.output.subarray(0,p.U));return p.error?new Uint8Array(0):p.output}; HHq=function(p,a){p=new Set(p.map(a));p.delete(void 0);return p.size>=2}; bk=function(p,a,l){var y=a7();a=a();p.sS(l,a7()-y);return a}; Ddr=function(p,a){if(p.B.isLifaAdPlaying()){var l=p.B.uU(!0,!0);p.b1(a,l.width*.5*1.1,l.height*.25*1.1,l.width*.5*.9,l.height*.5*.9)}}; ELO=function(p,a){var l;return g.R(function(y){if(y.L==1)return g.u(y,IM(a),2);l=y.S;return y.return(l.delete("LogsRequestsStore",p))})}; g.US=function(p){return iHZ(p)()}; g.r_=function(p,a,l){p.j.set(a,l)}; g.TNr=function(p,a){var l;return g.R(function(y){var S=g.o4("yt.aba.att");return(l=S?S:dX.instance!==void 0?dX.instance.U.bind(dX.instance):null)?y.return(l("ENGAGEMENT_TYPE_PLAYBACK",p,a)):y.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; YfZ=function(){var p=tm,a=jN;a&2147483648?kZ()?p=""+(BigInt(a|0)<>>0)):(a=g.t(rk(p,a)),p=a.next().value,a=a.next().value,p="-"+ts(p,a)):p=ts(p,a);return p}; m$=function(p){return Xw(p)>0}; NNM=function(p){return p.B.C().experiments.Cz("enable_desktop_discovery_video_abandon_pings")||g.oV(p.B.C())}; uf=function(p,a){p.playlist&&(g.p3(p.playlist),p.playlist=null);a&&(p.uX&&(a.fetch=0),p.playlist=new XE(p.Y,a))}; IM=function(p){return g.bx(sfh(),p)}; x9o=function(p){this.L=p;p.eT("/client_streamz/bg/po/cwsc",g.wA("su"),g.wA("mk"))}; Udr=function(p){var a=$c(p),l=Wg(p,"position"),y=l=="fixed"||l=="absolute";for(p=p.parentNode;p&&p!=a;p=p.parentNode)if(p.nodeType==11&&p.host&&(p=p.host),l=Wg(p,"position"),y=y&&l=="static"&&p!=a.documentElement&&p!=a.body,!y&&(p.scrollWidth>p.clientWidth||p.scrollHeight>p.clientHeight||l=="fixed"||l=="absolute"||l=="relative"))return p;return null}; hVr=function(p,a){var l=Qfe(p,a);l||hF("Expected subLRA found by layout ID",p.slot,p.layout,{layoutId:a});p.L={f8:l};l?l.startRendering(l.J9()):a===p.S&&hF("Failed to find rendering adapter for survey media layout",p.slot,p.layout,{surveyMediaLayoutId:a})}; wN=function(p){return jH(p)?p:tt(p)?new M6(function(a,l){p.then(a,l)}):new M6(function(a){a(p)})}; u3=function(p,a,l){if(!p.playerVars)return new Xd("No playerVars available in InstreamVideoAdRenderer.");var y,S;if(p.elementId==null||p.playerVars==null||p.playerOverlay==null||((y=p.playerOverlay)==null?void 0:y.instreamAdPlayerOverlayRenderer)==null&&((S=p.playerOverlay)==null?void 0:S.playerOverlayLayoutRenderer)==null||p.pings==null||p.externalVideoId==null)return new Xd("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:p});y=vv(p.playerVars);S=Number(y.length_seconds); isNaN(S)&&(S=0,hF("Expected valid length seconds in player vars but got NaN"));if(l.lC(a.kind==="AD_PLACEMENT_KIND_START")){if(p.layoutId===void 0)return new Xd("Expected server generated layout ID in instreamVideoAdRenderer");a=p.layoutId}else a=p.elementId;return{layoutId:a,Q5:p,playerVars:y,GW:p.playerVars,uc:S}}; tb=function(p,a){YL.call(this,p,a,"chapterCueRange","Ver cap\u00edtulo");this.K=""}; Ad$=function(p,a){function l(zq){zq.readyState===2&&p.nt("ps_c")} var y,S,n,V,z,d,G,B,c,r,w,P,F,v,I,b,O,m,H,Y,N,yo;return g.R(function(zq){switch(zq.L){case 1:a.fetchType="gp";y=p.C();S=g.WH(y,g.HH(a));if(!S.L){n=S.getValue();zq.g7(2);break}return g.u(zq,S.L,3);case 3:n=zq.S;case 2:return V=n,z=X3(V),d=KnA(a,p.getPlayerSize(),p.getVisibilityState()),G=g.ax(AEf),B=g.HH(a),c=(0,g.Ek)(),r=!1,w="empty",P=0,p.nt("psns"),F={yv:l},g.u(zq,g.JV(z,d,G,void 0,F),4);case 4:v=zq.S;p.nt("psnr");if(a.Gm())return zq.return();v?"error"in v&&v.error?(r=!0,w="esf:"+v.error.message, P=v.error.code):v.errorMetadata&&(r=!0,w="its",P=v.errorMetadata.status):r=!0;if(r)return I=0,b=((0,g.Ek)()-c).toFixed(),O={},O=y.D("html5_use_network_error_code_enums")?{backend:"op",rc:P,rt:b,reason:w,has_kpt:a.EC?"1":"0",has_mdx_env:a.mdxEnvironment?"1":"0",has_omit_key_flag:g.ZM("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:y.pageId?"1":"0",has_token:B?"1":"0",has_vvt:a.t9?"1":"0",is_mdx:a.isMdxPlayback?"1":"0",mdx_ctrl:a.E2||"",token_eq:B===g.HH(a)?"1":"0"}:{backend:"op", rc:""+P,rt:b,reason:w,has_kpt:a.EC?"1":"0",has_mdx_env:a.mdxEnvironment?"1":"0",has_omit_key_flag:g.ZM("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:y.pageId?"1":"0",has_token:B?"1":"0",has_vvt:a.t9?"1":"0",is_mdx:a.isMdxPlayback?"1":"0",mdx_ctrl:a.E2||"",token_eq:B===g.HH(a)?"1":"0"},m="manifest.net.connect",P===429?(m="auth",I=2):P>200&&(m="manifest.net.badstatus",P===400&&(I=2)),zq.return(Promise.reject(new g.mm(m,O,I)));a.loading=!1;g.cg(a,{raw_player_response:v},!0); H=v;g.iT(a.C())&&H&&H.trackingParams&&eC(H.trackingParams);if(a.errorCode)return Y={ec:a.errorCode,ed:a.errorDetail,es:a.Aw||""},zq.return(Promise.reject(new g.mm("auth",Y,2)));if(!a.loading&&!ry(a))return N=a.isAd()?"auth":"manifest.net.retryexhausted",yo=a.isAd()?2:1,zq.return(Promise.reject(new g.mm(N,{successButUnplayable:"1",hasMedia:g.ua(a)?"1":"0"},yo)));g.lD(zq)}})}; Ke=function(p,a,l,y,S){this.wM=a;this.L=l;this.visible=y;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=S||p(this.triggerType)}; Os=function(p){p.S.hide();p.banner.update({vendor:kn(p)})}; gVO=function(p){p.offsets.length=a+(a-262)){ME.WC(p.window,p.window,a,a,0);p.xC-=a;p.Ba-=a;p.QP-=a;var S=l=p.A8;do{var n=p.head[--S];p.head[S]=n>=a?n-a:0}while(--l);S=l=a;do n=p.M1[--S],p.M1[S]=n>=a?n-a:0;while(--l);y+=a}if(p.ph.kf===0)break;S=p.ph;l=p.window;n=p.Ba+p.xe;var V=S.kf;V>y&&(V=y);V===0?l=0:(S.kf-=V,ME.WC(l,S.input,S.cR,V,n),S.state.wrap===1?S.Q$=lhv(S.Q$,l,V,n):S.state.wrap===2&&(S.Q$=ns(S.Q$,l,V,n)),S.cR+=V,S.rl+=V,l=V);p.xe+=l;if(p.xe+p.zp>=3)for(y=p.Ba- p.zp,p.oX=p.window[y],p.oX=(p.oX<y)return Pu(p,n.config),p.Rt(n.hashData),z.return(xg());case 2:$cF(p);if(!(l&&p.S&&p.hotHashData)){z.g7(4);break}return g.u(z,gKA(p.S,p.hotHashData,l,y),4);case 4:return p.S? z.return(xg()):(V=new g.kc("Config not available in ytConfig"),FU(V),z.return(Promise.reject(V)))}})}; pW=function(p,a,l){var y=g.Zb(p.S,function(S){return a<=S}); return y==-1?0:l(p.L[y])}; SWO=function(p){p=this.U=p;var a=(0,g.bn)(this.GnO,this);p.j=a;p=this.U;a=(0,g.bn)(this.oyu,this);p.K=a;this.S={};this.L={}}; V5O=function(p,a,l){l!=null&&l.U1||(p.T4=[]);p.policy.Wo?(a=g.qV(p.wq,{startTimeMs:a*1E3},function(y,S){return y.startTimeMs-S.startTimeMs}),p.L!==a&&(p.L=-1,p.U=void 0)):(A5F(p,!0),p.L=Djh(p.wq,a*1E3))}; oEZ=function(p,a,l,y){var S=l,n=ZRF(a.width,a.height);p.Xi?S=ln?{width:a.width,height:a.width/S,aspectRatio:S}:SS?p.width=p.height*l:l0?(l=Math.floor(l-n.L/1E3),p.W!==l&&p.jl("sdai",{updateSt:l,old:p.W}),p.W=l):p.j>0&&(l=a+Math.max(Math.ceil(-n.L/5E3),1),p.j!==l&&(p.jl("sdai",{updateSt:l,old:p.j}),p.j=l)):p.policy.TO&&p.S===3&&Bmo(p,a,l,y,S)}else p.jl("sdai",{nulldec:1,sq:a,mt:l.toFixed(3),evt:(y==null?void 0:(n=y.YE)==null?void 0:n.event)|| "none"})}; ia=function(p){this.NO=Dm(p)}; TS=function(p,a,l,y){p.Gm();a.loggingUrls&&BbO(p,"loggingUrls",a.loggingUrls,l,y);a=g.t(Object.entries(a));for(var S=a.next();!S.done;S=a.next()){var n=g.t(S.value);S=n.next().value;n=n.next().value;S==="openPopupAction"?p.VL.get().KH("innertubeCommand",{openPopupAction:n}):S==="confirmDialogEndpoint"?p.VL.get().KH("innertubeCommand",{confirmDialogEndpoint:n}):cLf.hasOwnProperty(S)||BbO(p,S,n,l,y)}}; rLM=function(p){if(p.L==null)p.callback.Vk(p.slot);else try{p.L.cancel(),p.L=null,p.callback.Vk(p.slot)}catch(a){p.L=null,U2(p.callback,p.slot,new W(a,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; TO=function(p){p=g.yn(p);for(var a=g.t(Object.keys(p)),l=a.next();!l.done;l=a.next()){l=l.value;var y=p[l];p[l]=Array.isArray(y)?y[0]:y}return p}; $EA=function(p){return p?decodeURI(p):p}; Py=function(p,a,l,y,S,n,V){hI.call(this,p,n,V,a,l,y,S);this.playerProgressOffsetMs=0;this.S=!1}; F8$=function(p,a){return p.D("html5_onesie_sync_request_encryption")||(a==null?0:a.vt)||g.Ry(p.Y)&&p.D("html5_embed_onesie_use_sync_encryption")?!1:!!zT()}; Nn=function(p,a,l){return HY(p,p.state|a,null,l===void 0?null:l)}; lDF=function(p){var a=qa(p,function(S,n){return S+n.length},0); a=new Uint8Array(a);var l=0;p=g.t(p);for(var y=p.next();!y.done;y=p.next())y=y.value,a.set(y,l),l+=y.length;return a}; NF$=function(p,a){var l=g.o4("yt.embedded_player.embed_url");l&&(p?(a=Kv(p,Wz,7)||new Wz,GY(a,4,l),$W(p,Wz,7,a)):a&&(a.thirdParty={embedUrl:l}))}; gQ=function(p){var a=p.D("html5_enable_sabr_on_drive")&&p.Ws.UO==="gd";if(p.Hv)return p.O2&&p.jl("fds",{fds:!0},!0),!1;if(p.Ws.UO!=="yt"&&!a)return p.O2&&p.jl("dsvn",{ns:p.Ws.UO},!0),!1;if(p.cotn||!p.L||p.L.isOtf&&!p.D("html5_enable_sabr_otf_in_client")||p.U&&!p.U.L||p.bL&&!p.D("html5_enable_sabr_csdai"))return!1;if(p.D("html5_use_sabr_requests_for_debugging"))return!0;p.O2&&p.jl("esfw",{usbc:p.O2,hsu:!!p.H9},!0);if(p.O2&&p.H9)return!0;if(p.D("html5_remove_client_sabr_determination"))return!1;var l= !p.L.ke&&!p.m7();a=l&&fn&&p.D("html5_enable_sabr_vod_streaming_xhr");l=l&&!fn&&p.D("html5_enable_sabr_vod_non_streaming_xhr");var y=w7v(p),S=p.D("html5_enable_sabr_drm_vod_streaming_xhr")&&fn&&p.m7()&&!p.L.ke&&(p.drmProduct==="1"?!1:!0);(a=a||l||y||S)&&!p.H9&&p.jl("sabr",{loc:"m"},!0);return a&&!!p.H9}; g.U8=function(p,a,l){return m4(p.L.put(a,l))}; ki=function(p){var a=v5.EXPERIMENT_FLAGS;return a?a[p]:void 0}; Pur=function(p){for(;p.L.length&&p.L[0].wW(p.K1());){var a=p.L.shift();$We(p,a)}p.L.length&&$We(p,p.L[0])}; L9F=function(p){for(var a=new sD(p),l=-1,y=0,S=0;!y||!S;){var n=hxM(a),V=n.id;n=n.size;if(V<0)return;if(V===176){if(n!==2)return;y=a.A4()}else if(V===186){if(n!==2)return;S=a.A4()}V===374648427?l=a.A4()+n:V!==408125543&&V!==174&&V!==224&&a.skip(n)}a=UD(p,0,l);l=new DataView(a.buffer);l.setUint16(y,3840);l.setUint16(S,2160);y=new NN([a]);sp(y,p);return y}; g.ft=function(p){var a=g.Mk(p);X7r.includes(a)&&(a="www.youtube.com");return p.protocol+"://"+a}; g.xWf=function(p){this.Ws=p;this.Z=new amv;this.JX=this.cH=!1;this.eQ=2;this.nz=20971520;this.Sb=8388608;this.Bs=120;this.qB=this.U9=this.Fl=2;this.yP=this.f9=!1;this.Zv=1E3;this.va=15;this.b_=1;this.Sl=1.15;this.w7=1.05;this.jr=1;this.mE=this.GO=!1;this.Yz=6;this.U=!1;this.xZ=100;this.V4=10;this.y8=6;this.H9=!1;this.jQ=1;this.BW=this.M2=!1;this.Us=2;this.XT=this.I$=this.XG=!1;this.eb=!0;this.Sa=this.QS=this.OO=this.Ae=!1;this.IK=!0;this.y7=!1;this.j="";this.ej=[];this.Xq=this.O6=!1;this.R7=0;this.O2= "";this.er=this.zo=this.qa=this.j_=this.UU=this.W=this.PH=this.Hk=this.Ko=this.L=this.Yv=this.QY=this.e3=this.g3=this.UO=this.zy=this.o$=!1;this.aM=!0;this.OI=this.r8=this.N7=this.RK=this.Ks=this.S=this.VY=!1;this.Kz=!0;this.L1=this.Go=this.Xu=this.yS=this.oo=this.t9=!1;this.ye=3;this.qc=this.W8=this.F4=this.Cs=this.n1=this.Kt=this.Ve=this.Vu=this.hX=this.Cl=!1;this.yQ=2;this.q$=this.on=this.UD=this.G=this.Em=!1;this.AX=g.sW(this.Ws.experiments,"html5_min_readbehind_secs");this.TI=g.sW(this.Ws.experiments, "html5_min_readbehind_cap_secs");this.So=this.Ws.D("html5_offline_reset_media_stream_on_unresumable_slices");this.Lx=NaN;this.S8=lf(this,"html5_request_size_min_kb",64)*1024;this.r7=2097152;this.LP=lf(this,"html5_bypass_contention_secs");this.n6=1048576;this.rP=lf(this,"html5_repredict_interval_ms",1800);this.RU=lf(this,"html5_head_miss_secs",5);this.jz=lf(this,"html5_min_upgrade_health_secs",10);this.Sz=lf(this,"html5_min_seconds_between_format_selections",8);this.Au=lf(this,"html5_max_buffer_health_for_downgrade_secs", 15);this.Lg=fn;this.LO=g.sW(this.Ws.experiments,"html5_min_startup_buffered_media_duration_secs");this.Zs=g.sW(this.Ws.experiments,"html5_post_interrupt_readahead");this.Wr=this.Ws.D("html5_disable_classic_alr");this.zx=g.sW(this.Ws.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Oo=lf(this,"html5_ssdai_failure_retry_limit",3);this.yl=this.Ws.experiments.Cz("html5_clone_original_for_fallback_location");this.Ct=g.sW(this.Ws.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); this.e8=g.sW(this.Ws.experiments,"html5_subsegment_readahead_timeout_secs");this.vP=g.sW(this.Ws.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.fO=g.sW(this.Ws.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.zX=g.sW(this.Ws.experiments,"html5_subsegment_readahead_min_load_speed");this.l1=g.sW(this.Ws.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.f4=g.sW(this.Ws.experiments,"html5_subsegment_readahead_seek_latency_fudge"); this.Co=lf(this,"html5_hopeless_secs",15);this.KY=this.Ws.D("html5_restrict_streaming_xhr_on_sqless_requests");this.uO=g.sW(this.Ws.experiments,"html5_max_headm_for_streaming_xhr");this.Br=this.Ws.D("html5_pipeline_manifestless_allow_nonstreaming");this.Wd=this.Ws.D("html5_prefer_server_bwe3");this.QU=this.Ws.D("html5_last_slice_transition");this.ey=this.Ws.D("html5_store_xhr_headers_readable");this.fg=g.sW(this.Ws.experiments,"html5_max_drift_per_track_secs");this.HH=this.Ws.D("html5_no_placeholder_rollbacks"); this.Hv=this.Ws.D("html5_subsegment_readahead_enable_mffa");this.Ha=this.Ws.D("html5_allow_video_keyframe_without_audio");this.XT=g.g5(this.Ws)&&!g.pT()&&this.Ws.D("html5_adjust_media_time_for_non_cobalt_tv");this.gs=this.Ws.D("html5_enable_vp9_fairplay");this.lF=1048576;this.s3=this.Ws.D("html5_woffle_resume");this.NJ=this.Ws.D("html5_abs_buffer_health");this.Qt=this.Ws.D("html5_interruption_resets_seeked_time");this.nw=g.sW(this.Ws.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800; this.Da=this.Ws.D("html5_report_captions_ctmp_qoe");this.CU=this.Ws.D("html5_explicitly_dispose_xhr");this.r6=!this.Ws.D("html5_encourage_array_coalescing");this.Ws.D("html5_limit_media_merge_size")?fn?Ad()<21?this.OY=786432:this.OY=8388608:this.OY=262144:this.OY=0;this.tQ=this.Ws.D("html5_filter_non_efficient_formats_for_safari");this.Ws.D("html5_format_hybridization");this.GI=this.Ws.D("html5_abort_before_separate_init");this.hE=Rw();this.Rf=this.Ws.D("html5_serialize_server_stitched_ad_request"); this.Sr=this.Ws.D("html5_attach_po_token_to_bandaid");this.ED=g.sW(this.Ws.experiments,"html5_max_redirect_response_length")||8192;this.UM=this.Ws.D("html5_rewrite_timestamps_for_webm");this.EC=this.Ws.D("html5_only_media_duration_for_discontinuities");this.DR=g.sW(this.Ws.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Ws.D("html5_onesie_live");this.ez=g.sW(this.Ws.experiments,"html5_onesie_live_ttl_secs")||8;this.Tx=g.sW(this.Ws.experiments,"html5_attach_num_random_bytes_to_bandaid"); this.HS=this.Ws.D("html5_update_container_type_on_codec_family_change");this.Ws.D("html5_apply_ssap_slice_info_adjustment");this.Fh=this.Ws.D("html5_enable_sabr_host_fallback");this.Ie=this.Ws.D("html5_gapless_fallback_on_append_error");this.i$=this.Ws.D("html5_shorts_stop_request_when_buffer_to_end");this.PS=this.Ws.D("html5_vod_stop_request_when_buffer_to_end");this.Hs=this.Ws.D("html5_ssdai_use_post_for_media")&&this.Ws.D("gab_return_sabr_ssdai_config");this.rg=this.Ws.D("html5_use_post_for_media"); this.bf=this.Ws.D("html5_use_live_ump_heartbeat");this.useUmp=this.Ws.D("html5_use_ump");this.df=this.Ws.M2;this.Qo=this.Ws.D("html5_reset_primary_stats_on_redirector_failure");this.gf=this.Ws.D("html5_remap_to_original_host_when_redirected");this.k9=this.Ws.D("html5_sabr_support_quality_constraints");this.U3=this.Ws.D("html5_iterative_seeking_buffered_time");this.h4=this.Ws.D("html5_use_network_error_code_enums");this.bF=this.Ws.D("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation= this.Ws.D("html5_enable_server_driven_request_cancellation");this.vr=this.Ws.D("html5_enable_sabr_request_timing");this.w8=this.Ws.D("html5_enable_server_format_filter");this.Aq=this.Ws.D("html5_enable_lawnmower");this.Rr=this.Ws.ao()?g.sW(this.Ws.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.U8=g.sW(this.Ws.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Ze=this.Ws.D("html5_live_defrag_only_h264_playbacks");this.Jx=this.Ws.D("html5_live_defrag_only_h264_formats"); this.xt=this.Ws.D("html5_record_now");this.k$=g.sW(this.Ws.experiments,"html5_drm_byterate_soft_cap");this.vk=g.sW(this.Ws.experiments,"html5_drm_live_byterate_soft_cap");this.K=this.Ws.D("html5_sabr_log_request_creation");this.SD=this.Ws.D("html5_use_buffer_timeline_for_sabr_request_creation");this.o4=this.Ws.D("html5_sabr_report_request_cancellation_info");this.qG=this.Ws.D("html5_spoof_4k");this.sI=lf(this,"html5_min_media_duration_for_cabr_slice");this.Mw=lf(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")|| .01;this.bb=this.Ws.D("html5_remove_defrag_without_frame_level_streaming");this.X9=this.Ws.D("html5_consume_all_buffered_bytes_one_poll");this.D5=this.Ws.D("html5_disable_urgent_adaptation");this.aU=this.Ws.D("html5_apply_constraints_in_client_for_sabr");this.fl=this.Ws.D("html5_send_video_playback_ustreamer_config");this.yO=lf(this,"html5_max_discontinuity_rewrite_count");this.cI=lf(this,"html5_fixed_media_duration_for_request");this.L9=this.Ws.D("html5_apply_fix_for_missing_seg_info_without_logger"); this.QS=this.Ws.D("html5_enable_audio_quality_setting");this.Ws.D("html5_enable_audio_quality_setting_feature");this.v2=lf(this,"html5_sabr_request_limit_per_period");this.l5=lf(this,"html5_sabr_request_limit_per_period_for_low_latency");this.b$=lf(this,"html5_sabr_request_limit_per_period_for_ultra_low_latency");this.j8=this.Ws.D("html5_sabr_dispose_media_objects");this.zF=this.Ws.D("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.RY=this.Ws.D("html5_enable_d6de4");this.Ws.D("html5_high_res_seek_logging"); this.E9=this.Ws.D("html5_disable_chunk_synchronization_sabr_seek");this.Ws.D("html5_enable_ssap_multi_audio_format_filtering");this.In=g.sW(this.Ws.experiments,"html5_override_micro_discontinuities_threshold_ms");this.iA=this.Ws.D("html5_byterate_constraints");this.Kp=this.Ws.D("html5_refactor_sabr_audio_format_selection_logging");this.tq=this.Ws.D("enable_sabr_snackbar_message");this.Ws.D("html5_reinit_source_buffer_by_new_element");this.PT=this.Ws.D("html5_refactor_sabr_video_format_selection_logging"); this.sK=this.Ws.D("html5_log_slice_info_in_sbu");this.vZ=lf(this,"html5_paced_poll_ms");this.ws=lf(this,"html5_paced_poll_min_health_ms");this.Q8=this.Ws.D("html5_disable_sabr_fallback");this.Wo=this.Ws.D("html5_track_current_buffered_range_at_sync");this.PV=g.g5(this.Ws)?500:2E3;this.X_=this.Ws.D("html5_sabr_live_timing");this.fP=this.Ws.D("html5_count_updating_slice_for_buffer_health");this.Bd=this.Ws.D("html5_report_max_buffer_bytes_limit_to_sabr");this.vR=this.Ws.D("html5_sabr_live_audio_early_return_fix"); this.eB=g.sW(this.Ws.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.E3=this.Ws.D("html5_cuepoint_identifier_logging");this.Y$=this.Ws.D("html5_new_sabr_ssdai_cuepoint_logic");this.lO=this.Ws.D("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.ZS=this.Ws.D("html5_skip_client_drm_license_constraint");this.TO=this.Ws.D("html5_ssdai_not_block_on_predict_start");this.o$=this.Ws.D("html5_pseudogapless_shorts_skip_abort_on_transition");this.oZ=this.Ws.D("html5_live_metadata_resets_timeout"); this.Em=this.Ws.D("html5_sabr_log_invalid_sabr_current_time");this.Ps=this.Ws.D("html5_ssdai_new_decoration_logic");this.uF=this.Ws.D("html5_enable_smooth_audio_offset");this.UD=this.Ws.D("html5_ssdai_log_missing_ad_config_reason")}; GgM=function(p,a,l,y){y=y===void 0?null:y;var S=g.JI("SCRIPT");S.id=a;S.onload=function(){l&&setTimeout(l,0)}; S.onreadystatechange=function(){switch(S.readyState){case "loaded":case "complete":S.onload()}}; y&&S.setAttribute("nonce",y);g.oQ(S,typeof p==="string"?g.Pt(p):p);p=document.getElementsByTagName("head")[0]||document.body;p.insertBefore(S,p.firstChild);return S}; g.pw=function(p,a){if(p.classList)Array.prototype.forEach.call(a,function(S){g.uD(p,S)}); else{var l={};Array.prototype.forEach.call(bj(p),function(S){l[S]=!0}); Array.prototype.forEach.call(a,function(S){l[S]=!0}); a="";for(var y in l)a+=a.length>0?" "+y:y;g.CY(p,a)}}; EEE=function(p,a,l,y){l=l===void 0?0:l;if(p!==U$$(l)||a!==g.ZM(xdO(l)))if(zk$(p,y,l),nkv(p,l),D_(xdO(l),a),a=function(){setTimeout(function(){p&&g.mf("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:F9$,clientScreenNonce:p})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(a)}catch(S){a()}else a()}; fI=function(p,a,l,y,S,n,V,z,d,G){this.j=p;this.S=a;this.L=l;this.EO=y;this.UQ=S;this.U=n;this.sO=V;this.Iv=z;this.iC=d;this.loadPolicy=G===void 0?1:G}; XOq=function(p,a,l,y){function S(){Ma({writeThenSend:!0},a,l.tier)} a=a===void 0?!1:a;y=y===void 0?!1:y;p&&(s0=new p);p=g.hh("tvhtml5_logging_max_batch_ads_fork")||g.hh("tvhtml5_logging_max_batch")||g.hh("web_logging_max_batch")||100;var n=(0,g.Ek)(),V=dv(a,l.tier),z=V.j;y&&(V.U=!0);y=0;l&&(y=Tg().getSequenceCount(l));y>=1E3?S():y>=p?CuM||(CuM=nx(function(){S();CuM=void 0},0)):n-z>=10&&(pzO(a,l.tier),V.j=n)}; vEO=function(p,a,l){return l!==void 0?p.getCurrentTime(a,!1,l):p.getCurrentTime(a,!1)}; K9v=function(p){p.W&&p.t9.element.removeChild(p.W.element);p.W=void 0}; VaF=function(p,a,l,y){if(l==3&&a.S&&!a.j)for(;p&&p.W;p=p.U)p.W=!1;if(a.L)a.L.U=null,eAE(a,l,y);else try{a.j?a.U.call(a.context):eAE(a,l,y)}catch(S){RzM.call(null,S)}Z0M(Pne,a)}; KEO=function(p,a){a=a===void 0?{}:a;var l;return g.R(function(y){if(y.L==1)return g.u(y,g.Nb(),2);if(y.L!=3){l=y.S;if(!l)return y.return();EW(p);return g.u(y,yv(p,a),3)}return g.u(y,kz(p,l),0)})}; nco=function(p,a,l,y,S){try{var n,V=a===((n=p.Ic)==null?void 0:n.L)?p.audioTrack:p.videoTrack;if(p.policy.Kz&&(y==null?0:y.I7())){if((y==null?void 0:y.UO)>1)return 6;V.t9=new g.l_(function(){var z=d$(V);p.Gm()||z==null||!z.isLocked?p.Lz.C().ao()&&p.jl("eosl",{delayA:z==null?void 0:z.info.AP()}):j1Z(V)?(p.Lz.C().ao()&&p.jl("eosl",{dunlock:z==null?void 0:z.info.AP()}),pO(p,V===p.audioTrack)):(p.jl("nue",{ls:z.info.AP()}),z.info.UO+=1,p.Ic&&p.A7())},1E4,p); p.Lz.C().ao()&&p.jl("eosl",{delayS:y.AP()});V.t9.start()}p.policy.Cl&&(y==null?void 0:y.L)instanceof DC&&y.I7()&&p.jl("poseos",{itag:y.L.info.itag,seg:y.Rc,lseg:y.L.index.xE(),es:y.L.index.U});a.appendBuffer(l,y,S)}catch(z){if(z instanceof DOMException){if(z.code===11)return 2;if(z.code===12)return 5;if(z.code===22||z.message.indexOf("Not enough storage")===0)return a=Object.assign({name:"QuotaExceededError",buffered:jS(a.ea()).replace(/,/g,"_"),vheap:QL(p.videoTrack),aheap:QL(p.audioTrack),message:g.lr(z.message, 3),track:p.Ic?a===p.Ic.S?"v":"a":"u"},NxF()),p.handleError("player.exception",a),1;g.iO(z)}return 4}return p.Ic.h$()?3:0}; m4=function(p){return new g.Qn(new Dc(function(a,l){Wvv(p,a,l)}))}; w$=function(p,a){for(var l=ew(p,0,a);l;){var y=l;y.type=1936419184;y.data.setUint32(y.offset+4,1936419184);l=ew(p,l.offset+l.size,a)}}; XU=function(p,a){var l=l===void 0?!0:l;var y=g.ZM("VALID_SESSION_TEMPDATA_DOMAINS",[]),S=g.Ir(window.location.href);S&&y.push(S);S=g.Ir(p);if(g.rW(y,S)||!S&&aq(p,"/"))if(y=document.createElement("a"),g.BR(y,p),p=y.href)if(p=r3(p),p=IVM(p))if(l&&!a.csn&&(a.itct||a.ved)&&(a=Object.assign({csn:g.G2()},a)),n){var n=parseInt(n,10);isFinite(n)&&n>0&&$Ge(p,a,n)}else $Ge(p,a)}; g.fA=function(p,a){hP(p,1,a.eK,JP,3);gD(p,3,a.videoPlaybackUstreamerConfig);hP(p,5,a.Nf,rX,3);hP(p,6,a.VZ,xs,3)}; Ab=function(p,a,l){if(!p.done&&(p.S.cancel(),a.length!=0)){p.U=null;try{lqA();var y=nu();LO().W=y;if(p7(BT).L!=null)for(var S=0;S>>6:(n<65536?z[l++]=224|n>>>12:(z[l++]=240|n>>>18,z[l++]=128|n>>>12&63),z[l++]=128|n>>> 6&63),z[l++]=128|n&63);return z}; OR$=function(p,a,l){uwM(p.L,function(y){return y.QL>=a&&y.fh<=l})}; pOf=function(p){var a;return!!(p.D("html5_native_audio_track_switching")&&g.yd&&((a=p.videoData.S)==null?0:kI(a)))}; RD=function(p,a,l){for(var y in l)if(l[y]==a)return l[y];return p}; kbA=function(p){var a=[];p.L.forEach(function(l){l=g.t(l.values());for(var y=l.next();!y.done;y=l.next())a.push(y.value.slot)}); return a}; Mz=function(p,a){p=Number(g.Lu(a,p.S,p.U).toFixed(2));a=Math.floor((p+.001)*100%5+2E-15);var l=p;a!==0&&(l=p-a*.01);return Number(l.toFixed(2))}; W1Z=function(p){if(p){if(XpO(p))return p;p=zCM(p);if(XpO(p,!0))return p}return""}; Y8=function(p,a){p.Z=a;var l,y;(y=(l=p.options).tKI)==null||y.call(l,a)}; sr=function(p,a){return r1(p,a)!=null}; g.qn=function(p,a){g.D.call(this);var l=this;this.provider=p;this.U=new Map;this.qe=new g.Z5;this.hg={kjI:function(){return l.qoe}, qVs:function(){return l.L}, XIs:function(){return l.S}}; this.provider.videoData.Me()&&!this.provider.videoData.fO&&(this.L=new tN(this.provider),this.L.S=0,g.E(this,this.L),this.qoe=new g.yD(this.provider,a),g.E(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.J5=this.provider.videoData.clientPlaybackNonce)&&this.U.set(this.J5,this.L));if(p.Y.playerCanaryState==="canary"||p.Y.playerCanaryState==="holdback")this.S=new W7(this.provider),g.E(this,this.S)}; Bgv=function(p,a){g.fR(p.S,a,function(l,y){return l.QL===y.QL?l.durationMs-y.durationMs:l.QL-y.QL}); p.U.set(a.cpn,a);a.a4&&!p.W&&p.j.set(a.a4,a);a.yZ&&xLA(p,a.yZ,a)}; tY=function(p){var a=p.length,l=a*3/4;l%3?l=Math.floor(l):g.Gv("=.",p[a-1])&&(l=g.Gv("=.",p[a-2])?l-2:l-1);var y=new Uint8Array(l),S=0;M5f(p,function(n){y[S++]=n}); return S!==l?y.subarray(0,S):y}; xRr=function(p,a,l,y){return p.EO.get().lC(gw(a))?new I9(p.L,l):y}; kL=function(p,a,l){Lp.call(this,p);this.api=p;this.ZV=a;this.components={};p=new g.X({X:"div",A9:["video-ads","ytp-ad-module"]});g.E(this,p);Jb&&g.uD(p.element,"ytp-ads-tiny-mode");this.j=new JQ(p.element);g.E(this,this.j);g.uW(this.api,p.element,4);Mc(l)&&(l=new g.X({X:"div",A9:["ytp-ad-underlay"]}),g.E(this,l),this.S=new JQ(l.element),g.E(this,this.S),g.uW(this.api,l.element,0));g.E(this,Xqh())}; W3=function(p,a){var l=this;this.S=p;this.EO=a;this.L=function(y){return K3(l.S.get(),y)}}; emr=function(p,a,l){ML&&ML.measure&&(p.startsWith("measure_")||(p="measure_"+p),l?ML.measure(p,a,l):a?ML.measure(p,a):ML.measure(p))}; mWo=function(p,a){tke(p.L,a,function(){return{ZqT:0,AB:void 0,Eq:-1,Lm:-1,IY:-1,wi:-1,Sy:-1,aX:-1,Wv:-1,Uq:-1,PW:-1,position:void 0,mu:void 0,Bv:[]}}); p.L[a]=UKF(p)}; t5f=function(p){var a=p.api.QT();p.U!==a&&(p.U=a,QR(p,p.api.getVolume(),p.api.isMuted()))}; Zrr=function(p,a,l,y){l||(y?a.keyCode!==32||a.repeat||p.U||!p.j||g.sb(p.delay):Kf(p))}; WAq=function(p,a,l){a=a===void 0?-1:a;l=l===void 0?Infinity:l;for(var y=a,S=l,n=g.t(p.W),V=n.next();!V.done;V=n.next()){var z=g.t(V.value);V=z.next().value;z=z.next().value;z.PL>=y&&z.target&&z.target.fh<=S&&(p.L.removeCueRange(V),p.W.delete(V))}y=a;S=l;n=[];V=g.t(p.S);for(z=V.next();!z.done;z=V.next())if(z=z.value,z.QL>=y&&z.fh<=S){var d=p;d.K===z&&ht(d);Wq(d,z)&&d.app.O1()}else n.push(z);p.S=n;y=eY(p,a/1E3);a=y.MR;y=y.S1;a&&(y*=1E3,zHZ(p,a,y,a.fh===a.QL+a.durationMs?a.QL+y:a.fh));(a=eY(p,l/1E3).MR)&& Hq(p,"Invalid clearEndTimeMs="+l+" that falls during playback={timelinePlaybackId="+(a.a4+" video_id="+a.playerVars.video_id+" durationMs="+a.durationMs+" enterTimeMs="+a.QL+" parentReturnTimeMs="+a.fh+"}.Child playbacks can only have duration updated not their start."))}; HRv=function(p,a){if(a){var l=a.background;l&&g.T(l,jFM)&&(l=(l=g.T(l,jFM).image)&&D2(l)||"",g.Ta(l)?g.Mf(Error("Found ThumbnailDetails without valid image URL")):g.B8(p.Hs,"backgroundImage","url("+l+")"));if(a.durationMilliseconds==null||a.durationMilliseconds===void 0||a.durationMilliseconds===0)p=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(a)),g.iO(p);else{p.U=g.XS();p.L=new fE(p.api,a.durationMilliseconds);g.E(p,p.L);if(p.L&&a.instreamAdPlayerOverlay&&g.T(a.instreamAdPlayerOverlay, W9E))try{var y=new pL(p.api,p.layoutId,p.interactionLoggingClientData,p.ZV,p.L);y.lT(p.playerOverlay);y.init(y_("survey-player-overlay"),g.T(a.instreamAdPlayerOverlay,W9E),p.macros);p.j=y;g.E(p,y);p.NW()}catch(S){y=Error("ISAPOR had an error when initializing. Error: "+(S+" SurveyAdQuestionCommon: "+JSON.stringify(a))),g.iO(y)}else y=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(a)),g.iO(y);p.L&&a.durationMilliseconds&&a.durationMilliseconds>0?(a=new aR(p.api, p.L),a.lT(p.playerOverlay),g.E(p,a)):(p=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(a)),g.iO(p))}}else g.iO(Error("addCommonComponents() needs to be called before starting countdown."))}; iRE=function(p){return{y3:WJ(p,1,DWq)}}; Al=function(p,a){this.T_=p;this.hw=a}; g.YZ=function(p){g.X.call(this,p);this.VY=new g.qu;g.E(this,this.VY)}; TaF=function(p){p.Ic&&p.Ic.h$()&&p.rj()}; Ovo=function(p,a,l,y,S){if(p.Fd)return{"if":0,vs:0};var n=p.aI().clone().round(),V=p.r$?p.r$.U:null,z=TJ(),d=LO(),G=p.rd(),B=p.r$?p.r$.getName():"ns",c={};c["if"]=z.U?1:void 0;c.sdk=p.j?p.j:void 0;c.t=p.timeCreated;c.p=[n.top,n.left,n.bottom,n.right];n&&V&&!oL(V,n)&&(n=V.round(),c.cp=[n.top,n.left,n.bottom,n.right]);c.tos=Naq(G.S,!1);c.mtos=uj(G);c.mcvt=G.OO.U;c.ps=void 0;n=Ej(G,nu(),p.xr());c.vht=n;c.mut=G.Sb.U;c.a=aD(p.D1.volume);c.mv=aD(G.G);c.fs=p.sy?1:0;c.ft=G.UO.L;c.at=G.W.L;c.as=G.j>0?1:0; c.atos=Naq(G.L);c.ssb=Naq(G.Yv,!1);c.amtos=G3r(G.L,!1);c.uac=p.yQ;c.vpt=G.U.L;B=="nio"&&(c.nio=1,c.avms="nio");c.gmm="4";c.gdr=BX(p,G.U.L,!0)?1:0;c.efpf=p.va;if(B=="gsv"||B=="nis")B=p.r$,B.K>0&&(c.nnut=B.K);c.tcm=sFM(p);c.nmt=p.r7;c.bt=p.t9;c.pst=p.OO;c.vpaid=p.Sl;c.dur=p.U;c.vmtime=p.UO;c.is=p.xo.U;p.L.length>=1&&(c.i0=p.L[0].AB,c.a0=[p.L[0].IY],c.c0=[p.L[0].aX],c.ss0=[p.L[0].PW],B=p.L[0].position,n=p.L[0].mu,c.p0=B?eM(B):void 0,B&&n&&!oL(n,B)&&(c.cp0=eM(n)));p.L.length>=2&&(c.i1=p.L[1].AB,c.a1= Kr(p.L[1].Eq,p.L[1].IY,p.L[1].Lm),c.c1=Kr(p.L[1].wi,p.L[1].aX,p.L[1].Sy),c.ss1=Kr(p.L[1].Wv,p.L[1].PW,p.L[1].Uq),B=p.L[1].position,n=p.L[1].mu,c.p1=B?eM(B):void 0,B&&n&&!oL(n,B)&&(c.cp1=eM(n)),c.mtos1=p.L[1].Bv);p.L.length>=3&&(c.i2=p.L[2].AB,c.a2=Kr(p.L[2].Eq,p.L[2].IY,p.L[2].Lm),c.c2=Kr(p.L[2].wi,p.L[2].aX,p.L[2].Sy),c.ss2=Kr(p.L[2].Wv,p.L[2].PW,p.L[2].Uq),B=p.L[2].position,n=p.L[2].mu,c.p2=B?eM(B):void 0,B&&n&&!oL(n,B)&&(c.cp2=eM(n)),c.mtos2=p.L[2].Bv);p.L.length>=4&&(c.i3=p.L[3].AB,c.a3=Kr(p.L[3].Eq, p.L[3].IY,p.L[3].Lm),c.c3=Kr(p.L[3].wi,p.L[3].aX,p.L[3].Sy),c.ss3=Kr(p.L[3].Wv,p.L[3].PW,p.L[3].Uq),B=p.L[3].position,n=p.L[3].mu,c.p3=B?eM(B):void 0,B&&n&&!oL(n,B)&&(c.cp3=eM(n)),c.mtos3=p.L[3].Bv);c.cs=UWO(p.xo);a&&(c.ic=QFM(p.xo),c.dvpt=G.U.S,c.dvs=xG(G.S,.5),c.dfvs=xG(G.S,1),c.davs=xG(G.L,.5),c.dafvs=xG(G.L,1),l&&(G.U.S=0,CzE(G.S),CzE(G.L)),p.OD()&&(c.dtos=G.Bs,c.dav=G.Sl,c.dtoss=p.yW+1,l&&(G.Bs=0,G.Sl=0,p.yW++)),c.dat=G.W.S,c.dft=G.UO.S,l&&(G.W.S=0,G.UO.S=0));c.ps=[z.W.width,z.W.height];c.bs= [oU(z.L),z.L.getHeight()];c.scs=[z.j.width,z.j.height];c.dom=z.domain;p.W2&&(c.vds=p.W2);if(p.G.length>0||p.PO)a=g.hf(p.G),p.PO&&a.push(p.PO),c.pings=g.lb(a,function(r){return r.toString()}); a=g.lb(g.Tz(p.G,function(r){return r.G()}),function(r){return r.getId()}); Vsr(a);c.ces=a;p.S&&(c.vmer=p.S);p.Z&&(c.vmmk=p.Z);p.Bs&&(c.vmiec=p.Bs);c.avms=p.r$?p.r$.getName():"ns";p.r$&&g.Qt(c,p.r$.uS());y?(c.c=ps(p.D1.aX,2),c.ss=ps(p.D1.PW,2)):c.tth=nu()-hAf;c.mc=ps(G.Xu,2);c.nc=ps(G.K,2);c.mv=aD(G.G);c.nv=aD(G.j);c.lte=ps(p.tO,2);y=sBF(p,S);uj(G);c.qmtos=uj(y);c.qnc=ps(y.K,2);c.qmv=aD(y.G);c.qnv=aD(y.j);c.qas=y.j>0?1:0;c.qi=p.eR;c.avms||(c.avms="geo");c.psm=G.t9.L;c.psv=G.t9.getValue();c.psfv=G.VY.getValue();c.psa=G.Kz.getValue();d=nOM(d.sC);d.length&&(c.veid=d);p.W&&g.Qt(c, C3v(p.W));c.avas=p.OF();c.vs=p.Oj();c.co=q1$(p);c.tm=G.Hs;c.tu=G.nz;return c}; O0=function(p){p.OQ.P8();if(p.uh&&p.PY)p.PY=!1;else if(!p.api.C().nz&&!p.R6()){var a=p.api.getPlayerStateObject();g.h(a,2)&&g.vc(p.api)||p.xL(a);!p.api.C().Sb||a.isCued()||g.h(a,1024)?p.It():p.R2.isActive()?(p.Jp(),p.R2.stop()):p.R2.start()}}; Cw$=function(p){p=fzr(p);ea.call(this,p.length?p[p.length-1]:new XM(LU,0));this.U=p;this.S=null}; ALr=function(p){Gp(p)&&p.VN();BkM(p)&&(xv(p,"captions",!0),xv(p,"endscreen"),p.EF(),xv(p,"creatorendscreen",!0))}; Mp=function(p){return p.api.D("delhi_modern_web_player")?4:p.W?3:2}; gEM=function(p,a){a=a===void 0?"":a;var l=hT(a)||void 0;if(!a||!l){var y;p.wG({adcfg:(y=a)==null?void 0:y.length,dcfg:l==null?void 0:l.length})}return l}; Yyf=function(p,a){this.Y=p;this.timerName="";this.U=!1;this.S=NaN;this.j=new $xO;this.L=a||null;this.U=!1}; g.$s=function(p){return!!p.L&&mPh(p.L)}; qyo=function(p,a,l,y,S){var n=g.US(p.provider);a!==1&&a!==3&&a!==5||g.pt(p,n,"vps",[p.qe]);nR(p,"xvt","t."+n.toFixed(3)+";m."+S.toFixed(3)+";g.2;tt."+a+";np.0;c."+l+";d."+y)}; g.JLM=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,V:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z", fill:"#fff"}}]}}; xC=function(p,a,l){var y=[],S=p.track.Io;if(S){S=S.ea();for(var n=0;nn?S=0:y[V]>p.buffered[V]&&(V===n-1?S=2:V===n-2&&y[V+1]>p.buffered[V+1]&&(S=3))}p.L.add(a<<3|(l&&4)|S);a=Math.ceil(p.track.Ho()*1E3);p.L.add(a-p.W);p.W=a;if(S===1)for(p.L.add(n),V=a=0;V=2&&p.L.add(y[n- 1]-p.buffered[n-1]);l&&p.L.add(l);p.buffered=y}; fhE=function(p,a,l,y,S,n){var V=Ga(p.S.get(),"SLOT_TYPE_FORECASTING");a=L1(p,a,l,y);if(a instanceof W)return a;y=[new D6(p.L,V)];p=[new $1(p.L,V),new wG(p.L,l)];return{slotId:V,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:y,slotExpirationTriggers:p,iT:"core",clientMetadata:new Lc([new i8(n({slotId:V,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,iT:"core",slotEntryTrigger:a,slotFulfillmentTriggers:y,slotExpirationTriggers:p}))]),adSlotLoggingData:S}}; pxf=function(){var p=MH();try{var a=p.muted;p.muted=!a;return p.muted!==a}catch(l){}return!1}; lP=function(p,a){a.forEach(function(l){AE(p,l)})}; yAe=function(p,a){var l;return a.split(".")[0]!==""&&((l=p.api.getVideoData())==null?void 0:!rr(l))}; aK$=function(p,a,l){p instanceof String&&(p=String(p));for(var y=p.length,S=0;S1572864;return{innertubeRequest:{R5Y:p,CR:G,gR:B,encryptedClientKey:P,iv:a,A$O:!0,zC:!0,OX:"DecompressionStream"in window||!S,Idv:l.experiments.Cz("html5_use_jsonformatter_to_parse_player_response")},eK:n8h({s6:n,Ws:l,Lz:y,b5:r.startSeconds*1E3}),onesieUstreamerConfig:V, DE:z,Nf:qf(r),reloadPlaybackParams:(w=r.Hk)==null?void 0:w.reloadPlaybackParams,PTT:d}}; ruf=function(p){var a=!!p.Vn;g.mV(p.mS,a?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");$R(p.mS,!a);g.mV(p.n9,a?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");$R(p.n9,!a);g.mV(p.getVideoUrl,a?"Copiar URL del v\u00eddeo":"Obtener URL de v\u00eddeo");$R(p.getVideoUrl,!a);g.mV(p.K9,a?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");$R(p.K9,!a);p.n9.setIcon(a?duF():null); p.getVideoUrl.setIcon(a?P6():null);p.K9.setIcon(a?P6():null)}; z$r=function(p,a){if(p-3>=29&&p>>1<45){if(!(Zz(a[Z[9]])||a[Z[9]][Z[4]](Z[42])||a[Z[9]][Z[4]](Z[76])||a[Z[9]][Z[4]](Z[71])))throw new g.kc(Z[93],a[Z[9]]);var l=g.BB(a[Z[9]]);a[Z[41]]=l[Z[54]];a[Z[23]]=l[Z[8]]+(l[Z[23]]!=null?Z[83]+l[Z[23]]:Z[3]);var y=l[Z[9]];if(y[Z[4]](Z[26]))a[Z[2]]=Z[26],y=y[Z[15]](14);else if(y[Z[4]](Z[64]))a[Z[2]]=Z[64],y=y[Z[15]](13);else if(y[Z[4]](Z[40])){var S=xZ(1,y,a);y=S[0];a=S[1]}else a[Z[2]]=y,y=Z[3];S=a[Z[8]];a[Z[8]]=EM(29,y);Object[Z[43]](a[Z[8]],vg(5,l[Z[14]][Z[29]]())); Object[Z[43]](a[Z[8]],S);a[Z[8]][Z[27]]===Z[86]&&(delete a[Z[8]][Z[27]],a[Z[2]]+=Z[51]);a[Z[9]]=Z[3];a[Z[19]]=Z[3];a[Z[14]]&&(l=vg(9,a),a=l[0]);var n=[a]}(p+9&4)<2&&(p>>2&7)>=3&&(n=a!==null);return n}; S1=function(p){var a=g.T(p.renderingContent,iQ);if(a==null?0:a.pings)return jZ(a.pings);p=g.T(p.renderingContent,lp);return(p==null?0:p.skipPings)?new Map([["skip",p.skipPings]]):new Map}; VJf=function(p){g.D.call(this);var a=this;this.Lz=p;this.O4=0;this.G=this.S=this.W=!1;this.j=0;this.Ws=this.Lz.C();this.videoData=this.Lz.getVideoData();this.U=g.sW(this.Ws.experiments,"html5_delayed_retry_count");this.L=new g.l_(function(){a.Lz.EU()},g.sW(this.Ws.experiments,"html5_delayed_retry_delay_ms")); g.E(this,this.L)}; g.yQ=function(){return g.zv("yt-remote-session-screen-id")}; XG$=function(p){p=p.toString();CO();rPO(p)}; ZEe=function(p,a,l,y,S,n,V,z,d){var G=Number(y.durationMilliseconds);return isNaN(G)?new W("Expected valid duration for AdActionInterstitialRenderer."):function(B){return KCe(a,B.slotId,l,y,G,{impressionCommands:void 0,abandonCommands:y.abandonCommands?[{commandExecutorCommand:y.abandonCommands}]:void 0,completeCommands:y.completionCommands},y.skipPings?new Map([["skip",y.skipPings]]):new Map,V(B),function(c){return k9Z(p,c,S,function(r,w){var P=r.slotId;r=V(r);P=xc(a.S.get(),"LAYOUT_TYPE_ENDCAP", P);return fG(a,P,w,l,r,"LAYOUT_TYPE_ENDCAP",[new gP(y),z],y.adLayoutLoggingData)})},d,n-1,y.adLayoutLoggingData,n)}}; Srr=function(p,a,l,y,S,n){if(!n)for(a=g.t(a),n=a.next();!n.done;n=a.next())n=n.value,dO(p,n.renderer,n.config.adPlacementConfig.kind);p=Array.from(p.values()).filter(function(B){return o8F(B)}); a=[];n=g.t(p);for(var V=n.next(),z={};!V.done;z={dK:void 0},V=n.next()){z.dK=V.value;V=g.t(z.dK.Nd);for(var d=V.next(),G={};!d.done;G={W1:void 0},d=V.next())G.W1=d.value,d=function(B,c){return function(r){return B.W1.FR(r,c.dK.instreamVideoAdRenderer.elementId,B.W1.hK)}}(G,z),G.W1.isContentVideoCompanion?a.push(z0f(l,y,S,z.dK.instreamVideoAdRenderer.elementId,G.W1.associatedCompositePlayerBytesLayoutId,G.W1.adSlotLoggingData,d)):p.length>1?a.push(dnr(l,y,S,z.dK.instreamVideoAdRenderer.elementId,G.W1.adSlotLoggingData, function(B,c){return function(r){return B.W1.FR(r,c.dK.instreamVideoAdRenderer.elementId,B.W1.hK,B.W1.associatedCompositePlayerBytesLayoutId)}}(G,z))):a.push(dnr(l,y,S,z.dK.instreamVideoAdRenderer.elementId,G.W1.adSlotLoggingData,d))}return a}; g_=function(p,a,l){LV.call(this,p+", errorCode="+a);this.errorCode=a;this.xhr=l;this.name="PromiseAjaxError"}; Sz=function(p,a,l){yH(p,p[QB]|0,a,l,hx(p[QB]|0))}; GOq=function(p,a){try{return globalThis.sessionStorage.setItem(p,a),!0}catch(l){return!1}}; Ber=function(p,a,l){l=l===void 0?"":l;g.D.call(this);this.message=p;this.requestNumber=a;this.timer=l;this.onError=this.onSuccess=null;this.L=new g.r5(5E3,2E4,.2)}; g.Kw=function(){return{X:"svg",V:{height:"100%",viewBox:"0 0 16 16",width:"100%"},N:[{X:"path",V:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}}; cbE=function(p,a){if(!Hk(p))throw Error("IndexedDB is not supported: updateRequestHandlers");var l=a.options.onError?a.options.onError:function(){}; a.options.onError=function(S,n){var V,z,d,G;return g.R(function(B){switch(B.L){case 1:V=Ndr(n);(z=ovA(n))&&p.Cz&&p.Cz("web_enable_error_204")&&p.handleError(Error("Request failed due to compression"),a.url,n);if(!(p.Cz&&p.Cz("nwl_consider_error_code")&&V||p.Cz&&!p.Cz("nwl_consider_error_code")&&p.potentialEsfErrorCounter<=p.BP)){B.g7(2);break}if(!p.lN.mF){B.g7(3);break}return g.u(B,p.lN.mF(),3);case 3:if(p.lN.Dd()){B.g7(2);break}l(S,n);if(!p.Cz||!p.Cz("nwl_consider_error_code")||((d=a)==null?void 0: d.id)===void 0){B.g7(6);break}return g.u(B,p.xg.R0(a.id,p.PX,!1),6);case 6:return B.return();case 2:if(p.Cz&&p.Cz("nwl_consider_error_code")&&!V&&p.potentialEsfErrorCounter>p.BP)return B.return();p.potentialEsfErrorCounter++;if(((G=a)==null?void 0:G.id)===void 0){B.g7(8);break}return a.sendCountP&&(P=I.audioChannels,F=I.itag);S=new WT(S,"application/x-mpegURL",{audio:new dx(0,P),video:new HT(n,V,z,null,void 0,G,void 0,void 0,r),Hy:c,DP:F});p=new ere(p,a,l?[l]:[],y,!!w);p.j=B?B:1369843;return new VQ(S,p,d)}; bGr=function(p,a,l,y){if(sr(p.L,a)){var S=p.Tn,n=S.L0,V;var z=((V=aSM.get(y))==null?void 0:V.Bt)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";n.call(S,z,a,l);p=r1(p.L,a);p.L!=="rendering"&&xk(p.slot,p.L,"exitLayout");p.L="rendering_stop_requested";p.U.NE(l,y)}}; A8$=function(p,a){a=g.t(a);for(var l=a.next();!l.done;l=a.next()){var y=l.value;if(y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&y.fulfilledLayout)if(l=void 0,y.fulfilledLayout.renderingContent)l=PE(y.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(y.fulfilledLayout.z4){y=g.t(y.fulfilledLayout.z4);for(var S=y.next();!S.done&&(S=S.value,!S.renderingContent||!(l=PE(S.clientMetadata,"metadata_type_player_vars")));S=y.next());}}else l=void 0;if(l){p.BZ.get().B.preloadVideoByPlayerVars(l, 2,300);break}}}; F$F=function(p,a){var l;((l=p.W.get(a))!=null?l:[]).forEach(function(y){p.L===0&&p.UY.IJ("transitiondetector",y);if(p.L===1){var S=p.U,n;(n=S.L.get(y))==null||n.delay.dispose();S.L.delete(y)}}); p.W.delete(a)}; EI=function(p,a,l,y,S){g7.call(this,"Mejora de voz",g.Ya.wU);this.B=p;this.U=a;this.S=l;this.hasVoiceBoostAudioTrack=y;this.getVoiceBoostState=S;this.L=!1;this.U6=this.B.D("html5_enable_new_audio_settings_menu")?p.K0().Il:p.K0();this.J(p,"videodatachange",this.q2.bind(this));this.J(p,"onPlaybackAudioChange",this.q2);this.B.D("html5_enable_new_audio_settings_menu")||this.setIcon(uth());this.subscribe("select",this.j,this);this.q2()}; Z7=function(p,a,l,y,S){y=y===void 0?!1:y;g.D.call(this);this.Ws=a;this.useCobaltWidevine=y;this.jl=S;this.S=[];this.U={};this.L={};this.callback=null;this.W=!1;this.j=[];this.initialize(p,!l)}; nk=function(p){this.S=p}; g.sM=function(p,a,l){l=p.Lo===null?p.bM.Lo(a,l,p.mT[0].type):p.Lo;if(p.L){a=l?ik(8,p.L,a.yl):p.L;var y=new Yp(a);y.get("alr")||y.set("alr","yes");p.S&&E8q(y,p.S)}else/http[s]?:\/\//.test(p.S)?y=new Yp(new g.ib(p.S)):(y=qw(p.bM,l,a),p.S&&E8q(y,p.S));(a=p.range)?y.set("range",a.toString()):p.mT[0].L.Yk()&&p.mT.length===1&&p.mT[0].S&&y.set("range",p.mT[0].S+"-");p.requestId&&y.set("req_id",p.requestId);isNaN(p.gE)||y.set("headm",p.gE.toString());isNaN(p.W)||y.set("mffa",p.W+"ms");p.urlParams&&g.Re(p.urlParams, function(S,n){y.set(n,S)}); return y}; Ca$=function(p){var a=new g.YZ({X:"div",T:"ytp-ad-image-overlay",N:[{X:"div",T:"ytp-ad-overlay-ad-info-button-container"},{X:"div",T:"ytp-ad-overlay-close-container",N:[{X:"button",T:"ytp-ad-overlay-close-button",N:[qG(Jd)]}]},{X:"div",T:"ytp-ad-overlay-image",N:[{X:"img",V:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});p.J(a.d7("ytp-ad-overlay-image"),"click",function(l){T5(p,a.element,l)}); p.J(a.d7("ytp-ad-overlay-close-container"),"click",p.Sn);a.hide();return a}; Yk=function(p){LV.call(this,p)}; v8E=function(){this.L=new Map}; K$o=function(p,a){return new oR(p.K,p.U,a||p.L.reason)}; xbo=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"standardControlsInitialized",function(){var l=new vY(p);g.E(a,l);p.dj(l,"RIGHT_CONTROLS_LEFT")})}; xUo=function(p,a){a.includeDomain&&(p=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+p);var l=g.ZM("XSRF_FIELD_NAME");if(a=a.urlParams)a[l]&&delete a[l],p=VX(p,a);return p}; g.pj=function(p,a,l){return p.state.L[a].apply(p.state.L,g.u0(l))}; IKh=function(p,a,l,y){y=y===void 0?null:y;g.qu.call(this);this.element=p;this.videoData=a;this.Y=l;this.mediaElement=y;this.U=[];this.Hs=2;this.nz=this.QY=!1;this.heartbeatParams=null;this.Bs=this.Sl=!1;this.W=null;this.t9=!1;this.L=this.videoData.W;this.drmSessionId=this.videoData.drmSessionId||g.hQF();this.S=new Map;this.G=new Ag;this.K=new Ag;this.Xu=new g.hm(this);this.w7=this.Y.D("html5_eme_ignore_teardown_errors");(p=this.element)&&(p.addKey||p.webkitAddKey)||el()||U0(l.experiments);this.Y.D("html5_enable_vp9_fairplay")&& W9(this.L)?l=e0r:(l=this.videoData.XG,l=this.L.flavor==="fairplay"||l?Fz:e0r);this.Z=l;this.j=new YG(this.element,this.L,this.w7);g.E(this,this.j);b8(this.L)&&(this.UO=new YG(this.element,this.L,this.w7),g.E(this,this.UO));g.E(this,this.Xu);l=this.element;this.L.keySystemAccess?this.Xu.J(l,"encrypted",this.cgu):AN(this.Xu,l,b8(this.L)?["msneedkey"]:["needkey","webkitneedkey"],this.wZc);bEe(this);a:switch(l=this.L,p=this.Y.experiments,a=this.S,l.flavor){case "fairplay":Ad()>19.2999?(p=l.Zs,l=l.JX, l>=p&&(l=p*.75),a=(p-l)*.5,l=new zM(a,p,p-a-l,this)):l=null;break a;case "widevine":l=new d2(a,this,p);break a;default:l=null}if(this.W=l)g.E(this,this.W),this.W.subscribe("rotated_need_key_info_ready",this.tb,this),this.W.subscribe("log_qoe",this.HG,this);U0(this.Y.experiments);this.HG({cks:this.L.getInfo()})}; GM=function(){}; R0f=function(p){switch(p){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 p;default:return"sabr.config"}}; uGq=function(p,a){p=g.t(a);for(a=p.next();!a.done;a=p.next())if((a=a.value.renderer)&&(a.instreamVideoAdRenderer||a.linearAdSequenceRenderer||a.sandwichedLinearAdRenderer||a.instreamSurveyAdRenderer)){kC("ad_i");g.Bs({isMonetized:!0});break}}; qhr=function(p,a){if(a<0)throw Error();var l=p.L;a=l+a;if(a>p.U)throw Error();p.L=a;return l}; rC=function(p){this.L=p}; G$o=function(p,a){this.L=p;this.EO=a}; jG=function(p){if(!p.S||!p.policy.j&&!p.S.info.Mc){var a=p.G.L;p.S&&(a=a.filter(function(y){return y.audio.L===p.S.info.audio.L}),a.length||(a=p.G.L)); p.S=p.MO.L[a[0].id];if(a.length>1&&!p.policy.OO){if(!p.policy.QS){var l=g.rA(a,function(y){return y.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); l&&(p.S=p.MO.L[l.id])}l=!1;if(l=p.policy.Ae?!0:p.L.isLocked()?p.L.L<240:vwM(p,p.S))p.S=p.MO.L[g.Jt(a).id]}}}; aP=function(p){this.src=p;this.listeners={};this.L=0}; var XEq=function(p,a,l,y,S,n,V,z,d){return xZ[Z[5]](this,7,p,a,l,y,S,n,V,z,d)}; Gx=function(p,a){p.api.getPresentingPlayerType()!==1?p.Yv.style.removeProperty("clip-path"):(a||(a=R8(p,p.UO,h3(p))),p.Yv.style.clipPath='path("'+(p.aM?OEv(p,8,a,p.W?50:36,0,6):OEv(p,4,a,p.W?34:24,2,3))+'")')}; g.vW=function(p){var a=["ytp-cued-thumbnail-overlay"];p.C().G&&a.push("ytp-exp-contain-thumbnail");g.X.call(this,{X:"div",A9:a,N:[{X:"div",T:"ytp-cued-thumbnail-overlay-image"}]});a=this.d7("ytp-cued-thumbnail-overlay");var l=new g.BS(p);g.E(this,l);l.lT(a);this.S=new g.hm(this);g.E(this,this.S);this.api=p;this.j=this.d7("ytp-cued-thumbnail-overlay-image");this.U=l;this.fade=new g.Gq(this,250);g.E(this,this.fade);this.L=new g.l_(this.pz,0,this);g.E(this,this.L);this.pz();this.J(p,"appresize",this.VQ); this.J(p,"presentingplayerstatechange",this.onStateChange);this.J(p,"ypcStateChanged",this.yNl);$N(p.C())&&this.J(p,"videoplayerreset",this.onReset)}; r2=function(p){p.Y.w8&&!p.videoData.backgroundable&&p.mediaElement&&!p.Bl()&&(p.isBackground()&&p.mediaElement.LY()?(p.jl("bgmobile",{suspend:1}),p.zf(!0,!0)):p.isBackground()||cS(p)&&p.jl("bgmobile",{resume:1}))}; kOf=function(p,a,l){function y(z,d){(d=l[d])&&(n[z]=d)} function S(z,d){(d=l[d])&&(n[z]=V(d))} if(!l||g.cL(l))return p;var n=Object.assign({},p),V=a?encodeURIComponent:function(z){return z}; S("DV_VIEWABILITY","doubleVerifyViewability");S("IAS_VIEWABILITY","integralAdsViewability");S("MOAT_INIT","moatInit");S("MOAT_VIEWABILITY","moatViewability");y("GOOGLE_VIEWABILITY","googleViewability");y("VIEWABILITY","viewability");return n}; MJf=function(){LO();var p=TJ();return p.U||p.S?0:2}; eC$=function(p,a){return(a=NO(p,a))&&p[a]}; rqE=function(p){var a=[];if(p.L.reason==="m"||p.L.reason==="s")return a;if(mnO(p.MO)){for(var l=Math.max(0,p.Z-2);l=p.U&&!a}; drM=function(p,a,l,y){a={X:"span",A9:y,N:[a]};var S;y="ytp-swatch-color";if(p.j||p.L)y="ytp-swatch-color-white";l==="highres"?S="8K":l==="hd2880"?S="5K":l==="hd2160"?S="4K":l.indexOf("hd")===0&&l!=="hd720"&&(S="HD");S&&(a.N.push(" "),a.N.push({X:"sup",T:y,yY:S}));return a}; jGE=function(p,a){p=p.player.C();if(g.oV(p)||Gr(p)){p=g.ZM("INNERTUBE_CONTEXT");var l,y;(p==null?0:(l=p.adSignalsInfo)==null?0:l.advertisingId)&&typeof(p==null?void 0:(y=p.adSignalsInfo)==null?void 0:y.limitAdTracking)!=="undefined"&&(a.advertisingId=p.adSignalsInfo.advertisingId,a.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",a.limitAdTracking=p.adSignalsInfo.limitAdTracking)}}; Oy=function(p,a,l,y,S,n,V,z,d,G,B,c,r,w){w=w===void 0?null:w;g.D.call(this);var P=this;this.loader=p;this.policy=a;this.videoTrack=l;this.audioTrack=y;this.j=S;this.L=n;this.timing=V;this.W=z;this.schedule=d;this.MO=G;this.U=B;this.UO=c;this.DZ=r;this.GD=w;this.Xu=!1;this.XN="";this.IQ=null;this.gE=NaN;this.w7=!1;this.S=null;this.rE=this.Sl=NaN;this.QR=this.G=0;this.logger=new g.iF("dash");this.hg={Xc:function(F,v){return P.Xc(F,v)}}; this.policy.Tx>0&&(this.XN=g.VI(this.policy.Tx));this.policy.Rr&&(this.Z=new qd(this.loader,this.policy,this.schedule),g.E(this,this.Z))}; g.N6=function(p,a){this.width=p;this.height=a}; dlE=function(p,a){g.rA(a,function(l){return p.equals(l)})||a.push(p)}; W$o=function(p,a){p.U=!1;p.L&&(p.W=!0,p.L.abort(),p.W=!1);p.j=a;p.S=5;i$r(p);um(p)}; A$f=function(){var p=g.ZM("BATCH_CLIENT_COUNTER")||0;p||(p=Math.floor(Math.random()*65535/2));p++;p>65535&&(p=1);D_("BATCH_CLIENT_COUNTER",p);return p}; g.w2=function(p,a,l){g.JB(p.element,"ytp-suggestion-set",!!a.videoId);var y=a.playlistId;l=a.Gy(l?l:"mqdefault.jpg");var S=null,n=null;a instanceof Od&&(a.lengthText?(S=a.lengthText||null,n=a.bx||null):a.lengthSeconds&&(S=g.tQ(a.lengthSeconds),n=g.tQ(a.lengthSeconds,!0)));var V=!!y;y=V&&PY(y).type==="RD";var z=a instanceof Od?a.isLivePlayback:null,d=a instanceof Od?a.isUpcoming:null,G=a.author,B=a.shortViewCount,c=a.publishedTimeText,r=[],w=[];G&&r.push(G);B&&(r.push(B),w.push(B));c&&w.push(c);l= {title:a.title,author:G,author_and_views:r.join(" \u2022 "),aria_label:a.ariaLabel||g.ug("Ver $TITLE",{TITLE:a.title}),duration:S,timestamp:n,url:a.pC(),is_live:z,is_upcoming:d,is_list:V,is_mix:y,background:l?"background-image: url("+l+")":"",views_and_publish_time:w.join(" \u2022 "),autoplayAlternativeHeader:a.UG};a instanceof ul&&(l.playlist_length=a.playlistLength);p.update(l)}; E0O=function(p){return CJ(p,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; DnM=function(p,a,l){if(HEo){var y;$M(p.mediaElement,{l:"mswssb",sr:(y=p.mediaElement.Lz)==null?void 0:y.M3()},!1);a.xT(p.K,p);l.xT(p.K,p)}p.L=a;p.S=l;g.E(p,a);g.E(p,l)}; g.bi=function(p,a){return p.replace(iEr,function(l,y){try{var S=g.l6(a,y);if(S==null||S.toString()==null)return l;S=S.toString();if(S==""||!g.Ta(g.G1(S)))return encodeURIComponent(S).replace(/%2C/g,",")}catch(n){}return l})}; g.pA=function(p){window.clearInterval(p)}; Teq=function(){this.L=10;this.S=Date.now()}; Neh=function(p,a,l){var y;O4(p.uT.get(),"ads_qua","cpn."+PE(p.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((y=uo(p.ac.get(),2))==null?void 0:y.clientPlaybackNonce)+";qt."+a+";clr."+l)}; V_h=function(p){var a=p.j.filter(function(l){return l.isChecked()}); a.length!==0&&(a=a[0].getCommand(),p.layoutId?p.ZV.executeCommand(a,p.layoutId):g.iO(Error("Missing layoutId for ad feedback dialog.")),p.api.onAdUxClicked("ad-feedback-dialog-confirm-button",p.layoutId),p.publish("a"),p.hide())}; zS=function(p,a,l){var y,S=new Promise(function(n){y=setTimeout(n,a)}); return Promise.race([p.finally(function(){return void clearTimeout(y)}), S.then(l)])}; sGZ=function(p,a){var l=p.lM!==a;p.lM=a;l&&Vnf(p)}; C$=function(p){g.D.call(this);this.L=p;this.Ag=new Map}; N9=function(p,a,l){p.vW()?p.Ro():p.qE(a,l)}; bD=function(p){var a=PE(p.clientMetadata,"metadata_type_ad_placement_config");p=PE(p.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:a,D6:p}}; Jwf=function(p,a){p=w3(p.array,function(l){return a-l.start||1}); return p<0?-(p+1):p}; cnh=function(p){var a=g.KJ();if(a)if(a.clear(p),p)Bfh(p);else for(var l in lq)Bfh(l)}; PS=function(p){return function(a){return UnO(p,a)}}; g.r$=function(p,a,l){if(!g.BA(p)||!g.BA(a)||p.length!=a.length)return!1;var y=p.length;l=l||Ocq;for(var S=0;S0&&y.push(FRf(l)),g.u(n,Promise.race(y),2);S=V0$(p,a);return n.return(S)})}; uN=function(p){return p.isLive&&(0,g.Ek)()-p.nz>=p.Xu}; DB=function(p,a){g.M8("ytglobal.timing"+(a||"")+"ready_",p)}; ce=function(p){if(!p.Gm()&&p.U){p.G="paused";var a=jO(p);a.isFinal=!0;a.send();p.dispose()}}; dd=function(){}; Qm=function(p){this.B=p}; gUv=function(){var p=p===void 0?2E3:p;var a=a===void 0?15:a;var l=l===void 0?5:l;var y=y===void 0?2:y;return window&&"requestIdleCallback"in window?new M6(function(S){requestIdleCallback(function(){S()},{timeout:p})}):RHZ(p,a,l,y)}; g2o=function(p){var a,l;return g.R(function(y){if(y.L==1)return g.u(y,dpo(p),2);l=a=y.S;return y.return(l)})}; xM=function(p,a){return Object.prototype.hasOwnProperty.call(p,a)}; g.iT=function(p){return p.QY==="embedded"}; zI=function(p,a){var l=p.sendVisitorIdHeader?p.visitorData:void 0;return g.WH(p.Y,p.accessToken).then(function(y){return BJ(p.uri,p.Y,p.pageId,l,y,a)})}; KW$=function(p){p.U.read().then(p.Z,p.onError).then(void 0,R$)}; g.K6=function(p,a,l){var y=Du();return new g.ka("IDB_NOT_SUPPORTED",{context:{caller:p,publicName:a,version:l,hasSucceededOnce:y==null?void 0:y.hasSucceededOnce}})}; SD=function(p){p=p===void 0?LU:p;ea.call(this,new XM(p,2))}; i4=function(p,a){var l=YDE(p.provider);Object.assign(l,{state:p.G});a=new rw(p.provider.videoData,p.provider.Y,a,l);a.L=p.provider.Lz.Bi();l=p.provider.videoData.clientPlaybackNonce;a.L=p.provider.Lz.xG(l);p.provider.videoData.isLivePlayback||(a.Hs=p.provider.Lz.getDuration(l));p.provider.videoData.L&&(l=p.provider.videoData.L.d$(a.L))&&(a.UO=l-a.L,p.provider.Y.D("html5_disable_live_dvr_shrink_for_cdm_vss")&&Hx(p.provider.videoData)&&(a.L+=p.provider.Lz.Jg(),a.UO-=p.provider.Lz.Jg()));a.Kt=g.US(p.provider); a.segments=[QA(p.provider)];return a}; GzO=function(p){return XI(p.bZ).concat(XI(p.V9)).concat(XI(p.RI)).concat(XI(p.Nt)).concat(XI(p.fH))}; wL$=function(p,a,l){if(!p.Gm())if(a){Zi(p,{onkmtyp:l});p.status="km";switch(l){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":qDr(p,a);return;default:p.publish("ctmp","message_type",{t:l,l:a.byteLength})}p.Xu||(kC("drm_gk_f",void 0,p.videoData.UO),p.Xu=!0,p.publish("newsession",p));if(Ij(p.S)&&(a=LDE(a),!a))return;a=new Ber(a,++p.requestNumber,p.videoData.UO);jNo(a,function(y){Hwq(p,y)},function(y,S,n){if(!p.Gm()){var V=0; y.L.S>=3&&(V=1,S="drm.net.retryexhausted");Zi(p,{onlcsrqerr:S,info:n});p.error(S,V,n);p.shouldRetry(tF(V),y)&&Jlr(p,y)}}); g.E(p,a);wkA(p,a)}else p.error("drm.unavailable",1,"km.empty")}; JbF=function(p,a){var l=a.filter(function(S){return xO(p,S)===10}),y=a.filter(function(S){return xO(p,S)!==10}); return p.j.e8O?function(){var S=g.D1.apply(0,arguments);return g.R(function(n){if(n.L==1)return g.u(n,p.fgs.apply(p,[l].concat(g.u0(S))),2);p.aO.apply(p,[y].concat(g.u0(S)));g.lD(n)})}:function(){var S=g.D1.apply(0,arguments); p.eLu.apply(p,[l].concat(g.u0(S)));p.aO.apply(p,[y].concat(g.u0(S)))}}; fKf=function(p,a,l){var y=[];return g.Aw(p,{query:a},function(S){if(!(l!==void 0&&y.length>=l))return y.push(S.getValue()),g.Lt(S)}).then(function(){return y})}; T$=function(p){QH.call(this,p);var a=this,l={};this.Bs=(l.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},l.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(y){return kd$(a,y)},l.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(y){return kd$(a,y)},l.TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN=function(){return a.api.C().experiments.Cz("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?a.W&&a.Z:a.W&&a.K},l.TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER= function(){return a.w7},l); this.w7=this.Z=this.K=this.W=!1;this.j={};this.events=new g.hm(p);g.E(this,this.events);this.G=new g.Us(this.api.Fu().BA);g.E(this,this.G);this.api.D("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.sW(this.api.C().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")&&(l=g.sW(this.api.C().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds"),this.UO=new g.l_(this.Rz,l,this),g.E(this,this.UO));this.events.J(p,"videodatachange",function(y,S){if(y!=="dataupdated"|| S.videoId!==a.videoId||!K_(a.timelyActions,pSr(S)))a.onVideoDataChange(S)}); this.events.J(p,"presentingplayerstatechange",function(y){a.XP(y)}); p.D("enable_smart_skip_player_controls_shown_on_web")&&(this.events.J(p,"onShowControls",function(){a.W=!0;a.Rz()}),this.events.J(p,"onHideControls",function(){a.W=!1}),this.G.subscribe("hoverstart",function(){a.K=!0; a.Rz()},this),this.G.subscribe("hoverend",function(){a.K=!1},this),p.D("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.J(p,"progressBarHoverStart",function(){a.Z=!0; if(a.api.D("enable_smart_skip_web_player_bar_hover_length_threshold")){var y;(y=a.UO)==null||g.sb(y)}else a.Rz()}),this.events.J(p,"progressBarHoverEnd",function(){a.Z=!1; if(a.api.D("enable_smart_skip_web_player_bar_hover_length_threshold")){var y;(y=a.UO)==null||y.stop()}}))); p.D("enable_smart_skip_speedmaster_on_web")&&this.events.J(p,"speedmasterchanged",function(y){(a.w7=y)&&a.Rz()}); this.events.J(p,g.I4("timelyAction"),function(y){a.onCueRangeEnter(y.getId())}); this.events.J(p,g.c4("timelyAction"),function(y){a.onCueRangeExit(y.getId())}); p.D("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.J(p,"keyboardserviceglobalkeydown",function(y,S){if((lQ?y.altKey:y.ctrlKey)&&y.keyCode===39&&a.Sl&&a.L){var n;y=g.T((n=uY(a,a.L))==null?void 0:n.rendererContext,a7A);if(n=O6(y==null?void 0:y.onTap))a.api.xv("innertubeCommand",n),S&&(S.BT=!0),S=K1(),(n=l7v(S))&&(y=g.G2(0))&&$_(S.client,y,n,void 0)}},this); this.S=new g.X({X:"div",A9:["ytp-player-content","ytp-timely-actions-content"]});this.S.hide();Sa(p,"insertTimelyActionUi",function(y){a.S.element.children.length>0&&g.Jh(a.S.element);y.classList.add("ytp-timely-actions-overlay");a.S.element.appendChild(y)}); g.E(this,this.S);this.D("web_player_overlay_positioned_layout")?this.events.J(p,"basechromeinitialized",function(){a.api.n0(a.S.element,4,!0);a.S.element.setAttribute("data-overlay-order","10")}):g.uW(this.api,this.S.element,4)}; FR=function(p,a,l,y,S){return a>=400?(p.lastError="net.badstatus",!0):(S===void 0?0:S)?(p.lastError="ump.spsrejectfailure",!0):l||y!==void 0&&y?!1:(p.lastError=a===204?"net.nocontent":"net.connect",!0)}; gKA=function(p,a,l,y){var S,n,V;return g.R(function(z){switch(z.L){case 1:return S={config:p,hashData:a,timestamp:y!==void 0?y:(0,g.Ek)()},g.u(z,eO(l),2);case 2:return n=z.S,g.u(z,n.clear("hotConfigStore"),3);case 3:return g.u(z,g.RM(n,"hotConfigStore",S),4);case 4:return V=z.S,z.return(V)}})}; g.CL=function(p){return p.D("html5_local_playsinline")?ER&&!g.PT(602)&&!("playsInline"in MH()):ER&&!p.Sr||g.g8("nintendo wiiu")?!0:!1}; y1O=function(p,a,l){this.callback=p;this.slot=a;this.sO=l}; SRA=function(){var p=navigator;return new Promise(function(a,l){var y;(y=p.webkitTemporaryStorage)!=null&&y.queryUsageAndQuota?p.webkitTemporaryStorage.queryUsageAndQuota(function(S,n){a({usage:S,quota:n})},function(S){l(S)}):l(Error("webkitTemporaryStorage is not supported."))})}; Qfe=function(p,a){return a==null?null:p.U.find(function(l){return l.J9().layoutId===a})||null}; Ed=function(p,a,l){p.L.Dg();var y=O$(p,a);if(y>=0)return y;var S;(S=p.Z)==null||V5O(S,a,l);y=Math;S=y.min;var n=p.j;if(n.K)if(n=n.K,n.Fz&&n.Fz.type===3)n=n.Fz.startTime;else if(n.U>0){var V=n.L.index;V=g.qV(V.offsets.subarray(0,V.count),n.U*n.chunkSize);n=n.L.index.getStartTime(V>=0?V:Math.max(0,-V-2))}else n=0;else n=Infinity;a=S.call(y,a,n);p.S=p.policy.Xu?null:p.L.TA(a).mT[0];Gc(p)&&(p.policy.o$&&(l==null?void 0:l.seekSource)===60||p.Io&&p.Io.abort(),p.policy.e3&&(l=p.Z)!=null&&(l.U=void 0));p.Hs= 0;return p.S?p.S.startTime:a}; nMM=function(p,a){if(p.wC.S.currentState<2){var l=Gl(a,p.EO);l==="error"?p.callback.N2(p.slot,p.layout,new Xd("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:a},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):PO(p.Z1,p.layout,l)}}; Dze=function(){try{var p=window.navigator;if(p.getAutoplayPolicy&&typeof p.getAutoplayPolicy==="function"){var a=document.getElementsByClassName(g.k2.m5Y);var l=a.length>0&&a[0]?p.getAutoplayPolicy(a[0]):p.getAutoplayPolicy("mediaelement");if(Vzr[l])return Vzr[l]}}catch(y){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; g.N_=function(p){g.qu.call(this);this.loaded=!1;this.player=p}; ZLv=function(p,a){g.X.call(this,{X:"div",T:"ytp-info-panel-preview",V:{"aria-live":"assertive","aria-atomic":"true","aria-owns":a.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.wW(p.C()))},N:[{X:"div",T:"ytp-info-panel-preview-text",yY:"{{text}}"},{X:"div",T:"ytp-info-panel-preview-chevron",yY:"{{chevron}}"}]});var l=this;this.B=p;this.qe=this.L=this.videoId=null;this.isDismissed=this.U=this.showControls=this.S=!1;this.J(this.element,"click",function(){p.logClick(l.element);p.R6(); N9(a)}); this.fade=new g.Gq(this,250,!1,100);g.E(this,this.fade);this.B.createServerVe(this.element,this,!0);this.J(p,"videodatachange",this.onVideoDataChange);this.J(p,"presentingplayerstatechange",this.hW);this.J(this.B,"paidcontentoverlayvisibilitychange",this.CK);this.J(this.B,"infopaneldetailvisibilitychange",this.CK);var y=p.getVideoData()||{};Wfr(y)&&LC(this,y);this.J(p,"onShowControls",this.FS);this.J(p,"onHideControls",this.Ck);this.J(this.B,"infopaneldetaildismissed",function(){p.D("embeds_enable_info_panel_dismissal")&& (l.isDismissed=!0,l.hide())})}; mq=function(p){return!!p.lM&&!!p.lM.postId&&p.api.getPresentingPlayerType()!==2&&(!p.lM.type||p.lM.type==="clips")}; oMO=function(p,a,l,y,S,n,V,z){S=S===void 0?l.schedule:S;var d=g.JZ(p,xz),G;if(!p.vt)if(G=LaF(a,d)){var B=G.wO;G=G.signature}else G=B=a.encrypt(d),(0,g.Ek)(),G=M_M(new k5E(a.L.U),G,a.iv);return Fi(B&&G?{B0:B,gR:G}:{kpO:d},a,l,y,!!p.vt,S,n,V,z)}; zGE=function(p){var a,l,y=(a=p.L)==null?void 0:(l=a.bannerData)==null?void 0:l.itemData,S,n,V,z;if(!((y==null?0:y.priceReplacementText)||p.B.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(y==null?0:(S=y.dealsData)==null?0:(n=S.sales)==null?0:n.originalPrice))&&(y==null?0:(V=y.dealsData)==null?0:(z=V.priceDrop)==null?0:z.referencePrice)){var d,G;return y==null?void 0:(d=y.dealsData)==null?void 0:(G=d.priceDrop)==null?void 0:G.referencePrice}return null}; re=function(p){this.S={};this.logger=new g.iF(p)}; dFo=function(p,a){return a+1l.height?d>B?(y=d,S=G):(y=B,S=c):d0&&(this.L=new g.l_(this.Jb,a,this),g.E(this,this.L));this.W=new g.l_(this.Jb,l,this);g.E(this,this.W);this.Z=bLr(this.S,S,1,y);g.E(this,this.Z);this.K=bLr(this.S,0,y,1);g.E(this,this.K);this.j=new FM;g.E(this,this.j)}; yV=function(){var p=MJf();XM.call(this,LU.top,p,"geo")}; I7h=function(p,a,l){return l.renderingContent===void 0&&l.layoutId!==fH(p,a,l)?(hF("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",p.iM(),p.J9(),{requestingSlot:a,requestingLayout:l}),!1):!0}; c7=function(p){this.NO=Dm(p)}; qDr=function(p,a){Zi(p,{sdpvrq:1});p.G=Date.now();if(p.S.flavor!=="widevine")p.error("drm.provision",1,"e.flavor;f."+p.S.flavor+";l."+a.byteLength);else{var l={cpn:p.videoData.clientPlaybackNonce};Object.assign(l,p.Y.L);l=g.C2("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",l);a={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,a)}), responseType:"arraybuffer"};g.bR(l,a,3,500).then(Ee(function(y){y=y.xhr;if(!p.Gm()){y=new Uint8Array(y.response);var S=String.fromCharCode.apply(null,y);try{var n=JSON.parse(S)}catch(V){}n&&n.signedResponse?(p.publish("ctmp","drminfo",{provisioning:1}),n=(Date.now()-p.G)/1E3,p.G=NaN,p.publish("ctmp","provs",{et:n.toFixed(3)}),p.U&&p.U.update(y)):(n=n&&n.error&&n.error.message,y="e.parse",n&&(y+=";m."+n),p.error("drm.provision",1,y))}}),Ee(function(y){p.Gm()||p.error("drm.provision",1,"e."+y.errorCode+ ";c."+(y.xhr&&y.xhr.status))}))}}; QFM=function(p){var a=g.V_(p.S),l=0,y;for(y in p.L)g.rW(a,y)&&p.L[y]==1&&(l+=p.S[y][1],p.L[y]=2);return l}; JD=function(p){return TU(p)/p.playbackRate}; OrF=function(p){p.indexOf("watchtime")!==-1&&g.mf("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:p}})}; J6=function(p,a,l,y,S,n,V,z){this.j=p;this.K=a;this.U=l;this.G=y;this.L=S;this.W=n;this.S=V;this.Z=z}; oC=function(p,a){return a.b6?a.b6:a.Tw?bk(p.logger,function(){return a.b6=fSe(a.Tw)},"c"):[]}; RG$=function(p,a){this.S=p;this.subtleCrypto=a}; UXE=function(){var p=g.D1.apply(0,arguments);return function(a){return function(l,y){function S(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} l=a(l,y);var n={getState:l.getState,dispatch:function(V){return S.apply(null,[V].concat(g.u0(g.D1.apply(1,arguments))))}}; y=p.map(function(V){return V(n)}); S=dOo.apply(null,g.u0(y))(l.dispatch);return Object.assign({},l,{dispatch:S})}}}; u7=function(p){QH.call(this,p);var a=this;Sa(p,"getAvailableQualityData",function(){return a.getAvailableQualityData()}); Sa(p,"getAvailableQualityDataAndMessaging",function(){return a.getAvailableQualityDataAndMessaging()})}; uRv=function(p,a){a&&(Promise.all(p.j).then(function(){return void a.dispose()}),p.j=[])}; U6r=function(p){if(el()&&(g.yd||ER))p.j.push(new tZ("fairplay","com.apple.fps.1_0","",p.Ws.experiments));else{var a=OLA(),l=g.rA(p.S,function(y){var S=p.U[y],n=!1,V=!1,z;for(z in p.L[S.flavor])a(z,y)&&(S.L[z]=!0,n=n||z.indexOf("audio/")===0,V=V||z.indexOf("video/")===0);return n&&V}); l&&p.j.push(p.U[l]);p.S=[]}p.callback(p.j)}; l5$=function(p){p.Hs?p.Hs=!1:p.Sl=(0,g.Ek)();p.UO=!1;p.nz=!1;return new oR(p.K,p.U,p.L.reason)}; GKA=function(p,a,l,y){var S,n;return g.R(function(V){S=p.L();var z=new Ix;z=Hg(z,1,p.RE);n=Hg(z,2,a);z=V.return;var d=l.Nu,G=p.RE,B=p.client;var c=B.L;B=B.S+"/$rpc/google.internal.waa.v1.Waa/GenerateIT";var r=n,w=S||{},P=kMM,F=void 0;F=F===void 0?{}:F;c=AmA(c,B,r,w,P,F);return z.call(V,d.call(l,"g",G,y,c))})}; dHo=function(p){p.G||(p.G=!0,g.VU(p.yj,p))}; Of=function(p,a){var l;return((l=p.L.get(a))==null?void 0:MzZ(l.buffer))||0}; mFv=function(p,a){if(p.L){var l=p.L.YE.DI-(a.startTime+p.Z-p.L.YE.startSecs);l<=0||(l=new ET(p.L.YE.startSecs-(isNaN(p.Z)?0:p.Z),l,p.L.YE.context,p.L.YE.identifier,"stop",p.L.YE.L+a.duration*1E3),p.jl("cuepointdiscontinuity",{segNum:a.Rc}),zg(p,l,a.Rc))}}; RR=function(p){return function(){return GAr[p].apply(this,arguments)}}; QH=function(p){g.D.call(this);this.api=p}; qmo=function(p,a,l,y,S,n,V){l=l===void 0?[]:l;y=y===void 0?"":y;S=S===void 0?"":S;var z=sz(p.L).lU,d=p.player.getVideoData(1);d&&d.getPlayerResponse();d&&d.ke();l=k1Z(a,l,z,sz(p.L).xk);gIh(sz(p.L).By,y,l.Xf,l.vU,a,S,n,V)}; rBv=function(p){p=((p==null?void 0:p.playerOverlay)||{}).instreamSurveyAdRenderer;var a;if(p)if(p.playbackCommands&&p.questions&&p.questions.length===1){var l,y=((a=g.T(p.questions[0],bL))==null?void 0:a.surveyAdQuestionCommon)||((l=g.T(p.questions[0],Is))==null?void 0:l.surveyAdQuestionCommon);a=tzA(y)}else a=!1;else a=!1;return a}; pfr=function(p){var a=LO(),l=p7(R7);p&&!a.j&&(a.j=!0,l.Hs=!0,l.K&&l.fail("w",!0))}; LP=function(p,a,l,y,S,n,V){n=n===void 0?[]:n;var z=Ga(p.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");V||(V=[],y.oK&&y.oK.start!==y.Up.start&&V.push(new Ke(p.L,l,new rM(y.oK.start,y.Up.start),!1)),V.push(new Ke(p.L,l,new rM(y.Up.start,y.Up.end),y.yz)));y={getAdBreakUrl:a.getAdBreakUrl,gI:y.Up.start,WI:y.Up.end,cueProcessedMs:y.cueProcessedMs};a=new uP(p.L,z);n=[new BM(y)].concat(g.u0(n));return{slotId:z,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:V, slotExpirationTriggers:[new wG(p.L,l),new $1(p.L,z),new sq(p.L,z)],iT:"core",clientMetadata:new Lc(n),adSlotLoggingData:S}}; uB=function(p){var a=[],l=cH(p);l&&a.push(l);a=g.r8(a,p.j.V5());l=g.t(p.U);for(var y=l.next();!y.done;y=l.next()){y=y.value;for(var S=g.t(y.info.mT),n=S.next(),V={};!n.done;V={kL:void 0},n=S.next())V.kL=n.value,y.Ig&&(a=g.Tz(a,function(z){return function(d){return!AeA(d,z.kL)}}(V))),(Eg(V.kL)||V.kL.type===4)&&a.push(V.kL)}p.S&&!ekA(p.S,g.Jt(a),p.S.L.G4())&&a.push(p.S); return a}; na=function(p){return g.Gv(g.yI(),p)}; z0f=function(p,a,l,y,S,n,V){var z=Ga(p.S.get(),a);return cp(p,z,a,new Eb(p.L,S,["normal"]),[new wG(p.L,l),new $1(p.L,z),new Eb(p.L,y,["error"])],n,V)}; B3F=function(){var p=["pbs","pbu"];g.Es(function(){jM("").info.actionType="watch";p&&D_("TIMING_AFT_KEYS",p);D_("TIMING_ACTION","watch");var a=tpq(g.ZM("TIMING_INFO",{}));Object.keys(a).length>0&&OG(a);a={isNavigation:!0,actionType:HB(g.ZM("TIMING_ACTION"))};var l=g.ZM("PREVIOUS_ACTION");l&&(a.previousAction=HB(l));if(l=g.ZM("CLIENT_PROTOCOL"))a.httpProtocol=l;if(l=g.ZM("CLIENT_TRANSPORT"))a.transportProtocol=l;(l=g.G2())&&l!=="UNDEFINED_CSN"&&(a.clientScreenNonce=l);l=EAr();if(l===1||l===-1)a.isVisible= !0;l=IJ$().loadType==="cold";var y=n3h();l||(l=y.yt_lt==="cold");if(l){a.loadType="cold";l=n3h();y=hgr();var S=mG(),n=g.ZM("CSI_START_TIMESTAMP_MILLIS",0);n>0&&!g.oO("embeds_web_enable_csi_start_override_killswitch")&&(S=n);S&&(tn("srt",y.responseStart),l.prerender!==1&&WB(S));l=jRE();l>0&&tn("fpt",l);l=hgr();l.isPerformanceNavigationTiming&&OG({performanceNavigationTiming:!0},void 0);tn("nreqs",l.requestStart,void 0);tn("nress",l.responseStart,void 0);tn("nrese",l.responseEnd,void 0);l.redirectEnd- l.redirectStart>0&&(tn("nrs",l.redirectStart,void 0),tn("nre",l.redirectEnd,void 0));l.domainLookupEnd-l.domainLookupStart>0&&(tn("ndnss",l.domainLookupStart,void 0),tn("ndnse",l.domainLookupEnd,void 0));l.connectEnd-l.connectStart>0&&(tn("ntcps",l.connectStart,void 0),tn("ntcpe",l.connectEnd,void 0));l.secureConnectionStart>=mG()&&l.connectEnd-l.secureConnectionStart>0&&(tn("nstcps",l.secureConnectionStart,void 0),tn("ntcpe",l.connectEnd,void 0));ML&&"getEntriesByType"in ML&&Wzq();l=[];if(document.querySelector&& ML&&ML.getEntriesByName)for(var V in HLM)HLM.hasOwnProperty(V)&&(y=HLM[V],M0e(V,y)&&l.push(y));if(l.length>0)for(a.resourceInfo=[],V=g.t(l),l=V.next();!l.done;l=V.next())a.resourceInfo.push({resourceCache:l.value})}OG(a);a=k7();a.preLoggedGelInfos||(a.preLoggedGelInfos=[]);V=a.preLoggedGelInfos;a=Cjh();l=void 0;for(y=0;y0}; OR=function(p,a){return p.map(function(l){return $L(g.Bp(l,a))})}; A1e=function(p,a){var l=p.length,y=typeof p==="string"?p.split(""):p;for(--l;l>=0;--l)l in y&&a.call(void 0,y[l],l,p)}; kF=function(p){return p.Sj||oB(p)==="detailpage"||oB(p)==="shortspage"||p.mutedAutoplay}; gMF=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-ad-grid-card-text",N:[{X:"div",T:"ytp-ad-grid-card-text__metadata",N:[{X:"div",T:"ytp-ad-grid-card-text__metadata__headline"},{X:"div",T:"ytp-ad-grid-card-text__metadata__description",N:[{X:"div",T:"ytp-ad-grid-card-text__metadata__description__line"},{X:"div",T:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{X:"div",T:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",a,l,y);this.headline=new Ve(this.api,this.layoutId,this.interactionLoggingClientData, this.ZV);g.E(this,this.headline);this.headline.lT(this.d7("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new XZ(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,!0);g.E(this,this.moreInfoButton);this.moreInfoButton.lT(this.d7("ytp-ad-grid-card-text__button"))}; bm=function(p,a,l){l=l===void 0?{}:l;a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.code=p;this.metadata=l;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)}; eh=function(p,a,l,y){var S=l.getVideoData(),n=a.getVideoData();if(l.getPlayerState().isError())return{msg:"player-error"};var V=n.U;if(a.Bi()>y/1E3+1)return{msg:"in-the-past"};if(n.isLivePlayback&&!isFinite(y))return{msg:"live-infinite"};(y=a.F7())&&y.isView()&&(y=y.mediaElement);if(y&&y.JH().length>12&&g.gR(S))return{msg:"played-ranges"};if(!S.U)return null;if(!V)return{msg:"no-pvd-formats"};if(!S.U.L||!V.L)return{msg:"non-dash"};y=V.videoInfos[0];var z=S.U.videoInfos[0];p.UO&&nn(n)&&(y=a.Op(),z= l.Op());if(!y||!z)return{msg:"no-video-info"};if(p.G&&(W8(y)||W8(z)))return{msg:"av1"};a=p.j&&n.LC()&&MD();if(z.containerType!==y.containerType)if(a)n.jl("sgap",{ierr:"container"});else return{msg:"container"};if(p.W&&!a&&(z.h9!==y.h9||z.h9===""||y.h9===""))return{msg:"codec"};if(p.K&&z.video&&y.video&&Math.abs(z.video.width/z.video.height-y.video.width/y.video.height)>.01)return{msg:"ratio"};if(g.gR(n)&&g.gR(S))return{msg:"content-protection"};V=V.L[0];S=S.U.L[0];l=V.audio;var d=S.audio;if(l.sampleRate!== d.sampleRate&&!g.TE)if(a)n.jl("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:V.itag,cr:l.sampleRate,ni:S.itag,nr:d.sampleRate};return(l.numChannels||2)!==(d.numChannels||2)?{msg:"channel-count"}:p.Z&&n.LC()&&y.video.fps!==z.video.fps?{msg:"fps"}:null}; Go=function(p){AD.call(this,1,arguments);this.csn=p}; YRM=function(p,a,l){for(var y=!1,S=g.t(p.WG.entries()),n=S.next();!n.done;n=S.next())n=g.t(n.value).next().value,n.slotType==="SLOT_TYPE_PLAYER_BYTES"&&n.iT==="core"&&(y=!0);if(y){a:if(!l){p=g.t(p.WG.entries());for(l=p.next();!l.done;l=p.next())if(y=g.t(l.value),l=y.next().value,y=y.next().value,l.slotType==="SLOT_TYPE_IN_PLAYER"&&l.iT==="core"){l=y.layoutId;break a}l=void 0}l?a.tp(l):hF("No triggering layout ID available when attempting to mute.")}}; qRv=function(p,a,l,y,S){var n=(4-(jq.length+l.length)%4)%4,V=new Uint8Array(4+n+jq.length+4+l.length),z=new DataView(V.buffer),d=0;z.setUint32(d,Math.random()*4294967295);d=d+4+n;V.set(jq,d);d+=jq.length;z.setUint32(d,S);V.set(l,d+4);I_M(V,y);return p.zp(a,function(G){return void globalThis.sessionStorage.removeItem(G)})?GOq(a,g.MN(V))?"s":"t":"i"}; sR$=function(p,a,l,y,S){++p.U;a&&++p.W;ik(24,l.VS).startsWith("redirector.")&&(p.L=p.S.clone(),delete p.j,y.Qo&&delete S[ik(31,p.L)])}; RE=function(p){if(!p.userDisplayImage)return"";var a=p.userDisplayImage.split("/");if(a.length===5)return p=a[a.length-1].split("="),p[1]="s20-c",a[a.length-1]=p.join("="),a.join("/");if(a.length===8)return a.splice(7,0,"s20-c"),a.join("/");if(a.length===9)return a[7]+="-s20-c",a.join("/");g.Mf(new g.kc("Profile image not a FIFE URL.",p.userDisplayImage));return p.userDisplayImage}; J1E=function(p,a,l){return l.layoutId!==fH(p,a,l)?(hF("onSkipRequested for a PlayerBytes layout that is not currently active",p.iM(),p.J9()),!1):!0}; JW=function(p){return p.D("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.OL=function(p,a,l){var y={},S;for(S in p)a.call(l,p[S],S,p)&&(y[S]=p[S]);return y}; fa=function(p,a,l,y){y!=null||(y=!!(34&a));p=MK(p,a,f7F,y);y=32;l&&(y|=2);a=a&8380609|y;oW(p,a);return p}; QL=function(p){for(var a=0,l=g.t(p.U),y=l.next();!y.done;y=l.next())a+=GWq(y.value.info);return a+=ReO(p.j)}; LdF=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);this.L=new pnF(this.api);g.E(this,this.L);this.events.J(p,"videodatachange",function(){var l,y=(l=a.api.getVideoData())==null?void 0:l.y9z;l=a.L;if(y){var S,n,V=((S=y.title)==null?void 0:S.content)||"";S=((n=y.subtitle)==null?void 0:n.content)||"";l.update({title:V,subtitle:S});V=y.thumbnail;n="none";if(V==null?0:V.sources){S=0;V=g.t(V.sources);for(var z=V.next();!z.done;z=V.next())z=z.value,z.width&&z.url&&z.width> S&&(S=z.width,n="url("+z.url+")")}l.background.style.backgroundImage=n;gDF(l,y.actionButtons||[]);l.show()}else l.hide()}); g.uW(this.api,this.L.element,4)}; fMe=function(p){if(typeof p!=="number")throw i0("int32");if(!NC(p))throw i0("int32");return p|0}; a4o=function(p,a,l,y){l=l===void 0?!1:l;y=y===void 0?!1:y;var S=[];S.push({offset:0,transform:"translateX("+(p.S===-1?20:-20)+"px)",opacity:l?"0":"1"});l&&S.push({offset:.5,opacity:"1"});S.push({offset:1,transform:"translateX(0)",opacity:"1"});l=a.animate(S,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});a=a.querySelector("path");S=[];var n={offset:0,d:p.S===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};y&&(n.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");S.push(n); y&&S.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});p={offset:1,d:p.S===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};y&&(p.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");S.push(p);a.animate(S,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return l}; dj=function(p,a){a=a===void 0?"":a;return p.mE?wN(!0):jD(z0(wN(g.WH(p,a)),function(l){return wN(!!l)}),function(){return wN(!1)})}; l4o=function(p,a){var l=(a(p.error.message)+":"+a(p.error.stack)).substring(0,2048);a=l.length+1;l=fSe(l);var y=new Uint8Array(4+l.length);y.set([42,a&127|128,a>>7,p.error.code]);y.set(l,4);return y}; y2q=function(p){var a,l;return{requestNumber:((a=p.r7)==null?void 0:a.R1())||-1,isDecorated:(l=p.r7)==null?void 0:l.info.isDecorated()}}; dnr=function(p,a,l,y,S,n){var V=Ga(p.S.get(),a);return cp(p,V,a,new Hv(p.L,y),[new wG(p.L,l),new $1(p.L,V),new Eb(p.L,y,["error"])],S,n)}; g.kM=function(p){return(new OJh).Ut(p)}; bwr=function(p,a,l,y,S,n,V,z,d,G,B,c){if((c==null?void 0:c.gI)===void 0||(c==null?void 0:c.WI)===void 0)return new W("Cached ad break range from cue point is missing");var r=L3(l,S,y.TD);if(r instanceof W)return r;r={layoutExitMuteTriggers:[],layoutExitNormalTriggers:r.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.T(l.renderingContent,iQ))return p=SwO(p,a,l,r,S,n,z,d,y.TD,V,c.gI,c.WI),p instanceof W?p:p.T9===void 0? new W("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:p.layout,tN:[p.T9]};var w=g.T(l.renderingContent,qvr);if(w){if(!wk(l.adLayoutMetadata))return new W("Invalid ad layout metadata");if(!JEq(w))return new W("Invalid sequential layout");w=w.sequentialLayouts.map(function(P){return P.playerBytesAdLayoutRenderer}); p=PHo(p,a,l,r,w,S,y,n,V,d,z,G,c.gI,c.WI,B);return p instanceof W?p:{layout:p.K2,tN:p.tN}}return new W("Not able to convert a sequential layout")}; g.mV=function(p,a){p.updateValue("label",a)}; MF=function(p,a,l,y,S){JF.call(this,p,{X:"span",T:S?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",a,l,y);this.S=S;this.adBadgeText=new Ve(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV);this.adBadgeText.lT(this.element);g.E(this,this.adBadgeText);S?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),bp&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; h2r=function(p){var a=[];p=g.t(p.split(","));for(var l=p.next();!l.done;l=p.next()){var y=l.value;y&&((l=y.startsWith("!"))&&(y=y.substring(1)),y=y.split("-"),y.length<3||a.push({Pp:y[0],platform:y[1],deviceVersion:y[2],Qq:l}))}return a}; n$M=function(p){for(var a=p.key,l=p.counter[0]^a[0],y=p.counter[1]^a[1],S=p.counter[2]^a[2],n=p.counter[3]^a[3],V=3;V>=0&&!(p.counter[V]=-~p.counter[V]);V--);for(var z,d,G=4;G<40;)V=oF[l>>>24]^zb[y>>16&255]^da[S>>8&255]^Gb[n&255]^a[G++],z=oF[y>>>24]^zb[S>>16&255]^da[n>>8&255]^Gb[l&255]^a[G++],d=oF[S>>>24]^zb[n>>16&255]^da[l>>8&255]^Gb[y&255]^a[G++],n=oF[n>>>24]^zb[l>>16&255]^da[y>>8&255]^Gb[S&255]^a[G++],l=V,y=z,S=d;p=p.S;V=a[40];p[0]=Zh[l>>>24]^V>>>24;p[1]=Zh[y>>16&255]^V>>16&255;p[2]=Zh[S>>8&255]^ V>>8&255;p[3]=Zh[n&255]^V&255;V=a[41];p[4]=Zh[y>>>24]^V>>>24;p[5]=Zh[S>>16&255]^V>>16&255;p[6]=Zh[n>>8&255]^V>>8&255;p[7]=Zh[l&255]^V&255;V=a[42];p[8]=Zh[S>>>24]^V>>>24;p[9]=Zh[n>>16&255]^V>>16&255;p[10]=Zh[l>>8&255]^V>>8&255;p[11]=Zh[y&255]^V&255;V=a[43];p[12]=Zh[n>>>24]^V>>>24;p[13]=Zh[l>>16&255]^V>>16&255;p[14]=Zh[y>>8&255]^V>>8&255;p[15]=Zh[S&255]^V&255}; mz=function(p){var a=p.B.getRootNode();return p.B.D("web_watch_pip")||p.B.D("web_shorts_pip")?$c(a):document}; Xc=function(p){this.value=p}; oH=function(p){var a,l,y;return((a=p.B.getVideoData(1).getPlayerResponse())==null?void 0:(l=a.playerConfig)==null?void 0:(y=l.daiConfig)==null?void 0:y.enableServerStitchedDai)||!1}; VRo=function(){g.D.apply(this,arguments);this.element=null;this.G=new Set;this.K={};this.Z={};this.L={};this.Sl=new Set;this.U=new t1;this.S=new t1;this.j=new t1;this.W=new t1}; pV=function(p,a,l){p.S!==a&&(p.jl("sdai",{setsst:a,old:p.S,r:l}),p.S=a)}; aN=function(p){return jz(p)||x0(p)}; Iw=function(){var p=/WebKit\/([0-9]+)/.exec(g.yI());return!!(p&&parseInt(p[1],10)>=600)}; j1Z=function(p){var a,l=(a=d$(p))==null?void 0:a.info;return!l||h_(p,Math.min(l.W+Syv,l.G))}; g.Ez=function(p,a,l,y){l=l===void 0?!1:l;y=y===void 0?0:y;if(p.isLocked||a.isLocked||!PL(p.info,a.info)||p.info.j)return null;if(y){if(p.S.totalLength+a.S.totalLength>y)return null}else if(l&&(l=p.S,y=a.S,l=!(y.L.length?wWo(l,y.L[0]):1)),l)return null;l=new EL(p.info.type,p.info.L,p.info.range,p.info.K,p.info.Rc,p.info.startTime,p.info.duration,p.info.S,p.info.U,p.info.j,p.info.CC,p.info.clipId);y=a.info;l.U+=y.U;l.range&&(l.Z+=y.Z);l.G=y.G;l.j=y.j;y=new NN;sp(y,p.S);sp(y,a.S);l=new FD(l,y);l.L!= null&&a.L!=null&&g.JK("dash",414627957,"merged slice emsg overridden; prev: "+l.L.x0()+" next: "+a.L.x0());l.L=a.L||p.L;l.U=p.U!==-1?p.U:a.U;l.j=p.j!==-1?p.j:a.j;return l}; Kj=function(p){var a=[],l;for(l in p)if(p.hasOwnProperty(l)){var y=l;a.push(Hxv(y));y=g.t(p[y]);for(var S=y.next();!S.done;S=y.next())a.push(S.value.itag)}return a.join(".")}; bC=function(p,a,l,y){this.L=p;this.S=a;this.U=l;this.j=y}; vV=function(p,a,l){p.Y.t9&&(p.zD=a,a.muted||KN(p,!1),l&&p.Y.storeUserVolume&&!p.Y.EC&&(l={volume:Math.floor(a.volume),muted:a.muted},l.unstorable||(g.HE("yt-player-volume",l),g.HE("yt-player-volume",l,2592E3))),q3(p),l=g.TE&&p.mediaElement&&!p.mediaElement.w4(),p.Y.EC&&!l||p.Tm.uC("onVolumeChange",{muted:a.muted,volume:a.volume,unstorable:!p.Y.storeUserVolume}))}; WFr=function(p){var a=GW("_start",p),l=iF$(p),y=!ZgM;a&&l&&y&&(d5(o$$,new gF(Math.round(l-a),p)),ZgM=!0)}; GVf=function(p,a){if(a&&p.hlsvp)return YH();if(p.hlsFormats){a=BV(p.hlsFormats);var l;if(((l=p.L1)==null?0:l.S)&&a){l=[];for(var y=g.t(a),S=y.next();!S.done;S=y.next())l.push(S.value.itag);p.jl("hlsfmt",{itags:l.join(".")})}p.LO=zRh(p.Ws,a);p.LO&&LEv(p,p.LO);l=p.clientPlaybackNonce;var n,V,z,d;return dso(p.Ws,p.isAd(),a,(d=(n=p.playerResponse)==null?void 0:(V=n.captions)==null?void 0:(z=V.playerCaptionsRenderer)==null?void 0:z.baseUrl)!=null?d:null,p.Ha,l,function(G){return p.publish("ctmp","hlsflt", G)}).then(function(G){for(var B=0,c=[],r=g.t(G),w=r.next();!w.done;w=r.next()){w=w.value; var P=void 0;c.push((P=w.getInfo())==null?void 0:P.itag);var F=P=void 0;((P=w.getInfo())==null?void 0:(F=P.audio)==null?void 0:F.numChannels)>B&&(B=w.getInfo().audio.numChannels)}B>2&&p.jl("hlschl",{mn:B});var v;((v=p.L1)==null?0:v.S)&&p.jl("hlsfmtaf",{itags:c.join(".")});var I;if(p.D("html5_enable_vp9_fairplay")&&((I=p.W)==null?0:W9(I)))for(p.jl("drm",{sbdlfbk:1}),B=g.t(p.f9),c=B.next();!c.done;c=B.next())if(c=c.value,a9(c)){p.W=c;break}WS(p,G)})}return YH()}; m9F=function(p,a){var l=!1;if(a==="")return l;a.split(",").forEach(function(y){var S={},n={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},V="ACTIVE";y[0]==="!"&&(y=y.substring(1),V="INACTIVE");y=y.split("-");y.length<3||(y[0]in BKr&&(n.clientName=BKr[y[0]]),y[1]in c2$&&(n.platform=c2$[y[1]]),n.applicationState=V,n.clientVersion=y.length>2?y[2]:"",S.remoteClient=n,p.remoteContexts?p.remoteContexts.push(S):p.remoteContexts=[S],l=!0)}); return l}; g.gH=function(p,a,l,y,S,n){a=a===void 0?null:a;var V={role:"menu"};a&&(V.id=a);a=new g.YZ({X:"div",T:"ytp-panel-menu",V:V});P5.call(this,p,a,l,y,S,n);this.menuItems=a;this.items=[];g.E(this,this.menuItems)}; TTv=function(p){p.K=Error("Cancelled by dispose");p.W.resolve();XWo(p.G.promise);p.G.reject(Error("Cancelled by dispose"));p.logger.dispose();Promise.all(p.j).then(function(){var l;return g.R(function(y){(l=p.S)==null||l.dispose();p.S=void 0;g.lD(y)})}); p.j=[];var a;(a=p.L)!=null&&(a.endTimeMs=0,a.Qe(1));XWo(p.U.promise);p.U.reject(Error("Cancelled by dispose"))}; G5O=function(p){if(!r2F)return tY(p);p=wnh.test(p)?p.replace(wnh,$sr):p;p=atob(p);for(var a=new Uint8Array(p.length),l=0;l1||p&&p.split(")"),null;if(p.indexOf("(")>0){if(/"|'/.test(p))return null;a=/([\-\w]+)\(/g;for(var l;l=a.exec(p);)if(!(l[1].toLowerCase()in Ogh))return null}return p}; g.hh=function(p,a){p=lB(p);return p===void 0&&a!==void 0?a:Number(p||0)}; kVO=function(p,a){var l=-1,y=-1,S=-1,n;if((n=p.B_)==null?0:n.items)for(p=g.t(p.B_.items),n=p.next();!n.done;n=p.next())n=n.value,a=1?p[p.length-1]:null;for(var y=g.t(p),S=y.next();!S.done;S=y.next())if(S=S.value,S.width&&S.height&&(l&&S.width>=a||!l&&S.height>=a))return S;for(a=p.length-1;a>=0;a--)if(l&&p[a].width||!l&&p[a].height)return p[a];return p[0]}; f7=function(p){return window.navigator.msPointerEnabled?"MSPointer"+p.charAt(0).toUpperCase()+p.substring(1):"mouse"+p}; $We=function(p,a){a instanceof ez&&(p.r7=a);var l=new Set(a.vx(p.K1()));l=g.t(l);for(var y=l.next();!y.done;y=l.next()){var S=y.value;if(!(y=!(a instanceof Bg))){y=p.U;var n=y.MO.ke,V=OR(y.videoInfos,n);n=jdF(y,S,n);var z=V.includes(S);!y.z9.lO||n||z||y.loader.jl("sabrcpf",{fid:""+S,vfids:""+V.join("."),said:y.Z||""});y=n||V.includes(S)}if(y&&(y=a.V5(S,p.K1()),V=p.policy.L1&&QX(y[0].L.info.mimeType),a.ID(S,p.K1())))for(S=a.Po(S,p.K1()),S=g.t(S),n=S.next();!n.done;n=S.next())if(n=n.value,p.policy.U&& a instanceof Bg&&p.loader.jl("omblss",{s:n.info.AP()}),V)z=p.timing,z.UO||(z.UO=(0,g.Ek)(),g.Pf("fcb_r",z.UO,z.L)),z=p,z.videoData.ke()&&z.G&&$L(z.G)===$L(g.Bp(n.info.L.info,z.MO.ke))&&z.Lz.publish("sabrCaptionsDataLoaded",n,z.qU.bind(z));else{z=n.info.L.info.Qh();var d=n.info.L;if(z){var G=void 0;var B=p.U,c=(G=a.yg(p.K1()))==null?void 0:G.token;B.K&&d!==B.W?G=!0:(B.K=!1,d!==B.W&&(B.W=d,B.Jt(d,B.audioTrack,c)),G=!1);if(G)continue}else G=void 0,lar(p.U,d,(G=a.yg(p.K1()))==null?void 0:G.token);G=z? p.audioTrack:p.videoTrack;a instanceof Bg&&(G.K=!1,a instanceof Bg&&(z?jDh(p.timing):WjE(p.timing)));try{w5(G,y,n)}catch(r){n=jl(r),p.loader.handleError(n.errorCode,n.details,n.severity),G.FG(),p.Dv(!1,"pushSlice"),GL(p.loader)}}}}; rer=function(p,a){var l=qa(p,function(y,S){return S.video.fps>32?Math.min(y,S.video.width):y},Infinity); l32||y.video.width0&&(WpF(p)?(this.range=mor(p),this.U=this.range.length):(this.range=this.mT[this.mT.length-1].range,this.U=HgE(p)))}; Q1=function(p){QH.call(this,p);var a=this;this.loaded=!1;this.Z=0;this.L=!1;this.K={};this.S=[];this.j=0;this.G=!1;this.events=new g.hm(p);g.E(this,this.events);this.U=new g.hm(p);g.E(this,this.U);this.events.J(p,"modulesCreated",function(){a.oD()&&a.load()}); this.events.J(p,"modulesDestroyed",function(l){var y=a.api.getPresentingPlayerType();switch(l){case 2:case 3:l=y!==1&&!(y===5||y===6||y===7);break;case 4:l=!a.L;break;default:l=!0}l&&a.unload()})}; onv=function(p){if(!(p instanceof Object))throw new TypeError("Iterator result "+p+" is not an object");}; TM=function(p,a){var l={};if(p!==void 0)if(a!=null)for(var y in a){var S=a[y];y in Object.prototype||S!=null&&(l[y]=typeof S==="function"?S(p):p[S])}else g.Qt(l,p);return ks(nt(new SM,l))}; UD=function(p,a,l){p=Xb(p,a===void 0?0:a,l===void 0?-1:l);a=new Uint8Array(p.length);try{a.set(p)}catch(y){for(l=0;l4);S++)a[$dh(p[S])]||(l+="\nInner error "+y++ +": ",p[S].stack&&p[S].stack.indexOf(p[S].toString())==0||(l+=typeof p[S]==="string"?p[S]:p[S].message+"\n"),l+=Bd(p[S],a));S=y.start&&a<=y.end)return;if(a===y.end+1){y.end+=1;return}}p.r7.push(new FAM(a))}}; lH=function(p,a,l){p=p===void 0?100:p;a=a===void 0?100:a;l=l===void 0?T6e:l;g.D.call(this);this.sampleInterval=p;this.maxBufferSize=a;this.W=l;this.encoder=new ye;this.L=[];this.U=0;o2o(this)}; hp=function(p,a){if(!p)return-1;try{for(var l=0;l=a)return l}catch(y){}return-1}; g.TKM=function(p){if(p.videoData&&p.videoData.QO){for(var a=[p.videoData.QO],l=g.t(Object.keys(p.L)),y=l.next();!y.done;y=l.next())y=y.value,p.WL[y]&&p.L[y]&&(y=p.L[y](p.WL))&&a.push(y);return a.join("&")}return null}; g.UR=function(p,a,l,y){return new NE(g.T9[p]||0,g.T9[a]||0,l,y)}; g.h=function(p,a){return!!(p.state&a)}; UX=function(p){return p.h9==="9"||p.h9==="("||p.h9==="9h"||p.h9==="(h"}; NKF=function(p){var a=p.B.Fu().W9();p=p.B.uU(!0,!0);return a.height-(p.height+p.top)}; g.Bq=function(p){try{return p.L?p.L.responseText:""}catch(a){return""}}; mdM=function(p,a){if(p.L<7){var l=p.data,y=p.S;y>l.length&&(p.error=!0);p.register|=(l[y+1]<<8)+l[y]<=0)return WCe(p,l&15),l>>4;for(WCe(p,7);l<0;)l=a[k8(p,1)-l];return l>>4}; aRr=function(p,a,l,y,S,n){var V=this;n=n===void 0?[]:n;this.loader=p;this.w7=a;this.policy=l;this.MO=y;this.G=S;this.Ps=n;this.logger=new g.iF("dash/abr");this.L=Fz;this.U=this.K=null;this.Sl=-1;this.Hs=!1;this.nextVideo=this.S=null;this.j=[];this.r7=new Set;this.t9={};this.VY=new Dx(1);this.Z=0;this.OO=this.Xu=this.UO=!1;this.Bs=0;this.Kz=!1;this.QY=new Set;this.nz=!1;this.hg={Hp:function(){jG(V)}}; this.W=new cF(this.policy,S,function(z,d){V.loader.jl(z,d)})}; sdZ=function(p,a,l,y,S){return I0$(p,a,l,y,function(n,V){return new F2E(p.L,l,n,V,S)})}; u8q=function(p){return g.bx(Usr(),p)}; hRo=function(p,a){p.QQ.tick("vta");$B("vta",void 0,"video_to_ad");p.getCurrentTime()>0&&Qdr(p.GR,p.getCurrentTime());p.mediaElement.activate(a);p.Ic&&Fo(4);!p.videoData.Sl&&p.playerState.isOrWillBePlaying()&&p.DW.start();if(pOf(p)){var l;if(a=(l=p.mediaElement)==null?void 0:l.audioTracks())a.onchange=function(){p.publish("internalaudioformatchange",p.videoData,!0)}}}; A2v=function(p,a,l){var y=[];p=g.t(p);for(var S=p.next();!S.done;S=p.next())if(S=S.value,g.T(S,iQ)){S=u3(g.T(S,iQ),a,l);if(S instanceof Xd)return new W(S);y.push(S.uc)}return y}; rxh=function(p,a,l,y){var S={timeout:3E4,onSuccess:function(n){if(!p.Gm()){kC("drm_net_r",void 0,p.timer);var V=n.status==="LICENSE_STATUS_OK"?0:9999,z=null;if(n.license)try{z=tY(n.license)}catch(P){g.iO(P)}if(V!==0||z){z=new MYM(V,z);V!==0&&n.reason&&(z.errorMessage=n.reason);if(n.authorizedFormats){V={};for(var d=[],G={},B=g.t(n.authorizedFormats),c=B.next();!c.done;c=B.next())if(c=c.value,c.trackType&&c.keyId){var r=g$r[c.trackType];if(r){r==="HD"&&n.isHd720&&(r="HD720");c.isHdr&&(r+="HDR");V[r]|| (d.push(r),V[r]=!0);var w=null;try{w=tY(c.keyId)}catch(P){g.iO(P)}w&&(G[g.MN(w,4)]=r)}}z.S=d;z.L=G}n.nextFairplayKeyId&&(z.nextFairplayKeyId=n.nextFairplayKeyId);n.sabrLicenseConstraint&&(z.sabrLicenseConstraint=tY(n.sabrLicenseConstraint));n=z}else n=null;if(n)p.onSuccess(n,p.requestNumber);else p.onError(p,"drm.net","t.p;p.i")}}, onError:function(n){if(!p.Gm())if(n&&n.error)n=n.error,p.onError(p,"drm.net.badstatus","t.r;p.i;c."+n.code+";s."+n.status,n.code);else p.onError(p,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){p.onError(p,"drm.net","rt.req."+p.requestNumber)}}; y&&(S.K7="Bearer "+y);g.aZ(l,"player/get_drm_license",a,S)}; vS=function(p){g.D.call(this);this.j=p;this.logger=new g.iF("onesie");this.ir=new Map;this.S=this.L=!1;this.z9=this.MO=null;this.U=!1}; Ywf=function(p){var a=p.S;p=p.L;return p===""?a:typeof p==="boolean"?p?a:"":Array.isArray(p)?p.length===0?a:a+"="+p.join():a+"="+(g.rW(["mtos","tos","p"],a)?p:encodeURIComponent(p))}; nl=function(p,a,l,y){JF.call(this,p,{X:"img",T:"ytp-ad-avatar"},"ad-avatar",a,l,y);this.hide()}; qwA=function(p){this.L=p||g.dD.document||document}; g.jpZ=function(p){this.data=p;this.L=0;this.j=!1;this.U=0;this.error=!1;this.register=this.S=0;if(Mn.length===0){Mn.length=288;Mn.fill(8);for(p=144;p<280;p++)Mn[p]=p<=255?9:7;jfM.length=32;jfM.fill(5);QQ.length=286;QQ.fill(0);for(p=261;p<285;p++)QQ[p]=Math.floor((p-261)/4);h1[257]=3;for(p=258;p<285;p++){var a=h1[p-1];a+=1<0){var l=Math.floor((0,g.Ek)()/1E4);if(l===a.aT){if(a.xw>=p.Sl){a.xw===p.Sl&&(l={reason:"toomanyrequests"},l.limit=a.xw,p.loader.handleError("player.exception",l),a.xw+=1);a=!1;break a}}else a.aT=l,a.xw=0}a=!0}if(!a||p.loader.isSuspended&&p.loader.sF)return!1;if(p.UO&&(0,g.Ek)()0)||p.policy.UO&&p.L.length===1&&p.L[0].DC()))){var y;a=!((y=p.MO.Sl)!=null&&cv(y,p.policy,p.j,p.loader.II()))}if(a||YM(p.audioTrack)&& YM(p.videoTrack))return!1;if(p.policy.S)if(p.policy.G){var S;if((S=p.Z)==null?0:eU$(S))return!1}else if(y=!1,p.w7.S===2?y=!0:p.w7.S===3&&(SlM(p),p.loader.Jg(),l=nw(p.audioTrack,p.loader.isSeeking()).wq,S=nw(p.videoTrack,p.loader.isSeeking()).wq,a=p.loader.getCurrentTime()||0,l=qF(p,l,a),S=qF(p,S,a),S=Math.min(l,S),a=p.w7,S>=a.W?(a.jl("sdai",{haltrq:S,est:a.W}),S=!0):S=!1,S&&(y=!0)),y&&p.policy.K&&p.loader.jl("sabrcrq",{waitad:1}),y)return!1;p.policy.SD&&(p.Bs=J1(p,p.audioTrack),p.QY=J1(p,p.videoTrack)); if(!p.S)return p.policy.K&&p.loader.jl("sabrcrq",{nopolicy:1}),!0;if(p.Lz.cA())return p.policy.K&&p.loader.jl("sabrcrq",{utc:1}),!0;if(p.U.K)return p.policy.K&&p.loader.jl("sabrcrq",{audio:1}),!0;if(!p.S.targetAudioReadaheadMs||!p.S.targetVideoReadaheadMs)return p.policy.K&&p.loader.jl("sabrcrq",{noreadahead:1}),!0;if(p.policy.W&&p.loader.rR())return p.policy.K&&p.loader.jl("sabrcrq",{seekToHead:1}),!0;y=Math.min(L0(p.loader,p.audioTrack)*1E3,p.S.targetAudioReadaheadMs);S=Math.min(L0(p.loader,p.videoTrack)* 1E3,p.S.targetVideoReadaheadMs);l=Math.min(y,S);var n=p.Lz.getCurrentTime()*1E3,V=QHO(p);a=V.Im;V=V.yb;if(p.policy.SD){var z=li(p.Bs.wq,n);var d=li(p.QY.wq,n)}else z=a,d=V;var G=z(0,g.Ek)()?0:1}; g.g5=function(p){return/^TVHTML5/.test(lm(p))}; g.cl=function(p){var a,l;return!!((a=p.embeddedPlayerConfig)==null?0:(l=a.embeddedPlayerFlags)==null?0:l.enableMusicUx)}; YL=function(p,a,l,y){g.X.call(this,{X:"div",T:"ytp-chapter-container",N:[{X:"button",A9:["ytp-chapter-title","ytp-button"],N:[{X:"span",V:{"aria-hidden":"true"},T:"ytp-chapter-title-prefix",yY:"\u2022"},{X:"div",T:"ytp-chapter-title-content",yY:"{{chapterTitle}}",V:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:p.D("player_tooltip_data_title_killswitch")?y:"","data-tooltip-title":y}},{X:"div",T:"ytp-chapter-title-chevron",N:[{X:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},N:[{X:"path", V:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.B=p;this.j=a;this.G="";this.currentIndex=0;this.S=void 0;this.U=!0;this.w7=this.d7("ytp-chapter-container");this.L=this.d7("ytp-chapter-title");this.W=this.d7("ytp-chapter-title-content");this.Z();this.updateVideoData("newdata",this.B.getVideoData());this.J(p,"videodatachange",this.updateVideoData);this.J(p,"resize",this.Z);this.J(this.w7,"click",this.onClick);this.J(p,g.I4(l),this.rq);this.J(p,"onLoopRangeChange", this.rq);this.J(p,"innertubeCommand",this.onClickCommand);(p=g.fL(this.B.C()))&&g.JB(this.L,"ytp-profile-page",!0);g.wW(this.B.C())||p||OC(this.B,this.W,this)}; t0=function(p){return p.api.isFullscreen()||p.r7&&p.api.c9()}; f7F=function(p,a){if(typeof p!=="object")return p;if(Array.isArray(p)){var l=p[QB]|0;p.length===0&&l&1?p=void 0:l&2||(!a||4096&l||16&l?p=fa(p,l,!1,a&&!(l&16)):(YS(p,34),l&4&&Object.freeze(p)));return p}if(p!=null&&p[gC]===Yc)return a=p.NO,l=a[QB]|0,qN(p,l)?p:XG(p,a,l)?YY(p,a):fa(a,l);if(p instanceof Jm)return p}; ooF=function(p){var a=this;this.L={};this.U={};this.hg={cJs:function(){return a.L}}; this.videoData=p;var l,y=(l=p.U)==null?void 0:l.S;y&&y.length>0?this.S=y:(p=p.getAvailableAudioTracks(),this.S=p.length>0?nov(p):[]);p=g.t(VEh);for(l=p.next();!l.done;l=p.next())l=l.value,this.L[l]=Z4F[l](this.S);this.GM()}; z6M=function(p){var a,l=p.videoData.getAvailableAudioTracks(),y=p.Y.VY;y&&(a=l.find(function(n){return n.getLanguageInfo().id===y})); if(p.Y.experiments.Cz("enable_audio_description_setting")&&g.hn().Zy(198)){l=g.t(l);for(var S=l.next();!S.done;S=l.next())if(S=S.value,S.W){a=S;break}}a||(p=p.getAudioTrack(),a=p.Mc.isDefault?void 0:p);return a}; iP=function(p,a,l){for(var y in p.L){var S=QX(p.L[y].info.mimeType)||p.L[y].info.HX();if(l===S&&(S=p.L[y].index)!=null){var n=pg(S,a);n>=0&&S.segments.splice(n,1)}}}; d2=function(p,a){ad.call(this);var l=this;this.U=p;this.L=[];this.S=new g.l_(function(){l.publish("log_qoe",{wvagt:"timer",reqlen:l.L?l.L.length:-1});if(l.L){if(l.L.length>0){var y=l.L.shift();kSo(l,y.info)}l.L.length>0&&(y=l.L[0].time-(0,g.Ek)(),l.S.start(Math.max(0,y)))}},0); g.E(this,this.S);a.subscribe("widevine_set_need_key_info",this.j,this)}; d0q=function(){this.L={}}; g.KU=function(p){return Apo(p.S)}; G7$=function(p,a){p=p.flags.get(""+a);return Number(p)||0}; B4$=function(p){var a=p.S[p.j];if(a){var l=p.K[a];a=l.playerVars;l=l.playerType;p.L=!0;p.j++;var y=p.api.getVideoData(1);a=Object.assign({oauth_token:y.oauthToken},a);p.api.loadVideoByPlayerVars(a,!0,l,!0);p.L=!1}}; ccE=function(p){return(p.G-p.L)/1E3}; qtq=function(p,a){if(p.G)return!!p.G[a.name];if(a===Dt.BITRATE&&p.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!p.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(a===Dt.AV1_CODECS)return p.isTypeSupported("video/mp4; codecs="+a.valid)&&!p.isTypeSupported("video/mp4; codecs="+a.t4);if(a.video){var l='video/webm; codecs="vp9"';p.isTypeSupported(l)||(l='video/mp4; codecs="avc1.4d401e"')}else l='audio/webm; codecs="opus"', p.isTypeSupported(l)||(l='audio/mp4; codecs="mp4a.40.2"');return p.isTypeSupported(l+"; "+a.name+"="+a.valid)&&!p.isTypeSupported(l+"; "+a.name+"="+a.t4)}; nz=function(p,a,l,y,S,n){bT.call(this,p,a,l,y);this.sO=S;this.W=n;this.j=!1}; rch=function(p,a,l,y){wt.call(this,"invideo-overlay",p,a,l,y);this.interactionLoggingClientData=y}; wh$=function(p){this.L=p}; Hy=function(){return(jj||Wy)&&Si?!Si.mobile&&(na("iPad")||na("Android")||na("Silk")):na("iPad")||na("Android")&&!na("Mobile")||na("Silk")}; lZ=function(p){return p.L&&p.w8}; XN=function(p){if(p!=null&&typeof p!=="string")throw Error();return p}; e1r=function(p,a){var l=[];if(!a.length)return l;a.sort(g.wg);a=g.t(a);for(var y=a.next();!y.done;y=a.next())y=y.value,p.S.splice(p.S.indexOf(y),1),l.push([2,y]);return l}; eYf=function(){if(document.visibilityState)var p="visibilitychange";else{if(!document[$Q+"VisibilityState"])return"";p=$Q+"visibilitychange"}return p}; sPh=function(p){hF("Received layout exit signal when not in layout exit flow.",p.slot,p.layout)}; Fb=function(p,a,l,y){var S="fmt.unplayable",n=1;l===5||l===3?(S="fmt.unparseable",p.policy.L?!y.L.info.video||nv(p.j.L).size>0||E$(p.j.L,y.L,!1):!y.L.info.video||nv(p.L.W).size>0||C0(p.L,y.L)):l===2&&(p.Ha<15?(p.Ha++,S="html5.invalidstate",n=0):S="fmt.unplayable");y=$8(y);var V;y.mrs=(V=p.Ic)==null?void 0:B1(V);y.origin=a;y.reason=l;y.trg="appenderr";p.handleError(S,y,n)}; $0q=function(p,a){return y8(p,a.XX,a.slotType)?!0:!1}; wfh=function(p,a,l){if(!p)throw Error();if(arguments.length>2){var y=Array.prototype.slice.call(arguments,2);return function(){var S=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(S,y);return p.apply(a,S)}}return function(){return p.apply(a,arguments)}}; v3Z=function(p,a){p.L=a}; PMo=function(p){return!!p.playlist&&!p.L&&!!p.videoData&&!p.videoData.isLivePlayback&&p.B.getCurrentTime()>=3&&p.B.getPresentingPlayerType()!==2}; SR=function(){this.j=this.L=this.S=0;this.U=!1}; LIr=function(p){p.menuItem||(p.menuItem=new pR(p.api),g.E(p,p.menuItem),p.menuItem.pz(p.L))}; eJ=function(p,a,l){l=l===void 0?0:l;var y=p.mimeType||"",S=p.itag;var n=p.xtags;S=S?S.toString():"";n&&(S+=";"+n);n=S;if(Pe(y)){var V=p.width||640;S=p.height||360;var z=p.fps,d=p.qualityLabel,G=p.qualityOrdinal,B=p.colorInfo,c=p.projectionType,r;p.stereoLayout&&(r=Xhr[p.stereoLayout]);var w=oXO(p)||void 0;if(B==null?0:B.primaries)var P=x0r[B.primaries]||void 0;V=new HT(V,S,z,c,r,void 0,d,G&&FIe[G],w,P);y=ap(y,V,lw[p.itag||""]);yz&&(y+="; enableflushduringseek=true");Su&&(y+="; enableresetaudiodecoder=true")}var F; if(n5(y)){var v=p.audioSampleRate;r=p.audioTrack;v=new dx(v?+v:void 0,p.audioChannels,p.spatialAudioType,p.isDrc,p.loudnessDb,p.trackAbsoluteLoudnessLkfs,p.audioQuality||"AUDIO_QUALITY_UNKNOWN",p.isVb);r&&(P=r.displayName,S=r.id,r=r.audioIsDefault,P&&(F=new g.AQ(P,S||"",!!r)))}var I;p.captionTrack&&(d=p.captionTrack,r=d.displayName,P=d.vssId,S=d.languageCode,z=d.kind,d=d.id,r&&P&&S&&(I=new iiF(r,P,S,z,p.xtags,d)));r=Number(p.bitrate)/8;P=Number(p.contentLength);S=Number(p.lastModified);d=p.drmFamilies; z=p.type;l=l&&P?P/l:0;p=Number(p.approxDurationMs);if(a&&d){var b={};d=g.t(d);for(G=d.next();!G.done;G=d.next())(G=Eof[G.value])&&(b[G]=a[G])}return new WT(n,y,{audio:v,video:V,Mc:F,Hy:b,Lx:r,gj:l,contentLength:P,lastModified:S,captionTrack:I,streamType:z,approxDurationMs:p})}; UWO=function(p){var a=0,l;for(l in p.L){var y=p.L[l];if(y==1||y==2)a+=p.S[l][1]}return a}; klq=function(p,a,l,y){return a&&l.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&p instanceof oJ?new I9(function(S){return K3(y,S)},l.adSlotMetadata.slotId):p}; g.IL=function(p,a,l){var y=g.KJ();if(y&&a){var S=y.subscribe(p,function(){function n(){yC[S]&&a.apply&&typeof a.apply=="function"&&a.apply(l||window,V)} var V=arguments;try{g.ng[p]?n():g.aY(n,0)}catch(z){g.K8(z)}},l); yC[S]=!0;lq[p]||(lq[p]=[]);lq[p].push(S);return S}return 0}; g.V8=function(p){this.I4=p}; uh=function(p,a,l,y){function S(){return n.S} g.D.call(this);var n=this;p.C().experiments.Cz("html5_dispose_of_manager_before_dependency")?(this.L=CMF(S,p,a,l,y),this.S=(new a1(this.L)).U(),g.E(this,this.S),g.E(this,this.L)):(this.L=CMF(S,p,a,l,y),g.E(this,this.L),this.S=(new a1(this.L)).U(),g.E(this,this.S))}; SFe=function(p,a){var l=uB(p.videoTrack).find(function(y){return y.startTime>=a&&Hnv(p,y.startTime,!1)}); return l&&l.startTime0&&(a.ej=l.cI));a.XG=l.XG;a.R7=N4(y,{},l.U||void 0,rD(l));a.Yv=Fh(l)&&(g.dB(y)||g.sf(y));gQ(l)&&(a.W=!0,a.r8=y.D("html5_estimate_live_partial_slice_duration"), g.g5(y)&&!g.pT()&&y.D("html5_force_audio_to_cover_video_keyframe")?a.Ha=!1:a.Ha=!0,y.D("html5_sabr_report_partial_segment_estimated_duration")&&(a.hX=!0),a.L=!0,a.Hk=y.D("html5_disable_client_resume_policy_for_sabr"),a.zo=y.D("html5_trigger_loader_when_idle_network"),a.Ks=y.D("html5_sabr_parse_live_metadata_playback_boundaries"),a.er=y.D("html5_consume_onesie_next_request_policy_for_sabr"),a.j_=y.D("html5_sabr_report_next_ad_break_time"),a.qa=y.D("html5_log_high_res_buffer_timeline")&&y.ao(),a.F4= y.D("html5_remove_stuck_slices_beyond_max_buffer_limits"),a.g3=y.D("html5_gapless_sabr_btl_last_slice")&&nn(l),a.e3=y.D("html5_reset_last_appended_slice_on_seek")&&nn(l),Qe(l)?(a.Cs=!0,a.RK=y.D("html5_disable_variability_tracker_for_live"),a.VY=!0,y.D("html5_simplified_backup_timeout_sabr_live")&&(a.yP=!0,a.rP=a.Zv)):a.Kt=y.D("html5_probe_request_on_sabr_request_progress"),a.OI=y.D("html5_serve_start_seconds_seek_for_post_live_sabr"),a.n1=y.D("html5_flush_index_on_updated_timestamp_offset"),a.UO= gQ(l),a.N7=y.D("html5_ignore_partial_segment_from_live_readahead"),y.D("html5_include_partial_segment_for_jumbo_ll")&&YK(l)&&(a.N7=!1),a.Cl=y.D("html5_use_non_active_broadcast_for_post_live"),a.t9=y.D("html5_use_centralized_player_time"),a.oo=y.D("html5_log_centralized_player_time"),a.yS=y.D("html5_consume_onesie_sabr_seek"),a.Xu=y.D("html5_enable_sabr_seek_loader_refactor"),a.ye=g.sW(y.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),a.Ve=y.D("html5_update_segment_start_time_from_media_header"), l.enableServerStitchedDai&&(a.S=!0,a.Go=y.D("html5_reset_server_stitch_state_for_non_sabr_seek"),a.Vu=y.D("html5_remove_ssdai_append_pause")&&!l.vy(),a.qc=y.D("html5_ssdai_log_ssevt_in_loader")||y.D("html5_ssdai_log_ssevt_in_loader_200ms")||y.D("html5_ssdai_log_ssevt_in_loader_timers")||y.D("html5_ssdai_log_ssevt_in_loader_cuerange"),y.D("html5_ssdai_log_ssevt_in_loader_timers")?a.yQ=1:y.D("html5_ssdai_log_ssevt_in_loader_200ms")?a.yQ=3:y.D("html5_ssdai_log_ssevt_in_loader_cuerange")&&(a.yQ=0)),a.W8= y.ao()||l.vy(),a.on=l.ke()&&y.D("html5_prebuffer_instream_media_live")&&y.D("html5_report_prefetch_requests"),a.q$=!l.ke()&&y.D("html5_prebuffer_instream_media_vod")&&y.D("html5_report_prefetch_requests"));a.L1=g.qTr(l);H8(y.W,Dt.BITRATE)&&(a.Lx=NaN);if(z=g.sW(y.experiments,"html5_request_size_max_kb"))a.r7=z*1024;y.W.U?a.O2="; "+Dt.EXPERIMENTAL.name+"=allowed":y.D("html5_enable_cobalt_tunnel_mode")&&g.pT()&&(y=Dt.TUNNELMODE,a.O2="; "+y.name+"="+y.valid);l=l.serverPlaybackStartConfig;(l==null?0:l.enable)&& (l==null?0:l.playbackStartPolicy)&&(a.Ko=!0,gX$(a,l.playbackStartPolicy,2));l=z6M(p);p.Qv.removeAll();a:{y=p.TR.Bf;if(z=p.videoData.videoId)if(S=y.L.get(z)){y.L.remove(z);y=S;break a}y=void 0}p.loader=new g.kE(p,p.s6,a,p.videoData.L,p.videoData.U,EA(p),l,p.videoData.enableServerStitchedDai,y,p.videoData.UO);a=p.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&p.videoData.isLivePlayback&&p.q9()?!0:p.m0&&g.g5(p.Y)&&p.videoData.isLivePlayback;p.loader.initialize(p.getCurrentTime(),EA(p), a);p.videoData.probeUrl&&(p.loader.Sb=p.videoData.probeUrl);if(p.EV.length||p.m0)p.videoData.cotn||od(p,!1);tM(p.GR,p.loader);p.I4&&(kjM(p.loader,new g.V8(p.I4)),p.jl("sdai",{sdl:1}));g.Dh(p.videoData)&&(p=p.loader,p.policy.V4=p.policy.y8)}; CVE=function(p){return p.data["Cuepoint-Type"]?new ET(-(Number(p.data["Cuepoint-Playhead-Time-Sec"])||0),Number(p.data["Cuepoint-Total-Duration-Sec"])||0,p.data["Cuepoint-Context"],p.data["Cuepoint-Identifier"]||"",k7v[p.data["Cuepoint-Event"]||""]||"unknown",(Number(p.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; pRA=function(p){var a=new Map;p=g.t(p);for(var l=p.next();!l.done;l=p.next())(l=l.value.renderer.remoteSlotsRenderer)&&l.hostElementId&&a.set(l.hostElementId,l);return a}; MEM=function(p,a){g.oV(p.api.C())&&(a?p.W.show():p.W.hide())}; wih=function(p,a){for(var l;;){if(p.xe===0&&(lJ(p),p.xe===0)){if(a===0)return 1;break}p.wP=0;l=yp(p,0,p.window[p.Ba]);p.xe--;p.Ba++;if(l&&(SX(p,!1),p.ph.Ch===0))return 1}p.zp=0;return a===4?(SX(p,!0),p.ph.Ch===0?3:4):p.n8&&(SX(p,!1),p.ph.Ch===0)?1:2}; To=function(p,a){g.xY(p.policy.j)!==4&&(g.Uy(p.policy.j,4),g.Mf(a),p.Z.reject(new eA(a.message)))}; Rw=function(){var p=/WebKit\/([0-9]+)/.exec(g.yI());return!!(p&&parseInt(p[1],10)>=602)}; bU$=function(p){switch(typeof p){case "boolean":return m0M||(m0M=[0,void 0,!0]);case "number":return p>0?void 0:p===0?tEF||(tEF=[0,void 0]):[-p,void 0];case "string":return[0,p];case "object":return p}}; Xz=function(p,a){if(!a.L.L)return p.W?new NE(0,360,!1,"b"):Fz;for(var l=!1,y=!1,S=g.t(a.L.videoInfos),n=S.next();!n.done;n=S.next())W8(n.value)?l=!0:y=!0;l=l&&y;y=0;S=g.sW(p.Y.experiments,"html5_performance_cap_floor");S=p.Y.S?240:S;a=g.t(a.L.videoInfos);for(n=a.next();!n.done;n=a.next()){var V=n.value;if(!l||!W8(V))if(n=T1(V.h9,V.video.fps,p.U),V=V.video.qualityOrdinal,Math.max(n,S)>=V){y=V;break}}return new NE(0,y,!1,"b")}; Ip=function(p){var a=(484).toString();p&&(a=(483).toString());return a}; tMO=function(p){p=p.document;p=p.compatMode=="CSS1Compat"?p.documentElement:p.body;return new g.N6(p.clientWidth,p.clientHeight)}; xQM=function(p,a){var l=0,y=!1,S=p.L.length,n=p.U.L*1E3;n===0&&(n=p.api.getProgressState().seekableEnd*1E3);if(n>0&&p.G>0){for(var V=p.G-Mp(p)*p.Hs,z=p.Ha===0?3:V*p.Ha,d=g.t(p.L),G=d.next();!G.done;G=d.next())G.value.width=0;for(;l1);G=(n===0?0:d/n*V)+p.L[l].width;if(G>z)p.L[l].width=G;else{p.L[l].width=0;var B=p,c=l,r=B.L[c-1];r!==void 0&&r.width>0? r.width+=G:cp.Ha&&(p.Ha=d/n),y=!0)}l++}}return y}; L5=function(p,a){for(var l={},y=g.t(Object.keys(jcZ)),S=y.next();!S.done;S=y.next()){S=S.value;var n=a?a+S:S;n=p[n+"_webp"]||p[n];g.Ik(n)&&(l[jcZ[S]]=n)}return l}; atA=function(p){var a;return p==null?void 0:(a=p.activeViewTracking)==null?void 0:a.identifier}; kY=function(p){g.D.call(this);var a=this;this.Yy=p;this.U="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.S=void 0;this.qf=this.Yy.p;this.j=this.yF.bind(this);this.addOnDisposeCallback(function(){return void WIM(a)})}; fl=function(p,a){var l=this;this.Wa=p;this.requestNumber=++H4A;this.L=this.now();this.Z=this.Sl=NaN;this.K=this.L;this.U=this.Fh=this.W=0;this.G=this.L;this.Ps=this.Xu=this.t9=this.O6=this.qc=this.Bs=this.S=this.j=0;this.UO=this.isActive=!1;this.eb=this.Yv=0;this.hg={UjO:function(){return l.DU}}; this.s6=a.s6;this.snapshot=fJ(this.s6);this.policy=this.s6.S;this.JD=!!a.JD;this.qt=a.qt;this.KO=a.KO||0;this.A$=a.A$||0;a.k7&&(this.QY=new ye);var y;this.DU=(y=a.DU)!=null?y:!1;this.JD||D0v(this.s6)}; Da=function(p,a){a===void 0||!a||p.indexRange&&p.initRange&&p.Fz||To(p,new eA("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));a={lmt:p.L.info.lastModified,docid:p.policy.j,fmtid:p.L.info.id,type:p.L.info.mimeType.split(";")[0],csz:p.chunkSize,clen:p.j*p.chunkSize+p.S};p.crypto&&(a.ck=p.K,a.civ=p.G);var l="local://localhost/videoplayback?"+d1(a),y,S;a={itag:+p.L.info.itag,mimeType:p.L.info.mimeType,bitrate:p.L.info.Lx*8,lastModified:String(p.L.info.lastModified),initRange:(y= p.initRange)==null?void 0:xOZ(y),indexRange:(S=p.indexRange)==null?void 0:xOZ(S),url:l};if(y=p.L.info.L)a.xtags=y;if(y=p.L.info.video)if(a.quality=y.quality,a.qualityLabel=y.qualityLabel,a.width=y.width,a.height=y.height,y=y.fps)a.fps=y;if(p=p.L.info.audio){if(y=p.sampleRate)a.audioSampleRate=String(y);if(p=p.numChannels)a.audioChannels=p}return a}; R5o=function(p,a){lZ(p.z9)&&(p.Xu=a.reason==="m"||a.reason==="l"?!0:!1);a.reason==="m"?a.isLocked()&&i4$(p,a.L):iXr(p,a)?T4h(p,a.S,a.L):p.videoInfos=p.G;p.S=a}; N4O=function(p,a){if(p.videoData.Sl)return!1;p.Ws.eb+=1;if(p.Ws.eb<=10)return!1;a.exiled=""+p.Ws.eb;p.w$("qoe.start15s",a);p.Lz.publish("playbackstalledatstart");return!0}; zO=function(p){var a=p===void 0?{}:p;p=a.FP===void 0?0:a.FP;var l=a.bW===void 0?!1:a.bW;var y=a.AJ===void 0?0:a.AJ;var S=a.BX===void 0?0:a.BX;var n=a.l_===void 0?Infinity:a.l_;var V=a.PN===void 0?0:a.PN;var z=a.uf===void 0?!1:a.uf;a=a.vz===void 0?!1:a.vz;g.MW.call(this);this.vL=this.LU=-1;this.A$=p;this.AJ=y;this.bW=l;this.BX=S;this.l_=n;this.PN=V;((this.uf=z)||isFinite(n)&&this.l_>0)&&l&&sco&&(this.S=!1,this.U="postLive");this.vz=a}; YS=function(p,a){Oi||QB in p||ErZ(p,CxM);p[QB]|=a}; Qcq=function(p){Object.keys(p).forEach(function(a){var l=p[a];if(typeof l(void 0,{type:U0E})==="undefined")throw Error('The slice reducer for key "'+a+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof l(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+D5()})==="undefined")throw Error('The slice reducer for key "'+ a+"\" returned undefined when probed with a random type. Don't try to handle '"+(U0E+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}; jz=function(p){return p.h9==="mac3"||p.h9==="meac3"||p.h9==="m"||p.h9==="i"}; cJ=function(p,a){nR(p,"cat",a)}; vp=function(p,a,l){this.L=a;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=l||p(this.triggerType)}; h6F=function(p,a){var l=null;p.U&&(l=(a?[p.U.defaultServiceEndpoint,p.U.defaultNavigationEndpoint]:[p.U.toggledServiceEndpoint]).filter(function(y){return y!=null})); return l||[]}; x2=function(p,a,l){p.Tm.publish(a,l);var y=g.g5(p.Y)||g.PD(p.Y)||g.dB(p.Y);if(l&&y){switch(a){case "cuerangemarkersupdated":var S="onCueRangeMarkersUpdated";break;case "cuerangesadded":S="onCueRangesAdded";break;case "cuerangesremoved":S="onCueRangesRemoved"}S&&p.Tm.xv(S,l.map(function(n){return{getId:function(){return this.id}, end:n.end,id:n.getId(),namespace:n.namespace==="ad"?"ad":"",start:n.start,style:n.style,visible:n.visible,markerPositionMs:n.markerPositionMs}}))}}; C7M=function(p,a,l,y,S,n,V){var z=Ga(p.S.get(),"SLOT_TYPE_IN_PLAYER"),d=xc(p.S.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",z);y=sdZ(p,y,n,V,d);if(y instanceof W)return y;V=[new D6(p.L,z)];S=[new wG(p.L,n),new D6(p.L,S),new zV(p.L,S)];l=kU(l,{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,iT:"core",slotEntryTrigger:y,slotFulfillmentTriggers:V,slotExpirationTriggers:S});p=p.U.get();n={layoutId:d,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",iT:"core"};a={layoutId:d,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Xh:new Map,layoutExitNormalTriggers:[new wrr(p.L,d,a.durationMs)],layoutExitSkipTriggers:[new H3r(p.L,d,a.durationMs)],layoutExitUserCancelledTriggers:[new qc$(p.L,d)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],iT:"core",clientMetadata:new Lc([new qjO(a)]),nx:l(n)};return{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,iT:"core",slotEntryTrigger:y,slotFulfillmentTriggers:V,slotExpirationTriggers:S,clientMetadata:new Lc([new i8(a)])}}; g.AcE=function(p,a){if(p.suggestion!==a){p.suggestion=a;var l=p.api.C(),y="hqdefault.jpg";a.Gy("sddefault.jpg")&&(y="sddefault.jpg");g.w2(p,a,y);g.wW(l)&&!p.api.D("web_player_log_click_before_generating_ve_conversion_params")&&(l=a.pC(),y={},g.pj(p.api,"addEmbedsConversionTrackingParams",[y]),l=g.C2(l,y),p.updateValue("url",l));(a=(a=a.sessionData)&&a.itct)&&p.api.setTrackingParams(p.element,a)}}; goO=function(){return{X:"svg",V:{viewBox:"0 0 24 24"},N:[{X:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",V:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}}; JYq=function(p,a){switch(p){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 a(p),8}}; qlO=function(p,a,l,y,S,n,V){return function(z,d){return YlM(p,d.slotId,z,n,function(G,B){var c=d.layoutId;G=V(G);return fG(a,c,B,S,G,"LAYOUT_TYPE_SURVEY",[new rg(l),y],l.adLayoutLoggingData)})}}; Jcq=function(p){var a=O7();switch(a){case 1:MQ.h5vcc.traceEvent.traceBegin("YTLR",p);break;case 2:MQ.performance.mark(p+"-start");break;case 0:break;default:m5(a,"unknown trace type")}}; g.dK=function(p,a,l,y){var S=p.currentTarget;if((l===void 0||!l)&&g.lX(p))return p.preventDefault(),!0;a.pauseVideo();p=S.getAttribute("href");g.pC(p,y,!0);return!1}; GV=function(p){return{itag:FW(p,1),lmt:FW(p,2),xtags:Pr(p,3)}}; g.fEr=function(p,a,l,y,S,n){S=S===void 0?!1:S;n=n===void 0?{}:n;Object.assign(n,wd({cttAuthInfo:$Y(a)||void 0},a));for(var V=g.t(y),z=V.next();!z.done;z=V.next()){z=z.value;var d=z.getAsJson();(g.cL(d)||!d.trackingParams&&!d.veType)&&g.Mf(Error("Child VE logged with no data"));if(g.oO("no_client_ve_attach_unless_shown")){var G=ig(z,a);if(d.veType&&!BO.has(G)&&!cO.has(G)&&!S){if(!g.oO("il_attach_cache_limit")||TB.size<1E3){TB.set(G,[p,a,l,z]);return}g.oO("il_attach_cache_limit")&&TB.size>1E3&&g.Mf(new g.kc("IL Attach cache exceeded limit"))}z= ig(l,a);TB.has(z)?s9(l,a):cO.set(z,!0)}}y=y.filter(function(B){B.csn!==a?(B.csn=a,B=!0):B=!1;return B}); l={csn:a,parentVe:l.getAsJson(),childVes:g.lb(y,function(B){return B.getAsJson()})}; a==="UNDEFINED_CSN"?P0("visualElementAttached",n,l):p?Lr("visualElementAttached",l,p,n):g.mf("visualElementAttached",l,n)}; g.Bn=function(p,a,l){l=l===void 0?350:l;g.X.call(this,{X:"div",A9:["ytp-time-display","notranslate"],V:{"aria-label":"{{timeDisplayAriaLabel}}",tabindex:"0"},N:[{X:"span",T:"ytp-time-wrapper",N:[{X:"div",T:"ytp-time-contents",N:[{X:"span",T:"ytp-time-clip-icon",yY:"{{clipicon}}",V:{"aria-label":"Recortar"}},{X:"span",T:"ytp-time-current",yY:"{{currenttime}}"},{X:"span",T:"ytp-time-separator",yY:" / "},{X:"span",T:"ytp-time-duration",yY:"{{duration}}"}]}]},{X:"span",T:"ytp-clip-watch-full-video-button-separator", yY:"\u2022"},{X:"span",T:"ytp-clip-watch-full-video-button",yY:"{{watchfullvideo}}"}]});var y=this;this.api=p;this.Z=l;this.liveBadge=new g.X({X:"button",A9:["ytp-live-badge","ytp-button"],V:{disabled:"true"},yY:"{{content}}"});this.L=null;this.tB=this.S=!1;this.K=this.G=null;this.isPremiere=!1;this.W=this.j=null;this.U=!1;this.lM=this.liveIndicatorText=null;this.UO=this.d7("ytp-clip-watch-full-video-button");this.liveBadge.setContent("En directo");g.E(this,this.liveBadge);this.api.D("web_player_updated_entrypoint")|| this.api.D("delhi_modern_web_player")?this.liveBadge.lT(this.d7("ytp-time-contents")):this.liveBadge.lT(this.element);this.tooltip=a.ZI();this.liveBadge.listen("click",this.onClick.bind(this));this.api.D("delhi_modern_web_player")&&(a=this.d7("ytp-time-wrapper"),this.J(a,"click",this.uhu),a.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.J(this.UO,"click",this.SQI);this.J(this.api,"serverstitchedvideochange",function(){pPo(y,y.api.getProgressState().isAtLiveHead)}); this.J(p,"presentingplayerstatechange",this.rq);this.J(p,"appresize",this.rq);this.J(p,"onLoopRangeChange",this.onLoopRangeChange);this.J(p,"videodatachange",this.onVideoDataChange);(a=p.getVideoData())&&this.updateVideoData(a);this.rq();sGZ(this,p.getLoopRange())}; jn=function(p){this.NO=Dm(p)}; G9=function(p){var a,l,y;return!!((a=p.playerResponse)==null?0:(l=a.playerConfig)==null?0:(y=l.mediaCommonConfig)==null?0:y.splitScreenEligible)}; ao$=function(p){this.NO=Dm(p)}; DK=function(p,a,l,y){p.policy.S&&p.Dv(!1,"rollback");if(p.MO.isManifestless){var S=RB(p.audioTrack,y,l,a),n=RB(p.videoTrack,y,l,a);p.policy.n1||(n&&iP(p.MO,y,!0),S&&iP(p.MO,y,!1));n&&(p.videoTrack.UO=[]);S&&(p.audioTrack.UO=[]);p.jl("sdai",{rollbk2_seg:y,rbt:l.toFixed(3),lt:a.toFixed(3),a:S,v:n});(S||n)&&p.policy.S&&GL(p)}}; loo=function(p){return{iH:FW(p,1),items:WJ(p,2,S1M),QR:FW(p,3)}}; UUq=function(p,a,l,y,S,n,V){this.X7=p;this.sO=a;this.uT=l;this.S=y;this.wp=S;this.L=n;this.ac=V}; QvZ=function(p){this.W=p;this.U=this.S=0;this.j=new $w(50)}; tQZ=function(p,a,l,y,S){var n=Ga(p.S.get(),a);return cp(p,n,a,new oJ(p.L,l),[new wG(p.L,l),new $1(p.L,n)],y,S)}; yoA=function(p){if(p.L==="fulfilled"){var a=p.S;p.S=[];p.U=[];a=g.t(a);for(var l=a.next();!l.done;l=a.next())l=l.value,l(p.result)}else if(p.L==="rejected")for(a=p.U,p.S=[],p.U=[],a=g.t(a),l=a.next();!l.done;l=a.next())l=l.value,l(p.error)}; Zv=function(p,a,l){this.NO=Dm(p,a,l)}; SHf=function(p,a,l,y,S){var n=(a=p.L?p.S[a]:p.G[a])&&a.quality,V=a&&a.qualityLabel;V=V?V:"Autom\u00e1tica";y&&(V="("+V);p=drM(p,V,n||"",S);y&&p.N.push(")");(y=(y=a&&a.paygatedQualityDetails)&&y.paygatedIndicatorText)&&l&&p.N.push({X:"div",T:"ytp-premium-label",yY:y});return p}; nTM=function(p,a,l){if(!VSO(a,l))return a=$8(a.info),a.smst="1",p.loader.handleError("fmt.unparseable",a||{},1),!1;isNaN(p.QY)&&(p.QY=l);return!0}; V6v=function(p){return{label:Pr(p,1),text:Pr(p,2)}}; cn=function(p,a,l,y,S,n){JF.call(this,p,{X:"div",T:"ytp-ad-player-overlay",N:[{X:"div",T:"ytp-ad-player-overlay-flyout-cta"},{X:"div",T:"ytp-ad-player-overlay-instream-info"},{X:"div",T:"ytp-ad-player-overlay-skip-or-preview"},{X:"div",T:"ytp-ad-player-overlay-progress-bar"},{X:"div",T:"ytp-ad-player-overlay-instream-user-sentiment"},{X:"div",T:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",a,l,y);this.Z=n;this.W=this.d7("ytp-ad-player-overlay-flyout-cta");this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.L=this.d7("ytp-ad-player-overlay-instream-info");this.j=null;Qgf(this)&&(p=tL("div"),g.uD(p,"ytp-ad-player-overlay-top-bar-gradients"),a=this.L,a.parentNode&&a.parentNode.insertBefore(p,a),(a=this.api.getVideoData(2))&&a.isListed&&a.title&&(l=new Jq(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),l.lT(p),l.init(y_("ad-title"),{text:a.title},this.macros),g.E(this,l)),this.j=p);this.U=null;this.nz=this.d7("ytp-ad-player-overlay-skip-or-preview");this.Hs=this.d7("ytp-ad-player-overlay-progress-bar"); this.QY=this.d7("ytp-ad-player-overlay-instream-user-sentiment");this.Xu=this.d7("ytp-ad-player-overlay-ad-disclosure-banner");this.S=S;g.E(this,this.S);this.hide()}; g.t_=function(p){if(p instanceof g.BG)return p;var a=new g.BG(g.xD);Qh(a,2,p);return a}; ZZv=function(p,a,l){if(p.L){var y=zG(TQ(a,"key"))||"/UNKNOWN_PATH";p.L.start(y)}y=l;g.oO("wug_networking_gzip_request")&&(y=HPq(l));var S;return new ((S=p.j)!=null?S:window.Request)(a,y)}; kkM=function(p){return!(p.isMinimized()||p.isInline()||p.isBackground()||p.Yn()||p.vN()||p.I_()||p.c9())}; oTo=function(p){var a=p.qO();if(p.D("html5_disable_loop_range_for_shorts_ads")&&a.getVideoData().isAd()?0:nn(a.getVideoData())&&!a.hH())a=kR(p)*1E3-p.getVideoData().Qd,p.D("html5_gapless_new_slr")?(p=p.xu,FC(p.app,"gaplessshortslooprange"),a=new g.nF(0,a,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(p=p.app.qO())&&p.addCueRange(a)):p.setLoopRange({startTimeMs:0,endTimeMs:a,type:"shortsLoop"})}; Ve=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ad-simple-attributed-string"},"ad-simple-attributed-string",a,l,y);this.hide()}; g.orv=function(p){var a={};p=(p.L&&g.uV(p)>=2?p.L.getAllResponseHeaders()||"":"").split("\r\n");for(var l=0;l0&&(n.Qh?y=!0:a=!0);y=!(a&&y)}if(y)return!1}p.nt("ofr");p.Om.resolve(p.playerResponse);if(!p.kB){var d;(d=p.NH)==null||d.start();p.oh.start()}return p.kC= !0}; zKq=function(p,a,l){var y=p.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],S=p.policy.playbackStartPolicy.startMinReadaheadPolicy||[];p=Infinity;a=g.t(a&&y.length>0?y:S);for(y=a.next();!y.done;y=a.next())y=y.value,S=y.minReadaheadMs||0,l<(y.minBandwidthBytesPerSec||0)||p>S&&(p=S);return p0&&(0,g.Ek)()-p.G<5E3&&(p.logger&&p.logger({dend:y.info.AP()}),l=Vor(l,S,S+.01))}p.policy.Wo&&p.logger&&p.logger({cbri:""+p.L});y=[];for(var n=S=0;S=V){var B=Object.assign({},p.wq[n]),c=p.MO.U.get($L(p.wq[n].formatId)),r=Math.max(d,V);V=c.index.Ot(r+p.S/ 1E3);d=c.index.getStartTime(V);var w=V+ +(Math.abs(d-r)>p.S/1E3);r=w+p.j;w=c.index.getStartTime(w)*1E3;n!==p.L||a?(B.bX=r,B.startTimeMs=w):(p.logger&&p.logger({pEvict:"1",og:B.startTimeMs,adj:d*1E3}),B.bX=V+p.j,B.startTimeMs=d*1E3);V=void 0;d=((V=p.U)==null?void 0:V.info.duration)||11;n===p.L&&zp.S/1E3);V=d+p.j;c=c.index.Cn(d)*1E3;B.jD=V;B.durationMs=c-B.startTimeMs;B.bX<=B.jD&&y.push(B)}G0&&z.set(S,d),(g.oO("web_fp_via_jspb_and_json")&&l.writeThenSend||!g.oO("web_fp_via_jspb_and_json"))&& delete Td[S];bZM(z,V,p,l,!1,n)}else{z=g.t(Object.keys(Td));for(G=z.next();!G.done;G=z.next())G=G.value,B=g.oO("enable_web_tiered_gel")?Tg().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:G,tier:S},{isJspb:!1,cttAuthInfo:G}],sizeLimit:1E3}):Tg().extractMatchingEntries({isJspb:!1,cttAuthInfo:G}),B.length>0&&d.set(G,B),(g.oO("web_fp_via_jspb_and_json")&&l.writeThenSend||!g.oO("web_fp_via_jspb_and_json"))&&delete Td[G];iNF(d,V,p,a,l,!1,n)}}; f2o=function(p,a,l,y){var S=Ga(p.S.get(),"SLOT_TYPE_PLAYER_UNDERLAY");l=new Hv(p.L,l);var n=[new D6(p.L,S)];p=[new wG(p.L,a),new $1(p.L,S)];return{slotId:S,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:n,slotExpirationTriggers:p,iT:"core",clientMetadata:new Lc([new i8(y({slotId:S,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,iT:"core",slotEntryTrigger:l,slotFulfillmentTriggers:n,slotExpirationTriggers:p}))])}}; zJ=function(p,a,l){p=Ax(p,a,l);return Array.isArray(p)?p:yb}; G6=function(p){var a=typeof p;return a!="object"?a:p?Array.isArray(p)?"array":a:"null"}; lOM=function(p,a,l){p.L&&p.L.dispose();p.L=new g.l_(p.MDY,a,p);g.E(p,p.L);var y;a=((y=l.Sa)==null?void 0:y.trackingParams)||null;p.B.setTrackingParams(p.element,a);var S;var n,V;if(l==null?0:(n=l.Sa)==null?0:(V=n.title)==null?0:V.content){var z;y=(S=l.Sa)==null?void 0:(z=S.title)==null?void 0:z.content;var d,G;if((d=l.Sa)==null?0:(G=d.bodyText)==null?0:G.content)y+=" \u2022 ";S=y}else S="";var B,c;l=((B=l.Sa)==null?void 0:(c=B.bodyText)==null?void 0:c.content)||"";p.update({text:S+l,chevron:g.Et()})}; G4=function(p){this.K=p;this.L=null;this.j=0;this.G=null;this.W=0;this.S=[];for(p=0;p<4;p++)this.S.push(0);this.U=0;this.Xu=g.nU(window,"mousemove",(0,g.bn)(this.Sl,this));this.Z=g.Vo((0,g.bn)(this.UO,this),25)}; g.Ioq=function(p){var a;p.responseType&&p.responseType!=="text"?p.responseType==="arraybuffer"&&(a=cr(new Uint8Array(p.response))):a=p.responseText;return!a||a.length>2048?"":a.indexOf("https://")===0?a:""}; QX=function(p){return p.includes("vtt")||p.includes("text/mp4")}; ad=function(){g.qu.apply(this,arguments)}; yxO=function(p,a,l){if(p.S.length!==0&&(l||p.S.some(function(n){return n.info.W0&&p.Ic&&WA(p.Ic)&&(a=a.L.info.video?p.Ic.S:p.Ic.L)&&!a.r3()){a=a.ea();var y=hp(a,p.getCurrentTime());y>=0&&(a=p.getCurrentTime()-a.start(y),l+=Math.max(0,Math.min(a-p.policy.AX,p.policy.TI)))}p.policy.Bs>0&&(l=Math.min(l,p.policy.Bs));return l}; $a=function(p){this.value=p}; FT=function(p){return RQ(p)&&p.allowLiveDvr}; Ew=function(p,a,l,y){y=y===void 0?p.schedule:y;this.Y=p;this.mV=a;this.Lz=l;this.s6=y;this.Z=this.G=this.L=this.j=this.K=this.S=0;this.W=!1;this.Sl=g.sW(this.Y.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.U=new Map}; Dav=function(p,a,l){if(l.videoId)var y="VIDEO";else if(l.playlistId)y="PLAYLIST";else return;p.credentialTransferTokenTargetId=l;p.context=p.context||{};p.context.user=p.context.user||{};p.context.user.credentialTransferTokens=[{token:a,scope:y}]}; Nzv=function(p,a){p.L&&(g.h(a,8)&&p.U?(p.U=!1,p.qE(),p.L.start()):(g.h(a,2)||g.h(a,64))&&p.videoId&&(p.videoId=null))}; eqe=function(p){return{downloadedEndTime:Math.round(p.Fz?p.Fz.G:0),maxKnownEndTime:Math.round(p.L.index.u4()),averageByteRate:Math.round(p.L.info.gj)}}; sIM=function(p){var a=Array.from(p.L.keys()).sort(function(y,S){return v0(p,p.L[S])-v0(p,p.L[y])}); a=g.t(a);for(var l=a.next();!l.done;l=a.next())l=p.L[l.value],l.jobId===void 0||l.HP||(p.scheduler.WW(l.jobId),Cr(l.W7,10))}; USO=function(p,a){if(p.loader.isSeeking())return a;var l=p.Lz.F7();if(!l)return a;l=l.Vh();if(l.length===0||GI(l,a))return a;if(!h_(p.videoTrack,a)&&!h_(p.audioTrack,a))return p.loader.jl("sundrn",{b:0,lt:a}),a;for(var y=a,S=Infinity,n=0;na)){var V=a-l.end(n);V=20)?(p.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),a):y}; t$q=function(p){if(!(Yr(p.info)&&p.info.DU()&&p.policy.M2&&p.Vt)||p.info.bM.U>=2||rV()>0||!m_Z())return!1;var a=p.G9.get("aitags");if(!a)return!1;a=ES(a).split(",");for(var l=[],y=g.t(p.Vt),S=y.next();!S.done;S=y.next())S=S.value,g.rW(a,S)&&l.push(S);if(!l.length)return!1;p.G9.set("altitags",g.Ls(l.join(",")));return!0}; nvh=function(p){if(navigator.mediaSession.setPositionState)if(p.api.D("web_player_media_session_infinity")&&p.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(y){}else{var a=p.api.getProgressState().seekableEnd,l=Math.min(p.api.getCurrentTime(),a);a&&Number.isFinite(l)&&navigator.mediaSession.setPositionState({duration:a,playbackRate:p.api.getPlaybackRate(),position:l})}}; j0=function(p,a,l){this.videoData=p;this.Y=a;this.Lz=l;this.L=void 0}; HN=function(p,a){a=new Evr(new oNf(a));Ur&&p.prototype&&Ur(a,p.prototype);return a}; ybM=function(p){p.j||(p.j=new g.s4(p.S));return p.j}; hKv=function(p){var a=a===void 0?!1:a;return ej(bW(p,QIr),p,a,"Trusted Ad Domain URL")}; mr=function(p){g.D.call(this);var a=this;this.U=new g.rQ;this.j=0;this.S=void 0;this.state=2;this.Yy=p.Yy;this.a8=p.a8;this.gt=Object.assign({},AoA,p.gt||{});this.logger=p.Yy.eG();var l;this.onError=(l=p.onError)!=null?l:function(){}; this.Qb=p.Qb||!1;if(gTr(p)){var y=this.Yy;this.W=function(){return WTO(y).catch(function(V){V=a.reportError(new V$(a.L?20:32,"TRG:Disposed",V));a.S=V;var z;(z=a.L)==null||z.dispose();a.L=void 0;a.U.reject(V)})}; Ko$(y,function(){return void ds(a)}); y.Z===2&&ds(this)}else this.W=p.v0V,ds(this);var S=this.logger.share();S.B8("o");var n=new Wu(S,"o");this.U.promise.then(function(){n.done();S.BI();S.dispose()},function(){return void S.dispose()}); this.addOnDisposeCallback(function(){a.L?(a.L.dispose(),a.L=void 0):a.S?a.logger.BI():(a.S=a.reportError(new V$(32,"TNP:Disposed")),a.logger.BI(),a.U.reject(a.S))}); g.E(this,this.logger)}; YHf=function(p,a,l,y,S){this.Rc=p;this.startSecs=a;this.DI=l;this.L=y||NaN;this.S=S||NaN}; pwr=function(p,a,l){g.hm.call(this);var y=this;this.B=p;this.Bs=a;this.OQ=l;this.Yv=NaN;this.w7=this.OO=this.playButton=this.W=this.G=this.r7=this.Hs=this.Xu=this.UO=this.L=this.Z=this.Kz=this.zT=this.Ps=null;this.j=new Yg(this.B);this.progressBar=new g.Tb(this.B,this.Bs);this.Tj=new g.Bn(this.B,this.Bs);this.VY=new qHe(this.B,this.Bs);this.Sl=new g.Tl(this.fS,null,this);l=p.C();this.OQ.subscribe("autohideupdate",this.Un,this);var S=!p.getPlayerStateObject().isCued(),n;(this.yQ=!p.D("delhi_modern_web_player")&& p.C().D("html5_player_dynamic_bottom_gradient"))?this.Kz=n=new Rl(p):n=new g.X({X:"div",T:"ytp-gradient-bottom"});g.E(this,n);g.uW(p,n.element,9);this.t9=new g.Gq(n,250,S,100);g.E(this,this.t9);this.S=new g.X({X:"div",T:"ytp-chrome-bottom",N:[{X:"div",T:"ytp-chrome-controls"}]});g.E(this,this.S);g.uW(p,this.S.element,9);this.QY=new g.Gq(this.S,250,S,100);g.E(this,this.QY);this.nz=this.S.element.children[0];g.E(this,this.j);g.uW(p,this.j.element,6);this.j.subscribe("show",function(G){y.B.ZJ(!G);p.P_(y.j, G)}); g.E(this,this.progressBar);this.progressBar.lT(this.S.element,0);S=new RY(p,a);g.E(this,S);g.uW(p,S.element,4);S=new g.RC({X:"div",T:"ytp-left-controls"});g.E(this,S);S.lT(this.nz);p.D("delhi_modern_web_player")||(n=new g.bG(p,a,!1),g.E(this,n),n.lT(S.element));p.D("web_render_jump_buttons")&&(this.UO=new la(p,-10),g.E(this,this.UO),this.UO.lT(S.element));l.nz||(this.playButton=new g.SJ(p,a),g.E(this,this.playButton),this.playButton.lT(S.element));p.D("web_render_jump_buttons")&&(this.Xu=new la(p, 10),g.E(this,this.Xu),this.Xu.lT(S.element));p.D("delhi_modern_web_player_remove_nav_buttons")||(p.D("delhi_modern_web_player")&&(n=new g.bG(p,a,!1),g.E(this,n),n.lT(S.element)),n=new g.bG(p,a,!0),g.E(this,n),n.lT(S.element));if(!p.D("delhi_modern_web_player")||p.D("delhi_modern_web_player_horizontal_volume_controls"))if(n=new g.X({X:"span",T:"ytp-volume-area"}),g.E(this,n),n.lT(S.element),!l.EC&&(this.L=new jy(p,a),g.E(this,this.L),this.L.lT(n.element),l.t9&&!l.K)){var V=new he(p,this.S.element); this.OO=V;g.E(this,V);V.lT(n.element);n=new g.Us(n.element);g.E(this,n);n.subscribe("hoverstart",function(){var G;(G=y.OO)==null||YMF(G,!0)}); n=new g.Us(S.element);g.E(this,n);n.subscribe("hoverend",function(){var G;(G=y.OO)==null||YMF(G,!1)})}p.D("delhi_modern_web_player_lhs_volume_controls")&&!p.D("delhi_modern_web_player_horizontal_volume_controls")&&(S.element.classList.add("ytp-left-controls-with-volume"),this.L=new jy(p,a),g.E(this,this.L),this.L.lT(S.element),this.L.element.classList.add("ytp-standalone-mute-button")); g.E(this,this.Tj);this.Tj.lT(S.element);this.Hs=new tb(p,this.progressBar);g.E(this,this.Hs);this.Hs.lT(S.element);l.D("web_key_moments_markers")&&(this.r7=new qt(p,this.progressBar),g.E(this,this.r7),this.r7.lT(S.element));p.D("delhi_modern_web_player")?this.U=new g.RC({X:"div",T:"ytp-right-controls",N:[{X:"div",T:nE.RIGHT_CONTROLS_LEFT},{X:"div",T:nE.RIGHT_CONTROLS_RIGHT}]}):this.U=new g.RC({X:"div",T:"ytp-right-controls"});g.E(this,this.U);this.U.lT(this.nz);p.D("delhi_modern_web_player")&&(this.Z= new C5(p),g.E(this,this.Z),this.Z.lT(this.U.d7(nE.RIGHT_CONTROLS_LEFT)),p.D("delhi_modern_web_player_lhs_volume_controls")||p.D("delhi_modern_web_player_horizontal_volume_controls")||(this.L=new jy(p,a),g.E(this,this.L),this.L.lT(this.U.d7(nE.RIGHT_CONTROLS_LEFT))));this.Sb=new Joe(p,a);g.E(this,this.Sb);VL(this,this.Sb,"RIGHT_CONTROLS_LEFT");this.settingsButton=new Cg(p,this.j);g.E(this,this.settingsButton);foZ(this.j,this.settingsButton);VL(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");S=p.getVideoData(); if(l.Xq||S.S5&&l.controlsType==="1")this.G=new vn(p,a),g.E(this,this.G),this.G.lT(this.U.element);l.showMiniplayerButton&&!p.D("web_player_miniplayer_in_context_menu")&&(this.W=new Kg(p),g.E(this,this.W),VL(this,this.W,"RIGHT_CONTROLS_RIGHT"));l.H9&&(a=new eR(p,this.j),g.E(this,a),VL(this,a,"RIGHT_CONTROLS_RIGHT"));l.U9&&(a=new bZ(p),g.E(this,a),VL(this,a,"RIGHT_CONTROLS_RIGHT"));g.E(this,this.VY);VL(this,this.VY,"RIGHT_CONTROLS_RIGHT");g.E(this,this.Sl);this.J(p,"appresize",this.VQ);this.J(p,"fullscreentoggled", this.VQ);var z;(z=this.Z)==null||z.subscribe("small-mode-expand-right-bottom-controls",function(){psv(y)}); var d;(d=this.Z)==null||d.subscribe("small-mode-collapse-right-bottom-controls",function(){psv(y)}); this.J(p,"presentingplayerstatechange",this.Pg);this.J(p,"videodatachange",this.onVideoDataChange);this.VQ()}; Id=function(p){this.value=p}; afA=function(){}; Rd=function(p,a,l,y){TX("https://"+a+"/videoplayback?probe=1",l,function(S){!y.D("html5_onesie_host_racing")||y.videoData.isLivePlayback||y.D("html5_onesie_probe_ec_hosts")||y.If||y.ag();p.j.push(S)},function(S){p.j.push(S.details)})}; lfh=function(p,a){return p.K?k1(p.K.j,a):p.Bs.length?k1(p.Bs,a):[]}; g.uZ=function(p){p=p===void 0?{}:p;this.languageCode=p.languageCode||"";this.languageName=p.languageName||null;this.kind=p.kind||"";this.name=p.name===void 0?null:p.name;this.displayName=p.displayName||null;this.id=p.id||null;this.L=p.is_servable||!1;this.isTranslateable=p.is_translateable||!1;this.url=p.url||null;this.vssId=p.vss_id||"";this.isDefault=p.is_default||!1;this.translationLanguage=p.translationLanguage||null;this.xtags=p.xtags||"";this.captionId=p.captionId||""}; sfh=function(){if(Ow)return Ow();var p={};Ow=g.k$("LogsDatabaseV2",{LN:(p.LogsRequestsStore={gp:2},p),shared:!1,upgrade:function(a,l,y){l(2)&&g.WY(a,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});l(3);l(5)&&(y=y.objectStore("LogsRequestsStore"),y.L.indexNames.contains("newRequest")&&y.L.deleteIndex("newRequest"),g.OD(y,"newRequestV2",["status","interface","timestamp"]));l(7)&&vE(a,"sapisid");l(9)&&vE(a,"SWHealthLog")}, version:9});return Ow()}; Ms=function(p,a,l){Ab(wD,[p],!u4());mWo(p,l);l!=4&&tke(p.w7,l,p.UP);return U_(p,a,u4())}; nbF=function(p){if(!g.h(p.playerState,128))if(p.videoData.isLoaded(),p.EV=g.hf(p.videoData.Bs),g.ua(p.videoData)){p.QQ.tick("bpd_s");Ne(p).then(function(){p.QQ.tick("bpd_c");if(!p.Gm()){p.m0&&(p.ju(Nn(Nn(p.playerState,512),1)),cS(p));var y=p.videoData;y.endSeconds&&y.endSeconds>y.startSeconds&&dC(p,y.endSeconds);p.wI.finished=!0;wK(p,"dataloaded");p.dI.LH()&&yRe(p);SaM(p.y4,p.dP)}}); p.D("html5_log_media_perf_info")&&p.jl("loudness",{v:p.videoData.aM.toFixed(3)},!0);var a,l=(a=p.mediaElement)==null?void 0:a.gG();if(l&&"disablePictureInPicture"in l&&p.Y.L9)try{l.disablePictureInPicture=p.Y.UM&&!p.videoData.backgroundable}catch(y){g.Mf(y)}HTE(p);p.pP=new ooF(p.videoData)}else wK(p,"dataloaded")}; V9Z=function(p,a){for(var l=p.element.getElementsByTagName("a"),y=0;y=.15&&p.Xu("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),p.L=0,kV(p),g.b6(p.api.getRootNode(),"ytp-grid-scrolling"))}; PH=function(p,a,l,y){y.info.L.Dg();var S=y.info.L.L;if(!S||!l.Vo()||l.rK()===S)return!1;var n=S,V=l.hY();if(p.policy.y7&&V&&l.isView()&&g.vA(y.info.L.info)){var z=new DataView(S.buffer,S.byteOffset,S.byteLength);(V=DUZ(z,V))?n=new Uint8Array(V.buffer,V.byteOffset,V.byteLength):p.jl("fenc",{})}p.policy.qG&&(V=Spo(p,y,new NN([n])))&&(n=Xb(V));var d;(V=y.info.L.K6(0,y.info.clipId))&&(d=V.mT[0]);if(y===p.EC){if(p.t9+=1,p.Lz.getVideoData().D("html5_shorts_gapless_restart_on_init_seg_retries")&&p.t9>5)return p.t9= 0,p.Lz.jS({initSegStuck:1,as:y.info.AP()}),!0}else p.t9=0,p.EC=y;p.policy.GI&&(l.abort(),(V=a.Sl)!=null&&(xC(V,4),V.flush()));S=nco(p,l,n,d,S);(a=a.Sl)!=null&&(a.flush(),a.S=d,xC(a,3,S));if(S!==0)return p.policy.Ie&&nn(p.Lz.getVideoData())?(p.Lz.jw()||Fb(p,"sepInit",S,y.info),XFA(p.Lz,"sie")):Fb(p,"sepInit",S,y.info),!0;y.info.HX()?(d=p.timing,d.t9||(d.t9=(0,g.Ek)(),g.Pf("vis_a",d.t9,d.L))):(d=p.timing,d.K||(d.K=(0,g.Ek)(),g.Pf("ais_a",d.K,d.L)));(y=y.info.L.Eb)&&p.Lz.tv(new vH(y.key,y.type));return l.r3()}; mpo=function(p){p.Tm.publish("initializingmode");p.Ja(2);xv(p.Py,"remote");xv(p.Py,"miniplayer")}; DTh=function(p,a){p=eC$(p.L,function(y){return y.index.isLoaded()}); if(!p)return NaN;p=p.index;var l=p.Ot(a);return p.getStartTime(l)===a?a:l=0?S:-1;this.startTime=n||0;this.duration=V||0;this.S=z||0;this.U=d>=0?d:this.range?this.range.length:NaN;this.j=this.range?this.S+this.U===this.range.length:G===void 0?!!this.U:G;this.range?(this.W=this.startTime+this.duration*this.S/this.range.length,this.Z=this.duration*this.U/this.range.length, this.G=this.W+this.Z):z8h(this)}; eu=function(p,a){var l,y;return!!((l=window.h5vcc)==null?0:(y=l.settings)==null?0:y.set(p,a))}; zEq=function(p,a){var l=[];l.push(new ei(nj(p)));l.push(new cN(a.layoutId));(p=PE(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&l.push(new BN(p));(p=PE(a.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&l.push(new cb(p));(p=PE(a.clientMetadata,"metadata_type_remote_slots_data"))&&l.push(new o2(p));(p=PE(a.clientMetadata,"metadata_type_ad_next_params"))&&l.push(new FN(p));(p=PE(a.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&l.push(new $a(p));(p= PE(a.clientMetadata,"metadata_type_ad_pod_info"))&&l.push(new zK(p));(a=PE(a.clientMetadata,"metadata_type_ad_video_id"))&&l.push(new d7(a));return l}; ld=function(p,a){var l=[];p=g.t(p.array);for(var y=p.next();!y.done&&!(y=y.value,y.contains(a)&&l.push(y),y.start>a);y=p.next());return l}; zk=function(p,a){a=g.t(a);for(var l=a.next();!l.done;l=a.next()){l=l.value;var y=R8(p,l.timeRangeStartMillis/(p.U.L*1E3),h3(p)),S=p.api.D("delhi_modern_web_player")?.667:.6;g.B8(l.element,"transform","translateX("+y+"px) scaleX("+S+")")}}; phA=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}}; Gmo=function(){g.qu.call(this);var p=this;this.fullscreen=0;this.j=this.U=this.pictureInPicture=this.L=this.S=this.inline=!1;this.W=function(){p.JN()}; bCf(this.W);this.G=this.getVisibilityState(this.Bl(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Yn(),this.vN(),this.I_(),this.c9())}; BoA=function(p,a,l,y,S){this.callback=p;this.slot=a;this.layout=l;this.uT=y;this.Z1=S;p=PE(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,this.uT,p,l.layoutId)}; cRq=function(p,a){var l=p.Tm.getAvailablePlaybackRates();a=Number(a.toFixed(2));p=l[0];l=l[l.length-1];a<=p?a=p:a>=l?a=l:(p=Math.floor(a*100+.001)%5,a=p===0?a:Math.floor((a-p*.01)*100+.001)/100);return a}; szr=function(p){g.Re(p.L,function(a){a.L>1E5||++a.L})}; ijr=function(p){return ir(p,0,"gclid",p.search(DU))>=0||ir(p,0,"gad_source",p.search(DU))>=0}; rRZ=function(p,a,l,y){sI.call(this,p,a);this.EO=p;this.ac=l;this.context=y}; AO=function(p,a,l,y,S){y===0||l.includes(y);var n=iB(p),V=D0(n,p,a,l,S);V!==y&&(V&&(a=yH(p,a,V,void 0,S)),n.set(l,y));return a}; QC=function(p){if(!p.Gm())if(p.S.length===0)p.callback(p.j);else{var a=p.S[0],l=p.U[a],y=OqF(p,l);if(ge&&ge.keySystem===a&&ge.L79===JSON.stringify(y))p.jl("remksa",{re:!0}),bRM(p,l,ge.keySystemAccess);else{var S,n;p.jl("remksa",{re:!1,ok:(n=(S=ge)==null?void 0:S.keySystem)!=null?n:""});ge=void 0;navigator.requestMediaKeySystemAccess(a,y).then(Ee(function(V){bRM(p,l,V,y)}),Ee(function(){p.W=!p.W&&p.U[p.S[0]].flavor==="widevine"; p.W||p.S.shift();QC(p)}))}}}; V9=function(p){Sd.call(this,function(){return p}); this.U=p}; zT=function(){if(!dR&&!g.up){if(Hn)return Hn;var p;Hn=(p=window.crypto)==null?void 0:p.subtle;var a,l,y;if(((a=Hn)==null?0:a.importKey)&&((l=Hn)==null?0:l.sign)&&((y=Hn)==null?0:y.encrypt))return Hn;Hn=void 0}}; wwr=function(p,a,l){var y=g.US(p.provider);g.pt(p,y,"vfi",[a==="A"?"":""+(l!=null?l:0),a])}; $2Z=function(p){var a=PE(p.layout.clientMetadata,"metadata_type_layout_enter_ms"),l=PE(p.layout.clientMetadata,"metadata_type_layout_exit_ms");p=p.Je.get();a=ZN$(p.U,a,l);return Math.min(l,a!==null?a:Infinity)}; Zav=function(p,a){if(a.L.info.video&&a.j){var l=(a.S+a.U)/a.duration,y=a.L.info.Lx;l&&y&&(p.VY.P9(1,l/y),p.policy.U&&l/y>1.5&&p.loader.jl("overshoot",{sq:a.Rc,br:l,max:y}))}}; Rs=function(p){return p.NF&&p.getVideoData().mutedAutoplay}; P$r=function(p){var a={c:p.Tw,e:p.b6,mc:p.nK,me:p.Mo};p.Xd&&(a.co={c:p.Xd.bl,a:p.Xd.T7,s:p.Xd.UT});return a}; LSe=function(p){g.D.call(this);var a=this;this.componentId="";this.L=[];this.nz="";this.pageId=null;this.r7=this.Bs=-1;this.K=this.experimentIds=null;this.G=this.j=0;this.Sl=null;this.Xu=this.w7=0;this.OO=1;this.timeoutMillis=0;this.QY=!1;this.logSource=p.logSource;this.Ov=p.Ov||function(){}; this.U=new Mx(p.logSource,p.o6);this.network=p.network||null;this.Uo=p.Uo||null;this.Z=p.TEv||null;this.sessionIndex=p.sessionIndex||null;this.Xa=p.Xa||!1;this.logger=null;this.withCredentials=!p.w2;this.o6=p.o6||!1;this.UO=!this.o6&&!!LF()&&!!LF().navigator&&LF().navigator.sendBeacon!==void 0;this.Hs=typeof URLSearchParams!=="undefined"&&!!(new URL(Vn())).searchParams&&!!(new URL(Vn())).searchParams.set;var l=Gre(new kW);OU(this.U,l);this.W=new g.r5(1E4,3E5,.1);p=Bx$(this,p.xM);this.S=new rH(this.W.getValue(), p);this.t9=new rH(6E5,p);this.Xa||this.t9.start();this.o6||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){KOE(a);var y;(y=a.Sl)==null||y.flush()}}),document.addEventListener("pagehide",function(){KOE(a); var y;(y=a.Sl)==null||y.flush()}))}; d8Z=function(p,a){if(a>=0)kO(p,a);else{for(var l=0;l<9;l++)p.L.push(a&127|128),a>>=7;p.L.push(1)}}; g.hn=function(){Xw$||(Xw$=new x2M);return Xw$}; $av=function(p){this.value=p}; WIM=function(p){p.S!==void 0&&(p.U.forEach(function(a){var l;(l=p.S)==null||l.removeEventListener(a,p.j)}),p.S=void 0)}; bLr=function(p,a,l,y){return new YN(p,a,{opacity:l},{opacity:y},{property:"opacity",duration:a,timing:"ease-in",delay:0})}; FSh=function(p){for(var a=0;a0&&!(eBA()>(0,g.Ek)()-p*1E3))return 0;p=g.zv("yt-player-quality");if(typeof p==="string"){if(p=g.T9[p],p>0)return p}else if(p instanceof Object)return p.quality;return 0}; C$M=function(p){p.UO=NaN;p.Z=0;p.K=p.U}; vbZ=function(p,a,l,y){var S=PE(a.J9().clientMetadata,"metadata_type_ad_pod_skip_target");if(S&&S>0&&S32&&y.push("hfr");a.isHdr()&&y.push("hdr");a.primaries==="bt2020"&&y.push("wcg");l.video_quality_features=y}}if(p=p.getPlaylistId())l.list=p;return l}; nJ=function(p,a){a=a||p.videoTrack&&p.videoTrack.S&&p.videoTrack.S.startTime||p.getCurrentTime();var l=p.videoTrack,y=p.L;a=y.nextVideo&&y.nextVideo.index.Ot(a)||0;y.Bs!==a&&(y.t9={},y.Bs=a,Kt(y,y.L));a=!y.L.isLocked()&&y.Sl>-1&&(0,g.Ek)()-y.Sll.R7)){var F=g.sW(p.C().experiments,"html5_drm_byterate_soft_cap");F>0&&z1A(P)&&P.Lx>F||(r?(V.push(w),m2f(w,V,p)):(P=e1(l,P,S),P===!0?(r=!0,V.push(w),m2f(w,V,p)):d[w]=P))}}}B=g.t(B);for(G=B.next();!G.done;G=B.next())for(G=g.t(G.value),r=G.next();!r.done;r=G.next())if(r=r.value,(c=$uO(r))&&c.audio&&(p.D("html5_onesie_51_audio")||!jz(c)&&!x0(c)))if(c=e1(l,c,S),c===!0){z.push(r);m2f(r,z,p);break}else d[r]=c;if(!p.D("html5_enable_audio_quality_setting"))for(p= g.t(["141","774"]),B=p.next();!B.done;B=p.next())B=B.value,z.includes(B)&&(g.FS(z,B),d[B]="blkhqa");l.S&&a("orfmts",d);if(y)return S.S&&(S.S=!1,TV=Ns=void 0),n?TV={video:V,audio:z}:Ns={video:V,audio:z};Ns={video:V,audio:z};S.S=!1;return Ns}; jTr=function(p,a,l){var y,S=a==null?void 0:(y=a.text)==null?void 0:y.simpleText;S&&t9O(p,l,S,a==null?void 0:a.icon).listen("click",function(){var n;(a==null?void 0:(n=a.icon)==null?void 0:n.iconType)==="HIDE"?p.B.publish("featuredproductdismissed"):a.serviceEndpoint&&p.B.xv("innertubeCommand",a.serviceEndpoint);p.hide()},p)}; Cn=function(p,a,l,y,S){var n=l.FM,V,z;p[a]=function(d,G,B){return n(d,G,B,z||(z=Ch(MX,Ex,Cn,y).fG),V||(V=Uc(y)),S)}}; xZ=function(p,a,l,y,S,n,V,z,d,G){if((p^91)>>3==3){for(var B=64,c=[];++B-c[Z[7]]-32;){switch(B){case 91:B=44;continue;case 123:B=65;break;case 65:B-=18;continue;case 58:B=96;continue;case 46:B=95}c[Z[11]](String[Z[37]](B))}var r=c}(p|56)==p&&l[Z[11]](a);(p+9&14)>=10&&p>>1<26&&(B=a[Z[16]](Z[48],12),c=a[Z[16]](Z[48],B+1),B>0&&c>0?(l[Z[2]]=a[Z[15]](0,c),a=a[Z[15]](c+1)):(l[Z[2]]=a,a=Z[3]),r=[a,l]);p+6>>1=p&&(r=y(S,n,V,z,d,G));if(((p^23)&5)==1){B=64;for(c=[];++B-c[Z[7]]-32;)switch(B){case 46:B= 95;default:c[Z[11]](String[Z[37]](B));case 94:case 95:case 96:break;case 123:B-=76;case 92:case 93:continue;case 58:B=44;case 91:}r=c}return r}; Q8=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-ad-survey-interstitial",N:[{X:"div",T:"ytp-ad-survey-interstitial-contents",N:[{X:"div",T:"ytp-ad-survey-interstitial-logo",N:[{X:"div",T:"ytp-ad-survey-interstitial-logo-image"}]},{X:"div",T:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",a,l,y);this.L=this.actionButton=null;this.interstitial=this.d7("ytp-ad-survey-interstitial");this.S=this.d7("ytp-ad-survey-interstitial-contents");this.text=this.d7("ytp-ad-survey-interstitial-text"); this.logoImage=this.d7("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Gq(this,500,!1,300);g.E(this,this.transition)}; WSr=function(p,a){if(a.M5()||a.Gm()){var l=p.loader,y=l.jl,S=a.state;p=p.K1();var n,V;if((a=(n=a.eD)==null?void 0:n.get(p))==null)a=void 0;else{n=0;p=a.vx();for(var z=0;z=0?p.S[a]:null}; HBM=function(p,a,l,y){y=y===void 0?!1:y;p.set("cpn",a.clientPlaybackNonce);p.set("opr","1");var S=a.C();p.set("por","1");zT()||p.set("onem","1");a.startSeconds>0&&p.set("osts",""+a.startSeconds);y||(S.D("html5_onesie_disable_partial_segments")&&p.set("oses","1"),a=S.D("html5_gapless_onesie_no_media_bytes")&&nn(a)&&a.b_,l&&!a?(a=l.audio,p.set("pvi",l.video.join(",")),S.D("html5_onesie_disable_audio_bytes")||p.set("pai",a.join(",")),fn||p.set("osh","1")):(p.set("oad","0"),p.set("ovd","0"),p.set("oaad", "0"),p.set("oavd","0")))}; jZo=function(p){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in D2E))return!1;p=p.split(RegExp("[:&]"));var a=D2E.FLAG_AUTO_CAPTIONS_DEFAULT_ON,l="f"+(1+Math.floor(a/31)).toString();a=1<l.duration?y:l},{duration:0}))&&a.startTime>0&&a.responseEnd>0&&(tn("wffs",xx(a.startTime)),tn("wffe",xx(a.responseEnd)))}; Ouv=function(p){var a={};g.oO("json_condensed_response")&&(a.prettyPrint="false");return p=mP(p,a)}; iBr=function(p,a,l){a=Kjf(a);if(a!=null){switch(typeof a){case "string":Yqo(a)}if(a!=null)switch(GB(p,l,0),typeof a){case "number":p=p.L;jF(a);r6M(p,tm,jN);break;case "bigint":l=BigInt.asUintN(64,a);l=new wu(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)));r6M(p.L,l.S,l.L);break;default:l=Yqo(a),r6M(p.L,l.S,l.L)}}}; U2f=function(p,a,l,y,S){g.D.call(this);var n=this,V=tX(function(){return new jt(n.EO)}); g.E(this,V);var z=tX(function(){return new W3(V,n.EO)}); g.E(this,z);var d=tX(function(){return new H3}); g.E(this,d);var G=tX(function(){return new Dq(p)}); g.E(this,G);var B=tX(function(){return new iE(V,z,n.EO)}); g.E(this,B);var c=tX(function(){return new TY}); g.E(this,c);this.X7=tX(function(){return new Ec(a)}); g.E(this,this.X7);this.uM=tX(function(){return new Nx(S)}); g.E(this,this.uM);this.lr=tX(function(){return new Nh(a)}); g.E(this,this.lr);this.gq=tX(function(){return new sU(a)}); g.E(this,this.gq);this.BZ=tX(function(){return new QI(a)}); g.E(this,this.BZ);this.VL=tX(function(){return new gp(a)}); g.E(this,this.VL);this.EO=tX(function(){return new YW(a)}); g.E(this,this.EO);var r=tX(function(){return new qx(y)}); g.E(this,r);var w=tX(function(){return new JX(n.EO)}); g.E(this,w);this.Ty=tX(function(){return new p$(a)}); g.E(this,this.Ty);this.C9=tX(function(){return new vz}); g.E(this,this.C9);this.ac=tX(function(){return new aK(a,c,n.EO)}); g.E(this,this.ac);var P=lv({ac:this.ac,EO:this.EO,UQ:w}),F=P.context,v=P.Pl;this.Tn=P.Tn;this.Je=tX(function(){return new WF(a,n.EO,n.uT)}); g.E(this,this.Je);this.WZ=tX(function(){return new E3(a)}); g.E(this,this.WZ);this.sO=tX(function(){return new yh(a,n.ac,n.EO)}); g.E(this,this.sO);this.wc=tX(function(){return new SZ}); g.E(this,this.wc);P=tX(function(){return new fI(V,B,z,n.EO,w,"SLOT_TYPE_ABOVE_FEED",n.sO,n.Iv,n.iC)}); g.E(this,P);this.oM=tX(function(){return new ZT(n.EO)}); this.dG=tX(function(){return new n$(n.sO,a,n.EO)}); g.E(this,this.dG);this.uT=tX(function(){return new Vh(a,d,n.dG,n.ac,n.Tn,n.EO,v)}); g.E(this,this.uT);this.o1=new oK(Dn,zA,function(b,O,m,H){return OB(z.get(),b,O,m,H)},G,B,z,w,this.EO,this.ac); g.E(this,this.o1);this.g$=new db(G,P,l,this.EO,p,this.ac,this.sO,this.lr);g.E(this,this.g$);var I=new GA(a,this.g$,this.sO,this.ac,this.Je);this.t$=tX(function(){return I}); this.OS=I;this.Iv=new Xi(G,B,this.t$,this.Je,this.sO,this.EO,this.uT,this.WZ);g.E(this,this.Iv);this.o9=new BQ(G,B,this.gq,this.t$,F);g.E(this,this.o9);this.By=new cQ(this.EO,G,B,P,this.ac,this.o9,l,this.BZ);g.E(this,this.By);this.wh=tX(function(){return new rb(r,z,w,n.EO,n.uT,n.sO,n.WZ)}); g.E(this,this.wh);this.WX=tX(function(){return new wb}); g.E(this,this.WX);this.Et=new $q(p,this.X7,this.EO);g.E(this,this.Et);this.zn=new PQ(p);g.E(this,this.zn);this.bJ=new zr(p);g.E(this,this.bJ);this.Tp=new L$(p,this.t$,F);g.E(this,this.Tp);this.zO=new XX(p,this.gq,this.sO,this.ac,F);g.E(this,this.zO);this.Q7=new tJ(p,this.ac);g.E(this,this.Q7);this.iC=new es(p,this.Je,this.sO,this.uT,this.t$,this.Iv);g.E(this,this.iC);this.Qr=new xq(p);g.E(this,this.Qr);this.sE=new C$(p);g.E(this,this.sE);this.Jl=new FX(p);g.E(this,this.Jl);this.MG=new Kx(p);g.E(this, this.MG);this.sE=new C$(p);g.E(this,this.sE);this.f1=tX(function(){return new vQ}); g.E(this,this.f1);this.q7=tX(function(){return new K$(n.sO)}); g.E(this,this.q7);this.Ab=tX(function(){return new pth(n.X7,n.uT,p,d,n.dG)}); g.E(this,this.Ab);this.Es=tX(function(){return new eZ(n.By,G,V)}); g.E(this,this.Es);this.Dl=tX(function(){return new bv(n.EO,n.uT,n.Qr,n.dG)}); g.E(this,this.Dl);this.Zl=tX(function(){return new ToZ(p,n.sE,n.Qr,n.ac,n.WZ,n.sO,n.wc,n.uT,c,n.Je,n.dG,n.oM,n.BZ,n.gq,n.lr,n.VL,n.uM,n.Ty,n.EO,d,F,v)}); g.E(this,this.Zl);this.CD=tX(function(){return new Nor(n.sO,n.uT,n.uM,n.EO,n.dG,n.ac)}); g.E(this,this.CD);this.Cc=tX(function(){return new sTq(n.X7,n.sO,n.uT,d,n.dG,n.bJ,n.MG,n.uM,n.EO,l)}); g.E(this,this.Cc);this.qg=tX(function(){return new DCO(n.X7,n.uT,d)}); g.E(this,this.qg);this.FC=new ev(p,this.C9,V);g.E(this,this.FC);this.Gp={bZ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.By],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Iv],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.o1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.g$],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.o9]]),RI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wh],["SLOT_TYPE_ABOVE_FEED",this.WX],["SLOT_TYPE_FORECASTING",this.WX], ["SLOT_TYPE_IN_PLAYER",this.WX],["SLOT_TYPE_PLAYER_BYTES",this.WX],["SLOT_TYPE_PLAYER_UNDERLAY",this.WX],["SLOT_TYPE_PLAYBACK_TRACKING",this.WX],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.WX]]),V9:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Et],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Et],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.zn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.zn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.zn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.zn],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.zn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.zn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.zn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.zn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.zn],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.zn],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.zn],["TRIGGER_TYPE_CLOSE_REQUESTED",this.bJ],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tp],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.zO],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.zO],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.zO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.zO],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Q7],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Q7],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Qr],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Tp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jl],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.MG],["TRIGGER_TYPE_AD_BREAK_STARTED",this.sE],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.iC],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iC],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iC],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iC]]),Nt:new Map([["SLOT_TYPE_ABOVE_FEED",this.f1], ["SLOT_TYPE_AD_BREAK_REQUEST",this.f1],["SLOT_TYPE_FORECASTING",this.f1],["SLOT_TYPE_IN_PLAYER",this.f1],["SLOT_TYPE_PLAYER_BYTES",this.q7],["SLOT_TYPE_PLAYER_UNDERLAY",this.f1],["SLOT_TYPE_PLAYBACK_TRACKING",this.f1],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.f1]]),fH:new Map([["SLOT_TYPE_ABOVE_FEED",this.Ab],["SLOT_TYPE_AD_BREAK_REQUEST",this.Es],["SLOT_TYPE_FORECASTING",this.Dl],["SLOT_TYPE_PLAYER_BYTES",this.Zl],["SLOT_TYPE_PLAYBACK_TRACKING",this.CD],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.CD],["SLOT_TYPE_IN_PLAYER",this.Cc],["SLOT_TYPE_PLAYER_UNDERLAY",this.qg]])};this.listeners=[d.get()];this.o_={By:this.By,lU:this.EO.get(),ZV:this.uM.get(),lZ:this.sO.get(),g$:this.g$,xk:V.get(),VE:this.C9.get(),hw:this.Et,T_:d.get(),Y3:this.ac.get()}}; zNq=function(p){var a=document.createElement("a");g.BR(a,p);p=a.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+E7(p)}; h2=function(p){p.Xu&&clearTimeout(p.Xu);p.Xu=void 0;p.Sl=!1}; VX=function(p,a){return rKv(p,a||{},!0)}; pSr=function(p){if(p=p.getWatchNextResponse()){var a,l;p=(a=p.playerOverlays)==null?void 0:(l=a.playerOverlayRenderer)==null?void 0:l.timelyActionsOverlayViewModel;a=g.T(p,QTO);if(a!=null&&a.timelyActions)return a==null?void 0:a.timelyActions.map(function(y){return g.T(y,hXM)}).filter(function(y){return!!y})}}; SmM=function(p,a,l){a.match(ARM);return p(a,l).then(function(y){var S=g.Ioq(y.xhr);return S?SmM(p,S,l):y.xhr})}; CMF=function(p,a,l,y,S){try{var n=a.C();if(g.Z0(n))var V=new U2f(p,a,l,y,S);else if(g.Ry(n))V=new rpA(p,a,l,y,S);else if(y5(n))V=new I$M(p,a,l,y,S);else if(g.dB(n))V=new Qkq(p,a,l,y,S);else if(g.PD(n))V=new gb$(p,a,l,y,S);else throw new TypeError("Unknown web interface");return V}catch(z){return V=a.C(),hF("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:V.L.cplatform,interface:V.L.c,NIY:V.L.cver,mal:V.L.ctheme,hdV:V.L.cplayer,TC7:V.playerStyle}),new ON$(p,a,l,y,S)}}; u_A=function(p,a){var l=PE(p.clientMetadata,"metadata_type_ad_placement_config");return new Rq(p.Xh,a,l,p.layoutId)}; Ya$=function(p){if(!/^\w+$/.test(p))throw Error("ExpectedRegexMismatch: "+p);}; qa$=function(p){p.QY=0;p.va=0;p.oo=0}; WRF=function(p,a,l){var y,S=((y=l.video)==null?void 0:y.fps)||0;y=a+"_"+S;var n=!!l.audio,V={itag:l.itag,h9:a,Qh:n};if(n)V.numChannels=l.audio.numChannels;else{var z=l.video;V.maxWidth=z==null?void 0:z.width;V.maxHeight=z==null?void 0:z.height;V.maxFramerate=S;H8(p,Dt.BITRATE)&&(V.maxBitrateBps=l.Lx*8);V.vT=z==null?void 0:z.isHdr()}z=p.L.get(y);z?n||(l=Math.max(z.maxWidth||0,z.maxHeight||0)>Math.max(V.maxWidth||0,V.maxHeight||0)?z:V,a={itag:l.itag,h9:a,Qh:n,maxWidth:Math.max(z.maxWidth||0,V.maxWidth|| 0),maxHeight:Math.max(z.maxHeight||0,V.maxHeight||0),maxFramerate:S,vT:l.vT},H8(p,Dt.BITRATE)&&(a.maxBitrateBps=l.maxBitrateBps),p.L.set(y,a)):p.L.set(y,V)}; JRe=function(){var p=["metadata_type_invideo_overlay_ad_renderer"];CU().forEach(function(a){p.push(a)}); return{XX:p,OE:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; ff$=function(p){p.playlist&&p.playlist.unsubscribe("shuffle",p.onVideoDataChange,p)}; pO=function(p,a){if(p.policy.Kz&&p.Ic){var l,y,S=a?(l=p.Ic)==null?void 0:l.L:(y=p.Ic)==null?void 0:y.S;l=a?p.audioTrack:p.videoTrack;a=d$(l);if(a==null?0:a.isLocked){p.Lz.C().ao()&&p.jl("eosl",{unlock:a.info.AP()});var n;(n=l.t9)==null||n.stop();a.isLocked=!1;l.Gj(a);Zav(p.L,a.info);S=S==null?void 0:S.NP();(S==null?void 0:S.AP())!==a.info.AP()&&p.jl("oue",{bls:S==null?void 0:S.AP(),tls:a.info.AP()})}}}; yG=function(p){return g.h(p,128)?-1:g.h(p,2)?0:g.h(p,2048)?3:g.h(p,64)?-1:g.h(p,1)&&!g.h(p,32)?3:g.h(p,8)?1:g.h(p,4)?2:-1}; WJ=function(p,a,l){for(var y=[],S;S=Cf(p,a);)y.push(l(new AJ(new NN([S]))));return y.length?y:void 0}; W2M=function(p){this.L=p.playback_progress_0s_url;this.U=p.playback_progress_2s_url;this.S=p.playback_progress_10s_url}; lPr=function(p,a){var l;return g.R(function(y){(0,g.Ek)();var S=p.L;S.W||(S.W=new pUo(S.U));l=S.W;return y.return(nQM(l,a,p.iv))})}; g.Et=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},N:[{X:"path",V:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}}; ZT=function(p){this.EO=p}; g.$U=function(p,a){typeof p=="number"&&(p=(a?Math.round(p):p)+"px");return p}; hLE=function(p){var a=0,l=NaN,y="";if(!p.Sl)return{startSeconds:a,o2:l,source:y};p.videoData.w7?a=p.videoData.QY:RQ(p.videoData)&&(a=Infinity);if(g.xV(p.videoData))return{startSeconds:a,o2:l,source:y};p.videoData.startSeconds?(y="ss",a=p.videoData.startSeconds):p.videoData.o4&&(y="stss",a=p.videoData.o4);p.videoData.liveUtcStartSeconds&&(l=p.videoData.liveUtcStartSeconds);if(isFinite(a)&&(a>p.Lh()||ap.G&&(p.G=NaN,p.K=NaN);p.L&&p.L.Rc===a?Baf(p,a,l,p.L,S):p.S===1&&pV(p,5,"noad")}; y8=function(p,a,l){if(l&&l!==p.slotType)return!1;a=g.t(a);for(l=a.next();!l.done;l=a.next())if(!Q5(p.clientMetadata,l.value))return!1;return!0}; g.Us=function(p,a,l,y,S){a=a===void 0?!1:a;y=y===void 0?!1:y;S=S===void 0?!1:S;g.qu.call(this);this.Sl=S;this.K=!1;this.j=new FM(this);this.W=this.G=null;this.U=this.S=!1;g.E(this,this.j);this.target=p;this.L=a;this.Z=l||p;this.K=y;a&&(g.Hs&&this.target.setAttribute("draggable","true"),S||(this.target.style.touchAction="none"));ph(this)}; ljO=function(p,a){var l=a.getId();p.OO[l]===a&&(g.wC(p.O6[l]),delete p.OO[l],delete p.O6[l])}; keF=function(p,a){this.L=p;this.duration=a}; A2=function(p,a,l){vO.call(this,p,a,l)}; yCO=function(p){Ebh=2592E3*(p||1)}; S5h=function(p,a){if(tB(p,HM)||p.api.isMinimized())return!1;var l=Dl(a.title),y=Dl(a.description);if(g.Ta(l)||g.Ta(y))return!1;p.createServerVe(p.U.element,a.trackingParams||null);p.U.updateValue("title",Dl(a.title));p.U.updateValue("description",Dl(a.description));p.U.updateValue("displayUrl",Dl(a.displayUrl));a.navigationEndpoint&&g.N7(p.Z,a.navigationEndpoint);p.U.show();p.Hs.start();p.logVisibility(p.U.element,!0);p.J(p.U.element,"mouseover",function(){p.Xu++}); return!0}; Msr=function(p,a){var l;return g.R(function(y){if(!a)return y.return(a);l=new g.s4(p.S);return y.return(l.encrypt(a,p.L))})}; g.BS=function(p){g.X.call(this,{X:"button",A9:["ytp-large-play-button","ytp-button"],V:{"aria-label":"Bot\u00f3n de reproducci\u00f3n",title:"Bot\u00f3n de reproducci\u00f3n"},N:["{{largePlayButtonChildren}}"]});this.api=p;this.J(p,"videodatachange",this.pz);this.J(p,"basechromeinitialized",this.tjl);p=this.api.C();p.K&&Nr&&(this.listen("click",this.fV,this),this.listen("touchstart",this.MaO,this));g.iT(p)&&g.uD(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this, 28572);this.pz()}; O7=function(){var p,a;return"h5vcc"in MQ&&((p=MQ.h5vcc.traceEvent)==null?0:p.traceBegin)&&((a=MQ.h5vcc.traceEvent)==null?0:a.traceEnd)?1:"performance"in MQ&&MQ.performance.mark&&MQ.performance.measure?2:0}; ol=function(){var p=g.zv("yt-player-user-settings"),a=new Map;if(p){p=g.t(Object.entries(p));for(var l=p.next();!l.done;l=p.next()){var y=g.t(l.value);l=y.next().value;y=y.next().value;a.set(l,y)}}return a}; Zc=function(p,a){if(g.gd(p.U,a))return p.U[a];if(p=p.L[a])return p.getValue()}; n5o=function(p,a){if(a.info.video){if(p.U!==a)return p.U=a,l5$(p)}else p.OO=p.K!==a,p.K=a;return null}; qF=function(p,a,l){p=p.loader.Jg()||0;return li(a,(l+p)*1E3)/1E3+l}; VIo=function(p){return p.videoData.LC()&&p.D("html5_enable_shorts_seek_details_logging")}; g.gK=function(p,a,l,y){g.D.call(this);var S=this;this.api=p;this.Y=a;this.playback=l;this.app=y;this.Xu=new g.WX;this.S=new Map;this.t9=new Map;this.QY=null;this.eb=NaN;this.Yv=this.yQ=null;this.Sb=new g.l_(function(){qFf(S,S.eb,S.yQ||void 0)}); this.events=new g.hm(this);this.Kz=15E3;this.K=new g.l_(function(){S.Z=!0;S.playback.aJ(S.Kz);rJ(S);if(S.playback.getVideoData().vy()){var n;S.wG({togab:(n=S.G)==null?void 0:n.identifier})}S.Zo(!1)},this.Kz); this.Z=!1;this.W=new Map;this.r7=[];this.G=null;this.vZ=new Set;this.Sl=[];this.VY=[];this.qc=[];this.Fh=[];this.Hs=new Set;this.pH=0;this.UO=!1;this.oo=new Set;this.EC=new Set;this.O6=new Set;this.Ps=new Set;this.va=this.sZ=0;this.bK=this.Ha=!1;this.x3=this.U="";this.w7=null;this.logger=new g.iF("dai");this.o4="";this.nz=!0;this.hg={nYc:function(){return S.S}, wL:function(){return S.L.hg.wL()}, Jzc:function(){return S.U}, BNm:function(n){S.onCueRangeEnter(S.S.get(n))}, Hgs:function(n){S.onCueRangeExit(S.S.get(n))}, PSv:function(n,V){S.S.set(n,V)}, CSY:function(n){S.x3=n}, G2:function(){return S.G2()}, MQO:function(n){return S.L.L.get(n)}, czT:function(){return S.w7}, Ej:function(){return S.L.hg.Ej()}, v8:function(n,V){S.v8(n,V)}}; this.playback.getPlayerType();this.L=new on(this.Y);this.playback.XM(this);this.OO=this.Y.ao();g.E(this,this.Sb);g.E(this,this.events);g.E(this,this.K);this.Y.D("html5_use_new_ssdai_transition_detector")?this.playback.subscribe("playbackstarted",this.v8,this):(this.events.J(this.api,g.I4("serverstitchedcuerange"),this.onCueRangeEnter),this.events.J(this.api,g.c4("serverstitchedcuerange"),this.onCueRangeExit));this.Kt=this.Y.D("html5_ssdai_report_stitch_error_after_skip_ad");R_(this.app.mD(),this.playback, !1)}; J6v=function(p){return{Do:FW(p,1)}}; g.lE=function(p,a){var l=a.format||"JSON";p=xUo(p,a);var y=FTA(p,a),S=!1,n=Zdv(p,function(d){if(!S){S=!0;z&&g.pI(z);var G=g.AW(d),B=null,c=400<=d.status&&d.status<500,r=500<=d.status&&d.status<600;if(G||c||r)B=o5M(p,l,d,a.convertToSafeHtml);G&&(G=UGr(l,d,B));B=B||{};c=a.context||g.dD;G?a.onSuccess&&a.onSuccess.call(c,d,B):a.onError&&a.onError.call(c,d,B);a.onFinish&&a.onFinish.call(c,d,B)}},a.method,y,a.headers,a.responseType,a.withCredentials,!1,a.onProgress); y=a.timeout||0;if(a.onTimeout&&y>0){var V=a.onTimeout;var z=g.aY(function(){S||(S=!0,n.abort(),g.pI(z),V.call(a.context||g.dD,n))},y)}return n}; $q=function(p,a,l){Y$.call(this,p);var y=this;this.EO=l;a.get().addListener(this);this.addOnDisposeCallback(function(){a.Gm()||a.get().removeListener(y)})}; g.U1=function(p,a){this.x=p!==void 0?p:0;this.y=a!==void 0?a:0}; dBO=function(p){zuF(p.sO.get(),!0);var a;((a=p.shrunkenPlayerBytesConfig)==null?0:a.shouldRequestShrunkenPlayerBytes)&&p.sO.get().ZH(!1)}; ID=function(p,a){return a===void 0||a===null?p:a==="1"||a===!0||a===1||a==="True"?!0:!1}; GNO=function(p){var a=p.j.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);a.classList.add("ytp-seek-overlay-arrow-additional");a.classList.remove("ytp-seek-overlay-arrow-persistent");p.j.appendChild(a);a4o(p,a,!0,!0).addEventListener("finish",function(){a.remove()})}; Biv=function(p,a,l){l=og(p,l);for(var y,S;l>=0;l--)if(y=p.levels[l],S=zE(y,a),!y.isLoaded(S)){y=p;var n=l,V=n+"-"+S;y.G.has(V)||(y.G.add(V),y.U.enqueue(n,{Fg:n,Tl:S}))}cXr(p)}; Y0=function(p){var a=p.data.getUint8(p.offset+p.L);p.L+=1;return a}; kH=function(){this.L=new Map;this.S=!1}; cCr=function(p,a){return new Promise(function(l){g.jv(0,function(){l(a())},p)})}; k7=function(p){p=wj(p);if(p.gel){var a=p.gel;a.gelInfos||(a.gelInfos={});a.gelTicks||(a.gelTicks={})}else p.gel={gelTicks:{},gelInfos:{}};return p.gel}; kj=function(p){QH.call(this,p);var a=this;zW(this.api,"getSphericalProperties",function(){return a.getSphericalProperties()}); zW(this.api,"setSphericalProperties",function(){a.setSphericalProperties.apply(a,g.u0(g.D1.apply(0,arguments)))}); jB(this.api,"getSphericalProperties",function(){return a.api.getPresentingPlayerType()===2?{}:a.getSphericalProperties()}); jB(this.api,"setSphericalProperties",function(){var l=g.D1.apply(0,arguments);a.api.getPresentingPlayerType()!==2&&a.setSphericalProperties.apply(a,g.u0(l))})}; rCr=function(p){switch(p){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}}; g.KSe=function(){return{X:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},N:[{X:"path",V:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 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"}}]}}; kYo=function(p,a){switch(a){case 2:a="Ocultar v\u00eddeos";var l="Hide recommendations grid";break;default:a="M\u00e1s v\u00eddeos",l="Show recommendations grid"}p.updateValue("title",a);p.element.ariaLabel=l;p.U.textContent=a}; va=function(p,a,l){l=l!=null?"="+g.Ls(l):"";return mT(p,a+l)}; wUM=function(p,a,l,y,S){wt.call(this,"shopping-companion",p,a,l,y,S)}; W1=function(p){QH.call(this,p);this.events=new g.hm;g.E(this,this.events);this.events.J(p,"applicationInitialized",function(){var a={};for(aj=new c6E(a.handleError===void 0?R$:a.handleError,a.logEvent===void 0?g.mf:a.logEvent);lU.length>0;)switch(a=lU.shift(),a.type){case "ERROR":aj.Tf(a.payload);break;case "EVENT":aj.logEvent(a.eventType,a.payload)}}); Sa(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));Sa(this.api,"updateDownloadState",this.updateDownloadState.bind(this));Sa(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));Sa(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));Sa(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));Sa(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));Sa(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; k2M=function(p,a){var l={};g.wW(p.api.C())&&(g.pj(p.api,"addEmbedsConversionTrackingParams",[l]),a=g.C2(a,l));return a}; CGq=function(p,a,l,y,S,n,V,z){if(!$BZ(l,z===void 0?!1:z))return new W("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:l});var d=La(l);if(d<=0)return new W("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:l});var G=new Id({current:null}),B=qlO(p,a,l,G,y,n,V);return KBM(p,y,n,d,S,function(c,r){var w=c.slotId,P=XJ(l);c=V(c);var F,v=(F=a_(a,y,l.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?F: xc(a.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",w);w={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",iT:"core"};F=B(v,r);var I=PE(F.clientMetadata,"metadata_type_fulfilled_layout");I||hF("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");P=[new ei(y),new wT(d),new R1(P),G];I&&P.push(new RG(I.layoutType));return{KTO:{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xh:new Map,layoutExitNormalTriggers:[new Ce(a.L,v)],layoutExitSkipTriggers:[new Ca(a.L, r.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new vk(a.L,r.layoutId)],layoutExitUserCancelledTriggers:[],iT:"core",clientMetadata:new Lc(P),nx:c(w)},qv:F}})}; I2E=function(p){if(!g.oO("universal_csi_network_ticks"))return"";p=zG(p)||"";for(var a=Object.keys(Vh$),l=0;lMath.max(1E4,p.U/3)?0:a);var l=p.K(p)||{};l=l.currentTime!==void 0?l.currentTime:p.UO;var y=l-p.UO,S=0;y>=0?(p.Xu+=a,p.t9+=Math.max(a-y,0),S=Math.min(y,p.Xu)):p.r7+=Math.abs(y);y!=0&&(p.Xu=0);p.OO==-1&&y>0&&(p.OO=oq>=0?nu()-oq:-1);p.UO=l;return S}; B7=function(p){var a=Kv(p.L,kW,1);a||(a=new kW,OU(p,a));p=a;a=Kv(p,pl,11);a||(a=new pl,$W(p,pl,11,a));return a}; xs=function(p,a){if(a.m6)for(var l=0;l0))return p}; J2=function(){cc.apply(this,arguments)}; k$q=function(p){if(!wk(p.adLayoutMetadata))return!1;p=p.renderingContent;return g.T(p,QV)||g.T(p,hE)||g.T(p,Uv)||g.T(p,v5f)||g.T(p,KKA)||g.T(p,euh)?!0:!1}; BH=function(p,a,l,y){var S=cH(a);!S||S.j||PL(S,y)||(l.abort(),p.policy.g3&&(S=a.Z)!=null&&(S.U=void 0),(a=a.Sl)!=null&&(xC(a,4),a.flush()));if(!l.Z8()||MD())try{p.policy.HS?l.v6(y.L.info.containerType,y.L.info.h9)&&l.qZ(y.L.info.containerType,y.L.info.h9,y.L.info.mimeType):l.oC(y.L.info.containerType,y.L.info.mimeType)}catch(n){return l=n,g.Mf(l),p.jl("ctexp",{name:l.name,msg:l.message}),!1}else y.L.info.containerType!==l.Z8()&&p.jl("ctu",{ct:MD(),prev_c:l.Z8(),curr_c:y.L.info.containerType});a=y.L.j; p.policy.IK&&a&&(y=0+a.duration,a=-a.L,0===l.Gu()&&y===l.qP()||l.o0(0,y),a!==l.Jg()&&(l.y5(a),EF&&dYM(p.audioTrack.YG(),l.BJ())));return!0}; ZjO=function(p){var a;return g.R(function(l){if(l.L==1)return g.u(l,u8q(p),2);a=l.S;return g.u(l,a.clear("SWHealthLog"),0)})}; Nqr=function(p){var a=oB(p)==="adunit"?p.c8:kF(p)?oB(p)==="detailpage"||oB(p)==="shortspage"?p.isAutonav||p.Fh>0:p.TO?!1:p.Ws.SD||p.Ws.zy||!g.wW(p.Ws)?!0:!1:(p.TO?0:p.zy)&&g.wW(p.Ws)?!0:!1;p.D("html5_log_detailpage_autoplay")&&oB(p)==="detailpage"&&p.jl("autoplay_info",{autoplay:p.Sj,autonav:p.isAutonav,wasDompaused:p.TO,result:a});return a}; bdo=function(p,a,l,y,S){var n=p.MO;var V=p.policy.L,z=!1,d=-1,G;for(G in n.L){var B=QX(n.L[G].info.mimeType)||n.L[G].info.HX();if(y===B)if(B=n.L[G].index,B.iW(a.Rc)){z=B;var c=a,r=z.H1(c.Rc);r&&r.startTime!==c.startTime?(z.segments=[],z.jB(c),z=!0):z=!1;z?d=a.Rc:!a.pending&&V&&(c=B.getDuration(a.Rc),c!==a.duration&&(n.publish("clienttemp","mfldurUpdate",{itag:n.L[G].info.itag,seg:a.Rc,od:c,nd:a.duration},!1),B.jB(a),z=!0))}else B.jB(a),z=!0}d>=0&&(V={},n.publish("clienttemp","resetMflIndex",(V[y? "v":"a"]=d,V),!1));n=z;AGO(p.R9,a,y,n);if(p.policy.Ps&&p.policy.S&&(d=a.YE||null)){var w;V=(w=p.S)==null?void 0:y2q(w).requestNumber;var P;(P=p.w7)==null||UQf(P,d,V,a.Rc)}p.U.qH(a,l,y,S);a.Rc===p.MO.BX&&n&&Pz(p.MO)&&a.startTime>Pz(p.MO)&&(p.MO.QY=a.startTime+(isNaN(p.timestampOffset)?0:p.timestampOffset),p.R9.isSeeking()&&p.R9.targetTime")!=-1&&(p=p.replace(Ode,">")),p.indexOf('"')!=-1&&(p=p.replace(kNo,""")),p.indexOf("'")!=-1&&(p=p.replace(MIF,"'")),p.indexOf("\x00")!=-1&&(p=p.replace(mBq,"�")));return p}; DR=function(p){var a=p.api.C();p.QQ.Xb("pot_ist");p.S||OAo(p);p.D("html5_bandaid_attach_content_po_token")||(p.D("html5_generate_session_po_token")&&(ku(p),oYM(p)),a=g.sW(a.experiments,"html5_session_po_token_interval_time_ms")||0,a>0&&(p.K=g.Vo(function(){ku(p)},a)),p.Z=!0)}; tIA=function(p,a){var l=Number(a==null?void 0:a.maxVisibleDurationMilliseconds);l&&(h2(p),p.Xu=setTimeout(function(){if(p.L!==void 0&&(a==null?void 0:a.cueRangeId)===p.L){p.Sl=!1;var y=RPZ(p,p.L);y&&p.api.xv("innertubeCommand",y)}},l))}; tbE=function(p,a,l,y){p.L&&p.L.dispose();p.L=new g.l_(p.Ro,a,p);g.E(p,p.L);y=xK(y);a=y==null?void 0:y.navigationEndpoint;var S;y=y==null?void 0:(S=y.icon)==null?void 0:S.iconType;var n;S=(n=g.T(a,g.vX))==null?void 0:n.url;p.B.setTrackingParams(p.element,(a==null?void 0:a.clickTrackingParams)||null);a&&!S?(p.innertubeCommand=a,S="#!"):p.innertubeCommand=null;var V;p.S.update({href:(V=S)!=null?V:"#",text:l,icon:y==="MONEY_HAND"?{X:"svg",V:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"}, N:[{X:"path",V:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:S||p.innertubeCommand?g.Et():null})}; eS=function(p,a){var l="f"+(Math.floor(p/31)+1);p=1<0&&n.width>0){n=[Math.round(n.width),Math.round(n.height)];var V=g.GR();V>1&&n.push(V);n=n.join(":")}else n=void 0;S.size=n})}; SqM=function(p,a,l,y,S,n){g.qu.call(this);var V=this;this.loader=p;this.MO=a;this.policy=l;this.videoTrack=y;this.audioTrack=S;this.UO=this.L=null;this.G=this.K=NaN;this.Z=0;this.Sl=NaN;this.U=null;this.Bs=this.w7=NaN;this.QY=new Map;this.Xu=this.W=this.j=NaN;this.hg={pIv:function(){return V.S}}; this.S=n?1:0}; VQ=function(p,a,l){this.L=p;this.S=a;this.expiration=l;this.bM=null}; lY=function(p){this.NO=Dm(p)}; WKM=function(p){zo(p,"impression")&&p.h5("clickthrough")}; HdF=function(p){Z4(p,4,!1);p.K&&(p.L.ME(p.K),p.K=null,p.U=p.L.J(p.target,"mouseover",p.TH));p.U&&(p.L.ME(p.U),p.U=p.L.J(p.target,"mouseover",p.TH))}; gN=function(p,a,l){var y=this;this.requestType=p;this.bM=a;this.Wa=l;this.S=null;this.hg={Yr:function(){var S;return(S=y.data)==null?void 0:S.Yr}, L_:function(){var S;return(S=y.data)==null?void 0:S.L_}}}; XRr=function(p){QH.call(this,p);var a=this;this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"basechromeinitialized",function(){a.L=new fg(p);g.E(a,a.L);g.uW(p,a.L.element,4);a.L.hide()})}; wRM=function(p,a){var l=p.B.C(),y=p.B.getPresentingPlayerType()===2,S=!y||a.isListed;S=!l.Xu&&!!a.videoId&&S;l.playerStyle!=="play"?l="https://support.google.com/youtube/?p=report_playback":(l={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.S&&(l.fmt=a.S.itag),a.clientPlaybackNonce&&(l.cpn=a.clientPlaybackNonce),a.partnerId&&(l.partnerid=a.partnerId),l=g.C2("//support.google.com/googleplay/",l));p.n9.Kx(S&&a.allowEmbed);p.getVideoUrl.Kx(S);p.K9.Kx(S&&!a.isLivePlayback); p.AA.setContent(l,"href");var n;(n=p.pO)==null||n.Kx(!a.isLivePlayback&&!y);cuF(p);var V;(V=p.VP)==null||V.Kx(!y)}; g.oQ=function(p,a){p.src=$v(a);ae(p)}; uY=function(p,a){if(p.timelyActions){p=g.t(p.timelyActions);for(var l=p.next();!l.done;l=p.next())if(l=l.value,l.cueRangeId===a)return l}}; Nir=function(p,a){a=a===void 0?"":a;p.state=1;p.nz=(0,g.Ek)();return DBf(a||p.sourceUrl).then(function(l){if(!p.Gm()){p.MA=l.status;l=l.responseText;var y=new DOMParser;l=IC(y,Dfr(l),"text/xml").getElementsByTagName("MPD")[0];p.Xu=idA(eH(l,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(l.attributes){y=g.t(l.attributes);for(var S=y.next();!S.done;S=y.next())if(S=S.value,S.value==="http://youtube.com/yt/2012/10/10"){y=S.name.split(":")[1];break b}}y=""}p.G=y;p.isLive=p.Xu0)||y.mediaElement&&y.mediaElement.getCurrentTime()>0||(a={JP:"seektimeline_resumeTime",U1:a},y.videoData.Sl||(a.seekSource=15), y.seekTo(y.U,a)));a:{a=l;if(gQ(p.videoData)){if(!p.videoData.m7())break a}else if(!g.gR(p.videoData))break a;if(p.mediaElement)if((y=p.videoData.W)&&p.mediaElement.M$()){S=p.mediaElement.gG();if(p.FX)if(S!==p.FX.element)uU(p);else if(a&&y.flavor==="fairplay"&&!hd())uU(p);else break a;if(p.D("html5_report_error_for_unsupported_tvos_widevine")&&hd()&&y.flavor==="widevine")p.Ne("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{p.FX=new IKh(S,p.videoData,p.Y,p.mediaElement); p.FX.subscribe("licenseerror",p.oS,p);p.FX.subscribe("qualitychange",p.hv7,p);p.FX.subscribe("heartbeatparams",p.EH,p);p.FX.subscribe("keystatuseschange",p.H8,p);p.FX.subscribe("ctmp",p.jl,p);a=g.t(p.Qv.keys);for(y=a.next();!y.done;y=a.next())y=p.Qv.get(y.value),p.FX.tv(y);p.D("html5_eme_loader_sync")||p.Qv.removeAll()}}else p.Ne("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return l}; siv=function(p,a,l,y){l=new g.CX({X:"div",A9:["ytp-menuitem"],V:{tabindex:"0",role:"menuitemradio","aria-checked":y?"true":"false"},N:[{X:"div",A9:["ytp-menuitem-label"],N:[{X:"div",A9:["ytp-menuitem-container-with-badge"],N:[{X:"div",yY:"{{label}}"},p.G]}]}]},l,p.Xv(a));l.listen("click",function(){p.fY(a)}); p.B.logVisibility(p.G.element,!0);return l}; wpe=function(p){var a,l,y,S;return g.R(function(n){switch(n.L){case 1:return p.L.L&&typeof((a=navigator.mediaCapabilities)==null?void 0:a.decodingInfo)==="function"?g.u(n,Promise.resolve(),2):n.return(Promise.resolve());case 2:l=g.t(p.L.videoInfos),y=l.next();case 3:if(y.done){n.g7(0);break}S=y.value;return g.u(n,Ymr(S),4);case 4:y=l.next(),n.g7(3)}})}; UBq=function(p){var a=p.B.getVideoData();p=p.B.C();var l=g.LVO(),y=p.D("enable_spherical_kabuki"),S=g.ed(p);if(g.PJ(a))return l||y||S;if(g.wU(a))return S||l||y;if(g.$s(a))return S||l||!1;if(g.rU(a))return S||!1;l=a.S&&a.S.video&&a.S.video.isHdr();return S&&!g.gR(a)&&!l&&p.D("enable_webgl_noop")}; p4=function(p,a,l,y,S,n,V){hI.call(this,p,{X:"span",T:V?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",a,l,y,S);this.videoAdDurationSeconds=n;this.S=null;V&&this.api.C().S&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),bp&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; ke=function(p,a,l,y){g.Es(y5A)(void 0,p,a,l,y,void 0)}; Qih=function(p){!p.S&&I5h()&&(p.U?p.U.then(function(){return Qih(p)}):p.w4()||(p.S=p.D_()))}; Wr=function(p){if(!jj&&!Wy||!Si)return!1;for(var a=0;a0){var y=vg(4,a.substring(l+1));g.Re(y,function(S,n){this.set(n,S)},p); a=a.substring(0,l)}a=EM(28,a);g.Re(a,function(S,n){this.set(n,S)},p)}; iC=function(p,a,l,y){return EU(LO().L.L,function(){var S=g.D1.apply(0,arguments);return jkO(p,function(){return a.apply(l,S)},y)})}; lM=function(p){g.D.call(this);this.app=p;this.W=this.j=this.S=this.L=null;this.U=1;this.events=new g.hm(this);this.events.J(this.app.Tm,g.c4("gaplessshortslooprange"),this.Z);g.E(this,this.events)}; sHO=function(p,a,l,y){if(a&&!a.hasAttribute)p=new g.kc("showElementTooltip called with non-element.",a.toString()),g.iO(p);else{isNaN(p.j)||(p.j=NaN,p.bg.style.background="");g.b6(p.element,"ytp-tooltip-progress-bar-style");p.L=a;p.K=!!y;y?p.U=y:(p.env.D("player_tooltip_data_title_killswitch")?p.U=a.getAttribute("title"):p.U=a.getAttribute("data-tooltip-title"),p.env.D("player_tooltip_data_title_killswitch")?a.removeAttribute("title"):a.removeAttribute("data-tooltip-title"));g.CY(p.element,"ytp-tooltip"); var S=a.getAttribute("data-tooltip-image");S&&(p.image.style.backgroundImage="url("+S+")");y?p.update({ariaHidden:"false"}):p.update({ariaHidden:"true"});g.JB(p.element,"ytp-tooltip-image-enabled",!!S);a=a.getAttribute("data-tooltip-opaque");g.JB(p.element,"ytp-tooltip-opaque",!!a);p.type=l;p.api.addEventListener("appresize",p.UO);p.G&&(l7(p),p.fade.show(0))}}; JCO=function(p,a){jD(z0(z0(p.eE(),function(l){return ZvO(l,[Ip(a)])}),function(l){if(l){l=g.t(l); for(var y=l.next();!y.done;y=l.next()){var S=y.value;y=S.key;S=S.value;y&&S&&(q5e([{settingItemId:y,settingOptionValue:S}]),Am(p))}}}),function(){p.L=!0})}; g.fjO=function(p,a,l){uS||aC.remove(""+p,a===void 0?"/":a,l===void 0?"youtube.com":l)}; AQZ=function(p,a){a.Cg&&p.Cg.push.apply(p.Cg,a.Cg);a.sD&&p.sD.push.apply(p.sD,a.sD)}; RcZ=function(p){return p_v(Object.assign({},p,{dX:p.callback,cL:function(){}}))}; a9v=function(){return l0()?Si.platform==="Windows":na("Windows")}; XDf=function(p){for(var a=p.S.pop(),l=p.S.pop(),y=p.pos-l-a;a--;){var S=a?128:0;p.view.setUint8(l++,y&127|S);y>>=7}}; uBZ=function(p,a,l){l=l===void 0?{}:l;return l9f(p,a,l)}; I$=function(){g.X.call(this,{X:"div",T:"ytp-chapter-hover-container",N:[{X:"div",T:"ytp-progress-bar-padding"},{X:"div",T:"ytp-progress-list",N:[{X:"div",A9:["ytp-play-progress","ytp-swatch-background-color"]},{X:"div",T:"ytp-progress-linear-live-buffer"},{X:"div",T:"ytp-load-progress"},{X:"div",T:"ytp-hover-progress"},{X:"div",T:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.S=this.d7("ytp-progress-list");this.W=this.d7("ytp-progress-linear-live-buffer"); this.j=this.d7("ytp-ad-progress-list");this.G=this.d7("ytp-load-progress");this.K=this.d7("ytp-play-progress");this.U=this.d7("ytp-hover-progress");this.L=this.d7("ytp-chapter-hover-container")}; y7Z=function(p,a){this.callback=p;this.slot=a}; tgO=function(p,a){p.S[a]||(p.S[a]=new HG);return p.S[a]}; tzA=function(p){if(!p)return!1;p=g.T(p.instreamAdPlayerOverlay,W9E);var a=g.T(p==null?void 0:p.skipOrPreviewRenderer,yr),l=g.T(p==null?void 0:p.adInfoRenderer,sT);return(g.T(p==null?void 0:p.skipOrPreviewRenderer,SE)||a)&&l?!0:!1}; n4=function(p,a){for(var l,y;;){if(p.xe<262){lJ(p);if(p.xe<262&&a===0)return 1;if(p.xe===0)break}l=0;p.xe>=3&&(p.oX=(p.oX<4096)&&(p.wP=2));if(p.Zz>=3&&p.wP<=p.Zz){y=p.Ba+p.xe-3;l=yp(p,p.Ba-1-p.Oe,p.Zz-3);p.xe-=p.Zz-1;p.Zz-=2;do++p.Ba<=y&&(p.oX=(p.oX<=p.policy.l1,V=!1;if(n){var z=0;!isNaN(a)&&a>p.W&&(z=a-p.W,p.W=a);z/S=p.policy.e8&&!p.U;if(!n&&!l&&H$O(p,a))return NaN;l&&(p.U=!0);a:{y=V;l=(0,g.Ek)()/1E3-(p.kV.Cv()||0)-p.K.L-p.policy.Ct;n=p.S.startTime;l=n+l;if(y){if(isNaN(a)){$V(p,NaN,"n",a);n=NaN;break a}y=a-p.policy.fO;y=.5&&p.h5("seek"),V&&g.mj(l,2)&&VVO(p,l.state,a,y,S,n))}; fC=function(p,a){g.D.call(this);var l=this;this.U=[];this.K=!1;this.S=0;this.W=this.G=this.j=!1;this.UO=null;var y=(0,g.bn)(p,a);this.L=new g.l_(function(){return y(l.UO)},300); g.E(this,this.L);this.Sl=this.Z=Infinity}; bmO=function(p){if(p!==void 0&&p.trim()!==""&&(p=Math.trunc(Number(p.trim())),!(isNaN(p)||p<0)))return p}; g.Ry=function(p){return lm(p)==="WEB_EMBEDDED_PLAYER"}; g.Dh=function(p){if(!p.L||!p.S||!p.j)return!1;var a=p.L.L,l=!!a[p.S.id]&&UM(18,a[p.S.id].bM.L);a=!!a[p.j.id]&&UM(23,a[p.j.id].bM.L);return(p.S.itag==="0"||l)&&a}; g.Vr=function(p){if(g.PD(p.B.C()))return p.mO.get("unplugged")}; tF=function(p){return p===1||p===2}; Zyr=function(p){if(p.B.C().showMiniplayerUiWhenMinimized)return p.mO.get("miniplayer")}; ZE=function(p,a,l,y,S){this.name=p;this.methodType="unary";this.requestType=a;this.responseType=l;this.L=y;this.S=S}; odE=function(p,a,l){this.U=l===void 0?0:l;this.S=p;this.L=a==null?"":a}; zSh=function(p,a,l,y,S,n,V,z,d,G){var B=S-y,c,r=((c=p.fulfilledLayout||PE(p.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:PE(c.clientMetadata,"metadata_type_ssdai_ads_config"))||"",w,P;(c=(w=PE(p.clientMetadata,"metadata_type_triggering_cue_point"))==null?void 0:(P=w.current)==null?void 0:P.identifier)||hF("Cue point identifier is undefined",p,a,d());if(!B)return V.s4(l,r,2,n,y,S,p.slotId,c),O4(G,"ads_iraot","slid."+a.layoutId+";enterMs."+y+";exitMs."+S+";vid."+l.video_id),null;B= V.My(l,r,2,n,y,S,p.slotId,c);O4(G,"ads_atct","slid."+a.layoutId+";enterMs."+y+";exitMs."+S+";vid."+l.video_id+";pid."+B);if(!B)return hF("Unexpected failure to add to playback timeline",p,a,d()),null;p=p.slotId;a=a.layoutId;B?(z.L.has(B)&&hF("Unexpected remap of timeline playback"),z.L.set(B,{slotId:p,layoutId:a})):hF("Invalid timeline playback ID");y+n>S&&V.Ax(B,S-y);return B}; zM=function(p,a,l,y){ad.call(this);var S=this;this.U=-1;this.L={};this.j=new g.l_(this.W,0,this);g.E(this,this.j);this.S=new g.l_(function(){S.Gm()||(S.j.start(Math.random()*l),S.S.start(a))},p,this); g.E(this,this.S);y.subscribe("fairplay_next_need_key_info",this.G,this)}; DW=function(p){QH.call(this,p);var a=this;this.U=1;this.QQ=null;this.hg={HNs:function(){return a.U}}; this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"d6de4videobindingchange",function(l){a.De(l)}); this.events.J(p,"csiinitialized",function(){CDv(a)})}; xdO=function(p){p=p===void 0?0:p;return p===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+p}; R_M=function(p){var a=vv(p.playerVars),l=Number(a.length_seconds);isNaN(l)&&(l=0,hF("Expected valid length seconds in player vars but got NaN"));return{playerVars:a,GW:p.playerVars,uc:l}}; Spo=function(p,a,l){var y;if(y=p.policy.qG&&p.Ic&&!p.Ic.Z&&!p.Lz.tY())a=a.info.L.info,y=a.EQ()&&UX(a)&&a.video&&a.video.width<3840&&a.video.width>a.video.height;if(y&&(p.Ic.Z=!0,x_('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return l=L9F(l),p.policy.U&&p.jl("sp4k",{s:!!l}),l}; JEq=function(p){p=(p.sequentialLayouts||[]).map(function(a){return g.T(a,e9A)}); return p.length>0&&p.every(yl)}; tDM=function(p,a,l){a=MDo(a);l=MDo(l);for(var y=p.data,S=p.output,n=p.U,V=p.register,z=p.L,d=p.S;;){if(z<15){if(d>y.length){p.error=!0;break}V|=(y[d+1]<<8)+y[d]<>=7;G<0;)G=a[(V&1)-G],V>>=1;else V>>=G&15;z-=G&15;G>>=4;if(G<256)S[n++]=G;else if(p.register=V,p.L=z,p.S=d,G>256){V=h1[G];V+=k8(p,QQ[G]);d=mdM(p,l);z=A1[d];z+=k8(p,J2M[d]);if(dgM&&V=l))return y.push(S.getValue()),g.Lt(S)}).then(function(){return y})}; x2M=function(){this.L=g.ZM("ALT_PREF_COOKIE_NAME","PREF");this.S=g.ZM("ALT_PREF_COOKIE_DOMAIN","youtube.com");var p=g.cB(this.L);p&&this.parse(p)}; LXv=function(p){p.L=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];p.K=[];p.K.length=64;p.j=0;p.S=0}; NEv=function(p){A$(p,"od",X_r);A$(p,"opac",oc).L=!0;A$(p,"sbeos",oc).L=!0;A$(p,"prf",oc).L=!0;A$(p,"mwt",oc).L=!0;A$(p,"iogeo",oc)}; z7=function(p,a){return Number(p.data[a])||0}; f3=function(){p0.apply(this,arguments)}; kEZ=function(p){p.r4>8?wQ(p,p.vG):p.r4>0&&(p.lG[p.pending++]=p.vG);p.vG=0;p.r4=0}; Va=function(p,a){p.lG[p.pending++]=a>>>8&255;p.lG[p.pending++]=a&255}; Js=function(p,a){var l;for(l=0;l2147483647?"0":String(p)}; FXh=function(p){this.NO=Dm(p)}; hzo=function(p,a,l){if(p.logger){for(var y=[],S=0;S>4);V!=64&&(a(n<<4&240|V>>2),z!=64&&a(V<<6&192|z))}}; YKo=function(p){this.rA=p;this.S=!1;this.L=[]}; C6=function(p,a){p.W&&(p.W.resolve(a),p.Lz.Gg(),p.Y.ao()||VIo(p))&&(a=p.mS(),a["native"]=""+ +p.Xu,a.otgt=""+(p.S+p.timestampOffset),p.Lz.jl("seekEnd",a));vG(p)}; C5v=function(p,a){if((p=p.Lz.F7())&&(a.errorCode==="fmt.unplayable"||a.errorCode==="html5.invalidstate")){var l=p.q3();a.details.merr=l?l.toString():"0";a.details.mmsg=p.XF()}}; Ka=function(p){this.value=p}; QI=function(p){this.B=p}; vdq=function(p,a,l,y,S,n){bT.call(this,p,a,l,y);this.uT=S;this.Ye=n;this.FF=!0;Iq(this.Ye(),this);p=PE(l.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,this.uT,p,l.layoutId)}; iav=function(p,a){if(a==0)return pU();var l=qhr(p,a);p.nY&&p.W?l=p.S.subarray(l,l+a):(p=p.S,a=l+a,l=l===a?new Uint8Array(0):KXE?p.slice(l,a):new Uint8Array(p.subarray(l,a)));return l.length==0?pU():new Jm(l,fF)}; MMv=function(p){var a,l,y,S,n,V,z;g.R(function(d){switch(d.L){case 1:if(p.Gm()||!p.j||!p.L)return d.return();p.Z&&p.app.qO().Vi(!0,!1);a=null;if(!p.U){d.g7(2);break}g.$r(d,3);return g.u(d,eSo(p.U),5);case 5:g.L8(d,2);break;case 3:a=l=g.L6(d);case 2:if(!p.L)return d.return();byE.f3("vqsp",function(){p.app.vI(p.L)}); if(!p.L)return d.return();y=p.L.F7();p.app.C().D("html5_gapless_seek_on_negative_time")&&y&&y.getCurrentTime()<-.01&&p.L.seekTo(0);byE.f3("vqpv",function(){p.app.playVideo()}); a&&(p.L?(S=a?a.message:"forced",(n=p.S)==null||n.jl("gapfulfbk",{r:S}),p.L.l$(S)):(V=p.S)==null||V.jl("gapsp",{}));z=p.j;R4(p);z&&z.resolve();return d.return(Promise.resolve())}})}; Kdh=function(p){QH.call(this,p);var a=this;this.S=new Set;this.L={};this.events=new g.hm(p);g.E(this,this.events);this.events.J(p,"videodatachange",function(l){l==="newdata"&&(a.api.lf("stationsEmbargo"),a.api.lf("stationsMetadataUpdate"),a.L={},a.S.clear());l=a.api.getVideoData().qB;var y=l.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_AIRING_EMBARGO");y&&T5o(a,y,"stationsEmbargo");(l=l.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_METADATA_UPDATE"))&&T5o(a,l,"stationsMetadataUpdate")}); this.events.J(p,g.I4("stationsEmbargo"),function(l){a.api.zM(!0);var y,S=(y=a.L[l.id])!=null?y:[];y=g.t(S);for(S=y.next();!S.done;S=y.next())if(S=S.value.embargo)a.api.hideControls(),a.api.Ne("auth",2,Q2(S.errorRenderer.reason),qp({embargoed:1,id:l.id,idx:l.S,start:l.start})),(S=S.onTrigger)&&a.api.xv("innertubeCommand",S)}); this.events.J(p,g.I4("stationsMetadataUpdate"),function(l){var y;l=(y=a.L[l.id])!=null?y:[];y=g.t(l);for(l=y.next();!l.done;l=y.next())(l=l.value.command)&&a.api.xv("innertubeCommand",l)})}; Yj=function(p,a){if(sr(p.L,a)){r1(p.L,a).G=!1;var l=YB;a=r1(p.L,a);var y=[].concat(g.u0(a.Z));cBf(a.Z);l(p,y)}}; vuM=function(p,a,l){var y={stack:[],error:void 0,hasError:!1};try{var S=CHO(p,l);return M$(rko(y,new w6A(p.logger,S)),function(){return[]},a)}catch(n){y.error=n,y.hasError=!0}finally{wsZ(y)}}; I9h=function(p){var a=1,l=g.sW(p.Ws.experiments,"html5_default_ad_gain");l&&p.isAd()&&(a=l);if(p.gZ){var y,S;l=((y=p.j)==null?void 0:y.audio.U)!=null?(S=p.j)==null?void 0:S.audio.U:p.aM}else{var n;l=((n=p.j)==null?void 0:n.audio.U)||p.aM}isNaN(l)||(p.jr=1);return Math.min(1,Math.pow(10,-l/20))||a}; O8=function(p,a,l){var y=y===void 0?Wa:y;var S=eer(p,a);return S?new g.BG(function(n,V){var z,d,G,B,c;return g.R(function(r){switch(r.L){case 1:return g.u(r,S,2);case 2:z=r.S;d=z.W(a,l,y);if(!d){V(new g.kc("Error: Failed to build request for command.",a));r.g7(0);break}C8(d.input);B=((G=d.z3)==null?void 0:G.mode)==="cors"?"cors":void 0;if(p.L.ET){c=RIM(p,d.config,B);r.g7(4);break}return g.u(r,uSA(p,d.config,B),5);case 5:c=r.S;case 4:n(B1h(p,d,c)),g.lD(r)}})}):wV(new g.kc("Error: No request builder found for command.", a))}; g.s4=function(p){var a=zT();a&&(this.L=new RG$(p,a));this.S=new g.J$(p)}; R7=function(){XM.call(this,LU,2,"mraid");this.t9=0;this.Xu=this.w7=!1;this.K=null;this.S=IMh(this.U);this.j.L=new Tf(0,0,0,0);this.Hs=!1}; g.d4=function(p,a,l,y,S,n,V,z,d,G,B){d=d===void 0?p.schedule:d;G=G===void 0?new g.rO(p):G;B=B===void 0?!0:B;g.qu.call(this);var c=this;this.Y=p;this.playerType=a;this.QQ=l;this.mV=y;this.getVisibilityState=n;this.visibility=V;this.TR=z;this.s6=d;this.videoData=G;this.LR=B;this.logger=new g.iF("VideoPlayer");this.FX=null;this.Qv=new Ag;this.HO=null;this.S7=!0;this.Ic=this.loader=null;this.EV=[];this.wI=new EZ;this.dP=this.zV=null;this.dI=new EZ;this.w0=null;this.ER=this.m0=!1;this.d0=NaN;this.Ts=!1; this.playerState=new g.Z5;this.g0=[];this.Mm=new g.hm;this.mediaElement=null;this.K3=this.RS=!1;this.jP=NaN;this.TU=!1;this.f2=0;this.TG=!1;this.OP=NaN;this.O4=0;this.loop=!1;this.playbackRate=1;this.l8=0;this.O$=!1;this.WP=[];this.Q0=this.pM=0;this.GP=this.hd=!1;this.X4=this.KN=0;this.Nx=!1;this.pP=this.zQ=this.pY=this.I4=null;this.JN=function(){var r=c.rG;r.provider.Y.Sa||r.provider.Lz.getVisibilityState()===3||(r.provider.Y.Sa=!0);r.vA();if(r.S){var w=r.S;w.W&&w.L<0&&w.provider.Lz.getVisibilityState()!== 3&&Q_e(w)}r.qoe&&(r=r.qoe,r.Kz&&r.U<0&&r.provider.Y.Sa&&ypq(r),r.j&&Qd(r));c.loader&&It(c);r2(c)}; this.hg={H8:function(r){c.H8(r)}, mjz:function(r){c.FX=r}, bNl:function(){return c.rG}, D_:function(){return c.Ic}, I7v:function(){return c.eJ}, KgT:function(){return c.Ew}, RU9:function(){}, C:function(){return c.Y}, F7:function(){return c.mediaElement}, kA7:function(r){c.kW(r)}, Knz:function(){return c.mV}}; this.Dz=new VJf(this);this.DW=new g.l_(this.mc7,15E3,this);this.s_=new x$(new Map([["bufferhealth",function(){return QBv(c.GR)}], ["bandwidth",function(){return c.Zt()}], ["networkactivity",function(){return c.s6.w7}], ["livelatency",function(){return c.isAtLiveHead()&&c.isPlaying()?RSr(c):NaN}], ["rawlivelatency",function(){return RSr(c)}]])); this.GR=new uro(this);this.Cj=new g.l_(this.yK,0,this);this.mOz=[this.Mm,this.Cj,this.DW,this.s_];this.iF=new ENF(this.Y);this.y4=new Ew(this.Y,this.mV,this,this.s6);this.UY=new g.KV(this,function(r,w){r!==g.I4("endcr")||g.h(c.playerState,32)||c.Vi();S(r,w,c.playerType);if(r===g.I4("transitiondetector")&&(r=c.loader)!=null&&(r=r.VY)!=null){var P=g.t(qXr(w.id));P.next();P=P.next().value;OyE(r,P,w.start/1E3-r.Lz.Jg(),f3M(r.U))}}); g.E(this,this.UY);g.E(this,this.GR);BGM(this,G);this.videoData.subscribe("dataupdated",this.YEY,this);this.videoData.subscribe("dataloaded",this.t6,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.jl,this);this.videoData.subscribe("ctmpstr",this.Eh,this);!this.rG||this.rG.Gm();this.rG=new g.qn(new j0(this.videoData,this.Y,this));bCf(this.JN);this.visibility.subscribe("visibilitystatechange",this.JN);this.eJ=new g.l_(this.Ff,g.sW(this.Y.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Ew=new g.l_(this.Ff,g.sW(this.Y.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Ee=new g.yL(this.UeY,350,this);g.E(this,this.Ee)}; kPv=function(p){var a=Math.max(p.videoTrack.j.U||0,p.audioTrack.j.U||0);eco(p.videoTrack);eco(p.audioTrack);p.policy.W||xhq(p.MO);p.MO.isManifestless&&!p.policy.W&&(p.L=!0,p.S=0);var l=p.loader;if(!l.policy.t9||l.policy.oo)l.currentTime=a;p.j=!0;p.U=new tV;return p.U}; MVO=function(p){if(!p||!p.adPlacements&&!p.adSlots)return!1;for(var a=g.t(p.adPlacements||[]),l=a.next();!l.done;l=a.next())if(l=l.value)if(l=l.adPlacementRenderer,l!=null&&(l.config&&l.config.adPlacementConfig&&l.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;p=g.t(p.adSlots||[]);for(a=p.next();!a.done;a=p.next()){var y=l=void 0;if(((l=g.T(a.value,Uz))==null?void 0:(y=l.adSlotMetadata)==null?void 0:y.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; mgO=function(p,a,l,y,S){var n,V,z,d,G,B,c,r,w,P,F,v,I;g.R(function(b){switch(b.L){case 1:n=!!a.scrubReferrer;V=g.bi(a.baseUrl,kOf(l,n,y));z={};if(!a.headers){b.g7(2);break}d=p.j();if(!d.L){G=d.getValue();b.g7(3);break}return g.u(b,d.L,4);case 4:G=b.S;case 3:B=G;c=g.t(a.headers);for(r=c.next();!r.done;r=c.next())switch(w=r.value,w.headerType){case "VISITOR_ID":g.ZM("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=g.ZM("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.ZM("EOM_VISITOR_DATA")&&(z["X-Goog-EOM-Visitor-Id"]= g.ZM("EOM_VISITOR_DATA"));break;case "USER_AUTH":B&&(z.Authorization="Bearer "+B);break;case "PLUS_PAGE_ID":(P=p.W())&&(z["X-Goog-PageId"]=P);break;case "AUTH_USER":F=p.L();!B&&F&&(z["X-Goog-AuthUser"]=F);break;case "DATASYNC_ID":if(v=void 0,(v=p.U())==null?0:v.Cz("enable_datasync_id_header_in_web_vss_pings"))I=p.S(),VH(V)&&g.ZM("LOGGED_IN")&&I&&(z["X-YouTube-DataSync-Id"]=I)}"X-Goog-EOM-Visitor-Id"in z&&"X-Goog-Visitor-Id"in z&&delete z["X-Goog-Visitor-Id"];case 2:g.I8(V,void 0,n,Object.keys(z).length!== 0?z:void 0,"",!0,S),g.lD(b)}})}; g.G7=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},N:[{X:"path",V:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}}; tVM=function(p){(p=p.Vr())&&p.yc()}; NM=function(p,a,l,y,S,n,V,z,d,G,B,c,r,w,P,F,v){g.D.call(this);var I=this;this.dX=p;this.slot=a;this.layout=l;this.uT=y;this.dG=S;this.ac=n;this.sO=V;this.lr=z;this.uM=d;this.cL=G;this.position=c;this.G=r;this.EO=w;this.Sc=P;this.Pl=F;this.context=v;this.FF=!0;this.W=!1;this.Cx="not_rendering";this.S=!1;this.U=new pJ;p=PE(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,this.uT,p,l.layoutId);var b;p=((b=Ft(this))==null?void 0:b.progressCommands)||[];this.j=new H2v(d, p,l.layoutId,function(){return I.mH()}); this.L=new QGE({adCpn:this.layout.layoutId,h3:v.h3,XsO:this.Sc,HX:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; j0F=function(p,a,l,y){p.U=y;y=a.a4;var S=a.playerVars,n=a.playerType;p.K=a;S&&p.api.enqueueVideoByPlayerVars(S,n,l,y)}; BQ=function(p,a,l,y,S){g.D.call(this);var n=this;this.S=p;this.U=a;this.gq=l;this.context=S;this.L=new Map;y.get().addListener(this);this.addOnDisposeCallback(function(){y.Gm()||y.get().removeListener(n)})}; WXO=function(p){p.h5("active_view_measurable")}; CWZ=function(){this.U=void 0;this.S=this.G=0;this.W=-1;this.sC=new L9;A$(this.sC,"mv",Hy$).L=!0;A$(this.sC,"omid",oc);A$(this.sC,"epoh",oc).L=!0;A$(this.sC,"epph",oc).L=!0;A$(this.sC,"umt",oc).L=!0;A$(this.sC,"phel",oc).L=!0;A$(this.sC,"phell",oc).L=!0;A$(this.sC,"oseid",Dgr).L=!0;var p=this.sC;p.L.sloi||(p.L.sloi=new iyf);p.L.sloi.L=!0;A$(this.sC,"mm",TYZ);A$(this.sC,"ovms",NYh).L=!0;A$(this.sC,"xdi",oc).L=!0;A$(this.sC,"amp",oc).L=!0;A$(this.sC,"prf",oc).L=!0;A$(this.sC,"gtx",oc).L=!0;A$(this.sC, "mvp_lv",oc).L=!0;A$(this.sC,"ssmol",oc).L=!0;A$(this.sC,"fmd",oc).L=!0;A$(this.sC,"gen204simple",oc);this.L=new i_q(CO(),this.sC);this.j=!1;this.flags=new d0q}; s0v=function(p,a){p=REZ(p.app.mD().W);p=g.t(p);for(var l=p.next();!l.done;l=p.next()){l=l.value;var y=l.getAvailableAudioTracks(),S=null;y=g.t(y);for(var n=y.next();!n.done;n=y.next())if(n=n.value,n.getLanguageInfo().getId()===a){S=n;break}S&&l.Kl(S,!0)}}; w7v=function(p){var a;if(!(a=fn&&p.ke()&&p.m7()&&(p.drmProduct==="1"?!1:!0)&&p.D("html5_sabr_live_drm_streaming_xhr"))){a=p.ke()&&!p.m7()&&fn;var l=p.ke()&&p.latencyClass!=="ULTRALOW"&&!p.isLowLatencyLiveStream&&p.D("html5_sabr_live_normal_latency_streaming_xhr"),y=p.isLowLatencyLiveStream&&p.D("html5_sabr_live_low_latency_streaming_xhr"),S=p.latencyClass==="ULTRALOW"&&p.D("html5_sabr_live_ultra_low_latency_streaming_xhr");a=a&&(l||y||S)}l=a;a=p.enableServerStitchedDai&&l&&p.D("html5_enable_sabr_ssdai_streaming_xhr"); l=!p.enableServerStitchedDai&&l;y=p.ke()&&!fn&&p.D("html5_enable_sabr_live_non_streaming_xhr");p=fn&&(p.vy()||G9(p)&&p.D("html5_enable_sabr_for_lifa_eligible_streams"));return a||l||y||p}; qzO=function(p,a){hP(p,1,a.formatId,Xa,3);NQ(p,2,a.CC);NQ(p,3,a.sequenceNumber);hP(p,4,a.oy,H6,1);NQ(p,5,a.Cu);NQ(p,6,a.CL)}; g.I4=function(p){return"crn_"+p}; mKM=function(p){var a={};return d1((a.dlt=p.downloadedEndTime.toString(),a.mket=p.maxKnownEndTime.toString(),a.avbr=p.averageByteRate.toString(),a))}; g.b6=function(p,a){p.classList?p.classList.remove(a):g.tr(p,a)&&g.CY(p,Array.prototype.filter.call(bj(p),function(l){return l!=a}).join(" "))}; Ugh=function(p,a,l){p.playback.EU();p.playback.seekTo(a,l);p.playback.playVideo()}; dV=function(p,a,l,y){y=y===void 0?0:y;return g.Es(function(){if(p.S.has(y))return p.K.push([a,l]),!0;var S=g.G2(y),n=l||g.z2(y);if(S&&n){if(g.oO("combine_ve_grafts")){var V=p.U.get(n.toString());V?V.push(a):(p.G.set(n.toString(),n),p.U.set(n.toString(),[a]));p.UO||(p.UO=g.jv(0,function(){obF(p,S)},1200))}else g.N8(p.client,S,n,a); return!0}return!1})()}; Q0r=function(p,a){var l=[];if(a=p.L.get(a.layoutId)){a=g.t(a);for(var y=a.next();!y.done;y=a.next())(y=p.S.get(y.value.triggerId))&&l.push(y)}return l}; k8=function(p,a){for(;p.L=p.data.length)return p.error=!0,0;p.register|=p.data[p.S++]<>=a;p.L-=a;return l}; A7F=function(p,a,l,y,S,n){var V=a.cpn,z=a.docid||a.video_id||a.videoId||a.id,d=p.L;n=n===void 0?S+y:n;if(S>n)return Hq(p,"enterAfterReturn enterTimeMs="+S+" is greater than parentReturnTimeMs="+n.toFixed(3),V,z),"";var G=d.hP()*1E3;if(SG)return d="returnAfterDuration parentReturnTimeMs="+n.toFixed(3)+" is greater than parentDurationMs="+G+". And timestampOffset in seconds is "+ d.Jg(),Hq(p,d,V,z),"";G=null;for(var B=g.t(p.S),c=B.next();!c.done;c=B.next()){c=c.value;if(S>=c.QL&&Sc.QL)return Hq(p,"overlappingReturn",V,z),"";if(n===c.QL)return Hq(p,"outOfOrder",V,z),"";S===c.fh&&(G=c)}V="cs_childplayback_"+hSe++;z={Kq:Bj(y,!0),PL:Infinity,target:null};var r={a4:V,playerVars:a,playerType:l,durationMs:y,QL:S,fh:n,lS:z};p.S=p.S.concat(r).sort(function(F,v){return F.QL-v.QL}); G?ogh(p,G,{Kq:Bj(G.durationMs,!0),PL:G.lS.PL,target:r}):(a={Kq:Bj(S,!1),PL:S,target:r},p.W.set(a.Kq,a),d.addCueRange(a.Kq));a=!0;if(p.L===p.app.qO()&&(d=d.getCurrentTime()*1E3,d>=r.QL&&d>>13;y-=S;y-=l;y^=l<<8;S-=l;S-=y;S^=y>>>13;l-=y;l-=S;l^=S>>>12;y-=S;y-=l;y^=l<<16;S-=l;S-=y;S^=y>>>5;l-=y;l-=S;l^=S>>>3;y-=S;y-=l;y^=l<<10;S-=l;S-=y;S^=y>>>15} p=NnZ(p);for(var l=2654435769,y=2654435769,S=314159265,n=p.length,V=n,z=0;V>=12;V-=12,z+=12)l+=J7f(p,z),y+=J7f(p,z+4),S+=J7f(p,z+8),a();S+=n;switch(V){case 11:S+=p[z+10]<<24;case 10:S+=p[z+9]<<16;case 9:S+=p[z+8]<<8;case 8:y+=p[z+7]<<24;case 7:y+=p[z+6]<<16;case 6:y+=p[z+5]<<8;case 5:y+=p[z+4];case 4:l+=p[z+3]<<24;case 3:l+=p[z+2]<<16;case 2:l+=p[z+1]<<8;case 1:l+=p[z+0]}a();return f9Z.toString(S)}; ayE=function(p,a,l,y,S,n){bT.call(this,p,a,l,y);this.uT=S;this.Ye=n;this.FF=!0;Iq(this.Ye(),this);p=PE(l.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,this.uT,p,l.layoutId)}; Pxr=function(){this.L=0}; Pg=function(){if(lyh===null){lyh=new Ss;p7($n).S="b";var p=p7($n),a=a8(p)=="h"||a8(p)=="b",l=!(LO(),!1);a&&l&&(p.W=!0,p.G=new MoM)}return lyh}; a2=function(p,a,l,y,S){if(UM(26,p.VS))return new xYq(p,l);p=p.RX();return y?kqM()?new dSA(p,a,l,S):new eyo(p,a,l,S):new R6F(p,l,S)}; ySO=function(p,a){a=g.ug("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:a.toString()});p.updateValue("seekTime",a)}; SJE=function(p,a,l){this.callback=p;this.slot=a;this.sO=l;this.S=!1;this.L=0}; jqE=function(){var p=we$();if(p){var a=n6O[p.type||"unknown"]||"CONN_UNKNOWN";p=n6O[p.effectiveType||"unknown"]||"CONN_UNKNOWN";a==="CONN_CELLULAR_UNKNOWN"&&p!=="CONN_UNKNOWN"&&(a=p);if(a!=="CONN_UNKNOWN")return a;if(p!=="CONN_UNKNOWN")return p}}; uOh=function(p){return g.R(function(a){if(a.L==1)return g.$r(a,2),g.u(a,p,4);if(a.L!=2)return g.L8(a,0);g.L6(a);g.lD(a)})}; JqE=function(p,a){p.Kx(a.width>=350)}; g.YU=function(p){return p.mO.get("captions")}; G0=function(p,a){return pW(p,a,function(l){return l.U})}; ch=function(p,a){if(p.heightPx===-1){var l=null;try{l=g.JI("CANVAS"),p.S=l.getContext("2d")}catch(z){}if(p.S){var y=p.L*p.sampleCount;p.U=l;p.U.width=y;p.U.style.width=y+"px";p.element.appendChild(p.U)}else for(p.sampleCount=Math.floor(p.sampleCount/4),p.L*=4,l=0;l1?2:1,p.U.height=p.heightPx*l,p.U.style.height= p.heightPx+"px",p.S.scale(1,l)));a=g.t(a);for(y=a.next();!y.done;y=a.next()){l=p;var S=p.index,n=y.value;for(y=0;y+2=0&&S0){a=g.t(a.mT);for(var l=a.next();!l.done;l=a.next()){var y=void 0;p+=((y=l.value.range)==null?void 0:y.length)||0}return p}if(a.XK.length>0)for(l=g.t(a.XK),y=l.next();!y.done;y=l.next())p+=y.value.Az||0;return p+a.sR}; Sa=function(p,a,l){p.state.L[a]=function(){return l.apply(p,g.D1.apply(0,arguments))}}; X3r=function(p,a){var l=a&2147483648;l&&(p=~p+1>>>0,a=~a>>>0,p==0&&(a=a+1>>>0));p=WG(p,a);return typeof p==="number"?l?-p:p:l?"-"+p:p}; bBF=function(p){SSO(function(){var a=jKe();p.S!=null&&(a.sdk=p.S);var l=p7(BT);l.L!=null&&(a.avms=l.L.getName());return a})}; RG=function(p){this.value=p}; TqE=function(p){if(p.L)return p.L;if(p.experimentIds.length<=1)return p.L=p.experimentIds,p.L;var a=[].concat(g.u0(p.experimentIds)).map(function(y){return Number(y)}); a.sort();for(var l=a.length-1;l>0;--l)a[l]-=a[l-1];p.L=a.map(function(y){return y.toString()}); p.L.unshift("v1");return p.L}; xyr=function(p,a){var l=[];p=g.t(p.values());for(var y=p.next();!y.done;y=p.next())y=y.value,y.slot.slotId===a&&l.push(y);return l}; g.dyf=function(p,a,l,y){var S=p.QQ;a===2&&(S=new Yyf(p.Y));return new g.d4(p.Y,a,S,p.template,function(n,V,z){p.Tm.publish(n,V,z)},function(){return p.Tm.getVisibilityState()},p.visibility,p,p.s6,l,y)}; Fio=function(p){p.channel.classList.remove("ytp-title-show-collapsed");p.channel.classList.remove("ytp-title-show-expanded")}; Z8=function(p){this.L=p===void 0?null:p;this.U=0;this.S=null}; E6Z=function(p){var a="Off 10 15 20 30 45 60".split(" "),l;((l=p.B.getVideoData())==null?0:l.isLivePlayback)||a.push("End of video");l=p.B.getPlaylist();var y;l&&((y=l.listId)==null?void 0:y.type)!=="RD"&&a.push("End of playlist");p.d3(g.lb(a,p.hT));p.G=g.tg(a,p.hT,p);a=p.hT("End of video");p.options[a]&&g.mV(p.options[a],p.S)}; g.Y5E=function(p){if(!p.playerResponse||!p.playerResponse.annotations)return null;p=g.t(p.playerResponse.annotations);for(var a=p.next();!a.done;a=p.next())if(a=a.value,a.playerAnnotationsExpandedRenderer&&a.playerAnnotationsExpandedRenderer.featuredChannel)return a.playerAnnotationsExpandedRenderer;return null}; CAq=function(p,a,l,y){l.mT.push.apply(l.mT,g.u0(y));if(Tv){l.C_.has(a)||l.C_.set(a,[]);var S;(S=l.C_.get(a)).push.apply(S,g.u0(y))}else if(l.dc)for(p=g.t(y),a=p.next();!a.done;a=p.next())l.dc.mT.push(a.value);else{l.dc=new L4(p.z9,[].concat(g.u0(l.mT)));var n;((n=p.z9)==null?0:n.j8)&&g.E(p,l.dc)}}; g.yT=function(){g.D.call(this);this.BL=new aP(this);this.Tb=this;this.ZQ=null}; PAM=function(p,a){p.w7||(p.loader?isFinite(p.S)?p.w7=p.loader.seek(p.S-p.timestampOffset,a):(RQ(p.videoData),p.D("html5_unified_live_latency_reporting")&&(p.Lz.l8=0),p.w7=ZU(p.loader),w7v(p.videoData)||(p.S=p.loader.getCurrentTime()+p.timestampOffset)):p.w7=g.t_(p.S-p.timestampOffset));return p.w7}; YlM=function(p,a,l,y,S){return ozM(p,a,l,y,S)}; v6r=function(p,a,l){switch(a){case "M":var y;(y=p.qoe)==null||wwr(y,a,l);break;case "A":var S;(S=p.qoe)==null||wwr(S,a)}}; g.xD=function(){}; l3=function(p){this.value=p}; qA=function(p,a){a=a===void 0?!1:a;var l=p.loader.getCurrentTime(),y=p.j.ai(),S=(y==null?void 0:y.info.G)||0;if((y==null?0:y.info.L.tf())&&!y.info.j)if(p.policy.N7)S=y.info.W;else if(p.policy.r8){var n=y.info;S=n.range?n.G:Math.min(n.startTime+Math.min(n.duration*n.S/n.L.info.Lx,n.duration)+(n.range?n.Z:Math.min(n.duration,n.duration*n.U/n.L.info.Lx)),n.startTime+n.duration)}if(!p.Io)return p.policy.L&&a&&!isNaN(l)&&y?S-l:0;if((n=cH(p))&&d_(n))return n.G;var V=p.Io.ea(!0);if(a&&y)return n=0,p.policy.L&& (n=FB(V,S+.02)),n+S-l;a=FB(V,l);p.policy.fP&&n&&(y=hp(V,l),V=hp(V,n.W-.02),y===V&&(l=n.G-l,p.policy.U&&l>a+.02&&p.jl("abh",{bh:a,bhtls:l}),a=Math.max(a,l)));return a}; dl=function(){var p=g.o4("yt.networklessRequestController.instance");p||(p=new Ev,g.M8("yt.networklessRequestController.instance",p),g.oO("networkless_logging")&&g.Nb().then(function(a){p.PX=a;E1o(p);p.U.resolve();p.Ry&&Math.random()<=p.mz&&p.PX&&O6F(p.PX);g.oO("networkless_immediately_drop_sw_health_store")&&oaA(p)})); return p}; L$h=function(p,a){var l;((l=window.performance)==null?0:l.getEntriesByName)&&(a=performance.getEntriesByName(a))&&a.length&&(a=a[0],p.pedns=(a.domainLookupEnd-a.startTime).toFixed(),p.pecon=(a.connectEnd-a.domainLookupEnd).toFixed(),p.perqs=(a.requestStart-a.connectEnd).toFixed(),FaM&&(p.perqsa=a.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; fc=function(p,a,l,y,S){var n=p.L||p.isDragging||p.S||p.M7;p.L=a;p.isDragging=l;p.S=y;p.M7=S;a=p.L||p.isDragging||p.S||p.M7;n!==a&&(a?p.W=p.J(p.element,"wheel",p.Ug):(p.ME(p.W),p.W=null),g.JB(p.G,"ytp-volume-slider-active",a))}; a3M=function(p,a){UM(25,a.L)||(p.bM=a,p.S=0,g.sb(p.delay))}; Kio=function(p,a,l,y,S,n,V){a=l-a;S?(S instanceof g.ka&&(S.type==="QUOTA_EXCEEDED"||S.type==="QUOTA_MAYBE_EXCEEDED")&&yX("QUOTA_EXCEEDED",{dbName:eF(p.L.name),objectStoreNames:n,transactionCount:p.transactionCount,transactionMode:V.mode}),S instanceof g.ka&&S.type==="UNKNOWN_ABORT"&&(l-=p.U,l<0&&l>=2147483648&&(l=0),yX("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:n,transactionDuration:a,transactionCount:p.transactionCount,dbDuration:l}),p.S=!0),L4E(p,!1,y,n,a,V.tag),eG(S)):L4E(p,!0,y,n,a, V.tag)}; GPM=function(p,a,l,y,S,n){y.index&&(S.playlistIndex=String(Number(y.index)+1));S.videoId=l?l:"";a&&n.Cz("embeds_enable_per_video_embed_config")?S.serializedThirdPartyEmbedConfig=a:p&&(S.serializedThirdPartyEmbedConfig=p)}; VQE=function(p,a){if(a<0)return!0;var l=p.xE();return aa.length)return!1;if(p.lengthS)return!1;if(y7&&(n+=a[V]);for(S=1;S>d&1;z=n<<4|V;if(V<=7)for(d=1<<7-V;d--;)y[d<>=7;V--;){y[d]||(y[d]=-a,a+=2);var G=S&1;S>>=1;d=G-y[d]}y[d]=z}}return y}; IyM=function(p){this.NO=Dm(p,500)}; GSM=function(p,a){return a?Dbo(a):p?pvf(p):Promise.resolve()}; rX=function(p,a){hP(p,1,a.clientInfo,RvE,3);gD(p,2,a.L_);gD(p,3,a.playbackCookie);gD(p,4,a.DE);if(a.Dq)for(var l=0;l127;)p.L.push(a&127|128),a>>>=7;p.L.push(a)}; Sl=function(p){return!!(2&p)&&!!(4&p)||!!(256&p)}; pUo=function(p){this.S=p}; ur=function(p,a,l){return p[a]?p[a][l]||null:null}; Se=function(p){if(p.B.C().H9)return p.mO.get("remote")}; UnO=function(p,a){if(a==null||a=="")return new p;a=JSON.parse(a);if(!Array.isArray(a))throw Error("dnarr");YS(a,32);return new p(a)}; g.Lm=function(p,a){var l=a.type;l in p.listeners&&g.FS(p.listeners[l],a)&&(Au(a),p.listeners[l].length==0&&(delete p.listeners[l],p.L--))}; bEe=function(p){var a=dhE(p.j,p.mediaElement);a?a.then(Ee(function(){OQr(p)}),Ee(function(l){if(!p.Gm()){g.iO(l); var y="t.a";l instanceof DOMException&&(y+=";n."+l.name+";m."+l.message);p.publish("licenseerror","drm.unavailable",1,y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(p.HG({mdkrdy:1}),p.Sl=!0); p.UO&&(a=dhE(p.UO,p.mediaElement))}; g.KI=function(p,a,l){for(;Eh(p,a);){var y=fu(p,a);if(y.type===l)return y;a=lx(y.type)?a+8:a+y.size}return null}; El=function(p,a,l,y){if(l==="child"){g.Jh(a);var S;y===void 0?S=void 0:S=!Array.isArray(y)||y&&typeof y.X==="string"?[y]:y;l=gah(p,S);l=g.t(l);for(p=l.next();!p.done;p=l.next())a.appendChild(p.value)}else l==="style"?g.B8(a,"cssText",y?y:""):y===null||y===void 0?a.removeAttribute(l):(p=y.toString(),l==="href"&&(p=g.xm(g.AB(p))),a.setAttribute(l,p))}; NW=function(p){C4.call(this,.05,.05,p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],150,20,p.getPlaybackRate());this.B=p;this.W=g.JI("P");this.Bs=mF(this.w7,50,this);g.uD(this.j,"ytp-speedslider");g.uD(this.W,"ytp-speedslider-text");p=this.W;var a=this.j;a.parentNode&&a.parentNode.insertBefore(p,a.nextSibling);mR(this);this.J(this.B,"onPlaybackRateChange",this.updateValues)}; qp=function(p){var a=[];if(p){p=g.t(Object.entries(p));for(var l=p.next();!l.done;l=p.next()){var y=g.t(l.value);l=y.next().value;y=y.next().value;y!==void 0&&(y=typeof y==="boolean"?""+ +y:(""+y).replace(/[:,=]/g,"_"),a.push(l+"."+y))}}return a.join(";")}; kn=function(p){if(p.B.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var a,l,y;return p.S.E6?null:(a=p.L)==null?void 0:(l=a.bannerData)==null?void 0:(y=l.itemData)==null?void 0:y.vendorName}var S,n,V,z,d,G;return p.S.E6||p.W.E6||((S=p.L)==null?0:(n=S.bannerData)==null?0:(V=n.itemData)==null?0:V.affiliateDisclaimer)?null:(z=p.L)==null?void 0:(d=z.bannerData)==null?void 0:(G=d.itemData)==null?void 0:G.vendorName}; g.p2=function(p,a,l,y){a=a!==void 0?a:p.index;a=p.items&&a in p.items?p.items[p.order[a]]:null;var S=null;a&&(l&&(a.autoplay="1"),y&&(a.autonav="1"),S=new g.rO(p.Ws,a),g.E(p,S),S.h4=!0,S.startSeconds=p.startSeconds||S.clipStart||0,p.listId&&(S.playlistId=p.listId.toString()));return S}; ky$=function(p,a){for(var l=new Uint8Array(270),y=0;y<135;y++)l[y*2]=''.charCodeAt(y);p=p.U.createSession("video/mp4",a,l);return new cK(null,null,null,null,p)}; i7=function(p){QH.call(this,p);var a=this;p.addEventListener("settingsMenuInitialized",function(){a.menuItem||(a.menuItem=new MUf(a.api,a.api.K0()),g.E(a,a.menuItem))}); p.addEventListener("openSettingsMenuItem",function(l){if(l==="menu_item_sleep_timer"){if(!a.menuItem){var y;(y=a.api.K0())==null||y.qE()}a.menuItem.open()}}); Sa(p,"resetSleepTimerMenuSettings",function(){a.resetSleepTimerMenuSettings()}); Sa(p,"setSleepTimerTimeLeft",function(l){a.setSleepTimerTimeLeft(l)}); Sa(p,"setVideoTimeLeft",function(l){a.setVideoTimeLeft(l)})}; tUO=function(p){var a,l,y,S,n;return(n=g.T((S=g.T((a=p.getWatchNextResponse())==null?void 0:(l=a.playerOverlays)==null?void 0:(y=l.playerOverlayRenderer)==null?void 0:y.decoratedPlayerBarRenderer,vh))==null?void 0:S.playerBar,myM))==null?void 0:n.chapters}; zgh=function(p){var a=p.index-1;return a<0?p.length-1:a}; K4=function(p,a,l){l=l===void 0?!1:l;var y=p.W();if(y){for(;p.j=p.L.byteLength}; wp=function(p){if(p!=null&&typeof p!=="number")throw Error("Value of float/double field must be a number, found "+typeof p+": "+p);return p}; j6F=function(p,a){gf(p.G,function(l){return l.j==a.j})||p.G.push(a)}; vQ=function(){}; WiE=function(p,a){p.index=g.Lu(a,0,p.length-1);p.startSeconds=0}; J1=function(p,a){SlM(p);p.loader.Jg();return nw(a,p.loader.isSeeking())}; eE=function(p){this.NO=Dm(p,36)}; HQM=function(p,a,l,y,S){this.Yb=p;this.wV=a;this.Ef=l;this.OW=y;this.T7m=S;this.dW=p&&p.length}; DyZ=function(p){var a=p.timing.b4();a.shost=ik(25,p.G9.VS);return a}; aR=function(p,a,l,y){y=y===void 0?!1:y;g.YZ.call(this,{X:"div",T:"ytp-ad-persistent-progress-bar-container",N:[{X:"div",T:"ytp-ad-persistent-progress-bar"}]});this.api=p;this.S=a;this.U=l;y&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.E(this,this.S);this.progressBar=this.d7("ytp-ad-persistent-progress-bar");this.L=-1;this.J(p,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; iQh=function(p,a){p.S=!!a;p.L(p.B.Fu().getPlayerSize())}; jRE=function(){if(ML.getEntriesByType){var p=ML.getEntriesByType("paint");if(p=g.rA(p,function(l){return l.name==="first-paint"}))return xx(p.startTime)}var a; g.oO("csi_use_performance_navigation_timing")?a=ML.getEntriesByType("first-paint")[0].startTime:a=ML.timing.loY;return a?Math.max(0,a):0}; Hu=function(p){return p?new qwA($c(p)):TLM||(TLM=new qwA)}; sFM=function(p){var a=!!Zc(LO().sC,"umt");return p.Sl||!a&&!p.nz?0:1}; g.bM=function(p){if(typeof DOMParser!="undefined")return IC(new DOMParser,Dfr(p),"application/xml");throw Error("Your browser does not support loading xml documents");}; tL=function(p,a,l){var y=arguments,S=document,n=y[1],V=$3(S,String(y[0]));n&&(typeof n==="string"?V.className=n:Array.isArray(n)?V.className=n.join(" "):Gk(V,n));y.length>2&&QDr(S,V,y,2);return V}; eR=function(p,a){g.X.call(this,{X:"button",A9:["ytp-remote-button","ytp-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"Ver en la televisi\u00f3n":"","data-tooltip-title":"Ver en la televisi\u00f3n","aria-haspopup":"true","data-priority":"10"},yY:"{{icon}}"});this.B=p;this.U6=a;this.L=null;this.J(p,"onMdxReceiversChange",this.pz);this.J(p,"presentingplayerstatechange",this.pz);this.J(p,"appresize",this.pz);p.createClientVe(this.element,this,139118);this.pz();this.listen("click",this.S, this);OC(p,this.element,this)}; Sx=function(p,a,l,y){a in p.L||(l=new g.nF(l,y,{id:a,priority:2,namespace:"appad"}),p.api.Kh([l],1),p.L[a]=l)}; Che=function(p,a){var l;return g.R(function(y){if(y.L==1)return g.u(y,IM(a),2);l=y.S;return y.return(g.Nk(l,["LogsRequestsStore"],{mode:"readwrite",Gn:!0},function(S){var n=S.objectStore("LogsRequestsStore");return n.get(p).then(function(V){if(V)return V.status="QUEUED",g.U8(n,V).then(function(){return V})})}))})}; NLA=function(p,a,l,y,S){hI.call(this,p,{X:"div",T:"ytp-ad-timed-pie-countdown-container",N:[{X:"svg",T:"ytp-ad-timed-pie-countdown",V:{viewBox:"0 0 20 20"},N:[{X:"circle",T:"ytp-ad-timed-pie-countdown-background",V:{r:"10",cx:"10",cy:"10"}},{X:"circle",T:"ytp-ad-timed-pie-countdown-inner",V:{r:"5",cx:"10",cy:"10"}},{X:"circle",T:"ytp-ad-timed-pie-countdown-outer",V:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",a,l,y,S);this.j=this.d7("ytp-ad-timed-pie-countdown-container");this.U=this.d7("ytp-ad-timed-pie-countdown-inner"); this.W=this.d7("ytp-ad-timed-pie-countdown-outer");this.S=Math.ceil(2*Math.PI*5);this.hide()}; s6h=function(p){for(var a={BN:0};a.BN<16;a={BN:a.BN},++a.BN){var l=new g.X({X:"a",T:"ytp-suggestion-link",V:{href:"{{link}}",target:p.api.C().Sl,"aria-label":"{{aria_label}}"},N:[{X:"div",T:"ytp-suggestion-image"},{X:"div",T:"ytp-suggestion-overlay",V:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},N:[{X:"div",T:"ytp-suggestion-title",yY:"{{title}}"},{X:"div",T:"ytp-suggestion-author",yY:"{{author_and_views}}"},{X:"div",V:{"data-is-live":"{{is_live}}"},T:"ytp-suggestion-duration", yY:"{{duration}}"}]}]});g.E(p,l);var y=l.d7("ytp-suggestion-link");g.B8(y,"transitionDelay",a.BN/20+"s");p.U.J(y,"click",function(S){return function(n){var V=S.BN;if(p.S){var z=p.suggestionData[V],d=z.sessionData;p.W&&p.api.D("web_player_log_click_before_generating_ve_conversion_params")?(p.api.logClick(p.L[V].element),V=z.pC(),z={},g.g2(p.api,z),V=g.C2(V,z),g.ru(V,p.api,n)):g.dK(n,p.api,p.W,d||void 0)&&p.api.FT(z.videoId,d,z.playlistId)}else n.preventDefault(),document.activeElement.blur()}}(a)); l.lT(p.suggestions.element);p.L.push(l);p.api.createServerVe(l.element,l)}}; o6M=function(p,a,l,y,S){var n=a.MD/a.rows,V=Math.min(l/(a.EN/a.columns),y/n),z=a.EN*V,d=a.MD*V;z=Math.floor(z/a.columns)*a.columns;d=Math.floor(d/a.rows)*a.rows;var G=z/a.columns,B=d/a.rows,c=-a.column*G,r=-a.row*B;S&&n<=45&&(B-=1/V);G-=2/V;p=p.style;p.width=G+"px";p.height=B+"px";S||(y=(y-B)/2,l=(l-G)/2,p.marginTop=Math.floor(y)+"px",p.marginBottom=Math.ceil(y)+"px",p.marginLeft=Math.floor(l)+"px",p.marginRight=Math.ceil(l)+"px");p.background="url("+a.url+") "+c+"px "+r+"px/"+z+"px "+d+"px"}; Uyq=function(p){return Object.values(p.tracks).find(function(a){return a.languageCode==="en"&&a.kind==="asr"})}; Q6r=function(p){p=p.S;return p.requestAnimationFrame||p.webkitRequestAnimationFrame||p.mozRequestAnimationFrame||p.oRequestAnimationFrame||p.msRequestAnimationFrame||null}; $u=function(p,a){var l=f$(p);if(l===1){for(a=l=0;a<7;a++)l=l*256+f$(p);return l}for(var y=128,S=0;S<6&&y>l;S++)l=l*256+f$(p),y*=128;return a?l-y:l}; mLh=function(){return v6(xe(),function(p){return""+p})}; iOe=function(){}; nW=function(p){g.dD.setTimeout(function(){throw p;},0)}; aw=function(p,a,l,y,S,n,V,z,d){bT.call(this,p,a,l,y);this.sO=S;this.uT=n;this.G=V;this.W=z;this.EO=d;this.j=!1;this.K=PE(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; g.Ic=function(p,a,l){g.Es($_)(void 0,p,a,l,void 0)}; gB=function(p){return p.type===1||p.type===2}; g.fL=function(p){return p.QY==="profilepage"}; As$=function(p,a,l){var y=a.type||0;(l==null?0:l.has(y))?p.Dq.push(a):p.EK.push(y)}; hvv=function(p){return p.info.L.G4()&&p.info.Rc===p.info.L.index.xE()}; ASF=function(p){p.Al()===p.Fb.length-1&&hF("Unexpected skip with target requested during the last sublayout")}; g6$=function(p){var a;return((a=p.audio)==null?void 0:a.S)===!0}; Wq=function(p,a){p=p.app.qO();return!!p&&p.getVideoData().a4===a.a4}; puo=function(p){var a=p.policy.w7,l=JD(p.w7)/a-f5(p,p.S.info);a=g.Zb(p.j,function(y){return f5(this,y)g.V_(JSv).length?null:qa(a,function(l,y){y=y.toLowerCase().split("=");if(y.length!=2||fy$[y[0]]===void 0||!fy$[y[0]](y[1]))throw Error("Entry ("+y[0]+", "+y[1]+") is invalid.");l[y[0]]=y[1];return l},{})}catch(l){return null}}; oU=function(p){return p.right-p.left}; aZF=function(p,a,l){p.L="The stream is broken @"+p.S+". Error: "+l+". With input:\n"+a;throw Error(p.L);}; nmO=function(p,a){a=g.t(a);for(var l=a.next();!l.done;l=a.next()){var y=l.value;l=y.reason;if(l==null)g.Mf(Error("AdFeedbackReason.reason was not set."));else if(y=y.endpoint,y==null)g.Mf(Error("AdFeedbackReason.endpoint was not set."));else{l=new kx(l,y);g.E(p,l);y=p.Xu;var S=l.gG();y.appendChild(S);p.j.push(l)}}}; uro=function(p){g.D.call(this);var a=this;this.Lz=p;this.Z=this.L=this.loader=this.mediaElement=this.playbackData=null;this.U=0;this.W=this.w7=this.j=null;this.QY=!1;this.eb=0;this.Xu=!1;this.timestampOffset=0;this.Sl=!0;this.r7=0;this.Kz=this.va=!1;this.K=0;this.Ps=!1;this.Bs=0;this.hg={GA:function(l){return a.GA(l)}}; this.Y=this.Lz.C();this.videoData=this.Lz.getVideoData();this.policy=new sXM;this.UO=new Ot(this.Lz);this.Sb=this.nz=this.Hs=this.G=this.S=NaN;this.t9=new g.l_(function(){ner(a,!1)},2E3); this.Ha=new g.l_(function(){jm(a)}); this.OO=new g.l_(function(){lZZ(a,{})}); this.yQ=NaN;this.Yv=new g.l_(function(){var l=a.Y.e8;l.L+=1E4/36E5;l.L-l.U>1/6&&(mfr(l),l.U=l.L);a.Yv.start()},1E4); g.E(this,this.UO);g.E(this,this.t9);g.E(this,this.OO);g.E(this,this.Ha);g.E(this,this.Yv)}; P2=function(p){this.value=p}; mTr=function(p){p.L||(p.L=new HG);return p.L}; s8=function(){return g.oO("idb_immediate_commit")}; bZM=function(p,a,l,y,S,n){y=y===void 0?{}:y;var V=Math.round((0,g.Ek)()),z={value:p.size},d=new Map([].concat(g.u0(p)));d=g.t(d);for(var G=d.next();!G.done;G=d.next()){var B=g.t(G.value).next().value,c=p.get(B);G=new Uxo;var r=a.config_||g.tl(),w=new ia,P=new fP;GY(P,1,r.Cb);GY(P,2,r.Vg);Ey(P,16,r.RR);GY(P,17,r.innertubeContextClientVersion);if(r.MY){var F=r.MY,v=new E2;F.coldConfigData&&GY(v,1,F.coldConfigData);F.appInstallData&&GY(v,6,F.appInstallData);F.coldHashData&&GY(v,3,F.coldHashData);F.hotHashData&& v.Rt(F.hotHashData);$W(P,E2,62,v)}(F=g.dD.devicePixelRatio)&&F!=1&&U9(P,65,wp(F));F=n1();F!==""&&GY(P,54,F);F=V2();if(F.length>0){v=new Uj;for(var I=0;I= 2)){var n=window.sessionStorage.getItem("session_logininfo");if(n){var V;(V=a.contentWindow)==null||V.postMessage({loginInfo:n},y)}}}}catch(z){}}; Nur=function(p,a){p.K.push(a);g.E(p,a);a.lT(p.b_,p.b_.children.length)}; ofr=function(p,a){if(!p||!a)return!1;for(var l=0;p!==null&&l++<100;){if(p===a)return!0;try{if(p=p.parentElement||p){var y=$c(p),S=y&&LF(y),n=S&&S.frameElement;n&&(p=n)}}catch(V){break}}return!1}; rh=function(){return gWA()||Hz()||t$()?!0:g.ZM("EOM_VISITOR_DATA")?!1:!0}; ztF=function(p,a,l,y){y=y===void 0?0:y;var S;if(a!==p.Z||((S=p.S.get(a))==null?void 0:S.U)!==(l==null?void 0:l.U))if(l?p.S.set(a,l):p.S.delete(a),!p.isSeeking){var n=p.j.getStartTime(a);p.Z=a;F$F(p,a);var V,z;S=(z=(V=p.S.get(a-1))==null?void 0:V.L)!=null?z:[p.cpn];var d=S[S.length-1];if(l){var G=n;l.L.forEach(function(B,c){G=z&&l=n){var V=p[n];if(V!=null&&typeof V==="object"&&V.constructor===Object){l=V[a];var z=!0}else if(S===n)l=V;else return}else l=p[S];if(y&&l!=null){y=y(l);if(y==null)return y;if(!Object.is(y,l))return z?V[a]=y:p[S]=y,y}return l}}; M0=function(p,a,l){return p?!0:(g.Mf(new g.kc("Assertion: "+a,l)),!1)}; GnM=function(){this.endTime=this.startTime=-1;this.U="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.S=0;this.muted=!1;this.L=this.clipId="-";this.previouslyEnded=!1}; BSe=function(p){p.L=null;p.Ag.clear();p.S&&p.S.stop();p.W&&p.W.stop();var a;(a=p.U)==null||a.stop();delete p.U}; IH=function(p){this.value=p}; RRv=function(p){var a,l;return((a=p.L)==null?void 0:(l=a.eK)==null?void 0:l.N6)||0}; vt=function(p){switch(p.S){case 0:p.S!=0?vt(p):E4(p.L);break;case 1:p=p.L;oE(p,p.L+8);break;case 2:if(p.S!=2)vt(p);else{var a=Zt(p.L)>>>0;p=p.L;oE(p,p.L+a)}break;case 5:p=p.L;oE(p,p.L+4);break;case 3:a=p.U;do{if(!g9Z(p))throw Error();if(p.S==4){if(p.U!=a)throw Error();break}vt(p)}while(1);break;default:throw Error();}}; ZU=function(p){p.FG();p.R9.isSeeking();p.K&&pyA(p.K,p.videoTrack.L);GL(p);return kPv(p.R9)}; g.wg=function(p,a){return p.start-a.start||p.priority-a.priority||p.S-a.S}; LJ=function(p){return p.B.C().D("html5_allow_asmjs")}; z4M=function(p){var a=g0O(p);if(a.binP)return a.binP;a.binP=Promise.resolve().then(function(){return fetch(p)}).then(function(l){if(!l.ok)throw Error("HTTP"+l.statusText); return l.arrayBuffer()}); a.binP.then(function(l){a.bin=l},function(){dPF(p)}); return a.binP}; M1=function(p){QH.call(this,p);var a=this;this.L=!1;p.addEventListener("settingsMenuInitialized",function(){LIr(a)}); p.addEventListener("highlightSettingsMenu",function(l){LIr(a);var y=a.menuItem;l==="menu_item_cinematic_lighting"&&(g.uD(y.element,"ytp-menuitem-highlighted"),g.uD(y.element,"ytp-menuitem-highlight-transition-enabled"),y.S.start())}); Sa(p,"updateCinematicSettings",function(l){a.updateCinematicSettings(l)})}; Hb=function(p,a){a=String(a);p.j&&(a=a.toLowerCase());return a}; mI=function(p,a){var l={sv:"968"};g6!==null&&(l.v=g6);l.cb=ci$;l.nas=Ps.L.length;l.msg=p;a!==void 0&&(p=lNF(a))&&(l.e=ZR[p]);return l}; gm=function(p,a,l,y,S){S=S===void 0?!1:S;this.data=p;this.offset=a;this.size=l;this.type=y;this.L=(this.S=S)?0:8;this.dataOffset=this.offset+this.L}; riq=function(p){kC("drm_pb_s",void 0,p.UO);p.r7||p.L&&FG(p.L);var a={};p.L&&(a=wgM(p.HH,g.Vw(p),p.Ws.W,p.L,function(l){return p.publish("ctmp","fmtflt",l)},!0,new Set)); a=new Z7(a,p.Ws,p.y6,p.useCobaltWidevine?hd()?JW(p):!1:!1,function(l,y){p.jl(l,y)}); g.E(p,a);p.U9=!1;p.loading=!0;Q8F(a,function(l){kC("drm_pb_f",void 0,p.UO);for(var y=g.t(l),S=y.next();!S.done;S=y.next())switch(S=S.value,S.flavor){case "fairplay":S.r7=p.r7;S.Zs=p.Zs;S.JX=p.JX;break;case "widevine":S.e8=p.e8}p.f9=l;if(p.f9.length>0&&(p.W=p.f9[0],p.Ws.ao())){l={};y=g.t(Object.entries(p.W.L));for(S=y.next();!S.done;S=y.next()){var n=g.t(S.value);S=n.next().value;n=n.next().value;var V="unk";(S=S.match(/(.*)codecs="(.*)"/))&&(V=S[2]);l[V]=n}p.jl("drmProbe",l)}p.X0()})}; z8h=function(p){p.W=p.startTime;p.Z=p.duration;p.G=p.W+p.Z}; g.hJ=function(p,a){for(var l=0,y=[];Eh(p,l);){var S=fu(p,l);S.type===a&&y.push(S);l=lx(S.type)?l+8:l+S.size}return y}; a$f=function(p,a){a!=null?(p.ZE=a,p.S5=!0):(p.ZE="",p.S5=!1)}; hj=function(p,a,l){var y=p.videoData.S,S=p.videoData.j,n=p.Ws.D("html5_disable_codec_fallback_for_drm")&&p.videoData.m7();nn(p.Lz.getVideoData())&&p.Ws.D("html5_gapless_fallback_on_qoe_restart")&&XFA(p.Lz,"pe");if((a==="progressive.net.retryexhausted"||a==="fmt.unplayable"||a==="fmt.decode")&&!p.Lz.y4.W&&y&&y.itag==="22")return p.Lz.y4.W=!0,p.w$("qoe.restart",{reason:"fmt.unplayable.22"}),p.Lz.Fx(),!0;var V=!1;if(p.videoData.isExternallyHostedPodcast){if(V=p.videoData.nZ)l.mimeType=V.type,p.jl("3pp", {url:V.url});l.ns="3pp";p.Lz.Ne(a,1,"VIDEO_UNAVAILABLE",qp((new g.mm(a,l,1)).details));return!0}var z=p.O4+3E4<(0,g.Ek)()||p.L.isActive();if(p.Ws.D("html5_empty_src")&&p.videoData.isAd()&&a==="fmt.unplayable"&&/Empty src/.test(""+l.msg))return l.origin="emptysrc",p.w$("auth",l),!0;z||kkM(p.Lz.TM())||(l.nonfg="paused",z=!0,p.Lz.pauseVideo());(a==="fmt.decode"||a==="fmt.unplayable")&&(S==null?0:jz(S)||x0(S))&&(yWM(p.Ws.W,S.h9),l.acfallexp=S.h9,V=z=!0);!z&&p.U>0&&(p.L.start(),z=!0,l.delayed="1",--p.U); S=p.Lz.loader;z||!((y==null?0:W8(y))||(y==null?0:UX(y)))||n||(yWM(p.Ws.W,y.h9),V=z=!0,l.cfallexp=y.h9);if(!z)return N4O(p,l);n=!1;p.W?p.O4=(0,g.Ek)():n=p.W=!0;z=p.videoData;if(z.Kz){z=z.Kz.Q3();var d=Date.now()/1E3+1800;z=z=4E3}; jE=function(p,a,l){if(!a&&!l)return null;var y=a?String(a).toUpperCase():null;return rE(p,function(S){return(!y||S.nodeName==y)&&(!l||typeof S.className==="string"&&g.rW(S.className.split(/\s+/),l))},!0)}; M3F=function(p,a,l,y,S,n){var V={},z={};g.Re(a,function(d,G){d=d.filter(function(B){var c=B.itag;if(!B.Hy)return z[c]="noenc",!1;if(n.va&&B.h9==="(h"&&n.Sb)return z[c]="lichdr",!1;if(!p.W&&B.h9==="1e")return z[c]="noav1enc",!1;if(B.h9==="("||B.h9==="(h"){if(p.U&&l&&l.flavor==="widevine"){var r=B.mimeType+"; experimental=allowed";(r=!!B.Hy[l.flavor]&&!!l.L[r])||(z[c]=B.Hy[l.flavor]?"unspt":"noflv");return r}if(!H8(p,Dt.CRYPTOBLOCKFORMAT)&&!p.QY||p.w7)return z[c]=p.w7?"disvp":"vpsub",!1}return l&&B.Hy[l.flavor]&& l.L[B.mimeType]?!0:(z[c]=l?B.Hy[l.flavor]?"unspt":"noflv":"nosys",!1)}); d.length&&(V[G]=d)}); y&&Object.entries(z).length&&S({rjr:qp(z)});return V}; wCZ=function(p){this.L=p}; Wh=function(p,a,l){this.L=void 0;this.experimentIds=p?p.split(","):[];this.flags=kt(a||"","&");p={};a=g.t(this.experimentIds);for(var y=a.next();!y.done;y=a.next())p[y.value]=!0;this.experiments=p;l=new sLq(l);this.U=new Jkr(l);this.S=new wh$(l)}; OG=function(p,a){if(!g.oO("web_csi_action_sampling_enabled")||!wj(a).actionDisabled){var l=jM(a||"");xt(l.info,p);p.loadType&&(l=p.loadType,IJ$(a).loadType=l);xt(Cjh(a),p);l=bH(a);a=wj(a).cttAuthInfo;M9().info(p,l,a)}}; NZ=function(p){this.value=p}; $q$=function(p){return p.K||p.D("web_player_media_session_infinity")&&p.isLivePlayback}; oD=function(p,a,l){$P(p,l[a*2],l[a*2+1])}; Bv=function(p,a,l){return ik(29,a?gJ(p,l):p.L)}; mzq=function(p){var a=["o","a","A"];p.QY===1&&(p.j&&(a=["mac3","MAC3"].concat(a)),p.W&&(a=["meac3","MEAC3"].concat(a)),p.Fh&&(a=["i","I"].concat(a)));p.UO&&(a=["so","sa"].concat(a));!p.EC||p.t9||p.U||p.Ae||a.unshift("a");p.U&&(a=(TU$[p.U]||[p.U]).concat(a));return a}; LvM=function(p){if(g.oO("enable_web_tiered_gel")){p=PeM[p||""];var a,l,y,S=DV().resolve(ix(jd))==null?void 0:(a=ud())==null?void 0:(l=a.loggingHotConfig)==null?void 0:(y=l.eventLoggingConfig)==null?void 0:y.payloadPolicies;if(S)for(a=0;ap.UO);g.JB(p.rP,"ytp-scrubber-button-hover",l===y&&p.L.length>1);if(p.api.D("web_player_heat_map_played_bar")){var n;(n=p.j[0])!=null&&n.L.setAttribute("width",(a.S*100).toFixed(2)+"%")}}}; XCr=function(){var p=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];CU().forEach(function(a){p.push(a)}); return{XX:p,OE:["LAYOUT_TYPE_PANEL"]}}; xqZ=function(p,a){p=p===void 0?{}:p;a=a===void 0?{}:a;g.D.call(this);var l=this;this.values=p;this.fp=a;this.S={};this.U=this.L=0;this.j=new g.l_(function(){mfr(l)},1E4); g.E(this,this.j)}; s2M=function(p){var a=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!a)return new H7(p);var l=a.split(",");if(l.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new H7(p);a=l.slice(1);a.length===1&&a[0]===""&&(a=[]);l=Number(l[0]);return isNaN(l)||l<0||l>a.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new H7(p)):new H7(p,l,a)}; gkM=function(p){p=p||"";var a=sNE();a[p]&&delete a[p];var l=UaO(),y={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};l.push(y);a[p]=y}; BdA=function(p){var a=a===void 0?51:a;var l=[];lO(p,yi,6).forEach(function(y){n8(y,2)>a&&l.push(n8(y,1))}); return l}; Fbq=function(p,a){if(p.api.isMinimized())return!1;var l=huM(a.image),y=l;l.widthS)return new W("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:p,offsetEndMs:S},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",S===a&&p-500<=S);y={Up:new rM(p,S),yz:y};if(l!=null){p=Math.max(0,p-l);if(p===S)return y;y.oK=new rM(p,S)}return y; default:return new W("AdPlacementKind not supported in convertToRange.",{kind:S,adPlacementConfig:p})}}; GLA=function(){var p;return((p=Ie)==null?void 0:p.ZC)!==!1}; Ce$=function(p){var a=!(p==null?0:p.al())&&(p==null?void 0:p.ke())&&PK(),l;if(!(l=p==null)){l=g.Vw(p);p=p.C().W;var y=ZK("243");l=!(y&&e1(l,y,p,!0)===!0)}return{supportsVp9Encoding:!(l||a),supportXhr:fn}}; zL=function(p){var a;return!((a=d$(p))==null||!a.isLocked)}; jVe=function(){var p={};var a=p.url;var l=p.interval;p=p.retries;this.url=a;this.interval=l;this.retries=p}; zYZ=function(p,a){p.botguardData=a.playerAttestationRenderer.botguardData;a=a.playerAttestationRenderer.challenge;a!=null&&(p.QO=a)}; uQO=function(p){var a=p.experiments,l=a.Cz.bind(a);vfA=l("html5_use_async_stopVideo");KbM=l("html5_pause_for_async_stopVideo");eth=l("html5_not_reset_media_source");l("html5_listen_for_audio_output_changed")&&(zJq=!0);HEo=l("html5_not_reset_media_source");bSr=l("html5_not_reset_media_source");mA=l("html5_retain_source_buffer_appends_for_debugging");IZq(l("web_watch_pip")||l("web_shorts_pip"));o9o(l("web_player_pip_logging_fix"));l("html5_mediastream_applies_timestamp_offset")&&(EF=!0);var y=g.sW(a, "html5_cobalt_override_quic");y&&eu("QUIC",+(y>0));p.ao()&&xor();Error.stackTraceLimit=50;var S=g.sW(a,"html5_idle_rate_limit_ms");S&&Object.defineProperty(window,"requestIdleCallback",{value:function(n){return window.setTimeout(n,S)}}); RtO(p.W);FqM(l("html5_use_ump_request_slicer"));EOO(l("html5_record_now"));l("html5_disable_streaming_xhr")&&(fn=!1);l("html5_byterate_constraints")&&(Le=!0);l("html5_use_non_active_broadcast_for_post_live")&&(sco=!0);l("html5_enable_encrypted_av1")&&(jk=!0);yCO(g.sW(p.experiments,"html5_sticky_duration_mos"))}; aqh=function(p){p=p.L;p.sx();p.lV();var a=TJ();a.K=QO(!1,p.U,a.isMobileDevice);$Fh(TJ(),p.U);p.j.L=p.ZM()}; Hr=function(){return na("Firefox")||na("FxiOS")}; Gr=function(p){return lm(p)==="TVHTML5_UNPLUGGED"}; L4=function(p,a){g.D.call(this);var l=this;this.policy=p;this.mT=a;this.S=0;this.L=null;this.ZF=[];this.U=null;this.hg={V5:function(){return l.mT}}; this.mT.length===1||g.Ar(this.mT,function(y){return!!y.range})}; gb$=function(p,a,l,y,S){g.D.call(this);var n=this,V=tX(function(){return new jt(n.EO)}); g.E(this,V);var z=tX(function(){return new W3(V,n.EO)}); g.E(this,z);var d=tX(function(){return new H3}); g.E(this,d);var G=tX(function(){return new Dq(p)}); g.E(this,G);var B=tX(function(){return new iE(V,z,n.EO)}); g.E(this,B);var c=tX(function(){return new TY}); g.E(this,c);this.wp=tX(function(){return new gcA(a)}); g.E(this,this.wp);this.X7=tX(function(){return new Ec(a)}); g.E(this,this.X7);this.uM=tX(function(){return new Nx(S)}); g.E(this,this.uM);this.lr=tX(function(){return new Nh(a)}); g.E(this,this.lr);this.gq=tX(function(){return new sU(a)}); g.E(this,this.gq);this.BZ=tX(function(){return new QI(a)}); g.E(this,this.BZ);this.VL=tX(function(){return new gp(a)}); g.E(this,this.VL);this.EO=tX(function(){return new YW(a)}); g.E(this,this.EO);var r=tX(function(){return new qx(y)}); g.E(this,r);var w=tX(function(){return new JX(n.EO)}); g.E(this,w);this.Ty=tX(function(){return new p$(a)}); g.E(this,this.Ty);this.ac=tX(function(){return new aK(a,c,n.EO)}); g.E(this,this.ac);var P=lv({ac:this.ac,EO:this.EO,UQ:w}),F=P.context,v=P.Pl;this.Tn=P.Tn;this.Je=tX(function(){return new WF(a,n.EO,n.uT)}); g.E(this,this.Je);this.WZ=tX(function(){return new E3(a)}); g.E(this,this.WZ);this.sO=tX(function(){return new yh(a,n.ac,n.EO)}); g.E(this,this.sO);this.wc=tX(function(){return new SZ}); g.E(this,this.wc);P=tX(function(){return new fI(V,B,z,n.EO,w,null,n.sO,n.Iv,n.iC,3)}); g.E(this,P);this.oM=tX(function(){return new ZT(n.EO)}); this.dG=tX(function(){return new n$(n.sO,a,n.EO)}); g.E(this,this.dG);this.uT=tX(function(){return new Vh(a,d,n.dG,n.ac,n.Tn,n.EO,v)}); g.E(this,this.uT);this.g$=new db(G,P,l,this.EO,p,this.ac,this.sO,this.lr);g.E(this,this.g$);var I=new GA(a,this.g$,this.sO,this.ac,this.Je);this.t$=tX(function(){return I}); this.OS=I;this.o1=new oK(DRE,zA,function(b,O,m,H){return skM(z.get(),b,O,m,H)},G,B,z,w,this.EO,this.ac); g.E(this,this.o1);this.Iv=new Xi(G,B,this.t$,this.Je,this.sO,this.EO,this.uT,this.WZ);g.E(this,this.Iv);this.o9=new BQ(G,B,this.gq,this.t$,F);g.E(this,this.o9);this.By=new cQ(this.EO,G,B,P,this.ac,this.o9,l,this.BZ);g.E(this,this.By);this.wh=tX(function(){return new rb(r,z,w,n.EO,n.uT,n.sO,n.WZ)}); g.E(this,this.wh);this.WX=tX(function(){return new wb}); g.E(this,this.WX);this.Et=new $q(p,this.X7,this.EO);g.E(this,this.Et);this.zn=new PQ(p);g.E(this,this.zn);this.Tp=new L$(p,this.t$,F);g.E(this,this.Tp);this.zO=new XX(p,this.gq,this.sO,this.ac,F);g.E(this,this.zO);this.Q7=new tJ(p,this.ac);g.E(this,this.Q7);this.iC=new es(p,this.Je,this.sO,this.uT,this.t$,this.Iv);g.E(this,this.iC);this.Qr=new xq(p);g.E(this,this.Qr);this.Jl=new FX(p);g.E(this,this.Jl);this.sE=new C$(p);g.E(this,this.sE);this.f1=tX(function(){return new vQ}); g.E(this,this.f1);this.q7=tX(function(){return new K$(n.sO)}); g.E(this,this.q7);this.Es=tX(function(){return new eZ(n.By,G,V)}); g.E(this,this.Es);this.Dl=tX(function(){return new bv(n.EO,n.uT,n.Qr,n.dG)}); g.E(this,this.Dl);this.Zl=tX(function(){return new ToZ(p,n.sE,n.Qr,n.ac,n.WZ,n.sO,n.wc,n.uT,c,n.Je,n.dG,n.oM,n.BZ,n.gq,n.lr,n.VL,n.uM,n.Ty,n.EO,d,F,v)}); g.E(this,this.Zl);this.Cc=tX(function(){return new bi$(n.X7,n.sO,n.uT,d,n.wp,l,n.EO,n.ac)}); g.E(this,this.Cc);this.Gp={bZ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.By],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Iv],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.o1],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.g$],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.o9]]),RI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wh],["SLOT_TYPE_FORECASTING",this.WX],["SLOT_TYPE_IN_PLAYER",this.WX],["SLOT_TYPE_PLAYER_BYTES",this.WX]]),V9:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Et],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.zn],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.zn],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.zn],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.zn],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.zn],["TRIGGER_TYPE_SLOT_ID_EXITED",this.zn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.zn],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.zn],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.zn],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tp],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Q7],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Q7],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Qr],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tp],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jl],["TRIGGER_TYPE_AD_BREAK_STARTED",this.sE],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.iC],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iC],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iC],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iC]]),Nt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.f1],["SLOT_TYPE_FORECASTING",this.f1],["SLOT_TYPE_IN_PLAYER",this.f1],["SLOT_TYPE_PLAYER_BYTES",this.q7]]),fH:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Es],["SLOT_TYPE_FORECASTING",this.Dl],["SLOT_TYPE_PLAYER_BYTES",this.Zl],["SLOT_TYPE_IN_PLAYER",this.Cc]])};this.listeners=[d.get()]; this.o_={By:this.By,lU:this.EO.get(),ZV:this.uM.get(),lZ:this.sO.get(),g$:this.g$,xk:V.get(),VE:null,hw:this.Et,T_:d.get(),Y3:this.ac.get()}}; lKv=function(p,a,l){var y;return g.R(function(S){switch(S.L){case 1:var n=p.L;var V=zT();n=V?new RG$(n.S,V):void 0;y=n;if(!y){S.g7(2);break}g.$r(S,3);return g.u(S,y.encrypt(a,l),5);case 5:return S.return(S.S);case 3:g.L6(S);case 2:return S.return(OSM(p,a,l))}})}; Jn=function(p){var a=p.data.getUint32(p.offset+p.L);p.L+=4;return a}; M7A=function(p){var a="",l=knv(p);l.indexOf("//")===0&&(l=p.Y.protocol+":"+l);var y=l.lastIndexOf("/base.js");y!==-1&&(a=l.substring(0,y+1));if(l=Error().stack)if(l=l.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))l=l[1],l.includes(a)||g.Mf(Error("Player module URL mismatch: "+(l+" vs "+a+".")));a=new YvA(p.Tm,a);l={};p7h(a,(l.destroyed=function(){p.onApiChange()},l)); return a}; qJh=function(p,a){p.policy.UO?p.L.splice(p.L.indexOf(a)).forEach(function(l){l.dispose()}):(p.L.pop(),a==null||a.dispose())}; QR=function(p,a,l){var y=Math.floor(a),S=y+"% volumen"+(l?" silenciado":"");l=l?0:a/100;p.updateValue("valuenow",y);p.updateValue("valuetext",S);p.Xu.style.left=(p.U?60:40)*l+"px";p.volume=a}; Au=function(p){p.removed=!0;p.listener=null;p.proxy=null;p.src=null;p.handler=null}; g.Hh=function(p,a){g.Es(function(){g.Bf(a,function(l){rd(l,p);var y=wd({cttAuthInfo:$Y(p)||void 0},p);l={csn:p,ve:l.getAsJson(),eventType:4};p==="UNDEFINED_CSN"?P0("visualElementShown",y,l):g.mf("visualElementShown",l,y)})})()}; mqh=function(p,a,l,y){g.qu.call(this);this.videoData=p;this.Y=a;this.Z=l;this.sessionId=y;this.W={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.UO=this.Xu=!1;this.U=null;this.w7=[];this.j=[];this.authorizedFormats=[];this.K=!1;this.L={};this.status="";this.G=NaN;this.S=p.W;this.cryptoPeriodIndex=l.cryptoPeriodIndex;p={};Object.assign(p,this.Y.L);p.cpn=this.videoData.clientPlaybackNonce;this.videoData.t9&&(p.vvt=this.videoData.t9,this.videoData.mdxEnvironment&&(p.mdx_environment= this.videoData.mdxEnvironment));this.Y.w7&&(p.authuser=this.Y.w7);this.Y.pageId&&(p.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(p.cpi=this.cryptoPeriodIndex.toString());var S=(S=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.yI()))?S[1]:"";S==="ATV"&&(p.cdt=S);this.W=p;this.W.session_id=y;this.Sl=!0;this.S.flavor==="widevine"&&(this.W.hdr="1");this.S.flavor==="playready"&&(a=Number(St(a.experiments,"playready_first_play_expiration")),!isNaN(a)&&a>=0&&(this.W.mfpe=""+a),this.Sl=!1);a="";g.j2(this.S)? W9(this.S)?(y=l.S)&&(a="https://www.youtube.com/api/drm/fps?ek="+BQM(y)):(a=l.initData.subarray(4),a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),a=String.fromCharCode.apply(null,a).replace("skd://","https://")):a=this.S.S;this.baseUrl=a;this.fairplayKeyId=$0(this.baseUrl,"ek")||"";if(a=$0(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(a);this.w7=l.EQ?[g.MN(l.initData,4)]:l.U;Zi(this,{sessioninit:l.cryptoPeriodIndex});this.status="in"}; X9=function(p,a,l,y){try{var S=a.call(p.L.j,l);onv(S);if(!S.done)return p.L.K=!1,S;var n=S.value}catch(V){return p.L.j=null,gA(p.L,V),YJ(p)}p.L.j=null;y.call(p.L,n);return YJ(p)}; DE=function(p,a){return function(l){return a(l)?l[p]:void 0}}; t7r=function(p,a){p=g.t(g.Rv(p,!0));for(var l=p.next();!l.done;l=p.next())if(l=l.value,zd$(l)){var y={potc:"1",pot:a};l.url&&(l.url=VX(l.url,y))}}; Vy=function(p){return p.videoData.L?gE(p.videoData.L)||5:5}; g.r4=function(p){g.D.call(this);var a=this;this.Lz=p;this.hg={lB:function(){return a.Lz}}}; j3v=function(p){for(var a=[],l=[],y=g.t(p.S),S=y.next();!S.done;S=y.next())S=S.value,S.bitrate<=p.j?a.push(S):l.push(S);a.sort(function(n,V){return V.bitrate-n.bitrate}); l.sort(function(n,V){return n.bitrate-V.bitrate}); p.S=a.concat(l)}; WbM=function(p){var a;(a=p.B.getVideoData(1))!=null&&a.Sl&&(p.S=!1,a={},p.L&&p.videoId&&(a.cttAuthInfo={token:p.L,videoId:p.videoId}),iH("video_to_ad",a))}; HSr=function(){xQ={contentCpn:"",Pr:new Map}}; Dqr=function(p){if(p.layout.renderingContent){var a;return(a=PE(p.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:a.current}return PE(p.layout.clientMetadata,"metadata_type_player_bytes_callback")}; jdF=function(p,a,l){if(p.Z){var y=g.Tz(p.U,function(S){return S.id===p.Z}); return OR(y,l).includes(a)}y=g.Tz(p.U,function(S){var n;return!((n=S.Mc)==null||!n.isDefault)}); return y.length>0?OR(y,l).includes(a):OR(p.U,l).includes(a)}; e3v=function(p){var a,l,y=(l=(a=p.Lz.F7())==null?void 0:a.getCurrentTime())!=null?l:p.Lz.getCurrentTime(),S=p.j.Ot(y);zmv(p,S,y,!0);p.isSeeking=!1;Array.from(p.S.keys()).sort(function(n,V){return n-V}).forEach(function(n){n>S?ztF(p,n,p.S.get(n)):n===S&&ztF(p,n,p.S.get(n),y-p.j.getStartTime(n))})}; Ri$=function(p,a){if(!a)return!1;var l=p.api.F7();if(l.M$()&&(l=l.gG())&&g.oh(l,a))return l.controls;for(l=0;l0?S:1;var n=Math.max(y,S);p.policy.W>0&&S=-1&&n<=2):n=Math.abs(y-S)<=1,s3A(p,a,n?y:S,l,y,V,z&&n),n&&!d&&p.ZN("complete"))}; UqZ=function(p){var a=p.queue;a.L.length&&a.L[0].isEncrypted&&!a.S&&(a.L.length=0);a=g.t(Object.keys(p.L));for(var l=a.next();!l.done;l=a.next()){l=l.value;var y=p.L[l];if(!y.j7){var S=p.queue;S.L.push({videoId:y.videoId,formatId:l,isEncrypted:!1});S.S||N0(S)}}}; Q3e=function(){var p=Lo(16);for(var a=[],l=0;l=S.j?(S.jl("sdai",{haltrq:n+1,est:S.j}),y=!1):y=S.S!==2;if(!y||!cv(a.S?a.S.L.bM:a.L.bM,p.policy,p.j,p.loader.II())||p.loader.isSuspended&&(!Aj(p.schedule)||p.loader.sF))return!1;if(p.policy.j&&sy>=5)return g.sb(p.loader.Oy),!1;if(p.MO.isManifestless){if(a.U.length>0&&a.S&&a.S.Rc===-1||a.U.length>=p.policy.jQ||!p.policy.Br&&a.U.length>0&&!p.policy.Z.Db)return!1;if(a.K)return!p.MO.isLive|| !isNaN(p.gE)}if(fAA(a))return!1;if(!a.S){if(!a.L.Dg())return!1;Ed(a,p.loader.getCurrentTime())}if(d$(a)&&(a.ai()!==d$(a)||p.loader.isSuspended))return!1;S=(y=p.policy.LP)&&!a.U.length&&qA(a,!0)=p.policy.eQ)return!1;y=a.S;if(!y)return!0;y.type===4&&y.L.Dg()&&(a.S=g.Jt(y.L.TW(y)),y=a.S);if(!y.I7()&&!y.L.Vp(y))return!1;n=p.MO.uf||p.MO.j;if(p.MO.isManifestless&& n){n=a.L.index.xE();var V=l.L.index.xE();n=Math.min(n,V);if(a.L.index.ip()>0&&n>0&&y.Rc>=n)return a.QY=n,l.QY=n,!1}if(y.L.info.audio&&y.type===4||y.I7())return!1;n=!a.W&&!l.W;if(S=!S)S=y.G,S=!!(l.S&&!d_(l.S)&&l.S.GArq(p,a)?(Arq(p,a),!1):(p=a.Io)&&p.isLocked()?!1:!0}; B$F=function(p){var a=p.getVideoData(),l=p.F7(),y=l.gG(),S=p.C(),n=p.jA(),V=n.qX*8/1024,z=n.Vq/1024,d=n.OR,G=n.Eb,B=n.playerState.state.toString(16),c=l.getCurrentTime().toFixed(2),r=jS(l.Vh(),",",3),w="";if(a.isDaiEnabled()){a.enableServerStitchedDai&&(w+=a.OI?"DS":"SS");w=a.vy()?w+"LIFA, ":w+"DAI, ";var P=n.lR;P&&(w+=P)}G9(a)&&!a.vy()&&(w+="LIFAE, ");gQ(a)&&(w+="SABR, ");if(a.fetchType){switch(a.fetchType){case "onesie":P="o";break;case "gp":P="gp";break;default:P="gvi"}w+="vd:"+P+", "}(S=S.XG)&& (w=S.L?w+"wa, ":w+"w, ");w+="s:"+B+" t:"+c+" b:"+r+" ";l.isSeeking()&&(w+="S");l.isPaused()&&(w+="P");l.isEnded()&&(w+="E");p.isOrchestrationLeader()&&(w+=" L");(l=n.Kd)&&(w+=" l:"+l.toFixed());l=n.currentTime;B=a.aU;l&&l>B.start&&l>=5;F+=I}S=F.substr(0,4)+" "+F.substr(4,4)+" "+F.substr(8,4)+" "+(F.substr(12,4)+" "+F.substr(16,4))}else S="";V={video_id_and_cpn:String(a.videoId)+" / "+S,codecs:"",dims_and_frames:"",bandwidth_kbps:V.toFixed(0)+" Kbps",buffer_health_seconds:d.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:G?"":"display:none",drm:G,debug_info:l,extra_debug_info:"",bandwidth_style:r,network_activity_style:r,network_activity_bytes:z.toFixed(0)+" KB",shader_info:c,shader_info_style:c?"":"display:none",playback_categories:""};z=y.clientWidth+"x"+y.clientHeight+(B>1?"*"+B.toFixed(2):"");d="-";n.totalVideoFrames&&(d=(n.droppedVideoFrames||0)+" dropped of "+n.totalVideoFrames);V.dims_and_frames=z+" / "+d;p=p.getVolume();z=qLM(a);var O;if((O=a.j)==null?0:O.audio.S)O= "VB";else{var m;O=((m=a.j)==null?0:m.audio.L)?"DRC":Math.round(p*z)+"%"}m=Math.round(p)+"% / "+O;O=a.aM.toFixed(1);isFinite(Number(O))&&(m+=" (content loudness "+O+"dB)");V.volume=m;V.resolution=y.videoWidth+"x"+y.videoHeight;if(y=a.S){if(m=y.video)O=m.fps,O>1&&(V.resolution+="@"+O),(O=n.Gs)&&O.video&&(V.resolution+=" / "+O.video.width+"x"+O.video.height,O.video.fps>1&&(V.resolution+="@"+O.video.fps)),V.codecs=Aah(y),!a.j||y.audio&&y.video?y.DP&&(V.codecs+=" / "+y.DP+"A"):V.codecs+=" / "+Aah(a.j), m.L||m.primaries?(O=m.L||"unknown",O==="smpte2084"?O+=" (PQ)":O==="arib-std-b67"&&(O+=" (HLG)"),V.color=O+" / "+(m.primaries||"unknown"),V.color_style=""):V.color_style="display:none";if(y.debugInfo)for(V.fmt_debug_info="",y=g.t(y.debugInfo),m=y.next();!m.done;m=y.next())m=m.value,V.fmt_debug_info+=m.label+":"+m.text+" ";V.fmt_debug_info_style=V.fmt_debug_info&&V.fmt_debug_info.length>0?"":"display:none"}y=a.isLivePlayback;m=a.uf;V.live_mode_style=y||m?"":"display:none";V.live_latency_style=y?"": "display:none";if(m)V.live_mode="Post-Live"+(Qe(a)?" Manifestless":"");else if(y){m=n.P$;V.live_latency_secs=m.toFixed(2)+"s";y=Qe(a)?"Manifestless, ":"";a.w7&&(y+="Windowed, ");O="Uncertain";if(m>=0&&m<120)if(a.latencyClass&&a.latencyClass!=="UNKNOWN")switch(a.latencyClass){case "NORMAL":O="Optimized for Normal Latency";break;case "LOW":O="Optimized for Low Latency";break;case "ULTRALOW":O="Optimized for Ultra Low Latency";break;default:O="Unknown Latency Setting"}else O=a.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";y+=O;(m=n.cQ)&&(y+=", seq "+m.sequence);V.live_mode=y}!n.isGapless||nn(a)&&n.B9||(V.playback_categories+="Gapless ");V.playback_categories_style=V.playback_categories?"":"display:none";V.bandwidth_samples=n.Vd;V.network_activity_samples=n.pK;V.live_latency_samples=n.mU;V.buffer_health_samples=n.BC;n=g.Dh(a);if(a.cotn||n)V.cotn_and_local_media=(a.cotn?a.cotn:"null")+" / "+n;V.cotn_and_local_media_style=V.cotn_and_local_media?"":"display:none"; KD(a,"web_player_release_debug")?(V.release_name=Z[57],V.release_style=""):V.release_style="display:none";V.debug_info&&w.length>0&&V.debug_info.length+w.length<=60?V.debug_info+=" "+w:V.extra_debug_info=w;V.extra_debug_info_style=V.extra_debug_info&&V.extra_debug_info.length>0?"":"display:none";return V}; fZq=function(p){return{PP:FW(p,1),I0:FW(p,2),seekSource:FW(p,3)}}; g.jv=function(p,a,l){return Cr(a,0,l)}; pof=function(p,a){var l=p.G[a],y=l==="End of video"||l==="End of playlist";l==="Off"&&(p.L="");p.B.getPlayerState()!==0&&p.B.getPlayerState()!==5||!y?(p.j=a,g.gl.prototype.fq.call(p,a),p.SE(a),p.B.xv("onSleepTimerSettingsChanged",l)):p.B.xv("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El v\u00eddeo ya ha acabado"}}}}})}; qK=function(p,a,l,y,S,n,V,z,d,G){this.callback=p;this.slot=a;this.layout=l;this.ac=y;this.WZ=S;this.Je=n;this.sO=V;this.zm=z;this.uT=d;this.W=G;this.driftRecoveryMs=PE(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.j=PE(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0}; g.By=function(p){return p.match(aXr)}; Ul=function(p,a){this.topic=p;this.L=a}; jCO=function(p){var a;if(((a=p.adVideoOffset)==null?void 0:a.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var l;return((l=p.adVideoOffset)==null?void 0:l.percent)!=null}; lXv=function(p,a,l,y,S,n,V,z,d,G,B,c,r){a=zzZ(p,a,"adapter",l,y,S,n,V,z,d,B,c,r);y=a.layoutExitSkipTriggers;S=a.dO;l.adPodSkipTarget&&l.adPodSkipTarget>0&&(S.push(G),S.push(new PN(l.adPodSkipTarget)),y=[]);S.push(new y2(z.adPodIndex));l.isCritical&&(y=[new Eb(p.L,a.layoutId,["error"])].concat(g.u0(y)));return{sY:{layoutId:a.layoutId,layoutType:a.layoutType,Xh:a.Xh,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], iT:a.iT,clientMetadata:new Lc(S),nx:a.nx,adLayoutLoggingData:a.adLayoutLoggingData},gA:y,gh:a.layoutExitMuteTriggers,tT:a.layoutExitUserInputSubmittedTriggers,vC:a.layoutExitUserCancelledTriggers}}; yHv=function(p,a,l){var y=new Promise(function(S,n){try{var V=a(p);l&&p.commit();V.then(function(z){S(z)}).catch(n)}catch(z){n(z),p.abort()}}); return Promise.all([y,p.done]).then(function(S){return g.t(S).next().value})}; h1F=function(p,a,l){p=p.map(function(y){return g.R(function(S){return S.L==1?g.u(S,yv(y.actualName,a),2):g.u(S,kz(y.actualName,l),0)})}); return Promise.all(p).then(function(){})}; Sor=function(p,a,l){typeof p==="string"&&(p={mediaContentUrl:p,startSeconds:a,suggestedQuality:l});a:{if((a=p.mediaContentUrl)&&(a=/\/([ve]|embed)\/([^#?]+)/.exec(a))&&a[2]){a=a[2];break a}a=null}p.videoId=a;return XT(p)}; SNF=function(p,a,l,y){var S=y;l8(p);y=p.NO;p=o$(p,y,y[QB]|0,l,a,2,void 0,!0);S=S!=null?no(S,l):new l;p.push(S);a=l=p===yb?7:p[QB]|0;(S=qN(S))?(l&=-9,p.length===1&&(l&=-4097)):l|=4096;l!==a&&oW(p,l);S||zF(y)}; f3M=function(p){var a,l;return(l=(a=p.Lz.F7())==null?void 0:a.getCurrentTime())!=null?l:p.Lz.getCurrentTime()}; BX=function(p,a,l){return a>=15E3?!0:p.VY?(l===void 0?0:l)?!0:p.U>0?a>=p.U/2:p.QY>0?a>=p.QY:!1:!1}; qLM=function(p){if(p.D("html5_stateful_audio_normalization")){var a=1,l=g.sW(p.Ws.experiments,"html5_default_ad_gain");l&&p.isAd()&&(a=l);var y,S;l=(S=(y=p.j)==null?void 0:y.audio.j)!=null?S:p.ey;if(l==null||isNaN(l))p=I9h(p);else{y=(0,g.Ek)();p.jr=2;S=y-p.Ws.Yz<=p.maxStatefulTimeThresholdSec*1E3;p.applyStatefulNormalization&&S?p.jr=4:S||(p.Ws.N7=Infinity,p.Ws.Yz=NaN);S=(p.jr===4?g.Lu(p.Ws.N7,p.minimumLoudnessTargetLkfs,p.loudnessTargetLkfs):p.loudnessTargetLkfs)-l;if(p.jr!==4){var n,V,z,d,G=((n= p.playerResponse)==null?void 0:(V=n.playerConfig)==null?void 0:(z=V.audioConfig)==null?void 0:(d=z.loudnessNormalizationConfig)==null?void 0:d.statelessLoudnessAdjustmentGain)||0;S+=G}S=Math.min(S,0);p.preserveStatefulLoudnessTarget&&(p.Ws.N7=l+S,p.Ws.Yz=y);p=Math.min(1,Math.pow(10,S/20))||a}}else p=I9h(p);return p}; ir=function(p,a,l,y){for(var S=l.length;(a=p.indexOf(l,a))>=0&&a=0?1:p.indexOf("/webm")>=0?2:p.indexOf("/x-flv")>=0?3:p.indexOf("/vtt")>=0?4:0}; A8=function(p){p.L=null;p.w7=-1;p.Sl=0;p.G=null;p.QY=NaN;p.UO=0;p.Xu=null}; nle=function(p){this.NO=Dm(p)}; uvM=function(p,a,l){p.L.set(a,l);p.S.set(a,l);p.j&&p.j.set(a,l)}; Vrr=function(p){var a=p.L[p.L.length-1];if(a){g.Pj(p.element,p.maxWidth||"100%",p.maxHeight||"100%");g.B8(a.element,"width","");g.B8(a.element,"height","");g.B8(a.element,"maxWidth","100%");g.B8(a.element,"maxHeight","100%");g.B8(a.content.element,"height","");var l=g.Wd(a.element);l.width+=1;l.height+=1;g.B8(a.element,"width",l.width+"px");g.B8(a.element,"height",l.height+"px");g.B8(a.element,"maxWidth","");g.B8(a.element,"maxHeight","");var y=0;a.yq&&(y=g.Wd(a.d7("ytp-panel-header")).height);var S= 0;a.Xg&&(S=a.d7("ytp-panel-footer"),g.B8(S,"width",l.width+"px"),S=g.Wd(S).height);g.B8(a.content.element,"height",l.height-y-S+"px");a.element instanceof HTMLElement&&(y=a.element,S=y.scrollWidth-y.clientWidth,y.offsetWidth-y.clientWidth>0&&S>0&&(l.width+=S,g.B8(a.element,"width",l.width+"px")));p.size=l}}; KJF=function(p){var a;p=g.T((a=p.fulfillmentContent)==null?void 0:a.fulfilledLayout,$i);var l;return p&&((l=p.adLayoutMetadata)==null?void 0:l.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&p.layoutExitNormalTriggers===void 0}; FsO=function(p,a,l,y){return p.EO.get().lC(gw(a))?[new rG(p.L,l)]:y}; idA=function(p){if(!p)return 0;var a=p.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return a?(Number(a[2])|0)*3600+(Number(a[4])|0)*60+(Number(a[6])|0):Number(p)|0}; RP=function(p,a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a||p(this.triggerType)}; wy=function(p,a,l){(p=p.L[a])&&p.U(l)}; sl=function(p,a,l){l&&p.S&&p.S(a.value)}; rt$=function(p){return typeof p==="undefined"?"-1":String(Math.ceil(p/1048576))}; MQM=function(p){this.itag=p.itag;this.url=p.url;this.codecs=p.codecs;this.width=p.width;this.height=p.height;this.fps=p.fps;this.bitrate=p.bitrate;var a;this.S=((a=p.audioItag)==null?void 0:a.split(","))||[];this.g6=p.g6;this.Hy=p.Hy||"";this.Mc=p.Mc;this.audioChannels=p.audioChannels;this.L=""}; nO=function(p){g.CX.call(this,g.vy({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var a=this;this.B=p;this.S=this.L=!1;this.U6=p.K0();p.createServerVe(this.element,this,!0);this.J(this.B,"settingsMenuVisibilityChanged",function(l){a.UC(l)}); this.J(this.B,"videodatachange",this.j);this.listen("click",this.onClick);this.j()}; VUr=function(p,a,l){var y;(y=p.L.get(l))==null||y.delay.dispose();p.L.delete(l);return new Promise(function(S){S={id:l,mediaTime:a,delay:new g.l_(function(){}), resolve:S};p.L.set(l,S);pJq(p,S)})}; o5M=function(p,a,l,y){var S=null;switch(a){case "JSON":try{var n=l.responseText}catch(V){throw y=Error("Error reading responseText"),y.params=p,FU(y),V;}p=l.getResponseHeader("Content-Type")||"";n&&p.indexOf("json")>=0&&(n.substring(0,5)===")]}'\n"&&(n=n.substring(5)),S=JSON.parse(n));break;case "XML":if(p=(p=l.responseXML)?ttM(p):null)S={},g.Bf(p.getElementsByTagName("*"),function(V){S[V.tagName]=blE(V)})}y&&ZMo(S); return S}; piE=function(p,a){a=g.t(a);for(var l=a.next();!l.done;l=a.next())s2(p,l.value.slot,!1)}; n6=function(p){if(!lbr(p)||!$C(p,524531317))return!1;$u(p,!0);return!0}; olM=function(p){if(p.requestFullscreen)p=p.requestFullscreen(void 0);else if(p.webkitRequestFullscreen)p=p.webkitRequestFullscreen();else if(p.mozRequestFullScreen)p=p.mozRequestFullScreen();else if(p.msRequestFullscreen)p=p.msRequestFullscreen();else if(p.webkitEnterFullscreen)p=p.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return p instanceof Promise?p:Promise.resolve()}; zlv=function(p,a,l,y,S,n,V,z,d,G){G=G===void 0?!1:G;var B=La(S);if(!$BZ(S,G))return new W("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:S});if(B<=0)return new W("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:S});var c=qlO(p,a,S,n,l,y,V);return c instanceof W?c:function(r){return WGZ(a,r.slotId,l,B,S,XJ(S),V(r),c,z,d)}}; g.G_v=function(p){var a,l,y;p=g.T((a=p.getWatchNextResponse())==null?void 0:(l=a.playerOverlays)==null?void 0:(y=l.playerOverlayRenderer)==null?void 0:y.decoratedPlayerBarRenderer,vh);return g.T(p==null?void 0:p.playerBar,dmO)}; rHZ=function(p,a,l){if(l.info.L.G4()){if(p.Yv&&hvv(l)&&(a=g.KU(l),a=g.KI(a,0,1953658222))){a.skip(1);var y=Y0(a)<<16|qD(a),S=y&1,n=y&4;if(y&256){var V=y&512,z=y&1024;y&=2048;var d=Jn(a);d<2||(S&&a.skip(4),n&&a.skip(4),S=Jn(a),a.skip((d-1)*(4+(V?4:0)+(z?4:0)+(y?4:0))-4),a.data.setUint32(a.offset+a.L,S))}}if(a=p.Bs&&!!p.Bs.W.j)if(a=l.info.HX())a=DLq(l),V=p.Bs,EF?(z=1/a,a=Qr(p,a)>=Qr(V)+z):a=p.getDuration()>=V.getDuration(),a=!a;a&&hvv(l)&&(a=p.Bs,EF?(z=DLq(l),V=1/z,z=Qr(p,z),a=Qr(a)+V-z):a=a.getDuration()- p.getDuration(),a=1+a/l.info.duration,Bce(g.KU(l),a))}else{V=!1;p.G||(jxr(l),l.L&&(p.G=l.L,V=!0,S=l.info,n=l.L.OM,S.K="updateWithEmsg",S.Rc=n,S=l.L,S.I7&&(n=p.W.index,n.S=!S.I7,n.U="emsg"),S=l.info.L.info,n=g.KU(l),g.vA(S)?w$(n,1701671783):S.EQ()&&Qw([408125543],307544935,n)));a:if((S=kG(l,p.policy.EC))&&EzZ(l))z=cHo(p,l),p.Z+=z,S-=z,p.UO+=S,p.U=p.policy.UM?p.U+S:NaN;else{if(p.policy.I$){if(n=d=p.loader.Ql(g.ZV(l),1),p.U>=0&&l.info.type!==6){if(p.policy.UM&&isNaN(p.OO)){g.Mf(new g.kc("Missing duration while processing previous chunk", l.info.AP()));p.loader.isOffline()&&!p.policy.So||nTM(p,l,n);IB(p,"m");break a}y=d-p.U;var G=y-p.Z,B=l.info.Rc,c=p.t9?p.t9.Rc:-1,r=p.VY,w=p.OO,P=p.policy.fg&&y>p.policy.fg,F=Math.abs(G)>10,v=Math.abs(p.U-n)<1E-7;if(Math.abs(G)>1E-4){p.nz+=1;var I=(z=p.G)==null?void 0:LbM(z);z={audio:""+ +p.Qh(),sq:B.toFixed(),sliceStart:d,lastSq:c.toFixed(),lastSliceStart:r,lastSliceDuration:w,totalDrift:(y*1E3).toFixed(),segDrift:(G*1E3).toFixed(),skipRewrite:""+ +(P||F)};if(I==null?0:I.length)z.adCpn=I[0];p.loader.handleError("qoe.avsync", z);p.Kz=B}P||F||v||(n=p.U);z=cHo(p,l,d);S-=z;p.Z=y+z}}else n=isNaN(p.U)?l.info.startTime:p.U;nTM(p,l,n)&&(p.UO+=S,p.U=n+S,p.policy.yO&&p.nz>=p.policy.yO&&(p.nz=0,p.loader.jS({resetForRewrites:"count"})))}p.t9=l.info;p.OO=Or(l);l.U>=0&&(p.VY=l.U);if(V&&p.G){V=ILf(p,!0);o1(l.info,V);p.L&&o1(p.L.info,V);a=g.t(a);for(z=a.next();!z.done;z=a.next())z=z.value,S=void 0,p.policy.W&&z.Rc!==((S=p.G)==null?void 0:S.OM)||o1(z,V);(l.info.j||p.L&&p.L.info.j)&&l.info.type!==6||(p.Xu=V,p.policy.S?(a=Rg$(p.G),p.loader.qH(p.W, V,a)):(a=p.loader,a.MO.isManifestless&&bdo(a,V,null,!!p.W.info.video)),p.policy.zy||uFh(p))}}yrO(p,l);p.timestampOffset&&ZDM(l,p.timestampOffset)}; Xd=function(p,a,l,y){y=y===void 0?!1:y;LV.call(this,p);this.Bo=l;this.Yt=y;this.args=[];a&&this.args.push(a)}; ZIE=function(p){p=String(p);return"0000000".slice(p.length)+p}; gt=function(p,a,l,y,S){l8(p);var n=p.NO;yH(n,n[QB]|0,a,(y==="0"?Number(l)===0:l===y)?void 0:l,S);return p}; Fxe=function(p,a,l,y){a=a===void 0?[]:a;p.Gm();var S=[],n=[];a=g.t(a);for(var V=a.next();!V.done;V=a.next())V=V.value,g.T(V,wov)||g.T(V,$me)?S.push(V):n.push(V);S=g.t(S);for(a=S.next();!a.done;a=S.next())TS(p,a.value,l,y);n=g.t(n);for(S=n.next();!S.done;S=n.next())TS(p,S.value,l,y)}; g.Gs=function(p){var a=Se(p.DN());return p.app.uX&&!p.isFullscreen()||p.getPresentingPlayerType()===3&&a&&a.nO()&&a.NR()||!!p.getPlaylist()}; P2A=function(p){this.NO=Dm(p)}; L_f=function(p,a,l,y,S,n,V,z){this.callback=p;this.slot=a;this.layout=l;this.sO=y;this.uT=S;this.EO=V;this.dG=z;this.L=!1;p=PE(l.clientMetadata,"metadata_type_ad_placement_config");this.zm=new Rq(l.Xh,this.uT,p,l.layoutId);var d;p=((d=PE(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:d.progressCommands)||[];var G=PE(l.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.S=new H2v(n,p,l.layoutId,function(){return G*1E3})}; hc=function(p,a){return a>p.mediaTime+p.W&&a0&&!Qe(p.videoData)||a||Ak(p)||(p.seekTo(Infinity,{JP:"videoplayer_readying",seekSource:18}),p.isBackground()&&(p.K3=!0));a=p.rG;if(a.qoe){a=a.qoe;for(var l=a.provider.videoData, y=a.provider.Y,S=g.t(y.Ko),n=S.next();!n.done;n=S.next())cJ(a,n.value);if(a.provider.D("html5_enable_qoe_cat_list"))for(S=g.t(l.er),n=S.next();!n.done;n=S.next())cJ(a,n.value);else l.Ko&&cJ(a,a.provider.videoData.Ko);l.ke()&&(S=l.L,Qe(l)&&cJ(a,"manifestless"),S&&gE(S)&&cJ(a,"live-segment-"+gE(S).toFixed(1)));gQ(l)?cJ(a,"sabr"):a.wl(dh(l));if(G9(l)||l.vy())l.vy()&&cJ(a,"ssa"),cJ(a,"lifa");Hx(l)&&cJ(a,"cdm");l.gatewayExperimentGroup&&(S=l.gatewayExperimentGroup,S==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"? S="spkadtrt":S==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(S="spkadctrl"),cJ(a,S));y.UO!=="yt"&&a.L.set("len",[l.lengthSeconds.toFixed(2)]);l.cotn&&!eX(l)&&a.eN(!0);y.ao()&&(l=xmh())&&a.jl("cblt",{m:l});if(y.D("html5_log_screen_diagonal")){y=a.jl;var V;l=((V=window.H5vccScreen)==null?0:V.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;y.call(a,"cbltdiag",{v:l})}}p.publish("playbackready");w1("pl_c",p.QQ.timerName)||(p.QQ.tick("pl_c"),$B("pl_c",void 0,"video_to_ad"));w1("pbr",p.QQ.timerName)||(p.QQ.tick("pbr"), $B("pbr",void 0,"video_to_ad"))}}}; Ac=function(p){p.S.startTime=p.U;p.S.endTime=p.L;var a=!1;p.segments.length&&g.Jt(p.segments).isEmpty()?(p.segments[p.segments.length-1].previouslyEnded&&(p.S.previouslyEnded=!0),p.segments[p.segments.length-1]=p.S,a=!0):p.segments.length&&p.S.isEmpty()||(p.segments.push(p.S),a=!0);a?p.S.endTime===0&&(p.previouslyEnded=!1):p.S.previouslyEnded&&(p.previouslyEnded=!0);p.W+=p.L-p.U;p.S=QA(p.provider);p.S.previouslyEnded=p.previouslyEnded;p.previouslyEnded=!1;p.U=p.L}; F_$=function(p){p.S&&Q_e(p.S);p.qoe&&ypq(p.qoe)}; g4=function(){this.K=[];this.Z=[];this.L=[];this.Xu=[];this.W=[];this.Sl=[];this.U=new Map;this.G=new Map;this.S=new Set;this.w7=new Map}; C2e=function(p,a){switch(a.u6){case "bool":return p.Cz(a.sG);case "int":return p=G7$(p,a.sG),OX(p);case "double":return G7$(p,a.sG);case "string":return EsE(p,a.sG);case "int32_list":return ElZ(p,a.sG);case "int64_list":return ElZ(p,a.sG).map(function(l){return OX(l)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; v0=function(p,a){var l;return(l=a.priority)!=null?l:p.U}; Oj=function(p,a){g.X.call(this,{X:"div",A9:["ytp-overlay","ytp-speedmaster-overlay"],N:[{X:"div",T:"ytp-speedmaster-user-edu",N:[{X:"div",T:"ytp-speedmaster-label",yY:a},{X:"div",T:"ytp-speedmaster-icon",yY:"{{icon}}"}]}]});this.B=p;this.L=this.d7("ytp-speedmaster-user-edu");this.updateValue("icon",XQF());g.uD(this.L,"ytp-speedmaster-has-icon");this.B.createClientVe(this.L,this,173040,!0);this.g4()}; Ki=function(p){if(!(this instanceof Ki))return new Ki(p);p=this.options=ME.assign({level:-1,method:8,chunkSize:16384,Ds:15,J9m:8,strategy:0,to:""},p||{});p.raw&&p.Ds>0?p.Ds=-p.Ds:p.Xe&&p.Ds>0&&p.Ds<16&&(p.Ds+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ph=new vlv;this.ph.Ch=0;var a=this.ph;var l=p.level,y=p.method,S=p.Ds,n=p.J9m,V=p.strategy;if(a){var z=1;l===-1&&(l=6);S<0?(z=0,S=-S):S>15&&(z=2,S-=16);if(n<1||n>9||y!==8||S<8||S>15||l<0||l>9||V<0||V>4)a=ya(a,-2);else{S===8&&(S=9); var d=new y6E;a.state=d;d.ph=a;d.wrap=z;d.Wy=null;d.LX=S;d.s2=1<>=7;n<30;n++)for(Yo[n]=V<<7,S=0;S<1<=G.s2&&(a===0&&(dq(G.head),G.Ba=0,G.QP=0,G.zp=0),l=new ME.Pt(G.s2),ME.WC(l,n,V-G.s2,G.s2,0),n=l,V=G.s2);l=p.kf;y=p.cR;S=p.input;p.kf=V;p.cR=0;p.input=n;for(lJ(G);G.xe>=3;){n=G.Ba;V=G.xe-2;do G.oX=(G.oX<1E3){var y=p.interruptions;y.push(Math.ceil(l));y.sort(function(S,n){return n-S}); y.length>16&&y.pop()}p.Bs+=l}}p.W=a}; F3q=function(p,a){var l=document.body||document;return g.nU(l,"click",function(y){var S=rE(y.target,function(n){return n===l||a(n)},!0); S&&S!==l&&!S.disabled&&(y.currentTarget=S,p.call(S,y))})}; Bce=function(p,a){var l=g.KI(p,0,1952868452);p=g.KI(p,0,1953658222);if(l&&p){l.skip(1);var y=Y0(l)<<16|qD(l);l.skip(4);y&1&&l.skip(8);y&2&&l.skip(4);if(y&8){y=l.L;var S=Jn(l);l.data.setUint32(l.offset+y,a>1?Math.ceil(S*a):Math.floor(S*a))}p.skip(1);l=Y0(p)<<16|qD(p);if(l&256){y=l&1;S=l&4;var n=l&512,V=l&1024,z=l&2048;l=Jn(p);y&&p.skip(4);S&&p.skip(4);y=(n?4:0)+(V?4:0)+(z?4:0);for(S=0;S1?Math.ceil(V*a):Math.floor(V*a)),p.skip(y)}}}; trr=function(p){return{bitrate:FW(p,6),width:FW(p,7),height:FW(p,8),fps:FW(p,25),averageBitrate:FW(p,31),audioSampleRate:FW(p,45),audioChannels:FW(p,46),qualityOrdinal:FW(p,56)}}; OIo=function(){try{var p,a;return!!((p=window)==null?0:(a=p.top)==null?0:a.location.href)&&!1}catch(l){return!0}}; oG=function(){p0.apply(this,arguments)}; io=function(p){return function l(){return HN(l,function(y){if(y.L==1)return g.DD(y,2),g.u(y,{Ix:wN(p)},4);if(y.L!=2)return y.return(y.S);g.TK(y);return g.$F(y,0)})}()}; Tih=function(p){return p.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?p+"Z":p}; $K=function(p,a,l,y){l=l===void 0?"":l;var S;return(S=c1(A9(p,a,y)))!=null?S:l}; pXv=function(p){var a=new Uint8Array(32),l=64-p.S;p.S>55&&(l+=64);var y=new Uint8Array(l);y[0]=128;for(var S=p.j*8,n=1;n<9;n++){var V=S%256;y[l-n]=V;S=(S-V)/256}p.update(y);for(l=0;l<8;l++)a[l*4]=p.L[l]>>>24,a[l*4+1]=p.L[l]>>>16&255,a[l*4+2]=p.L[l]>>>8&255,a[l*4+3]=p.L[l]&255;LXv(p);return a}; nf=function(p,a){a.method="POST";a.postParams||(a.postParams={});return g.lE(p,a)}; MO=function(p,a,l,y,S){if(p==null)return"";a=a||"&";l=l||",$";typeof l==="string"&&(l=l.split(""));if(p instanceof Array){if(y||(y=0),yP.width*P.height*P.fps)P=b}else r.push(b)}else z[I]="disdrmhfr";w.reduce(function(H, Y){return Y.getInfo().isEncrypted()&&H},!0)&&(c=B); S=Math.max(S,0);B=P||{};G=B.fps===void 0?0:B.fps;P=B.width===void 0?0:B.width;B=B.height===void 0?0:B.height;v=p.D("html5_native_audio_track_switching");w.push(xno(r,l,y,n,"93",P,B,G,d,"auto",S,c,F,v));Object.entries(z).length&&V(z);return Vg(p.W,w,bU(p,a),!1)}; OLA=function(){var p=el();if(p){var a=p.isTypeSupported;return function(y,S){return a(S,y)}}var l=MH(); return l&&(l.addKey||l.webkitAddKey)?function(y,S){return!!l.canPlayType(y,S)}:function(){return!1}}; s1=function(p,a){return p.B.C().D(a)}; HMA=function(p){return wqF()===2?g.Tz(p,g6$):p}; hhq=function(p,a){if(a.info.type===1)if(a.info.L.info.video){var l=p.timing;l.Hs||(l.Hs=(0,g.Ek)(),g.Pf("vis_r",l.Hs,l.L))}else l=p.timing,l.Z||(l.Z=(0,g.Ek)(),g.Pf("ais_r",l.Z,l.L));Dmr(p.j,a);p=p.loader;p.videoTrack.L.Dg()&&p.audioTrack.L.Dg()&&p.policy.L&&!p.MO.ke&&(a=p.audioTrack.getDuration(),l=p.videoTrack.getDuration(),Math.abs(a-l)>1&&p.jl("trBug",{af:""+g.Bp(p.audioTrack.L.info,!1),vf:""+g.Bp(p.videoTrack.L.info,!1),a:""+a,v:""+l}))}; GA=function(p,a,l,y,S){g.D.call(this);this.S=a;this.sO=l;this.ac=y;this.Je=S;this.listeners=[];var n=new FM(this);g.E(this,n);n.J(p,"internalAbandon",this.CMT);this.addOnDisposeCallback(function(){g.z1(n)})}; nV=function(p,a,l){l=l===void 0?!1:l;if(p.Io){var y=p.Io.ea(),S=RX(y,a),n=NaN,V=cH(p);V&&(n=RX(y,V.L.index.getStartTime(V.Rc)));if(S===n&&p.S&&p.S.U&&Gv$(uB(p),0))return a}p=O$(p,a,l);return p>=0?p:NaN}; d8=function(p,a){p.Xu&&(p.Xu.l2=!0);p.update({seekTime:g.tQ(a)});var l=p.G*p.scale;a=a0?a[0]:null;var l=g.q$("ytp-chrome-bottom"),y=g.q$("ytp-ad-module");p.U=!(l==null||!l.contains(a));p.G=!(y==null||!y.contains(a));p.K=!(a==null||!a.hasAttribute("data-tooltip-target-fixed"));return a}; NcM=function(p){g.D.call(this);var a=this;this.nt=p;this.L=null;this.S=gmh;this.hg={UtI:function(l){a.L=l}}; this.nt("ismp_i")}; kI=function(p){return p.mimeType==="application/x-mpegURL"}; UmF=function(p,a,l){l=l===void 0?!1:l;p.yQ=bl(p.yQ,a.video_id);p.bf=bl(p.bf,a.eventid);p.bf&&(Pv=p.bf);for(var y=[],S=g.t(Object.keys(soq)),n=S.next();!n.done;n=S.next()){n=soq[n.value];var V=a[n];V!=null&&(V!==p.L[n]&&y.push(n),p.L[n]=V)}!l&&y.length>0&&p.CU&&(y.sort(),g.Mf(new g.kc("Player client parameters changed after startup",y)));p.userAge=fz(p.userAge,a.user_age);p.ej=bl(p.ej,a.user_display_email);p.userDisplayImage=bl(p.userDisplayImage,a.user_display_image);g.Ik(p.userDisplayImage)||(p.userDisplayImage= "");p.userDisplayName=bl(p.userDisplayName,a.user_display_name);p.UU=bl(p.UU,a.user_gender);p.csiPageType=bl(p.csiPageType,a.csi_page_type);p.csiServiceName=bl(p.csiServiceName,a.csi_service_name);p.LO=ID(p.LO,a.enablecsi);p.pageId=bl(p.pageId,a.pageid);if(l=a.enabled_engage_types)p.enabledEngageTypes=new Set(l.split(","));a.living_room_session_po_token&&(p.rP=a.living_room_session_po_token.toString())}; FTA=function(p,a){var l=g.ZM("XSRF_FIELD_NAME"),y=g.ZM("XSRF_TOKEN"),S=a.postBody||"",n=a.postParams,V=g.ZM("XSRF_FIELD_NAME"),z;a.headers&&(z=a.headers["Content-Type"]);a.excludeXsrf||g.Ir(p)&&!a.withCredentials&&g.Ir(p)!==document.location.hostname||a.method!=="POST"||z&&z!=="application/x-www-form-urlencoded"||a.postParams&&a.postParams[V]||(n||(n={}),n[l]=y);(g.oO("ajax_parse_query_data_only_when_filled")&&n&&Object.keys(n).length>0||n)&&typeof S==="string"&&(S=vv(S),g.Qt(S,n),S=a.postBodyFormat&& a.postBodyFormat==="JSON"?JSON.stringify(S):g.c5(S));n=S||n&&!g.cL(n);!QoM&&n&&a.method!=="POST"&&(QoM=!0,g.K8(Error("AJAX request with postData should use POST")));return S}; hlZ=function(p){p.L.forEach(function(a){pJq(p,a)})}; csv=function(p){for(var a=[],l=0;la);y=p.next())l++;return l===0?l:l-1}; AHr=function(p,a,l){p.api.isFullscreen()?l<1-a&&p.api.toggleFullscreen():l>1+a&&p.api.toggleFullscreen()}; pZ=function(p,a,l,y){JF.call(this,p,{X:"button",T:"ytp-skip-ad-button",N:[{X:"div",T:"ytp-skip-ad-button__text"}]},"skip-button",a,l,y);var S=this;this.S=!1;this.j=this.d7("ytp-skip-ad-button__text");this.transition=new g.Gq(this,500,!1,100,function(){S.hide()}); g.E(this,this.transition);this.L=new xE(this.element,15E3,5E3,.5,.5,!0);g.E(this,this.L);this.hide()}; glO=function(p){var a=g.t(T1E(p,jq));p=a.next().value;a=a.next().value;return p.toString(16)+a.toString(16)}; g.X4=function(p){return p.D("enable_wn_infocards")}; Yor=function(p,a){p=p.api.getRootNode();g.JB(p,"ytp-ad-overlay-open",a);g.JB(p,"ytp-ad-overlay-closed",!a)}; MHE=function(p,a,l,y,S,n){a.client||(a.client={});p.player.C().D("h5_remove_url_for_get_ad_break")||(a.client.originalUrl=l);var V=VH(l),z=g.Ir(l)?!1:!0;(V||z)&&typeof Intl!=="undefined"&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);z=g.Ir(l)?!1:!0;if(V||z||y!==""){var d={};l=d1(GG(y)).split("&");var G=new Map;l.forEach(function(B){B=B.split("=");B.length>1&&G.set(B[0].toString(),decodeURIComponent(B[1].toString()))}); G.has("bid")&&(d.bid=G.get("bid"));d.params=[];qoh.forEach(function(B){G.has(B)&&(B={key:B,value:G.get(B)},d.params.push(B))}); jGE(p,d);a.adSignalsInfo=d}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;l=S.L.cosver;l!=null&&l!=="cosver"&&(a.client.osVersion=l);l=S.L.cplatform;l!=null&&l!=="cplatform"&&l!==""&&(a.client.platform=l);l=S.L.cmodel;l!=null&&l!=="cmodel"&&(a.client.deviceModel=l);l=S.L.cplayer;l!=null&&l!=="cplayer"&&(a.client.playerType=l);l=S.L.cbrand;l!=null&&l!=="cbrand"&&(a.client.deviceMake=l);a.user||(a.user={});a.user.lockedSafetyMode=!1;g.iT(S)&& fkM(a,n,p.player.getPlayerState(1));if(p=S.livingRoomPoTokenId)a.client.tvAppInfo=Object.assign({},a.client.tvAppInfo,{livingRoomPoTokenId:p})}; JHv=function(p,a){if(!isNaN(p.va)){var l=Date.now()-p.va;l<1E4&&p.jl("bfaswtch",{ep:l,sk:a!==void 0?"1":"0",sr:a||""})}}; g.aI=function(p,a,l,y,S,n){g.bh.call(this,p);this.videoId=l;this.DX=S;this.eventId=n;this.G={};this.L=null;p=y||g.yn(a).hl||"";p=p.split("_").join("-");this.j=VX(a,{hl:p})}; fXh=function(p){if(document.body&&document.documentElement){var a=document.body.scrollTop+document.documentElement.scrollTop;p.L=p.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);p.S=p.clientY+a}}; xaZ=function(p,a,l,y,S,n,V,z){p=fhE(p,l,n,V,y,function(d){var G=d.slotId;d=z(d);G=xc(a.S.get(),"LAYOUT_TYPE_FORECASTING",G);var B={layoutId:G,layoutType:"LAYOUT_TYPE_FORECASTING",iT:"core"},c=new Map,r=S.impressionUrls;r&&c.set("impression",r);return{layoutId:G,layoutType:"LAYOUT_TYPE_FORECASTING",Xh:c,layoutExitNormalTriggers:[new Ce(a.L,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],iT:"core",clientMetadata:new Lc([new iZF(S), new ei(l)]),nx:d(B)}}); return p instanceof W?p:[p]}; VfZ=function(p,a){var l,y,S;return g.R(function(n){if(n.L==1)return l={context:g.J3Z(p.C()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:p.videoId,cpn:p.clientPlaybackNonce}}]},y=g.ax(pIh),g.u(n,g.JV(a,l,y),2);S=n.S;return n.return(S)})}; OQr=function(p){if(!p.Gm())if(p.Y.D("html5_drm_set_server_cert")||W9(p.L)){var a=p.j.setServerCertificate();a?a.then(Ee(function(l){p.Y.ao()&&p.publish("ctmp","ssc",{success:l})}),Ee(function(l){p.publish("ctmp","ssce",{n:l.name, m:l.message})})).then(Ee(function(){agh(p)})):agh(p)}else agh(p)}; SZ=function(){g.D.apply(this,arguments);this.H1c=new Map}; lgq=function(p,a,l){if(a.endpoint==="log_event"){Sh(void 0,a);var y=NL(a,!0),S=LvM(p),n=200;if(S){if(S.enabled===!1&&!g.oO("web_payload_policy_disabled_killswitch"))return;n=OlM(S.tier);if(n===400){TcZ(p,a,l);return}}Td[y]=!0;y={cttAuthInfo:y,isJspb:!0,tier:n};Tg().storePayload(y,Q_(a.payload));XOq(l,!0,y,cD(p))}}; mD=function(p){p=p===void 0?!1:p;var a=Yv(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(p)for(;a&&a.shadowRoot;)a=a.shadowRoot.fullscreenElement;return a?a:null}; $zh=function(p,a){return p.S.some(function(l){return l.info.Rc===a})}; mG=function(){return(g.oO("csi_use_time_origin")||g.oO("csi_use_time_origin_tvhtml5"))&&ML.timeOrigin?Math.floor(ML.timeOrigin):ML.timing.navigationStart}; $HA=function(p,a){return p?a?pVM():Qz():a?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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"}}]}:y4h()}; RtO=function(p){SEM(function(){for(var a=g.t(Object.keys(Dt)),l=a.next();!l.done;l=a.next())H8(p,Dt[l.value])})}; nyM=function(p,a,l,y,S){hI.call(this,p,{X:"svg",T:"ytp-timed-pie-countdown",V:{viewBox:"0 0 20 20"},N:[{X:"circle",T:"ytp-timed-pie-countdown__background",V:{r:"10",cx:"10",cy:"10"}},{X:"circle",T:"ytp-timed-pie-countdown__inner",V:{r:"5",cx:"10",cy:"10"}},{X:"circle",T:"ytp-timed-pie-countdown__outer",V:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",a,l,y,S);this.U=this.d7("ytp-timed-pie-countdown__inner");this.S=Math.ceil(2*Math.PI*5);this.hide()}; g.l1=function(p){g.X.call(this,{X:"div",N:[{X:"div",T:"ytp-bezel-text-wrapper",N:[{X:"div",T:"ytp-bezel-text",yY:"{{title}}"}]},{X:"div",T:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},N:[{X:"div",T:"ytp-bezel-icon",yY:"{{icon}}"}]}]});this.B=p;this.S=new g.l_(this.show,10,this);p=this.B.D("delhi_modern_web_player")?1E3:500;this.L=new g.l_(this.hide,p,this);g.E(this,this.S);g.E(this,this.L);this.hide()}; ZbO=function(p,a){if(a)return a=p.videoData,a=VLM(p,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a),Ci(p,a);if(p.S.length){if(Math.min.apply(null,p.S)>1)return Ci(p,p.L-1);if(p.policy.Z)return Ci(p,p.L+1)}return p.L}; oyO=function(p){p=(p.L.cookie||"").split(";");for(var a=[],l=[],y,S,n=0;n=0);if(!(a<0||a===p.j)){p.j=a;a=243*p.scale;var l=141*p.scale,y=lxo(p.S,p.j,a);o6M(p.bg,y,a,l,!0);p.Xu.start()}}; Bj$=function(p,a,l){return l===void 0||l?g.Tz(p,function(y,S){return g.rW(a,S)}):g.lb(a,function(y,S,n){return p.slice(S>0?n[S-1]+1:0,y+1).reduce(function(V,z){return V+z},0)})}; kXE=function(){var p=document.documentElement;try{if(!ii(LF().top))return"2";var a=[],l=LF(p.ownerDocument);for(p=l;p!=l.top;p=p.parent)if(p.frameElement)a.push(p.frameElement);else break;return a&&a.length!=0?"1":"0"}catch(y){return"2"}}; g.yn=function(p){return p.indexOf("?")!==-1?(p=(p||"").split("#")[0],p=p.split("?",2),vv(p.length>1?p[1]:p[0])):{}}; nov=function(p){return p.map(function(a){return new WT(a.id,"application/x-mpegURL",{Mc:a.Mc})})}; GCh=function(p){return!!p.S&&p.S.Rc!==-1&&p.S.Rc0&&l<2160&&(MD()||y.D("html5_format_hybridization"))&&(w.L.supportsChangeType=+MD(),w.R7= l);l>=2160&&(w.Bs=!0);WoO()&&!y.D("disable_av1_setting")&&(w.L.serveVp9OverAv1IfHigherRes=0,w.vZ=!1);w.al=a;w.nz=g.up||PK()&&!a?!1:!0;w.Z=y.D("html5_format_hybridization");w.yQ=y.D("html5_disable_encrypted_vp9_live_non_2k_4k");w.eb=r;gQ(p)&&(w.O6=p.D("html5_prefer_language_over_codec"));hd()&&p.playerResponse&&p.playerResponse.playerConfig&&p.playerResponse.playerConfig.webPlayerConfig&&p.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(w.j=!0,w.W=!0);p.K&&p.isAd()&&(p.Zv&& (w.Sl=p.Zv),p.iA&&(w.U=p.iA));p.LC()&&(w.w7=g.sW(p.Ws.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));w.Hs=p.isLivePlayback&&p.m7()&&p.Ws.D("html5_drm_live_audio_51");w.Sb=p.Q8;w.Ha=!gQ(p);return p.L1=w}; c4$=function(p){if(!(p.S<0)){var a=g.US(p.provider),l=a-p.j;p.j=a;p.playerState.state===8?p.playTimeSecs+=l:p.playerState.isBuffering()&&!g.h(p.playerState,16)&&(p.rebufferTimeSecs+=l)}}; g.FL=function(){var p=Xt$();if(!p)return{};try{var a=p.get("yt-player-lv");return JSON.parse(a||"{}")}catch(l){return{}}}; HDO=function(p){if(!p)return null;p=fh(p,4);return p===null||p===void 0?null:Pp(p)}; r4h=function(p,a,l){var y=p.KO?Math.max(a,l/p.KO):a,S=p.s6.S.U;S&&(y=a,p.KO&&(y=Math.max(a,l/p.KO*S)));RW(p.s6,a,l,y)}; AP=function(p,a,l){l!==void 0&&NQ(p,a,l?1:0)}; OEv=function(p,a,l,y,S,n){var V=l-y/2;l+=y/2;a+=S;return"M 0 "+S+" L 0 "+(a+" L ")+(V+" "+a+" C ")+(V+n+" "+a+" "+(V+n)+" "+S+" "+V+" "+S+" L 0 ")+(S+" M ")+(l+" "+S+" L ")+(p.G+" "+S+" L ")+(p.G+" "+a+" L ")+(l+" "+a+" C ")+(l-n+" "+a+" "+(l-n)+" "+S+" "+l+" "+S)}; g.b7=function(p,a){this.id=p;this.Mc=a;this.captionTracks=[];this.U=this.j=null;this.xtags="";this.W=!1;this.L=null;this.S="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";p=this.Mc.id.split(".");p.length>1&&(this.W=p[1]==="2")}; bhe=function(p){p.ZI().element.setAttribute("aria-live","polite")}; E$M=function(){var p=g.zv("yt-player-proxima-pref");return p==null?null:p}; MRA=function(p,a){var l,y,S,n;return g.R(function(V){if(V.L==1)return g.$r(V,2),l=X3(a),y={context:g.o5(p),playerRequest:{videoId:p.videoId},disablePlayerResponse:!0},S=g.ax(wIe),g.u(V,g.JV(l,y,S),4);if(V.L!=2)return n=V.S,!n||"error"in n&&n.error||g.cg(p,{raw_reel_item_watch_response:n}),g.L8(V,0);g.L6(V);g.lD(V)})}; ba=function(p,a){p.L[a.info.id]=a;p.U.set($L(g.Bp(a.info,p.ke)),a)}; uz=function(p){return GF(p.j,ik(25,p.G9.VS))}; ZuA=function(p,a){var l;a:if((l=a.L)&&l.videoInfos.length){for(var y=g.t(l.videoInfos),S=y.next();!S.done;S=y.next()){S=S.value;var n=void 0;if((n=S.S)==null?0:n.smooth){l=S.video.qualityOrdinal;break a}}l=l.videoInfos[0].video.qualityOrdinal}else l=0;HUZ()&&!g.g5(p.Y)&&UX(a.L.videoInfos[0])&&(l=Math.min(l,g.T9.large));y=g.sW(p.Y.experiments,"html5_chipset_soft_cap");y>0&&(l=Math.min(l,y));if(y=g.sW(p.Y.experiments,"html5_max_vertical_resolution")){S=4320;for(n=0;ny&&(S=Math.min(S,V.video.qualityOrdinal))}if(S<4320){for(V=n=0;V0&&Math.abs(a-l)>=5&&p.S===4&&pV(p,5,"sk2t")}; ji$=function(p,a){g.D.call(this);var l=this;this.L=null;this.U=a;a=[];for(var y=0;y<=100;y++)a.push(y/100);a={threshold:a,trackVisibility:!0,delay:1E3};(this.S=window.IntersectionObserver?new IntersectionObserver(function(S){S=S[S.length-1];var n=null;typeof S.isVisible==="undefined"?document.visibilityState==="visible"&&S.isIntersecting&&S.intersectionRatio>0?n=S.intersectionRatio:document.visibilityState==="hidden"?n=0:n=null:n=S.isVisible?S.intersectionRatio:0;n!=null&&(n=Math.max(n,0),n=Math.min(n, 1));l.L=n;typeof l.U==="function"&&l.U(l.L)},a):null)&&this.S.observe(p)}; Q7h=function(p){var a=a===void 0?NaN:a;var l=new XIE(p.api);p.j.push(l);g.E(p,l);l.lT(p.Xu);a>=0&&(l.element.style.width=a+"px")}; cQ=function(p,a,l,y,S,n,V,z){g.D.call(this);this.EO=p;this.L=a;this.S=y;this.ac=S;this.j=n;this.U=V;this.BZ=z}; WpF=function(p){for(var a=1;aS&&aS&&l=0)for(var S=y;S<=y+1&&S=n.QL-l&&a<=n.fh+l)return n}}; JG=function(p){p=p.U.Cv();return p>0?p:1}; bbE=function(p){var a,l,y=(a=p.getWatchNextResponse())==null?void 0:(l=a.contents)==null?void 0:l.twoColumnWatchNextResults,S,n,V,z,d;p=(S=p.getWatchNextResponse())==null?void 0:(n=S.playerOverlays)==null?void 0:(V=n.playerOverlayRenderer)==null?void 0:(z=V.endScreen)==null?void 0:(d=z.watchNextEndScreenRenderer)==null?void 0:d.results;if(!p){var G,B;p=y==null?void 0:(G=y.endScreen)==null?void 0:(B=G.endScreen)==null?void 0:B.results}return p}; nNh=function(p,a,l,y,S){var n=p.index?bk(p.logger,function(){return qRv(p.index,glO(a),l,y,S)},"W"):"u"; p.logger.h8(n)}; DMv=function(p,a,l){return a.ib(l).then(function(){return o7(new QYM(a,a.U))},function(y){y instanceof Error&&g.Mf(y); var S=FP('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),n=x_('audio/mp4; codecs="mp4a.40.2"'),V=S||n,z=a.isLivePlayback&&!g.coE(p.W,!0);y="fmt.noneavailable";z?y="html5.unsupportedlive":V||(y="html5.missingapi");V=z||!V?2:1;S={buildRej:"1",a:a.o8(),d:!!a.O6,drm:a.m7(),f18:a.M2.indexOf("itag=18")>=0,c18:S};a.L&&(a.m7()?(S.f142=!!a.L.L["142"],S.f149=!!a.L.L["149"],S.f279=!!a.L.L["279"]):(S.f133=!!a.L.L["133"],S.f140=!!a.L.L["140"],S.f242=!!a.L.L["242"]),S.cAAC=n,S.cAVC=x_('video/mp4; codecs="avc1.42001E"'), S.cVP9=x_('video/webm; codecs="vp9"'));a.W&&(S.drmsys=a.W.keySystem,n=0,a.W.L&&(n=Object.keys(a.W.L).length),S.drmst=n);return new g.mm(y,S,V)})}; Ige=function(p){var a,l,y=(a=p.L)==null?void 0:(l=a.bannerData)==null?void 0:l.itemData;return p.B.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(y==null||!y.priceReplacementText)&&(y==null?0:y.promotionText)?y==null?void 0:y.promotionText.content:null}; y6=function(p){p=new DataView(p.buffer,p.byteOffset,p.byteLength);return(p=g.KI(p,0,1836476516))?g.p6(p):NaN}; Dz=function(p,a){var l=p.D("web_fix_annotations")?"Superposiciones con anotaciones":"Anotaciones";g7.call(this,l,g.Ya.A1);this.B=p;this.U6=a;this.L=!1;p.D("web_settings_menu_icons")&&(a=p.D("delhi_modern_web_player_icons")?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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"}}]}:{X:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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(a));this.J(p,"videodatachange",this.pz);this.J(p,"onApiChange",this.pz);this.subscribe("select",this.onSelect,this);this.pz()}; zV=function(p,a){this.triggeringSlotId=a;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=p(this.triggerType)}; FJ=function(p,a,l){this.triggeringLayoutId=a;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=l||p(this.triggerType)}; N1=function(p){QH.call(this,p);var a=this;this.G=this.L=this.S=0;this.Z=null;this.K=this.j=0;this.isEnded=!1;this.Sl=null;var l=new g.hm(p);g.E(this,l);this.Bs=g.sW(this.api.C().experiments,"web_player_default_peeking_px");this.t9=this.api.D("delhi_modern_player_enable_pause_peeking");this.Hs=g.sW(this.api.C().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.r7=this.api.D("web_player_imax_theater_mode");this.U=this.api.D("web_player_enable_fullscreen_grid_components");this.QY=this.api.D("web_player_enable_more_videos_button"); g.uD(this.api.getRootNode(),"ytp-grid-scrollable");l.J(p,"fullscreentoggled",function(){Wl(a)}); l.J(p,"videodatachange",function(){if(a.U){var y=a.api.getVideoData(1);a.videoData!==y&&a.S===2&&(g.b6(a.api.getRootNode(),"ytp-grid-scrolling"),Md(a,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));a.videoData=y}},this); l.J(p,"sizestylechange",function(){a.U&&Wl(a)}); Sa(this.api,"setFullscreenQuickActions",function(y){a.setFullscreenQuickActions(y)}); Sa(this.api,"setPlayerOverlayVideoDetailsRenderer",function(y){a.setPlayerOverlayVideoDetailsRenderer(y)}); this.U&&RFM(this,l,p)}; gzM=function(p){var a=[],l=[].concat(g.u0(p.T4));p.wq.forEach(function(V){a.push(Object.assign({},V))}); for(var y=p.L,S=g.t(p.K.Ti()),n=S.next();!n.done;n=S.next())y=uyf(p,a,l,n.value,y);a.forEach(function(V){V.startTimeMs&&(V.startTimeMs+=p.timestampOffset*1E3)}); return{wq:a,T4:l}}; Un=function(p,a,l,y){var S=S===void 0?!1:S;l=iC(y,l);AM(p,a,l,{capture:S})}; q2r=function(p,a){p.publish("settingChange",p.setting+"Override",!a);p.U6.fC()}; tE=function(p){p.Xu||(p.Xu=(0,g.Ek)(),g.Pf("mb_s",p.Xu,p.L))}; rR=function(p,a){for(var l=0;lp.W.cK+100)&&p.W){var S=p.W;l=S.isAd;y=y*1E3-S.cK;p.Kd=a*1E3-S.EoO-y-S.x2O;S=(0,g.Ek)()-y;a=p.Kd;y=p.provider.videoData;var n=y.isAd();if(l||n){n=(l?"ad":"video")+"_to_"+(n?"ad":"video");var V={};y.G&&(V.cttAuthInfo={token:y.G,videoId:y.videoId});V.startTime= S-a;iH(n,V);g.Bs({targetVideoId:y.videoId,targetCpn:y.clientPlaybackNonce},n);kC("pbs",S,n)}else S=p.provider.Lz.f0(),S.G!==y.clientPlaybackNonce?(S.W=y.clientPlaybackNonce,S.S=a):y.LC()||g.Mf(new g.kc("CSI timing logged before gllat",{cpn:y.clientPlaybackNonce}));p.jl("gllat",{l:p.Kd.toFixed(),prev_ad:+l});delete p.W}}; Px=function(){vx.apply(this,arguments)}; Rk=function(p,a){g.X.call(this,{X:"div",T:"ytp-promotooltip-wrapper",N:[{X:"div",T:"ytp-promotooltip-container",N:[{X:"div",T:"ytp-promotooltip-content",N:[{X:"div",T:"ytp-promotooltip-title",yY:"{{title}}"},{X:"div",T:"ytp-promotooltip-details",yY:"{{details}}"}]},{X:"div",T:"ytp-promotooltip-buttons",N:[{X:"div",T:"ytp-promotooltip-dismiss-button",yY:"{{dismissButtonText}}",V:{tabindex:"0"}},{X:"div",T:"ytp-promotooltip-accept-button",yY:"{{acceptButtonText}}",V:{tabindex:"0","aria-haspopup":"true"}}]}]}, {X:"div",T:"ytp-promotooltip-pointer"}]});var l=this;this.tooltipRenderer=p;this.B=a;this.L=this.sourceElement=null;this.title=this.d7("ytp-promotooltip-title");this.details=this.d7("ytp-promotooltip-details");this.acceptButton=this.d7("ytp-promotooltip-accept-button");this.dismissButton=this.d7("ytp-promotooltip-dismiss-button");this.S=this.j=!1;this.U=!0;this.Z=this.W=this.K=this.G=!1;this.hg={IE:function(y){l.IE(y)}}; this.Kx(!1);p=this.tooltipRenderer.trackingParams||null;if(this.S=!!p)this.B.createServerVe(this.element,this,!0),this.B.setTrackingParams(this.element,p);this.J(a,"onShowControls",this.LB);this.J(a,"onHideControls",this.YU);this.J(a,"resize",this.VQ);this.J(this.acceptButton,"click",this.N7T);this.J(this.dismissButton,"click",this.Mbl);this.J(document,"click",this.Sm)}; g.k$=function(p,a){return fOh(p,a)}; B6O=function(p,a){p.B.setOption("captions","sampleSubtitles",a)}; yuZ=function(p,a,l,y,S,n){function V(r){return kU(p.UQ.get(),r)} var z=[];a=g.t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var G=d.renderer,B=G.sandwichedLinearAdRenderer,c=G.linearAdSequenceRenderer;B&&vYo(B)?(hF("Found AdNotify with SandwichedLinearAdRenderer"),c=g.T(B.adVideoStart,WD),B=g.T(B.linearAd,iQ),dO(n,G,d.config.adPlacementConfig.kind),G=void 0,c=wzv((G=c)==null?void 0:G.layout.layoutId,p.S.get(),p.L.get(),d.config.adPlacementConfig,d.adSlotLoggingData,B,l,y,V,S,p.loadPolicy,p.EO.get(),p.UQ.get()),c instanceof W?hF(c):z.push.apply(z,g.u0(c))): c&&(!c.adLayoutMetadata&&Eyh(c)||c.adLayoutMetadata&&mIq(c))&&(hF("Found AdNotify with LinearAdSequenceRenderer"),dO(n,G,d.config.adPlacementConfig.kind),G=void 0,B=f$v((G=g.T(c.adStart,WD))==null?void 0:G.layout.layoutId,p.S.get(),p.L.get(),d.config.adPlacementConfig,d.adSlotLoggingData,c.linearAds,wk(c.adLayoutMetadata)?c.adLayoutMetadata:void 0,l,y,V,S,p.loadPolicy,p.EO.get()),B instanceof W?hF(B):z.push.apply(z,g.u0(B)))}return z}; tLF=function(p){p.timelyActions&&(p.j=p.timelyActions.reduce(function(a,l){if(l.cueRangeId===void 0)return a;a[l.cueRangeId]=0;return a},{}))}; KL=function(p,a){fl.call(this,p,a);this.Hs=!0;this.w7=!1;this.r7=this.nz=0;this.OO=NaN}; oR=function(p,a,l){this.audio=p;this.video=a;this.reason=l}; Wvv=function(p,a,l){function y(){l(p.error);S()} function S(){try{p.removeEventListener("success",n),p.removeEventListener("error",y)}catch(V){}} function n(){a(p.result);S()} p.addEventListener("success",n);p.addEventListener("error",y)}; Nor=function(p,a,l,y,S,n){this.sO=p;this.uT=a;this.uM=l;this.EO=y;this.dG=S;this.ac=n}; RvE=function(p,a){Ym(p,1,a.hl);Ym(p,12,a.deviceMake);Ym(p,13,a.deviceModel);NQ(p,16,a.clientName);Ym(p,17,a.clientVersion);Ym(p,18,a.osName);Ym(p,19,a.osVersion)}; t9O=function(p,a,l,y,S){a=new g.CX(g.vy({},[],!1,!!S),a,l);S&&a.updateValue("secondaryIcon",YeZ(S));a.setIcon(YeZ(y));g.E(p,a);p.Xz.Lt(a,!0);return a}; Cg=function(p,a){g.X.call(this,{X:"button",A9:["ytp-button","ytp-settings-button"],V:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":vs(),title:p.D("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},N:[p.D("delhi_modern_web_player_icons")?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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.JLM()]});this.B=p;this.U6=a;this.S=!0;this.listen("click",this.U);this.J(p,"onPlaybackQualityChange",this.updateBadge);this.J(p,"videodatachange",this.updateBadge);this.J(p,"webglsettingschanged",this.updateBadge);this.J(p,"appresize",this.L);OC(p,this.element,this);this.B.createClientVe(this.element,this,28663);this.updateBadge();this.L(p.Fu().getPlayerSize())}; e1=function(p,a,l,y,S){S=S===void 0?new Set:S;if(a.h9==="")return"unkn";if((a.itag==="304"||a.itag==="266")&&p.Xu)return"blk2khfr";if(p.G&&a.video&&a.video.qualityOrdinal>p.G)return"max"+p.G;if(p.Ps&&a.h9==="h"&&a.video&&a.video.qualityOrdinal>1080)return"blkhigh264";if(a.h9==="(h"&&!l.K)return"enchdr";if((y===void 0?0:y)&&x0(a)&&!p.Hs)return"blk51live";if((a.h9==="MAC3"||a.h9==="mac3")&&!p.j)return"blkac3";if((a.h9==="MEAC3"||a.h9==="meac3")&&!p.W)return"blkeac3";if(a.h9==="M"||a.h9==="m")return"blkaac51"; if((a.h9==="so"||a.h9==="sa")&&!p.UO)return"blkamb";if(!p.va&&qSM(a)&&(!l.W||a.h9!=="1e"))return"cbc";if(!l.W&&qSM(a)&&a.h9==="1e")return"cbcav1";if((a.h9==="i"||a.h9==="I")&&!p.Fh)return"blkiamf";var n;if(p.Ha&&((n=a.audio)==null?void 0:n.S)===!0)return"blkvbcabr";var V,z;if(p.Kz&&(a.h9==="1"||a.h9==="1h"||l.W&&a.h9==="1e")&&((V=a.video)==null?0:V.qualityOrdinal)&&((z=a.video)==null?void 0:z.qualityOrdinal)>p.Kz)return"av1cap";y=l.j.get(a.h9);if(!p.eb&&y&&y.wm>0)return S.add(a.h9),"byerr";var d; if((d=a.video)==null?0:d.fps>32){if(!l.Bs&&!H8(l,Dt.FRAMERATE))return"capHfr";if(p.VY&&a.video.qualityOrdinal>=4320)return"blk8khfr";if(UX(a)&&p.L1&&a.Hy&&a.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(p.Lx&&a.Lx>p.Lx)return"ratecap";if(p.w7>0&&a.HX()&&a.video.height>p.w7)return"mvhcap";p=CK$(l,a);return p!==!0?p:!0}; RO=function(p){if(p.B.C().U)return!1;if(p=p.B.getVideoData(1).getPlayerResponse()){var a=p.adPlacements;if(a)for(var l=0;l0&&(p.U=null,p.L.set(Hb(p,a),g.hf(l)),p.S=p.S+l.length)}; P7=function(p){var a=p.videoTrack.G!==-1,l=p.audioTrack.G!==-1;if(!a||!l)if(a=!a&&d$(p.videoTrack),l=!l&&d$(p.audioTrack),a||l){l=a?p.videoTrack:p.audioTrack;a=a?p.audioTrack:p.videoTrack;l.G=d$(l).info.Rc;if(p.policy.W){var y;a.G=((y=d$(a))==null?void 0:y.info.Rc)||a.G}if(a.G!==-1){var S=Math.max(a.L.index.getStartTime(a.G),l.L.index.getStartTime(l.G));Pz(p.MO)&&Math.abs(S-Pz(p.MO))>432E3&&qa$(p.MO);p.S&&(S=p.S,p.S=0);g.VU(function(){p.policy.W||pf(p,S,102)}); p.loader.jl("initManifestlessSync",{st:S,ost:S+p.loader.Jg(),a:p.audioTrack.G,v:p.videoTrack.G});p.U&&(p.U.resolve(S+.1),p.U=null);p.policy.W&&pf(p,S,102)}}}; lC=function(p,a){return p.j?p.j:p.j=new Promise(function(l){var y,S,n,V;return g.R(function(z){switch(z.L){case 1:return y=window.AbortController?new window.AbortController:void 0,n=(S=y)==null?void 0:S.signal,V=!1,g.$r(z,2,3),y&&(p.S=p.P1.xn(function(){y.abort()},a||2E4)),g.u(z,fetch("/generate_204",{method:"HEAD", signal:n}),5);case 5:V=!0;case 3:g.TK(z);p.j=void 0;p.S&&(p.P1.WW(p.S),p.S=0);V!==p.L&&(p.L=V,p.L?p.dispatchEvent("networkstatus-online"):p.dispatchEvent("networkstatus-offline"));l(V);g.$F(z,0);break;case 2:g.L6(z),V=!1,z.g7(3)}})})}; pNA=function(p){p=g.T(p==null?void 0:p.additionalPlayerOverlay,jur);if(!p)return!1;var a=p.slidingMessages;return p.title&&a&&a.length!==0?!0:!1}; WkA=function(p){p.yA=!1;var a=p.uZ,l=a!==void 0?a.Ky:p.producers;if(l!==void 0){if(HA(p)){do l=b8q(l);while(l!==void 0)}a!==void 0?a.Ky=void 0:p.producers=void 0}}; ogh=function(p,a,l){var y=a.lS;a.lS=l;Wq(p,a)&&(l=p.app.qO(),y.Kq===p.U&&ht(p),l.removeCueRange(y.Kq),l.addCueRange(a.lS.Kq))}; Hbr=function(p){return p.L.cmodel==="CHROMECAST ULTRA/STEAK"||p.L.cmodel==="CHROMECAST/STEAK"}; e6f=function(){var p;return((p=navigator.connection)==null?void 0:p.type)||""}; g.XK=function(p){return p.mO.get("webgl")}; bv=function(p,a,l,y){this.EO=p;this.uT=a;this.Z1=l;this.dG=y}; o3q=function(p,a){if(p.D("html5_disable_ustreamer_constraint_for_sabr")&&gQ(a.videoData))return Fz;var l=p.Lz.V1();p.D("html5_use_video_quality_cap_for_ustreamer_constraint")&&l&&l.NZ>0&&Xf(a.videoData.fl)&&(p=l.NZ,a.videoData.fl=new NE(0,p,!1,"u"));return a.videoData.fl}; fE=function(p,a){g.qu.call(this);this.api=p;this.durationMs=a;this.L=null;this.handler=new FM(this);g.E(this,this.handler);this.S=DVf;this.handler.J(this.api,"presentingplayerstatechange",this.vM);this.L=this.handler.J(this.api,"onAdPlaybackProgress",this.rq)}; DIe=function(p,a){a.bounds=p.getBoundingClientRect();for(var l=g.t(["display","opacity","visibility","zIndex"]),y=l.next();!y.done;y=l.next())y=y.value,a[y]=Pk(p,y);a.hidden=!!p.hidden}; paM=function(p){p.L===-1&&(p.L=p.data.reduce(function(a,l,y){return a+(l?Math.pow(2,y):0)},0)); return p.L}; BZO=function(p){this.Ws=p;this.EC=this.SS=this.t9=this.W=this.j=this.OO=this.r7=this.UO=!1;this.K=this.G=0;this.Ps=!1;this.Xu=!0;this.VY=!1;this.R7=0;this.al=this.Bs=!1;this.vZ=!0;this.nz=this.Hs=!1;this.L={};this.eb=this.Ha=this.O6=this.disableAv1=this.Sb=this.bf=this.Yv=this.yQ=this.S=this.Z=!1;this.w7=0;this.Ae=this.Ws.D("html5_disable_aac_preference");this.qc=Infinity;this.QY=0;this.oo=this.Ws.ao();this.va=this.Ws.experiments.Cz("html5_enable_vp9_fairplay");this.Sa=this.Ws.D("html5_force_av1_for_testing"); this.Kz=g.sW(this.Ws.experiments,"html5_av1_ordinal_cap");this.L1=this.Ws.D("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.o4=this.Ws.D("html5_account_onesie_format_selection_during_format_filter");this.Lx=g.sW(this.Ws.experiments,"html5_max_byterate");this.Fh=this.Ws.D("html5_enable_iamf_audio");this.Ct=this.Ws.experiments.Cz("html5_allow_capability_merge");this.Kt=this.Ws.D("html5_enable_encrypted_av1")}; IbA=function(p,a){this.url=p;this.L=!!a;this.depth=null}; CpM=function(p,a){TX(a,"cms",function(l){p.policy.U&&p.jl("pathprobe",l)},function(l){p.Lz.handleError(l)})}; dC=function(p,a){p.HO&&CC(p);p.HO=new g.nF(a*1E3,0x7ffffffffffff);p.HO.namespace="endcr";p.addCueRange(p.HO)}; ib$=function(p,a){var l;if(((l=p.lM)==null?void 0:l.type)==="repeatChapter"||(a==null?void 0:a.type)==="repeatChapter")a&&(a=p.L[jw(p.L,a.startTimeMs)],g.JB(a.L,"ytp-repeating-chapter",!1)),p.lM&&(a=p.L[jw(p.L,p.lM.startTimeMs)],g.JB(a.L,"ytp-repeating-chapter",!0)),p.L.forEach(function(y){g.JB(y.L,"ytp-exp-chapter-hover-container",!p.lM)})}; WA=function(p){try{return B1(p)==="open"}catch(a){return!1}}; uxr=function(p){return window.PressureObserver&&new window.PressureObserver(p)}; knv=function(p){var a=p.webPlayerContextConfig.trustedJsUrl;return a?dn(a).toString():p.webPlayerContextConfig.jsUrl}; AZ=function(p){this.Wa=p;this.L=new NN}; TZo=function(p,a,l,y){p.U=y;p.api.nJ(p.L,l,a)}; sur=function(p){for(var a=p.suggestionData.length,l=0;l0&&(S.L=Math.min(S.L+V,10),S.S=n);S.L>0?(S.L--,S=!0):S=!1;if(S)typeof y==="function"&&(y=y()),console.log("plyr."+a,y);else{var z;y=((z=lrh.get(a))!=null?z:0)+1;lrh.set(a,y);y%100===1&&console.warn("plyr","plyr."+a+" is chatty, dropping logs.")}}}; g.vA=function(p){return p.containerType===1}; T0$=function(p,a){Ym(p,1,a.token)}; CZO=function(p){var a;return!((a=p.Ws.getWebPlayerContextConfig())==null||!a.enableProximaLowLatency)}; O1=function(p){if(p.app.getAppState()===1)return!1;if(p.app.getAppState()===6)return!0;var a=p.app.qO();if(!a||a.aQ())return!1;p=p.app.Tm.getPlayerStateObject();a=!g.h(p,2)||a&&a.getVideoData().K;var l=g.h(p,1024);return p&&a&&!l&&!p.isCued()}; Om=function(p,a){if(p){p=p.split("&");for(var l=0;l=0){var n=p[l].substring(0,y);S=p[l].substring(y+1)}else n=p[l];a(n,S?ES(S):"")}}}; yyF=function(p,a){var l=[];p=p.L.L.get(a);if(!p)return[];p=g.t(p);for(a=p.next();!a.done;a=p.next())a=a.value,a.cpn&&l.push(a.cpn);return l}; SuF=function(p,a,l,y){for(var S=0;S0&&(p=a.split(",").filter(function(S){return VWF.includes(S)}).join(",")),l.qoe_cat=p; xIE(l)}else for(p=g.t(ZKE),y=p.next();!y.done;y=p.next())y=y.value,a.hasOwnProperty(y)&&(l[y]=a[y]);return l}; znA=function(p){var a=p.L;p.type===3&&p.w7.stop();p.api.removeEventListener("appresize",p.UO);p.K||(p.env.D("player_tooltip_data_title_killswitch")?a.setAttribute("title",p.U):a.setAttribute("data-tooltip-title",p.U));p.U="";p.L=null;p.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});p.wrapper.style.width=""}; ah=function(p){p.L||(p.L=new Map,p.S=0,p.U&&Om(p.U,function(a,l){p.add(ES(a),l)}))}; dvf=function(p,a,l){var y=g.p2(a,l),S=y.Gy("default.jpg");g.X.call(this,{X:"a",A9:["ytp-video-menu-item","ytp-button"],V:{role:"menuitemradio","aria-label":y.title,href:p.C().getVideoUrl(y.videoId,a.listId?a.listId.toString():null)},N:[{X:"div",T:"ytp-video-menu-item-index",yY:String(l+1)},{X:"div",T:"ytp-video-menu-item-now-playing",yY:"\u25b6"},{X:"div",T:"ytp-video-menu-item-thumbnail",V:{style:S?"background-image: url("+S+");":void 0}},{X:"div",T:"ytp-video-menu-item-title",yY:y.title},{X:"div", T:"ytp-video-menu-item-author",yY:y.author}]});this.api=p;this.index=l;this.listen("click",this.onClick)}; Qe=function(p){return!(!p.L||!p.L.isManifestless)}; vG=function(p){p.S=NaN;p.G=NaN;p.nz=NaN;p.j=null;p.w7=null;p.W=null;p.QY=!1;p.Xu=!1;p.r7=0;p.t9.stop();p.OO.stop()}; y2=function(p){this.value=p}; E1o=function(p){Hk(p)&&!p.yI&&(p.L=!0,p.Ry&&Math.random()<=p.mz&&p.xg.fR(p.PX),p.Od(),p.lN.Dd()&&p.XH(),p.lN.listen(p.KD,p.XH.bind(p)),p.lN.listen(p.xq,p.A6.bind(p)))}; p_v=function(p){return Q0(p.slot,p.EO.get())?new J2(p):new bS(p)}; rx=function(p,a){if(p.Al()===p.Fb.length-1)p.aY++,PO(p.Z1,p.layout,"normal"),p.lC()||h8(p.lr.get());else a:{if(p.Al()===-1&&(p.callback.Pa(p.slot,p.layout),a>0)){hF("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",p.slot,p.layout,{indexToPlay:a,layoutId:p.layout.layoutId});break a}p.aY=a;a=p.Vr();if(p.Al()>0&&!p.lC()){var l=p.lr.get();l.S=!1;var y={};l.L&&l.videoId&&(y.cttAuthInfo={token:l.L,videoId:l.videoId});iH("ad_to_ad",y)}l=g.T(a.J9().renderingContent,lp);if(l==null?0: l.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var S;l=!((S=p.wc.get().H1c.get(l.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&S)}else l=!1;l?rx(p,p.Al()+1):p.DA(a)}}; h0E=function(p,a,l,y){l=l===void 0?{}:l;var S={};g.Qt(S,{opt_adElement:void 0,opt_fullscreen:void 0},l);var n=p.d5(a,l);l=n?n.xH:p.h6();if(S.opt_bounds)return l.L(mI("ol",y));if(y!==void 0)if(lNF(y)!==void 0)if(Vy$)p=mI("ue",y);else if(ZYr(p),$m=="i")p=mI("i",y),p["if"]=0;else if(a=p.d5(a,S)){b:{$m=="i"&&(a.Fd=!0);n=S.opt_fullscreen;n!==void 0&&Ov(a,!!n);var V;if(n=!TJ().S)(n=Bk(g.yI(),"CrKey")&&!(Bk(g.yI(),"CrKey")&&Bk(g.yI(),"SmartSpeaker"))||Bk(g.yI(),"PlayStation")||Bk(g.yI(),"Roku")||jPr()|| Bk(g.yI(),"Xbox"))||(n=g.yI(),n=Bk(n,"AppleTV")||Bk(n,"Apple TV")||Bk(n,"CFNetwork")||Bk(n,"tvOS")),n||(n=g.yI(),n=Bk(n,"sdk_google_atv_x86")||Bk(n,"Android TV")),n=!n;n&&(CO(),n=FE(iS)===0);if(V=n){switch(a.FW()){case 1:crO(a,"pv");break;case 2:p.gF(a)}Pd("pv")}n=y.toLowerCase();if(V=!V)V=Zc(LO().sC,"ssmol")&&n==="loaded"?!1:g.rW(G8O,n);if(V&&a.po==0){$m!="i"&&(wD.done=!1);V=S!==void 0?S.opt_nativeTime:void 0;oq=V=typeof V==="number"?V:nu();a.dD=!0;var z=u4();a.po=1;a.v9={};a.v9.start=!1;a.v9.firstquartile= !1;a.v9.midpoint=!1;a.v9.thirdquartile=!1;a.v9.complete=!1;a.v9.resume=!1;a.v9.pause=!1;a.v9.skip=!1;a.v9.mute=!1;a.v9.unmute=!1;a.v9.viewable_impression=!1;a.v9.measurable_impression=!1;a.v9.fully_viewable_audible_half_duration_impression=!1;a.v9.fullscreen=!1;a.v9.exitfullscreen=!1;a.yW=0;z||(a.rd().Z=V);Ab(wD,[a],!z)}(V=a.Zq[n])&&CV(a.xo,V);Zc(LO().sC,"fmd")||g.rW(BIo,n)&&a.PO&&a.PO.S(a,null);switch(a.FW()){case 1:var d=lT(n)?p.K.custom_metric_viewable:p.K[n];break;case 2:d=p.Z[n]}if(d&&(y=d.call(p, a,S,y),Zc(LO().sC,"fmd")&&g.rW(BIo,n)&&a.PO&&a.PO.S(a,null),y!==void 0)){S=mI(void 0,n);g.Qt(S,y);y=S;break b}y=void 0}a.po==3&&p.D2(a);p=y}else p=mI("nf",y);else p=void 0;else Vy$?p=mI("ue"):n?(p=mI(),g.Qt(p,Ovo(n,!0,!1,!1))):p=mI("nf");return typeof p==="string"?l.L():l.L(p)}; iHZ=function(p){if(!p.L){var a=g.CP(function(y){var S=(0,g.Ek)();y&&S<=631152E6&&(p.Lz.jl("ytnerror",{issue:28799967,value:""+S}),S=(new Date).getTime()+2);return S},p.Y.D("html5_validate_yt_now")),l=a(); p.L=function(){return Math.round(a()-l)/1E3}; p.Lz.tR()}return p.L}; s7=function(p,a){if(a>268435455){Qi(p,4);for(var l=a&1073741823,y=0;y<4;y++)p.view.setUint8(p.pos,l&127|128),l>>=7,p.pos+=1;a=Math.floor(a/268435456)}for(Qi(p,4);a>127;)p.view.setUint8(p.pos,a&127|128),a>>=7,p.pos+=1;p.view.setUint8(p.pos,a);p.pos+=1}; joZ=function(p){p=g.t(p);for(var a=p.next();!a.done;a=p.next())if(a=a.value,a.url&&(a=a.url.split("expire/"),!(a.length<=1)))return+a[1].split("/")[0];return NaN}; l9f=function(p,a,l){return new Promise(function(y,S){function n(){r||(r=new $pF(V.result,{closed:c}));return r} var V=a!==void 0?self.indexedDB.open(p,a):self.indexedDB.open(p);var z=l.blocked,d=l.blocking,G=l.U3z,B=l.upgrade,c=l.closed,r;V.addEventListener("upgradeneeded",function(w){try{if(w.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(V.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&w.dataLoss!=="none"&&yX("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:eF(p)});var P=n(),F=new bd(V.transaction); B&&B(P,function(v){return w.oldVersion=v},F); F.done.catch(function(v){S(v)})}catch(v){S(v)}}); V.addEventListener("success",function(){var w=V.result;d&&w.addEventListener("versionchange",function(){d(n())}); w.addEventListener("close",function(){yX("IDB_UNEXPECTEDLY_CLOSED",{dbName:eF(p),dbVersion:w.version});G&&G()}); y(n())}); V.addEventListener("error",function(){S(V.error)}); z&&V.addEventListener("blocked",function(){z()})})}; cyE=function(p,a,l,y,S){wt.call(this,"ads-engagement-panel-layout",p,a,l,y,S)}; g.zZ=function(p,a,l,y){p=y||p;return(a=a&&a!="*"?String(a).toUpperCase():"")||l?p.querySelectorAll(a+(l?"."+l:"")):p.getElementsByTagName("*")}; sZF=function(p,a,l){var y=[],S=[];if((Array.isArray(l)?2:1)==1)return S=[a,p],g.Bf(y,function(z){S.push(z)}),rAq(S.join(" ")); var n=[],V=[];g.Bf(l,function(z){V.push(z.key);n.push(z.value)}); l=Math.floor((new Date).getTime()/1E3);S=n.length==0?[l,a,p]:[n.join(":"),l,a,p];g.Bf(y,function(z){S.push(z)}); p=rAq(S.join(" "));p=[l,p];V.length==0||p.push(V.join(""));return p.join("_")}; Ys=function(p){this.NO=Dm(p)}; ryr=function(p){if(p.isExternallyHostedPodcast)return YH();var a=BV(p.M2,p.RY);if(p.hlsvp){var l=lEq(p.hlsvp,p.clientPlaybackNonce,p.Ha);a.push(l)}return v_e(p.Ws,p.isAd(),a,KvF(p)).then(function(y){WS(p,y)})}; JAM=function(p){var a,l=(a=PE(p.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:a.current;if(!l)return null;a=PE(p.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var y=p.layoutId,S=PE(p.clientMetadata,"metadata_type_content_cpn"),n=PE(p.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),V=PE(p.clientMetadata,"metadata_type_player_underlay_renderer"),z=PE(p.clientMetadata,"metadata_type_ad_placement_config"),d=PE(p.clientMetadata,"metadata_type_video_length_seconds"); var G=Q5(p.clientMetadata,"metadata_type_layout_enter_ms")&&Q5(p.clientMetadata,"metadata_type_layout_exit_ms")?(PE(p.clientMetadata,"metadata_type_layout_exit_ms")-PE(p.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{VR:y,contentCpn:S,F8:l,Yd:a,instreamAdPlayerOverlayRenderer:n,instreamAdPlayerUnderlayRenderer:V,adPlacementConfig:z,videoLengthSeconds:d,yk:G,inPlayerLayoutId:PE(p.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:PE(p.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Th=function(p){p.loader&&(p.loader.dispose(),p.loader=null,tM(p.GR,null));p.M3()?qYr(p):p.TF()}; g.vy=function(p,a,l,y){p=p===void 0?{}:p;a=a===void 0?[]:a;l=l===void 0?!1:l;y=y===void 0?!1:y;a.push("ytp-menuitem");var S=p;"role"in S||(S.role="menuitem");l||(S=p,"tabindex"in S||(S.tabindex="0"));p={X:l?"a":"div",A9:a,V:p,N:[{X:"div",T:"ytp-menuitem-icon",yY:"{{icon}}"},{X:"div",T:"ytp-menuitem-label",yY:"{{label}}"},{X:"div",T:"ytp-menuitem-content",yY:"{{content}}"}]};y&&p.N.push({X:"div",T:"ytp-menuitem-secondary-icon",yY:"{{secondaryIcon}}"});return p}; g7=function(p,a){g.CX.call(this,g.vy({role:"menuitemcheckbox","aria-checked":"false"}),a,p,{X:"div",T:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; YP=function(p){return!!p.videoData.startSeconds&&isFinite(p.videoData.startSeconds)&&p.videoData.startSeconds>1E9}; w$q=function(p){var a=p.api.getVideoData().interstitials,l=[];a=g.t(a);for(var y=a.next();!y.done;y=a.next()){y=y.value;var S=l,n=S.push,V=p,z=y.playerVars,d=y.N5,G=y.time,B="yto-"+V.Z++;G=new g.nF(G,G,{id:B,priority:7,namespace:"yto"});V.K[B]={playerVars:z,playerType:d};n.call(S,G);S=p.api.getVideoData(1);S=Object.assign({oauth_token:S.oauthToken},y.playerVars);p.api.preloadVideoByPlayerVars(S,y.N5)}p.api.Kh(l,1)}; g.Nk=function(p,a,l,y){var S,n,V,z,d,G,B,c,r,w,P,F;return g.R(function(v){switch(v.L){case 1:var I={mode:"readonly",Gn:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof l==="string"?I.mode=l:Object.assign(I,l);S=I;p.transactionCount++;n=S.Gn?3:1;V=0;case 2:if(z){v.g7(4);break}V++;d=Math.round((0,g.Ek)());g.$r(v,5);G=p.L.transaction(a,S.mode);I=!!S.commit;var b=new bd(G);I=yHv(b,y,I);return g.u(v,I,7);case 7:return B=v.S,c=Math.round((0,g.Ek)()),Kio(p,d,c,V,void 0,a.join(),S),v.return(B);case 5:r=g.L6(v); w=Math.round((0,g.Ek)());P=BL(r,p.L.name,a.join(),p.L.version);if((F=P instanceof g.ka&&!P.L)||V>=n)Kio(p,d,w,V,P,a.join(),S),z=P;v.g7(2);break;case 4:return v.return(Promise.reject(z))}})}; Nkr=function(p){var a=p.layoutId,l=p.q8,y=p.Y3;p.z2&&(p={},WL(y,"sleo",(p.xc=a,p.is=l,p.ctp=Mu(a),p)),Afr(y))}; $ve=function(p,a){if(!p.S.length)return!1;var l=p.L;p.L=ZbO(p,a===void 0?!1:a);if(a=l!==p.L)p.S=[],p.BC=0;return a}; YBf=function(p,a,l,y){y=y===void 0?!1:y;var S=S===void 0?!0:S;return WN(void 0,function(){return function V(){var z,d,G,B,c,r,w,P,F,v,I,b,O,m,H,Y,N,yo,zq;return HN(V,function(S$){switch(S$.L){case 1:g.DD(S$,2);z=BK.hA();d=p&&BY;if(!d&&!a)return B={},(G=l)==null||G("wasmns",(B.p=p?"1":"0",B.a=a?"1":"0",B.s=BY?"1":"0",B)),S$.return(cKM(Error("wasm.wm.ns")));c=new N8E;if(!d){S$.g7(4);break}g.$r(S$,5);r=EX;return lo(S$,io(RhM(c,p,y)),7);case 7:return w=r(S$.S),P=new j3(w,c,!1,S),BK.Zw("winit",z),(F=l)== null||F("wasmsw",{}),S$.return(P);case 5:if(v=g.L6(S$),b={},(I=l)==null||I("wasmerrw",(b.e=""+v,b)),!a)throw Error("wasm.wm.iw: "+v);case 4:if(!a)throw Error("wasm.wm.xx");g.$r(S$,8);O=EX;return lo(S$,io(a(c)),10);case 10:return m=O(S$.S),H=new j3({exports:m},c,!0,S),BK.Zw("winitjs",z),(Y=l)==null||Y("wasmsa",{}),S$.return(H);case 8:throw N=g.L6(S$),zq={},(yo=l)==null||yo("wasmerra",(zq.e=""+N,zq)),Error("wasm.wm.ia: "+N);case 2:g.TK(S$),g.$F(S$,0)}})}()})}; PsM=function(p,a){return g.JA(p,{query:a},function(l){return l.delete().then(function(){return g.Lt(l)})}).then(function(){})}; WoO=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(p){return 0}}; dz=function(p,a,l){for(l=l===void 0?!1:l;p.j1){for(var a=[p[0]],l=1;l10&&lU.shift()))}; L6M=function(p,a){p=g.t(p.itemData);for(var l=p.next();!l.done;l=p.next())l=l.value,l.B.logVisibility(l.element,a)}; AD=function(p,a){this.version=p;this.args=a}; WaM=function(p){var a;if(((a=p.adVideoOffset)==null?void 0:a.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var l;return((l=p.adVideoOffset)==null?void 0:l.milliseconds)!=null&&!isNaN(Number(p.adVideoOffset.milliseconds))}; uwM=function(p,a){for(var l=[],y=g.t(p.S),S=y.next();!S.done;S=y.next())S=S.value,a(S)||l.push(S);if(p.Y.D("html5_sstm_fixes"))for(y=g.t(p.S),S=y.next();!S.done;S=y.next())S=S.value,a(S)&&(p.U.delete(S.cpn),S.a4&&p.j.delete(S.a4));p.S=l}; RSr=function(p){if(!RQ(p.videoData))return NaN;var a=0;p.loader&&p.videoData.L&&(a=Qe(p.videoData)?p.loader.V8.Cv()||0:p.videoData.L.t9);return(0,g.Ek)()/1E3-p.d$()-a}; VP$=function(p){if(p.Lz.TM().isInline())return Fz;p=pG[rV()];return g.UR("auto",p,!1,"s")}; Kt=function(p,a){p.L=a;var l=p.G.videoInfos;if(!p.L.isLocked()){var y=(0,g.Ek)();l=g.Tz(l,function(V){if(V.Lx>this.policy.Lx)return!1;var z=this.MO.L[V.id];return nv(this.W).get(V.id)>y||z.bM.U>4||z.G>4?!1:this.QY.has(+V.itag)?!1:!0},p); NM$(p.W)&&(l=g.Tz(l,function(V){return V.video.width<=854&&V.video.height<=480}))}l.length||(l=p.G.videoInfos); var S=l;p.policy.iA&&(S=hPo(p,S,a));S=g.Tz(S,a.j,a);if(p.L.isLocked()&&p.W.L){var n=g.rA(l,function(V){return V.id===p.W.L}); n?S=[n]:GZ(p.W,"")}p.policy.iA||(S=hPo(p,S,a));S.length||(S=[l[0]]);S.sort(function(V,z){return f5(p,V)-f5(p,z)}); a={};for(l=1;la.dH.video.width?(g.x3(S,l),l--):f5(p,a.xd)*p.policy.Sl>f5(p,a.dH)&&(g.x3(S,l-1),l--);a=S[S.length-1];p.Kz=!!p.U&&!!p.U.info&&p.U.info.h9!==a.h9;p.j=S;p.r7.clear();l=!1;for(n=0;n=1080&&(l=!0);zWe(p.policy,a,p.MO.ke)}; rl=function(p,a,l){var y=0;(l===void 0?0:l)&&(a-=lm$(p,a)*Mp(p));l=g.t(p.L);for(var S=l.next();!S.done;S=l.next()){S=S.value;if(a>S.width)a-=S.width;else break;y++}return y===p.L.length?y-1:y}; a5v=function(p){if(p.Ps.length){var a=p.Ps,l=function(y,S){if(y.info.h9==="f"||a.includes($L(g.Bp(y.info,p.MO.ke))))return y;for(var n={},V=0;V=0||a.bM.j2("defrag")==="1"||a.bM.j2("otf")==="1"){a=null;break a}S=FY(0,4096)}S=new PX([new EL(5,y.L,S,"createProbeRequestInfo"+y.K,y.Rc)],a.S);S.Lo=l;S.L=a.L;a=S}a&&zQ(p,a)}}; SlM=function(p){var a,l=p.policy.W&&((a=p.loader)==null?void 0:a.rR());a=p.loader.getCurrentTime()||0;a=USO(p,a);if(p.policy.XT&&p.loader.isSeeking()){var y=O$(p.videoTrack,a);p.loader.jl("asmtfnctv",{b:a,a:y});isNaN(y)||(a=y)}y=p.loader.Jg()||0;a+=y;y=FT(p.videoData)||g.xV(p.videoData);var S=0;l?(y&&(S=Number.MAX_SAFE_INTEGER),p.videoData.w7&&(S=Math.ceil(p.videoData.QY*1E3))):S=Math.ceil(a*1E3);return Math.min(Number.MAX_SAFE_INTEGER,S)}; BP=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-visit-advertiser-link"},"visit-advertiser-link",a,l,y);this.hide()}; RMq=function(p){var a=new JD$;var l=new htZ;l=GY(l,1,"botguard");p=GY(l,2,p);this.L=H1r(a,htZ,1,v4F,p)}; K6O=function(p,a,l){!p.Y.D("html5_tv_ignore_capable_constraint")&&g.g5(p.Y)&&(l=l.compose(p.yE(a)));return l}; enZ=function(p){return g.Ar(p.info.mT,function(a){return a.type===3})}; DBf=function(p){return SmM(function(a,l){return g.bR(a,l,4,1E3)},p,{format:"RAW", method:"GET",withCredentials:!0})}; HG=function(){this.L=[];this.S=null;this.G=0;this.U=[];this.W=!1;this.K="";this.j=-1}; VSO=function(p,a){g.vA(p.info.L.info)||p.info.L.info.EQ();p.U=a;if(g.vA(p.info.L.info)){var l=g.KU(p);p=p.info.L.L;for(var y=NaN,S=NaN,n=0;Eh(l,n);){var V=fu(l,n);isNaN(y)&&(V.type===1936286840?y=V.data.getUint32(V.dataOffset+8):V.type===1836476516&&(y=g.p6(V)));if(V.type===1952867444){!y&&p&&(y=y6(p));var z=g.ab(V);isNaN(S)&&(S=Math.round(a*y)-z);var d=V;z+=S;if(d.data.getUint8(d.dataOffset)){var G=d.data;d=d.dataOffset+4;G.setUint32(d,Math.floor(z/4294967296));G.setUint32(d+4,z&4294967295)}else d.data.setUint32(d.dataOffset+ 4,z)}n=lx(V.type)?n+8:n+V.size}return!0}l=new bt(g.KU(p));p=p.W?l:new bt(new DataView(p.info.L.L.buffer));y=SF(p);p=l.pos;l.pos=0;if(n6(l)&&$C(l,231))if(S=$u(l,!0),a=Math.floor(a*1E9/y),Math.ceil(Math.log(a)/Math.log(2)/8)>S)a=!1;else{for(y=S-1;y>=0;y--)l.L.setUint8(l.pos+y,a&255),a>>>=8;l.pos=p;a=!0}else a=!1;return a}; bKE=function(p){var a=p.api.C(),l=g.h(p.api.getPlayerStateObject(),128);return a.j&&l&&!p.api.isFullscreen()}; OSM=function(p,a,l){var y,S=(y=p.L.L)==null?void 0:y.encrypt(a,l);return S?S:(new g.J$(p.L.S)).encrypt(a,l)}; cP=function(p,a){g.X.call(this,{X:"div",A9:["ytp-fullscreen-grid"],N:[{X:"div",T:"ytp-fullscreen-grid-hover-overlay",V:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-70"},N:[{X:"div",A9:["ytp-fullscreen-grid-expand-button","ytp-button"],N:[{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"g",V:{filter:"url(#filter0_d_3104_799356)"},N:[{X:"path",V:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{X:"defs",N:[{X:"filter",V:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},N:[{X:"feFlood",V:{"flood-opacity":"0",result:"BackgroundImageFix"}},{X:"feColorMatrix",V:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{X:"feOffset"},{X:"feGaussianBlur",V:{stdDeviation:"0.5"}},{X:"feComposite",V:{in2:"hardAlpha",operator:"out"}},{X:"feColorMatrix",V:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {X:"feBlend",V:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{X:"feBlend",V:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{X:"div",T:"ytp-fullscreen-grid-main-content",N:[{X:"div",T:"ytp-fullscreen-grid-stills-container"}]}]});this.player=p;this.stills=[];this.videoData=null;this.currentState=0;this.L=this.d7("ytp-fullscreen-grid-main-content");this.j=this.d7("ytp-fullscreen-grid-stills-container");this.S=new g.hm(this); g.E(this,this.S);this.U=a;if(this.L&&this.j){if(p=this.d7("ytp-fullscreen-grid-hover-overlay"))this.J(p,"click",this.W),OC(this.player,p,this);if(p=this.player.getVideoData(1))this.videoData=p;this.player.createClientVe(this.L,this,223051);this.S.J(this.player,"videodatachange",this.onVideoDataChange)}}; g.Irq=function(){var p=g.zv("yt-player-caption-language-preferences");return p?p:[]}; c8r=function(p,a,l){var y;(y=p.app.mD().G[a.clientPlaybackNonce]||null)==null||y.dispose();a=new RnZ(p,a,p.playback,l/1E3);p.t9.set(a.Zd(),a);p.app.mD().G[a.Zd()]=a}; SwO=function(p,a,l,y,S,n,V,z,d,G,B,c){if(!yl(l))return new W("Invalid PlayerBytesAdLayoutRenderer");var r=S1(l);if(r instanceof W)return r;var w={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,iT:"core"},P=g.T(l.renderingContent,iQ);if(!P)return new W("Invalid rendering content for DAI media layout");P=r6(P,!1);B={Q1:P,Oi:0,La:B,yB:Math.min(B+P.videoLengthSeconds*1E3,c),tD:new NH(0,[P.videoLengthSeconds])};var F;c=(F=Number(l.driftRecoveryMs))!=null?F:void 0;a=$_M(a, l,B,S,c);if(a instanceof W)return a;p=Object.assign({},w,y,{Xh:r,renderingContent:l.renderingContent,clientMetadata:new Lc(a),nx:kU(n,p)(w),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});return(S=Lj(V,p,S,d,n,G,z,void 0,!0))?S instanceof W?S:{layout:p,T9:S}:new W("Expecting associatedInPlayerSlot")}; O4=function(p,a,l){typeof l==="string"?p.B.getVideoData(1).Eh(a,l):p.B.getVideoData(1).jl(a,l)}; ZT$=function(p){function a(y){return p.throw(y)} function l(y){return p.next(y)} return new Promise(function(y,S){function n(V){V.done?y(V.value):Promise.resolve(V.value).then(l,a).then(n,S)} n(p.next())})}; u7A=function(p){var a;return((a=p.U)==null?void 0:a.currentVideoDuration)||-1}; ES=function(p){return decodeURIComponent(p.replace(/\+/g," "))}; $k=function(p){Fc.call(this,p.pN,p.ac,p.WZ,p.BZ,p.sO,p.wc,p.lr,p.wX,p.slot,p.layout,p.sE,p.Z1,p.Ye,p.EO);this.sQ=void 0}; g.rz=function(p){if(p.simpleText)return p=document.createTextNode(p.simpleText),p;var a=[];if(p.runs)for(var l=0;l=d&&p.loader.jl("invalidSabrCmt",{cmt:l,vd:d})}var G,B;d=p.s6;var c=p.Lz,r=p.MO,w=p.S,P=p.videoData.Ps,F=p.policy,v=p.loader.AO,I=hJA(p.loader)*1E3,b=(G=p.Hs)==null?void 0:G.f6; G=(B=p.Hs)==null?void 0:B.a$;var O;B=Number((O=p.U.j)==null?void 0:O.info.itag)||0;var m;O=Number((m=p.U.W)==null?void 0:m.info.itag)||0;l={s6:d,Lz:c,MO:r,wq:n,iU:V,b5:l,nextRequestPolicy:w,OJ:P,z9:F,xF:v,Iz:I,f6:b,a$:G,Ii:p.Ii,gvO:B,ws9:O,D$:z,AC:p.Lz.Or()};n=p.loader.Ir();V=hT(n);n&&(l.L_=V);if(n=p.Lz.cA())l.lj=n*1E3;var H;n=p.U;V=n.UO;if(((H=n.z9)==null?0:lZ(H))&&!V)for(H=g.t(n.U),z=H.next();!z.done;z=H.next())if(z.value.Mc){V=!0;break}H=lZ(n.z9)&&!V?[]:tZM(n,n.U);l.rQ=H;H=p.U;lZ(H.z9)&&!H.Xu? H=[]:(n=bHZ(H),n.length===0&&(n=H.G),H=tZM(H,n));l.p_=H;l.T5=D7(p)?[p.G]:void 0;p.policy.Bd&&(l.UN=q0q(p.loader,p.audioTrack),l.jq=q0q(p.loader,p.videoTrack));if(p.policy.S){H=p.loader.getCurrentTime();y=qF(p,y.wq,H);S=qF(p,S.wq,H);S=Math.min(y,S);D7(p)&&(y=qF(p,p.W,H),p.Lz.ao()&&y0&&p.L[0].DC()&&(l.Dp=p.L[0].EJ());a?l.Yr=1:p.loader.isSuspended&&(l.Yr=4);return l}; wz=function(){function p(){throw Error();} Object.setPrototypeOf(p,p.prototype);return p}; W9=function(p){return p.keySystem==="com.youtube.fairplay.sbdl"}; bWE=function(p,a,l){var y=0;if(p.n8!==0){do{var S=p.lG[p.Ub+y*2]<<8|p.lG[p.Ub+y*2+1];var n=p.lG[p.b8+y];y++;if(S===0)oD(p,n,a);else{var V=iN[n];oD(p,V+256+1,a);var z=bMv[V];z!==0&&(n-=elo[V],$P(p,n,z));S--;V=S<256?Tk[S]:Tk[256+(S>>>7)];oD(p,V,l);z=q0[V];z!==0&&(S-=Yo[V],$P(p,S,z))}}while(yl)S=l;y+=a.length+1;return ES(p.slice(y,S!==-1?S:0))}; eRE=function(p,a,l){var y=[];l=g.t(l);for(var S=l.next();!S.done;S=l.next())if((S=S.value)&&S.url){var n=Sy(S.type,"medium","0");y.push(new nY(n,S.url))}return Vg(p.W,y,bU(p,a),!1)}; iK$=function(p,a,l){this.L=p;this.slot=a;this.layout=l}; n8=function(p,a,l){l=l===void 0?0:l;p=$A(A9(p,a));return p!=null?p:l}; TIO=function(p){if(y5(p.B.C()))return p.mO.get("kids")}; LE=function(p,a,l){p.playback.Mz(a,l)}; HF=function(){var p=0,a;return function(l){a||(a=new Ml);var y=new ZC(a,p,1),S=M$(y,function(){return fSe(l)},!0); y.dispose();p++;return S}}; NIo=function(p,a,l){var y=[],S=a?156595:151874;p=g.t(p);for(var n=p.next();!n.done;n=p.next()){var V=n.value;n=V.video;V={formatId:V.id,qualityLabel:n.qualityLabel,quality:n.quality,isPlayable:a};if(n=l.get(n.qualityLabel))V.paygatedQualityDetails={paygatedIndicatorText:n.paygatedIndicatorText,endpoint:n.endpoint,veType:S,trackingParams:n.trackingParams};y.push(V)}return y}; s3A=function(p,a,l,y,S,n,V){dz(p,l*1E3,V);S<=0||l<=0||(a==null?0:g.h(a,16))||(a==null?0:g.h(a,32))||(UG(l,S*.25,y)&&(n&&!zo(p,"first_quartile")&&n("first"),p.ZN("first_quartile")),UG(l,S*.5,y)&&(n&&!zo(p,"midpoint")&&n("second"),p.ZN("midpoint")),UG(l,S*.75,y)&&(n&&!zo(p,"third_quartile")&&n("third"),p.ZN("third_quartile")))}; Af=function(p){LV.call(this,p.message||p.description||p.name);this.isMissing=p instanceof uc;this.isTimeout=p instanceof g_&&p.errorCode=="net.timeout";this.isCanceled=p instanceof Yk}; KnA=function(p,a,l){var y=p.videoId,S=g.o5(p),n=p.C(),V={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(XV()),referer:document.location.toString(),signatureTimestamp:20354},z=g.hn();p.isAutonav&&(V.autonav=!0);z.Zy(141)&&(V.autonavState=z.Zy(140)?"STATE_OFF":"STATE_ON");V.autoCaptionsDefaultOn=z.Zy(66);Nqr(p)&&(V.autoplay=!0);n.Z&&p.cycToken&&(V.cycToken=p.cycToken);n.enablePrivacyFilter&&(V.enablePrivacyFilter=!0);p.isFling&&(V.fling=!0);var d=p.forceAdsUrl;if(d){z={};var G=[];d=d.split(","); d=g.t(d);for(var B=d.next();!B.done;B=d.next()){B=B.value;var c=B.split("|");c.length!==3||B.includes("=")||(c[0]="breaktype="+c[0],c[1]="offset="+c[1],c[2]="url="+c[2]);B={adtype:"video_ad"};c=g.t(c);for(var r=c.next();!r.done;r=c.next()){var w=g.t(r.value.split("="));r=w.next().value;w=d7F(w);B[r]=w.join("=")}c=B.url;r=B.presetad;w=B.viralresponseurl;var P=Number(B.campaignid);if(B.adtype==="in_display_ad")c&&(z.url=c),r&&(z.presetAd=r),w&&(z.viralAdResponseUrl=w),P&&(z.viralCampaignId=String(P)); else if(B.adtype==="video_ad"){var F={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(B.offset)||0)}};if(B=smF[B.breaktype])F.breakType=B;c&&(F.url=c);r&&(F.presetAd=r);w&&(F.viralAdResponseUrl=w);P&&(F.viralCampaignId=String(P));G.push(F)}}V.forceAdParameters={videoAds:G,inDisplayAd:z}}p.isInlinePlaybackNoAd&&(V.isInlinePlaybackNoAd=!0);p.isLivingRoomDeeplink&&(V.isLivingRoomDeeplink=!0);z=p.y$Y;if(z!=null){z={startWalltime:String(z)};if(G=p.zx)z.manifestDuration=String(G||14400);V.liveContext= z}if(p.mutedAutoplay){V.mutedAutoplay=!0;z=n.getWebPlayerContextConfig();var v,I;(z==null?0:(v=z.embedsHostFlags)==null?0:v.allowMutedAutoplayDurationMode)&&(z==null?0:(I=z.embedsHostFlags)==null?0:I.allowMutedAutoplayDurationMode.includes(Uvh[p.mutedAutoplayDurationMode]))&&(V.mutedAutoplayDurationMode=Uvh[p.mutedAutoplayDurationMode])}if(p.TO?0:p.zy)V.splay=!0;v=p.vnd;v===5&&(V.vnd=v);v={};if(I=p.isMdxPlayback)v.triggeredByMdx=I;if(I=p.CP)v.skippableAdsSupported=I.split(",").includes("ska");if(G= p.xz){I=p.RU;z=[];G=g.t(h2r(G));for(d=G.next();!d.done;d=G.next()){d=d.value;B=d.platform;d={applicationState:d.Qq?"INACTIVE":"ACTIVE",clientFormFactor:QmM[B]||"UNKNOWN_FORM_FACTOR",clientName:gYE[d.Pp]||"UNKNOWN_INTERFACE",clientVersion:d.deviceVersion||"",platform:hn$[B]||"UNKNOWN_PLATFORM"};B={};if(I){c=void 0;try{c=JSON.parse(I)}catch(O){g.Mf(O)}c&&(B={params:[{key:"ms",value:c.ms}]},c.advertising_id&&(B.advertisingId=c.advertising_id),c.limit_ad_tracking!==void 0&&c.limit_ad_tracking!==null&& (B.limitAdTracking=c.limit_ad_tracking),d.osName=c.os_name,d.userAgent=c.user_agent,d.windowHeightPoints=c.window_height_points,d.windowWidthPoints=c.window_width_points)}z.push({adSignalsInfo:B,remoteClient:d})}v.remoteContexts=z}I=p.sourceContainerPlaylistId;z=p.serializedMdxMetadata;if(I||z)G={},I&&(G.mdxPlaybackContainerInfo={sourceContainerPlaylistId:I}),z&&(G.serializedMdxMetadata=z),v.mdxPlaybackSourceContext=G;V.mdxContext=v;v=a.width;v>0&&(V.playerWidthPixels=Math.round(v));if(a=a.height)V.playerHeightPixels= Math.round(a);l!==0&&(V.vis=l);if(l=n.widgetReferrer)V.widgetReferrer=l.substring(0,128);g.wW(n)&&V&&(V.ancestorOrigins=n.ancestorOrigins);p.defaultActiveSourceVideoId&&(V.compositeVideoContext={defaultActiveSourceVideoId:p.defaultActiveSourceVideoId});if(n=n.getWebPlayerContextConfig())V.encryptedHostFlags=n.encryptedHostFlags;y={videoId:y,context:S,playbackContext:{contentPlaybackContext:V}};if(p.Hk){var b;y.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(b=p.Hk)==null?void 0:b.reloadPlaybackParams}}p.contentCheckOk&& (y.contentCheckOk=!0);if(b=p.clientPlaybackNonce)y.cpn=b;if(b=p.playerParams)y.params=b;if(b=p.playlistId)y.playlistId=b;p.racyCheckOk&&(y.racyCheckOk=!0);b=p.C();S=b.embedConfig;p.In&&b.D("embeds_enable_per_video_embed_config")?y.serializedThirdPartyEmbedConfig=p.In:S&&(y.serializedThirdPartyEmbedConfig=S);y.captionParams={};S=g.hn().Zy(65);p.deviceCaptionsOn!=null?y.captionParams.deviceCaptionsOn=p.deviceCaptionsOn:g.Z0(b)&&(y.captionParams.deviceCaptionsOn=S!=null?!S:!1);p.Rf&&(y.captionParams.deviceCaptionsLangPref= p.Rf);p.ws.length?y.captionParams.viewerSelectedCaptionLangs=p.ws:g.Z0(b)&&(S=g.Irq(),S==null?0:S.length)&&(y.captionParams.viewerSelectedCaptionLangs=S);S=p.fetchType==="onesie"&&p.D("html5_onesie_attach_po_token");V=p.fetchType!=="onesie"&&p.D("html5_non_onesie_attach_po_token");if(S||V)S=p.C(),S.rP&&(y.serviceIntegrityDimensions={},y.serviceIntegrityDimensions.poToken=S.rP);b.D("fetch_att_independently")&&(y.attestationRequest={omitBotguardData:!0});y.playbackContext||(y.playbackContext={});y.playbackContext.devicePlaybackCapabilities= Ce$(p);y.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&p.jl("noVp9",{});return y}; AyE=function(p){p.updateValue("channelLink","");p.updateValue("channelName","");g.iT(p.api.C())||p.api.D("enable_channel_title_always_focusable")?p.updateValue("channelTitleFocusable","0"):p.updateValue("channelTitleFocusable","-1")}; Ixh=function(p,a,l){var y={};g4o(p,y,a,l);Vxq(y);y.LACT=SQ(function(){return XV().toString()}); y.VIS=SQ(function(){return p.getVisibilityState().toString()}); y.SDKV="h.3.0";y.VOL=SQ(function(){return p.isMuted()?"0":Math.round(p.getVolume()).toString()}); y.VED="";return y}; Pa=function(p,a){var l=p.Lz.TM();return l.isInline()&&!a.y8?new NE(0,480,!1,"v"):gQ(a)?Fz:l.isBackground()&&XV()/1E3>60&&!g.g5(p.Y)?new NE(0,360,!1,"v"):Fz}; YuO=function(p,a,l){if(p.B9())return"qie";if(p.L==null||p.L.Gm()||p.L.getVideoData()==null)return"qpd";if(a.videoId!==p.L.K1())return"vinm";if(u7A(p)<=0)return"ivd";if(l!==1)return"upt";if((l=p.U)==null)p=void 0;else if(l.getStatus().status!==5)p="niss";else if(eh(l.policy,l.L,l.S,l.PL)!=null)p="pge";else{a=X_(l);p=a.Ys;var y=a.J2;a=g.sW(l.TR.C().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var S=l.G+a;l.TR.C().experiments.Cz("html5_pseudogapless_shorts")&&(S=VY(l).At+a);l=GI(y.ea(), S);p=GI(p.ea(),S);p=!(a>0)||l&&p?null:"neb"}return p!=null?p:null}; gD=function(p,a,l){l!==void 0&&(s7(p,a*8+2),a=l.length,s7(p,a),Qi(p,a),p.L.set(l,p.pos),p.pos+=a)}; quo=function(p,a){p.languages=g.tg(a,p.L,p);p.d3(g.lb(a,p.L))}; Kx$=function(p){var a=p.W9(),l=1,y=!1,S=oEZ(p,a,p.getVideoAspectRatio()),n=p.app.C(),V=n.D("enable_desktop_player_underlay"),z=ZWr(),d=g.sW(n.experiments,"player_underlay_min_player_width");d=V&&p.YH&&p.getPlayerSize().width>d;if(O1(p)){var G=TSM(p);var B=isNaN(G)||g.up||lQ&&g.yd||d;bp&&!g.PT(601)?G=S.aspectRatio:B=B||n.controlsType==="3";B?d?(B=n.D("place_shrunken_video_on_left_of_player")?16:p.getPlayerSize().width-a.width-16,G=Math.max((p.getPlayerSize().height-a.height)/2,0),B=new g.OS(B,G,a.width, a.height),p.Su.style.setProperty("border-radius","12px")):B=new g.OS(0,0,a.width,a.height):(l=S.aspectRatio/G,B=new g.OS((a.width-S.width/l)/2,(a.height-S.height)/2,S.width/l,S.height),l===1&&g.yd&&(G=B.width-a.height*G,G>0&&(B.width+=G,B.height+=G)));g.JB(p.element,"ytp-fit-cover-video",Math.max(B.width-S.width,B.height-S.height)<1);if(z||p.Zm)p.Su.style.display="";p.wy=!0}else{B=-a.height;bp?B*=window.devicePixelRatio:g.Kk&&(B-=window.screen.height);B=new g.OS(0,B,a.width,a.height);if(z||p.Zm)p.Su.style.display= "none";p.wy=!1}hM(p.Ar,B)||(p.Ar=B,g.PD(n)?(p.Su.style.setProperty("width",B.width+"px","important"),p.Su.style.setProperty("height",B.height+"px","important")):g.Pj(p.Su,B.getSize()),y=new g.U1(B.left,B.top),g.LL(p.Su,Math.round(y.x),Math.round(y.y)),y=!0);a=new g.OS((a.width-S.width)/2,(a.height-S.height)/2,S.width,S.height);hM(p.Hw,a)||(p.Hw=a,y=!0);g.B8(p.Su,"transform",l===1?"":"scaleX("+l+")");V&&d!==p.bY&&(d&&(p.Su.addEventListener(kUZ,p.F$),p.Su.addEventListener("transitioncancel",p.F$),p.Su.classList.add(g.k2.VIDEO_CONTAINER_TRANSITIONING)), p.bY=d,p.app.Tm.publish("playerUnderlayVisibilityChange",p.bY?"transitioning":"hidden"));return y}; t2=function(){}; PP=function(p){g.qu.call(this);this.L=!1;this.BG=0;this.handler=new FM(this);g.E(this,this.handler);this.durationMs=p;this.timer=new g.Xn(100);g.E(this,this.timer);this.handler.J(this.timer,"tick",this.rq);this.S={seekableStart:0,seekableEnd:p/1E3,current:0};this.start()}; Jyf=function(p){p.policy.Sa=!1;try{p.A7()}catch(a){g.iO(a)}}; w7=function(p){this.value=p}; frr=function(p,a){p.U.some(function(l){var y;return((y=l.Mc)==null?void 0:y.getId())===a}); p.L=a}; w8r=function(p){for(var a=g.t(pE2),l=a.next();!l.done;l=a.next())p=TQ(p,l.value);return"ST-"+E7(p).toString(36)}; g.wS$=function(p){var a=Xt$();a&&(p=JSON.stringify(p),a.set("yt-player-lv",p))}; aeK=function(p,a){p.wC.L===2&&a!==p.sM()&&hF("onClipEntered: unknown cpn",p.slot,p.layout,{cpn:a})}; RnZ=function(p,a,l,y){y=y===void 0?0:y;g.r4.call(this,l.lB());var S=this;this.I4=p;this.videoData=a;this.duration=y;this.L=this.startTimeSecs=0;this.S=this.U=!0;this.j=new MWM(function(n,V){return void S.jl(n,V)})}; Pu=function(p,a){p.S=a;g.M8("yt.gcf.config.hotConfigGroup",p.S||null)}; ZC=function(p,a,l){WV.call(this,p);this.j=a;this.clientState=l;this.L="S";this.S="q"}; OyE=function(p,a,l,y,S){S=S===void 0?!1:S;a!==p.J5&&(p.Lz.jl("ssevt",{tag:p.L===0?"sstd-cr":p.L===1?"sstd-tm":p.L===2?"sstd-poll":p.L===3?"sstd-poll100":"sstd-unknown",ad:p.cpn!==a,cpn:a,st:l.toFixed(3),late:Math.round(p.isSeeking?0:(y-l)*1E3)}),p.J5=a,p.Lz.publish("playbackstarted",a,l+p.Lz.Jg(),S))}; xg=function(){return g.o4("yt.gcf.config.hotConfigGroup")}; iZ=function(p){return p.Ws.j&&p.isPrivate}; aq=function(p,a){return p.lastIndexOf(a,0)==0}; zbv=function(p,a){var l=g.US(p.provider);if(!p.provider.Y.experiments.Cz("html5_refactor_sabr_video_format_selection_logging")||a.L.id!==p.r7){var y=[a.L.id,a.S,p.r7,a.reason];a.token&&y.push(a.token);g.pt(p,l,"vfs",y);p.r7=a.L.id;y=p.provider.Lz.getPlayerSize();if(y.width>0&&y.height>0){y=[Math.round(y.width),Math.round(y.height)];var S=g.GR();S>1&&y.push(S);g.pt(p,l,"view",y)}p.Yv||(p.provider.Y.ao()&&cJ(p,"rqs2"),p.provider.videoData.L&&vN(p.provider.videoData.L)&&p.L.set("preload",["1"]));p.Yv= !0;p.j=!0}a.reason==="m"&&++p.Ae===100&&lec(p,2);g.pt(p,l,"vps",[p.qe]);p.w7||p.reportStats(l)}; ks=function(p){var a=Ywf;p.S&&(g.Ei(p.L,function(l,y){return A9r(y,l)?1:A9r(l,y)?-1:0}),p.S=!1); return qa(p.L,function(l,y){y=a(y);return""+l+(l!=""&&y!=""?"&":"")+y},"")}; LtM=function(p){p.audioTrack.UO=[];p.videoTrack.UO=[]}; yZK=function(){var p=yc;this.L=X2;this.V6="jserror";this.eZ=!0;this.Uw=null;this.S=this.aF;this.zR=p===void 0?null:p}; l0O=function(p){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=p(this.triggerType)}; SMc=function(p){return gf(p,function(a){return"FORMAT_STREAM_TYPE_OTF"===a.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; FPE=function(p,a){Wv(p.L);var l=p.L.j;if(l)return X9(p,"return"in l?l["return"]:function(y){return{value:y,done:!0}},a,p.L.return); p.L.return(a);return YJ(p)}; LZ=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-ad-survey",N:[{X:"div",T:"ytp-ad-survey-questions"}]},"survey",a,l,y);this.questions=[];this.S=[];this.conditioningRules=[];this.L=0;this.W=this.d7("ytp-ad-survey-questions");this.api.C().D("fix_survey_color_contrast_on_destop")&&this.d7("ytp-ad-survey").classList.add("color-contrast-fix");this.api.C().D("web_enable_speedmaster")&&this.d7("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; nhb=function(p){p.L&&p.L.listen("click",p.tV,p);g.nU(p.Z,"click",function(){return p.tV()})}; Yhf=function(p,a,l){p=p.S();if(typeof p==="function"){var y={};var S={};y=Object.assign({},g6!==null&&(y.v=g6,y),(S.sv="968",S.cb=ci$,S.e=Y_v(a),S));S=U_(l,a,u4());g.Qt(y,S);l.fZ[a]=S;y=l.FW()==2?XHM(y).join("&"):l.xH.L(y).L;try{return p(l.eR,y,a),0}catch(n){return 2}}else return 1}; XIE=function(p){g.X.call(this,{X:"div",T:"ytp-heat-map-chapter",N:[{X:"svg",T:"ytp-heat-map-svg",V:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},N:[{X:"defs",N:[{X:"clipPath",V:{id:"{{id}}"},N:[{X:"path",T:"ytp-heat-map-path",V:{d:"",fill:"white"}}]},{X:"linearGradient",V:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},N:[{X:"stop",V:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{X:"stop",V:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{X:"rect",T:"ytp-heat-map-graph",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",T:"ytp-heat-map-hover",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",T:"ytp-heat-map-play",V:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{X:"path",T:"ytp-modern-heat-map",V:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=p;this.K=this.d7("ytp-heat-map-svg");this.W=this.d7("ytp-heat-map-path");this.j=this.d7("ytp-heat-map-graph");this.G=this.d7("ytp-heat-map-play");this.L=this.d7("ytp-heat-map-hover");this.U=this.d7("ytp-modern-heat-map");this.Me=!1;this.S=60;p=""+g.Wk(this);this.update({id:p});p="url(#"+p+")";this.j.setAttribute("clip-path",p);this.G.setAttribute("clip-path",p);this.L.setAttribute("clip-path",p)}; V$U=function(p,a){p.y$().autonavState=a;g.HE("yt-player-autonavstate",a);p.Tm.publish("autonavchange",a)}; n8h=function(p){var a,l={},y=p.Lz,S=p.Ws,n=p.s6,V=y.getVideoData(),z=rV(0),d=y.getVisibilityState(),G;if((G=p.z9)==null?0:G.QS)l.D7=S.D7;z&&(l.dOY=z,l.lastManualDirection=j7o(),z=eBA()||0,z>0&&(z=(S.D("html5_use_date_now_for_local_storage")?Date.now():(0,g.Ek)())-z,S.D("html5_use_date_now_for_local_storage")?z>0&&(l.timeSinceLastManualFormatSelectionMs=z):l.timeSinceLastManualFormatSelectionMs=z));z=S.D("html5_use_streamer_bandwidth_for_low_latency_live")&&V.isLowLatencyLiveStream;if(n.UO&&!z){var B; z=S.D("html5_disable_bandwidth_cofactors_for_sabr_live")?!((B=p.z9)==null||!B.mE):!1;l.F6=rf(n,!z)}z=g.T9.medium;G=Math.floor(z*16/9);(B=V.LC())||(V.L&&V.U&&V.U.videoInfos.length!==0?(B=V.U.videoInfos[0],B=!!B.video&&B.video.width0?{authorizedFormats:p.authorizedFormats}:{authorizedFormats:a};p.sabrLicenseConstraint&&(l.hZ.sabrLicenseConstraint=p.sabrLicenseConstraint);if(S.D("html5_onesie_media_capabilities")||S.D("html5_enable_server_format_filter"))l.Bn= 3;S.D("html5_onesie_audio_only_playback")&&Fh(V)&&(l.Bn=1);var b;((b=p.z9)==null?0:b.L1)&&p.mj&&(l.Bn=l.Bn===void 0?7:l.Bn|4);b=V.L1?V.L1:g.Vw(V);S.D("html5_onesie_media_capabilities")&&(l.mediaCapabilities=g.ZAK(V,b,S));var O;if((O=p.z9)==null?0:lZ(O)){r=S.W;O=[];a=[];w=new Map;P=Array.from(r.L.values());P=g.t(P);for(F=P.next();!F.done;F=P.next())v=F.value,v.Qh?a.push({audioCodec:oha[v.h9],numChannels:v.numChannels,spatialCapabilityBitmask:zM1[v.h9]}):(I=df1[v.h9],F={videoCodec:I,maxWidth:v.maxWidth|| 0,maxHeight:v.maxHeight||0,maxFramerate:v.maxFramerate||0,is10BitSupported:v.vT||!1},v.maxBitrateBps&&(F.maxBitrateBps=v.maxBitrateBps,d=ZK(v.itag),B=void 0,((B=d)==null?0:B.video)&&e1(b,d,r)===!0&&(d=d.Lx*8,d>F.maxBitrateBps&&(F.maxBitrateBps=d))),v=I+"_"+v.vT,I=w.get(v)||[],I.push(F),w.set(v,I));O=Gq8(O,w);r={};S.D("html5_ssff_denylist_opus_low")&&(r={itagDenylist:[249,350]});l.mediaCapabilities={videoFormatCapabilities:O,audioFormatCapabilities:a,hdrModeBitmask:3,perPlaybackAttributes:r}}var m; if((m=p.z9)==null?0:m.L){l.SS=b.SS;var H;l.R7=(H=p.z9)==null?void 0:H.R7}S.M2&&(l.JC=S.M2);l.N6=p.b5;l.UN=p.UN;l.jq=p.jq;l.lj=p.lj;p.xF&&(l.e5c=(0,g.Ek)()-p.xF);p.Yr&&S.D("html5_report_prefetch_requests")&&(l.Yr=p.Yr);fn||(l.qOO=!0);m=zz(n)*1E3;m>0&&(l.Bu=m);var Y;((Y=p.z9)==null?0:Y.j_)&&p.Iz&&p.Iz0?N:n.interruptions[0]||0;var yo;if((yo=p.z9)==null?0:yo.Fh)l.wK=p.wK;S.VY&&(l.audioTrackId=S.VY);rr(V)&&!l.audioTrackId&&(S.D("html5_fill_default_mosaic_audio_track_id")||(p=GxA(V,S.D("html5_cdm_use_first_as_default_audio_track")),l.audioTrackId=p),V==null||V.jl("misstrkchg",{"default":l.audioTrackId}));if(V=e6f())l.detailedNetworkType=Bvc[V]||Bvc.other;S.D("html5_enable_voice_boost")&&(l.qtm=S.E9);return l}; GX=function(p){switch(p){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"}}; mro=function(p){var a,l,y,S,n,V,z,d,G;return g.R(function(B){switch(B.L){case 1:if(!Mur)throw Error("DecompressionStream is not supported");a=BK.hA();l=new DecompressionStream("gzip");y=l.writable.getWriter();y.write(p);y.close();S=l.readable.getReader();n=new NN([]);case 2:return g.u(B,S.read(),5);case 5:V=B.S;z=V.value;if(d=V.done){B.g7(4);break}n.append(z);B.g7(2);break;case 4:return G=Xb(n),BK.Zw("gznb",a,Math.ceil(G.byteLength/16)),B.return(G)}})}; g.Xx=function(p,a){p.getPresentingPlayerType()===3?p.publish("mdxautoplaycancel"):p.xv("onAutonavCancelled",a)}; g.uD=function(p,a){if(p.classList)p.classList.add(a);else if(!g.tr(p,a)){var l=V1$(p);g.CY(p,l+(l.length>0?" "+a:a))}}; O4r=function(p){var a=p===void 0?{}:p;p=a.hasSubfragmentedFmp4===void 0?!1:a.hasSubfragmentedFmp4;a=a.wR===void 0?!1:a.wR;var l=new amv;l.Db=p||a;return l}; $sr=function(p){return cZc[p]||""}; g.CP=function(p,a){var l=Array.prototype.slice.call(arguments,1);return function(){var y=l.slice();y.push.apply(y,arguments);return p.apply(this,y)}}; SY=function(p,a){a&&wH(p.Lz,new Lq(a.video,a.reason));p.L.OO&&(a=K$o(p.L,"a"),p.Lz.x8(new Lq(a.audio,a.reason)))}; yM=function(p){if(p.isManifestless)for(var a in p.L)p.L[a].index.segments=[]}; rZK=function(p,a,l){isNaN(l)||(p.w7+=l);isNaN(a)||(p.r7+=a)}; Bl=function(p){var a="";if(p.Qt)return p.Qt;p.isLivePlayback&&(a=p.allowLiveDvr?"dvr":p.isPremiere?"lp":p.w7?"window":"live");p.uf&&(a="post");return a}; nKf=function(p){var a;if((a=p[wE8])!=null)p=a;else{if(yy!==yy)throw Error();p=p[wE8]=$fB(p.L)}return p}; Lrl=function(p){var a=p.api.C();OHM(p);p.updateValue("flyoutUnfocusable","true");p.updateValue("channelTitleFocusable","-1");p.updateValue("shouldHideExpandedTitleForA11y","true");p.updateValue("shouldHideExpandedSubtitleForA11y","true");a.S||a.r7||(p.J(p.channel,"mouseenter",p.AU),p.J(p.channel,"mouseleave",p.T0),p.J(p.channel,"focusin",p.AU),p.J(p.channel,"focusout",function(l){p.channel.contains(l.relatedTarget)||p.T0()})); p.U=new g.l_(function(){p.isExpanded()&&(p.api.logVisibility(p.channelName,!1),p.subscribeButton&&(p.subscribeButton.hide(),p.api.logVisibility(p.subscribeButton.element,!1)),p.L&&(p.L.hide(),p.api.logVisibility(p.L.element,!1)),p.channel.classList.remove("ytp-title-expanded"),p.channel.classList.add("ytp-title-show-collapsed"))},500); g.E(p,p.U);p.J(p.channel,PFK,function(){Fio(p)}); p.J(p.api,"onHideControls",p.H_);p.J(p.api,"appresize",p.H_);p.J(p.api,"fullscreentoggled",p.H_)}; g.xT=function(p){g.X.call(this,{X:"div",T:"ytp-more-videos-view",V:{tabIndex:"-1"}});var a=this;this.api=p;this.S=!0;this.U=new g.hm(this);this.L=[];this.suggestionData=[];this.columns=this.containerWidth=this.K=this.j=this.scrollPosition=0;this.title=new g.X({X:"h2",T:"ytp-related-title",yY:"{{title}}"});this.previous=new g.X({X:"button",A9:["ytp-button","ytp-previous"],V:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},N:[g.G7()]});this.G=new g.iw(function(l){a.suggestions.element.scrollLeft= -l}); this.next=new g.X({X:"button",A9:["ytp-button","ytp-next"],V:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},N:[g.Et()]});g.E(this,this.U);this.W=p.C().j;g.E(this,this.title);this.title.lT(this.element);this.suggestions=new g.X({X:"div",T:"ytp-suggestions"});g.E(this,this.suggestions);this.suggestions.lT(this.element);g.E(this,this.previous);this.previous.lT(this.element);this.previous.listen("click",this.dS,this);g.E(this,this.G);s6h(this);g.E(this,this.next);this.next.lT(this.element);this.next.listen("click", this.wS,this);this.U.J(this.api,"appresize",this.VQ);this.U.J(this.api,"fullscreentoggled",this.zH);this.U.J(this.api,"videodatachange",this.onVideoDataChange);this.VQ(this.api.Fu().getPlayerSize());this.onVideoDataChange()}; Fx=function(p,a){return g.lb(a,p.S).join(",")}; l7v=function(p){var a={veType:253246};return g.Es(function(){if(!a.veType)return R$(new g.kc("Error: Trying to graft a client VE without a veType.")),null;if(a.visibilityTypes){var l=a.visibilityTypes.reduce(function(y,S){return y|S}); l={visibility:{types:String(l)}}}l=FyO(a.veType,a.visualElement,a.elementIndex,a.clientYouTubeData,void 0,l);return dV(p,l)?l:null})()}; udE=function(p,a){var l;return p.L.equals(a)&&(!p.W.L||!p.L.isLocked()||((l=p.nextVideo)==null?void 0:l.info.id)===p.W.L)}; var dfh=function(p,a,l,y,S){return UM[Z[5]](this,1,p,a,l,y,S)}; g.EH=function(p){return p.mO.get("annotations_module")}; CZ=function(p){var a=null;try{a=p.toLocaleString("es",{style:"percent"})}catch(l){a=p.toLocaleString(void 0,{style:"percent"})}return a}; vP=function(p){for(var a=p.length;--a>=0;)p[a]=0}; XEa=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},N:[{X:"path",yL:!0,V:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}}; g.aV=function(p,a){p.classList?Array.prototype.forEach.call(a,function(l){g.b6(p,l)}):g.CY(p,Array.prototype.filter.call(bj(p),function(l){return!g.rW(a,l)}).join(" "))}; xfc=function(p,a,l,y){p.U.dispose();p.U=null;g.uD(p.element,"ytp-popup-animating");y?(g.uD(a.element,"ytp-panel-animate-forward"),g.b6(l.element,"ytp-panel-animate-back")):(g.uD(a.element,"ytp-panel-animate-back"),g.b6(l.element,"ytp-panel-animate-forward"));g.Pj(p.element,p.size);p.j=new g.l_(function(){g.b6(p.element,"ytp-popup-animating");a.detach();g.aV(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);p.j.dispose();p.j=null},250,p); p.j.start()}; tWM=function(p,a,l,y,S){g.D.call(this);this.webPlayerContextConfig=a;this.Wo=y;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.b_=this.yQ=this.bf=this.UU=this.userDisplayName=this.userDisplayImage=this.ej="";this.L={};this.va={};this.controlsType="0";this.Ha=NaN;this.Ps=!1;this.aM=(0,g.Ek)();this.eb=0;this.g3=this.Hk=!1;this.So=!0;this.preferGapless=this.fO=this.GO=this.U=this.Sa=!1;this.Ko=[];this.M2=!1;this.E9=0;p=p?g.j_(p):{};a&&a.csiPageType&&(this.csiPageType=a.csiPageType);a&& a.csiServiceName&&(this.csiServiceName=a.csiServiceName);a&&a.preferGapless&&(this.preferGapless=a.preferGapless);this.experiments=new Wh(a?a.serializedExperimentIds:p.fexp,a?a.serializedExperimentFlags:p.fflags,a!=null?a:{});this.forcedExperiments=a?a.serializedForcedExperimentIds:bl("",p.forced_experiments)||void 0;this.cspNonce=(a==null?0:a.cspNonce)?a.cspNonce:bl("",p.csp_nonce);Wcv(this.D("web_player_deprecated_uvr_killswitch"));try{var n=document.location.toString()}catch(yo){n=""}this.L1=n; this.ancestorOrigins=(y=window.location.ancestorOrigins)?Array.from(y):[];this.j=ID(!1,a?a.isEmbed:p.is_embed);a&&a.device?VXh(this,a.device):(this.L.c=p.c||"web",this.L.cver=p.cver||"html5",this.L.cplayer="UNIPLAYER");this.loaderUrl=a?this.j||saZ(this)&&a.loaderUrl?a.loaderUrl||"":this.L1:this.j||saZ(this)&&p.loaderUrl?bl("",p.loaderUrl):this.L1;this.j&&g.M8("yt.embedded_player.embed_url",this.loaderUrl);this.Z=bW(this.loaderUrl,Fr8);this.r8=hKv(this.loaderUrl);this.qc=ID(!1,p.privembed);this.protocol= this.L1.indexOf("http:")===0?"http":"https";this.M0=Bnh((a?a.customBaseYoutubeUrl:p.BASE_YT_URL)||"")||Bnh(this.L1)||this.protocol+"://www.youtube.com/";this.QY=lLO(this,a?a.eventLabel:p.el);okh();y=null;n=a?a.playerStyle:p.ps;var V=g.rW(Eh8,n);!n||V&&!this.Z||(y=n);this.playerStyle=y;this.G=g.rW(Eh8,this.playerStyle);this.houseBrandUserStatus=a==null?void 0:a.houseBrandUserStatus;this.Xu=this.G&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.W8=!this.Xu;this.nz=ID(!1,p.disableplaybackui); this.disablePaidContentOverlay=ID(!1,a==null?void 0:a.disablePaidContentOverlay);this.disableSeek=ID(!1,a==null?void 0:a.disableSeek);this.enableSpeedOptions=(a==null?void 0:a.enableSpeedOptions)||(MH().defaultPlaybackRate?YE||g.Ck||Jb?g.sX&&NG("20")||g.TE&&NG("4")||g.vL&&NG("11")||Rw():!(g.vL&&!g.g8("chrome")||YE||g.g8("android")||g.g8("silk")):!1);this.k$=ID(!1,p.enable_faster_speeds);var z;this.supportsVarispeedExtendedFeatures=(z=a==null?void 0:a.supportsVarispeedExtendedFeatures)!=null?z:!1; this.S=ID(this.playerStyle==="blazer",p.is_html5_mobile_device||a&&a.isMobileDevice);this.r7=Hz()||t$();this.w8=this.D("mweb_allow_background_playback")?!1:this.S&&!this.G;this.t9=pxf();this.jQ=g.CFM;var d;this.XT=!!(a==null?0:(d=a.embedsHostFlags)==null?0:d.optOutApiDeprecation);var G;a?a.hideInfo!==void 0&&(G=!a.hideInfo):G=p.showinfo;this.jr=g.wW(this)&&!this.XT||ID(!X6(this)&&!$N(this)&&!this.G,G);this.Sr=a?!!a.mobileIphoneSupportsInlinePlayback:ID(!1,p.playsinline);z=this.S&&vu&&KZ!=null&&KZ> 0&&KZ<=2.3;d=a?a.useNativeControls:p.use_native_controls;this.K=g.wW(this)&&this.S;G=this.S&&!this.K;d=g.CL(this)||!z&&ID(G,d)?"3":"1";this.disableOrganicUi=!(a==null||!a.disableOrganicUi);G=a?a.controlsType:p.controls;this.controlsType=this.disableOrganicUi||G==="0"||G===0?"0":d;this.Us=this.S;this.color=RD("red",a?a.progressBarColor:p.color,vha);this.cI=this.controlsType==="3";this.oo=!this.j;this.Xq=(d=!this.oo&&!$N(this)&&!this.Xu&&!this.G&&!X6(this))&&!this.cI&&this.controlsType==="1";this.Kt= g.iT(this)&&d&&this.controlsType==="0"&&!this.Xq&&!(a==null?0:a.embedsEnableEmc3ds);this.ED=this.UD=z;this.EC=(this.controlsType==="3"||this.S||ID(!1,p.use_media_volume))&&!this.K;this.yl=ER&&!g.PT(601)?!1:!0;this.Em=this.j||!1;this.n1=$N(this)?"":(this.loaderUrl||p.post_message_origin||"").substring(0,128);this.widgetReferrer=bl("",a?a.widgetReferrer:p.widget_referrer);var B;a?a.disableCastApi&&(B=!1):B=p.enablecastapi;B=!this.Z||ID(!0,B);z=!0;a&&a.disableMdxCast&&(z=!1);this.H9=this.D("enable_cast_for_web_unplugged")&& g.PD(this)&&z||g.dB(this)&&z||B&&z&&this.controlsType==="1"&&!this.S&&($N(this)||g.iT(this)||g.fL(this));this.eQ=!!window.document.pictureInPictureEnabled||Z_r();B=a?!!a.supportsAutoplayOverride:ID(!1,p.autoplayoverride);this.SD=!(this.S&&!g.wW(this))&&!g.g8("nintendo wiiu")||B;this.zy=(a?!!a.enableMutedAutoplay:ID(!1,p.mutedautoplay))&&!1;B=($N(this)||X6(this))&&this.playerStyle==="blazer";this.O2=a?!!a.disableFullscreen:!ID(!0,p.fs);z=g.dQ(g.g9(this))&&g.wW(this);this.Sb=!this.O2&&(B||g.YQ())&& !z;this.Zv=this.D("html5_picture_in_picture_logging_onresize");var c;this.qa=(c=g.sW(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?c:.33;this.h4=this.D("html5_picture_in_picture_blocking_onresize");this.NJ=this.D("html5_picture_in_picture_blocking_ontimeupdate");this.iA=this.D("html5_picture_in_picture_blocking_document_fullscreen");this.L9=this.D("html5_picture_in_picture_blocking_standard_api");c=e8()&&NG(58)&&!t$();B=bp||typeof MediaSource==="undefined";this.UM=this.D("uniplayer_block_pip")&& (c||B)||this.h4||this.NJ||this.L9;c=g.wW(this)&&!this.XT;var r;a?a.disableRelatedVideos!==void 0&&(r=!a.disableRelatedVideos):r=p.rel;this.vZ=c||ID(!this.G,r);this.fg=ID(!1,a?a.enableContentOwnerRelatedVideos:p.co_rel);this.Sl=t$()&&KZ>0&&KZ<=4.4?"_top":"_blank";this.TO=g.fL(this);this.LO=ID(this.playerStyle==="blazer",a?a.enableCsiLogging:p.enablecsi);switch(this.playerStyle){case "blogger":r="bl";break;case "discover-ads":r="da";break;case "gmail":r="gm";break;case "gac":r="ga";break;case "ads-preview":r= "ap";break;case "books":r="gb";break;case "docs":case "flix":r="gd";break;case "duo":r="gu";break;case "google-live":r="gl";break;case "google-one":r="go";break;case "play":case "play-ads":r="gp";break;case "chat":r="hc";break;case "hangouts-meet":r="hm";break;case "photos-edu":case "picasaweb":r="pw";break;default:r="yt"}this.UO=r;this.w7=bl("",a?a.authorizedUserIndex:p.authuser);this.Fh=g.wW(this)&&(this.qc||!ZlZ()||this.r7);var w;a?a.disableWatchLater!==void 0&&(w=!a.disableWatchLater):w=p.showwatchlater; this.OY=((r=!this.Fh)||!!this.w7&&r)&&ID(!this.Xu,this.Z?w:void 0);this.Ae=a?a.isMobileDevice||!!a.disableKeyboardControls:ID(!1,p.disablekb);this.loop=ID(!1,p.loop);this.pageId=bl("",a?a.initialDelegatedSessionId:p.pageid);this.yO=ID(!0,p.canplaylive);this.D7=2;this.Yv=ID(!1,p.livemonitor);this.disableSharing=ID(this.G,a?a.disableSharing:p.ss);this.f9=Hro(a&&this.D("fill_video_container_size_override_from_wpcc")?a.videoContainerOverride:p.video_container_override);this.mute=a?!!a.startMuted:ID(!1, p.mute);this.storeUserVolume=!this.mute&&ID(this.controlsType!=="0",a?a.storeUserVolume:p.store_user_volume);w=a?a.annotationsLoadPolicy:p.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:RD(void 0,w,e6);this.captionsLanguagePreference=a?a.captionsLanguagePreference||"":bl("",p.cc_lang_pref);w=RD(2,a?a.captionsLanguageLoadPolicy:p.cc_load_policy,e6);this.controlsType==="3"&&w===2&&(w=3);this.S8=w;this.o4=a?a.hl||"en_US":bl("en_US",p.hl);this.region=a?a.contentRegion||"US":bl("US", p.cr);this.hostLanguage=a?a.hostLanguage||"en":bl("en",p.host_language);this.RK=!this.qc&&Math.random()0?p:0}else p.G2().videoData.bf=p.playback.getCurrentTime()}; RMa=function(p,a,l,y){y=new OI(p.api,p.layoutId,p.interactionLoggingClientData,p.ZV,y,p.QY);y.lT(p.answers);y.init(y_("survey-answer"),a,l);p.Z&&(a=p.questionText.getAttribute("id"),a!=null&&(y.L!==null?y.L.S.setAttribute("aria-describedby",a):y.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",a)));p.S.push(y)}; uO1=function(p){function a(l){return{toString:function(){return l()}}} p.macros.SURVEY_LOCAL_TIME_EPOCH_S=a(function(){var l=new Date;return(Math.round(l.valueOf()/1E3)+-1*l.getTimezoneOffset()*60).toString()}); p.macros.SURVEY_ELAPSED_MS=a(function(){return(Date.now()-p.U).toString()})}; D$=function(p){g.JB(p.badge.element,"ytp-suggested-action-badge-with-controls",p.w7||!p.K)}; N0=function(p){for(;p.L.length&&!p.L[0].isEncrypted;){var a=p.L.shift(),l=a.videoId,y=a.Sp,S=a.formatId,n=a.buffer;a=a.sf;if(n)a=void 0,(a=y1(p.rA.kE,l))==null||Up(a,y,S,n);else if(a)p.rA.kE.Ri(l,y,S);else if(y=p.rA,y.L[S].j7=!0,l=y1(y.kE,l),l==null?0:l.ir.has(S))l==null||aS(l,S)}}; cHo=function(p,a,l){var y=0;if(a.info.L.info.EQ()&&!EzZ(a))return 0;if(p.Bs&&!p.Qh()){var S=0;l&&g.vA(a.info.L.info)?S=l-p.U:a.info.L.info.EQ()&&(S=p.Z);var n=a.info.Rc;l=kG(a,p.policy.EC);var V=p.Bs;var z=V.Kz;V=V.Z;var d=Math.abs(V-S)>.02;if((n===z||n>z&&n>p.Kz)&&d){y=Math.max(.95,Math.min(1.05,(l-(V-S))/l));if(g.vA(a.info.L.info))Bce(g.KU(a),y);else if(a.info.L.info.EQ()&&(n=S-V,!g.vA(a.info.L.info)&&(a.info.L.info.EQ(),y=new bt(g.KU(a)),z=a.W?y:new bt(new DataView(a.info.L.L.buffer)),kG(a,!0)))){var G= n*1E3,B=SF(z);z=y.pos;y.pos=0;if(y.L.getUint8(y.pos)===160||n6(y))if($C(y,160))if($u(y,!0),$C(y,155)){if(n=y.pos,d=$u(y,!0),y.pos=n,G=G*1E9/B,B=V6(y),G=B+Math.max(-B*.7,Math.min(B,G)),G=Math.sign(G)*Math.floor(Math.abs(G)),!(Math.ceil(Math.log(G)/Math.log(2)/8)>d)){y.pos=n+1;for(n=d-1;n>=0;n--)y.L.setUint8(y.pos+n,G&255),G>>>=8;y.pos=z}}else y.pos=z;else y.pos=z;else y.pos=z}y=kG(a,p.policy.EC);y=l-y}y&&a.info.L.info.EQ()&&p.loader.jl("webmDurationAdjustment",{durationAdjustment:y,videoDrift:S+y, audioDrift:V})}return y}; OAU=function(p,a,l,y,S,n,V,z,d,G,B,c,r){this.callback=p;this.slot=a;this.layout=l;this.WZ=y;this.zm=S;this.sO=n;this.xS=V;this.dG=z;this.oM=d;this.EO=G;this.uT=B;this.ac=c;this.gq=r;this.KF=!0;this.a4=this.Cx=null;this.adCpn=void 0;this.L=!1}; kq8=function(p,a,l){wt.call(this,"ad-message",p,void 0,a,l)}; iMF=function(p){return-((p.W.offsetWidth||(p.frameCount-1)*p.G*p.scale)-p.L/2)}; M$M=function(p,a,l,y,S,n,V,z){g.hm.call(this);var d=this;this.api=p;this.W=a;this.contextMenu=l;this.OQ=y;this.nh=S;this.L=n;this.G=V;this.progressBar=z;this.j=new g.l_(function(){kxO(d,!1)},1E3); this.S="";this.U={BT:!1,gy:!1,MZ:!1};g.E(this,this.j);this.J(a,"mousedown",function(){b1(d,!1)}); this.J(l.element,"mousedown",function(){b1(d,!1)}); this.J(a,"keydown",this.m8);this.J(l.element,"keydown",this.m8);this.J(a,"keyup",this.NT);this.J(l.element,"keyup",this.NT)}; mfc=function(){var p=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];CU().forEach(function(a){p.push(a)}); return{XX:p,OE:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; t$a=function(p,a){a=g.T9[a];return p.S<=a&&(!p.L||p.L>=a)}; YJq=function(p){p.videoData.Ps.clear();if(p.videoData.sabrContextUpdates.size>0)for(var a=g.t(p.videoData.sabrContextUpdates.keys()),l=a.next();!l.done;l=a.next()){l=l.value;var y=void 0;((y=p.videoData.sabrContextUpdates.get(l))==null?0:y.sendByDefault)&&p.videoData.Ps.add(l)}if(p.policy.UO&&p.L.length)for(a=g.t(p.L),l=a.next();!l.done;l=a.next())(l=l.value.EJ())&&l.type&&l.sendByDefault&&p.videoData.Ps.add(l.type)}; Ol=function(p){return{Y3:p.ac.get(),q8:!1,z2:p.lC()}}; TlZ=function(){var p=this;this.L=new Map;this.U=new Map;this.S=new Map;this.hg={daz:function(){return new Map(p.L)}}}; eC=function(p){var a=K1();g.Es(function(){var l=g.E8(p);dV(a,l);return l})()}; pFZ=function(p,a,l){p.MO=a;p.z9=l;a=g.t(p.ir);for(l=a.next();!l.done;l=a.next()){var y=g.t(l.value);l=y.next().value;y=y.next().value;for(var S=g.t(y.c_),n=S.next();!n.done;n=S.next()){n=n.value;var V=GBq(p,l,n);CAq(p,n.Sp,y,V)}}}; ege=function(p){if(p.U)if(p.j==="AD_PLACEMENT_KIND_START"&&p.actionType==="video_to_ad")MZ("video_to_ad");else{var a={adBreakType:GX(p.j),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:p.videoStreamType};p.actionType==="ad_to_video"?(p.contentCpn&&(a.targetCpn=p.contentCpn),p.videoId&&(a.targetVideoId=p.videoId)):(p.adCpn&&(a.targetCpn=p.adCpn),p.adVideoId&&(a.targetVideoId=p.adVideoId));p.adFormat&&(a.adType=p.adFormat);p.contentCpn&& (a.clientPlaybackNonce=p.contentCpn);p.videoId&&(a.videoId=p.videoId);p.adCpn&&(a.adClientPlaybackNonce=p.adCpn);p.adVideoId&&(a.adVideoId=p.adVideoId);g.Bs(a,p.actionType);p.B.C().experiments.Cz("html5_ads_csi_qoes")&&(a=p.B.Ho(p.actionType==="ad_to_video"?1:2),a=(0,g.Ek)()-1E3*a,dm("qoes",a,p.actionType))}}; jLo=function(){var p,a,l,y;return((y=DV().resolve(ix(jd))==null?void 0:(p=ud())==null?void 0:(a=p.loggingHotConfig)==null?void 0:(l=a.csiConfig)==null?void 0:l.debugTicks)!=null?y:[]).map(function(S){return Object.values(S)[0]})}; g.Ls=function(p){return encodeURIComponent(String(p))}; II=function(p,a,l){if(p.B.C().D("html5_dispose_modules_in_order"))for(var y=g.t(jr1),S=y.next();!S.done;S=y.next()){S=S.value;var n=p.mO.get(S);n&&(l||n.Z_(a))&&(g.p3(n),p.mO.delete(S))}else for(y=g.t(p.mO),S=y.next();!S.done;S=y.next())n=g.t(S.value),S=n.next().value,(n=n.next().value)&&(l||n.Z_(a))&&(g.p3(n),p.mO.delete(S));p.B.publish("modulesDestroyed",a)}; $1r=function(p,a,l,y,S,n,V){p=p===void 0?-1:p;a=a===void 0?"":a;l=l===void 0?"":l;y=y===void 0?!1:y;S=S===void 0?"":S;g.D.call(this);this.logSource=p;this.componentId=a;n?a=n:(p=new w0(p,"0"),p.componentId=a,g.E(this,p),l!==""&&(p.bS=l),y&&(p.j=!0),S&&FYr(p,S),V&&TMr(p,V),a=p.build());this.L=a}; oM=function(p){p.policy.vZ&&p.policy.Lg&&Math.min(yLe(p.videoTrack),yLe(p.audioTrack))*1E3>p.policy.ws?g.sb(p.qc):p.e5()}; wG=function(p,a,l){this.L=a;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=l||p(this.triggerType)}; vH=function(p,a,l){this.initData=p;this.contentType=a;this.isPrefetch=l;this.L=this.cryptoPeriodIndex=NaN;this.U=[];this.EQ=!1;this.S=null;if((a==null?void 0:a.toLowerCase())==="webm"||p.length===16)this.EQ=!0}; RIM=function(p,a,l){var y,S=(a==null?void 0:(y=a.L6)==null?void 0:y.identity)||Wa,n;a=a==null?void 0:(n=a.L6)==null?void 0:n.sessionIndex;p=p.L.MM(S,{sessionIndex:a});return Object.assign({},lVM(l),p)}; Vl=function(p){this.value=p}; jR=function(){rF.instance||(rF.instance=new rF);return rF.instance}; og=function(p,a){var l=p.j.get(a);if(l)return l;l=p.levels.length;for(var y=0;y=a)return p.j.set(a,y),y;p.j.set(a,l-1);return l-1}; rGh=function(p){return p.startsWith("//")?"https:"+p:p}; QxM=function(p,a){p.S.style.setProperty("--yt-slider-shape-gradient-percent",(a-p.j)/(p.W-p.j)*100+"%")}; icv=function(p){if(WrK.test(p))return p}; PQ=function(p){g.D.call(this);this.L=p;this.FF=!0;this.Ag=new Map;this.W=new Set;this.U=new Set;this.j=new Set;this.G=new Set;this.S=new Set}; QLZ=function(p,a,l){var y=[];y.push(new Qx(p.L,l));a&&y.push(a);return y}; QA=function(p){var a=new GnM,l;a.U=((l=YDE(p).cc)==null?void 0:l.toString())||"-";a.playbackRate=p.Lz.getPlaybackRate();l=p.Lz.getVisibilityState();l!==0&&(a.visibilityState=l);p.Y.Ps&&(a.S=1);a.j=p.videoData.Ve;a.compositeLiveStatusToken=p.videoData.compositeLiveStatusToken;a.heartbeatLoggingToken=p.videoData.heartbeatLoggingToken;l=p.Lz.getAudioTrack();l.Mc&&l.Mc.id&&l.Mc.id!=="und"&&(a.audioId=l.Mc.id);a.connectionType=IEM(p);a.volume=p.Lz.getVolume();a.muted=p.Lz.isMuted();a.clipId=p.Lz.zY()|| "-";a.L=p.videoData.eB||"-";return a}; HAc=function(p,a){var l=p.getCurrentTime(),y=p.isAtLiveHead(l);if(p.Z&&y){var S=p.Z;if(S.L&&!(l>=S.S&&l50&&S.S.shift())),S=p.L,ctE(S,l,a===void 0?!0:a),wyO(S,l),a&&ner(p,!0));y!==p.va&&(a=p.getCurrentTime()-p.Sb<=500,l=p.eb>=1E3,a||l||(a=p.Lz.rG,a.qoe&&(a=a.qoe,l=g.US(a.provider), g.pt(a,l,"lh",[y?"1":"0"])),p.va=y,p.eb++,p.Sb=p.getCurrentTime()))}; Dfc=function(p){p.j1E3;!(n.length>1)&&n[0].isEmpty()||z||(V.K=We(p,S));V.send();p.Sl++}},(S-l)*1E3); return p.j=S}; nA=function(p){var a=p.mediaElement;a&&p.RS&&!p.videoData.Sl&&!w1("vfp",p.QQ.timerName)&&a.w3()>=2&&!a.isEnded()&&m$(a.Vh())&&p.QQ.tick("vfp");return(a=p.mediaElement)&&!p.videoData.Sl&&a.getDuration()>0&&(a.isPaused()&&a.w3()>=2&&m$(a.Vh())&&(w1("pbp",p.QQ.timerName)||p.QQ.tick("pbp"),!p.videoData.Us||p.Ts||a.isSeeking()||(p.Ts=!0,p.publish("onPlaybackPauseAtStart"))),a=a.getCurrentTime(),hc(p.iF,a))?(p.bu(),!0):!1}; sr1=function(p,a,l,y,S){this.loader=p;this.policy=a;this.schedule=l;this.kV=y;this.Sl=S;this.UO=NaN;this.S=this.K=this.j=null;this.L=this.W=this.G=this.startTimeSecs=NaN;this.U=!1;this.Z=NaN}; $No=function(p){g.D.call(this);var a=this;this.VL=p;this.L=new Map;ok(this,"commandExecutorCommand",function(l,y,S){Fxe(a,l.commands,y,S)}); ok(this,"clickTrackingParams",function(){})}; Ph=function(p,a){if(!s1(a.get(),"html5_ssap_pass_transition_reason"))return 3;switch(p){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return hF("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return hF("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:p}),3;default:m5(p,"unknown layoutExitReason")}}; UfM=function(p,a,l){var y=PE(a.clientMetadata,"metadata_type_sodar_extension_data");if(y)try{u2E(l,y)}catch(S){hF("Unexpected error when loading Sodar",p,a,{error:S})}}; Zo=function(p){var a=p.isContentForward&&!p.wg();g.JB(p.badge.element,"ytp-suggested-action-badge-preview-collapsed",a&&p.L);g.JB(p.badge.element,"ytp-suggested-action-badge-preview-expanded",a&&p.S)}; QrK=function(p){if(!p.L)return null;var a=i4(p.L,"atr");return function(l){p.L&&qVE(p.L,l,a)}}; HgE=function(p){var a=0;p=g.t(p);for(var l=p.next();!l.done;l=p.next())a+=l.value.range.length;return a}; DHA=function(){this.j=this.U=this.L=this.timedOut=this.started=this.W=this.S=0}; h3=function(p){var a=p.yQ.x;a=g.Lu(a,0,p.G);p.XG.update(a,p.G);return p.XG}; VLM=function(p,a,l){l.Yv&&a--;YK(l)&&(a=1);if(dh(l)!==0&&(p=g.sW(p.experiments,"html5_live_chunk_readahead_proxima_override"))){a=p;var y;((y=l.L)==null?0:Mdo(y))&&a++}return a}; IF=function(p){this.state=p;this.plugins=[];this.U=void 0;this.j={};I2&&Jcq(this.state)}; JMh=function(p,a){p.bM&&p.bM.equals(a)||(p.bM&&p.bM.dispose(),p.bM=a)}; hM7=function(p,a){if(p.Y.ao()&&p.mediaElement){var l=p.mediaElement.mS();l.omt=(p.mediaElement.getCurrentTime()+p.Jg()).toFixed(3);l.ps=p.playerState.state.toString(16);l.rt=(g.US(p.rG.provider)*1E3).toFixed();l.e=a;p.WP[p.pM++%5]=l}}; Mt=function(p){Lp.call(this,p)}; ive=function(){return{XX:["metadata_type_valid_ad_message_renderer"],OE:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; lG=function(p){var a={ns:p.qc,el:p.eventLabel,cpn:p.clientPlaybackNonce,ver:2,cmt:p.S(p.L),fmt:p.Ct,fs:p.Fh?"1":"0",rt:p.S(p.Kt),adformat:p.adFormat,content_v:p.contentVideoId,euri:p.n1,lact:p.o4,live:p.TO,cl:(810467872).toString(),mos:p.OY,state:p.playerState,volume:p.SD};p.subscribed&&(a.subscribed="1");Object.assign(a,p.bf);p.Z==="all"?Object.assign(a,p.va):p.Z==="once"&&p.U&&Object.assign(a,p.va);p.autoplay&&(a.autoplay="1");p.vZ&&(a.sautoplay="1");p.Ha&&(a.dni="1");!p.W&&p.nz&&(a.epm=AZM[p.nz]); p.isFinal&&(a["final"]="1");p.Kz&&(a.splay="1");p.yQ&&(a.delay=p.yQ);p.OO&&(a.hl=p.OO);p.region&&(a.cr=p.region);p.userGenderAge&&(a.uga=p.userGenderAge);p.userAge!==void 0&&p.Yv&&(a.uga=p.Yv+p.userAge);p.Hs!==void 0&&(a.len=p.S(p.Hs));!p.W&&p.experimentIds.length>0&&(a.fexp=p.experimentIds.toString());p.K!==null&&(a.rtn=p.S(p.K));p.E9&&(a.feature=p.E9);p.E2&&(a.ctrl=p.E2);p.xz&&(a.ytr=p.xz);p.Sb&&(a.afmt=p.Sb);p.offlineDownloadUserChoice&&(a.ODUC=p.offlineDownloadUserChoice);p.UO&&(a.lio=p.S(p.UO)); p.W?(a.idpj=p.Ae,a.ldpj=p.L1,p.delayThresholdMet&&(a.dtm="1"),p.Sl!=null&&(a.rti=p.S(p.Sl)),p.qa&&(a.ald=p.qa),p.compositeLiveIngestionOffsetToken&&(a.clio=p.compositeLiveIngestionOffsetToken)):p.adType!==void 0&&(a.at=p.adType);p.O6&&(p.U||p.W)&&(a.size=p.O6);p.U&&p.G.length&&(a.pbstyle=p.G.join(","));p.EC!=null&&(p.U||p.W)&&(a.inview=p.S(p.EC));p.W&&(a.volume=Fx(p,g.lb(p.segments,function(y){return y.volume})),a.st=Fx(p,g.lb(p.segments,function(y){return y.startTime})),a.et=Fx(p,g.lb(p.segments, function(y){return y.endTime})),gf(p.segments,function(y){return y.playbackRate!==1})&&(a.rate=Fx(p,g.lb(p.segments,function(y){return y.playbackRate}))),gf(p.segments,function(y){return y.L!=="-"})&&(a.als=g.lb(p.segments,function(y){return y.L}).join(",")),gf(p.segments,function(y){return y.previouslyEnded})&&(a.pe=g.lb(p.segments,function(y){return""+ +y.previouslyEnded}).join(","))); a.muted=Fx(p,g.lb(p.segments,function(y){return y.muted?1:0})); gf(p.segments,function(y){return y.visibilityState!==0})&&(a.vis=Fx(p,g.lb(p.segments,function(y){return y.visibilityState}))); gf(p.segments,function(y){return y.connectionType!==0})&&(a.conn=Fx(p,g.lb(p.segments,function(y){return y.connectionType}))); gf(p.segments,function(y){return y.S!==0})&&(a.blo=Fx(p,g.lb(p.segments,function(y){return y.S}))); gf(p.segments,function(y){return!!y.j})&&(a.blo=g.lb(p.segments,function(y){return y.j}).join(",")); gf(p.segments,function(y){return!!y.compositeLiveStatusToken})&&(a.cbs=g.lb(p.segments,function(y){return y.compositeLiveStatusToken}).join(",")); gf(p.segments,function(y){return!!y.heartbeatLoggingToken})&&(a.hb_data=g.lb(p.segments,function(y){return y.heartbeatLoggingToken}).join(",")); gf(p.segments,function(y){return y.U!=="-"})&&(a.cc=g.lb(p.segments,function(y){return y.U}).join(",")); gf(p.segments,function(y){return y.clipId!=="-"})&&(a.clipid=g.lb(p.segments,function(y){return y.clipId}).join(",")); if(gf(p.segments,function(y){return!!y.audioId})){var l="au"; p.U&&(l="au_d");a[l]=g.lb(p.segments,function(y){return y.audioId}).join(",")}Er()&&p.Xu&&(a.ctt=p.Xu,a.cttype=p.eb,a.mdx_environment=p.mdxEnvironment); p.aM&&(a.etype=p.w7!==void 0?p.w7:0);p.Ps&&(a.uoo=p.Ps);p.livingRoomAppMode&&p.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(a.clram=ghM[p.livingRoomAppMode]||p.livingRoomAppMode);p.j?mvo(p,a):(a.docid=p.videoId,a.referrer=p.referrer,a.ei=p.eventId,a.of=p.Ze,a.osid=p.osid,a.vm=p.videoMetadata,p.adQueryId&&(a.aqi=p.adQueryId),p.autonav&&(a.autonav="1"),p.playlistId&&(a.list=p.playlistId),p.vk&&(a.ssrt="1"),p.vR&&(a.upt=p.vR));p.U&&(p.embedsRct&&(a.rct=p.embedsRct),p.embedsRctn&&(a.rctn= p.embedsRctn),p.compositeLiveIngestionOffsetToken&&(a.clio=p.compositeLiveIngestionOffsetToken));p.r7&&(a.host_cpn=p.r7);return a}; zRh=function(p,a){if(!(bp||Iw()||hd()))return null;p=mHe(a,p.D("html5_filter_fmp4_in_hls"));if(!p)return null;a=[];for(var l={},y=g.t(Object.keys(p)),S=y.next();!S.done;S=y.next()){S=g.t(p[S.value]);for(var n=S.next();!n.done;n=S.next()){var V=n.value;V.Mc&&(n=V.Mc.getId(),l[n]||(V=new g.b7(n,V.Mc),l[n]=V,a.push(V)))}}return a.length>0?a:null}; Aur=function(p){for(var a="",l=0;l0&&(n.HI=p.HI):p.VZ&&(n.VZ=p.VZ);n.wq=p.wq;n.R_=S.Kz;return n}; ZMo=function(p){if(g.sC(p))for(var a in p)a==="html_content"||He$(a,"_html")?p[a]=dG(p[a]):ZMo(p[a])}; qT=function(){Jc.instance||(Jc.instance=new Jc);return Jc.instance}; Fhf=function(p,a,l){if(!p||!a)return!1;a=V1(p.clone(),-a.left,-a.top);p=(a.left+a.right)/2;a=(a.top+a.bottom)/2;ii(window.top)&&window.top&&window.top.document&&(window=window.top);if(!rjo())return!1;p=window.document.elementFromPoint(p,a);if(!p)return!1;a=(a=(a=$c(l))&&a.defaultView&&a.defaultView.frameElement)&&ofr(a,p);var y=p===l;p=!y&&p&&rE(p,function(S){return S===l}); return!(a||y||p)}; JZG=function(p){if(fAA(p.videoTrack))return"ssf";if(p.policy.Kz&&zL(p.videoTrack)&&zL(p.audioTrack))return"updateEnd";if(YM(p.audioTrack)||YM(p.videoTrack)&&p.videoTrack.L.info.h9!=="f")return"";if(p.R9.isSeeking()){var a=p.Sl;var l=p.videoTrack;var y=p.audioTrack;if(a.policy.L){var S=a.policy.LO;I5(a.policy)&&(S=zKq(a,!1,JD(a)));a=S;l=qA(y,!0)>=a&&qA(l,!0)>=a}else l.U.length||y.U.length?(S=l.L.info.Lx+y.L.info.Lx,S=10*(1-JD(a)/S),a=Math.max(S,a.policy.LO),l=qA(y,!0)>=a&&qA(l,!0)>=a):l=!0;if(!l)return"abr"; l=p.videoTrack;if(l.U.length>0&&l.j.S.length===1&&LRh(l.j).info.Z360);y=I5(p.policy)&&p.policy.Hk;if(!p.fU||!y&&l)return"";l=p.policy.Yz;I5(p.policy)&&(l=zKq(p.Sl,p.fU,JD(p.Sl)));l=gLE(p.videoTrack,p.getCurrentTime(),l)||gLE(p.audioTrack,p.getCurrentTime(),l);return I5(p.policy)?l?"mbnm":"":(p.videoTrack.U.length> 0||p.audioTrack.U.length>0||p6M(p.W,p.videoTrack,p.audioTrack)||p6M(p.W,p.audioTrack,p.videoTrack))&&l?"nord":""}; WYO=function(p){Sa(p,"getInternalApiInterface",p.getInternalApiInterface);Sa(p,"addEventListener",p.o5);Sa(p,"removeEventListener",p.PCv);Sa(p,"cueVideoByPlayerVars",p.tC);Sa(p,"loadVideoByPlayerVars",p.A9T);Sa(p,"preloadVideoByPlayerVars",p.n3v);Sa(p,"getAdState",p.getAdState);Sa(p,"sendAbandonmentPing",p.sendAbandonmentPing);Sa(p,"setLoopRange",p.setLoopRange);Sa(p,"getLoopRange",p.getLoopRange);Sa(p,"setAutonavState",p.setAutonavState);Sa(p,"seekTo",p.BcV);Sa(p,"seekBy",p.gou);Sa(p,"seekToLiveHead", p.seekToLiveHead);Sa(p,"requestSeekToWallTimeSeconds",p.requestSeekToWallTimeSeconds);Sa(p,"seekToStreamTime",p.seekToStreamTime);Sa(p,"prefetchKeyPlay",p.prefetchKeyPlay);Sa(p,"startSeekCsiAction",p.startSeekCsiAction);Sa(p,"getStreamTimeOffset",p.getStreamTimeOffset);Sa(p,"getVideoData",p.h0);Sa(p,"setInlinePreview",p.setInlinePreview);Sa(p,"getAppState",p.getAppState);Sa(p,"updateLastActiveTime",p.updateLastActiveTime);Sa(p,"setBlackout",p.setBlackout);Sa(p,"setUserEngagement",p.setUserEngagement); Sa(p,"updateSubtitlesUserSettings",p.updateSubtitlesUserSettings);Sa(p,"getPresentingPlayerType",p.IB);Sa(p,"canPlayType",p.canPlayType);Sa(p,"updatePlaylist",p.updatePlaylist);Sa(p,"updateVideoData",p.updateVideoData);Sa(p,"updateEnvironmentData",p.updateEnvironmentData);Sa(p,"sendVideoStatsEngageEvent",p.s9c);Sa(p,"productsInVideoVisibilityUpdated",p.productsInVideoVisibilityUpdated);Sa(p,"setSafetyMode",p.setSafetyMode);Sa(p,"isAtLiveHead",function(a){return p.isAtLiveHead(void 0,a)}); Sa(p,"getVideoAspectRatio",p.getVideoAspectRatio);Sa(p,"getPreferredQuality",p.getPreferredQuality);Sa(p,"getPlaybackQualityLabel",p.getPlaybackQualityLabel);Sa(p,"setPlaybackQualityRange",p.no7);Sa(p,"onAdUxClicked",p.onAdUxClicked);Sa(p,"getFeedbackProductData",p.getFeedbackProductData);Sa(p,"getStoryboardFrame",p.getStoryboardFrame);Sa(p,"getStoryboardFrameIndex",p.getStoryboardFrameIndex);Sa(p,"getStoryboardLevel",p.getStoryboardLevel);Sa(p,"getNumberOfStoryboardLevels",p.getNumberOfStoryboardLevels); Sa(p,"getCaptionWindowContainerId",p.getCaptionWindowContainerId);Sa(p,"getAvailableQualityLabels",p.getAvailableQualityLabels);Sa(p,"addCueRange",p.addCueRange);Sa(p,"addUtcCueRange",p.addUtcCueRange);Sa(p,"showAirplayPicker",p.showAirplayPicker);Sa(p,"dispatchReduxAction",p.dispatchReduxAction);Sa(p,"getPlayerResponse",p.Zx);Sa(p,"getWatchNextResponse",p.SH);Sa(p,"getHeartbeatResponse",p.Tt);Sa(p,"getCurrentTime",p.Gt);Sa(p,"getDuration",p.Bm);Sa(p,"getPlayerState",p.getPlayerState);Sa(p,"getPlayerStateObject", p.qq);Sa(p,"getVideoLoadedFraction",p.getVideoLoadedFraction);Sa(p,"getProgressState",p.getProgressState);Sa(p,"getVolume",p.getVolume);Sa(p,"setVolume",p.yH);Sa(p,"isMuted",p.isMuted);Sa(p,"mute",p.Qk);Sa(p,"unMute",p.I2);Sa(p,"loadModule",p.loadModule);Sa(p,"unloadModule",p.unloadModule);Sa(p,"getOption",p.aB);Sa(p,"getOptions",p.getOptions);Sa(p,"setOption",p.setOption);Sa(p,"loadVideoById",p.U0);Sa(p,"loadVideoByUrl",p.jX);Sa(p,"playVideo",p.Vm);Sa(p,"loadPlaylist",p.loadPlaylist);Sa(p,"nextVideo", p.nextVideo);Sa(p,"previousVideo",p.previousVideo);Sa(p,"playVideoAt",p.playVideoAt);Sa(p,"getDebugText",p.getDebugText);Sa(p,"getWebPlayerContextConfig",p.getWebPlayerContextConfig);Sa(p,"notifyShortsAdSwipeEvent",p.notifyShortsAdSwipeEvent);Sa(p,"getVideoContentRect",p.getVideoContentRect);Sa(p,"setSqueezeback",p.setSqueezeback);Sa(p,"toggleSubtitlesOn",p.toggleSubtitlesOn);Sa(p,"isSubtitlesOn",p.isSubtitlesOn);Sa(p,"getAudioTrack",p.A0);Sa(p,"setAudioTrack",p.HvV);Sa(p,"getAvailableAudioTracks", p.kN);Sa(p,"reportPlaybackIssue",p.reportPlaybackIssue);Sa(p,"setAutonav",p.setAutonav);Sa(p,"isNotServable",p.isNotServable);Sa(p,"channelSubscribed",p.channelSubscribed);Sa(p,"channelUnsubscribed",p.channelUnsubscribed);Sa(p,"togglePictureInPicture",p.togglePictureInPicture);Sa(p,"supportsGaplessAudio",p.supportsGaplessAudio);Sa(p,"supportsGaplessShorts",p.supportsGaplessShorts);Sa(p,"enqueueVideoByPlayerVars",function(a){return void p.enqueueVideoByPlayerVars(a)}); Sa(p,"clearQueue",p.clearQueue);Sa(p,"getMaxPlaybackQuality",p.getMaxPlaybackQuality);Sa(p,"getUserPlaybackQualityPreference",p.getUserPlaybackQualityPreference);Sa(p,"getSubtitlesUserSettings",p.getSubtitlesUserSettings);Sa(p,"resetSubtitlesUserSettings",p.resetSubtitlesUserSettings);Sa(p,"setMinimized",p.setMinimized);Sa(p,"setOverlayVisibility",p.setOverlayVisibility);Sa(p,"confirmYpcRental",p.confirmYpcRental);Sa(p,"queueNextVideo",p.queueNextVideo);Sa(p,"handleExternalCall",p.handleExternalCall); Sa(p,"logApiCall",p.logApiCall);Sa(p,"isExternalMethodAvailable",p.isExternalMethodAvailable);Sa(p,"setScreenLayer",p.setScreenLayer);Sa(p,"getCurrentPlaylistSequence",p.getCurrentPlaylistSequence);Sa(p,"getPlaylistSequenceForTime",p.getPlaylistSequenceForTime);Sa(p,"shouldSendVisibilityState",p.shouldSendVisibilityState);Sa(p,"syncVolume",p.syncVolume);Sa(p,"highlightSettingsMenuItem",p.highlightSettingsMenuItem);Sa(p,"openSettingsMenuItem",p.openSettingsMenuItem);Sa(p,"getEmbeddedPlayerResponse", p.getEmbeddedPlayerResponse);Sa(p,"getVisibilityState",p.getVisibilityState);Sa(p,"isMutedByMutedAutoplay",p.isMutedByMutedAutoplay);Sa(p,"isMutedByEmbedsMutedAutoplay",p.isMutedByEmbedsMutedAutoplay);Sa(p,"setGlobalCrop",p.setGlobalCrop);Sa(p,"setInternalSize",p.setInternalSize);Sa(p,"setFauxFullscreen",p.setFauxFullscreen);Sa(p,"setAppFullscreen",p.setAppFullscreen)}; fea=function(p,a){var l=p[a];l!==void 0&&l>0&&(p[a]=Math.floor(l*1E3))}; uL=function(p,a){return p.fv(a)?p.jb():a}; pM_=function(p){var a=p.getVideoData().N7,l=p.Y.Ps,y=p.isInline()&&!p.getVideoData().ZS,S=p.mediaElement;a||l||y?S.fn():(S.g2(),vV(p,p.zD))}; o8F=function(p){if(p.instreamVideoAdRenderer===void 0)return hF("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var a=g.t(p.Nd),l=a.next();!l.done;l=a.next()){l=l.value;if(l.FR===void 0)return!1;if(l.hK===void 0)return hF("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(p.HT===void 0||l.tE===void 0||p.HT!==l.tE&&l.tE!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(p.instreamVideoAdRenderer.elementId===void 0)return hF("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:p.HT,"matching APSR kind":l.tE}),!1}return!0}; ko=function(p){this.NO=Dm(p)}; mIq=function(p){if(!ouh(p))return!1;p=g.T(p.adStart,WD);return p?zc(p)?!0:(hF("Invalid LASR with notify"),!1):!1}; al_=function(p){if(g.oO("web_lifecycle_error_handling_killswitch"))return p();try{return p()}catch(a){SYM(a)}}; GZ=function(p,a){p.L!==a&&(p.L=a,p.S=!0)}; gnE=function(p,a,l,y){y=y===void 0?0:y;if(p.j){var S=p.j.S+p.j.U;if(l.info.S>0)if(l.info.Rc===p.j.Rc&&l.info.S=0&&p.j.Rc>=0&&!PL(p.j,l.info))throw new g.kc("improper_continuation",p.j.AP(),l.info.AP());Viq(p.j,l.info)||IB(p,"d")}else if(l.info.S>0)throw new g.kc("continuation_of_null",l.info.AP());p.j=l.info;p.W=l.info.L;if(l.info.S===0){if(p.L)if(!p.loader.isOffline()||p.policy.So)p.loader.jl("slice_not_fully_processed", {buffered:p.L.info.AP(),push:l.info.AP()});else throw new g.kc("slice_not_fully_processed",p.L.info.AP(),l.info.AP());A8(p);p.Hs=y}else{if(p.Hs&&y&&p.Hs!==y)throw p=new g.kc("lmt_mismatch",l.info.Rc,p.Hs,y),p.level="WARNING",p;!l.info.L.G4()&&p.G&&(y=l.info,S=p.G.OM,y.K="updateWithEmsg",y.Rc=S)}if(p.L){y=g.Ez(p.L,l);if(!y)throw new g.kc("failed_to_merge",p.L.info.AP(),l.info.AP());p.L=y}else p.L=l;a:{l=g.vA(p.L.info.L.info);if(p.L.info.type!==3){if(!p.L.info.j)break a;p.L.info.type===6?rHZ(p,a,p.L): Dmr(p,p.L);p.L=null}for(;p.L;){y=p.L.S.totalLength;if(p.w7<=0&&p.Sl===0){var n=p.L.S,V=-1;S=-1;if(l){for(var z=0;z+80))break;if(c!==408125543)if(c===524531317)z=!0,B>=0&&(S=n.A4()+B,d=!0);else{if(z&&(c===160||c===163)&&(V<0&&(V=G),d))break;c===163&&(V=Math.max(0,V),S=n.A4()+B);if(c===160){V<0&&(S=V=n.A4()+ B);break}n.skip(B)}}V<0&&(S=-1)}if(V<0)break;p.w7=V;p.Sl=S-V}if(p.w7>y)break;p.w7?(y=eEf(p,p.w7),y.W&&MnO(p,y),rHZ(p,a,y),gg(p,y),p.w7=0):p.Sl&&(y=eEf(p,p.Sl<0?Infinity:p.Sl),p.Sl-=y.S.totalLength,gg(p,y))}}p.L&&p.L.info.j&&(gg(p,p.L),p.L=null)}; g.Lu=function(p,a,l){return Math.min(Math.max(p,a),l)}; KDe=function(p){if(p.Sl){var a;if((a=p.videoData.Hk)==null?0:a.Uz)p.Sl=!1;else if(g.xV(p.videoData))p.Sl=!1;else{a="ss";var l=0,y;((y=p.videoData.L)==null?0:y.isManifestless)&&p.videoData.eb&&!YP(p)&&(a="mss",l=p.videoData.eb);(p.videoData.w7?p.D("html5_prioritize_windowed_st_start_seconds"):p.D("html5_prioritize_st_start_seconds"))&&!l&&p.videoData.o4&&(a="stss",l=p.videoData.o4);!l&&$IM(p)&&(l=p.videoData.liveUtcStartSeconds||p.videoData.eb,a="utc",l=p.Lh()-p.d$(p.Lh())+l);!l&&p.videoData.ke()&& p.videoData.o4&&(a="stss",l=p.videoData.o4);y={};if(l){if(l>p.Lh()||l=a&&S.end<=l&&(p.playback.removeCueRange(S),p.S.delete(S.getId()),p.wG({rmAdCR:1}));y=zf(p,a/1E3);a=y.MR;y=y.S1;a&&(y=y*1E3-a.QL,yDA(p,a,y,a.QL+y),y=p.S.get(a.cpn))&&(y.start=a.QL,y.end=a.QL+a.durationMs);if(a=zf(p,l/1E3).MR){var n;y="playback_timelinePlaybackId_"+a.a4+"_video_id_"+((n=a.videoData)==null?void 0:n.videoId)+"_durationMs_"+a.durationMs+ "_enterTimeMs_"+a.QL+"_parentReturnTimeMs_"+a.fh;p.Tf("Invalid_clearEndTimeMs_"+l+"_that_falls_during_"+y+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; g.ZM=function(p,a){return p in v5?v5[p]:a}; E5$=function(p){p.Xu=!1;var a=Zc(LO().sC,"rmmt")==1,l=!!p.Pf("isViewable");(a?!l:1)&&CO().setTimeout(TR(524,function(){p.Xu||(vHq(p),Jf(540,Error()),p.K="mt",p.fail("w"))}),500); kcO(p);XW(p,p.S.Fq.AFMA_LIDAR,CgA)}; y4h=function(){return{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}}; lZZ=function(p,a){p.QY=!0;p.D("html5_use_centralized_player_time")&&(p.S=p.G,p.U=p.S,p.G=NaN);Li$(p,a)}; l0=function(){return jj||Wy?!!Si&&!!Si.platform:!1}; Nu=function(p){return p.B.C().experiments.Cz("html5_preload_ads")}; g.tr=function(p,a){return p.classList?p.classList.contains(a):g.rW(bj(p),a)}; fg=function(p){g.X.call(this,{X:"div",A9:["ytp-player-content","ytp-iv-player-content"],N:[{X:"div",T:"ytp-free-preview-countdown-timer",N:[{X:"span",yY:"{{label}}"},{X:"span",T:"ytp-free-preview-countdown-timer-separator",yY:"\u2022"},{X:"span",yY:"{{duration}}"}]}]});this.api=p;this.L=null;this.U=this.S=0;this.J(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; La=function(p){var a=0;p=g.t(p.questions);for(var l=p.next();!l.done;l=p.next())if(l=l.value,l=g.T(l,bL)||g.T(l,Is)){var y=void 0;a+=((y=l.surveyAdQuestionCommon)==null?void 0:y.durationMilliseconds)||0}return a}; viv=function(p,a,l,y,S,n,V,z,d,G,B,c,r,w,P){y=Ga(y,"SLOT_TYPE_PLAYER_BYTES");p=C7M(S,p,V,l,y,d,G);if(p instanceof W)return p;var F;G=(F=PE(p.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:F.layoutId;if(!G)return new W("Invalid adNotify layout");a=wzv(G,S,n,l,z,a,d,B,c,r,w,P,V);return a instanceof W?a:[p].concat(g.u0(a))}; Y$=function(p){g.D.call(this);this.aq=p;this.Ag=new Map}; OH=function(p,a){Array.isArray(a)&&(a=a.join(" "));a===""||a==void 0?(llG||(a={},llG=(a.atomic=!1,a.autocomplete="none",a.dropeffect="none",a.haspopup=!1,a.live="off",a.multiline=!1,a.multiselectable=!1,a.orientation="vertical",a.readonly=!1,a.relevant="additions text",a.required=!1,a.sort="none",a.busy=!1,a.disabled=!1,a.hidden=!1,a.invalid="false",a)),a=llG,"label"in a?p.setAttribute("aria-label",a.label):p.removeAttribute("aria-label")):p.setAttribute("aria-label",a)}; yBU=function(p,a){return rov(p,a)?(p.pn?p.pn.start():p.LL(),!0):!1}; zUO=function(p,a){a||(a=Math.ceil(Math.log(p+2)/Math.log(2)/7));for(var l=1<<8-a,y=[];y.length=z,d=p.MO.isManifestless,V){var G;if(((G=p.L)==null?void 0:G.YE.event)==="predictStart"&&p.L.Rc0?l:0;l=y?Date.now()+y*1E3:0;if((y=y?g.qY.xD():g.qY.gJ())&&window.JSON){typeof a!=="string"&&(a=JSON.stringify(a,void 0));try{y.set(p,a,l)}catch(S){y.remove(p)}}}; YWr=function(p,a,l){if(l){var y="";fRh(p,a)&&(y=a,p.api.C().VY=a);if(y&&yAe(p,y)){s0v(p.api,y);var S;z0(dj(p.api.C(),(S=p.api.getVideoData())==null?void 0:g.HH(S)),function(n){var V=y;l2o(n)!==V&&qW$(p,Ip(n),{stringValue:V})})}}}; hd=function(){return g.g8("cobalt")&&g.g8("appletv")}; BG8=function(p,a){if(a=a.find(function(l){return!(!l||!l.tooltipRenderer)}))p.tooltipRenderer=a.tooltipRenderer}; bP=function(p,a,l,y){Yi.call(this,p,a,l,y,[],"ad-mute-confirm-dialog")}; yR=function(p,a,l){return(l<0||l===p.G)&&!isNaN(p.K)?p.K:a}; rBG=function(p,a,l,y,S,n,V){var z=new g.Vi;cB7.push(z);a&&z.listen("complete",a);z.FL("ready",z.EW);n&&(z.UO=Math.max(0,n));V&&(z.K=V);z.send(p,l,y,S)}; wMc=function(){this.L=[];this.S=[]}; k8f=function(){this.L=new Map}; g.qu=function(p){p=p===void 0?!1:p;g.D.call(this);this.QS=new g.Y2(p);g.E(this,this.QS)}; WLv=function(p){g.oO("gel_compression_csi_killswitch")||!g.oO("log_gel_compression_latency")&&!g.oO("log_gel_compression_latency_lr")||Sq("gel_compression",p,{sampleRate:.1})}; YOF=function(p){if(!p.S){p.S=!0;var a=p.Lz.getPlayerState();a=a.isPaused()||a.isSuspended();p.Lz.zf();a&&!eX(p.videoData)||p.Lz.publish("signatureexpired")}}; RWv=function(p){for(var a=g.t(p.S),l=a.next();!l.done;l=a.next())l=l.value,l.detach(),g.p3(l);p.S=[]}; Qp=function(p,a,l){return{ssvc:a,cpn:(l==null?void 0:l.cpn)||"",vid:(l==null?void 0:l.videoData.videoId)||"",ct:(p.playback.getCurrentTime()||0).toFixed(3),cmt:(p.playback.Bi()||0).toFixed(3)}}; $77=function(p){zo(p,"impression")&&!zo(p,"seek")&&p.h5("audio_audible")}; Qd=function(p,a){a=a===void 0?NaN:a;a=a>=0?a:g.US(p.provider);var l=p.provider.Lz.YD(),y=l.KN-(p.nz||0);y>0&&g.pt(p,a,"bwm",[y,(l.X4-(p.O6||0)).toFixed(3)]);isNaN(p.nz)&&l.KN&&p.isOffline&&p.eN(!1);p.nz=l.KN;p.O6=l.X4;isNaN(l.bandwidthEstimate)||g.pt(p,a,"bwe",[l.bandwidthEstimate.toFixed(0)]);p.provider.Y.ao()&&Object.keys(l.L).length!==0&&p.jl("bwinfo",l.L);if(p.provider.Y.ao()||p.provider.Y.D("html5_log_meminfo"))y=NxF(),Object.values(y).some(function(n){return n!==void 0})&&p.jl("meminfo",y); if(p.provider.Y.ao()){var S;(y=(S=p.VY)==null?void 0:AtM(S))&&Object.values(y).some(function(n){return n!=null})&&p.jl("cpuinfo",y)}p.OO&&p.jl("jsprof",p.OO.flush()); p.Sl&&g.pt(p,a,"bat",[p.Sl.level,p.Sl.charging?"1":"0"]);S=p.provider.Lz.getVisibilityState();p.vZ!==S&&(g.pt(p,a,"vis",[S]),p.vZ=S);MLq(p,a);(S=IEM(p.provider))&&S!==p.qc&&(g.pt(p,a,"conn",[S]),p.qc=S);fx(p,a,l)}; kgq=function(p){return tsM(p)}; ul=function(p,a){this.Ws=p;this.author="";this.QI=null;this.playlistLength=0;this.L=this.sessionData=null;this.Z={};this.title="";if(a){this.author=a.author||a.playlist_author||"";this.title=a.playlist_title||"";if(p=a.session_data)this.sessionData=kt(p,"&");var l;this.L=((l=a.thumbnail_ids)==null?void 0:l.split(",")[0])||null;this.Z=L5(a,"playlist_");this.videoId=a.video_id||void 0;if(l=a.list)switch(a.listType){case "user_uploads":this.playlistId=(new $S("UU","PLAYER_"+l)).toString();break;default:if(p= a.playlist_length)this.playlistLength=Number(p)||0;this.playlistId=PY(l).toString();if(a=a.video)this.videoId=(a[0]||null).video_id||void 0}else a.playlist&&(this.playlistLength=a.playlist.toString().split(",").length)}}; xx=function(p){return Math.round(mG()+p)}; dYM=function(p,a){a<0||(p.S.forEach(function(l){ZDM(l,a)}),p.timestampOffset=a)}; dGA=function(p,a,l){DPe(a);var y=p.L;g.Bf(a,function(S){var n=g.lb(S.criteria,function(V){var z=pCq(V);if(z==null)V=null;else if(V=new P_B,z.visible!=null&&(V.L=z.visible/100),z.audible!=null&&(V.S=z.audible==1),z.time!=null){var d=z.timetype=="mtos"?"mtos":"tos",G=He$(z.time,"%")?"%":"ms";z=parseInt(z.time,10);G=="%"&&(z/=100);V.setTime(z,G,d)}return V}); gf(n,function(V){return V==null})||j6F(l,new Qb(S.id,S.event,n,y))})}; Ye=function(p){this.value=p}; $_M=function(p,a,l,y,S){a=g.T(a.renderingContent,iQ);if(!a)return new W("Invalid rendering content for DAI media layout");p=[new yK(y),new iv(l.Q1.videoLengthSeconds),new GK(l.Q1.playerVars),new Ye(l.La),new qM(l.yB),new ZD(l.Oi),new ei(nj(p)),new d7(l.Q1.adVideoId),new zK(l.tD),a.sodarExtensionData&&new br(a.sodarExtensionData),new BN({current:null}),new P2({}),new WQ(HQ(a.pings))].filter(w5r);S!==void 0&&p.push(new hw(S));return p}; DC=function(p,a,l,y,S,n){n=n===void 0?0:n;hg.call(this,p,a,y,void 0);this.W=l;this.FP=n;this.index=S||new g.MW}; LsO=function(p,a,l,y,S,n,V,z,d,G,B,c){return function(r,w){if(Wi(B)&&Nu(B))a:{var P=A2v(y,l,B);if(P instanceof W)w=P;else{for(var F=0,v=[],I=[],b=[],O=[],m=[],H=[],Y=new Id({current:null}),N=new cb({current:null}),yo=!1,zq=[],S$=0,BE=[],f=0;f0?S$:-1;else if(xh=g.T(f,lp)){f= ZEe(p,a,l,xh,n,F,z,N,S$);if(f instanceof W){w=f;break a}f=f(r);v.push(f.sY);I=[].concat(g.u0(f.gA),g.u0(I));b=[].concat(g.u0(f.gh),g.u0(b));f.T9&&(zq=[f.T9].concat(g.u0(zq)))}else if(xh=g.T(f,YV)){if(w===void 0){w=new W("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:xh});break a}f=zlv(p,a,l,n,xh,Y,z,w,F,s1(B,"supports_multi_step_on_desktop"));if(f instanceof W){w=f;break a}f=f(r);v.push(f.sY);f.T9&&zq.push(f.T9);I=[].concat(g.u0(f.gA),g.u0(I)); b=[].concat(g.u0(f.gh),g.u0(b));O=[].concat(g.u0(f.tT),g.u0(O));m=[].concat(g.u0(f.vC),g.u0(m));H=[Y].concat(g.u0(H))}else if(f=g.T(f,Wx)){f=mEM(p,a,l,n,f,Y,z,F);if(f instanceof W){w=f;break a}f=f(r);v.push(f.sY);f.T9&&zq.push(f.T9);b=[].concat(g.u0(f.gh),g.u0(b))}else{w=new W("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}w={z4:v,layoutExitSkipTriggers:I,layoutExitUserInputSubmittedTriggers:O,layoutExitUserCancelledTriggers:m,layoutExitMuteTriggers:b,RN:H,tN:zq}}}else a:if(F= A2v(y,l,B),F instanceof W)w=F;else{v=0;I=[];b=[];O=[];m=[];H=[];Y=[];N=new Id({current:null});yo=new cb({current:null});zq=!1;BE=[];S$=-1;P=g.t(y);for(f=P.next();!f.done;f=P.next())if(f=f.value,g.T(f,jJ)){f=h3o(a,l,g.T(f,jJ),z);if(f instanceof W){w=f;break a}f=f(r);I.push(f.sY);b=[].concat(g.u0(f.gA),g.u0(b));O=[].concat(g.u0(f.gh),g.u0(O));f.T9&&(BE=[f.T9].concat(g.u0(BE)))}else if(g.T(f,iQ)){S$=u3(g.T(f,iQ),l,B);if(S$ instanceof Xd){w=new W(S$);break a}f=new NH(v,F);f=lXv(a,S$.layoutId,S$.Q5,l, sS(S$.playerVars,S$.GW,V,G,f),S$.uc,n,f,z(r),yo,d.get(S$.Q5.externalVideoId),void 0,c);v++;I.push(f.sY);b=[].concat(g.u0(f.gA),g.u0(b));O=[].concat(g.u0(f.gh),g.u0(O));zq||(Y.push(yo),zq=!0);S$=(S$=S$.Q5.adPodSkipTarget)&&S$>0?S$:-1}else if(g.T(f,lp)){f=ZEe(p,a,l,g.T(f,lp),n,v,z,yo,S$);if(f instanceof W){w=f;break a}f=f(r);I.push(f.sY);b=[].concat(g.u0(f.gA),g.u0(b));O=[].concat(g.u0(f.gh),g.u0(O));f.T9&&(BE=[f.T9].concat(g.u0(BE)))}else if(g.T(f,YV)){if(w===void 0){w=new W("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.T(f,YV)});break a}f=zlv(p,a,l,n,g.T(f,YV),N,z,w,v,s1(B,"supports_multi_step_on_desktop"));if(f instanceof W){w=f;break a}f=f(r);I.push(f.sY);f.T9&&BE.push(f.T9);b=[].concat(g.u0(f.gA),g.u0(b));O=[].concat(g.u0(f.gh),g.u0(O));m=[].concat(g.u0(f.tT),g.u0(m));H=[].concat(g.u0(f.vC),g.u0(H));Y=[N].concat(g.u0(Y))}else if(g.T(f,Wx)){f=mEM(p,a,l,n,g.T(f,Wx),N,z,v);if(f instanceof W){w=f;break a}f=f(r);I.push(f.sY);f.T9&&BE.push(f.T9);O=[].concat(g.u0(f.gh),g.u0(O))}else{w=new W("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}w={z4:I,layoutExitSkipTriggers:b,layoutExitUserInputSubmittedTriggers:m,layoutExitUserCancelledTriggers:H,layoutExitMuteTriggers:O,RN:Y,tN:BE}}w instanceof W?r=w:(H=r.slotId,F=w.z4,v=w.layoutExitSkipTriggers,I=w.layoutExitMuteTriggers,b=w.layoutExitUserInputSubmittedTriggers,O=w.RN,r=z(r),m=S?S.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",H=S?S.layoutId:xc(a.S.get(),m,H),Y={layoutId:H,layoutType:m,iT:"core"},r={layout:{layoutId:H,layoutType:m,Xh:new Map,layoutExitNormalTriggers:[new Ce(a.L, H)],layoutExitSkipTriggers:v,layoutExitMuteTriggers:I,layoutExitUserInputSubmittedTriggers:b,layoutExitUserCancelledTriggers:[],iT:"core",clientMetadata:new Lc([new Vp(F)].concat(g.u0(O))),nx:r(Y)},tN:w.tN});return r}}; pPo=function(p,a){var l=p.liveBadge.element,y=p.api.isLifaAdPlaying();l.disabled=y||a;!tG(p)||p.K===a&&p.G===p.isPremiere||(p.K=a,p.G=p.isPremiere,p.rq(),a?l.classList.add("ytp-live-badge-is-livehead"):l.classList.remove("ytp-live-badge-is-livehead"),p.api.D("web_player_misc_bugfix_c")&&p.liveIndicatorText?p.liveBadge.setContent(p.liveIndicatorText):p.liveBadge.setContent(p.isPremiere?"Estreno":"En directo"),a?p.L&&(p.L(),p.L=null,l.removeAttribute("data-tooltip-title")):(l.setAttribute("data-tooltip-title", "Accede a la emisi\u00f3n en directo"),p.L=g.gh(p.tooltip,p.liveBadge.element)))}; zp=function(p){var a;if((a=p.Ic)==null||!a.uK()){if(p.mediaElement)try{p.w0=p.mediaElement.playVideo()}catch(y){N5(p,"err."+y)}if(p.w0){var l=p.w0;l.then(void 0,function(y){if(!(g.h(p.playerState,4)||g.h(p.playerState,256)||p.w0!==l||y&&y.name==="AbortError"&&y.message&&y.message.includes("load"))){var S="promise";y&&y.name&&(S+=";m."+y.name);N5(p,S);p.O$=!0;p.videoData.TO=!0}})}}}; foZ=function(p,a){p.settingsButton=a;p.element.id=a.element.getAttribute("aria-controls")}; g.kT=function(p,a,l){g.bh.call(this,p);this.videoData=a;this.audioTrack=l;this.L=null;this.j=!1;this.W=a.sI;this.Z=a.X9;this.j=g.zi(a)}; ry=function(p){if(p.D("html5_onesie")&&p.errorCode)return!1;var a=g.rW(p.Bs,"ypc");p.ypcPreview&&(a=!1);return p.Me()&&!p.loading&&(g.ua(p)||g.rW(p.Bs,"heartbeat")||a)}; g.Lcc=function(p){var a=p.C();return a.vZ&&!a.U&&g.wW(a)?p.isEmbedsShortsMode()?(p=p.uU(),Math.min(p.width,p.height)>=315):!p.Yo():!1}; Cf=function(p,a){if(te(p,a)){a=me(p);var l=Xb(p.L,p.pos,a);p.pos+=a;return l}}; g.XMB=function(p){var a=p.vssId;p.translationLanguage&&a&&(a="t"+a+"."+g.sG(p));return a}; z81=function(p,a){var l=a.raw_watch_next_response;if(!l){var y=a.watch_next_response;y&&(l=JSON.parse(y))}if(l){p.Hs=l;var S=p.Hs.playerCueRangeSet;S&&g.SH(p,S);var n=p.Hs.playerOverlays;if(n){var V=n.playerOverlayRenderer;if(V){var z=V.autonavToggle;z&&(p.autoplaySwitchButtonRenderer=g.T(z,x7c),p.D("web_player_autonav_use_server_provided_state")&&nr(p)&&(p.autonavState=p.autoplaySwitchButtonRenderer.enabled?2:1));var d=V.videoDetails;if(d){var G=d.embeddedPlayerOverlayVideoDetailsRenderer;var B= d.playerOverlayVideoDetailsRenderer;B&&(B.title&&(a.title=g.Sw(B.title)),B.subtitle&&(a.subtitle=g.Sw(B.subtitle)))}g.iT(p.Ws)&&(p.OY=!!V.addToMenu);lYO(p,V.shareButton);V.startPosition&&V.endPosition&&(p.progressBarStartPosition=V.startPosition,p.progressBarEndPosition=V.endPosition);var c=V.gatedActionsOverlayRenderer;c&&(p.y9z=g.T(c,Fca));var r,w,P,F=g.T((r=p.getWatchNextResponse())==null?void 0:(w=r.playerOverlays)==null?void 0:(P=w.playerOverlayRenderer)==null?void 0:P.infoPanel,ZCM);if(F){p.vr= Number(F==null?void 0:F.durationMs)||NaN;if(F==null?0:F.infoPanelOverviewViewModel)p.Sa=F==null?void 0:F.infoPanelOverviewViewModel;if(F==null?0:F.infoPanelDetailsViewModel)p.So=F==null?void 0:F.infoPanelDetailsViewModel}p.showSeekingControls=!!V.showSeekingControls}}var v,I,b=(v=p.getWatchNextResponse())==null?void 0:(I=v.contents)==null?void 0:I.twoColumnWatchNextResults;if(b){var O=b.desktopOverlay&&g.T(b.desktopOverlay,E1U);O&&(O.suppressShareButton&&(p.showShareButton=!1),O.suppressWatchLaterButton&& (p.OY=!1))}G&&yQe(p,a,G);var m=fz(0,a.autoplay_count),H=p.getWatchNextResponse(),Y,N=(Y=H.contents)==null?void 0:Y.twoColumnWatchNextResults,yo,zq,S$,BE=(yo=H.playerOverlays)==null?void 0:(zq=yo.playerOverlayRenderer)==null?void 0:(S$=zq.autoplay)==null?void 0:S$.playerOverlayAutoplayRenderer,f=bbE(p),xh,Nf=(xh=H.contents)==null?void 0:xh.singleColumnWatchNextResults;if(Nf){var nc;if(((nc=Nf.autoplay)==null?0:nc.autoplay)&&!Nf.playlist){var yU=Nf.autoplay.autoplay.sets,kh={},OM=new Od(p.C()),q7=null, u_;if(yU){for(var i_=g.t(yU),p8=i_.next();!p8.done;p8=i_.next()){var G5=p8.value.autoplayVideoRenderer;if(G5&&G5.compactVideoRenderer){q7=G5.compactVideoRenderer;break}}if(u_=yU[0].autoplayVideo){var km=u_.clickTrackingParams;km&&(kh.itct=km);kh.autonav="1";kh.playnext=String(m)}}else kh.feature="related-auto";var Kc=g.T(u_,g.SK);if(q7){OM.videoId=q7.videoId;var lF=q7.shortBylineText;lF&&(OM.author=g.Sw(lF));var eb=q7.title;eb&&(OM.title=g.Sw(eb))}else Kc!=null&&Kc.videoId&&(OM.videoId=Kc.videoId); OM.QI=kh;p.suggestions=[];p.fg=OM}}if(f){for(var C=[],ar=g.t(f),e_=ar.next();!e_.done;e_=ar.next()){var qQ=e_.value,jb=void 0,Qo=null;if(qQ.endScreenVideoRenderer){var pc=qQ.endScreenVideoRenderer,yB=pc.title;Qo=new Od(p.C());Qo.videoId=pc.videoId;Qo.lengthSeconds=pc.lengthInSeconds||0;var U7=pc.publishedTimeText;U7&&(Qo.publishedTimeText=g.Sw(U7));var K=pc.shortBylineText;K&&(Qo.author=g.Sw(K));var x=pc.shortViewCountText;x&&(Qo.shortViewCount=g.Sw(x));if(yB){Qo.title=g.Sw(yB);var e=yB.accessibility; if(e){var k=e.accessibilityData;k&&k.label&&(Qo.ariaLabel=k.label)}}var Q=pc.navigationEndpoint;if(Q){jb=Q.clickTrackingParams;var or=g.T(Q,g.SK),U=g.T(Q,g.vX);or?Qo.cC=or:U!=null&&(Qo.watchUrl=U.url)}var J=pc.thumbnailOverlays;if(J)for(var M=g.t(J),e$=M.next();!e$.done;e$=M.next()){var PM=e$.value.thumbnailOverlayTimeStatusRenderer;if(PM)if(PM.style==="LIVE"){Qo.isLivePlayback=!0;break}else if(PM.style==="UPCOMING"){Qo.isUpcoming=!0;break}}Qo.Z=lL(pc.thumbnail)}else if(qQ.endScreenPlaylistRenderer){var Ze= qQ.endScreenPlaylistRenderer,za=Ze.navigationEndpoint;if(!za)continue;var hZ=g.T(za,g.SK);if(!hZ)continue;var KA=hZ.videoId;Qo=new ul(p.C());Qo.playlistId=Ze.playlistId;Qo.playlistLength=Number(Ze.videoCount)||0;Qo.L=KA||null;Qo.videoId=KA;var aO=Ze.title;aO&&(Qo.title=g.Sw(aO));var vM=Ze.shortBylineText;vM&&(Qo.author=g.Sw(vM));jb=za.clickTrackingParams;Qo.Z=lL(Ze.thumbnail)}Qo&&(jb&&(Qo.sessionData={itct:jb}),C.push(Qo))}p.suggestions=C}if(BE){p.PD=!!BE.preferImmediateRedirect;p.Kt=p.Kt||!!BE.webShowNewAutonavCountdown; p.X_=p.X_||!!BE.webShowBigThumbnailEndscreen;if(p.Kt||p.X_){var WM=N||null,bF=new Od(p.C());bF.videoId=BE.videoId;var CF=BE.videoTitle;if(CF){bF.title=g.Sw(CF);var uF=CF.accessibility;if(uF){var M7=uF.accessibilityData;M7&&M7.label&&(bF.ariaLabel=M7.label)}}var b_=BE.byline;b_&&(bF.author=g.Sw(b_));var z5=BE.publishedTimeText;z5&&(bF.publishedTimeText=g.Sw(z5));var R2=BE.shortViewCountText;R2&&(bF.shortViewCount=g.Sw(R2));var f0=BE.thumbnailOverlays;if(f0)for(var S_=g.t(f0),UW=S_.next();!UW.done;UW= S_.next()){var mc=UW.value.thumbnailOverlayTimeStatusRenderer;if(mc)if(mc.style==="LIVE"){bF.isLivePlayback=!0;break}else if(mc.style==="UPCOMING"){bF.isUpcoming=!0;break}else if(mc.style==="DEFAULT"&&mc.text){bF.lengthText=g.Sw(mc.text);var I1=mc.text.accessibility;if(I1){var gW=I1.accessibilityData;gW&&gW.label&&(bF.bx=gW.label||"")}break}}bF.Z=lL(BE.background);var xp=BE.nextButton;if(xp){var TF=xp.buttonRenderer;if(TF){var pX=TF.navigationEndpoint;if(pX){var ak=g.T(pX,g.SK);ak&&(bF.cC=ak)}}}if(BE.topBadges){var z6= BE.topBadges[0];if(z6){var vf=g.T(z6,C_l);vf&&vf.style==="BADGE_STYLE_TYPE_PREMIUM"&&(bF.K7O=!0)}}var sh=BE.alternativeTitle;sh&&(bF.UG=g.Sw(sh));var Y9={autonav:"1",playnext:String(m)};bF.playlistId&&(Y9.autoplay="1");if(WM){var Uh,lK,Fs,Nw,K0=(Uh=WM.autoplay)==null?void 0:(lK=Uh.autoplay)==null?void 0:(Fs=lK.sets)==null?void 0:(Nw=Fs[0])==null?void 0:Nw.autoplayVideo;if(K0){var lW=K0.clickTrackingParams;lW&&(Y9.itct=lW);var e2=g.T(K0,g.SK);e2&&(bF.q4=e2)}}else if(BE){var yj,Sj,nX,Vj=(yj=BE.nextButton)== null?void 0:(Sj=yj.buttonRenderer)==null?void 0:(nX=Sj.navigationEndpoint)==null?void 0:nX.clickTrackingParams;Vj&&(Y9.itct=Vj)}Y9.itct||(Y9.feature="related-auto");bF.QI=Y9;p.suggestions||(p.suggestions=[]);p.fg=bF}BE.countDownSecs!=null&&(p.DR=BE.countDownSecs*1E3);BE.countDownSecsForFullscreen!=null&&(p.LP=BE.countDownSecsForFullscreen>=0?BE.countDownSecsForFullscreen*1E3:-1);p.D("web_autonav_color_transition")&&BE.watchToWatchTransitionRenderer&&(p.watchToWatchTransitionRenderer=g.T(BE.watchToWatchTransitionRenderer, v1c))}var bB=bbE(p);if(bB){var dW,Zm,tq,jc=bB==null?void 0:(dW=bB[0])==null?void 0:(Zm=dW.endScreenVideoRenderer)==null?void 0:(tq=Zm.navigationEndpoint)==null?void 0:tq.clickTrackingParams,lg=g.oz(p);jc&&lg&&(lg.sessionData={itct:jc})}p.Hs.currentVideoThumbnail&&(p.Z=lL(p.Hs.currentVideoThumbnail));var Qj,hK,AK,IJ,SB,Iv=(Qj=p.Hs)==null?void 0:(hK=Qj.contents)==null?void 0:(AK=hK.twoColumnWatchNextResults)==null?void 0:(IJ=AK.results)==null?void 0:(SB=IJ.results)==null?void 0:SB.contents;if(Iv&&Iv[0]){var Ig= Iv[0].videoPrimaryInfoRenderer;Ig&&Ig&&Ig.subtitle&&(p.Mw=g.Sw(Ig.subtitle))}if(Iv&&Iv[1]){var RJ,g3,KF,YF,nP=(RJ=Iv[1].videoSecondaryInfoRenderer)==null?void 0:(g3=RJ.owner)==null?void 0:(KF=g3.videoOwnerRenderer)==null?void 0:(YF=KF.thumbnail)==null?void 0:YF.thumbnails;nP&&nP.length&&(p.profilePicture=nP[nP.length-1].url)}var UU=Zs(a),WZ,uk=(WZ=p.getWatchNextResponse())==null?void 0:WZ.onResponseReceivedEndpoints;if(uk)for(var OO=g.t(uk),HZ=OO.next();!HZ.done;HZ=OO.next()){var u6=HZ.value;g.T(u6, MS)&&(p.Xy=g.T(u6,MS));var fm=g.T(u6,KcK),Fp=void 0;if((Fp=fm)==null?0:Fp.entityKeys)p.PH=fm.entityKeys||[],fm.visibleOnLoadKeys&&(p.visibleOnLoadKeys=fm.visibleOnLoadKeys)}if(p.D("web_key_moments_markers")){var kP=g.q6.getState().entities,Zw=g.m8("visibility_override","markersVisibilityOverrideEntity");var G3=ur(kP,"markersVisibilityOverrideEntity",Zw);p.VY=(G3==null?void 0:G3.videoId)===(p.videoId||UU)&&(G3==null?0:G3.visibilityOverrideMarkersKey)?G3.visibilityOverrideMarkersKey:p.visibleOnLoadKeys; p.visibleOnLoadKeys=[].concat(g.u0(p.VY))}}}; YsM=function(p){p.U.length?p.S=g.Jt(g.Jt(p.U).info.mT):p.j.S.length?p.S=p.j.ai().info:p.S=cH(p)}; YM_=function(p,a,l,y,S,n,V,z,d,G,B,c){g.D.call(this);this.pN=p;this.slot=a;this.layout=l;this.sE=y;this.Qr=S;this.ac=n;this.WZ=V;this.BZ=z;this.Ye=d;this.sO=G;this.params=c;this.FF=!0;p=$z(B);if(!p)throw Error("Invalid params for sublayout");this.PZ=p}; uP=function(p,a){this.triggeringSlotId=a;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=p(this.triggerType)}; kN=function(p,a,l){var y=y===void 0?800:y;var S=S===void 0?600:S;var n=document.location.protocol;p=Obe(n+"//"+p+"/signin?context=popup","feature",a,"next",n+"//"+location.hostname+"/post_login");kAv(p,l,y,S)}; Gq8=function(p,a){for(var l=g.t(a.keys()),y=l.next();!y.done;y=l.next())if(y=a.get(y.value),y.length!==0){g.Ei(y,function(z,d){return d.maxFramerate-z.maxFramerate}); for(var S=[y[0]],n=0,V=1;V>=a}; IlU=function(p){var a,l=(a=p.api.getVideoData())==null?void 0:a.vy();return p.api.getPresentingPlayerType(l)!==2}; RBq=function(p){var a=e8()&&en()>=67&&!p.api.C().K;p=p.api.C().disableOrganicUi;return!g.g8("tizen")&&!Jb&&!a&&!p}; UtM=function(p,a,l,y){if(j1.instance!==void 0){if(y=j1.instance,p=[p!==y.GJ,a!==y.lN,l!==y.L,!1,!1,!1,void 0!==y.U],p.some(function(S){return S}))throw new g.kc("InnerTubeTransportService is already initialized",p); }else j1.instance=new j1(p,a,l,y)}; R82=function(p){g.X.call(this,{X:"div",T:"ytp-title-channel",N:[{X:"div",T:"ytp-title-beacon"},{X:"a",T:"ytp-title-channel-logo",V:{href:"{{channelLink}}",target:p.C().Sl,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{X:"div",T:"ytp-title-expanded-overlay",V:{"aria-hidden":"{{flyoutUnfocusable}}"},N:[{X:"div",T:"ytp-title-expanded-heading",N:[{X:"div",T:"ytp-title-expanded-title",N:[{X:"a",yY:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:p.C().Sl,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{X:"div",T:"ytp-title-expanded-subtitle",yY:"{{expandedSubtitle}}",V:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var a=this;this.api=p;this.channel=this.d7("ytp-title-channel");this.S=this.d7("ytp-title-channel-logo");this.channelName=this.d7("ytp-title-expanded-title");this.W=this.d7("ytp-title-expanded-overlay");this.U=this.L=this.subscribeButton=null;this.j=!1;p.createClientVe(this.S,this,36925);p.createClientVe(this.channelName,this, 37220);g.wW(this.api.C())&&Lrl(this);this.J(p,"videodatachange",this.pz);this.J(p,"videoplayerreset",this.pz);this.J(this.channelName,"click",function(l){a.api.logClick(a.channelName);g.vd(window,Pj$(a));l.preventDefault()}); this.J(this.S,"click",this.Agc);this.pz()}; uKB=function(p){var a=p[0];p[0]=p[3];p[3]=a;a=p[1];p[1]=p[2];p[2]=a;a=p[4];p[4]=p[5];p[5]=a;a=p[6];p[6]=p[7];p[7]=a}; eSo=function(p){var a,l,y,S,n,V,z,d,G;return g.R(function(B){if(B.L==1){if(p.Gm())return B.return(Promise.reject(Error(p.status.error||"disposed")));p.timeout.start();return g.u(B,p.Om,2)}a=p.L.F7();if(a.isEnded())return p.jj("ended_in_finishTransition"),B.return(Promise.reject(Error(p.status.error||"")));if(!p.j||!WA(p.j))return p.jj("next_mse_closed"),B.return(Promise.reject(Error(p.status.error||"")));if(p.S.D_()!==p.j)return p.jj("next_mse_mismatch"),B.return(Promise.reject(Error(p.status.error|| "")));l=VY(p);y=l.At;S=l.nL;n=l.Ia;p.L.Rd(!1,!0);V=m6M(a,y,n,!p.S.getVideoData().isAd());p.S.setMediaElement(V);(z=p.L.Mj())&&p.S.Fw(z.RL,z.kA);p.Z&&(p.policy.L||p.S.seekTo(p.S.getCurrentTime()+.001,{PA:!0,aC:3,JP:"gapless_pseudo"}),V.play());d=a.mS();d.cpn=p.L.getVideoData().clientPlaybackNonce;d.st=""+y;d.et=""+n;p.S.jl("gapless",d);p.L.jl("gaplessTo",{cpn:p.S.getVideoData().clientPlaybackNonce});G=p.L.getPlayerType()===p.S.getPlayerType();p.L.f_(S,!0,!1,G,p.S.getVideoData().clientPlaybackNonce); p.S.f_(p.S.getCurrentTime(),!0,!0,G,p.L.getVideoData().clientPlaybackNonce);p.S.Cm();g.VU(function(){!p.S.getVideoData().Sl&&p.S.getPlayerState().isOrWillBePlaying()&&p.S.bu()}); VO(p,6);p.dispose();return B.return(Promise.resolve())})}; kaB=function(p,a){var l,y=(l=window.screen)==null?void 0:l.orientation;if(p.Y.K&&y&&y.lock&&(!g.TE||!Oca))if(a){a=y.type.indexOf("portrait")===0;l=p.template.getVideoAspectRatio();var S=a;l<1?S=!0:l>1&&(S=!1);p.qr&&S===a||(y=y.lock(S?"portrait":"landscape"),y!=null&&y.catch(function(){}),p.qr=!0)}else p.qr&&(p.qr=!1,y.unlock())}; qHe=function(p,a){g.X.call(this,{X:"button",A9:["ytp-fullscreen-button","ytp-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},yY:"{{icon}}"});this.B=p;this.S=a;this.message=null;this.L=g.gh(this.S.ZI(),this.element);this.U=new g.l_(this.Xn,2E3,this);g.E(this,this.U);this.J(p,"fullscreentoggled",this.z_); this.J(p,"presentingplayerstatechange",this.pz);this.J(p,"resize",this.pz);this.listen("click",this.onClick);g.YQ()&&(a=this.B.Fu(),this.J(a,CJZ(),this.e$),this.J(a,zo$(document),this.zH));p.C().Sb||p.C().K||this.disable();p.createClientVe(this.element,this,139117);this.pz();this.z_(p.isFullscreen())}; g.oWh=function(p,a,l){var y=a.query;a=a.direction;p="openKeyCursor"in IDBObjectStore.prototype?p.L.openKeyCursor(y,a):p.L.openCursor(y,a);return D8h(p).then(function(S){return qE(S,l)})}; uyf=function(p,a,l,y,S){if(!y.info.j){if(l.length===0)l.push(y);else{var n;(p=(n=l.pop())==null?void 0:g.Ez(n,y))?l.push(p):l.push(y)}return S}var V;(l=(V=l.pop())==null?void 0:g.Ez(V,y))||(l=y);if(l.info.S)return p.logger&&p.logger({incompleteSegment:l.info.AP()}),S;y=p.Pn(l);S=y.Rc;y={clipId:y.clipId,formatId:y.formatId,startTimeMs:y.startTimeMs,durationMs:y.iE,bX:S,jD:S};S=Djh(a,y.startTimeMs);if(n=l=S>=0?a[S]:null){n=y;var z=S;V=l.startTimeMs+l.durationMs;var d=n.startTimeMs+n.durationMs;if(n.startTimeMs- V>p.S)n=!1;else if(DXh(p,l.formatId,n.formatId))l.durationMs=Math.max(V,d)-l.startTimeMs,l.jD=Math.max(l.jD,n.jD),n=!0;else if(Math.abs(l.startTimeMs-n.startTimeMs)<=p.S)if(l.durationMs>n.durationMs+p.S){var G=l.formatId,B=l.bX;z=l.jD;l.formatId=n.formatId;l.durationMs=n.durationMs;l.bX=n.bX;l.jD=n.jD;n.formatId=G;n.startTimeMs=d;n.durationMs=V-d;n.bX=B;n.jD=z;n=!1}else l.formatId=n.formatId,n=!0;else V>n.startTimeMs&&(V>d&&(a.splice(z+1,0,{formatId:l.formatId,startTimeMs:d,durationMs:V-d,bX:n.jD+ 1,jD:l.jD}),p.logger&&p.logger({splitOldStart:(G=l.startTimeMs)==null?void 0:G.toFixed(3),splitOldEnd:V==null?void 0:V.toFixed(3),splitNewStart:(B=n.startTimeMs)==null?void 0:B.toFixed(3),splitNewEnd:d==null?void 0:d.toFixed(3)})),l.durationMs=n.startTimeMs-l.startTimeMs,l.jD=n.bX-1),n=!1}n?y=l:(S+=1,a.splice(S,0,y));G=0;for(B=S+1;B=d+l.S?l=!0:z+l.S=p.provider.videoData.yQ;return!!a}; Qdr=function(p,a){p.U=a}; EXO=function(p,a,l){var y=g.t(p.index?bk(p.logger,function(){return ROe(glO(a),l)},"R"):["u"]),S=y.next().value; y=y.next().value;p.logger.CF(S);return y}; NGW=function(){var p=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];CU().forEach(function(a){p.push(a)}); return{XX:p,OE:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; s2W=function(p,a,l){if(l>=p.L.length)return!1;var y=p.G-Mp(p)*p.Hs;return Math.abs(a-p.L[l].startTime/1E3)/p.U.L*y<4}; U7c=function(p,a){var l=NaN;p=g.t(p.array);for(var y=p.next();!y.done;y=p.next())if(y=y.value,y.contains(a)&&(isNaN(l)||y.enda&&(isNaN(l)||y.start32}):!1}; Qr=function(p,a){a=(a=a===void 0?0:a)?Math.round(p.timestampOffset*a)/a:p.timestampOffset;p.W.j&&a&&(a+=p.W.j.L);return a+p.getDuration()}; pP=function(p){if(p instanceof si)return p.L;throw Error("");}; MZe=function(p,a,l,y,S){var n=p.provider.Y.L.cbrver;p.provider.Y.L.cbr==="Chrome"&&/^96[.]/.test(n)&&l==="net.badstatus"&&/rc\.500/.test(S)&&lec(p,3);p.provider.Y.D("html5_use_ump")&&/b248180278/.test(S)&&lec(p,4);n=p.provider.getCurrentTime(p.adCpn||p.provider.videoData.clientPlaybackNonce);y=y===1?"fatal":"";l=[l,y,n.toFixed(3)];y&&(S+=";a6s."+Co());S&&l.push(vBh(S));g.pt(p,a,"error",l);p.j=!0}; JJe=function(p,a){if(a.R_)for(var l=0;l0;a=[];if(y){S=(new Intl.NumberFormat("en-u-nu-latn")).format(S);var n=["fr"],V="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(" "); S="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(WP)?S.replace(",","\u00a0"):n.includes(WP)?S.replace(",","\u202f"):V.includes(WP)?S.replace(",","."):S;a.push(S)}y=y===void 0?!1:y;l=(["af","be","lt"].includes(WP)||y)&&l<10?Cle().format(l):(new Intl.NumberFormat("en-u-nu-latn")).format(l);a.push(l);l=Cle().format(p);a.push(l);l=":";"da fi id si sr sr-Latn".split(" ").includes(WP)&&(l=".");return a.join(l)}; agh=function(p){p.Gm()||(p.Sl=!0,p.HG({onmdkrdy:1}),H9(p))}; g.ZAK=function(p,a,l){var y=l.W,S=[],n=[],V=l.D("html5_shorts_onesie_mismatched_fix");p=p.LC();var z=Uw.concat(RXv);V&&(z=Uw.concat(uuq));l.D("html5_early_media_for_drm")&&(z=z.concat(OBM),l.D("allow_vp9_1080p_mq_enc")&&z.push(kmo));var d=[].concat(g.u0(M9q));l.D("html5_iamf_audio_onesie_fmt")&&d.push(["773"]);z=g.t(z);for(var G=z.next();!G.done;G=z.next()){G=g.t(G.value);for(var B=G.next();!B.done;B=G.next()){B=B.value;var c=ZK(B,p&&V);if(c&&c.video){var r=g.sW(l.experiments,"html5_drm_byterate_soft_cap"); if(!(r>0&&z1A(c)&&c.Lx>r)&&e1(a,c,y)===!0){S.push({videoCodec:df1[lw[B]],maxWidth:c.video.width,maxHeight:c.video.height,maxFramerate:c.video.fps});break}}}}V=g.t(d);for(p=V.next();!p.done;p=V.next())for(p=g.t(p.value),d=p.next();!d.done;d=p.next())if(d=d.value,(z=$uO(d))&&z.audio&&(l.D("html5_onesie_51_audio")||!jz(z)&&!x0(z))&&e1(a,z,y)===!0){n.push({audioCodec:oha[lw[d]],numChannels:z.audio.numChannels});break}return{videoFormatCapabilities:S,audioFormatCapabilities:n}}; UC=function(p){return!(!p||!p[qWb])}; z0=function(p,a,l){var y=Csr(),S=y.Ix,n=y.resolve,V=y.reject;p.S.push(function(z){if(a)try{var d=a(z);n(d)}catch(G){V(G)}else n(z)}); p.U.push(function(z){if(l)try{var d=l(z);n(d)}catch(G){V(G)}else V(z)}); yoA(p);return S}; JBc=function(p){for(var a=g.t(p.ir),l=a.next();!l.done;l=a.next()){var y=g.t(l.value);l=y.next().value;y=y.next().value;y.nP||xA(p,l)}}; RFM=function(p,a,l){a.J(l,"keyboardserviceglobalkeydown",function(y,S){p.U&&y.keyCode===86&&!y.repeat&&p.S!==0&&(S&&(S.MZ=!0),p.Xu("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); a.J(p.api.getRootNode(),"wheel",function(y){if(!p.Sl){var S;if(p.U&&(S=p.W)!=null&&S.element&&!g.h(p.api.getPlayerStateObject(),2)&&p.S!==0&&t0(p))if(g.uD(p.api.getRootNode(),"ytp-grid-scrolling"),p.j===0&&(p.j=window.innerHeight),p.S===1)p.j!==0&&(p.L+=y.deltaY/p.j,p.L=g.Lu(p.L,0,.7),kV(p),aOe(p,p.K/p.j+p.L>=.7,2));else if(p.S===2){S=y.deltaY<0;var n,V=((n=p.W)==null?void 0:n.element.scrollTop)===0;n=p.L!==0;S&&V||n&&!S?p.j!==0&&(p.L=Math.max(0,p.L-y.deltaY/p.j),kV(p),aOe(p,p.K/p.j+Math.abs(p.L)>= .7,1)):p.L!==0&&(p.L=0,kV(p))}}},p,!0); a.J(l,"standardControlsInitialized",function(){if(!p.W){p.W=new cP(p.api,p.nz.bind(p));p.QY&&(p.UO=new m3(p.api),g.E(p,p.UO),p.UO.element.setAttribute("data-overlay-order","12"),p.api.n0(p.UO.element,4),p.UO.listen("click",p.Xu,p));g.E(p,p.W);var y=p.api.getRootNode().querySelector(".ytp-chrome-bottom");y&&y.parentNode&&y.parentNode.insertBefore(p.W.element,y.nextSibling);Mhr(p)}}); a.J(l,"presentingplayerstatechange",function(){j8(p)}); a.J(l,"autonavvisibility",function(){j8(p)}); p.api.TM().subscribe("visibilitystatechange",function(){j8(p)}); mVr(p,p.S)}; mOA=function(p){Gg=p}; flU=function(p){I2&&p&&Jcq(p)}; HP=function(p){this.name=p}; qW$=function(p,a,l){q5e([{settingItemId:a,settingOptionValue:l}]);z0(p.eE(),function(y){vyM(y,a,l)})}; T4h=function(p,a,l){p.videoInfos=p.G;p.videoInfos=g.Tz(p.videoInfos,function(y){return y.video.qualityOrdinal>=a&&y.video.qualityOrdinal<=l})}; pdW=function(p,a){var l=a.getAudioTrack();return l.id!=="und"?g.Tz(p,function(y){var S;return((S=y.Mc)==null?void 0:S.name)===l.getLanguageInfo().name}):p}; Do=function(p,a,l,y,S){JF.call(this,p,{X:"div",T:"ytp-ad-player-overlay-layout",N:[{X:"div",T:"ytp-ad-player-overlay-layout__player-card-container"},{X:"div",T:"ytp-ad-player-overlay-layout__ad-info-container"},{X:"div",T:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{X:"div",T:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",a,l,y);this.S=S;this.QY=this.d7("ytp-ad-player-overlay-layout__player-card-container");this.L=this.d7("ytp-ad-player-overlay-layout__ad-info-container"); this.Z=this.d7("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Xu=this.d7("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; aY_=function(){}; i1=function(p){return p.S.every(function(a){return a.hasOwnProperty("offsetMilliseconds")})}; O1Z=function(p,a){if(udE(p,a))return null;if(a.reason==="m"&&a.isLocked())return Kt(p,a),p.Z=p.j.length-1,jG(p),uu(p),p.Xu=p.Xu||p.U!==p.nextVideo,p.U=p.nextVideo,new oR(p.S,p.U,a.reason);a.reason==="r"&&(p.Sl=-1);Kt(p,a);uu(p);if(a.reason==="r"&&p.nextVideo===p.U)return new oR(p.S,p.nextVideo,a.reason);p.U&&p.nextVideo&&f5(p,p.U.info)=y.length)return;if(l<0)throw Error("Missing data");p.j=p.U;p.S=0}for(S={};ll||(y.push(Math.max(a,p.start(n))-a),S.push(Math.min(l,p.end(n))-a));return fe(y,S)}; rt=function(p,a,l){p.S=a;p.startTime=(0,g.Ek)();p.duration=l;p.L()}; ZRF=function(p,a){return Math.abs(yPU*a-p)<1||Math.abs(yPU/p-a)<1?yPU:p/a}; Xa=function(p,a){NQ(p,1,a.itag);NQ(p,2,a.lmt);Ym(p,3,a.xtags)}; g.Xl=function(p){for(var a in p)return a}; Joe=function(p,a){g.X.call(this,{X:"button",A9:["ytp-subtitles-button","ytp-button"],V:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},N:[p.D("delhi_modern_web_player_icons")?{X:"div",T:"ytp-subtitles-button-icon",yY:"{{icon}}"}:MkM(p)]});this.B=p;this.tooltip=a.ZI();p.D("delhi_modern_web_player_icons")&&this.updateValue("icon", $JZ(this));this.J(p,"videodatachange",this.pz);this.J(p,"appresize",this.pz);this.J(p,"promotooltipacceptbuttonclicked",this.CfV);this.J(p,"onApiChange",this.pz);this.J(p,"onCaptionsTrackListChanged",this.pz);this.J(p,"captionschanged",this.pz);this.B.createClientVe(this.element,this,127299);this.pz();this.listen("click",this.onClick);this.addOnDisposeCallback(g.gh(a.ZI(),this.element))}; NS=function(p,a){p.B.setOption("captions","track",a)}; vqA=function(p){var a=p.mediaElement;Z_r()?p.bQ.J(a,"webkitpresentationmodechanged",p.nyO):window.document.pictureInPictureEnabled&&(p.bQ.J(a,"enterpictureinpicture",function(){p.CH(!0)}),p.bQ.J(a,"leavepictureinpicture",function(){p.CH(!1)})); ER&&(p.bQ.J(a,"webkitbeginfullscreen",function(){p.z_(3)}),p.bQ.J(a,"webkitendfullscreen",function(){p.z_(0)}))}; HKZ=function(p){g.X.call(this,{X:"div",A9:["html5-video-player"],V:{tabindex:p.C().disableOrganicUi?"":"-1",id:p.webPlayerContextConfig.rootElementId},N:[{X:"div",T:g.k2.VIDEO_CONTAINER,V:{"data-layer":"0"}}]});var a=this;this.app=p;this.BA=this.d7(g.k2.VIDEO_CONTAINER);this.Hw=new g.OS(0,0,0,0);this.Su=null;this.Ar=new g.OS(0,0,0,0);this.Ap=this.c7=this.KI=NaN;this.kF=this.bY=this.YH=this.Xi=!1;this.Ow=NaN;this.wy=!1;this.LG=null;this.rU=new g.l_(function(){a.app.C().D("web_enable_smart_zoom")&& a.app.Tm.getInternalApi().isAutocropEnabled()||a.resize()},100); this.ym=function(){a.element.focus({preventScroll:!0})}; this.F$=function(){a.app.Tm.publish("playerUnderlayVisibilityChange","visible");a.Su.classList.remove(g.k2.VIDEO_CONTAINER_TRANSITIONING);a.Su.removeEventListener(kUZ,a.F$);a.Su.removeEventListener("transitioncancel",a.F$)}; this.v_=this.XW=!1;var l=this.element.addEventListener,y=this.element.removeEventListener;this.addEventListener=function(n,V,z){l.apply(a.element,[n,V,z])}; this.removeEventListener=function(n,V,z){y.apply(a.element,[n,V,z])}; var S=p.C();S.transparentBackground&&this.Lc("ytp-transparent");S.controlsType==="0"&&this.Lc("ytp-hide-controls");g.uD(this.element,"ytp-exp-bottom-control-flexbox");g.uD(this.element,"ytp-modern-caption");S.D("enable_new_paid_product_placement")&&!g.Ry(S)&&g.uD(this.element,"ytp-exp-ppp-update");g.uD(this.element,"ytp-livebadge-color");EjE(this.element,knv(p));this.Zm=!1;this.Rp=new g.N6(NaN,NaN);QnO(this);this.J(p.Tm,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.E(this,this.rU)}; sH=function(p,a,l,y){JF.call(this,p,{X:"div",T:"ytp-video-interstitial-buttoned-centered-layout",V:{tabindex:"0"},N:[{X:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content",N:[{X:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{X:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",N:[{X:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{X:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {X:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{X:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{X:"div",T:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",a,l,y);this.S=null;this.j=this.d7("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.U=new FM;g.E(this,this.U);this.hide()}; UH=function(p,a){g.uD(p.B.getRootNode(),a)}; KW=function(p){g.X.call(this,{X:"div",T:"ytp-spinner",N:[jp(),{X:"div",T:"ytp-spinner-message",yY:"Si la reproducci\u00f3n no empieza en breve, prueba a reiniciar el dispositivo."}]});this.api=p;this.message=this.d7("ytp-spinner-message");this.L=new g.l_(this.show,500,this);g.E(this,this.L);this.J(p,"presentingplayerstatechange",this.onStateChange);this.J(p,"playbackstalledatstart",this.S);this.cZ(p.getPlayerStateObject())}; S7U=function(p,a,l){g.WH(p.provider.Y,g.HH(p.provider.videoData)).then(function(y){var S=!1;a.includes("&dt=")||a.includes("&cotn=")?S=!0:p.provider.Y.D("qoe_with_networkless")&&(S=!0);var n=p.provider.Y.D("qoe_send_and_write"),V=p.provider.Y;y=BJ(a,V,p.provider.Y.pageId,p.provider.Y.sendVisitorIdHeader?p.provider.videoData.visitorData:void 0,y);V.D("html5_simplify_pings")&&(y=y||{});y?(y.method="POST",y.postBody=l,cEv(a,y,{token:p.provider.videoData.G,n$:p.provider.videoData.C8,mdxEnvironment:p.provider.videoData.mdxEnvironment}, V,void 0,S,n&&p.QY)):S?(S=p.provider.Y.D("networkless_ajax"),V={method:"POST",postBody:l},n&&p.QY?dl().sendAndWrite(a,V):S?g.lE(a,{method:"POST",postBody:l}):dl().sendThenWrite(a,V)):(n=l,n=n===void 0?"":n,djv(a,n)||g.I8(a,void 0,void 0,void 0,n))})}; nmK=function(p,a,l,y,S){y=y===void 0?Infinity:y;S=S===void 0?0:S;var n=p.qO();l=l||n.getPlayerType();(n=e0(p,l,a,!0))||(n=wO(p,l,a,!0));a=p.jb();l===2&&a&&(l=n.getVideoData(),a.bA(l.clientPlaybackNonce,l.n1||"",l.breakType||0,l.aM,l.videoId||""));p.nJ(n,y,0,S)}; zcM=function(p,a){var l=p.pos;p.pos=0;if(p.L.getUint8(p.pos)!==160&&!n6(p)||!$C(p,160))return p.pos=l,NaN;$u(p,!0);var y=p.pos;if(!$C(p,161))return p.pos=l,NaN;$u(p,!0);f$(p);var S=f$(p)<<8|f$(p);p.pos=y;if(!$C(p,155))return p.pos=l,NaN;y=V6(p);p.pos=l;return(S+y)*a/1E9}; cK=function(p,a,l,y,S,n){n=n===void 0?!1:n;g.D.call(this);this.element=p;this.Z=a;this.initData=l;this.L=y;this.S=S;this.Sl=n;this.sessionId="";this.K=this.G=this.U=this.W=null;this.j=new g.hm(this);g.E(this,this.j);xsO(this)}; vLr=function(p,a,l,y){y=y===void 0?!1:y;a=g.oO("web_fp_via_jspb")?Object.assign({},a):a;g.oO("use_cfr_monitor")&&HNE(p,a);if(g.oO("use_request_time_ms_header"))a.headers&&VH(p)&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Ek)())));else{var S;if((S=a.postParams)==null?0:S.requestTimeMs)a.postParams.requestTimeMs=Math.round((0,g.Ek)())}l&&Object.keys(a).length===0?g.I8(p):a.compress?a.postBody?(typeof a.postBody!=="string"&&(a.postBody=JSON.stringify(a.postBody)),S8(p,a.postBody, a,g.lE,y)):S8(p,JSON.stringify(a.postParams),a,nf,y):g.lE(p,a)}; iu=function(p,a,l,y,S){var n=p.L.length,V=a.L-p.Hs*Mp(p),z=l*V;l=rl(p,z);var d=y*V;V=rl(p,d);S==="HOVER_PROGRESS"&&(V=rl(p,a.L*y,!0),d=a.L*y-lm$(p,a.L*y)*Mp(p));y=Math.max(z-nUM(p,l),0);for(z=l;z55?"60":a>49?"50":a>39?"48":"")));this.qualityLabel=p;this.L=d||"";this.primaries=G||""}; dQM=function(p){g.X.call(this,{X:"button",A9:["ytp-watch-later-button","ytp-button"],V:{title:p.D("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.wW(p.C()))},N:[{X:"div",T:"ytp-watch-later-icon",yY:"{{icon}}"},{X:"div",T:"ytp-watch-later-title",yY:"Ver m\u00e1s tarde"}]});this.B=p;this.icon=null;this.visible=this.isRequestPending=this.L=!1;bhe(p);p.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.J(p,"videoplayerreset",this.onReset);this.J(p,"appresize",this.IU);this.J(p,"videodatachange",this.IU);this.J(p,"presentingplayerstatechange",this.IU);this.IU();p=this.B.C();var a=g.zv("yt-player-watch-later-pending");p.j&&a?(DJM(),IRe(this)):this.pz(2);g.JB(this.element,"ytp-show-watch-later-title",g.wW(p));OC(this.B,this.element,this)}; sz=function(p){return p.L.o_}; bT=function(p,a,l,y){g.qu.call(this);this.callback=p;this.U=y;this.L=[];this.S=new iK$(p,a,l)}; TFv=function(p,a,l){p=p.PJ;if(p==="WEB"||p==="MWEB"||p===1||p===2)if(a){l=Kv(a,of,96)||new of;var y=SC();y=Object.keys(G5K).indexOf(y);y=y===-1?null:y;y!==null&&Ey(l,3,y);$W(a,of,96,l)}else l&&(l.client.mainAppWebInfo=(y=l.client.mainAppWebInfo)!=null?y:{},l.client.mainAppWebInfo.webDisplayMode=SC())}; FW=function(p,a){if(te(p,a))return me(p)}; g.tQ=function(p,a){var l=Math.abs(Math.floor(p)),y=Math.floor(l/86400),S=Math.floor(l%86400/3600),n=Math.floor(l%3600/60);l=Math.floor(l%60);if(a){a="";y>0&&(a+=" "+y+" D\u00edas");if(y>0||S>0)a+=" "+S+" Horas";a+=" "+n+" Minutos";a+=" "+l+" Segundos";y=a.trim()}else{a="";y>0&&(a+=y+":",S<10&&(a+="0"));if(y>0||S>0)a+=S+":",n<10&&(a+="0");a+=n+":";l<10&&(a+="0");y=a+l}return p>=0?y:"-"+y}; GAr=[];po=typeof Object.defineProperties=="function"?Object.defineProperty:function(p,a,l){if(p==Array.prototype||p==Object.prototype)return p;p[a]=l.value;return p}; g.fU=cpA(this);aW("Symbol",function(p){function a(n){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new l(y+(n||"")+"_"+S++,n)} function l(n,V){this.L=n;po(this,"description",{configurable:!0,writable:!0,value:V})} if(p)return p;l.prototype.toString=function(){return this.L}; var y="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",S=0;return a}); aW("Symbol.iterator",function(p){if(p)return p;p=Symbol("Symbol.iterator");po(Array.prototype,p,{configurable:!0,writable:!0,value:function(){return a_o(YpM(this))}}); return p}); var V4f=typeof Object.create=="function"?Object.create:function(p){function a(){} a.prototype=p;return new a},BDU=function(){function p(){function l(){} new l;Reflect.construct(l,[],function(){}); return new l instanceof l} if(typeof Reflect!="undefined"&&Reflect.construct){if(p())return Reflect.construct;var a=Reflect.construct;return function(l,y,S){l=a(l,y);S&&Reflect.setPrototypeOf(l,S.prototype);return l}}return function(l,y,S){S===void 0&&(S=l); S=V4f(S.prototype||Object.prototype);return Function.prototype.apply.call(l,S,y)||S}}(),cPa; if(typeof Object.setPrototypeOf=="function")cPa=Object.setPrototypeOf;else{var rPK;a:{var wdl={a:!0},$Q_={};try{$Q_.__proto__=wdl;rPK=$Q_.a;break a}catch(p){}rPK=!1}cPa=rPK?function(p,a){p.__proto__=a;if(p.__proto__!==a)throw new TypeError(p+" is not extensible");return p}:null}var Ur=cPa,POc=typeof Object.assign=="function"?Object.assign:function(p,a){if(p==null)throw new TypeError("No nullish arg"); p=Object(p);for(var l=1;l0&&l>0;)if(y[--l]!=a[--S])return!1;return S<=0}}); aW("Array.prototype.find",function(p){return p?p:function(a,l){return aK$(this,a,l).qp}}); aW("Array.prototype.entries",function(p){return p?p:function(){return rv(this,function(a,l){return[a,l]})}}); aW("Array.prototype.keys",function(p){return p?p:function(){return rv(this,function(a){return a})}}); aW("String.prototype.startsWith",function(p){return p?p:function(a,l){var y=wP(this,a,"startsWith");a+="";var S=y.length,n=a.length;l=Math.max(0,Math.min(l|0,y.length));for(var V=0;V=n}}); aW("Number.isFinite",function(p){return p?p:function(a){return typeof a!=="number"?!1:!isNaN(a)&&a!==Infinity&&a!==-Infinity}}); aW("String.prototype.repeat",function(p){return p?p:function(a){var l=wP(this,null,"repeat");if(a<0||a>1342177279)throw new RangeError("Invalid count value");a|=0;for(var y="";a;)if(a&1&&(y+=l),a>>>=1)l+=l;return y}}); aW("Object.entries",function(p){return p?p:function(a){var l=[],y;for(y in a)xM(a,y)&&l.push([y,a[y]]);return l}}); aW("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); aW("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); aW("Array.from",function(p){return p?p:function(a,l,y){l=l!=null?l:function(z){return z}; var S=[],n=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(typeof n=="function"){a=n.call(a);for(var V=0;!(n=a.next()).done;)S.push(l.call(y,n.value,V++))}else for(n=a.length,V=0;V>>0;if(a===0)return 32;var l=0;(a&4294901760)===0&&(a<<=16,l+=16);(a&4278190080)===0&&(a<<=8,l+=8);(a&4026531840)===0&&(a<<=4,l+=4);(a&3221225472)===0&&(a<<=2,l+=2);(a&2147483648)===0&&l++;return l}}); aW("Number.isNaN",function(p){return p?p:function(a){return typeof a==="number"&&isNaN(a)}}); aW("Array.prototype.values",function(p){return p?p:function(){return rv(this,function(a,l){return l})}}); aW("Array.prototype.fill",function(p){return p?p:function(a,l,y){var S=this.length||0;l<0&&(l=Math.max(0,S+l));if(y==null||y>S)y=S;y=Number(y);y<0&&(y=Math.max(0,S+y));for(l=Number(l||0);l0&&l?l.repeat(Math.ceil(a/l.length)).substring(0,a):"")+y}}); aW("Array.prototype.findIndex",function(p){return p?p:function(a,l){return aK$(this,a,l).gx}}); aW("Promise.prototype.finally",function(p){return p?p:function(a){return this.then(function(l){return Promise.resolve(a()).then(function(){return l})},function(l){return Promise.resolve(a()).then(function(){throw l; })})}}); aW("Math.imul",function(p){return p?p:function(a,l){a=Number(a);l=Number(l);var y=a&65535,S=l&65535;return y*S+((a>>>16&65535)*S+y*(l>>>16&65535)<<16>>>0)|0}}); aW("Math.sign",function(p){return p?p:function(a){a=Number(a);return a===0||isNaN(a)?a:a>0?1:-1}}); aW("WeakSet",function(p){function a(l){this.L=new WeakMap;if(l){l=g.t(l);for(var y;!(y=l.next()).done;)this.add(y.value)}} if(function(){if(!p||!Object.seal)return!1;try{var l=Object.seal({}),y=Object.seal({}),S=new p([l]);if(!S.has(l)||S.has(y))return!1;S.delete(l);S.add(y);return!S.has(l)&&S.has(y)}catch(n){return!1}}())return p; a.prototype.add=function(l){this.L.set(l,!0);return this}; a.prototype.has=function(l){return this.L.has(l)}; a.prototype.delete=function(l){return this.L.delete(l)}; return a}); aW("Array.prototype.copyWithin",function(p){function a(l){l=Number(l);return l===Infinity||l===-Infinity?l:l|0} return p?p:function(l,y,S){var n=this.length;l=a(l);y=a(y);S=S===void 0?n:a(S);l=l<0?Math.max(n+l,0):Math.min(l,n);y=y<0?Math.max(n+y,0):Math.min(y,n);S=S<0?Math.max(n+S,0):Math.min(S,n);if(ly;)--S in this?this[--l]=this[S]:delete this[--l];return this}}); aW("Int8Array.prototype.copyWithin",Nc);aW("Uint8Array.prototype.copyWithin",Nc);aW("Uint8ClampedArray.prototype.copyWithin",Nc);aW("Int16Array.prototype.copyWithin",Nc);aW("Uint16Array.prototype.copyWithin",Nc);aW("Int32Array.prototype.copyWithin",Nc);aW("Uint32Array.prototype.copyWithin",Nc);aW("Float32Array.prototype.copyWithin",Nc);aW("Float64Array.prototype.copyWithin",Nc);aW("Array.prototype.at",function(p){return p?p:ut}); aW("BigInt64Array.prototype.at",qH);aW("BigUint64Array.prototype.at",qH);aW("Int8Array.prototype.at",qH);aW("Uint8Array.prototype.at",qH);aW("Uint8ClampedArray.prototype.at",qH);aW("Int16Array.prototype.at",qH);aW("Uint16Array.prototype.at",qH);aW("Int32Array.prototype.at",qH);aW("Uint32Array.prototype.at",qH);aW("Float32Array.prototype.at",qH);aW("Float64Array.prototype.at",qH);aW("String.prototype.at",function(p){return p?p:ut}); aW("Array.prototype.findLastIndex",function(p){return p?p:function(a,l){return p4Z(this,a,l).gx}}); aW("BigInt64Array.prototype.findLastIndex",NF);aW("BigUint64Array.prototype.findLastIndex",NF);aW("Int8Array.prototype.findLastIndex",NF);aW("Uint8Array.prototype.findLastIndex",NF);aW("Uint8ClampedArray.prototype.findLastIndex",NF);aW("Int16Array.prototype.findLastIndex",NF);aW("Uint16Array.prototype.findLastIndex",NF);aW("Int32Array.prototype.findLastIndex",NF);aW("Uint32Array.prototype.findLastIndex",NF);aW("Float32Array.prototype.findLastIndex",NF);aW("Float64Array.prototype.findLastIndex",NF); aW("Number.parseInt",function(p){return p||parseInt});var RH,ji,Fcq;RH=RH||{};g.dD=this||self;ji="closure_uid_"+(Math.random()*1E9>>>0);Fcq=0;g.tP(LV,Error);LV.prototype.name="CustomError";var TLM;var bOr,qa,gf;bOr=Array.prototype.indexOf?function(p,a){return Array.prototype.indexOf.call(p,a,void 0)}:function(p,a){if(typeof p==="string")return typeof a!=="string"||a.length!=1?-1:p.indexOf(a,0); for(var l=0;l=0;l--)if(l in p&&p[l]===a)return l;return-1}; g.Bf=Array.prototype.forEach?function(p,a,l){Array.prototype.forEach.call(p,a,l)}:function(p,a,l){for(var y=p.length,S=typeof p==="string"?p.split(""):p,n=0;n=.3:this.aX>=.5};var oc={pGV:0,HoT:1},Hy$={NONE:0,EcI:1,alT:2};var xCF="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");AT.prototype.getValue=function(){return this.S}; g.A(h$,AT);h$.prototype.U=function(p){this.S===null&&g.d7_(this.j,p)&&(this.S=p)}; g.A(iyf,AT);iyf.prototype.U=function(p){this.S===null&&typeof p==="number"&&(this.S=p)}; g.A(BD,AT);BD.prototype.U=function(p){this.S===null&&typeof p==="string"&&(this.S=p)};L9.prototype.disable=function(){this.S=!1}; L9.prototype.enable=function(){this.S=!0}; L9.prototype.isEnabled=function(){return this.S}; L9.prototype.reset=function(){this.L={};this.S=!0;this.U={}};var iS=document,LU=window;var Xd1=Mi(1,!0),jj=Mi(610401301,!1);Mi(899588437,!1);var xQW=Mi(772657768,!1),F5B=Mi(513659523,!1),Em_=Mi(568333945,!0),ujF=Mi(1331761403,!1);Mi(651175828,!1);Mi(722764542,!1);Mi(748402145,!1);Mi(748402146,!1);var wYE=Mi(748402147,Xd1);Mi(333098724,!1);Mi(2147483644,!1);Mi(2147483645,!1);Mi(2147483646,Xd1);Mi(2147483647,!0);var Wy=!!g.o4("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var iq=String.prototype.trim?function(p){return p.trim()}:function(p){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(p)[1]},RuA=/&/g,uHM=//g,kNo=/"/g,MIF=/'/g,mBq=/\x00/g,IjZ=/[\x00&<>"']/;var Si,COU=g.dD.navigator;Si=COU?COU.userAgentData||null:null;var GlA=globalThis.trustedTypes,fO;wf.prototype.toString=function(){return this.L+""};QU.prototype.toString=function(){return this.L}; var ghE=new QU("about:invalid#zClosurez");var pjE=xL("tel"),JVM=xL("sms"),AZE=[xL("data"),xL("http"),xL("https"),xL("mailto"),xL("ftp"),new hB(function(p){return/^[^:]*([/?#]|$)/.test(p)})],WrK=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;rC.prototype.toString=function(){return this.L+""};si.prototype.toString=function(){return this.L+""};IS.prototype.toString=function(){return this.L};var cd={};g.vmB=String.prototype.repeat?function(p,a){return p.repeat(a)}:function(p,a){return Array(a+1).join(p)};td[" "]=function(){};var JT,lQ,Oca,K5b,erl,b8a,YE,Jb,IYB;g.vL=jQ();g.wF=DQM();g.up=na("Edge");g.Kk=g.up||g.wF;JT=na("Gecko")&&!(Bk(g.yI(),"WebKit")&&!na("Edge"))&&!(na("Trident")||na("MSIE"))&&!na("Edge");g.Hs=Bk(g.yI(),"WebKit")&&!na("Edge");lQ=VB();Oca=a9v();g.Ck=Gje();K5b=Yq();erl=na("iPad");b8a=na("iPod");YE=qj();Jb=Bk(g.yI(),"KaiOS"); a:{var RrB="",uU7=function(){var p=g.yI();if(JT)return/rv:([^\);]+)(\)|;)/.exec(p);if(g.up)return/Edge\/([\d\.]+)/.exec(p);if(g.wF)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(p);if(g.Hs)return/WebKit\/(\S+)/.exec(p);if(g.vL)return/(?:Version)[ \/]?(\S+)/.exec(p)}(); uU7&&(RrB=uU7?uU7[1]:"");if(g.wF){var gz,O88=g.dD.document;gz=O88?O88.documentMode:void 0;if(gz!=null&&gz>parseFloat(RrB)){IYB=String(gz);break a}}IYB=RrB}var RyZ=IYB,vAo={};var ER,Bh;g.sX=Hr();ER=Yq()||na("iPod");Bh=na("iPad");g.CFM=Crq();g.TE=tO();g.yd=DO()&&!qj();var kvM=!g.wF&&!DO();g.L=g.U1.prototype;g.L.clone=function(){return new g.U1(this.x,this.y)}; g.L.equals=function(p){return p instanceof g.U1&&zD(this,p)}; g.L.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.L.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.L.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.L.scale=function(p,a){this.x*=p;this.y*=typeof a==="number"?a:p;return this};g.L=g.N6.prototype;g.L.clone=function(){return new g.N6(this.width,this.height)}; g.L.aspectRatio=function(){return this.width/this.height}; g.L.isEmpty=function(){return!YW2(this)}; g.L.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.L.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.L.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.L.scale=function(p,a){this.width*=p;this.height*=typeof a==="number"?a:p;return this};RN.prototype.toString=function(){return this.L}; var uG={};new RN(uG,"");var HcA=/^[a-z][a-z\d-]*$/i,u9$="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),OWA="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),D7f=["action","formaction","href"];var JuF={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.L=qwA.prototype;g.L.gG=function(p){return Xe(this.L,p)}; g.L.getElementsByTagName=function(p,a){return(a||this.L).getElementsByTagName(String(p))}; g.L.d7=function(p){return g.q$(p,this.L)}; g.L.setProperties=Gk;g.L.createElement=function(p){return $3(this.L,p)}; g.L.appendChild=g.f4;g.L.append=function(p,a){QDr($c(p),p,arguments,1)}; g.L.canHaveChildren=function(p){if(p.nodeType!=1)return!1;switch(p.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.L.removeNode=g.wC;g.L.getChildren=function(p){return p.children!=void 0?p.children:Array.prototype.filter.call(p.childNodes,function(a){return a.nodeType==1})}; g.L.contains=g.oh;g.L.isFocusable=Ah;iY.prototype.now=function(){return 0}; iY.prototype.S=function(){return 0}; iY.prototype.U=function(){return 0}; iY.prototype.L=function(){return 0};g.A(hQ,iY);hQ.prototype.now=function(){return kJ()&&LU.performance.now?LU.performance.now():iY.prototype.now.call(this)}; hQ.prototype.S=function(){return kJ()&&LU.performance.memory?LU.performance.memory.totalJSHeapSize||0:iY.prototype.S.call(this)}; hQ.prototype.U=function(){return kJ()&&LU.performance.memory?LU.performance.memory.usedJSHeapSize||0:iY.prototype.U.call(this)}; hQ.prototype.L=function(){return kJ()&&LU.performance.memory?LU.performance.memory.jsHeapSizeLimit||0:iY.prototype.L.call(this)};var ade=function(){if(!g.dD.addEventListener||!Object.defineProperty)return!1;var p=!1,a=Object.defineProperty({},"passive",{get:function(){p=!0}}); try{var l=function(){}; g.dD.addEventListener("test",l,a);g.dD.removeEventListener("test",l,a)}catch(y){}return p}();var PFK=uEM("AnimationEnd"),kUZ=uEM("TransitionEnd");g.L=Tf.prototype;g.L.getHeight=function(){return this.bottom-this.top}; g.L.clone=function(){return new Tf(this.top,this.right,this.bottom,this.left)}; g.L.contains=function(p){return this&&p?p instanceof Tf?p.left>=this.left&&p.right<=this.right&&p.top>=this.top&&p.bottom<=this.bottom:p.x>=this.left&&p.x<=this.right&&p.y>=this.top&&p.y<=this.bottom:!1}; g.L.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.L.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.L.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.L.scale=function(p,a){a=typeof a==="number"?a:p;this.left*=p;this.right*=p;this.top*=a;this.bottom*=a;return this};g.L=g.OS.prototype;g.L.clone=function(){return new g.OS(this.left,this.top,this.width,this.height)}; g.L.contains=function(p){return p instanceof g.U1?p.x>=this.left&&p.x<=this.left+this.width&&p.y>=this.top&&p.y<=this.top+this.height:this.left<=p.left&&this.left+this.width>=p.left+p.width&&this.top<=p.top&&this.top+this.height>=p.top+p.height}; g.L.getSize=function(){return new g.N6(this.width,this.height)}; g.L.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.L.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.L.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.L.scale=function(p,a){a=typeof a==="number"?a:p;this.left*=p;this.width*=p;this.top*=a;this.height*=a;return this};var d6v={};var s4A=oI(function(){var p=!1;try{var a=Object.defineProperty({},"passive",{get:function(){p=!0}}); g.dD.addEventListener("test",null,a)}catch(l){}return p});kuF.prototype.isVisible=function(){return FE(iS)===1};var Rdq=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");yq.prototype.RX=function(p,a,l){p=p+"//"+a+l;var y=kwM(this)-l.length;if(y<0)return"";this.L.sort(function(G,B){return G-B}); l=null;a="";for(var S=0;S=d.length){y-=d.length;p+=d;a=this.U;break}l=l==null?n:l}}y="";l!=null&&(y=""+a+"trn="+l);return p+y};var bXA=sO(function(p){return typeof p==="number"}),oY=sO(function(p){return typeof p==="string"}),Imf=sO(function(p){return typeof p==="boolean"}),tt=sO(function(p){return p!=null&&typeof p==="object"&&typeof p.then==="function"}),k5M=sO(function(p){return!!p&&(typeof p==="object"||typeof p==="function")});var cwE={QdT:"allow-forms",D07:"allow-modals",l1v:"allow-orientation-lock",sd9:"allow-pointer-lock",A3Y:"allow-popups",H09:"allow-popups-to-escape-sandbox",Ruz:"allow-presentation",kDO:"allow-same-origin",vnI:"allow-scripts",tET:"allow-top-navigation",uGm:"allow-top-navigation-by-user-activation"},R8r=oI(function(){return rwr()});aa.prototype.setInterval=function(p,a){return LU.setInterval(p,a)}; aa.prototype.clearInterval=function(p){LU.clearInterval(p)}; aa.prototype.setTimeout=function(p,a){return LU.setTimeout(p,a)}; aa.prototype.clearTimeout=function(p){LU.clearTimeout(p)};var Mj=void 0,kq,JKo=typeof TextDecoder!=="undefined",SzM,yJr=typeof String.prototype.isWellFormed==="function",lBv=typeof TextEncoder!=="undefined";var NtM={},Qa=null,fCM=JT||g.Hs||typeof g.dD.btoa=="function";var dQE=typeof Uint8Array!=="undefined",r2F=!g.wF&&typeof btoa==="function",wnh=/[-_.]/g,cZc={"-":"+",_:"/",".":"="},fF={};Jm.prototype.isEmpty=function(){return this.L==null}; Jm.prototype.sizeBytes=function(){var p=ZQ(this);return p?p.length:0}; var flo;var G9M=void 0;var Oi=typeof Symbol==="function"&&typeof Symbol()==="symbol",M_W=GU("jas",void 0,!0),k3=GU(void 0,"1oa"),Kn=GU(void 0,Symbol()),mQc=GU(void 0,"0ub"),nqM=GU(void 0,"0ubs"),wXM=GU(void 0,"0ubsb"),$rM=GU(void 0,"0actk"),gC=GU("m_m","bcT",!0),IYZ=GU(void 0,"vps"),t_K=GU();Math.max.apply(Math,g.u0(Object.values({M8O:1,azc:2,ncY:4,vTs:8,KCV:16,BAl:32,MRz:64,qsl:128,uvI:256,wkz:512,nzm:1024,Ooc:2048,QDT:4096})));var CxM={PB:{value:0,configurable:!0,writable:!0,enumerable:!1}},ErZ=Object.defineProperties,QB=Oi?M_W:"PB",yb,j4M=[];oW(j4M,7);yb=Object.freeze(j4M);var Yc={},h9={},R4f=Object.freeze({}),yy={},Vm={};var zY=typeof g.dD.BigInt==="function"&&typeof g.dD.BigInt(0)==="bigint";var K5=sO(function(p){return zY?p>=W5l&&p<=H8G:p[0]==="-"?bQf(p,DQ8):bQf(p,i8b)}),DQ8=Number.MIN_SAFE_INTEGER.toString(),W5l=zY?BigInt(Number.MIN_SAFE_INTEGER):void 0,i8b=Number.MAX_SAFE_INTEGER.toString(),H8G=zY?BigInt(Number.MAX_SAFE_INTEGER):void 0;var KXE=typeof Uint8Array.prototype.slice==="function",tm=0,jN=0,yFE;var MG=typeof BigInt==="function"?BigInt.asIntN:void 0,yqe=typeof BigInt==="function"?BigInt.asUintN:void 0,un=Number.isSafeInteger,NC=Number.isFinite,Rg=Math.trunc,MSM=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var RrZ={};var TDl={Xi9:!0};var Np;var m0M,tEF;var w0q=OX(0),rT={};bu.prototype.init=function(p,a,l,y){var S=y===void 0?{}:y;y=S.nY===void 0?!1:S.nY;S=S.GQ===void 0?!1:S.GQ;this.nY=y;this.GQ=S;p&&(p=qxO(p,this.GQ),this.S=p.buffer,this.W=p.L,this.j=a||0,this.U=l!==void 0?this.j+l:this.S.length,this.L=this.j)}; bu.prototype.free=function(){this.clear();e5.length<100&&e5.push(this)}; bu.prototype.clear=function(){this.S=null;this.W=!1;this.L=this.U=this.j=0;this.nY=!1}; bu.prototype.reset=function(){this.L=this.j}; var e5=[];hA.prototype.free=function(){this.L.clear();this.S=this.U=-1;QZ.length<100&&QZ.push(this)}; hA.prototype.reset=function(){this.L.reset();this.j=this.L.L;this.S=this.U=-1}; var QZ=[];var ngO,g_O;xB.prototype.length=function(){return this.L.length}; xB.prototype.end=function(){var p=this.L;this.L=[];return p};var v8=wz(),NDc=wz(),s4c=wz(),UQ7=wz(),Q4G=wz(),hr1=wz(),AP1=wz(),gm1=wz(),Y77=wz(),q7a=wz(),JP8=wz();Zv.prototype.toJSON=function(){return Q_(this)}; Zv.prototype.Ut=function(p){return JSON.stringify(Q_(this,p))}; Zv.prototype.clone=function(){var p=this.NO,a=p[QB]|0;return XG(this,p,a)?YY(this,p,!0):new this.constructor(fa(p,a,!1))}; Zv.prototype[gC]=Yc;Zv.prototype.toString=function(){return this.NO.toString()};var IQe=lR(function(p,a,l,y,S){if(p.S!==2)return!1;yA(p,SN(a,y,l),S);return!0},k6M),PJM=lR(function(p,a,l,y,S){if(p.S!==2)return!1; yA(p,SN(a,y,l),S);return!0},k6M),Ib=Symbol(),MX=Symbol(),mv=Symbol(),Tzv=Symbol(),Pb$=Symbol(),Fk,En;var fYK=JL(function(p,a,l){if(p.S!==1)return!1;Sz(a,l,iD(p.L));return!0},c2,Y77),pkK=JL(function(p,a,l){if(p.S!==1)return!1; p=iD(p.L);Sz(a,l,p===0?void 0:p);return!0},c2,Y77),abc=JL(function(p,a,l,y){if(p.S!==1)return!1; C1(a,l,y,iD(p.L));return!0},c2,Y77),lbc=JL(function(p,a,l){if(p.S!==0)return!1; Sz(a,l,bY(p.L));return!0},iBr,AP1),yxK=JL(function(p,a,l){if(p.S!==0)return!1; p=bY(p.L);Sz(a,l,p===0?void 0:p);return!0},iBr,AP1),SpU=JL(function(p,a,l,y){if(p.S!==0)return!1; C1(a,l,y,bY(p.L));return!0},iBr,AP1),ncU=JL(function(p,a,l){if(p.S!==0)return!1; Sz(a,l,Zt(p.L));return!0},Pi,UQ7),Via=JL(function(p,a,l){if(p.S!==0)return!1; p=Zt(p.L);Sz(a,l,p===0?void 0:p);return!0},Pi,UQ7),ZaG=JL(function(p,a,l,y){if(p.S!==0)return!1; C1(a,l,y,Zt(p.L));return!0},Pi,UQ7),ocb=JL(function(p,a,l){if(p.S!==1)return!1; Sz(a,l,Rj(p.L));return!0},function(p,a,l){zZo(p,l,ScA(a))},gm1),zdb=F4(function(p,a,l){if(p.S!==1&&p.S!==2)return!1; a=GJ(a,a[QB]|0,l);if(p.S==2)for(l=Zt(p.L)>>>0,l=p.L.L+l;p.L.L>>0);return!0},function(p,a,l){a=il(a); a!=null&&a!=null&&(GB(p,l,0),kO(p.L,a))},Q4G),l$=JL(function(p,a,l){if(p.S!==0)return!1; Sz(a,l,Zt(p.L));return!0},function(p,a,l){a=$A(a); a!=null&&(a=parseInt(a,10),GB(p,l,0),d8Z(p.L,a))},JP8);var O9o=new Map;g.A(kTq,Vtf);Rwf.prototype.register=function(){td(this)};g.A(at,Zv);at.prototype.U=l1h([0,pkK,yxK,-2,Via]);d0q.prototype.Zy=function(p){var a=this.L[p.key];if(p.valueType==="proto"){try{var l=JSON.parse(a);if(Array.isArray(l))return l}catch(y){}return p.defaultValue}return typeof a===typeof p.defaultValue?a:p.defaultValue};var Dgr={xJm:1,nB:2,eoV:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};CWZ.prototype.Sd=function(p){if(typeof p==="string"&&p.length!=0){var a=this.sC;if(a.S){p=p.split("&");for(var l=p.length-1;l>=0;l--){var y=p[l].split("="),S=decodeURIComponent(y[0]);y.length>1?(y=decodeURIComponent(y[1]),y=/^[0-9]+$/g.exec(y)?parseInt(y,10):y):y=1;(S=a.L[S])&&S.U(y)}}}};var y7=null;var fY=g.dD.performance,P0c=!!(fY&&fY.mark&&fY.measure&&fY.clearMarks),OQ=oI(function(){var p;if(p=P0c){var a=a===void 0?window:a;if(y7===null){y7="";try{p="";try{p=a.top.location.hash}catch(y){p=a.location.hash}if(p){var l=p.match(/\bdeid=([\d,]+)/);y7=l?l[1]:""}}catch(y){}}a=y7;p=!!a.indexOf&&a.indexOf("1337")>=0}return p}); kp.prototype.disable=function(){this.L=!1;this.events!==this.S.google_js_reporting_queue&&(OQ()&&g.Bf(this.events,tj$),this.events.length=0)}; kp.prototype.start=function(p,a){if(!this.L)return null;var l=mbM()||bq$();p=new ief(p,a,l);a="goog_"+p.label+"_"+p.uniqueId+"_start";fY&&OQ()&&fY.mark(a);return p}; kp.prototype.end=function(p){if(this.L&&typeof p.value==="number"){var a=mbM()||bq$();p.duration=a-p.value;a="goog_"+p.label+"_"+p.uniqueId+"_end";fY&&OQ()&&fY.mark(a);!this.L||this.events.length>2048||this.events.push(p)}};var aXr=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),DU=/#|$/,Aqe=/[?&]($|#)/;yZK.prototype.aF=function(p,a,l,y,S){S=S||this.V6;try{var n=new yq;n.L.push(1);n.S[1]=oe("context",p);a.error&&a.meta&&a.id||(a=new CI(PZ(a)));if(a.msg){var V=a.msg.substring(0,512);n.L.push(2);n.S[2]=oe("msg",V)}var z=a.meta||{};if(this.Uw)try{this.Uw(z)}catch(w){}if(y)try{y(z)}catch(w){}y=[z];n.L.push(3);n.S[3]=y;var d=uJv();if(d.S){var G=d.S.url||"";n.L.push(4);n.S[4]=oe("top",G)}var B={url:d.L.url||""};if(d.L.url){var c=g.By(d.L.url);var r=cy(c[1],null,c[3],c[4])}else r="";G=[B,{url:r}];n.L.push(5); n.S[5]=G;qnZ(this.L,S,n,l)}catch(w){try{qnZ(this.L,S,{context:"ecmserr",rctx:p,msg:PZ(w),url:d&&d.L.url},l)}catch(P){}}return this.eZ}; g.A(CI,fcA);var X2,q8,yc=new kp;X2=new function(){var p="https:";LU&&LU.location&&LU.location.protocol==="http:"&&(p="http:");this.S=p;this.L=.01}; q8=new yZK;LU&&LU.document&&(LU.document.readyState=="complete"?yTh():yc.L&&AM(LU,"load",function(){yTh()}));var nP$=Date.now(),Z2=-1,SP=-1,hAf,oq=-1,VZ=!1;L7.prototype.equals=function(p,a){return!!p&&(!(a===void 0?0:a)||this.volume==p.volume)&&this.U==p.U&&oL(this.L,p.L)&&!0};J6.prototype.gG=function(){return this.K}; J6.prototype.equals=function(p,a){return this.j.equals(p.j,a===void 0?!1:a)&&this.K==p.K&&oL(this.U,p.U)&&oL(this.G,p.G)&&this.L==p.L&&this.W==p.W&&this.S==p.S&&this.Z==p.Z};var L81={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},s_={HE:"start",Oz:"firstquartile",fB:"midpoint",R5:"thirdquartile",COMPLETE:"complete",ERROR:"error",ys:"metric",PAUSE:"pause",l9:"resume",sL:"skip",Gb:"viewable_impression",wb:"mute",vE:"unmute",zK:"fullscreen",q_:"exitfullscreen",rk:"bufferstart",M_:"bufferfinish",Ph:"fully_viewable_audible_half_duration_impression",X6:"measurable_impression",lL:"abandon",Zr:"engagedview",Vb:"impression",KZ:"creativeview",LOADED:"loaded", Fbm:"progress",CLOSE:"close",GMz:"collapse",MTT:"overlay_resize",r4v:"overlay_unmeasurable_impression",TAV:"overlay_unviewable_impression",I_O:"overlay_viewable_immediate_impression",pLY:"overlay_viewable_end_of_session_impression",J1:"custom_metric_viewable",Rj:"audio_audible",t1:"audio_measurable",kh:"audio_impression"},G8O="start firstquartile midpoint thirdquartile resume loaded".split(" "),BIo=["start","firstquartile","midpoint","thirdquartile"],mCf=["abandon"],ZR={UNKNOWN:-1,HE:0,Oz:1,fB:2, R5:3,COMPLETE:4,ys:5,PAUSE:6,l9:7,sL:8,Gb:9,wb:10,vE:11,zK:12,q_:13,Ph:14,X6:15,lL:16,Zr:17,Vb:18,KZ:19,LOADED:20,J1:21,rk:22,M_:23,kh:27,t1:28,Rj:29};var bFo={y37:"addEventListener",rlv:"getMaxSize",Th9:"getScreenSize",pWI:"getState",IlY:"getVersion",vrT:"removeEventListener",rkY:"isViewable"};PWe.prototype.update=function(p){p&&p.document&&(this.K=QO(!1,p,this.isMobileDevice),this.L=QO(!0,p,this.isMobileDevice),$Fh(this,p),ea$(this,p))};eB.prototype.cancel=function(){CO().clearTimeout(this.L);this.L=null}; eB.prototype.schedule=function(){var p=this,a=CO(),l=LO().L.L;this.L=a.setTimeout(EU(l,TR(143,function(){p.S++;p.U.sample()})),B8f())};g.L=XM.prototype;g.L.Va=function(){return!1}; g.L.initialize=function(){return this.isInitialized=!0}; g.L.Fp=function(){return this.L.QY}; g.L.E4=function(){return this.L.UO}; g.L.fail=function(p,a){if(!this.UO||(a===void 0?0:a))this.UO=!0,this.QY=p,this.Z=0,this.L!=this||Sp(this)}; g.L.getName=function(){return this.L.nz}; g.L.uS=function(){return this.L.AI()}; g.L.AI=function(){return{}}; g.L.rN=function(){return this.L.Z}; g.L.lV=function(){var p=TJ();p.L=QO(!0,this.U,p.isMobileDevice)}; g.L.sx=function(){ea$(TJ(),this.U)}; g.L.ZM=function(){return this.j.L}; g.L.sample=function(){}; g.L.isActive=function(){return this.L.G}; g.L.fd=function(p){var a=this.L;this.L=p.rN()>=this.Z?p:this;a!==this.L?(this.G=this.L.G,Sp(this)):this.G!==this.L.G&&(this.G=this.L.G,Sp(this))}; g.L.OG=function(p){if(p.S===this.L){var a=!this.j.equals(p,this.Sl);this.j=p;a&&i7r(this)}}; g.L.KU=function(){return this.Sl}; g.L.dispose=function(){this.Bs=!0}; g.L.Gm=function(){return this.Bs};g.L=Cz.prototype;g.L.observe=function(){return!0}; g.L.unobserve=function(){}; g.L.b1=function(p){this.W=p}; g.L.dispose=function(){if(!this.Gm()){var p=this.S;g.FS(p.W,this);p.Sl&&this.KU()&&shE(p);this.unobserve();this.w7=!0}}; g.L.Gm=function(){return this.w7}; g.L.uS=function(){return this.S.uS()}; g.L.rN=function(){return this.S.rN()}; g.L.Fp=function(){return this.S.Fp()}; g.L.E4=function(){return this.S.E4()}; g.L.fd=function(){}; g.L.OG=function(){this.yn()}; g.L.KU=function(){return this.Bs};g.L=ea.prototype;g.L.rN=function(){return this.L.rN()}; g.L.Fp=function(){return this.L.Fp()}; g.L.E4=function(){return this.L.E4()}; g.L.create=function(p,a,l){var y=null;this.L&&(y=this.m5(p,a,l),NY(this.L,y));return y}; g.L.AV=function(){return this.Cw()}; g.L.Cw=function(){return!1}; g.L.init=function(p){return this.L.initialize()?(NY(this.L,this),this.j=p,!0):!1}; g.L.fd=function(p){p.rN()==0&&this.j(p.Fp(),this)}; g.L.OG=function(){}; g.L.KU=function(){return!1}; g.L.dispose=function(){this.W=!0}; g.L.Gm=function(){return this.W}; g.L.uS=function(){return{}};SM.prototype.add=function(p,a,l){++this.U;p=new odE(p,a,l);this.L.push(new odE(p.S,p.L,p.U+this.U/4096));this.S=!0;return this};LgM.prototype.toString=function(){var p="//pagead2.googlesyndication.com//pagead/gen_204",a=ks(this.L);a.length>0&&(p+="?"+a);return p};g.D.prototype.zF=!1;g.D.prototype.Gm=function(){return this.zF}; g.D.prototype.dispose=function(){this.zF||(this.zF=!0,this.fz())}; g.D.prototype[Symbol.dispose]=function(){this.dispose()}; g.D.prototype.addOnDisposeCallback=function(p,a){this.zF?a!==void 0?p.call(a):p():(this.Rr||(this.Rr=[]),a&&(p=p.bind(a)),this.Rr.push(p))}; g.D.prototype.fz=function(){if(this.Rr)for(;this.Rr.length;)this.Rr.shift()()};var Xka=[0,lbc,dNK,-1];KG.prototype.update=function(p,a,l){p&&(this.L+=a,this.S+=a,this.j+=a,this.U=Math.max(this.U,this.j));if(l===void 0?!p:l)this.j=0};var Z3Z=[1,.75,.5,.3,0];B0.prototype.update=function(p,a,l,y,S,n){n=n===void 0?!0:n;a=S?Math.min(p,a):a;for(S=0;S0&&a>=V;V=!(p>0&&p>=V)||l;this.L[S].update(n&&z,y,!n||V)}};em.prototype.update=function(p,a,l,y){this.K=this.K!=-1?Math.min(this.K,a.aX):a.aX;this.Xu=Math.max(this.Xu,a.aX);this.w7=this.w7!=-1?Math.min(this.w7,a.PW):a.PW;this.QY=Math.max(this.QY,a.PW);this.Yv.update(a.PW,l.PW,a.L,p,y);this.Hs+=p;a.aX===0&&(this.nz+=p);this.S.update(a.aX,l.aX,a.L,p,y);l=y||l.m9!=a.m9?l.isVisible()&&a.isVisible():l.isVisible();a=!a.isVisible()||a.L;this.OO.update(l,p,a)}; em.prototype.OD=function(){return this.OO.U>=this.Ps};if(iS&&iS.URL){var xNc=iS.URL,F8b;a:{if(xNc){var Ec8=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var S9=Ec8.exec(decodeURIComponent(xNc));if(S9){F8b=S9[1]&&S9[1].length>1?S9[1].substring(1):"true";break a}}catch(p){}}F8b=""}q8.eZ=!(F8b.length>0)};var C0_=new Tf(0,0,0,0);var TEh=new Tf(0,0,0,0);g.A(GD,g.D);g.L=GD.prototype; g.L.fz=function(){if(this.bk.L){if(this.Q2.oF){var p=this.bk.L;typeof p.removeEventListener==="function"&&p.removeEventListener("mouseover",this.Q2.oF,sQ());this.Q2.oF=null}this.Q2.ZG&&(p=this.bk.L,typeof p.removeEventListener==="function"&&p.removeEventListener("mouseout",this.Q2.ZG,sQ()),this.Q2.ZG=null)}this.ma&&this.ma.dispose();this.r$&&this.r$.dispose();delete this.X$;delete this.MC;delete this.zL;delete this.bk.d1;delete this.bk.L;delete this.Q2;delete this.ma;delete this.r$;delete this.sC; g.D.prototype.fz.call(this)}; g.L.aI=function(){return this.r$?this.r$.L:this.position}; g.L.Sd=function(p){LO().Sd(p)}; g.L.KU=function(){return!1}; g.L.UP=function(){return new em}; g.L.rd=function(){return this.X$}; g.L.tI=function(p){return Kuo(this,p,1E4)}; g.L.pz=function(p,a,l,y,S,n,V){this.Fd||(this.dD&&(p=this.gH(p,l,S,V),y=y&&this.D1.aX>=(this.m9()?.3:.5),this.z6(n,p,y),this.d8=a,p.aX>0&&-1===this.bR&&(this.bR=a),this.H5==-1&&this.OD()&&(this.H5=a),this.tO==-2&&(this.tO=Sc(this.aI())?p.aX:-1),this.D1=p),this.MC(this))}; g.L.z6=function(p,a,l){this.rd().update(p,a,this.D1,l)}; g.L.Se=function(){return new tw}; g.L.gH=function(p,a,l,y){l=this.Se();l.L=a;a=CO().S;a=FE(iS)===0?-1:a.isVisible()?0:1;l.S=a;l.aX=this.cY(p);l.m9=this.m9();l.PW=y;return l}; g.L.cY=function(p){return this.opacity===0&&Zc(this.sC,"opac")===1?0:p}; g.L.m9=function(){return!1}; g.L.dg=function(){return this.YI||this.jc9}; g.L.TH=function(){nu()}; g.L.mZ=function(){nu()}; g.L.FW=function(){return 0}; g.L.OD=function(){return this.X$.OD()}; g.L.Oj=function(){var p=this.dD;p=(this.hasCompleted||this.Gm())&&!p;var a=LO().S!==2||this.bql;return this.Fd||a&&p?2:this.OD()?4:3}; g.L.OF=function(){return 0};g.ZI.prototype.next=function(){return g.nB}; g.nB={done:!0,value:void 0};g.ZI.prototype.y9=function(){return this};g.A(XLr,tw);var V7=lC$([void 0,1,2,3,4,8,16]),Zf=lC$([void 0,4,8,16]),vcc={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:DE("p0",Zf),p1:DE("p1",Zf),p2:DE("p2",Zf),p3:DE("p3",Zf),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:kS("mtos1",[0,2,4],!1,Zf),mtos2:kS("mtos2",[0,2,4],!1,Zf),mtos3:kS("mtos3",[0,2,4],!1,Zf),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:DE("a0",Zf),a1:DE("a1",Zf),a2:DE("a2",Zf),a3:DE("a3",Zf),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:DE("c0",Zf),c1:DE("c1",Zf),c2:DE("c2",Zf),c3:DE("c3",Zf),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:DE("qmtos",V7),qnc:DE("qnc",V7),qmv:DE("qmv",V7),qnv:DE("qnv",V7), 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:DE("ss0",Zf),ss1:DE("ss1",Zf),ss2:DE("ss2",Zf),ss3:DE("ss3",Zf),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"},K8W=Object.assign({},vcc,{avid:uv("audio"),avas:"avas",vs:"vs"}),edc={atos:"atos",avt:kS("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(p,a){return function(l){return l[p]===void 0&&a!==void 0?a:l[p]}}("ss",0), t:"t"};oN.prototype.getValue=function(){return this.S}; oN.prototype.update=function(p,a){p>=32||(this.L&1<=.5;w8(a.volume)&&(this.j=this.j!=-1?Math.min(this.j,a.volume):a.volume,this.G=Math.max(this.G,a.volume));n&&(this.Bs+=p,this.Sl+=S?p:0);this.L.update(a.aX,l.aX,a.L,p,y,S);this.U.update(!0,p);this.W.update(S,p);this.UO.update(l.fullscreen,p);this.Sb.update(S&&!n,p);p=Math.floor(a.mediaTime/1E3);this.t9.update(p,a.isVisible());this.VY.update(p,a.aX>=1);this.Kz.update(p, $Z(a))}};pTO.prototype.S=function(p){this.U||(this.L(p)?(p=Yhf(this.Sl,this.j,p),this.W|=p,p=p==0):p=!1,this.U=p)};g.A(UQ,pTO);UQ.prototype.L=function(){return!0}; UQ.prototype.G=function(){return!1}; UQ.prototype.getId=function(){var p=this,a=NO(s_,function(l){return l==p.j}); return ZR[a].toString()}; UQ.prototype.toString=function(){var p="";this.G()&&(p+="c");this.U&&(p+="s");this.W>0&&(p+=":"+this.W);return this.getId()+p};g.A(dt,UQ);dt.prototype.S=function(p,a){a=a===void 0?null:a;a!=null&&this.K.push(a);UQ.prototype.S.call(this,p)};g.A(dd,f0M);dd.prototype.S=function(){return null}; dd.prototype.U=function(){return[]};g.A(Xv,Cz);g.L=Xv.prototype;g.L.QN=function(){if(this.element){var p=this.element,a=this.S.L.U;try{try{var l=YYv(p.getBoundingClientRect())}catch(G){l=new Tf(0,0,0,0)}var y=l.right-l.left,S=l.bottom-l.top,n=Kyv(p,a),V=n.x,z=n.y;var d=new Tf(Math.round(z),Math.round(V+y),Math.round(z+S),Math.round(V))}catch(G){d=C0_.clone()}this.U=d;this.L=BhO(this,this.U)}}; g.L.N4=function(){this.G=this.S.j.L}; g.L.aR=function(p){var a=Zc(this.sC,"od")==1;return Ewq(p,this.G,this.element,a)}; g.L.YM=function(){this.timestamp=nu()}; g.L.yn=function(){this.YM();this.QN();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var p=this.element;var a=new g.N6(p.videoWidth,p.videoHeight);p=this.L;var l=oU(p),y=p.getHeight(),S=a.width;a=a.height;S<=0||a<=0||l<=0||y<=0||(S/=a,a=l/y,p=p.clone(),S>a?(l/=S,y=(y-l)/2,y>0&&(y=p.top+y,p.top=Math.round(y),p.bottom=Math.round(y+l))):(y*=S,l=Math.round((l-y)/2),l>0&&(l=p.left+l,p.left=Math.round(l),p.right=Math.round(l+y))));this.L=p}this.N4(); p=this.L;l=this.G;p=p.left<=l.right&&l.left<=p.right&&p.top<=l.bottom&&l.top<=p.bottom?new Tf(Math.max(p.top,l.top),Math.min(p.right,l.right),Math.min(p.bottom,l.bottom),Math.max(p.left,l.left)):new Tf(0,0,0,0);l=p.top>=p.bottom||p.left>=p.right?new Tf(0,0,0,0):p;p=this.S.j;a=S=y=0;if((this.L.bottom-this.L.top)*(this.L.right-this.L.left)>0)if(this.aR(l))l=new Tf(0,0,0,0);else{y=TJ().j;a=new Tf(0,y.height,y.width,0);var n;y=n7(l,(n=this.W)!=null?n:this.L);S=n7(l,TJ().L);a=n7(l,a)}n=l.top>=l.bottom|| l.left>=l.right?new Tf(0,0,0,0):V1(l,-this.L.left,-this.L.top);u4()||(S=y=0);this.Sl=new J6(p,this.element,this.L,n,y,S,this.timestamp,a)}; g.L.getName=function(){return this.S.getName()};var bac=new Tf(0,0,0,0);g.A(vO,Xv);g.L=vO.prototype;g.L.observe=function(){this.j();return!0}; g.L.OG=function(){Xv.prototype.yn.call(this)}; g.L.YM=function(){}; g.L.QN=function(){}; g.L.yn=function(){this.j();Xv.prototype.yn.call(this)}; g.L.fd=function(p){p=p.isActive();p!==this.Z&&(p?this.j():(TJ().L=new Tf(0,0,0,0),this.L=new Tf(0,0,0,0),this.G=new Tf(0,0,0,0),this.timestamp=-1));this.Z=p};var oT={},kQM=(oT.firstquartile=0,oT.midpoint=1,oT.thirdquartile=2,oT.complete=3,oT);g.A(c0,GD);g.L=c0.prototype;g.L.KU=function(){return!0}; g.L.xr=function(){return this.po==2}; g.L.tI=function(p){return Kuo(this,p,Math.max(1E4,this.U/3))}; g.L.pz=function(p,a,l,y,S,n,V){var z=this,d=this.K(this)||{};g.Qt(d,S);this.U=d.duration||this.U;this.Sl=d.isVpaid||this.Sl;this.nz=d.isYouTube||this.nz;CO();this.Yv=!1;S=FKr(this,a);sFM(this)===1&&(n=S);GD.prototype.pz.call(this,p,a,l,y,d,n,V);this.PO&&this.PO.U&&g.Bf(this.G,function(G){G.S(z)})}; g.L.z6=function(p,a,l){GD.prototype.z6.call(this,p,a,l);sBF(this).update(p,a,this.D1,l);this.Ps=$Z(this.D1)&&$Z(a);this.QY==-1&&this.VY&&(this.QY=this.rd().U.L);this.xo.U=0;p=this.OD();a.isVisible()&&CV(this.xo,"vs");p&&CV(this.xo,"vw");w8(a.volume)&&CV(this.xo,"am");$Z(a)?CV(this.xo,"a"):CV(this.xo,"mut");this.sy&&CV(this.xo,"f");a.S!=-1&&(CV(this.xo,"bm"),a.S==1&&(CV(this.xo,"b"),$Z(a)&&CV(this.xo,"umutb")));$Z(a)&&a.isVisible()&&CV(this.xo,"avs");this.Ps&&p&&CV(this.xo,"avw");a.aX>0&&CV(this.xo, "pv");BX(this,this.rd().U.L,!0)&&CV(this.xo,"gdr");G0(this.rd().S,1)>=2E3&&CV(this.xo,"pmx");this.Yv&&CV(this.xo,"tvoff")}; g.L.UP=function(){return new zl}; g.L.rd=function(){return this.X$}; g.L.Se=function(){return new XLr}; g.L.gH=function(p,a,l,y){p=GD.prototype.gH.call(this,p,a,l,y===void 0?-1:y);p.fullscreen=this.sy;p.paused=this.xr();p.volume=l.volume;w8(p.volume)||(this.yQ++,a=this.D1,w8(a.volume)&&(p.volume=a.volume));l=l.currentTime;p.mediaTime=l!==void 0&&l>=0?l:-1;return p}; g.L.cY=function(p){return TJ(),this.sy?1:GD.prototype.cY.call(this,p)}; g.L.FW=function(){return 1}; g.L.getDuration=function(){return this.U}; g.L.Oj=function(){return this.Fd?2:WhE(this)?5:this.OD()?4:3}; g.L.OF=function(){return this.Sb?this.rd().W.U>=2E3?4:3:2}; g.L.b1=function(p){this.r$&&this.r$.b1(p)};var Ibc=g.XS();wMc.prototype.reset=function(){this.L=[];this.S=[]}; var Ps=p7(wMc);g.A(Cw$,ea);g.L=Cw$.prototype;g.L.getName=function(){return(this.S?this.S:this.L).getName()}; g.L.uS=function(){return(this.S?this.S:this.L).uS()}; g.L.rN=function(){return(this.S?this.S:this.L).rN()}; g.L.init=function(p){var a=!1;(0,g.Bf)(this.U,function(l){l.initialize()&&(a=!0)}); a&&(this.j=p,NY(this.L,this));return a}; g.L.dispose=function(){(0,g.Bf)(this.U,function(p){p.dispose()}); ea.prototype.dispose.call(this)}; g.L.AV=function(){return gf(this.U,function(p){return p.Va()})}; g.L.Cw=function(){return gf(this.U,function(p){return p.Va()})}; g.L.m5=function(p,a,l){return new Xv(p,this.L,a,l)}; g.L.OG=function(p){this.S=p.S};var vso={threshold:[0,.3,.5,.75,1]};g.A(Qtq,Xv);g.L=Qtq.prototype;g.L.observe=function(){var p=this;this.Xu||(this.Xu=nu());if(xJq(298,function(){return KHr(p)}))return!0; this.S.fail("msf");return!1}; g.L.unobserve=function(){if(this.j&&this.element)try{this.j.unobserve(this.element),this.Z?(this.Z.unobserve(this.element),this.Z=null):this.K&&(this.K.disconnect(),this.K=null)}catch(p){}}; g.L.yn=function(){var p=zu(this);p.length>0&&ZW(this,p);Xv.prototype.yn.call(this)}; g.L.QN=function(){}; g.L.aR=function(){return!1}; g.L.N4=function(){}; g.L.uS=function(){var p={};return Object.assign(this.S.uS(),(p.niot_obs=this.Xu,p.niot_cbk=this.UO,p))}; g.L.getName=function(){return"nio"};g.A(nH,ea);nH.prototype.getName=function(){return"nio"}; nH.prototype.Cw=function(){return!TJ().S&&this.L.L.U.IntersectionObserver!=null}; nH.prototype.m5=function(p,a,l){return new Qtq(p,this.L,a,l)};g.A(yV,XM);yV.prototype.ZM=function(){return TJ().L}; yV.prototype.Va=function(){var p=MJf();this.Z!==p&&(this.L!=this&&p>this.L.Z&&(this.L=this,Sp(this)),this.Z=p);return p==2};Gcr.prototype.sample=function(){Ab(this,cT(),!1)}; Gcr.prototype.j=function(){var p=u4(),a=nu();p?(VZ||(Z2=a,g.Bf(Ps.L,function(l){var y=l.rd();y.r7=Ej(y,a,l.po!=1)})),VZ=!0):(this.K=EHO(this,a),VZ=!1,hAf=a,g.Bf(Ps.L,function(l){l.dD&&(l.rd().Z=a)})); Ab(this,cT(),!p)}; var wD=p7(Gcr);var yvr=null,$m="",Vy$=!1;var ci$=pQo().rX,g6=pQo().pE;var JSv={RW7:"visible",FDm:"audible",g$T:"time",bEV:"timetype"},fy$={visible:function(p){return/^(100|[0-9]{1,2})$/.test(p)}, audible:function(p){return p=="0"||p=="1"}, timetype:function(p){return p=="mtos"||p=="tos"}, time:function(p){return/^(100|[0-9]{1,2})%$/.test(p)||/^([0-9])+ms$/.test(p)}}; P_B.prototype.setTime=function(p,a,l){a=="ms"?(this.U=p,this.j=-1):(this.U=-1,this.j=p);this.W=l===void 0?"tos":l;return this};g.A(Qb,UQ);Qb.prototype.getId=function(){return this.K}; Qb.prototype.G=function(){return!0}; Qb.prototype.L=function(p){var a=p.rd(),l=p.getDuration();return gf(this.Z,function(y){if(y.L!=void 0)var S=SiO(y,a);else b:{switch(y.W){case "mtos":S=y.S?a.W.U:a.U.L;break b;case "tos":S=y.S?a.W.L:a.U.L;break b}S=0}S==0?y=!1:(y=y.U!=-1?y.U:l!==void 0&&l>0?y.j*l:-1,y=y!=-1&&S>=y);return y})};g.A(GM,afA);GM.prototype.L=function(p){var a=new lph;a.L=TM(p,vcc);a.S=TM(p,edc);return a};g.A(EO,UQ);EO.prototype.L=function(p){return WhE(p)};g.A(H2,f0M);g.A(F2,UQ);F2.prototype.L=function(p){return p.rd().OD()};g.A(gsr,dt);gsr.prototype.L=function(p){var a=g.rW(this.K,Zc(LO().sC,"ovms"));return!p.Fd&&(p.po!=0||a)};g.A(xa,H2);xa.prototype.S=function(){return new gsr(this.L)}; xa.prototype.U=function(){return[new F2("viewable_impression",this.L),new EO(this.L)]};g.A(A2,vO);A2.prototype.j=function(){var p=g.o4("ima.admob.getViewability"),a=Zc(this.sC,"queryid");typeof p==="function"&&a&&p(a)}; A2.prototype.getName=function(){return"gsv"};g.A(ec,ea);ec.prototype.getName=function(){return"gsv"}; ec.prototype.Cw=function(){var p=TJ();LO();return p.S&&!1}; ec.prototype.m5=function(p,a,l){return new A2(this.L,a,l)};g.A(l9,vO);l9.prototype.j=function(){var p=this,a=g.o4("ima.bridge.getNativeViewability"),l=Zc(this.sC,"queryid");typeof a==="function"&&l&&a(l,function(y){g.cL(y)&&p.K++;var S=y.opt_nativeViewVisibleBounds||{},n=y.opt_nativeViewHidden;p.L=SKr(y.opt_nativeViewBounds||{});var V=p.S.j;V.L=n?bac.clone():SKr(S);p.timestamp=y.opt_nativeTime||-1;TJ().L=V.L;y=y.opt_nativeVolume;y!==void 0&&(V.volume=y)})}; l9.prototype.getName=function(){return"nis"};g.A(SD,ea);SD.prototype.getName=function(){return"nis"}; SD.prototype.Cw=function(){var p=TJ();LO();return p.S&&!1}; SD.prototype.m5=function(p,a,l){return new l9(this.L,a,l)};g.A(R7,XM);g.L=R7.prototype;g.L.Va=function(){return this.S.Fq!=null}; g.L.AI=function(){var p={};this.t9&&(p.mraid=this.t9);this.w7&&(p.mlc=1);p.mtop=this.S.J$l;this.K&&(p.mse=this.K);this.Hs&&(p.msc=1);p.mcp=this.S.compatibility;return p}; g.L.Pf=function(p){var a=g.D1.apply(1,arguments);try{return this.S.Fq[p].apply(this.S.Fq,a)}catch(l){Jf(538,l,.01,function(y){y.method=p})}}; g.L.initialize=function(){var p=this;if(this.isInitialized)return!this.E4();this.isInitialized=!0;if(this.S.compatibility===2)return this.K="ng",this.fail("w"),!1;if(this.S.compatibility===1)return this.K="mm",this.fail("w"),!1;TJ().Z=!0;this.U.document.readyState&&this.U.document.readyState=="complete"?ymf(this):Un(this.U,"load",function(){CO().setTimeout(TR(292,function(){return ymf(p)}),100)},292); return!0}; g.L.lV=function(){var p=TJ(),a=mUM(this,"getMaxSize");p.L=new Tf(0,a.width,a.height,0)}; g.L.sx=function(){TJ().j=mUM(this,"getScreenSize")}; g.L.dispose=function(){vHq(this);XM.prototype.dispose.call(this)};var Rda=new function(p,a){this.key=p;this.defaultValue=a===void 0?!1:a;this.valueType="boolean"}("45378663");g.L=rq.prototype;g.L.D2=function(p){Ov(p,!1);H0Z(p)}; g.L.d5=function(){}; g.L.gQ=function(p,a,l,y){var S=this;p=new c0(LU,p,l?a:-1,7,this.h6(),this.kQ());p.eR=y;BrO(p.sC);wy(p.sC,"queryid",p.eR);p.Sd("");DDE(p,function(){return S.hI.apply(S,g.u0(g.D1.apply(0,arguments)))},function(){return S.vB.apply(S,g.u0(g.D1.apply(0,arguments)))}); (y=p7(BT).L)&&Xsf(p,y);this.U&&(p.b1(this.U),this.U=null);p.bk.d1&&p7(p3M);return p}; g.L.fd=function(p){switch(p.rN()){case 0:if(p=p7(BT).L)p=p.L,g.FS(p.W,this),p.Sl&&this.KU()&&shE(p);nLZ();break;case 2:im()}}; g.L.OG=function(){}; g.L.KU=function(){return!1}; g.L.vB=function(p,a){p.Fd=!0;switch(p.FW()){case 1:crO(p,a);break;case 2:this.gF(p)}}; g.L.pV=function(p){var a=p.K(p);a&&(a=a.volume,p.Sb=w8(a)&&a>0);mWo(p,0);return U_(p,"start",u4())}; g.L.w6=function(p,a,l){Ab(wD,[p],!u4());return this.hD(p,a,l)}; g.L.hD=function(p,a,l){return U_(p,l,u4())}; g.L.nV=function(p){return Ms(p,"firstquartile",1)}; g.L.Mv=function(p){p.VY=!0;return Ms(p,"midpoint",2)}; g.L.IP=function(p){return Ms(p,"thirdquartile",3)}; g.L.tL=function(p){var a=Ms(p,"complete",4);Qc(p);return a}; g.L.ue=function(p){p.po=3;return U_(p,"error",u4())}; g.L.Ek=function(p,a,l){a=u4();if(p.xr()&&!a){var y=p.rd(),S=nu();y.Z=S}Ab(wD,[p],!a);p.xr()&&(p.po=1);return U_(p,l,a)}; g.L.TZ=function(p,a){a=this.w6(p,a||{},"skip");Qc(p);return a}; g.L.aP=function(p,a){Ov(p,!0);return this.w6(p,a||{},"fullscreen")}; g.L.GZ=function(p,a){Ov(p,!1);return this.w6(p,a||{},"exitfullscreen")}; g.L.zg=function(p,a,l){a=p.rd();var y=nu();a.r7=Ej(a,y,p.po!=1);Ab(wD,[p],!u4());p.po==1&&(p.po=2);return U_(p,l,u4())}; g.L.r_=function(p){Ab(wD,[p],!u4());return p.S()}; g.L.Ml=function(p){Ab(wD,[p],!u4());this.YW(p);Qc(p);return p.S()}; g.L.hI=function(){}; g.L.gF=function(){}; g.L.YW=function(){}; g.L.HD=function(){}; g.L.mL=function(){}; g.L.kQ=function(){this.L||(this.L=this.mL());return this.L==null?new dd:new xa(this.L)}; g.L.h6=function(){return new GM};g.A(yx,UQ);yx.prototype.L=function(p){return p.OF()==4};g.A(Gw,dt);Gw.prototype.L=function(p){p=p.OF();return p==3||p==4};g.A(ot,H2);ot.prototype.S=function(){return new Gw(this.L)}; ot.prototype.U=function(){return[new yx(this.L)]};g.A(u9,afA);u9.prototype.L=function(p){p&&(p.e===28&&(p=Object.assign({},p,{avas:3})),p.vs===4||p.vs===5)&&(p=Object.assign({},p,{vs:3}));var a=new lph;a.L=TM(p,K8W);a.S=TM(p,edc);return a};S_E.prototype.S=function(){return g.o4(this.L)};g.A($n,rq);g.L=$n.prototype;g.L.d5=function(p,a){var l=this,y=p7(BT);if(y.L!=null)switch(y.L.getName()){case "nis":var S=Tnf(this,p,a);break;case "gsv":S=q$h(this,p,a);break;case "exc":S=sxv(this,p)}S||(a.opt_overlayAdElement?S=void 0:a.opt_adElement&&(S=hFo(this,p,a.opt_adElement,a.opt_osdId)));S&&S.FW()==1&&(S.K==g.xD&&(S.K=function(n){return l.HD(n)}),GEh(this,S,a)); return S}; g.L.HD=function(p){p.S=0;p.Bs=0;if(p.j=="h"||p.j=="n"){LO();p.Kz&&(LO(),a8(this)!="h"&&a8(this));var a=g.o4("ima.common.getVideoMetadata");if(typeof a==="function")try{var l=a(p.eR)}catch(S){p.S|=4}else p.S|=2}else if(p.j=="b")if(a=g.o4("ytads.bulleit.getVideoMetadata"),typeof a==="function")try{l=a(p.eR)}catch(S){p.S|=4}else p.S|=2;else if(p.j=="ml")if(a=g.o4("ima.common.getVideoMetadata"),typeof a==="function")try{l=a(p.eR)}catch(S){p.S|=4}else p.S|=2;else p.S|=1;p.S||(l===void 0?p.S|=8:l===null? p.S|=16:g.cL(l)?p.S|=32:l.errorCode!=null&&(p.Bs=l.errorCode,p.S|=64));l==null&&(l={});a=l;p.Z=0;for(var y in L81)a[y]==null&&(p.Z|=L81[y]);fea(a,"currentTime");fea(a,"duration");w8(l.volume)&&w8()&&(l.volume*=NaN);return l}; g.L.mL=function(){LO();a8(this)!="h"&&a8(this);var p=sJO(this);return p!=null?new S_E(p):null}; g.L.gF=function(p){!p.L&&p.Fd&&O3(this,p,"overlay_unmeasurable_impression")&&(p.L=!0)}; g.L.YW=function(p){p.oO&&(p.OD()?O3(this,p,"overlay_viewable_end_of_session_impression"):O3(this,p,"overlay_unviewable_impression"),p.oO=!1)}; g.L.hI=function(){}; g.L.gQ=function(p,a,l,y){if(LO().flags.Zy(Rda)){var S=Zc(LO().sC,"mm"),n={};(S=(n[TYZ.Hh]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",n[TYZ.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",n)[S])&&Itf(this,S);this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Jf(1044,Error())}p=rq.prototype.gQ.call(this,p,a,l,y);this.W&&(a=this.G,p.W==null&&(p.W=new FDq),a.L[p.eR]=p.W,p.W.W=Ibc);return p}; g.L.D2=function(p){p&&p.FW()==1&&this.W&&delete this.G.L[p.eR];return rq.prototype.D2.call(this,p)}; g.L.kQ=function(){this.L||(this.L=this.mL());return this.L==null?new dd:this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new ot(this.L):new xa(this.L)}; g.L.h6=function(){return this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new u9:new GM}; g.L.b1=function(p,a,l,y,S){a=new Tf(l,a+y,l+S,a);(p=Ll(Ps,p))?p.b1(a):this.U=a}; var uJG=iC(193,Abr,void 0,jKe);g.M8("Goog_AdSense_Lidar_sendVastEvent",uJG);var Oac=TR(194,function(p,a){a=a===void 0?{}:a;p=h0E(p7($n),p,a);return Ax$(p)}); g.M8("Goog_AdSense_Lidar_getViewability",Oac);var kv8=iC(195,function(){return m5o()}); g.M8("Goog_AdSense_Lidar_getUrlSignalsArray",kv8);var Mi7=TR(196,function(){return JSON.stringify(m5o())}); g.M8("Goog_AdSense_Lidar_getUrlSignalsList",Mi7);var icG=g.to(["//ep2.adtrafficquality.google/sodar/",""]),TGK=g.to(["//tpc.googlesyndication.com/sodar/",""]);g.A(V$,Error);g.A(Ui,g.D);Ui.prototype.tU=function(){return this.wpc.f()}; Ui.prototype.C2=function(p){this.wpc.c(p)}; Ui.prototype.Dk=function(p){return this.wpc.m(P$r(p))}; Ui.prototype.eq=function(p){return this.wpc.mws(P$r(p))}; g.A(kY,g.D);kY.prototype.snapshot=function(p){return this.Yy.s(Object.assign({},p.Tw&&{c:p.Tw},p.f$&&{s:p.f$},p.dn!==void 0&&{p:p.dn}))}; kY.prototype.yF=function(p){this.Yy.e(p)}; kY.prototype.eG=function(){return this.Yy.l()};g.A(LT,g.D);LT.prototype.share=function(){if(this.Gm())throw Error("E:AD");this.S++;return this}; LT.prototype.dispose=function(){--this.S||g.D.prototype.dispose.call(this)};XJZ.prototype.q5=function(p,a){this.L.q5("/client_streamz/bg/frs",p,a)}; TyM.prototype.q5=function(p,a,l,y,S,n){this.L.q5("/client_streamz/bg/wrl",p,a,l,y,S,n)}; YF$.prototype.cX=function(p,a){this.L.Ui("/client_streamz/bg/ec",p,a)}; wOE.prototype.q5=function(p,a,l){this.L.q5("/client_streamz/bg/el",p,a,l)}; yMr.prototype.cX=function(p,a){this.L.Ui("/client_streamz/bg/cec",p,a)}; N1q.prototype.cX=function(p,a){this.L.Ui("/client_streamz/bg/po/csc",p,a)}; BWo.prototype.cX=function(p,a){this.L.Ui("/client_streamz/bg/po/ctav",p,a)}; x9o.prototype.cX=function(p,a){this.L.Ui("/client_streamz/bg/po/cwsc",p,a)};g.A(Zqr,Zv);g.A(P3,Zv);var LI=[1,2,3];var mNG=[0,LI,rx1,ZaG,BCl];var tic=[0,Jo,[0,fYK,lbc]];g.A(B3,Zv);var rp=[1,2,3];var j1B=[0,rp,SpU,abc,pB,tic];g.A(iW,Zv);var W8G=[0,Jo,mNG,j1B];var Ha_=[0,qS];g.A(htZ,Zv);var DNl=[0,qS,-1,Gvb];var iaG=[0,qS,-1,ncU,Gvb];g.A(JD$,Zv);var v4F=[1,2,3];var TCG=[0,v4F,pB,DNl,pB,iaG,pB,Ha_];g.A(dp,Zv);dp.prototype.tJ=function(){var p=xR(this,3,c1,3,!0);mQ(p);return p[void 0]};dp.prototype.U=l1h([0,qS,TCG,cx8,Jo,W8G,ocb,zdb]);g.A(FXh,Zv);g.L=oX.prototype;g.L.isEnabled=function(){if(!g.dD.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Sq:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.L.set=function(p,a,l){var y=!1;if(typeof l==="object"){var S=l.dAu;y=l.secure||!1;var n=l.domain||void 0;var V=l.path||void 0;var z=l.Sq}if(/[;=\s]/.test(p))throw Error('Invalid cookie name "'+p+'"');if(/[;\r\n]/.test(a))throw Error('Invalid cookie value "'+a+'"');z===void 0&&(z=-1);l=n?";domain="+n:"";V=V?";path="+V:"";y=y?";secure":"";z=z<0?"":z==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+z*1E3)).toUTCString();this.L.cookie=p+"="+a+l+V+z+y+(S!=null?";samesite="+ S:"")}; g.L.get=function(p,a){for(var l=p+"=",y=(this.L.cookie||"").split(";"),S=0,n;S=0;a--)this.remove(p[a])}; var aC=new oX(typeof document=="undefined"?null:document);N2r.prototype.compress=function(p){var a,l,y,S;return g.R(function(n){switch(n.L){case 1:return a=new CompressionStream("gzip"),l=(new Response(a.readable)).arrayBuffer(),y=a.writable.getWriter(),g.u(n,y.write((new TextEncoder).encode(p)),2);case 2:return g.u(n,y.close(),3);case 3:return S=Uint8Array,g.u(n,l,4);case 4:return n.return(new S(n.S))}})}; N2r.prototype.isSupported=function(p){return p<1024?!1:typeof CompressionStream!=="undefined"};g.A(zR,Zv);rH.prototype.setInterval=function(p){this.intervalMs=p;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; rH.prototype.start=function(){var p=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){p.tick()},this.intervalMs),this.S=this.L())}; rH.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; rH.prototype.tick=function(){var p=this;if(this.enabled){var a=Math.max(this.L()-this.S,0);a0?l:void 0));l=U9(l,4,mn(S>0?S:void 0));l=U9(l,5,mn(n>0?n:void 0));S=l.NO;n=S[QB]|0;l=qN(l,n)?l:XG(l,S,n)?YY(l,S):new l.constructor(fa(S,n,!0));$W(V,o9,10,l)}V=this.L.clone();l=Date.now().toString();V=U9(V,4,Hf(l));p=dJ(V,eE,3,p.slice());y&&(V=new yZ,y=U9(V,13,mn(y)),V=new gs, y=$W(V,yZ,2,y),V=new A3o,y=$W(V,gs,1,y),y=Ey(y,2,9),$W(p,A3o,18,y));a&&QE(p,14,a);return p};g.r5.prototype.S=0;g.r5.prototype.reset=function(){this.L=this.U=this.j;this.S=0}; g.r5.prototype.getValue=function(){return this.U};g.A(iz,Zv);var NCc=PS(iz);g.A(Izq,Zv);var zm;zm=new Rwf;g.A(LSe,g.D);g.L=LSe.prototype;g.L.fz=function(){KOE(this);this.S.stop();this.t9.stop();g.D.prototype.fz.call(this)}; g.L.dispatch=function(p){if(p instanceof eE)this.log(p);else try{var a=new eE,l=p.Ut();var y=GY(a,8,l);this.log(y)}catch(S){ZP(this,4,1)}}; g.L.log=function(p){ZP(this,2,1);if(this.Hs){p=p.clone();var a=this.OO++;p=QE(p,21,a);this.componentId&&GY(p,26,this.componentId);a=p;var l=A9(a,1);var y=y===void 0?!1:y;var S=typeof l;y=l==null?l:S==="bigint"?String(MG(64,l)):MA(l)?S==="string"?xU(l):y?Fd(l):EB(l):void 0;y==null&&(y=Date.now(),y=Number.isFinite(y)?y.toString():"0",U9(a,1,Hf(y)));y=A9(a,15);y!=null&&(typeof y==="bigint"?K5(y)?y=Number(y):(y=MG(64,y),y=K5(y)?Number(y):String(y)):y=MA(y)?typeof y==="number"?EB(y):xU(y):void 0);y!=null|| QE(a,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(y=this.experimentIds.clone(),$W(a,zR,16,y));ZP(this,1,1);a=this.L.length-1E3+1;a>0&&(this.L.splice(0,a),this.j+=a,ZP(this,3,a));this.L.push(p);this.Xa||this.S.enabled||this.S.start()}}; g.L.flush=function(p,a){var l=this;if(this.L.length===0)p&&p();else if(this.QY&&this.UO)this.U.S=3,nDo(this);else{var y=Date.now();if(this.r7>y&&this.Bs0&&(l.Bs=Date.now(),l.r7=l.Bs+r);r=WE(Kn);var F;Oi&&r&&((F=w.NO[r])==null?void 0:F[175237375])!=null&&XC(mQc,3);a:{var v=v===void 0?!1:v;if(WE(t_K)&&WE(Kn)&&void 0===t_K){F=w.NO;r=F[Kn];if(!r)break a;if(r=r.n3)try{r(F,175237375,TDl);break a}catch(I){nW(I)}}v&&(v=w.NO,(F=WE(Kn))&&F in v&&(v=v[F])&&delete v[175237375])}v=zm.L?zm.S(w,zm.L, 175237375,zm.U):zm.S(w,175237375,null,zm.U);if(v=v===null?void 0:v)v=n8(v,1,-1),v!==-1&&(l.W=new g.r5(v<1?1:v,3E5,.1),l.S.setInterval(l.W.getValue()))}}p&&p();l.G=0}; z?z.then(function(r){ZP(l,5,S);d.requestHeaders["Content-Encoding"]="gzip";d.requestHeaders["Content-Type"]="application/binary";d.body=r;d.mY=2;G()},function(){ZP(l,6,S); G()}):G()}}}}; g.L.isRetryable=function(p){return 500<=p&&p<600||p===401||p===0};mH.prototype.send=function(p,a,l){var y=this,S,n,V,z,d,G,B,c,r,w;return g.R(function(P){switch(P.L){case 1:return n=(S=y.a5?new AbortController:void 0)?setTimeout(function(){S.abort()},p.timeoutMillis):void 0,g.$r(P,2,3),V=Object.assign({},{method:p.requestType, headers:Object.assign({},p.requestHeaders)},p.body&&{body:p.body},p.withCredentials&&{credentials:"include"},{signal:p.timeoutMillis&&S?S.signal:null}),g.u(P,fetch(p.url,V),5);case 5:z=P.S;if(z.status!==200){(d=l)==null||d(z.status);P.g7(3);break}if((G=a)==null){P.g7(7);break}return g.u(P,z.text(),8);case 8:G(P.S);case 7:case 3:g.TK(P);clearTimeout(n);g.$F(P,0);break;case 2:B=g.L6(P);switch((c=B)==null?void 0:c.name){case "AbortError":(r=l)==null||r(408);break;default:(w=l)==null||w(400)}P.g7(3)}})}; mH.prototype.w5=function(){return 4};g.A(w0,g.D);w0.prototype.w2=function(){this.W=!0;return this}; w0.prototype.build=function(){this.network||(this.network=new mH);var p=new LSe({logSource:this.logSource,Ov:this.Ov?this.Ov:JXr,sessionIndex:this.sessionIndex,TEv:this.bS,o6:this.j,Xa:!1,w2:this.W,xM:this.xM,network:this.network});g.E(this,p);if(this.S){var a=this.S,l=B7(p.U);GY(l,7,a)}p.K=new N2r;this.componentId&&(p.componentId=this.componentId);this.Uo&&(p.Uo=this.Uo);this.pageId&&(p.pageId=this.pageId);this.L&&((l=this.L)?(p.experimentIds||(p.experimentIds=new zR),a=p.experimentIds,l=l.Ut(), GY(a,4,l)):p.experimentIds&&U9(p.experimentIds,4));this.U&&(p.QY=p.UO);Ulr(p.U);this.network.c6&&this.network.c6(this.logSource);this.network.r$T&&this.network.r$T(p);return p};g.A($1r,g.D);$1r.prototype.flush=function(p){p=p||[];if(p.length){for(var a=new FXh,l=[],y=0;y-1?(a=p[V],l||(a.x_=!1)):(a=new CEM(a,this.src,n,!!y,S),a.x_=l,p.push(a));return a}; g.L.remove=function(p,a,l,y){p=p.toString();if(!(p in this.listeners))return!1;var S=this.listeners[p];a=SuF(S,a,l,y);return a>-1?(Au(S[a]),g.x3(S,a),S.length==0&&(delete this.listeners[p],this.L--),!0):!1}; g.L.removeAll=function(p){p=p&&p.toString();var a=0,l;for(l in this.listeners)if(!p||l==p){for(var y=this.listeners[l],S=0;S-1?p[S]:null}; g.L.hasListener=function(p,a){var l=p!==void 0,y=l?p.toString():"",S=a!==void 0;return g.j$(this.listeners,function(n){for(var V=0;V>>0);g.tP(g.yT,g.D);g.yT.prototype[qWb]=!0;g.L=g.yT.prototype;g.L.addEventListener=function(p,a,l,y){g.pD(this,p,a,l,y)}; g.L.removeEventListener=function(p,a,l,y){oJ$(this,p,a,l,y)}; g.L.dispatchEvent=function(p){var a=this.ZQ;if(a){var l=[];for(var y=1;a;a=a.ZQ)l.push(a),++y}a=this.Tb;y=p.type||p;if(typeof p==="string")p=new g.fs(p,a);else if(p instanceof g.fs)p.target=p.target||a;else{var S=p;p=new g.fs(y,a);g.Qt(p,S)}S=!0;var n;if(l)for(n=l.length-1;!p.S&&n>=0;n--){var V=p.currentTarget=l[n];S=XY(V,y,!0,p)&&S}p.S||(V=p.currentTarget=a,S=XY(V,y,!0,p)&&S,p.S||(S=XY(V,y,!1,p)&&S));if(l)for(n=0;!p.S&&n0){this.S--;var p=this.L;this.L=p.next;p.next=null}else p=this.U();return p};var W5;r1v.prototype.add=function(p,a){var l=bkZ.get();l.set(p,a);this.S?this.S.next=l:this.L=l;this.S=l}; r1v.prototype.remove=function(){var p=null;this.L&&(p=this.L,this.L=this.L.next,this.L||(this.S=null),p.next=null);return p}; var bkZ=new Gab(function(){return new wx},function(p){return p.reset()}); wx.prototype.set=function(p,a){this.L=p;this.scope=a;this.next=null}; wx.prototype.reset=function(){this.next=this.scope=this.L=null};var xJ,EK=!1,Buo=new r1v;UMM.prototype.reset=function(){this.context=this.S=this.U=this.L=null;this.j=!1}; var Pne=new Gab(function(){return new UMM},function(p){p.reset()}); g.BG.prototype.then=function(p,a,l){return jlA(this,jP(typeof p==="function"?p:null),jP(typeof a==="function"?a:null),l)}; g.BG.prototype.$goog_Thenable=!0;g.L=g.BG.prototype;g.L.finally=function(p){var a=this;p=jP(p);return new g.BG(function(l,y){eTO(a,function(S){p();l(S)},function(S){p(); y(S)})})}; g.L.Nb=function(p,a){return jlA(this,null,jP(p),a)}; g.L.catch=g.BG.prototype.Nb;g.L.cancel=function(p){if(this.L==0){var a=new Yk(p);g.VU(function(){SXM(this,a)},this)}}; g.L.A5T=function(p){this.L=0;Qh(this,2,p)}; g.L.Hqu=function(p){this.L=0;Qh(this,3,p)}; g.L.yj=function(){for(var p;p=nZO(this);)VaF(this,p,this.L,this.K);this.G=!1}; var RzM=nW;g.tP(Yk,LV);Yk.prototype.name="cancel";g.tP(g.Xn,g.yT);g.L=g.Xn.prototype;g.L.enabled=!1;g.L.zR=null;g.L.setInterval=function(p){this.N0=p;this.zR&&this.enabled?(this.stop(),this.start()):this.zR&&this.stop()}; g.L.y5z=function(){if(this.enabled){var p=g.XS()-this.oR;p>0&&p0&&(this.getStatus(),this.G=setTimeout(this.Rb.bind(this), this.UO)),this.getStatus(),this.Sl=!0,this.L.send(p),this.Sl=!1}catch(V){this.getStatus(),W$o(this,V)}}; g.L.Rb=function(){typeof RH!="undefined"&&this.L&&(this.j="Timed out after "+this.UO+"ms, aborting",this.S=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.L.abort=function(p){this.L&&this.U&&(this.getStatus(),this.U=!1,this.W=!0,this.L.abort(),this.W=!1,this.S=p||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),um(this))}; g.L.fz=function(){this.L&&(this.U&&(this.U=!1,this.W=!0,this.L.abort(),this.W=!1),um(this,!0));g.Vi.Lv.fz.call(this)}; g.L.w9=function(){this.Gm()||(this.w7||this.Sl||this.W?GoM(this):this.fIz())}; g.L.fIz=function(){GoM(this)}; g.L.isActive=function(){return!!this.L}; g.L.isComplete=function(){return g.uV(this)==4}; g.L.getStatus=function(){try{return g.uV(this)>2?this.L.status:-1}catch(p){return-1}}; g.L.getResponseHeader=function(p){if(this.L&&this.isComplete())return p=this.L.getResponseHeader(p),p===null?void 0:p}; g.L.getLastError=function(){return typeof this.j==="string"?this.j:String(this.j)};ra$.prototype.send=function(p,a,l){a=a===void 0?function(){}:a; l=l===void 0?function(){}:l; rBG(p.url,function(y){y=y.target;GT(y)?a(g.Bq(y)):l(y.getStatus())},p.requestType,p.body,p.requestHeaders,p.timeoutMillis,p.withCredentials)}; ra$.prototype.w5=function(){return 1};Wu.prototype.done=function(){this.logger.sS(this.event,a7()-this.startTime)}; g.A(sZ,LT);g.A(Ml,sZ);g.L=Ml.prototype;g.L.m3=function(){}; g.L.B8=function(){}; g.L.sS=function(){}; g.L.Tf=function(){}; g.L.BI=function(){}; g.L.Nu=function(p,a,l,y){return y}; g.L.mX=function(){}; g.L.CF=function(){}; g.L.h8=function(){}; g.A(UZ,sZ);g.L=UZ.prototype;g.L.update=function(p){this.logger.dispose();this.logger=p}; g.L.B8=function(p){this.logger.B8(p)}; g.L.sS=function(p,a){this.logger.sS(p,a)}; g.L.Tf=function(p){this.logger.Tf(p)}; g.L.BI=function(){this.logger.BI()}; g.L.Nu=function(p,a,l,y){return this.logger.Nu(p,a,l,y)}; g.L.mX=function(p){this.logger.mX(p)}; g.L.CF=function(p){this.logger.CF(p)}; g.L.h8=function(p){this.logger.h8(p)}; g.L.m3=function(p){this.logger.m3(p)}; g.A(X5O,g.D);g.A(mh,sZ);g.L=mh.prototype;g.L.m3=function(p){this.metrics.Zvu.q5(p,this.SR)}; g.L.B8=function(p){this.metrics.eventCount.cX(p,this.SR)}; g.L.sS=function(p,a){this.metrics.X2.q5(a,p,this.SR)}; g.L.Tf=function(p){this.metrics.errorCount.cX(p,this.SR)}; g.L.Nu=function(p,a,l,y){function S(z){if(!n.Gm()){var d=a7()-V;n.metrics.OqT.q5(d,p,l,z,a,n.SR)}} var n=this,V=a7();y.then(function(){return void S(0)},function(z){return void S(z instanceof bm?z.code:-1)}); return y}; g.L.mX=function(p){this.metrics.x3m.cX(p,this.SR)}; g.L.CF=function(p){this.metrics.YO.cX(p,this.SR)}; g.L.h8=function(p){this.metrics.z5v.cX(p,this.SR)}; g.A(e3,mh);e3.prototype.BI=function(){THe(this.L)};g.A(an,Zv);g.A(lY,Zv);g.A(zU,Zv);var cSh=PS(zU),z2M=function(p){return sO(function(a){return a instanceof p&&!qN(a)})}(zU); zU.messageId="bfkj";g.A(yi,Zv);g.A(jn,Zv);var dTF=PS(jn);g.A(aX,g.D);aX.prototype.snapshot=function(p){if(this.Gm())throw Error("Already disposed");this.logger.B8("n");var a=this.logger.share();return this.U.then(function(l){var y=l.xO;return new Promise(function(S){var n=new Wu(a,"n");y(function(V){n.done();a.m3(V.length);a.BI();a.dispose();S(V)},[p.Tw, p.f$,p.wk,p.dn])})})}; aX.prototype.xb=function(p){var a=this;if(this.Gm())throw Error("Already disposed");this.logger.B8("n");var l=bk(this.logger,function(){return a.j([p.Tw,p.f$,p.wk,p.dn])},"n"); this.logger.m3(l.length);this.logger.BI();return l}; aX.prototype.yF=function(p){this.U.then(function(a){var l;(l=a.WyY)==null||l(p)})}; aX.prototype.eG=function(){return this.logger.share()};g.A(VdA,Zv);g.A(Ix,Zv);AY.prototype.kG=function(p){return GKA(this,p,new Ml,0)};g.A(oS,g.D);oS.prototype.snapshot=function(p){var a=this;return g.R(function(l){switch(l.L){case 1:if(a.Gm())throw Error("Already disposed");if(a.S||a.K){l.g7(2);break}return g.u(l,a.W.promise,2);case 2:if(!a.S){l.g7(4);break}return g.u(l,a.S.snapshot(p),5);case 5:return l.return(l.S);case 4:throw a.K;}})}; oS.prototype.yF=function(p){var a,l;(a=this.S)==null||(l=a.yF)==null||l.call(a,p)}; oS.prototype.handleError=function(p){if(!this.Gm()){this.K=p;this.W.resolve();var a,l;(l=(a=this.options).ix7)==null||l.call(a,p)}}; oS.prototype.eG=function(){return this.logger.share()}; var iwr={qQY:432E5,gB:3E5,Ad:10,QJ:1E4,gV:3E4,lVO:3E4,IgV:6E4,Sf:1E3,LA:6E4,Uf:6E5,jf:.25,Y5:2,maxAttempts:10};var Q1W,Dl$=(Q1W=Math.imul)!=null?Q1W:function(p,a){return p*a|0},jq=[196, 200,224,18];H7.prototype.Ut=function(){return String(this.L)+","+this.S.join()}; H7.prototype.zp=function(p,a){var l=void 0;if(this.S[this.L]!==p){var y=this.S.indexOf(p);y!==-1?(this.S.splice(y,1),y0;)a[l++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(p%62),p=Math.floor(p/62);return a.join("")}};g.A(WV,g.D);WV.prototype.eq=function(p,a){var l=this.Dk(p);a==null||a(l);return bk(this.logger,function(){return g.MN(l,2)},this.S)}; g.A(Di,WV);Di.prototype.Dk=function(p,a){var l=this;this.logger.B8(this.L);++this.W>=this.G&&this.U.resolve();var y=p();p=bk(this.logger,function(){return l.j(y)},"C"); if(p===void 0)throw new V$(17,"YNJ:Undefined");if(!(p instanceof Uint8Array))throw new V$(18,"ODM:Invalid");a==null||a(p);return p}; g.A(PW,WV);PW.prototype.Dk=function(){return this.j}; g.A(F0,WV);F0.prototype.Dk=function(){var p=this;return bk(this.logger,function(){return tY(p.j)},"d")}; F0.prototype.eq=function(){return this.j}; g.A(w6A,WV);w6A.prototype.Dk=function(){if(this.j)return this.j;this.j=l4o(this,function(p){return"_"+pmO(p)}); return l4o(this,function(p){return p})}; g.A(ZC,WV);ZC.prototype.Dk=function(){var p=Math.floor(Date.now()/1E3),a=[Math.random()*255,Math.random()*255],l=a.concat([this.j&255,this.clientState],[p>>24&255,p>>16&255,p>>8&255,p&255]);p=new Uint8Array(2+l.length);p[0]=34;p[1]=l.length;p.set(l,2);l=p.subarray(2);for(var y=a=a.length;y150))try{this.cache=new U7r(p,this.logger)}catch(a){this.reportError(new V$(22,"GBJ:init",a))}}; g.L.reportError=function(p){this.logger.Tf(p.code);this.onError(p);return p}; var gTr=function(p){return sO(function(a){if(!k5M(a))return!1;for(var l=g.t(Object.entries(p)),y=l.next();!y.done;y=l.next()){var S=g.t(y.value);y=S.next().value;S=S.next().value;if(!(y in a)){if(S.SGV===!0)continue;return!1}if(!S(a[y]))return!1}return!0})}({Yy:function(p){return sO(function(a){return a instanceof p})}(oS)},"");var JmF=(new Date).getTime();g.A(PCh,Zv);var hdl=PS(PCh);CPM.prototype.getMetadata=function(){return this.metadata};Ra.prototype.getMetadata=function(){return this.metadata}; Ra.prototype.getStatus=function(){return this.status};ZE.prototype.K=function(p,a){a=a===void 0?{}:a;return new CPM(p,this,a)}; ZE.prototype.getName=function(){return this.name};var Axb=new ZE("/google.internal.waa.v1.Waa/Create",VdA,PCh,function(p){return p.Ut()},hdl);g.A(eQo,Zv);var kMM=new ZE("/google.internal.waa.v1.Waa/GenerateIT",Ix,eQo,function(p){return p.Ut()},PS(eQo));var mcv=new Set(["SAPISIDHASH","APISIDHASH"]);g.A(F8,Zv);F8.prototype.getValue=function(){var p=A9(this,2);if(Array.isArray(p)||p instanceof Zv)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return LN(this,2)};g.A(WcG,Zv);WcG.prototype.getMessage=function(){return $K(this,2)}; var Jdq=PS(WcG);pa.prototype.removeListener=function(p,a){p==="data"?nq(this.S,a):p==="metadata"?nq(this.j,a):p==="status"?nq(this.W,a):p==="end"?nq(this.U,a):p==="error"&&nq(this.L,a);return this}; pa.prototype.cancel=function(){this.xhr.abort()}; g.A(Vpr,Error);g.tP(g.ZY,EKr);g.ZY.prototype.L=function(){var p=new Sm(this.j,this.U);this.S&&p.setCredentialsMode(this.S);return p}; g.ZY.prototype.setCredentialsMode=function(p){this.S=p}; g.tP(Sm,g.yT);g.L=Sm.prototype;g.L.open=function(p,a){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Xu=p;this.UO=a;this.readyState=1;Il(this)}; g.L.send=function(p){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.L=!0;var a={headers:this.Sl,method:this.Xu,credentials:this.W,cache:void 0,signal:this.Z.signal};p&&(a.body=p);(this.w7||g.dD).fetch(new Request(this.UO,a)).then(this.RP.bind(this),this.sP.bind(this))}; g.L.abort=function(){this.response=this.responseText="";this.Sl=new Headers;this.status=0;this.Z.abort("Request was aborted.");this.U&&this.U.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.L&&this.readyState!=4&&(this.L=!1,aA(this));this.readyState=0}; g.L.RP=function(p){if(this.L&&(this.j=p,this.S||(this.status=this.j.status,this.statusText=this.j.statusText,this.S=p.headers,this.readyState=2,Il(this)),this.L&&(this.readyState=3,Il(this),this.L)))if(this.responseType==="arraybuffer")p.arrayBuffer().then(this.AL.bind(this),this.sP.bind(this));else if(typeof g.dD.ReadableStream!=="undefined"&&"body"in p){this.U=p.body.getReader();if(this.G){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.K=new TextDecoder;SkA(this)}else p.text().then(this.HB.bind(this),this.sP.bind(this))}; g.L.w_=function(p){if(this.L){if(this.G&&p.value)this.response.push(p.value);else if(!this.G){var a=p.value?p.value:new Uint8Array(0);if(a=this.K.decode(a,{stream:!p.done}))this.response=this.responseText+=a}p.done?aA(this):Il(this);this.readyState==3&&SkA(this)}}; g.L.HB=function(p){this.L&&(this.response=this.responseText=p,aA(this))}; g.L.AL=function(p){this.L&&(this.response=p,aA(this))}; g.L.sP=function(){this.L&&aA(this)}; g.L.setRequestHeader=function(p,a){this.Sl.append(p,a)}; g.L.getResponseHeader=function(p){return this.S?this.S.get(p.toLowerCase())||"":""}; g.L.getAllResponseHeaders=function(){if(!this.S)return"";for(var p=[],a=this.S.entries(),l=a.next();!l.done;)l=l.value,p.push(l[0]+": "+l[1]),l=a.next();return p.join("\r\n")}; g.L.setCredentialsMode=function(p){this.W=p}; Object.defineProperty(Sm.prototype,"withCredentials",{get:function(){return this.W==="include"}, set:function(p){this.setCredentialsMode(p?"include":"same-origin")}});g.B4.prototype.toString=function(){var p=[],a=this.W;a&&p.push(yO(a,gcc,!0),":");var l=this.L;if(l||a=="file")p.push("//"),(a=this.Z)&&p.push(yO(a,gcc,!0),"@"),p.push(g.Ls(l).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l=this.U,l!=null&&p.push(":",String(l));if(l=this.S)this.L&&l.charAt(0)!="/"&&p.push("/"),p.push(yO(l,l.charAt(0)=="/"?YpW:qp2,!0));(l=this.j.toString())&&p.push("?",l);(l=this.G)&&p.push("#",yO(l,Jxa));return p.join("")}; g.B4.prototype.resolve=function(p){var a=this.clone(),l=!!p.W;l?g.sY(a,p.W):l=!!p.Z;l?a.Z=p.Z:l=!!p.L;l?g.AA(a,p.L):l=p.U!=null;var y=p.S;if(l)g.tf(a,p.U);else if(l=!!p.S){if(y.charAt(0)!="/")if(this.L&&!this.S)y="/"+y;else{var S=a.S.lastIndexOf("/");S!=-1&&(y=a.S.slice(0,S+1)+y)}S=y;if(S==".."||S==".")y="";else if(g.Gv(S,"./")||g.Gv(S,"/.")){y=aq(S,"/");S=S.split("/");for(var n=[],V=0;V1||n.length==1&&n[0]!="")&&n.pop(), y&&V==S.length&&n.push("")):(n.push(z),y=!0)}y=n.join("/")}else y=S}l?a.S=y:l=p.j.toString()!=="";l?Vv(a,p.j.clone()):l=!!p.G;l&&(a.G=p.G);return a}; g.B4.prototype.clone=function(){return new g.B4(this)}; var gcc=/[#\/\?@]/g,qp2=/[#\?:]/g,YpW=/[#\?]/g,WdZ=/[#\?@]/g,Jxa=/#/g;g.L=$X.prototype;g.L.add=function(p,a){ah(this);this.U=null;p=Hb(this,p);var l=this.L.get(p);l||this.L.set(p,l=[]);l.push(a);this.S=this.S+1;return this}; g.L.remove=function(p){ah(this);p=Hb(this,p);return this.L.has(p)?(this.U=null,this.S=this.S-this.L.get(p).length,this.L.delete(p)):!1}; g.L.clear=function(){this.L=this.U=null;this.S=0}; g.L.isEmpty=function(){ah(this);return this.S==0}; g.L.forEach=function(p,a){ah(this);this.L.forEach(function(l,y){l.forEach(function(S){p.call(a,S,y,this)},this)},this)}; g.L.x$=function(){ah(this);for(var p=Array.from(this.L.values()),a=Array.from(this.L.keys()),l=[],y=0;y0?String(p[0]):a}; g.L.toString=function(){if(this.U)return this.U;if(!this.L)return"";for(var p=[],a=Array.from(this.L.keys()),l=0;l>>3;n.U!=1&&n.U!=2&&n.U!=15&&h6(n,V,z,"unexpected tag");n.L=1;n.S=0;n.j=0} function y(){if(n.U<15){var d={};d[n.U]=n.W;n.K.push(d)}n.L=0} function S(d){n.j++;n.j==5&&d&240&&h6(n,V,z,"message length too long");n.S|=(d&127)<<(n.j-1)*7;d&128||(n.L=2,n.Z=0,typeof Uint8Array!=="undefined"?n.W=new Uint8Array(n.S):n.W=Array(n.S),n.S==0&&y())} for(var n=this,V=p instanceof Array?p:new Uint8Array(p),z=0;z0?p:null};xu.prototype.isInputValid=function(){return this.L===null}; xu.prototype.XF=function(){return this.L}; xu.prototype.AE=function(){return!1}; xu.prototype.parse=function(p){this.L!==null&&aZF(this,p,"stream already broken");var a=null;try{var l=this.U;l.U||Nvl(l,p,"stream already broken");l.L+=p;var y=Math.floor(l.L.length/4);if(y==0)var S=null;else{try{var n=PTF(l.L.slice(0,y*4))}catch(V){Nvl(l,l.L,V.message)}l.S+=y*4;l.L=l.L.slice(y*4);S=n}a=S===null?null:this.j.parse(S)}catch(V){aZF(this,p,V.message)}this.S+=p.length;return a};var pf2={INIT:0,Hr:1,Ou:2,yV:3,Qa:4,B2:5,STRING:6,ZD:7,z1:8,Xo:9,yd:10,f7:11,E5:12,wZ:13,dZ:14,Wq:15,Cf:16,FU:17,hV:18,b9:19,qd:20};g.L=Hi.prototype;g.L.isInputValid=function(){return this.W!=3}; g.L.XF=function(){return this.Sl}; g.L.done=function(){return this.W===2}; g.L.AE=function(){return!1}; g.L.parse=function(p){function a(){for(var P;;){P=p[r++];if(!P)break;n.U++;switch(n.L){case d.INIT:P==="{"?n.L=d.Ou:P==="["?n.L=d.Qa:CG(P)||Pn(n,p,r);continue;case d.ZD:case d.Ou:if(CG(P))continue;if(n.L===d.ZD)V.push(d.z1);else if(P==="}"){S("{}");n.L=y();continue}else V.push(d.yV);P==='"'?n.L=d.STRING:Pn(n,p,r);continue;case d.z1:case d.yV:if(CG(P))continue;P===":"?(n.L===d.yV&&(V.push(d.yV),n.S++),n.L=d.Hr):P==="}"?(n.S--,S(),n.L=y()):P===","?(n.L===d.yV&&V.push(d.yV),n.L=d.ZD):Pn(n,p,r);continue; case d.Qa:case d.Hr:if(CG(P))continue;if(n.L===d.Qa)if(n.S++,n.L=d.Hr,P==="]"){n.S--;if(n.S===0){n.L=d.B2;return}S("[]");n.L=y();continue}else V.push(d.B2);P==='"'?n.L=d.STRING:P==="{"?n.L=d.Ou:P==="["?n.L=d.Qa:P==="t"?n.L=d.Xo:P==="f"?n.L=d.E5:P==="n"?n.L=d.Cf:P!=="-"&&("0123456789".indexOf(P)!==-1?n.L=d.qd:Pn(n,p,r));continue;case d.B2:if(P===",")V.push(d.B2),n.L=d.Hr,n.S===1&&(c=r);else if(P==="]"){n.S--;if(n.S===0)return;S();n.L=y()}else if(CG(P))continue;else Pn(n,p,r);continue;case d.STRING:var F= r;a:for(;;){for(;n.Z>0;)if(P=p[r++],n.Z===4?n.Z=0:n.Z++,!P)break a;if(P==='"'&&!n.K){n.L=y();break}if(P==="\\"&&!n.K&&(n.K=!0,P=p[r++],!P))break;if(n.K)if(n.K=!1,P==="u"&&(n.Z=1),P=p[r++])continue;else break;z.lastIndex=r;P=z.exec(p);if(!P){r=p.length+1;break}r=P.index+1;P=p[P.index];if(!P)break}n.U+=r-F;continue;case d.Xo:if(!P)continue;P==="r"?n.L=d.yd:Pn(n,p,r);continue;case d.yd:if(!P)continue;P==="u"?n.L=d.f7:Pn(n,p,r);continue;case d.f7:if(!P)continue;P==="e"?n.L=y():Pn(n,p,r);continue;case d.E5:if(!P)continue; P==="a"?n.L=d.wZ:Pn(n,p,r);continue;case d.wZ:if(!P)continue;P==="l"?n.L=d.dZ:Pn(n,p,r);continue;case d.dZ:if(!P)continue;P==="s"?n.L=d.Wq:Pn(n,p,r);continue;case d.Wq:if(!P)continue;P==="e"?n.L=y():Pn(n,p,r);continue;case d.Cf:if(!P)continue;P==="u"?n.L=d.FU:Pn(n,p,r);continue;case d.FU:if(!P)continue;P==="l"?n.L=d.hV:Pn(n,p,r);continue;case d.hV:if(!P)continue;P==="l"?n.L=y():Pn(n,p,r);continue;case d.b9:P==="."?n.L=d.qd:Pn(n,p,r);continue;case d.qd:if("0123456789.eE+-".indexOf(P)!==-1)continue; else r--,n.U--,n.L=y();continue;default:Pn(n,p,r)}}} function l(){for(;r1||(P||(P=c===-1?n.j+p.substring(B,r):p.substring(c,r)),n.UO?n.G.push(P):n.G.push(JSON.parse(P)),c=r)} for(var n=this,V=n.Xu,z=n.w7,d=pf2,G=p.length,B=0,c=-1,r=0;r0?(w=n.G,n.G=[],w):null}return null};vi.prototype.isInputValid=function(){return this.W===null}; vi.prototype.XF=function(){return this.W}; vi.prototype.AE=function(){return!1}; vi.prototype.parse=function(p){function a(){n.U=new Hi({iUz:!0,rY:!0})} function l(d){if(d)for(var G=0;G1)&&S("extra status: "+d);n.G=!0;var G={};G[2]=d[0];n.j.push(G)}} function S(d){n.S=6;n.W="The stream is broken @"+n.L+"/"+V+". Error: "+d+". With input:\n";throw Error(n.W);} for(var n=this,V=0;V0?(p=n.j,n.j=[],p):null};f8.prototype.sJ=function(){return this.L}; f8.prototype.getStatus=function(){return this.W}; f8.prototype.UO=function(p){p=p.target;try{if(p==this.L)a:{var a=g.uV(this.L),l=this.L.S,y=this.L.getStatus(),S=g.Bq(this.L);p=[];if(g.GO(this.L)instanceof Array){var n=g.GO(this.L);n.length>0&&n[0]instanceof Uint8Array&&(this.Sl=!0,p=n)}if(!(a<3||a==3&&!S&&p.length==0))if(y=y==200||y==206,a==4&&(l==8?u1(this,7):l==7?u1(this,8):y||u1(this,3)),this.S||(this.S=Aiv(this.L),this.S==null&&u1(this,5)),this.W>2)tu(this);else{if(p.length>this.U){var V=p.length;l=[];try{if(this.S.AE())for(var z=0;zthis.U){z=S.slice(this.U);this.U=S.length;try{var G=this.S.parse(z);G!=null&&this.j&&this.j(G)}catch(B){u1(this,5);tu(this);break a}}a==4?(S.length!= 0||this.Sl?u1(this,2):u1(this,4),tu(this)):u1(this,1)}}}catch(B){u1(this,6),tu(this)}};g.L=SWO.prototype;g.L.addListener=function(p,a){fN(this,p,a);return this}; g.L.removeListener=function(p,a){var l=this.S[p];l&&g.FS(l,a);(p=this.L[p])&&g.FS(p,a);return this}; g.L.once=function(p,a){var l=this.L[p];l||(l=[],this.L[p]=l);l.push(a);return this}; g.L.GnO=function(p){var a=this.S.data;a&&p9F(p,a);(a=this.L.data)&&p9F(p,a);this.L.data=[]}; g.L.oyu=function(){switch(this.U.getStatus()){case 1:n2(this,"readable");break;case 5:case 6:case 4:case 7:case 3:n2(this,"error");break;case 8:n2(this,"close");break;case 2:n2(this,"end")}};Cnf.prototype.serverStreaming=function(p,a,l,y){var S=this,n=p.substring(0,p.length-y.name.length);return E_$(function(V){var z=V.Ra,d=V.getMetadata(),G=JZv(S,!1);d=x4o(S,d,G,n+z.getName());var B=n1E(G,z.S,!0);V=z.L(V.jU);G.send(d,"POST",V);return B},this.XE).call(this,y.K(a,l))};vZM.prototype.create=function(p,a,l){var y=this.L,S=this.S+"/$rpc/google.internal.waa.v1.Waa/Create";a=a||{};l=l===void 0?{}:l;return AmA(y,S,p,a,Axb,l)};var W6A=new ff(45724570),yVA=new ff(45725537),aMb=new ff(45727950),lMb=new ff(45727949);var zaZ=new sV(45725542),owo=new sV(45725543),nwv=new sV(45725539),ZGE=new sV(45725541),VmA=new sV(45725540),SAe=new sV(45725538),lsA=new function(p,a,l,y){this.J6=p;this.sG=a;this.defaultValue=y;this.u6="int"}(3,45721421,"h5vcc_set_prefer_minimal_post_processing",OX("0"));var Lor="://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(" "),XAM=/\bocr\b/;var iEr=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.A(IyM,Zv);g.A(Avo,Zv);g.A(Zd,Zv);Zd.prototype.getName=function(){return $K(this,1)}; Zd.prototype.getOptions=function(){return Kv(this,Avo,3)}; Zd.prototype.clearOptions=function(){return U9(this,3)};g.A(ao$,Zv);g.L=ao$.prototype;g.L.getName=function(){return $K(this,1)}; g.L.getOptions=function(){return Kv(this,IyM,3)}; g.L.clearOptions=function(){return U9(this,3)}; g.L.TM=function(){return s$(this,6)}; g.L.Kx=function(p){Ey(this,6,p)};var $fB=function(p){return function(a){a=JSON.parse(a);if(!Array.isArray(a))throw Error("Expected jspb data to be an array, got "+G6(a)+": "+a);YS(a,34);return new p(a)}}(ao$);var wE8=Symbol();var ynv=Symbol();Object.assign({},{attributes:{},handleError:function(p){throw p;}},{U8s:!0, XOm:!0,yJT:!1,f7T:F5B,eyY:Em_,EYV:!1,wOs:!1,ZU7:!1,j6T:!0,Wgv:xQW,SDT:!1,tQ9:!1,fo9:!1});var Ie=null,bg=!1,W4$=1,fbM=Symbol("SIGNAL"),Gm={version:0,Xxz:0,KE:!1,producers:void 0,uZ:void 0,hq:void 0,fJ:void 0,yA:!1,ZC:!1,qL:!1,kind:"unknown",zs:function(){return!1}, xW:function(){}, sX:function(){}, hgT:function(){}};var Bw=Symbol("UNSET"),cw=Symbol("COMPUTING"),ro=Symbol("ERRORED");Object.assign({},Gm,{value:Bw,KE:!0,error:null,D8:wKo,kind:"computed",zs:function(p){return p.value===Bw||p.value===cw}, xW:function(p){if(p.value===cw)throw Error("");var a=p.value;p.value=cw;var l=GuE(p),y=!1;try{var S=p.gY();Ox(null);y=a!==Bw&&a!==ro&&S!==ro&&p.D8(a,S)}catch(n){S=ro,p.error=n}finally{Ox(l),p&&WkA(p)}y?p.value=a:(p.value=S,p.version++)}});Object.assign({},Gm,{qL:!0,ZC:!0,KE:!0,kind:"effect"});var zLE=Object.assign({},Gm,{D8:wKo,value:void 0,kind:"signal"});Object.assign({},Gm,{value:Bw,KE:!0,error:null,D8:wKo,kind:"linkedSignal",zs:function(p){return p.value===Bw||p.value===cw}, xW:function(p){if(p.value===cw)throw Error("");var a=p.value;p.value=cw;var l=GuE(p);try{var y=p.source();var S=p.gY(y,a===Bw||a===ro?void 0:{source:p.qYT,value:a});p.qYT=y}catch(n){S=ro,p.error=n}finally{Ox(l),p&&WkA(p)}a!==Bw&&S!==ro&&p.D8(a,S)?p.value=a:(p.value=S,p.version++)}});Object.assign({},Gm,{qL:!0,ZC:!1,sX:function(p){p.schedule!==null&&p.schedule(p.JnT)}, x1l:function(){}});g.A(IQ,g.yT);IQ.prototype.dispose=function(){window.removeEventListener("offline",this.U);window.removeEventListener("online",this.U);this.P1.WW(this.W);delete IQ.instance}; IQ.prototype.Dd=function(){return this.L}; IQ.prototype.e5=function(){var p=this;this.W=this.P1.xn(function(){var a;return g.R(function(l){if(l.L==1)return p.L?((a=window.navigator)==null?0:a.onLine)?l.g7(3):g.u(l,lC(p),3):g.u(l,lC(p),3);p.e5();g.lD(l)})},3E4)};g.A(jbh,Zv);var ym7=lQO(jbh,[0,l$,Xka,ncU,l$,-2,ncU,lbc]);xS.prototype.set=function(p,a){a=a===void 0?!0:a;0<=p&&p<52&&Number.isInteger(p)&&this.data[p]!==a&&(this.data[p]=a,this.L=-1)}; xS.prototype.get=function(p){return!!this.data[p]};var llG;g.tP(g.Tl,g.D);g.L=g.Tl.prototype;g.L.start=function(){this.stop();this.j=!1;var p=Q6r(this),a=lWA(this);p&&!a&&this.S.mozRequestAnimationFrame?(this.L=g.pD(this.S,"MozBeforePaint",this.U),this.S.mozRequestAnimationFrame(null),this.j=!0):this.L=p&&a?p.call(this.S,this.U):this.S.setTimeout(dxf(this.U),20)}; g.L.stop=function(){if(this.isActive()){var p=Q6r(this),a=lWA(this);p&&!a&&this.S.mozRequestAnimationFrame?hs(this.L):p&&a?a.call(this.S,this.L):this.S.clearTimeout(this.L)}this.L=null}; g.L.isActive=function(){return this.L!=null}; g.L.kU=function(){this.j&&this.L&&hs(this.L);this.L=null;this.G.call(this.W,g.XS())}; g.L.fz=function(){this.stop();g.Tl.Lv.fz.call(this)};g.tP(g.l_,g.D);g.L=g.l_.prototype;g.L.FH=0;g.L.fz=function(){g.l_.Lv.fz.call(this);this.stop();delete this.L;delete this.S}; g.L.start=function(p){this.stop();this.FH=g.cG(this.U,p!==void 0?p:this.N0)}; g.L.stop=function(){this.isActive()&&g.dD.clearTimeout(this.FH);this.FH=0}; g.L.isActive=function(){return this.FH!=0}; g.L.kX=function(){this.FH=0;this.L&&this.L.call(this.S)};g.A(g.yL,g.D);g.L=g.yL.prototype;g.L.Nm=function(p){this.U=arguments;this.zR||this.S?this.L=!0:XSO(this)}; g.L.stop=function(){this.zR&&(g.dD.clearTimeout(this.zR),this.zR=null,this.L=!1,this.U=null)}; g.L.pause=function(){this.S++}; g.L.resume=function(){this.S--;this.S||!this.L||this.zR||(this.L=!1,XSO(this))}; g.L.fz=function(){g.D.prototype.fz.call(this);this.stop()};g.V_1.prototype[Symbol.iterator]=function(){return this}; g.V_1.prototype.next=function(){var p=this.L.next();return{value:p.done?void 0:this.S.call(void 0,p.value),done:p.done}};g.tP(g.gV,g.yT);g.L=g.gV.prototype;g.L.isPlaying=function(){return this.L==1}; g.L.isPaused=function(){return this.L==-1}; g.L.MH=function(){this.s9("begin")}; g.L.UV=function(){this.s9("end")}; g.L.onFinish=function(){this.s9("finish")}; g.L.onStop=function(){this.s9("stop")}; g.L.s9=function(p){this.dispatchEvent(p)};var S18=oI(function(){var p=g.JI("DIV"),a=g.Hs?"-webkit":JT?"-moz":null,l="transition:opacity 1s linear;";a&&(l+=a+"-transition:opacity 1s linear;");a=MTF({style:l});if(p.nodeType===1&&/^(script|style)$/i.test(p.tagName))throw Error("");p.innerHTML=Mh(a);return g.Z1(p.firstChild,"transition")!=""});g.tP(YN,g.gV);g.L=YN.prototype;g.L.play=function(){if(this.isPlaying())return!1;this.MH();this.s9("play");this.startTime=g.XS();this.L=1;if(S18())return g.B8(this.S,this.G),this.U=g.cG(this.ANc,void 0,this),!0;this.GE(!1);return!1}; g.L.ANc=function(){g.Wd(this.S);xBO(this.S,this.K);g.B8(this.S,this.j);this.U=g.cG((0,g.bn)(this.GE,this,!1),this.W*1E3)}; g.L.stop=function(){this.isPlaying()&&this.GE(!0)}; g.L.GE=function(p){g.B8(this.S,"transition","");g.dD.clearTimeout(this.U);g.B8(this.S,this.j);this.endTime=g.XS();this.L=0;if(p)this.onStop();else this.onFinish();this.UV()}; g.L.fz=function(){this.stop();YN.Lv.fz.call(this)}; g.L.pause=function(){};var Ogh={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};Mb("Element","attributes")||Mb("Node","attributes");Mb("Element","innerHTML")||Mb("HTMLElement","innerHTML");Mb("Node","nodeName");Mb("Node","nodeType");Mb("Node","parentNode");Mb("Node","childNodes");Mb("HTMLElement","style")||Mb("Element","style");Mb("HTMLStyleElement","sheet");var UjM=QhM("getPropertyValue"),h_F=QhM("setProperty");Mb("Element","namespaceURI")||Mb("Node","namespaceURI");var Nbq={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var $8F,NZZ,w2h,rfF,PgF;$8F=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]");NZZ=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.nB2=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.e4=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]");w2h=/^http:\/\/.*/;g.VNM=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");rfF=/\s+/;PgF=/[\d\u06f0-\u06f9]/;Sd.prototype.y9=function(){return new nk(this.S())}; Sd.prototype[Symbol.iterator]=function(){return new V9(this.S())}; Sd.prototype.L=function(){return new V9(this.S())}; g.A(nk,g.ZI);nk.prototype.next=function(){return this.S.next()}; nk.prototype[Symbol.iterator]=function(){return new V9(this.S)}; nk.prototype.L=function(){return new V9(this.S)}; g.A(V9,Sd);V9.prototype.next=function(){return this.U.next()};Dv.prototype.clone=function(){return new Dv(this.L,this.K,this.U,this.W,this.j,this.G,this.S,this.Z)}; Dv.prototype.equals=function(p){return this.L==p.L&&this.K==p.K&&this.U==p.U&&this.W==p.W&&this.j==p.j&&this.G==p.G&&this.S==p.S&&this.Z==p.Z};rM.prototype.clone=function(){return new rM(this.start,this.end)};(function(){if(Oca){var p=/Windows NT ([0-9.]+)/;return(p=p.exec(g.yI()))?p[1]:"0"}return lQ?(p=/1[0|1][_.][0-9_.]+/,(p=p.exec(g.yI()))?p[0].replace(/_/g,"."):"10"):g.Ck?(p=/Android\s+([^\);]+)(\)|;)/,(p=p.exec(g.yI()))?p[1]:""):K5b||erl||b8a?(p=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(p=p.exec(g.yI()))?p[1].replace(/_/g,"."):""):""})();var HJE=function(){if(g.sX)return At(/Firefox\/([0-9.]+)/);if(g.wF||g.up||g.vL)return RyZ;if(g.TE){if(qj()||VB()){var p=At(/CriOS\/([0-9.]+)/);if(p)return p}return At(/Chrome\/([0-9.]+)/)}if(g.yd&&!qj())return At(/Version\/([0-9.]+)/);if(ER||Bh){if(p=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.yI()))return p[1]+"."+p[2]}else if(g.CFM)return(p=At(/Android\s+([0-9.]+)/))?p:At(/Version\/([0-9.]+)/);return""}();g.tP(g.Y2,g.D);g.L=g.Y2.prototype;g.L.subscribe=function(p,a,l){var y=this.S[p];y||(y=this.S[p]=[]);var S=this.G;this.L[S]=p;this.L[S+1]=a;this.L[S+2]=l;this.G=S+3;y.push(S);return S}; g.L.unsubscribe=function(p,a,l){if(p=this.S[p]){var y=this.L;if(p=p.find(function(S){return y[S+1]==a&&y[S+2]==l}))return this.mN(p)}return!1}; g.L.mN=function(p){var a=this.L[p];if(a){var l=this.S[a];this.j!=0?(this.U.push(p),this.L[p+1]=function(){}):(l&&g.FS(l,p),delete this.L[p],delete this.L[p+1],delete this.L[p+2])}return!!a}; g.L.publish=function(p,a){var l=this.S[p];if(l){var y=Array(arguments.length-1),S=arguments.length,n;for(n=1;n0&&this.j==0)for(;l=this.U.pop();)this.mN(l)}}return n!=0}return!1}; g.L.clear=function(p){if(p){var a=this.S[p];a&&(a.forEach(this.mN,this),delete this.S[p])}else this.L.length=0,this.S={}}; g.L.fz=function(){g.Y2.Lv.fz.call(this);this.clear();this.U.length=0};g.RF.prototype.set=function(p,a){a===void 0?this.g1.remove(p):this.g1.set(p,g.kM(a))}; g.RF.prototype.get=function(p){try{var a=this.g1.get(p)}catch(l){return}if(a!==null)try{return JSON.parse(a)}catch(l){throw"Storage: Invalid value was encountered";}}; g.RF.prototype.remove=function(p){this.g1.remove(p)};g.tP(KP,g.RF);KP.prototype.set=function(p,a){KP.Lv.set.call(this,p,OCM(a))}; KP.prototype.XQ=function(p){p=KP.Lv.get.call(this,p);if(p===void 0||p instanceof Object)return p;throw"Storage: Invalid value was encountered";}; KP.prototype.get=function(p){if(p=this.XQ(p)){if(p=p.data,p===void 0)throw"Storage: Invalid value was encountered";}else p=void 0;return p};g.tP(Ju,KP);Ju.prototype.set=function(p,a,l){if(a=OCM(a)){if(l){if(l=l.length)return g.nB;var S=l.key(a++);if(p)return g.aB(S);S=l.getItem(S);if(typeof S!=="string")throw"Storage mechanism: Invalid value was encountered";return g.aB(S)}; return y}; g.L.clear=function(){VC(this);this.L.clear()}; g.L.key=function(p){VC(this);return this.L.key(p)};g.tP(YD,gr);g.tP(YNE,gr);g.tP(XA,Fa);XA.prototype.set=function(p,a){this.S.set(this.L+p,a)}; XA.prototype.get=function(p){return this.S.get(this.L+p)}; XA.prototype.remove=function(p){this.S.remove(this.L+p)}; XA.prototype.y9=function(p){var a=this.S[Symbol.iterator](),l=this,y=new g.ZI;y.next=function(){var S=a.next();if(S.done)return S;for(S=S.value;S.slice(0,l.L.length)!=l.L;){S=a.next();if(S.done)return S;S=S.value}return g.aB(p?S.slice(l.L.length):l.S.get(S))}; return y};WW.prototype.getValue=function(){return this.S}; WW.prototype.clone=function(){return new WW(this.L,this.S)};g.L=SS.prototype;g.L.zp=function(p,a){var l=this.L;l.push(new WW(p,a));p=l.length-1;a=this.L;for(l=a[p];p>0;){var y=p-1>>1;if(a[y].L>l.L)a[p]=a[y],p=y;else break}a[p]=l}; g.L.remove=function(){var p=this.L,a=p.length,l=p[0];if(!(a<=0)){if(a==1)p.length=0;else{p[0]=p.pop();p=0;a=this.L;for(var y=a.length,S=a[p];p>1;){var n=p*2+1,V=p*2+2;n=VS.L)break;a[p]=a[n];p=n}a[p]=S}return l.getValue()}}; g.L.HL=function(){for(var p=this.L,a=[],l=p.length,y=0;y>>16&65535|0;for(var n;l!==0;){n=l>2E3?2E3:l;l-=n;do S=S+a[y++]|0,p=p+S|0;while(--n);S%=65521;p%=65521}return S|p<<16|0};for(var ns={},wo,GG_=[],$b=0;$b<256;$b++){wo=$b;for(var B11=0;B11<8;B11++)wo=wo&1?3988292384^wo>>>1:wo>>>1;GG_[$b]=wo}ns=function(p,a,l,y){l=y+l;for(p^=-1;y>>8^GG_[(p^a[y])&255];return p^-1};var eQ={};eQ={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 bMv=[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],q0=[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],OMo=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],eNA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],zx=Array(576);vP(zx);var hW=Array(60);vP(hW);var Tk=Array(512);vP(Tk);var iN=Array(256);vP(iN);var elo=Array(29);vP(elo);var Yo=Array(30);vP(Yo);var IXe,RlZ,u5A,K_h=!1;var ZL;ZL=[new ST(0,0,0,0,function(p,a){var l=65535;for(l>p.p8-5&&(l=p.p8-5);;){if(p.xe<=1){lJ(p);if(p.xe===0&&a===0)return 1;if(p.xe===0)break}p.Ba+=p.xe;p.xe=0;var y=p.QP+l;if(p.Ba===0||p.Ba>=y)if(p.xe=p.Ba-y,p.Ba=y,SX(p,!1),p.ph.Ch===0)return 1;if(p.Ba-p.QP>=p.s2-262&&(SX(p,!1),p.ph.Ch===0))return 1}p.zp=0;if(a===4)return SX(p,!0),p.ph.Ch===0?3:4;p.Ba>p.QP&&SX(p,!1);return 1}), new ST(4,4,8,4,LJM),new ST(4,5,16,8,LJM),new ST(4,6,32,32,LJM),new ST(4,4,16,16,n4),new ST(8,16,32,32,n4),new ST(8,16,128,128,n4),new ST(8,32,128,256,n4),new ST(32,128,258,1024,n4),new ST(32,258,258,4096,n4)];var vlv={};vlv=function(){this.input=null;this.rl=this.kf=this.cR=0;this.output=null;this.T6=this.Ch=this.YC=0;this.msg="";this.state=null;this.jx=2;this.Q$=0};var k_Z=Object.prototype.toString; Ki.prototype.push=function(p,a){var l=this.ph,y=this.options.chunkSize;if(this.ended)return!1;var S=a===~~a?a:a===!0?4:0;typeof p==="string"?l.input=RAr(p):k_Z.call(p)==="[object ArrayBuffer]"?l.input=new Uint8Array(p):l.input=p;l.cR=0;l.kf=l.input.length;do{l.Ch===0&&(l.output=new ME.Pt(y),l.YC=0,l.Ch=y);p=Pzr(l,S);if(p!==1&&p!==0)return this.UV(p),this.ended=!0,!1;if(l.Ch===0||l.kf===0&&(S===4||S===2))if(this.options.to==="string"){var n=ME.yD(l.output,l.YC);a=n;n=n.length;if(n<65537&&(a.subarray&& dDa||!a.subarray))a=String.fromCharCode.apply(null,ME.yD(a,n));else{for(var V="",z=0;z0||l.Ch===0)&&p!==1);if(S===4)return(l=this.ph)&&l.state?(y=l.state.status,y!==42&&y!==69&&y!==73&&y!==91&&y!==103&&y!==113&&y!==666?p=ya(l,-2):(l.state=null,p=y===113?ya(l,-3):0)):p=-2,this.UV(p),this.ended=!0,p===0;S===2&&(this.UV(0),l.Ch=0);return!0}; Ki.prototype.UV=function(p){p===0&&(this.result=this.options.to==="string"?this.chunks.join(""):ME.L5(this.chunks));this.chunks=[];this.err=p;this.msg=this.ph.msg};var U0E="@@redux/INIT"+D5(),Mrf="@@redux/REPLACE"+D5();var mm$=typeof Symbol==="function"&&Symbol.observable||"@@observable";var cma=[0,wkc,-3,aT];g.A(Q2B,Zv);var RVr=lQO(Q2B,[0,l$,$NU,qS,wkc,qS,-1,aT,wkc,aT,-1,l$,aT,$NU,Jo,cma,qS,-1,aT]);var EhM=-996060077;var rm8=function(p,a){return function(){var l=new kTq(p,a,yy);return function(){return l}}()}("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 B0o=new g.IR("adInfoDialogEndpoint");var $me=new g.IR("adPingingEndpoint");var lue=new g.IR("crossDeviceProgressCommand");var QV=new g.IR("actionCompanionAdRenderer");var lp=new g.IR("adActionInterstitialRenderer");var wf1=new g.IR("adDurationRemainingRenderer");var sT=new g.IR("adHoverTextButtonRenderer");var y8M=new g.IR("adInfoDialogRenderer");var WD=new g.IR("adMessageRenderer");var SE=new g.IR("adPreviewRenderer");var Uv=new g.IR("adsEngagementPanelRenderer");var lkh=new g.IR("dismissablePanelTextPortraitImageRenderer");var J0=new g.IR("adsEngagementPanelSectionListViewModel");var $Dl=new g.IR("flyoutCtaRenderer");var hE=new g.IR("imageCompanionAdRenderer");var Jr=new g.IR("instreamAdPlayerOverlayRenderer");var jFM=new g.IR("instreamSurveyAdBackgroundImageRenderer");var W9E=new g.IR("instreamSurveyAdPlayerOverlayRenderer");var YV=new g.IR("instreamSurveyAdRenderer"),Is=new g.IR("instreamSurveyAdSingleSelectQuestionRenderer"),bL=new g.IR("instreamSurveyAdMultiSelectQuestionRenderer"),Pw=new g.IR("instreamSurveyAdAnswerRenderer"),PK1=new g.IR("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var iQ=new g.IR("instreamVideoAdRenderer");var LY1=new g.IR("textOverlayAdContentRenderer"),Xfc=new g.IR("enhancedTextOverlayAdContentRenderer"),xDM=new g.IR("imageOverlayAdContentRenderer");var pz=new g.IR("playerOverlayLayoutRenderer");var Vu=new g.IR("videoInterstitialButtonedCenteredLayoutRenderer");var Owv=new g.IR("aboveFeedAdLayoutRenderer");var Mff=new g.IR("belowPlayerAdLayoutRenderer");var o_O=new g.IR("inPlayerAdLayoutRenderer");var ulr=new g.IR("inPlayerOrganicOverlayAdLayoutRenderer");var e9A=new g.IR("playerBytesAdLayoutRenderer");var m1$=new g.IR("playerBytesSequenceItemAdLayoutRenderer");var $i=new g.IR("playerUnderlayAdLayoutRenderer");var jJ=new g.IR("adIntroRenderer");var qvr=new g.IR("playerBytesSequentialLayoutRenderer");var jur=new g.IR("slidingTextPlayerOverlayRenderer");var Wx=new g.IR("surveyTextInterstitialRenderer");var DG=new g.IR("videoAdTrackingRenderer");var uDF=new g.IR("videoInterstitialCenteredLayoutViewModel");var FY2=new g.IR("simpleAdBadgeRenderer");var yr=new g.IR("skipAdRenderer"),EB2=new g.IR("skipButtonRenderer");var Uz=new g.IR("adSlotRenderer");var P9=new g.IR("squeezebackPlayerSidePanelRenderer");var CKb=new g.IR("timedPieCountdownRenderer");var lu=new g.IR("adAvatarViewModel");var yP=new g.IR("adBadgeViewModel");var S5=new g.IR("adButtonViewModel");var vB1=new g.IR("adDetailsLineViewModel");var KY_=new g.IR("adDisclosureBannerViewModel");var e$_=new g.IR("adPodIndexViewModel");var bFU=new g.IR("imageBackgroundViewModel");var IM1=new g.IR("adGridCardCollectionViewModel");var R$2=new g.IR("adGridCardTextViewModel");var ue2=new g.IR("adPreviewViewModel");var OF2=new g.IR("playerAdAvatarLockupCardButtonedViewModel");var kGK=new g.IR("skipAdButtonViewModel");var MN7=new g.IR("skipAdViewModel");var mDK=new g.IR("timedPieCountdownViewModel");var tNU=new g.IR("visitAdvertiserLinkViewModel");var v5f=new g.IR("bannerImageLayoutViewModel");var KKA=new g.IR("topBannerImageTextIconButtonedLayoutViewModel");var euh=new g.IR("adsEngagementPanelLayoutViewModel");var Sxf=new g.IR("displayUnderlayTextGridCardsLayoutViewModel");g.yk=new g.IR("browseEndpoint");var jOB=new g.IR("confirmDialogEndpoint");var a7A=new g.IR("commandContext");var QlM=new g.IR("rawColdConfigGroup");var UJf=new g.IR("rawHotConfigGroup");g.yw=new g.IR("commandExecutorCommand");g.A(nle,Zv);var hEr={cDO:0,hpT:1,egV:32,bUl:61,HU9:67,D1z:103,Qiv:86,fHm:42,ESY:60,NXu:62,gSO:73,d1v:76,lHu:88,si7:90,Rgl:99,X8v:98,Aav:100,Wc7:102,kFO:41,vSz:69,tpm:70,uxc:71,DJO:2,l_s:27,ANDROID:3,a1l:54,MEO:14,on7:91,r3s:55,T4v:24,p9T:20,I19:18,c3u:21,J39:104,O09:30,P_9:29,VEv:28,xRT:101,C_V:34,qUT:36,KDV:38,IOS:5,d5O:15,HO7:92,WKO:40,bOc:25,B3T:17,QQ9:19,D5l:64,lzm:66,sQI:26,k_9:22,vcT:33,t8u:68,u_z:35,AkI:53,RzO:37,gcz:39,Rpl:7,kwO:57,v$u:43,uW7:59,tSv:93,x0c:74,Gwl:75,n$I:85,aEO:65,rDs:80,TXI:8,ADc:10, IEI:58,pku:63,MSI:72,zuT:23,aHl:11,Mpc:13,vfz:12,HEY:16,yaY:56,B8O:31,gTc:77,KEu:84,w8c:87,Jlc:89,clY:94,YMT:95};g.A(E2,Zv);E2.prototype.u0=function(){return $K(this,3)}; E2.prototype.pA=function(){return $K(this,5)}; E2.prototype.Rt=function(p){return GY(this,5,p)};g.A(of,Zv);g.A(P2A,Zv);g.A(fP,Zv);g.L=fP.prototype;g.L.getDeviceId=function(){return $K(this,6)}; g.L.Ce=function(p){var a=xR(this,9,$A,3,!0);mQ(a,p);return a[p]}; g.L.getPlayerType=function(){return s$(this,36)}; g.L.setHomeGroupInfo=function(p){return $W(this,P2A,81,p)}; g.L.clearLocationPlayabilityToken=function(){return U9(this,89)};g.A(FI,Zv);FI.prototype.getValue=function(){return $K(this,TL(this,yiA,2))}; var yiA=[2,3,4,5,6];g.A(j6,Zv);j6.prototype.setTrackingParams=function(p){return U9(this,1,APh(p,!1))};g.A(Uj,Zv);g.A(Wz,Zv);Wz.prototype.Ce=function(p){var a=xR(this,5,il,3,!0);mQ(a,p);return a[p]};g.A(ko,Zv);ko.prototype.getToken=function(){return fh(this,2)}; ko.prototype.setToken=function(p){return GY(this,2,p)};g.A(t6,Zv);t6.prototype.setSafetyMode=function(p){return Ey(this,5,p)};g.A(ia,Zv);ia.prototype.K_=function(p){return $W(this,fP,1,p)};var Y7=new g.IR("thumbnailLandscapePortraitRenderer");g.WYK=new g.IR("changeEngagementPanelVisibilityAction");var bI$=new g.IR("continuationCommand");g.HFM=new g.IR("openPopupAction");var DDM=new g.IR("signalAction");g.LB=new g.IR("webCommandMetadata");var C_l=new g.IR("metadataBadgeRenderer");var ePf=new g.IR("signalServiceEndpoint");var aU=new g.IR("innertubeCommand");var Geh=new g.IR("loggingDirectives");var VMF={Ez9:"EMBEDDED_PLAYER_MODE_UNKNOWN",yl9:"EMBEDDED_PLAYER_MODE_DEFAULT",eWO:"EMBEDDED_PLAYER_MODE_PFP",flY:"EMBEDDED_PLAYER_MODE_PFL"};var Dtr=new g.IR("channelThumbnailEndpoint");var oiF=new g.IR("embeddedPlayerErrorMessageRenderer");var l$$=new g.IR("embeddedPlayerOverlayVideoDetailsRenderer"),iYE=new g.IR("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),TsA=new g.IR("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var ZCM=new g.IR("embedsInfoPanelRenderer");var KY=new g.IR("feedbackEndpoint");var iFb=new g.IR("callToActionButtonViewModel");var T1M=new g.IR("interactionLoggingCommandMetadata");var G5K={jil:"WEB_DISPLAY_MODE_UNKNOWN",YpO:"WEB_DISPLAY_MODE_BROWSER",SmI:"WEB_DISPLAY_MODE_MINIMAL_UI",U1O:"WEB_DISPLAY_MODE_STANDALONE",Lcz:"WEB_DISPLAY_MODE_FULLSCREEN"};g.A(Ks,Zv);Ks.prototype.getPlayerType=function(){return s$(this,7)}; Ks.prototype.K1=function(){return $K(this,19)}; Ks.prototype.setVideoId=function(p){return GY(this,19,p)};g.A(d1h,Zv);g.A(T_r,Zv);g.A(N3,Zv); var N1a=[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];var sO8=new g.IR("loggingContext");g.A(hkh,Zv);g.A(xi,Zv);xi.prototype.K1=function(){return fh(this,TL(this,x7,1))}; xi.prototype.setVideoId=function(p){return c3(this,1,x7,XN(p))}; xi.prototype.getPlaylistId=function(){return fh(this,TL(this,x7,2))}; var x7=[1,2];g.A(Uxo,Zv);var MS=new g.IR("changeKeyedMarkersVisibilityCommand");var UD1=new g.IR("changeMarkersVisibilityCommand");var KcK=new g.IR("loadMarkersCommand");var QO_=new g.IR("suggestedActionDataViewModel");var hXM=new g.IR("timelyActionViewModel");var QTO=new g.IR("timelyActionsOverlayViewModel");var TRA=new g.IR("productListItemRenderer");var h$c=new g.IR("shoppingOverlayRenderer");var See=new g.IR("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Amc=new g.IR("adFeedbackEndpoint");var gBG=new g.IR("menuEndpoint");var fsM=new g.IR("phoneDialerEndpoint");var qAA=new g.IR("sendSmsEndpoint");var aYF=new g.IR("copyTextEndpoint");var Y1b=new g.IR("shareEndpoint"),q1b=new g.IR("shareEntityEndpoint"),Jm_=new g.IR("shareEntityServiceEndpoint"),fMl=new g.IR("webPlayerShareEntityServiceEndpoint");g.vX=new g.IR("urlEndpoint");g.SK=new g.IR("watchEndpoint");var pAc=new g.IR("watchPlaylistEndpoint");g.aQc=new g.IR("offlineOrchestrationActionCommand");var FoF=new g.IR("compositeVideoOverlayRenderer");var lQK=new g.IR("miniplayerRenderer");var Ciq=new g.IR("paidContentOverlayRenderer");var y9c=new g.IR("playerMutedAutoplayOverlayRenderer"),Skc=new g.IR("playerMutedAutoplayEndScreenRenderer");var rbf=new g.IR("unserializedPlayerResponse"),n9W=new g.IR("unserializedPlayerResponse");var Vw8=new g.IR("playlistEditEndpoint");var Xu;g.az=new g.IR("buttonRenderer");Xu=new g.IR("toggleButtonRenderer");var y3v=new g.IR("counterfactualRenderer");var ZUG=new g.IR("resolveUrlCommandMetadata");var o9U=new g.IR("modifyChannelNotificationPreferenceEndpoint");var wov=new g.IR("pingingEndpoint");var zTU=new g.IR("unsubscribeEndpoint");g.eD=new g.IR("subscribeButtonRenderer");var dpU=new g.IR("subscribeEndpoint");var AIM=new g.IR("buttonViewModel");var mSf=new g.IR("qrCodeRenderer");var Kra={zz9:"LIVING_ROOM_APP_MODE_UNSPECIFIED",ocl:"LIVING_ROOM_APP_MODE_MAIN",ZOV:"LIVING_ROOM_APP_MODE_KIDS",qMI:"LIVING_ROOM_APP_MODE_MUSIC",OOz:"LIVING_ROOM_APP_MODE_UNPLUGGED",iOV:"LIVING_ROOM_APP_MODE_GAMING"};var x7c=new g.IR("autoplaySwitchButtonRenderer");var vh,myM,dmO,F6O;vh=new g.IR("decoratedPlayerBarRenderer");myM=new g.IR("chapteredPlayerBarRenderer");dmO=new g.IR("multiMarkersPlayerBarRenderer");F6O=new g.IR("chapterRenderer");g.Tue=new g.IR("markerRenderer");var X$h=new g.IR("decoratedPlayheadRenderer");var E1U=new g.IR("desktopOverlayConfigRenderer");var t6r=new g.IR("engagementPanelSectionListRenderer");var Fca=new g.IR("gatedActionsOverlayViewModel");var hoq=new g.IR("heatMarkerRenderer");var Ubr=new g.IR("heatmapRenderer");var v1c=new g.IR("watchToWatchTransitionRenderer");var VeM=new g.IR("playlistPanelRenderer");var G61=new g.IR("productUpsellSuggestedActionViewModel");var BWU=new g.IR("suggestedActionTimeRangeTrigger"),c98=new g.IR("suggestedActionsRenderer"),r9c=new g.IR("suggestedActionRenderer");var gGv=new g.IR("timedMarkerDecorationRenderer");var Iah=new g.IR("cipher");var wxE=new g.IR("playerVars");var wA7=new g.IR("playerVars");var xb=g.dD.window,$p_,Ptc,v5=(xb==null?void 0:($p_=xb.yt)==null?void 0:$p_.config_)||(xb==null?void 0:(Ptc=xb.ytcfg)==null?void 0:Ptc.data_)||{};g.M8("yt.config_",v5);var ws=[];var oqe=/^[\w.]*$/,om8={q:!0,search_query:!0},Z8l=String(kt);var Ql=new function(){var p=window.document;this.L=window;this.S=p}; g.M8("yt.ads_.signals_.getAdSignalsString",function(p){return d1(GG(p))});g.XS();var EaA="XMLHttpRequest"in g.dD?function(){return new XMLHttpRequest}:null;var Loc="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.u0(Loc);var KcO={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"},rEr="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.u0(Loc)),QoM=!1,Zdv=rm;g.A(g_,LV);Z8.prototype.then=function(p,a,l){return this.L?this.L.then(p,a,l):this.U===1&&p?(p=p.call(l,this.S))&&typeof p.then==="function"?p:o7(p):this.U===2&&a?(p=a.call(l,this.S))&&typeof p.then==="function"?p:YH(p):this}; Z8.prototype.getValue=function(){return this.S}; Z8.prototype.$goog_Thenable=!0;var uS=!1;var bp=ER||Bh;var F4q=/^([0-9\.]+):([0-9\.]+)$/;g.A(Af,LV);Af.prototype.name="BiscottiError";g.A(uc,LV);uc.prototype.name="BiscottiMissingError";var H6A={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},gM=null;var y_v=g.to(["data-"]),X2v={};var XA8=0,$Q=g.Hs?"webkit":JT?"moz":g.wF?"ms":g.vL?"o":"",xpW=g.o4("ytDomDomGetNextId")||function(){return++XA8}; g.M8("ytDomDomGetNextId",xpW);var xS$={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};yW.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; yW.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; yW.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var se=g.dD.ytEventsEventsListeners||{};g.M8("ytEventsEventsListeners",se);var b1q=g.dD.ytEventsEventsCounter||{count:0};g.M8("ytEventsEventsCounter",b1q);var mGE=oI(function(){var p=!1;try{var a=Object.defineProperty({},"passive",{get:function(){p=!0}}); window.addEventListener("test",null,a)}catch(l){}return p}),uCr=oI(function(){var p=!1; try{var a=Object.defineProperty({},"capture",{get:function(){p=!0}}); window.addEventListener("test",null,a)}catch(l){}return p});var Fu;Fu=window;g.Ek=Fu.ytcsi&&Fu.ytcsi.now?Fu.ytcsi.now:Fu.performance&&Fu.performance.timing&&Fu.performance.now&&Fu.performance.timing.navigationStart?function(){return Fu.performance.timing.navigationStart+Fu.performance.now()}:function(){return(new Date).getTime()};g.tP(G4,g.D);G4.prototype.Sl=function(p){p.L===void 0&&fXh(p);var a=p.L;p.S===void 0&&fXh(p);this.L=new g.U1(a,p.S)}; G4.prototype.aI=function(){return this.L||new g.U1}; G4.prototype.UO=function(){if(this.L){var p=(0,g.Ek)();if(this.j!=0){var a=this.G,l=this.L,y=a.x-l.x;a=a.y-l.y;y=Math.sqrt(y*y+a*a)/(p-this.j);this.S[this.U]=Math.abs((y-this.W)/this.W)>.5?1:0;for(l=a=0;l<4;l++)a+=this.S[l]||0;a>=3&&this.K();this.W=y}this.j=p;this.G=this.L;this.U=(this.U+1)%4}}; G4.prototype.fz=function(){g.pA(this.Z);g.Ue(this.Xu)};g.A(FM,g.D);FM.prototype.J=function(p,a,l,y,S){l=g.Es((0,g.bn)(l,y||this.eb));l={target:p,name:a,callback:l};var n;S&&mGE()&&(n={passive:!0});p.addEventListener(a,l.callback,n);this.K.push(l);return l}; FM.prototype.ME=function(p){for(var a=0;a=H.gp)||v.L.version>=Y||v.L.objectStoreNames.contains(m)||b.push(m)}d=b;if(d.length===0){F.g7(5);break}G=Object.keys(l.options.LN); B=z.objectStoreNames();if(l.Wl.options.version+1)throw r.close(),l.U=!1,FeF(l,w);return F.return(r);case 8:throw a(), c instanceof Error&&!g.oO("ytidb_async_stack_killswitch")&&(c.stack=c.stack+"\n"+V.substring(V.indexOf("\n")+1)),BL(c,l.name,"",(P=l.options.version)!=null?P:-1);}})} function a(){l.L===y&&(l.L=void 0)} var l=this;if(!this.U)throw FeF(this);if(this.L)return this.L;var y,S={blocking:function(n){n.close()}, closed:a,U3z:a,upgrade:this.options.upgrade};return this.L=y=p()};var Fm=new FK("YtIdbMeta",{LN:{databases:{gp:1}},upgrade:function(p,a){a(1)&&g.WY(p,"databases",{keyPath:"actualName"})}});var O2,OY=new function(){}(new function(){});new g.rQ;g.A(Cc,FK);Cc.prototype.S=function(p,a,l){l=l===void 0?{}:l;return(this.options.shared?ych:FB$)(p,a,Object.assign({},l))}; Cc.prototype.delete=function(p){p=p===void 0?{}:p;return(this.options.shared?KEO:ODF)(this.name,p)};var RTK={},INr=g.k$("ytGcfConfig",{LN:(RTK.coldConfigStore={gp:1},RTK.hotConfigStore={gp:1},RTK),shared:!1,upgrade:function(p,a){a(1)&&(g.OD(g.WY(p,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.OD(g.WY(p,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.A(Xt,g.D);Xt.prototype.fz=function(){for(var p=g.t(this.S),a=p.next();!a.done;a=p.next()){var l=this.L;a=l.indexOf(a.value);a>=0&&l.splice(a,1)}this.S.length=0;g.D.prototype.fz.call(this)};jd.prototype.Rt=function(p){this.hotHashData=p;g.M8("yt.gcf.config.hotHashData",this.hotHashData||null)};var uVG=typeof TextEncoder!=="undefined"?new TextEncoder:null,m8A=uVG?function(p){return uVG.encode(p)}:function(p){p=g.ij(p); for(var a=new Uint8Array(p.length),l=0;l=a?!1:!0}; g.L.Od=function(){var p=this;if(!Hk(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.xg.Gi("QUEUED",this.PX).then(function(a){a&&!p.iY(a,p.CM)?p.P1.xn(function(){return g.R(function(l){if(l.L==1)return a.id===void 0?l.g7(2):g.u(l,p.xg.R0(a.id,p.PX),2);p.Od();g.lD(l)})}):p.lN.Dd()&&p.XH()})};var Ow;var PeM={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,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,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};var k6W={},Usr=g.k$("ServiceWorkerLogsDatabase",{LN:(k6W.SWHealthLog={gp:1},k6W),shared:!0,upgrade:function(p,a){a(1)&&g.OD(g.WY(p,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var gye={},A4F=0;var Yn;kH.prototype.requestComplete=function(p,a){a&&(this.S=!0);p=this.removeParams(p);this.L.get(p)||this.L.set(p,a)}; kH.prototype.isEndpointCFR=function(p){p=this.removeParams(p);return(p=this.L.get(p))?!1:p===!1&&this.S?!0:null}; kH.prototype.removeParams=function(p){return p.split("?")[0]}; kH.prototype.removeParams=kH.prototype.removeParams;kH.prototype.isEndpointCFR=kH.prototype.isEndpointCFR;kH.prototype.requestComplete=kH.prototype.requestComplete;kH.getInstance=mL;g.A(Yt,g.yT);g.L=Yt.prototype;g.L.Dd=function(){return this.L.Dd()}; g.L.py=function(p){this.L.L=p}; g.L.UB=function(){var p=window.navigator.onLine;return p===void 0?!0:p}; g.L.x5=function(){this.S=!0}; g.L.listen=function(p,a){return this.L.listen(p,a)}; g.L.mF=function(p){p=lC(this.L,p);p.then(function(a){g.oO("use_cfr_monitor")&&mL().requestComplete("generate_204",a)}); return p}; Yt.prototype.sendNetworkCheckRequest=Yt.prototype.mF;Yt.prototype.listen=Yt.prototype.listen;Yt.prototype.enableErrorFlushing=Yt.prototype.x5;Yt.prototype.getWindowStatus=Yt.prototype.UB;Yt.prototype.networkStatusHint=Yt.prototype.py;Yt.prototype.isNetworkAvailable=Yt.prototype.Dd;Yt.getInstance=YLo;g.A(g.RA,g.yT);g.RA.prototype.Dd=function(){var p=g.o4("yt.networkStatusManager.instance.isNetworkAvailable");return p?p.bind(this.S)():!0}; g.RA.prototype.py=function(p){var a=g.o4("yt.networkStatusManager.instance.networkStatusHint").bind(this.S);a&&a(p)}; g.RA.prototype.mF=function(p){var a=this,l;return g.R(function(y){l=g.o4("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(a.S);return g.oO("skip_network_check_if_cfr")&&mL().isEndpointCFR("generate_204")?y.return(new Promise(function(S){var n;a.py(((n=window.navigator)==null?void 0:n.onLine)||!0);S(a.Dd())})):l?y.return(l(p)):y.return(!0)})};var xtM;g.A(Ev,Db);Ev.prototype.writeThenSend=function(p,a){a||(a={});a=Cj(p,a);g.ci()||(this.L=!1);Db.prototype.writeThenSend.call(this,p,a)}; Ev.prototype.sendThenWrite=function(p,a,l){a||(a={});a=Cj(p,a);g.ci()||(this.L=!1);Db.prototype.sendThenWrite.call(this,p,a,l)}; Ev.prototype.sendAndWrite=function(p,a){a||(a={});a=Cj(p,a);g.ci()||(this.L=!1);Db.prototype.sendAndWrite.call(this,p,a)}; Ev.prototype.awaitInitialization=function(){return this.U.promise};var m3M=g.dD.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.M8("ytNetworklessLoggingInitializationOptions",m3M);g.MC.prototype.isReady=function(){!this.config_&&$jE()&&(this.config_=g.tl());return!!this.config_};var MwK,yC,lq;MwK=g.dD.ytPubsubPubsubInstance||new g.Y2;yC=g.dD.ytPubsubPubsubSubscribedKeys||{};lq=g.dD.ytPubsubPubsubTopicToKeys||{};g.ng=g.dD.ytPubsubPubsubIsSynchronous||{};g.Y2.prototype.subscribe=g.Y2.prototype.subscribe;g.Y2.prototype.unsubscribeByKey=g.Y2.prototype.mN;g.Y2.prototype.publish=g.Y2.prototype.publish;g.Y2.prototype.clear=g.Y2.prototype.clear;g.M8("ytPubsubPubsubInstance",MwK);g.M8("ytPubsubPubsubTopicToKeys",lq);g.M8("ytPubsubPubsubIsSynchronous",g.ng); g.M8("ytPubsubPubsubSubscribedKeys",yC);var dLZ={};g.A(Y_,g.D);Y_.prototype.append=function(p){if(!this.S)throw Error("This does not support the append operation");p=p.gG();this.gG().appendChild(p)}; g.A(JQ,Y_);JQ.prototype.gG=function(){return this.L};g.A(fC,g.D);fC.prototype.onTouchStart=function(p){this.K=!0;this.S=p.touches.length;this.L.isActive()&&(this.L.stop(),this.W=!0);p=p.touches;this.G=YPM(this,p)||p.length!=1;var a=p.item(0);this.G||!a?this.Sl=this.Z=Infinity:(this.Z=a.clientX,this.Sl=a.clientY);for(a=this.U.length=0;a=0)}if(a||p&&Math.pow(p.clientX-this.Z,2)+Math.pow(p.clientY-this.Sl,2)>25)this.j=!0}; fC.prototype.onTouchEnd=function(p){var a=p.changedTouches;a&&this.K&&this.S==1&&!this.j&&!this.W&&!this.G&&YPM(this,a)&&(this.UO=p,this.L.start());this.S=p.touches.length;this.S===0&&(this.j=this.K=!1,this.U.length=0);this.W=!1};var Pv=Date.now().toString();var xgE={};var NA=Symbol("injectionDeps");HP.prototype.toString=function(){return"InjectionToken("+this.name+")"}; TlZ.prototype.resolve=function(p){return p instanceof f2?cu(this,p.key,[],!0):cu(this,p,[])};var aL;var MQ=window;var I2=g.oO("web_enable_lifecycle_monitoring")&&O7()!==0,xPh=g.oO("web_enable_lifecycle_monitoring");LyZ.prototype.cancel=function(){for(var p=g.t(this.L),a=p.next();!a.done;a=p.next())a=a.value,a.jobId===void 0||a.HP||this.scheduler.WW(a.jobId),a.HP=!0;this.S.resolve()};g.L=IF.prototype;g.L.install=function(p){this.plugins.push(p);return this}; g.L.uninstall=function(){var p=this;g.D1.apply(0,arguments).forEach(function(a){a=p.plugins.indexOf(a);a>-1&&p.plugins.splice(a,1)})}; g.L.transition=function(p,a){var l=this;I2&&srh(this.state);var y=this.transitions.find(function(n){return Array.isArray(n.from)?n.from.find(function(V){return V===l.state&&n.to===p}):n.from===l.state&&n.to===p}); if(y){this.S&&(sIM(this.S),this.S=void 0);FFf(this,p,a);this.state=p;I2&&Jcq(this.state);y=y.action.bind(this);var S=this.plugins.filter(function(n){return n[p]}).map(function(n){return n[p]}); y(JbF(this,S),a)}else throw Error("no transition specified from "+this.state+" to "+p);}; g.L.eLu=function(p){var a=g.D1.apply(1,arguments);g.W4();for(var l=g.t(p),y=l.next(),S={};!y.done;S={Cp:void 0},y=l.next())S.Cp=y.value,I4r(function(n){return function(){flU(n.Cp.name);al_(function(){return n.Cp.callback.apply(n.Cp,g.u0(a))}); OW(n.Cp.name)}}(S))}; g.L.fgs=function(p){var a=g.D1.apply(1,arguments),l,y,S,n;return g.R(function(V){V.L==1&&(g.W4(),l=g.t(p),y=l.next(),S={});if(V.L!=3){if(y.done)return V.g7(0);S.E1=y.value;S.rf=void 0;n=function(z){return function(){flU(z.E1.name);var d=al_(function(){return z.E1.callback.apply(z.E1,g.u0(a))}); tt(d)?z.rf=g.oO("web_lifecycle_error_handling_killswitch")?d.then(function(){OW(z.E1.name)}):d.then(function(){OW(z.E1.name)},function(G){SYM(G); OW(z.E1.name)}):OW(z.E1.name)}}(S); I4r(n);return S.rf?g.u(V,S.rf,3):V.g7(3)}S={E1:void 0,rf:void 0};y=l.next();return V.g7(2)})}; g.L.aO=function(p){var a=g.D1.apply(1,arguments),l=this,y=p.map(function(S){return{W7:function(){flU(S.name);al_(function(){return S.callback.apply(S,g.u0(a))}); OW(S.name)}, priority:xO(l,S)}}); y.length&&(this.S=new LyZ(y))}; g.fU.Object.defineProperties(IF.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var $x;g.A(Pl,IF);Pl.prototype.W=function(p,a){var l=this;this.L=g.jv(0,function(){l.currentState==="application_navigating"&&l.transition("none")},5E3); p(a==null?void 0:a.event)}; Pl.prototype.G=function(p,a){this.L&&(g.$e.WW(this.L),this.L=null);p(a==null?void 0:a.event)};var y$=[];g.M8("yt.logging.transport.getScrapedGelPayloads",function(){return y$});dE.prototype.storePayload=function(p,a){p=tx(p);this.store[p]?this.store[p].push(a):(this.S={},this.store[p]=[a]);this.L++;g.oO("more_accurate_gel_parser")&&(a=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(a));return p}; dE.prototype.smartExtractMatchingEntries=function(p){if(!p.keys.length)return[];for(var a=q5(this,p.keys.splice(0,1)[0]),l=[],y=0;y=0){y=!1;break a}}y=!0}y&&(a=O6(a))&&this.aE(a)}}; g.L.PQ=function(p){return p}; g.L.onTouchStart=function(p){this.w7.onTouchStart(p)}; g.L.onTouchMove=function(p){this.w7.onTouchMove(p)}; g.L.onTouchEnd=function(p){if(this.w7)this.w7.onTouchEnd(p)}; g.L.aE=function(p){this.layoutId?this.ZV.executeCommand(p,this.layoutId):(p=new g.kc("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.iO(p))}; g.L.createServerVe=function(p,a){this.api.createServerVe(p,this);this.api.setTrackingParams(p,a)}; g.L.logVisibility=function(p,a){this.api.hasVe(p)&&this.api.logVisibility(p,a,this.interactionLoggingClientData)}; g.L.fz=function(){this.clear(null);this.ME(this.Yv);for(var p=g.t(this.Bs),a=p.next();!a.done;a=p.next())this.ME(a.value);g.YZ.prototype.fz.call(this)};g.A(lt,JF); lt.prototype.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);this.L=a;if(a.text==null&&a.icon==null)g.Mf(Error("ButtonRenderer did not have text or an icon set."));else{switch(a.style||null){case "STYLE_UNKNOWN":p="ytp-ad-button-link";break;default:p=null}p!=null&&g.uD(this.element,p);a.text!=null&&(p=g.Sw(a.text),g.Ta(p)||(this.element.setAttribute("aria-label",p),this.U=new g.YZ({X:"span",T:"ytp-ad-button-text",yY:p}),g.E(this,this.U),this.U.lT(this.element)));a.accessibilityData&&a.accessibilityData.accessibilityData&& a.accessibilityData.accessibilityData.label&&!g.Ta(a.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",a.accessibilityData.accessibilityData.label);a.icon!=null&&(a=qG(a.icon,this.j),a!=null&&(this.S=new g.YZ({X:"span",T:"ytp-ad-button-icon",N:[a]}),g.E(this,this.S)),this.W?sc(this.element,this.S.element,0):this.S.lT(this.element))}}; lt.prototype.clear=function(){this.hide()}; lt.prototype.onClick=function(p){JF.prototype.onClick.call(this,p);p=g.t(NQZ(this));for(var a=p.next();!a.done;a=p.next())a=a.value,this.layoutId?this.ZV.executeCommand(a,this.layoutId):g.iO(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.A(ml,g.D);ml.prototype.fz=function(){this.S&&g.Ue(this.S);this.L.clear();Me=null;g.D.prototype.fz.call(this)}; ml.prototype.register=function(p,a){a&&this.L.set(p,a)}; var Me=null;g.A(Nj,JF); Nj.prototype.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);p=a.hoverText||null;a=a.button&&g.T(a.button,g.az)||null;a==null?g.iO(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new lt(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,void 0,void 0,void 0,void 0,this.U),g.E(this,this.button),this.button.init(y_("button"),a,this.macros),p&&this.button.element.setAttribute("aria-label",g.Sw(p)),this.button.lT(this.element),this.Z&&!g.tr(this.button.element, "ytp-ad-clickable")&&g.uD(this.button.element,"ytp-ad-clickable"),this.U&&g.uD(this.button.element,"ytp-ad-hover-text-button--clean-player"),p&&(this.S=new g.YZ({X:"div",T:"ytp-ad-hover-text-container"}),this.W&&(a=new g.YZ({X:"div",T:"ytp-ad-hover-text-callout"}),a.lT(this.S.element),g.E(this,a)),g.E(this,this.S),this.S.lT(this.element),a=tz(p),sc(this.S.element,a,0)),this.show())}; Nj.prototype.hide=function(){this.button&&this.button.hide();this.S&&this.S.hide();JF.prototype.hide.call(this)}; Nj.prototype.show=function(){this.button&&this.button.show();JF.prototype.show.call(this)};g.A(bE,JF); bE.prototype.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);l=(p=a.thumbnail)&&D2(p)||"";g.Ta(l)?Math.random()<.01&&g.Mf(Error("Found AdImage without valid image URL")):(this.L?g.B8(this.element,"backgroundImage","url("+l+")"):Gk(this.element,{src:l}),Gk(this.element,{alt:p&&p.accessibility&&p.accessibility.label||""}),a&&a.adRendererCommands&&a.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; bE.prototype.clear=function(){this.hide()};g.A(Yi,JF);g.L=Yi.prototype;g.L.hide=function(){JF.prototype.hide.call(this);this.U&&this.U.focus()}; g.L.show=function(){this.U=document.activeElement;JF.prototype.show.call(this);this.j.focus()}; g.L.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);this.S=a;a.dialogMessages||a.title!=null?a.confirmLabel==null?g.iO(Error("ConfirmDialogRenderer.confirmLabel was not set.")):a.cancelLabel==null?g.iO(Error("ConfirmDialogRenderer.cancelLabel was not set.")):StM(this,a):g.iO(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.L.clear=function(){g.z1(this.L);this.hide()}; g.L.hO=function(){this.hide()}; g.L.nj=function(){var p=this.S.cancelEndpoint;p&&(this.layoutId?this.ZV.executeCommand(p,this.layoutId):g.iO(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.L.m1=function(){var p=this.S.confirmNavigationEndpoint||this.S.confirmEndpoint;p&&(this.layoutId?this.ZV.executeCommand(p,this.layoutId):g.iO(Error("Missing layoutId for confirm dialog.")));this.hide()};g.A(NK,JF);g.L=NK.prototype; g.L.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);this.U=a;if(a.defaultText==null&&a.defaultIcon==null)g.iO(Error("ToggleButtonRenderer must have either text or icon set."));else if(a.defaultIcon==null&&a.toggledIcon!=null)g.iO(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(a.style){switch(a.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":p="ytp-ad-toggle-button-default-style";break;default:p=null}p!=null&&g.uD(this.j,p)}p={};a.defaultText? (l=g.Sw(a.defaultText),g.Ta(l)||(p.buttonText=l,this.api.C().experiments.Cz("a11y_h5_associate_survey_question")||this.L.setAttribute("aria-label",l),this.api.C().experiments.Cz("fix_h5_toggle_button_a11y")&&this.S.setAttribute("aria-label",l))):g.ze(this.QY,!1);a.defaultTooltip&&(p.tooltipText=a.defaultTooltip,this.L.hasAttribute("aria-label")||this.S.setAttribute("aria-label",a.defaultTooltip));a.defaultIcon?(l=qG(a.defaultIcon),this.updateValue("untoggledIconTemplateSpec",l),a.toggledIcon?(this.Xu= !0,l=qG(a.toggledIcon),this.updateValue("toggledIconTemplateSpec",l)):(g.ze(this.Z,!0),g.ze(this.W,!1)),g.ze(this.L,!1)):g.ze(this.S,!1);g.cL(p)||this.update(p);a.isToggled&&(g.uD(this.j,"ytp-ad-toggle-button-toggled"),this.toggleButton(a.isToggled));dH(this);this.J(this.element,"change",this.vD);this.show()}}; g.L.onClick=function(p){this.Bs.length>0&&(this.toggleButton(!this.isToggled()),this.vD());JF.prototype.onClick.call(this,p)}; g.L.vD=function(){g.JB(this.j,"ytp-ad-toggle-button-toggled",this.isToggled());for(var p=g.t(h6F(this,this.isToggled())),a=p.next();!a.done;a=p.next())a=a.value,this.layoutId?this.ZV.executeCommand(a,this.layoutId):g.iO(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);dH(this)}; g.L.clear=function(){this.hide()}; g.L.toggleButton=function(p){g.JB(this.j,"ytp-ad-toggle-button-toggled",p);this.L.checked=p;dH(this)}; g.L.isToggled=function(){return this.L.checked};g.A(Lp,FM);Lp.prototype.W=function(p){if(Array.isArray(p)){p=g.t(p);for(var a=p.next();!a.done;a=p.next())a=a.value,a instanceof nth&&this.U(a)}};g.A(EY,JF);g.L=EY.prototype;g.L.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);a.reasons?a.confirmLabel==null?g.iO(Error("AdFeedbackRenderer.confirmLabel was not set.")):(a.cancelLabel==null&&g.Mf(Error("AdFeedbackRenderer.cancelLabel was not set.")),a.title==null&&g.Mf(Error("AdFeedbackRenderer.title was not set.")),omM(this,a)):g.iO(Error("AdFeedbackRenderer.reasons were not set."))}; g.L.clear=function(){c1r(this.W);c1r(this.Z);this.j.length=0;this.hide()}; g.L.hide=function(){this.L&&this.L.hide();this.S&&this.S.hide();JF.prototype.hide.call(this);this.U&&this.U.focus()}; g.L.show=function(){this.L&&this.L.show();this.S&&this.S.show();this.U=document.activeElement;JF.prototype.show.call(this);this.W.focus()}; g.L.PK=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.L.mel=function(){this.hide()}; kx.prototype.gG=function(){return this.L.element}; kx.prototype.getCommand=function(){return this.S}; kx.prototype.isChecked=function(){return this.U.checked};g.A(bP,Yi);bP.prototype.hO=function(p){Yi.prototype.hO.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; bP.prototype.nj=function(p){Yi.prototype.nj.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; bP.prototype.m1=function(p){Yi.prototype.m1.call(this,p);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.A(Sfo,JF);g.L=Sfo.prototype; g.L.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);this.W=a;if(a.dialogMessage==null&&a.title==null)g.iO(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{a.confirmLabel==null&&g.Mf(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(p=a.closeOverlayRenderer&&g.T(a.closeOverlayRenderer,g.az)||null)this.L=new lt(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.E(this,this.L),this.L.init(y_("button"),p,this.macros),this.L.lT(this.element);a.title&&(p=g.Sw(a.title),this.updateValue("title",p));if(a.adReasons)for(p=a.adReasons,l=0;l=this.Hs?(this.Xu.hide(),this.r7=!0,this.publish("i")):this.U&&this.U.isTemplated()&&(p=Math.max(0,Math.ceil((this.Hs-p)/1E3)),p!=this.Kz&&(U1f(this.U,{TIME_REMAINING:String(p)}),this.Kz=p)))}};g.A(Hj,hI);g.L=Hj.prototype; g.L.init=function(p,a,l){hI.prototype.init.call(this,p,a,l);if(a.image&&a.image.thumbnail)if(a.headline)if(a.description)if((p=a.actionButton&&g.T(a.actionButton,g.az))&&p.navigationEndpoint){var y=this.api.getVideoData(2);if(y!=null)if(a.image&&a.image.thumbnail){var S=a.image.thumbnail.thumbnails;S!=null&&S.length>0&&g.Ta(g.G1(S[0].url))&&(S[0].url=y.profilePicture)}else g.Mf(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.U.init(y_("ad-image"),a.image,l);this.W.init(y_("ad-text"), a.headline,l);this.j.init(y_("ad-text"),a.description,l);this.S.init(y_("button"),p,l);l=X1f(this.S.element);OH(this.S.element,l+" This link opens in new tab");this.Xu=p.navigationEndpoint;this.api.a_()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.uV.bind(this));this.QY=a.startMs||0;w4(this)}else g.iO(Error("FlyoutCtaRenderer has no valid action button."));else g.iO(Error("FlyoutCtaRenderer has no description AdText."));else g.iO(Error("FlyoutCtaRenderer has no headline AdText.")); else g.Mf(Error("FlyoutCtaRenderer has no image."))}; g.L.onClick=function(p){hI.prototype.onClick.call(this,p);this.api.pauseVideo();!g.oh(this.S.element,p.target)&&this.Xu&&(this.layoutId?this.ZV.executeCommand(this.Xu,this.layoutId):g.iO(Error("Missing layoutId for flyout cta.")))}; g.L.oQ=function(){if(this.L){var p=this.L.getProgressState();(p&&p.current||this.Hs)&&1E3*p.current>=this.QY&&(dN(this),g.b6(this.element,"ytp-flyout-cta-inactive"),this.S.element.removeAttribute("tabIndex"))}}; g.L.K8=function(){this.clear()}; g.L.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.uV.bind(this))}; g.L.show=function(){this.S&&this.S.show();hI.prototype.show.call(this)}; g.L.hide=function(){this.S&&this.S.hide();hI.prototype.hide.call(this)}; g.L.uV=function(p){p=="hidden"?this.show():this.hide()};g.A(Lw,JF);g.L=Lw.prototype; g.L.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);this.L=a;if(this.L.rectangle)for(p=this.L.likeButton&&g.T(this.L.likeButton,Xu),a=this.L.dislikeButton&&g.T(this.L.dislikeButton,Xu),this.U.init(y_("toggle-button"),p,l),this.S.init(y_("toggle-button"),a,l),this.J(this.element,"change",this.G1),this.j.show(100),this.show(),l=g.t(this.L&&this.L.impressionCommands||[]),p=l.next();!p.done;p=l.next())p=p.value,this.layoutId?this.ZV.executeCommand(p,this.layoutId):g.iO(Error("Missing layoutId for instream user sentiment."))}; g.L.clear=function(){this.hide()}; g.L.hide=function(){this.U.hide();this.S.hide();JF.prototype.hide.call(this)}; g.L.show=function(){this.U.show();this.S.show();JF.prototype.show.call(this)}; g.L.G1=function(){vnM(this.element,"ytp-ad-instream-user-sentiment-selected");this.L.postMessageAction&&this.api.xv("onYtShowToast",this.L.postMessageAction);this.j.hide()}; g.L.onClick=function(p){this.Bs.length>0&&this.G1();JF.prototype.onClick.call(this,p)};g.A(xE,g.D);g.L=xE.prototype;g.L.fz=function(){this.reset();g.D.prototype.fz.call(this)}; g.L.reset=function(){g.z1(this.j);this.G=!1;this.L&&this.L.stop();this.W.stop();this.U&&(this.U=!1,this.K.play())}; g.L.start=function(){this.reset();this.j.J(this.S,"mouseover",this.au,this);this.j.J(this.S,"mouseout",this.nf,this);this.UO&&(this.j.J(this.S,"focusin",this.au,this),this.j.J(this.S,"focusout",this.nf,this));this.L?this.L.start():(this.G=this.U=!0,g.B8(this.S,{opacity:this.Sl}))}; g.L.au=function(){this.U&&(this.U=!1,this.K.play());this.W.stop();this.L&&this.L.stop()}; g.L.nf=function(){this.G?this.W.start():this.L&&this.L.start()}; g.L.Jb=function(){this.U||(this.U=!0,this.Z.play(),this.G=!0)};var Fjo=[new Ku("b.f_",!1,0),new Ku("j.s_",!1,2),new Ku("r.s_",!1,4),new Ku("e.h_",!1,6),new Ku("i.s_",!0,8),new Ku("s.t_",!1,10),new Ku("p.h_",!1,12),new Ku("s.i_",!1,14),new Ku("f.i_",!1,16),new Ku("a.b_",!1,18),new Ku("a.o_",!1),new Ku("g.o_",!1,22),new Ku("p.i_",!1,24),new Ku("p.m_",!1),new Ku("n.k_",!0,20),new Ku("i.f_",!1),new Ku("a.s_",!0),new Ku("m.c_",!1),new Ku("n.h_",!1,26),new Ku("o.p_",!1),new Ku("m.p_",!0,28),new Ku("o.a_",!1),new Ku("d.p_",!1),new Ku("e.i_",!1)].reduce(function(p,a){p[a.S]= a;return p},{});g.A(Fw,hI);g.L=Fw.prototype; g.L.init=function(p,a,l){hI.prototype.init.call(this,p,a,l);this.Xu=a;(this.QY=mur(this))&&g.Mf(Error("hasAdControlInClickCommands_ is true."));if(!a||g.cL(a))g.iO(Error("SkipButtonRenderer was not specified or empty."));else if(!a.message||g.cL(a.message))g.iO(Error("SkipButtonRenderer.message was not specified or empty."));else if(p=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},a=this.api.C().D("delhi_modern_web_player_icons"),a=qG(p,!1,!1,a),a==null?g.iO(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+p.iconType+ ".")):(this.api.C().D("disable_touch_events_on_skip_button")&&(a.V=Object.assign({},a.V,{"aria-hidden":"true",uJ7:"false"})),this.U=new g.YZ({X:"button",A9:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],N:[{X:"span",T:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",N:[a]}]}),g.E(this,this.U),this.U.lT(this.j.element),this.S=new qh(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,"ytp-ad-skip-button-text"),this.W&&this.S.element.classList.add("ytp-ad-skip-button-text-centered"), this.S.init(y_("ad-text"),this.Xu.message,l),g.E(this,this.S),sc(this.U.element,this.S.element,0)),!this.api.C().D("disable_touch_events_on_skip_button")){var y=y===void 0?null:y;l=this.api.C();!(this.Bs.length>0)&&l.S&&(Jb?0:"ontouchstart"in document.documentElement&&(OaA()||Hy()))&&(this.ME(this.Yv),y&&this.ME(y),this.Bs=[this.J(this.element,"touchstart",this.onTouchStart,this),this.J(this.element,"touchmove",this.onTouchMove,this),this.J(this.element,"touchend",this.onTouchEnd,this)])}}; g.L.clear=function(){this.Hs.reset();this.hide()}; g.L.hide=function(){this.j.hide();this.S&&this.S.hide();dN(this);hI.prototype.hide.call(this)}; g.L.onClick=function(p){if(this.U!=null){if(p){var a=p||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}var l;if(XmA(p,{contentCpn:((l=this.api.getVideoData(1))==null?void 0:l.clientPlaybackNonce)||""})===0)this.api.xv("onAbnormalityDetected");else if(hI.prototype.onClick.call(this,p),this.publish("j"),this.api.xv("onAdSkip"),this.r7||!this.QY)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.L.PQ=function(p){if(!this.r7)return this.QY&&hF("SkipButton click commands not pruned while ALC exist"),p;var a,l=(a=g.T(p,g.yw))==null?void 0:a.commands;if(!l)return p;p=[];for(a=0;a=this.W&&Yce(this,!0)};g.A(ajM,lt);ajM.prototype.init=function(p,a,l){lt.prototype.init.call(this,p,a,l);p=!1;a.text!=null&&(p=g.Sw(a.text),p=!g.Ta(p));p?a.navigationEndpoint==null?g.Mf(Error("No visit advertiser clickthrough provided in renderer,")):a.style!=="STYLE_UNKNOWN"?g.Mf(Error("Button style was not a link-style type in renderer,")):this.show():g.Mf(Error("No visit advertiser text was present in the renderer."))};g.A(xo,JF); xo.prototype.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);p=a.text;g.Ta(Dl(p))?g.Mf(Error("SimpleAdBadgeRenderer has invalid or empty text")):(p&&p.text&&(a=p.text,this.U&&!this.S&&(a=this.api.C(),a=p.text+" "+(a&&a.S?"\u2022":"\u00b7")),a={text:a,isTemplated:p.isTemplated},p.style&&(a.style=p.style),p.targetId&&(a.targetId=p.targetId),p=new qh(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),p.init(y_("simple-ad-badge"),a,l),p.lT(this.element),g.E(this,p)),this.show())}; xo.prototype.clear=function(){this.hide()};g.A(QP,wt);g.A(fE,g.qu);g.L=fE.prototype;g.L.x7=function(){return this.durationMs}; g.L.stop=function(){this.L&&this.handler.ME(this.L)}; g.L.rq=function(p){this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:p.current};this.publish("h")}; g.L.getProgressState=function(){return this.S}; g.L.vM=function(p){g.mj(p,2)&&this.publish("g")};g.A(PP,g.qu);g.L=PP.prototype;g.L.x7=function(){return this.durationMs}; g.L.start=function(){this.L||(this.L=!0,this.timer.start())}; g.L.stop=function(){this.L&&(this.L=!1,this.timer.stop())}; g.L.rq=function(){this.BG+=100;var p=!1;this.BG>this.durationMs&&(this.BG=this.durationMs,this.timer.stop(),p=!0);this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.BG/1E3};this.publish("h");p&&this.publish("g")}; g.L.getProgressState=function(){return this.S};g.A(p4,hI);g.L=p4.prototype;g.L.init=function(p,a,l){hI.prototype.init.call(this,p,a,l);var y;if(a==null?0:(y=a.templatedCountdown)==null?0:y.templatedAdText){p=a.templatedCountdown.templatedAdText;if(!p.isTemplated){g.Mf(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.S=new qh(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV);this.S.init(y_("ad-text"),p,{});this.S.lT(this.element);g.E(this,this.S)}this.show()}; g.L.clear=function(){this.hide()}; g.L.hide=function(){dN(this);hI.prototype.hide.call(this)}; g.L.K8=function(){this.hide()}; g.L.oQ=function(){if(this.L!=null){var p=this.L.getProgressState();if(p!=null&&p.current!=null&&this.S){var a=this.L instanceof fE?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:p.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.L instanceof PP?p.seekableEnd:this.api.getDuration(2,!1);p=p.current;var l,y,S=((l=this.api.getVideoData())==null?0:(y=l.vy)==null?0:y.call(l))?Math.max(a-p,0):a-p;U1f(this.S,{FORMATTED_AD_DURATION_REMAINING:String(g.tQ(S)), TIME_REMAINING:String(Math.ceil(S))})}}}; g.L.show=function(){w4(this);hI.prototype.show.call(this)};g.A(Jq,qh);Jq.prototype.onClick=function(p){qh.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType)};g.A(Ve,JF);Ve.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});if(p=a.content){g.Cp(this.element,p);var l,y;a=((l=a.interaction)==null?void 0:(y=l.accessibility)==null?void 0:y.label)||p;this.element.setAttribute("aria-label",a)}else g.iO(Error("AdSimpleAttributedString does not have text content"))}; Ve.prototype.clear=function(){this.hide()}; Ve.prototype.onClick=function(p){JF.prototype.onClick.call(this,p)};g.A(MF,JF); MF.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});(p=a.label)&&p.content&&!g.Ta(p.content)?(this.adBadgeText.init(y_("ad-simple-attributed-string"),new Wb(p)),(a=a.adPodIndex)&&a.content&&!g.Ta(a.content)&&(this.L=new Ve(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),this.L.lT(this.element),g.E(this,this.L),this.L.element.classList.add("ytp-ad-badge__pod-index"),this.L.init(y_("ad-simple-attributed-string"),new Wb(a))),this.element.classList.add(this.S?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.iO(Error("No label is returned in AdBadgeViewModel."))}; MF.prototype.show=function(){this.adBadgeText.show();var p;(p=this.L)==null||p.show();JF.prototype.show.call(this)}; MF.prototype.hide=function(){this.adBadgeText.hide();var p;(p=this.L)==null||p.hide();JF.prototype.hide.call(this)};g.A(Tr,JF);Tr.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});(p=a.adPodIndex)&&p.content&&!g.Ta(p.content)&&(this.L=new Ve(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),this.L.lT(this.element),g.E(this,this.L),this.L.init(y_("ad-simple-attributed-string"),new Wb(p)),a.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()}; Tr.prototype.show=function(){var p;(p=this.L)==null||p.show();JF.prototype.show.call(this)}; Tr.prototype.hide=function(){var p;(p=this.L)==null||p.hide();JF.prototype.hide.call(this)};g.A(xX,JF); xX.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});if(a!=null&&a.text){var l;if(((l=a.text)==null?0:l.content)&&!g.Ta(a.text.content)){this.L=new g.YZ({X:"div",T:"ytp-ad-disclosure-banner__text",yY:a.text.content});g.E(this,this.L);this.L.lT(this.element);if(this.api.C().D("enable_ad_disclosure_banner_a11y_fix")){var y,S,n=(y=a.interaction)==null?void 0:(S=y.accessibility)==null?void 0:S.label;n||(n=a.text.content+" This link opens in new tab");OH(this.element,n)}else{var V;y=((n= a.interaction)==null?void 0:(V=n.accessibility)==null?void 0:V.label)||a.text.content;this.element.setAttribute("aria-label",y)}var z;if((z=a.interaction)==null?0:z.onTap)this.S=new g.YZ({X:"div",T:"ytp-ad-disclosure-banner__chevron",N:[g.Et()]}),g.E(this,this.S),this.S.lT(this.element),this.api.C().D("enable_ad_disclosure_banner_a11y_fix")&&(Wj(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.i_));this.show()}}else g.iO(Error("No banner text found in AdDisclosureBanner."))}; xX.prototype.i_=function(p){if(p.key==="Enter"||p.key===" ")p.preventDefault(),this.element.click()}; xX.prototype.clear=function(){this.hide()};g.A(aR,g.YZ);aR.prototype.rq=function(){var p=this.S.getProgressState(),a=p.seekableEnd;this.api.getPresentingPlayerType()===2&&(a=this.U?this.U/1E3:p.seekableEnd);this.progressBar.style.width=M3(new AU(p.seekableStart,a),p.current,0)*100+"%"}; aR.prototype.onStateChange=function(){g.PD(this.api.C())||(this.api.getPresentingPlayerType()===2?this.L===-1&&(this.show(),this.L=this.S.subscribe("h",this.rq,this),this.rq()):this.L!==-1&&(this.hide(),this.S.mN(this.L),this.L=-1))};g.A(cn,JF); cn.prototype.init=function(p,a,l,y){JF.prototype.init.call(this,p,a,l);if(a.skipOrPreviewRenderer){if(p=g.T(a.skipOrPreviewRenderer,yr))l=new No(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.S,this.Z),l.lT(this.nz),l.init(y_("skip-button"),p,this.macros),g.E(this,l);if(p=g.T(a.skipOrPreviewRenderer,yr))var S=p.skipOffsetMilliseconds}a.brandInteractionRenderer&&(p=a.brandInteractionRenderer.brandInteractionRenderer,l=new Lw(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV), l.lT(this.QY),l.init(y_("instream-user-sentiment"),p,this.macros),g.E(this,l));if(p=g.T(a,$Dl))if(p=g.T(p,$Dl))l=new Hj(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.S,!!a.showWithoutLinkedMediaLayout),g.E(this,l),l.lT(this.W),l.init(y_("flyout-cta"),p,this.macros);y=y&&y.videoAdDurationSeconds;a.adBadgeRenderer&&(l=a.adBadgeRenderer,p=g.T(l,yP),p!=null?(l=new MF(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,!1),g.E(this,l),l.lT(this.L),l.init(y_("ad-badge"), p,this.macros),this.U=l.element):(p=l.simpleAdBadgeRenderer,p==null&&(p={text:{text:"Anuncio",isTemplated:!1}}),l=new xo(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,!0),g.E(this,l),l.lT(this.L),l.init(y_("simple-ad-badge"),p,this.macros)));a.adPodIndex&&(p=g.T(a.adPodIndex,e$_),p!=null&&(l=new Tr(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,l),l.lT(this.L),l.init(y_("ad-pod-index"),p)));a.adDurationRemaining&&!a.showWithoutLinkedMediaLayout&&(p=a.adDurationRemaining.adDurationRemainingRenderer, p==null&&(p={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),y=new p4(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.S,y,!1),g.E(this,y),y.lT(this.L),y.init(y_("ad-duration-remaining"),p,this.macros));a.adInfoRenderer&&(y=g.T(a.adInfoRenderer,sT))&&(p=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.element,void 0,!1),g.E(this,p),this.U!==null?this.L.insertBefore(p.element,this.U.nextSibling):p.lT(this.L), p.init(y_("ad-info-hover-text-button"),y,this.macros));a.visitAdvertiserRenderer&&(p=g.T(a.visitAdvertiserRenderer,g.az))&&(l=Qgf(this)&&this.j?this.j:this.L)&&(y=new ajM(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,y),y.lT(l),y.init(y_("visit-advertiser"),p,this.macros),Wj(y.element),p=X1f(y.element),OH(y.element,p+" This link opens in new tab"));!(y=this.api.C())||g.CL(y)||g.wW(y)||y.controlsType!="3"&&!y.disableOrganicUi||(S=new aR(this.api,this.S,S,!1),S.lT(this.Hs), g.E(this,S));a.adDisclosureBannerRenderer&&(a=g.T(a.adDisclosureBannerRenderer,KY_))&&(S=new xX(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),S.lT(this.Xu),S.init(y_("ad-disclosure-banner"),a),g.E(this,S));this.api.C().D("enable_updated_html5_player_focus_style")&&g.uD(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; cn.prototype.clear=function(){this.hide()};g.nD.prototype.flush=function(p,a){p=p===void 0?[]:p;a=a===void 0?!1:a;if(g.oO("enable_client_streamz_web")){p=g.t(p);for(var l=p.next();!l.done;l=p.next())l=MjE(l.value),this.L&&$W(l,JD$,2,this.L),l={serializedIncrementBatch:g.MN(l.U())},g.mf("streamzIncremented",l,{sendIsolatedPayload:a})}}; g.A(RMq,g.nD);var IeM=new Map;Nt.prototype.set=function(p,a,l){l=l!==void 0?Date.now()+l:void 0;this.L.set(p,a,l)}; Nt.prototype.get=function(p){return this.L.get(p)}; Nt.prototype.remove=function(p){this.L.remove(p)};var ZSq=null;var cW=null,BW=null,Gg=null,Pie=null;g.M8("yt.www.ads.eventcache.getLastCompanionData",function(){return cW}); g.M8("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.M8("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return BW}); g.M8("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Gg}); g.M8("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Pie});var wVE=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);ZN.prototype.handleResponse=function(p,a){if(!a)throw Error("request needs to be passed into ConsistencyService");var l,y;a=((l=a.jp.context)==null?void 0:(y=l.request)==null?void 0:y.consistencyTokenJars)||[];var S;(p=(S=p.responseContext)==null?void 0:S.consistencyTokenJar)&&this.replace(a,p)}; ZN.prototype.replace=function(p,a){p=g.t(p);for(var l=p.next();!l.done;l=p.next())delete this.L[l.value.encryptedTokenJarContents];eoe(this,a)};var Dpa=window.location.hostname.split(".").slice(-2).join("."),b$;o_.getInstance=function(){b$=g.o4("yt.clientLocationService.instance");b$||(b$=new o_,g.M8("yt.clientLocationService.instance",b$));return b$}; g.L=o_.prototype; g.L.setLocationOnInnerTubeContext=function(p){p.client||(p.client={});if(this.L)p.client.locationInfo||(p.client.locationInfo={}),p.client.locationInfo.latitudeE7=Math.floor(this.L.coords.latitude*1E7),p.client.locationInfo.longitudeE7=Math.floor(this.L.coords.longitude*1E7),p.client.locationInfo.horizontalAccuracyMeters=Math.round(this.L.coords.accuracy),p.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.U||this.locationPlayabilityToken)p.client.locationPlayabilityToken=this.U|| this.locationPlayabilityToken}; g.L.handleResponse=function(p){var a;p=(a=p.responseContext)==null?void 0:a.locationPlayabilityToken;p!==void 0&&(this.locationPlayabilityToken=p,this.L=void 0,g.ZM("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=i3(this))&&this.localStorage.set("yt-location-playability-token",p,15552E3):g.wh("YT_CL",JSON.stringify({loctok:p}),15552E3,Dpa,!0))}; g.L.clearLocationPlayabilityToken=function(p){p==="TVHTML5"?(this.localStorage=i3(this))&&this.localStorage.remove("yt-location-playability-token"):g.fjO("YT_CL");this.U=void 0;this.S!==-1&&(clearTimeout(this.S),this.S=-1)}; g.L.getCurrentPositionFromGeolocation=function(){var p=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var a=!1,l=1E4;g.ZM("INNERTUBE_CLIENT_NAME")==="MWEB"&&(a=!0,l=15E3);return new Promise(function(y,S){navigator.geolocation.getCurrentPosition(function(n){p.L=n;y(n)},function(n){S(n)},{enableHighAccuracy:a, maximumAge:0,timeout:l})})}; g.L.createUnpluggedLocationInfo=function(p){var a={};p=p.coords;if(p==null?0:p.latitude)a.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)a.longitudeE7=Math.floor(p.longitude*1E7);if(p==null?0:p.accuracy)a.locationRadiusMeters=Math.round(p.accuracy);return a}; g.L.createLocationInfo=function(p){var a={};p=p.coords;if(p==null?0:p.latitude)a.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)a.longitudeE7=Math.floor(p.longitude*1E7);return a};g.L=HZO.prototype;g.L.contains=function(p){return Object.prototype.hasOwnProperty.call(this.L,p)}; g.L.get=function(p){if(this.contains(p))return this.L[p]}; g.L.set=function(p,a){this.L[p]=a}; g.L.x$=function(){return Object.keys(this.L)}; g.L.remove=function(p){delete this.L[p]};mp.prototype.getModuleId=function(p){return p.serviceId.getModuleId()}; mp.prototype.get=function(p){a:{var a=this.mappings.get(p.toString());switch(a.type){case "mapping":p=a.value;break a;case "factory":a=a.value();this.mappings.set(p.toString(),{type:"mapping",value:a});p=a;break a;default:p=m5(a)}}return p}; mp.prototype.registerService=function(p,a){this.mappings.set(p.toString(),{type:"mapping",value:a});return p}; new mp;var IT={},TBF=(IT.WEB_UNPLUGGED="^unplugged/",IT.WEB_UNPLUGGED_ONBOARDING="^unplugged/",IT.WEB_UNPLUGGED_OPS="^unplugged/",IT.WEB_UNPLUGGED_PUBLIC="^unplugged/",IT.WEB_CREATOR="^creator/",IT.WEB_KIDS="^kids/",IT.WEB_EXPERIMENTS="^experiments/",IT.WEB_MUSIC="^music/",IT.WEB_REMIX="^music/",IT.WEB_MUSIC_EMBEDDED_PLAYER="^music/",IT.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",IT);PF.prototype.W=function(p,a,l){a=a===void 0?{}:a;l=l===void 0?Wa:l;var y={context:g.Ha(p.clickTrackingParams,!1,this.j)};var S=this.S(p);if(S){this.L(y,S,a);var n;a=g.ax(this.U());(S=(n=g.T(p.commandMetadata,g.LB))==null?void 0:n.apiUrl)&&(a=S);n=Ouv(Ds(a));p=Object.assign({},{command:p},void 0);y={input:n,z3:i6(n),jp:y,config:p};y.config.L6?y.config.L6.identity=l:y.config.L6={identity:l};return y}l=new g.kc("Error: Failed to create Request from Command.",p);g.iO(l)}; g.fU.Object.defineProperties(PF.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.A(Cs,PF);g.A(Fq,Cs);Fq.prototype.W=function(){return{input:"/getDatasyncIdsEndpoint",z3:i6("/getDatasyncIdsEndpoint","GET"),jp:{}}}; Fq.prototype.U=function(){return[]}; Fq.prototype.S=function(){}; Fq.prototype.L=function(){};var iUc={},Ker=(iUc.GET_DATASYNC_IDS=If(Fq),iUc);var RT={},TW1=(RT["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",RT["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",RT["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",RT["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",RT["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",RT["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",RT["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", RT["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",RT["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",RT["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",RT["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",RT["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",RT["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",RT["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",RT["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", RT["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",RT["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",RT["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",RT["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",RT["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",RT["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",RT["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", RT["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",RT.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",RT["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",RT["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",RT["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",RT["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",RT["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",RT["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", RT["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",RT["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",RT["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",RT["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",RT["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",RT["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",RT["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",RT["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",RT["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",RT["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",RT.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",RT["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",RT["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",RT["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",RT["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",RT["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",RT["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",RT["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",RT["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",RT["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",RT["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",RT["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",RT["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",RT["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",RT["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",RT["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",RT["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",RT["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",RT["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",RT["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",RT["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",RT["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", RT["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",RT["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",RT["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",RT["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",RT["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",RT["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",RT["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",RT["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",RT["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", RT["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",RT["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",RT["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",RT["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",RT["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",RT["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",RT["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",RT["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", RT),u$={},P7M=(u$.auto_search="LATENCY_ACTION_AUTO_SEARCH",u$.ad_to_ad="LATENCY_ACTION_AD_TO_AD",u$.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",u$.app_startup="LATENCY_ACTION_APP_STARTUP",u$.browse="LATENCY_ACTION_BROWSE",u$.cast_splash="LATENCY_ACTION_CAST_SPLASH",u$.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",u$.channels="LATENCY_ACTION_CHANNELS",u$.chips="LATENCY_ACTION_CHIPS",u$.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",u$.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", u$.editor="LATENCY_ACTION_EDITOR",u$.embed="LATENCY_ACTION_EMBED",u$.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",u$.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",u$.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",u$.explore="LATENCY_ACTION_EXPLORE",u$.favorites="LATENCY_ACTION_FAVORITES",u$.home="LATENCY_ACTION_HOME",u$.inboarding="LATENCY_ACTION_INBOARDING",u$.landing="LATENCY_ACTION_LANDING",u$.learning="LATENCY_ACTION_LEARNING", u$.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",u$.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",u$.library="LATENCY_ACTION_LIBRARY",u$.live="LATENCY_ACTION_LIVE",u$.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",u$.management="LATENCY_ACTION_MANAGEMENT",u$.mini_app="LATENCY_ACTION_MINI_APP_PLAY",u$.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",u$.onboarding="LATENCY_ACTION_ONBOARDING",u$.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", u$.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",u$.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",u$.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",u$.prebuffer="LATENCY_ACTION_PREBUFFER",u$.prefetch="LATENCY_ACTION_PREFETCH",u$.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",u$.profile_switcher="LATENCY_ACTION_LOGIN",u$.projects="LATENCY_ACTION_PROJECTS",u$.reel_watch="LATENCY_ACTION_REEL_WATCH",u$.results="LATENCY_ACTION_RESULTS",u$.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", u$.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",u$.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",u$.review="LATENCY_ACTION_REVIEW",u$.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",u$.search_ui="LATENCY_ACTION_SEARCH_UI",u$.search_suggest="LATENCY_ACTION_SUGGEST",u$.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",u$.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",u$.seek="LATENCY_ACTION_PLAYER_SEEK",u$.settings="LATENCY_ACTION_SETTINGS",u$.store="LATENCY_ACTION_STORE", u$.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",u$.tenx="LATENCY_ACTION_TENX",u$.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",u$.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",u$.watch="LATENCY_ACTION_WATCH",u$.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",u$["watch,watch7"]="LATENCY_ACTION_WATCH",u$["watch,watch7_html5"]="LATENCY_ACTION_WATCH",u$["watch,watch7ad"]="LATENCY_ACTION_WATCH",u$["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",u$.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", u$.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",u$.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",u$.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",u$.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",u$.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",u$.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",u$.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",u$);Object.assign(P7M,TW1);g.A(gF,AD);var o$$=new Ul("aft-recorded",gF);var NWK=g.dD.ytLoggingGelSequenceIdObj_||{};g.M8("ytLoggingGelSequenceIdObj_",NWK);var w6=g.dD.ytLoggingLatencyUsageStats_||{};g.M8("ytLoggingLatencyUsageStats_",w6);YX.prototype.tick=function(p,a,l,y){$2(this,"tick_"+p+"_"+a)||g.mf("latencyActionTicked",{tickName:p,clientActionNonce:a},{timestamp:l,cttAuthInfo:y})}; YX.prototype.info=function(p,a,l){var y=Object.keys(p).join("");$2(this,"info_"+y+"_"+a)||(p=Object.assign({},p),p.clientActionNonce=a,g.mf("latencyActionInfo",p,{cttAuthInfo:l}))}; YX.prototype.jspbInfo=function(p,a,l){for(var y="",S=0;S=S.length?(a.append(S),p-=S.length):p?(a.append(new Uint8Array(S.buffer,S.byteOffset,p)),l.append(new Uint8Array(S.buffer,S.byteOffset+p,S.length-p)),p=0):l.append(S);return{HV:a,CO:l}}; NN.prototype.isFocused=function(p){return p>=this.U&&p=64&&(this.G.set(p.subarray(0,64-this.S),this.S),a=64-this.S,this.S=0,h9h(this,this.G,0));for(;a+64<=l;a+=64)h9h(this,p,a);a=this.start&&(p=2&&l.ssdaiAdsConfig&&hF("Unexpected ad placement renderers length",p.slot,null,{length:y.length});var S;((S=l.adSlots)==null?0:S.some(function(n){var V,z;return((V=g.T(n,Uz))==null?void 0:(z=V.adSlotMetadata)==null?void 0:z.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||y.some(function(n){var V,z,d,G; return!!((V=n.renderer)==null?0:(z=V.linearAdSequenceRenderer)==null?0:(d=z.linearAds)==null?0:d.length)||!((G=n.renderer)==null||!G.instreamVideoAdRenderer)})||BTA(p)})}; yg.prototype.ll=function(){rLM(this.L)};ZS.prototype.AQ=function(){var p=this;uIO(this.S,function(){var a=PE(p.slot.clientMetadata,"metadata_type_ad_break_request_data");return a.cueProcessedMs?p.L.get().fetch({C$:a.getAdBreakUrl,Ln:new g.nF(a.gI,a.WI),cueProcessedMs:a.cueProcessedMs}):p.L.get().fetch({C$:a.getAdBreakUrl,Ln:new g.nF(a.gI,a.WI)})})}; ZS.prototype.ll=function(){rLM(this.S)};y7Z.prototype.AQ=function(){var p=this.slot.clientMetadata,a,l=(a=this.slot.fulfilledLayout)!=null?a:PE(p,"metadata_type_fulfilled_layout");bDr(this.callback,this.slot,l)}; y7Z.prototype.ll=function(){U2(this.callback,this.slot,new W("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")};bV.prototype.build=function(p,a){return a.fulfilledLayout||$0q(a,{XX:["metadata_type_fulfilled_layout"]})?new y7Z(p,a):this.U(p,a)};g.A(rb,bV); rb.prototype.U=function(p,a){if($0q(a,{XX:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new yg(p,a,this.L,this.S,this.UQ,this.EO,this.uT,this.sO,this.WZ);if($0q(a,{XX:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new ZS(p,a,this.L,this.S,this.UQ,this.EO);throw new W("Unsupported slot with type: "+a.slotType+" and client metadata: "+XL(a.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.A(wb,bV);wb.prototype.U=function(p,a){throw new W("Unsupported slot with type: "+a.slotType+" and client metadata: "+XL(a.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.L=l6r.prototype;g.L.iM=function(){return this.slot}; g.L.J9=function(){return this.layout}; g.L.init=function(){}; g.L.release=function(){}; g.L.startRendering=function(p){if(p.layoutId!==this.layout.layoutId)this.callback.N2(this.slot,p,new Xd("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 a=PE(p.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Pa(this.slot,p),Jto(this.U, this.slot,a)):hF("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,p)}}; g.L.NE=function(p,a){p.layoutId!==this.layout.layoutId?this.callback.N2(this.slot,p,new Xd("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.Dy(this.slot,p,a),uph(this),Qy$(this))};g.A(bT,g.qu);g.L=bT.prototype;g.L.iM=function(){return this.S.slot}; g.L.J9=function(){return this.S.layout}; g.L.init=function(){this.U.get().addListener(this)}; g.L.release=function(){this.U.get().removeListener(this);this.dispose()}; g.L.tp=function(){}; g.L.kR=function(){}; g.L.Rg=function(){}; g.L.Q_=function(){}; g.L.startRendering=function(p){var a=this;iJ(this.S,p,function(){return void a.WS()})}; g.L.WS=function(){this.U.get().WS(this.L)}; g.L.NE=function(p,a){var l=this;iJ(this.S,p,function(){var y=l.U.get();c$A(y,l.L,3);l.L=[];l.callback.Dy(l.slot,p,a)})}; g.L.fz=function(){this.U.Gm()||this.U.get().removeListener(this);g.qu.prototype.fz.call(this)}; g.fU.Object.defineProperties(bT.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.S.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.S.layout}}});Rq.prototype.h5=function(p,a){a=a===void 0?!1:a;var l=(this.U.get(p)||[]).concat();if(a=a&&HjZ(p)){var y=this.U.get(a);y&&l.push.apply(l,g.u0(y))}p5(this,p,l);this.L.add(p);a&&this.L.add(a)}; Rq.prototype.ZN=function(p,a){a=a===void 0?!1:a;if(!this.L.has(p)){var l=a&&HjZ(p);l&&(a=!this.L.has(l));this.h5(p,a)}};g.A(cyE,wt);g.A(i9F,bT);g.L=i9F.prototype;g.L.yh=function(p,a){z$("ads-engagement-panel-layout",p,this.G.get().WG,this.uT.get(),this.j,this.W,this.iM(),this.J9(),a)}; g.L.startRendering=function(p){LD(this.zm,this.iM(),this.J9(),g.T(this.J9().renderingContent,euh),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(a,l,y,S,n){return new cyE(a,l,y,S,n)},this.L); bT.prototype.startRendering.call(this,p)}; g.L.Pa=function(p,a){this.W===a.layoutId&&(this.j===null?this.j=this.uT.get().Wl():hF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Dy=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.fz=function(){h0(this.Ye(),this);bT.prototype.fz.call(this)};g.A(gje,wt);g.A(NmA,bT);g.L=NmA.prototype;g.L.yh=function(p,a){z$("banner-image",p,this.G.get().WG,this.uT.get(),this.j,this.W,this.iM(),this.J9(),a)}; g.L.startRendering=function(p){LD(this.zm,this.iM(),this.J9(),g.T(this.J9().renderingContent,v5f),this.callback,"metadata_type_banner_image_layout_view_model",function(a,l,y,S,n){return new gje(a,l,y,S,n)},this.L); bT.prototype.startRendering.call(this,p)}; g.L.Pa=function(p,a){this.W===a.layoutId&&(this.j===null?this.j=this.uT.get().Wl():hF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Dy=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.fz=function(){h0(this.Ye(),this);bT.prototype.fz.call(this)};g.A(sAe,wt);g.A(uT,bT);g.L=uT.prototype;g.L.yh=function(p,a){z$("action-companion",p,this.G.get().WG,this.uT.get(),this.j,this.W,this.iM(),this.J9(),a)}; g.L.startRendering=function(p){LD(this.zm,this.iM(),this.J9(),g.T(this.J9().renderingContent,QV),this.callback,"metadata_type_action_companion_ad_renderer",function(a,l,y,S,n){return new sAe(a,l,y,S,n)},this.L); bT.prototype.startRendering.call(this,p)}; g.L.Pa=function(p,a){a.layoutId===this.layout.layoutId?this.zm.ZN("impression"):this.W===a.layoutId&&(this.j===null?this.j=this.uT.get().Wl():hF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Dy=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.fz=function(){h0(this.Ye(),this);bT.prototype.fz.call(this)};g.A(BME,wt);g.A(p_,bT);g.L=p_.prototype;g.L.yh=function(p,a){z$("image-companion",p,this.G.get().WG,this.uT.get(),this.j,this.W,this.iM(),this.J9(),a)}; g.L.startRendering=function(p){LD(this.zm,this.iM(),this.J9(),g.T(this.J9().renderingContent,hE),this.callback,"metadata_type_image_companion_ad_renderer",function(a,l,y,S,n){return new BME(a,l,y,S,n)},this.L); bT.prototype.startRendering.call(this,p)}; g.L.Pa=function(p,a){a.layoutId===this.layout.layoutId?this.zm.ZN("impression"):this.W===a.layoutId&&(this.j===null?this.j=this.uT.get().Wl():hF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Dy=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.fz=function(){h0(this.Ye(),this);bT.prototype.fz.call(this)};g.A(wUM,wt);g.A(NR,bT);g.L=NR.prototype;g.L.yh=function(p,a){z$("shopping-companion",p,this.G.get().WG,this.uT.get(),this.j,this.W,this.iM(),this.J9(),a)}; g.L.startRendering=function(p){LD(this.zm,this.iM(),this.J9(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(a,l,y,S,n){return new wUM(a,l,y,S,n)},this.L); bT.prototype.startRendering.call(this,p)}; g.L.Pa=function(p,a){a.layoutId===this.layout.layoutId?this.zm.ZN("impression"):this.W===a.layoutId&&(this.j===null?this.j=this.uT.get().Wl():hF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Dy=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.fz=function(){h0(this.Ye(),this);bT.prototype.fz.call(this)};g.A(vdq,bT);g.L=vdq.prototype;g.L.startRendering=function(p){LD(this.zm,this.iM(),this.J9(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(a,l,y,S,n){return new sAe(a,l,y,S,n)},this.L); bT.prototype.startRendering.call(this,p)}; g.L.Pa=function(){}; g.L.Dy=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.fz=function(){h0(this.Ye(),this);bT.prototype.fz.call(this)}; g.L.yh=function(){};g.L=L_f.prototype;g.L.iM=function(){return this.slot}; g.L.J9=function(){return this.layout}; g.L.init=function(){this.sO.get().addListener(this);this.sO.get().Ny.push(this);var p=PE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),a=PE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");BF(this.layout.Xh)&&X0(this.dG.get(),this.layout.layoutId,{Yp:a,Tq:p,listener:this})}; g.L.release=function(){this.sO.get().removeListener(this);hde(this.sO.get(),this);BF(this.layout.Xh)&&fi(this.dG.get(),this.layout.layoutId)}; g.L.startRendering=function(p){this.callback.Pa(this.slot,p)}; g.L.NE=function(p,a){NNM(this.EO.get())&&!this.L&&(this.zm.ZN("abandon"),this.L=!0);this.callback.Dy(this.slot,p,a)}; g.L.cG=function(p){switch(p.id){case "part2viewed":this.zm.ZN("start");this.zm.ZN("impression");break;case "videoplaytime25":this.zm.ZN("first_quartile");break;case "videoplaytime50":this.zm.ZN("midpoint");break;case "videoplaytime75":this.zm.ZN("third_quartile");break;case "videoplaytime100":NNM(this.EO.get())?this.L||(this.zm.ZN("complete"),this.L=!0):this.zm.ZN("complete");i1(this.zm)&&dz(this.zm,Infinity,!0);bJo(this.EO.get())&&K4(this.S,Infinity,!0);break;case "engagedview":i1(this.zm)||this.zm.ZN("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:hF("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.L.onVolumeChange=function(){}; g.L.U2=function(){}; g.L.A5=function(){}; g.L.iX=function(){}; g.L.onFullscreenToggled=function(){}; g.L.Kv=function(){}; g.L.J3=function(){}; g.L.NC=function(p){bJo(this.EO.get())&&K4(this.S,p*1E3,!1);i1(this.zm)&&dz(this.zm,p*1E3,!1)}; g.L.o7=function(){}; g.L.oz=function(){this.zm.ZN("active_view_measurable")}; g.L.qD=function(){this.zm.ZN("active_view_viewable")}; g.L.ZW=function(){this.zm.ZN("active_view_fully_viewable_audible_half_duration")}; g.L.ix=function(){this.zm.ZN("audio_measurable")}; g.L.Jy=function(){this.zm.ZN("audio_audible")};g.A(nz,bT);g.L=nz.prototype;g.L.init=function(){bT.prototype.init.call(this);var p=PE(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),a={adsClientData:this.layout.nx};this.L.push(new QP(p,this.layout.layoutId,PE(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),a,!0))}; g.L.DH=function(){this.j||this.sO.get().resumeVideo(1)}; g.L.startRendering=function(p){bT.prototype.startRendering.call(this,p);UH(this.sO.get(),"ad-showing");this.callback.Pa(this.slot,p);this.W.Na=this}; g.L.NE=function(p,a){bT.prototype.NE.call(this,p,a);m0(this.sO.get(),"ad-showing");DH(this.W,this)}; g.L.yh=function(p){switch(p){case "ad-info-icon-button":(this.j=this.sO.get().xr(1))||this.sO.get().pauseVideo();break;case "visit-advertiser":this.sO.get().pauseVideo()}}; g.L.fz=function(){bT.prototype.fz.call(this)};g.A(aAM,wt);g.A(ayE,bT);g.L=ayE.prototype;g.L.startRendering=function(p){LD(this.zm,this.iM(),this.J9(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(a,l,y,S,n){return new aAM(a,l,y,S,n)},this.L); bT.prototype.startRendering.call(this,p)}; g.L.Pa=function(){}; g.L.Dy=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.fz=function(){h0(this.Ye(),this);bT.prototype.fz.call(this)}; g.L.yh=function(){};g.A(LUv,wt);g.A(ZH,bT);ZH.prototype.init=function(){bT.prototype.init.call(this);this.L.push(new LUv(g.T(this.layout.renderingContent,Sxf),this.layout.layoutId,{adsClientData:this.layout.nx}))}; ZH.prototype.yh=function(){S6(this.j.get(),this.W)&&dy(this.uT.get(),3)}; ZH.prototype.startRendering=function(p){bT.prototype.startRendering.call(this,p);this.callback.Pa(this.slot,p)}; ZH.prototype.fz=function(){bT.prototype.fz.call(this)};g.A(Wn,wt);g.A(yu,bT);yu.prototype.init=function(){bT.prototype.init.call(this);var p=g.T(this.layout.renderingContent,lp)||PE(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),a=$G(this.zm);this.L.push(new Wn(p,a,this.layout.layoutId,{adsClientData:this.layout.nx},!0,!0))}; yu.prototype.startRendering=function(p){bT.prototype.startRendering.call(this,p);this.callback.Pa(this.slot,p)}; yu.prototype.yh=function(p,a){if(a===this.layout.layoutId)switch(p){case "skip-button":var l;(p=(l=PE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:l.current)&&p.KG(this.iM(),this.layout)}}; yu.prototype.fz=function(){bT.prototype.fz.call(this)};eZ.prototype.build=function(p,a,l,y){if(W2(y,{XX:["metadata_type_ad_break_response_data"],OE:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new l6r(p,l,y,this.S,this.U,this.L);throw new Xd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+XL(y.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.A(Wtv,wt);g.A(lh,bT);g.L=lh.prototype;g.L.yh=function(p,a){z$("ads-engagement-panel",p,this.G.get().WG,this.uT.get(),this.j,this.W,this.iM(),this.J9(),a)}; g.L.startRendering=function(p){LD(this.zm,this.iM(),this.J9(),g.T(this.J9().renderingContent,Uv),this.callback,"metadata_type_ads_engagement_panel_renderer",function(a,l,y,S,n){return new Wtv(a,l,y,S,n)},this.L); bT.prototype.startRendering.call(this,p)}; g.L.Pa=function(p,a){a.layoutId===this.layout.layoutId?this.zm.ZN("impression"):this.W===a.layoutId&&(this.j===null?this.j=this.uT.get().Wl():hF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Dy=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.fz=function(){h0(this.Ye(),this);bT.prototype.fz.call(this)};g.A(bxr,bT);g.L=bxr.prototype;g.L.yh=function(p,a){z$("top-banner-image-text-icon-buttoned",p,this.G.get().WG,this.uT.get(),this.j,this.W,this.iM(),this.J9(),a)}; g.L.startRendering=function(p){LD(this.zm,this.iM(),this.J9(),g.T(this.J9().renderingContent,KKA),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(a,l,y,S,n){return new aAM(a,l,y,S,n)},this.L); bT.prototype.startRendering.call(this,p)}; g.L.Pa=function(p,a){this.W===a.layoutId&&(this.j===null?this.j=this.uT.get().Wl():hF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Dy=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.fz=function(){h0(this.Ye(),this);bT.prototype.fz.call(this)};pth.prototype.build=function(p,a,l,y){if(W2(y,IAO())||g.T(y.renderingContent,Uv)!==void 0)return new lh(p,l,y,this.X7,this.uT,this.Ye,this.dG,this.L);if(W2(y,Ble())||g.T(y.renderingContent,QV)!==void 0)return new uT(p,l,y,this.X7,this.uT,this.Ye,this.dG,this.L);if(W2(y,ezM())||g.T(y.renderingContent,hE)!==void 0)return new p_(p,l,y,this.X7,this.uT,this.Ye,this.dG,this.L);if(W2(y,Z9r()))return new NR(p,l,y,this.X7,this.uT,this.Ye,this.dG,this.L);if(W2(y,asE()))return new vdq(p,l,y,this.X7,this.uT, this.Ye,this.dG,this.L);if(W2(y,mfc())||g.T(y.renderingContent,v5f)!==void 0)return new NmA(p,l,y,this.X7,this.uT,this.Ye,this.dG,this.L);if(W2(y,UHM())||g.T(y.renderingContent,KKA)!==void 0)return new bxr(p,l,y,this.X7,this.uT,this.Ye,this.dG,this.L);if(W2(y,NGW()))return new ayE(p,l,y,this.X7,this.uT,this.Ye,this.dG,this.L);if(W2(y,XCr())||g.T(y.renderingContent,euh)!==void 0)return new i9F(p,l,y,this.X7,this.uT,this.Ye,this.dG,this.L);throw new Xd("Unsupported layout with type: "+y.layoutType+ " and client metadata: "+XL(y.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};DCO.prototype.build=function(p,a,l,y){if(W2(y,{XX:["metadata_type_linked_player_bytes_layout_id"],OE:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new ZH(p,l,y,this.X7,this.uT,this.L);throw new Xd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+XL(y.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.L=BoA.prototype;g.L.iM=function(){return this.slot}; g.L.J9=function(){return this.layout}; g.L.init=function(){}; g.L.release=function(){}; g.L.startRendering=function(p){p.layoutId!==this.layout.layoutId?this.callback.N2(this.slot,p,new Xd("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.Pa(this.slot,p),this.zm.ZN("impression"),PO(this.Z1,p,"normal"))}; g.L.NE=function(p,a){p.layoutId!==this.layout.layoutId?this.callback.N2(this.slot,p,new Xd("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.Dy(this.slot,p,a)};g.L=kzZ.prototype;g.L.iM=function(){return this.slot}; g.L.J9=function(){return this.layout}; g.L.init=function(){}; g.L.release=function(){}; g.L.startRendering=function(p){p.layoutId!==this.layout.layoutId?this.callback.N2(this.slot,p,new Xd("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.Pa(this.slot,p),this.zm.ZN("impression"),PO(this.Z1,p,"normal"))}; g.L.NE=function(p,a){p.layoutId!==this.layout.layoutId?this.callback.N2(this.slot,p,new Xd("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.Dy(this.slot,p,a)};bv.prototype.build=function(p,a,l,y){if(!this.EO.get().B.C().D("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(W2(y,zXO()))return new BoA(p,l,y,this.uT,this.Z1)}else if(W2(y,{XX:[],OE:["LAYOUT_TYPE_FORECASTING"]}))return new kzZ(p,l,y,this.uT,this.Z1);throw new Xd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+XL(y.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.A(zwM,wt);g.A(aw,bT);g.L=aw.prototype;g.L.init=function(){bT.prototype.init.call(this);var p=g.T(this.layout.renderingContent,pz)||PE(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),a={adsClientData:this.layout.nx};this.L.push(new zwM(p,PE(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,a))}; g.L.DH=function(){this.j||this.sO.get().resumeVideo(2)}; g.L.startRendering=function(p){bT.prototype.startRendering.call(this,p);this.callback.Pa(this.slot,p);this.W.Na=this}; g.L.NE=function(p,a){bT.prototype.NE.call(this,p,a);DH(this.W,this)}; g.L.yh=function(p,a){if(!s1(this.EO.get(),"stop_handling_click_for_non_rendering_overlay_layout")||a===this.layout.layoutId){if(S6(this.G.get(),this.K))switch(p){case "visit-advertiser-link":dy(this.uT.get(),3)}switch(p){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.sO.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.sO.get().xr(2))||this.sO.get().pauseVideo();break; case "visit-advertiser-link":this.sO.get().pauseVideo();Dqr(this).cP();break;case "skip-button":if(p=Dqr(this),this.layout.renderingContent&&!Q5(this.layout.clientMetadata,"metadata_type_dai")||!p||!p.KF){var l;(p=(l=PE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:l.current)&&p.KG(this.iM(),this.layout)}else hF("Requesting to skip by LegacyPlayerBytes when components enabled"),p.Cy(this.iM(),this.layout)}}}; g.L.fz=function(){bT.prototype.fz.call(this)};g.A(fj,bT);g.L=fj.prototype;g.L.init=function(){bT.prototype.init.call(this);var p=g.T(this.layout.renderingContent,Jr)||PE(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),a={adsClientData:this.layout.nx},l;(l=!!this.layout.renderingContent)||(l=QY(this),l=!(l&&l.KF));this.L.push(new QP(p,this.layout.layoutId,PE(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),a,l))}; g.L.DH=function(){this.j||this.sO.get().resumeVideo(2)}; g.L.startRendering=function(p){bT.prototype.startRendering.call(this,p);this.callback.Pa(this.slot,p);this.W.Na=this}; g.L.NE=function(p,a){bT.prototype.NE.call(this,p,a);DH(this.W,this)}; g.L.yh=function(p,a){if(!this.EO||!s1(this.EO.get(),"stop_handling_click_for_non_rendering_overlay_layout")||a===this.layout.layoutId){if(S6(this.G.get(),this.K))switch(p){case "visit-advertiser":dy(this.uT.get(),3)}switch(p){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.sO.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.sO.get().xr(2))||this.sO.get().pauseVideo();break; case "visit-advertiser":this.sO.get().pauseVideo();QY(this).cP();break;case "skip-button":if(p=QY(this),this.layout.renderingContent&&!Q5(this.layout.clientMetadata,"metadata_type_dai")||!p||!p.KF){var l;(p=(l=PE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:l.current)&&p.KG(this.iM(),this.layout)}else hF("Requesting to skip by LegacyPlayerBytes"),p.Cy(this.iM(),this.layout)}}}; g.L.fz=function(){bT.prototype.fz.call(this)};g.A(kq8,wt);g.A(Sk,bT);g.L=Sk.prototype;g.L.startRendering=function(p){var a=this;iJ(this.S,p,function(){a.L.push(new kq8(PE(a.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),p.layoutId,p.nx));a.WS();a.callback.Pa(a.slot,p);g.h(Lv(a.sO.get(),1),512)&&a.callback.N2(a.iM(),a.J9(),new Xd("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.L.J3=function(){}; g.L.Kv=function(p){if(p.state.isError()){var a;this.callback.N2(this.iM(),this.J9(),new Xd("A player error happened during adNotify",{playerErrorCode:(a=p.state.iN)==null?void 0:a.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.L.onFullscreenToggled=function(){}; g.L.A5=function(){}; g.L.iX=function(){}; g.L.U2=function(){}; g.L.onVolumeChange=function(){}; g.L.cG=function(){}; g.L.o7=function(){}; g.L.yh=function(){};g.A(IGM,wt);g.A(Za,bT);Za.prototype.init=function(){bT.prototype.init.call(this);var p=g.T(this.layout.renderingContent,Vu),a=$G(this.zm);this.L.push(new IGM(p,a,this.layout.layoutId,{adsClientData:this.layout.nx}))}; Za.prototype.startRendering=function(p){bT.prototype.startRendering.call(this,p);this.callback.Pa(this.slot,p)}; Za.prototype.yh=function(p,a){if(a===this.layout.layoutId)switch(p){case "skip-button":var l;(p=(l=PE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:l.current)&&p.KG(this.iM(),this.layout)}}; Za.prototype.fz=function(){bT.prototype.fz.call(this)};Mxr.prototype.build=function(p,a,l,y){if(p=ow(p,l,y,this.X7,this.sO,this.uT,this.S,this.L,this.EO))return p;throw new Xd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+XL(y.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.L=D8.prototype;g.L.iM=function(){return this.slot}; g.L.J9=function(){return this.layout}; g.L.init=function(){this.sO.get().addListener(this);this.sO.get().Ny.push(this);if(this.layout.renderingContent){var p=this.ac.get();p=uo(p,1).r9/1E3}else p=PE(this.layout.clientMetadata,"metadata_type_video_length_seconds");var a=g.T(this.layout.renderingContent,DG),l=a?HQ(a.pings):PE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");a=a?atA(a.pings):PE(this.layout.clientMetadata,"metadata_type_active_view_identifier");BF(this.layout.Xh)&&X0(this.dG.get(),this.layout.layoutId, {Yp:l,Tq:p,listener:this,rb:a})}; g.L.release=function(){this.sO.get().removeListener(this);hde(this.sO.get(),this);BF(this.layout.Xh)&&fi(this.dG.get(),this.layout.layoutId)}; g.L.startRendering=function(p){this.callback.Pa(this.slot,p)}; g.L.NE=function(p,a){JM(this,"abandon");this.callback.Dy(this.slot,p,a)}; g.L.cG=function(p){switch(p.id){case "part2viewed":this.zm.ZN("start");this.zm.ZN("impression");break;case "videoplaytime25":this.zm.ZN("first_quartile");break;case "videoplaytime50":this.zm.ZN("midpoint");break;case "videoplaytime75":this.zm.ZN("third_quartile");break;case "videoplaytime100":JM(this,"complete");i1(this.zm)&&dz(this.zm,Infinity,!0);break;case "engagedview":i1(this.zm)||this.zm.ZN("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:hF("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.L.onVolumeChange=function(){}; g.L.U2=function(){}; g.L.A5=function(){}; g.L.iX=function(){}; g.L.onFullscreenToggled=function(){}; g.L.Kv=function(p){this.L||(g.mj(p,4)&&!g.mj(p,2)?ma(this.zm,"pause"):He(p,4)<0&&!(He(p,2)<0)&&ma(this.zm,"resume"))}; g.L.J3=function(){}; g.L.NC=function(p){i1(this.zm)&&dz(this.zm,p*1E3,!1)}; g.L.o7=function(){JM(this,"swipe")}; g.L.oz=function(){this.zm.ZN("active_view_measurable")}; g.L.qD=function(){this.zm.ZN("active_view_viewable")}; g.L.ZW=function(){this.zm.ZN("active_view_fully_viewable_audible_half_duration")}; g.L.ix=function(){this.zm.ZN("audio_measurable")}; g.L.Jy=function(){this.zm.ZN("audio_audible")};Nor.prototype.build=function(p,a,l,y){if(l.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.T(y.renderingContent,DG)!==void 0)return new D8(p,l,y,this.sO,this.uT,this.EO,this.dG,this.ac);a=["metadata_type_ad_placement_config"];for(var S=g.t(CU()),n=S.next();!n.done;n=S.next())a.push(n.value);if(W2(y,{XX:a,OE:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return l.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new D8(p,l,y,this.sO,this.uT,this.EO,this.dG,this.ac):new L_f(p,l,y,this.sO,this.uT, this.uM,this.EO,this.dG);throw new Xd("Unsupported layout with type: "+y.layoutType+" and client metadata: "+XL(y.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var xQ={contentCpn:"",Pr:new Map};c5E.prototype.wG=function(p,a){var l={};a=Object.assign({},a,(l.cc=this.Y3.sM(),l));this.Y3.B.jl(p,a)};var zpB,tR; zpB={GDm:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",m0I:"AUTHENTICATION_MALFORMED",N4u:"AUTHENTICATION_MISSING",S2m:"BAD_REQUEST",wGV:"CAST_SESSION_DEVICE_MISMATCHED",dbT:"CAST_SESSION_VIDEO_MISMATCHED",WMs:"CAST_TOKEN_EXPIRED",gfs:"CAST_TOKEN_FAILED",bCO:"CAST_TOKEN_MALFORMED",Bdz:"CGI_PARAMS_MALFORMED",Q7v:"CGI_PARAMS_MISSING",z3z:"DEVICE_FALLBACK",bou:"GENERIC_WITH_LINK_AND_CPN",Bhu:"ERROR_HDCP",Q1O:"LICENSE",ll7:"VIDEO_UNAVAILABLE",vzT:"FORMAT_UNAVAILABLE",MoI:"GEO_FAILURE", CkT:"HTML5_AUDIO_RENDERER_ERROR",FEs:"GENERIC_WITHOUT_LINK",hWm:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",m7c:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",NhV:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",YsI:"HTML5_SPS_UMP_STATUS_REJECTED",wo7:"INVALID_DRM_MESSAGE",NAv:"PURCHASE_NOT_FOUND",YiY:"PURCHASE_REFUNDED",trc:"RENTAL_EXPIRED",Tpm:"RETRYABLE_ERROR",or7:"SERVER_ERROR",m9T:"SIGNATURE_EXPIRED",Xkm:"STOPPED_BY_ANOTHER_PLAYBACK",yDz:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",fET:"STREAMING_NOT_ALLOWED", eps:"STREAM_LICENSE_NOT_FOUND",QKT:"TOO_MANY_REQUESTS",DRs:"TOO_MANY_REQUESTS_WITH_LINK",lEm:"TOO_MANY_STREAMS_PER_ENTITLEMENT",sK9:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",qpc:"VIDEO_FORBIDDEN",OE7:"VIDEO_NOT_FOUND",fbO:"BROWSER_OR_EXTENSION_ERROR"};tR={}; g.pp=(tR.ALREADY_PINNED_ON_A_DEVICE="Ya has descargado este v\u00eddeo en el n\u00famero m\u00e1ximo de dispositivos que permite el propietario de los derechos de autor. Tienes que eliminarlo de otro dispositivo para poder verlo en este.",tR.DEVICE_FALLBACK="Este v\u00eddeo no est\u00e1 disponible en este dispositivo.",tR.GENERIC_WITH_LINK_AND_CPN="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde. (ID de reproducci\u00f3n: $CPN) $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",tR.LICENSE= "Se ha producido un error de licencia con este v\u00eddeo.",tR.VIDEO_UNAVAILABLE="El v\u00eddeo no est\u00e1 disponible",tR.FORMAT_UNAVAILABLE="Este v\u00eddeo no est\u00e1 disponible en esa calidad. Vuelve a intentarlo.",tR.GEO_FAILURE="Este v\u00eddeo no est\u00e1 disponible en tu pa\u00eds.",tR.HTML5_AUDIO_RENDERER_ERROR="No se ha podido procesar el audio. Reinicia tu ordenador.",tR.GENERIC_WITHOUT_LINK="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.",tR.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de v\u00eddeo.",tR.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Tu navegador no reconoce ninguno de los formatos de v\u00eddeo disponibles por el momento. $BEGIN_LINKHaz clic aqu\u00ed para consultar las preguntas frecuentes sobre el v\u00eddeo HTML5$END_LINK.",tR.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Este navegador no puede reproducir este v\u00eddeo. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",tR.HTML5_SPS_UMP_STATUS_REJECTED="Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", tR.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico del sistema DRM no es v\u00e1lido.",tR.PURCHASE_NOT_FOUND="Este v\u00eddeo es de pago.",tR.PURCHASE_REFUNDED="Te hemos devuelto el importe de este v\u00eddeo.",tR.RENTAL_EXPIRED="El periodo de alquiler de este v\u00eddeo ha finalizado.",tR.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo de la transmisi\u00f3n no coincide con el solicitado.",tR.CAST_SESSION_VIDEO_MISMATCHED="El v\u00eddeo de la transmisi\u00f3n no coincide con el solicitado.",tR.CAST_TOKEN_FAILED= "La transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",tR.CAST_TOKEN_EXPIRED="La transmisi\u00f3n ha caducado. Actualiza la p\u00e1gina.",tR.CAST_TOKEN_MALFORMED="La transmisi\u00f3n no es v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",tR.SERVER_ERROR="Se ha producido un error en el servidor interno. Vuelve a intentarlo m\u00e1s tarde.",tR.STOPPED_BY_ANOTHER_PLAYBACK="Tu cuenta est\u00e1 reproduciendo este v\u00eddeo en otra ubicaci\u00f3n. Vuelve a cargar esta p\u00e1gina para reanudar la reproducci\u00f3n.", tR.STREAM_LICENSE_NOT_FOUND="Se ha interrumpido la reproducci\u00f3n del v\u00eddeo. Vuelve a intentarlo.",tR.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="En un periodo de 24 horas se han utilizado demasiados dispositivos o direcciones IP.",tR.STREAMING_NOT_ALLOWED="No se permite la reproducci\u00f3n porque el v\u00eddeo est\u00e1 fijado a otro dispositivo.",tR.RETRYABLE_ERROR="Se ha producido un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.",tR.TOO_MANY_REQUESTS="Inicia sesi\u00f3n para ver este v\u00eddeo.", tR.TOO_MANY_REQUESTS_WITH_LINK="Haz clic en $BEGIN_LINKeste enlace$END_LINK para ver este v\u00eddeo en YouTube.",tR.TOO_MANY_STREAMS_PER_USER="Se ha detenido la reproducci\u00f3n porque se est\u00e1n viendo demasiados v\u00eddeos de la misma cuenta.",tR.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se ha detenido la reproducci\u00f3n porque el v\u00eddeo se ha visto en demasiados dispositivos.",tR.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.",tR.VIDEO_FORBIDDEN="El acceso a este v\u00eddeo est\u00e1 prohibido.", tR.VIDEO_NOT_FOUND="No es posible encontrar este v\u00eddeo.",tR.BROWSER_OR_EXTENSION_ERROR="Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",tR);var dwc;var GF2=g.yI(),BJc=GF2.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!BJc||BJc.length<2)dwc=void 0;else{var cFM=GF2.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);dwc=cFM&&cFM.length===6?Number(cFM[5].replace("_",".")):0}var Ut=dwc,Nr=Ut>=0;g.A(g.hm,FM);g.hm.prototype.J=function(p,a,l,y,S){return FM.prototype.J.call(this,p,a,l,y,S)};var j9={},Eof=(j9.FAIRPLAY="fairplay",j9.PLAYREADY="playready",j9.WIDEVINE="widevine",j9.CLEARKEY=null,j9.FLASHACCESS=null,j9.UNKNOWN=null,j9.WIDEVINE_CLASSIC=null,j9);dx.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Ww={},Dt=(Ww.WIDTH={name:"width",video:!0,valid:640,t4:99999},Ww.HEIGHT={name:"height",video:!0,valid:360,t4:99999},Ww.FRAMERATE={name:"framerate",video:!0,valid:30,t4:9999},Ww.BITRATE={name:"bitrate",video:!0,valid:3E5,t4:2E9},Ww.EOTF={name:"eotf",video:!0,valid:"bt709",t4:"catavision"},Ww.CHANNELS={name:"channels",video:!1,valid:2,t4:99},Ww.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",t4:"invalidformat"},Ww.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", t4:"nope"},Ww.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",t4:"av99.0.05M.08"},Ww.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",t4:"invalid"},Ww.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",t4:"false"},Ww);var rFc=["h","H"],wvK=["9","("],$wU=["9h","(h"],P8W=["8","*"],Lm8=["a","A"],Xv8=["o","O"],xw1=["m","M"],Fmc=["mac3","MAC3"],Ep8=["meac3","MEAC3"],Hw={},TU$=(Hw.h=rFc,Hw.H=rFc,Hw["9"]=wvK,Hw["("]=wvK,Hw["9h"]=$wU,Hw["(h"]=$wU,Hw["8"]=P8W,Hw["*"]=P8W,Hw.a=Lm8,Hw.A=Lm8,Hw.o=Xv8,Hw.O=Xv8,Hw.m=xw1,Hw.M=xw1,Hw.mac3=Fmc,Hw.MAC3=Fmc,Hw.meac3=Ep8,Hw.MEAC3=Ep8,Hw),C8a=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),jQq=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var q={},lw=(q["0"]="f",q["160"]="h",q["133"]="h",q["134"]="h",q["135"]="h",q["136"]="h",q["137"]="h",q["264"]="h",q["266"]="h",q["138"]="h",q["298"]="h",q["299"]="h",q["304"]="h",q["305"]="h",q["214"]="h",q["216"]="h",q["374"]="h",q["375"]="h",q["140"]="a",q["141"]="a",q["327"]="sa",q["258"]="m",q["380"]="mac3",q["328"]="meac3",q["161"]="H",q["142"]="H",q["143"]="H",q["144"]="H",q["222"]="H",q["223"]="H",q["145"]="H",q["224"]="H",q["225"]="H",q["146"]="H",q["226"]="H",q["227"]="H",q["147"]="H",q["384"]= "H",q["376"]="H",q["385"]="H",q["377"]="H",q["149"]="A",q["261"]="M",q["381"]="MAC3",q["329"]="MEAC3",q["598"]="9",q["278"]="9",q["242"]="9",q["243"]="9",q["244"]="9",q["775"]="9",q["776"]="9",q["777"]="9",q["778"]="9",q["779"]="9",q["780"]="9",q["781"]="9",q["782"]="9",q["783"]="9",q["247"]="9",q["248"]="9",q["353"]="9",q["355"]="9",q["356"]="9",q["271"]="9",q["577"]="9",q["313"]="9",q["579"]="9",q["272"]="9",q["302"]="9",q["303"]="9",q["407"]="9",q["408"]="9",q["308"]="9",q["315"]="9",q["330"]= "9h",q["331"]="9h",q["332"]="9h",q["333"]="9h",q["334"]="9h",q["335"]="9h",q["336"]="9h",q["337"]="9h",q["338"]="so",q["600"]="o",q["250"]="o",q["251"]="o",q["774"]="o",q["194"]="*",q["195"]="*",q["220"]="*",q["221"]="*",q["196"]="*",q["197"]="*",q["279"]="(",q["280"]="(",q["317"]="(",q["318"]="(",q["273"]="(",q["274"]="(",q["357"]="(",q["358"]="(",q["275"]="(",q["359"]="(",q["360"]="(",q["276"]="(",q["583"]="(",q["584"]="(",q["314"]="(",q["585"]="(",q["561"]="(",q["277"]="(",q["361"]="(h",q["362"]= "(h",q["363"]="(h",q["364"]="(h",q["365"]="(h",q["366"]="(h",q["591"]="(h",q["592"]="(h",q["367"]="(h",q["586"]="(h",q["587"]="(h",q["368"]="(h",q["588"]="(h",q["562"]="(h",q["409"]="(",q["410"]="(",q["411"]="(",q["412"]="(",q["557"]="(",q["558"]="(",q["394"]="1",q["395"]="1",q["396"]="1",q["397"]="1",q["398"]="1",q["399"]="1",q["720"]="1",q["721"]="1",q["400"]="1",q["401"]="1",q["571"]="1",q["402"]="1",q["694"]="1h",q["695"]="1h",q["696"]="1h",q["697"]="1h",q["698"]="1h",q["699"]="1h",q["700"]="1h", q["701"]="1h",q["702"]="1h",q["703"]="1h",q["386"]="3",q["387"]="w",q["406"]="6",q["787"]="1",q["788"]="1",q["548"]="1e",q["549"]="1e",q["550"]="1e",q["551"]="1e",q["809"]="1e",q["810"]="1e",q["552"]="1e",q["811"]="1e",q["812"]="1e",q["553"]="1e",q["813"]="1e",q["814"]="1e",q["554"]="1e",q["815"]="1e",q["816"]="1e",q["555"]="1e",q["817"]="1e",q["818"]="1e",q["572"]="1e",q["556"]="1e",q["645"]="(",q["646"]="(",q["647"]="(",q["648"]="(",q["649"]="(",q["650"]="(",q["651"]="(",q["652"]="(",q["653"]="(", q["654"]="(",q["655"]="(",q["656"]="(",q["657"]="(",q["658"]="(",q["659"]="(",q["660"]="(",q["661"]="(",q["662"]="(",q["663"]="(",q["664"]="(",q["665"]="(",q["666"]="(",q["667"]="(",q["668"]="(",q["669"]="(",q["670"]="(",q["671"]="(",q["672"]="(",q["673"]="(",q["674"]="(h",q["675"]="(h",q["676"]="(h",q["677"]="(h",q["678"]="(h",q["679"]="(h",q["680"]="(h",q["681"]="(h",q["682"]="(h",q["683"]="(h",q["684"]="(h",q["685"]="(h",q["686"]="(h",q["687"]="(h",q["688"]="A",q["689"]="A",q["690"]="A",q["691"]= "MEAC3",q["773"]="i",q["806"]="I",q["805"]="I",q["829"]="9",q["830"]="9",q["831"]="9",q["832"]="9",q["833"]="9",q["834"]="9",q["835"]="9",q["836"]="9",q["892"]="9",q["893"]="9",q["837"]="9",q["838"]="9",q["839"]="9",q["840"]="9",q["841"]="(",q["842"]="(",q["843"]="(",q["844"]="(",q["845"]="(",q["846"]="(",q["847"]="(",q["848"]="(",q["894"]="(",q["895"]="(",q["849"]="(",q["850"]="(",q["851"]="(",q["852"]="(",q["865"]="9",q["866"]="9",q["867"]="9",q["868"]="9",q["869"]="9",q["870"]="9",q["871"]="9", q["872"]="9",q["896"]="9",q["897"]="9",q["873"]="9",q["874"]="9",q["875"]="9",q["876"]="9",q["877"]="(",q["878"]="(",q["879"]="(",q["880"]="(",q["881"]="(",q["882"]="(",q["883"]="(",q["884"]="(",q["898"]="(",q["899"]="(",q["885"]="(",q["886"]="(",q["887"]="(",q["888"]="(",q);var Df={},Xhr=(Df.STEREO_LAYOUT_UNKNOWN=0,Df.STEREO_LAYOUT_LEFT_RIGHT=1,Df.STEREO_LAYOUT_TOP_BOTTOM=2,Df);var hBr={srv:0,ywT:124,X1O:144,Er9:220,eYO:240,d9z:340,w1T:360,WG9:480,Bpz:588,b9v:608,Qru:720,D9O:740,S9m:1080,U9T:1100,jrv:1440,fUm:2160,lU7: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 i$,pG,Tm,FIe;i$={};g.T9=(i$.auto=0,i$.tiny=144,i$.light=144,i$.small=240,i$.medium=360,i$.large=480,i$.hd720=720,i$.hd1080=1080,i$.hd1440=1440,i$.hd2160=2160,i$.hd2880=2880,i$.highres=4320,i$);pG={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Tm={}; FIe=(Tm.QUALITY_ORDINAL_UNKNOWN=0,Tm.QUALITY_ORDINAL_144P_SAVER=124,Tm.QUALITY_ORDINAL_144P=144,Tm.QUALITY_ORDINAL_240P_SAVER=220,Tm.QUALITY_ORDINAL_240P=240,Tm.QUALITY_ORDINAL_360P_SAVER=340,Tm.QUALITY_ORDINAL_360P=360,Tm.QUALITY_ORDINAL_480P=480,Tm.QUALITY_ORDINAL_608P_SAVER=588,Tm.QUALITY_ORDINAL_608P=608,Tm.QUALITY_ORDINAL_720P=720,Tm.QUALITY_ORDINAL_720P_ENHANCED=740,Tm.QUALITY_ORDINAL_1080P=1080,Tm.QUALITY_ORDINAL_1080P_ENHANCED=1100,Tm.QUALITY_ORDINAL_1440P=1440,Tm.QUALITY_ORDINAL_2160P=2160, Tm.QUALITY_ORDINAL_HIGHRES=9999,Tm);var vF="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");HT.prototype.isHdr=function(){return this.L==="smpte2084"||this.L==="arib-std-b67"};WT.prototype.EQ=function(){return this.containerType===2}; WT.prototype.isEncrypted=function(){return!!this.Hy}; WT.prototype.Qh=function(){return!!this.audio}; WT.prototype.HX=function(){return!!this.video}; var jk=!1;g.A(RV,g.qu);g.L=RV.prototype;g.L.appendBuffer=function(p,a,l){if(this.j5.Gu()!==this.appendWindowStart+this.start||this.j5.qP()!==this.appendWindowEnd+this.start||this.j5.Jg()!==this.timestampOffset+this.start)this.j5.supports(1),this.j5.o0(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.j5.y5(this.timestampOffset+this.start);this.j5.appendBuffer(p,a,l)}; g.L.abort=function(){this.j5.abort()}; g.L.remove=function(p,a){this.j5.remove(p+this.start,a+this.start)}; g.L.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.L.clear=function(){this.j5.clear()}; g.L.o0=function(p,a){this.appendWindowStart=p;this.appendWindowEnd=a}; g.L.BJ=function(){return this.timestampOffset+this.start}; g.L.Gu=function(){return this.appendWindowStart}; g.L.qP=function(){return this.appendWindowEnd}; g.L.y5=function(p){this.timestampOffset=p}; g.L.Jg=function(){return this.timestampOffset}; g.L.ea=function(p){p=this.j5.ea(p===void 0?!1:p);return TZ(p,this.start,this.end)}; g.L.r3=function(){return this.j5.r3()}; g.L.g5=function(){return this.j5.g5()}; g.L.uK=function(){return this.j5.uK()}; g.L.Nl=function(){return this.j5.Nl()}; g.L.AT=function(){this.j5.AT()}; g.L.j3=function(p){return this.j5.j3(p)}; g.L.rK=function(){return this.j5.rK()}; g.L.hY=function(){return this.j5.hY()}; g.L.oC=function(p,a,l){this.j5.oC(p,a,l)}; g.L.qZ=function(p,a,l){this.j5.qZ(p,a,l)}; g.L.v6=function(p,a){return this.j5.v6(p,a)}; g.L.supports=function(p){return this.j5.supports(p)}; g.L.NP=function(){return this.j5.NP()}; g.L.isView=function(){return!0}; g.L.Vo=function(){return this.j5.Vo()?this.isActive:!1}; g.L.isLocked=function(){return this.cz&&!this.isActive}; g.L.mS=function(p){p=this.j5.mS(p);p.vw=this.start+"-"+this.end;return p}; g.L.mq=function(){return this.j5.mq()}; g.L.Z8=function(){return this.j5.Z8()}; g.L.fb=function(){return this.j5.fb()}; g.L.fz=function(){this.j5.dM(this.Lu);g.qu.prototype.fz.call(this)};var EF=!1;g.A(tj,g.qu);g.L=tj.prototype;g.L.appendBuffer=function(p,a,l){this.qy=!1;l&&(this.Zh=l);if(p.length){var y;((y=this.Io)==null?0:y.appendBuffer)?this.Io.appendBuffer(p):this.Io?this.Io.append(p):this.uN&&this.uN.webkitSourceAppend(this.id,p)}a&&(a.isEncrypted()&&(this.DG=this.Zh),a.type===3&&(this.Fz=a),this.JB.push(a.AP()),this.JB.length>4&&this.JB.shift());this.IL&&(this.IL.length>=2||p.length>1048576?delete this.IL:this.IL.push(p))}; g.L.abort=function(){try{this.Io?this.Io.abort():this.uN&&this.uN.webkitSourceAbort(this.id)}catch(a){if(bSr){var p=new g.kc("Error while abort the source buffer: "+a.name+", "+a.message);g.iO(p)}}this.Zh=this.Fz=null}; g.L.remove=function(p,a,l){this.qy=!1;var y;if((y=this.Io)==null?0:y.remove)l&&l({b:jS(this.ea()),s:p,e:a}),this.Io.remove(p,a)}; g.L.removeAll=function(){this.remove(this.Gu(),this.qP())}; g.L.clear=function(){this.uK()||(this.abort(),this.removeAll(),this.DG=this.Zh=this.Fz=null,this.appendWindowStart=this.timestampOffset=0,this.BY=fe([],[]),this.qy=!1,this.IL=mA?[]:void 0,this.Y_=!0)}; g.L.Gu=function(){if(EF&&this.HX)return this.appendWindowStart;var p;return((p=this.Io)==null?void 0:p.appendWindowStart)||0}; g.L.qP=function(){var p;return((p=this.Io)==null?void 0:p.appendWindowEnd)||0}; g.L.o0=function(p,a){this.Io&&(EF&&this.HX?(this.appendWindowStart=p,this.Io.appendWindowEnd=a):p>this.Gu()?(this.Io.appendWindowEnd=a,this.Io.appendWindowStart=p):(this.Io.appendWindowStart=p,this.Io.appendWindowEnd=a))}; g.L.BJ=function(){return this.timestampOffset}; g.L.y5=function(p){EF?this.timestampOffset=p:this.supports(1)&&(this.Io.timestampOffset=p)}; g.L.Jg=function(){return EF?this.timestampOffset:this.supports(1)?this.Io.timestampOffset:0}; g.L.ea=function(p){if(p===void 0?0:p)return this.qy||this.r3()||(this.BY=this.ea(!1),this.qy=!0),this.BY;try{return this.Io?this.Io.buffered:this.uN?this.uN.webkitSourceBuffered(this.id):fe([0],[Infinity])}catch(a){return fe([],[])}}; g.L.r3=function(){var p;return((p=this.Io)==null?void 0:p.updating)||!1}; g.L.uK=function(){return this.Y_}; g.L.Nl=function(){return!this.Y_&&this.r3()}; g.L.AT=function(){this.Y_=!1}; g.L.j3=function(p){var a=p==null?void 0:p.h9;p=p==null?void 0:p.containerType;return!a&&!p||a===this.h9&&p===this.containerType}; g.L.rK=function(){return this.Zh}; g.L.hY=function(){return this.DG}; g.L.v6=function(p,a){return this.containerType!==p||this.h9!==a}; g.L.oC=function(p,a,l){if(this.containerType!==p||l&&this.v6(p,l))this.supports(4),MD()&&this.Io.changeType(a),l&&(this.h9=l);this.containerType=p}; g.L.qZ=function(p,a,l){this.containerType&&this.v6(p,a)&&MD()&&this.Io.changeType(l);this.containerType=p;this.h9=a}; g.L.NP=function(){return this.Fz}; g.L.isView=function(){return!1}; g.L.supports=function(p){switch(p){case 1:var a;return((a=this.Io)==null?void 0:a.timestampOffset)!==void 0;case 0:var l;return!((l=this.Io)==null||!l.appendBuffer);case 2:var y;return!((y=this.Io)==null||!y.remove);case 3:var S,n;return!!(((S=this.Io)==null?0:S.addEventListener)&&((n=this.Io)==null?0:n.removeEventListener));case 4:return!(!this.Io||!this.Io.changeType);default:return!1}}; g.L.Vo=function(){return!this.r3()}; g.L.isLocked=function(){return!1}; g.L.mS=function(p){p.to=this.Jg();p.up=this.r3();var a,l=((a=this.Io)==null?void 0:a.appendWindowStart)||0,y;a=((y=this.Io)==null?void 0:y.appendWindowEnd)||Infinity;p.aw=l.toFixed(3)+"-"+a.toFixed(3);return p}; g.L.g5=function(){var p;return((p=this.Io)==null?void 0:p.writeHead)||0}; g.L.mq=function(){for(var p={},a=0;a=7&&(!a||((y=this.Lz)==null?0:y.D("mweb_ios_allow_playback_workaround_when_ready")))&&s$h(this,function(){g.aY(function(){ZtE(p,p.getCurrentTime(),0)},500)})}return a}; g.L.seekTo=function(p){this.w3()>0&&(Nr&&Ut<4&&(p=Math.max(.1,p)),this.setCurrentTime(p))}; g.L.zf=function(){if(!this.S&&this.Ic)if(this.Ic.W)try{var p;$M(this,{l:"mer",sr:(p=this.Lz)==null?void 0:p.M3(),rs:B1(this.Ic)});this.Ic.clear();this.S=this.Ic;this.Ic=void 0}catch(a){p=new g.kc("Error while clearing Media Source in MediaElement: "+a.name+", "+a.message),g.iO(p),this.stopVideo()}else this.stopVideo()}; g.L.stopVideo=function(){var p=this;if(!this.S){var a;(a=this.Ic)==null||b2Z(a);if(vfA){if(!this.U){var l=new tV;l.then(void 0,function(){}); this.U=l;KbM&&this.pause();g.aY(function(){p.U===l&&(f9(p),l.resolve())},200)}}else f9(this)}}; g.L.HW=function(){var p=this.Vh();return m$(p)&&this.getDuration()?RX(p,this.getCurrentTime()):0}; g.L.I8=function(){var p=this.getDuration();return p===Infinity?1:p?this.HW()/p:0}; g.L.mS=function(){try{var p=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:jS(this.JH(),",",3),vbu:jS(this.Vh()),vbs:jS(this.SA()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.w3(),vns:""+this.S2(),vec:""+this.q3(),vemsg:this.XF(),vvol:""+this.getVolume(),vdom:""+ +this.YR(),vsrc:""+ +!!this.w4(),vw:""+p.width,vh:""+p.height}}catch(a){return{}}}; g.L.hasError=function(){return this.q3()>0}; g.L.addEventListener=function(p,a){this.j.listen(p,a,!1,this);this.QW(p)}; g.L.removeEventListener=function(p,a){this.j.ME(p,a,!1,this)}; g.L.dispatchEvent=function(p){if(this.U&&p.type==="pause")return!1;if(eth){var a,l=((a=p.L)==null?void 0:a.timeStamp)||Infinity;a=l>performance.now()?l-Date.now()+performance.now():l;l=this.S||this.Ic;if((l==null?0:l.uK())||a<=((l==null?void 0:l.G)||0)){var y;$M(this,{l:"mede",sr:(y=this.Lz)==null?void 0:y.M3(),et:p.type});return!1}if(this.t8)return $M(this,{l:"medes",et:p.type}),l&&p.type==="seeking"&&(l.G=performance.now(),this.t8=!1),!1}return this.j.dispatchEvent(p)}; g.L.g2=function(){this.K=!1}; g.L.fn=function(){this.K=!0;this.qk(!0)}; g.L.EX=function(){this.K&&!this.LF()&&this.qk(!0)}; g.L.equals=function(p){return!!p&&p.gG()===this.gG()}; g.L.fz=function(){this.Z&&this.removeEventListener("volumechange",this.EX);vfA&&f9(this);g.D.prototype.fz.call(this)}; var vfA=!1,KbM=!1,eth=!1,zJq=!1;g.L=g.Z5.prototype;g.L.isPaused=function(){return g.h(this,4)}; g.L.isPlaying=function(){return g.h(this,8)&&!g.h(this,512)&&!g.h(this,64)&&!g.h(this,2)}; g.L.isOrWillBePlaying=function(){return g.h(this,8)&&!g.h(this,2)&&!g.h(this,1024)}; g.L.isCued=function(){return g.h(this,64)&&!g.h(this,8)&&!g.h(this,4)}; g.L.isBuffering=function(){return g.h(this,1)&&!g.h(this,2)}; g.L.isError=function(){return g.h(this,128)}; g.L.isSuspended=function(){return g.h(this,512)}; g.L.hn=function(){return g.h(this,64)&&g.h(this,4)}; g.L.toString=function(){return"PSt."+this.state.toString(16)}; var N2={},sa=(N2.BUFFERING="buffering-mode",N2.CUED="cued-mode",N2.ENDED="ended-mode",N2.PAUSED="paused-mode",N2.PLAYING="playing-mode",N2.SEEKING="seeking-mode",N2.UNSTARTED="unstarted-mode",N2);g.A(NM,g.D);g.L=NM.prototype;g.L.M9=function(){return this.U}; g.L.iM=function(){return this.slot}; g.L.J9=function(){return this.layout}; g.L.init=function(){var p=PE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),a=PE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");BF(this.layout.Xh)&&X0(this.dG.get(),this.layout.layoutId,{Yp:a,Tq:p,listener:this,z2:this.lC()});xr(this.uT.get(),this);p=this.Pl;a=this.layout.layoutId;var l={z2:this.lC()};p.L.set(a,l);this.u$()}; g.L.HN=function(){}; g.L.release=function(){BF(this.layout.Xh)&&fi(this.dG.get(),this.layout.layoutId);AF(this.uT.get(),this);this.Pl.L.delete(this.layout.layoutId);this.dl()}; g.L.eg=function(){}; g.L.lA=function(){}; g.L.startRendering=function(p){qP(sF(this));if(o1U(this,p)){var a=this.L;o8(a.params.h3.EO.get(),!0)&&ESo(a,"p_sr",{});IE(this);this.tG(p);this.lC()||this.JE(!1)}}; g.L.Pa=function(p,a){if(a.layoutId===this.layout.layoutId){this.Cx="rendering";this.S=this.sO.get().isMuted()||this.sO.get().getVolume()===0;this.ZN("impression");this.ZN("start");if(this.sO.get().isMuted()){tT(this,"mute");var l;p=((l=Ft(this))==null?void 0:l.muteCommands)||[];IX(this.uM.get(),p,this.layout.layoutId)}if(this.sO.get().isFullscreen()){this.h5("fullscreen");var y;l=((y=Ft(this))==null?void 0:y.fullscreenCommands)||[];IX(this.uM.get(),l,this.layout.layoutId)}this.lC()||(y=this.lr.get(), y.U&&!y.S&&(y.W=!1,y.S=!0,y.actionType!=="ad_to_video"&&($B("pbs",void 0,y.actionType),g.oO("finalize_all_timelines")&&UAO(y.actionType))));this.cL(1);this.W4(a);var S;a=((S=Ft(this))==null?void 0:S.impressionCommands)||[];IX(this.uM.get(),a,this.layout.layoutId)}}; g.L.ut=function(p,a,l){this.K={C4:3,aZ:p==="load_timeout"?402:400,errorMessage:a.message};this.ZN("error");var y;p=((y=Ft(this))==null?void 0:y.errorCommands)||[];IX(this.uM.get(),p,this.layout.layoutId);this.lC()||this.dX.N2(this.slot,this.layout,a,l)}; g.L.TL=function(){if(this.Cx==="rendering"){tT(this,"pause");var p,a=((p=Ft(this))==null?void 0:p.pauseCommands)||[];IX(this.uM.get(),a,this.layout.layoutId);this.cL(2)}}; g.L.pW=function(){if(this.Cx==="rendering"){tT(this,"resume");var p,a=((p=Ft(this))==null?void 0:p.resumeCommands)||[];IX(this.uM.get(),a,this.layout.layoutId)}}; g.L.To=function(p,a){a=a===void 0?!1:a;if(this.Cx==="rendering"){var l={currentTimeSec:p,flush:a};y3(this.L,"p_ip",l);dz(this.zm,p*1E3,a);this.S||dz(this.zm,p*1E3,a===void 0?!1:a);var y=this.mH();if(y){y/=1E3;if(p>=y*.25||a)this.ZN("first_quartile"),y3(this.L,"p_fq",l);if(p>=y*.5||a)this.ZN("midpoint"),y3(this.L,"p_sq",l);if(p>=y*.75||a)this.ZN("third_quartile"),y3(this.L,"p_tq",l);this.EO.get().B.C().experiments.Cz("enable_progress_command_flush_on_kabuki")?K4(this.j,p*1E3,a):K4(this.j,p*1E3,ywr(this)? a:!1)}}}; g.L.sM=function(){var p;return((p=uo(this.ac.get(),1))==null?void 0:p.clientPlaybackNonce)||""}; g.L.ij=function(p,a){p.layoutId!==this.layout.layoutId?this.dX.N2(this.slot,p,new Xd("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"):a()}; g.L.Dy=function(p,a,l){if(a.layoutId===this.layout.layoutId)switch(this.Cx="not_rendering",this.layoutExitReason=void 0,this.lC()||(p=l!=="normal"||this.position+1===this.G)&&this.JE(p),this.rB(l),this.cL(0),l){case "abandoned":if(zo(this.zm,"impression")){var y,S=((y=Ft(this))==null?void 0:y.abandonCommands)||[];IX(this.uM.get(),S,this.layout.layoutId)}break;case "normal":y=((S=Ft(this))==null?void 0:S.completeCommands)||[];IX(this.uM.get(),y,this.layout.layoutId);break;case "skipped":var n;y=((n= Ft(this))==null?void 0:n.skipCommands)||[];IX(this.uM.get(),y,this.layout.layoutId)}}; g.L.NI=function(){return this.layout.layoutId}; g.L.Kn=function(){return this.K}; g.L.oz=function(){if(this.Cx==="rendering"){this.zm.ZN("active_view_measurable");var p,a=((p=Ft(this))==null?void 0:p.activeViewMeasurableCommands)||[];IX(this.uM.get(),a,this.layout.layoutId)}}; g.L.ZW=function(){if(this.Cx==="rendering"){this.zm.ZN("active_view_fully_viewable_audible_half_duration");var p,a=((p=Ft(this))==null?void 0:p.activeViewFullyViewableAudibleHalfDurationCommands)||[];IX(this.uM.get(),a,this.layout.layoutId)}}; g.L.qD=function(){if(this.Cx==="rendering"){this.zm.ZN("active_view_viewable");var p,a=((p=Ft(this))==null?void 0:p.activeViewViewableCommands)||[];IX(this.uM.get(),a,this.layout.layoutId)}}; g.L.Jy=function(){if(this.Cx==="rendering"){this.zm.ZN("audio_audible");var p,a=((p=Ft(this))==null?void 0:p.activeViewAudioAudibleCommands)||[];IX(this.uM.get(),a,this.layout.layoutId)}}; g.L.ix=function(){if(this.Cx==="rendering"){this.zm.ZN("audio_measurable");var p,a=((p=Ft(this))==null?void 0:p.activeViewAudioMeasurableCommands)||[];IX(this.uM.get(),a,this.layout.layoutId)}}; g.L.JE=function(p){this.lr.get().JE(PE(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,p,this.position,this.G,!1)}; g.L.onFullscreenToggled=function(p){if(this.Cx==="rendering")if(p){this.h5("fullscreen");var a,l=((a=Ft(this))==null?void 0:a.fullscreenCommands)||[];IX(this.uM.get(),l,this.layout.layoutId)}else this.h5("end_fullscreen"),a=((l=Ft(this))==null?void 0:l.endFullscreenCommands)||[],IX(this.uM.get(),a,this.layout.layoutId)}; g.L.onVolumeChange=function(){if(this.Cx==="rendering")if(this.sO.get().isMuted()){tT(this,"mute");var p,a=((p=Ft(this))==null?void 0:p.muteCommands)||[];IX(this.uM.get(),a,this.layout.layoutId)}else tT(this,"unmute"),p=((a=Ft(this))==null?void 0:a.unmuteCommands)||[],IX(this.uM.get(),p,this.layout.layoutId)}; g.L.A5=function(){}; g.L.iX=function(){}; g.L.U2=function(){}; g.L.cG=function(){}; g.L.o7=function(){}; g.L.h5=function(p){this.zm.h5(p,!this.S)}; g.L.ZN=function(p){this.zm.ZN(p,!this.S)}; g.L.lC=function(){var p=PE(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return p===void 0?(hF("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.EO.get().lC(p)};g.A(UF,NM);g.L=UF.prototype;g.L.u$=function(){}; g.L.dl=function(){var p=this.uT.get();p.X1===this&&(p.X1=null);this.timer.stop()}; g.L.eg=function(){this.timer.stop();NM.prototype.TL.call(this)}; g.L.lA=function(){N$(this);NM.prototype.pW.call(this)}; g.L.mH=function(){return PE(this.J9().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.L.NE=function(p,a){var l=this;this.ij(p,function(){l.Cx!=="rendering_stop_requested"&&(l.Cx="rendering_stop_requested",l.layoutExitReason=a,Av(l,a),l.timer.stop())})}; g.L.rq=function(){var p=Date.now(),a=p-this.RF;this.RF=p;this.BG+=a;this.BG>=this.mH()?this.Pm():(this.To(this.BG/1E3),DQ(this,this.BG))}; g.L.rB=function(){}; g.L.J3=function(){}; g.A(bS,UF);g.L=bS.prototype;g.L.Kv=function(p){if(this.Cx!=="not_rendering"){p=iU(this,p);var a=this.sO.get().getPresentingPlayerType()===2;this.Cx==="rendering_start_requested"?a&&Lg(p)&&this.XI():a?g.mj(p,2)?hF("Receive player ended event during MediaBreak",this.iM(),this.J9()):Q3(this,p):this.yc()}}; g.L.tG=function(){O0Z(this);$p(this.sO.get());this.uT.get().X1=this;w1("pbp")||w1("pbs")||$B("pbp");w1("pbp","watch")||w1("pbs","watch")||$B("pbp",void 0,"watch");this.XI()}; g.L.W4=function(p){this.lr.get();var a=PE(p.clientMetadata,"metadata_type_ad_placement_config").kind,l=this.position===0;p=PE(p.clientMetadata,"metadata_type_linked_in_player_layout_type");p={adBreakType:GX(a),adType:c3O(p)};var y=void 0;l?a!=="AD_PLACEMENT_KIND_START"&&(y="video_to_ad"):y="ad_to_ad";kC("ad_mbs",void 0,y);g.Bs(p,y);N$(this)}; g.L.yc=function(){this.F9()}; g.L.Pm=function(){vtr(this);this.F9()}; g.A(cc,UF);g.L=cc.prototype;g.L.Kv=function(p){this.Cx!=="not_rendering"&&(p=iU(this,p),Q3(this,p))}; g.L.tG=function(){hF("Not used in SSAP")}; g.L.W4=function(){N$(this)}; g.L.yc=function(){hF("Not used in SSAP")}; g.L.Pm=function(){vtr(this);this.dX.ra(this.iM(),this.J9(),"normal")}; g.A(J2,cc);J2.prototype.NE=function(p,a){var l=this;this.ij(p,function(){Tp(l.U,a)&&(l.Cx="rendering_stop_requested",l.layoutExitReason=a,Av(l,a),l.timer.stop())})}; J2.prototype.startRendering=function(p){qP(sF(this));o1U(this,p)&&(IE(this),this.uT.get().X1=this)};g.A(sx,NM);g.L=sx.prototype;g.L.yc=function(){this.F9()}; g.L.Kv=function(p){if(this.Cx!=="not_rendering"){p=iU(this,p);var a=this.sO.get().getPresentingPlayerType()===2;this.Cx==="rendering_start_requested"?a&&Lg(p)&&this.XI():!a||g.mj(p,2)?this.F9():Q3(this,p)}}; g.L.u$=function(){PE(this.J9().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=PE(this.J9().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.L.dl=function(){PE(this.J9().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.dE){var p=this.context.h3,a=this.dE,l=this.J9().layoutId;if(o8(p.EO.get(),!0)){var y={};p.wG("mccru",(y.cid=a,y.p_ac=l,y))}this.gq.get().removeCueRange(this.dE)}this.dE=void 0;var S;(S=this.fm)==null||S.dispose();this.Cd&&this.Cd.dispose()}; g.L.tG=function(p){var a=Wi(this.EO.get()),l=Nu(this.EO.get());if(a&&l&&!this.lC()){l=PE(p.clientMetadata,"metadata_type_preload_player_vars");var y=this.EO.get();y=g.sW(y.B.C().experiments,"html5_preload_wait_time_secs");l&&this.Cd&&this.Cd.start(y*1E3)}SPM(this,p);O0Z(this);a?(l=this.BZ.get(),p=PE(p.clientMetadata,"metadata_type_player_vars"),l.B.loadVideoByPlayerVars(p,!1,2)):pk(this.BZ.get(),PE(p.clientMetadata,"metadata_type_player_vars"));var S;(S=this.fm)==null||S.start();a||this.BZ.get().B.playVideo(2)}; g.L.W4=function(){var p;(p=this.fm)==null||p.stop();this.v7();(this.adCpn=kZo(this))||hF("Media layout confirmed started, but ad CPN not set.");this.VL.get().KH("onAdStart",this.adCpn);this.kM=Date.now()}; g.L.mH=function(){var p;return(p=uo(this.ac.get(),2))==null?void 0:p.r9}; g.L.cP=function(){this.zm.h5("clickthrough")}; g.L.NE=function(p,a){var l=this;this.ij(p,function(){if(l.Cx!=="rendering_stop_requested"){l.Cx="rendering_stop_requested";l.layoutExitReason=a;Av(l,a);var y;(y=l.fm)==null||y.stop();l.Cd&&l.Cd.stop();dBO(l)}})}; g.L.onCueRangeEnter=function(p){if(p!==this.dE)hF("Received CueRangeEnter signal for unknown layout.",this.iM(),this.J9(),{cueRangeId:p});else{var a=this.context.h3,l=this.J9().layoutId;if(o8(a.EO.get(),!0)){var y={};a.wG("mccre",(y.cid=p,y.p_ac=l,y))}this.gq.get().removeCueRange(this.dE);this.dE=void 0;s1(this.context.EO.get(),"html5_ssap_flush_at_stop_rendering")&&this.lC()||(p=PE(this.J9().clientMetadata,"metadata_type_video_length_seconds"),this.To(p,!0),this.ZN("complete"))}}; g.L.rB=function(p){p!=="abandoned"&&this.VL.get().KH("onAdComplete");this.VL.get().KH("onAdEnd",this.adCpn)}; g.L.v7=function(){this.dE="adcompletioncuerange:"+this.J9().layoutId;this.gq.get().addCueRange(this.dE,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var p=this.context.h3,a=this.dE,l=this.J9().layoutId;if(o8(p.EO.get(),!0)){var y={};p.wG("mccr",(y.cid=a,y.p_ac=l,y))}}; g.L.onCueRangeExit=function(){}; g.L.J3=function(p){this.Cx==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&p>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.sO.get().ZH(!0),this.To(p))}; g.L.To=function(p,a){NM.prototype.To.call(this,p,a===void 0?!1:a);a=Date.now()-this.kM;var l=p*1E3,y={contentCpn:this.sM(),adCpn:kZo(this)};if(p-this.c$>=5){var S=a=2||(this.PZ.NE(this.layout,a),p=s1(this.params.context.EO.get(),"html5_ssap_pass_transition_reason")&&a==="abandoned",this.r5()&&!p&&(s1(this.params.context.EO.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(a)||hF("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:a})),this.WZ.get().finishSegmentByCpn(this.layout.layoutId, uo(this.ac.get(),1).clientPlaybackNonce,Ph(a,this.params.context.EO))),this.sO.get().removeListener(this),this.hv()&&m2(this.PZ.M9())&&this.pN.Dy(this.slot,this.layout,this.PZ.M9().L))}; g.L.Hb=function(p,a,l){vef({cpn:p,Y3:this.ac.get(),q8:!0});this.J9().layoutId!==p||s1(this.params.context.EO.get(),"html5_ssap_pass_transition_reason")&&l===5||(this.PZ.M9().currentState<2&&(p=Gl(l,this.params.context.EO),p==="error"?this.pN.N2(this.slot,this.layout,new Xd("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:l},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):PO(this.Qr, this.layout,p)),s1(this.params.context.EO.get(),"html5_ssap_exit_without_waiting_for_transition")||this.pN.Dy(this.slot,this.layout,this.PZ.M9().L))};g.A(Fc,g.D);g.L=Fc.prototype;g.L.iM=function(){return this.slot}; g.L.J9=function(){return this.layout}; g.L.Oq=function(){}; g.L.Vr=function(){return this.Fb[this.aY]}; g.L.Al=function(){return this.aY}; g.L.eg=function(p,a){var l=this.Vr();a.layoutId!==fH(l,p,a)?hF("pauseLayout for a PlayerBytes layout that is not currently active",p,a):l.eg()}; g.L.lA=function(p,a){var l=this.Vr();a.layoutId!==fH(l,p,a)?hF("resumeLayout for a PlayerBytes layout that is not currently active",p,a):l.lA()}; g.L.Cy=function(p,a){var l=this.Vr();nzq(this,p,a);J1E(l,p,a)&&this.JY(l.iM(),l.J9(),"skipped")}; g.L.KG=function(p,a){var l=this.Vr();ASF(this);I7h(l,p,a)&&(p=vbZ(this,l,p,a),p!==void 0&&(this.lC()?hF("Should not happen. Should delete"):q6F(this,l.iM(),l.J9(),p)))}; g.L.D0=function(p,a){var l=Object.assign({},Ol(this),{layoutId:a.layoutId}),y=l.layoutId,S=l.q8;if(l.z2){var n={};WL(l.Y3,"wrse",(n.ec=y,n.is=S,n.ctp=Mu(y),n))}RZ(this.wX,p,a)}; g.L.Pa=function(p,a){var l;(l=this.Vr())==null||l.Pa(p,a)}; g.L.Dy=function(p,a,l){a.layoutId===this.J9().layoutId&&(this.V2=!1,h0(this.Ye(),this));var y;(y=this.Vr())==null||y.Dy(p,a,l)}; g.L.J3=function(p){var a;(a=this.Vr())==null||a.J3(p)}; g.L.DS=function(p,a,l){this.Al()===-1&&(this.callback.Pa(this.slot,this.layout),this.aY++);var y=this.Vr();y?(y.ut(p,a,l),this.lC()&&this.callback.N2(this.slot,this.layout,a,l)):hF("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Al()),layoutId:this.J9().layoutId})}; g.L.onFullscreenToggled=function(p){var a;(a=this.Vr())==null||a.onFullscreenToggled(p)}; g.L.A5=function(p){var a;(a=this.Vr())==null||a.A5(p)}; g.L.U2=function(p){var a;(a=this.Vr())==null||a.U2(p)}; g.L.onVolumeChange=function(){var p;(p=this.Vr())==null||p.onVolumeChange()}; g.L.il=function(p,a,l){px(this.wX,p,a,l)}; g.L.DA=function(p){p.startRendering(p.J9())}; g.L.init=function(){var p=PE(this.J9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);if(this.Fb.length<1)throw new W("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Fb.length)});if(p=PE(this.J9().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))p.current=this;p=g.t(this.Fb);for(var a=p.next();!a.done;a=p.next())a=a.value,a.init(),hNA(this.wX,this.slot,a.J9()),cNq(this.wX,this.slot,a.J9()); if(this.lC())for(this.ac.get().addListener(this),b9h(hfr(this),this.ac.get()),p=hfr(this),p=g.t(p),a=p.next();!a.done;a=p.next())this.jJ(a.value)}; g.L.jJ=function(p){var a=PE(p.clientMetadata,"metadata_type_player_vars");a?(p.layoutType!=="LAYOUT_TYPE_MEDIA"&&hF("Non-video ad contains playerVars",this.slot,p),this.BZ.get().addPlayerResponseForAssociation({playerVars:a})):(p=oSO(p),this.BZ.get().addPlayerResponseForAssociation({uq:p}))}; g.L.release=function(){var p=PE(this.J9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);if(p=PE(this.J9().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))p.current=null;p=g.t(this.Fb);for(var a=p.next();!a.done;a=p.next())a=a.value,q4v(this.wX,this.slot,a.J9()),a.release();this.lC()&&(this.ac.get().removeListener(this),HSr())}; g.L.ij=function(p){return p.layoutId!==this.J9().layoutId?(this.callback.N2(this.iM(),p,new Xd("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.J9().layoutId+("and LayoutType: "+this.J9().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.L.ub=function(){this.sO.get().addListener(this);Iq(this.Ye(),this)}; g.L.Kv=function(p){if(p.state.isError()){var a,l;this.DS((a=p.state.iN)==null?void 0:a.errorCode,new Xd("There was a player error during this media layout.",{playerErrorCode:(l=p.state.iN)==null?void 0:l.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(a=this.Vr())&&a.Kv(p)}; g.L.lC=function(){var p=PE(this.iM().clientMetadata,"metadata_type_eligible_for_ssap");return p===void 0?(hF("Expected SSAP eligibility in PlayerBytes slots",this.iM(),this.J9()),!1):this.EO.get().lC(p)}; g.L.iX=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.cG=function(){}; g.L.o7=function(){}; g.A(E_,Fc);g.L=E_.prototype;g.L.AF=function(p,a,l){this.JY(p,a,l)}; g.L.lH=function(p,a){this.JY(p,a,"error")}; g.L.JY=function(p,a,l){var y=this;Y6h(this,p,a,l,function(){rx(y,y.Al()+1)})}; g.L.startRendering=function(p){this.ij(p)&&(this.ub(),WbM(this.lr.get()),jhM(this.EO.get())||$p(this.sO.get()),this.Al()===-1&&rx(this,this.Al()+1))}; g.L.NE=function(p,a){var l=this;this.V2=!0;this.Al()===this.Fb.length?this.callback.Dy(this.slot,this.layout,a):(p=this.Vr(),p.NE(p.J9(),a),this.B$=function(){l.callback.Dy(l.slot,l.layout,a)}); this.sO.get().B.O1();pk(this.BZ.get(),{});p=Lv(this.sO.get(),1);p.isPaused()&&!g.h(p,2)&&this.sO.get().playVideo();this.sO.get().removeListener(this);this.V2&&tVM(this)}; g.L.Hb=function(){}; g.L.Ai=function(){}; g.L.ra=function(){}; g.A($k,Fc);g.L=$k.prototype;g.L.AF=function(p,a,l){p=Object.assign({},Ol(this),{layoutId:a.layoutId,layoutExitReason:l});a=p.layoutId;l=p.layoutExitReason;var y={};WL(p.Y3,"prse",(y.xc=a,y.ler=l,y.ctp=Mu(a),y))}; g.L.lH=function(){hF("onSubLayoutError in SSAP")}; g.L.JY=function(){hF("exitSubLayoutAndPlayNext in SSAP")}; g.L.Vr=function(){return this.sQ}; g.L.Al=function(){var p=this;return this.Fb.findIndex(function(a){var l;return a.J9().layoutId===((l=p.sQ)==null?void 0:l.J9().layoutId)})}; g.L.DA=function(p){M0(this.sQ===void 0,"replacing another adapter");this.sQ=p;p.startRendering(p.J9())}; g.L.il=function(p,a,l){px(this.wX,p,a,l);var y;M0(a.layoutId===((y=this.sQ)==null?void 0:y.J9().layoutId),"currentAdapter does not match exiting layout",{slot:p?"slot: "+p.slotType:"",subLayout:DN(a)})&&(this.sQ=void 0)}; g.L.release=function(){Fc.prototype.release.call(this);M0(this.sQ===void 0,"currentAdapter is still active during release");this.sQ=void 0}; g.L.r5=function(){return this.sO.get().getPresentingPlayerType()===2}; g.L.NE=function(p,a){function l(){if(this.sQ){var n=this.sQ;n.M9().currentState<2&&n.NE(n.J9(),a);n=LW(this)&&a==="abandoned";this.r5()&&!n&&(S.call(this),this.WZ.get().finishSegmentByCpn(this.sQ.J9().layoutId,uo(this.ac.get(),1).clientPlaybackNonce,Ph(a,this.EO)))}} function y(){this.sQ&&aQ(this,this.sQ,a);if(this.r5()&&(!LW(this)||a!=="abandoned")){S.call(this);var n;var V=((n=this.ac.get().B.getVideoData())==null?void 0:n.clientPlaybackNonce)||"";n=uo(this.ac.get(),1).clientPlaybackNonce;this.WZ.get().finishSegmentByCpn(V,n,Ph(a,this.EO))}hiv(this,a)} function S(){LW(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(a)||hF("Composite stopRendering: Unexpected layout exit reason",this.slot,p,{layoutExitReason:a}))} M0(p.layoutId===this.J9().layoutId,"StopRendering for wrong layout")&&Tp(this.wC.S,a)&&(this.hv()?y.call(this):l.call(this))}; g.L.Dy=function(p,a,l){Fc.prototype.Dy.call(this,p,a,l);a.layoutId===this.J9().layoutId&&this.sO.get().removeListener(this)}; g.L.sM=function(){return uo(this.ac.get(),1).clientPlaybackNonce}; g.L.Hb=function(p,a,l){vef(Object.assign({},Ol(this),{cpn:p}));if(!LW(this)||l!==5)if(this.hv()){if(this.sQ&&this.sQ.J9().layoutId!==a){var y=this.sQ.J9().layoutId;y!==p&&hF("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:y,exitingCpn:p,enteringCpn:a});p=Gl(l,this.EO);aQ(this,this.sQ,p)}else this.sQ&&hF("onClipExited: active layout is entering again");a===this.sM()&&nMM(this,l)}else{if(this.sQ&&this.sQ.J9().layoutId===p)snr(this,this.sQ,l);else{var S;hF("Exiting cpn does not match active cpn", this.slot,(y=this.sQ)==null?void 0:y.J9(),{exitingCpn:p,transitionReason:l,activeCpn:(S=this.sQ)==null?void 0:S.J9().layoutId})}a===this.sM()&&(this.sQ!==void 0&&(hF("active adapter is not properly exited",this.slot,this.layout,{activeLayout:DN(this.sQ.J9())}),snr(this,this.sQ,l)),nMM(this,l),hiv(this,this.wC.S.L))}}; g.L.hv=function(){return s1(this.EO.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.L.startRendering=function(p){this.ij(p)&&(p=this.wC,M0(p.L===1,"tickStartRendering: state is not initial"),p.L=2,this.ub())}; g.L.Ai=function(p){YAe(Object.assign({},Ol(this),{cpn:p}));var a=this.Fb.find(function(l){return l.J9().layoutId===p}); a?(this.wC.L!==2&&(N5r(this.sE,this.slot.slotId),M0(this.wC.L===2,"Expect started"),this.callback.Pa(this.slot,this.layout)),this.DA(a),RZ(this.wX,this.slot,a.J9())):aeK(this,p)}; g.L.Cy=function(p,a){nzq(this,p,a);var l=this.Vr();l?J1E(l,p,a)&&$yr(this,"skipped"):$tM(this,"onSkipRequested")}; g.L.KG=function(p,a){var l;a:{if(l=this.Vr()){if(ASF(this),I7h(l,p,a)&&(p=vbZ(this,l,p,a),p!==void 0)){l={MK:l,LNc:this.Fb[p]};break a}}else $tM(this,"SkipWithAdPodSkip");l=void 0}if(p=l)l=p.MK,a=p.LNc,p=l.J9().layoutId,this.hv()?aQ(this,l,"skipped"):l.NE(l.J9(),"skipped"),l=a.J9().layoutId,this.WZ.get().finishSegmentByCpn(p,l,Ph("skipped",this.EO))}; g.L.D0=function(){hF("Not used in html5_ssap_fix_layout_exit")}; g.L.Kv=function(p){var a;(a=this.Vr())==null||a.Kv(p)}; g.L.DS=function(){hF("Not used in html5_ssap_fix_layout_exit")}; g.L.ra=function(p,a,l){var y;if(((y=this.Vr())==null?void 0:y.J9().layoutId)!==a.layoutId)return void hF("requestToExitSubLayout: wrong layout");$yr(this,l)};g.A(Lz,g.D);g.L=Lz.prototype;g.L.iM=function(){return this.PZ.iM()}; g.L.J9=function(){return this.PZ.J9()}; g.L.init=function(){var p=PE(this.J9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);this.u$()}; g.L.u$=function(){this.PZ.init()}; g.L.release=function(){var p=PE(this.J9().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);this.dl()}; g.L.dl=function(){this.PZ.release()}; g.L.eg=function(){this.PZ.eg()}; g.L.lA=function(){this.PZ.lA()}; g.L.Cy=function(p,a){hF("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.iM(),this.J9(),{requestingSlot:p,requestingLayout:a})}; g.L.startRendering=function(p){p.layoutId!==this.J9().layoutId?this.callback.N2(this.iM(),p,new Xd("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.J9().layoutId+("and LayoutType: "+this.J9().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.sO.get().addListener(this),Iq(this.Ye(),this),WbM(this.lr.get()),jhM(this.EO.get())||$p(this.sO.get()),this.PZ.startRendering(p))}; g.L.NE=function(p,a){this.V2=!0;this.PZ.NE(p,a);this.sO.get().B.O1();pk(this.BZ.get(),{});p=Lv(this.sO.get(),1);p.isPaused()&&!g.h(p,2)&&this.sO.get().playVideo();this.sO.get().removeListener(this);this.V2&&this.PZ.yc()}; g.L.Pa=function(p,a){this.PZ.Pa(p,a)}; g.L.Dy=function(p,a,l){a.layoutId===this.J9().layoutId&&(this.V2=!1,h0(this.Ye(),this));this.PZ.Dy(p,a,l);a.layoutId===this.J9().layoutId&&h8(this.lr.get())}; g.L.J3=function(p){this.PZ.J3(p)}; g.L.Kv=function(p){if(p.state.isError()){var a,l;this.DS((a=p.state.iN)==null?void 0:a.errorCode,new Xd("There was a player error during this media layout.",{playerErrorCode:(l=p.state.iN)==null?void 0:l.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.PZ.Kv(p)}; g.L.DS=function(p,a,l){this.PZ.ut(p,a,l)}; g.L.onFullscreenToggled=function(p){this.PZ.onFullscreenToggled(p)}; g.L.A5=function(p){this.PZ.A5(p)}; g.L.U2=function(p){this.PZ.U2(p)}; g.L.onVolumeChange=function(){this.PZ.onVolumeChange()}; g.L.iX=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.cG=function(){}; g.L.o7=function(){};g.L=qK.prototype;g.L.iM=function(){return this.slot}; g.L.J9=function(){return this.layout}; g.L.init=function(){this.Je.get().addListener(this);this.sO.get().addListener(this);var p=PE(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var a=PE(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.j){var l=this.Je.get().ya.slice(-1)[0];l!==void 0&&(p=l.startSecs*1E3,a=(l.startSecs+l.DI)*1E3)}this.HN(p,a);var y;l=(y=this.ac.get().HA)==null?void 0:y.clientPlaybackNonce;y=this.layout.nx.adClientDataEntry;Ux(this.uT.get(),{daiStateTrigger:{filledAdsDurationMs:a-p,contentCpn:l, adClientData:y}});var S=this.Je.get();S=ZN$(S.U,p,a);S!==null&&(Ux(this.uT.get(),{daiStateTrigger:{filledAdsDurationMs:S-p,contentCpn:l,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:y}}),this.WZ.get().lP(S,a))}; g.L.release=function(){this.dl();this.Je.get().removeListener(this);this.sO.get().removeListener(this)}; g.L.startRendering=function(){this.tG();this.callback.Pa(this.slot,this.layout)}; g.L.NE=function(p,a){this.Si(a);this.driftRecoveryMs!==null&&(Uq(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round($2Z(this)-PE(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.sO.get().B.Ak()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Dy(this.slot,this.layout,a)}; g.L.H4=function(){return!1}; g.L.Yq=function(p){var a=PE(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),l=PE(this.layout.clientMetadata,"metadata_type_layout_exit_ms");p*=1E3;if(a<=p&&p0&&YB(this.L(),a)}; g.L.t5=function(p){this.W.delete(p.slotId);for(var a=[],l=g.t(this.Ag.values()),y=l.next();!y.done;y=l.next()){y=y.value;var S=y.trigger;S instanceof zV&&S.triggeringSlotId===p.slotId&&a.push(y)}a.length>0&&YB(this.L(),a)}; g.L.Hl=function(p){for(var a=[],l=g.t(this.Ag.values()),y=l.next();!y.done;y=l.next()){y=y.value;var S=y.trigger;S instanceof Qx&&S.slotType===p.slotType&&S.L!==p.slotId&&a.push(y)}a.length>0&&YB(this.L(),a)}; g.L.RM=function(p){this.U.add(p.slotId);for(var a=[],l=g.t(this.Ag.values()),y=l.next();!y.done;y=l.next())y=y.value,y.trigger instanceof D6&&p.slotId===y.trigger.triggeringSlotId&&a.push(y);a.length>0&&YB(this.L(),a)}; g.L.vX=function(p){this.U.delete(p.slotId);this.j.add(p.slotId);for(var a=[],l=g.t(this.Ag.values()),y=l.next();!y.done;y=l.next())if(y=y.value,y.trigger instanceof $1)p.slotId===y.trigger.triggeringSlotId&&a.push(y);else if(y.trigger instanceof ui){var S=y.trigger;p.slotId===S.slotId&&this.S.has(S.triggeringLayoutId)&&a.push(y)}a.length>0&&YB(this.L(),a)}; g.L.Rv=function(p){for(var a=[],l=g.t(this.Ag.values()),y=l.next();!y.done;y=l.next())y=y.value,y.trigger instanceof sq&&p.slotId===y.trigger.triggeringSlotId&&a.push(y);a.length>0&&YB(this.L(),a)}; g.L.vl=function(p){for(var a=[],l=g.t(this.Ag.values()),y=l.next();!y.done;y=l.next())y=y.value,y.trigger instanceof uP&&p.slotId===y.trigger.triggeringSlotId&&a.push(y);a.length>0&&YB(this.L(),a)}; g.L.Lq=function(p,a){this.G.add(a.layoutId)}; g.L.EY=function(p,a){this.G.delete(a.layoutId)}; g.L.Pa=function(p,a){this.S.add(a.layoutId);for(var l=[],y=g.t(this.Ag.values()),S=y.next();!S.done;S=y.next())if(S=S.value,S.trigger instanceof Hv)a.layoutId===S.trigger.triggeringLayoutId&&l.push(S);else if(S.trigger instanceof bX){var n=S.trigger;p.slotType===n.slotType&&a.layoutType===n.layoutType&&a.layoutId!==n.L&&l.push(S)}else S.trigger instanceof ui&&(n=S.trigger,a.layoutId===n.triggeringLayoutId&&this.j.has(n.slotId)&&l.push(S));l.length>0&&YB(this.L(),l)}; g.L.Dy=function(p,a,l){this.S.delete(a.layoutId);p=[];for(var y=g.t(this.Ag.values()),S=y.next();!S.done;S=y.next())if(S=S.value,S.trigger instanceof FJ&&a.layoutId===S.trigger.triggeringLayoutId&&p.push(S),S.trigger instanceof Eb){var n=S.trigger;a.layoutId===n.triggeringLayoutId&&n.L.includes(l)&&p.push(S)}p.length>0&&YB(this.L(),p)}; g.L.I9=function(){}; g.L.Jo=function(){this.j.clear()}; g.L.MJ=function(){};g.A(zr,g.D);zr.prototype.Os=function(p,a,l,y){if(this.Ag.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof vp))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in CloseRequestedTriggerAdapter");this.Ag.set(a.triggerId,new T7(p,a,l,y))}; zr.prototype.Fv=function(p){this.Ag.delete(p.triggerId)};g.A(L$,g.D);L$.prototype.Os=function(p,a,l,y){if(this.Ag.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof oJ||a instanceof wG))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ag.set(a.triggerId,new T7(p,a,l,y))}; L$.prototype.Fv=function(p){this.Ag.delete(p.triggerId)}; L$.prototype.Jo=function(p){for(var a=[],l=a.push,y=l.apply,S=[],n=g.t(this.Ag.values()),V=n.next();!V.done;V=n.next())V=V.value,V.trigger instanceof oJ&&V.trigger.wM===p&&S.push(V);y.call(l,a,g.u0(S));l=a.push;y=l.apply;S=[];n=g.t(this.Ag.values());for(V=n.next();!V.done;V=n.next())V=V.value,V.trigger instanceof wG&&V.trigger.L!==p&&S.push(V);y.call(l,a,g.u0(S));a.length&&YB(this.L(),a)}; L$.prototype.MJ=function(p){for(var a=[],l=a.push,y=l.apply,S=[],n=g.t(this.Ag.values()),V=n.next();!V.done;V=n.next()){V=V.value;var z=V.trigger;z instanceof wG&&z.L===p&&S.push(V)}y.call(l,a,g.u0(S));a.length&&YB(this.L(),a)};g.A(XX,g.D);g.L=XX.prototype;g.L.Os=function(p,a,l,y){if(this.Ag.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");var S="adtriggercuerange:"+a.triggerId;if(a instanceof Ke)NSM(this,p,a,l,y,S,a.L.start,a.L.end,a.wM,a.visible);else if(a instanceof uO)NSM(this,p,a,l,y,S,0x7ffffffffffff,0x8000000000000,a.wM,a.visible);else throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in CueRangeTriggerAdapter");}; g.L.Fv=function(p){var a=this.Ag.get(p.triggerId);a&&this.gq.get().removeCueRange(a.cueRangeId);this.Ag.delete(p.triggerId)}; g.L.onCueRangeEnter=function(p){var a=FHM(this,p);if(a&&(a=this.Ag.get(a)))if(g.h(Lv(this.sO.get()),32))this.L.add(a.cueRangeId);else{var l=a==null?void 0:a.Z5.trigger;if(l instanceof Ke||l instanceof uO){if(o8(this.context.EO.get())){var y=a.Z5.slot,S=a.Z5.layout,n={};this.context.h3.wG("cre",(n.ca=a.Z5.category,n.tt=l.triggerType,n.st=y.slotType,n.lt=S==null?void 0:S.layoutType,n.cid=p,n))}YB(this.S(),[a.Z5])}}}; g.L.onCueRangeExit=function(p){(p=FHM(this,p))&&(p=this.Ag.get(p))&&this.L.delete(p.cueRangeId)}; g.L.Kv=function(p){if(He(p,16)<0){p=g.t(this.L);for(var a=p.next();!a.done;a=p.next())this.onCueRangeEnter(a.value,!0);this.L.clear()}}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.Pa=function(){}; g.L.Dy=function(){}; g.L.I9=function(){}; g.L.J3=function(){}; g.L.onFullscreenToggled=function(){}; g.L.A5=function(){}; g.L.iX=function(){}; g.L.U2=function(){}; g.L.onVolumeChange=function(){}; g.L.cG=function(){}; g.L.o7=function(){};g.A(tJ,g.D);g.L=tJ.prototype; g.L.Os=function(p,a,l,y){if(this.S.has(a.triggerId)||this.U.has(a.triggerId))throw new W("Tried to re-register the trigger.");p=new T7(p,a,l,y);if(p.trigger instanceof IP)this.S.set(p.trigger.triggerId,p);else if(p.trigger instanceof RP)this.U.set(p.trigger.triggerId,p);else throw new W("Incorrect TriggerType: Tried to register trigger of type "+p.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.S.has(p.trigger.triggerId)&&p.slot.slotId===this.L&&YB(this.j(),[p])}; g.L.Fv=function(p){this.S.delete(p.triggerId);this.U.delete(p.triggerId)}; g.L.Oq=function(p){p=p.slotId;if(this.L!==p){var a=[];this.L!=null&&a.push.apply(a,g.u0(xyr(this.U,this.L)));p!=null&&a.push.apply(a,g.u0(xyr(this.S,p)));this.L=p;a.length&&YB(this.j(),a)}}; g.L.Hb=function(){}; g.L.Ai=function(){};g.A(xq,g.D);g.L=xq.prototype;g.L.Os=function(p,a,l,y){if(this.Ag.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof Ce))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ag.set(a.triggerId,new T7(p,a,l,y))}; g.L.Fv=function(p){this.Ag.delete(p.triggerId)}; g.L.Pa=function(){}; g.L.Dy=function(){}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){};g.A(FX,g.D);g.L=FX.prototype;g.L.I9=function(p,a){for(var l=[],y=g.t(this.Ag.values()),S=y.next();!S.done;S=y.next()){S=S.value;var n=S.trigger;n.opportunityType===p&&(n.associatedSlotId&&n.associatedSlotId!==a||l.push(S))}l.length&&YB(this.L(),l)}; g.L.Os=function(p,a,l,y){if(this.Ag.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof ISh))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in OpportunityEventTriggerAdapter");this.Ag.set(a.triggerId,new T7(p,a,l,y))}; g.L.Fv=function(p){this.Ag.delete(p.triggerId)}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.Pa=function(){}; g.L.Dy=function(){};g.A(es,g.D);g.L=es.prototype;g.L.Os=function(p,a,l,y){p=new T7(p,a,l,y);if(a instanceof Rz||a instanceof Ob||a instanceof uX||a instanceof $H||a instanceof l0O){if(this.Ag.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");this.Ag.set(a.triggerId,p)}else throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in PrefetchTriggerAdapter");}; g.L.Fv=function(p){this.Ag.delete(p.triggerId)}; g.L.J$=function(p){var a=p.slotFulfillmentTriggers.find(function(l){return l instanceof Rz}); a&&(Rx(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",a.breakDurationMs,new Set([p.slotId]),!0),O4(this.uT.get(),"ads_css","sid."+p.slotId+";bd."+a.breakDurationMs))}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.Pa=function(){}; g.L.Dy=function(){}; g.L.I9=function(){}; g.L.H4=function(p){var a=this;if(!this.L)return hF("Unexpected cue break before fetch instructions are available"),!1;this.S&&this.S.stop();this.W&&g.sb(this.W);var l=Xdh(this,p);if(!l){var y=wNh(this),S=this.K!==void 0&&Date.now()<=this.K+1E4;O4(this.uT.get(),"ads_ncfs","cid."+p.identifier+";cd."+p.DI.toFixed(3)+";ccs."+S+";cfa."+this.j+";bdc."+y.length+";"+y.slice(0,6).map(function(n){return";bd."+n}).join("")); return S?(d9(this.Iv,this.L,p),!0):!1}(y=PE(l.slot.clientMetadata,"metadata_type_triggering_cue_point"))?y.current=p:hF("Expected triggering cue point ref to be available",l.slot);(new g.l_(function(){var n=l.trigger,V=l.slot;Rx(a,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",n.breakDurationMs,new Set,!0);Rx(a,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",n.breakDurationMs,new Set,!1);for(var z=0,d=g.t(a.Ag.values()),G=d.next();!G.done;G=d.next()){G=G.value;var B=G.trigger; G.slot.slotId===V.slotId&&(a.Ag.delete(B.triggerId),z++)}O4(a.uT.get(),"ads_csf","sid."+V.slotId+";bd."+n.breakDurationMs+";dt."+z)},10)).start(); return!0}; g.L.Yq=function(){}; g.L.Jo=function(p){var a=this;this.j=!1;this.K=Date.now();if(this.L&&this.L.contentCpn!==p)hF("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.L.contentCpn}),BSe(this);else{this.U=new g.l_(function(){if(a.j)delete a.U;else{var y=a.sO.get().getGetAdBreakContext(),S;if(Number(y==null?void 0:(S=y.livePlaybackPosition)==null?void 0:S.utcTimeMillis)>0)delete a.U,V7r(a);else{var n;(n=a.U)==null||n.start()}}},200); var l;(l=this.U)==null||l.start()}}; g.L.MJ=function(p){this.L&&this.L.contentCpn!==p&&hF("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.L.contentCpn},!0);BSe(this)}; g.L.j$=function(p){var a=this;if(this.L)hF("Unexpected multiple fetch instructions for the current content");else{this.L=p;p=nXr(p);this.S=new g.l_(function(){V7r(a)},p?p:6E5); this.S.start();this.W=new g.l_(function(){a.L&&(a.S&&(a.S.stop(),a.S.start()),JBA(a,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},N9r(this.L)); p=this.sO.get().getCurrentTimeSec(1,!1);for(var l=g.t(this.Je.get().ya),y=l.next();!y.done;y=l.next())y=y.value,O4(this.uT.get(),"nocache","ct."+Date.now()+";cmt."+p+";d."+y.DI.toFixed(3)+";tw."+(y.startSecs-p)+";cid."+y.identifier+";")}}; g.L.fz=function(){g.D.prototype.fz.call(this);BSe(this)};g.A(Kx,g.D);g.L=Kx.prototype;g.L.Os=function(p,a,l,y){if(this.Ag.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof ep))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ag.set(a.triggerId,new T7(p,a,l,y));p=this.L.has(a.triggeringLayoutId)?this.L.get(a.triggeringLayoutId):new Set;p.add(a);this.L.set(a.triggeringLayoutId,p)}; g.L.Fv=function(p){this.Ag.delete(p.triggerId);if(!(p instanceof ep))throw new W("Incorrect TriggerType: Tried to unregister trigger of type "+p.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var a=this.S.get(p.triggerId);a&&(a.dispose(),this.S.delete(p.triggerId));if(a=this.L.get(p.triggeringLayoutId))a.delete(p),a.size===0&&this.L.delete(p.triggeringLayoutId)}; g.L.J$=function(){}; g.L.t5=function(){}; g.L.Hl=function(){}; g.L.RM=function(){}; g.L.vX=function(){}; g.L.Rv=function(){}; g.L.vl=function(){}; g.L.Lq=function(){}; g.L.EY=function(){}; g.L.I9=function(){}; g.L.Pa=function(p,a){var l=this;if(this.L.has(a.layoutId)){p=this.L.get(a.layoutId);p=g.t(p);var y=p.next();for(a={};!y.done;a={n4:void 0},y=p.next())a.n4=y.value,y=new g.l_(function(S){return function(){var n=l.Ag.get(S.n4.triggerId);YB(l.U(),[n])}}(a),a.n4.durationMs),y.start(),this.S.set(a.n4.triggerId,y)}}; g.L.Dy=function(){};g.A(C$,g.D);C$.prototype.Os=function(p,a,l,y){if(this.Ag.has(a.triggerId))throw new W("Tried to register duplicate trigger for slot.");if(!(a instanceof I9))throw new W("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in VideoTransitionTriggerAdapter.");this.Ag.set(a.triggerId,new T7(p,a,l,y))}; C$.prototype.Fv=function(p){this.Ag.delete(p.triggerId)};iE.prototype.Nj=function(p){return p.kind==="AD_PLACEMENT_KIND_START"};g.A(sI,g.D);g.L=sI.prototype;g.L.logEvent=function(p){this.xY(p)}; g.L.jo=function(p,a,l){this.xY(p,void 0,void 0,void 0,a,void 0,void 0,void 0,a.adSlotLoggingData,void 0,void 0,l)}; g.L.L0=function(p,a,l,y){this.xY(p,void 0,void 0,void 0,a,l?l:void 0,void 0,void 0,a.adSlotLoggingData,l?l.adLayoutLoggingData:void 0,void 0,y);a=DV().resolve(ix(jd))==null?void 0:ud();p=a==null?void 0:a.adsSeenHotConfig;a=a==null?void 0:a.adsHotConfig;(p==null?0:p.logOnAdsSeen)&&(a==null?0:a.webEnablePremiumAdsSeenLogging)&&OZo(this,l?l:void 0,y)}; g.L.Md=function(p,a,l,y){s1(this.EO.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"trigger:",l,"slot:",a,"layout:",y);RK(this.L.get())&&this.xY(p,void 0,void 0,void 0,a,y?y:void 0,void 0,l,a.adSlotLoggingData,y?y.adLayoutLoggingData:void 0)}; g.L.Ua=function(p,a,l,y,S){this.xY(p,a,l,y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S)}; g.L.jT=function(p,a,l,y){this.xY("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,l,y,void 0,void 0,l.adSlotLoggingData,y?y.adLayoutLoggingData:void 0,{errorType:p,errorMessage:a})}; g.L.xY=function(p,a,l,y,S,n,V,z,d,G,B,c){var r=this;c=c===void 0?0:c;s1(this.EO.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"slot:",S,"layout:",n,"ping:",V,"Opportunity:",{opportunityType:a,associatedSlotId:l,bH9:y,QwO:z,adSlotLoggingData:d,adLayoutLoggingData:G});try{var w=function(){if(!r.EO.get().B.C().D("html5_disable_client_tmp_logs")&&p!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){p||hF("Empty PACF event type",S,n);var P=RK(r.L.get()),F={eventType:p,eventOrder:++r.eventCount},v={}; S&&(v.slotData=qr(P,S));n&&(v.layoutData=N7r(P,n));V&&(v.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:V.L.serializedAdPingMetadata,pingIndex:V.index});z&&(v.triggerData=lz(z.trigger,z.category));a&&(v.opportunityData=iCv(P,a,l,y));P={organicPlaybackContext:{contentCpn:uo(r.ac.get(),1).clientPlaybackNonce}};P.organicPlaybackContext.isLivePlayback=uo(r.ac.get(),1).ke;var I;P.organicPlaybackContext.isMdxPlayback=(I=uo(r.ac.get(),1))==null?void 0:I.isMdxPlayback; var b;if((b=uo(r.ac.get(),1))==null?0:b.daiEnabled)P.organicPlaybackContext.isDaiContent=!0;var O;if(I=(O=uo(r.ac.get(),2))==null?void 0:O.clientPlaybackNonce)P.adVideoPlaybackContext={adVideoCpn:I};P&&(v.externalContext=P);F.adClientData=v;d&&(F.serializedSlotAdServingData=d.serializedSlotAdServingDataEntry);G&&(F.serializedAdServingData=G.serializedAdServingDataEntry);B&&(F.errorInfo=B);g.mf("adsClientStateChange",{adsClientEvent:F})}}; c&&c>0?g.jv(g.W4(),function(){return w()},c):w()}catch(P){s1(this.EO.get(),"html5_log_pacf_logging_errors")&&g.jv(g.W4(),function(){hF(P instanceof Error?P:String(P),S,n,{pacf_message:"exception during pacf logging"})})}};var Kml=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.A(rRZ,sI);g.L=rRZ.prototype; g.L.jo=function(p,a,l){sI.prototype.jo.call(this,p,a,l);o8(this.EO.get())&&(l={},this.context.h3.wG("pacf",(l.et=p,l.st=a.slotType,l.si=a.slotId,l)))}; g.L.L0=function(p,a,l,y){var S=Kml.has(p);sI.prototype.L0.call(this,p,a,l,y);o8(this.EO.get(),S)&&(y={},this.context.h3.wG("pacf",(y.et=p,y.st=a.slotType,y.si=a.slotId,y.lt=l==null?void 0:l.layoutType,y.li=l==null?void 0:l.layoutId,y.p_ac=l==null?void 0:l.layoutId,y)))}; g.L.Ua=function(p,a,l,y,S){sI.prototype.Ua.call(this,p,a,l,y,S);o8(this.EO.get())&&(l={},this.context.h3.wG("pacf",(l.et=p,l.ot=a,l.ss=y==null?void 0:y.length,l)))}; g.L.Md=function(p,a,l,y){sI.prototype.Md.call(this,p,a,l,y);if(o8(this.EO.get())){var S={};this.context.h3.wG("pacf",(S.et=p,S.tt=l.trigger.triggerType,S.tc=l.category,S.st=a.slotType,S.si=a.slotId,S.lt=y==null?void 0:y.layoutType,S.li=y==null?void 0:y.layoutId,S.p_ac=y==null?void 0:y.layoutId,S))}}; g.L.jT=function(p,a,l,y){sI.prototype.jT.call(this,p,a,l,y);if(o8(this.EO.get(),!0)){var S={};this.context.h3.wG("perror",(S.ert=p,S.erm=a,S.st=l.slotType,S.si=l.slotId,S.lt=y==null?void 0:y.layoutType,S.li=y==null?void 0:y.layoutId,S.p_ac=y==null?void 0:y.layoutId,S))}}; g.L.xY=function(p,a,l,y,S,n,V,z,d,G,B){var c=this.EO.get();g.g5(c.B.C())?(c=this.EO.get(),c=g.sW(c.B.C().experiments,"H5_async_logging_delay_ms")):c=void 0;sI.prototype.xY.call(this,p,a,l,y,S,n,V,z,d,G,B,c)};TY.prototype.clear=function(){this.L.clear()};M6.prototype.state=function(){return this.L==="fulfilled"?{state:"fulfilled",value:this.result}:this.L==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; M6.prototype.j=function(p){tt(p)||jH(p)?z0(wN(p),this.j.bind(this),this.reject.bind(this)):(this.L="fulfilled",this.result=p,yoA(this))}; M6.prototype.reject=function(p){this.L="rejected";this.error=p;yoA(this)}; var jH=sO(function(p){return k5M(p)?p instanceof M6:!1});var WP=window.T8u||"es";rF.prototype.K_=function(p){this.client=p}; rF.prototype.L=function(){this.clear();this.csn=g.G2()}; rF.prototype.clear=function(){this.U.clear();this.S.clear();this.j.clear();this.csn=null};t2.prototype.K_=function(p){g.Es(jR().K_).bind(jR())(p)}; t2.prototype.clear=function(){g.Es(jR().clear).bind(jR())()};g.L=g4.prototype;g.L.K_=function(p){this.client=p}; g.L.vc=function(p,a){var l=this;a=a===void 0?{}:a;g.Es(function(){var y,S,n,V=((y=g.T(p==null?void 0:p.commandMetadata,g.LB))==null?void 0:y.rootVe)||((S=g.T(p==null?void 0:p.commandMetadata,T1M))==null?void 0:(n=S.screenVisualElement)==null?void 0:n.uiType);if(V){y=g.T(p==null?void 0:p.commandMetadata,ZUG);if(y==null?0:y.parentTrackingParams){var z=g.E8(y.parentTrackingParams);if(y.parentCsn)var d=y.parentCsn}else a.clickedVisualElement?z=a.clickedVisualElement:p.clickTrackingParams&&(z=g.E8(p.clickTrackingParams)); a:{y=g.T(p,g.SK);S=g.T(p,pAc);if(y){if(S=kiM(y,"VIDEO")){y={token:S,videoId:y.videoId};break a}}else if(S&&(y=kiM(S,"PLAYLIST"))){y={token:y,playlistId:S.playlistId};break a}y=void 0}a=Object.assign({},{cttAuthInfo:y,parentCsn:d},a);if(g.oO("expectation_logging")){var G;a.loggingExpectations=((G=g.T(p==null?void 0:p.commandMetadata,T1M))==null?void 0:G.loggingExpectations)||void 0}vj(l,V,z,a)}else g.Mf(new g.kc("Error: Trying to create a new screen without a rootVeType",p))})()}; g.L.clickCommand=function(p,a,l){p=p.clickTrackingParams;l=l===void 0?0:l;p?(l=g.G2(l===void 0?0:l))?($_(this.client,l,g.E8(p),a),a=!0):a=!1:a=!1;return a}; g.L.stateChanged=function(p,a,l){this.visualElementStateChanged(g.E8(p),a,l===void 0?0:l)}; g.L.visualElementStateChanged=function(p,a,l){l=l===void 0?0:l;l===0&&this.S.has(l)?this.Z.push([p,a]):zOM(this,p,a,l)};ag.prototype.fetch=function(p,a,l){var y=this,S=nao(p,a,l);return new Promise(function(n,V){function z(){if(l==null?0:l.kY)try{var G=y.handleResponse(p,S.status,S.response,l);n(G)}catch(B){V(B)}else n(y.handleResponse(p,S.status,S.response,l))} S.onerror=z;S.onload=z;var d;S.send((d=a.body)!=null?d:null)})}; ag.prototype.handleResponse=function(p,a,l,y){l=l.replace(")]}'","");try{var S=JSON.parse(l)}catch(n){g.Mf(new g.kc("JSON parsing failed after XHR fetch",p,a,l));if((y==null?0:y.kY)&&l)throw new g.eg(1,"JSON parsing failed after XHR fetch");S={}}a!==200&&(g.Mf(new g.kc("XHR API fetch failed",p,a,l)),S=Object.assign({},S,{errorMetadata:{status:a}}));return S};R5.getInstance=function(){var p=g.o4("ytglobal.storage_");p||(p=new R5,g.M8("ytglobal.storage_",p));return p}; R5.prototype.estimate=function(){var p,a,l;return g.R(function(y){p=navigator;return((a=p.storage)==null?0:a.estimate)?y.return(p.storage.estimate()):((l=p.webkitTemporaryStorage)==null?0:l.queryUsageAndQuota)?y.return(SRA()):y.return()})}; g.M8("ytglobal.storageClass_",R5);c6E.prototype.Tf=function(p){this.handleError(p)}; c6E.prototype.logEvent=function(p,a){switch(p){case "IDB_DATA_CORRUPTED":g.oO("idb_data_corrupted_killswitch")||this.L("idbDataCorrupted",a);break;case "IDB_UNEXPECTEDLY_CLOSED":this.L("idbUnexpectedlyClosed",a);break;case "IS_SUPPORTED_COMPLETED":g.oO("idb_is_supported_completed_killswitch")||this.L("idbIsSupportedCompleted",a);break;case "QUOTA_EXCEEDED":wJF(this,a);break;case "TRANSACTION_ENDED":this.U&&Math.random()<=.1&&this.L("idbTransactionEnded",a);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":p= Object.assign({},a,{hasWindowUnloaded:this.S}),this.L("idbTransactionAborted",p)}};var Ua={},LK$=g.k$("yt-player-local-media",{LN:(Ua.index={gp:2},Ua.media={gp:2},Ua.captions={gp:5},Ua),shared:!1,upgrade:function(p,a){a(2)&&(g.WY(p,"index"),g.WY(p,"media"));a(5)&&g.WY(p,"captions");a(6)&&(vE(p,"metadata"),vE(p,"playerdata"))}, version:5});var epM={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},Q7;a:{var hR=g.yI();hR=hR.toLowerCase();if(g.Gv(hR,"android")){var boK=hR.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(boK){var I6M=parseFloat(boK[1]);if(I6M<100){Q7=I6M;break a}}var Rpb=hR.match("("+Object.keys(epM).join("|")+")");Q7=Rpb?epM[Rpb[0]]:0}else Q7=void 0}var KZ=Q7,vu=KZ>=0;var lcv=oI(function(){var p,a;return(a=(p=window).matchMedia)==null?void 0:a.call(p,"(prefers-reduced-motion: reduce)").matches});var Jg;g.EQ=new ZB;Jg=0;var fn=kqM()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.up?!0:!1;var KH={oV:function(p){p[Z[38]]()}, bT:function(p,a){var l=p[0];p[0]=p[a%p[Z[7]]];p[a%p[Z[7]]]=l}, Kc:function(p,a){p[Z[33]](0,a)}};var aLr={b0T:"adunit",OCI:"detailpage",U7T:"editpage",XWY:"embedded",KKz:"leanback",PKv:"previewpage",CKl:"profilepage",u9:"unplugged",O8I:"playlistoverview",jKV:"sponsorshipsoffer",VrT:"shortspage",Zou:"handlesclaiming",SMT:"immersivelivepage",iC7:"creatormusic",U5s:"immersivelivepreviewpage",f1T:"admintoolyurt",PWV:"shortsaudiopivot",ro7:"consumption"};var Ebh=2592E3;var AR,usc,nE;AR={};g.k2=(AR.STOP_EVENT_PROPAGATION="html5-stop-propagation",AR.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",AR.IV_DRAWER_OPEN="ytp-iv-drawer-open",AR.MAIN_VIDEO="html5-main-video",AR.VIDEO_CONTAINER="html5-video-container",AR.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",AR.HOUSE_BRAND="house-brand",AR);usc={};nE=(usc.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",usc.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",usc);var Vzr={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Aw$={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},gYE={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"},rsM={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Hmr={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.b7.prototype.getLanguageInfo=function(){return this.Mc}; g.b7.prototype.getXtags=function(){if(!this.xtags){var p=this.id.split(";");p.length>1&&(this.xtags=p[1])}return this.xtags}; g.b7.prototype.toString=function(){return this.Mc.name}; g.b7.prototype.getLanguageInfo=g.b7.prototype.getLanguageInfo;NE.prototype.equals=function(p){return this.S===p.S&&this.L===p.L&&this.U===p.U&&this.reason===p.reason&&(!Le||this.Lx===p.Lx)}; NE.prototype.isLocked=function(){return this.U&&!!this.S&&this.S===this.L}; NE.prototype.compose=function(p){if(p.U&&Xf(p))return Fz;if(p.U||Xf(this))return p;if(this.U||Xf(p))return this;var a=this.S&&p.S?Math.max(this.S,p.S):this.S||p.S,l=this.L&&p.L?Math.min(this.L,p.L):this.L||p.L;a=Math.min(a,l);var y=0;Le&&(y=this.Lx!==0&&p.Lx!==0?Math.min(this.Lx,p.Lx):this.Lx===0?p.Lx:this.Lx);return Le&&a===this.S&&l===this.L&&y===this.Lx||!Le&&a===this.S&&l===this.L?this:Le?new NE(a,l,!1,l===this.L&&y===this.Lx?this.reason:p.reason,y):new NE(a,l,!1,l===this.L?this.reason:p.reason)}; NE.prototype.j=function(p){return!p.video||Le&&this.Lx!==0&&this.Lx=0}; g.L.u4=function(){var p=this.segments[this.segments.length-1];return p?p.endTime:NaN}; g.L.hP=function(){return this.segments[0].startTime}; g.L.YV=function(){return this.segments.length}; g.L.A4=function(){return 0}; g.L.Ot=function(p){return(p=this.iP(p))?p.Rc:-1}; g.L.y_=function(p){return(p=this.H1(p))?p.sourceURL:""}; g.L.getStartTime=function(p){return(p=this.H1(p))?p.startTime:0}; g.L.Cn=function(p){return this.getStartTime(p)+this.getDuration(p)}; g.L.EP=RR(1);g.L.isLoaded=function(){return this.segments.length>0}; g.L.H1=function(p){if(this.L&&this.L.Rc===p)return this.L;p=g.qV(this.segments,new Ap(p,0,0,0,""),function(a,l){return a.Rc-l.Rc}); return this.L=p>=0?this.segments[p]:null}; g.L.iP=function(p){if(this.L&&this.L.startTime<=p&&p=0?this.segments[p]:this.segments[Math.max(0,-p-2)]}; g.L.append=function(p){if(p.length)if(p=g.hf(p),this.segments.length){var a=this.segments.length?g.Jt(this.segments).endTime:0,l=p[0].Rc-this.xE();l>1&&cBf(this.segments);for(l=l>0?0:-l+1;lp.Rc&&this.index.rp()<=p.Rc+1}; g.L.update=function(p,a,l){this.index.append(p);Q1M(this.index,l);p=this.index;p.S=a;p.U="update"}; g.L.Dg=function(){return this.Tv()?!0:hg.prototype.Dg.call(this)}; g.L.CN=function(p,a){var l=this.index.y_(p),y=this.index.getStartTime(p),S=this.index.getDuration(p),n;a?S=n=0:n=this.info.Lx>0?this.info.Lx*S:1E3;return new PX([new EL(3,this,void 0,"liveCreateRequestInfoForSegment",p,y,S,0,n,!a)],l)}; g.L.Lb=function(){return this.Tv()?0:this.initRange.length}; g.L.P4=function(){return!1};HG.prototype.update=function(p){var a=void 0;this.S&&(a=this.S);var l=new HG,y=Array.from(p.getElementsByTagName("S"));if(y.length){var S=+eH(p,"timescale")||1,n=(+y[0].getAttribute("t")||0)/S,V=+eH(p,"startNumber")||0;l.j=n;var z=a?a.startSecs+a.DI:0,d=Date.parse(Tih(eH(p,"yt:segmentIngestTime")))/1E3;l.W=p.parentElement.tagName==="SegmentTemplate";l.W&&(l.K=eH(p,"media"));p=a?V-a.Rc:1;l.G=p>0?0:-p+1;p=g.t(y);for(y=p.next();!y.done;y=p.next()){y=y.value;for(var G=+y.getAttribute("d")/S,B=(+y.getAttribute("yt:sid")|| 0)/S,c=+y.getAttribute("r")||0,r=0;r<=c;r++)if(a&&V<=a.Rc)V++;else{var w=new YHf(V,z,G,d+B,n);l.L.push(w);var P=y;var F=S,v=w.startSecs;w=P.getAttribute("yt:cuepointTimeOffset");var I=P.getAttribute("yt:cuepointDuration");if(w&&I){w=Number(w);v=-w/F+v;F=Number(I)/F;I=P.getAttribute("yt:cuepointContext")||null;var b=P.getAttribute("yt:cuepointIdentifier")||"";P=P.getAttribute("yt:cuepointEvent")||"";P=new ET(v,F,I,b,kFW[P]||"unknown",w)}else P=null;P&&l.U.push(P);V++;z+=G;n+=G;d+=G+B}}l.L.length&& (l.S=g.Jt(l.L))}this.G=l.G;this.S=l.S||this.S;g.N7(this.L,l.L);g.N7(this.U,l.U);this.W=l.W;this.K=l.K;this.j===-1&&(this.j=l.getStreamTimeOffset())}; HG.prototype.getStreamTimeOffset=function(){return this.j===-1?0:this.j};g.A(zO,g.MW);g.L=zO.prototype;g.L.SW=function(){return this.A$}; g.L.iW=function(p,a){p=pg(this,p);return p>=0&&(a||!this.segments[p].pending)}; g.L.rp=function(){return this.bW?this.segments.length?this.iP(this.hP()).Rc:-1:g.MW.prototype.rp.call(this)}; g.L.hP=function(){if(this.uf)return 0;if(!this.bW)return g.MW.prototype.hP.call(this);if(!this.segments.length)return 0;var p=Math.max(g.Jt(this.segments).endTime-this.AJ,0);return this.BX>0&&this.iP(p).Rc0)return this.vL/1E3;if(!this.segments.length)return g.MW.prototype.u4.call(this);var p=this.xE();if(!this.bW||p<=this.segments[this.segments.length-1].Rc)p=this.segments[this.segments.length-1];else{var a=this.segments[this.segments.length-1];p=new Ap(p,Math.max(0,a.startTime-(a.Rc-p)*this.A$),this.A$,0,"sq/"+p,void 0,void 0,!0)}return this.uf?Math.min(this.AJ,p.endTime):p.endTime}; g.L.YV=function(){return this.bW?this.segments.length?this.xE()-this.rp()+1:0:g.MW.prototype.YV.call(this)}; g.L.xE=function(){var p=Math.min(this.l_,Math.max(g.MW.prototype.xE.call(this),this.LU)),a=this.AJ*1E3;a=this.vL>0&&this.vL0&&this.LU>0&&!a&&(a=this.iP(this.AJ))&&(p=Math.min(a.Rc-1,p));return p}; g.L.Tc=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.L.jB=function(p){var a=pg(this,p.Rc);if(a>=0)this.segments[a]=p;else if(this.segments.splice(-(a+1),0,p),this.PN&&p.Rc%(300/this.A$)===0){var l=this.segments[0].Rc,y=Math.floor(this.PN/this.A$);p=p.Rc-y;a=-(a+1)-y;a>0&&p>l&&(this.segments=this.segments.slice(a))}}; g.L.ip=function(){return this.LU}; g.L.TT=function(p){return sco?!this.S&&p>=0&&this.xE()<=p:g.MW.prototype.TT.call(this,p)}; g.L.iP=function(p){if(!this.bW)return g.MW.prototype.iP.call(this,p);if(!this.segments.length)return null;var a=this.segments[this.segments.length-1];if(p=a.endTime)a=a.Rc+Math.floor((p-a.endTime)/this.A$+1);else{a=w3(this.segments,function(y){return p=y.endTime?1:0}); if(a>=0)return this.segments[a];var l=-(a+1);a=this.segments[l-1];l=this.segments[l];a=Math.floor((p-a.endTime)/((l.startTime-a.endTime)/(l.Rc-a.Rc-1))+1)+a.Rc}return this.H1(a)}; g.L.H1=function(p){if(!this.bW)return g.MW.prototype.H1.call(this,p);if(!this.segments.length)return null;var a=pg(this,p);if(a>=0)return this.segments[a];var l=-(a+1);a=this.A$;if(l===0)var y=Math.max(0,this.segments[0].startTime-(this.segments[0].Rc-p)*a);else l===this.segments.length?(y=this.segments[this.segments.length-1],y=y.endTime+(p-y.Rc-1)*a):(y=this.segments[l-1],a=this.segments[l],a=(a.startTime-y.endTime)/(a.Rc-y.Rc-1),y=y.endTime+(p-y.Rc-1)*a);return new Ap(p,y,a,0,"sq/"+p,void 0,void 0, !0)}; var sco=!1;g.A(de,DC);g.L=de.prototype;g.L.tf=function(){return!0}; g.L.Dg=function(){return!0}; g.L.Vp=function(p){return this.Yk()&&p.U&&!p.j||!p.L.index.TT(p.Rc)}; g.L.K6=function(){}; g.L.TA=function(p,a){return typeof p!=="number"||isFinite(p)?DC.prototype.TA.call(this,p,a===void 0?!1:a):new PX([new EL(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.FP,void 0,this.FP*this.info.Lx)],"")}; g.L.CN=function(p,a){var l=l===void 0?!1:l;if(this.index.iW(p))return DC.prototype.CN.call(this,p,a);var y=this.index.getStartTime(p),S=Math.round(this.FP*this.info.Lx),n=this.FP;a&&(n=S=0);return new PX([new EL(l?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",p,y,n,void 0,S,!a)],p>=0?"sq/"+p:"")};g.A(m9,hg);g.L=m9.prototype;g.L.G4=function(){return!1}; g.L.Yk=function(){return!1}; g.L.tf=function(){return!1}; g.L.K6=function(){return new PX([new EL(1,this,void 0,"otfInit")],this.W)}; g.L.jF=function(){return null}; g.L.mw=function(p){this.Vp(p);return Jp$(this,RUZ(p),!1)}; g.L.TA=function(p,a){a=a===void 0?!1:a;p=this.index.Ot(p);a&&(p=Math.min(this.index.xE(),p+1));return Jp$(this,p,!0)}; g.L.vJ=function(p){p.info.type===1&&(this.L||(this.L=UD(p.S)),p.L&&p.L.uri==="http://youtube.com/streaming/otf/durations/112015"&&hcq(this,p.L))}; g.L.Vp=function(p){return p.U===0?!0:this.index.xE()>p.Rc&&this.index.rp()<=p.Rc+1}; g.L.Lb=function(){return 0}; g.L.P4=function(){return!1};var p$$=new Map,lrh=new Map,arF=new function(){var p=this;this.L=new Map;this.hg={JJV:function(){return p.L}}};g.L=g.RKM.prototype;g.L.iW=function(p){return p<=this.xE()}; g.L.A4=function(p){return this.offsets[p]}; g.L.getStartTime=function(p){return this.startTicks[p]/this.L}; g.L.Cn=function(p){return this.getStartTime(p)+this.getDuration(p)}; g.L.EP=RR(0);g.L.d$=function(){return NaN}; g.L.getDuration=function(p){p=this.gL(p);return p>=0?p/this.L:-1}; g.L.gL=function(p){return p+1=0}; g.L.u4=function(){return this.S?this.startTicks[this.count]/this.L:NaN}; g.L.hP=function(){return 0}; g.L.YV=function(){return this.count}; g.L.y_=function(){return""}; g.L.Ot=function(p){p=g.qV(this.startTicks.subarray(0,this.count),p*this.L);return p>=0?p:Math.max(0,-p-2)}; g.L.isLoaded=function(){return this.xE()>=0}; g.L.RB=function(p,a){if(p>=this.xE())return 0;var l=0;for(a=this.getStartTime(p)+a;pthis.getStartTime(p);p++)l=Math.max(l,dFo(this,p)/this.getDuration(p));return l}; g.L.resize=function(p){p+=2;var a=this.offsets;this.offsets=new Float64Array(p+1);var l=this.startTicks;this.startTicks=new Float64Array(p+1);for(p=0;p0&&p&&(l=l.range.end+1,p=Math.min(p,this.info.contentLength-l),p>0&&y.push(new EL(4,this,FY(l,p),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a)));return new PX(y)}; g.L.vJ=function(p){if(p.info.type===1){if(this.L)return;this.L=UD(p.S)}else if(p.info.type===2){if(this.W||this.index.xE()>=0)return;if(g.vA(this.info)){var a=this.index,l=g.KU(p);p=p.info.range.start;var y=g.KI(l,0,1936286840);l=oAA(y);a.L=l.timescale;var S=l.Zu;a.offsets[0]=l.B3+p+y.size;a.startTicks[0]=S;a.S=!0;p=l.RC.length;for(y=0;y0&&p===n[0].Ss)for(p=0;p=a+l)break}S.length||(p=new g.kc("b189619593",""+p,""+a,""+l),g.iO(p));return new PX(S)}; g.L.Mh=function(p){for(var a=this.TW(p.info),l=p.info.range.start+p.info.S,y=[],S=0;S=this.index.A4(l+1);)l++;return this.m$(l,a,p.U).mT}; g.L.Vp=function(p){p.I7();return this.Dg()?!0:p.range.end+1this.info.contentLength&&(a=new NV(a.start,this.info.contentLength-1)),new PX([new EL(4,p.L,a,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,p.clipId)]);p.type===4&&(p=this.TW(p),p=p[p.length-1]);var l=0,y=p.range.start+p.S+p.U;p.type===3&&(p.I7(),l=p.Rc,y===p.range.end+1&&(l+=1));return this.m$(l,y,a)}; g.L.mw=function(){return null}; g.L.TA=function(p,a){a=a===void 0?!1:a;p=this.index.Ot(p);a&&(p=Math.min(this.index.xE(),p+1));return this.m$(p,this.index.A4(p),0,void 0)}; g.L.G4=function(){return!0}; g.L.Yk=function(){return!0}; g.L.tf=function(){return!1}; g.L.Lb=function(){return this.indexRange.length+this.initRange.length}; g.L.P4=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Yb={},x0r=(Yb.COLOR_PRIMARIES_BT709="bt709",Yb.COLOR_PRIMARIES_BT2020="bt2020",Yb.COLOR_PRIMARIES_UNKNOWN=null,Yb.COLOR_PRIMARIES_UNSPECIFIED=null,Yb),q2={},ZJf=(q2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",q2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",q2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",q2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",q2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,q2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,q2);g.AQ.prototype.getName=function(){return this.name}; g.AQ.prototype.getId=function(){return this.id}; g.AQ.prototype.getIsDefault=function(){return this.isDefault}; g.AQ.prototype.toString=function(){return this.name}; g.AQ.prototype.getName=g.AQ.prototype.getName;g.AQ.prototype.getId=g.AQ.prototype.getId;g.AQ.prototype.getIsDefault=g.AQ.prototype.getIsDefault;var ARM=/action_display_post/;var pe$,yz,Su;g.A(KE,g.qu);g.L=KE.prototype;g.L.isLoading=function(){return this.state===1}; g.L.M5=function(){return this.state===3}; g.L.eDm=function(p){var a=p.getElementsByTagName("Representation");if(p.getElementsByTagName("SegmentList").length>0||p.getElementsByTagName("SegmentTemplate").length>0){this.ke=this.S=!0;this.K||(this.K=new UuO);W3E(this.K,p);this.publish("refresh");for(p=0;p=0?B=uJ(r):c=c+"?range="+r}d.call(z,new Ap(G.Rc,G.startSecs,G.DI,G.L,c,B,G.S))}y=S}l.update(y,this.isLive,this.OO)}PXM(this.K);return!0}this.duration=idA(eH(p,"mediaPresentationDuration"));a:{for(p= 0;p0))return this.Lh()-p}}p=this.L;for(var a in p){var l=p[a].index;if(l.isLoaded()&&!QX(p[a].info.mimeType))return l.hP()}return 0}; g.L.getStreamTimeOffset=function(){return this.Z}; g.L.d$=function(p){for(var a in this.L){var l=this.L[a].index;if(l.isLoaded()){var y=l.Ot(p),S=l.d$(y);if(S)return S+p-l.getStartTime(y)}}return NaN}; var Bz=null,MlK,cz=!((MlK=navigator.mediaCapabilities)==null||!MlK.decodingInfo),Vuq={commentary:1,alternate:2,dub:3,main:4};var X$=new Set,F$=new Map;tZ.prototype.clone=function(p){return new tZ(this.flavor,p,this.S,this.experiments)}; tZ.prototype.mS=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; tZ.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 mwG={},J$$=(mwG.playready=["com.youtube.playready","com.microsoft.playready"],mwG.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],mwG),JR={},BCe=(JR.widevine="DRM_SYSTEM_WIDEVINE",JR.fairplay="DRM_SYSTEM_FAIRPLAY",JR.playready="DRM_SYSTEM_PLAYREADY",JR),fB={},tll=(fB.widevine=1,fB.fairplay=2,fB.playready=3,fB);var ge;g.A(Z7,g.D); Z7.prototype.initialize=function(p,a){for(var l=this,y=g.t(Object.keys(p)),S=y.next();!S.done;S=y.next()){S=g.t(p[S.value]);for(var n=S.next();!n.done;n=S.next())if(n=n.value,n.Hy)for(var V=g.t(Object.keys(n.Hy)),z=V.next();!z.done;z=V.next()){var d=z.value;z=d;d=J$$[d];!d&&this.D("html5_enable_vp9_fairplay")&&z==="fairplay"&&(d=["com.youtube.fairplay.sbdl"]);if(d){d=g.t(d);for(var G=d.next();!G.done;G=d.next())G=G.value,this.U[G]=this.U[G]||new tZ(z,G,n.Hy[z],this.Ws.experiments),this.L[z]=this.L[z]|| {},this.L[z][n.mimeType]=!0}}}hd()&&(this.U["com.youtube.fairplay"]=new tZ("fairplay","com.youtube.fairplay","",this.Ws.experiments),this.D("html5_enable_vp9_fairplay")||(this.L.fairplay=this.L.fairplay||{},this.L.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.L.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.S=f5F(a,this.useCobaltWidevine,this.D("html5_enable_safari_fairplay")&&!0,this.D("html5_enable_vp9_fairplay")).filter(function(B){return!!l.U[B]})}; Z7.prototype.D=function(p){return this.Ws.experiments.Cz(p)};var jWc={"":"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"};eGF.prototype.D=function(p){return this.experiments.Cz(p)};var vha={RED:"red",GFc:"white"};sLq.prototype.Zy=function(p){if(p.J6!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return C2e(this,p)}; sLq.prototype.Cz=function(p){return this.flags.get(""+p)==="true"};Wh.prototype.RQ=function(){return this.U}; Wh.prototype.Ci=function(){return this.S}; Wh.prototype.Cz=function(p){p=this.Zy(p);JSON.stringify(p);return p==="true"}; Wh.prototype.Zy=function(p){return this.flags[p]};var ABa=Promise.resolve(),SEM=window.queueMicrotask?window.queueMicrotask.bind(window):g1l;TA.prototype.canPlayType=function(p,a){p=p.canPlayType?p.canPlayType(a):!1;bp?p=p||Wmc[a]:KZ===2.2?p=p||Hoc[a]:e8()&&(p=p||Dwb[a]);return!!p}; TA.prototype.isTypeSupported=function(p){return this.Sl?window.cast.receiver.platform.canDisplayType(p):x_(p)}; var Hoc={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Dwb={"application/x-mpegURL":"maybe"},Wmc={"application/x-mpegURL":"maybe"};g.A(eK,g.qu);eK.prototype.add=function(p,a){if(!this.items[p]&&(a.FV||a.Rk||a.nW)){var l=this.items,y=a;Object.isFrozen&&!Object.isFrozen(a)&&(y=Object.create(a),Object.freeze(y));l[p]=y;this.publish("vast_info_card_add",p)}}; eK.prototype.remove=function(p){var a=this.get(p);delete this.items[p];return a}; eK.prototype.get=function(p){return this.items[p]||null}; eK.prototype.isEmpty=function(){return g.cL(this.items)};LR.prototype.encrypt=function(p){this.L.exports.AES128CTRCipher_encrypt(this.cipher,p.byteOffset,p.byteLength);return p}; LR.prototype.Gm=function(){return this.cipher===0}; LR.prototype.dispose=function(){this.L.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Rmo.prototype.q5=function(p,a){a=a===void 0?1:a;this.EZ+=a;this.S+=p;p/=a;for(var l=0;l0)y+="."+CH[S].toFixed(0)+"_"+l.L[S].toFixed(0);else break;l=y}l&&(p[a]=l)}this.L=new xuf;return p}; g.L.toString=function(){return""};g.L=xzv.prototype;g.L.isActive=function(){return!1}; g.L.uy=function(){}; g.L.hA=function(){}; g.L.Zw=function(){}; g.L.f3=function(p,a){a()}; g.L.SM=function(){return{}}; g.L.toString=function(){return""};var io8=new xzv,TJa=!!+ki("html5_enable_profiler"),NJB=!!+ki("html5_onesie_enable_profiler"),pd=TJa||NJB?new FV$:io8,byE=TJa?pd:io8,BK=NJB?pd:io8;iOe.prototype.emscripten_notify_memory_growth=function(){};g.L=j3.prototype;g.L.malloc=function(p){return this.exports.malloc(p)}; g.L.free=function(p){this.exports.free(p)}; g.L.realloc=function(p,a){return this.exports.realloc(p,a)}; g.L.DK=function(p){if(p.buffer!==this.exports.memory.buffer){var a=this.malloc(p.byteLength);a=new Uint8Array(this.exports.memory.buffer,a,p.byteLength);a.set(p);return a}}; g.L.wz=function(p){if(p.buffer===this.exports.memory.buffer){var a=p.slice();this.free(p.byteOffset);return a}}; var bvo=new function(){this.L=this.S="WebAssembly"in window},BY="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); BK.uy(j3,{DK:function(p){return{profile:"copyj2w",EZ:p===void 0?0:Math.ceil(p.byteLength/16)}}, wz:function(p){return{profile:"copyw2j",EZ:p===void 0?0:Math.ceil(p.byteLength/16)}}});mZ.prototype.encrypt=function(p,a){try{return this.L.wz(WN$(this,p,a))}catch(l){g.Mf(Error("ocwce: wasm encrypt failed: "+l))}}; mZ.prototype.Gm=function(){return this.U}; mZ.prototype.dispose=function(){this.Gm()||(g.p3(this.S),this.L.free(this.j.byteOffset),this.U=!0)};g.A(xrA,g.D);g.A(FUo,g.D);var lk;ye.prototype.add=function(p){if(this.pos+20>this.data.length){var a=new Uint8Array(this.data.length*2);a.set(this.data);this.data=a}for(;p>31;)this.data[this.pos++]=lk[(p&31)+32],p>>=5;this.data[this.pos++]=lk[p|0]}; ye.prototype.Ut=function(){return g.aE(this.data.subarray(0,this.pos))}; ye.prototype.reset=function(){this.pos=0};Dx.prototype.P9=function(p,a){var l=Math.pow(this.alpha,p);this.L=a*(1-l)+l*this.L;this.S+=p}; Dx.prototype.Cv=function(){return this.L/(1-Math.pow(this.alpha,this.S))};Hp.prototype.P9=function(p,a){for(var l=0;l<10;l++){var y=this.L[l],S=y+(l===0?p:0),n=1*Math.pow(2,l);if(S<=n)break;y=Math.min(1,(S-n*.5)/y);for(S=0;S<16;S++)n=this.values[l*16+S]*y,this.values[(l+1)*16+S]+=n,this.L[l+1]+=n,this.values[l*16+S]-=n,this.L[l]-=n}y=l=0;S=8192;a>8192&&(l=Math.ceil(Math.log(a/8192)/Math.log(2)),y=8192*Math.pow(2,l-1),S=y*2);l+2>16?this.values[15]+=p:(a=(a-y)/(S-y),this.values[l]+=p*(1-a),this.values[l+1]+=p*a);this.L[0]+=p}; Hp.prototype.Cv=function(){var p=p===void 0?this.S:p;var a=a===void 0?.02:a;var l=l===void 0?.98:l;for(var y=this.U,S=0;S<16;S++)y[S]=this.values[S];S=this.L[0];for(var n=1;n<11;n++){var V=this.L[n];if(V===0)break;for(var z=Math.min(1,(p-S)/V),d=0;d<16;d++)y[d]+=this.values[n*16+d]*z;S+=V*z;if(z<1)break}for(n=p=V=0;n<16;n++){z=V+y[n]/S;p+=Math.max(0,Math.min(z,l)-Math.max(V,a))*(n>0?8192*Math.pow(2,n-1):0);if(z>l)break;V=z}return p/(l-a)};Wp.prototype.P9=function(p,a){p=Math.min(this.L,Math.max(1,Math.round(p*this.resolution)));p+this.S>=this.L&&(this.U=!0);for(;p--;)this.values[this.S]=a,this.S=(this.S+1)%this.L;this.KE=!0}; Wp.prototype.percentile=function(p){var a=this;if(!this.U&&this.S===0)return 0;this.KE&&(g.Ei(this.W,function(l,y){return a.values[l]-a.values[y]}),this.KE=!1); return this.values[this.W[Math.round(p*((this.U?this.L:this.S)-1))]]||0}; Wp.prototype.Cv=function(){return this.G?(this.percentile(this.j-this.G)+this.percentile(this.j)+this.percentile(this.j+this.G))/3:this.percentile(this.j)};g.A(iX,g.D);iX.prototype.OO=function(){var p;(p=this.nz)==null||p.start();Aj(this)&&this.policy.Z&&(this.TR?this.TR.N8():this.Kz())};cIo.prototype.D=function(p){return this.experiments.Cz(p)};g.A(xqZ,g.D);var Eh8="blogger discover-ads ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),soq={i0m:"caoe",Z0O:"capsv",XGl:"cbrand",yoz:"cbr",e37:"cbrver",lbT:"cchip",tRm:"ccappver",uP7:"ccrv",kfO:"cfrmver",Xom:"c",ezO:"cver",fzc:"ctheme",yk7:"cplayer",f_T:"cmodel",WE:"cnetwork",a_Y:"cos",OS_VERSION:"cosver",J47:"cplatform",nrc:"crqyear"};g.A(tWM,g.D);g.L=tWM.prototype;g.L.D=function(p){return this.experiments.Cz(p)}; g.L.RQ=function(){return this.experiments.RQ()}; g.L.Ci=function(){return this.experiments.Ci()}; g.L.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.L.getVideoUrl=function(p,a,l,y,S,n,V){a={list:a};l&&(S?a.time_continue=l:a.t=l);l=V?"music.youtube.com":g.Mk(this);S=l==="www.youtube.com";!n&&y&&S?n="https://youtu.be/"+p:g.PD(this)?(n="https://"+l+"/fire",a.v=p):(n&&S?(n=this.protocol+"://"+l+"/shorts/"+p,y&&(a.feature="share")):(n=this.protocol+"://"+l+"/watch",a.v=p),bp&&(p=TAe())&&(a.ebc=p));return g.C2(n,a)}; g.L.getVideoEmbedCode=function(p,a,l,y){a="https://"+g.Mk(this)+"/embed/"+a;y&&(a=g.C2(a,{list:y}));y=l.width;l=l.height;a=cR(a);p=cR(p!=null?p:"YouTube video player");return'')}; g.L.supportsGaplessAudio=function(){return g.TE&&!bp&&en()>=74||g.sX&&g.PT(68)?!0:!1}; g.L.supportsGaplessShorts=function(){return!this.D("html5_enable_short_gapless")||this.r7||g.yd?!1:!0}; g.L.getPlayerType=function(){return this.L.cplayer}; g.L.ao=function(){return this.GO}; var X7r=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],bzA=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],QCf=[19];var ai={},wtq=(ai["140"]={numChannels:2},ai["141"]={numChannels:2},ai["251"]={audioSampleRate:48E3,numChannels:2},ai["774"]={audioSampleRate:48E3,numChannels:2},ai["380"]={numChannels:6},ai["328"]={numChannels:6},ai["773"]={},ai),ly={},r3E=(ly["1"]='video/mp4; codecs="av01.0.08M.08"',ly["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',ly["1e"]='video/mp4; codecs="av01.0.08M.08"',ly["9"]='video/webm; codecs="vp9"',ly["("]='video/webm; codecs="vp9"',ly["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', ly.h='video/mp4; codecs="avc1.64001e"',ly.H='video/mp4; codecs="avc1.64001e"',ly.o='audio/webm; codecs="opus"',ly.a='audio/mp4; codecs="mp4a.40.2"',ly.ah='audio/mp4; codecs="mp4a.40.2"',ly.mac3='audio/mp4; codecs="ac-3"; channels=6',ly.meac3='audio/mp4; codecs="ec-3"; channels=6',ly.i='audio/mp4; codecs="iamf.001.001.Opus"',ly),yJ={},vjM=(yJ["337"]={width:3840,height:2160,bitrate:3E7,fps:30},yJ["336"]={width:2560,height:1440,bitrate:15E6,fps:30},yJ["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, yJ["702"]={width:7680,height:4320,bitrate:4E7,fps:60},yJ["701"]={width:3840,height:2160,bitrate:2E7,fps:60},yJ["700"]={width:2560,height:1440,bitrate:1E7,fps:60},yJ["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},yJ["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},yJ["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},yJ["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, yJ["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},yJ["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},yJ["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},yJ["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},yJ["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},yJ["315"]={width:3840,height:2160,bitrate:2E7,fps:60},yJ["308"]={width:2560, height:1440,bitrate:1E7,fps:60},yJ["303"]={width:1920,height:1080,bitrate:5E6,fps:60},yJ["302"]={width:1280,height:720,bitrate:25E5,fps:60},yJ["299"]={width:1920,height:1080,bitrate:75E5,fps:60},yJ["298"]={width:1280,height:720,bitrate:35E5,fps:60},yJ["571"]={width:7680,height:4320,bitrate:3E7,fps:60},yJ["401"]={width:3840,height:2160,bitrate:15E6,fps:60},yJ["400"]={width:2560,height:1440,bitrate:75E5,fps:60},yJ["399"]={width:1920,height:1080,bitrate:2E6,fps:60},yJ["398"]={width:1280,height:720,bitrate:1E6, fps:60},yJ["397"]={width:854,height:480,bitrate:4E5,fps:30},yJ["396"]={width:640,height:360,bitrate:25E4,fps:30},yJ["787"]={width:1080,height:608,bitrate:2E5,fps:30},yJ["788"]={width:1080,height:608,bitrate:4E5,fps:30},yJ["572"]={width:7680,height:4320,bitrate:3E7,fps:60},yJ["555"]={width:3840,height:2160,bitrate:15E6,fps:60},yJ["554"]={width:2560,height:1440,bitrate:75E5,fps:60},yJ["553"]={width:1920,height:1080,bitrate:2E6,fps:60},yJ["552"]={width:1280,height:720,bitrate:1E6,fps:60},yJ["551"]={width:854, height:480,bitrate:4E5,fps:30},yJ["550"]={width:640,height:360,bitrate:25E4,fps:30},yJ["313"]={width:3840,height:2160,bitrate:8E6,fps:30},yJ["271"]={width:2560,height:1440,bitrate:4E6,fps:30},yJ["248"]={width:1920,height:1080,bitrate:2E6,fps:30},yJ["247"]={width:1280,height:720,bitrate:15E5,fps:30},yJ["244"]={width:854,height:480,bitrate:52E4,fps:30},yJ["243"]={width:640,height:360,bitrate:28E4,fps:30},yJ["137"]={width:1920,height:1080,bitrate:4E6,fps:30},yJ["136"]={width:1280,height:720,bitrate:3E6, fps:30},yJ["135"]={width:854,height:480,bitrate:1E6,fps:30},yJ["385"]={width:1920,height:1080,bitrate:6503313,fps:60},yJ["376"]={width:1280,height:720,bitrate:5706960,fps:60},yJ["384"]={width:1280,height:720,bitrate:3660979,fps:60},yJ["225"]={width:1280,height:720,bitrate:5805E3,fps:30},yJ["224"]={width:1280,height:720,bitrate:453E4,fps:30},yJ["145"]={width:1280,height:720,bitrate:2682052,fps:30},yJ);g.L=U4.prototype;g.L.getInfo=function(){return this.L}; g.L.Nw=function(){return null}; g.L.Q3=function(){var p=this.Nw();return p?(p=g.yn(p.bM),Number(p.expire)):NaN}; g.L.iz=function(){}; g.L.getHeight=function(){return this.L.video.height};ere.prototype.build=function(){j3v(this);var p=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],a={};a:if(this.L)var l=this.L;else{l="";for(var y=g.t(this.U),S=y.next();!S.done;S=y.next())if(S=S.value,S.Mc){if(S.Mc.getIsDefault()){l=S.Mc.getId();break a}l||(l=S.Mc.getId())}}y=g.t(this.U);for(S=y.next();!S.done;S=y.next())if(S=S.value,this.G||!S.Mc||S.Mc.getId()===l)a[S.itag]||(a[S.itag]=[]),a[S.itag].push(S);l=g.t(this.S);for(y=l.next();!y.done;y=l.next())if(y=y.value,S=a[y.L]){S=g.t(S);for(var n=S.next();!n.done;n= S.next()){var V=p,z=V.push;n=n.value;var d="#EXT-X-MEDIA:TYPE=AUDIO,",G="YES",B="audio";if(n.Mc){B=n.Mc;var c=B.getId().split(".")[0];c&&(d+='LANGUAGE="'+c+'",');(this.L?this.L===B.getId():B.getIsDefault())||(G="NO");B=B.getName()}c="";y!==null&&(c=y.itag.toString());c=D3(this,n.url,c);d=d+('NAME="'+B+'",DEFAULT='+(G+',AUTOSELECT=YES,GROUP-ID="'))+(zye(n,y)+'",URI="'+(c+'"'));z.call(V,d)}}l=g.t(this.W);for(y=l.next();!y.done;y=l.next())y=y.value,S=sWa,y=(V=y.Mc)?'#EXT-X-MEDIA:URI="'+D3(this,y.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+S+'",LANGUAGE="'+V.getId()+'",NAME="'+V.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,y&&p.push(y);l=this.W.length>0?sWa:void 0;y=g.t(this.S);for(S=y.next();!S.done;S=y.next())S=S.value,z=a[S.L],V=void 0,((V=z)==null?void 0:V.length)>0&&(V=S,z=z[0],z="#EXT-X-STREAM-INF:BANDWIDTH="+(V.bitrate+z.bitrate)+',CODECS="'+(V.codecs+","+z.codecs+'",RESOLUTION=')+(V.width+"x"+V.height+',AUDIO="')+(zye(z,V)+'",')+(l?'SUBTITLES="'+l+'",':"")+"CLOSED-CAPTIONS=NONE",V.fps>1&&(z+= ",FRAME-RATE="+V.fps),V.g6&&(z+=",VIDEO-RANGE="+V.g6),p.push(z),p.push(D3(this,S.url,"")));return p.join("\n")}; var sWa="text";g.A(VQ,U4);VQ.prototype.Q3=function(){return this.expiration}; VQ.prototype.Nw=function(){if(!this.bM||this.bM.Gm()){var p=this.S.build();p="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(p);this.bM=new Tx(p)}return this.bM};g.A(qe,U4);qe.prototype.Nw=function(){return new Tx(this.S.RX())}; qe.prototype.iz=function(){this.S=ik(4,this.S)};g.A(nY,U4);nY.prototype.Nw=function(){return new Tx(this.S)};var SI={},MXr=(SI.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",SI.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",SI.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",SI.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",SI);g.L=g.uZ.prototype;g.L.getId=function(){return this.id}; g.L.getName=function(){return this.name}; g.L.isServable=function(){return this.L}; g.L.RX=function(){return this.url}; g.L.getXtags=function(){return this.xtags}; g.L.toString=function(){return this.languageCode+": "+g.Ln(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.L.equals=function(p){return p?this.toString()===p.toString():!1}; g.L.Me=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var r$F={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},wuF={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},$RZ=/^(\d*)_((\d*)_?(\d*))$/;var jcZ={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},cGM={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var nd={},Uwa=(nd.ALWAYS=1,nd.BY_REQUEST=3,nd.UNKNOWN=void 0,nd),VJ={},QW8=(VJ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",VJ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",VJ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",VJ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",VJ);var swf; swf=function(p){for(var a=Object.keys(p),l={},y=0;yy-a?-1:p}; g.L.Xp=function(){return this.S.xE()}; g.L.TE=function(){return this.S.rp()}; g.L.rT=function(p){this.S=p};g.A(Bc,Gt);Bc.prototype.S=function(p,a){return Gt.prototype.S.call(this,"$N|"+p,a)}; Bc.prototype.W=function(p,a,l){return new EVq(p,a,l,this.isLive)};g.A(g.rO,g.qu);g.L=g.rO.prototype; g.L.setData=function(p){p=p||{};var a=p.errordetail;a!=null&&(this.errorDetail=a);var l=p.errorcode;l!=null?this.errorCode=l:p.status==="fail"&&(this.errorCode="auth");var y=p.reason;y!=null&&(this.errorReason=y);var S=p.subreason;S!=null&&(this.Aw=S);this.clientPlaybackNonce||(this.clientPlaybackNonce=p.cpn||(this.Ws.ao()?"r"+g.VI(15):g.VI(16)));this.Yv=ID(this.Ws.Yv,p.livemonitor);daA(this,p);var n=p.raw_player_response;if(n)this.U8=n;else{var V=p.player_response;V&&(n=JSON.parse(V))}n&&(this.playerResponse= n);if(this.playerResponse){var z=this.playerResponse.annotations;if(z)for(var d=g.t(z),G=d.next();!G.done;G=d.next()){var B=G.value.playerAnnotationsUrlsRenderer;if(B){B.adsOnly&&(this.yO=!0);var c=B.loadPolicy;c&&(this.annotationsLoadPolicy=Uwa[c]);var r=B.invideoUrl;r&&(this.nz=UY(r));break}}var w=this.playerResponse.attestation;w&&zYZ(this,w);var P=this.playerResponse.cotn;P&&(this.cotn=P);var F=this.playerResponse.heartbeatParams;if(F){this.zX=!0;var v=F.heartbeatToken;v&&(this.drmSessionId=F.drmSessionId|| "",this.heartbeatToken=v,this.q$=Number(F.intervalMilliseconds),this.f4=Number(F.maxRetries),this.HS=!!F.softFailOnError,this.PS=!!F.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=F.heartbeatServerData;var I;this.S8=!((I=F.heartbeatAttestationConfig)==null||!I.requiresAttestation)}var b=this.playerResponse.messages;b&&BG8(this,b);var O=this.playerResponse.overlay;if(O){var m=O.playerControlsOverlayRenderer;if(m)if(a$f(this,m.controlBgHtml),m.mutedAutoplay){var H=g.T(m.mutedAutoplay,y9c);if(H&& H.endScreen){var Y=g.T(H.endScreen,Skc);Y&&Y.text&&(this.e6=g.Sw(Y.text))}}else this.mutedAutoplay=!1}var N=this.playerResponse.playabilityStatus;if(N){var yo=N.backgroundability;yo&&yo.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var zq,S$;if((zq=N.offlineability)==null?0:(S$=zq.offlineabilityRenderer)==null?0:S$.offlineable)this.offlineable=!0;var BE=N.contextParams;BE&&(this.contextParams=BE);var f=N.pictureInPicture;f&&f.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);N.playableInEmbed&&(this.allowEmbed=!0);var xh=N.ypcClickwrap;if(xh){var Nf=xh.playerLegacyDesktopYpcClickwrapRenderer,nc=xh.ypcRentalActivationRenderer;if(Nf)this.Wo=Nf.durationMessage||"",this.SD=!0;else if(nc){var yU=nc.durationMessage;this.Wo=yU?g.Sw(yU):"";this.SD=!0}}var kh=N.errorScreen;if(kh){if(kh.playerLegacyDesktopYpcTrailerRenderer){var OM=kh.playerLegacyDesktopYpcTrailerRenderer;this.CU=OM.trailerVideoId||"";var q7=kh.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var u_=q7&&q7.ypcTrailerRenderer}else if(kh.playerLegacyDesktopYpcOfferRenderer)OM= kh.playerLegacyDesktopYpcOfferRenderer;else if(kh.ypcTrailerRenderer){u_=kh.ypcTrailerRenderer;var i_=u_.fullVideoMessage;this.Em=i_?g.Sw(i_):"";var p8,G5;this.CU=((p8=g.T(u_,n9W))==null?void 0:(G5=p8.videoDetails)==null?void 0:G5.videoId)||""}OM&&(this.w8=OM.itemTitle||"",OM.itemUrl&&(this.Oo=OM.itemUrl),OM.itemBuyUrl&&(this.o$=OM.itemBuyUrl),this.qG=OM.itemThumbnail||"",this.l1=OM.offerHeadline||"",this.W8=OM.offerDescription||"",this.g3=OM.offerId||"",this.zo=OM.offerButtonText||"",this.gs=OM.offerButtonFormattedText|| null,this.r8=OM.overlayDurationMsec||NaN,this.Em=OM.fullVideoMessage||"",this.V4=!0);if(u_){var km=g.T(u_,n9W);if(km)this.XT={raw_player_response:km};else{var Kc=g.T(u_,wA7);this.XT=Kc?vv(Kc):null}this.V4=!0}}}var lF=this.playerResponse.playbackTracking;if(lF){var eb=p,C=qZ(lF.googleRemarketingUrl);C&&(this.googleRemarketingUrl=C);var ar=qZ(lF.youtubeRemarketingUrl);ar&&(this.youtubeRemarketingUrl=ar);var e_={},qQ=qZ(lF.ptrackingUrl);if(qQ){var jb=TO(qQ),Qo=jb.oid;Qo&&(this.QG=Qo);var pc=jb.pltype; pc&&(this.Dc=pc);var yB=jb.ptchn;yB&&(this.Bq=yB);var U7=jb.ptk;U7&&(this.Vu=encodeURIComponent(U7));var K=jb.m;K&&(this.cH=K)}var x=qZ(lF.qoeUrl);if(x){for(var e=g.yn(x),k=g.t(Object.keys(e)),Q=k.next();!Q.done;Q=k.next()){var or=Q.value,U=e[or];e[or]=Array.isArray(U)?U.join(","):U}this.KY=e;var J=e.cat;J&&(this.D("html5_enable_qoe_cat_list")?this.er=this.er.concat(J.split(",")):this.Ko=J);var M=e.live;M&&(this.Qt=M);var e$=e.drm_product;e$&&(this.drmProduct=e$)}var PM=qZ(lF.videostatsPlaybackUrl); if(PM){var Ze=TO(PM),za=Ze.adformat;if(za){eb.adformat=za;var hZ=this.C(),KA=Ga$(za,this.Go,hZ.j,hZ.Z);KA&&(this.adFormat=KA)}var aO=Ze.aqi;aO&&(eb.ad_query_id=aO);var vM=Ze.autoplay;vM&&(this.Sj=vM=="1",this.c8=vM=="1");var WM=Ze.autonav;WM&&(this.isAutonav=WM=="1");var bF=Ze.delay;bF&&(this.yQ=bo(bF));var CF=Ze.ei;CF&&(this.eventId=CF);var uF=hT(Ze.adcontext);if(uF)try{var M7=ym7(uF);M7&&(this.Wd=M7)}catch(n2W){g.Mf(Error("Malformed adContext"))}if(uF||za)this.Sj=!0;var b_=Ze.feature;b_&&(this.E9= b_);var z5=Ze.list;z5&&(this.playlistId=z5);var R2=Ze.of;R2&&(this.Ze=R2);var f0=Ze.osid;f0&&(this.osid=f0);var S_=Ze.referrer;S_&&(this.referrer=S_);var UW=Ze.sdetail;UW&&(this.n6=UW);var mc=Ze.ssrt;mc&&(this.vk=mc=="1");var I1=Ze.subscribed;I1&&(this.subscribed=I1=="1");var gW=Ze.uga;gW&&(this.userGenderAge=gW);var xp=Ze.upt;xp&&(this.vR=xp);var TF=Ze.vm;TF&&(this.videoMetadata=TF);e_.playback=Ze}var pX=qZ(lF.videostatsWatchtimeUrl);if(pX){var ak=TO(pX),z6=ak.ald;z6&&(this.qa=z6);e_.watchtime=ak}var vf= qZ(lF.atrUrl);if(vf){var sh=TO(vf);e_.atr=sh}var Y9=qZ(lF.engageUrl);if(Y9){var Uh=TO(Y9);e_.engage=Uh}this.Xq=e_;if(lF.promotedPlaybackTracking){var lK=lF.promotedPlaybackTracking;lK.startUrls&&(this.F4=lK.startUrls);lK.firstQuartileUrls&&(this.lO=lK.firstQuartileUrls);lK.secondQuartileUrls&&(this.sK=lK.secondQuartileUrls);lK.thirdQuartileUrls&&(this.Au=lK.thirdQuartileUrls);lK.completeUrls&&(this.Da=lK.completeUrls);lK.engagedViewUrls&&(lK.engagedViewUrls.length>1&&g.Mf(new g.kc("There are more than one engaged_view_urls.")), this.j_=lK.engagedViewUrls[0])}}var Fs=this.playerResponse.playerCueRanges;Fs&&Fs.length>0&&(this.cueRanges=Fs);var Nw=this.playerResponse.playerCueRangeSet;Nw&&g.SH(this,Nw);a:{var K0=this.playerResponse.adPlacements;if(K0)for(var lW=g.t(K0),e2=lW.next();!e2.done;e2=lW.next()){var yj=void 0,Sj=void 0,nX=(yj=e2.value.adPlacementRenderer)==null?void 0:(Sj=yj.renderer)==null?void 0:Sj.videoAdTrackingRenderer;if(nX){var Vj=nX;break a}}Vj=null}var bB=Vj;lF&&lF.promotedPlaybackTracking&&bB&&g.Mf(new g.kc("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var dW;if(!(dW=bB))a:{for(var Zm=g.t(this.playerResponse.adSlots||[]),tq=Zm.next();!tq.done;tq=Zm.next()){var jc=g.T(tq.value,Uz);if(jc===void 0||!faZ(jc))break;var lg=void 0,Qj=(lg=jc.fulfillmentContent)==null?void 0:lg.fulfilledLayout,hK=g.T(Qj,m1$);if(hK&&tff(hK)){dW=!0;break a}}dW=!1}dW&&(this.vP=!0);var AK=this.playerResponse.playerAds;if(AK)for(var IJ=p,SB=g.t(AK),Iv=SB.next();!Iv.done;Iv=SB.next()){var Ig=Iv.value;if(Ig){var RJ=Ig.playerLegacyDesktopWatchAdsRenderer;if(RJ){var g3=RJ.playerAdParams; if(g3){g3.autoplay=="1"&&(this.c8=this.Sj=!0);this.jQ=g3.encodedAdSafetyReason||null;g3.showContentThumbnail!==void 0&&(this.j8=!!g3.showContentThumbnail);IJ.enabled_engage_types=g3.enabledEngageTypes;break}}}}var KF=this.playerResponse.playerConfig;if(KF){var YF=KF.manifestlessWindowedLiveConfig;if(YF){var nP=Number(YF.minDvrSequence),UU=Number(YF.maxDvrSequence),WZ=Number(YF.minDvrMediaTimeMs),uk=Number(YF.maxDvrMediaTimeMs),OO=Number(YF.startWalltimeMs);nP&&(this.BX=nP);WZ&&(this.QY=WZ/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&& gQ(this)&&(this.RK=WZ/1E3));UU&&(this.l_=UU);uk&&(this.va=uk/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&gQ(this)&&(this.UM=uk/1E3));OO&&(this.oo=OO/1E3);(nP||WZ)&&(UU||uk)&&(this.allowLiveDvr=this.isLivePlayback=this.w7=!0,this.uf=!1)}var HZ=KF.daiConfig;if(HZ){if(HZ.enableDai){this.fv=!0;var u6=HZ.enableServerStitchedDai;u6&&(this.enableServerStitchedDai=u6);var fm=HZ.enablePreroll;fm&&(this.Ks=fm)}var Fp;if(HZ.daiType==="DAI_TYPE_SS_DISABLED"||((Fp=HZ.debugInfo)==null?0:Fp.isDisabledUnpluggedChannel))this.OI= !0;HZ.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.bL=!0);HZ.allowUstreamerRequestAdconfig&&(this.y7=!0)}var kP=KF.audioConfig;if(kP){var Zw=kP.loudnessDb;Zw!=null&&(this.aM=Zw);var G3=kP.trackAbsoluteLoudnessLkfs;G3!=null&&(this.ey=G3);var plf=kP.loudnessTargetLkfs;plf!=null&&(this.loudnessTargetLkfs=plf);kP.audioMuted&&(this.N7=!0);kP.muteOnStart&&(this.Bd=!0);var t3=kP.loudnessNormalizationConfig;if(t3){t3.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);t3.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var aIE=t3.minimumLoudnessTargetLkfs;aIE!=null&&(this.minimumLoudnessTargetLkfs=aIE);var lIq=t3.maxStatefulTimeThresholdSec;lIq!=null&&(this.maxStatefulTimeThresholdSec=lIq)}kP.playAudioOnly&&(this.rP=!0)}var SQM=KF.playbackEndConfig;if(SQM){var y0O=SQM.endSeconds,SIE=SQM.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(y0O&&(this.endSeconds=y0O),SIE&&(this.limitedPlaybackDurationInSeconds=SIE))}var jK=KF.fairPlayConfig;if(jK){var nxf=jK.certificate;nxf&& (this.r7=hT(nxf));var V8r=Number(jK.keyRotationPeriodMs);V8r>0&&(this.Zs=V8r);var ZfM=Number(jK.keyPrefetchMarginMs);ZfM>0&&(this.JX=ZfM)}var T0=KF.playbackStartConfig;if(T0){this.yl=Number(T0.startSeconds);var oxO=T0.liveUtcStartSeconds,zDE=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;oxO&&!zDE&&(this.liveUtcStartSeconds=Number(oxO));var nph=T0.startPosition;if(nph){var deF=nph.utcTimeMillis;deF&&!zDE&&(this.liveUtcStartSeconds=Number(deF)*.001);var Ghf=nph.streamTimeMillis;Ghf&&(this.o4= Number(Ghf)*.001)}this.progressBarStartPosition=T0.progressBarStartPosition;this.progressBarEndPosition=T0.progressBarEndPosition}else{var Vl$=KF.skippableSegmentsConfig;if(Vl$){var Bwr=Vl$.introSkipDurationMs;Bwr&&(this.Sr=Number(Bwr)/1E3);var c0q=Vl$.outroSkipDurationMs;c0q&&(this.Jx=Number(c0q)/1E3)}}var ZoO=KF.skippableIntroConfig;if(ZoO){var r0h=Number(ZoO.startMs),wlM=Number(ZoO.endMs);isNaN(r0h)||isNaN(wlM)||(this.yS=r0h,this.GO=wlM)}var $e$=KF.streamSelectionConfig;$e$&&(this.Ha=Number($e$.maxBitrate)); var PUZ=KF.vrConfig;PUZ&&(this.u2=PUZ.partialSpherical=="1");var jx=KF.webDrmConfig;if(jx){jx.skipWidevine&&(this.y6=!0);var L7Z=jx.widevineServiceCert;L7Z&&(this.e8=hT(L7Z));jx.useCobaltWidevine&&(this.useCobaltWidevine=!0);jx.startWithNoQualityConstraint&&(this.XG=!0)}var hX=KF.mediaCommonConfig;if(hX){var Wc=hX.dynamicReadaheadConfig;if(Wc){this.maxReadAheadMediaTimeMs=Wc.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Wc.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=Wc.readAheadGrowthRateMs|| NaN;var XlM,xev=hX==null?void 0:(XlM=hX.mediaUstreamerRequestConfig)==null?void 0:XlM.videoPlaybackUstreamerConfig;xev&&(this.GD=hT(xev));var op$=hX==null?void 0:hX.sabrContextUpdates;if(op$&&op$.length>0)for(var F7f=g.t(op$),zpZ=F7f.next();!zpZ.done;zpZ=F7f.next()){var ne=zpZ.value;if(ne.type&&ne.value){var Cra={type:ne.type,scope:ne.scope,value:hT(ne.value)||void 0,sendByDefault:ne.sendByDefault};this.sabrContextUpdates.set(ne.type,Cra)}}}var ExZ=hX.serverPlaybackStartConfig;ExZ&&(this.serverPlaybackStartConfig= ExZ);hX.useServerDrivenAbr&&(this.O2=!0);var CUh=hX.requestPipeliningConfig;CUh&&(this.requestPipeliningConfig=CUh)}var vxF=KF.inlinePlaybackConfig;vxF&&(this.ZS=!!vxF.showAudioControls);var Hc=KF.embeddedPlayerConfig;if(Hc){this.embeddedPlayerConfig=Hc;var dwA=Hc.embeddedPlayerMode;if(dwA){var K7f=this.C();K7f.Bs=dwA;K7f.U=dwA==="EMBEDDED_PLAYER_MODE_PFL"}var eDq=Hc.permissions;eDq&&(this.allowImaMonetization=!!eDq.allowImaMonetization)}var Dw=KF.webPlayerConfig;Dw&&(Dw.gatewayExperimentGroup&&(this.gatewayExperimentGroup= Dw.gatewayExperimentGroup),Dw.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var AX=this.playerResponse.streamingData;if(AX){var GFr=AX.formats;if(GFr){for(var Wt=[],bfF=g.t(GFr),BJA=bfF.next();!BJA.done;BJA=bfF.next()){var cFE=BJA.value;Wt.push(cFE.itag+"/"+cFE.width+"x"+cFE.height)}this.RY=Wt.join(",");Wt=[];for(var IIq=g.t(GFr),rFA=IIq.next();!rFA.done;rFA=IIq.next()){var Ht=rFA.value,Dk={itag:Ht.itag,type:Ht.mimeType,quality:Ht.quality},RDo=Ht.url;RDo&&(Dk.url=RDo);var iL=Na(4,Ht),vn8= iL.zz,Ke2=iL.FN,eh7=iL.s;iL.UR&&(Dk.url=vn8,Dk.sp=Ke2,Dk.s=eh7);Wt.push(g.c5(Dk))}this.M2=Wt.join(",")}var wvO=AX.hlsFormats;if(wvO){var u3F=KF||null,Tt={};if(u3F){var $wo=u3F.audioPairingConfig;if($wo&&$wo.pairs)for(var OfA=g.t($wo.pairs),P8M=OfA.next();!P8M.done;P8M=OfA.next()){var khr=P8M.value,LmM=khr.videoItag;Tt[LmM]||(Tt[LmM]=[]);Tt[LmM].push(khr.audioItag)}}for(var M8M={},me$=g.t(wvO),XvM=me$.next();!XvM.done;XvM=me$.next()){var t8O=XvM.value;M8M[t8O.itag]=t8O.bitrate}for(var jjF=[],W7$=g.t(wvO), xwh=W7$.next();!xwh.done;xwh=W7$.next()){var qU=xwh.value,mW={itag:qU.itag,type:qU.mimeType,url:qU.url,bitrate:qU.bitrate,width:qU.width,height:qU.height,fps:qU.fps},Ni=qU.audioTrack;if(Ni){var HfF=Ni.displayName;HfF&&(mW.name=HfF,mW.audio_track_id=Ni.id,Ni.audioIsDefault&&(mW.is_default="1"))}if(qU.drmFamilies){for(var Deq=[],ifr=g.t(qU.drmFamilies),Fmr=ifr.next();!Fmr.done;Fmr=ifr.next())Deq.push(Eof[Fmr.value]);mW.drm_families=Deq.join(",")}var sg=Tt[qU.itag];if(sg&&sg.length){mW.audio_itag=sg.join(","); var Twf=M8M[sg[0]];Twf&&(mW.bitrate+=Twf)}var Nwo=oXO(qU);Nwo&&(mW.eotf=Nwo);qU.audioChannels&&(mW.audio_channels=qU.audioChannels);jjF.push(g.c5(mW))}this.hlsFormats=jjF.join(",")}var EpM=AX.licenseInfos;if(EpM&&EpM.length>0){for(var sjr={},Ueo=g.t(EpM),C8q=Ueo.next();!C8q.done;C8q=Ueo.next()){var QjE=C8q.value,hDe=QjE.drmFamily,A0o=QjE.url;hDe&&A0o&&(sjr[Eof[hDe]]=A0o)}this.Hy=sjr}var gxA=AX.drmParams;gxA&&(this.drmParams=gxA);var YIe=AX.dashManifestUrl;YIe&&(this.O6=g.C2(YIe,{cpn:this.clientPlaybackNonce})); var qIM=AX.hlsManifestUrl;qIM&&(this.hlsvp=qIM);var J0r=AX.probeUrl;J0r&&(this.probeUrl=UY(g.C2(J0r,{cpn:this.clientPlaybackNonce})));var fIA=AX.serverAbrStreamingUrl;fIA&&(this.H9=new g.ib(fIA,!0))}var pbM=this.playerResponse.trackingParams;pbM&&(this.Xu=pbM);var Ep=this.playerResponse.videoDetails;if(Ep){var tk=p,vpo=Ep.videoId;vpo&&(this.videoId=vpo,tk.video_id||(tk.video_id=vpo));var Kme=Ep.title;Kme&&(this.title=Kme,tk.title||(tk.title=Kme));var epE=Ep.lengthSeconds;epE&&(this.lengthSeconds= Number(epE),tk.length_seconds||(tk.length_seconds=epE));var aFq=Ep.keywords;aFq&&(this.keywords=n9M(aFq));var boO=Ep.channelId;boO&&(this.mK=boO,tk.ucid||(tk.ucid=boO));var lFo=Ep.viewCount;lFo&&(this.rawViewCount=Number(lFo));var I6E=Ep.author;I6E&&(this.author=I6E,tk.author||(tk.author=I6E));var ygM=Ep.shortDescription;ygM&&(this.shortDescription=ygM);var SGe=Ep.isCrawlable;SGe&&(this.isListed=SGe);var n7r=Ep.musicVideoType;n7r&&(this.musicVideoType=n7r);var Rp$=Ep.isLive;Rp$!=null&&(this.isLivePlayback= Rp$);if(Rp$||Ep.isUpcoming)this.isPremiere=!Ep.isLiveContent;var VGO=Ep.thumbnail;VGO&&(this.Z=lL(VGO));var ZVZ=Ep.isExternallyHostedPodcast;ZVZ&&(this.isExternallyHostedPodcast=ZVZ);var usr=Ep.viewerLivestreamJoinPosition;if(usr==null?0:usr.utcTimeMillis)this.I$=bo(usr.utcTimeMillis);var o7O=KF||null,Oor=p;Ep.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Ep.isUpcoming&&(this.isUpcoming=!0);if(Ep.isPostLiveDvr){this.uf=!0;var zje=Ep.latencyClass;zje&&(this.latencyClass=QW8[zje]||"UNKNOWN"); Ep.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var kFM=!1;this.Yv?(this.allowLiveDvr=fk()?!0:Bh&&Ut<5?!1:!0,this.isLivePlayback=!0):Ep.isLive?(Oor.livestream="1",this.allowLiveDvr=Ep.isLiveDvrEnabled?fk()?!0:Bh&&Ut<5?!1:!0:!1,this.partnerId=27,kFM=!0):Ep.isUpcoming&&(kFM=!0);if(Ep.isLive||this.Yv){Ep.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var dZe=Ep.latencyClass;dZe&&(this.latencyClass=QW8[dZe]||"UNKNOWN");var G4r=Ep.liveChunkReadahead;G4r&&(this.liveChunkReadahead= G4r);var NJ=o7O&&o7O.livePlayerConfig;if(NJ){NJ.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);NJ.hasSubfragmentedWebm&&(this.wR=!0);NJ.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var BPr=NJ.liveExperimentalContentId;BPr&&(this.liveExperimentalContentId=Number(BPr));var cgO=NJ.isLiveHeadPlayable;this.D("html5_live_head_playable")&&cgO!=null&&(this.isLiveHeadPlayable=cgO)}}kFM&&(this.isLivePlayback=!0,Oor.adformat&&Oor.adformat.split("_")[1]!=="8"||this.Bs.push("heartbeat"))}var rg$= Ep.isPrivate;rg$!==void 0&&(this.isPrivate=ID(this.isPrivate,rg$))}if(N){var wbr=Ep||null,$ZM=!1,PG=N.errorScreen;$ZM=PG&&(PG.playerLegacyDesktopYpcOfferRenderer||PG.playerLegacyDesktopYpcTrailerRenderer||PG.ypcTrailerRenderer)?!0:wbr&&wbr.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(N.status);if(!$ZM){this.errorCode=mMZ(N.errorCode)||"auth";var Ug=PG&&PG.playerErrorMessageRenderer;if(Ug){this.playerErrorMessageRenderer=Ug;var PdE=Ug.reason;PdE&&(this.errorReason=g.Sw(PdE)); var MlO=Ug.subreason;MlO&&(this.Aw=g.Sw(MlO),this.on=MlO)}else this.errorReason=N.reason||null;var mwv=N.status;if(mwv==="LOGIN_REQUIRED")this.errorDetail="1";else if(mwv==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(mwv==="AGE_CHECK_REQUIRED"){var L0Z=N.errorScreen,XbO=L0Z&&L0Z.playerKavRenderer;this.errorDetail=XbO&&XbO.kavUrl?"4":"3"}else{var xZo,F0M,E7r,bvU=(E7r=PG==null?void 0:(xZo=PG.playerErrorMessageRenderer)==null?void 0:(F0M=xZo.proceedButton)==null?void 0:F0M.buttonRenderer)== null?void 0:E7r.command;if(N.isBlockedInRestrictedMode)this.errorDetail="5";else{var Cdo;((Cdo=g.T(bvU,DDM))==null?void 0:Cdo.signal)==="RELOAD_PAGE"?this.errorDetail="7":this.errorDetail="0"}}}}var v7$=this.playerResponse.interstitialPods;v7$&&$nq(this,v7$);this.nz&&this.eventId&&(this.nz=mP(this.nz,{ei:this.eventId}));var tle=this.playerResponse.captions;if(tle&&tle.playerCaptionsTracklistRenderer)a:{var jo=tle.playerCaptionsTracklistRenderer;this.captionTracks=[];if(jo.captionTracks)for(var K0v= g.t(jo.captionTracks),jWr=K0v.next();!jWr.done;jWr=K0v.next()){var Ws=jWr.value,ejM=W1Z(Ws.baseUrl);if(!ejM)break a;var Wmr={is_translateable:!!Ws.isTranslatable,languageCode:Ws.languageCode,languageName:Ws.name&&g.Sw(Ws.name),url:ejM,vss_id:Ws.vssId,kind:Ws.kind};Wmr.name=Ws.trackName;Wmr.displayName=Ws.name&&g.Sw(Ws.name);this.captionTracks.push(new g.uZ(Wmr))}this.U3=jo.audioTracks||[];this.l5=jo.defaultAudioTrackIndex||0;this.sI=[];if(jo.translationLanguages)for(var bVf=g.t(jo.translationLanguages), Hor=bVf.next();!Hor.done;Hor=bVf.next()){var sA=Hor.value,V0={};V0.languageCode=sA.languageCode;V0.languageName=g.Sw(sA.languageName);if(sA.translationSourceTrackIndices){V0.translationSourceTrackIndices=[];for(var IFM=g.t(sA.translationSourceTrackIndices),Dw$=IFM.next();!Dw$.done;Dw$=IFM.next())V0.translationSourceTrackIndices.push(Dw$.value)}if(sA.excludeAudioTrackIndices){V0.excludeAudioTrackIndices=[];for(var Rj$=g.t(sA.excludeAudioTrackIndices),ioM=Rj$.next();!ioM.done;ioM=Rj$.next())V0.excludeAudioTrackIndices.push(ioM.value)}this.sI.push(V0)}this.X9= [];if(jo.defaultTranslationSourceTrackIndices)for(var u6r=g.t(jo.defaultTranslationSourceTrackIndices),TJq=u6r.next();!TJq.done;TJq=u6r.next())this.X9.push(TJq.value);this.ED=!!jo.contribute&&!!jo.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.yl=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&& vJr(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var OVF;this.compositeLiveIngestionOffsetToken=(OVF=this.playerResponse.playbackTracking)==null?void 0:OVF.compositeLiveIngestionOffsetToken;var k4h;this.compositeLiveStatusToken=(k4h=this.playerResponse.playbackTracking)==null?void 0:k4h.compositeLiveStatusToken;this.D("html5_fill_default_mosaic_audio_track_id")&&rr(this)&&(this.Ws.VY=GxA(this,this.D("html5_cdm_use_first_as_default_audio_track")));var MGr,mZq,tGA= (MGr=this.playerResponse.playerConfig)==null?void 0:(mZq=MGr.granularVariableSpeedConfig)==null?void 0:mZq.minimumPlaybackRate,j5f,W0e,HVF=(j5f=this.playerResponse.playerConfig)==null?void 0:(W0e=j5f.granularVariableSpeedConfig)==null?void 0:W0e.maximumPlaybackRate;tGA&&HVF&&(this.fX=tGA/100,this.yG=HVF/100);this.heartbeatLoggingToken=this.playerResponse.heartbeatLoggingToken}z81(this,p);var DZr=p.raw_reel_item_watch_response;DZr&&(this.reelItemWatchResponse=DZr);p.queue_info&&(this.queueInfo=p.queue_info); var iVh=p.hlsdvr;iVh!=null&&(this.allowLiveDvr=Number(iVh)===1?fk()?!0:Bh&&Ut<5?!1:!0:!1);this.adQueryId=p.ad_query_id||null;this.jQ||(this.jQ=p.encoded_ad_safety_reason||null);this.N7=ID(this.N7,p.infringe||p.muted);this.JNT=p.authkey;this.KV=p.authuser;this.mutedAutoplay=ID(this.mutedAutoplay,p&&p.playmuted);this.mutedAutoplayDurationMode=fz(this.mutedAutoplayDurationMode,p&&p.muted_autoplay_duration_mode);this.nw=ID(this.nw,p&&p.mutedautoplay);var Qk=p.length_seconds;Qk&&(this.lengthSeconds=typeof Qk=== "string"?bo(Qk):Qk);if(this.isAd()||this.h4||!g.dQ(g.g9(this.Ws)))this.endSeconds=fz(this.endSeconds,this.Jx||p.end||p.endSeconds);else{var IUW=g.g9(this.Ws),hz=this.lengthSeconds;switch(IUW){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":hz>30?this.limitedPlaybackDurationInSeconds=30:hz<30&&hz>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=hz*.2}}this.Xu=bl(this.Xu,p.itct);this.Ie=ID(this.Ie, p.is_live_destination);this.isLivePlayback=ID(this.isLivePlayback,p.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.ke();p.isUpcoming&&(this.isUpcoming=ID(this.isUpcoming,p.isUpcoming));this.uf=ID(this.uf,p.post_live_playback);this.w7&&(this.uf=!1);this.isMdxPlayback=ID(this.isMdxPlayback,p.mdx);var Az=p.mdx_control_mode;Az&&(this.mdxControlMode=typeof Az==="number"?Az:bo(Az));this.isInlinePlaybackNoAd=ID(this.isInlinePlaybackNoAd,p.is_inline_playback_no_ad);this.Fh= fz(this.Fh,p.reload_count);this.reloadReason=bl(this.reloadReason,p.reload_reason);this.j8=ID(this.j8,p.show_content_thumbnail);this.cycToken=p.cyc||null;var TP$=L5(p);Object.keys(TP$).length>0&&(this.Z=TP$);this.t9=bl(this.t9,p.vvt);this.mdxEnvironment=bl(this.mdxEnvironment,p.mdx_environment);p.source_container_playlist_id&&(this.sourceContainerPlaylistId=p.source_container_playlist_id);p.serialized_mdx_metadata&&(this.serializedMdxMetadata=p.serialized_mdx_metadata);this.iqz=p.osig;this.eventId|| (this.eventId=p.eventid);this.osid||(this.osid=p.osid);this.playlistId=bl(this.playlistId,p.list);p.index&&(this.playlistIndex=this.playlistIndex===void 0?fz(0,p.index):fz(this.playlistIndex,p.index));this.S9=p.pyv_view_beacon_url;this.e9=p.pyv_quartile25_beacon_url;this.E$=p.pyv_quartile50_beacon_url;this.dU=p.pyv_quartile75_beacon_url;this.j9=p.pyv_quartile100_beacon_url;var NPh=p.session_data;!this.WU&&NPh&&(this.WU=kt(NPh,"&").feature);this.isFling=fz(this.isFling?1:0,p.is_fling)===1;this.vnd= fz(this.vnd,p.vnd);this.forceAdsUrl=bl(this.forceAdsUrl,p.force_ads_url);this.E2=bl(this.E2,p.ctrl);this.xz=bl(this.xz,p.ytr);this.CP=p.ytrcc;this.gU=p.ytrexp;this.RU=p.ytrext;this.n1=bl(this.n1,p.adformat);this.Go=bl(this.Go,p.attrib);this.slotPosition=fz(this.slotPosition,p.slot_pos);this.breakType=p.break_type;this.vk=ID(this.vk,p.ssrt);this.videoId=Zs(p)||this.videoId;this.G=bl(this.G,p.vss_credentials_token);this.C8=bl(this.C8,p.vss_credentials_token_type);this.rP=ID(this.rP,p.audio_only);this.OO= ID(this.OO,p.aac_high);this.v2=ID(this.v2,p.prefer_low_quality_audio);this.y8=ID(this.y8,p.uncap_inline_quality);this.D("html5_enable_qoe_cat_list")?p.qoe_cat&&(this.er=this.er.concat(p.qoe_cat.split(","))):this.Ko=bl(this.Ko,p.qoe_cat);this.Tx=ID(this.Tx,p.download_media);var s5$=p.prefer_gapless;this.K=s5$!=null?ID(this.K,s5$):this.K?this.K:this.Ws.preferGapless&&this.Ws.supportsGaplessShorts();MVO(this.playerResponse)&&this.Bs.push("ad");var UZr=p.adaptive_fmts;UZr&&(this.adaptiveFormats=UZr,this.jl("adpfmts", {},!0));var Q5v=p.allow_embed;Q5v&&(this.allowEmbed=Number(Q5v)===1);var hjA=p.backgroundable;hjA&&(this.backgroundable=Number(hjA)===1);var Agr=p.autonav;Agr&&(this.isAutonav=Number(Agr)===1);var g7F=p.autoplay;g7F&&(this.Sj=this.c8=Number(g7F)===1);var YGh=p.iv_load_policy;YGh&&(this.annotationsLoadPolicy=RD(this.annotationsLoadPolicy,YGh,e6));var qG$=p.cc_lang_pref;qG$&&(this.captionsLanguagePreference=bl(qG$,this.captionsLanguagePreference));var JgM=p.cc_load_policy;JgM&&(this.xZ=RD(this.xZ,JgM, e6));var fFf;this.deviceCaptionsOn=(fFf=p.device_captions_on)!=null?fFf:void 0;var pcv;this.Rf=(pcv=p.device_captions_lang_pref)!=null?pcv:"";var awr;this.ws=(awr=p.viewer_selected_caption_langs)!=null?awr:[];var lwE=p.cached_load;lwE&&(this.e_=ID(this.e_,lwE));if(p.dash==="0"||p.dash===0||p.dash===!1)this.bF=!0;var yzq=p.dashmpd;yzq&&(this.O6=g.C2(yzq,{cpn:this.clientPlaybackNonce}));var Sgh=p.delay;Sgh&&(this.yQ=bo(Sgh));var NJZ=this.Jx||p.end;if(this.qc?NJZ!=null:NJZ!=void 0)this.clipEnd=fz(this.clipEnd, NJZ);var nRA=p.fmt_list;nRA&&(this.RY=nRA);p.heartbeat_preroll&&this.Bs.push("heartbeat");hpc&&(this.Cl=-Math.floor(Math.random()*10),this.Fl=-Math.floor(Math.random()*40));var VKv=p.is_listed;VKv&&(this.isListed=ID(this.isListed,VKv));var ZpA=p.is_private;ZpA&&(this.isPrivate=ID(this.isPrivate,ZpA));var oRA=p.is_dni;oRA&&(this.S5=ID(this.S5,oRA));var zse=p.dni_color;zse&&(this.ZE=bl(this.ZE,zse));var di$=p.pipable;di$&&(this.pipable=ID(this.pipable,di$));this.IT=(this.gf=this.pipable&&this.Ws.eQ)&& !this.Ws.showMiniplayerButton;var Gtf=p.paid_content_overlay_duration_ms;Gtf&&(this.paidContentOverlayDurationMs=bo(Gtf));var BOv=p.paid_content_overlay_text;BOv&&(this.paidContentOverlayText=BOv);var czF=p.url_encoded_fmt_stream_map;czF&&(this.M2=czF);var rzM=p.hls_formats;rzM&&(this.hlsFormats=rzM);var wcr=p.hlsvp;wcr&&(this.hlsvp=wcr);var gO=p.live_start_walltime;gO&&(this.y$Y=typeof gO==="number"?gO:bo(gO));var YR=p.live_manifest_duration;YR&&(this.zx=typeof YR==="number"?YR:bo(YR));var $iF=p.player_params; $iF&&(this.playerParams=$iF);var PLv=p.partnerid;PLv&&(this.partnerId=fz(this.partnerId,PLv));var LZq=p.probe_url;LZq&&(this.probeUrl=UY(g.C2(LZq,{cpn:this.clientPlaybackNonce})));var sWq=p.pyv_billable_url;sWq&&Rar(sWq)&&(this.j_=sWq);var Uwq=p.pyv_conv_url;Uwq&&Rar(Uwq)&&(this.U$=Uwq);D5$(this,p);this.startSeconds>0?this.D("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.yl||this.Sr||p.start||p.startSeconds)&&this.jl("lss",{css:this.startSeconds,pcss:this.yl,iss:this.Sr,ps:p.start|| void 0,pss:p.startSeconds||void 0}):this.eb=this.startSeconds=fz(this.startSeconds,this.yl||this.Sr||p.start||p.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var XcM=p.live_utc_start;if(XcM!=null)this.liveUtcStartSeconds=Number(XcM);else{var QWM=this.startSeconds;QWM&&isFinite(QWM)&&QWM>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var xiM=p.utc_start_millis;xiM&&(this.liveUtcStartSeconds=Number(xiM)*.001)}var FZe= p.stream_time_start_millis;FZe&&(this.o4=Number(FZe)*.001);var hpr=this.Sr||p.start;(this.qc?hpr==null||Number(p.resume)===1:hpr==void 0||p.resume=="1")||this.isLivePlayback||(this.clipStart=fz(this.clipStart,hpr));var ERr=p.url_encoded_third_party_media;ERr&&(this.fO=Gf(ERr));var AFE=p.ypc_offer_button_formatted_text;if(AFE){var CLf=JSON.parse(AFE);this.gs=CLf!=null?CLf:null;this.zi=AFE}var vRM=p.ypc_offer_button_text;vRM&&(this.zo=vRM);var KZM=p.ypc_offer_description;KZM&&(this.W8=KZM);var eso= p.ypc_offer_headline;eso&&(this.l1=eso);var bpM=p.ypc_full_video_message;bpM&&(this.Em=bpM);var IwF=p.ypc_offer_id;IwF&&(this.g3=IwF);var RsF=p.ypc_buy_url;RsF&&(this.o$=RsF);var uLh=p.ypc_item_thumbnail;uLh&&(this.qG=uLh);var Opf=p.ypc_item_title;Opf&&(this.w8=Opf);var kt$=p.ypc_item_url;kt$&&(this.Oo=kt$);var MKo=p.ypc_vid;MKo&&(this.CU=MKo);p.ypc_overlay_timeout&&(this.r8=Number(p.ypc_overlay_timeout));var mie=p.ypc_trailer_player_vars;mie&&(this.XT=vv(mie));var tKM=p.ypc_original_itct;tKM&&(this.TK= tKM);this.mK=bl(this.mK,p.ucid);this.e3=p.storyboard_spec||null;this.xt=p.live_storyboard_spec||null;this.j6=p.iv_endscreen_url||null;this.V4=ID(this.V4,p.ypc_module);this.SD=ID(this.SD,p.ypc_clickwrap_module);this.V4&&this.Bs.push("ypc");this.SD&&this.Bs.push("ypcRentalActivation");this.xX={video_id:p.video_id,eventid:p.eventid,cbrand:p.cbrand,cbr:p.cbr,cbrver:p.cbrver,c:p.c,cver:p.cver,ctheme:p.ctheme,cplayer:p.cplayer,cmodel:p.cmodel,cnetwork:p.cnetwork,cos:p.cos,cosver:p.cosver,cplatform:p.cplatform, user_age:p.user_age,user_display_image:p.user_display_image,user_display_name:p.user_display_name,user_gender:p.user_gender,csi_page_type:p.csi_page_type,csi_service_name:p.csi_service_name,enablecsi:p.enablecsi,enabled_engage_types:p.enabled_engage_types};imv(this,p);var jsE=p.cotn;jsE&&(this.cotn=jsE);if(RNq(this))A6(this)&&(this.isLivePlayback&&this.O6&&(this.UU=!0),this.r7&&(this.U9=!0));else if(toE(this))this.UU=!0;else{var WZM,HpZ,DiF=((WZM=this.playerResponse)==null?void 0:(HpZ=WZM.streamingData)== null?void 0:HpZ.adaptiveFormats)||[],UA=null;if(DiF.length>0)UA=WWv(this,DiF);else if(!this.D("html5_deprecate_adaptive_formats_string")){this.jl("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var ipv=this.adaptiveFormats;if(ipv&&!A6(this)){this.Ws.W.U&&(cz=!0);var QT=BV(ipv),gpM=this.Hy,TOM=this.lengthSeconds,u0c=this.isLivePlayback,i9=this.uf,hV=this.Ws,OvU=SMc(QT);if(u0c||i9){var NOh=hV==null?void 0:hV.experiments,TW=new KE("",NOh,!0);TW.ke=!0;TW.isManifestless=!0;TW.S=!i9;TW.isLive=!i9; TW.uf=i9;for(var ssr=g.t(QT),YQo=ssr.next();!YQo.done;YQo=ssr.next()){var AV=YQo.value,UiM=Vz(AV,gpM),Zx=pH(AV.url,AV.sp,AV.s),Qsr=Zx.get("id");Qsr&&Qsr.includes("%7E")&&(TW.UO=!0);var hsM=void 0,kQW=(hsM=NOh)==null?void 0:hsM.Cz("html5_max_known_end_time_rebase"),MA8=Number(AV.target_duration_sec)||5,mo2=Number(AV.max_dvr_duration_sec)||14400,Azr=Number(Zx.get("mindsq")||Zx.get("min_sq")||"0"),gRq=Number(Zx.get("maxdsq")||Zx.get("max_sq")||"0")||Infinity;TW.BX=TW.BX||Azr;TW.l_=TW.l_||gRq;var tA2= !QX(UiM.mimeType);Zx&&ba(TW,new de(Zx,UiM,{FP:MA8,bW:tA2,AJ:mo2,BX:Azr,l_:gRq,PN:300,uf:i9,vz:kQW}))}var Ygo=TW}else{if(OvU==="FORMAT_STREAM_TYPE_OTF"){var qi=TOM;qi=qi===void 0?0:qi;var gj=new KE("",hV==null?void 0:hV.experiments,!1);gj.duration=qi||0;for(var qgM=g.t(QT),qQo=qgM.next();!qQo.done;qQo=qgM.next()){var Yw=qQo.value,JFE=Vz(Yw,gpM,gj.duration),f6O=pH(Yw.url,Yw.sp,Yw.s);if(f6O)if(JFE.streamType==="FORMAT_STREAM_TYPE_OTF")ba(gj,new m9(f6O,JFE,"sq/0"));else{var jMK=uJ(Yw.init),Wel=uJ(Yw.index); ba(gj,new TI(f6O,JFE,jMK,Wel))}}gj.isOtf=!0;var Jzr=gj}else{var Jz=TOM;Jz=Jz===void 0?0:Jz;var fp=new KE("",hV==null?void 0:hV.experiments,!1);fp.duration=Jz||0;for(var fwo=g.t(QT),pHv=fwo.next();!pHv.done;pHv=fwo.next()){var qJ=pHv.value,Hvl=Vz(qJ,gpM,fp.duration),Do1=uJ(qJ.init),ivl=uJ(qJ.index),pKv=pH(qJ.url,qJ.sp,qJ.s);pKv&&ba(fp,new TI(pKv,Hvl,Do1,ivl))}Jzr=fp}Ygo=Jzr}var aGe=Ygo;if(QT.length>0){var lGM=QT[0];if(this.C().playerStyle==="hangouts-meet"&&lGM.url){var TyW=g.yn(lGM.url);this.Y$=this.Y$|| Number(TyW.expire)}}var Nyl=this.isLivePlayback&&!this.uf&&!this.w7&&!this.isPremiere;this.D("html5_live_head_playable")&&(!RQ(this)&&Nyl&&this.jl("missingLiveHeadPlayable",{}),this.Ws.UO==="yt"&&(aGe.r7=!0));UA=aGe}else UA=null;this.jl("pafmts",{isManifestFilled:!!UA})}if(UA){EV(this,UA);var yEh=!0}else yEh=!1;yEh?this.enableServerStitchedDai=this.enableServerStitchedDai&&Qe(this):this.O6&&(this.Ws.UO==="yt"&&this.ke()&&this.D("drm_manifestless_unplugged")&&this.D("html5_deprecate_manifestful_fallback")? this.jl("deprecateMflFallback",{}):this.UU=!0)}var a0M=p.adpings;a0M&&(this.UD=a0M?vv(a0M):null);var SvE=p.feature;SvE&&(this.E9=SvE);var nVv=p.referrer;nVv&&(this.referrer=nVv);this.clientScreenNonce=bl(this.clientScreenNonce,p.csn);this.n_=fz(this.n_,p.root_ve_type);this.Kp=fz(this.Kp,p.kids_age_up_mode);this.qc||p.kids_app_info==void 0||(this.kidsAppInfo=p.kids_app_info);this.qc&&p.kids_app_info!=null&&(this.kidsAppInfo=p.kids_app_info);this.ez=ID(this.ez,p.upg_content_filter_mode);this.unpluggedFilterModeType= fz(this.unpluggedFilterModeType,p.unplugged_filter_mode_type);var VDM=p.unplugged_location_info;VDM&&(this.Ct=VDM);var ZHq=p.unplugged_partner_opt_out;ZHq&&(this.GI=bl("",ZHq));this.lF=ID(this.lF,p.disable_watch_next);this.tq=bl(this.tq,p.internal_ip_override);this.tQ=!!p.is_yto_interstitial;(this.interstitials.length||this.tQ)&&this.Bs.push("playableSequences");var oVh=p.aD;oVh&&(this.aD=oVh);this.UO=bl(this.UO,p.csi_timer);p.watchUrl&&(this.watchUrl=p.watchUrl);var oP=p.watch_endpoint;this.D("html5_attach_watch_endpoint_ustreamer_config")&& oP&&niA(this,oP);if(oP==null?0:oP.ustreamerConfig)this.DE=hT(oP.ustreamerConfig);var zVf,ddr,GRr=oP==null?void 0:(zVf=oP.loggingContext)==null?void 0:(ddr=zVf.qoeLoggingContext)==null?void 0:ddr.serializedContextData;GRr&&(this.NE7=GRr);g.wW(this.Ws)&&this.Ws.fO&&(this.embedsRct=bl(this.embedsRct,p.rct),this.embedsRctn=bl(this.embedsRctn,p.rctn));p.embed_config&&(this.In=p.embed_config);this.Us=this.Us||!!p.pause_at_start;p.default_active_source_video_id&&(this.defaultActiveSourceVideoId=p.default_active_source_video_id)}; g.L.C=function(){return this.Ws}; g.L.D=function(p){return this.Ws.D(p)}; g.L.NA=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.L.hasSupportedAudio51Tracks=function(){var p;return!((p=this.L1)==null||!p.Yv)}; g.L.getUserAudio51Preference=function(){var p=1;Gr(this.Ws)&&this.D("html5_ytv_surround_toggle_default_off")?p=0:g.oV(this.Ws)&&this.isLivePlayback&&this.m7()&&(p=0);var a;return(a=g.zv("yt-player-audio51"))!=null?a:p}; g.L.FD=function(){this.Gm()||(this.L.S||this.L.unsubscribe("refresh",this.FD,this),this.fL(-1))}; g.L.fL=function(p){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var a=lfh(this.L,this.PT);if(a.length>0){for(var l=g.t(a),y=l.next();!y.done;y=l.next())y=y.value,y.startSecs=Math.max(y.startSecs,this.hP()),this.D("html5_cuepoint_identifier_logging")&&y.event==="start"&&this.jl("cuepoint",{pubCue:y.identifier,segNum:p});this.publish("cuepointupdated",a,p);this.PT+=a.length;if(Qe(this)&&this.Ws.ao())for(a=g.t(a),l=a.next();!l.done;l=a.next())l=l.value,this.jl("cuepoint",{segNum:p,event:l.event, startSecs:l.startSecs,id:l.identifier.slice(-16)}),l.event==="start"&&(l=l.startSecs,this.aU.start=this.bf,this.aU.end=l+3)}}}; g.L.X0=function(){this.Gm()||(this.loading=!1,this.publish("dataloaded"))}; g.L.m7=function(){return this.eQ!==void 0?this.eQ:this.eQ=!!this.Hy||!!this.L&&FG(this.L)}; g.L.ib=function(p){var a=this;if(this.Gm())return YH();this.vZ=this.Kz=this.U=null;KD(this,"html5_high_res_logging_always")&&(this.Ws.GO=!0);return Tmv(this,p).then(void 0,function(){return GVf(a,p)}).then(void 0,function(){return bgf(a)}).then(void 0,function(){return ryr(a)})}; g.L.SG=function(p){this.U=p;LEv(this,this.U.getAvailableAudioTracks());if(this.U){p=g.t(this.U.videoInfos);for(var a=p.next();!a.done;a=p.next()){a=a.value;var l=a.containerType;l!==0&&(this.AX[l]=a.id)}}p=this.getAvailableAudioTracks();p=p.concat(this.Yz);for(a=0;a0?this.U.getAvailableAudioTracks():this.LO||[]:[]}; g.L.getAudioTrack=function(){var p=this;if(this.j&&!kI(this.j)){var a=g.rA(this.getAvailableAudioTracks(),function(S){return S.id===p.j.id}),l; if(!a&&((l=this.j.Mc)==null?0:l.id)){var y=this.j.Mc.id;a=g.rA(this.getAvailableAudioTracks(),function(S){return S.Mc.id===y}); this.jl("nat",{id:this.j.id,track:!!a})}return a||this.Yz}if(this.LO){if(!this.k$)for(a=g.t(this.LO),l=a.next();!l.done;l=a.next())if(l=l.value,l.Mc.getIsDefault()){this.k$=l;break}return this.k$||this.Yz}return this.Yz}; g.L.getPlayerResponse=function(){return this.playerResponse}; g.L.getWatchNextResponse=function(){return this.Hs}; g.L.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.L.getHeartbeatResponse=function(){return this.k9}; g.L.pC=function(){return this.watchUrl?this.watchUrl:this.Ws.getVideoUrl(this.videoId)}; g.L.LI=function(){return!!this.L&&(inM(this.L)||mPh(this.L)||cjF(this.L))}; g.L.getEmbeddedPlayerResponse=function(){return this.Id}; g.L.LC=function(){return(this.eventLabel||this.Ws.QY)==="shortspage"}; g.L.isAd=function(){return!!this.adFormat}; g.L.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.L.vy=function(){var p,a,l;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((p=this.playerResponse)==null?0:(a=p.playerConfig)==null?0:(l=a.daiConfig)==null?0:l.ssaEnabledPlayback)}; g.L.SZ=function(){return this.zX}; g.L.z5=function(){return this.V4||this.Co}; g.L.al=function(){return KD(this,"html5_samsung_vp9_live")}; g.L.jl=function(p,a,l){this.publish("ctmp",p,a,l)}; g.L.Eh=function(p,a,l){this.publish("ctmpstr",p,a,l)}; g.L.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.L.getGetAdBreakContext=function(p,a){p=p===void 0?NaN:p;a=a===void 0?NaN:a;var l={isSabr:gQ(this)},y,S=(y=this.getHeartbeatResponse())==null?void 0:y.adBreakHeartbeatParams;S&&(l.adBreakHeartbeatParams=S);if(this.D("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.L&&!isNaN(p)&&!isNaN(a)){a=p-a;for(var n in this.L.L)if(y=this.L.L[n],y.info.HX()||y.info.Qh())if(y=y.index,y.isLoaded()){n=y.Ot(a);y=y.d$(n)+a-y.getStartTime(n);this.jl("gabc",{t:p.toFixed(3),mt:a.toFixed(3),sg:n,igt:y.toFixed(3)}); l.livePlaybackPosition={utcTimeMillis:""+(y*1E3).toFixed(0)};break}}return l}; g.L.isEmbedsShortsMode=function(p,a){if(!g.wW(this.Ws)||(this.Ws.Bs||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||a)return!1;if(this.D("embeds_enable_shorts")){var l,y;return!!((l=this.embeddedPlayerConfig)==null?0:(y=l.embeddedPlayerFlags)==null?0:y.isShortsExperienceEligible)}var S,n;return!!(((S=this.embeddedPlayerConfig)==null?0:(n=S.embeddedPlayerFlags)==null?0:n.isShortsExperienceEligible)&&p.width<=p.height)}; g.L.fz=function(){g.qu.prototype.fz.call(this);this.UD=null;delete this.BPT;delete this.accountLinkingConfig;delete this.L;this.U=this.k9=this.playerResponse=this.Hs=null;this.M2=this.adaptiveFormats="";delete this.botguardData;this.VY=this.suggestions=this.fg=null;this.sabrContextUpdates.clear()}; var hpc=!0;var QmM={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},hn$={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},smF={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},pLo={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"},lJh={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},aJM={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"},Uvh={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.A(sd,g.D);g.L=sd.prototype;g.L.handleExternalCall=function(p,a,l){var y=this.state.K[p],S=this.state.Z[p],n=y;if(S)if(l&&bW(l,opb))n=S;else if(!y)throw Error('API call from an untrusted origin: "'+l+'"');this.logApiCall(p,l);if(n){l=!1;y=g.t(a);for(S=y.next();!S.done;S=y.next())if(String(S.value).includes("javascript:")){l=!0;break}l&&g.Mf(Error('Dangerous call to "'+p+'" with ['+a+"]."));return n.apply(this,a)}throw Error('Unknown API method: "'+p+'".');}; g.L.logApiCall=function(p,a,l){var y=this.app.C();y.RK&&!this.state.Sl.has(p)&&(this.state.Sl.add(p),g.mf("webPlayerApiCalled",{callerUrl:y.loaderUrl,methodName:p,origin:a||void 0,playerStyle:y.playerStyle||void 0,embeddedPlayerMode:y.Bs,errorCode:l}))}; g.L.publish=function(p){var a=g.D1.apply(1,arguments);this.state.U.publish.apply(this.state.U,[p].concat(g.u0(a)));if(p==="videodatachange"||p==="resize"||p==="cardstatechange")this.state.S.publish.apply(this.state.S,[p].concat(g.u0(a))),this.state.j.publish.apply(this.state.j,[p].concat(g.u0(a)))}; g.L.xv=function(p){var a=g.D1.apply(1,arguments);this.state.U.publish.apply(this.state.U,[p].concat(g.u0(a)));this.state.S.publish.apply(this.state.S,[p].concat(g.u0(a)))}; g.L.EE=function(p){var a=g.D1.apply(1,arguments);this.state.U.publish.apply(this.state.U,[p].concat(g.u0(a)));this.state.S.publish.apply(this.state.S,[p].concat(g.u0(a)));this.state.j.publish.apply(this.state.j,[p].concat(g.u0(a)))}; g.L.uC=function(p){var a=g.D1.apply(1,arguments);this.state.U.publish.apply(this.state.U,[p].concat(g.u0(a)));this.state.S.publish.apply(this.state.S,[p].concat(g.u0(a)));this.state.j.publish.apply(this.state.j,[p].concat(g.u0(a)));this.state.W.publish.apply(this.state.W,[p].concat(g.u0(a)))}; g.L.D=function(p){return this.app.C().D(p)}; g.L.fz=function(){if(this.state.element){var p=this.state.element,a;for(a in this.state.L)this.state.L.hasOwnProperty(a)&&(p[a]=null);this.state.element=null}g.D.prototype.fz.call(this)};g.A(t1,g.Y2);t1.prototype.publish=function(p){var a=g.D1.apply(1,arguments);if(this.W.has(p))return this.W.get(p).push(a),!0;var l=!1;try{for(a=[a],this.W.set(p,a);a.length;)l=g.Y2.prototype.publish.call.apply(g.Y2.prototype.publish,[this,p].concat(g.u0(a.shift())))}finally{this.W.delete(p)}return l};g.A(VRo,g.D);VRo.prototype.fz=function(){this.W.dispose();this.j.dispose();this.S.dispose();this.U.dispose();this.Sl=this.L=this.Z=this.K=this.G=void 0};var vTE=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.A(Ud,sd);g.L=Ud.prototype;g.L.getApiInterface=function(){return Array.from(this.state.G)}; g.L.qK=function(p,a){this.state.W.subscribe(p,a)}; g.L.VaT=function(p,a){this.state.W.unsubscribe(p,a)}; g.L.getPlayerState=function(p){return rdv(this.app,p)}; g.L.Of=function(){return rdv(this.app)}; g.L.Q9m=function(p,a,l){lvM(this)&&(Jk(this.app,!0,1),FA(this.app,p,a,l,1))}; g.L.getCurrentTime=function(p,a,l){var y=this.getPlayerState(p);if(this.app.getAppState()===2&&y===5){var S;return((S=this.app.getVideoData())==null?void 0:S.startSeconds)||0}return this.D("web_player_max_seekable_on_ended")&&y===0?kR(this.app,p):p?this.app.getCurrentTime(p,a,l):this.app.getCurrentTime(p)}; g.L.nA=function(){return this.app.getCurrentTime(1)}; g.L.IV=function(){var p=this.app.d$(1);return isNaN(p)?this.getCurrentTime(1):p}; g.L.rV=function(){return this.app.getDuration(1)}; g.L.yH=function(p,a){p=g.Lu(Math.floor(p),0,100);isFinite(p)&&vV(this.app,{volume:p,muted:this.isMuted()},a)}; g.L.pis=function(p){this.yH(p,!1)}; g.L.Qk=function(p){vV(this.app,{muted:!0,volume:this.getVolume()},p)}; g.L.Vll=function(){this.Qk(!1)}; g.L.I2=function(p){vV(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},p)}; g.L.svv=function(){Rs(this.app)||this.I2(!1)}; g.L.getPlayerMode=function(){var p={};this.app.getVideoData().S5&&(p.pfp={enableIma:this.app.y$().allowImaMonetization,autoplay:kF(this.app.y$()),mutedAutoplay:this.app.y$().mutedAutoplay});return p}; g.L.Vm=function(){var p=this.app.getPresentingPlayerType();if(p===2&&!this.app.fv()){var a=IO(this.app.DN());if(!(rhM(a)||g.wW(this.app.C())&&g.h(this.app.qO().getPlayerState(),1024))||msE(a))return}(a=this.app.mD().sU)?a.playVideo():this.app.playVideo(p)}; g.L.sMv=function(){Jk(this.app,!0,1);this.Vm()}; g.L.pauseVideo=function(p){var a=this.app.getPresentingPlayerType();if(a!==2||this.app.fv()||rhM(IO(this.app.DN()))){var l=this.app.mD().sU;l?l.pauseVideo():this.app.pauseVideo(a,p)}}; g.L.VDI=function(){var p=this.app,a=!1;p.Y.oo&&(p.Tm.publish("pageTransition"),a=!0);p.stopVideo(a)}; g.L.clearVideo=function(){}; g.L.getAvailablePlaybackRates=function(){var p=this.app.C();if(p.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(p.j?p.ancestorOrigins[0]:window.location.origin)||p.k$)return mpU;var a=this.app.getVideoData();if(R$r(a)){var l=a.fX,y=a.yG;return WoK.filter(function(S){return S>=l&&S<=y})}return p.supportsVarispeedExtendedFeatures?tw8:p.D("web_remix_allow_up_to_3x_playback_rate")&&g.dB(p)?jzM:e9}return[1]}; g.L.getPlaybackQuality=function(p){return(p=this.app.AN(p))?p.getPlaybackQuality():"unknown"}; g.L.Gyz=function(){}; g.L.getAvailableQualityLevels=function(p){return(p=this.app.AN(p))?(p=g.lb(p.uW(),function(a){return a.quality}),p.length&&(p[0]==="auto"&&p.shift(),p=p.concat(["auto"])),p):[]}; g.L.v3=function(){return this.getAvailableQualityLevels(1)}; g.L.CA=function(){return this.qT()}; g.L.F2=function(){return 1}; g.L.getVideoLoadedFraction=function(p){return this.app.getVideoLoadedFraction(p)}; g.L.qT=function(){return this.getVideoLoadedFraction()}; g.L.Nq=function(){return 0}; g.L.getSize=function(){var p=this.app.Fu().getPlayerSize();return{width:p.width,height:p.height}}; g.L.setSize=function(){this.app.Fu().resize()}; g.L.loadVideoById=function(p,a,l,y){if(!p)return!1;p=XT(p,a,l);return this.app.loadVideoByPlayerVars(p,y)}; g.L.scY=function(p,a,l){p=this.loadVideoById(p,a,l,1);Jk(this.app,p,1)}; g.L.cueVideoById=function(p,a,l,y){p=XT(p,a,l);this.app.cueVideoByPlayerVars(p,y)}; g.L.vu=function(p,a,l){this.cueVideoById(p,a,l,1)}; g.L.loadVideoByUrl=function(p,a,l,y){p=Sor(p,a,l);return this.app.loadVideoByPlayerVars(p,y)}; g.L.RII=function(p,a,l){p=this.loadVideoByUrl(p,a,l,1);Jk(this.app,p,1)}; g.L.cueVideoByUrl=function(p,a,l,y){p=Sor(p,a,l);this.app.cueVideoByPlayerVars(p,y)}; g.L.GC=function(p,a,l){this.cueVideoByUrl(p,a,l,1)}; g.L.LV=function(){var p=this.app.C();if(p.Xu)return"";var a=this.app.y$(),l=void 0;a.isLivePlayback||(l=Math.floor(this.app.getCurrentTime(1)));return p.getVideoUrl(a.videoId,this.getPlaylistId()||void 0,l)}; g.L.Mq=function(){return this.app.getDebugText()}; g.L.getVideoEmbedCode=function(){var p=this.app.C();if(p.Xu)return"";var a=this.app.y$();return p.getVideoEmbedCode(a.isPrivate?"":a.title,this.app.y$().videoId,this.app.Fu().getPlayerSize(),this.getPlaylistId()||void 0)}; g.L.Zf=function(p,a,l){return qX(this.app,p,a,l)}; g.L.removeCueRange=function(p){return this.app.IJ(p)}; g.L.loadPlaylist=function(p,a,l,y){this.app.loadPlaylist(p,a,l,y)}; g.L.DOO=function(p,a,l,y){this.loadPlaylist(p,a,l,y);Jk(this.app,!0,1)}; g.L.cuePlaylist=function(p,a,l,y){this.app.cuePlaylist(p,a,l,y)}; g.L.nextVideo=function(p,a){this.app.nextVideo(p,a)}; g.L.CTO=function(){this.nextVideo();Jk(this.app,!0,1)}; g.L.previousVideo=function(p){this.app.previousVideo(p)}; g.L.rNT=function(){this.previousVideo();Jk(this.app,!0,1)}; g.L.playVideoAt=function(p){this.app.playVideoAt(p)}; g.L.lFY=function(p){this.playVideoAt(p);Jk(this.app,!0,1)}; g.L.setShuffle=function(p){var a=this.app.getPlaylist();a&&a.setShuffle(p)}; g.L.setLoop=function(p){var a=this.app.getPlaylist();a&&(a.loop=p)}; g.L.xN=function(){var p=this.app.getPlaylist();if(!p)return null;for(var a=[],l=0;l=400)if(p=this.y$(),this.B.C().D("client_respect_autoplay_switch_button_renderer"))p=!!p.autoplaySwitchButtonRenderer;else{var a,l,y,S;p=!!((a=p.getWatchNextResponse())==null?0:(l=a.contents)==null?0:(y=l.twoColumnWatchNextResults)==null?0:(S=y.autoplay)==null?0:S.autoplay)!==!1}p?this.L||(this.L=!0,this.Kx(this.L),a=this.y$(),this.T1(a.autonavState),this.B.logVisibility(this.element,this.L)): (this.L=!1,this.Kx(this.L))}; g.L.T1=function(p){DSf(this)?this.isChecked=p!==1:((p=p!==1)||(p=g.hn(),p=g.oO("web_autonav_allow_off_by_default")&&!p.Zy(141)&&g.ZM("AUTONAV_OFF_BY_DEFAULT")?!1:!p.Zy(140)),this.isChecked=p);pDo(this)}; g.L.onClick=function(){this.isChecked=!this.isChecked;this.B.Jr(this.isChecked?2:1);pDo(this);if(DSf(this)){var p=this.y$().autoplaySwitchButtonRenderer;this.isChecked&&(p==null?0:p.onEnabledCommand)?this.B.xv("innertubeCommand",p.onEnabledCommand):!this.isChecked&&(p==null?0:p.onDisabledCommand)&&this.B.xv("innertubeCommand",p.onDisabledCommand)}this.B.logClick(this.element)}; g.L.getValue=function(){return this.isChecked}; g.L.y$=function(){return this.B.getVideoData(1)};g.A(xbo,QH);g.A(pR,g7);pR.prototype.pz=function(p){p?this.L||(this.U6.Lt(this),this.L=!0):this.L&&(this.U6.DF(this),this.L=!1);this.L&&qO(this,yhZ())}; pR.prototype.j=function(){g.b6(this.element,"ytp-menuitem-highlight-transition-enabled")}; pR.prototype.U=function(p){var a=yhZ();p!==a&&(a=g.hn(),eS(190,p),eS(192,!0),a.save(),this.B.xv("cinematicSettingsToggleChange",p))}; pR.prototype.fz=function(){this.L&&this.U6.DF(this);g7.prototype.fz.call(this)};g.A(M1,QH);M1.prototype.updateCinematicSettings=function(p){this.L=p;var a;(a=this.menuItem)==null||a.pz(p);this.api.publish("onCinematicSettingsVisibilityChange",p)};g.A(xVZ,QH);g.A(hY,QH);hY.prototype.setCreatorEndscreenVisibility=function(p){var a;(a=Zq(this.api.DN()))==null||a.Kx(p)}; hY.prototype.L=function(p){function a(y){y==="creatorendscreen"&&(y=Zq(l.api.DN()))&&y.tDI(l.hideButton)} var l=this;this.hideButton=p;this.events.J(this.api,"modulecreated",a);a("creatorendscreen")};g.A(vG$,QH);g.A(ca,g7);ca.prototype.j=function(p){this.U(p?1:0)}; ca.prototype.q2=function(){if(this.enableNewAudioSettingsMenu){var p=this.B.getPresentingPlayerType();p!==2&&p!==3||!this.L?(p=this.getDrcState(),p!==1?(p===0?(qO(this,this.S()===1),this.setEnabled(!0)):(qO(this,!1),this.setEnabled(!1)),this.L||(this.U6.Lt(this),this.L=!0)):this.L&&(this.U6.DF(this),this.L=!1)):(this.L=!1,this.U6.DF(this))}else{p=this.hasDrcAudioTrack();var a=this.S()===1&&p;qO(this,a);this.setEnabled(p)}}; ca.prototype.fz=function(){this.U6.DF(this);g7.prototype.fz.call(this)}; ca.prototype.W=function(){this.B.logClick(this.element)};g.A(rj,QH);g.L=rj.prototype;g.L.getDrcUserPreference=function(){return this.L}; g.L.setDrcUserPreference=function(p){this.api.jl("drc_set",{pref:p});g.HE("yt-player-drc-pref",p,31536E3);p!==this.L&&(this.L=p,this.updateEnvironmentData(),this.TN()&&this.api.Fx(),this.api.GM())}; g.L.updateEnvironmentData=function(){this.api.C().M2=this.L===1}; g.L.TN=function(){var p,a,l=(p=this.api.getVideoData())==null?void 0:(a=p.U)==null?void 0:a.L;if(!l)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.D("mta_drc_mutual_exclusion_removal")){var y,S,n=(y=this.api.qI())==null?void 0:(S=y.Mc)==null?void 0:S.id;return gf(l,function(V){var z;return V.audio.L&&((z=V.Mc)==null?void 0:z.id)===n})}return gf(l,function(V){var z; return((z=V.audio)==null?void 0:z.L)===!0})}; g.L.getDrcState=function(){return this.api.v1(3)};g.A(OK,QH);OK.prototype.onVideoDataChange=function(){var p=this,a=this.api.getVideoData();this.api.lf("embargo",1);var l=a==null?void 0:a.qB.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(l==null?0:l.length)?eXE(this,l.filter(function(y){return ZmO(p,y)})):(a==null?0:a.cueRanges)&&eXE(this,a.cueRanges.filter(function(y){return ZmO(p,y)}))}; OK.prototype.S=function(p){return p.embargo!==void 0}; OK.prototype.fz=function(){QH.prototype.fz.call(this);this.L={}};g.A(ta,QH); ta.prototype.addEmbedsConversionTrackingParams=function(p){var a=this.api.C(),l=a.widgetReferrer,y=a.n1,S=this.L,n="",V=a.getWebPlayerContextConfig();V&&(n=V.embedsIframeOriginParam||"");l.length>0&&(p.embeds_widget_referrer=l);y.length>0&&(p.embeds_referring_euri=y);a.j&&n.length>0&&(p.embeds_referring_origin=n);V&&V.embedsFeature&&(p.feature=V.embedsFeature);S.length>0&&(a.D("embeds_web_enable_lite_experiment_control_arm_logging")?S.unshift(28572):g.dQ(g.g9(a))&&S.unshift(159628),a=S.join(","),a= g.pT()?a:g.lr(a,4),p.source_ve_path=a);this.L.length=0};g.A(EYe,QH);g.A(AAr,QH);g.A(ji$,g.D);ji$.prototype.fz=function(){g.D.prototype.fz.call(this);this.L=null;this.S&&this.S.disconnect()};g.A(rYv,QH);g.A(fg,g.X);fg.prototype.show=function(){g.X.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; fg.prototype.stopTimer=function(){this.L&&(this.L.dispose(),this.L=null)}; fg.prototype.onVideoDataChange=function(p){var a,l,y=(a=this.api.getVideoData())==null?void 0:(l=a.getPlayerResponse())==null?void 0:l.playabilityStatus;y&&(a=HsO(y),g.h(this.api.getPlayerStateObject(),128)||p==="dataloaderror"||!a?(this.S=0,this.stopTimer(),this.hide()):(p=(a.remainingTimeSecs||0)*1E3,p>0&&(this.show(),this.updateValue("label",Q2(a.label)),iLF(this,p))))}; fg.prototype.fz=function(){this.stopTimer();g.X.prototype.fz.call(this)};g.A(XRr,QH);g.A(cE,g.X);cE.prototype.onClick=function(){this.Tm.logClick(this.element);this.Tm.xv("onFullerscreenEduClicked")}; cE.prototype.pz=function(){this.Tm.isFullscreen()?this.L?this.fade.hide():this.fade.show():this.hide();this.Tm.logVisibility(this.element,this.Tm.isFullscreen()&&!this.L)};g.A(mJ,QH);mJ.prototype.updateFullerscreenEduButtonSubtleModeState=function(p){var a;(a=this.L)!=null&&(g.JB(a.element,"ytp-fullerscreen-edu-button-subtle",p),p&&!a.S&&(a.Tm.D("player_tooltip_data_title_killswitch")?a.element.setAttribute("title","Desliza hacia abajo para ver m\u00e1s detalles"):a.element.setAttribute("data-tooltip-title","Desliza hacia abajo para ver m\u00e1s detalles"),OC(a.Tm,a.element,a),a.S=!0))}; mJ.prototype.updateFullerscreenEduButtonVisibility=function(p){var a;(a=this.L)!=null&&(a.L=p,a.pz())};g.A(pnF,g.X);g.A(LdF,QH);g.A(kj,QH);kj.prototype.getSphericalProperties=function(){var p=g.XK(this.api.DN());return p?p.getSphericalProperties():{}}; kj.prototype.setSphericalProperties=function(p){if(p){var a=g.XK(this.api.DN());a&&a.setSphericalProperties(p,!0)}};g.A(cj,QH);g.L=cj.prototype;g.L.createClientVe=function(p,a,l,y){this.api.createClientVe(p,a,l,y===void 0?!1:y)}; g.L.createServerVe=function(p,a,l){this.api.createServerVe(p,a,l===void 0?!1:l)}; g.L.setTrackingParams=function(p,a){this.api.setTrackingParams(p,a)}; g.L.logClick=function(p,a){this.api.logClick(p,a)}; g.L.logVisibility=function(p,a,l){this.api.logVisibility(p,a,l)}; g.L.hasVe=function(p){return this.api.hasVe(p)}; g.L.destroyVe=function(p){this.api.destroyVe(p)};var oi={},Z4F=(oi[0]=function(p){return HHq(p,function(a){var l;return(l=a.Mc)==null?void 0:l.id})},oi[2]=function(p){return GS(p,aN)},oi[3]=function(p){return GS(p,zqM)},oi[4]=function(p){return GS(p,pr)},oi[1]=function(p){return GS(p,g6$)},oi); ooF.prototype.v1=function(p){return this.U[p]}; ooF.prototype.GM=function(){for(var p=this.S,a={},l=g.t(VEh),y=l.next();!y.done;y=l.next())if(y=y.value,this.L[y]){p=AFM[y].Hn(p,this.videoData);for(var S=g.t(VEh),n=S.next();!n.done;n=S.next())n=n.value,a[n]!==void 0||gf(p,AFM[n].Gq)||(a[n]=AFM[y].Dh);a[y]===void 0&&(a[y]=0)}else a[y]=1;this.U=a}; var VEh=[0,1,2,3,4],zN={},AFM=(zN[0]={Dh:2,Gq:EMM,Hn:pdW},zN[2]={Dh:4,Gq:aN,Hn:uqA},zN[3]={Dh:5,Gq:zqM,Hn:d9A},zN[1]={Dh:3,Gq:g6$,Hn:HMA},zN[4]={Dh:6,Gq:pr,Hn:qZA},zN);var FaM=!1;Cx.prototype.setPlaybackRate=function(p){this.playbackRate=Math.max(1,p)}; Cx.prototype.getPlaybackRate=function(){return this.playbackRate};M_.prototype.Pn=function(p){var a=g.Bp(p.info.L.info,this.MO.ke),l=p.info.Rc+this.j,y=p.info.startTime*1E3;if(this.policy.VY)try{y=this.policy.VY?g.ZV(p)*1E3:p.info.startTime*1E3}catch(V){Math.random()>.99&&this.logger&&(y=UD(p.S).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:p.info.AP(),encodedDataView:g.MN(y,4)})),y=p.info.startTime*1E3}var S=p.info.clipId,n=this.policy.VY?g.BsA(p)*1E3:p.info.duration*1E3;this.policy.VY&&(y<0||n<0)&&(this.logger&&(this.logger({missingSegInfo:p.info.AP(), startTimeMs:y,durationMs:n}),this.policy.L9||(y<0&&(y=p.info.startTime*1E3),n<0&&(n=p.info.duration*1E3))),this.policy.L9&&(y<0&&(y=p.info.startTime*1E3),n<0&&(n=p.info.duration*1E3)));return{formatId:a,Rc:l,startTimeMs:y,clipId:S,iE:n}}; M_.prototype.y5=function(p){this.timestampOffset=p};np.prototype.seek=function(p,a){p!==this.targetTime&&(this.seekCount=0);this.targetTime=p;var l=this.videoTrack.S,y=this.audioTrack.S,S=this.audioTrack.Io,n=hqO(this,this.videoTrack,p,this.videoTrack.Io,a);a=hqO(this,this.audioTrack,this.policy.Ha?p:n,S,a);p=Math.max(p,n,a);this.j=!0;this.MO.isManifestless&&(m$r(this,this.videoTrack,l),m$r(this,this.audioTrack,y));return p}; np.prototype.isSeeking=function(){return this.j}; np.prototype.h_=function(p){this.S=p}; var QZO=2/24;var H4A=0;g.L=fl.prototype;g.L.T3=function(){this.Sl=this.now();mlf(this.s6,this.Sl);this.Wa.T3()}; g.L.yp=function(p,a){var l=this.policy.S?(0,g.Ek)():0;aF(this,p,a);p-this.G<10&&this.S>0||this.rM(p,a);this.Wa.yp(p,a);this.policy.S&&(p=(0,g.Ek)()-l,this.eb+=p,this.Yv=Math.max(p,this.Yv))}; g.L.rM=function(p,a){var l=(p-this.G)/1E3,y=a-this.U;this.JD||(rZK(this.s6,l,y),this.qt(l,y));this.G=p;this.U=a}; g.L.N9=function(){this.Bs&&tYZ(this);this.Wa.N9()}; g.L.jg=function(p){this.Bs||(this.Bs=this.W-this.Fh+p,this.qc=this.W,this.O6=this.K)}; g.L.Jv=function(p,a){p=p===void 0?this.K:p;a=a===void 0?this.W:a;this.S>0||(this.Z=p,this.S=a,this.UO=this.isActive=!0)}; g.L.Y7=function(){return this.A$||2}; g.L.hF=function(){}; g.L.b4=function(){var p,a={rn:this.requestNumber,rt:(this.K-this.L).toFixed(),lb:this.W,stall:(1E3*this.j).toFixed(),ht:(this.Sl-this.L).toFixed(),elt:(this.Z-this.L).toFixed(),elb:this.S,d:(p=this.QY)==null?void 0:p.Ut()};this.url&&L$h(a,this.url);this.policy.S&&(a.mph=this.Yv.toFixed(),a.tph=this.eb.toFixed());a.ulb=this.t9;a.ult=this.Xu;return a}; g.L.now=function(){return(0,g.Ek)()}; g.L.deactivate=function(){this.isActive&&(this.isActive=!1)};g.A(Tq,fl);g.L=Tq.prototype;g.L.b4=function(){var p=fl.prototype.b4.call(this);p.pb=this.JT;p.pt=(1E3*this.va).toFixed();p.se=this.oo;return p}; g.L.qR=function(){var p=this.Wa;this.Kz||(this.Kz=p.qR?p.qR():1);return this.Kz}; g.L.fI=function(){return this.IQ?this.qR()!==1:!1}; g.L.zr=function(p,a,l){if(!this.Ha){this.Ha=!0;if(!this.JD){aF(this,p,a);this.rM(p,a);var y=this.qR();this.oo=l;if(!this.JD)if(y===2){y=p-this.Z0)||u8(this,y,a),this.S>0&&Kp(this.s6,a,this.j));p=(p-this.L)/ 1E3||.01;this.policy.Z&&!(this.S>0)||SG(this.s6,p,this.U,Qp$(this),this.DU)}this.deactivate()}}; g.L.G3=function(p,a,l){l&&(this.Kz=2);p<0&&this.A$&&(p=this.A$);a?this.OO+=p:this.r7+=p}; g.L.Y7=function(){return this.r7||this.OO||fl.prototype.Y7.call(this)}; g.L.rM=function(p,a){var l=(p-this.G)/1E3,y=a-this.U,S=this.qR();this.isActive?S===1&&((y>0||this.policy.W)&&(l>.2||y<1024)?(this.j+=l,y>0&&l>.2&&u8(this,this.KO?l:.05,y),this.Sb=!0):y>0&&(u8(this,l,y),this.Sb=!0)):a&&a>=this.policy.L&&this.Jv(p,a);fl.prototype.rM.call(this,p,a)}; g.L.Gh=function(p){if(!this.JD){aF(this,p,this.W);var a=(p-this.L)/1E3;this.qR()!==2&&this.S>0&&(this.j+=(p-this.G)/1E3,Kp(this.s6,this.U,this.j));SG(this.s6,a,this.U,Qp$(this),this.DU,!0);p=(p-this.G)/1E3;rZK(this.s6,p,0);this.qt(p,0)}}; g.L.Jv=function(p,a){p=p===void 0?this.K:p;a=a===void 0?this.W:a;if(!(this.S>0)&&(fl.prototype.Jv.call(this,p,a),this.qR()===1)){a=(this.Sl-this.L)/1E3;var l=(p-this.Sl)/1E3;this.IQ&&ahh(this,this.now());this.yQ||this.JD||(this.A$&&(l=Math.max(0,l-this.A$)),p=this.s6,p.Z.P9(1,a),p.QY.P9(1,l))}}; g.L.p5=function(){this.IQ&&ahh(this,this.now());return this.nz}; g.L.Ly=function(){var p;if(p=this.U>this.JR)p=(p=this.U)?p>=this.policy.L:!1;return p}; g.L.je=function(){return this.VY}; g.L.bz=function(p){p=p===void 0?this.now():p;if(this.IQ){ahh(this,p);if(this.Kz?this.fI():this.w7!==this.Hs){var a=this.Hs;if(p0?l+p:l+Math.max(p,a)}; g.L.Pe=function(){return this.now()-this.Z}; g.L.X3=function(){return(this.U-this.S)*1E3/this.Pe()||0}; g.L.K5=function(){return this.Z};AZ.prototype.feed=function(p){sp(this.L,p);this.e5()}; AZ.prototype.e5=function(){if(this.j){if(!this.L.totalLength)return;var p=this.L.split(this.U-this.S),a=p.HV;p=p.CO;if(!this.Wa.jg(this.j,a,this.S,this.U))return;this.S+=a.totalLength;this.L=p;this.S===this.U&&(this.j=this.U=this.S=void 0)}for(;;){var l=0;p=g.t(qNE(this.L,l));a=p.next().value;l=p.next().value;l=g.t(qNE(this.L,l));p=l.next().value;l=l.next().value;if(a<0||p<0)break;if(!(l+p<=this.L.totalLength)){if(!(this.Wa.jg&&l+1<=this.L.totalLength))break;l=this.L.split(l).CO;this.Wa.jg(a,l,0, p)&&(this.j=a,this.S=l.totalLength,this.U=p,this.L=new NN([]));break}p=this.L.split(l).CO.split(p);l=p.CO;this.Wa.Ww(a,p.HV);this.L=l}}; AZ.prototype.dispose=function(){this.L=new NN};g.L=De.prototype;g.L.qQ=function(){return 0}; g.L.ip=function(){return null}; g.L.sj=function(){return null}; g.L.LH=function(){return this.state>=1}; g.L.isComplete=function(){return this.state>=3}; g.L.M5=function(){return this.state===5}; g.L.onStateChange=function(){}; g.L.cZ=function(p){var a=this.state;this.state=p;this.onStateChange(a);this.callback&&this.callback(this,a)}; g.L.Lr=function(p){p&&this.state=this.xhr.HEADERS_RECEIVED}; g.L.getResponseHeader=function(p){try{return this.xhr.getResponseHeader(p)}catch(a){return""}}; g.L.Tu=function(){return+this.getResponseHeader("content-length")}; g.L.lK=function(){return this.S}; g.L.eP=function(){return this.status>=200&&this.status<300&&!!this.S}; g.L.cO=function(){return this.L.totalLength>0}; g.L.R$=function(){var p=this.L;this.L=new NN;return p}; g.L.Ed=function(){return this.L}; g.L.abort=function(){this.Gm=!0;this.xhr.abort()}; g.L.Sh=function(){return!0}; g.L.GX=function(){return this.U}; g.L.XF=function(){return""};g.L=xYq.prototype; g.L.run=function(){var p=this,a,l,y,S,n,V,z,d,G,B,c,r,w,P,F;return g.R(function(v){if(v.L==1){p.status=200;a=p.L.get("docid");l=ES(p.L.get("fmtid")||"");y=p.L.get("lmt")||"0";S=+(p.L.get("csz")||0);if(!a||!l||!S)throw Error("Invalid local URL");p.L.get("ck")&&p.L.get("civ")&&(n=new eZA(p.L.get("ck"),p.L.get("civ")));V=p.range;z=Math.floor(V.start/S);d=Math.floor(V.end/S);G=z}if(v.L!=5)return G<=d?g.u(v,U3A(a,l,y,G,n),5):v.g7(0);B=v.S;if(B===void 0)throw Error("invariant: data is undefined");c=G*S; r=(G+1)*S;w=Math.max(0,V.start-c);P=Math.min(V.end+1,r)-(w+c);F=new Uint8Array(B.buffer,w,P);p.S.append(F);p.loaded+=P;p.loaded=200&&this.status<300&&!!this.S}; g.L.cO=function(){return!!this.L.totalLength}; g.L.R$=function(){var p=this.L;this.L=new NN;return p}; g.L.Ed=function(){return this.L}; g.L.Gm=function(){return this.W}; g.L.abort=function(){this.U&&this.U.cancel().catch(function(){}); this.j&&this.j.abort();this.W=!0}; g.L.Sh=function(){return!0}; g.L.GX=function(){return this.G}; g.L.XF=function(){return this.errorMessage};g.L=R6F.prototype;g.L.onDone=function(){if(!this.Gm){this.status=this.xhr.status;try{this.response=this.xhr.response,this.S=this.response.byteLength}catch(p){}this.L=!0;this.Wa.N9()}}; g.L.yv=function(){this.xhr.readyState===2&&this.Wa.T3()}; g.L.onProgress=function(p){this.Gm||(this.status=this.xhr.status,this.L||(this.S=p.loaded),this.Wa.yp((0,g.Ek)(),p.loaded))}; g.L.zA=function(){return this.xhr.readyState>=2}; g.L.getResponseHeader=function(p){try{return this.xhr.getResponseHeader(p)}catch(a){return g.Mf(Error("Could not read XHR header "+p)),""}}; g.L.Tu=function(){return+this.getResponseHeader("content-length")}; g.L.lK=function(){return this.S}; g.L.eP=function(){return this.status>=200&&this.status<300&&this.L&&!!this.S}; g.L.cO=function(){return this.L&&!!this.response&&!!this.response.byteLength}; g.L.R$=function(){var p=this.response;this.response=void 0;return new NN([new Uint8Array(p)])}; g.L.Ed=function(){return new NN([new Uint8Array(this.response)])}; g.L.abort=function(){this.Gm=!0;this.xhr.abort()}; g.L.Sh=function(){return!1}; g.L.GX=function(){return!1}; g.L.XF=function(){return""};g.A(L4,g.D);L4.prototype.Po=function(){if(!this.ZF.length)return[];var p=this.ZF;this.ZF=[];this.U=g.Jt(p).info;return p}; L4.prototype.x4=function(){return this.ZF}; L4.prototype.fz=function(){g.D.prototype.fz.call(this);this.L=null;this.ZF.length=0;this.mT.length=0;this.U=null};g.A(gv,g.D);g.L=gv.prototype; g.L.NPv=function(){if(!this.Gm()){var p=(0,g.Ek)(),a=!1;if(this.policy.yP){var l=this.timing.S>0?this.timing.Z:this.timing.L;this.policy.oZ&&this.U&&(l=this.U);p=p-l-this.timing.Y7()*1E3;l=qef(uz(this),!1);p>=2E3*l?a=!0:p>=this.policy.Zv*l&&(this.L=this.policy.Us)}else if(this.timing.S>0){if(this.G){this.policy.Kt&&(this.L=0);return}p=this.timing.je();this.timing.bz();this.timing.je()-p>=this.policy.rP*.8?(this.L++,a=this.L>=5):this.L=0}else a=p-this.timing.p5(),this.policy.Us&&a>0&&(this.L+=1),p= qef(uz(this),!1)*this.policy.RU,a=a>p*1E3;this.L>0&&this.Wa.uB();a?this.eh():this.S.start()}}; g.L.eh=function(){this.W=!0;this.Wa.eF();this.lastError="net.timeout";ND(this)}; g.L.canRetry=function(p){var a=uz(this);p=p?this.policy.Oo:this.policy.V4;return a.timedOut0&&(a=ek(a.L,0),p.ubyte=a,l===1&&a===0&&(p.b248180278=!0))}this.MA&&(p.rc=this.policy.h4?this.MA:this.MA.toString());this.policy.bf&&this.sT&&(p.tr=this.sT);p.itag=this.info.mT[0].L.info.itag;p.ml=""+ +this.info.mT[0].L.Dg();p.sq=""+this.info.mT[0].Rc;this.G9&&(p.ifi=""+ +TD(14,this.info.bM.S));this.MA!==410&&this.MA!==500&&this.MA!==503||(p.fmt_unav="true");var y;(l=this.errorMessage||((y=this.xhr)==null? void 0:y.XF()))&&(p.msg=l);this.YL&&(p.smb="1");this.info.isDecorated()&&(p.sdai="1");return p}; g.L.Wm=function(){return ccE(this.timing)}; g.L.XF=function(){return this.xhr.XF()||""}; g.L.Ly=function(){return this.isComplete()||this.timing.Ly()}; g.L.yp=function(){!this.Gm()&&this.xhr&&(this.MA=this.xhr.status,this.policy.sI&&this.dc&&this.RD(!1),this.ID()?this.Lr(2):!this.e7&&this.Ly()&&(this.Lr(),this.e7=!0))}; g.L.T3=function(){if(!this.Gm()&&this.xhr){if(!this.kV&&this.xhr.zA()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var p=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.kV=((0,g.Ek)()-p)/1E3}this.xhr.zA()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.ey&&!m_Z()&&g.HE("yt-player-headers-readable",!0,2592E3);p=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var a=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),l;(l=this.s1)==null||l.stop();this.LU=p||this.LU; this.vL=a||this.vL}}; g.L.N9=function(){var p=this.xhr;if(!this.Gm()&&p){this.MA=p.status;p=this.rJ(p);if(this.policy.bf){var a;(a=this.s1)==null||a.stop()}p===5?ND(this.R4):this.cZ(p);this.R4.S.stop()}}; g.L.rJ=function(p){anf(this);if(FR(this.R4,this.xhr.status,this.Do?this.timing.UO||this.TQ:this.xhr.eP(),!1,this.US))return 5;var a="";Eq(this.R4,this.xhr)&&(a=jAr(this.R4,this.xhr));if(a)return Pcv(uz(this.R4)),this.info.kz(this.G9,a),3;a=p.lK();if(this.hk){this.RD(!0);anf(this);if(FR(this.R4,this.xhr.status,this.timing.UO||this.TQ,!1,this.US))return 5;if(!this.iR){if(this.TQ)return Pcv(uz(this.R4)),3;this.R4.lastError="net.closed";return 5}}else{if(FR(this.R4,this.xhr.status,this.xhr.eP(),!1,this.US))return 5; var l=this.info.U;if(l&&l!==a||p.GX())return this.R4.lastError="net.closed",5;this.RD(!0)}l=enZ(this)?p.getResponseHeader("X-Bandwidth-Est"):0;if(p=enZ(this)?p.getResponseHeader("X-Bandwidth-Est3"):0)this.vp=!0,this.policy.Wd&&(l=p);LFf(this.R4,a,l?Number(l):0,this.info.mT[0].type===5);return 4}; g.L.canRetry=function(){this.Gm();var p=this.info.isDecorated();return this.R4.canRetry(p)}; g.L.onStateChange=function(){this.isComplete()&&(this.policy.CU?this.eF():this.timing.deactivate())}; g.L.eh=function(){this.R4.eh()}; g.L.uB=function(){this.callback&&this.callback(this,this.state)}; g.L.a6=function(){return this.R4.a6()}; g.L.dispose=function(){De.prototype.dispose.call(this);this.R4.dispose();var p;(p=this.s1)==null||p.dispose();this.policy.CU||this.eF()}; g.L.eF=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.L.Po=function(){if(!this.x4().length)return[];this.Ig=!0;return this.dc.Po()}; g.L.ID=function(){if(this.state<1)return!1;if(this.dc&&this.dc.ZF.length)return!0;var p;return((p=this.xhr)==null?0:p.cO())?!0:!1}; g.L.x4=function(){this.RD(!1);return this.dc?this.dc.x4():[]}; g.L.RD=function(p){try{if(p||this.xhr.zA()&&this.xhr.cO()&&!Eq(this.R4,this.xhr)&&!this.Bw)this.dc||(this.dc=new L4(this.policy,this.info.mT)),this.xhr.cO()&&(this.hk?this.hk.feed(this.xhr.R$()):Ct(this.dc,this.xhr.R$(),p&&!this.xhr.cO()))}catch(a){this.hk?WrO(this,a):g.Mf(a)}}; g.L.Ww=function(p,a){switch(p){case 21:p=a.split(1).CO;Fw$(this,p);break;case 22:this.iR=!0;Ct(this.dc,new NN([]),!0);break;case 43:if(p=Pr(new AJ(a),1))this.info.kz(this.G9,p),this.TQ=!0;break;case 45:a=fZq(new AJ(a));p=a.PP;a=a.I0;p&&a&&(this.Oa=p/a);break;case 44:this.cw=fHq(new AJ(a));var l,y,S;!this.timing.UO&&((l=this.cw)==null?void 0:l.action)===4&&((y=this.cw)==null?0:(S=y.Bp)==null?0:S.Do)&&(this.Do=this.cw.Bp.Do);break;case 53:this.policy.bf&&(p=loo(new AJ(a)).QR)&&(this.s1||(this.QR=p, this.s1=new g.l_(this.Qy,p,this)),this.s1.start());break;case 60:this.ZT=dF(new AJ(a));break;case 58:if(p=mDO(new AJ(a)))this.q1=p,p.q1===3&&(this.US=!0)}}; g.L.jg=function(p,a,l,y){l||this.timing.jg(y);if(p!==21)return!1;if(p=this.policy.sI)if(p*=this.info.mT[0].L.info.Lx,a.totalLength+l!==y&&a.totalLength0)return!1;if(!this.xhr.zA())return!0;if(this.hk)var p=!this.info.U;else this.xhr.Tu()?p=!1:(p=this.xhr.getResponseHeader("content-type"),p=p==="audio/mp4"||p==="video/mp4"||p==="video/webm");if(!p)return!1;if(isNaN(this.info.gE)){p=this.xhr.getResponseHeader("x-head-seqnum");var a=this.timing.policy.K?1:0;if(p&&Number(p)>this.info.mT[0].Rc+a)return!1}return!0}; g.L.dJ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.L.ip=function(){this.xhr&&(this.LU=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.LU}; g.L.sj=function(){this.xhr&&(this.vL=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.vL}; g.L.q3=function(){return this.R4.q3()}; g.L.Qy=function(){if(!this.Gm()&&this.xhr){this.sT="heartbeat";var p=this.R4;p.L+=2;this.uB()}};g.A(KL,fl);g.L=KL.prototype;g.L.rM=function(p,a){var l=(p-this.G)/1E3,y=a-this.U;this.S>0?y>0&&(this.w7&&(l>.2||y<1024?(this.j+=l,l>.2&&r4h(this,.05,y)):r4h(this,l,y)),this.Hs&&(this.nz+=y,this.r7+=l)):a>this.policy.L&&this.Jv(p,a);fl.prototype.rM.call(this,p,a)}; g.L.zr=function(p,a){aF(this,p,a);this.rM(p,a);this.w7&&(a=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.S>0&&Kp(this.s6,this.nz,this.j),p=(p-this.L)/1E3||.01,this.policy.Z&&!(this.S>0)||SG(this.s6,p,this.U,a,!1))}; g.L.Gh=function(p){aF(this,p,this.W);var a=(p-this.G)/1E3;rZK(this.s6,a,0);this.qt(a,0);!this.w7&&this.S>0||(a=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.S>0&&(this.j+=(p-this.G)/1E3,Kp(this.s6,this.nz,this.j)),SG(this.s6,(p-this.L)/1E3||.01,this.U,a,!1,!0))}; g.L.Ji=function(p){p=p.WY||2147483647;(p&2)!==2&&(this.Hs=!1);(p&1)===1&&(this.w7=!0)}; g.L.Rh=function(p){p=p.WY||2147483647;(p&2)===2&&(this.Hs=!1);(p&1)===1&&(this.w7=!1)}; g.L.K5=function(){return this.Z}; g.L.Pe=function(){var p=this.Hs?this.now()-this.G:0;return Math.max(this.r7*1E3+p,1)}; g.L.X3=function(){return this.nz*1E3/this.Pe()}; g.L.Jv=function(p,a){p=p===void 0?this.K:p;a=a===void 0?this.W:a;this.S>0||(fl.prototype.Jv.call(this,p,a),a=this.s6,p=(p-this.Sl)/1E3,a.Z.P9(1,(this.Sl-this.L)/1E3),a.QY.P9(1,p))}; g.L.hF=function(p){this.OO=p}; g.L.b4=function(){var p=fl.prototype.b4.call(this);p.rbw=this.X3();p.rbe=+this.Hs;p.gbe=+this.w7;p.ackt=(this.OO-this.L).toFixed();return p}; g.L.bz=function(){}; g.L.je=function(){return NaN}; g.L.p5=function(){return this.L+this.snapshot.delay*1E3};re.prototype.Ww=function(p,a){switch(p){case 20:p=new AJ(a);p={Sp:FW(p,1),videoId:Pr(p,2),itag:FW(p,3),lmt:FW(p,4),xtags:Pr(p,5),J7:FW(p,6),O9:bb(p,8),wd:FW(p,9),Ymc:FW(p,10),startMs:FW(p,11),durationMs:FW(p,12),Az:FW(p,14),timeRange:Yx(p,15,KFv),CC:FW(p,16),nm:FW(p,17),clipId:Pr(p,1E3)};this.Qm(p);break;case 21:this.bI(a,!1);break;case 22:this.Ri(a);break;case 31:p=gn(a,hyZ);this.Rw(p);break;case 52:p=gn(a,vah);this.e1(p);break;default:this.UH(p,a)}}; re.prototype.Qm=function(){}; re.prototype.UH=function(){};g.A(NgM,re);g.L=NgM.prototype; g.L.UH=function(p,a){switch(p){case 35:this.kS(a);break;case 44:this.rz(a);break;case 43:this.uI(a);break;case 53:this.kH(a);break;case 56:this.nG();break;case 57:this.V7(a);break;case 42:this.fD(a);break;case 45:this.GF(a);break;case 59:this.Mr(a);break;case 51:this.Ih(a);break;case 49:this.Ji(a);break;case 50:this.Rh(a);break;case 47:this.TV(a);break;case 58:this.nH(a);break;case 61:this.Wa.UE.hF((0,g.Ek)());break;case 66:this.Xt(a);break;case 46:this.uu(a);break;case 67:this.onSnackbarMessage(a);break; case 69:this.Sg(a)}}; g.L.Ih=function(p){p=new AJ(p);p={zUu:WJ(p,1,GV),Ocm:WJ(p,2,GV)};this.Wa.Ih(p)}; g.L.Mr=function(p){var a=new AJ(p);p=JJ(a,1);var l=JJ(a,2);a=JJ(a,3);this.Wa.Mr(p,l,a)}; g.L.GF=function(p){p=fZq(new AJ(p));this.Wa.GF(p)}; g.L.TV=function(p){p=gn(p,PoO);this.Wa.TV(p)}; g.L.fD=function(p){p=new AJ(p);p={videoId:Pr(p,1),formatId:Yx(p,2,GV),endTimeMs:FW(p,3),bgO:FW(p,4),mimeType:Pr(p,5),AZ:Yx(p,6,geO),indexRange:Yx(p,7,geO),Te:Yx(p,8,trr)};this.Wa.fD(p)}; g.L.V7=function(p){p=new AJ(p);p={type:FW(p,1),scope:FW(p,2),value:Cf(p,3),sendByDefault:bb(p,4),writePolicy:FW(p,5)};this.Wa.V7(p)}; g.L.nG=function(){this.Wa.nG()}; g.L.kS=function(p){p=J8o(new AJ(p));this.Wa.kS(p)}; g.L.kH=function(p){p=loo(new AJ(p));this.Wa.kH(p)}; g.L.rz=function(p){p=fHq(new AJ(p));this.Wa.rz(p)}; g.L.uI=function(p){p={redirectUrl:Pr(new AJ(p),1)};this.Wa.uI(p)}; g.L.bI=function(p){var a=ek(p,0);if(p.totalLength!==1){p=p.split(1).CO;var l=this.S[a]||null;l&&Up(this.Wa.hN,a,l,p)}}; g.L.Ri=function(p){p=ek(p,0);var a=this.S[p]||null;a&&this.Wa.Ri(p,a)}; g.L.e1=function(p){this.Wa.e1(p)}; g.L.Qm=function(p){var a=p.Sp,l=p.O9,y=p.J7,S=p.nm,n=p.CC,V=p.wd,z=p.startMs,d=p.durationMs,G=p.timeRange,B=p.Az,c=p.clipId,r=$L(p);p=C8a.has(lw[""+p.itag]);this.S[a]=r;this.Wa.G3(r,p,{Sp:a,O9:!!l,J7:y!=null?y:-1,wd:V!=null?V:-1,startMs:z!=null?z:-1,durationMs:d!=null?d:-1,Az:B,nm:S,CC:n,clipId:c,timeRange:G})}; g.L.Ji=function(p){p={WY:FW(new AJ(p),1)};this.Wa.Ji(p)}; g.L.Rh=function(p){p={WY:FW(new AJ(p),1)};this.Wa.Rh(p)}; g.L.Rw=function(p){this.Wa.Rw(p)}; g.L.nH=function(p){p=mDO(new AJ(p));this.Wa.nH(p)}; g.L.Xt=function(p){p={Re:Yx(new AJ(p),1,iRE)};this.Wa.Xt(p)}; g.L.onSnackbarMessage=function(p){p=FW(new AJ(p),1);this.Wa.onSnackbarMessage(p)}; g.L.Sg=function(p){p={gr:WJ(new AJ(p),1,e4M)};this.Wa.Sg(p)}; g.L.uu=function(p){p=new AJ(p);p={reloadPlaybackParams:Yx(p,1,ufM),Uz:bb(p,2)};this.Wa.uu(p)};g.A(vS,g.D);g.L=vS.prototype;g.L.vx=function(){return Array.from(this.ir.keys())}; g.L.Gj=function(p){p=this.ir.get(p);var a=p.ZF;p.Dw+=a.totalLength;p.ZF=new NN;return a}; g.L.h$=function(p){return this.ir.get(p).h$}; g.L.C6=function(p){return this.ir.get(p).C6}; g.L.G3=function(p,a,l){this.ir.get(p)||this.ir.set(p,{ZF:new NN,Dw:0,bytesReceived:0,sR:0,Uh:!1,h$:!1,C6:!1,Qh:a,c_:[],mT:[],XK:[],nP:!1,KC:new Map,C_:new Map,GH:[]});a=this.ir.get(p);this.MO?(p=GBq(this,p,l),CAq(this,l.Sp,a,p)):(l.O9?a.sR=l.Az:a.XK.push(l),a.c_.push(l))}; g.L.V5=function(p){var a;return((a=this.ir.get(p))==null?void 0:a.mT)||[]}; g.L.Lr=function(){for(var p=g.t(this.ir.values()),a=p.next();!a.done;a=p.next())if(a=a.value,a.Uh){if(a.onProgress)a.onProgress();a.Uh=!1}}; g.L.Ri=function(p,a){a=this.ir.get(a);Tv?a&&!a.h$&&(a.KC.get(p)?a.KC.get(p).NB=!0:a.KC.set(p,{data:new NN,qN:0,NB:!0}),a.C6=!0):a&&!a.C6&&(a.C6=!0)}; g.L.Po=function(p){if(Tv){var a=this.ir.get(p);if(a)for(var l=g.t(a.KC),y=l.next();!y.done;y=l.next()){var S=g.t(y.value);y=S.next().value;S=S.next().value;var n=a.C_.get(y);if(gB(n[0])){if(!S.NB)continue;var V=S.data,z=0,d=[];n=g.t(n);for(var G=n.next();!G.done;G=n.next()){G=G.value;var B=G.U,c=pv(V,z,B);z+=B;d.push(new FD(G,c))}a.GH.push.apply(a.GH,g.u0(d))}else if(S.data.totalLength>0||!n[0].range&&S.NB)V=void 0,z=n[0],d=S.qN,n=S.data,z.range||(V=S.NB),V=new FD(MFF(z,z.S+d,n.totalLength,V),n), S.qN+=V.info.U,a.GH.push(V);a.KC.get(y).data=new NN;S.NB&&a.KC.delete(y)}p=this.ir.get(p);if(!p)return[];a=p.GH;p.GH=[];l=g.t(a);for(y=l.next();!y.done;y=l.next())p.Dw+=y.value.info.U;return a||[]}l=(a=this.ir.get(p))==null?void 0:a.dc;if(!l)return[];this.RD(p,l);return l.Po()}; g.L.ID=function(p){if(Tv)return Zk(this,p);var a,l,y;return!!((l=(a=this.ir.get(p))==null?void 0:a.dc)==null?0:(y=l.x4())==null?0:y.length)||Zk(this,p)}; g.L.RD=function(p,a){for(;Zk(this,p);){var l=this.Gj(p);var y=p;y=this.ir.get(y).h$&&!jC(this,y);Ct(a,l,y&&lAA(this,p))}}; g.L.fz=function(){g.D.prototype.fz.call(this);for(var p=g.t(this.ir.keys()),a=p.next();!a.done;a=p.next())aS(this,a.value);var l;if((l=this.z9)==null?0:l.j8)for(p=g.t(this.ir.values()),a=p.next();!a.done;a=p.next())a=a.value,a.KC.clear(),a.C_.clear(),a.GH.length=0,a.mT.length=0,a.c_.length=0,a.XK.length=0;this.ir.clear()}; var Tv=!1;g.A(ez,g.D);g.L=ez.prototype;g.L.yp=function(){!this.Gm()&&this.xhr&&(this.RD(!1),uM(this.Wa,this))}; g.L.T3=function(){}; g.L.N9=function(){if(!this.Gm()&&this.xhr){var p=this.rJ();p===5?ND(this.R4):this.cZ(p);this.R4.S.stop();var a;(a=this.H6)==null||a.stop()}}; g.L.rJ=function(){var p="";Eq(this.R4,this.xhr)&&(p=jAr(this.R4,this.xhr));if(p)return this.info.bM.kz(this.G9,p),3;this.RD(!0);if(FR(this.R4,this.xhr.status,this.xhr.eP(),this.info.Z7(),this.US))return 5;if(this.Qw)return 3;LFf(this.R4,this.xhr.lK(),0,this.Z7());this.policy.o4&&Oef(this.Wa);return 4}; g.L.RD=function(p){var a=this.xhr;!p&&Eq(this.R4,this.xhr)||!a.cO()||(p=a.R$(),this.hk.feed(p))}; g.L.Ww=function(p,a){this.xhr.Sh()&&p===21&&uWv(this);this.Dm.Ww(p,a)}; g.L.jg=function(p,a,l,y){l||(this.UE.jg(y),this.policy.vR&&p===21&&uWv(this));if(p!==21)return!1;this.UE.UO=!0;p=a.totalLength;l||(this.Ur=ek(a,0),a=a.split(1).CO);var S=this.policy.Mw,n=this.Dm.S[this.Ur],V=this.MO.U.get(n);if(S&&V&&(S*=V.info.Lx,p+l!==y&&p0){this.policy.yP&&this.R4.S.stop();p=this.UE.Pe();a=this.UE.X3();var l=kVO(this,p);if(!(a>l.di||l.i8>0&&this.info.P0()>l.i8)){this.QA=(0,g.Ek)();var y;(y=this.H6)==null||y.stop();this.policy.o4&&(y=this.Wa,p={f6:Math.round(a*p/1E3),a$:p},y.policy.o4&&(y.Hs=p,y.Ii++));this.eh()}}}}; g.L.eh=function(){this.R4.eh()}; g.L.rz=function(p){this.Wa.rz(p,this.R1())}; g.L.uI=function(p){this.Qw=!0;this.info.bM.kz(this.G9,p.redirectUrl)}; g.L.Ji=function(p){this.UE instanceof KL&&this.UE.Ji(p)}; g.L.Rh=function(p){this.UE instanceof KL&&this.UE.Rh(p)}; g.L.fD=function(p){var a=p.formatId,l=$L({itag:a.itag,lmt:a.lmt,xtags:a.xtags}),y,S,n=new NV(((y=p.AZ)==null?void 0:y.first)||0,((S=p.AZ)==null?void 0:S.Ku)||0),V,z;y=new NV(((V=p.indexRange)==null?void 0:V.first)||0,((z=p.indexRange)==null?void 0:z.Ku)||0);this.MO.U.get(l)||(l=p.Te||{},l.mimeType=p.mimeType,l.itag=a.itag,l.lastModified=""+(a.lmt||0),l.xtags=a.xtags,p=this.MO,a=pH(""),l=eJ(l,null),ba(p,new TI(a,l,n,y)))}; g.L.GF=function(p){this.Wa.GF(p,this.R1())}; g.L.onSnackbarMessage=function(p){if(this.policy.tq)this.Wa.onSnackbarMessage(p)}; g.L.Sg=function(p){this.policy.G&&this.Wa.Sg(p,this.R1())}; g.L.Rw=function(p){this.xx=p;this.R4.U=(0,g.Ek)();this.Wa.Rw(p)}; g.L.Mr=function(p,a,l){this.Wa.Mr(p,a,l)}; g.L.V7=function(p){p.scope===2&&(this.TP=p);this.Wa.V7(p)}; g.L.nG=function(){this.M4=!0;this.Wa.nG()}; g.L.Ih=function(p){this.policy.w8&&this.Wa.Ih(p)}; g.L.TV=function(p){this.Wa.TV(p,this.R1())}; g.L.nH=function(p){p.q1===3&&(this.US=!0);this.Wa.nH(p)}; g.L.Xt=function(p){this.Wa.Xt(p)}; g.L.uu=function(p){this.Wa.uu(p)}; g.L.canRetry=function(){this.Gm();return this.R4.canRetry(!1)}; g.L.dispose=function(){if(!this.Gm()){g.D.prototype.dispose.call(this);this.R4.dispose();var p;(p=this.H6)==null||p.dispose();this.cZ(-1);this.eF()}}; g.L.cZ=function(p){this.state=p;uM(this.Wa,this)}; g.L.Z7=function(){return this.info.Z7()}; g.L.DC=function(){return this.M4}; g.L.EJ=function(){return this.TP}; g.L.G3=function(p,a,l){l.clipId&&(this.clipId=l.clipId);this.policy.S&&!a&&(this.OM=l.wd);if(this.info.isDecorated()){var y=this.info,S,n;var V=((S=y.data)==null?0:(n=S.VZ)==null?0:n.Nk)?y.data.VZ.Nk:-1;V>=0&&V>l.wd&&this.Wa.loader.jl("sdai",{skpsqmismatch:"1",stsq:V,rcvsq:l.wd,a:a})}this.hN.G3(p,a,l);this.policy.X_&&this.xx&&this.UE instanceof Tq&&(V=this.xx.dR,this.UE.G3(l.durationMs/1E3,a,V>0&&l.wd+1>=V));this.hN.ir.get(p).nP=!0}; g.L.Ri=function(p,a){this.hN.Ri(p,a)}; g.L.e1=function(p){this.requestIdentifier=p}; g.L.Po=function(p){return this.hN.Po(p)}; g.L.V5=function(p){return this.hN.V5(p)}; g.L.ID=function(p){return this.hN.ID(p)}; g.L.vx=function(){return this.hN.vx()}; g.L.qR=function(){return 1}; g.L.R1=function(){return this.UE.requestNumber}; g.L.yg=function(){return this.requestIdentifier}; g.L.RX=function(){return this.G9.RX()}; g.L.Z6=function(){this.eF()}; g.L.eF=function(){this.UE.deactivate();var p;(p=this.xhr)==null||p.abort()}; g.L.isComplete=function(){return this.state>=3}; g.L.TB=function(){return this.state===3}; g.L.M5=function(){return this.state===5}; g.L.IR=function(){return this.state===4}; g.L.wW=function(){return this.isComplete()}; g.L.LH=function(){return this.state>=1}; g.L.a6=function(){return this.policy.Kt?this.R4.a6():0}; g.L.uB=function(){this.policy.Kt&&uM(this.Wa,this)}; g.L.JI=function(){return RRv(this.info)}; g.L.q3=function(){return this.R4.q3()}; g.L.zw=function(){var p=DyZ(this.R4);Object.assign(p,uTZ(this.info));p.req="sabr";p.rn=this.R1();var a;if((a=this.xhr)==null?0:a.status)p.rc=this.policy.h4?this.xhr.status:this.xhr.status.toString();var l;(a=(l=this.xhr)==null?void 0:l.XF())&&(p.msg=a);this.QA&&(l=kVO(this,this.QA-this.UE.K5()),p.letm=l.Evc,p.mrbps=l.di,p.mram=l.i8);return p};fpZ.prototype.tick=function(p,a){this.ticks[p]=a?window.performance.timing.navigationStart+a:(0,g.Ek)()};g.A(SqM,g.qu);g.L=SqM.prototype; g.L.qH=function(p,a,l,y){if(this.policy.Y$&&this.policy.S){var S=p.YE||null;S?(Baf(this,p.Rc,yR(this,p.startTime,p.Rc),{YE:S,Rc:p.Rc,x0:!!a,HX:l},this.U),y&&this.U&&this.U.En(p.Rc,p.startTime,this.S,(a==null?void 0:a.L)||[],(a==null?void 0:a.S)||[],(a==null?void 0:a.j)||[],l,(a==null?void 0:a.Ev)||0,(a==null?void 0:a.U)||void 0)):this.S===1&&pV(this,5,"noad")}else{var n=!1;this.policy.S&&(n=l?this.Bs===p.Rc:this.w7===p.Rc);if(this.U&&y&&!n){y=[];n=[];var V=[],z=void 0,d=0;a&&(y=a.L,n=a.S,V=a.j,z= a.U,d=a.Ev,this.jl("sdai",{sq:p.Rc,ssvicpns:y.join("."),ssvid:n.join(".")}));this.policy.S&&(l?this.Bs=p.Rc:this.w7=p.Rc);this.U.En(p.Rc,p.startTime,this.S,y,n,V,l,d,z)}this.policy.S?l&&(this.S===1&&pV(this,5,"noad"),p.Rc!==((S=this.L)==null?void 0:S.Rc)&&(n1M(this,p,a,l),isNaN(p.startTime)||UOZ(this,p.Rc,yR(this,p.startTime,p.Rc),!!a,this.U))):l&&n1M(this,p,a)}}; g.L.DQ=function(p,a,l){var y=this.videoTrack.L.index.xE()<=a;this.L={YE:p,Rc:a,x0:l};y&&zg(this,p,a)}; g.L.ZK=function(){this.U&&this.U.ZK()}; g.L.jl=function(p,a,l){(p!=="sdai"||this.policy.W8||(l===void 0?0:l))&&this.loader.jl(p,a)}; g.L.qJ=function(p,a){var l=this.videoTrack.L.index.Ot(p);if(l>=0){var y;var S=((y=a.I4.Uy(l,2))==null?void 0:y.tH)||"";if(this.policy.S||S)return a.nN(p,l),DK(this.loader,p,p,l),this.jl("sdai",{cmskpad:1,t:p.toFixed(3),sq:l}),!0}this.jl("sdai",{cmskpad:0,t:p.toFixed(3),sq:l});return!1};g.L=Tpq.prototype;g.L.uA=function(p,a,l){var y=p||this.L;this.jl("clsdai",{setadcfg:1,ocid:p,cid:y,acpn:l,acfglen:(a==null?void 0:a.length)||0});this.S.has(y)||(this.jl("clsdai",{setadcfg:"noentry",cid:y}),this.S.set(y,{event:"unknown",startTimeSecs:0,DI:0,GU:[],UF:Date.now(),xi:-1,bU:6}));(p=this.S.get(y))?a?(p.bU=6,p.GU.push(l),p.k_=a):p.bU=2:this.jl("clsdai",{setadcfg:"notfound",cid:y})}; g.L.Sg=function(p,a,l){var y;if(!((((y=p.gr)==null?void 0:y.length)||0)<=0)&&(p=p.gr[0],p.YE)){var S;y=-(((S=p.YE)==null?void 0:S.KM)||0);p.timeRange&&(y+=(p.timeRange.startTicks||0)/(p.timeRange.timescale||1));var n,V,z,d,G;S=new ET(y,((n=p.YE)==null?void 0:n.wlI)||0,((V=p.YE)==null?void 0:V.nR)||"",((z=p.YE)==null?void 0:z.identifier)||"",aUM((d=p.YE)==null?void 0:d.event),(((G=p.YE)==null?void 0:G.KM)||0)*1E3);UQf(this,S,a,p.wd||0,l)}}; g.L.nN=function(p,a,l){var y=p;this.j&&(y+=l);this.RZ(y);y=this.S.get(this.L);if(!y||y.Vz)return this.jl("clsdai",{skipadfail:1,cid:this.L,sn:a,mt:p.toFixed(3),of:l.toFixed(3),skipsq:(y==null?void 0:y.Vz)||-1}),!1;this.jl("clsdai",{skipadsuc:1,cid:this.L,sn:a,mt:p.toFixed(3),of:l.toFixed(3)});y.Vz=a;return!0}; g.L.us=function(){this.jl("clsdai",{rstskipad:1});for(var p=g.t(this.S.values()),a=p.next();!a.done;a=p.next())a.value.Vz=NaN}; g.L.RZ=function(p,a){a&&(this.W=a);if(this.L&&(a=this.S.get(this.L))&&a.startTimeSecs<=p&&p<=a.startTimeSecs+a.DI)return;a=this.L||"";a:{for(var l="",y=g.t(this.S.entries()),S=y.next();!S.done;S=y.next()){var n=g.t(S.value);S=n.next().value;n=n.next().value;var V=void 0,z=void 0,d=void 0;if(((V=n)==null?void 0:V.startTimeSecs)<=p&&p<=((z=n)==null?void 0:z.startTimeSecs)+((d=n)==null?void 0:d.DI)){p=S;break a}z=V=void 0;l+=S+":"+((V=n)==null?void 0:V.startTimeSecs.toFixed(3))+":"+((z=n)==null?void 0: z.DI.toFixed(3))+";"}this.jl("clsdai",{no_cid:1,mt:p.toFixed(3),adConfigMap:l.substring(0,1024)});p=""}this.L=p;this.jl("clsdai",{updateccid:1,cid:this.L,ocid:a})};g.A(cF,g.D);cF.prototype.Bk=function(p,a,l){l=l===void 0?{}:l;this.policy.R7=N4(p,l,this.j,a===void 0?!1:a)};aRr.prototype.ZP=function(p){var a=this;if(this.policy.Aq){var l=new Set(p);l.size===this.QY.size&&[].concat(g.u0(l)).every(function(y){return a.QY.has(y)})||(this.loader.jl("lwnmow",{itagDenylist:[].concat(g.u0(p)).join(",")}),this.loader.bj(!!l.size),this.Sl=-1,this.QY=l,Kt(this,this.L),this.nz=!0)}}; aRr.prototype.Bk=function(p,a,l){l=l===void 0?{}:l;var y=this.policy.R7;this.W.Bk(p,a===void 0?!1:a,l);if(y!==this.policy.R7){Kt(this,this.L);uu(this);var S,n;y>this.policy.R7&&((S=this.U)==null?0:W8(S.info))&&((n=this.nextVideo)==null||!W8(n.info))&&(this.UO=!0)}};var gmh={B5:-1,UO9:!1,Yr:0};g.A(NcM,g.D);NcM.prototype.fz=function(){Y7f(this);g.D.prototype.fz.call(this)};xn.prototype.y5=function(p){this.timestampOffset=p;this.flush()}; xn.prototype.flush=function(){if(this.L.pos>0){var p={a:this.track.Qh(),u:this.L.Ut(),pd:Math.round(this.j),ad:Math.round(this.U)},a=this.S;if(a){var l=a.L.info;p.itag=l.itag;l.L&&(p.xtags=l.L);p.sq=a.Rc;p.st=a.startTime;p.sd=a.duration;this.track.policy.sK&&(p.si=a.AP());a.j&&(p.esl=a.S+a.U);a.I7()&&(p.eos=1)}isNaN(this.timestampOffset)||(p.to=this.timestampOffset);var y;if(a=(y=this.track.Io)==null?void 0:y.mS({})){for(var S in a)this.G[S]!==a[S]&&(p["sb_"+S]=a[S]);this.G=a}this.track.jl("sbu", p);this.L.reset();this.buffered=[];this.W=this.U=this.j=0;this.timestampOffset=this.S=void 0}};HCh.prototype.dispose=function(){this.Xu=!0}; HCh.prototype.Gm=function(){return this.Xu}; g.A(eA,Error);sD.prototype.skip=function(p){this.offset+=p}; sD.prototype.A4=function(){return this.offset};g.L=sbv.prototype;g.L.Ti=function(){return this.S}; g.L.ai=function(){return this.S.length?this.S[this.S.length-1]:null}; g.L.FG=function(){this.S=[];A8(this);bw(this)}; g.L.Gj=function(p){this.r7=this.S.shift().info;p.info.equals(this.r7)}; g.L.V5=function(){return g.lb(this.S,function(p){return p.info})}; g.L.Qh=function(){return!!this.W.info.audio}; g.L.isDrm=function(){return!!this.W.info.Hy}; g.L.getDuration=function(){return this.W.index.u4()};g.A(dw,De);g.L=dw.prototype;g.L.onStateChange=function(){this.Gm()&&(xA(this.hN,this.formatId),this.L.dispose())}; g.L.zw=function(){var p=sVE(this.hN,this.formatId),a;var l=((a=this.hN.ir.get(this.formatId))==null?void 0:a.bytesReceived)||0;var y;a=((y=this.hN.ir.get(this.formatId))==null?void 0:y.Dw)||0;return{expected:p,received:l,bytesShifted:a,sliceLength:jC(this.hN,this.formatId),isAnyMediaEndReceived:this.hN.C6(this.formatId)}}; g.L.Wm=function(){return 0}; g.L.Ly=function(){return!0}; g.L.Po=function(){return this.hN.Po(this.formatId)}; g.L.x4=function(){return[]}; g.L.ID=function(){return this.hN.ID(this.formatId)}; g.L.q3=function(){return this.lastError}; g.L.a6=function(){return 0};g.A(mt,g.D);g.L=mt.prototype;g.L.Qh=function(){return!!this.L.info.audio}; g.L.ai=function(){return this.j.ai()}; g.L.Gj=function(p){this.j.Gj(p);var a;(a=this.Z)!=null&&(a.W.add(p.info.Rc),a.L=uyf(a,a.wq,a.T4,p,a.L),a.U=p,a.G=(0,g.Ek)());this.Lx=Math.max(this.Lx,p.info.L.info.Lx||0)}; g.L.getDuration=function(){return this.L.index.u4()}; g.L.FG=function(){Fg(this);this.j.FG()}; g.L.YG=function(){return this.j}; g.L.isRequestPending=function(p){return this.U.length?p===this.U[this.U.length-1].info.mT[0].Rc:!1}; g.L.y5=function(p){var a;(a=this.Z)==null||a.y5(p);var l;(l=this.Sl)==null||l.y5(p)}; g.L.jl=function(p,a){this.loader.jl(p,a)}; g.L.Ho=function(){return this.loader.Ho()}; g.L.dispose=function(){var p;(p=this.Sl)==null||p.flush();g.D.prototype.dispose.call(this)};g.A(qd,g.D);qd.prototype.U=function(){this.S++>15||(this.L=!this.L,new fGr(this.loader,this.policy,this.s6,this.bM,this.L),this.delay.start())}; g.L=fGr.prototype;g.L.T3=function(){}; g.L.yp=function(){}; g.L.N9=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.lK()===this.size)this.loader.jl("rqs",this.getInfo());else{var p="net.connect";this.xhr.status>200?p="net.badstatus":this.xhr.zA()&&(p="net.closed");this.onError(p)}}; g.L.onError=function(p){var a=this;this.loader.handleError(p,this.getInfo());TX("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(l){a.loader.jl("pathprobe",l)},function(l){a.loader.handleError(l.errorCode,l.details)})}; g.L.getInfo=function(){var p=this.timing.b4();p.shost=ik(33,this.location.VS);p.pb=this.size;return p};g.A(Oy,g.D); Oy.prototype.K=function(p,a){if(p.K){this.MO.isLive?(p=this.MO.BX&&this.MO.j?p.L.CN(this.MO.BX,!1):p.L.TA(Infinity),p.gE=this.gE):p=p.L.CN(0,!1);if(this.UO){var l=this.UO;p.gE===0&&(p.W=l.Z)}else p.W=this.Sl;return p}l=p.S;if(!l.L.Dg())return l.L.G4()?(p=dk(this.W,p.L.info.Lx,a.L.info.Lx,0),p=l.L.jF(l,p)):p=l.L.mw(l),p;var y=l.G-this.loader.getCurrentTime(),S=!l.range||l.U===0&&l.S===0?0:l.range.length-(l.S+l.U),n=l.L;this.Xc(p,y)&&S===0&&(this.MO.isManifestless?n=p.L:(n=l.startTime+Syv,l.U&&(n+= l.duration),Ed(p,n),l=p.S,n=l.L));n.G4()?(S=this.U,a=dk(this.W,n.info.Lx,a.L.info.Lx,y,S.j.length>0&&S.Z===0&&this.loader.fU),y=VW(p),p=l.L.jF(l,a),(a=p.U)&&p.mT.length>1&&(y||p.bM.U||p.mT[0].L!==l.L?p=l.L.jF(l,p.mT[0].U):(y=p.mT[p.mT.length-1],n=y.U/a,!y.j&&n<.4&&(p=l.L.jF(l,a-y.U))))):(l.Rc<0&&(a=$8(l),a.pr=""+p.U.length,this.loader.isSeeking()&&(a.sk="1"),a.snss=l.K,this.loader.jl("nosq",a)),p=n.mw(l));if(this.policy.QY)for(l=g.t(p.mT),a=l.next();!a.done;a=l.next())a.value.type=6;return p}; Oy.prototype.Xc=function(p,a){if(!VW(p)||!p.L.Dg())return!1;var l;(l=this.U.nz)||(l=VW(p)&&p.L.Dg()&&p.S.L.info.Lx=a)return y.return();(l=p.L.get(0))&&T$q(p,l);g.lD(y)})}; var $Sr={VTc:0,i9T:1,H9c:2,Z9T:3,q2c:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};YKo.prototype.decrypt=function(p){var a=this,l,y,S,n,V,z;return g.R(function(d){switch(d.L){case 1:if(a.L.length&&!a.L[0].isEncrypted)return d.return();a.S=!0;a.rA.nt("omd_s");l=new Uint8Array(16);zT()?y=new g.s4(p):S=new g.J$(p);case 2:if(!a.L.length||!a.L[0].isEncrypted){d.g7(4);break}n=a.L.shift();if(!y){V=S.decrypt(Xb(n.buffer),l);d.g7(5);break}return g.u(d,y.decrypt(Xb(n.buffer),l),6);case 6:V=d.S;case 5:z=V;for(var G=0;G=4)){var a=gx(this),l=this.xhr;a.rc=l.status;p&&(a.ab=!0);if(l.XF()){var y="onesie.net";a.msg=l.XF()}else l.status>=400?y="onesie.net.badstatus":l.eP()?this.fu||(y="onesie.response.noplayerresponse"):y=l.status===204?"onesie.net.nocontent":"onesie.net.connect";y?this.fail(new g.mm(y,a)):(this.nt("or_fs"),this.UE.zr((0,g.Ek)(),l.lK(),0),this.cZ(4),this.kT&&this.jl("rqs",a));this.kT&&this.jl("ombre","ok."+ +!y);this.tA=!1;n9(this); UqZ(this.rA);if(!this.kB){this.oh.stop();var S;(S=this.NH)==null||S.stop()}var n;if(p=(n=this.WN)==null?void 0:d3o(n))for(n=0;n1E3){var p;(p=this.UE)==null||p.Gh((0,g.Ek)());p=gx(this);if(this.Y.ao()&&this.xhr instanceof dSA){var a=this.xhr;p.xrs=a.xhr.readyState;p.xpb=a.L.totalLength;p.xdc=a.j}this.fail(new g.mm("net.timeout",p))}}else(0,g.Ek)()-this.UE.L>1E4&&((a=this.UE)==null||a.Gh((0,g.Ek)()),this.ag());this.isComplete()||this.vY.start()}}; g.L.ag=function(){this.tA=!1;if(!n9(this)){var p=gx(this);p.timeout="1";this.fail(new g.mm("onesie.request",p))}}; g.L.fail=function(p){var a=this;p=jl(p);this.kC?this.Lz.w$(p):(this.Om.reject(p),this.kC=!0);UqZ(this.rA);this.kB||this.oh.stop();this.nt("or_fe");var l,y;(l=this.WN)==null||(y=d3o(l))==null||y.forEach(function(S){a.jl("pathprobe",S)}); this.cZ(5);this.dispose()}; g.L.isComplete=function(){return this.state>=3}; g.L.IR=function(){return this.state===4}; g.L.wW=function(p){var a,l;return this.isComplete()||!!((a=this.eD)==null?0:(l=a.get(p))==null?0:l.L)}; g.L.TB=function(){return!1}; g.L.M5=function(){return this.state===5}; g.L.notifySubscribers=function(p){for(var a=0;a102400&&!this.GB&&(this.nt("or100k"),this.GB=!0);if(p.cO()){var a=p.R$(),l=a.totalLength;this.kT&&this.jl("ombrss","len."+l);this.hk.feed(a)}if(this.eD)for(var y=g.t(this.eD.keys()),S=y.next();!S.done;S=y.next()){var n=S.value;p=void 0;(p=this.eD.get(n))==null||p.Lr();this.notifySubscribers(n)}}catch(V){this.fail(V)}}; g.L.R1=function(){return this.UE.requestNumber}; g.L.yg=function(p){return this.Uk.get(p)};g.A($9o,g.D);g.L=$9o.prototype;g.L.Dv=function(p,a){this.UO=void 0;Oef(this);URE(this,p,a)}; g.L.UA=function(p){if(this.L.length===0)return!1;var a=this.L[0];return a instanceof Bg?p===this.loader.getCurrentTime()*1E3:!(a instanceof ez&&i5O(a.info))&&Math.abs(a.JI()-p)<50}; g.L.kS=function(p){this.S=p;this.UO=(0,g.Ek)()+(p.backoffTimeMs||0)}; g.L.rz=function(p,a){if(p.action===void 0){var l=this.Lz.cA();l!==void 0&&this.loader.Wf(l)}else if(p.action!==0||!this.OO)if(p.action===0&&this.policy.Q8&&(p.action=2),p.jN==="sabr.malformed_config"&&this.Kz++<3)this.loader.handleError("sabr.malformed_config",{action:p.action,rn:a,retry:this.Kz},0);else switch(p.jN==="sabr.malformed_config"&&(p.action=2),l={},l.reason=p.jN,l.action=p.action,l.rn=a,p.action){case 1:this.policy.S&&this.K&&this.K.TY(void 0,void 0,l);break;case 0:this.OO=!0;this.videoData.vy()&& this.policy.S&&this.K&&this.K.TY(void 0,void 0,l,!1);this.loader.Er(l);break;case 2:R0f(p.jN)!=="sabr.config"&&delete l.reason;this.loader.handleError(R0f(p.jN),l,1);break;case 3:this.policy.Fh&&((p=this.MO.Sl)!=null&&(p.Z=!0),this.loader.handleError("sabr.hostfallback",l))}}; g.L.V7=function(p){p&&(this.loader.jl("sabrctxt",{onsbrctxt:p.type,scp:p.scope,dflt:p.sendByDefault}),p.type&&p.sendByDefault&&this.videoData.Ps.add(p.type),p.scope!==2&&(p.type&&this.videoData.sabrContextUpdates.set(p.type,p),this.Lz.V7(p)))}; g.L.nG=function(){}; g.L.GF=function(p,a){if(this.loader.Y0)this.loader.jl("sdai",{ignSabrSeek:1,smt:p==null?void 0:p.PP,rn:a});else if(p.PP!==void 0&&p.I0){var l=p.PP/p.I0;this.audioTrack.K=!1;this.videoTrack.K=!1;if(this.policy.Xu||this.policy.yS||this.policy.E9)this.loader.R9.L=!1;var y=this.loader.Ql(l,1);this.policy.Ps&&this.policy.S&&this.loader.RZ(y,a);this.Lz.getCurrentTime()!==l&&(a={JP:"sabr_seek",U1:!0,E_:!0},p.seekSource&&(a.seekSource=p.seekSource),VR(this.loader,l+.1,a))}}; g.L.onSnackbarMessage=function(p){this.Lz.publish("onSnackbarMessage",p)}; g.L.Sg=function(p,a){this.policy.G&&!Gf$(this.videoData)&&this.loader.Sg(p,a)}; g.L.Rw=function(p){p.dR&&p.Ey&&oj(this.MO,p.dR,p.Ey);this.policy.Ks&&(p.u7&&p.Gl&&(this.MO.RK=p.u7/p.Gl),p.WK&&p.ge&&(this.MO.UM=p.WK/p.ge));FT(this.videoData)&&!this.videoData.w7&&p.Ey&&this.loader.Ql(p.Ey,1E3);p.V_!=null&&this.Lz.wl(p.V_);p.S6&&(p=((0,g.Ek)()-p.S6)/1E3,this.loader.V8.P9(1,p))}; g.L.nH=function(p){this.loader.nH(p)}; g.L.MF=function(p){return this.videoData.Ps.has(p)}; g.L.Mr=function(p,a,l){this.policy.U&&this.loader.jl("sabrctxtplc",{start:p?p.join("_"):"",stop:a?a.join("_"):"",discard:l?l.join("_"):""});if(p){p=g.t(p);for(var y=p.next();!y.done;y=p.next())this.videoData.Ps.add(y.value)}if(a)for(a=g.t(a),p=a.next();!p.done;p=a.next())p=p.value,this.videoData.Ps.has(p)&&this.videoData.Ps.delete(p);if(l)for(l=g.t(l),a=l.next();!a.done;a=l.next())if(a=a.value,this.videoData.sabrContextUpdates.has(a)&&this.videoData.sabrContextUpdates.delete(a),this.policy.UO&&this.L.length)for(p= g.t(this.L),y=p.next();!y.done;y=p.next())if(y=y.value,!(y instanceof Bg)){var S=void 0;((S=y.TP)==null?void 0:S.type)===a&&(y.TP=void 0)}}; g.L.Ih=function(){}; g.L.Mx=function(p){this.G=p}; g.L.qU=function(p){this.W=p}; g.L.TV=function(p,a){gX$(this.policy,p,4,a)}; g.L.Xt=function(p){if(p==null?0:p.Re)if(p=p.Re.y3){p=g.t(p);for(var a=p.next();!a.done;a=p.next())if(a=a.value,a.formatId){var l=this.MO.U.get($L(a.formatId));l&&l.info&&(l.info.debugInfo=a.debugInfo)}}}; g.L.uu=function(p){this.Lz.publish("reloadplayer",p)}; g.L.K1=function(){return this.Lz.K1()||""}; g.L.P0=function(){var p=QHO(this);return Math.min(p.Im,p.yb)}; g.L.wG=function(p,a){this.loader.jl(p,a)}; g.L.V3=function(p){SY(this.loader,n5o(this.Ps,p))}; g.L.fz=function(){g.D.prototype.fz.call(this);this.S=void 0;URE(this,!0,"i");this.L=[]};Hl.prototype.UO=function(p){ZA(p.state)&&hlZ(this.U)}; Hl.prototype.clear=function(){ZOe(this.U);this.W.clear();this.S.clear();this.K=this.Z=NaN;this.G=!1;this.J5=""}; Hl.prototype.pG=function(){this.isSeeking=!0;this.L===1&&ZOe(this.U);this.L===0&&this.UY.lf("transitiondetector");this.G=!1};sr1.prototype.e5=function(p,a){if(this.j)return ndM(this,a);if(a=d$(p)){var l=a.L;l&&l.U&&l.L&&(p=p.U.length?p.U[0]:null)&&p.state>=2&&!p.M5()&&p.info.gE===0&&(this.j=p,this.K=l,this.S=a.info,this.G=this.startTimeSecs=Date.now()/1E3,this.W=this.S.startTime)}return NaN}; sr1.prototype.clear=function(){this.S=this.K=this.j=null;this.L=this.W=this.G=this.startTimeSecs=NaN;this.U=!1};g.A(a$,g.D);a$.prototype.fz=function(){brM(this);g.D.prototype.fz.call(this)};var Q$h=/[?&]cpn=/;g.A(lH,g.D);lH.prototype.flush=function(){var p={};this.S&&(p.pe=this.S);this.L.length>0&&(p.pt=this.L.join("."));this.L=[];return p}; lH.prototype.stop=function(){var p=this,a,l,y;return g.R(function(S){if(S.L==1)return g.$r(S,2),g.u(S,(a=p.j)==null?void 0:a.stop(),4);if(S.L!=2)return(l=S.S)&&p.logTrace(l),g.L8(S,0);y=g.L6(S);p.S=zeF(y.message);g.lD(S)})}; lH.prototype.logTrace=function(p){this.encoder.reset();this.encoder.add(1);this.encoder.add(p.resources.length);for(var a=g.t(p.resources),l=a.next();!l.done;l=a.next()){l=l.value.replace("https://www.youtube.com/s/","");this.encoder.add(l.length);for(var y=0;y=0?p:g.US(this.provider),this.w7?gpW.has(this.qe)&&(this.L.size||(this.qe==="PL"?p>=this.S+30:p<=this.UO+30||p>=this.S+1200&&p<=this.UO+86400))&&(g.pt(this,p,"vps",[this.qe]),this.S=p):["PL","B","S"].indexOf(this.qe)>-1&&(this.L.size||p>=this.S+30)&&(g.pt(this,p,"vps",[this.qe]),this.S=p),this.L.size)){this.sequenceNumber===7E3&&g.Mf(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Qd(this,p);var a=this.provider.Lz.i6(); a=g.t(a);for(var l=a.next();!l.done;l=a.next())l=l.value,this.jl(l.key,l.value);a=p;l=this.provider.Lz.XL();var y=l.droppedVideoFrames||0,S=l.totalVideoFrames||0,n=y-this.RL,V=S&&!this.kA;y>l.totalVideoFrames||n>5E3?mjA(this,"html5.badframedropcount","df."+y+";tf."+l.totalVideoFrames):(n>0||V)&&g.pt(this,a,"df",[n]);this.RL=y;this.kA=S;this.Z>0&&(g.pt(this,p,"glf",[this.Z]),this.Z=0);pd.isActive()&&(p=pd.SM(),Object.keys(p).length>0&&this.jl("profile",p));this.Ha&&cJ(this,"lwnmow");this.provider.Y.ao()&& this.provider.D("html5_record_now")&&this.jl("now",{wt:(0,g.Ek)()});p={};this.provider.videoData.S&&(p.fmt=this.provider.videoData.S.itag,(a=this.provider.videoData.j)&&a.itag!==p.fmt&&(p.afmt=a.itag));p.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(p.adcpn=this.adCpn);this.wj&&(p.addocid=this.wj);this.contentCpn&&(p.ccpn=this.contentCpn);this.Bs&&(p.cdocid=this.Bs);this.provider.videoData.cotn&&(p.cotn=this.provider.videoData.cotn);p.el=oB(this.provider.videoData);p.content_v=Rn(this.provider.videoData); p.ns=this.provider.Y.UO;p.fexp=TqE(this.provider.Y.experiments).toString();p.cl=(810467872).toString();(a=this.provider.videoData.adFormat||this.adFormat)&&(p.adformat=a);(a=Bl(this.provider.videoData))&&(p.live=a);this.provider.videoData.m7()&&(p.drm=1,this.provider.videoData.W&&(p.drm_system=tll[this.provider.videoData.W.flavor]||0),this.provider.videoData.drmProduct&&(p.drm_product=this.provider.videoData.drmProduct));Er()&&this.provider.videoData.G&&(p.ctt=this.provider.videoData.G,p.cttype=this.provider.videoData.C8, this.provider.videoData.mdxEnvironment&&(p.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(p.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.uF&&(p.dai_fallback="1")):this.provider.videoData.a4?p.dai="cs":this.provider.videoData.OI&&(p.dai="disabled");p.seq=this.sequenceNumber++;if(this.provider.videoData.KY){if(a=this.provider.videoData.KY,p&&a)for(a.ns==="3pp"&&(p.ns="3pp"),this.bf.has(a.ns)&&cJ(this,"hbps"), a.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=a.shbpslc),this.provider.Y.experiments.Cz("html5_use_server_qoe_el_value")&&this.Ps.delete("el"),l=g.t(Object.keys(a)),y=l.next();!y.done;y=l.next())y=y.value,this.Ps.has(y)||(p[y]=a[y])}else p.event="streamingstats",p.docid=this.provider.videoData.videoId,p.ei=this.provider.videoData.eventId;this.isEmbargoed&&(p.embargoed="1");Object.assign(p,this.provider.Y.L);if(a=p.seq)a={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+a, serializedWatchEndpointLoggingContext:this.provider.videoData.NE7},this.serializedHouseBrandPlayerServiceLoggingContext&&(a.serializedHouseBrandPlayerServiceLoggingContext=tY(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(a.playerResponseCpn=this.provider.videoData.playerResponseCpn),f1.length&&(a.decoderInfo=f1),this.remoteControlMode&&(a.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(a.remoteConnectedDevices= this.remoteConnectedDevices),a=g.JZ(a,xTv),a=g.MN(a,4),this.L.set("qclc",[a]);p=g.C2("//"+this.provider.Y.er+"/api/stats/qoe",p);l=a="";y=g.t(this.L.entries());for(S=y.next();!S.done;S=y.next())n=g.t(S.value),S=n.next().value,n=n.next().value,V=void 0,(V=n)!=null&&V.join&&(S="&"+S+"="+n.join(","),S.length>100?l+=S:a+=S);S7U(this,p+a,l.replace(/ /g,"%20"))}this.L.clear()}}; g.L.bj=function(p){this.Ha=p}; g.L.nT=function(){if(this.provider.videoData.W){var p=this.provider.videoData.W;cJ(this,"eme-"+(p.keySystemAccess?"final":b8(p)?"ms":a9(p)?"ytfp":As(p)?"safarifp":"nonfinal"))}}; g.L.Jk=RR(53);g.L.zM=function(p){this.isEmbargoed=p}; g.L.VT=RR(30);g.L.Cq=RR(36);g.L.onPlaybackRateChange=function(p){var a=g.US(this.provider);p&&p!==this.EC&&(g.pt(this,a,"rate",[p]),this.EC=p);this.w7||this.reportStats(a)}; g.L.jR=RR(24);g.L.getPlayerState=function(p){if(g.h(p,128))return"ER";if(g.h(p,2048))return"B";if(g.h(p,512))return"SU";if(g.h(p,16)||g.h(p,32))return"S";if(p.isOrWillBePlaying()&&g.h(p,64))return"B";var a=YQU[yG(p)];g.g5(this.provider.Y)&&a==="B"&&this.provider.Lz.getVisibilityState()===3&&(a="SU");a==="B"&&g.h(p,4)&&(a="PB");return a}; g.L.W6=function(p){var a=g.US(this.provider);g.pt(this,a,"vfi",[p===0?"":""+p,p===0?"A":"M"])}; g.L.fz=function(){g.D.prototype.fz.call(this);g.pA(this.Xu);g.pA(this.Fh)}; g.L.eN=function(p){this.isOffline=p;g.pt(this,g.US(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.L.jl=function(p,a,l){var y=this.o4.indexOf(p)!==-1;y||this.o4.push(p);if(!l||!y){a=typeof a!=="string"?qp(a):a;a=vBh(a);if(!l&&!/^t[.]/.test(a)){var S=g.US(this.provider)*1E3;a="t."+S.toFixed()+";"+a}nR(this,"ctmp",p+":"+a);hO(this);return S}}; g.L.Zk=function(p,a,l){this.W={EoO:Number(this.jl("glrem",{nst:p.toFixed(),rem:a.toFixed(),ca:+l})),cK:p,x2O:a,isAd:l}}; g.L.bA=function(p,a,l){g.pt(this,g.US(this.provider),"ad_playback",[p,a,l])}; g.L.iQ=function(p,a){var l=g.US(this.provider)*1E3;nR(this,"daism","t."+l.toFixed(0)+";smw."+(p*1E3).toFixed(0)+";smo."+(a*1E3).toFixed(0))}; g.L.resume=function(){var p=this;isNaN(this.Xu)?gur(this):this.Xu=g.Vo(function(){p.reportStats()},1E4)}; var PU={},YQU=(PU[5]="N",PU[-1]="N",PU[3]="B",PU[0]="EN",PU[2]="PA",PU[1]="PL",PU[-1E3]="ER",PU[1E3]="N",PU),gpW=new Set(["PL","B","S"]),f1=[];g.A(g.kE,g.D);g.L=g.kE.prototype;g.L.initialize=function(p,a,l){p=p||0;this.policy.L||(a=K$o(this.L),wH(this.Lz,new Lq(a.video,a.reason)),this.Lz.x8(new Lq(a.audio,a.reason)));this.policy.L&&lV(this);this.MO.isManifestless&&FCf(this.W);this.K&&pyA(this.K,this.videoTrack.L);a=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var y=!this.MO.isManifestless;this.policy.OI&&(y=y||this.MO.uf);if(!this.policy.t9||this.policy.oo)this.currentTime=y?p:a;this.policy.Xu&&this.seek(this.getCurrentTime(),{}).Nb(function(){}); if(this.policy.L){var S;((S=this.UO)==null?0:xFF(S,this.K1()||""))&&cdF(this)&&LY(this,this.videoTrack)&&LY(this,this.audioTrack)&&(WSr(this.S,this.UO),this.policy.W&&n_o(this))}else this.Xu&&(Jjh(this,this.videoTrack),Jjh(this,this.audioTrack),JBc(this.Xu),delete this.Xu);l?(GbZ(this,!1),g.sb(this.Oy)):(p=this.getCurrentTime()===0,f6(this.W,this.videoTrack,this.videoTrack.L,p),f6(this.W,this.audioTrack,this.audioTrack.L,p),this.policy.L&&Kqv(this.S,!0),this.policy.Xu||this.seek(this.getCurrentTime(), {}).Nb(function(){}),this.timing.tick("gv")); (this.MO.BX||this.MO.l_||this.MO.QY||this.MO.va||this.MO.oo)&&this.Lz.E8(this.MO)}; g.L.resume=function(){if(this.isSuspended||this.fU){this.sF=this.fU=this.isSuspended=!1;try{this.e5()}catch(p){g.iO(p)}}}; g.L.hH=function(){return!this.policy.Sa}; g.L.rj=function(p,a){p=p===void 0?!1:p;a=a===void 0?!1:a;AYF(this);this.Lz.M3()&&(this.G=NaN);p?(this.policy.Hs&&this.jl("loader",{setsmb:1}),this.policy.QY=!0,this.FG()):(GbZ(this,!1),a||this.FG())}; g.L.setAudioTrack=function(p,a,l){l=l===void 0?!1:l;if(!this.Gm()){var y=!isNaN(a);l&&y&&(this.audioTrack.Xu=Date.now(),this.policy.aM&&(this.yQ=!0));l=this.Lz.M3()&&!this.Lz.getVideoData().Sl;if(this.policy.L){var S=this.j.Hp(p.id,y);this.Lz.x8(S)}else S=this.L,S.S=S.MO.L[p.id],S.K=S.S,S=new oR(S.K,S.U,y?"t":"m"),this.Lz.x8(new Lq(S.audio,S.reason));y?(this.va=Date.now(),y=this.audioTrack.L.index.Ot(a),this.jl("setAudio",{id:p.id,cmt:a,sq:y}),y>=0&&(p=this.policy.uF?y+1:y,this.policy.L&&this.Dv(!0, "mosaic"),RB(this.audioTrack,p,NaN,NaN),!this.policy.n1&&this.MO.isLive&&iP(this.MO,p,!1))):l||this.Lz.jS()}}; g.L.setPlaybackRate=function(p){p!==this.Sl.getPlaybackRate()&&this.Sl.setPlaybackRate(p)}; g.L.Pw=function(p){var a=this.S.G;this.S.Mx(p);this.jl("scfidc",{curr:$L(a),"new":$L(p)});p&&$L(p)!==$L(a)&&(this.Dv(!0,"caption change"),this.e5())}; g.L.xA=function(p){this.S.qU(p)}; g.L.Jt=function(p){p.L.info.Qh()?this.Lz.x8(p):wH(this.Lz,p)}; g.L.V3=function(p){Eg(p.mT[p.mT.length-1])&&SY(this,n5o(this.L,p.mT[0].L))}; g.L.Ir=function(){return this.Lz.Ir()}; g.L.XO=function(){return this.Lz.XO()}; g.L.nH=function(p){this.Lz.C().ao()&&this.jl("sps",{status:p.q1||""});if(p.q1===1)this.Lz.videoData.uO=0;else if(p.q1===2||p.q1===3){var a=!1;if(p.q1===3){a=this.Lz.II();var l;this.o4=(l=p.zDs)!=null?l:Infinity;this.Lz.videoData.uO=a+1;(a=SA(this))&&this.HR(!0)}this.Lz.nD(!0,a)}}; g.L.Ld=function(){return this.Lz.Ld()}; g.L.ov=function(){return this.Lz.ov()}; g.L.pD=function(p){this.Lz.pD(p)}; g.L.v39=function(){var p,a=(p=this.Lz.F7())==null?void 0:p.getCurrentTime();a?this.Lz.jl("rms",{cta:a}):g.sb(this.Kt)}; g.L.e5=function(){TaF(this);if(this.Ic&&WA(this.Ic)&&!this.Ic.r3()&&(!this.policy.t9||isFinite(this.getCurrentTime()))){var p=cH(this.videoTrack);p=this.policy.QU&&p&&p.I7();this.MO.isManifestless&&this.MO.j&&Nd(this.MO)?(this.G=Nd(this.MO),this.Ic.iK(this.G)):z9(this.MO)&&!p?isNaN(this.G)?(this.G=this.getCurrentTime()+3600,this.Ic.iK(this.G)):this.G<=this.getCurrentTime()+1800&&(this.G=Math.max(this.G+1800,this.getCurrentTime()+3600),this.Ic.iK(this.G)):this.Ic.isView||(p=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.G)||this.G!==p)&&p>0&&(this.Ic.iK(p),this.G=p))}if(!this.Gm())if(uN(this.MO)&&this.MO.M5()){var a=this.MO;this.handleError("manifest.net.retryexhausted",a.Ps?{rc:a.MA}:{rc:a.MA.toString()},1)}else if(this.policy.L)a:{try{Pur(this.S);this.MO.isManifestless&&this.policy.W&&P7(this.R9);var l;((l=this.Ic)==null?0:Rt(l))&&this.A7();Kqv(this.S);if(this.Hs){var y=this.Hs;y.S.B5>=0&&y.L===null&&y.nt("ismp_a")}}catch(V){g.Mf(V);a=V;if(a.message.includes("changeType")){this.jl("ctype", {exp:a.name,msg:a.message,s:a.stack});break a}this.handleError("fmt.unplayable",{exp:a.name,msg:a.message,s:a.stack,trg:"sabrslicerqt"},1)}vzF(this);g.sb(this.Yv)}else if(!this.MO.S||!GCh(this.videoTrack)&&!GCh(this.audioTrack)||(this.videoTrack.W||this.audioTrack.W)&&this.policy.eb?l=!1:(this.FG(),this.Lz.seekTo(Infinity,{JP:"checkLoaderTracksSync",Ql:!0}),l=!0),!l){TaF(this);this.MO.isManifestless&&(Q9q(this.videoTrack),Q9q(this.audioTrack),P7(this.R9),(l=d$(this.videoTrack))&&l.L&&(l=l.L.U&&!this.policy.BW, this.jl(l===this.policy.Z.Db?"strm":"strmbug",{strm:l,sfmp4:this.policy.Z.Db,dfs:this.policy.BW},!0)));if(this.Ic)this.A7();else if(this.policy.j){var S;l=!1;if(this.policy.X9)for(y=g.t([this.videoTrack,this.audioTrack]),p=y.next();!p.done;p=y.next()){var n=p.value;for(p=d$(n);p&&n.ai()!==cH(n);p=d$(n))n.Gj(p);l=l||!!p}else(a=d$(this.videoTrack))&&this.videoTrack.Gj(a),(S=d$(this.audioTrack))&&this.audioTrack.Gj(S);Gc(this.videoTrack)&&Gc(this.audioTrack)||(a||S||l)&&GL(this)}nJ(this);f6(this.W,this.videoTrack, this.videoTrack.L,!1);f6(this.W,this.audioTrack,this.audioTrack.L,!1);if(!this.policy.D5&&(a=this.videoTrack,y=this.audioTrack,(!this.Ic||WA(this.Ic)&&!this.policy.f9)&&!this.R9.isSeeking()&&(this.policy.L||VW(a)&&a.L.Dg()&&this.L.UO)))a:{if(S=this.getCurrentTime(),l=this.Sl,y=dk(l,a.L.info.Lx,y.L.info.Lx,0),p=zz(l.s6)+y/rf(l.s6),S+=Math.max(p,p+l.policy.jz-y/a.L.info.Lx),a.U.length){if(a.U[0].info.mT[0].startTime<=S)break a;Fg(a)}l=a.j;for(y=l.S.length-1;y>=0;y--)l.S[y].info.startTime>S&&l.S.pop(); YsM(a);a.S&&S5&&z.UO.shift();a=a.Rc;var d;if((d=this.Lz.getVideoData())==null?0:d.enableServerStitchedDai)d=iIA(this.audioTrack,a),l=iIA(this.videoTrack,a),d!==0&&l!==0&&d!==l&&this.handleError("ssdai.avsync",{sq:a,a:d,v:l},0)}}; g.L.DQ=function(p,a,l,y){p.info.video&&this.U.DQ(a,l,y)}; g.L.ZP=function(p){this.L.ZP(p)}; g.L.U4=RR(12);g.L.jt=function(){if(g.h(this.Lz.getPlayerState(),8)){var p,a,l=(a=(p=this.Lz.F7())==null?void 0:p.getCurrentTime())!=null?a:this.Lz.getCurrentTime(),y;(y=this.VY)==null||dte(y,l)}var S;(S=this.Fh)==null||g.sb(S)}; g.L.rR=function(){return this.videoTrack.K||this.audioTrack.K}; g.L.seek=function(p,a){if(this.Gm())return wV();if(this.rR())return wV("seeking to head");if(this.policy.Xu&&!isFinite(p))return kPv(this.R9),g.t_(Infinity);TaF(this);lV(this);this.policy.L||nJ(this,p);this.Ic&&this.Ic.L&&this.Ic.S&&!this.Lz.getVideoData().bb&&(this.Ic.L.isLocked()||this.Ic.S.isLocked())&&this.Lz.jS({reattachOnLockedBuffer:1,vsb:""+this.Ic.S.isLocked(),asb:""+this.Ic.L.isLocked()});var l=this.getCurrentTime(),y=this.R9.seek(p,a);if(!this.policy.t9||this.policy.oo)this.currentTime= y;mC(this.U,p,l,this.policy.Go&&!a.U1);GL(this);return g.t_(y)}; g.L.UA=function(p){return this.policy.L&&this.S.UA(p)}; g.L.MF=function(p){return this.S.MF(p)}; g.L.Dv=function(p,a){this.S.Dv(p,a)}; g.L.getCurrentTime=function(){if(this.policy.t9){var p=this.Jg()||0;return this.Lz.getCurrentTime(!0)-p}return this.currentTime}; g.L.ze=function(){return this.audioTrack.L.info}; g.L.Op=function(){return this.videoTrack.L.info}; g.L.xV=function(){return this.audioTrack.L.info.h9}; g.L.PC=function(){return this.videoTrack.L.info.h9}; g.L.fz=function(){try{this.rj(),Fg(this.audioTrack),Fg(this.videoTrack),D4(this.audioTrack),D4(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.D.prototype.fz.call(this)}catch(p){g.iO(p)}}; g.L.handleError=function(p,a,l){l=l===void 0?0:l;var y=tF(l);p==="fmt.unplayable"&&this.MO.isLive&&(this.policy.Lg=!1,yM(this.MO));a=new g.mm(p,a,l);g.Wk(this);qp(a.details);this.Lz.handleError(a);p!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&p!=="fmt.unparseable"&&y&&this.dispose()}; g.L.mS=function(){var p=cH(this.audioTrack),a=cH(this.videoTrack);p={lct:this.getCurrentTime().toFixed(3),lsk:this.R9.isSeeking(),lmf:this.L.L.isLocked(),lbw:JG(this.schedule).toFixed(3),lhd:zz(this.schedule).toFixed(3),lst:((this.schedule.K.Cv()||0)*1E9).toFixed(3),laa:p?p.AP():"",lva:a?a.AP():"",lar:this.audioTrack.S?this.audioTrack.S.AP():"",lvr:this.videoTrack.S?this.videoTrack.S.AP():"",laq:""+QL(this.audioTrack),lvq:""+QL(this.videoTrack)};this.Ic&&!this.Ic.h$()&&this.Ic.L&&this.Ic.S&&(p.lab= jS(this.Ic.L.ea()),p.lvb=jS(this.Ic.S.ea()));this.Bs&&(p.lapt=((0,g.Ek)()-this.Bs).toFixed(0),p.lapr=JZG(this));this.r7&&(p.lapmabht=((0,g.Ek)()-this.r7).toFixed(0),p.lapmabh=L0(this,this.audioTrack).toFixed(0));this.Kz&&(p.lapmvbht=((0,g.Ek)()-this.Kz).toFixed(0),p.lapmvbh=L0(this,this.videoTrack).toFixed(0));this.OO&&(p.lapsdai=((0,g.Ek)()-this.OO).toFixed(0));return p}; g.L.FG=function(){try{this.policy.L&&this.S.Dv(!1,"pending"),this.audioTrack.FG(),this.videoTrack.FG()}catch(p){g.iO(p)}this.policy.j=""}; g.L.Zt=function(){return TU(this.Sl)}; g.L.jl=function(p,a,l){this.Lz.jl(p,a,l===void 0?!1:l)}; g.L.K1=function(){return this.Lz.K1()}; g.L.Ql=function(p,a){p/=a;isNaN(this.timestampOffset)&&Sn(this,p-Math.min(p,this.policy.nw));return(p-this.timestampOffset)*a}; g.L.Jg=function(){return this.timestampOffset}; g.L.isSeeking=function(){return this.R9.isSeeking()}; g.L.ZK=function(){this.U.ZK()}; g.L.Bk=function(p,a,l){a=a===void 0?!1:a;l=l===void 0?{}:l;this.policy.L?this.j.Bk(p,a,l):this.L.Bk(p,a,l)}; g.L.qJ=function(p,a){if(this.policy.S&&(this.Y0||this.isSeeking()))return this.jl("sdai",{ignoreSkip:"1",isSkip:this.Y0,isSeek:this.isSeeking(),t:p.toFixed(3)}),!1;var l=this.policy.S&&(this.policy.G||this.policy.Ps),y=this.videoTrack.L.index.Ot(p),S=!1;if(l){var n;S=!((n=this.w7)==null||!n.nN(p,y,this.timestampOffset))}else this.Z&&(S=!!this.U.qJ(p,this.Z));if(!S)return this.handleError("ad.skipfailed",{dec:!!this.Z,t:p.toFixed(3),sq:y}),!1;this.policy.S&&(this.jl("sdai",{skipAdStd:"1"}),this.Y0= !0);if(this.policy.qc){var V;(V=this.VY)==null||V.clear()}Sn(this,this.timestampOffset-a);GL(this);this.policy.S&&(yM(this.MO),D4(this.audioTrack),D4(this.videoTrack),this.FG());return!0}; g.L.getManifest=function(){return this.MO}; g.L.isOffline=function(){return!!this.Lz.getVideoData().cotn}; g.L.wQ=function(p,a){this.Lz.wQ(p,a)}; g.L.Qp=function(p){if(this.policy.L)this.S.Dv(!0,"utc"),this.e5();else{var a=this.Lz.getVideoData().GD;if(a){var l=this.W;l.rE=p;l.GD=a;ZU(this)}}}; g.L.Wf=function(p){this.videoTrack.K=!1;this.audioTrack.K=!1;this.R9.L=!1;this.Lz.Wf(p)}; g.L.h_=function(p){this.R9.h_(p-this.Jg())}; g.L.x9=function(){this.Lz.x9()}; g.L.HR=function(p){p!==this.policy.UU&&((this.policy.UU=p)||this.e5())}; g.L.jS=function(p){this.Lz.jS(p)}; g.L.bj=function(p){this.Lz.bj(p)}; g.L.uA=function(p,a,l){var y;(y=this.w7)==null||y.uA(p,a,l);this.policy.G&&(this.S.UO=void 0,this.e5())}; g.L.RZ=function(p,a){var l;(l=this.w7)==null||l.RZ(p,a)}; g.L.II=function(){return this.Lz.II()}; g.L.Sg=function(p,a){if(this.policy.G){var l,y=(l=p.gr)==null?void 0:l[0],S,n,V;this.jl("clidai",{onqlst:1,len:((S=p.gr)==null?void 0:S.length)||0,rn:a,evt:aUM(y==null?void 0:(n=y.YE)==null?void 0:n.event),cid:(y==null?void 0:(V=y.YE)==null?void 0:V.identifier)||"null",sq:(y==null?void 0:y.wd)||-1,trk:(y==null?void 0:y.trackType)||"null"});var z;(z=this.w7)==null||z.Sg(p,a,this.Z||void 0)}}; g.L.prefetchKeyPlay=function(p,a){var l=this;if(this.policy.on||this.policy.q$)this.Hs||(this.Hs=new NcM(function(y){l.Lz.nt(y)}),g.E(this,this.Hs)),tJr(this.Hs,{B5:p, UO9:a,Yr:2}),this.e5()};g.L=g.V8.prototype;g.L.VV=function(p,a,l,y,S,n){return this.I4.VV(p,a,l,y,S,n)}; g.L.WV=function(p,a,l,y,S,n){return this.I4.WV(p,a,l,y,S,n)}; g.L.WJ=function(p){return this.I4.WJ(p)}; g.L.BV=function(p){this.I4.BV(p)}; g.L.TY=function(p,a,l,y){return this.I4.TY(p,a,l,y)}; g.L.ZK=function(){this.I4.ZK()}; g.L.nN=function(p,a){this.I4.nN(p,a)}; g.L.us=function(){this.I4.us()}; g.L.Ip=RR(56);g.L.kz=function(p,a,l){this.I4.kz(p,a,l)}; g.L.WH=RR(59);g.L.En=function(p,a,l,y,S,n,V,z,d){this.I4.En(p,a,l,y,S,n,V,z,d)}; g.L.NU=function(p){this.I4.NU(p)}; g.L.Aa=function(p){return this.I4.Aa(p)}; g.L.Qg=function(p){return this.I4.Qg(p)}; g.L.W0=function(p){return this.I4.W0(p)};g.A(ad,g.qu);g.A(zM,ad);zM.prototype.G=function(p,a){if(p&&a){var l=Number($0(p,"cpi"))*1+1;isNaN(l)||l<=0||lthis.U&&(this.U=l,g.cL(this.L)||(this.L={},this.j.stop(),this.S.stop())),this.L[a]=p,g.sb(this.S))}}; zM.prototype.W=function(){for(var p=g.t(Object.keys(this.L)),a=p.next();!a.done;a=p.next()){var l=a.value;a=this.publish;for(var y=this.U,S=g.By(this.L[l]),n=[],V=g.t(S[6].split("&")),z=V.next();!z.done;z=V.next())z=z.value,z.indexOf("cpi=")===0?n.push("cpi="+y.toString()):z.indexOf("ek=")===0?n.push("ek="+g.Ls(l)):n.push(z);S[6]="?"+n.join("&");l="skd://"+S.slice(2).join("");S=l.length*2;y=new Uint8Array(S+4);y[0]=S%256;y[1]=(S-y[0])/256;for(S=0;S0)for(var l=g.t(this.L),y=l.next();!y.done;y=l.next())if(a===y.value.info.cryptoPeriodIndex){a=!0;break a}a=!1}if(!a){a=(0,g.Ek)();a:{l=p.cryptoPeriodIndex;if(!isNaN(l)){y=g.t(this.U.values());for(var S=y.next();!S.done;S=y.next())if(Math.abs(S.value.cryptoPeriodIndex-l)<=1){l=!0;break a}}l=!1}l?(l=p.L,l=Math.max(0,Math.random()*((isNaN(l)?120:l)-30))*1E3):l=0;this.publish("log_qoe",{wvagt:"delay."+l,cpi:p.cryptoPeriodIndex,reqlen:this.L.length}); l<=0?kSo(this,p):(this.L.push({time:a+l,info:p}),g.sb(this.S,l))}}; d2.prototype.fz=function(){this.L=[];ad.prototype.fz.call(this)};var Ld={},g$r=(Ld.DRM_TRACK_TYPE_AUDIO="AUDIO",Ld.DRM_TRACK_TYPE_SD="SD",Ld.DRM_TRACK_TYPE_HD="HD",Ld.DRM_TRACK_TYPE_UHD1="UHD1",Ld);g.A(Ber,g.D);g.A(mqh,g.qu);g.L=mqh.prototype;g.L.H8=function(p){var a=this;if(!(this.Gm()||p.size<=0)){var l={};p.forEach(function(y,S){var n=Ij(a.S)?S:y;S=new Uint8Array(Ij(a.S)?y:S);Ij(a.S)&&uKB(S);y=g.MN(S,4);uKB(S);S=g.MN(S,4);a.L[y]?a.L[y].status=n:a.L[S]?a.L[S].status=n:a.L[y]={type:"",status:n};$gr(a,a.L[y].type,l)}); Q2Z(this,",");Zi(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.L.error=function(p,a,l,y){this.Gm()||(this.publish("licenseerror",p,a,l,y),p==="drm.provision"&&(p=(Date.now()-this.G)/1E3,this.G=NaN,this.publish("ctmp","provf",{et:p.toFixed(3)})));tF(a)&&this.dispose()}; g.L.shouldRetry=function(p,a){return!p&&this.requestNumber===a.requestNumber}; g.L.fz=function(){this.L={};g.qu.prototype.fz.call(this)}; g.L.mS=function(){var p={ctype:this.Z.contentType||"",length:this.Z.initData.length,requestedKeyIds:this.w7,cryptoPeriodIndex:this.cryptoPeriodIndex};this.U&&(p.keyStatuses=this.L);return p}; g.L.getInfo=function(){var p=this.j.join();if(DM(this)){var a=new Set,l;for(l in this.L)this.L[l].status!=="usable"&&a.add(this.L[l].type);p+="/UKS."+Array.from(a)}return p+="/"+this.cryptoPeriodIndex}; g.L.RX=function(){return this.url};g.A(cK,g.D);g.L=cK.prototype;g.L.nk=function(p){if(this.W){var a=p.messageType||"license-request";this.W(new Uint8Array(p.message),a)}}; g.L.H8=function(){this.K&&this.K(this.L.keyStatuses)}; g.L.onClosed=function(){this.Gm()||g.g8("xboxone")&&this.U&&this.U("closedShouldNotRetry")}; g.L.XB=function(p){this.W&&this.W(p.message,"license-request")}; g.L.j4=function(p){if(this.U){if(this.S){var a=this.S.error.code;p=this.S.error.systemCode}else a=p.errorCode,p=p.systemCode;this.U("t.prefixedKeyError;c."+a+";sc."+p,a,p)}}; g.L.Ue=function(){this.G&&this.G()}; g.L.update=function(p){var a=this;if(this.L)return this.L.update(p).then(null,Ee(function(l){nje(a,"t.update",l)})); this.S?this.S.update(p):this.element.addKey?this.element.addKey(this.Z.keySystem,p,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,p,this.initData,this.sessionId);return o7()}; g.L.fz=function(){this.L&&(this.Sl?this.L.close().catch(g.Mf):this.L.close());this.element=null;g.D.prototype.fz.call(this)};g.A(YG,g.D);g.L=YG.prototype;g.L.setServerCertificate=function(){return this.S.setServerCertificate?this.L.flavor==="widevine"&&this.L.e8?this.S.setServerCertificate(this.L.e8):W9(this.L)&&this.L.r7?this.S.setServerCertificate(this.L.r7):null:null}; g.L.createSession=function(p,a){var l=p.initData;if(this.L.keySystemAccess){a&&a("createsession");var y=this.S.createSession();a9(this.L)?l=GX$(l,this.L.r7):W9(this.L)&&(l=tX$(l)||new Uint8Array(0));a&&a("genreq");p=y.generateRequest(p.contentType,l);var S=new cK(null,null,null,y,null,this.K);p.then(function(){a&&a("genreqsuccess")},Ee(function(V){nje(S,"t.generateRequest",V)})); return S}if(b8(this.L))return ky$(this,l);if(As(this.L))return H5F(this,l);if((y=this.element)==null?0:y.generateKeyRequest)this.element.generateKeyRequest(this.L.keySystem,l);else{var n;(n=this.element)==null||n.webkitGenerateKeyRequest(this.L.keySystem,l)}return this.j=new cK(this.element,this.L,l,null,null,this.K)}; g.L.pk=function(p){var a=T2v(this,p);a&&a.XB(p)}; g.L.Tk=function(p){var a=T2v(this,p);a&&a.j4(p)}; g.L.MV=function(p){var a=T2v(this,p);a&&a.Ue(p)}; g.L.getMetrics=function(){var p=null;if(this.S&&this.S.getMetrics)try{p=this.S.getMetrics()}catch(a){}return p}; g.L.fz=function(){this.U=this.S=null;var p;(p=this.j)==null||p.dispose();p=g.t(Object.values(this.G));for(var a=p.next();!a.done;a=p.next())a.value.dispose();this.G={};g.D.prototype.fz.call(this);delete this.element};g.L=Ag.prototype;g.L.get=function(p){p=this.findIndex(p);return p!==-1?this.values[p]:null}; g.L.remove=function(p){p=this.findIndex(p);p!==-1&&(this.keys.splice(p,1),this.values.splice(p,1))}; g.L.removeAll=function(){this.keys=[];this.values=[]}; g.L.set=function(p,a){var l=this.findIndex(p);l!==-1?this.values[l]=a:(this.keys.push(p),this.values.push(a))}; g.L.findIndex=function(p){return g.Zb(this.keys,function(a){return g.r$(p,a)})};g.A(IKh,g.qu);g.L=IKh.prototype;g.L.cgu=function(p){this.HG({onecpt:1});p.initData&&DhF(this,new Uint8Array(p.initData),p.initDataType)}; g.L.wZc=function(p){this.HG({onndky:1});DhF(this,p.initData,p.contentType)}; g.L.tv=function(p){this.HG({onneedkeyinfo:1});this.Y.D("html5_eme_loader_sync")&&(this.K.get(p.initData)||this.K.set(p.initData,p));H7o(this,p)}; g.L.tb=function(p){this.U.push(p);H9(this)}; g.L.createSession=function(p){var a=FWE(this)?EqO(p):g.MN(p.initData);this.S.get(a);this.Bs=!0;p=new mqh(this.videoData,this.Y,p,this.drmSessionId);this.S.set(a,p);p.subscribe("ctmp",this.O0,this);p.subscribe("keystatuseschange",this.H8,this);p.subscribe("licenseerror",this.oS,this);p.subscribe("newlicense",this.Yj,this);p.subscribe("newsession",this.LM,this);p.subscribe("sessionready",this.BQ,this);p.subscribe("fairplay_next_need_key_info",this.hs,this);this.Y.D("html5_enable_vp9_fairplay")&&p.subscribe("qualitychange", this.VD,this);p.subscribe("sabrlicenseconstraint",this.G9O,this);$Pv(p,this.j)}; g.L.Yj=function(p){this.Gm()||(this.HG({onnelcswhb:1}),p&&!this.heartbeatParams&&(this.heartbeatParams=p,this.publish("heartbeatparams",p)))}; g.L.LM=function(){this.Gm()||(this.HG({newlcssn:1}),this.U.shift(),this.Bs=!1,H9(this))}; g.L.BQ=function(){if(b8(this.L)&&(this.HG({onsnrdy:1}),this.Hs--,this.Hs===0)){var p=this.UO,a,l;(a=p.element)==null||(l=a.msSetMediaKeys)==null||l.call(a,p.U)}}; g.L.H8=function(p){if(!this.Gm()){this.t9||(this.t9=!0,this.Y.ao()&&l_E(this));this.HG({onksch:1});var a=this.VD;if(!DM(p)&&g.up&&p.S.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var l="large";else{l=[];var y=!0;if(DM(p))for(var S=g.t(Object.keys(p.L)),n=S.next();!n.done;n=S.next())n=n.value,p.L[n].status==="usable"&&l.push(p.L[n].type),p.L[n].status!=="unknown"&&(y=!1);if(!DM(p)||y)l=p.j;l=K1$(l)}a.call(this,l);if(!DM(p))for(a={},l=g.t(p.j),y=l.next();!y.done;y=l.next())$gr(p, y.value,a);this.videoData.authorizedFormats=p.authorizedFormats;this.publish("keystatuseschange",p)}}; g.L.O0=function(p,a){this.Gm()||this.publish("ctmp",p,a)}; g.L.hs=function(p,a){this.Gm()||this.publish("fairplay_next_need_key_info",p,a)}; g.L.oS=function(p,a,l,y){this.Gm()||(this.videoData.D("html5_log_drm_metrics_on_error")&&l_E(this),this.publish("licenseerror",p,a,l,y))}; g.L.p6=function(){return this.Z}; g.L.VD=function(p){var a=g.UR("auto",p,!1,"l");if(this.videoData.XG){if(this.Z.equals(a))return}else if(t$a(this.Z,p))return;this.Z=a;this.publish("qualitychange");this.HG({updtlq:p})}; g.L.G9O=function(p){this.videoData.sabrLicenseConstraint=p}; g.L.fz=function(){var p,a;this.L.keySystemAccess&&this.element&&!((p=this.mediaElement)==null?0:(a=p.Lz)==null?0:a.M3())&&(this.w7?this.element.setMediaKeys(null).catch(g.Mf):this.element.setMediaKeys(null));this.element=null;this.U=[];p=g.t(this.S.values());for(a=p.next();!a.done;a=p.next())a=a.value,a.unsubscribe("ctmp",this.O0,this),a.unsubscribe("keystatuseschange",this.H8,this),a.unsubscribe("licenseerror",this.oS,this),a.unsubscribe("newlicense",this.Yj,this),a.unsubscribe("newsession",this.LM, this),a.unsubscribe("sessionready",this.BQ,this),a.unsubscribe("fairplay_next_need_key_info",this.hs,this),this.Y.D("html5_enable_vp9_fairplay")&&a.unsubscribe("qualitychange",this.VD,this),a.dispose();this.S.clear();this.G.removeAll();this.K.removeAll();this.heartbeatParams=null;g.qu.prototype.fz.call(this)}; g.L.mS=function(){for(var p={systemInfo:this.L.mS(),sessions:[]},a=g.t(this.S.values()),l=a.next();!l.done;l=a.next())p.sessions.push(l.value.mS());return p}; g.L.getInfo=function(){return this.S.size<=0?"no session":""+this.S.values().next().value.getInfo()+(this.W?"/KR":"")}; g.L.HG=function(p,a){a=a===void 0?!1:a;this.Gm()||(qp(p),(this.Y.ao()||a)&&this.publish("ctmp","drmlog",p))};var Sv=!1;g.A(VJf,g.D);g.L=VJf.prototype;g.L.tY=function(){return!!this.O4}; g.L.Xk=function(){return this.S}; g.L.handleError=function(p){var a=this;C5v(this,p);var l;if(l=!((p.errorCode==="html5.invalidstate"||p.errorCode==="fmt.unplayable"||p.errorCode==="fmt.unparseable")&&hj(this,p.errorCode,p.details)))if(l=!qOf(this,p))this.videoData.errorDetail==="7"&&g.g5(this.Ws)?(ub(this,"innertube_player_reload_required"),l=!0):l=!1,l=!l;if(l)if(this.Ws.UO!=="yt"&&AkM(this,p)&&this.videoData.Y$&&(0,g.Ek)()/1E3>this.videoData.Y$&&this.Ws.UO==="hm"&&(l=Object.assign({e:p.errorCode},p.details),l.stalesigexp="1",l.expire= this.videoData.Y$,l.init=this.videoData.Ox/1E3,l.now=(0,g.Ek)()/1E3,l.systelapsed=((0,g.Ek)()-this.videoData.Ox)/1E3,p=new g.mm(p.errorCode,l,2),this.Lz.Ne(p.errorCode,2,"SIGNATURE_EXPIRED",qp(p.details))),tF(p.severity)){var y;l=(y=this.Lz.loader)==null?void 0:y.L.L;if(this.Ws.D("html5_use_network_error_code_enums"))if(PaF(p)&&l&&l.isLocked())var S="FORMAT_UNAVAILABLE";else if(this.Ws.G||p.errorCode!=="auth"||p.details.rc!==429)p.errorCode==="ump.spsrejectfailure"&&(S="HTML5_SPS_UMP_STATUS_REJECTED"); else{S="TOO_MANY_REQUESTS";var n="6"}else PaF(p)&&l&&l.isLocked()?S="FORMAT_UNAVAILABLE":this.Ws.G||p.errorCode!=="auth"||p.details.rc!=="429"?p.errorCode==="ump.spsrejectfailure"&&(S="HTML5_SPS_UMP_STATUS_REJECTED"):(S="TOO_MANY_REQUESTS",n="6");this.Lz.Ne(p.errorCode,p.severity,S,qp(p.details),n)}else this.Lz.publish("nonfatalerror",p),y=/^pp/.test(this.videoData.clientPlaybackNonce),this.w$(p.errorCode,p.details),y&&p.errorCode==="manifest.net.connect"&&(p="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.Ek)(),TX(p,"manifest",function(V){a.G=!0;a.jl("pathprobe",V)},function(V){a.w$(V.errorCode,V.details)}))}; g.L.jl=function(p,a){this.Lz.rG.jl(p,a)}; g.L.w$=function(p,a){a=qp(a);this.Lz.rG.w$(p,a)};Ew.prototype.JU=function(p){var a=VP$(this);if(!p)return{MW:Fz,pL:Fz,zS:Fz,ek:Fz,xQ:Fz,Vw:Fz,LW:a};var l=Fz;if(Xf(a)||this.D("html5_perf_cap_override_sticky"))l=Xz(this,p);return{MW:l,pL:HOv(this,p),zS:ZuA(this,p),ek:Pa(this,p.videoData),xQ:LG(this,p.videoData,p),Vw:xw(this,p),LW:a}}; Ew.prototype.yE=function(p){if(g.g5(this.Y)&&H8(this.Y.W,Dt.HEIGHT))var a=p.L.videoInfos[0].video.qualityOrdinal;else{var l=this.zJ(!!p.L.L);Fh(p.videoData)||eX(p.videoData);p=p.L.videoInfos;if(p.length){var y=.85,S=p[0].video;S.projectionType!=="MESH"&&S.projectionType!=="EQUIRECTANGULAR"&&S.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||vu||(y=.45);S=g.sW(this.Y.experiments,"html5_viewport_undersend_maximum");for(var n=0;n=0,stateAtSend:a,joinLatencySecs:n,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:y,playerCanaryStage:S,isAd:this.provider.videoData.isAd(),liveMode:l,hasDrm:!!g.gR(this.provider.videoData),isGapless:this.provider.videoData.K,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:gQ(this.provider.videoData)};p||g.mf("html5PlayerHealthEvent",a);this.U=!0;this.dispose()}}; W7.prototype.fz=function(){this.U||this.send();window.removeEventListener("error",this.j1);window.removeEventListener("unhandledrejection",this.j1);g.D.prototype.fz.call(this)}; var qQU=/\bnet\b/;hN.prototype.update=function(){if(this.K){var p=this.Bi()||0,a=g.US(this.provider);p>=this.provider.Lz.getDuration()-.1&&(this.previouslyEnded=!0);if(p!==this.L||ysF(this,p,a)){var l;if(!(l=pa-this.d8+2||ysF(this,p,a))){l=this.provider.Lz.getVolume();var y=l!==this.Sl,S=this.provider.Lz.isMuted()?1:0;S!==this.Z?(this.Z=S,l=!0):(!y||this.j>=0||(this.Sl=l,this.j=a),l=a-this.j,this.j>=0&&l>2?(this.j=-1,l=!0):l=!1)}l&&(Ac(this),this.U=p);this.d8=a;this.L=p}}}; hN.prototype.Bi=function(){var p=this.provider.Lz.Bi();return this.provider.Y.D("html5_disable_live_dvr_shrink_for_cdm_vss")&&Hx(this.provider.videoData)?p+this.provider.Lz.Jg():p};rw.prototype.send=function(p){var a=this;if(!this.VY){var l=lG(this),y=g.C2(this.uri,l);this.Y.D("vss_through_gel_double")&&OrF(y);this.Bs&&!this.Y.D("html5_simplify_pings")?Pkr(this,y):zI(this,p).then(function(S){a.Y.D("html5_switch_vss_to_post")&&(S=S||{},S.method="POST");a.Bs&&(S=S||{},S.method="POST",S.postParams={atr:a.attestationResponse});cEv(y,S,{token:a.Xu,n$:a.eb,mdxEnvironment:a.mdxEnvironment},a.Y,p,a.QY,a.isFinal&&a.M2||a.t9||a.U&&a.rP)}); this.VY=!0}}; rw.prototype.S=function(p){p===void 0&&(p=NaN);return Number(p.toFixed(3)).toString()}; var XH={},ghM=(XH.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,XH.LIVING_ROOM_APP_MODE_MAIN=1,XH.LIVING_ROOM_APP_MODE_KIDS=2,XH.LIVING_ROOM_APP_MODE_MUSIC=3,XH.LIVING_ROOM_APP_MODE_UNPLUGGED=4,XH.LIVING_ROOM_APP_MODE_GAMING=5,XH),x5={},AZM=(x5.EMBEDDED_PLAYER_MODE_UNKNOWN=0,x5.EMBEDDED_PLAYER_MODE_DEFAULT=1,x5.EMBEDDED_PLAYER_MODE_PFP=2,x5.EMBEDDED_PLAYER_MODE_PFL=3,x5);g.A(tN,g.D);g.L=tN.prototype; g.L.v8=function(){if(!this.U){this.provider.videoData.n_===16623&&g.Mf(Error("Playback for EmbedPage"));var p=i4(this,"playback");this.K=LGe(this);Mbb(this.L);p.K=We(this);this.S>0&&(p.L-=this.S);p.send();if(this.provider.videoData.Vu){p=this.provider.Y;var a=this.provider.videoData,l={html5:"1",video_id:a.videoId,cpn:a.clientPlaybackNonce,ei:a.eventId,ptk:a.Vu,oid:a.QG,ptchn:a.Bq,pltype:a.Dc,content_v:Rn(a)};a.cH&&Object.assign(l,{m:a.cH});p=g.C2(p.M0+"ptracking",l);C3(this,p)}this.provider.videoData.yQ|| (S6$(this),Ihr(this));this.U=!0;p=this.L;p.L=p.Bi();p.d8=g.US(p.provider);!(p.U===0&&p.L<5)&&p.L-p.U>2&&(p.U=p.L);p.K=!0}}; g.L.onProgress=function(){this.L.update();gNv(this)&&(S6$(this),Ihr(this))}; g.L.fz=function(){g.D.prototype.fz.call(this);tp(this);$De(this.L)}; g.L.mS=function(){return lG(i4(this,"playback"))}; g.L.Wl=function(p){var a=i4(this,"engage");a.w7=p;return kDf(a,iHZ(this.provider))};GnM.prototype.isEmpty=function(){return this.endTime===this.startTime};j0.prototype.D=function(p){return this.Y.D(p)}; j0.prototype.getCurrentTime=function(){return this.Lz.getCurrentTime()}; j0.prototype.Bi=function(){return this.Lz.Bi()}; var b4A={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.A(g.qn,g.D);g.L=g.qn.prototype;g.L.v8=function(){this.L&&this.L.v8();this.S&&this.S.v8()}; g.L.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.J5){var p;(p=this.U.get(this.J5))==null||p.onProgress()}else if(this.L)this.L.onProgress()}; g.L.zM=function(p){this.qoe&&this.qoe.zM(p)}; g.L.VT=RR(29);g.L.Cq=RR(35);g.L.iQ=function(p,a){this.qoe&&this.qoe.iQ(p,a)}; g.L.vA=function(){if(this.provider.videoData.enableServerStitchedDai&&this.J5){var p;(p=this.U.get(this.J5))!=null&&Ac(p.L)}else this.L&&Ac(this.L.L)}; g.L.w$=function(p,a){this.qoe&&mjA(this.qoe,p,a);if(this.S)this.S.onError(p)}; g.L.W6=function(p){var a;(a=this.qoe)==null||a.W6(p)}; g.L.onPlaybackRateChange=function(p){if(this.qoe)this.qoe.onPlaybackRateChange(p);this.L&&Ac(this.L.L)}; g.L.Jk=RR(52);g.L.jl=function(p,a,l){this.qoe&&this.qoe.jl(p,a,l)}; g.L.Zk=function(p,a,l){this.qoe&&this.qoe.Zk(p,a,l)}; g.L.wl=function(p){var a;(a=this.qoe)==null||a.wl(p)}; g.L.E8=function(p){var a;(a=this.qoe)==null||a.E8(p)}; g.L.ow=function(p,a,l,y){var S;(S=this.qoe)==null||S.ow(p,a,l,y)}; g.L.bj=function(p){this.qoe&&this.qoe.bj(p)}; g.L.bA=function(p,a,l){this.qoe&&this.qoe.bA(p,a,l)}; g.L.jR=RR(23);g.L.qM=function(){if(this.qoe)return this.qoe.qM()}; g.L.mS=function(){if(this.provider.videoData.enableServerStitchedDai&&this.J5){var p,a;return(a=(p=this.U.get(this.J5))==null?void 0:p.mS())!=null?a:{}}return this.L?this.L.mS():{}}; g.L.Mj=function(){var p;return(p=this.qoe)==null?void 0:p.Mj()}; g.L.Fw=function(p,a){var l;(l=this.qoe)==null||l.Fw(p,a)}; g.L.Wl=function(p){return this.L?this.L.Wl(p):function(){}}; g.L.getVideoData=function(){return this.provider.videoData}; g.L.resume=function(){this.qoe&&this.qoe.resume()};g.A(g.KV,g.D);g.L=g.KV.prototype;g.L.Kh=function(p,a){this.sync();a&&this.L.array.length>=2E3&&this.Gc("captions",1E4);a=this.L;if(p.length>1&&p.length>a.array.length)a.array=a.array.concat(p),a.array.sort(a.L);else{p=g.t(p);for(var l=p.next();!l.done;l=p.next())l=l.value,!a.array.length||a.L(l,a.array[a.array.length-1])>0?a.array.push(l):g.fR(a.array,l,a.L)}this.U=NaN;this.sync()}; g.L.PG=function(p){p.length>1E4&&g.Mf(new g.kc("Over 10k cueRanges removal occurs with a sample: ",p[0]));if(!this.Gm()){var a=new Set(p);this.S=this.S.filter(function(l){return!a.has(l)}); iAW(this.L,a);this.sync()}}; g.L.IJ=function(p,a){if(!this.Gm()){var l=this.ov().find(function(y){return y.id===a&&y.namespace===p}); l&&this.PG([l])}}; g.L.Gc=function(p,a){var l=(isNaN(this.U)?Aho(this):this.U)-a;a=this.ov().filter(function(y){return y.namespace===p&&y.endthis.L,n=g.h(l,8)&&g.h(l,16),V=this.Lz.TM().isBackground()||l.isSuspended();J9(this,this.Kz,n&&!V,S,"qoe.slowseek",function(){},"timeout"); var z=isFinite(this.L);z=n&&z&&P6r(a,this.L);var d=!y||Math.abs(y-this.L)>10,G=this.Y.D("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),B=y===0&&this.S&&[11,10].includes(this.S);J9(this,this.VY,z&&d&&!V&&(!G||!B),S,"qoe.slowseek",function(){a.seekTo(p.L)},"set_cmt"); d=z&&GI(a.Vh(),this.L);var c=this.Lz.loader;z=!c||c.hH();var r=function(){a.seekTo(p.L+.001)}; J9(this,this.t9,d&&z&&!V,S,"qoe.slowseek",r,"jiggle_cmt");z=function(){return p.Lz.EU()}; J9(this,this.nz,d&&!V,S,"qoe.slowseek",z,"new_elem");var w=ZA(l);B=l.isBuffering();var P=a.Vh(),F=hp(P,y),v=F>=0&&P.end(F)>y+5;d=w&&B&&v;G=this.Lz.getVideoData();J9(this,this.Hs,y<.002&&this.L<.002&&n&&g.g5(this.Y)&&g.zi(G)&&!V,S,"qoe.slowseek",z,"slow_seek_shorts");J9(this,this.Sl,G.LC()&&n&&!V&&!G.Sl,S,"qoe.slowseek",z,"slow_seek_gapless_shorts");J9(this,this.UO,d&&!V,w&&!B,"qoe.longrebuffer",r,"jiggle_cmt");J9(this,this.Xu,d&&!V,w&&!B,"qoe.longrebuffer",z,"new_elem_nnr");if(c){var I=c.getCurrentTime(); n=a.JH();n=QUE(n,I);n=!c.isSeeking()&&y===n;J9(this,this.Ha,w&&B&&n&&!V,w&&!B&&!n,"qoe.longrebuffer",function(){a.seekTo(I)},"seek_to_loader")}n={}; r=hp(P,Math.max(y-3.5,0));var b=r>=0&&y>P.end(r)-1.1,O=r>=0&&r+1=0&&b&&O<11;n.close2edge=b;n.gapsize=O;n.buflen=P.length;this.S&&(n.seekSour=this.S);J9(this,this.w7,w&&B&&!V,w&&!B,"qoe.longrebuffer",function(){},"timeout",n); n=l.isSuspended();n=this.Lz.q9()&&!n;J9(this,this.K,n,!n,"qoe.start15s",function(){p.Lz.iG("ad")},"ads_preroll_timeout"); n=this.Y.experiments.Cz("html5_use_playback_rate_in_skip_slow_ad")?this.Lz.getPlaybackRate()*1E3:1E3;F=y-this.j5;J9(this,this.OO,g.zi(G)&&c,w&&!B,"qoe.longrebuffer",function(){p.Lz.jS()},"reset_media_source"); J9(this,this.r7,g.zi(G)&&c,w&&!B,"qoe.longrebuffer",z,"reset_media_element");this.j===0&&(this.G=y);c=B&&this.L===0&&y>1&&y===this.G;J9(this,this.QY,g.zi(G)&&c,w&&!B,"qoe.slowseek",function(){a.seekTo(0)},"reseek_after_time_jump"); V=l.isOrWillBePlaying()&&!V;v=this.Lz.Mb()-y<6&&!v&&this.Lz.i4();J9(this,this.Z,G.LC()&&V&&B&&v,w&&!B,"qoe.longrebuffer",function(){p.Lz.EU(!1,!0)},"handoff_end_long_buffer_reload"); V=this.S===104||this.Lz.Nx;l=nn(G)&&G.isAd()&&!G.Sl&&V&&(B||g.h(l,8)&&g.h(l,16));J9(this,this.Ps,l,S,"qoe.start15s",z,"gapless_ad_slow_start");l=nn(G)&&!G.Sl&&V&&d;J9(this,this.Yv,l,S,"qoe.longrebuffer",z,"gapless_slow_start");this.j=y;this.W.start()}}; Ot.prototype.w$=function(p,a,l){a=this.mS(a);a.wn=l;a.wdup=this.U[p]?"1":"0";this.Lz.w$(new g.mm(p,a));this.U[p]=!0}; Ot.prototype.mS=function(p){p=Object.assign(this.Lz.mS(!0),p.mS());this.L&&(p.stt=this.L.toFixed(3));this.Lz.getVideoData().isLivePlayback&&(p.ct=this.Lz.getCurrentTime().toFixed(3),p.to=this.Lz.Jg().toFixed(3));delete p.uga;delete p.euri;delete p.referrer;delete p.fexp;delete p.vm;return p}; uw.prototype.reset=function(){this.L=this.S=this.U=this.startTimestamp=0;this.j=!1}; uw.prototype.test=function(p){if(!this.W||this.S)return!1;if(!p)return this.reset(),!1;p=(0,g.Ek)();if(!this.startTimestamp)this.startTimestamp=p,this.U=0;else if(this.U>=this.W)return this.S=p,!0;this.U+=1;return!1}; uw.prototype.mS=function(){var p={},a=(0,g.Ek)();this.startTimestamp&&(p.wsd=(a-this.startTimestamp).toFixed());this.S&&(p.wtd=(a-this.S).toFixed());this.L&&(p.wssd=(a-this.L).toFixed());return p};g.A(uro,g.D);g.L=uro.prototype;g.L.setMediaElement=function(p){(this.mediaElement=p)?(this.mediaElement&&(this.W||this.U||!this.mediaElement.A_()||this.seekTo(.01,{JP:"seektimeline_setupMediaElement"})),jm(this)):vG(this)}; g.L.getCurrentTime=function(p){p=p===void 0?!1:p;if(Ak(this.Lz)){if(this.D("html5_use_centralized_player_time")&&!p&&!isNaN(this.G))return this.G;if(!isNaN(this.S))return this.S}else{if(this.D("html5_use_centralized_player_time")&&!p&&!isNaN(this.G)&&isFinite(this.G))return this.G;if(!isNaN(this.S)&&isFinite(this.S))return this.S}return this.mediaElement&&LWh(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.U||0}; g.L.cA=function(){return this.VY}; g.L.Bi=function(){return this.getCurrentTime()-this.Jg()}; g.L.a7=function(){return this.L?this.L.a7():Infinity}; g.L.isAtLiveHead=function(p){if(!this.L)return!1;p===void 0&&(p=this.getCurrentTime());return $h(this.L,p)}; g.L.yR=function(){return!!this.L&&this.L.yR()}; g.L.seekTo=function(p,a){var l=a===void 0?{}:a;a=l.eI===void 0?!1:l.eI;var y=l.JS===void 0?0:l.JS;var S=l.PA===void 0?!1:l.PA;var n=l.aC===void 0?0:l.aC;var V=l.JP===void 0?"":l.JP;var z=l.seekSource===void 0?void 0:l.seekSource;var d=l.Ql===void 0?!1:l.Ql;var G=l.U1===void 0?!1:l.U1;l=l.E_===void 0?!1:l.E_;d&&(p+=this.Jg());gQ(this.videoData)&&z===29&&(this.VY=void 0);d=p=this.Lh())||!g.xV(this.videoData),F||(v={st:v,mst:this.Lh()},this.L&&this.D("html5_high_res_seek_logging")&&(v.ht=this.L.a7(),v.adft=wv(this.L)),this.Lz.jl("seeknotallowed",v)),v=F));if(!v)return this.j&&(this.j=null,EC(this)),g.t_(this.getCurrentTime());v=.005;G&&this.D("html5_sabr_seek_no_shift_tolerance")&&(v=0);if(Math.abs(p-this.S)<=v&&this.QY)return this.W;V&&(v=p,this.Y.ao()||this.D("html5_log_seek_reasons"))&& (V={reason:V,tgt:v},this.D("html5_sabr_csdai_seek_log")&&(V.source=z),this.Lz.jl("seekreason",V));z&&(this.UO.S=z);this.QY&&vG(this);this.W||(this.W=new tV);p&&!isFinite(p)&&mM(this,!1);(V=l||d)||(V=p,V=!(this.videoData.isLivePlayback&&this.videoData.U&&!this.videoData.U.L&&!(this.mediaElement&&this.mediaElement.w3()>0&&nSv(this.mediaElement)>0)||Qe(this.videoData)&&this.hP()===this.Lh(!1)?0:isFinite(V)||!Qe(this.videoData)));V||(p=cY(this,p,S));p&&!isFinite(p)&&mM(this,!1);this.D("html5_use_centralized_player_time")? this.G=p:this.S=this.U=p;this.r7=n;this.K=0;this.L&&(S=this.L,n=p,ctE(S,n,!1),wyO(S,n));S=this.Lz;n=p;V={eI:a,seekSource:z};S.GR.U=n;l=S.iF;l.mediaTime=n;l.L=!0;V.eI&&S.Lw(V);V=n>S.videoData.endSeconds&&n>S.videoData.limitedPlaybackDurationInSeconds;S.HO&&V&&isFinite(n)&&CC(S);na.start&&CC(this.Lz);return this.W}; g.L.Lh=function(p){if(!this.videoData.isLivePlayback)return this.Lz.videoData.Lh();var a;return cA(this.videoData)&&((a=this.mediaElement)==null?0:a.isPaused())&&this.videoData.L?(p=this.getCurrentTime(),vmZ(this.d$(p)*1E3)+p):this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&gQ(this.videoData)&&this.videoData.L?p?this.videoData.L.w7||0:this.videoData.L.UM||0:Qe(this.videoData)&&this.videoData.w7&&this.videoData.L?this.videoData.L.Lh()+this.timestampOffset:this.videoData.U&&this.videoData.U.L? !p&&this.L?this.L.a7():this.Lz.videoData.Lh()+this.timestampOffset:this.mediaElement?hd()?vmZ(this.mediaElement.SB().getTime()):nSv(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.L.hP=function(){if(this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&gQ(this.videoData)){var p;return((p=this.videoData.L)==null?void 0:p.RK)||0}p=this.videoData?this.videoData.hP()+this.timestampOffset:this.timestampOffset;if(cA(this.videoData)&&this.videoData.L){var a,l=Number((a=this.videoData.progressBarStartPosition)==null?void 0:a.utcTimeMillis)/1E3;if(!isNaN(l)&&(a=this.GA(l),!isNaN(a)))return Math.max(p,a)}return p}; g.L.Ge=function(){this.W||this.seekTo(this.U,{JP:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.L.rR=function(){return this.QY&&!isFinite(this.S)}; g.L.fz=function(){tM(this,null);this.UO.dispose();g.D.prototype.fz.call(this)}; g.L.mS=function(){var p={};this.loader&&Object.assign(p,this.loader.mS());this.mediaElement&&Object.assign(p,this.mediaElement.mS());return p}; g.L.Tg=function(p){this.timestampOffset=p}; g.L.getStreamTimeOffset=function(){return Qe(this.videoData)?0:this.videoData.L?this.videoData.L.getStreamTimeOffset():0}; g.L.Jg=function(){return this.timestampOffset}; g.L.d$=function(p){return this.videoData&&this.videoData.L?this.videoData.L.d$(p-this.timestampOffset):NaN}; g.L.I8=function(){if(!this.mediaElement)return 0;if(FT(this.videoData)){var p=this.mediaElement,a=p.Vh();p=(m$(a)&&p.getDuration()?a.end(a.length-1):0)+this.timestampOffset-this.hP();a=this.Lh()-this.hP();return Math.max(0,Math.min(1,p/a))}return this.mediaElement.I8()}; g.L.x8=function(p){this.Z&&(this.Z.L=p)}; g.L.Qp=function(p,a){this.Lz.jl("requestUtcSeek",{time:p});gQ(this.videoData)&&(this.VY=p);var l;(l=this.loader)==null||l.Qp(p);a&&(this.Bs=a)}; g.L.Wf=function(p){gQ(this.videoData)&&(this.VY=void 0);this.Bs?(this.Lz.jl("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Bs}),this.Lz.seekTo(this.Bs,{JP:"utcSeekingFallback_streamTime"}),this.Bs=0):(p=this.GA(p),isNaN(p)||(this.Lz.jl("utcSeekingFallback",{source:"estimate",timeSeconds:p}),this.Lz.seekTo(p,{JP:"utcSeekingFallback_estimate"})))}; g.L.x9=function(){this.Bs=0}; g.L.GA=function(p){var a=this.getCurrentTime();if(isNaN(a))return NaN;var l=this.d$(a);return isNaN(l)?NaN:p-(l-a)}; g.L.D=function(p){return this.Y&&this.Y.D(p)};g.A(x$,g.D);x$.prototype.start=function(){this.S.start()}; x$.prototype.stop=function(){this.S.stop()}; x$.prototype.clear=function(){for(var p=g.t(this.L.values()),a=p.next();!a.done;a=p.next())a.value.clear()}; x$.prototype.sample=function(){for(var p=g.t(this.U),a=p.next();!a.done;a=p.next()){var l=g.t(a.value);a=l.next().value;l=l.next().value;this.L.has(a)||this.L.set(a,new n_(JFM.has(a)));this.L.get(a).update(l())}this.S.start()}; var JFM=new Set(["networkactivity"]);n_.prototype.update=function(p){this.S?(this.buffer.add(p-this.L||0),this.L=p):this.buffer.add(p)}; n_.prototype.clear=function(){this.buffer.clear();this.L=0};EZ.prototype.LH=function(){return this.started}; EZ.prototype.start=function(){this.started=!0}; EZ.prototype.reset=function(){this.finished=this.started=!1};var NjA=!1;g.A(g.d4,g.qu);g.L=g.d4.prototype;g.L.fz=function(){g.pA(this.d0);j2M(this.JN);this.visibility.unsubscribe("visibilitystatechange",this.JN);L1q(this.rG);g.p3(this.rG);Th(this);g.$e.WW(this.jP);this.Rd();this.dP=null;g.p3(this.videoData);g.p3(this.Dz);g.p3(this.eJ);g.p3(this.Ew);g.cX(this.mOz);this.HO=null;g.qu.prototype.fz.call(this)}; g.L.bA=function(p,a,l,y,S){if(this.Y.D("html5_log_ad_playback_docid")){var n=this.rG;if(n.qoe){n=n.qoe;var V=this.Y.UO||"yt";g.pt(n,g.US(n.provider),"ad_playback",[p,a,l,S,V])}}else this.rG.bA(p,a,l);this.D("html5_log_media_perf_info")&&this.jl("adloudness",{ld:y.toFixed(3),cpn:p})}; g.L.xV=function(){var p;return(p=this.loader)==null?void 0:p.xV()}; g.L.PC=function(){var p;return(p=this.loader)==null?void 0:p.PC()}; g.L.Op=function(){var p;return(p=this.loader)==null?void 0:p.Op()}; g.L.ze=function(){var p;return(p=this.loader)==null?void 0:p.ze()}; g.L.m7=function(){return this.videoData.m7()}; g.L.M3=function(){return this.D("html5_not_reset_media_source")}; g.L.F0=function(){this.videoData.K&&(this.videoData.iA=this.videoData.iA||this.TR.qO().xV(),this.videoData.Zv=this.videoData.Zv||this.TR.qO().PC());if(e_M(this.videoData)||!cvO(this.videoData)){var p=this.videoData.errorDetail;this.Ne(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),p,p,this.videoData.Aw||void 0)}this.D("html5_generate_content_po_token")&&this.JG();this.D("html5_enable_d6de4")&&this.De()}; g.L.getVideoData=function(){return this.videoData}; g.L.C=function(){return this.Y}; g.L.JU=function(){return this.y4.JU(this.dP)}; g.L.TM=function(){return this.visibility}; g.L.iS=function(){return this.mediaElement&&this.mediaElement.M$()?this.mediaElement.gG():null}; g.L.F7=function(){return this.mediaElement}; g.L.gK=function(){if(this.videoData.errorCode)return!1;this.C().G&&this.C().houseBrandUserStatus&&this.jl("hbut",{status:this.C().houseBrandUserStatus},!0);if(this.videoData.Me())return!0;this.Ne("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.L.rI=function(p){(p=p===void 0?!1:p)||F_$(this.rG);this.m0=p;!this.gK()||this.wI.LH()?g.g5(this.Y)&&this.videoData.isLivePlayback&&this.wI.LH()&&!this.wI.finished&&!this.m0&&this.t6():(this.wI.start(),p=this.rG,g.US(p.provider),p.qoe&&gur(p.qoe),this.t6())}; g.L.t6=function(){if(this.videoData.isLoaded()){var p=this.Dz;g.sW(p.Ws.experiments,"html5_player_min_build_cl")>0&&g.sW(p.Ws.experiments,"html5_player_min_build_cl")>810467872&&ub(p,"oldplayer");nbF(this)}else this.videoData.UU||this.videoData.U9?this.m0&&g.g5(this.Y)&&this.videoData.isLivePlayback||(this.videoData.UU?ilZ(this.videoData):(p=this.rG,p.qoe&&(p=p.qoe,cJ(p,"protected"),p.provider.videoData.W?p.nT():p.provider.videoData.subscribe("dataloaded",p.nT,p)),riq(this.videoData))):!this.videoData.loading&& this.LR&&JiE(this)}; g.L.XM=function(p){this.I4=p;this.loader&&(kjM(this.loader,new g.V8(p)),this.jl("sdai",{sdsstm:1}))}; g.L.uA=function(p,a,l){var y;(y=this.loader)==null||y.uA(p,a,l)}; g.L.T2=RR(8);g.L.isFullscreen=function(){return this.visibility.isFullscreen()}; g.L.isBackground=function(){return this.visibility.isBackground()}; g.L.Fx=function(){var p=this;Ne(this).then(function(){return cS(p)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.L.YA=function(){this.mediaElement&&this.mediaElement.activate();this.rI();this.gK()&&!g.h(this.playerState,128)&&(this.dI.LH()||(this.dI.start(),this.videoData.Us?this.ju(Nn(this.playerState,4)):this.ju(Nn(Nn(this.playerState,8),1))),yRe(this))}; g.L.Mu=function(){return this.wI.finished}; g.L.sendAbandonmentPing=function(){g.h(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Ff(!0),L1q(this.rG),g.p3(this.rG),g.$e.WW(this.jP))}; g.L.Vi=function(p,a,l){p=p===void 0?!0:p;(a===void 0||a)&&this.mediaElement&&this.mediaElement.pause();p&&l&&this.loader&&Qe(this.videoData)&&this.loader.ow(l);this.ju(p?new g.Z5(14):new g.Z5)}; g.L.Jz=function(){this.rG.vA()}; g.L.Ne=function(p,a,l,y,S,n){var V,z;g.d7_(zpB,l)?V=l:l?z=l:V="GENERIC_WITHOUT_LINK";y=(y||"")+(";a6s."+Co());if(p==="auth"||p==="drm.auth"||p==="heartbeat.stop")l&&(y+=";r."+l.replaceAll(" ","_")),n&&(y+="sr."+n.replaceAll(" ","_"));a={errorCode:p,errorDetail:S,errorMessage:z||g.pp[V]||"",Dt:V,Aw:n||"",uY:y,pJ:a,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=p;wK(this,"dataloaderror");this.ju(HY(this.playerState,128,a));g.$e.WW(this.jP);Th(this);this.zf()}; g.L.iG=function(p){this.EV=this.EV.filter(function(a){return p!==a}); this.dI.LH()&&yRe(this)}; g.L.aQ=function(){var p;(p=!!this.EV.length)||(p=this.UY.L.array[0],p=!!p&&p.start<=-0x8000000000000);return p}; g.L.yR=function(){return this.GR.yR()}; g.L.isPlaying=function(){return this.playerState.isPlaying()}; g.L.hn=function(){return this.playerState.hn()&&this.videoData.Us}; g.L.getPlayerState=function(){return this.playerState}; g.L.Pw=function(p){var a;(a=this.loader)==null||a.Pw(p)}; g.L.xA=function(p){var a;(a=this.loader)==null||a.xA(p)}; g.L.getPlayerType=function(){return this.playerType}; g.L.getPreferredQuality=function(){if(this.dP){var p=this.dP;p=p.videoData.ye.compose(p.videoData.hE);p=al(p)}else p="auto";return p}; g.L.Pk=RR(16);g.L.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.L.setMediaElement=function(p){if(this.mediaElement&&p.gG()===this.mediaElement.gG()&&(p.isView()||this.mediaElement.isView())){if(p.isView()||!this.mediaElement.isView())this.aL(),this.mediaElement=p,this.mediaElement.Lz=this,t4M(this),this.GR.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Rd();if(!this.playerState.isError()){var a=Rc(this.playerState,512);g.h(a,8)&&!g.h(a,2)&&(a=Nn(a,1));p.isView()&&(a=Rc(a,64));this.ju(a)}this.mediaElement=p;this.mediaElement.Lz=this;!g.g5(this.Y)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);t4M(this);this.GR.setMediaElement(this.mediaElement);this.D("html5_prewarm_media_source")&&!this.Dz.tY()&&Qih(this.mediaElement)}}; g.L.Rd=function(p,a,l){p=p===void 0?!1:p;a=a===void 0?!1:a;l=l===void 0?!1:l;if(this.mediaElement){var y=this.getCurrentTime();y>0&&(this.GR.U=y);this.GR.setMediaElement(null);!p&&this.M3()?qYr(this):this.TF(l);this.loader&&(GL(this.loader),od(this,a));this.DW.stop();if(this.mediaElement&&(!this.dI.LH()&&!this.q9()||this.playerState.isError()||g.h(this.playerState,2)||this.ju(Nn(this.playerState,512)),this.mediaElement)){this.aL();if(p||!this.mediaElement.isView())this.QQ.jh("mesv_s"),this.mediaElement.stopVideo(), uU(this);this.mediaElement=this.mediaElement.Lz=null}}}; g.L.playVideo=function(p,a){p=p===void 0?!1:p;a=a===void 0?!1:a;var l=this,y,S,n,V,z,d;return g.R(function(G){if(G.L==1){var B=window.google_image_requests;B&&B.length>10&&(window.google_image_requests=B.slice(-10));if(g.h(l.playerState,128))return G.return();if(l.Dz.Xk())return l.publish("signatureexpired"),G.return();l.mediaElement&&F_$(l.rG);l.YA();(g.h(l.playerState,64)||p)&&l.ju(Nn(l.playerState,8));return l.dI.finished&&l.mediaElement?l.dP||!l.zV?G.g7(2):g.u(G,l.zV,3):G.return()}if(G.L!=2&& g.h(l.playerState,128))return G.return();if(!l.videoData.U)return l.videoData.isLivePlayback&&!g.coE(l.Y.W,!0)?(y="html5.unsupportedlive",S=2):(y=l.videoData.m7()?"fmt.unplayable":"fmt.noneavailable",S=1),g.Mf(Error("selectableFormats")),l.Ne(y,S,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),G.return();if(l.Bl()&&l.videoData.U.L)return G.return(Ne(l));if(Ak(l))B=l.GR,RQ(B.videoData)&&!B.isAtLiveHead(B.getCurrentTime())&&B.yR()&&B.Lz.seekTo(Infinity,{JP:"seektimeline_peggedToLive", seekSource:34});else if(RQ(l.videoData)&&(n=l.getCurrentTime()V;if(!z||!V){S&&z&&(n=Math.max(n,S));var d;S=z9O(a,(d=y.L)==null?void 0:d.videoInfos);d=a.Lz.getPlaybackRate();d>1&&S&&(d=hZv(a.Y.W,y.L.videoInfos,d),p.L!==0&&d=480;if(a.D("html5_perf_cap_override_sticky")){G=a.U;a=a.D("html5_perserve_av1_perf_cap");a=a===void 0?!1:a;if(a===void 0?0:a){B=xe();p=g.t(Object.keys(B));for(n=p.next();!n.done;n=p.next())n=n.value,n.indexOf("1")!==0&&delete B[n];g.HE("yt-player-performance-cap",B,2592E3)}else g.ZF("yt-player-performance-cap");Dxr(a);if(a){a=g.t(F$.keys()); for(B=a.next();!B.done;B=a.next())B=B.value,B.startsWith("1")||F$.delete(B);a=g.t(X$.values());for(B=a.next();!B.done;B=a.next())B=B.value,B.startsWith("1")||X$.delete(B);a=g.t(G.keys());for(B=a.next();!B.done;B=a.next())B=B.value,B.startsWith("1")||G.delete(B)}else F$.clear(),X$.clear(),G.clear()}}}}this.loader&&(a=this.loader,l=l||"",a.policy.L?GZ(a.j.L,l):GZ(a.L.W,l));this.N1()}; g.L.getUserPlaybackQualityPreference=function(){return this.videoData.U&&!this.videoData.U.L?al(this.videoData.ye):pG[rV()]}; g.L.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.L.setUserAudio51Preference=function(p,a){this.getUserAudio51Preference()!==p&&(this.jl("toggle51",{pref:p}),g.HE("yt-player-audio51",p,a?31536E3:2592E3),this.Fx())}; g.L.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.L.setProximaLatencyPreference=function(p){var a=this.getProximaLatencyPreference();this.jl("proxima",{pref:p});g.HE("yt-player-proxima-pref",p,31536E3);a!==p&&(p=this.GR,p.Ps=!0,p.Lz.seekTo(Infinity,{JP:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.L.getProximaLatencyPreference=function(){var p;return(p=E$M())!=null?p:0}; g.L.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.L.JG=function(){this.videoData.videoId?this.TR.JG(this.videoData):this.jl("povid",{})}; g.L.De=function(){this.videoData.videoId?this.TR.De(this.videoData):this.jl("piavid",{})}; g.L.N1=function(){if(!this.Gm()&&!g.h(this.playerState,128)&&this.videoData.U){if(this.videoData.U.L)It(this);else{var p=EA(this),a=this.videoData;a:{var l=this.videoData.vZ;if(p.L){for(var y=g.t(l),S=y.next();!S.done;S=y.next()){S=S.value;var n=S.getInfo(),V=g.T9[n.video.quality];if((!p.U||n.video.quality!=="auto")&&V<=p.L){l=S;break a}}l=l[l.length-1]}else l=l[0]}a.Kz=l;ct(this,p.reason,Lj$(this,this.videoData.Kz))}if(this.D("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.GR.Sl= !1,this.playVideo()}}; g.L.Kl=function(p,a){if(this.Gm()||g.h(this.playerState,128))return!1;var l,y=!((l=this.videoData.U)==null||!l.L);l=y&&a?this.getCurrentTime()-this.Jg():NaN;if(p.Mc&&p.Mc.id){var S=this.rG;if(S.qoe){S=S.qoe;var n=[p.Mc.id,isNaN(l)?"m":"t"];g.pt(S,g.US(S.provider),"afi",n)}}if(y)return a&&(y=QBv(this.GR),this.jl("aswh",{id:p.id,xtags:p.xtags,bh:y.toFixed(3)})),this.loader.setAudioTrack(p,l,a),!0;if(aaF(this)){a:{a=this.mediaElement.audioTracks();for(y=0;yn.Ic.getDuration()&&$Kh(n,V)):$Kh(n,G);var B=n.loader,c=n.Ic;z=z===void 0?!1:z;d=d===void 0?!1:d;B.policy.QY&&(B.policy.Hs&&B.jl("loader",{setsmb:0}),B.FG(),B.policy.QY=!1);AYF(B,d);if(!Rt(c)){var r=d$(B.videoTrack),w=d$(B.audioTrack),P=(r?r.info.L:B.videoTrack.L).info,F=(w?w.info.L:B.audioTrack.L).info,v=B.policy.O2, I=P.mimeType+(v===void 0?"":v),b=F.mimeType,O=P.h9,m=F.h9,H;c.UO=(H=c.Ic)==null?void 0:H.addSourceBuffer(b);var Y;c.Xu=I.split(";")[0]==="fakesb"?void 0:(Y=c.Ic)==null?void 0:Y.addSourceBuffer(I);c.uN&&(c.uN.webkitSourceAddId("0",b),c.uN.webkitSourceAddId("1",I));var N=new tj(c.UO,c.uN,"0",ql(b),m,!1),yo=new tj(c.Xu,c.uN,"1",ql(I),O,!0);DnM(c,N,yo)}r=z;w=d;r=r===void 0?!1:r;w=w===void 0?!1:w;HR(B.videoTrack,c.S||null,w);HR(B.audioTrack,c.L||null,w);B.Ic=c;B.Ic.j=!0;r||B.resume();c.L.xT(B.Ps,B);c.S.xT(B.Ps, B);try{B.e5()}catch(zq){g.iO(zq)}n.publish("mediasourceattached")}}catch(zq){g.Mf(zq),n.handleError(new g.mm("fmt.unplayable",{msi:"1",ename:zq&&typeof zq==="object"&&"name"in zq?String(zq.name):void 0,trg:"setmediasrc"},1))}} var n=this;a=a===void 0?!1:a;l=l===void 0?!1:l;XBM(this,y===void 0?!1:y);this.Ic=p;this.M3()&&B1(this.Ic)==="open"?S(this.Ic):COo(this.Ic,S)}; g.L.tv=function(p){this.Qv.set(p.initData,p);this.FX&&(this.FX.tv(p),this.D("html5_eme_loader_sync")||this.Qv.remove(p.initData))}; g.L.pD=function(p){this.videoData.fl=g.UR("auto",p,!1,"u");It(this)}; g.L.x8=function(p){var a=p.reason,l=p.L.info,y=p.token,S=p.videoId,n=this.rG,V=this.videoData;if(l!==V.j){var z=!V.j;V.j=l;a!=="m"&&a!=="t"&&(a=z?"i":"a");var d=a==="m"||a==="t";this.Y.experiments.Cz("html5_refactor_sabr_audio_format_selection_logging")?this.pY=new Bt(V,l,a,"",y,S):(a=new Bt(V,l,a,"",y),n.qoe&&(n=n.qoe,l=g.US(n.provider),OGF(n,l,a)));this.publish("internalaudioformatchange",V,!z&&d)}this.GM();this.GR.x8(p.L.index)}; g.L.PR=function(p){this.publish("localmediachange",p)}; g.L.Bk=function(p){p=p===void 0?{}:p;var a;(a=this.loader)==null||a.Bk(this.Y,rD(this.videoData),p)}; g.L.Xk=function(){return this.Dz.Xk()}; g.L.r0=function(p){this.w$(new g.mm("staleconfig",{reason:p}))}; g.L.handleError=function(p){this.Dz.handleError(p)}; g.L.tY=function(){return this.Dz.tY()}; g.L.Wf=function(p){this.GR.Wf(p)}; g.L.EU=function(p,a){p=p===void 0?!1:p;a=a===void 0?!1:a;var l=this,y,S,n;return g.R(function(V){if(V.L==1){l.loader&&l.loader.ZK();l.loader&&l.loader.Gm()&&Th(l);if(l.D("html5_enable_vp9_fairplay")&&l.m7()&&(y=l.videoData.L)!=null)for(var z in y.L)y.L.hasOwnProperty(z)&&(y.L[z].L=null,y.L[z].U=!1);l.ju(Nn(l.playerState,2048));l.publish("newelementrequired");return p?g.u(V,Ne(l),2):V.g7(2)}l.videoData.ke()&&((S=l.loader)==null?0:S.QY)&&!Ak(l)&&((n=l.isAtLiveHead())&&RQ(l.videoData)?l.seekTo(Infinity, {JP:"videoPlayer_getNewElement"}):l.videoData.uf&&l.loader&&(z=l.loader,z.MO.ke&&(z.MO.uf||z.MO.j||z.MO.isPremiere?(z.seek(0,{JP:"loader_resetSqless"}),z.videoTrack.K=!0,z.audioTrack.K=!0,z.videoTrack.W=!0,z.audioTrack.W=!0):z9(z.MO)&&ZU(z))));a&&l.seekTo(0,{seekSource:105});g.h(l.playerState,8)&&l.playVideo();g.lD(V)})}; g.L.iJ=function(p){this.jl("hgte",{ne:+p});this.videoData.K=!1;p&&this.EU();this.loader&&Jyf(this.loader)}; g.L.l$=function(p){this.jl("newelem",{r:p});this.EU()}; g.L.pauseVideo=function(p){p=p===void 0?!1:p;if((g.h(this.playerState,64)||g.h(this.playerState,2))&&!p)if(g.h(this.playerState,8))this.ju(Tw(this.playerState,4,8));else if(this.hn())cS(this);else return;g.h(this.playerState,128)||(p?this.ju(Nn(this.playerState,256)):this.ju(Tw(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.xV(this.videoData)&&this.loader&&od(this,!1)}; g.L.stopVideo=function(){this.pauseVideo();this.loader&&(od(this,!1),this.loader.FG())}; g.L.zf=function(p,a){p=p===void 0?!1:p;a=a===void 0?!1:a;if(this.M3()&&a){var l;(l=this.mediaElement)==null||l.zf()}else{var y;(y=this.mediaElement)==null||y.stopVideo()}uU(this);Th(this);g.h(this.playerState,128)||(p?this.ju(Rc(Rc(Nn(this.playerState,4),8),16)):this.ju(HY(this.playerState)));this.videoData.videoId&&this.Y.Hs.remove(this.videoData.videoId)}; g.L.seekTo=function(p,a){a=a===void 0?{}:a;g.h(this.playerState,2)&&cS(this);a.W0V&&this.ju(Nn(this.playerState,2048));if((a.seekSource===58||a.seekSource===60)&&this.D("html5_update_vss_during_gapless_seeking")){var l=this.rG;l.L&&(l=l.L,a.seekSource===58?l.L.update():l.U&&(tp(l),jO(l).send(),l.j=NaN))}this.GR.seekTo(p,a);this.UY.sync()}; g.L.Lw=function(p){this.QQ.j.S=(0,g.Ek)();g.h(this.playerState,32)||(this.ju(Nn(this.playerState,32,p==null?void 0:p.seekSource)),g.h(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.rq()}; g.L.oN=function(p){p=p==null?void 0:p.seekSource;g.h(this.playerState,32)?(this.ju(Tw(this.playerState,16,32,p)),this.publish("endseeking")):g.h(this.playerState,2)||this.ju(Nn(this.playerState,16,p));p=this.QQ.j;var a=this.videoData,l=this.playerState.isPaused();if(a.clientPlaybackNonce&&!isNaN(p.L)){if(Math.random()<.01){l=l?"pbp":"pbs";var y={startTime:p.L};a.G&&(y.cttAuthInfo={token:a.G,videoId:a.videoId});iH("seek",y);g.Bs({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(p.S)||kC("pl_ss", p.S,"seek");kC(l,(0,g.Ek)(),"seek")}p.reset()}}; g.L.pG=function(p){this.oN(p)}; g.L.Gg=function(){this.publish("SEEK_COMPLETE")}; g.L.V7=function(p){var a=this.TR,l=this.videoData.clientPlaybackNonce,y=this.playerType;if(p.scope===4){var S=p.type;if(S){var n=a.jb(),V=n.getVideoData().clientPlaybackNonce;y===1&&(V=l);if(y=QRM(a,V)){if(l=y.getVideoData())p.writePolicy===2&&l.sabrContextUpdates.has(S)||(p.sendByDefault&&l.Ps.add(S),l.sabrContextUpdates.set(S,p)),a.D("html5_enable_t1_enf_on_sabr")&&(p=S===5,S=MVO(l.playerResponse),p?(p=S?1:0,qR(p,"m.p_",{}),D_("MBSTAT",p)):p=1,p===0&&a.Tm.xv("onAbnormalityDetected"))}else n.jl("scuset", {ncpf:"1",ccpn:V,crcpn:l})}else g.Mf(Error("b/380308491: contextUpdateType is undefined"))}}; g.L.Or=function(){if(this.playerType===2)return this.TR.Or("")}; g.L.getCurrentTime=function(p){return this.GR.getCurrentTime(p===void 0?!1:p)}; g.L.cA=function(){return this.GR.cA()}; g.L.Bi=function(){return this.GR.Bi()}; g.L.xG=function(){return this.Bi()}; g.L.a7=function(){return this.GR.a7()}; g.L.getPlaylistSequenceForTime=function(p){return this.videoData.getPlaylistSequenceForTime(p-this.Jg())}; g.L.HW=function(){var p=NaN;this.mediaElement&&(p=this.mediaElement.HW());return p>=0?p:this.getCurrentTime()}; g.L.d$=function(){var p;return((p=this.videoData.L)==null?0:p.d$)?this.videoData.L.d$(this.getCurrentTime()-this.Jg()):this.mediaElement&&(p=this.mediaElement.SB())&&(p=p.getTime(),!isNaN(p))?p/1E3+this.getCurrentTime():NaN}; g.L.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Jg():this.Lh()?this.Lh():0}; g.L.YD=function(){var p=new XzO;if(this.loader){var a=this.s6,l=this.Y.ao();l=l===void 0?!1:l;p.KN=a.w7;p.X4=a.r7;p.bandwidthEstimate=rf(a);if(l){l=(a.Z.Cv()*1E3).toFixed();var y=(a.QY.Cv()*1E3).toFixed(),S=zz(a).toFixed(2),n=((a.K.Cv()||0)*1E9).toFixed(2),V=a.U.Cv().toFixed(0),z=a.t9.Cv().toFixed(0),d=a.Sl.percentile(.5).toFixed(2),G=a.Sl.percentile(.92).toFixed(2),B=a.Sl.percentile(.96).toFixed(2),c=a.Sl.percentile(.98).toFixed(2);a.L?a.L.reset():a.L=new ye;a.L.add(a.Bs);a.L.add(a.interruptions.length); for(var r=0,w=a.interruptions.length-1;w>=0;w--){var P=a.interruptions[w];a.L.add(P-r);r=P}r=0;for(w=a.j.length-1;w>=0;w--){P=a.j[w];var F=P.stamp/36E5;a.L.add(F-r);r=F;a.L.add(P.net/1E3);a.L.add(P.max)}a=a.L.Ut();p.L={ttr:l,ttm:y,d:S,st:n,bw:V,abw:z,v50:d,v92:G,v96:B,v98:c,"int":a}}a=this.loader;a.Ic&&a.Ic.j&&!a.Ic.h$()&&(p.X5=qA(a.videoTrack),p.S=qA(a.audioTrack),a.policy.U&&(l=QL(a.videoTrack),y=QL(a.audioTrack),S=jS(a.Ic.S.ea(),"_",5),n=jS(a.Ic.L.ea(),"_",5),Object.assign(p.L,{lvq:l,laq:y,lvb:S, lab:n})));p.bandwidthEstimate=TU(a.Sl);var v;(v=a.audioTrack.Sl)==null||v.flush();var I;(I=a.videoTrack.Sl)==null||I.flush()}else this.mediaElement&&(p.X5=x9(this.mediaElement));p.KN=this.KN;p.X4=this.X4;p.U=this.isAtLiveHead()&&this.isPlaying()?RSr(this):NaN;v=this.GR;v=v.L?wv(v.L):0;p.j=v;return p}; g.L.wQ=function(p,a){this.X4+=p;this.KN+=a}; g.L.I8=function(){return this.mediaElement?g.xV(this.videoData)?1:FT(this.videoData)?this.isAtLiveHead()||this.yR()?1:this.GR.I8():this.mediaElement.I8():0}; g.L.jA=function(){var p=this.s_,a=Of(p,"bandwidth"),l=Of(p,"bufferhealth"),y=Of(p,"livelatency"),S=Of(p,"networkactivity"),n=Lx(p,"bandwidth"),V=Lx(p,"bufferhealth"),z=Lx(p,"livelatency");p=Lx(p,"networkactivity");var d=this.XL(),G=d.droppedVideoFrames;d=d.totalVideoFrames;var B=this.getCurrentTime();if(this.FX){var c="IT/"+(this.FX.L.getInfo()+"/"+al(this.p6()));c+="/"+this.FX.getInfo()}else c="";var r=this.isGapless(),w=this.B9(),P=this.qM(),F=g.Gi(this),v=this.getPlayerState(),I=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var b=0;var O="";if(this.I4){if(this.I4.bK){O="D,";break a}b=this.I4.sZ;O=this.I4.x3.substring(0,4)}b>0?(b="AD"+b+", ",O&&(b+=O+", "),O=b):O=""}return{Vd:n,BC:V,currentTime:B,Eb:c,droppedVideoFrames:G,isGapless:r,B9:w,Kd:P,qX:a,OR:l,P$:y,Vq:S,mU:z,pK:p,Gs:F,playerState:v,cQ:I,lR:O,totalVideoFrames:d}}; g.L.mS=function(p){var a={};if(p===void 0?0:p){Object.assign(a,this.rG.mS());this.mediaElement&&(Object.assign(a,this.mediaElement.mS()),p=this.XL(),a.dvf=p.droppedVideoFrames,a.tvf=p.totalVideoFrames);this.loader&&Object.assign(a,this.loader.mS());this.FX&&(a.drm=JSON.stringify(this.FX.mS()));a.state=this.playerState.state.toString(16);g.h(this.playerState,128)&&(a.debug_error=JSON.stringify(this.playerState.iN));this.aQ()&&(a.prerolls=this.EV.join(","));this.videoData.Ha&&(a.ismb=this.videoData.Ha); this.videoData.latencyClass!=="UNKNOWN"&&(a.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(a.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)a.is_mosaic=1;this.videoData.cotn&&(a.is_offline=1,a.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(a.playerResponseCpn=this.videoData.playerResponseCpn);this.TR.isOrchestrationLeader()&&(a.leader=1);this.videoData.isLivePlayback&& (this.videoData.L&&gE(this.videoData.L)&&(a.segduration=gE(this.videoData.L)),p=this.GR,a.lat=p.Z?MzZ(p.Z.j):0,a.liveutcstart=this.videoData.liveUtcStartSeconds);a.relative_loudness=this.videoData.aM.toFixed(3);if(p=g.Gi(this))a.optimal_format=p.video.qualityLabel;a.user_qual=rV();a.release_version=Z[57]}a.debug_videoId=this.videoData.videoId;return a}; g.L.addCueRange=function(p){this.SK([p])}; g.L.removeCueRange=function(p){this.UY.PG([p])}; g.L.pm=function(){var p=this.UY;if(p.Lz.C().D("html5_sort_cueranges_on_update")&&!(p.ov().length<=0||p.Gm())){var a=p.L;a.array.sort(a.L)}p.sync()}; g.L.Gc=function(p,a){return this.UY.Gc(p,a)}; g.L.SK=function(p,a){this.UY.Kh(p,a)}; g.L.Wt=function(p){this.UY.PG(p)}; g.L.ov=function(){return this.UY.ov()||[]}; g.L.FI=function(){return this.TG}; g.L.Bl=function(){return this.visibility.Bl()}; g.L.fE=function(){this.mediaElement&&this.mediaElement.fE()}; g.L.YEY=function(){wK(this)}; g.L.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.L.aL=function(){g.z1(this.Mm)}; g.L.UeY=function(){this.rq();this.publish("onLoadProgress",this.I8())}; g.L.kW=function(p){this.RQ().L.Zy(aMb)&&r2(this);var a=p.target.w4();if(this.mediaElement&&this.mediaElement.w4()&&this.mediaElement.w4()===a){hM7(this,p.type);switch(p.type){case "error":var l=IZ(this.mediaElement)||"",y=this.mediaElement.XF();if(l==="capability.changed"){this.D("html5_restart_on_capability_change")?(this.jl("capchg",{msg:y}),this.EU(!0)):Ne(this);return}if(this.mediaElement.hasError()&&hj(this.Dz,l,{msg:y,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.q3()=== 4){this.zf();N5(this,"unplayable");return}break;case "durationchange":l=this.mediaElement.getDuration();isFinite(l)&&(!this.Ic||l>0)&&l!==1&&this.iK(l);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());l=this.UY;l.started=!0;l.sync();this.rG.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":this.RQ().L.Zy(lMb)&&r2(this);xGo(this);this.publish("onLoadedMetadata");pEr(this);l=this.d$();this.videoData.I$&&(this.videoData.I$=l); break;case "loadstart":pEr(this);break;case "progress":case "suspend":this.Ee.Nm();break;case "seeked":(l=this.loader)!=null&&l.policy.S&&l.Y0&&(l.jl("sdai",{skipAdSked:"1"}),l.Y0=!1);break;case "playing":this.RQ().L.Zy(lMb)&&r2(this);this.QQ.jh("plev");this.K3&&!Ak(this)&&(this.K3=!1,this.isAtLiveHead()||this.seekTo(Infinity,{JP:"videoplayer_onPlaying"}));break;case "timeupdate":this.RQ().L.Zy(lMb)&&r2(this);l=this.mediaElement&&!this.mediaElement.getCurrentTime();y=this.mediaElement&&this.mediaElement.w3()=== 0;if(l&&(!this.RS||y))return;this.RS=this.RS||!!this.mediaElement.getCurrentTime();nA(this);this.rq();if(!this.mediaElement||this.mediaElement.w4()!==a)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.JH().length>0&&this.mediaElement.Vh().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.D("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.w3()> 2||!this.mediaElement.isSeeking()&&GI(this.mediaElement.Vh(),this.mediaElement.getCurrentTime()))&&(l=this.mediaElement.mS(),l.bh=x9(this.mediaElement).toFixed(3),this.jl("uwe",l));break;case "resize":xGo(this);this.videoData.S&&this.videoData.S.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.O$&&g.h(this.playerState,8)&&!g.h(this.playerState,1024)&&this.getCurrentTime()===0&&g.yd){N5(this,"safari_autoplay_disabled");return}}if(this.mediaElement&& this.mediaElement.w4()===a){eIA(this.GR,p);this.publish("videoelementevent",p);a=this.playerState;y=this.iF;var S=this.mediaElement;l=this.videoData.clientPlaybackNonce;if(!g.h(a,128)){var n=a.state;S=S?S:p.target;var V=S.getCurrentTime();if(!g.h(a,64)||p.type!=="ended"&&p.type!=="pause"){var z=S.getDuration();z=S.isEnded()||V>1&&Math.abs(V-z)<1.1;var d=p.type==="pause"&&S.isEnded();V=p.type==="ended"||p.type==="waiting"||p.type==="timeupdate"&&!g.h(a,4)&&!hc(y,V);if(d||z&&V)S.S2()>0&&S.w4()&&(n= 14);else switch(p.type){case "error":IZ(S)&&(n|=128);break;case "pause":g.h(a,256)?(n^=256)||(n=64):g.h(a,32)||g.h(a,2)||g.h(a,4)||(n=4,g.h(a,1)&&g.h(a,8)&&(n|=1));break;case "playing":V=n;n=(n|8)&-1093;V&4?(n|=1,Uf(y,S,!0)):hc(y,S.getCurrentTime())&&(n&=-2);g.h(a,1)&&Uf(y,S)&&(n|=1);break;case "seeking":n|=16;g.h(a,8)&&(n|=1);n&=-3;break;case "seeked":n&=-17;Uf(y,S,!0);break;case "waiting":g.h(a,2)||(n|=1);Uf(y,S);break;case "timeupdate":V=g.h(a,16),z=g.h(a,4),(g.h(a,8)||V)&&!z&&hc(y,S.getCurrentTime())&& (n=8),Uf(y,S)&&(n|=1)}}y=n;n=null;y&128&&(n=p.target,S=IZ(n),V=1,S?(S==="capability.changed"&&(V=2),z="GENERIC_WITHOUT_LINK",d=n.mS(),d.mediaElem="1",d.trg="melem",/AUDIO_RENDERER/.test(n.XF())&&(z="HTML5_AUDIO_RENDERER_ERROR"),n={errorCode:S,errorMessage:g.pp[z]||"",Dt:z,uY:qp(d),pJ:V,cpn:a.iN?a.iN.cpn:""}):n=null,n&&(n.cpn=l));a=HY(a,y,n)}!g.h(this.playerState,1)&&g.h(a,1)&&FV(this,"evt"+p.type);this.ju(a)}}}; g.L.Uc9=function(p){p=p.L.availability==="available";p!==this.TG&&(this.TG=p,this.publish("airplayavailabilitychange"))}; g.L.jo9=function(){var p=(0,g.Ek)(),a=this.mediaElement.Bl();this.jl("airplay",{ia:a});!a&&!isNaN(this.OP)&&p-this.OP<2E3||(this.OP=p,a!==this.Bl()&&(p=this.visibility,p.L!==a&&(p.L=a,p.JN()),this.jl("airplay",{rbld:a}),this.Fx()),this.publish("airplayactivechange"))}; g.L.Zo=function(p){if(this.loader){var a=this.loader,l=a.U,y=a.getCurrentTime(),S=Date.now()-l.Sl;l.Sl=NaN;l.jl("sdai",{adfetchdone:p,d:S});p&&!isNaN(l.K)&&l.S!==3&&DK(l.loader,y,l.K,l.G);l.policy.S?l.W=NaN:l.j=NaN;pV(l,4,l.S===3?"adfps":"adf");GL(a)}}; g.L.bu=function(){g.pA(this.d0);this.DW.stop();this.videoData.Sl=!0;this.Y.Hk=!0;this.Y.eb=0;var p=this.Dz;if(p.videoData.S){var a=p.Ws.W,l=p.videoData.S.h9;a.j.has(l)&&(a.j.delete(l),a.S=!0)}p.L.stop();this.O3();g.h(this.playerState,8)&&this.ju(Rc(this.playerState,65));this.m0=!1;this.rG.v8();g.sb(this.eJ);this.publish("playbackstarted");(p=g.o4("yt.scheduler.instance.clearPriorityThreshold"))?p():Fo(0)}; g.L.O3=function(){var p=this.TR.y$(),a={},l={};!w1("pbs",this.QQ.timerName)&&ML.measure&&ML.getEntriesByName&&(ML.getEntriesByName("mark_nr")[0]?bYv("mark_nr"):bYv());p.videoId&&(a.videoId=p.videoId);p.clientPlaybackNonce&&!this.D("web_player_early_cpn")&&(a.clientPlaybackNonce=p.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(l.isPausedOnLoad=!0);l.itag=p.S?Number(p.S.itag):-1;p.b_&&(l.preloadType=String(this.ER?2:1));a.liveStreamMode=jWc[Bl(p)];a.playerInfo=l;this.QQ.infoGel(a); if(this.loader){p=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(p.U&&(a=window.performance.getEntriesByName(p.U),a.length&&(a=a[0],p.tick("vri",a.fetchStart),p.tick("vdns",a.domainLookupEnd),p.tick("vreq",a.requestStart),p.tick("vrc",a.responseEnd))),p.S&&(a=window.performance.getEntriesByName(p.S),a.length&&(a=a[0],p.tick("ari",a.fetchStart),p.tick("adns",a.domainLookupEnd),p.tick("areq",a.requestStart),p.tick("arc",a.responseEnd))));p=p.ticks;for(var y in p)p.hasOwnProperty(y)&& this.QQ.tick(y,p[y])}}; g.L.rq=function(p){var a=this;p=p===void 0?!1:p;if(this.mediaElement&&this.videoData){HAc(this.GR,this.isPlaying());var l=this.getCurrentTime();if(this.loader&&(g.h(this.playerState,4)&&g.xV(this.videoData)||g.h(this.playerState,32)&&gQ(this.videoData)||nEM(this.loader,l),this.D("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var y;this.jl("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(y=this.loader)==null?void 0:y.currentTime},!0)}l> 5&&(this.GR.U=l);(y=g.wB())?g.$e.WW(this.jP):g.pI(this.jP);var S=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!S||cA(this.videoData))&&!g.h(this.playerState,128)){var n=function(){if(a.mediaElement&&!g.h(a.playerState,128)){a.Y.ao()&&hM7(a,"pfx");var V=a.getCurrentTime();a.D("html5_buffer_underrun_transition_fix")&&(V-=a.Jg());var z=x9(a.mediaElement),d=g.h(a.playerState,8),G=hc(a.iF,V),B=un$(a.iF,V,(0,g.Ek)(),z);d&&G?a.ju(Rc(a.playerState,1)):d&&B?(d=a.getDuration(),G=RQ(a.videoData), d&&Math.abs(d-V)<1.1?(a.jl("setended",{ct:V,bh:z,dur:d,live:G}),a.mediaElement.p9()?a.seekTo(0,{JP:"videoplayer_loop",seekSource:37}):a.Vi()):(a.playerState.isBuffering()||FV(a,"progress_fix"),a.ju(Nn(a.playerState,1)))):(d&&!G&&!B&&V>0&&(d=(Date.now()-a.O4)/1E3,G=a.getDuration(),V>G-1&&a.jl("misspg",{t:V.toFixed(2),d:G.toFixed(2),r:d.toFixed(2),bh:z.toFixed(2)})),a.playerState.isPaused()&&a.playerState.isBuffering()&&x9(a.mediaElement)>5&&a.ju(Rc(a.playerState,1)));a.rq()}}; this.mediaElement.JH().length===0?this.jP=y?g.$e.xn(n,100):g.aY(n,100):this.jP=y?g.$e.xn(n,500):g.aY(n,500)}this.videoData.bf=l;!p&&this.isPlaying()&&Xeo(this);tTM(this.y4,this.dP,this.F7(),this.isBackground())&&It(this);this.publish("progresssync",p);S&&cA(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.L.yK=function(){this.Ne("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.L.qM=function(){return this.rG.qM()}; g.L.Zt=function(){return this.loader?this.loader.Zt():rf(this.s6,!0)}; g.L.ju=function(p){if(!g.dWM(this.playerState,p)){var a=new g.VM(p,this.playerState);this.playerState=p;Lzf(this);var l=!this.g0.length;this.g0.push(a);var y=this.mediaElement&&this.mediaElement.isSeeking();g.mj(a,1)&&this.loader&&JHv(this.loader);y=a.oldState.state===8&&!y;if(g.mj(a,1)&&y&&g.h(this.playerState,8)&&!g.h(this.playerState,64)&&this.loader){y=this.loader;y.fU=!0;if(y.policy.O6&&y.Ic){var S,n,V,z;y.jl("lr_rb",{c:y.getCurrentTime(),s:y.isSeeking(),ab:jS(y.Ic.L.ea()),ala:(S=cH(y.audioTrack))== null?void 0:S.AP(),alr:(n=y.audioTrack.S)==null?void 0:n.AP(),vb:jS(y.Ic.S.ea()),vla:(V=cH(y.videoTrack))==null?void 0:V.AP(),vlr:(z=y.videoTrack.S)==null?void 0:z.AP()})}y.Lz.II()!==0&&y.jl("sps_rebuffer",{c:y.getCurrentTime()});this.mediaElement&&x9(this.mediaElement)>=5&&(S=this.y4,n=this.dP,!n.videoData.S||S.D("html5_disable_performance_downgrade")?S=!1:(Date.now()-S.K>6E4&&(S.S=0),S.S++,S.K=Date.now(),S.S!==4?S=!1:(z7$(S,n.videoData.S),S=!0)),S&&It(this))}(S=g.sW(this.Y.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.h(p,1)&&(g.h(p,8)||g.h(p,16))?this.Cj.start(S):this.Cj.stop();(He(a,8)<0||g.mj(a,1024))&&this.DW.stop();!g.mj(a,8)||this.videoData.Sl||g.h(a.state,1024)||this.DW.start();g.h(a.state,8)&&He(a,16)<0&&!g.h(a.state,32)&&!g.h(a.state,2)&&this.playVideo();g.h(a.state,2)&&FT(this.videoData)&&(this.iK(this.getCurrentTime()),this.rq(!0));g.mj(a,2)&&(this.Ff(!0),this.Y.ao()&&this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&gQ(this.videoData)&&this.videoData.L&&(p={minst:""+ this.videoData.L.RK,cminst:""+(this.videoData.L.hP()+this.Jg()),maxst:""+this.videoData.L.UM,hts:""+this.videoData.L.w7,cmaxst:""+(this.videoData.L.Lh()+this.Jg())},this.jl("sabrSeekableBoundaries",p)));g.mj(a,128)&&this.zf();this.videoData.L&&this.videoData.isLivePlayback&&!this.hd&&(He(a,8)<0?(p=this.videoData.L,p.W&&p.W.stop()):g.mj(a,8)&&this.videoData.L.resume());p=this.GR;g.sb(p.UO.W);if(p.mediaElement)if(a.oldState.state===8&&ZA(a.state)&&a.state.isBuffering()){var d=p.mediaElement.getCurrentTime(); S=p.mediaElement.Vh();n=p.D("manifestless_post_live_ufph")||p.D("manifestless_post_live")?hp(S,Math.max(d-3.5,0)):hp(S,d-3.5);n>=0&&d>S.end(n)-1.1&&n+10?(dC(p.Lz,p.getCurrentTime()+p.videoData.limitedPlaybackDurationInSeconds), p.Kz=!0):p.videoData.isLivePlayback&&p.videoData.endSeconds>0&&(dC(p.Lz,p.getCurrentTime()+p.videoData.endSeconds),p.Kz=!0));d=this.rG;if(g.mj(a,1024)||g.mj(a,512)||g.mj(a,4))d.S&&(p=d.S,p.S>=0||(p.L=-1,p.delay.stop())),d.qoe&&(p=d.qoe,p.K||(p.U=-1));if(d.provider.videoData.enableServerStitchedDai&&d.J5){var G;(G=d.U.get(d.J5))==null||DL(G,a)}else d.L&&DL(d.L,a);d.qoe&&(G=d.qoe,p=a.state,S=g.US(G.provider),n=G.getPlayerState(p),V=p.seekSource||void 0,n!==G.qe&&(G.w7||S=10&&G.playTimeSecs<=180&&(G.L.set("qoealert",["1"]),G.yQ=!0)),n!=="B"||G.qe!=="PL"&&G.qe!=="PB"||(G.isBuffering=!0),G.S=S),G.qe==="PL"&&(n==="B"||n==="S")||G.provider.Y.ao()?Qd(G,S):(G.eb||n!=="PL"||(G.eb=!0,fx(G,S,G.provider.Lz.YD())),MLq(G,S)),n==="PL"&&g.sb(G.Kt),z=[n],n==="S"&&V&&z.push("ss."+V),g.pt(G,S,"vps",z),G.qe=n,G.UO=S,G.S=S,G.j=!0),n=p.iN,g.h(p,128)&&n&&(n.uY=n.uY||"",MZe(G,S,n.errorCode, n.pJ,n.uY)),(g.h(p,2)||g.h(p,128))&&G.reportStats(S),p.isPlaying()&&!G.K&&(G.U>=0&&G.L.set("user_intent",[G.U.toString()]),G.K=!0),hO(G));d.S&&(G=d.S,c4$(G),G.playerState=a.state,G.S>=0&&g.mj(a,16)&&G.seekCount++,a.state.isError()&&G.send());if(l&&!this.Gm())try{for(var B=g.t(this.g0),c=B.next();!c.done;c=B.next()){var r=c.value,w=this.UY;if(w.started&&(w.sync(),g.h(r.oldState,16))){a=w;var P=U7c(a.L,Math.max(a.U-2E3,0));!isNaN(P)&&P<0x7ffffffffffff&&a.j.start()}this.publish("statechange",r)}}finally{this.g0.length= 0}}}; g.L.tR=function(){this.QQ.tick("qoes")}; g.L.Ge=function(){this.GR.Ge()}; g.L.oS=function(p,a,l,y){a:{var S=this.Dz;y=y===void 0?"LICENSE":y;l=l.substring(0,256);var n=tF(a);p==="drm.keyerror"&&this.FX&&this.FX.S.keys.length>1&&S.j<96&&(p="drm.sessionlimitexhausted",n=!1);var V=S.Ws.experiments.Cz("html5_retry_on_drm_unavailable"),z=S.Ws.experiments.Cz("html5_retry_on_drm_key_error"),d=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(V&&p==="drm.unavailable"||z&&p==="drm.keyerror"&&!l.match(d))S.w$("qoe.restart",{retryOnDrmError:1,e:p,detail:l}),S.Lz.EU(!0);else{if(n)if(S.videoData.S&& S.videoData.S.video.isHdr())KkZ(S,p);else{if(S.Lz.Ne(p,a,y,l),N4O(S,{detail:l}))break a}else S.w$(p,{detail:l});p==="drm.sessionlimitexhausted"&&(S.jl("retrydrm",{sessionLimitExhausted:1}),S.j++,wmv(S.Lz))}}}; g.L.hv7=function(){var p=this,a=g.sW(this.Y.experiments,"html5_license_constraint_delay"),l=PK();a&&l?(a=new g.l_(function(){p.N1();wK(p)},a),g.E(this,a),a.start()):(this.N1(),wK(this))}; g.L.EH=function(p){this.publish("heartbeatparams",p)}; g.L.H8=function(p){this.jl("keystatuses",iK(p));var a="auto",l=!1;this.videoData.S&&(a=this.videoData.S.video.quality,l=this.videoData.S.video.isHdr());a:{switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:a="";break a}l&&(a+="HDR")}a=DM(p)?ED(p,a):p.j.includes(a);if(this.D("html5_enable_vp9_fairplay")){if(l)if(p.K){var y;if((y= this.FX)==null?0:W9(y.L))if((l=this.FX)==null)l=0;else{for(var S=y=void 0,n=g.t(l.S.values()),V=n.next();!V.done;V=n.next())V=V.value,y||(y=YEo(V,"SD")),S||(S=YEo(V,"AUDIO"));l.HG({sd:y,audio:S});l=y==="output-restricted"||S==="output-restricted"}else l=!a;if(l){this.jl("drm",{dshdr:1});KkZ(this.Dz);return}}else{this.videoData.Q8||(this.videoData.Q8=!0,this.jl("drm",{dphdr:1}),this.EU(!0));return}var z;if((z=this.FX)==null?0:W9(z.L))return}else if(z=p.K&&a,l&&!z){KkZ(this.Dz);return}a||ED(p,"AUDIO")&& ED(p,"SD")||(p=iK(p),this.GP?(this.publish("drmoutputrestricted"),this.D("html5_report_fatal_drm_restricted_error_killswitch")||this.Ne("drm.keyerror",2,void 0,"info."+p)):(this.GP=!0,this.w$(new g.mm("qoe.restart",Object.assign({},{retrydrm:1},p))),It(this),wmv(this)))}; g.L.mc7=function(){if(!this.videoData.Sl&&this.mediaElement&&!this.isBackground()){var p="0";this.mediaElement.w3()>0&&x9(this.mediaElement)>=5&&this.videoData.U&&this.videoData.U.L&&(this.ju(Nn(this.playerState,1)),FV(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),p="1");Lzf(this);var a=this.videoData.U;p={restartmsg:p,mfmt:!sn(this.videoData),mdrm:!(!(a&&a.videoInfos&&a.videoInfos.length&&a.videoInfos[0].Hy)||this.FX),mfmtinfo:!this.videoData.S,prerolls:this.aQ()?this.EV.join(","): "0"};if(this.FX){a=this.FX;if(a.S.size<=0){var l="ns;";a.Sl||(l+="nr;");a=l+="ql."+a.U.length}else a=iK(a.S.values().next().value),a=qp(a);p.drmp=a}var y;Object.assign(p,((y=this.loader)==null?void 0:y.mS())||{});var S;Object.assign(p,((S=this.mediaElement)==null?void 0:S.mS())||{});this.rG.w$("qoe.start15s",qp(p));this.publish("loadsofttimeout")}}; g.L.iK=function(p){this.videoData.lengthSeconds!==p&&(this.videoData.lengthSeconds=p,wK(this))}; g.L.Ff=function(p,a){var l=this;p=p===void 0?!1:p;if(!this.TU)if(w1("att_s","player_att")||$B("att_s",void 0,"player_att"),this.D("use_rta_for_player"))(function(){var S,n,V,z;return g.R(function(d){switch(d.L){case 1:if(!(S=p)){d.g7(2);break}return g.u(d,g.Ht$(),3);case 3:S=!d.S;case 2:if(S)return d.return();g.$r(d,4);n=QrK(l.rG);if(!n)throw Error();V={};return g.u(d,g.TNr((V.cpn=l.videoData.clientPlaybackNonce,V.encryptedVideoId=l.videoData.videoId||"",V),3E4),6);case 6:z=d.S;if(l.TU)throw Error(); if(!z.challenge)throw g.Mf(Error("Not sending attestation ping; no attestation challenge string")),Error();l.TU=!0;var G=[z.challenge];if(z.error){var B=rm8();B=VTr(B).get(z.error)||0;G.push("r1c="+B)}else z.webResponse&&G.push("r1a="+z.webResponse);var c;((c=z.adblockReporting)==null?void 0:c.reportingStatus)!==void 0&&G.push("r6a="+z.adblockReporting.reportingStatus);var r;((r=z.adblockReporting)==null?void 0:r.broadSpectrumDetectionResult)!==void 0&&G.push("r6b="+z.adblockReporting.broadSpectrumDetectionResult); n(G.join("&"));$B("att_f",void 0,"player_att");g.L8(d,0);break;case 4:g.L6(d),$B("att_e",void 0,"player_att"),g.lD(d)}})})().then(function(){a==null||a()}); else{var y=new g.W5e(this.videoData);if("c1a"in y.WL&&!g.EQ.isInitialized()){$B("att_wb",void 0,"player_att");this.f2===2&&Math.random()<.01&&g.Mf(Error("Botguard not available after 2 attempts"));if(p)return;if(this.f2<5){g.sb(this.Ew);this.f2++;return}}(y=g.TKM(y))?($B("att_f",void 0,"player_att"),JTF(this.rG,y),this.TU=!0):$B("att_e",void 0,"player_att")}}; g.L.Mb=function(p){p=p===void 0?!1:p;return RQ(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.yR()||g.xV(this.videoData))?this.getCurrentTime():this.Lh(p)}; g.L.Gd=function(){return this.hP()}; g.L.Lh=function(p){return this.GR.Lh(p===void 0?!1:p)}; g.L.hP=function(){return this.GR.hP()}; g.L.Jg=function(){return this.GR?this.GR.Jg():0}; g.L.getStreamTimeOffset=function(){return this.GR?this.GR.getStreamTimeOffset():0}; g.L.CE=function(){return this.getStreamTimeOffset()===0?this.Jg():this.getStreamTimeOffset()}; g.L.setPlaybackRate=function(p){var a;this.playbackRate!==p&&z9O(this.y4,(a=this.videoData.U)==null?void 0:a.videoInfos)&&(this.playbackRate=p,It(this));this.playbackRate=p;this.mediaElement&&this.mediaElement.setPlaybackRate(p)}; g.L.getPlaybackRate=function(){return this.playbackRate}; g.L.getPlaybackQuality=function(){var p="unknown";if(this.videoData.S&&(p=this.videoData.S.video.quality,p==="auto"&&this.mediaElement)){var a=this.iS();a&&a.videoHeight>0&&(p=Kq(a.videoWidth,a.videoHeight))}return p}; g.L.isHdr=function(){return!!(this.videoData.S&&this.videoData.S.video&&this.videoData.S.video.isHdr())}; g.L.sendVideoStatsEngageEvent=function(p,a){var l=this.rG;l.L?(l=i4(l.L,"engage"),l.w7=p,l.send(a)):a&&a()}; g.L.Wl=function(p){return this.rG.Wl(p)}; g.L.isAtLiveHead=function(p,a){a=a===void 0?!1:a;return RQ(this.videoData)&&(this.S7||a)?this.GR.isAtLiveHead(p):!1}; g.L.Ak=function(){var p=this.Lh(),a=this.getCurrentTime(),l;(l=!RQ(this.videoData))||(l=this.GR,l=!(l.L&&l.L.U));return l||this.yR()||isNaN(p)||isNaN(a)?0:Math.max(0,p-a)}; g.L.JM=function(p){(this.S7=p)||this.DW.stop();if(this.videoData.L)if(p)this.videoData.L.resume();else{var a=this.videoData.L;a.W&&a.W.stop()}this.loader&&(a=this.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&this.q9()&&this.videoData.isLivePlayback,p&&!a?this.loader.resume():od(this,!0));g.h(this.playerState,2)||p?g.h(this.playerState,512)&&p&&this.ju(Rc(this.playerState,512)):this.ju(Nn(this.playerState,512));a=this.rG;a.qoe&&(a=a.qoe,g.pt(a,g.US(a.provider),"stream",[p?"A":"I"]))}; g.L.IS=function(p){this.rG.w$("player.exception",qp({n:p.name,m:p.message}))}; g.L.jR=RR(22);g.L.Jk=RR(51);g.L.zM=function(p){this.rG.zM(p)}; g.L.wl=function(p){this.rG.wl(p)}; g.L.bj=function(p){this.rG.bj(p)}; g.L.VT=RR(28);g.L.Cq=RR(34);g.L.E8=function(p){this.rG.E8(p)}; g.L.ow=function(p,a,l,y){this.rG.ow(p,a,l,y)}; g.L.YF=function(){this.jl("hidden",{},!0)}; g.L.XL=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.L.hH=function(){return this.loader?this.loader.hH():!0}; g.L.setLoop=function(p){this.loop=p;this.mediaElement&&!g.g5(this.Y)&&this.mediaElement.setLoop(p)}; g.L.p9=function(){return this.mediaElement&&!g.g5(this.Y)?this.mediaElement.p9():this.loop}; g.L.Tg=function(p){this.jl("timestamp",{o:p.toString()});this.GR.Tg(p)}; g.L.nt=function(p){this.QQ.tick(p)}; g.L.Xb=function(p){return this.QQ.Xb(p)}; g.L.jh=function(p){this.QQ.jh(p)}; g.L.jl=function(p,a,l){this.rG.jl(p,a,l===void 0?!1:l)}; g.L.Eh=function(p,a,l){this.rG.jl(p,a,l===void 0?!1:l)}; g.L.w$=function(p){this.rG.w$(p.errorCode,qp(p.details));p=p.errorCode;if(this.videoData.isLivePlayback&&(p==="qoe.longrebuffer"||p==="qoe.slowseek")||p==="qoe.restart"){p=this.loader?PY$(this.loader.videoTrack):{};var a,l;this.jl("lasoe",Object.assign(this.loader?PY$(this.loader.audioTrack):{},(a=this.Ic)==null?void 0:(l=a.L)==null?void 0:l.mq()));var y,S;this.jl("lvsoe",Object.assign(p,(y=this.Ic)==null?void 0:(S=y.S)==null?void 0:S.mq()))}if(this.D("html5_log_centralized_player_time")){var n;this.jl("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(n=this.loader)==null?void 0:n.currentTime})}}; g.L.Zk=function(p,a,l){this.rG.Zk(p,a,l)}; g.L.dQ=function(p,a,l,y,S,n,V,z){var d;if((d=this.videoData.L)!=null&&d.isLive){var G=a.playerType===2?a:p,B=p.videoData.videoId,c=a.videoData.videoId;if(B&&c){d=this.rG;if(d.qoe){var r=d.qoe,w=p.cpn,P=a.cpn,F=G.videoData.n1,v=r.provider.videoData.clientPlaybackNonce,I=r.provider.videoData.videoId,b=P!==v&&c!==I;v=w!==v&&B!==I;r.reportStats();r.adCpn&&r.adCpn!==w||(r.adCpn=v?w:"",r.wj=v?B:"",r.adFormat=v?F:void 0,qyo(r,n?4:S?2:0,P,c,y),r.reportStats(),r.adCpn=b?P:"",r.wj=b?c:"",r.adFormat=b?F:void 0, qyo(r,n?5:S?3:1,w,B,l),r.reportStats())}l=p.cpn;if(d.U.has(l)){if(S=d.U.get(l),jO(S,!0).send(),tp(S),l!==d.provider.videoData.clientPlaybackNonce){ce(S);var O;(O=d.L)==null||CT(O);d.U.delete(l)}}else d.J5=d.provider.videoData.clientPlaybackNonce,d.J5&&d.L&&(d.U.set(d.J5,d.L),jO(d.L).send(),tp(d.L));O=a.cpn;G=G.videoData;y-=this.CE();if(d.U.has(O)){y=d.U.get(O);var m=y.U&&isNaN(y.W)?We(y):NaN;y=vD(y,!1);isNaN(m)||(y.K=m);y.send()}else y=$UM(d,d.provider,G,y),d.U.set(O,y),DL(y,new g.VM(Nn(new g.Z5, 8),new g.Z5)),y.v8(),(m=d.L)==null||tp(m);d.J5=O;if(this.D("html5_unify_csi_server_stitched_transition_logging")){if(d=this.QQ,m=a.cpn,y=this.videoData.clientPlaybackNonce,a=a.videoData,p=(p.cpn===y?"video":"ad")+"_to_"+(m===y?"video":"ad"),p!=="video_to_ad"){y=p==="ad_to_video"?void 0:a;G=y==null?void 0:y.uq;O={};if(a==null?0:a.G)O.cttAuthInfo={token:a.G,videoId:a.videoId};V&&(O.startTime=V);iH(p,O);var H,Y,N;V={targetVideoId:(H=a==null?void 0:a.videoId)!=null?H:"empty_video",targetCpn:m,adVideoId:(Y= y==null?void 0:y.videoId)!=null?Y:"empty_video",adClientPlaybackNonce:(N=G==null?void 0:G.cpn)!=null?N:y==null?void 0:y.clientPlaybackNonce};G&&(V.adBreakType=G.adBreakType,V.adType=G.adType);g.Bs(V,p);Pc(d,z,p)}}else H=this.QQ,N=this.videoData.clientPlaybackNonce,Y=a.videoData,N=(p.cpn===N?"video":"ad")+"_to_"+(a.cpn===N?"video":"ad"),p={},Y.G&&(p.cttAuthInfo={token:Y.G,videoId:Y.videoId}),V&&(p.startTime=V),iH(N,p),g.Bs({targetVideoId:Y.videoId,targetCpn:a.cpn,isSsdai:!0},N),V||Pc(H,z,N)}}else g.JK(this.logger, 360717806,"SSTEvent for nonSS")}; g.L.i6=function(){var p=this.TR,a=p.Zp;p.Zp=[];return a}; g.L.Er=function(p){this.videoData.Hv=!0;this.w$(new g.mm("sabr.fallback",p));this.EU(!0)}; g.L.AY=function(p,a){this.videoData.uF=!0;if(a===void 0||a)this.w$(new g.mm("qoe.restart",p)),this.EU(!0)}; g.L.aJ=function(p){this.jl("sdai",{aftimeout:p});this.w$(new g.mm("ad.fetchtimeout",{timeout:p}))}; g.L.Mz=function(p,a){this.jl("timelineerror",p);p=new g.mm("dai.timelineerror",p);a?this.Ne("dai.timelineerror",1,"RETRYABLE_ERROR",qp(p.details)):this.w$(p)}; g.L.Ho=function(){return g.US(this.rG.provider)}; g.L.getPlayerSize=function(){return this.mV.getPlayerSize()}; g.L.W9=function(){return this.mV.W9()}; g.L.f0=function(){return this.QQ}; g.L.M8=function(){return this.TR.M8()}; g.L.getVolume=function(){return this.TR.getVolume()}; g.L.Xx=function(){return this.TR.Xx()}; g.L.isMuted=function(){return this.TR.isMuted()}; g.L.zY=function(){return this.TR.zY()}; g.L.L4=function(){this.hd=!0}; g.L.D=function(p){return this.Y.D(p)}; g.L.RQ=function(){return this.Y.RQ()}; g.L.f_=function(p,a,l,y,S){this.jl("xvt",{m:p,g:a?1:0,tt:l?1:0,np:y?1:0,c:S})}; g.L.qz=function(){var p;(p=this.loader)==null||p.resume()}; g.L.q9=function(){return g.rW(this.EV,"ad")}; g.L.qJ=function(){var p=this.getCurrentTime(),a=p-this.Jg();var l=this.mediaElement?Xw(this.mediaElement.Vh()):0;l=Math.floor(Math.max(l-a,0))+100;var y;return((y=this.loader)==null?0:y.qJ(a,l))?(this.jl("sdai",{skipad:1,ct:a.toFixed(3),adj:l.toFixed(3)}),gQ(this.videoData)&&this.loader.seek(a+l,{seekSource:89,JP:"videoplayer_skipServerStitchedAd"}),pZM(this.GR,p),!0):!1}; g.L.ao=function(){return this.Y.ao()}; g.L.Ir=function(){if(this.D("html5_generate_content_po_token"))return this.videoData.b$||"";this.TR.xJ();return this.Y.rP||""}; g.L.XO=function(){if(this.videoData.videoId)return this.videoData.fP}; g.L.K1=function(){return this.videoData.videoId}; g.L.Ld=function(){return this.TR.ND}; g.L.Gv=function(){return this.m0}; g.L.i4=function(){return this.TR.i4()}; g.L.Qp=function(p,a,l){this.ju(Nn(this.playerState,16,l));this.GR.Qp(p,a)}; g.L.prefetchKeyPlay=function(p,a){var l;(l=this.loader)==null||l.prefetchKeyPlay(p,a)}; g.L.x9=function(){this.GR.x9()}; g.L.nD=function(p,a){var l=this.D("html5_generate_content_po_token")?this.videoData:void 0;this.TR.nD(p,a,l)}; g.L.Fw=function(p,a){this.rG.Fw(p,a)}; g.L.Mj=function(){return this.rG.Mj()}; g.L.II=function(){return this.videoData.uO}; g.L.B9=function(){return this.TR.B9()}; g.L.jw=function(){return this.TR.jw(this)}; g.L.Cm=function(){this.Nx=!0}; g.L.HR=function(p){var a;(a=this.loader)==null||a.HR(p)};g.A(C4M,QH);g.A(qk,g7);qk.prototype.L=function(p){p&&qO(this,this.B.getLoopVideo());this.B.logVisibility(this.element,p)}; qk.prototype.logClick=function(){this.B.logClick(this.element)}; qk.prototype.onLoopChange=function(p){qO(this,p)}; qk.prototype.S=function(p){this.B.setLoopVideo(p)};g.A(D4Z,QH);g.A(jf,QH);g.L=jf.prototype;g.L.seekToChapterWithAnimation=function(p){var a=this;if(g.Um(this.api)&&!(p<0)){var l=this.api.getVideoData(),y=l.ej;if(y&&p=0)return;a=~a;g.FF(this.items,a,0,p);sc(this.menuItems.element,p.element,a)}p.subscribe("size-change",this.lI,this);this.menuItems.publish("size-change")}; g.L.Uj=function(){IA(this)||this.items[0].focus();return!0}; g.L.jM=function(){this.items[this.items.length-1].focus();return!0}; g.L.DF=function(p){p.unsubscribe("size-change",this.lI,this);this.Gm()||(g.FS(this.items,p),this.menuItems.element.removeChild(p.element),this.menuItems.publish("size-change"))}; g.L.lI=function(){this.menuItems.publish("size-change")}; g.L.focus=function(){for(var p=0,a=0;a1&&g.rK(this)}; g.L.d6=function(){Ptr(this);this.E6&&(Vrr(this),g.Pj(this.element,this.size))}; g.L.fC=function(){var p=this.L.pop();vZ(this,p,this.L[this.L.length-1],!0)}; g.L.i_=function(p){if(!p.defaultPrevented)switch(p.keyCode){case 27:this.Ro();p.preventDefault();break;case 37:this.L.length>1&&this.fC();p.preventDefault();break;case 39:p.preventDefault()}}; g.L.focus=function(){this.L.length&&this.L[this.L.length-1].focus()}; g.L.fz=function(){g.Cl.prototype.fz.call(this);this.U&&this.U.dispose();this.j&&this.j.dispose()};g.A(mO,g.IU);mO.prototype.open=function(p,a){this.initialize(p.items)&&this.qE(a,!!a)}; mO.prototype.initialize=function(p){g.Ti(this.Xz);if(p===void 0||p.length===0)return!1;var a=p.length;p=g.t(p);for(var l=p.next();!l.done;l=p.next())this.Lt(l.value,a--);return!0}; mO.prototype.Lt=function(p,a){p.menuNavigationItemRenderer?g5O(this,p.menuNavigationItemRenderer,a):p.menuServiceItemRenderer&&jTr(this,p.menuServiceItemRenderer,a)};g.A(vx,nm);g.L=vx.prototype;g.L.DY=function(p){p.target!==this.dismissButton.element&&p.target!==this.overflowButton.element&&(this.k8(),this.onClickCommand&&this.B.xv("innertubeCommand",this.onClickCommand))}; g.L.Hf=function(){this.enabled=!1;this.Z.hide()}; g.L.m_=function(){return!!this.L&&this.enabled}; g.L.onVideoDataChange=function(p,a){this.t2(a);if(this.L){this.GS();a:if(!this.isCounterfactual){var l,y,S;this.banner.update({title:(l=this.L)==null?void 0:l.title,subtitle:(y=this.L)==null?void 0:y.subtitle,metadata:(S=this.L)==null?void 0:S.metadataText});var n;this.onClickCommand=g.T((n=this.L)==null?void 0:n.onTap,aU);var V;if(p=g.T((V=this.L)==null?void 0:V.onOverflow,aU))this.G=g.T(p,gBG);var z;if((z=this.L)==null?0:z.thumbnailImage){var d,G;V=((d=this.L)==null?void 0:(G=d.thumbnailImage)== null?void 0:G.sources)||[];if(V.length===0)break a;this.thumbnailImage.update({url:V[0].url})}else{var B;if((B=this.L)==null?0:B.thumbnailIconName){var c;this.thumbnailIcon.update({icon:(c=this.L)==null?void 0:c.thumbnailIconName})}}var r;this.shouldShowOverflowButton=!((r=this.L)==null||!r.shouldShowOverflowButton);var w;this.shouldHideDismissButton=!((w=this.L)==null||!w.shouldHideDismissButton)}var P;this.banner.element.setAttribute("aria-label",((P=this.L)==null?void 0:P.a11yLabel)||"");var F; this.OO=(F=this.L)==null?void 0:F.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;eMG(this)}}; g.L.JgO=function(){this.isVisible=!0;eMG(this)}; g.L.ZxY=function(){this.isVisible=!1;eMG(this)}; g.L.jy=function(){nm.prototype.jy.call(this);this.S&&this.B.logVisibility(this.banner.element,this.isVisible)}; g.L.k8=function(){nm.prototype.k8.call(this,!1);this.S&&this.B.logClick(this.banner.element)}; g.L.Ib=function(p){this.W||(this.W=new mO(this.B),g.E(this,this.W));var a,l;if((a=this.G)==null?0:(l=a.menu)==null?0:l.menuRenderer)this.W.open(this.G.menu.menuRenderer,p.target),p.preventDefault()}; g.L.t2=function(){}; g.L.GS=function(){}; g.L.fz=function(){this.B.lf("suggested_action_view_model");nm.prototype.fz.call(this)};g.A(Px,vx); Px.prototype.t2=function(p){var a,l,y;this.productUpsellSuggestedActionViewModel=g.T((a=p.getWatchNextResponse())==null?void 0:(l=a.playerOverlays)==null?void 0:(y=l.playerOverlayRenderer)==null?void 0:y.suggestedActionViewModel,G61);var S;if((S=this.productUpsellSuggestedActionViewModel)==null?0:S.content){var n;this.L=g.T((n=this.productUpsellSuggestedActionViewModel)==null?void 0:n.content,QO_)}var V,z;if(this.S=!!((V=this.productUpsellSuggestedActionViewModel)==null?0:(z=V.loggingDirectives)==null? 0:z.trackingParams)){var d,G;this.B.setTrackingParams(this.banner.element,((d=this.productUpsellSuggestedActionViewModel)==null?void 0:(G=d.loggingDirectives)==null?void 0:G.trackingParams)||null)}var B;this.isCounterfactual=!((B=this.productUpsellSuggestedActionViewModel)==null||!B.isCounterfactualServing)}; Px.prototype.GS=function(){var p=[],a,l=g.t(((a=this.productUpsellSuggestedActionViewModel)==null?void 0:a.ranges)||[]);for(a=l.next();!a.done;a=l.next()){var y=a.value;y&&(a=Number(y.startTimeMilliseconds),y=Number(y.endTimeMilliseconds),isNaN(a)||isNaN(y)||p.push(new g.nF(a,y,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.B.Kh(p)};g.A(EGr,QH);g.A(g1,QH);g1.prototype.onVideoDataChange=function(p,a){var l=this;if(!rr(a)&&(p==="newdata"&&Am(this),this.L&&p==="dataloaded")){this.L=!1;var y;jD(z0(dj(this.api.C(),(y=this.api.getVideoData())==null?void 0:g.HH(y)),function(S){JCO(l,S)}),function(){l.L=!0})}}; g1.prototype.eE=function(){var p=this;if(g.g5(this.api.C())){var a,l=g.WH(this.api.C(),(a=this.api.getVideoData())==null?void 0:g.HH(a));return z0(wN(l),function(y){var S=CD();vR(S,y);return p.api.eE(S)})}return wN(this.api.eE())};g.A(g.gl,g.CX);g.L=g.gl.prototype;g.L.open=function(){g.K7(this.U6,this.OC)}; g.L.SE=function(p){HiM(this);var a=this.options[p];a&&(a.element.setAttribute("aria-checked","true"),this.setContent(this.Xv(p)),this.U=p)}; g.L.d3=function(p){g.Ti(this.OC);for(var a={},l=!1,y=0;y=0?this.L.playbackRate:1}catch(p){return 1}}; g.L.setPlaybackRate=function(p){this.getPlaybackRate()!==p&&(this.L.playbackRate=p);return p}; g.L.p9=function(){return this.L.loop}; g.L.setLoop=function(p){this.L.loop=p}; g.L.canPlayType=function(p,a){return this.L.canPlayType(p,a)}; g.L.isPaused=function(){return this.L.paused}; g.L.isSeeking=function(){return this.L.seeking}; g.L.isEnded=function(){return this.L.ended}; g.L.LF=function(){return this.L.muted}; g.L.qk=function(p){pxf();this.L.muted=p}; g.L.JH=function(){return this.L.played||fe([],[])}; g.L.Vh=function(){try{var p=this.L.buffered}catch(a){}return p||fe([],[])}; g.L.SA=function(){return this.L.seekable||fe([],[])}; g.L.SB=function(){var p=this.L;return p.getStartDate?p.getStartDate():null}; g.L.getCurrentTime=function(){return this.L.currentTime}; g.L.setCurrentTime=function(p){this.L.currentTime=p}; g.L.getDuration=function(){return this.L.duration}; g.L.load=function(){var p=this.L.playbackRate;try{this.L.load()}catch(a){}this.L.playbackRate=p}; g.L.pause=function(){this.L.pause()}; g.L.play=function(){var p=this.L.play();if(!p||!p.then)return null;p.then(void 0,function(){}); return p}; g.L.w3=function(){return this.L.readyState}; g.L.S2=function(){return this.L.networkState}; g.L.q3=function(){return this.L.error?this.L.error.code:null}; g.L.XF=function(){return this.L.error?this.L.error.message:""}; g.L.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.L instanceof window.HTMLVideoElement&&this.L.getVideoPlaybackQuality)return this.L.getVideoPlaybackQuality();if(this.L){var p=this.L,a=p.webkitDroppedFrameCount;if(p=p.webkitDecodedFrameCount)return{droppedVideoFrames:a||0,totalVideoFrames:p}}return{}}; g.L.Bl=function(){return!!this.L.webkitCurrentPlaybackTargetIsWireless}; g.L.fE=function(){return!!this.L.webkitShowPlaybackTargetPicker()}; g.L.togglePictureInPicture=function(){var p=this.L,a=window.document;window.document.pictureInPictureEnabled?this.L!==a.pictureInPictureElement?p.requestPictureInPicture():a.exitPictureInPicture():Z_r()&&p.webkitSetPresentationMode(p.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.L.aI=function(){var p=this.L;return new g.U1(p.offsetLeft,p.offsetTop)}; g.L.getSize=function(){return g.Wd(this.L)}; g.L.setSize=function(p){g.Pj(this.L,p)}; g.L.getVolume=function(){return this.L.volume}; g.L.setVolume=function(p){pxf();this.L.volume=p}; g.L.QW=function(p){this.W[p]||(this.L.addEventListener(p,this.listener),this.W[p]=this.listener)}; g.L.setAttribute=function(p,a){this.L.setAttribute(p,a)}; g.L.removeAttribute=function(p){this.L.removeAttribute(p)}; g.L.hasAttribute=function(p){return this.L.hasAttribute(p)}; g.L.Tz=RR(61);g.L.Uc=RR(63);g.L.jO=RR(65);g.L.HC=RR(67);g.L.sb=function(){return Kz(this.L)}; g.L.Lc=function(p){g.uD(this.L,p)}; g.L.Lp=function(p){return g.Z1(this.L,p)}; g.L.YR=function(){return g.oh(document.body,this.L)}; g.L.audioTracks=function(){var p=this.L;if("audioTracks"in p)return p.audioTracks}; g.L.fz=function(){for(var p=g.t(Object.keys(this.W)),a=p.next();!a.done;a=p.next())a=a.value,this.L.removeEventListener(a,this.W[a]);LH.prototype.fz.call(this)}; g.L.zP=function(p){this.L.disableRemotePlayback=p};g.A(S0,g.X);g.A(nN,g.X);nN.prototype.show=function(){g.X.prototype.show.call(this);this.pz()}; nN.prototype.hide=function(){g.X.prototype.hide.call(this);this.delay.stop();this.j.stop()}; nN.prototype.pz=function(){var p=(0,g.Ek)(),a=B$F(this.Tm);ch(this.L,a.bandwidth_samples);ch(this.G,a.network_activity_samples);ch(this.U,a.live_latency_samples);ch(this.S,a.buffer_health_samples);var l={};a=g.t(Object.entries(a));for(var y=a.next();!y.done;y=a.next()){var S=g.t(y.value);y=S.next().value;S=S.next().value;this.K[y]!==S&&(l[y]=" "+String(S));this.K[y]=S}this.update(l);p=(0,g.Ek)()-p>25?5E3:500;this.delay.start(p)}; nN.prototype.Z=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.j.start(2E4)};g.A(wHr,QH);g.A(tv,g.D);tv.prototype.L=function(){var p=(0,g.Ek)()-this.startTime;p=pthis.j[p])&&(this.L=p,this.Rz())}; g.L.onCueRangeExit=function(p){var a=RPZ(this,p);a&&this.L===p&&this.api.xv("innertubeCommand",a);h2(this);this.L=void 0}; g.L.pG=function(p){this.U=p}; g.L.Gg=function(){this.Rz();this.U=void 0}; g.L.Rz=function(){if(this.L!==void 0){var p=(p=uY(this,this.L))&&p.onCueRangeEnter?O6(p.onCueRangeEnter):void 0;var a=uY(this,this.L);a:if(a&&a.additionalTrigger){var l=g.t(a.additionalTrigger);for(var y=l.next();!y.done;y=l.next())if(y=y.value,y.type){var S=void 0,n=void 0;if((S=this.Bs[y.type])==null?0:S((n=y.args)!=null?n:{})){l=!0;break a}}l=!1}else l=!0;p&&l&&(this.api.xv("innertubeCommand",p),tIA(this,a),this.j[this.L]!==void 0&&this.j[this.L]++,this.Sl=!0)}}; g.L.fz=function(){this.timelyActions=this.U=this.L=this.videoId=void 0;this.j={};this.PG();h2(this);QH.prototype.fz.call(this)};g.A(RLA,QH);g.A(EI,g7);EI.prototype.j=function(p){this.U(p?2:1)}; EI.prototype.q2=function(){var p=this.B.getPresentingPlayerType();p!==2&&p!==3||!this.L?this.B.D("html5_enable_new_audio_settings_menu")?(p=this.getVoiceBoostState(),p!==1?(p===0?(qO(this,this.S()===2),this.setEnabled(!0)):(qO(this,!1),this.setEnabled(!1)),this.L||(this.U6.Lt(this),this.L=!0)):this.L&&(this.U6.DF(this),this.L=!1)):this.L||(p=this.hasVoiceBoostAudioTrack(),this.setEnabled(p),p=this.S()===2&&p,qO(this,p),this.U6.Lt(this),this.L=!0):(this.L=!1,this.U6.DF(this))}; EI.prototype.fz=function(){this.U6.DF(this);g7.prototype.fz.call(this)};g.A(sK,QH);g.L=sK.prototype;g.L.getVoiceBoostUserPreference=function(){return this.L}; g.L.setVoiceBoostUserPreference=function(p){this.api.jl("vb_set",{pref:p});g.HE("yt-player-voice-boost",p);p!==this.L&&(this.L=p,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Fx(),this.api.GM())}; g.L.hasVoiceBoostAudioTrack=function(){var p,a,l=(p=this.api.getVideoData())==null?void 0:(a=p.U)==null?void 0:a.L;return l?gf(l,function(y){var S;return((S=y.audio)==null?void 0:S.S)===!0}):!1}; g.L.getVoiceBoostState=function(){return this.api.v1(1)}; g.L.updateEnvironmentData=function(){this.api.C().E9=this.L};var eMv=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.A(iV,QH);iV.prototype.fz=function(){this.K&&(g.pA(this.K),this.K=void 0);QH.prototype.fz.call(this)}; iV.prototype.xJ=function(){(this.S?!this.L:this.U)&&ku(this)}; iV.prototype.q0=function(p,a,l){var y=this;if(dNO(p)){var S=l||"";if(this.L)a=Oz(this,S),t7r(p,a);else{var n=new g.rQ;a.push(n.promise);this.W.promise.then(function(){var V=Oz(y,S);t7r(p,V);n.resolve()})}}}; iV.prototype.JG=function(p){var a=this;if(this.S||this.U)p.b$=Oz(this,p.videoId),this.L||(this.j=new tV,this.W.promise.then(function(){a.QQ.Xb("pot_if");p.b$=Oz(a,p.videoId)}))};g.A(g.Ao,g.X);g.Ao.prototype.select=function(){this.api.FT(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.cC||void 0)&&this.api.logClick(this.element)}; g.Ao.prototype.onClick=function(p){if(g.wW(this.api.C())&&this.api.D("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var a=this.suggestion.pC(),l={};g.g2(this.api,l);a=g.C2(a,l);g.ru(a,this.api,p)}else g.dK(p,this.api,this.S,this.suggestion.sessionData||void 0)&&this.select()}; g.Ao.prototype.onKeyPress=function(p){switch(p.keyCode){case 13:case 32:p.defaultPrevented||(this.select(),p.preventDefault())}}; g.Ao.prototype.onVideoDataChange=function(){var p=this.api.getVideoData(),a=this.api.C();this.S=p.S5?!1:a.j};g.A(cP,g.X);cP.prototype.fz=function(){this.hide();g.z1(this.S);g.cX(this.stills);this.stills.length=0;g.X.prototype.fz.call(this)}; cP.prototype.W=function(p){this.U&&this.U(p)}; cP.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var p,a,l,y,S;var n=(((p=this.videoData)==null?0:(a=p.suggestions)==null?0:a.length)?(l=this.videoData)==null?void 0:l.suggestions:((y=this.videoData)==null?0:g.oz(y))?[(S=this.videoData)==null?void 0:g.oz(S)]:[]).slice(0,18);if((p=this.j)&&this.L)if(g.Jh(p),n.length)for(this.stills.length>n.length&&g.cX(this.stills.splice(n.length)),this.stills.length=n.length,a=0;a=0;p--)this.features[p].dispose();this.features.length=0;g.D.prototype.fz.call(this)};$xO.prototype.reset=function(){this.L=this.S=NaN};g.L=Yyf.prototype;g.L.reset=function(){MZ(this.timerName)}; g.L.tick=function(p,a){kC(p,a,this.timerName)}; g.L.Xb=function(p){return dm(p,void 0,this.timerName)}; g.L.jh=function(p){g.Pf(p,void 0,this.timerName)}; g.L.infoGel=function(p){g.Bs(p,this.timerName)};g.A(XE,g.qu);g.L=XE.prototype;g.L.nO=function(p){return this.loop||!!p||this.index+1=0}; g.L.setShuffle=function(p){this.shuffle=p;p=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var a=0;a0)||Z4(this,1,!0)}; g.L.iV=function(){this.G=!0;this.L.ME(this.W);this.W=this.L.J(document,"mouseup",this.iD)}; g.L.iD=function(){this.G=!1;Z4(this,8,!1);this.L.ME(this.W);this.W=this.L.J(this.target,"mousedown",this.iV)}; g.L.ZL=function(p){if(p=(p=p.changedTouches)&&p[0])this.Bs=p.identifier,this.L.ME(this.Z),this.Z=this.L.J(this.target,"touchend",this.ZB,void 0,!0),Z4(this,1024,!0)}; g.L.ZB=function(p){if(p=p.changedTouches)for(var a=0;a1280||S>720)if(a=y.Gy("maxresdefault.jpg"))break;if(n>640||S>480)if(a=y.Gy("maxresdefault.jpg"))break;if(n>320||S>180)if(a=y.Gy("sddefault.jpg")||y.Gy("hqdefault.jpg")||y.Gy("mqdefault.jpg"))break;if(a=y.Gy("default.jpg"))break}g.Ry(p)&&(p=new Image,p.addEventListener("load", function(){P9$()}),p.src=a?a:"",this.api.f0().tick("ftr")); this.j.style.backgroundImage=a?"url("+a+")":""};g.A(g.vl,g.X);g.vl.prototype.resize=function(){}; g.vl.prototype.S=function(p){var a=this;this.U=!1;FSh(this);var l=p.Dt,y=this.api.C();l!=="GENERIC_WITHOUT_LINK"||y.G?l==="TOO_MANY_REQUESTS"?(y=this.api.getVideoData(),this.setContent(as(this,"TOO_MANY_REQUESTS_WITH_LINK",y.pC(),void 0,void 0,void 0,!1))):l!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||y.G?this.api.C().D("html5_enable_bandaid_error_screen")&&l==="HTML5_SPS_UMP_STATUS_REJECTED"&&!y.G?(y=y.hostLanguage,p="//support.google.com/youtube?p=videoError",y&&(p=g.C2(p,{hl:y})),this.setContent(as(this, "HTML5_SPS_UMP_STATUS_REJECTED",p))):this.api.C().D("enable_adb_handling_in_sabr")&&l==="BROWSER_OR_EXTENSION_ERROR"&&!y.G?(y=y.hostLanguage,p="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",y&&(p=g.C2(p,{hl:y})),this.setContent(as(this,"BROWSER_OR_EXTENSION_ERROR",p))):this.setContent(g.RI(p.errorMessage)):this.setContent(as(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(p=y.hostLanguage,l= "//support.google.com/youtube/?p=player_error1",p&&(l=g.C2(l,{hl:p})),this.setContent(as(this,"GENERIC_WITH_LINK_AND_CPN",l,!0)),y.oo&&!y.j&&V9Z(this,function(n){if(g.dK(n,a.api,!Rh(a.api.C()))){n={as3:!1,html5:!0,player:!0,cpn:a.api.getVideoData().clientPlaybackNonce};var V=a.api;V.EE("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:n});V.isFullscreen()&&V.toggleFullscreen()}})); if(this.U){var S=this.d7("ytp-error-link");S&&(this.api.createClientVe(S,this,216104),this.api.logVisibility(S,!0),V9Z(this,function(){a.api.logClick(S)}))}}; var Tv_=/([^<>]+)<\/a>/;g.A(UV,g.X);UV.prototype.n0=function(p,a,l){l=l===void 0?!1:l;switch(a){case 1:Xg(this,p,this.U,l);break;case 2:Xg(this,p,this.j,l);break;case 3:Xg(this,p,this.L,l);break;case 4:Xg(this,p,this.S,l)}};g.A(Iy,g.X);g.L=Iy.prototype;g.L.onClick=function(p){this.innertubeCommand?(this.B.xv("innertubeCommand",this.innertubeCommand),p.preventDefault()):g.dK(p,this.B,!0);this.B.logClick(this.element)}; g.L.onVideoDataChange=function(p,a){j2E(this,a);this.qe&&Nzv(this,this.qe)}; g.L.ob=function(p){var a=this.B.getVideoData();this.videoId!==a.videoId&&j2E(this,a);this.L&&Nzv(this,p.state);this.qe=p.state}; g.L.qE=function(){this.fade.show();this.B.publish("paidcontentoverlayvisibilitychange",!0);this.B.logVisibility(this.element,!0)}; g.L.Ro=function(){this.fade.hide();this.B.publish("paidcontentoverlayvisibilitychange",!1);this.B.logVisibility(this.element,!1)};g.A(KW,g.X);KW.prototype.hide=function(){this.L.stop();this.message.style.display="none";g.X.prototype.hide.call(this)}; KW.prototype.onStateChange=function(p){this.cZ(p.state)}; KW.prototype.cZ=function(p){if(g.h(p,128)||this.api.Gv())var a=!1;else{var l;a=this.api.D("web_watch_enable_multiview_manager")&&((l=this.api.getVideoData())==null?0:rr(l))?!1:g.h(p,16)||g.h(p,1)?!0:!1}a?this.L.start():this.hide()}; KW.prototype.S=function(){this.message.style.display="block"};g.A(uq,g.Cl);uq.prototype.onMutedAutoplayChange=function(p){this.S&&(p?(AWO(this),this.qE()):(this.L&&this.logClick(),this.Ro()))}; uq.prototype.XP=function(p){this.api.isMutedByMutedAutoplay()&&g.mj(p,2)&&this.Ro()}; uq.prototype.onClick=function(){this.api.unMute();this.logClick()}; uq.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.A(g.t9,g.hm);g.L=g.t9.prototype;g.L.init=function(){var p=this.api,a=p.getPlayerStateObject();this.GG=p.getPlayerSize();this.ju(a);this.YS();this.VQ();this.api.publish("basechromeinitialized",this);this.bB()&&this.api.publish("standardControlsInitialized")}; g.L.onVideoDataChange=function(p,a){var l=this.oe!==a.videoId;if(l||p==="newdata")p=this.api,p.isFullscreen()||(this.GG=p.getPlayerSize());l&&(this.oe=a.videoId,l=this.OQ,l.QY=3E3,Z4(l,512,!0),this.YS());this.api.D("web_render_jump_buttons")&&a.showSeekingControls&&(this.Ok=572)}; g.L.DET=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.L.h7=function(){var p=this.api.dh()&&this.api.Gw(),a=this.api.cV();return this.xK||p||this.cJ||a}; g.L.gM=function(){var p=!this.h7();g.JB(this.api.getRootNode(),"ytp-menu-shown",!p)}; g.L.CY=function(p){try{if(!g.oh(this.api.getRootNode(),p))return!1}catch(a){return!1}for(;p&&!Ah(p);)p=p===this.api.getRootNode()?null:p.parentElement||null;return!!p}; g.L.Un=function(p){var a=this.api.getRootNode();g.JB(a,"ytp-autohide",p);g.JB(a,"ytp-autohide-active",!0);this.Zi.start(p?250:100);p&&(this.uh=!1,g.b6(a,"ytp-touch-mode"));this.PY=!p;this.api.Yx(!p);this.api.D("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",p)}; g.L.Fc=function(){var p=this.api.getRootNode();g.JB(p,"ytp-autohide-active",!1)}; g.L.vyI=function(){this.p$=!0}; g.L.k99=function(p){if(this.api.C().D("player_doubletap_to_seek")||this.api.C().K)this.p$=!1,this.IC&&this.ME(this.IC),this.Bb===0&&hG(this,p)?(this.Jp(),this.He.start(),this.IC=this.J(this.api.Fu(),"touchmove",this.vyI,void 0,!0)):this.He.stop();war(this)&&hG(this,p)&&!this.api.C().K&&O0(this);var a=this.ZA.vW();if(!g.wW(this.api.C())&&YE&&y0(this,p))a&&p.preventDefault();else if(this.uh=!0,g.uD(this.api.getRootNode(),"ytp-touch-mode"),this.OQ.P8(),this.api.C().D("player_doubletap_to_seek")||this.api.C().K)if(a= this.api.getPlayerStateObject(),!(!this.api.NA()||g.h(a,2)&&g.vc(this.api)||g.h(a,64))){a=Date.now()-this.iy;this.Bb+=1;if(a<=350){this.e0=!0;a=this.api.getPlayerSize().width/3;var l=this.api.getRootNode().getBoundingClientRect(),y=p.targetTouches[0].clientX-l.left;l=p.targetTouches[0].clientY-l.top;var S=(this.Bb-1)*10;y>0&&ya*2&&y=650,y=p.width<528;this.OQ.resize();if(this.api.D("web_player_use_screen_width_for_big_mode")){var S,n=p.width>=((S=g.sW(this.api.C().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?S:2E3);g.JB(a,"ytp-big-mode",n)}g.JB(a,"ytp-fullscreen",this.api.isFullscreen());g.JB(a,"ytp-large-width-mode",l);this.api.D("delhi_modern_web_player")?g.JB(a,"ytp-xsmall-width-mode",y):g.JB(a,"ytp-small-mode",this.Yo()); g.JB(a,"ytp-tiny-mode",this.J8());g.JB(a,"ytp-big-mode",this.QT());this.uG&&this.uG.resize(p)}; g.L.XP=function(p){this.ju(p.state);this.YS()}; g.L.On=RR(3);g.L.m4=function(){var p=!!this.oe&&!this.api.bC()&&!this.iI,a=this.api.getPresentingPlayerType()===2,l=this.api.C();if(a)return l=IO(this.api.DN()),p&&(l&&l.player?p=(p=l.player.getVideoData(2))?p.isListed&&!g.zB(l.player.C()):!1:(hF("showInfoBarDuringAd: this is null"),p=!1)),p;a=l.D("web_player_imax_theater_mode")&&this.api.c9()&&!this.api.isInline();return p&&(l.jr||a||this.api.isFullscreen()||l.V4)}; g.L.YS=function(){var p=this.m4();this.ZU!==p&&(this.ZU=p,g.JB(this.api.getRootNode(),"ytp-hide-info-bar",!p))}; g.L.ju=function(p){var a=p.isCued()||this.api.aQ()&&this.api.getPresentingPlayerType()!==3;a!==this.isCued&&(this.isCued=a,this.K$&&this.ME(this.K$),this.K$=this.J(this.api.Fu(),"touchstart",this.k99,void 0,a));var l=this.OQ,y=p.isPlaying()&&!g.h(p,32)||this.api.GT();Z4(l,128,!y);l=this.OQ;y=this.api.getPresentingPlayerType()===3;Z4(l,256,y);l=this.api.getRootNode();g.h(p,2)?y=[sa.ENDED]:(y=[],g.h(p,8)?y.push(sa.PLAYING):g.h(p,4)&&y.push(sa.PAUSED),g.h(p,1)&&!g.h(p,32)&&y.push(sa.BUFFERING),g.h(p, 32)&&y.push(sa.SEEKING),g.h(p,64)&&y.push(sa.UNSTARTED));g.r$(this.Vf,y)||(g.aV(l,this.Vf),this.Vf=y,g.pw(l,y));y=this.api.C();var S=g.h(p,2);a:{var n=this.api.C();var V=n.controlsType;switch(V){case "2":case "0":n=!1;break a}n=V==="3"&&!g.h(p,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:msE(IO(this.api.DN())))||this.api.cV()||g.wW(n)&&this.api.getPresentingPlayerType()===2?!1:!0}g.JB(l,"ytp-hide-controls",!n);g.JB(l,"ytp-native-controls",y.controlsType==="3"&&!a&&!S&&!this.cJ);g.h(p, 128)&&!g.wW(y)?(this.uG||(this.uG=new g.vl(this.api),g.E(this,this.uG),g.uW(this.api,this.uG.element,4)),this.uG.S(p.iN),this.uG.show()):this.uG&&(this.uG.dispose(),this.uG=null)}; g.L.R6=function(){return this.api.dh()&&this.api.Gw()?(this.api.Z$(!1,!1),!0):this.api.bC()?(g.Xx(this.api,!0),!0):!1}; g.L.onMutedAutoplayChange=function(p){this.cJ=p;this.gM()}; g.L.QT=function(){return!1}; g.L.Yo=function(){return!this.QT()&&(this.api.getPlayerSize().width=0&&a.left>=0&&a.bottom>a.top&&a.right>a.left?a:null;a=this.size;p=p.clone();a=a.clone();y&&(V=a,S=5,(S&65)==65&&(p.x=y.right)&&(S&=-2),(S&132)==132&&(p.y=y.bottom)&&(S&=-5),p.xy.right&&(V.width=Math.min(y.right-p.x,n+V.width-y.left),V.width=Math.max(V.width,0))),p.x+V.width>y.right&&S&1&&(p.x=Math.max(y.right-V.width,y.left)),p.yy.bottom&&(V.height=Math.min(y.bottom-p.y,n+V.height-y.top),V.height=Math.max(V.height,0))),p.y+V.height>y.bottom&&S&4&&(p.y=Math.max(y.bottom-V.height,y.top)));y=new g.OS(0,0,0,0);y.left=p.x;y.top=p.y;y.width= a.width;y.height=a.height;g.LL(this.element,new g.U1(y.left,y.top));g.z1(this.S);this.S.J(mz(this),"contextmenu",this.rgl);this.S.J(this.B,"fullscreentoggled",this.onFullscreenToggled);this.S.J(this.B,"pageTransition",this.PM)}; g.L.rgl=function(p){if(!p.defaultPrevented){var a=QW(p);g.oh(this.element,a)||this.Ro();this.B.C().disableNativeContextMenu&&p.preventDefault()}}; g.L.onFullscreenToggled=function(){this.Ro();tbM(this)}; g.L.PM=function(){this.Ro()};g.A(mB,g.X);mB.prototype.onClick=function(){var p=this,a,l,y,S;return g.R(function(n){if(n.L==1)return a=p.api.C(),l=p.api.getVideoData(),y=p.api.getPlaylistId(),S=a.getVideoUrl(l.videoId,y,void 0,!0),g.u(n,eV$(p,S),2);n.S&&UzF(p);p.api.logClick(p.element);g.lD(n)})}; mB.prototype.pz=function(){this.updateValue("icon",{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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 enlace");this.updateValue("tooltip-title","Copiar enlace");this.visible=vKq(this); g.JB(this.element,"ytp-copylink-button-visible",this.visible);this.Kx(this.visible);this.tooltip.wE();this.api.logVisibility(this.element,this.visible&&this.Sl)}; mB.prototype.UC=function(p){g.X.prototype.UC.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; mB.prototype.fz=function(){g.X.prototype.fz.call(this);g.b6(this.element,"ytp-copylink-button-visible")};g.A(OA,g.X);g.L=OA.prototype;g.L.show=function(){g.X.prototype.show.call(this);g.sb(this.S)}; g.L.hide=function(){this.j.stop();this.U=0;this.d7("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.b6(this.element,"ytp-chapter-seek");g.b6(this.element,"ytp-time-seeking");g.X.prototype.hide.call(this)}; g.L.Mk=function(p,a,l,y){this.U=p===this.G?this.U+y:y;this.G=p;var S=p===-1?this.Z:this.K;S&&this.B.logClick(S);this.W?this.S.stop():g.Fe(this.S);this.j.start();this.element.setAttribute("data-side",p===-1?"back":"forward");var n=3*this.B.Fu().getPlayerSize().height;S=this.B.Fu().getPlayerSize();S=S.width/3-3*S.height;this.L.style.width=n+"px";this.L.style.height=n+"px";p===1?(this.L.style.left="",this.L.style.right=S+"px"):p===-1&&(this.L.style.right="",this.L.style.left=S+"px");var V=n*2.5;n=V/ 2;var z=this.d7("ytp-doubletap-ripple");z.style.width=V+"px";z.style.height=V+"px";p===1?(p=this.B.Fu().getPlayerSize().width-a+Math.abs(S),z.style.left="",z.style.right=p-n+"px"):p===-1&&(p=Math.abs(S)+a,z.style.right="",z.style.left=p-n+"px");z.style.top="calc((33% + "+Math.round(l)+"px) - "+n+"px)";if(l=this.d7("ytp-doubletap-ripple"))l.classList.remove("ytp-doubletap-ripple"),l.classList.add("ytp-doubletap-ripple");ySO(this,this.W?this.U:y)}; g.L.pU=function(p,a,l){if(l=l===void 0?null:l){var y=p===-1?this.Z.visualElement:this.K.visualElement;l={seekData:l};var S=g.G2();S&&ke(S,y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",l)}this.U=p===this.G?this.U+a:a;this.G=p;y=this.B.Fu().getPlayerSize();this.W?this.S.stop():g.Fe(this.S);this.j.start();this.element.setAttribute("data-side",p===-1?"back":"forward");g.uD(this.element,"ytp-time-seeking");this.L.style.width="110px";this.L.style.height="110px";l=y.width*.1-15;p===1?this.UO?(this.L.style.right= l+"px",this.L.style.left=""):(this.L.style.right="",this.L.style.left=y.width*.8-30+"px"):p===-1&&(this.UO?(this.L.style.right="",this.L.style.left=l+"px"):(this.L.style.right="",this.L.style.left=y.width*.1-15+"px"));this.L.style.top=y.height*.5+15+"px";ySO(this,this.W?this.U:a)}; g.L.s8=function(p,a,l){l=l===void 0?null:l;g.Fe(this.S);this.j.start();switch(p){case -1:p="back";break;case 1:p="forward";break;default:p=""}this.element.setAttribute("data-side",p);this.L.style.width="0";this.L.style.height="0";g.uD(this.element,"ytp-chapter-seek");this.updateValue("seekText",a);this.updateValue("seekTime","");a=this.d7("ytp-seek-icon");if(l){a:if(l){switch(l){case "PREMIUM_STANDALONE":l=jEA();break a;case "PREMIUM_STANDALONE_CAIRO":l=liE();break a}l=void 0}else l=null;this.updateValue("seekIcon", l);a.style.display="inline-block"}else a.style.display="none"};g.A(kK,nm);g.L=kK.prototype;g.L.VM=function(p){this.Hs||(this.Hs=new mO(this.B),g.E(this,this.Hs));var a,l;if((a=this.yQ)==null?0:(l=a.menu)==null?0:l.menuRenderer)this.Hs.open(this.yQ.menu.menuRenderer,p.target),p.preventDefault()}; g.L.m_=function(){return!!this.L}; g.L.wg=function(){return!!this.L}; g.L.DY=function(p){p.target===this.overflowButton.element?p.preventDefault():(this.O6&&this.B.xv("innertubeCommand",this.O6),this.k8(!1))}; g.L.Hf=function(){this.k8(!0);var p,a;((p=this.L)==null?0:(a=p.bannerData)==null?0:a.dismissedStatusKey)&&this.va.push(this.L.bannerData.dismissedStatusKey);this.B6()}; g.L.Iu=function(){this.B6();Km(this)}; g.L.voY=function(p){var a=this,l;if(p.id!==((l=this.L)==null?void 0:l.identifier)){this.B6();l=g.t(this.Bs);for(var y=l.next();!y.done;y=l.next()){var S=y.value,n=void 0,V=void 0;if((y=(n=S)==null?void 0:(V=n.bannerData)==null?void 0:V.itemData)&&S.identifier===p.id){V=n=void 0;var z=((n=S)==null?void 0:(V=n.bannerData)==null?void 0:V.dismissedStatusKey)||"";if(this.va.includes(z))return;this.L=S;this.banner.element.setAttribute("aria-label",y.accessibilityLabel||"");y.trackingParams&&(this.j=!0, this.B.setTrackingParams(this.badge.element,y.trackingParams));this.show();this.Z.show();iG(this);this.QY.Kx(!y.stayInApp);vMr(this);Te(this);Mo(this);this.O6=g.T(y.onTapCommand,aU);if(S=g.T(y.menuOnTap,aU))this.yQ=g.T(S,gBG);S=void 0;this.banner.update({thumbnail:(S=(y.thumbnailSources||[])[0])==null?void 0:S.url,title:y.productTitle,price:y.priceReplacementText?y.priceReplacementText:y.price,salesOriginalPrice:D9M(this),priceDropReferencePrice:zGE(this),promotionText:Ige(this),priceA11yText:j$F(this), affiliateDisclaimer:y.affiliateDisclaimer,vendor:kn(this)});z=V=n=S=void 0;((S=y)==null?0:(n=S.hiddenProductOptions)==null?0:n.showDropCountdown)&&((V=y)==null?0:(z=V.hiddenProductOptions)==null?0:z.dropTimestampMs)&&(this.Ha=new g.l_(function(){CCM(a)},1E3),this.QY.hide(),this.countdownTimer.show(),CCM(this)); this.B.D("web_player_enable_featured_product_banner_exclusives_on_desktop")&&LAE(this)&&(this.oo=new g.l_(function(){L3F(a)},1E3),L3F(this))}}this.B.getRootNode()&&g.uD(this.B.getRootNode(),"ytp-featured-product-shown")}}; g.L.B6=function(){this.L&&(this.L=void 0,this.Yf(),this.B.getRootNode()&&g.b6(this.B.getRootNode(),"ytp-featured-product-shown"))}; g.L.onVideoDataChange=function(p,a){var l=this;p==="dataloaded"&&Km(this);var y,S,n;p=g.T((y=a.getWatchNextResponse())==null?void 0:(S=y.playerOverlays)==null?void 0:(n=S.playerOverlayRenderer)==null?void 0:n.productsInVideoOverlayRenderer,h$c);this.overflowButton.show();this.dismissButton.hide();var V=p==null?void 0:p.featuredProductsEntityKey;this.trendingOfferEntityKey=p==null?void 0:p.trendingOfferEntityKey;this.Bs.length||(IcZ(this,V),Mo(this));var z;(z=this.EC)==null||z.call(this);this.EC=g.q6.subscribe(function(){IcZ(l, V);Mo(l)})}; g.L.fz=function(){Km(this);vMr(this);Te(this);nm.prototype.fz.call(this)};g.A(ey,g.X);ey.prototype.onClick=function(){this.B.logClick(this.element,this.U);if(this.B.D("embeds_enable_info_panel_dismissal")&&this.L&&this.feedbackToken){var p=this.B.eE();if(p==null?0:Iqo(this.L,p.GJ))O8(p,this.L,{feedbackTokens:[this.feedbackToken]}),this.B.publish("infopaneldetaildismissed")}};g.A(QD,g.Cl);g.L=QD.prototype;g.L.show=function(){g.Cl.prototype.show.call(this);this.B.publish("infopaneldetailvisibilitychange",!0);this.B.logVisibility(this.element,!0);L6M(this,!0)}; g.L.hide=function(){g.Cl.prototype.hide.call(this);this.B.publish("infopaneldetailvisibilitychange",!1);this.B.logVisibility(this.element,!1);L6M(this,!1)}; g.L.getId=function(){return this.U}; g.L.Q9=function(){return this.itemData.length}; g.L.onVideoDataChange=function(p,a){if(a){var l,y,S,n;this.update({title:((l=a.So)==null?void 0:(y=l.title)==null?void 0:y.content)||"",body:((S=a.So)==null?void 0:(n=S.bodyText)==null?void 0:n.content)||""});var V;p=((V=a.So)==null?void 0:V.trackingParams)||null;this.B.setTrackingParams(this.element,p);V=g.t(this.itemData);for(p=V.next();!p.done;p=V.next())p.value.dispose();this.itemData=[];var z;if((z=a.So)==null?0:z.ctaButtons)for(a=g.t(a.So.ctaButtons),z=a.next();!z.done;z=a.next())if(z=g.T(z.value, iFb))z=new ey(this.B,z,this.L),z.Me&&(this.itemData.push(z),z.lT(this.items))}}; g.L.fz=function(){this.hide();g.Cl.prototype.fz.call(this)};g.A(ZLv,g.X);g.L=ZLv.prototype;g.L.onVideoDataChange=function(p,a){LC(this,a);this.qe&&GYe(this,this.qe)}; g.L.hW=function(p){var a=this.B.getVideoData();this.videoId!==a.videoId&&LC(this,a);GYe(this,p.state);this.qe=p.state}; g.L.CK=function(p){(this.U=p)?this.hide():this.L&&!this.isDismissed&&this.show()}; g.L.FS=function(){this.S||this.qE();this.showControls=!0}; g.L.Ck=function(){this.S||this.Ro();this.showControls=!1}; g.L.qE=function(){if(!this.isDismissed){var p,a=(p=this.B)==null?void 0:p.getPlayerSize();p=a.width<380;var l;a=a.height<(((l=this.B)==null?0:l.isEmbedsShortsMode())?400:280);var y,S;(((y=this.B)==null?0:y.getPlayerStateObject().isCued())||((S=this.B)==null?0:g.h(S.getPlayerStateObject(),1024)))&&p&&a||!this.L||this.U||(this.fade.show(),this.B.publish("infopanelpreviewvisibilitychange",!0),this.B.logVisibility(this.element,!0))}}; g.L.Ro=function(){this.L&&!this.U&&(this.fade.hide(),this.B.publish("infopanelpreviewvisibilitychange",!1),this.B.logVisibility(this.element,!1))}; g.L.MDY=function(){this.S=!1;this.showControls||this.Ro()};var l0K={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(l0K).reduce(function(p,a){p[l0K[a]]=a;return p},{}); var ylB={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ylB).reduce(function(p,a){p[ylB[a]]=a;return p},{}); var S$K={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(S$K).reduce(function(p,a){p[S$K[a]]=a;return p},{});var nCW,V2_;nCW=[{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"}];V2_=[{option:0,text:CZ(0)},{option:.25,text:CZ(.25)},{option:.5,text:CZ(.5)},{option:.75,text:CZ(.75)},{option:1,text:CZ(1)}]; g.YI=[{option:"fontFamily",text:"Conjunto de fuentes",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:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:nCW},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:CZ(.5)},{option:-1,text:CZ(.75)},{option:0,text:CZ(1)},{option:1, text:CZ(1.5)},{option:2,text:CZ(2)},{option:3,text:CZ(3)},{option:4,text:CZ(4)}]},{option:"background",text:"Color de fondo",options:nCW},{option:"backgroundOpacity",text:"Opacidad del fondo",options:V2_},{option:"windowColor",text:"Color de la ventana",options:nCW},{option:"windowOpacity",text:"Opacidad de la ventana",options:V2_},{option:"charEdgeStyle",text:"Estilo del borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"Relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de la fuente",options:[{option:.25,text:CZ(.25)},{option:.5,text:CZ(.5)},{option:.75,text:CZ(.75)},{option:1,text:CZ(1)}]}];var Z0W=[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.A(M$M,g.hm);g.L=M$M.prototype; g.L.m8=function(p){p.repeat||(this.U.BT=!1);var a=!1,l=p.keyCode,y=QW(p),S=!p.altKey&&!p.ctrlKey&&!p.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||Z0W.includes(l)),n=!1,V=!1,z=this.api.C();p.defaultPrevented?(S=!1,V=!0):z.Ae&&!this.api.isMutedByEmbedsMutedAutoplay()&&(S=!1);if(l===9)a=!0;else{if(y)switch(l){case 32:case 13:if(y.tagName==="BUTTON"||y.tagName==="A"||y.tagName==="INPUT")a=!0,S=!1;else if(S){var d=y.getAttribute("role");!d||d!=="option"&&d!=="button"&&d.indexOf("menuitem")!==0|| (a=!0,y.click(),n=!0)}break;case 37:case 39:case 36:case 35:a=y.getAttribute("role")==="slider";break;case 38:case 40:d=y.getAttribute("role"),y=l===38?y.previousSibling:y.nextSibling,d==="slider"?a=!0:S&&(d==="option"?(y&&y.getAttribute("role")==="option"&&y.focus(),n=a=!0):d&&d.indexOf("menuitem")===0&&(y&&y.hasAttribute("role")&&y.getAttribute("role").indexOf("menuitem")===0&&y.focus(),n=a=!0))}if(S&&!n)switch(l){case 38:n=Math.min(this.api.getVolume()+5,100);y9(this.nh,n,!1);this.api.setVolume(n); V=n=!0;break;case 40:n=Math.max(this.api.getVolume()-5,0);y9(this.nh,n,!0);this.api.setVolume(n);V=n=!0;break;case 36:this.api.NA()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),V=n=!0);break;case 35:this.api.NA()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),V=n=!0)}}a&&b1(this,!0);(a||V)&&this.OQ.P8();(n||S&&this.handleGlobalKeyDown(l,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code,p.repeat))&&p.preventDefault();z.Z&&(p={keyCode:p.keyCode, altKey:p.altKey,ctrlKey:p.ctrlKey,metaKey:p.metaKey,shiftKey:p.shiftKey,handled:p.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.uC("onKeyPress",p))}; g.L.NT=function(p){var a=p.keyCode;!this.U.gy&&this.handleGlobalKeyUp(a,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code)&&p.preventDefault()}; g.L.handleGlobalKeyUp=function(p,a,l,y,S,n,V){this.api.publish("keyboardserviceglobalkeyup",{keyCode:p,shiftKey:a,ctrlKey:l,altKey:y,metaKey:S,key:n,code:V});a=!1;if(this.U.BT)return a;(n=g.XK(this.api.DN()))&&(n=n.Ma)&&n.E6&&(n.Fr(p),a=!0);switch(p){case 9:b1(this,!0);a=!0;break;case 32:if(this.api.D("web_speedmaster_spacebar_control")&&!this.api.C().Ae){var z,d;p=(z=this.progressBar)==null?void 0:(d=z.S)==null?void 0:d.isEnabled;a=this.It(p)}break;case 39:(this.api.D("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(S||l&&y))&&(lQ?y:l)&&this.api.NA()&&this.api.D("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),z=(z=this.api.getVideoData())?z.ej:[],d=B2o(z,this.api.getCurrentTime()*1E3),d!==-1&&this.L!=null&&(this.L.s8(1,z[d].title),this.api.seekTo(z[d].startTime/1E3,void 0,void 0,void 0,52),a=!0))}return a}; g.L.handleGlobalKeyDown=function(p,a,l,y,S,n,V,z){z||(this.U.BT=!1);var d=!1,G=this.api.C();if(G.Ae&&!this.api.isMutedByEmbedsMutedAutoplay())return d;var B=g.XK(this.api.DN());if(B&&(B=B.Ma)&&B.E6)switch(p){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:d=B.C5(p)}G.G||d||(d=n||String.fromCharCode(p).toLowerCase(),this.S+=d,"awesome".indexOf(this.S)===0||this.api.D("web_player_rtr_ctrls")&&"bday".indexOf(this.S)===0?(d=!0,4===this.S.length&&this.S==="bday"&&this.api.D("web_player_rtr_ctrls")&& (Wsr(this.W),this.OQ.P8()),7===this.S.length&&this.S==="awesome"&&vnM(this.api.getRootNode(),"ytp-color-party")):(this.S=d,d="awesome".indexOf(this.S)===0||"bday".indexOf(this.S)===0));if(!d&&(!this.api.isMutedByEmbedsMutedAutoplay()||Z0W.includes(p))){var c=this.api.getVideoData(),r,w;B=(r=this.progressBar)==null?void 0:(w=r.S)==null?void 0:w.isEnabled;r=c?c.ej:[];w=lQ?y:l;switch(p){case 80:a&&!G.nz&&(bQ(this.nh,y4h(),"Anterior"),this.api.previousVideo(),d=!0);break;case 78:a&&!G.nz&&(bQ(this.nh, Qz(),"Siguiente"),this.api.nextVideo(),d=!0);break;case 74:this.api.NA()&&(this.api.startSeekCsiAction(),this.L?this.api.D("enable_key_press_seek_logging")?(d=dU(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.L.pU(-1,10,d)):this.L.pU(-1,10):bQ(this.nh,{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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),d=!0);break;case 76:this.api.NA()&&(this.api.startSeekCsiAction(),this.L?this.api.D("enable_key_press_seek_logging")?(d=dU(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.L.pU(1,10,d)):this.L.pU(1,10):bQ(this.nh,{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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),d=!0);break;case 37:if(this.api.NA())if(this.api.startSeekCsiAction(),w){if(this.api.D("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(S||l&&y))w=JGF(r,this.api.getCurrentTime()*1E3),w!==-1&&this.L!=null&&(this.L.s8(-1,r[w].title),this.api.seekTo(r[w].startTime/1E3,void 0,void 0,void 0,53),d=!0)}else this.L?this.api.D("enable_key_press_seek_logging")?(d=dU(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.L.pU(-1,5,d)):this.L.pU(-1,5):bQ(this.nh,{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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),d=!0;break;case 39:this.api.NA()&&(this.api.startSeekCsiAction(),w?this.api.D("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.D("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(S||l&&y)||(w=B2o(r,this.api.getCurrentTime()*1E3),w!==-1&&this.L!=null&&(this.L.s8(1,r[w].title),this.api.seekTo(r[w].startTime/1E3,void 0,void 0,void 0,52),d=!0)):(this.L!=null?this.api.D("enable_key_press_seek_logging")?(d=dU(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.L.pU(1,5,d)):this.L.pU(1,5):bQ(this.nh,{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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),d=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),y9(this.nh,this.api.getVolume(),!1)):(this.api.mute(),y9(this.nh,0,!0));d=!0;break;case 32:d=this.api.D("web_speedmaster_spacebar_control")?!this.api.C().nz:this.It(B);break;case 75:d=this.It(B);break;case 190:a?G.enableSpeedOptions&&IlU(this)&&(d=this.api.getPlaybackRate(),this.api.setPlaybackRate(d+.25,!0),xjo(this.nh,!1),d=!0):this.api.NA()&&(this.step(1),d=!0);break;case 188:a? G.enableSpeedOptions&&IlU(this)&&(d=this.api.getPlaybackRate(),this.api.setPlaybackRate(d-.25,!0),xjo(this.nh,!0),d=!0):this.api.NA()&&(this.step(-1),d=!0);break;case 70:Znf(this.api)&&(this.api.toggleFullscreen().catch(function(){}),d=!0); break;case 27:B?(this.progressBar.MB(),d=!0):this.G()&&(d=!0)}if(G.controlsType!=="3")switch(p){case 67:g.YU(this.api.DN())&&(G=this.api.getOption("captions","track"),this.api.toggleSubtitles(),mXq(this.nh,!G||G&&!G.displayName),d=!0);break;case 79:qz(this,"textOpacity");break;case 87:qz(this,"windowOpacity");break;case 187:case 61:qz(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:qz(this,"fontSizeIncrement",!0,!0)}var P;a||l||y||(p>=48&&p<=57?P=p-48:p>=96&&p<=105&&(P=p-96));P!=null&&this.api.NA()&& !this.api.D("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),G=this.api.getProgressState(),this.api.seekTo(P/10*(G.seekableEnd-G.seekableStart)+G.seekableStart,void 0,void 0,void 0,81),d=!0);d&&this.OQ.P8()}this.U.MZ=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:p,shiftKey:a,ctrlKey:l,altKey:y,metaKey:S,key:n,code:V,repeat:z},this.U);this.U.MZ&&(d=!0,this.OQ.P8());return d}; g.L.step=function(p){this.api.NA();if(this.api.getPlayerStateObject().isPaused()){var a=this.api.getVideoData().S;a&&(a=a.video)&&this.api.seekBy(p/(a.fps||30),void 0,void 0,p>0?77:78)}}; g.L.It=function(p){if(!this.api.C().nz){var a;var l,y=(a=this.api.getVideoData())==null?void 0:(l=a.getPlayerResponse())==null?void 0:l.playabilityStatus;if(y){var S;a=((S=g.T(y.miniplayer,lQK))==null?void 0:S.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else a=!1;a&&this.api.xv("onExpandMiniplayer");p?this.progressBar.v0():(p=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.nh.xL(p),p?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.L.fz=function(){g.Fe(this.j);g.hm.prototype.fz.call(this)};g.A(sm,g.X);sm.prototype.pz=function(){var p=this.B.C(),a=p.U||this.B.D("web_player_hide_overflow_button_if_empty_menu")&&this.A3.isEmpty();p=g.wW(p)&&g.Gs(this.B)&&g.h(this.B.getPlayerStateObject(),128);var l=this.B.getPlayerSize();this.visible=this.B.Yo()&&!p&&l.width>=240&&!this.B.getVideoData().S5&&!a&&!this.B.isEmbedsShortsMode();g.JB(this.element,"ytp-overflow-button-visible",this.visible);this.Kx(this.visible);this.visible&&this.B.wE();this.B.logVisibility(this.element,this.visible&&this.Sl)}; sm.prototype.UC=function(p){g.X.prototype.UC.call(this,p);this.B.logVisibility(this.element,this.visible&&p)}; sm.prototype.fz=function(){g.X.prototype.fz.call(this);g.b6(this.element,"ytp-overflow-button-visible")};g.A(kr,g.Cl);g.L=kr.prototype;g.L.NV=function(p){p=QW(p);g.oh(this.element,p)&&(g.oh(this.L,p)||g.oh(this.closeButton,p)||N9(this))}; g.L.Ro=function(){g.Cl.prototype.Ro.call(this);this.B.dA(this.element)}; g.L.show=function(){this.E6&&this.B.publish("OVERFLOW_PANEL_OPENED");g.Cl.prototype.show.call(this);this.element.setAttribute("aria-modal","true");yPo(this,!0)}; g.L.hide=function(){g.Cl.prototype.hide.call(this);this.element.removeAttribute("aria-modal");yPo(this,!1)}; g.L.onFullscreenToggled=function(p){!p&&this.vW()&&N9(this)}; g.L.isEmpty=function(){return this.actionButtons.length===0}; g.L.focus=function(){for(var p=g.t(this.actionButtons),a=p.next();!a.done;a=p.next())if(a=a.value,a.E6){a.focus();break}};g.A(dvf,g.X);dvf.prototype.onClick=function(p){g.dK(p,this.api)&&this.api.playVideoAt(this.index)};g.A(eo,g.Cl);g.L=eo.prototype;g.L.show=function(){g.Cl.prototype.show.call(this);this.L.J(this.api,"videodatachange",this.JK);this.L.J(this.api,"onPlaylistUpdate",this.JK);this.JK()}; g.L.hide=function(){g.Cl.prototype.hide.call(this);g.z1(this.L);this.updatePlaylist(null)}; g.L.JK=function(){this.updatePlaylist(this.api.getPlaylist());this.api.C().U&&(this.d7("ytp-playlist-menu-title-name").removeAttribute("href"),this.S&&(this.ME(this.S),this.S=null))}; g.L.Zn=function(){var p=this.playlist,a=p.author,l=a?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",y={CURRENT_POSITION:String(p.index+1),PLAYLIST_LENGTH:String(p.length)};a&&(y.AUTHOR=a);this.update({title:p.title,subtitle:g.ug(l,y),playlisturl:this.api.getVideoUrl(!0)});a=p.S;if(a===this.U)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[p.index];else{l=g.t(this.playlistData);for(y=l.next();!y.done;y=l.next())y.value.dispose(); l=p.length;this.playlistData=[];for(y=0;y=this.S&&!p.U&&!a.isAd()&&!this.api.isEmbedsShortsMode()}else p=!1;this.visible=p;this.Kx(this.visible);g.JB(this.element,"ytp-search-button-visible",this.visible);g.JB(this.element,"ytp-show-search-title",!this.api.Yo());this.api.logVisibility(this.element,this.visible&&this.Sl)}; vb.prototype.UC=function(p){g.X.prototype.UC.call(this,p);this.api.logVisibility(this.element,this.visible&&p)};g.A(ra,g.X); ra.prototype.trigger=function(p,a,l,y){this.show();if(this.S&&p!==this.S){var S=1;this.U&&(S=S9q(this));Yrv(this,S,!1);cfr(this)}this.S=p;this.j=this.S===-1?this.K:this.Z;p="";a?(this.S===-1&&this.B.getCurrentTime()<=a?this.W=a:this.W+=a,p=(this.S===-1?"\u2212":"+")+" "+this.W):this.W=0;this.updateValue(this.S===-1?"durationBack":"durationForward",p);if(this.L==="hidden"||this.L==="fading-out")a=0,this.L==="fading-out"&&(a=S9q(this),GNO(this)),vgM(this,a),this.L!=="fading-out"&&a4o(this,this.j.querySelector(".ytp-seek-overlay-arrow-persistent")), this.L="fading-in";else if(this.L==="fading-in"||this.L==="lingering")a=this.j.querySelector(".ytp-seek-overlay-duration"),p=g.sW(this.B.C().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,a.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("+p+")"},{offset:1,transform:"scale(1)"}],{duration:184}),GNO(this),this.L==="lingering"&&(this.G.stop(),this.G.start());l&&TxA(this, l,y)}; ra.prototype.Mk=function(p,a,l,y){this.trigger(p,y)}; ra.prototype.pU=function(p,a,l){this.trigger(p,a);l&&(p=p===-1?this.Z.visualElement:this.K.visualElement,l={seekData:l},(a=g.G2())&&ke(a,p,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",l))}; ra.prototype.s8=function(p,a,l){this.trigger(p,void 0,a,l)};g.A(sj,g.X);sj.prototype.onClick=function(){var p=this,a=this.api.C(),l=this.api.getVideoData(this.api.getPresentingPlayerType()),y=this.api.getPlaylistId();a=this.api.D("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):a.getVideoUrl(l.videoId,y,void 0,!0);if(navigator.share)try{var S=navigator.share({title:l.title,url:a});S instanceof Promise&&S.catch(function(n){wFE(p,n)})}catch(n){n instanceof Error&&wFE(this,n)}else this.L.R6(),N9(this.S,this.element,!1); this.api.logClick(this.element)}; sj.prototype.pz=function(){var p=this.api.C(),a=this.api.isEmbedsShortsMode();g.JB(this.element,"ytp-show-share-title",g.wW(p)&&!a);this.L.QT()&&a?(p=(this.api.Fu().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.B8(this.element,"right",p+"px")):a&&g.B8(this.element,"right","0px");this.updateValue("icon",{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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=ic(this);g.JB(this.element,"ytp-share-button-visible",this.visible);this.Kx(this.visible);this.tooltip.wE();this.api.logVisibility(this.element,ic(this)&&this.Sl)}; sj.prototype.UC=function(p){g.X.prototype.UC.call(this,p);this.api.logVisibility(this.element,this.visible&&p)}; sj.prototype.fz=function(){g.X.prototype.fz.call(this);g.b6(this.element,"ytp-share-button-visible")};g.A(Z3,g.Cl);g.L=Z3.prototype;g.L.UL=function(p){p=QW(p);g.oh(this.j,p)||g.oh(this.closeButton,p)||N9(this)}; g.L.Ro=function(){g.Cl.prototype.Ro.call(this);this.tooltip.dA(this.element);this.api.logVisibility(this.L,!1);for(var p=g.t(this.S),a=p.next();!a.done;a=p.next())a=a.value,this.api.hasVe(a.element)&&this.api.logVisibility(a.element,!1)}; g.L.show=function(){var p=this.E6;g.Cl.prototype.show.call(this);this.pz();p||this.api.xv("onSharePanelOpened")}; g.L.uum=function(){this.E6&&this.pz()}; g.L.pz=function(){var p=this;g.uD(this.element,"ytp-share-panel-loading");g.b6(this.element,"ytp-share-panel-fail");var a=this.api.getVideoData(),l=this.api.getPlaylistId()&&this.U.checked;a.getSharePanelCommand&&O8(this.api.eE(),a.getSharePanelCommand,{includeListId:l}).then(function(y){p.Gm()||(g.b6(p.element,"ytp-share-panel-loading"),MqM(p,y))}); a=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",a);this.updateValue("linkText",a);this.updateValue("shareLinkWithUrl",g.ug("Compartir enlace: $URL",{URL:a}));Oq(this.L);this.api.logVisibility(this.L,!0)}; g.L.onFullscreenToggled=function(p){!p&&this.vW()&&N9(this)}; g.L.focus=function(){this.L.focus()}; g.L.fz=function(){g.Cl.prototype.fz.call(this);RWv(this)};g.A(b3M,nm);g.L=b3M.prototype;g.L.fz=function(){XO(this);nm.prototype.fz.call(this)}; g.L.DY=function(p){p.target!==this.dismissButton.element&&(this.k8(!1),this.B.xv("innertubeCommand",this.onClickCommand))}; g.L.Hf=function(){this.Kz=!0;this.k8(!0);this.Yf()}; g.L.Crm=function(p){this.G=p;this.Yf()}; g.L.onVideoDataChange=function(p,a){if(p=!!a.videoId&&this.videoId!==a.videoId)this.videoId=a.videoId,this.Kz=!1,this.w7=!0,this.K=this.Xu=!1,XO(this),jU$(this,!1),this.S=this.L=!1,Zo(this),K9v(this);if(p||!a.videoId)this.UO=this.j=!1;var l,y;if(a==null?0:(l=a.getPlayerResponse())==null?0:(y=l.videoDetails)==null?0:y.isLiveContent)this.JN(!1);else{var S,n,V;a=g.T((S=a.getWatchNextResponse())==null?void 0:(n=S.playerOverlays)==null?void 0:(V=n.playerOverlayRenderer)==null?void 0:V.productsInVideoOverlayRenderer, h$c);this.G=this.enabled=!1;if(a){if(S=a==null?void 0:a.featuredProductsEntityKey){n=g.q6.getState().entities;var z;if((z=ur(n,"featuredProductsEntity",S))==null?0:z.productsData){this.JN(!1);return}}if(!a.text||!a.onClickCommand||!a.timing){this.JN(!1);return}this.enabled=!0;if(!this.j){var d;z=(d=a.badgeInteractionLogging)==null?void 0:d.trackingParams;(this.j=!!z)&&this.B.setTrackingParams(this.badge.element,z||null)}if(!this.UO){var G;if(this.UO=!((G=a.dismissButton)==null||!G.trackingParams)){var B; this.B.setTrackingParams(this.dismissButton.element,((B=a.dismissButton)==null?void 0:B.trackingParams)||null)}}a.isContentForward&&(d=a.productsData,jU$(this,!0),K9v(this),d=NRe(this,d),G=[],d.length>0&&G.push(d[0]),d.length>1&&(B=new g.X({X:"div",T:"ytp-suggested-action-more-products-icon"}),g.E(this,B),G.push(B),G.push.apply(G,g.u0(d.slice(1)))),this.W=new g.X({X:"div",N:G,T:"ytp-suggested-action-content-forward-container"}),g.E(this,this.W),this.t9.element.append(this.W.element));this.text=g.Sw(a.text); var c;if(d=(c=a.dismissButton)==null?void 0:c.a11yLabel)this.OO=g.Sw(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;this.Kh()}JIq(this);iG(this);this.Yf()}}; g.L.m_=function(){return!this.G&&this.enabled&&!this.Kz&&!this.B.Yo()&&!this.eb&&(this.K||this.w7)}; g.L.Th=function(p){nm.prototype.Th.call(this,p);if(this.L||this.S)this.timing&&KR(this.timing.preview)&&(this.L=!1,Zo(this),this.S=!1,Zo(this),this.B.lf("shopping_overlay_preview_collapsed"),this.B.lf("shopping_overlay_preview_expanded"),p=TG(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),KR(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.B.lf("shopping_overlay_expanded"),p.end=this.timing.expanded.endSec*1E3),this.B.Kh([p])), this.Xu=!0,iG(this);Zo(this)}; g.L.JN=function(p){(this.K=p)?(D$(this),iG(this,!1)):(XO(this),this.nz.start());this.Yf()}; g.L.Kh=function(p){var a=this.timing;p=(p===void 0?0:p)+this.B.getCurrentTime();var l=[],y=a.visible,S=a.preview;a=a.expanded;KR(y)&&(Cm(y,p),l.push(TG(y.startSec,y.endSec,"shopping_overlay_visible")));KR(S)&&(Cm(S,p),y=S.startSec+1,l.push(TG(S.startSec,y,"shopping_overlay_preview_collapsed")),l.push(TG(y,S.endSec,"shopping_overlay_preview_expanded")));KR(a)&&(Cm(a,p),l.push(TG(a.startSec,a.endSec,"shopping_overlay_expanded")));this.B.Kh(l)}; g.L.Yf=function(){nm.prototype.Yf.call(this);this.B.getRootNode()&&g.JB(this.B.getRootNode(),"ytp-shopping-pill-shown",this.m_())};g.A(osZ,g.X); osZ.prototype.pz=function(){var p=this.api.C();this.Kx(g.wW(p)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.E6);var a=this.api.getVideoData(),l=!1;this.api.getPresentingPlayerType()===2?l=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Sb&&!!a.profilePicture:g.wW(p)&&(l=!!a.videoId&&!!a.Sb&&!!a.profilePicture&&!a.S5&&!p.U&&!(p.K&&this.api.getPlayerSize().width<200));var y=a.profilePicture;p=g.wW(p)?a.expandedTitle:a.author;y=y===void 0? "":y;p=p===void 0?"":p;l?(this.S!==y&&(this.L.style.backgroundImage="url("+y+")",this.S=y),this.updateValue("channelLogoLabel",g.ug("Foto de $CHANNEL_NAME",{CHANNEL_NAME:p})),g.uD(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.b6(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.L,l&&this.Sl);this.api.logVisibility(this.channelName,l&&this.Sl);this.subscribeButton&&(this.subscribeButton.channelId=a.mK);this.updateValue("expandedTitle",a.expandedTitle)};g.A(lS,g.Cl);lS.prototype.show=function(){g.Cl.prototype.show.call(this);this.L.start()}; lS.prototype.hide=function(){g.Cl.prototype.hide.call(this);this.L.stop()}; lS.prototype.G_=function(p,a){p==="dataloaded"&&((this.yS=a.yS,this.GO=a.GO,isNaN(this.yS)||isNaN(this.GO))?this.S&&(this.B.lf("intro"),this.B.removeEventListener(g.I4("intro"),this.K),this.B.removeEventListener(g.c4("intro"),this.j),this.B.removeEventListener("onShowControls",this.U),this.hide(),this.S=!1):(this.B.addEventListener(g.I4("intro"),this.K),this.B.addEventListener(g.c4("intro"),this.j),this.B.addEventListener("onShowControls",this.U),p=new g.nF(this.yS,this.GO,{priority:9,namespace:"intro"}), this.B.Kh([p]),this.S=!0))};g.A(bZ,g.X);bZ.prototype.onClick=function(){this.B.fE()}; bZ.prototype.pz=function(){var p=!0;g.wW(this.B.C())&&(p=p&&this.B.Fu().getPlayerSize().width>=480);this.Kx(p);p=this.updateValue;var a=this.B.D("delhi_modern_web_player_icons"),l=a?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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"}}]}:{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,V:{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"}}]};a=a?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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"}}]}:{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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"}}]};p.call(this,"icon",this.B.Bl()?l:a)};g.A(Rl,g.X);Rl.prototype.fz=function(){this.L=null;g.X.prototype.fz.call(this)};g.A(YL,g.X);YL.prototype.onClick=function(){this.B.xv("innertubeCommand",this.S)}; YL.prototype.Z=function(){if(this.B.D("delhi_modern_web_player")){var p=this.B.getPlayerSize();p.width&&(this.element.style.maxWidth=p.width*.25+"px")}}; YL.prototype.Xu=function(p){p!==this.G&&(this.update({chapterTitle:p,ariaLabel:p}),this.G=p);p?this.show():this.hide()}; YL.prototype.UO=function(){this.L.disabled=this.S==null;g.JB(this.L,"ytp-chapter-container-disabled",this.L.disabled);this.rq()};g.A(tb,YL);tb.prototype.onClickCommand=function(p){g.T(p,MS)&&this.rq()}; tb.prototype.updateVideoData=function(p,a){var l,y,S;p=g.T((l=a.getWatchNextResponse())==null?void 0:(y=l.playerOverlays)==null?void 0:(S=y.playerOverlayRenderer)==null?void 0:S.decoratedPlayerBarRenderer,vh);l=g.T(p==null?void 0:p.playerBarActionButton,g.az);if(this.B.D("web_player_updated_entrypoint")){this.K=Q2(l==null?void 0:l.text);var n;y=(n=l==null?void 0:l.tooltip)!=null?n:"Ver cap\u00edtulo";this.W.setAttribute("title",y)}this.S=l==null?void 0:l.command;YL.prototype.UO.call(this)}; tb.prototype.rq=function(){var p=this.K,a=this.j.L,l,y=((l=this.B.getLoopRange())==null?void 0:l.type)==="clips";if(a.length>1&&!y){p=this.B.getProgressState().current*1E3;l=jw(a,p);p=a[l].title||"Cap\u00edtulos";if(l!==this.currentIndex||this.U)this.B.xv("innertubeCommand",a[l].onActiveCommand),this.currentIndex=l;this.U=!1}else this.U=!0;YL.prototype.Xu.call(this,p)};g.A(C5,g.YZ);C5.prototype.S=function(){var p;(p=this.element.parentElement)==null||p.classList.contains("ytp-right-controls-left");(this.L=!this.L)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; C5.prototype.isExpanded=function(){return this.L};g.A(RY,g.X);RY.prototype.U=function(p){g.h(p.state,32)?e8W(this,this.api.d4()):this.E6&&(g.h(p.state,16)||g.h(p.state,1))||this.fade.hide()}; RY.prototype.onProgress=function(){var p=this.api.getPlayerStateObject();(g.h(p,32)||g.h(p,16))&&zvh(this)}; RY.prototype.j=function(){this.frameIndex=NaN;zvh(this)}; RY.prototype.hide=function(){this.L&&e8W(this,null);g.X.prototype.hide.call(this)};g.A(qHe,g.X);g.L=qHe.prototype;g.L.onClick=function(){var p=this;if(this.B.C().Sb||this.B.C().K){this.B.logClick(this.element);try{this.B.toggleFullscreen().catch(function(a){p.eW(a)})}catch(a){this.eW(a)}}else N9(this.message,this.element,!0)}; g.L.eW=function(p){String(p).includes("fullscreen error")?g.Mf(p):g.iO(p);this.e$()}; g.L.e$=function(){this.disable();this.message.qE(this.element,!0)}; g.L.zH=function(){mD()===this.B.getRootNode()?this.U.start():(this.U.stop(),this.message&&this.message.hide())}; g.L.Xn=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var p=window.screen.width*.9,a=window.screen.height*.9,l=Math.max(window.outerWidth,window.innerWidth),y=Math.max(window.outerHeight,window.innerHeight);if(l>y!==p>a){var S=l;l=y;y=S}p>l&&a>y&&this.e$()}}; g.L.disable=function(){var p=this;if(!this.message){var a=(Yv(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.Cl(this.B,{X:"div",A9:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:"0"}, N:[a[0],{X:"a",V:{href:"https://support.google.com/youtube/answer/6276924",target:this.B.C().Sl},yY:a[2]},a[4]]},100,!0);this.message.hide();g.E(this,this.message);this.message.subscribe("show",function(l){p.S.gD(p.message,l)}); g.uW(this.B,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.L)();this.L=null}}; g.L.pz=function(){var p=Znf(this.B),a=this.B.C().K&&this.B.getPlayerSize().width<250;this.Kx(p&&!a);this.B.logVisibility(this.element,this.E6)}; g.L.z_=function(p){if(p){var a=g.O9(this.B,"Salir del modo de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir del modo de pantalla completa"});document.activeElement===this.element&&this.B.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(l){g.Mf(l)})}else a=g.O9(this.B,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); p=pqA(this,p);a=this.message?null:a;this.B.C().D("player_tooltip_data_title_killswitch")?this.update({title:a,icon:p}):this.update({"tooltip-title":a,"aria-label":a,icon:p});this.S.ZI().wE()}; g.L.fz=function(){this.message||((0,this.L)(),this.L=null);g.X.prototype.fz.call(this)}; g.L.UC=function(p){g.X.prototype.UC.call(this,p)};g.A(la,g.X);la.prototype.onClick=function(){this.B.logClick(this.element);this.B.seekBy(this.L,!0);var p=this.L>0?1:-1,a=Math.abs(this.L),l=this.B.nC().Bx;l&&l.pU(p,a);this.S.isActive()?this.U=!0:(p=["ytp-jump-spin"],this.L<0&&p.push("backwards"),this.element.classList.add.apply(this.element.classList,g.u0(p)),g.sb(this.S))};g.A(qt,YL);qt.prototype.onClickCommand=function(p){g.T(p,UD1)&&this.rq()}; qt.prototype.updateVideoData=function(){var p,a;this.S=(p=gAf(this))==null?void 0:(a=p.onTap)==null?void 0:a.innertubeCommand;YL.prototype.UO.call(this)}; qt.prototype.rq=function(){var p="",a=this.j.K,l,y=(l=gAf(this))==null?void 0:l.headerTitle;l=y?g.Sw(y):"";var S;y=((S=this.B.getLoopRange())==null?void 0:S.type)==="clips";a.length>1&&!y&&(p=this.B.getProgressState().current*1E3,S=EZo(a,p),p=S!=null?a[S].title:l,S!=null&&S!==this.currentIndex&&(this.B.xv("innertubeCommand",a[S].onActiveCommand),this.currentIndex=S));YL.prototype.Xu.call(this,p)};g.A(Kg,g.X);Kg.prototype.onClick=function(){this.B.xv("onCollapseMiniplayer");this.B.logClick(this.element)}; Kg.prototype.pz=function(){this.visible=!this.B.isFullscreen();this.Kx(this.visible);this.B.logVisibility(this.element,this.visible&&this.Sl)}; Kg.prototype.UC=function(p){g.X.prototype.UC.call(this,p);this.B.logVisibility(this.element,this.visible&&p)};g.A(MP,g.X);MP.prototype.init=function(){this.updateValue("minvalue",this.j);this.updateValue("maxvalue",this.W);this.updateValue("stepvalue",this.K);this.updateValue("slidervalue",this.L);QxM(this,this.L)}; MP.prototype.U=function(){aH(this,Number(this.S.value));this.S.focus()}; MP.prototype.G=function(p){if(!p.defaultPrevented){switch(p.code){case "ArrowDown":p=-this.K;break;case "ArrowUp":p=this.K;break;default:return}aH(this,Math.min(this.W,Math.max(Number((this.L+p).toFixed(2)),this.j)))}};g.A(tW,MP);tW.prototype.onVolumeChange=function(p){if(this.Z)this.Z=!1;else{var a=p.volume;a===0||p.muted?aH(this,0):aH(this,a)}}; tW.prototype.U=function(){MP.prototype.U.call(this);this.UO(this.L)}; tW.prototype.Xu=function(p){var a=-p.deltaY;a=p.deltaMode===WheelEvent.DOM_DELTA_LINE||p.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.Lu(this.L+a,0,100):g.Lu(this.L+g.Lu(a/10,-10,10),0,100);a===0?aH(this,0):aH(this,a);this.UO(a);p.preventDefault();p.stopPropagation()}; tW.prototype.w7=function(p,a){this.Z=!0;p===0||a?this.B.mute():(this.B.isMuted()&&this.B.unMute(),this.B.setVolume(p))};g.A(VCh,g.X);g.A(jy,g.X);g.L=jy.prototype;g.L.lw=function(){if(!this.B.M7()){this.updateValue("dataTooltipOffsetY",-120);var p;(p=this.L)!=null&&$J(p,!0);var a;(a=this.L)!=null&&a.L.stop()}}; g.L.W$=function(){var p;(p=this.L)!=null&&p.L.start()}; g.L.s5=function(p){this.visible=p.width>=300||this.Hs;this.Kx(this.visible);this.B.logVisibility(this.element,this.visible&&this.Sl)}; g.L.AR=function(){this.B.C().t9?this.B.isMuted()?this.B.unMute():this.B.mute():N9(this.message,this.element,!0);this.B.logClick(this.element)}; g.L.Ly9=function(p){if(this.B.C().t9&&this.L)if(p.target===this.U){var a;if(!this.B.M7()||((a=this.L)==null?0:a.isVisible))this.AR();else{var l;(l=this.L)!=null&&$J(l,!0)}}else{var y;(y=this.L)!=null&&$J(y,!0)}else this.AR()}; g.L.onVolumeChange=function(p){this.setVolume(p.volume,p.muted)}; g.L.setVolume=function(p,a){var l=this,y=a?0:p/100;p=y===0?1:p>50?1:0;if(this.Z!==p){var S=this.K;isNaN(S)?XPZ(this,p):rt(this.t9,function(V){XPZ(l,S+(l.Z-S)*V)},250); this.Z=p}y=y===0?1:0;if(this.G!==y){var n=this.w7;isNaN(n)?oQh(this,y):rt(this.Bs,function(V){oQh(l,n+(l.G-n)*V)},250); this.G=y}EDo(this,a)}; g.L.UC=function(p){g.X.prototype.UC.call(this,p);this.B.logVisibility(this.element,this.visible&&p)}; var P1F=["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"],LB$=["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.A(g.SJ,g.X);g.L=g.SJ.prototype;g.L.onStateChange=function(p){this.cZ(p.state)}; g.L.cZ=function(p){var a=g.xV(this.B.getVideoData()),l=!1;p.isOrWillBePlaying()?p=a?4:2:g.h(p,2)?(p=3,l=a):p=1;this.element.disabled=l;if(this.L!==p){a=null;switch(p){case 2:a=g.O9(this.B,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:a="Ver de nuevo";this.update({"data-title-no-tooltip":"Ver de nuevo"});break;case 1:a=g.O9(this.B,"Bot\u00f3n de reproducci\u00f3n","k");this.update({"data-title-no-tooltip":"Bot\u00f3n de reproducci\u00f3n"});break;case 4:a="Detener reproducci\u00f3n en directo", this.update({"data-title-no-tooltip":"Detener reproducci\u00f3n en directo"})}p===3?this.B.C().D("player_tooltip_data_title_killswitch")?this.update({title:a,icon:aEM(this,p)}):this.update({"tooltip-title":a,icon:aEM(this,p)}):(this.B.D("player_tooltip_data_title_killswitch")?this.update({title:a}):this.update({"tooltip-title":a}),(a=aEM(this,p))&&this.L&&this.L!==3?oHE(this.transition,this.element,a):this.updateValue("icon",a));this.tooltip.wE();this.L=p}}; g.L.onVideoDataChange=function(){g.JB(this.element,"ytp-play-button-playlist",g.Gs(this.B))}; g.L.It=function(p){this.B.logClick(this.element);if(this.B.getPlayerStateObject().isOrWillBePlaying())this.B.pauseVideo();else{if(this.B.isMinimized()&&this.B.getPlayerStateObject().isCued()){var a={},l;if((l=this.B.getVideoData())==null?0:l.G)a.cttAuthInfo={token:this.B.getVideoData().G,videoId:this.B.getVideoData().videoId};iH("direct_playback",a);this.B.f0().timerName="direct_playback"}this.B.playVideo()}this.B.isMinimized()&&(p==null?void 0:p.type)==="click"&&this.element.blur()}; g.L.UC=function(p){g.X.prototype.UC.call(this,p)};g.A(g.bG,g.X);g.L=g.bG.prototype;g.L.onVideoDataChange=function(){ff$(this);this.j&&(this.ME(this.j),this.j=null);this.videoData=this.B.getVideoData(1);if(this.playlist=this.B.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.j=this.J(this.B,"progresssync",this.CZ);this.U=PMo(this);ee(this);this.mQ(this.B.Fu().getPlayerSize())}; g.L.mQ=function(p){p=p===void 0?this.B.Fu().getPlayerSize():p;var a,l=((a=this.B.getLoopRange())==null?void 0:a.type)==="clips";a=g.Gs(this.B)||this.L&&g.$9(this.B)&&!this.B.D("web_hide_next_button")||otA(this);var y=!this.L&&p.width<400;p=this.B.D("delhi_modern_web_player_horizontal_volume_controls")&&p.width<640;l=a&&!l&&!y&&!p;this.Kx(l);this.B.logVisibility(this.element,l)}; g.L.onClick=function(p){this.B.logClick(this.element);var a=!0;this.G?a=g.dK(p,this.B):p.preventDefault();a&&(this.L&&this.B.getPresentingPlayerType()===5?this.B.publish("ytoprerollinternstitialnext"):this.L?(OZ(this.B.f0()),this.B.publish("playlistnextbuttonclicked",this.element),this.B.nextVideo(!0)):this.U?this.B.seekTo(0):(OZ(this.B.f0()),this.B.publish("playlistprevbuttonclicked",this.element),this.B.previousVideo(!0)))}; g.L.CZ=function(){var p=PMo(this);p!==this.U&&(this.U=p,ee(this))}; g.L.fz=function(){this.S&&(this.S(),this.S=null);ff$(this);g.X.prototype.fz.call(this)};g.A(fw,g.X);g.L=fw.prototype;g.L.h1=function(p){this.Yu(p.pageX);this.Np(p.pageX+p.deltaX);C$M(this)}; g.L.Yu=function(p){this.UO=p-this.Hs}; g.L.Np=function(p){p-=this.Hs;!isNaN(this.UO)&&this.thumbnails.length>0&&(this.Z=p-this.UO,this.thumbnails.length>0&&this.Z!==0&&(this.U=this.K+this.Z,p=KTf(this,this.U),this.U<=this.L/2&&this.U>=iMF(this)?(this.api.seekTo(p,!1,void 0,void 0,25),g.B8(this.w7,"transform","translateX("+(this.U-this.L/2)+"px)"),je(this,p)):this.U=this.K))}; g.L.FA=function(){this.Xu&&(this.Xu.l2=!0);var p=(0,g.Ek)()-this.r7<300;if(Math.abs(this.Z)<5&&!p){this.r7=(0,g.Ek)();p=this.UO+this.Z;var a=this.L/2-p;this.Yu(p);this.Np(p+a);C$M(this);this.api.logClick(this.W)}C$M(this)}; g.L.mJ=function(){d8(this,this.api.getCurrentTime())}; g.L.play=function(p){this.api.seekTo(KTf(this,this.U),void 0,void 0,void 0,26);this.api.playVideo();p&&this.api.logClick(this.playButton)}; g.L.onExit=function(p){this.api.seekTo(this.nz,void 0,void 0,void 0,63);this.api.playVideo();p&&this.api.logClick(this.dismissButton)}; g.L.VQ=function(p,a){this.Hs=p;this.L=a;d8(this,this.api.getCurrentTime())}; g.L.enable=function(){this.isEnabled||(this.isEnabled=!0,this.nz=this.api.getCurrentTime(),je(this,this.nz),g.JB(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.t9=this.J(this.element,"wheel",this.h1),this.logVisibility(this.isEnabled))}; g.L.disable=function(){this.isEnabled=!1;this.hide();g.JB(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.t9&&this.ME(this.t9);this.logVisibility(this.isEnabled)}; g.L.reset=function(){this.disable();this.j=[];this.QY=!1}; g.L.logVisibility=function(p){this.api.logVisibility(this.element,p);this.api.logVisibility(this.W,p);this.api.logVisibility(this.dismissButton,p);this.api.logVisibility(this.playButton,p)}; g.L.fz=function(){for(;this.S.length;){var p=void 0;(p=this.S.pop())==null||p.dispose()}g.X.prototype.fz.call(this)}; g.A(s1v,g.X);g.A(GE,g.X);g.A(XIE,g.X);g.A(I$,g.X);I$.prototype.gG=function(p){return p==="PLAY_PROGRESS"?this.K:p==="LOAD_PROGRESS"?this.G:p==="LIVE_BUFFER"?this.W:this.U};S7o.prototype.update=function(p,a,l,y){l=l===void 0?0:l;this.width=a;this.j=l;this.L=a-l-(y===void 0?0:y);this.position=g.Lu(p,l,l+this.L);this.U=this.position-l;this.S=this.U/this.L};g.A(rs,g.X);g.A(g.Tb,g.YZ);g.L=g.Tb.prototype; g.L.FE=function(){var p=!1,a=this.api.getVideoData();if(!a)return p;this.api.lf("timedMarkerCueRange");f_(this);for(var l=g.t(a.VY),y=l.next();!y.done;y=l.next()){y=y.value;var S=void 0,n=(S=this.Kz[y])==null?void 0:S.markerType,V=void 0;S=(V=this.Kz[y])==null?void 0:V.markers;if(!S)break;if(n==="MARKER_TYPE_TIMESTAMPS"){p=g.t(S);for(n=p.next();!n.done;n=p.next()){V=n.value;n=new rs;var z=void 0;n.title=((z=V.title)==null?void 0:z.simpleText)||"";n.timeRangeStartMillis=Number(V.startMillis);n.L=Number(V.durationMillis); var d=z=void 0;n.onActiveCommand=(d=(z=V.onActive)==null?void 0:z.innertubeCommand)!=null?d:void 0;Nur(this,n)}zk(this,this.K);p=this.K;n=this.SD;V=[];z=null;for(d=0;dG&&(z.end=G);G=s7v(G,G+c);V.push(G);z=G;n[G.id]=p[d].onActiveCommand}}this.api.Kh(V);a:{p=g.t(S);for(S=p.next();!S.done;S=p.next())if(S.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){p=!1;break a}p=!0}p&&(this.UU= this.Kz[y]);p=!0}else if(n==="MARKER_TYPE_HEATMAP"){y=this.Kz[y];B=G=n=d=z=V=void 0;if(y&&y.markers){S=(n=(B=y.markersMetadata)==null?void 0:(G=B.heatmapMetadata)==null?void 0:G.minHeightDp)!=null?n:0;n=(V=(d=y.markersMetadata)==null?void 0:(z=d.heatmapMetadata)==null?void 0:z.maxHeightDp)!=null?V:60;V=this.L.length;z=null;for(d=0;d=B&&P<=c&&G.push(w)}n>0&&(this.Xu.style.height=n+"px");B=this.j[d];c=G;w=S;var F=n,v=d===0;v=v===void 0?!1:v;sCO(B,F);r=c;P=B.S;v=v===void 0?!1:v;var I=1E3/r.length,b=[];b.push({x:0,y:100});for(var O=0;O0&&(z=G[G.length-1])}g.mo(this)}n=void 0;S=[];if(y=(n=y.markersDecoration)==null?void 0:n.timedMarkerDecorations)for(y=g.t(y),n=y.next();!n.done;n=y.next())n=n.value,d=z=V=void 0,S.push({visibleTimeRangeStartMillis:(V=n.visibleTimeRangeStartMillis)!=null?V:-1,visibleTimeRangeEndMillis:(z= n.visibleTimeRangeEndMillis)!=null?z:-1,decorationTimeMillis:(d=n.decorationTimeMillis)!=null?d:NaN,label:n.label?g.Sw(n.label):""});y=S;this.heatMarkersDecorations=y}}a.df=this.K;g.JB(this.element,"ytp-timed-markers-enabled",p);return p}; g.L.VQ=function(){g.mo(this);ZG(this);zk(this,this.K);if(this.S){var p=g.In(this.element).x||0;this.S.VQ(p,this.G)}}; g.L.Dem=function(){var p=this.api.getVideoData();p&&xv$(this,p)}; g.L.onClickCommand=function(p){if(p=g.T(p,MS)){var a=p.key;p.isVisible&&a&&dg(this,a)}}; g.L.Pfv=function(p){this.api.xv("innertubeCommand",this.SD[p.id])}; g.L.rq=function(){ZG(this);var p=this.api.getCurrentTime();(pthis.clipEnd)&&this.pQ()}; g.L.i_=function(p){if(!p.defaultPrevented){var a=!1;switch(p.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);a=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);a=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);a=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);a=!0;break;case 38:this.api.D("enable_key_press_seek_logging")&&MM(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);a=!0;break;case 40:this.api.D("enable_key_press_seek_logging")&&MM(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),a=!0}a&&p.preventDefault()}}; g.L.G_=function(p,a){this.updateVideoData(a,p==="newdata")}; g.L.QK=function(){this.G_("newdata",this.api.getVideoData())}; g.L.updateVideoData=function(p,a){a=a===void 0?!1:a;var l=!!p&&p.Me();l&&(cA(p)||hU(this)?this.zy=!1:this.zy=p.allowLiveDvr,g.JB(this.api.getRootNode(),"ytp-enable-live-buffer",!(p==null||!cA(p))),xv$(this,p));Be(this,this.api.NA());if(a){if(l){a=p.clipEnd;this.clipStart=p.clipStart;this.clipEnd=a;m1(this);for(th(this,this.UO,this.eb);this.j.length>0;)this.j.pop().dispose();this.heatMarkersDecorations=[];this.va={};var y;(y=this.S)==null||y.reset();ac(this);g.JB(this.api.getRootNode(),"ytp-fine-scrubbing-exp", ov(this))}else this.pQ();this.g4()}if(p){var S;y=((S=this.lM)==null?void 0:S.type)==="clips";if(S=!p.isLivePlayback){S=this.api.getVideoData();a=g.G_v(S);l=tUO(S);var n;S=a!=null||l!=null&&l.length>0||((n=S.PH)==null?void 0:n.length)>0}if(S&&!y){n=this.api.getVideoData();y=g.G_v(n);S=!1;if(y==null?0:y.markersMap){S=this.api.getVideoData();var V;S.Wr=((V=y.visibleOnLoad)==null?void 0:V.key)||S.Wr;V=g.t(y.markersMap);for(y=V.next();!y.done;y=V.next())y=y.value,y.key&&y.value&&(this.va[y.key]=y.value, y.value.onChapterRepeat&&(S.h5Y=y.value.onChapterRepeat));S.Wr!=null&&dg(this,S.Wr);S=!0}var z;if(((z=n.PH)==null?void 0:z.length)>0){z=g.q6.getState().entities;V=g.t(n.PH);for(y=V.next();!y.done;y=V.next()){y=y.value;l=void 0;a=(l=ur(z,"macroMarkersListEntity",y))==null?void 0:l.markersList;var d=l=void 0;if(((l=a)==null?void 0:l.markerType)==="MARKER_TYPE_TIMESTAMPS"||((d=a)==null?void 0:d.markerType)==="MARKER_TYPE_HEATMAP")this.Kz[y]=a}S=this.FE()||S}!S&&(z=tUO(n))&&(iDr(this,z),n.ej=this.L,v1r(this)); ib$(this,null);p.Xy&&this.j.length===0&&(p=p.Xy,z=p.key,p.isVisible&&z&&dg(this,z))}else mAr(this),f_(this)}ZG(this)}; g.L.D4=function(p){this.Z&&!g.h(p.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Z.cancel();var a;((a=this.S)==null?0:a.isEnabled)&&g.h(p.state,8)&&this.api.pauseVideo();p=this.api.getPresentingPlayerType()===2||!this.api.NA()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.JB(this.rP,"ytp-hide-scrubber-button",p)}; g.L.Ah=function(p){var a=!!this.lM!==!!p,l=this.lM;this.lM=p;ib$(this,l);(p==null?void 0:p.type)!=="clips"&&p||(p?(this.updateValue("clipstarticon",Hve()),this.updateValue("clipendicon",Hve()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",XEa()),this.updateValue("clipendicon",nWh()),this.updateValue("clipstarttitle","Ver v\u00eddeo completo"),this.updateValue("clipendtitle","Ver v\u00eddeo completo")),a&&(this.updateVideoData(this.api.getVideoData(), !0),g.mo(this)),m1(this));th(this,this.UO,this.eb)}; g.L.hi7=function(){this.api.publish("progressBarHoverStart")}; g.L.Nqc=function(p,a,l){var y=g.In(this.element),S=h3(this).L,n=l?l.getAttribute("data-tooltip"):void 0,V=l?l.getAttribute("data-position"):void 0,z=l?l.getAttribute("data-offset-y"):void 0;z=z?Number(z):0;V&&(p=M3(this.U,Number(l.getAttribute("data-position")),0)*S+g.In(this.progressBar).x);this.yQ.x=p-y.x;this.yQ.y=a-y.y;p=h3(this);l=wl(this,p);a=0;var d;if((d=this.api.getVideoData())==null?0:cA(d))(d=this.api.getProgressState().seekableEnd)&&l>d&&(l=d,p.position=M3(this.U,d)*h3(this).L),a=this.U.S; hU(this)&&(a=this.U.S);d=n||g.tQ(this.zy?l-this.U.L:l-a);a=p.position+this.QS;l-=this.api.Jg();var G;if((G=this.S)==null||!G.isEnabled)if(this.api.d4()){if(this.L.length>1){G=rl(this,this.yQ.x,!0);if(!this.lM)for(y=0;y1)for(y=0;y0)for(G=this.yQ.x,y=g.t(this.K),S=y.next();!S.done;S=y.next())S=S.value,V=R8(this,S.timeRangeStartMillis/ (this.U.L*1E3),h3(this)),g.JB(S.element,"ytp-timed-marker-hover",V<=G&&V+6>=G);y=this.tooltip.scale;G=this.api.D("delhi_modern_web_player")?67:45;z=(isNaN(z)?0:z)-G*y;this.api.D("web_key_moments_markers")?this.UU?(G=EZo(this.K,l*1E3),G=G!=null?this.K[G].title:""):(G=jw(this.L,l*1E3),G=this.L[G].title):(G=jw(this.L,l*1E3),G=this.L[G].title);G||(z+=16*y);this.tooltip.scale===.6&&(g.Z0(this.api.C())?(z=this.api.Fu().getPlayerSize().height-225,y=this.api.D("delhi_modern_web_player")?70:110,z=G?z+y:z+ y+16):z=G?110:126);y=jw(this.L,l*1E3);this.t9=s2W(this,l,y)?y:s2W(this,l,y+1)?y+1:-1;g.JB(this.api.getRootNode(),"ytp-progress-bar-snap",this.t9!==-1&&this.L.length>1);y=!1;S=g.t(this.heatMarkersDecorations);for(V=S.next();!V.done;V=S.next()){V=V.value;var B=l*1E3;B>=V.visibleTimeRangeStartMillis&&B<=V.visibleTimeRangeEndMillis&&(G=V.label,d=g.tQ(V.decorationTimeMillis/1E3),this.api.D("web_heat_marker_use_current_time")&&(d=g.tQ(wl(this,p))),y=!0)}this.n1!==y&&(this.n1=y,this.api.logVisibility(this.Sa, this.n1));g.JB(this.api.getRootNode(),"ytp-progress-bar-decoration",y);y=160*this.tooltip.scale*2;S=G.length*(this.W?8.55:5.7);S=S<=y?S:y;V=S<160*this.tooltip.scale;y=3;!V&&S/2>p.position&&(y=1);!V&&S/2>this.G-p.position&&(y=2);this.api.C().K&&(z-=10);this.j.length&&this.j[0].Me&&(z-=14*(this.W?2:1),this.r7||(this.r7=!0,this.api.logVisibility(this.Xu,this.r7)));var c;if(ov(this)&&(((c=this.S)==null?0:c.isEnabled)||this.Ps>0)){var r;z-=((r=this.S)==null?0:r.isEnabled)?(this.W?135:90)-this.w7:this.Ps}c= void 0;ov(this)&&!this.api.D("web_player_hide_fine_scrubbing_edu")&&(c="Arrastra hacia arriba para b\u00fasquedas m\u00e1s precisas",this.nz||(this.nz=!0,this.api.logVisibility(this.L1,this.nz)));this.tooltip.gg(a,l,d,!!n,z,G,y,c)}else this.tooltip.gg(a,l,d,!!n,z);g.uD(this.api.getRootNode(),"ytp-progress-bar-hover");b5A(this)}; g.L.mEO=function(){this.g4();g.b6(this.api.getRootNode(),"ytp-progress-bar-hover");this.r7&&(this.r7=!1,this.api.logVisibility(this.Xu,this.r7));this.nz&&(this.nz=!1,this.api.logVisibility(this.L1,this.nz));this.api.D("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.L.FBl=function(p,a){var l=g.In(this.element);this.Kt=p-l.x;ov(this)&&this.S&&(this.S.QY?d8(this.S,this.api.getCurrentTime()):UNO(this.S),this.S.show(),g.JB(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.S.isEnabled));this.M2&&(this.M2.dispose(),this.M2=null);this.Ko=a;this.OY=this.api.getCurrentTime();this.L.length>1&&this.t9!==-1?this.api.seekTo(this.L[this.t9].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(wl(this,h3(this)),!1,void 0,void 0,7);g.uD(this.element,"ytp-drag");(this.ej= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.L.YCO=function(){if(ov(this)&&this.S){var p=(this.W?135:90)-this.w7;this.Ps>=p*.5?(this.S.enable(),d8(this.S,this.api.getCurrentTime()),zAh(this,p)):ac(this)}if(g.h(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var a;if((a=this.S)==null?0:a.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.L.length>1&&this.t9!==-1)this.api.D("html5_enable_progress_bar_slide_seek_logging")&&MM(this,this.OY,this.L[this.t9].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.L[this.t9].startTime/1E3,void 0,void 0,void 0,7);else{p=wl(this,h3(this));this.api.D("html5_enable_progress_bar_slide_seek_logging")&&MM(this,this.OY,p,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(p,void 0,void 0,void 0,7);a=g.t(this.heatMarkersDecorations);for(var l=a.next();!l.done;l=a.next())l=l.value,p*1E3>=l.visibleTimeRangeStartMillis&&p*1E3<=l.visibleTimeRangeEndMillis&& this.api.logClick(this.Sa)}g.b6(this.element,"ytp-drag");this.QY&&(this.Bs.src=this.QY);this.ej&&!g.h(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.L.LOl=function(p,a){var l=this,y=h3(this),S=wl(this,y);this.api.Fu().XW||(y.position>this.Kt+2?this.EC&&(this.Bs.src=this.EC):y.position1);this.Kx(p&&this.B.Fu().getPlayerSize().width>=400);this.B.logVisibility(this.element,this.E6);var a=1;p&&this.isActive()&&(a=2);if(this.L!==a){this.L=a;p=this.B.D("delhi_modern_web_player_icons");switch(a){case 1:this.updateValue("icon",p?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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"}}]}:{X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{X:"path",yL:!0,V:{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", p?{X:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{X:"path",V:{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.gFe())}g.JB(this.element,"ytp-remote-button-active",this.isActive())}}; eR.prototype.S=function(){if(this.B.getOption("remote","quickCast"))this.B.setOption("remote","quickCast",!0);else{var p=this.U6,a=this.element;if(p.vW())p.Ro();else{p.initialize();a:{var l=g.t(p.Xz.items);for(var y=l.next();!y.done;y=l.next())if(y=y.value,y.priority===1){l=y;break a}l=null}l&&(l.open(),p.qE(a));p.qE(a)}}this.B.logClick(this.element)};g.A(Cg,g.X);Cg.prototype.L=function(p){var a=this.B.C(),l=400;a.G?l=300:a.K&&(l=200);p=this.S&&p.width>=l;this.Kx(p);this.B.logVisibility(this.element,p)}; Cg.prototype.U=function(){if(this.U6.E6)this.U6.Ro();else{var p=g.YU(this.B.DN());p&&!p.loaded&&(p.jE("tracklist",{includeAsr:!0}).length||p.load());this.B.logClick(this.element);this.U6.qE(this.element)}}; Cg.prototype.updateBadge=function(){var p=this.B.isHdr(),a=this.B.getPresentingPlayerType(),l=a!==2&&a!==3,y=g.x1(this.B),S=l&&!!g.XK(this.B.DN());a=S&&y.displayMode===1;y=S&&y.displayMode===2;l=(S=a||y)||!l?null:this.B.getPlaybackQuality();g.JB(this.element,"ytp-hdr-quality-badge",p);g.JB(this.element,"ytp-hd-quality-badge",!p&&(l==="hd1080"||l==="hd1440"));g.JB(this.element,"ytp-4k-quality-badge",!p&&l==="hd2160");g.JB(this.element,"ytp-5k-quality-badge",!p&&l==="hd2880");g.JB(this.element,"ytp-8k-quality-badge", !p&&l==="highres");g.JB(this.element,"ytp-3d-badge-grey",!p&&S&&a);g.JB(this.element,"ytp-3d-badge",!p&&S&&y)};g.A(B6,g.gl);g.L=B6.prototype;g.L.pz=function(){var p=this.B.getAvailableAudioTracks();if(p.length>1){this.d3(g.lb(p,this.Lj));this.tracks=g.tg(p,this.Lj,this);this.countLabel.setContent(p.length?" ("+p.length+")":"");this.publish("size-change");p=this.Lj(this.B.getAudioTrack());this.SE(p);if(this.B.D("html5_enable_new_audio_settings_menu")){var a;(a=this.L)!=null&&a.setContent(p.toString())}this.enable(!0)}else{if(this.B.D("html5_enable_new_audio_settings_menu")){var l;(l=this.L)!=null&&l.setContent("")}this.enable(!1)}}; g.L.fq=function(p){g.gl.prototype.fq.call(this,p);this.B.setAudioTrack(this.tracks[p]);this.U6.fC()}; g.L.Lj=function(p){return p.toString()}; g.L.Ft=function(p){this.B.D("html5_enable_new_audio_settings_menu")?this.L&&(p?this.L.Lt(this):this.L.DF(this)):g.gl.prototype.Ft.call(this,p)}; g.L.onClick=function(){this.B.logClick(this.element)};g.A(c6,g.CX);g.L=c6.prototype;g.L.GM=function(){this.B.GM()}; g.L.open=function(){this.OC.Q9()>0&&g.K7(this.U6,this.OC)}; g.L.q2=function(){this.OC.Q9()>0&&this.B.getPresentingPlayerType()!==2&&this.B.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.L.i_=function(p){p.defaultPrevented||(this.open(),p.preventDefault())}; g.L.Lt=function(p){this.OC.Lt(p)}; g.L.DF=function(p){this.OC.DF(p)};g.A(Vx,g7); Vx.prototype.q2=function(){var p=this.B.getPresentingPlayerType();if(p!==2&&p!==3&&g.$9(this.B))this.L||(this.U6.Lt(this),this.L=!0,this.S.push(this.J(this.B,"videodatachange",this.q2)),this.S.push(this.J(this.B,"videoplayerreset",this.q2)),this.S.push(this.J(this.B,"onPlaylistUpdate",this.q2)),this.S.push(this.J(this.B,"autonavchange",this.U)),p=this.B.getVideoData(),this.U(p.autonavState),this.B.logVisibility(this.element,this.L));else if(this.L){this.U6.DF(this);this.L=!1;p=g.t(this.S);for(var a= p.next();!a.done;a=p.next())this.ME(a.value)}}; Vx.prototype.U=function(p){qO(this,p!==1)}; Vx.prototype.onSelect=function(p){this.B.Jr(p?2:1);this.L&&(this.B.logVisibility(this.element,this.L),this.B.logClick(this.element))}; Vx.prototype.fz=function(){this.L&&this.U6.DF(this);g7.prototype.fz.call(this)};g.A(KX,g.CX);KX.prototype.onClick=function(p){p.preventDefault();var a,l;(a=g.Um(this.B))==null||(l=a.K0())==null||l.Ro();var y,S;(y=g.Um(this.B))==null||(S=y.dL())==null||S.qE(p.target)};g.A(dRo,g.gl);g.L=dRo.prototype; g.L.q2=function(){var p=this.B.getPresentingPlayerType();if(p!==2&&p!==3){this.Xu=this.B.uW();var a=this.B.getAvailableQualityLevels();if(this.L){this.S={};p=g.pj(this.B,"getAvailableQualityData",[]);p=g.t(p);for(var l=p.next();!l.done;l=p.next())l=l.value,this.S[l.qualityLabel]=l;p=Object.keys(this.S);a[a.length-1]==="auto"&&p.push("auto");this.w7=new Set(a)}else if(this.j){l=g.pj(this.B,"getAvailableQualityData",[]);p=[];l=g.t(l);for(var y=l.next();!y.done;y=l.next())y=y.value,this.G[y.quality]= y,y.quality&&p.push(y.quality);a[a.length-1]==="auto"&&p.push("auto")}else p=a;g.Pho(this.B)&&this.B.o8()&&p.unshift("missing-qualities");a=this.B.app.qO();l=a.getVideoData();if(!l.S||!l.S.video||l.S.video.qualityOrdinal<1080||l.rg)a=!1;else{y=/^qsa/.test(l.clientPlaybackNonce);var S="r";l.S.id.indexOf(";")>=0&&(y=/^[a-p]/.test(l.clientPlaybackNonce),S="x");y?(a.jl("iqss",{trigger:S},!0),a=!0):a=!1}a&&p.unshift("inline-survey");this.d3(p);a=this.B.getVideoData().cotn?!0:!1;l=this.UO.Dd();l=!g.Z0(this.B.C())|| !(a===void 0?0:a)||!(l===void 0||l);a=this.OC;l=l===void 0?!1:l;a.Xg&&g.JB(a.d7("ytp-panel-footer"),"ytp-panel-hide-footer",l===void 0?!1:l);if(p.length){this.Hq();this.enable(!0);return}}this.enable(!1)}; g.L.Hq=function(){if(this.L){var p=this.B.getPreferredQuality();this.w7.has(p)&&(this.W=this.B.getPlaybackQuality(),this.K=this.B.getPlaybackQualityLabel(),p==="auto"?(this.SE(p),this.setContent(this.Xv(p))):this.SE(this.K))}else p=this.B.getPreferredQuality(),this.options[p]&&(this.W=this.B.getPlaybackQuality(),this.SE(p),p==="auto"&&this.setContent(this.Xv(p)))}; g.L.fq=function(p){if(p!=="missing-qualities"){g.gl.prototype.fq.call(this,p);var a=this.L?this.S[p]:this.G[p];var l=a==null?void 0:a.quality,y=a==null?void 0:a.formatId,S=a==null?void 0:a.paygatedQualityDetails;a=S==null?void 0:S.endpoint;if(S){var n;S=(n=this.options[p])==null?void 0:n.element;this.B.logClick(S)}if(this.L){var V,z;if((V=g.T(a,g.HFM))==null?0:(z=V.popup)==null?0:z.notificationActionRenderer)this.B.xv("innertubeCommand",a);else if(a){this.B.xv("innertubeCommand",a);return}y?this.B.setPlaybackQuality(l, y):this.B.setPlaybackQuality(l)}else{if(this.j){var d,G;if((d=g.T(a,g.HFM))==null?0:(G=d.popup)==null?0:G.notificationActionRenderer)this.B.xv("innertubeCommand",a);else if(a){this.B.xv("innertubeCommand",a);return}}this.B.setPlaybackQuality(p)}this.U6.Ro();this.q2()}}; g.L.open=function(){for(var p=g.t(Object.values(this.options)),a=p.next();!a.done;a=p.next()){a=a.value;var l=void 0;this.B.hasVe((l=a)==null?void 0:l.element)&&(l=void 0,this.B.logVisibility((l=a)==null?void 0:l.element,!0))}g.gl.prototype.open.call(this);this.B.logClick(this.element)}; g.L.QV=function(p,a,l){var y=this;if(p==="missing-qualities")return new g.CX({X:"a",A9:["ytp-menuitem"],V:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.B.C().Sl,tabindex:"0",role:"menuitemradio"},N:[{X:"div",A9:["ytp-menuitem-label"],yY:"{{label}}"}]},a,this.Xv(p));if(p!=="inline-survey"){var S,n=(S=this.L?this.S[p]:this.G[p])==null?void 0:S.paygatedQualityDetails;S=n==null?void 0:n.veType;n=n==null?void 0:n.trackingParams;a=g.gl.prototype.QV.call(this,p,a,l);n?(this.B.createServerVe(a.element, this,!0),this.B.setTrackingParams(a.element,n)):S&&this.B.createClientVe(a.element,this,S,!0);return a}p=[{X:"span",yY:"\u00bfSe ve bien?"}];l=g.t([!0,!1]);n=l.next();for(S={};!n.done;S={ql:void 0},n=l.next())S.ql=n.value,n=new g.X({X:"span",T:"ytp-menuitem-inline-survey-response",N:[S.ql?vOh():goO()],V:{tabindex:"0",role:"button"}}),n.listen("click",function(V){return function(){var z=y.B.app.qO();z.jl("iqsr",{tu:V.ql});z.getVideoData().rg=!0;y.U6.Ro();y.q2()}}(S)),p.push(n); return new g.CX({X:"div",T:"ytp-menuitem",V:{"aria-disabled":"true"},N:[{X:"div",A9:["ytp-menuitem-label"],N:p}]},a)}; g.L.Xv=function(p,a){a=a===void 0?!1:a;if(p==="missing-qualities")return{X:"div",yY:"\u00bfFalta alguna opci\u00f3n?"};if(p==="inline-survey")return"";var l=this.j||this.L?[SHf(this,p,a,!1)]:[Gpq(this,p)];var y=this.B.getPreferredQuality();a||y!=="auto"||p!=="auto"||(l.push(" "),this.L?l.push(SHf(this,this.K,a,!0,["ytp-menu-label-secondary"])):this.j?l.push(SHf(this,this.W,a,!0,["ytp-menu-label-secondary"])):l.push(Gpq(this,this.W,["ytp-menu-label-secondary"])));return{X:"div",N:l}};g.A(af,MP);af.prototype.U=function(){MP.prototype.U.call(this);this.Z&&Ba(this)}; af.prototype.Bs=function(){this.UO()}; af.prototype.w7=function(){this.B.setPlaybackRate(this.L,!0)}; af.prototype.G=function(p){MP.prototype.G.call(this,p);this.UO();Ba(this);p.preventDefault()};g.A(C4,g.X);g.L=C4.prototype;g.L.init=function(){this.Ht(this.L);this.updateValue("minvalue",this.S);this.updateValue("maxvalue",this.U)}; g.L.LS=function(p){if(!p.defaultPrevented){switch(p.keyCode){case 37:case 40:var a=-this.K;break;case 39:case 38:a=this.K;break;default:return}this.Ht(this.L+a);p.preventDefault()}}; g.L.N_=function(p){var a=this.L;a+=(p.deltaX||-p.deltaY)<0?-this.Z:this.Z;this.Ht(a);p.preventDefault()}; g.L.Yh=function(p){p=(p-g.In(this.j).x)/this.UO*this.range+this.S;this.Ht(p)}; g.L.Ht=function(p,a){a=a===void 0?"":a;p=g.Lu(p,this.S,this.U);a===""&&(a=p.toString());this.updateValue("valuenow",p);this.updateValue("valuetext",a);this.Xu.style.left=(p-this.S)/this.range*(this.UO-this.QY)+"px";this.L=p}; g.L.focus=function(){this.t9.focus()};g.A(NW,C4);NW.prototype.w7=function(){this.B.setPlaybackRate(this.L,!0)}; NW.prototype.Ht=function(p){C4.prototype.Ht.call(this,p,Mz(this,p).toString());this.W&&(mR(this),this.Bs())}; NW.prototype.updateValues=function(){var p=this.B.getPlaybackRate();Mz(this,this.L)!==p&&(this.Ht(p),mR(this))};g.A(uPv,g.YZ);uPv.prototype.focus=function(){this.L.focus()};g.A(BFA,P5);g.A(rDE,g.gl);g.L=rDE.prototype;g.L.Xv=function(p){return p==="1"?"Normal":p.toLocaleString()}; g.L.pz=function(){var p,a=(p=this.B.getVideoData())==null?void 0:p.vy();p=this.B.getPresentingPlayerType(a);this.enable(p!==2&&p!==3);UcZ(this)}; g.L.d3=function(p){g.gl.prototype.d3.call(this,p);this.K&&this.K.S.focus()}; g.L.Ft=function(p){g.gl.prototype.Ft.call(this,p);p?(this.Xu=this.J(this.B,"onPlaybackRateChange",this.onPlaybackRateChange),UcZ(this),ETo(this,this.B.getPlaybackRate())):(this.ME(this.Xu),this.Xu=null)}; g.L.onPlaybackRateChange=function(p){var a=this.B.getPlaybackRate();!this.j&&this.UO.includes(a)||s_h(this,a);ETo(this,p)}; g.L.QV=function(p,a,l){return p===this.L&&gfE(this.B)?g.gl.prototype.QV.call(this,p,a,l,{X:"div",T:"ytp-speed-slider-menu-footer",N:[this.K]}):p===this.S&&cDM(this.B,this.w7)?siv(this,p,a,l):g.gl.prototype.QV.call(this,p,a,l)}; g.L.fq=function(p){g.gl.prototype.fq.call(this,p);p===this.S?(this.B.logClick(this.G.element),this.B.xv("innertubeCommand",this.w7)):p===this.L?this.B.setPlaybackRate(this.W,!0):this.B.setPlaybackRate(Number(p),!0);(!gfE(this.B)||p!==this.L&&p!==this.S)&&this.U6.fC()}; g.L.fY=function(p){var a=p===this.L;this.j=!1;a&&s3(this.B)&&!gfE(this.B)?(p=new BFA(this.B),g.K7(this.U6,p)):g.gl.prototype.fY.call(this,p)};g.A(JWf,g.gl);g.L=JWf.prototype;g.L.SE=function(p){g.gl.prototype.SE.call(this,p)}; g.L.kP=function(p){return p.option.toString()}; g.L.getOption=function(p){return this.settings[p]}; g.L.Xv=function(p){return this.getOption(p).text||""}; g.L.fq=function(p){g.gl.prototype.fq.call(this,p);this.publish("settingChange",this.setting,this.settings[p].option)};g.A(v9,g.gH);v9.prototype.t3=function(p){for(var a=g.t(Object.keys(p)),l=a.next();!l.done;l=a.next()){var y=l.value;if(l=this.Qi[y]){var S=p[y].toString();y=!!p[y+"Override"];l.options[S]&&(l.SE(S),l.S.element.setAttribute("aria-checked",String(!y)),l.L.element.setAttribute("aria-checked",String(y)))}}}; v9.prototype.cW=function(p,a){this.publish("settingChange",p,a)};g.A(YO,g.gl);YO.prototype.L=function(p){return p.languageCode}; YO.prototype.Xv=function(p){return this.languages[p].languageName||""}; YO.prototype.fq=function(p){this.publish("select",p);this.B.logClick(this.element);g.rK(this.U6)};g.A(KC,g.gl);g.L=KC.prototype;g.L.pw=function(p){return g.cL(p)?"__off__":p.displayName}; g.L.Xv=function(p){return p==="__off__"?"Desactivados":p==="__translate__"?"Traducir autom\u00e1ticamente":p==="__contribute__"?"A\u00f1adir subt\u00edtulos":p==="__correction__"?"Sugerir correcciones en los subt\u00edtulos":(p==="__off__"?{}:this.tracks[p]).displayName}; g.L.fq=function(p){if(p==="__translate__")this.L.open();else if(p==="__contribute__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();var a=g.ytO(this.B.C(),this.B.getVideoData());g.bO(a)}else if(p==="__correction__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();var l=Uyq(this);NS(this,l);g.gl.prototype.fq.call(this,this.pw(l));var y,S;l=(a=this.B.getVideoData().getPlayerResponse())==null?void 0:(y=a.captions)==null?void 0:(S=y.playerCaptionsTracklistRenderer)== null?void 0:S.openTranscriptCommand;this.B.xv("innertubeCommand",l);this.U6.fC();this.S&&this.B.logClick(this.S)}else{if(p==="__correction__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();a=Uyq(this);NS(this,a);g.gl.prototype.fq.call(this,this.pw(a));var n,V;a=(l=this.B.getVideoData().getPlayerResponse())==null?void 0:(n=l.captions)==null?void 0:(V=n.playerCaptionsTracklistRenderer)==null?void 0:V.openTranscriptCommand;this.B.xv("innertubeCommand",a)}else this.B.logClick(this.element), NS(this,p==="__off__"?{}:this.tracks[p]),g.gl.prototype.fq.call(this,p);this.U6.fC()}}; g.L.pz=function(){var p=this.B.getOptions();p=p&&p.indexOf("captions")!==-1;var a=this.B.getVideoData(),l=a&&a.ED,y,S=!((y=this.B.getVideoData())==null||!g.Dh(y));y={};if(p||l){var n;if(p){var V=this.B.getOption("captions","track");y=this.B.getOption("captions","tracklist",{includeAsr:!0});var z=S?[]:this.B.getOption("captions","translationLanguages");this.tracks=g.tg(y,this.pw,this);S=g.lb(y,this.pw);var d,G;Uyq(this)&&((n=a.getPlayerResponse())==null?0:(d=n.captions)==null?0:(G=d.playerCaptionsTracklistRenderer)== null?0:G.openTranscriptCommand)&&S.push("__correction__");if(z.length&&!g.cL(V)){if((n=V.translationLanguage)&&n.languageName){var B=n.languageName;n=z.findIndex(function(c){return c.languageName===B}); zBA(z,n)}quo(this.L,z);S.push("__translate__")}n=this.pw(V)}else this.tracks={},S=[],n="__off__";S.unshift("__off__");this.tracks.__off__={};l&&S.unshift("__contribute__");this.tracks[n]||(this.tracks[n]=V,S.push(n));this.d3(S);this.SE(n);V&&V.translationLanguage?this.L.SE(this.L.L(V.translationLanguage)):HiM(this.L);p&&this.j.t3(this.B.getSubtitlesUserSettings());this.countLabel.setContent(y&&y.length?" ("+y.length+")":"");this.publish("size-change");this.B.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.L.Sv=function(p){var a=this.B.getOption("captions","track");a=g.j_(a);a.translationLanguage=this.L.languages[p];NS(this,a)}; g.L.cW=function(p,a){if(p==="reset")this.B.resetSubtitlesUserSettings();else{var l={};l[p]=a;this.B.updateSubtitlesUserSettings(l)}B6O(this,!0);this.W.start();this.j.t3(this.B.getSubtitlesUserSettings())}; g.L.pyz=function(p){p||g.Fe(this.W)}; g.L.fz=function(){g.Fe(this.W);g.gl.prototype.fz.call(this)}; g.L.open=function(){g.gl.prototype.open.call(this);this.options.__correction__&&!this.S&&(this.S=this.options.__correction__.element,this.B.createClientVe(this.S,this,167341),this.B.logVisibility(this.S,!0))};g.A(Yg,g.IU);g.L=Yg.prototype; g.L.initialize=function(){if(!this.isInitialized){var p=this.B.C();this.isInitialized=!0;try{this.XZ=new dRo(this.B,this)}catch(l){g.Mf(Error("QualityMenuItem creation failed"))}g.E(this,this.XZ);var a=new KC(this.B,this);g.E(this,a);p.enableSpeedOptions&&(a=new rDE(this.B,this),g.E(this,a));(g.wW(p)||p.G)&&(p.S||p.r7)&&(a=new KX(this.B,this),g.E(this,a));p.Ct&&!p.D("web_player_move_autonav_toggle")&&(a=new Vx(this.B,this),g.E(this,a));p.D("html5_enable_new_audio_settings_menu")?(this.Il=new c6(this.B, this),g.E(this,this.Il)):(p=new B6(this.B,this),g.E(this,p));this.B.publish("settingsMenuInitialized");iQh(this.settingsButton,this.Xz.Q9())}}; g.L.Lt=function(p){this.initialize();this.Xz.Lt(p);iQh(this.settingsButton,this.Xz.Q9())}; g.L.DF=function(p){this.Gm()||(this.E6&&this.Xz.Q9()<=1&&this.hide(),this.Xz.DF(p),iQh(this.settingsButton,this.Xz.Q9()))}; g.L.qE=function(p){this.initialize();this.Xz.Q9()>0&&g.IU.prototype.qE.call(this,p)}; g.L.Ro=function(){this.jY?this.jY=!1:g.IU.prototype.Ro.call(this)}; g.L.show=function(){g.IU.prototype.show.call(this);g.uD(this.B.getRootNode(),"ytp-settings-shown")}; g.L.hide=function(){g.IU.prototype.hide.call(this);g.b6(this.B.getRootNode(),"ytp-settings-shown")}; g.L.JN=function(p){this.B.logVisibility(this.element,p);this.B.publish("settingsMenuVisibilityChanged",p)};g.A(Joe,g.X);g.L=Joe.prototype;g.L.onClick=function(){if(qc(this)&&(this.B.toggleSubtitles(),this.B.logClick(this.element),!this.isEnabled())){var p=!1,a=g.hn().Zy(65);g.Z0(this.B.C())&&a!=null&&(p=!a);p&&this.B.C().D("web_player_nitrate_promo_tooltip")&&this.B.publish("showpromotooltip",this.element)}}; g.L.CfV=function(p){var a,l;(a=g.Um(this.B))==null||(l=a.K0())==null||l.qE(p)}; g.L.isEnabled=function(){var p=this.B.getOption("captions","track");return!(!p||!p.displayName)}; g.L.pz=function(){var p=qc(this),a=300;this.B.C().K&&(a=480);this.B.D("delhi_modern_web_player_icons")&&this.updateValue("icon",$JZ(this));if(this.B.C().G){this.updateValue("title",g.O9(this.B,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.O9(this.B,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var l=p}else{if(p)(l=this.d7("ytp-subtitles-button-icon"))==null||l.setAttribute("fill-opacity","1"),this.B.C().D("player_tooltip_data_title_killswitch")?this.updateValue("title", g.O9(this.B,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.O9(this.B,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.B.D("delhi_modern_web_player_icons")){var y;(y=this.d7("ytp-subtitles-button-icon"))==null||y.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var S;(S=this.d7("ytp-subtitles-button-icon"))==null||S.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"})}l=!0}this.tooltip.wE();l=l&&this.B.Fu().getPlayerSize().width>=a;this.Kx(l);this.B.logVisibility(this.element,l);p?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.L.UC=function(p){g.X.prototype.UC.call(this,p)};g.A(g.Bn,g.X);g.L=g.Bn.prototype;g.L.canShowCountdown=function(){return!mq(this)&&!tG(this)}; g.L.rq=function(){var p=this.api.Fu().getPlayerSize().width,a=this.Z;this.api.C().K&&(a=400);a=p>=a&&(!tG(this)||!g.h(this.api.getPlayerStateObject(),64));this.Kx(a);g.JB(this.element,"ytp-time-display-allow-autohide",a&&p<400);p=this.api.getProgressState();if(a){var l=this.api.getPresentingPlayerType();a=this.api.getCurrentTime(l,!1);this.S&&(a-=p.airingStart);mq(this)&&(a-=this.lM.startTimeMs/1E3);this.canShowCountdown()&&this.U&&(a-=this.api.getDuration(l,!1));var y=g.tQ(a);this.j!==y&&(this.updateValue("currenttime", y),this.j=y);l=mq(this)?(this.lM.endTimeMs-this.lM.startTimeMs)/1E3:this.api.getDuration(l,!1);y=g.tQ(l);this.W!==y&&(this.updateValue("duration",y),this.W=y,a&&(a=g.ug("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.tQ(a,!0),DURATION:g.tQ(l,!0)}),this.updateValue("timeDisplayAriaLabel",a)))}pPo(this,p.isAtLiveHead);sGZ(this,this.api.getLoopRange())}; g.L.onLoopRangeChange=function(p){var a=this.lM!==p;this.lM=p;a&&(this.rq(),Vnf(this))}; g.L.SQI=function(){this.api.setLoopRange(null)}; g.L.uhu=function(){this.U=!this.U;this.rq()}; g.L.onVideoDataChange=function(p,a,l){this.updateVideoData((this.api.C().D("enable_topsoil_wta_for_halftime")||this.api.C().D("enable_topsoil_wta_for_halftime_live_infra"))&&l===2?this.api.getVideoData(1):a);this.rq();Vnf(this)}; g.L.updateVideoData=function(p){this.tB=p.isLivePlayback&&!p.Yv;this.S=cA(p);this.isPremiere=p.isPremiere;var a,l,y;this.liveIndicatorText=(p=(a=p.getWatchNextResponse())==null?void 0:(l=a.playerOverlays)==null?void 0:(y=l.playerOverlayRenderer)==null?void 0:y.liveIndicatorText)?Q2(p):null;g.JB(this.element,"ytp-live",tG(this));this.api.D("delhi_modern_web_player")&&this.d7("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.L.onClick=function(p){p.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.L.fz=function(){this.L&&this.L();g.X.prototype.fz.call(this)};g.A(he,g.X);g.L=he.prototype;g.L.zH=function(){t5f(this)}; g.L.dcz=function(p){JqE(this,p);this.Z&&t5f(this)}; g.L.yx=function(p){if(!p.defaultPrevented){var a=p.keyCode,l=null;a===37?l=this.volume-5:a===39?l=this.volume+5:a===36?l=0:a===35&&(l=100);l!==null&&(l=g.Lu(l,0,100),l===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(l)),p.preventDefault())}}; g.L.Ug=function(p){var a=p.deltaX||-p.deltaY;p.deltaMode?this.api.setVolume(this.volume+(a<0?-10:10)):this.api.setVolume(this.volume+g.Lu(a/10,-10,10));p.preventDefault();var l,y;((l=this.api.C())==null?0:(y=l.getWebPlayerContextConfig())==null?0:y.enableFullscreenComponentsFeature)&&p.stopPropagation()}; g.L.JeV=function(){fc(this,this.L,!0,this.S,this.api.M7());this.UO=this.volume;this.api.isMuted()&&this.api.unMute()}; g.L.XY=function(p){var a=this.U?78:52,l=this.U?18:12;p-=g.In(this.K).x;l=g.Lu((p-l/2)/(a-l),0,1);this.Z&&(l=g.Lu(p/a,0,1));a=l;a=this.api.D("web_player_non_linear_volume_controls")?a<=.25?a/.25*.1:.1+(a-.25)/.75*.9:a;this.api.setVolume(a*100)}; g.L.cem=function(){fc(this,this.L,!1,this.S,this.api.M7());this.volume===0&&(this.api.mute(),this.api.setVolume(this.UO))}; g.L.onVolumeChange=function(p){QR(this,p.volume,p.muted)}; g.L.eL=function(){fc(this,this.L,this.isDragging,this.S,this.api.M7())}; g.L.fz=function(){g.X.prototype.fz.call(this);g.b6(this.G,"ytp-volume-slider-active")};g.A(vn,g.X); vn.prototype.onVideoDataChange=function(){var p=this.api.C();this.VQ();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).S5;this.Kx(this.visible);this.api.logVisibility(this.element,this.visible&&this.Sl);if(this.visible){var a=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",a)}p.U&&(this.L&&(this.ME(this.L),this.L=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.uD(this.element,"no-link")); a=this.api.C();p=this.api.getVideoData();var l="";a.U||(a=g.Mk(a),a.indexOf("www.")===0&&(a=a.substring(4)),l=g.cl(p)?"Ver en YouTube Music":a==="youtube.com"?"Ver en YouTube":g.ug("Ver en $WEBSITE",{WEBSITE:a}));this.api.D("player_tooltip_data_title_killswitch")?this.updateValue("title",l):this.updateValue("tooltip-title",l)}; vn.prototype.onClick=function(p){this.api.D("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var a=this.api.C(),l=this.api.getVideoUrl(!g.lX(p),!1,!0,!0);if(g.wW(a)){var y={};g.wW(a)&&g.pj(this.api,"addEmbedsConversionTrackingParams",[y]);l=g.C2(l,y)}g.ru(l,this.api,p);this.api.D("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; vn.prototype.VQ=function(){var p={X:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},N:[{X:"path",yL:!0,T:"ytp-svg-fill",V:{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 "}}]}, a=28666,l=this.api.getVideoData();this.api.isEmbedsShortsMode()?p={X:"svg",V:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},N:[{X:"path",V:{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.cl(l)&&(p={X:"svg",V:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},N:[{X:"path",V:{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"}},{X:"path",V:{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"}},{X:"path",V:{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"}},{X:"path",V:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{X:"path",V:{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"}},{X:"path",V:{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"}},{X:"path",V:{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"}},{X:"path",V:{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"}},{X:"path",V:{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"}},{X:"path",V:{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"}},{X:"path",V:{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"}},{X:"path",V:{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"}}]},a=216163);g.cl(l)?g.uD(this.element,"ytp-youtube-music-button"):g.b6(this.element,"ytp-youtube-music-button");p.V=Object.assign({},p.V,{"aria-hidden":"true"});this.updateValue("logoSvg",p);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,a,!0)}; vn.prototype.UC=function(p){g.X.prototype.UC.call(this,p);this.api.logVisibility(this.element,this.visible&&p)};g.A(pwr,g.hm);g.L=pwr.prototype;g.L.onProgress=function(){if(this.B.D("web_player_max_seekable_on_ended")||!g.h(this.B.getPlayerStateObject(),2))bq(this.OQ),this.progressBar.rq(),this.Tj.rq()}; g.L.Un=function(){this.Pg();if(bq(this.OQ))this.progressBar.g4();else this.onProgress()}; g.L.fS=function(){this.onProgress();this.Sl.start()}; g.L.Pg=function(){var p;if(p=!this.B.C().S){p=this.progressBar;var a=2*g.GR()*p.G,l=p.U;p=(l.L-l.S)*1E3/p.api.getPlaybackRate()/a<300}p=p&&this.B.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;a=!p;bq(this.OQ)&&(p=a=!1);a?this.w7||(this.w7=this.J(this.B,"progresssync",this.onProgress)):this.w7&&(this.ME(this.w7),this.w7=null);p?this.Sl.isActive()||this.Sl.start():this.Sl.stop()}; g.L.VQ=function(){var p=this.B.QT(),a=this.B.Fu().getPlayerSize(),l=this.B.Fu().XW,y=Tj(this),S=SC$(this),n=Math.max(a.width-y*2,100);if(this.Yv!==a.width||this.Ps!==p||this.B.D("web_player_rtr_ctrls")&&this.zT!==l)this.Yv=a.width,this.Ps=p,this.zT=l,this.S.element.style.width=S+"px",this.S.element.style.left=y+"px",g.tCO(this.progressBar,y,S,p),this.B.ZI().uw=S;l=this.j;n=Math.min(570*(p?1.5:1),n);p=Math.min(413*(p?1.5:1),Math.round((a.height-J8(this))*.82));l.maxWidth=n;l.maxHeight=p;l.d6();this.Pg(); this.yQ&&cUq(this.Kz,a.height)}; g.L.onVideoDataChange=function(){var p=this.B.getVideoData();this.nz.style.background=p.S5?p.ZE:"";this.Xu&&w_M(this.Xu,p.showSeekingControls);this.UO&&w_M(this.UO,p.showSeekingControls)}; g.L.gG=function(){return this.S.element};g.A(Vq,nm);g.L=Vq.prototype;g.L.DY=function(p){p.target!==this.dismissButton.element&&(this.onClickCommand&&this.B.xv("innertubeCommand",this.onClickCommand),this.Hf())}; g.L.Hf=function(){this.enabled=!1;this.Z.hide()}; g.L.onVideoDataChange=function(p,a){p==="dataloaded"&&MCq(this);p=[];var l,y,S,n;if(a=(n=g.T((l=a.getWatchNextResponse())==null?void 0:(y=l.playerOverlays)==null?void 0:(S=y.playerOverlayRenderer)==null?void 0:S.suggestedActionsRenderer,c98))==null?void 0:n.suggestedActions)for(l=g.t(a),y=l.next();!y.done;y=l.next())(y=g.T(y.value,r9c))&&g.T(y.trigger,BWU)&&p.push(y);if(p.length!==0){l=[];p=g.t(p);for(y=p.next();!y.done;y=p.next())if(y=y.value,S=g.T(y.trigger,BWU))n=(n=y.title)?g.Sw(n):"View Chapters", a=S.timeRangeStartMillis,S=S.timeRangeEndMillis,a!=null&&S!=null&&y.tapCommand&&(l.push(new g.nF(a,S,{priority:9,namespace:"suggested_action_button_visible",id:n})),this.suggestedActions[n]=y.tapCommand);this.B.Kh(l)}}; g.L.m_=function(){return this.enabled}; g.L.JN=function(){this.enabled?this.nz.start():D$(this);this.Yf()}; g.L.fz=function(){MCq(this);nm.prototype.fz.call(this)};var Kd={},gG=(Kd.CHANNEL_NAME="ytp-title-channel-name",Kd.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Kd.LINK="ytp-title-link",Kd.SESSIONLINK="yt-uix-sessionlink",Kd.SUBTEXT="ytp-title-subtext",Kd.TEXT="ytp-title-text",Kd.TITLE="ytp-title",Kd);g.A(Y1,g.X);Y1.prototype.onClick=function(p){this.api.logClick(this.element);var a=this.api.C(),l=this.api.getVideoUrl(!g.lX(p),!1,!0);g.wW(a)&&(a={},g.pj(this.api,"addEmbedsConversionTrackingParams",[a]),l=g.C2(l,a));g.ru(l,this.api,p)}; Y1.prototype.pz=function(){var p=this.api.getVideoData(),a=this.api.C();this.updateValue("title",p.title);var l={X:"a",T:gG.CHANNEL_NAME,V:{href:"{{channelLink}}",target:"_blank"},yY:"{{channelName}}"};this.api.C().U?l={X:"span",T:gG.CHANNEL_NAME,yY:"{{channelName}}",V:{tabIndex:"{{channelSubtextFocusable}}"}}:p.Mw&&(l={X:"span",T:gG.SUBTEXT,yY:p.Mw});this.updateValue("subtextElement",l);AyE(this);this.api.getPresentingPlayerType()===2&&(l=this.api.getVideoData(),l.videoId&&l.isListed&&l.author&& l.Sb&&l.profilePicture?(this.updateValue("channelLink",l.Sb),this.updateValue("channelName",l.author),this.updateValue("channelTitleFocusable","0")):AyE(this));l=a.externalFullscreen||!this.api.isFullscreen()&&a.V4;g.JB(this.link,gG.FULLERSCREEN_LINK,l);a.Xu||!p.videoId||l||p.S5||a.U?this.L&&(this.updateValue("url",null),this.ME(this.L),this.L=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.L||(this.L=this.J(this.link,"click",this.onClick)));a.U&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.wW(a)?p.expandedTitle:p.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.A(g.qW,g.X);g.L=g.qW.prototype;g.L.setEnabled=function(p){if(this.type!=null)if(p)switch(this.type){case 3:case 2:l7(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.G=p}; g.L.gg=function(p,a,l,y,S,n,V,z){if(!this.Bs||this.env.K){this.type===3&&this.g4();this.type!==1&&(g.CY(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.G&&this.fade.show(),this.S&&this.S.dispose(),(this.S=this.api.d4())&&this.S.subscribe("l",this.mp,this));if(z){var d=g.Wd(this.bg).height||141;this.QY.style.bottom=d+2+"px"}else this.QY.style.display="none";this.env.D("delhi_modern_web_player")?(this.update({pillTimeStamp:l,pillTitle:n!=null?n:"",eduText:z!=null?z:""}),g.uD(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:l,title:n!=null?n:"",eduText:z!=null?z:""}),g.JB(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!n));this.api.isInline()&&g.uD(this.bottomText,"ytp-modern-tooltip-text");g.JB(this.element,"ytp-text-detail",!!y);l=-1;this.S&&(l=og(this.S,243*this.scale),this.env.D("web_l3_storyboard")&&this.S.levels.length===4&&(l=this.S.levels.length-1),l=b6E(this.S,l,a));dIF(this,l);if(V)switch(a=g.Wd(this.element).width,V){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=a+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=a/2+"px",this.title.style.textAlign="center"}EUr(this,!!y,p,S)}}; g.L.iB=function(){this.type===1&&this.g4()}; g.L.P6=function(p,a){if(this.type)if(this.type===3)this.g4();else return;sHO(this,p,3,a)}; g.L.wE=function(){this.L&&!this.K&&(this.env.D("player_tooltip_data_title_killswitch")?this.L.hasAttribute("title")&&(this.U=this.L.getAttribute("title")||"",this.L.removeAttribute("title"),this.G&&l7(this)):this.L.hasAttribute("data-tooltip-title")&&(this.U=this.L.getAttribute("data-tooltip-title")||"",this.L.removeAttribute("data-tooltip-title"),this.G&&l7(this)))}; g.L.mp=function(p,a){p<=this.j&&this.j<=a&&(p=this.j,this.j=NaN,dIF(this,p))}; g.L.Qcm=function(){Biv(this.S,this.j,243*this.scale)}; g.L.g4=function(){switch(this.type){case 2:var p=this.L;p.removeEventListener("mouseout",this.Z);p.addEventListener("mouseover",this.W);p.removeEventListener("blur",this.Z);p.addEventListener("focus",this.W);znA(this);break;case 3:znA(this);break;case 1:this.S&&(this.S.unsubscribe("l",this.mp,this),this.S=null),this.api.removeEventListener("videoready",this.UO),this.Xu.stop()}this.type=null;this.G&&this.fade.hide()}; g.L.dA=function(){if(this.L)for(var p=0;p=0;a--)if(this.Av[a]===p){this.Av.splice(a,1);break}Z4(this.OQ,64,this.Av.length>0)}; g.L.h7=function(){this.api.dh()&&this.api.Gw();return!!this.Li||bKE(this)||g.t9.prototype.h7.call(this)}; g.L.gM=function(){var p=!this.h7(),a=p&&this.api.dh()&&!g.h(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().S5&&!this.api.C().U&&!this.api.isEmbedsShortsMode(),l=this.JJ&&g.Gs(this.api)&&g.h(this.api.getPlayerStateObject(),128);p||l?(this.vS.show(),this.tM.show()):(this.vS.hide(),this.tM.hide(),this.api.dA(this.u_.element));a?this.Pi.qE():this.Pi.Ro();this.Zg&&YT$(this.Zg,this.fFO||!p);this.api.D("web_player_hide_overflow_button_if_empty_menu")&&Tc(this);g.t9.prototype.gM.call(this)}; g.L.SP=function(p,a,l,y,S){p.style.left="";p.style.top="";p.style.bottom="";var n=g.Wd(p),V=y||this.Zg&&g.oh(this.Zg.gG(),a),z=y=null;l!=null&&V||(y=g.Wd(a),z=g.Hd(a,this.api.getRootNode()),l==null&&(l=z.x+y.width/2));l-=n.width/2;V?(a=this.Zg,y=Tj(a),z=SC$(a),V=this.api.Fu().getPlayerSize().height,l=g.Lu(l,y,y+z-n.width),n=V-J8(a)-n.height):g.oh(this.u_.element,a)?(a=this.api.Fu().getPlayerSize().width,l=g.Lu(l,12,a-n.width-12),n=this.QT()?this.G0:this.ul,this.api.C().playerStyle==="gvn"&&(n+=20), this.JJ&&(n-=this.QT()?26:18)):(a=this.api.Fu().getPlayerSize(),l=g.Lu(l,12,a.width-n.width-12),n=z.y>(a.height-y.height)/2?z.y-n.height-12:z.y+y.height+12);p.style.top=n+(S||0)+"px";p.style.left=l+"px"}; g.L.Un=function(p){p&&(this.api.dA(this.u_.element),this.Zg&&this.api.dA(this.Zg.gG()));this.pF&&(g.JB(this.contextMenu.element,"ytp-autohide",p),g.JB(this.contextMenu.element,"ytp-autohide-active",!0));g.t9.prototype.Un.call(this,p)}; g.L.Fc=function(){g.t9.prototype.Fc.call(this);this.pF&&(g.JB(this.contextMenu.element,"ytp-autohide-active",!1),this.pF&&(this.contextMenu.hide(),this.A3&&this.A3.hide()))}; g.L.uU=function(p,a){var l=this.api.Fu().getPlayerSize();l=new g.OS(0,0,l.width,l.height);if(p||!bq(this.OQ)&&!this.h7()){if(this.api.C().jr||a)p=this.QT()?this.G0:this.ul,l.top+=p,l.height-=p;this.Zg&&(l.height-=J8(this.Zg))}return l}; g.L.zH=function(p){var a=this.api.getRootNode();p?a.parentElement?(a.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),this.api.C().externalFullscreen||(a.parentElement.insertBefore(this.vn.element,a),a.parentElement.insertBefore(this.kD.element,a.nextSibling))):g.iO(Error("Player not in DOM.")):(a.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"),this.vn.detach(),this.kD.detach());this.VQ();this.YS()}; g.L.QT=function(){if(this.api.D("web_player_use_screen_width_for_big_mode")){var p;return this.api.Fu().getPlayerSize().width>=((p=g.sW(this.api.C().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?p:2E3)}p=this.api.C();return this.api.isFullscreen()&&!p.K||!1}; g.L.showControls=function(p){this.xK=!p;this.gM()}; g.L.VQ=function(){var p=this.QT();this.tooltip.scale=p?1.5:1;this.contextMenu&&g.JB(this.contextMenu.element,"ytp-big-mode",p);this.gM();this.api.D("web_player_hide_overflow_button_if_empty_menu")||Tc(this);this.YS();var a=this.api.isEmbedsShortsMode();a&&p?(p=(this.api.Fu().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.B8(this.u_.element,"padding-left",p+"px"),g.B8(this.u_.element,"padding-right",p+"px")):a&&(g.B8(this.u_.element,"padding-left",""),g.B8(this.u_.element,"padding-right", ""));g.t9.prototype.VQ.call(this)}; g.L.m4=function(){if(bKE(this)&&!g.Gs(this.api))return!1;var p=this.api.getVideoData();return!g.wW(this.api.C())||this.api.getPresentingPlayerType()===2||!this.Id||((p=this.Id||p.Id)?(p=p.embedPreview)?(p=p.thumbnailPreviewRenderer,p=p.videoDetails&&g.T(p.videoDetails,l$$)||null):p=null:p=null,p&&p.collapsedRenderer&&p.expandedRenderer)?g.t9.prototype.m4.call(this):!1}; g.L.YS=function(){g.t9.prototype.YS.call(this);this.api.logVisibility(this.title.element,!!this.ZU);this.Ll&&this.Ll.UC(!!this.ZU);this.channelAvatar.UC(!!this.ZU);this.overflowButton&&this.overflowButton.UC(this.Yo()&&!!this.ZU);this.shareButton&&this.shareButton.UC(!this.Yo()&&!!this.ZU);this.lc&&this.lc.UC(!this.Yo()&&!!this.ZU);this.searchButton&&this.searchButton.UC(!this.Yo()&&!!this.ZU);this.copyLinkButton&&this.copyLinkButton.UC(!this.Yo()&&!!this.ZU);if(!this.ZU){this.api.dA(this.u_.element); for(var p=0;p5&&a.jl("glrs",{cmt:l});a.seekTo(0,{seekSource:58});a.jl("glrre",{cmt:l})}}; lM.prototype.fz=function(){this.L=null;g.D.prototype.fz.call(this)};g.A(g.HW,LH);g.L=g.HW.prototype;g.L.isView=function(){return!0}; g.L.A_=function(){var p=this.mediaElement.getCurrentTime();if(p1;GI(p.ea(),y-.01)&&!S&&(VO(this,4),l.isActive=!1,l.cz=l.cz||l.isActive,(this.W===1?this.L:this.S).jl("sbh",{}),a.isActive=!0,a.cz=a.cz||a.isActive,this.W!==0&&(this.L.getVideoData().bb=!0));p=this.j.S;if(this.j.L.isActive&&p.isActive&&(VO(this,5),this.W!==0)){p=this.S.Op();l=this.L.Op(); this.L.jl("sbs",{citag:l==null?void 0:l.itag,nitag:p==null?void 0:p.itag});this.S.jl("gitags",{pitag:l==null?void 0:l.itag,citag:p==null?void 0:p.itag});var n;(n=this.S)==null||n.vv()}}}; g.L.No=function(){this.i4()&&this.jj("player-reload-after-handoff")}; g.L.jj=function(p,a){a=a===void 0?{}:a;if(!this.Gm()&&this.status.status!==6){var l=this.status.status>=4&&p!=="player-reload-after-handoff";this.status={status:Infinity,error:p};if(this.L&&this.S){var y=this.S.getVideoData().clientPlaybackNonce;this.L.w$(new g.mm("dai.transitionfailure",Object.assign(a,{cpn:y,transitionTimeMs:this.PL,msg:p})));this.L.iJ(l)}this.Om.reject(p);this.dispose()}}; g.L.i4=function(){return this.status.status>=4&&this.status.status<6}; g.L.fz=function(){FQq(this);this.L.unsubscribe("newelementrequired",this.No,this);if(this.U){var p=this.U.S;this.U.L.j5.unsubscribe("updateend",this.hG,this);p.j5.unsubscribe("updateend",this.hG,this)}g.D.prototype.fz.call(this)}; g.L.G$=function(p){g.mj(p,128)&&this.jj("player-error-event")};g.A(gX,g.D);gX.prototype.clearQueue=function(p,a){p=p===void 0?!1:p;a=a===void 0?!1:a;this.j&&this.j.reject("Queue cleared");this.app.C().D("html5_gapless_fallback_on_qoe_restart_v2")||a&&this.S&&this.S.iJ(!1);R4(this,p)}; gX.prototype.B9=function(){return!this.L}; gX.prototype.i4=function(){var p;return((p=this.U)==null?void 0:p.i4())||!1}; gX.prototype.fz=function(){R4(this);g.D.prototype.fz.call(this)};g.A(Gmo,g.qu);g.L=Gmo.prototype;g.L.getVisibilityState=function(p,a,l,y,S,n,V,z){return p?4:S&&Sv?7:l4()?3:a?2:l?1:y?5:S&&!Sv?7:n?8:V?9:z?10:0}; g.L.z_=function(p){this.fullscreen!==p&&(this.fullscreen=p,this.JN())}; g.L.setMinimized=function(p){this.S!==p&&(this.S=p,this.JN())}; g.L.setInline=function(p){this.inline!==p&&(this.inline=p,this.JN())}; g.L.CH=function(p){this.pictureInPicture!==p&&(this.pictureInPicture=p,this.JN())}; g.L.setSqueezeback=function(p){this.U!==p&&(this.U=p,this.JN())}; g.L.Cr=function(p){this.j!==p&&(this.j=p,this.JN())}; g.L.Bl=function(){return this.L}; g.L.Xx=function(){return this.fullscreen!==0}; g.L.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.L.JQ=function(){return this.fullscreen}; g.L.isMinimized=function(){return this.S}; g.L.isInline=function(){return this.inline}; g.L.isBackground=function(){return l4()}; g.L.Yn=function(){return this.pictureInPicture}; g.L.vN=function(){return!1}; g.L.I_=function(){return this.U}; g.L.c9=function(){return this.j}; g.L.JN=function(){this.publish("visibilitychange");var p=this.getVisibilityState(this.Bl(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Yn(),this.vN(),this.I_(),this.c9());p!==this.G&&this.publish("visibilitystatechange");this.G=p}; g.L.fz=function(){j2M(this.W);g.qu.prototype.fz.call(this)};g.A(g.aJ,g.D);g.L=g.aJ.prototype;g.L.fz=function(){this.videoData=this.playerState=null;g.D.prototype.fz.call(this)}; g.L.addCueRange=function(){}; g.L.SK=function(){}; g.L.O3=function(){}; g.L.gK=function(){return!1}; g.L.Am=function(){return!1}; g.L.vA=function(){}; g.L.AY=function(){}; g.L.Gc=function(){return[]}; g.L.GM=function(){}; g.L.oN=function(){}; g.L.v1=function(){return 1}; g.L.getAudioTrack=function(){return this.getVideoData().Yz}; g.L.qI=function(){return null}; g.L.getAvailableAudioTracks=function(){return[]}; g.L.uW=function(){return[]}; g.L.vO=function(){return[]}; g.L.Zd=function(){return""}; g.L.ov=function(){return[]}; g.L.xV=function(){}; g.L.Bi=function(){return 0}; g.L.getCurrentTime=function(){return 0}; g.L.PC=function(){}; g.L.Op=function(){}; g.L.mS=function(){return{}}; g.L.getDuration=function(){return 0}; g.L.a7=function(){return 0}; g.L.d$=function(){return 0}; g.L.FI=function(){return!1}; g.L.Ak=function(){return 0}; g.L.HW=function(){return 0}; g.L.T2=RR(7);g.L.Ho=function(){return 0}; g.L.p9=function(){return!1}; g.L.Mb=function(){return 0}; g.L.F7=function(){return null}; g.L.D_=function(){return null}; g.L.hP=function(){return 0}; g.L.Gd=function(){return 0}; g.L.EU=function(){return g.R(function(p){g.lD(p)})}; g.L.Pk=RR(15);g.L.getPlaybackQuality=function(){return"auto"}; g.L.getPlaybackRate=function(){return 1}; g.L.getPlayerState=function(){this.playerState||(this.playerState=new g.Z5);return this.playerState}; g.L.getPlayerType=function(){return 0}; g.L.getPlaylistSequenceForTime=function(){return null}; g.L.Wl=function(){return function(){}}; g.L.Ir=function(){return""}; g.L.getPreferredQuality=function(){return"unknown"}; g.L.Mj=function(){}; g.L.getProximaLatencyPreference=function(){return 0}; g.L.e2=function(){return Fz}; g.L.d4=function(){return null}; g.L.getStoryboardFormat=function(){return null}; g.L.getStreamTimeOffset=function(){return 0}; g.L.CE=function(){return 0}; g.L.Jg=function(){return 0}; g.L.jA=function(){return{Vd:[],BC:[],currentTime:0,Eb:"",droppedVideoFrames:0,isGapless:!1,B9:!0,Kd:0,qX:0,OR:0,P$:0,Vq:0,mU:[],pK:[],Gs:null,playerState:this.getPlayerState(),cQ:null,lR:"",totalVideoFrames:0}}; g.L.getUserAudio51Preference=function(){return 0}; g.L.getUserPlaybackQualityPreference=function(){return""}; g.L.getVideoData=function(){this.videoData||(this.videoData=new g.rO(this.Y),g.E(this,this.videoData));return this.videoData}; g.L.lB=function(){return null}; g.L.iS=function(){return null}; g.L.K1=function(){}; g.L.getVideoLoadedFraction=function(){return 0}; g.L.Zo=function(){}; g.L.handleError=function(){}; g.L.iJ=function(){}; g.L.l$=function(){}; g.L.mC=RR(40);g.L.aQ=function(){return!1}; g.L.hasSupportedAudio51Tracks=function(){return!1}; g.L.q9=function(){return!1}; g.L.Bl=function(){return!1}; g.L.isAtLiveHead=function(){return!1}; g.L.hH=function(){return!0}; g.L.isGapless=function(){return!1}; g.L.isHdr=function(){return!1}; g.L.hn=function(){return!1}; g.L.Mu=function(){return!1}; g.L.Gv=function(){return!1}; g.L.isProximaLatencyEligible=function(){return!1}; g.L.B9=function(){return!0}; g.L.MF=function(){return!1}; g.L.Xk=function(){return!1}; g.L.YF=function(){}; g.L.HR=function(){}; g.L.vv=function(){}; g.L.N8=function(){}; g.L.bu=function(){}; g.L.pm=function(){}; g.L.IS=function(){}; g.L.Jk=RR(50);g.L.jR=RR(21);g.L.Cm=function(){}; g.L.pauseVideo=function(){}; g.L.prefetchKeyPlay=function(){}; g.L.playVideo=function(){return g.R(function(p){return p.return()})}; g.L.bA=function(){}; g.L.VT=RR(27);g.L.Cq=RR(33);g.L.f_=function(){}; g.L.jl=function(){}; g.L.zM=function(){}; g.L.iQ=function(){}; g.L.Zk=function(){}; g.L.w$=function(){}; g.L.aJ=function(){}; g.L.Mz=function(){}; g.L.dQ=function(){}; g.L.mA=function(){}; g.L.r0=function(){}; g.L.zf=function(){}; g.L.removeCueRange=function(){}; g.L.Wt=function(){}; g.L.lf=function(){return[]}; g.L.TF=function(){}; g.L.Rd=function(){}; g.L.aL=function(){}; g.L.yw=function(){}; g.L.qz=function(){}; g.L.Qp=function(){}; g.L.seekTo=function(){}; g.L.sendAbandonmentPing=function(){}; g.L.sendVideoStatsEngageEvent=function(){}; g.L.Vi=function(){}; g.L.setLoop=function(){}; g.L.L4=function(){}; g.L.setMediaElement=function(){}; g.L.oL=function(){}; g.L.setPlaybackRate=function(){}; g.L.Ne=function(){}; g.L.Fw=function(){}; g.L.iG=function(){}; g.L.setProximaLatencyPreference=function(){}; g.L.xA=function(){}; g.L.Pw=function(){}; g.L.uA=function(){}; g.L.F0=function(){}; g.L.XM=function(){}; g.L.setUserAudio51Preference=function(){}; g.L.oE=function(){}; g.L.M3=function(){return!1}; g.L.fE=function(){}; g.L.qJ=function(){return!1}; g.L.rI=function(){}; g.L.YA=function(){}; g.L.Lw=function(){}; g.L.stopVideo=function(){}; g.L.subscribe=function(){return NaN}; g.L.xT=function(){}; g.L.togglePictureInPicture=function(){}; g.L.yu=function(){return 0}; g.L.DJ=function(){}; g.L.unsubscribe=function(){return!1}; g.L.dM=function(){}; g.L.Kl=function(){return!1}; g.L.N1=function(){}; g.L.JM=function(){}; g.L.Fx=function(){};g.A(U6,g.D);g.L=U6.prototype;g.L.get=function(p){R9(this);var a=this.data.find(function(l){return l.key===p}); return a?a.value:null}; g.L.set=function(p,a,l){this.remove(p,!0);R9(this);p={key:p,value:a,expire:Infinity};l&&isFinite(l)&&(l*=1E3,p.expire=(0,g.Ek)()+l);for(this.data.push(p);this.data.length>this.U;)(l=this.data.shift())&&sl(this,l,!0);fD(this)}; g.L.remove=function(p,a){a=a===void 0?!1:a;var l=this.data.find(function(y){return y.key===p}); l&&(sl(this,l,a),g.$lo(this.data,function(y){return y.key===p}),fD(this))}; g.L.removeAll=function(p){if(p=p===void 0?!1:p)for(var a=g.t(this.data),l=a.next();!l.done;l=a.next())sl(this,l.value,p);this.data=[];fD(this)}; g.L.fz=function(){var p=this;g.D.prototype.fz.call(this);this.data.forEach(function(a){sl(p,a,!0)}); this.data=[]};g.A(g.Qy,g.D);g.L=g.Qy.prototype;g.L.fz=function(){for(var p=g.t(Object.values(this.U)),a=p.next();!a.done;a=p.next())a.value.dispose();g3$(this);this.L.dispose();g.D.prototype.fz.call(this)}; g.L.AN=function(p){return p?p===1?this.Z:this.S.getVideoData().enableServerStitchedDai&&p===2?this.S.getVideoData().Ks?this.U[2]||this.S:this.S:this.U[p]||null:this.S}; g.L.tP=function(p){var a=p.cpn;p=p.playerType;if(a)a:{p=g.t(Object.values(this.U));for(var l=p.next();!l.done;l=p.next())if(l=l.value,l.Zd()===a){a=l;break a}a=this.G[a]||null}else a=p?this.AN(p):this.S;return a}; g.L.jb=function(){return this.Z}; g.L.Nz=function(p){this.Z=p}; g.L.qO=function(){return this.S}; g.L.vI=function(p){this.S=p;NX(this)}; g.L.JA=RR(46);g.L.Qz=RR(48);g.A(RnZ,g.r4);g.L=RnZ.prototype;g.L.Zj=function(){}; g.L.Zd=function(){return this.videoData.clientPlaybackNonce}; g.L.getVideoData=function(){if(g.r4.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")){var p=m72(this.I4,g.r4.prototype.getCurrentTime.call(this))||g.r4.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==p.clientPlaybackNonce&&ms(this.j,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:p.clientPlaybackNonce});return this.videoData}return m72(this.I4,g.r4.prototype.getCurrentTime.call(this))||g.r4.prototype.getVideoData.call(this)}; g.L.getCurrentTime=function(p){var a=g.r4.prototype.getCurrentTime.call(this);if(g.r4.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")){this.L===0?p||(a-=this.startTimeSecs,g.r4.prototype.getVideoData.call(this).D("html5_ssdai_log_missed_ad_impressions")&&this.S&&this.U&&a>1&&this.jl("sdai-admiss",{cpn:this.Zd(),ct:a.toFixed(3),pfs:this.U}),this.S=!1):p&&(a=this.L);var l=p?this.I4.pH||g.r4.prototype.getCurrentTime.call(this):pdM(this.I4,g.r4.prototype.getCurrentTime.call(this)); a!==l&&ms(this.j,"time"+(p!=null?p:!1),{time:a,ref:l,ct:p!=null?p:!1})}else a=p?this.I4.pH||a:pdM(this.I4,a);return a}; g.L.getDuration=function(){if(g.r4.prototype.getVideoData.call(this).D("html5_huli_ssdai_use_playback_state")){var p=LfF(this.I4,g.r4.prototype.getCurrentTime.call(this));this.duration!==p&&ms(this.j,"duration",{dur:this.duration,ref:p});return this.duration}return LfF(this.I4,g.r4.prototype.getCurrentTime.call(this))}; g.L.iK=function(p){this.duration=p};g.WX.prototype.Uy=function(p,a){if(a===1)return this.L.get(p);if(a===2)return this.U.get(p);if(a===3)return this.S.get(p)}; g.WX.prototype.WH=RR(58);g.WX.prototype.En=function(p,a,l,y){l={tH:y,Ev:l};a?this.U.set(p,l):this.L.set(p,l)}; g.WX.prototype.clearAll=function(){this.L.clear();this.U.clear();this.S.clear()}; on.prototype.clear=function(){this.S=[];this.U.clear();this.j.clear();this.L.clear()}; on.prototype.tP=function(p){var a=p.cpn;p=p.a4;if(a&&(a=this.U.get(a))||p&&(a=(this.W?this.U:this.j).get(p)))return a}; g.A(g.gK,g.D);g.L=g.gK.prototype;g.L.onCueRangeEnter=function(p){var a=p.getId();this.wG({oncueEnter:1,cpn:a,start:p.start,end:p.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Bi()||0).toFixed(3)});var l=this.L.tP({cpn:a});this.wG({enterAdCueRange:1});var y=this.x3||this.G2().cpn,S;y=(S=this.L.tP({cpn:y}))!=null?S:this.G2();l&&(S=this.playback.getCurrentTime(),l.startTimeSecs=p.start/1E3,l={KJ:y,rr:l,TJ:S},ikE(this,a,p.start/1E3,S),nG(this,l));this.nz=!1}; g.L.v8=function(p,a,l){if(p&&a){this.nz=l!=null?l:!1;var y;l=((y=this.app.mD().j)==null?void 0:y.Zd())||this.playback.Zd();var S;y=(S=this.L.tP({cpn:l}))!=null?S:this.G2();var n;p=(n=this.L.tP({cpn:p}))!=null?n:this.G2();p.startTimeSecs=a;p.playerType===2&&(p.BO=p.BO!=null?Math.min(p.BO,a):a);n=this.playback.getCurrentTime();ikE(this,l,a,n);nG(this,{KJ:y,rr:p,TJ:n})}}; g.L.qj=function(p,a){if(p===this.playback.Zd())R_(this.app.mD(),this.playback,!1);else{var l=this.t9.get(p);l?(p=!this.nz,l.L=0,l.startTimeSecs=a,l.U=p===void 0?!0:p,l.S=!0,R_(this.app.mD(),l,!0)):this.wG({nop_s:p})}}; g.L.onCueRangeExit=function(p){for(var a=this.playback.getCurrentTime()*1E3,l=p.getId(),y=g.t(this.S.values()),S=y.next();!S.done;S=y.next())if(S=S.value,S.getId()!==l&&a>=S.start&&a<=S.end)return;if(l=this.L.tP({cpn:l}))a=this.playback.getCurrentTime(),y=this.G2(),y.startTimeSecs=p.end/1E3,l={KJ:l,rr:y,TJ:a},ikE(this,this.playback.Zd(),p.end/1E3,a),nG(this,l)}; g.L.G2=function(){return{cpn:this.playback.Zd(),durationMs:0,QL:0,playerType:1,fh:0,videoData:this.playback.getVideoData(),errorCount:0,yZ:""}}; g.L.seekTo=function(p,a,l,y){p=p===void 0?0:p;a=a===void 0?{}:a;l=l===void 0?!1:l;y=y===void 0?null:y;DI(this,this.x3);if(this.playback.getVideoData().vy()&&p<=this.pH)this.playback.pauseVideo(),this.pH=0,Ugh(this,p);else if(this.nz=this.UO=!0,l)qFf(this,p,a);else{l=this.app.qO();var S=l===this.QY?this.Yv:null;Li(this,!1);this.eb=p;this.yQ=a;y!=null&&this.Sb.start(y);l&&(this.Yv=S||l.getPlayerState(),l.Lw(a),this.QY=l)}}; g.L.fz=function(){Li(this,!1);jHZ(this);Yio(this);g.D.prototype.fz.call(this)}; g.L.NU=function(p){this.Ha=p;this.wG({swebm:p})}; g.L.kz=function(p,a,l){if(l&&a){var y=this.W.get(p);if(y){y.locations||(y.locations=new Map);var S=Number(a.split(";")[0]);l=new g.ib(l);this.wG({hdlredir:1,itag:a,seg:p,hostport:ik(35,l)});y.locations.set(S,l)}}}; g.L.WV=function(p,a,l,y,S,n){var V=y===3,z=eWM(this,p,a,y,l,n);if(!z){sR(this,a,V);var d=g.zs(this,a)?"undec":"ncp";this.wG({gvprp:d,mt:p,seg:a,tt:y,itag:l,ce:n});return null}V||this.W.set(a,z);n=z.yZ;var G;y=((G=this.Uy(a-1,y,S))==null?void 0:G.tH)||"";y===""&&this.wG({eds:1});G=gEM(this,z.ssdaiAdsConfig);S=this.playback.getVideoData();var B;V=((B=S.S)==null?void 0:B.containerType)||0;B=S.AX[V];z=z.eS&&a>=z.eS?z.eS:void 0;B={m6:n?yyF(this,n):[],adsConfig:G,tH:y,Nk:z,hS:bo(B.split(";")[0]),mI:B.split(";")[1]|| ""};z={VZ:B};this.OO&&(p={gvprpro:"v",sq:a,mt:p.toFixed(3),itag:l,acpns:((d=B.m6)==null?void 0:d.join("_"))||"none",abid:n},this.wG(p));return z}; g.L.WJ=function(p){a:{if(!this.bK){var a=df(this,p);if(!(this.playback.getVideoData().vy()&&(a==null?0:a.pu)))break a}a=void 0}var l=a;if(!l)return this.wG({gvprp:"ncp",mt:p}),null;a=l.yZ;var y=gEM(this,l.ssdaiAdsConfig);l=l.eS&&l.bv&&p>=l.bv?l.eS:void 0;var S=this.playback.getVideoData(),n,V=((n=S.S)==null?void 0:n.containerType)||0;n=S.AX[V];n={m6:a?yyF(this,a):[],adsConfig:y,Nk:l,hS:bo(n.split(";")[0]),mI:n.split(";")[1]||""};var z;p={gvprpro:"v",mt:p.toFixed(3),acpns:((z=n.m6)==null?void 0:z.join("_"))|| "none",abid:a};this.wG(p);return n}; g.L.VV=function(p,a,l,y,S,n){var V=Number(l.split(";")[0]),z=y===3;p=eWM(this,p,a,y,l,n);this.wG({gdu:1,seg:a,itag:V,pb:""+!!p});if(!p)return sR(this,a,z),null;p.locations||(p.locations=new Map);if(!p.locations.has(V)){var d,G;n=(d=p.videoData.getPlayerResponse())==null?void 0:(G=d.streamingData)==null?void 0:G.adaptiveFormats;if(!n)return this.wG({gdu:"noadpfmts",seg:a,itag:V}),sR(this,a,z),null;d=n.find(function(r){return r.itag===V}); if(!d||!d.url){var B=p.videoData.videoId;p=[];var c=g.t(n);for(y=c.next();!y.done;y=c.next())p.push(y.value.itag);this.wG({gdu:"nofmt",seg:a,vid:B,itag:V,fullitag:l,itags:p.join(",")});sR(this,a,z);return null}p.locations.set(V,new g.ib(d.url,!0))}n=p.locations.get(V);if(!n)return this.wG({gdu:"nourl",seg:a,itag:V}),sR(this,a,z),null;n=new Yp(n);this.Ha&&(n.get("dvc")?this.wG({dvc:n.get("dvc")||""}):n.set("dvc","webm"));(y=(c=this.Uy(a-1,y,S))==null?void 0:c.tH)&&n.set("daistate",y);p.eS&&a>=p.eS&& n.set("skipsq",""+p.eS);(c=this.playback.getVideoData().clientPlaybackNonce)&&n.set("cpn",c);c=[];p.yZ&&(c=yyF(this,p.yZ),c.length>0&&n.set("acpns",c.join(",")));z||this.W.set(a,p);z=null;z=n.get("aids");y=n.RX();(y==null?void 0:y.length)>2048&&this.wG({urltoolong:1,sq:a,itag:V,len:y.length});this.OO&&(y&&(n=p.cpn,S=p.yZ,IvO(this,n,S),S&&!this.O6.has(S)&&(n=RZO(this,n,S),d=ehf(this,S),this.wG({iofa:n}),this.wG({noawnzd:d-n}),this.wG({acpns:c.join("."),aids:(B=z)==null?void 0:B.replace(/,/g,".")}), this.O6.add(S))),this.wG({gdu:"v",seg:a,itag:l,ast:p.QL.toFixed(3),alen:p.durationMs.toFixed(3),acpn:p.cpn,avid:p.videoData.videoId}));return y}; g.L.nN=function(p,a,l){l=l===void 0?!1:l;var y=du(this,p,a);if(y){this.Kt&&(this.Bs=y);var S=void 0,n=y.yZ;if(n){this.wG({skipadonsq:a,sts:l,abid:n,acpn:y.cpn,avid:y.videoData.videoId});l=this.L.L.get(n);if(!l)return;l=g.t(l);for(n=l.next();!n.done;n=l.next())n=n.value,n.eS=a,n.bv=p,n.QL>y.QL&&(S=n)}DI(this,this.x3);this.U=y.cpn;stF(this);this.api.D("html5_ssdai_enable_media_end_cue_range")&&this.playback.DJ(this.U);p=this.playback.getCurrentTime();UYO(this,y,S,p,p,!1,!0);R3q(this)}}; g.L.us=function(){for(var p=g.t(this.L.S),a=p.next();!a.done;a=p.next())a=a.value,a.eS=NaN,a.bv=NaN;stF(this);this.wG({rsac:"resetSkipAd",sac:this.U});this.Ps.delete(this.U);this.U="";this.Kt&&(this.Bs=void 0)}; g.L.Uy=function(p,a,l){return this.Xu.Uy(p,a,l)}; g.L.WH=RR(57); g.L.En=function(p,a,l,y,S,n,V,z,d){y.length>0&&this.wG({onssinfo:1,sq:p,start:a.toFixed(3),cpns:y.join(","),ds:S.join(","),isVideo:V?1:0});if(this.Kt&&this.Bs&&this.Bs.eS&&y.length>0){l=g.t(y);for(var G=l.next();!G.done;G=l.next())if(G=G.value,G===this.Bs.cpn){this.o4!==G&&(this.wG({skiperror:1,sq:p,acpn:this.Bs.cpn,skipsq:this.Bs.eS||0}),this.o4=G);break}}d&&this.Xu.En(p,V,z,d);if(V){if(y.length&&S.length)for(this.Ps.has(y[0])&&this.wG({skipfail:1,sq:p,acpn:y[0]}),p=a+this.CE(),V=0;V0&&(this.sZ=0,this.x3="",this.Y.D("html5_huli_ssdai_use_playback_state")&&this.qj(this.playback.Zd(),0),this.api.publish("serverstitchedvideochange"));this.playback.AY(l,y);return!0}; g.L.ZK=function(){this.wG({rstdaist:1});this.Xu.clearAll()}; g.L.uQ=function(p){var a;if(p!==((a=this.G)==null?void 0:a.identifier))this.wG({ignorenoad:p});else{this.vZ.add(p);this.wG({noadrcv:p});var l;((l=this.G)==null?void 0:l.identifier)===p&&wJ(this)}}; g.L.Aa=function(p){if(this.bK)return this.wG({dai_disabled:p.event}),!1;if(this.playback.getVideoData().vy()&&(p.event==="continue"||p.event==="stop"))return!1;var a=IO(this.api.DN());if(a=a?a.Aa(p):!1)this.j={YK:p.identifier,Rl:p.startSecs};else if(this.j&&this.j.YK===p.identifier&&p.startSecs>this.j.Rl+1){this.wG({cueStChg:p.identifier,oldSt:this.j.Rl.toFixed(3),newSt:p.startSecs.toFixed(3),abid:this.j.Hd});if(this.j.Hd){var l=p.startSecs-this.j.Rl,y=this.L.L.get(this.j.Hd);if(y){y=g.t(y);for(var S= y.next();!S.done;S=y.next())S=S.value,S.QL>=0&&(S.QL+=l*1E3,this.Y.D("html5_ssdai_update_timeline_on_start_time_change")&&(S.fh+=l*1E3),this.wG({newApEt:S.QL,newApPrt:S.fh,acpn:S.cpn}))}}this.j.Rl=p.startSecs}this.Y.D("html5_ssdai_log_missing_ad_config_reason")&&(a?this.Hs.add(p.identifier):this.Hs.has(p.identifier)&&this.Hs.delete(p.identifier));return a}; g.L.Qg=function(p){var a="";p?p.event==="unknown"?a="unknown":this.Hs.has(p.identifier)?this.j&&this.j.YK===p.identifier?this.j.YK===p.identifier?a="pending":gf(this.VY,function(l){return l.identifier===p.identifier})||(a="noAdsAdded"):a="wrongAdBreakInfo":a="unscheduled":a="noCuepoint"; return a}; g.L.W0=function(p){return this.bK?!1:!!df(this,p)}; g.L.Wg=function(p){var a=this;if(this.Y.D("html5_lifa_ignore_multiple_skips")&&this.w7)return this.wG({ufs_ad:this.U,ufs_cur:this.x3,ufs_cont:this.G2().cpn}),!1;DI(this,this.x3);this.playback.pauseVideo();var l=this.playback.getCurrentTime(),y=this.L.tP({cpn:this.x3});if(!y)return this.wG({skipFail:l}),!1;this.U=this.x3;this.UO=!1;this.api.D("html5_ssdai_enable_media_end_cue_range")&&this.playback.DJ(this.U);IHZ(this,y.yZ);q3E(this,y,this.G2(),p);Ugh(this,l,{seekSource:89,JP:"lifa_skip"});this.w7|| (this.w7=this.events.J(this.api,"progresssync",function(){Pc(a.api.f0(),(0,g.Ek)(),"ad_to_video");a.w7&&(a.events.ME(a.w7),a.w7=null)})); return!0}; g.L.wG=function(p,a){((a===void 0?0:a)||this.OO||this.playback.getVideoData().vy())&&this.playback.jl("sdai",p)}; var Gkf=0;g.A(Gh,g.D);g.L=Gh.prototype;g.L.onCueRangeEnter=function(p){if(this.L===this.app.qO()){var a=this.W.get(p);a?j0F(this,a.target,a.PL,p):this.w$("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:p.toString()})}else if(a=this.S.find(function(S){return S.lS.Kq===p})){var l=a.lS,y=l.target; l=l.PL;y?j0F(this,y,l,p):TZo(this,a.fh,l,p)}}; g.L.onQueuedVideoLoaded=function(){var p=this.K;ht(this);if(p){if(!Wq(this,p)){var a=this.app.qO();this.w$("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:a==null?void 0:a.getVideoData().clientPlaybackNonce,ccpn:""+p.playerVars.cpn})}this.app.qO().addCueRange(p.lS.Kq)}}; g.L.seekTo=function(p,a,l,y){p=p===void 0?0:p;a=a===void 0?{}:a;y=y===void 0?null:y;if(l===void 0?0:l)D3e(this,p,a);else{l=this.app.qO()||null;var S=l===this.j?this.G:null;AL(this,!1);this.UO=p;this.Sl=a;y!=null&&this.Z.start(y);l&&(this.G=S||l.getPlayerState(),l.Lw(),this.j=l)}}; g.L.XP=function(p){g.mj(p,128)&&K2$(this)}; g.L.isManifestless=function(){return Qe(this.L.getVideoData())}; g.L.fz=function(){AL(this,!1);WAq(this);g.D.prototype.fz.call(this)}; g.L.w$=function(p,a){this.L.w$(new g.mm(p,a))}; var hSe=0;var VOv="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.A(Fv,g.D);Fv.prototype.V1=function(p){if(p)return this.S.get(p)}; Fv.prototype.fz=function(){this.L.removeAll();this.S.removeAll();g.D.prototype.fz.call(this)};g.oC1=oI(function(){var p=window.AudioContext||window.webkitAudioContext;try{return new p}catch(a){return a.name}});g.A(HKZ,g.X);g.L=HKZ.prototype;g.L.Lc=function(){g.pw(this.element,g.D1.apply(0,arguments))}; g.L.Rd=function(){this.Su&&(this.Su.removeEventListener("focus",this.ym),g.wC(this.Su),this.Su=null)}; g.L.Xs=function(){this.Gm();var p=this.app.C();p.yl||this.Lc("tag-pool-enabled");p.G&&this.Lc(g.k2.HOUSE_BRAND);p.playerStyle==="gvn"&&(this.Lc("ytp-gvn"),this.element.style.backgroundColor="transparent");p.oo&&(this.Ow=g.IL("yt-dom-content-change",this.resize,this));this.J(window,"orientationchange",this.resize,this);this.J(window,"resize",this.resize,this)}; g.L.Yx=function(p){g.CL(this.app.C());this.kF=!p;kB(this)}; g.L.resize=function(){if(this.Su){var p=this.W9();if(!p.isEmpty()){this.app.Tm.isFullscreen()&&e8()&&this.rU.start();var a=!g.aG(p,this.Hw.getSize()),l=Kx$(this);a&&(this.Hw.width=p.width,this.Hw.height=p.height);p=this.app.C();(l||a||this.v_||p.oo)&&this.app.Tm.publish("resize",this.getPlayerSize())}}}; g.L.G_=function(p,a){this.updateVideoData(a)}; g.L.updateVideoData=function(p){if(this.Su){var a=this.app.C();bp&&(this.Su.setAttribute("x-webkit-airplay","allow"),p.title?this.Su.setAttribute("title",p.title):this.Su.removeAttribute("title"));this.Su.setAttribute("controlslist","nodownload");a.ED&&p.videoId&&(this.Su.poster=p.Gy("default.jpg"))}a=g.WK(p,"yt:bgcolor");this.BA.style.backgroundColor=a?a:"";this.KI=EeZ(g.WK(p,"yt:stretch"));this.c7=EeZ(g.WK(p,"yt:crop"),!0);g.JB(this.element,"ytp-dni",p.S5);this.resize()}; g.L.setGlobalCrop=function(p){this.Ap=EeZ(p,!0);this.resize()}; g.L.setCenterCrop=function(p){this.Xi=p;this.resize()}; g.L.z_=function(){}; g.L.getPlayerSize=function(){var p=this.app.C(),a=this.app.Tm.isFullscreen(),l=p.externalFullscreen&&g.wW(p);if(a&&e8()&&!l)return new g.N6(window.outerWidth,window.outerHeight);l=!isNaN(this.Rp.width)&&!isNaN(this.Rp.height);var y=this.app.C().D("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.C().D("web_watch_enable_fs_squeezeback_panels");if(a&&!l&&y)return new g.N6(this.element.clientWidth,this.element.clientHeight);if(a||p.Em){if(window.matchMedia){p="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.LG&&this.LG.media===p||(this.LG=window.matchMedia(p));var S=this.LG&&this.LG.matches}if(S)return new g.N6(window.innerWidth,window.innerHeight)}else if(l)return this.Rp.clone();return new g.N6(this.element.clientWidth,this.element.clientHeight)}; g.L.W9=function(){var p=this.app.C().D("enable_desktop_player_underlay"),a=this.getPlayerSize(),l=g.sW(this.app.C().experiments,"player_underlay_min_player_width");return p&&this.YH&&a.width>l?(p=g.sW(this.app.C().experiments,"player_underlay_video_width_fraction"),new g.N6(Math.min(a.height*this.getVideoAspectRatio(),a.width*p),Math.min(a.height,a.width*p/this.getVideoAspectRatio()))):a}; g.L.getVideoAspectRatio=function(){return isNaN(this.KI)?TSM(this):this.KI}; g.L.getVideoContentRect=function(p){var a=this.W9();p=oEZ(this,a,this.getVideoAspectRatio(),p);return new g.OS((a.width-p.width)/2,(a.height-p.height)/2,p.width,p.height)}; g.L.ZH=function(p){this.YH=p;this.resize()}; g.L.a_=function(){return this.bY}; g.L.onMutedAutoplayChange=function(){kB(this)}; g.L.setInternalSize=function(p){g.aG(this.Rp,p)||(this.Rp=p,this.resize())}; g.L.fz=function(){this.Ow&&g.Nz(this.Ow);this.Rd();g.X.prototype.fz.call(this)};g.L=xM$.prototype;g.L.click=function(p,a){this.elements.has(p);this.L.has(p);var l=g.G2();l&&p.visualElement&&g.Ic(l,p.visualElement,a)}; g.L.createClientVe=function(p,a,l,y){var S=this;y=y===void 0?!1:y;this.elements.has(p);this.elements.add(p);l=FyO(l);p.visualElement=l;var n=g.G2(),V=g.z2();n&&V&&(g.oO("combine_ve_grafts")?dV(K1(),l,V):g.Es(g.N8)(void 0,n,V,l));a.addOnDisposeCallback(function(){S.elements.has(p)&&S.destroyVe(p)}); y&&this.S.add(p)}; g.L.createServerVe=function(p,a,l){var y=this;l=l===void 0?!1:l;this.elements.has(p);this.elements.add(p);a.addOnDisposeCallback(function(){y.destroyVe(p)}); l&&this.S.add(p)}; g.L.destroyVe=function(p){this.elements.has(p);this.elements.delete(p);this.U.delete(p);this.L.delete(p);this.S.delete(p)}; g.L.vc=function(p,a){this.clientPlaybackNonce!==a&&(this.clientPlaybackNonce=a,vj(K1(),p),C1E(this))}; g.L.setTrackingParams=function(p,a){this.elements.has(p);a&&(p.visualElement=g.E8(a))}; g.L.Kx=function(p,a,l){this.elements.has(p);a?this.L.add(p):this.L.delete(p);var y=g.G2(),S=p.visualElement;this.S.has(p)?y&&S&&(a?g.Hh(y,[S]):g.vT(y,[S])):a&&!this.U.has(p)&&(y&&S&&g.CW(y,S,void 0,l),this.U.add(p))}; g.L.hasVe=function(p){return this.elements.has(p)};g.A(g.$T,g.D);g.$T.create=function(p,a,l,y){try{var S=typeof p==="string"?p:"player"+g.Wk(p),n=eI[S];if(n){try{n.dispose()}catch(z){g.iO(z)}eI[S]=null}var V=new g.$T(p,a,l,y);V.addOnDisposeCallback(function(){eI[S]=null;V.o3&&V.o3()}); return eI[S]=V}catch(z){throw g.iO(z),(z&&z instanceof Error?z:Error(String(z))).stack;}}; g.L=g.$T.prototype;g.L.TM=function(){return this.visibility}; g.L.Nz=function(p){var a=this.jb();if(p!==a){p.getVideoData().autonavState=a.getVideoData().autonavState;a.dM(this.yN,this);var l=a.getPlaybackRate();a.dispose();this.HZ.Nz(p);p.setPlaybackRate(l);p.xT(this.yN,this);HqO(this)}}; g.L.eE=function(){this.F3||(this.F3=g.Lf(CD(),WME()));return this.F3}; g.L.Rd=function(p){if(this.mediaElement){this.bO&&(this.events.ME(this.bO),this.bO=null);g.z1(this.bQ);this.qO().Rd(!0,!1,p);this.template.Rd();try{this.D("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.KQ()}catch(a){g.Mf(a)}this.mediaElement=null}}; g.L.vI=function(p,a,l){if(p!==this.qO()){var y=null;if(l===void 0||!l){l=this.qO();y=l.getPlayerState();II(this.Py,3);x2(this,"cuerangesremoved",l.ov());this.lX&&!p.isGapless()&&l.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();l=p.M3()&&l.M3();this.QQ.jh("iv_s");l=l===void 0?!0:l;var S;if(S=this.IX){S=this.IX;var n=this.mediaElement;S=!!n&&n===S.mediaElement}S&&(this.Rd(),bf(this));S=this.qO();S.Rd(!l);S.dM(this.oA,this);S.getPlayerType()!==1&&S.dispose();l=this.HZ;l.S=l.L;NX(l)}p.getPlayerType()=== 1&&this.Nz(p);l=p.getPlayerType();S=this.HZ.U[l]||null;p!==this.jb()&&p!==S&&(S==null||S.dispose(),this.HZ.U[l]=p);this.HZ.vI(p);this.mediaElement&&p.setMediaElement(this.mediaElement);p.xT(this.oA,this);p.Xk()?yE(this,"setPresenting",!1):(this.G_("newdata",p,p.getVideoData()),y&&!g.dWM(y,p.getPlayerState())&&this.fM(new g.VM(p.getPlayerState(),y)),a=a&&p.getPlayerType()===1,p.Mu()&&!a&&this.G_("dataloaded",p,p.getVideoData()),(a=(a=p.getVideoData().S)&&a.video)&&this.Tm.uC("onPlaybackQualityChange", a.quality),x2(this,"cuerangesadded",p.ov()),a=p.getPlayerState(),g.h(a,2)?DNe(this):g.h(a,8)?p.playVideo():p.hn()&&p.pauseVideo(),a=this.jb(),p.getPlayerType()===2&&(p.getVideoData().Ea=a.getVideoData().clientPlaybackNonce),p.getPlayerType()!==2||this.fv()||(p=p.getVideoData(),a.bA(p.clientPlaybackNonce,p.n1||"",p.breakType||0,p.aM,p.videoId||"")))}}; g.L.O1=function(){this.jb()!==this.qO()&&this.vI(this.jb())}; g.L.mD=function(){return this.HZ}; g.L.tP=function(p){return this.HZ.tP(p)}; g.L.AN=function(p){return this.HZ.AN(p)}; g.L.jb=function(){return this.HZ.jb()}; g.L.qO=function(){return this.HZ.qO()}; g.L.Y9=RR(44);g.L.evz=function(){bK(this)||this.Ja(5)}; g.L.pZO=function(){if(!bK(this)){q3(this);var p=this.qO(),a=p.getPlayerState();p.hn()?this.pauseVideo():a.isOrWillBePlaying()&&this.playVideo()}}; g.L.canPlayType=function(p){return FP(p)}; g.L.C=function(){return this.Y}; g.L.getVideoData=function(){return this.qO().getVideoData()}; g.L.U4=RR(11);g.L.y$=function(){return this.jb().getVideoData()}; g.L.getVideoLoadedFraction=function(p){return(p=this.tP({playerType:p}))?p.getVideoLoadedFraction():this.HZ.L.getVideoLoadedFraction()}; g.L.Fu=function(){return this.template}; g.L.DN=function(){return this.Py}; g.L.f0=function(){return this.QQ}; g.L.zW=function(p,a,l){(a=this.tP({playerType:a===void 0?1:a}))&&a.Vi(p,void 0,l)}; g.L.M8=function(){var p=this.Py.M8();this.Tm.publish("videoStatsPingCreated",p);return p}; g.L.getVolume=function(){return Math.round(this.Tm.getVolume())}; g.L.isMuted=function(){return this.Tm.isMuted()}; g.L.zY=function(){if(this.jb()===this.qO()&&this.lM)return this.lM.postId}; g.L.o3m=function(){var p=this;this.D("use_rta_for_player")||(g.g5(this.Y)?g.WH(this.Y,g.HH(this.getVideoData())).then(function(a){vR(CD(),a);Zwq(p.getVideoData(),p.Y,p.eE())}):Zwq(this.getVideoData(),this.Y,this.eE()))}; g.L.JG=function(p){this.Tm.publish("poTokenVideoBindingChange",p)}; g.L.De=function(p){this.Tm.publish("d6de4videobindingchange",p)}; g.L.xJ=function(){this.JF&&this.JF.xJ()}; g.L.C3=function(p){this.JF=p}; g.L.SN=function(p){if(p===1){this.QQ.tick("vr");var a=this.qO();a.O3();WOM(this.QQ,a.getVideoData(),PVM(this));ALr(this.Py)}a=this.Y;if(tI(a)&&a.Z||g.PD(a)){var l;(((l=this.qO().getVideoData())==null?0:l.enableServerStitchedDai)||!this.fv())&&this.Tm.uC("onAdStateChange",p)}}; g.L.setLoopVideo=function(p){var a=this.qO();a===this.jb()&&a.p9()!==p&&(a.setLoop(p),this.Tm.xv("onLoopChange",p))}; g.L.getLoopVideo=function(){return this.qO().p9()}; g.L.setLoopRange=function(p){var a=!1;!!this.lM!==!!p?a=!0:this.lM&&p&&(a=this.lM.startTimeMs!==p.startTimeMs||this.lM.endTimeMs!==p.endTimeMs||this.lM.postId!==p.postId||this.lM.type!==p.type);if(a){a=this.qO();nn(a.getVideoData())&&a.jl("slr",{et:(p==null?void 0:p.endTimeMs)||-1});a=this.jb();a.lf("applooprange");if(p){var l=new g.nF(p.startTimeMs,p.endTimeMs,{id:"looprange",namespace:"applooprange"});a.addCueRange(l)}else{this.y$().clipConfig=void 0;var y;((l=this.lM)==null?void 0:l.type)!=="repeatChapter"|| isNaN(Number((y=this.lM)==null?void 0:y.loopCount))||(l={loopCount:String(this.lM.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.mf("repeatChapterLoopEvent",l))}this.lM=p;this.Tm.xv("onLoopRangeChange",p||void 0);this.jb()===this.qO()&&(this.VF(),a.vA())}}; g.L.getLoopRange=function(){return this.lM}; g.L.VF=function(){var p="",a=this.jb();this.lM?a!==this.qO()?p="pnea":Mcr(this,a.getCurrentTime())&&(this.lM.loopCount=0,p="ilr"):p="nlr";var l=this.qO();if(nn(l.getVideoData()))if(this.D("html5_gapless_log_loop_range_info")){var y,S;l.jl("slrre",{rej:p,ct:a.getCurrentTime(),lst:(y=this.lM)==null?void 0:y.startTimeMs,let:(S=this.lM)==null?void 0:S.endTimeMs})}else l.jl("slrre",{});p||EmF(this)}; g.L.setPlaybackRate=function(p,a){if(!isNaN(p)){p=cRq(this,p);var l=this.jb();l.getPlaybackRate()!==p&&(l.setPlaybackRate(p),a&&!this.Y.j&&g.HE("yt-player-playback-rate",p),this.Tm.uC("onPlaybackRateChange",p))}}; g.L.getCurrentTime=function(p,a){a=a===void 0?!0:a;var l=this.HZ.sU;if(l)return l.getCurrentTime();var y=p===2&&this.getVideoData().enableServerStitchedDai;l=null;y?l=this.qO():l=this.tP({playerType:p});return l?y&&this.V$?(p=this.HZ.K)?p.getCurrentTime(a):l.getCurrentTime():a?(a=WR(this,l),Og(this,a.getCurrentTime(),a)):l.getCurrentTime():this.HZ.L.getCurrentTime()}; g.L.HW=function(){var p=this.tP({playerType:void 0});if(!p)return this.HZ.L.HW();p=WR(this,p);return Og(this,p.HW(),p)}; g.L.getDuration=function(p,a){a=a===void 0?!0:a;var l=this.HZ.sU;if(l)return l.getDuration();l=this.getVideoData();var y=p===2&&l.enableServerStitchedDai,S=null;y?S=this.qO():S=this.tP({playerType:p});if(!S)return this.HZ.L.getDuration();if(l.hasProgressBarBoundaries()&&!y){var n,V=Number((n=l.progressBarStartPosition)==null?void 0:n.utcTimeMillis),z;n=Number((z=l.progressBarEndPosition)==null?void 0:z.utcTimeMillis);if(!isNaN(V)&&!isNaN(n))return(n-V)/1E3}if(nn(l)&&!l.isLivePlayback)return kR(this, p);if(a)return p=uL(this,S),Og(this,p.getDuration(),p);if(y&&this.V$){if(this.D("html5_huli_ssdai_use_playback_state"))return p=this.HZ,p=p.j===p.K?p.j:null,(p==null?void 0:p.getDuration())||0;var d;return((d=this.HZ.K)==null?void 0:d.getDuration())||0}return S.getDuration()}; g.L.d$=function(p){var a=this.tP({playerType:p});return a?this.fv(a)?(a=uL(this,a),a.d$()-a.getCurrentTime()+this.getCurrentTime(p)):a.d$():this.HZ.L.d$()}; g.L.finishSegmentByCpn=function(){return[]}; g.L.Xs=function(){this.template.Xs();var p=this.Tm;p.state.element=this.template.element;var a=p.state.element,l;for(l in p.state.L)p.state.L.hasOwnProperty(l)&&(a[l]=p.state.L[l]);(p=zo$(this.template.element))&&this.events.J(this.template,p,this.onFullscreenChange)}; g.L.getDebugText=function(p){var a=this.jb().mS(p),l=this.qO();if(l!==this.jb()){l=l.mS(p);for(var y=g.t(Object.keys(l)),S=y.next();!S.done;S=y.next())S=S.value,a["ad"+S]=l[S];if(p){l=a;y={};if(S=Xe(document,"movie_player"))y.bounds=S.getBoundingClientRect(),y["class"]=S.className;S={};var n=g.q$("video-ads");n?(DIe(n,S),S.html=n.outerHTML):S.missing=1;n={};var V=g.q$("videoAdUiSkipContainer"),z=g.q$("ytp-ad-skip-button-container"),d=g.q$("ytp-skip-ad-button"),G=V||z||d;G?(DIe(G,n),n.ima=V?1:0,n.bulleit= z?1:0,n.component=d?1:0):n.missing=1;y=JSON.stringify({player:y,videoAds:S,skipButton:n});l.ad_skipBtnDbgInfo=y}}p&&this.mediaElement&&(a["0sz"]=""+(+YW2(this.mediaElement.getSize())===0),a.op=this.mediaElement.Lp("opacity"),l=this.mediaElement.aI().y+this.mediaElement.getSize().height,a.yof=""+(+l<=0),a.dis=this.mediaElement.Lp("display"));p&&((p=(0,g.L_)())&&(a.gpu=p),(p=this.Y.playerStyle)&&(a.ps=p),this.Y.r7&&(a.webview=1),(p=this.webPlayerContextConfig.jsUrl)&&(a.js=p));a.debug_playbackQuality= this.Tm.getPlaybackQuality(1);a.debug_date=(new Date).toString();a.origin=window.origin;a.timestamp=Date.now();delete a.uga;delete a.q;return JSON.stringify(a,null,2)}; g.L.getFeedbackProductData=function(){var p={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.C().experiments.experimentIds.join(", "),player_release:Z[57]},a=this.getPlayerStateObject().iN;a&&(p.player_error_code=a.errorCode,p.player_error_details=JSON.stringify(a.errorDetail));return p}; g.L.getPresentingPlayerType=function(p){if(this.appState===1)return 1;if(bK(this))return 3;var a;return p&&((a=this.V$)==null?0:B5(a,this.getCurrentTime()))?2:this.qO().getPlayerType()}; g.L.cV=function(){return!1}; g.L.getPlayerStateObject=function(p){var a=this.HZ.sU;return a?a.getPlayerState():this.tP({playerType:p}).getPlayerState()}; g.L.getAppState=function(){return this.appState}; g.L.xEO=function(p){switch(p.type){case "loadedmetadata":this.oJ.start();p=g.t(this.Kr);for(var a=p.next();!a.done;a=p.next())a=a.value,M6$(this,a.id,a.J5m,a.c5s,void 0,!1);this.Kr=[];break;case "loadstart":this.QQ.jh("gv");break;case "progress":case "timeupdate":Xw(p.target.Vh())>=2&&this.QQ.jh("l2s");break;case "playing":g.Kk&&this.oJ.start();if(g.g5(this.Y))p=!1;else{a=g.XK(this.DN());p=this.mediaElement.Lp("display")==="none"||YW2(this.mediaElement.getSize())===0;var l=O1(this.template),y=this.qO().getVideoData(), S=g.dB(this.Y);y=Fh(y);a=!l||a||S||y||this.Y.Ps;p=p&&!a}p&&(p=this.qO(),p.YF(),this.getVideoData().Fh||(this.getVideoData().Fh=1,this.yC(),p.playVideo()))}}; g.L.ays=function(p){this.Tm.EE("onLoadProgress",p)}; g.L.OtO=function(){this.Tm.publish("playbackstalledatstart")}; g.L.JPI=function(p,a){this.Tm.publish("sabrCaptionsDataLoaded",p,a)}; g.L.uXm=function(p){this.qO().Pw(p)}; g.L.t5O=function(p){this.qO().xA(p)}; g.L.Vum=function(p){p=WR(this,this.qO());p=Og(this,p.getCurrentTime(),p);this.Tm.uC("onVideoProgress",p);this.Y.NJ&&rov(this,this.visibility.Yn())&&this.pauseVideo()}; g.L.Ril=function(){this.Tm.uC("onAutoplayBlocked");var p=this.qO().getVideoData();p&&(p.Qo=!0);g.wW(this.Y)&&(p={autoplayBrowserPolicy:Dze(),autoplayIntended:pn(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.mf("embedsAutoplayStatusChanged",p))}; g.L.KBI=function(){this.Tm.publish("progresssync")}; g.L.Tqs=function(){this.Tm.EE("onPlaybackPauseAtStart")}; g.L.waT=function(p){if(this.getPresentingPlayerType()===1){g.mj(p,1)&&!g.h(p.state,64)&&this.y$().isLivePlayback&&this.jb().isAtLiveHead()&&this.Tm.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.mj(p,2)){if(this.lM&&this.lM.endTimeMs>=(this.getDuration()-1)*1E3){EmF(this);return}DNe(this)}if(g.h(p.state,128)){var a=p.state;this.cancelPlayback(5);a=a.iN;JSON.stringify({errorData:a,debugInfo:this.getDebugText(!0)});this.Tm.uC("onError",mtF(a.errorCode));this.Tm.EE("onDetailedError",{errorCode:a.errorCode, errorDetail:a.errorDetail,message:a.errorMessage,messageKey:a.Dt,cpn:a.cpn});(0,g.Ek)()-this.Y.aM>6048E5&&this.Tm.EE("onReloadRequired")}a={};if(p.state.isPlaying()&&!p.state.isBuffering()&&!w1("pbresume","ad_to_video")&&w1("_start","ad_to_video")){var l=this.getVideoData();a.clientPlaybackNonce=l.clientPlaybackNonce;l.videoId&&(a.videoId=l.videoId);g.Bs(a,"ad_to_video");kC("pbresume",void 0,"ad_to_video");ALr(this.Py)}this.Tm.publish("applicationplayerstatechange",p)}}; g.L.fM=function(p){this.HZ.sU||this.Tm.publish("presentingplayerstatechange",p)}; g.L.XP=function(p){ln(this,yG(p.state));g.h(p.state,1024)&&this.Tm.isMutedByMutedAutoplay()&&(vV(this,{muted:!1,volume:this.zD.volume},!1),KN(this,!1))}; g.L.onPlayerRequestSent=function(p){this.Tm.xv("onPlayerRequestSent",p)}; g.L.CI=function(p,a){p==="newdata"&&HqO(this);this.Tm.publish("applicationvideodatachange",p,a)}; g.L.Htl=function(p,a){this.D("html5_afmt_change_update_volume")&&q3(this);this.Tm.EE("onPlaybackAudioChange",this.Tm.getAudioTrack().Mc.name);this.Tm.publish("internalaudioformatchange",this.Tm.getAudioTrack().Mc.id,a)}; g.L.Pr9=function(p){var a=this.qO().getVideoData();p===a&&this.Tm.uC("onPlaybackQualityChange",p.S.video.quality)}; g.L.NN=function(){var p=this.HZ.U[2]||null;p&&(p=p.getVideoData(),this.qO().jl("ssdai",{cleanaply:1,acpn:p==null?void 0:p.clientPlaybackNonce,avid:p.videoId,isDai:this.y$().enableServerStitchedDai?1:0}),delete this.HZ.U[2])}; g.L.zic=function(p,a){this.G_(p,this.qO(),a)}; g.L.G_=function(p,a,l){this.Y.ao()&&a.jl("vdc",{type:p,vid:l.videoId||"",cpn:l.clientPlaybackNonce||""});a===this.jb()&&(this.Y.b_=l.oauthToken);a===this.jb()&&(this.getVideoData().enableServerStitchedDai&&!this.V$?(this.jb().jl("sdai",{initSstm:1}),this.V$=new g.gK(this.Tm,this.Y,this.jb(),this)):!this.getVideoData().enableServerStitchedDai&&this.V$&&(this.V$.dispose(),this.V$=null));if(p==="newdata")II(this.Py,2),this.Tm.publish("videoplayerreset",a);else{if(!this.mediaElement)return;if(p==="dataloaded")if(this.jb()=== this.qO()){if(UmF(l.Ws,l.xX),!this.jb().getPlayerState().isError()){var y=bK(this);this.y$().isLoaded();y&&this.Ja(6);YSq(this);Gp(this.Py)||uK(this)}}else YSq(this);if(a.getPlayerType()===1&&(this.Y.t9&&pM_(this),this.getVideoData().isLivePlayback&&!this.Y.yO&&this.jj("html5.unsupportedlive",2,"DEVICE_FALLBACK"),l.isLoaded()&&((N6M(l)||this.getVideoData().UD)&&this.Tm.publish("legacyadtrackingpingchange",this.getVideoData()),l.hasProgressBarBoundaries()))){var S;y=Number((S=this.getVideoData().progressBarEndPosition)== null?void 0:S.utcTimeMillis)/1E3;!isNaN(y)&&(S=this.d$())&&(S-=this.getCurrentTime(),y=(y-S)*1E3,S=this.kx.progressEndBoundary,(S==null?void 0:S.start)!==y&&(S&&this.Wt([S]),y=new g.nF(y,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.jb().addCueRange(y),this.kx.progressEndBoundary=y))}this.Tm.publish("videodatachange",p,l,a.getPlayerType())}this.Tm.uC("onVideoDataChange",{type:p,playertype:a.getPlayerType()});this.VF();(p=l.n_)?this.Kg.vc(p,l.clientPlaybackNonce): C1E(this.Kg)}; g.L.ML=function(){uf(this,null);this.Tm.EE("onPlaylistUpdate")}; g.L.SEO=function(p){delete this.kx[p.getId()];this.jb().removeCueRange(p);a:{p=this.getVideoData();var a,l,y,S,n,V,z,d,G,B,c=((a=p.Hs)==null?void 0:(l=a.contents)==null?void 0:(y=l.singleColumnWatchNextResults)==null?void 0:(S=y.autoplay)==null?void 0:(n=S.autoplay)==null?void 0:n.sets)||((V=p.Hs)==null?void 0:(z=V.contents)==null?void 0:(d=z.twoColumnWatchNextResults)==null?void 0:(G=d.autoplay)==null?void 0:(B=G.autoplay)==null?void 0:B.sets);if(c)for(a=g.t(c),l=a.next();!l.done;l=a.next())if(l= l.value,S=y=void 0,l=l.autoplayVideo||((y=l.autoplayVideoRenderer)==null?void 0:(S=y.autoplayEndpointRenderer)==null?void 0:S.endpoint),y=g.T(l,g.SK),n=S=void 0,l!=null&&((S=y)==null?void 0:S.videoId)===p.videoId&&((n=y)==null?0:n.continuePlayback)){p=l;break a}p=null}(a=g.T(p,g.SK))&&this.Tm.xv("onPlayVideo",{sessionData:{autonav:"1",itct:p==null?void 0:p.clickTrackingParams},videoId:a.videoId,watchEndpoint:a})}; g.L.Ja=function(p){p!==this.appState&&(p===2&&this.getPresentingPlayerType()===1&&(ln(this,-1),ln(this,5)),this.appState=p,this.Tm.publish("appstatechange",p))}; g.L.jj=function(p,a,l,y,S){this.jb().Ne(p,a,l,y,S)}; g.L.oi=RR(13);g.L.isAtLiveHead=function(p,a){a=a===void 0?!1:a;var l=this.tP({playerType:p});if(!l)return this.HZ.L.isAtLiveHead();p=uL(this,l);l=WR(this,l);return p!==l?p.isAtLiveHead(Og(this,l.getCurrentTime(),l),!0):p.isAtLiveHead(void 0,a)}; g.L.Ak=function(){var p=this.tP({playerType:void 0});return p?uL(this,p).Ak():this.HZ.L.Ak()}; g.L.seekTo=function(p,a,l,y,S,n){a=a!==!1;if(y=this.tP({playerType:y}))if(this.appState===2&&M4(this),this.fv(y))j5(this)?this.V$.seekTo(p,{seekSource:S},a,l):this.I4.seekTo(p,{seekSource:S},a,l);else{this.D("html5_sabr_csdai_seek_log")||(n="");var V;y.seekTo(p,{eI:!a,JS:l,JP:"application"+((V=n)!=null?V:""),seekSource:S})}}; g.L.seekBy=function(p,a,l,y){this.seekTo(this.getCurrentTime()+p,a,l,y,void 0,"_by")}; g.L.itT=function(){this.Tm.uC("SEEK_COMPLETE")}; g.L.lyv=function(){this.Tm.xv("onAbnormalityDetected")}; g.L.qC7=function(p){this.Tm.xv("onSnackbarMessage",p)}; g.L.Zts=function(p){var a=this.qO(),l=a.getVideoData();if(this.appState===1||this.appState===2)l.startSeconds=p;this.appState===2?g.h(a.getPlayerState(),512)||M4(this):this.Tm.uC("SEEK_TO",p)}; g.L.s4z=function(){this.Tm.publish("airplayactivechange")}; g.L.APv=function(){this.Tm.publish("airplayavailabilitychange")}; g.L.showAirplayPicker=function(){this.qO().fE()}; g.L.kRT=function(){this.Tm.publish("beginseeking")}; g.L.tuV=function(){this.Tm.publish("endseeking")}; g.L.getStoryboardFormat=function(p){return(p=this.tP({playerType:p}))?uL(this,p).getStoryboardFormat():this.HZ.L.getStoryboardFormat()}; g.L.d4=function(p){return(p=this.tP({playerType:p}))?uL(this,p).getVideoData().d4():this.HZ.L.d4()}; g.L.fv=function(p){p=(p||this.qO()).getVideoData();if(j5(this))p=p===this.V$.playback.getVideoData();else a:{var a=this.I4;if(p===a.L.getVideoData()&&a.S.length)p=!0;else{a=g.t(a.S);for(var l=a.next();!l.done;l=a.next())if(p.a4===l.value.a4){p=!0;break a}p=!1}}return p}; g.L.My=function(p,a,l,y,S,n,V,z){var d=j5(this);this.qO().jl("appattl",{sstm:this.V$?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:d});d?(l=r8A(this.V$,p,a,l,y,S,n,V),p=(l==null?void 0:l.a4)||"",(this.D("html5_ssdai_new_decoration_logic")||this.jb().getVideoData().y7)&&this.jb().uA(z||"",a,(l==null?void 0:l.clientPlaybackNonce)||"")):p=A7F(this.I4,p,l,y,S,n);return p}; g.L.s4=function(p,a,l,y,S,n,V){if(j5(this)){var z;(z=this.V$)==null||r8A(z,p,a,l,y,S,n,V)}}; g.L.uQ=function(p){(this.D("html5_ssdai_new_decoration_logic")||this.jb().getVideoData().y7)&&this.jb().uA(p,"","");var a;(a=this.V$)==null||a.uQ(p)}; g.L.lP=function(p,a){p=p===void 0?-1:p;a=a===void 0?Infinity:a;j5(this)||WAq(this.I4,p,a)}; g.L.Ax=function(p,a,l){if(j5(this)){var y=this.V$,S=y.L.tP({a4:p});S?(l===void 0&&(l=S.fh),yDA(y,S,a,l)):y.Tf("Invalid_timelinePlaybackId_"+p+"_specified")}else{y=this.I4;S=null;for(var n=g.t(y.S),V=n.next();!V.done;V=n.next())if(V=V.value,V.a4===p){S=V;break}S?(l===void 0&&(l=S.fh),zHZ(y,S,a,l)):Hq(y,"InvalidTimelinePlaybackId timelinePlaybackId="+p)}}; g.L.enqueueVideoByPlayerVars=function(p,a,l,y){l=l===void 0?Infinity:l;y=y===void 0?"":y;this.fv();p=new g.rO(this.Y,p);y&&(p.a4=y);nmK(this,p,a,l)}; g.L.queueNextVideo=function(p,a,l,y,S){l=l===void 0?NaN:l;p=this.preloadVideoByPlayerVars(p,a===void 0?1:a,l,y===void 0?"":y,S===void 0?"":S);a=this.qO();p&&(this.D("html5_check_queue_on_data_loaded")?this.C().supportsGaplessShorts()&&a.getVideoData().K&&(l=this.xu,y=this.lX.W,l.j!==p&&(l.S=a,l.j=p,l.U=1,l.L=p.getVideoData(),l.W=y,l.L.isLoaded()?l.G():l.L.subscribe("dataloaded",l.G,l))):(l=QJM(a,p,this.lX.W),l!=null?(a.jl("sgap",l),a.getVideoData().K&&a.iJ(!1)):(p=p.getVideoData(),a=this.xu,a.L!== p&&(a.L=p,a.U=1,p.isLoaded()?a.K():a.L.subscribe("dataloaded",a.K,a)))))}; g.L.nJ=function(p,a,l,y){var S=this;l=l===void 0?0:l;y=y===void 0?0:y;uL(this,this.qO()).L4();ir$(this.lX,p,a,l,y).then(function(){S.Tm.EE("onQueuedVideoLoaded")},function(){})}; g.L.B9=function(){return this.lX.B9()}; g.L.jw=function(p){var a=this.lX.L;return a?a.Am(p):!1}; g.L.clearQueue=function(p,a){this.lX.clearQueue(p===void 0?!1:p,a===void 0?!1:a)}; g.L.loadVideoByPlayerVars=function(p,a,l,y,S,n){a=a===void 0?1:a;var V=this.jb();if(a===2&&this.y$().enableServerStitchedDai&&V&&!V.q9())return V.jl("lvonss",{vid:(p==null?void 0:p.videoId)||"",ptype:a}),!1;var z=!1;V=new g.rO(this.Y,p);V.Hk=n;g.Ry(this.Y)&&!V.Sj&&OZ(this.QQ);var d;n=this.QQ;var G=(d=V.UO)!=null?d:"";n.timerName=G;this.QQ.Xb("pl_i");this.D("web_player_early_cpn")&&V.clientPlaybackNonce&&this.QQ.infoGel({clientPlaybackNonce:V.clientPlaybackNonce});Ce$(V).supportsVp9Encoding===!1&& this.qO().jl("noVp9enc",{});if(this.C().supportsGaplessShorts()){d=YuO(this.lX,V,a);if(d==null){ln(this,-1);var B;((B=this.lX.L)==null?0:B.getVideoData().isAd())||hL(this);p=this.lX;p.app.C().D("html5_gapless_new_slr")?FC(p.app,"gaplessshortslooprange"):p.app.setLoopRange(null);p.app.getVideoData().D5=!0;var c;(c=p.L)==null||c.qz();var r;(r=p.L)==null||r.mA();l={JP:"gapless_to_next_video",seekSource:60,E_:p.W.L};y=g.sW(p.app.C().experiments,"html5_gapless_seek_offset");S=u7A(p);if(p.W.L){var w;V= ((w=p.U)==null?void 0:VY(w))||{};w=V.MS;V=V.At;V!=null&&w!=null&&(S=V-w+.001)}var P;(P=p.app.qO())==null||P.seekTo(S+y,l);if(!p.app.getPlayerStateObject(a).isPlaying()){var F;(F=p.app.qO())==null||F.playVideo(!0)}var v;(v=p.app.qO())==null||v.aL();p.K();return!0}P=this.D("html5_shorts_gapless_preload_fallback");F=this.lX.L;P&&F&&!F.Gm()&&(v=F.getVideoData(),this.HZ.W.set(v3(a,v),F,3600));this.lX.clearQueue(P);this.qO().jl("sgap",{f:d})}if(S){for(;V.aD.length&&V.aD[0].isExpired();)V.aD.shift();P=V.aD.length- 1;z=P>0&&S.S(V.aD[P])&&S.S(V.aD[P-1]);V.aD.push(S)}l||(p&&Ih(p)?(Rh(this.Y)&&!this.uX&&(p.fetch=0),uf(this,p)):this.playlist&&uf(this,null),p&&(this.uX=ID(!1,p.external_list)));this.Tm.publish("loadvideo");P=this.w1(V,a,y);z&&this.jj("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+V.aD.join()).replace(/[;:,]/g,"_"));return P}; g.L.preloadVideoByPlayerVars=function(p,a,l,y,S){a=a===void 0?1:a;l=l===void 0?NaN:l;S=S===void 0?"":S;y=a;var n=S,V=Zs(p);if(y=this.HZ.W.get(y+"_"+V+"_"+n+"_"+ +(p.autonav==="1"||p.autonav===!0)+ +(p.autoplay==="1"||p.autoplay===!0||p.autoplay===1))||null)return y;p=new g.rO(this.Y,p);S&&(p.a4=S);S=v3(a,p);y=this.qO();n=v3(y.getPlayerType(),y.getVideoData());S===n?(y.rI(!0),p.dispose(),l=null):(p.b_=!0,p=wO(this,a,p,!0),a===1&&Gr(this.Y)||p.rI(!0),this.HZ.W.set(S,p,l||3600),l=p);return l}; g.L.setMinimized=function(p){this.visibility.setMinimized(p);(p=Zyr(this.Py))&&(this.isMinimized()?p.load():p.unload());this.Tm.publish("minimized")}; g.L.setInline=function(p){this.visibility.setInline(p)}; g.L.setInlinePreview=function(p){this.visibility.setInline(p)}; g.L.CH=function(p){yBU(this,p)||this.visibility.CH(p)}; g.L.setSqueezeback=function(p){this.visibility.setSqueezeback(p)}; g.L.LL=function(){var p,a=(p=this.mediaElement)==null?void 0:p.gG();a&&(this.Y.iA&&jD(id(function(){return document.exitFullscreen()}),function(){}),jD(id(function(){return Kz(a)}),function(){}))}; g.L.nyO=function(){this.mediaElement.gG();this.mediaElement.gG().webkitPresentationMode==="picture-in-picture"?this.CH(!0):this.CH(!1)}; g.L.togglePictureInPicture=function(){this.qO().togglePictureInPicture()}; g.L.w1=function(p,a,l){a=a===void 0?1:a;w1("_start",this.QQ.timerName)||g.Es(WB)(void 0,this.QQ.timerName);var y=!1,S=e0(this,a,p,!1);S?(y=!0,p.dispose()):(S=wO(this,a,p,!0,l),(this.D("html5_onesie")||this.D("html5_load_before_stop"))&&S.gK()&&S.rI(),this.oJ.stop(),a===1&&a!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,a),this.vI(S));S===this.jb()&&(this.Y.b_=p.oauthToken);if(!S.gK())return!1;if(S===this.jb())return this.Ja(1),p=M4(this),y&&this.D("html5_player_preload_ad_fix")&& S.getPlayerType()===1&&S.Mu()&&this.G_("dataloaded",S,S.getVideoData()),p;S.YA();return!0}; g.L.cueVideoByPlayerVars=function(p,a){var l=this;a=a===void 0?1:a;var y=this.jb();if(this.y$().enableServerStitchedDai&&y&&!y.q9()&&p&&Object.keys(p).length>0)y.jl("qvonss",{vid:(p==null?void 0:p.videoId)||"",ptype:a});else if(p&&Ih(p))if(this.S3=!0,uf(this,p),(p=g.p2(this.playlist))&&p.Me())wa(this,p,a);else this.playlist.onReady(function(){kD(l)}); else{a||(a=this.getPresentingPlayerType());a===1&&this.ML();y=new g.rO(this.Y,p);var S=g.wW(this.Y)&&!this.Y.Xu&&a===1&&!y.isAd()&&!y.n1;this.Tm.publish("cuevideo");S?(this.qO().getVideoData().loading=!0,c7v(y,p?p:{}).then(function(n){wa(l,n,a)}),y.dispose()):wa(this,y,a)}}; g.L.FT=function(p,a,l,y,S,n,V){if(!p&&!l)throw Error("Playback source is invalid");if($N(this.Y)||g.zB(this.Y))return a=a||{},a.lact=XV(),a.vis=this.Tm.getVisibilityState(),this.Tm.xv("onPlayVideo",{videoId:p,watchEndpoint:n,sessionData:a,listId:l}),!1;Y8h(this.QQ);this.QQ.reset();p={video_id:p};y&&(p.autoplay="1");y&&(p.autonav="1");n&&(p.player_params=n.playerParams);V&&(p.oauth_token=V);l?(p.list=l,this.loadPlaylist(p)):this.loadVideoByPlayerVars(p,1);return!0}; g.L.cuePlaylist=function(p,a,l,y){this.S3=!0;EfM(this,p,a,l,y)}; g.L.loadPlaylist=function(p,a,l,y){this.S3=!1;EfM(this,p,a,l,y)}; g.L.rD=function(){return this.Tm.isMutedByMutedAutoplay()?!1:this.HZ.sU?!0:!(!this.playlist||!this.playlist.nO())}; g.L.k0=RR(5); g.L.nextVideo=function(p,a){var l=g.oz(this.jb().getVideoData());g.$9(this.Tm)&&l?this.FT(l.videoId,a?l.QI:l.sessionData,l.playlistId,a,void 0,l.q4||void 0):this.uX?this.Tm.EE("onPlaylistNext"):this.getPresentingPlayerType()===3?Se(this.Py).nextVideo():!this.playlist||Rh(this.Y)&&!this.Tm.isFullscreen()||(this.playlist.nO(p)&&WiE(this.playlist,dXM(this.playlist)),this.playlist.loaded?(p=a&&this.Y.D("html5_player_autonav_logging"),a&&this.Tm.publish("playlistautonextvideo"),this.w1(g.p2(this.playlist,void 0, a,p),1)):this.S3=!1)}; g.L.previousVideo=function(p){this.uX?this.Tm.EE("onPlaylistPrevious"):this.getPresentingPlayerType()===3?Se(this.Py).lY():!this.playlist||Rh(this.Y)&&!this.Tm.isFullscreen()||(this.playlist.NR(p)&&WiE(this.playlist,zgh(this.playlist)),this.playlist.loaded?this.w1(g.p2(this.playlist),1):this.S3=!1)}; g.L.playVideoAt=function(p){this.uX?this.Tm.EE("onPlaylistIndex",p):this.playlist&&(this.playlist.loaded?this.w1(g.p2(this.playlist,p),1):this.S3=!1,WiE(this.playlist,p))}; g.L.getPlaylist=function(){return this.playlist}; g.L.VI=RR(19);g.L.IJ=function(p){this.Kr=g.Tz(this.Kr,function(n){return n.id!==p}); for(var a=this.jb(),l=a.ov(),y=0;y0&&(d=Math.floor(G/1E3))}d=a?a.DI:d;var B={AD_BLOCK:this.L++,AD_BREAK_LENGTH:d,AUTONAV_STATE:An(this.player.C()),CA_TYPE:"image",CPN:z.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Ak()*1E3,LACT:XV(),LIVE_INDEX:a?this.U++:1,LIVE_TARGETING_CONTEXT:a&&a.context?a.context:"",MIDROLL_POS:n? Math.round(n.start/1E3):0,MIDROLL_POS_MS:n?Math.round(n.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Fu().W9().height,P_W:this.player.Fu().W9().width,YT_REMOTE:S?S.join(","):""},c=Oc(Ql);Object.keys(c).forEach(function(w){c[w]!=null&&(B[w.toUpperCase()]=c[w].toString())}); l!==""&&(B.BISCOTTI_ID=l);l={};hr(p)&&(l.sts="20354",(a=this.player.C().forcedExperiments)&&(l.forced_experiments=a));var r=mP(g.bi(p,B),l);return r.split("?").length!==2?wV(Error("Invalid AdBreakInfo URL")):g.WH(this.player.C(),z==null?void 0:z.oauthToken).then(function(w){if(w&&Er()){var P=CD();vR(P,w)}w=y.player.eE(P);P=H_$(y,r,B,z.isMdxPlayback,V);return g.JV(w,P,"/youtubei/v1/player/ad_break").then(function(F){return F})})}; TT.prototype.reset=function(){this.U=this.L=1};g.A(RS,TT); RS.prototype.S=function(p,a,l){a=a===void 0?{}:a;var y=a.lJ;var S=a.Kq;var n=a.cueProcessedMs;l=l===void 0?"":l;a=this.L;this.L++;var V=this.player.C().D("h5_disable_macro_substitution_in_get_ad_break")?p:MAM(this,p,{lJ:y,Kq:S,cueProcessedMs:n},l,a);if(V.split("?").length!==2)return Math.random()<.1&&g.Mf(Error("Invalid AdBreakInfo URL")),wV(Error("Invalid AdBreakInfo URL"));var z=this.player.getVideoData(1).isMdxPlayback,d=l;l=Ipr.exec(V);l=l!=null&&l.length>=2?l[1]:"";p=Rqh.test(V);var G=ua$.exec(V); G=G!=null&&G.length>=2?G[1]:"";var B=O_v.exec(V);B=B!=null&&B.length>=2&&!Number.isNaN(Number(B[1]))?Number(B[1]):1;var c=krE.exec(V);c=c!=null&&c.length>=2?c[1]:"0";var r=lN(this.player.C().M0),w=g.Ha(this.player.getVideoData(1).Xu,!0);MHE(this,w,V,d===""?"":d,this.player.C(),this.player.getVideoData(1));d={splay:!1,lactMilliseconds:String(XV()),playerHeightPixels:Math.trunc(this.player.Fu().W9().height),playerWidthPixels:Math.trunc(this.player.Fu().W9().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20354,autonavState:An(this.player.C())};if(z){z={};var P=this.player.C().QS;m9F(z,P?P.join(","):"")&&(d.mdxContext=z)}if(z=tHO.includes(r)?void 0:g.cB("PREF")){P=z.split(RegExp("[:&]"));for(var F=0,v=P.length;F1&&I[1].toUpperCase()==="TRUE"){w.user.lockedSafetyMode=!0;break}}d.autoCaptionsDefaultOn=jZo(z)}V=WHr.exec(V);(V=V!=null&&V.length>=2?V[1]:"")&&G&&(w.user.credentialTransferTokens= [{token:V,scope:"VIDEO"}]);V={contentPlaybackContext:d};d=this.player.getVideoData(1).getGetAdBreakContext();z=this.player.getVideoData(1).clientPlaybackNonce;P=n!==void 0?Math.round(n).toString():void 0;F=(y==null?0:y.context)?y.context:void 0;v=0;n&&S&&!y&&(S=S.end-S.start,S>0&&(v=Math.floor(S/1E3)));y=(y=Math.trunc((y?y.DI:v)*1E3))?String(y):void 0;S=this.player.Ak()*1E3;S=Number.isNaN(S)?0:Math.trunc(S);a={adBlock:a,params:l,breakIndex:B,breakPositionMs:c,clientPlaybackNonce:z,topLevelDomain:r, isProxyAdTagRequest:p,context:w,overridePlaybackContext:V,cueProcessedMs:P,videoId:G?G:void 0,liveTargetingParams:F,breakLengthMs:y,driftFromHeadMs:S?String(S):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:d?d:void 0};return Wwe(this,a)};var dC2={uqz:"replaceUrlMacros",uT9:"onAboutThisAdPopupClosed",Als:"executeCommand"};U$.prototype.tJ=function(){return"adPingingEndpoint"}; U$.prototype.oI=function(p,a,l){Xoq(this.uT.get(),p,a,l)};Qm.prototype.tJ=function(){return"changeEngagementPanelVisibilityAction"}; Qm.prototype.oI=function(p){this.B.xv("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:p})};hl.prototype.tJ=function(){return"loggingUrls"}; hl.prototype.oI=function(p,a,l){p=g.t(p);for(var y=p.next();!y.done;y=p.next())y=y.value,Xoq(this.uT.get(),y.baseUrl,a,l,y.attributionSrcMode)};g.A(SBh,g.D);g.A(GA,g.D);g.L=GA.prototype;g.L.addListener=function(p){this.listeners.push(p)}; g.L.removeListener=function(p){this.listeners=this.listeners.filter(function(a){return a!==p})}; g.L.Jo=function(p,a,l,y,S,n,V,z){if(p==="")hF("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(p!==this.L||l){this.L=p;this.sO.get().Jo(p,a,l,y,S,n,V,z);this.ac.get().Jo(p,a,l,y,S,n,V,z);var d;(d=this.Je)==null||d.get().Jo(p,a,l,y,S,n,V,z);this.S.Jo(p,a,l,y,S,n,V,z);d=g.t(this.listeners);for(var G=d.next();!G.done;G=d.next())G.value.Jo(p,a,l,y,S,n,V,z)}else hF("Duplicate content video loaded signal")}; g.L.CMT=function(){this.L&&this.MJ(this.L)}; g.L.MJ=function(p){this.L=void 0;for(var a=g.t(this.listeners),l=a.next();!l.done;l=a.next())l.value.MJ(p)};Nh.prototype.JE=function(p,a,l,y,S){xNA(this);this.W=!a&&l===0;var n=this.B.getVideoData(1),V=this.B.getVideoData(2);n&&(this.contentCpn=n.clientPlaybackNonce,this.videoId=n.videoId,this.L=n.G);V&&(this.adCpn=V.clientPlaybackNonce,this.adVideoId=V.videoId,this.adFormat=V.adFormat);this.j=p;y<=0?(xNA(this),this.W=!a&&l===0):(this.actionType=this.W?a?"unknown_type":"video_to_ad":a?"ad_to_video":"ad_to_ad",this.videoStreamType=S?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.U=!0,w1("_start",this.actionType)&&ege(this)))}; Nh.prototype.reset=function(){return new Nh(this.B)};g.A(sU,g.D);sU.prototype.addCueRange=function(p,a,l,y,S,n,V,z,d){n=n===void 0?3:n;V=V===void 0?1:V;this.L.has(p)?hF("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:p}):(p=new xlM(p,a,l,y,n,z,d),this.L.set(p.id,{Kq:p,listener:S,N5:V}),this.B.Kh([p],V))}; sU.prototype.removeCueRange=function(p){var a=this.L.get(p);a?(this.B.PG([a.Kq],a.N5),this.L.delete(a.Kq.id)):hF("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:p})}; sU.prototype.onCueRangeEnter=function(p){if(this.L.has(p.id))this.L.get(p.id).listener.onCueRangeEnter(p.id)}; sU.prototype.onCueRangeExit=function(p){if(this.L.has(p.id))this.L.get(p.id).listener.onCueRangeExit(p.id)}; g.A(xlM,g.nF);QI.prototype.addPlayerResponseForAssociation=function(p){this.B.addPlayerResponseForAssociation(p)};gp.prototype.SN=function(p){this.B.SN(p)}; gp.prototype.KH=function(p){var a=g.D1.apply(1,arguments);p==="onAdStart"||p==="onAdEnd"?this.B.uC.apply(this.B,[p].concat(g.u0(a))):this.B.xv.apply(this.B,[p].concat(g.u0(a)))};YW.prototype.lC=function(p){return p&&q_(this)};var lyh=null;g.A(Ss,g.qu);Ss.prototype.Fs=function(p){return this.L.hasOwnProperty(p)?this.L[p].Fs():{}}; g.M8("ytads.bulleit.getVideoMetadata",function(p){return Pg().Fs(p)}); g.M8("ytads.bulleit.triggerExternalActivityEvent",function(p,a,l){var y=Pg();l=E3A(l);l!==null&&y.publish(l,{queryId:p,viewabilityString:a})});g.L=n$.prototype;g.L.h5=function(p,a){if(!this.L.has(p))return{};if(a==="seek"){a=!1;a=a===void 0?!1:a;var l=p7($n).d5(p,{});l?Qc(l):a&&(p=p7($n).gQ(null,nu(),!1,p),p.po=3,jSE([p]));return{}}a=rCr(a);if(a===null)return{};var y=this.B.iS();if(!y)return{};var S=this.B.getPresentingPlayerType(!0);if((l=this.B.getVideoData(S))==null||!l.isAd())return{};l={opt_adElement:y,opt_fullscreen:this.sO.get().isFullscreen()};return Abr(a,p,l)}; g.L.b1=function(p,a,l,y,S){this.L.has(p)&&(y<=0||S<=0||p7($n).b1(p,a,l,y,S))}; g.L.oz=function(p){var a;(a=this.L.get(p.queryId))==null||a.oz()}; g.L.ZW=function(p){var a;(a=this.L.get(p.queryId))==null||a.ZW()}; g.L.qD=function(p){var a;(a=this.L.get(p.queryId))==null||a.qD()}; g.L.Jy=function(p){var a;(a=this.L.get(p.queryId))==null||a.Jy()}; g.L.ix=function(p){var a;(a=this.L.get(p.queryId))==null||a.ix()};aY_.prototype.send=function(p,a,l,y){try{mgO(this,p,a,l,y===void 0?!1:y)}catch(S){}};g.A(Sj$,aY_);G$o.prototype.send=function(p,a,l,y){var S=!1;try{if(y==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")S=!0,p=pMF(p);y=S;var n=g.By(p);if(n[1]==="https")var V=p;else n[1]="https",V=cy("https",n[2],n[3],n[4],n[5],n[6],n[7]);var z=xpM(V);n=[];var d=e8M(V)&&this.EO.get().B.C().experiments.Cz("add_auth_headers_to_remarketing_google_dot_com_ping");if(hr(V)||d)n.push({headerType:"USER_AUTH"}),n.push({headerType:"PLUS_PAGE_ID"}),n.push({headerType:"VISITOR_ID"}),n.push({headerType:"EOM_VISITOR_ID"}), n.push({headerType:"AUTH_USER"}),n.push({headerType:"DATASYNC_ID"});this.L.send({baseUrl:V,scrubReferrer:z,headers:n},a,l,y)}catch(G){}};Vh.prototype.Wl=function(){return this.B.Wl(1)};g.A(aK,g.D);g.L=aK.prototype;g.L.sM=function(){return this.B.getVideoData(1).clientPlaybackNonce}; g.L.addListener=function(p){this.listeners.push(p)}; g.L.removeListener=function(p){this.listeners=this.listeners.filter(function(a){return a!==p})}; g.L.Jo=function(){this.L2.clear();this.kq=null;this.xS.get().clear()}; g.L.MJ=function(){}; g.L.N$O=function(p,a,l,y,S){a.videoId==="nPpU29QrbiU"&&this.B.jl("ads_ssm_vdc_s",{pt:l,dvt:p});oH(this.EO.get())&&p!=="dataloaded"||IPh(this,a,l);if(q_(this.EO.get())&&p==="newdata"&&S!==void 0){p=this.sM();var n=a.clientPlaybackNonce,V={};WL(this,"rte",(V.ec=n,V.xc=y==null?void 0:y.clientPlaybackNonce,V.tr=S,V.pt=l,V.ia=n!==p,V.ctp=Mu(n),V));a=a.clientPlaybackNonce;y=y==null?void 0:y.clientPlaybackNonce;S=aTh(S);if(S!==1)if(y!==void 0)for(l=g.t(this.listeners),p=l.next();!p.done;p=l.next())p.value.Hb(y, a,S);else hF("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:a,transitionReason:String(S)});S=g.t(this.listeners);for(y=S.next();!y.done;y=S.next())y.value.Ai(a)}}; g.L.reT=function(p,a){p!==void 0&&(this.kq=p,a===void 0?hF("Expected ad video start time on SS video changed"):this.L2.set(p,a));var l=this.B.getPresentingPlayerType(!0),y=this.B.getVideoData(l),S;p===void 0?S=null:S=this.xS.get().L.get(p)||null;this.B.getVideoData(1).jl("ads_ssvc",{pt:l,cpn:y==null?void 0:y.clientPlaybackNonce,crtt:this.B.getCurrentTime(1,!1),atlh:this.B.isAtLiveHead(),adstt:a,pid:p,slid:S==null?void 0:S.layoutId});y?IPh(this,y,l):hF("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.B.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:p})}; g.L.ib=function(p,a){var l=p.author,y=p.clientPlaybackNonce,S=p.isListed,n=p.a4,V=p.title,z=p.E2,d=p.xz,G=p.isMdxPlayback,B=p.C8,c=p.mdxEnvironment,r=p.isAutonav,w=p.c8,P=p.Sj,F=p.e_,v=p.videoId||"",I=p.profilePicture||"",b=p.mK||"",O=p.LC()||!1,m=p.vy()||!1;p=p.CP||void 0;n=this.xS.get().L.get(n)||{layoutId:null,slotId:null};var H=this.B.getVideoData(1),Y=H.ke();H=H.getPlayerResponse();a=1E3*this.B.getDuration(a);var N=1E3*this.B.getDuration(1),yo,zq,S$=(H==null?void 0:(yo=H.playerConfig)==null? void 0:(zq=yo.daiConfig)==null?void 0:zq.enableDai)||!1,BE,f;yo=(H==null?void 0:(BE=H.playerConfig)==null?void 0:(f=BE.daiConfig)==null?void 0:f.enablePreroll)||!1;return Object.assign({},n,{videoId:v,author:l,clientPlaybackNonce:y,r9:a,TD:N,daiEnabled:S$,rO:yo,isListed:S,ke:Y,profilePicture:I,title:V,mK:b,E2:z,xz:d,CP:p,isMdxPlayback:G,C8:B,mdxEnvironment:c,isAutonav:r,c8:w,Sj:P,e_:F,LC:O,vy:m})}; g.L.fz=function(){this.listeners.length=0;this.HA=null;g.D.prototype.fz.call(this)};g.A(yh,g.D);g.L=yh.prototype;g.L.Jo=function(){var p=this;q_(this.EO.get())||(this.L=PR(function(){p.B.Gm()||p.B.iG("ad",1)}))}; g.L.MJ=function(){}; g.L.addListener=function(p){this.listeners.push(p)}; g.L.removeListener=function(p){this.listeners=this.listeners.filter(function(a){return a!==p})}; g.L.NC=function(){}; g.L.playVideo=function(){this.B.playVideo()}; g.L.pauseVideo=function(){this.B.pauseVideo()}; g.L.resumeVideo=function(p){this.xr(p)&&this.B.playVideo()}; g.L.xr=function(p){return this.B.getPlayerState(p)===2}; g.L.getCurrentTimeSec=function(p,a,l){var y=this.ac.get().kq;if(p===2&&!a&&y!==null)return qs(this,y);s1(this.EO.get(),"html5_ssap_use_cpn_to_get_time")||(l=void 0);return l!==void 0?this.B.getCurrentTime(p,a,l):this.B.getCurrentTime(p,a)}; g.L.getVolume=function(){return this.B.getVolume()}; g.L.isMuted=function(){return this.B.isMuted()}; g.L.getPresentingPlayerType=function(){return this.B.getPresentingPlayerType(!0)}; g.L.getPlayerState=function(p){return this.B.getPlayerState(p)}; g.L.getGetAdBreakContext=function(){return this.B.getGetAdBreakContext()}; g.L.isFullscreen=function(){return this.B.isFullscreen()}; g.L.isAtLiveHead=function(){return this.B.isAtLiveHead()}; g.L.ZH=function(p){this.B.ZH(p)}; g.L.jXc=function(){var p=this.B.getPresentingPlayerType(!0),a=this.getCurrentTimeSec(p,!1);if(p===2){p=g.t(this.listeners);for(var l=p.next();!l.done;l=p.next())l.value.J3(a)}else if(p===1)for(p=g.t(this.Ny),l=p.next();!l.done;l=p.next())l.value.NC(a)}; g.L.IyO=function(p){for(var a=g.t(this.listeners),l=a.next();!l.done;l=a.next())l.value.Kv(p,this.getPresentingPlayerType())}; g.L.onFullscreenToggled=function(p){for(var a=g.t(this.listeners),l=a.next();!l.done;l=a.next())l.value.onFullscreenToggled(p)}; g.L.onVolumeChange=function(){for(var p=g.t(this.listeners),a=p.next();!a.done;a=p.next())a.value.onVolumeChange()}; g.L.A5=function(){for(var p=this.B.isMinimized(),a=g.t(this.listeners),l=a.next();!l.done;l=a.next())l.value.A5(p)}; g.L.iX=function(p){for(var a=g.t(this.listeners),l=a.next();!l.done;l=a.next())l.value.iX(p)}; g.L.VQ=function(){for(var p=this.B.Fu().W9(),a=g.t(this.listeners),l=a.next();!l.done;l=a.next())l.value.U2(p)}; g.L.cG=function(p){for(var a=g.t(this.listeners),l=a.next();!l.done;l=a.next())l.value.cG(p)}; g.L.o7=function(){for(var p=g.t(this.listeners),a=p.next();!a.done;a=p.next())a.value.o7()};g.A(ON$,g.D);g.A(ev,g.D);ev.prototype.fz=function(){this.C9.Gm()||this.C9.get().removeListener(this);g.D.prototype.fz.call(this)};qx.prototype.fetch=function(p){var a=p.Ln;return this.L.fetch(p.C$,{lJ:p.lJ===void 0?void 0:p.lJ,Kq:a,cueProcessedMs:p.cueProcessedMs===void 0?0:p.cueProcessedMs}).then(function(l){return DrE(l,a)})};g.A(Ec,g.D);g.L=Ec.prototype;g.L.addListener=function(p){this.listeners.push(p)}; g.L.removeListener=function(p){this.listeners=this.listeners.filter(function(a){return a!==p})}; g.L.WS=function(p){c$A(this,p,1)}; g.L.onAdUxClicked=function(p,a){CE(this,function(l){l.yh(p,a)})}; g.L.V0=function(p){CE(this,function(a){a.kR(p)})}; g.L.P7=function(p){CE(this,function(a){a.Rg(p)})}; g.L.S6l=function(p){CE(this,function(a){a.Q_(p)})};rn.prototype.reduce=function(p){switch(p.event){case "unknown":return}var a=p.identifier;var l=this.L[a];l?a=l:(l={S0:null,zB:-Infinity},a=this.L[a]=l);l=p.startSecs+p.L/1E3;if(!(l=this.L.startSecs&&l.startSecs<=this.L.startSecs+this.L.DI)){var y=void 0;if(zd(this.EO.get())&&l.identifier!==((y=this.L)==null?void 0:y.identifier)){var S=y=void 0,n=void 0,V=void 0;O4(this.uT.get(),"ocud","ccpi."+l.identifier+";ccpe."+l.event+";ccps."+l.startSecs+";\n ccpd."+l.DI+";pcpi."+((y=this.L)==null?void 0:y.identifier)+ ";pcpe."+((S=this.L)==null?void 0:S.event)+";\n pcps."+((n=this.L)==null?void 0:n.startSecs)+";pcpd."+((V=this.L)==null?void 0:V.DI)+";")}y=void 0;l.identifier!==((y=this.L)==null?void 0:y.identifier)&&hF("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.L=l,Fko(this,l)}}; g.L.fz=function(){this.S!=null&&(this.S.unsubscribe("cuepointupdated",this.LD,this),this.S=null);this.listeners.length=0;this.ya.length=0;g.D.prototype.fz.call(this)};g.L=E3.prototype;g.L.My=function(p,a,l,y,S,n,V,z){return this.B.My(p,a,l,y,S,n,V,z)}; g.L.lP=function(p,a){this.B.lP(p,a)}; g.L.Ax=function(p,a,l){this.B.Ax(p,a,l)}; g.L.uQ=function(p){this.B.uQ(p)}; g.L.s4=function(p,a,l,y,S,n,V,z){this.B.s4(p,a,l,y,S,n,V,z)}; g.L.qJ=function(p){return this.B.qJ(p)}; g.L.finishSegmentByCpn=function(p,a,l){l=UCA(l);this.B.finishSegmentByCpn(p,a,l)};g.A(SZ,g.D);g.A(U2f,g.D);g.A(rpA,g.D);g.A(I$M,g.D);g.A(Qkq,g.D);g.A(gb$,g.D);g.A(uh,g.D);uh.prototype.U=function(){return this.S};g.A(Mt,Lp); Mt.prototype.U=function(p){var a=p.content;if(a.componentType==="shopping-companion")switch(p.actionType){case 1:case 2:p=this.L.getVideoData(1);this.L.xv("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,shoppingCompanionCarouselRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:this.L.xv("updateKevlarOrC3Companion",{})}else if(a.componentType==="action-companion")switch(p.actionType){case 1:case 2:p=this.L.getVideoData(1); this.L.xv("updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,actionCompanionAdRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a.renderer&&(a=this.L.getVideoData(1),this.L.xv("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId})),this.L.xv("updateKevlarOrC3Companion",{})}else if(a.componentType==="image-companion")switch(p.actionType){case 1:case 2:p=this.L.getVideoData(1);this.L.xv("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,imageCompanionAdRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a=this.L.getVideoData(1),this.L.xv("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId}),this.L.xv("updateKevlarOrC3Companion",{})}else if(a.componentType==="top-banner-image-text-icon-buttoned")switch(p.actionType){case 1:case 2:p=this.L.getVideoData(1);this.L.xv("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,topBannerImageTextIconButtonedLayoutViewModel:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a.renderer&&(a=this.L.getVideoData(1),this.L.xv("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId})),this.L.xv("updateKevlarOrC3Companion",{})}else if(a.componentType==="banner-image")switch(p.actionType){case 1:case 2:p=this.L.getVideoData(1);this.L.xv("updateKevlarOrC3Companion", {contentVideoId:p&&p.videoId,bannerImageLayoutViewModel:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a=this.L.getVideoData(1),this.L.xv("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId}),this.L.xv("updateKevlarOrC3Companion",{})}else if(a.componentType==="ads-engagement-panel")switch(a=a.renderer,p.actionType){case 1:case 2:this.L.xv("updateEngagementPanelAction",a.addAction);this.L.xv("changeEngagementPanelVisibility", a.expandAction);break;case 3:this.L.xv("changeEngagementPanelVisibility",a.hideAction),this.L.xv("updateEngagementPanelAction",a.removeAction)}else if(a.componentType==="ads-engagement-panel-layout"){var l=a.renderer;switch(p.actionType){case 1:case 2:this.L.xv("updateEngagementPanelAction",{action:O6(l.addAction),layoutId:a.layoutId,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});this.L.xv("changeEngagementPanelVisibility",O6(l.expandAction));break;case 3:this.L.xv("changeEngagementPanelVisibility", O6(l.hideAction)),this.L.xv("updateEngagementPanelAction",{action:O6(l.removeAction)})}}};g.A(NLA,hI);g.L=NLA.prototype;g.L.init=function(p,a,l){hI.prototype.init.call(this,p,a,l);g.B8(this.U,"stroke-dasharray","0 "+this.S);this.U.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.j.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.L.clear=function(){this.hide()}; g.L.hide=function(){dN(this);hI.prototype.hide.call(this)}; g.L.show=function(){w4(this);hI.prototype.show.call(this)}; g.L.K8=function(){this.hide()}; g.L.oQ=function(){if(this.L){var p=this.L.getProgressState();p!=null&&p.current!=null&&g.B8(this.U,"stroke-dasharray",p.current/p.seekableEnd*this.S+" "+this.S)}};g.A(L2,JF);g.L=L2.prototype; g.L.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);if(a.image&&a.image.thumbnail)if(a.headline)if(a.description)if(a.backgroundImage&&a.backgroundImage.thumbnail)if(a.actionButton&&g.T(a.actionButton,g.az))if(p=a.durationMilliseconds||0,typeof p!=="number"||p<=0)g.iO(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+p));else if(a.navigationEndpoint){var y=this.api.getVideoData(2);if(y!=null){var S=a.image.thumbnail.thumbnails;S!=null&& S.length>0&&g.Ta(g.G1(S[0].url))&&(S[0].url=y.profilePicture,g.Ta(g.G1(y.profilePicture))&&Btf("VideoPlayer",239976093,"Expected non-empty profile picture."));S=a.backgroundImage.thumbnail.thumbnails;S!=null&&S.length>0&&g.Ta(g.G1(S[0].url))&&(S[0].url=y.Gy());S=a.headline;S!=null&&g.Ta(g.G1(S.text))&&(S.text=y.author)}this.Z.init(y_("ad-image"),a.image,l);this.W.init(y_("ad-text"),a.headline,l);this.U.init(y_("ad-text"),a.description,l);this.r7.init(y_("ad-image"),a.backgroundImage,l);y=["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.W.element.classList.add("ytp-ad-action-interstitial-headline-light");this.U.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.C().D("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-mono-dark"):y.push("ytp-ad-action-interstitial-action-button-dark");this.api.C().S&&(y.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.C().D("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-mono-dark"):y.push("ytp-ad-action-interstitial-action-button-dark"));this.api.C().D("enable_unified_action_endcap_on_web")&&!this.api.C().S&&(this.api.C().D("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-unified-mono"):y.push("ytp-ad-action-interstitial-action-button-unified"),this.Kz.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.Z.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Ps.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.IM.classList.add("ytp-ad-action-interstitial-card-unified"),this.Xu.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.QY.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.Hs.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.nz.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new lt(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,y);g.E(this,this.actionButton);this.actionButton.lT(this.Kz);this.actionButton.init(y_("button"),g.T(a.actionButton,g.az),l);Wj(this.actionButton.element);y=X1f(this.actionButton.element);OH(this.actionButton.element, y+" This link opens in new tab");this.navigationEndpoint=a.navigationEndpoint;this.j.J(this.Hs,"click",this.l6,this);this.j.J(this.Xu,"click",this.l6,this);this.api.C().S||this.j.J(this.QY,"click",this.l6,this);this.L=this.Xj?new fE(this.api,p):new PP(p);g.E(this,this.L);if(a.skipButton){(p=g.T(a.skipButton,EB2))&&this.L&&(this.skipButton=new Fw(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.L,this.E7),g.E(this,this.skipButton),this.skipButton.lT(this.element),this.skipButton.init(y_("skip-button"), p,l));if(l=a.adBadgeRenderer)if(l=g.T(l,FY2))p=new xo(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,!0,!0),p.lT(this.nz),p.init(y_("simple-ad-badge"),l,this.macros),g.E(this,p);if(l=a.adInfoRenderer)if(l=g.T(l,sT))p=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.element,void 0,!0),p.lT(this.nz),p.init(y_("ad-info-hover-text-button"),l,this.macros),g.E(this,p)}else a.nonskippableOverlayRenderer&&(p=g.T(a.nonskippableOverlayRenderer,SE))&&this.L&&(this.S= new IY(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.L,!1),g.E(this,this.S),this.S.lT(this.element),this.S.init(y_("ad-preview"),p,l));a.countdownRenderer&&(a=a.countdownRenderer,g.T(a,CKb)&&this.L&&(l=new NLA(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.L),g.E(this,l),l.lT(this.element),l.init(y_("timed-pie-countdown"),g.T(a,CKb),this.macros)));this.show();this.element.focus()}else g.iO(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.iO(Error("AdActionInterstitialRenderer has no button."));else g.iO(Error("AdActionInterstitialRenderer has no background AdImage."));else g.iO(Error("AdActionInterstitialRenderer has no description AdText."));else g.iO(Error("AdActionInterstitialRenderer has no headline AdText."));else g.iO(Error("AdActionInterstitialRenderer has no image."))}; g.L.clear=function(){g.z1(this.j);this.hide()}; g.L.show=function(){syv(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.S&&this.S.show();JF.prototype.show.call(this)}; g.L.hide=function(){syv(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.S&&this.S.hide();JF.prototype.hide.call(this)}; g.L.l6=function(){this.navigationEndpoint&&(this.layoutId?this.ZV.executeCommand(this.navigationEndpoint,this.layoutId):g.iO(Error("Missing layoutId for ad action interstitial.")))};var Jd={iconType:"CLOSE"},HM=new g.N6(320,63);g.A(Hcc,JF);g.L=Hcc.prototype; g.L.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);this.j=a;this.Z=g.hf(this.j.onClickCommands||[]);this.nz=this.j.onErrorCommand||null;if(p=this.j.contentSupportedRenderer)p=this.j.contentSupportedRenderer,a=this.j.adInfoRenderer||null,g.T(p,LY1)?(this.W=g.q$("ytp-ad-overlay-ad-info-button-container",this.U.element),UT(this,a),p=S5h(this,g.T(p,LY1))):g.T(p,Xfc)?(this.W=g.q$("ytp-ad-overlay-ad-info-button-container",this.S.element),UT(this,a),p=QrO(this,g.T(p,Xfc))):g.T(p,xDM)?(this.W=g.q$("ytp-ad-overlay-ad-info-button-container", this.L.element),UT(this,a),p=Fbq(this,g.T(p,xDM))):(g.iO(Error("InvideoOverlayAdRenderer content could not be initialized.")),p=!1);p&&(this.show(),WVv(this,!0))}; g.L.clear=function(){WVv(this,!1);this.Hs.reset();this.Xu=0;this.U.hide();this.logVisibility(this.U.element,!1);this.S.hide();this.logVisibility(this.S.element,!1);this.L.hide();this.logVisibility(this.L.element,!1);this.hide();this.dispose()}; g.L.zF9=function(){this.Kz&&(this.layoutId?this.ZV.executeCommand(this.Kz,this.layoutId):g.iO(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.L.Sn=function(){a:{if(this.j&&this.j.closeButton&&this.j.closeButton.buttonRenderer){var p=this.j.closeButton.buttonRenderer;if(p.serviceEndpoint){p=[p.serviceEndpoint];break a}}p=[]}p=g.t(p);for(var a=p.next();!a.done;a=p.next())a=a.value,this.layoutId?this.ZV.executeCommand(a,this.layoutId):g.iO(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.L.YOT=function(){this.r7||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.L.sH=function(){this.r7||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.sH("invideo-overlay")}; g.L.LSV=function(p){p.target===this.W&&g.q$("ytp-ad-button",this.Ps.element).click()};g.A(BXA,hI);g.L=BXA.prototype;g.L.init=function(p,a,l){hI.prototype.init.call(this,p,a,l);p=a.durationMs;this.U=p==null||p===0?0:p+this.L.getProgressState().current*1E3;if(a.text)var y=a.text.templatedAdText;else a.staticMessage&&(y=a.staticMessage);this.messageText.init(y_("ad-text"),y,l);this.messageText.lT(this.S.element);this.j.show(100);this.show()}; g.L.clear=function(){this.hide()}; g.L.hide=function(){Yor(this,!1);hI.prototype.hide.call(this);this.S.hide();this.messageText.hide();dN(this)}; g.L.show=function(){Yor(this,!0);hI.prototype.show.call(this);w4(this);this.S.show();this.messageText.show()}; g.L.K8=function(){this.hide()}; g.L.oQ=function(){if(this.L!=null){var p=this.L.getProgressState();p!=null&&p.current!=null&&(p=1E3*p.current,!this.Xu&&p>=this.U?(this.j.hide(),this.Xu=!0):this.messageText&&this.messageText.isTemplated()&&(p=Math.max(0,Math.ceil((this.U-p)/1E3)),p!==this.W&&(U1f(this.messageText,{TIME_REMAINING:String(p)}),this.W=p)))}};g.A(JO,JF);g.L=JO.prototype; g.L.init=function(p,a,l){JF.prototype.init.call(this,p,a,{});a.image&&a.image.thumbnail?a.headline?a.description?a.actionButton&&g.T(a.actionButton,g.az)?(this.U.init(y_("ad-image"),a.image,l),this.S.init(y_("ad-text"),a.headline,l),this.j.init(y_("ad-text"),a.description,l),this.actionButton=new lt(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,["ytp-ad-underlay-action-button"]),a.backgroundColor&&g.B8(this.element,"background-color",g.$I(a.backgroundColor)),g.E(this,this.actionButton), this.actionButton.lT(this.W),this.actionButton.init(y_("button"),g.T(a.actionButton,g.az),l),p=g.sW(this.api.C().experiments,"player_underlay_video_width_fraction"),this.api.C().D("place_shrunken_video_on_left_of_player")?(a=this.L,g.b6(a,"ytp-ad-underlay-left-container"),g.uD(a,"ytp-ad-underlay-right-container"),g.B8(this.L,"margin-left",Math.round((p+.02)*100)+"%")):(a=this.L,g.b6(a,"ytp-ad-underlay-right-container"),g.uD(a,"ytp-ad-underlay-left-container")),g.B8(this.L,"width",Math.round((1-p- .04)*100)+"%"),this.api.a_()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.aG.bind(this)),this.api.addEventListener("resize",this.nX.bind(this))):g.iO(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.iO(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.iO(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.iO(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.L.show=function(){O5A(!0);this.actionButton&&this.actionButton.show();JF.prototype.show.call(this)}; g.L.hide=function(){O5A(!1);this.actionButton&&this.actionButton.hide();JF.prototype.hide.call(this)}; g.L.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.aG.bind(this));this.api.removeEventListener("resize",this.nX.bind(this));this.hide()}; g.L.onClick=function(p){JF.prototype.onClick.call(this,p);this.actionButton&&g.oh(this.actionButton.element,p.target)&&this.api.pauseVideo()}; g.L.aG=function(p){p==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):p==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):p==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))}; g.L.nX=function(p){p.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):p.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.B8(this.S.element,"font-size",p.width/40+"px")};g.A(OI,JF); OI.prototype.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);a.toggledLoggingParams&&(this.toggledLoggingParams=a.toggledLoggingParams);a.answer&&g.T(a.answer,g.az)?(p=new lt(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),p.lT(this.answer),p.init(y_("ytp-ad-survey-answer-button"),g.T(a.answer,g.az),l),p.show()):a.answer&&g.T(a.answer,Xu)&&(this.L=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV, ["ytp-ad-survey-answer-toggle-button"]),this.L.lT(this.answer),g.E(this,this.L),this.L.init(y_("survey-answer-button"),g.T(a.answer,Xu),l));this.show()}; OI.prototype.aE=function(p){this.layoutId?DY(this.ZV,p,this.layoutId,this.macros):(p=new g.kc("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.iO(p))}; OI.prototype.onClick=function(p){JF.prototype.onClick.call(this,p);if(this.api.C().D("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; OI.prototype.clear=function(){this.hide()};g.A(AG,JF);AG.prototype.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);a.answer&&g.T(a.answer,Xu)&&(this.button=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.lT(this.L),this.button.init(y_("survey-none-of-the-above-button"),g.T(a.answer,Xu),l));this.show()};g.A(x8,lt);x8.prototype.init=function(p,a,l){lt.prototype.init.call(this,p,a,l);p=!1;a.text&&(a=g.Sw(a.text),p=!g.Ta(a));p||g.Mf(Error("No submit text was present in the renderer."))}; x8.prototype.onClick=function(p){this.publish("l");lt.prototype.onClick.call(this,p)};g.A(pL,JF); pL.prototype.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);if(p=a.skipOrPreviewRenderer)g.T(p,yr)?(p=g.T(p,yr),l=new No(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.j,!0),l.lT(this.skipOrPreview),l.init(y_("skip-button"),p,this.macros),g.E(this,l),this.L=l):g.T(p,SE)&&(p=g.T(p,SE),l=new IY(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.j,!1),l.lT(this.skipOrPreview),l.init(y_("ad-preview"),p,this.macros),l.Xu.show(100),l.show(),g.E(this,l), this.L=l);this.L==null&&(p=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(a)),g.iO(p));a.submitButton&&(p=a.submitButton,g.T(p,g.az)&&(p=g.T(p,g.az),l=new x8(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),l.lT(this.submitButton),l.init(y_("survey-submit"),p,this.macros),g.E(this,l),this.S=l));if(p=a.adBadgeRenderer)p=g.T(p,FY2),l=new xo(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,!0,!0,!0),l.lT(this.U),l.init(y_("simple-ad-badge"), p,this.macros),this.adBadge=l.element,g.E(this,l);if(p=a.adDurationRemaining)p=g.T(p,wf1),l=new p4(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.j,void 0,!0),l.lT(this.U),l.init(y_("ad-duration-remaining"),p,this.macros),g.E(this,l);(a=a.adInfoRenderer)&&g.T(a,sT)&&(p=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.element,void 0,!0),g.E(this,p),this.adBadge!==void 0?this.U.insertBefore(p.element,this.adBadge.nextSibling):p.lT(this.U),p.init(y_("ad-info-hover-text-button"), g.T(a,sT),this.macros));this.show()}; pL.prototype.clear=function(){this.hide()};g.A(fo,JF);fo.prototype.init=function(p,a,l){JF.prototype.init.call(this,p,a,l);uO1(this)}; fo.prototype.show=function(){this.U=Date.now();JF.prototype.show.call(this)}; fo.prototype.NW=function(){};g.A(Xh,fo);g.L=Xh.prototype;g.L.init=function(p,a,l){var y=this;fo.prototype.init.call(this,p,a,l);a.questionText&&uoE(this,a.questionText);a.answers&&a.answers.forEach(function(S,n){g.T(S,Pw)&&RMa(y,g.T(S,Pw),l,n)}); this.W=new Set(this.S.map(function(S){return S.L.L})); (p=a.noneOfTheAbove)&&(p=g.T(p,PK1))&&eKM(this,p,l);a.surveyAdQuestionCommon&&HRv(this,a.surveyAdQuestionCommon);a.submitEndpoints&&(this.submitEndpoints=a.submitEndpoints);this.J(this.element,"change",this.onChange);this.show()}; g.L.NW=function(){Xs(this,!1);this.j.S.subscribe("l",this.qET,this)}; g.L.onChange=function(p){p.target===this.noneOfTheAbove.button.L?t_O(this):this.W.has(p.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Xs(this,!0))}; g.L.qET=function(){var p=[],a=this.S.reduce(function(S,n,V){var z=n.toggledLoggingParams;n.L&&n.L.isToggled()&&z&&(S.push(z),p.push(V));return S},[]).join("&"),l=this.submitEndpoints.map(function(S){if(!S.loggingUrls)return S; S=g.OV(S);S.loggingUrls=S.loggingUrls.map(function(n){n.baseUrl&&(n.baseUrl=va(n.baseUrl,a));return n}); return S}); if(l){l=g.t(l);for(var y=l.next();!y.done;y=l.next())y=y.value,this.layoutId?DY(this.ZV,y,this.layoutId,this.macros):g.iO(Error("Missing layoutId for multi_select_question."))}this.api.C().D("supports_multi_step_on_desktop")&&this.Xu(p)}; g.L.clear=function(){this.api.C().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.A(PA,fo);PA.prototype.init=function(p,a,l){var y=this;fo.prototype.init.call(this,p,a,l);a.questionText&&uoE(this,a.questionText);a.answers&&a.answers.forEach(function(S,n){g.T(S,Pw)&&RMa(y,g.T(S,Pw),l,n)}); a.surveyAdQuestionCommon?HRv(this,a.surveyAdQuestionCommon):R$(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(a)));this.show()}; PA.prototype.clear=function(){this.api.C().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.A(LZ,JF);LZ.prototype.init=function(p,a,l){var y=this;JF.prototype.init.call(this,p,a,l);if(this.api.C().D("supports_multi_step_on_desktop")){var S;this.conditioningRules=(S=a.conditioningRules)!=null?S:[];var n;this.S=(n=a.questions)!=null?n:[];var V;((V=a.questions)==null?0:V.length)&&BzZ(this,0)}else(a.questions||[]).forEach(function(z){g.T(z,Is)?cPq(y,g.T(z,Is),l):g.T(z,bL)&&GZF(y,g.T(z,bL),l)}); this.show()}; LZ.prototype.clear=function(){this.api.C().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; LZ.prototype.j=function(p){var a=this;if(this.api.C().D("supports_multi_step_on_desktop")){var l;if((l=this.conditioningRules)==null?0:l.length){var y;if(p.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(S){return S.questionIndex===a.L})==null)g.iO(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(S){if(S.questionIndex===a.L)switch(S.condition){case "CONDITION_ALL_OF":var n;if((n=S.answerIndices)==null?0:n.every(function(z){return p.includes(z)}))y=S.nextQuestionIndex; break;case "CONDITION_ANY_OF":var V;if((V=S.answerIndices)==null?0:V.some(function(z){return p.includes(z)}))y=S.nextQuestionIndex; break;default:g.iO(Error("Expected specified condition in survey conditioning rules."))}}),y!=null)BzZ(this,y); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.iO(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.A(Q8,JF); Q8.prototype.init=function(p,a,l){var y=this;JF.prototype.init.call(this,p,a,l);p=a.timeoutSeconds||0;if(typeof p!=="number"||p<0)g.iO(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+p));else if(a.timeoutCommands)if(a.text)if(a.ctaButton&&g.T(a.ctaButton,g.az))if(a.brandImage)if(a.backgroundImage&&g.T(a.backgroundImage,Y7)&&g.T(a.backgroundImage,Y7).landscape){this.layoutId||g.iO(Error("Missing layoutId for survey interstitial."));dVr(this.interstitial,g.T(a.backgroundImage, Y7).landscape);dVr(this.logoImage,a.brandImage);g.Cp(this.text,g.Sw(a.text));var S=["ytp-ad-survey-interstitial-action-button"];S.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new lt(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,S);g.E(this,this.actionButton);this.actionButton.lT(this.S);this.actionButton.init(y_("button"),g.T(a.ctaButton,g.az),l);this.actionButton.show();this.L=new fE(this.api,p*1E3);this.L.subscribe("g",function(){y.transition.hide()}); g.E(this,this.L);this.J(this.element,"click",function(n){var V=n.target===y.interstitial;n=y.actionButton.element.contains(n.target);if(V||n)if(y.transition.hide(),V)y.api.onAdUxClicked(y.componentType,y.layoutId)}); this.transition.show(100)}else g.iO(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.iO(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.iO(Error("SurveyTextInterstitialRenderer has no button."));else g.iO(Error("SurveyTextInterstitialRenderer has no text."));else g.iO(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; Q8.prototype.clear=function(){this.hide()}; Q8.prototype.show=function(){gCZ(!0);JF.prototype.show.call(this)}; Q8.prototype.hide=function(){gCZ(!1);JF.prototype.hide.call(this)};g.A(AI,hI);g.L=AI.prototype; g.L.init=function(p,a){hI.prototype.init.call(this,p,a,{});if(a.durationMilliseconds){if(a.durationMilliseconds<0){g.iO(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+a.durationMilliseconds));return}this.S=a.durationMilliseconds}else this.S=this.L.x7();var l;if((l=a.previewText)==null||!l.text||g.Ta(a.previewText.text))g.iO(Error("No text is returned for AdPreview."));else{this.W=a.previewText;a.previewText.isTemplated||g.Cp(this.U,a.previewText.text);var y; if(((y=this.api.getVideoData(1))==null?0:y.j8)&&a.previewImage){var S,n;(p=((n=tRq(((S=a.previewImage)==null?void 0:S.sources)||[],52,!1))==null?void 0:n.url)||"")&&p.length?(this.previewImage=new g.YZ({X:"img",T:"ytp-preview-ad__image",V:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",p),g.E(this,this.previewImage),this.previewImage.lT(this.element)):g.iO(Error("Failed to get imageUrl in AdPreview."))}else this.U.classList.add("ytp-preview-ad__text--padding--wide")}}; g.L.clear=function(){this.hide()}; g.L.hide=function(){dN(this);hI.prototype.hide.call(this)}; g.L.show=function(){w4(this);hI.prototype.show.call(this)}; g.L.K8=function(){this.hide()}; g.L.oQ=function(){if(this.L){var p=this.L.getProgressState();if(p!=null&&p.current)if(p=1E3*p.current,p>=this.S)this.transition.hide();else{var a;if((a=this.W)==null?0:a.isTemplated)if(a=Math.max(0,Math.ceil((this.S-p)/1E3)),a!==this.j){var l,y;(p=(l=this.W)==null?void 0:(y=l.text)==null?void 0:y.replace("{TIME_REMAINING}",String(a)))&&g.Cp(this.U,p);this.j=a}}}};g.A(nl,JF); nl.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});var l,y;if((p=((y=tRq(((l=a.image)==null?void 0:l.sources)||[],BLE(a),!0))==null?void 0:y.url)||"")&&p.length){l=this.d7("ytp-ad-avatar");l.src=p;var S,n;if(y=(S=a.interaction)==null?void 0:(n=S.accessibility)==null?void 0:n.label)l.alt=y;switch(a.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(a.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.iO(Error("Failed to get imageUrl in AdAvatar."))}; nl.prototype.clear=function(){this.hide()}; nl.prototype.onClick=function(p){JF.prototype.onClick.call(this,p)};g.A(XZ,JF); XZ.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});var l;p=(l=a.label)==null?void 0:l.content;if((l=p!=null&&!g.Ta(p))||a.iconImage){l&&(this.buttonText=new g.YZ({X:"span",T:"ytp-ad-button-vm__text",yY:p}),g.E(this,this.buttonText),this.buttonText.lT(this.element));var y,S,n=((y=a.interaction)==null?0:(S=y.accessibility)==null?0:S.label)||l?p:"";n&&OH(this.element,n+" This link opens in new tab");Wj(this.element);if(a.iconImage){y=void 0;if(a.iconImage){a:{S=a.iconImage;if(S.sources)for(S= g.t(S.sources),p=S.next();!p.done;p=S.next())if(p=p.value,n=void 0,(n=p.clientResource)==null?0:n.imageName){S=p;break a}S=void 0}if(S){var V;y={iconType:(V=S.clientResource)==null?void 0:V.imageName}}}V=qG(y,!1,this.S);V!=null&&(this.buttonIcon=new g.YZ({X:"span",T:"ytp-ad-button-vm__icon",N:[V]}),g.E(this,this.buttonIcon),a.iconLeading?(sc(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):l?(this.buttonIcon.lT(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.lT(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(a.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.D("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.L?"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(a.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.Mf(Error("AdButton does not have label or an icon."))}; XZ.prototype.clear=function(){this.hide()}; XZ.prototype.onClick=function(p){JF.prototype.onClick.call(this,p)};g.A(Zn,hI);g.L=Zn.prototype; g.L.init=function(p,a){hI.prototype.init.call(this,p,a,{});if(p=g.T(a.avatar,lu)){var l=a.headline;if(l){var y=a.description;if(y){var S=g.T(a.button,S5);S?(this.adAvatar.init(y_("ad-avatar"),p),this.headline.init(y_("ad-simple-attributed-string"),new Wb(l)),this.description.init(y_("ad-simple-attributed-string"),new Wb(y)),l.content&&l.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(y_("ad-button"),S), this.startMilliseconds=a.startMs||0,this.api.a_()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Ms.bind(this)),w4(this)):g.iO(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.iO(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.iO(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.iO(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.L.oQ=function(){if(this.L){var p=this.L.getProgressState();p&&p.current&&1E3*p.current>=this.startMilliseconds&&(dN(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.L.K8=function(){this.clear()}; g.L.onClick=function(p){this.api.pauseVideo();hI.prototype.onClick.call(this,p)}; g.L.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ms.bind(this))}; g.L.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();hI.prototype.show.call(this)}; g.L.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();hI.prototype.hide.call(this)}; g.L.Ms=function(p){p==="hidden"?this.show():this.hide()};g.A(pZ,JF);g.L=pZ.prototype; g.L.init=function(p,a){JF.prototype.init.call(this,p,a,{});if(!a.label||g.Ta(a.label))g.iO(Error("No label is returned for SkipAdButton."));else if(g.Cp(this.j,a.label),p=qG({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.D("delhi_modern_web_player_icons")),p==null)g.iO(Error("Unable to retrieve icon for SkipAdButton"));else if(this.U=new g.YZ({X:"span",T:"ytp-skip-ad-button__icon",N:[p]}),g.E(this,this.U),this.U.lT(this.element),this.api.C().experiments.Cz("enable_skip_to_next_messaging")&&(a=g.G1(a.targetId)))this.S= !0,this.element.setAttribute("data-tooltip-target-id",a),this.element.setAttribute("data-tooltip-target-fixed","")}; g.L.onClick=function(p){p&&p.preventDefault();var a,l;XmA(p,{contentCpn:(l=(a=this.api.getVideoData(1))==null?void 0:a.clientPlaybackNonce)!=null?l:""})===0?this.api.xv("onAbnormalityDetected"):(JF.prototype.onClick.call(this,p),this.api.xv("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.L.clear=function(){this.L.reset();this.hide()}; g.L.hide=function(){JF.prototype.hide.call(this)}; g.L.show=function(){this.L.start();JF.prototype.show.call(this);this.S&&this.api.C().experiments.Cz("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.A(E4q,hI);g.L=E4q.prototype; g.L.init=function(p,a){hI.prototype.init.call(this,p,a,{});p=g.T(a.preskipState,ue2);var l;if((l=this.api.getVideoData())==null?0:l.isDaiEnabled()){if(!p){g.iO(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.S=new AI(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.L);g.E(this,this.S);this.S.lT(this.element);var y;(y=this.S)==null||y.init(y_("preview-ad"),p);(l=this.S)!=null&&(l.transition.show(100),l.show())}(l=g.T(a.skippableState,kGK))?(a.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=a.skipOffsetMilliseconds:(g.Mf(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.U.init(y_("skip-button"),l),this.show()):g.iO(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.L.show=function(){w4(this);hI.prototype.show.call(this)}; g.L.hide=function(){!this.isSkippable&&this.S?this.S.hide():this.U&&this.U.hide();dN(this);hI.prototype.hide.call(this)}; g.L.clear=function(){var p;(p=this.S)==null||p.clear();this.U&&this.U.clear();dN(this);hI.prototype.hide.call(this)}; g.L.K8=function(){this.hide()}; g.L.oQ=function(){if(1E3*this.L.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var p;(p=this.S)!=null&&p.transition.hide();(p=this.U)!=null&&(p.transition.show(),p.show())}};g.A(BP,JF); BP.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});if(a.label){var l;((l=a.label)==null?0:l.content)&&!g.Ta(a.label.content)&&(this.linkText=new g.YZ({X:"span",T:"ytp-visit-advertiser-link__text",yY:a.label.content}),g.E(this,this.linkText),this.linkText.lT(this.element));var y,S;if((y=a.interaction)==null?0:(S=y.accessibility)==null?0:S.label)OH(this.element,a.interaction.accessibility.label+" This link opens in new tab");else{var n;((n=a.label)==null?0:n.content)&&!g.Ta(a.label.content)&&OH(this.element, a.label.content+" This link opens in new tab")}Wj(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.iO(Error("No label found in VisitAdvertiserLink."))}; BP.prototype.onClick=function(p){JF.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType,this.layoutId)}; BP.prototype.clear=function(){this.hide()};g.A(Do,JF); Do.prototype.init=function(p,a,l,y){JF.prototype.init.call(this,p,a,{});if(a.skipOrPreview){l=a.skipOrPreview;p=g.T(l,MN7);l=g.T(l,ue2);if(p)this.nN=new E4q(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.S),g.E(this,this.nN),this.nN.lT(this.Z),this.nN.init(y_("skip-ad"),p);else{var S;l&&((S=this.api.getVideoData())==null?0:S.isDaiEnabled())&&(this.j=new AI(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.S,1),g.E(this,this.j),this.j.lT(this.Z),this.j.init(y_("ad-preview"), l),S=this.j,S.transition.show(100),S.show())}if(S=g.T(a.skipOrPreview,MN7))var n=S.skipOffsetMilliseconds}a.playerAdCard&&(S=g.T(a.playerAdCard,OF2))&&(this.playerAdCard=new Zn(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.S),g.E(this,this.playerAdCard),this.playerAdCard.lT(this.QY),this.playerAdCard.init(y_("ad-avatar-lockup-card"),S));a.adBadgeRenderer&&((S=g.T(a.adBadgeRenderer,yP))?(this.U=new MF(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,!0),g.E(this, this.U),this.U.lT(this.L),this.U.init(y_("ad-badge"),S)):g.iO(Error("AdBadgeViewModel is not found in player overlay layout.")));a.adPodIndex&&(S=g.T(a.adPodIndex,e$_))&&(this.adPodIndex=new Tr(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,this.adPodIndex),this.adPodIndex.lT(this.L),this.adPodIndex.init(y_("ad-pod-index"),S));a.adInfoRenderer&&((S=g.T(a.adInfoRenderer,sT))?(this.adInfoButton=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.element, void 0,!0),g.E(this,this.adInfoButton),this.U!==void 0?this.L.insertBefore(this.adInfoButton.element,this.U.element.nextSibling):this.adInfoButton.lT(this.L),this.adInfoButton.init(y_("ad-info-hover-text-button"),S,this.macros)):g.Mf(Error("AdInfoRenderer is not found in player overlay layout.")));var V;S=(V=this.api.getVideoData())==null?void 0:V.isDaiEnabled();a.adDurationRemaining&&S&&(V=g.T(a.adDurationRemaining,wf1))&&(this.adDurationRemaining=new p4(this.api,this.layoutId,this.interactionLoggingClientData, this.ZV,this.S,y.videoAdDurationSeconds,!0),g.E(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.L.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.lT(this.L),this.adDurationRemaining.init(y_("ad-duration-remaining"),V,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));a.visitAdvertiserLink&&(y=g.T(a.visitAdvertiserLink,tNU))&&(this.visitAdvertiserLink=new BP(this.api,this.layoutId, this.interactionLoggingClientData,this.ZV),g.E(this,this.visitAdvertiserLink),this.visitAdvertiserLink.lT(this.L),this.visitAdvertiserLink.init(y_("visit-advertiser-link"),y));a.adDisclosureBanner&&(a=g.T(a.adDisclosureBanner,KY_))&&(this.adDisclosureBanner=new xX(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,this.adDisclosureBanner),this.adDisclosureBanner.lT(this.Xu),this.adDisclosureBanner.init(y_("ad-disclosure-banner"),a));this.W=new aR(this.api,this.S,n,!0);g.E(this, this.W);g.uW(this.api,this.W.element,4);this.show()}; Do.prototype.clear=function(){this.hide()};g.A(gMF,JF);g.L=gMF.prototype; g.L.init=function(p,a){JF.prototype.init.call(this,p,a,{});if(a!=null&&a.title)if(p=a.title)if(this.headline.init(y_("ad-simple-attributed-string"),new Wb(p)),p=g.T(a.moreInfoButton,S5)){if(this.moreInfoButton.init(y_("ad-button"),p),a.descriptions)a.descriptions.length>0&&(p=a.descriptions[0])&&(this.L=new Ve(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,this.L),this.L.lT(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.L.init(y_("ad-simple-attributed-string"), new Wb(p))),a.descriptions.length>1&&(a=a.descriptions[1])&&(this.S=new Ve(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,this.S),this.S.lT(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.S.init(y_("ad-simple-attributed-string"),new Wb(a)))}else g.iO(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.iO(Error("No headline found in AdGridCardText."));else g.iO(Error("No headline found in AdGridCardText."))}; g.L.onClick=function(p){JF.prototype.onClick.call(this,p);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.L.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var p;(p=this.L)==null||p.clear();var a;(a=this.S)==null||a.clear()}; g.L.hide=function(){this.headline.hide();this.moreInfoButton.hide();var p;(p=this.L)==null||p.hide();var a;(a=this.S)==null||a.hide();JF.prototype.hide.call(this)}; g.L.show=function(){JF.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var p;(p=this.L)==null||p.show();var a;(a=this.S)==null||a.show()};g.A(LX,JF);LX.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});if(a!=null&&a.gridCards)if(a.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.iO(Error("Only single column style is currently supported in AdGridCardCollection."));else for(p=g.t(a.gridCards),a=p.next();!a.done;a=p.next()){if(a=g.T(a.value,R$2)){var l=new gMF(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV);g.E(this,l);l.lT(this.element);l.init(y_("ad-grid-card-text"),a);this.L.push(l)}}else g.iO(Error("No grid cards found in AdGridCardCollection."))}; LX.prototype.show=function(){for(var p=g.t(this.L),a=p.next();!a.done;a=p.next())a.value.show();JF.prototype.show.call(this)}; LX.prototype.clear=function(){this.hide();for(var p=g.t(this.L),a=p.next();!a.done;a=p.next())a.value.clear()}; LX.prototype.hide=function(){for(var p=g.t(this.L),a=p.next();!a.done;a=p.next())a.value.hide();JF.prototype.hide.call(this)};g.A(Py,hI);g.L=Py.prototype;g.L.init=function(p,a,l,y,S){S=S===void 0?0:S;hI.prototype.init.call(this,p,a,l,y);this.playerProgressOffsetMs=S;w4(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Y6.bind(this));this.api.addEventListener("resize",this.rZ.bind(this));this.api.a_()?(this.S=!0,this.api.ZH(!0),this.show()):this.hide()}; g.L.oQ=function(){if(this.L){var p=this.L.getProgressState();p&&p.current&&!this.S&&1E3*p.current>=this.playerProgressOffsetMs&&(this.S=!0,this.api.ZH(!0),this.show())}}; g.L.K8=function(){this.S&&this.api.ZH(!1);this.hide()}; g.L.clear=function(){this.api.ZH(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Y6.bind(this));this.api.removeEventListener("resize",this.rZ.bind(this));dN(this);this.hide()}; g.L.hide=function(){BUv(!1);hI.prototype.hide.call(this)}; g.L.show=function(){BUv(!0);hI.prototype.show.call(this)};g.A(xF,Py);g.L=xF.prototype; g.L.init=function(p,a,l,y){if(a!=null&&a.adGridCardCollection)if(a!=null&&a.adButton){var S=Number(a.playerProgressOffsetMs||"0");isNaN(S)?Py.prototype.init.call(this,p,a,l,y):Py.prototype.init.call(this,p,a,l,y,S);p=a.headline;l=g.T(a.adAvatar,lu);p&&l?(this.headline=new Ve(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,this.headline),this.headline.lT(this.d7("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(y_("ad-simple-attributed-string"),new Wb(p)), this.adAvatar=new nl(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,this.adAvatar),this.adAvatar.lT(this.d7("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(y_("ad-avatar"),l)):this.j.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");p=g.T(a.adGridCardCollection,IM1);this.adGridCardCollection.init(y_("ad-grid-card-collection"),p);a=g.T(a.adButton,S5);this.adButton.init(y_("ad-button"),a); this.hide()}else g.iO(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.iO(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.L.onClick=function(p){(this.adButton&&g.oh(this.adButton.element,p.target)||this.adAvatar&&g.oh(this.adAvatar.element,p.target))&&this.api.pauseVideo();Py.prototype.onClick.call(this,p);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.L.rZ=function(){}; g.L.clear=function(){this.hide();var p;(p=this.headline)==null||p.clear();var a;(a=this.adAvatar)==null||a.clear();this.adGridCardCollection.clear();this.adButton.clear();Py.prototype.clear.call(this)}; g.L.show=function(){var p;(p=this.headline)==null||p.show();var a;(a=this.adAvatar)==null||a.show();this.adGridCardCollection.show();this.adButton.show();Py.prototype.show.call(this)}; g.L.hide=function(){var p;(p=this.headline)==null||p.hide();var a;(a=this.adAvatar)==null||a.hide();this.adGridCardCollection.hide();this.adButton.hide();Py.prototype.hide.call(this)}; g.L.Y6=function(p){p==="transitioning"?(this.U.classList.remove("ytp-ad-underlay-clickable"),this.show()):p==="visible"?this.U.classList.add("ytp-ad-underlay-clickable"):p==="hidden"&&(this.hide(),this.U.classList.remove("ytp-ad-underlay-clickable"))};g.A(m7,JF); m7.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});if(a.attributes===void 0)g.iO(Error("No attributes found in AdDetailsLineViewModel."));else if(a.style===void 0)g.iO(Error("No style found in AdDetailsLineViewModel."));else{p=g.t(a.attributes);for(var l=p.next();!l.done;l=p.next())if(l=l.value,l.text!==void 0){l=l.text;var y=a.style,S=new Ve(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV);g.E(this,S);S.lT(this.element);a:switch(y){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":y="ytp-ad-details-line__text--style-responsive"; break a;default:y="ytp-ad-details-line__text--style-standard"}S.element.classList.add(y);S.init(y_("ad-simple-attributed-string"),new Wb(l));this.L.push(S)}this.show()}}; m7.prototype.show=function(){this.L.forEach(function(p){p.show()}); JF.prototype.show.call(this)}; m7.prototype.clear=function(){this.hide()}; m7.prototype.hide=function(){this.L.forEach(function(p){p.hide()}); JF.prototype.hide.call(this)};g.A(cV,JF);cV.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});var l,y;(p=((y=tRq(((l=a.image)==null?void 0:l.sources)||[]))==null?void 0:y.url)||"")&&p.length?(l=this.d7("ytp-image-background-image"),g.B8(l,"backgroundImage","url("+p+")"),a.blurLevel!==void 0&&g.B8(l,"filter","blur("+a.blurLevel+"px)"),a.gradient!==void 0&&(a=new g.X({X:"div",A9:["ytp-image-background--gradient-vertical"]}),g.E(this,a),a.lT(this.element)),this.show()):g.iO(Error("Failed to get imageUrl in ImageBackground."))}; cV.prototype.clear=function(){this.hide()};g.A(nyM,hI);g.L=nyM.prototype;g.L.init=function(p,a){hI.prototype.init.call(this,p,a,{});g.B8(this.U,"stroke-dasharray","0 "+this.S);this.show()}; g.L.clear=function(){this.hide()}; g.L.hide=function(){dN(this);hI.prototype.hide.call(this)}; g.L.show=function(){w4(this);hI.prototype.show.call(this)}; g.L.K8=function(){this.hide()}; g.L.oQ=function(){if(this.L){var p=this.L.getProgressState();p!=null&&p.current!=null&&g.B8(this.U,"stroke-dasharray",p.current/p.seekableEnd*this.S+" "+this.S)}};g.A(sH,JF); sH.prototype.init=function(p,a){JF.prototype.init.call(this,p,a,{});if(iJr(a)){this.adAvatar=new nl(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV);g.E(this,this.adAvatar);this.adAvatar.lT(this.d7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(y_("ad-avatar"),g.T(a.adAvatar,lu));this.headline=new Ve(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV);g.E(this,this.headline);this.headline.lT(this.d7("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(y_("ad-simple-attributed-string"),new Wb(a.headline));if(p=g.T(a.adDetailsLine,vB1))this.detailsLine=new m7(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,this.detailsLine),this.detailsLine.lT(this.d7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(y_("ad-details-line"),p);this.adButton=new XZ(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,!0);g.E(this,this.adButton); this.adButton.lT(this.d7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(y_("ad-button"),g.T(a.adButton,S5));this.adBadge=new MF(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,!0);g.E(this,this.adBadge);this.adBadge.lT(this.j);this.adBadge.init(y_("ad-badge"),g.T(a.adBadge,yP));this.adInfoButton=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.element,void 0,!0);g.E(this,this.adInfoButton);this.adInfoButton.lT(this.j); this.adInfoButton.init(y_("ad-info-hover-text-button"),g.T(a.adInfoRenderer,sT),this.macros);if(p=g.T(a.skipAdButton,kGK))this.skipAdButton=new pZ(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,this.skipAdButton),this.skipAdButton.lT(this.element),this.skipAdButton.init(y_("skip-button"),p);this.S=new PP(a.durationMilliseconds);g.E(this,this.S);if(p=g.T(a.countdownViewModel,mDK))this.L=new nyM(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV,this.S),g.E(this, this.L),this.L.lT(this.d7("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.L.init(y_("timed-pie-countdown"),p);if(a=g.T(a.imageBackground,bFU))this.imageBackground=new cV(this.api,this.layoutId,this.interactionLoggingClientData,this.ZV),g.E(this,this.imageBackground),this.imageBackground.lT(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(y_("image-background"), a);this.show();this.element.focus()}}; sH.prototype.clear=function(){g.z1(this.U);this.hide()}; sH.prototype.show=function(){jMO(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();JF.prototype.show.call(this)}; sH.prototype.hide=function(){jMO(!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.L&&this.L.hide();this.imageBackground&&this.imageBackground.hide();JF.prototype.hide.call(this)};g.A(J3,g.qu);g.L=J3.prototype;g.L.x7=function(){return 1E3*this.api.getDuration(this.N5,!1)}; g.L.stop=function(){this.L&&this.handler.ME(this.L)}; g.L.rq=function(){var p=this.api.getProgressState(this.N5);this.S={seekableStart:p.seekableStart,seekableEnd:p.seekableEnd,current:this.api.getCurrentTime(this.N5,!1)};this.publish("h")}; g.L.getProgressState=function(){return this.S}; g.L.Eg=function(p){g.mj(p,2)&&this.publish("g")};var GLc="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.A(kL,Lp); kL.prototype.U=function(p){var a=p.id,l=p.content,y=l.componentType;if(!GLc.includes(y))switch(p.actionType){case 1:p=this.api;var S=this.ZV,n=l.layoutId,V=l.interactionLoggingClientData,z=l instanceof Wn?l.Xj:!1,d=l instanceof Wn||l instanceof QP?l.E7:!1;V=V===void 0?{}:V;z=z===void 0?!1:z;d=d===void 0?!1:d;switch(y){case "invideo-overlay":p=new Hcc(p,n,V,S);break;case "player-overlay":p=new cn(p,n,V,S,new J3(p),d);break;case "player-overlay-layout":p=new Do(p,n,V,S,new J3(p));break;case "survey":p= new LZ(p,n,V,S);break;case "ad-action-interstitial":p=new L2(p,n,V,S,z,d);break;case "video-interstitial-buttoned-centered":p=new sH(p,n,V,S);break;case "survey-interstitial":p=new Q8(p,n,V,S);break;case "ad-message":p=new BXA(p,n,V,S,new J3(p,1));break;case "player-underlay":p=new JO(p,n,V,S);break;case "display-underlay-text-grid-cards":p=new xF(p,n,V,S,new J3(p));break;default:p=null}if(!p){g.Mf(Error("No UI component returned from ComponentFactory for type: "+y));break}g.gd(this.components,a)? g.Mf(Error("Ad UI component already registered: "+a)):this.components[a]=p;p.bind(l);l instanceof LUv?this.S?this.S.append(p.MU):g.Mf(Error("Underlay view was not created but UnderlayRenderer was created")):this.j.append(p.MU);break;case 2:a=Y3r(this,p);if(a==null)break;a.bind(l);break;case 3:l=Y3r(this,p),l!=null&&(g.p3(l),g.gd(this.components,a)?(l=this.components,a in l&&delete l[a]):g.Mf(Error("Ad UI component does not exist: "+a)))}}; kL.prototype.fz=function(){g.cX(Object.values(this.components));this.components={};Lp.prototype.fz.call(this)};g.A(mE,g.N_);g.L=mE.prototype;g.L.create=function(){try{dMA(this),this.load(),this.created=!0,dMA(this)}catch(p){hF(p instanceof Error?p:String(p))}}; g.L.load=function(){try{Jso(this)}finally{q_(sz(this.L).lU)&&this.player.iG("ad",1)}}; g.L.destroy=function(){var p=this.player.getVideoData(1);this.L.L.OS.MJ(p&&p.clientPlaybackNonce||"");this.unload();this.created=!1}; g.L.unload=function(){g.N_.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(a){hF(a instanceof Error?a:String(a))}if(this.S!=null){var p=this.S;this.S=null;p.dispose()}this.U.reset()}; g.L.Z_=function(){return!1}; g.L.getAdState=function(){return-1}; g.L.getOptions=function(){return Object.values(dC2)}; g.L.jE=function(p,a){a=a===void 0?{}:a;switch(p){case "replaceUrlMacros":return p=a,p.url?(a=Ixh(this.player),Object.assign(a,p.caz),p=g.bi(p.url,a)):p=null,p;case "onAboutThisAdPopupClosed":this.DH(a);break;case "executeCommand":p=a;p.command&&p.layoutId&&this.executeCommand(p);break;default:return null}}; g.L.Aa=function(p){var a;return!((a=this.L.L.Je)==null||!a.get().Aa(p))}; g.L.DH=function(p){p.isMuted&&YRM(sz(this.L).T_,sz(this.L).hw,p.layoutId);this.Na&&this.Na.DH()}; g.L.executeCommand=function(p){sz(this.L).ZV.executeCommand(p.command,p.layoutId)};g.M8("yt.player.Application.create",g.$T.create);g.M8("yt.player.Application.createAlternate",g.$T.create);AQZ(IN(),zLM);var B$_=g.o4("ytcsi.tick");B$_&&B$_("pe");g.Qg("ad",mE);g.A(g.iw,g.D);g.iw.prototype.start=function(p,a,l){this.config={from:p,to:a,duration:l,startTime:(0,g.Ek)()};this.next()}; g.iw.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.iw.prototype.next=function(){if(this.config){var p=this.config,a=p.from,l=p.to,y=p.duration;p=p.startTime;var S=(0,g.Ek)()-p;p=this.L;y=PEA(p,S/y);if(y==0)p=p.K;else if(y==1)p=p.Z;else{S=Xj(p.K,p.W,y);var n=Xj(p.W,p.G,y);p=Xj(p.G,p.Z,y);S=Xj(S,n,y);n=Xj(n,p,y);p=Xj(S,n,y)}p=g.Lu(p,0,1);this.callback(a+(l-a)*p);p<1&&this.delay.start()}};g.A(g.xT,g.X);g.L=g.xT.prototype;g.L.hasSuggestions=function(){return this.suggestionData.length>0}; g.L.wS=function(){this.S&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.L.show=function(){g.X.prototype.show.call(this);BBA(this)}; g.L.dS=function(){this.S&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.L.zH=function(){this.VQ(this.api.Fu().getPlayerSize())}; g.L.VQ=function(p){var a=this.api.isEmbedsShortsMode()?.5625:16/9,l=this.api.QT();p=p.width-(l?112:58);l=Math.ceil(p/(l?320:192));var y=(p-l*8)/l;a=Math.floor(y/a);for(var S=g.t(this.L),n=S.next();!n.done;n=S.next())n=n.value.d7("ytp-suggestion-image"),n.style.width=y+"px",n.style.height=a+"px";this.suggestions.element.style.height=a+"px";this.j=y;this.K=a;this.containerWidth=p;this.columns=l;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Bx(this)}; g.L.onVideoDataChange=function(){var p=this.api.C(),a=this.api.getVideoData();this.W=a.S5?!1:p.j;this.suggestionData=a.suggestions?g.Tz(a.suggestions,function(l){return l&&!l.playlistId}):[]; sur(this);a.S5?this.title.update({title:g.ug("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s v\u00eddeos"})}; g.L.scrollTo=function(p){p=g.Lu(p,this.containerWidth-this.suggestionData.length*(this.j+8),0);this.G.start(this.scrollPosition,p,1E3);this.scrollPosition=p;g.Bx(this);BBA(this)};})(_yt_player);