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 K="1969-12-31T19:31:04.000-04:30{url{S{reverse{clone{1{split{{youtube.player.web_20250423_22_RC00{slice{Ko{unshift{startsWith{L{\\.googlevideo\\.com${path{splice{scheme{yV{toString{set{s{length{indexOf{={push{&{get{match{:{,{join{rr?[1-9].*\\.c\\.youtube\\.com${local{1969-12-31T21:15:21.000-02:45{,51];c[56]=c;{pm{?{prototype{1969-12-31T18:45:43.000-05:15{JD{rr{/api/manifest{__v4LZM5jLg6p0BleL-_w8_{www.youtube.com{cmo=td{r{n{B{forEach{1970-01-01T09:15:16.000+09:15{fromCharCode{sp{playerfallback{N{/{redirector.googlevideo.com{fallback_count{index.m3u8{mn{://{fvip{%3D{assign{1969-12-31T14:15:10.000-09:45{cmo={---{replace{/initplayback{/videoplayback{/file/index.m3u8{\\.a1\\.googlevideo\\.com${file{cmo{shift{pop{1970-01-01T11:15:43.000+11:15{1969-12-31T13:00:03.000-11:00{a1.googlevideo.com{undefined{ju{Untrusted URL{P8gjKK{signatureCipher{1970-01-01T11:15:55.000+11:15{,,,,\\,){cmo=pf{2{Y8{//".split("{"), Rs,RLx,JsA,wh,gWx,lfW,Cx,upW,rh,FH_,ts,os,Zf,fx,Gzp,KHH,s_,b2,ys2,WB,wB2,eT,px,IfT,BB,HB,U_,jT,QA,C2f,Lx,nx,cB,tT_,oWW,G_,ZxA,VTs,wC,ffT,S_B,Nhf,m0L,EWB,Ct,afx,vWf,vR,XB_,kM,Ths,$0z,T_,MT2,q_W,kzs,sss,pt,xM,bxH,WHH,z_,AsT,ie,le,ue,FK,Kz,yL,pB2,wY,IW,Cz,Bhp,x0s,tx,U0B,fz,Nn,$b,Mn,qn,kb,jsB,QsH,s5,Ax,Wl,LHh,Y_h,d0z,hLB,nWW,Pl,pz,Bl,Hl,xb,jL,QL,JV_,dY,zM,nz,cl,R4,g7,iL,gM2,uL,FR,KI,loA,ukp,F4z,yr,I4,CI,tg,o4,fI,S0,t6s,oMp,ZtB,V6h,Nc,fos,m8,Eo,DR,SCT,a4,NCx,EML,Mc,kC,WE,e0,PE,vMH,aoT,qCh,$ss,sbh,HE,xC, YC,AVz,PQh,eIx,hg,nI,pRx,zY,gv,BE,HtT,BCf,Gf,Ft,pI,xsp,Ku,wv,yX,Cu,UsH,th,oo,Zu,VX,fu,SO,Qb_,L4B,NA,YC_,dsA,mI,Du,zI0,Xt,Tf,cVh,$i,MA,qA,Ozs,RQT,bu,Jxz,WQ,Ah,lJW,eO,PQ,F2B,GMx,wlL,K2T,IJT,ob2,pu,tL2,CeT,BQ,HQ,Zz0,xi,VLL,U9,S5W,fJT,NYW,mnp,Yi,dv,EbW,DnL,aJ_,hh,zf,nu,vbs,MLz,cQ,q5f,kML,eQA,gX,AxT,sWz,pl0,xnA,l$,FQ,K6,Gc,Unp,yy,Y5B,wX,rX,t8,oK,Vy,zQH,f6,nb2,NU,mz,Dp,Jg_,XQ,$K,qU,gCs,MU,iIx,lRs,kK,Tc,sa,b$,uRh,W2,ew,GYf,P2,p6,B2,wEL,Qy,IRf,CL0,rgT,t0H,jw,Ua,H2,K8_,yg_,oCW,V0T,fRW,SoH,dX,h8,zc,N7H,Oj, Jr,g4,i6,mch,u6,EC2,KO,GU,XEz,w4,CO,T7z,$c2,r4,tr,oD,Z7,fO,Vm,NR,SS,vS,qoW,mv,D7,Xc,kYA,TU,s4x,$p,MR,b6,WS,Ar,qR,sj,kp,PS,bIT,pO,W8h,BS,ees,HS,Uj,aD,jS,Qm,LO,Yp,pEs,d4,hr,zU,nO,cS,OQ,B7z,Ri,HIH,Jc,xcz,lf,gb,uf,FN,GL,Kf,y2,Ucs,Q4h,Ii,L8W,Yos,dcx,rb,tc,V2,ze2,ff,nC_,Sa,Ouh,NV,Jhh,m$,DU,ai,gix,vZ,iuz,XN,luf,utW,TL,FIf,$_,MV,k_,sQ,KIf,Ac,Ius,GfT,ea,pf,BZ,tOB,Cu_,x_,Q2,oi2,VOh,fuW,Lf,Y_,nf,cZ,Ou,Rr,JH,Nvf,mAH,EiB,auT,vih,iv,lv,XQ2,FE,Tv2,$Ax,q9f,WIL,GX,AhA,eix,Pus,pQA,Bvx,wN,Huz,xAs,UAp,VH,Z1,or,jos,QoL, LIs,fS,SJ,NQ,dAp,XE,TX,$F,MQ,qQ,zis,nix,chs,kF,eJ,Pw,xF,Uu,LS,RWh,gKx,J8A,i6p,lpW,cw,uQp,Fzh,O1,Gcs,Kzs,y8_,w2W,iF,Ji,lF,uF,FO,Ips,C$_,r8x,Gi,KD,twL,y$,oK0,Z6A,VwL,wd,fps,IT,CD,SaL,NXp,mU_,EKs,DUs,ap2,oT,ZK,V$,SE,vpA,N3,mx,XSp,a7x,fD,T4W,E1,DK,aT,XO,vq,$Rs,MSL,qjp,Ti,sDs,$l,Wvh,Arz,eDz,P6H,pSH,B4T,HOh,xRH,s1,bF,Wq,jDW,URB,QDH,LvL,eE,YjB,Pq,dRA,hDf,pD,Bq,Hq,zDB,xl,U1,npW,jE,Q$,Yl,dd,hi,zi,nD,cq,crp,Ofx,RJs,Jcz,OB,g_p,lUh,ifs,JZ,gJ,F$2,uNz,ycW,Cff,IU_,im,rcW,tas,o_p,Va2,Zf_,fUz,lm,SQL,Nbz,Fx,mVH,E_T, DV0,aUL,G9,Ki,v_f,yi,XZ2,wJ,I_,$VL,Ci,Ma_,rJ,tZ,qQA,kLs,o_,Vi,bf2,fi,sih,W$A,AcB,eJp,pZ_,Sy,Bbp,EB,D3,xVs,UVs,L$W,YQA,a_,v1,Xx,T9,$G,Mm,qm,kG,sB,bm,W1,AZ,ey,n_A,zJz,ccB,RGT,OS_,gFf,hJx,JHh,dVH,P1,pi,l1W,uE_,Fbz,UB,jy,hZ,B1,Kb_,z9,iSs,wwH,I1s,yHh,ni,c1,Oh,Rv,Cv2,GXT,rHs,JY,tJH,oFB,ZSz,VJ0,f1H,mQH,EFz,DQL,a1T,g2,iG,lG,vFL,XwT,MJ0,quA,uG,Gm,srW,K7,Fu,WbL,bSH,AHH,eG2,PvL,w2,Iv,BNz,HSs,xQ_,UQ0,jrW,Qrp,Lb_,Yup,dQB,hG_,r2,tY,ov,Zq,zGB,RK_,JiB,iDH,glp,lKh,SF,Nq,uOW,Fxf,GiL,mV,Eh,Dq,av,v3,Xu,Tm,$Q,KxT,Mq, wq2,sh,IKW,CFB,bG,W3,AY,eF,riz,tE2,ZDL,P3,gN,DAf,Uh,VEW,fK0,jF,S1L,xQ,m3_,NdH,H3,Q_,L7,Els,D3f,aKT,vlh,YQ,XqW,d2,cHA,nFH,hY,zm,c3,Of,ME_,RL,JW,iM,q1T,ki_,lM,eKL,yK,bDs,Aih,GA,FH,oL,ZP,PFp,Sb,pqx,NG,mt,Bdx,x3z,jTH,TA,bM,d3A,hKh,zKz,Wh,RkB,vh,Lx0,gGh,Oi2,nlf,ciT,ii2,JZh,eb,Bh,uxs,FQz,G9_,KQW,yZp,xt,w1H,jb,I3h,tyW,oG_,QK,VyT,SBW,f3_,NJs,Yt,zA,RC,gl,i4,l4,u4,Fl,Dms,a3_,GV,vGT,Kd,yO,JA,wl,IC,Cd,y_,rl,X10,oC,My2,Ze,VO,k9s,qBs,s_W,biT,WQf,fd,AZB,Sf,Nb,PmT,Hi_,xmW,mL,LQW,Q_f,YB0,dmp,hkW,En,zkT,Um2,De,nGH, cZH,aC,R7T,JYz,gQ_,i7s,lqx,Xl,uuz,FVT,GmA,KVA,IqA,yYf,TV,$9,Mb,qb,k9,sn,b4,WX,rYh,ef,AA,tF2,pd,VFH,PX,fq_,ShT,aqW,N2H,mqW,EQL,Dqs,BX,HX,x9,vQs,Un,jf,QO,Ld,Y9,dl,qhH,X3H,cX,MF2,Og,$qT,nd,hA,T2h,zV,J7,svW,iD,gE,KP,yf,I8,AY2,e7z,wE,t7,PG2,o8,b70,H7A,xqs,Uqs,fP,Su,Nu,jvL,mB,Eg,Dj,a8,Qvs,vJ,Xh,qu,LVp,Yh0,kP,dqx,nQ_,p10,z7T,cY0,OEh,RBz,h7W,gtA,uHL,bD,A7,GAH,Kt2,whT,PJ,eu,IPW,yWL,tbB,otx,BJ,ZEf,pP,xP,Vbp,Ug,Qf,LP,fPL,SfA,J3,N1z,iI,mGB,EtA,CM,DGH,vts,rI,XhH,T1B,sLz,$Gf,VF,fM,SP,mA,EW,PMA,DH,aP,v4,B1W,$6, HEA,xGA,Mx,jLA,k6,sW,bI,W4,Lt_,A3,P4,pM,B4,H4,Yfs,dGx,hBH,UW,jP,QF,LM,Y6,dI,zBx,ntW,cWA,Odf,RgT,JA_,h3,g9s,gn,idx,leH,uls,iP,uP,Fo,GH,wn,It,CA,GV0,ot,Zy,VT,KLB,yAf,fA,wXL,Ie_,NX,SnA,Nlp,mbL,ms,E9z,DbA,XXp,Dy,$bB,Tls,Mf0,kVp,sCp,Xo,TH,bdA,$B,MX,qX,kB,sA,bP,Wi,AD,ek,Pi,pA,Bi,Hi,xB,WLh,AAH,egf,jk,dn,P4L,ci,OU,R9,JF,g6,ll,ul,xbA,F6,G3,K_,jCp,UbH,pXh,I9,w6,dbH,C_,mS,f_,EU,DD,zgW,vW,RTp,cAT,OPW,gP2,GRs,iPH,uhp,FBT,hgH,T3,X6,y7s,q5,kj,sU,wJ2,p_,Ijs,BW,HW,xj,j8,CDh,L_,Yj,r7p,d6,hF,oPA,cW,RU,J6,gZ,iE,lE,uE, F7,Gv,Ka,Vuz,yz,Ca,IU,SgW,Dup,mus,EPs,ajL,vPA,TEW,$up,XJs,qg_,oU,ZS,Sm,kRH,s8h,fa,NN,WBA,A72,BEz,pJz,aU,vf,X7,Tv,$s,qN,xu0,Uup,j8W,Pf,pa,Q82,LBT,YgA,jm,Qz,La,du2,hTH,nPT,OMA,zv,Rrs,O4,na,gj,iq,uq,J3s,rj,tS,oJ,ZA,fg,SD,m3,FA_,GwT,DA,KA0,y3h,vu,w4h,IHs,XI,TW,CIB,r3B,o6_,q$,VPT,fHz,$S,SWp,NIA,E6s,mxA,Wu,ZMA,aHT,v6H,Hu,pg,X4B,TIp,xS,U4,$xp,MP_,Lg,qWT,kw_,sPW,bMh,ng,WAz,A3A,erf,PIs,p4s,BIA,HMx,xxA,OO,UxA,J2,QPH,LAB,YWs,dx0,hrW,gH,Kr,n6p,Rw0,yb,JDT,iA_,zrp,lyW,uoB,Fsp,c3p,OAA,id,ld,G$,gBh,Fe,ud,GHx,Ksz, yDx,wiW,Iy_,CP_,Vk_,rDB,rH,t2,mM,Nns,DXW,EBs,oA,aA,ayB,T$,vBW,Tn0,sO,Xis,ewx,$Xf,ADs,eh,PPf,HAx,Pe,A2,piB,BnW,xXs,Be,jt0,Qtz,Lsp,YAf,dXL,hw_,zwL,UXB,cD_,O_h,RNz,gjf,JFB,lD2,jh,u6H,Qb,Lr,Y8,FSW,G3s,z$,nr,yFB,KSf,ce,wWA,Clf,t8p,rFx,oj_,fD_,Z_s,yn,C$,IV,SUs,wQ,Vn,f$,SA,Nf,N6_,EZ,EjB,vV,aV,TT,$5,Mf,qf,D5T,k5,bh,aDT,A_,PV,p$,vj_,XWA,T6f,$5h,BV,x5,M8_,UZ,jA,Qn,k3h,L$,Y5,s9s,h_,cV,n$,zT,Oi,Ry,AFB,x5h,j9s,H_T,B6p,U5B,iV,F5,d5_,Q9z,LSf,YUA,WSs,iah,Zg,gsH,Fpp,J6h,gw,Vc,ww,ta,lSs,KN,Plz,eNx,pWL,uV,RPs,mK,CEL, Ei,tmL,oss,Zah,ay,Vmx,fSf,S$p,mNh,EsB,TN,aSL,$U,vsA,XfH,$NA,Mms,qP,q$W,sUH,kU,baH,si,bV,Kg,BZp,QUB,BM,Y$s,zPT,xU,c6B,OgW,RvB,Rh,Ok,JSh,nN,mXz,ha,cM,zN,Ui,Ke,GI,wo,Ce,igx,ro,oh,Z$,lAx,uIp,SU,GWz,K3T,ySp,wu2,IAp,Cqp,rSp,tDL,oSp,ZgL,D$,VDL,ah,XG,fAx,S4s,Njx,m$H,TI,ESA,D$h,aA_,vSx,kH,sk,bW,XuA,WT,Tjs,eU,MDA,$$W,pe,BT,HT,xH,q4h,Uk,jU,kWf,sJp,Q8,Le,evx,bg0,AS2,W3B,YH,hQ,zI,Pqp,puA,BjT,ne,x$B,QJ_,jJB,cT,Or,RH,JT,gK,lz,uz,FM,Gk,K9,yS,L32,Y4s,d$H,wK,IH,C9,rK,oH,VS,nSh,zvW,Sg,cSW,Nt,m6,Er,D_,aH,Tk,$0,Mt,qt, k0,sr,bz,WI,AT,eg,PI,J2_,BI,x0,g8T,Ur,jg,ues,FM_,G$A,y2z,IZz,zk,CdA,cI,n9,o82,ZrH,VhT,Rc,J9,SOW,iX,lX,Z2,V0,md_,fZ,Sq,Nj,E8z,mh,NHs,E8,D2,aZ2,DdH,ac,vp,Xi,TO,Mj,XeA,THf,k3,s8,Wp,A9,$dW,bX,k$z,sAf,brL,WMB,A2h,eqf,PdB,Pp,eq,qO0,HrA,pZ,Uds,jAH,jq,QAT,Hp,x3,LM_,Q0,ddH,zq_,LZ,Y3,n8W,dA,O$0,h9,uZz,i$H,Rux,g5p,J_W,nZ,cp,OX,Rz,Jq,gD,iH,uH,GTH,wVB,Kk,kXB,yC,IO_,r_A,Iz,oz,Ck,tq,rD,Z$s,o5_,tAs,VAH,Zb,fOW,E5T,VC,SX,aOf,NF,mf,EX,Db,v50,az,XVf,TQL,X9,qF,ku,sX,bH,Wg,Aq,eX,Pg,pk,Bg,Hg,xu,UX,$fs,MAL,jX,QC,Lk,Yu,dD, hq,qZx,kTz,zS,Ru,WR2,A_h,Jk,gq,fh,SZ,PhA,Es,pVL,BQ_,vk,H$p,UfB,xfH,jVf,QVp,LRW,YZf,dfW,hu_,n5A,zu2,c_B,Jas,iN2,REs,lgz,u5x,GNp,Tl,$g,yaA,KKx,Me,qe,kg,Igf,bx,Wk,Ak,raT,trs,eZ,CVB,Pk,VrH,ph,Bk,Hk,xg,Us,jZ,QD,Lh,Yg,dq,hk,zl,nh,ck,Od,Rk,JO,gs,iC,lC,uC,Fm,Gt,Ky,yu,ws,Ik,Cy,rs,tO,ok,Zz,Vu,fy,SB,Nk,m0,Ed,Dz,ak,v_,Xm,Tt,$N,Mk,qk,kN,sd,bC,W_,AO,eB,P_,py,B_,H_,xN,Ud,jB,Qu,Ly,YN,ds,hO,zt,ny,c_,Om,Rq,JB,iO,lO,Sip,uO,h,FV,gU,Gg,K2,yG,mPW,Iq,DPf,wU,agW,rU,vUf,oq,C2,ZE,VG,f2,NJ,Tw0,$Ph,Mr0,qi2,MJ,qJ,v6,kT,syh,bNT, WK_,AaW,XMs,eE0,Sd,PV_,pM2,bO,p2,W6,Em,Bws,me,sm,AB,B6,xPW,DE,aq,P6,ed,UPB,H6,xT,Um,jd,jyz,QG,L2,dU,hB,zg,QyT,LKT,dP2,hEH,Ox,R2,nU_,JK,JQf,ie0,uGz,Fyp,iN,Kyh,yQf,yv,wT2,wk,I2,CR,rk,tK,o2,I$_,rQT,tUp,CWs,oHB,Ze_,SW,Ni,Ex,a2,vb,XB,VUH,Th,f$h,$d,Mi,mC,sx,bN,Wb,AK,Skx,kd,mIz,eW,EHp,DIf,Pb,a$0,pR,Bb,vHz,XTW,Hb,Tos,$IL,xd,MU0,qkh,kIx,shB,Ux,jW,beh,WyA,Qv,LR,Yd,AQs,dk,hK,zh,nR,elA,cb,Oy,PWf,R1,pTp,J4,Box,HeT,xIB,UIB,jhL,Qh_,gz,Lys,YkH,dI2,ic,hls,lc,zlh,uc,nH2,Fs,cQp,O9A,Gd,C8,RMz,rz,t4,o1,ZT,JT2,VW,f8,SV, NC,mj,g0p,i92,DT,a1,uMB,vd,F6p,Gk0,l_B,K6p,yTW,wIf,Td,I__,$w,MC,qC,kw,CzB,sy,bc,A4,rTA,eV,Pd,tgp,Bd,Uy,Hd,Yw,dz,o0s,h4,Z9H,n8,cd,Ow,Vg0,J1,f_2,iB,lB,uB,QW,F3,G4,Km,SrH,y9,w3,Ig,NK2,Cm,r3,t1,og,ZG,V9,Se,N8,mi,Ew,mt2,E0p,Dts,cL,h1,OJ,Re,a_A,v0f,XIB,Jw,gc,iy,TK_,$tL,nm,MgL,qr_,ly,kk_,uy,FL,KX,yg,wc,Ie,CX,tw,oe,Vg,fX,S2,N4,ZX,W6x,ATB,EJ,DX,ae,eMh,XL,pIW,TP,$z,BKs,M4,q4,kz,by,H9s,sJ,WG,Aw,e2,xtL,BG,jHs,QHp,L6L,xz,HG,Yrh,dtf,hM0,UJ,n02,vG,zMW,cTW,j2,OZA,Qg,RoH,LX,J9z,g3T,iZ2,l2A,uiA,Yz,GOz,Fh0,dc,nX,KhW, cG,y9x,Ol,wpf,I2B,Ra,CXp,r9H,tqx,o3z,Jv,ZZh,gB,f2A,uZ,F1,NAW,S80,mjx,E3x,DjW,Kq,y1,wB,a2W,v3s,Xpp,TAf,$jB,MqL,q8s,kO0,scA,bZ_,Cq,rB,WhB,A9H,tv,oa,eof,ZV,V1,SR,PX_,Nr,mN,El,ppH,DV,BAT,aa,HZp,vz,xjA,Uj_,X1,jcs,Qcz,Lhx,TJ,$$,Mr,qr,k$,Y8W,djh,sl,bZ,Wz,hoz,Av,eR,Pz,pq,Bz,zoT,n3W,Hz,x$,c9L,Ul,jR,Q1,Lq,YiA,OkT,Rys,Y$,JqB,gus,ikB,dB,hv,zJ,nq,cz,OM,R7,JG,gO,iJ,lJ,lbH,u9T,I7,Cw,Ffs,rO,TC,o7,qY,CHp,VXW,rqB,fb_,NDH,mFh,SX_,Eux,DF2,abH,UM,$FW,kSA,qXH,bks,WfH,Aqf,Yr,dO,PHA,pgs,UFp,hG,jzB,BDA,zC,nw,cO,OG,Lf2,hys, YXL,cq2,urA,lLp,Ohh,FYs,JM,Jks,RmA,ykh,CxL,IL0,Zhx,rkA,gM,iw,meT,FP,Egz,MZf,$eT,TqB,Xkz,aLH,sus,klz,vg_,PxH,emH,pkp,IG,xeh,Bqh,Hh_,Dez,UeA,juH,G8,yI,WYp,bhf,AkL,QuA,K4,qsT,YsL,hmH,ngp,OyB,gNh,iy0,umx,F0L,K0h,Gt0,rOp,w_L,yOB,tBh,VBA,fzs,Sdh,Nsz,EG,QE,DkB,mkp,XP,$kz,M2,qds,ktT,MB_,q2,sk_,kL,sG,ZF,bw,TDf,W7,AM,ez,P7,byB,W0f,p4,AOL,epB,PCW,B7,H7,xL,UG,jz,QI,L4,YL,dM,p_h,Bsx,hM,HyT,z8,zP,n4,c7,Ukh,xkx,OP,jkp,Qkz,L0s,RY,JU,Yd_,gG,dkx,hpH,szH,Tsx,zps,i5,Vv,c6,C4,nNW,cO_,u5,Nqs,lw,O2x,Ds,aG,tM,rM,RG,Zs,RpT, lzz,oG,VZs,oN0,Rz_,Glx,ggf,Fy,azs,Lw,gTs,JBx,Qzf,JO_,i2p,ZyH,N2,fLL,SsB,wkx,ckA,zmh,nuf,dFA,xF2,Hks,eyA,LYW,ihs,Izz,tZL,ogW,f4,Sz,VI,CCL,de2,uVh,lEz,Gy,KK,y5,wG,IY,rG,Zi,V5,fK,SC,mq,EP,Fe2,CK,Nh,Di,aY,GgL,vU,Kes,yBA,Ty,w6x,IEL,$k,Mh,qh,kk,sP,b5,WU,AU,oTA,PU,Z2_,eC,Vdx,rBh,tdA,fEH,pK,BU,SmL,NUT,HU,mJz,GW,DJ_,ETA,vTB,TUT,$Js,X6L,kgz,sqT,Wef,Yk,dG,ABz,ez_,hU,zy,POx,p6L,BUh,H2h,cU,xJz,Rx,JC,jqB,QqL,dJT,zzs,nT_,hzA,la,F_,ua,cB0,ORT,gV,RRh,JKA,gdx,iRB,ia,Gh0,KCf,yKs,FC0,uBs,lFA,wbH,IF_,LeT,CN2,Yms,rKh, tW_,fF0,odB,ZR2,VW2,mif,Sx0,NkH,Eds,Di2,K3,Xbp,aFz,Tk_,vdz,$i2,MW_,qxp,khH,s2_,bR_,WCf,AKh,eRB,PNT,pbL,Bk_,ye,xiL,Ui_,j2B,HRh,Q2s,LC_,hRA,Ix,tC,Z0,zRW,Ve,f3,SY,ROf,gwT,J4h,lTA,r4W,FjA,Tb,mF,i8T,O8L,cKL,ndL,X_,E7,v0,s7,ba,Z8f,W0,AC,kO,Nzh,VVp,fTx,mC0,eY,P0,DCp,B0,H0,xO,U7,jY,Qe,L3,aTW,vwL,YO,dV,zb,Tzh,$Cs,hC,n3,kdT,s1h,c0,b8z,Jt,WjB,g9,li,A42,ii,ui,eOh,G1,pd_,Bzs,yN,w9,o6,xC2,CL,ZW,fL,UCx,Na,tt,VN,j1s,mJ,Q1_,EN,LjT,I6,r9,H8h,S3,DW,Yy0,dCs,hOx,a6,zO_,vs,XT,T1,$V,nwh,qa,Ma,kV,sN,c4T,OmW,bi,Ws,At,e3, Ps,Rtp,pL,Bs,J1B,imh,Hs,xV,UN,u32,lG_,j3,FiA,G4H,KiA,QN,y1p,wLT,IG_,CBH,r1h,LL,YV,d9,ht,teB,oqf,nL,Zmp,cs,Oe,Ve_,fGH,R3,Swp,N3s,aGf,vqx,m8x,Eqp,D8W,gu,is,ls,us,XLH,T3p,FS,$82,qwx,MeT,wu,yP,sg_,bmp,WiB,A1f,I3,etW,ru,tf,PBH,B32,HmH,ZQ,NO,Qg0,ITx,D0,Yw0,d8s,hts,zt2,nqL,NL,VP,c1s,DQ,a3,Jw0,gzL,iXH,vm,GPL,lXh,uLW,ywH,wGf,XS,IXf,Kw_,CyB,TG,$2,MO,rws,t2p,qO,k2,ozL,se,ZXp,bs,m7,Pm,V22,Ccp,usH,pp,Bm,x2,Ue,jQ,QP,Lp,Hm,hf,SJB,np,m4B,cm,D4s,aXs,Ezs,NcL,vz2,XGT,Tcs,gm,$40,M2H,kPh,io,owA,lo,bXx,AwT,$O,e0s,Pys, ax,GdB,y4W,wdf,sef,Fd,pGf,Bcf,Gj,HXW,yl,wm,IZ,Cb,rm,x4A,tj,oZ,U42,je2,Zl,Vl,fb,Sj,N7,m1,LwB,Qe0,ES,YJz,h0B,Dl,z00,d4p,US,Hv,jj,Lb,YX,RZ,nzz,lV_,Tg,xX,nb,KNx,wzh,q7,JX,M7,gy,ur,Bv,Fv,o$T,Gq,Ks,ZqH,VRA,fVL,SlL,yh,NBp,mrA,wy,E$L,TB2,Xzp,DrB,v$p,aVL,IQ,$rL,Cs,MRx,qlp,sas,bqT,WNT,AvA,Hqp,Vh,fs,jaf,SN,N_,Qa2,drL,h2H,z2L,n$L,m5,cvp,R9x,JG2,br,wOB,uCH,Fo2,CJs,Wx,rGW,orh,t7H,Zwz,eN,Bx,V7H,AX,Hx,xI,ftB,NOW,DYh,Ls,ns,gr,u1,e9x,PJL,ys,KQ,IN,CQ,pO0,xYz,Hwz,UYp,td,rr,j7A,LoH,YM2,h9W,Vs,dYL,z9p,nrs,Sp,NZ,O4s,Qh, Z4,D4,$YA,SMH,s7h,TF,wr,Q7W,yMH,W$,i1,ep,P$,CwT,rMf,oLs,tzx,l1,B$,H$,xD,VzH,UI,jp,fs_,FD,Qs,BOh,YD,lsx,dr,SGf,vrH,atx,mY_,hd,gL,Mzs,$2s,k80,sGs,Ff,Ko,yM,Ge,II,Co,b4x,rL,AM2,t0,Pw2,VM,eaT,fo,Sl,x2_,NB,QGB,L92,D9,YGW,zas,A0,PD,po,xe,nLs,UY,jl,dL,h0,ze,no,cMf,cD,OH,gkL,RE,Jl,iKT,liB,gp,uy0,FqL,Gyx,Kqh,iY,lY,yUz,Iiz,Go,Kj,IE,Cj,C5h,rU2,rp,tl,oE,ZM,tCp,okW,Vo,ZKB,VCW,fj,SPL,fi2,NG_,Si,Ekx,mh_,Dh2,NM,mn,aiL,XUH,TGp,EH,DM,aE,$hp,qP0,vF,kyT,To,sYT,bKB,XU,$a,MM,qM,P52,BGL,Wq2,pUA,HKs,AUW,eCT,xhz,UhA,sH,jYf, Lqs,hC2,nkh,zC_,HF,BF,ji,O3L,Qo,Lj,Ya,JCp,dp,gOs,Rb2,hl,u_x,zo,nj,FF0,cF,RX,Gbs,KFh,yCp,w0z,I0T,J$,rCH,tYs,ltz,yGs,Z3s,oO2,f0L,VY2,S7A,i9,NVf,mLW,u9,a0_,F$,Gx,K1,X0x,MYL,IX,C1,rx,kbx,q7z,yJ,sxh,b3L,WFH,ebh,t$,LF0,SI,Ny,OLx,WF,JtA,gVp,iL2,lWx,uTs,E0,FJ_,Dr,aX,v8,G1H,$y,KJ2,ytp,My,qy,wss,IWf,Ciz,rtT,t3s,ky,Tx,oVW,ZLh,s0,fWL,SN2,N9s,b9,maT,EVz,Dah,aWh,vVW,Xs0,T9_,$ah,M32,qNB,W8,s6W,A$,WJH,bLH,eZx,AtL,psh,B8,k1s,eI,H8,U0,jI,QJ,L1,Yy,B9z,dx,HL_,zx,LJL,hZh,zZA,nVh,ctB,Oq,Op0,dax,Q6H,RVH,n1,Jfz,iph,h$,c8, Uap,j62,R5,lQp,uSx,YNB,xas,F70,gf,GG2,ib,lb,K70,ub,IQf,yfx,wmh,Fw,Css,Ga,KF,yY,wf,rf2,tQs,o2A,I5,VQB,fQp,CF,Sef,rf,ty,Nus,mOx,E2T,DO0,aQH,v2s,qe0,Tuf,YPL,Zh,s3x,bpL,$OB,MQ_,Xmx,SH,pmp,fF,VY,kGp,Hps,PsL,eVT,AfH,W7T,mu,xOs,bY,Eq,Dh,a5,UOs,vP,j3h,Xw,Q3f,UH,L7s,Ta,ei,pj,QYL,M9,ko,zV0,n2_,cfs,bb,q9,$o,WP,dOA,Yes,hVs,Ay,Obf,R62,p1,Pif,Al,eH,JjW,sq,gXT,ibT,llh,udB,F1_,Gjf,K1T,yjA,wvp,IlA,Cos,g2A,f1,pF,tjT,PP,oXp,i3B,l0p,BP,Zbp,Vjx,flA,SSp,HP,EXp,Nmx,D70,vXA,m7s,XvL,$70,Tmh,kjL,xo,QY,W1s,bbB,pv0,e60,BmA, HbH,AjL,Pop,sZ2,x7x,LF,U7H,L1z,jZA,QZp,df,V3A,YSz,d72,h62,z6_,nXs,hy,cj2,za,Oss,nF,cP,Rfs,Op,JXH,gIW,RF,isB,lch,uvL,F5s,JJ,$Ls,g_,yXL,ln,K5T,wxB,Ics,TVp,wx,Crz,oI2,rXs,FY,tNA,EI_,m_s,IF,D__,Nyf,Xxx,Cv,Ty_,$_L,kqL,sQL,W5f,qE2,AX2,efs,Prs,px0,Bys,x_s,U_2,jQz,Hsp,tJ,un,L5H,MN0,YEA,bsx,oF,hfs,QQs,r_,zfs,nIT,RUs,l4A,Jdz,uD2,iQW,Vp,cXs,Za,FEB,OQs,N6,ydz,I4H,w$z,C1B,KEp,rdh,tpz,fv,oDz,ZQx,Vps,f4W,mZz,Nrp,SIB,mD,EDA,a4A,vDf,X$W,Tr_,$ZL,aF,P8,Mps,qI_,sNB,kF_,bQ0,AdT,eUT,WE0,Sv,MjB,p$T,Brp,HQ_,dZf,jNA,QNs, LEh,hU0,nDA,BuA,Ep,UZs,xZA,zUp,xa,YIf,o5,PF,gD2,gep,J0s,ioL,l90,Kks,y0p,DZs,jH,Uq,Oos,wD0,R8s,I9W,CRs,al2,GFs,cd2,qS_,Qp,Lv,tlf,Yh,oex,Zop,VlT,f9s,SY_,mBz,Ees,XD0,DB0,ve0,TL_,hJ,ke2,Mlp,qYH,Wkx,A0A,e8_,zK,U9H,d_,j50,bop,$Bs,nv,Q5h,a9h,Luf,cA,d9x,YqA,znx,noh,cyB,hnT,OR,JJf,R5A,laH,ivf,ghB,uY2,FDz,R$,GKx,KDf,wA0,IaW,yJH,Cn0,Vvx,tvs,ohz,Zvp,fas,SpA,N_p,EhL,m6_,D62,aa2,Jm,XAL,T_s,MvH,$6p,qps,vhz,kK2,bvA,WDs,e5s,pAx,AJs,ik,B_s,Hvf,sFL,x6_,Pnf,lk,U6s,jFL,QF_,LDB,Yp_,d6h,h5A,nhT,Onx,RFL,Jm2,gE_,in_,uk,l8x, FX,FPB,GEW,wT,ym0,I$,I8A,Ck2,rmL,toB,Zn0,oEs,FkA,SRx,NTx,ufL,Cn,tm,VoH,f8s,Z8,VV,EEB,mvA,Dvs,a8W,vEp,$vf,Xns,kEs,fn,TTh,s$W,So,Pks,bnW,mP,ER,pn2,Nv,BTx,D8,UvW,xvT,Amx,eFT,j$2,Q$W,LPB,WPs,YR_,a$,dv0,Hnh,wnW,o$,zFs,XX,TE,nE_,cmz,OV2,R1B,Jb2,gfB,iVW,lnx,uaT,$E,FTx,G0A,yb_,woh,Ins,KT0,CAz,rb0,t50,ofH,ZVs,V5p,qv,b9W,fnA,StL,kE,NRf,mTs,bk,an0,vfx,Wn,TRx,$Tz,Xoz,DTW,Am,sR,Ef_,pn,Pn,M50,Bn,eo,bV0,e1s,po0,BR0,xTh,k0A,PAL,UT_,sRT,jRB,QRL,QV,Hn,dT2,h12,LTz,UR,cbB,OTz,AbH,WTp,nf2,Rdz,HV2,Yth,qtz,Ln,YE,dT,JN2, hm,GsT,lkW,KGx,uJh,iT2,yNT,gxx,CT_,wrH,zE,rN2,oxp,VKh,fk_,S6T,Exs,RR,DKA,N5s,jo,Xrs,T5A,uA,d_L,nn,$KW,MKA,ks0,q62,sMW,vx2,gR,bT_,WGs,ANs,PT2,edH,P12,Jb,prT,HTB,B5H,UK2,xKf,ZTT,QMT,jMp,iA,cn,LGf,G0,Y6W,dKz,hdf,zdT,nx0,Fa,mKL,cNz,r0W,xE,Ocz,RhL,JIz,gZh,ich,yx,wR,unT,FdB,GuB,lIz,KdW,IR,C02,waH,IIz,rIf,CV,tt_,oZp,Zch,rR,Vt0,SzL,Naz,mWA,tb,fIx,oR,Zn,EZA,DWz,S5,Vx,fV,aIB,NT,vZL,XaH,Ta2,Mtf,$Wf,Xa,ku2,sOL,qzp,bcH,T0,Wds,$f,AIL,MT,eh0,P0x,xW0,Hcx,QO2,paL,UWp,qT,Ba0,jOs,Ld2,Yz0,dWL,hhz,bA,zhs,e5,Wo,nZp,Po, pV,OCL,RY_,Ho,xf,Jzs,Bo,gA0,Ut,lN2,iCh,Qx,LV,Yf,G2f,ugL,Fl2,dR,Kls,CUW,wKA,yzz,INH,z0,t1T,fNW,SvB,co,Ng_,nV,oAx,ZC_,D1x,O6,RM,aNB,vAA,XKW,Tgs,$1s,iT,k2_,sB2,bC0,lT,qvs,AzH,g5,uT,FJ,M1z,Gs,eY0,PUs,KT,pKh,Bgh,HCW,yj,x1T,w5,U10,jBs,QBh,LlW,Yvx,d1W,hYB,cz2,zYs,OJW,RjT,iJs,u4z,FZf,lCT,KZ_,yLf,wCs,NK,C8z,rL_,S2z,Dk,EYf,vYA,aCA,DwT,V40,fC_,t4L,oYL,N8B,aM,vr,T8p,$e,p7W,$wA,Ts,MK,q2s,M4H,mwh,slW,bJA,WZL,qK,ALs,Pr,P8_,pCz,B80,xwW,HJB,Uwz,pT,Br,jlx,Y2H,dwx,U6,LZz,hjx,zjf,Ql_,LT,nYs,cL0,Qj,OlL,R_L,JpT,g4A,lmT, ils,Gpz,Kcp,u0x,wjL,Im0,Fcz,hN,zs,CjW,tnh,nT,rpx,o4H,Vn0,Zls,fm2,cr,STh,NWp,mgp,E4z,Dgs,amh,v42,TWW,Xj2,$gs,Mnp,qTH,kp0,sns,Wch,RO,Oz,JI,ApA,e__,blB,xgB,UgW,jnh,YTT,Lcx,Qnp,dg_,h_2,i0,l0,z_x,n4x,cpx,OBL,JPL,gmW,Fn,iBH,u0,Kc,Rs2,lv_,uFW,Fgz,G5p,Kg2,wa,yPA,wyp,rPp,IO,tsL,C3h,Cc,ra,tI,Vss,omL,ZBA,SVf,fvs,N$_,mE_,DE2,XyT,Em2,avB,ZI,T$z,Mss,qVB,spT,bB2,Vw,fc,WgW,$Ex,P3f,esA,APW,St,NW,B$2,pyx,md,Ez,DI,HB_,aO,xE_,UE_,jps,va,QpT,Xn,Lg_,Tu,$Z,hs_,zsf,nmp,O5x,R3z,JRf,cPz,i5p,g72,lYp,GBz,kZ,yRf,KXB,ubs,FXW, w5H,IYs,sz,b0,CKT,rRs,tcs,o7p,Z5s,Vcf,SFf,NtL,$zW,Dzf,aY2,mzz,qF0,Ba,xZ,ARL,e3h,Qw,Lc,PKW,kBp,pc,hI,da,Uz,Bt0,H52,zu,Uz2,QjB,jj2,nc,jt,Pa,xzh,YZ,sjH,p5_,YFT,Wa,ca,dzs,h3A,Ha,b5x,Ov,RB,z3x,Jz,gg,iU,n7H,cRz,RAH,Jof,OH_,lU,uU,gnB,Fg,iHs,G2,KC,lwB,uj2,FWB,GZ2,KWT,yox,Iw2,wYB,wg,yZ,C7L,t9p,roh,IB,CC,onh,V9s,fwA,rg,ZHz,S3f,NPW,mDp,EnW,DDB,awH,vnL,oB,ZN,TPT,XYp,VZ,fC,M9z,$Df,S1,kZA,N1,q3B,sds,WWh,bHs,Aox,Ev,eAB,P7_,aB,pYB,vK,BPH,HHz,xDB,UDW,jd2,LWW,Y3s,dDz,QdH,hA0,zAW,nnf,coB,OUp,RSs,JnH,gcx,q1,iUx,lBh, uWh,K_W,Cgx,wtz,Gn_,WK,ynh,F_T,IB0,Az,tGx,rn_,e1,ocT,ZUh,VGp,rJz,HK,ha_,pC,xA,BK,j1,fBT,SDH,aBH,vcH,XtT,QZ,Tez,LC,YA,$ox,dg,MGH,qDH,knh,sS_,BeH,O2,ptW,Rl,g8,i8,xoH,HUs,bUT,l8,Uo0,jSB,L_0,u8,YDB,doz,hSf,JL,ncA,zSW,F4,GQ,eSA,nC,cnW,OYA,R40,JEz,W_s,AnA,cK,gv_,iYB,ldz,uqx,yEW,wNW,Krz,rEH,KJ,ka,KV,ZYs,V_W,ovx,fdz,Scx,t_p,FrL,NFT,CpL,mHf,IdW,z1x,Evs,Yo,Grf,adf,$Hx,w8,M__,qcT,XNs,CJ,krB,sm2,DHx,bYh,TFh,Wrp,r8,Il,AE0,Ppf,e4_,yq,BFx,tL,akh,HY2,jmp,UHL,Lrf,Ycf,QmL,ZC,ol,h4A,z4_,nvW,cEh,G6W,iWH,l6s,Jef,wcs, RxA,S4,reH,I6B,txA,o1A,fJ,mZ,E2,SKs,f6p,Vxz,al,FmH,$Y,mpA,TQ,DC,Dpz,a6_,v1H,yes,kY,b8,XcL,uAx,NiH,vC,TiW,Nw,$p2,MxH,qK_,e4,PC,E1A,k6_,sw0,pJ,BC,bWB,X4,C_f,WmH,Aex,ex2,s2,P_s,Mw,pch,qw,Z9,Bih,xp_,HC,xY,UpB,jwA,Qw0,AL,WC,LmL,xHL,YKA,dpA,hx_,zxH,n1B,U2,j4,R$s,iGA,u2B,OG2,ru0,tMp,oRx,ZGB,VM2,fxp,SLA,ml0,NSL,Qq,LJ,YY,ERH,DlT,axA,hw,vR_,d8,X9T,hL,TS_,zQ,nJ,$lA,Xs,MMh,cC,vNx,n2,qL_,T8,EN2,vuL,kD0,uw,sfW,X_H,bGs,PG,pX,Wa_,l5,AuH,e$2,$L,MXH,PSW,p92,OT,HGx,xlL,Rn,gW,ij,Uls,La2,YLA,lj,dlB,jf_,z$H,Qff,h$H,nRx, cu2,O0s,Rcs,uj,gJf,Nos,DF,iZ,i0z,l5T,GJ,J5z,qi,uz2,FUA,G7T,F0,mw,lZ,y5x,wHs,Gp,Kl,I5W,yB,v7,CtA,Jp,r52,t$z,oJT,UtL,wW,In,Z0_,Cl,rW,V$A,tp,f52,on,Zm,Sbf,N0H,VqL,VB,mS0,EJL,a5h,DS0,fl,Sn,vJs,Ng,XH_,T0T,$Ss,M$B,qbs,k7h,b02,ET,s0h,WUB,A52,ecA,PtH,xST,pHh,B0A,H0s,j02,LUh,YbW,dSx,Q0H,Dm,hcz,zcL,nJs,c5B,Ox_,vj,RLt,X0,Tp,$4,Js6,gWt,lfM,upM,FHC,Gzk,ysQ,KH4,wBQ,Mg,qg,rsC,If6,C2o,k4,tTC,oWM,sT,bj,Zx6,Wj,VTb,Ap,ff6,en,Pj,S_R,pl,Bj,Nho,m0I,Hj,x4,EWR,UT,D0C,aft,Y4,dW,vWo,XBC,ThV,q_M,MTQ,hp,kzV,ssb,bx4,Xgp,$0_, As6,eLk,pBQ,Oxz,yA;Rs=function(O){return function(){return Oxz[O].apply(this,arguments)}}; g.u2=function(O,R){return Oxz[O]=R}; RLx=function(O){var R=0;return function(){return R=this.length))return this[O]}; QA=function(O){return O?O:jT}; C2f=function(O,R,J){O instanceof String&&(O=String(O));for(var l=O.length-1;l>=0;l--){var u=O[l];if(R.call(J,u,l,O))return{Un:l,Wb:u}}return{Un:-1,Wb:void 0}}; Lx=function(O){return O?O:function(R,J){return C2f(this,R,J).Un}}; g.dh=function(O,R,J){O=O.split(".");J=J||g.YW;for(var l;O.length&&(l=O.shift());)O.length||R===void 0?J[l]&&J[l]!==Object.prototype[l]?J=J[l]:J=J[l]={}:J[l]=R}; nx=function(O,R){var J=g.hs("CLOSURE_FLAGS");O=J&&J[O];return O!=null?O:R}; g.hs=function(O,R){O=O.split(".");R=R||g.YW;for(var J=0;J2){var l=Array.prototype.slice.call(arguments,2);return function(){var u=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(u,l);return O.apply(R,u)}}return function(){return O.apply(R,arguments)}}; g.iQ=function(O,R,J){g.iQ=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?tT_:oWW;return g.iQ.apply(null,arguments)}; g.uQ=function(O,R){var J=Array.prototype.slice.call(arguments,1);return function(){var l=J.slice();l.push.apply(l,arguments);return O.apply(this,l)}}; g.Fk=function(){return Date.now()}; G_=function(O){return O}; g.y6=function(O,R){function J(){} J.prototype=R.prototype;O.gS=R.prototype;O.prototype=new J;O.prototype.constructor=O;O.Aj=function(l,u,F){for(var G=Array(arguments.length-2),y=2;y=0;--J)J in l&&R.call(void 0,l[J],J,O)}; g.rC=function(O,R,J){R=Ct(O,R,J);return R<0?null:typeof O==="string"?O.charAt(R):O[R]}; Ct=function(O,R,J){for(var l=O.length,u=typeof O==="string"?O.split(""):O,F=0;F=0;l--)if(l in u&&R.call(J,u[l],l,O))return l;return-1}; g.Zo=function(O,R){return D0h(O,R)>=0}; afx=function(O){if(!Array.isArray(O))for(var R=O.length-1;R>=0;R--)delete O[R];O.length=0}; g.ft=function(O,R){R=D0h(O,R);var J;(J=R>=0)&&g.V6(O,R);return J}; g.V6=function(O,R){return Array.prototype.splice.call(O,R,1).length==1}; g.S6=function(O,R){R=Ct(O,R);R>=0&&g.V6(O,R)}; vWf=function(O,R){var J=0;EWB(O,function(l,u){R.call(void 0,l,u,O)&&g.V6(O,u)&&J++})}; g.Ns=function(O){return Array.prototype.concat.apply([],arguments)}; g.m4=function(O){var R=O.length;if(R>0){for(var J=Array(R),l=0;l>>1),w=void 0;J?w=R.call(void 0,O[y],y,O):w=R(l,O[y]);w>0?u=y+1:(F=y,G=!w)}return G?u:-u-1}; g.sC=function(O,R){O.sort(R||T_)}; $0z=function(O,R){var J=T_;g.sC(O,function(l,u){return J(R(l),R(u))})}; g.bQ=function(O,R,J){if(!g.OC(O)||!g.OC(R)||O.length!=R.length)return!1;var l=O.length;J=J||MT2;for(var u=0;uR?1:O0&&(R[u]=l)},O); return R}; Bhp=function(O){O=Cz(O);var R=[];g.BR(O,function(J,l){l in Object.prototype||typeof J!="undefined"&&R.push([l,":",J].join(""))}); return R}; x0s=function(O){yL(O,"od",Hxh);yL(O,"opac",rY).L=!0;yL(O,"sbeos",rY).L=!0;yL(O,"prf",rY).L=!0;yL(O,"mwt",rY).L=!0;yL(O,"iogeo",rY)}; tx=function(O,R){return O.lastIndexOf(R,0)==0}; U0B=function(O,R){var J=O.length-R.length;return J>=0&&O.indexOf(R,J)==J}; g.oW=function(O){return/^[\s\xa0]*$/.test(O)}; g.ZJ=function(O,R){return O.indexOf(R)!=-1}; fz=function(O,R){return g.ZJ(O.toLowerCase(),R.toLowerCase())}; g.m2=function(O,R){var J=0;O=SL(String(O)).split(".");R=SL(String(R)).split(".");for(var l=Math.max(O.length,R.length),u=0;J==0&&uR?1:0}; g.aW=function(){var O=g.YW.navigator;return O&&(O=O.userAgent)?O:""}; $b=function(O){if(!vl&&!XK||!TM)return!1;for(var R=0;R0:!1}; kb=function(){return qn()?!1:Mn("Opera")}; jsB=function(){return qn()?!1:Mn("Trident")||Mn("MSIE")}; QsH=function(){return qn()?$b("Microsoft Edge"):Mn("Edg/")}; s5=function(){return Mn("Firefox")||Mn("FxiOS")}; Ax=function(){return Mn("Safari")&&!(Wl()||(qn()?0:Mn("Coast"))||kb()||(qn()?0:Mn("Edge"))||QsH()||(qn()?$b("Opera"):Mn("OPR"))||s5()||Mn("Silk")||Mn("Android"))}; Wl=function(){return qn()?$b("Chromium"):(Mn("Chrome")||Mn("CriOS"))&&!(qn()?0:Mn("Edge"))||Mn("Silk")}; LHh=function(){return Mn("Android")&&!(Wl()||s5()||kb()||Mn("Silk"))}; Y_h=function(O){var R={};O.forEach(function(J){R[J[0]]=J[1]}); return function(J){return R[J.find(function(l){return l in R})]||""}}; d0z=function(O){var R=g.aW();if(O==="Internet Explorer"){if(jsB())if((O=/rv: *([\d\.]*)/.exec(R))&&O[1])R=O[1];else{O="";var J=/MSIE +([\d\.]+)/.exec(R);if(J&&J[1])if(R=/Trident\/(\d.\d)/.exec(R),J[1]=="7.0")if(R&&R[1])switch(R[1]){case "4.0":O="8.0";break;case "5.0":O="9.0";break;case "6.0":O="10.0";break;case "7.0":O="11.0"}else O="7.0";else O=J[1];R=O}else R="";return R}var l=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");J=[];for(var u;u=l.exec(R);)J.push([u[1],u[2],u[3]||void 0]); R=Y_h(J);switch(O){case "Opera":if(kb())return R(["Version","Opera"]);if(qn()?$b("Opera"):Mn("OPR"))return R(["OPR"]);break;case "Microsoft Edge":if(qn()?0:Mn("Edge"))return R(["Edge"]);if(QsH())return R(["Edg"]);break;case "Chromium":if(Wl())return R(["Chrome","CriOS","HeadlessChrome"])}return O==="Firefox"&&s5()||O==="Safari"&&Ax()||O==="Android Browser"&&LHh()||O==="Silk"&&Mn("Silk")?(R=J[2])&&R[1]||"":""}; hLB=function(O){if(qn()&&O!=="Silk"){var R=TM.brands.find(function(J){return J.brand===O}); if(!R||!R.version)return NaN;R=R.version.split(".")}else{R=d0z(O);if(R==="")return NaN;R=R.split(".")}return R.length===0?NaN:Number(R[0])}; nWW=function(){var O=null;if(!zLB)return O;try{var R=function(J){return J}; O=zLB.createPolicy("goog#html",{createHTML:R,createScript:R,createScriptURL:R})}catch(J){}return O}; Pl=function(){eL===void 0&&(eL=nWW());return eL}; pz=function(O){this.L=O}; Bl=function(O){var R=Pl();O=R?R.createScriptURL(O):O;return new pz(O)}; Hl=function(O){if(O instanceof pz)return O.L;throw Error("");}; xb=function(O){this.L=O}; g.U5=function(O){if(O instanceof xb)return O.L;throw Error("");}; jL=function(O){this.Dh=O}; QL=function(O){return new jL(function(R){return R.substr(0,O.length+1).toLowerCase()===O+":"})}; g.Yb=function(O,R){R=R===void 0?csh:R;a:if(R=R===void 0?csh:R,!(O instanceof xb)){for(var J=0;J4);u++)R[I4(O[u])]||(J+="\nInner error "+l++ +": ",O[u].stack&&O[u].stack.indexOf(O[u].toString())==0||(J+=typeof O[u]==="string"?O[u]:O[u].message+"\n"),J+=yr(O[u],R));u")!=-1&&(O=O.replace(wRL,">")),O.indexOf('"')!=-1&&(O=O.replace(Ioz,""")),O.indexOf("'")!=-1&&(O=O.replace(CQs,"'")),O.indexOf("\x00")!=-1&&(O=O.replace(rV_,"�")));return O}; g.Vr=function(O){return O==null?"":String(O)}; fI=function(O){for(var R=0,J=0;J>>0;return R}; S0=function(O){var R=Number(O);return R==0&&g.oW(O)?NaN:R}; t6s=function(O){return String(O).replace(/\-([a-z])/g,function(R,J){return J.toUpperCase()})}; oMp=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; ZtB=function(O){return O.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(R,J,l){return J+l.toUpperCase()})}; V6h=function(O){var R=1;O=O.split(":");for(var J=[];R>0&&O.length;)J.push(O.shift()),R--;O.length&&J.push(O.join(":"));return J}; Nc=function(){return vl||XK?!!TM&&!!TM.platform:!1}; fos=function(){return Nc()?TM.platform==="Android":Mn("Android")}; m8=function(){return Mn("iPhone")&&!Mn("iPod")&&!Mn("iPad")}; Eo=function(){return m8()||Mn("iPad")||Mn("iPod")}; DR=function(){return Nc()?TM.platform==="macOS":Mn("Macintosh")}; SCT=function(){return Nc()?TM.platform==="Windows":Mn("Windows")}; a4=function(O){a4[" "](O);return O}; NCx=function(O,R){try{return a4(O[R]),!0}catch(J){}return!1}; EML=function(O,R){var J=msB;return Object.prototype.hasOwnProperty.call(J,O)?J[O]:J[O]=R(O)}; g.vE=function(O){return EML(O,function(){return g.m2(DsA,O)>=0})}; g.TY=function(O,R,J){return Math.min(Math.max(O,R),J)}; g.$C=function(O,R){O%=R;return O*R<0?O+R:O}; Mc=function(O,R,J){return O+J*(R-O)}; g.qc=function(O,R){this.x=O!==void 0?O:0;this.y=R!==void 0?R:0}; kC=function(O,R){return O==R?!0:O&&R?O.x==R.x&&O.y==R.y:!1}; g.so=function(O,R){this.width=O;this.height=R}; g.bL=function(O,R){return O==R?!0:O&&R?O.width==R.width&&O.height==R.height:!1}; WE=function(O){return O.width*O.height}; e0=function(O,R){this.L=O===Ag&&R||""}; PE=function(O){if(O instanceof nz)return O;O=String(O).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return cl(O)}; vMH=function(O){return aoT(O)}; aoT=function(O){var R=PE("");return cl(O.map(function(J){return R4(PE(J))}).join(R4(R).toString()))}; qCh=function(O){var R;if(!XRH.test("div"))throw Error("");if(TCh.indexOf("DIV")!==-1)throw Error("");var J="":(O=vMH(R.map(function(l){return l instanceof nz?l:PE(String(l))})),J+=">"+O.toString()+""); return cl(J)}; $ss=function(O){for(var R="",J=Object.keys(O),l=0;l2&&pRx(u,G,l,2);return G}; pRx=function(O,R,J,l){function u(y){y&&R.appendChild(typeof y==="string"?O.createTextNode(y):y)} for(;l0)u(F);else{a:{if(F&&typeof F.length=="number"){if(g.Rb(F)){var G=typeof F.item=="function"||typeof F.item=="string";break a}if(typeof F==="function"){G=typeof F.item=="function";break a}}G=!1}g.e6(G?g.m4(F):F,u)}}}; g.cE=function(O){return zY(document,O)}; zY=function(O,R){R=String(R);O.contentType==="application/xhtml+xml"&&(R=R.toLowerCase());return O.createElement(R)}; g.O9=function(O){return document.createTextNode(String(O))}; g.Ro=function(O,R){O.appendChild(R)}; g.Jh=function(O){for(var R;R=O.firstChild;)O.removeChild(R)}; gv=function(O,R,J){O.insertBefore(R,O.childNodes[J]||null)}; g.iu=function(O){return O&&O.parentNode?O.parentNode.removeChild(O):null}; g.lu=function(O,R){if(!O||!R)return!1;if(O.contains&&R.nodeType==1)return O==R||O.contains(R);if(typeof O.compareDocumentPosition!="undefined")return O==R||!!(O.compareDocumentPosition(R)&16);for(;R&&O!=R;)R=R.parentNode;return R==O}; BE=function(O){return O.nodeType==9?O:O.ownerDocument||O.document}; g.uu=function(O,R){if("textContent"in O)O.textContent=R;else if(O.nodeType==3)O.data=String(R);else if(O.firstChild&&O.firstChild.nodeType==3){for(;O.lastChild!=O.firstChild;)O.removeChild(O.lastChild);O.firstChild.data=String(R)}else g.Jh(O),O.appendChild(BE(O).createTextNode(String(R)))}; HtT=function(O){return O.tagName=="A"&&O.hasAttribute("href")||O.tagName=="INPUT"||O.tagName=="TEXTAREA"||O.tagName=="SELECT"||O.tagName=="BUTTON"?!O.disabled&&(!O.hasAttribute("tabindex")||BCf(O)):O.hasAttribute("tabindex")&&BCf(O)}; BCf=function(O){O=O.tabIndex;return typeof O==="number"&&O>=0&&O<32768}; Gf=function(O,R,J){if(!R&&!J)return null;var l=R?String(R).toUpperCase():null;return Ft(O,function(u){return(!l||u.nodeName==l)&&(!J||typeof u.className==="string"&&g.Zo(u.className.split(/\s+/),J))},!0)}; Ft=function(O,R,J){O&&!J&&(O=O.parentNode);for(J=0;O;){if(R(O))return O;O=O.parentNode;J++}return null}; pI=function(O){this.L=O||g.YW.document||document}; xsp=function(){this.L=this.Iy=null}; Ku=function(){}; wv=function(){if(!yX())throw Error();}; yX=function(){return!(!Io||!Io.performance)}; Cu=function(O){return function(){return O}}; g.rv=function(){}; UsH=function(O){var R=R||0;return function(){return O.apply(this,Array.prototype.slice.call(arguments,0,R))}}; th=function(O){var R=!1,J;return function(){R||(J=O(),R=!0);return J}}; oo=function(O){var R=O;return function(){if(R){var J=R;R=null;J()}}}; Zu=function(O,R,J){var l=0;return function(u){g.YW.clearTimeout(l);var F=arguments;l=g.YW.setTimeout(function(){O.apply(J,F)},R)}}; VX=function(O){return O?O.passive&&jbW()?O:O.capture||!1:!1}; fu=function(O,R,J,l){return O.addEventListener?(O.addEventListener(R,J,VX(l)),!0):!1}; SO=function(O){if(O.prerendering)return 3;var R;return(R={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[O.visibilityState||O.webkitVisibilityState||O.mozVisibilityState||""])!=null?R:0}; Qb_=function(){}; L4B=function(O){return O}; NA=function(O){O.alz=!0;return O}; YC_=function(O){return g.d7?"webkit"+O:O.toLowerCase()}; dsA=function(){return(vl||XK)&&TM?TM.mobile:!mI()&&(Mn("iPod")||Mn("iPhone")||Mn("Android")||Mn("IEMobile"))}; mI=function(){return(vl||XK)&&TM?!TM.mobile&&(Mn("iPad")||Mn("Android")||Mn("Silk")):Mn("iPad")||Mn("Android")&&!Mn("Mobile")||Mn("Silk")}; Du=function(O,R,J,l,u,F,G){var y="";O&&(y+=O+":");J&&(y+="//",R&&(y+=R+"@"),y+=J,l&&(y+=":"+l));u&&(y+=u);F&&(y+="?"+F);G&&(y+="#"+G);return y}; g.ao=function(O){return O.match(hI2)}; zI0=function(O){return O?decodeURI(O):O}; g.vQ=function(O){return zI0(g.ao(O)[3]||null)}; Xt=function(O){return zI0(g.ao(O)[5]||null)}; g.nM_=function(O){O=g.ao(O);return Du(O[1],O[2],O[3],O[4])}; Tf=function(O){O=g.ao(O);return Du(null,null,null,null,O[5],O[6],O[7])}; cVh=function(O){var R=O.indexOf("#");return R<0?O:O.slice(0,R)}; $i=function(O,R){if(O){O=O.split("&");for(var J=0;J=0){var F=O[J].substring(0,l);u=O[J].substring(l+1)}else F=O[J];R(F,u?tg(u):"")}}}; MA=function(O,R){if(!R)return O;var J=O.indexOf("#");J<0&&(J=O.length);var l=O.indexOf("?");if(l<0||l>J){l=J;var u=""}else u=O.substring(l+1,J);O=[O.slice(0,l),u,O.slice(J)];J=O[1];O[1]=R?J?J+"&"+R:R:J;return O[0]+(O[1]?"?"+O[1]:"")+O[2]}; qA=function(O,R,J){if(Array.isArray(R))for(var l=0;l=0&&RJ)u=J;l+=R.length+1;return tg(O.slice(l,u!==-1?u:0))}; Ah=function(O,R){for(var J=O.search(gbT),l=0,u,F=[];(u=Jxz(O,l,R,J))>=0;)F.push(O.substring(l,u)),l=Math.min(O.indexOf("&",u)+1||J,J);F.push(O.slice(l));return F.join("").replace(izH,"$1")}; lJW=function(O,R,J){return bu(Ah(O,R),R,J)}; eO=function(O){try{return!!O&&O.location.href!=null&&NCx(O,"foo")}catch(R){return!1}}; PQ=function(O,R){if(O)for(var J in O)Object.prototype.hasOwnProperty.call(O,J)&&R(O[J],J,O)}; F2B=function(){var O=[];PQ(uKs,function(R){O.push(R)}); return O}; GMx=function(O){var R,J;return(J=(R=/https?:\/\/[^\/]+/.exec(O))==null?void 0:R[0])!=null?J:""}; wlL=function(){var O=K2T("IFRAME"),R={};g.e6(yxp(),function(J){O.sandbox&&O.sandbox.supports&&O.sandbox.supports(J)&&(R[J]=!0)}); return R}; K2T=function(O,R){R=R===void 0?document:R;return R.createElement(String(O).toLowerCase())}; IJT=function(O){for(var R=O;O&&O!=O.parent;)O=O.parent,eO(O)&&(R=O);return R}; ob2=function(O){O=O||pu();for(var R=new CeT(g.YW.location.href,!1),J=null,l=O.length-1,u=l;u>=0;--u){var F=O[u];!J&&rxW.test(F.url)&&(J=F);if(F.url&&!F.L){R=F;break}}u=null;F=O.length&&O[l].url;R.depth!==0&&F&&(u=O[l]);return new tL2(R,u,J)}; pu=function(){var O=g.YW,R=[],J=null;do{var l=O;if(eO(l)){var u=l.location.href;J=l.document&&l.document.referrer||null}else u=J,J=null;R.push(new CeT(u||""));try{O=l.parent}catch(F){O=null}}while(O&&l!==O);l=0;for(O=R.length-1;l<=O;++l)R[l].depth=O-l;l=g.YW;if(l.location&&l.location.ancestorOrigins&&l.location.ancestorOrigins.length===R.length-1)for(O=1;OR&&(R=J.length);return 3997-R-O.B.length-1}; U9=function(O,R){this.L=O;this.depth=R}; S5W=function(){function O(y,w){return y==null?w:y} var R=pu(),J=Math.max(R.length-1,0),l=ob2(R);R=l.L;var u=l.S,F=l.B,G=[];F&&G.push(new U9([F.url,F.L?2:0],O(F.depth,1)));u&&u!=F&&G.push(new U9([u.url,2],0));R.url&&R!=F&&G.push(new U9([R.url,0],O(R.depth,J)));l=g.jO(G,function(y,w){return G.slice(0,G.length-w)}); !R.url||(F||u)&&R!=F||(u=GMx(R.url))&&l.push([new U9([u,1],O(R.depth,J))]);l.push([]);return g.jO(l,function(y){return fJT(J,y)})}; fJT=function(O,R){g.QX(R,function(u){return u.depth>=0}); var J=Lu(R,function(u,F){return Math.max(u,F.depth)},-1),l=q_W(J+2); l[0]=O;g.e6(R,function(u){return l[u.depth+1]=u.L}); return l}; NYW=function(){var O=O===void 0?S5W():O;return O.map(function(R){return xi(R)})}; mnp=function(O){var R=!1;R=R===void 0?!1:R;Io.google_image_requests||(Io.google_image_requests=[]);var J=K2T("IMG",Io.document);R&&(J.attributionSrc="");J.src=O;Io.google_image_requests.push(J)}; Yi=function(O){var R="NK";if(O.NK&&O.hasOwnProperty(R))return O.NK;var J=new O;O.NK=J;O.hasOwnProperty(R);return J}; dv=function(){this.S=new Qb_;this.L=yX()?new wv:new Ku}; EbW=function(){hh();var O=Io.document;return!!(O&&O.body&&O.body.getBoundingClientRect&&typeof Io.setInterval==="function"&&typeof Io.clearInterval==="function"&&typeof Io.setTimeout==="function"&&typeof Io.clearTimeout==="function")}; DnL=function(){hh();return NYW()}; aJ_=function(){}; hh=function(){var O=Yi(aJ_);if(!O.L){if(!Io)throw Error("Context has not been set and window is undefined.");O.L=Yi(dv)}return O.L}; zf=function(O){return(O&192)!==128}; nu=function(){throw Error("Invalid UTF8");}; vbs=function(O,R){R=String.fromCharCode.apply(null,R);return O==null?R:O+R}; MLz=function(O){var R=!1;R=R===void 0?!1:R;if(Xl_){if(R&&(TYs?!O.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(O)))throw Error("Found an unpaired surrogate");O=($nz||($nz=new TextEncoder)).encode(O)}else{for(var J=0,l=new Uint8Array(3*O.length),u=0;u>6|192;else{if(F>=55296&&F<=57343){if(F<=56319&&u=56320&&G<=57343){F=(F-55296)*1024+ G-56320+65536;l[J++]=F>>18|240;l[J++]=F>>12&63|128;l[J++]=F>>6&63|128;l[J++]=F&63|128;continue}else u--}if(R)throw Error("Found an unpaired surrogate");F=65533}l[J++]=F>>12|224;l[J++]=F>>6&63|128}l[J++]=F&63|128}}O=J===l.length?l:l.subarray(0,J)}return O}; cQ=function(O){g.YW.setTimeout(function(){throw O;},0)}; q5f=function(O){return Array.prototype.map.call(O,function(R){R=R.toString(16);return R.length>1?R:"0"+R}).join("")}; kML=function(O){for(var R=[],J=0;J>6|192:((u&64512)==55296&&l+1>18|240,R[J++]=u>>12&63|128):R[J++]=u>>12|224,R[J++]=u>>6&63|128),R[J++]=u&63|128)}return R}; g.RK=function(O,R){R===void 0&&(R=0);sWz();R=bzx[R];for(var J=Array(Math.floor(O.length/3)),l=R[64]||"",u=0,F=0;u>2];G=R[(G&3)<<4|y>>4];y=R[(y&15)<<2|w>>6];w=R[w&63];J[F++]=""+I+G+y+w}I=0;w=l;switch(O.length-u){case 2:I=O[u+1],w=R[(I&15)<<2]||l;case 1:O=O[u],J[F]=""+R[O>>2]+R[(O&3)<<4|I>>4]+w+l}return J.join("")}; g.J8=function(O,R){if(W2_&&!R)O=g.YW.btoa(O);else{for(var J=[],l=0,u=0;u255&&(J[l++]=F&255,F>>=8);J[l++]=F}O=g.RK(J,R)}return O}; eQA=function(O){var R=[];AxT(O,function(J){R.push(J)}); return R}; gX=function(O){var R=O.length,J=R*3/4;J%3?J=Math.floor(J):g.ZJ("=.",O[R-1])&&(J=g.ZJ("=.",O[R-2])?J-2:J-1);var l=new Uint8Array(J),u=0;AxT(O,function(F){l[u++]=F}); return u!==J?l.subarray(0,u):l}; AxT=function(O,R){function J(w){for(;l>4);G!=64&&(R(F<<4&240|G>>2),y!=64&&R(G<<6&192|y))}}; sWz=function(){if(!i$){i$={};for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),R=["+/=","+/","-_=","-_.","-_"],J=0;J<5;J++){var l=O.concat(R[J].split(""));bzx[J]=l;for(var u=0;u=R||(l[O]=J+1,O=Error(),ukp(O,"incident"),cQ(O))}}; wX=function(O,R,J){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(J===void 0?0:J)&&Symbol.for&&O?Symbol.for(O):O!=null?Symbol(O):Symbol():R}; rX=function(O,R){IK||C6 in O||dnH(O,hQ2);O[C6]|=R}; t8=function(O,R){IK||C6 in O||dnH(O,hQ2);O[C6]=R}; oK=function(O){O[C6]&=-3}; Vy=function(O,R){return R===void 0?O.L!==Zp&&!!(2&(O.L1[C6]|0)):!!(2&R)&&O.L!==Zp}; zQH=function(O,R){if(O!=null)if(typeof O==="string")O=O?new l$(O,u$):FQ();else if(O.constructor!==l$)if(QWL&&O!=null&&O instanceof Uint8Array)O=O.length?new l$(new Uint8Array(O),u$):FQ();else{if(!R)throw Error();O=void 0}return O}; f6=function(O,R){if(typeof R!=="number"||R<0||R>=O.length)throw Error();}; nb2=function(O,R,J){R=R&128?0:-1;var l=O.length,u;if(u=!!l)u=O[l-1],u=u!=null&&typeof u==="object"&&u.constructor===Object;for(var F=l+(u?-1:0),G=0;GR.length)return!1;if(O.lengthu)return!1;if(l>>0;aK=R;v2=(O-R)/4294967296>>>0}; $K=function(O){if(O<0){XQ(0-O);var R=g.N(Tc(aK,v2));O=R.next().value;R=R.next().value;aK=O>>>0;v2=R>>>0}else XQ(O)}; qU=function(O,R){var J=R*4294967296+(O>>>0);return Number.isSafeInteger(J)?J:MU(O,R)}; gCs=function(O,R){var J=R&2147483648;J&&(O=~O+1>>>0,R=~R>>>0,O==0&&(R=R+1>>>0));O=qU(O,R);return typeof O==="number"?J?-O:O:J?"-"+O:O}; MU=function(O,R){R>>>=0;O>>>=0;if(R<=2097151)var J=""+(4294967296*R+O);else mz()?J=""+(BigInt(R)<>>24|R<<8)&16777215,R=R>>16&65535,O=(O&16777215)+J*6777216+R*6710656,J+=R*8147497,R*=2,O>=1E7&&(J+=O/1E7>>>0,O%=1E7),J>=1E7&&(R+=J/1E7>>>0,J%=1E7),J=R+iIx(J)+iIx(O));return J}; iIx=function(O){O=String(O);return"0000000".slice(O.length)+O}; lRs=function(){var O=aK,R=v2;R&2147483648?mz()?O=""+(BigInt(R|0)<>>0)):(R=g.N(Tc(O,R)),O=R.next().value,R=R.next().value,O="-"+MU(O,R)):O=MU(O,R);return O}; kK=function(O){if(O.length<16)$K(Number(O));else if(mz())O=BigInt(O),aK=Number(O&BigInt(4294967295))>>>0,v2=Number(O>>BigInt(32)&BigInt(4294967295));else{var R=+(O[0]==="-");v2=aK=0;for(var J=O.length,l=0+R,u=(J-R)%6+R;u<=J;l=u,u+=6)l=Number(O.slice(l,u)),v2*=1E6,aK=aK*1E6+l,aK>=4294967296&&(v2+=Math.trunc(aK/4294967296),v2>>>=0,aK>>>=0);R&&(R=g.N(Tc(aK,v2)),O=R.next().value,R=R.next().value,aK=O,v2=R)}}; Tc=function(O,R){R=~R;O?O=~O+1:R+=1;return[O,R]}; sa=function(O){return Array.prototype.slice.call(O)}; b$=function(O){if(O!=null&&typeof O!=="number")throw Error("Value of float/double field must be a number, found "+typeof O+": "+O);return O}; uRh=function(O){return O.displayName||O.name||"unknown type name"}; W2=function(O){if(O!=null&&typeof O!=="boolean")throw Error("Expected boolean but got "+cB(O)+": "+O);return O}; ew=function(O){switch(typeof O){case "bigint":return!0;case "number":return A8(O);case "string":return F8T.test(O);default:return!1}}; GYf=function(O){if(typeof O!=="number")throw yy("int32");if(!A8(O))throw yy("int32");return O|0}; P2=function(O){return O==null?O:GYf(O)}; p6=function(O){if(O==null)return O;if(typeof O==="string"&&O)O=+O;else if(typeof O!=="number")return;return A8(O)?O|0:void 0}; B2=function(O){if(O==null)return O;if(typeof O==="string"&&O)O=+O;else if(typeof O!=="number")return;return A8(O)?O>>>0:void 0}; wEL=function(O){var R=0;R=R===void 0?0:R;if(!ew(O))throw yy("int64");var J=typeof O;switch(R){case 512:switch(J){case "string":return H2(O);case "bigint":return String(xK(64,O));default:return Ua(O)}case 1024:switch(J){case "string":return K8_(O);case "bigint":return Dp(xK(64,O));default:return yg_(O)}case 0:switch(J){case "string":return H2(O);case "bigint":return Dp(xK(64,O));default:return jw(O)}default:return zM(R,"Unknown format requested type for int64")}}; Qy=function(O){return O==null?O:wEL(O)}; IRf=function(O){if(O[0]==="-")return!1;var R=O.length;return R<20?!0:R===20&&Number(O.substring(0,6))<184467}; CL0=function(O){var R=O.length;return O[0]==="-"?R<20?!0:R===20&&Number(O.substring(0,7))>-922337:R<19?!0:R===19&&Number(O.substring(0,6))<922337}; rgT=function(O){if(O<0){$K(O);var R=MU(aK,v2);O=Number(R);return L6(O)?O:R}R=String(O);if(IRf(R))return R;$K(O);return qU(aK,v2)}; t0H=function(O){if(CL0(O))return O;kK(O);return lRs()}; jw=function(O){ew(O);O=YK(O);L6(O)||($K(O),O=gCs(aK,v2));return O}; Ua=function(O){ew(O);O=YK(O);if(L6(O))O=String(O);else{var R=String(O);CL0(R)?O=R:($K(O),O=lRs())}return O}; H2=function(O){ew(O);var R=YK(Number(O));if(L6(R))return String(R);R=O.indexOf(".");R!==-1&&(O=O.substring(0,R));return t0H(O)}; K8_=function(O){var R=YK(Number(O));if(L6(R))return Dp(R);R=O.indexOf(".");R!==-1&&(O=O.substring(0,R));return mz()?Dp(xK(64,BigInt(O))):Dp(t0H(O))}; yg_=function(O){return L6(O)?Dp(jw(O)):Dp(Ua(O))}; oCW=function(O){if(O==null)return O;var R=typeof O;if(R==="bigint")return String(xK(64,O));if(ew(O)){if(R==="string")return H2(O);if(R==="number")return jw(O)}}; V0T=function(O){if(O==null)return O;var R=typeof O;if(R==="bigint")return String(ZIB(64,O));if(ew(O)){if(R==="string")return ew(O),R=YK(Number(O)),L6(R)&&R>=0?O=String(R):(R=O.indexOf("."),R!==-1&&(O=O.substring(0,R)),IRf(O)||(kK(O),O=MU(aK,v2))),O;if(R==="number")return ew(O),O=YK(O),O>=0&&L6(O)?O:rgT(O)}}; fRW=function(O){if(O==null||typeof O=="string"||O instanceof l$)return O}; SoH=function(O){if(typeof O!=="string")throw Error();return O}; dX=function(O){if(O!=null&&typeof O!=="string")throw Error();return O}; h8=function(O){return O==null||typeof O==="string"?O:void 0}; zc=function(O,R){if(!(O instanceof R))throw Error("Expected instanceof "+uRh(R)+" but got "+(O&&uRh(O.constructor)));return O}; N7H=function(O,R,J){if(O!=null&&typeof O==="object"&&O[n6]===c2)return O;if(Array.isArray(O)){var l=O[C6]|0;J=l|J&32|J&2;J!==l&&t8(O,J);return new R(O)}}; Oj=function(O){return O}; Jr=function(O){var R=G_(RD);return R?O[R]:void 0}; g4=function(){}; i6=function(O,R){for(var J in O)!isNaN(J)&&R(O,+J,O[J])}; mch=function(O){var R=new g4;i6(O,function(J,l,u){R[l]=sa(u)}); R.L=O.L;return R}; u6=function(O,R,J,l,u){var F=l?!!(R&32):void 0;l=[];var G=O.length,y=4294967295,w=!1,I=!!(R&64),C=I?R&128?0:-1:void 0;if(!(R&1)){var r=G&&O[G-1];r!=null&&typeof r==="object"&&r.constructor===Object?(G--,y=G):r=void 0;if(I&&!(R&128)&&!u){w=!0;var t;y=((t=l6)!=null?t:Oj)(y-C,C,O,r)+C}}t=void 0;for(var Z=0;Z=y){var m=Z-C,E=void 0;((E=t)!=null?E:t={})[m]=V}else l[Z]=V}if(r)for(var a in r)G=r[a],G!=null&&(G=J(G,F))!=null&&(Z=+a,V=void 0,I&&!Number.isNaN(Z)&& (V=Z+C)0?void 0:O===0?vCH||(vCH=[0,void 0]):[-O,void 0];case "string":return[0,O];case "object":return O}}; w4=function(O,R,J){O=T7z(O,R[0],R[1],J?1:2);R!==ym&&J&&rX(O,2048);return O}; CO=function(O,R,J){return T7z(O,R,J,3)}; T7z=function(O,R,J,l){if(O==null){var u=32;J?(O=[J],u|=128):O=[];R&&(u=u&-16760833|(R&1023)<<14)}else{if(!Array.isArray(O))throw Error("narr");u=O[C6]|0;4096&u&&!(2&u)&&$c2();if(u&256)throw Error("farr");if(u&64)return l!==3||u&4096||t8(O,u|4096),O;if(J&&(u|=128,J!==O[0]))throw Error("mid");a:{J=O;u|=64;var F=J.length;if(F){var G=F-1,y=J[G];if(y!=null&&typeof y==="object"&&y.constructor===Object){R=u&128?0:-1;G-=R;if(G>=1024)throw Error("pvtlmt");for(var w in y)F=+w,F1024)throw Error("spvt");u=u&-16760833|(w&1023)<<14}}}u|=64;l===3&&(u|=4096);t8(O,u);return O}; $c2=function(){Y5B(M0f,5)}; r4=function(O,R){if(typeof O!=="object")return O;if(Array.isArray(O)){var J=O[C6]|0;return O.length===0&&J&1?void 0:J&2?O:!R||8192&J||16&J?u6(O,J,r4,R!==void 0,!0):(rX(O,34),J&4&&Object.freeze(O),O)}if(O[n6]===c2)return R=O.L1,J=R[C6]|0,Vy(O,J)?O:u6(R,J,r4,!0,!0);if(O instanceof l$)return O}; tr=function(O){var R=O.L1,J=R[C6]|0;if(!Vy(O,J))return O;O=new O.constructor(u6(R,J,r4,!0,!0));oK(O.L1);return O}; oD=function(O){if(O.L!==Zp)return!1;var R=O.L1;R=u6(R,R[C6]|0,r4,!0,!0);oK(R);O.L1=R;O.L=void 0;return!0}; Z7=function(O){if(!oD(O)&&Vy(O,O.L1[C6]|0))throw Error();}; fO=function(O,R,J){Object.isExtensible(O);return Vm(O.L1,R,J)}; Vm=function(O,R,J,l){if(R===-1)return null;var u=R+(J?0:-1),F=O.length-1;if(!(F<1+(J?0:-1))){if(u>=F){var G=O[F];if(G!=null&&typeof G==="object"&&G.constructor===Object){J=G[R];var y=!0}else if(u===F)J=G;else return}else J=O[u];if(l&&J!=null){l=l(J);if(l==null)return l;if(!Object.is(l,J))return y?G[R]=l:O[u]=l,l}return J}}; NR=function(O,R,J,l){Z7(O);var u=O.L1;SS(u,u[C6]|0,R,J,l);return O}; SS=function(O,R,J,l,u){var F=J+(u?0:-1),G=O.length-1;if(G>=1+(u?0:-1)&&F>=G){var y=O[G];if(y!=null&&typeof y==="object"&&y.constructor===Object)return y[J]=l,R}if(F<=G)return O[F]=l,R;if(l!==void 0){var w;G=((w=R)!=null?w:R=O[C6]|0)>>14&1023||536870912;J>=G?l!=null&&(F={},O[G+(u?0:-1)]=(F[J]=l,F)):O[F]=l}return R}; vS=function(O,R,J,l,u){var F=O.L1,G=F[C6]|0;l=Vy(O,G)?1:l;u=!!u||l===3;l===2&&oD(O)&&(F=O.L1,G=F[C6]|0);O=mv(F,R);var y=O===Ej?7:O[C6]|0,w=D7(y,G);var I=4&w?!1:!0;if(I){4&w&&(O=sa(O),y=0,w=aD(w,G),G=SS(F,G,R,O));for(var C=0,r=0;C "+O)}; Jc=function(O,R){if(typeof O==="string")return{buffer:xnA(O),jc:R};if(Array.isArray(O))return{buffer:new Uint8Array(O),jc:R};if(O.constructor===Uint8Array)return{buffer:O,jc:!1};if(O.constructor===ArrayBuffer)return{buffer:new Uint8Array(O),jc:!1};if(O.constructor===l$)return{buffer:Gc(O)||new Uint8Array(0),jc:!0};if(O instanceof Uint8Array)return{buffer:new Uint8Array(O.buffer,O.byteOffset,O.byteLength),jc:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; xcz=function(O,R,J,l){this.S=null;this.D=!1;this.L=this.B=this.N=0;this.init(O,R,J,l)}; lf=function(O){var R=0,J=0,l=0,u=O.S,F=O.L;do{var G=u[F++];R|=(G&127)<32&&(J|=(G&127)>>4);for(l=3;l<32&&G&128;l+=7)G=u[F++],J|=(G&127)<>>0,J>>>0);throw Ri();}; gb=function(O,R){O.L=R;if(R>O.B)throw HIH(O.B,R);}; uf=function(O){var R=O.S,J=O.L,l=R[J++],u=l&127;if(l&128&&(l=R[J++],u|=(l&127)<<7,l&128&&(l=R[J++],u|=(l&127)<<14,l&128&&(l=R[J++],u|=(l&127)<<21,l&128&&(l=R[J++],u|=l<<28,l&128&&R[J++]&128&&R[J++]&128&&R[J++]&128&&R[J++]&128&&R[J++]&128)))))throw Ri();gb(O,J);return u}; FN=function(O){var R=O.S,J=O.L,l=R[J+0],u=R[J+1],F=R[J+2];R=R[J+3];gb(O,O.L+4);return(l<<0|u<<8|F<<16|R<<24)>>>0}; GL=function(O){var R=FN(O);O=FN(O);return qU(R,O)}; Kf=function(O){var R=FN(O),J=FN(O);O=(J>>31)*2+1;var l=J>>>20&2047;R=4294967296*(J&1048575)+R;return l==2047?R?NaN:O*Infinity:l==0?O*4.9E-324*R:O*Math.pow(2,l-1075)*(R+4503599627370496)}; y2=function(O){for(var R=0,J=O.L,l=J+10,u=O.S;JO.B)throw HIH(R,O.B-J);O.L=l;return J}; Q4h=function(O,R){if(R==0)return FQ();var J=Ucs(O,R);O.mq&&O.D?J=O.S.subarray(J,J+R):(O=O.S,R=J+R,J=J===R?new Uint8Array(0):j4B?O.slice(J,R):new Uint8Array(O.subarray(J,R)));return J.length==0?FQ():new l$(J,u$)}; Ii=function(O,R,J,l){if(wb.length){var u=wb.pop();u.init(O,R,J,l);O=u}else O=new xcz(O,R,J,l);this.L=O;this.B=this.L.L;this.S=this.N=-1;L8W(this,l)}; L8W=function(O,R){R=R===void 0?{}:R;O.qV=R.qV===void 0?!1:R.qV}; Yos=function(O,R,J,l){if(Cf.length){var u=Cf.pop();L8W(u,l);u.L.init(O,R,J,l);return u}return new Ii(O,R,J,l)}; dcx=function(O){var R=O.L;if(R.L==R.B)return!1;O.B=O.L.L;var J=uf(O.L)>>>0;R=J>>>3;J&=7;if(!(J>=0&&J<=5))throw B7z(J,O.B);if(R<1)throw Error("Invalid field number: "+R+" (at position "+O.B+")");O.N=R;O.S=J;return!0}; rb=function(O){switch(O.S){case 0:O.S!=0?rb(O):y2(O.L);break;case 1:O=O.L;gb(O,O.L+8);break;case 2:if(O.S!=2)rb(O);else{var R=uf(O.L)>>>0;O=O.L;gb(O,O.L+R)}break;case 5:O=O.L;gb(O,O.L+4);break;case 3:R=O.N;do{if(!dcx(O))throw Error("Unmatched start-group tag: stream EOF");if(O.S==4){if(O.N!=R)throw Error("Unmatched end-group tag");break}rb(O)}while(1);break;default:throw B7z(O.S,O.B);}}; tc=function(O,R,J){var l=O.L.B,u=uf(O.L)>>>0,F=O.L.L+u,G=F-l;G<=0&&(O.L.B=F,J(R,O,void 0,void 0,void 0),G=F-O.L.L);if(G)throw Error("Message parsing ended unexpectedly. Expected to read "+(u+" bytes, instead read "+(u-G)+" bytes, either the data ended unexpectedly or the message misreported its own length"));O.L.L=F;O.L.B=l}; V2=function(O){var R=uf(O.L)>>>0;O=O.L;var J=Ucs(O,R);O=O.S;if(hes){var l=O,u;(u=oi)||(u=oi=new TextDecoder("utf-8",{fatal:!0}));R=J+R;l=J===0&&R===l.length?l:l.subarray(J,R);try{var F=u.decode(l)}catch(I){if(ZU===void 0){try{u.decode(new Uint8Array([128]))}catch(C){}try{u.decode(new Uint8Array([97])),ZU=!0}catch(C){ZU=!1}}!ZU&&(oi=void 0);throw I;}}else{F=J;R=F+R;J=[];for(var G=null,y,w;F=R?nu():(w=O[F++],y<194||zf(w)?(F--,nu()):J.push((y&31)<<6|w&63)):y<240? F>=R-1?nu():(w=O[F++],zf(w)||y===224&&w<160||y===237&&w>=160||zf(u=O[F++])?(F--,nu()):J.push((y&15)<<12|(w&63)<<6|u&63)):y<=244?F>=R-2?nu():(w=O[F++],zf(w)||(y<<28)+(w-144)>>30!==0||zf(u=O[F++])||zf(l=O[F++])?(F--,nu()):(y=(y&7)<<18|(w&63)<<12|(u&63)<<6|l&63,y-=65536,J.push((y>>10&1023)+55296,(y&1023)+56320))):nu(),J.length>=8192&&(G=vbs(G,J),J.length=0);F=vbs(G,J)}return F}; ze2=function(O){var R=uf(O.L)>>>0;return Q4h(O.L,R)}; ff=function(O,R,J){this.L1=CO(O,R,J)}; nC_=function(O,R){if(R==null||R=="")return new O;R=JSON.parse(R);if(!Array.isArray(R))throw Error("dnarr");rX(R,32);return new O(R)}; Sa=function(O,R){this.S=O>>>0;this.L=R>>>0}; Ouh=function(O){if(!O)return cgp||(cgp=new Sa(0,0));if(!/^\d+$/.test(O))return null;kK(O);return new Sa(aK,v2)}; NV=function(O,R){this.S=O>>>0;this.L=R>>>0}; Jhh=function(O){if(!O)return RiT||(RiT=new NV(0,0));if(!/^-?\d+$/.test(O))return null;kK(O);return new NV(aK,v2)}; m$=function(){this.L=[]}; DU=function(O,R,J){for(;J>0||R>127;)O.L.push(R&127|128),R=(R>>>7|J<<25)>>>0,J>>>=7;O.L.push(R)}; ai=function(O,R){for(;R>127;)O.L.push(R&127|128),R>>>=7;O.L.push(R)}; gix=function(O,R){if(R>=0)ai(O,R);else{for(var J=0;J<9;J++)O.L.push(R&127|128),R>>=7;O.L.push(1)}}; vZ=function(O,R){O.L.push(R>>>0&255);O.L.push(R>>>8&255);O.L.push(R>>>16&255);O.L.push(R>>>24&255)}; iuz=function(){this.B=[];this.S=0;this.L=new m$}; XN=function(O,R){R.length!==0&&(O.B.push(R),O.S+=R.length)}; luf=function(O,R){TL(O,R,2);R=O.L.end();XN(O,R);R.push(O.S);return R}; utW=function(O,R){var J=R.pop();for(J=O.S+O.L.length()-J;J>127;)R.push(J&127|128),J>>>=7,O.S++;R.push(J);O.S++}; TL=function(O,R,J){ai(O.L,R*8+J)}; FIf=function(O,R,J){if(J!=null){switch(typeof J){case "string":Ouh(J)}TL(O,R,1);switch(typeof J){case "number":O=O.L;XQ(J);vZ(O,aK);vZ(O,v2);break;case "bigint":J=BigInt.asUintN(64,J);J=new Sa(Number(J&BigInt(4294967295)),Number(J>>BigInt(32)));O=O.L;R=J.L;vZ(O,J.S);vZ(O,R);break;default:J=Ouh(J),O=O.L,R=J.L,vZ(O,J.S),vZ(O,R)}}}; $_=function(O,R,J){TL(O,R,2);ai(O.L,J.length);XN(O,O.L.end());XN(O,J)}; MV=function(){function O(){throw Error();} Object.setPrototypeOf(O,O.prototype);return O}; k_=function(O,R,J){this.F2=O;this.e_=R;O=G_(qV);this.L=!!O&&J===O||!1}; sQ=function(O,R){var J=J===void 0?qV:J;return new k_(O,R,J)}; KIf=function(O,R,J,l,u){R=GfT(R,l);R!=null&&(J=luf(O,J),u(R,O),utW(O,J))}; Ac=function(O,R,J,l){var u=l[O];if(u)return u;u={};u.HF=l;u.r9=g.e(XEz(l[0]));var F=l[1],G=1;F&&F.constructor===Object&&(u.extensions=F,F=l[++G],typeof F==="function"&&(u.rL=!0,bf!=null||(bf=F),WZ!=null||(WZ=l[G+1]),F=l[G+=2]));for(var y={};F&&Array.isArray(F)&&F.length&&typeof F[0]==="number"&&F[0]>0;){for(var w=0;w>BigInt(32)));DU(O.L,J.S,J.L);break;default:J=Jhh(R),DU(O.L,J.S,J.L)}}}; JH=function(O,R,J){R=p6(R);R!=null&&R!=null&&(TL(O,J,0),gix(O.L,R))}; Nvf=function(O,R,J){R=R==null||typeof R==="boolean"?R:typeof R==="number"?!!R:void 0;R!=null&&(TL(O,J,0),O.L.L.push(R?1:0))}; mAH=function(O,R,J){R=h8(R);R!=null&&$_(O,J,MLz(R))}; EiB=function(O,R,J,l,u){R=GfT(R,l);R!=null&&(J=luf(O,J),u(R,O),utW(O,J))}; auT=function(){var O=gN;this.L=DAf;this.isRepeated=0;this.S=pO;this.defaultValue=void 0;this.B=O.messageId!=null?Sw:void 0}; vih=function(O){return function(){var R=new iuz;VOh(this.L1,R,Ac(UQ,x_,Q2,O));XN(R,R.L.end());for(var J=new Uint8Array(R.S),l=R.B,u=l.length,F=0,G=0;G-1)return R.apply(null,g.X(J));try{return O.L=O.B.L.now(),R.apply(null,g.X(J))}finally{O.N+=O.B.L.now()-O.L,O.L=-1,O.S+=1}}}; Tv2=function(O,R){this.S=O;this.B=R;this.L=new XQ2(O)}; $Ax=function(){this.L={}}; q9f=function(){var O=GX().flags,R=MO0;O=O.L[R.key];if(R.valueType==="proto"){try{var J=JSON.parse(O);if(Array.isArray(J))return J}catch(l){}return R.defaultValue}return typeof O===typeof R.defaultValue?O:R.defaultValue}; WIL=function(){this.B=void 0;this.S=this.j=0;this.D=-1;this.pG=new Kz;yL(this.pG,"mv",kf_).L=!0;yL(this.pG,"omid",rY);yL(this.pG,"epoh",rY).L=!0;yL(this.pG,"epph",rY).L=!0;yL(this.pG,"umt",rY).L=!0;yL(this.pG,"phel",rY).L=!0;yL(this.pG,"phell",rY).L=!0;yL(this.pG,"oseid",soz).L=!0;var O=this.pG;O.L.sloi||(O.L.sloi=new ue);O.L.sloi.L=!0;yL(this.pG,"mm",KS);yL(this.pG,"ovms",buA).L=!0;yL(this.pG,"xdi",rY).L=!0;yL(this.pG,"amp",rY).L=!0;yL(this.pG,"prf",rY).L=!0;yL(this.pG,"gtx",rY).L=!0;yL(this.pG, "mvp_lv",rY).L=!0;yL(this.pG,"ssmol",rY).L=!0;yL(this.pG,"fmd",rY).L=!0;yL(this.pG,"gen204simple",rY);this.L=new Tv2(hh(),this.pG);this.N=!1;this.flags=new $Ax}; GX=function(){return Yi(WIL)}; AhA=function(O,R,J,l){if(Math.random()<(l||O.L))try{if(J instanceof BQ)var u=J;else u=new BQ,PQ(J,function(G,y){var w=u,I=w.N++;G=HQ(y,G);w.L.push(I);w.S[I]=G}); var F=u.Y8(O.S,"pagead2.googlesyndication.com","/pagead/gen_204?id="+R+"&");F&&(hh(),mnp(F))}catch(G){}}; eix=function(O,R,J){J=J===void 0?{}:J;this.error=O;this.meta=J;this.context=R.context;this.msg=R.message||"";this.id=R.id||"jserror"}; Pus=function(){var O=O===void 0?g.YW:O;return(O=O.performance)&&O.now&&O.timing?Math.floor(O.now()+O.timing.navigationStart):g.Fk()}; pQA=function(){var O=O===void 0?g.YW:O;return(O=O.performance)&&O.now?O.now():null}; Bvx=function(O,R,J){this.label=O;this.type=R;this.value=J;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; wN=function(){var O=window;this.events=[];this.S=O||g.YW;var R=null;O&&(O.google_js_reporting_queue=O.google_js_reporting_queue||[],this.events=O.google_js_reporting_queue,R=O.google_measure_js_timing);this.L=yH()||(R!=null?R:Math.random()<1)}; Huz=function(O){O&&Ir&&yH()&&(Ir.clearMarks("goog_"+O.label+"_"+O.uniqueId+"_start"),Ir.clearMarks("goog_"+O.label+"_"+O.uniqueId+"_end"))}; xAs=function(){var O=CS;this.L=rN;this.l4="jserror";this.qw=!0;this.wp=null;this.S=this.US;this.GR=O===void 0?null:O}; UAp=function(O,R,J){var l=tH;return FE(GX().L.L,function(){try{if(l.GR&&l.GR.L){var u=l.GR.start(O.toString(),3);var F=R();l.GR.end(u)}else F=R()}catch(y){var G=l.qw;try{Huz(u),G=l.S(O,new or(Z1(y)),void 0,J)}catch(w){l.US(217,w)}if(!G)throw y;}return F})()}; VH=function(O,R,J,l){return FE(GX().L.L,function(){var u=g.As.apply(0,arguments);return UAp(O,function(){return R.apply(J,u)},l)})}; Z1=function(O){var R=O.toString();O.name&&R.indexOf(O.name)==-1&&(R+=": "+O.name);O.message&&R.indexOf(O.message)==-1&&(R+=": "+O.message);if(O.stack)a:{O=O.stack;var J=R;try{O.indexOf(J)==-1&&(O=J+"\n"+O);for(var l;O!=l;)l=O,O=O.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");R=O.replace(/\n */g,"\n");break a}catch(u){R=J;break a}R=void 0}return R}; or=function(O){eix.call(this,Error(O),{message:O})}; jos=function(){Io&&typeof Io.google_measure_js_timing!="undefined"&&(Io.google_measure_js_timing||CS.disable())}; QoL=function(O){tH.wp=function(R){g.e6(O,function(J){J(R)})}}; LIs=function(O,R){return UAp(O,R)}; fS=function(O,R){return VH(O,R)}; SJ=function(O,R,J,l){tH.US(O,R,J,l)}; NQ=function(){return Date.now()-Y9H}; dAp=function(){var O=GX().B,R=Eu>=0?NQ()-Eu:-1,J=D1?NQ()-ar:-1,l=vw>=0?NQ()-vw:-1;if(O==947190542)return 100;if(O==79463069)return 200;O=[2E3,4E3];var u=[250,500,1E3];SJ(637,Error(),.001);var F=R;J!=-1&&J1500&&l<4E3?500:G}; XE=function(O,R,J,l){this.top=O;this.right=R;this.bottom=J;this.left=l}; TX=function(O){return O.right-O.left}; $F=function(O,R){return O==R?!0:O&&R?O.top==R.top&&O.right==R.right&&O.bottom==R.bottom&&O.left==R.left:!1}; MQ=function(O,R,J){var l=new XE(0,0,0,0);this.time=O;this.volume=null;this.B=R;this.L=l;this.S=J}; qQ=function(O,R,J,l,u,F,G,y){this.N=O;this.J=R;this.B=J;this.j=l;this.L=u;this.D=F;this.S=G;this.V=y}; zis=function(O){var R=O!==O.top,J=O.top===IJT(O),l=-1,u=0;if(R&&J&&O.top.mraid){l=3;var F=O.top.mraid}else l=(F=O.mraid)?R?J?2:1:0:-1;F&&(F.IS_GMA_SDK||(u=2),bxH(hih,function(G){return typeof F[G]==="function"})||(u=1)); return{e8:F,compatibility:u,sFU:l}}; nix=function(){var O=window.document;return O&&typeof O.elementFromPoint==="function"}; chs=function(O,R,J){if(O&&R!==null&&R!=R.top){if(!R.top)return new g.so(-12245933,-12245933);R=R.top}try{return(J===void 0?0:J)?(new g.so(R.innerWidth,R.innerHeight)).round():AVz(R||window).round()}catch(l){return new g.so(-12245933,-12245933)}}; kF=function(O,R,J){try{if(O){if(!R.top)return new XE(-12245933,-12245933,-12245933,-12245933);R=R.top}var l=chs(O,R,J),u=l.height,F=l.width;if(F===-12245933)return new XE(F,F,F,F);var G=HE(R.document);var y=PQh(G.L);var w=y.x,I=y.y;return new XE(I,w+F,I+u,w)}catch(C){return new XE(-12245933,-12245933,-12245933,-12245933)}}; g.bv=function(O,R,J,l){this.left=O;this.top=R;this.width=J;this.height=l}; eJ=function(O,R){return O==R?!0:O&&R?O.left==R.left&&O.width==R.width&&O.top==R.top&&O.height==R.height:!1}; g.pS=function(O,R,J){if(typeof R==="string")(R=Pw(O,R))&&(O.style[R]=J);else for(var l in R){J=O;var u=R[l],F=Pw(J,l);F&&(J.style[F]=u)}}; Pw=function(O,R){var J=O62[R];if(!J){var l=t6s(R);J=l;O.style[l]===void 0&&(l=(g.d7?"Webkit":Bw?"Moz":null)+ZtB(l),O.style[l]!==void 0&&(J=l));O62[R]=J}return J}; g.Hw=function(O,R){var J=O.style[t6s(R)];return typeof J!=="undefined"?J:O.style[Pw(O,R)]||""}; xF=function(O,R){var J=BE(O);return J.defaultView&&J.defaultView.getComputedStyle&&(O=J.defaultView.getComputedStyle(O,null))?O[R]||O.getPropertyValue(R)||"":""}; Uu=function(O,R){return xF(O,R)||(O.currentStyle?O.currentStyle[R]:null)||O.style&&O.style[R]}; g.QH=function(O,R,J){if(R instanceof g.qc){var l=R.x;R=R.y}else l=R,R=J;O.style.left=g.jJ(l,!1);O.style.top=g.jJ(R,!1)}; LS=function(O){try{return O.getBoundingClientRect()}catch(R){return{left:0,top:0,right:0,bottom:0}}}; RWh=function(O){var R=BE(O),J=Uu(O,"position"),l=J=="fixed"||J=="absolute";for(O=O.parentNode;O&&O!=R;O=O.parentNode)if(O.nodeType==11&&O.host&&(O=O.host),J=Uu(O,"position"),l=l&&J=="static"&&O!=R.documentElement&&O!=R.body,!l&&(O.scrollWidth>O.clientWidth||O.scrollHeight>O.clientHeight||J=="fixed"||J=="absolute"||J=="relative"))return O;return null}; g.YF=function(O){var R=BE(O),J=new g.qc(0,0);if(O==(R?BE(R):document).documentElement)return J;O=LS(O);R=HE(R);R=PQh(R.L);J.x=O.left+R.x;J.y=O.top+R.y;return J}; gKx=function(O,R){var J=new g.qc(0,0),l=hg(BE(O));if(!NCx(l,"parent"))return J;do{var u=l==R?g.YF(O):J8A(O);J.x+=u.x;J.y+=u.y}while(l&&l!=R&&l!=l.parent&&(O=l.frameElement)&&(l=l.parent));return J}; g.dN=function(O,R){O=i6p(O);R=i6p(R);return new g.qc(O.x-R.x,O.y-R.y)}; J8A=function(O){O=LS(O);return new g.qc(O.left,O.top)}; i6p=function(O){if(O.nodeType==1)return J8A(O);O=O.changedTouches?O.changedTouches[0]:O;return new g.qc(O.clientX,O.clientY)}; g.hH=function(O,R,J){if(R instanceof g.so)J=R.height,R=R.width;else if(J==void 0)throw Error("missing height argument");O.style.width=g.jJ(R,!0);O.style.height=g.jJ(J,!0)}; g.jJ=function(O,R){typeof O=="number"&&(O=(R?Math.round(O):O)+"px");return O}; g.zX=function(O){var R=lpW;if(Uu(O,"display")!="none")return R(O);var J=O.style,l=J.display,u=J.visibility,F=J.position;J.visibility="hidden";J.position="absolute";J.display="inline";O=R(O);J.display=l;J.position=F;J.visibility=u;return O}; lpW=function(O){var R=O.offsetWidth,J=O.offsetHeight,l=g.d7&&!R&&!J;return(R===void 0||l)&&O.getBoundingClientRect?(O=LS(O),new g.so(O.right-O.left,O.bottom-O.top)):new g.so(R,J)}; g.nS=function(O,R){O.style.display=R?"":"none"}; cw=function(O,R){R=Math.pow(10,R);return Math.floor(O*R)/R}; uQp=function(O){return new XE(O.top,O.right,O.bottom,O.left)}; Fzh=function(O){var R=O.top||0,J=O.left||0;return new XE(R,J+(O.width||0),R+(O.height||0),J)}; O1=function(O){return O!=null&&O>=0&&O<=1}; Gcs=function(){var O=g.aW();return O?RT("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(R){return fz(O,R)})||fz(O,"OMI/")&&!fz(O,"XiaoMi/")?!0:fz(O,"Presto")&&fz(O,"Linux")&&!fz(O,"X11")&&!fz(O,"Android")&&!fz(O,"Mobi"):!1}; Kzs=function(){this.B=!eO(Io.top);this.isMobileDevice=mI()||dsA();var O=pu();this.domain=O.length>0&&O[O.length-1]!=null&&O[O.length-1].url!=null?g.vQ(O[O.length-1].url)||"":"";this.L=new XE(0,0,0,0);this.N=new g.so(0,0);this.D=new g.so(0,0);this.J=new XE(0,0,0,0);this.frameOffset=new g.qc(0,0);this.j=0;this.V=!1;this.S=!(!Io||!zis(Io).e8);this.update(Io)}; y8_=function(O,R){R&&R.screen&&(O.N=new g.so(R.screen.width,R.screen.height))}; w2W=function(O,R){a:{var J=O.L?new g.so(TX(O.L),O.L.getHeight()):new g.so(0,0);R=R===void 0?Io:R;R!==null&&R!=R.top&&(R=R.top);var l=0,u=0;try{var F=R.document,G=F.body,y=F.documentElement;if(F.compatMode=="CSS1Compat"&&y.scrollHeight)l=y.scrollHeight!=J.height?y.scrollHeight:y.offsetHeight,u=y.scrollWidth!=J.width?y.scrollWidth:y.offsetWidth;else{var w=y.scrollHeight,I=y.scrollWidth,C=y.offsetHeight,r=y.offsetWidth;y.clientHeight!=C&&(w=G.scrollHeight,I=G.scrollWidth,C=G.offsetHeight,r=G.offsetWidth); w>J.height?w>C?(l=w,u=I):(l=C,u=r):w0||O.V)return!0;O=hh().S.isVisible();var R=SO(gd)===0;return O||R}; Ji=function(){return Yi(Kzs)}; lF=function(O){this.B=O;this.S=0;this.L=null}; uF=function(O,R,J){this.B=O;this.Iu=J===void 0?"na":J;this.D=[];this.isInitialized=!1;this.N=new MQ(-1,!0,this);this.L=this;this.V=R;this.SN=this.W=!1;this.N1="uk";this.iz=!1;this.j=!0}; FO=function(O,R){g.Zo(O.D,R)||(O.D.push(R),R.rr(O.L),R.Ht(O.N),R.R7()&&(O.W=!0))}; Ips=function(O){O=O.L;O.YX();O.Nn();var R=Ji();R.J=kF(!1,O.B,R.isMobileDevice);w2W(Ji(),O.B);O.N.L=O.Db()}; C$_=function(O){O.W=O.D.length?RT(O.D,function(R){return R.R7()}):!1}; r8x=function(O){var R=g.m4(O.D);g.e6(R,function(J){J.Ht(O.N)})}; Gi=function(O){var R=g.m4(O.D);g.e6(R,function(J){J.rr(O.L)}); O.L!=O||r8x(O)}; KD=function(O,R,J,l){this.element=O;this.L=new XE(0,0,0,0);this.B=null;this.j=new XE(0,0,0,0);this.S=R;this.pG=J;this.iz=l;this.OQ=!1;this.timestamp=-1;this.W=new qQ(R.N,this.element,this.L,new XE(0,0,0,0),0,0,NQ(),0);this.D=void 0}; twL=function(O,R){return O.D?new XE(Math.max(R.top+O.D.top,R.top),Math.min(R.left+O.D.right,R.right),Math.min(R.top+O.D.bottom,R.bottom),Math.max(R.left+O.D.left,R.left)):R.clone()}; y$=function(O){this.D=!1;this.L=O;this.N=function(){}}; oK0=function(O,R,J){this.B=J===void 0?0:J;this.S=O;this.L=R==null?"":R}; Z6A=function(O){switch(Math.trunc(O.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; VwL=function(O,R){return O.BR.B?!1:O.SR.S?!1:typeof O.Ltypeof R.L?!1:O.L0?l[J]-l[J-1]:l[J]})}; E1=function(){this.S=new ZK;this.Iu=this.Qh=0;this.Gd=new oT;this.Hq=this.J=-1;this.KJ=1E3;this.sQ=new ZK([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.N1=this.OQ=-1}; DK=function(O,R){return vpA(O.S,R===void 0?!0:R)}; aT=function(O,R,J,l){var u=u===void 0?!1:u;J=VH(l,J);fu(O,R,J,{capture:u})}; XO=function(O,R){R=vq(R);return R===0?0:vq(O)/R}; vq=function(O){return Math.max(O.bottom-O.top,0)*Math.max(O.right-O.left,0)}; $Rs=function(O,R){if(!O||!R)return!1;for(var J=0;O!==null&&J++<100;){if(O===R)return!0;try{if(O=O.parentElement||O){var l=BE(O),u=l&&hg(l),F=u&&u.frameElement;F&&(O=F)}}catch(G){break}}return!1}; MSL=function(O,R,J){if(!O||!R)return!1;R=O.clone().translate(-R.left,-R.top);O=(R.left+R.right)/2;R=(R.top+R.bottom)/2;eO(window.top)&&window.top&&window.top.document&&(window=window.top);if(!nix())return!1;O=window.document.elementFromPoint(O,R);if(!O)return!1;R=(R=(R=BE(J))&&R.defaultView&&R.defaultView.frameElement)&&$Rs(R,O);var l=O===J;O=!l&&O&&Ft(O,function(u){return u===J}); return!(R||l||O)}; qjp=function(O,R,J,l){return Ji().B?!1:TX(O)<=0||O.getHeight()<=0?!0:J&&l?LIs(208,function(){return MSL(O,R,J)}):!1}; Ti=function(O,R,J){g.p.call(this);this.position=kUs.clone();this.uD=this.nQ();this.aA=-2;this.timeCreated=Date.now();this.rj=-1;this.I4=R;this.sJ=null;this.Pz=!1;this.EB=null;this.opacity=-1;this.requestSource=J;this.r1d=!1;this.mx=function(){}; this.WU=function(){}; this.bV=new xsp;this.bV.Iy=O;this.bV.L=O;this.uA=!1;this.V4={P5:null,Cq:null};this.gj=!0;this.YE=null;this.AE=this.yRg=!1;GX().j++;this.iS=this.Br();this.je=-1;this.rO=null;this.hasCompleted=this.vSJ=!1;this.pG=new Kz;x0s(this.pG);sDs(this);this.requestSource==1?wY(this.pG,"od",1):wY(this.pG,"od",0)}; sDs=function(O){O=O.bV.Iy;var R;if(R=O&&O.getAttribute)R=/-[a-z]/.test("googleAvInapp")?!1:bOs&&O.dataset?"googleAvInapp"in O.dataset:O.hasAttribute?O.hasAttribute("data-"+oMp()):!!O.getAttribute("data-"+oMp());R&&(Ji().S=!0)}; $l=function(O,R){R!=O.AE&&(O.AE=R,O=Ji(),R?O.j++:O.j>0&&O.j--)}; Wvh=function(O,R){if(O.rO){if(R.getName()===O.rO.getName())return;O.rO.dispose();O.rO=null}R=R.create(O.bV.L,O.pG,O.R7());if(R=R!=null&&R.observe()?R:null)O.rO=R}; Arz=function(O,R,J){if(!O.sJ||O.I4==-1||R.S===-1||O.sJ.S===-1)return 0;O=R.S-O.sJ.S;return O>J?0:O}; eDz=function(O,R,J){if(O.rO){O.rO.Xy();var l=O.rO.W,u=l.N,F=u.L;if(l.j!=null){var G=l.B;O.EB=new g.qc(G.left-F.left,G.top-F.top)}F=O.Nk()?Math.max(l.L,l.D):l.L;G={};u.volume!==null&&(G.volume=u.volume);u=O.po(l);O.sJ=l;O.au(F,R,J,!1,G,u,l.V)}}; P6H=function(O){if(O.Pz&&O.YE){var R=IW(O.pG,"od")==1,J=Ji().L,l=O.YE,u=O.rO?O.rO.getName():"ns",F=O.EB,G=new g.so(TX(J),J.getHeight());J=O.Nk();O={OWJ:u,EB:F,fjQ:G,Nk:J,x8:O.iS.x8,c1u:R};if(R=l.S){R.Xy();u=R.W;F=u.N.L;var y=G=null;u.j!=null&&F&&(G=u.B,G=new g.qc(G.left-F.left,G.top-F.top),y=new g.so(F.right-F.left,F.bottom-F.top));u=J?Math.max(u.L,u.D):u.L;J={OWJ:R.getName(),EB:G,fjQ:y,Nk:J,c1u:!1,x8:u}}else J=null;J&&ap2(l,O,J)}}; pSH=function(O,R,J){R&&(O.mx=R);J&&(O.WU=J)}; g.q3=function(){}; g.kl=function(O){return{value:O,done:!1}}; B4T=function(){this.N=this.L=this.B=this.S=this.D=0}; HOh=function(O){var R={};var J=g.Fk()-O.D;R=(R.ptlt=J,R);(J=O.S)&&(R.pnk=J);(J=O.B)&&(R.pnc=J);(J=O.N)&&(R.pnmm=J);(O=O.L)&&(R.pns=O);return R}; xRH=function(){pt.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; s1=function(O){return O1(O.volume)&&O.volume>0}; bF=function(O,R,J,l){J=J===void 0?!0:J;l=l===void 0?function(){return!0}:l; return function(u){var F=u[O];if(Array.isArray(F)&&l(u))return URB(F,R,J)}}; Wq=function(O,R){return function(J){return R(J)?J[O]:void 0}}; jDW=function(O){return function(R){for(var J=0;J0?F[u-1]+1:0,l+1).reduce(function(G,y){return G+y},0)})}; QDH=function(){this.S=this.L=""}; LvL=function(){}; eE=function(O,R){var J={};if(O!==void 0)if(R!=null)for(var l in R){var u=R[l];l in Object.prototype||u!=null&&(J[l]=typeof u==="function"?u(O):O[u])}else g.gY(J,O);return CD(IT(new wd,J))}; YjB=function(){var O={};this.S=(O.vs=[1,0],O.vw=[0,1],O.am=[2,2],O.a=[4,4],O.f=[8,8],O.bm=[16,16],O.b=[32,32],O.avw=[0,64],O.avs=[64,0],O.pv=[256,256],O.gdr=[0,512],O.p=[0,1024],O.r=[0,2048],O.m=[0,4096],O.um=[0,8192],O.ef=[0,16384],O.s=[0,32768],O.pmx=[0,16777216],O.mut=[33554432,33554432],O.umutb=[67108864,67108864],O.tvoff=[134217728,134217728],O);this.L={};for(var R in this.S)this.S[R][1]>0&&(this.L[R]=0);this.B=0}; Pq=function(O,R){var J=O.S[R],l=J[1];O.B+=J[0];l>0&&O.L[R]==0&&(O.L[R]=1)}; dRA=function(O){var R=g.Lt(O.S),J=0,l;for(l in O.L)g.Zo(R,l)&&O.L[l]==1&&(J+=O.S[l][1],O.L[l]=2);return J}; hDf=function(O){var R=0,J;for(J in O.L){var l=O.L[J];if(l==1||l==2)R+=O.S[J][1]}return R}; pD=function(){this.L=this.S=0}; Bq=function(){E1.call(this);this.B=new oT;this.JR=this.W=this.iz=0;this.V=-1;this.fJ=new oT;this.D=new oT;this.L=new ZK;this.j=this.N=-1;this.SN=new oT;this.KJ=2E3;this.xS=new pD;this.Td=new pD;this.AR=new pD}; Hq=function(O,R,J){var l=O.JR;D1||J||O.V==-1||(l+=R-O.V);return l}; zDB=function(){this.B=!1}; xl=function(O,R){this.B=!1;this.N=O;this.W=R;this.D=0}; U1=function(O,R){xl.call(this,O,R);this.J=[]}; npW=function(){}; jE=function(){}; Q$=function(O,R,J,l){KD.call(this,O,R,J,l)}; Yl=function(O,R,J){KD.call(this,null,O,R,J);this.V=O.isActive();this.J=0}; dd=function(O){return[O.top,O.left,O.bottom,O.right]}; hi=function(O,R,J,l,u,F){F=F===void 0?new jE:F;Ti.call(this,R,J,l);this.Rl=u;this.pV=0;this.X8={};this.Vw=new YjB;this.uW={};this.Hn="";this.AR=null;this.SG=!1;this.L=[];this.qr=F.S();this.j=F.B();this.N=null;this.B=-1;this.Iu=this.W=void 0;this.Hq=this.SN=0;this.N1=-1;this.KJ=this.Td=!1;this.iz=this.V=this.S=this.AI=this.Rz=0;new ZK;this.xS=this.JR=0;this.Gd=-1;this.rU=0;this.J=g.rv;this.OQ=[this.nQ()];this.AT=2;this.Fm={};this.Fm.pause="p";this.Fm.resume="r";this.Fm.skip="s";this.Fm.mute="m";this.Fm.unmute= "um";this.Fm.exitfullscreen="ef";this.D=null;this.sQ=this.fJ=!1;this.w5=Math.floor(Date.now()/1E3-1704067200);this.Qh=0}; zi=function(O){O.hasCompleted=!0;O.rU!=0&&(O.rU=3)}; nD=function(O){return O===void 0?O:Number(O)?cw(O,3):0}; cq=function(O,R){return O.OQ[R!=null&&RMath.max(1E4,O.B/3)?0:R);var J=O.J(O)||{};J=J.currentTime!==void 0?J.currentTime:O.SN;var l=J-O.SN,u=0;l>=0?(O.Hq+=R,O.xS+=Math.max(R-l,0),u=Math.min(l,O.Hq)):O.JR+=Math.abs(l);l!=0&&(O.Hq=0);O.Gd==-1&&l>0&&(O.Gd=vw>=0?NQ()-vw:-1);O.SN=J;return u}; RJs=function(O,R){RT(O.j,function(J){return J.N==R.N})||O.j.push(R)}; Jcz=function(O){var R=SE(O.y0().L,1);return OB(O,R)}; OB=function(O,R,J){return R>=15E3?!0:O.Td?(J===void 0?0:J)?!0:O.B>0?R>=O.B/2:O.N1>0?R>=O.N1:!1:!1}; g_p=function(O){var R=cw(O.iS.x8,2),J=O.Vw.B,l=O.iS,u=cq(O),F=nD(u.N),G=nD(u.j),y=nD(l.volume),w=cw(u.J,2),I=cw(u.Hq,2),C=cw(l.x8,2),r=cw(u.OQ,2),t=cw(u.N1,2);l=cw(l.AK,2);var Z=O.PT().clone().round();O=O.rO&&O.rO.B?(O.rO?O.rO.B:null).clone().round():null;u=DK(u,!1);return{oWS:R,tv:J,pj:F,Fg:G,iU:y,Ns:w,wH:I,x8:C,qs:r,OB:t,AK:l,position:Z,rD:O,va:u}}; lUh=function(O,R){ifs(O.L,R,function(){return{oWS:0,tv:void 0,pj:-1,Fg:-1,iU:-1,Ns:-1,wH:-1,x8:-1,qs:-1,OB:-1,AK:-1,position:void 0,rD:void 0,va:[]}}); O.L[R]=g_p(O)}; ifs=function(O,R,J){for(var l=O.length;l0?1:0;r.atos= V$(I.L);r.ssb=V$(I.sQ,!1);r.amtos=vpA(I.L,!1);r.uac=O.Rz;r.vpt=I.B.L;C=="nio"&&(r.nio=1,r.avms="nio");r.gmm="4";r.gdr=OB(O,I.B.L,!0)?1:0;r.efpf=O.AT;if(C=="gsv"||C=="nis")C=O.rO,C.J>0&&(r.nnut=C.J);r.tcm=crp(O);r.nmt=O.JR;r.bt=O.xS;r.pst=O.Gd;r.vpaid=O.W;r.dur=O.B;r.vmtime=O.SN;r.is=O.Vw.B;O.L.length>=1&&(r.i0=O.L[0].tv,r.a0=[O.L[0].iU],r.c0=[O.L[0].x8],r.ss0=[O.L[0].AK],C=O.L[0].position,F=O.L[0].rD,r.p0=C?dd(C):void 0,C&&F&&!$F(F,C)&&(r.cp0=dd(F)));O.L.length>=2&&(r.i1=O.L[1].tv,r.a1=gJ(O.L[1].pj, O.L[1].iU,O.L[1].Fg),r.c1=gJ(O.L[1].Ns,O.L[1].x8,O.L[1].wH),r.ss1=gJ(O.L[1].qs,O.L[1].AK,O.L[1].OB),C=O.L[1].position,F=O.L[1].rD,r.p1=C?dd(C):void 0,C&&F&&!$F(F,C)&&(r.cp1=dd(F)),r.mtos1=O.L[1].va);O.L.length>=3&&(r.i2=O.L[2].tv,r.a2=gJ(O.L[2].pj,O.L[2].iU,O.L[2].Fg),r.c2=gJ(O.L[2].Ns,O.L[2].x8,O.L[2].wH),r.ss2=gJ(O.L[2].qs,O.L[2].AK,O.L[2].OB),C=O.L[2].position,F=O.L[2].rD,r.p2=C?dd(C):void 0,C&&F&&!$F(F,C)&&(r.cp2=dd(F)),r.mtos2=O.L[2].va);O.L.length>=4&&(r.i3=O.L[3].tv,r.a3=gJ(O.L[3].pj,O.L[3].iU, O.L[3].Fg),r.c3=gJ(O.L[3].Ns,O.L[3].x8,O.L[3].wH),r.ss3=gJ(O.L[3].qs,O.L[3].AK,O.L[3].OB),C=O.L[3].position,F=O.L[3].rD,r.p3=C?dd(C):void 0,C&&F&&!$F(F,C)&&(r.cp3=dd(F)),r.mtos3=O.L[3].va);r.cs=hDf(O.Vw);R&&(r.ic=dRA(O.Vw),r.dvpt=I.B.S,r.dvs=mx(I.S,.5),r.dfvs=mx(I.S,1),r.davs=mx(I.L,.5),r.dafvs=mx(I.L,1),J&&(I.B.S=0,XSp(I.S),XSp(I.L)),O.hP()&&(r.dtos=I.iz,r.dav=I.W,r.dtoss=O.pV+1,J&&(I.iz=0,I.W=0,O.pV++)),r.dat=I.D.S,r.dft=I.SN.S,J&&(I.D.S=0,I.SN.S=0));r.ps=[y.D.width,y.D.height];r.bs=[TX(y.L),y.L.getHeight()]; r.scs=[y.N.width,y.N.height];r.dom=y.domain;O.AI&&(r.vds=O.AI);if(O.j.length>0||O.qr)R=g.m4(O.j),O.qr&&R.push(O.qr),r.pings=g.jO(R,function(t){return t.toString()}); R=g.jO(g.Ai(O.j,function(t){return t.j()}),function(t){return t.getId()}); XB_(R);r.ces=R;O.S&&(r.vmer=O.S);O.V&&(r.vmmk=O.V);O.iz&&(r.vmiec=O.iz);r.avms=O.rO?O.rO.getName():"ns";O.rO&&g.gY(r,O.rO.tY());l?(r.c=cw(O.iS.x8,2),r.ss=cw(O.iS.AK,2)):r.tth=NQ()-K$A;r.mc=cw(I.Hq,2);r.nc=cw(I.J,2);r.mv=nD(I.j);r.nv=nD(I.N);r.lte=cw(O.aA,2);l=cq(O,u);DK(I);r.qmtos=DK(l);r.qnc=cw(l.J,2);r.qmv=nD(l.j);r.qnv=nD(l.N);r.qas=l.N>0?1:0;r.qi=O.Hn;r.avms||(r.avms="geo");r.psm=I.xS.L;r.psv=I.xS.getValue();r.psfv=I.Td.getValue();r.psa=I.AR.getValue();w=Bhp(w.pG);w.length&&(r.veid=w);O.D&&g.gY(r, HOh(O.D));r.avas=O.zc();r.vs=O.JN();r.co=ycW(O);r.tm=I.Qh;r.tu=I.Iu;return r}; uNz=function(O,R){if(g.Zo(wZs,R))return!0;var J=O.X8[R];return J!==void 0?(O.X8[R]=!0,!J):!1}; ycW=function(O){var R=O.Qh.toString(10).padStart(2,"0");R=""+O.w5+R;O.Qh<99&&O.Qh++;return R}; Cff=function(){this.L={};var O=hg();im(this,O,document);var R=IU_();try{if("1"==R){for(var J=O.parent;J!=O.top;J=J.parent)im(this,J,J.document);im(this,O.top,O.top.document)}}catch(l){}}; IU_=function(){var O=document.documentElement;try{if(!eO(hg().top))return"2";var R=[],J=hg(O.ownerDocument);for(O=J;O!=J.top;O=O.parent)if(O.frameElement)R.push(O.frameElement);else break;return R&&R.length!=0?"1":"0"}catch(l){return"2"}}; im=function(O,R,J){aT(J,"mousedown",function(){return rcW(O)},301); aT(R,"scroll",function(){return tas(O)},302); aT(J,"touchmove",function(){return o_p(O)},303); aT(J,"mousemove",function(){return Zf_(O)},304); aT(J,"keydown",function(){return Va2(O)},305)}; rcW=function(O){g.BR(O.L,function(R){R.B>1E5||++R.B})}; tas=function(O){g.BR(O.L,function(R){R.L>1E5||++R.L})}; o_p=function(O){g.BR(O.L,function(R){R.L>1E5||++R.L})}; Va2=function(O){g.BR(O.L,function(R){R.S>1E5||++R.S})}; Zf_=function(O){g.BR(O.L,function(R){R.N>1E5||++R.N})}; fUz=function(){this.L=[];this.S=[]}; lm=function(O,R){return g.rC(O.L,function(J){return J.Hn==R})}; SQL=function(O,R){return R?g.rC(O.L,function(J){return J.bV.Iy==R}):null}; Nbz=function(O,R){return g.rC(O.S,function(J){return J.w1()==2&&J.Hn==R})}; Fx=function(){var O=um;return O.L.length==0?O.S:O.S.length==0?O.L:g.Ns(O.S,O.L)}; mVH=function(O,R){O=R.w1()==1?O.L:O.S;var J=Ct(O,function(l){return l==R}); return J!=-1?(O.splice(J,1),R.rO&&R.rO.unobserve(),R.dispose(),!0):!1}; E_T=function(O){var R=um;if(mVH(R,O)){switch(O.w1()){case 0:var J=function(){return null}; case 2:J=function(){return Nbz(R,O.Hn)}; break;case 1:J=function(){return lm(R,O.Hn)}}for(var l=J();l;l=J())mVH(R,l)}}; DV0=function(O){var R=um;O=g.Ai(O,function(J){return!SQL(R,J.bV.Iy)}); R.L.push.apply(R.L,g.X(O))}; aUL=function(O){var R=[];g.e6(O,function(J){RT(um.L,function(l){return l.bV.Iy===J.bV.Iy&&l.Hn===J.Hn})||(um.L.push(J),R.push(J))})}; G9=function(){this.L=this.S=null}; Ki=function(O){return O.L!=null}; v_f=function(O,R){function J(l,u){R(l,u)} if(O.S==null)return!1;O.L=g.rC(O.S,function(l){return l!=null&&l.qn()}); O.L&&(O.L.init(J)?Ips(O.L.L):R(O.L.L.p9(),O.L));return O.L!=null}; yi=function(O){O=XZ2(O);y$.call(this,O.length?O[O.length-1]:new uF(Io,0));this.B=O;this.S=null}; XZ2=function(O){if(!O.length)return[];O=(0,g.Ai)(O,function(J){return J!=null&&J.II()}); for(var R=1;RJ.time?R:J},O[0])}; rJ=function(O){O=O===void 0?Io:O;y$.call(this,new uF(O,2))}; tZ=function(){var O=qQA();uF.call(this,Io.top,O,"geo")}; qQA=function(){GX();var O=Ji();return O.B||O.S?0:2}; kLs=function(){}; o_=function(){this.done=!1;this.L={lr:0,rF:0,XTS:0,EG:0,Mq:-1,ER:0,JB:0,Gx:0,ejQ:0};this.D=null;this.j=!1;this.B=null;this.J=0;this.S=new lF(this)}; Vi=function(){var O=Z3;O.j||(O.j=!0,sih(O,function(){return O.N.apply(O,g.X(g.As.apply(0,arguments)))}),O.N())}; bf2=function(){Yi(kLs);var O=Yi(G9);Ki(O)&&O.L.L?Ips(O.L.L):Ji().update(Io)}; fi=function(O,R,J){if(!O.done&&(O.S.cancel(),R.length!=0)){O.B=null;try{bf2();var l=NQ();GX().D=l;if(Ki(Yi(G9)))for(var u=0;u=0?NQ()-Eu:-1,y=NQ();u.L.Mq==-1&&(G=y);var w=Ji(),I=GX(),C=Cz(I.pG),r=Fx();try{if(r.length>0){var t=w.L;t&&(C.bs=[TX(t),t.getHeight()]);var Z=w.D;Z&&(C.ps=[Z.width,Z.height]);Io.screen&&(C.scs=[Io.screen.width,Io.screen.height])}else C.url=encodeURIComponent(Io.location.href.substring(0,512)),F.referrer&&(C.referrer=encodeURIComponent(F.referrer.substring(0,512))); C.tt=G;C.pt=Eu;C.bin=I.S;Io.google_osd_load_pub_page_exp!==void 0&&(C.olpp=Io.google_osd_load_pub_page_exp);C.deb=[1,u.L.lr,u.L.rF,u.L.EG,u.L.Mq,0,u.S.S,u.L.ER,u.L.JB,u.L.Gx,u.L.ejQ,-1].join(";");C.tvt=AcB(u,y);w.S&&(C.inapp=1);if(Io!==null&&Io!=Io.top){r.length>0&&(C.iframe_loc=encodeURIComponent(Io.location.href.substring(0,512)));var V=w.J;C.is=[TX(V),V.getHeight()]}}catch(m){C.error=1}Z3.B=C}t=g.RW(Z3.B);Z=GX().L;IW(Z.B,"prf")==1?(V=new lv,u=Z.L,F=0,u.L>-1&&(F=u.B.L.now()-u.L),V=$p(V,1,b$(u.N+ F),0),u=Z.L,V=$p(V,5,P2(u.L>-1?u.S+1:u.S),0),V=$p(V,2,Qy(Z.S.L.B()),"0"),V=$p(V,3,Qy(Z.S.L.S()),"0"),Z=$p(V,4,Qy(Z.S.L.L()),"0"),V={},Z=(V.pf=g.RK(Z.S()),V)):Z={};g.gY(t,Z);g.gY(R,l,J,t,O())}])}; pZ_=function(){var O=PfW||Io;if(!O)return"";var R=[];if(!O.location||!O.location.href)return"";R.push("url="+encodeURIComponent(O.location.href.substring(0,512)));O.document&&O.document.referrer&&R.push("referrer="+encodeURIComponent(O.document.referrer.substring(0,512)));return R.join("&")}; Sy=function(){var O="youtube.player.web_20250423_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250423_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250423_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250423_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),R;if(((R=O)==null?void 0:R.length)==2)return O[1];O="youtube.player.web_20250423_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var J;return((J=O)==null?void 0:J.length)==3?"20"+O[1]+O[2]:null}; Bbp=function(){return"av.default_js".includes("ima_html5_sdk")?{Cc:"ima",cD:null}:"av.default_js".includes("ima_native_sdk")?{Cc:"nima",cD:null}:"av.default_js".includes("admob-native-video-javascript")?{Cc:"an",cD:null}:"youtube.player.web_20250423_22_RC00".includes("cast_js_sdk")?{Cc:"cast",cD:Sy()}:"youtube.player.web_20250423_22_RC00".includes("youtube.player.web")?{Cc:"yw",cD:Sy()}:"youtube.player.web_20250423_22_RC00".includes("outstream_web_client")?{Cc:"out",cD:Sy()}:"youtube.player.web_20250423_22_RC00".includes("drx_rewarded_web")? {Cc:"r",cD:Sy()}:"youtube.player.web_20250423_22_RC00".includes("gam_native_web_video")?{Cc:"n",cD:Sy()}:"youtube.player.web_20250423_22_RC00".includes("admob_interstitial_video")?{Cc:"int",cD:Sy()}:{Cc:"j",cD:null}}; EB=function(O,R){var J={sv:"966"};Nm!==null&&(J.v=Nm);J.cb=Hf2;J.nas=um.L.length;J.msg=O;R!==void 0&&(O=xVs(R))&&(J.e=mQ[O]);return J}; D3=function(O){return tx(O,"custom_metric_viewable")}; xVs=function(O){var R=D3(O)?"custom_metric_viewable":O.toLowerCase();return z_(R_,function(J){return J==R})}; UVs=function(){this.L=void 0;this.S=!1;this.B=0;this.N=-1;this.D="tos"}; L$W=function(O){try{var R=O.split(",");return R.length>g.Lt(jiT).length?null:Lu(R,function(J,l){l=l.toLowerCase().split("=");if(l.length!=2||QiW[l[0]]===void 0||!QiW[l[0]](l[1]))throw Error("Entry ("+l[0]+", "+l[1]+") is invalid.");J[l[0]]=l[1];return J},{})}catch(J){return null}}; YQA=function(O,R){if(O.L==void 0)return 0;switch(O.D){case "mtos":return O.S?N3(R.L,O.L):N3(R.S,O.L);case "tos":return O.S?SE(R.L,O.L):SE(R.S,O.L)}return 0}; a_=function(O,R,J,l){xl.call(this,R,l);this.J=O;this.V=J}; v1=function(){}; Xx=function(O){xl.call(this,"fully_viewable_audible_half_duration_impression",O)}; T9=function(O){this.L=O}; $G=function(O,R){xl.call(this,O,R)}; Mm=function(O){U1.call(this,"measurable_impression",O)}; qm=function(){T9.apply(this,arguments)}; kG=function(O,R,J){Yl.call(this,O,R,J)}; sB=function(O){O=O===void 0?Io:O;y$.call(this,new uF(O,2))}; bm=function(O,R,J){Yl.call(this,O,R,J)}; W1=function(O){O=O===void 0?Io:O;y$.call(this,new uF(O,2))}; AZ=function(){uF.call(this,Io,2,"mraid");this.xS=0;this.Hq=this.OQ=!1;this.J=null;this.S=zis(this.B);this.N.L=new XE(0,0,0,0);this.Qh=!1}; ey=function(O,R,J){O.wA("addEventListener",R,J)}; n_A=function(O){GX().N=!!O.wA("isViewable");ey(O,"viewableChange",dVH);O.wA("getState")==="loading"?ey(O,"ready",hJx):zJz(O)}; zJz=function(O){typeof O.S.e8.AFMA_LIDAR==="string"?(O.OQ=!0,ccB(O)):(O.S.compatibility=3,O.J="nc",O.CD("w"))}; ccB=function(O){O.Hq=!1;var R=IW(GX().pG,"rmmt")==1,J=!!O.wA("isViewable");(R?!J:1)&&hh().setTimeout(fS(524,function(){O.Hq||(OS_(O),SJ(540,Error()),O.J="mt",O.CD("w"))}),500); RGT(O);ey(O,O.S.e8.AFMA_LIDAR,JHh)}; RGT=function(O){var R=IW(GX().pG,"sneio")==1,J=O.S.e8.AFMA_LIDAR_EXP_1!==void 0,l=O.S.e8.AFMA_LIDAR_EXP_2!==void 0;(R=R&&l)&&(O.S.e8.AFMA_LIDAR_EXP_2=!0);J&&(O.S.e8.AFMA_LIDAR_EXP_1=!R)}; OS_=function(O){O.wA("removeEventListener",O.S.e8.AFMA_LIDAR,JHh);O.OQ=!1}; gFf=function(O,R){if(O.wA("getState")==="loading")return new g.so(-1,-1);R=O.wA(R);if(!R)return new g.so(-1,-1);O=parseInt(R.width,10);R=parseInt(R.height,10);return isNaN(O)||isNaN(R)?new g.so(-1,-1):new g.so(O,R)}; hJx=function(){try{var O=Yi(AZ);O.wA("removeEventListener","ready",hJx);zJz(O)}catch(R){SJ(541,R)}}; JHh=function(O,R){try{var J=Yi(AZ);J.Hq=!0;var l=O?new XE(O.y,O.x+O.width,O.y+O.height,O.x):new XE(0,0,0,0);var u=NQ(),F=iF();var G=new MQ(u,F,J);G.L=l;G.volume=R;J.Ht(G)}catch(y){SJ(542,y)}}; dVH=function(O){var R=GX(),J=Yi(AZ);O&&!R.N&&(R.N=!0,J.Qh=!0,J.J&&J.CD("w",!0))}; P1=function(){this.isInitialized=!1;this.L=this.S=null;var O={};this.J=(O.start=this.SQU,O.firstquartile=this.fB,O.midpoint=this.LXd,O.thirdquartile=this.HJq,O.complete=this.Pp,O.error=this.Wp,O.pause=this.fT,O.resume=this.Dw,O.skip=this.gSQ,O.viewable_impression=this.Oi,O.mute=this.zo,O.unmute=this.zo,O.fullscreen=this.RUR,O.exitfullscreen=this.MF,O.fully_viewable_audible_half_duration_impression=this.Oi,O.measurable_impression=this.Oi,O.abandon=this.fT,O.engagedview=this.Oi,O.impression=this.Oi, O.creativeview=this.Oi,O.progress=this.zo,O.custom_metric_viewable=this.Oi,O.bufferstart=this.fT,O.bufferfinish=this.Dw,O.audio_measurable=this.Oi,O.audio_audible=this.Oi,O);O={};this.V=(O.overlay_resize=this.nSd,O.abandon=this.lX,O.close=this.lX,O.collapse=this.lX,O.overlay_unmeasurable_impression=function(R){return JZ(R,"overlay_unmeasurable_impression",iF())},O.overlay_viewable_immediate_impression=function(R){return JZ(R,"overlay_viewable_immediate_impression",iF())},O.overlay_unviewable_impression= function(R){return JZ(R,"overlay_unviewable_impression",iF())},O.overlay_viewable_end_of_session_impression=function(R){return JZ(R,"overlay_viewable_end_of_session_impression",iF())},O); GX().S=3;iSs(this);this.B=null}; pi=function(O,R,J,l){O=O.rf(null,l,!0,R);O.N=J;DV0([O]);return O}; l1W=function(O,R,J){sss(R);var l=O.L;g.e6(R,function(u){var F=g.jO(u.criteria,function(G){var y=L$W(G);if(y==null)G=null;else if(G=new UVs,y.visible!=null&&(G.L=y.visible/100),y.audible!=null&&(G.S=y.audible==1),y.time!=null){var w=y.timetype=="mtos"?"mtos":"tos",I=U0B(y.time,"%")?"%":"ms";y=parseInt(y.time,10);I=="%"&&(y/=100);G.setTime(y,I,w)}return G}); RT(F,function(G){return G==null})||RJs(J,new a_(u.id,u.event,F,l))})}; uE_=function(){var O=[],R=GX();O.push(Yi(tZ));IW(R.pG,"mvp_lv")&&O.push(Yi(AZ));R=[new sB,new W1];R.push(new yi(O));R.push(new rJ(Io));return R}; Fbz=function(O){if(!O.isInitialized){O.isInitialized=!0;try{var R=NQ(),J=GX(),l=Ji();Eu=R;J.B=79463069;O.S!=="o"&&(PfW=IJT(Io));if(EbW()){Z3.L.rF=0;Z3.L.Mq=NQ()-R;var u=uE_(),F=Yi(G9);F.S=u;v_f(F,function(){B1()})?Z3.done||(W$A(),FO(F.L.L,O),Vi()):l.B?B1():Vi()}else H1=!0}catch(G){throw um.reset(),G; }}}; UB=function(O){Z3.S.cancel();xG=O;Z3.done=!0}; jy=function(O){if(O.S)return O.S;var R=Yi(G9).L;if(R)switch(R.getName()){case "nis":O.S="n";break;case "gsv":O.S="m"}O.S||(O.S="h");return O.S}; hZ=function(O,R,J){if(O.L==null)return R.AI|=4,!1;O=GXT(O.L,J,R);R.AI|=O;return O==0}; B1=function(){var O=[new rJ(Io)],R=Yi(G9);R.S=O;v_f(R,function(){UB("i")})?Z3.done||(W$A(),Vi()):UB("i")}; Kb_=function(O,R){if(!O.SG){var J=JZ(O,"start",iF());J=O.Rl.L(J).L;var l={id:"lidarv"};l.r=R;l.sv="966";Nm!==null&&(l.v=Nm);$i(J,function(u,F){return l[u]=u=="mtos"||u=="tos"?F:encodeURIComponent(F)}); R=pZ_();$i(R,function(u,F){return l[u]=encodeURIComponent(F)}); R="//pagead2.googlesyndication.com/pagead/gen_204?"+CD(IT(new wd,l));EKs(R);O.SG=!0}}; z9=function(O,R,J){fi(Z3,[O],!iF());lUh(O,J);J!=4&&ifs(O.OQ,J,O.nQ);return JZ(O,R,iF())}; iSs=function(O){eJp(function(){var R=yHh();O.S!=null&&(R.sdk=O.S);var J=Yi(G9);Ki(J)&&(R.avms=J.L.getName());return R})}; wwH=function(O,R,J,l){var u=SQL(um,J);u!==null&&u.Hn!==R&&(O.pU(u),u=null);u||(R=O.rf(J,NQ(),!1,R),um.S.length==0&&(GX().B=79463069),aUL([R]),u=R,u.N=jy(O),l&&(u.AR=l));return u}; I1s=function(O,R){var J=O[R];J!==void 0&&J>0&&(O[R]=Math.floor(J*1E3))}; yHh=function(){var O=Ji(),R={},J={},l={};return Object.assign({},(R.sv="966",R),Nm!==null&&(J.v=Nm,J),(l["if"]=O.B?"1":"0",l.nas=String(um.L.length),l))}; ni=function(O){xl.call(this,"audio_audible",O)}; c1=function(O){U1.call(this,"audio_measurable",O)}; Oh=function(){T9.apply(this,arguments)}; Rv=function(){}; Cv2=function(O){this.L=O}; GXT=function(O,R,J){O=O.S();if(typeof O==="function"){var l={};var u={};l=Object.assign({},Nm!==null&&(l.v=Nm,l),(u.sv="966",u.cb=Hf2,u.e=rHs(R),u));u=JZ(J,R,iF());g.gY(l,u);J.uW[R]=u;l=J.w1()==2?mU_(l).join("&"):J.Rl.L(l).L;try{return O(J.Hn,l,R),0}catch(F){return 2}}else return 1}; rHs=function(O){var R=D3(O)?"custom_metric_viewable":O;O=z_(R_,function(J){return J==R}); return mQ[O]}; JY=function(){P1.call(this);this.j=null;this.D=!1;this.N="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; tJH=function(O,R,J){J=J.opt_configurable_tracking_events;O.L!=null&&Array.isArray(J)&&l1W(O,J,R)}; oFB=function(O,R,J){var l=lm(um,R);l||(l=J.opt_nativeTime||-1,l=pi(O,R,jy(O),l),J.opt_osdId&&(l.AR=J.opt_osdId));return l}; ZSz=function(O,R,J){var l=lm(um,R);l||(l=pi(O,R,"n",J.opt_nativeTime||-1));return l}; VJ0=function(O,R){var J=lm(um,R);J||(J=pi(O,R,"h",-1));return J}; f1H=function(O){GX();switch(jy(O)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; mQH=function(O,R,J,l){J=J===void 0?{}:J;var u={};g.gY(u,{opt_adElement:void 0,opt_fullscreen:void 0},J);var F=O.Bs(R,J);J=F?F.Rl:O.LV();if(u.opt_bounds)return J.L(EB("ol",l));if(l!==void 0)if(xVs(l)!==void 0)if(H1)O=EB("ue",l);else if(Fbz(O),xG=="i")O=EB("i",l),O["if"]=0;else if(R=O.Bs(R,u)){b:{xG=="i"&&(R.uA=!0);F=u.opt_fullscreen;F!==void 0&&$l(R,!!F);var G;if(F=!Ji().S)(F=fz(g.aW(),"CrKey")&&!(fz(g.aW(),"CrKey")&&fz(g.aW(),"SmartSpeaker"))||fz(g.aW(),"PlayStation")||fz(g.aW(),"Roku")||Gcs()||fz(g.aW(), "Xbox"))||(F=g.aW(),F=fz(F,"AppleTV")||fz(F,"Apple TV")||fz(F,"CFNetwork")||fz(F,"tvOS")),F||(F=g.aW(),F=fz(F,"sdk_google_atv_x86")||fz(F,"Android TV")),F=!F;F&&(hh(),F=SO(gd)===0);if(G=F){switch(R.w1()){case 1:Kb_(R,"pv");break;case 2:O.Il(R)}UB("pv")}F=l.toLowerCase();if(G=!G)G=IW(GX().pG,"ssmol")&&F==="loaded"?!1:g.Zo(Su2,F);if(G&&R.rU==0){xG!="i"&&(Z3.done=!1);G=u!==void 0?u.opt_nativeTime:void 0;vw=G=typeof G==="number"?G:NQ();R.Pz=!0;var y=iF();R.rU=1;R.X8={};R.X8.start=!1;R.X8.firstquartile= !1;R.X8.midpoint=!1;R.X8.thirdquartile=!1;R.X8.complete=!1;R.X8.resume=!1;R.X8.pause=!1;R.X8.skip=!1;R.X8.mute=!1;R.X8.unmute=!1;R.X8.viewable_impression=!1;R.X8.measurable_impression=!1;R.X8.fully_viewable_audible_half_duration_impression=!1;R.X8.fullscreen=!1;R.X8.exitfullscreen=!1;R.pV=0;y||(R.y0().V=G);fi(Z3,[R],!y)}(G=R.Fm[F])&&Pq(R.Vw,G);IW(GX().pG,"fmd")||g.Zo(NN_,F)&&R.qr&&R.qr.S(R,null);switch(R.w1()){case 1:var w=D3(F)?O.J.custom_metric_viewable:O.J[F];break;case 2:w=O.V[F]}if(w&&(l=w.call(O, R,u,l),IW(GX().pG,"fmd")&&g.Zo(NN_,F)&&R.qr&&R.qr.S(R,null),l!==void 0)){u=EB(void 0,F);g.gY(u,l);l=u;break b}l=void 0}R.rU==3&&O.pU(R);O=l}else O=EB("nf",l);else O=void 0;else H1?O=EB("ue"):F?(O=EB(),g.gY(O,F$2(F,!0,!1,!1))):O=EB("nf");return typeof O==="string"?J.L():J.L(O)}; EFz=function(O,R){R&&(O.N=R)}; DQL=function(O){var R={};return R.viewability=O.L,R.googleViewability=O.S,R}; a1T=function(O,R,J){J=J===void 0?{}:J;O=mQH(Yi(JY),R,J,O);return DQL(O)}; g2=function(O,R){return(O=(new RegExp("[^#]*[?&]"+R+"=([^&#]*)")).exec(O))?O[1]:null}; iG=function(O){var R=g.As.apply(1,arguments).filter(Boolean).join("&");if(!R)return O;var J=O.match(/[?&]adurl=/);return J?O.slice(0,J.index+1)+R+"&"+O.slice(J.index+1):O+(O.indexOf("?")<0?"?":"&")+R}; lG=function(O,R){return R?"&"+O+"="+encodeURIComponent(R):""}; vFL=function(O){var R=O.url;O=O.nug;this.L=R;this.B=O;this.S=(new Date).getTime()-17040672E5}; XwT=function(O){O=O.B;if(!O)return"";var R=lG("uap",O.platform)+lG("uapv",O.platformVersion)+lG("uafv",O.uaFullVersion)+lG("uaa",O.architecture)+lG("uam",O.model)+lG("uab",O.bitness);O.fullVersionList&&(R+="&uafvl="+encodeURIComponent(O.fullVersionList.map(function(J){return encodeURIComponent(J.brand)+";"+encodeURIComponent(J.version)}).join("|"))); O.wow64!=null&&(R+="&uaw="+Number(O.wow64));return R.slice(1)}; MJ0=function(O,R,J,l,u){var F=window;var G=G===void 0?!1:G;var y;J?y=(G===void 0?0:G)?"//ep1.adtrafficquality.google/bg/"+o4(J)+".js":"//pagead2.googlesyndication.com/bg/"+o4(J)+".js":y="";G=G===void 0?!1:G;J=F.document;var w={};R&&(w._scs_=R);w._bgu_=y;w._bgp_=l;w._li_="v_h.3.0.0.0";u&&(w._upb_=u);(R=F.GoogleTyFxhY)&&typeof R.push=="function"||(R=F.GoogleTyFxhY=[]);R.push(w);R=HE(J).createElement("SCRIPT");R.type="text/javascript";R.async=!0;O=(G===void 0?0:G)?sbh(TNs,o4(O)+".js"):sbh($Q2,o4(O)+ ".js");g.GY(R,O);(F=(F.GoogleTyFxhYEET||{})[R.src])?F():J.getElementsByTagName("head")[0].appendChild(R)}; quA=function(){try{var O,R;return!!((O=window)==null?0:(R=O.top)==null?0:R.location.href)&&!1}catch(J){return!0}}; uG=function(O,R,J){J=J===void 0?Error():J;var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=O;R+=":";J instanceof Error?(this.message=R+J.message,this.stack=J.stack||""):(this.message=R+String(J),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; Gm=function(){var O=kXB();O=O===void 0?"bevasrsg":O;return new Promise(function(R){var J=window===window.top?window:quA()?window:window.top,l=J[O],u;((u=l)==null?0:u.bevasrs)?R(new Fu(l.bevasrs)):(l||(l={},l=(l.nqfbel=[],l),J[O]=l),l.nqfbel.push(function(F){R(new Fu(F))}))})}; srW=function(O){var R={c:O.ya,e:O.jY,mc:O.DN,me:O.rM};O.QP&&(R.co={c:O.QP.v9,a:O.QP.zO,s:O.QP.iJ});return R}; K7=function(O){g.p.call(this);this.wpc=O}; Fu=function(O){g.p.call(this);var R=this;this.m$=O;this.B="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.Sq=this.m$.p;this.N=this.O3.bind(this);this.addOnDisposeCallback(function(){return void bSH(R)})}; WbL=function(O){var R;return g.A(function(J){if(J.S==1){if(!O.m$.wpc)throw new uG(30,"NWA");return O.L?J.return(O.L):g.k(J,O.m$.wpc(),2)}R=J.L;O.L=new K7(R);return J.return(O.L)})}; bSH=function(O){O.S!==void 0&&(O.B.forEach(function(R){var J;(J=O.S)==null||J.removeEventListener(R,O.N)}),O.S=void 0)}; AHH=function(O){var R=R===void 0?49:R;var J=[];BS(O,y_,6).forEach(function(l){LO(l,2)<=R&&J.push(LO(l,1))}); return J}; eG2=function(O){var R=R===void 0?49:R;var J=[];BS(O,y_,6).forEach(function(l){LO(l,2)>R&&J.push(LO(l,1))}); return J}; PvL=function(O){O.then(function(){},function(){})}; w2=function(){g.p.apply(this,arguments);this.N=1;this[pws]=this.dispose}; Iv=function(O){return{fieldType:2,fieldName:O}}; g.C7=function(O){return{fieldType:3,fieldName:O}}; BNz=function(O){this.L=O;O.F1("/client_streamz/bg/frs",g.C7("mk"))}; HSs=function(O){this.L=O;O.F1("/client_streamz/bg/wrl",g.C7("mn"),Iv("ac"),Iv("sc"),g.C7("rk"),g.C7("mk"))}; xQ_=function(O){this.L=O;O.Oa("/client_streamz/bg/ec",g.C7("en"),g.C7("mk"))}; UQ0=function(O){this.L=O;O.F1("/client_streamz/bg/el",g.C7("en"),g.C7("mk"))}; jrW=function(O){this.L=O;O.Oa("/client_streamz/bg/cec",Iv("ec"),g.C7("mk"))}; Qrp=function(O){this.L=O;O.Oa("/client_streamz/bg/po/csc",Iv("cs"),g.C7("mk"))}; Lb_=function(O){this.L=O;O.Oa("/client_streamz/bg/po/ctav",g.C7("av"),g.C7("mk"))}; Yup=function(O){this.L=O;O.Oa("/client_streamz/bg/po/cwsc",g.C7("su"),g.C7("mk"))}; dQB=function(O){this.L1=CO(O)}; hG_=function(O,R){return s4x(O,R,GYf)}; r2=function(O){this.L1=CO(O)}; tY=function(O){this.L1=CO(O)}; ov=function(O){this.L1=CO(O)}; Zq=function(O){this.L1=CO(O)}; zGB=function(O){this.L1=CO(O)}; g.OD2=function(O){var R=new Zq;R=nO(R,1,O.S);var J=nFH(O);R=s4x(R,J,SoH);J=[];for(var l=[],u=g.N(O.L.keys()),F=u.next();!F.done;F=u.next())l.push(F.value.split(","));for(u=0;u>>31)&4294967295;r=u[0];var V=u[1],m=u[2],E=u[3],a=u[4];for(Z=0;Z<80;Z++){if(Z<40)if(Z<20){var v=E^V&(m^E);var b=1518500249}else v=V^m^E,b=1859775393;else Z<60?(v=V&m|E&(V|m),b=2400959708):(v=V^m^E,b=3395469782);v=((r<<5|r>>>27)&4294967295)+v+a+b+t[Z]&4294967295;a=E;E=m;m=(V<<30|V>>>2)&4294967295;V=r;r=v}u[0]=u[0]+r&4294967295;u[1]=u[1]+V&4294967295;u[2]= u[2]+m&4294967295;u[3]=u[3]+E&4294967295;u[4]=u[4]+a&4294967295} function J(r,t){if(typeof r==="string"){r=unescape(encodeURIComponent(r));for(var Z=[],V=0,m=r.length;V=56;Z--)F[Z]=t&255,t>>>=8;R(F);for(Z=t=0;Z<5;Z++)for(var V=24;V>=0;V-=8)r[t++]=u[Z]>>V&255;return r} for(var u=[],F=[],G=[],y=[128],w=1;w<64;++w)y[w]=0;var I,C;O();return{reset:O,update:J,digest:l,Mf:function(){for(var r=l(),t="",Z=0;Z1)));G=G.next)u||(F=G);u&&(J.L==0&&l==1?zKz(J,R):(F?(l=F,l.next==J.N&&(J.N=l),l.next=l.next.next):nlf(J),ciT(J,u,3,R)))}O.B=null}else vh(O,3,R)}; Wh=function(O,R){O.S||O.L!=2&&O.L!=3||Oi2(O);O.N?O.N.next=R:O.S=R;O.N=R}; RkB=function(O,R,J,l){var u=TA(null,null,null);u.L=new g.XH(function(F,G){u.B=R?function(y){try{var w=R.call(l,y);F(w)}catch(I){G(I)}}:F; u.S=J?function(y){try{var w=J.call(l,y);w===void 0&&y instanceof eb?G(y):F(w)}catch(I){G(I)}}:G}); u.L.B=O;Wh(O,u);return u.L}; vh=function(O,R,J){O.L==0&&(O===J&&(R=3,J=new TypeError("Promise cannot resolve to itself")),O.L=1,Lx0(J,O.Guq,O.UKz,O)||(O.J=J,O.L=R,O.B=null,Oi2(O),R!=3||J instanceof eb||JZh(O,J)))}; Lx0=function(O,R,J,l){if(O instanceof g.XH)return hKh(O,R,J,l),!0;if(O)try{var u=!!O.$goog_Thenable}catch(G){u=!1}else u=!1;if(u)return O.then(R,J,l),!0;if(g.Rb(O))try{var F=O.then;if(typeof F==="function")return gGh(O,F,R,J,l),!0}catch(G){return J.call(l,G),!0}return!1}; gGh=function(O,R,J,l,u){function F(w){y||(y=!0,l.call(u,w))} function G(w){y||(y=!0,J.call(u,w))} var y=!1;try{R.call(O,G,F)}catch(w){F(w)}}; Oi2=function(O){O.j||(O.j=!0,g.aL(O.xB,O))}; nlf=function(O){var R=null;O.S&&(R=O.S,O.S=R.next,R.next=null);O.S||(O.N=null);return R}; ciT=function(O,R,J,l){if(J==3&&R.S&&!R.N)for(;O&&O.D;O=O.B)O.D=!1;if(R.L)R.L.B=null,ii2(R,J,l);else try{R.N?R.B.call(R.context):ii2(R,J,l)}catch(u){l3W.call(null,u)}PFp(QTp,R)}; ii2=function(O,R,J){R==2?O.B.call(O.context,J):O.S&&O.S.call(O.context,J)}; JZh=function(O,R){O.D=!0;g.aL(function(){O.D&&l3W.call(null,R)})}; eb=function(O){wC.call(this,O)}; g.Ph=function(O,R){g.tW.call(this);this.Wc=O||1;this.Dy=R||g.YW;this.oC=(0,g.iQ)(this.XfX,this);this.zL=g.Fk()}; g.pE=function(O,R,J){if(typeof O==="function")J&&(O=(0,g.iQ)(O,J));else if(O&&typeof O.handleEvent=="function")O=(0,g.iQ)(O.handleEvent,O);else throw Error("Invalid listener argument");return Number(R)>2147483647?-1:g.YW.setTimeout(O,R||0)}; Bh=function(O,R){var J=null;return(new g.XH(function(l,u){J=g.pE(function(){l(R)},O); J==-1&&u(Error("Failed to schedule timer."))})).cn(function(l){g.YW.clearTimeout(J); throw l;})}; g.Hh=function(O){g.p.call(this);this.J=O;this.N=0;this.B=100;this.D=!1;this.S=new Map;this.j=new Set;this.flushInterval=3E4;this.L=new g.Ph(this.flushInterval);this.L.listen("tick",this.hJ,!1,this);g.H(this,this.L)}; uxs=function(O){O.L.enabled||O.L.start();O.N++;O.N>=O.B&&O.hJ()}; FQz=function(O,R){return O.j.has(R)?void 0:O.S.get(R)}; G9_=function(O){for(var R=0;R2?O.L.statusText:""}catch(J){R=""}O.N=R+" ["+O.getStatus()+"]";f3_(O)}}finally{Yt(O)}}}; Yt=function(O,R){if(O.L){O.j&&(clearTimeout(O.j),O.j=null);var J=O.L;O.L=null;R||O.dispatchEvent("ready");try{J.onreadystatechange=null}catch(l){}}}; zA=function(O){var R=O.getStatus();a:switch(R){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var J=!0;break a;default:J=!1}if(!J){if(R=R===0)O=g.ao(String(O.V))[1]||null,!O&&g.YW.self&&g.YW.self.location&&(O=g.YW.self.location.protocol.slice(0,-1)),R=!mmT.test(O?O.toLowerCase():"");J=R}return J}; g.hW=function(O){return O.L?O.L.readyState:0}; g.nE=function(O){try{return O.L?O.L.responseText:""}catch(R){return""}}; g.ch=function(O){try{if(!O.L)return null;if("response"in O.L)return O.L.response;switch(O.iz){case "":case "text":return O.L.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in O.L)return O.L.mozResponseArrayBuffer}return null}catch(R){return null}}; g.EGs=function(O){var R={};O=(O.L&&g.hW(O)>=2?O.L.getAllResponseHeaders()||"":"").split("\r\n");for(var J=0;J>1,R),aC(O,O.length>>1)]}; JYz=function(O){var R=g.N(R7T(O,vX));O=R.next().value;R=R.next().value;return O.toString(16)+R.toString(16)}; gQ_=function(O,R){var J=R7T(R);O=new Uint32Array(O.buffer);R=O[0];var l=g.N(J);J=l.next().value;l=l.next().value;for(var u=1;u>>8|G<<24,G+=F|0,G^=y+38293,F=F<<3|F>>>29,F^=G,w=w>>>8|w<<24,w+=y|0,w^=I+38293,y=y<<3|y>>>29,y^=w;F=[F,G];O[u]^=F[0];u+1=J?(globalThis.sessionStorage.removeItem(O),["e"]):["a",new Uint8Array(l.buffer,R+4)]}; Xl=function(O,R,J){J=J===void 0?[]:J;this.maxItems=O;this.L=R===void 0?0:R;this.S=J}; uuz=function(O){var R=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!R)return new Xl(O);var J=R.split(",");if(J.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Xl(O);R=J.slice(1);R.length===1&&R[0]===""&&(R=[]);J=Number(J[0]);return isNaN(J)||J<0||J>R.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Xl(O)):new Xl(O,J,R)}; FVT=function(O,R){this.logger=R;try{var J=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(l){J=!1}J&&(this.index=uuz(O))}; GmA=function(O,R,J,l,u){var F=O.index?l4(O.logger,function(){return i7s(O.index,JYz(R),J,l,u)},"W"):"u"; O.logger.gH(F)}; KVA=function(O,R,J){var l=g.N(O.index?l4(O.logger,function(){return lqx(JYz(R),J)},"R"):["u"]),u=l.next().value; l=l.next().value;O.logger.R$(u);return l}; IqA=function(O){function R(){J-=l;J-=u;J^=u>>>13;l-=u;l-=J;l^=J<<8;u-=J;u-=l;u^=l>>>13;J-=l;J-=u;J^=u>>>12;l-=u;l-=J;l^=J<<16;u-=J;u-=l;u^=l>>>5;J-=l;J-=u;J^=u>>>3;l-=u;l-=J;l^=J<<10;u-=J;u-=l;u^=l>>>15} O=yYf(O);for(var J=2654435769,l=2654435769,u=314159265,F=O.length,G=F,y=0;G>=12;G-=12,y+=12)J+=TV(O,y),l+=TV(O,y+4),u+=TV(O,y+8),R();u+=F;switch(G){case 11:u+=O[y+10]<<24;case 10:u+=O[y+9]<<16;case 9:u+=O[y+8]<<8;case 8:l+=O[y+7]<<24;case 7:l+=O[y+6]<<16;case 6:l+=O[y+5]<<8;case 5:l+=O[y+4];case 4:J+=O[y+3]<<24;case 3:J+=O[y+2]<<16;case 2:J+=O[y+1]<<8;case 1:J+=O[y+0]}R();return w30.toString(u)}; yYf=function(O){for(var R=[],J=0;J>7,O.error.code]);l.set(J,4);return l}; ef=function(O,R,J){$9.call(this,O);this.N=R;this.clientState=J;this.L="S";this.S="q"}; AA=function(O){return globalThis.TextEncoder?(new TextEncoder).encode(O):g.Oa(O)}; tF2=function(O,R,J){return O instanceof Nb?Hi_(O,J,R,1):O.U1(J)}; pd=function(O){g.p.call(this);var R=this;this.B=new g.tA;this.N=0;this.S=void 0;this.state=2;this.m$=O.m$;this.Wi=O.Wi;this.r0=Object.assign({},oQW,O.r0||{});this.logger=O.m$.ib();var J;this.onError=(J=O.onError)!=null?J:function(){}; this.qG=O.qG||!1;if(Z7T(O)){var l=this.m$;this.D=function(){return LQW(l).catch(function(G){G=R.reportError(new uG(R.L?20:32,"TRG:Disposed",G));R.S=G;var y;(y=R.L)==null||y.dispose();R.L=void 0;R.B.reject(G)})}; YB0(l,function(){return void PX(R)}); l.V===2&&PX(this)}else this.D=O.gnq,PX(this);var u=this.logger.share();u.d1("o");var F=new gl(u,"o");this.B.promise.then(function(){F.done();u.U6();u.dispose()},function(){return void u.dispose()}); this.addOnDisposeCallback(function(){R.L?(R.L.dispose(),R.L=void 0):R.S?R.logger.U6():(R.S=R.reportError(new uG(32,"TNP:Disposed")),R.logger.U6(),R.B.reject(R.S))}); g.H(this,this.logger)}; VFH=function(O,R){if(!(R instanceof uG))if(R instanceof xt){var J=Error(R.toString());J.stack=R.stack;R=new uG(11,"EBH:Error",J)}else R=new uG(12,"BSO:Unknown",R);return O.reportError(R)}; PX=function(O){var R,J,l,u,F,G,y,w,I,C,r,t,Z,V,m;return g.A(function(E){switch(E.S){case 1:R=void 0;O.N++;J=new g.tA;O.m$ instanceof mL&&O.m$.N.push(J.promise);if(!O.qG){E.pJ(2);break}l=new g.tA;setTimeout(function(){return void l.resolve()}); return g.k(E,l.promise,2);case 2:return u=O.logger.share(),g.N0(E,4,5),O.state=5,F={},G=[],g.k(E,De(O.m$.snapshot({ya:F,iW:G}),O.r0.fsQ,function(){return Promise.reject(new uG(15,"MDA:Timeout"))}),7); case 7:y=E.L;if(O.jN())throw new uG(O.L?20:32,"MDA:Disposed");w=G[0];O.state=6;return g.k(E,De(tF2(O.Wi,u,y),O.r0.Ez,function(){return Promise.reject(new uG(10,"BWB:Timeout"))}),8); case 8:I=E.L;if(O.jN())throw new uG(O.L?20:32,"BWB:Disposed");O.state=7;R=l4(u,function(){var v=fq_(O,I,J,w);v.B.promise.then(function(){return void O.D()}); return v},"i"); case 5:g.M0(E);u.dispose();g.kW(E,6);break;case 4:C=g.Tz(E);(r=R)==null||r.dispose();if(!O.S){t=VFH(O,C);J.resolve();var a;if(a=O.m$ instanceof mL&&O.N<2)a:if(C instanceof uG)a=C.code!==32&&C.code!==20&&C.code!==10;else{if(C instanceof xt)switch(C.code){case 2:case 13:case 14:case 4:break;default:a=!1;break a}a=!0}if(a)return Z=(1+Math.random()*.25)*(O.L?6E4:1E3),V=setTimeout(function(){return void O.D()},Z),O.addOnDisposeCallback(function(){return void clearTimeout(V)}),E.return(); O.S=t}u.DH(O.L?13:14);O.B.reject(O.S);return E.return();case 6:O.state=8,O.N=0,(m=O.L)==null||m.dispose(),O.L=R,O.B.resolve(),g.ST(E)}})}; fq_=function(O,R,J,l){var u=Yp(R,2)*1E3;if(u<=0)throw new uG(31,"TTM:Invalid");if(d4(R,4))return new b4(O.logger,d4(R,4),u);if(!Yp(R,3))return new sn(O.logger,K6(TU(R,1)),u);if(!l)throw new uG(4,"PMD:Undefined");l=l(K6(TU(R,1)));if(!(l instanceof Function))throw new uG(16,"APF:Failed");O.j=Math.floor((Date.now()+u)/1E3);O=new k9(O.logger,l,Yp(R,3),u);O.addOnDisposeCallback(function(){return void J.resolve()}); return O}; ShT=function(O,R){R=R instanceof uG?R:new uG(5,"TVD:error",R);return O.reportError(R)}; aqW=function(O,R,J){try{if(O.jN())throw new uG(21,"BNT:disposed");if(!O.L&&O.S)throw O.S;var l,u;return(u=(l=N2H(O,R,J))!=null?l:mqW(O,R,J))!=null?u:EQL(O,R,J)}catch(F){if(!R.rM)throw ShT(O,F);return Dqs(O,J,F)}}; N2H=function(O,R,J){var l;return(l=O.L)==null?void 0:qb(l,function(){return BX(O,R)},J,function(u){var F; if(O.L instanceof k9&&((F=R.QP)==null?0:F.iJ))try{var G;(G=O.cache)==null||GmA(G,BX(O,R),u,R.QP.v9,O.j-120)}catch(y){O.reportError(new uG(24,"ELX:write",y))}})}; mqW=function(O,R,J){var l;if((l=R.QP)!=null&&l.zO)try{var u,F=(u=O.cache)==null?void 0:KVA(u,BX(O,R),R.QP.v9);return F?J?l4(O.logger,function(){return g.RK(F,2)},"a"):F:void 0}catch(G){O.reportError(new uG(23,"RXO:read",G))}}; EQL=function(O,R,J){var l={stack:[],error:void 0,hasError:!1};try{if(!R.DN)throw new uG(29,"SDF:notready");return qb(ZxA(l,new ef(O.logger,0,O.state)),function(){return BX(O,R)},J)}catch(u){l.error=u,l.hasError=!0}finally{VTs(l)}}; Dqs=function(O,R,J){var l={stack:[],error:void 0,hasError:!1};try{var u=ShT(O,J);return qb(ZxA(l,new WX(O.logger,u)),function(){return[]},R)}catch(F){l.error=F,l.hasError=!0}finally{VTs(l)}}; BX=function(O,R){return R.jY?R.jY:R.ya?l4(O.logger,function(){return R.jY=AA(R.ya)},"c"):[]}; HX=function(){var O=0,R;return function(J){R||(R=new u4);var l=new ef(R,O,1),u=qb(l,function(){return AA(J)},!0); l.dispose();O++;return u}}; x9=function(O){this.L1=CO(O)}; vQs=function(O,R,J){this.jH=O;this.jg=R;this.metadata=J}; Un=function(O,R){R=R===void 0?{}:R;this.iAQ=O;this.metadata=R;this.status=null}; jf=function(O,R,J,l,u){this.name=O;this.methodType="unary";this.requestType=R;this.responseType=J;this.L=l;this.S=u}; QO=function(O){this.L1=CO(O)}; Ld=function(O){this.L1=CO(O)}; Y9=function(O){this.L1=CO(O)}; dl=function(O,R){this.J=O.h4h;this.V=R;this.L=O.xhr;this.B=[];this.D=[];this.j=[];this.N=[];this.S=[];this.J&&X3H(this)}; qhH=function(O,R){var J=new T2h;g.uM(O.L,"complete",function(){if(zA(O.L)){var l=g.nE(O.L);if(R&&O.L.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");l=atob(l)}try{var u=O.V(l)}catch(y){hA(O,zV(new xt(13,"Error when deserializing response data; error: "+y+(", response: "+l)),J));return}l=KQW(O.L.getStatus());nd(O,cX(O));l==0?$qT(O,u):hA(O,zV(new xt(l,"Xhr succeeded but the status code is not 200"),J))}else{l=g.nE(O.L);u=cX(O);if(l){var F=MF2(O, l);l=F.code;var G=F.details;F=F.metadata}else l=2,G="Rpc failed due to xhr error. uri: "+String(O.L.V)+", error code: "+O.L.S+", error: "+O.L.getLastError(),F=u;nd(O,u);hA(O,zV(new xt(l,G,F),J))}})}; X3H=function(O){O.J.xa("data",function(R){if("1"in R){var J=R["1"];try{var l=O.V(J)}catch(u){hA(O,new xt(13,"Error when deserializing response data; error: "+u+(", response: "+J)))}l&&$qT(O,l)}if("2"in R)for(R=MF2(O,R["2"]),J=0;J-1&&O.splice(R,1)}; $qT=function(O,R){for(var J=0;J>4&15).toString(16)+(O&15).toString(16)}; e7z=function(O){return O.replace(/%25([0-9a-fA-F]{2})/g,"%$1")}; wE=function(O,R){this.S=this.L=null;this.B=O||null;this.N=!!R}; t7=function(O){O.L||(O.L=new Map,O.S=0,O.B&&$i(O.B,function(R,J){O.add(tg(R),J)}))}; PG2=function(O,R){t7(O);R=o8(O,R);return O.L.has(R)}; g.p3L=function(O,R,J){O.remove(R);J.length>0&&(O.B=null,O.L.set(o8(O,R),g.m4(J)),O.S=O.S+J.length)}; o8=function(O,R){R=String(R);O.N&&(R=R.toLowerCase());return R}; b70=function(O,R){R&&!O.N&&(t7(O),O.B=null,O.L.forEach(function(J,l){var u=l.toLowerCase();l!=u&&(this.remove(l),g.p3L(this,u,J))},O)); O.N=R}; g.B2A=function(O){var R="";g.BR(O,function(J,l){R+=l;R+=":";R+=J;R+="\r\n"}); return R}; g.Zj=function(O,R,J){if(g.nt(J))return O;J=g.B2A(J);if(typeof O==="string")return bu(O,g.r7(R),J);g.CP(O,R,J);return O}; g.Vf=function(O){g.p.call(this);this.S=O;this.L={}}; H7A=function(O,R,J,l,u,F){if(Array.isArray(J))for(var G=0;G=0)return!0;try{var R=new g.lD(O)}catch(J){return g.rC(iEs,function(l){return O.search(l)>0})!=null}return R.j.match(lPs)?!0:g.rC(iEs,function(J){return O.match(J)!=null})!=null}; g.sg=function(O,R){return O.replace(Ftp,function(J,l){try{var u=g.cR(R,l);if(u==null||u.toString()==null)return J;u=u.toString();if(u==""||!g.oW(g.Vr(u)))return encodeURIComponent(u).replace(/%2C/g,",")}catch(F){}return J})}; bD=function(O,R){return Object.is(O,R)}; A7=function(O){var R=WJ;WJ=O;return R}; GAH=function(O){O&&(O.yL=0);return A7(O)}; Kt2=function(O,R){A7(R);if(O&&O.qU!==void 0&&O.C8!==void 0&&O.No!==void 0){if(eu(O))for(R=O.yL;RO.yL;)O.qU.pop(),O.No.pop(),O.C8.pop()}}; whT=function(O,R,J){yWL(O);if(O.J4.length===0&&O.qU!==void 0)for(var l=0;l0}; IPW=function(O){O.qU!=null||(O.qU=[]);O.C8!=null||(O.C8=[]);O.No!=null||(O.No=[])}; yWL=function(O){O.J4!=null||(O.J4=[]);O.A8!=null||(O.A8=[])}; tbB=function(O){function R(){if(WJ!==null){var l=WJ.yL++;IPW(WJ);l0?" "+R:R))}}; g.Gw=function(O,R){if(O.classList)Array.prototype.forEach.call(R,function(u){g.F8(O,u)}); else{var J={};Array.prototype.forEach.call(iI(O),function(u){J[u]=!0}); Array.prototype.forEach.call(R,function(u){J[u]=!0}); R="";for(var l in J)R+=R.length>0?" "+l:l;g.lI(O,R)}}; g.KM=function(O,R){O.classList?O.classList.remove(R):g.uI(O,R)&&g.lI(O,Array.prototype.filter.call(iI(O),function(J){return J!=R}).join(" "))}; g.yF=function(O,R){O.classList?Array.prototype.forEach.call(R,function(J){g.KM(O,J)}):g.lI(O,Array.prototype.filter.call(iI(O),function(J){return!g.Zo(R,J)}).join(" "))}; g.wI=function(O,R,J){J?g.F8(O,R):g.KM(O,R)}; mGB=function(O,R){var J=!g.uI(O,R);g.wI(O,R,J)}; g.IP=function(){g.tW.call(this);this.L=0;this.endTime=this.startTime=null}; EtA=function(O,R){Array.isArray(R)||(R=[R]);R=R.map(function(J){return typeof J==="string"?J:J.property+" "+J.duration+"s "+J.timing+" "+J.delay+"s"}); g.pS(O,"transition",R.join(","))}; CM=function(O,R,J,l,u){g.IP.call(this);this.S=O;this.D=R;this.j=J;this.N=l;this.J=Array.isArray(u)?u:[u]}; DGH=function(O,R,J,l){return new CM(O,R,{opacity:J},{opacity:l},{property:"opacity",duration:R,timing:"ease-in",delay:0})}; vts=function(O){O=SL(O);if(O=="")return null;var R=String(O.slice(0,4)).toLowerCase();if(("url("1||O&&O.split(")"),null;if(O.indexOf("(")>0){if(/"|'/.test(O))return null;R=/([\-\w]+)\(/g;for(var J;J=R.exec(O);)if(!(J[1].toLowerCase()in aPs))return null}return O}; rI=function(O,R){O=g.YW[O];return O&&O.prototype?(R=Object.getOwnPropertyDescriptor(O.prototype,R))&&R.get||null:null}; XhH=function(O){var R=g.YW.CSSStyleDeclaration;return R&&R.prototype&&R.prototype[O]||null}; T1B=function(O,R,J,l){if(O)return O.apply(R,l);if(g.t3&&document.documentMode<10){if(!R[J].call)throw Error("IE Clobbering detected");}else if(typeof R[J]!="function")throw Error("Clobbering detected");return R[J].apply(R,l)}; sLz=function(O){if(!O)return"";var R=document.createElement("div").style;$Gf(O).forEach(function(J){var l=g.d7&&J in MbT?J:J.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");tx(l,"--")||tx(l,"var")||(J=T1B(qfH,O,O.getPropertyValue?"getPropertyValue":"getAttribute",[J])||"",J=vts(J),J!=null&&T1B(kAh,R,R.setProperty?"setProperty":"setAttribute",[l,J]))}); return R.cssText||""}; $Gf=function(O){g.OC(O)?O=g.m4(O):(O=g.Lt(O),g.ft(O,"cssText"));return O}; g.ZH=function(O){var R,J=R=0,l=!1;O=O.split(bEf);for(var u=0;u.4?-1:1;return(R==0?null:R)==-1?"rtl":"ltr"}; g.Nx=function(O){if(O instanceof VF||O instanceof fM||O instanceof SP)return O;if(typeof O.next=="function")return new VF(function(){return O}); if(typeof O[Symbol.iterator]=="function")return new VF(function(){return O[Symbol.iterator]()}); if(typeof O.e5=="function")return new VF(function(){return O.e5()}); throw Error("Not an iterator or iterable.");}; VF=function(O){this.S=O}; fM=function(O){this.S=O}; SP=function(O){VF.call(this,function(){return O}); this.B=O}; mA=function(O,R,J,l,u,F,G,y){this.L=O;this.J=R;this.B=J;this.D=l;this.N=u;this.j=F;this.S=G;this.V=y}; EW=function(O,R){if(R==0)return O.L;if(R==1)return O.S;var J=Mc(O.L,O.B,R),l=Mc(O.B,O.N,R);O=Mc(O.N,O.S,R);J=Mc(J,l,R);l=Mc(l,O,R);return Mc(J,l,R)}; PMA=function(O,R){var J=(R-O.L)/(O.S-O.L);if(J<=0)return 0;if(J>=1)return 1;for(var l=0,u=1,F=0,G=0;G<8;G++){F=EW(O,J);var y=(EW(O,J+1E-6)-F)/1E-6;if(Math.abs(F-R)<1E-6)return J;if(Math.abs(y)<1E-6)break;else F1E-6&&G<8;G++)F=0}; g.X8=function(O){g.p.call(this);this.j=1;this.B=[];this.N=0;this.L=[];this.S={};this.J=!!O}; B1W=function(O,R,J){g.aL(function(){O.apply(R,J)})}; g.Tw=function(O){this.L=O}; $6=function(O){this.L=O}; HEA=function(O){this.data=O}; xGA=function(O){return O===void 0||O instanceof HEA?O:new HEA(O)}; Mx=function(O){this.L=O}; g.UGs=function(O){var R=O.creation;O=O.expiration;return!!O&&Og.Fk()}; g.qx=function(O){this.L=O}; jLA=function(){}; k6=function(){}; sW=function(O){this.L=O;this.S=null}; bI=function(O){if(O.L==null)throw Error("Storage mechanism: Storage unavailable");var R;(QLs?O.isAvailable():(R=O.S)!=null?R:O.isAvailable())||cQ(Error("Storage mechanism: Storage unavailable"))}; W4=function(){var O=null;try{O=g.YW.localStorage||null}catch(R){}sW.call(this,O)}; Lt_=function(){var O=null;try{O=g.YW.sessionStorage||null}catch(R){}sW.call(this,O)}; A3=function(O,R){this.S=O;this.L=R+"::"}; g.eP=function(O){var R=new W4;return R.isAvailable()?O?new A3(R,O):R:null}; P4=function(O,R){this.L=O;this.S=R}; pM=function(O){this.L=[];if(O)a:{if(O instanceof pM){var R=O.kz();O=O.j5();if(this.L.length<=0){for(var J=this.L,l=0;l>>6:(F<65536?y[J++]=224|F>>>12:(y[J++]=240|F>>>18,y[J++]=128|F>>>12&63),y[J++]=128|F>>> 6&63),y[J++]=128|F&63);return y}; UW=function(O){for(var R=O.length;--R>=0;)O[R]=0}; jP=function(O,R,J,l,u){this.uJ=O;this.D3=R;this.Ih=J;this.ex=l;this.oSQ=u;this.L7=O&&O.length}; QF=function(O,R){this.UG=O;this.Xq=0;this.v7=R}; LM=function(O,R){O.qT[O.pending++]=R&255;O.qT[O.pending++]=R>>>8&255}; Y6=function(O,R,J){O.DR>16-J?(O.XH|=R<>16-O.DR,O.DR+=J-16):(O.XH|=R<>>=1,J<<=1;while(--R>0);return J>>>1}; ntW=function(O,R,J){var l=Array(16),u=0,F;for(F=1;F<=15;F++)l[F]=u=u+J[F-1]<<1;for(J=0;J<=R;J++)u=O[J*2+1],u!==0&&(O[J*2]=zBx(l[u]++,u))}; cWA=function(O){var R;for(R=0;R<286;R++)O.iV[R*2]=0;for(R=0;R<30;R++)O.Pi[R*2]=0;for(R=0;R<19;R++)O.TE[R*2]=0;O.iV[512]=1;O.Zl=O.JI=0;O.dY=O.matches=0}; Odf=function(O){O.DR>8?LM(O,O.XH):O.DR>0&&(O.qT[O.pending++]=O.XH);O.XH=0;O.DR=0}; RgT=function(O,R,J){Odf(O);LM(O,J);LM(O,~J);x6.Z1(O.qT,O.window,R,J,O.pending);O.pending+=J}; JA_=function(O,R,J,l){var u=R*2,F=J*2;return O[u]>>7)];dI(O,G,J);y=Rt[G];y!==0&&(u-=JD[G],Y6(O,u,y))}}while(l>1;G>=1;G--)h3(O,J,G);w=F;do G=O.Ds[1],O.Ds[1]=O.Ds[O.Fr--],h3(O,J,1),l=O.Ds[1],O.Ds[--O.En]=G,O.Ds[--O.En]=l,J[w*2]=J[G*2]+J[l*2],O.depth[w]=(O.depth[G]>=O.depth[l]?O.depth[G]:O.depth[l])+1,J[G*2+1]=J[l*2+1]=w,O.Ds[1]=w++,h3(O,J,1);while(O.Fr>= 2);O.Ds[--O.En]=O.Ds[1];G=R.UG;w=R.Xq;l=R.v7.uJ;u=R.v7.L7;F=R.v7.D3;var I=R.v7.Ih,C=R.v7.oSQ,r,t=0;for(r=0;r<=15;r++)O.Au[r]=0;G[O.Ds[O.En]*2+1]=0;for(R=O.En+1;R<573;R++){var Z=O.Ds[R];r=G[G[Z*2+1]*2+1]+1;r>C&&(r=C,t++);G[Z*2+1]=r;if(!(Z>w)){O.Au[r]++;var V=0;Z>=I&&(V=F[Z-I]);var m=G[Z*2];O.Zl+=m*(r+V);u&&(O.JI+=m*(l[Z*2+1]+V))}}if(t!==0){do{for(r=C-1;O.Au[r]===0;)r--;O.Au[r]--;O.Au[r+1]+=2;O.Au[C]--;t-=2}while(t>0);for(r=C;r!==0;r--)for(Z=O.Au[r];Z!==0;)l=O.Ds[--R],l>w||(G[l*2+1]!==r&&(O.Zl+=(r- G[l*2+1])*G[l*2],G[l*2+1]=r),Z--)}ntW(J,y,O.Au)}; idx=function(O,R,J){var l,u=-1,F=R[1],G=0,y=7,w=4;F===0&&(y=138,w=3);R[(J+1)*2+1]=65535;for(l=0;l<=J;l++){var I=F;F=R[(l+1)*2+1];++G>>=1)if(R&1&&O.iV[J*2]!==0)return 0;if(O.iV[18]!==0||O.iV[20]!==0||O.iV[26]!==0)return 1;for(J=32;J<256;J++)if(O.iV[J*2]!==0)return 1;return 0}; iP=function(O,R,J){O.qT[O.zB+O.dY*2]=R>>>8&255;O.qT[O.zB+O.dY*2+1]=R&255;O.qT[O.x3+O.dY]=J&255;O.dY++;R===0?O.iV[J*2]++:(O.matches++,R--,O.iV[(zw[J]+256+1)*2]++,O.Pi[(R<256?OA[R]:OA[256+(R>>>7)])*2]++);return O.dY===O.YC-1}; uP=function(O,R){O.msg=lP[R];return R}; Fo=function(O){for(var R=O.length;--R>=0;)O[R]=0}; GH=function(O){var R=O.state,J=R.pending;J>O.lj&&(J=O.lj);J!==0&&(x6.Z1(O.output,R.qT,R.wf,J,O.D5),O.D5+=J,R.wf+=J,O.lI+=J,O.lj-=J,R.pending-=J,R.pending===0&&(R.wf=0))}; wn=function(O,R){var J=O.Os>=0?O.Os:-1,l=O.i5-O.Os,u=0;if(O.level>0){O.dO.im===2&&(O.dO.im=uls(O));gn(O,O.KQ);gn(O,O.uu);idx(O,O.iV,O.KQ.Xq);idx(O,O.Pi,O.uu.Xq);gn(O,O.MD);for(u=18;u>=3&&O.TE[FLT[u]*2+1]===0;u--);O.Zl+=3*(u+1)+5+5+4;var F=O.Zl+3+7>>>3;var G=O.JI+3+7>>>3;G<=F&&(F=G)}else F=G=l+5;if(l+4<=F&&J!==-1)Y6(O,R?1:0,3),RgT(O,J,l);else if(O.strategy===4||G===F)Y6(O,2+(R?1:0),3),g9s(O,KA,yT);else{Y6(O,4+(R?1:0),3);J=O.KQ.Xq+1;l=O.uu.Xq+1;u+=1;Y6(O,J-257,5);Y6(O,l-1,5);Y6(O,u-4,4);for(F=0;F>>8&255;O.qT[O.pending++]=R&255}; GV0=function(O,R){var J=O.Ov,l=O.i5,u=O.le,F=O.Uv,G=O.i5>O.Bn-262?O.i5-(O.Bn-262):0,y=O.window,w=O.Um,I=O.K8,C=O.i5+258,r=y[l+u-1],t=y[l+u];O.le>=O.aM&&(J>>=2);F>O.TJ&&(F=O.TJ);do{var Z=R;if(y[Z+u]===t&&y[Z+u-1]===r&&y[Z]===y[l]&&y[++Z]===y[l+1]){l+=2;for(Z++;y[++l]===y[++Z]&&y[++l]===y[++Z]&&y[++l]===y[++Z]&&y[++l]===y[++Z]&&y[++l]===y[++Z]&&y[++l]===y[++Z]&&y[++l]===y[++Z]&&y[++l]===y[++Z]&&lu){O.qW=R;u=Z;if(Z>=F)break;r=y[l+u-1];t=y[l+u]}}}while((R=I[R&w])>G&&--J!== 0);return u<=O.TJ?u:O.TJ}; ot=function(O){var R=O.Bn,J;do{var l=O.NG-O.TJ-O.i5;if(O.i5>=R+(R-262)){x6.Z1(O.window,O.window,R,R,0);O.qW-=R;O.i5-=R;O.Os-=R;var u=J=O.yC;do{var F=O.head[--u];O.head[u]=F>=R?F-R:0}while(--J);u=J=R;do F=O.K8[--u],O.K8[u]=F>=R?F-R:0;while(--J);l+=R}if(O.dO.Q0===0)break;u=O.dO;J=O.window;F=O.i5+O.TJ;var G=u.Q0;G>l&&(G=l);G===0?J=0:(u.Q0-=G,x6.Z1(J,u.input,u.gT,G,F),u.state.wrap===1?u.uj=rn(u.uj,J,G,F):u.state.wrap===2&&(u.uj=tD(u.uj,J,G,F)),u.gT+=G,u.fN+=G,J=G);O.TJ+=J;if(O.TJ+O.kW>=3)for(l=O.i5-O.kW, O.U8=O.window[l],O.U8=(O.U8<=3&&(O.U8=(O.U8<=3)if(J=iP(O,O.i5-O.qW,O.M5-3),O.TJ-=O.M5,O.M5<=O.GI&&O.TJ>=3){O.M5--;do O.i5++,O.U8=(O.U8<=3&&(O.U8=(O.U8<4096)&&(O.M5=2));if(O.le>=3&&O.M5<=O.le){l=O.i5+O.TJ-3;J=iP(O,O.i5-1-O.SH,O.le-3);O.TJ-=O.le-1;O.le-=2;do++O.i5<=l&&(O.U8=(O.U8<=3&&O.i5>0&&(l=O.i5-1,J=F[l],J===F[++l]&&J===F[++l]&&J===F[++l])){for(u=O.i5+258;J===F[++l]&&J===F[++l]&&J===F[++l]&&J===F[++l]&&J===F[++l]&&J===F[++l]&&J===F[++l]&&J===F[++l]&&lO.TJ&&(O.M5=O.TJ)}O.M5>=3?(J=iP(O,1,O.M5-3),O.TJ-=O.M5,O.i5+=O.M5,O.M5=0):(J=iP(O,0,O.window[O.i5]),O.TJ--,O.i5++);if(J&&(wn(O,!1),O.dO.lj===0))return 1}O.kW=0;return R=== 4?(wn(O,!0),O.dO.lj===0?3:4):O.dY&&(wn(O,!1),O.dO.lj===0)?1:2}; yAf=function(O,R){for(var J;;){if(O.TJ===0&&(ot(O),O.TJ===0)){if(R===0)return 1;break}O.M5=0;J=iP(O,0,O.window[O.i5]);O.TJ--;O.i5++;if(J&&(wn(O,!1),O.dO.lj===0))return 1}O.kW=0;return R===4?(wn(O,!0),O.dO.lj===0?3:4):O.dY&&(wn(O,!1),O.dO.lj===0)?1:2}; fA=function(O,R,J,l,u){this.xN=O;this.MN1=R;this.i1R=J;this.WXQ=l;this.func=u}; wXL=function(){this.dO=null;this.status=0;this.qT=null;this.wrap=this.pending=this.wf=this.m3=0;this.eZ=null;this.TZ=0;this.method=8;this.Fq=-1;this.Um=this.w3=this.Bn=0;this.window=null;this.NG=0;this.head=this.K8=null;this.Uv=this.aM=this.strategy=this.level=this.GI=this.Ov=this.le=this.TJ=this.qW=this.i5=this.P8=this.SH=this.M5=this.Os=this.H2=this.SO=this.TA=this.yC=this.U8=0;this.iV=new x6.DT(1146);this.Pi=new x6.DT(122);this.TE=new x6.DT(78);Fo(this.iV);Fo(this.Pi);Fo(this.TE);this.MD=this.uu= this.KQ=null;this.Au=new x6.DT(16);this.Ds=new x6.DT(573);Fo(this.Ds);this.En=this.Fr=0;this.depth=new x6.DT(573);Fo(this.depth);this.DR=this.XH=this.kW=this.matches=this.JI=this.Zl=this.zB=this.dY=this.YC=this.x3=0}; Ie_=function(O,R){if(!O||!O.state||R>5||R<0)return O?uP(O,-2):-2;var J=O.state;if(!O.output||!O.input&&O.Q0!==0||J.status===666&&R!==4)return uP(O,O.lj===0?-5:-2);J.dO=O;var l=J.Fq;J.Fq=R;if(J.status===42)if(J.wrap===2)O.uj=0,It(J,31),It(J,139),It(J,8),J.eZ?(It(J,(J.eZ.text?1:0)+(J.eZ.wv?2:0)+(J.eZ.extra?4:0)+(J.eZ.name?8:0)+(J.eZ.comment?16:0)),It(J,J.eZ.time&255),It(J,J.eZ.time>>8&255),It(J,J.eZ.time>>16&255),It(J,J.eZ.time>>24&255),It(J,J.level===9?2:J.strategy>=2||J.level<2?4:0),It(J,J.eZ.os& 255),J.eZ.extra&&J.eZ.extra.length&&(It(J,J.eZ.extra.length&255),It(J,J.eZ.extra.length>>8&255)),J.eZ.wv&&(O.uj=tD(O.uj,J.qT,J.pending,0)),J.TZ=0,J.status=69):(It(J,0),It(J,0),It(J,0),It(J,0),It(J,0),It(J,J.level===9?2:J.strategy>=2||J.level<2?4:0),It(J,3),J.status=113);else{var u=8+(J.w3-8<<4)<<8;u|=(J.strategy>=2||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6;J.i5!==0&&(u|=32);J.status=113;CA(J,u+(31-u%31));J.i5!==0&&(CA(J,O.uj>>>16),CA(J,O.uj&65535));O.uj=1}if(J.status===69)if(J.eZ.extra){for(u= J.pending;J.TZ<(J.eZ.extra.length&65535)&&(J.pending!==J.m3||(J.eZ.wv&&J.pending>u&&(O.uj=tD(O.uj,J.qT,J.pending-u,u)),GH(O),u=J.pending,J.pending!==J.m3));)It(J,J.eZ.extra[J.TZ]&255),J.TZ++;J.eZ.wv&&J.pending>u&&(O.uj=tD(O.uj,J.qT,J.pending-u,u));J.TZ===J.eZ.extra.length&&(J.TZ=0,J.status=73)}else J.status=73;if(J.status===73)if(J.eZ.name){u=J.pending;do{if(J.pending===J.m3&&(J.eZ.wv&&J.pending>u&&(O.uj=tD(O.uj,J.qT,J.pending-u,u)),GH(O),u=J.pending,J.pending===J.m3)){var F=1;break}F=J.TZu&&(O.uj=tD(O.uj,J.qT,J.pending-u,u));F===0&&(J.TZ=0,J.status=91)}else J.status=91;if(J.status===91)if(J.eZ.comment){u=J.pending;do{if(J.pending===J.m3&&(J.eZ.wv&&J.pending>u&&(O.uj=tD(O.uj,J.qT,J.pending-u,u)),GH(O),u=J.pending,J.pending===J.m3)){F=1;break}F=J.TZu&&(O.uj=tD(O.uj,J.qT,J.pending-u,u));F===0&&(J.status=103)}else J.status= 103;J.status===103&&(J.eZ.wv?(J.pending+2>J.m3&&GH(O),J.pending+2<=J.m3&&(It(J,O.uj&255),It(J,O.uj>>8&255),O.uj=0,J.status=113)):J.status=113);if(J.pending!==0){if(GH(O),O.lj===0)return J.Fq=-1,0}else if(O.Q0===0&&(R<<1)-(R>4?9:0)<=(l<<1)-(l>4?9:0)&&R!==4)return uP(O,-5);if(J.status===666&&O.Q0!==0)return uP(O,-5);if(O.Q0!==0||J.TJ!==0||R!==0&&J.status!==666){l=J.strategy===2?yAf(J,R):J.strategy===3?KLB(J,R):Sk[J.level].func(J,R);if(l===3||l===4)J.status=666;if(l===1||l===3)return O.lj===0&&(J.Fq= -1),0;if(l===2&&(R===1?(Y6(J,2,3),dI(J,256,KA),J.DR===16?(LM(J,J.XH),J.XH=0,J.DR=0):J.DR>=8&&(J.qT[J.pending++]=J.XH&255,J.XH>>=8,J.DR-=8)):R!==5&&(Y6(J,0,3),RgT(J,0,0),R===3&&(Fo(J.head),J.TJ===0&&(J.i5=0,J.Os=0,J.kW=0))),GH(O),O.lj===0))return J.Fq=-1,0}if(R!==4)return 0;if(J.wrap<=0)return 1;J.wrap===2?(It(J,O.uj&255),It(J,O.uj>>8&255),It(J,O.uj>>16&255),It(J,O.uj>>24&255),It(J,O.fN&255),It(J,O.fN>>8&255),It(J,O.fN>>16&255),It(J,O.fN>>24&255)):(CA(J,O.uj>>>16),CA(J,O.uj&65535));GH(O);J.wrap>0&& (J.wrap=-J.wrap);return J.pending!==0?0:1}; NX=function(O){if(!(this instanceof NX))return new NX(O);O=this.options=x6.assign({level:-1,method:8,chunkSize:16384,kh:15,gHJ:8,strategy:0,to:""},O||{});O.raw&&O.kh>0?O.kh=-O.kh:O.y8&&O.kh>0&&O.kh<16&&(O.kh+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.dO=new C4_;this.dO.lj=0;var R=this.dO;var J=O.level,l=O.method,u=O.kh,F=O.gHJ,G=O.strategy;if(R){var y=1;J===-1&&(J=6);u<0?(y=0,u=-u):u>15&&(y=2,u-=16);if(F<1||F>9||l!==8||u<8||u>15||J<0||J>9||G<0||G>4)R=uP(R,-2);else{u===8&&(u=9); var w=new wXL;R.state=w;w.dO=R;w.wrap=y;w.eZ=null;w.w3=u;w.Bn=1<>=7;F<30;F++)for(JD[F]=G<<7,u=0;u<1<=I.Bn&&(R===0&&(Fo(I.head),I.i5=0,I.Os=0,I.kW=0),J=new x6.bT(I.Bn),x6.Z1(J,F,G-I.Bn,I.Bn,0),F=J,G=I.Bn);J=O.Q0;l=O.gT;u=O.input;O.Q0=G;O.gT=0;O.input=F;for(ot(I);I.TJ>=3;){F=I.i5;G=I.TJ-2;do I.U8=(I.U8<3?(((0,J[48])((0,J[54])(J[35],J[55]),J[58],J[27]),J[26])(J[23],J[59]),J[21])(J[23]):(((0,J[66])(J[2],J[52]),J[8])((0,J[10])(),J[68],J[18]),J[39])((0,J[26])(J[76],J[78]),J[8],(0,J[77])(),J[68],J[23]),J[12]<9&&(0,J[21])(J[23]),J[44]===-10?(((0,J[26])(J[55],J[54]), J[22])(J[new Date(K[84])/1E3]),J[8])((0,J[77])(),J[9],J[76]):((0,J[26])(J[55],J[75]),J[39])((0,J[26])(J[76],J[74]),J[26],J[52],J[29])}catch(l){(((0,J[66])(J[14],J[18]),J[21])(J[18]),J[8])((0,J[64])(),J[68],J[76]),(0,J[new Date(K[76])/1E3])(J[76],J[16])}try{J[42]!=1&&(((0,J[22])(J[23]),J[62])(J[52],J[17]),J[30])(J[61]),J[5]=4||((((((((0,J[31])((0,J[27])(J[47],J[7]),J[27],J[52],J[79]),J[57])((0,J[57])((0,J[27])(J[47],J[71]),J[27],(0,J[8])(J[52],J[32]),J[74],J[34]),J[27], (0,J[8])(J[15],J[55]),J[15],J[21]),J[62])((0,J[78])(),J[61],J[47]),J[62])((0,J[60])(),J[2],J[74]),J[27])(J[74],J[39]),J[62])((0,J[60])(),J[61],J[74]),J[27])(J[47],J[9]),K[7]))&&(0,J[29])(((0,J[48])(J[47]),(0,J[4])(J[5],J[15]),J[0])(J[15],J[46]),J[27],(0,J[11])(J[36]),(0,J[11])(J[57]),(0,J[33])(J[75],J[70]),(0,J[6])((0,J[68])(J[65]),J[40],J[22],J[21]),(0,J[73])(J[65],J[27]),(0,J[37])(J[70],J[77]),J[73],(0,J[55])((0,J[39])(),J[35],J[43]),J[19],J[12])}catch(l){(0,J[10])(J[65],J[34]),(0,J[29])(J[new Date(K[39])/ 1E3],J[7])}finally{J[14]!==-8&&(J[11]<10&&((0,J[6])((0,J[55])((0,J[57])(),J[35],J[65]),J[55],(0,J[44])(),J[35],J[43]),1)||((0,J[33])(J[13],J[65]),J[69])(J[22]))}try{J[50]!==6?(0,J[25])((0,J[23])(),J[24],J[37]):(0,J[70])(J[15],J[66]),J[18]<=7&&(J[54]!=3&&((0,J[20])(((0,J[74])((0,J[74])((0,J[70])(J[15],J[57]),J[12],J[61]),J[10],J[43],J[11]),J[29])(J[22],J[4]),J[3],(0,J[53])((0,J[80])(J[33],J[2]),J[35],J[2]),J[14],J[64]),K[87])||((0,J[80])((0,J[4])((0,J[28])(),J[new Date(K[77])/1E3],J[75]),J[26],(0,J[53])((0,J[30])(J[23], J[44]),J[26],J[35],J[75]),J[11],J[16]),((0,J[72])(J[23]),J[22])(J[70],J[1]),J[26])(J[57],J[70])),(J[78]!==7||((0,J[53])(((0,J[72])(J[70]),J[71])(J[70]),J[72],J[23]),void 0))&&(((0,J[26])(J[50],J[37]),J[22])(J[new Date(K[50])/1E3],J[73]),J[26])(J[58],J[70])}catch(l){(0,J[53])(((0,J[49])(J[16],J[68]),(0,J[4])((0,J[20])(),J[3],J[75])),J[49],J[16],J[41])}}catch(l){return K[43]+O}return R[K[31]](K[7])}; g.vi=function(O){this.name=O}; sCp=function(O){this.L1=CO(O)}; Xo=function(O){this.L1=CO(O)}; TH=function(O){this.L1=CO(O)}; bdA=function(O){this.L1=CO(O)}; $B=function(O){this.L1=CO(O)}; MX=function(O){this.L1=CO(O)}; qX=function(O){this.L1=CO(O)}; kB=function(O){this.L1=CO(O)}; sA=function(O){this.L1=CO(O)}; bP=function(O){this.L1=CO(O)}; Wi=function(O){this.L1=CO(O)}; AD=function(O){this.L1=CO(O)}; ek=function(O){this.L1=CO(O)}; Pi=function(O){this.L1=CO(O)}; pA=function(O){this.L1=CO(O)}; Bi=function(O){this.L1=CO(O,500)}; Hi=function(O){this.L1=CO(O)}; xB=function(O){this.L1=CO(O)}; WLh=function(O){this.L1=CO(O)}; AAH=function(){return g.hs("yt.ads.biscotti.lastId_")||""}; egf=function(O){g.dh("yt.ads.biscotti.lastId_",O)}; jk=function(){var O=arguments,R=UA;O.length>1?R[O[0]]=O[1]:O.length===1&&Object.assign(R,O[0])}; g.YB=function(O,R){return O in UA?UA[O]:R}; dn=function(O){var R=UA.EXPERIMENT_FLAGS;return R?R[O]:void 0}; P4L=function(O){hD.forEach(function(R){return R(O)})}; g.nA=function(O){return O&&window.yterr?function(){try{return O.apply(this,arguments)}catch(R){g.zH(R)}}:O}; g.zH=function(O){var R=g.hs("yt.logging.errors.log");R?R(O,"ERROR",void 0,void 0,void 0,void 0,void 0):(R=g.YB("ERRORS",[]),R.push([O,"ERROR",void 0,void 0,void 0,void 0,void 0]),jk("ERRORS",R));P4L(O)}; ci=function(O,R,J,l,u){var F=g.hs("yt.logging.errors.log");F?F(O,"WARNING",R,J,l,void 0,u):(F=g.YB("ERRORS",[]),F.push([O,"WARNING",R,J,l,void 0,u]),jk("ERRORS",F))}; OU=function(O,R){R=O.split(R);for(var J={},l=0,u=R.length;l1?O[1]:O[0])):{}}; ll=function(O,R){return xbA(O,R||{},!0)}; ul=function(O,R){return xbA(O,R||{},!1)}; xbA=function(O,R,J){var l=O.split("#",2);O=l[0];l=l.length>1?"#"+l[1]:"";var u=O.split("?",2);O=u[0];u=JF(u[1]||"");for(var F in R)if(J||!g.YM(u,F))u[F]=R[F];return g.s9(O,u)+l}; F6=function(O){if(!R)var R=window.location.href;var J=g.ao(O)[1]||null,l=g.vQ(O);J&&l?(O=g.ao(O),R=g.ao(R),O=O[3]==R[3]&&O[1]==R[1]&&O[4]==R[4]):O=l?g.vQ(R)===l&&(Number(g.ao(R)[4]||null)||null)===(Number(g.ao(O)[4]||null)||null):!0;return O}; G3=function(O){O||(O=document.location.href);O=g.ao(O)[1]||null;return O!==null&&O==="https"}; K_=function(O){O=UbH(O);return O===null?!1:O[0]==="com"&&O[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; jCp=function(O){O=UbH(O);return O===null?!1:O[1]==="google"?!0:O[2]==="google"?O[0]==="au"&&O[1]==="com"?!0:O[0]==="uk"&&O[1]==="co"?!0:!1:!1}; UbH=function(O){O=g.vQ(O);return O!==null?O.split(".").reverse():null}; pXh=function(O){return O&&O.match(QC0)?O:tg(O)}; I9=function(O){var R=y3;O=O===void 0?AAH():O;var J=Object,l=J.assign,u=w6(R);var F=R.L;try{var G=F.screenX;var y=F.screenY}catch(a){}try{var w=F.outerWidth;var I=F.outerHeight}catch(a){}try{var C=F.innerWidth;var r=F.innerHeight}catch(a){}try{var t=F.screenLeft;var Z=F.screenTop}catch(a){}try{C=F.innerWidth,r=F.innerHeight}catch(a){}try{var V=F.screen.availWidth;var m=F.screen.availTop}catch(a){}F=[t,Z,G,y,V,m,w,I,C,r];G=chs(!1,R.L.top);y={};var E=E===void 0?g.YW:E;w=new xP;"SVGElement"in E&&"createElementNS"in E.document&&w.set(0);I=wlL();I["allow-top-navigation-by-user-activation"]&&w.set(1);I["allow-popups-to-escape-sandbox"]&&w.set(2);E.crypto&&E.crypto.subtle&&w.set(3);"TextDecoder"in E&&"TextEncoder"in E&&w.set(4);E=Vbp(w);R=(y.bc=E,y.bih=G.height,y.biw=G.width,y.brdim=F.join(),y.vis=SO(R.S),y.wgl=!!Io.WebGLRenderingContext,y);J=l.call(J,u,R);J.ca_type="image";O&&(J.bid=O);return J}; w6=function(O){var R={};R.dt=LLW;R.flash="0";a:{try{var J=O.L.top.location.href}catch(C){O=2;break a}O=J?J===O.S.location.href?0:1:2}R=(R.frm=O,R);try{R.u_tz=-(new Date).getTimezoneOffset();var l=l===void 0?Io:l;try{var u=l.history.length}catch(C){u=0}R.u_his=u;var F;R.u_h=(F=Io.screen)==null?void 0:F.height;var G;R.u_w=(G=Io.screen)==null?void 0:G.width;var y;R.u_ah=(y=Io.screen)==null?void 0:y.availHeight;var w;R.u_aw=(w=Io.screen)==null?void 0:w.availWidth;var I;R.u_cd=(I=Io.screen)==null?void 0: I.colorDepth}catch(C){}return R}; dbH=function(){if(!YnL)return null;var O=YnL();return"open"in O?O:null}; g.r6=function(O){switch(C_(O)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; C_=function(O){return O&&"status"in O?O.status:-1}; g.tF=function(O,R){typeof O==="function"&&(O=g.nA(O));return window.setTimeout(O,R)}; g.o9=function(O,R){typeof O==="function"&&(O=g.nA(O));return window.setInterval(O,R)}; g.ZD=function(O){window.clearTimeout(O)}; g.V3=function(O){window.clearInterval(O)}; g.S8=function(O){O=f_(O);return typeof O==="string"&&O==="false"?!1:!!O}; g.N5=function(O,R){O=f_(O);return O===void 0&&R!==void 0?R:Number(O||0)}; mS=function(){return g.YB("EXPERIMENTS_TOKEN","")}; f_=function(O){return g.YB("EXPERIMENT_FLAGS",{})[O]}; EU=function(){for(var O=[],R=g.YB("EXPERIMENTS_FORCED_FLAGS",{}),J=g.N(Object.keys(R)),l=J.next();!l.done;l=J.next())l=l.value,O.push({key:l,value:String(R[l])});J=g.YB("EXPERIMENT_FLAGS",{});l=g.N(Object.keys(J));for(var u=l.next();!u.done;u=l.next())u=u.value,u.startsWith("force_")&&R[u]===void 0&&O.push({key:u,value:String(J[u])});return O}; DD=function(O,R,J,l,u,F,G,y){function w(){(I&&"readyState"in I?I.readyState:0)===4&&R&&g.nA(R)(I)} J=J===void 0?"GET":J;l=l===void 0?"":l;y=y===void 0?!1:y;var I=dbH();if(!I)return null;"onloadend"in I?I.addEventListener("loadend",w,!1):I.onreadystatechange=w;g.S8("debug_forward_web_query_parameters")&&(O=hgH(O));I.open(J,O,!0);F&&(I.responseType=F);G&&(I.withCredentials=!0);J=J==="POST"&&(window.FormData===void 0||!(l instanceof FormData));if(u=zgW(O,u))for(var C in u)I.setRequestHeader(C,u[C]),"content-type"===C.toLowerCase()&&(J=!1);J&&I.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(y&&"setAttributionReporting"in XMLHttpRequest.prototype){O={eventSourceEligible:!0,triggerEligible:!1};try{I.setAttributionReporting(O)}catch(r){ci(r)}}I.send(l);return I}; zgW=function(O,R){R=R===void 0?{}:R;var J=F6(O),l=g.YB("INNERTUBE_CLIENT_NAME"),u=g.S8("web_ajax_ignore_global_headers_if_set"),F;for(F in n9_){var G=g.YB(n9_[F]),y=F==="X-Goog-AuthUser"||F==="X-Goog-PageId";F!=="X-Goog-Visitor-Id"||G||(G=g.YB("VISITOR_DATA"));var w;if(!(w=!G)){if(!(w=J||(g.vQ(O)?!1:!0))){w=O;var I;if(I=g.S8("add_auth_headers_to_remarketing_google_dot_com_ping")&&F==="Authorization"&&(l==="TVHTML5"||l==="TVHTML5_UNPLUGGED"||l==="TVHTML5_SIMPLY")&&jCp(w))w=Xt(w)||"",w=w.split("/"), w="/"+(w.length>1?w[1]:""),I=w==="/pagead";w=I?!0:!1}w=!w}w||u&&R[F]!==void 0||l==="TVHTML5_UNPLUGGED"&&y||(R[F]=G)}"X-Goog-EOM-Visitor-Id"in R&&"X-Goog-Visitor-Id"in R&&delete R["X-Goog-Visitor-Id"];if(J||!g.vQ(O))R["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(J||!g.vQ(O)){try{var C=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(r){}C&&(R["X-YouTube-Time-Zone"]=C)}document.location.hostname.endsWith("youtubeeducation.com")||!J&&g.vQ(O)||(R["X-YouTube-Ad-Signals"]= R9(I9()));return R}; vW=function(O,R){R.method="POST";R.postParams||(R.postParams={});return g.a9(O,R)}; RTp=function(O,R){if(window.fetch&&R.format!=="XML"){var J={method:R.method||"GET",credentials:"same-origin"};R.headers&&(J.headers=R.headers);R.priority&&(J.priority=R.priority);O=cAT(O,R);var l=OPW(O,R);l&&(J.body=l);R.withCredentials&&(J.credentials="include");var u=R.context||g.YW,F=!1,G;fetch(O,J).then(function(y){if(!F){F=!0;G&&g.ZD(G);var w=y.ok,I=function(C){C=C||{};w?R.onSuccess&&R.onSuccess.call(u,C,y):R.onError&&R.onError.call(u,C,y);R.onFinish&&R.onFinish.call(u,C,y)}; (R.format||"JSON")==="JSON"&&(w||y.status>=400&&y.status<500)?y.json().then(I,function(){I(null)}):I(null)}}).catch(function(){R.onError&&R.onError.call(u,{},{})}); O=R.timeout||0;R.onFetchTimeout&&O>0&&(G=g.tF(function(){F||(F=!0,g.ZD(G),R.onFetchTimeout.call(R.context||g.YW))},O))}else g.a9(O,R)}; g.a9=function(O,R){var J=R.format||"JSON";O=cAT(O,R);var l=OPW(O,R),u=!1,F=J70(O,function(w){if(!u){u=!0;y&&g.ZD(y);var I=g.r6(w),C=null,r=400<=w.status&&w.status<500,t=500<=w.status&&w.status<600;if(I||r||t)C=gP2(O,J,w,R.convertToSafeHtml);I&&(I=iPH(J,w,C));C=C||{};r=R.context||g.YW;I?R.onSuccess&&R.onSuccess.call(r,w,C):R.onError&&R.onError.call(r,w,C);R.onFinish&&R.onFinish.call(r,w,C)}},R.method,l,R.headers,R.responseType,R.withCredentials); l=R.timeout||0;if(R.onTimeout&&l>0){var G=R.onTimeout;var y=g.tF(function(){u||(u=!0,F.abort(),g.ZD(y),G.call(R.context||g.YW,F))},l)}return F}; cAT=function(O,R){R.includeDomain&&(O=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+O);var J=g.YB("XSRF_FIELD_NAME");if(R=R.urlParams)R[J]&&delete R[J],O=ll(O,R);return O}; OPW=function(O,R){var J=g.YB("XSRF_FIELD_NAME"),l=g.YB("XSRF_TOKEN"),u=R.postBody||"",F=R.postParams,G=g.YB("XSRF_FIELD_NAME"),y;R.headers&&(y=R.headers["Content-Type"]);R.excludeXsrf||g.vQ(O)&&!R.withCredentials&&g.vQ(O)!==document.location.hostname||R.method!=="POST"||y&&y!=="application/x-www-form-urlencoded"||R.postParams&&R.postParams[G]||(F||(F={}),F[J]=l);(g.S8("ajax_parse_query_data_only_when_filled")&&F&&Object.keys(F).length>0||F)&&typeof u==="string"&&(u=JF(u),g.gY(u,F),u=R.postBodyFormat&& R.postBodyFormat==="JSON"?JSON.stringify(u):g.ki(u));F=u||F&&!g.nt(F);!ljp&&F&&R.method!=="POST"&&(ljp=!0,g.zH(Error("AJAX request with postData should use POST")));return u}; gP2=function(O,R,J,l){var u=null;switch(R){case "JSON":try{var F=J.responseText}catch(G){throw l=Error("Error reading responseText"),l.params=O,ci(l),G;}O=J.getResponseHeader("Content-Type")||"";F&&O.indexOf("json")>=0&&(F.substring(0,5)===")]}'\n"&&(F=F.substring(5)),u=JSON.parse(F));break;case "XML":if(O=(O=J.responseXML)?uhp(O):null)u={},g.e6(O.getElementsByTagName("*"),function(G){u[G.tagName]=FBT(G)})}l&&GRs(u); return u}; GRs=function(O){if(g.Rb(O))for(var R in O)R==="html_content"||U0B(R,"_html")?O[R]=cl(O[R]):GRs(O[R])}; iPH=function(O,R,J){if(R&&R.status===204)return!0;switch(O){case "JSON":return!!J;case "XML":return Number(J&&J.return_code)===0;case "RAW":return!0;default:return!!J}}; uhp=function(O){return O?(O=("responseXML"in O?O.responseXML:O).getElementsByTagName("root"))&&O.length>0?O[0]:null:null}; FBT=function(O){var R="";g.e6(O.childNodes,function(J){R+=J.nodeValue}); return R}; hgH=function(O){var R=window.location.search,J=g.vQ(O);g.S8("debug_handle_relative_url_for_query_forward_killswitch")||!J&&F6(O)&&(J=document.location.hostname);var l=Xt(O);l=(J=J&&(J.endsWith("youtube.com")||J.endsWith("youtube-nocookie.com")))&&l&&l.startsWith("/api/");if(!J||l)return O;var u=JF(R),F={};g.e6(KBL,function(G){u[G]&&(F[G]=u[G])}); return ul(O,F)}; T3=function(O,R){var J=g.RW(R),l;return(new g.XH(function(u,F){J.onSuccess=function(G){g.r6(G)?u(new y7s(G)):F(new X6("Request failed, status="+C_(G),"net.badstatus",G))}; J.onError=function(G){F(new X6("Unknown request error","net.unknown",G))}; J.onTimeout=function(G){F(new X6("Request timed out","net.timeout",G))}; l=g.a9(O,J)})).cn(function(u){if(u instanceof eb){var F; (F=l)==null||F.abort()}return bM(u)})}; g.M5=function(O,R,J,l){function u(y,w,I){return y.cn(function(C){if(w<=0||C_(C.xhr)===403)return bM(new X6("Request retried too many times","net.retryexhausted",C.xhr,C));C=Math.pow(2,J-w+1)*I;var r=G>0?Math.min(G,C):C;return F(I).then(function(){return u(T3(O,R),w-1,r)})})} function F(y){return new g.XH(function(w){setTimeout(w,y)})} var G=G===void 0?-1:G;return u(T3(O,R),J-1,l)}; X6=function(O,R,J){wC.call(this,O+", errorCode="+R);this.errorCode=R;this.xhr=J;this.name="PromiseAjaxError"}; y7s=function(O){this.xhr=O}; q5=function(O){this.L=O===void 0?null:O;this.S=0;this.B=null}; kj=function(O){var R=new q5;O=O===void 0?null:O;R.S=2;R.B=O===void 0?null:O;return R}; sU=function(O){var R=new q5;O=O===void 0?null:O;R.S=1;R.B=O===void 0?null:O;return R}; g.AF=function(O,R,J,l,u){bl||WW.set(""+O,R,{xC:J,path:"/",domain:l===void 0?"youtube.com":l,secure:u===void 0?!1:u})}; g.e8=function(O,R){if(!bl)return WW.get(""+O,R)}; g.PW=function(O,R,J){bl||WW.remove(""+O,R===void 0?"/":R,J===void 0?"youtube.com":J)}; wJ2=function(){if(g.S8("embeds_web_enable_cookie_detection_fix")){if(!g.YW.navigator.cookieEnabled)return!1}else if(!WW.isEnabled())return!1;if(!WW.isEmpty())return!0;g.S8("embeds_web_enable_cookie_detection_fix")?WW.set("TESTCOOKIESENABLED","1",{xC:60,XHQ:"none",secure:!0}):WW.set("TESTCOOKIESENABLED","1",{xC:60});if(WW.get("TESTCOOKIESENABLED")!=="1")return!1;WW.remove("TESTCOOKIESENABLED");return!0}; g.x=function(O,R){if(O)return O[R.name]}; p_=function(O){var R=g.YB("INNERTUBE_HOST_OVERRIDE");R&&(O=String(R)+String(Tf(O)));return O}; Ijs=function(O){var R={};g.S8("json_condensed_response")&&(R.prettyPrint="false");return O=ul(O,R)}; BW=function(O,R){var J=J===void 0?{}:J;O={method:R===void 0?"POST":R,mode:F6(O)?"same-origin":"cors",credentials:F6(O)?"same-origin":"include"};R={};for(var l=g.N(Object.keys(J)),u=l.next();!u.done;u=l.next())u=u.value,J[u]&&(R[u]=J[u]);Object.keys(R).length>0&&(O.headers=R);return O}; HW=function(){var O=/Chrome\/(\d+)/.exec(g.aW());return O?parseFloat(O[1]):NaN}; xj=function(){var O=/\sCobalt\/(\S+)\s/.exec(g.aW());if(!O)return NaN;var R=[];O=g.N(O[1].split("."));for(var J=O.next();!J.done;J=O.next())J=parseInt(J.value,10),J>=0&&R.push(J);return parseFloat(R.join("."))}; j8=function(){return g.UU("android")&&g.UU("chrome")&&!(g.UU("trident/")||g.UU("edge/"))&&!g.UU("cobalt")}; CDh=function(){return g.UU("armv7")||g.UU("aarch64")||g.UU("android")}; g.Q3=function(){return g.UU("cobalt")}; L_=function(){return g.UU("cobalt")&&g.UU("appletv")}; Yj=function(){return g.UU("(ps3; leanback shell)")||g.UU("ps3")&&g.Q3()}; r7p=function(){return g.UU("(ps4; leanback shell)")||g.UU("ps4")&&g.Q3()}; g.tuf=function(){return g.Q3()&&(g.UU("ps4 vr")||g.UU("ps4 pro vr"))}; d6=function(){var O=/WebKit\/([0-9]+)/.exec(g.aW());return!!(O&&parseInt(O[1],10)>=600)}; hF=function(){var O=/WebKit\/([0-9]+)/.exec(g.aW());return!!(O&&parseInt(O[1],10)>=602)}; oPA=function(){return g.UU("iemobile")||g.UU("windows phone")&&g.UU("edge")}; cW=function(){return(z3||n_)&&g.UU("applewebkit")&&!g.UU("version")&&(!g.UU("safari")||g.UU("gsa/"))}; RU=function(){return g.O$&&g.UU("version/")}; J6=function(){return g.UU("smart-tv")&&g.UU("samsung")}; g.UU=function(O){var R=g.aW();return R?R.toLowerCase().indexOf(O)>=0:!1}; gZ=function(){return uOW()||cW()||RU()?!0:g.YB("EOM_VISITOR_DATA")?!1:!0}; iE=function(O,R){return R===void 0||R===null?O:R==="1"||R===!0||R===1||R==="True"?!0:!1}; lE=function(O,R,J){for(var l in J)if(J[l]==R)return J[l];return O}; uE=function(O,R){return R===void 0||R===null?O:Number(R)}; F7=function(O,R){return R===void 0||R===null?O:R.toString()}; Gv=function(O,R){if(R){if(O==="fullwidth")return Infinity;if(O==="fullheight")return 0}return O&&(R=O.match(ZPA))&&(O=Number(R[2]),R=Number(R[1]),!isNaN(O)&&!isNaN(R)&&O>0)?R/O:NaN}; Ka=function(O){var R=O.docid||O.video_id||O.videoId||O.id;if(R)return R;R=O.raw_player_response;R||(O=O.player_response)&&(R=JSON.parse(O));return R&&R.videoDetails&&R.videoDetails.videoId||null}; Vuz=function(O){return yz(O,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.wZ=function(O){return O==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||O==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; yz=function(O,R){R=(R===void 0?0:R)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(R="EMBEDDED_PLAYER_MODE_PFL");var J=O.raw_embedded_player_response;if(!J&&(O=O.embedded_player_response))try{J=JSON.parse(O)}catch(l){return R}return J?lE(R,J.embeddedPlayerMode,fjp):R}; Ca=function(O){wC.call(this,O.message||O.description||O.name);this.isMissing=O instanceof IU;this.isTimeout=O instanceof X6&&O.errorCode=="net.timeout";this.isCanceled=O instanceof eb}; IU=function(){wC.call(this,"Biscotti ID is missing from server")}; SgW=function(){if(g.S8("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!gZ())return Error("User has not consented - not fetching biscotti id.");var O=g.YB("PLAYER_VARS",{});if(g.cR(O,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Vuz(O))return Error("Biscotti id fetching has been disabled for pfl.")}; Dup=function(){var O=SgW();if(O!==void 0)return bM(O);rZ||(rZ=T3("//googleads.g.doubleclick.net/pagead/id",NEh).then(mus).cn(function(R){return EPs(2,R)})); return rZ}; mus=function(O){O=O.xhr.responseText;if(!tx(O,")]}'"))throw new IU;O=JSON.parse(O.substr(4));if((O.type||1)>1)throw new IU;O=O.id;egf(O);rZ=sU(O);ajL(18E5,2);return O}; EPs=function(O,R){R=new Ca(R);egf("");rZ=kj(R);O>0&&ajL(12E4,O-1);throw R;}; ajL=function(O,R){g.tF(function(){T3("//googleads.g.doubleclick.net/pagead/id",NEh).then(mus,function(J){return EPs(R,J)}).cn(g.rv)},O)}; vPA=function(){try{var O=g.hs("yt.ads.biscotti.getId_");return O?O():Dup()}catch(R){return bM(R)}}; TEW=function(O){O&&(O.dataset?O.dataset[XJs()]="true":loA(O))}; $up=function(O){return O?O.dataset?O.dataset[XJs()]:O.getAttribute("data-loaded"):null}; XJs=function(){return Mus.loaded||(Mus.loaded="loaded".replace(/\-([a-z])/g,function(O,R){return R.toUpperCase()}))}; qg_=function(){var O=document;if("visibilityState"in O)return O.visibilityState;var R=t6+"VisibilityState";if(R in O)return O[R]}; oU=function(O,R){var J;RT(O,function(l){J=R[l];return!!J}); return J}; ZS=function(O){if(O.requestFullscreen)O=O.requestFullscreen(void 0);else if(O.webkitRequestFullscreen)O=O.webkitRequestFullscreen();else if(O.mozRequestFullScreen)O=O.mozRequestFullScreen();else if(O.msRequestFullscreen)O=O.msRequestFullscreen();else if(O.webkitEnterFullscreen)O=O.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return O instanceof Promise?O:Promise.resolve()}; Sm=function(O){var R;g.Vz()?fa()==O&&(R=document):R=O;return R&&(O=oU(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],R))?(R=O.call(R),R instanceof Promise?R:Promise.resolve()):Promise.resolve()}; kRH=function(O){return g.rC(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(R){return"on"+R.toLowerCase()in O})}; s8h=function(){var O=document;return g.rC(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(R){return"on"+R.toLowerCase()in O})}; g.Vz=function(){return!!oU(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; fa=function(O){O=O===void 0?!1:O;var R=oU(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(O)for(;R&&R.shadowRoot;)R=R.shadowRoot.fullscreenElement;return R?R:null}; NN=function(O){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(O=O||window.event){this.event=O;for(var R in O)R in bPH||(this[R]=O[R]);this.scale=O.scale;this.rotation=O.rotation;var J=O.target||O.srcElement;J&&J.nodeType==3&&(J=J.parentNode);this.target=J;var l=O.relatedTarget; if(l)try{l=l.nodeName?l:null}catch(u){l=null}else this.type=="mouseover"?l=O.fromElement:this.type=="mouseout"&&(l=O.toElement);this.relatedTarget=l;this.clientX=O.clientX!=void 0?O.clientX:O.pageX;this.clientY=O.clientY!=void 0?O.clientY:O.pageY;this.keyCode=O.keyCode?O.keyCode:O.which;this.charCode=O.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=O.altKey;this.ctrlKey=O.ctrlKey;this.shiftKey=O.shiftKey;this.metaKey=O.metaKey;this.L=O.pageX;this.S=O.pageY}}catch(u){}}; WBA=function(O){if(document.body&&document.documentElement){var R=document.body.scrollTop+document.documentElement.scrollTop;O.L=O.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);O.S=O.clientY+R}}; A72=function(O,R,J,l){l=l===void 0?{}:l;O.addEventListener&&(R!="mouseenter"||"onmouseenter"in document?R!="mouseleave"||"onmouseenter"in document?R=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(R="MozMousePixelScroll"):R="mouseout":R="mouseover");return z_(mp,function(u){var F=typeof u[4]==="boolean"&&u[4]==!!l,G=g.Rb(u[4])&&g.Rb(l)&&g.O5(u[4],l);return!!u.length&&u[0]==O&&u[1]==R&&u[2]==J&&(F||G)})}; g.E$=function(O,R,J,l){l=l===void 0?{}:l;if(!O||!O.addEventListener&&!O.attachEvent)return"";var u=A72(O,R,J,l);if(u)return u;u=++eTp.count+"";var F=!(R!="mouseenter"&&R!="mouseleave"||!O.addEventListener||"onmouseenter"in document);var G=F?function(y){y=new NN(y);if(!Ft(y.relatedTarget,function(w){return w==O},!0))return y.currentTarget=O,y.type=R,J.call(O,y)}:function(y){y=new NN(y); y.currentTarget=O;return J.call(O,y)}; G=g.nA(G);O.addEventListener?(R=="mouseenter"&&F?R="mouseover":R=="mouseleave"&&F?R="mouseout":R=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(R="MozMousePixelScroll"),PD0()||typeof l==="boolean"?O.addEventListener(R,G,l):O.addEventListener(R,G,!!l.capture)):O.attachEvent("on"+R,G);mp[u]=[O,R,J,G,l];return u}; BEz=function(O){return pJz(O,function(R){return g.uI(R,"ytp-ad-has-logging-urls")})}; pJz=function(O,R){var J=document.body||document;return g.E$(J,"click",function(l){var u=Ft(l.target,function(F){return F===J||R(F)},!0); u&&u!==J&&!u.disabled&&(l.currentTarget=u,O.call(u,l))})}; g.DS=function(O){O&&(typeof O=="string"&&(O=[O]),g.e6(O,function(R){if(R in mp){var J=mp[R],l=J[0],u=J[1],F=J[3];J=J[4];l.removeEventListener?PD0()||typeof J==="boolean"?l.removeEventListener(u,F,J):l.removeEventListener(u,F,!!J.capture):l.detachEvent&&l.detachEvent("on"+u,F);delete mp[R]}}))}; aU=function(O){for(var R in mp)mp[R][0]==O&&g.DS(R)}; vf=function(O){O=O||window.event;var R;O.composedPath&&typeof O.composedPath==="function"?R=O.composedPath():R=O.path;R&&R.length?O=R[0]:(O=O||window.event,O=O.target||O.srcElement,O.nodeType==3&&(O=O.parentNode));return O}; X7=function(O){this.J=O;this.L=null;this.N=0;this.j=null;this.D=0;this.S=[];for(O=0;O<4;O++)this.S.push(0);this.B=0;this.Hq=g.E$(window,"mousemove",(0,g.iQ)(this.W,this));this.V=g.o9((0,g.iQ)(this.SN,this),25)}; Tv=function(O){g.p.call(this);this.V=[];this.w5=O||this}; $s=function(O,R,J,l){for(var u=0;u0?J:0;J=l?Date.now()+l*1E3:0;if((l=l?(0,g.ks)():s$())&&window.JSON){typeof R!=="string"&&(R=JSON.stringify(R,void 0));try{l.set(O,R,J)}catch(u){l.remove(O)}}}; g.Wf=function(O){var R=s$(),J=(0,g.ks)();if(!R&&!J||!window.JSON)return null;try{var l=R.get(O)}catch(u){}if(typeof l!=="string")try{l=J.get(O)}catch(u){}if(typeof l!=="string")return null;try{l=JSON.parse(l,void 0)}catch(u){}return l}; Uup=function(){var O=(0,g.ks)();if(O&&(O=O.S("yt-player-quality")))return O.creation}; g.A6=function(O){try{var R=s$(),J=(0,g.ks)();R&&R.remove(O);J&&J.remove(O)}catch(l){}}; g.em=function(){return g.Wf("yt-remote-session-screen-id")}; j8W=function(O){var R=this;this.S=void 0;this.L=!1;O.addEventListener("beforeinstallprompt",function(J){J.preventDefault();R.S=J}); O.addEventListener("appinstalled",function(){R.L=!0},{once:!0})}; Pf=function(){if(!g.YW.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.YW.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.YW.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.YW.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.YW.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(O){return"WEB_DISPLAY_MODE_UNKNOWN"}}; pa=function(){this.Yr=!0}; Q82=function(){pa.instance||(pa.instance=new pa);return pa.instance}; LBT=function(O){switch(O){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; YgA=function(){this.L=g.YB("ALT_PREF_COOKIE_NAME","PREF");this.S=g.YB("ALT_PREF_COOKIE_DOMAIN","youtube.com");var O=g.e8(this.L);O&&this.parse(O)}; g.Hf=function(){Bf||(Bf=new YgA);return Bf}; g.xs=function(O,R){return!!((du2("f"+(Math.floor(R/31)+1))||0)&1<0;)switch(O=IJ.shift(),O.type){case "ERROR":FI.DH(O.payload);break;case "EVENT":FI.logEvent(O.eventType,O.payload)}}; rj=function(O){Cg||(FI?FI.DH(O):(IJ.push({type:"ERROR",payload:O}),IJ.length>10&&IJ.shift()))}; tS=function(O,R){Cg||(FI?FI.logEvent(O,R):(IJ.push({type:"EVENT",eventType:O,payload:R}),IJ.length>10&&IJ.shift()))}; oJ=function(O){if(O.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; ZA=function(O){return O.substr(0,O.indexOf(":"))||O}; g.Vt=function(O,R,J,l,u){R=R===void 0?{}:R;J=J===void 0?g6T[O]:J;l=l===void 0?iM2[O]:l;u=u===void 0?lHp[O]:u;g.Ys.call(this,J,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:O},R));this.type=O;this.message=J;this.level=l;this.L=u;Object.setPrototypeOf(this,g.Vt.prototype)}; fg=function(O,R){g.Vt.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:R,foundObjectStores:O},g6T.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,fg.prototype)}; SD=function(O,R){var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.index=O;this.objectStore=R;Object.setPrototypeOf(this,SD.prototype)}; m3=function(O,R,J,l){R=ZA(R);var u=O instanceof Error?O:Error("Unexpected error: "+O);if(u instanceof g.Vt)return u;O={objectStoreNames:J,dbName:R,dbVersion:l};if(u.name==="QuotaExceededError")return new g.Vt("QUOTA_EXCEEDED",O);if(g.N$&&u.name==="UnknownError")return new g.Vt("QUOTA_MAYBE_EXCEEDED",O);if(u instanceof SD)return new g.Vt("MISSING_INDEX",Object.assign({},O,{objectStore:u.objectStore,index:u.index}));if(u.name==="InvalidStateError"&&u8z.some(function(F){return u.message.includes(F)}))return new g.Vt("EXECUTE_TRANSACTION_ON_CLOSED_DB", O); if(u.name==="AbortError")return new g.Vt("UNKNOWN_ABORT",O,u.message);u.args=[Object.assign({},O,{name:"IdbError",S2:u.name})];u.level="WARNING";return u}; g.E4=function(O,R,J){var l=uq();return new g.Vt("IDB_NOT_SUPPORTED",{context:{caller:O,publicName:R,version:J,hasSucceededOnce:l==null?void 0:l.hasSucceededOnce}})}; FA_=function(O){if(!O)throw Error();throw O;}; GwT=function(O){return O}; DA=function(O){this.L=O}; g.aJ=function(O){function R(u){if(l.state.status==="PENDING"){l.state={status:"REJECTED",reason:u};u=g.N(l.S);for(var F=u.next();!F.done;F=u.next())F=F.value,F()}} function J(u){if(l.state.status==="PENDING"){l.state={status:"FULFILLED",value:u};u=g.N(l.L);for(var F=u.next();!F.done;F=u.next())F=F.value,F()}} var l=this;this.state={status:"PENDING"};this.L=[];this.S=[];O=O.L;try{O(J,R)}catch(u){R(u)}}; KA0=function(O,R,J,l,u){try{if(O.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var F=J(O.state.value);F instanceof g.aJ?vu(O,R,F,l,u):l(F)}catch(G){u(G)}}; y3h=function(O,R,J,l,u){try{if(O.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var F=J(O.state.reason);F instanceof g.aJ?vu(O,R,F,l,u):l(F)}catch(G){u(G)}}; vu=function(O,R,J,l,u){R===J?u(new TypeError("Circular promise chain detected.")):J.then(function(F){F instanceof g.aJ?vu(O,R,F,l,u):l(F)},function(F){u(F)})}; w4h=function(O,R,J){function l(){J(O.error);F()} function u(){R(O.result);F()} function F(){try{O.removeEventListener("success",u),O.removeEventListener("error",l)}catch(G){}} O.addEventListener("success",u);O.addEventListener("error",l)}; IHs=function(O){return new Promise(function(R,J){w4h(O,R,J)})}; XI=function(O){return new g.aJ(new DA(function(R,J){w4h(O,R,J)}))}; TW=function(O,R){return new g.aJ(new DA(function(J,l){function u(){var F=O?R(O):null;F?F.then(function(G){O=G;u()},l):J()} u()}))}; CIB=function(O,R){this.request=O;this.cursor=R}; r3B=function(O){return XI(O).then(function(R){return R?new CIB(O,R):null})}; g.tPT=function(O){O.cursor.continue(void 0);return r3B(O.request)}; o6_=function(O,R){this.L=O;this.options=R;this.transactionCount=0;this.B=Math.round((0,g.Q)());this.S=!1}; g.M$=function(O,R,J){O=O.L.createObjectStore(R,J);return new $S(O)}; q$=function(O,R){O.L.objectStoreNames.contains(R)&&O.L.deleteObjectStore(R)}; g.bq=function(O,R,J){return g.kS(O,[R],{mode:"readwrite",jG:!0},function(l){return g.s4(l.objectStore(R),J)})}; g.kS=function(O,R,J,l){var u,F,G,y,w,I,C,r,t,Z,V,m;return g.A(function(E){switch(E.S){case 1:var a={mode:"readonly",jG:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof J==="string"?a.mode=J:Object.assign(a,J);u=a;O.transactionCount++;F=u.jG?3:1;G=0;case 2:if(y){E.pJ(4);break}G++;w=Math.round((0,g.Q)());g.N0(E,5);I=O.L.transaction(R,u.mode);a=new Wu(I);a=ZMA(a,l);return g.k(E,a,7);case 7:return C=E.L,r=Math.round((0,g.Q)()),VPT(O,w,r,G,void 0,R.join(),u),E.return(C);case 5:t=g.Tz(E);Z=Math.round((0,g.Q)()); V=m3(t,O.L.name,R.join(),O.L.version);if((m=V instanceof g.Vt&&!V.L)||G>=F)VPT(O,w,Z,G,V,R.join(),u),y=V;E.pJ(2);break;case 4:return E.return(Promise.reject(y))}})}; VPT=function(O,R,J,l,u,F,G){R=J-R;u?(u instanceof g.Vt&&(u.type==="QUOTA_EXCEEDED"||u.type==="QUOTA_MAYBE_EXCEEDED")&&tS("QUOTA_EXCEEDED",{dbName:ZA(O.L.name),objectStoreNames:F,transactionCount:O.transactionCount,transactionMode:G.mode}),u instanceof g.Vt&&u.type==="UNKNOWN_ABORT"&&(J-=O.B,J<0&&J>=2147483648&&(J=0),tS("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:F,transactionDuration:R,transactionCount:O.transactionCount,dbDuration:J}),O.S=!0),fHz(O,!1,l,F,R,G.tag),rj(u)):fHz(O,!0,l,F,R, G.tag)}; fHz=function(O,R,J,l,u,F){tS("TRANSACTION_ENDED",{objectStoreNames:l,connectionHasUnknownAbortedTransaction:O.S,duration:u,isSuccessful:R,tryCount:J,tag:F===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":F})}; $S=function(O){this.L=O}; g.AS=function(O,R,J){O.L.createIndex(R,J,{unique:!1})}; SWp=function(O,R){return g.eD(O,{query:R},function(J){return J.delete().then(function(){return g.Pu(J)})}).then(function(){})}; NIA=function(O,R,J){var l=[];return g.eD(O,{query:R},function(u){if(!(J!==void 0&&l.length>=J))return l.push(u.getValue()),g.Pu(u)}).then(function(){return l})}; E6s=function(O){return"getAllKeys"in IDBObjectStore.prototype?XI(O.L.getAllKeys(void 0,void 0)):mxA(O)}; mxA=function(O){var R=[];return g.DxH(O,{query:void 0},function(J){R.push(J.cursor.primaryKey);return g.tPT(J)}).then(function(){return R})}; g.s4=function(O,R,J){return XI(O.L.put(R,J))}; g.eD=function(O,R,J){O=O.L.openCursor(R.query,R.direction);return pg(O).then(function(l){return TW(l,J)})}; g.DxH=function(O,R,J){var l=R.query;R=R.direction;O="openKeyCursor"in IDBObjectStore.prototype?O.L.openKeyCursor(l,R):O.L.openCursor(l,R);return r3B(O).then(function(u){return TW(u,J)})}; Wu=function(O){var R=this;this.L=O;this.B=new Map;this.S=!1;this.done=new Promise(function(J,l){R.L.addEventListener("complete",function(){J()}); R.L.addEventListener("error",function(u){u.currentTarget===u.target&&l(R.L.error)}); R.L.addEventListener("abort",function(){var u=R.L.error;if(u)l(u);else if(!R.S){u=g.Vt;for(var F=R.L.objectStoreNames,G=[],y=0;y=J))return l.push(u.getValue()),g.Pu(u)}).then(function(){return l})}; g.Bu=function(O,R,J){O=O.L.openCursor(R.query===void 0?null:R.query,R.direction===void 0?"next":R.direction);return pg(O).then(function(l){return TW(l,J)})}; Hu=function(O,R){this.request=O;this.cursor=R}; pg=function(O){return XI(O).then(function(R){return R?new Hu(O,R):null})}; g.Pu=function(O){O.cursor.continue(void 0);return pg(O.request)}; X4B=function(O,R,J){return new Promise(function(l,u){function F(){t||(t=new o6_(G.result,{closed:r}));return t} var G=R!==void 0?self.indexedDB.open(O,R):self.indexedDB.open(O);var y=J.blocked,w=J.blocking,I=J.Y0N,C=J.upgrade,r=J.closed,t;G.addEventListener("upgradeneeded",function(Z){try{if(Z.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(G.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");Z.dataLoss&&Z.dataLoss!=="none"&&tS("IDB_DATA_CORRUPTED",{reason:Z.dataLossMessage||"unknown reason",dbName:ZA(O)});var V=F(),m=new Wu(G.transaction); C&&C(V,function(E){return Z.oldVersion=E},m); m.done.catch(function(E){u(E)})}catch(E){u(E)}}); G.addEventListener("success",function(){var Z=G.result;w&&Z.addEventListener("versionchange",function(){w(F())}); Z.addEventListener("close",function(){tS("IDB_UNEXPECTEDLY_CLOSED",{dbName:ZA(O),dbVersion:Z.version});I&&I()}); l(F())}); G.addEventListener("error",function(){u(G.error)}); y&&G.addEventListener("blocked",function(){y()})})}; TIp=function(O,R,J){J=J===void 0?{}:J;return X4B(O,R,J)}; xS=function(O,R){R=R===void 0?{}:R;var J,l,u,F;return g.A(function(G){if(G.S==1)return g.N0(G,2),J=self.indexedDB.deleteDatabase(O),l=R,(u=l.blocked)&&J.addEventListener("blocked",function(){u()}),g.k(G,IHs(J),4); if(G.S!=2)return g.as(G,0);F=g.Tz(G);throw m3(F,O,"",-1);})}; U4=function(O,R){this.name=O;this.options=R;this.B=!0;this.D=this.N=0}; $xp=function(O,R){return new g.Vt("INCOMPATIBLE_DB_VERSION",{dbName:O.name,oldVersion:O.options.version,newVersion:R})}; g.jD=function(O,R){if(!R)throw g.E4("openWithToken",ZA(O.name));return O.open()}; MP_=function(O,R){var J;return g.A(function(l){if(l.S==1)return g.k(l,g.jD(Qt,R),2);J=l.L;return l.return(g.kS(J,["databases"],{jG:!0,mode:"readwrite"},function(u){var F=u.objectStore("databases");return F.get(O.actualName).then(function(G){if(G?O.actualName!==G.actualName||O.publicName!==G.publicName||O.userIdentifier!==G.userIdentifier:1)return g.s4(F,O).then(function(){})})}))})}; Lg=function(O,R){var J;return g.A(function(l){if(l.S==1)return O?g.k(l,g.jD(Qt,R),2):l.return();J=l.L;return l.return(J.delete("databases",O))})}; qWT=function(O,R){var J,l;return g.A(function(u){return u.S==1?(J=[],g.k(u,g.jD(Qt,R),2)):u.S!=3?(l=u.L,g.k(u,g.kS(l,["databases"],{jG:!0,mode:"readonly"},function(F){J.length=0;return g.eD(F.objectStore("databases"),{},function(G){O(G.getValue())&&J.push(G.getValue());return g.Pu(G)})}),3)):u.return(J)})}; kw_=function(O,R){return qWT(function(J){return J.publicName===O&&J.userIdentifier!==void 0},R)}; sPW=function(){var O,R,J,l;return g.A(function(u){switch(u.S){case 1:O=uq();if((R=O)==null?0:R.hasSucceededOnce)return u.return(!0);if(YS&&d6()&&!hF()||g.dj)return u.return(!1);try{if(J=self,!(J.indexedDB&&J.IDBIndex&&J.IDBKeyRange&&J.IDBObjectStore))return u.return(!1)}catch(F){return u.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return u.return(!1);g.N0(u,2);l={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.k(u,MP_(l,hS),4);case 4:return g.k(u,Lg("yt-idb-test-do-not-use",hS),5);case 5:return u.return(!0);case 2:return g.Tz(u),u.return(!1)}})}; bMh=function(){if(zW!==void 0)return zW;Cg=!0;return zW=sPW().then(function(O){Cg=!1;var R;if((R=lq())!=null&&R.L){var J;R={hasSucceededOnce:((J=uq())==null?void 0:J.hasSucceededOnce)||O};var l;(l=lq())==null||l.set("LAST_RESULT_ENTRY_KEY",R,2592E3,!0)}return O})}; ng=function(){return g.hs("ytglobal.idbToken_")||void 0}; g.cu=function(){var O=ng();return O?Promise.resolve(O):bMh().then(function(R){(R=R?hS:void 0)&&g.dh("ytglobal.idbToken_",R);return R})}; WAz=function(O){if(!g.h6())throw O=new g.Vt("AUTH_INVALID",{dbName:O}),rj(O),O;var R=g.dZ();return{actualName:O+":"+R,publicName:O,userIdentifier:R}}; A3A=function(O,R,J,l){var u,F,G,y,w,I;return g.A(function(C){switch(C.S){case 1:return F=(u=Error().stack)!=null?u:"",g.k(C,g.cu(),2);case 2:G=C.L;if(!G)throw y=g.E4("openDbImpl",O,R),g.S8("ytidb_async_stack_killswitch")||(y.stack=y.stack+"\n"+F.substring(F.indexOf("\n")+1)),rj(y),y;oJ(O);w=J?{actualName:O,publicName:O,userIdentifier:void 0}:WAz(O);g.N0(C,3);return g.k(C,MP_(w,G),5);case 5:return g.k(C,TIp(w.actualName,R,l),6);case 6:return C.return(C.L);case 3:return I=g.Tz(C),g.N0(C,7),g.k(C,Lg(w.actualName, G),9);case 9:g.as(C,8);break;case 7:g.Tz(C);case 8:throw I;}})}; erf=function(O,R,J){J=J===void 0?{}:J;return A3A(O,R,!1,J)}; PIs=function(O,R,J){J=J===void 0?{}:J;return A3A(O,R,!0,J)}; p4s=function(O,R){R=R===void 0?{}:R;var J,l;return g.A(function(u){if(u.S==1)return g.k(u,g.cu(),2);if(u.S!=3){J=u.L;if(!J)return u.return();oJ(O);l=WAz(O);return g.k(u,xS(l.actualName,R),3)}return g.k(u,Lg(l.actualName,J),0)})}; BIA=function(O,R,J){O=O.map(function(l){return g.A(function(u){return u.S==1?g.k(u,xS(l.actualName,R),2):g.k(u,Lg(l.actualName,J),0)})}); return Promise.all(O).then(function(){})}; HMx=function(O){var R=R===void 0?{}:R;var J,l;return g.A(function(u){if(u.S==1)return g.k(u,g.cu(),2);if(u.S!=3){J=u.L;if(!J)return u.return();oJ(O);return g.k(u,kw_(O,J),3)}l=u.L;return g.k(u,BIA(l,R,J),0)})}; xxA=function(O,R){R=R===void 0?{}:R;var J;return g.A(function(l){if(l.S==1)return g.k(l,g.cu(),2);if(l.S!=3){J=l.L;if(!J)return l.return();oJ(O);return g.k(l,xS(O,R),3)}return g.k(l,Lg(O,J),0)})}; OO=function(O,R){U4.call(this,O,R);this.options=R;oJ(O)}; UxA=function(O,R){var J;return function(){J||(J=new OO(O,R));return J}}; g.RA=function(O,R){return UxA(O,R)}; J2=function(O){return g.jD(jPs(),O)}; QPH=function(O,R,J,l){var u,F,G;return g.A(function(y){switch(y.S){case 1:return u={config:O,hashData:R,timestamp:l!==void 0?l:(0,g.Q)()},g.k(y,J2(J),2);case 2:return F=y.L,g.k(y,F.clear("hotConfigStore"),3);case 3:return g.k(y,g.bq(F,"hotConfigStore",u),4);case 4:return G=y.L,y.return(G)}})}; LAB=function(O,R,J,l,u){var F,G,y;return g.A(function(w){switch(w.S){case 1:return F={config:O,hashData:R,configData:J,timestamp:u!==void 0?u:(0,g.Q)()},g.k(w,J2(l),2);case 2:return G=w.L,g.k(w,G.clear("coldConfigStore"),3);case 3:return g.k(w,g.bq(G,"coldConfigStore",F),4);case 4:return y=w.L,w.return(y)}})}; YWs=function(O){var R,J;return g.A(function(l){return l.S==1?g.k(l,J2(O),2):l.S!=3?(R=l.L,J=void 0,g.k(l,g.kS(R,["coldConfigStore"],{mode:"readwrite",jG:!0},function(u){return g.Bu(u.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(F){J=F.getValue()})}),3)):l.return(J)})}; dx0=function(O){var R,J;return g.A(function(l){return l.S==1?g.k(l,J2(O),2):l.S!=3?(R=l.L,J=void 0,g.k(l,g.kS(R,["hotConfigStore"],{mode:"readwrite",jG:!0},function(u){return g.Bu(u.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(F){J=F.getValue()})}),3)):l.return(J)})}; hrW=function(){return g.A(function(O){return g.k(O,HMx("ytGcfConfig"),0)})}; gH=function(){g.p.call(this);this.S=[];this.L=[];var O=g.hs("yt.gcf.config.hotUpdateCallbacks");O?(this.S=[].concat(g.X(O)),this.L=O):(this.L=[],g.dh("yt.gcf.config.hotUpdateCallbacks",this.L))}; Kr=function(){var O=this;this.D=!1;this.B=this.N=0;this.j=new gH;this.nG={rPQ:function(){O.D=!0}, v4z:function(){return O.L}, aVU:function(R){id(O,R)}, TN:function(R){O.TN(R)}, IVQ:function(R){ld(O,R)}, sz:function(){return O.coldHashData}, nB:function(){return O.hotHashData}, VAX:function(){return O.S}, aTS:function(){return ud()}, GGz:function(){return Fe()}, E4d:function(){return g.hs("yt.gcf.config.coldHashData")}, UbX:function(){return g.hs("yt.gcf.config.hotHashData")}, R3d:function(){zrp(O)}, Yqh:function(){O.TN(void 0);G$(O);delete Kr.instance}, Z_u:function(R){O.B=R}, ru1:function(){return O.B}}}; n6p=function(){if(!Kr.instance){var O=new Kr;Kr.instance=O}return Kr.instance}; Rw0=function(O){var R;g.A(function(J){if(J.S==1)return g.S8("start_client_gcf")||g.S8("delete_gcf_config_db")?g.S8("start_client_gcf")?g.k(J,g.cu(),3):J.pJ(2):J.return();J.S!=2&&((R=J.L)&&g.h6()&&!g.S8("delete_gcf_config_db")?(O.D=!0,zrp(O)):(c3p(O),OAA(O)));return g.S8("delete_gcf_config_db")?g.k(J,hrW(),0):J.pJ(0)})}; yb=function(){var O;return(O=Fe())!=null?O:g.YB("RAW_HOT_CONFIG_GROUP")}; JDT=function(O){var R,J,l,u,F,G;return g.A(function(y){switch(y.S){case 1:if(O.S)return y.return(Fe());if(!O.D)return R=g.E4("getHotConfig IDB not initialized"),ci(R),y.return(Promise.reject(R));J=ng();l=g.YB("TIME_CREATED_MS");if(!J){u=g.E4("getHotConfig token error");ci(u);y.pJ(2);break}return g.k(y,dx0(J),3);case 3:if((F=y.L)&&F.timestamp>l)return id(O,F.config),O.TN(F.hashData),y.return(Fe());case 2:OAA(O);if(!(J&&O.S&&O.hotHashData)){y.pJ(4);break}return g.k(y,QPH(O.S,O.hotHashData,J,l),4);case 4:return O.S? y.return(Fe()):(G=new g.Ys("Config not available in ytConfig"),ci(G),y.return(Promise.reject(G)))}})}; iA_=function(O){var R,J,l,u,F,G;return g.A(function(y){switch(y.S){case 1:if(O.L)return y.return(ud());if(!O.D)return R=g.E4("getColdConfig IDB not initialized"),ci(R),y.return(Promise.reject(R));J=ng();l=g.YB("TIME_CREATED_MS");if(!J){u=g.E4("getColdConfig");ci(u);y.pJ(2);break}return g.k(y,YWs(J),3);case 3:if((F=y.L)&&F.timestamp>l)return ld(O,F.config),gBh(O,F.configData),G$(O,F.hashData),y.return(ud());case 2:c3p(O);if(!(J&&O.L&&O.coldHashData&&O.configData)){y.pJ(4);break}return g.k(y,LAB(O.L, O.coldHashData,O.configData,J,l),4);case 4:return O.L?y.return(ud()):(G=new g.Ys("Config not available in ytConfig"),ci(G),y.return(Promise.reject(G)))}})}; zrp=function(O){if(!O.S||!O.L){if(!ng()){var R=g.E4("scheduleGetConfigs");ci(R)}O.N||(O.N=g.HJ.lS(function(){return g.A(function(J){switch(J.S){case 1:return g.N0(J,2),g.k(J,JDT(O),4);case 4:g.as(J,3);break;case 2:g.Tz(J);case 3:return g.N0(J,5),g.k(J,iA_(O),7);case 7:g.as(J,6);break;case 5:g.Tz(J);case 6:O.N&&(O.N=0),g.ST(J)}})},100))}}; lyW=function(O,R,J){var l,u,F;return g.A(function(G){switch(G.S){case 1:if(!g.S8("start_client_gcf")){G.pJ(0);break}J&&id(O,J);O.TN(R);l=ng();if(!l){G.pJ(3);break}if(J){G.pJ(4);break}return g.k(G,dx0(l),5);case 5:u=G.L,J=(F=u)==null?void 0:F.config;case 4:return g.k(G,QPH(J,R,l),3);case 3:if(J)for(var y=J,w=g.N(O.j.L),I=w.next();!I.done;I=w.next())I=I.value,I(y);g.ST(G)}})}; uoB=function(O,R,J){var l,u,F,G;return g.A(function(y){if(y.S==1){if(!g.S8("start_client_gcf"))return y.pJ(0);G$(O,R);return(l=ng())?J?y.pJ(4):g.k(y,YWs(l),5):y.pJ(0)}y.S!=4&&(u=y.L,J=(F=u)==null?void 0:F.config);if(!J)return y.pJ(0);G=J.configData;return g.k(y,LAB(J,R,G,l),0)})}; Fsp=function(){var O=n6p(),R=(0,g.Q)()-O.B;if(!(O.B!==0&&R0&&(R.request={internalExperimentFlags:J});Ksz(O,void 0,R);yDx(void 0,R);wiW(void 0,R);Iy_(O,void 0,R);CP_(void 0,R);g.S8("start_client_gcf")&&rDB(void 0,R);g.YB("DELEGATED_SESSION_ID")&& !g.S8("pageid_as_header_web")&&(R.user={onBehalfOfUser:g.YB("DELEGATED_SESSION_ID")});!g.S8("fill_delegate_context_in_gel_killswitch")&&(O=g.YB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(R.user=Object.assign({},R.user,{serializedDelegationContext:O}));O=g.YB("INNERTUBE_CONTEXT");var l;if(g.S8("enable_persistent_device_token")&&(O==null?0:(l=O.client)==null?0:l.rolloutToken)){var u;R.client.rolloutToken=O==null?void 0:(u=O.client)==null?void 0:u.rolloutToken}l=Object;u=l.assign;O=R.client; J={};for(var F=g.N(Object.entries(JF(g.YB("DEVICE","")))),G=F.next();!G.done;G=F.next()){var y=g.N(G.value);G=y.next().value;y=y.next().value;G==="cbrand"?J.deviceMake=y:G==="cmodel"?J.deviceModel=y:G==="cbr"?J.browserName=y:G==="cbrver"?J.browserVersion=y:G==="cos"?J.osName=y:G==="cosver"?J.osVersion=y:G==="cplatform"&&(J.platform=y)}R.client=u.call(l,O,J);return R}; Ksz=function(O,R,J){O=O.ob;if(O==="WEB"||O==="MWEB"||O===1||O===2)if(R){J=pO(R,TH,96)||new TH;var l=Pf();l=Object.keys(tkf).indexOf(l);l=l===-1?null:l;l!==null&&OQ(J,3,l);HS(R,TH,96,J)}else J&&(J.client.mainAppWebInfo=(l=J.client.mainAppWebInfo)!=null?l:{},J.client.mainAppWebInfo.webDisplayMode=Pf())}; yDx=function(O,R){var J=g.hs("yt.embedded_player.embed_url");J&&(O?(R=pO(O,sA,7)||new sA,nO(R,4,J),HS(O,sA,7,R)):R&&(R.thirdParty={embedUrl:J}))}; wiW=function(O,R){var J;if(g.S8("web_log_memory_total_kbytes")&&((J=g.YW.navigator)==null?0:J.deviceMemory)){var l;J=(l=g.YW.navigator)==null?void 0:l.deviceMemory;O?NR(O,95,Qy(J*1E6)):R&&(R.client.memoryTotalKbytes=""+J*1E6)}}; Iy_=function(O,R,J){if(O.appInstallData)if(R){var l;J=(l=pO(R,Xo,62))!=null?l:new Xo;nO(J,6,O.appInstallData);HS(R,Xo,62,J)}else J&&(J.client.configInfo=J.client.configInfo||{},J.client.configInfo.appInstallData=O.appInstallData)}; CP_=function(O,R){var J=nPT();J&&(O?OQ(O,61,oBh[J]):R&&(R.client.connectionType=J));g.S8("web_log_effective_connection_type")&&(J=OMA())&&(O?OQ(O,94,ZAp[J]):R&&(R.client.effectiveConnectionType=J))}; Vk_=function(O,R,J){J=J===void 0?{}:J;var l={};g.YB("EOM_VISITOR_DATA")?l={"X-Goog-EOM-Visitor-Id":g.YB("EOM_VISITOR_DATA")}:l={"X-Goog-Visitor-Id":J.visitorData||g.YB("VISITOR_DATA","")};if(R&&R.includes("www.youtube-nocookie.com"))return l;R=J.V1||g.YB("AUTHORIZATION");R||(O?R="Bearer "+g.hs("gapi.auth.getToken")().access_token:(O=Q82().uP(Cr),g.S8("pageid_as_header_web")||delete O["X-Goog-PageId"],l=Object.assign({},l,O)));R&&(l.Authorization=R);return l}; rDB=function(O,R){var J=Fsp();if(J){var l=J.coldConfigData,u=J.coldHashData;J=J.hotHashData;if(O){var F;R=(F=pO(O,Xo,62))!=null?F:new Xo;l=nO(R,1,l);nO(l,3,u).TN(J);HS(O,Xo,62,R)}else R&&(R.client.configInfo=R.client.configInfo||{},l&&(R.client.configInfo.coldConfigData=l),u&&(R.client.configInfo.coldHashData=u),J&&(R.client.configInfo.hotHashData=J))}}; rH=function(O,R){this.version=O;this.args=R}; t2=function(O,R){this.topic=O;this.L=R}; mM=function(O,R){var J=oA();J&&J.publish.call(J,O.toString(),O,R)}; Nns=function(O){var R=fyT,J=oA();if(!J)return 0;var l=J.subscribe(R.toString(),function(u,F){var G=g.hs("ytPubsub2Pubsub2SkipSubKey");G&&G==l||(G=function(){if(EO[l])try{if(F&&R instanceof t2&&R!=u)try{var y=R.L,w=F;if(!w.args||!w.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!y.GD){var I=new y;y.GD=I.version}var C=y.GD}catch(r){}if(!C||w.version!=C)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{F=Reflect.construct(y, g.m4(w.args))}catch(r){throw r.message="yt.pubsub2.Data.deserialize(): "+r.message,r;}}catch(r){throw r.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+R.toString()+": "+r.message,r;}O.call(window,F)}catch(r){g.zH(r)}},SAf[R.toString()]?g.JS()?g.HJ.lS(G):g.tF(G,0):G())}); EO[l]=!0;DZ[R.toString()]||(DZ[R.toString()]=[]);DZ[R.toString()].push(l);return l}; DXW=function(){var O=mXz,R=Nns(function(J){O.apply(void 0,arguments);EBs(R)}); return R}; EBs=function(O){var R=oA();R&&(typeof O==="number"&&(O=[O]),g.e6(O,function(J){R.unsubscribeByKey(J);delete EO[J]}))}; oA=function(){return g.hs("ytPubsub2Pubsub2Instance")}; aA=function(O,R,J){J=J===void 0?{sampleRate:.1}:J;Math.random()MkL||G=bAs&&(We++,g.S8("abandon_compression_after_N_slow_zips")?bd===g.N5("compression_disable_point")&&We>WsH&&(qd=!1):qd=!1);ADs(R);l.headers||(l.headers={});l.headers["Content-Encoding"]="gzip";l.postBody=O;l.postParams=void 0;u(J,l)}; ewx=function(O){var R=R===void 0?!1:R;var J=J===void 0?!1:J;var l=(0,g.Q)(),u={startTime:l,ticks:{},infos:{}},F=R?g.hs("yt.logging.gzipForFetch",!1):!0;if(qd&&F){if(!O.body)return O;try{var G=J?O.body:typeof O.body==="string"?O.body:JSON.stringify(O.body);F=G;if(!J&&typeof G==="string"){var y=$Xf(G);if(y!=null&&(y>MkL||y=bAs)if(We++,g.S8("abandon_compression_after_N_slow_zips")||g.S8("abandon_compression_after_N_slow_zips_lr")){R=We/bd;var I=WsH/g.N5("compression_disable_point");bd>0&&bd%g.N5("compression_disable_point")===0&&R>=I&&(qd=!1)}else qd=!1;ADs(u)}}O.headers=Object.assign({},{"Content-Encoding":"gzip"},O.headers||{});O.body=F;return O}catch(C){return ci(C),O}}else return O}; $Xf=function(O){try{return(new Blob(O.split(""))).size}catch(R){return ci(R),null}}; ADs=function(O){g.S8("gel_compression_csi_killswitch")||!g.S8("log_gel_compression_latency")&&!g.S8("log_gel_compression_latency_lr")||aA("gel_compression",O,{sampleRate:.1})}; eh=function(O){var R=this;this.PS=this.L=!1;this.potentialEsfErrorCounter=this.S=0;this.handleError=function(){}; this.ZI=function(){}; this.now=Date.now;this.Ay=!1;this.nG={rYd:function(C){R.CY=C}, LON:function(){R.Uo()}, uQ:function(){R.D0()}, TY:function(C){return g.A(function(r){return g.k(r,R.TY(C),0)})}, KM:function(C,r){return R.KM(C,r)}, s3:function(){R.s3()}}; var J;this.XM=(J=O.XM)!=null?J:100;var l;this.a_=(l=O.a_)!=null?l:1;var u;this.QK=(u=O.QK)!=null?u:2592E6;var F;this.b9=(F=O.b9)!=null?F:12E4;var G;this.J7=(G=O.J7)!=null?G:5E3;var y;this.CY=(y=O.CY)!=null?y:void 0;this.XX=!!O.XX;var w;this.gW=(w=O.gW)!=null?w:.1;var I;this.XL=(I=O.XL)!=null?I:10;O.handleError&&(this.handleError=O.handleError);O.ZI&&(this.ZI=O.ZI);O.Ay&&(this.Ay=O.Ay);O.PS&&(this.PS=O.PS);this.Vh=O.Vh;this.S8=O.S8;this.VD=O.VD;this.XG=O.XG;this.sendFn=O.sendFn;this.CT=O.CT;this.fq= O.fq;A2(this)&&(!this.Vh||this.Vh("networkless_logging"))&&PPf(this)}; PPf=function(O){A2(O)&&!O.Ay&&(O.L=!0,O.XX&&Math.random()<=O.gW&&O.VD.pu(O.CY),O.s3(),O.XG.qK()&&O.Uo(),O.XG.listen(O.CT,O.Uo.bind(O)),O.XG.listen(O.fq,O.D0.bind(O)))}; HAx=function(O,R){if(!A2(O))throw Error("IndexedDB is not supported: updateRequestHandlers");var J=R.options.onError?R.options.onError:function(){}; R.options.onError=function(u,F){var G,y,w,I;return g.A(function(C){switch(C.S){case 1:G=piB(F);(y=BnW(F))&&O.Vh&&O.Vh("web_enable_error_204")&&O.handleError(Error("Request failed due to compression"),R.url,F);if(!(O.Vh&&O.Vh("nwl_consider_error_code")&&G||O.Vh&&!O.Vh("nwl_consider_error_code")&&O.potentialEsfErrorCounter<=O.XL)){C.pJ(2);break}if(!O.XG.nw){C.pJ(3);break}return g.k(C,O.XG.nw(),3);case 3:if(O.XG.qK()){C.pJ(2);break}J(u,F);if(!O.Vh||!O.Vh("nwl_consider_error_code")||((w=R)==null?void 0: w.id)===void 0){C.pJ(6);break}return g.k(C,O.VD.Ge(R.id,O.CY,!1),6);case 6:return C.return();case 2:if(O.Vh&&O.Vh("nwl_consider_error_code")&&!G&&O.potentialEsfErrorCounter>O.XL)return C.return();O.potentialEsfErrorCounter++;if(((I=R)==null?void 0:I.id)===void 0){C.pJ(8);break}return R.sendCount=400&&O<=599?!1:!0}; BnW=function(O){var R;O=O==null?void 0:(R=O.error)==null?void 0:R.code;return!(O!==400&&O!==415)}; xXs=function(){if(pr)return pr();var O={};pr=g.RA("LogsDatabaseV2",{jO:(O.LogsRequestsStore={ql:2},O),shared:!1,upgrade:function(R,J,l){J(2)&&g.M$(R,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});J(3);J(5)&&(l=l.objectStore("LogsRequestsStore"),l.L.indexNames.contains("newRequest")&&l.L.deleteIndex("newRequest"),g.AS(l,"newRequestV2",["status","interface","timestamp"]));J(7)&&q$(R,"sapisid");J(9)&&q$(R,"SWHealthLog")}, version:9});return pr()}; Be=function(O){return g.jD(xXs(),O)}; jt0=function(O,R){var J,l,u,F;return g.A(function(G){if(G.S==1)return J={startTime:(0,g.Q)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.k(G,Be(R),2);if(G.S!=3)return l=G.L,u=Object.assign({},O,{options:JSON.parse(JSON.stringify(O.options)),interface:g.YB("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.k(G,g.bq(l,"LogsRequestsStore",u),3);F=G.L;J.ticks.tc=(0,g.Q)();UXB(J);return G.return(F)})}; Qtz=function(O,R){var J,l,u,F,G,y,w,I;return g.A(function(C){if(C.S==1)return J={startTime:(0,g.Q)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.k(C,Be(R),2);if(C.S!=3)return l=C.L,u=g.YB("INNERTUBE_CONTEXT_CLIENT_NAME",0),F=[O,u,0],G=[O,u,(0,g.Q)()],y=IDBKeyRange.bound(F,G),w="prev",g.S8("use_fifo_for_networkless")&&(w="next"),I=void 0,g.k(C,g.kS(l,["LogsRequestsStore"],{mode:"readwrite",jG:!0},function(r){return g.Bu(r.objectStore("LogsRequestsStore").index("newRequestV2"), {query:y,direction:w},function(t){t.getValue()&&(I=t.getValue(),O==="NEW"&&(I.status="QUEUED",t.update(I)))})}),3); J.ticks.tc=(0,g.Q)();UXB(J);return C.return(I)})}; Lsp=function(O,R){var J;return g.A(function(l){if(l.S==1)return g.k(l,Be(R),2);J=l.L;return l.return(g.kS(J,["LogsRequestsStore"],{mode:"readwrite",jG:!0},function(u){var F=u.objectStore("LogsRequestsStore");return F.get(O).then(function(G){if(G)return G.status="QUEUED",g.s4(F,G).then(function(){return G})})}))})}; YAf=function(O,R,J,l){J=J===void 0?!0:J;var u;return g.A(function(F){if(F.S==1)return g.k(F,Be(R),2);u=F.L;return F.return(g.kS(u,["LogsRequestsStore"],{mode:"readwrite",jG:!0},function(G){var y=G.objectStore("LogsRequestsStore");return y.get(O).then(function(w){return w?(w.status="NEW",J&&(w.sendCount+=1),l!==void 0&&(w.options.compress=l),g.s4(y,w).then(function(){return w})):g.aJ.resolve(void 0)})}))})}; dXL=function(O,R){var J;return g.A(function(l){if(l.S==1)return g.k(l,Be(R),2);J=l.L;return l.return(J.delete("LogsRequestsStore",O))})}; hw_=function(O){var R,J;return g.A(function(l){if(l.S==1)return g.k(l,Be(O),2);R=l.L;J=(0,g.Q)()-2592E6;return g.k(l,g.kS(R,["LogsRequestsStore"],{mode:"readwrite",jG:!0},function(u){return g.eD(u.objectStore("LogsRequestsStore"),{},function(F){if(F.getValue().timestamp<=J)return F.delete().then(function(){return g.Pu(F)})})}),0)})}; zwL=function(){g.A(function(O){return g.k(O,HMx("LogsDatabaseV2"),0)})}; UXB=function(O){g.S8("nwl_csi_killswitch")||aA("networkless_performance",O,{sampleRate:1})}; cD_=function(O){return g.jD(nBs(),O)}; O_h=function(O){var R,J;g.A(function(l){if(l.S==1)return g.k(l,cD_(O),2);R=l.L;J=(0,g.Q)()-2592E6;return g.k(l,g.kS(R,["SWHealthLog"],{mode:"readwrite",jG:!0},function(u){return g.eD(u.objectStore("SWHealthLog"),{},function(F){if(F.getValue().timestamp<=J)return F.delete().then(function(){return g.Pu(F)})})}),0)})}; RNz=function(O){var R;return g.A(function(J){if(J.S==1)return g.k(J,cD_(O),2);R=J.L;return g.k(J,R.clear("SWHealthLog"),0)})}; g.He=function(O,R,J,l,u,F,G){u=u===void 0?"":u;F=F===void 0?!1:F;G=G===void 0?!1:G;if(O)if(J&&!g.Q3())ci(new g.Ys("Legacy referrer-scrubbed ping detected")),O&&JFB(O,void 0,{scrubReferrer:!0});else if(u)DD(O,R,"POST",u,l);else if(g.YB("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||l||G)DD(O,R,"GET","",l,void 0,F,G);else{b:{try{c:{var y=new vFL({url:O});if(g2(y.L,"dsh")==="1")var w=null;else{var I=g2(y.L,"ae");if(I==="1"){var C=g2(y.L,"adurl");if(C)try{w={version:3,fu:decodeURIComponent(C),Rm:iG(y.L,"act=1", "ri=1",XwT(y))};break c}catch(Z){}}w=I==="2"?{version:4,fu:iG(y.L,"dct=1","suid="+y.S,""),Rm:iG(y.L,"act=1","ri=1","suid="+y.S)}:null}}if(w){var r=Xt(O);var t=!(!r||!r.endsWith("/aclk")||WQ(O,"ri")!=="1");break b}}catch(Z){}t=!1}t?gjf(O)?(R&&R(),J=!0):J=!1:J=!1;J||JFB(O,R)}}; gjf=function(O,R){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(O,R===void 0?"":R))return!0}catch(J){}return!1}; JFB=function(O,R,J){J=J===void 0?{}:J;var l=new Image,u=""+i_z++;x8[u]=l;l.onload=l.onerror=function(){R&&x8[u]&&R();delete x8[u]}; J.scrubReferrer&&(l.referrerPolicy="no-referrer");l.src=O}; lD2=function(O){var R;return((R=document.featurePolicy)==null?0:R.allowedFeatures().includes("attribution-reporting"))?O+"&nis=6":O+"&nis=5"}; jh=function(){UO||(UO=new iq("yt.offline"));return UO}; u6H=function(O){if(g.S8("offline_error_handling")){var R=jh().get("errors",!0)||{};R[O.message]={name:O.name,stack:O.stack};O.level&&(R[O.message].level=O.level);jh().set("errors",R,2592E3,!0)}}; Qb=function(){this.L=new Map;this.S=!1}; Lr=function(){if(!Qb.instance){var O=g.hs("yt.networkRequestMonitor.instance")||new Qb;g.dh("yt.networkRequestMonitor.instance",O);Qb.instance=O}return Qb.instance}; Y8=function(){g.tW.call(this);var O=this;this.S=!1;this.L=ZEf();this.L.listen("networkstatus-online",function(){if(O.S&&g.S8("offline_error_handling")){var R=jh().get("errors",!0);if(R){for(var J in R)if(R[J]){var l=new g.Ys(J,"sent via offline_errors");l.name=R[J].name;l.stack=R[J].stack;l.level=R[J].level;g.zH(l)}jh().set("errors",{},2592E3,!0)}}})}; FSW=function(){if(!Y8.instance){var O=g.hs("yt.networkStatusManager.instance")||new Y8;g.dh("yt.networkStatusManager.instance",O);Y8.instance=O}return Y8.instance}; g.dH=function(O){O=O===void 0?{}:O;g.tW.call(this);var R=this;this.L=this.N=0;this.S=FSW();var J=g.hs("yt.networkStatusManager.instance.listen").bind(this.S);J&&(O.rateLimit?(this.rateLimit=O.rateLimit,J("networkstatus-online",function(){G3s(R,"publicytnetworkstatus-online")}),J("networkstatus-offline",function(){G3s(R,"publicytnetworkstatus-offline")})):(J("networkstatus-online",function(){R.dispatchEvent("publicytnetworkstatus-online")}),J("networkstatus-offline",function(){R.dispatchEvent("publicytnetworkstatus-offline")})))}; G3s=function(O,R){O.rateLimit?O.L?(g.HJ.wU(O.N),O.N=g.HJ.lS(function(){O.B!==R&&(O.dispatchEvent(R),O.B=R,O.L=(0,g.Q)())},O.rateLimit-((0,g.Q)()-O.L))):(O.dispatchEvent(R),O.B=R,O.L=(0,g.Q)()):O.dispatchEvent(R)}; z$=function(){var O=eh.call;h2||(h2=new g.dH({TXU:!0,C7U:!0}));O.call(eh,this,{VD:{pu:hw_,MS:dXL,NN:Qtz,PzX:Lsp,Ge:YAf,set:jt0},XG:h2,handleError:function(R,J,l){var u,F=l==null?void 0:(u=l.error)==null?void 0:u.code;if(F===400||F===415){var G;R=new g.Ys(R.message,J,l==null?void 0:(G=l.error)==null?void 0:G.code);ci(R,void 0,void 0,void 0,!0)}else g.zH(R)}, ZI:ci,sendFn:KSf,now:g.Q,Y1:u6H,S8:g.RJ(),CT:"publicytnetworkstatus-online",fq:"publicytnetworkstatus-offline",XX:!0,gW:.1,XL:g.N5("potential_esf_error_limit",10),Vh:g.S8,Ay:!(g.h6()&&g.vQ(document.location.toString())!=="www.youtube-nocookie.com")});this.B=new g.tA;g.S8("networkless_immediately_drop_all_requests")&&zwL();xxA("LogsDatabaseV2")}; nr=function(){var O=g.hs("yt.networklessRequestController.instance");O||(O=new z$,g.dh("yt.networklessRequestController.instance",O),g.S8("networkless_logging")&&g.cu().then(function(R){O.CY=R;PPf(O);O.B.resolve();O.XX&&Math.random()<=O.gW&&O.CY&&O_h(O.CY);g.S8("networkless_immediately_drop_sw_health_store")&&yFB(O)})); return O}; yFB=function(O){var R;g.A(function(J){if(!O.CY)throw R=g.E4("clearSWHealthLogsDb"),R;return J.return(RNz(O.CY).catch(function(l){O.handleError(l)}))})}; KSf=function(O,R,J,l){l=l===void 0?!1:l;R=g.S8("web_fp_via_jspb")?Object.assign({},R):R;g.S8("use_cfr_monitor")&&wWA(O,R);if(g.S8("use_request_time_ms_header"))R.headers&&F6(O)&&(R.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Q)())));else{var u;if((u=R.postParams)==null?0:u.requestTimeMs)R.postParams.requestTimeMs=Math.round((0,g.Q)())}J&&Object.keys(R).length===0?g.He(O):R.compress?R.postBody?(typeof R.postBody!=="string"&&(R.postBody=JSON.stringify(R.postBody)),sO(O,R.postBody, R,g.a9,l)):sO(O,JSON.stringify(R.postParams),R,vW,l):g.a9(O,R)}; ce=function(O,R){g.S8("use_event_time_ms_header")&&F6(O)&&(R.headers||(R.headers={}),R.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Q)())));return R}; wWA=function(O,R){var J=R.onError?R.onError:function(){}; R.onError=function(u,F){Lr().requestComplete(O,!1);J(u,F)}; var l=R.onSuccess?R.onSuccess:function(){}; R.onSuccess=function(u,F){Lr().requestComplete(O,!0);l(u,F)}}; g.OZ=function(O){this.config_=null;O?this.config_=O:GHx()&&(this.config_=g.wH())}; g.RV=function(O,R,J,l){function u(I){try{if((I===void 0?0:I)&&l.retry&&!l.networklessOptions.bypassNetworkless)F.method="POST",l.networklessOptions.writeThenSend?nr().writeThenSend(w,F):nr().sendAndWrite(w,F);else if(l.compress){var C=!l.networklessOptions.writeThenSend;if(F.postBody){var r=F.postBody;typeof r!=="string"&&(r=JSON.stringify(F.postBody));sO(w,r,F,g.a9,C)}else sO(w,JSON.stringify(F.postParams),F,vW,C)}else g.S8("web_all_payloads_via_jspb")?g.a9(w,F):vW(w,F)}catch(t){if(t.name==="InvalidAccessError")ci(Error("An extension is blocking network request.")); else throw t;}} !g.YB("VISITOR_DATA")&&R!=="visitor_id"&&Math.random()<.01&&ci(new g.Ys("Missing VISITOR_DATA when sending innertube request.",R,J,l));if(!O.isReady())throw O=new g.Ys("innertube xhrclient not ready",R,J,l),g.zH(O),O;var F={headers:l.headers||{},method:"POST",postParams:J,postBody:l.postBody,postBodyFormat:l.postBodyFormat||"JSON",onTimeout:function(){l.onTimeout()}, onFetchTimeout:l.onTimeout,onSuccess:function(I,C){if(l.onSuccess)l.onSuccess(C)}, onFetchSuccess:function(I){if(l.onSuccess)l.onSuccess(I)}, onError:function(I,C){if(l.onError)l.onError(C)}, onFetchError:function(I){if(l.onError)l.onError(I)}, timeout:l.timeout,withCredentials:!0,compress:l.compress};F.headers["Content-Type"]||(F.headers["Content-Type"]="application/json");J="";var G=O.config_.q6;G&&(J=G);G=O.config_.QG||!1;var y=Vk_(G,J,l);Object.assign(F.headers,y);F.headers.Authorization&&!J&&G&&(F.headers["x-origin"]=window.location.origin);var w=ll(""+J+("/youtubei/"+O.config_.innertubeApiVersion+"/"+R),{alt:"json"});g.hs("ytNetworklessLoggingInitializationOptions")&&IDp.isNwlInitialized?bMh().then(function(I){u(I)}):u(!1)}; g.uh=function(O,R,J){var l=g.J_();if(l&&R){var u=l.subscribe(O,function(){function F(){gQ[u]&&R.apply&&typeof R.apply=="function"&&R.apply(J||window,G)} var G=arguments;try{g.ih[O]?F():g.tF(F,0)}catch(y){g.zH(y)}},J); gQ[u]=!0;lh[O]||(lh[O]=[]);lh[O].push(u);return u}return 0}; Clf=function(O){var R=g.uh("LOGGED_IN",function(J){O.apply(void 0,arguments);g.FZ(R)})}; g.FZ=function(O){var R=g.J_();R&&(typeof O==="number"?O=[O]:typeof O==="string"&&(O=[parseInt(O,10)]),g.e6(O,function(J){R.unsubscribeByKey(J);delete gQ[J]}))}; g.GT=function(O,R){var J=g.J_();return J?J.publish.apply(J,arguments):!1}; t8p=function(O){var R=g.J_();if(R)if(R.clear(O),O)rFx(O);else for(var J in lh)rFx(J)}; g.J_=function(){return g.YW.ytPubsubPubsubInstance}; rFx=function(O){lh[O]&&(O=lh[O],g.e6(O,function(R){gQ[R]&&delete gQ[R]}),O.length=0)}; g.K$=function(O,R,J){oj_(O,R,J===void 0?null:J)}; oj_=function(O,R,J){J=J===void 0?null:J;var l=Z_s(O),u=document.getElementById(l),F=u&&$up(u),G=u&&!F;F?R&&R():(R&&(F=g.uh(l,R),R=""+g.gC(R),V8H[R]=F),G||(u=fD_(O,l,function(){$up(u)||(TEW(u),g.GT(l),g.tF(function(){t8p(l)},0))},J)))}; fD_=function(O,R,J,l){l=l===void 0?null:l;var u=g.cE("SCRIPT");u.id=R;u.onload=function(){J&&setTimeout(J,0)}; u.onreadystatechange=function(){switch(u.readyState){case "loaded":case "complete":u.onload()}}; l&&u.setAttribute("nonce",l);g.GY(u,g.at(O));O=document.getElementsByTagName("head")[0]||document.body;O.insertBefore(u,O.firstChild);return u}; Z_s=function(O){var R=document.createElement("a");g.hx(R,O);O=R.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+fI(O)}; yn=function(O,R){if(O===R)O=!0;else if(Array.isArray(O)&&Array.isArray(R))O=g.bQ(O,R,yn);else if(g.Rb(O)&&g.Rb(R))a:if(g.Lt(O).length!=g.Lt(R).length)O=!1;else{for(var J in O)if(!yn(O[J],R[J])){O=!1;break a}O=!0}else O=!1;return O}; C$=function(O){var R=g.As.apply(1,arguments);if(!wQ(O)||R.some(function(l){return!wQ(l)}))throw Error("Only objects may be merged."); R=g.N(R);for(var J=R.next();!J.done;J=R.next())IV(O,J.value)}; IV=function(O,R){for(var J in R)if(wQ(R[J])){if(J in O&&!wQ(O[J]))throw Error("Cannot merge an object into a non-object.");J in O||(O[J]={});IV(O[J],R[J])}else if(Vn(R[J])){if(J in O&&!Vn(O[J]))throw Error("Cannot merge an array into a non-array.");J in O||(O[J]=[]);SUs(O[J],R[J])}else O[J]=R[J];return O}; SUs=function(O,R){R=g.N(R);for(var J=R.next();!J.done;J=R.next())J=J.value,wQ(J)?O.push(IV({},J)):Vn(J)?O.push(SUs([],J)):O.push(J);return O}; wQ=function(O){return typeof O==="object"&&!Array.isArray(O)}; Vn=function(O){return typeof O==="object"&&Array.isArray(O)}; f$=function(O){g.p.call(this);this.S=O}; SA=function(O){f$.call(this,!0);this.L=O}; Nf=function(O,R){g.p.call(this);var J=this;this.B=[];this.J=!1;this.S=0;this.D=this.j=this.N=!1;this.SN=null;var l=(0,g.iQ)(O,R);this.L=new g.zR(function(){return l(J.SN)},300); g.H(this,this.L);this.W=this.V=Infinity}; N6_=function(O,R){if(!R)return!1;for(var J=0;J-1)throw Error("Deps cycle for: "+R);if(O.S.has(R))return O.S.get(R);if(!O.L.has(R)){if(l)return;throw Error("No provider for: "+R);}l=O.L.get(R);J.push(R);if(l.SI!==void 0)var u=l.SI;else if(l.PCS)u=l[sZ]?aDT(O,l[sZ],J):[],u=l.PCS.apply(l,g.X(u));else if(l.g3){u=l.g3;var F=u[sZ]?aDT(O,u[sZ],J):[];u=new (Function.prototype.bind.apply(u,[null].concat(g.X(F))))}else throw Error("Could not resolve providers for: "+R);J.pop();l.Csu||O.S.set(R,u); return u}; aDT=function(O,R,J){return R?R.map(function(l){return l instanceof Mf?bh(O,l.key,J,!0):bh(O,l,J)}):[]}; A_=function(){WV||(WV=new D5T);return WV}; PV=function(){var O,R;return"h5vcc"in eA&&((O=eA.h5vcc.traceEvent)==null?0:O.traceBegin)&&((R=eA.h5vcc.traceEvent)==null?0:R.traceEnd)?1:"performance"in eA&&eA.performance.mark&&eA.performance.measure?2:0}; p$=function(O){var R=PV();switch(R){case 1:eA.h5vcc.traceEvent.traceBegin("YTLR",O);break;case 2:eA.performance.mark(O+"-start");break;case 0:break;default:zM(R,"unknown trace type")}}; vj_=function(O){var R=PV();switch(R){case 1:eA.h5vcc.traceEvent.traceEnd("YTLR",O);break;case 2:R=O+"-start";var J=O+"-end";eA.performance.mark(J);eA.performance.measure(O,R,J);break;case 0:break;default:zM(R,"unknown trace type")}}; XWA=function(O){var R,J;(J=(R=window).onerror)==null||J.call(R,O.message,"",0,0,O)}; T6f=function(O){var R=this;var J=J===void 0?0:J;var l=l===void 0?g.RJ():l;this.B=J;this.scheduler=l;this.S=new g.tA;this.L=O;for(O={iF:0};O.iF=1E3?u():l>=O?yc||(yc=ww(function(){u();yc=void 0},0)):F-y>=10&&(Q9z(R,J.tier),G.N=F)}; B6p=function(O,R){if(O.endpoint==="log_event"){g.S8("more_accurate_gel_parser")&&Ry().storePayload({isJspb:!1},O.payload);gw(O);var J=iV(O),l=new Map;l.set(J,[O.payload]);var u=eNx(O.payload)||"";R&&(GN=new R);return new g.XH(function(F,G){GN&&GN.isReady()?LSf(l,GN,F,G,{bypassNetworkless:!0},!0,uV(u)):F()})}}; U5B=function(O,R,J){if(R.endpoint==="log_event"){gw(void 0,R);var l=iV(R,!0),u=new Map;u.set(l,[KO(R.payload)]);J&&(GN=new J);return new g.XH(function(F){GN&&GN.isReady()?YUA(u,GN,F,{bypassNetworkless:!0},!0,uV(O)):F()})}}; iV=function(O,R){var J="";if(O.dangerousLogToVisitorSession)J="visitorOnlyApprovedKey";else if(O.cttAuthInfo){if(R===void 0?0:R){R=O.cttAuthInfo.token;J=O.cttAuthInfo;var l=new xB;J.videoId?l.setVideoId(J.videoId):J.playlistId&&b6(l,2,Iy,dX(J.playlistId));CN[R]=l}else R=O.cttAuthInfo,J={},R.videoId?J.videoId=R.videoId:R.playlistId&&(J.playlistId=R.playlistId),rw[O.cttAuthInfo.token]=J;J=O.cttAuthInfo.token}return J}; F5=function(O,R,J){O=O===void 0?{}:O;R=R===void 0?!1:R;new g.XH(function(l,u){var F=KN(R,J),G=F.B;F.B=!1;ta(F.S);ta(F.L);F.L=0;GN&&GN.isReady()?J===void 0&&g.S8("enable_web_tiered_gel")?d5_(l,u,O,R,300,G):d5_(l,u,O,R,J,G):(Q9z(R,J),l())})}; d5_=function(O,R,J,l,u,F){var G=GN;J=J===void 0?{}:J;l=l===void 0?!1:l;u=u===void 0?200:u;F=F===void 0?!1:F;var y=new Map,w=new Map,I={isJspb:l,cttAuthInfo:void 0,tier:u},C={isJspb:l,cttAuthInfo:void 0};if(l){R=g.N(Object.keys(lV));for(u=R.next();!u.done;u=R.next())u=u.value,w=g.S8("enable_web_tiered_gel")?Ry().smartExtractMatchingEntries({keys:[I,C],sizeLimit:1E3}):Ry().extractMatchingEntries({isJspb:!0,cttAuthInfo:u}),w.length>0&&y.set(u,w),(g.S8("web_fp_via_jspb_and_json")&&J.writeThenSend||!g.S8("web_fp_via_jspb_and_json"))&& delete lV[u];YUA(y,G,O,J,!1,F)}else{y=g.N(Object.keys(lV));for(I=y.next();!I.done;I=y.next())I=I.value,C=g.S8("enable_web_tiered_gel")?Ry().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:I,tier:u},{isJspb:!1,cttAuthInfo:I}],sizeLimit:1E3}):Ry().extractMatchingEntries({isJspb:!1,cttAuthInfo:I}),C.length>0&&w.set(I,C),(g.S8("web_fp_via_jspb_and_json")&&J.writeThenSend||!g.S8("web_fp_via_jspb_and_json"))&&delete lV[I];LSf(w,G,O,R,J,!1,F)}}; Q9z=function(O,R){function J(){F5({writeThenSend:!0},O,R)} O=O===void 0?!1:O;R=R===void 0?200:R;var l=KN(O,R),u=l===hNx||l===zNz?5E3:njf;g.S8("web_gel_timeout_cap")&&!l.L&&(u=ww(function(){J()},u),l.L=u); ta(l.S);u=g.YB("LOGGING_BATCH_TIMEOUT",g.N5("web_gel_debounce_ms",1E4));g.S8("shorten_initial_gel_batch_timeout")&&oy&&(u=cFB);u=ww(function(){g.N5("gel_min_batch_size")>0?Ry().getSequenceCount({cttAuthInfo:void 0,isJspb:O,tier:R})>=Oax&&J():J()},u); l.S=u}; LSf=function(O,R,J,l,u,F,G){u=u===void 0?{}:u;var y=Math.round((0,g.Q)()),w=O.size,I=RPs(G);O=g.N(O);var C=O.next();for(G={};!C.done;G={sS:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,l3:void 0,wm:void 0},C=O.next()){var r=g.N(C.value);C=r.next().value;r=r.next().value;G.batchRequest=g.Jx({context:g.IA(R.config_||g.wH())});if(!g.OC(r)&&!g.S8("throw_err_when_logevent_malformed_killswitch")){l();break}G.batchRequest.events=r;(r=rw[C])&&J6h(G.batchRequest,C,r);delete rw[C];G.dangerousLogToVisitorSession= C==="visitorOnlyApprovedKey";gsH(G.batchRequest,y,G.dangerousLogToVisitorSession);iah(u);G.l3=function(t){g.S8("start_client_gcf")&&g.HJ.lS(function(){return g.A(function(Z){return g.k(Z,lSs(t),0)})}); w--;w||J()}; G.sS=0;G.wm=function(t){return function(){t.sS++;if(u.bypassNetworkless&&t.sS===1)try{g.RV(R,I,t.batchRequest,Zg({writeThenSend:!0},t.dangerousLogToVisitorSession,t.l3,t.wm,F)),oy=!1}catch(Z){g.zH(Z),l()}w--;w||J()}}(G); try{g.RV(R,I,G.batchRequest,Zg(u,G.dangerousLogToVisitorSession,G.l3,G.wm,F)),oy=!1}catch(t){g.zH(t),l()}}}; YUA=function(O,R,J,l,u,F){l=l===void 0?{}:l;var G=Math.round((0,g.Q)()),y={value:O.size},w=new Map([].concat(g.X(O)));w=g.N(w);for(var I=w.next();!I.done;I=w.next()){var C=g.N(I.value).next().value,r=O.get(C);I=new WLh;var t=R.config_||g.wH(),Z=new AD,V=new $B;nO(V,1,t.RA);nO(V,2,t.fK);OQ(V,16,t.YY);nO(V,17,t.innertubeContextClientVersion);if(t.EJ){var m=t.EJ,E=new Xo;m.coldConfigData&&nO(E,1,m.coldConfigData);m.appInstallData&&nO(E,6,m.appInstallData);m.coldHashData&&nO(E,3,m.coldHashData);m.hotHashData&& E.TN(m.hotHashData);HS(V,Xo,62,E)}(m=g.YW.devicePixelRatio)&&m!=1&&NR(V,65,b$(m));m=mS();m!==""&&nO(V,54,m);m=EU();if(m.length>0){E=new kB;for(var a=0;a65535&&(O=1);jk("BATCH_CLIENT_COUNTER",O);return O}; J6h=function(O,R,J){if(J.videoId)var l="VIDEO";else if(J.playlistId)l="PLAYLIST";else return;O.credentialTransferTokenTargetId=J;O.context=O.context||{};O.context.user=O.context.user||{};O.context.user.credentialTransferTokens=[{token:R,scope:l}]}; gw=function(O,R){var J=g.hs("yt.logging.transport.enableScrapingForTest"),l=f_("il_payload_scraping");l=(l!==void 0?String(l):"")==="enable_il_payload_scraping";if(!J)if(l)Sr=[],g.dh("yt.logging.transport.enableScrapingForTest",!0),g.dh("yt.logging.transport.scrapedPayloadsForTesting",Sr),g.dh("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.dh("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.dh("yt.logging.transport.scrapeClientEvent",!0);else return;J=g.hs("yt.logging.transport.scrapedPayloadsForTesting");l=g.hs("yt.logging.transport.payloadToScrape");R&&(R=R.payload,(R=g.hs("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(R)())&&J.push(R));R=g.hs("yt.logging.transport.scrapeClientEvent");if(l&&l.length>=1)for(var u=0;u0&&vsA(O,R,F)}else vsA(O,R)}; vsA=function(O,R,J){O=XfH(O);R=R?g.ki(R):"";J=J||5;gZ()&&g.AF(O,R,J)}; XfH=function(O){for(var R=g.N(TZA),J=R.next();!J.done;J=R.next())O=Ah(O,J.value);return"ST-"+fI(O).toString(36)}; $NA=function(O){if(O.name==="JavaException")return!0;O=O.stack;return O.includes("chrome://")||O.includes("chrome-extension://")||O.includes("moz-extension://")}; Mms=function(){this.TG=[];this.Xr=[]}; qP=function(){if(!MP){var O=MP=new Mms;O.Xr.length=0;O.TG.length=0;q$W(O,kvL)}return MP}; q$W=function(O,R){R.Xr&&O.Xr.push.apply(O.Xr,R.Xr);R.TG&&O.TG.push.apply(O.TG,R.TG)}; sUH=function(O){function R(){return O.charCodeAt(l++)} var J=O.length,l=0;do{var u=kU(R);if(u===Infinity)break;var F=u>>3;switch(u&7){case 0:u=kU(R);if(F===2)return u;break;case 1:if(F===2)return;l+=8;break;case 2:u=kU(R);if(F===2)return O.substr(l,u);l+=u;break;case 5:if(F===2)return;l+=4;break;default:return}}while(l500));l++);l=u}else if(typeof O==="object")for(u in O){if(O[u]){var F=u;var G=O[u],y=R,w=J;F=typeof G!=="string"||F!=="clickTrackingParams"&&F!=="trackingParams"?0:(G=sUH(atob(G.replace(/-/g,"+").replace(/_/g,"/"))))?si(F+".ve",G,y,w):0;l+=F;l+=si(u,O[u],R,J);if(l>500)break}}else J[R]=bV(O),l+=J[R].length;else J[R]=bV(O),l+=J[R].length;return l}; si=function(O,R,J,l){J+="."+O;O=bV(R);l[J]=O;return J.length+O.length}; bV=function(O){try{return(typeof O==="string"?O:String(JSON.stringify(O))).substr(0,500)}catch(R){return"unable to serialize "+typeof O+" ("+R.message+")"}}; Kg=function(O){g.WM(O)}; g.Aa=function(O){g.WM(O,"WARNING")}; g.WM=function(O,R){var J=J===void 0?{}:J;J.name=g.YB("INNERTUBE_CONTEXT_CLIENT_NAME",1);J.version=g.YB("INNERTUBE_CONTEXT_CLIENT_VERSION");R=R===void 0?"ERROR":R;var l=!1;R=R===void 0?"ERROR":R;l=l===void 0?!1:l;if(O){O.hasOwnProperty("level")&&O.level&&(R=O.level);if(g.S8("console_log_js_exceptions")){var u=[];u.push("Name: "+O.name);u.push("Message: "+O.message);O.hasOwnProperty("params")&&u.push("Error Params: "+JSON.stringify(O.params));O.hasOwnProperty("args")&&u.push("Error args: "+JSON.stringify(O.args)); u.push("File name: "+O.fileName);u.push("Stacktrace: "+O.stack);window.console.log(u.join("\n"),O)}if(!(Wp2>=5)){u=[];for(var F=g.N(A6A),G=F.next();!G.done;G=F.next()){G=G.value;try{G()&&u.push(G())}catch(m){}}u=[].concat(g.X(eP0),g.X(u));var y=F4z(O);F=y.message||"Unknown Error";G=y.name||"UnknownError";var w=y.stack||O.S||"Not available";if(w.startsWith(G+": "+F)){var I=w.split("\n");I.shift();w=I.join("\n")}I=y.lineNumber||"Not available";y=y.fileName||"Not available";var C=0;if(O.hasOwnProperty("args")&& O.args&&O.args.length)for(var r=0;r=500);r++);else if(O.hasOwnProperty("params")&&O.params){var t=O.params;if(typeof O.params==="object")for(r in t){if(t[r]){var Z="params."+r,V=bV(t[r]);J[Z]=V;C+=Z.length+V.length;if(C>500)break}}else J.params=bV(t)}if(u.length)for(r=0;r=500);r++);navigator.vendor&&!J.hasOwnProperty("vendor")&&(J["device.vendor"]=navigator.vendor);J={message:F,name:G,lineNumber:I, fileName:y,stack:w,params:J,sampleWeight:1};r=Number(O.columnNumber);isNaN(r)||(J.lineNumber=J.lineNumber+":"+r);if(O.level==="IGNORED")O=0;else a:{O=qP();r=g.N(O.Xr);for(u=r.next();!u.done;u=r.next())if(u=u.value,J.message&&J.message.match(u.Q6)){O=u.weight;break a}O=g.N(O.TG);for(r=O.next();!r.done;r=O.next())if(r=r.value,r.callback(J)){O=r.weight;break a}O=1}J.sampleWeight=O;O=g.N(PEx);for(r=O.next();!r.done;r=O.next())if(r=r.value,r.bv[J.name])for(F=g.N(r.bv[J.name]),u=F.next();!u.done;u=F.next())if(G= u.value,u=J.message.match(G.V0)){J.params["params.error.original"]=u[0];F=G.groups;G={};for(I=0;I1E3&&g.Aa(new g.Ys("IL Attach cache exceeded limit"))}y= ha(J,R);jr.has(y)?zN(J,R):LN.set(y,!0)}}l=l.filter(function(C){C.csn!==R?(C.csn=R,C=!0):C=!1;return C}); J={csn:R,parentVe:J.getAsJson(),childVes:g.jO(l,function(C){return C.getAsJson()})}; R==="UNDEFINED_CSN"?nN("visualElementAttached",F,J):O?mK("visualElementAttached",J,O,F):g.wj("visualElementAttached",J,F)}; OgW=function(O,R,J,l,u){cM(J,R);l=Ui({cttAuthInfo:TN(R)||void 0},R);J={csn:R,ve:J.getAsJson(),eventType:1};u&&(J.clientData=u);R==="UNDEFINED_CSN"?nN("visualElementShown",l,J):O?mK("visualElementShown",J,O,l):g.wj("visualElementShown",J,l)}; RvB=function(O,R,J,l){var u=(l=l===void 0?!1:l)?16:8;l=Ui({cttAuthInfo:TN(R)||void 0,endOfSequence:l},R);J={csn:R,ve:J.getAsJson(),eventType:u};R==="UNDEFINED_CSN"?nN("visualElementHidden",l,J):O?mK("visualElementHidden",J,O,l):g.wj("visualElementHidden",J,l)}; Rh=function(O,R,J,l,u){Ok(O,R,J,void 0,l,u)}; Ok=function(O,R,J,l,u){cM(J,R);l=l||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var F=Ui({cttAuthInfo:TN(R)||void 0},R);J={csn:R,ve:J.getAsJson(),gestureType:l};u&&(J.clientData=u);R==="UNDEFINED_CSN"?nN("visualElementGestured",F,J):O?mK("visualElementGestured",J,O,F):g.wj("visualElementGestured",J,F)}; JSh=function(){var O=EZ(16);for(var R=[],J=0;J0&&J.push(g.cE("BR"));J.push(g.O9(F))}):J.push(g.O9(l))}return J}; ro=function(O,R,J,l){if(J==="child"){g.Jh(R);var u;l===void 0?u=void 0:u=!Array.isArray(l)||l&&typeof l.Y==="string"?[l]:l;J=igx(O,u);J=g.N(J);for(O=J.next();!O.done;O=J.next())R.appendChild(O.value)}else J==="style"?g.pS(R,"cssText",l?l:""):l===null||l===void 0?R.removeAttribute(J):(O=l.toString(),J==="href"&&(O=g.U5(g.Yb(O))),R.setAttribute(J,O))}; g.L=function(O){g.Ih.call(this,O);this.ou=!0;this.D=!1;this.listeners=[]}; g.tQ=function(O){g.L.call(this,O);this.AR=new g.y8;g.H(this,this.AR)}; oh=function(O,R,J,l,u,F,G){G=G===void 0?null:G;g.tQ.call(this,R);this.api=O;this.macros={};this.componentType=J;this.J=this.V=null;this.fJ=G;this.layoutId=l;this.interactionLoggingClientData=u;this.zd=F;this.Gd=null;this.Vn=new SA(this.element);g.H(this,this.Vn);this.sQ=this.U(this.element,"click",this.onClick);this.iz=[];this.OQ=new Nf(this.onClick,this);g.H(this,this.OQ);this.Rz=!1;this.xS=this.SN=null}; Z$=function(O,R){O=O===void 0?null:O;R=R===void 0?null:R;if(O==null)return g.Aa(Error("Got null or undefined adText object")),"";var J=g.Vr(O.text);if(!O.isTemplated)return J;if(R==null)return g.Aa(Error("Missing required parameters for a templated message")),J;O=g.N(Object.entries(R));for(R=O.next();!R.done;R=O.next()){var l=g.N(R.value);R=l.next().value;l=l.next().value;J=J.replace("{"+R+"}",l)}return J}; lAx=function(O){O=O===void 0?null:O;return O!=null&&(O=O.thumbnail,O!=null&&O.thumbnails!=null&&O.thumbnails.length!=0&&O.thumbnails[0].url!=null)?g.Vr(O.thumbnails[0].url):""}; uIp=function(O){O=O===void 0?null:O;return O!=null&&(O=O.thumbnail,O!=null&&O.thumbnails!=null&&O.thumbnails.length!=0&&O.thumbnails[0].width!=null&&O.thumbnails[0].height!=null)?new g.so(O.thumbnails[0].width||0,O.thumbnails[0].height||0):new g.so(0,0)}; g.V8=function(O){if(O.simpleText)return O.simpleText;if(O.runs){var R=[];O=g.N(O.runs);for(var J=O.next();!J.done;J=O.next())J=J.value,J.text&&R.push(J.text);return R.join("")}return""}; g.fe=function(O){if(O.simpleText)return O=document.createTextNode(O.simpleText),O;var R=[];if(O.runs)for(var J=0;J1){for(var R=[O[0]],J=1;J0&&(this.L=new g.zR(this.Aw,R,this),g.H(this,this.L));this.D=new g.zR(this.Aw,J,this);g.H(this,this.D);this.V=DGH(this.S,u,1,l);g.H(this,this.V);this.J=DGH(this.S,0,l,1);g.H(this,this.J);this.N=new Tv;g.H(this,this.N)}; yS=function(O,R,J){this.S=O;this.isAsync=R;this.L=J}; L32=function(O){switch(O){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:zM(O,"unknown result type")}}; Y4s=function(O,R){var J=1;O.isTrusted===!1&&(J=0);jk("ISDSTAT",J);wK(J,"i.s_",{triggerContext:"sk",metadata:R});return J}; d$H=function(O,R){var J=[];R?R.isTrusted===!0?J.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):R.isTrusted===!1?J.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):J.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):J.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");wK(0,"a.s_",{metadata:O,states:J});jk("ASDSTAT",0)}; wK=function(O,R,J){R=hvh[R];var l,u,F={detected:O===0,source:""+R.S+((l=J.triggerContext)!=null?l:"")+((u=J.Kb)!=null?u:""),detectionStates:J.states,durationMs:J.T0};J.metadata&&(F.contentCpn=J.metadata.contentCpn,F.adCpn=J.metadata.adCpn);g.wj("biscottiBasedDetection",F);R.L!==void 0&&(J=Number(g.YB("CATSTAT",0)),R.L!==void 0?(R=R.L,O=L32(O),O=J&~(3<0}; VS=function(O,R,J,l,u,F){RH.call(this,O,{Y:"div",G:"ytp-ad-skip-button-slot"},"skip-button",R,J,l,u);var G=this;this.Hq=null;this.N1=!1;this.JR=F;this.j=this.api.T().experiments.Vh("enable_modern_skip_button_on_web");this.Td=!1;this.N=new g.tQ({Y:"span",q1:["ytp-ad-skip-button-container"]});this.j&&this.N.element.classList.add("ytp-ad-skip-button-container-detached");g.H(this,this.N);this.N.hR(this.element);this.S=this.B=null;this.KJ=new g.iz(this.N,500,!1,100,function(){return G.hide()}); g.H(this,this.KJ);this.Qh=new K9(this.N.element,15E3,5E3,.5,.5,this.j);g.H(this,this.Qh);this.hide()}; nSh=function(O){O=O.Hq&&O.Hq.adRendererCommands;return(O&&O.clickCommand&&g.x(O.clickCommand,g.f9)&&g.x(O.clickCommand,g.f9).commands||[]).some(function(R){return R.adLifecycleCommand?zvW(R.adLifecycleCommand):!1})}; zvW=function(O){return O.action==="END_LINEAR_AD"||O.action==="END_LINEAR_AD_PLACEMENT"}; Sg=function(O,R,J,l,u,F){RH.call(this,O,{Y:"div",G:"ytp-ad-skip-ad-slot"},"skip-ad",R,J,l,u);this.Hq=F;this.N=!1;this.j=0;this.B=this.S=null;this.hide()}; cSW=function(O,R){O.N||(O.N=!0,O.S&&(R?O.S.Hq.hide():O.S.hide()),R?(O=O.B,O.KJ.show(),O.show()):O.B.show())}; Nt=function(O,R,J,l){bW.call(this,O,R,J,l,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; m6=function(O,R,J,l,u,F,G){F=F===void 0?!1:F;G=G===void 0?!1:G;oh.call(this,O,{Y:"span",G:"ytp-ad-simple-ad-badge"},"simple-ad-badge",R,J,l);this.B=u;this.L=this.Bq("ytp-ad-simple-ad-badge");(this.S=F)&&this.L.classList.add("ytp-ad-simple-ad-badge--clean-player");G&&this.L.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; Er=function(O,R,J,l,u){u=u===void 0?!1:u;Ke.call(this,"player-overlay",O,{},R,l);this.videoAdDurationSeconds=J;this.interactionLoggingClientData=l;this.hS=u}; D_=function(O,R){g.y8.call(this);this.api=O;this.durationMs=R;this.L=null;this.Rj=new Tv(this);g.H(this,this.Rj);this.S=Or2;this.Rj.U(this.api,"presentingplayerstatechange",this.uw);this.L=this.Rj.U(this.api,"onAdPlaybackProgress",this.v3)}; aH=function(O){g.y8.call(this);this.L=!1;this.Oc=0;this.Rj=new Tv(this);g.H(this,this.Rj);this.durationMs=O;this.Jp=new g.Ph(100);g.H(this,this.Jp);this.Rj.U(this.Jp,"tick",this.v3);this.S={seekableStart:0,seekableEnd:O/1E3,current:0};this.start()}; g.vI=function(O,R){var J=Math.abs(Math.floor(O)),l=Math.floor(J/86400),u=Math.floor(J%86400/3600),F=Math.floor(J%3600/60);J=Math.floor(J%60);if(R){R="";l>0&&(R+=" "+l+" d\u00edas");if(l>0||u>0)R+=" "+u+" horas";R+=" "+F+" minutos";R+=" "+J+" segundos";l=R.trim()}else{R="";l>0&&(R+=l+":",u<10&&(R+="0"));if(l>0||u>0)R+=u+":",F<10&&(R+="0");R+=F+":";J<10&&(R+="0");l=R+J}return O>=0?l:"-"+l}; g.XM=function(O){return(!("button"in O)||typeof O.button!=="number"||O.button===0)&&!("shiftKey"in O&&O.shiftKey)&&!("altKey"in O&&O.altKey)&&!("metaKey"in O&&O.metaKey)&&!("ctrlKey"in O&&O.ctrlKey)}; Tk=function(O,R,J,l,u,F,G){RH.call(this,O,{Y:"span",G:G?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",R,J,l,u);this.videoAdDurationSeconds=F;this.S=null;G&&this.api.T().S&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),YS&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; $0=function(O,R,J,l){cT.call(this,O,R,J,l,"ytp-video-ad-top-bar-title","ad-title")}; Mt=function(O){this.content=O.content;if(O.commandRuns){O=g.N(O.commandRuns);for(var R=O.next();!R.done;R=O.next())R=R.value,this.loggingDirectives=g.x(R,RqW),R.onTap&&(this.interaction={onTap:R.onTap})}}; qt=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ad-simple-attributed-string"},"ad-simple-attributed-string",R,J,l);this.hide()}; k0=function(O,R,J,l,u){oh.call(this,O,{Y:"span",G:u?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",R,J,l);this.S=u;this.adBadgeText=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);this.adBadgeText.hR(this.element);g.H(this,this.adBadgeText);u?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),YS&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; sr=function(O,R,J,l){oh.call(this,O,{Y:"span",G:"ytp-ad-pod-index"},"ad-pod-index",R,J,l);this.api.T().S&&(this.element.classList.add("ytp-ad-pod-index--mweb"),YS&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; bz=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",R,J,l);this.hide()}; WI=function(O,R){this.S=O;this.L=R}; AT=function(O,R,J){if(!O.getLength())return J!=null?J:Infinity;O=(R-O.S)/O.getLength();return g.TY(O,0,1)}; eg=function(O,R,J,l){l=l===void 0?!1:l;g.tQ.call(this,{Y:"div",G:"ytp-ad-persistent-progress-bar-container",K:[{Y:"div",G:"ytp-ad-persistent-progress-bar"}]});this.api=O;this.S=R;this.B=J;l&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.H(this,this.S);this.progressBar=this.Bq("ytp-ad-persistent-progress-bar");this.L=-1;this.U(O,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; PI=function(O,R,J,l,u,F){oh.call(this,O,{Y:"div",G:"ytp-ad-player-overlay",K:[{Y:"div",G:"ytp-ad-player-overlay-flyout-cta"},{Y:"div",G:"ytp-ad-player-overlay-instream-info"},{Y:"div",G:"ytp-ad-player-overlay-skip-or-preview"},{Y:"div",G:"ytp-ad-player-overlay-progress-bar"},{Y:"div",G:"ytp-ad-player-overlay-instream-user-sentiment"},{Y:"div",G:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",R,J,l);this.W=F;this.j=this.Bq("ytp-ad-player-overlay-flyout-cta");this.j.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.L=this.Bq("ytp-ad-player-overlay-instream-info");this.N=null;J2_(this)&&(O=nI("div"),g.F8(O,"ytp-ad-player-overlay-top-bar-gradients"),R=this.L,R.parentNode&&R.parentNode.insertBefore(O,R),(R=this.api.getVideoData(2))&&R.isListed&&R.title&&(J=new $0(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),J.hR(O),J.init(GI("ad-title"),{text:R.title},this.macros),g.H(this,J)),this.N=O);this.B=null;this.Iu=this.Bq("ytp-ad-player-overlay-skip-or-preview");this.Qh=this.Bq("ytp-ad-player-overlay-progress-bar"); this.N1=this.Bq("ytp-ad-player-overlay-instream-user-sentiment");this.Hq=this.Bq("ytp-ad-player-overlay-ad-disclosure-banner");this.S=u;g.H(this,this.S);this.hide()}; J2_=function(O){O=O.api.T();var R=g.p9(O)&&O.S;return O.Z("embeds_embc3ds_atb")&&O.disableOrganicUi&&!0||R}; BI=function(O,R,J){var l={};R&&(l.v=R);J&&(l.list=J);O={name:O,locale:void 0,feature:void 0};for(var u in l)O[u]=l[u];l=g.s9("/sharing_services",O);g.He(l)}; g.HI=function(O){O&=16777215;var R=[(O&16711680)>>16,(O&65280)>>8,O&255];O=R[0];var J=R[1];R=R[2];O=Number(O);J=Number(J);R=Number(R);if(O!=(O&255)||J!=(J&255)||R!=(R&255))throw Error('"('+O+","+J+","+R+'") is not a valid RGB color');J=O<<16|J<<8|R;return O<16?"#"+(16777216|J).toString(16).slice(1):"#"+J.toString(16)}; x0=function(O){this.L=new Mx(O)}; g8T=function(){var O=!1;try{O=!!window.sessionStorage.getItem("session_logininfo")}catch(R){O=!0}return(g.YB("INNERTUBE_CLIENT_NAME")==="WEB"||g.YB("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&O}; Ur=function(){var O=O===void 0?!0:O;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");jk("LOGIN_INFO","");O&&window.sessionStorage.setItem("from_switch_account","1");O=!0;O=O===void 0?!1:O;var R,J=irT;J||(J=document.querySelector("#persist_identity"));if(R=J){var l=R.src?(new URL(R.src)).origin:"*";if(O){var u;(u=R.contentWindow)==null||u.postMessage({action:"clear"},l)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var F=window.sessionStorage.getItem("session_logininfo");if(F){var G;(G=R.contentWindow)==null||G.postMessage({loginInfo:F},l)}}}}catch(y){}}; jg=function(O){O&&(O.startsWith("https://accounts.google.com/AddSession")?Ur():O.startsWith("https://accounts.google.com/ServiceLogin")?Ur():O.startsWith("https://myaccount.google.com")&&O.endsWith("/youtubeoptions")&&Ur());if(g.YB("LOGGED_IN",!0)&&g8T()){var R=g.YB("VALID_SESSION_TEMPDATA_DOMAINS",[]);var J=g.vQ(window.location.href);J&&R.push(J);J=g.vQ(O);g.Zo(R,J)||!J&&tx(O,"/")?(R=Tf(O),(R=cVh(R))?(R=XfH(R),R=(R=g.e8(R)||null)?JF(R):{}):R=null):R=null;R==null&&(R={});J=R;var l=void 0;g8T()?(l|| (l=g.YB("LOGIN_INFO")),l?(J.session_logininfo=l,J=!0):J=!1):J=!1;J&&$U(O,R)}}; g.lZs=function(O){var R=R===void 0?{}:R;var J=J===void 0?"":J;var l=l===void 0?window:l;O=g.s9(O,R);jg(O);J=g.Yb(O+J);l=l.location;J=dY(J);J!==void 0&&(l.href=J)}; g.QS=function(O,R,J){R=R===void 0?{}:R;J=J===void 0?!1:J;var l=g.YB("EVENT_ID");l&&(R.ei||(R.ei=l));R&&$U(O,R);J||(jg(O),g.lZs(O))}; g.L9=function(O,R,J,l,u){u=u===void 0?!1:u;J&&$U(O,J);J=g.Yb(O);var F=g.U5(J);O!=F&&ci(Error("Unsafe window.open URL: "+O));O=F;R=R||fI(O).toString(36);try{if(u)return u=O,u=lD2(u),jg(u),g.Jg(window,u,R,"attributionsrc")}catch(G){g.zH(G)}jg(O);return g.Jg(window,J,R,l)}; ues=function(O){Y0=O}; FM_=function(O){dK=O}; G$A=function(O){hT=O}; y2z=function(){KM_=hT=dK=Y0=null}; IZz=function(){var O=O===void 0?window.location.href:O;if(g.S8("kevlar_disable_theme_param"))return null;var R=Xt(O);if(g.S8("enable_dark_theme_only_on_shorts")&&R!=null&&R.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var J=g.il(O).theme;return weT.get(J)||null}catch(l){}return null}; zk=function(){this.L={};if(this.S=wJ2()){var O=g.e8("CONSISTENCY");O&&CdA(this,{encryptedTokenJarContents:O})}}; CdA=function(O,R){if(R.encryptedTokenJarContents&&(O.L[R.encryptedTokenJarContents]=R,typeof R.expirationSeconds==="string")){var J=Number(R.expirationSeconds);setTimeout(function(){delete O.L[R.encryptedTokenJarContents]},J*1E3); O.S&&g.AF("CONSISTENCY",R.encryptedTokenJarContents,J,void 0,!0)}}; cI=function(){this.S=-1;var O=g.YB("LOCATION_PLAYABILITY_TOKEN");g.YB("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=n9(this))&&(O=this.localStorage.get("yt-location-playability-token"));O&&(this.locationPlayabilityToken=O,this.L=void 0)}; n9=function(O){return O.localStorage===void 0?new iq("yt-client-location"):O.localStorage}; g.O8=function(O,R,J){R=R===void 0?!1:R;J=J===void 0?!1:J;var l=g.YB("INNERTUBE_CONTEXT");if(!l)return g.WM(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};l=g.Jx(l);g.S8("web_no_tracking_params_in_shell_killswitch")||delete l.clickTracking;l.client||(l.client={});var u=l.client;u.clientName==="MWEB"&&u.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(u.clientFormFactor=g.YB("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");u.screenWidthPoints=window.innerWidth;u.screenHeightPoints= window.innerHeight;u.screenPixelDensity=Math.round(window.devicePixelRatio||1);u.screenDensityFloat=window.devicePixelRatio||1;u.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var F=F===void 0?!1:F;g.Hf();var G="USER_INTERFACE_THEME_LIGHT";g.xs(0,165)?G="USER_INTERFACE_THEME_DARK":g.xs(0,174)?G="USER_INTERFACE_THEME_LIGHT":!g.S8("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (G="USER_INTERFACE_THEME_DARK");F=F?G:IZz()||G;u.userInterfaceTheme=F;if(!R){if(F=nPT())u.connectionType=F;g.S8("web_log_effective_connection_type")&&(F=OMA())&&(l.client.effectiveConnectionType=F)}var y;if(g.S8("web_log_memory_total_kbytes")&&((y=g.YW.navigator)==null?0:y.deviceMemory)){var w;y=(w=g.YW.navigator)==null?void 0:w.deviceMemory;l.client.memoryTotalKbytes=""+y*1E6}g.S8("web_gcf_hashes_innertube")&&(F=Fsp())&&(w=F.coldConfigData,y=F.coldHashData,F=F.hotHashData,l.client.configInfo=l.client.configInfo|| {},w&&(l.client.configInfo.coldConfigData=w),y&&(l.client.configInfo.coldHashData=y),F&&(l.client.configInfo.hotHashData=F));w=g.il(g.YW.location.href);!g.S8("web_populate_internal_geo_killswitch")&&w.internalcountrycode&&(u.internalGeo=w.internalcountrycode);u.clientName==="MWEB"||u.clientName==="WEB"?(u.mainAppWebInfo={graftUrl:g.YW.location.href},g.S8("kevlar_woffle")&&j8W.instance&&(w=j8W.instance,u.mainAppWebInfo.pwaInstallabilityStatus=!w.L&&w.S?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),u.mainAppWebInfo.webDisplayMode=Pf(),u.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):u.clientName==="TVHTML5"&&(!g.S8("web_lr_app_quality_killswitch")&&(w=g.YB("LIVING_ROOM_APP_QUALITY"))&&(u.tvAppInfo=Object.assign(u.tvAppInfo||{},{appQuality:w})),w=g.YB("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(u.tvAppInfo=Object.assign(u.tvAppInfo||{},{certificationScope:w}));if(!g.S8("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var I=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(W){}I=void 0}I&&(u.timeZone=I)}(I=mS())?u.experimentsToken=I:delete u.experimentsToken;I=EU();zk.instance||(zk.instance=new zk);l.request=Object.assign({},l.request,{internalExperimentFlags:I,consistencyTokenJars:g.Q6(zk.instance.L)});!g.S8("web_prequest_context_killswitch")&&(I=g.YB("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(l.request.externalPrequestContext=I);u=g.Hf();I=g.xs(0,58);u=u.get("gsml","");l.user=Object.assign({}, l.user);I&&(l.user.enableSafetyMode=I);u&&(l.user.lockedSafetyMode=!0);g.S8("warm_op_csn_cleanup")?J&&(R=g.X5())&&(l.clientScreenNonce=R):!R&&(R=g.X5())&&(l.clientScreenNonce=R);O&&(l.clickTracking={clickTrackingParams:O});if(O=g.hs("yt.mdx.remote.remoteClient_"))l.remoteClient=O;cI.getInstance().setLocationOnInnerTubeContext(l);try{var C=I9(),r=C.bid;delete C.bid;l.adSignalsInfo={params:[],bid:r};for(var t=g.N(Object.entries(C)),Z=t.next();!Z.done;Z=t.next()){var V=g.N(Z.value),m=V.next().value, E=V.next().value;C=m;r=E;O=void 0;(O=l.adSignalsInfo.params)==null||O.push({key:C,value:""+r})}var a,v;if(((a=l.client)==null?void 0:a.clientName)==="TVHTML5"||((v=l.client)==null?void 0:v.clientName)==="TVHTML5_UNPLUGGED"){var b=g.YB("INNERTUBE_CONTEXT");b.adSignalsInfo&&(l.adSignalsInfo.advertisingId=b.adSignalsInfo.advertisingId,l.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",l.adSignalsInfo.limitAdTracking=b.adSignalsInfo.limitAdTracking)}}catch(W){g.WM(W)}return l}; o82=function(O,R){if(!O)return!1;var J,l=(J=g.x(O,r22))==null?void 0:J.signal;if(l&&R.KN)return!!R.KN[l];var u;if((J=(u=g.x(O,thL))==null?void 0:u.request)&&R.P9)return!!R.P9[J];for(var F in O)if(R.AX[F])return!0;return!1}; ZrH=function(O){var R={"Content-Type":"application/json"};g.YB("EOM_VISITOR_DATA")?R["X-Goog-EOM-Visitor-Id"]=g.YB("EOM_VISITOR_DATA"):g.YB("VISITOR_DATA")&&(R["X-Goog-Visitor-Id"]=g.YB("VISITOR_DATA"));R["X-Youtube-Bootstrap-Logged-In"]=g.YB("LOGGED_IN",!1);g.YB("DEBUG_SETTINGS_METADATA")&&(R["X-Debug-Settings-Metadata"]=g.YB("DEBUG_SETTINGS_METADATA"));O!=="cors"&&((O=g.YB("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(R["X-Youtube-Client-Name"]=O),(O=g.YB("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(R["X-Youtube-Client-Version"]= O),(O=g.YB("CHROME_CONNECTED_HEADER"))&&(R["X-Youtube-Chrome-Connected"]=O),(O=g.YB("DOMAIN_ADMIN_STATE"))&&(R["X-Youtube-Domain-Admin-State"]=O),g.YB("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(O=g.YB("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(R["X-YouTube-Lava-Device-Context"]=O));return R}; VhT=function(){this.L={}}; Rc=function(){this.mappings=new VhT}; J9=function(O){return function(){return new O}}; SOW=function(O){var R=R===void 0?"UNKNOWN_INTERFACE":R;if(O.length===1)return O[0];var J=fZz[R];if(J){J=new RegExp(J);for(var l=g.N(O),u=l.next();!u.done;u=l.next())if(u=u.value,J.exec(u))return u}var F=[];Object.entries(fZz).forEach(function(G){var y=g.N(G);G=y.next().value;y=y.next().value;R!==G&&F.push(y)}); J=new RegExp(F.join("|"));O.sort(function(G,y){return G.length-y.length}); l=g.N(O);for(u=l.next();!u.done;u=l.next())if(u=u.value,!J.exec(u))return u;return O[0]}; g.gA=function(O){return"/youtubei/v1/"+SOW(O)}; iX=function(){}; lX=function(){}; Z2=function(){}; V0=function(O){return g.hs("ytcsi."+(O||"")+"data_")||NHs(O)}; md_=function(){var O=V0();O.info||(O.info={});return O.info}; fZ=function(O){O=V0(O);O.metadata||(O.metadata={});return O.metadata}; Sq=function(O){O=V0(O);O.tick||(O.tick={});return O.tick}; Nj=function(O){O=V0(O);if(O.gel){var R=O.gel;R.gelInfos||(R.gelInfos={});R.gelTicks||(R.gelTicks={})}else O.gel={gelTicks:{},gelInfos:{}};return O.gel}; E8z=function(O){O=Nj(O);O.gelInfos||(O.gelInfos={});return O.gelInfos}; mh=function(O){var R=V0(O).nonce;R||(R=g.DO(16),V0(O).nonce=R);return R}; NHs=function(O){var R={tick:{},info:{}};g.dh("ytcsi."+(O||"")+"data_",R);return R}; E8=function(){var O=g.hs("ytcsi.debug");O||(O=[],g.dh("ytcsi.debug",O),g.dh("ytcsi.reference",{}));return O}; D2=function(O){O=O||"";var R=DdH();if(R[O])return R[O];var J=E8(),l={timerName:O,info:{},tick:{},span:{},jspbInfo:[]};J.push(l);return R[O]=l}; aZ2=function(O){O=O||"";var R=DdH();R[O]&&delete R[O];var J=E8(),l={timerName:O,info:{},tick:{},span:{},jspbInfo:[]};J.push(l);R[O]=l}; DdH=function(){var O=g.hs("ytcsi.reference");if(O)return O;E8();return g.hs("ytcsi.reference")}; ac=function(O){return v8B[O]||"LATENCY_ACTION_UNKNOWN"}; vp=function(O,R){rH.call(this,1,arguments);this.Jp=R}; Xi=function(){this.L=0}; TO=function(){Xi.instance||(Xi.instance=new Xi);return Xi.instance}; Mj=function(O,R){$3[R]=$3[R]||{count:0};var J=$3[R];J.count++;J.time=(0,g.Q)();O.L||(O.L=g.cf(0,function(){var l=(0,g.Q)(),u;for(u in $3)$3[u]&&l-$3[u].time>6E4&&delete $3[u];O&&(O.L=0)},5E3)); return J.count>5?(J.count===6&&Math.random()*1E5<1&&(J=new g.Ys("CSI data exceeded logging limit with key",R.split("_")),R.indexOf("plev")>=0||g.Aa(J)),!0):!1}; XeA=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; THf=function(){var O;if(g.S8("csi_use_performance_navigation_timing")||g.S8("csi_use_performance_navigation_timing_tvhtml5")){var R,J,l,u=qj==null?void 0:(O=qj.getEntriesByType)==null?void 0:(R=O.call(qj,"navigation"))==null?void 0:(J=R[0])==null?void 0:(l=J.toJSON)==null?void 0:l.call(J);u?(u.requestStart=k3(u.requestStart),u.responseEnd=k3(u.responseEnd),u.redirectStart=k3(u.redirectStart),u.redirectEnd=k3(u.redirectEnd),u.domainLookupEnd=k3(u.domainLookupEnd),u.connectStart=k3(u.connectStart), u.connectEnd=k3(u.connectEnd),u.responseStart=k3(u.responseStart),u.secureConnectionStart=k3(u.secureConnectionStart),u.domainLookupStart=k3(u.domainLookupStart),u.isPerformanceNavigationTiming=!0,O=u):O=qj.timing}else O=g.S8("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(qj.timing)):qj.timing;return O}; k3=function(O){return Math.round(s8()+O)}; s8=function(){return(g.S8("csi_use_time_origin")||g.S8("csi_use_time_origin_tvhtml5"))&&qj.timeOrigin?Math.floor(qj.timeOrigin):qj.timing.navigationStart}; Wp=function(O,R){bX("_start",O,R)}; A9=function(O,R){if(!g.S8("web_csi_action_sampling_enabled")||!V0(R).actionDisabled){var J=D2(R||"");C$(J.info,O);O.loadType&&(J=O.loadType,fZ(R).loadType=J);C$(E8z(R),O);J=mh(R);R=V0(R).cttAuthInfo;TO().info(O,J,R)}}; $dW=function(){var O,R,J,l;return((l=A_().resolve(qf(Kr))==null?void 0:(O=yb())==null?void 0:(R=O.loggingHotConfig)==null?void 0:(J=R.csiConfig)==null?void 0:J.debugTicks)!=null?l:[]).map(function(u){return Object.values(u)[0]})}; bX=function(O,R,J){if(!g.S8("web_csi_action_sampling_enabled")||!V0(J).actionDisabled){var l=mh(J),u;if(u=g.S8("web_csi_debug_sample_enabled")&&l){(A_().resolve(qf(Kr))==null?0:yb())&&!Mhs&&(Mhs=!0,bX("gcfl",(0,g.Q)(),J));var F,G,y;u=(A_().resolve(qf(Kr))==null?void 0:(F=yb())==null?void 0:(G=F.loggingHotConfig)==null?void 0:(y=G.csiConfig)==null?void 0:y.debugSampleWeight)||0;if(F=u!==0)b:{F=$dW();if(F.length>0)for(G=0;GJ.duration?l:J},{duration:0}))&&R.startTime>0&&R.responseEnd>0&&(bX("wffs",k3(R.startTime)),bX("wffe",k3(R.responseEnd)))}; eqf=function(O,R,J){qj&&qj.measure&&(O.startsWith("measure_")||(O="measure_"+O),J?qj.measure(O,R,J):R?qj.measure(O,R):qj.measure(O))}; PdB=function(O){var R=eq("aft",O);if(R)return R;R=g.YB((O||"")+"TIMING_AFT_KEYS",["ol"]);for(var J=R.length,l=0;l0&&A9(R);R={isNavigation:!0,actionType:ac(g.YB("TIMING_ACTION"))};var J=g.YB("PREVIOUS_ACTION");J&&(R.previousAction=ac(J));if(J=g.YB("CLIENT_PROTOCOL"))R.httpProtocol=J;if(J=g.YB("CLIENT_TRANSPORT"))R.transportProtocol=J;(J=g.X5())&&J!=="UNDEFINED_CSN"&&(R.clientScreenNonce=J);J=sAf();if(J===1||J===-1)R.isVisible= !0;J=fZ().loadType==="cold";var l=md_();J||(J=l.yt_lt==="cold");if(J){R.loadType="cold";J=md_();l=THf();var u=s8(),F=g.YB("CSI_START_TIMESTAMP_MILLIS",0);F>0&&!g.S8("embeds_web_enable_csi_start_override_killswitch")&&(u=F);u&&(bX("srt",l.responseStart),J.prerender!==1&&Wp(u));J=HrA();J>0&&bX("fpt",J);J=THf();J.isPerformanceNavigationTiming&&A9({performanceNavigationTiming:!0},void 0);bX("nreqs",J.requestStart,void 0);bX("nress",J.responseStart,void 0);bX("nrese",J.responseEnd,void 0);J.redirectEnd- J.redirectStart>0&&(bX("nrs",J.redirectStart,void 0),bX("nre",J.redirectEnd,void 0));J.domainLookupEnd-J.domainLookupStart>0&&(bX("ndnss",J.domainLookupStart,void 0),bX("ndnse",J.domainLookupEnd,void 0));J.connectEnd-J.connectStart>0&&(bX("ntcps",J.connectStart,void 0),bX("ntcpe",J.connectEnd,void 0));J.secureConnectionStart>=s8()&&J.connectEnd-J.secureConnectionStart>0&&(bX("nstcps",J.secureConnectionStart,void 0),bX("ntcpe",J.connectEnd,void 0));qj&&"getEntriesByType"in qj&&A2h();J=[];if(document.querySelector&& qj&&qj.getEntriesByName)for(var G in Bp)Bp.hasOwnProperty(G)&&(l=Bp[G],WMB(G,l)&&J.push(l));if(J.length>0)for(R.resourceInfo=[],G=g.N(J),J=G.next();!J.done;J=G.next())R.resourceInfo.push({resourceCache:J.value})}A9(R);R=Nj();R.preLoggedGelInfos||(R.preLoggedGelInfos=[]);G=R.preLoggedGelInfos;R=E8z();J=void 0;for(l=0;l-1&&(delete mH["@type"],Y=mH);m&&O.S.has(m)&&O.S.delete(m);((xW=R.config)==null?0:xW.hfu)&&x3(R.config.hfu);if(Y||(ab=O.B)==null||!ab.I2q(R.input,R.p8)){$W.pJ(15);break}return g.k($W,O.B.VOd(R.input,R.p8),16);case 16:Y=$W.L;case 15:return uZz(O,Y,R),((Kt=R.config)==null?0:Kt.C0z)&&x3(R.config.C0z),l(),$W.return(Y|| void 0)}})}; Rux=function(O,R){a:{O=O.xw;var J,l=(J=g.x(R,r22))==null?void 0:J.signal;if(l&&O.KN&&(J=O.KN[l])){var u=J();break a}var F;if((J=(F=g.x(R,thL))==null?void 0:F.request)&&O.P9&&(F=O.P9[J])){u=F();break a}for(u in R)if(O.AX[u]&&(R=O.AX[u])){u=R();break a}u=void 0}if(u!==void 0)return Promise.resolve(u)}; g5p=function(O,R,J){var l,u,F,G,y,w,I;return g.A(function(C){if(C.S==1){F=((l=R)==null?void 0:(u=l.y4)==null?void 0:u.identity)||Cr;w=(G=R)==null?void 0:(y=G.y4)==null?void 0:y.sessionIndex;var r=g.$t(O.L.uP(F,{sessionIndex:w}));return g.k(C,r,2)}I=C.L;return C.return(Promise.resolve(Object.assign({},ZrH(J),I)))})}; J_W=function(O,R,J){var l,u=(R==null?void 0:(l=R.y4)==null?void 0:l.identity)||Cr,F;R=R==null?void 0:(F=R.y4)==null?void 0:F.sessionIndex;O=O.L.uP(u,{sessionIndex:R});return Object.assign({},ZrH(J),O)}; nZ=function(){}; cp=function(){}; OX=function(O){this.j=O}; Rz=function(){}; Jq=function(){}; gD=function(){}; iH=function(){}; g.lH=function(O,R){var J=g.As.apply(2,arguments);O=O===void 0?0:O;g.Ys.call(this,R,J);this.errorType=O;Object.setPrototypeOf(this,this.constructor.prototype)}; uH=function(O,R,J,l){this.L=O;this.S=R;this.B=J;this.N=l}; GTH=function(O,R,J){if(O.L){var l=Xt(Ah(R,"key"))||"/UNKNOWN_PATH";O.L.start(l)}l=J;g.S8("wug_networking_gzip_request")&&(l=ewx(J));var u;return new ((u=O.N)!=null?u:window.Request)(R,l)}; g.GS=function(O,R){if(!F9){var J=A_();k5(J,{ox:KRs,g3:uH});var l={AX:{feedbackEndpoint:J9(Rz),modifyChannelNotificationPreferenceEndpoint:J9(Jq),playlistEditEndpoint:J9(gD),shareEntityEndpoint:J9(OX),subscribeEndpoint:J9(nZ),unsubscribeEndpoint:J9(cp),webPlayerShareEntityServiceEndpoint:J9(iH)}},u=cI.getInstance(),F={};u&&(F.client_location=u);O===void 0&&(O=Q82());R===void 0&&(R=J.resolve(KRs));O$0(l,R,O,F);k5(J,{ox:y_h,SI:dA.instance});F9=J.resolve(y_h)}return F9}; wVB=function(O){var R=new Cd;if(O.interpreterJavascript){var J=XXp(O.interpreterJavascript);J=uL(J).toString();var l=new wl;nO(l,6,J);HS(R,wl,1,l,Sw)}else O.interpreterUrl&&(J=Dy(O.interpreterUrl),J=Hl(J).toString(),l=new IC,nO(l,4,J),HS(R,IC,2,l,Sw));O.interpreterHash&&cS(R,3,O.interpreterHash,Sw);O.program&&cS(R,4,O.program,Sw);O.globalName&&cS(R,5,O.globalName,Sw);O.clientExperimentsStateBlob&&cS(R,7,O.clientExperimentsStateBlob,Sw);return R}; Kk=function(O){var R={};O=O.split("&");O=g.N(O);for(var J=O.next();!J.done;J=O.next())J=J.value.split("="),J.length===2&&(R[J[0]]=J[1]);return R}; kXB=function(){if(g.S8("bg_st_hr"))return"havuokmhhs-0";var O,R=((O=performance)==null?void 0:O.timeOrigin)||0;return"havuokmhhs-"+Math.floor(R)}; yC=function(O){this.L=O}; IO_=function(){return new Promise(function(O){var R=window.top;R.ntpevasrs!==void 0?O(new yC(R.ntpevasrs)):(R.ntpqfbel===void 0&&(R.ntpqfbel=[]),R.ntpqfbel.push(function(J){O(new yC(J))}))})}; r_A=function(){if(!g.S8("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.S8("disable_biscotti_fetch_entirely_for_all_web_clients")&&gZ()){var O=g.YB("PLAYER_VARS",{});if(g.cR(O,"privembed",!1)!="1"&&!Vuz(O)){var R=function(){wD=!0;"google_ad_status"in window?jk("DCLKSTAT",1):jk("DCLKSTAT",2)}; try{g.K$("//static.doubleclick.net/instream/ad_status.js",R)}catch(J){}Chf.push(g.HJ.lS(function(){if(!(wD||"google_ad_status"in window)){try{if(R){var J=""+g.gC(R),l=V8H[J];l&&g.FZ(l)}}catch(u){}wD=!0;jk("DCLKSTAT",3)}},5E3))}}}; Iz=function(){var O=Number(g.YB("DCLKSTAT",0));return isNaN(O)?0:O}; oz=function(O,R,J){var l=this;this.network=O;this.options=R;this.S=J;this.L=null;if(R.STd){var u=new g.tA;this.L=u.promise;g.YW.ytAtRC&&na(function(){var F,G;return g.A(function(y){if(y.S==1){if(!g.YW.ytAtRC)return y.return();F=Ck(null);return g.k(y,rD(l,F),2)}G=y.L;g.YW.ytAtRC&&g.YW.ytAtRC(JSON.stringify(G));g.ST(y)})},2); IO_().then(function(F){var G,y,w,I;return g.A(function(C){if(C.S==1)return F.bindInnertubeChallengeFetcher(function(r){return rD(l,Ck(r))}),g.k(C,Gm(),2); G=C.L;y=F.getLatestChallengeResponse();w=y.challenge;if(!w)throw Error("BGE_MACIL");I={challenge:w,i8:Kk(w),m$:G,bgChallenge:new Cd};u.resolve(I);F.registerChallengeFetchedCallback(function(r){r=r.challenge;if(!r)throw Error("BGE_MACR");r={challenge:r,i8:Kk(r),m$:G,bgChallenge:new Cd};l.L=Promise.resolve(r)}); g.ST(C)})})}else R.preload&&tAs(this,new Promise(function(F){g.cf(0,function(){F(tq(l))},0)}))}; Ck=function(O){var R={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};O&&(R.interpreterHash=O);return R}; tq=function(O,R){R=R===void 0?0:R;var J,l,u,F,G,y,w,I,C,r,t,Z;return g.A(function(V){switch(V.S){case 1:J=Ck(VO().L);if(g.S8("att_fet_ks"))return g.N0(V,7),g.k(V,rD(O,J),9);g.N0(V,4);return g.k(V,o5_(O,J),6);case 6:G=V.L;u=G.Qe1;F=G.XWh;l=G;g.as(V,3);break;case 4:return g.Tz(V),g.Aa(Error("Failed to fetch attestation challenge after "+(R+" attempts; not retrying for 24h."))),Zb(O,864E5),V.return({challenge:"",i8:{},m$:void 0,bgChallenge:void 0});case 9:l=V.L;if(!l)throw Error("Fetching Attestation challenge returned falsy"); if(!l.challenge)throw Error("Missing Attestation challenge");u=l.challenge;F=Kk(u);if("c1a"in F&&(!l.bgChallenge||!l.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.as(V,3);break;case 7:y=g.Tz(V);g.Aa(y);R++;if(R>=5)return g.Aa(Error("Failed to fetch attestation challenge after "+(R+" attempts; not retrying for 24h."))),Zb(O,864E5),V.return({challenge:"",i8:{},m$:void 0,bgChallenge:void 0});w=1E3*Math.pow(2,R-1)+Math.random()*1E3;return V.return(new Promise(function(m){g.cf(0, function(){m(tq(O,R))},w)})); case 3:I=Number(F.t)||7200;Zb(O,I*1E3);C=void 0;if(!("c1a"in F&&l.bgChallenge)){V.pJ(10);break}r=wVB(l.bgChallenge);g.N0(V,11);return g.k(V,k9s(VO(),r),13);case 13:g.as(V,12);break;case 11:return t=g.Tz(V),g.Aa(t),V.return({challenge:u,i8:F,m$:C,bgChallenge:r});case 12:return g.N0(V,14),C=new oC({challenge:r,j6:{fD:"aGIf"}}),g.k(V,C.Sq,16);case 16:g.as(V,10);break;case 14:Z=g.Tz(V),g.Aa(Z),C=void 0;case 10:return V.return({challenge:u,i8:F,m$:C,bgChallenge:r})}})}; rD=function(O,R){var J;return g.A(function(l){J=O.S;if(!J||J.qK())return l.return(rD(O.network,R));Y3("att_pna",void 0,"attestation_challenge_fetch");return l.return(new Promise(function(u){J.NA("publicytnetworkstatus-online",function(){rD(O.network,R).then(u)})}))})}; Z$s=function(O){if(!O)throw Error("Fetching Attestation challenge returned falsy");if(!O.challenge)throw Error("Missing Attestation challenge");var R=O.challenge,J=Kk(R);if("c1a"in J&&(!O.bgChallenge||!O.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},O,{Qe1:R,XWh:J})}; o5_=function(O,R){var J,l,u,F,G;return g.A(function(y){switch(y.S){case 1:J=void 0,l=0,u={};case 2:if(!(l<5)){y.pJ(4);break}if(!(l>0)){y.pJ(5);break}u.sb=1E3*Math.pow(2,l-1)+Math.random()*1E3;return g.k(y,new Promise(function(w){return function(I){g.cf(0,function(){I(void 0)},w.sb)}}(u)),5); case 5:return g.N0(y,7),g.k(y,rD(O,R),9);case 9:return F=y.L,y.return(Z$s(F));case 7:J=G=g.Tz(y),G instanceof Error&&g.Aa(G);case 8:l++;u={sb:void 0};y.pJ(2);break;case 4:throw J;}})}; tAs=function(O,R){O.L=R}; VAH=function(O){var R,J,l;return g.A(function(u){if(u.S==1)return g.k(u,Promise.race([O.L,null]),2);R=u.L;var F=tq(O);O.L=F;(J=R)==null||(l=J.m$)==null||l.dispose();g.ST(u)})}; Zb=function(O,R){function J(){var u;return g.A(function(F){u=l-Date.now();return u<1E3?g.k(F,VAH(O),0):(na(J,0,Math.min(u,6E4)),F.pJ(0))})} var l=Date.now()+R;J()}; fOW=function(O,R){return new Promise(function(J){g.cf(0,function(){J(R())},O)})}; g.SZ_=function(O,R){var J;return g.A(function(l){var u=g.hs("yt.aba.att");return(J=u?u:oz.instance!==void 0?oz.instance.B.bind(oz.instance):null)?l.return(J("ENGAGEMENT_TYPE_PLAYBACK",O,R)):l.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.NQs=function(){var O;return(O=(O=g.hs("yt.aba.att2"))?O:oz.instance!==void 0?oz.instance.N.bind(oz.instance):null)?O():Promise.resolve(!1)}; E5T=function(O,R){var J=g.hs("ytDebugData.callbacks");J||(J={},g.dh("ytDebugData.callbacks",J));if(g.S8("web_dd_iu")||mfH.includes(O))J[O]=R}; VC=function(){var O=DfH;var R=R===void 0?[]:R;var J=J===void 0?[]:J;R=Nlp.apply(null,[mbL.apply(null,g.X(R))].concat(g.X(J)));this.store=DbA(O,void 0,R)}; g.fk=function(O,R,J){for(var l=Object.assign({},O),u=g.N(Object.keys(R)),F=u.next();!F.done;F=u.next()){F=F.value;var G=O[F],y=R[F];if(y===void 0)delete l[F];else if(G===void 0)l[F]=y;else if(Array.isArray(y)&&Array.isArray(G))l[F]=J?[].concat(g.X(G),g.X(y)):y;else if(!Array.isArray(y)&&g.Rb(y)&&!Array.isArray(G)&&g.Rb(G))l[F]=g.fk(G,y,J);else if(typeof y===typeof G)l[F]=y;else return R=new g.Ys("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:F,H_N:G,updateValue:y}),g.WM(R), O}return l}; SX=function(O){var R=this;O=O===void 0?[]:O;this.Sz=[];this.FA=this.YM=0;this.Sm=void 0;this.totalLength=0;O.forEach(function(J){R.append(J)})}; aOf=function(O,R){return O.Sz.length===0?!1:(O=O.Sz[O.Sz.length-1])&&O.buffer===R.buffer&&O.byteOffset+O.length===R.byteOffset}; NF=function(O,R){R=g.N(R.Sz);for(var J=R.next();!J.done;J=R.next())O.append(J.value)}; mf=function(O,R,J){return O.split(R).cP.split(J).IJ}; EX=function(O){O.Sm=void 0;O.YM=0;O.FA=0}; Db=function(O,R,J){O.isFocused(R);return R-O.FA+J<=O.Sz[O.YM].length}; v50=function(O){if(!O.Sm){var R=O.Sz[O.YM];O.Sm=new DataView(R.buffer,R.byteOffset,R.length)}return O.Sm}; az=function(O,R,J){O=O.I1(R===void 0?0:R,J===void 0?-1:J);R=new Uint8Array(O.length);try{R.set(O)}catch(l){for(J=0;J>10;F=56320|F&1023}TS[u++]=F}}F=String.fromCharCode.apply(String,TS); u<1024&&(F=F.substring(0,u));J.push(F)}return J.join("")}; qF=function(O,R){var J;if((J=MF)==null?0:J.encodeInto)return R=MF.encodeInto(O,R),R.read>6|192:((u&64512)===55296&&l+1>18|240,R[J++]=u>>12&63|128):R[J++]=u>>12|224,R[J++]=u>>6&63|128),R[J++]=u&63|128)}return J}; ku=function(O){if(MF)return MF.encode(O);var R=new Uint8Array(Math.ceil(O.length*1.2)),J=qF(O,R);R.lengthJ&&(R=R.subarray(0,J));return R}; sX=function(O){this.L=O;this.pos=0;this.S=-1}; bH=function(O){var R=O.L.getUint8(O.pos);++O.pos;if(R<128)return R;for(var J=R&127,l=1;R>=128;)R=O.L.getUint8(O.pos),++O.pos,l*=128,J+=(R&127)*l;return J}; Wg=function(O,R){var J=O.S;for(O.S=-1;O.L.uF(O.pos,1);){J<0&&(J=bH(O));var l=J>>3,u=J&7;if(l===R)return!0;if(l>R){O.S=J;break}J=-1;switch(u){case 0:bH(O);break;case 1:O.pos+=8;break;case 2:l=bH(O);O.pos+=l;break;case 5:O.pos+=4}}return!1}; Aq=function(O,R){if(Wg(O,R))return bH(O)}; eX=function(O,R){if(Wg(O,R))return!!bH(O)}; Pg=function(O,R){if(Wg(O,R)){R=bH(O);var J=O.L.I1(O.pos,R);O.pos+=R;return J}}; pk=function(O,R){if(O=Pg(O,R))return g.$u(O)}; Bg=function(O,R,J){if(O=Pg(O,R))return J(new sX(new SX([O])))}; Hg=function(O,R){for(var J=[];Wg(O,R);)J.push(bH(O));return J.length?J:void 0}; xu=function(O,R,J){for(var l=[],u;u=Pg(O,R);)l.push(J(new sX(new SX([u]))));return l.length?l:void 0}; UX=function(O,R){O=O instanceof Uint8Array?new SX([O]):O;return R(new sX(O))}; $fs=function(O,R,J){if(R&&J&&J.buffer===R.exports.memory.buffer){var l=R.realloc(J.byteOffset,O);if(l)return new Uint8Array(R.exports.memory.buffer,l,O)}O=R?new Uint8Array(R.exports.memory.buffer,R.malloc(O),O):new Uint8Array(O);J&&O.set(J);return O}; MAL=function(O,R){this.fZ=R;this.pos=0;this.S=[];this.L=$fs(O===void 0?4096:O,R);this.view=new DataView(this.L.buffer,this.L.byteOffset,this.L.byteLength)}; jX=function(O,R){R=O.pos+R;if(!(O.L.length>=R)){for(var J=O.L.length*2;J268435455){jX(O,4);for(var J=R&1073741823,l=0;l<4;l++)O.view.setUint8(O.pos,J&127|128),J>>=7,O.pos+=1;R=Math.floor(R/268435456)}for(jX(O,4);R>127;)O.view.setUint8(O.pos,R&127|128),R>>=7,O.pos+=1;O.view.setUint8(O.pos,R);O.pos+=1}; Lk=function(O,R,J){J!==void 0&&(QC(O,R*8),QC(O,J))}; Yu=function(O,R,J){J!==void 0&&Lk(O,R,J?1:0)}; dD=function(O,R,J){J!==void 0&&(QC(O,R*8+2),R=J.length,QC(O,R),jX(O,R),O.L.set(J,O.pos),O.pos+=R)}; hq=function(O,R,J){J!==void 0&&(qZx(O,R,Math.ceil(Math.log2(J.length*4+2)/7)),jX(O,J.length*1.2),R=qF(J,O.L.subarray(O.pos)),O.pos+R>O.L.length&&(jX(O,R),R=qF(J,O.L.subarray(O.pos))),O.pos+=R,kTz(O))}; qZx=function(O,R,J){J=J===void 0?2:J;QC(O,R*8+2);O.S.push(O.pos);O.S.push(J);O.pos+=J}; kTz=function(O){for(var R=O.S.pop(),J=O.S.pop(),l=O.pos-J-R;R--;){var u=R?128:0;O.view.setUint8(J++,l&127|u);l>>=7}}; zS=function(O,R,J,l,u){J&&(qZx(O,R,u===void 0?3:u),l(O,J),kTz(O))}; g.nk=function(O,R,J){J=new MAL(4096,J);R(J,O);return new Uint8Array(J.L.buffer,J.L.byteOffset,J.pos)}; g.cg=function(O){var R=new sX(new SX([gX(decodeURIComponent(O))]));O=pk(R,2);R=Aq(R,4);var J=sVB[R];if(typeof J==="undefined")throw O=new g.Ys("Failed to recognize field number",{name:"EntityKeyHelperError",Fh1:R}),g.WM(O),O;return{Nz:R,entityType:J,entityId:O}}; g.Os=function(O,R){var J=J===void 0?0:J;var l=new MAL;dD(l,2,ku(O));O=b$s[R];if(typeof O==="undefined")throw J=new g.Ys("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:R}),g.WM(J),J;Lk(l,4,O);Lk(l,5,1);R=new Uint8Array(l.L.buffer,l.L.byteOffset,l.pos);return encodeURIComponent(g.RK(R,J))}; Ru=function(O,R,J,l){if(l===void 0)return l=Object.assign({},O[R]||{}),J=(delete l[J],l),l={},Object.assign({},O,(l[R]=J,l));var u={},F={};return Object.assign({},O,(F[R]=Object.assign({},O[R],(u[J]=l,u)),F))}; WR2=function(O,R,J,l,u){var F=O[R];if(F==null||!F[J])return O;l=g.fk(F[J],l,u==="REPEATED_FIELDS_MERGE_OPTION_APPEND");u={};F={};return Object.assign({},O,(F[R]=Object.assign({},O[R],(u[J]=l,u)),F))}; A_h=function(O,R){O=O===void 0?{}:O;switch(R.type){case "ENTITY_LOADED":return R.payload.reduce(function(l,u){var F,G=(F=u.options)==null?void 0:F.persistenceOption;if(G&&G!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&G!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return l;if(!u.entityKey)return g.WM(Error("Missing entity key")),l;if(u.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!u.payload)return u=new g.Ys("REPLACE entity mutation is missing a payload",{entityKey:u.entityKey}),g.WM(u),l;var y=g.j6(u.payload); return Ru(l,y,u.entityKey,u.payload[y])}if(u.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{u=u.entityKey;try{var w=g.cg(u).entityType;y=Ru(l,w,u);break a}catch(r){if(r instanceof Error){u=new g.Ys("Failed to deserialize entity key",{entityKey:u,originalMessage:r.message});g.WM(u);y=l;break a}throw r;}y=void 0}return y}if(u.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!u.payload)return u=new g.Ys("UPDATE entity mutation is missing a payload",{entityKey:u.entityKey}),g.WM(u),l;y=g.j6(u.payload);var I,C;return WR2(l, y,u.entityKey,u.payload[y],(I=u.fieldMask)==null?void 0:(C=I.mergeOptions)==null?void 0:C.repeatedFieldsMergeOption)}return l},O); case "REPLACE_ENTITY":var J=R.payload;return Ru(O,J.entityType,J.key,J.p5);case "REPLACE_ENTITIES":return Object.keys(R.payload).reduce(function(l,u){var F=R.payload[u];return Object.keys(F).reduce(function(G,y){return Ru(G,u,y,F[y])},l)},O); case "UPDATE_ENTITY":return J=R.payload,WR2(O,J.entityType,J.key,J.p5,J.CL1);default:return O}}; Jk=function(O,R,J){return O[R]?O[R][J]||null:null}; gq=function(O){return window.Int32Array?new Int32Array(O):Array(O)}; fh=function(O){g.p.call(this);this.counter=[0,0,0,0];this.S=new Uint8Array(16);this.L=16;if(!euW){var R,J=new Uint8Array(256),l=new Uint8Array(256);var u=1;for(R=0;R<256;R++)J[u]=R,l[R]=u,u^=u<<1^(u>>7&&283);ix=new Uint8Array(256);lx=gq(256);ou=gq(256);ZL=gq(256);VD=gq(256);for(var F=0;F<256;F++){u=F?l[255^J[F]]:0;u^=u<<1^u<<2^u<<3^u<<4;u=u&255^u>>>8^99;ix[F]=u;R=u<<1^(u>>7&&283);var G=R^u;lx[F]=R<<24|u<<16|u<<8|G;ou[F]=G<<24|lx[F]>>>8;ZL[F]=u<<24|ou[F]>>>8;VD[F]=u<<24|ZL[F]>>>8}euW=!0}u=gq(44);for(J= 0;J<4;J++)u[J]=O[4*J]<<24|O[4*J+1]<<16|O[4*J+2]<<8|O[4*J+3];for(l=1;J<44;J++)O=u[J-1],J%4||(O=(ix[O>>16&255]^l)<<24|ix[O>>8&255]<<16|ix[O&255]<<8|ix[O>>>24],l=l<<1^(l>>7&&283)),u[J]=u[J-4]^O;this.key=u}; SZ=function(O,R){for(var J=0;J<4;J++)O.counter[J]=R[J*4]<<24|R[J*4+1]<<16|R[J*4+2]<<8|R[J*4+3];O.L=16}; PhA=function(O){for(var R=O.key,J=O.counter[0]^R[0],l=O.counter[1]^R[1],u=O.counter[2]^R[2],F=O.counter[3]^R[3],G=3;G>=0&&!(O.counter[G]=-~O.counter[G]);G--);for(var y,w,I=4;I<40;)G=lx[J>>>24]^ou[l>>16&255]^ZL[u>>8&255]^VD[F&255]^R[I++],y=lx[l>>>24]^ou[u>>16&255]^ZL[F>>8&255]^VD[J&255]^R[I++],w=lx[u>>>24]^ou[F>>16&255]^ZL[J>>8&255]^VD[l&255]^R[I++],F=lx[F>>>24]^ou[J>>16&255]^ZL[l>>8&255]^VD[u&255]^R[I++],J=G,l=y,u=w;O=O.S;G=R[40];O[0]=ix[J>>>24]^G>>>24;O[1]=ix[l>>16&255]^G>>16&255;O[2]=ix[u>>8&255]^ G>>8&255;O[3]=ix[F&255]^G&255;G=R[41];O[4]=ix[l>>>24]^G>>>24;O[5]=ix[u>>16&255]^G>>16&255;O[6]=ix[F>>8&255]^G>>8&255;O[7]=ix[J&255]^G&255;G=R[42];O[8]=ix[u>>>24]^G>>>24;O[9]=ix[F>>16&255]^G>>16&255;O[10]=ix[J>>8&255]^G>>8&255;O[11]=ix[l&255]^G&255;G=R[43];O[12]=ix[F>>>24]^G>>>24;O[13]=ix[J>>16&255]^G>>16&255;O[14]=ix[l>>8&255]^G>>8&255;O[15]=ix[u&255]^G&255}; Es=function(){if(!Ne&&!g.dj){if(mY)return mY;var O;mY=(O=window.crypto)==null?void 0:O.subtle;var R,J,l;if(((R=mY)==null?0:R.importKey)&&((J=mY)==null?0:J.sign)&&((l=mY)==null?0:l.encrypt))return mY;mY=void 0}}; g.DL=function(O){this.S=O}; pVL=function(O,R,J,l){var u,F;return g.A(function(G){switch(G.S){case 1:if(O.B){G.pJ(2);break}return g.k(G,l.importKey("raw",O.S,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:O.B=G.L;case 2:return u={name:"AES-CTR",counter:J,length:128},g.k(G,l.encrypt(u,O.B,R),4);case 4:return F=G.L,G.return(new Uint8Array(F))}})}; BQ_=function(O,R,J){O.L||(O.L=new fh(O.S));SZ(O.L,J);return O.L.encrypt(R)}; g.au=function(O){this.S=O}; vk=function(O){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.N=0;this.j=new Uint8Array(64);this.S=0;this.D.set(O);this.B.set(O);for(O=0;O<64;O++)this.D[O]^=92,this.B[O]^=54;this.reset()}; H$p=function(O,R,J){for(var l=O.J,u=O.L[0],F=O.L[1],G=O.L[2],y=O.L[3],w=O.L[4],I=O.L[5],C=O.L[6],r=O.L[7],t,Z,V,m=0;m<64;)m<16?(l[m]=V=R[J]<<24|R[J+1]<<16|R[J+2]<<8|R[J+3],J+=4):(t=l[m-2],Z=l[m-15],V=l[m-7]+l[m-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((Z>>>7|Z<<25)^(Z>>>18|Z<<14)^Z>>>3),l[m]=V),t=r+Xr[m]+V+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&I^~w&C),Z=((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+(u&F^u&G^F&G),r=t+Z,y+=t,m++,m<16?(l[m]=V=R[J]<<24|R[J+1]<<16|R[J+2]<<8|R[J+3],J+=4):(t= l[m-2],Z=l[m-15],V=l[m-7]+l[m-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((Z>>>7|Z<<25)^(Z>>>18|Z<<14)^Z>>>3),l[m]=V),t=C+Xr[m]+V+((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&w^~y&I),Z=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&u^r&F^u&F),C=t+Z,G+=t,m++,m<16?(l[m]=V=R[J]<<24|R[J+1]<<16|R[J+2]<<8|R[J+3],J+=4):(t=l[m-2],Z=l[m-15],V=l[m-7]+l[m-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((Z>>>7|Z<<25)^(Z>>>18|Z<<14)^Z>>>3),l[m]=V),t=I+Xr[m]+V+((G>>>6|G<<26)^(G>>>11|G<<21)^(G>>>25|G<<7))+(G&y^ ~G&w),Z=((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+(C&r^C&u^r&u),I=t+Z,F+=t,m++,m<16?(l[m]=V=R[J]<<24|R[J+1]<<16|R[J+2]<<8|R[J+3],J+=4):(t=l[m-2],Z=l[m-15],V=l[m-7]+l[m-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((Z>>>7|Z<<25)^(Z>>>18|Z<<14)^Z>>>3),l[m]=V),t=w+Xr[m]+V+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&G^~F&y),Z=((I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10))+(I&C^I&r^C&r),V=r,r=y,y=V,V=C,C=G,G=V,V=I,I=F,F=V,w=u+t,u=t+Z,m++;O.L[0]=u+O.L[0]|0;O.L[1]=F+O.L[1]|0;O.L[2]=G+O.L[2]|0;O.L[3]= y+O.L[3]|0;O.L[4]=w+O.L[4]|0;O.L[5]=I+O.L[5]|0;O.L[6]=C+O.L[6]|0;O.L[7]=r+O.L[7]|0}; UfB=function(O){var R=new Uint8Array(32),J=64-O.S;O.S>55&&(J+=64);var l=new Uint8Array(J);l[0]=128;for(var u=O.N*8,F=1;F<9;F++){var G=u%256;l[J-F]=G;u=(u-G)/256}O.update(l);for(J=0;J<8;J++)R[J*4]=O.L[J]>>>24,R[J*4+1]=O.L[J]>>>16&255,R[J*4+2]=O.L[J]>>>8&255,R[J*4+3]=O.L[J]&255;xfH(O);return R}; xfH=function(O){O.L=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];O.J=[];O.J.length=64;O.N=0;O.S=0}; jVf=function(O){this.L=O}; QVp=function(O,R,J){O=new vk(O.L);O.update(R);O.update(J);R=UfB(O);O.update(O.D);O.update(R);R=UfB(O);O.reset();return R}; LRW=function(O){this.S=O}; YZf=function(O,R,J,l){var u,F,G;return g.A(function(y){switch(y.S){case 1:if(O.L){y.pJ(2);break}return g.k(y,l.importKey("raw",O.S,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:O.L=y.L;case 2:return u=new Uint8Array(R.length+J.length),u.set(R),u.set(J,R.length),F={name:"HMAC",hash:"SHA-256"},g.k(y,l.sign(F,O.L,u),4);case 4:return G=y.L,y.return(new Uint8Array(G))}})}; dfW=function(O,R,J){O.B||(O.B=new jVf(O.S));return QVp(O.B,R,J)}; hu_=function(O,R,J){var l,u;return g.A(function(F){if(F.S==1){l=Es();if(!l)return F.return(dfW(O,R,J));g.N0(F,3);return g.k(F,YZf(O,R,J,l),5)}if(F.S!=3)return F.return(F.L);u=g.Tz(F);g.Aa(u);Ne=!0;return F.return(dfW(O,R,J))})}; n5A=function(O){for(var R="",J=0;J=1?O[O.length-1]:null;for(var l=g.N(O),u=l.next();!u.done;u=l.next())if(u=u.value,u.width&&u.height&&(J&&u.width>=R||!J&&u.height>=R))return u;for(R=O.length-1;R>=0;R--)if(J&&O[R].width||!J&&O[R].height)return O[R];return O[0]}; $g=function(){this.state=1;this.m$=null;this.Ic=void 0}; yaA=function(O,R,J,l,u,F){var G=G===void 0?"trayride":G;J?(O.UZ(2),g.K$(J,function(){if(window[G])KKx(O,l,G,u);else{O.UZ(3);var y=Z_s(J),w=document.getElementById(y);w&&(t8p(y),w.parentNode.removeChild(w));g.Aa(new g.Ys("BL:ULB",""+J))}},F)):R?(F=g.cE("SCRIPT"),R instanceof iL?(F.textContent=uL(R),FR(F)):F.textContent=R,F.nonce=g7(document),document.head.appendChild(F),document.head.removeChild(F),window[G]?KKx(O,l,G,u):(O.UZ(4),g.Aa(new g.Ys("BL:ULBJ")))):g.Aa(new g.Ys("BL:ULV"))}; KKx=function(O,R,J,l){O.UZ(5);var u=!!O.Ic&&wMH.includes(g.vQ(O.Ic)||"");try{var F=new oC({program:R,globalName:J,j6:{disable:!g.S8("att_web_record_metrics")||!g.S8("att_skip_metrics_for_cookieless_domains_ks")&&u,fD:"aGIf"}});F.Sq.then(function(){O.UZ(6);l&&l(R)}); O.e3(F)}catch(G){O.UZ(7),G instanceof Error&&g.Aa(G)}}; Me=function(){var O=g.hs("yt.abuse.playerAttLoader");return O&&["bgvma","bgvmb","bgvmc"].every(function(R){return R in O})?O:null}; qe=function(){$g.apply(this,arguments)}; kg=function(){}; Igf=function(O,R,J){for(var l=!1,u=g.N(O.eA.entries()),F=u.next();!F.done;F=u.next())F=g.N(F.value).next().value,F.slotType==="SLOT_TYPE_PLAYER_BYTES"&&F.kS==="core"&&(l=!0);if(l){a:if(!J){O=g.N(O.eA.entries());for(J=O.next();!J.done;J=O.next())if(l=g.N(J.value),J=l.next().value,l=l.next().value,J.slotType==="SLOT_TYPE_IN_PLAYER"&&J.kS==="core"){J=l.layoutId;break a}J=void 0}J?R.GA(J):rK("No triggering layout ID available when attempting to mute.")}}; bx=function(O,R){this.Jh=O;this.wh=R}; Wk=function(){}; Ak=function(){}; raT=function(O){g.p.call(this);var R=this;this.zR=O;this.L=new Map;eZ(this,"commandExecutorCommand",function(J,l,u){CVB(R,J.commands,l,u)}); eZ(this,"clickTrackingParams",function(){})}; trs=function(O,R){eZ(O,R.o7(),function(J,l,u){R.Ss(J,l,u)})}; eZ=function(O,R,J){O.jN();O.L.get(R)&&g.WM(Error("Extension name "+R+" already registered"));O.L.set(R,J)}; CVB=function(O,R,J,l){R=R===void 0?[]:R;O.jN();var u=[],F=[];R=g.N(R);for(var G=R.next();!G.done;G=R.next())G=G.value,g.x(G,oUA)||g.x(G,ZNT)?u.push(G):F.push(G);u=g.N(u);for(R=u.next();!R.done;R=u.next())Pk(O,R.value,J,l);F=g.N(F);for(u=F.next();!u.done;u=F.next())Pk(O,u.value,J,l)}; Pk=function(O,R,J,l){O.jN();R.loggingUrls&&VrH(O,"loggingUrls",R.loggingUrls,J,l);R=g.N(Object.entries(R));for(var u=R.next();!u.done;u=R.next()){var F=g.N(u.value);u=F.next().value;F=F.next().value;u==="openPopupAction"?O.zR.get().oy("innertubeCommand",{openPopupAction:F}):u==="confirmDialogEndpoint"?O.zR.get().oy("innertubeCommand",{confirmDialogEndpoint:F}):fgB.hasOwnProperty(u)||VrH(O,u,F,J,l)}}; VrH=function(O,R,J,l,u){if((O=O.L.get(R))&&typeof O==="function")try{O(J,l,u)}catch(F){g.WM(F)}else R=new g.Ys("Unhandled field",R),g.Aa(R)}; ph=function(O,R,J){this.LA=O;this.L=R;this.yh=J;k5(A_(),{ox:FKs,g3:u5x})}; Bk=function(O){this.value=O}; Hk=function(O){this.value=O}; xg=function(O){this.value=O}; Us=function(O){this.value=O}; jZ=function(O){this.value=O}; QD=function(O){this.value=O}; Lh=function(O){this.value=O}; Yg=function(){Bk.apply(this,arguments)}; dq=function(O){this.value=O}; hk=function(O){this.value=O}; zl=function(O){this.value=O}; nh=function(O){this.value=O}; ck=function(O){this.value=O}; Od=function(O){this.value=O}; Rk=function(O){this.value=O}; JO=function(O){this.value=O}; gs=function(O){this.value=O}; iC=function(O){this.value=O}; lC=function(){Bk.apply(this,arguments)}; uC=function(O){this.value=O}; Fm=function(O){this.value=O}; Gt=function(O){this.value=O}; Ky=function(O){this.value=O}; yu=function(O){this.value=O}; ws=function(O){this.value=O}; Ik=function(O){this.value=O}; Cy=function(O){this.value=O}; rs=function(O){this.value=O}; tO=function(O){this.value=O}; ok=function(O){this.value=O}; Zz=function(O){this.value=O}; Vu=function(O){this.value=O}; fy=function(O){this.value=O}; SB=function(O){this.value=O}; Nk=function(O){this.value=O}; m0=function(O){this.value=O}; Ed=function(O){this.value=O}; Dz=function(O){this.value=O}; ak=function(O){this.value=O}; v_=function(O){this.value=O}; Xm=function(O){this.value=O}; Tt=function(O){this.value=O}; $N=function(O){this.value=O}; Mk=function(O){this.value=O}; qk=function(O){this.value=O}; kN=function(O){this.value=O}; sd=function(O){this.value=O}; bC=function(O){this.value=O}; W_=function(O){this.value=O}; AO=function(O){this.value=O}; eB=function(O){this.value=O}; P_=function(O){this.value=O}; py=function(O){this.value=O}; B_=function(O){this.value=O}; H_=function(O){this.value=O}; xN=function(O){this.value=O}; Ud=function(O){this.value=O}; jB=function(){Bk.apply(this,arguments)}; Qu=function(O){this.value=O}; Ly=function(){Bk.apply(this,arguments)}; YN=function(){Bk.apply(this,arguments)}; ds=function(){Bk.apply(this,arguments)}; hO=function(){Bk.apply(this,arguments)}; zt=function(){Bk.apply(this,arguments)}; ny=function(O){this.value=O}; c_=function(O){this.value=O}; Om=function(O){this.value=O}; Rq=function(O){this.value=O}; JB=function(O){this.value=O}; iO=function(O,R,J){if(J&&!J.includes(O.layoutType))return!1;R=g.N(R);for(J=R.next();!J.done;J=R.next())if(!gU(O.clientMetadata,J.value))return!1;return!0}; lO=function(){return""}; Sip=function(O,R){switch(O){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 R(O),8}}; uO=function(O,R,J,l){l=l===void 0?!1:l;wC.call(this,O);this.wB=J;this.xj=l;this.args=[];R&&this.args.push(R)}; h=function(O,R,J,l){l=l===void 0?!1:l;wC.call(this,O);this.wB=J;this.xj=l;this.args=[];R&&this.args.push(R)}; FV=function(O){var R=new Map;O.forEach(function(J){R.set(J.L(),J)}); this.L=R}; gU=function(O,R){return O.L.has(R)}; Gg=function(O,R){O=O.L.get(R);if(O!==void 0)return O.get()}; K2=function(O){return Array.from(O.L.keys())}; yG=function(O,R,J){if(J&&J!==O.slotType)return!1;R=g.N(R);for(J=R.next();!J.done;J=R.next())if(!gU(O.clientMetadata,J.value))return!1;return!0}; mPW=function(O){var R;return((R=NwA.get(O))==null?void 0:R.P_)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Iq=function(O,R){var J={type:R.slotType,controlFlowManagerLayer:EUH.get(R.kS)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R.slotEntryTrigger&&(J.entryTriggerType=R.slotEntryTrigger.triggerType);R.slotPhysicalPosition!==1&&(J.slotPhysicalPosition=R.slotPhysicalPosition);if(O){J.debugData={slotId:R.slotId};if(O=R.slotEntryTrigger)J.debugData.slotEntryTriggerData=wU(O);O=R.slotFulfillmentTriggers;J.debugData.fulfillmentTriggerData=[];O=g.N(O);for(var l=O.next();!l.done;l=O.next())J.debugData.fulfillmentTriggerData.push(wU(l.value)); R=R.slotExpirationTriggers;J.debugData.expirationTriggerData=[];R=g.N(R);for(O=R.next();!O.done;O=R.next())J.debugData.expirationTriggerData.push(wU(O.value))}return J}; DPf=function(O,R){var J={type:R.layoutType,controlFlowManagerLayer:EUH.get(R.kS)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};O&&(J.debugData={layoutId:R.layoutId});return J}; wU=function(O,R){var J={type:O.triggerType};R!=null&&(J.category=R);O.triggeringSlotId!=null&&(J.triggerSourceData||(J.triggerSourceData={}),J.triggerSourceData.associatedSlotId=O.triggeringSlotId);O.triggeringLayoutId!=null&&(J.triggerSourceData||(J.triggerSourceData={}),J.triggerSourceData.associatedLayoutId=O.triggeringLayoutId);return J}; agW=function(O,R,J,l){R={opportunityType:R};O&&(l||J)&&(l=g.jO(l||[],function(u){return Iq(O,u)}),R.debugData=Object.assign({},J&&J.length>0?{associatedSlotId:J}:{},l.length>0?{slots:l}:{})); return R}; rU=function(O,R){return function(J){return vUf(C2(O),R.slotId,R.slotType,R.slotPhysicalPosition,R.kS,R.slotEntryTrigger,R.slotFulfillmentTriggers,R.slotExpirationTriggers,J.layoutId,J.layoutType,J.kS)}}; vUf=function(O,R,J,l,u,F,G,y,w,I,C){return{adClientDataEntry:{slotData:Iq(O,{slotId:R,slotType:J,slotPhysicalPosition:l,kS:u,slotEntryTrigger:F,slotFulfillmentTriggers:G,slotExpirationTriggers:y,clientMetadata:new FV([])}),layoutData:DPf(O,{layoutId:w,layoutType:I,kS:C,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],n1:new Map,clientMetadata:new FV([]),xH:{}})}}}; oq=function(O){this.wd=O;O=Math.random();var R=this.wd.get();R=g.tB(R.X.T().experiments,"html5_debug_data_log_probability");R=Number.isFinite(R)&&R>=0&&R<=1?R:0;this.L=O1){g.Aa(new g.Ys("Exit already started",{current:O.currentState}));var J=!1}else J=!0;if(!J)return!1;O.currentState=2;O.L=R;return!0}; mj=function(O){if(O.currentState!==2)return!1;O.currentState=3;return!0}; g0p=function(O,R){var J=new Map;O=g.N(O);for(var l=O.next();!l.done;l=O.next()){l=l.value;if(l.layoutType==="LAYOUT_TYPE_MEDIA")var u="v";else l.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(u=Gg(l.clientMetadata,"metadata_type_linked_in_player_layout_type"),u=u==="LAYOUT_TYPE_ENDCAP"||u==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":u==="LAYOUT_TYPE_SURVEY"?"s":u==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):u="u";J.set(l.layoutId,u);if(u==="u"){var F={};u=R;l=(F.c=l.layoutId,F);u.X.nJ("uct",l)}}O= R.Nx();Ey={contentCpn:O,z4:J};l={};J=(l.ct=J.size,l.c=O,l);R.X.nJ("acc",J)}; i92=function(){Ey={contentCpn:"",z4:new Map}}; DT=function(O){var R;return(R=Ey.z4.get(O))!=null?R:"u"}; a1=function(O,R,J){O.X.nJ(R,J);l_B(O)}; uMB=function(O){var R=O.layoutId,J=O.iL;if(O.Lc){var l={};a1(O.LA,"slso",(l.ec=R,l.is=J,l.ctp=DT(R),l))}}; vd=function(O){var R=O.layoutId,J=O.iL;if(O.Lc){var l={};a1(O.LA,"slse",(l.ec=R,l.is=J,l.ctp=DT(R),l))}}; F6p=function(O){var R=O.layoutId,J=O.iL,l=O.LA;O.Lc&&(O={},a1(l,"sleo",(O.xc=R,O.is=J,O.ctp=DT(R),O)),l_B(l))}; Gk0=function(O){var R=O.cpn,J=O.LA;O=O.iL;var l=J.Nx(),u={};a1(J,"ce",(u.ec=R,u.ia=R!==l,u.r=Ey.z4.has(R),u.is=O,u.ctp=DT(R),u))}; l_B=function(O){if(O.Nx()!==Ey.contentCpn){var R={};R=(R.c=Ey.contentCpn,R);O.X.nJ("ccm",R)}}; K6p=function(O){var R=O.cpn,J=O.LA;O=O.iL;var l=J.Nx(),u={};a1(J,"cx",(u.xc=R,u.ia=R!==l,u.r=Ey.z4.has(R),u.is=O,u.ctp=DT(R),u))}; yTW=function(O){this.params=O;this.L=new Set}; wIf=function(O,R,J){if(!O.L.has(R)){O.L.add(R);var l={};O.params.tj.M1(R,Object.assign({},J,(l.p_ac=O.params.adCpn,l.p_isv=O.params.Igg&&O.params.ke,l)))}}; Td=function(O,R,J){if(Xs(O.params.tj.wd.get(),!0)){var l=J.flush,u={};wIf(O,R,(u.cts=J.currentTimeSec,u.f=l,u))}}; I__=function(O,R){this.LA=O;this.wd=R}; $w=function(O){var R=[];if(O){O=g.N(Object.entries(O));for(var J=O.next();!J.done;J=O.next()){var l=g.N(J.value);J=l.next().value;l=l.next().value;l!==void 0&&(l=typeof l==="boolean"?""+ +l:(""+l).replace(/[:,=]/g,"_"),R.push(J+"."+l))}}return R.join(";")}; MC=function(O,R,J){R=R===void 0?{}:R;this.errorCode=O;this.details=R;this.severity=J===void 0?0:J}; qC=function(O){return O===1||O===2}; kw=function(O,R){R=R===void 0?0:R;if(O instanceof MC)return O;O=O&&O instanceof Error?O:Error(""+O);qC(R)?g.WM(O):g.Aa(O);return new MC(R===1?"player.fatalexception":"player.exception",{name:""+O.name,message:""+O.message},R)}; CzB=function(O,R){function J(){var l=g.As.apply(0,arguments);O.removeEventListener("playing",J);R.apply(null,g.X(l))} O.addEventListener("playing",J)}; sy=function(){var O=g.hs("yt.player.utils.videoElement_");O||(O=g.cE("VIDEO"),g.dh("yt.player.utils.videoElement_",O));return O}; bc=function(O){var R=sy();return!!(R&&R.canPlayType&&R.canPlayType(O))}; A4=function(O){if(/opus/.test(O)&&g.Wd&&!v4("38")&&!g.Q3())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(O);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(O);if(/webm/.test(O)&&!r7p())return!1;O==='audio/mp4; codecs="mp4a.40.2"'&&(O='video/mp4; codecs="avc1.4d401f"');return!!bc(O)}; rTA=function(O){try{var R=A4('video/mp4; codecs="avc1.42001E"')||A4('video/webm; codecs="vp9"');return(A4('audio/mp4; codecs="mp4a.40.2"')||A4('audio/webm; codecs="opus"'))&&(R||!O)||bc('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(J){return"html5.missingapi"}}; eV=function(){var O=sy();return!(!O.webkitSupportsPresentationMode||typeof O.webkitSetPresentationMode!=="function")}; Pd=function(){var O=sy();try{var R=O.muted;O.muted=!R;return O.muted!==R}catch(J){}return!1}; tgp=function(){var O;return((O=navigator.connection)==null?void 0:O.type)||""}; g.p8=function(){Tv.apply(this,arguments)}; Bd=function(O,R,J,l,u,F,G,y){this.sampleRate=O===void 0?0:O;this.numChannels=R===void 0?0:R;this.spatialAudioType=J===void 0?"SPATIAL_AUDIO_TYPE_NONE":J;this.L=l===void 0?!1:l;this.N=u===void 0?0:u;this.B=F===void 0?0:F;this.audioQuality=G===void 0?"AUDIO_QUALITY_UNKNOWN":G;this.S=y===void 0?!1:y}; Uy=function(O,R,J,l,u,F,G,y,w){this.width=O;this.height=R;this.quality=F||Hd(O,R);this.qualityOrdinal=g.xw[this.quality];this.fps=J||0;this.stereoLayout=!u||l!=null&&l!=="UNKNOWN"&&l!=="RECTANGULAR"?0:u;this.projectionType=l?l==="EQUIRECTANGULAR"&&u===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":l:"UNKNOWN";(O=G)||(O=g.xw[this.quality],O===0?O="Autom\u00e1tica":(R=this.fps,J=this.projectionType,O=O.toString()+(J==="EQUIRECTANGULAR"||J==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||J==="MESH"?"s":"p")+(R>55?"60": R>49?"50":R>39?"48":"")));this.qualityLabel=O;this.L=y||"";this.primaries=w||""}; Hd=function(O,R){var J=Math.max(O,R);O=Math.min(O,R);R=jV[0];for(var l=0;l=Math.floor(F*16/9)*1.3||O>=F*1.3)return R;R=u}return"tiny"}; Yw=function(O,R,J){J=J===void 0?{}:J;this.id=O;this.mimeType=R;J.Wq>0||(J.Wq=16E3);Object.assign(this,J);O=g.N(this.id.split(";"));this.itag=O.next().value;this.L=O.next().value;this.containerType=QW(R);this.Pq=L8[this.itag]||""}; dz=function(O){return O.Pq==="9"||O.Pq==="("||O.Pq==="9h"||O.Pq==="(h"}; o0s=function(O){return O.Pq==="H"||O.Pq==="h"}; h4=function(O){return O.Pq==="9h"||O.Pq==="(h"}; Z9H=function(O){return!!O.hp&&!!O.hp.fairplay&&(O.Pq==="("||O.Pq==="(h"||O.Pq==="A"||O.Pq==="MEAC3")||zd&&!!O.hp&&O.Pq==="1e"}; n8=function(O){return O.Pq==="1"||O.Pq==="1h"||zd&&O.Pq==="1e"}; cd=function(O){return O.Pq==="mac3"||O.Pq==="meac3"||O.Pq==="m"||O.Pq==="i"}; Ow=function(O){return O.Pq==="MAC3"||O.Pq==="MEAC3"||O.Pq==="M"||O.Pq==="I"}; g.Rg=function(O){return O.containerType===1}; Vg0=function(O){return O.Pq==="("||O.Pq==="(h"||O.Pq==="H"||zd&&O.Pq==="1e"}; J1=function(O){return O.mimeType==="application/x-mpegURL"}; g.g3=function(O,R){return{itag:+O.itag,lmt:R?0:O.lastModified,xtags:O.L||""}}; f_2=function(O){var R=navigator.mediaCapabilities;if(R==null||!R.decodingInfo||O.Pq==="f")return Promise.resolve();var J={type:O.audio&&O.video?"file":"media-source"};O.video&&(J.video={contentType:O.mimeType,width:O.video.width||640,height:O.video.height||360,bitrate:O.Wq*8||1E6,framerate:O.video.fps||30});O.audio&&(J.audio={contentType:O.mimeType,channels:""+(O.audio.numChannels||2),bitrate:O.Wq*8||128E3,samplerate:O.audio.sampleRate||44100});return R.decodingInfo(J).then(function(l){O.S=l})}; iB=function(O){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(O)}; lB=function(O){return/(vp9|vp09|vp8|avc1|av01)/.test(O)}; uB=function(O){return O.includes("vtt")||O.includes("text/mp4")}; QW=function(O){return O.indexOf("/mp4")>=0?1:O.indexOf("/webm")>=0?2:O.indexOf("/x-flv")>=0?3:O.indexOf("/vtt")>=0?4:0}; F3=function(O,R,J,l,u,F){var G=new Bd;R in g.xw||(R="small");R==="light"&&(R="tiny");l&&u?(u=Number(u),l=Number(l)):(u=g.xw[R],l=Math.round(u*16/9));F=new Uy(l,u,0,null,void 0,R,F);O=unescape(O.replace(/"/g,'"'));return new Yw(J,O,{audio:G,video:F})}; G4=function(O){var R="id="+O.id;O.video&&(R+=", res="+O.video.qualityLabel);var J,l;return R+", byterate=("+((J=O.DP)==null?void 0:J.toFixed(0))+", "+((l=O.Wq)==null?void 0:l.toFixed(0))+")"}; Km=function(O,R){return{start:function(J){return O[J]}, end:function(J){return R[J]}, length:O.length}}; SrH=function(O,R,J){for(var l=[],u=[],F=0;F=R)return J}catch(l){}return-1}; Ig=function(O,R){return w3(O,R)>=0}; NK2=function(O,R){if(!O)return NaN;R=w3(O,R);return R>=0?O.start(R):NaN}; Cm=function(O,R){if(!O)return NaN;R=w3(O,R);return R>=0?O.end(R):NaN}; r3=function(O){return O&&O.length?O.end(O.length-1):NaN}; t1=function(O){return r3(O)>0}; og=function(O,R){O=Cm(O,R);return O>=0?O-R:0}; ZG=function(O,R,J){for(var l=[],u=[],F=0;FJ||(l.push(Math.max(R,O.start(F))-R),u.push(Math.min(J,O.end(F))-R));return Km(l,u)}; V9=function(O,R,J,l){g.y8.call(this);var u=this;this.M7=O;this.start=R;this.end=J;this.isActive=l;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.AN={error:function(){!u.jN()&&u.isActive&&u.publish("error",u)}, updateend:function(){!u.jN()&&u.isActive&&u.publish("updateend",u)}}; this.M7.MP(this.AN);this.Cm=this.isActive}; Se=function(O,R,J,l,u,F){g.y8.call(this);var G=this;this.yd=O;this.rI=R;this.id=J;this.containerType=l;this.Pq=u;this.ke=F;this.Dz=this.w9=this.Mc=null;this.Sh=!1;this.appendWindowStart=this.timestampOffset=0;this.jd=Km([],[]);this.X4=!1;this.ew=[];this.eP=fm?[]:void 0;this.Rj=function(w){return G.publish(w.type,G)}; var y;if((y=this.yd)==null?0:y.addEventListener)this.yd.addEventListener("updateend",this.Rj),this.yd.addEventListener("error",this.Rj)}; N8=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; mi=function(O,R){this.By=O;this.L=R===void 0?!1:R;this.S=!1}; Ew=function(O,R,J){J=J===void 0?!1:J;g.p.call(this);this.mediaElement=O;this.EQ=R;this.isView=J;this.j=0;this.N=!1;this.D=!0;this.W=0;this.callback=null;this.V=!1;this.EQ||(this.rI=g.e(this.mediaElement.u5()));this.events=new g.p8(this);g.H(this,this.events);this.B=new mi(this.EQ?window.URL.createObjectURL(this.EQ):this.rI.webkitMediaSourceURL,!0);O=this.EQ||this.rI;$s(this.events,O,["sourceopen","webkitsourceopen"],this.fhq);$s(this.events,O,["sourceclose","webkitsourceclose"],this.o8z);this.J={updateend:this.BE}}; mt2=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; E0p=function(O,R){h1(O)?g.aL(function(){R(O)}):O.callback=R}; Dts=function(O,R,J){if(z4){var l;nm(O.mediaElement,{l:"mswssb",sr:(l=O.mediaElement.LJ)==null?void 0:l.wR()},!1);R.MP(O.J,O);J.MP(O.J,O)}O.L=R;O.S=J;g.H(O,R);g.H(O,J)}; cL=function(O){return!!O.L||!!O.S}; h1=function(O){try{return OJ(O)==="open"}catch(R){return!1}}; OJ=function(O){if(O.EQ)return O.EQ.readyState;switch(O.rI.webkitSourceState){case O.rI.SOURCE_OPEN:return"open";case O.rI.SOURCE_ENDED:return"ended";default:return"closed"}}; Re=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; a_A=function(O){h1(O)&&(O.EQ?O.EQ.endOfStream():O.rI.webkitSourceEndOfStream(O.rI.EOS_NO_ERROR))}; v0f=function(O,R,J,l){if(!O.L||!O.S)return null;var u=O.L.isView()?O.L.M7:O.L,F=O.S.isView()?O.S.M7:O.S,G=new Ew(O.mediaElement,O.EQ,!0);G.B=O.B;Dts(G,new V9(u,R,J,l),new V9(F,R,J,l));h1(O)||O.L.qd(O.L.Vd());return G}; XIB=function(O){var R;(R=O.L)==null||R.lT();var J;(J=O.S)==null||J.lT();O.D=!1}; Jw=function(){var O=this;this.jE=this.Uh=S_B;this.promise=new g.XH(function(R,J){O.Uh=R;O.jE=J})}; gc=function(){g.p.call(this);this.d8=!1;this.By=null;this.J=this.j=!1;this.N=new g.tW;this.LJ=null;g.H(this,this.N)}; iy=function(O){O=O.xJ();return O.length<1?NaN:O.end(O.length-1)}; TK_=function(O){!O.S&&mt2()&&(O.B?O.B.then(function(){return TK_(O)}):O.ea()||(O.S=O.QV()))}; $tL=function(O){O.S&&(O.S.dispose(),O.S=void 0)}; nm=function(O,R,J){var l;((l=O.LJ)==null?0:l.DA())&&O.LJ.nJ("rms",R,J===void 0?!1:J)}; MgL=function(O,R,J){O.isPaused()||O.getCurrentTime()>R||J>10||(O.play(),g.tF(function(){MgL(O,O.getCurrentTime(),J+1)},500))}; qr_=function(O,R){O.By&&O.By.equals(R)||(O.By&&O.By.dispose(),O.By=R)}; ly=function(O){return og(O.cH(),O.getCurrentTime())}; kk_=function(O,R){if(O.n$()===0||O.hasError())return!1;var J=O.getCurrentTime()>0;return R>=0&&(O=O.xJ(),O.length||!J)?Ig(O,R):J}; uy=function(O){O.ea()&&(O.LJ&&O.LJ.Ik("rs_s"),YS&&O.getCurrentTime()>0&&O.seekTo(0),O.zU(),O.load(),qr_(O,null));delete O.B}; FL=function(O){switch(O.U0()){case 2:return"progressive.net.retryexhausted";case 3:return O=O.HH(),(O==null?0:O.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||sHp&&(O==null?0:O.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.GP=function(O,R,J){this.PH=R===void 0?null:R;this.seekSource=J===void 0?null:J;this.state=O||64}; KX=function(O,R,J){J=J===void 0?!1:J;return b9W(O,R.getCurrentTime(),(0,g.Q)(),ly(R),J)}; yg=function(O,R,J,l){if(!(R===O.state&&J===O.PH&&l===O.seekSource||R!==void 0&&(R&128&&!J||R&2&&R&16))){var u;if(u=R)u=R||O.state,u=!!(u&16||u&32);O=new g.GP(R,J,u?l?l:O.seekSource:null)}return O}; wc=function(O,R,J){return yg(O,O.state|R,null,J===void 0?null:J)}; Ie=function(O,R){return yg(O,O.state&~R,null,null)}; CX=function(O,R,J,l){return yg(O,(O.state|R)&~J,null,l===void 0?null:l)}; g.d=function(O,R){return!!(O.state&R)}; g.rc=function(O,R){return R.state===O.state&&R.PH===O.PH}; tw=function(O){return O.isPlaying()&&!g.d(O,16)&&!g.d(O,32)}; oe=function(O){return g.d(O,128)?-1:g.d(O,2)?0:g.d(O,2048)?3:g.d(O,64)?-1:g.d(O,1)&&!g.d(O,32)?3:g.d(O,8)?1:g.d(O,4)?2:-1}; Vg=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z,V,m,E){g.p.call(this);var a=this;this.j8=O;this.slot=R;this.layout=J;this.yh=l;this.Hy=u;this.rd=F;this.YS=G;this.iK=y;this.q9=w;this.VY=I;this.position=r;this.j=t;this.wd=Z;this.Nt=V;this.A1=m;this.context=E;this.WH=!0;this.D=!1;this.C1="not_rendering";this.S=!1;this.B=new VW;O=Gg(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.lz=new $d(J.n1,this.yh,O,J.layoutId);var v;O=((v=ZX(this))==null?void 0:v.progressCommands)||[];this.N=new shB(w, O,J.layoutId,function(){return a.Qr()}); this.L=new yTW({adCpn:this.layout.layoutId,tj:E.tj,Igg:this.Nt,ke:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; fX=function(O){return{layoutId:O.Xp(),iL:O.Nt,LA:O.rd.get(),Lc:O.Fw()}}; S2=function(O,R){return R.layoutId!==O.layout.layoutId?(O.j8.fY(O.slot,R,new uO("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+O.layout.layoutId+("and LayoutType: "+O.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; N4=function(O){O.C1="rendering_start_requested";O.VY(-1)}; ZX=function(O){return Gg(O.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; W6x=function(O){rK("Received layout exit signal when not in layout exit flow.",O.slot,O.layout)}; ATB=function(O){var R;return((R=mw(O.rd.get(),2))==null?void 0:R.clientPlaybackNonce)||""}; EJ=function(O,R){switch(R){case "normal":O.kH("complete");break;case "skipped":O.kH("skip");break;case "abandoned":Wb(O.lz,"impression")&&O.kH("abandon")}}; DX=function(O,R){O.D||(R=new g.tT(R.state,new g.GP),O.D=!0);return R}; ae=function(O,R){rz(R)?O.VY(1):g.Z_(R,4)&&!g.Z_(R,2)&&O.zQ();oH(R,4)<0&&!(oH(R,2)<0)&&O.lJ()}; eMh=function(O){O.position===0&&(O.iK.get(),O=Gg(O.layout.clientMetadata,"metadata_type_ad_placement_config").kind,O={adBreakType:vG(O)},x3("ad_bl"),g.U8(O))}; XL=function(O,R){sx(O.lz,R,!O.S)}; pIW=function(O){var R;return(((R=ZX(O))==null?void 0:R.progressCommands)||[]).findIndex(function(J){return!!g.x(J==null?void 0:J.command,PzH)})!==-1}; TP=function(O,R){var J=Gg(O.clientMetadata,"metadata_type_eligible_for_ssap");return J===void 0?(rK("Expected SSAP eligibility in PlayerBytes factory",O),!1):R.Fw(J)}; $z=function(O,R){if(!n2(R.get(),"html5_ssap_pass_transition_reason"))return 3;switch(O){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return rK("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return rK("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:O}),3;default:zM(O,"unknown layoutExitReason")}}; BKs=function(O){rK("getExitReason: unexpected reason",void 0,void 0,{reason:O})}; M4=function(O,R){if(n2(R.get(),"html5_ssap_pass_transition_reason"))switch(O){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return BKs(O),"abandoned";case 3:case 1:return BKs(O),"error";default:zM(O,"unexpected transition reason")}else switch(O){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return rK("getExitReason: unexpected reason",void 0,void 0,{reason:O}),"error";default:zM(O,"unexpected transition reason")}}; q4=function(O,R,J){Q0(O,J)||Y3(O,R,J);Q0(O,"video_to_ad")||Y3(O,R,"video_to_ad");Q0(O,"ad_to_video")||Y3(O,R,"ad_to_video");Q0(O,"ad_to_ad")||Y3(O,R,"ad_to_ad")}; kz=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z,V,m,E,a){Vg.call(this,O,R,J,l,u,F,G,y,I,C,r,t,Z,V,m,E,a);var v=this;this.zR=w;this.hs=r;this.zn=!0;this.d4=this.Oc=0;this.eh=oo(function(){uMB(fX(v));v.j8.K1(v.slot,v.layout)}); this.Dn=oo(function(){F6p(fX(v));v.C1!=="rendering_stop_requested"&&v.hs(v);v.layoutExitReason?v.j8.wz(v.slot,v.layout,v.layoutExitReason):W6x(v)}); this.Jp=new g.Ph(200);this.Jp.listen("tick",function(){v.v3()}); g.H(this,this.Jp)}; by=function(O){O.d4=Date.now();sJ(O,O.Oc);O.Jp.start()}; H9s=function(O){O.Oc=O.Qr();O.R0(O.Oc/1E3,!0);sJ(O,O.Oc)}; sJ=function(O,R){R={current:R/1E3,duration:O.Qr()/1E3};O.zR.get().oy("onAdPlaybackProgress",R)}; WG=function(O){kz.call(this,O.j8,O.slot,O.XU,O.yh,O.Hy,O.rd,O.YS,O.iK,O.zR,O.q9,O.VY,O.hs,O.cI,O.d0,O.wd,O.Nt,O.A1,O.context)}; Aw=function(O){kz.call(this,O.j8,O.slot,O.XU,O.yh,O.Hy,O.rd,O.YS,O.iK,O.zR,O.q9,O.VY,O.hs,O.cI,O.d0,O.wd,O.Nt,O.A1,O.context)}; e2=function(){Aw.apply(this,arguments)}; xtL=function(O){return TP(O.slot,O.wd.get())?new e2(O):new WG(O)}; BG=function(O){Vg.call(this,O.callback,O.slot,O.XU,O.yh,O.Hy,O.rd,O.YS,O.iK,O.q9,O.VY,O.hs,O.cI,O.d0,O.wd,O.Nt,O.A1,O.context);var R=this;this.adCpn="";this.aD=this.dF=0;this.eh=oo(function(){uMB(fX(R));R.j8.K1(R.slot,R.layout)}); this.Dn=oo(function(){F6p(fX(R));R.C1!=="rendering_stop_requested"&&R.hs(R);R.layoutExitReason?R.j8.wz(R.slot,R.layout,R.layoutExitReason):W6x(R)}); this.Th=O.Th;this.F5=O.F5;this.I2=O.I2;this.zR=O.zR;this.Zs=O.Zs;this.hs=O.hs;if(!this.Fw()){n2(this.wd.get(),"html5_disable_media_load_timeout")||(this.iD=new g.zR(function(){R.dH("load_timeout",new uO("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); O=PG(this.wd.get());var J=pX(this.wd.get());O&&J&&(this.vR=new g.zR(function(){var l=Gg(R.layout.clientMetadata,"metadata_type_preload_player_vars");l&&R.F5.get().X.preloadVideoByPlayerVars(l,2,300)}))}}; jHs=function(O,R){var J=Gg(R.clientMetadata,"metadata_type_ad_video_id"),l=Gg(R.clientMetadata,"metadata_type_legacy_info_card_vast_extension");J&&l&&O.Zs.get().X.T().xS.add(J,{nU:l});(R=Gg(R.clientMetadata,"metadata_type_sodar_extension_data"))&&QyT(O.Th.get(),R);UtL(O.YS.get(),!1)}; QHp=function(O){UtL(O.YS.get(),!0);var R;((R=O.shrunkenPlayerBytesConfig)==null?0:R.shouldRequestShrunkenPlayerBytes)&&O.YS.get().HA(!1)}; L6L=function(O){return new HG(O)}; xz=function(){BG.apply(this,arguments)}; HG=function(){xz.apply(this,arguments)}; Yrh=function(O){return xtL(Object.assign({},O,{j8:O.callback,VY:function(){}}))}; dtf=function(O){return new BG(Object.assign({},O,{VY:function(R){O.zR.get().oy("onAdIntroStateChange",R)}}))}; hM0=function(O){function R(J){O.zR.get().X7(J)} return TP(O.slot,O.wd.get())?L6L(Object.assign({},O,{VY:R})):new BG(Object.assign({},O,{VY:R}))}; UJ=function(O){for(var R=O.XU,J=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],l=g.N(Mi()),u=l.next();!u.done;u=l.next())J.push(u.value);if(cb(R,{gO:J,k8:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Yrh(O);R=O.XU;J=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];l=g.N(Mi());for(u=l.next();!u.done;u=l.next())J.push(u.value);if(cb(R,{gO:J,k8:["LAYOUT_TYPE_MEDIA"]}))return gU(O.XU.clientMetadata,"metadata_type_ad_intro")?dtf(O):hM0(O)}; n02=function(O){var R=g.e(Gg(O.clientMetadata,"metadata_type_ad_placement_config")).kind,J=Gg(O.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:O.layoutId,adType:zMW(J),adBreakType:vG(R)}}; vG=function(O){switch(O){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"}}; zMW=function(O){switch(O){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; cTW=function(O){try{return new j2(O.fd,O.slot,O.layout,O.ij,O.SR,O.rd,O.Sr,O.F5,O.Wy,O.YS,O.bWq,O)}catch(R){}}; j2=function(O,R,J,l,u,F,G,y,w,I,C,r){g.p.call(this);this.fd=O;this.slot=R;this.layout=J;this.ij=l;this.SR=u;this.rd=F;this.Sr=G;this.F5=y;this.Wy=w;this.YS=I;this.params=r;this.WH=!0;O=UJ(C);if(!O)throw Error("Invalid params for sublayout");this.k9=O}; OZA=function(){this.L=1;this.S=new VW}; Qg=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z){g.p.call(this);this.callback=O;this.rd=R;this.Sr=J;this.F5=l;this.YS=u;this.Qw=F;this.iK=G;this.vD=y;this.slot=w;this.layout=I;this.ij=C;this.GE=r;this.Wy=t;this.wd=Z;this.WH=!0;this.Yp=!1;this.KW=[];this.OA=-1;this.SM=!1;this.jT=new OZA}; RoH=function(O){var R;return(R=O.layout.WI)!=null?R:Gg(O.layout.clientMetadata,"metadata_type_sub_layouts")}; LX=function(O){return{LA:O.rd.get(),iL:!1,Lc:O.Fw()}}; J9z=function(O,R,J){if(O.p$()===O.KW.length-1){var l,u;rK("Unexpected skip requested during the last sublayout",(l=O.PW())==null?void 0:l.Uf(),(u=O.PW())==null?void 0:u.UQ(),{requestingSlot:R,requestingLayout:J})}}; g3T=function(O,R,J){return J.layoutId!==Yz(O,R,J)?(rK("onSkipRequested for a PlayerBytes layout that is not currently active",O.Uf(),O.UQ()),!1):!0}; iZ2=function(O){O.p$()===O.KW.length-1&&rK("Unexpected skip with target requested during the last sublayout")}; l2A=function(O,R,J){return J.renderingContent===void 0&&J.layoutId!==Yz(O,R,J)?(rK("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",O.Uf(),O.UQ(),{requestingSlot:R,requestingLayout:J}),!1):!0}; uiA=function(O,R,J,l){var u=Gg(R.UQ().clientMetadata,"metadata_type_ad_pod_skip_target");if(u&&u>0&&u0)){rK("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",O.slot,O.layout,{indexToPlay:R,layoutId:O.layout.layoutId});break a}O.OA=R;R=O.PW();if(O.p$()>0&&!O.Fw()){var J=O.iK.get();J.S=!1;var l={};J.L&&J.videoId&&(l.cttAuthInfo={token:J.L,videoId:J.videoId});jq("ad_to_ad",l)}O.Ig(R)}}; nX=function(O){Qg.call(this,O.fd,O.rd,O.Sr,O.F5,O.YS,O.Qw,O.iK,O.vD,O.slot,O.layout,O.ij,O.GE,O.Wy,O.wd)}; KhW=function(O){(O=O.PW())&&O.DI()}; cG=function(O){Qg.call(this,O.fd,O.rd,O.Sr,O.F5,O.YS,O.Qw,O.iK,O.vD,O.slot,O.layout,O.ij,O.GE,O.Wy,O.wd);this.w2=void 0}; y9x=function(O,R){O.hA()&&!mj(O.jT.S)||O.callback.wz(O.slot,O.layout,R)}; Ol=function(O){return n2(O.wd.get(),"html5_ssap_pass_transition_reason")}; wpf=function(O,R,J){f8(R.GZ())<2&&(J=M4(J,O.wd),R.o2(R.UQ(),J));J=SV(R.GZ());O.tX(O.slot,R.UQ(),J)}; I2B=function(O,R){if(O.jT.S.currentState<2){var J=M4(R,O.wd);J==="error"?O.callback.fY(O.slot,O.layout,new uO("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:R},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):zP(O.GE,O.layout,J)}}; Ra=function(O,R,J){f8(R.GZ())>=2||(R.o2(R.UQ(),J),mj(R.GZ())&&(qJ(O.vD,O.slot,R.UQ(),J),O.w2=void 0))}; CXp=function(O,R){O.jT.L===2&&R!==O.Nx()&&rK("onClipEntered: unknown cpn",O.slot,O.layout,{cpn:R})}; r9H=function(O,R){var J=O.PW();if(J){var l=J.UQ().layoutId,u=O.p$()+1;O.hA()?Ra(O,J,R):J.o2(J.UQ(),R);u>=0&&uu&&G.Gi(C,u-l);return C}; E3x=function(O,R,J){var l=Gg(R.clientMetadata,"metadata_type_sodar_extension_data");if(l)try{QyT(J,l)}catch(u){rK("Unexpected error when loading Sodar",O,R,{error:u})}}; DjW=function(O,R,J,l,u,F,G){Kq(O,R,new g.tT(J,new g.GP),l,u,G,!1,F)}; Kq=function(O,R,J,l,u,F,G,y){G=G===void 0?!0:G;rz(J)&&t4(u,0,null)&&(!Wb(O,"impression")&&y&&y(),O.kH("impression"));Wb(O,"impression")&&(g.Z_(J,4)&&!g.Z_(J,2)&&O.t1("pause"),oH(J,4)<0&&!(oH(J,2)<0)&&O.t1("resume"),g.Z_(J,16)&&u>=.5&&O.t1("seek"),G&&g.Z_(J,2)&&y1(O,J.state,R,l,u,F))}; y1=function(O,R,J,l,u,F,G,y){Wb(O,"impression")&&(F?(F=u-l,F=F>=-1&&F<=2):F=Math.abs(l-u)<=1,wB(O,R,F?l:u,J,l,G,y&&F),F&&O.kH("complete"))}; wB=function(O,R,J,l,u,F,G){bN(O,J*1E3,G);u<=0||J<=0||(R==null?0:g.d(R,16))||(R==null?0:g.d(R,32))||(t4(J,u*.25,l)&&(F&&!Wb(O,"first_quartile")&&F("first"),O.kH("first_quartile")),t4(J,u*.5,l)&&(F&&!Wb(O,"midpoint")&&F("second"),O.kH("midpoint")),t4(J,u*.75,l)&&(F&&!Wb(O,"third_quartile")&&F("third"),O.kH("third_quartile")))}; a2W=function(O,R){Wb(O,"impression")&&O.t1(R?"fullscreen":"end_fullscreen")}; v3s=function(O){Wb(O,"impression")&&O.t1("clickthrough")}; Xpp=function(O){O.t1("active_view_measurable")}; TAf=function(O){Wb(O,"impression")&&!Wb(O,"seek")&&O.t1("active_view_fully_viewable_audible_half_duration")}; $jB=function(O){Wb(O,"impression")&&!Wb(O,"seek")&&O.t1("active_view_viewable")}; MqL=function(O){Wb(O,"impression")&&!Wb(O,"seek")&&O.t1("audio_audible")}; q8s=function(O){Wb(O,"impression")&&!Wb(O,"seek")&&O.t1("audio_measurable")}; kO0=function(O,R,J,l,u,F,G,y,w,I,C,r){this.callback=O;this.slot=R;this.layout=J;this.Sr=l;this.lz=u;this.YS=F;this.b$=G;this.Hy=y;this.Th=w;this.wd=I;this.yh=C;this.rd=r;this.zn=!0;this.Ao=this.C1=null;this.adCpn=void 0;this.L=!1}; scA=function(O,R,J){var l;GJ(O.yh.get(),"ads_qua","cpn."+Gg(O.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((l=mw(O.rd.get(),2))==null?void 0:l.clientPlaybackNonce)+";qt."+R+";clr."+J)}; bZ_=function(O,R){var J,l;GJ(O.yh.get(),"ads_imp","cpn."+Gg(O.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((J=mw(O.rd.get(),2))==null?void 0:J.clientPlaybackNonce)+";clr."+R+";skp."+!!g.x((l=Gg(O.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:l.skipOrPreviewRenderer,Ia))}; Cq=function(O){return{enterMs:Gg(O.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Gg(O.clientMetadata,"metadata_type_layout_exit_ms")}}; rB=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z){gB.call(this,O,R,J,l,u,G,y,w,I,r);this.b$=F;this.Th=C;this.Hy=t;this.wd=Z;this.Ao=this.C1=null}; WhB=function(O,R){var J;GJ(O.yh.get(),"ads_imp","acpn."+((J=mw(O.rd.get(),2))==null?void 0:J.clientPlaybackNonce)+";clr."+R)}; A9H=function(O,R,J){var l;GJ(O.yh.get(),"ads_qua","cpn."+Gg(O.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((l=mw(O.rd.get(),2))==null?void 0:l.clientPlaybackNonce)+";qt."+R+";clr."+J)}; tv=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z,V,m,E,a,v,b,W,B){this.Wy=O;this.ij=R;this.GE=J;this.rd=l;this.Sr=u;this.YS=F;this.Qw=G;this.yh=y;this.b$=w;this.Gy=I;this.Hy=C;this.Th=r;this.F5=t;this.I2=Z;this.iK=V;this.zR=m;this.q9=E;this.Zs=a;this.wd=v;this.L=b;this.context=W;this.A1=B}; oa=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z,V,m,E,a,v){this.Wy=O;this.ij=R;this.GE=J;this.yh=l;this.Hy=u;this.Th=F;this.F5=G;this.rd=y;this.YS=w;this.Qw=I;this.I2=C;this.iK=r;this.zR=t;this.q9=Z;this.Zs=V;this.wd=m;this.Sr=E;this.context=a;this.A1=v}; eof=function(O,R,J,l){Ke.call(this,"survey-interstitial",O,R,J,l)}; ZV=function(O,R,J,l,u){Ni.call(this,J,O,R,l);this.yh=u;O=Gg(R.clientMetadata,"metadata_type_ad_placement_config");this.lz=new $d(R.n1,u,O,R.layoutId)}; V1=function(O){return Math.round(O.width)+"x"+Math.round(O.height)}; SR=function(O,R,J){J=J===void 0?fq:J;J.widthO.width*O.height*.2)return{Hh:3,zi:501,errorMessage:"ad("+V1(J)+") to container("+V1(O)+") ratio exceeds limit."};if(J.height>O.height/3-R)return{Hh:3,zi:501,errorMessage:"ad("+V1(J)+") covers container("+V1(O)+") center."}}; PX_=function(O,R){var J=g.e(Gg(O.clientMetadata,"metadata_type_ad_placement_config"));return new $d(O.n1,R,J,O.layoutId)}; Nr=function(O){return g.e(Gg(O.clientMetadata,"metadata_type_invideo_overlay_ad_renderer"))}; mN=function(O,R,J,l){Ke.call(this,"invideo-overlay",O,R,J,l);this.interactionLoggingClientData=l}; El=function(O,R,J,l,u,F,G,y,w,I,C,r){Ni.call(this,F,O,R,u);this.yh=J;this.N=G;this.YS=y;this.q9=w;this.wd=I;this.j=C;this.D=r;this.lz=PX_(R,J)}; ppH=function(){var O=["metadata_type_invideo_overlay_ad_renderer"];Mi().forEach(function(R){O.push(R)}); return{gO:O,k8:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; DV=function(O,R,J,l,u,F,G,y,w,I,C,r,t){Ni.call(this,F,O,R,u);this.yh=J;this.N=G;this.V=y;this.YS=w;this.q9=I;this.wd=C;this.j=r;this.D=t;this.lz=PX_(R,J)}; BAT=function(){for(var O=["metadata_type_invideo_overlay_ad_renderer"],R=g.N(Mi()),J=R.next();!J.done;J=R.next())O.push(J.value);return{gO:O,k8:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; aa=function(O){this.YS=O;this.L=!1}; HZp=function(O,R,J){Ke.call(this,"survey",O,{},R,J)}; vz=function(O,R,J,l,u,F,G){Ni.call(this,J,O,R,l);this.N=u;this.YS=F;this.wd=G}; xjA=function(O,R,J,l,u,F,G,y,w,I){this.R2=O;this.YS=R;this.yh=J;this.N=l;this.Hy=u;this.S=F;this.B=G;this.q9=y;this.wd=w;this.L=I}; Uj_=function(O,R,J,l,u,F,G,y,w,I){this.R2=O;this.YS=R;this.yh=J;this.N=l;this.Hy=u;this.S=F;this.B=G;this.q9=y;this.wd=w;this.L=I}; X1=function(O,R,J,l,u,F,G,y,w,I){lc.call(this,O,R,J,l,u,F,G,w);this.hc=y;this.rd=I}; jcs=function(){var O=zlh();O.gO.push("metadata_type_ad_info_ad_metadata");return O}; Qcz=function(O,R,J,l,u,F,G){this.R2=O;this.YS=R;this.yh=J;this.S=l;this.hc=u;this.L=F;this.rd=G}; Lhx=function(O,R,J,l,u,F,G,y){this.R2=O;this.YS=R;this.yh=J;this.S=l;this.hc=u;this.L=F;this.wd=G;this.rd=y}; TJ=function(O,R){this.slotId=R;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=O(this.triggerType)}; $$=function(O,R){this.adPodIndex=O;this.L=R.length;this.adBreakLengthSeconds=R.reduce(function(l,u){return l+u},0); var J=0;for(O+=1;O0}; I7=function(O){return!!(O.YQh&&O.slot&&O.layout)}; Cw=function(O){var R,J=(R=O.config)==null?void 0:R.adPlacementConfig;O=O.renderer;return!(!J||J.kind==null||!O)}; Ffs=function(O){if(!lJ(O.adLayoutMetadata))return!1;O=O.renderingContent;return g.x(O,wz)||g.x(O,I1)||g.x(O,K8)||g.x(O,yW)?!0:!1}; rO=function(O){return O.playerVars!==void 0&&O.pings!==void 0&&O.externalVideoId!==void 0}; TC=function(O){if(!lJ(O.adLayoutMetadata))return!1;O=O.renderingContent;var R=g.x(O,tG);return R?o7(R):(R=g.x(O,Zt))?rO(R):(R=g.x(O,VE))?R.playerVars!==void 0:(R=g.x(O,wz))?R.durationMilliseconds!==void 0:g.x(O,fw)||g.x(O,XC)?!0:!1}; o7=function(O){O=(O.sequentialLayouts||[]).map(function(R){return g.x(R,$r)}); return O.length>0&&O.every(TC)}; qY=function(O){return lJ(O.adLayoutMetadata)?(O=g.x(O.renderingContent,MY))&&O.pings?!0:!1:!1}; CHp=function(O){if(!lJ(O.adLayoutMetadata))return!1;if(g.x(O.renderingContent,GS_)||g.x(O.renderingContent,KfL))return!0;var R=g.x(O.renderingContent,kr);return g.x(O.renderingContent,sM)||g.x(R==null?void 0:R.sidePanel,yqf)||g.x(R==null?void 0:R.sidePanel,wgL)||g.x(R==null?void 0:R.sidePanel,Ibx)?!0:!1}; VXW=function(O){var R;(R=!O)||(R=O.adSlotMetadata,R=!((R==null?void 0:R.slotId)!==void 0&&(R==null?void 0:R.slotType)!==void 0));if(R||!(rqB(O)||O.slotEntryTrigger&&O.slotFulfillmentTriggers&&O.slotExpirationTriggers))return!1;var J;O=(J=O.fulfillmentContent)==null?void 0:J.fulfilledLayout;return(J=g.x(O,$r))?TC(J):(J=g.x(O,bJ))?CHp(J):(J=g.x(O,tXT))?Ffs(J):(J=g.x(O,ouW))?lbH(J):(J=g.x(O,Zkz))?lJ(J.adLayoutMetadata)?g.x(J.renderingContent,uJ)?!0:!1:!1:(O=g.x(O,WO))?qY(O):!1}; rqB=function(O){var R;O=g.x((R=O.fulfillmentContent)==null?void 0:R.fulfilledLayout,bJ);var J;return O&&((J=O.adLayoutMetadata)==null?void 0:J.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&O.layoutExitNormalTriggers===void 0}; fb_=function(O){var R;return(O==null?void 0:(R=O.adSlotMetadata)==null?void 0:R.slotType)==="SLOT_TYPE_IN_PLAYER"}; NDH=function(O,R){var J;if((J=O.questions)==null||!J.length||!O.playbackCommands||(R===void 0||!R)&&O.questions.length!==1)return!1;O=g.N(O.questions);for(R=O.next();!R.done;R=O.next()){R=R.value;var l=J=void 0,u=((J=g.x(R,AG))==null?void 0:J.surveyAdQuestionCommon)||((l=g.x(R,e7))==null?void 0:l.surveyAdQuestionCommon);if(!SX_(u))return!1}return!0}; mFh=function(O){O=((O==null?void 0:O.playerOverlay)||{}).instreamSurveyAdRenderer;var R;if(O)if(O.playbackCommands&&O.questions&&O.questions.length===1){var J,l=((R=g.x(O.questions[0],AG))==null?void 0:R.surveyAdQuestionCommon)||((J=g.x(O.questions[0],e7))==null?void 0:J.surveyAdQuestionCommon);R=SX_(l)}else R=!1;else R=!1;return R}; SX_=function(O){if(!O)return!1;O=g.x(O.instreamAdPlayerOverlay,PO);var R=g.x(O==null?void 0:O.skipOrPreviewRenderer,Ia),J=g.x(O==null?void 0:O.adInfoRenderer,pw);return(g.x(O==null?void 0:O.skipOrPreviewRenderer,BO)||R)&&J?!0:!1}; Eux=function(O){return O.linearAds!=null&&lJ(O.adLayoutMetadata)}; DF2=function(O){return O.linearAd!=null&&O.adVideoStart!=null}; abH=function(O){if(isNaN(Number(O.timeoutSeconds))||!O.text||!O.ctaButton||!g.x(O.ctaButton,g.HO)||!O.brandImage)return!1;var R;return O.backgroundImage&&g.x(O.backgroundImage,xr)&&((R=g.x(O.backgroundImage,xr))==null?0:R.landscape)?!0:!1}; UM=function(O,R,J,l,u,F,G,y){g.p.call(this);this.wd=O;this.L=R;this.S=l;this.rd=u;this.N=F;this.B=G;this.F5=y}; $FW=function(O,R,J){var l,u=((l=J.adSlots)!=null?l:[]).map(function(y){return g.x(y,j7)}); if(J.Go)if(Gg(R.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))ZF(O.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},R.slotId); else{if(vuL(O.wd.get())){var F=J.jf.filter(function(y){var w;return((w=y.renderer)==null?void 0:w.clientForecastingAdRenderer)!=null}); F.length!==0?Xgp(O.B,F,u,R.slotId,J.ssdaiAdsConfig):ZF(O.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},R.slotId)}else ZF(O.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},R.slotId); TDf(O.N,R)}else{var G;l={GN:Math.round(((F=Gg(R.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:F.GN)||0),E6:(G=Gg(R.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:G.E6};Xgp(O.B,J.jf,u,R.slotId,J.ssdaiAdsConfig,l)}}; kSA=function(O,R,J,l,u,F,G){var y=mw(O.rd.get(),1);if(MXH(O.wd.get())){var w=QE(O.S.get(),J,l,u,y.clientPlaybackNonce,y.KD,y.daiEnabled,y,F,G);qXH(O,w);ZF(O.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return w},R)}else ZF(O.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return QE(O.S.get(),J,l,u,y.clientPlaybackNonce,y.KD,y.daiEnabled,y,F,G)},R)}; qXH=function(O,R){R=g.N(R);for(var J=R.next();!J.done;J=R.next()){var l=J.value;if(l.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l.fulfilledLayout)if(J=void 0,l.fulfilledLayout.renderingContent)J=Gg(l.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(l.fulfilledLayout.WI){l=g.N(l.fulfilledLayout.WI);for(var u=l.next();!u.done&&(u=u.value,!u.renderingContent||!(J=Gg(u.clientMetadata,"metadata_type_player_vars")));u=l.next());}}else J=void 0;if(J){O.F5.get().X.preloadVideoByPlayerVars(J, 2,300);break}}}; bks=function(O,R,J,l,u,F,G){R=szH(R,F,Number(l.prefetchMilliseconds)||0,G);O=R instanceof h?R:Lw(O,l,u,R,J);return O instanceof h?O:[O]}; WfH=function(O,R,J,l,u){var F=Vv(O.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");l=[new py({getAdBreakUrl:l.getAdBreakUrl,GN:0,E6:0}),new Om(!0)];O=R.pauseDurationMs?R.lactThresholdMs?{slotId:F,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new OM(O.L,F),slotFulfillmentTriggers:[new djh(O.L)],slotExpirationTriggers:[new Lq(O.L,u),new zJ(O.L,F)],kS:"core",clientMetadata:new FV(l),adSlotLoggingData:J}:new h("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new h("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return O instanceof h?O:[O]}; Aqf=function(O){var R,J;return((R=O.renderer)==null?void 0:(J=R.adBreakServiceRenderer)==null?void 0:J.getAdBreakUrl)!==void 0}; Yr=function(O,R,J){if(O.beforeContentVideoIdStartedTrigger)O=O.beforeContentVideoIdStartedTrigger?new Mr(lO,R,O.id):new h("Not able to create BeforeContentVideoIdStartedTrigger");else{if(O.layoutIdExitedTrigger){var l;R=(l=O.layoutIdExitedTrigger)!=null&&l.triggeringLayoutId?new Av(lO,O.layoutIdExitedTrigger.triggeringLayoutId,O.id):new h("Not able to create LayoutIdExitedTrigger")}else{if(O.layoutExitedForReasonTrigger){var u,F;((u=O.layoutExitedForReasonTrigger)==null?0:u.triggeringLayoutId)&&((F= O.layoutExitedForReasonTrigger)==null?0:F.layoutExitReason)?(R=hoz(O.layoutExitedForReasonTrigger.layoutExitReason),O=R instanceof h?R:new Wz(lO,O.layoutExitedForReasonTrigger.triggeringLayoutId,[R],O.id)):O=new h("Not able to create LayoutIdExitedForReasonTrigger")}else{if(O.onLayoutSelfExitRequestedTrigger){var G;R=(G=O.onLayoutSelfExitRequestedTrigger)!=null&&G.triggeringLayoutId?new Q1(lO,O.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,O.id):new h("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(O.onNewPlaybackAfterContentVideoIdTrigger)O= O.onNewPlaybackAfterContentVideoIdTrigger?new Lq(lO,R,O.id):new h("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(O.skipRequestedTrigger){var y;R=(y=O.skipRequestedTrigger)!=null&&y.triggeringLayoutId?new dB(lO,O.skipRequestedTrigger.triggeringLayoutId,O.id):new h("Not able to create SkipRequestedTrigger")}else if(O.slotIdEnteredTrigger){var w;R=(w=O.slotIdEnteredTrigger)!=null&&w.triggeringSlotId?new hv(lO,O.slotIdEnteredTrigger.triggeringSlotId,O.id):new h("Not able to create SlotIdEnteredTrigger")}else if(O.slotIdExitedTrigger){var I; R=(I=O.slotIdExitedTrigger)!=null&&I.triggeringSlotId?new zJ(lO,O.slotIdExitedTrigger.triggeringSlotId,O.id):new h("Not able to create SkipRequestedTrigger")}else if(O.surveySubmittedTrigger){var C;R=(C=O.surveySubmittedTrigger)!=null&&C.triggeringLayoutId?new JG(lO,O.surveySubmittedTrigger.triggeringLayoutId,O.id):new h("Not able to create SurveySubmittedTrigger")}else{if(O.mediaResumedTrigger)O=O.mediaResumedTrigger&&O.id?new zoT(O.id):new h("Not able to create MediaResumedTrigger");else{if(O.closeRequestedTrigger){var r; R=(r=O.closeRequestedTrigger)!=null&&r.triggeringLayoutId?new qr(lO,O.closeRequestedTrigger.triggeringLayoutId,O.id):new h("Not able to create CloseRequestedTrigger")}else if(O.slotIdScheduledTrigger){var t;R=(t=O.slotIdScheduledTrigger)!=null&&t.triggeringSlotId?new OM(lO,O.slotIdScheduledTrigger.triggeringSlotId,O.id):new h("Not able to create SlotIdScheduledTrigger")}else{if(O.mediaTimeRangeTrigger){var Z;l=Number((Z=O.mediaTimeRangeTrigger)==null?void 0:Z.offsetStartMilliseconds);var V;G=Number((V= O.mediaTimeRangeTrigger)==null?void 0:V.offsetEndMilliseconds);isFinite(l)&&isFinite(G)?(V=G,V===-1&&(V=J),J=l>V?new h("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:l,offsetEndMs:V},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",V===J&&l-500<=V):new DH(l,V),O=J instanceof h?J:new Hz(lO,R,J,!1,O.id)):O=new h("Not able to create MediaTimeRangeTrigger")}else if(O.contentVideoIdEndedTrigger)O=O.contentVideoIdEndedTrigger?new k$(lO,R,!1,O.id):new h("Not able to create ContentVideoIdEndedTrigger"); else{if(O.layoutIdEnteredTrigger){var m;R=(m=O.layoutIdEnteredTrigger)!=null&&m.triggeringLayoutId?new bZ(lO,O.layoutIdEnteredTrigger.triggeringLayoutId,O.id):new h("Not able to create LayoutIdEnteredTrigger")}else if(O.timeRelativeToLayoutEnterTrigger){var E;R=(E=O.timeRelativeToLayoutEnterTrigger)!=null&&E.triggeringLayoutId?new gO(lO,Number(O.timeRelativeToLayoutEnterTrigger.durationMs),O.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,O.id):new h("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(O.onDifferentLayoutIdEnteredTrigger){var a; R=(a=O.onDifferentLayoutIdEnteredTrigger)!=null&&a.triggeringLayoutId&&O.onDifferentLayoutIdEnteredTrigger.slotType&&O.onDifferentLayoutIdEnteredTrigger.layoutType?new Ul(lO,O.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,O.onDifferentLayoutIdEnteredTrigger.slotType,O.onDifferentLayoutIdEnteredTrigger.layoutType,O.id):new h("Not able to create CloseRequestedTrigger")}else{if(O.liveStreamBreakStartedTrigger)O=O.liveStreamBreakStartedTrigger&&O.id?new Bz(lO,O.id):new h("Not able to create LiveStreamBreakStartedTrigger"); else if(O.liveStreamBreakEndedTrigger)O=O.liveStreamBreakEndedTrigger&&O.id?new eR(lO,O.id):new h("Not able to create LiveStreamBreakEndedTrigger");else{if(O.liveStreamBreakScheduledDurationMatchedTrigger){var v;R=(v=O.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&v.breakDurationMs?new Pz(Number(O.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,O.id):new h("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(O.liveStreamBreakScheduledDurationNotMatchedTrigger){var b; R=(b=O.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&b.breakDurationMs?new pq(Number(O.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,O.id):new h("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(O.newSlotScheduledWithBreakDurationTrigger){var W;R=(W=O.newSlotScheduledWithBreakDurationTrigger)!=null&&W.breakDurationMs?new x$(Number(O.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,O.id):new h("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else R= O.prefetchCacheExpiredTrigger?new Y$(lO,O.id):new h("Not able to convert an AdsControlflowTrigger.");O=R}R=O}O=R}R=O}O=R}R=O}O=R}R=O}O=R}R=O}O=R}return O}; dO=function(O,R){R.L>=2&&(O.slot_pos=R.adPodIndex);O.autoplay="1"}; PHA=function(O,R,J,l,u,F,G,y){return R===null?new h("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:R,ActionCompanionAdRenderer:l}):[eyA(O,R,G,F,function(w){var I=w.slotId;w=y(w);var C=l.adLayoutLoggingData,r=new FV([new Hk(l),new Od(u)]);I=c6(J.S.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",I);var t={layoutId:I,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",kS:"core"};return{layoutId:I,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n1:new Map, layoutExitNormalTriggers:[new Lq(J.L,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"core",clientMetadata:r,xH:w(t),adLayoutLoggingData:C}})]}; pgs=function(O,R,J,l,u,F,G,y){return R===null?new h("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:R,TopBannerImageTextIconButtonedLayoutViewModel:l}):[eyA(O,R,G,F,function(w){var I=w.slotId;w=y(w);var C=l.adLayoutLoggingData,r=new FV([new xg(l),new Od(u)]);I=c6(J.S.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",I);var t={layoutId:I,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",kS:"core"};return{layoutId:I,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", n1:new Map,layoutExitNormalTriggers:[new Lq(J.L,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"core",clientMetadata:r,xH:w(t),adLayoutLoggingData:C}})]}; UFp=function(O,R,J,l,u,F){if(!F)for(R=g.N(R),F=R.next();!F.done;F=R.next())F=F.value,hG(O,F.renderer,F.config.adPlacementConfig.kind);O=Array.from(O.values()).filter(function(C){return BDA(C)}); R=[];F=g.N(O);for(var G=F.next(),y={};!G.done;y={G4:void 0},G=F.next()){y.G4=G.value;G=g.N(y.G4.La);for(var w=G.next(),I={};!w.done;I={Nl:void 0},w=G.next())I.Nl=w.value,w=function(C,r){return function(t){return C.Nl.oB(t,r.G4.instreamVideoAdRenderer.elementId,C.Nl.RB)}}(I,y),I.Nl.isContentVideoCompanion?R.push(Hks(J,l,u,y.G4.instreamVideoAdRenderer.elementId,I.Nl.associatedCompositePlayerBytesLayoutId,I.Nl.adSlotLoggingData,w)):O.length>1?R.push(xF2(J,l,u,y.G4.instreamVideoAdRenderer.elementId,I.Nl.adSlotLoggingData, function(C,r){return function(t){return C.Nl.oB(t,r.G4.instreamVideoAdRenderer.elementId,C.Nl.RB,C.Nl.associatedCompositePlayerBytesLayoutId)}}(I,y))):R.push(xF2(J,l,u,y.G4.instreamVideoAdRenderer.elementId,I.Nl.adSlotLoggingData,w))}return R}; hG=function(O,R,J){if(R=jzB(R)){R=g.N(R);for(var l=R.next();!l.done;l=R.next())if((l=l.value)&&l.externalVideoId){var u=zC(O,l.externalVideoId);u.instreamVideoAdRenderer||(u.instreamVideoAdRenderer=l,u.Cr=J)}else rK("InstreamVideoAdRenderer without externalVideoId")}}; jzB=function(O){var R=[],J=O.sandwichedLinearAdRenderer&&O.sandwichedLinearAdRenderer.linearAd&&g.x(O.sandwichedLinearAdRenderer.linearAd,Zt);if(J)return R.push(J),R;if(O.instreamVideoAdRenderer)return R.push(O.instreamVideoAdRenderer),R;if(O.linearAdSequenceRenderer&&O.linearAdSequenceRenderer.linearAds){O=g.N(O.linearAdSequenceRenderer.linearAds);for(J=O.next();!J.done;J=O.next())J=J.value,g.x(J,Zt)&&R.push(g.x(J,Zt));return R}return null}; BDA=function(O){if(O.instreamVideoAdRenderer===void 0)return rK("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var R=g.N(O.La),J=R.next();!J.done;J=R.next()){J=J.value;if(J.oB===void 0)return!1;if(J.RB===void 0)return rK("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(O.Cr===void 0||J.Ur===void 0||O.Cr!==J.Ur&&J.Ur!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(O.instreamVideoAdRenderer.elementId===void 0)return rK("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:O.Cr,"matching APSR kind":J.Ur}),!1}return!0}; zC=function(O,R){O.has(R)||O.set(R,{instreamVideoAdRenderer:void 0,Cr:void 0,adVideoId:R,La:[]});return g.e(O.get(R))}; nw=function(O,R,J,l,u,F,G,y,w){u?zC(O,u).La.push({Yih:R,Ur:J,isContentVideoCompanion:l,RB:G,associatedCompositePlayerBytesLayoutId:F,adSlotLoggingData:y,oB:w}):rK("Companion AdPlacementSupportedRenderer without adVideoId")}; cO=function(O){var R=0;O=g.N(O.questions);for(var J=O.next();!J.done;J=O.next())if(J=J.value,J=g.x(J,AG)||g.x(J,e7)){var l=void 0;R+=((l=J.surveyAdQuestionCommon)==null?void 0:l.durationMilliseconds)||0}return R}; OG=function(O){var R,J,l,u,F=((J=g.x((R=O.questions)==null?void 0:R[0],AG))==null?void 0:J.surveyAdQuestionCommon)||((u=g.x((l=O.questions)==null?void 0:l[0],e7))==null?void 0:u.surveyAdQuestionCommon),G;R=[].concat(g.X(((G=O.playbackCommands)==null?void 0:G.instreamAdCompleteCommands)||[]),g.X((F==null?void 0:F.timeoutCommands)||[]));var y,w,I,C,r,t,Z,V,m,E,a,v,b,W,B,z,Y,gh,l2,O_;return{impressionCommands:(y=O.playbackCommands)==null?void 0:y.impressionCommands,errorCommands:(w=O.playbackCommands)== null?void 0:w.errorCommands,muteCommands:(I=O.playbackCommands)==null?void 0:I.muteCommands,unmuteCommands:(C=O.playbackCommands)==null?void 0:C.unmuteCommands,pauseCommands:(r=O.playbackCommands)==null?void 0:r.pauseCommands,rewindCommands:(t=O.playbackCommands)==null?void 0:t.rewindCommands,resumeCommands:(Z=O.playbackCommands)==null?void 0:Z.resumeCommands,skipCommands:(V=O.playbackCommands)==null?void 0:V.skipCommands,progressCommands:(m=O.playbackCommands)==null?void 0:m.progressCommands,diN:(E= O.playbackCommands)==null?void 0:E.clickthroughCommands,fullscreenCommands:(a=O.playbackCommands)==null?void 0:a.fullscreenCommands,activeViewViewableCommands:(v=O.playbackCommands)==null?void 0:v.activeViewViewableCommands,activeViewMeasurableCommands:(b=O.playbackCommands)==null?void 0:b.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(W=O.playbackCommands)==null?void 0:W.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(B=O.playbackCommands)== null?void 0:(z=B.activeViewTracking)==null?void 0:z.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(Y=O.playbackCommands)==null?void 0:(gh=Y.activeViewTracking)==null?void 0:gh.activeViewAudioMeasurableCommands,endFullscreenCommands:(l2=O.playbackCommands)==null?void 0:l2.endFullscreenCommands,abandonCommands:(O_=O.playbackCommands)==null?void 0:O_.abandonCommands,completeCommands:R}}; Lf2=function(O,R,J,l,u,F,G){return function(y,w){return Qzf(O,w.slotId,y,F,function(I,C){var r=w.layoutId;I=G(I);return RG(R,r,C,u,I,"LAYOUT_TYPE_SURVEY",[new ok(J),l],J.adLayoutLoggingData)})}}; hys=function(O,R,J,l,u,F,G){if(!YXL(O))return new h("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:O});var y=O.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[dFA(F,R,J,l,function(w){var I=w.slotId;w=G(w);I=c6(u.S.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",I);var C={layoutId:I,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",kS:"core"},r=new Av(u.L,l);return{layoutId:I,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",n1:new Map,layoutExitNormalTriggers:[r], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"core",clientMetadata:new FV([new Zz(y)]),xH:w(C)}})]}; YXL=function(O){O=g.x(O==null?void 0:O.additionalPlayerOverlay,zyf);if(!O)return!1;var R=O.slidingMessages;return O.title&&R&&R.length!==0?!0:!1}; cq2=function(O,R,J,l,u){var F;if((F=O.playerOverlay)==null||!F.instreamSurveyAdRenderer)return function(){return[]}; if(!mFh(O))return function(){return new h("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:O})}; var G=O.playerOverlay.instreamSurveyAdRenderer,y=cO(G);return y<=0?function(){return new h("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:G})}:function(w,I){var C=nuf(w,J,l,function(r){var t=r.slotId; r=I(r);var Z=OG(G);t=c6(u.S.get(),"LAYOUT_TYPE_SURVEY",t);var V={layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",kS:"core"},m=new Av(u.L,l),E=new dB(u.L,t),a=new JG(u.L,t),v=new Rys(u.L);return{layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",n1:new Map,layoutExitNormalTriggers:[m,v],layoutExitSkipTriggers:[E],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[a],Dv:[],kS:"core",clientMetadata:new FV([new tO(G),new Od(R),new xN(y/1E3),new Ly(Z)]),xH:r(V),adLayoutLoggingData:G.adLayoutLoggingData}}); w=hys(O,J,C.slotId,l,u,w,I);return w instanceof h?w:[C].concat(g.X(w))}}; urA=function(O,R,J,l,u,F,G){G=G===void 0?!1:G;var y=[];try{var w=[];if(J.renderer.linearAdSequenceRenderer)var I=function(m){m=Ohh(m.slotId,J,R,u(m),l,F,G);w=m.hjJ;return m.PF}; else if(J.renderer.instreamVideoAdRenderer)I=function(m){var E=m.slotId;m=u(m);var a=G,v=J.config.adPlacementConfig,b=RmA(v),W=b.zq,B=b.Tq;b=J.renderer.instreamVideoAdRenderer;var z;if(b==null?0:(z=b.playerOverlay)==null?0:z.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var Y=JM(b,a);z=Math.min(W+Y.videoLengthSeconds*1E3,B);a=new $$(0,[Y.videoLengthSeconds]);B=Y.videoLengthSeconds;var gh=Y.playerVars,l2=Y.instreamAdPlayerOverlayRenderer,O_=Y.playerOverlayLayoutRenderer, Kx=Y.adVideoId,n=Jks(J),mH=Y.n1;Y=Y.p_;var Xp=b==null?void 0:b.adLayoutLoggingData;b=b==null?void 0:b.sodarExtensionData;E=c6(R.S.get(),"LAYOUT_TYPE_MEDIA",E);var xW={layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA",kS:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA",n1:mH,layoutExitNormalTriggers:[new eR(R.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"core",clientMetadata:new FV([new uC(l),new Xm(B),new Tt(gh),new qk(W),new kN(z),l2&&new Fm(l2), O_&&new Gt(O_),new Od(v),new lC(Kx),new Rk(a),new eB(n),b&&new Mk(b),new Ed({current:null}),new bC({}),new hO(Y)].filter(ggf)),xH:m(xW),adLayoutLoggingData:Xp}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var C=ihs(O,l,J.adSlotLoggingData,I);y.push(C);for(var r=g.N(w),t=r.next();!t.done;t=r.next()){var Z=t.value,V=Z(O,u);if(V instanceof h)return V;y.push.apply(y,g.X(V))}}catch(m){return new h(m,{errorMessage:m.message,AdPlacementRenderer:J,numberOfSurveyRenderers:lLp(J)})}return y}; lLp=function(O){O=(O.renderer.linearAdSequenceRenderer||{}).linearAds;return O!=null&&O.length?O.filter(function(R){var J,l;return((J=g.x(R,Zt))==null?void 0:(l=J.playerOverlay)==null?void 0:l.instreamSurveyAdRenderer)!=null}).length:0}; Ohh=function(O,R,J,l,u,F,G){var y=R.config.adPlacementConfig,w=RmA(y),I=w.zq,C=w.Tq;w=(R.renderer.linearAdSequenceRenderer||{}).linearAds;if(w==null||!w.length)throw new TypeError("Expected linear ads");var r=[],t={Q9:I,cI:0,uGd:r};w=w.map(function(V){return FYs(O,V,t,J,l,y,u,C,G)}).map(function(V,m){m=new $$(m,r); return V(m)}); var Z=w.map(function(V){return V.cF}); return{PF:Glx(J,O,I,Z,y,Jks(R),l,C,F),hjJ:w.map(function(V){return V.iWX})}}; FYs=function(O,R,J,l,u,F,G,y,w){var I=JM(g.x(R,Zt),w),C=J.Q9,r=J.cI,t=Math.min(C+I.videoLengthSeconds*1E3,y);J.Q9=t;J.cI++;J.uGd.push(I.videoLengthSeconds);var Z,V,m=(Z=g.x(R,Zt))==null?void 0:(V=Z.playerOverlay)==null?void 0:V.instreamSurveyAdRenderer;if(I.adVideoId==="nPpU29QrbiU"&&m==null)throw new TypeError("Survey slate media has no survey overlay");return function(E){dO(I.playerVars,E);var a,v,b=I.videoLengthSeconds,W=I.playerVars,B=I.n1,z=I.p_,Y=I.instreamAdPlayerOverlayRenderer,gh=I.playerOverlayLayoutRenderer, l2=I.adVideoId,O_=(a=g.x(R,Zt))==null?void 0:a.adLayoutLoggingData;a=(v=g.x(R,Zt))==null?void 0:v.sodarExtensionData;v=c6(l.S.get(),"LAYOUT_TYPE_MEDIA",O);var Kx={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",kS:"adapter"};E={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",n1:B,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"adapter",clientMetadata:new FV([new uC(G),new Xm(b),new Tt(W),new qk(C),new kN(t),new sd(r),new Ed({current:null}), Y&&new Fm(Y),gh&&new Gt(gh),new Od(F),new lC(l2),new Rk(E),a&&new Mk(a),m&&new ds(m),new bC({}),new hO(z)].filter(ggf)),xH:u(Kx),adLayoutLoggingData:O_};b=cq2(g.x(R,Zt),F,G,E.layoutId,l);return{cF:E,iWX:b}}}; JM=function(O,R){if(!O)throw new TypeError("Expected instream video ad renderer");if(!O.playerVars)throw new TypeError("Expected player vars in url encoded string");var J=JF(O.playerVars),l=Number(J.length_seconds);if(isNaN(l))throw new TypeError("Expected valid length seconds in player vars");var u=Number(O.trimmedMaxNonSkippableAdDurationMs);l=isNaN(u)?l:Math.min(l,u/1E3);u=O.playerOverlay||{};u=u.instreamAdPlayerOverlayRenderer===void 0?null:u.instreamAdPlayerOverlayRenderer;var F=O.playerOverlay|| {};F=F.playerOverlayLayoutRenderer===void 0?null:F.playerOverlayLayoutRenderer;var G=J.video_id;G||(G=(G=O.externalVideoId)?G:void 0);if(!G)throw new TypeError("Expected valid video id in IVAR");if(R&&l===0){var y;R=(y=KY2[G])!=null?y:l}else R=l;return{playerVars:J,videoLengthSeconds:R,instreamAdPlayerOverlayRenderer:u,playerOverlayLayoutRenderer:F,adVideoId:G,n1:O.pings?Th(O.pings):new Map,p_:XB(O.pings)}}; Jks=function(O){O=Number(O.driftRecoveryMs);return isNaN(O)||O<=0?null:O}; RmA=function(O){var R=O.adTimeOffset||{};O=R.offsetEndMilliseconds;R=Number(R.offsetStartMilliseconds);if(isNaN(R))throw new TypeError("Expected valid start offset");O=Number(O);if(isNaN(O))throw new TypeError("Expected valid end offset");return{zq:R,Tq:O}}; ykh=function(O){var R,J=(R=Gg(O.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:R.current;if(!J)return null;R=Gg(O.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var l=O.layoutId,u=Gg(O.clientMetadata,"metadata_type_content_cpn"),F=Gg(O.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),G=Gg(O.clientMetadata,"metadata_type_player_underlay_renderer"),y=Gg(O.clientMetadata,"metadata_type_ad_placement_config"),w=Gg(O.clientMetadata,"metadata_type_video_length_seconds"); var I=gU(O.clientMetadata,"metadata_type_layout_enter_ms")&&gU(O.clientMetadata,"metadata_type_layout_exit_ms")?(Gg(O.clientMetadata,"metadata_type_layout_exit_ms")-Gg(O.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{BA:l,contentCpn:u,He:J,gp:R,instreamAdPlayerOverlayRenderer:F,instreamAdPlayerUnderlayRenderer:G,adPlacementConfig:y,videoLengthSeconds:w,Ba:I,inPlayerLayoutId:Gg(O.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Gg(O.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; CxL=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z,V){l=Vv(l,"SLOT_TYPE_PLAYER_BYTES");O=wkx(u,O,G,J,l,w,I);if(O instanceof h)return O;var m;I=(m=Gg(O.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:m.layoutId;if(!I)return new h("Invalid adNotify layout");R=IL0(I,u,F,J,y,R,w,C,r,t,Z,V,G);return R instanceof h?R:[O].concat(g.X(R))}; IL0=function(O,R,J,l,u,F,G,y,w,I,C,r,t){J=rkA(R,J,l,F,G,y,w,I,C,r,t);if(J instanceof h)return J;O=tZL(R,O,G,u,J);return O instanceof h?O:[].concat(g.X(O.Ye),[O.Q3])}; Zhx=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z){R=rkA(O,R,J,u,F,y,w,I,C,r,t,Z);if(R instanceof h)return R;O=ogW(O,J,F,G,l,y.vy,R);return O instanceof h?O:O.Ye.concat(O.Q3)}; rkA=function(O,R,J,l,u,F,G,y,w,I,C,r){var t=gM(l,J,I);return t instanceof uO?new h(t):I.X.T().experiments.Vh("html5_refactor_in_player_slot_generation")?function(Z){var V=new $$(0,[t.lH]);Z=VZs(R,t.layoutId,t.D7,J,iw(t.playerVars,t.RE,F,w,V),t.lH,u,V,G(Z),y.get(t.D7.externalVideoId),r);V=[];if(t.D7.playerOverlay.instreamAdPlayerOverlayRenderer){var m=ykh(Z);if(!m)return rK("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,Z),{layout:Z,Ye:[]}; V=[fLL(O,m.contentCpn,m.BA,function(a){return lw(R,a.slotId,"core",m,rU(C,a))},m.inPlayerSlotId)].concat(g.X(V)); if(m.instreamAdPlayerUnderlayRenderer&&uw(I)){var E=m.instreamAdPlayerUnderlayRenderer;V=[SsB(O,m.contentCpn,m.BA,function(a){return Nqs(R,a.slotId,E,m.adPlacementConfig,m.BA,rU(C,a))})].concat(g.X(V))}}return{layout:Z, Ye:V}}:function(Z){var V=new $$(0,[t.lH]); return{layout:VZs(R,t.layoutId,t.D7,J,iw(t.playerVars,t.RE,F,w,V),t.lH,u,V,G(Z),y.get(t.D7.externalVideoId),r),Ye:[]}}}; gM=function(O,R,J){if(!O.playerVars)return new uO("No playerVars available in InstreamVideoAdRenderer.");var l,u;if(O.elementId==null||O.playerVars==null||O.playerOverlay==null||((l=O.playerOverlay)==null?void 0:l.instreamAdPlayerOverlayRenderer)==null&&((u=O.playerOverlay)==null?void 0:u.playerOverlayLayoutRenderer)==null||O.pings==null||O.externalVideoId==null)return new uO("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:O});l=JF(O.playerVars);u=Number(l.length_seconds); isNaN(u)&&(u=0,rK("Expected valid length seconds in player vars but got NaN"));if(J.Fw(R.kind==="AD_PLACEMENT_KIND_START")){if(O.layoutId===void 0)return new uO("Expected server generated layout ID in instreamVideoAdRenderer");R=O.layoutId}else R=O.elementId;return{layoutId:R,D7:O,playerVars:l,RE:O.playerVars,lH:u}}; iw=function(O,R,J,l,u){O.iv_load_policy=l;R=JF(R);if(R.cta_conversion_urls)try{O.cta_conversion_urls=JSON.parse(R.cta_conversion_urls)}catch(F){rK(F)}J.FH&&(O.ctrl=J.FH);J.lV&&(O.ytr=J.lV);J.Ip&&(O.ytrcc=J.Ip);J.isMdxPlayback&&(O.mdx="1");O.vvt&&(O.vss_credentials_token=O.vvt,J.SU&&(O.vss_credentials_token_type=J.SU),J.mdxEnvironment&&(O.mdx_environment=J.mdxEnvironment));dO(O,u);return O}; meT=function(O){var R=new Map;O=g.N(O);for(var J=O.next();!J.done;J=O.next())(J=J.value.renderer.remoteSlotsRenderer)&&J.hostElementId&&R.set(J.hostElementId,J);return R}; FP=function(O){return O.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; Egz=function(O){return O!=null}; MZf=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z){for(var V=[],m=g.N(O),E=m.next();!E.done;E=m.next())if(E=E.value,!rqB(E)&&!fb_(E)){var a=FP(E)&&!!E.slotEntryTrigger.beforeContentVideoIdStartedTrigger,v=w.Fw(a),b=Dez(E,I,l,J.KD,v);if(b instanceof h)return b;var W=void 0,B={slotId:E.adSlotMetadata.slotId,slotType:E.adSlotMetadata.slotType,slotPhysicalPosition:(W=E.adSlotMetadata.slotPhysicalPosition)!=null?W:1,kS:"core",slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers, slotExpirationTriggers:b.slotExpirationTriggers},z=g.x(E.fulfillmentContent.fulfilledLayout,$r);if(z){if(!TC(z))return new h("Invalid PlayerBytesAdLayoutRenderer");W=r&&!(FP(E)&&E.slotEntryTrigger.beforeContentVideoIdStartedTrigger);b=b.slotFulfillmentTriggers.some(function(Y){return Y instanceof Pz}); v=W?aLH(B,E.adSlotMetadata.triggerEvent,z,J,l,F,I,O,v,t,b,Z):vg_(B,E.adSlotMetadata.triggerEvent,z,R,J,l,u,F,G,y,w,I,O,C,v,E.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof h)return v;b=[];FP(E)&&b.push(new Rq({hZ:FP(E)&&!!E.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));W&&b.push(new bC({}));J.vy&&b.push(new YN({}));b.push(new c_(a));E=Object.assign({},B,{clientMetadata:new FV(b),fulfilledLayout:v.layout,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData});V.push.apply(V,g.X(v.Ye)); V.push(E)}else if(a=g.x(E.fulfillmentContent.fulfilledLayout,bJ)){if(!CHp(a))return new h("Invalid PlayerUnderlayAdLayoutRenderer");a=Xkz(a,l,J.KD,F,B,E.adSlotMetadata.triggerEvent,E.adSlotMetadata.triggeringSourceLayoutId);if(a instanceof h)return a;E=Object.assign({},B,{clientMetadata:new FV([]),fulfilledLayout:a,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData});V.push(E)}else if(a=g.x(E.fulfillmentContent.fulfilledLayout,ouW)){if(!lbH(a))return new h("Invalid AboveFeedAdLayoutRenderer");a= TqB(a,l,J.KD,F,B,E.adSlotMetadata.triggerEvent,E.adSlotMetadata.triggeringSourceLayoutId);if(a instanceof h)return a;E=Object.assign({},B,{clientMetadata:new FV([]),fulfilledLayout:a,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData});V.push(E)}else if(a=g.x(E.fulfillmentContent.fulfilledLayout,Zkz)){if(!lJ(a.adLayoutMetadata)||!g.x(a.renderingContent,uJ))return new h("Invalid BelowPlayerAdLayoutRenderer");a=TqB(a,l,J.KD,F,B,E.adSlotMetadata.triggerEvent,E.adSlotMetadata.triggeringSourceLayoutId); if(a instanceof h)return a;E=Object.assign({},B,{clientMetadata:new FV([]),fulfilledLayout:a,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData});V.push(E)}else if(a=g.x(E.fulfillmentContent.fulfilledLayout,WO)){if(!qY(a))return new h("Invalid PlayerBytesSequenceItemAdLayoutRenderer");a=$eT(a,l,J.KD,F,B,E.adSlotMetadata.triggerEvent);if(a instanceof h)return a;E=Object.assign({},B,{clientMetadata:new FV([]),fulfilledLayout:a,adSlotLoggingData:E.adSlotMetadata.adSlotLoggingData});V.push(E)}else return new h("Unable to retrieve a client slot ["+ B.slotType+"] from a given AdSlotRenderer")}return V}; $eT=function(O,R,J,l,u,F){var G={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,kS:"core"};R=G8(O,R,J);return R instanceof h?R:(J=g.x(O.renderingContent,MY))&&J.pings?Object.assign({},G,{renderingContent:O.renderingContent,n1:Th(J.pings)},R,{xH:rU(l,u)(G),clientMetadata:new FV([new Od(K4(F))]),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData}):new h("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; TqB=function(O,R,J,l,u,F,G){var y={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,kS:"core"};R=G8(O,R,J);if(R instanceof h)return R;J=[];J.push(new Od(K4(F)));F==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&G!==void 0&&J.push(new Vu(G));return Object.assign({},y,{renderingContent:O.renderingContent,n1:new Map([["impression",qsT(O)]])},R,{xH:rU(l,u)(y),clientMetadata:new FV(J),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData})}; Xkz=function(O,R,J,l,u,F,G){if(O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(G=g.x(O.renderingContent,kr))if(G=g.x(G.sidePanel,wgL)){var y={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,kS:"core"};R=G8(O,R,J);O=R instanceof h?R:Object.assign({},y,{renderingContent:O.renderingContent,n1:new Map([["impression",G.impressionPings||[]],["resume",G.resumePings||[]]])},R,{xH:rU(l,u)(y),clientMetadata:new FV([new Od(K4(F))]),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData})}else O= new h("DismissablePanelTextPortraitImageRenderer is missing");else O=new h("SqueezebackPlayerSidePanelRenderer is missing");else O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.x(O.renderingContent,GS_)?(G={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,kS:"core"},R=G8(O,R,J),O=R instanceof h?R:Object.assign({},G,{renderingContent:O.renderingContent,n1:new Map},R,{xH:rU(l,u)(G),clientMetadata:new FV([new Od(K4(F))]),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData})): O=new h("CounterfactualRenderer is missing"):O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?O=new h("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?O=new h("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.x(O.renderingContent,sM)?(F={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType, kS:"core"},R=G8(O,R,J),O=R instanceof h?R:G?Object.assign({},F,{renderingContent:O.renderingContent,n1:new Map},R,{xH:rU(l,u)(F),clientMetadata:new FV([new Vu(G)]),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData}):new h("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):O=new h("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):O.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.x(O.renderingContent,KfL)? (F={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,kS:"core"},R=G8(O,R,J),O=R instanceof h?R:Object.assign({},F,{renderingContent:O.renderingContent,n1:new Map([])},R,{xH:rU(l,u)(F),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new FV([])})):O=new h("AdsEngagementPanelSectionListViewModel is missing"):O=new h("LayoutType ["+O.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return O}; aLH=function(O,R,J,l,u,F,G,y,w,I,C,r){if((r==null?void 0:r.GN)===void 0||(r==null?void 0:r.E6)===void 0)return new h("Cached ad break range from cue point is missing");var t=G8(J,u,l.KD);if(t instanceof h)return t;t={layoutExitMuteTriggers:[],layoutExitNormalTriggers:t.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Dv:[],layoutExitUserInputSubmittedTriggers:[]};if(g.x(J.renderingContent,Zt))return O=klz(O,R,J,t,u,F,y,w,l.KD,G,r.GN,r.E6),O instanceof h?O:O.Zh===void 0?new h("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:O.layout,Ye:[O.Zh]};var Z=g.x(J.renderingContent,tG);if(Z){if(!lJ(J.adLayoutMetadata))return new h("Invalid ad layout metadata");if(!o7(Z))return new h("Invalid sequential layout");Z=Z.sequentialLayouts.map(function(V){return V.playerBytesAdLayoutRenderer}); O=sus(O,R,J,t,Z,u,l,F,G,w,y,I,r.GN,r.E6,C);return O instanceof h?O:{layout:O.T6,Ye:O.Ye}}return new h("Not able to convert a sequential layout")}; sus=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z,V){var m=bhf(u,t,Z);if(m instanceof h)return m;var E=[],a=[];m=g.N(m);for(var v=m.next();!v.done;v=m.next()){var b=v.value;v=O;var W=u[b.cI],B=b,z=R;b=F;var Y=G,gh=y,l2=w,O_=I,Kx=C,n=yI(W);if(n instanceof h)v=n;else{var mH={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,kS:"adapter"};B=WYp(z,W,B,b);B instanceof h?v=B:(v=Object.assign({},mH,wM,{n1:n,renderingContent:W.renderingContent,clientMetadata:new FV(B),xH:rU(gh,v)(mH),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData}), v=(W=IG(Kx,v,b,Y.KD,gh,l2,O_,void 0,!0))?W instanceof h?W:{layout:v,Zh:W}:new h("Expecting associatedInPlayerSlot"))}if(v instanceof h)return v;E.push(v.layout);a.push(v.Zh)}u={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,kS:"core"};R=[new eB(Number(J.driftRecoveryMs)),new qk(t),new kN(Z),new Od(K4(R)),new ny(r),new bC({})];V&&R.push(new JB({}));return{T6:Object.assign({},u,l,{WI:E,n1:new Map,clientMetadata:new FV(R),xH:rU(y,O)(u)}),Ye:a}}; klz=function(O,R,J,l,u,F,G,y,w,I,C,r){if(!TC(J))return new h("Invalid PlayerBytesAdLayoutRenderer");var t=yI(J);if(t instanceof h)return t;var Z={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,kS:"core"},V=g.x(J.renderingContent,Zt);if(!V)return new h("Invalid rendering content for DAI media layout");V=JM(V,!1);C={BK:V,cI:0,Q9:C,pC:Math.min(C+V.videoLengthSeconds*1E3,r),zm:new $$(0,[V.videoLengthSeconds])};var m;r=(m=Number(J.driftRecoveryMs))!=null?m:void 0;R=WYp(R, J,C,u,r);if(R instanceof h)return R;O=Object.assign({},Z,l,{n1:t,renderingContent:J.renderingContent,clientMetadata:new FV(R),xH:rU(F,O)(Z),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData});return(u=IG(G,O,u,w,F,I,y,void 0,!0))?u instanceof h?u:{layout:O,Zh:u}:new h("Expecting associatedInPlayerSlot")}; vg_=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z,V,m){var E=G8(J,F,u.KD);if(E instanceof h)return E;if(g.x(J.renderingContent,Zt)){w=AkL([J],u,w);if(w instanceof h)return w;if(w.length!==1)return new h("Only expected one media layout.");O=emH(O,R,J,E,w[0],void 0,"core",l,F,G,y,I,t,Z,V,u.KD,r,void 0,m);return O instanceof h?O:{layout:O.layout,Ye:O.Zh?[O.Zh]:[]}}var a=g.x(J.renderingContent,tG);if(a){if(!lJ(J.adLayoutMetadata))return new h("Invalid ad layout metadata");if(!o7(a))return new h("Invalid sequential layout"); a=a.sequentialLayouts.map(function(v){return v.playerBytesAdLayoutRenderer}); O=PxH(O,R,J.adLayoutMetadata,E,a,l,F,u,w,G,y,I,C,r,V,t,Z,m);return O instanceof h?O:{layout:O.T6,Ye:O.Ye}}return new h("Not able to convert a sequential layout")}; PxH=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z,V,m,E,a){var v=new iC({current:null}),b=AkL(u,y,w);if(b instanceof h)return b;w=[];for(var W=[],B=void 0,z=0;z0&&(z.push(a),z.push(new gs(B.adPodSkipTarget)));(F=I.get(B.externalVideoId))&&z.push(new H_(F));F=z}else F=new h("Invalid vod media renderer")}if(F instanceof h)return F;O=Object.assign({},G,l,{n1:b,renderingContent:J.renderingContent,clientMetadata:new FV(F),xH:rU(C,O)(G),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData});J=g.x(J.renderingContent,Zt);if(!J||!rO(J))return new h("Invalid meida renderer");r=zC(r,J.externalVideoId);r.instreamVideoAdRenderer=J;r.Cr="AD_PLACEMENT_KIND_START";return Z?(w=IG(t,O,w,m,C,E,V,a,!1),w instanceof h?w:Hh_(O.layoutId,t)&&w?{layout:Object.assign({},O,{clientMetadata:new FV(F.concat(new ws(w)))})}:{layout:O,Zh:w}): {layout:O}}; pkp=function(O,R,J,l,u){if(!TC(R))return new h("Invalid PlayerBytesAdLayoutRenderer");var F=g.x(R.renderingContent,wz);if(!F||F.durationMilliseconds===void 0)return new h("Invalid endcap renderer");var G={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,kS:"adapter"};l=[new Ud(F.durationMilliseconds),new Ly({impressionCommands:void 0,abandonCommands:F.abandonCommands?[{commandExecutorCommand:F.abandonCommands}]:void 0,completeCommands:F.completionCommands}),new Od(l), new SB("LAYOUT_TYPE_ENDCAP")];if(u){l.push(new JO(u.zm.adPodIndex-1));l.push(new sd(u.zm.adPodIndex));var y;l.push(new gs((y=u.adPodSkipTarget)!=null?y:-1))}return Object.assign({},G,wM,{renderingContent:R.renderingContent,clientMetadata:new FV(l),n1:F.skipPings?new Map([["skip",F.skipPings]]):new Map,xH:rU(J,O)(G),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}; IG=function(O,R,J,l,u,F,G,y,w){O=O.filter(function(C){return C.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&C.adSlotMetadata.triggeringSourceLayoutId===R.layoutId}); if(O.length!==0){if(O.length!==1)return new h("Invalid InPlayer slot association for the given PlayerBytes layout");O=O[0];G=Dez(O,F,J,l,G);if(G instanceof h)return G;var I;F={slotId:O.adSlotMetadata.slotId,slotType:O.adSlotMetadata.slotType,slotPhysicalPosition:(I=O.adSlotMetadata.slotPhysicalPosition)!=null?I:1,kS:"core",slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:G.slotExpirationTriggers};I=g.x(O.fulfillmentContent.fulfilledLayout, tXT);if(!I||!Ffs(I))return new h("Invalid InPlayerAdLayoutRenderer");G={layoutId:I.adLayoutMetadata.layoutId,layoutType:I.adLayoutMetadata.layoutType,kS:"core"};J=G8(I,J,l);if(J instanceof h)return J;l=[];w&&l.push(new bC({}));if(I.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")l.push.apply(l,g.X(xeh(O.adSlotMetadata.triggerEvent,R)));else if(I.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")l.push(new Od(K4(O.adSlotMetadata.triggerEvent))),y&&l.push(y);else return new h("Not able to parse an SDF InPlayer layout"); u=Object.assign({},G,J,{renderingContent:I.renderingContent,n1:new Map,xH:rU(u,F)(G),clientMetadata:new FV(l),adLayoutLoggingData:I.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},F,{fulfilledLayout:u,clientMetadata:new FV([])})}}; xeh=function(O,R){var J=[];J.push(new Od(K4(O)));J.push(new Vu(R.layoutId));(O=Gg(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&J.push(new Ed(O));(O=Gg(R.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&J.push(new iC(O));(O=Gg(R.clientMetadata,"metadata_type_remote_slots_data"))&&J.push(new H_(O));(O=Gg(R.clientMetadata,"metadata_type_ad_next_params"))&&J.push(new QD(O));(O=Gg(R.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&J.push(new Lh(O));(O= Gg(R.clientMetadata,"metadata_type_ad_pod_info"))&&J.push(new Rk(O));(R=Gg(R.clientMetadata,"metadata_type_ad_video_id"))&&J.push(new lC(R));return J}; Bqh=function(O,R,J,l,u,F){function G(I){return C4(R,I)} var y=l.yv.inPlayerSlotId,w={layoutId:l.yv.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",kS:"core"};J={slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:new bZ(G,O),slotFulfillmentTriggers:[new hv(G,y)],slotExpirationTriggers:[new zJ(G,y),new Lq(G,J)]};O=Object.assign({},w,{layoutExitNormalTriggers:[new Av(G,O)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],n1:new Map,clientMetadata:new FV([new Cy(l.yv), new Od(l.adPlacementConfig),u]),xH:rU(F,J)(w),adLayoutLoggingData:l.yv.adLayoutLoggingData});return Object.assign({},J,{clientMetadata:new FV([new P_(O)])})}; Hh_=function(O,R){R=g.N(R);for(var J=R.next();!J.done;J=R.next())if(J=J.value,J.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var l=g.x(J.fulfillmentContent.fulfilledLayout,bJ);if(l&&(l=g.x(l.renderingContent,kr))&&l.associatedPlayerBytesLayoutId===O)return J}}; Dez=function(O,R,J,l,u){var F=UeA(Yr(O.slotEntryTrigger,J,l),u,O,R);if(F instanceof h)return F;for(var G=[],y=g.N(O.slotFulfillmentTriggers),w=y.next();!w.done;w=y.next()){w=Yr(w.value,J,l);if(w instanceof h)return w;G.push(w)}G=juH(G,u,O,R);R=[];O=g.N(O.slotExpirationTriggers);for(u=O.next();!u.done;u=O.next()){u=Yr(u.value,J,l);if(u instanceof h)return u;R.push(u)}return{slotEntryTrigger:F,slotFulfillmentTriggers:G,slotExpirationTriggers:R}}; UeA=function(O,R,J,l){return R&&J.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&O instanceof Mr?new TJ(function(u){return C4(l,u)},J.adSlotMetadata.slotId):O}; juH=function(O,R,J,l){return R&&J.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?O.map(function(u){return u instanceof hv?new OM(function(F){return C4(l,F)},J.adSlotMetadata.slotId):u}):O}; G8=function(O,R,J){for(var l=[],u=g.N(O.layoutExitNormalTriggers||[]),F=u.next();!F.done;F=u.next()){F=Yr(F.value,R,J);if(F instanceof h)return F;l.push(F)}u=[];F=g.N(O.layoutExitSkipTriggers||[]);for(var G=F.next();!G.done;G=F.next()){G=Yr(G.value,R,J);if(G instanceof h)return G;u.push(G)}F=[];G=g.N(O.layoutExitMuteTriggers||[]);for(var y=G.next();!y.done;y=G.next()){y=Yr(y.value,R,J);if(y instanceof h)return y;F.push(y)}G=[];O=g.N(O.layoutExitUserInputSubmittedTriggers||[]);for(y=O.next();!y.done;y= O.next()){y=Yr(y.value,R,J);if(y instanceof h)return y;G.push(y)}return{layoutExitNormalTriggers:l,layoutExitSkipTriggers:u,layoutExitMuteTriggers:F,layoutExitUserInputSubmittedTriggers:G,Dv:[]}}; yI=function(O){var R=g.x(O.renderingContent,Zt);if(R==null?0:R.pings)return Th(R.pings);O=g.x(O.renderingContent,wz);return(O==null?0:O.skipPings)?new Map([["skip",O.skipPings]]):new Map}; WYp=function(O,R,J,l,u){R=g.x(R.renderingContent,Zt);if(!R)return new h("Invalid rendering content for DAI media layout");O=[new uC(l),new Xm(J.BK.videoLengthSeconds),new Tt(J.BK.playerVars),new qk(J.Q9),new kN(J.pC),new sd(J.cI),new Od(K4(O)),new lC(J.BK.adVideoId),new Rk(J.zm),R.sodarExtensionData&&new Mk(R.sodarExtensionData),new Ed({current:null}),new bC({}),new hO(XB(R.pings))].filter(Egz);u!==void 0&&O.push(new eB(u));return O}; bhf=function(O,R,J){O=O.map(function(w){return JM(g.x(w.renderingContent,Zt),!1)}); var l=O.map(function(w){return w.videoLengthSeconds}),u=l.map(function(w,I){return new $$(I,l)}),F=R,G=J,y=[]; O.forEach(function(w,I){G=Math.min(F+w.videoLengthSeconds*1E3,J);dO(w.playerVars,u[I]);y.push({BK:w,Q9:F,pC:G,cI:I,zm:u[I]});F=G}); return y}; AkL=function(O,R,J){for(var l=[],u=g.N(O),F=u.next();!F.done;F=u.next())if(F=g.x(F.value.renderingContent,Zt)){if(!rO(F))return new h("Invalid vod media renderer");l.push(QuA(F))}u=l.map(function(r){return r.lH}); F=[];for(var G=0,y=0;y0?O_:-1;else if(mH=g.x(n,wz)){n=gNh(O,R,J, mH,F,m,y,Y,O_);if(n instanceof h){Z=n;break a}n=n(t);E.push(n.XU);a=[].concat(g.X(n.NP),g.X(a));v=[].concat(g.X(n.OO),g.X(v));n.Zh&&(l2=[n.Zh].concat(g.X(l2)))}else if(mH=g.x(n,fw)){if(Z===void 0){Z=new h("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:mH});break a}n=umx(O,R,J,F,mH,z,y,Z,m,n2(C,"supports_multi_step_on_desktop"));if(n instanceof h){Z=n;break a}n=n(t);E.push(n.XU);n.Zh&&l2.push(n.Zh);a=[].concat(g.X(n.NP),g.X(a));v=[].concat(g.X(n.OO), g.X(v));b=[].concat(g.X(n.t6),g.X(b));W=[].concat(g.X(n.Ky),g.X(W));B=[z].concat(g.X(B))}else if(n=g.x(n,XC)){n=F0L(O,R,J,F,n,z,y,m);if(n instanceof h){Z=n;break a}n=n(t);E.push(n.XU);n.Zh&&l2.push(n.Zh);v=[].concat(g.X(n.OO),g.X(v))}else{Z=new h("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}Z={WI:E,layoutExitSkipTriggers:a,layoutExitUserInputSubmittedTriggers:b,Dv:W,layoutExitMuteTriggers:v,A6:B,Ye:l2}}}else a:if(m=tBh(l,J,C),m instanceof h)Z=m;else{E=0;a=[];v=[];b=[];W=[];B= [];z=[];Y=new Dz({current:null});gh=new iC({current:null});l2=!1;Kx=[];O_=-1;V=g.N(l);for(n=V.next();!n.done;n=V.next())if(n=n.value,g.x(n,VE)){n=iy0(R,J,g.x(n,VE),y);if(n instanceof h){Z=n;break a}n=n(t);a.push(n.XU);v=[].concat(g.X(n.NP),g.X(v));b=[].concat(g.X(n.OO),g.X(b));n.Zh&&(Kx=[n.Zh].concat(g.X(Kx)))}else if(g.x(n,Zt)){O_=gM(g.x(n,Zt),J,C);if(O_ instanceof uO){Z=new h(O_);break a}n=new $$(E,m);n=oN0(R,O_.layoutId,O_.D7,J,iw(O_.playerVars,O_.RE,G,I,n),O_.lH,F,n,y(t),gh,w.get(O_.D7.externalVideoId), void 0,r);E++;a.push(n.XU);v=[].concat(g.X(n.NP),g.X(v));b=[].concat(g.X(n.OO),g.X(b));l2||(z.push(gh),l2=!0);O_=(O_=O_.D7.adPodSkipTarget)&&O_>0?O_:-1}else if(g.x(n,wz)){n=gNh(O,R,J,g.x(n,wz),F,E,y,gh,O_);if(n instanceof h){Z=n;break a}n=n(t);a.push(n.XU);v=[].concat(g.X(n.NP),g.X(v));b=[].concat(g.X(n.OO),g.X(b));n.Zh&&(Kx=[n.Zh].concat(g.X(Kx)))}else if(g.x(n,fw)){if(Z===void 0){Z=new h("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.x(n, fw)});break a}n=umx(O,R,J,F,g.x(n,fw),Y,y,Z,E,n2(C,"supports_multi_step_on_desktop"));if(n instanceof h){Z=n;break a}n=n(t);a.push(n.XU);n.Zh&&Kx.push(n.Zh);v=[].concat(g.X(n.NP),g.X(v));b=[].concat(g.X(n.OO),g.X(b));W=[].concat(g.X(n.t6),g.X(W));B=[].concat(g.X(n.Ky),g.X(B));z=[Y].concat(g.X(z))}else if(g.x(n,XC)){n=F0L(O,R,J,F,g.x(n,XC),Y,y,E);if(n instanceof h){Z=n;break a}n=n(t);a.push(n.XU);n.Zh&&Kx.push(n.Zh);b=[].concat(g.X(n.OO),g.X(b))}else{Z=new h("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}Z={WI:a,layoutExitSkipTriggers:v,layoutExitUserInputSubmittedTriggers:W,Dv:B,layoutExitMuteTriggers:b,A6:z,Ye:Kx}}Z instanceof h?t=Z:(B=t.slotId,m=Z.WI,E=Z.layoutExitSkipTriggers,a=Z.layoutExitMuteTriggers,v=Z.layoutExitUserInputSubmittedTriggers,b=Z.A6,t=y(t),W=u?u.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",B=u?u.layoutId:c6(R.S.get(),W,B),z={layoutId:B,layoutType:W,kS:"core"},t={layout:{layoutId:B,layoutType:W,n1:new Map,layoutExitNormalTriggers:[new Q1(R.L,B)],layoutExitSkipTriggers:E, layoutExitMuteTriggers:a,layoutExitUserInputSubmittedTriggers:v,Dv:[],kS:"core",clientMetadata:new FV([new ak(m)].concat(g.X(b))),xH:t(z)},Ye:Z.Ye});return t}}; tBh=function(O,R,J){var l=[];O=g.N(O);for(var u=O.next();!u.done;u=O.next())if(u=u.value,g.x(u,Zt)){u=gM(g.x(u,Zt),R,J);if(u instanceof uO)return new h(u);l.push(u.lH)}return l}; VBA=function(O,R,J,l,u,F,G,y){if(!NDH(J,y===void 0?!1:y))return new h("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:J});var w=cO(J);if(w<=0)return new h("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:J});var I=new Dz({current:null}),C=Lf2(O,R,J,I,l,F,G);return ZyH(O,l,F,w,u,function(r,t){var Z=r.slotId,V=OG(J);r=G(r);var m,E=(m=Zs(R,l,J.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?m: c6(R.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",Z);Z={layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",kS:"core"};m=C(E,t);var a=Gg(m.clientMetadata,"metadata_type_fulfilled_layout");a||rK("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");V=[new Od(l),new Ud(w),new Ly(V),I];a&&V.push(new SB(a.layoutType));return{LMQ:{layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",n1:new Map,layoutExitNormalTriggers:[new Q1(R.L,E)],layoutExitSkipTriggers:[new dB(R.L, t.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new JG(R.L,t.layoutId)],Dv:[],kS:"core",clientMetadata:new FV(V),xH:r(Z)},uQQ:m}})}; fzs=function(O){if(!DF2(O))return!1;var R=g.x(O.adVideoStart,m9);return R?g.x(O.linearAd,Zt)&&I7(R)?!0:(rK("Invalid Sandwich with notify"),!1):!1}; Sdh=function(O){if(O.linearAds==null)return!1;O=g.x(O.adStart,m9);return O?I7(O)?!0:(rK("Invalid LASR with notify"),!1):!1}; Nsz=function(O){if(!Eux(O))return!1;O=g.x(O.adStart,m9);return O?I7(O)?!0:(rK("Invalid LASR with notify"),!1):!1}; EG=function(O,R,J,l,u,F,G,y,w,I){this.N=O;this.S=R;this.L=J;this.wd=l;this.CZ=u;this.B=F;this.YS=G;this.uV=y;this.Vk=w;this.loadPolicy=I===void 0?1:I}; QE=function(O,R,J,l,u,F,G,y,w,I){var C=[];if(R.length===0&&l.length===0&&J.length===0)return C;R=R.filter(Cw);var r=J.filter(VXW),t=l.filter(Cw),Z=new Map,V=meT(R),m=J.some(function(Xp){var xW;return(Xp==null?void 0:(xW=Xp.adSlotMetadata)==null?void 0:xW.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),E=J.some(function(Xp){var xW; return(Xp==null?void 0:(xW=Xp.adSlotMetadata)==null?void 0:xW.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),a=J.some(function(Xp){var xW; return(Xp==null?void 0:(xW=Xp.adSlotMetadata)==null?void 0:xW.slotType)==="SLOT_TYPE_IN_PLAYER"}),v=J.some(function(Xp){var xW,ab; return(Xp==null?void 0:(xW=Xp.adSlotMetadata)==null?void 0:xW.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(Xp==null?void 0:(ab=Xp.adSlotMetadata)==null?void 0:ab.slotType)==="SLOT_TYPE_ABOVE_FEED"}); J=J.some(function(Xp){var xW;return(Xp==null?void 0:(xW=Xp.adSlotMetadata)==null?void 0:xW.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(m||E||a||v||J)I=MZf(r,R,y,u,V,O.CZ.get(),O.loadPolicy,Z,O.wd.get(),O.N.get(),a,G,w,I),I instanceof h?rK(I,void 0,void 0,{contentCpn:u}):C.push.apply(C,g.X(I));I=g.N(R);for(J=I.next();!J.done;J=I.next())J=J.value,E=mkp(O,Z,J,u,F,G,m,y,V,w,r),E instanceof h?rK(E,void 0,void 0,{renderer:J.renderer,config:J.config.adPlacementConfig,kind:J.config.adPlacementConfig.kind,contentCpn:u,daiEnabled:G}):C.push.apply(C,g.X(E));EN2(O.wd.get())||(F=DkB(O,t,u,y,V,Z),C.push.apply(C,g.X(F)));if(O.B===null||G&&!y.Dr){var b, W,B;O=y.vy&&R.length===1&&((b=R[0].config)==null?void 0:(W=b.adPlacementConfig)==null?void 0:W.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((B=R[0].renderer)==null?void 0:B.adBreakServiceRenderer);if(!C.length&&!O){var z,Y,gh,l2;rK("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":R.length,contentCpn:u,"first APR kind":(z=R[0])==null?void 0:(Y=z.config)==null?void 0:(gh=Y.adPlacementConfig)==null?void 0:gh.kind,renderer:(l2=R[0])==null?void 0: l2.renderer})}return C}b=l.filter(Cw);C.push.apply(C,g.X(UFp(Z,b,O.S.get(),O.B,u,m)));if(!C.length){var O_,Kx,n,mH;rK("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":R.length,contentCpn:u,daiEnabled:G.toString(),"first APR kind":(O_=R[0])==null?void 0:(Kx=O_.config)==null?void 0:(n=Kx.adPlacementConfig)==null?void 0:n.kind,renderer:(mH=R[0])==null?void 0:mH.renderer})}return C}; DkB=function(O,R,J,l,u,F){function G(t){return rU(O.CZ.get(),t)} var y=[];R=g.N(R);for(var w=R.next();!w.done;w=R.next()){w=w.value;var I=w.renderer,C=I.sandwichedLinearAdRenderer,r=I.linearAdSequenceRenderer;C&&fzs(C)?(rK("Found AdNotify with SandwichedLinearAdRenderer"),r=g.x(C.adVideoStart,m9),C=g.x(C.linearAd,Zt),hG(F,I,w.config.adPlacementConfig.kind),I=void 0,r=IL0((I=r)==null?void 0:I.layout.layoutId,O.S.get(),O.L.get(),w.config.adPlacementConfig,w.adSlotLoggingData,C,J,l,G,u,O.loadPolicy,O.wd.get(),O.CZ.get()),r instanceof h?rK(r):y.push.apply(y,g.X(r))): r&&(!r.adLayoutMetadata&&Sdh(r)||r.adLayoutMetadata&&Nsz(r))&&(rK("Found AdNotify with LinearAdSequenceRenderer"),hG(F,I,w.config.adPlacementConfig.kind),I=void 0,C=Gt0((I=g.x(r.adStart,m9))==null?void 0:I.layout.layoutId,O.S.get(),O.L.get(),w.config.adPlacementConfig,w.adSlotLoggingData,r.linearAds,lJ(r.adLayoutMetadata)?r.adLayoutMetadata:void 0,J,l,G,u,O.loadPolicy,O.wd.get()),C instanceof h?rK(C):y.push.apply(y,g.X(C)))}return y}; mkp=function(O,R,J,l,u,F,G,y,w,I,C){function r(a){return rU(O.CZ.get(),a)} var t=J.renderer,Z=J.config.adPlacementConfig,V=Z.kind,m=J.adSlotLoggingData,E=y.Dr&&V==="AD_PLACEMENT_KIND_START";E=F&&!E;if(t.adsEngagementPanelRenderer!=null)return nw(R,J.elementId,V,t.adsEngagementPanelRenderer.isContentVideoEngagementPanel,t.adsEngagementPanelRenderer.adVideoId,t.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,Z,m,function(a,v,b,W){var B=O.L.get(),z=a.slotId,Y=t.adsEngagementPanelRenderer;a=rU(O.CZ.get(),a);return Ds(B,z,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Us(Y),v,b,Y.impressionPings,a,t.adsEngagementPanelRenderer.adLayoutLoggingData,W)}),[]; if(t.adsEngagementPanelLayoutViewModel)return nw(R,J.elementId,V,t.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,t.adsEngagementPanelLayoutViewModel.adVideoId,t.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,Z,m,function(a,v,b,W){var B=O.L.get(),z=a.slotId,Y=t.adsEngagementPanelLayoutViewModel;a=rU(O.CZ.get(),a);return aG(B,z,"LAYOUT_TYPE_PANEL",new jZ(Y),v,b,a,t.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,W)}),[]; if(t.actionCompanionAdRenderer!=null){if(t.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return PHA(O.S.get(),O.B,O.L.get(),t.actionCompanionAdRenderer,Z,m,l,r);nw(R,J.elementId,V,t.actionCompanionAdRenderer.isContentVideoCompanion,t.actionCompanionAdRenderer.adVideoId,t.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,Z,m,function(a,v,b,W){var B=O.L.get(),z=a.slotId,Y=t.actionCompanionAdRenderer;a=rU(O.CZ.get(),a);return Ds(B,z,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Hk(Y),v,b,Y.impressionPings,a,t.actionCompanionAdRenderer.adLayoutLoggingData,W)})}else if(t.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(t.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return pgs(O.S.get(),O.B,O.L.get(),t.topBannerImageTextIconButtonedLayoutViewModel,Z,m,l,r); nw(R,J.elementId,V,t.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,t.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,t.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,Z,m,function(a,v,b,W){var B=O.L.get(),z=a.slotId,Y=t.topBannerImageTextIconButtonedLayoutViewModel;a=rU(O.CZ.get(),a);return aG(B,z,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new xg(Y),v,b,a,t.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,W)})}else if(t.imageCompanionAdRenderer)nw(R, J.elementId,V,t.imageCompanionAdRenderer.isContentVideoCompanion,t.imageCompanionAdRenderer.adVideoId,t.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,Z,m,function(a,v,b,W){var B=O.L.get(),z=a.slotId,Y=t.imageCompanionAdRenderer; a=rU(O.CZ.get(),a);return Ds(B,z,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new dq(Y),v,b,Y.impressionPings,a,t.imageCompanionAdRenderer.adLayoutLoggingData,W)}); else if(t.bannerImageLayoutViewModel)nw(R,J.elementId,V,t.bannerImageLayoutViewModel.isContentVideoCompanion,t.bannerImageLayoutViewModel.adVideoId,t.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,Z,m,function(a,v,b,W){var B=O.L.get(),z=a.slotId,Y=t.bannerImageLayoutViewModel;a=rU(O.CZ.get(),a);return aG(B,z,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new hk(Y),v,b,a,t.bannerImageLayoutViewModel.adLayoutLoggingData,W)}); else if(t.shoppingCompanionCarouselRenderer)nw(R,J.elementId,V,t.shoppingCompanionCarouselRenderer.isContentVideoCompanion,t.shoppingCompanionCarouselRenderer.adVideoId,t.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,Z,m,function(a,v,b,W){var B=O.L.get(),z=a.slotId,Y=t.shoppingCompanionCarouselRenderer;a=rU(O.CZ.get(),a);return Ds(B,z,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new zl(Y),v,b,Y.impressionPings,a,t.shoppingCompanionCarouselRenderer.adLayoutLoggingData,W)}); else if(t.adBreakServiceRenderer){if(!Aqf(J))return[];if(V==="AD_PLACEMENT_KIND_PAUSE")return WfH(O.S.get(),Z,m,J.renderer.adBreakServiceRenderer,l);if(V!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&V!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return bks(O.S.get(),Z,m,J.renderer.adBreakServiceRenderer,l,u,F);y.vy||rK("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:V,adPlacementConfig:Z,daiEnabledForContentVideo:String(F),isServedFromLiveInfra:String(y.vy),clientPlaybackNonce:y.clientPlaybackNonce}); if(V==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!O.YS)return new h("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!O.Vk)return new h("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");O.Vk.b3({adPlacementRenderer:J,contentCpn:l,KD:u});u=v7(O.YS.get());return azs(O.S.get(),J.renderer.adBreakServiceRenderer,Z,u,l,m,F)}if(!O.uV)return new h("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); O.uV.b3({adPlacementRenderer:J,contentCpn:l,KD:u})}else{if(t.clientForecastingAdRenderer)return hmH(O.S.get(),O.L.get(),Z,m,t.clientForecastingAdRenderer,l,u,r);if(t.invideoOverlayAdRenderer)return OyB(O.S.get(),O.L.get(),Z,m,t.invideoOverlayAdRenderer,l,u,r);if(t.instreamAdPlayerOverlayRenderer)return ngp(O.S.get(),O.L.get(),Z,m,t.instreamAdPlayerOverlayRenderer,l,r);if((t.linearAdSequenceRenderer||t.instreamVideoAdRenderer)&&E)return urA(O.S.get(),O.L.get(),J,l,r,I,vNx(O.wd.get()));if(t.linearAdSequenceRenderer&& !E){if(G)return[];hG(R,t,V);if(t.linearAdSequenceRenderer.adLayoutMetadata){if(!Eux(t.linearAdSequenceRenderer))return new h("Received invalid LinearAdSequenceRenderer.")}else if(t.linearAdSequenceRenderer.linearAds==null)return new h("Received invalid LinearAdSequenceRenderer.");if(g.x(t.linearAdSequenceRenderer.adStart,m9)){rK("Found AdNotify in LinearAdSequenceRenderer");J=g.x(t.linearAdSequenceRenderer.adStart,m9);if(!u9T(J))return new h("Invalid AdMessageRenderer.");F=t.linearAdSequenceRenderer.linearAds; return K0h(O.N.get(),O.S.get(),O.L.get(),O.CZ.get(),Z,m,J,lJ(t.linearAdSequenceRenderer.adLayoutMetadata)?t.linearAdSequenceRenderer.adLayoutMetadata:void 0,F,l,u,y,r,w,O.loadPolicy,O.wd.get())}return rOp(O.S.get(),O.L.get(),Z,m,t.linearAdSequenceRenderer.linearAds,lJ(t.linearAdSequenceRenderer.adLayoutMetadata)?t.linearAdSequenceRenderer.adLayoutMetadata:void 0,l,u,y,r,w,O.loadPolicy,O.wd.get(),C)}if(!t.remoteSlotsRenderer||F){if(t.instreamVideoAdRenderer&&!E){if(G)return[];hG(R,t,V);return Zhx(O.S.get(), O.L.get(),Z,m,t.instreamVideoAdRenderer,l,u,y,r,w,O.loadPolicy,O.wd.get(),O.CZ.get(),C)}if(t.instreamSurveyAdRenderer)return VBA(O.S.get(),O.L.get(),t.instreamSurveyAdRenderer,Z,m,l,r,n2(O.wd.get(),"supports_multi_step_on_desktop"));if(t.sandwichedLinearAdRenderer!=null)return DF2(t.sandwichedLinearAdRenderer)?g.x(t.sandwichedLinearAdRenderer.adVideoStart,m9)?(rK("Found AdNotify in SandwichedLinearAdRenderer"),J=g.x(t.sandwichedLinearAdRenderer.adVideoStart,m9),u9T(J)?(F=g.x(t.sandwichedLinearAdRenderer.linearAd, Zt))?CxL(J,F,Z,O.N.get(),O.S.get(),O.L.get(),O.CZ.get(),m,l,u,y,r,w,O.loadPolicy,O.wd.get()):new h("Missing IVAR from Sandwich"):new h("Invalid AdMessageRenderer.")):rOp(O.S.get(),O.L.get(),Z,m,[t.sandwichedLinearAdRenderer.adVideoStart,t.sandwichedLinearAdRenderer.linearAd],void 0,l,u,y,r,w,O.loadPolicy,O.wd.get()):new h("Received invalid SandwichedLinearAdRenderer.");if(t.videoAdTrackingRenderer!=null)return YsL(O.S.get(),O.L.get(),t.videoAdTrackingRenderer,Z,m,l,u,y.MU,r)}}return[]}; XP=function(O,R,J,l,u,F,G,y){g.p.call(this);var w=this;this.S=O;this.B=R;this.Gy=l;this.YS=u;this.wd=F;this.yh=G;this.Sr=y;this.L=null;J.get().addListener(this);this.addOnDisposeCallback(function(){J.jN()||J.get().removeListener(w)}); l.get().addListener(this);this.addOnDisposeCallback(function(){l.jN()||l.get().removeListener(w)})}; $kz=function(O,R,J){var l=v7(O.YS.get());X_H(O.wd.get())&&GJ(O.yh.get(),"sdai","onopp.1;evt."+J.event+";start."+J.startSecs.toFixed(3)+";d."+J.d2.toFixed(3));ZF(O.S.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var u=O.B.get(),F=R.adPlacementRenderer.renderer.adBreakServiceRenderer,G=R.contentCpn,y=R.adPlacementRenderer.adSlotLoggingData,w=T8(O.wd.get()),I=O.yh;if(u.wd.get().X.T().experiments.Vh("enable_smearing_expansion_dai")){var C=u.wd.get();C=g.tB(C.X.T().experiments,"max_prefetch_window_sec_for_livestream_optimization"); w=u.wd.get();var r=g.tB(w.X.T().experiments,"min_prefetch_offset_sec_for_livestream_optimization");w={A4:Tsx(J),fX:!1,cueProcessedMs:l*1E3};var t=J.startSecs+J.d2;if(l===0)w.Zu=new DH(0,t*1E3);else{r=J.startSecs-r;var Z=r-l;w.Zu=Z<=0?new DH(r*1E3,t*1E3):new DH(Math.floor(l+Math.random()*Math.min(Z,C))*1E3,t*1E3)}C=w}else C={A4:Tsx(J),fX:!1},t=J.startSecs+J.d2,J.startSecs<=l?w=new DH((J.startSecs-4)*1E3,t*1E3):(r=Math.max(0,J.startSecs-l-10),w=new DH(Math.floor(l+Math.random()*(w?l===0?0:Math.min(r, 5):r))*1E3,t*1E3)),C.Zu=w;F=Lw(u,F,G,C,y,[new v_(J)]);$L(u.wd.get())&&GJ(I.get(),"abrsm","cpi."+J.identifier+";cps."+J.startSecs+";cpd."+J.d2+";cts."+l+";rbf."+C.Zu.start);I.get().X.Lh(C.Zu.start/1E3-l,J.startSecs-l);return[F]})}; M2=function(O){var R,J=(R=Gg(O.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:R.current;if(!J)return null;R=Gg(O.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var l=O.layoutId,u=Gg(O.clientMetadata,"metadata_type_content_cpn"),F=Gg(O.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),G=Gg(O.clientMetadata,"metadata_type_player_overlay_layout_renderer"),y=Gg(O.clientMetadata,"metadata_type_player_underlay_renderer"),w=Gg(O.clientMetadata, "metadata_type_ad_placement_config"),I=Gg(O.clientMetadata,"metadata_type_video_length_seconds");var C=gU(O.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Gg(O.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):gU(O.clientMetadata,"metadata_type_layout_enter_ms")&&gU(O.clientMetadata,"metadata_type_layout_exit_ms")?(Gg(O.clientMetadata,"metadata_type_layout_exit_ms")-Gg(O.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{BA:l,contentCpn:u,He:J,gp:R,instreamAdPlayerOverlayRenderer:F, playerOverlayLayoutRenderer:G,instreamAdPlayerUnderlayRenderer:y,adPlacementConfig:w,videoLengthSeconds:I,Ba:C,inPlayerLayoutId:Gg(O.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Gg(O.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; qds=function(O,R){return MB_(O,R)}; ktT=function(O,R){R=MB_(O,R);if(!R)return null;var J;R.Ba=(J=Gg(O.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:J.adBreakRemainingLengthSeconds;return R}; MB_=function(O,R){var J,l=(J=Gg(O.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!l)return null;J=YkH(O,R);return{Vm:Lys(O,R),adPlacementConfig:Gg(O.clientMetadata,"metadata_type_ad_placement_config"),t9:J,contentCpn:Gg(O.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Gg(O.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Gg(O.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Gg(O.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Ba:void 0,He:l,BA:O.layoutId,videoLengthSeconds:Gg(O.clientMetadata,"metadata_type_video_length_seconds")}}; q2=function(O,R,J,l,u,F,G,y,w){g.p.call(this);this.N=O;this.j=R;this.D=J;this.B=l;this.L=u;this.S=F;this.CZ=G;this.wd=y;this.rd=w;this.WH=!0}; sk_=function(O,R,J){return SsB(O.L.get(),R.contentCpn,R.BA,function(l){return Nqs(O.S.get(),l.slotId,J,R.adPlacementConfig,R.BA,rU(O.CZ.get(),l))})}; kL=function(O,R,J,l,u,F,G,y){g.p.call(this);this.S=O;this.L=R;this.B=J;this.wd=l;this.N=u;this.rd=F;this.YS=G;this.iK=y}; sG=function(O){g.p.call(this);this.L=O}; ZF=function(O,R,J,l){O.L().dS(R,l);J=J();O=O.L();O.Iz.hV("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",R,l,J);R=g.N(J);for(J=R.next();!J.done;J=R.next())a:{l=O;J=J.value;l.Iz.nL("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",J);l.Iz.nL("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",J);try{var u=l.L;if(g.oW(J.slotId))throw new h("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Em(u,J))throw new h("Duplicate registration for slot.",{slotId:J.slotId,slotEntryTriggerType:J.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!u.Zj.VP.has(J.slotType))throw new h("No fulfillment adapter factory registered for slot of type: "+J.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!u.Zj.qJ.has(J.slotType))throw new h("No SlotAdapterFactory registered for slot of type: "+J.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");B6(u,"TRIGGER_CATEGORY_SLOT_ENTRY",J.slotEntryTrigger?[J.slotEntryTrigger]:[]);B6(u,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", J.slotFulfillmentTriggers);B6(u,"TRIGGER_CATEGORY_SLOT_EXPIRATION",J.slotExpirationTriggers);var F=l.L,G=J.slotType+"_"+J.slotPhysicalPosition,y=W6(F,G);if(Em(F,J))throw new h("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");y.set(J.slotId,new pM2(J));F.L.set(G,y)}catch(gh){gh instanceof h&&gh.wB?(l.Iz.gY("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",gh.wB,J),rK(gh,J,void 0,void 0,gh.xj)):(l.Iz.gY("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", J),rK(gh,J));break a}g.e(Em(l.L,J)).j=!0;try{var w=l.L,I=g.e(Em(w,J)),C=J.slotEntryTrigger,r=w.Zj.Ls.get(C.triggerType);r&&(r.mf("TRIGGER_CATEGORY_SLOT_ENTRY",C,J,null),I.OQ.set(C.triggerId,r));for(var t=g.N(J.slotFulfillmentTriggers),Z=t.next();!Z.done;Z=t.next()){var V=Z.value,m=w.Zj.Ls.get(V.triggerType);m&&(m.mf("TRIGGER_CATEGORY_SLOT_FULFILLMENT",V,J,null),I.SN.set(V.triggerId,m))}for(var E=g.N(J.slotExpirationTriggers),a=E.next();!a.done;a=E.next()){var v=a.value,b=w.Zj.Ls.get(v.triggerType); b&&(b.mf("TRIGGER_CATEGORY_SLOT_EXPIRATION",v,J,null),I.W.set(v.triggerId,b))}var W=w.Zj.VP.get(J.slotType).get().build(w.B,J);I.J=W;var B=w.Zj.qJ.get(J.slotType).get().build(w.D,J);B.init();I.S=B}catch(gh){gh instanceof h&&gh.wB?(l.Iz.gY("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",gh.wB,J),rK(gh,J,void 0,void 0,gh.xj)):(l.Iz.gY("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",J),rK(gh,J));Sd(l,J,!0);break a}l.Iz.nL("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",J); l.L.E_(J);for(var z=g.N(l.S),Y=z.next();!Y.done;Y=z.next())Y.value.E_(J);v6(l,J)}}; bw=function(O,R,J,l,u){g.p.call(this);var F=this;this.S=O;this.B=R;this.I2=J;this.context=u;this.L=new Map;l.get().addListener(this);this.addOnDisposeCallback(function(){l.jN()||l.get().removeListener(F)})}; TDf=function(O,R){var J=0x8000000000000;var l=0;for(var u=g.N(R.slotFulfillmentTriggers),F=u.next();!F.done;F=u.next())F=F.value,F instanceof Hz?(J=Math.min(J,F.L.start),l=Math.max(l,F.L.end)):rK("Found unexpected fulfillment trigger for throttled slot.",R,null,{fulfillmentTrigger:F});l=new DH(J,l);J="throttledadcuerange:"+R.slotId;O.L.set(J,R);O.I2.get().addCueRange(J,l.start,l.end,!1,O);Xs(O.context.wd.get())&&(R=l.start,l=l.end,u={},O.context.tj.M1("tcrr",(u.cid=J,u.sm=R,u.em=l,u)))}; W7=function(){g.p.apply(this,arguments);this.WH=!0;this.eA=new Map;this.L=new Map}; AM=function(O){return O.eA}; ez=function(O,R){O=g.N(O.eA.values());for(var J=O.next();!J.done;J=O.next())if(J.value.layoutId===R)return!0;return!1}; P7=function(O,R){O=g.N(O.L.values());for(var J=O.next();!J.done;J=O.next()){J=g.N(J.value);for(var l=J.next();!l.done;l=J.next())if(l=l.value,l.layoutId===R)return l}rK("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.oW(R)),layoutId:R})}; byB=function(){this.L=new Map}; W0f=function(O,R){this.callback=O;this.slot=R}; p4=function(){}; AOL=function(O,R,J){this.callback=O;this.slot=R;this.YS=J}; epB=function(O,R,J){this.callback=O;this.slot=R;this.YS=J;this.S=!1;this.L=0}; PCW=function(O,R,J){this.callback=O;this.slot=R;this.YS=J}; B7=function(O){this.YS=O}; H7=function(O){g.p.call(this);this.JG=O;this.Qd=new Map}; xL=function(O,R){for(var J=[],l=g.N(O.Qd.values()),u=l.next();!u.done;u=l.next()){u=u.value;var F=u.trigger;F instanceof JG&&F.triggeringLayoutId===R&&J.push(u)}J.length?kT(O.JG(),J):rK("Survey is submitted but no registered triggers can be activated.")}; UG=function(O,R,J){H7.call(this,O);var l=this;this.wd=J;R.get().addListener(this);this.addOnDisposeCallback(function(){R.jN()||R.get().removeListener(l)})}; jz=function(O){g.p.call(this);this.L=O;this.WH=!0;this.Qd=new Map;this.D=new Set;this.B=new Set;this.N=new Set;this.j=new Set;this.S=new Set}; QI=function(O){g.p.call(this);this.L=O;this.Qd=new Map}; L4=function(O,R){for(var J=[],l=g.N(O.Qd.values()),u=l.next();!u.done;u=l.next())u=u.value,u.trigger.L===R.layoutId&&J.push(u);J.length&&kT(O.L(),J)}; YL=function(O,R,J){g.p.call(this);var l=this;this.L=O;this.context=J;this.Qd=new Map;R.get().addListener(this);this.addOnDisposeCallback(function(){R.jN()||R.get().removeListener(l)})}; dM=function(O,R,J,l,u){g.p.call(this);var F=this;this.S=O;this.I2=R;this.YS=J;this.rd=l;this.context=u;this.WH=!0;this.Qd=new Map;this.L=new Set;J.get().addListener(this);this.addOnDisposeCallback(function(){J.jN()||J.get().removeListener(F)})}; p_h=function(O,R,J,l,u,F,G,y,w,I){if(mw(O.rd.get(),1).clientPlaybackNonce!==w)throw new h("Cannot register CueRange-based trigger for different content CPN",{trigger:J});O.Qd.set(J.triggerId,{qj:new iJ(R,J,l,u),cueRangeId:F});O.I2.get().addCueRange(F,G,y,I,O);Xs(O.context.wd.get())&&(w={},O.context.tj.M1("crr",(w.ca=R,w.tt=J.triggerType,w.st=l.slotType,w.lt=u==null?void 0:u.layoutType,w.cid=F,w.sm=G,w.em=y,w)))}; Bsx=function(O,R){O=g.N(O.Qd.entries());for(var J=O.next();!J.done;J=O.next()){var l=g.N(J.value);J=l.next().value;l=l.next().value;if(R===l.cueRangeId)return J}return""}; hM=function(O,R){g.p.call(this);var J=this;this.N=O;this.S=new Map;this.B=new Map;this.L=null;R.get().addListener(this);this.addOnDisposeCallback(function(){R.jN()||R.get().removeListener(J)}); var l;this.L=((l=lZ(R.get()))==null?void 0:l.slotId)||null}; HyT=function(O,R){var J=[];O=g.N(O.values());for(var l=O.next();!l.done;l=O.next())l=l.value,l.slot.slotId===R&&J.push(l);return J}; z8=function(O){g.p.call(this);this.L=O;this.WH=!0;this.Qd=new Map}; zP=function(O,R,J){R=R.layoutId;for(var l=[],u=g.N(O.Qd.values()),F=u.next();!F.done;F=u.next())if(F=F.value,F.trigger instanceof Q1){var G;if(G=F.trigger.layoutId===R){G=J;var y=kNA.get(F.category);G=y?y===G:!1}G&&l.push(F)}l.length&&kT(O.L(),l)}; n4=function(O){g.p.call(this);this.L=O;this.WH=!0;this.Qd=new Map}; c7=function(O,R,J,l,u){g.p.call(this);var F=this;this.D=O;this.Gy=R;this.YS=J;this.yh=l;this.L=null;this.WH=!0;this.Qd=new Map;this.N=new Set;R.get().addListener(this);this.addOnDisposeCallback(function(){R.jN()||R.get().removeListener(F)}); u.get().addListener(this);this.addOnDisposeCallback(function(){u.jN()||u.get().removeListener(F)})}; Ukh=function(O){O.L&&(O.S&&(O.S.stop(),O.S.start()),xkx(O,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; xkx=function(O,R){for(var J=[],l=g.N(O.Qd.values()),u=l.next();!u.done;u=l.next())u=u.value,u.trigger.triggerType===R&&J.push(u);J.length>0&&kT(O.D(),J)}; OP=function(O,R,J,l,u){for(var F=[],G=g.N(O.Qd.values()),y=G.next();!y.done;y=G.next()){var w=y=y.value,I=w.trigger;w=w.slot;if(I.triggerType===R){if(I instanceof Pz||I instanceof pq||I instanceof x$){if(u&&I.breakDurationMs!==J)continue;if(!u&&I.breakDurationMs===J)continue;if(l.has(w.slotId))continue;if(O.N.has(w.slotId))continue}F.push(y)}}F.length>0&&kT(O.D(),F)}; jkp=function(O,R){R=(R.d2+1)*1E3;var J=void 0;O=g.N(O.Qd.values());for(var l=O.next();!l.done;l=O.next()){var u=l.value;l=u.trigger;u=u.slot;l instanceof Pz&&l.breakDurationMs<=R&&(!J||l.breakDurationMs>J.trigger.breakDurationMs)&&(J={slot:u,trigger:l})}return J}; Qkz=function(O){O=O.adPlacementRenderer.config.adPlacementConfig;if(!O.prefetchModeConfig||!O.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;O=Number(O.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(O)||O<=0?0:Math.floor(Math.random()*O)}; L0s=function(O){O=O.adPlacementRenderer.config.adPlacementConfig;if(O.prefetchModeConfig&&O.prefetchModeConfig.cacheFetchRefreshDurationMs&&(O=Number(O.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(O)||O<=0)))return O}; RY=function(O){O.L=null;O.Qd.clear();O.N.clear();O.S&&O.S.stop();O.B&&O.B.stop()}; JU=function(O){g.p.call(this);this.B=O;this.WH=!0;this.Qd=new Map;this.L=new Map;this.S=new Map}; Yd_=function(O,R){var J=[];if(R=O.L.get(R.layoutId)){R=g.N(R);for(var l=R.next();!l.done;l=R.next())(l=O.S.get(l.value.triggerId))&&J.push(l)}return J}; gG=function(O){g.p.call(this);this.L=O;this.Qd=new Map}; dkx=function(O,R){for(var J=[],l=g.N(O.Qd.values()),u=l.next();!u.done;u=l.next())u=u.value,u.trigger instanceof TJ&&u.trigger.slotId===R&&J.push(u);J.length>=1&&kT(O.L(),J)}; hpH=function(O,R){var J={slotId:Vv(R,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],kS:"surface",clientMetadata:new FV([])},l=Object,u=l.assign;R=c6(R,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",J.slotId);R={layoutId:R,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",n1:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"surface", clientMetadata:new FV([]),xH:vUf(!1,J.slotId,J.slotType,J.slotPhysicalPosition,J.kS,J.slotEntryTrigger,J.slotFulfillmentTriggers,J.slotExpirationTriggers,R,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return u.call(l,{},O,{YQh:!0,slot:J,layout:R})}; szH=function(O,R,J,l){var u=O.kind;l=l?!1:!O.hideCueRangeMarker;switch(u){case "AD_PLACEMENT_KIND_START":return l={A4:new DH(-0x8000000000000,-0x8000000000000),fX:l},J!=null&&(l.Zu=new DH(-0x8000000000000,-0x8000000000000)),l;case "AD_PLACEMENT_KIND_END":return l={A4:new DH(0x7ffffffffffff,0x8000000000000),fX:l},J!=null&&(l.Zu=new DH(Math.max(0,R-J),0x8000000000000)),l;case "AD_PLACEMENT_KIND_MILLISECONDS":u=O.adTimeOffset;u.offsetStartMilliseconds||rK("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); u.offsetEndMilliseconds||rK("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");O=Number(u.offsetStartMilliseconds);u=Number(u.offsetEndMilliseconds);u===-1&&(u=R);if(Number.isNaN(O)||Number.isNaN(u)||O>u)return new h("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:O,offsetEndMs:u},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",u===R&&O-500<=u);l={A4:new DH(O,u),fX:l};if(J!=null){O=Math.max(0,O-J);if(O===u)return l;l.Zu=new DH(O,u)}return l; default:return new h("AdPlacementKind not supported in convertToRange.",{kind:u,adPlacementConfig:O})}}; Tsx=function(O){var R=O.startSecs*1E3;return new DH(R,R+O.d2*1E3)}; zps=function(O){if(!O||!O.adPlacements&&!O.adSlots)return!1;for(var R=g.N(O.adPlacements||[]),J=R.next();!J.done;J=R.next())if(J=J.value)if(J=J.adPlacementRenderer,J!=null&&(J.config&&J.config.adPlacementConfig&&J.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;O=g.N(O.adSlots||[]);for(R=O.next();!R.done;R=O.next()){var l=J=void 0;if(((J=g.x(R.value,j7))==null?void 0:(l=J.adSlotMetadata)==null?void 0:l.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; i5=function(O){this.wd=O;this.S=new Map;this.L=new Map;this.B=new Map}; Vv=function(O,R){if(l5(O.wd.get())){var J=O.S.get(R)||0;J++;O.S.set(R,J);return R+"_"+J}return g.DO(16)}; c6=function(O,R,J){if(l5(O.wd.get())){var l=O.L.get(R)||0;l++;O.L.set(R,l);return J+"_"+R+"_"+l}return g.DO(16)}; C4=function(O,R){if(l5(O.wd.get())){var J=O.B.get(R)||0;J++;O.B.set(R,J);return R+"_"+J}return g.DO(16)}; nNW=function(O){var R=[new Vu(O.BA),new m0(O.He),new Od(O.adPlacementConfig),new Xm(O.videoLengthSeconds),new xN(O.Ba)];O.instreamAdPlayerOverlayRenderer&&R.push(new Fm(O.instreamAdPlayerOverlayRenderer));O.playerOverlayLayoutRenderer&&R.push(new Gt(O.playerOverlayLayoutRenderer));O.gp&&R.push(new iC(O.gp));return R}; cO_=function(O,R,J,l,u,F){O=J.inPlayerLayoutId?J.inPlayerLayoutId:c6(F,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",O);var G,y,w=J.instreamAdPlayerOverlayRenderer?(G=J.instreamAdPlayerOverlayRenderer)==null?void 0:G.adLayoutLoggingData:(y=J.playerOverlayLayoutRenderer)==null?void 0:y.adLayoutLoggingData;G={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",kS:R};return{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",n1:new Map,layoutExitNormalTriggers:[new Av(function(I){return C4(F, I)},J.BA)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:R,clientMetadata:l,xH:u(G),adLayoutLoggingData:w}}; u5=function(O,R){var J=this;this.S=O;this.wd=R;this.L=function(l){return C4(J.S.get(),l)}}; Nqs=function(O,R,J,l,u,F){J=new FV([new Ky(J),new Od(l)]);R=c6(O.S.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",R);l={layoutId:R,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",kS:"core"};return{layoutId:R,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",n1:new Map,layoutExitNormalTriggers:[new Av(function(G){return C4(O.S.get(),G)},u)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"core",clientMetadata:J,xH:F(l),adLayoutLoggingData:void 0}}; lw=function(O,R,J,l,u){var F=nNW(l);return cO_(R,J,l,new FV(F),u,O.S.get())}; O2x=function(O,R,J,l,u){var F=nNW(l);F.push(new nh(l.Vm));F.push(new ck(l.t9));return cO_(R,J,l,new FV(F),u,O.S.get())}; Ds=function(O,R,J,l,u,F,G,y,w,I){R=c6(O.S.get(),J,R);var C={layoutId:R,layoutType:J,kS:"core"},r=new Map;G&&r.set("impression",G);G=[new Ul(O.L,u,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];I&&G.push(new Wz(O.L,I,["normal"]));return{layoutId:R,layoutType:J,n1:r,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"core",clientMetadata:new FV([l,new Od(F),new Vu(u)]),xH:y(C),adLayoutLoggingData:w}}; aG=function(O,R,J,l,u,F,G,y,w){R=c6(O.S.get(),J,R);var I={layoutId:R,layoutType:J,kS:"core"},C=[new Ul(O.L,u,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];w&&C.push(new Wz(O.L,w,["normal"]));return{layoutId:R,layoutType:J,n1:new Map,layoutExitNormalTriggers:C,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"core",clientMetadata:new FV([l,new Od(F),new Vu(u)]),xH:G(I),adLayoutLoggingData:y}}; tM=function(O,R,J){var l=[];l.push(new jR(O.L,J));R&&l.push(R);return l}; rM=function(O,R,J,l,u,F,G){var y={layoutId:R,layoutType:J,kS:"core"};return{layoutId:R,layoutType:J,n1:new Map,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[new qr(O.L,R)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"core",clientMetadata:new FV([new Yg(l),new Od(u)]),xH:F(y),adLayoutLoggingData:l.adLayoutLoggingData}}; RG=function(O,R,J,l,u,F,G,y){var w={layoutId:R,layoutType:F,kS:"core"};return{layoutId:R,layoutType:F,n1:new Map,layoutExitNormalTriggers:[new Av(O.L,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"core",clientMetadata:new FV([new Od(l)].concat(g.X(G))),xH:u(w),adLayoutLoggingData:y}}; Zs=function(O,R,J,l){if(O.wd.get().Fw(R.kind==="AD_PLACEMENT_KIND_START"))if(J===void 0)rK("Expected SSAP layout ID in renderer",void 0,void 0,{caller:l});else return J}; RpT=function(O,R,J,l,u,F,G,y,w,I,C,r,t){O=oG(O,R,J,u,F,G,y,w,r,Zs(O,J,l.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),t);R=O.A6;J=new fy(O.Hw);l=O.layoutExitSkipTriggers;I>0&&(R.push(J),R.push(new gs(I)),l=[]);R.push(new JO(C));return{XU:{layoutId:O.layoutId,layoutType:O.layoutType,n1:O.n1,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:O.kS,clientMetadata:new FV(R),xH:O.xH,adLayoutLoggingData:O.adLayoutLoggingData}, NP:l,OO:O.layoutExitMuteTriggers,t6:O.layoutExitUserInputSubmittedTriggers,Ky:O.Dv,Zh:O.Zh}}; lzz=function(O,R,J,l,u,F,G,y,w,I){R=oG(O,R,J,l,F,new Map,G,function(C){return y(C,w)},void 0,Zs(O,J,u.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); O=new JG(O.L,R.Hw);J=new fy(R.Hw);I=new JO(I);return{XU:{layoutId:R.layoutId,layoutType:R.layoutType,n1:R.n1,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:R.kS,clientMetadata:new FV([].concat(g.X(R.A6),[J,I])),xH:R.xH,adLayoutLoggingData:R.adLayoutLoggingData},NP:R.layoutExitSkipTriggers,OO:R.layoutExitMuteTriggers,t6:[].concat(g.X(R.layoutExitUserInputSubmittedTriggers),[O]),Ky:R.Dv,Zh:R.Zh}}; oG=function(O,R,J,l,u,F,G,y,w,I,C){R=I!=null?I:c6(O.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",R);I={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",kS:"adapter"};y=y(R);var r=Gg(y.clientMetadata,"metadata_type_fulfilled_layout");r||rK("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var t=r?r.layoutId:"";J=[new Od(J),new Ud(l),new Ly(u)];r&&J.push(new SB(r.layoutType));C&&J.push(new sd(C));return{layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", n1:F,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new dB(O.L,t)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"adapter",A6:J,xH:G(I),adLayoutLoggingData:w,Zh:y,Hw:t}}; VZs=function(O,R,J,l,u,F,G,y,w,I,C){O=Rz_(O,R,"core",J,l,u,F,G,y,w,I,void 0,C);return{layoutId:O.layoutId,layoutType:O.layoutType,n1:O.n1,layoutExitNormalTriggers:O.layoutExitNormalTriggers,layoutExitSkipTriggers:O.layoutExitSkipTriggers,layoutExitMuteTriggers:O.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:O.layoutExitUserInputSubmittedTriggers,Dv:O.Dv,kS:O.kS,clientMetadata:new FV(O.u4),xH:O.xH,adLayoutLoggingData:O.adLayoutLoggingData}}; oN0=function(O,R,J,l,u,F,G,y,w,I,C,r,t){R=Rz_(O,R,"adapter",J,l,u,F,G,y,w,C,r,t);l=R.layoutExitSkipTriggers;u=R.u4;J.adPodSkipTarget&&J.adPodSkipTarget>0&&(u.push(I),u.push(new gs(J.adPodSkipTarget)),l=[]);u.push(new JO(y.adPodIndex));J.isCritical&&(l=[new Wz(O.L,R.layoutId,["error"])].concat(g.X(l)));return{XU:{layoutId:R.layoutId,layoutType:R.layoutType,n1:R.n1,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:R.kS,clientMetadata:new FV(u), xH:R.xH,adLayoutLoggingData:R.adLayoutLoggingData},NP:l,OO:R.layoutExitMuteTriggers,t6:R.layoutExitUserInputSubmittedTriggers,Ky:R.Dv}}; Rz_=function(O,R,J,l,u,F,G,y,w,I,C,r,t){var Z={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA",kS:J};u=[new Od(u),new Rk(w),new lC(l.externalVideoId),new uC(y),new Ly({impressionCommands:l.impressionCommands,abandonCommands:l.onAbandonCommands,completeCommands:l.completeCommands,progressCommands:l.adVideoProgressCommands}),new Tt(F),new Ed({current:null}),new Xm(G)];(F=l.playerOverlay.instreamAdPlayerOverlayRenderer)&&u.push(new Fm(F));(G=l.playerOverlay.playerOverlayLayoutRenderer)&&u.push(new Gt(G)); r&&u.push(new $N(r));(r=l.playerUnderlay)&&u.push(new Ky(r));y=Vv(O.S.get(),"SLOT_TYPE_IN_PLAYER");r=(r=F?F.elementId:G==null?void 0:G.layoutId)?r:c6(O.S.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",y);u.push(new fy(r));u.push(new Nk(y));u.push(new sd(w.adPodIndex));l.adNextParams&&u.push(new QD(l.adNextParams));l.shrunkenPlayerBytesConfig&&u.push(new Ik(l.shrunkenPlayerBytesConfig));l.clickthroughEndpoint&&u.push(new Lh(l.clickthroughEndpoint));l.legacyInfoCardVastExtension&&u.push(new jB(l.legacyInfoCardVastExtension)); l.sodarExtensionData&&u.push(new Mk(l.sodarExtensionData));C&&u.push(new H_(C));u.push(new hO(XB(l.pings)));w=Th(l.pings);if(t){a:{t=g.N(t);for(C=t.next();!C.done;C=t.next())if(C=C.value,C.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(F=g.x(C.fulfillmentContent.fulfilledLayout,bJ))&&(F=g.x(F.renderingContent,kr))&&F.associatedPlayerBytesLayoutId===R){t=C;break a}t=void 0}t&&u.push(new yu(t))}return{layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA",n1:w,layoutExitNormalTriggers:[new Q1(O.L,R)],layoutExitSkipTriggers:l.skipOffsetMilliseconds? [new dB(O.L,r)]:[],layoutExitMuteTriggers:[new dB(O.L,r)],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:J,u4:u,xH:I(Z),adLayoutLoggingData:l.adLayoutLoggingData}}; Glx=function(O,R,J,l,u,F,G,y,w){l.every(function(C){return iO(C,[],["LAYOUT_TYPE_MEDIA"])})||rK("Unexpect subLayout type for DAI composite layout"); R=c6(O.S.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",R);var I={layoutId:R,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",kS:"core"};return{layoutId:R,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",n1:new Map,layoutExitNormalTriggers:[new eR(O.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Dv:[],kS:"core",clientMetadata:new FV([new qk(J),new kN(y),new ak(l),new Od(u),new eB(F),new bC({}),new ny(w)]),xH:G(I)}}; ggf=function(O){return O!=null}; Fy=function(O,R,J){var l=this;this.S=O;this.B=R;this.wd=J;this.L=function(u){return C4(l.S.get(),u)}}; azs=function(O,R,J,l,u,F,G){if(!J.prefetchModeConfig)return new h("AdPlacementConfig for Live Prefetch is missing prefetch_config");J=J.prefetchModeConfig;l*=1E3;var y=[];if(!J.breakLengthMs)return new h("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var w=g.N(J.breakLengthMs),I=w.next();!I.done;I=w.next())if(I=I.value,Number(I)>0){var C=l+Number(J.startTimeOffsetMs),r=C+Number(J.cacheFetchSmearingDurationMs);I={A4:new DH(r,r+Number(I)),fX:!1,Zu:new DH(Math.floor(C+Math.random()* Number(J.cacheFetchSmearingDurationMs)),r),cueProcessedMs:l?l:C};C=[];C.push(new JB({}));r=[];r.push(new Y$(O.L));r.push(new Y8W(O.L));G&&C.push(new bC({}));y.push(Lw(O,R,u,I,F,C,r))}return y}; Lw=function(O,R,J,l,u,F,G){F=F===void 0?[]:F;var y=Vv(O.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");G||(G=[],l.Zu&&l.Zu.start!==l.A4.start&&G.push(new Hz(O.L,J,new DH(l.Zu.start,l.A4.start),!1)),G.push(new Hz(O.L,J,new DH(l.A4.start,l.A4.end),l.fX)));l={getAdBreakUrl:R.getAdBreakUrl,GN:l.A4.start,E6:l.A4.end,cueProcessedMs:l.cueProcessedMs};R=new cz(O.L,y);F=[new py(l)].concat(g.X(F));return{slotId:y,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:G, slotExpirationTriggers:[new Lq(O.L,J),new zJ(O.L,y),new nq(O.L,y)],kS:"core",clientMetadata:new FV(F),adSlotLoggingData:u}}; gTs=function(O,R,J){var l=[];J=g.N(J);for(var u=J.next();!u.done;u=J.next())l.push(JBx(O,R,u.value));return l}; JBx=function(O,R,J){return J.triggeringSlotId!=null&&J.triggeringSlotId===O?J.clone(R):J}; Qzf=function(O,R,J,l,u){return i2p(O,R,J,l,u)}; JO_=function(O,R,J,l){var u=Vv(O.S.get(),"SLOT_TYPE_IN_PLAYER");return i2p(O,u,R,J,l)}; i2p=function(O,R,J,l,u){var F=new bZ(O.L,J),G=[new hv(O.L,R)];O=[new zJ(O.L,R),new Lq(O.L,l)];return{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:G,slotExpirationTriggers:O,kS:"core",clientMetadata:new FV([new P_(u({slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:F,slotFulfillmentTriggers:G,slotExpirationTriggers:O},J))]),adSlotLoggingData:void 0}}; ZyH=function(O,R,J,l,u,F){var G=Vv(O.S.get(),"SLOT_TYPE_PLAYER_BYTES"),y=Vv(O.S.get(),"SLOT_TYPE_IN_PLAYER"),w=c6(O.S.get(),"LAYOUT_TYPE_SURVEY",y);l=Gy(O,R,J,l);var I=[new hv(O.L,G)];J=[new zJ(O.L,G),new Lq(O.L,J),new qr(O.L,w)];if(l instanceof h)return l;y=F({slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:l,slotFulfillmentTriggers:I,slotExpirationTriggers:J},{slotId:y,layoutId:w});F=y.LMQ;y=y.uQQ;return[{slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:f4(O,R,G,l),slotFulfillmentTriggers:Sz(O,R,G,I),slotExpirationTriggers:J,kS:"core",clientMetadata:new FV([new P_(F),new c_(N2(R)),new Rq({hZ:O.hZ(R)})]),adSlotLoggingData:u},y]}; N2=function(O){return O.kind==="AD_PLACEMENT_KIND_START"}; fLL=function(O,R,J,l,u){u=u?u:Vv(O.S.get(),"SLOT_TYPE_IN_PLAYER");J=new bZ(O.L,J);var F=[new hv(O.L,u)];O=[new Lq(O.L,R),new zJ(O.L,u)];return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:F,slotExpirationTriggers:O,kS:"core",clientMetadata:new FV([new P_(l({slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:J,slotFulfillmentTriggers:F,slotExpirationTriggers:O}))])}}; SsB=function(O,R,J,l){var u=Vv(O.S.get(),"SLOT_TYPE_PLAYER_UNDERLAY");J=new bZ(O.L,J);var F=[new hv(O.L,u)];O=[new Lq(O.L,R),new zJ(O.L,u)];return{slotId:u,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:F,slotExpirationTriggers:O,kS:"core",clientMetadata:new FV([new P_(l({slotId:u,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:J,slotFulfillmentTriggers:F,slotExpirationTriggers:O}))])}}; wkx=function(O,R,J,l,u,F,G){var y=Vv(O.S.get(),"SLOT_TYPE_IN_PLAYER"),w=c6(O.S.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",y);l=lEz(O,l,F,G,w);if(l instanceof h)return l;G=[new hv(O.L,y)];u=[new Lq(O.L,F),new hv(O.L,u),new R7(O.L,u)];J=rU(J,{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:l,slotFulfillmentTriggers:G,slotExpirationTriggers:u});O=O.B.get();F={layoutId:w,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",kS:"core"};R={layoutId:w,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", n1:new Map,layoutExitNormalTriggers:[new JqB(O.L,w,R.durationMs)],layoutExitSkipTriggers:[new ikB(O.L,w,R.durationMs)],Dv:[new gus(O.L,w)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],kS:"core",clientMetadata:new FV([new Qu(R)]),xH:J(F)};return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:l,slotFulfillmentTriggers:G,slotExpirationTriggers:u,clientMetadata:new FV([new P_(R)])}}; ckA=function(O,R,J,l,u,F){R=Gy(O,R,J,l);if(R instanceof h)return R;var G=R instanceof Hz?new c9L(O.L,J,R.L):null;l=Vv(O.S.get(),"SLOT_TYPE_IN_PLAYER");var y=[new hv(O.L,l)];O=[new Lq(O.L,J),new zJ(O.L,l)];F=F({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:R,slotFulfillmentTriggers:y,slotExpirationTriggers:O},G);return F instanceof uO?new h(F):{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:y,slotExpirationTriggers:O, kS:"core",clientMetadata:new FV([new P_(F)]),adSlotLoggingData:u}}; zmh=function(O,R,J,l){var u=Vv(O.S.get(),"SLOT_TYPE_IN_PLAYER"),F=new Mr(O.L,R),G=[new OM(O.L,u)];O=[new Lq(O.L,R),new zJ(O.L,u)];return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:G,slotExpirationTriggers:O,kS:"core",clientMetadata:new FV([new P_(l({slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:F,slotFulfillmentTriggers:G,slotExpirationTriggers:O}))]),adSlotLoggingData:J}}; nuf=function(O,R,J,l){var u=Vv(O.S.get(),"SLOT_TYPE_IN_PLAYER");J=new bZ(O.L,J);var F=[new hv(O.L,u)],G=[new zJ(O.L,u),new Lq(O.L,R)];F={slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:J,slotFulfillmentTriggers:F,slotExpirationTriggers:G};return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:[new hv(O.L,u)],slotExpirationTriggers:[new Lq(O.L,R),new zJ(O.L,u)],kS:"core",clientMetadata:new FV([new P_(l(F))])}}; dFA=function(O,R,J,l,u){var F=Vv(O.S.get(),"SLOT_TYPE_IN_PLAYER");J=new sl(O.L,l,J);l=[new hv(O.L,F)];O=[new Lq(O.L,R)];return{slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:l,slotExpirationTriggers:O,kS:"core",clientMetadata:new FV([new P_(u({slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:J,slotFulfillmentTriggers:l,slotExpirationTriggers:O}))])}}; xF2=function(O,R,J,l,u,F){var G=Vv(O.S.get(),R);return KK(O,G,R,new bZ(O.L,l),[new Lq(O.L,J),new zJ(O.L,G),new Wz(O.L,l,["error"])],u,F)}; Hks=function(O,R,J,l,u,F,G){var y=Vv(O.S.get(),R);return KK(O,y,R,new Wz(O.L,u,["normal"]),[new Lq(O.L,J),new zJ(O.L,y),new Wz(O.L,l,["error"])],F,G)}; eyA=function(O,R,J,l,u){var F=Vv(O.S.get(),R);return KK(O,F,R,new Mr(O.L,J),[new Lq(O.L,J),new zJ(O.L,F)],l,u)}; LYW=function(O,R,J,l,u){J=J?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var F=Vv(O.S.get(),J);R=new Mr(O.L,R);var G=[new hv(O.L,F)];O=[new zJ(O.L,F)];return{slotId:F,slotType:J,slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:G,slotExpirationTriggers:O,kS:"core",clientMetadata:new FV([new P_(u({slotId:F,slotType:J,slotPhysicalPosition:1,kS:"core",slotEntryTrigger:R,slotFulfillmentTriggers:G,slotExpirationTriggers:O}))]),adSlotLoggingData:l}}; ihs=function(O,R,J,l){var u=Vv(O.S.get(),"SLOT_TYPE_PLAYER_BYTES"),F=new Bz(O.L),G=[new OM(O.L,u)];O=[new Lq(O.L,R)];return{slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:G,slotExpirationTriggers:O,kS:"core",clientMetadata:new FV([new P_(l({slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:F,slotFulfillmentTriggers:G,slotExpirationTriggers:O})),new bC({})]),adSlotLoggingData:J}}; Izz=function(O,R){return EN2(O.wd.get())?new Wz(O.L,R,["normal","error","skipped"]):new Wz(O.L,R,["normal"])}; tZL=function(O,R,J,l,u){R=Izz(O,R);O=VI(O,R,J);u=u({slotId:O.slotId,slotType:O.slotType,slotPhysicalPosition:O.slotPhysicalPosition,slotEntryTrigger:O.slotEntryTrigger,slotFulfillmentTriggers:O.slotFulfillmentTriggers,slotExpirationTriggers:O.slotExpirationTriggers,kS:O.kS});return u instanceof h?u:{Q3:Object.assign({},O,{clientMetadata:new FV([new P_(u.layout)]),adSlotLoggingData:l}),Ye:u.Ye}}; ogW=function(O,R,J,l,u,F,G){J=CCL(O,R,J,l);if(J instanceof h)return J;G=G({slotId:J.slotId,slotType:J.slotType,slotPhysicalPosition:J.slotPhysicalPosition,slotEntryTrigger:J.slotEntryTrigger,slotFulfillmentTriggers:J.slotFulfillmentTriggers,slotExpirationTriggers:J.slotExpirationTriggers,kS:J.kS});if(G instanceof h)return G;l=[new c_(N2(R)),new P_(G.layout),new Rq({hZ:O.hZ(R)})];F&&l.push(new YN({}));return{Q3:{slotId:J.slotId,slotType:J.slotType,slotPhysicalPosition:J.slotPhysicalPosition,slotEntryTrigger:f4(O, R,J.slotId,J.slotEntryTrigger),slotFulfillmentTriggers:Sz(O,R,J.slotId,J.slotFulfillmentTriggers),slotExpirationTriggers:J.slotExpirationTriggers,kS:J.kS,clientMetadata:new FV(l),adSlotLoggingData:u},Ye:G.Ye}}; f4=function(O,R,J,l){return O.wd.get().Fw(N2(R))?new TJ(O.L,J):l}; Sz=function(O,R,J,l){return O.wd.get().Fw(N2(R))?[new OM(O.L,J)]:l}; VI=function(O,R,J){var l=Vv(O.S.get(),"SLOT_TYPE_PLAYER_BYTES"),u=[new hv(O.L,l)];O=[new zJ(O.L,l),new Lq(O.L,J)];return{slotId:l,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:u,slotExpirationTriggers:O,kS:"core"}}; CCL=function(O,R,J,l){R=Gy(O,R,J,l);return R instanceof h?R:VI(O,R,J)}; de2=function(O,R,J,l,u,F){var G=Vv(O.S.get(),"SLOT_TYPE_FORECASTING");R=Gy(O,R,J,l);if(R instanceof h)return R;l=[new hv(O.L,G)];O=[new zJ(O.L,G),new Lq(O.L,J)];return{slotId:G,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:l,slotExpirationTriggers:O,kS:"core",clientMetadata:new FV([new P_(F({slotId:G,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,kS:"core",slotEntryTrigger:R,slotFulfillmentTriggers:l,slotExpirationTriggers:O}))]),adSlotLoggingData:u}}; uVh=function(O,R,J,l,u){var F=!R.hideCueRangeMarker;switch(R.kind){case "AD_PLACEMENT_KIND_START":return new Mr(O.L,J);case "AD_PLACEMENT_KIND_MILLISECONDS":return O=szH(R,l),O instanceof h?O:u(O.A4,F);case "AD_PLACEMENT_KIND_END":return new k$(O.L,J,F);default:return new h("Cannot construct entry trigger",{kind:R.kind})}}; lEz=function(O,R,J,l,u){return uVh(O,R,J,l,function(F,G){return new n3W(O.L,J,F,G,u)})}; Gy=function(O,R,J,l){return uVh(O,R,J,l,function(u,F){return new Hz(O.L,J,u,F)})}; KK=function(O,R,J,l,u,F,G){O=[new OM(O.L,R)];return{slotId:R,slotType:J,slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:O,slotExpirationTriggers:u,kS:"core",clientMetadata:new FV([new P_(G({slotId:R,slotType:J,slotPhysicalPosition:1,kS:"core",slotEntryTrigger:l,slotFulfillmentTriggers:O,slotExpirationTriggers:u}))]),adSlotLoggingData:F}}; y5=function(O,R){g.p.call(this);this.wd=O;this.L=R;this.eventCount=0}; wG=function(O,R,J,l){y5.call(this,O,R);this.wd=O;this.rd=J;this.context=l}; IY=function(){this.L=new Map}; rG=function(O,R){var J=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=O;this.result=R.result;this.error=R.error;R.promise&&R.promise.then(function(l){CK(J,l)},function(l){J.J3(l)})}; Zi=function(O){if(tU(O)){if(O instanceof rG)return O;if(oY(O))return new rG("wait",{promise:O})}return new rG("done",{result:O})}; V5=function(){return new rG("wait",{})}; fK=function(O){return new rG("fail",{error:O})}; SC=function(O){try{return Zi(O())}catch(R){return fK(R)}}; mq=function(O,R){var J=V5();O.onSuccess.push(function(l){try{var u=R(l);CK(J,u)}catch(F){J.J3(F)}}); O.onFailure.push(function(l){J.J3(l)}); Nh(O);return J}; EP=function(O,R){var J=V5();O.onSuccess.push(function(l){CK(J,l)}); O.onFailure.push(function(l){try{var u=R(l);CK(J,u)}catch(F){J.J3(F)}}); Nh(O);return J}; Fe2=function(O,R){var J=V5();O.onSuccess.push(function(l){try{R(),CK(J,l)}catch(u){J.J3(u)}}); O.onFailure.push(function(l){try{R(),J.J3(l)}catch(u){J.J3(u)}}); Nh(O)}; CK=function(O,R){if(tU(R)){if(oY(R)){R.then(function(J){CK(O,J)},function(J){O.J3(J)}); return}if(R instanceof rG){mq(R,function(J){CK(O,J)}); EP(R,function(J){O.J3(J)}); return}}O.currentState="done";O.result=R;Nh(O)}; Nh=function(O){if(O.currentState==="done"){var R=O.onSuccess;O.onSuccess=[];O.onFailure=[];R=g.N(R);for(var J=R.next();!J.done;J=R.next())J=J.value,J(O.result)}else if(O.currentState==="fail")for(R=O.onFailure,O.onSuccess=[],O.onFailure=[],R=g.N(R),J=R.next();!J.done;J=R.next())J=J.value,J(O.error)}; Di=function(O){return function(){return GgL(O.apply(this,g.As.apply(0,arguments)))}}; aY=function(O){return Zi(O).wait()}; GgL=function(O){return SC(function(){return vU(O,O.next())})}; vU=function(O,R){return R.done?Zi(R.value):EP(mq(R.value.V_,function(J){return vU(O,O.next(J))}),function(J){return vU(O,O.throw(J))})}; Kes=function(O,R){if(O.length===0)return Zi(NaN);var J=V5(),l=O.length;O.forEach(function(u,F){Fe2(Zi(u),function(){J.currentState==="wait"&&(R!==void 0&&R(F)&&J.currentState==="wait"?J.resolve(F):(--l,l===0&&J.resolve(NaN)))})}); return J}; yBA=function(O){return O.map(function(R){return Zi(R)})}; Ty=function(O){var R=O.hours||0;var J=O.minutes||0,l=O.seconds||0;R=l+J*60+R*3600+(O.days||0)*86400+(O.weeks||0)*604800+(O.months||0)*2629800+(O.years||0)*31557600;R<=0?R={hours:0,minutes:0,seconds:0}:(O=R,R=Math.floor(O/3600),O%=3600,J=Math.floor(O/60),l=Math.floor(O%60),R={hours:R,minutes:J,seconds:l});var u=R.hours===void 0?0:R.hours;J=R.minutes===void 0?0:R.minutes;O=R.seconds===void 0?0:R.seconds;l=u>0;R=[];if(l){u=(new Intl.NumberFormat("en-u-nu-latn")).format(u);var F=["fr"],G="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(" "); u="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(Xy)?u.replace(",","\u00a0"):F.includes(Xy)?u.replace(",","\u202f"):G.includes(Xy)?u.replace(",","."):u;R.push(u)}l=l===void 0?!1:l;J=(["af","be","lt"].includes(Xy)||l)&&J<10?w6x().format(J):(new Intl.NumberFormat("en-u-nu-latn")).format(J);R.push(J);J=w6x().format(O);R.push(J);J=":";"da fi id si sr sr-Latn".split(" ").includes(Xy)&&(J=".");return R.join(J)}; w6x=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; IEL=function(O,R){var J,l;O=((J=O.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(l=J.videoAuthorizationToken)==null?void 0:l.credentialTransferTokens)||[];for(J=0;JR;O=J}else O=!1;return O}; g.jC=function(O,R){return O.Ic+"timedtext_video?ref=player&v="+R.videoId}; g.MdA=function(O){var R=this;this.videoData=O;O={};this.L=(O.c1a=function(){var J=[];if(g.xk.isInitialized()){var l="";R.videoData&&R.videoData.Vl&&(l=R.videoData.Vl+("&r1b="+R.videoData.clientPlaybackNonce));var u={};l=(u.atr_challenge=l,u);Y3("bg_v",void 0,"player_att");(l=$Js(l))?(Y3("bg_s",void 0,"player_att"),J.push("r1a="+l)):(Y3("bg_e",void 0,"player_att"),J.push("r1c=2"))}else Y3("bg_e",void 0,"player_att"),window.trayride||window.botguard?J.push("r1c=1"):J.push("r1c=4");J.push("r1d="+g.xk.getState()); return J.join("&")},O.c6a=function(J){return"r6a="+(Number(J.c)^Iz())},O.c6b=function(J){return"r6b="+(Number(J.c)^Number(g.YB("CATSTAT",0)))},O); this.videoData&&this.videoData.Vl?this.i8=JF(this.videoData.Vl):this.i8={}}; g.qmA=function(O){if(O.videoData&&O.videoData.Vl){for(var R=[O.videoData.Vl],J=g.N(Object.keys(O.L)),l=J.next();!l.done;l=J.next())l=l.value,O.i8[l]&&O.L[l]&&(l=O.L[l](O.i8))&&R.push(l);return R.join("&")}return null}; g.Q5=function(O,R){TUT(O,{Rfu:g.tB(R.experiments,"bg_vm_reinit_threshold"),cspNonce:R.cspNonce,Ic:R.Ic||""})}; kgz=function(){var O=XMLHttpRequest.prototype.fetch;return!!O&&O.length===3}; sqT=function(O){O=O[K[6]](K[7]);LK[K[40]](O,24);LK[K[18]](O,3);LK[K[40]](O,40);LK[K[18]](O,1);return O[K[31]](K[7])}; Wef=function(O){b2s=2592E3*(O||1)}; Yk=function(O){O=O===void 0?b2s:O;if(O>0&&!(Uup()>(0,g.Q)()-O*1E3))return 0;O=g.Wf("yt-player-quality");if(typeof O==="string"){if(O=g.xw[O],O>0)return O}else if(O instanceof Object)return O.quality;return 0}; dG=function(){var O=g.Wf("yt-player-proxima-pref");return O==null?null:O}; ABz=function(){var O=g.Wf("yt-player-quality");if(O instanceof Object&&O.quality&&O.previousQuality){if(O.quality>O.previousQuality)return 1;if(O.quality0&&R[0]?O.getAutoplayPolicy(R[0]):O.getAutoplayPolicy("mediaelement");if(UJ0[J])return UJ0[J]}}catch(l){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; JC=function(O){return O.O0||O.kq||O.mutedAutoplay}; jqB=function(O,R){return JC(O)?R!==1&&R!==2&&R!==0?"AUTOPLAY_STATUS_UNAVAILABLE":O.yu?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; QqL=function(O,R,J){var l=R.T();O.thirdParty||(O.thirdParty={});l.ancestorOrigins&&(O.thirdParty.embeddedPlayerContext=Object.assign({},O.thirdParty.embeddedPlayerContext,{ancestorOrigins:l.ancestorOrigins}));l.Z("embeds_enable_autoplay_and_visibility_signals")&&(l.WQ!=null&&(O.thirdParty.embeddedPlayerContext=Object.assign({},O.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(l.WQ)})),l.MM&&(O.thirdParty.embeddedPlayerContext=Object.assign({},O.thirdParty.embeddedPlayerContext,{visibilityFractionSource:l.MM})), O.thirdParty.embeddedPlayerContext=Object.assign({},O.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Rx(),autoplayIntended:JC(R),autoplayStatus:jqB(R,J)}))}; dJT=function(O,R){zS(O,2,R.KS,gV,3);zS(O,3,R.Lq,LeT,3);dD(O,4,R.onesieUstreamerConfig);dD(O,9,R.Z7);zS(O,10,R.aE,ia,3);zS(O,15,R.reloadPlaybackParams,Yms,3)}; zzs=function(O,R){zS(O,1,R.formatId,la,3);Lk(O,2,R.startTimeMs);Lk(O,3,R.durationMs);Lk(O,4,R.T_);Lk(O,5,R.CA);zS(O,9,R.Xuh,hzA,3);zS(O,11,R.O_d,ua,1);zS(O,12,R.MQ,ua,1)}; nT_=function(O,R){hq(O,1,R.videoId);Lk(O,2,R.lmt)}; hzA=function(O,R){if(R.ZM)for(var J=0;J>31));Lk(O,16,R.JRg);Lk(O,17,R.detailedNetworkType);Lk(O,18,R.Qi);Lk(O,19,R.qf);Lk(O,21,R.HWJ);Lk(O,23,R.S0);Lk(O,28,R.eE);Lk(O,29,R.j8S);Lk(O,34,R.visibility);J=R.playbackRate;if(J!==void 0){var l=new ArrayBuffer(4);(new Float32Array(l))[0]=J;J=(new Uint32Array(l))[0];if(J!==void 0)for(QC(O,285),jX(O,4),l=0;l<4;)O.view.setUint8(O.pos,J&255),J>>=8,O.pos+=1,l+=1}Lk(O,36,R.FS); zS(O,38,R.mediaCapabilities,RRh,3);Lk(O,39,R.vWg);Lk(O,40,R.Wz);Lk(O,44,R.playerState);Yu(O,46,R.n5);Lk(O,48,R.zt);Lk(O,50,R.aG);Lk(O,51,R.W_);Lk(O,54,R.f8);if(R.eW)for(J=0;J>31));hq(O,2,R.message)}; yKs=function(O,R){Lk(O,1,R.clientState);zS(O,2,R.WKQ,Gh0,1)}; FC0=function(O,R){dD(O,1,R.r3q);zS(O,2,R.Dcg,KCf,3);zS(O,3,R.coldStartInfo,yKs,3)}; uBs=function(O,R){Lk(O,1,R.type);dD(O,2,R.value)}; lFA=function(O,R){hq(O,1,R.hl);hq(O,12,R.deviceMake);hq(O,13,R.deviceModel);Lk(O,16,R.clientName);hq(O,17,R.clientVersion);hq(O,18,R.osName);hq(O,19,R.osVersion)}; wbH=function(O,R){hq(O,1,R.name);hq(O,2,R.value)}; IF_=function(O,R){hq(O,1,R.url);if(R.Pr)for(var J=0;J1&&(this.D=O[1]==="2")}; Ix=function(O,R,J,l,u){this.S=O;this.L=R;this.B=J;this.reason=l;this.Wq=u===void 0?0:u}; g.C3=function(O,R,J,l){return new Ix(g.xw[O]||0,g.xw[R]||0,J,l)}; tC=function(O){if(rV&&O.Wq)return!1;var R=g.xw.auto;return O.S===R&&O.L===R}; Z0=function(O){return ox[O.L||O.S]||"auto"}; zRW=function(O,R){R=g.xw[R];return O.S<=R&&(!O.L||O.L>=R)}; Ve=function(O){return"["+O.S+"-"+O.L+", override: "+(O.B+", reason: "+O.reason+"]")}; f3=function(O,R,J){this.videoInfos=O;this.L=R;this.audioTracks=[];if(this.L){O=new Set;J==null||J({ainfolen:this.L.length});R=g.N(this.L);for(var l=R.next();!l.done;l=R.next())if(l=l.value,!l.Ef||O.has(l.Ef.id)){var u=void 0,F=void 0,G=void 0;(G=J)==null||G({atkerr:!!l.Ef,itag:l.itag,xtag:l.L,lang:((u=l.Ef)==null?void 0:u.name)||"",langid:((F=l.Ef)==null?void 0:F.id)||""})}else u=new g.wV(l.id,l.Ef),O.add(l.Ef.id),this.audioTracks.push(u);J==null||J({atklen:this.audioTracks.length})}}; SY=function(){g.p.apply(this,arguments);this.L=null}; ROf=function(O,R,J,l,u,F,G){if(O.L)return O.L;var y={},w=new Set,I={};if(NL(l)){for(var C in l.L)l.L.hasOwnProperty(C)&&(O=l.L[C],I[O.info.Pq]=[O.info]);return I}C=ndL(R,l,y);F&&u({aftsrt:mF(C)});for(var r={},t=g.N(Object.keys(C)),Z=t.next();!Z.done;Z=t.next()){Z=Z.value;for(var V=g.N(C[Z]),m=V.next();!m.done;m=V.next()){m=m.value;var E=m.itag,a=void 0,v=Z+"_"+(((a=m.video)==null?void 0:a.fps)||0);r.hasOwnProperty(v)?r[v]===!0?I[Z].push(m):y[E]=r[v]:(a=E7(R,m,J,l.isLive,w),a!==!0?(G.add(Z),y[E]=a, a==="disablevp9hfr"&&(r[v]="disablevp9hfr")):(I[Z]=I[Z]||[],I[Z].push(m),r[v]=!0))}}F&&u({bfflt:mF(I)});for(var b in I)I.hasOwnProperty(b)&&(l=b,I[l]&&I[l][0].ke()&&(I[l]=I[l],I[l]=cKL(R,I[l],y),I[l]=O8L(I[l],y)));F&&Object.keys(y).length>0&&u({rjr:$w(y)});R=g.N(w.values());for(l=R.next();!l.done;l=R.next())(l=J.N.get(l.value))&&--l.Zw;F&&u({aftflt:mF(I)});O.L=g.HR(I,function(W){return!!W.length}); return O.L}; gwT=function(O,R,J,l,u,F,G,y){y=y===void 0?!1:y;if(R.TR&&G&&G.length>1&&!(R.qe>0||R.V)){for(var w=R.S||!!u,I=w&&R.AT?F:void 0,C=ndL(R,l),r=[],t=[],Z={},V=0;V0&&t&&u&&(C=[G,J],E=u.concat(t).filter(function(a){return a})); if(E.length&&!R.iH){v0(E,C);if(w){w=[];R=g.N(E);for(l=R.next();!l.done;l=R.next())w.push(l.value.itag);F({hbdfmt:w.join(".")})}return sU(new f3(E,O,I))}E=Ccp(R);E=g.rC(E,y);if(!E){if(r[G])return F=r[G],v0(F),sU(new f3(F,O,I));w&&F({novideo:1});return kj()}R.Py&&(E==="1"||E==="1h")&&r[J]&&(G=X_(r[E]),C=X_(r[J]),C>G?E=J:C===G&&r4W(r[J])&&(E=J));E==="9"&&r.h&&X_(r.h)>X_(r["9"])&&(E="h");R.fJ&&l.isLive&&E==="("&&r.H&&X_(r["("])<1440&&(E="H");w&&F({vfmly:Tb(E)});R=r[E];if(!R.length)return w&&F({novfmly:Tb(E)}), kj();v0(R);return sU(new f3(R,O,I))}; lTA=function(O,R){var J=!(!O.m&&!O.M),l=!(!O.mac3&&!O.MAC3),u=!(!O.meac3&&!O.MEAC3);O=!(!O.i&&!O.I);R.m1=O;return J||l||u||O}; r4W=function(O){O=g.N(O);for(var R=O.next();!R.done;R=O.next())if(R=R.value,R.itag&&tVL.has(R.itag))return!0;return!1}; FjA=function(O){O=g.N(O);for(var R=O.next();!R.done;R=O.next())if(R.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; Tb=function(O){switch(O){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return O}}; mF=function(O){var R=[],J;for(J in O)if(O.hasOwnProperty(J)){var l=J;R.push(Tb(l));l=g.N(O[l]);for(var u=l.next();!u.done;u=l.next())R.push(u.value.itag)}return R.join(".")}; i8T=function(O,R,J,l,u,F){var G={},y={};g.BR(R,function(w,I){w=w.filter(function(C){var r=C.itag;if(!C.hp)return y[r]="noenc",!1;if(F.SG&&C.Pq==="(h"&&F.sQ)return y[r]="lichdr",!1;if(!O.D&&C.Pq==="1e")return y[r]="noav1enc",!1;if(C.Pq==="("||C.Pq==="(h"){if(O.B&&J&&J.flavor==="widevine"){var t=C.mimeType+"; experimental=allowed";(t=!!C.hp[J.flavor]&&!!J.L[t])||(y[r]=C.hp[J.flavor]?"unspt":"noflv");return t}if(!$O(O,ML.CRYPTOBLOCKFORMAT)&&!O.N1||O.OQ)return y[r]=O.OQ?"disvp":"vpsub",!1}return J&&C.hp[J.flavor]&& J.L[C.mimeType]?!0:(y[r]=J?C.hp[J.flavor]?"unspt":"noflv":"nosys",!1)}); w.length&&(G[I]=w)}); l&&Object.entries(y).length&&u({rjr:$w(y)});return G}; O8L=function(O,R){var J=Lu(O,function(l,u){return u.video.fps>32?Math.min(l,u.video.width):l},Infinity); J32||l.video.widthO.j)return"max"+O.j;if(O.AR&&R.Pq==="h"&&R.video&&R.video.qualityOrdinal>1080)return"blkhigh264";if(R.Pq==="(h"&&!J.J)return"enchdr";if((l===void 0?0:l)&&Ow(R)&&!O.xS)return"blk51live";if((R.Pq==="MAC3"||R.Pq==="mac3")&&!O.N)return"blkac3";if((R.Pq==="MEAC3"||R.Pq==="meac3")&&!O.D)return"blkeac3";if(R.Pq==="M"||R.Pq==="m")return"blkaac51"; if((R.Pq==="so"||R.Pq==="sa")&&!O.SN)return"blkamb";if(!O.SG&&Z9H(R)&&(!J.D||R.Pq!=="1e"))return"cbc";if(!J.D&&Z9H(R)&&R.Pq==="1e")return"cbcav1";if((R.Pq==="i"||R.Pq==="I")&&!O.w5)return"blkiamf";var F;if(O.Rz&&((F=R.audio)==null?void 0:F.S)===!0)return"blkvbcabr";var G,y;if(O.JR&&(R.Pq==="1"||R.Pq==="1h"||J.D&&R.Pq==="1e")&&((G=R.video)==null?0:G.qualityOrdinal)&&((y=R.video)==null?void 0:y.qualityOrdinal)>O.JR)return"av1cap";if((l=J.N.get(R.Pq))&&l.Zw>0)return u.add(R.Pq),"byerr";var w;if((w=R.video)== null?0:w.fps>32){if(!J.iz&&!$O(J,ML.FRAMERATE))return"capHfr";if(O.Gd&&R.video.qualityOrdinal>=4320)return"blk8khfr";if(dz(R)&&O.E8&&R.hp&&R.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(O.Wq&&R.Wq>O.Wq)return"ratecap";O=owA(J,R);return O!==!0?O:!0}; v0=function(O,R){R=R===void 0?[]:R;g.sC(O,function(J,l){var u=l.Wq-J.Wq;if(!J.ke()||!l.ke())return u;var F=l.video.height*l.video.width-J.video.height*J.video.width;!F&&R&&R.length>0&&(J=R.indexOf(J.Pq)+1,l=R.indexOf(l.Pq)+1,F=J===0||l===0?l||-1:J-l);F||(F=u);return F})}; g.qL=function(O,R){this[K[2]]=O;this[K[54]]=R===void 0?!1:R;this[K[48]]=this[K[15]]=this[K[17]]=K[7];this[K[13]]={};this[K[1]]=K[7]}; s7=function(O){kO(O);return O[K[48]]}; ba=function(O){return O[K[2]]?O[K[2]][K[12]](K[33]):O[K[17]]===K[33]}; Z8f=function(O){kO(O);return g.UC(O[K[13]],function(R){return R!==null})}; W0=function(O){kO(O);var R=decodeURIComponent(O[K[27]](K[59])||K[7])[K[6]](K[30]);return O[K[15]]===K[69]&&R[K[22]]>1&&!!R[1]}; AC=function(O,R){R=R===void 0?!1:R;kO(O);if(O[K[15]]!==K[69]){var J=O[K[4]]();J[K[20]](K[53],K[5]);return J}var l=O[K[88]]();J=new g.lD(l);var u=O[K[27]](K[61]),F=decodeURIComponent(O[K[27]](K[59])||K[7])[K[6]](K[30]);if(u&&F&&F[K[22]]>1&&F[1])return l=J.L,O=l[K[67]](/^[^.]*/,K[7]),g.Fh(J,(l[K[23]](K[41])===0?K[41]:K[46])+u+K[66]+F[1]+O),J=new g.qL(J[K[19]]()),J[K[20]](K[57],K[5]),J;if(R)return J=O[K[4]](),J[K[20]](K[57],K[5]),J;u=J.L[K[28]](K[71]);J.L[K[28]](K[14])?(g.Fh(J,K[56]),l=J[K[19]]()):J.L[K[28]](K[32])? (g.Fh(J,K[44]),l=J[K[19]]()):(J=Fyp(l),JK(J)&&(l=J));J=new g.qL(l);J[K[20]](K[86],K[5]);u&&J[K[20]](K[45],K[78]);return J}; kO=function(O){if(O[K[2]]){if(!JK(O[K[2]])&&!O[K[2]][K[12]](K[33]))throw new g.Ys(K[81],O[K[2]]);var R=g.rE(O[K[2]]);O[K[17]]=R.D;O[K[48]]=R.L+(R.B!=null?K[29]+R.B:K[7]);var J=R.S;if(J[K[12]](K[69]))O[K[15]]=K[69],J=J[K[9]](14);else if(J[K[12]](K[68]))O[K[15]]=K[68],J=J[K[9]](13);else if(J[K[12]](K[42])){var l=J[K[23]](K[55],12),u=J[K[23]](K[55],l+1);l>0&&u>0?(O[K[15]]=J[K[9]](0,u),J=J[K[9]](u+1)):(O[K[15]]=J,J=K[7])}else O[K[15]]=J,J=K[7];l=O[K[13]];O[K[13]]=VVp(J);Object[K[63]](O[K[13]],fTx(R.N.toString())); Object[K[63]](O[K[13]],l);O[K[13]][K[72]]===K[58]&&(delete O[K[13]][K[72]],O[K[15]]+=K[70]);O[K[2]]=K[7];O[K[1]]=K[7];O[K[54]]&&(kO(O),R=O[K[13]][K[47]]||null)&&(R=Syh[0](R),O[K[20]](K[47],R))}}; Nzh=function(O){kO(O);var R=O[K[17]]+(O[K[17]]?K[60]:K[89])+O[K[48]]+O[K[15]];if(Z8f(O)){var J=[];g.BR(O[K[13]],function(l,u){l!==null&&J[K[25]](u+K[24]+l)}); R+=K[37]+J[K[31]](K[26])}return R}; VVp=function(O){O=O[K[6]](K[55]);var R=0;O[0]||R++;for(var J={};R0?mC0(R,l[K[9]](0,u),l[K[9]](u+1)):l&&(R[l]=K[7])}return R}; mC0=function(O,R,J){if(R===K[73]){var l;(l=J[K[23]](K[24]))>=0?(R=K[65]+J[K[9]](0,l),J=J[K[9]](l+1)):(l=J[K[23]](K[62]))>=0&&(R=K[65]+J[K[9]](0,l),J=J[K[9]](l+3))}O[R]=J}; eY=function(O){var R=g.x(O,Ewz)||O[K[83]];O={Ko:!1,ju:K[7],pm:K[7],s:K[7]};if(!R)return O;R=JF(R);O[K[10]]=!0;O[K[80]]=R[K[1]];O[K[36]]=R[K[52]];O[K[21]]=R[K[21]];return O}; P0=function(O,R,J,l,u,F,G,y,w){this.XQ=O;this.startTime=R;this.duration=J;this.ingestionTime=l;this.sourceURL=u;this.ZZ=w;this.endTime=R+J;this.L=G||0;this.range=F||null;this.pending=y||!1;this.ZZ=w||null}; g.p3=function(){this.segments=[];this.L=null;this.S=!0;this.B=""}; DCp=function(O,R){if(R>O.lK())O.segments=[];else{var J=Ct(O.segments,function(l){return l.XQ>=R},O); J>0&&O.segments.splice(0,J)}}; B0=function(O,R,J,l,u){u=u===void 0?!1:u;this.data=O;this.offset=R;this.size=J;this.type=l;this.L=(this.S=u)?0:8;this.dataOffset=this.offset+this.L}; H0=function(O){var R=O.data.getUint8(O.offset+O.L);O.L+=1;return R}; xO=function(O){var R=O.data.getUint16(O.offset+O.L);O.L+=2;return R}; U7=function(O){var R=O.data.getInt32(O.offset+O.L);O.L+=4;return R}; jY=function(O){var R=O.data.getUint32(O.offset+O.L);O.L+=4;return R}; Qe=function(O){var R=O.data;var J=O.offset+O.L;R=R.getUint32(J)*4294967296+R.getUint32(J+4);O.L+=8;return R}; L3=function(O,R){R=R===void 0?NaN:R;if(isNaN(R))var J=O.size;else for(J=O.L;J1?Math.ceil(u*R):Math.floor(u*R))}O.skip(1);J=H0(O)<<16|xO(O);if(J&256){l=J&1;u=J&4;var F=J&512,G=J&1024,y=J&2048;J=jY(O);l&&O.skip(4);u&&O.skip(4);l=(F?4:0)+(G?4:0)+(y?4:0);for(u=0;u1?Math.ceil(G*R):Math.floor(G*R)),O.skip(l)}}}; Jt=function(O){O=new DataView(O.buffer,O.byteOffset,O.byteLength);return(O=g.ON(O,0,1836476516))?g.R6(O):NaN}; WjB=function(O){var R=g.ON(O,0,1937011556);if(!R)return null;R=g9(O,R.dataOffset+8,1635148593)||g9(O,R.dataOffset+8,1635135537);if(!R)return null;var J=g9(O,R.dataOffset+78,1936995172),l=g9(O,R.dataOffset+78,1937126244);if(!l)return null;R=null;if(J)switch(J.skip(4),H0(J)){default:R=0;break;case 1:R=2;break;case 2:R=1;break;case 3:R=255}var u=J=null,F=null;if(l=g9(O,l.dataOffset,1886547818)){var G=g9(O,l.dataOffset,1886546020),y=g9(O,l.dataOffset,2037673328);if(!y&&(y=g9(O,l.dataOffset,1836279920), !y))return null;G&&(G.skip(4),J=U7(G)/65536,F=U7(G)/65536,u=U7(G)/65536);O=aTW(y);O=new DataView(O.buffer,O.byteOffset+8,O.byteLength-8);return new s1h(R,J,F,u,O)}return null}; g9=function(O,R,J){for(;ii(O,R);){var l=li(O,R);if(l.type===J)return l;R+=l.size}return null}; g.ON=function(O,R,J){for(;ii(O,R);){var l=li(O,R);if(l.type===J)return l;R=ui(l.type)?R+8:R+l.size}return null}; g.FT=function(O){if(O.data.getUint8(O.dataOffset)){var R=O.data;O=O.dataOffset+4;R=R.getUint32(O)*4294967296+R.getUint32(O+4)}else R=O.data.getUint32(O.dataOffset+4);return R}; li=function(O,R){var J=O.getUint32(R),l=O.getUint32(R+4);return new B0(O,R,J,l)}; g.R6=function(O){var R=O.data.getUint8(O.dataOffset)?20:12;return O.data.getUint32(O.dataOffset+R)}; A42=function(O){O=new B0(O.data,O.offset,O.size,O.type,O.S);var R=H0(O);O.skip(7);var J=jY(O);if(R===0){R=jY(O);var l=jY(O)}else R=Qe(O),l=Qe(O);O.skip(2);for(var u=xO(O),F=[],G=[],y=0;y122)return!1}return!0}; ui=function(O){return O===1701082227||O===1836019558||O===1836019574||O===1835297121||O===1835626086||O===1937007212||O===1953653094||O===1953653099||O===1836475768}; eOh=function(O){O.skip(4);return{voh:L3(O,0),value:L3(O,0),timescale:jY(O),h1z:jY(O),W5g:jY(O),id:jY(O),Qx:L3(O),offset:O.offset}}; g.Pch=function(O){var R=g9(O,0,1701671783);if(!R)return null;var J=eOh(R),l=J.voh;J=c0(J.Qx);if(O=g9(O,R.offset+R.size,1701671783))if(O=eOh(O),O=c0(O.Qx),J&&O){R=g.N(Object.keys(O));for(var u=R.next();!u.done;u=R.next())u=u.value,J[u]=O[u]}return J?new zb(J,l):null}; G1=function(O,R){for(var J=g9(O,0,R);J;){var l=J;l.type=1936419184;l.data.setUint32(l.offset+4,1936419184);J=g9(O,J.offset+J.size,R)}}; g.KL=function(O,R){for(var J=0,l=[];ii(O,J);){var u=li(O,J);u.type===R&&l.push(u);J=ui(u.type)?J+8:J+u.size}return l}; pd_=function(O,R){var J=g.ON(O,0,1937011556),l=g.ON(O,0,1953654136);if(!J||!l||O.getUint32(J.offset+12)>=2)return null;var u=new DataView(R.buffer,R.byteOffset,R.length),F=g.ON(u,0,1937011556);if(!F)return null;R=u.getUint32(F.dataOffset+8);l=u.getUint32(F.dataOffset+12);if(l!==1701733217&&l!==1701733238)return null;l=new vwL(O.byteLength+R);YO(l,O,0,J.offset+12);l.data.setInt32(l.offset,2);l.offset+=4;YO(l,O,J.offset+16,J.size-16);YO(l,u,u.byteOffset+F.dataOffset+8,R);YO(l,O,J.offset+J.size,O.byteLength- (J.offset+J.size));J=g.N([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(u=J.next();!u.done;u=J.next())u=g.e(g.ON(O,0,u.value)),l.data.setUint32(u.offset,u.size+R);O=g.ON(l.data,0,1953654136);l.data.setUint32(O.offset+16,2);return l.data}; Bzs=function(O){var R=g.ON(O,0,1937011556);if(!R)return null;var J=O.getUint32(R.dataOffset+12);if(J!==1701733217&&J!==1701733238)return null;R=g9(O,R.offset+24+(J===1701733217?28:78),1936289382);if(!R)return null;J=g9(O,R.offset+8,1935894637);if(!J||O.getUint32(J.offset+12)!==1667392371)return null;R=g9(O,R.offset+8,1935894633);if(!R)return null;R=g9(O,R.offset+8,1952804451);if(!R)return null;J=new Uint8Array(16);for(var l=0;l<16;l++)J[l]=O.getInt8(R.offset+16+l);return J}; yN=function(O,R){this.L=O;this.pos=0;this.start=R||0}; w9=function(O){return O.pos>=O.L.byteLength}; o6=function(O,R,J){var l=new yN(J);if(!I6(l,O))return!1;l=CL(l);if(!r9(l,R))return!1;for(O=0;R;)R>>>=8,O++;R=l.start+l.pos;var u=tt(l,!0);l=O+(l.start+l.pos-R)+u;l=l>9?H8h(l-9,8):H8h(l-2,1);O=R-O;J.setUint8(O++,236);for(R=0;RJ;u++)J=J*256+Na(O),l*=128;return R?J-l:J}; VN=function(O){var R=tt(O,!0);O.pos+=R}; j1s=function(O){if(!r9(O,440786851,!0))return null;var R=O.pos;tt(O,!1);var J=tt(O,!0)+O.pos-R;O.pos=R+J;if(!r9(O,408125543,!1))return null;tt(O,!0);if(!r9(O,357149030,!0))return null;var l=O.pos;tt(O,!1);var u=tt(O,!0)+O.pos-l;O.pos=l+u;if(!r9(O,374648427,!0))return null;var F=O.pos;tt(O,!1);var G=tt(O,!0)+O.pos-F,y=new Uint8Array(J+12+u+G),w=new DataView(y.buffer);y.set(new Uint8Array(O.L.buffer,O.L.byteOffset+R,J));w.setUint32(J,408125543);w.setUint32(J+4,33554431);w.setUint32(J+8,4294967295); y.set(new Uint8Array(O.L.buffer,O.L.byteOffset+l,u),J+12);y.set(new Uint8Array(O.L.buffer,O.L.byteOffset+F,G),J+12+u);return y}; mJ=function(O){var R=O.pos;O.pos=0;var J=1E6;I6(O,[408125543,357149030,2807729])&&(J=ZW(O));O.pos=R;return J}; Q1_=function(O,R){var J=O.pos;O.pos=0;if(O.L.getUint8(O.pos)!==160&&!EN(O)||!r9(O,160))return O.pos=J,NaN;tt(O,!0);var l=O.pos;if(!r9(O,161))return O.pos=J,NaN;tt(O,!0);Na(O);var u=Na(O)<<8|Na(O);O.pos=l;if(!r9(O,155))return O.pos=J,NaN;l=ZW(O);O.pos=J;return(u+l)*R/1E9}; EN=function(O){if(!LjT(O)||!r9(O,524531317))return!1;tt(O,!0);return!0}; LjT=function(O){if(O.RT()){if(!r9(O,408125543))return!1;tt(O,!0)}return!0}; I6=function(O,R){for(var J=0;J0){var l=fTx(R.substring(J+1));g.BR(l,function(u,F){this.set(F,u)},O); R=R.substring(0,J)}R=VVp(R);g.BR(R,function(u,F){this.set(F,u)},O)}; dCs=function(O){return O.Aj}; hOx=function(O){var R=O.Aj.Y8(),J=[];g.BR(O.L,function(u,F){J.push(F+"="+u)}); if(!J.length)return R;var l=J.join("&");O=Z8f(O.Aj)?"&":"?";return R+O+l}; a6=function(O,R){var J=new g.qL(R);(R=J.get("req_id"))&&O.set("req_id",R);g.BR(O.L,function(l,u){J["set"](u,null)}); return J}; zO_=function(){this.B=this.S=this.J3=this.timedOut=this.started=this.N=this.L=0}; vs=function(O){O.N=(0,g.Q)();O.started=0;O.timedOut=0;O.J3=0}; XT=function(O,R){var J=O.started+O.J3*4;R&&(J+=O.S);J=Math.max(0,J-3);return Math.pow(1.6,J)}; T1=function(O,R){O[R]||(O[R]=new zO_);return O[R]}; $V=function(O){this.W=this.J=this.D=this.B=0;this.V=this.j=!1;this.L=O;this.S=O.clone()}; nwh=function(O,R,J){if(ba(O.L))return!1;var l=T1(J,s7(O.L));if(l.timedOut<1&&l.J3<1)return!1;l=l.timedOut+l.J3;O=Ma(O,R);J=T1(J,s7(O));return J.timedOut+J.J3+01?R=R.oa:(J=T1(J,kV(O,O.o1(R,J),R)),R=Math.max(O.D,J.timedOut)+R.Tz*(O.B-O.D)+.25*O.J,R=R>3?1E3*Math.pow(1.6,R-3):0);return R===0?!0:O.W+R<(0,g.Q)()}; c4T=function(O,R,J){O.L.set(R,J);O.S.set(R,J);O.N&&O.N.set(R,J)}; OmW=function(O,R,J,l,u){++O.B;R&&++O.D;s7(J.Aj).startsWith("redirector.")&&(O.L=O.S.clone(),delete O.N,l.JV&&delete u[s7(O.L)])}; bi=function(O){return O?(O.itag||"")+";"+(O.lmt||0)+";"+(O.xtags||""):""}; Ws=function(O,R,J,l){this.initRange=J;this.indexRange=l;this.L=null;this.B=!1;this.j=0;this.N=this.Kk=this.S=null;this.info=R;this.By=new $V(O)}; At=function(O,R){this.start=O;this.end=R;this.length=R-O+1}; e3=function(O){O=O.split("-");var R=Number(O[0]),J=Number(O[1]);if(!isNaN(R)&&!isNaN(J)&&O.length===2&&(O=new At(R,J),!isNaN(O.start)&&!isNaN(O.end)&&!isNaN(O.length)&&O.length>0))return O}; Ps=function(O,R){return new At(O,O+R-1)}; Rtp=function(O){return O.end==null?{start:String(O.start)}:{start:String(O.start),end:String(O.end)}}; pL=function(O){if(!O)return new At(0,0);var R=Number(O.start);O=Number(O.end);if(!isNaN(R)&&!isNaN(O)&&(R=new At(R,O),R.length>0))return R}; Bs=function(O,R,J,l,u,F,G,y,w,I,C,r){l=l===void 0?"":l;this.type=O;this.L=R;this.range=J;this.source=l;this.TW=C;this.clipId=r===void 0?"":r;this.W=[];this.V="";this.XQ=-1;this.SN=this.Hq=0;this.V=l;this.XQ=u>=0?u:-1;this.startTime=F||0;this.duration=G||0;this.S=y||0;this.B=w>=0?w:this.range?this.range.length:NaN;this.D=this.range?this.S+this.B===this.range.length:I===void 0?!!this.B:I;this.range?(this.N=this.startTime+this.duration*this.S/this.range.length,this.J=this.duration*this.B/this.range.length, this.j=this.N+this.J):J1B(this)}; J1B=function(O){gqB?(O.N=O.startTime+Math.min(O.duration*O.S/O.L.info.Wq,O.duration),O.J=Math.min(O.duration,O.duration*O.B/O.L.info.Wq),O.j=Math.min(O.N+O.J,O.startTime+O.duration)):(O.N=O.startTime,O.J=O.duration,O.j=O.N+O.J)}; imh=function(O,R,J){var l=!(!R||R.L!==O.L||R.type!==O.type||R.XQ!==O.XQ);return J?l&&!!R&&(O.range&&R.range?R.range.end===O.range.end:R.range===O.range)&&R.S+R.B===O.S+O.B:l}; Hs=function(O){return O.type===1||O.type===2}; xV=function(O){return O.type===3||O.type===6}; UN=function(O,R){return O.L===R.L?O.range&&R.range?O.range.start+O.S+O.B===R.range.start+R.S:O.XQ===R.XQ?O.S+O.B===R.S:O.XQ+1===R.XQ&&R.S===0&&O.D:!1}; u32=function(O,R){return O.XQ!==R.XQ&&R.XQ!==O.XQ+1||O.type!==R.type?!1:UN(O,R)?!0:Math.abs(O.N-R.N)<=1E-6&&O.XQ===R.XQ?!1:lG_(O,R)}; lG_=function(O,R){return UN(O,R)||Math.abs(O.j-R.N)<=1E-6||O.XQ+1===R.XQ&&R.S===0&&O.D?!0:!1}; j3=function(O){return O.XQ+(O.D?1:0)}; FiA=function(O){O.length===1||g.QX(O,function(J){return!!J.range}); for(var R=1;R=R.range.start+R.S&&O.range.start+O.S+O.B<=R.range.start+R.S+R.B:O.XQ===R.XQ&&O.S>=R.S&&(O.S+O.B<=R.S+R.B||R.D)}; r1h=function(O,R){return O.L!==R.L?!1:O.type===4&&R.type===3&&O.L.Yo()?(O=O.L.F6(O),RT(O,function(J){return r1h(J,R)})):O.XQ===R.XQ&&!!R.B&&R.S+R.B>O.S&&R.S+R.B<=O.S+O.B}; LL=function(O,R){var J=R.XQ;O.V="updateWithSegmentInfo";O.XQ=J;if(O.startTime!==R.startTime||O.duration!==R.duration)O.startTime=R.startTime+O.Hq,O.duration=R.duration,J1B(O)}; YV=function(O,R){var J=this;this.CJ=O;this.N=this.L=null;this.D=this.pW=NaN;this.o1=this.requestId=null;this.nG={gaS:function(){return J.range}}; this.By=O[0].L.By;this.S=R||"";this.CJ[0].range&&this.CJ[0].B>0&&(G4H(O)?(this.range=FiA(O),this.B=this.range.length):(this.range=this.CJ[this.CJ.length-1].range,this.B=KiA(O)))}; d9=function(O){return!Hs(O.CJ[O.CJ.length-1])}; ht=function(O){return O.CJ[O.CJ.length-1].type===4}; g.z1=function(O,R,J){J=O.o1===null?O.By.o1(R,J,O.CJ[0].type):O.o1;if(O.L){R=J?AC(O.L,R.uZ):O.L;var l=new DW(R);l.get("alr")||l.set("alr","yes");O.S&&Yy0(l,O.S)}else/http[s]?:\/\//.test(O.S)?l=new DW(new g.qL(O.S)):(l=qa(O.By,J,R),O.S&&Yy0(l,O.S));(R=O.range)?l.set("range",R.toString()):O.CJ[0].L.In()&&O.CJ.length===1&&O.CJ[0].S&&l.set("range",O.CJ[0].S+"-");O.requestId&&l.set("req_id",O.requestId);isNaN(O.pW)||l.set("headm",O.pW.toString());isNaN(O.D)||l.set("mffa",O.D+"ms");O.urlParams&&g.BR(O.urlParams, function(u,F){l.set(F,u)}); return l}; teB=function(O){if(O.range)return O.B;O=O.CJ[0];return Math.round(O.J*O.L.info.Wq)}; oqf=function(O,R){return Math.max(0,O.CJ[0].N-R)}; nL=function(O,R,J,l,u,F){F=F===void 0?0:F;Ws.call(this,O,R,l,void 0);this.D=J;this.KE=F;this.index=u||new g.p3}; Zmp=function(O,R,J,l,u){this.XQ=O;this.startSecs=R;this.d2=J;this.L=l||NaN;this.S=u||NaN}; cs=function(O,R,J){for(;O;O=O.parentNode)if(O.attributes&&(!J||O.nodeName===J)){var l=O.getAttribute(R);if(l)return l}return""}; Oe=function(O,R){for(;O;O=O.parentNode){var J=O.getElementsByTagName(R);if(J.length>0)return J[0]}return null}; Ve_=function(O){if(!O)return 0;var R=O.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return R?(Number(R[2])|0)*3600+(Number(R[4])|0)*60+(Number(R[6])|0):Number(O)|0}; fGH=function(O){return O.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?O+"Z":O}; R3=function(){this.L=[];this.S=null;this.j=0;this.B=[];this.D=!1;this.J="";this.N=-1}; Swp=function(O){var R=O.B;O.B=[];return R}; N3s=function(){this.N=[];this.L=null;this.S={};this.B={}}; aGf=function(O,R){var J=[];R=Array.from(R.getElementsByTagName("SegmentTimeline"));R=g.N(R);for(var l=R.next();!l.done;l=R.next()){l=l.value;var u=l.parentNode.parentNode,F=null;u.nodeName==="Period"?F=m8x(O):u.nodeName==="AdaptationSet"?(u=u.getAttribute("id")||u.getAttribute("mimetype")||"",F=Eqp(O,u)):u.nodeName==="Representation"&&(u=u.getAttribute("id")||"",F=D8W(O,u));if(F==null)return;F.update(l);g.Do(J,Swp(F))}g.Do(O.N,J);$0z(O.N,function(G){return G.startSecs*1E3+G.L})}; vqx=function(O){O.L&&(O.L.L=[]);g.BR(O.S,function(R){R.L=[]}); g.BR(O.B,function(R){R.L=[]})}; m8x=function(O){O.L||(O.L=new R3);return O.L}; Eqp=function(O,R){O.S[R]||(O.S[R]=new R3);return O.S[R]}; D8W=function(O,R){O.B[R]||(O.B[R]=new R3);return O.B[R]}; gu=function(O){var R=O===void 0?{}:O;O=R.KE===void 0?0:R.KE;var J=R.Qa===void 0?!1:R.Qa;var l=R.PA===void 0?0:R.PA;var u=R.g2===void 0?0:R.g2;var F=R.hj===void 0?Infinity:R.hj;var G=R.Qq===void 0?0:R.Qq;var y=R.q5===void 0?!1:R.q5;R=R.kE===void 0?!1:R.kE;g.p3.call(this);this.It=this.i7=-1;this.vH=O;this.PA=l;this.Qa=J;this.g2=u;this.hj=F;this.Qq=G;((this.q5=y)||isFinite(F)&&this.hj>0)&&J&&Jf&&(this.S=!1,this.B="postLive");this.kE=R}; is=function(O,R){return kM(O.segments,function(J){return R-J.XQ})}; ls=function(O,R,J){J=J===void 0?{}:J;nL.call(this,O,R,"",void 0,void 0,J.KE||0);this.index=new gu(J)}; us=function(O,R,J){Ws.call(this,O,R);this.D=J;O=this.index=new g.p3;O.S=!1;O.B="d"}; XLH=function(O,R,J){var l=O.index.FZ(R),u=O.index.getStartTime(R),F=O.index.getDuration(R);J?F=J=0:J=O.info.Wq*F;return new YV([new Bs(3,O,void 0,"otfCreateRequestInfoForSegment",R,u,F,0,J)],l)}; T3p=function(O,R){if(!O.index.isLoaded()){var J=[],l=R.N;R=R.D.split(",").filter(function(C){return C.length>0}); for(var u=0,F=0,G=0,y=/^(\d+)/,w=/r=(\d+)/,I=0;Il)return null}else if(J&&(J=O.L,l=R.L,J=!(l.Sz.length?aOf(J,l.Sz[0]):1)),J)return null;J=new Bs(O.info.type,O.info.L,O.info.range,O.info.V,O.info.XQ,O.info.startTime,O.info.duration,O.info.S,O.info.B,O.info.D,O.info.TW,O.info.clipId);l=R.info;J.B+=l.B;J.range&&(J.J+=l.J);J.j=l.j;J.D=l.D;l=new SX;NF(l,O.L);NF(l,R.L);J=new FS(J,l);J.S= R.S||O.S;J.B=O.B!==-1?O.B:R.B;J.N=O.N!==-1?O.N:R.N;return J}; g.Kp=function(O){g.Rg(O.info.L.info)||O.info.L.info.WY();if(O.B!==-1)return O.B;if(O.S&&$Cs(O.S))return O.B=$Cs(O.S),O.B;if(g.Rg(O.info.L.info)){var R=O.SZ();for(var J=O.info.L.L,l=NaN,u=NaN,F=0;ii(R,F);){var G=li(R,F);G.type===1936286840?u=G.data.getUint32(G.dataOffset+8):G.type===1836476516?u=g.R6(G):G.type===1952867444&&isNaN(l)&&(l=g.FT(G));F=ui(G.type)?F+8:F+G.size}!u&&J&&(u=Jt(J));R=l/u}else R=new yN(O.SZ()),J=O.D?R:new yN(new DataView(O.info.L.L.buffer)),l=mJ(J),J=R.pos,R.pos=0,EN(R)?r9(R, 231)?(l=ZW(R)*l/1E9,R.pos=J,R=l):(R.pos=J,R=NaN):(R.pos=J,R=NaN);O.B=R||O.info.N;return O.B}; qwx=function(O,R){O.timestampOffset>0&&(R-=O.timestampOffset);var J=g.Kp(O)+R;MeT(O,J);O.timestampOffset=R}; MeT=function(O,R){g.Rg(O.info.L.info)||O.info.L.info.WY();O.B=R;if(g.Rg(O.info.L.info)){var J=O.SZ();O=O.info.L.L;for(var l=NaN,u=NaN,F=0;ii(J,F);){var G=li(J,F);isNaN(l)&&(G.type===1936286840?l=G.data.getUint32(G.dataOffset+8):G.type===1836476516&&(l=g.R6(G)));if(G.type===1952867444){!l&&O&&(l=Jt(O));var y=g.FT(G);isNaN(u)&&(u=Math.round(R*l)-y);var w=G;y+=u;if(w.data.getUint8(w.dataOffset)){var I=w.data;w=w.dataOffset+4;I.setUint32(w,Math.floor(y/4294967296));I.setUint32(w+4,y&4294967295)}else w.data.setUint32(w.dataOffset+ 4,y)}F=ui(G.type)?F+8:F+G.size}return!0}J=new yN(O.SZ());O=O.D?J:new yN(new DataView(O.info.L.L.buffer));l=mJ(O);O=J.pos;J.pos=0;if(EN(J)&&r9(J,231))if(u=tt(J,!0),R=Math.floor(R*1E9/l),Math.ceil(Math.log(R)/Math.log(2)/8)>u)R=!1;else{for(l=u-1;l>=0;l--)J.L.setUint8(J.pos+l,R&255),R>>>=8;J.pos=O;R=!0}else R=!1;return R}; wu=function(O,R){R=R===void 0?!1:R;var J=yP(O);O=R?0:O.info.J;return J||O}; yP=function(O){g.Rg(O.info.L.info)||O.info.L.info.WY();if(O.S&&O.info.type===6)return O.S.KE;if(g.Rg(O.info.L.info)){var R=O.SZ();var J=0;R=g.KL(R,1936286840);R=g.N(R);for(var l=R.next();!l.done;l=R.next())l=A42(l.value),J+=l.Z9[0]/l.timescale;J=J||NaN;if(!(J>=0))a:{J=O.SZ();R=O.info.L.L;for(var u=l=0,F=0;ii(J,l);){var G=li(J,l);if(G.type===1836476516)u=g.R6(G);else if(G.type===1836019558){!u&&R&&(u=Jt(R));if(!u){J=NaN;break a}var y=g.e(g9(G.data,G.dataOffset,1953653094)),w=y;y=u;var I=g.e(g9(w.data, w.dataOffset,1952868452));w=g.e(g9(w.data,w.dataOffset,1953658222));var C=U7(I);U7(I);C&2&&U7(I);I=C&8?U7(I):0;var r=U7(w),t=r&1;C=r&4;var Z=r&256,V=r&512,m=r&1024;r&=2048;var E=jY(w);t&&U7(w);C&&U7(w);for(var a=t=0;a2048?"":R.indexOf("https://")===0?R:""}; ZQ=function(O,R,J){R.match(U8B);return O(R,J).then(function(l){var u=g.x8A(l.xhr);return u?ZQ(O,u,J):l.xhr})}; NO=function(O,R,J){O=O===void 0?"":O;R=R===void 0?null:R;J=J===void 0?!1:J;g.y8.call(this);var l=this;this.sourceUrl=O;this.isLivePlayback=J;this.AR=this.duration=0;this.isPremiere=this.q5=this.N=this.isLiveHeadPlayable=this.isLive=this.S=!1;this.hj=this.g2=0;this.isOtf=this.vy=!1;this.JR=(0,g.Q)();this.SN=Infinity;this.L={};this.B=new Map;this.state=this.rS=0;this.timeline=null;this.isManifestless=!1;this.OQ=[];this.j=null;this.iz=0;this.D="";this.xS=NaN;this.N1=this.AT=this.timestampOffset=this.J= 0;this.oa=this.k5=NaN;this.zJ=0;this.Gd=this.W=!1;this.Qh=[];this.Iu={};this.Hq=NaN;this.nG={qiz:function(y){VP(l,y)}}; var u;this.Td=(u=R)==null?void 0:u.Vh("html5_use_network_error_code_enums");jgp=!!R&&R.Vh("html5_modern_vp9_mime_type");var F;fp=!((F=R)==null||!F.Vh("html5_enable_flush_during_seek"))&&g.Q3();var G;SQ=!((G=R)==null||!G.Vh("html5_enable_reset_audio_decoder"))&&g.Q3()}; Qg0=function(O){return g.UC(O.L,function(R){return!!R.info.video&&R.info.video.qualityOrdinal>=2160})}; ITx=function(O){return g.UC(O.L,function(R){return!!R.info.video&&R.info.video.isHdr()})}; D0=function(O){return g.UC(O.L,function(R){return!!R.info.hp})}; g.LiT=function(O){return g.UC(O.L,function(R){return uB(R.info.mimeType)})}; Yw0=function(O){return g.UC(O.L,function(R){return R.info.video?R.info.video.projectionType==="EQUIRECTANGULAR":!1})}; d8s=function(O){return g.UC(O.L,function(R){return R.info.video?R.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; hts=function(O){return g.UC(O.L,function(R){return R.info.video?R.info.video.projectionType==="MESH":!1})}; zt2=function(O){return g.UC(O.L,function(R){return R.info.video?R.info.video.stereoLayout===1:!1})}; nqL=function(O){return bxH(O.L,function(R){return R.info.video?R.Ln():!0})}; NL=function(O){return g.UC(O.L,function(R){return ba(R.By.L)})}; VP=function(O,R){O.L[R.info.id]=R;O.B.set(bi(g.g3(R.info,O.vy)),R)}; c1s=function(O,R){return bi({itag:R.itag,lmt:O.vy?0:R.lmt||0,xtags:R.xtags})}; DQ=function(O,R,J){J=J===void 0?0:J;var l=O.mimeType||"",u=O.itag;var F=O.xtags;u=u?u.toString():"";F&&(u+=";"+F);F=u;if(lB(l)){var G=O.width||640;u=O.height||360;var y=O.fps,w=O.qualityLabel,I=O.colorInfo,C=O.projectionType,r;O.stereoLayout&&(r=OXW[O.stereoLayout]);var t=B32(O)||void 0;if(I==null?0:I.primaries)var Z=R00[I.primaries]||void 0;G=new Uy(G,u,y,C,r,void 0,w,t,Z);l=m7(l,G,L8[O.itag||""]);fp&&(l+="; enableflushduringseek=true");SQ&&(l+="; enableresetaudiodecoder=true")}var V;if(iB(l)){var m= O.audioSampleRate;r=O.audioTrack;m=new Bd(m?+m:void 0,O.audioChannels,O.spatialAudioType,O.isDrc,O.loudnessDb,O.trackAbsoluteLoudnessLkfs,O.audioQuality||"AUDIO_QUALITY_UNKNOWN",O.isVb);r&&(Z=r.displayName,u=r.id,r=r.audioIsDefault,Z&&(V=new g.o3(Z,u||"",!!r)))}var E;O.captionTrack&&(w=O.captionTrack,r=w.displayName,Z=w.vssId,u=w.languageCode,y=w.kind,w=w.id,r&&Z&&u&&(E=new PBH(r,Z,u,y,O.xtags,w)));r=Number(O.bitrate)/8;Z=Number(O.contentLength);u=Number(O.lastModified);w=O.drmFamilies;y=O.type;J= J&&Z?Z/J:0;O=Number(O.approxDurationMs);if(R&&w){var a={};w=g.N(w);for(I=w.next();!I.done;I=w.next())(I=Ee[I.value])&&(a[I]=R[I])}return new Yw(F,l,{audio:m,video:G,Ef:V,hp:a,Wq:r,DP:J,contentLength:Z,lastModified:u,captionTrack:E,streamType:y,approxDurationMs:O})}; a3=function(O,R,J){J=J===void 0?0:J;var l=O.type;var u=O.itag;var F=O.xtags;F&&(u=O.itag+";"+F);if(lB(l)){var G=(O.size||"640x360").split("x");G=new Uy(+G[0],+G[1],+O.fps,O.projection_type,+O.stereo_layout,void 0,O.quality_label,O.eotf,O.primaries);l=m7(l,G,L8[O.itag]);fp&&(l+="; enableflushduringseek=true");SQ&&(l+="; enableresetaudiodecoder=true")}var y;if(iB(l)){var w=new Bd(+O.audio_sample_rate||void 0,+O.audio_channels||0,O.spatial_audio_type,!!O.drc);O.name&&(y=new g.o3(O.name,O.audio_track_id, O.isDefault==="1"))}var I;O.caption_display_name&&O.caption_vss_id&&O.caption_language_code&&(I=new PBH(O.caption_display_name,O.caption_vss_id,O.caption_language_code,O.caption_kind,O.xtags,O.caption_id));F=Number(O.bitrate)/8;var C=Number(O.clen),r=Number(O.lmt);J=J&&C?C/J:0;if(R&&O.drm_families){var t={};for(var Z=g.N(O.drm_families.split(",")),V=Z.next();!V.done;V=Z.next())V=V.value,t[V]=R[V]}return new Yw(u,l,{audio:w,video:G,Ef:y,hp:t,Wq:F,DP:J,contentLength:C,lastModified:r,captionTrack:I, streamType:O.stream_type,approxDurationMs:Number(O.approx_duration_ms)})}; Jw0=function(O){return RT(O,function(R){return"FORMAT_STREAM_TYPE_OTF"===R.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; gzL=function(O){return RT(O,function(R){return"FORMAT_STREAM_TYPE_OTF"===R.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; iXH=function(O,R){return O.timeline?vR(O.timeline.N,R):O.OQ.length?vR(O.OQ,R):[]}; vm=function(O,R,J){R=R===void 0?"":R;J=J===void 0?"":J;O=new g.qL(O,!0);O.set("alr","yes");J&&(J=sqT(decodeURIComponent(J)),O[K[20]](R,encodeURIComponent(J)));return O}; GPL=function(O,R){var J=cs(R,"id");J=J.replace(":",";");var l=cs(R,"mimeType"),u=cs(R,"codecs");l=u?l+'; codecs="'+u+'"':l;u=Number(cs(R,"bandwidth"))/8;var F=Number(Oe(R,"BaseURL").getAttribute(O.D+":contentLength")),G=O.duration&&F?F/O.duration:0;if(lB(l)){var y=Number(cs(R,"width"));var w=Number(cs(R,"height")),I=Number(cs(R,"frameRate")),C=lXh(cs(R,O.D+":projectionType"));a:switch(cs(R,O.D+":stereoLayout")){case "layout_left_right":var r=1;break a;case "layout_top_bottom":r=2;break a;default:r= 0}y=new Uy(y,w,I,C,r)}if(iB(l)){var t=Number(cs(R,"audioSamplingRate"));var Z=Number(cs(R.getElementsByTagName("AudioChannelConfiguration")[0],"value"));w=uLW(cs(R,O.D+":spatialAudioType"));t=new Bd(t,Z,w);a:{Z=cs(R,"lang")||"und";if(w=Oe(R,"Role"))if(C=cs(w,"value")||"",g.YM(FwT,C)){w=Z+"."+FwT[C];I=C==="main";O=cs(R,O.D+":langName")||Z+" - "+C;Z=new g.o3(O,w,I);break a}Z=void 0}}if(R=Oe(R,"ContentProtection"))if(R.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var V={};for(R= R.firstChild;R!=null;R=R.nextSibling)R instanceof Element&&/SystemURL/.test(R.nodeName)&&(O=R.getAttribute("type"),w=R.textContent,O&&w&&(V[O]=w.trim()))}else V=void 0;return new Yw(J,l,{audio:t,video:y,Ef:Z,hp:V,Wq:u,DP:G,contentLength:F})}; lXh=function(O){switch(O){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; uLW=function(O){switch(O){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"}}; ywH=function(O,R){R=R===void 0?"":R;O.state=1;O.JR=(0,g.Q)();return HmH(R||O.sourceUrl).then(function(J){if(!O.jN()){O.rS=J.status;J=J.responseText;var l=new DOMParser;J=CI(l,$bB(J),"text/xml").getElementsByTagName("MPD")[0];O.SN=Ve_(cs(J,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(J.attributes){l=g.N(J.attributes);for(var u=l.next();!u.done;u=l.next())if(u=u.value,u.value==="http://youtube.com/yt/2012/10/10"){l=u.name.split(":")[1];break b}}l=""}O.D=l;O.isLive=O.SN=O.SN}; IXf=function(O){O.j&&O.j.stop()}; Kw_=function(O){var R=O.SN;isFinite(R)&&(XS(O)?O.refresh():(R=Math.max(0,O.JR+R-(0,g.Q)()),O.j||(O.j=new g.zR(O.refresh,R,O),g.H(O,O.j)),O.j.start(R)))}; CyB=function(O){O=O.L;for(var R in O){var J=O[R].index;if(J.isLoaded())return J.lK()+1}return 0}; TG=function(O){return O.AT?O.AT-(O.J||O.timestampOffset):0}; $2=function(O){return O.N1?O.N1-(O.J||O.timestampOffset):0}; MO=function(O){if(!isNaN(O.xS))return O.xS;var R=O.L,J;for(J in R){var l=R[J].index;if(l.isLoaded()&&!uB(R[J].info.mimeType)){R=0;for(J=l.U$();J<=l.lK();J++)R+=l.getDuration(J);R/=l.vl();R=Math.round(R/.5)*.5;l.vl()>10&&(O.xS=R);return R}if(O.isLive&&(l=R[J],l.KE))return l.KE}return NaN}; rws=function(O,R){O=AsT(O.L,function(l){return l.index.isLoaded()}); if(!O)return NaN;O=O.index;var J=O.F8(R);return O.getStartTime(J)===R?R:J=0&&u.segments.splice(F,1)}}}; ozL=function(O){for(var R in O.L)uB(O.L[R].info.mimeType)||DCp(O.L[R].index,Infinity)}; se=function(O,R,J){for(var l in O.L){var u=O.L[l].index,F=R,G=J;u.Qa&&(F&&(u.i7=Math.max(u.i7,F)),G&&(u.It=Math.max(u.It||0,G)))}J&&(O.Hq=J/1E3)}; ZXp=function(O){O.N1=0;O.AT=0;O.zJ=0}; bs=function(O){return O.Gd&&O.isManifestless?O.isLiveHeadPlayable:O.isLive}; m7=function(O,R,J){Wm===null&&(Wm=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(jgp&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Wm||J!=="9"&&J!=="("?Wm||J!=="9h"&&J!=="(h"||(O='video/webm; codecs="vp9.2"'):O='video/webm; codecs="vp9"',O;if(!Wm&&!Af||O!=='video/webm; codecs="vp9"'&&O!=='video/webm; codecs="vp9.2"')return O; J="00";var l="08",u="01",F="01",G="01";O==='video/webm; codecs="vp9.2"'&&(J="02",l="10",R.primaries==="bt2020"&&(G=u="09"),R.L==="smpte2084"&&(F="16"),R.L==="arib-std-b67"&&(F="18"));return'video/webm; codecs="'+["vp09",J,"51",l,"01",u,F,G,"00"].join(".")+'"'}; Pm=function(O,R,J){O=""+O+(R>49?"p60":R>32?"p48":"");R=hU()[O];if(R!=null&&R>0)return R;R=eQ.get(O);if(R!=null&&R>0)return R;J=J==null?void 0:J.get(O);return J!=null&&J>0?J:8192}; V22=function(O){this.bz=O;this.zJ=this.iH=this.N1=this.D=this.N=this.Td=this.Iu=this.SN=!1;this.J=this.j=0;this.AR=!1;this.Hq=!0;this.Gd=!1;this.qe=0;this.zz=this.OQ=!1;this.Py=!0;this.Qh=this.xS=!1;this.L={};this.Rz=this.mM=this.disableAv1=this.sQ=this.m1=this.KJ=this.fJ=this.S=this.V=!1;this.CG=this.bz.Z("html5_disable_aac_preference");this.d5=Infinity;this.iz=0;this.AT=this.bz.DA();this.SG=this.bz.experiments.Vh("html5_enable_vp9_fairplay");this.vY=this.bz.Z("html5_force_av1_for_testing");this.JR= g.tB(this.bz.experiments,"html5_av1_ordinal_cap");this.E8=this.bz.Z("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.TR=this.bz.Z("html5_account_onesie_format_selection_during_format_filter");this.Wq=g.tB(this.bz.experiments,"html5_max_byterate");this.w5=this.bz.Z("html5_enable_iamf_audio");this.Jo=this.bz.experiments.Vh("html5_allow_capability_merge");this.Y9=this.bz.Z("html5_enable_encrypted_av1")}; Ccp=function(O){if(O.Iu)return["f"];if(g.UU("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var R=["9h","9","h","8"];O.Y9&&R.push("1e");R=R.concat(["(h","(","H","*"]);O.OQ&&(R.unshift("1"),R.unshift("1h"));O.iH&&R.unshift("h");O.W&&(R=(fXW[O.W]||[O.W]).concat(R));return R}; usH=function(O){var R=["o","a","A"];O.iz===1&&(O.N&&(R=["mac3","MAC3"].concat(R)),O.D&&(R=["meac3","MEAC3"].concat(R)),O.w5&&(R=["i","I"].concat(R)));O.SN&&(R=["so","sa"].concat(R));!O.zJ||O.N1||O.B||O.CG||R.unshift("a");O.B&&(R=(fXW[O.B]||[O.B]).concat(R));return R}; pp=function(O,R,J,l){R=R===void 0?{}:R;if(l===void 0?0:l)return R.disabled=1,0;if($O(O.D,ML.AV1_CODECS)&&$O(O.D,ML.HEIGHT)&&$O(O.D,ML.BITRATE))return R.isCapabilityUsable=1,8192;try{var u=H2h();if(u)return R.localPref=u}catch(y){}l=1080;u=navigator.hardwareConcurrency;u<=2&&(l=480);R.coreCount=u;if(u=g.tB(O.experiments,"html5_default_av1_threshold"))l=R["default"]=u;!O.Z("html5_disable_av1_arm_check")&&CDh()&&(R.isArm=1,l=240);if(O=O.D.Hq)R.mcap=O,l=Math.max(l,O);if(J){var F,G;if(O=(F=J.videoInfos.find(function(y){return n8(y)}))== null?void 0:(G=F.S)==null?void 0:G.powerEfficient)l=8192,R.isEfficient=1; J=J.videoInfos[0].video;F=Math.min(Pm("1",J.fps),Pm("1",30));R.perfCap=F;l=Math.min(l,F);J.isHdr()&&!O&&(R.hdr=1,l*=.75)}else J=Pm("1",30),R.perfCap30=J,l=Math.min(l,J),J=Pm("1",60),R.perfCap60=J,l=Math.min(l,J);return R.av1Threshold=l}; Bm=function(O,R,J,l){this.flavor=O;this.keySystem=R;this.S=J;this.experiments=l;this.L={};this.Gd=this.keySystemAccess=null;this.OL=this.by=-1;this.S5=null;this.B=!!l&&l.Vh("edge_nonprefixed_eme");l&&l.Vh("html5_enable_vp9_fairplay")}; x2=function(O){return O.B?!1:!O.keySystemAccess&&!!Hm()&&O.keySystem==="com.microsoft.playready"}; Ue=function(O){return O.keySystem==="com.microsoft.playready"}; jQ=function(O){return!O.keySystemAccess&&!!Hm()&&O.keySystem==="com.apple.fps.1_0"}; QP=function(O){return O.keySystem==="com.youtube.fairplay"}; Lp=function(O){return O.keySystem==="com.youtube.fairplay.sbdl"}; g.Y2=function(O){return O.flavor==="fairplay"}; Hm=function(){var O=window,R=O.MSMediaKeys;d6()&&!R&&(R=O.WebKitMediaKeys);return R&&R.isTypeSupported?R:null}; hf=function(O){return navigator.requestMediaKeySystemAccess?g.Wd&&!g.Q3()?v4("45"):g.dj||g.t3?O.Vh("edge_nonprefixed_eme"):g.du?v4("47"):g.N$&&O.Vh("html5_enable_safari_fairplay")?!1:!0:!1}; SJB=function(O,R,J,l){var u=L_(),F=(J=u||J&&d6())?["com.youtube.fairplay"]:["com.widevine.alpha"];R&&F.unshift("com.youtube.widevine.l3");u&&l&&F.unshift("com.youtube.fairplay.sbdl");return J?F:O?[].concat(g.X(F),g.X(zG.playready)):[].concat(g.X(zG.playready),g.X(F))}; np=function(O,R,J,l,u){l=l===void 0?!1:l;g.p.call(this);this.bz=R;this.useCobaltWidevine=l;this.nJ=u;this.S=[];this.B={};this.L={};this.callback=null;this.D=!1;this.N=[];this.initialize(O,!J)}; m4B=function(O,R){O.callback=R;O.N=[];hf(O.bz.experiments)?cm(O):NcL(O)}; cm=function(O){if(!O.jN())if(O.S.length===0)O.callback(O.N);else{var R=O.S[0],J=O.B[R],l=Ezs(O,J);if(OS&&OS.keySystem===R&&OS.uU1===JSON.stringify(l))O.nJ("remksa",{re:!0}),D4s(O,J,OS.keySystemAccess);else{var u,F;O.nJ("remksa",{re:!1,ok:(F=(u=OS)==null?void 0:u.keySystem)!=null?F:""});OS=void 0;navigator.requestMediaKeySystemAccess(R,l).then(Mh(function(G){D4s(O,J,G,l)}),Mh(function(){O.D=!O.D&&O.B[O.S[0]].flavor==="widevine"; O.D||O.S.shift();cm(O)}))}}}; D4s=function(O,R,J,l){if(!O.jN()){l&&(OS={keySystem:R.keySystem,keySystemAccess:J,uU1:JSON.stringify(l)});R.keySystemAccess=J;if(Ue(R)){J=sy();l=g.N(Object.keys(O.L[R.flavor]));for(var u=l.next();!u.done;u=l.next())u=u.value,R.L[u]=!!J.canPlayType(u)}else{J=R.keySystemAccess.getConfiguration();if(J.audioCapabilities)for(l=g.N(J.audioCapabilities),u=l.next();!u.done;u=l.next())aXs(O,R,u.value);if(J.videoCapabilities)for(J=g.N(J.videoCapabilities),l=J.next();!l.done;l=J.next())aXs(O,R,l.value)}O.N.push(R); O.useCobaltWidevine||O.Z("html5_enable_vp9_fairplay")&&Lp(R)?(O.S.shift(),cm(O)):O.callback(O.N)}}; aXs=function(O,R,J){O.Z("log_robustness_for_drm")?R.L[J.contentType]=J.robustness||!0:R.L[J.contentType]=!0}; Ezs=function(O,R){var J={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(O.Z("html5_enable_vp9_fairplay")&&QP(R))return J.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),J.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[J];Ue(R)&&(J.initDataTypes=["keyids","cenc"]);for(var l=g.N(Object.keys(O.L[R.flavor])),u=l.next();!u.done;u=l.next()){u=u.value;var F=u.indexOf("audio/")===0,G=F?J.audioCapabilities:J.videoCapabilities;R.flavor!== "widevine"||O.D?G.push({contentType:u}):F?G.push({contentType:u,robustness:"SW_SECURE_CRYPTO"}):(g.Wd&&g.UU("windows nt")&&!O.Z("html5_drm_enable_moho")||G.push({contentType:u,robustness:"HW_SECURE_ALL"}),F=u,O.bz.D.B&&u.includes("vp09")&&(F=u+"; experimental=allowed"),G.push({contentType:F,robustness:"SW_SECURE_DECODE"}),RZ(O.bz)==="MWEB"&&(RU()||j8())&&(O.nJ("swcrypto",{}),G.push({contentType:u,robustness:"SW_SECURE_CRYPTO"})))}return[J]}; NcL=function(O){if(Hm()&&(g.N$||z3))O.N.push(new Bm("fairplay","com.apple.fps.1_0","",O.bz.experiments));else{var R=vz2(),J=g.rC(O.S,function(l){var u=O.B[l],F=!1,G=!1,y;for(y in O.L[u.flavor])R(y,l)&&(u.L[y]=!0,F=F||y.indexOf("audio/")===0,G=G||y.indexOf("video/")===0);return F&&G}); J&&O.N.push(O.B[J]);O.S=[]}O.callback(O.N)}; vz2=function(){var O=Hm();if(O){var R=O.isTypeSupported;return function(l,u){return R(u,l)}}var J=sy(); return J&&(J.addKey||J.webkitAddKey)?function(l,u){return!!J.canPlayType(l,u)}:function(){return!1}}; XGT=function(O){this.experiments=O;this.L=2048;this.N=0;this.Hq=(this.J=this.Z("html5_streaming_resilience"))?.5:.25;var R=R===void 0?0:R;this.B=g.tB(this.experiments,"html5_media_time_weight_prop")||R;this.SN=g.tB(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.W=(this.D=this.experiments.Vh("html5_consider_end_stall"))&&Jj;this.S=this.experiments.Vh("html5_measure_max_progress_handling");this.V=this.Z("html5_treat_requests_pre_elbow_as_metadata");this.j=this.Z("html5_media_time_weight")|| !!this.B;this.Z("html5_sabr_live_audio_early_return_fix")&&Jj&&(this.L=65536)}; Tcs=function(O,R){this.L=void 0;this.experimentIds=O?O.split(","):[];this.flags=OU(R||"","&");O={};R=g.N(this.experimentIds);for(var J=R.next();!J.done;J=R.next())O[J.value]=!0;this.experiments=O}; g.tB=function(O,R){O=O.flags[R];JSON.stringify(O);return Number(O)||0}; gm=function(O,R){return(O=O.flags[R])?O.toString():""}; $40=function(O){if(O=O.flags.html5_web_po_experiment_ids)if(O=O.replace(/\[ *(.*?) *\]/,"$1"))return O.split(",").map(Number);return[]}; M2H=function(O){if(O.L)return O.L;if(O.experimentIds.length<=1)return O.L=O.experimentIds,O.L;var R=[].concat(g.X(O.experimentIds)).map(function(l){return Number(l)}); R.sort();for(var J=R.length-1;J>0;--J)R[J]-=R[J-1];O.L=R.map(function(l){return l.toString()}); O.L.unshift("v1");return O.L}; kPh=function(O){return qJW.then(O)}; io=function(O,R,J){this.experiments=O;this.iz=R;this.N1=J===void 0?!1:J;this.W=!!g.hs("cast.receiver.platform.canDisplayType");this.V={};this.SN=!1;this.N=new Map;this.J=!0;this.S=this.B=!1;this.L=new Map;this.Hq=0;this.OQ=this.experiments.Vh("html5_disable_vp9_encrypted");this.D=this.experiments.Vh("html5_enable_encrypted_av1");O=g.hs("cast.receiver.platform.getValue");if(R=!this.W&&O)R=O("max-video-resolution-vpx");this.j=R||null;sef(this);this.B=!!(L_()&&xj()>=21)}; owA=function(O,R,J){J=J===void 0?1:J;var l=R.itag;if(l==="0")return!0;var u=R.mimeType;if(R.Pq==="1e"&&!O.D)return"dav1enc";if(n8(R)&&O.SN)return"dav1";if(R.video&&(R.video.isHdr()||R.video.primaries==="bt2020")&&!($O(O,ML.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(l==="338"&&!(g.Wd?v4(53):g.du&&v4(64)))return"dopus";var F=J;F=F===void 0?1: F;J={};R.video&&(R.video.width&&(J[ML.WIDTH.name]=R.video.width),R.video.height&&(J[ML.HEIGHT.name]=R.video.height),R.video.fps&&(J[ML.FRAMERATE.name]=R.video.fps*F),R.video.L&&(J[ML.EOTF.name]=R.video.L),R.Wq&&(J[ML.BITRATE.name]=R.Wq*8*F),R.Pq==="("&&(J[ML.CRYPTOBLOCKFORMAT.name]="subsample"),R.video.projectionType==="EQUIRECTANGULAR"||R.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||R.video.projectionType==="MESH")&&(J[ML.DECODETOTEXTURE.name]="true");R.audio&&R.audio.numChannels&& (J[ML.CHANNELS.name]=R.audio.numChannels);O.B&&dz(R)&&(J[ML.EXPERIMENTAL.name]="allowed");F=g.N(Object.keys(ML));for(var G=F.next();!G.done;G=F.next()){G=ML[G.value];var y;if(y=J[G.name])if(y=!(G===ML.EOTF&&R.mimeType.indexOf("vp09.02")>0)){y=G;var w=R;y=!(O.experiments.Vh("html5_ignore_h264_framerate_cap")&&y===ML.FRAMERATE&&o0s(w))}if(y)if($O(O,G))if(O.j){if(O.j[G.name] 1080&&R.hp&&(u+="; hdcp=2.2");return l==="227"?"hqcenc":l!=="585"&&l!=="588"&&l!=="583"&&l!=="586"&&l!=="584"&&l!=="587"&&l!=="591"&&l!=="592"||O.experiments.Vh("html5_enable_new_hvc_enc")?L_()&&xj()>=21&&g.UU("appletv5")&&(l==="410"||l==="845")?!0:O.isTypeSupported(u)?!0:"tpus":"newhvc"}; lo=function(){var O=j8()&&!v4(29),R=g.UU("google tv")&&g.UU("chrome")&&!v4(30);return O||R?!1:mt2()}; bXx=function(O,R,J){var l=480;R=g.N(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;var F=u.video.qualityOrdinal;F<=1080&&F>l&&owA(O,u,J)===!0&&(l=F)}return l}; g.uo=function(O,R){R=R===void 0?!1:R;return lo()&&O.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!R&&O.canPlayType(sy(),"application/x-mpegURL")?!0:!1}; AwT=function(O){Wwf(function(){for(var R=g.N(Object.keys(ML)),J=R.next();!J.done;J=R.next())$O(O,ML[J.value])})}; $O=function(O,R){R.name in O.V||(O.V[R.name]=e0s(O,R));return O.V[R.name]}; e0s=function(O,R){if(O.j)return!!O.j[R.name];if(R===ML.BITRATE&&O.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!O.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(R===ML.AV1_CODECS)return O.isTypeSupported("video/mp4; codecs="+R.valid)&&!O.isTypeSupported("video/mp4; codecs="+R.s$);if(R.video){var J='video/webm; codecs="vp9"';O.isTypeSupported(J)||(J='video/mp4; codecs="avc1.4d401e"')}else J='audio/webm; codecs="opus"', O.isTypeSupported(J)||(J='audio/mp4; codecs="mp4a.40.2"');return O.isTypeSupported(J+"; "+R.name+"="+R.valid)&&!O.isTypeSupported(J+"; "+R.name+"="+R.s$)}; Pys=function(O,R){var J=0;O.N.has(R)&&(J=g.e(O.N.get(R)).rb);O.N.set(R,{rb:J+1,Zw:Math.pow(2,J+1)});O.S=!0}; ax=function(O){for(var R=[],J=g.N(O.L.keys()),l=J.next();!l.done;l=J.next()){l=l.value;var u=O.L.get(l);R.push(l+"_"+u.maxWidth+"_"+u.maxHeight)}return R.join(".")}; GdB=function(O,R){for(var J=new Map,l=g.N(O.L.keys()),u=l.next();!u.done;u=l.next()){u=u.value;var F=u.split("_")[0];R.has(F)||J.set(u,O.L.get(u))}O.L=J}; y4W=function(O,R,J){var l,u=((l=J.video)==null?void 0:l.fps)||0;l=R+"_"+u;var F=!!J.audio,G={itag:J.itag,Pq:R,NT:F};if(F)G.numChannels=J.audio.numChannels;else{var y=J.video;G.maxWidth=y==null?void 0:y.width;G.maxHeight=y==null?void 0:y.height;G.maxFramerate=u;$O(O,ML.BITRATE)&&(G.maxBitrateBps=J.Wq*8);G.sU=y==null?void 0:y.isHdr()}y=O.L.get(l);y?F||(J=Math.max(y.maxWidth||0,y.maxHeight||0)>Math.max(G.maxWidth||0,G.maxHeight||0)?y:G,R={itag:J.itag,Pq:R,NT:F,maxWidth:Math.max(y.maxWidth||0,G.maxWidth|| 0),maxHeight:Math.max(y.maxHeight||0,G.maxHeight||0),maxFramerate:u,sU:J.sU},$O(O,ML.BITRATE)&&(R.maxBitrateBps=J.maxBitrateBps),O.L.set(l,R)):O.L.set(l,G)}; wdf=function(O,R,J){var l,u=((l=J.video)==null?void 0:l.fps)||0;l=R+"_"+u;var F=!!J.audio,G=O.L.get(l);a:{var y=O.L.get(l),w=!!J.audio;if(y){if(w){var I=!1;break a}var C;if(!w&&((I=J.video)==null?0:I.height)&&y.maxHeight&&y.maxHeight>=((C=J.video)==null?void 0:C.height)){I=!1;break a}}I=!0}I&&(I=J.itag,R=G?G:{itag:I,Pq:R,NT:F},F?R.numChannels=J.audio.numChannels:(F=J.video,R.maxWidth=F==null?void 0:F.width,R.maxHeight=F==null?void 0:F.height,R.maxFramerate=u,$O(O,ML.BITRATE)&&(R.maxBitrateBps=J.Wq* 8),R.sU=F==null?void 0:F.isHdr()),O.L.set(l,R))}; sef=function(O){var R;(R=navigator.mediaCapabilities)!=null&&R.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(J){J.smooth&&J.powerEfficient&&(O.Hq=2160)})}; Fd=function(){g.y8.call(this);this.items={}}; pGf=function(O,R,J){this.encryptedClientKey=R;this.D=J;this.L=new Uint8Array(O.buffer,0,16);this.B=new Uint8Array(O.buffer,16)}; Bcf=function(O){O.S||(O.S=new g.DL(O.L));return O.S}; Gj=function(O){try{return gX(O)}catch(R){return null}}; HXW=function(O,R){if(!R&&O)try{R=JSON.parse(O)}catch(u){}if(R){O=R.clientKey?Gj(R.clientKey):null;var J=R.encryptedClientKey?Gj(R.encryptedClientKey):null,l=R.keyExpiresInSeconds?Number(R.keyExpiresInSeconds)*1E3+(0,g.Q)():null;O&&J&&l&&(this.L=new pGf(O,J,l));R.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Gj(R.onesieUstreamerConfig)||void 0);this.baseUrl=R.baseUrl}}; yl=function(){this.data=new Uint8Array(2048);this.pos=0;Kb||(Kb=ku("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; wm=function(O,R){O.add(R==null||isNaN(R)?0:R+1)}; IZ=function(O){this.L=this.S=0;this.alpha=Math.exp(Math.log(.5)/O)}; Cb=function(O){this.S=O===void 0?15:O;this.values=new Float64Array(176);this.L=new Float64Array(11);this.B=new Float64Array(16)}; rm=function(O,R,J,l){J=J===void 0?.5:J;l=l===void 0?0:l;this.resolution=R;this.S=0;this.B=!1;this.Cp=!0;this.L=Math.round(O*this.resolution);this.values=Array(this.L);for(O=0;O0)R=O.byterate,this.SN=!0;else{var l; J=(((l=navigator.connection)==null?void 0:l.downlink)||0)*64*1024;J>0&&(R=J,this.SN=!0)}this.B.VB(this.policy.j,R);O.delay>0&&this.V.VB(1,Math.min(O.delay,2));O.stall>0&&this.J.VB(1,O.stall);O.init>0&&(this.Qh=Math.min(O.init,this.Qh));O.interruptions&&(this.N=this.N.concat(O.interruptions),this.N.length>16&&this.N.pop());this.Hq=(0,g.Q)();this.policy.J>0&&(this.Iu=new g.zR(this.Gd,this.policy.J,this),g.H(this,this.Iu),this.Iu.start())}; oZ=function(O,R,J,l){O.B.VB(l===void 0?R:l,J/R);O.j=(0,g.Q)()}; U42=function(O){O.D||(O.D=(0,g.Q)());O.policy.W&&(O.j=(0,g.Q)())}; je2=function(O,R){if(O.D){var J=R-O.D;if(J<6E4){if(J>1E3){var l=O.interruptions;l.push(Math.ceil(J));l.sort(function(u,F){return F-u}); l.length>16&&l.pop()}O.iz+=J}}O.D=R}; Zl=function(O,R,J,l,u,F){F=F===void 0?!1:F;O.xS.VB(R,J/R);O.j=(0,g.Q)();u||O.W.VB(1,R-l);F||(O.D=0);O.Hq>-1&&(0,g.Q)()-O.Hq>3E4&&Qe0(O)}; Vl=function(O,R,J){R=Math.max(R,O.S.L);O.J.VB(1,J/R)}; fb=function(O){O=O.V.s_()+O.N1.s_()||0;O=isNaN(O)?.5:O;return O=Math.min(O,5)}; Sj=function(O,R,J){isNaN(J)||(O.OQ+=J);isNaN(R)||(O.JR+=R)}; N7=function(O){O=O.B.s_();return O>0?O:1}; m1=function(O,R,J){R=R===void 0?!1:R;J=J===void 0?1048576:J;var l=N7(O);l=1/((O.J.s_()||0)*O.policy.SN+1/l);var u=O.xS.s_();u=u>0?u:1;var F=Math.max(l,u);O.policy.D>0&&u=4E3}; YJz=function(O){this.experiments=O;this.L=17;this.B=13E4;this.j=.5;this.S=!1;this.Hq=this.Z("html5_use_histogram_for_bandwidth");this.N=!1;this.D=g.tB(this.experiments,"html5_auxiliary_estimate_weight");this.SN=g.tB(this.experiments,"html5_stall_factor")||1;this.J=g.tB(this.experiments,"html5_check_for_idle_network_interval_ms");this.V=this.experiments.Vh("html5_trigger_loader_when_idle_network");this.W=this.experiments.Vh("html5_sabr_fetch_on_idle_network_preloaded_players")}; h0B=function(O,R){O=O===void 0?{}:O;R=R===void 0?{}:R;g.p.call(this);var J=this;this.values=O;this.gX=R;this.S={};this.B=this.L=0;this.N=new g.zR(function(){d4p(J)},1E4); g.H(this,this.N)}; Dl=function(O,R){z00(O,R);return O.values[R]&&O.gX[R]?O.values[R]/Math.pow(2,O.L/O.gX[R]):0}; z00=function(O,R){O.values[R]||(R=ez_(),O.values=R.values||{},O.gX=R.halfLives||{},O.S=R.values?Object.assign({},R.values):{})}; d4p=function(O){var R=ez_();if(R.values){R=R.values;for(var J={},l=g.N(Object.keys(O.values)),u=l.next();!u.done;u=l.next())u=u.value,R[u]&&O.S[u]&&(O.values[u]+=R[u]-O.S[u]),J[u]=Dl(O,u);O.S=J}R=O.gX;J={};J.values=O.S;J.halfLives=R;g.bE("yt-player-memory",J,2592E3)}; US=function(O,R,J,l,u){g.p.call(this);this.webPlayerContextConfig=R;this.fL=l;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Sa=this.Rz=this.Re=this.nD=this.userDisplayName=this.userDisplayImage=this.E0="";this.L={};this.w5={};this.controlsType="0";this.TR=NaN;this.Td=!1;this.yk=(0,g.Q)();this.SG=0;this.RU=this.Ek=!1;this.O$=!0;this.preferGapless=this.oa=this.xe=this.B=this.jR=!1;this.hD=[];this.Ie=!1;this.iZ=0;O=O?g.RW(O):{};R&&R.csiPageType&&(this.csiPageType=R.csiPageType);R&&R.csiServiceName&& (this.csiServiceName=R.csiServiceName);R&&R.preferGapless&&(this.preferGapless=R.preferGapless);this.experiments=new Tcs(R?R.serializedExperimentIds:O.fexp,R?R.serializedExperimentFlags:O.fflags);this.forcedExperiments=R?R.serializedForcedExperimentIds:F7("",O.forced_experiments)||void 0;this.cspNonce=(R==null?0:R.cspNonce)?R.cspNonce:F7("",O.csp_nonce);this.Z("web_player_deprecated_uvr_killswitch");try{var F=document.location.toString()}catch(gh){F=""}this.Xw=F;this.ancestorOrigins=(l=window.location.ancestorOrigins)? Array.from(l):[];this.N=iE(!1,R?R.isEmbed:O.is_embed);if(R&&R.device){if(l=R.device,l.androidOsExperience&&(this.L.caoe=""+l.androidOsExperience),l.androidPlayServicesVersion&&(this.L.capsv=""+l.androidPlayServicesVersion),l.brand&&(this.L.cbrand=l.brand),l.browser&&(this.L.cbr=l.browser),l.browserVersion&&(this.L.cbrver=l.browserVersion),l.cobaltReleaseVehicle&&(this.L.ccrv=""+l.cobaltReleaseVehicle),this.L.c=l.interfaceName||"WEB",this.L.cver=l.interfaceVersion||"html5",l.interfaceTheme&&(this.L.ctheme= l.interfaceTheme),this.L.cplayer=l.interfacePlayerType||"UNIPLAYER",l.model&&(this.L.cmodel=l.model),l.network&&(this.L.cnetwork=l.network),l.os&&(this.L.cos=l.os),l.osVersion&&(this.L.cosver=l.osVersion),l.platform&&(this.L.cplatform=l.platform),F=gm(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),F==="all"||F==="once")l.chipset&&(this.w5.cchip=l.chipset),l.cobaltAppVersion&&(this.w5.ccappver=l.cobaltAppVersion),l.firmwareVersion&&(this.w5.cfrmver=l.firmwareVersion),l.deviceYear&&(this.w5.crqyear= l.deviceYear)}else this.L.c=O.c||"web",this.L.cver=O.cver||"html5",this.L.cplayer="UNIPLAYER";this.loaderUrl=R?this.N||nzz(this)&&R.loaderUrl?R.loaderUrl||"":this.Xw:this.N||nzz(this)&&O.loaderUrl?F7("",O.loaderUrl):this.Xw;this.N&&g.dh("yt.embedded_player.embed_url",this.loaderUrl);this.V=R2(this.loaderUrl,cwB);l=this.loaderUrl;var G=G===void 0?!1:G;this.l7=Ox(R2(l,Oq2),l,G,"Trusted Ad Domain URL");this.mM=iE(!1,O.privembed);this.protocol=this.Xw.indexOf("http:")===0?"http":"https";this.Ic=nU_((R? R.customBaseYoutubeUrl:O.BASE_YT_URL)||"")||nU_(this.Xw)||this.protocol+"://www.youtube.com/";G=R?R.eventLabel:O.el;l="detailpage";G==="adunit"?l=this.N?"embedded":"detailpage":G==="embedded"||this.V?l=lE(l,G,R2_):G&&(l="embedded");this.N1=l;EjB();G=null;l=R?R.playerStyle:O.ps;F=g.Zo(JvB,l);!l||F&&!this.V||(G=l);this.playerStyle=G;this.j=g.Zo(JvB,this.playerStyle);this.houseBrandUserStatus=R==null?void 0:R.houseBrandUserStatus;this.Hq=this.j&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.D2=!this.Hq;this.Qh=iE(!1,O.disableplaybackui);this.disablePaidContentOverlay=iE(!1,R==null?void 0:R.disablePaidContentOverlay);this.disableSeek=iE(!1,R==null?void 0:R.disableSeek);this.enableSpeedOptions=(R==null?void 0:R.enableSpeedOptions)||(sy().defaultPlaybackRate?aZ||g.O$||vv?g.du&&v4("20")||g.Wd&&v4("4")||g.Xd&&v4("11")||hF():!(g.Xd&&!g.UU("chrome")||aZ||g.UU("android")||g.UU("silk")):!1);this.Uk=iE(!1,O.enable_faster_speeds);var y;this.supportsVarispeedExtendedFeatures=(y=R==null?void 0: R.supportsVarispeedExtendedFeatures)!=null?y:!1;this.S=iE(this.playerStyle==="blazer",O.is_html5_mobile_device||R&&R.isMobileDevice);this.JR=cW()||RU();this.vu=this.Z("mweb_allow_background_playback")?!1:this.S&&!this.j;this.Iu=Pd();this.yl=g.Tj;var w;this.HP=!!(R==null?0:(w=R.embedsHostFlags)==null?0:w.optOutApiDeprecation);var I;this.mH=!!(R==null?0:(I=R.embedsHostFlags)==null?0:I.allowPfpImaIntegration);this.Bu=this.Z("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var C;R?R.hideInfo!== void 0&&(C=!R.hideInfo):C=O.showinfo;this.eU=g.$X(this)&&!this.HP||iE(!M7(this)&&!q7(this)&&!this.j,C);this.FB=R?!!R.mobileIphoneSupportsInlinePlayback:iE(!1,O.playsinline);y=this.S&&kX&&sS!=null&&sS>0&&sS<=2.3;w=R?R.useNativeControls:O.use_native_controls;this.J=g.$X(this)&&this.S;I=this.S&&!this.J;w=g.bo(this)||!y&&iE(I,w)?"3":"1";this.disableOrganicUi=!(R==null||!R.disableOrganicUi);I=R?R.controlsType:O.controls;this.controlsType=this.disableOrganicUi||I==="0"||I===0?"0":w;this.LL=this.S;this.color= lE("red",R?R.progressBarColor:O.color,g$H);this.i$=this.controlsType==="3";this.d5=!this.N;this.w$=(w=!this.d5&&!q7(this)&&!this.Hq&&!this.j&&!M7(this))&&!this.i$&&this.controlsType==="1";this.Jo=g.Wv(this)&&w&&this.controlsType==="0"&&!this.w$&&!(R==null?0:R.embedsEnableEmc3ds);this.Ju=this.Fy=y;this.Py=(this.controlsType==="3"||this.S||iE(!1,O.use_media_volume))&&!this.J;this.bZ=z3&&!g.vE(601)?!1:!0;this.XW=this.N||!1;this.zJ=q7(this)?"":(this.loaderUrl||O.post_message_origin||"").substring(0,128); this.widgetReferrer=F7("",R?R.widgetReferrer:O.widget_referrer);var r;R?R.disableCastApi&&(r=!1):r=O.enablecastapi;r=!this.V||iE(!0,r);y=!0;R&&R.disableMdxCast&&(y=!1);this.pD=this.Z("enable_cast_for_web_unplugged")&&g.Aj(this)&&y||g.p9(this)&&y||r&&y&&this.controlsType==="1"&&!this.S&&(q7(this)||g.Wv(this)||g.ej(this));this.dc=!!window.document.pictureInPictureEnabled||eV();r=R?!!R.supportsAutoplayOverride:iE(!1,O.autoplayoverride);this.O0=!(this.S&&!g.$X(this))&&!g.UU("nintendo wiiu")||r;this.a8= (R?!!R.enableMutedAutoplay:iE(!1,O.mutedautoplay))&&!1;r=(q7(this)||M7(this))&&this.playerStyle==="blazer";this.zW=R?!!R.disableFullscreen:!iE(!0,O.fs);y=g.wZ(g.Pv(this))&&g.$X(this);this.sQ=!this.zW&&(r||g.Vz())&&!y;this.x4=this.Z("html5_picture_in_picture_logging_onresize");var t;this.HT=(t=g.tB(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?t:.33;this.Ff=this.Z("html5_picture_in_picture_blocking_onresize");this.S5=this.Z("html5_picture_in_picture_blocking_ontimeupdate"); this.X9=this.Z("html5_picture_in_picture_blocking_document_fullscreen");this.HI=this.Z("html5_picture_in_picture_blocking_standard_api");t=j8()&&v4(58)&&!RU();r=YS||typeof MediaSource==="undefined";this.sO=this.Z("uniplayer_block_pip")&&(t||r)||this.Ff||this.S5||this.HI;t=g.$X(this)&&!this.HP;var Z;R?R.disableRelatedVideos!==void 0&&(Z=!R.disableRelatedVideos):Z=O.rel;this.Y9=t||iE(!this.j,Z);this.ZT=iE(!1,R?R.enableContentOwnerRelatedVideos:O.co_rel);this.W=RU()&&sS>0&&sS<=4.4?"_top":"_blank";this.lc= g.ej(this);this.Ra=iE(this.playerStyle==="blazer",R?R.enableCsiLogging:O.enablecsi);switch(this.playerStyle){case "blogger":Z="bl";break;case "gmail":Z="gm";break;case "gac":Z="ga";break;case "ads-preview":Z="ap";break;case "books":Z="gb";break;case "docs":case "flix":Z="gd";break;case "duo":Z="gu";break;case "google-live":Z="gl";break;case "google-one":Z="go";break;case "play":Z="gp";break;case "chat":Z="hc";break;case "hangouts-meet":Z="hm";break;case "photos-edu":case "picasaweb":Z="pw";break; default:Z="yt"}this.SN=Z;this.OQ=F7("",R?R.authorizedUserIndex:O.authuser);this.AT=g.$X(this)&&(this.mM||!wJ2()||this.JR);var V;R?R.disableWatchLater!==void 0&&(V=!R.disableWatchLater):V=O.showwatchlater;this.E8=((Z=!this.AT)||!!this.OQ&&Z)&&iE(!this.Hq,this.V?V:void 0);this.eR=R?R.isMobileDevice||!!R.disableKeyboardControls:iE(!1,O.disablekb);this.loop=iE(!1,O.loop);this.pageId=F7("",R?R.initialDelegatedSessionId:O.pageid);this.I7=iE(!0,O.canplaylive);this.fJ=iE(!1,O.livemonitor);this.disableSharing= iE(this.j,R?R.disableSharing:O.ss);(V=R&&this.Z("fill_video_container_size_override_from_wpcc")?R.videoContainerOverride:O.video_container_override)?(Z=V.split("x"),Z.length!==2?V=null:(V=Number(Z[0]),Z=Number(Z[1]),V=isNaN(V)||isNaN(Z)||V*Z<=0?null:new g.so(V,Z))):V=null;this.uZ=V;this.mute=R?!!R.startMuted:iE(!1,O.mute);this.storeUserVolume=!this.mute&&iE(this.controlsType!=="0",R?R.storeUserVolume:O.store_user_volume);V=R?R.annotationsLoadPolicy:O.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:lE(void 0,V,pb);this.captionsLanguagePreference=R?R.captionsLanguagePreference||"":F7("",O.cc_lang_pref);V=lE(2,R?R.captionsLanguageLoadPolicy:O.cc_load_policy,pb);this.controlsType==="3"&&V===2&&(V=3);this.cQ=V;this.CG=R?R.hl||"en_US":F7("en_US",O.hl);this.region=R?R.contentRegion||"US":F7("US",O.cr);this.hostLanguage=R?R.hostLanguage||"en":F7("en",O.host_language);this.Gm=!this.mM&&Math.random()=480;this.schedule=new tj(r,new XGT(this.experiments),u);g.H(this,this.schedule);var m;this.enableSafetyMode=(m=R==null?void 0:R.initialEnableSafetyMode)!=null? m:iE(!1,O.enable_safety_mode);u=this.Qh?!1:q7(this)&&this.playerStyle!=="blazer";var E;R?R.disableAutonav!=null&&(E=!R.disableAutonav):E=O.allow_autonav;this.vY=iE(u,!this.Hq&&E);this.sendVisitorIdHeader=R?!!R.sendVisitorIdHeader:iE(!1,O.send_visitor_id_header);var a;this.playerStyle==="docs"&&(R?a=R.disableNativeContextMenu:a=O.disable_native_context_menu);this.disableNativeContextMenu=iE(!1,a);this.WD=Tg(this)&&this.Z("enable_skip_intro_button");this.embedConfig=F7("",R?R.serializedEmbedConfig: O.embed_config);this.iz=yz(O,g.$X(this));this.B=this.iz==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(R==null||!R.embedsErrorLinks);this.Ax=iE(!1,O.full_window);var v;this.AR=!((v=this.webPlayerContextConfig)==null?0:v.chromeless);var b;this.livingRoomAppMode=lE("LIVING_ROOM_APP_MODE_UNSPECIFIED",O.living_room_app_mode||(R==null?void 0:(b=R.device)==null?void 0:b.livingRoomAppMode),u1h);var W;E=uE(NaN,R==null?void 0:(W=R.device)==null?void 0:W.deviceYear);isNaN(E)||(this.deviceYear=E);this.transparentBackground= R?!!R.transparentBackground:iE(!1,O.transparent_background);this.showMiniplayerButton=R?!!R.showMiniplayerButton:iE(!1,O.show_miniplayer_button);var B;g.$X(this)&&!(R==null?0:(B=R.embedsHostFlags)==null?0:B.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=R?!!R.externalFullscreen:iE(!1,O.external_fullscreen);this.showMiniplayerUiWhenMinimized=R?!!R.showMiniplayerUiWhenMinimized:iE(!1,O.use_miniplayer_ui);var z;this.O$=(z=O.show_loop_video_toggle)!=null?z:!0;this.Pu=Math.random()< 1E-4;this.tK=O.onesie_hot_config||(R==null?0:R.onesieHotConfig)?new HXW(O.onesie_hot_config,R==null?void 0:R.onesieHotConfig):void 0;this.isTectonic=R?!!R.isTectonic:!!O.isTectonic;this.playerCanaryState=J;this.playerCanaryStage=R==null?void 0:R.canaryStage;this.vW=new h0B;g.H(this,this.vW);this.datasyncId=(R==null?void 0:R.datasyncId)||g.YB("DATASYNC_ID");this.Wn=g.YB("LOGGED_IN",!1);this.gK=(R==null?void 0:R.allowWoffleManagement)||!1;this.CL=Infinity;this.PQ=NaN;this.livingRoomPoTokenId=R==null? void 0:R.livingRoomPoTokenId;this.Z("html5_high_res_logging_always")?this.xe=!0:this.xe=Math.random()*100=0&&O0&&O.Pu&&(l.sort(),g.Aa(new g.Ys("Player client parameters changed after startup",l)));O.userAge=uE(O.userAge,R.user_age);O.E0=F7(O.E0,R.user_display_email);O.userDisplayImage=F7(O.userDisplayImage,R.user_display_image);g.gk(O.userDisplayImage)||(O.userDisplayImage= "");O.userDisplayName=F7(O.userDisplayName,R.user_display_name);O.nD=F7(O.nD,R.user_gender);O.csiPageType=F7(O.csiPageType,R.csi_page_type);O.csiServiceName=F7(O.csiServiceName,R.csi_service_name);O.Ra=iE(O.Ra,R.enablecsi);O.pageId=F7(O.pageId,R.pageid);if(J=R.enabled_engage_types)O.enabledEngageTypes=new Set(J.split(","));R.living_room_session_po_token&&(O.DZ=R.living_room_session_po_token.toString())}; jj=function(O,R){return!O.j&&j8()&&v4(55)&&O.controlsType==="3"&&!R}; g.Ql=function(O){O=Bv(O.Ic);return O==="www.youtube-nocookie.com"?"www.youtube.com":O}; Lb=function(O,R,J){return O.protocol+"://i1.ytimg.com/vi/"+R+"/"+(J||"hqdefault.jpg")}; YX=function(O){return q7(O)&&!g.Aj(O)}; g.bo=function(O){return O.Z("html5_local_playsinline")?z3&&!g.vE(602)&&!("playsInline"in sy()):z3&&!O.FB||g.UU("nintendo wiiu")?!0:!1}; RZ=function(O){return O.L.c}; g.$T=function(O){return/^TVHTML5/.test(RZ(O))}; g.dm=function(O){return RZ(O)==="TVHTML5"}; nzz=function(O){return RZ(O)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; lV_=function(O){return O.L.cmodel==="CHROMECAST ULTRA/STEAK"||O.L.cmodel==="CHROMECAST/STEAK"}; g.hj=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; Tg=function(O){return/web/i.test(RZ(O))}; g.zj=function(O){return RZ(O).toUpperCase()==="WEB"}; xX=function(O){return RZ(O)==="WEB_KIDS"}; g.Aj=function(O){return RZ(O)==="WEB_UNPLUGGED"}; nb=function(O){return RZ(O)==="TVHTML5_UNPLUGGED"}; g.XV=function(O){return g.Aj(O)||RZ(O)==="TV_UNPLUGGED_CAST"||nb(O)}; g.p9=function(O){return RZ(O)==="WEB_REMIX"}; g.cv=function(O){return RZ(O)==="WEB_EMBEDDED_PLAYER"}; g.RQ=function(O){return(O.deviceIsAudioOnly||!g.Wd||YS||O.controlsType==="3"?!1:g.O$?O.N&&g.vE(51):!0)||(O.deviceIsAudioOnly||!g.du||YS||O.controlsType==="3"?!1:g.O$?O.N&&g.vE(48):g.vE(38))||(O.deviceIsAudioOnly||!g.Xd||YS||O.controlsType==="3"?!1:g.O$?O.N&&g.vE(37):g.vE(27))||!O.deviceIsAudioOnly&&g.OE&&!oPA()&&g.vE(11)||!O.deviceIsAudioOnly&&g.N$&&g.vE("604.4")}; KNx=function(O){if(g.Wv(O)&&kX)return!1;if(g.du){if(!g.vE(47)||!g.vE(52)&&g.vE(51))return!1}else if(g.N$)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; wzh=function(O,R){return O.enabledEngageTypes.has(R.toString())||yvH.includes(R)}; q7=function(O){return O.N1==="detailpage"}; g.Wv=function(O){return O.N1==="embedded"}; JX=function(O){return O.N1==="leanback"}; M7=function(O){return O.N1==="adunit"||O.playerStyle==="gvn"}; g.ej=function(O){return O.N1==="profilepage"}; g.$X=function(O){return O.N&&g.Wv(O)&&!M7(O)&&!O.j}; gy=function(O){if(!O.userDisplayImage)return"";var R=O.userDisplayImage.split("/");if(R.length===5)return O=R[R.length-1].split("="),O[1]="s20-c",R[R.length-1]=O.join("="),R.join("/");if(R.length===8)return R.splice(7,0,"s20-c"),R.join("/");if(R.length===9)return R[7]+="-s20-c",R.join("/");g.Aa(new g.Ys("Profile image not a FIFE URL.",O.userDisplayImage));return O.userDisplayImage}; g.ir=function(O){var R=g.Ql(O);IV_.includes(R)&&(R="www.youtube.com");return O.protocol+"://"+R}; g.lr=function(O,R){R=R===void 0?"":R;if(O.fL){var J=new Jw,l,u=O.fL();u.signedOut?l="":u.token?l=u.token:u.pendingResult.then(function(F){u.signedOut?J.resolve(""):J.resolve(F.token)},function(F){g.Aa(new g.Ys("b189348328_oauth_callback_failed",{error:F})); J.resolve(R)}); return l!==void 0?sU(l):new q5(J)}return sU(R)}; ur=function(O,R){R=R===void 0?"":R;return O.Wn?Zi(!0):EP(mq(Zi(g.lr(O,R)),function(J){return Zi(!!J)}),function(){return Zi(!1)})}; Bv=function(O){var R=g.e(g.vQ(O));return(O=Number(g.ao(O)[4]||null)||null)?R+":"+O:R}; Fv=function(O,R){R=R===void 0?!1:R;var J=L8[O],l=CZp[J],u=rvp[O];if(!u||!l)return null;R=new Uy(R?u.height:u.width,R?u.width:u.height,u.fps);l=m7(l,R,J);return new Yw(O,l,{video:R,Wq:u.bitrate/8})}; o$T=function(O){var R=CZp[L8[O]],J=tRz[O];return J&&R?new Yw(O,R,{audio:new Bd(J.audioSampleRate,J.numChannels)}):null}; Gq=function(O){this.L=O}; Ks=function(O,R,J,l){if(J)return kj();J={};var u=sy();R=g.N(R);for(var F=R.next();!F.done;F=R.next())if(F=F.value,O.canPlayType(u,F.getInfo().mimeType)||l){var G=F.L.video.quality;if(!J[G]||J[G].getInfo().WY())J[G]=F}O=[];J.auto&&O.push(J.auto);l=g.N(jV);for(u=l.next();!u.done;u=l.next())(u=J[u.value])&&O.push(u);return O.length?sU(O):kj()}; ZqH=function(O){this.itag=O.itag;this.url=O.url;this.codecs=O.codecs;this.width=O.width;this.height=O.height;this.fps=O.fps;this.bitrate=O.bitrate;var R;this.S=((R=O.audioItag)==null?void 0:R.split(","))||[];this.To=O.To;this.hp=O.hp||"";this.Ef=O.Ef;this.audioChannels=O.audioChannels;this.L=""}; VRA=function(O,R,J,l){R=R===void 0?!1:R;J=J===void 0?!0:J;l=l===void 0?{}:l;var u={};O=g.N(O);for(var F=O.next();!F.done;F=O.next()){F=F.value;if(R&&MediaSource&&MediaSource.isTypeSupported){var G=F.type;F.audio_channels&&(G=G+"; channels="+F.audio_channels);if(!MediaSource.isTypeSupported(G)){l[F.itag]="tpus";continue}}if(J||!F.drm_families||F.eotf!=="smpte2084"&&F.eotf!=="arib-std-b67"){G=void 0;var y={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},w=F.type.match(/codecs="([^"]*)"/); w=w?w[1]:"";F.audio_track_id&&(G=new g.o3(F.name,F.audio_track_id,!!F.is_default));var I=F.eotf;F=new ZqH({itag:F.itag,url:F.url,codecs:w,width:Number(F.width),height:Number(F.height),fps:Number(F.fps),bitrate:Number(F.bitrate),audioItag:F.audio_itag,To:I?y[I]:void 0,hp:F.drm_families,Ef:G,audioChannels:Number(F.audio_channels)});u[F.itag]=u[F.itag]||[];u[F.itag].push(F)}else l[F.itag]="enchdr"}return u}; fVL=function(O,R,J,l,u){this.B=O;this.S=R;this.D=J;this.cpn=l;this.j=u;this.N=0;this.L=""}; SlL=function(O,R){O.B.some(function(J){var l;return((l=J.Ef)==null?void 0:l.getId())===R}); O.L=R}; yh=function(O,R,J){O.cpn&&(R=g.s9(R,{cpn:O.cpn}));J&&(R=g.s9(R,{paired:J}));return R}; NBp=function(O,R){O=O.itag.toString();R!==null&&(O+=R.itag.toString());return O}; mrA=function(O){for(var R=[],J=[],l=g.N(O.S),u=l.next();!u.done;u=l.next())u=u.value,u.bitrate<=O.N?R.push(u):J.push(u);R.sort(function(F,G){return G.bitrate-F.bitrate}); J.sort(function(F,G){return F.bitrate-G.bitrate}); O.S=R.concat(J)}; wy=function(O,R,J){this.L=O;this.S=R;this.expiration=J;this.By=null}; E$L=function(O,R){if(!(YS||d6()||L_()))return null;O=VRA(R,O.Z("html5_filter_fmp4_in_hls"));if(!O)return null;R=[];for(var J={},l=g.N(Object.keys(O)),u=l.next();!u.done;u=l.next()){u=g.N(O[u.value]);for(var F=u.next();!F.done;F=u.next()){var G=F.value;G.Ef&&(F=G.Ef.getId(),J[F]||(G=new g.wV(F,G.Ef),J[F]=G,R.push(G)))}}return R.length>0?R:null}; TB2=function(O,R,J,l,u,F,G){if(!(YS||d6()||L_()))return kj();var y={},w=DrB(J),I=VRA(J,O.Z("html5_filter_fmp4_in_hls"),O.D.J,y);if(!I)return G({noplst:1}),kj();aVL(I);J={};var C=(J.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",J),r;J=[];var t=[],Z=[],V=null,m="";l=l&&l.match(/hls_timedtext_playlist/)?new ZqH({itag:"0",url:l,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Ef:new g.o3("English","en",!1)}):null;for(var E=g.N(Object.keys(I)),a=E.next();!a.done;a=E.next())if(a=a.value,!O.Z("html5_disable_drm_hfr_1080")|| a!=="383"&&a!=="373"){a=g.N(I[a]);for(var v=a.next();!v.done;v=a.next())if(v=v.value,v.width){for(var b=g.N(v.S),W=b.next();!W.done;W=b.next())if(W=W.value,I[W]){v.L=W;break}v.L||(v.L=v$p(I,v));if(b=I[v.L])if(J.push(v),v.hp==="fairplay"&&(r=C),W="",v.To==="PQ"?W="smpte2084":v.To==="HLG"&&(W="arib-std-b67"),W&&(m=W),Z.push(Xzp(b,[v],l,F,v.itag,v.width,v.height,v.fps,w,void 0,void 0,r,W)),!V||v.width*v.height*v.fps>V.width*V.height*V.fps)V=v}else t.push(v)}else y[a]="disdrmhfr";Z.reduce(function(B, z){return z.getInfo().isEncrypted()&&B},!0)&&(r=C); u=Math.max(u,0);C=V||{};I=C.fps===void 0?0:C.fps;V=C.width===void 0?0:C.width;C=C.height===void 0?0:C.height;E=O.Z("html5_native_audio_track_switching");Z.push(Xzp(t,J,l,F,"93",V,C,I,w,"auto",u,r,m,E));Object.entries(y).length&&G(y);return Ks(O.D,Z,jj(O,R),!1)}; Xzp=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z){for(var V=0,m="",E=g.N(O),a=E.next();!a.done;a=E.next())a=a.value,m||(m=a.itag),a.audioChannels&&a.audioChannels>V&&(V=a.audioChannels,m=a.itag);u=new Yw(u,"application/x-mpegURL",{audio:new Bd(0,V),video:new Uy(F,G,y,null,void 0,I,void 0,t),hp:r,xR:m});O=new fVL(O,R,J?[J]:[],l,!!Z);O.N=C?C:1369843;return new wy(u,O,w)}; DrB=function(O){O=g.N(O);for(var R=O.next();!R.done;R=O.next())if(R=R.value,R.url&&(R=R.url.split("expire/"),!(R.length<=1)))return+R[1].split("/")[0];return NaN}; v$p=function(O,R){for(var J=g.N(Object.keys(O)),l=J.next();!l.done;l=J.next()){l=l.value;var u=O[l][0];if(!u.width&&u.hp===R.hp&&!u.audioChannels)return l}return""}; aVL=function(O){for(var R=new Set,J=g.N(Object.values(O)),l=J.next();!l.done;l=J.next())l=l.value,l.length&&(l=l[0],l.height&&l.codecs.startsWith("vp09")&&R.add(l.height));J=[];if(R.size){l=g.N(Object.keys(O));for(var u=l.next();!u.done;u=l.next())if(u=u.value,O[u].length){var F=O[u][0];F.height&&R.has(F.height)&&!F.codecs.startsWith("vp09")&&J.push(u)}}R=g.N(J);for(J=R.next();!J.done;J=R.next())delete O[J.value]}; IQ=function(O,R){this.L=O;this.S=R}; $rL=function(O,R,J,l){var u=[];J=g.N(J);for(var F=J.next();!F.done;F=J.next()){var G=F.value;if(G.url){F=new g.qL(G.url,!0);if(G.s){var y=F,w=G.sp,I=sqT(decodeURIComponent(G.s));y[K[20]](w,encodeURIComponent(I))}y=g.N(Object.keys(l));for(w=y.next();!w.done;w=y.next())w=w.value,F.set(w,l[w]);G=F3(G.type,G.quality,G.itag,G.width,G.height);u.push(new IQ(G,F))}}return Ks(O.D,u,jj(O,R),!1)}; Cs=function(O,R){this.L=O;this.S=R}; MRx=function(O,R,J){var l=[];J=g.N(J);for(var u=J.next();!u.done;u=J.next())if((u=u.value)&&u.url){var F=F3(u.type,"medium","0");l.push(new Cs(F,u.url))}return Ks(O.D,l,jj(O,R),!1)}; qlp=function(O,R){var J=[],l=F3(R.type,"auto",R.itag);J.push(new Cs(l,R.url));return Ks(O.D,J,!1,!0)}; sas=function(O){return O&&kJ0[O]?kJ0[O]:null}; bqT=function(O){switch(O){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return O;default:return"sabr.config"}}; WNT=function(O){if(O=O.commonConfig)this.url=O.url,this.urlQueryOverride=O.urlQueryOverride,O.ustreamerConfig&&(this.Z7=Gj(O.ustreamerConfig)||void 0)}; AvA=function(O,R){var J;if(R=R==null?void 0:(J=R.watchEndpointSupportedOnesieConfig)==null?void 0:J.html5PlaybackOnesieConfig)O.Tv=new WNT(R)}; g.ry=function(O){O=O===void 0?{}:O;this.languageCode=O.languageCode||"";this.languageName=O.languageName||null;this.kind=O.kind||"";this.name=O.name===void 0?null:O.name;this.displayName=O.displayName||null;this.id=O.id||null;this.L=O.is_servable||!1;this.isTranslateable=O.is_translateable||!1;this.url=O.url||null;this.vssId=O.vss_id||"";this.isDefault=O.is_default||!1;this.translationLanguage=O.translationLanguage||null;this.xtags=O.xtags||"";this.captionId=O.captionId||""}; g.oQ=function(O){var R={languageCode:O.languageCode,languageName:O.languageName,displayName:g.tX(O),kind:O.kind,name:O.name,id:O.id,is_servable:O.L,is_default:O.isDefault,is_translateable:O.isTranslateable,vss_id:O.vssId};O.xtags&&(R.xtags=O.xtags);O.captionId&&(R.captionId=O.captionId);O.translationLanguage&&(R.translationLanguage=O.translationLanguage);return R}; g.Zc=function(O){return O.translationLanguage?O.translationLanguage.languageCode:O.languageCode}; g.e22=function(O){var R=O.vssId;O.translationLanguage&&R&&(R="t"+R+"."+g.Zc(O));return R}; g.tX=function(O){var R=[];if(O.displayName)R.push(O.displayName);else{var J=O.languageName||"";R.push(J);O.kind==="asr"&&J.indexOf("(")===-1&&R.push(" (Subt\u00edtulos autom\u00e1ticos)");O.name&&R.push(" - "+O.name)}O.translationLanguage&&R.push(" >> "+O.translationLanguage.languageName);return R.join("")}; Hqp=function(O,R,J,l){O||(O=R&&PZp.hasOwnProperty(R)&&pzp.hasOwnProperty(R)?pzp[R]+"_"+PZp[R]:void 0);R=O;if(!R)return null;O=R.match(BBx);if(!O||O.length!==5)return null;if(O=R.match(BBx)){var u=Number(O[3]),F=[7,8,10,5,6];O=!(Number(O[1])===1&&u===8)&&F.indexOf(u)>=0}else O=!1;return J||l||O?R:null}; Vh=function(O,R){for(var J={},l=g.N(Object.keys(xrx)),u=l.next();!u.done;u=l.next()){u=u.value;var F=R?R+u:u;F=O[F+"_webp"]||O[F];g.gk(F)&&(J[xrx[u]]=F)}return J}; fs=function(O){var R={};if(!O||!O.thumbnails)return R;O=O.thumbnails.filter(function(y){return!!y.url}); O.sort(function(y,w){return y.width-w.width||y.height-w.height}); for(var J=g.N(Object.keys(Ur_)),l=J.next();!l.done;l=J.next()){var u=Number(l.value);l=Ur_[u];for(var F=g.N(O),G=F.next();!G.done;G=F.next())if(G=G.value,G.width>=u){u=jaf(G.url);g.gk(u)&&(R[l]=u);break}}(O=O.pop())&&O.width>=1280&&(O=jaf(O.url),g.gk(O)&&(R["maxresdefault.jpg"]=O));return R}; jaf=function(O){return O.startsWith("//")?"https:"+O:O}; SN=function(O){return O&&O.baseUrl||""}; N_=function(O){O=g.il(O);for(var R=g.N(Object.keys(O)),J=R.next();!J.done;J=R.next()){J=J.value;var l=O[J];O[J]=Array.isArray(l)?l[0]:l}return O}; Qa2=function(O,R){O.botguardData=R.playerAttestationRenderer.botguardData;R=R.playerAttestationRenderer.challenge;R!=null&&(O.Vl=R)}; drL=function(O,R){R=g.N(R);for(var J=R.next();!J.done;J=R.next()){J=J.value;var l=J.interstitials.map(function(G){var y=g.x(G,LNs);if(y)return{is_yto_interstitial:!0,raw_player_response:y};if(G=g.x(G,Yl_))return Object.assign({is_yto_interstitial:!0},JF(G))}); l=g.N(l);for(var u=l.next();!u.done;u=l.next())switch(u=u.value,J.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":O.interstitials=O.interstitials.concat({time:0,playerVars:u,rh:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":O.interstitials=O.interstitials.concat({time:0x7ffffffffffff,playerVars:u,rh:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var F=Number(J.podConfig.timeToInsertAtMillis);O.interstitials=O.interstitials.concat({time:F,playerVars:u, rh:F===0?5:7})}}}; h2H=function(O,R){if(R=R.find(function(J){return!(!J||!J.tooltipRenderer)}))O.tooltipRenderer=R.tooltipRenderer}; z2L=function(O,R){R.subscribeCommand&&(O.subscribeCommand=R.subscribeCommand);R.unsubscribeCommand&&(O.unsubscribeCommand=R.unsubscribeCommand);R.addToWatchLaterCommand&&(O.addToWatchLaterCommand=R.addToWatchLaterCommand);R.removeFromWatchLaterCommand&&(O.removeFromWatchLaterCommand=R.removeFromWatchLaterCommand);R.getSharePanelCommand&&(O.getSharePanelCommand=R.getSharePanelCommand)}; n$L=function(O,R){R!=null?(O.oT=R,O.Ud=!0):(O.oT="",O.Ud=!1)}; m5=function(O,R){this.type=O||"";this.id=R||""}; g.EE=function(O){return new m5(O.substring(0,2),O.substring(2))}; g.Dc=function(O,R){this.bz=O;this.author="";this.Mj=null;this.playlistLength=0;this.L=this.sessionData=null;this.W={};this.title="";if(R){this.author=R.author||R.playlist_author||"";this.title=R.playlist_title||"";if(O=R.session_data)this.sessionData=OU(O,"&");var J;this.L=((J=R.thumbnail_ids)==null?void 0:J.split(",")[0])||null;this.W=Vh(R,"playlist_");this.videoId=R.video_id||void 0;if(J=R.list)switch(R.listType){case "user_uploads":this.playlistId=(new m5("UU","PLAYER_"+J)).toString();break;default:if(O= R.playlist_length)this.playlistLength=Number(O)||0;this.playlistId=g.EE(J).toString();if(R=R.video)this.videoId=(R[0]||null).video_id||void 0}else R.playlist&&(this.playlistLength=R.playlist.toString().split(",").length)}}; g.aQ=function(O,R){this.bz=O;this.Yn=this.author="";this.Mj=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.lF=this.lengthText="";this.sessionData=null;this.W={};this.title="";if(R){this.ariaLabel=R.aria_label||void 0;this.author=R.author||"";this.Yn=R.Yn||"";if(O=R.endscreen_autoplay_session_data)this.Mj=OU(O,"&");this.gr=R.gr;this.isLivePlayback=R.live_playback==="1";this.isUpcoming=!!R.isUpcoming;if(O=R.length_seconds)this.lengthSeconds=typeof O==="string"?Number(O):O;this.lengthText= R.lengthText||"";this.lF=R.lF||"";this.publishedTimeText=R.publishedTimeText||void 0;if(O=R.session_data)this.sessionData=OU(O,"&");this.shortViewCount=R.short_view_count_text||void 0;this.W=Vh(R);this.title=R.title||"";this.videoId=R.docid||R.video_id||R.videoId||R.id||void 0;this.watchUrl=R.watchUrl||void 0}}; cvp=function(O){var R,J,l=(R=O.getWatchNextResponse())==null?void 0:(J=R.contents)==null?void 0:J.twoColumnWatchNextResults,u,F,G,y,w;O=(u=O.getWatchNextResponse())==null?void 0:(F=u.playerOverlays)==null?void 0:(G=F.playerOverlayRenderer)==null?void 0:(y=G.endScreen)==null?void 0:(w=y.watchNextEndScreenRenderer)==null?void 0:w.results;if(!O){var I,C;O=l==null?void 0:(I=l.endScreen)==null?void 0:(C=I.endScreen)==null?void 0:C.results}return O}; g.Xv=function(O){var R,J,l;O=g.x((R=O.getWatchNextResponse())==null?void 0:(J=R.playerOverlays)==null?void 0:(l=J.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,vx);return g.x(O==null?void 0:O.playerBar,Owh)}; R9x=function(O){this.L=O.playback_progress_0s_url;this.B=O.playback_progress_2s_url;this.S=O.playback_progress_10s_url}; JG2=function(){if(Tq===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(R){}a:{try{var O=!!self.localStorage}catch(R){O=!1}if(O&&(O=g.eP(g.dZ()+"::yt-player"))){Tq=new x0(O);break a}Tq=void 0}}return Tq}; g.$I=function(){var O=JG2();if(!O)return{};try{var R=O.get("yt-player-lv");return JSON.parse(R||"{}")}catch(J){return{}}}; g.grs=function(O){var R=JG2();R&&(O=JSON.stringify(O),R.set("yt-player-lv",O))}; g.M_=function(O){return g.$I()[O]||0}; g.q_=function(O,R){var J=g.$I();R!==J[O]&&(R!==0?J[O]=R:delete J[O],g.grs(J))}; g.kI=function(O){return g.A(function(R){return R.return(g.jD(iwH(),O))})}; br=function(O,R,J,l,u,F,G,y){var w,I,C,r,t,Z;return g.A(function(V){switch(V.S){case 1:return w=g.M_(O),w===4?V.return(4):g.k(V,g.cu(),2);case 2:I=V.L;if(!I)throw g.E4("wiac");if(!y||G===void 0){V.pJ(3);break}return g.k(V,ltz(y,G),4);case 4:G=V.L;case 3:return C=J.lastModified||"0",g.k(V,g.kI(I),5);case 5:return r=V.L,g.N0(V,6),sE++,g.k(V,g.kS(r,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",jG:!0},function(m){if(F!==void 0&&G!==void 0){var E=""+O+"|"+R.id+"|"+C+"|"+String(F).padStart(10, "0");E=g.s4(m.objectStore("media"),G,E)}else E=g.aJ.resolve(void 0);var a=uCH(O,R.ke()),v=uCH(O,!R.ke()),b={fmts:Fo2(l),format:J||{}};a=g.s4(m.objectStore("index"),b,a);var W=l.downloadedEndTime===-1;b=W?m.objectStore("index").get(v):g.aJ.resolve(void 0);var B={fmts:"music",format:{}};m=W&&u&&!R.ke()?g.s4(m.objectStore("index"),B,v):g.aJ.resolve(void 0);return g.aJ.all([m,b,E,a]).then(function(z){z=g.N(z);z.next();z=z.next().value;sE--;var Y=g.M_(O);if(Y!==4&&W&&u||z!==void 0&&g.GCW(z.fmts))Y=1,g.q_(O, Y);return Y})}),8); case 8:return V.return(V.L);case 6:t=g.Tz(V);sE--;Z=g.M_(O);if(Z===4)return V.return(Z);g.q_(O,4);throw t;}})}; g.KoT=function(O){var R,J;return g.A(function(l){if(l.S==1)return g.k(l,g.cu(),2);if(l.S!=3){R=l.L;if(!R)throw g.E4("ri");return g.k(l,g.kI(R),3)}J=l.L;return l.return(g.kS(J,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(u){var F=IDBKeyRange.bound(O+"|",O+"~");return u.objectStore("index").getAll(F).then(function(G){return G.map(function(y){return y?y.format:{}})})}))})}; wOB=function(O,R,J,l,u){var F,G,y;return g.A(function(w){if(w.S==1)return g.k(w,g.cu(),2);if(w.S!=3){F=w.L;if(!F)throw g.E4("rc");return g.k(w,g.kI(F),3)}G=w.L;y=g.kS(G,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(I){var C=""+O+"|"+R+"|"+J+"|"+String(l).padStart(10,"0");return I.objectStore("media").get(C)}); return u?w.return(y.then(function(I){if(I===void 0)throw Error("No data from indexDb");return yGs(u,I)}).catch(function(I){throw new g.Ys("Error while reading chunk: "+I.name+", "+I.message); })):w.return(y)})}; g.GCW=function(O){return O?O==="music"?!0:O.includes("dlt=-1")||!O.includes("dlt="):!1}; uCH=function(O,R){return""+O+"|"+(R?"v":"a")}; Fo2=function(O){var R={};return R9((R.dlt=O.downloadedEndTime.toString(),R.mket=O.maxKnownEndTime.toString(),R.avbr=O.averageByteRate.toString(),R))}; CJs=function(O){var R={},J={};O=g.N(O);for(var l=O.next();!l.done;l=O.next()){var u=l.value,F=u.split("|");u.match(g.It0)?(l=Number(F.pop()),isNaN(l)?J[u]="?":(F=F.join("|"),(u=R[F])?(F=u[u.length-1],l===F.end+1?F.end=l:u.push({start:l,end:l})):R[F]=[{start:l,end:l}])):J[u]="?"}O=g.N(Object.keys(R));for(l=O.next();!l.done;l=O.next())l=l.value,J[l]=R[l].map(function(G){return G.start+"-"+G.end}).join(","); return J}; Wx=function(O){g.y8.call(this);this.L=null;this.B=new B4;this.L=null;this.j=new Set;this.crossOrigin=O||""}; rGW=function(O,R,J){for(J=AX(O,J);J>=0;){var l=O.levels[J];if(l.isLoaded(eN(l,R))&&(l=g.Px(l,R)))return l;J--}return g.Px(O.levels[0],R)}; orh=function(O,R,J){J=AX(O,J);for(var l,u;J>=0;J--)if(l=O.levels[J],u=eN(l,R),!l.isLoaded(u)){l=O;var F=J,G=F+"-"+u;l.j.has(G)||(l.j.add(G),l.B.enqueue(F,{C7:F,ZN:u}))}t7H(O)}; t7H=function(O){if(!O.L&&!O.B.isEmpty()){var R=g.e(O.B.remove());O.L=Zwz(O,R)}}; Zwz=function(O,R){var J=document.createElement("img");O.crossOrigin&&(J.crossOrigin=O.crossOrigin);J.src=O.levels[R.C7].Y8(R.ZN);J.onload=function(){var l=R.C7,u=R.ZN;O.L!==null&&(O.L.onload=null,O.L=null);l=O.levels[l];l.loaded.add(u);t7H(O);var F=l.columns*l.rows;u*=F;l=Math.min(u+F-1,l.CU()-1);u=[u,l];O.publish("l",u[0],u[1])}; return J}; g.ps=function(O,R,J,l){this.level=O;this.N=R;this.loaded=new Set;this.level=O;this.N=R;O=J.split("#");this.width=Math.floor(Number(O[0]));this.height=Math.floor(Number(O[1]));this.frameCount=Math.floor(Number(O[2]));this.columns=Math.floor(Number(O[3]));this.rows=Math.floor(Number(O[4]));this.L=Math.floor(Number(O[5]));this.B=O[6];this.signature=O[7];this.videoLength=l}; eN=function(O,R){return Math.floor(R/(O.columns*O.rows))}; g.Px=function(O,R){R>=O.Et()&&O.qS();var J=eN(O,R),l=O.columns*O.rows,u=R%l;R=u%O.columns;u=Math.floor(u/O.columns);var F=O.qS()+1-l*J;if(F1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; V7H=function(O,R,J){return(O=O.levels[R])?O.N8(J):-1}; AX=function(O,R){var J=O.N.get(R);if(J)return J;J=O.levels.length;for(var l=0;l=R)return O.N.set(R,l),l;O.N.set(R,J-1);return J-1}; Hx=function(O,R,J,l){J=J.split("#");J=[J[1],J[2],0,J[3],J[4],-1,J[0],""].join("#");g.ps.call(this,O,R,J,0);this.S=null;this.D=l?2:0}; xI=function(O,R,J,l){Bx.call(this,O,0,void 0,R,!(l===void 0||!l));for(O=0;O(J!=null?J:50)&&(J=XOz.shift())&&hX.delete(J),J=u),u!==J&&O.rT("ssei","dcpn_"+u+"_"+J+"_"+O.clientPlaybackNonce),J)}; Ls=function(O,R){var J=R.raw_watch_next_response;if(!J){var l=R.watch_next_response;l&&(J=JSON.parse(l))}if(J){O.Qh=J;var u=O.Qh.playerCueRangeSet;u&&g.zq(O,u);var F=O.Qh.playerOverlays;if(F){var G=F.playerOverlayRenderer;if(G){var y=G.autonavToggle;y&&(O.autoplaySwitchButtonRenderer=g.x(y,TO_),O.Z("web_player_autonav_use_server_provided_state")&&ns(O)&&(O.autonavState=O.autoplaySwitchButtonRenderer.enabled?2:1));var w=G.videoDetails;if(w){var I=w.embeddedPlayerOverlayVideoDetailsRenderer;var C=w.playerOverlayVideoDetailsRenderer; C&&(C.title&&(R.title=g.V8(C.title)),C.subtitle&&(R.subtitle=g.V8(C.subtitle)))}g.Wv(O.bz)&&(O.E8=!!G.addToMenu);$YA(O,G.shareButton);G.startPosition&&G.endPosition&&(O.progressBarStartPosition=G.startPosition,O.progressBarEndPosition=G.endPosition);var r=G.gatedActionsOverlayRenderer;r&&(O.G8=g.x(r,M7x));var t,Z,V,m=g.x((t=O.getWatchNextResponse())==null?void 0:(Z=t.playerOverlays)==null?void 0:(V=Z.playerOverlayRenderer)==null?void 0:V.infoPanel,qML);if(m){O.oI=Number(m==null?void 0:m.durationMs)|| NaN;if(m==null?0:m.infoPanelOverviewViewModel)O.vW=m==null?void 0:m.infoPanelOverviewViewModel;if(m==null?0:m.infoPanelDetailsViewModel)O.cQ=m==null?void 0:m.infoPanelDetailsViewModel}O.showSeekingControls=!!G.showSeekingControls}}var E,a,v=(E=O.getWatchNextResponse())==null?void 0:(a=E.contents)==null?void 0:a.twoColumnWatchNextResults;if(v){var b=v.desktopOverlay&&g.x(v.desktopOverlay,kC2);b&&(b.suppressShareButton&&(O.showShareButton=!1),b.suppressWatchLaterButton&&(O.E8=!1))}I&&s7h(O,R,I);var W= uE(0,R.autoplay_count),B=g.e(O.getWatchNextResponse()),z,Y=(z=B.contents)==null?void 0:z.twoColumnWatchNextResults,gh,l2,O_,Kx=(gh=B.playerOverlays)==null?void 0:(l2=gh.playerOverlayRenderer)==null?void 0:(O_=l2.autoplay)==null?void 0:O_.playerOverlayAutoplayRenderer,n=cvp(O),mH,Xp=(mH=B.contents)==null?void 0:mH.singleColumnWatchNextResults;if(Xp){var xW;if(((xW=Xp.autoplay)==null?0:xW.autoplay)&&!Xp.playlist){var ab=Xp.autoplay.autoplay.sets,Kt={},$W=new g.aQ(O.T()),vB=null,lQ;if(ab){for(var D= g.N(ab),Gz=D.next();!Gz.done;Gz=D.next()){var dC=Gz.value.autoplayVideoRenderer;if(dC&&dC.compactVideoRenderer){vB=dC.compactVideoRenderer;break}}if(lQ=ab[0].autoplayVideo){var E5=lQ.clickTrackingParams;E5&&(Kt.itct=E5);Kt.autonav="1";Kt.playnext=String(W)}}else Kt.feature="related-auto";var Ms=g.x(lQ,g.cx);if(vB){$W.videoId=vB.videoId;var tV=vB.shortBylineText;tV&&($W.author=g.V8(tV));var PB=vB.title;PB&&($W.title=g.V8(PB))}else Ms!=null&&Ms.videoId&&($W.videoId=Ms.videoId);$W.Mj=Kt;O.suggestions= [];O.l2=$W}}if(n){for(var WR=[],qs=g.N(n),T=qs.next();!T.done;T=qs.next()){var M=T.value,q=void 0,P=null;if(M.endScreenVideoRenderer){var U=M.endScreenVideoRenderer,Df=U.title;P=new g.aQ(O.T());P.videoId=U.videoId;P.lengthSeconds=U.lengthInSeconds||0;var Js=U.publishedTimeText;Js&&(P.publishedTimeText=g.V8(Js));var VA=U.shortBylineText;VA&&(P.author=g.V8(VA));var i2=U.shortViewCountText;i2&&(P.shortViewCount=g.V8(i2));if(Df){P.title=g.V8(Df);var q0=Df.accessibility;if(q0){var zz=q0.accessibilityData; zz&&zz.label&&(P.ariaLabel=zz.label)}}var EC=U.navigationEndpoint;if(EC){q=EC.clickTrackingParams;var DJ=g.x(EC,g.cx),be=g.x(EC,g.PT);DJ?P.gr=DJ:be!=null&&(P.watchUrl=be.url)}var db=U.thumbnailOverlays;if(db)for(var Lz=g.N(db),hc=Lz.next();!hc.done;hc=Lz.next()){var EQ=hc.value.thumbnailOverlayTimeStatusRenderer;if(EQ)if(EQ.style==="LIVE"){P.isLivePlayback=!0;break}else if(EQ.style==="UPCOMING"){P.isUpcoming=!0;break}}P.W=fs(U.thumbnail)}else if(M.endScreenPlaylistRenderer){var ID=M.endScreenPlaylistRenderer, Ww=ID.navigationEndpoint;if(!Ww)continue;var ZR=g.x(Ww,g.cx);if(!ZR)continue;var AH=ZR.videoId;P=new g.Dc(O.T());P.playlistId=ID.playlistId;P.playlistLength=Number(ID.videoCount)||0;P.L=AH||null;P.videoId=AH;var Qi=ID.title;Qi&&(P.title=g.V8(Qi));var Li=ID.shortBylineText;Li&&(P.author=g.V8(Li));q=Ww.clickTrackingParams;P.W=fs(ID.thumbnail)}P&&(q&&(P.sessionData={itct:q}),WR.push(P))}O.suggestions=WR}if(Kx){O.yf=!!Kx.preferImmediateRedirect;O.CG=O.CG||!!Kx.webShowNewAutonavCountdown;O.RU=O.RU||!!Kx.webShowBigThumbnailEndscreen; if(O.CG||O.RU){var M3=Y||null,lL=new g.aQ(O.T());lL.videoId=Kx.videoId;var zL=Kx.videoTitle;if(zL){lL.title=g.V8(zL);var GM=zL.accessibility;if(GM){var TR=GM.accessibilityData;TR&&TR.label&&(lL.ariaLabel=TR.label)}}var QT=Kx.byline;QT&&(lL.author=g.V8(QT));var VL=Kx.publishedTimeText;VL&&(lL.publishedTimeText=g.V8(VL));var DG=Kx.shortViewCountText;DG&&(lL.shortViewCount=g.V8(DG));var ag=Kx.thumbnailOverlays;if(ag)for(var vL=g.N(ag),uX=vL.next();!uX.done;uX=vL.next()){var w1=uX.value.thumbnailOverlayTimeStatusRenderer; if(w1)if(w1.style==="LIVE"){lL.isLivePlayback=!0;break}else if(w1.style==="UPCOMING"){lL.isUpcoming=!0;break}else if(w1.style==="DEFAULT"&&w1.text){lL.lengthText=g.V8(w1.text);var Fi=w1.text.accessibility;if(Fi){var GO=Fi.accessibilityData;GO&&GO.label&&(lL.lF=GO.label||"")}break}}lL.W=fs(Kx.background);var X3=Kx.nextButton;if(X3){var T4=X3.buttonRenderer;if(T4){var $q=T4.navigationEndpoint;if($q){var M8=g.x($q,g.cx);M8&&(lL.gr=M8)}}}if(Kx.topBadges){var q8=Kx.topBadges[0];if(q8){var kq=g.x(q8,bws); kq&&kq.style==="BADGE_STYLE_TYPE_PREMIUM"&&(lL.CcQ=!0)}}var c$=Kx.alternativeTitle;c$&&(lL.Yn=g.V8(c$));var $P={autonav:"1",playnext:String(W)};lL.playlistId&&($P.autoplay="1");if(M3){var OY,xp,KZ,bB,y0=(OY=M3.autoplay)==null?void 0:(xp=OY.autoplay)==null?void 0:(KZ=xp.sets)==null?void 0:(bB=KZ[0])==null?void 0:bB.autoplayVideo;if(y0){var WL=y0.clickTrackingParams;WL&&($P.itct=WL);var wA=g.x(y0,g.cx);wA&&(lL.K6=wA)}}else if(Kx){var A1,ee,PL,pm=(A1=Kx.nextButton)==null?void 0:(ee=A1.buttonRenderer)== null?void 0:(PL=ee.navigationEndpoint)==null?void 0:PL.clickTrackingParams;pm&&($P.itct=pm)}$P.itct||($P.feature="related-auto");lL.Mj=$P;O.suggestions||(O.suggestions=[]);O.l2=lL}Kx.countDownSecs!=null&&(O.IK=Kx.countDownSecs*1E3);Kx.countDownSecsForFullscreen!=null&&(O.e1=Kx.countDownSecsForFullscreen>=0?Kx.countDownSecsForFullscreen*1E3:-1);O.Z("web_autonav_color_transition")&&Kx.watchToWatchTransitionRenderer&&(O.watchToWatchTransitionRenderer=g.x(Kx.watchToWatchTransitionRenderer,Wop))}var Ic= cvp(O);if(Ic){var ZZ,BL,CZ,rA=Ic==null?void 0:(ZZ=Ic[0])==null?void 0:(BL=ZZ.endScreenVideoRenderer)==null?void 0:(CZ=BL.navigationEndpoint)==null?void 0:CZ.clickTrackingParams,HL=g.OI(O);rA&&HL&&(HL.sessionData={itct:rA})}O.Qh.currentVideoThumbnail&&(O.W=fs(O.Qh.currentVideoThumbnail));var RI,xq,Uw,J0,je,Vb=(RI=O.Qh)==null?void 0:(xq=RI.contents)==null?void 0:(Uw=xq.twoColumnWatchNextResults)==null?void 0:(J0=Uw.results)==null?void 0:(je=J0.results)==null?void 0:je.contents;if(Vb&&Vb[1]){var Q9, Lm,Mu,E9,YG=(Q9=Vb[1].videoSecondaryInfoRenderer)==null?void 0:(Lm=Q9.owner)==null?void 0:(Mu=Lm.videoOwnerRenderer)==null?void 0:(E9=Mu.thumbnail)==null?void 0:E9.thumbnails;YG&&YG.length&&(O.profilePicture=YG[YG.length-1].url)}var Yq=Ka(R),t9,fr=(t9=O.getWatchNextResponse())==null?void 0:t9.onResponseReceivedEndpoints;if(fr)for(var Sh=g.N(fr),oc=Sh.next();!oc.done;oc=Sh.next()){var dJ=oc.value;g.x(dJ,RN)&&(O.uO=g.x(dJ,RN));var Nd=g.x(dJ,AGp),d3=void 0;if((d3=Nd)==null?0:d3.entityKeys)O.pp=Nd.entityKeys|| [],Nd.visibleOnLoadKeys&&(O.visibleOnLoadKeys=Nd.visibleOnLoadKeys)}if(O.Z("web_key_moments_markers")){var iR=g.Jd.getState().entities,CE=g.Os("visibility_override","markersVisibilityOverrideEntity");var LA=Jk(iR,"markersVisibilityOverrideEntity",CE);O.sQ=(LA==null?void 0:LA.videoId)===(O.videoId||Yq)&&(LA==null?0:LA.visibilityOverrideMarkersKey)?LA.visibilityOverrideMarkersKey:O.visibleOnLoadKeys;O.visibleOnLoadKeys=[].concat(g.X(O.sQ))}}}; ns=function(O){var R;return((R=O.autoplaySwitchButtonRenderer)==null?void 0:R.enabled)!==void 0}; gr=function(O){return!!(O.B&&O.B.videoInfos&&O.B.videoInfos.length)}; g.GF=function(O){var R=O.V;O.Z("html5_gapless_unlimit_format_selection")&&i1(O)&&(R=!1);var J=!!O.L&&O.L.vy,l=O.bz,u=O.eM(),F=l1(O),G=O.Td,y=R,w=O.isOtf();R=O.zz();var I=O.fJ,C=O.getUserAudio51Preference(),r=u1(O),t=new V22(l);if(l.DA()||l.Z("html5_logging_format_selection"))t.S=!0;t.Iu=F;t.Td=G&&l.V;t.iz=C;g.UU("windows nt 5.1")&&!g.du&&(t.iH=!0);if(F=u)F=g.RQ(l)?KNx(l):!1;F&&(t.SN=!0);y&&(t.iH=!0,t.zJ=!0);w&&!l.Z("html5_otf_prefer_vp9")&&(t.iH=!0);l.playerStyle==="picasaweb"&&(w&&(t.iH=!1),t.Hq= !1);I&&(t.iH=!0);$O(l.D,ML.CHANNELS)&&(l.Z("html5_enable_ac3")&&(t.N=!0),l.Z("html5_enable_eac3")&&(t.D=!0),l.Z("html5_enable_ac3_gapless")&&(t.N1=!0));l.Z("html5_block_8k_hfr")&&(t.Gd=!0);t.j=g.tB(l.experiments,"html5_max_selectable_quality_ordinal");t.J=g.tB(l.experiments,"html5_min_selectable_quality_ordinal");vv&&(t.d5=480);if(J||u)t.Hq=!1;t.AR=!1;t.disableAv1=r;J=pp(l,t.L,void 0,t.disableAv1);J>0&&J<2160&&(N8()||l.Z("html5_format_hybridization"))&&(t.L.supportsChangeType=+N8(),t.qe=J);J>=2160&& (t.OQ=!0);H2h()&&(t.L.serveVp9OverAv1IfHigherRes=0,t.Py=!1);t.zz=R;t.Qh=g.dj||J6()&&!R?!1:!0;t.V=l.Z("html5_format_hybridization");t.fJ=l.Z("html5_disable_encrypted_vp9_live_non_2k_4k");FD(O)&&(t.mM=O.Z("html5_prefer_language_over_codec"));L_()&&O.playerResponse&&O.playerResponse.playerConfig&&O.playerResponse.playerConfig.webPlayerConfig&&O.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(t.N=!0,t.D=!0);O.V&&O.isAd()&&(O.I7&&(t.W=O.I7),O.yl&&(t.B=O.yl));t.xS=O.isLivePlayback&& O.lC()&&O.bz.Z("html5_drm_live_audio_51");t.sQ=O.AO;t.Rz=!FD(O)&&O.Z("html5_disable_voice_boost_for_cabr");return O.Xw=t}; u1=function(O){return O.bz.Z("html5_disable_av1")||O.Z("html5_gapless_shorts_disable_av1")&&i1(O)?!0:!1}; e9x=function(O){x3("drm_pb_s",void 0,O.SN);O.Gd||O.L&&D0(O.L);var R={};O.L&&(R=ROf(O.Sf,g.GF(O),O.bz.D,O.L,function(J){return O.publish("ctmp","fmtflt",J)},!0,new Set)); R=new np(R,O.bz,O.vL,O.useCobaltWidevine?L_()?KQ(O):!1:!1,function(J,l){O.nJ(J,l)}); g.H(O,R);O.bZ=!1;O.loading=!0;m4B(R,function(J){x3("drm_pb_f",void 0,O.SN);for(var l=g.N(J),u=l.next();!u.done;u=l.next())switch(u=u.value,u.flavor){case "fairplay":u.Gd=O.Gd;u.by=O.by;u.OL=O.OL;break;case "widevine":u.S5=O.S5}O.Ek=J;if(O.Ek.length>0&&(O.D=O.Ek[0],O.bz.DA())){J={};l=g.N(Object.entries(O.D.L));for(u=l.next();!u.done;u=l.next()){var F=g.N(u.value);u=F.next().value;F=F.next().value;var G="unk";(u=u.match(/(.*)codecs="(.*)"/))&&(G=u[2]);J[G]=F}O.nJ("drmProbe",J)}O.J$()})}; PJL=function(O,R){if(R.length===0||ys(O))return null;O.bz.D.B&&(Af=!0);var J=O.hp;var l=O.lengthSeconds,u=O.isLivePlayback,F=O.q5,G=O.bz,y=gzL(R);if(u||F){G=G.experiments;l=new NO("",G,!0);l.S=!F;l.vy=!0;l.isManifestless=!0;l.isLive=!F;l.q5=F;R=g.N(R);for(u=R.next();!u.done;u=R.next()){var w=u.value;u=DQ(w,J);y=eY(w);y=vm(y.ju||w.url||"",y.pm,y.s);var I=y.get("id");I&&I.includes("%7E")&&(l.W=!0);var C=void 0;I=(C=G)==null?void 0:C.Vh("html5_max_known_end_time_rebase");C=Number(w.targetDurationSec|| 5);w=Number(w.maxDvrDurationSec||14400);var r=Number(y.get("mindsq")||y.get("min_sq")||"0"),t=Number(y.get("maxdsq")||y.get("max_sq")||"0")||Infinity;l.g2=l.g2||r;l.hj=l.hj||t;var Z=!uB(u.mimeType);y&&VP(l,new ls(y,u,{KE:C,Qa:Z,PA:w,g2:r,hj:t,Qq:300,q5:F,kE:I}))}J=l}else if(y==="FORMAT_STREAM_TYPE_OTF"){l=l===void 0?0:l;F=new NO("",G.experiments,!1);F.duration=l||0;G=g.N(R);for(l=G.next();!l.done;l=G.next())l=l.value,R=DQ(l,J,F.duration),u=eY(l),(u=vm(u.ju||l.url||"",u.pm,u.s))&&(R.streamType==="FORMAT_STREAM_TYPE_OTF"? VP(F,new us(u,R,"sq/0")):VP(F,new tf(u,R,pL(l.initRange),pL(l.indexRange))));F.isOtf=!0;J=F}else{l=l===void 0?0:l;F=new NO("",G.experiments,!1);F.duration=l||0;G=g.N(R);for(l=G.next();!l.done;l=G.next())y=l.value,l=DQ(y,J,F.duration),R=pL(y.initRange),u=pL(y.indexRange),I=eY(y),(y=vm(I.ju||y.url||"",I.pm,I.s))&&VP(F,new tf(y,l,R,u));J=F}F=O.isLivePlayback&&!O.q5&&!O.Hq&&!O.isPremiere;O.Z("html5_live_head_playable")&&(!wr(O)&&F&&O.nJ("missingLiveHeadPlayable",{}),O.bz.SN==="yt"&&(J.Gd=!0));return J}; ys=function(O){return L_()?!KQ(O):d6()?!(!O.Gd||!O.Z("html5_enable_safari_fairplay")&&lo()):!1}; KQ=function(O){return O.Z("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.zq=function(O,R){R=g.N(R);for(var J=R.next();!J.done;J=R.next())if(J=J.value,J.cueRangeSetIdentifier){var l=void 0;O.LI.set(J.cueRangeSetIdentifier,(l=J.playerCueRanges)!=null?l:[])}}; IN=function(O){return!(!O.L||!O.L.isManifestless)}; CQ=function(O){return O.Py?O.isLowLatencyLiveStream&&O.L!=null&&MO(O.L)>=5:O.isLowLatencyLiveStream&&O.L!=void 0&&MO(O.L)>=5}; pO0=function(O){return L_()&&KQ(O)?!1:ys(O)&&(g.XV(O.bz)?!O.isLivePlayback:O.hlsvp)||!lo()||O.l6?!0:!1}; xYz=function(O){O.loading=!0;O.nD=!1;if(BOh(O))g.KoT(O.videoId).then(function(l){Hwz(O,l)}).then(function(){O.J$()}); else{JK(O.Y9)||g.Aa(new g.Ys("DASH MPD Origin invalid: ",O.Y9));var R=O.Y9,J=g.tB(O.bz.experiments,"dash_manifest_version")||4;R=g.s9(R,{mpd_version:J});O.isLowLatencyLiveStream&&O.latencyClass!=="NORMAL"||(R=g.s9(R,{pacing:0}));wGf(R,O.bz.experiments,O.isLivePlayback).then(function(l){O.jN()||(rr(O,l,!0),x3("mrc",void 0,O.SN),O.J$())},function(l){O.jN()||(O.loading=!1,O.publish("dataloaderror",new MC("manifest.net.retryexhausted",{backend:"manifest", rc:l.status},1)))}); x3("mrs",void 0,O.SN)}}; Hwz=function(O,R){var J=R.map(function(w){return w.itag}),l; if((l=O.playerResponse)!=null&&l.streamingData){l=[];if(O.Z("html5_offline_always_use_local_formats")){J=0;for(var u=g.N(R),F=u.next();!F.done;F=u.next()){F=F.value;var G=Object.assign({},F);G.signatureCipher="";l.push(G);G=g.N(O.playerResponse.streamingData.adaptiveFormats);for(var y=G.next();!y.done;y=G.next())if(y=y.value,F.itag===y.itag&&F.xtags===y.xtags){J+=1;break}}JC&&(C=Z.getInfo().audio.numChannels)}C>2&&O.nJ("hlschl",{mn:C});var E;((E=O.Xw)==null?0:E.S)&&O.nJ("hlsfmtaf",{itags:r.join(".")});var a;if(O.Z("html5_enable_vp9_fairplay")&&((a=O.D)==null?0:Lp(a)))for(O.nJ("drm",{sbdlfbk:1}),C=g.N(O.Ek),r=C.next();!r.done;r=C.next())if(r=r.value,QP(r)){O.D=r;break}Vs(O,I)})}return kj()}; YM2=function(O){if(O.isExternallyHostedPodcast&&O.yk){var R=Z4(O.yk);if(!R[0])return kj();O.wcu=R[0];return qlp(O.bz,R[0]).then(function(J){Vs(O,J)})}return O.Ff&&O.Xt?MRx(O.bz,O.isAd(),O.Ff).then(function(J){Vs(O,J)}):kj()}; h9W=function(O){if(O.isExternallyHostedPodcast)return kj();var R=Z4(O.yk,O.Wd);if(O.hlsvp){var J=ftB(O.hlsvp,O.clientPlaybackNonce,O.TR);R.push(J)}return $rL(O.bz,O.isAd(),R,dYL(O)).then(function(l){Vs(O,l)})}; Vs=function(O,R){O.m1=R;O.FO(new f3(g.jO(O.m1,function(J){return J.getInfo()})))}; dYL=function(O){var R={cpn:O.clientPlaybackNonce,c:O.bz.L.c,cver:O.bz.L.cver};O.N2&&(R.ptk=O.N2,R.oid=O.hn,R.ptchn=O.iO,R.pltype=O.XV,O.wu&&(R.m=O.wu));return R}; g.fQ=function(O){return ys(O)&&O.Gd?(O={},O.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",O):O.S&&O.S.hp||null}; z9p=function(O){var R=Sp(O);return R&&R.text?g.V8(R.text):O.paidContentOverlayText}; nrs=function(O){var R=Sp(O);return R&&R.durationMs?S0(R.durationMs):O.paidContentOverlayDurationMs}; Sp=function(O){var R,J,l;return O.playerResponse&&O.playerResponse.paidContentOverlay&&O.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.x((R=O.Qh)==null?void 0:(J=R.playerOverlays)==null?void 0:(l=J.playerOverlayRenderer)==null?void 0:l.playerDisclosure,cGL)||null}; NZ=function(O){var R="";if(O.g9)return O.g9;O.isLivePlayback&&(R=O.allowLiveDvr?"dvr":O.isPremiere?"lp":O.Hq?"window":"live");O.q5&&(R="post");return R}; g.mE=function(O,R){return typeof O.keywords[R]!=="string"?null:O.keywords[R]}; O4s=function(O){return!!O.WQ||!!O.JJ||!!O.q2||!!O.Q4||O.hF||O.J.focEnabled||O.J.rmktEnabled}; g.EI=function(O){return!!(O.Y9||O.yk||O.Ff||O.hlsvp||O.bF())}; Qh=function(O){if(O.Z("html5_onesie")&&O.errorCode)return!1;var R=g.Zo(O.OQ,"ypc");O.ypcPreview&&(R=!1);return O.Dh()&&!O.loading&&(g.EI(O)||g.Zo(O.OQ,"heartbeat")||R)}; Z4=function(O,R){O=g6(O);var J={};if(R){R=g.N(R.split(","));for(var l=R.next();!l.done;l=R.next())(l=l.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(J[l[1]]={width:l[2],height:l[3]})}R=g.N(O);for(l=R.next();!l.done;l=R.next()){l=l.value;var u=J[l.itag];u&&(l.width=u.width,l.height=u.height)}return O}; D4=function(O){var R=O.getAvailableAudioTracks();R=R.concat(O.gK);for(var J=0;J0:O.DZ?!1:O.bz.O0||O.bz.a8||!g.$X(O.bz)?!0:!1:(O.DZ?0:O.O0)&&g.$X(O.bz)?!0:!1;O.Z("html5_log_detailpage_autoplay")&&W$(O)==="detailpage"&&O.nJ("autoplay_info",{autoplay:O.kq,autonav:O.isAutonav,wasDompaused:O.DZ,result:R});return R}; g.pQ=function(O){return O.oauthToken||O.bz.Sa}; rMf=function(O){return FD(O)&&!g.dy(O)}; oLs=function(O){if(O.Z("html5_stateful_audio_normalization")){var R=1,J=g.tB(O.bz.experiments,"html5_default_ad_gain");J&&O.isAd()&&(R=J);var l;if(J=((l=O.N)==null?void 0:l.audio.B)||O.Tn){l=(0,g.Q)();O.uZ=2;var u=l-O.bz.PQ<=O.maxStatefulTimeThresholdSec*1E3;O.applyStatefulNormalization&&u?O.uZ=4:u||(O.bz.CL=Infinity,O.bz.PQ=NaN);u=(O.uZ===4?g.TY(O.bz.CL,O.minimumLoudnessTargetLkfs,O.loudnessTargetLkfs):O.loudnessTargetLkfs)-J;if(O.uZ!==4){var F,G,y,w,I=((F=O.playerResponse)==null?void 0:(G=F.playerConfig)== null?void 0:(y=G.audioConfig)==null?void 0:(w=y.loudnessNormalizationConfig)==null?void 0:w.statelessLoudnessAdjustmentGain)||0;u+=I}u=Math.min(u,0);O.preserveStatefulLoudnessTarget&&(O.bz.CL=J+u,O.bz.PQ=l);O=Math.min(1,Math.pow(10,u/20))||R}else O=tzx(O)}else O=tzx(O);return O}; tzx=function(O){var R=1,J=g.tB(O.bz.experiments,"html5_default_ad_gain");J&&O.isAd()&&(R=J);var l;if(J=((l=O.N)==null?void 0:l.audio.N)||O.zW)O.uZ=1;return Math.min(1,Math.pow(10,-J/20))||R}; l1=function(O){var R=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],J=RZ(O.bz)==="TVHTML5_SIMPLY"&&O.bz.L.ctheme==="MUSIC";O.Ie||!g.p9(O.bz)&&!J||!R.includes(O.musicVideoType)&&!O.isExternallyHostedPodcast||(O.Ie=!0);if(R=g.Q3())R=/Starboard\/([0-9]+)/.exec(g.aW()),R=(R?parseInt(R[1],10):NaN)<10;J=O.bz;J=(RZ(J)==="TVHTML5_CAST"||RZ(J)==="TVHTML5"&&(J.L.cver.startsWith("6.20130725")||J.L.cver.startsWith("6.20130726")))&&O.bz.L.ctheme==="MUSIC";var l;if(l=!O.Ie)J||(J=O.bz,J=RZ(J)=== "TVHTML5"&&J.L.cver.startsWith("7")),l=J;l&&!R&&(R=O.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",J=(O.Z("cast_prefer_audio_only_for_atv_and_uploads")||O.Z("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&O.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",R||J||O.isExternallyHostedPodcast)&&(O.Ie=!0);return O.bz.deviceIsAudioOnly||O.Ie&&O.bz.V}; B$=function(O){var R,J,l;return((R=O.playerResponse)==null?void 0:(J=R.playerConfig)==null?void 0:(l=J.compositeVideoConfig)==null?void 0:l.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.Z42=function(O){return O.Z("html5_enable_sabr_live_captions")&&O.vy()&&FD(O)||B$(O)}; H$=function(O){var R,J,l;return!!((R=O.playerResponse)==null?0:(J=R.playerConfig)==null?0:(l=J.mediaCommonConfig)==null?0:l.splitScreenEligible)}; xD=function(O){var R;return!((R=O.playerResponse)==null||!R.compositePlayabilityStatus)}; VzH=function(O){return isNaN(O)?0:Math.max((Date.now()-O)/1E3-30,0)}; UI=function(O){return!(!O.Hi||!O.bz.V)&&O.bF()}; jp=function(O){return O.Fn&&O.enableServerStitchedDai}; fs_=function(O){return O.CE&&!O.Ax}; FD=function(O){var R=O.Z("html5_enable_sabr_on_drive")&&O.bz.SN==="gd";if(O.oJ)return O.CE&&O.nJ("fds",{fds:!0},!0),!1;if(O.bz.SN!=="yt"&&!R)return O.CE&&O.nJ("dsvn",{ns:O.bz.SN},!0),!1;if(O.cotn||!O.L||O.L.isOtf||O.RQ&&!O.Z("html5_enable_sabr_csdai"))return!1;if(O.Z("html5_use_sabr_requests_for_debugging"))return!0;O.CE&&O.nJ("esfw",{usbc:O.CE,hsu:!!O.Ax},!0);if(O.CE&&O.Ax)return!0;if(O.Z("html5_remove_client_sabr_determination"))return!1;var J=!O.L.vy&&!O.lC();R=J&&Jj&&O.Z("html5_enable_sabr_vod_streaming_xhr"); J=J&&!Jj&&O.Z("html5_enable_sabr_vod_non_streaming_xhr");var l=Qs(O),u=O.Z("html5_enable_sabr_drm_vod_streaming_xhr")&&Jj&&O.lC()&&!O.L.vy&&(O.drmProduct==="1"?!1:!0);(R=R||J||l||u)&&!O.Ax&&O.nJ("sabr",{loc:"m"},!0);return R&&!!O.Ax}; Qs=function(O){var R;if(!(R=Jj&&O.vy()&&O.lC()&&(O.drmProduct==="1"?!1:!0)&&O.Z("html5_sabr_live_drm_streaming_xhr"))){R=O.vy()&&!O.lC()&&Jj;var J=O.vy()&&O.latencyClass!=="ULTRALOW"&&!O.isLowLatencyLiveStream&&O.Z("html5_sabr_live_normal_latency_streaming_xhr"),l=O.isLowLatencyLiveStream&&O.Z("html5_sabr_live_low_latency_streaming_xhr"),u=O.latencyClass==="ULTRALOW"&&O.Z("html5_sabr_live_ultra_low_latency_streaming_xhr");R=R&&(J||l||u)}J=R;R=O.enableServerStitchedDai&&J&&O.Z("html5_enable_sabr_ssdai_streaming_xhr"); J=!O.enableServerStitchedDai&&J;l=O.vy()&&!Jj&&O.Z("html5_enable_sabr_live_non_streaming_xhr");O=Jj&&(O.Zv()||H$(O)&&O.Z("html5_enable_sabr_for_lifa_eligible_streams"));return R||J||l||O}; g.dy=function(O){return O.Dc&&FD(O)}; BOh=function(O){var R;if(R=!!O.cotn)R=O.videoId,R=!!R&&g.M_(R)===1;return R&&!O.Hi}; g.LQ=function(O){if(!O.L||!O.S||!O.N)return!1;var R=O.L.L,J=!!R[O.S.id]&&ba(R[O.S.id].By.L);R=!!R[O.N.id]&&ba(R[O.N.id].By.L);return(O.S.itag==="0"||J)&&R}; YD=function(O){return O.Yj?["OK","LIVE_STREAM_OFFLINE"].includes(O.Yj.status):!0}; lsx=function(O){return(O=O.w$)&&O.showError?O.showError:!1}; dr=function(O,R){return O.Z(R)?!0:(O.fflags||"").includes(R+"=true")}; SGf=function(O){return O.Z("html5_heartbeat_iff_heartbeat_params_filled")}; vrH=function(O,R){R.inlineMetricEnabled&&(O.inlineMetricEnabled=!0);R.playback_progress_0s_url&&(O.Q4=new R9x(R));if(R=R.video_masthead_ad_quartile_urls)O.JJ=R.quartile_0_url,O.L6=R.quartile_25_url,O.n6=R.quartile_50_url,O.gF=R.quartile_75_url,O.fP=R.quartile_100_url,O.q2=R.quartile_0_urls,O.s5=R.quartile_25_urls,O.WJ=R.quartile_50_urls,O.ME=R.quartile_75_urls,O.cJ=R.quartile_100_urls}; atx=function(O){var R={};O=g.N(O);for(var J=O.next();!J.done;J=O.next()){J=J.value;var l=J.split("=");l.length===2?R[l[0]]=l[1]:R[J]=!0}return R}; mY_=function(O){if(O){if(uGz(O))return O;O=Fyp(O);if(uGz(O,!0))return O}return""}; g.NMT=function(O){return O.captionsLanguagePreference||O.bz.captionsLanguagePreference||g.mE(O,"yt:cc_default_lang")||O.bz.CG}; hd=function(O){return!(!O.isLivePlayback||!O.hasProgressBarBoundaries())}; g.OI=function(O){var R;return O.l2||((R=O.suggestions)==null?void 0:R[0])||null}; g.zF=function(O){return O.Ud&&(O.Z("embeds_enable_pfp_always_unbranded")||O.bz.mH)}; g.nQ=function(O){var R,J;return!!((R=O.embeddedPlayerConfig)==null?0:(J=R.embeddedPlayerFlags)==null?0:J.enableMusicUx)}; gL=function(O){return O.bz.N&&O.isPrivate}; g.uR=function(O){var R=O.T(),J=g.lR(R),l=R.zJ;(R.Z("embeds_web_enable_iframe_api_send_full_embed_url")||R.Z("embeds_web_enable_rcat_validation_in_havs")||R.Z("embeds_enable_autoplay_and_visibility_signals"))&&g.Wv(R)&&(l&&(J.thirdParty=Object.assign({},J.thirdParty,{embedUrl:l})),QqL(J,O));if(l=O.AR)J.clickTracking={clickTrackingParams:l};l=J.client||{};var u="EMBED",F=W$(O);F==="leanback"?u="WATCH":R.Z("gvi_channel_client_screen")&&F==="profilepage"?u="CHANNEL":O.fJ?u="LIVE_MONITOR":F==="detailpage"? u="WATCH_FULL_SCREEN":F==="adunit"?u="ADUNIT":F==="sponsorshipsoffer"&&(u="UNKNOWN");l.clientScreen=u;if(R=O.kidsAppInfo)l.kidsAppInfo=JSON.parse(R);(u=O.Hz)&&!R&&(l.kidsAppInfo={contentSettings:{ageUpMode:m20[u]}});if(R=O.kx)l.unpluggedAppInfo={enableFilterMode:!0};(u=O.unpluggedFilterModeType)&&!R&&(l.unpluggedAppInfo={filterModeType:ELp[u]});if(R=O.Re)l.unpluggedLocationInfo=R;J.client=l;l=J.request||{};O.Bc&&(l.isPrefetch=!0);if(R=O.mdxEnvironment)l.mdxEnvironment=R;if(R=O.mdxControlMode)l.mdxControlMode= D2B[R];J.request=l;l=J.user||{};if(R=O.xS)l.credentialTransferTokens=[{token:R,scope:"VIDEO"}];if(R=O.Jo)l.delegatePurchases={oauthToken:R},l.kidsParent={oauthToken:R};J.user=l;if(l=O.contextParams)J.activePlayers=[{playerContextParams:l}];if(O=O.clientScreenNonce)J.clientScreenNonce=O;return J}; g.lR=function(O){var R=g.O8(),J=R.client||{};if(O.forcedExperiments){var l=O.forcedExperiments.split(","),u=[];l=g.N(l);for(var F=l.next();!F.done;F=l.next())u.push(Number(F.value));J.experimentIds=u}if(u=O.homeGroupInfo)J.homeGroupInfo=JSON.parse(u);if(u=O.getPlayerType())J.playerType=u;if(u=O.L.ctheme)J.theme=u;if(u=O.livingRoomAppMode)J.tvAppInfo=Object.assign({},J.tvAppInfo,{livingRoomAppMode:u});u=O.deviceYear;O.Z("html5_propagate_device_year")&&u&&(J.tvAppInfo=Object.assign({},J.tvAppInfo,{deviceYear:u})); if(u=O.livingRoomPoTokenId)J.tvAppInfo=Object.assign({},J.tvAppInfo,{livingRoomPoTokenId:u});R.client=J;J=R.user||{};O.enableSafetyMode&&(J=Object.assign({},J,{enableSafetyMode:!0}));O.pageId&&(J=Object.assign({},J,{onBehalfOfUser:O.pageId}));R.user=J;J=O.zJ;O.Z("embeds_web_enable_iframe_api_send_full_embed_url")||O.Z("embeds_web_enable_rcat_validation_in_havs")||O.Z("embeds_enable_autoplay_and_visibility_signals")||!J||(R.thirdParty={embedUrl:J});return R}; Mzs=function(O,R,J){var l=O.videoId,u=g.uR(O),F=O.T(),G={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(TT()),referer:document.location.toString(),signatureTimestamp:20202};g.Hf();O.isAutonav&&(G.autonav=!0);g.xs(0,141)&&(G.autonavState=g.xs(0,140)?"STATE_OFF":"STATE_ON");G.autoCaptionsDefaultOn=g.xs(0,66);CwT(O)&&(G.autoplay=!0);F.V&&O.cycToken&&(G.cycToken=O.cycToken);F.enablePrivacyFilter&&(G.enablePrivacyFilter=!0);O.isFling&&(G.fling=!0);var y=O.forceAdsUrl;if(y){var w={},I=[];y= y.split(",");y=g.N(y);for(var C=y.next();!C.done;C=y.next()){C=C.value;var r=C.split("|");r.length!==3||C.includes("=")||(r[0]="breaktype="+r[0],r[1]="offset="+r[1],r[2]="url="+r[2]);C={adtype:"video_ad"};r=g.N(r);for(var t=r.next();!t.done;t=r.next()){var Z=g.N(t.value.split("="));t=Z.next().value;Z=lfW(Z);C[t]=Z.join("=")}r=C.url;t=C.presetad;Z=C.viralresponseurl;var V=Number(C.campaignid);if(C.adtype==="in_display_ad")r&&(w.url=r),t&&(w.presetAd=t),Z&&(w.viralAdResponseUrl=Z),V&&(w.viralCampaignId= String(V));else if(C.adtype==="video_ad"){var m={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(C.offset)||0)}};if(C=asB[C.breaktype])m.breakType=C;r&&(m.url=r);t&&(m.presetAd=t);Z&&(m.viralAdResponseUrl=Z);V&&(m.viralCampaignId=String(V));I.push(m)}}G.forceAdParameters={videoAds:I,inDisplayAd:w}}O.isInlinePlaybackNoAd&&(G.isInlinePlaybackNoAd=!0);O.isLivingRoomDeeplink&&(G.isLivingRoomDeeplink=!0);w=O.D1J;if(w!=null){w={startWalltime:String(w)};if(I=O.Bi)w.manifestDuration=String(I||14400); G.liveContext=w}if(O.mutedAutoplay){G.mutedAutoplay=!0;w=F.getWebPlayerContextConfig();var E,a;(w==null?0:(E=w.embedsHostFlags)==null?0:E.allowMutedAutoplayDurationMode)&&(w==null?0:(a=w.embedsHostFlags)==null?0:a.allowMutedAutoplayDurationMode.includes(vLH[O.mutedAutoplayDurationMode]))&&(G.mutedAutoplayDurationMode=vLH[O.mutedAutoplayDurationMode])}if(O.DZ?0:O.O0)G.splay=!0;E=O.vnd;E===5&&(G.vnd=E);E={};if(a=O.isMdxPlayback)E.triggeredByMdx=a;if(a=O.Ip)E.skippableAdsSupported=a.split(",").includes("ska"); if(I=O.lV){a=O.fR;w=[];I=g.N(LC_(I));for(y=I.next();!y.done;y=I.next()){y=y.value;C=y.platform;y={applicationState:y.ev?"INACTIVE":"ACTIVE",clientFormFactor:X7H[C]||"UNKNOWN_FORM_FACTOR",clientName:diT[y.FM]||"UNKNOWN_INTERFACE",clientVersion:y.deviceVersion||"",platform:TMs[C]||"UNKNOWN_PLATFORM"};C={};if(a){r=void 0;try{r=JSON.parse(a)}catch(v){g.Aa(v)}r&&(C={params:[{key:"ms",value:r.ms}]},r.advertising_id&&(C.advertisingId=r.advertising_id),r.limit_ad_tracking!==void 0&&r.limit_ad_tracking!== null&&(C.limitAdTracking=r.limit_ad_tracking),y.osName=r.os_name,y.userAgent=r.user_agent,y.windowHeightPoints=r.window_height_points,y.windowWidthPoints=r.window_width_points)}w.push({adSignalsInfo:C,remoteClient:y})}E.remoteContexts=w}a=O.sourceContainerPlaylistId;w=O.serializedMdxMetadata;if(a||w)I={},a&&(I.mdxPlaybackContainerInfo={sourceContainerPlaylistId:a}),w&&(I.serializedMdxMetadata=w),E.mdxPlaybackSourceContext=I;G.mdxContext=E;E=R.width;E>0&&(G.playerWidthPixels=Math.round(E));if(R=R.height)G.playerHeightPixels= Math.round(R);J!==0&&(G.vis=J);if(J=F.widgetReferrer)G.widgetReferrer=J.substring(0,128);g.$X(F)&&G&&(G.ancestorOrigins=F.ancestorOrigins);O.defaultActiveSourceVideoId&&(G.compositeVideoContext={defaultActiveSourceVideoId:O.defaultActiveSourceVideoId});if(F=F.getWebPlayerContextConfig())G.encryptedHostFlags=F.encryptedHostFlags;l={videoId:l,context:u,playbackContext:{contentPlaybackContext:G}};O.reloadPlaybackParams&&(l.playbackContext.reloadPlaybackContext={reloadPlaybackParams:O.reloadPlaybackParams}); O.contentCheckOk&&(l.contentCheckOk=!0);if(u=O.clientPlaybackNonce)l.cpn=u;if(u=O.playerParams)l.params=u;if(u=O.playlistId)l.playlistId=u;O.racyCheckOk&&(l.racyCheckOk=!0);u=O.T();if(G=u.embedConfig)l.serializedThirdPartyEmbedConfig=G;l.captionParams={};G=g.xs(g.Hf(),65);O.deviceCaptionsOn!=null?l.captionParams.deviceCaptionsOn=O.deviceCaptionsOn:g.zj(u)&&(l.captionParams.deviceCaptionsOn=G!=null?!G:!1);O.Tz&&(l.captionParams.deviceCaptionsLangPref=O.Tz);O.zr.length?l.captionParams.viewerSelectedCaptionLangs= O.zr:g.zj(u)&&(G=g.nK(),G==null?0:G.length)&&(l.captionParams.viewerSelectedCaptionLangs=G);G=O.fetchType==="onesie"&&O.Z("html5_onesie_attach_po_token");F=O.fetchType!=="onesie"&&O.Z("html5_non_onesie_attach_po_token");if(G||F)G=O.T(),G.DZ&&(l.serviceIntegrityDimensions={},l.serviceIntegrityDimensions.poToken=G.DZ);u.Z("fetch_att_independently")&&(l.attestationRequest={omitBotguardData:!0});l.playbackContext||(l.playbackContext={});l.playbackContext.devicePlaybackCapabilities=$2s(O);l.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&O.nJ("noVp9",{});return l}; $2s=function(O){var R=!(O==null?0:O.zz())&&(O==null?void 0:O.vy())&&J6(),J;if(!(J=O==null)){J=g.GF(O);O=O.T().D;var l=Fv("243");J=!(l&&E7(J,l,O,!0)===!0)}return{supportsVp9Encoding:!(J||R),supportXhr:Jj}}; k80=function(O,R){var J,l,u;return g.A(function(F){if(F.S==1)return J={context:g.lR(O.T()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:O.videoId,cpn:O.clientPlaybackNonce}}]},l=g.gA(qGT),g.k(F,g.zO(R,J,l),2);u=F.L;return F.return(u)})}; sGs=function(O,R,J){var l=g.tB(R.experiments,"bg_vm_reinit_threshold");(!UP||(0,g.Q)()-UP>l)&&k80(O,J).then(function(u){u&&(u=u.botguardData)&&g.Q5(u,R)},function(u){O.jN()||(u=kw(u),O.nJ("attf",u.details))})}; Ff=function(O,R){g.p.call(this);this.app=O;this.state=R}; Ko=function(O,R,J){O.state.L.hasOwnProperty(R)||Ge(O,R,J);O.state.J[R]=function(){return J.apply(O,g.As.apply(0,arguments))}; O.state.j.add(R)}; yM=function(O,R,J){O.state.L.hasOwnProperty(R)||Ge(O,R,J);O.app.T().V&&(O.state.V[R]=function(){return J.apply(O,g.As.apply(0,arguments))},O.state.j.add(R))}; Ge=function(O,R,J){O.state.L[R]=function(){return J.apply(O,g.As.apply(0,arguments))}}; g.wL=function(O,R,J){return O.state.L[R].apply(O.state.L,g.X(J))}; II=function(){g.X8.call(this);this.D=new Map}; Co=function(){g.p.apply(this,arguments);this.element=null;this.j=new Set;this.J={};this.V={};this.L={};this.W=new Set;this.B=new II;this.S=new II;this.N=new II;this.D=new II}; b4x=function(O,R,J){typeof O==="string"&&(O={mediaContentUrl:O,startSeconds:R,suggestedQuality:J});a:{if((R=O.mediaContentUrl)&&(R=/\/([ve]|embed)\/([^#?]+)/.exec(R))&&R[2]){R=R[2];break a}R=null}O.videoId=R;return rL(O)}; rL=function(O,R,J){if(typeof O==="string")return{videoId:O,startSeconds:R,suggestedQuality:J};R={};J=g.N(W9B);for(var l=J.next();!l.done;l=J.next())l=l.value,O[l]&&(R[l]=O[l]);return R}; AM2=function(O,R,J,l){if(g.Rb(O)&&!Array.isArray(O)){R="playlist list listType index startSeconds suggestedQuality".split(" ");J={};for(l=0;l32&&l.push("hfr");R.isHdr()&&l.push("hdr");R.primaries==="bt2020"&&l.push("wcg");J.video_quality_features=l}}if(O=O.getPlaylistId())J.list=O;return J}; fo=function(){t0.apply(this,arguments)}; Sl=function(O,R){var J={};if(O.app.T().Hq){O=g.N(BMB);for(var l=O.next();!l.done;l=O.next())l=l.value,R.hasOwnProperty(l)&&(J[l]=R[l]);if(R=J.qoe_cat)O="",typeof R==="string"&&R.length>0&&(O=R.split(",").filter(function(u){return H4x.includes(u)}).join(",")),J.qoe_cat=O; x2_(J)}else for(O=g.N(U20),l=O.next();!l.done;l=O.next())l=l.value,R.hasOwnProperty(l)&&(J[l]=R[l]);return J}; x2_=function(O){var R=O.raw_player_response;if(!R){var J=O.player_response;J&&(R=JSON.parse(J))}delete O.player_response;delete O.raw_player_response;if(R){O.raw_player_response={streamingData:R.streamingData,playerConfig:R.playerConfig};var l;if((l=R.playbackTracking)==null?0:l.qoeUrl)O.raw_player_response=Object.assign({},O.raw_player_response,{playbackTracking:{qoeUrl:R.playbackTracking.qoeUrl}});var u;if((u=R.videoDetails)==null?0:u.videoId)O.raw_player_response=Object.assign({},O.raw_player_response, {videoDetails:{videoId:R.videoDetails.videoId}})}}; NB=function(O,R,J){var l=O.app.yI(J);if(!l)return 0;O=l-O.app.getCurrentTime(J);return R-O}; QGB=function(O){var R=R===void 0?5:R;return O?jGB[O]||R:R}; g.mk=function(){fo.apply(this,arguments)}; L92=function(O){Ge(O,"getInternalApiInterface",O.getInternalApiInterface);Ge(O,"addEventListener",O.s2);Ge(O,"removeEventListener",O.goQ);Ge(O,"cueVideoByPlayerVars",O.Tx);Ge(O,"loadVideoByPlayerVars",O.zUQ);Ge(O,"preloadVideoByPlayerVars",O.zwU);Ge(O,"getAdState",O.getAdState);Ge(O,"sendAbandonmentPing",O.sendAbandonmentPing);Ge(O,"setLoopRange",O.setLoopRange);Ge(O,"getLoopRange",O.getLoopRange);Ge(O,"setAutonavState",O.setAutonavState);Ge(O,"seekTo",O.ylR);Ge(O,"seekBy",O.jFU);Ge(O,"seekToLiveHead", O.seekToLiveHead);Ge(O,"requestSeekToWallTimeSeconds",O.requestSeekToWallTimeSeconds);Ge(O,"seekToStreamTime",O.seekToStreamTime);Ge(O,"startSeekCsiAction",O.startSeekCsiAction);Ge(O,"getStreamTimeOffset",O.getStreamTimeOffset);Ge(O,"getVideoData",O.pB);Ge(O,"setInlinePreview",O.setInlinePreview);Ge(O,"getAppState",O.getAppState);Ge(O,"updateLastActiveTime",O.updateLastActiveTime);Ge(O,"setBlackout",O.setBlackout);Ge(O,"setUserEngagement",O.setUserEngagement);Ge(O,"updateSubtitlesUserSettings",O.updateSubtitlesUserSettings); Ge(O,"getPresentingPlayerType",O.pK);Ge(O,"canPlayType",O.canPlayType);Ge(O,"updatePlaylist",O.updatePlaylist);Ge(O,"updateVideoData",O.updateVideoData);Ge(O,"updateEnvironmentData",O.updateEnvironmentData);Ge(O,"sendVideoStatsEngageEvent",O.dTz);Ge(O,"productsInVideoVisibilityUpdated",O.productsInVideoVisibilityUpdated);Ge(O,"setSafetyMode",O.setSafetyMode);Ge(O,"isAtLiveHead",function(R){return O.isAtLiveHead(void 0,R)}); Ge(O,"getVideoAspectRatio",O.getVideoAspectRatio);Ge(O,"getPreferredQuality",O.getPreferredQuality);Ge(O,"getPlaybackQualityLabel",O.getPlaybackQualityLabel);Ge(O,"setPlaybackQualityRange",O.zfR);Ge(O,"onAdUxClicked",O.onAdUxClicked);Ge(O,"getFeedbackProductData",O.getFeedbackProductData);Ge(O,"getStoryboardFrame",O.getStoryboardFrame);Ge(O,"getStoryboardFrameIndex",O.getStoryboardFrameIndex);Ge(O,"getStoryboardLevel",O.getStoryboardLevel);Ge(O,"getNumberOfStoryboardLevels",O.getNumberOfStoryboardLevels); Ge(O,"getCaptionWindowContainerId",O.getCaptionWindowContainerId);Ge(O,"getAvailableQualityLabels",O.getAvailableQualityLabels);Ge(O,"addCueRange",O.addCueRange);Ge(O,"addUtcCueRange",O.addUtcCueRange);Ge(O,"showAirplayPicker",O.showAirplayPicker);Ge(O,"dispatchReduxAction",O.dispatchReduxAction);Ge(O,"getPlayerResponse",O.Fx);Ge(O,"getWatchNextResponse",O.Xx);Ge(O,"getHeartbeatResponse",O.LB);Ge(O,"getCurrentTime",O.W1);Ge(O,"getDuration",O.H0);Ge(O,"getPlayerState",O.getPlayerState);Ge(O,"getPlayerStateObject", O.eD);Ge(O,"getVideoLoadedFraction",O.getVideoLoadedFraction);Ge(O,"getProgressState",O.getProgressState);Ge(O,"getVolume",O.getVolume);Ge(O,"setVolume",O.ub);Ge(O,"isMuted",O.isMuted);Ge(O,"mute",O.jX);Ge(O,"unMute",O.AS);Ge(O,"loadModule",O.loadModule);Ge(O,"unloadModule",O.unloadModule);Ge(O,"getOption",O.qN);Ge(O,"getOptions",O.getOptions);Ge(O,"setOption",O.setOption);Ge(O,"loadVideoById",O.M6);Ge(O,"loadVideoByUrl",O.oD);Ge(O,"playVideo",O.g6);Ge(O,"loadPlaylist",O.loadPlaylist);Ge(O,"nextVideo", O.nextVideo);Ge(O,"previousVideo",O.previousVideo);Ge(O,"playVideoAt",O.playVideoAt);Ge(O,"getDebugText",O.getDebugText);Ge(O,"getWebPlayerContextConfig",O.getWebPlayerContextConfig);Ge(O,"notifyShortsAdSwipeEvent",O.notifyShortsAdSwipeEvent);Ge(O,"getVideoContentRect",O.getVideoContentRect);Ge(O,"setSqueezeback",O.setSqueezeback);Ge(O,"toggleSubtitlesOn",O.toggleSubtitlesOn);Ge(O,"isSubtitlesOn",O.isSubtitlesOn);Ge(O,"reportPlaybackIssue",O.reportPlaybackIssue);Ge(O,"setAutonav",O.setAutonav);Ge(O, "isNotServable",O.isNotServable);Ge(O,"channelSubscribed",O.channelSubscribed);Ge(O,"channelUnsubscribed",O.channelUnsubscribed);Ge(O,"togglePictureInPicture",O.togglePictureInPicture);Ge(O,"supportsGaplessAudio",O.supportsGaplessAudio);Ge(O,"supportsGaplessShorts",O.supportsGaplessShorts);Ge(O,"enqueueVideoByPlayerVars",function(R){return void O.enqueueVideoByPlayerVars(R)}); Ge(O,"clearQueue",O.clearQueue);Ge(O,"getAudioTrack",O.Af);Ge(O,"setAudioTrack",O.Jlu);Ge(O,"getAvailableAudioTracks",O.tf);Ge(O,"getMaxPlaybackQuality",O.getMaxPlaybackQuality);Ge(O,"getUserPlaybackQualityPreference",O.getUserPlaybackQualityPreference);Ge(O,"getSubtitlesUserSettings",O.getSubtitlesUserSettings);Ge(O,"resetSubtitlesUserSettings",O.resetSubtitlesUserSettings);Ge(O,"setMinimized",O.setMinimized);Ge(O,"setOverlayVisibility",O.setOverlayVisibility);Ge(O,"confirmYpcRental",O.confirmYpcRental); Ge(O,"queueNextVideo",O.queueNextVideo);Ge(O,"handleExternalCall",O.handleExternalCall);Ge(O,"logApiCall",O.logApiCall);Ge(O,"isExternalMethodAvailable",O.isExternalMethodAvailable);Ge(O,"setScreenLayer",O.setScreenLayer);Ge(O,"getCurrentPlaylistSequence",O.getCurrentPlaylistSequence);Ge(O,"getPlaylistSequenceForTime",O.getPlaylistSequenceForTime);Ge(O,"shouldSendVisibilityState",O.shouldSendVisibilityState);Ge(O,"syncVolume",O.syncVolume);Ge(O,"highlightSettingsMenuItem",O.highlightSettingsMenuItem); Ge(O,"openSettingsMenuItem",O.openSettingsMenuItem);Ge(O,"getEmbeddedPlayerResponse",O.getEmbeddedPlayerResponse);Ge(O,"getVisibilityState",O.getVisibilityState);Ge(O,"isMutedByMutedAutoplay",O.isMutedByMutedAutoplay);Ge(O,"isMutedByEmbedsMutedAutoplay",O.isMutedByEmbedsMutedAutoplay);Ge(O,"setGlobalCrop",O.setGlobalCrop);Ge(O,"setInternalSize",O.setInternalSize);Ge(O,"setFauxFullscreen",O.setFauxFullscreen);Ge(O,"setAppFullscreen",O.setAppFullscreen)}; D9=function(O,R,J){O=g.EY(O.Ty(),R);return J?(J.addOnDisposeCallback(O),null):O}; g.aI=function(O,R,J){return O.app.T().eR?R:g.fR("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:R,SHORTCUT:J})}; YGW=function(O){O.Ty().element.setAttribute("aria-live","polite")}; g.vD=function(O,R){g.mk.call(this,O,R);L92(this);yM(this,"addEventListener",this.MI);yM(this,"removeEventListener",this.HAJ);yM(this,"cueVideoByPlayerVars",this.Ku);yM(this,"loadVideoByPlayerVars",this.lgd);yM(this,"preloadVideoByPlayerVars",this.lZR);yM(this,"loadVideoById",this.M6);yM(this,"loadVideoByUrl",this.oD);yM(this,"playVideo",this.g6);yM(this,"loadPlaylist",this.loadPlaylist);yM(this,"nextVideo",this.nextVideo);yM(this,"previousVideo",this.previousVideo);yM(this,"playVideoAt",this.playVideoAt); yM(this,"getVideoData",this.rq);yM(this,"seekBy",this.xTd);yM(this,"seekTo",this.DTS);yM(this,"showControls",this.showControls);yM(this,"hideControls",this.hideControls);yM(this,"cancelPlayback",this.cancelPlayback);yM(this,"getProgressState",this.getProgressState);yM(this,"isInline",this.isInline);yM(this,"setInline",this.setInline);yM(this,"setLoopVideo",this.setLoopVideo);yM(this,"getLoopVideo",this.getLoopVideo);yM(this,"getVideoContentRect",this.getVideoContentRect);yM(this,"getVideoStats",this.qF); yM(this,"getCurrentTime",this.oh);yM(this,"getDuration",this.H0);yM(this,"getPlayerState",this.Oe);yM(this,"getVideoLoadedFraction",this.NF);yM(this,"mute",this.jX);yM(this,"unMute",this.AS);yM(this,"setVolume",this.ub);yM(this,"loadModule",this.loadModule);yM(this,"unloadModule",this.unloadModule);yM(this,"getOption",this.qN);yM(this,"getOptions",this.getOptions);yM(this,"setOption",this.setOption);yM(this,"addCueRange",this.addCueRange);yM(this,"getDebugText",this.getDebugText);yM(this,"getStoryboardFormat", this.getStoryboardFormat);yM(this,"toggleFullscreen",this.toggleFullscreen);yM(this,"isFullscreen",this.isFullscreen);yM(this,"getPlayerSize",this.getPlayerSize);yM(this,"toggleSubtitles",this.toggleSubtitles);this.app.T().Z("embeds_enable_move_set_center_crop_to_public")||yM(this,"setCenterCrop",this.setCenterCrop);yM(this,"setFauxFullscreen",this.setFauxFullscreen);yM(this,"setSizeStyle",this.setSizeStyle);yM(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);yM(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); Pw2(this)}; g.Xf=function(O){O=O.eG();var R=O.tp.get("endscreen");return R&&R.ph()?!0:O.Fo()}; g.Te=function(O,R){O.getPresentingPlayerType()===3?O.publish("mdxautoplaycancel"):O.tR("onAutonavCancelled",R)}; g.MB=function(O){var R=$e(O.eG());return O.app.jt&&!O.isFullscreen()||O.getPresentingPlayerType()===3&&R&&R.rB()&&R.u7()||!!O.getPlaylist()}; g.qB=function(O,R){g.wL(O,"addEmbedsConversionTrackingParams",[R])}; g.sY=function(O){return(O=g.ke(O.eG()))?O.w8():{}}; g.d2p=function(O){O=(O=O.getVideoData())&&O.S;return!!O&&!(!O.audio||!O.video)&&O.mimeType!=="application/x-mpegURL"}; g.bR=function(O,R,J){O=O.cq().element;var l=kM(O.children,function(u){u=Number(u.getAttribute("data-layer"));return J-u||1}); l<0&&(l=-(l+1));gv(O,R,l);R.setAttribute("data-layer",String(J))}; g.WD=function(O){var R=O.T();if(!R.vY)return!1;var J=O.getVideoData();if(!J||O.getPresentingPlayerType()===3)return!1;var l=(!J.isLiveDefaultBroadcast||R.Z("allow_poltergust_autoplay"))&&!hd(J);l=J.isLivePlayback&&(!R.Z("allow_live_autoplay")||!l);var u=J.isLivePlayback&&R.Z("allow_live_autoplay_on_mweb");O=O.getPlaylist();O=!!O&&O.rB();var F=J.Qh&&J.Qh.playerOverlays||null;F=!!(F&&F.playerOverlayRenderer&&F.playerOverlayRenderer.autoplay);F=J.Ud&&F;return!J.ypcPreview&&(!l||u)&&!g.Zo(J.OQ,"ypc")&& !O&&(!g.$X(R)||F)}; zas=function(O,R){O=ha_(O.app.Xf().N);O=g.N(O);for(var J=O.next();!J.done;J=O.next()){J=J.value;var l=J.getAvailableAudioTracks(),u=null;l=g.N(l);for(var F=l.next();!F.done;F=l.next())if(F=F.value,F.getLanguageInfo().getId()===R){u=F;break}u&&J.Sl(u,!0)}}; A0=function(){pa.apply(this,arguments);this.requestHeaders={}}; PD=function(){el||(el=new A0);return el}; po=function(O,R){R?O.requestHeaders.Authorization="Bearer "+R:delete O.requestHeaders.Authorization}; g.BD=function(O){g.p.call(this);var R=this;this.LJ=O;this.nG={Ib:function(){return R.LJ}}}; g.HD=function(O,R,J,l){l=l===void 0?!1:l;g.tQ.call(this,R);var u=this;this.X=O;this.OQ=l;this.V=new g.p8(this);this.fade=new g.iz(this,J,!0,void 0,void 0,function(){u.W4()}); g.H(this,this.V);g.H(this,this.fade)}; xe=function(O){var R=O.X.getRootNode();return O.X.Z("web_watch_pip")||O.X.Z("web_shorts_pip")?BE(R):document}; nLs=function(O){O.S&&(document.activeElement&&g.lu(O.element,document.activeElement)&&O.S.focus(),O.S.setAttribute("aria-expanded","false"),O.S=void 0);g.MN(O.V);O.W=void 0}; UY=function(O,R,J){O.vQ()?O.Xh():O.EZ(R,J)}; jl=function(O,R,J,l){l=new g.L({Y:"div",q1:["ytp-linked-account-popup-button"],FQ:l,C:{role:"button",tabindex:"0"}});R=new g.L({Y:"div",G:"ytp-linked-account-popup",C:{role:"dialog","aria-modal":"true",tabindex:"-1"},K:[{Y:"div",G:"ytp-linked-account-popup-title",FQ:R},{Y:"div",G:"ytp-linked-account-popup-description",FQ:J},{Y:"div",G:"ytp-linked-account-popup-buttons",K:[l]}]});g.HD.call(this,O,{Y:"div",G:"ytp-linked-account-popup-container",K:[R]},100);var u=this;this.dialog=R;g.H(this,this.dialog); l.listen("click",function(){u.Xh()}); g.H(this,l);g.bR(this.X,this.element,4);this.hide()}; g.Lo=function(O,R,J,l){g.tQ.call(this,O);this.priority=R;J&&g.QM(this,J);l&&this.KG(l)}; g.Ye=function(O,R,J,l){O=O===void 0?{}:O;R=R===void 0?[]:R;J=J===void 0?!1:J;l=l===void 0?!1:l;R.push("ytp-menuitem");var u=O;"role"in u||(u.role="menuitem");J||(u=O,"tabindex"in u||(u.tabindex="0"));O={Y:J?"a":"div",q1:R,C:O,K:[{Y:"div",G:"ytp-menuitem-icon",FQ:"{{icon}}"},{Y:"div",G:"ytp-menuitem-label",FQ:"{{label}}"},{Y:"div",G:"ytp-menuitem-content",FQ:"{{content}}"}]};l&&O.K.push({Y:"div",G:"ytp-menuitem-secondary-icon",FQ:"{{secondaryIcon}}"});return O}; g.QM=function(O,R){O.updateValue("label",R)}; dL=function(O){g.Lo.call(this,g.Ye({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var R=this;this.X=O;this.S=this.L=!1;this.Fh=O.jo();O.createServerVe(this.element,this,!0);this.U(this.X,"settingsMenuVisibilityChanged",function(J){R.JT(J)}); this.U(this.X,"videodatachange",this.N);this.listen("click",this.onClick);this.N()}; h0=function(O){return O?g.V8(O):""}; ze=function(O){g.p.call(this);this.api=O}; no=function(O){ze.call(this,O);var R=this;Ge(O,"setAccountLinkState",function(J){R.setAccountLinkState(J)}); Ge(O,"updateAccountLinkingConfig",function(J){R.updateAccountLinkingConfig(J)}); O.addEventListener("videodatachange",function(J,l){R.onVideoDataChange(l)}); O.addEventListener("settingsMenuInitialized",function(){R.menuItem=new dL(R.api);g.H(R,R.menuItem)})}; cMf=function(O){this.api=O;this.L={}}; cD=function(O,R,J,l){R in O.L||(J=new g.uN(J,l,{id:R,priority:2,namespace:"appad"}),O.api.zy([J],1),O.L[R]=J)}; OH=function(O){ze.call(this,O);var R=this;this.events=new g.p8(this);g.H(this,this.events);this.L=new cMf(this.api);this.events.U(this.api,"legacyadtrackingpingreset",function(){R.L.L={}}); this.events.U(this.api,"legacyadtrackingpingchange",function(J){var l=R.L;cD(l,"part2viewed",1,0x8000000000000);cD(l,"engagedview",Math.max(1,J.SG*1E3),0x8000000000000);if(!J.isLivePlayback){var u=J.lengthSeconds*1E3;i1(J)&&l.api.Z("html5_shorts_gapless_ads_duration_fix")&&(u=l.api.getProgressState().seekableEnd*1E3-J.Q1);cD(l,"videoplaytime25",u*.25,u);cD(l,"videoplaytime50",u*.5,u);cD(l,"videoplaytime75",u*.75,u);cD(l,"videoplaytime100",u,0x8000000000000);cD(l,"conversionview",u,0x8000000000000); cD(l,"videoplaybackstart",1,u);cD(l,"videoplayback2s",2E3,u);cD(l,"videoplayback10s",1E4,u)}}); this.events.U(this.api,g.Gh("appad"),this.S);this.events.U(this.api,g.KR("appad"),this.S)}; gkL=function(O,R,J){if(!(J in R))return!1;R=R[J];Array.isArray(R)||(R=[R]);R=g.N(R);for(J=R.next();!J.done;J=R.next()){J=J.value;var l={CPN:O.api.getVideoData().clientPlaybackNonce};J=g.sg(J,l);l=void 0;l=l===void 0?!1:l;(l=Ox(R2(J,OKx),J,l,"Active View 3rd Party Integration URL"))||(l=void 0,l=l===void 0?!1:l,l=Ox(R2(J,RCT),J,l,"Google/YouTube Brand Lift URL"));l||(l=void 0,l=l===void 0?!1:l,l=Ox(R2(J,JUL),J,l,"Nielsen OCR URL"));g.He(J,void 0,l)}return!0}; RE=function(O,R){iKT(O,R).then(function(J){g.He(R,void 0,void 0,J)})}; Jl=function(O,R){R.forEach(function(J){RE(O,J)})}; iKT=function(O,R){return g.$T(O.api.T())&&K_(R)&&G3(R)?g.lr(O.api.T(),g.pQ(O.api.getVideoData())).then(function(J){var l;J&&(l={Authorization:"Bearer "+J});return l},void 0):sU()}; liB=function(O){ze.call(this,O);this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"videoready",function(R){if(O.getPresentingPlayerType()===1){var J,l,u={playerDebugData:{pmlSignal:!!((J=R.getPlayerResponse())==null?0:(l=J.adPlacements)==null?0:l.some(function(F){var G;return F==null?void 0:(G=F.adPlacementRenderer)==null?void 0:G.renderer})), contentCpn:R.clientPlaybackNonce}};g.wj("adsClientStateChange",u)}})}; gp=function(O){g.L.call(this,{Y:"button",q1:["ytp-button","ytp-autonav-toggle"],C:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},K:[{Y:"div",G:"ytp-autonav-toggle-button-container",K:[{Y:"div",G:"ytp-autonav-toggle-button",C:{"aria-checked":"true"}}]}]});this.X=O;this.S=[];this.L=!1;this.isChecked=!0;O.createClientVe(this.element,this,113681);this.U(O,"presentingplayerstatechange",this.JO);this.listen("click",this.onClick);this.X.T().Z("web_player_autonav_toggle_always_listen")&& uy0(this);D9(O,this.element,this);this.JO()}; uy0=function(O){O.S.push(O.U(O.X,"videodatachange",O.JO));O.S.push(O.U(O.X,"videoplayerreset",O.JO));O.S.push(O.U(O.X,"onPlaylistUpdate",O.JO));O.S.push(O.U(O.X,"autonavchange",O.JW))}; FqL=function(O){O.isChecked=O.isChecked;O.Bq("ytp-autonav-toggle-button").setAttribute("aria-checked",String(O.isChecked));var R=O.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";O.updateValue("title",R);O.updateValue("label",R);O.X.Rc()}; Gyx=function(O){return O.X.T().Z("web_player_autonav_use_server_provided_state")&&ns(g.e(O.fG()))}; Kqh=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"standardControlsInitialized",function(){var J=new gp(O);g.H(R,J);O.D1(J,"RIGHT_CONTROLS_LEFT")})}; iY=function(O,R){g.Lo.call(this,g.Ye({role:"menuitemcheckbox","aria-checked":"false"}),R,O,{Y:"div",G:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; lY=function(O,R){O.checked=R;O.element.setAttribute("aria-checked",String(O.checked))}; yUz=function(O){var R=!O.T().zW&&O.getPresentingPlayerType()!==3;return O.isFullscreen()||R}; g.uY=function(O,R,J,l){var u=O.currentTarget;if((J===void 0||!J)&&g.XM(O))return O.preventDefault(),!0;R.pauseVideo();O=g.e(u.getAttribute("href"));g.QS(O,l,!0);return!1}; g.FU=function(O,R,J){if(YX(R.T())&&R.getPresentingPlayerType()!==2){if(g.XM(J))return R.isFullscreen()&&!R.T().externalFullscreen&&R.toggleFullscreen(),J.preventDefault(),!0}else{var l=g.XM(J);l&&R.pauseVideo();g.QS(O,void 0,!0);l&&(g.L9(O),J.preventDefault())}return!1}; Iiz=function(){var O=wUL.includes("es-419")?{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,C:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,C:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};O.G="ytp-subtitles-button-icon";return O}; Go=function(){return{Y:"div",G:"ytp-spinner-container",K:[{Y:"div",G:"ytp-spinner-rotator",K:[{Y:"div",G:"ytp-spinner-left",K:[{Y:"div",G:"ytp-spinner-circle"}]},{Y:"div",G:"ytp-spinner-right",K:[{Y:"div",G:"ytp-spinner-circle"}]}]}]}}; Kj=function(O){if(document.createRange){var R=document.createRange();R&&(R.selectNodeContents(O),O=window.getSelection())&&(O.removeAllRanges(),O.addRange(R))}}; IE=function(O){var R=O.Z("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";iY.call(this,R,g.yo.mZ);var J=this;this.X=O;this.L=!1;this.S=new g.zR(function(){g.KM(J.element,"ytp-menuitem-highlighted")},0); this.Fh=O.jo();this.setIcon({Y:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"path",C:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.B,this);this.listen(wp,this.N);g.H(this,this.S)}; Cj=function(O){ze.call(this,O);var R=this;this.L=!1;O.addEventListener("settingsMenuInitialized",function(){C5h(R)}); O.addEventListener("highlightSettingsMenu",function(J){C5h(R);var l=R.menuItem;J==="menu_item_cinematic_lighting"&&(g.F8(l.element,"ytp-menuitem-highlighted"),g.F8(l.element,"ytp-menuitem-highlight-transition-enabled"),l.S.start())}); Ge(O,"updateCinematicSettings",function(J){R.updateCinematicSettings(J)})}; C5h=function(O){O.menuItem||(O.menuItem=new IE(O.api),g.H(O,O.menuItem),O.menuItem.au(O.L))}; rU2=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"applicationvideodatachange",function(J,l){l=l.clipConfig;J==="dataloaded"&&l&&l.startTimeMs!=null&&l.endTimeMs!=null&&R.api.setLoopRange({startTimeMs:Math.floor(Number(l.startTimeMs)),endTimeMs:Math.floor(Number(l.endTimeMs)),postId:l.postId,type:"clips"})})}; rp=function(O){ze.call(this,O);this.events=new g.p8(O);g.H(this,this.events);Ge(O,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Ge(O,"setCreatorEndscreenHideButton",this.L.bind(this))}; tl=function(O,R,J,l){iY.call(this,"Volumen estable",g.yo.IS);g.F8(this.element,"ytp-drc-menu-item");this.Fh=O.jo();this.B=R;this.L=J;this.hasDrcAudioTrack=l;O.addEventListener("videodatachange",this.S.bind(this));O.Z("mta_drc_mutual_exclusion_removal")&&this.U(O,"onPlaybackAudioChange",this.S);O=this.L()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({Y:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"path",C:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.N,this);lY(this,O);this.Fh.jr(this)}; oE=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);O.Z("html5_show_drc_toggle")&&O.addEventListener("settingsMenuInitialized",function(){R.menuItem||(R.menuItem=new tl(R.api,R.setDrcUserPreference.bind(R),R.getDrcUserPreference.bind(R),R.S.bind(R)),g.H(R,R.menuItem))}); Ge(this.api,"setDrcUserPreference",function(l){R.setDrcUserPreference(l)}); Ge(this.api,"getDrcUserPreference",function(){return R.getDrcUserPreference()}); Ge(this.api,"hasDrcAudioTrack",function(){return R.S()}); var J;this.L=(J=g.Wf("yt-player-drc-pref"))!=null?J:1;this.updateEnvironmentData()}; ZM=function(O){ze.call(this,O);var R=this;this.L={};this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"videodatachange",function(){R.onVideoDataChange()}); this.events.U(O,g.Gh("embargo"),function(J){R.api.k7(!0);var l,u=(l=R.L[J.id])!=null?l:[];l=g.N(u);for(u=l.next();!u.done;u=l.next()){var F=u.value;R.api.hideControls();R.api.Qk("auth",2,"This video isn't available in your current playback area",$w({embargoed:1,id:J.id,idx:J.S,start:J.start}));u=void 0;(F=(u=F.embargo)==null?void 0:u.onTrigger)&&R.api.tR("innertubeCommand",F)}})}; tCp=function(O,R){var J;return(J=R.onEnter)==null?void 0:J.some(O.S)}; okW=function(O,R){R=g.N(R);for(var J=R.next();!J.done;J=R.next()){J=J.value;var l=void 0,u=Number((l=J.playbackPosition)==null?void 0:l.utcTimeMillis)/1E3,F=void 0;l=u+Number((F=J.duration)==null?void 0:F.seconds);F="embargo_"+u;O.api.addUtcCueRange(F,u,l,"embargo",!1);J.onEnter&&(O.L[F]=J.onEnter.filter(O.S))}}; Vo=function(O){ze.call(this,O);var R=this;this.L=[];this.events=new g.p8(O);g.H(this,this.events);Ge(O,"addEmbedsConversionTrackingParams",function(J){R.api.T().Bu&&R.addEmbedsConversionTrackingParams(J)}); this.events.U(O,"veClickLogged",function(J){R.api.hasVe(J)&&(J=J.visualElement.getAsJspb(),J=LO(J,2),R.L.push(J))})}; ZKB=function(O){ze.call(this,O);Ge(O,"isEmbedsShortsMode",function(){return O.isEmbedsShortsMode()})}; VCW=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"initialvideodatacreated",function(J){AU(WU(),16623);R.L=g.X5();var l=O.T().O0&&!J.DZ;if(P$(J)&&l){AU(WU(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(J.getWatchNextResponse()){var u,F=(u=J.getWatchNextResponse())==null?void 0:u.trackingParams;F&&PU(F)}if(J.getPlayerResponse()){var G;(J=(G=J.getPlayerResponse())==null?void 0:G.trackingParams)&&PU(J)}}else AU(WU(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),J.getEmbeddedPlayerResponse()&&(G=(F=J.getEmbeddedPlayerResponse())==null?void 0:F.trackingParams)&&PU(G)}); this.events.U(O,"loadvideo",function(){AU(WU(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:R.L})}); this.events.U(O,"cuevideo",function(){AU(WU(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:R.L})}); this.events.U(O,"largeplaybuttonclicked",function(J){AU(WU(),27240,J.visualElement)}); this.events.U(O,"playlistnextbuttonclicked",function(J){AU(WU(),27240,J.visualElement)}); this.events.U(O,"playlistprevbuttonclicked",function(J){AU(WU(),27240,J.visualElement)}); this.events.U(O,"playlistautonextvideo",function(){AU(WU(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; fj=function(O,R){g.p.call(this);var J=this;this.L=null;this.B=R;R=[];for(var l=0;l<=100;l++)R.push(l/100);R={threshold:R,trackVisibility:!0,delay:1E3};(this.S=window.IntersectionObserver?new IntersectionObserver(function(u){u=u[u.length-1];typeof u.isVisible==="undefined"?document.visibilityState==="visible"&&u.isIntersecting&&u.intersectionRatio>0?J.L=u.intersectionRatio:document.visibilityState==="hidden"?J.L=0:J.L=null:J.L=u.isVisible?u.intersectionRatio:0;typeof J.B==="function"&&J.B(J.L)},R): null)&&this.S.observe(O)}; SPL=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"applicationInitialized",function(){fi2(R)})}; fi2=function(O){var R=O.api.getRootNode(),J,l=O.api.getWebPlayerContextConfig().embedsEnableEmc3ds?ffT((J=R.parentElement)==null?void 0:J.parentElement)||R:R;O.L=new fj(l,function(u){u!=null&&(O.api.T().WQ=u,O.api.T().MM="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.H(O,O.L);O.events.U(O.api,"videoStatsPingCreated",function(u){var F=O.L;F=F.L==null?null:Math.round(F.L*100)/100;u.inview=F!=null?F:void 0;F=O.api.getPlayerSize();if(F.height>0&&F.width>0){F=[Math.round(F.width),Math.round(F.height)];var G=g.hj();G>1&&F.push(G);F=F.join(":")}else F=void 0;u.size=F})}; NG_=function(O){var R;return((R=((O==null?void 0:O.messageRenderers)||[]).find(function(J){return!!J.timeCounterRenderer}))==null?void 0:R.timeCounterRenderer)||null}; Si=function(O){g.L.call(this,{Y:"div",q1:["ytp-player-content","ytp-iv-player-content"],K:[{Y:"div",G:"ytp-free-preview-countdown-timer",K:[{Y:"span",FQ:"{{label}}"},{Y:"span",G:"ytp-free-preview-countdown-timer-separator",FQ:"\u2022"},{Y:"span",FQ:"{{duration}}"}]}]});this.api=O;this.L=null;this.B=this.S=0;this.U(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; Ekx=function(O,R){O.L||(O.S=R,O.B=(0,g.Q)(),O.L=new g.YP(function(){mh_(O)},null),mh_(O))}; mh_=function(O){var R=Math,J=R.round,l=Math.min((0,g.Q)()-O.B,O.S);R=J.call(R,(O.S-l)/1E3);O.updateValue("duration",Ty({seconds:R}));R<=0&&O.L?O.stopTimer():O.L&&O.L.start()}; Dh2=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"basechromeinitialized",function(){R.L=new Si(O);g.H(R,R.L);g.bR(O,R.L.element,4);R.L.hide()})}; NM=function(O){g.L.call(this,{Y:"button",q1:["ytp-fullerscreen-edu-button","ytp-button"],K:[{Y:"div",q1:["ytp-fullerscreen-edu-text"],FQ:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{Y:"div",q1:["ytp-fullerscreen-edu-chevron"],K:[{Y:"svg",C:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{Y:"path",C:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],C:{"data-priority":"2"}});this.Zg=O;this.fade=new g.iz(this,250,void 0,100);this.S=this.L= !1;O.createClientVe(this.element,this,61214);g.H(this,this.fade);this.U(O,"fullscreentoggled",this.au);this.U(O,"presentingplayerstatechange",this.au);this.listen("click",this.onClick);this.au()}; mn=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);Ge(this.api,"updateFullerscreenEduButtonSubtleModeState",function(l){R.updateFullerscreenEduButtonSubtleModeState(l)}); Ge(this.api,"updateFullerscreenEduButtonVisibility",function(l){R.updateFullerscreenEduButtonVisibility(l)}); var J=O.T();O.Z("external_fullscreen_with_edu")&&J.externalFullscreen&&YX(J)&&J.controlsType==="1"&&this.events.U(O,"standardControlsInitialized",function(){R.L=new NM(O);g.H(R,R.L);O.D1(R.L)})}; aiL=function(O){g.L.call(this,{Y:"div",G:"ytp-gated-actions-overlay",K:[{Y:"div",G:"ytp-gated-actions-overlay-background",K:[{Y:"div",G:"ytp-gated-actions-overlay-background-overlay"}]},{Y:"button",q1:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],C:{"aria-label":"Cerrar"},K:[g.Ek()]},{Y:"div",G:"ytp-gated-actions-overlay-bar",K:[{Y:"div",G:"ytp-gated-actions-overlay-text-container",K:[{Y:"div",G:"ytp-gated-actions-overlay-title",FQ:"{{title}}"},{Y:"div",G:"ytp-gated-actions-overlay-subtitle", FQ:"{{subtitle}}"}]},{Y:"div",G:"ytp-gated-actions-overlay-button-container"}]}]});var R=this;this.api=O;this.background=this.Bq("ytp-gated-actions-overlay-background");this.S=this.Bq("ytp-gated-actions-overlay-button-container");this.L=[];this.U(this.Bq("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){R.api.tR("onCloseMiniplayer")}); this.hide()}; XUH=function(O,R){var J=0;J=0;for(var l={};J u&&(u=y.width,F="url("+y.url+")")}J.background.style.backgroundImage=F;XUH(J,l.actionButtons||[]);J.show()}else J.hide()}); g.bR(this.api,this.L.element,4)}; EH=function(O){ze.call(this,O);var R=this;yM(this.api,"getSphericalProperties",function(){return R.getSphericalProperties()}); yM(this.api,"setSphericalProperties",function(){R.setSphericalProperties.apply(R,g.X(g.As.apply(0,arguments)))}); Ko(this.api,"getSphericalProperties",function(){return R.api.getPresentingPlayerType()===2?{}:R.getSphericalProperties()}); Ko(this.api,"setSphericalProperties",function(){var J=g.As.apply(0,arguments);R.api.getPresentingPlayerType()!==2&&R.setSphericalProperties.apply(R,g.X(J))})}; DM=function(O){ze.call(this,O);Ge(O,"createClientVe",this.createClientVe.bind(this));Ge(O,"createServerVe",this.createServerVe.bind(this));Ge(O,"destroyVe",this.destroyVe.bind(this));Ge(O,"hasVe",this.hasVe.bind(this));Ge(O,"logClick",this.logClick.bind(this));Ge(O,"logVisibility",this.logVisibility.bind(this));Ge(O,"setTrackingParams",this.setTrackingParams.bind(this))}; aE=function(O,R,J,l){function u(G){var y=!(G.status!==204&&G.status!==200&&!G.response),w;G={succ:""+ +y,rc:G.status,lb:((w=G.response)==null?void 0:w.byteLength)||0,rt:((0,g.Q)()-F).toFixed(),shost:g.vQ(O),trigger:R};$hp(G,O);J&&J(G);l&&!y&&l(new MC("pathprobe.net",G))} var F=(0,g.Q)();g.a9(O,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:u,onTimeout:u})}; $hp=function(O,R){var J;((J=window.performance)==null?0:J.getEntriesByName)&&(R=performance.getEntriesByName(R))&&R.length&&(R=R[0],O.pedns=(R.domainLookupEnd-R.startTime).toFixed(),O.pecon=(R.connectEnd-R.domainLookupEnd).toFixed(),O.perqs=(R.requestStart-R.connectEnd).toFixed(),MCz&&(O.perqsa=R.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; qP0=function(O){MCz=O}; vF=function(O,R){this.B3=O;this.policy=R;this.playbackRate=1}; kyT=function(O,R){var J=Math.min(2.5,fb(O.B3));O=XU(O);return R-J*O}; To=function(O,R,J,l,u){u=u===void 0?!1:u;if(O.policy.Pu)return Math.ceil(O.policy.Pu*R);O.policy.HI&&(l=Math.abs(l));l/=O.playbackRate;var F=1/m1(O.B3);J=Math.max(.9*(l-3),fb(O.B3)+O.B3.S.L*F)/F*.8/(R+J);J=Math.min(J,l);O.policy.Ax>0&&u&&(J=Math.max(J,O.policy.Ax));return sYT(O,J,R)}; sYT=function(O,R,J){return Math.ceil(Math.max(Math.max(O.policy.Ra,O.policy.q2*J),Math.min(Math.min(O.policy.Iu,31*J),Math.ceil(R*J))))||O.policy.Ra}; bKB=function(O,R,J){J=To(O,R.L.info.Wq,J.L.info.Wq,0);var l=fb(O.B3)+J/m1(O.B3);return Math.max(l,l+O.policy.zr-J/R.L.info.Wq)}; XU=function(O){return m1(O.B3,!O.policy.CE,O.policy.Yj)}; $a=function(O){return XU(O)/O.playbackRate}; MM=function(O,R,J){var l=O.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],u=O.policy.playbackStartPolicy.startMinReadaheadPolicy||[];O=Infinity;R=g.N(R&&l.length>0?l:u);for(l=R.next();!l.done;l=R.next())l=l.value,u=l.minReadaheadMs||0,J<(l.minBandwidthBytesPerSec||0)||O>u&&(O=u);return O0&&(this.S=J.V$)}; P52=function(O,R,J,l,u){if(!l.info.D){if(J.length===0)J.push(l);else{var F;(O=(F=J.pop())==null?void 0:g.GG(F,l))?J.push(O):J.push(l)}return u}var G;(J=(G=J.pop())==null?void 0:g.GG(G,l))||(J=l);if(O.policy.Py&&J.info.S)return O.logger&&O.logger({incompleteSegment:J.info.er()}),u;l=O.jm(J);u=l.XQ;l={clipId:l.clipId,formatId:l.formatId,startTimeMs:l.startTimeMs,durationMs:l.gb,T_:u,CA:u};u=Wq2(R,l.startTimeMs);(J=u>=0?R[u]:null)&&AUW(O,J,l)?l=J:(u+=1,R.splice(u,0,l));J=0;for(F=u+1;F=I+G.S?G=!0:C+G.S=0?O:-O-2}; pUA=function(O,R){if(O.yd){var J=O.yd.Ap();if(J.length!==0){if(O.B&&R){var l=O.B,u=l.info.N;!Ig(J,u)&&l.info.J>0&&(0,g.Q)()-O.j<5E3&&(O.logger&&O.logger({dend:l.info.er()}),J=SrH(J,u,u+.01))}O.policy.HP&&O.logger&&O.logger({cbri:""+O.L});l=[];for(var F=u=0;u=G){var C=0;if(O.x9){var r=ka(O.x9,w*1E3);r&&(C=r.Us/1E3)}r=Object.assign({},O.GJ[F]);var t=O.Dg.B.get(bi(O.GJ[F].formatId)), Z=Math.max(w,G);G=t.index.F8(Z+O.S/1E3-C);w=t.index.getStartTime(G)+C;var V=G+ +(Math.abs(w-Z)>O.S/1E3);Z=V+O.N;V=(t.index.getStartTime(V)+C)*1E3;F!==O.L||R?(r.T_=Z,r.startTimeMs=V):(O.logger&&O.logger({pEvict:"1",og:r.startTimeMs,adj:w*1E3}),r.T_=G+O.N,r.startTimeMs=w*1E3);G=void 0;w=((G=O.B)==null?void 0:G.info.duration)||11;F===O.L&&yO.S/1E3);G=w+O.N;C=(t.index.Sj(w)+C)*1E3;r.CA=G;r.durationMs= C-r.startTimeMs;r.T_<=r.CA&&l.push(r)}IO.S)return!1;if(eCT(O,R.formatId,J.formatId))return R.durationMs=Math.max(l,u)-R.startTimeMs,R.CA=Math.max(R.CA,J.CA),!0;if(Math.abs(R.startTimeMs-J.startTimeMs)<=O.S){if(R.durationMs>J.durationMs+O.S){O=R.formatId;var F=R.T_,G=R.CA;R.formatId=J.formatId;R.durationMs=J.durationMs;R.T_=J.T_;R.CA=J.CA;J.formatId=O;J.startTimeMs=u;J.durationMs=l-u;J.T_=F;J.CA=G;return!1}R.formatId=J.formatId;return!0}l> J.startTimeMs&&(R.durationMs=J.startTimeMs-R.startTimeMs,R.clipId===J.clipId&&(R.CA=J.T_-1));return!1}; eCT=function(O,R,J){return R.itag!==J.itag||R.xtags!==J.xtags?!1:O.Dg.vy||R.lmt===J.lmt}; xhz=function(O,R,J){if(O.logger){for(var l=[],u=0;u=0&&ei(O.audioTrack,O.L)>=0&&F?((O.videoTrack.D||O.audioTrack.D)&&O.loader.nJ("iterativeSeeking",{status:"done",count:O.seekCount}),O.videoTrack.D=!1,O.audioTrack.D=!1):l&&g.aL(function(){if(O.S||!O.policy.fJ)BF(O);else{var G=R.startTime,y=R.duration;if(!O.policy.D){var w=J?O.videoTrack.D:O.audioTrack.D,I=O.videoTrack.j!==-1&&O.audioTrack.j!==-1,C=O.L>=G&&O.L432E3&&ZXp(O.Dg);O.B&&(u=O.B,O.B=0);g.aL(function(){O.policy.D||HF(O,u,102)}); O.loader.nJ("initManifestlessSync",{st:u,ost:u+O.loader.Vd(),a:O.audioTrack.j,v:O.videoTrack.j});O.N&&(O.N.resolve(u+.1),O.N=null);O.policy.D&&HF(O,u,102)}}}; ji=function(O,R){var J=this;this.Of=O;this.requestNumber=++cUz;this.L=this.now();this.V=this.W=NaN;this.J=this.L;this.B=this.d5=this.D=0;this.j=this.L;this.KJ=this.Hq=this.xS=this.Py=this.zJ=this.iz=this.S=this.N=0;this.SN=this.isActive=!1;this.w5=this.sQ=0;this.nG={kNh:function(){return J.xz}}; this.B3=R.B3;this.snapshot=LwB(this.B3);this.policy=this.B3.S;this.Md=!!R.Md;this.gA=R.gA;this.GV=R.GV||0;this.vH=R.vH||0;R.vK&&(this.N1=new yl);var l;this.xz=(l=R.xz)!=null?l:!1;this.Md||U42(this.B3)}; O3L=function(O){O.xS=Math.max(O.xS,O.D-O.zJ);O.Hq=Math.max(O.Hq,O.J-O.Py);O.iz=0}; Qo=function(O,R,J){je2(O.B3,R);O.N1&&(O.N1.add(Math.ceil(R)-Math.ceil(O.J)),O.N1.add(Math.max(0,Math.ceil(J/1024)-Math.ceil(O.D/1024))));var l=R-O.J,u=J-O.D;O.d5=u;O.KJ=Math.max(O.KJ,u/(l+.01)*1E3);O.J=R;O.D=J;O.iz&&J>O.iz&&O3L(O)}; Lj=function(O,R){O.url=R;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Ya=function(O,R){ji.call(this,O,R);this.Rz=this.AT=!1;this.Qh=this.OQ=Infinity;this.Iu=NaN;this.SG=!1;this.Td=NaN;this.mM=this.JR=this.Gd=0;this.S9=R.S9||1;this.P$=R.P$||this.S9;this.Es=R.Es;this.XQ=R.XQ;this.pW=R.pW;Rb2(this);this.Dp(this.L);this.fJ=(this.Td-this.L)/1E3}; JCp=function(O){var R=O.JR||O.Gd;return R?O.snapshot.delay+Math.min(O.vH,(O.V-O.W)/1E3)+R:O.fJ}; dp=function(O,R,J){if(!O.Md){R=Math.max(R,.01);var l=O.GV?Math.max(R,J/O.GV):R,u=O.B3.S.B;u&&(l=R,O.GV&&(l=Math.max(R,J/O.GV*u)));oZ(O.B3,R,J,l)}}; gOs=function(O){return(O.j-O.L)/1E3}; Rb2=function(O){O.Iu=O.L+O.snapshot.delay*1E3;O.SG=!1}; hl=function(O,R){if(O.Es&&O.XQ!==void 0&&O.pW!==void 0){var J=Math,l=J.min,u=O.OQ;var F=O.Es;var G=O.L;if(i3B(F,O.XQ))F=R;else{var y=0;F.ud&&(y=.2);F=G+(F.vH+y)*1E3}O.OQ=l.call(J,u,F);J=Math;l=J.min;u=O.Qh;F=O.Es;G=O.L;y=l0p(F,O.XQ,O.pW);y!==2&&(R=y?R:G+F.vH*1E3,F.ud&&(R+=F.vH*1E3));O.Qh=l.call(J,u,R);O.OQ<=O.L?Rb2(O):(O.Iu=O.OQ,O.SG=!0)}}; u_x=function(O,R){if(O.uF(R,1)){var J=O.getUint8(R);J=J<128?1:J<192?2:J<224?3:J<240?4:5}else J=0;if(J<1||!O.uF(R,J))return[-1,R];if(J===1)O=O.getUint8(R++);else if(J===2)J=O.getUint8(R++),O=O.getUint8(R++),O=(J&63)+64*O;else if(J===3){J=O.getUint8(R++);var l=O.getUint8(R++);O=O.getUint8(R++);O=(J&31)+32*(l+256*O)}else if(J===4){J=O.getUint8(R++);l=O.getUint8(R++);var u=O.getUint8(R++);O=O.getUint8(R++);O=(J&15)+16*(l+256*(u+256*O))}else J=R+1,O.focus(J),Db(O,J,4)?O=v50(O).getUint32(J-O.FA,!0):(l= O.getUint8(J+2)+256*O.getUint8(J+3),O=O.getUint8(J)+256*(O.getUint8(J+1)+256*l)),R+=5;return[O,R]}; zo=function(O){this.Of=O;this.L=new SX}; nj=function(O,R){this.info=O;this.callback=R;this.state=1;this.Vq=this.AU=!1;this.uc=null}; FF0=function(O){return g.QX(O.info.CJ,function(R){return R.type===3})}; cF=function(O,R,J,l){var u=this;l=l===void 0?{}:l;this.policy=R;this.Of=J;this.status=0;this.L=new SX;this.S=0;this.jN=this.B=this.J3=!1;this.xhr=new XMLHttpRequest;this.xhr.open(l.method||"GET",O);if(l.headers)for(O=l.headers,R=g.N(Object.keys(O)),J=R.next();!J.done;J=R.next())J=J.value,this.xhr.setRequestHeader(J,O[J]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return u.ax()}; this.xhr.onload=function(){return u.onDone()}; this.xhr.onerror=function(){return u.onError()}; this.xhr.fetch(function(F){u.L.append(F);u.S+=F.length;F=(0,g.Q)();u.Of.rX(F,u.S)},function(){},l.body||null)}; RX=function(){this.S=this.jU=0;this.L=Array.from({length:O0.length}).fill(0)}; Gbs=function(){}; KFh=function(){this.startTimeMs=(0,g.Q)();this.L=!1}; yCp=function(){this.L=new Gbs}; w0z=function(O,R,J,l){l=l===void 0?1:l;J>=0&&(R in O.L||(O.L[R]=new RX),O.L[R].Ah(J,l))}; I0T=function(O,R,J,l,u){var F=(0,g.Q)(),G=u?u(R):void 0,y;u=(y=G==null?void 0:G.jU)!=null?y:1;if(u!==0){var w;y=(w=G==null?void 0:G.profile)!=null?w:J;w0z(O,y,F-l,u)}return R}; J$=function(O,R,J,l,u){if(R&&typeof R==="object"){var F=function(G){return I0T(O,G,J,l,u)}; if(oY(R))return R.then(F);if(CaT(R))return mq(R,F)}return I0T(O,R,J,l,u)}; rCH=function(){}; tYs=function(O,R){this.S=(new TextEncoder).encode(O);this.L=(new TextEncoder).encode(R)}; ltz=function(O,R){var J,l,u;return g.A(function(F){if(F.S==1){if(!R)return F.return(R);J=gx.ri();l=new g.DL(O.S);return g.k(F,l.encrypt(R,O.L),2)}u=F.L;gx.Fp("woe",J,Math.ceil(R.byteLength/16));return F.return(u)})}; yGs=function(O,R){var J,l,u;return g.A(function(F){if(F.S==1){if(!R)return F.return(R);J=gx.ri();l=new g.DL(O.S);return g.k(F,l.decrypt(R,O.L),2)}u=F.L;gx.Fp("wod",J,Math.ceil(R.byteLength/16));return F.return(u)})}; Z3s=function(O,R){var J=this;this.L=O;this.Of=R;this.loaded=this.status=0;this.error="";O=e3(this.L.get("range")||"");if(!O)throw Error("bad range");this.range=O;this.S=new SX;oO2(this).then(function(){J.Of.bH()},function(l){J.error=""+l||"unknown_err"; J.Of.bH()})}; oO2=function(O){var R,J,l,u,F,G,y,w,I,C,r,t,Z,V,m;return g.A(function(E){if(E.S==1){O.status=200;R=O.L.get("docid");J=tg(O.L.get("fmtid")||"");l=O.L.get("lmt")||"0";u=+(O.L.get("csz")||0);if(!R||!J||!u)throw Error("Invalid local URL");O.L.get("ck")&&O.L.get("civ")&&(F=new tYs(O.L.get("ck"),O.L.get("civ")));G=O.range;y=Math.floor(G.start/u);w=Math.floor(G.end/u);I=y}if(E.S!=5)return I<=w?g.k(E,wOB(R,J,l,I,F),5):E.pJ(0);C=E.L;if(C===void 0)throw Error("invariant: data is undefined");r=I*u;t=(I+1)*u; Z=Math.max(0,G.start-r);V=Math.min(G.end+1,t)-(Z+r);m=new Uint8Array(C.buffer,Z,V);O.S.append(m);O.loaded+=V;O.loaded0&&(u.L=Math.min(u.L+G,10),u.S=F);u.L>0?(u.L--,u=!0):u=!1;if(u)typeof l==="function"&&(l=l()),console.log("plyr."+R,l);else{var y;l=((y=vOW.get(R))!=null?y:0)+1;vOW.set(R,l);l%100===1&&console.warn("plyr","plyr."+R+" is chatty, dropping logs.")}}}; a0_=function(){this.L=10;this.S=Date.now()}; F$=function(O,R){g.p.call(this);var J=this;this.policy=O;this.CJ=R;this.S=0;this.L=null;this.A3=[];this.B=null;this.nG={eV:function(){return J.CJ}}; this.CJ.length===1||g.QX(this.CJ,function(l){return!!l.range})}; Gx=function(O,R,J){O.L&&(NF(O.L,R),R=O.L,O.L=null);for(var l=0,u=0,F=g.N(O.CJ),G=F.next();!G.done;G=F.next())if(G=G.value,G.range&&l+G.B<=O.S)l+=G.B;else{R.getLength();if(Hs(G)&&!J&&O.S+R.getLength()-u=400?(O.lastError="net.badstatus",!0):(u===void 0?0:u)?(O.lastError="ump.spsrejectfailure",!0):J||l!==void 0&&l?!1:(O.lastError=R===204?"net.nocontent":"net.connect",!0)}; rx=function(O,R){if(O.policy.Up)return!1;var J=R.getResponseHeader("content-type"),l=R.iP();O=!l||l<=O.policy.ZT;return(!R.ji()||!J||J.indexOf("text/plain")!==-1)&&O}; kbx=function(O,R){var J="";R=R.Bw();R.getLength()<=O.policy.ZT&&(J=q7z(O,R.I1()));return J}; q7z=function(O,R){var J=X9(R);return JK(J)?(O.logger.debug(function(){return"Redirecting to "+J}),J):""}; yJ=function(O){return T1(O.B,s7(O.O8.Aj))}; sxh=function(O){var R=O.timing.zG();R.shost=s7(O.O8.Aj);return R}; b3L=function(O,R){return(O==null?void 0:O.maxWidth)>(R==null?void 0:R.maxWidth)||(O==null?void 0:O.maxHeight)>(R==null?void 0:R.maxHeight)}; WFH=function(O,R){for(var J=g.N(R.keys()),l=J.next();!l.done;l=J.next())if(l=R.get(l.value),l.length!==0){g.sC(l,function(y,w){return w.maxFramerate-y.maxFramerate}); for(var u=[l[0]],F=0,G=1;GO.L||J.push(l)}return J}; t$=function(O,R,J){var l=Pa2[O]||[];J.Z("html5_shorts_onesie_mismatched_fix")&&(l=p0z[O]||[]);R.push.apply(R,g.X(l));J.Z("html5_early_media_for_drm")&&R.push.apply(R,g.X(BVT[O]||[]))}; LF0=function(O,R){var J=g.GF(O),l=O.T(),u=l.D;l=l.Z("html5_shorts_onesie_mismatched_fix");var F=O.MU();if(l){if(!u.S){if(F&&oX)return oX;if(Zr)return Zr}}else if(Zr&&!u.S)return Zr;var G=[],y=[],w={},I=VJ.concat(H3s);l&&(I=VJ.concat(xLx));O.Z("html5_early_media_for_drm")&&(I=I.concat(ULW),O.Z("allow_vp9_1080p_mq_enc")&&I.push(jxH));var C=[].concat(g.X(QxL));O.Z("html5_iamf_audio_onesie_fmt")&&C.push(["773"]);I=g.N(I);for(var r=I.next();!r.done;r=I.next()){var t=!1;r=g.N(r.value);for(var Z=r.next();!Z.done;Z= r.next()){Z=Z.value;var V=Fv(Z,F&&l);if(V&&V.video&&!(n8(V)&&!J.OQ&&V.video.qualityOrdinal>J.qe)){var m=g.tB(O.T().experiments,"html5_drm_byterate_soft_cap");m>0&&Vg0(V)&&V.Wq>m||(t?(G.push(Z),t$(Z,G,O)):(V=E7(J,V,u),V===!0?(t=!0,G.push(Z),t$(Z,G,O)):w[Z]=V))}}}C=g.N(C);for(I=C.next();!I.done;I=C.next())for(I=g.N(I.value),t=I.next();!t.done;t=I.next())if(t=t.value,(r=o$T(t))&&r.audio&&(O.Z("html5_onesie_51_audio")||!cd(r)&&!Ow(r)))if(r=E7(J,r,u),r===!0){y.push(t);t$(t,y,O);break}else w[t]=r;J.S&& R("orfmts",w);if(l)return u.S&&(u.S=!1,oX=Zr=void 0),F?oX={video:G,audio:y}:Zr={video:G,audio:y};Zr={video:G,audio:y};u.S=!1;return Zr}; g.hbA=function(O,R,J){var l=J.D,u=[],F=[],G=J.Z("html5_shorts_onesie_mismatched_fix");O=O.MU();var y=VJ.concat(H3s);G&&(y=VJ.concat(xLx));J.Z("html5_early_media_for_drm")&&(y=y.concat(ULW),J.Z("allow_vp9_1080p_mq_enc")&&y.push(jxH));var w=[].concat(g.X(QxL));J.Z("html5_iamf_audio_onesie_fmt")&&w.push(["773"]);y=g.N(y);for(var I=y.next();!I.done;I=y.next()){I=g.N(I.value);for(var C=I.next();!C.done;C=I.next()){C=C.value;var r=Fv(C,O&&G);if(r&&r.video){var t=g.tB(J.experiments,"html5_drm_byterate_soft_cap"); if(!(t>0&&Vg0(r)&&r.Wq>t)&&E7(R,r,l)===!0){u.push({videoCodec:Y70[L8[C]],maxWidth:r.video.width,maxHeight:r.video.height,maxFramerate:r.video.fps});break}}}}G=g.N(w);for(O=G.next();!O.done;O=G.next())for(O=g.N(O.value),w=O.next();!w.done;w=O.next())if(w=w.value,(y=o$T(w))&&y.audio&&(J.Z("html5_onesie_51_audio")||!cd(y)&&!Ow(y))&&E7(R,y,l)===!0){F.push({audioCodec:dLs[L8[w]],numChannels:y.audio.numChannels});break}return{videoFormatCapabilities:u,audioFormatCapabilities:F}}; SI=function(O){var R={},J=O.LJ,l=O.bz,u=J.getVideoData(),F=Yk(0),G=l.Z("html5_sabr_use_container_size")?J.Vv():J.getPlayerSize(),y=J.getVisibilityState();if(l.Z("html5_enable_audio_quality_setting")){var w=g.tB(l.experiments,"html5_default_audio_quality_setting_lr"),I;R.Lu=(I=zbh[w])!=null?I:0}F&&(R.JRg=F,R.lastManualDirection=ABz(),F=Uup()||0,F>0&&(F=(l.Z("html5_use_date_now_for_local_storage")?Date.now():(0,g.Q)())-F,l.Z("html5_use_date_now_for_local_storage")?F>0&&(R.timeSinceLastManualFormatSelectionMs= F):R.timeSinceLastManualFormatSelectionMs=F));F=l.Z("html5_use_streamer_bandwidth_for_low_latency_live")&&u.isLowLatencyLiveStream;if(l.schedule.SN&&!F){var C;F=l.Z("html5_disable_bandwidth_cofactors_for_sabr_live")?!((C=O.HY)==null||!C.CE):!1;R.S0=m1(l.schedule,!F)}C=g.hj();w=g.xw.medium;I=Math.floor(w*16/9);F=u.MU()?w:I;w=u.MU()?I:w;R.Qi=Math.max(G.width*C,F);R.qf=Math.max(G.height*C,w);R.visibility=y;R.vWg=TT();R.FS=J.qx()*1E3;G=O.LJ.CV(!0);var r,t,Z,V,m,E;R.WlJ={defaultPolicy:(G==null?void 0: (r=G.sR)==null?void 0:r.L)||0,smooth:(G==null?void 0:(t=G.MzR)==null?void 0:t.L)||0,visibility:(G==null?void 0:(Z=G.RiN)==null?void 0:Z.L)||0,B1:(G==null?void 0:(V=G.iY)==null?void 0:V.L)||0,performance:(G==null?void 0:(m=G.tL)==null?void 0:m.L)||0,speed:(G==null?void 0:(E=G.LoX)==null?void 0:E.L)||0};var a;R.HWJ=(G==null?void 0:(a=G.S0Q)==null?void 0:a.L)||0;R.eW=O.eW&&O.eW.length>0?O.eW:[1,2];O.sabrLicenseConstraint&&(R.sabrLicenseConstraint=O.sabrLicenseConstraint);if(l.Z("html5_onesie_media_capabilities")|| l.Z("html5_enable_server_format_filter"))R.Wz=3;l.Z("html5_onesie_audio_only_playback")&&l1(u)&&(R.Wz=1);var v;((v=O.HY)==null?0:v.sQ)&&O.Quh&&(R.Wz=R.Wz===void 0?7:R.Wz|4);r=u.Xw?u.Xw:g.GF(u);l.Z("html5_onesie_media_capabilities")&&(R.mediaCapabilities=g.hbA(u,r,l));var b;if((b=O.HY)==null?0:f1(b)){Z=l.D;b=[];t=[];V=new Map;m=Array.from(Z.L.values());m=g.N(m);for(E=m.next();!E.done;E=m.next())a=E.value,a.NT?t.push({audioCodec:dLs[a.Pq],numChannels:a.numChannels,spatialCapabilityBitmask:nOL[a.Pq]}): (v=Y70[a.Pq],E={videoCodec:v,maxWidth:a.maxWidth||0,maxHeight:a.maxHeight||0,maxFramerate:a.maxFramerate||0,is10BitSupported:a.sU||!1},a.maxBitrateBps&&(E.maxBitrateBps=a.maxBitrateBps,G=Fv(a.itag),y=void 0,((y=G)==null?0:y.video)&&E7(r,G,Z)===!0&&(G=G.Wq*8,G>E.maxBitrateBps&&(E.maxBitrateBps=G))),a=v+"_"+a.sU,v=V.get(a)||[],v.push(E),V.set(a,v));b=WFH(b,V);Z={};l.Z("html5_ssff_denylist_opus_low")&&(Z={itagDenylist:[249,350]});R.mediaCapabilities={videoFormatCapabilities:b,audioFormatCapabilities:t, hdrModeBitmask:3,perPlaybackAttributes:Z}}var W;if((W=O.HY)==null?0:W.L){R.iH=r.iH;var B;R.qe=(B=O.HY)==null?void 0:B.qe}l.Ie&&(R.n5=l.Ie);R.eE=O.mw;R.yA=O.yA;R.IL=O.IL;R.zt=O.zt;if(l.Z("html5_fix_time_since_last_seek_reporting")?O.jV!==void 0:O.jV)R.j8S=(0,g.Q)()-O.jV;O.isPrefetch&&l.Z("html5_report_prefetch_requests")&&(R.isPrefetch=!0);Jj||(R.e4Q=!0);W=fb(l.schedule)*1E3;W>0&&(R.Im=W);var z;((z=O.HY)==null?0:z.N2)&&O.nN&&O.nN0?Y:l.schedule.interruptions[0]||0);var gh;if((gh=O.HY)==null?0:gh.SG)R.EL=O.EL;l.Z("html5_sabr_enable_server_xtag_selection")&&(u.CL||l.KJ)&&(R.audioTrackId=u.CL||l.KJ);if(l.Z("html5_log_mosaic_audio_track_id")&&xD(u)&&!R.audioTrackId){var l2;a:{var O_, Kx,n;gh=(O_=u.playerResponse)==null?void 0:(Kx=O_.playerConfig)==null?void 0:(n=Kx.compositeVideoConfig)==null?void 0:n.sourceConfigs;var mH,Xp;O_=(l2=u.playerResponse)==null?void 0:(mH=l2.playerConfig)==null?void 0:(Xp=mH.compositeVideoConfig)==null?void 0:Xp.defaultActiveSourceVideoId;if(gh&&O_)for(l2=g.N(gh),mH=l2.next();!mH.done;mH=l2.next())if(mH=mH.value,mH.videoId===O_&&mH.audioTracks)for(mH=g.N(mH.audioTracks),Xp=mH.next();!Xp.done;Xp=mH.next())if(Xp=Xp.value,Xp.isDefaultForSource){l2=Xp.id|| "";break a}l2=""}R.audioTrackId=l2;u==null||u.nJ("misstrkchg",{"default":R.audioTrackId})}var xW;if((xW=O.HY)==null?0:xW.Dc)if(O=tgp())R.detailedNetworkType=cCH[O]||cCH.other;l.Z("html5_enable_voice_boost")&&(R.LRS=l.iZ);return R}; Ny=function(O,R,J,l,u,F,G){var y={};R&&(y.Ta=R);if(!O)return y;y.playbackCookie=J==null?void 0:J.playbackCookie;u&&(y.QF=u);y.mB=[];y.ma=[];if(G==null?0:G.size)for(R=g.N(G.values()),J=R.next();!J.done;J=R.next())y.ma.push(J.value);if(O.sabrContextUpdates.size>0)for(R=g.N(O.sabrContextUpdates.values()),J=R.next();!J.done;J=R.next())OLx(y,J.value,l);rMf(O)&&F&&OLx(y,F,l);O.du&&(y.clh=O.du);l=O.T().L;y.clientInfo={clientName:RZp[l.c.toUpperCase()]||0};l.cbrand&&(y.clientInfo.deviceMake=l.cbrand);l.cmodel&& (y.clientInfo.deviceModel=l.cmodel);l.cver&&(y.clientInfo.clientVersion=l.cver);l.cos&&(y.clientInfo.osName=l.cos);l.cosver&&(y.clientInfo.osVersion=l.cosver);l=O.T();l.Z("html5_sabr_enable_server_xtag_selection")&&l.CG&&(y.clientInfo.hl=l.CG);O.Z7&&(y.Z7=O.Z7);return y}; OLx=function(O,R,J){var l=R.type||0;(J==null?0:J.has(l))?O.ma.push(R):O.mB.push(l)}; WF=function(O,R,J,l,u,F){var G=F===void 0?{}:F;var y=G.OH===void 0?[]:G.OH;var w=G.qm===void 0?!1:G.qm;var I=G.Jr===void 0?0:G.Jr;var C=G.poToken===void 0?"":G.poToken;var r=G.q0===void 0?void 0:G.q0;var t=G.jy===void 0?"":G.jy;var Z=G.dI===void 0?0:G.dI;var V=G.yB===void 0?new Uint8Array(0):G.yB;var m=G.x0===void 0?!1:G.x0;F=G.Js===void 0?0:G.Js;G=G.Ta===void 0?void 0:G.Ta;nj.call(this,R,u);var E=this;this.policy=O;this.logger=new g.l9("dash/request");this.TT=this.rS=0;this.A7=!1;this.It=this.i7= null;this.MN=!1;this.yB=this.dI=null;this.VX=this.tM=!1;this.WS=null;this.Js=this.Eq=0;this.J8=!1;this.nG={UZ:function(v){E.UZ(v)}, FKu:function(){return E.uc}, Upq:function(v){E.uc=v}, GKJ:function(v){E.rS=v}, EnS:function(v){E.X5.lastError=v}, De:function(){return E.xhr}}; this.timing=new Ya(this,J);this.qm=w;this.dI=Z;this.yB=V;this.O8=g.z1(this.info,this.policy,l);this.O8.set("rn",this.FW().toString());this.O8.set("rbuf",(I*1E3).toFixed().toString());this.qm&&this.O8.set("smb","1");this.policy.eU&&C&&this.O8.set("pot",C);t&&this.O8.set("bbs",t);this.policy.useUmp&&!ba(this.O8.Aj)&&(this.Mx=new zo(this),this.O8.set("ump","1"),this.O8.set("srfvp","1"));if(O=this.policy.Ql?this.policy.NH&&!isNaN(this.info.pW)&&this.info.pW>this.policy.wk?!1:!0:!1)R=null,this.policy.cJ&& this.policy.BQ?R=[1]:m&&(R=[]),R!=null&&(this.policy.ZF&&R.push(2),this.O8.set("defsel",R.join(",")));this.X5=new K1(this,this.policy,this.O8,this.info.By,this.timing,this.logger,l,r);this.OH=y||null;this.Vq=JtA(this);X0x(this.X5);l=void 0;if(this.policy.g7||this.Mx||this.policy.xS)l={method:"POST"},y=(0,g.mO)([120,0]),r={},this.policy.fI&&G&&(G=Ny(void 0,G),r.aE=G),this.policy.sL&&this.yB&&(r.videoPlaybackUstreamerConfig=this.yB),this.policy.xS&&(G=this.info.N)&&Object.assign(r,G),Object.keys(r).length> 0?l.body=g.nk(r,g.Gb):l.body=y;if(this.dI&&this.yB){this.O8.set("iwts","1");l={method:"POST"};G={zt:this.dI*1E3};var a;y=(a=this.info.N)==null?void 0:a.Tb;a=g.nk({KS:G,Tb:y||void 0,videoPlaybackUstreamerConfig:this.yB},g.Gb);l.body=a}try{this.xhr=i9(this.O8,this.policy.J,this.timing,O,l),this.X5.S.start(),F&&(this.UT=new g.zR(this.uf,F,this),this.UT.start(F+(this.timing.B3.V.s_()||0)*1E3)),this.policy.by&&Lj(this.timing,this.Y8()),this.logger.debug(function(){return"Sent, itag="+E.O8.get("itag")+ " seg="+E.info.CJ[0].XQ+" range="+E.O8.get("range")+" time="+Math.round(E.info.CJ[0].N)+"-"+Math.round(g.Ib(E.info.CJ).j)+" rtp="+(E.timing.Hs()-Date.now()).toFixed(0)}),g.aL(function(){})}catch(v){gVp(this,v,!0)}}; JtA=function(O){if(!(ht(O.info)&&O.info.xz()&&O.policy.vW&&O.OH)||O.info.By.B>=2||Yk()>0||!BUh())return!1;var R=O.O8.get("aitags");if(!R)return!1;R=tg(R).split(",");for(var J=[],l=g.N(O.OH),u=l.next();!u.done;u=l.next())u=u.value,g.Zo(R,u)&&J.push(u);if(!J.length)return!1;O.O8.set("altitags",g.r7(J.join(",")));return!0}; gVp=function(O,R,J){J=J===void 0?!1:J;g.WM(R);O.X5.lastError="player.exception";O.errorMessage=R.name+"_"+R.message;J?g.aL(function(){IX(O.X5)}):IX(O.X5)}; iL2=function(O,R){O.timing.SN=!0;O.xhr.ji()&&O.timing.Rk();if(O.policy.TR){var J;(J=O.UT)==null||J.stop()}Gx(O.uc,R,!1)}; lWx=function(O,R){O.info=R;if(O.uc){var J=O.uc;R=R.CJ;(R.length!==J.CJ.length||R.length0){R=g.N(R.CJ);for(var J=R.next();!J.done;J=R.next()){var l=void 0;O+=((l=J.value.range)==null?void 0:l.length)||0}return O}if(R.D8.length>0)for(J=g.N(R.D8),l=J.next();!l.done;l=J.next())O+=l.value.AP||0;return O+R.h0}; My=function(O,R){if(X$){var J=0;O=O.rz.get(R);if(O==null||!O.dR)return 0;O=g.N(O.dR.values());for(R=O.next();!R.done;R=O.next())J+=R.value.data.getLength();return J}return((J=O.rz.get(R))==null?void 0:J.A3.getLength())||0}; qy=function(O,R){O=O.rz.get(R);if(X$){if(O==null||!O.wD)return!1;R=O.dR.size>0;return O.My.length>0||R}return!(O==null||!O.wD)&&!(O==null||!O.A3.getLength())}; wss=function(O,R){var J=O.rz.get(R),l=ytp(O,R),u=!l&&!!J.bytesReceived;if(X$){var F;if((F=O.Dg)==null?0:F.vy){O=g.N(J.dR.values());for(R=O.next();!R.done;R=O.next())if(!R.value.ye)return!1;return u}}else if(F=O.Qe(R),u&&O.L&&F!==void 0)return F;return(u||J.bytesReceived===l)&&J.UX+My(O,R)===J.bytesReceived}; IWf=function(O,R,J){O.rz.set(R,{A3:new SX,UX:0,bytesReceived:0,h0:0,hd:!1,fA:!1,Qe:!1,NT:J,Pe:[],CJ:[],D8:[],wD:!1,dR:new Map,ip:new Map,My:[]});O.logger.debug(function(){return"[initStream] formatId: "+R})}; Ciz=function(O,R,J,l){J.CJ.push.apply(J.CJ,g.X(l));if(X$){J.ip.has(R)||J.ip.set(R,[]);var u;(u=J.ip.get(R)).push.apply(u,g.X(l))}else if(J.uc)for(O=g.N(l),R=O.next();!R.done;R=O.next())J.uc.CJ.push(R.value);else{J.uc=new F$(O.HY,[].concat(g.X(J.CJ)));var F;((F=O.HY)==null?0:F.cQ)&&g.H(O,J.uc)}}; rtT=function(O,R,J){var l,u=(l=O.Dg)==null?void 0:l.B.get(R);if(!u)return[];if(J.RT){var F;return((F=u.gt(0,J.clipId))==null?void 0:F.CJ)||[]}if(u.rY()){var G=J.startMs,y=J.durationMs,w=1E3,I;if(((I=O.HY)==null?0:I.L)&&J.timeRange){var C;G=(C=J.timeRange.startTicks)!=null?C:-1;var r;y=(r=J.timeRange.Ck)!=null?r:-1;var t;w=(t=J.timeRange.timescale)!=null?t:-1}if(J.bR<0||J.Y5<0||y<0||G<0||J.AP<0||w<0)return $y(O,R),[];O=Ps(J.bR,J.AP);R=J.a$||0;return[new Bs(3,u,O,"makeSliceInfosMediaBytes",J.Y5-1,G/ w,y/w,R,O.length-R,void 0,J.TW,J.clipId)]}if(J.Y5<0)return $y(O,R),[];var Z;return((Z=O.Dg)==null?0:Z.vy)?(R=u.KE,I=R*u.info.Wq,C=((G=O.HY)==null?0:G.Py)?J.a$:void 0,((w=O.HY)==null?0:w.Ly)&&J.timeRange&&!C&&(y=J.timeRange.startTicks/J.timeRange.timescale),[new Bs(3,u,void 0,"makeSliceInfosMediaBytes",J.Y5,y,R,C,I,!0,J.TW,J.clipId)]):[]}; t3s=function(O,R,J){O.Dg=R;O.HY=J;R=g.N(O.rz);for(J=R.next();!J.done;J=R.next()){var l=g.N(J.value);J=l.next().value;l=l.next().value;for(var u=g.N(l.Pe),F=u.next();!F.done;F=u.next()){F=F.value;var G=rtT(O,J,F);Ciz(O,F.PM,l,G)}}}; ky=function(O,R,J,l){O.logger.debug(function(){return"[addStreamData] formatId: "+J+",headerId: "+R+" bytes: "+l.getLength()}); (O=O.rz.get(J))&&!O.fA&&(X$?(O.dR.has(R)||O.dR.set(R,{data:new SX,cS:0,ye:!1}),NF(O.dR.get(R).data,l)):NF(O.A3,l),O.bytesReceived+=l.getLength(),O.hd=!0)}; Tx=function(O,R){O.logger.debug(function(){return"[closeStream] formatId: "+R}); var J=O.rz.get(R);J&&!J.fA&&(J.fA=!0,J.aF&&J.aF(),oVW(O)&&O.N.mj())}; oVW=function(O){O=g.N(O.rz.values());for(var R=O.next();!R.done;R=O.next())if(!R.value.fA)return!1;return!0}; ZLh=function(O){X$=O}; s0=function(O,R,J,l,u,F,G,y){g.p.call(this);this.policy=O;this.info=R;this.Dg=J;this.Of=u;this.Bm=y;this.logger=new g.l9("sabr");this.Mx=new zo(this);this.Uy=new aX(this);this.oe=new v8(this);this.state=1;this.GH=!1;this.Zp=0;this.clipId="";this.TV=-1;this.X3=0;this.O1=-1;this.J8=this.kK=!1;this.R3=0;this.mC=!1;this.policy.nk?this.nZ=new E0(this,F):this.nZ=new Ya(this,F);this.O8=this.policy.SG?R.RR:g.e(V3A(R,this.policy,l));this.O8.set("rn",""+this.FW());this.O8.set("alr","yes");t3s(this.oe,J,O); this.X5=new K1(this,this.policy,this.O8,R.By,this.nZ,this.logger,l,G,this.policy.enableServerDrivenRequestCancellation);X0x(this.X5);var w;if((w=this.policy)==null?0:w.cQ)g.H(this,this.oe),g.H(this,this.X5);O=R.S;R={method:"POST",body:O};O&&(this.X3=O.length);try{this.xhr=i9(this.O8,this.policy.J,this.nZ,Jj,R),this.policy.by&&Lj(this.nZ,this.Y8()),this.X5.S.start()}catch(I){g.Aa(I)}}; fWL=function(O){O.policy.du&&O.MO&&!O.mC?O.mC=!0:O.nZ.Rk()}; SN2=function(O,R){var J=-1,l=-1,u=-1,F;if((F=O.r6)==null?0:F.items)for(O=g.N(O.r6.items),F=O.next();!F.done;F=O.next())F=F.value,R=y,w=O.Dg.isManifestless&&O.policy.OL,G){var I;if(((I=O.L)==null?void 0:I.ZZ.event)==="predictStart"&&O.L.XQO.j&&(O.j=NaN,O.J=NaN);O.L&&O.L.XQ===R?AtL(O,R,J,O.L,u):O.S===1&&eI(O,5,"noad")}; eZx=function(O,R,J,l,u){l.JE?eI(O,4,"cue"):(O.j=R,O.J=J,O.nJ("sdai",{joinad:O.S,sg:O.j,st:O.J.toFixed(3)}),O.W=Date.now(),eI(O,2,O.S===3?"staftpred":"join"),u.qZ(l.ZZ))}; AtL=function(O,R,J,l,u){if(u&&l){var F=l.ZZ,G=u.AZ(F);F.event==="predictStart"&&(O.Hq=R);O.nJ("sdai",{onqevt:F.event,sq:R,mt:J,gab:G,cst:F.startSecs,cueid:O.policy.u6&&(G||F.event==="start")?F.identifier:void 0},!0);if(G)if(F.event!=="predictStart")F.event==="start"&&O.Hq===R-1&&O.nJ("sdai",{gabonstart:R}),eZx(O,R,J,l,u);else if(O.policy.yk)eI(O,3,"predict");else{var y=R+Math.max(Math.ceil(-F.L/5E3),1);G=Math.floor(J-F.L/1E3);O.policy.B?O.D=G:O.N=y;O.nJ("sdai",{onpred:J,estsq:y,estmt:G.toFixed(3)}); P8(O.loader,G,G,y);O.W=Date.now();eI(O,3,"predict");u.qZ(l.ZZ)}else O.S===1?((y=O.B)==null?0:y.QR(J))?(P8(O.loader,J,J,R),eI(O,4,"sk2head")):eI(O,5,"nogab"):F.event==="predictStart"?O.policy.B&&O.D>0?(J=Math.floor(J-F.L/1E3),O.D!==J&&O.nJ("sdai",{updateSt:J,old:O.D}),O.D=J):O.N>0&&(J=R+Math.max(Math.ceil(-F.L/5E3),1),O.N!==J&&(O.nJ("sdai",{updateSt:J,old:O.N}),O.N=J)):O.policy.yk&&O.S===3&&eZx(O,R,J,l,u);var w,I;if(O.Zv&&F.event==="start"&&((w=O.L)==null?void 0:w.ZZ.event)!=="predictStart"&&((I=O.L)== null?void 0:I.XQ)===R-1){var C;O.nJ("sdai",{ovlpst:(C=O.L)==null?void 0:C.ZZ.event,sq:R})}}else O.nJ("sdai",{nulldec:1,sq:R,mt:J.toFixed(3),evt:(l==null?void 0:(F=l.ZZ)==null?void 0:F.event)||"none"})}; psh=function(O,R,J){if(O.policy.Bu&&O.policy.B)return!(O.S===1||O.S===2||!O.policy.yk&&O.S===3&&J>=O.N);if(O.S===1||O.S===2)return!1;if(O.S!==0&&R===O.audioTrack){if(O.policy.B)return Pif(O.videoTrack,J)||Pif(O.videoTrack,J+1);O=p1(O.videoTrack);if(J>(O?O.XQ:-1))return!1}return!0}; B8=function(O,R,J){return(J<0||J===O.j)&&!isNaN(O.J)?O.J:R}; k1s=function(O,R){if(O.L){var J=O.L.ZZ.d2-(R.startTime+O.V-O.L.ZZ.startSecs);J<=0||(J=new dV(O.L.ZZ.startSecs-(isNaN(O.V)?0:O.V),J,O.L.ZZ.context,O.L.ZZ.identifier,"stop",O.L.ZZ.L+R.duration*1E3),O.nJ("cuepointdiscontinuity",{segNum:R.XQ}),A$(O,J,R.XQ))}}; eI=function(O,R,J){O.S!==R&&(O.nJ("sdai",{setsst:R,old:O.S,r:J}),O.S=R)}; H8=function(O,R,J,l){(l===void 0?0:l)?eI(O,1,"seek"):R>0&&Math.abs(R-J)>=5&&O.S===4&&eI(O,5,"sk2t")}; U0=function(O,R,J){this.audio=O;this.video=R;this.reason=J}; jI=function(O,R,J){this.L=O;this.reason=R;this.token=J;this.videoId=void 0}; QJ=function(O,R,J){g.p.call(this);this.policy=O;this.N=R;this.nJ=J;this.B=new Map;this.D=0;this.j=!1;this.L="";this.S=!1}; L1=function(O,R,J){if(J===void 0?0:J)O.j=!0;++O.D;J=6E4*Math.pow(2,O.D);J=(0,g.Q)()+J;O.B.set(R.info.id,J)}; Yy=function(O){for(var R=g.N(O.B.entries()),J=R.next();!J.done;J=R.next()){var l=g.N(J.value);J=l.next().value;l=l.next().value;l<(0,g.Q)()&&O.B.delete(J)}return O.B}; B9z=function(O){return O.j&&Yy(O).size>0}; dx=function(O,R){O.L!==R&&(O.L=R,O.S=!0)}; HL_=function(O,R){var J;R&&(J=g.rC(O.N.L,function(u){return u.id===R})); if(!J&&(J=g.rC(O.N.L,function(u){var F;return!((F=u.Ef)==null||!F.isDefault)}),R)){var l; O.nJ("iaf",{id:R,sid:(l=J)==null?void 0:l.id})}return J}; zx=function(O,R,J,l,u,F){var G=this;F=F===void 0?[]:F;this.loader=O;this.OQ=R;this.policy=J;this.Dg=l;this.j=u;this.KJ=F;this.logger=new g.l9("dash/abr");this.L=UE;this.B=this.J=null;this.W=-1;this.Qh=!1;this.nextVideo=this.S=null;this.N=[];this.JR=new Set;this.xS={};this.Td=new IZ(1);this.V=0;this.Gd=this.Hq=this.SN=!1;this.iz=0;this.AR=!1;this.N1=new Set;this.Iu=!1;this.nG={zH:function(){h$(G)}}; this.D=new QJ(this.policy,u,function(y,w){G.loader.nJ(y,w)})}; LJL=function(O,R,J){n1(O,R);R=HL_(O.D,J);J||R||(R=xas(O));R=R||O.j.L[0];O.S=O.Dg.L[R.id];h$(O);O.J=O.S;Uap(O);j62(O);O.B=O.nextVideo;O.J=O.S;return Q6H(O)}; hZh=function(O,R){if(YNB(O,R))return null;if(R.reason==="m"&&R.isLocked())return O.logger.debug(function(){return"User sets constraint to: "+Ve(R)}),n1(O,R),O.V=O.N.length-1,h$(O),c8(O),O.Hq=O.Hq||O.B!==O.nextVideo,O.B=O.nextVideo,new U0(O.S,O.B,R.reason); R.reason==="r"&&(O.W=-1);n1(O,R);c8(O);if(R.reason==="r"&&O.nextVideo===O.B)return new U0(O.S,O.nextVideo,R.reason);dax(O);return null}; zZA=function(O,R,J){O.S=O.Dg.L[R];O.J=O.S;return new U0(O.J,O.B,J?"t":"m")}; nVh=function(O,R){if(R.info.video){if(O.B!==R)return O.B=R,Q6H(O)}else O.Gd=O.J!==R,O.J=R;return null}; ctB=function(O,R){if(R.L.info.video&&R.D){var J=(R.S+R.B)/R.duration,l=R.L.info.Wq;J&&l&&(O.Td.VB(1,J/l),O.policy.S&&J/l>1.5&&O.loader.nJ("overshoot",{sq:R.XQ,br:J,max:l}))}}; Oq=function(O,R,J){L1(O.D,R,J===void 0?!1:J);O.W=-1;n1(O,O.L)}; Op0=function(O,R){return new U0(O.J,O.B,R||O.L.reason)}; dax=function(O){if(O.B&&O.nextVideo&&R5(O,O.B.info)O.policy.qe,y=u<=O.policy.qe?n8(l):dz(l);if(!F||G||y)J[u]=l}return J}; n1=function(O,R){O.L=R;var J=O.j.videoInfos;if(!O.L.isLocked()){var l=(0,g.Q)();J=g.Ai(J,function(y){if(y.Wq>this.policy.Wq)return!1;var w=this.Dg.L[y.id];return Yy(this.D).get(y.id)>l?!1:w.By.B>4||w.j>4?(this.logger.debug(function(){return"Remove "+G4(y)+"; 4 load failures"}),!1):this.N1.has(+y.itag)?!1:!0},O); B9z(O.D)&&(J=g.Ai(J,function(y){return y.video.width<=854&&y.video.height<=480}))}J.length||(J=O.j.videoInfos); var u=J;O.policy.i$&&(u=Jfz(O,u,R));u=g.Ai(u,R.N,R);if(O.L.isLocked()&&O.D.L){var F=g.rC(J,function(y){return y.id===O.D.L}); F?u=[F]:dx(O.D,"")}O.policy.i$||(u=Jfz(O,u,R));u.length||(u=[J[0]]);u.sort(function(y,w){return R5(O,y)-R5(O,w)}); R={};for(J=1;JR.q3.video.width?(g.V6(u,J),J--):R5(O,R.Ph)*O.policy.V>R5(O,R.q3)&&(g.V6(u,J-1),J--);var G=u[u.length-1];O.AR=!!O.B&&!!O.B.info&&O.B.info.Pq!==G.Pq;O.logger.debug(function(){return"Constraint: "+Ve(O.L)+", "+u.length+" fmts selectable, max selectable fmt: "+G4(G)}); O.N=u;O.JR.clear();R=!1;for(J=0;J=1080&&(R=!0);g2A(O.policy,G,O.Dg.vy)}; Jfz=function(O,R,J){var l=J.reason==="m"||J.reason==="s";O.policy.OU&&Jy&&g.N$&&(!l||J.L<1080)&&(R=R.filter(function(I){return I.video&&(!I.S||I.S.powerEfficient)})); if(R.length>0)if(N8()){var u=RVH(O,R);R=R.filter(function(I){return!!I&&!!I.video&&I.Pq===u[I.video.qualityOrdinal].Pq})}else{var F,G,y=(F=R[0])==null?void 0:(G=F.video)==null?void 0:G.qualityOrdinal; if(y){J=R.filter(function(I){return!!I&&!!I.video&&I.video.qualityOrdinal===y}); var w=RVH(O,J)[y].Pq;R=R.filter(function(I){return!!I&&!!I.video&&I.Pq===w})}}return R}; iph=function(O,R){for(var J=0;J+1l}; h$=function(O){if(!O.S||!O.policy.N&&!O.S.info.Ef){var R=O.j.L;O.S&&(R=R.filter(function(l){return l.audio.L===O.S.info.audio.L}),R.length||(R=O.j.L)); O.S=O.Dg.L[R[0].id];if(R.length>1&&!O.policy.Td){var J=g.rC(R,function(l){return l.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); J&&(O.S=O.Dg.L[J.id]);J=!1;if(J=O.policy.Jo?!0:O.L.isLocked()?O.L.L<240:iph(O,O.S))O.S=O.Dg.L[g.Ib(R).id]}}}; c8=function(O){if(!O.nextVideo||!O.policy.N)if(O.L.isLocked())O.nextVideo=O.L.L<=360?O.Dg.L[O.N[0].id]:O.Dg.L[g.Ib(O.N).id],O.logger.debug(function(){return"Select max fmt: "+G4(O.nextVideo.info)}); else{for(var R=Math.min(O.V,O.N.length-1),J=$a(O.OQ),l=R5(O,O.S.info),u=J/O.policy.SN-l;R>0&&!(R5(O,O.N[R])<=u);R--);for(var F=J/O.policy.V-l;R=F);R++);O.nextVideo=O.Dg.L[O.N[R].id];O.V!==R&&O.logger.info(function(){return"Adapt to: "+G4(O.nextVideo.info)+", bandwidth: "+J.toFixed(0)+", bandwidth to downgrade: "+u.toFixed(0)+", bandwidth to upgrade: "+F.toFixed(0)+", constraint: "+Ve(O.L)}); O.V=R}}; Uap=function(O){var R=O.policy.SN,J=$a(O.OQ),l=J/R-R5(O,O.S.info);R=g.ob(O.N,function(u){return R5(this,u)F?u=0:l[G]>O.buffered[G]&&(G===F-1?u=2:G===F-2&&l[G+1]>O.buffered[G+1]&&(u=3))}O.L.add(R<<3|(J&&4)|u);R=Math.ceil(O.track.qx()*1E3);O.L.add(R-O.D);O.D=R;if(u===1)for(O.L.add(F),G=R=0;G=2&&O.L.add(l[F- 1]-O.buffered[F-1]);J&&O.L.add(J);O.buffered=l}; lb=function(O,R,J){var l=this;this.policy=O;this.L=R;this.iz=J;this.N=this.S=0;this.Mc=null;this.SN=new Set;this.W=[];this.indexRange=this.initRange=null;this.V=new Jw;this.Hq=this.OQ=!1;this.nG={RCN:function(){return l.B}, XAU:function(){return l.chunkSize}, iSR:function(){return l.J}, Bcg:function(){return l.j}}; (R=K70(this))?(this.chunkSize=R.csz,this.B=Math.floor(R.clen/R.csz),this.J=R.ck,this.j=R.civ):(this.chunkSize=O.tO,this.B=0,this.J=g.DO(16),this.j=g.DO(16));this.D=new Uint8Array(this.chunkSize);this.J&&this.j&&(this.crypto=new tYs(this.J,this.j))}; K70=function(O){if(O.policy.lc&&O.policy.Mh)for(var R=g.N(O.policy.lc),J=R.next(),l={};!J.done;l={lh:void 0,HG:void 0},J=R.next())if(J=g.il(J.value),l.lh=+J.clen,l.HG=+J.csz,l.lh>0&&l.HG>0&&O.policy.N===J.docid&&O.L.info.id===J.fmtid&&O.L.info.lastModified===+J.lmt)return O={},O.clen=l.lh,O.csz=l.HG,O.ck=J.ck,O.civ=J.civ,O}; ub=function(O){return!!O.Mc&&O.Mc.rR()}; IQf=function(O,R){if(!ub(O)&&!O.jN()){if(!(O.OQ||(O.OQ=!0,O.B>0))){var J=Fw(O);J=br(O.policy.N,O.L.info,Ga(O),J,O.policy.AR);KF(O,J)}if(R.info.type===1){if(O.Mc){yY(O,Error("Woffle: Expect INIT slices to always start us off"));return}O.initRange=Ps(0,R.L.getLength())}else if(R.info.type===2)O.Mc&&O.Mc.type===1||yY(O,Error("Woffle: Index before init")),O.indexRange=Ps(O.initRange.end+1,R.L.getLength());else if(R.info.type===3){if(!O.Mc){yY(O,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(O.Mc.type===3&&!UN(O.Mc,R.info)&&(O.W=[],R.info.XQ!==j3(O.Mc)||R.info.S!==0))return;if(R.info.D){J=g.N(O.W);for(var l=J.next();!l.done;l=J.next())yfx(O,l.value);O.W=[]}else{O.W.push(R);O.Mc=R.info;return}}else{yY(O,Error("Woffle: Unexpected slice type"));return}O.Mc=R.info;yfx(O,R);wmh(O)}}; yfx=function(O,R){var J=0,l=R.L.I1();if(O.N=l.length)return;if(J<0)throw Error("Missing data");O.N=O.B;O.S=0}for(u={};J0){var G=l.getUint32(J+28);F+=G*16+4}var y=l.getUint32(J+F-4);try{var w=Zpx(R.subarray(J+F,J+F+y));if(w!==null){var I=w;break a}}catch(C){}}J+=u}I=null;break a}catch(C){I=null;break a}I=void 0}if(I!=null)for(R=B2(fO(I,7)),R==null||O.WY||(O.cryptoPeriodIndex=R),R=B2(fO(I,10)),R!=null&&R>0&&!O.WY&&(O.L=R),I=vS(I, 2,kYA,void 0===Ags?2:4),I=g.N(I),l=I.next();!l.done;l=I.next())R=O.B,J=R.push,l=K6(l.value),l=g.RK(l,4),J.call(R,l)}; fQp=function(O){return isNaN(O.cryptoPeriodIndex)?g.RK(O.initData):""+O.cryptoPeriodIndex}; CF=function(O,R,J){var l=J===void 0?{}:J;J=l.videoDuration===void 0?0:l.videoDuration;var u=l.Y2===void 0?void 0:l.Y2;l=l.Zc===void 0?!1:l.Zc;this.videoId=O;this.status=R;this.videoDuration=J;this.Y2=u;this.Zc=l}; Sef=function(O,R,J,l,u){this.videoId=O;this.A_=R;this.S=J;this.bytesDownloaded=l;this.L=u}; rf=function(O){this.L=O;this.offset=0}; ty=function(O){if(O.offset>=O.L.getLength())throw Error();return O.L.getUint8(O.offset++)}; Nus=function(O,R){R=R===void 0?!1:R;var J=ty(O);if(J===1){R=-1;for(J=0;J<7;J++){var l=ty(O);R===-1&&l!==255&&(R=0);R>-1&&(R=R*256+l)}return R}l=128;for(var u=0;u<6&&l>J;u++)J=J*256+ty(O),l*=128;return R?J:J-l}; mOx=function(O){try{var R=Nus(O,!0),J=Nus(O,!1);return{id:R,size:J}}catch(l){return{id:-1,size:-1}}}; E2T=function(O){for(var R=new rf(O),J=-1,l=0,u=0;!l||!u;){var F=mOx(R),G=F.id;F=F.size;if(G<0)return;if(G===176){if(F!==2)return;l=R.XB()}else if(G===186){if(F!==2)return;u=R.XB()}G===374648427?J=R.XB()+F:G!==408125543&&G!==174&&G!==224&&R.skip(F)}R=az(O,0,J);J=new DataView(R.buffer);J.setUint16(l,3840);J.setUint16(u,2160);l=new SX([R]);NF(l,O);return l}; DO0=function(O,R,J){var l=this;this.loader=O;this.policy=R;this.j=J;this.logger=new g.l9("dash");this.S=[];this.L=null;this.OQ=-1;this.W=0;this.N1=NaN;this.SN=0;this.B=NaN;this.V=this.Qh=0;this.AR=-1;this.xS=this.D=this.N=this.iz=null;this.Td=this.Gd=NaN;this.J=this.Hq=this.JR=this.KJ=null;this.sQ=!1;this.Iu=this.timestampOffset=0;this.nG={XD:function(){return l.S}}; if(this.policy.N){var u=this.j,F=this.policy.N;this.policy.AR&&O.nJ("atv",{ap:this.policy.AR});this.J=new lb(this.policy,u,function(G,y,w){o5(O,new CF(l.policy.N,2,{Y2:new Sef(F,G,u.info,y,w)}))}); this.J.V.promise.then(function(G){l.J=null;G===1?o5(O,new CF(l.policy.N,G)):l.loader.nJ("offlineerr",{status:G.toString()})},function(G){var y=(G.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); G instanceof wf&&!G.L?(l.logger.info(function(){return"Assertion failed: "+y}),l.loader.nJ("offlinenwerr",{em:y}),Zh(l),o5(O,new CF(l.policy.N,4))):(l.logger.info(function(){return"Failed to write to disk: "+y}),l.loader.nJ("dldbwerr",{em:y}),Zh(l),o5(O,new CF(l.policy.N,4,{Zc:!0})))})}}; aQH=function(O){return O.S.length?O.S[0]:null}; v2s=function(O,R){return O.S.some(function(J){return J.info.XQ===R})}; qe0=function(O,R,J,l){l=l===void 0?0:l;if(O.D){var u=O.D.S+O.D.B;if(J.info.S>0)if(J.info.XQ===O.D.XQ&&J.info.S=0&&O.D.XQ>=0&&!UN(O.D,J.info))throw new g.Ys("improper_continuation",O.D.er(),J.info.er());u32(O.D,J.info)||VY(O,"d")}else if(J.info.S>0)throw new g.Ys("continuation_of_null",J.info.er());O.D=J.info;O.j=J.info.L;if(J.info.S===0){if(O.L)if(!O.loader.isOffline()||O.policy.CL)O.loader.nJ("slice_not_fully_processed", {buffered:O.L.info.er(),push:J.info.er()});else throw new g.Ys("slice_not_fully_processed",O.L.info.er(),J.info.er());fF(O);O.Qh=l}else{if(O.Qh&&l&&O.Qh!==l)throw O=new g.Ys("lmt_mismatch",J.info.XQ,O.Qh,l),O.level="WARNING",O;!J.info.L.rY()&&O.N&&(l=J.info,u=O.N.TV,l.V="updateWithEmsg",l.XQ=u)}if(O.L){l=g.GG(O.L,J);if(!l)throw new g.Ys("failed_to_merge",O.L.info.er(),J.info.er());O.L=l}else O.L=J;a:{J=g.Rg(O.L.info.L.info);if(O.L.info.type!==3){if(!O.L.info.D)break a;O.L.info.type===6?Xmx(O,R,O.L): Tuf(O,O.L);O.L=null}for(;O.L;){l=O.L.L.getLength();if(O.OQ<=0&&O.W===0){var F=O.L.L,G=-1;u=-1;if(J){for(var y=0;y+80))break;if(r!==408125543)if(r===524531317)y=!0,C>=0&&(u=F.XB()+C,w=!0);else{if(y&&(r===160||r===163)&&(G<0&&(G=I),w))break;r===163&&(G=Math.max(0,G),u=F.XB()+C);if(r===160){G<0&&(u=G=F.XB()+ C);break}F.skip(C)}}G<0&&(u=-1)}if(G<0)break;O.OQ=G;O.W=u-G}if(O.OQ>l)break;O.OQ?(l=$OB(O,O.OQ),l.D&&MQ_(O,l),Xmx(O,R,l),SH(O,l),O.OQ=0):O.W&&(l=$OB(O,O.W<0?Infinity:O.W),O.W-=l.L.getLength(),SH(O,l))}}O.L&&O.L.info.D&&(SH(O,O.L),O.L=null)}; Tuf=function(O,R){!R.info.L.rY()&&R.info.S===0&&(g.Rg(R.info.L.info)||R.info.L.info.WY())&&WiB(R);if(R.info.type===1)try{MQ_(O,R),kGp(O,R)}catch(u){g.WM(u);var J=QN(R.info);J.hms="1";O.loader.handleError("fmt.unparseable",J||{},1)}J=R.info.L;J.ED(R);O.J&&IQf(O.J,R);if(J.Yo()&&O.policy.L)a:{O=O.loader.Dg;R=R.info.clipId;J=g.g3(J.info,O.vy);if(R){var l=c1s(O,J);if(O.Iu[l])break a;O.Iu[l]=R}O.Qh.push(J)}}; YPL=function(O,R,J){if(O.S.length!==0&&(J||O.S.some(function(F){return F.info.N=mu(G)+y):R=O.getDuration()>=G.getDuration(),R=!R;R&&W7T(J)&&(R=O.iz,N9?(y=sg_(J),G=1/y,y=mu(O,y),R=mu(R)+G-y):R=R.getDuration()- O.getDuration(),R=1+R/J.info.duration,b8z(J.SZ(),R))}else{G=!1;O.N||(WiB(J),J.S&&(O.N=J.S,G=!0,F=J.info,l=J.S.TV,F.V="updateWithEmsg",F.XQ=l,F=J.S,F.rR&&(l=O.j.index,l.S=!F.rR,l.B="emsg"),F=J.info.L.info,l=J.SZ(),g.Rg(F)?G1(l,1701671783):F.WY()&&o6([408125543],307544935,l)));a:if((F=wu(J,O.policy.AT))&&bmp(J))y=AfH(O,J),O.V+=y,F-=y,O.SN+=F,O.B=O.policy.LL?O.B+F:NaN;else{if(O.policy.UC){if(l=w=O.loader.vM(g.Kp(J),1),O.B>=0&&J.info.type!==6){if(O.policy.LL&&isNaN(O.Gd)){g.Aa(new g.Ys("Missing duration while processing previous chunk", J.info.er()));O.loader.isOffline()&&!O.policy.CL||eVT(O,J,l);VY(O,"m");break a}var I=w-O.B,C=I-O.V,r=J.info.XQ,t=O.xS?O.xS.XQ:-1,Z=O.Td,V=O.Gd,m=O.policy.yl&&I>O.policy.yl,E=Math.abs(C)>10,a=Math.abs(O.B-l)<1E-7;if(Math.abs(C)>1E-4){O.Iu+=1;var v=(u=O.N)==null?void 0:n3(u);u={audio:""+ +O.NT(),sq:r.toFixed(),sliceStart:w,lastSq:t.toFixed(),lastSliceStart:Z,lastSliceDuration:V,totalDrift:(I*1E3).toFixed(),segDrift:(C*1E3).toFixed(),skipRewrite:""+ +(m||E)};if(v==null?0:v.length)u.adCpn=v[0];O.loader.handleError("qoe.avsync", u);O.AR=r}m||E||a||(l=O.B);u=AfH(O,J,w);F-=u;O.V=I+u;O.policy.S&&(C&&!a||u)&&(I=(y=O.N)==null?void 0:n3(y),O.loader.nJ("discontinuityRewrite",{adCpn:(I==null?0:I.length)?I.join("."):"",itag:J.info.L.info.itag,sq:J.info.XQ,originalStartTime:w,rewrittenStartTime:l,startTimeAdjustment:l-w,segDrift:(C*1E3).toFixed(),originalDuration:F+u,rewrittenDuration:F,durationAdjustment:u}))}}else l=isNaN(O.B)?J.info.startTime:O.B;eVT(O,J,l)&&(O.SN+=F,O.B=l+F,O.policy.Fy&&O.Iu>=O.policy.Fy&&(O.Iu=0,O.loader.pc({resetForRewrites:"count"})))}O.xS= J.info;O.Gd=yP(J);J.B>=0&&(O.Td=J.B);if(G&&O.N){G=PsL(O,!0);LL(J.info,G);O.L&&LL(O.L.info,G);R=g.N(R);for(y=R.next();!y.done;y=R.next())y=y.value,u=void 0,O.policy.D&&y.XQ!==((u=O.N)==null?void 0:u.TV)||LL(y,G);(J.info.D||O.L&&O.L.info.D)&&J.info.type!==6||(O.Hq=G,O.policy.B?(R=pmp(O.N),O.loader.Cj(O.j,G,R)):(R=O.loader,R.Dg.isManifestless&&BuA(R,G,null,!!O.j.info.video)),O.policy.DZ||Hps(O))}}kGp(O,J);O.timestampOffset&&qwx(J,O.timestampOffset)}; SH=function(O,R){if(R.info.D){O.KJ=R.info;if(O.N){var J=O.N,l=PsL(O,!1);J=pmp(J);O.loader.Cj(O.j,l,J);O.Hq||O.policy.DZ||Hps(O);O.Hq=null}fF(O)}O.J&&IQf(O.J,R);if(l=O.BD())if(l=g.GG(l,R,O.policy.RI,O.policy.Xw)){O.S.pop();O.S.push(l);return}O.S.push(R)}; pmp=function(O){if(O.JE()){var R=O.data["Stitched-Video-Id"]?O.data["Stitched-Video-Id"].split(",").slice(0,-1):[],J=n3(O),l=[];if(O.data["Stitched-Video-Duration-Us"])for(var u=g.N(O.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),F=u.next();!F.done;F=u.next())l.push((Number(F.value)||0)/1E6);u=[];if(O.data["Stitched-Video-Start-Frame-Index"]){F=g.N(O.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var G=F.next();!G.done;G=F.next())u.push(Number(G.value)||0)}u=[]; if(O.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(F=g.N(O.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),G=F.next();!G.done;G=F.next())u.push((Number(G.value)||0)/1E6);O=new o2A(R,J,l,u,g.MVp(O),g.qyA(O))}else O=null;return O}; fF=function(O){O.L=null;O.OQ=-1;O.W=0;O.N=null;O.N1=NaN;O.SN=0;O.Hq=null}; VY=function(O,R){R={rst4disc:R,cd:O.V.toFixed(3),sq:O.xS?O.xS.XQ:-1};O.B=NaN;O.V=0;O.AR=-1;O.xS=null;O.Td=NaN;O.Gd=NaN;O.JR=null;O.loader.nJ("mdstm",R)}; kGp=function(O,R){if(O.j.info.hp){if(R.info.L.info.WY()){var J=new yN(R.SZ());if(I6(J,[408125543,374648427,174,28032,25152,20533,18402])){var l=tt(J,!0);J=l!==16?null:S3(J,l)}else J=null;l="webm"}else R.info.W=rf2(R.SZ()),J=tQs(R.info.W),l="cenc";J&&J.length&&(J=new I5(J,l),O.policy.q8&&g.Rg(R.info.L.info)&&(l=Bzs(R.SZ()))&&(J.S=l),J.WY=R.info.L.info.WY(),R.S&&R.S.cryptoPeriodIndex&&(J.cryptoPeriodIndex=R.S.cryptoPeriodIndex),R.S&&R.S.S&&(J.L=R.S.S),O.loader.hC(J))}}; Hps=function(O){var R=O.N,J=Tzh(R);J&&(J.startSecs+=O.N1,O.loader.I9(O.j,J,R.TV,R.JE()))}; PsL=function(O,R){var J,l=O.N;if(J=Tzh(l))J.startSecs+=O.N1;return new P0(l.TV,O.N1,R?l.KE:O.SN,l.ingestionTime,"sq/"+l.TV,void 0,void 0,R,J)}; eVT=function(O,R,J){if(!MeT(R,J))return R=QN(R.info),R.smst="1",O.loader.handleError("fmt.unparseable",R||{},1),!1;isNaN(O.N1)&&(O.N1=J);return!0}; AfH=function(O,R,J){var l=0;if(R.info.L.info.WY()&&!bmp(R))return 0;if(O.iz&&!O.NT()){var u=0;J&&g.Rg(R.info.L.info)?u=J-O.B:R.info.L.info.WY()&&(u=O.V);var F=R.info.XQ;J=wu(R,O.policy.AT);var G=O.iz;var y=G.AR;G=G.V;var w=Math.abs(G-u)>.02;if((F===y||F>y&&F>O.AR)&&w){l=Math.max(.95,Math.min(1.05,(J-(G-u))/J));if(g.Rg(R.info.L.info))b8z(R.SZ(),l);else if(R.info.L.info.WY()&&(F=u-G,!g.Rg(R.info.L.info)&&(R.info.L.info.WY(),l=new yN(R.SZ()),y=R.D?l:new yN(new DataView(R.info.L.L.buffer)),wu(R,!0)))){var I= F*1E3,C=mJ(y);y=l.pos;l.pos=0;if(l.L.getUint8(l.pos)===160||EN(l))if(r9(l,160))if(tt(l,!0),r9(l,155)){if(F=l.pos,w=tt(l,!0),l.pos=F,I=I*1E9/C,C=ZW(l),I=C+Math.max(-C*.7,Math.min(C,I)),I=Math.sign(I)*Math.floor(Math.abs(I)),!(Math.ceil(Math.log(I)/Math.log(2)/8)>w)){l.pos=F+1;for(F=w-1;F>=0;F--)l.L.setUint8(l.pos+F,I&255),I>>>=8;l.pos=y}}else l.pos=y;else l.pos=y;else l.pos=y}l=wu(R,O.policy.AT);l=J-l}l&&R.info.L.info.WY()&&O.loader.nJ("webmDurationAdjustment",{durationAdjustment:l,videoDrift:u+l, audioDrift:G})}return l}; W7T=function(O){return O.info.L.rY()&&O.info.XQ===O.info.L.index.lK()}; mu=function(O,R){R=(R=R===void 0?0:R)?Math.round(O.timestampOffset*R)/R:O.timestampOffset;O.j.N&&R&&(R+=O.j.N.L);return R+O.getDuration()}; xOs=function(O,R){R<0||(O.S.forEach(function(J){qwx(J,R)}),O.timestampOffset=R)}; bY=function(O,R,J,l,u){nj.call(this,J,u);var F=this;this.policy=O;this.formatId=R;this.oe=l;this.lastError=null;this.aF=function(){F.jN()||(F.oe.rz.has(F.formatId)?(F.isComplete()||F.L.start(),qy(F.oe,F.formatId)&&F.rQ(2),F.oe.fA(F.formatId)&&(wss(F.oe,F.formatId)?F.UZ(4):(F.lastError="net.closed",F.UZ(5)))):(F.lastError="player.exception",F.UZ(5)))}; this.L=new g.zR(function(){F.isComplete()||(F.lastError="net.timeout",F.UZ(5))},1E3); this.L.start();G1H(this.oe,this.formatId,this.aF);g.aL(this.aF)}; Eq=function(O,R,J,l){g.p.call(this);var u=this;this.loader=O;this.policy=R;this.L=J;this.timing=l;this.logger=new g.l9("dash");this.B=[];this.iz=[];this.S=this.yd=null;this.JR=!1;this.Qh=this.Iu=0;this.j=-1;this.OQ=!1;this.N1=-1;this.xS=null;this.Hq=NaN;this.SN=[];this.nG={bX:function(){return u.N}, o4X:function(){return u.B}, Yxd:function(){return u.J}}; this.N=new DO0(O,R,J);this.policy.L&&(this.J=new qM(this.N,this.loader.getManifest(),this.policy,function(F){u.policy.x4&&u.nJ("buftl",F)})); this.policy.w5&&(this.W=new gf(this));this.Wq=J.info.Wq;this.V=this.policy.Hq?!1:J.Wl();this.isManifestless=J.Wl();this.D=this.V;g.H(this,this.xS)}; Dh=function(O,R,J){J=J===void 0?!1:J;R&&N9&&xOs(O.N,R.xv());if(!J){var l;(l=O.J)==null||UhA(l)}O.yd=R;(R=O.J)!=null&&(R.yd=O.yd)}; a5=function(O){var R=O.yd&&O.yd.ov();if(O.policy.Ff){if((O=O.J)==null)O=void 0;else{var J;O=(J=O.B)==null?void 0:J.info}return O||null}return R}; UOs=function(O){for(var R={},J=0;J4&&O.iz.shift()}; j3h=function(O,R){if(R.zb()){var J=R.C$();J=g.N(J);for(var l=J.next();!l.done;l=J.next())l=l.value,O.policy.S&&R instanceof bY&&O.nJ("omblss",{s:l.info.er()}),Xw(O,R.info.CJ,l,R.vr())}}; Xw=function(O,R,J,l){l=l===void 0?0:l;isNaN(O.Hq)||(O.nJ("aswm",{sq:R[0].XQ,id:R[0].L.info.itag,xtag:R[0].L.info.L,ep:Date.now()-O.Hq}),O.Hq=NaN);switch(J.info.type){case 1:case 2:Q3f(O,J);break;case 4:var u=J.info.L,F=u.ZE(J),G;((G=O.S)==null?0:G.type===4)&&CBH(J.info,O.S)&&(O.S=u.F6(O.S).pop());J=g.N(F);for(u=J.next();!u.done;u=J.next())Xw(O,R,u.value,l);break;case 3:J.info.L.info.video?(u=O.timing,u.iz||(u.iz=(0,g.Q)(),q4("fvb_r",u.iz,u.L))):(u=O.timing,u.j||(u.j=(0,g.Q)(),q4("fab_r",u.j,u.L))); qe0(O.N,R,J,l);O.policy.L&&L7s(O);break;case 6:qe0(O.N,R,J,l),O.S=J.info}}; Q3f=function(O,R){if(R.info.type===1)if(R.info.L.info.video){var J=O.timing;J.xS||(J.xS=(0,g.Q)(),q4("vis_r",J.xS,J.L))}else J=O.timing,J.V||(J.V=(0,g.Q)(),q4("ais_r",J.V,J.L));Tuf(O.N,R);O=O.loader;O.videoTrack.L.Yo()&&O.audioTrack.L.Yo()&&O.policy.L&&!O.Dg.vy&&(R=O.audioTrack.getDuration(),J=O.videoTrack.getDuration(),Math.abs(R-J)>1&&O.nJ("trBug",{af:""+g.g3(O.audioTrack.L.info,!1),vf:""+g.g3(O.videoTrack.L.info,!1),a:""+R,v:""+J}))}; UH=function(O){return aQH(O.N)}; L7s=function(O){O.B.length?O.S=g.Ib(g.Ib(O.B).info.CJ):O.N.S.length?O.S=O.N.BD().info:O.S=a5(O)}; Ta=function(O,R){var J={GJ:[],zV:[]},l;if((O=O.J)==null)O=void 0;else{xhz(O,O.GJ,"og");pUA(O,R);xhz(O,O.GJ,"trim");var u=HKs(O);R=u.GJ;u=u.kd;for(var F=[],G=0;G0){var t=w3(r,w);t>=0&&(C=(r.end(t)-w+.1)*1E3)}F.push({formatId:g.g3(y.info.L.info,O.Dg.vy), TW:y.info.TW,sequenceNumber:y.info.XQ+O.N,Ug:I,t0:y.info.B,V5:C})}O={GJ:R,zV:F}}return(l=O)!=null?l:J}; ei=function(O,R,J){J=J===void 0?!1:J;if(O.yd){var l=O.yd.Ap(),u=Cm(l,R),F=NaN,G=a5(O);G&&(F=Cm(l,G.L.index.getStartTime(G.XQ)));if(u===F&&O.S&&O.S.B&&Yes(dOA(O),0))return R}O=hVs(O,R,J);return O>=0?O:NaN}; pj=function(O,R,J){O.L.Yo();var l=hVs(O,R);if(l>=0)return l;var u;(u=O.J)==null||BGL(u,R,J);J=Math;l=J.min;u=O.N;if(u.J)if(u=u.J,u.Mc&&u.Mc.type===3)u=u.Mc.startTime;else if(u.B>0){var F=u.L.index;F=g.$M(F.offsets.subarray(0,F.count),u.B*u.chunkSize);u=u.L.index.getStartTime(F>=0?F:Math.max(0,-F-2))}else u=0;else u=Infinity;R=l.call(J,R,u);O.S=O.policy.Hq?null:O.L.oX(R).CJ[0];$o(O)&&(O.yd&&O.yd.abort(),O.policy.Xn&&(J=O.J)!=null&&(J.B=void 0));O.Qh=0;return O.S?O.S.startTime:R}; QYL=function(O){O.V=!0;O.D=!0;O.j=-1;pj(O,Infinity)}; M9=function(O){for(var R=0,J=g.N(O.B),l=J.next();!l.done;l=J.next())R+=teB(l.value.info);return R+=s3x(O.N)}; ko=function(O,R){R=R===void 0?!1:R;var J=O.loader.getCurrentTime(),l=O.N.BD(),u=(l==null?void 0:l.info.j)||0;O.policy.Wn&&(l==null?0:l.info.L.Wl())&&!l.info.D&&(u=l.info.N);if(!O.yd)return O.policy.L&&R&&!isNaN(J)&&l?u-J:0;var F=a5(O);if(F&&q9(F))return F.j;var G=O.yd.Ap(!0);if(R&&l)return F=0,O.policy.L&&(F=og(G,u+.02)),F+u-J;u=og(G,J);O.policy.Op&&F&&(R=w3(G,J),G=w3(G,F.N-.02),R===G&&(J=F.j-J,O.policy.S&&J>u+.02&&O.nJ("abh",{bh:u,bhtls:J}),u=Math.max(u,J)));return u}; zV0=function(O){var R=a5(O);return R?R.j-O.loader.getCurrentTime():0}; n2_=function(O,R){if(O.B.length){if(O.B[0].info.CJ[0].startTime<=R)return;Al(O)}for(var J=O.N,l=J.S.length-1;l>=0;l--)J.S[l].info.startTime>R&&J.S.pop();L7s(O);O.S&&R=0;G--){var y=u.S[G];y.info.XQ>=R&&(u.S.pop(),u.B-=wu(y,u.policy.AT),F=y.info)}F&&(u.D=u.S.length>0?u.S[u.S.length-1].info:u.JR,u.S.length!==0||u.D||VY(u,"r"));u.loader.nJ("mdstm",{rollbk:1,itag:F?F.L.info.itag:"",popped:F?F.XQ:-1,sq:R,lastslc:u.D?u.D.XQ:-1,lastfraget:u.B.toFixed(3)});if(O.policy.L)return O.S=null,!0;l>J?pj(O,l):O.S=O.L.BT(R-1,!1).CJ[0]}catch(w){return R=kw(w),R.details.reason="rollbkerr", O.loader.handleError(R.errorCode,R.details,R.severity),!1}return!0}; bb=function(O,R){var J;for(J=0;J0?J||R.XQ>=O.N1:J}; WP=function(O){var R;return $o(O)||q9((R=O.N.BD())==null?void 0:R.info)}; dOA=function(O){var R=[],J=a5(O);J&&R.push(J);R=g.Ns(R,O.N.eV());J=g.N(O.B);for(var l=J.next();!l.done;l=J.next()){l=l.value;for(var u=g.N(l.info.CJ),F=u.next(),G={};!F.done;G={UH:void 0},F=u.next())G.UH=F.value,l.AU&&(R=g.Ai(R,function(y){return function(w){return!CBH(w,y.UH)}}(G))),(xV(G.UH)||G.UH.type===4)&&R.push(G.UH)}O.S&&!imh(O.S,g.Ib(R),O.S.L.rY())&&R.push(O.S); return R}; Yes=function(O,R){if(!O.length)return!1;for(R+=1;R=R){R=F;break a}}R=u}return R<0?NaN:Yes(O,J?R:0)?O[R].startTime:NaN}; Ay=function(O){return!(!O.S||O.S.L===O.L)}; Obf=function(O){return Ay(O)&&O.L.Yo()&&O.S.L.info.WqR&&O.j1080&&!O.Lp&&(O.Qh=36700160,O.KJ=5242880,O.Iu=Math.max(4194304,O.Iu),O.Lp=!0);R.video.qualityOrdinal>2160&&!O.Sf&&(O.Qh=104857600,O.Wq=13107200,O.Sf=!0);g.tB(O.bz.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?R.isEncrypted()&&g.Q3()&&g.UU("samsung")&&(g.UU("kant")||g.UU("muse"))&&(O.Wq=g.tB(O.bz.experiments,"html5_samsung_kant_limit_max_bitrate")):R.isEncrypted()&&g.Q3()&&g.UU("kant")&&(O.Wq=1310720);O.k5!==0&&R.isEncrypted()&& (O.Wq=O.k5);O.mH!==0&&R.isEncrypted()&&J&&(O.Wq=O.mH);R.Wq&&(O.Yj=Math.max(O.Ra,Math.min(O.Iu,5*R.Wq)))}; f1=function(O){return O.L&&O.vu}; pF=function(O){return O.L&&O.cM&&O.playbackStartPolicy}; tjT=function(O,R,J,l){O.cM&&(O.playbackStartPolicy=R,O.j7=J,O.vS=l)}; PP=function(O,R,J){J=J===void 0?0:J;return g.tB(O.bz.experiments,R)||J}; oXp=function(O){var R=O===void 0?{}:O;O=R.BQ;var J=R.ud;var l=R.vH;var u=R.lK;R=R.Rn;this.BQ=O;this.ud=J;this.vH=l;this.lK=u;this.Rn=R}; i3B=function(O,R){if(R<0)return!0;var J=O.lK();return R0)return 2;if(R<0)return 1;J=O.lK();return R(0,g.Q)()?0:1}; HP=function(O,R,J,l,u,F,G,y,w,I,C,r,t,Z){Z=Z===void 0?null:Z;g.p.call(this);var V=this;this.loader=O;this.policy=R;this.videoTrack=J;this.audioTrack=l;this.N=u;this.L=F;this.timing=G;this.D=y;this.schedule=w;this.Dg=I;this.B=C;this.SN=r;this.x0=t;this.yB=Z;this.Hq=!1;this.jy="";this.Es=null;this.pW=NaN;this.OQ=!1;this.S=null;this.dI=this.W=NaN;this.Js=this.j=0;this.logger=new g.l9("dash");this.nG={hq:function(m,E){return V.hq(m,E)}}; this.policy.l2>0&&(this.jy=g.DO(this.policy.l2));this.policy.gK&&(this.V=new BP(this.loader,this.policy,this.schedule),g.H(this,this.V))}; EXp=function(O,R,J){var l=R.S?R.S.L.By:R.L.By;var u=O.N,F;(F=!O.policy.IK)||(F=s7(l.L)===s7(l.S));F?l=!1:(u=T1(u,s7(l.S)),F=6E4*Math.pow(u.B,1.6),(0,g.Q)()=u.N?(u.nJ("sdai",{haltrq:F+1,est:u.N}),l=!1):l=u.S!==2;if(!l||!sN(R.S?R.S.L.By:R.L.By,O.policy,O.N,O.loader.f_())||O.loader.isSuspended&&(!ES(O.schedule)||O.loader.YI))return!1;if(O.policy.N&&sE>=5)return g.nP(O.loader.NW),!1;if(O.Dg.isManifestless){if(R.B.length>0&&R.S&&R.S.XQ===-1||R.B.length>=O.policy.HT||!O.policy.Qu&&R.B.length>0&&!O.policy.J.ud)return!1;if(R.V)return!O.Dg.isLive|| !isNaN(O.pW)}if(llh(R))return O.logger.debug("Pending request with server-selectable format found"),!1;if(!R.S){if(!R.L.Yo())return!1;pj(R,O.loader.getCurrentTime())}if(UH(R)&&(R.BD()!==UH(R)||O.loader.isSuspended))return!1;u=(l=O.policy.nI)&&!R.B.length&&ko(R,!0)=O.policy.I7)return!1;l=R.S;if(!l)return!0;l.type===4&&l.L.Yo()&&(R.S=g.Ib(l.L.F6(l)),l= R.S);if(!l.rR()&&!l.L.us(l))return!1;F=O.Dg.q5||O.Dg.N;if(O.Dg.isManifestless&&F){F=R.L.index.lK();var G=J.L.index.lK();F=Math.min(F,G);if(R.L.index.PK()>0&&F>0&&l.XQ>=F)return R.N1=F,J.N1=F,!1}if(l.L.info.audio&&l.type===4||l.rR())return!1;F=!R.D&&!J.D;if(u=!u)u=l.j,u=!!(J.S&&!q9(J.S)&&J.S.jD70(O,R)?(D70(O,R),!1):(O=R.yd)&&O.isLocked()?!1:!0}; D70=function(O,R){var J=O.L;J=J.L?J.L.ZZ:null;if(O.policy.iz&&J)return J.startSecs+J.d2+15;R=PF(O.loader,R);O.policy.Rz>0&&(J=((0,g.Q)()-O.loader.jV)/1E3,R=Math.min(R,O.policy.Rz+O.policy.Sa*J));J=O.loader.getCurrentTime()+R;return O.policy.Hi&&(R=al2(O.loader)+O.policy.Hi,R=0||R.By.g8("defrag")==="1"||R.By.g8("otf")==="1"){R=null;break a}u=Ps(0,4096)}u=new YV([new Bs(5,l.L,u,"createProbeRequestInfo"+l.V,l.XQ)],R.S);u.o1=J;u.L=R.L;R=u}R&&m7s(O,R)}}; m7s=function(O,R){O.loader.Gl(R);var J=teB(R),l=O.loader.S$();J={B3:O.schedule,S9:J,P$:kyT(O.D,J),xz:Hs(R.CJ[0]),Md:ba(R.By.L),vK:O.policy.S,gA:function(G,y){O.loader.Di(G,y)}}; if(O.schedule.S.j){var u,F;J.GV=(((u=O.videoTrack.L)==null?void 0:u.info.Wq)||0)+(((F=O.audioTrack.L)==null?void 0:F.info.Wq)||0)}O.Es&&(J.XQ=R.CJ[0].XQ,J.pW=R.pW,J.Es=O.Es);l={Jr:oqf(R,O.loader.getCurrentTime()),OH:O.policy.vW&&ht(R)&&R.CJ[0].L.info.video?uSx(O.B):void 0,qm:O.policy.iz,poToken:O.loader.Va(),q0:O.loader.j9(),jy:O.jy,dI:isNaN(O.dI)?null:O.dI,yB:O.yB,x0:O.x0,Js:O.Js,Ta:l};return new WF(O.policy,R,J,O.N,function(G,y){try{a:{var w=G.info.CJ[0].L,I=w.info.video?O.videoTrack:O.audioTrack; if(!(G.state>=2)||G.isComplete()||G.fS()||!(!O.loader.EQ||O.loader.isSuspended||ko(I)>3)){var C=flA(G,O.policy,O.N);C===1&&(O.OQ=!0);vXA(O,G,C);if(G.isComplete()||G.jN()&&y<3){if(O.policy.S){var r=G.timing.zG();r.rst=G.state;r.strm=G.xhr.ji();r.cncl=G.xhr&&G.X5.N?1:0;O.loader.nJ("rqs",r)}G.A7&&O.loader.nJ("sbwe3",{},!0)}if(!O.jN()&&G.state>=2){M32(O.timing,G,w);var t=O.loader;O.dI&&G.WS&&t&&(O.dI=NaN,O.loader.Fj(G.WS),O.loader.xm(),O.loader.nJ("cabrUtcSeek",{mediaTimeSeconds:G.WS}));G.Oo&&O.dI&&G.Oo&& !G.Oo.action&&(O.loader.DU(O.dI),O.dI=NaN,O.loader.nJ("cabrUtcSeekFallback",{targetUtcTimeSeconds:O.dI}));G.wc&&O.loader.Pt(G.wc);O.policy.TR&&(O.Js=G.Js);if(G.state===3){bb(I,G);ht(G.info)&&xo(O,I,w,!0);if(O.S){var Z=G.info.i_();Z&&O.S.qM(G.info.CJ[0].XQ,w.info.id,Z)}O.loader.BY()}else if(G.isComplete()&&G.info.CJ[0].type===5){if(G.state!==4)G.dB()&&O.loader.handleError(G.U0(),G.n8());else{var V=(G.info.CJ[0].L.info.video?O.videoTrack:O.audioTrack).B[0]||null;V&&V instanceof WF&&V.fS()&&V.rA()}G.dispose()}else{G.dB()|| XvL(O,G);var m;((m=G.wQ)==null?0:m.itagDenylist)&&O.loader.AF(G.wQ.itagDenylist);if(G.state===4)Tmh(O,G),O.L&&WJH(O.L,G.info,O.S);else if(O.policy.Ql&&G.zb()&&!G.isComplete()&&!Tmh(O,G)&&!G.dB())break a;G.dB()&&($70(O,G),isNaN(O.dI)||(O.loader.DU(O.dI),O.dI=NaN));O.policy.d5&&!G.isComplete()?MjB(O.loader):O.loader.BY();var E=SSp(G,O.policy,O.N);vXA(O,G,E)}}}}}catch(a){y=O.Hq?1:0,O.Hq=!0,G=qC(y),y=kw(a,y),O.loader.handleError(y.errorCode,y.details,y.severity),G||O.loader.rK()}},l)}; XvL=function(O,R){if(R.Vq&&R.state>=2&&R.state!==3){var J=R.xhr.getResponseHeader("X-Response-Itag");if(J){O.logger.debug(function(){return"Applying streamer-selected format "+J}); var l=lQp(O.B,J),u=R.info.B;u&&(u-=l.uX(),l.B=!0,R.info.CJ[0].L.B=!1,lWx(R,l.gt(u)),Uq(O.loader,O.videoTrack,l),udB(O.videoTrack,l),O.loader.Ae(l.info.video.quality),(u=R.vr())&&l.info.lastModified&&l.info.lastModified!==+u&&bb(O.videoTrack,R))}else R.Vq=!1}}; $70=function(O,R){var J=R.info.CJ[0].L,l=R.U0();if(ba(J.By.L)){var u=g.J8(R.HH(),3);O.loader.nJ("dldbrerr",{em:u||"none"})}u=R.info.CJ[0].XQ;var F=B8(O.L,R.info.CJ[0].N,u);l==="net.badstatus"&&(O.j+=1);if(R.canRetry()&&qS_(O.loader)){if(!(R.info.By.B>=O.policy.W8&&O.S&&R.info.isDecorated()&&l==="net.badstatus"&&O.S.RN(F,u))){u=(J.info.video&&J.By.B>1||R.rS===410||R.rS===500||R.rS===503)&&!(Yy(O.B.D).size>0)&&!ba(J.By.L);F=R.n8();var G=J.info.video?O.videoTrack:O.audioTrack;u&&(F.stun="1");O.loader.handleError(l, F);O.jN()||(u&&(O.logger.debug(function(){return"Stunning format "+J.info.id}),Oq(O.B,J)),bb(G,R),O.loader.BY())}}else G=1,O.S&&R.info.isDecorated()&&l==="net.badstatus"&&O.S.RN(F,u)&&(G=0),O.Dg.isLive&&R.U0()==="net.badstatus"&&O.j<=O.policy.hD*2?(ozL(O.Dg),O.Dg.q5||O.Dg.isPremiere?xa(O.loader,0,{bK:"badStatusWorkaround"}):O.Dg.N?xa(O.loader,O.Dg.N1,{bK:"badStatusWorkaround", vM:!0}):jH(O.loader)):O.loader.handleError(l,R.n8(),G)}; Tmh=function(O,R){if(O.policy.useUmp&&R.jN())return!1;try{var J=R.info.CJ[0].L,l=J.info.video?O.videoTrack:O.audioTrack;if(O.Dg.isManifestless&&l){O.j=0;l.V&&(R.jN(),R.isComplete()||R.zb(),l.V=!1);R.WG()&&O.loader.yN.VB(1,R.WG());var u=R.PK(),F=R.O9();se(O.Dg,u,F)}if(R.info.xz()&&!d9(R.info))for(var G=g.N(R.C$()),y=G.next();!y.done;y=G.next())Q3f(l,y.value);for(O.loader.getCurrentTime();l.B.length&&l.B[0].state===4;){var w=l.B.shift();j3h(l,w);l.Iu=w.gq()}l.B.length&&j3h(l,l.B[0]);var I=!!UH(l);I&& R instanceof bY&&(J.info.NT()?EVz(O.timing):maT(O.timing));return I}catch(C){R=R.n8();R.origin="hrhs";a:{O=O.loader;J=C;if(J instanceof Error){R.msg||(R.msg=""+J.message);R.name||(R.name=""+J.name);if(J instanceof g.Ys&&J.args)for(l=g.N(Object.entries(J.args)),u=l.next();!u.done;u=l.next())F=g.N(u.value),u=F.next().value,F=F.next().value,R["arg"+u]=""+F;g.Aa(J);if(J.level==="WARNING"){O.LJ.pc(R);break a}}O.handleError("fmt.unplayable",R,1)}return!1}}; kjL=function(O){var R=O.videoTrack.L.index;O.Es=new oXp({BQ:O.policy.BQ,ud:O.policy.J.ud,vH:R.Jv(),lK:function(){return R.lK()}, Rn:function(){return R.Rn()}})}; xo=function(O,R,J,l){var u=O.policy.Su?O.loader.f_():0;J.Yo()||J.gQ()||J.B||!sN(J.By,O.policy,O.N,u)||J.info.Pq==="f"||O.policy.L||(l?(l=O.D,u=J.info,l=sYT(l,u.video?l.policy.CR:l.policy.w$,u.Wq)):l=0,l=J.gt(l),O=m7s(O,l),d9(l)&&vP(R,O),J.B=!0)}; QY=function(O,R,J,l,u,F,G,y){g.p.call(this);var w=this;this.loader=O;this.HY=R;this.videoTrack=J;this.audioTrack=l;this.Dg=u;this.W=F;this.isAudioOnly=G;this.j=y;this.S=UE;this.OQ=!1;this.logger=new g.l9("sabr");this.V=this.Hq=this.SN=!1;this.videoInfos=this.J=this.W.videoInfos;this.B=this.iz=this.W.L;this.L=new QJ(R,F,function(I,C){w.loader.nJ(I,C)}); this.HY.MM||sZ2(this);this.isAudioOnly&&bbB(this,this.Dg.L["0"])}; W1s=function(O,R){var J=[];R=g.N(R);for(var l=R.next();!l.done;l=R.next())J.push(g.g3(l.value,O.Dg.vy));return J}; bbB=function(O,R,J){R!==O.N&&(O.N&&(O.OQ=!0),O.N=R,O.VL(R,O.videoTrack,J))}; pv0=function(O,R){O.logger.debug("setConstraint: "+Ve(R));f1(O.HY)&&(O.Hq=R.reason==="m"||R.reason==="l"?!0:!1);R.reason==="m"?R.isLocked()&&AjL(O,R.L):e60(O,R)?Pop(O,R.S,R.L):O.videoInfos=O.J;O.S=R}; e60=function(O,R){return O.HY.Lk&&R.reason==="b"||O.HY.hF&&R.reason==="l"||O.HY.DF?!1:O.HY.oE?!0:R.reason==="l"||R.reason==="b"||R.reason==="o"}; BmA=function(O,R){return R.isLocked()&&O.L.S||O.S===void 0?!1:R.equals(O.S)}; HbH=function(O,R){var J,l=(J=O.N)==null?void 0:J.info.video.qualityOrdinal;return O.OQ?!0:O.N?R!==l?!0:!O.L.S||O.HY.zW&&O.L.L===O.N.info.itag?!1:!0:!1}; AjL=function(O,R){var J=O.L.L;if(J){O.videoInfos=O.J;var l=g.rC(O.videoInfos,function(u){return u.id===J}); l&&l.video.qualityOrdinal===R?O.videoInfos=[l]:(l=O.videoInfos.map(function(u){return u.id}),O.loader.nJ("sabrpf",{pfid:""+J, vfids:""+l.join(".")}),Pop(O,R,R),dx(O.L,""))}else Pop(O,R,R)}; Pop=function(O,R,J){O.videoInfos=O.J;O.videoInfos=g.Ai(O.videoInfos,function(l){return l.video.qualityOrdinal>=R&&l.video.qualityOrdinal<=J})}; sZ2=function(O){var R=HL_(O.L,O.j);R&&(O.B=[R])}; x7x=function(O,R,J){if(O.HY.MM){if(O.j){var l=g.Ai(O.B,function(u){return u.id===O.j}); return LF(l,J).includes(R)}l=g.Ai(O.B,function(u){var F;return!((F=u.Ef)==null||!F.isDefault)}); if(l.length>0)return LF(l,J).includes(R)}return LF(O.B,J).includes(R)}; LF=function(O,R){return O.map(function(J){return bi(g.g3(J,R))})}; U7H=function(O){var R;if((R=O.S)==null?0:R.isLocked())return O.videoInfos;var J=Yy(O.L);R=g.Ai(O.videoInfos,function(l){return l.Wq>O.HY.Wq?!1:!J.has(l.id)}); B9z(O.L)&&(R=g.Ai(R,function(l){return l.video.width<=854&&l.video.height<=480})); return R}; L1z=function(O,R,J,l){var u=O.Dg,F=O.LJ.getVideoData(),G=g.dy(F),y=O.cB,w=SI({bz:F.T(),LJ:O.LJ,mw:O.mw,HY:O.HY,jV:O.jV,nN:O.nN,aG:O.aG,W_:O.W_,f8:O.f8,isPrefetch:O.isPrefetch,B4:O.B4,sabrLicenseConstraint:F.sabrLicenseConstraint,zt:O.zt,EL:O.EL,yA:O.yA,IL:O.IL,Quh:!!y,eW:F.eW}),I=Ny(F,O.Ta,O.nextRequestPolicy,O.XA,O.QF,O.d6,O.UR);l&&J&&(l=I.ma?I.ma.map(function(m){return m.type}):[],J("sabr",{stmctxt:l.join("_"), unsntctxt:I.mB?I.mB.join("_"):""}));l=O.PB;var C=O.sH;if(C===void 0&&l===void 0){var r;C=jZA(u.vy,(r=O.e0)==null?void 0:r.video);var t;l=jZA(u.vy,(t=O.e0)==null?void 0:t.audio)}if(F.yB)var Z=F.yB;F={KS:w,zV:O.zV,PB:l,sH:C,cB:y,videoPlaybackUstreamerConfig:Z,aE:I};O.Tb&&(F.Tb=O.Tb);if(G&&R){G=new Map;var V=g.N(u.Qh);for(y=V.next();!y.done;y=V.next())y=y.value,(w=u.Iu[c1s(u,y)]||"")?(G.has(w)||G.set(w,[]),G.get(w).push(y)):J&&J("ssap",{nocid4fmt:(y.itag||"")+"_"+(y.lmt||0)+"_"+(y.xtags||"")});u=new Map; V=g.N(O.GJ);for(y=V.next();!y.done;y=V.next())y=y.value,w=y.startTimeMs||0,I=void 0,r=(I=R)==null?void 0:ka(I,w),I=r.clipId,r=r.Us,I?(u.has(I)||(t=G.get(I)||[],u.set(I,{clipId:I,GJ:[],qy:t})),r!==0&&(y.startTimeMs=w-r),u.get(I).GJ.push(y)):J&&(I=void 0,J("ssap",{nocid4range:"1",fmt:((I=y.formatId)==null?void 0:I.itag)||"",st:w.toFixed(3),d:(y.durationMs||0).toFixed(3),timeline:Yo(R)}));F.Nm=[];u=g.N(u.entries());for(G=u.next();!G.done;G=u.next())G=g.N(G.value),G.next(),G=G.next().value,F.Nm.push(G); if(O.GJ.length&&!F.Nm.length){J&&J("ssap",{nobfrange:"1",br:QZp(O.GJ),timeline:Yo(R)});return}O.MZ&&(F.MZ=O.MZ);O.Ps&&(F.Ps=O.Ps)}else F.GJ=O.GJ,F.qy=u.Qh,G&&((V=O.GJ)==null?void 0:V.length)>0&&!R&&J&&J("ssap",{bldmistlm:"1"});return F}; jZA=function(O,R){return R?[g.g3(R.info,O)]:[]}; QZp=function(O){var R="";O=g.N(O);for(var J=O.next();!J.done;J=O.next()){J=J.value;var l=void 0,u=void 0,F=void 0;R+="fmt."+(((l=J.formatId)==null?void 0:l.itag)||"")+"_"+(((u=J.formatId)==null?void 0:u.lmt)||0)+"_"+(((F=J.formatId)==null?void 0:F.xtags)||"")+";st."+(J.startTimeMs||0).toFixed(3)+";d."+(J.durationMs||0).toFixed(3)+";"}return R}; df=function(O,R,J){var l=this;this.requestType=O;this.By=R;this.Of=J;this.S=null;this.nG={UrQ:function(){var u;return(u=l.data)==null?void 0:u.isPrefetch}, QF:function(){var u;return(u=l.data)==null?void 0:u.QF}}}; V3A=function(O,R,J){R=qa(O.By,YSz(O,R,J),R);O.bL()&&R.set("probe","1");return R}; YSz=function(O,R,J){O.o1===void 0&&(O.o1=O.By.o1(R,J));return O.o1}; d72=function(O){var R,J;return((R=O.L)==null?void 0:(J=R.KS)==null?void 0:J.eE)||0}; h62=function(O){var R,J;return!!((R=O.L)==null?0:(J=R.KS)==null?0:J.zt)}; z6_=function(O){var R={},J=[],l=[];if(!O.data)return R;for(var u=0;u0;w--)J.push(y)}J.length!==G?R.error=!0:(F=J.slice(-F),J.length=u,EI_(R,J,F));break;case 1:EI_(R,GK,Zsh);break;case 0:D__(R, R.L&7);J=IF(R,16);u=IF(R,16);(J^u)!==65535&&(R.error=!0);R.output.set(R.data.subarray(R.S,R.S+J),R.B);R.S+=J;R.B+=J;break;default:R.error=!0}O.B>O.output.length&&(O.output=new Uint8Array(O.B*2),O.B=0,O.S=0,O.N=!1,O.L=0,O.register=0)}O.output.length!==O.B&&(O.output=O.output.subarray(0,O.B));return O.error?new Uint8Array(0):O.output}; EI_=function(O,R,J){R=Nyf(R);J=Nyf(J);for(var l=O.data,u=O.output,F=O.B,G=O.register,y=O.L,w=O.S;;){if(y<15){if(w>l.length){O.error=!0;break}G|=(l[w+1]<<8)+l[w]<>=7;I<0;)I=R[(G&1)-I],G>>=1;else G>>=I&15;y-=I&15;I>>=4;if(I<256)u[F++]=I;else if(O.register=G,O.L=y,O.S=w,I>256){G=yp[I];G+=IF(O,Kv[I]);w=m_s(O,J);y=w_[w];y+=IF(O,VNB[w]);if(vIz&&GJ.length&&(O.error=!0);O.register|=(J[l+1]<<8)+J[l]<=0)return D__(O,J&15),J>>4;for(D__(O,7);J<0;)J=R[IF(O,1)-J];return J>>4}; IF=function(O,R){for(;O.L=O.data.length)return O.error=!0,0;O.register|=O.data[O.S++]<>=R;O.L-=R;return J}; D__=function(O,R){O.L-=R;O.register>>=R}; Nyf=function(O){for(var R=[],J=g.N(O),l=J.next();!l.done;l=J.next())l=l.value,R[l]||(R[l]=0),R[l]++;var u=R[0]=0;J=[];var F=0;l=0;for(var G=1;G7&&(F+=R[G]);for(u=1;u>w&1;y=F<<4|G;if(G<=7)for(w=1<<7-G;w--;)l[w<>=7;G--;){l[w]||(l[w]=-R,R+=2);var I=u&1;u>>=1;w=I-l[w]}l[w]=y}}return l}; Xxx=function(O){var R,J,l,u,F,G,y;return g.A(function(w){switch(w.S){case 1:if(!("DecompressionStream"in window))return w.return(g.acs(new g.fcx(O)));R=new DecompressionStream("gzip");J=R.writable.getWriter();J.write(O);J.close();l=R.readable.getReader();u=new SX([]);case 2:return g.k(w,l.read(),5);case 5:F=w.L;G=F.value;if(y=F.done){w.pJ(4);break}u.append(G);w.pJ(2);break;case 4:return w.return(u.I1())}})}; Cv=function(O,R){this.L=O;this.fZ=R}; Ty_=function(O){return EP(EP(SC(function(){return mq(O.fZ,function(R){return O.iE(O.L,R)})}),function(){return O.BC(O.L)}),function(){return O.uE(O.L)})}; $_L=function(O,R){return Ty_(new Cv(O,R))}; kqL=function(O){Dr.call(this,"onesie");this.f1=O;this.L={};this.B=!0;this.N=null;this.queue=new oI2(this);this.D={};this.j=Di(function(R,J){var l=this;return function F(){var G,y,w,I,C,r,t,Z,V,m,E,a,v,b,W,B,z,Y,gh,l2;return WB(F,function(O_){switch(O_.S){case 1:g.E_(O_,2);l.f1.Pa();G=function(Kx){return function(n){throw{name:Kx,message:n};}}; y=R.I1();g.N0(O_,4,5);if(!J){O_.pJ(7);break}return fx(O_,eT(EP(MN0(l.f1,y,l.iv),G("DecryptError")).wait()),8);case 8:w=O_.L;case 7:if(!l.f1.enableCompression){O_.pJ(9);break}return fx(O_,eT(EP($_L((r=w)!=null?r:y,l.f1.T().m1),G("DecompressError")).wait()),10);case 10:I=O_.L;case 9:C=UX((Z=(t=I)!=null?t:w)!=null?Z:y,CN2);case 5:g.M0(O_,0,2);if(m=(V=l.f1.T())==null?void 0:V.fZ)((E=w)==null?void 0:E.buffer)===m.exports.memory.buffer&&m.free(w.byteOffset),((a=I)==null?void 0:a.buffer)===m.exports.memory.buffer&& m.free(I.byteOffset);g.kW(O_,6);break;case 4:throw b=v=g.Tz(O_),new MC("onesie.response.parse",{name:(Y=b.name)!=null?Y:"unknown",message:(gh=b.message)!=null?gh:"unknown",wasm:((W=l.f1.T())==null?0:W.fZ)?((B=l.f1.T())==null?0:(z=B.fZ)==null?0:z.L)?"1js":"1":"0",enc:l.B,gz:l.f1.enableCompression,webcrypto:!!Es()});case 6:return qE2(C),l2=g.$u(C.body),O_.return(l2);case 2:g.M0(O_),g.kW(O_,0)}})}()})}; sQL=function(O){var R=O.queue;R.L.length&&R.L[0].isEncrypted&&!R.S&&(R.L.length=0);R=g.N(Object.keys(O.L));for(var J=R.next();!J.done;J=R.next()){J=J.value;var l=O.L[J];if(!l.Co){var u=O.queue;u.L.push({videoId:l.videoId,formatId:J,isEncrypted:!1});u.S||FY(u)}}}; W5f=function(O,R){var J=R.getLength(),l=!1;switch(O.N){case 0:O.f1.Z("html5_future_onesie_ump_handler_on_player_response")?EP(mq(O.j(R,O.B),function(u){bsx(O.f1,u)}),function(u){O.f1.CD(u)}):O.Pa(R,O.B).then(function(u){bsx(O.f1,u)},function(u){O.f1.CD(u)}); break;case 2:O.Vs("ormk");R=R.I1();O.f1.Z("html5_future_onesie_ump_handler_on_media_decryption_key")?O.queue.B(R,O.f1.T().m1):O.queue.decrypt(R);break;default:l=!0}O.f1.yY&&O.f1.nJ("ombup","id.11;pt."+O.N+";len."+J+(l?";ignored.1":""));O.N=null}; qE2=function(O){if(O.G2!==1)throw new MC("onesie.response.badproxystatus",{st:O.G2,webcrypto:!!Es(),textencoder:!!g.YW.TextEncoder});if(O.Sv!==200)throw new MC("onesie.response.badstatus",{st:O.Sv});}; AX2=function(O){return new Promise(function(R){setTimeout(R,O)})}; efs=function(O,R){var J=O.T();J=O.Bc&&J.Z("html5_onesie_preload_use_content_owner");var l=O.Tv,u=gm(R.Ru.experiments,"debug_bandaid_hostname");if(u)R=g_(R,u);else if((J===void 0?0:J)&&(l==null?0:l.url)&&!R.S){var F=s7(new g.qL(l.url));R=g_(R,F)}else R=(F=R.L.get(0))==null?void 0:F.location.clone();if(R&&O.videoId){F=Gj(O.videoId);O=[];if(F)for(F=g.N(F),J=F.next();!J.done;J=F.next())O.push(J.value.toString(16).padStart(2,"0"));R.set("id",O.join(""));return R}}; Prs=function(O,R,J){J=J===void 0?0:J;var l,u;return g.A(function(F){if(F.S==1)return l=[],l.push(R.load()),J>0&&l.push(AX2(J)),g.k(F,Promise.race(l),2);u=efs(O,R);return F.return(u)})}; px0=function(O,R,J,l){l=l===void 0?!1:l;O.set("cpn",R.clientPlaybackNonce);O.set("opr","1");var u=R.T();O.set("por","1");Es()||O.set("onem","1");R.startSeconds>0&&O.set("osts",""+R.startSeconds);l||(u.Z("html5_onesie_disable_partial_segments")&&O.set("oses","1"),R=u.Z("html5_gapless_onesie_no_media_bytes")&&i1(R)&&R.Bc,J&&!R?(R=J.audio,O.set("pvi",J.video.join(",")),u.Z("html5_onesie_disable_audio_bytes")||O.set("pai",R.join(",")),Jj||O.set("osh","1")):(O.set("oad","0"),O.set("ovd","0"),O.set("oaad", "0"),O.set("oavd","0")))}; Bys=function(O,R,J,l,u){u=u===void 0?!1:u;var F="https://youtubei.googleapis.com/youtubei/"+R.CE.innertubeApiVersion+"/player",G=[{name:"Content-Type",value:"application/json"}];l&&G.push({name:"Authorization",value:"Bearer "+l});G.push({name:"User-Agent",value:g.aW()});g.YB("EOM_VISITOR_DATA")?G.push({name:"X-Goog-EOM-Visitor-Id",value:g.YB("EOM_VISITOR_DATA")}):(J=J.visitorData||g.YB("VISITOR_DATA"))&&G.push({name:"X-Goog-Visitor-Id",value:J});(J=g.YB("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&G.push({name:"X-YouTube-Lava-Device-Context", value:J});(R=gm(R.experiments,"debug_sherlog_username"))&&G.push({name:"X-Youtube-Sherlog-Username",value:R});O=ku(JSON.stringify(O));return{url:F,Pr:G,postBody:O,P0J:u,IE:u}}; x_s=function(O,R,J,l,u,F){var G=g.nk(O,IF_,O.IE?void 0:J.fZ),y={encryptedClientKey:R.L.encryptedClientKey,VK:!0,kL:!0,vG:Hsp(J,!!O.IE),HZ:J.experiments.Vh("html5_use_jsonformatter_to_parse_player_response")};if(O.IE)y.kuz=G;else{if(J.fZ){O=isB(R).S(G,R.iv);var w;y.xI=(w=J.fZ.Xg(O))!=null?w:O}else y.xI=R.encrypt(G);w=y.xI;(0,g.Q)();w=QVp(new jVf(R.L.B),w,R.iv);y.n7=w;y.iv=R.iv}R=l.getVideoData();J=SI({bz:J,LJ:l,mw:R.startSeconds*1E3});u={Lq:y,KS:J,onesieUstreamerConfig:u,Z7:F,aE:Ny(R)};R.reloadPlaybackParams&& (u.reloadPlaybackParams=R.reloadPlaybackParams);return u}; U_2=function(O,R,J){var l,u,F;return g.A(function(G){if(G.S==1)return l=g.nk(R,IF_),g.k(G,lch(J,l),2);if(G.S!=3)return u=G.L,g.k(G,uvL(J,u),3);F=G.L;return G.return({xI:u,encryptedClientKey:J.L.encryptedClientKey,iv:J.iv,n7:F,VK:!0,kL:!0,vG:Hsp(O,!!R.IE),HZ:O.experiments.Vh("html5_use_jsonformatter_to_parse_player_response")})})}; jQz=function(O,R,J,l,u,F){var G,y,w,I;return g.A(function(C){if(C.S==1)return g.k(C,U_2(J,O,R),2);G=C.L;y=l.getVideoData();w=SI({bz:J,LJ:l,mw:y.startSeconds*1E3});I={Lq:G,KS:w,onesieUstreamerConfig:u,Z7:F,aE:Ny(y)};y.reloadPlaybackParams&&(I.reloadPlaybackParams=y.reloadPlaybackParams);return C.return(I)})}; Hsp=function(O,R){O=m1(O.schedule,!0);R=R||!!Es()&&O>1572864;return"DecompressionStream"in window||!R}; tJ=function(O,R){g.p.call(this);var J=this;this.LJ=O;this.playerRequest=R;this.logger=new g.l9("onesie");this.xhr=null;this.state=1;this.Ox=new Jw;this.W0=!1;this.playerResponse="";this.Mx=new zo(this);this.gR=new kqL(this);this.Mt="";this.md=this.xY=!1;this.KT="";this.enableCompression=this.zI=this.C9=!1;this.Xo=[];this.TV=-1;this.Ru=this.LJ.T();this.videoData=this.LJ.getVideoData();this.yY=this.Ru.DA();this.FE=this.Ru.tK;this.kZ=new RF(this.FE.L,this.Ru.m1,nXs(this.Ru));this.U5=this.Ru.Z("html5_onesie_check_timeout"); this.aB=new g.zR(this.hB,500,this);this.gf=new g.zR(this.zA,1E4,this);this.nM=new g.zR(function(){if(!J.isComplete()){var l=r_(J);J.CD(new MC("net.timeout",l))}},1E3); this.E7=new g.zR(this.fgq,2E3,this);this.Gw=this.LJ.j9();this.VF=this.Z("html5_onesie_wait_for_media_availability");g.H(this.videoData,this);g.H(this,this.aB);g.H(this,this.gf);g.H(this,this.E7);g.H(this,this.kZ);O=lo();Jj&&O&&(this.wS=new Map);this.oi=new Map;this.Ev=new Map;this.vX=new Map;this.VR=new Map}; un=function(O,R){var J;return(J=O.wS)==null?void 0:J.get(R)}; L5H=function(O,R,J){var l;return g.A(function(u){if(u.S==1)return O.Vs("oprd_s"),QQs(O)?g.k(u,F5s(O.kZ,R,J),3):(l=O.kZ.decrypt(R,J),u.pJ(2));u.S!=2&&(l=u.L);O.Vs("oprd_c");return u.return(l)})}; MN0=function(O,R,J){O.Vs("oprd_s");R=isB(O.kZ).encrypt(R,J);mq(R,function(){O.Vs("oprd_c")}); return R}; YEA=function(O){return O.Z("html5_onesie_host_probing")||O.yY?Jj:!1}; bsx=function(O,R){O.Vs("oprr");O.playerResponse=R;O.zI||(O.VF=!1);oF(O)}; oF=function(O){if(!O.playerResponse)return!1;if(O.C9)return!0;var R=O.videoData.Z("html5_onesie_audio_only_playback")&&l1(O.videoData);if(O.wS&&O.VF){if(!O.wS.has(O.Mt))return!1;var J=O.wS.get(O.Mt),l;if(l=J){l=!1;for(var u=g.N(J.rz.keys()),F=u.next();!F.done;F=u.next())if(F=J.rz.get(F.value))for(var G=g.N(F.D8),y=G.next();!y.done;y=G.next())y.value.AP>0&&(F.NT?l=!0:R=!0);l=!(R&&l)}if(l)return!1}O.Vs("ofr");O.Ox.resolve(O.playerResponse);if(!O.U5){var w;(w=O.nM)==null||w.start();O.gf.start()}return O.C9= !0}; hfs=function(O){if(O.wS&&!O.Z("html5_onesie_media_capabilities")){O.Vs("ogsf_s");var R=LF0(O.LJ.getVideoData(),function(l,u){O.nJ(l,u)}),J=d_L(O.LJ); R.video=ebh(J,R.video);O.Vs("ogsf_c");if(R.video.length)return R;O.nJ("ombspf","l."+J.S+";u."+J.L+";o."+J.B+";r."+J.reason)}}; QQs=function(O,R){return O.Z("html5_onesie_sync_request_encryption")||(R==null?0:R.IE)||g.cv(O.Ru)&&O.Z("html5_embed_onesie_use_sync_encryption")?!1:!!Es()}; r_=function(O){if(!O.nZ)return{};var R=O.nZ.zG(),J;R.d=(J=O.nZ.N1)==null?void 0:J.SQ();R.shost=O.RR;R.ty="o";return R}; zfs=function(O,R){var J,l;(l=(O=(J=O.wS)==null?void 0:J.get(R))==null)||(R=O.B?!1:O.B=!0,l=!R);return!l}; nIT=function(O,R,J,l,u,F,G,y,w,I,C){g.p.call(this);var r=this;this.LJ=O;this.loader=R;this.policy=J;this.audioTrack=l;this.videoTrack=u;this.Dg=F;this.B3=G;this.AR=y;this.B=w;this.timing=I;this.SN=C;this.L=[];this.j={};this.JR=this.Gd=!1;this.XA=new Set;this.N=this.Iu=this.W=this.f8=0;this.J=null;this.OQ={GJ:[],zV:[]};this.iz={GJ:[],zV:[]};this.D=null;this.Qh=[];this.nG={Hdz:function(){return r.L}, ITJ:function(){return r.j}, Z8g:function(){r.L.length=0}, AuX:function(){return r.XA}, mbU:function(){return r.W}, JYd:function(t){r.W=t}, kKz:function(t){r.N=t}, WX:function(t){r.D=t}}; this.videoData=this.LJ.getVideoData();this.policy.gK&&(this.xS=new BP(this.loader,this.policy,this.B3),g.H(this,this.xS))}; RUs=function(O,R){R=R===void 0?!1:R;if(cXs(O)){O.policy.j&&O.loader.nJ("sabrcrq",{create:1});var J=new df(0,O.Dg.V,O);O.policy.xe>0&&O.N++;R=OQs(O,J,R);O.L.push(R);var l;(l=O.xS)==null||Zbp(l,O.Dg.V)}}; l4A=function(O,R){var J=Jdz(O);if(O.policy.Ie){var l=O.OQ;var u=O.iz}else l=Za(O,O.audioTrack),u=Za(O,O.videoTrack);var F=[].concat(g.X(l.GJ),g.X(u.GJ));O.policy.sQ&&O.D&&F.push.apply(F,g.X(O.Qh));var G=[].concat(g.X(l.zV),g.X(u.zV)),y=O.loader.S$(),w,I,C=O.LJ,r=O.Dg,t=O.S,Z=O.XA,V=O.policy,m=O.loader.jV,E=al2(O.loader)*1E3,a=(w=O.N1)==null?void 0:w.aG;w=(I=O.N1)==null?void 0:I.W_;var v;I=Number((v=O.B.N)==null?void 0:v.info.itag)||0;var b;v=Number((b=O.B.D)==null?void 0:b.info.itag)||0;R={LJ:C,Dg:r, GJ:F,zV:G,mw:J,nextRequestPolicy:t,XA:Z,HY:V,jV:m,nN:E,aG:a,W_:w,f8:O.f8,isPrefetch:R||O.loader.isSuspended,MZ:I,Ps:v,Ta:y,UR:O.LJ.oP()};J=O.loader.Va();F=Gj(J);J&&(R.QF=F);if(J=O.LJ.Sc())R.zt=J*1E3;var W;J=O.B;F=J.SN;if(((W=J.HY)==null?0:f1(W))&&!F)for(W=g.N(J.B),G=W.next();!G.done;G=W.next())if(G.value.Ef){F=!0;break}W=f1(J.HY)&&!F?[]:W1s(J,J.B);R.PB=W;W=O.B;f1(W.HY)&&!W.Hq?W=[]:(J=U7H(W),J.length===0&&(J=W.J),W=W1s(W,J));R.sH=W;R.cB=O.policy.sQ&&O.D?[O.D]:void 0;O.policy.dn&&(R.yA=gD2(O.loader, O.audioTrack),R.IL=gD2(O.loader,O.videoTrack));if(O.policy.B){if(O.policy.OX){W=O.loader.getCurrentTime();var B=Vp(O,l.GJ,W);l=Vp(O,u.GJ,W);var z;u=(z=O.J)==null?void 0:z.e$(Math.min(B,l))}else z=iQW(O,l.GJ,u.GJ),u=(B=O.J)==null?void 0:B.e$(z);u&&(R.Tb=u)}O.policy.W&&O.L.length>0&&O.L[0].yO()&&(R.d6=O.L[0].Qb());return R}; Jdz=function(O){var R,J=O.policy.D&&((R=O.loader)==null?void 0:R.RL());R=O.loader.getCurrentTime()||0;R=uD2(O,R);var l=O.loader.Vd()||0;R+=l;l=TF(O.videoData)||g.XD(O.videoData);var u=0;J?(l&&(u=Number.MAX_SAFE_INTEGER),O.videoData.Hq&&(u=Math.ceil(O.videoData.N1*1E3))):u=Math.ceil(R*1E3);return Math.min(Number.MAX_SAFE_INTEGER,u)}; uD2=function(O,R){if(O.loader.isSeeking())return R;var J=O.LJ.FK();if(!J)return R;J=J.cH();if(J.length===0||Ig(J,R))return R;if(!F1_(O.videoTrack,R)&&!F1_(O.audioTrack,R))return O.loader.nJ("sundrn",{b:0,lt:R}),R;for(var l=R,u=Infinity,F=0;FR)){var G=R-J.end(F);G=20)?(O.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),R):l}; iQW=function(O,R,J){var l=O.loader.getCurrentTime()||0;R=Vp(O,R,l);O=Vp(O,J,l);return Math.min(R,O)}; Vp=function(O,R,J){var l=O.loader.Vd()||0;if(O.policy.OX)return FEB(R,(J+l)*1E3)/1E3+J;O=g.N(R);for(R=O.next();!R.done;R=O.next()){var u=R.value;R=u.startTimeMs?u.startTimeMs/1E3-l:0;u=R+(u.durationMs?u.durationMs/1E3:0);if(R<=J&&J<=u)return u}return J}; cXs=function(O){if(O.policy.xe>0){var R=Math.floor((0,g.Q)()/1E4);if(R===O.Iu){if(O.N>=O.policy.xe){if(O.N===O.policy.xe){var J={reason:"toomanyrequests"};J.limit=O.N;O.loader.handleError("player.exception",J);O.N+=1}return!1}}else O.Iu=R,O.N=0}if(O.loader.isSuspended&&O.loader.YI)return!1;if(O.Hq&&(0,g.Q)()0&&(!O.policy.W||O.L.length!==1||!O.L[0].yO()))return!1;var l;if((l=O.Dg.V)==null||!sN(l,O.policy,O.j,O.loader.f_())||WP(O.audioTrack)&&WP(O.videoTrack))return!1; if(fv(O,O.audioTrack)&&fv(O,O.videoTrack))return O.policy.S&&O.loader.nJ("sabrHeap",{a:""+M9(O.audioTrack),v:""+M9(O.videoTrack)}),!1;if(R=O.policy.B){R=!1;if(O.SN.S===2)R=!0;else if(O.SN.S===3){Jdz(O);O.loader.Vd();l=iQW(O,Ta(O.audioTrack,O.loader.isSeeking()).GJ,Ta(O.videoTrack,O.loader.isSeeking()).GJ);var u=O.SN;l>=u.D?(u.nJ("sdai",{haltrq:l,est:u.D}),l=!0):l=!1;l&&(R=!0)}R&&O.policy.j&&O.loader.nJ("sabrcrq",{waitad:1})}if(R)return!1;O.policy.Ie&&(O.OQ=Za(O,O.audioTrack),O.iz=Za(O,O.videoTrack)); if(!O.S)return O.policy.j&&O.loader.nJ("sabrcrq",{nopolicy:1}),!0;if(O.LJ.Sc())return O.policy.j&&O.loader.nJ("sabrcrq",{utc:1}),!0;if(O.B.V)return O.policy.j&&O.loader.nJ("sabrcrq",{audio:1}),!0;if(!O.S.targetAudioReadaheadMs||!O.S.targetVideoReadaheadMs)return O.policy.j&&O.loader.nJ("sabrcrq",{noreadahead:1}),!0;if(O.policy.D&&O.loader.RL())return O.policy.j&&O.loader.nJ("sabrcrq",{seekToHead:1}),!0;R=Math.min(PF(O.loader,O.audioTrack)*1E3,O.S.targetAudioReadaheadMs);l=Math.min(PF(O.loader,O.videoTrack)* 1E3,O.S.targetVideoReadaheadMs);var F=Math.min(R,l);u=ko(O.audioTrack,!0)*1E3;var G=ko(O.videoTrack,!0)*1E3;if(O.policy.Ie){var y=O.LJ.getCurrentTime()*1E3;var w=FEB(O.OQ.GJ,y);y=FEB(O.iz.GJ,y)}else w=u,y=G;var I=wR||l>=0&&u.T_>l+1)break;J=Math.max(J,u.startTimeMs+u.durationMs);l=Math.max(l,u.CA)}return Math.max(0,J-R)}; OQs=function(O,R,J){var l={B3:O.B3,gA:function(w,I){O.LJ.Di(w,I)}, xz:O.policy.Uk,vK:O.policy.S};O.B3.S.j&&(l.GV=(O.videoTrack.L.info.Wq||0)+(O.audioTrack.L.info.Wq||0));O.policy.sO&&(l.vH=O.audioTrack.L.index.Jv(),l.xz=!1);var u=YSz(R,O.policy,O.j)?2:1;u!==O.W&&(O.W=u,KEp(O));J=l4A(O,J);if(O.policy.W&&O.policy.S&&J.XA){for(var F=u="",G=g.N(J.XA),y=G.next();!y.done;y=G.next())y=y.value,O.videoData.sabrContextUpdates.has(y)||O.policy.W&&J.d6&&J.d6.type===y?u+="_"+y:F+="_"+y;O.loader.nJ("sabrbldrqs",{ctxts:u,misctxts:F})}!R.setData(J,O.loader.vI(),O.policy,O.j)&&O.policy.W&& O.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);l=new s0(O.policy,R,O.Dg,O.j,O,l,O.loader.j9(),O.policy.F_?O.loader.vI():void 0);b9(O.timing);O.policy.j&&O.loader.nJ("sabrcrq",{rn:l.FW(),probe:R.bL()});return l}; N6=function(O,R){if(R.jN()||O.jN())O.policy.Ek||(O.policy.D?Sv(O.loader):O.loader.BY());else{if(O.policy.S&&R.isComplete()&&R instanceof s0){var J=O.loader,l=J.nJ,u,F,G=Object.assign(R.nZ.zG(),{rst:R.state,strm:R.xhr.ji(),d:(u=R.nZ.N1)==null?void 0:u.SQ(),cncl:R.xhr&&R.X5.N?1:0,rqb:R.X3,cwt:R.R3,swt:(F=R.MO)==null?void 0:F.Oj});u=Object.assign(z6_(R.info),G);l.call(J,"rqs",u)}if(R.isComplete()&&R.bL()&&R instanceof s0)O.policy.mM?R.dL()?(R.dispose(),O.L.length===0?O.loader.BY():(O=O.L[0],O instanceof s0&&O.fS()&&O.rA())):R.dB()&&O.loader.handleError(R.U0(),R.n8()):(R.dispose(),O.loader.BY());else{if(R.Zm())R instanceof s0&&M32(O.timing,R),KEp(O),ydz(O);else if(R.dB())J=O.LJ.Sc(),R instanceof s0&&h62(R.info)&&J&&O.loader.DU(J),R instanceof tJ?O.L.pop():(J=1,R.canRetry()&&qS_(O.loader)&&(w$z(O,R),J=0),O.loader.handleError(R.U0(),R.n8(),J));else{if(O.loader.isSuspended&&!R.isComplete())return;ydz(O)}R.jN()||R instanceof tJ||(R.isComplete()?J=SSp(R,O.policy,O.j):(J=flA(R,O.policy,O.j),J===1&&(O.Gd= !0)),J!==0&&(l=new df(1,R.info.By),l.o1=J===2,OQs(O,l)));O.policy.d5&&!R.isComplete()?MjB(O.loader):O.loader.BY()}}}; ydz=function(O){for(;O.L.length&&O.L[0].RD(O.Ed());){var R=O.L.shift();I4H(O,R)}O.L.length&&I4H(O,O.L[0])}; I4H=function(O,R){var J=new Set(R.TK(O.Ed()));J=g.N(J);for(var l=J.next();!l.done;l=J.next()){var u=l.value;if(!(l=!(R instanceof tJ))){l=O.B;var F=l.Dg.vy,G=LF(l.videoInfos,F);F=x7x(l,u,F);var y=G.includes(u);!l.HY.fR||F||y||l.loader.nJ("sabrcpf",{fid:""+u,vfids:""+G.join("."),said:l.j||""});l=F||G.includes(u)}if(l&&(l=R.eV(u,O.Ed()),G=O.policy.sQ&&uB(l[0].L.info.mimeType),(!(!G&&O.policy.i6&&l.length>0&&(l[0].L.info.NT()?ko(O.audioTrack):ko(O.videoTrack))>3)||R.isComplete())&&R.zb(u,O.Ed())))for(u= R.C$(u,O.Ed()),u=g.N(u),F=u.next();!F.done;F=u.next())if(F=F.value,O.policy.S&&R instanceof tJ&&O.loader.nJ("omblss",{s:F.info.er()}),G)y=O,y.videoData.vy()&&y.D&&bi(y.D)===bi(g.g3(F.info.L.info,y.Dg.vy))&&y.LJ.publish("sabrCaptionsDataLoaded",F,y.K0.bind(y));else{y=F.info.L.info.NT();var w=F.info.L;if(y){var I=void 0;var C=O.B,r=(I=R.Yv(O.Ed()))==null?void 0:I.token;C.V&&w!==C.D?I=!0:(C.V=!1,w!==C.D&&(C.D=w,C.VL(w,C.audioTrack,r)),I=!1);if(I)continue}else I=void 0,bbB(O.B,w,(I=R.Yv(O.Ed()))==null? void 0:I.token);I=y?O.audioTrack:O.videoTrack;R instanceof tJ&&(I.V=!1,R instanceof tJ&&(y?EVz(O.timing):maT(O.timing)));try{Xw(I,l,F)}catch(t){F=kw(t),O.loader.handleError(F.errorCode,F.details,F.severity),I.rK(),O.zN(!1,"pushSlice"),Sv(O.loader)}}}}; w$z=function(O,R){O.policy.W?O.L.splice(O.L.indexOf(R)).forEach(function(J){J.dispose()}):(O.L.pop(),R==null||R.dispose())}; C1B=function(O,R,J){for(var l=[],u=0;u0)for(var R=g.N(O.videoData.sabrContextUpdates.keys()),J=R.next();!J.done;J=R.next()){J=J.value;var l=void 0;((l=O.videoData.sabrContextUpdates.get(J))==null?0:l.sendByDefault)&&O.XA.add(J)}if(O.policy.W&&O.L.length)for(R=g.N(O.L),J=R.next();!J.done;J=R.next())(J=J.value.Qb())&&J.type&&J.sendByDefault&&O.XA.add(J.type)}; rdh=function(O){O.policy.zJ&&(O.N1=void 0,O.f8=0)}; tpz=function(O,R){if(R.dB()||R.jN()){var J=O.loader,l=J.nJ,u=R.state;O=O.Ed();var F,G;if((R=(F=R.wS)==null?void 0:F.get(O))==null)R=void 0;else{F=0;O=R.TK();for(var y=0;y=O.policy.y3,G=!1;if(F){var y=0;!isNaN(R)&&R>O.D&&(y=R-O.D,O.D=R);y/u=O.policy.RU&&!O.B;if(!F&&!J&&SIB(O,R))return NaN;J&&(O.B=!0);a:{l=G;J=(0,g.Q)()/1E3-(O.TT.s_()||0)-O.J.L-O.policy.Y9;F=O.S.startTime;J=F+J;if(l){if(isNaN(R)){mD(O,NaN,"n",R);F=NaN;break a}l=R-O.policy.fL;l=F.N&&l<=F.j){l=!0;break a}l=!1}l=!l}if(l)return O.nJ("ostmf",{ct:O.getCurrentTime(),a:R.L.info.NT()}),!1;(O=O.Hq)!=null&&(O.rz.get(J).wD=!0);return!0}; X$W=function(O){if(!O.Dg.vy)return!0;var R=O.LJ.getVideoData();if(O.LJ.oo())return O.nJ("ombpa",{}),!1;var J,l;if(O.policy.CI&&!!((J=O.W)==null?0:(l=J.cC)==null?0:l.UcR)!==O.Dg.q5)return O.nJ("ombplmm",{}),!1;J=R.w5||R.liveUtcStartSeconds||R.vY;if(O.Dg.q5&&J)return O.nJ("ombplst",{}),!1;if(O.Dg.W)return O.nJ("ombab",{}),!1;J=Date.now();return bs(O.Dg)&&!isNaN(O.OQ)&&J-O.OQ>O.policy.Tr*1E3?(O.nJ("ombttl",{}),!1):O.Dg.g2&&O.Dg.N||!O.policy.mE&&O.Dg.isPremiere||!(td(R)===0||O.policy.L&&R.Z("html5_enable_onesie_media_for_sabr_proxima_optin"))|| R.Z("html5_disable_onesie_media_for_mosaic")&&xD(R)||R.Zv()&&!R.Z("html5_enable_onesie_media_for_lifa")&&R.isDaiEnabled()&&R.enableServerStitchedDai||R.Z("html5_disable_onesie_media_for_lifa_eligible")&&H$(R)?!1:!0}; Tr_=function(O,R){var J=R.L,l=O.Dg.vy;if(X$W(O))if(O.Hq&&O.Hq.rz.has(bi(g.g3(J.info,l)))){if(l=bi(g.g3(J.info,l)),vDf(O,R)){var u=new YV(O.Hq.eV(l)),F=function(G){try{if(G.dB())O.handleError(G.U0(),G.n8()),bb(R,G),ht(G.info)&&xo(O.D,R,J,!0),O.BY();else if(Tmh(O.D,G)){var y;(y=O.B)==null||WJH(y,G.info,O.SN);O.BY()}}catch(w){G=kw(w),O.handleError(G.errorCode,G.details,G.severity),O.rK()}}; J.B=!0;d9(u)&&(vP(R,new bY(O.policy,l,u,O.Hq,F)),b9(O.timing))}}else O.nJ("ombfmt",{})}; $ZL=function(O,R){R=R||O.videoTrack&&O.videoTrack.S&&O.videoTrack.S.startTime||O.getCurrentTime();var J=Uq,l=O.videoTrack,u=O.L;R=u.nextVideo&&u.nextVideo.index.F8(R)||0;u.iz!==R&&(u.xS={},u.iz=R,n1(u,u.L));R=!u.L.isLocked()&&u.W>-1&&(0,g.Q)()-u.WR.L&&R.reason==="b";l||u||J?(O.LJ.pc({reattachOnConstraint:l?"u":u?"drm":"perf",lo:R.S,up:R.L}),O.policy.zW||(O.N.L.S=!1)):(O.policy.zW&&(O.N.L.S=!1),Sv(O))}}else if(!YNB(O.L,R)&&O.videoTrack){O.logger.debug(function(){return"Setting constraint: r="+R.reason+" u="+R.L}); J=O.L.L;WE0(O,hZh(O.L,R));$ZL(O);l=R.isLocked()&&R.reason==="m"&&O.L.Hq;u=O.policy.E0&&R.reason==="l"&&Ay(O.videoTrack);J=J.L>R.L&&R.reason==="b";var F=O.L.AR&&!N8();l||u||J||F?O.LJ.pc({reattachOnConstraint:l?"u":u?"drm":F?"codec":"perf"}):Sv(O)}}; eUT=function(O,R,J){if((!O.EQ||h1(O.EQ)&&!O.policy.BM)&&!O.Al.isSeeking()&&(O.policy.L||Ay(R)&&R.L.Yo()&&O.L.SN)){var l=O.getCurrentTime()+bKB(O.V,R,J);O.logger.debug(function(){return"Clearing back to "+l.toFixed(3)}); n2_(R,l)}}; WE0=function(O,R){R&&(O.logger.debug(function(){return"Logging new format: "+G4(R.video.info)}),P12(O.LJ,new jI(R.video,R.reason))); if(O.L.Gd){var J=Op0(O.L,"a");O.LJ.B_(new jI(J.audio,J.reason))}}; Sv=function(O){g.nP(O.SG)}; MjB=function(O){O.policy.d5&&O.policy.Ql&&Math.min(zV0(O.videoTrack),zV0(O.audioTrack))*1E3>O.policy.YO?g.nP(O.Rz):O.BY()}; p$T=function(O,R){var J=(0,g.Q)()-R,l=ko(O.audioTrack,!0)*1E3,u=ko(O.videoTrack,!0)*1E3;O.logger.debug(function(){return"Appends paused for "+J}); if(O.policy.S&&(O.nJ("apdpe",{dur:J.toFixed(),abuf:l.toFixed(),vbuf:u.toFixed()}),pF(O.policy))){var F=$a(O.V);O.nJ("sdps",{ct:R,ah:l.toFixed(),vh:u.toFixed(),mr:MM(O.V,O.uL,F),bw:F.toFixed(),js:O.isSeeking(),re:+O.uL,ps:(O.policy.j7||"").toString(),rn:(O.policy.vS||"").toString()})}}; Brp=function(O){if(llh(O.videoTrack))return O.logger.debug("Pausing appends for server-selectable format"),"ssf";if(O.policy.JR&&Gjf(O.videoTrack)&&Gjf(O.audioTrack))return"updateEnd";if(WP(O.audioTrack)||WP(O.videoTrack)&&O.videoTrack.L.info.Pq!=="f")return"";if(O.Al.isSeeking()){var R=O.V;var J=O.videoTrack;var l=O.audioTrack;if(R.policy.L){var u=R.policy.tK;pF(R.policy)&&(u=MM(R,!1,$a(R)));R=u;J=ko(l,!0)>=R&&ko(J,!0)>=R}else J.B.length||l.B.length?(u=J.L.info.Wq+l.L.info.Wq,u=10*(1-$a(R)/u),R= Math.max(u,R.policy.tK),J=ko(l,!0)>=R&&ko(J,!0)>=R):J=!0;if(!J)return"abr";J=O.videoTrack;if(J.B.length>0&&J.N.S.length===1&&aQH(J.N).info.J360);l=pF(O.policy)&&O.policy.Gm;if(!O.uL||!l&&J)return"";J=O.policy.jA;pF(O.policy)&&(J=MM(O.V,O.uL,$a(O.V)));J=R62(O.videoTrack,O.getCurrentTime(),J)||R62(O.audioTrack,O.getCurrentTime(), J);return pF(O.policy)?J?"mbnm":"":(O.videoTrack.B.length>0||O.audioTrack.B.length>0||Nmx(O.D,O.videoTrack,O.audioTrack)||Nmx(O.D,O.audioTrack,O.videoTrack))&&J?"nord":""}; HQ_=function(O){if(O.J){var R=O.J.BY(O.audioTrack,r3(O.EQ.S.Ap()));R&&O.LJ.seekTo(R,{Ny:!0,bK:"pollSubsegmentReadahead",vM:!0})}}; dZf=function(O,R,J){if(O.policy.JR&&Gjf(R))return!1;if(J.H5())return!0;if(!J.Rv())return!1;var l=UH(R);if(!l||l.info.type===6)return!1;var u;if(O.policy.uy||((u=O.B)==null?0:psh(u,R,l.info.XQ)))O.xS=0;else return O.Al.isSeeking()&&Sv(O),O.xS=O.xS||(0,g.Q)(),!1;if(!Ep(O,R,J,l.info))return!1;if(O.Dg.S&&l.info.S===0){if(u=xZA(R,J,l)){var F=a5(R);O.nJ("initchg",{it:l.info.L.info.id,sr:!!F&&F.L===l.info.L,ty:l.info.type,seg:l.info.XQ})}F=g.Rg(l.info.L.info);O.policy.E8&&F&&!u&&A1f(l)}F=O.J&&!!O.J.N&&R.L.info.audio; u=O.Dg.isManifestless||l.D;if(!(O.Dg.S&&l.info.S!==0||u&&!F)&&UZs(O,R,J,l))return!0;if(F)return!1;F=PF(O,R);F=O.getCurrentTime()+F;if(l.info.N>F)return O.policy.L&&jNA(O,R),O.policy.iy&&YPL(R.N,F,!1),!1;QNs(O,R);var G;O.policy.Re&&J===((G=O.EQ)==null?void 0:G.L)&&O.Td&&(J.NZ()===0?(O.Td=!1,O.policy.Re=!1):O.KJ=J.NZ());if(!LEh(O,J,l,R))return!1;O.policy.JR&&l.info.rR()?(O.LJ.T().DA()&&O.nJ("eosl",{ls:l.info.er()}),l.isLocked=!0):(R.W2(l),ctB(O.L,l.info),O.logger.debug(function(){return"Appended "+ l.info.er()+", buffered: "+y9(J.Ap())})); u&&YIf(O,l.info.L.Kk);return!0}; jNA=function(O,R){R===O.videoTrack?O.Qh=O.Qh||(0,g.Q)():O.N1=O.N1||(0,g.Q)()}; QNs=function(O,R){R===O.videoTrack?O.Qh=0:O.N1=0}; LEh=function(O,R,J,l){var u=O.policy.w5?(0,g.Q)():0,F=J.D&&J.info.L.L||void 0,G=J.L;J.D&&(G=hU0(O,J,G)||G);var y=G.I1();G=O.policy.w5?(0,g.Q)():0;R=zUp(O,R,y,J.info,F);(l=l.W)!=null&&(F=J.info,u=G-u,G=(0,g.Q)()-G,!l.S||u32(l.S,F)&&l.S.XQ===F.XQ||l.flush(),l.N+=u,l.B+=G,u=1,!l.S&&F.S&&(u=2),ib(l,u,R),G=Math.ceil(F.S/1024),u===2&&l.L.add(G),l.L.add(Math.ceil((F.S+F.B)/1024)-G),l.S=F);O.iz=0;if(R===0)return O.Iu&&(O.logger.debug("Retry succeed, back to normal append logic."),O.Iu=!1,O.fJ=!1),O.sQ=0, !0;if(R===2||R===5)return nDA(O,"checked",R,J.info),!1;if(R===1){if(!O.Iu)return O.logger.debug("QuotaExceeded, retrying."),O.Iu=!0,!1;if(!O.fJ)return O.fJ=!0,O.LJ.seekTo(O.getCurrentTime(),{bK:"quotaExceeded",vM:!0}),!1;J.info.ke()?(u=O.policy,u.Qh=Math.floor(u.Qh*.8),u.OQ=Math.floor(u.OQ*.8)):(u=O.policy,u.KJ=Math.floor(u.KJ*.8),u.OQ=Math.floor(u.OQ*.8));O.policy.L?L1(O.N.L,J.info.L,!1):Oq(O.L,J.info.L)}O.LJ.pc({reattachOnAppend:R});return!1}; hU0=function(O,R,J){var l;if(l=O.policy.kp&&O.EQ&&!O.EQ.V&&!O.LJ.jh())R=R.info.L.info,l=R.WY()&&dz(R)&&R.video&&R.video.width<3840&&R.video.width>R.video.height;if(l&&(O.EQ.V=!0,A4('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return J=E2T(J),O.policy.S&&O.nJ("sp4k",{s:!!J}),J}; nDA=function(O,R,J,l){var u="fmt.unplayable",F=1;J===5||J===3?(u="fmt.unparseable",O.policy.L?!l.L.info.video||Yy(O.N.L).size>0||L1(O.N.L,l.L,!1):!l.L.info.video||Yy(O.L.D).size>0||Oq(O.L,l.L)):J===2&&(O.sQ<15?(O.sQ++,u="html5.invalidstate",F=0):u="fmt.unplayable");l=QN(l);var G;l.mrs=(G=O.EQ)==null?void 0:OJ(G);l.origin=R;l.reason=J;O.handleError(u,l,F)}; BuA=function(O,R,J,l,u){var F=O.Dg;var G=O.policy.L,y=!1,w=-1,I;for(I in F.L){var C=uB(F.L[I].info.mimeType)||F.L[I].info.ke();if(l===C)if(C=F.L[I].index,C.Cs(R.XQ)){y=C;var r=R,t=y.d$(r.XQ);t&&t.startTime!==r.startTime?(y.segments=[],y.pF(r),y=!0):y=!1;y?w=R.XQ:!R.pending&&G&&(r=C.getDuration(R.XQ),r!==R.duration&&(F.publish("clienttemp","mfldurUpdate",{itag:F.L[I].info.itag,seg:R.XQ,od:r,nd:R.duration},!1),C.pF(R),y=!0))}else C.pF(R),y=!0}w>=0&&(G={},F.publish("clienttemp","resetMflIndex",(G[l? "v":"a"]=w,G),!1));F=y;nkh(O.Al,R,l,F);O.B.Cj(R,J,l,u);if(O.policy.eR&&J){var Z;(Z=O.zJ)!=null&&Z.B.set(R.XQ,J)}R.XQ===O.Dg.g2&&F&&$2(O.Dg)&&R.startTime>$2(O.Dg)&&(O.Dg.N1=R.startTime+(isNaN(O.timestampOffset)?0:O.timestampOffset),O.Al.isSeeking()&&O.Al.L 5)return O.iz=0,O.LJ.pc({initSegStuck:1,as:l.info.er()}),!0}else O.iz=0,O.AT=l;O.policy.WV&&(J.abort(),(G=R.W)!=null&&(ib(G,4),G.flush()));u=zUp(O,J,F,w,u);var I;(I=R.W)==null||GG2(I,u,w);if(u!==0)return cd2(O,u,l),!0;l.info.ke()?vVW(O.timing):Xs0(O.timing);O.logger.debug(function(){return"Appended init for "+l.info.L.info.id}); YIf(O,l.info.L.Kk);return J.yE()}; xZA=function(O,R,J){if(R.fp()==null){O=a5(O);if(!(R=!O||O.L!==J.info.L)){a:if(O=O.W,J=J.info.W,O.length!==J.length)J=!1;else{for(R=0;R1)return 6;G.xS=new g.zR(function(){var y=UH(G);O.jN()||y==null||!y.isLocked?O.LJ.T().DA()&&O.nJ("eosl",{delayA:y==null?void 0:y.info.er()}):Oos(G)?(O.LJ.T().DA()&&O.nJ("eosl",{dunlock:y==null?void 0:y.info.er()}),R8s(O,G===O.audioTrack)):(O.nJ("nue",{ls:y.info.er()}),y.info.SN+=1,O.EQ&&O.CX())},1E4,O); O.LJ.T().DA()&&O.nJ("eosl",{delayS:l.er()});G.xS.start()}O.policy.tI&&(l==null?void 0:l.L)instanceof nL&&l.rR()&&O.nJ("poseos",{itag:l.L.info.itag,seg:l.XQ,lseg:l.L.index.lK(),es:l.L.index.B});R.appendBuffer(J,l,u)}catch(y){if(y instanceof DOMException){if(y.code===11)return 2;if(y.code===12)return 5;if(y.code===22||y.message.indexOf("Not enough storage")===0)return R=Object.assign({name:"QuotaExceededError",buffered:y9(R.Ap()).replace(/,/g,"_"),vheap:M9(O.videoTrack),aheap:M9(O.audioTrack),message:g.J8(y.message, 3),track:O.EQ?R===O.EQ.S?"v":"a":"u"},EDA(O.policy.Pd)),O.handleError("player.exception",R),1;g.WM(y)}return 4}return O.EQ.fA()?3:0}; xa=function(O,R,J){O.LJ.seekTo(R,J)}; YIf=function(O,R){R&&O.LJ.hC(new I5(R.key,R.type))}; o5=function(O,R){O.LJ.Kj(R)}; PF=function(O,R){if(O.Iu&&!O.uL)return 3;if(O.isSuspended)return 1;var J;if((J=O.EQ)==null?0:J.EQ&&J.EQ.streaming===!1)return 4;J=(R.L.info.audio?O.policy.KJ:O.policy.Qh)/(R.Wq*O.policy.O$);if(O.policy.Ju>0&&O.EQ&&h1(O.EQ)&&(R=R.L.info.video?O.EQ.S:O.EQ.L)&&!R.yE()){R=R.Ap();var l=w3(R,O.getCurrentTime());l>=0&&(R=O.getCurrentTime()-R.start(l),J+=Math.max(0,Math.min(R-O.policy.Ju,O.policy.hO)))}O.policy.OQ>0&&(J=Math.min(J,O.policy.OQ));return J}; gD2=function(O,R){return(PF(O,R)+O.policy.Xl)*R.Wq}; gep=function(O){O.AR&&!O.isSuspended&&ES(O.schedule)&&(J0s(O,O.AR),O.AR="")}; J0s=function(O,R){aE(R,"cms",function(J){O.policy.S&&O.nJ("pathprobe",J)},function(J){O.LJ.handleError(J)})}; ioL=function(O,R){if(O.EQ&&O.EQ.N&&!O.EQ.fA()&&(R.Jr=ko(O.videoTrack),R.S=ko(O.audioTrack),O.policy.S)){var J=M9(O.videoTrack),l=M9(O.audioTrack),u=y9(O.EQ.S.Ap(),"_",5),F=y9(O.EQ.L.Ap(),"_",5);Object.assign(R.L,{lvq:J,laq:l,lvb:u,lab:F})}R.bandwidthEstimate=XU(O.V);var G;(G=O.audioTrack.W)==null||G.flush();var y;(y=O.videoTrack.W)==null||y.flush();O.logger.debug(function(){return $w(R.L)})}; l90=function(O,R){O.SN=R;O.B&&(O.B.B=R);O.SN.wN(O.videoTrack.L.info.WY());O.D.S=O.SN;O.policy.B&&(O.S.J=O.SN)}; Kks=function(O,R){if(O.EQ&&O.EQ.S){if(O.policy.Hv){var J=yjA(O.audioTrack);if(J&&J.NT()){var l=O.LJ;if(l.Bz&&(l.Bz.L=J,J=l.ZA(l.Bz.videoId),J.qoe)){J=J.qoe;l=l.Bz;var u=g.vA(J.provider);ufL(J,u,l)}}}O.policy.Bv&&(J=yjA(O.videoTrack))&&J.ke()&&(l=O.LJ,l.AJ&&(l.AJ.L=J,J=l.ZA(l.AJ.videoId),J.qoe&&FkA(J.qoe,l.AJ)));R-=isNaN(O.timestampOffset)?0:O.timestampOffset;O.getCurrentTime()!==R&&O.resume();O.Al.isSeeking()&&O.EQ&&!O.EQ.fA()&&(l=O.getCurrentTime()<=R&&R=0&&F1?y.S[0]=R&&DZs(O,l.startTime,!1)}); return J&&J.startTimeO.getCurrentTime())return J.start/1E3;return Infinity}; GFs=function(O){if(O.LJ.getVideoData().isLivePlayback)return!1;var R=O.LJ.FK();if(!R)return!1;R=R.getDuration();if(O.EQ&&O.EQ.L&&O.EQ.S){var J=O.getCurrentTime(),l=O.EQ.L.Ap();O=O.EQ.S.Ap();l=l?Cm(l,J):J;J=O?Cm(O,J):J;J=Math.min(l,J);R=isNaN(J)?!1:J>=R-.01}else R=!1;return R}; cd2=function(O,R,J){O.policy.g9&&i1(O.LJ.getVideoData())?(O.LJ.B5()||nDA(O,"sepInit",R,J.info),r0W(O.LJ,"sie")):nDA(O,"sepInit",R,J.info)}; qS_=function(O){return O.LJ.f_()0){var u=l.L.shift();oex(l,u.info)}l.L.length>0&&(u=l.L[0].time-(0,g.Q)(),l.S.start(Math.max(0,u)))}},0); g.H(this,this.S);R.subscribe("widevine_set_need_key_info",this.D,this)}; oex=function(O,R){a:{var J=R.cryptoPeriodIndex;if(isNaN(J)&&O.B.size>0)J=!0;else{for(var l=g.N(O.B.values()),u=l.next();!u.done;u=l.next())if(u.value.cryptoPeriodIndex===J){J=!0;break a}J=!1}}O.publish("log_qoe",{wvagt:"reqnews",canskip:J});J||O.publish("rotated_need_key_info_ready",R)}; Zop=function(){var O={};var R=O.url;var J=O.interval;O=O.retries;this.url=R;this.interval=J;this.retries=O}; VlT=function(O,R){this.statusCode=O;this.message=R;this.S=this.heartbeatParams=this.errorMessage=null;this.L={};this.nextFairplayKeyId=null}; f9s=function(O,R,J){J=J===void 0?"":J;g.p.call(this);this.message=O;this.requestNumber=R;this.Jp=J;this.onError=this.onSuccess=null;this.L=new g.p7(5E3,2E4,.2)}; SY_=function(O,R,J){O.onSuccess=R;O.onError=J}; mBz=function(O,R,J,l){var u={timeout:3E4,onSuccess:function(F){if(!O.jN()){x3("drm_net_r",void 0,O.Jp);var G=F.status==="LICENSE_STATUS_OK"?0:9999,y=null;if(F.license)try{y=gX(F.license)}catch(V){g.WM(V)}if(G!==0||y){y=new VlT(G,y);G!==0&&F.reason&&(y.errorMessage=F.reason);if(F.authorizedFormats){G={};for(var w=[],I={},C=g.N(F.authorizedFormats),r=C.next();!r.done;r=C.next())if(r=r.value,r.trackType&&r.keyId){var t=NLx[r.trackType];if(t){t==="HD"&&F.isHd720&&(t="HD720");r.isHdr&&(t+="HDR");G[t]|| (w.push(t),G[t]=!0);var Z=null;try{Z=gX(r.keyId)}catch(V){g.WM(V)}Z&&(I[g.RK(Z,4)]=t)}}y.S=w;y.L=I}F.nextFairplayKeyId&&(y.nextFairplayKeyId=F.nextFairplayKeyId);F.sabrLicenseConstraint&&(y.sabrLicenseConstraint=gX(F.sabrLicenseConstraint));F=y}else F=null;if(F)O.onSuccess(F,O.requestNumber);else O.onError(O,"drm.net","t.p;p.i")}}, onError:function(F){if(!O.jN())if(F&&F.error)F=F.error,O.onError(O,"drm.net.badstatus","t.r;p.i;c."+F.code+";s."+F.status,F.code);else O.onError(O,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){O.onError(O,"drm.net","rt.req."+O.requestNumber)}}; l&&(u.V1="Bearer "+l);g.RV(J,"player/get_drm_license",R,u)}; Ees=function(O,R,J,l){g.y8.call(this);this.videoData=O;this.Ru=R;this.V=J;this.sessionId=l;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.SN=this.Hq=!1;this.B=null;this.OQ=[];this.N=[];this.eW=[];this.J=!1;this.L={};this.status="";this.j=NaN;this.S=O.D;this.cryptoPeriodIndex=J.cryptoPeriodIndex;O={};Object.assign(O,this.Ru.L);O.cpn=this.videoData.clientPlaybackNonce;this.videoData.xS&&(O.vvt=this.videoData.xS,this.videoData.mdxEnvironment&&(O.mdx_environment=this.videoData.mdxEnvironment)); this.Ru.OQ&&(O.authuser=this.Ru.OQ);this.Ru.pageId&&(O.pageid=this.Ru.pageId);isNaN(this.cryptoPeriodIndex)||(O.cpi=this.cryptoPeriodIndex.toString());var u=(u=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.aW()))?u[1]:"";u==="ATV"&&(O.cdt=u);this.D=O;this.D.session_id=l;this.W=!0;this.S.flavor==="widevine"&&(this.D.hdr="1");this.S.flavor==="playready"&&(R=Number(gm(R.experiments,"playready_first_play_expiration")),!isNaN(R)&&R>=0&&(this.D.mfpe=""+R),this.W=!1);R="";g.Y2(this.S)?Lp(this.S)?(l=J.S)&&(R="https://www.youtube.com/api/drm/fps?ek="+ q5f(l)):(R=J.initData.subarray(4),R=new Uint16Array(R.buffer,R.byteOffset,R.byteLength/2),R=String.fromCharCode.apply(null,R).replace("skd://","https://")):R=this.S.S;this.baseUrl=R;this.fairplayKeyId=WQ(this.baseUrl,"ek")||"";if(R=WQ(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(R);this.OQ=J.WY?[g.RK(J.initData,4)]:J.B;d_(this,{sessioninit:J.cryptoPeriodIndex});this.status="in"}; XD0=function(O,R){d_(O,{createkeysession:1});O.status="gr";x3("drm_gk_s",void 0,O.videoData.SN);O.url=DB0(O);try{O.B=R.createSession(O.V,function(J){d_(O,{m:J})})}catch(J){R="t.g"; J instanceof DOMException&&(R+=";c."+J.code);O.publish("licenseerror","drm.unavailable",1,R,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}O.B&&(a9h(O.B,function(J,l){ve0(O,J,l)},function(J,l,u){if(!O.jN()){l=void 0; var F=1;g.Y2(O.S)&&g.Aj(O.Ru)&&O.Ru.Z("html5_enable_safari_fairplay")&&u===1212433232&&(l="ERROR_HDCP",F=O.Ru.Z("html5_safari_fairplay_ignore_hdcp")?0:F);O.error("drm.keyerror",F,J,l)}},function(){O.jN()||(d_(O,{onkyadd:1}),O.SN||(O.publish("sessionready"),O.SN=!0))},function(J){O.Ei(J)}),g.H(O,O.B))}; DB0=function(O){var R=O.baseUrl;ie0(R)||O.error("drm.net",2,"t.x");if(!WQ(R,"fexp")){var J=["23898307","23914062","23916106","23883098"].filter(function(u){return O.Ru.experiments.experiments[u]}); J.length>0&&(O.D.fexp=J.join())}J=g.N(Object.keys(O.D));for(var l=J.next();!l.done;l=J.next())l=l.value,R=lJW(R,l,O.D[l]);return R}; ve0=function(O,R,J){if(!O.jN())if(R){d_(O,{onkmtyp:J});O.status="km";switch(J){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":TL_(O,R);return;default:O.publish("ctmp","message_type",{t:J,l:R.byteLength})}O.Hq||(x3("drm_gk_f",void 0,O.videoData.SN),O.Hq=!0,O.publish("newsession",O));if(Ue(O.S)&&(R=$Bs(R),!R))return;R=new f9s(R,++O.requestNumber,O.videoData.SN);SY_(R,function(l){Mlp(O,l)},function(l,u,F){if(!O.jN()){var G=0; l.L.S>=3&&(G=1,u="drm.net.retryexhausted");d_(O,{onlcsrqerr:u,info:F});O.error(u,G,F);O.shouldRetry(qC(G),l)&&qYH(O,l)}}); g.H(O,R);ke2(O,R)}else O.error("drm.unavailable",1,"km.empty")}; TL_=function(O,R){d_(O,{sdpvrq:1});O.j=Date.now();if(O.S.flavor!=="widevine")O.error("drm.provision",1,"e.flavor;f."+O.S.flavor+";l."+R.byteLength);else{var J={cpn:O.videoData.clientPlaybackNonce};Object.assign(J,O.Ru.L);J=g.s9("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",J);R={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, R)}),responseType:"arraybuffer"};g.M5(J,R,3,500).then(Mh(function(l){l=l.xhr;if(!O.jN()){l=new Uint8Array(l.response);var u=String.fromCharCode.apply(null,l);try{var F=JSON.parse(u)}catch(G){}F&&F.signedResponse?(O.publish("ctmp","drminfo",{provisioning:1}),F=(Date.now()-O.j)/1E3,O.j=NaN,O.publish("ctmp","provs",{et:F.toFixed(3)}),O.B&&O.B.update(l)):(F=F&&F.error&&F.error.message,l="e.parse",F&&(l+=";m."+F),O.error("drm.provision",1,l))}}),Mh(function(l){O.jN()||O.error("drm.provision",1,"e."+l.errorCode+ ";c."+(l.xhr&&l.xhr.status))}))}}; hJ=function(O){var R;if(R=O.W&&O.B!=null)O=O.B,R=!(!O.L||!O.L.keyStatuses);return R}; ke2=function(O,R){O.status="km";x3("drm_net_s",void 0,O.videoData.SN);var J=new g.OZ(O.Ru.CE),l={context:g.IA(J.config_||g.wH())};l.drmSystem=sIL[O.S.flavor];l.videoId=O.videoData.videoId;l.cpn=O.videoData.clientPlaybackNonce;l.sessionId=O.sessionId;l.licenseRequest=g.RK(R.message);l.drmParams=O.videoData.drmParams;isNaN(O.cryptoPeriodIndex)||(l.isKeyRotated=!0,l.cryptoPeriodIndex=O.cryptoPeriodIndex);var u,F,G=!!((u=O.videoData.S)==null?0:(F=u.video)==null?0:F.isHdr());l.drmVideoFeature=G?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(l.context&&l.context.client){if(u=O.Ru.L)l.context.client.deviceMake=u.cbrand,l.context.client.deviceModel=u.cmodel,l.context.client.browserName=u.cbr,l.context.client.browserVersion=u.cbrver,l.context.client.osName=u.cos,l.context.client.osVersion=u.cosver;l.context.user=l.context.user||{};l.context.request=l.context.request||{};O.videoData.xS&&(l.context.user.credentialTransferTokens=[{token:O.videoData.xS,scope:"VIDEO"}]);l.context.request.mdxEnvironment=O.videoData.mdxEnvironment|| l.context.request.mdxEnvironment;O.videoData.Jo&&(l.context.user.kidsParent={oauthToken:O.videoData.Jo});g.Y2(O.S)&&(l.fairplayKeyId=g.RK(kML(O.fairplayKeyId)));g.lr(O.Ru,g.pQ(O.videoData)).then(function(y){mBz(R,l,J,y);O.status="rs"})}else O.error("drm.net",2,"t.r;ic.0")}; Mlp=function(O,R){if(!O.jN())if(d_(O,{onlcsrsp:1}),O.status="rr",R.statusCode!==0)O.error("drm.auth",1,"t.f;c."+R.statusCode,R.errorMessage||void 0);else{x3("drm_kr_s",void 0,O.videoData.SN);if(R.heartbeatParams&&R.heartbeatParams.url&&O.videoData.Z("outertube_streaming_data_always_use_staging_license_service")){var J=O.S.S.match(/(.*)youtube.com/g);J&&(R.heartbeatParams.url=J[0]+R.heartbeatParams.url)}R.heartbeatParams&&O.publish("newlicense",R.heartbeatParams);R.S&&(O.N=R.S,O.videoData.Pd||O.publish("newlicense", new Zop),O.videoData.Pd=!0,O.J=RT(O.N,function(l){return l.includes("HDR")})); R.L&&(O.Ru.Z("html5_enable_vp9_fairplay")&&Lp(O.S)?(J=g.RK(kML(O.fairplayKeyId),4),O.L[J]={type:R.L[J],status:"unknown"}):O.L=xM(R.L,function(l){return{type:l,status:"unknown"}})); QP(O.S)&&(R.message=TQL(g.RK(R.message)));O.B&&(d_(O,{updtks:1}),O.status="ku",O.B.update(R.message).then(function(){x3("drm_kr_f",void 0,O.videoData.SN);hJ(O)||(d_(O,{ksApiUnsup:1}),O.publish("keystatuseschange",O))},function(l){l="msuf.req."+O.requestNumber+";msg."+g.J8(l.message,3); O.error("drm.keyerror",1,l)})); g.Y2(O.S)&&O.publish("fairplay_next_need_key_info",O.baseUrl,R.nextFairplayKeyId);O.Ru.Z("html5_enable_vp9_fairplay")&&Lp(O.S)&&O.publish("qualitychange",bop(O.N));R.sabrLicenseConstraint&&O.publish("sabrlicenseconstraint",R.sabrLicenseConstraint)}}; qYH=function(O,R){var J=R.L.getValue();J=new g.zR(function(){ke2(O,R)},J); g.H(O,J);J.start();g.B3(R.L);d_(O,{rtyrq:1})}; Wkx=function(O,R){for(var J=[],l=g.N(Object.keys(O.L)),u=l.next();!u.done;u=l.next())u=u.value,J.push(u+"_"+O.L[u].type+"_"+O.L[u].status);return J.join(R)}; A0A=function(O){var R={};R[O.status]=hJ(O)?Wkx(O,"."):O.N.join(".");return R}; e8_=function(O){switch(O.replace("HDR","").replace("720","")){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; zK=function(O,R){for(var J in O.L)if(O.L[J].status==="usable"&&O.L[J].type===R)return!0;return!1}; U9H=function(O,R){for(var J in O.L)if(O.L[J].type===R)return O.L[J].status}; d_=function(O,R){var J=J===void 0?!1:J;$w(R);(J||O.Ru.DA())&&O.publish("ctmp","drmlog",R)}; j50=function(O){var R=O[0];O[0]=O[3];O[3]=R;R=O[1];O[1]=O[2];O[2]=R;R=O[4];O[4]=O[5];O[5]=R;R=O[6];O[6]=O[7];O[7]=R}; bop=function(O){return g.Zo(O,"UHD2")||g.Zo(O,"UHD2HDR")?"highres":g.Zo(O,"UHD1")||g.Zo(O,"UHD1HDR")?"hd2160":g.Zo(O,"HD")||g.Zo(O,"HDHDR")?"hd1080":g.Zo(O,"HD720")||g.Zo(O,"HD720HDR")?"hd720":"large"}; $Bs=function(O){for(var R="",J=0;J'.charCodeAt(l);O=O.B.createSession("video/mp4",R,J);return new nv(null,null,null,null,O)}; cyB=function(O,R){var J=O.j[R.sessionId];!J&&O.N&&(J=O.N,O.N=null,J.sessionId=R.sessionId,O.j[R.sessionId]=J);return J}; hnT=function(O,R){var J=O.subarray(4);J=new Uint16Array(J.buffer,J.byteOffset,J.byteLength/2);J=g.e(String.fromCharCode.apply(null,J).match(/ek=([0-9a-f]+)/))[1];for(var l="",u=0;u19.2999?(O=J.by,J=J.OL,J>=O&&(J=O* .75),R=(O-J)*.5,J=new Lv(R,O,O-R-J,this)):J=null;break a;case "widevine":J=new Yh(R,this,O);break a;default:J=null}if(this.D=J)g.H(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.aC,this),this.D.subscribe("log_qoe",this.pE,this);hf(this.Ru.experiments);this.pE({cks:this.L.getInfo()})}; R5A=function(O){var R=d9x(O.N);R?R.then(Mh(function(){ghB(O)}),Mh(function(J){if(!O.jN()){g.WM(J); var l="t.a";J instanceof DOMException&&(l+=";n."+J.name+";m."+J.message);O.publish("licenseerror","drm.unavailable",1,l,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(O.pE({mdkrdy:1}),O.W=!0); O.SN&&(R=d9x(O.SN))}; laH=function(O,R,J){O.Iu=!0;J=new I5(R,J);O.Ru.Z("html5_eme_loader_sync")&&(O.j.get(R)||O.j.set(R,J));ivf(O,J)}; ivf=function(O,R){if(!O.jN()){O.pE({onInitData:1});if(O.Ru.Z("html5_eme_loader_sync")&&O.videoData.B&&O.videoData.B.L){var J=O.J.get(R.initData);R=O.j.get(R.initData);if(!J||!R)return;R=J;J=R.initData;O.j.remove(J);O.J.remove(J)}O.pE({initd:R.initData.length,ct:R.contentType});if(O.L.flavor==="widevine")if(O.N1&&!O.videoData.isLivePlayback)R$(O);else{if(!(O.Ru.Z("vp9_drm_live")&&O.videoData.isLivePlayback&&R.WY)){O.N1=!0;J=R.cryptoPeriodIndex;var l=R.L;VQB(R);R.WY||(l&&R.L!==l?O.publish("ctmp","cpsmm", {emsg:l,pssh:R.L}):J&&R.cryptoPeriodIndex!==J&&O.publish("ctmp","cpimm",{emsg:J,pssh:R.cryptoPeriodIndex}));O.publish("widevine_set_need_key_info",R)}}else O.aC(R)}}; ghB=function(O){if(!O.jN())if(O.Ru.Z("html5_drm_set_server_cert")||Lp(O.L)){var R=O.N.setServerCertificate();R?R.then(Mh(function(J){O.Ru.DA()&&O.publish("ctmp","ssc",{success:J})}),Mh(function(J){O.publish("ctmp","ssce",{n:J.name, m:J.message})})).then(Mh(function(){uY2(O)})):uY2(O)}else uY2(O)}; uY2=function(O){O.jN()||(O.W=!0,O.pE({onmdkrdy:1}),R$(O))}; FDz=function(O){return O.L.flavor==="widevine"&&O.videoData.Z("html5_drm_cpi_license_key")}; R$=function(O){if(O.Iu&&O.W&&!O.iz){for(;O.B.length;){var R=O.B[0],J=FDz(O)?fQp(R):g.RK(R.initData);if(Lp(O.L)&&!R.S)O.B.shift();else{if(O.S.get(J))if(O.L.flavor!=="fairplay"||Lp(O.L)){O.B.shift();continue}else O.S.delete(J);VQB(R);break}}O.B.length&&O.createSession(O.B[0])}}; GKx=function(O){var R;if(R=g.Q3()){var J;R=!((J=O.N.S)==null||!J.getMetrics)}R&&(R=O.N.getMetrics())&&(R=g.$u(R),O.publish("ctmp","drm",{metrics:R}))}; KDf=function(){var O=qg_();return!(!O||O==="visible")}; wA0=function(O){var R=yJH();R&&document.addEventListener(R,O,!1)}; IaW=function(O){var R=yJH();R&&document.removeEventListener(R,O,!1)}; yJH=function(){if(document.visibilityState)var O="visibilitychange";else{if(!document[t6+"VisibilityState"])return"";O=t6+"visibilitychange"}return O}; Cn0=function(O){g.p.call(this);var R=this;this.LJ=O;this.bN=0;this.j=this.S=this.D=!1;this.N=0;this.bz=this.LJ.T();this.videoData=this.LJ.getVideoData();this.B=g.tB(this.bz.experiments,"html5_delayed_retry_count");this.L=new g.zR(function(){R.LJ.FU()},g.tB(this.bz.experiments,"html5_delayed_retry_delay_ms")); g.H(this,this.L)}; Vvx=function(O,R,J){var l=O.videoData.S,u=O.videoData.N;i1(O.LJ.getVideoData())&&O.bz.Z("html5_gapless_fallback_on_qoe_restart")&&r0W(O.LJ,"pe");if((R==="progressive.net.retryexhausted"||R==="fmt.unplayable"||R==="fmt.decode")&&!O.LJ.m9.D&&l&&l.itag==="22")return O.LJ.m9.D=!0,O.sZ("qoe.restart",{reason:"fmt.unplayable.22"}),O.LJ.Nb(),!0;var F=!1;if(O.videoData.isExternallyHostedPodcast){if(F=O.videoData.wcu)J.mimeType=F.type,O.nJ("3pp",{url:F.url});J.ns="3pp";O.LJ.Qk(R,1,"VIDEO_UNAVAILABLE",$w((new MC(R, J,1)).details));return!0}var G=O.bN+3E4<(0,g.Q)()||O.L.isActive();if(O.bz.Z("html5_empty_src")&&O.videoData.isAd()&&R==="fmt.unplayable"&&/Empty src/.test(""+J.msg))return J.origin="emptysrc",O.sZ("auth",J),!0;G||rJz(O.LJ.IU())||(J.nonfg="paused",G=!0,O.LJ.pauseVideo());(R==="fmt.decode"||R==="fmt.unplayable")&&(u==null?0:cd(u)||Ow(u))&&(Pys(O.bz.D,u.Pq),J.acfallexp=u.Pq,F=G=!0);!G&&O.B>0&&(O.L.start(),G=!0,J.delayed="1",--O.B);u=O.LJ.loader;!G&&((l==null?0:n8(l))||(l==null?0:dz(l)))&&(Pys(O.bz.D, l.Pq),F=G=!0,J.cfallexp=l.Pq);if(!G)return tvs(O,J);G=!1;O.D?O.bN=(0,g.Q)():G=O.D=!0;var y=O.videoData;if(y.KJ){y=y.KJ.FD();var w=Date.now()/1E3+1800;y=y6048E5&&m6_(O,"signature");return!1}; m6_=function(O,R){try{window.location.reload(),O.sZ("qoe.restart",{detail:"pr."+R})}catch(J){}}; D62=function(O,R){var J=O.bz.D;J.J=!1;J.S=!0;O.sZ("qoe.restart",{e:R===void 0?"fmt.noneavailable":R,detail:"hdr"});O.LJ.FU(!0)}; aa2=function(O,R,J,l,u,F){this.videoData=O;this.L=R;this.reason=J;this.S=l;this.token=u;this.videoId=F}; Jm=function(O,R,J){this.Ru=O;this.yU=R;this.LJ=J;this.V=this.j=this.L=this.N=this.J=this.S=0;this.D=!1;this.W=g.tB(this.Ru.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.B=new Map}; XAL=function(O,R,J){!O.Ru.Z("html5_tv_ignore_capable_constraint")&&g.$T(O.Ru)&&(J=J.compose(vhz(O,R)));return J}; T_s=function(O){if(O.LJ.IU().isInline())return UE;var R;O.Z("html5_exponential_memory_for_sticky")?R=Dl(O.Ru.vW,"sticky-lifetime")<.5?"auto":ox[Yk()]:R=ox[Yk()];return g.C3("auto",R,!1,"s")}; MvH=function(O,R){var J,l=$6p(O,(J=R.L)==null?void 0:J.videoInfos);J=O.LJ.getPlaybackRate();return J>1&&l?(O=bXx(O.Ru.D,R.L.videoInfos,J),new Ix(0,O,!0,"o")):new Ix(0,0,!1,"o")}; $6p=function(O,R){return R&&g.$T(O.Ru)?R.some(function(J){return J.video.fps>32}):!1}; qps=function(O,R){if(O.Z("html5_disable_ustreamer_constraint_for_sabr")&&FD(R.videoData))return UE;var J=O.LJ.KU();O.Z("html5_use_video_quality_cap_for_ustreamer_constraint")&&J&&J.FV>0&&tC(R.videoData.kp)&&(O=J.FV,R.videoData.kp=new Ix(0,O,!1,"u"));return R.videoData.kp}; vhz=function(O,R){if(g.$T(O.Ru)&&$O(O.Ru.D,ML.HEIGHT))var J=R.L.videoInfos[0].video.qualityOrdinal;else{var l=O.Vv(!!R.L.L);l1(R.videoData)||UI(R.videoData);R=R.L.videoInfos;if(R.length){var u=g.tB(O.Ru.experiments,"html5_override_oversend_fraction")||.85,F=R[0].video;F.projectionType!=="MESH"&&F.projectionType!=="EQUIRECTANGULAR"&&F.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||kX||(u=.45);O=g.tB(O.Ru.experiments,"html5_viewport_undersend_maximum");for(F=0;F0&&(J=Math.min(J,l));if(l=g.tB(O.Ru.experiments,"html5_max_vertical_resolution")){O=4320;for(u=0;ul&&(O=Math.min(O,F.video.qualityOrdinal));if(O<4320){for(u=l=0;u32){u=!0;break a}}u=!1}u&&(J=Math.min(J,l));(l=g.tB(O.Ru.experiments,"html5_live_quality_cap"))&&R.videoData.isLivePlayback&&(J=Math.min(J,l));J=sFL(O,R,J);O=g.tB(O.Ru.experiments,"html5_byterate_soft_cap");return new Ix(0,J===4320?0:J,!1,"d",O)}; WDs=function(O){var R,J,l,u;return g.A(function(F){switch(F.S){case 1:return O.L.L&&typeof((R=navigator.mediaCapabilities)==null?void 0:R.decodingInfo)==="function"?g.k(F,Promise.resolve(),2):F.return(Promise.resolve());case 2:J=g.N(O.L.videoInfos),l=J.next();case 3:if(l.done){F.pJ(0);break}u=l.value;return g.k(F,f_2(u),4);case 4:l=J.next(),F.pJ(3)}})}; e5s=function(O,R){if(!R.videoData.S||O.Z("html5_disable_performance_downgrade"))return!1;Date.now()-O.J>6E4&&(O.S=0);O.S++;O.J=Date.now();if(O.S!==4)return!1;AJs(O,R.videoData.S);return!0}; pAx=function(O,R,J,l){if(!R||!J||!R.videoData.S)return!1;var u=g.tB(O.Ru.experiments,"html5_df_downgrade_thresh"),F=O.Z("html5_log_media_perf_info");if(!((0,g.Q)()-O.N<5E3?0:F||u>0))return!1;var G=((0,g.Q)()-O.N)/1E3;O.N=(0,g.Q)();J=J.getVideoPlaybackQuality();if(!J)return!1;var y=J.droppedVideoFrames-O.j,w=J.totalVideoFrames-O.V;O.j=J.droppedVideoFrames;O.V=J.totalVideoFrames;var I=J.displayCompositedVideoFrames===0?0:J.displayCompositedVideoFrames||-1;F&&O.Ru.DA()&&O.LJ.nJ("ddf",{dr:J.droppedVideoFrames, de:J.totalVideoFrames,comp:I});if(l)return O.L=0,!1;if((w-y)/G>O.W||!u||g.$T(O.Ru))return!1;O.L=(w>60?y/w:0)>u?O.L+1:0;if(O.L!==3)return!1;AJs(O,R.videoData.S);O.LJ.nJ("dfd",Object.assign({dr:J.droppedVideoFrames,de:J.totalVideoFrames},Pnf()));return!0}; AJs=function(O,R){var J=R.Pq,l=R.video.fps,u=R.video.qualityOrdinal-1,F=O.B;R=""+J+(l>49?"p60":l>32?"p48":"");J=Pm(J,l,F);u>0&&(J=Math.min(J,u));if(!gT.has(R)&&zy().includes(R)){var G=J;J=hU();+J[R]>0&&(G=Math.min(+J[R],G));J[R]!==G&&(J[R]=G,g.bE("yt-player-performance-cap",J,2592E3))}else if(gT.has(R)||F==null){a:{G=G===void 0?!0:G;l=zy().slice();if(G){if(l.includes(R))break a;l.push(R)}else{if(!l.includes(R))break a;l.splice(l.indexOf(R),1)}g.bE("yt-player-performance-cap-active-set",l,2592E3)}eQ.set(R, J)}else gT.add(R),F==null||F.set(R,J);O.LJ.IT()}; ik=function(O,R){if(!R.L.L)return O.D?new Ix(0,360,!1,"b"):UE;for(var J=!1,l=!1,u=g.N(R.L.videoInfos),F=u.next();!F.done;F=u.next())n8(F.value)?J=!0:l=!0;J=J&&l;l=0;u=g.tB(O.Ru.experiments,"html5_performance_cap_floor");u=O.Ru.S?240:u;R=g.N(R.L.videoInfos);for(F=R.next();!F.done;F=R.next()){var G=F.value;if(!J||!n8(G))if(F=Pm(G.Pq,G.video.fps,O.B),G=G.video.qualityOrdinal,Math.max(F,u)>=G){l=G;break}}return new Ix(0,l,!1,"b")}; B_s=function(O,R){var J=O.LJ.IU();return J.isInline()&&!R.hO?new Ix(0,480,!1,"v"):FD(R)?UE:J.isBackground()&&TT()/1E3>60&&!g.$T(O.Ru)?new Ix(0,360,!1,"v"):UE}; Hvf=function(O,R,J){if(O.Ru.experiments.Vh("html5_disable_client_autonav_cap_for_onesie")&&R.fetchType==="onesie"||g.$T(O.Ru)&&(Yk(-1)>=1080||R.osid))return UE;var l=g.tB(O.Ru.experiments,"html5_autonav_quality_cap"),u=g.tB(O.Ru.experiments,"html5_autonav_cap_idle_secs");return l&&R.isAutonav&&TT()/1E3>u?(J&&(l=sFL(O,J,l)),new Ix(0,l,!1,"e")):UE}; sFL=function(O,R,J){if(O.Z("html5_optimality_defaults_chooses_next_higher")&&J)for(O=R.L.videoInfos,R=1;R=0||(O.provider.LJ.getVisibilityState()===3?O.D=!0:(O.L=g.vA(O.provider),O.delay.start()))}; jFL=function(O){if(!(O.S<0)){var R=g.vA(O.provider),J=R-O.N;O.N=R;O.playerState.state===8?O.playTimeSecs+=J:O.playerState.isBuffering()&&!g.d(O.playerState,16)&&(O.rebufferTimeSecs+=J)}}; QF_=function(O){var R;switch((R=O.Ru.playerCanaryStage)==null?void 0:R.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; LDB=function(O){return window.PressureObserver&&new window.PressureObserver(O)}; Yp_=function(O){O=O===void 0?LDB:O;g.p.call(this);var R=this;try{this.B=O(function(l){R.S=l.at(-1)}); var J;this.N=(J=this.B)==null?void 0:J.observe("cpu",{sampleInterval:2E3}).catch(function(l){l instanceof DOMException&&(R.L=l)})}catch(l){l instanceof DOMException&&(this.L=l)}}; d6h=function(O){var R={},J=window.h5vcc;R.hwConcurrency=navigator.hardwareConcurrency;O.L&&(R.cpe=O.L.message);O.S&&(R.cpt=O.S.time,R.cps=O.S.state);if(J==null?0:J.cVal)R.cb2s=J.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),R.cb5s=J.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),R.cb30s=J.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return R}; h5A=function(O){var R;g.A(function(J){switch(J.S){case 1:return g.N0(J,2),g.k(J,O.N,4);case 4:g.as(J,3);break;case 2:g.Tz(J);case 3:(R=O.B)==null||R.disconnect(),g.ST(J)}})}; nhT=function(O,R){R?z5W.test(O):(O=g.il(O),Object.keys(O).includes("cpn"))}; Onx=function(O,R,J,l,u,F,G){var y={format:"RAW"},w={};if(F6(O)&&G3()){if(G){var I;((I=cJB.uaChPolyfill)==null?void 0:I.state.type)!==2?G=null:(G=cJB.uaChPolyfill.state.data.values,G={"Synth-Sec-CH-UA-Arch":G.architecture,"Synth-Sec-CH-UA-Model":G.model,"Synth-Sec-CH-UA-Platform":G.platform,"Synth-Sec-CH-UA-Platform-Version":G.platformVersion,"Synth-Sec-CH-UA-Full-Version":G.uaFullVersion});w=Object.assign(w,G);y.withCredentials=!0}(G=g.YB("EOM_VISITOR_DATA"))?w["X-Goog-EOM-Visitor-Id"]=G:l?w["X-Goog-Visitor-Id"]= l:g.YB("VISITOR_DATA")&&(w["X-Goog-Visitor-Id"]=g.YB("VISITOR_DATA"));J&&(w["X-Goog-PageId"]=J);(l=R.OQ)&&!nb(R)&&(w["X-Goog-AuthUser"]=l);u&&(w.Authorization="Bearer "+u);R.Z("enable_datasync_id_header_in_web_vss_pings")&&R.Wn&&R.datasyncId&&(w["X-YouTube-DataSync-Id"]=R.datasyncId);G||w["X-Goog-Visitor-Id"]||u||J||l?y.withCredentials=!0:R.Z("html5_send_cpn_with_options")&&z5W.test(O)&&(y.withCredentials=!0)}Object.keys(w).length>0&&(y.headers=w);F&&(y.onFinish=F);return Object.keys(y).length>1? y:null}; RFL=function(O,R,J,l,u,F,G,y){G3()&&J.token&&(O=ll(O,{ctt:J.token,cttype:J.mI,mdx_environment:J.mdxEnvironment}));l.Z("net_pings_low_priority")&&(R||(R={}),R.priority="low");F||y&&l.Z("nwl_skip_retry")?(R==null?R={}:nhT(O,l.Z("html5_assert_cpn_with_regex")),G?nr().sendAndWrite(O,R):nr().sendThenWrite(O,R,y)):R?(nhT(O,l.Z("html5_assert_cpn_with_regex")),RTp(O,R)):g.He(O,u)}; Jm2=function(O){for(var R=[],J=0;J0&&J>0&&!O.S&&O.B<1E7)try{O.N=O.D({sampleInterval:R,maxBufferSize:J});var l;(l=O.N)==null||l.addEventListener("samplebufferfull",function(){return g.A(function(u){if(u.S==1)return g.k(u,O.stop(),2);l8x(O);g.ST(u)})})}catch(u){O.S=in_(u.message)}}; FX=function(O,R){var J,l;return!!((J=window.h5vcc)==null?0:(l=J.settings)==null?0:l.set(O,R))}; FPB=function(){var O,R,J,l=(O=window.h5vcc)==null?void 0:(R=O.settings)==null?void 0:(J=R.getPersistentSettingAsString)==null?void 0:J.call(R,"cpu_usage_tracker_intervals");if(l!=null){var u;O=(u=JSON.parse(l))!=null?u:[];u=O.filter(function(I){return I.type==="total"}).map(function(I){return I.seconds}); R=g.N(uXz);for(J=R.next();!J.done;J=R.next())J=J.value,u.indexOf(J)===-1&&O.push({type:"total",seconds:J});var F,G;(F=window.h5vcc)==null||(G=F.settings)==null||G.set("cpu_usage_tracker_intervals_enabled",1);var y,w;(y=window.h5vcc)==null||(w=y.settings)==null||w.set("cpu_usage_tracker_intervals",JSON.stringify(O))}}; GEW=function(){var O=window.H5vccPlatformService,R="";if(O&&O.has("dev.cobalt.coat.clientloginfo")&&(O=O.open("dev.cobalt.coat.clientloginfo",function(){}))){var J=O.send(new ArrayBuffer(0)); J&&(R=String.fromCharCode.apply(String,g.X(new Uint8Array(J))));O.close()}return R}; g.yV=function(O,R){g.p.call(this);var J=this;this.provider=O;this.logger=new g.l9("qoe");this.L=new Map;this.sequenceNumber=1;this.j=NaN;this.QI="N";this.W=this.WR=this.cR=this.OQ=this.S=0;this.zJ=this.Iu=this.J=this.Gd="";this.Y9=this.JR=NaN;this.Py=0;this.Jo=-1;this.TR=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.SG=this.isEmbargoed=this.xS=this.isOffline=this.isBuffering=!1;this.CG=[];this.SN=null;this.Rz=this.N=this.fJ=this.V=!1;this.B=-1;this.Td=!1;this.m1=new g.zR(this.lq,750,this);this.I0= this.adCpn=this.Hq=this.contentCpn="";this.adFormat=void 0;this.vY=0;this.sQ=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.E8=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.w5=!1;this.mM=NaN;this.Qh=0;this.AT=!1;this.N1=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.d5=!1;this.nG={Jm:function(u){J.Jm(u)}, KhS:function(){return J.D}, Nx:function(){return J.contentCpn}, xbh:function(){return J.Hq}, reportStats:function(){J.reportStats()}, qxQ:function(){return J.L.get("cat")||[]}, g8:function(u){return J.L.get(u)||[]}, NXQ:function(){return J.L}, X2d:function(){return J.N1}, OSQ:function(){return{adCpn:J.adCpn,I0:J.I0,adFormat:J.adFormat}}}; this.iz=this.provider.Ru.Z("html5_qoe_relaxed_reporting");var l=g.tB(this.provider.Ru.experiments,"html5_qoe_proto_mock_length");l&&!GE.length&&(GE=Jm2(l));g.H(this,this.m1);try{navigator.getBattery().then(function(u){J.SN=u})}catch(u){}g.Kn(this,0,"vps",["N"]); O.Ru.DA()&&(this.Qh=(0,g.Q)(),this.mM=g.o9(function(){var u=(0,g.Q)(),F=u-J.Qh;F>500&&J.nJ("vmlock",{diff:F.toFixed()});J.Qh=u},250)); O.LJ.vI()&&R&&(this.N1=R-Math.round(g.vA(O)*1E3));this.provider.videoData.FH&&(this.remoteControlMode=KP_[this.provider.videoData.FH]||0);this.provider.videoData.lV&&(R=hRA(this.provider.videoData.lV),R==null?0:R.length)&&(this.remoteConnectedDevices=R);if(O.Ru.DA()||O.Z("html5_log_cpu_info"))this.KJ=new Yp_,g.H(this,this.KJ);R=g.tB(O.Ru.experiments,"html5_js_self_profiler_sample_interval_ms");O=g.tB(O.Ru.experiments,"html5_js_self_profiler_max_samples");R>0&&O>0&&(this.AR=new uk(R,O),g.H(this,this.AR))}; wT=function(O,R,J){var l=O.L.get(R);l?l.push(J):O.L.set(R,[J])}; g.Kn=function(O,R,J,l){wT(O,J,R.toFixed(3)+":"+l.join(":"))}; ym0=function(O,R){var J=O.adCpn||O.provider.videoData.clientPlaybackNonce,l=O.provider.getCurrentTime(J);g.Kn(O,R,"cmt",[l.toFixed(3)]);l=O.provider.b0(J);if(O.D&&l*1E3>O.D.G9+100&&O.D){var u=O.D;J=u.isAd;l=l*1E3-u.G9;O.HR=R*1E3-u.q_S-l-u.nod;u=(0,g.Q)()-l;R=O.HR;l=O.provider.videoData;var F=l.isAd();if(J||F){F=(J?"ad":"video")+"_to_"+(F?"ad":"video");var G={};l.j&&(G.cttAuthInfo={token:l.j,videoId:l.videoId});G.startTime=u-R;jq(F,G);g.U8({targetVideoId:l.videoId,targetCpn:l.clientPlaybackNonce}, F);x3("pbs",u,F)}else u=O.provider.LJ.Bf(),u.j!==l.clientPlaybackNonce?(u.D=l.clientPlaybackNonce,u.S=R):l.MU()||g.Aa(new g.Ys("CSI timing logged before gllat",{cpn:l.clientPlaybackNonce}));O.nJ("gllat",{l:O.HR.toFixed(),prev_ad:+J});delete O.D}}; I$=function(O,R){R=R===void 0?NaN:R;R=R>=0?R:g.vA(O.provider);var J=O.provider.LJ.Zt(),l=J.L_-(O.JR||0);l>0&&g.Kn(O,R,"bwm",[l,(J.DL-(O.Y9||0)).toFixed(3)]);isNaN(O.JR)&&J.L_&&O.isOffline&&O.Jm(!1);O.JR=J.L_;O.Y9=J.DL;isNaN(J.bandwidthEstimate)||g.Kn(O,R,"bwe",[J.bandwidthEstimate.toFixed(0)]);O.provider.Ru.DA()&&Object.keys(J.L).length!==0&&O.nJ("bwinfo",J.L);if(O.provider.Ru.DA()||O.provider.Ru.Z("html5_log_meminfo"))l=EDA(O.provider.Ru.Z("html5_enable_chrobalt_memory_apis")),Object.values(l).some(function(F){return F!== void 0})&&O.nJ("meminfo",l); if(O.provider.Ru.DA()||O.provider.Ru.Z("html5_log_cpu_info")){var u;(l=(u=O.KJ)==null?void 0:d6h(u))&&Object.values(l).some(function(F){return F!=null})&&O.nJ("cpuinfo",l)}O.AR&&O.nJ("jsprof",O.AR.flush()); O.SN&&g.Kn(O,R,"bat",[O.SN.level,O.SN.charging?"1":"0"]);u=O.provider.LJ.getVisibilityState();O.Jo!==u&&(g.Kn(O,R,"vis",[u]),O.Jo=u);ym0(O,R);(u=wnW(O.provider))&&u!==O.Py&&(g.Kn(O,R,"conn",[u]),O.Py=u);I8A(O,R,J)}; I8A=function(O,R,J){if(!isNaN(J.Jr)){var l=J.Jr;J.S96E3&&(new g.zR(O.reportStats,0,O)).start()}}; toB=function(O){O.provider.videoData.Bc&&Cn(O,"prefetch");O.provider.videoData.mM&&O.nJ("reload",{r:O.provider.videoData.reloadReason,ct:O.provider.videoData.mM});O.provider.videoData.fJ&&Cn(O,"monitor");O.provider.videoData.isLivePlayback&&Cn(O,"live");Jj&&Cn(O,"streaming");O.provider.videoData.FH&&O.nJ("ctrl",{mode:O.provider.videoData.FH},!0);if(O.provider.videoData.lV){var R=O.provider.videoData.lV.replace(/,/g,"_");O.nJ("ytp",{type:R},!0)}O.provider.videoData.YK&&(R=O.provider.videoData.YK.replace(/,/g, "."),O.nJ("ytrexp",{ids:R},!0));var J=O.provider.videoData;R=O.provider.Ru.Z("enable_white_noise")||O.provider.Ru.Z("enable_webgl_noop");J=g.oN(J)||g.$D(J)||g.MZ(J)||g.qZ(J);(R||J)&&(R=(0,g.rT)())&&O.L.set("gpu",[R]);UI(O.provider.videoData)&&g.Kn(O,g.vA(O.provider),"dt",["1"]);O.provider.Ru.DA()&&(R=(0,g.Q)()-O.provider.Ru.yk,O.nJ("playerage",{secs:Math.pow(1.6,Math.round(Math.log(R/1E3)/Math.log(1.6))).toFixed()}));O.N=!0;O.j=g.o9(function(){O.reportStats()},1E4)}; Zn0=function(O,R,J){var l=g.vA(O.provider);oEs(O,l,R,0,J);I$(O,l);rmL(O)}; oEs=function(O,R,J,l,u){var F=O.provider.Ru.L.cbrver;O.provider.Ru.L.cbr==="Chrome"&&/^96[.]/.test(F)&&J==="net.badstatus"&&/rc\.500/.test(u)&&VoH(O,3);O.provider.Ru.Z("html5_use_ump")&&/b248180278/.test(u)&&VoH(O,4);F=O.provider.getCurrentTime(O.adCpn||O.provider.videoData.clientPlaybackNonce);l=l===1?"fatal":"";J=[J,l,F.toFixed(3)];l&&(u+=";a6s."+Iz());u&&J.push(f8s(u));g.Kn(O,R,"error",J);O.N=!0}; FkA=function(O,R){var J=g.vA(O.provider);if(!O.provider.Ru.experiments.Vh("html5_refactor_sabr_video_format_selection_logging")||R.L.id!==O.Gd){var l=[R.L.id,R.S,O.Gd,R.reason];R.token&&l.push(R.token);g.Kn(O,J,"vfs",l);O.Gd=R.L.id;l=O.provider.LJ.getPlayerSize();if(l.width>0&&l.height>0){l=[Math.round(l.width),Math.round(l.height)];var u=g.hj();u>1&&l.push(u);g.Kn(O,J,"view",l)}O.fJ||(O.provider.Ru.DA()&&Cn(O,"rqs2"),O.provider.videoData.L&&NL(O.provider.videoData.L)&&O.L.set("preload",["1"]));O.fJ= !0;O.N=!0}R.reason==="m"&&++O.vY===100&&VoH(O,2);g.Kn(O,J,"vps",[O.QI]);O.iz||O.reportStats(J)}; SRx=function(O){O.B>=0||(O.provider.Ru.jR||O.provider.LJ.getVisibilityState()!==3?O.B=g.vA(O.provider):O.Td=!0)}; NTx=function(O,R,J,l){if(J!==O.QI){O.iz||R=10&&O.playTimeSecs<=180&&(O.L.set("qoealert",["1"]),O.SG=!0)),J!=="B"||O.QI!=="PL"&&O.QI!=="PB"||(O.isBuffering=!0),O.S=R);O.QI==="PL"&&(J==="B"||J==="S")||O.provider.Ru.DA()?I$(O,R):(O.w5||J!=="PL"||(O.w5=!0,I8A(O,R,O.provider.LJ.Zt())),ym0(O,R));J==="PL"&&g.nP(O.m1);var u=[J];J==="S"&&l&&u.push("ss."+l);g.Kn(O,R,"vps", u);O.QI=J;O.OQ=R;O.S=R;O.N=!0}}; ufL=function(O,R,J){if(O.provider.Ru.experiments.Vh("html5_refactor_sabr_audio_format_selection_logging")){R=J.L;var l=[R.audio&&R.video?R.xR?R.xR:"":R.id];R.Ef&&R.Ef.id&&l.push(R.Ef.id);R=l.join(";");R!==O.J&&(l=[R,O.J,J.reason],J.token&&l.push(J.token),g.Kn(O,g.vA(O.provider),"afs",l),O.J=R)}else J.L.id!==O.J&&(l=[J.L.id,O.J,J.reason],J.token&&l.push(J.token),g.Kn(O,R,"afs",l),O.J=J.L.id)}; Cn=function(O,R){wT(O,"cat",R)}; tm=function(O,R,J,l,u,F){var G=g.vA(O.provider);J!==1&&J!==3&&J!==5||g.Kn(O,G,"vps",[O.QI]);wT(O,"xvt","t."+G.toFixed(3)+";m."+F.toFixed(3)+";g."+R+";tt."+J+";np.0;c."+l+";d."+u)}; VoH=function(O,R){O.Rz||(wT(O,"fcnz",""+R),O.Rz=!0)}; f8s=function(O){/[^a-zA-Z0-9;.!_-]/.test(O)&&(O=O.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return O}; Z8=function(O){this.provider=O;this.J=!1;this.L=0;this.N=-1;this.I4=NaN;this.B=0;this.segments=[];this.j=this.D=0;this.previouslyEnded=!1;this.W=this.provider.LJ.getVolume();this.V=this.provider.LJ.isMuted()?1:0;this.S=o$(this.provider)}; VV=function(O){O.S.startTime=O.B;O.S.endTime=O.L;var R=!1;O.segments.length&&g.Ib(O.segments).isEmpty()?(O.segments[O.segments.length-1].previouslyEnded&&(O.S.previouslyEnded=!0),O.segments[O.segments.length-1]=O.S,R=!0):O.segments.length&&O.S.isEmpty()||(O.segments.push(O.S),R=!0);R?O.S.endTime===0&&(O.previouslyEnded=!1):O.S.previouslyEnded&&(O.previouslyEnded=!0);O.D+=O.L-O.B;O.S=o$(O.provider);O.S.previouslyEnded=O.previouslyEnded;O.previouslyEnded=!1;O.B=O.L}; EEB=function(O){mvA(O);O.j=g.o9(function(){O.update()},100); O.I4=g.vA(O.provider);O.S=o$(O.provider)}; mvA=function(O){g.V3(O.j);O.j=NaN}; Dvs=function(O,R,J){J-=O.I4;return R===O.L&&J>.5}; a8W=function(O,R,J,l){this.Ru=R;this.mM=J;this.segments=[];this.experimentIds=[];this.AR=this.d5=this.isFinal=this.delayThresholdMet=this.w5=this.TR=this.autoplay=this.autonav=!1;this.zJ="yt";this.j=[];this.J=this.W=null;this.sendVisitorIdHeader=this.Td=!1;this.V=this.pageId="";this.D=J==="watchtime";this.B=J==="playback";this.iz=J==="atr";this.vW=J==="engage";this.sendVisitorIdHeader=!1;this.uri=this.iz?"/api/stats/"+J:"//"+R.BM+"/api/stats/"+J;l&&(this.d5=l.fs,l.rtn&&(this.J=l.rtn),this.D?(this.playerState= l.state,l.rti>0&&(this.W=l.rti)):(this.jR=l.mos,this.DZ=l.volume,l.at&&(this.adType=l.at)),l.autonav&&(this.autonav=l.autonav),l.inview!=null&&(this.Y9=l.inview),l.size&&(this.Py=l.size),l.playerwidth&&(this.playerWidth=l.playerwidth),l.playerheight&&(this.playerHeight=l.playerheight));this.E8=g.RW(R.L);this.V=gm(R.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.V==="all"||this.V==="once")this.AT=g.RW(R.w5);this.Xw=R.zJ;this.experimentIds=M2H(R.experiments);this.Gd=R.CG;this.zJ=R.SN;this.region= R.region;this.userAge=R.userAge;this.sQ=R.nD;this.m1=TT();this.sendVisitorIdHeader=R.sendVisitorIdHeader;this.N1=R.Z("vss_pings_using_networkless")||R.Z("kevlar_woffle");this.xe=R.Z("vss_final_ping_send_and_write");this.xS=R.Z("vss_use_send_and_write");this.pageId=R.pageId;this.yk=R.Z("vss_playback_use_send_and_write");R.livingRoomAppMode&&(this.livingRoomAppMode=R.livingRoomAppMode);this.eR=R.N&&R.Z("embeds_append_synth_ch_headers");g.$X(R)&&(this.Iu=R.iz);g.wZ(g.Pv(R))&&this.j.push(1);this.accessToken= g.pQ(O);O.BM[this.mM]?this.N=O.BM[this.mM]:O.BM.playback&&(this.N=O.BM.playback);this.adFormat=O.adFormat;this.adQueryId=O.adQueryId;this.autoplay=CwT(O);this.B&&(this.TR=O.LS&&W$(O)==="adunit"?!0:!1);this.autonav=O.isAutonav||this.autonav;this.contentVideoId=ep(O);this.clientPlaybackNonce=O.clientPlaybackNonce;this.w5=O.Ud;O.j&&(this.Hq=O.j,this.Rz=O.SU);O.mdxEnvironment&&(this.mdxEnvironment=O.mdxEnvironment);this.L=O.Iu;this.SG=O.SG;O.S&&(this.CG=O.S.itag,O.N&&O.N.itag!==this.CG&&(this.fJ=O.N.itag)); O.L&&NL(O.L)&&(this.offlineDownloadUserChoice="1");this.eventLabel=W$(O);this.AR=O.DZ?!1:O.O0;this.vY=O.CR;if(R=NZ(O))this.Ie=R;this.Re=O.WV;this.partnerId=O.partnerId;this.eventId=O.eventId;this.playlistId=O.GO||O.playlistId;this.Xn=O.Xn;this.FH=O.FH;this.lV=O.lV;this.WD=O.WD;this.subscribed=O.subscribed;this.videoId=O.videoId;this.videoMetadata=O.videoMetadata;this.visitorData=O.visitorData;this.osid=O.osid;this.vB=O.vB;this.referrer=O.referrer;this.Uk=O.ND||O.Uk;this.KJ=O.RI;this.B8=O.B8;this.userGenderAge= O.userGenderAge;this.ZT=O.ZT;this.embedsRct=O.embedsRct;this.embedsRctn=O.embedsRctn;g.$X(this.Ru)&&O.mutedAutoplay&&(O.mutedAutoplayDurationMode===2&&O.limitedPlaybackDurationInSeconds===0&&O.endSeconds===0?this.j.push(7):this.j.push(2));O.isEmbedsShortsMode(new g.so(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.j.push(3);g.nQ(O)&&this.j.push(4);this.JR=O.q8;O.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=O.compositeLiveIngestionOffsetToken)}; vEp=function(O,R){var J=O.sendVisitorIdHeader?O.visitorData:void 0;return g.lr(O.Ru,O.accessToken).then(function(l){return Onx(O.uri,O.Ru,O.pageId,J,l,R,O.eR)})}; $vf=function(O,R){return function(){O.Ru.Z("html5_simplify_pings")?(O.L=O.Qh,O.Jo=R(),O.m1=0,O.send()):vEp(O).then(function(J){var l=Xns(O);l.cmt=l.len;l.lact="0";var u=R().toFixed(3);l.rt=Number(u).toString();l=g.s9(O.uri,l);O.Ru.Z("vss_through_gel_double")&&TTh(l);O.N1?(J==null&&(J={}),O.xS?nr().sendAndWrite(l,J):nr().sendThenWrite(l,J)):J?g.a9(l,J):g.He(l)})}}; Xns=function(O){var R={ns:O.zJ,el:O.eventLabel,cpn:O.clientPlaybackNonce,ver:2,cmt:O.S(O.L),fmt:O.CG,fs:O.d5?"1":"0",rt:O.S(O.Jo),adformat:O.adFormat,content_v:O.contentVideoId,euri:O.Xw,lact:O.m1,live:O.Ie,cl:(750807867).toString(),mos:O.jR,state:O.playerState,volume:O.DZ};O.subscribed&&(R.subscribed="1");Object.assign(R,O.E8);O.V==="all"?Object.assign(R,O.AT):O.V==="once"&&O.B&&Object.assign(R,O.AT);O.autoplay&&(R.autoplay="1");O.TR&&(R.sautoplay="1");O.w5&&(R.dni="1");!O.D&&O.Iu&&(R.epm=MoL[O.Iu]); O.isFinal&&(R["final"]="1");O.AR&&(R.splay="1");O.SG&&(R.delay=O.SG);O.Gd&&(R.hl=O.Gd);O.region&&(R.cr=O.region);O.userGenderAge&&(R.uga=O.userGenderAge);O.userAge!==void 0&&O.sQ&&(R.uga=O.sQ+O.userAge);O.Qh!==void 0&&(R.len=O.S(O.Qh));!O.D&&O.experimentIds.length>0&&(R.fexp=O.experimentIds.toString());O.J!==null&&(R.rtn=O.S(O.J));O.Uk&&(R.feature=O.Uk);O.FH&&(R.ctrl=O.FH);O.lV&&(R.ytr=O.lV);O.fJ&&(R.afmt=O.fJ);O.offlineDownloadUserChoice&&(R.ODUC=O.offlineDownloadUserChoice);O.SN&&(R.lio=O.S(O.SN)); O.D?(R.idpj=O.vY,R.ldpj=O.Re,O.delayThresholdMet&&(R.dtm="1"),O.W!=null&&(R.rti=O.S(O.W)),O.ZT&&(R.ald=O.ZT),O.compositeLiveIngestionOffsetToken&&(R.clio=O.compositeLiveIngestionOffsetToken)):O.adType!==void 0&&(R.at=O.adType);O.Py&&(O.B||O.D)&&(R.size=O.Py);O.B&&O.j.length&&(R.pbstyle=O.j.join(","));O.Y9!=null&&(O.B||O.D)&&(R.inview=O.S(O.Y9));O.D&&(R.volume=fn(O,g.jO(O.segments,function(l){return l.volume})),R.st=fn(O,g.jO(O.segments,function(l){return l.startTime})),R.et=fn(O,g.jO(O.segments,function(l){return l.endTime})), RT(O.segments,function(l){return l.playbackRate!==1})&&(R.rate=fn(O,g.jO(O.segments,function(l){return l.playbackRate}))),RT(O.segments,function(l){return l.L!=="-"})&&(R.als=g.jO(O.segments,function(l){return l.L}).join(",")),RT(O.segments,function(l){return l.previouslyEnded})&&(R.pe=g.jO(O.segments,function(l){return""+ +l.previouslyEnded}).join(","))); R.muted=fn(O,g.jO(O.segments,function(l){return l.muted?1:0})); RT(O.segments,function(l){return l.visibilityState!==0})&&(R.vis=fn(O,g.jO(O.segments,function(l){return l.visibilityState}))); RT(O.segments,function(l){return l.connectionType!==0})&&(R.conn=fn(O,g.jO(O.segments,function(l){return l.connectionType}))); RT(O.segments,function(l){return l.S!==0})&&(R.blo=fn(O,g.jO(O.segments,function(l){return l.S}))); RT(O.segments,function(l){return!!l.B})&&(R.blo=g.jO(O.segments,function(l){return l.B}).join(",")); RT(O.segments,function(l){return!!l.compositeLiveStatusToken})&&(R.cbs=g.jO(O.segments,function(l){return l.compositeLiveStatusToken}).join(",")); RT(O.segments,function(l){return l.N!=="-"})&&(R.cc=g.jO(O.segments,function(l){return l.N}).join(",")); RT(O.segments,function(l){return l.clipId!=="-"})&&(R.clipid=g.jO(O.segments,function(l){return l.clipId}).join(",")); if(RT(O.segments,function(l){return!!l.audioId})){var J="au"; O.B&&(J="au_d");R[J]=g.jO(O.segments,function(l){return l.audioId}).join(",")}G3()&&O.Hq&&(R.ctt=O.Hq,R.cttype=O.Rz,R.mdx_environment=O.mdxEnvironment); O.vW&&(R.etype=O.OQ!==void 0?O.OQ:0);O.KJ&&(R.uoo=O.KJ);O.livingRoomAppMode&&O.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(R.clram=qRh[O.livingRoomAppMode]||O.livingRoomAppMode);O.N?kEs(O,R):(R.docid=O.videoId,R.referrer=O.referrer,R.ei=O.eventId,R.of=O.vB,R.osid=O.osid,R.vm=O.videoMetadata,O.adQueryId&&(R.aqi=O.adQueryId),O.autonav&&(R.autonav="1"),O.playlistId&&(R.list=O.playlistId),O.WD&&(R.ssrt="1"),O.B8&&(R.upt=O.B8));O.B&&(O.embedsRct&&(R.rct=O.embedsRct),O.embedsRctn&&(R.rctn= O.embedsRctn),O.compositeLiveIngestionOffsetToken&&(R.clio=O.compositeLiveIngestionOffsetToken));O.JR&&(R.host_cpn=O.JR);return R}; kEs=function(O,R){if(R&&O.N){var J=new Set(["q","feature","mos"]),l=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),u=new Set(["aqi","autonav","list","ssrt","upt"]);O.N.ns==="3pp"&&(R.ns="3pp");for(var F=g.N(Object.keys(O.N)),G=F.next();!G.done;G=F.next())G=G.value,l.has(G)||J.has(G)||u.has(G)&&!O.N[G]||(R[G]=O.N[G])}}; fn=function(O,R){return g.jO(R,O.S).join(",")}; TTh=function(O){O.indexOf("watchtime")!==-1&&g.wj("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:O}})}; s$W=function(O,R){O.attestationResponse&&vEp(O).then(function(J){J=J||{};J.method="POST";J.postParams={atr:O.attestationResponse};O.N1?O.xS?nr().sendAndWrite(R,J):nr().sendThenWrite(R,J):g.a9(R,J)})}; So=function(O){g.p.call(this);this.provider=O;this.j="paused";this.D=NaN;this.J=[10,10,10,40];this.W=this.V=0;this.Hq=this.iz=this.OQ=this.SN=this.B=!1;this.S=this.N=NaN;this.logger=new g.l9("vss");this.L=new Z8(O)}; Pks=function(O){if(!O.B){O.provider.videoData.Tf===16623&&g.Aa(Error("Playback for EmbedPage"));var R=Nv(O,"playback");O.J=bnW(O);EEB(O.L);R.J=mP(O);O.S>0&&(R.L-=O.S);R.send();if(O.provider.videoData.N2){R=O.provider.Ru;var J=O.provider.videoData,l={html5:"1",video_id:J.videoId,cpn:J.clientPlaybackNonce,ei:J.eventId,ptk:J.N2,oid:J.hn,ptchn:J.iO,pltype:J.XV,content_v:ep(J)};J.wu&&Object.assign(l,{m:J.wu});R=g.s9(R.Ic+"ptracking",l);WPs(O,R)}O.provider.videoData.SG||(Amx(O),eFT(O),O.g$());O.B=!0;O= O.L;O.L=O.b0();O.I4=g.vA(O.provider);!(O.B===0&&O.L<5)&&O.L-O.B>2&&(O.B=O.L);O.J=!0}}; bnW=function(O){var R=O.provider.videoData.CR,J=O.provider.videoData.WV,l=[10+R,10,10,40+J-R,40],u,F=(u=O.provider.videoData.getPlayerResponse())==null?void 0:u.playbackTracking,G=F==null?void 0:F.videostatsScheduledFlushWalltimeSeconds;u=F==null?void 0:F.videostatsDefaultFlushIntervalSeconds;if(!(G&&G.length>0&&u))return O.logger.info("Missing valid scheduled pings config "+G+" "+u),l;R=[G[0]+R].concat(g.X(G.slice(1).map(function(y,w){return y-G[w]})),[u+J-R, u]);return R.some(function(y){return y<0})?(O.logger.L(347111855,"Neg vss scheduled pings "+G+" "+u),l):R}; mP=function(O,R){R=R===void 0?NaN:R;var J=g.vA(O.provider);R=isNaN(R)?J:R;R=Math.ceil(R);var l=O.J[O.V];O.V+11E3;!(F.length>1)&&F[0].isEmpty()||y||(G.J=mP(O,u));G.send();O.W++}},(u-J)*1E3); return O.N=u}; ER=function(O){g.ZD(O.D);O.D=NaN}; pn2=function(O){O.L.update();O=O.L;O.segments.length&&O.L===O.B||VV(O);var R=O.segments;O.segments=[];return R}; Nv=function(O,R){var J=Hnh(O.provider);Object.assign(J,{state:O.j});R=new a8W(O.provider.videoData,O.provider.Ru,R,J);R.L=O.provider.LJ.b0();J=O.provider.videoData.clientPlaybackNonce;R.L=O.provider.LJ.LK(J);O.provider.videoData.isLivePlayback||(R.Qh=O.provider.LJ.getDuration(J));O.provider.videoData.L&&(J=O.provider.videoData.L.yI(R.L))&&(R.SN=J-R.L,O.provider.Ru.Z("html5_disable_live_dvr_shrink_for_cdm_vss")&&B$(O.provider.videoData)&&(R.L+=O.provider.LJ.Vd(),R.SN-=O.provider.LJ.Vd()));R.Jo=g.vA(O.provider); R.segments=[o$(O.provider)];return R}; BTx=function(O,R){var J=Nv(O,"watchtime");xvT(O)&&(J.delayThresholdMet=!0,O.OQ=!0);if(O.S>0){for(var l=g.N(R),u=l.next();!u.done;u=l.next())u=u.value,u.startTime-=O.S,u.endTime-=O.S;J.L-=O.S}else J.L=O.L.OD();J.segments=R;return J}; D8=function(O,R){var J=UvW(O,!isNaN(O.N));R&&(O.N=NaN);return J}; UvW=function(O,R){var J=BTx(O,pn2(O));!isNaN(O.N)&&R&&(J.W=O.N);return J}; xvT=function(O){var R;if(R=O.provider.videoData.isLoaded()&&O.provider.videoData.SG&&O.B&&!O.OQ)R=O.L,R=R.D+R.b0()-R.B>=O.provider.videoData.SG;return!!R}; Amx=function(O){O.provider.videoData.youtubeRemarketingUrl&&!O.iz&&(WPs(O,O.provider.videoData.youtubeRemarketingUrl),O.iz=!0)}; eFT=function(O){O.provider.videoData.googleRemarketingUrl&&!O.Hq&&(WPs(O,O.provider.videoData.googleRemarketingUrl),O.Hq=!0)}; j$2=function(O){if(!O.jN()&&O.B){O.j="paused";var R=D8(O);R.isFinal=!0;R.send();O.dispose()}}; Q$W=function(O,R){if(!O.jN())if(g.d(R.state,2)||g.d(R.state,512)){if(O.j="paused",g.Z_(R,2)||g.Z_(R,512))g.Z_(R,2)&&(O.L.previouslyEnded=!0),O.B&&(ER(O),D8(O).send(),O.N=NaN)}else if(g.d(R.state,8)){O.j="playing";var J=O.B&&isNaN(O.D)?mP(O):NaN;if(!isNaN(J)&&(oH(R,64)<0||oH(R,512)<0)){var l=UvW(O,!1);l.J=J;l.send()}g.Z_(R,16)&&R.state.seekSource===58&&(O.L.previouslyEnded=!0)}else O.j="paused"}; LPB=function(O,R,J){if(!O.SN){J||(J=Nv(O,"atr"));J.attestationResponse=R;try{J.send()}catch(l){if(l.message!=="Unknown Error")throw l;}O.SN=!0}}; WPs=function(O,R){var J=O.provider.Ru;g.lr(O.provider.Ru,g.pQ(O.provider.videoData)).then(function(l){var u=O.provider.Ru.pageId,F=O.provider.Ru.sendVisitorIdHeader?O.provider.videoData.visitorData:void 0,G=O.provider.Ru.Z("vss_pings_using_networkless")||O.provider.Ru.Z("kevlar_woffle"),y=O.provider.Ru.Z("allow_skip_networkless");l=Onx(R,J,u,F,l);RFL(R,l,{token:O.provider.videoData.j,mI:O.provider.videoData.SU,mdxEnvironment:O.provider.videoData.mdxEnvironment},J,void 0,G&&!y,!1,!0)})}; YR_=function(){this.endTime=this.startTime=-1;this.N="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.S=0;this.compositeLiveStatusToken=this.B=void 0;this.volume=this.connectionType=0;this.muted=!1;this.L=this.clipId="-";this.previouslyEnded=!1}; a$=function(O,R,J){this.videoData=O;this.Ru=R;this.LJ=J;this.L=void 0}; g.vA=function(O){return dv0(O)()}; dv0=function(O){if(!O.L){var R=g.uQ(function(l){var u=(0,g.Q)();l&&u<=631152E6&&(O.LJ.nJ("ytnerror",{issue:28799967,value:""+u}),u=(new Date).getTime()+2);return u},O.Ru.Z("html5_validate_yt_now")),J=R(); O.L=function(){return Math.round(R()-J)/1E3}; O.LJ.Gv()}return O.L}; Hnh=function(O){var R=O.LJ.RY()||{};R.fs=O.LJ.Ni();R.volume=O.LJ.getVolume();R.muted=O.LJ.isMuted()?1:0;R.mos=R.muted;R.clipid=O.LJ.b_();var J;R.playerheight=((J=O.LJ.getPlayerSize())==null?void 0:J.height)||0;var l;R.playerwidth=((l=O.LJ.getPlayerSize())==null?void 0:l.width)||0;O=O.videoData;J={};O.S&&(J.fmt=O.S.itag,O.N&&(O.Py?O.N.itag!==O.S.itag:O.N.itag!=O.S.itag)&&(J.afmt=O.N.itag));J.ei=O.eventId;J.list=O.playlistId;J.cpn=O.clientPlaybackNonce;O.videoId&&(J.v=O.videoId);O.PQ&&(J.infringe=1); (O.DZ?0:O.O0)&&(J.splay=1);(l=NZ(O))&&(J.live=l);O.LS&&(J.sautoplay=1);O.kq&&(J.autoplay=1);O.Xn&&(J.sdetail=O.Xn);O.partnerId&&(J.partnerid=O.partnerId);O.osid&&(J.osid=O.osid);O.m0&&(J.cc=g.e22(O.m0));return Object.assign(R,J)}; wnW=function(O){var R=tgp();if(R)return hFA[R]||hFA.other;if(g.$T(O.Ru)){O=navigator.userAgent;if(/[Ww]ireless[)]/.test(O))return 3;if(/[Ww]ired[)]/.test(O))return 30}return 0}; o$=function(O){var R=new YR_,J;R.N=((J=Hnh(O).cc)==null?void 0:J.toString())||"-";R.playbackRate=O.LJ.getPlaybackRate();J=O.LJ.getVisibilityState();J!==0&&(R.visibilityState=J);O.Ru.Td&&(R.S=1);R.B=O.videoData.HT;R.compositeLiveStatusToken=O.videoData.compositeLiveStatusToken;J=O.LJ.getAudioTrack();J.Ef&&J.Ef.id&&J.Ef.id!=="und"&&(R.audioId=J.Ef.id);R.connectionType=wnW(O);R.volume=O.LJ.getVolume();R.muted=O.LJ.isMuted();R.clipId=O.LJ.b_()||"-";R.L=O.videoData.YO||"-";return R}; g.vn=function(O,R){g.p.call(this);var J=this;this.provider=O;this.N=!1;this.B=new Map;this.QI=new g.GP;this.nG={LKN:function(){return J.qoe}, QYU:function(){return J.L}, kGQ:function(){return J.S}}; this.provider.videoData.Dh()&&!this.provider.videoData.Ff&&(this.L=new So(this.provider),this.L.S=this.provider.videoData.xe/1E3,g.H(this,this.L),this.qoe=new g.yV(this.provider,R),g.H(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.KA=this.provider.videoData.clientPlaybackNonce)&&this.B.set(this.KA,this.L));if(O.Ru.playerCanaryState==="canary"||O.Ru.playerCanaryState==="holdback")this.S=new lk(this.provider),g.H(this,this.S)}; zFs=function(O){return!!O.L&&!!O.qoe}; XX=function(O){return g.vA(O.provider)}; TE=function(O){O.S&&U6s(O.S);O.qoe&&SRx(O.qoe)}; nE_=function(O){if(O.qoe){O=O.qoe;for(var R=O.provider.videoData,J=O.provider.Ru,l=g.N(J.hD),u=l.next();!u.done;u=l.next())Cn(O,u.value);if(O.provider.Z("html5_enable_qoe_cat_list"))for(l=g.N(R.Gm),u=l.next();!u.done;u=l.next())Cn(O,u.value);else R.hD&&Cn(O,O.provider.videoData.hD);R.vy()&&(l=R.L,IN(R)&&Cn(O,"manifestless"),l&&MO(l)&&Cn(O,"live-segment-"+MO(l).toFixed(1)));FD(R)?Cn(O,"sabr"):O.ZS(td(R));if(H$(R)||R.Zv())R.Zv()&&Cn(O,"ssa"),Cn(O,"lifa");B$(R)&&Cn(O,"cdm");R.gatewayExperimentGroup&& (l=R.gatewayExperimentGroup,l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?l="spkadtrt":l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(l="spkadctrl"),Cn(O,l));J.SN!=="yt"&&O.L.set("len",[R.lengthSeconds.toFixed(2)]);R.cotn&&!UI(R)&&O.Jm(!0);J.DA()&&(R=GEW())&&O.nJ("cblt",{m:R});if(J.Z("html5_log_screen_diagonal")){J=O.nJ;var F;R=((F=window.H5vccScreen)==null?0:F.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;J.call(O,"cbltdiag",{v:R})}}}; cmz=function(O){if(O.provider.LJ.vI()){if(O.N)return;O.N=!0}O.L&&Pks(O.L);if(O.S){O=O.S;var R=g.vA(O.provider);O.L<0&&(O.L=R,O.delay.start());O.S=R;O.N=R}}; OV2=function(O,R){O.L&&(O=O.L,R===58?O.L.update():O.B&&(ER(O),D8(O).send(),O.N=NaN))}; R1B=function(O,R){if(g.Z_(R,1024)||g.Z_(R,512)||g.Z_(R,4)){if(O.S){var J=O.S;J.S>=0||(J.L=-1,J.delay.stop())}O.qoe&&(J=O.qoe,J.V||(J.B=-1))}if(O.provider.videoData.enableServerStitchedDai&&O.KA){var l;(l=O.B.get(O.KA))==null||Q$W(l,R)}else O.L&&Q$W(O.L,R);if(O.qoe){l=O.qoe;J=R.state;var u=g.vA(l.provider),F=l.getPlayerState(J);NTx(l,u,F,J.seekSource||void 0);F=J.PH;g.d(J,128)&&F&&(F.rg=F.rg||"",oEs(l,u,F.errorCode,F.fk,F.rg));(g.d(J,2)||g.d(J,128))&&l.reportStats(u);J.isPlaying()&&!l.V&&(l.B>=0&& l.L.set("user_intent",[l.B.toString()]),l.V=!0);rmL(l)}O.S&&(l=O.S,jFL(l),l.playerState=R.state,l.S>=0&&g.Z_(R,16)&&l.seekCount++,R.state.isError()&&l.send());O.provider.LJ.vI()&&(O.QI=R.state)}; Jb2=function(O){O.S&&O.S.send();if(O.qoe){var R=O.qoe;if(R.N){R.QI==="PL"&&(R.QI="N");var J=g.vA(R.provider);g.Kn(R,J,"vps",[R.QI]);R.V||(R.B>=0&&R.L.set("user_intent",[R.B.toString()]),R.V=!0);R.provider.Ru.DA()&&R.nJ("finalized",{});R.xS=!0;R.reportStats(J)}}if(O.provider.videoData.enableServerStitchedDai)for(R=g.N(O.B.values()),J=R.next();!J.done;J=R.next())j$2(J.value);else O.L&&j$2(O.L);O.dispose()}; gfB=function(O,R){O.L&&LPB(O.L,R)}; iVW=function(O){if(!O.L)return null;var R=Nv(O.L,"atr");return function(J){O.L&&LPB(O.L,J,R)}}; lnx=function(O,R,J,l){J.adFormat=J.d5;var u=R.LJ;R=new So(new a$(J,R.Ru,{getDuration:function(){return J.lengthSeconds}, getCurrentTime:function(){return u.getCurrentTime()}, b0:function(){return u.b0()}, LK:function(){return u.LK()}, vI:function(){return u.vI()}, Zt:function(){return u.Zt()}, getPlayerSize:function(){return u.getPlayerSize()}, getAudioTrack:function(){return J.getAudioTrack()}, getPlaybackRate:function(){return u.getPlaybackRate()}, UU:function(){return u.UU()}, getVisibilityState:function(){return u.getVisibilityState()}, Bf:function(){return u.Bf()}, RY:function(){return u.RY()}, getVolume:function(){return u.getVolume()}, isMuted:function(){return u.isMuted()}, Ni:function(){return u.Ni()}, b_:function(){return u.b_()}, getProximaLatencyPreference:function(){return u.getProximaLatencyPreference()}, Gv:function(){u.Gv()}, nJ:function(F,G){u.nJ(F,G)}, PG:function(){return u.PG()}, Vd:function(){return u.Vd()}})); R.S=l;g.H(O,R);return R}; uaT=function(){this.Jr=0;this.B=this.DL=this.L_=this.S=NaN;this.L={};this.bandwidthEstimate=NaN}; $E=function(O,R,J){g.p.call(this);var l=this;this.Ru=O;this.LJ=R;this.S=J;this.L=new Map;this.KA="";this.nG={kz:function(){return Array.from(l.L.keys())}}}; FTx=function(O,R){O.L.has(R)&&(Jb2(O.L.get(R)),O.L.delete(R))}; G0A=function(){this.L=g.FB;this.array=[]}; yb_=function(O,R,J){var l=[];for(R=KT0(O,R);RJ)break}return l}; woh=function(O,R){var J=[];O=g.N(O.array);for(var l=O.next();!l.done&&!(l=l.value,l.contains(R)&&J.push(l),l.start>R);l=O.next());return J}; Ins=function(O){return O.array.slice(KT0(O,0x7ffffffffffff),O.array.length)}; KT0=function(O,R){O=kM(O.array,function(J){return R-J.start||1}); return O<0?-(O+1):O}; CAz=function(O,R){var J=NaN;O=g.N(O.array);for(var l=O.next();!l.done;l=O.next())if(l=l.value,l.contains(R)&&(isNaN(J)||l.endR&&(isNaN(J)||l.startO.mediaTime+O.D&&R1)O.N=!0;if((u===void 0?0:u)||isNaN(O.S))O.S=R;if(O.L)R!==O.mediaTime&&(O.L=!1);else if(R>0&&O.mediaTime===R){u=1500;if(O.Ru.Z("html5_buffer_underrun_transition_fix")){u=g.tB(O.Ru.experiments,"html5_min_playback_advance_for_steady_state_secs");var F=g.tB(O.Ru.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");u=u>0&&F>0&&Math.abs(R-O.S)(l||!O.N?u:400)}O.mediaTime=R;O.B=J;return!1}; fnA=function(O,R){this.videoData=O;this.L=R}; StL=function(O,R,J){return R.tV(J).then(function(){return sU(new fnA(R,R.B))},function(l){l instanceof Error&&g.Aa(l); var u=bc('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),F=A4('audio/mp4; codecs="mp4a.40.2"'),G=u||F,y=R.isLivePlayback&&!g.uo(O.D,!0);l="fmt.noneavailable";y?l="html5.unsupportedlive":G||(l="html5.missingapi");G=y||!G?2:1;u={buildRej:"1",a:R.bF(),d:!!R.Y9,drm:R.lC(),f18:R.yk.indexOf("itag=18")>=0,c18:u};R.L&&(R.lC()?(u.f142=!!R.L.L["142"],u.f149=!!R.L.L["149"],u.f279=!!R.L.L["279"]):(u.f133=!!R.L.L["133"],u.f140=!!R.L.L["140"],u.f242=!!R.L.L["242"]),u.cAAC=F,u.cAVC=A4('video/mp4; codecs="avc1.42001E"'), u.cVP9=A4('video/webm; codecs="vp9"'));R.D&&(u.drmsys=R.D.keySystem,F=0,R.D.L&&(F=Object.keys(R.D.L).length),u.drmst=F);return new MC(l,u,G)})}; kE=function(O){this.data=window.Float32Array?new Float32Array(O):Array(O);this.S=this.L=O-1}; NRf=function(O){return O.data[O.L]||0}; mTs=function(O){this.D=O;this.B=this.S=0;this.N=new kE(50)}; bk=function(O,R,J){g.y8.call(this);this.videoData=O;this.experiments=R;this.D=J;this.S=[];this.EX=0;this.B=!0;this.N=!1;this.j=0;J=new Ef_;O.latencyClass==="ULTRALOW"&&(J.j=!1);O.fJ?J.B=3:g.XD(O)&&(J.B=2);O.latencyClass==="NORMAL"&&(J.D=!0);J.SN=R.Vh("html5_refactor_decouple_liveness");g.tB(R,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.tB(R,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||O.latencyClass!=="LOW"&&O.latencyClass!=="ULTRALOW"||(J.D=!0);var l=g.tB(R, "html5_liveness_drift_proxima_override");if(td(O)!==0&&l){J.L=l;var u;((u=O.L)==null?0:Qg0(u))&&J.L--}FD(O)&&R.Vh("html5_sabr_parse_live_metadata_playback_boundaries")&&(J.Hq=!0);if(g.UU("trident/")||g.UU("edge/"))u=g.tB(R,"html5_platform_minimum_readahead_seconds")||3,J.N=Math.max(J.N,u);g.tB(R,"html5_minimum_readahead_seconds")&&(J.N=g.tB(R,"html5_minimum_readahead_seconds"));g.tB(R,"html5_maximum_readahead_seconds")&&(J.W=g.tB(R,"html5_maximum_readahead_seconds"));R.Vh("html5_force_adaptive_readahead")&& (J.j=!0);if(u=g.tB(R,"html5_liveness_drift_chunk_override"))J.L=u;CQ(O)&&(J.L=(J.L+1)/5,O.latencyClass==="LOW"&&(J.L*=2));if(O.latencyClass==="ULTRALOW"||O.latencyClass==="LOW")J.V=g.tB(R,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,J.J=g.tB(R,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=J;this.J=this.policy.B!==1;this.L=sR(this,DTW(this,isNaN(O.liveChunkReadahead)?3:O.liveChunkReadahead,O))}; an0=function(O,R){if(R)return R=O.videoData,R=DTW(O,isNaN(R.liveChunkReadahead)?3:R.liveChunkReadahead,R),sR(O,R);if(O.S.length){if(Math.min.apply(null,O.S)>1)return sR(O,O.L-1);if(O.policy.j)return sR(O,O.L+1)}return O.L}; vfx=function(O,R){if(!O.S.length)return!1;var J=O.L;O.L=an0(O,R===void 0?!1:R);if(R=J!==O.L)O.S=[],O.EX=0;return R}; Wn=function(O,R){return R>=O.xM()-Xoz(O)}; TRx=function(O,R,J){R=Wn(O,R);J||R?R&&(O.B=!0):O.B=!1;O.J=O.policy.B===2||O.policy.B===3&&O.B}; $Tz=function(O,R){R=Wn(O,R);O.N!==R&&O.publish("livestatusshift",R);O.N=R}; Xoz=function(O){var R=O.policy.L;O.N||(R=Math.max(R-1,0));return R*Am(O)}; DTW=function(O,R,J){J.fJ&&R--;CQ(J)&&(R=1);if(td(J)!==0&&(O=g.tB(O.experiments,"html5_live_chunk_readahead_proxima_override"))){R=O;var l;((l=J.L)==null?0:Qg0(l))&&R++}return R}; Am=function(O){return O.videoData.L?MO(O.videoData.L)||5:5}; sR=function(O,R){R=Math.max(Math.max(1,Math.ceil(O.policy.N/Am(O))),R);return Math.min(Math.min(8,Math.floor(O.policy.W/Am(O))),R)}; Ef_=function(){this.N=0;this.W=Infinity;this.j=!0;this.S=this.L=2;this.B=1;this.D=!1;this.J=10;this.Hq=!1;this.V=1;this.SN=!1}; pn=function(O){g.p.call(this);this.LJ=O;this.L=0;this.S=null;this.j=this.N=0;this.B={};this.Ru=this.LJ.T();this.D=new g.zR(this.BY,1E3,this);this.Td=new eo({delayMs:g.tB(this.Ru.experiments,"html5_seek_timeout_delay_ms")});this.iz=new eo({delayMs:g.tB(this.Ru.experiments,"html5_long_rebuffer_threshold_ms")});this.KJ=Pn(this,"html5_seek_set_cmt");this.Qh=Pn(this,"html5_seek_jiggle_cmt");this.JR=Pn(this,"html5_seek_new_elem");this.SG=Pn(this,"html5_unreported_seek_reseek");this.Hq=Pn(this,"html5_long_rebuffer_jiggle_cmt"); this.OQ=new eo({delayMs:2E4});this.Iu=Pn(this,"html5_seek_new_elem_shorts");this.AR=Pn(this,"html5_seek_new_media_source_shorts_reuse");this.Gd=Pn(this,"html5_seek_new_media_element_shorts_reuse");this.xS=Pn(this,"html5_reseek_after_time_jump");this.V=Pn(this,"html5_gapless_handoff_close_end_long_rebuffer");this.W=Pn(this,"html5_gapless_slow_seek");this.SN=Pn(this,"html5_gapless_slow_start");this.J=Pn(this,"html5_ads_preroll_lock_timeout");this.sQ=new eo({delayMs:g.tB(this.Ru.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,sX:!this.Ru.Z("html5_report_slow_ads_as_error")});this.fJ=new eo({delayMs:g.tB(this.Ru.experiments,"html5_skip_slow_ad_delay_ms")||5E3,sX:!this.Ru.Z("html5_skip_slow_buffering_ad")});this.Rz=new eo({delayMs:g.tB(this.Ru.experiments,"html5_slow_start_timeout_delay_ms")});this.N1=Pn(this,"html5_slow_start_no_media_source");g.H(this,this.D)}; Pn=function(O,R){var J=g.tB(O.Ru.experiments,R+"_delay_ms");O=O.Ru.Z(R+"_cfl");return new eo({delayMs:J,sX:O})}; M50=function(O,R){O.L=R}; Bn=function(O,R,J,l,u,F,G,y){R.test(J)?(O.sZ(u,R,G),R.sX||F()):(R.Am&&R.S&&!R.N?(J=(0,g.Q)(),l?R.L||(R.L=J):R.L=0,F=!l&&J-R.S>R.Am,J=R.L&&J-R.L>R.yn||F?R.N=!0:!1):J=!1,J&&(y=Object.assign({},O.sf(R),y),y.wn=G,y.we=u,y.wsuc=l,O.LJ.nJ("workaroundReport",y),l&&(R.reset(),O.B[u]=!1)))}; eo=function(O){var R=O===void 0?{}:O;O=R.delayMs===void 0?0:R.delayMs;var J=R.yn===void 0?1E3:R.yn;var l=R.Am===void 0?3E4:R.Am;R=R.sX===void 0?!1:R.sX;this.L=this.S=this.B=this.startTimestamp=0;this.N=!1;this.D=Math.ceil(O/1E3);this.yn=J;this.Am=l;this.sX=R}; bV0=function(O){g.p.call(this);var R=this;this.LJ=O;this.J=this.L=this.loader=this.mediaElement=this.playbackData=null;this.B=0;this.D=this.Hq=this.N=null;this.OQ=!1;this.Rz=0;this.SN=!1;this.timestampOffset=0;this.V=!0;this.JR=0;this.AR=this.w5=!1;this.j=0;this.KJ=!1;this.iz=0;this.Ru=this.LJ.T();this.videoData=this.LJ.getVideoData();this.policy=new qtz;this.W=new pn(this.LJ);this.sQ=this.Iu=this.Qh=this.S=NaN;this.xS=new g.zR(function(){k0A(R,!1)},2E3); this.SG=new g.zR(function(){Hn(R)}); this.Gd=new g.zR(function(){R.OQ=!0;sRT(R,{})}); this.fJ=NaN;this.N1=new g.zR(function(){var J=R.Ru.vW;J.L+=1E4/36E5;J.L-J.B>1/6&&(d4p(J),J.B=J.L);R.N1.start()},1E4); g.H(this,this.W);g.H(this,this.xS);g.H(this,this.Gd);g.H(this,this.SG);g.H(this,this.N1)}; e1s=function(O,R){O.playbackData=R;O.videoData.isLivePlayback&&(O.J=new mTs(function(){a:{if(O.playbackData&&O.playbackData.L.L){if(IN(O.videoData)&&O.loader){var J=O.loader.yN.s_()||0;break a}if(O.videoData.L){J=O.videoData.L.iz;break a}}J=0}return J}),O.L=new bk(O.videoData,O.Ru.experiments,function(){return O.N5(!0)})); xE(O.LJ)?(R=WTp(O),R.sP?(FD(O.videoData)&&O.mK(R.sP,R.startSeconds),O.B=R.startSeconds):R.startSeconds>0&&O.seekTo(R.startSeconds,{bK:"seektimeline_startPlayback",seekSource:15}),O.V=!1):AbH(O)||(O.B=O.B||(g.dy(O.videoData)?0:O.videoData.startSeconds)||0)}; po0=function(O,R){(O.loader=R)?PAL(O,!0):UR(O)}; BR0=function(O,R){g.nP(O.W.D);O.Z("html5_exponential_memory_for_sticky")&&(R.state.isPlaying()?g.nP(O.N1):O.N1.stop());if(O.mediaElement)if(R.oldState.state===8&&tw(R.state)&&R.state.isBuffering()){R=O.mediaElement.getCurrentTime();var J=O.mediaElement.cH();var l=O.Z("manifestless_post_live_ufph")||O.Z("manifestless_post_live")?w3(J,Math.max(R-3.5,0)):w3(J,R-3.5);l>=0&&R>J.end(l)-1.1&&l+10?(jo(O.LJ,O.getCurrentTime()+O.videoData.limitedPlaybackDurationInSeconds),O.AR=!0):O.videoData.isLivePlayback&&O.videoData.endSeconds>0&&(jo(O.LJ,O.getCurrentTime()+O.videoData.endSeconds),O.AR=!0))}; xTh=function(O,R){var J=O.getCurrentTime(),l=O.isAtLiveHead(J);if(O.J&&l){var u=O.J;if(u.L&&!(J>=u.S&&J50&&u.S.shift())),u=O.L,TRx(u,J,R===void 0?!0:R),$Tz(u,J),R&&k0A(O,!0));l!==O.w5&&(R=O.getCurrentTime()-O.sQ<=500,J=O.Rz>=1E3,R||J||(R=O.LJ.ZA(),R.qoe&&(R=R.qoe,J=g.vA(R.provider), g.Kn(R,J,"lh",[l?"1":"0"])),O.w5=l,O.Rz++,O.sQ=O.getCurrentTime()))}; k0A=function(O,R){if(O.L){var J=O.L;var l=O.getCurrentTime(),u=J.xM();var F=J.policy.S;J.N||(F=Math.max(F-1,0));F*=Am(J);l>=u-F||!J.Q2()?J=l0&&iy(O.mediaElement)>0&&(O.S=QV(O,O.S,!1)),!O.mediaElement||!dT2(O))O.SG.start(750);else if(!isNaN(O.S)&&isFinite(O.S)){var R=O.Iu-(O.S-O.timestampOffset);if(!(R===0||Math.abs(R)<.005))if(R=O.mediaElement.getCurrentTime()-O.S,Math.abs(R)<=O.JR||Math.abs(R)<.005)h12(O);else{if(O.videoData.KI)O.videoData.KI=!1;else if(!wr(O.videoData)&&O.S>=O.N5()-.1){O.S=O.N5();O.N.resolve(O.N5()); O.LJ.Om();return}try{var J=O.S-O.timestampOffset;O.mediaElement.seekTo(J);O.W.L=J;O.Iu=J;O.B=O.S;O.SN=!1}catch(l){}}}}; dT2=function(O){if(!O.mediaElement||O.mediaElement.n$()===0||O.mediaElement.hasError())return!1;var R=O.mediaElement.getCurrentTime()>0;if(!(O.videoData.B&&O.videoData.B.L||O.videoData.isLivePlayback)&&O.videoData.lC())return R;if(O.S>=0){var J=O.mediaElement.xJ();if(J.length||!R)return Ig(J,O.S-O.timestampOffset)}return R}; h12=function(O){O.N&&(O.N.resolve(O.mediaElement.getCurrentTime()),O.W.S=null)}; LTz=function(O,R){O.D&&(O.D.resolve(R),O.LJ.kf(),O.Ru.DA()||Yth(O))&&(R=O.sf(),R["native"]=""+ +O.SN,R.otgt=""+(O.S+O.timestampOffset),O.LJ.nJ("seekEnd",R));UR(O)}; UR=function(O){O.S=NaN;O.Iu=NaN;O.N=null;O.Hq=null;O.D=null;O.OQ=!1;O.SN=!1;O.JR=0;O.xS.stop();O.Gd.stop()}; cbB=function(O,R,J){var l=O.mediaElement,u=R.type;switch(u){case "seeking":var F=l.getCurrentTime()+O.timestampOffset;if(!O.N||O.SN&&F!==O.S){var G=!!O.N;O.N=new Jw;O.N.then(function(w){LTz(O,w)},function(){UR(O)}); if(O.videoData.isAd()){var y;d$H({adCpn:O.videoData.clientPlaybackNonce,contentCpn:(y=O.videoData.q8)!=null?y:""},R.L)}O.Iu=F;M50(O.W,l.getCurrentTime());O.seekTo(F,{seekSource:104,bK:"seektimeline_mediaElementEvent"});J&&z1x(J,F*1E3,!!G);O.SN=!0}break;case "seeked":h12(O);break;case "loadedmetadata":xE(O.LJ)||nf2(O);Hn(O);break;case "progress":Hn(O);break;case "pause":O.j=O.getCurrentTime()}O.j&&((u==="play"||u==="playing"||u==="timeupdate"||u==="progress")&&O.getCurrentTime()-O.j>10&&(O.Z("html5_enable_new_media_element_puase_jump")? (O.LJ.sZ(new MC("qoe.restart",{reason:"pauseJump"})),O.LJ.FU(),O.seekTo(O.j,{bK:"pauseJumpNewElement"})):O.seekTo(O.j,{bK:"pauseJump"})),u!=="pause"&&u!=="play"&&u!=="playing"&&u!=="progress"&&(O.j=0))}; OTz=function(O){return(TF(O.videoData)||!!O.videoData.liveUtcStartSeconds)&&(!!O.videoData.liveUtcStartSeconds||AbH(O))&&!!O.videoData.L}; AbH=function(O){return!!O.videoData.startSeconds&&isFinite(O.videoData.startSeconds)&&O.videoData.startSeconds>1E9}; WTp=function(O){var R=0,J=NaN,l="";if(!O.V)return{startSeconds:R,sP:J,source:l};O.videoData.Hq?R=O.videoData.N1:wr(O.videoData)&&(R=Infinity);if(g.XD(O.videoData))return{startSeconds:R,sP:J,source:l};O.videoData.startSeconds?(l="ss",R=O.videoData.startSeconds):O.videoData.vY&&(l="stss",R=O.videoData.vY);O.videoData.liveUtcStartSeconds&&(J=O.videoData.liveUtcStartSeconds);if(isFinite(R)&&(R>O.N5()||R O.N5()||J0?(l.onesie="0",O.handleError(new MC("html5.missingapi",l)),!1):!0}; KGx=function(O){var R=PD();po(R,O);return g.GS(R,SmL())}; uJh=function(O,R){var J,l,u,F,G,y,w,I,C,r,t,Z,V,m,E,a,v,b,W,B,z,Y,gh,l2,O_,Kx;return g.A(function(n){if(n.S==1)return R.fetchType="onesie",J=Mzs(R,O.getPlayerSize(),O.getVisibilityState()),l=new tJ(O,J),g.k(n,l.fetch(),2);u=n.L;F={player_response:u};R.loading=!1;G=O.ys.JZ;if(l.wS){y=g.N(l.wS.entries());for(w=y.next();!w.done;w=y.next())I=w.value,C=g.N(I),r=C.next().value,t=C.next().value,Z=r,V=t,G.L.set(Z,V,180),Z===R.videoId&&(m=V.TK(),R.Bv=m);G.Wi=l}E=g.N(l.oi.entries());for(a=E.next();!a.done;a= E.next())v=a.value,b=g.N(v),W=b.next().value,B=b.next().value,z=W,Y=B,G.S.set(z,Y,180);g.YI(R,F,!0);if(R.loading||Qh(R))return n.return(Promise.resolve());G.L.removeAll();G.S.removeAll();R.Bv=[];gh={};l2="onesie.response";O_=0;R.errorCode?(l2="auth",gh.ec=R.errorCode,gh.ed=R.errorDetail,gh.es=R.r$||"",O_=2):(gh.successButUnplayable="1",gh.disposed=""+ +R.jN(),gh.afmts=""+ +/adaptiveFormats/.test(u),gh.cpn=R.clientPlaybackNonce);Kx=new MC(l2,gh,O_);return n.return(Promise.reject(Kx))})}; iT2=function(O,R){var J,l,u,F,G,y,w,I,C,r,t;return g.A(function(Z){switch(Z.S){case 1:J=R.isAd(),l=!J,u=J?1:3,F=0;case 2:if(!(F0)){Z.pJ(5);break}return g.k(Z,Bh(5E3),6);case 6:G=new g.Ys("Retrying OnePlatform request",{attempt:F}),g.Aa(G);case 5:return g.N0(Z,7),g.k(Z,yNT(O,R),9);case 9:return Z.return();case 7:y=g.Tz(Z);w=kw(y);I=w.errorCode;C=O.T();r=C.Z("html5_use_network_error_code_enums")?401:"401";l&&I==="manifest.net.badstatus"&&w.details.rc===r&&(l=!1,F===u-1&&(u+= 1));if(F===u-1)return t=wrH(J,w.details),t.details.backend="op",t.details.originec=I,Z.return(Promise.reject(t));if(I==="auth"||I==="manifest.net.retryexhausted")return Z.return(Promise.reject(w));O.handleError(w);if(qC(w.severity)){Z.pJ(4);break}case 3:F++;Z.pJ(2);break;case 4:return Z.return(Promise.reject(wrH(J,{backend:"op"})))}})}; yNT=function(O,R){function J(l2){l2.readyState===2&&O.Vs("ps_c")} var l,u,F,G,y,w,I,C,r,t,Z,V,m,E,a,v,b,W,B,z,Y,gh;return g.A(function(l2){switch(l2.S){case 1:R.fetchType="gp";l=O.T();u=g.lr(l,g.pQ(R));if(!u.L){F=u.getValue();l2.pJ(2);break}return g.k(l2,u.L,3);case 3:F=l2.L;case 2:return G=F,y=KGx(G),w=Mzs(R,O.getPlayerSize(),O.getVisibilityState()),I=g.gA(IkW),C=g.pQ(R),r=(0,g.Q)(),t=!1,Z="empty",V=0,O.Vs("psns"),m={ax:J},g.k(l2,g.zO(y,w,I,void 0,m),4);case 4:E=l2.L;O.Vs("psnr");if(R.jN())return l2.return();E?"error"in E&&E.error?(t=!0,Z="esf:"+E.error.message, V=E.error.code):E.errorMetadata&&(t=!0,Z="its",V=E.errorMetadata.status):t=!0;if(t)return a=0,v=((0,g.Q)()-r).toFixed(),b={},b=l.Z("html5_use_network_error_code_enums")?{backend:"op",rc:V,rt:v,reason:Z,has_kpt:R.Jo?"1":"0",has_mdx_env:R.mdxEnvironment?"1":"0",has_omit_key_flag:g.YB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:l.pageId?"1":"0",has_token:C?"1":"0",has_vvt:R.xS?"1":"0",is_mdx:R.isMdxPlayback?"1":"0",mdx_ctrl:R.FH||"",token_eq:C===g.pQ(R)?"1":"0"}:{backend:"op", rc:""+V,rt:v,reason:Z,has_kpt:R.Jo?"1":"0",has_mdx_env:R.mdxEnvironment?"1":"0",has_omit_key_flag:g.YB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:l.pageId?"1":"0",has_token:C?"1":"0",has_vvt:R.xS?"1":"0",is_mdx:R.isMdxPlayback?"1":"0",mdx_ctrl:R.FH||"",token_eq:C===g.pQ(R)?"1":"0"},W="manifest.net.connect",V===429?(W="auth",a=2):V>200&&(W="manifest.net.badstatus",V===400&&(a=2)),l2.return(Promise.reject(new MC(W,b,a)));R.loading=!1;g.YI(R,{raw_player_response:E},!0); B=E;g.Wv(R.T())&&B&&B.trackingParams&&PU(B.trackingParams);if(R.errorCode)return z={ec:R.errorCode,ed:R.errorDetail,es:R.r$||""},l2.return(Promise.reject(new MC("auth",z,2)));if(!R.loading&&!Qh(R))return Y=R.isAd()?"auth":"manifest.net.retryexhausted",gh=R.isAd()?2:1,l2.return(Promise.reject(new MC(Y,{successButUnplayable:"1",hasMedia:g.EI(R)?"1":"0"},gh)));g.ST(l2)}})}; gxx=function(O,R,J){function l(V){V=kw(V);if(qC(V.severity))return Promise.reject(V);O.handleError(V);return!1} function u(){return!0} var F,G,y,w,I,C,r,t,Z;return g.A(function(V){switch(V.S){case 1:var m=O.T();O.getPlayerSize();O.getVisibilityState();O.isFullscreen();if(R.partnerId===38&&m.playerStyle==="books")m=R.videoId.indexOf(":"),m=g.s9("//play.google.com/books/volumes/"+R.videoId.slice(0,m)+"/content/media",{aid:R.videoId.slice(m+1),sig:R.IZd});else if(R.partnerId===30&&m.playerStyle==="docs")m=g.s9("https://docs.google.com/get_video_info",{docid:R.videoId,authuser:R.H1,authkey:R.FXS,eurl:m.zJ});else if(R.partnerId===33&& m.playerStyle==="google-live")m=g.s9("//google-liveplayer.appspot.com/get_video_info",{key:R.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+m.SN);F=m;y=(G=R.isAd())?1:3;w=0;case 2:if(!(w0)){V.pJ(5);break}return g.k(V,Bh(5E3),6);case 6:C={playerretry:w,playerretrysrc:J},G||(C.recover="embedded"),I=ul(F,C);case 5:return g.k(V,CT_(R,I).then(u,l),7);case 7:if(r=V.L)return V.return();w++;V.pJ(2);break;case 4:t=G?"auth":"manifest.net.retryexhausted";Z= G?2:1;if(!G&&Math.random()<1E-4)try{g.Aa(new g.Ys("b/152131571",btoa(F)))}catch(E){}return V.return(Promise.reject(new MC(t,{backend:"gvi"},Z)))}})}; CT_=function(O,R){function J(E){return l(E.xhr)} function l(E){if(!O.jN()){E=E?E.status:-1;var a=0,v=((0,g.Q)()-C).toFixed();v=u.Z("html5_use_network_error_code_enums")?{backend:"gvi",rc:E,rt:v}:{backend:"gvi",rc:""+E,rt:v};var b="manifest.net.connect";E===429?(b="auth",a=2):E>200&&(b="manifest.net.badstatus",E===400&&(a=2));return Promise.reject(new MC(b,v,a))}} var u,F,G,y,w,I,C,r,t,Z,V,m;return g.A(function(E){if(E.S==1){O.fetchType="gvi";u=O.T();var a={};O.fR&&(a.ytrext=O.fR);(y=g.nt(a)?void 0:a)?(F={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:y},G=ul(R,{action_display_post:1})):(F={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},G=R);w={};u.sendVisitorIdHeader&&O.visitorData&&(w["X-Goog-Visitor-Id"]=O.visitorData);(I=gm(u.experiments,"debug_sherlog_username"))&&(w["X-Youtube-Sherlog-Username"]=I);Object.keys(w).length> 0&&(F.headers=w);C=(0,g.Q)();return g.k(E,ZQ(T3,G,F).then(void 0,J),2)}r=E.L;if(!r||!r.responseText)return E.return(l(r));O.loading=!1;t=JF(r.responseText);g.YI(O,t,!0);if(O.errorCode)return Z={ec:O.errorCode,ed:O.errorDetail,es:O.r$||""},E.return(Promise.reject(new MC("auth",Z,2)));if(!O.loading&&!Qh(O))return V=O.isAd()?"auth":"manifest.net.retryexhausted",m=O.isAd()?2:1,E.return(Promise.reject(new MC(V,{successButUnplayable:"1"},m)));g.ST(E)})}; wrH=function(O,R){return new MC(O?"auth":"manifest.net.retryexhausted",R,O?2:1)}; zE=function(O,R,J){J=J===void 0?!1:J;var l,u,F,G;g.A(function(y){if(y.S==1){l=O.T();if(J&&(!g.cv(l)||W$(R)!=="embedded")||R.tO||W$(R)!=="adunit"&&(g.$T(l)||xX(l)||g.p9(l)||g.Aj(l)||RZ(l)==="WEB_CREATOR"))return y.return();u=g.lr(l,g.pQ(R));return u.L?g.k(y,u.L,3):(F=u.getValue(),y.pJ(2))}y.S!=2&&(F=y.L);G=F;return y.return(rN2(O,R,G))})}; rN2=function(O,R,J){var l,u,F,G,y;return g.A(function(w){if(w.S==1){g.N0(w,2);l=KGx(J);var I=R.T();g.Hf();var C={context:g.uR(R),videoId:R.videoId,racyCheckOk:R.racyCheckOk,contentCheckOk:R.contentCheckOk,autonavState:"STATE_NONE"};W$(R)==="adunit"&&(C.isAdPlayback=!0);I.embedConfig&&(C.serializedThirdPartyEmbedConfig=I.embedConfig);I.ZT&&(C.showContentOwnerOnly=!0);R.XP&&(C.showShortsOnly=!0);g.xs(0,141)&&(C.autonavState=g.xs(0,140)?"STATE_OFF":"STATE_ON");if(g.zj(I)){var r=g.xs(0,65);r=r!=null? !r:!1;var t=!!g.Wf("yt-player-sticky-caption");C.captionsRequested=r&&t}var Z;if(I=(Z=I.getWebPlayerContextConfig())==null?void 0:Z.encryptedHostFlags)C.playbackContext={encryptedHostFlags:I};u=C;F=g.gA(tKL);O.Vs("wn_s");return g.k(w,g.zO(l,u,F),4)}if(w.S!=2)return G=w.L,O.Vs("wn_r"),!G||"error"in G&&G.error||(y=G,g.Wv(R.T())&&y.trackingParams&&PU(y.trackingParams),g.YI(R,{raw_watch_next_response:G},!1)),g.as(w,0);g.Tz(w);g.ST(w)})}; oxp=function(O){O.Vs("vir");O.Vs("ps_s");Y3("vir",void 0,"video_to_ad");var R=GsT(O);R.then(function(){O.Vs("virc");Y3("virc",void 0,"video_to_ad");O.Vs("ps_r");Y3("ps_r",void 0,"video_to_ad")},function(){O.Vs("virc"); Y3("virc",void 0,"video_to_ad")}); return R}; g.Ot=function(O,R,J,l,u,F,G,y,w,I){w=w===void 0?new g.jN(O):w;I=I===void 0?!0:I;g.y8.call(this);var C=this;this.Ru=O;this.playerType=R;this.N9=J;this.yU=l;this.getVisibilityState=F;this.visibility=G;this.ys=y;this.videoData=w;this.bQ=I;this.logger=new g.l9("VideoPlayer");this.VI=null;this.A$=new OR;this.cA=null;this.Tl=!0;this.EQ=this.loader=null;this.V2=[];this.JP=new hm;this.l0=this.HB=null;this.aY=new hm;this.hm=null;this.oM=this.iA=!1;this.pM=NaN;this.PN=!1;this.playerState=new g.GP;this.qO=[]; this.V9=new g.p8;this.BP=new Cn0(this);this.mediaElement=null;this.Kz=new g.zR(this.u5J,15E3,this);this.Cn=this.rH=!1;this.jb=NaN;this.AV=!1;this.ih=0;this.cO=!1;this.CQ=NaN;this.D9=new Ln(new Map([["bufferhealth",function(){return HV2(C.Qs)}], ["bandwidth",function(){return C.cG()}], ["networkactivity",function(){return C.Ru.schedule.OQ}], ["livelatency",function(){return C.isAtLiveHead()&&C.isPlaying()?ZTT(C):NaN}], ["rawlivelatency",function(){return ZTT(C)}]])); this.bN=0;this.loop=!1;this.playbackRate=1;this.GL=0;this.Qs=new bV0(this);this.C6=!1;this.Y$=[];this.IA=this.cN=0;this.ze=this.RO=!1;this.DL=this.L_=0;this.oQ=new g.zR(this.Is,0,this);this.YH=this.x9=null;this.pyJ=[this.V9,this.oQ,this.Kz,this.D9];this.AJ=this.Bz=null;this.RF=function(){var r=C.ZA();r.provider.Ru.jR||r.provider.LJ.getVisibilityState()===3||(r.provider.Ru.jR=!0);r.T4();if(r.S){var t=r.S;t.D&&t.L<0&&t.provider.LJ.getVisibilityState()!==3&&U6s(t)}r.qoe&&(r=r.qoe,r.Td&&r.B<0&&r.provider.Ru.jR&& SRx(r),r.N&&I$(r));C.loader&&nn(C);C.Ru.vu&&!C.videoData.backgroundable&&C.mediaElement&&!C.oF()&&(C.isBackground()&&C.mediaElement.BS()?(C.nJ("bgmobile",{suspend:1}),C.z_(!0,!0)):C.isBackground()||cn(C)&&C.nJ("bgmobile",{resume:1}))}; this.nG={Ei:function(r){C.Ei(r)}, dph:function(r){C.VI=r}, C$Q:function(){return C.h$}, vO:function(){return C.pX}, QV:function(){return C.EQ}, hnN:function(){return C.hX}, pAJ:function(){return C.N3}, LtQ:function(){}, T:function(){return C.Ru}, FK:function(){return C.mediaElement}, nng:function(r){C.JL(r)}, idJ:function(){return C.yU}}; this.logger.debug(function(){return"creating, type "+R}); this.Ym=new V5p(this.Ru);this.m9=new Jm(this.Ru,this.yU,this);this.LD=new g.Mv(this,function(r,t){r!==g.Gh("endcr")||g.d(C.playerState,32)||C.Om();u(r,t,C.playerType)},function(r,t){g.dy(C.videoData)&&C.nJ(r,t)}); g.H(this,this.LD);g.H(this,this.Qs);VKh(this,w);this.videoData.subscribe("dataupdated",this.B2h,this);this.videoData.subscribe("dataloaded",this.EW,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.nJ,this);this.videoData.subscribe("ctmpstr",this.rT,this);this.RP();wA0(this.RF);this.visibility.subscribe("visibilitystatechange",this.RF);this.hX=new g.zR(this.Lw,g.tB(this.Ru.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.N3= new g.zR(this.Lw,g.tB(this.Ru.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.NB=new g.RP(this.pg,g.tB(this.Ru.experiments,"html5_progress_event_throttle_ms")||350,this);g.H(this,this.NB)}; VKh=function(O,R){if(O.playerType===2||O.Ru.l7)R.Xt=!0;var J=Hqp(R.d5,R.W8,O.Ru.N,O.Ru.V);J&&(R.adFormat=J);O.playerType===2&&(R.kq=!0);if(O.isFullscreen()||O.Ru.N)J=g.Wf("yt-player-autonavstate"),R.autonavState=J||(O.Ru.N?2:O.videoData.autonavState);R.endSeconds&&R.endSeconds>R.startSeconds&&jo(O,R.endSeconds)}; fk_=function(O){Jb2(O.h$);g.rd(O.h$);for(var R=O.pX,J=g.N(R.L.values()),l=J.next();!l.done;l=J.next())Jb2(l.value);R.L.clear();g.rd(O.pX)}; S6T=function(O){var R=O.videoData;oxp(O).then(void 0,function(J){O.videoData!==R||R.jN()||(J=kw(J),J.errorCode==="auth"&&O.videoData.errorDetail?O.Qk(J.errorCode,2,unescape(O.videoData.errorReason),$w(J.details),O.videoData.errorDetail,O.videoData.r$||void 0):O.handleError(J))})}; Exs=function(O){if(!g.d(O.playerState,128))if(O.videoData.isLoaded(),O.logger.debug("finished loading playback data"),O.V2=g.m4(O.videoData.OQ),g.EI(O.videoData)){O.N9.tick("bpd_s");RR(O).then(function(){O.N9.tick("bpd_c");if(!O.jN()){O.iA&&(O.H3(wc(wc(O.playerState,512),1)),cn(O));var l=O.videoData;l.endSeconds&&l.endSeconds>l.startSeconds&&jo(O,l.endSeconds);O.JP.finished=!0;Jb(O,"dataloaded");O.aY.pH()&&N5s(O);x6_(O.m9,O.l0)}}); O.Z("html5_log_media_perf_info")&&O.nJ("loudness",{v:O.videoData.zW.toFixed(3)},!0);var R,J=(R=O.mediaElement)==null?void 0:R.u5();if(J&&"disablePictureInPicture"in J&&O.Ru.HI)try{J.disablePictureInPicture=O.Ru.sO&&!O.videoData.backgroundable}catch(l){g.Aa(l)}mKL(O)}else Jb(O,"dataloaded")}; RR=function(O){gR(O);O.l0=null;var R=StL(O.Ru,O.videoData,O.oF());O.HB=R;O.HB.then(function(J){DKA(O,J)},function(J){O.jN()||(J=kw(J),O.visibility.isBackground()?(iA(O,"vp_none_avail"),O.HB=null,O.JP.reset()):(O.JP.finished=!0,O.Qk(J.errorCode,J.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",$w(J.details))))}); return R}; DKA=function(O,R){if(!O.jN()&&!R.videoData.jN()){O.logger.debug("finished building playback data");O.l0=R;e1s(O.Qs,O.l0);if(O.videoData.isLivePlayback){var J=akh(O.ys.JZ,O.videoData.videoId)||O.loader&&!isNaN(O.loader.OQ);J=O.Z("html5_onesie_live")&&J;xE(O)||O.videoData.w5>0&&!IN(O.videoData)||J||O.seekTo(O.N5(),{bK:"videoplayer_playbackData",seekSource:18})}if(O.videoData.B.L){if(fs_(O.videoData)){O.Z("html5_sabr_report_missing_url_as_error_terminal")?O.Qk("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", $w({missabrurl:1})):O.handleError(new MC("fmt.missing",{missabrurl:"1"},2));return}O.loader?g.Aa(Error("Duplicated Loader")):(J=g.tB(O.Ru.experiments,"html5_onesie_defer_content_loader_ms"))&&O.oo()&&akh(O.ys.JZ,O.videoData.c3Q)?g.tF(function(){O.jN()||O.loader||vx2(O)},J):vx2(O)}else!O.videoData.B.L&&UI(O.videoData)&&O.Kj(new CF(O.videoData.videoId||"",4)); O.Y4();WDs(R).then(function(){var l={};O.IT(l);O.Ru.DA()&&O.Z("html5_log_media_perf_info")&&O.nJ("av1Info",l);nn(O)})}}; N5s=function(O){O.jN();O.logger.debug("try finish readying playback");if(O.aY.finished)O.logger.debug("already finished readying");else if(O.JP.finished)if(g.d(O.playerState,128))O.logger.debug("cannot finish readying because of error");else if(O.V2.length)O.logger.debug(function(){return"cannot finish readying because of pending preroll: "+O.V2}); else if(O.LD.started||t50(O.LD),O.QE())O.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{O.loader&&(O.oM=qNB(O.loader.timing));O.aY.finished||(O.aY.finished=!0);var R=O.Z("html5_onesie_live")&&O.loader&&!isNaN(O.loader.OQ);!O.videoData.isLivePlayback||O.videoData.w5>0&&!IN(O.videoData)||R||xE(O)||(O.logger.debug("seek to head for live"),O.seekTo(Infinity,{bK:"videoplayer_readying",seekSource:18}),O.isBackground()&&(O.Cn=!0));nE_(O.ZA());O.logger.debug("finished readying playback"); O.publish("playbackready");Q0("pl_c",O.N9.timerName)||(O.N9.tick("pl_c"),Y3("pl_c",void 0,"video_to_ad"));Q0("pbr",O.N9.timerName)||(O.N9.tick("pbr"),Y3("pbr",void 0,"video_to_ad"))}else O.logger.debug("playback data not loaded")}; jo=function(O,R){O.cA&&Xrs(O);O.cA=new g.uN(R*1E3,0x7ffffffffffff);O.cA.namespace="endcr";O.addCueRange(O.cA)}; Xrs=function(O){O.removeCueRange(O.cA);O.cA=null}; T5A=function(O,R,J,l,u){var F=O.ZA(u),G=g.dy(O.videoData)?F.getVideoData():O.videoData;G.S=J;var y=g.lA(O);J=new aa2(G,J,R,y?y.itag:"",l);O.Ru.experiments.Vh("html5_refactor_sabr_video_format_selection_logging")?(J.videoId=u,O.AJ=J):F.qoe&&FkA(F.qoe,J);u=O.m9;u.S=0;u.L=0;O.publish("internalvideoformatchange",G,R==="m")}; g.lA=function(O){var R=uA(O);return tC(R)||!O.l0?null:g.rC(O.l0.L.videoInfos,function(J){return R.N(J)})}; uA=function(O){if(O.l0){var R=O.m9;var J=O.l0;O=O.Lz();var l=T_s(R);if(tC(l)){if(l=vhz(R,J).compose(kK2(R,J)).compose(bvA(R,J)).compose(B_s(R,J.videoData)).compose(Hvf(R,J.videoData,J)).compose(ik(R,J)).compose(MvH(R,J)),tC(O)||R.Z("html5_apply_pbr_cap_for_drm"))l=l.compose(qps(R,J))}else R.Z("html5_perf_cap_override_sticky")&&(l=l.compose(ik(R,J))),R.Z("html5_ustreamer_cap_override_sticky")&&(l=l.compose(qps(R,J)));l=l.compose(MvH(R,J));R=J.videoData.UC.compose(l).compose(J.videoData.ZF).compose(O)}else R= UE;return R}; d_L=function(O){var R=O.m9;O=O.videoData;var J=B_s(R,O);R.Z("html5_disable_client_autonav_cap_for_onesie")||J.compose(Hvf(R,O));return J}; nn=function(O){if(O.videoData.B&&O.videoData.B.L){var R=uA(O);O.loader&&AdT(O.loader,R)}}; $KW=function(O){var R;return!!(O.Z("html5_native_audio_track_switching")&&g.N$&&((R=O.videoData.S)==null?0:J1(R)))}; MKA=function(O){if(!$KW(O))return!1;var R;O=(R=O.mediaElement)==null?void 0:R.audioTracks();return!!(O&&O.length>1)}; ks0=function(O){var R=q62(O);if(R)return L4B(O.videoData.getAvailableAudioTracks().find(function(J){return J.Ef.getName()===R}))}; q62=function(O){var R;if(O=(R=O.mediaElement)==null?void 0:R.audioTracks())for(R=0;R0&&(R.lc=l.Fy));R.E0=l.Ra;R.qe=pp(J,{},l.B||void 0,u1(l));R.AR=l1(l)&&g.p9(J);FD(l)&&(R.CG=!0,J.Z("html5_sabr_report_partial_segment_estimated_duration")&& (R.pp=!0),R.L=!0,R.XW=J.Z("html5_sabr_enable_live_clock_offset"),R.Gm=J.Z("html5_disable_client_resume_policy_for_sabr"),R.xi=J.Z("html5_trigger_loader_when_idle_network"),R.AA=J.Z("html5_sabr_parse_live_metadata_playback_boundaries"),R.fh=J.Z("html5_enable_platform_backpressure_with_sabr"),R.iZ=J.Z("html5_consume_onesie_next_request_policy_for_sabr"),R.N2=J.Z("html5_sabr_report_next_ad_break_time"),R.x4=J.Z("html5_log_high_res_buffer_timeline")&&J.DA(),R.iy=J.Z("html5_remove_stuck_slices_beyond_max_buffer_limits"), R.Ff=J.Z("html5_gapless_sabr_btl_last_slice")&&i1(l),R.Xn=J.Z("html5_reset_last_appended_slice_on_seek")&&i1(l),IN(l)?(R.Bi=!0,R.Hz=J.Z("html5_estimate_partial_segment_duration"),R.Uk=J.Z("html5_disable_variability_tracker_for_live"),R.Gd=J.Z("html5_sabr_use_accurate_slice_info_params"),J.Z("html5_simplified_backup_timeout_sabr_live")&&(R.WQ=!0,R.jR=R.X9)):R.mM=J.Z("html5_probe_request_on_sabr_request_progress"),R.Fn=J.Z("html5_serve_start_seconds_seek_for_post_live_sabr"),R.vY=J.Z("html5_flush_index_on_updated_timestamp_offset"), R.W=rMf(l),R.Wn=J.Z("html5_ignore_partial_segment_from_live_readahead"),R.wy=J.Z("html5_use_buffer_health_for_readahead"),R.tI=J.Z("html5_use_non_active_broadcast_for_post_live"),R.N1=J.Z("html5_use_centralized_player_time"),R.nD=J.Z("html5_consume_onesie_sabr_seek"),R.Hq=J.Z("html5_enable_sabr_seek_loader_refactor"),R.Ly=J.Z("html5_update_segment_start_time_from_media_header"),l.enableServerStitchedDai&&(R.B=!0,R.B8=J.Z("html5_reset_server_stitch_state_for_non_sabr_seek"),R.uy=J.Z("html5_remove_ssdai_append_pause")&& !l.Zv(),R.eR=J.Z("html5_ssdai_log_ssevt_in_loader")),R.D2=J.DA()||l.Zv());R.D=R.L&&J.Z("html5_sabr_live");R.sQ=g.Z42(l);$O(J.D,ML.BITRATE)&&(R.Wq=NaN);if(y=g.tB(J.experiments,"html5_request_size_max_kb"))R.Iu=y*1024;J.D.B?R.pD="; "+ML.EXPERIMENTAL.name+"=allowed":J.Z("html5_enable_cobalt_tunnel_mode")&&(R.pD="; tunnelmode=true");y=l.serverPlaybackStartConfig;(y==null?0:y.enable)&&(y==null?0:y.playbackStartPolicy)&&(R.cM=!0,tjT(R,y.playbackStartPolicy,2));y=sMW(O);O.A$.removeAll();a:{J=O.ys.JZ;if(l= O.videoData.videoId)if(u=J.L.get(l)){J.L.remove(l);J=u;break a}J=void 0}O.loader=new g.Da(O,O.Ru.schedule,R,O.videoData.L,O.videoData.B,uA(O),y,O.videoData.enableServerStitchedDai,J,O.videoData.SN);R=O.videoData.Z("html5_disable_preload_for_ssdai_with_preroll")&&O.videoData.isLivePlayback&&O.oo()?!0:O.iA&&g.$T(O.Ru)&&O.videoData.isLivePlayback;O.loader.initialize(O.getCurrentTime(),uA(O),R);O.videoData.probeUrl&&(O.loader.AR=O.videoData.probeUrl);if(O.V2.length||O.iA)O.videoData.cotn||Fa(O,!1);po0(O.Qs, O.loader);O.x9&&(l90(O.loader,new g.XY(O.x9)),O.nJ("sdai",{sdl:1}));O.YH&&(O.loader.B7(O.YH),O.Qs.V=!1);g.LQ(O.videoData)&&(O=O.loader,O.policy.hD=O.policy.VZ)}; gR=function(O){O.loader&&(O.loader.dispose(),O.loader=null,po0(O.Qs,null));O.wR()?bT_(O):O.Mi()}; bT_=function(O){if(O.EQ)if(O.logger.debug("release media source"),O.o0(),O.EQ.D)try{O.Ru.DA()&&O.nJ("rms",{l:"vprms",sr:O.wR(),rs:OJ(O.EQ)});O.EQ.clear();var R;(R=O.mediaElement)!=null&&(R.S=O.EQ);O.EQ=null}catch(J){R=new g.Ys("Error while clearing Media Source in VideoPlayer: "+J.name+", "+J.message),R=kw(R),O.handleError(R),O.Mi()}else O.Mi()}; WGs=function(O,R){R=R===void 0?!1:R;if(O.EQ)return O.EQ.B;O.logger.debug("update media source");a:{R=R===void 0?!1:R;try{g.Q3()&&O.videoData.eM()&&$tL(O.mediaElement);var J=O.mediaElement.QV(O.L8(),O.Rb())}catch(u){if(Vvx(O.BP,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",u);O.Qk("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}O.iR(J,!1,!1,R)}var l;return((l=O.QV())==null?void 0:l.B)||null}; ANs=function(O,R){R=R===void 0?!1:R;if(O.loader){O.videoData.enableServerStitchedDai&&CRs(O.loader);var J=O.getCurrentTime()-O.Vd();O.loader.seek(J,{Yu:R}).cn(function(){})}else vx2(O)}; PT2=function(O,R,J,l){J=J===void 0?!1:J;l=l===void 0?!1:l;if(O.EQ&&(!R||O.EQ===R)){O.logger.debug("media source opened");var u=O.getDuration();!u&&IN(O.videoData)&&(u=25200);if(O.EQ.isView){var F=u;O.logger.debug(function(){return"Set media source duration to "+F+", video duration "+u}); F>O.EQ.getDuration()&&edH(O,F)}else edH(O,u);sNB(O.loader,O.EQ,J,l);O.publish("mediasourceattached")}}; edH=function(O,R){if(O.EQ){O.EQ.SA(R);var J;(J=O.loader)!=null&&J.policy.N1&&(J.j=R)}}; P12=function(O,R){T5A(O,R.reason,R.L.info,R.token,R.videoId)}; Jb=function(O,R){O.publish("internalvideodatachange",R===void 0?"dataupdated":R,O.videoData)}; prT=function(O){var R="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");O.Z("html5_remove_progress_event_listener")||(R.push("progress"),R.push("suspend"));R=g.N(R);for(var J=R.next();!J.done;J=R.next())O.V9.U(O.mediaElement,J.value,O.JL,O);O.Ru.F_&&O.mediaElement.W7()&&(O.V9.U(O.mediaElement,"webkitplaybacktargetavailabilitychanged",O.XyN,O),O.V9.U(O.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",O.vHd, O))}; HTB=function(O){g.V3(O.pM);B5H(O)||(O.pM=g.o9(function(){return B5H(O)},100))}; B5H=function(O){var R=O.mediaElement;R&&O.rH&&!O.videoData.iz&&!Q0("vfp",O.N9.timerName)&&R.n$()>=2&&!R.isEnded()&&t1(R.cH())&&O.N9.tick("vfp");return(R=O.mediaElement)&&!O.videoData.iz&&R.getDuration()>0&&(R.isPaused()&&R.n$()>=2&&t1(R.cH())&&(Q0("pbp",O.N9.timerName)||O.N9.tick("pbp"),!O.videoData.sO||O.PN||R.isSeeking()||(O.PN=!0,O.publish("onPlaybackPauseAtStart"))),R=R.getCurrentTime(),qv(O.Ym,R))?(O.GX(),!0):!1}; UK2=function(O){O.ZA().aF();if(wr(O.videoData)&&Date.now()>O.GL+6283){if(!(!O.isAtLiveHead()||O.videoData.L&&XS(O.videoData.L))){var R=O.ZA();if(R.qoe){R=R.qoe;var J=R.provider.LJ.Zt(),l=g.vA(R.provider);I8A(R,l,J);J=J.B;isNaN(J)||g.Kn(R,l,"e2el",[J.toFixed(3)])}}O.Z("html5_alc_live_log_rawlat")?(R=O.videoData,R=g.XV(R.T())?!0:g.dm(R.T())?R.drmProduct==="6":!1):R=g.XV(O.Ru);R&&O.nJ("rawlat",{l:dT(O.D9,"rawlivelatency").toFixed(3)});O.GL=Date.now()}O.videoData.S&&J1(O.videoData.S)&&(R=O.LH())&&R.videoHeight!== O.IA&&(O.IA=R.videoHeight,T5A(O,"a",xKf(O,O.videoData.KJ)))}; xKf=function(O,R){if(R.L.video.quality==="auto"&&J1(R.getInfo())&&O.videoData.m1)for(var J=g.N(O.videoData.m1),l=J.next();!l.done;l=J.next())if(l=l.value,l.getHeight()===O.IA&&l.L.video.quality!=="auto")return l.getInfo();return R.getInfo()}; ZTT=function(O){if(!wr(O.videoData))return NaN;var R=0;O.loader&&O.videoData.L&&(R=IN(O.videoData)?O.loader.yN.s_()||0:O.videoData.L.iz);return(0,g.Q)()/1E3-O.yI()-R}; QMT=function(O){O.mediaElement&&O.mediaElement.oF()&&(O.CQ=(0,g.Q)());O.Ru.yl?g.tF(function(){jMp(O)},0):jMp(O)}; jMp=function(O){var R;if((R=O.EQ)==null||!R.DY()){if(O.mediaElement)try{O.hm=O.mediaElement.playVideo()}catch(l){iA(O,"err."+l)}if(O.hm){var J=O.hm;J.then(void 0,function(l){O.logger.debug(function(){return"playMediaElement failed: "+l}); if(!g.d(O.playerState,4)&&!g.d(O.playerState,256)&&O.hm===J)if(l&&l.name==="AbortError"&&l.message&&l.message.includes("load"))O.logger.debug(function(){return"ignore play media element failure: "+l.message}); else{var u="promise";l&&l.name&&(u+=";m."+l.name);iA(O,u);O.C6=!0;O.videoData.DZ=!0}})}}}; iA=function(O,R){g.d(O.playerState,128)||(O.H3(CX(O.playerState,1028,9)),O.nJ("dompaused",{r:R}),O.publish("onAutoplayBlocked"))}; cn=function(O,R){R=R===void 0?!1:R;if(!O.mediaElement||!O.videoData.B)return!1;var J=R;J=J===void 0?!1:J;var l=null;var u;if((u=O.videoData.B)==null?0:u.L){l=WGs(O,J);var F;(F=O.loader)==null||F.resume()}else gR(O),O.videoData.KJ&&(l=O.videoData.KJ.dk());u=O.mediaElement.BS();J=!1;u&&u.equals(l)||(LGf(O,l),J=!0);g.d(O.playerState,2)||(l=O.Qs,R=R===void 0?!1:R,l.D||!(l.B>0)||l.mediaElement&&l.mediaElement.getCurrentTime()>0||(R={bK:"seektimeline_resumeTime",Yu:R},l.videoData.iz||(R.seekSource=15), l.seekTo(l.B,R)));a:{R=J;if(FD(O.videoData)){if(!O.videoData.lC())break a}else if(!g.fQ(O.videoData))break a;if(O.mediaElement)if((l=O.videoData.D)&&O.mediaElement.W7()){u=g.e(O.mediaElement.u5());if(O.VI)if(u!==O.VI.element)G0(O);else if(R&&l.flavor==="fairplay"&&!L_())G0(O);else break a;if(O.Z("html5_report_error_for_unsupported_tvos_widevine")&&L_()&&l.flavor==="widevine")O.Qk("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{O.VI=new JJf(u,O.videoData,O.Ru); O.VI.subscribe("licenseerror",O.Tj,O);O.VI.subscribe("qualitychange",O.bGu,O);O.VI.subscribe("heartbeatparams",O.Yf,O);O.VI.subscribe("keystatuseschange",O.Ei,O);O.VI.subscribe("ctmp",O.nJ,O);R=g.N(O.A$.keys);for(l=R.next();!l.done;l=R.next())l=O.A$.get(l.value),O.VI.hC(l);O.Z("html5_eme_loader_sync")||O.A$.removeAll()}}else O.Qk("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return J}; LGf=function(O,R){O.N9.tick("vta");Y3("vta",void 0,"video_to_ad");O.getCurrentTime()>0&&UT_(O.Qs,O.getCurrentTime());O.mediaElement.activate(R);O.EQ&&gj(4);!O.videoData.iz&&O.playerState.isOrWillBePlaying()&&O.Kz.start();if($KW(O)){var J;if(R=(J=O.mediaElement)==null?void 0:J.audioTracks())R.onchange=function(){O.publish("internalaudioformatchange",O.videoData,!0)}}}; G0=function(O){O.VI&&(O.VI.dispose(),O.VI=null)}; Y6W=function(O){var R=R===void 0?!1:R;O.logger.debug("reattachVideoSource");O.mediaElement&&(O.EQ?(G0(O),O.Mi(),WGs(O,R)):(O.videoData.KJ&&O.videoData.KJ.We(),O.mediaElement.stopVideo()),O.playVideo())}; dKz=function(O,R){O.Ru.Z("html5_log_rebuffer_reason")&&(R={r:R,lact:TT()},O.mediaElement&&(R.bh=ly(O.mediaElement)),O.nJ("bufreason",R))}; hdf=function(O,R){if(O.Ru.DA()&&O.mediaElement){var J=O.mediaElement.sf();J.omt=(O.mediaElement.getCurrentTime()+O.Vd()).toFixed(3);J.ps=O.playerState.state.toString(16);J.rt=(XX(O.ZA())*1E3).toFixed();J.e=R;O.Y$[O.cN++%5]=J}try{if(R==="timeupdate"||R==="progress")return}catch(l){}O.logger.debug(function(){return"video element event "+R})}; zdT=function(O){if(O.Ru.DA()){O.Y$.sort(function(l,u){return+l.rt-+u.rt}); for(var R=g.N(O.Y$),J=R.next();!J.done;J=R.next())J=J.value,O.nJ("vpe",Object.assign({t:J.rt},J));O.Y$=[];O.cN=0}}; nx0=function(O){if(g.UU("cobalt")&&g.UU("nintendo switch")){var R=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;O.nJ("nxdock",{d:R})}}; Fa=function(O,R){var J;(J=O.loader)==null||aF(J,R)}; mKL=function(O){dr(O.videoData,"html5_set_debugging_opt_in")&&(O=g.Hf(),g.xs(0,183)||(jm(183,!0),O.save()))}; cNz=function(O){return g.dy(O.videoData)&&O.YH?KV(O.YH):O.videoData.N5()}; r0W=function(O,R){O.ys.uS()||(O.nJ("sgap",{f:R}),O.ys.clearQueue(!1,R==="pe"))}; xE=function(O){return O.Z("html5_disable_video_player_initiated_seeks")&&FD(O.videoData)}; Ocz=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);Ge(this.api,"isLifaAdPlaying",function(){return R.api.isLifaAdPlaying()}); this.events.U(O,"serverstitchedvideochange",function(){var J;(J=R.api.getVideoData())!=null&&J.Zv()&&(R.api.isLifaAdPlaying()?(R.playbackRate=R.api.getPlaybackRate(),R.api.setPlaybackRate(1)):R.api.setPlaybackRate(R.playbackRate))}); this.playbackRate=1}; RhL=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);Ge(this.api,"seekToChapterWithAnimation",function(J){R.seekToChapterWithAnimation(J)}); Ge(this.api,"seekToTimeWithAnimation",function(J,l){R.seekToTimeWithAnimation(J,l)}); Ge(this.api,"renderChapterSeekingAnimation",function(J,l,u){R.api.renderChapterSeekingAnimation(J,l,u)}); Ge(this.api,"setMacroMarkers",function(J){R.setMacroMarkers(O,J)}); Ge(this.api,"changeMarkerVisibility",function(J,l,u){R.changeMarkerVisibility(J,l,u)}); Ge(this.api,"isSameMarkerTypeVisible",function(J){return R.isSameMarkerTypeVisible(J)})}; JIz=function(O,R,J){var l=O.api.getCurrentTime()*1E30&&u>0&&(J.width+=u,g.pS(R.element,"width",J.width+"px")));O.size=J}}; g.aR=function(O,R){var J=O.L[O.L.length-1];J!==R&&(O.L.push(R),Ta2(O,J,R))}; g.vo=function(O){if(!(O.L.length<=1)){var R=O.L.pop(),J=O.L[0];O.L=[J];Ta2(O,R,J,!0)}}; Ta2=function(O,R,J,l){$Wf(O);R&&(R.unsubscribe("size-change",O.VU,O),R.unsubscribe("back",O.St,O));J.subscribe("size-change",O.VU,O);J.subscribe("back",O.St,O);if(O.ou){g.F8(J.element,l?"ytp-panel-animate-back":"ytp-panel-animate-forward");J.hR(O.element);J.focus();O.element.scrollLeft=0;O.element.scrollTop=0;var u=O.size;XaH(O);g.hH(O.element,u);O.j=new g.zR(function(){Mtf(O,R,J,l)},20,O); O.j.start()}else J.hR(O.element),R&&R.detach()}; Mtf=function(O,R,J,l){O.j.dispose();O.j=null;g.F8(O.element,"ytp-popup-animating");l?(g.F8(R.element,"ytp-panel-animate-forward"),g.KM(J.element,"ytp-panel-animate-back")):(g.F8(R.element,"ytp-panel-animate-back"),g.KM(J.element,"ytp-panel-animate-forward"));g.hH(O.element,O.size);O.J=new g.zR(function(){g.KM(O.element,"ytp-popup-animating");R.detach();g.yF(R.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);O.J.dispose();O.J=null},250,O); O.J.start()}; $Wf=function(O){O.j&&g.cJ(O.j);O.J&&g.cJ(O.J)}; Xa=function(O){g.Dn.call(this,O,"ytp-shopping-product-menu");this.PY=new g.mT(this.X);g.H(this,this.PY);this.hide();g.aR(this,this.PY);g.bR(this.X,this.element,4)}; ku2=function(O,R,J){var l,u=R==null?void 0:(l=R.text)==null?void 0:l.simpleText;u&&(J=qzp(O,J,u,R==null?void 0:R.icon,R==null?void 0:R.secondaryIcon),R.navigationEndpoint&&J.listen("click",function(){O.X.tR("innertubeCommand",R.navigationEndpoint);O.hide()},O))}; sOL=function(O,R,J){var l,u=R==null?void 0:(l=R.text)==null?void 0:l.simpleText;u&&qzp(O,J,u,R==null?void 0:R.icon).listen("click",function(){var F;(R==null?void 0:(F=R.icon)==null?void 0:F.iconType)==="HIDE"?O.X.publish("featuredproductdismissed"):R.serviceEndpoint&&O.X.tR("innertubeCommand",R.serviceEndpoint);O.hide()},O)}; qzp=function(O,R,J,l,u){R=new g.Lo(g.Ye({},[],!1,!!u),R,J);u&&R.updateValue("secondaryIcon",bcH(u));R.setIcon(bcH(l));g.H(O,R);O.PY.jr(R,!0);return R}; bcH=function(O){if(!O)return null;switch(O.iconType){case "ACCOUNT_CIRCLE":return{Y:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"path",C:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{Y:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"path",C:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return rSp();case "HIDE":return{Y:"svg",C:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"g",K:[{Y:"path",C:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return XG()}}; T0=function(O){S5.call(this,O,!1,!0);this.isCounterfactual=this.S=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.V=!0;this.overflowButton=new g.L({Y:"button",q1:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.H(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.L({Y:"img",G:"ytp-suggested-action-badge-img",C:{src:"{{url}}"}}); this.thumbnailImage.hide();g.H(this,this.thumbnailImage);this.thumbnailIcon=new g.L({Y:"div",G:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.H(this,this.thumbnailIcon);this.banner=new g.L({Y:"a",G:"ytp-suggested-action-container",K:[this.thumbnailImage,this.thumbnailIcon,{Y:"div",G:"ytp-suggested-action-details",K:[{Y:"text",G:"ytp-suggested-action-title",FQ:"{{title}}"},{Y:"text",G:"ytp-suggested-action-subtitle",FQ:"{{subtitle}}"},{Y:"text",G:"ytp-suggested-action-metadata-text", FQ:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.H(this,this.banner);this.banner.hR(this.B.element);this.U(this.X,"videodatachange",this.onVideoDataChange);this.U(this.X,g.Gh("suggested_action_view_model"),this.L1d);this.U(this.X,g.KR("suggested_action_view_model"),this.g9R);this.U(this.overflowButton.element,"click",this.jJ);this.U(O,"featuredproductdismissed",this.Vo);this.X.createServerVe(this.banner.element,this.banner,!0)}; Wds=function(O){O.isInitialized&&(O.enabled=O.isVisible,O.Hq=O.isVisible,fV(O),O.Me(),O.thumbnailImage.M9(O.isVisible),O.shouldHideDismissButton||O.dismissButton.M9(O.isVisible),O.shouldShowOverflowButton&&O.overflowButton.M9(O.isVisible))}; $f=function(){T0.apply(this,arguments)}; AIL=function(O){ze.call(this,O);this.L=new $f(this.api);g.H(this,this.L);g.bR(this.api,this.L.element,4)}; MT=function(O){ze.call(this,O);var R=this;this.L="";this.B=!0;this.S=this.api.Z("html5_enable_audio_track_stickiness_phase_two");var J=new g.p8(O);g.H(this,J);J.U(O,"internalaudioformatchange",function(l,u){eh0(R,l,u)}); J.U(O,"videoplayerreset",function(){P0x(R)}); J.U(O,"videodatachange",function(l,u){R.onVideoDataChange(l,u)})}; eh0=function(O,R,J){if(J){var l="";if(paL(O,R)&&(l=R,O.S||(O.L=R),O.api.Z("html5_sabr_enable_server_xtag_selection"))){if(J=O.api.getVideoData(void 0,!0))J.CL=R;O.api.T().KJ=R}if(O.S&&l&&Ba0(O,l)){zas(O.api,O.L||l);var u;mq(ur(O.api.T(),(u=O.api.getVideoData())==null?void 0:g.pQ(u)),function(F){Hcx(O,l,F)})}}}; P0x=function(O){if(O.L)xW0(O);else{var R;if(O.S&&((R=cU())==null?0:R.size)){var J;mq(ur(O.api.T(),(J=O.api.getVideoData())==null?void 0:g.pQ(J)),function(l){if((l=UWp(l))&&Ba0(O,l)){var u=O.api.getVideoData(void 0,!0);u&&(u.CL=l);O.api.T().KJ=l}})}}}; xW0=function(O){var R=O.api.getVideoData(void 0,!0);R&&(R.CL=O.L)}; Hcx=function(O,R,J){UWp(J)!==R&&(jOs([{settingItemId:qT(J),settingOptionValue:{stringValue:R}}]),mq(O.Jj(),function(l){iN2(l,qT(J),{stringValue:R})}))}; QO2=function(O,R){EP(mq(mq(O.Jj(),function(J){return Jas(J,[qT(R)])}),function(J){if(J){J=g.N(J); for(var l=J.next();!l.done;l=J.next()){var u=l.value;l=u.key;u=u.value;l&&u&&(jOs([{settingItemId:l,settingOptionValue:u}]),P0x(O))}}}),function(){O.B=!0})}; paL=function(O,R){O=O.api.getAvailableAudioTracks();O=g.N(O);for(var J=O.next();!J.done;J=O.next())if(J=J.value,J.getLanguageInfo().getId()===R)return J;return null}; UWp=function(O){O=qT(O);var R=cU();O=R?R.get(O):void 0;return O&&O.stringValue?O.stringValue:""}; qT=function(O){var R=(484).toString();O&&(R=(483).toString());return R}; Ba0=function(O,R){var J;return R.split(".")[0]!==""&&((J=O.api.getVideoData())==null?void 0:!xD(J))}; jOs=function(O){var R=cU();R||(R=new Map);O=g.N(O);for(var J=O.next();!J.done;J=O.next())J=J.value,R.set(J.settingItemId,J.settingOptionValue);R=JSON.stringify(Object.fromEntries(R));g.bE("yt-player-user-settings",R,2592E3)}; g.kf=function(O,R,J,l,u,F,G){g.Lo.call(this,g.Ye({"aria-haspopup":"true"}),R,O);this.Fh=l;this.V=!1;this.B=null;this.options={};this.S=new g.mT(J,void 0,O,u,F,G);g.H(this,this.S);this.listen("keydown",this.xl);this.listen("click",this.open)}; Ld2=function(O){if(O.B){var R=O.options[O.B];R.element.getAttribute("aria-checked");R.element.setAttribute("aria-checked","false");O.B=null}}; Yz0=function(O,R){g.kf.call(this,"Temporizador de apagado",g.yo.SLEEP_TIMER,O,R);this.X=O;this.W={};this.j=this.YJ("Off");this.J=this.L="";O.Z("web_settings_menu_icons")&&this.setIcon({Y:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"path",C:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", fill:"#fff"}}]});this.N=new g.L({Y:"div",q1:["ytp-menuitem-label-wrapper"],K:[{Y:"div",FQ:"Fin del video"},{Y:"div",q1:["ytp-menuitem-sublabel"],FQ:"{{content}}"}]});g.H(this,this.N);this.listen("click",this.onClick);this.U(O,"videodatachange",this.onVideoDataChange);this.U(O,"presentingplayerstatechange",this.au);this.U(O,"settingsMenuVisibilityChanged",this.PjN);O.createClientVe(this.element,this,218889);this.au();this.X.tR("onSleepTimerFeatureAvailable")}; dWL=function(O){var R="Off 10 15 20 30 45 60".split(" "),J;((J=O.X.getVideoData())==null?0:J.isLivePlayback)||R.push("End of video");J=O.X.getPlaylist();var l;J&&((l=J.listId)==null?void 0:l.type)!=="RD"&&R.push("End of playlist");O.So(g.jO(R,O.YJ));O.W=g.PR(R,O.YJ,O);R=O.YJ("End of video");O.options[R]&&g.QM(O.options[R],O.N)}; hhz=function(O,R){var J=O.W[R],l=J==="End of video"||J==="End of playlist";J==="Off"&&(O.L="");O.X.getPlayerState()!==0&&O.X.getPlayerState()!==5||!l?(O.j=R,g.kf.prototype.wI.call(O,R),O.o8(R),O.X.tR("onSleepTimerSettingsChanged",J)):O.X.tR("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; bA=function(O){ze.call(this,O);var R=this;O.addEventListener("settingsMenuInitialized",function(){R.menuItem||(R.menuItem=new Yz0(R.api,R.api.jo()),g.H(R,R.menuItem))}); O.addEventListener("openSettingsMenuItem",function(J){if(J==="menu_item_sleep_timer"){if(!R.menuItem){var l;(l=R.api.jo())==null||l.EZ()}R.menuItem.open()}}); Ge(O,"resetSleepTimerMenuSettings",function(){R.resetSleepTimerMenuSettings()}); Ge(O,"setSleepTimerTimeLeft",function(J){R.setSleepTimerTimeLeft(J)}); Ge(O,"setVideoTimeLeft",function(J){R.setVideoTimeLeft(J)})}; zhs=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"onSnackbarMessage",function(J){switch(J){case 1:J=R.api.getPlayerStateObject(),J.isBuffering()&&g.d(J,8)&&g.d(J,16)&&R.api.tR("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl video se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Descubre los motivos"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; g.Ab=function(O,R,J,l,u){R=R===void 0?!1:R;l=l===void 0?!1:l;u=u===void 0?!1:u;g.y8.call(this);this.W=u;this.J=!1;this.N=new Tv(this);this.D=this.j=null;this.B=this.S=!1;g.H(this,this.N);this.target=O;this.L=R;this.V=J||O;this.J=l;R&&(g.d7&&this.target.setAttribute("draggable","true"),u||(this.target.style.touchAction="none"));Wo(this)}; e5=function(O){g.MN(O.N,!O.L)}; Wo=function(O){O.D=null;O.j=null;O.U(Po("over"),O.Rr);O.U("touchstart",O.kP);O.L&&O.U(Po("down"),O.O1R)}; nZp=function(O,R){for(var J=0;Ju.start&&J>=5;m+=a}t=m.substr(0,4)+" "+m.substr(4,4)+" "+m.substr(8,4)+" "+(m.substr(12,4)+" "+m.substr(16,4))}else t="";G={video_id_and_cpn:String(R.videoId)+" / "+t,codecs:"", dims_and_frames:"",bandwidth_kbps:G.toFixed(0)+" Kbps",buffer_health_seconds:w.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:I?"":"display:none",drm:I,debug_info:J,extra_debug_info:"",bandwidth_style:r,network_activity_style:r,network_activity_bytes:y.toFixed(0)+" KB",shader_info:C,shader_info_style:C?"":"display:none",playback_categories:""};y=l.clientWidth+"x"+l.clientHeight+(u>1?"*"+u.toFixed(2):"");w="-";F.totalVideoFrames&&(w=(F.droppedVideoFrames||0)+" dropped of "+F.totalVideoFrames); G.dims_and_frames=y+" / "+w;O=O.getVolume();y=oLs(R);var b;if((b=R.N)==null?0:b.audio.S)b="VB";else{var W;b=((W=R.N)==null?0:W.audio.L)?"DRC":Math.round(O*y)+"%"}W=Math.round(O)+"% / "+b;b=R.zW.toFixed(1);isFinite(Number(b))&&(W+=" (content loudness "+b+"dB)");G.volume=W;G.resolution=l.videoWidth+"x"+l.videoHeight;if(l=R.S){if(W=l.video)b=W.fps,b>1&&(G.resolution+="@"+b),(b=F.mL)&&b.video&&(G.resolution+=" / "+b.video.width+"x"+b.video.height,b.video.fps>1&&(G.resolution+="@"+b.video.fps)),G.codecs= iCh(l),!R.N||l.audio&&l.video?l.xR&&(G.codecs+=" / "+l.xR+"A"):G.codecs+=" / "+iCh(R.N),W.L||W.primaries?(b=W.L||"unknown",b==="smpte2084"?b+=" (PQ)":b==="arib-std-b67"&&(b+=" (HLG)"),G.color=b+" / "+(W.primaries||"unknown"),G.color_style=""):G.color_style="display:none";if(l.debugInfo)for(G.fmt_debug_info="",l=g.N(l.debugInfo),W=l.next();!W.done;W=l.next())W=W.value,G.fmt_debug_info+=W.label+":"+W.text+" ";G.fmt_debug_info_style=G.fmt_debug_info&&G.fmt_debug_info.length>0?"":"display:none"}l=R.isLivePlayback; W=R.q5;G.live_mode_style=l||W?"":"display:none";G.live_latency_style=l?"":"display:none";if(W)G.live_mode="Post-Live"+(IN(R)?" Manifestless":"");else if(l){W=F.TL;G.live_latency_secs=W.toFixed(2)+"s";l=IN(R)?"Manifestless, ":"";R.Hq&&(l+="Windowed, ");b="Uncertain";if(W>=0&&W<120)if(R.latencyClass&&R.latencyClass!=="UNKNOWN")switch(R.latencyClass){case "NORMAL":b="Optimized for Normal Latency";break;case "LOW":b="Optimized for Low Latency";break;case "ULTRALOW":b="Optimized for Ultra Low Latency"; break;default:b="Unknown Latency Setting"}else b=R.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";l+=b;(W=F.o3)&&(l+=", seq "+W.sequence);G.live_mode=l}!F.isGapless||i1(R)&&F.uS||(G.playback_categories+="Gapless ");G.playback_categories_style=G.playback_categories?"":"display:none";G.bandwidth_samples=F.WL;G.network_activity_samples=F.dM;G.live_latency_samples=F.PC;G.buffer_health_samples=F.EX;F=g.LQ(R);if(R.cotn||F)G.cotn_and_local_media=(R.cotn?R.cotn:"null")+ " / "+F;G.cotn_and_local_media_style=G.cotn_and_local_media?"":"display:none";dr(R,"web_player_release_debug")?(G.release_name=K[8],G.release_style=""):G.release_style="display:none";G.debug_info&&Z.length>0&&G.debug_info.length+Z.length<=60?G.debug_info+=" "+Z:G.extra_debug_info=Z;G.extra_debug_info_style=G.extra_debug_info&&G.extra_debug_info.length>0?"":"display:none";return G}; iCh=function(O){var R=/codecs="([^"]*)"/.exec(O.mimeType);return R&&R[1]?R[1]+" ("+O.itag+")":O.itag}; Qx=function(O,R,J,l,u){g.L.call(this,{Y:"div",G:"ytp-horizonchart"});this.J=R;this.sampleCount=J;this.N=l;this.j=u;this.index=0;this.heightPx=-1;this.B=this.S=null;this.L=Math.round(O/J);this.element.style.width=this.L*this.sampleCount+"px";this.element.style.height=this.J+"em"}; LV=function(O,R){if(O.heightPx===-1){var J=null;try{J=g.e(g.cE("CANVAS")),O.S=J.getContext("2d")}catch(y){}if(O.S){var l=O.L*O.sampleCount;O.B=J;O.B.width=l;O.B.style.width=l+"px";O.element.appendChild(O.B)}else for(O.sampleCount=Math.floor(O.sampleCount/4),O.L*=4,J=0;J1?2:1,O.B.height=O.heightPx*J, O.B.style.height=O.heightPx+"px",O.S.scale(1,J)));R=g.N(R);for(l=R.next();!l.done;l=R.next()){J=O;var u=O.index,F=l.value;for(l=0;l+20&&g.Jh(R.B.element);l.classList.add("ytp-timely-actions-overlay");R.B.element.appendChild(l)}); g.H(this,this.B);g.bR(this.api,this.B.element,4)}; SvB=function(O){O.timelyActions&&(O.N=O.timelyActions.reduce(function(R,J){if(J.cueRangeId===void 0)return R;R[J.cueRangeId]=0;return R},{}))}; co=function(O,R){if(O.timelyActions){O=g.N(O.timelyActions);for(var J=O.next();!J.done;J=O.next())if(J=J.value,J.cueRangeId===R)return J}}; Ng_=function(O,R){if((O=co(O,R))&&O.onCueRangeExit)return BM(O.onCueRangeExit)}; nV=function(O){if(O.L!==void 0){var R=(R=co(O,O.L))&&R.onCueRangeEnter?BM(R.onCueRangeEnter):void 0;var J=co(O,O.L);a:if(J&&J.additionalTrigger){var l=g.N(J.additionalTrigger);for(var u=l.next();!u.done;u=l.next())if(u=u.value,u.type){var F=void 0,G=void 0;if((F=O.W[u.type])==null?0:F((G=u.args)!=null?G:{})){l=!0;break a}}l=!1}else l=!0;R&&l&&(O.api.tR("innertubeCommand",R),O.setTimeout(J),O.N[O.L]!==void 0&&O.N[O.L]++,O.j=!0)}}; oAx=function(O,R){return O.S===void 0?!1:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(R.seekLengthMilliseconds)===5E3?O.S===72:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(R.seekLengthMilliseconds)===1E4?O.S===74:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(R.seekLengthMilliseconds)===5E3?O.S===71:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(R.seekLengthMilliseconds)===1E4?O.S===73:!1}; ZC_=function(O){if(O=O.getWatchNextResponse()){var R,J;O=(R=O.playerOverlays)==null?void 0:(J=R.playerOverlayRenderer)==null?void 0:J.timelyActionsOverlayViewModel;R=g.x(O,m1T);if(R!=null&&R.timelyActions)return R==null?void 0:R.timelyActions.map(function(l){return g.x(l,EAs)}).filter(function(l){return!!l})}}; D1x=function(O){ze.call(this,O);var R=this;Ko(this.api,"getPlaybackRate",function(){return R.api.getPlaybackRate()}); Ko(this.api,"setPlaybackRate",function(J){typeof J==="number"&&R.api.setPlaybackRate(J)})}; O6=function(O,R,J,l){iY.call(this,"VOICE_BOOST",g.yo.G0);this.L=!1;this.X=O;this.Fh=O.jo();this.N=R;this.B=J;this.hasVoiceBoostAudioTrack=l;this.U(O,"videodatachange",this.S);this.setIcon(Njx());this.subscribe("select",this.j,this);this.S()}; RM=function(O){ze.call(this,O);var R=this;this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"settingsMenuInitialized",function(){aNB(R)}); Ge(this.api,"getVoiceBoostUserPreference",function(){return R.getVoiceBoostUserPreference()}); Ge(this.api,"setVoiceBoostUserPreference",function(l){R.setVoiceBoostUserPreference(l)}); Ge(this.api,"hasVoiceBoostAudioTrack",function(){return R.hasVoiceBoostAudioTrack()}); var J;this.L=(J=xJz())!=null?J:0;this.updateEnvironmentData()}; aNB=function(O){O.menuItem||(O.menuItem=new O6(O.api,function(R){O.setVoiceBoostUserPreference(R)},function(){return O.getVoiceBoostUserPreference()},function(){return O.hasVoiceBoostAudioTrack()}),g.H(O,O.menuItem))}; vAA=function(O){O=O.Y8();if(!O)return!1;O=g.il(O).exp||"";return O.includes("xpv")||O.includes("xpe")}; XKW=function(O){O=g.N(g.JN(O,!0));for(var R=O.next();!R.done;R=O.next())if(vAA(R.value))return!0;return!1}; Tgs=function(O,R){O=g.N(g.JN(O,!0));for(var J=O.next();!J.done;J=O.next())if(J=J.value,vAA(J)){var l={potc:"1",pot:R};J.url&&(J.url=ll(J.url,l))}}; $1s=function(O){return g.A(function(R){if(R.S==1)return g.N0(R,2),g.k(R,O,4);if(R.S!=2)return g.as(R,0);g.Tz(R);g.ST(R)})}; iT=function(O){ze.call(this,O);var R=this;this.useLivingRoomPoToken=!1;this.D=new g.tA;this.L=!1;this.N9=null;this.V=!1;this.N=null;this.j=!1;var J=O.T().getWebPlayerContextConfig();this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"spsumpreject",function(l,u,F){R.j=u;l&&R.V&&!R.N&&(R.Z("html5_generate_content_po_token")&&F?R.lR(F):R.Z("html5_generate_session_po_token")&&M1z(R));R.N||R.api.nJ("stp",{s:+R.V,b:+R.j})}); this.events.U(O,"poTokenVideoBindingChange",function(l){R.lR(l)}); this.useLivingRoomPoToken=!(J==null||!J.useLivingRoomPoToken);O.addEventListener("csiinitialized",function(){R.N9=O.Bf();var l=(R.Z("html5_generate_session_po_token")||R.Z("html5_generate_content_po_token"))&&!R.useLivingRoomPoToken;try{if(R.Z("html5_use_shared_owl_instance"))qvs(R);else if(l){R.N9.jz("pot_isc");var u=g.tB(R.api.T().experiments,"html5_webpo_kaios_defer_timeout_ms");u?(R.B=HX(),g.tF(function(){g5(R)},u)):R.Z("html5_webpo_idle_priority_job")?(R.B=HX(),g.cf(g.RJ(),function(){g5(R)})): g5(R)}}catch(F){F instanceof Error&&g.Aa(F)}}); O.addEventListener("trackListLoaded",this.UV.bind(this));O.S3(this)}; k2_=function(O){var R=gm(O.experiments,"html5_web_po_request_key");return R?R:g.$T(O)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; sB2=function(O){var R=new gtA,J={},l=(J["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",J);return new Nb(R,O,function(){return l})}; bC0=function(O){return new mL(O)}; lT=function(O,R){O.Z("html5_webpo_bge_ctmp")&&O.api.nJ(R,{hwpo:!!O.S,hwpor:O.L})}; qvs=function(O){var R,J;g.A(function(l){if(l.S==1)return lT(O,"swpo_i"),O.B=HX(),uT(O),g.k(l,Gm(),2);if(l.S!=3)return R=l.L,lT(O,"swpo_co"),g.k(l,WbL(R),3);J=l.L;O.Z("html5_web_po_token_disable_caching")||J.M3(150);O.S=J;lT(O,"swpo_cc");$1s(J.z7()).then(function(){O.L=!0;O.D.resolve();lT(O,"swpo_re")}); g.tF(function(){g5(O);lT(O,"swpo_si")},0); g.ST(l)})}; AzH=function(O){var R=O.api.T(),J=sB2(k2_(R)),l=J.U1.bind(J);J.U1=function(y){var w;return g.A(function(I){if(I.S==1)return g.k(I,l(y),2);w=I.L;O.api.nJ("itr",{});return I.return(w)})}; try{var u=bC0({Wi:J,r0:{maxAttempts:5},j6:{fD:"CLEn",disable:R.experiments.Vh("html5_web_po_disable_remote_logging")||Wlx.includes(g.vQ(R.Ic)||""),y_:$40(R.experiments),FMQ:O.Z("wpo_dis_lfdms")?0:1E3},n9Q:g.Aa});var F=new pd({m$:u,Wi:J,onError:g.Aa});$1s(F.z7()).then(function(){O.L=!0;O.D.resolve()}); O.Z("html5_web_po_token_disable_caching")||F.M3(150);g.H(O,u);g.H(O,F);O.S=F}catch(y){g.Aa(y);var G;(G=u)==null||G.dispose()}}; g5=function(O){var R=O.api.T();O.N9.jz("pot_ist");O.S||AzH(O);O.Z("html5_bandaid_attach_content_po_token")||(O.Z("html5_generate_session_po_token")&&(uT(O),M1z(O)),R=g.tB(R.experiments,"html5_session_po_token_interval_time_ms")||0,R>0&&(O.J=g.o9(function(){uT(O)},R)),O.V=!0)}; uT=function(O){var R,J,l,u;g.A(function(F){if(!O.Z("html5_generate_session_po_token")||O.useLivingRoomPoToken)return F.return();R=O.api.T();J=g.YB("EOM_VISITOR_DATA")||g.YB("VISITOR_DATA");l=R.Wn?R.datasyncId:J;u=gm(R.experiments,"html5_mock_content_binding_for_session_token")||R.livingRoomPoTokenId||l;R.DZ=FJ(O,u);g.ST(F)})}; FJ=function(O,R){if(!O.S){if(O.B)try{return O.B(R)}catch(F){g.Aa(F)}return""}try{O.N9.jz(O.L?"pot_cms":"pot_csms");var J={DN:!0,rM:!0,ya:R};O.Z("html5_web_po_token_disable_caching")||(J.QP={v9:R,zO:!0,iJ:!0});var l=O.S.Z8(J);O.N9.jz(O.L?"pot_cmf":"pot_csmf");if(O.L){var u;(u=O.N)==null||u.resolve();O.N=null;O.j&&(O.j=!1,O.api.app.mX().c8(!1))}return l}catch(F){return g.Aa(F),""}}; M1z=function(O){O.S&&(O.N=new Jw,O.D.promise.then(function(){O.N9.jz("pot_if");uT(O)}))}; Gs=function(O){ze.call(this,O);var R=this,J=new g.p8(O);g.H(this,J);J.U(O,"fullscreentoggled",function(l){eY0(R,l)}); Ge(this.api,"setFullscreenQuickActions",function(l){R.setFullscreenQuickActions(l)}); Ge(this.api,"setPlayerOverlayVideoDetailsRenderer",function(l){R.setPlayerOverlayVideoDetailsRenderer(l)})}; eY0=function(O,R){O.L&&g.nS(O.L,R);O.playerOverlayVideoDetailsRenderer&&g.nS(O.playerOverlayVideoDetailsRenderer,R)}; PUs=function(O){ze.call(this,O);var R=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.p8(O);g.H(this,this.events);this.events.U(O,"heartbeatRequest",function(J){if(R.freePreviewUsageDetails.length||R.freePreviewWatchedDuration!==null)J.heartbeatRequestParams||(J.heartbeatRequestParams={}),J.heartbeatRequestParams.unpluggedParams||(J.heartbeatRequestParams.unpluggedParams={}),R.freePreviewUsageDetails.length>0?J.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= R.freePreviewUsageDetails:J.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+R.freePreviewWatchedDuration}}); Ge(O,"setFreePreviewWatchedDuration",function(J){R.freePreviewWatchedDuration=J}); Ge(O,"setFreePreviewUsageDetails",function(J){R.freePreviewUsageDetails=J})}; KT=function(O){g.p.call(this);this.features=[];var R=this.L,J=new DM(O),l=new no(O),u=new CV(O),F=new iT(O);var G=g.XV(O.T())?void 0:new ZM(O);var y=new IR(O),w=new G2f(O),I=new D1x(O),C=new EH(O);var r=g.XV(O.T())?new PUs(O):void 0;var t=O.Z("html5_enable_ssap")?new gA0(O):void 0;var Z=O.Z("web_cinematic_watch_settings")&&(Z=O.T().getWebPlayerContextConfig())!=null&&Z.cinematicSettingsAvailable?new Cj(O):void 0;var V=new mn(O);var m=O.Z("enable_courses_player_overlay_purchase")?new TGp(O):void 0; var E=g.zj(O.T())?new Dh2(O):void 0;var a=new Vo(O);var v=O.T().N?new VCW(O):void 0;var b=g.$X(O.T())?new ZKB(O):void 0;var W=O.Z("web_player_move_autonav_toggle")&&O.T().vY?new Kqh(O):void 0;var B=g.zj(O.T())?new RhL(O):void 0;var z=O.Z("web_enable_speedmaster")&&g.zj(O.T())?new Ho(O):void 0;var Y=O.T().Ax?void 0:new t1T(O);var gh=O.Z("report_pml_debug_signal")?new liB(O):void 0;var l2=new rIf(O),O_=new Zn(O);var Kx=g.p9(O.T())?new DWz(O):void 0;var n=navigator.mediaSession&&window.MediaMetadata&& O.T().k5?new yx(O):void 0;var mH=O.Z("html5_enable_drc")&&!O.T().j?new oE(O):void 0;var Xp=new OH(O);var xW=g.zj(O.T())?new AIL(O):void 0;var ab=O.Z("html5_enable_d6de4")?new rR(O):void 0;var Kt=g.zj(O.T())&&O.Z("web_sleep_timer")?new bA(O):void 0;var $W=g.$X(O.T())?new SPL(O):void 0;var vB=new MT(O),lQ=new rU2(O),D=new Ocz(O);var Gz=O.Z("enable_sabr_snackbar_message")?new zhs(O):void 0;var dC=O.Z("web_enable_timely_actions")?new fNW(O):void 0;var E5=new rp(O);var Ms=g.zj(O.T())?new Gs(O):void 0; O=O.Z("html5_enable_voice_boost")?new RM(O):void 0;R.call(this,J,l,u,F,G,y,w,I,C,r,t,Z,V,m,E,a,v,b,W,B,z,Y,gh,l2,O_,Kx,void 0,n,mH,Xp,void 0,xW,ab,Kt,$W,void 0,vB,lQ,D,void 0,Gz,dC,E5,Ms,O)}; pKh=function(){this.S=this.L=NaN}; Bgh=function(O,R){this.Ru=O;this.timerName="";this.B=!1;this.S=NaN;this.N=new pKh;this.L=R||null;this.B=!1}; HCW=function(O,R,J){var l=g.Wv(R.bz)&&!R.bz.j;if(R.bz.Ra&&(q7(R.bz)||R.bz.N1==="shortspage"||JX(R.bz)||l)&&!O.B){O.B=!0;O.j=R.clientPlaybackNonce;g.YB("TIMING_ACTION")||jk("TIMING_ACTION",O.Ru.csiPageType);O.Ru.csiServiceName&&jk("CSI_SERVICE_NAME",O.Ru.csiServiceName);if(O.L){l=O.L.Bf();for(var u=g.N(Object.keys(l)),F=u.next();!F.done;F=u.next())F=F.value,x3(F,l[F],O.timerName);l=g.nA(brL)(O.L.Og);g.U8(l,O.timerName);l=O.L;l.S={};l.Og={}}g.U8({playerInfo:{visibilityState:g.nA(sAf)()},playerType:"LATENCY_PLAYER_HTML5"}, O.timerName);O.D!==R.clientPlaybackNonce||Number.isNaN(O.S)||(Q0("_start",O.timerName)?J=g.nA(eq)("_start",O.timerName)+O.S:g.Aa(new g.Ys("attempted to log gapless pbs before CSI timeline started",{cpn:R.clientPlaybackNonce})));J&&!Q0("pbs",O.timerName)&&yj(O,J)}}; yj=function(O,R,J){x3("pbs",R!=null?R:(0,g.Q)(),J!=null?J:O.timerName)}; x1T=function(O,R,J,l,u,F,G,y){R=(R===l?"video":"ad")+"_to_"+(J===l?"video":"ad");if(R!=="video_to_ad"||G!=null&&G.iz){G=R==="ad_to_video"?G:u;l=G==null?void 0:G.bu;var w={};if(u==null?0:u.j)w.cttAuthInfo={token:u.j,videoId:u.videoId};F&&(w.startTime=F);jq(R,w);var I,C,r;u={targetVideoId:(I=u==null?void 0:u.videoId)!=null?I:"empty_video",targetCpn:J,adVideoId:(C=G==null?void 0:G.videoId)!=null?C:"empty_video",adClientPlaybackNonce:(r=l==null?void 0:l.cpn)!=null?r:G==null?void 0:G.clientPlaybackNonce}; l&&(u.adBreakType=l.adBreakType,u.adType=l.adType);g.U8(u,R);yj(O,y,R)}}; w5=function(O){jAH();Uds();O.timerName=""}; U10=function(O){if(O.L){var R=O.L;R.S={};R.Og={}}O.B=!1;O.D=void 0;O.S=NaN}; jBs=function(O,R){g.y8.call(this);this.bz=O;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.L=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.W={};this.S=0;if(O=R.session_data)this.sessionData=OU(O,"&");this.index=Math.max(0,Number(R.index)||0);this.loop=!!R.loop;this.startSeconds=Number(R.startSeconds)||0;this.title=R.playlist_title||"";this.description=R.playlist_description||"";this.author= R.author||R.playlist_author||"";R.video_id&&(this.items[this.index]=R);if(O=R.api)typeof O==="string"&&O.length===16?R.list="PL"+O:R.playlist=O;if(O=R.list)switch(R.listType){case "user_uploads":this.listId=new m5("UU","PLAYER_"+O);break;default:var J=R.playlist_length;J&&(this.length=Number(J)||0);this.listId=g.EE(O);if(O=R.video)this.items=O.slice(0),this.loaded=!0}else if(R.playlist){O=R.playlist.toString().split(",");this.index>0&&(this.items=[]);O=g.N(O);for(J=O.next();!J.done;J=O.next())(J= J.value)&&this.items.push({video_id:J});this.length=this.items.length;if(O=R.video)this.items=O.slice(0),this.loaded=!0}this.setShuffle(!!R.shuffle);if(O=R.suggestedQuality)this.quality=O;this.W=Vh(R,"playlist_");this.B=(R=R.thumbnail_ids)?R.split(","):[]}; QBh=function(O){return!!(O.playlist||O.list||O.api)}; LlW=function(O){var R=O.index+1;return R>=O.length?0:R}; Yvx=function(O){var R=O.index-1;return R<0?O.length-1:R}; g.IM=function(O,R,J,l){R=R!==void 0?R:O.index;R=O.items&&R in O.items?O.items[O.order[R]]:null;var u=null;R&&(J&&(R.autoplay="1"),l&&(R.autonav="1"),u=new g.jN(O.bz,R),g.H(O,u),u.F_=!0,u.startSeconds=O.startSeconds||u.clipStart||0,O.listId&&(u.playlistId=O.listId.toString()));return u}; d1W=function(O,R){O.index=g.TY(R,0,O.length-1);O.startSeconds=0}; hYB=function(O,R){if(R.video&&R.video.length){O.title=R.title||"";O.description=R.description;O.views=R.views;O.likes=R.likes;O.dislikes=R.dislikes;O.author=R.author||"";var J=R.loop;J&&(O.loop=J);J=g.IM(O);O.items=[];for(var l=g.N(R.video),u=l.next();!u.done;u=l.next())if(u=u.value)u.video_id=u.encrypted_id,O.items.push(u);O.length=O.items.length;(R=R.index)?O.index=R:O.findIndex(J);O.setShuffle(!1);O.loaded=!0;O.S++;O.L&&O.L()}}; cz2=function(O,R){var J,l,u,F,G,y,w;return g.A(function(I){if(I.S==1){J=g.GS();var C=O.T(),r={context:g.uR(O),playbackContext:{contentPlaybackContext:{ancestorOrigins:C.ancestorOrigins}}},t=C.getWebPlayerContextConfig();if(t==null?0:t.encryptedHostFlags)r.playbackContext.contentPlaybackContext.encryptedHostFlags=t.encryptedHostFlags;if(t==null?0:t.hideInfo)r.playerParams={showinfo:!1};C=C.embedConfig;t=R.docid||R.video_id||R.videoId||R.id;if(!t){t=R.raw_embedded_player_response;if(!t){var Z=R.embedded_player_response; Z&&(t=JSON.parse(Z))}if(t){var V,m,E,a,v,b;t=((b=g.x((V=t)==null?void 0:(m=V.embedPreview)==null?void 0:(E=m.thumbnailPreviewRenderer)==null?void 0:(a=E.playButton)==null?void 0:(v=a.buttonRenderer)==null?void 0:v.navigationEndpoint,g.cx))==null?void 0:b.videoId)||null}else t=null}V=(V=t)?V:void 0;m=O.playlistId?O.playlistId:R.list;E=R.listType;if(m){var W;E==="user_uploads"?W={username:m}:W={playlistId:m};zYs(C,V,R,W);r.playlistRequest=W}else R.playlist?(W={templistVideoIds:R.playlist.toString().split(",")}, zYs(C,V,R,W),r.playlistRequest=W):V&&(W={videoId:V},C&&(W.serializedThirdPartyEmbedConfig=C),r.singleVideoRequest=W);l=r;u=g.gA(nA2);g.N0(I,2);return g.k(I,g.zO(J,l,u),4)}if(I.S!=2)return F=I.L,G=O.T(),R.raw_embedded_player_response=F,G.iz=yz(R,g.$X(G)),G.B=G.iz==="EMBEDDED_PLAYER_MODE_PFL",F&&(y=F,y.trackingParams&&PU(y.trackingParams)),I.return(new g.jN(G,R));w=g.Tz(I);w instanceof Error||(w=Error("b259802748"));g.WM(w);return I.return(O)})}; zYs=function(O,R,J,l){J.index&&(l.playlistIndex=String(Number(J.index)+1));l.videoId=R?R:"";O&&(l.serializedThirdPartyEmbedConfig=O)}; g.r5=function(O,R){CT.get(O);CT.set(O,R)}; g.tN=function(O){g.y8.call(this);this.loaded=!1;this.player=O}; OJW=function(){this.S=[];this.L=[]}; g.JN=function(O,R){return R?O.L.concat(O.S):O.L}; g.oM=function(O,R){switch(R.kind){case "asr":RjT(R,O.S);break;default:RjT(R,O.L)}}; RjT=function(O,R){g.rC(R,function(J){return O.equals(J)})||R.push(O)}; g.Zk=function(O){g.p.call(this);this.Zg=O;this.S=new OJW;this.N=null;this.D=[];this.V=[]}; g.Vj=function(O,R,J){g.Zk.call(this,O);this.videoData=R;this.audioTrack=J;this.L=null;this.B=!1;this.D=R.fh;this.V=R.u6;this.B=g.Ad(R)}; g.JL_=function(O,R){var J;return O.T().Z("safari_live_drm_captions_fix")&&((J=O.getVideoData())==null?0:J.lC())?!1:g.XV(O.T())&&!R.isManifestless}; g.fT=function(O,R){return uB(O.info.mimeType)?R?O.info.itag===R:!0:!1}; g.gYB=function(O,R){if(O.L!=null&&g.JL_(R,O.L)&&O.L.L.rawcc!=null)return!0;if(!O.vy())return!1;R=!!O.L&&O.L.isManifestless&&Object.values(O.L.L).some(function(J){return g.fT(J,"386")}); O=!!O.L&&!O.L.isManifestless&&g.LiT(O.L);return R||O}; g.SK=function(O,R,J,l,u,F){g.Zk.call(this,O);this.videoId=J;this.wL=u;this.eventId=F;this.j={};this.L=null;O=l||g.il(R).hl||"";O=O.split("_").join("-");this.B=ll(R,{hl:O})}; iJs=function(O,R){return R?{fZ:O.fZ&&R.fZ,sync:O.sync&&R.sync,streaming:O.streaming&&R.streaming}:O}; u4z=function(O,R,J){return mq(lCT(R,J),Di(function(l){return function F(){return WB(F,function(G){if(G.S==1){g.E_(G,2);try{return G.return(new WebAssembly.Instance(l,O))}catch(y){g.Aa(y)}return fx(G,aY(WebAssembly.instantiate(l,O)),4)}if(G.S!=2)return G.return(G.L);g.M0(G);return g.kW(G,0)})}()}))}; FZf=function(O,R){if(!O.L)return R=fetch(R),O.L=mq(Zi(R),function(J){return J.arrayBuffer()}),EP(O.L,function(J){O.L=void 0; J="wasm module fetch failure: "+J;g.Aa(Error(J));throw J;}),R}; lCT=function(O,R){var J=GQz;if(J.S)return J.S;var l=iJs(J.capabilities,R);J.S=SC(function(){return J.B(O,l)}); return J.S}; KZ_=function(){}; yLf=function(){var O=this;this.proc_exit=function(){}; this.fd_write=function(R,J,l){if(!O.exports)return 1;R=new Uint32Array(O.exports.memory.buffer,J,l*2);J=[];for(var u=0;u=11;O=O.api.T().J&&kx;return!(!R&&!O)}; U6=function(O,R){return!O.api.isInline()&&!Y2H(O,vf(R))&&g.XM(R)}; LZz=function(O){O.xo.n_();if(O.aR&&O.sW)O.sW=!1;else if(!O.api.T().Qh&&!O.sx()){var R=O.api.getPlayerStateObject();g.d(R,2)&&g.Xf(O.api)||O.w0(R);!O.api.T().sQ||R.isCued()||g.d(R,1024)?O.RX():O.ZX.isActive()?(O.tU(),O.ZX.stop()):O.ZX.start()}}; hjx=function(O,R){var J;if((J=O.api.getVideoData())==null?0:J.mutedAutoplay){var l,u;if((l=R.target)==null?0:(u=l.className)==null?0:u.includes("ytp-info-panel"))return!1}return g.XM(R)&&O.api.isMutedByMutedAutoplay()?(O.api.unMute(),O.api.getPresentingPlayerType()===2&&O.api.playVideo(),R=O.api.getPlayerStateObject(),!g.d(R,4)||g.d(R,8)||g.d(R,2)||O.RX(),!0):!1}; zjf=function(O,R,J){O.api.isFullscreen()?J<1-R&&O.api.toggleFullscreen():J>1+R&&O.api.toggleFullscreen()}; Ql_=function(O){var R=j8()&&HW()>=67&&!O.api.T().J;O=O.api.T().disableOrganicUi;return!g.UU("tizen")&&!vv&&!R&&!O}; g.jK=function(O){g.L.call(this,{Y:"div",K:[{Y:"div",G:"ytp-bezel-text-wrapper",K:[{Y:"div",G:"ytp-bezel-text",FQ:"{{title}}"}]},{Y:"div",G:"ytp-bezel",C:{role:"status","aria-label":"{{label}}"},K:[{Y:"div",G:"ytp-bezel-icon",FQ:"{{icon}}"}]}]});this.X=O;this.S=new g.zR(this.show,10,this);O=this.X.Z("delhi_modern_web_player")?1E3:500;this.L=new g.zR(this.hide,O,this);g.H(this,this.S);g.H(this,this.L);this.hide()}; LT=function(O,R,J){if(R<=0){J=kH();R="silenciado";var l=0}else J=J?{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,C:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,C:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},l=Math.floor(R),R=l+"volumen";Qj(O,J,R,l+"%")}; nYs=function(O,R){R=R?{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:Cqp();var J=O.X.getPlaybackRate(),l=g.fR("La velocidad es de $RATE",{RATE:String(J)});Qj(O,R,l,J+"x")}; cL0=function(O,R){R=R?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";Qj(O,Iiz(),R)}; Qj=function(O,R,J,l){l=l===void 0?"":l;O.updateValue("label",J===void 0?"":J);O.updateValue("icon",R);g.OW(O.L);O.S.start();O.updateValue("title",l);g.wI(O.element,"ytp-bezel-text-hide",!l)}; OlL=function(O,R){g.L.call(this,{Y:"button",q1:["ytp-button","ytp-cards-button"],C:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.$X(O.T()))},K:[{Y:"span",G:"ytp-cards-button-icon-default",K:[{Y:"div",G:"ytp-cards-button-icon",K:[O.T().Z("player_new_info_card_format")?oSp():{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {Y:"div",G:"ytp-cards-button-title",FQ:"Informaci\u00f3n"}]},{Y:"span",G:"ytp-cards-button-icon-shopping",K:[{Y:"div",G:"ytp-cards-button-icon",K:[{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",G:"ytp-svg-shadow",C:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{Y:"path",G:"ytp-svg-fill",C:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{Y:"path",G:"ytp-svg-shadow-fill",C:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{Y:"div", G:"ytp-cards-button-title",FQ:"Shopping"}]}]});this.X=O;this.S=R;this.L=null;this.fade=new g.iz(this,250,!0,100);g.H(this,this.fade);g.wI(this.S,"ytp-show-cards-title",g.$X(O.T()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.nm(!0)}; R_L=function(O,R){g.L.call(this,{Y:"div",G:"ytp-cards-teaser",K:[{Y:"div",G:"ytp-cards-teaser-box"},{Y:"div",G:"ytp-cards-teaser-text",K:O.T().Z("player_new_info_card_format")?[{Y:"button",G:"ytp-cards-teaser-info-icon",C:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},K:[oSp()]},{Y:"span",G:"ytp-cards-teaser-label",FQ:"{{text}}"},{Y:"button",G:"ytp-cards-teaser-close-button",C:{"aria-label":"Cerrar"},K:[g.Ek()]}]:[{Y:"span",G:"ytp-cards-teaser-label",FQ:"{{text}}"}]}]});var J=this;this.X= O;this.uC=R;this.fade=new g.iz(this,250,!1,250);this.L=null;this.J=new g.zR(this.X3X,300,this);this.j=new g.zR(this.Q2R,2E3,this);this.N=[];this.S=null;this.V=new g.zR(function(){J.element.style.margin="0"},250); this.onClickCommand=this.B=null;g.H(this,this.fade);g.H(this,this.J);g.H(this,this.j);g.H(this,this.V);O.T().Z("player_new_info_card_format")?(g.F8(O.getRootNode(),"ytp-cards-teaser-dismissible"),this.U(this.Bq("ytp-cards-teaser-close-button"),"click",this.dl),this.U(this.Bq("ytp-cards-teaser-info-icon"),"click",this.dN),this.U(this.Bq("ytp-cards-teaser-label"),"click",this.dN)):this.listen("click",this.dN);this.U(R.element,"mouseover",this.TM);this.U(R.element,"mouseout",this.Vc);this.U(O,"cardsteasershow", this.neX);this.U(O,"cardsteaserhide",this.Xh);this.U(O,"cardstatechange",this.ML);this.U(O,"presentingplayerstatechange",this.ML);this.U(O,"appresize",this.m_);this.U(O,"onShowControls",this.m_);this.U(O,"onHideControls",this.Yb);this.listen("mouseenter",this.JQ)}; JpT=function(O){g.L.call(this,{Y:"button",q1:[Yx.BUTTON,Yx.TITLE_NOTIFICATIONS],C:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},K:[{Y:"div",G:Yx.TITLE_NOTIFICATIONS_ON,C:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},K:[g.vT()]},{Y:"div",G:Yx.TITLE_NOTIFICATIONS_OFF,C:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},K:[{Y:"svg",C:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},K:[{Y:"path",C:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=O;this.L=!1;O.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir notificaciones sobre todos los videos nuevos")}; g4A=function(O,R){O.L=R;O.element.classList.toggle(Yx.NOTIFICATIONS_ENABLED,O.L);var J=O.api.getVideoData();J?(R=R?J.Bd:J.b6)?(O=O.api.Jj())?h9(O,R):g.WM(Error("No innertube service available when updating notification preferences.")):g.WM(Error("No update preferences command available.")):g.WM(Error("No video data when updating notification preferences."))}; lmT=function(O,R,J){var l=l===void 0?800:l;var u=u===void 0?600:u;var F=document.location.protocol;O=RQT(F+"//"+O+"/signin?context=popup","feature",R,"next",F+"//"+location.hostname+"/post_login");ils(O,J,l,u)}; ils=function(O,R,J,l){J=J===void 0?800:J;l=l===void 0?600:l;if(O=g.Jg(window,O,"loginPopup","width="+J+",height="+l+",resizable=yes,scrollbars=yes"))Clf(function(){R()}),O.moveTo((screen.width-J)/2,(screen.height-l)/2)}; g.d5=function(O,R,J,l,u,F,G,y,w,I,C,r){O=O.charAt(0)+O.substring(1).toLowerCase();J=J.charAt(0)+J.substring(1).toLowerCase();if(R==="0"||R==="-1")R=null;if(l==="0"||l==="-1")l=null;var t=C.T(),Z=t.userDisplayName&&g.Wv(t);g.L.call(this,{Y:"div",q1:["ytp-button","ytp-sb"],K:[{Y:"div",G:"ytp-sb-subscribe",C:Z?{title:g.fR("Suscribirse como $USER_NAME",{USER_NAME:t.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":gy(t),"data-tooltip-opaque":String(g.$X(t)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},K:[{Y:"div",G:"ytp-sb-text",K:[{Y:"div",G:"ytp-sb-icon"},O]},R?{Y:"div",G:"ytp-sb-count",FQ:R}:""]},{Y:"div",G:"ytp-sb-unsubscribe",C:Z?{title:g.fR("Suscrito como $USER_NAME",{USER_NAME:t.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":gy(t),"data-tooltip-opaque":String(g.$X(t)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},K:[{Y:"div",G:"ytp-sb-text",K:[{Y:"div",G:"ytp-sb-icon"},J]}, l?{Y:"div",G:"ytp-sb-count",FQ:l}:""]}],C:{"aria-live":"polite"}});var V=this;this.channelId=G;this.X=C;this.B=r;var m=this.Bq("ytp-sb-subscribe"),E=this.Bq("ytp-sb-unsubscribe");F&&g.F8(this.element,"ytp-sb-classic");if(u){y?this.L():this.S();var a=function(){if(t.OQ){var b=V.channelId;if(w||I){var W={c:b};var B;g.xk.isInitialized()&&(B=$Js(W));W=B||"";if(B=C.getVideoData())if(B=B.subscribeCommand){var z=C.Jj();z?(h9(z,B,{botguardResponse:W,feature:w}),C.tR("SUBSCRIBE",b)):g.WM(Error("No innertube service available when updating subscriptions."))}else g.WM(Error("No subscribe command in videoData.")); else g.WM(Error("No video data available when updating subscription."))}E.focus();E.removeAttribute("aria-hidden");m.setAttribute("aria-hidden","true")}else lmT(g.Ql(V.X.T()),"sb_button",V.N)},v=function(){var b=V.channelId; if(w||I){var W=g.e(C.getVideoData());h9(g.e(C.Jj()),W.unsubscribeCommand,{feature:w});C.tR("UNSUBSCRIBE",b)}m.focus();m.removeAttribute("aria-hidden");E.setAttribute("aria-hidden","true")}; this.U(m,"click",a);this.U(E,"click",v);this.U(m,"keypress",function(b){b.keyCode===13&&a(b)}); this.U(E,"keypress",function(b){b.keyCode===13&&v(b)}); this.U(C,"SUBSCRIBE",this.L);this.U(C,"UNSUBSCRIBE",this.S);this.B&&Z&&(YGW(C),D9(C,m,this),D9(C,E,this))}else g.F8(m,"ytp-sb-disabled"),g.F8(E,"ytp-sb-disabled")}; Gpz=function(O){g.L.call(this,{Y:"div",G:"ytp-title-channel",K:[{Y:"div",G:"ytp-title-beacon"},{Y:"a",G:"ytp-title-channel-logo",C:{href:"{{channelLink}}",target:O.T().W,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{Y:"div",G:"ytp-title-expanded-overlay",C:{"aria-hidden":"{{flyoutUnfocusable}}"},K:[{Y:"div",G:"ytp-title-expanded-heading",K:[{Y:"div",G:"ytp-title-expanded-title",K:[{Y:"a",FQ:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:O.T().W,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{Y:"div",G:"ytp-title-expanded-subtitle",FQ:"{{expandedSubtitle}}",C:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var R=this;this.api=O;this.channel=this.Bq("ytp-title-channel");this.S=this.Bq("ytp-title-channel-logo");this.channelName=this.Bq("ytp-title-expanded-title");this.j=this.Bq("ytp-title-expanded-overlay");this.B=this.L=this.subscribeButton=null;this.N=!1;O.createClientVe(this.S,this,36925);O.createClientVe(this.channelName,this, 37220);g.$X(this.api.T())&&u0x(this);this.U(O,"videodatachange",this.au);this.U(O,"videoplayerreset",this.au);this.U(this.channelName,"click",function(J){R.api.logClick(R.channelName);g.Jg(window,Fcz(R));J.preventDefault()}); this.U(this.S,"click",this.z4Q);this.au()}; Kcp=function(O){if(!O.api.T().AT){var R=g.e(O.api.getVideoData()),J=new g.d5("Suscribirse",null,"Suscrito/a",null,!0,!1,R.oU,R.subscribed,"channel_avatar",null,O.api,!0);O.api.createServerVe(J.element,O);var l;O.api.setTrackingParams(J.element,((l=R.subscribeButtonRenderer)==null?void 0:l.trackingParams)||null);O.U(J.element,"click",function(){O.api.logClick(J.element)}); O.subscribeButton=J;g.H(O,O.subscribeButton);O.subscribeButton.hR(O.j);O.subscribeButton.hide();var u=new JpT(O.api);O.L=u;g.H(O,u);u.hR(O.j);u.hide();O.U(O.api,"SUBSCRIBE",function(){R.HP&&(u.show(),O.api.logVisibility(u.element,!0))}); O.U(O.api,"UNSUBSCRIBE",function(){R.HP&&(u.hide(),O.api.logVisibility(u.element,!1),g4A(u,!1))})}}; u0x=function(O){var R=O.api.T();Kcp(O);O.updateValue("flyoutUnfocusable","true");O.updateValue("channelTitleFocusable","-1");O.updateValue("shouldHideExpandedTitleForA11y","true");O.updateValue("shouldHideExpandedSubtitleForA11y","true");R.S||R.JR||(O.U(O.channel,"mouseenter",O.E1),O.U(O.channel,"mouseleave",O.VO),O.U(O.channel,"focusin",O.E1),O.U(O.channel,"focusout",function(J){O.channel.contains(J.relatedTarget)||O.VO()})); O.B=new g.zR(function(){O.isExpanded()&&(O.api.logVisibility(O.channelName,!1),O.subscribeButton&&(O.subscribeButton.hide(),O.api.logVisibility(O.subscribeButton.element,!1)),O.L&&(O.L.hide(),O.api.logVisibility(O.L.element,!1)),O.channel.classList.remove("ytp-title-expanded"),O.channel.classList.add("ytp-title-show-collapsed"))},500); g.H(O,O.B);O.U(O.channel,ypz,function(){wjL(O)}); O.U(O.api,"onHideControls",O.EM);O.U(O.api,"appresize",O.EM);O.U(O.api,"fullscreentoggled",O.EM)}; wjL=function(O){O.channel.classList.remove("ytp-title-show-collapsed");O.channel.classList.remove("ytp-title-show-expanded")}; Im0=function(O){var R=O.api.getPlayerSize();return g.$X(O.api.T())&&R.width>=524}; Fcz=function(O){var R=O.api.T(),J=g.e(O.api.getVideoData()),l=g.ir(R)+J.Rz;g.nQ(J)&&(l="https://music.youtube.com"+J.Rz);if(!g.$X(R))return l;R={};g.wL(O.api,"addEmbedsConversionTrackingParams",[R]);return g.s9(l,R)}; hN=function(O){var R=g.Ye({"aria-haspopup":"true"});g.Lo.call(this,R,O);this.listen("keydown",this.L)}; zs=function(O,R){O.element.setAttribute("aria-haspopup",String(R))}; CjW=function(O,R){g.L.call(this,{Y:"div",G:"ytp-user-info-panel",C:{"aria-label":"Informaci\u00f3n del usuario"},K:O.T().OQ&&!O.Z("embeds_web_always_enable_signed_out_state")?[{Y:"div",G:"ytp-user-info-panel-icon",FQ:"{{icon}}"},{Y:"div",G:"ytp-user-info-panel-content",K:[{Y:"div",G:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable}}",role:"text"},FQ:"{{watchingAsUsername}}"},{Y:"div",G:"ytp-user-info-panel-info",C:{tabIndex:"{{userInfoFocusable2}}",role:"text"},FQ:"{{watchingAsEmail}}"}]}]: [{Y:"div",G:"ytp-user-info-panel-icon",FQ:"{{icon}}"},{Y:"div",G:"ytp-user-info-panel-content",K:[{Y:"div",K:[{Y:"text",C:{tabIndex:"{{userInfoFocusable}}"},FQ:"Saliste de la cuenta"}]},{Y:"div",G:"ytp-user-info-panel-login",K:[{Y:"a",C:{tabIndex:"{{userInfoFocusable2}}",role:"button"},FQ:O.T().AT?"":"Acceder a YouTube"}]}]}]});this.Zg=O;this.L=R;O.T().OQ||O.T().AT||this.U(this.Bq("ytp-user-info-panel-login"),"click",this.EE);this.closeButton=new g.L({Y:"button",q1:["ytp-collapse","ytp-button"],C:{title:"Cerrar"}, K:[g.qI()]});this.closeButton.hR(this.element);g.H(this,this.closeButton);this.U(window,"blur",this.hide);this.U(document,"click",this.aH);this.au()}; tnh=function(O,R,J){g.mT.call(this,O);this.Fh=R;this.jZ=J;this.getVideoUrl=new hN(6);this.Ac=new hN(5);this.E$=new hN(4);this.sf=new hN(3);this.aq=new g.Lo(g.Ye({href:"{{href}}",target:this.X.T().W},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.Lo(g.Ye(),1,"Estad\u00edsticas");this.cg=new g.tQ({Y:"div",q1:["ytp-copytext","ytp-no-contextmenu"],C:{draggable:"false",tabindex:"1"},FQ:"{{text}}"});this.XI=new NT(this.X,this.cg);this.mF=this.OT=null;g.$X(this.X.T())&& (this.closeButton=new g.L({Y:"button",q1:["ytp-collapse","ytp-button"],C:{title:"Cerrar"},K:[g.qI()]}),g.H(this,this.closeButton),this.closeButton.hR(this.element),this.closeButton.listen("click",this.Xe,this));g.$X(this.X.T())&&(this.PP=new g.Lo(g.Ye(),8,"Cuenta"),g.H(this,this.PP),this.jr(this.PP,!0),this.PP.listen("click",this.cpJ,this),O.createClientVe(this.PP.element,this.PP,137682));this.X.T().O$&&(this.aU=new iY("En bucle",7),g.H(this,this.aU),this.jr(this.aU,!0),this.aU.listen("click",this.iGh, this),O.createClientVe(this.aU.element,this.aU,28661));g.H(this,this.getVideoUrl);this.jr(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.eh1,this);O.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.Ac);this.jr(this.Ac,!0);this.Ac.listen("click",this.w31,this);O.createClientVe(this.Ac.element,this.Ac,28660);g.H(this,this.E$);this.jr(this.E$,!0);this.E$.listen("click",this.F1Q,this);O.createClientVe(this.E$.element,this.E$,28658);g.H(this,this.sf);this.jr(this.sf, !0);this.sf.listen("click",this.HGJ,this);g.H(this,this.aq);this.jr(this.aq,!0);this.aq.listen("click",this.IhX,this);g.H(this,this.showVideoInfo);this.jr(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.sjX,this);g.H(this,this.cg);this.cg.listen("click",this.KMQ,this);g.H(this,this.XI);R=document.queryCommandSupported&&document.queryCommandSupported("copy");hLB("Chromium")>=43&&(R=!0);hLB("Firefox")<=40&&(R=!1);R&&(this.OT=new g.L({Y:"textarea",G:"ytp-html5-clipboard",C:{readonly:"", tabindex:"-1"}}),g.H(this,this.OT),this.OT.hR(this.element));var l;(l=this.PP)==null||l.setIcon(S4s());var u;(u=this.aU)==null||u.setIcon({Y:"svg",C:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"path",C:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.sf.setIcon({Y:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"path",C:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.aq.setIcon(rSp());this.showVideoInfo.setIcon(tDL());this.U(O,"onLoopChange",this.onLoopChange);this.U(O,"videodatachange",this.onVideoDataChange);rpx(this);this.bb(g.e(this.X.getVideoData()))}; nT=function(O,R){var J=!1;if(O.OT){var l=O.OT.element;l.value=R;l.select();try{J=document.execCommand("copy")}catch(u){}}J?O.Fh.Xh():(O.cg.KG(R,"text"),g.aR(O.Fh,O.XI),Kj(O.cg.element),O.OT&&(O.OT=null,rpx(O)));return J}; rpx=function(O){var R=!!O.OT;g.QM(O.sf,R?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");zs(O.sf,!R);g.QM(O.E$,R?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");zs(O.E$,!R);g.QM(O.getVideoUrl,R?"Copiar URL del video":"Obtener la URL del video");zs(O.getVideoUrl,!R);g.QM(O.Ac,R?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");zs(O.Ac,!R);O.E$.setIcon(R?wu2():null);O.getVideoUrl.setIcon(R? D$():null);O.Ac.setIcon(R?D$():null)}; o4H=function(O){return g.$X(O.X.T())?O.PP:O.aU}; Vn0=function(O,R){g.Dn.call(this,O);this.jZ=R;this.N=new g.p8(this);this.SN=new g.zR(this.wWh,1E3,this);this.Hq=this.B=null;g.H(this,this.N);g.H(this,this.SN);R=this.X.T();O.createClientVe(this.element,this,28656);g.F8(this.element,"ytp-contextmenu");this.X.T().experiments.Vh("delhi_modern_web_player")&&g.zj(R)&&g.F8(this.element,"ytp-delhi-modern-contextmenu");Zls(this);this.hide()}; Zls=function(O){g.MN(O.N);var R=O.X.T();R.playerStyle==="gvn"||R.S||R.JR||(R=O.X.cq(),O.N.U(R,"contextmenu",O.ATq),O.N.U(R,"touchstart",O.onTouchStart,null,!0),O.N.U(R,"touchmove",O.Zd,null,!0),O.N.U(R,"touchend",O.Zd,null,!0))}; fm2=function(O){O.X.isFullscreen()?g.bR(O.X,O.element,10):O.hR(xe(O).body)}; cr=function(O,R,J){J=J===void 0?240:J;g.L.call(this,{Y:"button",q1:["ytp-button","ytp-copylink-button"],C:{title:"{{title-attr}}","data-tooltip-opaque":String(g.$X(O.T()))},K:[{Y:"div",G:"ytp-copylink-icon",FQ:"{{icon}}"},{Y:"div",G:"ytp-copylink-title",FQ:"Copiar v\u00ednculo",C:{"aria-hidden":"true"}}]});this.api=O;this.L=R;this.S=J;this.visible=!1;this.tooltip=this.L.Ty();R=O.T();this.tooltip.element.setAttribute("aria-live","polite");g.wI(this.element,"ytp-show-copylink-title",g.$X(R));O.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.U(O,"videodatachange",this.au);this.U(O,"videoplayerreset",this.au);this.U(O,"appresize",this.au);this.au();this.addOnDisposeCallback(g.EY(this.tooltip,this.element))}; STh=function(O){var R=O.api.T(),J=g.e(O.api.getVideoData()),l=O.api.cq().getPlayerSize().width;R=R.B;return!!J.videoId&&l>=O.S&&J.Bu&&!g.zF(J)&&!O.api.isEmbedsShortsMode()&&!R}; NWp=function(O){O.updateValue("icon",SU());if(O.api.T().S)O.tooltip.O5(O.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{O.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");O.tooltip.Rc();O.tooltip.O5(O.element);var R=O.listen("mouseleave",function(){O.uK(R);O.au();O.tooltip.BI()})}}; mgp=function(O,R){return g.A(function(J){if(J.S==1)return g.N0(J,2),g.k(J,navigator.clipboard.writeText(R),4);if(J.S!=2)return J.return(!0);g.Tz(J);var l=J.return,u=!1,F=g.cE("TEXTAREA");F.value=R;F.setAttribute("readonly","");var G=O.api.getRootNode();G.appendChild(F);if(YS){var y=window.getSelection();y.removeAllRanges();var w=g.e(document.createRange());w.selectNodeContents(F);y.addRange(w);F.setSelectionRange(0,R.length)}else F.select();try{u=document.execCommand("copy")}catch(I){}G.removeChild(F); return l.call(J,u)})}; E4z=function(O){g.L.call(this,{Y:"div",G:"ytp-doubletap-ui-legacy",K:[{Y:"div",G:"ytp-doubletap-fast-forward-ve"},{Y:"div",G:"ytp-doubletap-rewind-ve"},{Y:"div",G:"ytp-doubletap-static-circle",K:[{Y:"div",G:"ytp-doubletap-ripple"}]},{Y:"div",G:"ytp-doubletap-overlay-a11y"},{Y:"div",G:"ytp-doubletap-seek-info-container",K:[{Y:"div",G:"ytp-doubletap-arrows-container",K:[{Y:"span",G:"ytp-doubletap-base-arrow"},{Y:"span",G:"ytp-doubletap-base-arrow"},{Y:"span",G:"ytp-doubletap-base-arrow"}]},{Y:"div", G:"ytp-doubletap-tooltip",K:[{Y:"div",G:"ytp-seek-icon-text-container",K:[{Y:"div",G:"ytp-seek-icon",FQ:"{{seekIcon}}"},{Y:"div",G:"ytp-chapter-seek-text-legacy",FQ:"{{seekText}}"}]},{Y:"div",G:"ytp-doubletap-tooltip-label",FQ:"{{seekTime}}"}]}]}]});this.X=O;this.N=new g.zR(this.show,10,this);this.S=new g.zR(this.hide,700,this);this.J=this.B=0;this.SN=this.j=!1;this.L=this.Bq("ytp-doubletap-static-circle");g.H(this,this.N);g.H(this,this.S);this.hide();this.V=this.Bq("ytp-doubletap-fast-forward-ve"); this.W=this.Bq("ytp-doubletap-rewind-ve");this.X.createClientVe(this.V,this,28240);this.X.createClientVe(this.W,this,28239);this.X.logVisibility(this.V,!0);this.X.logVisibility(this.W,!0);this.j=O.Z("web_show_cumulative_seek_time");this.SN=O.Z("web_center_static_circles")}; Dgs=function(O,R){R=g.fR("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:R.toString()});O.updateValue("seekTime",R)}; amh=function(O){S5.call(this,O,!1,!0);this.iz=[];this.d5=[];this.V=!0;this.badge.element.classList.add("ytp-featured-product");this.N1=new g.L({Y:"div",G:"ytp-featured-product-open-in-new"});g.H(this,this.N1);this.countdownTimer=new g.L({Y:"text",G:"ytp-featured-product-countdown",FQ:"{{content}}"});this.countdownTimer.hide();g.H(this,this.countdownTimer);this.S=new g.L({Y:"div",G:"ytp-featured-product-trending",K:[{Y:"div",G:"ytp-featured-product-trending-icon"},{Y:"text",G:"ytp-featured-product-trending-text", FQ:"{{trendingOffer}}"}]});this.S.hide();g.H(this,this.S);this.overflowButton=new g.L({Y:"button",q1:["ytp-featured-product-overflow-icon","ytp-button"],C:{"aria-haspopup":"true"}});this.overflowButton.hide();g.H(this,this.overflowButton);this.J=new g.L({Y:"text",G:"ytp-featured-product-exclusive-countdown",FQ:"{{content}}",C:{id:"exclusiveCountdown","aria-hidden":"true"}});this.J.hide();g.H(this,this.J);this.j=new g.L({Y:"div",G:"ytp-featured-product-exclusive-container",C:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, K:[{Y:"div",G:"ytp-featured-product-exclusive-badge-container",K:[{Y:"div",G:"ytp-featured-product-exclusive-badge",K:[{Y:"text",G:"ytp-featured-product-exclusive-badge-text",FQ:"{{exclusive}}",C:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.J]});this.j.hide();g.H(this,this.j);this.banner=new g.L({Y:"a",G:"ytp-featured-product-container",K:[{Y:"div",G:"ytp-featured-product-thumbnail",K:[{Y:"img",C:{src:"{{thumbnail}}"}},this.N1]},{Y:"div",G:"ytp-featured-product-details",K:[{Y:"text",G:"ytp-featured-product-title", FQ:"{{title}}"},this.X.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",G:"ytp-featured-product-price-container",C:{"aria-label":"{{priceA11yText}}"},K:[{Y:"text",G:"ytp-featured-product-price-when-promotion-text-enabled",FQ:"{{price}}",C:{"aria-hidden":"true"}},{Y:"text",G:"ytp-featured-product-promotion-text",FQ:"{{promotionText}}",C:{"aria-hidden":"true"}}]}:{Y:"div",C:{"aria-label":"{{priceA11yText}}"},K:[{Y:"text",G:"ytp-featured-product-price",FQ:"{{price}}", C:{"aria-hidden":"true"}},{Y:"text",G:"ytp-featured-product-sales-original-price",FQ:"{{salesOriginalPrice}}",C:{"aria-hidden":"true"}},{Y:"text",G:"ytp-featured-product-price-drop-reference-price",FQ:"{{priceDropReferencePrice}}",C:{"aria-hidden":"true"}}]},this.X.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",G:"ytp-featured-product-when-promotion-text-enabled",K:[{Y:"text",G:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",FQ:"{{affiliateDisclaimer}}"}, this.S,{Y:"text",G:"ytp-featured-product-vendor-when-promotion-text-enabled",FQ:"{{vendor}}"}]}:{Y:"div",K:[{Y:"text",G:"ytp-featured-product-affiliate-disclaimer",FQ:"{{affiliateDisclaimer}}"},this.X.Z("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.j:null,this.S,{Y:"text",G:"ytp-featured-product-vendor",FQ:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.H(this,this.banner);this.banner.hR(this.B.element);this.U(this.X,g.Gh("featured_product"),this.GSQ);this.U(this.X, g.KR("featured_product"),this.Zi);this.U(this.X,"videodatachange",this.onVideoDataChange);this.U(this.overflowButton.element,"click",this.UE);this.U(O,"featuredproductdismissed",this.Vo)}; v42=function(O){var R,J;O=(R=O.L)==null?void 0:(J=R.bannerData)==null?void 0:J.itemData;var l,u,F;return(O==null||!O.affiliateDisclaimer)&&(O==null?0:(l=O.exclusivesData)==null?0:l.exclusiveOfferLabelText)&&(O==null?0:(u=O.exclusivesData)==null?0:u.expirationTimestampMs)&&(O==null?0:(F=O.exclusivesData)==null?0:F.exclusiveOfferCountdownText)?!0:!1}; TWW=function(O){var R,J,l,u,F=(R=O.L)==null?void 0:(J=R.bannerData)==null?void 0:(l=J.itemData)==null?void 0:(u=l.exclusivesData)==null?void 0:u.expirationTimestampMs;R=(Number(F)-Date.now())/1E3;if(R>0){if(R<604800){var G,y,w,I;J=(G=O.L)==null?void 0:(y=G.bannerData)==null?void 0:(w=y.itemData)==null?void 0:(I=w.exclusivesData)==null?void 0:I.exclusiveOfferCountdownText;if(J!==void 0)for(G=Date.now(),y=g.N(J),w=y.next();!w.done;w=y.next())if(w=w.value,w!==void 0&&w.text!==void 0&&(I=Number(w.textDisplayStartTimestampMs), !isNaN(I)&&G>=I)){w.insertCountdown?(R=w.text.replace(/\$0/,String(Ty({seconds:R}))),O.J.KG(R)):O.J.KG(w.text);O.J.show();break}}var C,r,t,Z;O.j.update({exclusive:(C=O.L)==null?void 0:(r=C.bannerData)==null?void 0:(t=r.itemData)==null?void 0:(Z=t.exclusivesData)==null?void 0:Z.exclusiveOfferLabelText});O.j.show();Oz(O);var V;(V=O.mM)==null||V.start()}else Xj2(O)}; Xj2=function(O){var R;(R=O.mM)==null||R.stop();O.J.hide();O.j.hide();RO(O)}; $gs=function(O){var R,J,l=(R=O.L)==null?void 0:(J=R.bannerData)==null?void 0:J.itemData;return O.X.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(l==null||!l.priceReplacementText)&&(l==null?0:l.promotionText)?l==null?void 0:l.promotionText.content:null}; Mnp=function(O){var R,J,l=(R=O.L)==null?void 0:(J=R.bannerData)==null?void 0:J.itemData,u,F;if(!(l!=null&&l.priceReplacementText||O.X.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(l==null?0:(u=l.dealsData)==null?0:(F=u.sales)==null?0:F.originalPrice)){var G,y;return l==null?void 0:(G=l.dealsData)==null?void 0:(y=G.sales)==null?void 0:y.originalPrice}return null}; qTH=function(O){var R,J,l=(R=O.L)==null?void 0:(J=R.bannerData)==null?void 0:J.itemData,u,F,G,y;if(!((l==null?0:l.priceReplacementText)||O.X.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(l==null?0:(u=l.dealsData)==null?0:(F=u.sales)==null?0:F.originalPrice))&&(l==null?0:(G=l.dealsData)==null?0:(y=G.priceDrop)==null?0:y.referencePrice)){var w,I;return l==null?void 0:(w=l.dealsData)==null?void 0:(I=w.priceDrop)==null?void 0:I.referencePrice}return null}; kp0=function(O){var R,J,l=(R=O.L)==null?void 0:(J=R.bannerData)==null?void 0:J.itemData;if(l==null?0:l.priceReplacementText)return l==null?void 0:l.priceReplacementText;if((l==null?0:l.promotionText)&&O.X.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var u;return(l==null?void 0:l.price)+" "+(l==null?void 0:(u=l.promotionText)==null?void 0:u.content)}var F,G;if(l==null?0:(F=l.dealsData)==null?0:(G=F.sales)==null?0:G.originalPrice){var y,w;return l==null?void 0:(y=l.dealsData)== null?void 0:(w=y.sales)==null?void 0:w.salesPriceAccessibilityLabel}var I,C;if(l==null?0:(I=l.dealsData)==null?0:(C=I.priceDrop)==null?0:C.referencePrice){var r,t;return(l==null?void 0:l.price)+" "+(l==null?void 0:(r=l.dealsData)==null?void 0:(t=r.priceDrop)==null?void 0:t.referencePrice)}return l==null?void 0:l.price}; sns=function(O){if(O.X.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var R,J,l;return O.S.ou?null:(R=O.L)==null?void 0:(J=R.bannerData)==null?void 0:(l=J.itemData)==null?void 0:l.vendorName}var u,F,G,y,w,I;return O.S.ou||O.j.ou||((u=O.L)==null?0:(F=u.bannerData)==null?0:(G=F.itemData)==null?0:G.affiliateDisclaimer)?null:(y=O.L)==null?void 0:(w=y.bannerData)==null?void 0:(I=w.itemData)==null?void 0:I.vendorName}; Wch=function(O,R){JI(O);if(R){var J=g.Jd.getState().entities;J=Jk(J,"featuredProductsEntity",R);if(J!=null&&J.productsData){R=[];J=g.N(J.productsData);for(var l=J.next();!l.done;l=J.next()){l=l.value;var u=void 0;if((u=l)!=null&&u.identifier&&l.featuredSegments){O.iz.push(l);var F=void 0;u=g.N((F=l)==null?void 0:F.featuredSegments);for(F=u.next();!F.done;F=u.next()){var G=F.value;F=blB(G.startTimeSec);F!==void 0&&(G=blB(G.endTimeSec),R.push(new g.uN(F*1E3,G===void 0?0x7ffffffffffff:G*1E3,{id:l.identifier, namespace:"featured_product"})))}}}O.X.zy(R)}}}; RO=function(O){if(O.trendingOfferEntityKey){var R=g.Jd.getState().entities;if(R=Jk(R,"trendingOfferEntity",O.trendingOfferEntityKey)){var J,l,u;R.encodedSkuId!==((J=O.L)==null?void 0:(l=J.bannerData)==null?void 0:(u=l.itemData)==null?void 0:u.encodedOfferSkuId)?Oz(O):(O.S.update({trendingOffer:R.shortLabel+" \u2022 "+R.countLabel}),O.S.show(),O.banner.update({vendor:sns(O)}))}else Oz(O)}else Oz(O)}; Oz=function(O){O.S.hide();O.banner.update({vendor:sns(O)})}; JI=function(O){O.iz=[];O.Zi();O.X.XK("featured_product")}; ApA=function(O){var R,J,l,u,F=(R=O.L)==null?void 0:(J=R.bannerData)==null?void 0:(l=J.itemData)==null?void 0:(u=l.hiddenProductOptions)==null?void 0:u.dropTimestampMs;R=(Number(F)-Date.now())/1E3;O.countdownTimer.KG(Ty({seconds:R}));if(R>0){var G;(G=O.w5)==null||G.start()}}; e__=function(O){var R;(R=O.w5)==null||R.stop();O.countdownTimer.hide()}; blB=function(O){if(O!==void 0&&O.trim()!==""&&(O=Math.trunc(Number(O.trim())),!(isNaN(O)||O<0)))return O}; xgB=function(O,R,J){g.L.call(this,{Y:"div",q1:["ytp-info-panel-action-item"],K:[{Y:"div",G:"ytp-info-panel-action-item-disclaimer",FQ:"{{disclaimer}}"},{Y:"a",q1:["ytp-info-panel-action-item-button","ytp-button"],C:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},K:[{Y:"div",G:"ytp-info-panel-action-item-icon",FQ:"{{icon}}"},{Y:"div",G:"ytp-info-panel-action-item-label",FQ:"{{label}}"}]}]});this.X=O;this.L=J;this.disclaimer=this.Bq("ytp-info-panel-action-item-disclaimer");this.button= this.Bq("ytp-info-panel-action-item-button");this.Dh=!1;this.X.createServerVe(this.element,this,!0);this.listen("click",this.onClick);O="";J=g.x(R==null?void 0:R.onTap,PM);var l=g.x(J,g.PT);this.Dh=!1;l?(O=l.url||"",O.startsWith("//")&&(O="https:"+O),this.Dh=!0,g.hx(this.button,g.Yb(O))):(l=g.x(J,PjT))&&!this.L?((O=l.phoneNumbers)&&O.length>0?(O="sms:"+O[0],l.messageText&&(O+="?&body="+encodeURI(l.messageText))):O="",this.Dh=!0,g.hx(this.button,g.Yb(O,[pjB]))):(J=g.x(J,BWA))&&!this.L&&(O=J.phoneNumber? "tel:"+J.phoneNumber:"",this.Dh=!0,g.hx(this.button,g.Yb(O,[Hls])));var u;if(J=(u=R.disclaimerText)==null?void 0:u.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var F;this.update({label:(F=R.bodyText)==null?void 0:F.content,icon:XG(),disclaimer:J})}else{this.disclaimer.style.display="none";var G;this.update({label:(G=R.bodyText)==null?void 0:G.content,icon:XG()})}this.X.setTrackingParams(this.element,R.trackingParams||null);this.Dh&&(this.S={externalLinkData:{url:O}})}; UgW=function(O,R){var J=wo();g.HD.call(this,O,{Y:"div",G:"ytp-info-panel-detail-skrim",K:[{Y:"div",G:"ytp-info-panel-detail",C:{role:"dialog",id:J},K:[{Y:"div",G:"ytp-info-panel-detail-header",K:[{Y:"div",G:"ytp-info-panel-detail-title",FQ:"{{title}}"},{Y:"button",q1:["ytp-info-panel-detail-close","ytp-button"],C:{"aria-label":"Cerrar"},K:[g.Ek()]}]},{Y:"div",G:"ytp-info-panel-detail-body",FQ:"{{body}}"},{Y:"div",G:"ytp-info-panel-detail-items"}]}]},250);this.L=R;this.items=this.Bq("ytp-info-panel-detail-items"); this.B=new g.p8(this);this.itemData=[];this.N=J;this.U(this.Bq("ytp-info-panel-detail-close"),"click",this.Xh);this.U(this.Bq("ytp-info-panel-detail-skrim"),"click",this.Xh);this.U(this.Bq("ytp-info-panel-detail"),"click",function(l){l.stopPropagation()}); g.H(this,this.B);this.X.createServerVe(this.element,this,!0);this.U(O,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",O.getVideoData());this.hide()}; jnh=function(O,R){O=g.N(O.itemData);for(var J=O.next();!J.done;J=O.next())J=J.value,J.X.logVisibility(J.element,R)}; YTT=function(O,R){g.L.call(this,{Y:"div",G:"ytp-info-panel-preview",C:{"aria-live":"assertive","aria-atomic":"true","aria-owns":R.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.$X(O.T()))},K:[{Y:"div",G:"ytp-info-panel-preview-text",FQ:"{{text}}"},{Y:"div",G:"ytp-info-panel-preview-chevron",FQ:"{{chevron}}"}]});var J=this;this.X=O;this.QI=this.L=this.videoId=null;this.B=this.showControls=this.S=!1;this.U(this.element,"click",function(){O.logClick(J.element);O.sx();UY(R)}); this.fade=new g.iz(this,250,!1,100);g.H(this,this.fade);this.X.createServerVe(this.element,this,!0);this.U(O,"videodatachange",this.onVideoDataChange);this.U(O,"presentingplayerstatechange",this.lw);this.U(this.X,"paidcontentoverlayvisibilitychange",this.Pm);this.U(this.X,"infopaneldetailvisibilitychange",this.Pm);var l=O.getVideoData()||{};Qnp(l)&&Lcx(this,l);this.U(O,"onShowControls",this.zp);this.U(O,"onHideControls",this.mY)}; Lcx=function(O,R){if(!R.lc||!O.X.QE()){var J=R.oI||1E4,l=Qnp(R);O.L?R.videoId&&R.videoId!==O.videoId&&(g.OW(O.L),O.videoId=R.videoId,l?(dg_(O,J,R),O.EZ()):(O.Xh(),O.L.dispose(),O.L=null)):l&&(R.videoId&&(O.videoId=R.videoId),dg_(O,J,R),O.EZ())}}; Qnp=function(O){var R,J,l,u;return!!((R=O.vW)==null?0:(J=R.title)==null?0:J.content)||!!((l=O.vW)==null?0:(u=l.bodyText)==null?0:u.content)}; dg_=function(O,R,J){O.L&&O.L.dispose();O.L=new g.zR(O.VzX,R,O);g.H(O,O.L);var l;R=((l=J.vW)==null?void 0:l.trackingParams)||null;O.X.setTrackingParams(O.element,R);var u;var F,G;if(J==null?0:(F=J.vW)==null?0:(G=F.title)==null?0:G.content){var y;l=(u=J.vW)==null?void 0:(y=u.title)==null?void 0:y.content;var w,I;if((w=J.vW)==null?0:(I=w.bodyText)==null?0:I.content)l+=" \u2022 ";u=l}else u="";var C,r;J=((C=J.vW)==null?void 0:(r=C.bodyText)==null?void 0:r.content)||"";O.update({text:u+J,chevron:g.my()})}; h_2=function(O,R){O.L&&(g.d(R,8)?(O.S=!0,O.EZ(),O.L.start()):(g.d(R,2)||g.d(R,64))&&O.videoId&&(O.videoId=null))}; i0=function(O){var R=null;try{R=O.toLocaleString("es-419",{style:"percent"})}catch(J){R=O.toLocaleString(void 0,{style:"percent"})}return R}; l0=function(O,R){var J=0;O=g.N(O);for(var l=O.next();!(l.done||l.value.startTime>R);l=O.next())J++;return J===0?J:J-1}; z_x=function(O,R){for(var J=0,l=g.N(O),u=l.next();!u.done;u=l.next()){u=u.value;if(R=u.timeRangeStartMillis&&R0?R[0]:null;var J=g.LI("ytp-chrome-bottom"),l=g.LI("ytp-ad-module");O.N=!(J==null||!J.contains(R));O.V=!(l==null||!l.contains(R));O.W=!(R==null||!R.hasAttribute("data-tooltip-target-fixed"));return R}; rPp=function(O,R,J){if(!O.j){if(R){O.tooltipRenderer=R;R=O.tooltipRenderer.text;var l=!1,u;(R==null?0:(u=R.runs)==null?0:u.length)&&R.runs[0].text&&(O.update({title:R.runs[0].text.toString()}),l=!0);g.nS(O.title,l);R=O.tooltipRenderer.detailsText;u=!1;var F;if((R==null?0:(F=R.runs)==null?0:F.length)&&R.runs[0].text){l=R.runs[0].text.toString();F=l.indexOf("$TARGET_ICON");if(F>-1)if(O.tooltipRenderer.targetId){R=[];l=l.split("$TARGET_ICON");var G=new g.Ih({Y:"span",G:"ytp-promotooltip-details-icon", K:[Ivp[O.tooltipRenderer.targetId]]});g.H(O,G);for(var y=[],w=g.N(l),I=w.next();!I.done;I=w.next())I=new g.Ih({Y:"span",G:"ytp-promotooltip-details-component",FQ:I.value}),g.H(O,I),y.push(I);l.length===2?(R.push(y[0].element),R.push(G.element),R.push(y[1].element)):l.length===1&&(F===0?(R.push(G.element),R.push(y[0].element)):(R.push(y[0].element),R.push(G.element)));F=R.length?R:null}else F=null;else F=l;if(F){if(typeof F!=="string")for(g.Jh(O.details),u=g.N(F),F=u.next();!F.done;F=u.next())O.details.appendChild(F.value); else O.update({details:F});u=!0}}g.nS(O.details,u);u=O.tooltipRenderer.acceptButton;F=!1;var C,r,t;((C=g.x(u,g.HO))==null?0:(r=C.text)==null?0:(t=r.runs)==null?0:t.length)&&g.x(u,g.HO).text.runs[0].text&&(O.update({acceptButtonText:g.x(u,g.HO).text.runs[0].text.toString()}),F=!0);g.nS(O.acceptButton,F);C=O.tooltipRenderer.dismissButton;r=!1;var Z,V,m;((Z=g.x(C,g.HO))==null?0:(V=Z.text)==null?0:(m=V.runs)==null?0:m.length)&&g.x(C,g.HO).text.runs[0].text&&(O.update({dismissButtonText:g.x(C,g.HO).text.runs[0].text.toString()}), r=!0);g.nS(O.dismissButton,r)}J&&(O.B=J);O.L=wyp(O);O.J=!1;O.X.T().Z("web_player_hide_nitrate_promo_tooltip")||O.M9(!0);C3h(O);O.ou&&!O.SN&&(O.SN=!0,O.nG.WB(0));O.S&&O.X.logVisibility(O.element,O.ou)}}; IO=function(O){O.M9(!1);O.S&&O.X.logVisibility(O.element,O.ou)}; tsL=function(O){var R,J,l,u=((R=g.x(O.acceptButton,g.HO))==null?void 0:(J=R.text)==null?void 0:(l=J.runs)==null?void 0:l.length)&&!!g.x(O.acceptButton,g.HO).text.runs[0].text,F,G,y;R=((F=g.x(O.dismissButton,g.HO))==null?void 0:(G=F.text)==null?void 0:(y=G.runs)==null?void 0:y.length)&&!!g.x(O.dismissButton,g.HO).text.runs[0].text;return u||R}; C3h=function(O){var R;if(!(R=!O.L)){R=O.L;var J=window.getComputedStyle(R);R=J.display==="none"||J.visibility==="hidden"||R.getAttribute("aria-hidden")==="true"}if(R||O.X.isMinimized())O.M9(!1);else if(R=g.zX(O.L),R.width&&R.height){O.X.XT(O.element,O.L);var l=O.X.cq().getPlayerSize().height;J=g.zX(O.Bq("ytp-promotooltip-container")).height;O.N?O.element.style.top=l-J-R.height-12+"px":O.W||(l=O.X.xV().height-J-R.height-12,O.element.style.top=l+"px");l=O.Bq("ytp-promotooltip-pointer");var u=g.dN(O.L, O.X.getRootNode()),F=Number(O.element.style.left.replace(/[^\d\.]/g,""));O=O.X.isFullscreen()?18:12;l.style.left=u.x-F+R.width/2-O+"px";l.style.top=J+"px"}else O.M9(!1)}; Cc=function(O){g.L.call(this,{Y:"button",q1:["ytp-replay-button","ytp-button"],C:{title:"Volver a reproducir"},K:[g.$H()]});this.X=O;this.U(O,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.UZ(O.getPlayerStateObject());D9(this.X,this.element,this)}; ra=function(O,R){R=R===void 0?240:R;g.L.call(this,{Y:"button",q1:["ytp-button","ytp-search-button"],C:{title:"Buscar","data-tooltip-opaque":String(g.$X(O.T()))},K:[{Y:"div",G:"ytp-search-icon",FQ:"{{icon}}"},{Y:"div",G:"ytp-search-title",FQ:"Buscar"}]});this.api=O;this.S=R;this.visible=!1;this.updateValue("icon",{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},K:[{Y:"path",G:"ytp-svg-fill",C:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); O.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.L();this.U(O,"appresize",this.L);this.U(O,"videodatachange",this.L);D9(O,this.element,this)}; tI=function(O){g.L.call(this,{Y:"div",G:"ytp-seek-overlay",K:[{Y:"div",q1:["ytp-seek-overlay-side-container","ytp-seek-overlay-back"],K:[{Y:"div",q1:["ytp-seek-overlay-arrow-container","ytp-seek-overlay-arrow-container-back"]}]},{Y:"div",q1:["ytp-seek-overlay-side-container","ytp-seek-overlay-forward"],K:[{Y:"div",q1:["ytp-seek-overlay-arrow-container","ytp-seek-overlay-arrow-container-forward"]}]},{Y:"div",G:"ytp-seek-overlay-message",K:[{Y:"div",G:"ytp-seek-overlay-message-icon",FQ:"{{icon}}"}, {Y:"div",G:"ytp-seek-overlay-message-text",FQ:"{{text}}"}]}]});this.X=O;this.S=0;this.j=!1;this.L=this.Bq("ytp-seek-overlay-arrow-container-back");this.B=this.Bq("ytp-seek-overlay-arrow-container-forward");this.V=this.Bq("ytp-seek-overlay-message");this.X.createClientVe(this.B,this,28240);this.X.createClientVe(this.L,this,28239);this.X.logVisibility(this.B,!0);this.X.logVisibility(this.L,!0);this.hide()}; Vss=function(O,R,J){O.show();omL(O,R);J!==void 0&&ZBA(O,R,J)}; omL=function(O,R){var J=new g.Ih({Y:"svg",G:"ytp-seek-overlay-arrow",C:{viewBox:"0 0 100 100"},K:[{Y:"path",G:"ytp-seek-overlay-arrow-path",C:{d:R===-1?"M 80 20 L 50 50 L 80 80":"M 20 20 L 50 50 L 20 80",fill:"none",stroke:"white","stroke-width":"10"}}]});g.H(O,J);R===-1?J.hR(O.L):J.hR(O.B);var l=J.element;l.animate([{translate:R===-1?"30px":"-30px",scale:"1.4 0.4",opacity:0,easing:"ease"},{offset:.15,opacity:"1",easing:"ease"},{offset:.5,translate:"0",scale:"1 1",easing:"ease"}],{duration:800}).addEventListener("finish", function(){l.remove();fvs(O)}); J.Bq("ytp-seek-overlay-arrow-path").animate([{strokeWidth:"0"},{offset:.5,strokeWidth:"10"},{offset:.7,strokeWidth:"10"},{offset:1,strokeWidth:"0"}],{duration:800,easing:"ease"})}; ZBA=function(O,R,J){O.J!==R&&(O.S=0,O.J=R);O.S+=J;J=new g.Ih({Y:"div",G:"ytp-seek-overlay-duration",FQ:R===-1?"\u2212"+g.vI(O.S):"+"+g.vI(O.S)});g.H(O,J);R===-1?J.hR(O.L):J.hR(O.B);O.N&&O.N.animate([{offset:0},{offset:1,opacity:0}],{duration:300,easing:"ease",fill:"forwards"});var l=J.element;O.N=l;l.animate([{offset:0,scale:.5,opacity:0,easing:"ease-out"},{offset:.5,scale:1,opacity:1},{offset:.8,scale:1,opacity:1},{offset:1,opacity:0}],{duration:800,easing:"ease"}).addEventListener("finish",function(){l.remove(); O.N===l&&(O.N=void 0);fvs(O)})}; SVf=function(O,R,J){O.updateValue("text",R);if(J){a:{switch(J){case "PREMIUM_STANDALONE":R=ESA();break a;case "PREMIUM_STANDALONE_CAIRO":R=D$h();break a}R=void 0}O.updateValue("icon",R)}R=g.N(O.V.getAnimations());for(J=R.next();!J.done;J=R.next())J.value.cancel();O.j=!0;O.V.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:800}).addEventListener("finish",function(){O.j=!1;fvs(O);O.updateValue("text","");O.updateValue("icon","")})}; fvs=function(O){O.L.children.length!==0||O.B.children.length!==0||O.j||O.hide()}; g.oO=function(O,R,J,l){l=l===void 0?240:l;g.L.call(this,{Y:"button",q1:["ytp-button","ytp-share-button"],C:{title:"Compartir","aria-haspopup":"true","aria-owns":J.element.id,"data-tooltip-opaque":String(g.$X(O.T()))},K:[{Y:"div",G:"ytp-share-icon",FQ:"{{icon}}"},{Y:"div",G:"ytp-share-title",FQ:"Compartir"}]});this.api=O;this.L=R;this.B=J;this.N=l;this.S=this.visible=!1;this.tooltip=this.L.Ty();O.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.U(O,"videodatachange",this.au); this.U(O,"videoplayerreset",this.au);this.U(O,"appresize",this.au);this.U(O,"presentingplayerstatechange",this.au);this.au();this.addOnDisposeCallback(g.EY(this.tooltip,this.element))}; N$_=function(O){var R=O.api.T(),J=g.e(O.api.getVideoData()),l=g.$X(R)&&g.MB(O.api)&&g.d(O.api.getPlayerStateObject(),128);R=R.B||R.disableSharing&&O.api.getPresentingPlayerType()!==2||!J.showShareButton||J.Bu||l||g.zF(J)||O.S;l=O.api.cq().getPlayerSize().width;return!!J.videoId&&l>=O.N&&!R}; mE_=function(O,R){R.name!=="InvalidStateError"&&R.name!=="AbortError"&&(R.name==="NotAllowedError"?(O.L.sx(),UY(O.B,O.element,!1)):g.WM(R))}; DE2=function(O,R){var J=wo(),l=O.T();J={Y:"div",G:"ytp-share-panel",C:{id:wo(),role:"dialog","aria-labelledby":J},K:[{Y:"div",G:"ytp-share-panel-inner-content",K:[{Y:"div",G:"ytp-share-panel-title",C:{id:J},FQ:"Compartir"},{Y:"a",q1:["ytp-share-panel-link","ytp-no-contextmenu"],C:{href:"{{link}}",target:l.W,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},FQ:"{{linkText}}"},{Y:"label",G:"ytp-share-panel-include-playlist",K:[{Y:"input",G:"ytp-share-panel-include-playlist-checkbox", C:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{Y:"div",G:"ytp-share-panel-loading-spinner",K:[Go()]},{Y:"div",G:"ytp-share-panel-service-buttons",FQ:"{{buttons}}"},{Y:"div",G:"ytp-share-panel-error",FQ:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{Y:"button",q1:["ytp-share-panel-close","ytp-button"],C:{title:"Cerrar"},K:[g.Ek()]}]};g.HD.call(this,O,J,250);var u=this;this.moreButton=null;this.api=O;this.tooltip=R.Ty();this.B=[];this.j= this.Bq("ytp-share-panel-inner-content");this.closeButton=this.Bq("ytp-share-panel-close");this.U(this.closeButton,"click",this.Xh);this.addOnDisposeCallback(g.EY(this.tooltip,this.closeButton));this.N=this.Bq("ytp-share-panel-include-playlist-checkbox");this.U(this.N,"click",this.au);this.L=this.Bq("ytp-share-panel-link");this.addOnDisposeCallback(g.EY(this.tooltip,this.L));this.api.createClientVe(this.L,this,164503);this.U(this.L,"click",function(F){F.preventDefault();u.api.logClick(u.L);var G= u.api.getVideoUrl(!0,!0,!1,!1);G=Em2(u,G);g.FU(G,u.api,F)&&u.api.tR("SHARE_CLICKED")}); this.listen("click",this.tQ);this.U(O,"videoplayerreset",this.hide);this.U(O,"fullscreentoggled",this.onFullscreenToggled);this.U(O,"onLoopRangeChange",this.Czq);this.hide()}; XyT=function(O,R){avB(O);for(var J=R.links||R.shareTargets,l=0,u={},F=0;F0&&!z&&!W?(b.length===2&&(b=["noreferrer"]),g.Jg(Z,m,t,b[0]),Z=dGx()):(E=v.join(","),Eo()&&Z.navigator&&Z.navigator.standalone&&t&&t!="_self"?(E=g.cE("A"),g.hx(E,m),E.target=t,a&&(E.rel="noreferrer"),((V=V.attributionsrc)||V==="")&&E.setAttribute("attributionsrc",V),V=document.createEvent("MouseEvent"), V.initMouseEvent("click",!0,!0,Z,1),E.dispatchEvent(V),Z=dGx()):a?(Z=g.Jg(Z,"",t,E),V=g.U5(m),Z&&(Z.opener=null,V===""&&(V="javascript:''"),V='',V=cl(V),(m=Z.document)&&m.write&&(m.write(R4(V)),m.close()))):((Z=g.Jg(Z,m,t,E))&&V.noopener&&(Z.opener=null),Z&&V.noreferrer&&(Z.opener=null)));Z&&(Z.opener||(Z.opener=window),Z.focus());r.preventDefault()}}}(u)); u.Kx.addOnDisposeCallback(g.EY(O.tooltip,u.Kx.element));y==="Facebook"?O.api.createClientVe(u.Kx.element,u.Kx,164504):y==="Twitter"&&O.api.createClientVe(u.Kx.element,u.Kx,164505);O.U(u.Kx.element,"click",function(C){return function(){O.api.logClick(C.Kx.element)}}(u)); O.api.logVisibility(u.Kx.element,!0);O.B.push(u.Kx);l++}}var w=R.more||R.moreLink,I=new g.L({Y:"a",q1:["ytp-share-panel-service-button","ytp-button"],K:[{Y:"span",G:"ytp-share-panel-service-button-more",K:[{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{Y:"rect",C:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Y:"path",C:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],C:{href:w,target:"_blank",title:"M\u00e1s"}});I.listen("click",function(C){var r=w;O.api.logClick(O.moreButton.element);r=Em2(O,r);g.FU(r,O.api,C)&&O.api.tR("SHARE_CLICKED")}); I.addOnDisposeCallback(g.EY(O.tooltip,I.element));O.api.createClientVe(I.element,I,164506);O.U(I.element,"click",function(){O.api.logClick(I.element)}); O.api.logVisibility(I.element,!0);O.B.push(I);O.moreButton=I;O.updateValue("buttons",O.B)}; Em2=function(O,R){var J={};g.$X(O.api.T())&&(g.wL(O.api,"addEmbedsConversionTrackingParams",[J]),R=g.s9(R,J));return R}; avB=function(O){for(var R=g.N(O.B),J=R.next();!J.done;J=R.next())J=J.value,J.detach(),g.rd(J);O.B=[]}; ZI=function(O){return O===void 0||O.startSec===void 0||O.endSec===void 0?!1:!0}; T$z=function(O,R){O.startSec+=R;O.endSec+=R}; Mss=function(O){S5.call(this,O);this.S=this.L=this.isContentForward=this.J=!1;$Ex(this);this.U(this.X,"changeProductsInVideoVisibility",this.wYq);this.U(this.X,"videodatachange",this.onVideoDataChange)}; qVB=function(O){O.j&&O.xS.element.removeChild(O.j.element);O.j=void 0}; spT=function(O,R){return R.map(function(J){var l,u;if((J=(l=g.x(J,k5B))==null?void 0:(u=l.thumbnail)==null?void 0:u.thumbnails)&&J.length!==0)return J[0].url}).filter(function(J){return J!==void 0}).map(function(J){J=new g.L({Y:"img", G:"ytp-suggested-action-product-thumbnail",C:{alt:"",src:J}});g.H(O,J);return J})}; bB2=function(O,R){O.isContentForward=R;g.wI(O.badge.element,"ytp-suggested-action-badge-content-forward",R)}; Vw=function(O){var R=O.isContentForward&&!O.pw();g.wI(O.badge.element,"ytp-suggested-action-badge-preview-collapsed",R&&O.L);g.wI(O.badge.element,"ytp-suggested-action-badge-preview-expanded",R&&O.S)}; fc=function(O,R,J){return new g.uN(O*1E3,R*1E3,{priority:9,namespace:J})}; WgW=function(O){O.X.XK("shopping_overlay_visible");O.X.XK("shopping_overlay_preview_collapsed");O.X.XK("shopping_overlay_preview_expanded");O.X.XK("shopping_overlay_expanded")}; $Ex=function(O){O.U(O.X,g.Gh("shopping_overlay_visible"),function(){O.RF(!0)}); O.U(O.X,g.KR("shopping_overlay_visible"),function(){O.RF(!1)}); O.U(O.X,g.Gh("shopping_overlay_expanded"),function(){O.Hq=!0;fV(O)}); O.U(O.X,g.KR("shopping_overlay_expanded"),function(){O.Hq=!1;fV(O)}); O.U(O.X,g.Gh("shopping_overlay_preview_collapsed"),function(){O.L=!0;Vw(O)}); O.U(O.X,g.KR("shopping_overlay_preview_collapsed"),function(){O.L=!1;Vw(O)}); O.U(O.X,g.Gh("shopping_overlay_preview_expanded"),function(){O.S=!0;Vw(O)}); O.U(O.X,g.KR("shopping_overlay_preview_expanded"),function(){O.S=!1;Vw(O)})}; P3f=function(O){g.L.call(this,{Y:"div",G:"ytp-shorts-title-channel",K:[{Y:"a",G:"ytp-shorts-title-channel-logo",C:{href:"{{channelLink}}",target:O.T().W,"aria-label":"{{channelLogoLabel}}"}},{Y:"div",G:"ytp-shorts-title-expanded-heading",K:[{Y:"div",G:"ytp-shorts-title-expanded-title",K:[{Y:"a",FQ:"{{expandedTitle}}",C:{href:"{{channelTitleLink}}",target:O.T().W,tabIndex:"0"}}]}]}]});var R=this;this.api=O;this.L=this.Bq("ytp-shorts-title-channel-logo");this.channelName=this.Bq("ytp-shorts-title-expanded-title"); this.subscribeButton=null;O.createClientVe(this.L,this,36925);this.U(this.L,"click",function(J){R.api.logClick(R.L);g.Jg(window,APW(R));J.preventDefault()}); O.createClientVe(this.channelName,this,37220);this.U(this.channelName,"click",function(J){R.api.logClick(R.channelName);g.Jg(window,APW(R));J.preventDefault()}); esA(this);this.U(O,"videodatachange",this.au);this.U(O,"videoplayerreset",this.au);this.au()}; esA=function(O){if(!O.api.T().AT){var R=g.e(O.api.getVideoData()),J=new g.d5("Suscribirse",null,"Suscrito/a",null,!0,!1,R.oU,R.subscribed,"channel_avatar",null,O.api,!0);O.api.createServerVe(J.element,O);var l;O.api.setTrackingParams(J.element,((l=R.subscribeButtonRenderer)==null?void 0:l.trackingParams)||null);O.U(J.element,"click",function(){O.api.logClick(J.element)}); O.subscribeButton=J;g.H(O,O.subscribeButton);O.subscribeButton.hR(O.element)}}; APW=function(O){var R=O.api.T(),J=g.e(O.api.getVideoData());J=g.ir(R)+J.Rz;if(!g.$X(R))return J;R={};g.wL(O.api,"addEmbedsConversionTrackingParams",[R]);return g.s9(J,R)}; St=function(O){g.HD.call(this,O,{Y:"button",q1:["ytp-skip-intro-button","ytp-popup","ytp-button"],K:[{Y:"div",G:"ytp-skip-intro-button-text",FQ:"Omitir introducci\u00f3n"}]},100);var R=this;this.B=!1;this.L=new g.zR(function(){R.hide()},5E3); this.jR=this.Sa=NaN;g.H(this,this.L);this.J=function(){R.show()}; this.j=function(){R.hide()}; this.N=function(){var J=R.X.getCurrentTime();J>R.Sa/1E3&&J0?{Y:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{Y:"path",q1:["ytp-circle-arrow","ytp-svg-fill"],C:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {Y:"text",q1:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"7.05",y:"15.05"}}]}:{Y:"svg",C:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{Y:"path",q1:["ytp-circle-arrow","ytp-svg-fill"],C:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {Y:"text",q1:["ytp-jump-button-text","ytp-svg-fill"],C:{x:"6.5",y:"15"}}]}]});var J=this;this.X=O;this.L=R;this.S=new g.zR(function(){J.B?(J.B=!1,J.S.start()):J.element.classList.remove("ytp-jump-spin","backwards")},250); this.B=!1;(R=R>0)?this.X.createClientVe(this.element,this,36843):this.X.createClientVe(this.element,this,36844);var l=g.fR(R?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.L).toString()});this.update({title:l,"data-title-no-tooltip":l,"aria-keyshortcuts":R?"\u2192":"\u2190"});this.N=this.element.querySelector(".ytp-jump-button-text");this.N.textContent=Math.abs(this.L).toString();this.listen("click",this.onClick,this);D9(O,this.element,this)}; QpT=function(O,R){R?O.element.classList.add("ytp-jump-button-enabled"):O.element.classList.remove("ytp-jump-button-enabled");O.X.logVisibility(O.element,R);O.X.Rc()}; Xn=function(O,R){md.call(this,O,R,"timedMarkerCueRange","Ver momentos clave");this.U(O,g.KR("timedMarkerCueRange"),this.v3);this.U(O,"updatemarkervisibility",this.updateVideoData)}; Lg_=function(O){var R,J=(R=O.X.getVideoData())==null?void 0:R.sQ;if(J)for(O=O.N.Gd,J=g.N(J),R=J.next();!R.done;R=J.next())if(R=O[R.value]){var l=void 0,u=void 0,F=void 0;if(((l=R.onTap)==null?void 0:(u=l.innertubeCommand)==null?void 0:(F=u.changeEngagementPanelVisibilityAction)==null?void 0:F.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return R}}; Tu=function(O){var R=O.Z("web_enable_pip_on_miniplayer");g.L.call(this,{Y:"button",q1:["ytp-miniplayer-button","ytp-button"],C:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},K:[R?{Y:"svg",C:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},K:[{Y:"g",C:{transform:"translate(96, -96) scale(0.8)"},K:[{Y:"path",LG:!0,C:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}: m$H()]});this.X=O;this.visible=!1;this.listen("click",this.onClick);this.U(O,"fullscreentoggled",this.au);this.updateValue("title",g.aI(O,"Reproductor en miniatura","i"));this.update({"data-title-no-tooltip":"Reproductor en miniatura"});D9(O,this.element,this);O.createClientVe(this.element,this,62946);this.au()}; $Z=function(O,R,J){J=J===void 0?!1:J;g.L.call(this,{Y:"button",q1:["ytp-mute-button","ytp-button"],C:O.T().Iu?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},FQ:"{{icon}}"});this.X=O;this.N1=J;this.L=null;this.N=this.W=this.j=this.Hq=NaN;this.OQ=this.J=null;this.B=[];this.S=[];this.visible=!1;this.V=null;O.Z("delhi_modern_web_player")&&this.update({"data-priority":4}); J=this.X.T();this.updateValue("icon",kH());this.tooltip=R.Ty();this.L=new g.Ih({Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"defs",K:[{Y:"clipPath",C:{id:"ytp-svg-volume-animation-mask"},K:[{Y:"path",C:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Y:"path",C:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{Y:"path",G:"ytp-svg-volume-animation-mover",C:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{Y:"clipPath",C:{id:"ytp-svg-volume-animation-slash-mask"}, K:[{Y:"path",G:"ytp-svg-volume-animation-mover",C:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{Y:"path",LG:!0,q1:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],C:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{Y:"path",LG:!0,q1:["ytp-svg-fill","ytp-svg-volume-animation-hider"],C:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.H(this,this.L);this.J=this.L.Bq("ytp-svg-volume-animation-speaker");this.OQ=g.e(this.J.getAttribute("d"));this.B=g.j0("ytp-svg-volume-animation-mover",this.L.element);this.S=g.j0("ytp-svg-volume-animation-hider",this.L.element);this.iz=new dR;g.H(this,this.iz);this.SN=new dR;g.H(this,this.SN);this.listen("click",this.v9S);this.U(O,"appresize",this.KP);this.U(O,"onVolumeChange",this.onVolumeChange);var l=null;J.Iu?O.Z("delhi_modern_web_player")? this.addOnDisposeCallback(g.EY(R.Ty(),this.element,-120)):this.addOnDisposeCallback(g.EY(R.Ty(),this.element)):(R="Tu navegador no permite cambiar el volumen. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK".split(/\$(BEGIN|END)_LINK/),l=new g.HD(O,{Y:"span",q1:["ytp-popup","ytp-generic-popup"],C:{tabindex:"0"},K:[R[0],{Y:"a",C:{href:"https://support.google.com/youtube/?p=noaudio",target:J.W},FQ:R[2]},R[4]]},100,!0),g.H(this,l),l.hide(),l.subscribe("show",function(u){O.sA(l,u)}),g.bR(O,l.element,4)); this.message=l;O.createClientVe(this.element,this,28662);this.KP(O.cq().getPlayerSize());this.setVolume(O.getVolume(),O.isMuted())}; hs_=function(O,R){O.Hq=R;var J=O.OQ;R&&(J+=INH(YVH,dEW,R));O.J.setAttribute("d",J)}; zsf=function(O,R){O.W=R;for(var J=20*R,l=0;l=3&&O.X.getPresentingPlayerType()!==2}; JRf=function(O){var R=$e(O.X.eG());return R?O.L?R.rB():R.u7():!1}; cPz=function(O){var R={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},J=O.playlist!=null&&O.playlist.rB();J=g.MB(O.X)&&(!O.L||J);var l=O.L&&g.WD(O.X),u=JRf(O),F=O.L&&O.X.getPresentingPlayerType()===5,G=g.aI(O.X,"Siguiente","SHIFT+n"),y=g.aI(O.X,"Anterior","SHIFT+p");if(F)R.title="Iniciar video";else if(O.B)R.title="Volver a reproducir";else if(J){var w=null;O.playlist&&(w=g.IM(O.playlist,O.L?LlW(O.playlist):Yvx(O.playlist)));if(w){if(w.videoId){var I= O.playlist.listId;R.url=O.X.T().getVideoUrl(w.videoId,I?I.toString():void 0)}R.text=w.title;R.duration=w.lengthText?w.lengthText:w.lengthSeconds?g.vI(w.lengthSeconds):null;R.preview=w.h1("mqdefault.jpg")}O.L?(R.title=G,R["data-title-no-tooltip"]="Siguiente",R["aria-keyshortcuts"]="SHIFT+n"):(R.title=y,R["data-title-no-tooltip"]="Anterior",R["aria-keyshortcuts"]="SHIFT+p")}else if(l){if(y=(w=O.videoData)==null?void 0:g.OI(w))R.url=y.DQ(),R.text=y.title,R.duration=y.lengthText?y.lengthText:y.lengthSeconds? g.vI(y.lengthSeconds):null,R.preview=y.h1("mqdefault.jpg");R.title=G;R["data-title-no-tooltip"]="Siguiente";R["aria-keyshortcuts"]="SHIFT+n"}R.disabled=!l&&!J&&!u&&!F;O.update(R);O.J=!!R.url;l||J||O.B||u||F?O.S||(O.S=g.EY(O.tooltip,O.element),O.j=O.listen("click",O.onClick,O)):O.S&&(O.S(),O.S=null,O.uK(O.j),O.j=null);O.tooltip.Rc();g.wI(O.element,"ytp-playlist-ui",O.L&&J)}; i5p=function(O,R){g.L.call(this,{Y:"div",G:"ytp-fine-scrubbing",K:[{Y:"div",G:"ytp-fine-scrubbing-draggable",K:[{Y:"div",G:"ytp-fine-scrubbing-thumbnails",C:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic en el panel o despl\u00e1zate por \u00e9l para usar la b\u00fasqueda precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{Y:"div",C:{"aria-hidden":"true"},G:"ytp-fine-scrubbing-cursor"},{Y:"div", G:"ytp-fine-scrubbing-seek-time",C:{"aria-hidden":"true"},FQ:"{{seekTime}}"},{Y:"div",G:"ytp-fine-scrubbing-play",K:[TI()],C:{title:"Reproducir desde este momento",role:"button"}},{Y:"div",G:"ytp-fine-scrubbing-dismiss",K:[g.Ek()],C:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var J=this;this.api=O;this.j=this.Bq("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Bq("ytp-fine-scrubbing-dismiss");this.OQ=this.Bq("ytp-fine-scrubbing-draggable");this.playButton=this.Bq("ytp-fine-scrubbing-play"); this.thumbnails=[];this.S=[];this.Qh=this.L=0;this.xS=void 0;this.SN=NaN;this.Iu=this.W=this.B=this.V=0;this.N=[];this.interval=this.frameCount=0;this.J=160;this.scale=1;this.JR=0;this.isEnabled=this.N1=!1;g72(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.EY(R,this.dismissButton));this.addOnDisposeCallback(g.EY(R,this.playButton));this.iz=new g.Ab(this.OQ,!0);this.iz.subscribe("dragstart",this.AG,this);this.iz.subscribe("dragmove",this.VH,this);this.iz.subscribe("dragend",this.PE,this); this.U(O,"SEEK_COMPLETE",this.sE);O.Z("web_fix_fine_scrubbing_false_play")&&this.U(O,"rootnodemousedown",function(l){J.Hq=l}); this.j.addEventListener("keydown",function(){}); g.H(this,this.iz);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.j,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; g72=function(O,R){var J=g.vI(R),l=g.fR("Saltar a: $PROGRESS",{PROGRESS:g.vI(R,!0)});O.update({ariamin:0,ariamax:Math.floor(O.api.getDuration()),arianow:Math.floor(R),arianowtext:l,seekTime:J})}; lYp=function(O){O.SN=NaN;O.W=0;O.V=O.B}; GBz=function(O){var R=O.api.wK();if(R){var J=90*O.scale,l=AX(R,160*O.scale);if(R=R.levels[l]){O.J=R.width;if(!O.N.length){l=[];for(var u=eN(R,R.qS()),F=R.columns*R.rows,G=R.frameCount,y=0;y<=u;y++)for(var w=GO.N.length;)l= void 0,(l=O.thumbnails.pop())==null||l.dispose();for(;O.thumbnails.lengthJ.length;)l=void 0,(l=O.S.pop())==null||l.dispose(); for(;O.S.length-J?-R/J*O.interval*.5:-(R+J/2)/J*O.interval}; KXB=function(O){return-((O.j.offsetWidth||(O.frameCount-1)*O.J*O.scale)-O.L/2)}; ubs=function(){g.L.call(this,{Y:"div",G:"ytp-fine-scrubbing-thumbnail"})}; FXW=function(){g.L.call(this,{Y:"div",G:"ytp-fine-scrubbing-chapter-title",K:[{Y:"div",G:"ytp-fine-scrubbing-chapter-title-content",FQ:"{{chapterTitle}}"}]})}; w5H=function(O){g.L.call(this,{Y:"div",G:"ytp-heat-map-chapter",K:[{Y:"svg",G:"ytp-heat-map-svg",C:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},K:[{Y:"defs",K:[{Y:"clipPath",C:{id:"{{id}}"},K:[{Y:"path",G:"ytp-heat-map-path",C:{d:"",fill:"white"}}]},{Y:"linearGradient",C:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},K:[{Y:"stop",C:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{Y:"stop",C:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{Y:"rect",G:"ytp-heat-map-graph",C:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",G:"ytp-heat-map-hover",C:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",G:"ytp-heat-map-play",C:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{Y:"path",G:"ytp-modern-heat-map",C:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=O;this.V=this.Bq("ytp-heat-map-svg");this.j=this.Bq("ytp-heat-map-path");this.N=this.Bq("ytp-heat-map-graph");this.J=this.Bq("ytp-heat-map-play");this.L=this.Bq("ytp-heat-map-hover");this.B=this.Bq("ytp-modern-heat-map");this.Dh=!1;this.S=60;O=""+g.gC(this);this.update({id:O});O="url(#"+O+")";this.N.setAttribute("clip-path",O);this.J.setAttribute("clip-path",O);this.L.setAttribute("clip-path", O)}; IYs=function(O,R){R>0&&(O.S=R,O.V.style.height=O.S+"px")}; sz=function(){g.L.call(this,{Y:"div",G:"ytp-chapter-hover-container",K:[{Y:"div",G:"ytp-progress-bar-padding"},{Y:"div",G:"ytp-progress-list",K:[{Y:"div",q1:["ytp-play-progress","ytp-swatch-background-color"]},{Y:"div",G:"ytp-progress-linear-live-buffer"},{Y:"div",G:"ytp-load-progress"},{Y:"div",G:"ytp-hover-progress"},{Y:"div",G:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.S=this.Bq("ytp-progress-list");this.j=this.Bq("ytp-progress-linear-live-buffer"); this.N=this.Bq("ytp-ad-progress-list");this.J=this.Bq("ytp-load-progress");this.V=this.Bq("ytp-play-progress");this.B=this.Bq("ytp-hover-progress");this.L=this.Bq("ytp-chapter-hover-container")}; b0=function(O,R){g.pS(O.L,"width",R)}; CKT=function(O,R){g.pS(O.L,"margin-right",R+"px")}; rRs=function(){this.S=this.position=this.B=this.L=this.N=this.width=NaN}; tcs=function(){g.L.call(this,{Y:"div",G:"ytp-timed-marker"});this.L=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.AI=function(O,R){g.tQ.call(this,{Y:"div",G:"ytp-progress-bar-container",C:{"aria-disabled":"true"},K:[{Y:"div",q1:["ytp-heat-map-container"],K:[{Y:"div",G:"ytp-heat-map-edu"}]},{Y:"div",q1:["ytp-progress-bar"],C:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},K:[{Y:"div",G:"ytp-chapters-container"},{Y:"div",G:"ytp-timed-markers-container"}, {Y:"div",G:"ytp-clip-start-exclude"},{Y:"div",G:"ytp-clip-end-exclude"},{Y:"div",G:"ytp-scrubber-container",K:[{Y:"div",q1:["ytp-scrubber-button","ytp-swatch-background-color"],K:[{Y:"div",G:"ytp-scrubber-pull-indicator"},{Y:"img",q1:["ytp-decorated-scrubber-button"]}]}]}]},{Y:"div",q1:["ytp-fine-scrubbing-container"],K:[{Y:"div",G:"ytp-fine-scrubbing-edu"}]},{Y:"div",G:"ytp-bound-time-left",FQ:"{{boundTimeLeft}}"},{Y:"div",G:"ytp-bound-time-right",FQ:"{{boundTimeRight}}"},{Y:"div",G:"ytp-clip-start", C:{title:"{{clipstarttitle}}"},FQ:"{{clipstarticon}}"},{Y:"div",G:"ytp-clip-end",C:{title:"{{clipendtitle}}"},FQ:"{{clipendicon}}"}]});this.api=O;this.O0=!1;this.jR=this.Bc=this.Td=this.j=this.Sa=0;this.xe=null;this.vW=!1;this.JR={};this.zJ={};this.clipEnd=Infinity;this.d5=this.Bq("ytp-clip-end");this.m1=new g.Ab(this.d5,!0);this.Jo=this.Bq("ytp-clip-end-exclude");this.CG=this.Bq("ytp-clip-start-exclude");this.clipStart=0;this.mM=this.Bq("ytp-clip-start");this.E8=new g.Ab(this.mM,!0);this.SN=this.Rz= 0;this.progressBar=this.Bq("ytp-progress-bar");this.w5={};this.Gd={};this.KJ=this.Bq("ytp-chapters-container");this.gK=this.Bq("ytp-timed-markers-container");this.L=[];this.J=[];this.DZ={};this.a8=null;this.N1=-1;this.SG=this.xS=0;this.eR=this.V=null;this.yk=this.Bq("ytp-scrubber-button");this.OQ=this.Bq("ytp-decorated-scrubber-button");this.pD=this.Bq("ytp-scrubber-container");this.fJ=new g.qc;this.TR=0;this.E0=new rRs;this.B=new WI(0,0);this.hT=null;this.W=this.lc=!1;this.nD=null;this.Hq=this.Bq("ytp-heat-map-container"); this.Re=this.Bq("ytp-heat-map-edu");this.N=[];this.heatMarkersDecorations=[];this.sQ=this.Bq("ytp-fine-scrubbing-container");this.vY=this.Bq("ytp-fine-scrubbing-edu");this.S=void 0;this.Qh=this.Xw=this.Iu=!1;this.tooltip=R.Ty();this.addOnDisposeCallback(g.EY(this.tooltip,this.d5));g.H(this,this.m1);this.m1.subscribe("hoverstart",this.Kf,this);this.m1.subscribe("hoverend",this.T9,this);this.U(this.d5,"click",this.mJ);this.addOnDisposeCallback(g.EY(this.tooltip,this.mM));g.H(this,this.E8);this.E8.subscribe("hoverstart", this.Kf,this);this.E8.subscribe("hoverend",this.T9,this);this.U(this.mM,"click",this.mJ);o7p(this);this.U(O,"resize",this.tT);this.U(O,"presentingplayerstatechange",this.mD);this.U(O,"videodatachange",this.DO);this.U(O,"videoplayerreset",this.kN);this.U(O,"cuerangesadded",this.TIQ);this.U(O,"cuerangesremoved",this.Fzd);this.U(O,"onLoopRangeChange",this.tW);this.U(O,"innertubeCommand",this.onClickCommand);this.U(O,g.Gh("timedMarkerCueRange"),this.HYz);this.U(O,"updatemarkervisibility",this.fC);this.U(O, "serverstitchedvideochange",this.KoN);this.updateVideoData(O.getVideoData(),!0);this.tW(O.getLoopRange());Wa(this)&&!this.S&&(this.S=new i5p(this.api,this.tooltip),O=g.YF(this.element).x||0,this.S.tT(O,this.j),this.S.hR(this.sQ),g.H(this,this.S),this.U(this.S.dismissButton,"click",this.M2),this.U(this.S.playButton,"click",this.mV),this.U(this.S.element,"dblclick",this.mV));this.api.createClientVe(this.Hq,this,139609,!0);this.api.createClientVe(this.Re,this,140127,!0);this.api.createClientVe(this.vY, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; o7p=function(O){if(O.L.length===0){var R=new sz;O.L.push(R);g.H(O,R);R.hR(O.KJ,0)}for(;O.L.length>1;)O.L.pop().dispose();b0(O.L[0],"100%");O.L[0].startTime=0;O.L[0].title=""}; Z5s=function(O){var R=R===void 0?NaN:R;var J=new w5H(O.api);O.N.push(J);g.H(O,J);J.hR(O.Hq);R>=0&&(J.element.style.width=R+"px")}; Vcf=function(O){for(;O.J.length;)O.J.pop().dispose()}; SFf=function(O){var R,J,l,u,F;return(F=g.x((u=g.x((R=O.getWatchNextResponse())==null?void 0:(J=R.playerOverlays)==null?void 0:(l=J.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,vx))==null?void 0:u.playerBar,fYp))==null?void 0:F.chapters}; NtL=function(O){for(var R=O.L,J=[],l=0;l=G&&m<=C&&F.push(t)}w>0&&(O.Hq.style.height=w+"px");G=O.N[l];C=F;t=u;V=w;m=l===0;m=m===void 0?!1:m;IYs(G,V);r=C;Z=G.S;m=m===void 0?!1:m;var E=1E3/r.length,a=[];a.push({x:0,y:100});for(var v=0;v0&&(J=F[F.length-1])}g.et(O);y=[];R=g.N(R.heatMarkersDecorations||[]);for(u=R.next();!u.done;u=R.next())if(u=g.x(u.value,Tts))w=u.label,l=J=I=void 0,y.push({visibleTimeRangeStartMillis:(I=u.visibleTimeRangeStartMillis)!=null?I:-1,visibleTimeRangeEndMillis:(J=u.visibleTimeRangeEndMillis)!=null?J:-1,decorationTimeMillis:(l=u.decorationTimeMillis)!=null?l:NaN,label:w?g.V8(w):""});O.heatMarkersDecorations=y}}; Dzf=function(O,R){O.J.push(R);g.H(O,R);R.hR(O.gK,O.gK.children.length)}; aY2=function(O,R){R=g.N(R);for(var J=R.next();!J.done;J=R.next()){J=J.value;var l=Pa(O,J.timeRangeStartMillis/(O.B.L*1E3),pc(O));g.pS(J.element,"transform","translateX("+l+"px) scaleX(0.6)")}}; mzz=function(O,R){var J=0,l=!1;R=g.N(R);for(var u=R.next();!u.done;u=R.next()){u=u.value;if(g.x(u,Mcs)){u=g.x(u,Mcs);var F={startTime:NaN,title:null,onActiveCommand:void 0},G=u.title;F.title=G?g.V8(G):"";G=u.timeRangeStartMillis;G!=null&&(F.startTime=G);F.onActiveCommand=u.onActiveCommand;u=F;J===0&&u.startTime!==0&&(O.L[J].startTime=0,O.L[J].title="",O.L[J].onActiveCommand=u.onActiveCommand,J++,l=!0);O.L.length<=J&&(F=new sz,O.L.push(F),g.H(O,F),F.hR(O.KJ,O.KJ.children.length));O.L[J].startTime= u.startTime;O.L[J].title=u.title?u.title:"";O.L[J].onActiveCommand=u.onActiveCommand;O.L[J].index=l?J-1:J}J++}for(;J=0;l--)if(O.L[l].width>0){CKT(O.L[l],0);var u=Math.floor(O.L[l].width);O.L[l].width=u;b0(O.L[l],u+"px");break}O.L[J].width=0;b0(O.L[J],"0")}else J===O.L.length-1?(l=Math.floor(O.L[J].width+R),O.L[J].width=l,b0(O.L[J],l+"px")):(R=O.L[J].width+R,l=Math.round(R),R-=l,O.L[J].width=l,b0(O.L[J],l+"px"));J=0;if(O.N.length===O.L.length)for(R=0;R< O.N.length;R++)l=O.L[R].width,O.N[R].element.style.width=l+"px",O.N[R].element.style.left=J+"px",J+=l+Ha(O);O.api.Z("delhi_modern_web_player")&&(O.L.length===1?O.L[0].S.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(O.L[0].S.classList.remove("ytp-progress-bar-end"),O.L[0].S.classList.add("ytp-progress-bar-start"),O.L[O.L.length-1].S.classList.add("ytp-progress-bar-end")))}; qF0=function(O,R){var J=0,l=!1,u=O.L.length,F=O.B.L*1E3;F===0&&(F=O.api.getProgressState().seekableEnd*1E3);if(F>0&&O.j>0){for(var G=O.j-Ha(O)*O.xS,y=O.SG===0?3:G*O.SG,w=g.N(O.L),I=w.next();!I.done;I=w.next())I.value.width=0;for(;J1);I=(F===0?0:w/F*G)+O.L[J].width;if(I>y)O.L[J].width=I;else{O.L[J].width=0;var C=O,r=J,t=C.L[r-1];t!==void 0&&t.width>0? t.width+=I:rO.SG&&(O.SG=w/F),l=!0)}J++}}return l}; Ba=function(O){if(O.j){var R=O.api.getProgressState(),J=O.api.getVideoData();if(!(J&&J.enableServerStitchedDai&&J.Fn)||isFinite(R.current)){var l;if(((l=O.api.getVideoData())==null?0:hd(l))&&R.airingStart&&R.airingEnd)var u=xZ(O,R.airingStart,R.airingEnd);else if(O.api.getPresentingPlayerType()===2){var F,G,y;u=(J=(u=O.api.getVideoData())==null?void 0:(F=u.getPlayerResponse())==null?void 0:(G=F.playerConfig)==null?void 0:(y=G.webPlayerConfig)==null?void 0:y.skippableAdProgressBarDuration)?xZ(O,R.seekableStart, J/1E3):xZ(O,R.seekableStart,R.seekableEnd)}else u=xZ(O,R.seekableStart,R.seekableEnd);F=AT(u,R.loaded,0);R=AT(u,R.current,0);G=O.B.S!==u.S||O.B.L!==u.L;O.B=u;Uz(O,R,F);G&&kBp(O);sjH(O)}}}; xZ=function(O,R,J){return b5x(O)?new WI(Math.max(R,O.hT.startTimeMs/1E3),Math.min(J,O.hT.endTimeMs/1E3)):new WI(R,J)}; ARL=function(O,R){var J,l,u;R=g.x((J=R.getWatchNextResponse())==null?void 0:(l=J.playerOverlays)==null?void 0:(u=l.playerOverlayRenderer)==null?void 0:u.decoratedPlayerBarRenderer,vx);if(R==null?0:R.progressColor)for(J=0;J1){J=jt(O,R.B,!0);for(var l=0,u=0;u0&&(l+=O.L[u].width,l+=Ha(O));J=(O.L[J].startTime+(R.B-l)/O.L[J].width*((J===O.L.length-1?O.B.L*1E3:O.L[J+1].startTime)-O.L[J].startTime))/1E3||0}return J}; Lc=function(O,R,J,l,u){R=R<0?0:Math.floor(Math.min(R,O.api.getDuration())*1E3);J=J<0?0:Math.floor(Math.min(J,O.api.getDuration())*1E3);O=O.progressBar.visualElement;l={seekData:{startMediaTimeMs:R,endMediaTimeMs:J,seekSource:l}};(R=g.X5())&&g.nA(Ok)(void 0,R,O,u,l,void 0)}; PKW=function(O,R,J){if(J>=O.L.length)return!1;var l=O.j-Ha(O)*O.xS;return Math.abs(R-O.L[J].startTime/1E3)/O.B.L*l<4}; kBp=function(O){O.yk.style.removeProperty("height");for(var R=g.N(Object.keys(O.JR)),J=R.next();!J.done;J=R.next())p5_(O,J.value);YZ(O);Uz(O,O.SN,O.Rz)}; pc=function(O){var R=O.fJ.x;R=g.TY(R,0,O.j);O.E0.update(R,O.j);return O.E0}; hI=function(O){return(O.W?135:90)-da(O)}; da=function(O){var R=48,J=O.api.T();O.W?R=54:g.$X(J)&&!J.S?R=40:O.api.Z("delhi_modern_web_player")&&(R=O.W?96:68);return R}; Uz=function(O,R,J){O.SN=R;O.Rz=J;var l=pc(O),u=O.B.L;var F=O.B;F=F.S+O.SN*F.getLength();var G=g.fR("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.vI(F,!0),DURATION:g.vI(u,!0)}),y=l0(O.L,F*1E3);y=O.L[y].title;O.update({ariamin:Math.floor(O.B.S),ariamax:Math.floor(u),arianow:Math.floor(F),arianowtext:y?y+" "+G:G});u=O.clipStart;F=O.clipEnd;O.hT&&O.api.getPresentingPlayerType()!==2&&(u=O.hT.startTimeMs/1E3,F=O.hT.endTimeMs/1E3);u=AT(O.B,u,0);y=AT(O.B,F,1);G=O.api.getVideoData();F=g.TY(R,u,y);J=(G==null? 0:g.LQ(G))?1:g.TY(J,u,y);R=Pa(O,R,l);g.pS(O.pD,"transform","translateX("+R+"px)");O.api.Z("delhi_modern_web_player")&&Bt0(O,R);zu(O,l,u,F,"PLAY_PROGRESS");(G==null?0:hd(G))?(R=O.api.getProgressState().seekableEnd)&&zu(O,l,F,AT(O.B,R),"LIVE_BUFFER"):zu(O,l,u,J,"LOAD_PROGRESS");if(O.api.Z("web_player_heat_map_played_bar")){var w;(w=O.N[0])!=null&&w.J.setAttribute("width",(F*100).toFixed(2)+"%")}}; Bt0=function(O,R){O.api.getPresentingPlayerType()!==1?O.KJ.style.removeProperty("clip-path"):(R||(R=Pa(O,O.SN,pc(O))),O.KJ.style.clipPath='path("'+(O.vW?H52(O,8,R,O.W?50:36,0,6):H52(O,4,R,O.W?34:24,2,3))+'")')}; H52=function(O,R,J,l,u,F){var G=J-l/2;J+=l/2;R+=u;return"M 0 "+u+" L 0 "+(R+" L ")+(G+" "+R+" C ")+(G+F+" "+R+" "+(G+F)+" "+u+" "+G+" "+u+" L 0 ")+(u+" M ")+(J+" "+u+" L ")+(O.j+" "+u+" L ")+(O.j+" "+R+" L ")+(J+" "+R+" C ")+(J-F+" "+R+" "+(J-F)+" "+u+" "+J+" "+u)}; zu=function(O,R,J,l,u){var F=O.L.length,G=R.L-O.xS*Ha(O),y=J*G;J=jt(O,y);var w=l*G;G=jt(O,w);u==="HOVER_PROGRESS"&&(G=jt(O,R.L*l,!0),w=R.L*l-xzh(O,R.L*l)*Ha(O));l=Math.max(y-Uz2(O,J),0);for(y=J;y=O.L.length)return O.j;for(var J=0,l=0;l0||O.Jo.clientWidth>0?(F=R.clientWidth/J,O=-1*O.CG.clientWidth/J):(F/=J,O=-1*O.L[u].element.offsetLeft/J),g.pS(R,"background-size",F+"px"),g.pS(R,"background-position-x",O+"px"))}; nc=function(O,R,J,l,u){u||O.api.T().S?R.style.width=J+"px":g.pS(R,"transform","scalex("+(l?J/l:0)+")")}; jt=function(O,R,J){var l=0;(J===void 0?0:J)&&(R-=xzh(O,R)*Ha(O));J=g.N(O.L);for(var u=J.next();!u.done;u=J.next()){u=u.value;if(R>u.width)R-=u.width;else break;l++}return l===O.L.length?l-1:l}; Pa=function(O,R,J){var l=R*O.B.L*1E3;for(var u=-1,F=g.N(O.L),G=F.next();!G.done;G=F.next())G=G.value,l>G.startTime&&G.width>0&&u++;l=u<0?0:u;u=J.L-Ha(O)*O.xS;return R*u+Ha(O)*l+J.N}; xzh=function(O,R){for(var J=O.L.length,l=0,u=g.N(O.L),F=u.next();!F.done;F=u.next())if(F=F.value,F.width!==0)if(R>F.width)R-=F.width,R-=Ha(O),l++;else break;return l===J?J-1:l}; g.LXh=function(O,R,J,l){var u=O.j!==J,F=O.W!==l;O.Sa=R;O.j=J;O.W=l;Wa(O)&&(R=O.S)!=null&&(R.scale=l?1.5:1);kBp(O);O.L.length===1&&(O.L[0].width=J||0);u&&g.et(O);O.S&&F&&Wa(O)&&(O.S.isEnabled&&(J=O.W?135:90,l=J-da(O),O.sQ.style.height=J+"px",g.pS(O.Hq,"transform","translateY("+-l+"px)"),g.pS(O.progressBar,"transform","translateY("+-l+"px)")),GBz(O.S))}; YZ=function(O){var R=!!O.hT&&O.api.getPresentingPlayerType()!==2,J=O.clipStart,l=O.clipEnd,u=!0,F=!0;R&&O.hT?(J=O.hT.startTimeMs/1E3,l=O.hT.endTimeMs/1E3):(u=J>O.B.S,F=O.B.L>0&&lO.SN);g.wI(O.yk,"ytp-scrubber-button-hover",J===l&&O.L.length>1);if(O.api.Z("web_player_heat_map_played_bar")){var F;(F=O.N[0])!=null&&F.L.setAttribute("width",(R.S*100).toFixed(2)+"%")}}}; p5_=function(O,R){var J=O.JR[R];R=O.zJ[R];var l=pc(O),u=AT(O.B,J.start/1E3,0),F=yQf(J,O.W)/l.width;var G=AT(O.B,J.end/1E3,1);F!==Number.POSITIVE_INFINITY&&(u=g.TY(u,0,G-F));G=Math.min(G,u+F);J.color&&(R.style.background=J.color);J=u;R.style.left=Math.max(J*l.L+l.N,0)+"px";nc(O,R,g.TY((G-J)*l.L+l.N,0,l.width),l.width,!0)}; YFT=function(O,R){var J=R.getId();O.JR[J]===R&&(g.iu(O.zJ[J]),delete O.JR[J],delete O.zJ[J])}; Wa=function(O){var R=g.zj(O.api.T())&&(O.api.Z("web_shorts_pip")||O.api.Z("web_watch_pip")),J;return!((J=O.api.getVideoData())==null?0:J.isLivePlayback)&&!O.api.isMinimized()&&!O.api.isInline()&&(!O.api.ZQ()||!R)}; ca=function(O){O.S&&(O.S.disable(),O.Td=0,O.Hq.style.removeProperty("transform"),O.progressBar.style.removeProperty("transform"),O.sQ.style.removeProperty("height"),O.element.parentElement&&O.element.parentElement.style.removeProperty("height"))}; dzs=function(O,R){var J=R/hI(O)*da(O);g.pS(O.progressBar,"transform","translateY("+-R+"px)");g.pS(O.Hq,"transform","translateY("+-R+"px)");g.pS(O.sQ,"transform","translateY("+J+"px)");O.sQ.style.height=R+J+"px";O.element.parentElement&&(O.element.parentElement.style.height=da(O)-J+"px")}; h3A=function(O,R){R?O.V||(O.element.removeAttribute("aria-disabled"),O.V=new g.Ab(O.progressBar,!0),O.V.subscribe("hovermove",O.uKR,O),O.V.subscribe("hoverend",O.bZQ,O),O.V.subscribe("dragstart",O.OZh,O),O.V.subscribe("dragmove",O.iZz,O),O.V.subscribe("dragend",O.BOd,O),O.api&&O.api.Z("delhi_modern_web_player")&&(O.eR=new g.Ab(O.progressBar,!0),O.eR.subscribe("hoverstart",function(){O.vW=!0;Bt0(O)},O),O.eR.subscribe("hoverend",function(){O.vW=!1; Bt0(O)},O)),O.nD=O.listen("keydown",O.WE)):O.V&&(O.element.setAttribute("aria-disabled","true"),O.uK(O.nD),O.V.cancel(),O.V.dispose(),O.V=null)}; Ha=function(O){return O.api.Z("delhi_modern_web_player")?4:O.W?3:2}; b5x=function(O){var R;return!((R=O.hT)==null||!R.postId)&&O.api.getPresentingPlayerType()!==2}; Ov=function(O,R){g.L.call(this,{Y:"button",q1:["ytp-remote-button","ytp-button"],C:{title:"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},FQ:"{{icon}}"});this.X=O;this.Fh=R;this.L=null;this.U(O,"onMdxReceiversChange",this.au);this.U(O,"presentingplayerstatechange",this.au);this.U(O,"appresize",this.au);O.createClientVe(this.element,this,139118);this.au();this.listen("click",this.S,this);D9(O,this.element,this)}; RB=function(O,R){g.L.call(this,{Y:"button",q1:["ytp-button","ytp-settings-button"],C:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":wo(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},K:[g.MI()]});this.X=O;this.Fh=R;this.S=!0;this.listen("click",this.B);this.U(O,"onPlaybackQualityChange",this.updateBadge);this.U(O,"videodatachange",this.updateBadge);this.U(O,"webglsettingschanged",this.updateBadge);this.U(O,"appresize",this.L);D9(O,this.element,this);this.X.createClientVe(this.element, this,28663);this.updateBadge();this.L(O.cq().getPlayerSize())}; z3x=function(O,R){O.S=!!R;O.L(O.X.cq().getPlayerSize())}; Jz=function(O,R){iY.call(this,"Anotaciones",g.yo.yp);this.X=O;this.Fh=R;this.L=!1;O.Z("web_settings_menu_icons")&&this.setIcon({Y:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"path",C:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]});this.U(O,"videodatachange",this.au);this.U(O,"onApiChange",this.au);this.subscribe("select",this.onSelect,this);this.au()}; gg=function(O,R){g.kf.call(this,"Pista de audio",g.yo.AUDIO,O,R);this.X=O;this.tracks={};g.F8(this.element,"ytp-audio-menu-item");this.countLabel=new g.L({Y:"div",K:[{Y:"span",FQ:"Pista de audio"},{Y:"span",G:"ytp-menuitem-label-count",FQ:"{{content}}"}]});O.Z("web_settings_menu_icons")&&this.setIcon(Njx());g.H(this,this.countLabel);g.QM(this,this.countLabel);this.U(O,"videodatachange",this.au);this.U(O,"onPlaybackAudioChange",this.au);this.au()}; iU=function(O,R){iY.call(this,"Reproducci\u00f3n autom\u00e1tica",g.yo.Jz);this.X=O;this.Fh=R;this.L=!1;this.B=[];this.U(O,"presentingplayerstatechange",this.S);this.subscribe("select",this.onSelect,this);O.createClientVe(this.element,this,113682);this.S()}; n7H=function(O,R){g.Lo.call(this,g.Ye({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.X=O;this.Fh=R;this.U(this.element,"click",this.onClick);this.Fh.jr(this)}; cRz=function(O,R){var J;g.zj(O.T())&&(J={Y:"div",G:"ytp-panel-footer-content",K:[{Y:"span",FQ:"Ajusta la calidad de descarga en la "},{Y:"a",G:"ytp-panel-footer-content-link",FQ:"Configuraci\u00f3n",C:{href:"/account_downloads"}}]});g.kf.call(this,"Calidad",g.yo.vk,O,R,void 0,void 0,J);this.X=O;this.OQ={};this.W={};this.N={};this.iz=new Set;this.L=this.j=!1;this.J="unknown";this.SN="";this.Hq=new g.dH;g.H(this,this.Hq);this.j=this.X.Z("web_player_use_new_api_for_quality_pullback");this.L=this.X.Z("web_player_enable_premium_hbr_playback_cap"); O.Z("web_settings_menu_icons")&&this.setIcon({Y:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"path",C:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.F8(this.S.element,"ytp-quality-menu");this.U(O,"videodatachange",this.aI);this.U(O,"videoplayerreset",this.aI);this.U(O,"onPlaybackQualityChange",this.CP);this.aI();O.createClientVe(this.element,this,137721)}; RAH=function(O,R,J){var l=O.OQ[R],u=g.xw[R];return OH_(O,l?l.qualityLabel:u?u+"p":"Autom\u00e1tica",R,J)}; Jof=function(O,R,J,l,u){var F=(R=O.L?O.N[R]:O.W[R])&&R.quality,G=R&&R.qualityLabel;G=G?G:"Autom\u00e1tica";l&&(G="("+G);O=OH_(O,G,F||"",u);l&&O.K.push(")");(l=(l=R&&R.paygatedQualityDetails)&&l.paygatedIndicatorText)&&J&&O.K.push({Y:"div",G:"ytp-premium-label",FQ:l});return O}; OH_=function(O,R,J,l){R={Y:"span",q1:l,K:[R]};var u;l="ytp-swatch-color";if(O.j||O.L)l="ytp-swatch-color-white";J==="highres"?u="8K":J==="hd2880"?u="5K":J==="hd2160"?u="4K":J.indexOf("hd")===0&&J!=="hd720"&&(u="HD");u&&(R.K.push(" "),R.K.push({Y:"sup",G:l,FQ:u}));return R}; lU=function(O,R,J,l,u,F){F=F===void 0?!1:F;var G={Y:"div",q1:["ytp-input-slider-section"],K:[{Y:"input",G:"ytp-input-slider",C:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};u&&G.K.unshift(u);F&&G.q1.push("ytp-vertical-slider");g.L.call(this,G);this.j=O;this.J=R;this.V=J;this.initialValue=l;this.header=u;this.S=this.Bq("ytp-input-slider");this.L=l?l:O;this.init();this.U(this.S,"input",this.N);this.U(this.S,"keydown", this.B)}; uU=function(O,R){O.L=R;O.updateValue("slidervalue",O.L);O.S.valueAsNumber=O.L;gnB(O,R)}; gnB=function(O,R){O.S.style.setProperty("--yt-slider-shape-gradient-percent",(R-O.j)/(O.J-O.j)*100+"%")}; Fg=function(O){lU.call(this,O.getAvailablePlaybackRates()[0],O.getAvailablePlaybackRates()[O.getAvailablePlaybackRates().length-1],.05,O.getPlaybackRate(),{Y:"div",G:"ytp-speedslider-indicator-container",K:[{Y:"div",G:"ytp-speedslider-badge"},{Y:"p",G:"ytp-speedslider-text"}]});this.X=O;this.SN=Zu(this.Hq,50,this);g.F8(this.S,"ytp-speedslider");this.W=this.Bq("ytp-speedslider-text");this.iz=this.Bq("ytp-speedslider-badge");iHs(this);this.U(this.S,"change",this.OQ)}; iHs=function(O){O.W.textContent=O.L+"x";O.iz.classList.toggle("ytp-speedslider-premium-badge",O.L>2&&O.X.Z("enable_web_premium_varispeed"))}; G2=function(O,R,J,l,u,F,G){g.L.call(this,{Y:"div",G:"ytp-slider-section",C:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},K:[{Y:"div",G:"ytp-slider",K:[{Y:"div",G:"ytp-slider-handle"}]}]});this.V=O;this.W=R;this.S=J;this.B=l;this.SN=u;this.N1=F;this.range=this.B-this.S;this.xS=this.Bq("ytp-slider-section");this.N=this.Bq("ytp-slider");this.Hq=this.Bq("ytp-slider-handle");this.J=new g.Ab(this.N, !0);this.L=G?G:J;g.H(this,this.J);this.J.subscribe("dragmove",this.oH,this);this.U(this.element,"keydown",this.f3);this.U(this.element,"wheel",this.Mg);this.init()}; KC=function(O){G2.call(this,.05,.05,O.getAvailablePlaybackRates()[0],O.getAvailablePlaybackRates()[O.getAvailablePlaybackRates().length-1],150,20,O.getPlaybackRate());this.X=O;this.j=g.cE("P");this.iz=Zu(this.OQ,50,this);g.F8(this.N,"ytp-speedslider");g.F8(this.j,"ytp-speedslider-text");O=this.j;var R=this.N;R.parentNode&&R.parentNode.insertBefore(O,R.nextSibling);lwB(this);this.U(this.X,"onPlaybackRateChange",this.updateValues)}; lwB=function(O){O.j.textContent=uj2(O,O.L)+"x"}; uj2=function(O,R){O=Number(g.TY(R,O.S,O.B).toFixed(2));R=Math.floor((O+.001)*100%5+2E-15);var J=O;R!==0&&(J=O-R*.01);return Number(J.toFixed(2))}; FWB=function(O){g.tQ.call(this,{Y:"div",G:"ytp-speedslider-component"});O.Z("web_settings_use_input_slider")?this.L=new Fg(O):this.L=new KC(O);g.H(this,this.L);this.element.appendChild(this.L.element)}; GZ2=function(O){var R=new FWB(O);NT.call(this,O,R,"Personalizada");g.H(this,R)}; KWT=function(O,R){var J=new GZ2(O);g.kf.call(this,"Velocidad de reproducci\u00f3n",g.yo.ym,O,R,yZ(O)?void 0:"Personalizada",yZ(O)?void 0:function(){g.aR(R,J)}); var l=this;this.N=!1;g.H(this,J);this.J=new Fg(O);g.H(this,this.J);O.Z("web_settings_menu_icons")&&this.setIcon({Y:"svg",C:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{Y:"path",C:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]});this.X=O;this.N=!1;this.SN=null;yZ(O)?(this.L=g.fR("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.X.getPlaybackRate().toString()}),this.j=this.X.getPlaybackRate()):this.j=this.L=null;this.W=this.X.getAvailablePlaybackRates();this.U(O,"presentingplayerstatechange",this.au);var u;((u=this.X.getVideoData())==null?0:u.Zv())&&this.U(O,"serverstitchedvideochange",this.au);this.U(this.J.S,"change",function(){l.N=!0;l.au()}); this.au()}; yox=function(O,R){var J=wg(R);O.L&&(O.N||R===O.j)?(O.o8(O.L),O.KG(R.toString())):O.o8(J)}; Iw2=function(O){O.So(O.W.map(wg));O.L=null;O.j=null;var R=O.X.getPlaybackRate();yZ(O.X)&&wYB(O,R);!O.W.includes(R)||O.N?O.o8(O.L):O.o8(wg(R))}; wYB=function(O,R){O.j=R;O.L=g.fR("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:R.toString()});R=O.W.map(wg);R.unshift(O.L);O.So(R)}; wg=function(O){return O.toString()}; yZ=function(O){return O.Z("web_settings_menu_surface_custom_playback")}; C7L=function(O){return O.Z("web_settings_menu_surface_custom_playback")&&O.Z("web_settings_use_input_slider")}; t9p=function(O,R,J,l){var u=new g.mT(R,void 0,"Anulaci\u00f3n de video");g.kf.call(this,l.text||"",O,R,J,"Anulaci\u00f3n de video",function(){g.aR(J,u)}); var F=this;g.F8(this.element,"ytp-subtitles-options-menu-item");this.setting=l.option.toString();O=l.options;this.settings=g.PR(O,this.Pj,this);this.j=u;g.H(this,this.j);R=new g.Lo({Y:"div",G:"ytp-menuitemtitle",FQ:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.H(this,R);this.j.jr(R,!0);this.N=new g.Lo({Y:"div",G:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},K:[{Y:"div",G:"ytp-menuitem-label",FQ:"S\u00ed"}]},-1);g.H(this,this.N);this.j.jr(this.N, !0);this.U(this.N.element,"click",function(){roh(F,!0)}); this.L=new g.Lo({Y:"div",G:"ytp-menuitem",C:{role:"menuitemradio",tabindex:"0"},K:[{Y:"div",G:"ytp-menuitem-label",FQ:"No"}]},-2);g.H(this,this.L);this.j.jr(this.L,!0);this.U(this.L.element,"click",function(){roh(F,!1)}); this.So(g.jO(O,this.Pj))}; roh=function(O,R){O.publish("settingChange",O.setting+"Override",!R);O.Fh.St()}; IB=function(O,R){g.mT.call(this,O,void 0,"Opciones");var J=this;this.ET={};for(var l=0;l=0);if(!(R<0||R===O.N)){O.N=R;R=243*O.scale;var J=141*O.scale,l=rGW(O.S,O.N,R);HB_(O.bg,l,R,J,!0);O.SN.start()}}; jd2=function(O){var R=O.L;O.type===3&&O.Hq.stop();O.api.removeEventListener("appresize",O.W);O.J||R.setAttribute("title",O.B);O.B="";O.L=null;O.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});O.wrapper.style.width=""}; LWW=function(O){g.L.call(this,{Y:"button",q1:["ytp-watch-later-button","ytp-button"],C:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.$X(O.T()))},K:[{Y:"div",G:"ytp-watch-later-icon",FQ:"{{icon}}"},{Y:"div",G:"ytp-watch-later-title",FQ:"Ver m\u00e1s tarde"}]});this.X=O;this.icon=null;this.visible=this.isRequestPending=this.L=!1;YGW(O);O.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.U(O,"videoplayerreset",this.onReset);this.U(O, "appresize",this.Gr);this.U(O,"videodatachange",this.Gr);this.U(O,"presentingplayerstatechange",this.Gr);this.Gr();O=this.X.T();var R=g.Wf("yt-player-watch-later-pending");O.N&&R?(p6L(),QdH(this)):this.au(2);g.wI(this.element,"ytp-show-watch-later-title",g.$X(O));D9(this.X,this.element,this)}; Y3s=function(O){var R=O.X.getPlayerSize(),J=O.X.T(),l=g.e(O.X.getVideoData()),u=g.$X(J)&&g.MB(O.X)&&g.d(O.X.getPlayerStateObject(),128),F=J.B;return J.E8&&R.width>=240&&!l.isAd()&&l.E8&&!u&&!g.zF(l)&&!O.X.isEmbedsShortsMode()&&!F}; dDz=function(O,R){lmT(g.Ql(O.X.T()),"wl_button",function(){p6L({videoId:R});window.location.reload()})}; QdH=function(O){if(!O.isRequestPending){O.isRequestPending=!0;O.au(3);var R=g.e(O.X.getVideoData());R=O.L?R.removeFromWatchLaterCommand:R.addToWatchLaterCommand;var J=g.e(O.X.Jj()),l=O.L?function(){O.L=!1;O.isRequestPending=!1;O.au(2);O.X.T().V&&O.X.tR("WATCH_LATER_VIDEO_REMOVED")}:function(){O.L=!0; O.isRequestPending=!1;O.au(1);O.X.T().S&&O.X.O5(O.element);O.X.T().V&&O.X.tR("WATCH_LATER_VIDEO_ADDED")}; h9(J,R).then(l,function(){O.isRequestPending=!1;O.au(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");O.X.T().V&&O.X.tR("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; hA0=function(O,R){if(R!==O.icon){switch(R){case 3:var J=Go();break;case 1:J=SU();break;case 2:J={Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:J={Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path", LG:!0,C:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}O.updateValue("icon",J);O.icon=R}}; g.T2=function(){g.Hr.apply(this,arguments);this.kQ=(this.wX=g.$X(this.api.T()))&&(this.api.T().S||RU()||cW());this.G6=48;this.UW=69;this.GB=this.ZR=null;this.mO=[];this.dw=this.xq=this.JS=this.JY=this.jZ=null;this.Zy=[];this.contextMenu=this.U_=this.overflowButton=this.Yq=this.uC=this.searchButton=this.copyLinkButton=this.shareButton=this.dh=this.FG=this.title=this.channelAvatar=this.t$=this.tooltip=null;this.Yk=!1;this.qo=this.mp=this.Fv=this.wC=null;this.c$=this.lk=this.c9=!1}; zAW=function(O){var R=O.api.T(),J=g.d(O.api.getPlayerStateObject(),128);return R.N&&J&&!O.api.isFullscreen()}; nnf=function(O){if(O.LW()&&!O.api.isEmbedsShortsMode()&&O.Yq){var R=O.api.Z("web_player_hide_overflow_button_if_empty_menu");!O.dh||R&&!Y3s(O.dh)||uFW(O.Yq,O.dh);!O.shareButton||R&&!N$_(O.shareButton)||uFW(O.Yq,O.shareButton);!O.copyLinkButton||R&&!STh(O.copyLinkButton)||uFW(O.Yq,O.copyLinkButton)}else{R=O.api.T().getWebPlayerContextConfig();if(O.Yq){for(var J=O.Yq,l=g.N(J.actionButtons),u=l.next();!u.done;u=l.next())u.value.detach();J.actionButtons=[]}O.searchButton&&!g.lu(O.FG.element,O.searchButton.element)&& O.searchButton.hR(O.FG.element);!O.dh||(R==null?0:R.hideTopWatchNextButton)||g.lu(O.FG.element,O.dh.element)||O.dh.hR(O.FG.element);!O.shareButton||(R==null?0:R.hideTopShareButton)||g.lu(O.FG.element,O.shareButton.element)||O.shareButton.hR(O.FG.element);O.copyLinkButton&&!g.lu(O.FG.element,O.copyLinkButton.element)&&O.copyLinkButton.hR(O.FG.element)}}; coB=function(O,R,J){R=J?R.lastElementChild:R.firstElementChild;for(var l=null;R;){if(xF(R,"display")!=="none"&&R.getAttribute("aria-hidden")!=="true"){var u=void 0;R.tabIndex>=0?u=R:u=coB(O,R,J);u&&(l?J?u.tabIndex>l.tabIndex&&(l=u):u.tabIndexl/1E3+1)return{msg:"in-the-past"};if(F.isLivePlayback&&!isFinite(l))return{msg:"live-infinite"};(l=R.FK())&&l.isView()&&(l=l.mediaElement);if(l&&l.H8().length>12&&g.fQ(u))return{msg:"played-ranges"};if(!u.B)return null;if(!G)return{msg:"no-pvd-formats"};if(!u.B.L||!G.L)return{msg:"non-dash"};l=G.videoInfos[0];var y=u.B.videoInfos[0];O.V&&i1(F)&&(l=R.L8(),y= J.L8());if(!l||!y)return{msg:"no-video-info"};if(O.B&&(n8(l)||n8(y)))return{msg:"av1"};R=O.L&&F.MU()&&N8();if(y.containerType!==l.containerType)if(R)F.nJ("sgap",{ierr:"container"});else return{msg:"container"};if(O.S&&!R&&(y.Pq!==l.Pq||y.Pq===""||l.Pq===""))return{msg:"codec"};if(O.N&&y.video&&l.video&&Math.abs(y.video.width/y.video.height-l.video.width/l.video.height)>.01)return{msg:"ratio"};if(g.fQ(F)&&g.fQ(u))return{msg:"content-protection"};G=G.L[0];u=u.B.L[0];J=G.audio;var w=u.audio;if(J.sampleRate!== w.sampleRate&&!g.Wd)if(R)F.nJ("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:G.itag,cr:J.sampleRate,ni:u.itag,nr:w.sampleRate};return(J.numChannels||2)!==(w.numChannels||2)?{msg:"channel-count"}:O.j&&F.MU()&&l.video.fps!==y.video.fps?{msg:"fps"}:null}; gcx=function(O,R,J){var l=O.getVideoData(),u=R.getVideoData();if(!l.T().supportsGaplessShorts())return{nq:"env"};if(J.J){if(l.kq&&!l.isAd()||u.kq&&!u.isAd())return{nq:"autoplay"}}else if(l.kq||u.kq)return{nq:"autoplay"};if(J.D&&l.endSeconds>0)return{nq:"endcr"};if(!l.V)return{nq:"client"};if(!O.uS())return{nq:"no-empty"};O=JnH(J,O,R,Infinity);return O!=null?{nq:O.msg}:null}; q1=function(O){g.p.call(this);this.app=O;this.D=this.N=this.S=this.L=null;this.B=1;this.events=new g.p8(this);this.events.U(this.app.Zg,g.KR("gaplessshortslooprange"),this.V);g.H(this,this.events)}; iUx=function(){this.D=this.N=this.J=this.B=this.V=this.j=this.S=this.L=!1}; lBh=function(O){var R=new iUx;R.L=O.Z("h5_gapless_support_types_diff");R.j=O.Z("h5_gapless_error_on_fps_diff");R.V=O.Z("html5_gapless_use_format_info_fix");R.B=O.Z("html5_gapless_disable_on_av1")&&!O.Z("html5_gapless_enable_on_av1");R.S=O.Z("html5_gapless_check_codec_diff_strictly");R.J=O.Z("html5_gapless_on_ad_autoplay");R.N=O.Z("html5_gapless_disable_diff_aspect_radio");R.D=O.Z("html5_gapless_disable_on_end_cue_range");return R}; g.kA=function(O,R,J,l){l=l===void 0?!1:l;gc.call(this);this.mediaElement=O;this.start=R;this.end=J;this.L=l}; uWh=function(O,R,J,l,u,F){F=F===void 0?0:F;g.p.call(this);var G=this;this.policy=O;this.L=R;this.S=J;this.ys=u;this.D=F;this.N=this.B=null;this.currentVideoDuration=this.j=-1;this.J=!1;this.Ox=new Jw;this.Ro=l-R.Vd()*1E3;this.Ox.then(void 0,function(){}); this.timeout=new g.zR(function(){G.Hf("timeout")},1E4); g.H(this,this.timeout);this.V=isFinite(l)||this.ys.T().experiments.Vh("html5_pseudogapless_shorts")&&i1(R.getVideoData());this.status={status:0,error:null}}; K_W=function(O){var R,J,l,u,F,G,y,w,I,C;return g.A(function(r){if(r.S==1){if(O.jN())return r.return(Promise.reject(Error(O.status.error||"disposed")));O.timeout.start();R=g.bU.ri();return g.k(r,O.Ox,2)}g.bU.Fp("gtfta",R);J=O.L.FK();if(J.isEnded())return O.Hf("ended_in_finishTransition"),r.return(Promise.reject(Error(O.status.error||"")));if(!O.N||!h1(O.N))return O.Hf("next_mse_closed"),r.return(Promise.reject(Error(O.status.error||"")));if(O.S.QV()!==O.N)return O.Hf("next_mse_mismatch"),r.return(Promise.reject(Error(O.status.error|| "")));l=F_T(O);u=l.W5;F=l.Ii;G=l.a6;O.L.QB(!1,!0);y=Gn_(J,u,G,!O.S.getVideoData().isAd());O.S.setMediaElement(y);(w=O.L.cT())&&O.S.u2(w.cR,w.WR);O.V&&(O.S.seekTo(O.S.getCurrentTime()+.001,{Ny:!0,z3:3,bK:"gapless_pseudo"}),y.play(),sU());I=J.sf();I.cpn=O.L.getVideoData().clientPlaybackNonce;I.st=""+u;I.et=""+G;O.S.nJ("gapless",I);O.L.nJ("gaplessTo",{cpn:O.S.getVideoData().clientPlaybackNonce});C=O.L.getPlayerType()===O.S.getPlayerType();O.L.yF(F,!0,!1,C,O.S.getVideoData().clientPlaybackNonce);O.S.yF(O.S.getCurrentTime(), !0,!0,C,O.L.getVideoData().clientPlaybackNonce);g.aL(function(){!O.S.getVideoData().iz&&O.S.getPlayerState().isOrWillBePlaying()&&O.S.GX()}); WK(O,6);O.dispose();return r.return(Promise.resolve())})}; Cgx=function(O){if(O.S.getVideoData().B){var R=O.ys.T().Z("html5_gapless_suspend_next_loader")&&O.D===1;O.S.iR(O.N,R,ynh(O));WK(O,3);wtz(O);var J=IB0(O);R=J.OI;J=J.f0;R.subscribe("updateend",O.Xm,O);J.subscribe("updateend",O.Xm,O);O.Xm(R);O.Xm(J)}}; wtz=function(O){O.L.unsubscribe("internalvideodatachange",O.X_,O);O.S.unsubscribe("internalvideodatachange",O.X_,O);O.ys.T().Z("html5_gapless_use_format_info_fix")&&(O.L.unsubscribe("internalvideoformatchange",O.X_,O),O.S.unsubscribe("internalvideoformatchange",O.X_,O));O.L.unsubscribe("mediasourceattached",O.X_,O);O.S.unsubscribe("statechange",O.Wj,O)}; Gn_=function(O,R,J,l){O=O.isView()?O.mediaElement:O;return new g.kA(O,R,J,l)}; WK=function(O,R){R<=O.status.status||(O.status={status:R,error:null},R===5&&O.Ox.resolve())}; ynh=function(O){return O.ys.T().Z("html5_gapless_no_clear_buffer_timeline")&&O.D===1&&FD(O.L.getVideoData())}; F_T=function(O){var R=O.L.FK();R=R.isView()?R.start:0;var J=O.L.getVideoData().isLivePlayback?Infinity:O.L.lZ(!0);J=Math.min(O.Ro/1E3,J)+R;var l=O.V?100:0;O=J-O.S.b0()+l;return{Cu:R,W5:O,Ii:J,a6:Infinity}}; IB0=function(O){return{OI:O.B.L.M7,f0:O.B.S.M7}}; Az=function(O){g.p.call(this);var R=this;this.app=O;this.D=this.S=this.L=null;this.V=!1;this.B=this.N=null;this.J=lBh(this.app.T());this.j=function(){g.aL(function(){rn_(R)})}}; tGx=function(O,R,J,l,u){l=l===void 0?0:l;u=u===void 0?0:u;O.uS()||e1(O);O.N=new Jw;O.L=R;var F=J,G=u===0;G=G===void 0?!0:G;var y=O.app.mX(),w=y.getVideoData().isLivePlayback?Infinity:y.lZ(!0)*1E3;F>w&&(F=w-200,O.V=!0);G&&y.getCurrentTime()>=F/1E3?O.j():(O.S=y,G&&(G=F,F=O.S,O.app.Zg.addEventListener(g.Gh("vqueued"),O.j),G=isFinite(G)||G/1E3>F.getDuration()?G:0x8000000000000,O.D=new g.uN(G,0x8000000000000,{namespace:"vqueued"}),F.addCueRange(O.D)));G=l/=1E3;F=R.getVideoData().L;l&&F&&O.S&&(y=l,w=0, R.getVideoData().isLivePlayback&&(G=Math.min(J/1E3,O.S.lZ(!0)),w=Math.max(0,G-O.S.getCurrentTime()),y=Math.min(l,R.lZ()+w)),G=rws(F,y)||l,G!==l&&O.L.nJ("qvaln",{st:l,at:G,rm:w,ct:y}));R=G;l=O.L;l.getVideoData().Bc=!0;l.getVideoData().V=!0;l.Mr(!0);F={};O.S&&(F=O.S.qx(),G=O.S.getVideoData().clientPlaybackNonce,F={crt:(F*1E3).toFixed(),cpn:G});l.nJ("queued",F);R!==0&&l.seekTo(R+.01,{Ny:!0,z3:3,bK:"videoqueuer_queued"});O.B=new uWh(O.J,O.app.mX(),O.L,J,O.app,u);J=O.B;J.status.status!==Infinity&&(WK(J, 1),J.L.subscribe("internalvideodatachange",J.X_,J),J.S.subscribe("internalvideodatachange",J.X_,J),J.ys.T().Z("html5_gapless_use_format_info_fix")&&(J.L.subscribe("internalvideoformatchange",J.X_,J),J.S.subscribe("internalvideoformatchange",J.X_,J)),J.L.subscribe("mediasourceattached",J.X_,J),J.S.subscribe("statechange",J.Wj,J),J.L.subscribe("newelementrequired",J.Lg,J),J.X_());return O.N}; rn_=function(O){var R,J,l,u,F,G,y,w,I;g.A(function(C){switch(C.S){case 1:if(O.jN()||!O.N||!O.L)return C.return();O.V&&O.app.mX().Om(!0,!1);J=O.app.T().Z("html5_force_csdai_gapful_transition")&&((R=O.app.mX())==null?void 0:R.getVideoData().isDaiEnabled());l=null;if(!O.B||J){C.pJ(2);break}g.N0(C,3);return g.k(C,K_W(O.B),5);case 5:g.as(C,2);break;case 3:l=u=g.Tz(C);case 2:if(!O.L)return C.return();g.bU.Qn("vqsp",function(){O.app.P2(O.L)}); if(!O.L)return C.return();F=O.L.FK();O.app.T().Z("html5_gapless_seek_on_negative_time")&&F&&F.getCurrentTime()<-.01&&O.L.seekTo(0);g.bU.Qn("vqpv",function(){O.app.playVideo()}); if(l||J)O.L?(G=l?l.message:"forced",(y=O.S)==null||y.nJ("gapfulfbk",{r:G}),O.L.j$(G)):(w=O.S)==null||w.nJ("gapsp",{});I=O.N;e1(O);I&&I.resolve();return C.return(Promise.resolve())}})}; e1=function(O,R){R=R===void 0?!1:R;if(O.S){if(O.D){var J=O.S;O.app.Zg.removeEventListener(g.Gh("vqueued"),O.j);J.removeCueRange(O.D)}O.S=null;O.D=null}O.B&&(O.B.status.status!==6&&(J=O.B,J.status.status!==Infinity&&J.D!==1&&J.Hf("Canceled")),O.B=null);O.N=null;O.L&&!R&&O.L!==O.app.g5()&&O.L!==O.app.mX()&&O.L.dispose();O.L&&R&&O.L.Mi();O.L=null;O.V=!1}; ocT=function(O){var R;return((R=O.B)==null?void 0:R.currentVideoDuration)||-1}; ZUh=function(O,R,J){if(O.uS())return"qie";if(O.L==null||O.L.jN()||O.L.getVideoData()==null)return"qpd";if(R.videoId!==O.L.Ed())return"vinm";if(ocT(O)<=0)return"ivd";if(J!==1)return"upt";if((J=O.B)==null)O=void 0;else if(J.getStatus().status!==5)O="niss";else if(JnH(J.policy,J.L,J.S,J.Ro)!=null)O="pge";else{R=IB0(J);O=R.OI;var l=R.f0;R=g.tB(J.ys.T().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var u=J.j+R;J.ys.T().experiments.Vh("html5_pseudogapless_shorts")&&(u=F_T(J).W5+R);J=Ig(l.Ap(), u);O=Ig(O.Ap(),u);O=!(R>0)||J&&O?null:"neb"}return O!=null?O:null}; VGp=function(){g.y8.call(this);var O=this;this.fullscreen=0;this.N=this.B=this.pictureInPicture=this.L=this.S=this.inline=!1;this.D=function(){O.RF()}; wA0(this.D);this.j=this.getVisibilityState(this.oF(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.ZQ(),this.Pl(),this.S6(),this.jW())}; rJz=function(O){return!(O.isMinimized()||O.isInline()||O.isBackground()||O.ZQ()||O.Pl()||O.S6()||O.jW())}; g.PK=function(O){g.p.call(this);this.Ru=O;this.videoData=this.playerState=null}; HK=function(O,R){g.p.call(this);var J=this;this.data=[];this.B=O||NaN;this.S=R||null;this.L=new g.zR(function(){pC(J);BK(J)}); g.H(this,this.L)}; ha_=function(O){pC(O);return O.data.map(function(R){return R.value})}; pC=function(O){var R=(0,g.Q)();O.data.forEach(function(J){J.expire0));(l=g.tB(R, "html5_cobalt_audio_write_ahead_ms"))&&FX("Media.AudioWriteDurationLocal",l);(l=J("html5_cobalt_enable_decode_to_texture"))&&FX("Media.PlayerConfiguration.DecodeToTexturePreferred",l?1:0);(O.DA()||J("html5_log_cpu_info"))&&FPB();Error.stackTraceLimit=50;var u=g.tB(R,"html5_idle_rate_limit_ms");u&&Object.defineProperty(window,"requestIdleCallback",{value:function(F){return window.setTimeout(F,u)}}); AwT(O.D);ZLh(J("html5_use_ump_request_slicer"));qP0(J("html5_record_now"));J("html5_disable_streaming_xhr")&&(Jj=!1);J("html5_byterate_constraints")&&(rV=!0);J("html5_use_non_active_broadcast_for_post_live")&&(Jf=!0);J("html5_enable_encrypted_av1")&&(zd=!0);Wef(g.tB(O.experiments,"html5_sticky_duration_mos"));O.Z("html5_estimate_live_partial_slice_duration")&&(gqB=!0)}; vcH=function(O,R){return O.slice(R.length).replace(/_[a-z]/g,function(J){return J.toUpperCase().replace("_","")}).replace("Dot",".")}; XtT=function(O){for(var R={},J=g.N(Object.keys(O.experiments.flags)),l=J.next();!l.done;l=J.next())if(l=l.value,l.startsWith("cobalt_h5vcc")){if(l.startsWith("cobalt_h5vcc_string")){J=vcH(l,"cobalt_h5vcc_string");O=gm(O.experiments,l);J&&O&&(R[J]=FX(J,O));break}if(l.startsWith("cobalt_h5vcc")){J=vcH(l,"cobalt_h5vcc");O=g.tB(O.experiments,l);J&&O&&(R[J]=FX(J,O));break}}return R}; QZ=function(O,R,J,l,u){u=u===void 0?[]:u;g.p.call(this);this.Ru=O;this.r5=R;this.N=J;this.segments=u;this.L=void 0;this.S=new Map;u.length&&(this.L=u[0])}; Tez=function(O){if(!(O.segments.length<2)){var R=O.segments.shift();if(R){var J=R.L,l=[];if(J.size){J=g.N(J.values());for(var u=J.next();!u.done;u=J.next()){u=g.N(u.value);for(var F=u.next();!F.done;F=u.next()){F=F.value;for(var G=g.N(F.segments),y=G.next();!y.done;y=G.next())(y=y.value.Od())&&l.push(y);F.removeAll()}}}(J=R.Od())&&l.push(J);l=g.N(l);for(J=l.next();!J.done;J=l.next())O.S.delete(J.value);R.dispose()}}}; LC=function(O,R,J,l){if(!O.L||R>J)return!1;R=new QZ(O.Ru,R,J,O.L,l);l=g.N(l);for(J=l.next();!J.done;J=l.next()){J=J.value;var u=J.Od();u&&u!==O.L.Od()&&O.S.set(u,[J])}O=O.L;O.L.has(R.u0())?O.L.get(R.u0()).push(R):O.L.set(R.u0(),[R]);return!0}; YA=function(O,R){return O.S.get(R)}; $ox=function(O,R,J){O.S.set(R,J)}; dg=function(O,R,J,l,u,F){return new MGH(J,J+(l||0),!l,R,O,u,F)}; MGH=function(O,R,J,l,u,F,G){g.p.call(this);this.r5=O;this.S=R;this.B=J;this.type=l;this.N=u;this.videoData=F;this.eX=G;this.L=new Map;D4(F)}; qDH=function(O){if(O.L.size)for(var R=g.N(O.L.values()),J=R.next();!J.done;J=R.next()){J=g.N(J.value);for(var l=J.next();!l.done;l=J.next())l.value.dispose()}O.L.clear()}; knh=function(O,R,J){g.BD.call(this,J.Ib());this.x9=O;this.videoData=R}; sS_=function(O){this.end=this.start=O}; g.hz=function(){this.L=new Map;this.B=new Map;this.S=new Map}; g.z2=function(O,R,J,l){g.p.call(this);var u=this;this.api=O;this.Ru=R;this.playback=J;this.app=l;this.xS=new g.hz;this.S=new Map;this.j=[];this.D=[];this.B=new Map;this.mM=new Map;this.J=new Map;this.Gd=null;this.d5=NaN;this.SG=this.AT=null;this.w5=new g.zR(function(){bUT(u,u.d5,u.AT||void 0)}); this.events=new g.p8(this);this.fJ=15E3;this.iz=new g.zR(function(){u.N1=!0;u.playback.E3(u.fJ);W_s(u);if(u.playback.getVideoData().Zv()){var F;u.M1({togab:(F=u.OQ)==null?void 0:F.identifier})}u.nH(!1)},this.fJ); this.N1=!1;this.W=new Map;this.KJ=[];this.OQ=null;this.Rz=new Set;this.Qh=[];this.zJ=[];this.Jo=[];this.TR=[];this.L=void 0;this.Tg=0;this.JR=!0;this.V=!1;this.Iu=[];this.Td=new Set;this.CG=new Set;this.m1=new Set;this.vn=0;this.AR=new Set;this.Y9=0;this.Yd=this.Py=!1;this.b5=this.N="";this.Hq=null;this.logger=new g.l9("dai");this.nG={wA1:function(){return u.S}, j7h:function(){return u.j}, u9N:function(){return u.B}, p2h:function(){return u.N}, hf:function(F){u.onCueRangeEnter(u.S.get(F))}, n4J:function(F){u.onCueRangeExit(u.S.get(F))}, yYg:function(F,G){u.S.set(F,G)}, Dpd:function(F){u.b5=F}, ao:function(){return u.ao()}, bSX:function(F){return u.J.get(F)}, hCz:function(){return u.Hq}}; this.playback.getPlayerType();this.playback.OP(this);this.sQ=this.Ru.DA();g.H(this,this.w5);g.H(this,this.events);g.H(this,this.iz);this.events.U(this.api,g.Gh("serverstitchedcuerange"),this.onCueRangeEnter);this.events.U(this.api,g.KR("serverstitchedcuerange"),this.onCueRangeExit);SDH(this.app.Xf(),this.playback,!1)}; BeH=function(O,R,J,l,u,F,G,y,w){if(O.Ru.Z("html5_ignore_ads_after_noadresponse")&&w&&O.Rz.has(w))return nC(O,{reason:"addafternoad",cueid:w}),"";w=AnA(O,F,F+u);O.N1&&O.M1({adaftto:1});J||O.M1({missadcon:1,enter:F,len:u,aid:y});O.SN&&!O.SN.Er&&(O.SN.Er=y);O.Yd&&O.M1({adfbk:1,enter:F,len:u,aid:y});var I=O.playback;G=G===void 0?F+u:G;F===G&&!u&&O.Ru.Z("html5_allow_zero_duration_ads_on_timeline")&&O.M1({attl0d:1});F>G&&nC(O,{reason:"enterTime_greater_than_return",r5:F,LZ:G});var C=I.q7()*1E3;FI&&nC(O,{reason:"parent_return_greater_than_content_duration",LZ:G,FtQ:I});I=null;C=g.$M(O.D,{LZ:F},function(r,t){return r.LZ-t.LZ}); C>=0&&(I=O.D[C],I.LZ>F&&eSA(O,R.video_id||"",F,G,I));if(w&&I)for(C=0;C.5&&O.M1({ttdtb:1,delta:G,cpn:u.cpn,enter:R.adCpn,exit:J.adCpn,seek:l,skip:F});O.api.Z("html5_ssdai_enable_media_end_cue_range")&&O.api.u$();if(R.isAd&&J.isAd){u=!!F;if(R.adCpn&&J.adCpn){var y=O.B.get(R.adCpn);var w=O.B.get(J.adCpn)}u?O.M1({igtransskip:1,enter:R.adCpn,exit:J.adCpn,seek:l,skip:F}):JL(O,w,y,J.J1,R.J1,l,u)}else if(!R.isAd&&J.isAd){O.b5=u.cpn;O.Ks(u.cpn);O.api.publish("serverstitchedvideochange");y=O2(O,"a2c"); O.M1(y);O.vn=0;if(y=J.pZ)O.Tg=y.end;var I;J.adCpn&&(I=O.B.get(J.adCpn));I&&O.playback.Si(I,u,J.J1,R.J1,l,!!F)}else if(R.isAd&&!J.isAd){var C;R.adCpn&&(C=O.B.get(R.adCpn));C&&(O.Tg=0,O.b5=C.cpn,O.Ks(C.cpn),Rl(O,C),I=O2(O,"c2a",C),O.M1(I),O.vn=1,O.playback.Si(u,C,J.J1,R.J1,l,!!F))}}; i8=function(O,R,J){J=J===void 0?0:J;var l=g.$M(O.D,{r5:(R+J)*1E3},function(y,w){return y.r5-w.r5}); l=l<0?(l+2)*-1:l;if(l>=0)for(var u=R*1E3,F=l;F<=l+1&&F=G.r5-J*1E3&&u<=G.LZ+J*1E3)return{h4:G,lA:R}}return{h4:void 0,lA:R}}; xoH=function(O,R){var J="";(R=HUs(O,R))&&(J=R.getId());return J?O.B.get(J):void 0}; HUs=function(O,R){if(O.b5){var J=O.S.get(O.b5);if(J&&J.start-200<=R&&J.end+200>=R)return J}O=g.N(O.S.values());for(J=O.next();!J.done;J=O.next())if(J=J.value,J.start<=R&&J.end>=R)return J}; bUT=function(O,R,J){var l=O.SG||O.app.mX().getPlayerState();l8(O,!0);O.playback.seekTo(R,J);O=O.app.mX();R=O.getPlayerState();l.isOrWillBePlaying()&&!R.isOrWillBePlaying()?O.playVideo():l.isPaused()&&!R.isPaused()&&O.pauseVideo()}; l8=function(O,R){O.d5=NaN;O.AT=null;O.w5.stop();O.Gd&&R&&O.Gd.e9();O.SG=null;O.Gd=null}; Uo0=function(O){var R=R===void 0?-1:R;var J=J===void 0?Infinity:J;for(var l=[],u=g.N(O.D),F=u.next();!F.done;F=u.next())F=F.value,(F.r5J)&&l.push(F);O.D=l;l=g.N(O.S.values());for(u=l.next();!u.done;u=l.next())u=u.value,u.start>=R&&u.end<=J&&(O.playback.removeCueRange(u),O.S.delete(u.getId()),O.M1({rmAdCR:1}));l=i8(O,R/1E3);R=l.h4;l=l.lA;if(R&&(l=l*1E3-R.r5,u=R.r5+l,R.durationMs=l,R.LZ=u,l=O.S.get(R.cpn))){u=g.N(O.j);for(F=u.next();!F.done;F=u.next())F=F.value,F.start===l.end?F.start=R.r5+ R.durationMs:F.end===l.start&&(F.end=R.r5);l.start=R.r5;l.end=R.r5+R.durationMs}if(R=i8(O,J/1E3).h4){var G;l="playback_timelinePlaybackId_"+R.Ao+"_video_id_"+((G=R.videoData)==null?void 0:G.videoId)+"_durationMs_"+R.durationMs+"_enterTimeMs_"+R.r5+"_parentReturnTimeMs_"+R.LZ;O.DH("Invalid_clearEndTimeMs_"+J+"_that_falls_during_"+l+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; jSB=function(O){O.xS.clearAll();O.S.clear();O.j=[];O.D=[];O.B.clear();O.mM.clear();O.J.clear();O.W.clear();O.KJ=[];O.OQ=null;O.Rz.clear();O.Qh=[];O.zJ=[];O.Jo=[];O.TR=[];O.Iu=[];O.Td.clear();O.CG.clear();O.m1.clear();O.AR.clear();O.N1=!1;O.L=void 0;O.Tg=0;O.JR=!0;O.V=!1;O.vn=0;O.Y9=0;O.Py=!1;O.Yd=!1;O.N="";O.iz.isActive()&&cK(O)}; L_0=function(O,R,J,l,u,F){if(!O.Yd)if(g.QS2(O,J))O.M1({gdu:"undec",seg:J,itag:u});else if(R=u8(O,R,J,l,F),!(O.playback.getVideoData().Zv()&&(R==null?0:R.LX)))return R}; u8=function(O,R,J,l,u){var F=O.W.get(J);if(!F){if(F=YDB(O,R))return F;R=O.yr(J-1,l!=null?l:2);if(u)return O.M1({misscue:u,sq:J,type:l,prevsstate:R==null?void 0:R.xD,prevrecord:O.W.has(J-1)}),O.W.get(J-1);if((R==null?void 0:R.xD)===2)return O.M1({adnf:1,sq:J,type:l,prevrecord:O.W.has(J-1)}),O.W.get(J-1)}return F}; YDB=function(O,R){R+=O.Y7();if(O.playback.getVideoData().Zv())a:{var J=1;J=J===void 0?0:J;var l=R*1E3;O=g.N(O.D);for(var u=O.next();!u.done;u=O.next()){u=u.value;var F=u.Yz?u.Yz*1E3:u.r5;if(l>=u.r5-J*1E3&&l<=F+u.durationMs+J*1E3){l={h4:u,lA:R};break a}}l={h4:void 0,lA:R}}else l=i8(O,R),((J=l)==null?0:J.h4)||(l=i8(O,R,1));var G;return(G=l)==null?void 0:G.h4}; doz=function(O,R){R=R===void 0?"":R;var J=Gj(R)||void 0;if(!R||!J){var l;O.M1({adcfg:(l=R)==null?void 0:l.length,dcfg:J==null?void 0:J.length})}return J}; hSf=function(O){if(O.Iu.length)for(var R=g.N(O.Iu),J=R.next();!J.done;J=R.next())O.onCueRangeExit(J.value);R=g.N(O.S.values());for(J=R.next();!J.done;J=R.next())O.playback.removeCueRange(J.value);R=g.N(O.j);for(J=R.next();!J.done;J=R.next())O.playback.removeCueRange(J.value);O.S.clear();O.j=[];O.xS.clearAll();O.L||(O.JR=!0)}; JL=function(O,R,J,l,u,F,G){if(R&&J){O.b5=J.cpn;O.Ks(J.cpn);Rl(O,J);var y=O2(O,"a2a",J);O.M1(y);O.vn++;O.playback.Si(R,J,l||0,u||0,!!F,!!G)}else O.M1({misspbkonadtrans:1,enter:(J==null?void 0:J.cpn)||"",exit:(R==null?void 0:R.cpn)||"",seek:F,skip:G})}; ncA=function(O,R,J,l){if(l)for(l=0;lJ){var F=u.end;u.end=R;zSW(O,J,F)}else if(u.start>=R&&u.startJ)u.start=J;else if(u.end>R&&u.end<=J&&u.start=R&&u.end<=J){O.playback.removeCueRange(u);if(O.Iu.includes(u))O.onCueRangeExit(u);O.j.splice(l,1);continue}l++}else zSW(O,R,J)}; zSW=function(O,R,J){R=O.Jy(R,J);J=!0;g.AV(O.j,R,function(G,y){return G.start-y.start}); for(var l=0;l0){var u=O.j[l],F=O.j[l-1];if(Math.round(F.end/1E3)>=Math.round(u.start/1E3)){F.end=u.end;u!==R?O.playback.removeCueRange(u):J=!1;O.j.splice(l,1);continue}}l++}if(J)for(O.playback.addCueRange(R),R=O.playback.Mb("serverstitchedcuerange",36E5),R=g.N(R),J=R.next();!J.done;J=R.next())O.S.delete(J.value.getId())}; F4=function(O,R,J){if(J===void 0||!J){J=g.N(O.KJ);for(var l=J.next();!l.done;l=J.next()){l=l.value;if(R>=l.start&&R<=l.end)return;if(R===l.end+1){l.end+=1;return}}O.KJ.push(new sS_(R))}}; g.QS2=function(O,R){O=g.N(O.KJ);for(var J=O.next();!J.done;J=O.next())if(J=J.value,R>=J.start&&R<=J.end)return!0;return!1}; GQ=function(O,R,J){var l;if(l=O.playback.getVideoData().Zv()||O.Ru.Z("html5_ssdai_extent_last_unfinished_ad_cue_range"))l=(l=O.B.get(R))&&l.Ne?(O=O.J.get(l==null?void 0:l.Ne))&&O.slice(-1)[0].cpn===R:!1;return l&&J===2?1E3:0}; eSA=function(O,R,J,l,u){var F;R={reason:"overlapping_playbacks",R1q:R,r5:J,LZ:l,RnR:u.Ao,LhJ:((F=u.videoData)==null?void 0:F.videoId)||"",MVQ:u.durationMs,oyQ:u.r5,f2h:u.LZ};nC(O,R)}; nC=function(O,R,J){O.playback.GU(R,J)}; cnW=function(O,R){var J=[];O=O.J.get(R);if(!O)return[];O=g.N(O);for(R=O.next();!R.done;R=O.next())R=R.value,R.cpn&&J.push(R.cpn);return J}; OYA=function(O,R,J){var l=0;O=O.J.get(J);if(!O)return-1;O=g.N(O);for(J=O.next();!J.done;J=O.next()){if(J.value.cpn===R)return l;l++}return-1}; R40=function(O,R){var J=0;O=O.J.get(R);if(!O)return 0;O=g.N(O);for(R=O.next();!R.done;R=O.next())R=R.value,R.durationMs!==0&&R.LZ!==R.r5&&J++;return J}; JEz=function(O,R,J){var l=!1;if(J&&(J=O.J.get(J))){J=g.N(J);for(var u=J.next();!u.done;u=J.next())u=u.value,u.durationMs!==0&&u.LZ!==u.r5&&(u=u.cpn,R===u&&(l=!0),l&&!O.CG.has(u)&&(O.M1({decoratedAd:u}),O.CG.add(u)))}}; W_s=function(O){O.sQ&&O.M1({adf:"0_"+((new Date).getTime()/1E3-O.Y9)+"_isTimeout_"+O.N1})}; AnA=function(O,R,J){if(O.Qh.length)for(var l=g.N(O.Qh),u=l.next(),F={};!u.done;F={Wg:void 0},u=l.next()){F.Wg=u.value;u=F.Wg.startSecs*1E3;var G=F.Wg.d2*1E3+u;if(R>u&&Ru&&J=R)return J}}; fdz=function(O){var R=O.playback.getVideoData();O.b5&&(O=O.PD.get(O.b5))&&(R=O);return R}; Scx=function(O,R,J){J=J===void 0?!1:J;var l=O.timeline.L;if(l){l=l.L;var u=Array.from(l.keys());g.sC(u);R=g.$M(u,R);R=l.get(u[R<0?(R+2)*-1:R]);if(!J&&R){J=g.N(R);for(R=J.next();!R.done;R=J.next())if(R=R.value,R.u0()!==R.sV())return R;return O.timeline}return R&&R.length>0?R[R.length-1]:void 0}}; t_p=function(O,R,J){J=J===void 0?!1:J;var l=Scx(O,R,J);if(l){if(O=l.segments,O.length){for(var u=g.N(O),F=u.next();!F.done;F=u.next())if(F=F.value,F.u0()<=R&&F.sV()>R)return F;if(J&&l.u0()===l.sV())return O[0]}}else O.api.nJ("ssap",{ctnf:1})}; FrL=function(O,R){var J;if(O.tC)for(J=O.ey.shift();J&&J!==O.tC;)J=O.ey.shift();else J=O.ey.shift();if(J){if(O.Gb.has(J))NFT(O,J);else if(R===3||R===4)O.DD.stop(),O.api.playVideo(1);O.kt.set(O.b5,R);O.api.nJ("ssap",{onvftn:1});CpL(O,J);return!1}O.api.nJ("ssap",{onvftv:1});O.DD.stop();return!0}; NFT=function(O,R){R=YA(O.timeline,R);if(R==null?0:R.length)O.api.pauseVideo(),O.DD.start(R[0].eX)}; CpL=function(O,R){var J=O.playback.getVideoData(),l=J.clientPlaybackNonce;O.Hx&&(O.events.uK(O.Hx),O.Hx=null);var u=O.b5,F=!1;if(u==="")u=l,F=!0;else if(u===void 0){var G=O.playback.Lo();G&&O.timeline.S.has(G)&&(u=G);O.api.nJ("ssap",{mcc:u+";"+R});O.playback.sZ(new MC("ssap.timelineerror",{e:"missing_current_cpn",pcpn:u,ccpn:R}))}if(u===R)F&&J&&mHf(O,J,F);else{G=O.kt.get(u);if(!F&&(!G||G!==3&&G!==5&&G!==6&&G!==7)){var y=O.api.u$(O.b5);O.api.nJ("ssap",{nmec:y,cpc:O.b5,ec:R})}G&&G!==2||O.oY();O.b5= R;O.oY();R=YA(O.timeline,O.b5);if(R==null?0:R.length){R=R[0];y=R.type;u!==l&&(O.Ws=u,J=O.PD.get(u));G?O.kt.delete(u):G=F?1:2;O.api.nJ("ssapt",{ostro:G,pcpn:u,ccpn:O.b5});a:{var w=O.b5;if(!O.ue.has(w))for(var I=g.N(O.ue),C=I.next();!C.done;C=I.next()){var r=g.N(C.value);C=r.next().value;r=r.next().value;if(r.getId().includes(w)){w=C;break a}}}I=O.api.T().Z("html5_ssap_insert_su_before_nonvideo")&&w!==O.b5;O.playback.PX(w,I);w=Math.max(0,Evs(O,u));I=O.playback.getCurrentTime();I=Math.max(0,I-KJ(O,O.b5)/ 1E3);C=R.getVideoData();r=G===3||G===5||G===6||G===7;if(O.api.Z("html5_ssap_skip_illegal_seeking")){var t=O.playback.getPlayerState();t=!g.d(t,8)&&g.d(t,16);r=r||t;t&&O.api.nJ("ssap",{iis:1})}O.playback.yW(u,O.b5,w,I,!1,r,O.playback.getPlayerState(),!0);O.api.nJ("ssapt",{ostri:G,pcpn:u,ccpn:O.b5});var Z;O.playback.nf(u,O.b5,l,C,(Z=O.EP.get(u))!=null?Z:(0,g.Q)(),J);O.EP.delete(u);F?J=void 0:J||O.api.nJ("ssap",{pvdm:u+";"+O.b5,pvdmc:O.b5===l?"1":"0"});O.api.nJ("ssap",{tpac:u+";"+O.b5,tpcc:l,tpv:(C== null?0:C.Dh())?"1":"0"},!1,1);O.api.m2();O.api.publish("videodatachange","newdata",C,y,J,G);R.B||O.playback.getVideoData().publish("dataupdated");O.Gb.delete(u);O.tC="";C&&y===1?mHf(O,C):O.playback.nJ("ssap",{nis:O.b5});y===2?O.vn++:O.vn=0}}}; mHf=function(O,R,J){J=J===void 0?!1:J;if(R.startSeconds&&O.nC){var l=R.startSeconds;R=YA(O.timeline,R.clientPlaybackNonce);if(R==null?0:R.length)l+=R[0].u0()/1E3,O.api.Z("htm5_ssap_ignore_initial_seek_if_too_big")&&l>=O.OD()||(O.playback.seekTo(l,{QQ:!0}),O.nC=!1,O.playback.nJ("ssap",{is:O.b5,co:J?"1":"0",tse:l.toFixed()}))}}; IdW=function(O,R,J){R=YA(O.timeline,R);if(R!=null&&R.length&&(R=Scx(O,R[0].u0()))){R=g.N(R.segments);for(var l=R.next();!l.done;l=R.next()){l=l.value;if(l.Od()===J)break;if(l=l.Od()){var u=O.ue.get(l);u&&O.playback.removeCueRange(u);O.ue.delete(l)}}}}; z1x=function(O,R,J){t_p(O,R)||O.playback.nJ("ssap",{ilgsk:R.toFixed(),mep:J?"1":"0",tl:Yo(O)})}; Evs=function(O,R){R=R||O.b5;var J=O.PD.get(R);return J?J.Iu:R!==O.playback.getVideoData().clientPlaybackNonce?0:O.playback.getVideoData().Iu}; Yo=function(O){var R=O.b5;R||(R=O.playback.getVideoData().clientPlaybackNonce);var J,l,u=Array.from((l=(J=O.timeline.L)==null?void 0:J.L.values())!=null?l:[]);J=[];if(u==null?0:u.length)for(l=g.N(u),u=l.next();!u.done;u=l.next())if(u=u.value,u.length&&u[0]&&(u=u[0].segments,u.length)){u=g.N(u);for(var F=u.next();!F.done;F=u.next()){var G=F.value;F="st."+G.u0()+";";F+="et."+G.sV()+";";var y=G.Od();y&&(F+="cpn."+y+";",F+="a."+(R===y?1:0)+";");if(G=G.getVideoData())y=void 0,F+="vid."+((y=G.videoId)!= null?y:"nvd");J.push(F)}}return(J.length?J.join(","):"empty."+R)+";cpcpn."+O.oG()}; Grf=function(O){O.playback.H7(Array.from(O.ue.values()));O.ue.clear()}; adf=function(O,R,J,l){g.p.call(this);var u=this;this.api=O;this.Ru=R;this.L=J;this.app=l;this.D=new Map;this.S=[];this.B=this.J=null;this.SN=NaN;this.j=this.N=this.W=null;this.V=new g.zR(function(){DHx(u,u.SN,u.W||void 0)}); this.Hq=[];this.OQ=new g.zR(function(){var F=u.Hq.pop();if(F){var G=F.Ao,y=F.playerVars;F=F.playerType;y&&(y.prefer_gapless=!0,u.api.preloadVideoByPlayerVars(y,F,NaN,"",G),u.Hq.length&&g.nP(u.OQ,4500))}}); this.events=new g.p8(this);this.nG={Q7S:function(){return u.S}}; this.L.getPlayerType();g.H(this,this.V);g.H(this,this.OQ);g.H(this,this.events);this.events.U(this.api,g.Gh("childplayback"),this.onCueRangeEnter);this.events.U(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.U(this.api,"presentingplayerstatechange",this.NU)}; $Hx=function(O,R,J,l,u,F){var G=R.cpn,y=R.docid||R.video_id||R.videoId||R.id,w=O.L;F=F===void 0?u+l:F;if(u>F)return yq(O,"enterAfterReturn enterTimeMs="+u+" is greater than parentReturnTimeMs="+F.toFixed(3),G,y),"";var I=w.q7()*1E3;if(uI)return w="returnAfterDuration parentReturnTimeMs="+F.toFixed(3)+" is greater than parentDurationMs="+I+". And timestampOffset in seconds is "+ w.Vd(),yq(O,w,G,y),"";I=null;for(var C=g.N(O.S),r=C.next();!r.done;r=C.next()){r=r.value;if(u>=r.r5&&ur.r5)return yq(O,"overlappingReturn",G,y),"";if(F===r.r5)return yq(O,"outOfOrder",G,y),"";u===r.LZ&&(I=r)}G="cs_childplayback_"+vvs++;y={pZ:w8(l,!0),Ro:Infinity,target:null};var t={Ao:G,playerVars:R,playerType:J,durationMs:l,r5:u,LZ:F,GK:y};O.S=O.S.concat(t).sort(function(m,E){return m.r5-E.r5}); I?XNs(O,I,{pZ:w8(I.durationMs,!0),Ro:I.GK.Ro,target:t}):(R={pZ:w8(u,!1),Ro:u,target:t},O.D.set(R.pZ,R),w.addCueRange(R.pZ));R=!0;if(O.L===O.app.mX()&&(w=w.getCurrentTime()*1E3,w>=t.r5&&wR)break;if(F>R)return{h4:l,lA:R-u};J=F-l.LZ/1E3}return{h4:null,lA:R-J}}; DHx=function(O,R,J){J=J===void 0?{}:J;var l=O.j||O.app.mX().getPlayerState();r8(O,!0);R=isFinite(R)?R:O.L.xM();var u=sm2(O,R);R=u.lA;var F=(u=u.h4)&&!Il(O,u)||!u&&O.L!==O.app.mX(),G=R*1E3;G=O.B&&O.B.start<=G&&G<=O.B.end;!F&&G||CJ(O);u?TFh(O,u,R,J,l):bYh(O,R,J,l)}; bYh=function(O,R,J,l){var u=O.L;u!==O.app.mX()&&O.app.LR();u.seekTo(R,Object.assign({},{bK:"application_timelinemanager"},J));Wrp(O,l)}; TFh=function(O,R,J,l,u){var F=Il(O,R);if(!F){R.playerVars.prefer_gapless=!0;O.Ru.Z("html5_enable_ssap_entity_id")&&(R.playerVars.cached_load=!0);var G=new g.jN(O.Ru,R.playerVars);G.Ao=R.Ao;O.api.xu(G,R.playerType)}G=O.app.mX();F||G.addCueRange(R.GK.pZ);G.seekTo(J,Object.assign({},{bK:"application_timelinemanager"},l));Wrp(O,u)}; Wrp=function(O,R){O=O.app.mX();var J=O.getPlayerState();R.isOrWillBePlaying()&&!J.isOrWillBePlaying()?O.playVideo():R.isPaused()&&!J.isPaused()&&O.pauseVideo()}; r8=function(O,R){O.SN=NaN;O.W=null;O.V.stop();O.N&&R&&O.N.e9();O.j=null;O.N=null}; Il=function(O,R){O=O.app.mX();return!!O&&O.getVideoData().Ao===R.Ao}; AE0=function(O){var R=O.S.find(function(u){return Il(O,u)}); if(R){var J=O.app.mX();CJ(O);var l=new g.GP(8);R=krB(O,R)/1E3;bYh(O,R,{},l);J.nJ("forceParentTransition",{childPlayback:1});O.L.nJ("forceParentTransition",{parentPlayback:1})}}; Ppf=function(O,R,J){R=R===void 0?-1:R;J=J===void 0?Infinity:J;for(var l=R,u=J,F=g.N(O.D),G=F.next();!G.done;G=F.next()){var y=g.N(G.value);G=y.next().value;y=y.next().value;y.Ro>=l&&y.target&&y.target.LZ<=u&&(O.L.removeCueRange(G),O.D.delete(G))}l=R;u=J;F=[];G=g.N(O.S);for(y=G.next();!y.done;y=G.next())if(y=y.value,y.r5>=l&&y.LZ<=u){var w=O;w.J===y&&CJ(w);Il(w,y)&&w.app.LR()}else F.push(y);O.S=F;l=sm2(O,R/1E3);R=l.h4;l=l.lA;R&&(l*=1E3,e4_(O,R,l,R.LZ===R.r5+R.durationMs?R.r5+l:R.LZ));(R=sm2(O,J/1E3).h4)&& yq(O,"Invalid clearEndTimeMs="+J+" that falls during playback={timelinePlaybackId="+(R.Ao+" video_id="+R.playerVars.video_id+" durationMs="+R.durationMs+" enterTimeMs="+R.r5+" parentReturnTimeMs="+R.LZ+"}.Child playbacks can only have duration updated not their start."))}; e4_=function(O,R,J,l){R.durationMs=J;R.LZ=l;l={pZ:w8(J,!0),Ro:J,target:null};XNs(O,R,l);Il(O,R)&&O.app.mX().getCurrentTime()*1E3>J&&(R=krB(O,R)/1E3,J=O.app.mX().getPlayerState(),bYh(O,R,{},J))}; yq=function(O,R,J,l){O.L.nJ("timelineerror",{e:R,cpn:J?J:void 0,videoId:l?l:void 0})}; BFx=function(O){O&&O!=="web"&&pNx.includes(O)}; tL=function(){g.p.call(this);this.L=new HK(5,null);g.H(this,this.L);this.S=new HK(15,null);g.H(this,this.S)}; akh=function(O,R){return R?!!O.L.get(R):!1}; HY2=function(O,R){O.dataset.version=R}; jmp=function(O){g.L.call(this,{Y:"div",q1:["html5-video-player"],C:{tabindex:O.T().disableOrganicUi?"":"-1",id:O.webPlayerContextConfig?O.webPlayerContextConfig.rootElementId:O.config.attrs.id},K:[{Y:"div",G:g.O7.VIDEO_CONTAINER,C:{"data-layer":"0"}}]});var R=this;this.app=O;this.Pg=this.Bq(g.O7.VIDEO_CONTAINER);this.PR=new g.bv(0,0,0,0);this.oz=null;this.x$=new g.bv(0,0,0,0);this.rP=this.TI=this.Aq=NaN;this.r8=this.Qj=this.w6=this.FI=!1;this.Ca=NaN;this.v5=!1;this.jw=null;this.B$=function(){R.element.focus({preventScroll:!0})}; this.Rd=function(){R.app.Zg.publish("playerUnderlayVisibilityChange","visible");R.oz.classList.remove(g.O7.VIDEO_CONTAINER_TRANSITIONING);R.oz.removeEventListener(wp,R.Rd);R.oz.removeEventListener("transitioncancel",R.Rd)}; this.kU=this.Nd=!1;var J=this.element.addEventListener,l=this.element.removeEventListener;this.addEventListener=function(F,G,y){J.apply(R.element,[F,G,y])}; this.removeEventListener=function(F,G,y){l.apply(R.element,[F,G,y])}; var u=O.T();u.transparentBackground&&this.Np("ytp-transparent");u.controlsType==="0"&&this.Np("ytp-hide-controls");g.F8(this.element,"ytp-exp-bottom-control-flexbox");g.F8(this.element,"ytp-modern-caption");u.Z("enable_new_paid_product_placement")&&!g.cv(u)&&g.F8(this.element,"ytp-exp-ppp-update");u.Z("html5_enable_ssap")&&g.F8(this.element,"ytp-ssap");g.F8(this.element,"ytp-livebadge-color");if(u.Z("delhi_modern_web_player"))switch(g.F8(this.element,"ytp-delhi-modern"),gm(u.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.F8(this.element, "ytp-delhi-modern-with-luminosity");break;case "difference":g.F8(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.F8(this.element,"ytp-delhi-modern-with-exclusion")}HY2(this.element,xHL(O));this.LC=!1;this.HO=new g.so(NaN,NaN);UHL(this);this.U(O.Zg,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; UHL=function(O){function R(){O.oz&&ol(O);ZC(O)!==O.v5&&O.resize()} function J(G,y){O.DO(G,y)} function l(G){G.getVideoData()&&O.updateVideoData(G.getVideoData())} function u(){O.x$=new g.bv(0,0,0,0);O.PR=new g.bv(0,0,0,0)} var F=O.app.Zg;F.addEventListener("initializingmode",u);F.addEventListener("videoplayerreset",l);F.addEventListener("videodatachange",J);F.addEventListener("presentingplayerstatechange",R);O.addOnDisposeCallback(function(){F.removeEventListener("initializingmode",u);F.removeEventListener("videoplayerreset",l);F.removeEventListener("videodatachange",J);F.removeEventListener("presentingplayerstatechange",R)})}; Lrf=function(O){var R=O.app.mX(),J=R=R?R.getVideoData():null;if(R==null?0:g.dy(R))J=O.app.Zg.getVideoData();if(J){if(g.$D(J)||g.MZ(J)||g.qZ(J))return 16/9;if(gr(J)&&J.B.L)return O=J.B.videoInfos[0].video,QmL(O.width,O.height)}return(O=O.oz)?QmL(O.videoWidth,O.videoHeight):16/9}; Ycf=function(O,R,J,l){var u=J,F=QmL(R.width,R.height);O.FI?u=JF?{width:R.width,height:R.width/u,aspectRatio:u}:uu?O.width=O.height*J:Jw;if(ZC(O)){var I=Lrf(O);var C=isNaN(I)||g.dj||Jy&&g.N$||w;YS&&!g.vE(601)?I=u.aspectRatio:C=C||F.controlsType==="3";C?w?(C=F.Z("place_shrunken_video_on_left_of_player")?16:O.getPlayerSize().width-R.width-16,I=Math.max((O.getPlayerSize().height-R.height)/2,0),C=new g.bv(C,I,R.width, R.height),O.oz.style.setProperty("border-radius","12px")):C=new g.bv(0,0,R.width,R.height):(J=u.aspectRatio/I,C=new g.bv((R.width-u.width/J)/2,(R.height-u.height)/2,u.width/J,u.height),J===1&&g.N$&&(I=C.width-R.height*I,I>0&&(C.width+=I,C.height+=I)));g.wI(O.element,"ytp-fit-cover-video",Math.max(C.width-u.width,C.height-u.height)<1);if(y||O.LC)O.oz.style.display="";O.v5=!0}else{C=-R.height;YS?C*=window.devicePixelRatio:g.OE&&(C-=window.screen.height);C=new g.bv(0,C,R.width,R.height);if(y||O.LC)O.oz.style.display= "none";O.v5=!1}eJ(O.x$,C)||(O.x$=C,g.Aj(F)?(O.oz.style.setProperty("width",C.width+"px","important"),O.oz.style.setProperty("height",C.height+"px","important")):g.hH(O.oz,C.getSize()),l=new g.qc(C.left,C.top),g.QH(O.oz,Math.round(l.x),Math.round(l.y)),l=!0);R=new g.bv((R.width-u.width)/2,(R.height-u.height)/2,u.width,u.height);eJ(O.PR,R)||(O.PR=R,l=!0);g.pS(O.oz,"transform",J===1?"":"scaleX("+J+")");G&&w!==O.Qj&&(w&&(O.oz.addEventListener(wp,O.Rd),O.oz.addEventListener("transitioncancel",O.Rd),O.oz.classList.add(g.O7.VIDEO_CONTAINER_TRANSITIONING)), O.Qj=w,O.app.Zg.publish("playerUnderlayVisibilityChange",O.Qj?"transitioning":"hidden"));return l}; z4_=function(O){O.Nd=!O.Nd;O.kU=!0;O.element.classList.toggle("ytp-retro-player",O.Nd);O.resize();O.kU=!1;O.app.Zg.tR("onRetroModeChanged",O.Nd)}; nvW=function(){this.csn=g.X5();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.L=new Set;this.S=new Set}; cEh=function(O){if(O.csn!==g.X5())if(O.csn==="UNDEFINED_CSN")O.csn=g.X5();else{var R=g.X5(),J=g.vM();if(R&&J){O.csn=R;for(var l=g.N(O.elements),u=l.next();!u.done;u=l.next())(u=u.value.visualElement)&&u.isClientVe()&&R&&J&&(g.S8("combine_ve_grafts")?eC(WU(),u,J):g.nA(g.dw)(void 0,R,J,u))}if(R)for(O=g.N(O.L),J=O.next();!J.done;J=O.next())(J=J.value.visualElement)&&J.isClientVe()&&g.iW(R,J)}}; g.Vq=function(O,R,J,l){g.p.call(this);var u=this;this.logger=new g.l9("App");this.Ix=this.jt=!1;this.Id={};this.wi=[];this.N6=!1;this.g4=null;this.intentionalPlayback=!1;this.Zx=!0;this.B6=!1;this.uN=this.mT=this.r4=null;this.Lf=!0;this.mediaElement=this.hT=null;this.c5=NaN;this.Sy=!1;this.aj=this.KR=this.YH=this.HW=this.screenLayer=this.playlist=null;this.Mu=[];this.ES=0;this.nG={Xf:function(){return u.N7}, vI:function(){return u.YH}, urh:function(){return u.HW}, B7:function(F){u.YH=F}, H9:function(F,G){u.YH&&u.YH.H9(F,G)}}; this.logger.debug("constructor begin");this.config=xu0(R||{});this.webPlayerContextConfig=J;J3s();R=this.config.args||{};this.Ru=new US(R,J,J?J.canaryState:this.config.assets.player_canary_state,l,this);g.H(this,this.Ru);aBH(this.Ru);l=XtT(this.Ru);this.Ru.DA()&&this.Mu.push({key:"h5vcc",value:l});this.Ru.experiments.Vh("jspb_serialize_with_worker")&&AFB();this.Ru.experiments.Vh("gzip_gel_with_worker")&&Tn0();this.Ru.S&&!OWx&&(window.addEventListener(aZ?"touchstart":"click",RSs,{capture:!0,passive:!0}), OWx=!0);this.Z("html5_onesie")&&(this.q0=new JJ(this.Ru),g.H(this,this.q0));this.Se=iE(q7(this.Ru)&&!0,R.enablesizebutton);this.Q7=iE(!1,R.player_wide);this.visibility=new VGp;g.H(this,this.visibility);this.Z("web_log_theater_mode_visibility")&&this.vV(iE(!1,R.player_wide));this.jt=iE(!1,R.external_list);this.events=new g.p8(this);g.H(this,this.events);this.Z("start_client_gcf")&&(k5(A_(),{ox:Kr,SI:n6p()}),this.xb=A_().resolve(Kr),Rw0(this.xb));this.tRd=new II;g.H(this,this.tRd);this.eO=new nvW;l= new Co;this.Zg=new g.vD(this,l);g.H(this,this.Zg);this.template=new jmp(this);g.H(this,this.template);this.appState=1;this.zE=RxA(this);g.H(this,l);l={};this.B9=(l.internalvideodatachange=this.Z1h,l.playbackready=this.IAQ,l.playbackstarted=this.D9Q,l.statechange=this.rTh,l);this.Z3=new KT(this.Zg);this.KZ=Jef(this);l=this.Z("html5_load_wasm");R=this.Z("html5_allow_asmjs");l&&g1f||R?(this.Ru.m1=q2s(this.KZ,R),EP(mq(this.Ru.m1,function(F){u.Ru.fZ=F;u.mX().nJ("wasm",{a:F.L})}),function(F){g.Aa(F); u.mX().nJ("wasm",{e:"message"in F&&F.message||F.toString()||""})})):l&&!g1f&&this.mX().nJ("wasm",{e:"wasm unavailable"}); this.N9=new Bgh(this.Ru,this.KZ);this.Zg.publish("csiinitialized");l=10;g.$T(this.Ru)&&(l=3);nb(this.Ru)&&(l=g.tB(this.Ru.experiments,"tvhtml5_unplugged_preload_cache_size"));this.N7=new g.Uv(this.Zg,l);l=iWH(this);this.N7.gw(l);l6s(this);l={};this.n0=(l.airplayactivechange=this.E9d,l.airplayavailabilitychange=this.GRu,l.beginseeking=this.m7u,l.sabrCaptionsDataLoaded=this.o9h,l.endseeking=this.lvQ,l.internalAbandon=this.AoJ,l.internalaudioformatchange=this.U7X,l.internalvideodatachange=this.S81,l.internalvideoformatchange= this.F$z,l.liveviewshift=this.Tzd,l.playbackstalledatstart=this.g8N,l.progresssync=this.W1R,l.onAbnormalityDetected=this.avq,l.onSnackbarMessage=this.n8S,l.onLoadProgress=this.K1N,l.SEEK_COMPLETE=this.fvR,l.SEEK_TO=this.RPR,l.onVideoProgress=this.eP1,l.onLoadedMetadata=this.tru,l.onAutoplayBlocked=this.kRX,l.onPlaybackPauseAtStart=this.PKS,l.playbackready=this.coq,l.statechange=this.BN,l.newelementrequired=this.uo,l.heartbeatparams=this.VrX,l.videoelementevent=this.HZQ,l.drmoutputrestricted=this.zhR, l.signatureexpired=this.L$S,l.nonfatalerror=this.CKN,l.reloadplayer=this.Mr1,l);this.ZU=new g.p8(this);g.H(this,this.ZU);this.JZ=new tL;g.H(this,this.JZ);this.G7=this.Gc=-1;this.Pw=new g.zR(this.template.resize,16,this.template);g.H(this,this.Pw);this.x9=new adf(this.Zg,this.Ru,this.g5(),this);this.As=new QZ(this.Ru);this.fE=new Az(this);g.H(this,this.fE);this.oR=new q1(this);g.H(this,this.oR);BFx(this.Ru.L.c);this.events.U(this.Zg,g.Gh("appapi"),this.jzq);this.events.U(this.Zg,g.KR("appapi"),this.x9h); this.events.U(this.Zg,g.Gh("appprogressboundary"),this.hPh);this.events.U(this.Zg,g.KR("applooprange"),this.fM);this.events.U(this.Zg,"presentingplayerstatechange",this.NU);this.events.U(this.Zg,"resize",this.D5N);this.template.hR(g.e(xC(document,O)));this.events.U(this.Zg,"offlineslatestatechange",this.IvQ);this.events.U(this.Zg,"sabrCaptionsTrackChanged",this.m5h);this.events.U(this.Zg,"sabrCaptionsBufferedRangesUpdated",this.kyN);this.KZ.X.T().gK&&Dk(this.KZ,"offline");this.Ru.AR&&g.r5("ux",g.$A); O=g.tB(this.Ru.experiments,"html5_defer_fetch_att_ms");this.lB=new g.zR(this.oeJ,O,this);g.H(this,this.lB);this.fG().Dh()&&(g.em()&&this.fG().OQ.push("remote"),uAx(this));this.N9.tick("fs");FmH(this);this.Ru.AR&&Dk(this.KZ,"ux",!0);g.$X(this.KZ.X.T())&&Dk(this.KZ,"embed");this.Z("web_player_sentinel_is_uniplayer")||g.Aa(new g.Ys("Player experiment flags missing","web_player_sentinel_is_uniplayer"));O=this.Z("web_player_sentinel_yt_experiments_sync");l=g.S8("web_player_sentinel_yt_experiments_sync"); O!==l&&g.Aa(new g.Ys("b/195699950",{yt:O,player:l}));J||g.Aa(new g.Ys("b/179532961"));this.CC=G6W(this);if(J=g.tB(this.Ru.experiments,"html5_block_pip_safari_delay"))this.KV=new g.zR(this.Li,J,this),g.H(this,this.KV);bl=this.Ru.mM;J=g.tB(this.Ru.experiments,"html5_performance_impact_profiling_timer_ms");J>0&&(this.T2=new g.Ph(J),g.H(this,this.T2),this.events.U(this.T2,"tick",function(){u.Kg&&Kmf.Fp("apit",u.Kg);u.Kg=Kmf.ri()})); this.Zg.publish("applicationInitialized");this.logger.debug("constructor end")}; G6W=function(O){function R(J){J.stack&&J.stack.indexOf("player")!==-1&&O.mX().zj(J)} er.subscribe("handleError",R);hD.push(R);return function(){er.unsubscribe("handleError",R);var J=hD.indexOf(R);J!==-1&&hD.splice(J,1)}}; iWH=function(O){var R=new g.jN(O.Ru,O.config.args);O.Zg.publish("initialvideodatacreated",R);return fJ(O,1,R,!1)}; l6s=function(O){var R=O.g5(),J=R.setPlaybackRate;if(O.Ru.N)var l=1;else l=Number(g.Wf("yt-player-playback-rate"))||1,l=yes(O,l);J.call(R,l);R.MP(O.B9,O);R.jP()}; Jef=function(O){var R="",J=xHL(O);J.indexOf("//")===0&&(J=O.Ru.protocol+":"+J);var l=J.lastIndexOf("/base.js");l!==-1&&(R=J.substring(0,l+1));if(J=Error().stack)if(J=J.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))J=J[1],J.includes(R)||g.Aa(Error("Player module URL mismatch: "+(J+" vs "+R+".")));R=new rL_(O.Zg,R);wcs(O,R);return R}; wcs=function(O,R){var J={};J=(J.destroyed=function(){O.onApiChange()},J); R.B=J}; RxA=function(O){if(O.Ru.storeUserVolume){O=g.Wf("yt-player-volume")||{};var R=O.volume;O={volume:isNaN(R)?100:g.TY(Math.floor(R),0,100),muted:!!O.muted}}else O={volume:100,muted:O.Ru.mute};return O}; S4=function(O){O.mediaElement=O.Ru.deviceIsAudioOnly?new g.j5(g.cE("AUDIO")):M1.pop()||new g.j5(g.cE("VIDEO"));g.H(O,O.mediaElement);O.mX().setMediaElement(O.mediaElement);try{O.Ru.Py?(O.KR&&O.events.uK(O.KR),O.KR=O.events.U(O.mediaElement,"volumechange",O.qZJ)):(O.mediaElement.hI(O.zE.muted),O.mediaElement.setVolume(O.zE.volume/100))}catch(u){O.Hf("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(u&&typeof u==="object"&&"message"in u&&typeof u.message==="string"&&u.message.replace(/[;:,]/g, "_")));return}g.MN(O.ZU);I6B(O);var R=O.template,J=O.mediaElement.u5();R.oz=J;R.r8=!1;R.oz.parentNode||gv(R.Pg,R.oz,0);R.x$=new g.bv(0,0,0,0);h4A(R);ol(R);J=R.oz;g.F8(J,"video-stream");g.F8(J,g.O7.MAIN_VIDEO);var l=R.app.T();l.zW&&J.setAttribute("data-no-fullscreen","true");l.Z("html5_local_playsinline")?"playsInline"in sy()&&(J.playsInline=!0):l.FB&&(J.setAttribute("webkit-playsinline",""),J.setAttribute("playsinline",""));l.Fy&&R.oz&&R.U(J,"click",J.play,J);try{O.mediaElement.activate()}catch(u){O.Hf("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(u&&typeof u==="object"&&"message"in u&&typeof u.message==="string"&&u.message.replace(/[;:,]/g,"_")))}}; reH=function(O){if(!C_f(O)){var R=O.g5().FK();R&&(R=R.Rw(),R instanceof Promise&&R.catch(function(){})); Nw(O,oe(O.getPlayerStateObject()))}}; I6B=function(O){var R=O.mediaElement;eV()?O.ZU.U(R,"webkitpresentationmodechanged",O.VZR):window.document.pictureInPictureEnabled&&(O.ZU.U(R,"enterpictureinpicture",function(){O.b2(!0)}),O.ZU.U(R,"leavepictureinpicture",function(){O.b2(!1)})); z3&&(O.ZU.U(R,"webkitbeginfullscreen",function(){O.K$(3)}),O.ZU.U(R,"webkitendfullscreen",function(){O.K$(0)}))}; txA=function(O,R){var J=R.getPlayerType(),l=O.N7.B[J]||null;R!==O.g5()&&R!==l&&(l==null||l.dispose(),O.N7.B[J]=R)}; o1A=function(O,R){R=R===void 0?!0:R;O.logger.debug("start clear presenting player");var J;if(J=O.aj){J=O.aj;var l=O.mediaElement;J=!!l&&l===J.mediaElement}J&&(O.QB(),S4(O));J=O.mX();J.QB(!R);J.dA(O.n0,O);J.getPlayerType()!==1&&J.dispose();R=O.N7;R.S=R.L;j1(R);O.logger.debug("finish clear presenting player")}; g.ZWH=function(O,R,J,l){var u=O.N9;R===2&&(u=new Bgh(O.Ru));return new g.Ot(O.Ru,R,u,O.template,function(F,G,y){O.Zg.publish(F,G,y)},function(){return O.Zg.getVisibilityState()},O.visibility,O,J,l)}; fJ=function(O,R,J,l,u){O=g.ZWH(O,R,J,u);O=new g.BD(O);l&&O.jP();return O}; mZ=function(O,R){return O.WW(R)?O.g5():R}; E2=function(O,R){var J=O.mX();return R===O.g5()&&O.WW(R)&&O.WW(J)?J:R}; SKs=function(O){O.logger.debug("start application playback");if(O.g5().getPlayerState().isError())O.logger.debug("start application playback done, player in error state");else{var R=DC(O);O.fG().isLoaded();R&&O.nS(6);Vxz(O);DwT(O.KZ)||f6p(O)}}; f6p=function(O){if(!DC(O)){var R=vr(O.KZ);R&&!R.created&&t4L(O.KZ)&&(O.logger.debug("reload ad module"),R.create())}}; Vxz=function(O){O.logger.debug("start presenter playback");var R=O.getVideoData(),J=O.KZ;DwT(J)||J.W9();!g1f&&J.X.Z("html5_allow_asmjs")&&M4H(J);Dk(J,"embed");Dk(J,"kids");Dk(J,"remote");Dk(J,"miniplayer");Dk(J,"offline");Dk(J,"unplugged");Dk(J,"ypc",!1,!0);Dk(J,"ypc_clickwrap",!1,!0);Dk(J,"yto",!1,!0);Dk(J,"webgl",!1,!0);aCA(J)||(Dk(J,"captions",!0),Dk(J,"endscreen"),J.uI()||J.wW(),Dk(J,"creatorendscreen",!0));J.v4();O.Zg.publish("videoready",R)}; al=function(O){O=O.fG();O.Dh();return P$(O)}; FmH=function(O){O.logger.debug("start prepare initial playback");O.h_();var R=O.config.args;S4(O);O.events.U(window,"resize",O.rpJ);var J=O.fG();O.Zg.qc("onVolumeChange",O.zE);if(R&&QBh(R)){var l=YX(O.Ru);l&&!O.jt&&(R.fetch=0);var u=g.$X(O.Ru);u&&!O.jt&&(R.fetch=0);vC(O,R);g.$X(O.Ru)&&O.N9.tick("ep_pr_s");if(!l||O.jt)if(u&&!O.jt)NiH(O);else if(!J.Dh())O.playlist.onReady(function(){X4(O)})}O.P2(O.g5(),!1,!0); g.d(O.g5().getPlayerState(),128)||(R=rTA(!O.Ru.deviceIsAudioOnly),R==="fmt.noneavailable"?O.Hf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):R==="html5.missingapi"?O.Hf(R,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):J&&J.Dh()&&al(O)&&(O.Ru.O0||O.Ru.a8)?TQ(O):J.Fb?O.Zg.mutedAutoplay({durationMode:J.mutedAutoplayDurationMode}):g.Wf("yt-player-playback-on-reload")?(g.wj("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!O.Ru.OQ}),g.bE("yt-player-playback-on-reload",!1), TQ(O)):JX(O.Ru)||mpA(O),g.zj(O.Ru)||RZ(O.Ru)==="MWEB"?(g.cf(g.RJ(),function(){$Y(O)}),g.cf(g.RJ(),function(){r_A()})):($Y(O),r_A()),O.logger.debug("finish prepare initial playback"))}; $Y=function(O){if(!O.Z("use_rta_for_player"))if(O.Z("fetch_att_independently"))g.nP(O.lB);else{var R=O.getVideoData().botguardData;R&&g.Q5(R,O.Ru,O.getVideoData().Vl||"")}}; mpA=function(O){O.logger.debug("start initialize to CUED mode");O.Zg.publish("initializingmode");O.nS(2);O.Z("embeds_web_enable_defer_loading_remote_js")&&g.cv(O.Ru)?g.cf(g.RJ(),function(){Dk(O.KZ,"remote")}):Dk(O.KZ,"remote"); Dk(O.KZ,"miniplayer");O.logger.debug("initialized to CUED mode")}; TQ=function(O){O.logger.debug("start initialize application playback");var R=O.g5();if(g.d(R.getPlayerState(),128))return!1;var J=R.getVideoData();al(O)&&O.Ru.a8&&(M1.length&&O.Ix?(Mw(O,{muted:!1,volume:O.zE.volume},!1),qw(O,!1)):M1.length||O.zE.muted||(Mw(O,{muted:!0,volume:O.zE.volume},!1),qw(O,!0)));al(O)&&g.$X(O.Ru)&&J.mutedAutoplay&&(Mw(O,{muted:!0,volume:O.zE.volume},!1),qw(O,!0));J.xO&&Mw(O,{muted:!0,volume:O.zE.volume},!1);E1A(O,1,J,!1);O.Zg.publish("initializingmode");O.P2(O.g5());O.nS(3); var l;if(!(l=!O.Ru.bZ)){if(l=O.aj){l=O.aj;var u=O.mediaElement;l=!!u&&u===l.mediaElement}l=l&&O.N6}l&&(O.QB(),S4(O),R.setMediaElement(O.mediaElement));R.Df();if(g.d(R.getPlayerState(),128))return!1;J.sO||Nw(O,3);return O.N6=!0}; DC=function(O){O=$e(O.KZ);return!!O&&O.loaded}; Dpz=function(O,R){if(!O.hT)return!1;var J=O.hT.startTimeMs*.001-1,l=O.hT.endTimeMs*.001;O.hT.type==="repeatChapter"&&l--;return Math.abs(R-J)<=1E-6||Math.abs(R-l)<=1E-6||R>=J&&R<=l}; a6_=function(O){var R=O.mX();i1(R.getVideoData())&&!R.v8()&&(R=kY(O)*1E3-O.getVideoData().Q1,O.Z("html5_gapless_new_slr")?(O=O.oR,s2(O.app,"gaplessshortslooprange"),R=new g.uN(0,R,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(O=O.app.mX())&&O.addCueRange(R)):O.setLoopRange({startTimeMs:0,endTimeMs:R,type:"shortsLoop"}))}; v1H=function(O){var R=O.g5();if(!(g.d(R.getPlayerState(),64)&&O.fG().isLivePlayback&&O.hT.startTimeMs<5E3)){if(O.hT.type==="repeatChapter"){var J,l=(J=p7W(O.eG()))==null?void 0:J.dK(),u;J=(u=O.getVideoData())==null?void 0:u.E0;l instanceof g.Hr&&J&&(u=J[l0(J,O.hT.startTimeMs)],l.renderChapterSeekingAnimation(0,u.title));isNaN(Number(O.hT.loopCount))?O.hT.loopCount=0:O.hT.loopCount++;O.hT.loopCount===1&&O.Zg.tR("innertubeCommand",O.getVideoData().pHd)}l={bK:"application_loopRangeStart"};if(O.hT.type=== "clips"||O.hT.type==="shortsLoop")l.seekSource=58;R.seekTo(O.hT.startTimeMs*.001,l)}}; yes=function(O,R){var J=O.Zg.getAvailablePlaybackRates();R=Number(R.toFixed(2));O=J[0];J=J[J.length-1];R<=O?R=O:R>=J?R=J:(O=Math.floor(R*100+.001)%5,R=O===0?R:Math.floor((R-O*.01)*100+.001)/100);return R}; kY=function(O,R){R=O.Ij({playerType:R});if(!R)return O.N7.L.lZ();R=mZ(O,R);return b8(O,R.lZ(),R)}; b8=function(O,R,J){if(O.WW(J)&&(J=J.getVideoData(),!WC(O))){O=O.x9;for(var l=g.N(O.S),u=l.next();!u.done;u=l.next())if(u=u.value,J.Ao===u.Ao){R+=u.r5/1E3;break}l=R;O=g.N(O.S);for(u=O.next();!u.done;u=O.next()){u=u.value;if(J.Ao===u.Ao)break;var F=u.r5/1E3;if(F1&&(u=!1);if(!O.Sy||u!==R){J=J.lock(u?"portrait":"landscape");if(J!=null)J["catch"](function(){}); O.Sy=!0}}else O.Sy&&(O.Sy=!1,J.unlock())}; HC=function(O,R,J){O.Zg.publish(R,J);var l=g.$T(O.Ru)||g.Aj(O.Ru)||g.p9(O.Ru);if(J&&l){switch(R){case "cuerangemarkersupdated":var u="onCueRangeMarkersUpdated";break;case "cuerangesadded":u="onCueRangesAdded";break;case "cuerangesremoved":u="onCueRangesRemoved"}u&&O.Zg.tR(u,J.map(function(F){return{getId:function(){return this.id}, end:F.end,id:F.getId(),namespace:F.namespace==="ad"?"ad":"",start:F.start,style:F.style,visible:F.visible}}))}}; xY=function(O,R,J,l,u,F){J=J===void 0?!0:J;var G=O.Ij({playerType:u});if(!G||(G.getPlayerType()!==2||O.WW(G))&&!g.XD(G.getVideoData())){var y=O.N7.ac;y?y.seekTo(R,{gy:!J,zs:l,bK:"application",seekSource:F}):(G&&G===O.g5()&&O.hT&&!Dpz(O,R)&&O.setLoopRange(null),O.seekTo(R,J,l,u,F))}}; UpB=function(O,R,J,l){J&&(O.QB(),S4(O));J=O.mX();J.U3(R);var u=O.getVideoData(),F={};F.video_id=u.videoId;F.adformat=u.adFormat;u.isLivePlayback||(F.start=J.getCurrentTime(),F.resume="1");u.isLivePlayback&&IN(u)&&g.XV(O.Ru)&&(F.live_utc_start=J.yI(),F.resume="1");u.xS&&(F.vvt=u.xS);u.j&&(F.vss_credentials_token=u.j,F.vss_credentials_token_type=u.SU);u.oauthToken&&(F.oauth_token=u.oauthToken);F.autoplay=1;F.reload_count=u.mM+1;F.reload_reason=R;u.RI&&(F.unplugged_partner_opt_out=u.RI);u.a8&&(F.ypc_is_premiere_trailer= u.a8);u.playerParams&&(F.player_params=u.playerParams);O.loadVideoByPlayerVars(F,void 0,!0,void 0,void 0,l);R==="signature"&&O.HW&&f6p(O)}; jwA=function(O,R){O.fG().autonavState=R;g.bE("yt-player-autonavstate",R);O.Zg.publish("autonavchange",R)}; Qw0=function(O){var R=O.getVideoData().PQ,J=O.Ru.Td,l=O.isInline()&&!O.getVideoData().YQ,u=O.mediaElement;R||J||l?u.NV():(u.XE(),Mw(O,O.zE))}; AL=function(O){var R=vr(O.eG());R&&R.created&&(O.logger.debug("reset ad module"),R.destroy())}; WC=function(O){return O.getVideoData().enableServerStitchedDai&&!!O.HW}; LmL=function(O,R){R.bounds=O.getBoundingClientRect();for(var J=g.N(["display","opacity","visibility","zIndex"]),l=J.next();!l.done;l=J.next())l=l.value,R[l]=xF(O,l);R.hidden=!!O.hidden}; xHL=function(O){if(O.webPlayerContextConfig){var R=O.webPlayerContextConfig.trustedJsUrl;return R?Dy(R).toString():O.webPlayerContextConfig.jsUrl}return O.config.assets&&O.config.assets.js?O.config.assets.js:""}; YKA=function(O,R){var J=O.Ij({playerType:1});if(J){if(J.getVideoData().clientPlaybackNonce===R)return J;if((O=O.fE.L)&&O.getVideoData().clientPlaybackNonce===R)return O}return null}; dpA=function(O){return O.name==="TypeError"&&O.stack.includes("/s/player/")&&HW()<=105}; hx_=function(O){return O.isTimeout?"NO_BID":"ERR_BID"}; zxH=function(){var O=null;vPA().then(function(R){return O=R},function(R){return O=hx_(R)}); return O}; n1B=function(){var O=Bh(1E3,"NO_BID");return g.AW(d3A([vPA(),O]).cn(hx_),function(){O.cancel()})}; U2=function(O){return O.vY?g.xs(g.Hf(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; j4=function(O){this.player=O;this.B=this.L=1}; R$s=function(O,R,J,l,u,F){R.client||(R.client={});O.player.T().Z("h5_remove_url_for_get_ad_break")||(R.client.originalUrl=J);var G=F6(J),y=g.vQ(J)?!1:!0;(G||y)&&typeof Intl!=="undefined"&&(R.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);y=g.vQ(J)?!1:!0;if(G||y||l!==""){var w={};J=R9(I9(l)).split("&");var I=new Map;J.forEach(function(C){C=C.split("=");C.length>1&&I.set(C[0].toString(),decodeURIComponent(C[1].toString()))}); I.has("bid")&&(w.bid=I.get("bid"));w.params=[];cez.forEach(function(C){I.has(C)&&(C={key:C,value:I.get(C)},w.params.push(C))}); OG2(O,w);R.adSignalsInfo=w}R.client.unpluggedAppInfo||(R.client.unpluggedAppInfo={});R.client.unpluggedAppInfo.enableFilterMode=!1;J=u.L.cosver;J!=null&&J!=="cosver"&&(R.client.osVersion=J);J=u.L.cplatform;J!=null&&J!=="cplatform"&&J!==""&&(R.client.platform=J);J=u.L.cmodel;J!=null&&J!=="cmodel"&&(R.client.deviceModel=J);J=u.L.cplayer;J!=null&&J!=="cplayer"&&(R.client.playerType=J);J=u.L.cbrand;J!=null&&J!=="cbrand"&&(R.client.deviceMake=J);R.user||(R.user={});R.user.lockedSafetyMode=!1;(u.Z("embeds_web_enable_iframe_api_send_full_embed_url")|| u.Z("embeds_enable_autoplay_and_visibility_signals"))&&g.Wv(u)&&QqL(R,F,O.player.getPlayerState(1))}; iGA=function(O,R){var J=!1;if(R==="")return J;R.split(",").forEach(function(l){var u={},F={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},G="ACTIVE";l[0]==="!"&&(l=l.substring(1),G="INACTIVE");l=l.split("-");l.length<3||(l[0]in Ju2&&(F.clientName=Ju2[l[0]]),l[1]in gRz&&(F.platform=gRz[l[1]]),F.applicationState=G,F.clientVersion=l.length>2?l[2]:"",u.remoteClient=F,O.remoteContexts?O.remoteContexts.push(u):O.remoteContexts=[u],J=!0)}); return J}; u2B=function(O){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in lxA))return!1;O=O.split(RegExp("[:&]"));var R=lxA.FLAG_AUTO_CAPTIONS_DEFAULT_ON,J="f"+(1+Math.floor(R/31)).toString();R=1<=2?G[1]:"";var y=GDz.test(R),w=KaW.exec(R);w=w!=null&&w.length>=2?w[1]:"";var I=yus.exec(R);I=I!=null&&I.length>=2&&!Number.isNaN(Number(I[1]))?Number(I[1]):1;var C=w9A.exec(R);C=C!=null&&C.length>=2?C[1]:"0";var r=Bv(O.player.T().Ic),t=O.player.getVideoData(1),Z=g.O8(t.AR,!0),V="BISCOTTI_ID"in J?J.BISCOTTI_ID:"";R$s(O,Z,R,V.toString(),O.player.T(), t);t={splay:!1,lactMilliseconds:J.LACT.toString(),playerHeightPixels:Math.trunc(J.P_H),playerWidthPixels:Math.trunc(J.P_W),vis:Math.trunc(J.VIS),signatureTimestamp:20202,autonavState:U2(O.player.T())};l&&(l={},iGA(l,J.YT_REMOTE)&&(t.mdxContext=l));if(l=IxW.includes(r)?void 0:g.e8("PREF")){for(var m=l.split(RegExp("[:&]")),E=0,a=m.length;E1&&v[1].toUpperCase()==="TRUE"){Z.user.lockedSafetyMode=!0;break}}t.autoCaptionsDefaultOn= u2B(l)}R=CSA.exec(R);(R=R!=null&&R.length>=2?R[1]:"")&&w&&(Z.user.credentialTransferTokens=[{token:R,scope:"VIDEO"}]);R={contentPlaybackContext:t};G={adBlock:Math.trunc(J.AD_BLOCK),params:G,breakIndex:I,breakPositionMs:C,clientPlaybackNonce:J.CPN,topLevelDomain:r,isProxyAdTagRequest:y,context:Z,adSignalsInfoString:R9(I9(V.toString())),overridePlaybackContext:R};u!==void 0&&(G.cueProcessedMs=Math.round(u).toString());w&&(G.videoId=w);J.LIVE_TARGETING_CONTEXT&&(G.liveTargetingParams=J.LIVE_TARGETING_CONTEXT); J.AD_BREAK_LENGTH&&(G.breakLengthMs=Math.trunc(J.AD_BREAK_LENGTH*1E3).toString());F&&(G.driftFromHeadMs=F.toString());G.currentMediaTimeMs=Math.round(O.player.getCurrentTime(1)*1E3);(O=O.player.getGetAdBreakContext())&&(G.getAdBreakContext=O);return G}; tMp=function(){j4.apply(this,arguments)}; oRx=function(O,R,J,l,u){var F=J.Ar;var G=J.pZ;var y=O.player.T().Bc,w=0;J.cueProcessedMs&&G&&!F&&(J=G.end-G.start,J>0&&(w=Math.floor(J/1E3)));var I={AD_BLOCK:u,AD_BREAK_LENGTH:F?F.d2:w,AUTONAV_STATE:U2(O.player.T()),CA_TYPE:"image",CPN:O.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:O.player.YV()*1E3,LACT:TT(),LIVE_INDEX:F?O.B++:1,LIVE_TARGETING_CONTEXT:F&&F.context?F.context:"",MIDROLL_POS:G?Math.round(G.start/1E3):0,MIDROLL_POS_MS:G?Math.round(G.start):0,VIS:O.player.getVisibilityState(), P_H:O.player.cq().OV().height,P_W:O.player.cq().OV().width,YT_REMOTE:y?y.join(","):""},C=w6(y3);Object.keys(C).forEach(function(r){C[r]!=null&&(I[r.toUpperCase()]=C[r].toString())}); l!==""&&(I.BISCOTTI_ID=l);l={};K_(R)&&(l.sts="20202",(O=O.player.T().forcedExperiments)&&(l.forced_experiments=O));return ul(g.sg(R,I),l)}; ZGB=function(O,R){var J=O.player.T(),l,u=(l=O.player.getVideoData(1))==null?void 0:l.oauthToken;return g.lr(J,u).then(function(F){if(F&&G3()){var G=PD();po(G,F)}return g.zO(g.e(O.player.Jj(G)),R,"/youtubei/v1/player/ad_break").then(function(y){return y})})}; VM2=function(O){this.yh=O}; fxp=function(O){this.X=O}; SLA=function(O){this.yh=O}; ml0=function(O){g.p.call(this);this.L=O;this.Fu=NSL(this)}; NSL=function(O){var R=new raT(O.L.zR);g.H(O,R);O=[new VM2(O.L.yh),new fxp(O.L.X),new SLA(O.L.yh),new bx(O.L.Jh,O.L.wh),new Ak,new ph(O.L.LA,O.L.hh,O.L.yh),new Wk,new kg];O=g.N(O);for(var J=O.next();!J.done;J=O.next())trs(R,J.value);O=g.N(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(J=O.next();!J.done;J=O.next())eZ(R,J.value,function(){}); return R}; Qq=function(O){var R=O.rd,J=O.wd;O=O.CZ;var l=new byB,u={tj:new I__(R.get(),J),wd:J};return{Iz:new wG(J,O,R,u),context:u,A1:l}}; LJ=function(O,R,J,l,u){g.p.call(this);this.S=R;this.YS=J;this.rd=l;this.Gy=u;this.listeners=[];var F=new Tv(this);g.H(this,F);F.U(O,"internalAbandon",this.Qz);this.addOnDisposeCallback(function(){g.MN(F)})}; YY=function(O){this.X=O;this.adVideoId=this.L=this.videoId=this.adCpn=this.contentCpn=null;this.D=!0;this.S=this.B=!1;this.adFormat=null;this.N="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; ERH=function(O){O.contentCpn=null;O.adCpn=null;O.videoId=null;O.adVideoId=null;O.adFormat=null;O.N="AD_PLACEMENT_KIND_UNKNOWN";O.actionType="unknown_type";O.B=!1;O.S=!1}; DlT=function(O,R){O=g.N(R);for(R=O.next();!R.done;R=O.next())if((R=R.value.renderer)&&(R.instreamVideoAdRenderer||R.linearAdSequenceRenderer||R.sandwichedLinearAdRenderer||R.instreamSurveyAdRenderer)){x3("ad_i");g.U8({isMonetized:!0});break}}; axA=function(O){var R;(R=O.X.getVideoData(1))!=null&&R.iz&&(O.S=!1,R={},O.L&&O.videoId&&(R.cttAuthInfo={token:O.L,videoId:O.videoId}),jq("video_to_ad",R))}; hw=function(O){O.S=!1;var R={};O.L&&O.videoId&&(R.cttAuthInfo={token:O.L,videoId:O.videoId});jq("ad_to_video",R);vR_(O)}; vR_=function(O){if(O.B)if(O.N==="AD_PLACEMENT_KIND_START"&&O.actionType==="video_to_ad")pZ("video_to_ad");else{var R={adBreakType:vG(O.N),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:O.videoStreamType};O.actionType==="ad_to_video"?(O.contentCpn&&(R.targetCpn=O.contentCpn),O.videoId&&(R.targetVideoId=O.videoId)):(O.adCpn&&(R.targetCpn=O.adCpn),O.adVideoId&&(R.targetVideoId=O.adVideoId));O.adFormat&&(R.adType=O.adFormat);O.contentCpn&& (R.clientPlaybackNonce=O.contentCpn);O.videoId&&(R.videoId=O.videoId);O.adCpn&&(R.adClientPlaybackNonce=O.adCpn);O.adVideoId&&(R.adVideoId=O.adVideoId);g.U8(R,O.actionType);O.X.T().experiments.Vh("html5_ads_csi_qoes")&&(R=O.X.qx(O.actionType==="ad_to_video"?1:2),R=(0,g.Q)()-1E3*R,LZ("qoes",R,O.actionType))}}; d8=function(O){g.p.call(this);this.X=O;this.L=new Map;this.S=new Tv(this);g.H(this,this.S);this.S.U(this.X,g.Gh("ad"),this.onCueRangeEnter,this);this.S.U(this.X,g.KR("ad"),this.onCueRangeExit,this)}; X9T=function(O,R,J,l,u){g.uN.call(this,R,J,{id:O,namespace:"ad",priority:u,visible:l})}; hL=function(O){this.X=O}; TS_=function(O,R){O.X.cueVideoByPlayerVars(R,2)}; zQ=function(O){this.X=O}; nJ=function(O){this.X=O;g.tB(this.X.T().experiments,"tv_pacf_logging_sample_rate")}; $lA=function(O){return n2(O,"html5_ssap_play_cached_preroll")}; Xs=function(O,R){R=R===void 0?!1:R;return O.X.T().Z("html5_ssap_force_ads_ctmp")?!0:(R||O.X.T().DA())&&O.X.T().Z("html5_ssap_pacf_qoe_ctmp")}; MMh=function(O){return O.X.T().Z("dai_layout_log_skip_exit_reason")}; cC=function(O){var R,J;return(J=(R=O.X.getVideoData(1))==null?void 0:g.dy(R))!=null?J:!1}; vNx=function(O){return!O.X.T().Z("html5_override_ad_video_length_killswitch")}; n2=function(O,R){return O.X.T().Z(R)}; qL_=function(O){return O.X.T().Z("substitute_ad_cpn_macro_in_ssdai")}; T8=function(O){var R,J,l;return((R=O.X.getVideoData(1).getPlayerResponse())==null?void 0:(J=R.playerConfig)==null?void 0:(l=J.daiConfig)==null?void 0:l.enableServerStitchedDai)||!1}; EN2=function(O){return O.X.T().Z("html5_enable_vod_slar_with_notify_pacf")}; vuL=function(O){return O.X.T().Z("h5_check_forecasting_renderer_for_throttled_midroll")}; kD0=function(O){return O.X.T().Z("html5_recognize_predict_start_cue_point")}; uw=function(O){return O.X.T().experiments.Vh("enable_desktop_player_underlay")}; sfW=function(O){return O.X.T().experiments.Vh("html5_disable_sodar_for_tvhtml5")}; X_H=function(O){return O.X.T().DA()}; bGs=function(O){return O.X.T().experiments.Vh("html5_load_empty_player_in_media_break_sub_lra")}; PG=function(O){return O.X.T().experiments.Vh("html5_load_ads_instead_of_cue")}; pX=function(O){return O.X.T().experiments.Vh("html5_preload_ads")}; Wa_=function(O){return O.X.T().experiments.Vh("should_ignore_cuepoints_during_lifa_preroll")}; l5=function(O){return O.X.T().experiments.Vh("enable_ads_control_flow_deterministic_id_generation")}; AuH=function(O){return O.X.T().experiments.Vh("enable_desktop_discovery_video_abandon_pings")||g.dm(O.X.T())}; e$2=function(O){return O.X.T().experiments.Vh("enable_progres_commands_lr_feeds")}; $L=function(O){return O.X.T().experiments.Vh("html5_cuepoint_identifier_logging")}; MXH=function(O){O=O.X.getVideoData(1);return!!O&&O.Z("html5_preload_first_vod_video_ad")&&!O.isDaiEnabled()}; PSW=function(O){switch(O){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; p92=function(){g.y8.call(this);var O=this;this.L={};this.addOnDisposeCallback(function(){for(var R=g.N(Object.keys(O.L)),J=R.next();!J.done;J=R.next())delete O.L[J.value]})}; OT=function(){if(BSf===null){BSf=new p92;Yi(JY).S="b";var O=Yi(JY),R=jy(O)=="h"||jy(O)=="b",J=!(GX(),!1);R&&J&&(O.D=!0,O.j=new Cff)}return BSf}; HGx=function(O,R,J){O.L[R]=J}; xlL=function(O){switch(O){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}}; Rn=function(O,R,J){this.YS=O;this.X=R;this.wd=J;this.S=new Set;this.L=new Map;OT().subscribe("adactiveviewmeasurable",this.eb,this);OT().subscribe("adfullyviewableaudiblehalfdurationimpression",this.FT,this);OT().subscribe("adviewableimpression",this.wT,this);OT().subscribe("adaudioaudible",this.Sb,this);OT().subscribe("adaudiomeasurable",this.H_,this)}; gW=function(O,R,J){var l=J.p_,u=J.Ti,F=J.listener,G=J.mU;J=J.Lc===void 0?!1:J.Lc;if(O.L.has(R))rK("Unexpected registration of layout in LidarApi");else{if(G){if(O.S.has(G))return;O.S.add(G)}O.L.set(R,F);wY(GX().pG,"fmd",1);EFz(Yi(JY),l);var y=J?R:void 0;HGx(OT(),R,{Hr:function(){if(!u)return{};var w=O.X.getPresentingPlayerType(!0),I;return(I=O.X.getVideoData(w))!=null&&I.isAd()?{currentTime:O.YS.get().getCurrentTimeSec(w,!1,y),duration:u,isPlaying:Jp(O.YS.get(),w).isPlaying(),isVpaid:!1,isYouTube:!0, volume:O.YS.get().isMuted()?0:O.YS.get().getVolume()/100}:{}}})}}; ij=function(O,R){O.L.has(R)?(O.L.delete(R),delete OT().L[R]):rK("Unexpected unregistration of layout in LidarApi")}; Uls=function(O,R){if(O.X.isLifaAdPlaying()){var J=O.X.xV(!0,!0);O.Em(R,J.width*.5*1.1,J.height*.25*1.1,J.width*.5*.9,J.height*.5*.9)}}; La2=function(O,R,J){var l={};jf_(O,l,R,J);Qff(l);l.LACT=lj(function(){return TT().toString()}); l.VIS=lj(function(){return O.getVisibilityState().toString()}); l.SDKV="h.3.0";l.VOL=lj(function(){return O.isMuted()?"0":Math.round(O.getVolume()).toString()}); l.VED="";return l}; YLA=function(O,R){var J={};if(R)return J;if(!O.kind)return g.WM(Error("AdPlacementConfig without kind")),J;if(O.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||O.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!O.adTimeOffset||!O.adTimeOffset.offsetStartMilliseconds)return g.WM(Error("malformed AdPlacementConfig")),J;J.MIDROLL_POS=lj(Cu(Math.round(S0(O.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else J.MIDROLL_POS=lj(Cu("0"));return J}; lj=function(O){return{toString:function(){return O()}}}; dlB=function(O,R,J){function l(y,w){(w=J[w])&&(F[y]=w)} function u(y,w){(w=J[w])&&(F[y]=G(w))} if(!J||g.nt(J))return O;var F=Object.assign({},O),G=R?encodeURIComponent:function(y){return y}; u("DV_VIEWABILITY","doubleVerifyViewability");u("IAS_VIEWABILITY","integralAdsViewability");u("MOAT_INIT","moatInit");u("MOAT_VIEWABILITY","moatViewability");l("GOOGLE_VIEWABILITY","googleViewability");l("VIEWABILITY","viewability");return F}; jf_=function(O,R,J,l){R.CPN=lj(function(){var u;(u=O.getVideoData(1))?u=u.clientPlaybackNonce:(g.Aa(Error("Video data is null.")),u=null);return u}); R.AD_MT=lj(function(){if(l!=null)var u=l;else{var F=J;O.T().Z("html5_ssap_use_cpn_to_get_time")||(F=void 0);if(O.T().Z("enable_h5_shorts_ad_fill_ad_mt_macro")||O.T().Z("enable_desktop_discovery_pings_ad_mt_macro")||g.dm(O.T())){var G=O.getPresentingPlayerType(!0),y;u=((y=O.getVideoData(G))==null?0:y.isAd())?h$H(O,G,F):0}else u=h$H(O,2,F)}return z$H(u)}); R.MT=lj(function(){return z$H(O.getCurrentTime(1,!1))}); R.P_H=lj(function(){return O.cq().OV().height.toString()}); R.P_W=lj(function(){return O.cq().OV().width.toString()}); R.PV_H=lj(function(){return O.cq().getVideoContentRect().height.toString()}); R.PV_W=lj(function(){return O.cq().getVideoContentRect().width.toString()})}; z$H=function(O){return Math.round(Math.max(0,O*1E3)).toString()}; Qff=function(O){O.CONN=lj(Cu("0"));O.WT=lj(function(){return Date.now().toString()})}; h$H=function(O,R,J){return J!==void 0?O.getCurrentTime(R,!1,J):O.getCurrentTime(R,!1)}; nRx=function(){}; cu2=function(O,R,J,l,u){var F,G,y,w,I,C,r,t,Z,V,m,E,a;g.A(function(v){switch(v.S){case 1:F=!!R.scrubReferrer;G=g.sg(R.baseUrl,dlB(J,F,l));y={};if(!R.headers){v.pJ(2);break}w=O.N();if(!w.L){I=w.getValue();v.pJ(3);break}return g.k(v,w.L,4);case 4:I=v.L;case 3:C=I;r=g.N(R.headers);for(t=r.next();!t.done;t=r.next())switch(Z=t.value,Z.headerType){case "VISITOR_ID":g.YB("VISITOR_DATA")&&(y["X-Goog-Visitor-Id"]=g.YB("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.YB("EOM_VISITOR_DATA")&&(y["X-Goog-EOM-Visitor-Id"]= g.YB("EOM_VISITOR_DATA"));break;case "USER_AUTH":C&&(y.Authorization="Bearer "+C);break;case "PLUS_PAGE_ID":(V=O.D())&&(y["X-Goog-PageId"]=V);break;case "AUTH_USER":m=O.L();!C&&m&&(y["X-Goog-AuthUser"]=m);break;case "DATASYNC_ID":if(E=void 0,(E=O.B())==null?0:E.Vh("enable_datasync_id_header_in_web_vss_pings"))a=O.S(),F6(G)&&g.YB("LOGGED_IN")&&a&&(y["X-YouTube-DataSync-Id"]=a)}"X-Goog-EOM-Visitor-Id"in y&&"X-Goog-Visitor-Id"in y&&delete y["X-Goog-Visitor-Id"];case 2:g.He(G,void 0,F,Object.keys(y).length!== 0?y:void 0,"",!0,u),g.ST(v)}})}; O0s=function(O,R,J,l,u){this.N=O;this.D=R;this.L=J;this.S=l;this.B=u}; Rcs=function(O,R){this.L=O;this.wd=R}; uj=function(O,R,J,l,u,F,G){var y=y===void 0?new O0s(function(){var w=O.T(),I=O.getVideoData(1);return g.lr(w,I?g.pQ(I):"")},function(){return O.T().pageId},function(){return O.T().OQ},function(){var w; return(w=O.T().datasyncId)!=null?w:""},function(){return O.T().experiments}):y; this.X=O;this.S=R;this.Hy=J;this.rd=l;this.Iz=u;this.wd=F;this.A1=G;this.N=y;this.xE=null;this.L=new Map;this.B=new Rcs(y,this.wd)}; gJf=function(O,R,J,l,u){var F=P7(O.S.get(),J);F?(J=qi(O,J5z(F),F,void 0,void 0,l),R.hasOwnProperty("baseUrl")?O.N.send(R,J):O.B.send(R,J,{},u)):rK("Trying to ping from an unknown layout",void 0,void 0,{layoutId:J})}; Nos=function(O,R,J,l,u,F){l=l===void 0?[]:l;var G=P7(O.S.get(),R);if(G){var y=O.Hy.get().t1(R,J),w=qi(O,J5z(G),G,u,F);l.forEach(function(I,C){I.baseUrl&&(O.B.send(I.baseUrl,w,y,I.attributionSrcMode),I.serializedAdPingMetadata&&O.Iz.Ya("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,G,new OkT(I,C),void 0,void 0,G.adLayoutLoggingData))})}else rK("Trying to track from an unknown layout.",void 0,void 0,{layoutId:R, trackingType:J})}; DF=function(O,R){O.X.sendVideoStatsEngageEvent(R,void 0,2)}; iZ=function(O,R){g.wj("adsClientStateChange",R)}; i0z=function(O,R){O.L.has(R.Xp())?rK("Trying to register an existing AdErrorInfoSupplier."):O.L.set(R.Xp(),R)}; l5T=function(O,R){O.L.delete(R.Xp())||rK("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; GJ=function(O,R,J){typeof J==="string"?O.X.getVideoData(1).rT(R,J):O.X.getVideoData(1).nJ(R,J)}; J5z=function(O){var R=g.e(Gg(O.clientMetadata,"metadata_type_ad_placement_config"));O=Gg(O.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:R,hH:O}}; qi=function(O,R,J,l,u,F){var G=J?uz2(O):{},y=J?FUA(O,J.layoutId):{},w=G7T(O),I,C=u!=null?u:(I=mw(O.rd.get(),2))==null?void 0:I.clientPlaybackNonce;u=void 0;if(J){var r;if((r=O.A1.L.get(J.layoutId))==null?0:r.Lc)u=J.layoutId}r={};O=Object.assign({},La2(O.X,u,l),YLA(R.adPlacementConfig,(J==null?void 0:J.renderingContent)!==void 0),y,G,w,(r.FINAL=lj(function(){return"1"}),r.AD_CPN=lj(function(){return C||""}),r)); (J==null?void 0:J.renderingContent)!==void 0||(O.SLOT_POS=lj(function(){return(R.hH||0).toString()})); J={};F=Object.assign({},O,F);O=g.N(Object.values(KUs));for(l=O.next();!l.done;l=O.next())l=l.value,G=F[l],G!=null&&G.toString()!=null&&(J[l]=G.toString());return J}; uz2=function(O){var R={},J,l=(J=O.xE)==null?void 0:J.Oc/1E3;l!=null&&(R.SURVEY_ELAPSED_MS=lj(function(){return Math.round(l*1E3).toString()})); R.SURVEY_LOCAL_TIME_EPOCH_S=lj(function(){return Math.round(Date.now()/1E3).toString()}); return R}; FUA=function(O,R){O=O.L.get(R);if(!O)return{};O=O.t_();if(!O)return{};R={};return R.YT_ERROR_CODE=O.Hh.toString(),R.ERRORCODE=O.zi.toString(),R.ERROR_MSG=O.errorMessage,R}; G7T=function(O){var R={},J=O.X.getVideoData(1);R.ASR=lj(function(){var l;return(l=J==null?void 0:J.Ju)!=null?l:null}); R.EI=lj(function(){var l;return(l=J==null?void 0:J.eventId)!=null?l:null}); return R}; F0=function(O,R,J){g.p.call(this);this.X=O;this.b$=R;this.wd=J;this.listeners=[];this.Jq=null;this.Sd=new Map;R=new g.p8(this);g.H(this,R);R.U(O,"videodatachange",this.uwU);R.U(O,"serverstitchedvideochange",this.K$h);this.BG=mw(this)}; mw=function(O,R){var J=O.X.getVideoData(R);return J?O.tV(J,R||O.X.getPresentingPlayerType(!0)):null}; lZ=function(O){return O.BG}; y5x=function(O,R,J){var l=O.tV(R,J);O.BG=l;O.listeners.forEach(function(u){u.sB(l)})}; wHs=function(O){switch(O){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}}; Gp=function(O,R,J){g.p.call(this);this.X=O;this.rd=R;this.wd=J;this.listeners=[];this.Zn=[];this.L=function(){rK("Called 'doUnlockPreroll' before it's initialized.")}; R=new Tv(this);J=new g.p8(this);g.H(this,J);g.H(this,R);R.U(O,"progresssync",this.pYq);R.U(O,"presentingplayerstatechange",this.s2Q);R.U(O,"fullscreentoggled",this.onFullscreenToggled);R.U(O,"onVolumeChange",this.onVolumeChange);R.U(O,"minimized",this.jQ);R.U(O,"overlayvisibilitychange",this.GW);R.U(O,"shortsadswipe",this.kM);R.U(O,"resize",this.tT);J.U(O,g.Gh("appad"),this.Jx)}; Kl=function(O){cC(O.wd.get())||O.L()}; I5W=function(O,R){O.Zn=O.Zn.filter(function(J){return J!==R})}; yB=function(O,R,J){return O.getCurrentTimeSec(R,J)}; v7=function(O){return O.getCurrentTimeSec(1,!1)}; CtA=function(O,R){var J;R=(J=O.rd.get().Sd.get(R))!=null?J:null;if(R===null)return rK("Expected ad video start time on playback timeline"),0;O=O.X.getCurrentTime(2,!0);return O0){var F=R.end.toString();u.forEach(function(G){(G=G.config&&G.config.adPlacementConfig)&&G.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&G.adTimeOffset&&G.adTimeOffset.offsetEndMilliseconds==="-1"&&G.adTimeOffset.offsetEndMilliseconds!==F&&(G.adTimeOffset.offsetEndMilliseconds=F)}); l.map(function(G){return g.x(G,j7)}).forEach(function(G){var y; (G=G==null?void 0:(y=G.slotEntryTrigger)==null?void 0:y.mediaTimeRangeTrigger)&&G.offsetEndMilliseconds==="-1"&&(G.offsetEndMilliseconds=F)})}return{jf:u, adSlots:l,Go:!1,ssdaiAdsConfig:O.ssdaiAdsConfig}}; tp=function(O){g.p.call(this);this.X=O;this.listeners=[];this.L=new Tv(this);g.H(this,this.L);this.L.U(this.X,"aduxclicked",this.onAdUxClicked);this.L.U(this.X,"aduxmouseover",this.LT);this.L.U(this.X,"aduxmouseout",this.R9);this.L.U(this.X,"muteadaccepted",this.Qzg)}; f52=function(O,R,J){R=g.jO(R,function(l){return new sJp(l,J,l.id)}); O.X.tR("onAdUxUpdate",R)}; on=function(O,R){O=g.N(O.listeners);for(var J=O.next();!J.done;J=O.next())R(J.value)}; Zm=function(O,R){this.S=O;this.B=R===void 0?!1:R;this.L={}}; Sbf=function(O,R){var J=O.startSecs+O.d2;J=J<=0?null:J;if(J===null)return null;switch(O.event){case "start":case "continue":case "stop":break;case "predictStart":if(R)break;return null;default:return null}R=Math.max(O.startSecs,0);return{lQ:new DH(R,J),NdX:new dV(R,J-R,O.context,O.identifier,O.event,O.L)}}; N0H=function(){this.L=[]}; VqL=function(O,R,J){var l=g.$M(O.L,R);if(l>=0)return R;R=-l-1;return R>=O.L.length||O.L[R]>J?null:O.L[R]}; VB=function(O,R,J){g.p.call(this);this.X=O;this.wd=R;this.yh=J;this.listeners=[];this.D=!1;this.N=[];this.L=null;this.j=new Zm(this,kD0(R.get()));this.B=new N0H;this.S=null}; mS0=function(O){return O.N}; EJL=function(O,R){O.N.push(R);for(var J=!1,l=g.N(O.listeners),u=l.next();!u.done;u=l.next())J=u.value.Je(R)||J;O.D=J;$L(O.wd.get())&&GJ(O.yh.get(),"onci","cpi."+R.identifier+";cpe."+R.event+";cps."+R.startSecs+";cbi."+J)}; a5h=function(O,R){iZ(O.yh.get(),{cuepointTrigger:{event:DS0(R.event),cuepointId:R.identifier,totalCueDurationMs:R.d2*1E3,playheadTimeMs:R.L,cueStartTimeMs:R.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:O.X.getVideoData(1).clientPlaybackNonce}})}; DS0=function(O){switch(O){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 zM(O,"Unexpected cuepoint event")}}; fl=function(O){this.X=O}; Sn=function(O){this.X=O}; vJs=function(O){switch(O){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:zM(O,"unknown transitionReason")}}; Ng=function(){g.p.apply(this,arguments)}; XH_=function(O){this.X=O}; T0T=function(O,R,J,l,u){g.p.call(this);var F=this,G=Um(function(){return new i5(F.wd)}); g.H(this,G);var y=Um(function(){return new u5(G,F.wd)}); g.H(this,y);var w=Um(function(){return new W7}); g.H(this,w);var I=Um(function(){return new sG(O)}); g.H(this,I);var C=Um(function(){return new Fy(G,y,F.wd)}); g.H(this,C);var r=Um(function(){return new IY}); g.H(this,r);this.R2=Um(function(){return new tp(R)}); g.H(this,this.R2);this.q9=Um(function(){return new QG(u)}); g.H(this,this.q9);this.iK=Um(function(){return new YY(R)}); g.H(this,this.iK);this.I2=Um(function(){return new d8(R)}); g.H(this,this.I2);this.F5=Um(function(){return new hL(R)}); g.H(this,this.F5);this.zR=Um(function(){return new zQ(R)}); g.H(this,this.zR);this.wd=Um(function(){return new nJ(R)}); g.H(this,this.wd);var t=Um(function(){return new rW(l)}); g.H(this,t);var Z=Um(function(){return new oq(F.wd)}); g.H(this,Z);this.Zs=Um(function(){return new fl(R)}); g.H(this,this.Zs);this.FJ=Um(function(){return new hB}); g.H(this,this.FJ);this.rd=Um(function(){return new F0(R,r,F.wd)}); g.H(this,this.rd);var V=Qq({rd:this.rd,wd:this.wd,CZ:Z}),m=V.context,E=V.A1;this.Iz=V.Iz;this.Gy=Um(function(){return new VB(R,F.wd,F.yh)}); g.H(this,this.Gy);this.Sr=Um(function(){return new Sn(R)}); g.H(this,this.Sr);this.YS=Um(function(){return new Gp(R,F.rd,F.wd)}); g.H(this,this.YS);this.Qw=Um(function(){return new Ng}); g.H(this,this.Qw);V=Um(function(){return new EG(G,C,y,F.wd,Z,"SLOT_TYPE_ABOVE_FEED",F.YS,F.uV,F.Vk)}); g.H(this,V);this.Th=Um(function(){return new zg(F.wd)}); this.Hy=Um(function(){return new Rn(F.YS,R,F.wd)}); g.H(this,this.Hy);this.yh=Um(function(){return new uj(R,w,F.Hy,F.rd,F.Iz,F.wd,E)}); g.H(this,this.yh);this.G_=new q2(M2,mc,function(v,b,W,B){return lw(y.get(),v,b,W,B)},I,C,y,Z,this.wd,this.rd); g.H(this,this.G_);this.wO=new kL(I,V,J,this.wd,O,this.rd,this.YS,this.iK);g.H(this,this.wO);var a=new LJ(R,this.wO,this.YS,this.rd,this.Gy);this.yw=Um(function(){return a}); this.Oh=a;this.uV=new XP(I,C,this.yw,this.Gy,this.YS,this.wd,this.yh,this.Sr);g.H(this,this.uV);this.mz=new bw(I,C,this.I2,this.yw,m);g.H(this,this.mz);this.bj=new UM(this.wd,I,C,V,this.rd,this.mz,J,this.F5);g.H(this,this.bj);this.SW=Um(function(){return new tK(t,y,Z,F.wd,F.yh,F.YS,F.Sr)}); g.H(this,this.SW);this.LY=Um(function(){return new o2}); g.H(this,this.LY);this.bC=new UG(O,this.R2,this.wd);g.H(this,this.bC);this.l5=new jz(O);g.H(this,this.l5);this.ly=new QI(O);g.H(this,this.ly);this.Gu=new YL(O,this.yw,m);g.H(this,this.Gu);this.t3=new dM(O,this.I2,this.YS,this.rd,m);g.H(this,this.t3);this.T5=new hM(O,this.rd);g.H(this,this.T5);this.Vk=new c7(O,this.Gy,this.YS,this.yh,this.yw);g.H(this,this.Vk);this.SR=new z8(O);g.H(this,this.SR);this.ij=new gG(O);g.H(this,this.ij);this.JK=new n4(O);g.H(this,this.JK);this.M0=new JU(O);g.H(this,this.M0); this.ij=new gG(O);g.H(this,this.ij);this.s8=Um(function(){return new p4}); g.H(this,this.s8);this.UO=Um(function(){return new B7(F.YS)}); g.H(this,this.UO);this.DM=Um(function(){return new HeT(F.R2,F.yh,O,w,F.Hy)}); g.H(this,this.DM);this.gU=Um(function(){return new Oy(F.bj,I,G)}); g.H(this,this.gU);this.hK=Um(function(){return new gz(F.wd,F.yh,F.SR,F.Hy)}); g.H(this,this.hK);this.EO=Um(function(){return new tv(O,F.ij,F.SR,F.rd,F.Sr,F.YS,F.Qw,F.yh,r,F.Gy,F.Hy,F.Th,F.F5,F.I2,F.iK,F.zR,F.q9,F.Zs,F.wd,w,m,E)}); g.H(this,this.EO);this.SE=Um(function(){return new JT2(F.YS,F.yh,F.q9,F.wd,F.Hy,F.rd)}); g.H(this,this.SE);this.bA=Um(function(){return new xjA(F.R2,F.YS,F.yh,w,F.Hy,F.ly,F.M0,F.q9,F.wd,J)}); g.H(this,this.bA);this.PU=Um(function(){return new xIB(F.R2,F.yh,w)}); g.H(this,this.PU);this.fv=new Cl(O,this.FJ,G);g.H(this,this.fv);this.Zj={m4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bj],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.uV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.G_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.wO],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.mz]]),VP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SW],["SLOT_TYPE_ABOVE_FEED",this.LY],["SLOT_TYPE_FORECASTING",this.LY], ["SLOT_TYPE_IN_PLAYER",this.LY],["SLOT_TYPE_PLAYER_BYTES",this.LY],["SLOT_TYPE_PLAYER_UNDERLAY",this.LY],["SLOT_TYPE_PLAYBACK_TRACKING",this.LY],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.LY]]),Ls:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bC],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.bC],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l5],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l5],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l5],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l5],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.l5],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l5],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l5],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l5],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.l5],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.l5],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.l5],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ly],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gu],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.t3],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.t3],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.t3],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.t3],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.t3],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.t3],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.t3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.T5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.T5],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.SR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Gu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.JK],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.M0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ij],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Vk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Vk],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Vk],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Vk],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Vk]]),qJ:new Map([["SLOT_TYPE_ABOVE_FEED",this.s8], ["SLOT_TYPE_AD_BREAK_REQUEST",this.s8],["SLOT_TYPE_FORECASTING",this.s8],["SLOT_TYPE_IN_PLAYER",this.s8],["SLOT_TYPE_PLAYER_BYTES",this.UO],["SLOT_TYPE_PLAYER_UNDERLAY",this.s8],["SLOT_TYPE_PLAYBACK_TRACKING",this.s8],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.s8]]),Xd:new Map([["SLOT_TYPE_ABOVE_FEED",this.DM],["SLOT_TYPE_AD_BREAK_REQUEST",this.gU],["SLOT_TYPE_FORECASTING",this.hK],["SLOT_TYPE_PLAYER_BYTES",this.EO],["SLOT_TYPE_PLAYBACK_TRACKING",this.SE],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.SE],["SLOT_TYPE_IN_PLAYER",this.bA],["SLOT_TYPE_PLAYER_UNDERLAY",this.PU]])};this.listeners=[w.get()];this.Ow={bj:this.bj,hh:this.wd.get(),zd:this.q9.get(),KX:this.YS.get(),wO:this.wO,pz:G.get(),iN:this.FJ.get(),wh:this.bC,Jh:w.get(),LA:this.rd.get()}}; $Ss=function(O,R,J,l,u){g.p.call(this);var F=this,G=Um(function(){return new i5(F.wd)}); g.H(this,G);var y=Um(function(){return new u5(G,F.wd)}); g.H(this,y);var w=Um(function(){return new W7}); g.H(this,w);var I=Um(function(){return new sG(O)}); g.H(this,I);var C=Um(function(){return new Fy(G,y,F.wd)}); g.H(this,C);var r=Um(function(){return new IY}); g.H(this,r);this.R2=Um(function(){return new tp(R)}); g.H(this,this.R2);this.q9=Um(function(){return new QG(u)}); g.H(this,this.q9);this.iK=Um(function(){return new YY(R)}); g.H(this,this.iK);this.I2=Um(function(){return new d8(R)}); g.H(this,this.I2);this.F5=Um(function(){return new hL(R)}); g.H(this,this.F5);this.zR=Um(function(){return new zQ(R)}); g.H(this,this.zR);this.wd=Um(function(){return new nJ(R)}); g.H(this,this.wd);var t=Um(function(){return new rW(l)}); g.H(this,t);var Z=Um(function(){return new oq(F.wd)}); g.H(this,Z);var V=Um(function(){return new EG(G,C,y,F.wd,Z,null,null,F.uV,F.Vk)}); g.H(this,V);this.Zs=Um(function(){return new fl(R)}); g.H(this,this.Zs);this.FJ=Um(function(){return new hB}); g.H(this,this.FJ);this.rd=Um(function(){return new F0(R,r,F.wd)}); g.H(this,this.rd);var m=Qq({rd:this.rd,wd:this.wd,CZ:Z}),E=m.context,a=m.A1;this.Iz=m.Iz;this.Gy=Um(function(){return new VB(R,F.wd,F.yh)}); this.YS=Um(function(){return new Gp(R,F.rd,F.wd)}); g.H(this,this.YS);this.Qw=Um(function(){return new Ng}); g.H(this,this.Qw);this.Hy=Um(function(){return new Rn(F.YS,R,F.wd)}); g.H(this,this.Hy);this.yh=Um(function(){return new uj(R,w,F.Hy,F.rd,F.Iz,F.wd,a)}); g.H(this,this.yh);this.Th=Um(function(){return new zg(F.wd)}); g.H(this,this.Th);this.G_=new q2(M2,mc,function(b,W,B,z){return lw(y.get(),b,W,B,z)},I,C,y,Z,this.wd,this.rd); g.H(this,this.G_);this.wO=new kL(I,V,J,this.wd,O,this.rd,this.YS,this.iK);g.H(this,this.wO);var v=new LJ(R,this.wO,this.YS,this.rd,this.Gy);this.yw=Um(function(){return v}); this.Oh=v;this.uV=new XP(I,C,this.yw,this.Gy,this.YS,this.wd,this.yh);g.H(this,this.uV);this.mz=new bw(I,C,this.I2,this.yw,E);g.H(this,this.mz);this.bj=new UM(this.wd,I,C,V,this.rd,this.mz,J,this.F5);g.H(this,this.bj);this.SW=Um(function(){return new tK(t,y,Z,F.wd,F.yh,F.YS)}); g.H(this,this.SW);this.LY=Um(function(){return new o2}); g.H(this,this.LY);this.bC=new UG(O,this.R2,this.wd);g.H(this,this.bC);this.l5=new jz(O);g.H(this,this.l5);this.ly=new QI(O);g.H(this,this.ly);this.Gu=new YL(O,this.yw,E);g.H(this,this.Gu);this.t3=new dM(O,this.I2,this.YS,this.rd,E);g.H(this,this.t3);this.SR=new z8(O);g.H(this,this.SR);this.JK=new n4(O);g.H(this,this.JK);this.M0=new JU(O);g.H(this,this.M0);this.Sr=Um(function(){return new Sn(R)}); g.H(this,this.Sr);this.ij=new gG(O);g.H(this,this.ij);this.Vk=new c7(O,this.Gy,this.YS,this.yh,this.yw);g.H(this,this.Vk);this.s8=Um(function(){return new p4}); g.H(this,this.s8);this.UO=Um(function(){return new B7(F.YS)}); g.H(this,this.UO);this.gU=Um(function(){return new Oy(F.bj,I,G)}); g.H(this,this.gU);this.hK=Um(function(){return new gz(F.wd,F.yh,F.SR,F.Hy)}); g.H(this,this.hK);this.bA=Um(function(){return new Uj_(F.R2,F.YS,F.yh,w,F.Hy,F.ly,F.M0,F.q9,F.wd,J)}); g.H(this,this.bA);this.EO=Um(function(){return new oa(O,F.ij,F.SR,F.yh,F.Hy,F.Th,F.F5,F.rd,F.YS,F.Qw,F.I2,F.iK,F.zR,F.q9,F.Zs,F.wd,F.Sr,E,a)}); g.H(this,this.EO);this.fv=new Cl(O,this.FJ,G);g.H(this,this.fv);this.Zj={m4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bj],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.uV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.G_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.wO],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.mz]]),VP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SW],["SLOT_TYPE_FORECASTING",this.LY],["SLOT_TYPE_IN_PLAYER",this.LY], ["SLOT_TYPE_PLAYER_BYTES",this.LY]]),Ls:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bC],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l5],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l5],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l5],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l5],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l5],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l5],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l5],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l5],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.l5], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.l5],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ly],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.t3],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.t3],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.t3],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.SR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.JK],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.M0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ij],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Vk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Vk],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Vk],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Vk],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Vk]]),qJ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.s8],["SLOT_TYPE_FORECASTING",this.s8],["SLOT_TYPE_IN_PLAYER",this.s8],["SLOT_TYPE_PLAYER_BYTES",this.UO]]), Xd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gU],["SLOT_TYPE_FORECASTING",this.hK],["SLOT_TYPE_IN_PLAYER",this.bA],["SLOT_TYPE_PLAYER_BYTES",this.EO]])};this.listeners=[w.get()];this.Ow={bj:this.bj,hh:this.wd.get(),zd:this.q9.get(),KX:this.YS.get(),wO:this.wO,pz:G.get(),iN:this.FJ.get(),wh:this.bC,Jh:w.get(),LA:this.rd.get()}}; M$B=function(O,R,J,l,u){g.p.call(this);var F=this,G=Um(function(){return new i5(F.wd)}); g.H(this,G);var y=Um(function(){return new u5(G,F.wd)}); g.H(this,y);var w=Um(function(){return new W7}); g.H(this,w);var I=Um(function(){return new sG(O)}); g.H(this,I);var C=Um(function(){return new Fy(G,y,F.wd)}); g.H(this,C);var r=Um(function(){return new IY}); g.H(this,r);this.R2=Um(function(){return new tp(R)}); g.H(this,this.R2);this.q9=Um(function(){return new QG(u)}); g.H(this,this.q9);this.iK=Um(function(){return new YY(R)}); g.H(this,this.iK);this.I2=Um(function(){return new d8(R)}); g.H(this,this.I2);this.F5=Um(function(){return new hL(R)}); g.H(this,this.F5);this.zR=Um(function(){return new zQ(R)}); g.H(this,this.zR);this.wd=Um(function(){return new nJ(R)}); g.H(this,this.wd);var t=Um(function(){return new rW(l)}); g.H(this,t);var Z=Um(function(){return new oq(F.wd)}); g.H(this,Z);var V=Um(function(){return new EG(G,C,y,F.wd,Z,null,null,null,null)}); g.H(this,V);this.Zs=Um(function(){return new fl(R)}); g.H(this,this.Zs);this.rd=Um(function(){return new F0(R,r,F.wd)}); g.H(this,this.rd);var m=Qq({rd:this.rd,wd:this.wd,CZ:Z}),E=m.context,a=m.A1;this.Iz=m.Iz;this.YS=Um(function(){return new Gp(R,F.rd,F.wd)}); g.H(this,this.YS);this.Qw=Um(function(){return new Ng}); g.H(this,this.Qw);this.Hy=Um(function(){return new Rn(F.YS,R,F.wd)}); g.H(this,this.Hy);this.yh=Um(function(){return new uj(R,w,F.Hy,F.rd,F.Iz,F.wd,a)}); g.H(this,this.yh);this.Th=Um(function(){return new zg(F.wd)}); g.H(this,this.Th);this.G_=new q2(M2,mc,function(b,W,B,z){return lw(y.get(),b,W,B,z)},I,C,y,Z,this.wd,this.rd); g.H(this,this.G_);this.wO=new kL(I,V,J,this.wd,O,this.rd,this.YS,this.iK);g.H(this,this.wO);var v=new LJ(R,this.wO,this.YS,this.rd);this.yw=Um(function(){return v}); this.Oh=v;this.mz=new bw(I,C,this.I2,this.yw,E);g.H(this,this.mz);this.bj=new UM(this.wd,I,C,V,this.rd,this.mz,J,this.F5);g.H(this,this.bj);this.SW=Um(function(){return new tK(t,y,Z,F.wd,F.yh,F.YS)}); g.H(this,this.SW);this.LY=Um(function(){return new o2}); g.H(this,this.LY);this.bC=new UG(O,this.R2,this.wd);g.H(this,this.bC);this.l5=new jz(O);g.H(this,this.l5);this.Gu=new YL(O,this.yw,E);g.H(this,this.Gu);this.t3=new dM(O,this.I2,this.YS,this.rd,E);g.H(this,this.t3);this.SR=new z8(O);g.H(this,this.SR);this.JK=new n4(O);g.H(this,this.JK);this.Sr=Um(function(){return new Sn(R)}); g.H(this,this.Sr);this.ij=new gG(O);g.H(this,this.ij);this.s8=Um(function(){return new p4}); g.H(this,this.s8);this.UO=Um(function(){return new B7(F.YS)}); g.H(this,this.UO);this.gU=Um(function(){return new Oy(F.bj,I,G)}); g.H(this,this.gU);this.hK=Um(function(){return new gz(F.wd,F.yh,F.SR,F.Hy)}); g.H(this,this.hK);this.AL=Um(function(){return new RMz(F.R2,F.YS,F.yh,w,J,F.wd)}); g.H(this,this.AL);this.EO=Um(function(){return new oa(O,F.ij,F.SR,F.yh,F.Hy,F.Th,F.F5,F.rd,F.YS,F.Qw,F.I2,F.iK,F.zR,F.q9,F.Zs,F.wd,F.Sr,E,a)}); g.H(this,this.EO);this.Zj={m4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.G_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.wO],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.mz]]),VP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SW],["SLOT_TYPE_FORECASTING",this.LY],["SLOT_TYPE_IN_PLAYER",this.LY],["SLOT_TYPE_PLAYER_BYTES",this.LY]]),Ls:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bC],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.l5],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l5],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l5],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l5],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l5],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l5],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l5],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l5],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.l5],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.t3],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.t3],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.SR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.JK],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ij]]),qJ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.s8],["SLOT_TYPE_ABOVE_FEED",this.s8],["SLOT_TYPE_FORECASTING",this.s8],["SLOT_TYPE_IN_PLAYER",this.s8],["SLOT_TYPE_PLAYER_BYTES",this.UO]]),Xd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gU],["SLOT_TYPE_FORECASTING",this.hK],["SLOT_TYPE_IN_PLAYER", this.AL],["SLOT_TYPE_PLAYER_BYTES",this.EO]])};this.listeners=[w.get()];this.Ow={bj:this.bj,hh:this.wd.get(),zd:this.q9.get(),KX:this.YS.get(),wO:this.wO,pz:G.get(),iN:null,wh:this.bC,Jh:w.get(),LA:this.rd.get()}}; qbs=function(O,R,J,l,u){g.p.call(this);var F=this,G=Um(function(){return new i5(F.wd)}); g.H(this,G);var y=Um(function(){return new u5(G,F.wd)}); g.H(this,y);var w=Um(function(){return new W7}); g.H(this,w);var I=Um(function(){return new sG(O)}); g.H(this,I);var C=Um(function(){return new Fy(G,y,F.wd)}); g.H(this,C);var r=Um(function(){return new IY}); g.H(this,r);this.hc=Um(function(){return new XH_(R)}); g.H(this,this.hc);this.R2=Um(function(){return new tp(R)}); g.H(this,this.R2);this.q9=Um(function(){return new QG(u)}); g.H(this,this.q9);this.iK=Um(function(){return new YY(R)}); g.H(this,this.iK);this.I2=Um(function(){return new d8(R)}); g.H(this,this.I2);this.F5=Um(function(){return new hL(R)}); g.H(this,this.F5);this.zR=Um(function(){return new zQ(R)}); g.H(this,this.zR);this.wd=Um(function(){return new nJ(R)}); g.H(this,this.wd);var t=Um(function(){return new rW(l)}); g.H(this,t);var Z=Um(function(){return new oq(F.wd)}); g.H(this,Z);var V=Um(function(){return new EG(G,C,y,F.wd,Z,null,null,null,null)}); g.H(this,V);this.Zs=Um(function(){return new fl(R)}); g.H(this,this.Zs);this.rd=Um(function(){return new F0(R,r,F.wd)}); g.H(this,this.rd);var m=Qq({rd:this.rd,wd:this.wd,CZ:Z}),E=m.context,a=m.A1;this.Iz=m.Iz;this.YS=Um(function(){return new Gp(R,F.rd,F.wd)}); g.H(this,this.YS);this.Qw=Um(function(){return new Ng}); g.H(this,this.Qw);this.Hy=Um(function(){return new Rn(F.YS,R,F.wd)}); g.H(this,this.Hy);this.yh=Um(function(){return new uj(R,w,F.Hy,F.rd,F.Iz,F.wd,a)}); g.H(this,this.yh);this.Th=Um(function(){return new zg(F.wd)}); g.H(this,this.Th);this.G_=new q2(qds,mc,function(b,W,B,z){return O2x(y.get(),b,W,B,z)},I,C,y,Z,this.wd,this.rd); g.H(this,this.G_);this.wO=new kL(I,V,J,this.wd,O,this.rd,this.YS,this.iK);g.H(this,this.wO);var v=new LJ(R,this.wO,this.YS,this.rd);this.yw=Um(function(){return v}); this.Oh=v;this.mz=new bw(I,C,this.I2,this.yw,E);g.H(this,this.mz);this.bj=new UM(this.wd,I,C,V,this.rd,this.mz,J,this.F5);g.H(this,this.bj);this.SW=Um(function(){return new tK(t,y,Z,F.wd,F.yh,F.YS)}); g.H(this,this.SW);this.LY=Um(function(){return new o2}); g.H(this,this.LY);this.bC=new UG(O,this.R2,this.wd);g.H(this,this.bC);this.l5=new jz(O);g.H(this,this.l5);this.Gu=new YL(O,this.yw,E);g.H(this,this.Gu);this.t3=new dM(O,this.I2,this.YS,this.rd,E);g.H(this,this.t3);this.SR=new z8(O);g.H(this,this.SR);this.JK=new n4(O);g.H(this,this.JK);this.Sr=Um(function(){return new Sn(R)}); g.H(this,this.Sr);this.ij=new gG(O);g.H(this,this.ij);this.s8=Um(function(){return new p4}); g.H(this,this.s8);this.UO=Um(function(){return new B7(F.YS)}); g.H(this,this.UO);this.gU=Um(function(){return new Oy(F.bj,I,G)}); g.H(this,this.gU);this.hK=Um(function(){return new gz(F.wd,F.yh,F.SR,F.Hy)}); g.H(this,this.hK);this.EO=Um(function(){return new oa(O,F.ij,F.SR,F.yh,F.Hy,F.Th,F.F5,F.rd,F.YS,F.Qw,F.I2,F.iK,F.zR,F.q9,F.Zs,F.wd,F.Sr,E,a)}); g.H(this,this.EO);this.p4=Um(function(){return new Qcz(F.R2,F.YS,F.yh,w,F.hc,J,F.rd)}); g.H(this,this.p4);this.Zj={m4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.G_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.wO],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.mz]]),VP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SW],["SLOT_TYPE_FORECASTING",this.LY],["SLOT_TYPE_IN_PLAYER",this.LY],["SLOT_TYPE_PLAYER_BYTES",this.LY]]),Ls:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bC],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.l5],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l5],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l5],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l5],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l5],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l5],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l5],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l5],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.l5],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.t3],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.t3],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.SR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.JK],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ij]]),qJ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.s8],["SLOT_TYPE_FORECASTING",this.s8],["SLOT_TYPE_IN_PLAYER",this.s8],["SLOT_TYPE_PLAYER_BYTES",this.UO]]),Xd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gU],["SLOT_TYPE_FORECASTING",this.hK],["SLOT_TYPE_IN_PLAYER",this.p4],["SLOT_TYPE_PLAYER_BYTES", this.EO]])};this.listeners=[w.get()];this.Ow={bj:this.bj,hh:this.wd.get(),zd:this.q9.get(),KX:this.YS.get(),wO:this.wO,pz:G.get(),iN:null,wh:this.bC,Jh:w.get(),LA:this.rd.get()}}; k7h=function(O,R,J,l,u){g.p.call(this);var F=this,G=Um(function(){return new i5(F.wd)}); g.H(this,G);var y=Um(function(){return new u5(G,F.wd)}); g.H(this,y);var w=Um(function(){return new W7}); g.H(this,w);var I=Um(function(){return new sG(O)}); g.H(this,I);var C=Um(function(){return new Fy(G,y,F.wd)}); g.H(this,C);var r=Um(function(){return new IY}); g.H(this,r);this.hc=Um(function(){return new XH_(R)}); g.H(this,this.hc);this.R2=Um(function(){return new tp(R)}); g.H(this,this.R2);this.q9=Um(function(){return new QG(u)}); g.H(this,this.q9);this.iK=Um(function(){return new YY(R)}); g.H(this,this.iK);this.I2=Um(function(){return new d8(R)}); g.H(this,this.I2);this.F5=Um(function(){return new hL(R)}); g.H(this,this.F5);this.zR=Um(function(){return new zQ(R)}); g.H(this,this.zR);this.wd=Um(function(){return new nJ(R)}); g.H(this,this.wd);var t=Um(function(){return new rW(l)}); g.H(this,t);var Z=Um(function(){return new oq(F.wd)}); g.H(this,Z);this.Zs=Um(function(){return new fl(R)}); g.H(this,this.Zs);this.rd=Um(function(){return new F0(R,r,F.wd)}); g.H(this,this.rd);var V=Qq({rd:this.rd,wd:this.wd,CZ:Z}),m=V.context,E=V.A1;this.Iz=V.Iz;this.Gy=Um(function(){return new VB(R,F.wd,F.yh)}); g.H(this,this.Gy);this.Sr=Um(function(){return new Sn(R)}); g.H(this,this.Sr);this.YS=Um(function(){return new Gp(R,F.rd,F.wd)}); g.H(this,this.YS);this.Qw=Um(function(){return new Ng}); g.H(this,this.Qw);V=Um(function(){return new EG(G,C,y,F.wd,Z,null,F.YS,F.uV,F.Vk,3)}); g.H(this,V);this.Th=Um(function(){return new zg(F.wd)}); this.Hy=Um(function(){return new Rn(F.YS,R,F.wd)}); g.H(this,this.Hy);this.yh=Um(function(){return new uj(R,w,F.Hy,F.rd,F.Iz,F.wd,E)}); g.H(this,this.yh);this.wO=new kL(I,V,J,this.wd,O,this.rd,this.YS,this.iK);g.H(this,this.wO);var a=new LJ(R,this.wO,this.YS,this.rd,this.Gy);this.yw=Um(function(){return a}); this.Oh=a;this.G_=new q2(ktT,mc,function(v,b,W,B){return O2x(y.get(),v,b,W,B)},I,C,y,Z,this.wd,this.rd); g.H(this,this.G_);this.uV=new XP(I,C,this.yw,this.Gy,this.YS,this.wd,this.yh,this.Sr);g.H(this,this.uV);this.mz=new bw(I,C,this.I2,this.yw,m);g.H(this,this.mz);this.bj=new UM(this.wd,I,C,V,this.rd,this.mz,J,this.F5);g.H(this,this.bj);this.SW=Um(function(){return new tK(t,y,Z,F.wd,F.yh,F.YS,F.Sr)}); g.H(this,this.SW);this.LY=Um(function(){return new o2}); g.H(this,this.LY);this.bC=new UG(O,this.R2,this.wd);g.H(this,this.bC);this.l5=new jz(O);g.H(this,this.l5);this.Gu=new YL(O,this.yw,m);g.H(this,this.Gu);this.t3=new dM(O,this.I2,this.YS,this.rd,m);g.H(this,this.t3);this.T5=new hM(O,this.rd);g.H(this,this.T5);this.Vk=new c7(O,this.Gy,this.YS,this.yh,this.yw);g.H(this,this.Vk);this.SR=new z8(O);g.H(this,this.SR);this.JK=new n4(O);g.H(this,this.JK);this.ij=new gG(O);g.H(this,this.ij);this.s8=Um(function(){return new p4}); g.H(this,this.s8);this.UO=Um(function(){return new B7(F.YS)}); g.H(this,this.UO);this.gU=Um(function(){return new Oy(F.bj,I,G)}); g.H(this,this.gU);this.hK=Um(function(){return new gz(F.wd,F.yh,F.SR,F.Hy)}); g.H(this,this.hK);this.EO=Um(function(){return new tv(O,F.ij,F.SR,F.rd,F.Sr,F.YS,F.Qw,F.yh,r,F.Gy,F.Hy,F.Th,F.F5,F.I2,F.iK,F.zR,F.q9,F.Zs,F.wd,w,m,E)}); g.H(this,this.EO);this.bA=Um(function(){return new Lhx(F.R2,F.YS,F.yh,w,F.hc,J,F.wd,F.rd)}); g.H(this,this.bA);this.Zj={m4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bj],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.uV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.G_],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.wO],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.mz]]),VP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SW],["SLOT_TYPE_FORECASTING",this.LY],["SLOT_TYPE_IN_PLAYER",this.LY],["SLOT_TYPE_PLAYER_BYTES",this.LY]]),Ls:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.bC],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l5],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l5],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l5],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l5],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l5],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l5],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l5],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l5],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.l5],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gu],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.t3],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.t3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.T5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.T5],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.SR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gu],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.JK],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ij],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Vk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Vk],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Vk],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Vk],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Vk]]),qJ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.s8],["SLOT_TYPE_FORECASTING",this.s8],["SLOT_TYPE_IN_PLAYER",this.s8],["SLOT_TYPE_PLAYER_BYTES",this.UO]]),Xd:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gU],["SLOT_TYPE_FORECASTING",this.hK],["SLOT_TYPE_PLAYER_BYTES",this.EO],["SLOT_TYPE_IN_PLAYER",this.bA]])};this.listeners=[w.get()]; this.Ow={bj:this.bj,hh:this.wd.get(),zd:this.q9.get(),KX:this.YS.get(),wO:this.wO,pz:G.get(),iN:null,wh:this.bC,Jh:w.get(),LA:this.rd.get()}}; b02=function(O,R,J,l){function u(){return F.S} g.p.call(this);var F=this;O.T().experiments.Vh("html5_dispose_of_manager_before_dependency")?(this.L=s0h(u,O,R,J,l),this.S=(new jd(this.L)).B(),g.H(this,this.S),g.H(this,this.L)):(this.L=s0h(u,O,R,J,l),g.H(this,this.L),this.S=(new jd(this.L)).B(),g.H(this,this.S))}; ET=function(O){return O.L.Ow}; s0h=function(O,R,J,l,u){try{var F=R.T();if(g.zj(F))var G=new T0T(O,R,J,l,u);else if(g.cv(F))G=new $Ss(O,R,J,l,u);else if(xX(F))G=new M$B(O,R,J,l,u);else if(g.p9(F))G=new qbs(O,R,J,l,u);else if(g.Aj(F))G=new k7h(O,R,J,l,u);else throw new TypeError("Unknown web interface");return G}catch(y){return G=R.T(),rK("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:G.L.cplatform,interface:G.L.c,JPU:G.L.cver,drU:G.L.ctheme,Zdd:G.L.cplayer,uy1:G.playerStyle}),new Z0_(O,R,J,l,u)}}; WUB=function(O){Q8.call(this,O)}; A52=function(O,R,J,l,u){RH.call(this,O,{Y:"div",G:"ytp-ad-timed-pie-countdown-container",K:[{Y:"svg",G:"ytp-ad-timed-pie-countdown",C:{viewBox:"0 0 20 20"},K:[{Y:"circle",G:"ytp-ad-timed-pie-countdown-background",C:{r:"10",cx:"10",cy:"10"}},{Y:"circle",G:"ytp-ad-timed-pie-countdown-inner",C:{r:"5",cx:"10",cy:"10"}},{Y:"circle",G:"ytp-ad-timed-pie-countdown-outer",C:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",R,J,l,u);this.N=this.Bq("ytp-ad-timed-pie-countdown-container");this.B=this.Bq("ytp-ad-timed-pie-countdown-inner"); this.j=this.Bq("ytp-ad-timed-pie-countdown-outer");this.S=Math.ceil(2*Math.PI*5);this.hide()}; ecA=function(O,R,J,l,u,F){oh.call(this,O,{Y:"div",G:"ytp-ad-action-interstitial",C:{tabindex:"0"},K:[{Y:"div",G:"ytp-ad-action-interstitial-background-container"},{Y:"div",G:"ytp-ad-action-interstitial-slot",K:[{Y:"div",G:"ytp-ad-action-interstitial-instream-info"},{Y:"div",G:"ytp-ad-action-interstitial-card",K:[{Y:"div",G:"ytp-ad-action-interstitial-image-container"},{Y:"div",G:"ytp-ad-action-interstitial-headline-container"},{Y:"div",G:"ytp-ad-action-interstitial-description-container"},{Y:"div", G:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",R,J,l);this.h5=u;this.hS=F;this.navigationEndpoint=this.L=this.skipButton=this.S=this.actionButton=null;this.Iu=this.Bq("ytp-ad-action-interstitial-instream-info");this.Qh=this.Bq("ytp-ad-action-interstitial-image-container");this.W=new HT(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,"ytp-ad-action-interstitial-image");g.H(this,this.W);this.W.hR(this.Qh);this.N1=this.Bq("ytp-ad-action-interstitial-headline-container"); this.j=new cT(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,"ytp-ad-action-interstitial-headline");g.H(this,this.j);this.j.hR(this.N1);this.Hq=this.Bq("ytp-ad-action-interstitial-description-container");this.B=new cT(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,"ytp-ad-action-interstitial-description");g.H(this,this.B);this.B.hR(this.Hq);this.KJ=this.Bq("ytp-ad-action-interstitial-background-container");this.JR=new HT(this.api,this.layoutId,this.interactionLoggingClientData, this.zd,"ytp-ad-action-interstitial-background",!0);g.H(this,this.JR);this.JR.hR(this.KJ);this.Td=this.Bq("ytp-ad-action-interstitial-action-button-container");this.slot=this.Bq("ytp-ad-action-interstitial-slot");this.KY=this.Bq("ytp-ad-action-interstitial-card");this.N=new Tv;g.H(this,this.N);this.hide()}; PtH=function(O){var R=g.LI("html5-video-player");R&&g.wI(R,"ytp-ad-display-override",O)}; xST=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ytp-ad-overlay-slot",K:[{Y:"div",G:"ytp-ad-overlay-container"}]},"invideo-overlay",R,J,l);this.W=[];this.KJ=this.N1=this.N=this.Td=this.Iu=null;this.JR=!1;this.j=null;this.Hq=0;O=this.Bq("ytp-ad-overlay-container");this.Qh=new K9(O,45E3,6E3,.3,.4);g.H(this,this.Qh);this.B=pHh(this);g.H(this,this.B);this.B.hR(O);this.S=B0A(this);g.H(this,this.S);this.S.hR(O);this.L=H0s(this);g.H(this,this.L);this.L.hR(O);this.hide()}; pHh=function(O){var R=new g.tQ({Y:"div",G:"ytp-ad-text-overlay",K:[{Y:"div",G:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",G:"ytp-ad-overlay-close-container",K:[{Y:"button",G:"ytp-ad-overlay-close-button",K:[sk(USp)]}]},{Y:"div",G:"ytp-ad-overlay-title",FQ:"{{title}}"},{Y:"div",G:"ytp-ad-overlay-desc",FQ:"{{description}}"},{Y:"div",q1:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],FQ:"{{displayUrl}}"}]});O.U(R.Bq("ytp-ad-overlay-title"),"click",function(J){Dm(O,R.element,J)}); O.U(R.Bq("ytp-ad-overlay-link"),"click",function(J){Dm(O,R.element,J)}); O.U(R.Bq("ytp-ad-overlay-close-container"),"click",O.TC);R.hide();return R}; B0A=function(O){var R=new g.tQ({Y:"div",q1:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],K:[{Y:"div",G:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",G:"ytp-ad-overlay-close-container",K:[{Y:"button",G:"ytp-ad-overlay-close-button",K:[sk(USp)]}]},{Y:"div",G:"ytp-ad-overlay-text-image",K:[{Y:"img",C:{src:"{{imageUrl}}"}}]},{Y:"div",G:"ytp-ad-overlay-title",FQ:"{{title}}"},{Y:"div",G:"ytp-ad-overlay-desc",FQ:"{{description}}"},{Y:"div",q1:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], FQ:"{{displayUrl}}"}]});O.U(R.Bq("ytp-ad-overlay-title"),"click",function(J){Dm(O,R.element,J)}); O.U(R.Bq("ytp-ad-overlay-link"),"click",function(J){Dm(O,R.element,J)}); O.U(R.Bq("ytp-ad-overlay-close-container"),"click",O.TC);O.U(R.Bq("ytp-ad-overlay-text-image"),"click",O.geQ);R.hide();return R}; H0s=function(O){var R=new g.tQ({Y:"div",G:"ytp-ad-image-overlay",K:[{Y:"div",G:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",G:"ytp-ad-overlay-close-container",K:[{Y:"button",G:"ytp-ad-overlay-close-button",K:[sk(USp)]}]},{Y:"div",G:"ytp-ad-overlay-image",K:[{Y:"img",C:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});O.U(R.Bq("ytp-ad-overlay-image"),"click",function(J){Dm(O,R.element,J)}); O.U(R.Bq("ytp-ad-overlay-close-container"),"click",O.TC);R.hide();return R}; j02=function(O,R){if(R){var J=g.x(R,pw)||null;J==null?g.WM(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(R=g.LI("video-ads ytp-ad-module")||null,R==null?g.WM(Error("Could not locate the root ads container element to attach the ad info dialog.")):(O.N1=new g.tQ({Y:"div",G:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(O,O.N1),O.N1.hR(R),R=new ne(O.api,O.layoutId,O.interactionLoggingClientData,O.zd,O.N1.element,!1),g.H(O,R),R.init(GI("ad-info-hover-text-button"),J,O.macros), O.j?(R.hR(O.j,0),R.subscribe("f",O.YfR,O),R.subscribe("e",O.ZC,O),O.U(O.j,"click",O.qfX),O.U(g.LI("ytp-ad-button",R.element),"click",function(){var l;if(g.x((l=g.x(J.button,g.HO))==null?void 0:l.serviceEndpoint,U$T))O.JR=O.api.getPlayerState(1)===2,O.api.pauseVideo();else O.api.onAdUxClicked("ad-info-hover-text-button",O.layoutId)}),O.KJ=R):g.WM(Error("Ad info button container within overlay ad was not present."))))}else g.Aa(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; LUh=function(O,R){if(Q0H(O,an)||O.api.isMinimized())return!1;var J=Z$(R.title),l=Z$(R.description);if(g.oW(J)||g.oW(l))return!1;O.createServerVe(O.B.element,R.trackingParams||null);O.B.updateValue("title",Z$(R.title));O.B.updateValue("description",Z$(R.description));O.B.updateValue("displayUrl",Z$(R.displayUrl));R.navigationEndpoint&&g.Do(O.W,R.navigationEndpoint);O.B.show();O.Qh.start();O.logVisibility(O.B.element,!0);O.U(O.B.element,"mouseover",function(){O.Hq++}); return!0}; YbW=function(O,R){if(Q0H(O,an)||O.api.isMinimized())return!1;var J=Z$(R.title),l=Z$(R.description);if(g.oW(J)||g.oW(l))return!1;O.createServerVe(O.S.element,R.trackingParams||null);O.S.updateValue("title",Z$(R.title));O.S.updateValue("description",Z$(R.description));O.S.updateValue("displayUrl",Z$(R.displayUrl));O.S.updateValue("imageUrl",lAx(R.image));R.navigationEndpoint&&g.Do(O.W,R.navigationEndpoint);O.Td=R.imageNavigationEndpoint||null;O.S.show();O.Qh.start();O.logVisibility(O.S.element,!0); O.U(O.S.element,"mouseover",function(){O.Hq++}); return!0}; dSx=function(O,R){if(O.api.isMinimized())return!1;var J=uIp(R.image),l=J;J.width0?(R=new eg(O.api,O.L), R.hR(O.playerOverlay),g.H(O,R)):(O=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(R)),g.WM(O))}}else g.WM(Error("addCommonComponents() needs to be called before starting countdown."))}; upM=function(O){function R(J){return{toString:function(){return J()}}} O.macros.SURVEY_LOCAL_TIME_EPOCH_S=R(function(){var J=new Date;return(Math.round(J.valueOf()/1E3)+-1*J.getTimezoneOffset()*60).toString()}); O.macros.SURVEY_ELAPSED_MS=R(function(){return(Date.now()-O.B).toString()})}; FHC=function(O,R,J,l,u){$4.call(this,O,R,J,l,"survey-question-multi-select");this.Hq=u;this.noneOfTheAbove=null;this.submitEndpoints=[];this.j=null;this.hide()}; Gzk=function(O,R,J){O.noneOfTheAbove=new RLt(O.api,O.layoutId,O.interactionLoggingClientData,O.zd);O.noneOfTheAbove.hR(O.answers);O.noneOfTheAbove.init(GI("survey-none-of-the-above"),R,J)}; ysQ=function(O){O.S.forEach(function(R){R.L.toggleButton(!1)}); KH4(O,!0)}; KH4=function(O,R){var J=O.N;O=wBQ(O);R=R===void 0?!1:R;J.L&&(O?J.L.hide():J.L.show(),R&&J.L instanceof Sg&&!J.L.N&&cSW(J.L,!1));J.S&&(O?J.S.show():J.S.hide())}; wBQ=function(O){return O.S.some(function(R){return R.L.isToggled()})||O.noneOfTheAbove.button.isToggled()}; Mg=function(O,R,J,l,u){$4.call(this,O,R,J,l,"survey-question-single-select",function(G){F.api.T().Z("supports_multi_step_on_desktop")&&u([G])}); var F=this;this.hide()}; qg=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ytp-ad-survey",K:[{Y:"div",G:"ytp-ad-survey-questions"}]},"survey",R,J,l);this.questions=[];this.S=[];this.conditioningRules=[];this.L=0;this.j=this.Bq("ytp-ad-survey-questions");this.api.T().Z("fix_survey_color_contrast_on_destop")&&this.Bq("ytp-ad-survey").classList.add("color-contrast-fix");this.api.T().Z("web_enable_speedmaster")&&this.Bq("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; rsC=function(O,R){var J=O.S[R],l;(l=O.B)==null||l.dispose();g.x(J,e7)?If6(O,g.x(J,e7),O.macros):g.x(J,AG)&&C2o(O,g.x(J,AG),O.macros);O.L=R}; If6=function(O,R,J){var l=new Mg(O.api,O.layoutId,O.interactionLoggingClientData,O.zd,O.N.bind(O));l.hR(O.j);l.init(GI("survey-question-single-select"),R,J);O.api.T().Z("supports_multi_step_on_desktop")?O.B=l:O.questions.push(l);g.H(O,l)}; C2o=function(O,R,J){var l=new FHC(O.api,O.layoutId,O.interactionLoggingClientData,O.zd,O.N.bind(O));l.hR(O.j);l.init(GI("survey-question-multi-select"),R,J);O.api.T().Z("supports_multi_step_on_desktop")?O.B=l:O.questions.push(l);g.H(O,l)}; k4=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ytp-ad-survey-interstitial",K:[{Y:"div",G:"ytp-ad-survey-interstitial-contents",K:[{Y:"div",G:"ytp-ad-survey-interstitial-logo",K:[{Y:"div",G:"ytp-ad-survey-interstitial-logo-image"}]},{Y:"div",G:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",R,J,l);this.L=this.actionButton=null;this.interstitial=this.Bq("ytp-ad-survey-interstitial");this.S=this.Bq("ytp-ad-survey-interstitial-contents");this.text=this.Bq("ytp-ad-survey-interstitial-text"); this.logoImage=this.Bq("ytp-ad-survey-interstitial-logo-image");this.transition=new g.iz(this,500,!1,300);g.H(this,this.transition)}; tTC=function(O,R){R=R&&BT(R)||"";if(g.oW(R))g.Aa(Error("Found ThumbnailDetails without valid image URL"));else{var J=O.style;O=O.style.cssText;var l=document.implementation.createHTMLDocument("").createElement("DIV");l.style.cssText=O;O=sLz(l.style);J.cssText=[O,'background-image:url("'+R+'");'].join("")}}; oWM=function(O){var R=g.LI("html5-video-player");R&&g.wI(R,"ytp-ad-display-override",O)}; sT=function(O,R,J,l,u,F){F=F===void 0?0:F;RH.call(this,O,{Y:"div",G:"ytp-preview-ad",K:[{Y:"div",G:"ytp-preview-ad__text"}]},"preview-ad",R,J,l,u);var G=this;this.Hq=F;this.S=0;this.N=-1;this.B=this.Bq("ytp-preview-ad__text");switch(this.Hq){case 1:this.B.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.iz(this,400,!1,100,function(){G.hide()}); g.H(this,this.transition);this.hide()}; bj=function(O,R,J,l){oh.call(this,O,{Y:"img",G:"ytp-ad-avatar"},"ad-avatar",R,J,l);this.hide()}; Zx6=function(O){switch(O.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; Wj=function(O,R,J,l,u,F){u=u===void 0?!1:u;F=F===void 0?!1:F;oh.call(this,O,{Y:"button",G:"ytp-ad-button-vm"},"ad-button",R,J,l);this.buttonText=this.buttonIcon=null;this.hide();this.L=u;this.S=F}; VTb=function(O,R,J,l,u){RH.call(this,O,{Y:"div",q1:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],K:[{Y:"div",G:"ytp-ad-avatar-lockup-card__avatar_and_text_container",K:[{Y:"div",G:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",R,J,l,u);this.startMilliseconds=0;this.adAvatar=new bj(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);g.H(this,this.adAvatar);gv(this.element,this.adAvatar.element,0);this.headline=new qt(this.api,this.layoutId, this.interactionLoggingClientData,this.zd);g.H(this,this.headline);this.headline.hR(this.Bq("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);g.H(this,this.description);this.description.hR(this.Bq("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new Wj(this.api, this.layoutId,this.interactionLoggingClientData,this.zd);g.H(this,this.adButton);this.adButton.hR(this.element);this.hide()}; Ap=function(O,R,J,l){oh.call(this,O,{Y:"button",G:"ytp-skip-ad-button",K:[{Y:"div",G:"ytp-skip-ad-button__text"}]},"skip-button",R,J,l);var u=this;this.S=!1;this.N=this.Bq("ytp-skip-ad-button__text");this.transition=new g.iz(this,500,!1,100,function(){u.hide()}); g.H(this,this.transition);this.L=new K9(this.element,15E3,5E3,.5,.5,!0);g.H(this,this.L);this.hide()}; ff6=function(O,R,J,l,u){RH.call(this,O,{Y:"div",G:"ytp-skip-ad"},"skip-ad",R,J,l,u);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new Ap(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);g.H(this,this.B);this.B.hR(this.element);this.hide()}; en=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ytp-visit-advertiser-link"},"visit-advertiser-link",R,J,l);this.hide()}; Pj=function(O,R,J,l,u){oh.call(this,O,{Y:"div",G:"ytp-ad-player-overlay-layout",K:[{Y:"div",G:"ytp-ad-player-overlay-layout__player-card-container"},{Y:"div",G:"ytp-ad-player-overlay-layout__ad-info-container"},{Y:"div",G:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{Y:"div",G:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",R,J,l);this.S=u;this.N1=this.Bq("ytp-ad-player-overlay-layout__player-card-container");this.L=this.Bq("ytp-ad-player-overlay-layout__ad-info-container"); this.W=this.Bq("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Hq=this.Bq("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; S_R=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ytp-ad-grid-card-text",K:[{Y:"div",G:"ytp-ad-grid-card-text__metadata",K:[{Y:"div",G:"ytp-ad-grid-card-text__metadata__headline"},{Y:"div",G:"ytp-ad-grid-card-text__metadata__description",K:[{Y:"div",G:"ytp-ad-grid-card-text__metadata__description__line"},{Y:"div",G:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{Y:"div",G:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",R,J,l);this.headline=new qt(this.api,this.layoutId,this.interactionLoggingClientData, this.zd);g.H(this,this.headline);this.headline.hR(this.Bq("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new Wj(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,!0);g.H(this,this.moreInfoButton);this.moreInfoButton.hR(this.Bq("ytp-ad-grid-card-text__button"))}; pl=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",R,J,l);this.L=[]}; Bj=function(O,R,J,l,u,F,G){RH.call(this,O,F,G,R,J,l,u);this.playerProgressOffsetMs=0;this.S=!1}; Nho=function(O){var R=g.LI("html5-video-player");R&&g.wI(R,"ytp-ad-display-override",O)}; m0I=function(O,R,J,l,u){Bj.call(this,O,R,J,l,u,{Y:"div",G:"ytp-display-underlay-text-grid-cards",K:[{Y:"div",G:"ytp-display-underlay-text-grid-cards__content_container",K:[{Y:"div",G:"ytp-display-underlay-text-grid-cards__content_container__header",K:[{Y:"div",G:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{Y:"div",G:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{Y:"div",G:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {Y:"div",G:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new pl(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);g.H(this,this.adGridCardCollection);this.adGridCardCollection.hR(this.Bq("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new Wj(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);g.H(this,this.adButton);this.adButton.hR(this.Bq("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.B=this.Bq("ytp-display-underlay-text-grid-cards__content_container");this.N=this.Bq("ytp-display-underlay-text-grid-cards__content_container__header")}; Hj=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ytp-ad-details-line"},"ad-details-line",R,J,l);this.L=[];this.hide()}; x4=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ytp-image-background",K:[{Y:"img",G:"ytp-image-background-image"}]},"image-background",R,J,l);this.hide()}; EWR=function(O,R,J,l,u){RH.call(this,O,{Y:"svg",G:"ytp-timed-pie-countdown",C:{viewBox:"0 0 20 20"},K:[{Y:"circle",G:"ytp-timed-pie-countdown__background",C:{r:"10",cx:"10",cy:"10"}},{Y:"circle",G:"ytp-timed-pie-countdown__inner",C:{r:"5",cx:"10",cy:"10"}},{Y:"circle",G:"ytp-timed-pie-countdown__outer",C:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",R,J,l,u);this.B=this.Bq("ytp-timed-pie-countdown__inner");this.S=Math.ceil(2*Math.PI*5);this.hide()}; UT=function(O,R,J,l){oh.call(this,O,{Y:"div",G:"ytp-video-interstitial-buttoned-centered-layout",C:{tabindex:"0"},K:[{Y:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content",K:[{Y:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{Y:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",K:[{Y:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{Y:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {Y:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{Y:"div",G:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{Y:"div",G:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",R,J,l);this.S=null;this.N=this.Bq("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.B=new Tv;g.H(this,this.B);this.hide()}; D0C=function(O){var R=g.LI("html5-video-player");R&&g.wI(R,"ytp-ad-display-override",O)}; aft=function(O){if(!O.adAvatar||!g.x(O.adAvatar,jn))return g.WM(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!O.headline)return g.WM(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!O.adBadge||!g.x(O.adBadge,QB))return g.WM(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!O.adButton||!g.x(O.adButton,Ll))return g.WM(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!O.adInfoRenderer|| !g.x(O.adInfoRenderer,pw))return g.WM(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;O=O.durationMilliseconds||0;return typeof O!=="number"||O<=0?(g.WM(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+O)),!1):!0}; Y4=function(O,R){R=R===void 0?2:R;g.y8.call(this);this.api=O;this.L=null;this.Rj=new Tv(this);g.H(this,this.Rj);this.S=Or2;this.Rj.U(this.api,"presentingplayerstatechange",this.sF);this.L=this.Rj.U(this.api,"progresssync",this.v3);this.rh=R;this.rh===1&&this.v3()}; dW=function(O,R,J){Q8.call(this,O);this.api=O;this.zd=R;this.S={};O=new g.L({Y:"div",q1:["video-ads","ytp-ad-module"]});g.H(this,O);vv&&g.F8(O.element,"ytp-ads-tiny-mode");this.D=new SA(O.element);g.H(this,this.D);g.bR(this.api,O.element,4);uw(J)&&(J=new g.L({Y:"div",q1:["ytp-ad-underlay"]}),g.H(this,J),this.B=new SA(J.element),g.H(this,this.B),g.bR(this.api,J.element,0));g.H(this,Tjs())}; vWo=function(O,R){O=g.cR(O.S,R.id,null);O==null&&g.Aa(Error("Component not found for element id: "+R.id));return O||null}; XBC=function(O){g.tN.call(this,O);var R=this;this.S=null;this.created=!1;this.B=O.T().Z("h5_use_refactored_get_ad_break")?new tMp(this.player):new j4(this.player);this.N=function(){if(R.S!=null)return R.S;var l=new ml0({wh:ET(R.L).wh,LA:ET(R.L).LA,X:R.player,hh:ET(R.L).hh,yh:R.L.L.yh,Jh:ET(R.L).Jh,zR:R.L.L.zR});R.S=l.Fu;return R.S}; this.L=new b02(this.player,this,this.B,this.N);g.H(this,this.L);var J=O.T();!Tg(J)||g.Aj(J)||xX(J)||(g.H(this,new dW(O,ET(this.L).zd,ET(this.L).hh)),g.H(this,new WUB(O)))}; ThV=function(O){O.created!==O.loaded&&rK("Created and loaded are out of sync")}; q_M=function(O){g.tN.prototype.load.call(O);var R=ET(O.L).hh;try{O.player.getRootNode().classList.add("ad-created")}catch(w){rK(w instanceof Error?w:String(w))}var J=O.player.getVideoData(1),l=J&&J.videoId||"",u=J&&J.getPlayerResponse()||{},F=(!O.player.T().experiments.Vh("debug_ignore_ad_placements")&&u&&u.adPlacements||[]).map(function(w){return w.adPlacementRenderer}),G=((u==null?void 0:u.adSlots)||[]).map(function(w){return g.x(w,j7)}); u=u.playerConfig&&u.playerConfig.daiConfig&&u.playerConfig.daiConfig.enableDai||!1;J&&J.vy();F=$0_(F,G,R,ET(O.L).pz);G=J&&J.clientPlaybackNonce||"";J=J&&J.Tm||!1;if(Xs(R,!0)&&J){var y;R={};(y=O.player.getVideoData())==null||y.nJ("p_cpb",(R.cc=G,R))}y=1E3*O.player.getDuration(1);MTQ(O);O.L.L.Oh.Ec(G,y,J,F.wg,F.Jw,F.wg,u,l)}; MTQ=function(O){var R,J;if(J=(R=O.player.getVideoData(1))==null||!R.Tm)R=O.player.T(),J=Tg(R)&&!g.XV(R)&&R.playerStyle==="desktop-polymer";J&&(O=O.player.getInternalApi(),O.addEventListener("updateKevlarOrC3Companion",ues),O.addEventListener("updateEngagementPanelAction",FM_),O.addEventListener("changeEngagementPanelVisibility",G$A),window.addEventListener("yt-navigate-start",y2z))}; hp=function(O,R){R===O.hY&&(O.hY=void 0)}; kzV=function(O){var R=ET(O.L).wO,J=R.N().X$("SLOT_TYPE_PLAYER_BYTES",1);R=mw(R.rd.get(),1).clientPlaybackNonce;var l=!1;J=g.N(J);for(var u=J.next();!u.done;u=J.next()){u=u.value;var F=u.slotType==="SLOT_TYPE_PLAYER_BYTES"&&u.slotEntryTrigger instanceof Mr?u.slotEntryTrigger.ZL:void 0;F&&F===R&&(l&&rK("More than 1 preroll playerBytes slot detected",u),l=!0)}l||Kl(ET(O.L).KX)}; ssb=function(O){if(cC(ET(O.L).hh))return!0;var R="";O=g.N(ET(O.L).Jh.eA.keys());for(var J=O.next();!J.done;J=O.next()){J=J.value;if(J.slotType==="SLOT_TYPE_PLAYER_BYTES"&&J.kS==="core")return!0;R+=J.slotType+" "}Math.random()<.01&&rK("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:R});return!1}; bx4=function(O){O=g.N(ET(O.L).Jh.eA.values());for(var R=O.next();!R.done;R=O.next())if(R.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Xgp=function(O,R,J,l,u,F){J=J===void 0?[]:J;l=l===void 0?"":l;u=u===void 0?"":u;var G=ET(O.L).hh,y=O.player.getVideoData(1);y&&y.getPlayerResponse();y&&y.vy();J=$0_(R,J,G,ET(O.L).pz);kSA(ET(O.L).bj,l,J.wg,J.Jw,R,u,F)}; $0_=function(O,R,J,l){R={wg:[],Jw:R};O=g.N(O);for(var u=O.next();!u.done;u=O.next())if((u=u.value)&&u.renderer!=null){var F=u.renderer;if(!J.X.T().Z("html5_enable_vod_lasr_with_notify_pacf")){var G=void 0,y=void 0,w=void 0,I=void 0,C=l;g.x((I=F.sandwichedLinearAdRenderer)==null?void 0:I.adVideoStart,m9)?(G=g.x((w=F.sandwichedLinearAdRenderer)==null?void 0:w.adVideoStart,m9),G=hpH(G,C),g.HM(F.sandwichedLinearAdRenderer.adVideoStart,m9,G)):g.x((y=F.linearAdSequenceRenderer)==null?void 0:y.adStart,m9)&& (w=g.x((G=F.linearAdSequenceRenderer)==null?void 0:G.adStart,m9),G=hpH(w,C),g.HM(F.linearAdSequenceRenderer.adStart,m9,G))}R.wg.push(u)}return R}; g.zp=function(O){if(typeof DOMParser!="undefined")return CI(new DOMParser,$bB(O),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.nl=function(O){g.p.call(this);this.callback=O;this.L=new mA(0,0,.4,0,.2,1,1,1);this.delay=new g.YP(this.next,window,this);g.H(this,this.delay)}; g.WH4=function(O){var R=O.T();return R.Y9&&!R.B&&g.$X(R)?O.isEmbedsShortsMode()?(O=O.xV(),Math.min(O.width,O.height)>=315):!O.LW():!1}; g.cj=function(O){g.L.call(this,{Y:"div",G:"ytp-more-videos-view",C:{tabIndex:"-1"}});var R=this;this.api=O;this.S=!0;this.B=new g.p8(this);this.L=[];this.suggestionData=[];this.columns=this.containerWidth=this.V=this.N=this.scrollPosition=0;this.title=new g.L({Y:"h2",G:"ytp-related-title",FQ:"{{title}}"});this.previous=new g.L({Y:"button",q1:["ytp-button","ytp-previous"],C:{"aria-label":"Mostrar videos sugeridos anteriores"},K:[g.NI()]});this.J=new g.nl(function(J){R.suggestions.element.scrollLeft= -J}); this.next=new g.L({Y:"button",q1:["ytp-button","ytp-next"],C:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},K:[g.my()]});g.H(this,this.B);this.j=O.T().N;g.H(this,this.title);this.title.hR(this.element);this.suggestions=new g.L({Y:"div",G:"ytp-suggestions"});g.H(this,this.suggestions);this.suggestions.hR(this.element);g.H(this,this.previous);this.previous.hR(this.element);this.previous.listen("click",this.MG,this);g.H(this,this.J);As6(this);g.H(this,this.next);this.next.hR(this.element);this.next.listen("click", this.WZ,this);this.B.U(this.api,"appresize",this.tT);this.B.U(this.api,"fullscreentoggled",this.ut);this.B.U(this.api,"videodatachange",this.onVideoDataChange);this.tT(this.api.cq().getPlayerSize());this.onVideoDataChange()}; As6=function(O){for(var R={mW:0};R.mW<16;R={mW:R.mW},++R.mW){var J=new g.L({Y:"a",G:"ytp-suggestion-link",C:{href:"{{link}}",target:O.api.T().W,"aria-label":"{{aria_label}}"},K:[{Y:"div",G:"ytp-suggestion-image"},{Y:"div",G:"ytp-suggestion-overlay",C:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},K:[{Y:"div",G:"ytp-suggestion-title",FQ:"{{title}}"},{Y:"div",G:"ytp-suggestion-author",FQ:"{{author_and_views}}"},{Y:"div",C:{"data-is-live":"{{is_live}}"},G:"ytp-suggestion-duration", FQ:"{{duration}}"}]}]});g.H(O,J);var l=J.Bq("ytp-suggestion-link");g.pS(l,"transitionDelay",R.mW/20+"s");O.B.U(l,"click",function(u){return function(F){var G=u.mW;if(O.S){var y=O.suggestionData[G],w=y.sessionData;O.j&&O.api.Z("web_player_log_click_before_generating_ve_conversion_params")?(O.api.logClick(O.L[G].element),G=y.DQ(),y={},g.qB(O.api,y),G=g.s9(G,y),g.FU(G,O.api,F)):g.uY(F,O.api,O.j,w||void 0)&&O.api.HM(y.videoId,w,y.playlistId)}else F.preventDefault(),document.activeElement.blur()}}(R)); J.hR(O.suggestions.element);O.L.push(J);O.api.createServerVe(J.element,J)}}; eLk=function(O){if(O.api.T().Z("web_player_log_click_before_generating_ve_conversion_params"))for(var R=Math.floor(-O.scrollPosition/(O.N+8)),J=Math.min(R+O.columns,O.suggestionData.length)-1;R<=J;R++)O.api.logVisibility(O.L[R].element,!0)}; g.OV=function(O){var R=O.api.YW()?32:16;R=O.V/2+R;O.next.element.style.bottom=R+"px";O.previous.element.style.bottom=R+"px";R=O.scrollPosition;var J=O.containerWidth-O.suggestionData.length*(O.N+8);g.wI(O.element,"ytp-scroll-min",R>=0);g.wI(O.element,"ytp-scroll-max",R<=J)}; pBQ=function(O){for(var R=O.suggestionData.length,J=0;J>>0)+"_",u=0;return R}); wh("Symbol.iterator",function(O){if(O)return O;O=Symbol("Symbol.iterator");for(var R="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),J=0;J0&&J>0;)if(l[--J]!=R[--u])return!1;return u<=0}}); wh("Array.prototype.find",function(O){return O?O:function(R,J){return IfT(this,R,J).Wb}}); wh("Array.prototype.entries",function(O){return O?O:function(){return BB(this,function(R,J){return[R,J]})}}); wh("Array.prototype.keys",function(O){return O?O:function(){return BB(this,function(R){return R})}}); wh("String.prototype.startsWith",function(O){return O?O:function(R,J){var l=px(this,R,"startsWith");R+="";var u=l.length,F=R.length;J=Math.max(0,Math.min(J|0,l.length));for(var G=0;G=F}}); wh("Number.isFinite",function(O){return O?O:function(R){return typeof R!=="number"?!1:!isNaN(R)&&R!==Infinity&&R!==-Infinity}}); wh("String.prototype.repeat",function(O){return O?O:function(R){var J=px(this,null,"repeat");if(R<0||R>1342177279)throw new RangeError("Invalid count value");R|=0;for(var l="";R;)if(R&1&&(l+=J),R>>>=1)J+=J;return l}}); wh("Object.entries",function(O){return O?O:function(R){var J=[],l;for(l in R)rh(R,l)&&J.push([l,R[l]]);return J}}); wh("Array.from",function(O){return O?O:function(R,J,l){J=J!=null?J:function(y){return y}; var u=[],F=typeof Symbol!="undefined"&&Symbol.iterator&&R[Symbol.iterator];if(typeof F=="function"){R=F.call(R);for(var G=0;!(F=R.next()).done;)u.push(J.call(l,F.value,G++))}else for(F=R.length,G=0;G>>16&65535)*u+l*(J>>>16&65535)<<16>>>0)|0}}); wh("Math.trunc",function(O){return O?O:function(R){R=Number(R);if(isNaN(R)||R===Infinity||R===-Infinity||R===0)return R;var J=Math.floor(Math.abs(R));return R<0?-J:J}}); wh("Math.clz32",function(O){return O?O:function(R){R=Number(R)>>>0;if(R===0)return 32;var J=0;(R&4294901760)===0&&(R<<=16,J+=16);(R&4278190080)===0&&(R<<=8,J+=8);(R&4026531840)===0&&(R<<=4,J+=4);(R&3221225472)===0&&(R<<=2,J+=2);(R&2147483648)===0&&J++;return J}}); wh("Number.isNaN",function(O){return O?O:function(R){return typeof R==="number"&&isNaN(R)}}); wh("Array.prototype.values",function(O){return O?O:function(){return BB(this,function(R,J){return J})}}); wh("Array.prototype.fill",function(O){return O?O:function(R,J,l){var u=this.length||0;J<0&&(J=Math.max(0,u+J));if(l==null||l>u)l=u;l=Number(l);l<0&&(l=Math.max(0,u+l));for(J=Number(J||0);J0&&J?J.repeat(Math.ceil(R/J.length)).substring(0,R):"")+l}}); wh("Array.prototype.findIndex",function(O){return O?O:function(R,J){return IfT(this,R,J).Un}}); wh("Promise.prototype.finally",function(O){return O?O:function(R){return this.then(function(J){return Promise.resolve(R()).then(function(){return J})},function(J){return Promise.resolve(R()).then(function(){throw J; })})}}); wh("Math.sign",function(O){return O?O:function(R){R=Number(R);return R===0||isNaN(R)?R:R>0?1:-1}}); wh("WeakSet",function(O){function R(J){this.L=new WeakMap;if(J){J=g.N(J);for(var l;!(l=J.next()).done;)this.add(l.value)}} if(function(){if(!O||!Object.seal)return!1;try{var J=Object.seal({}),l=Object.seal({}),u=new O([J]);if(!u.has(J)||u.has(l))return!1;u.delete(J);u.add(l);return!u.has(J)&&u.has(l)}catch(F){return!1}}())return O; R.prototype.add=function(J){this.L.set(J,!0);return this}; R.prototype.has=function(J){return this.L.has(J)}; R.prototype.delete=function(J){return this.L.delete(J)}; return R}); wh("Array.prototype.copyWithin",function(O){function R(J){J=Number(J);return J===Infinity||J===-Infinity?J:J|0} return O?O:function(J,l,u){var F=this.length;J=R(J);l=R(l);u=u===void 0?F:R(u);J=J<0?Math.max(F+J,0):Math.min(J,F);l=l<0?Math.max(F+l,0):Math.min(l,F);u=u<0?Math.max(F+u,0):Math.min(u,F);if(Jl;)--u in this?this[--J]=this[u]:delete this[--J];return this}}); wh("Int8Array.prototype.copyWithin",U_);wh("Uint8Array.prototype.copyWithin",U_);wh("Uint8ClampedArray.prototype.copyWithin",U_);wh("Int16Array.prototype.copyWithin",U_);wh("Uint16Array.prototype.copyWithin",U_);wh("Int32Array.prototype.copyWithin",U_);wh("Uint32Array.prototype.copyWithin",U_);wh("Float32Array.prototype.copyWithin",U_);wh("Float64Array.prototype.copyWithin",U_);wh("Array.prototype.at",function(O){return O?O:jT}); wh("Int8Array.prototype.at",QA);wh("Uint8Array.prototype.at",QA);wh("Uint8ClampedArray.prototype.at",QA);wh("Int16Array.prototype.at",QA);wh("Uint16Array.prototype.at",QA);wh("Int32Array.prototype.at",QA);wh("Uint32Array.prototype.at",QA);wh("Float32Array.prototype.at",QA);wh("Float64Array.prototype.at",QA);wh("String.prototype.at",function(O){return O?O:jT}); wh("Array.prototype.findLastIndex",function(O){return O?O:function(R,J){return C2f(this,R,J).Un}}); wh("Int8Array.prototype.findLastIndex",Lx);wh("Uint8Array.prototype.findLastIndex",Lx);wh("Uint8ClampedArray.prototype.findLastIndex",Lx);wh("Int16Array.prototype.findLastIndex",Lx);wh("Uint16Array.prototype.findLastIndex",Lx);wh("Int32Array.prototype.findLastIndex",Lx);wh("Uint32Array.prototype.findLastIndex",Lx);wh("Float32Array.prototype.findLastIndex",Lx);wh("Float64Array.prototype.findLastIndex",Lx);wh("Number.parseInt",function(O){return O||parseInt});var d1,JV,rs_;d1=d1||{};g.YW=this||self;JV="closure_uid_"+(Math.random()*1E9>>>0);rs_=0;g.y6(wC,Error);wC.prototype.name="CustomError";var btH;var D0h,Lu,RT;D0h=Array.prototype.indexOf?function(O,R){return Array.prototype.indexOf.call(O,R,void 0)}:function(O,R){if(typeof O==="string")return typeof R!=="string"||R.length!=1?-1:O.indexOf(R,0); for(var J=0;J=0;J--)if(J in O&&O[J]===R)return J;return-1}; g.e6=Array.prototype.forEach?function(O,R,J){Array.prototype.forEach.call(O,R,J)}:function(O,R,J){for(var l=O.length,u=typeof O==="string"?O.split(""):O,F=0;F=.3:this.x8>=.5};var rY={Vt1:0,DMd:1},kf_={NONE:0,i$X:1,G_d:2};var P2x="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");ie.prototype.getValue=function(){return this.S}; g.S(le,ie);le.prototype.B=function(O){this.S===null&&g.hV(this.N,O)&&(this.S=O)}; g.S(ue,ie);ue.prototype.B=function(O){this.S===null&&typeof O==="number"&&(this.S=O)}; g.S(FK,ie);FK.prototype.B=function(O){this.S===null&&typeof O==="string"&&(this.S=O)};Kz.prototype.disable=function(){this.S=!1}; Kz.prototype.enable=function(){this.S=!0}; Kz.prototype.isEnabled=function(){return this.S}; Kz.prototype.reset=function(){this.L={};this.S=!0;this.B={}};var gd=document,Io=window;var Y_C=nx(1,!0),vl=nx(610401301,!1);nx(899588437,!1);nx(725719775,!1);var d0_=nx(513659523,!1),hLR=nx(568333945,!1),vms=nx(1331761403,!1);nx(651175828,!1);nx(722764542,!1);nx(748402145,!1);var QLs=nx(1981196515,!1);nx(2147483644,!1);nx(2147483645,!1);nx(2147483646,Y_C);nx(2147483647,!0);var XK=!!g.hs("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var SL=String.prototype.trim?function(O){return O.trim()}:function(O){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(O)[1]},K4s=/&/g,yVx=//g,Ioz=/"/g,CQs=/'/g,rV_=/\x00/g,G_h=/[\x00&<>"']/;var TM,zLR=g.YW.navigator;TM=zLR?zLR.userAgentData||null:null;var zLB=globalThis.trustedTypes,eL;pz.prototype.toString=function(){return this.L+""};xb.prototype.toString=function(){return this.L}; var Ot0=new xb("about:invalid#zClosurez");var Hls=QL("tel"),pjB=QL("sms"),csh=[QL("data"),QL("http"),QL("https"),QL("mailto"),QL("ftp"),new jL(function(O){return/^[^:]*([/?#]|$)/.test(O)})],RIL=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;nz.prototype.toString=function(){return this.L+""};iL.prototype.toString=function(){return this.L+""};KI.prototype.toString=function(){return this.L};var w7={};g.nWM=String.prototype.repeat?function(O,R){return O.repeat(R)}:function(O,R){return Array(R+1).join(O)};a4[" "]=function(){};var Bw,Jy,HWx,csC,Ots,RII,aZ,vv,JVC;g.Xd=kb();g.t3=jsB();g.dj=Mn("Edge");g.OE=g.dj||g.t3;Bw=Mn("Gecko")&&!(fz(g.aW(),"WebKit")&&!Mn("Edge"))&&!(Mn("Trident")||Mn("MSIE"))&&!Mn("Edge");g.d7=fz(g.aW(),"WebKit")&&!Mn("Edge");Jy=DR();HWx=SCT();g.O$=fos();csC=m8();Ots=Mn("iPad");RII=Mn("iPod");aZ=Eo();vv=fz(g.aW(),"KaiOS"); a:{var gMQ="",itQ=function(){var O=g.aW();if(Bw)return/rv:([^\);]+)(\)|;)/.exec(O);if(g.dj)return/Edge\/([\d\.]+)/.exec(O);if(g.t3)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(O);if(g.d7)return/WebKit\/(\S+)/.exec(O);if(g.Xd)return/(?:Version)[ \/]?(\S+)/.exec(O)}(); itQ&&(gMQ=itQ?itQ[1]:"");if(g.t3){var Rp,lo6=g.YW.document;Rp=lo6?lo6.documentMode:void 0;if(Rp!=null&&Rp>parseFloat(gMQ)){JVC=String(Rp);break a}}JVC=gMQ}var DsA=JVC,msB={};var z3,n_;g.du=s5();z3=m8()||Mn("iPod");n_=Mn("iPad");g.Tj=LHh();g.Wd=Wl();g.N$=Ax()&&!Eo();var bOs=!g.t3&&!Ax();g.f=g.qc.prototype;g.f.clone=function(){return new g.qc(this.x,this.y)}; g.f.equals=function(O){return O instanceof g.qc&&kC(this,O)}; g.f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.f.translate=function(O,R){O instanceof g.qc?(this.x+=O.x,this.y+=O.y):(this.x+=Number(O),typeof R==="number"&&(this.y+=R));return this}; g.f.scale=function(O,R){this.x*=O;this.y*=typeof R==="number"?R:O;return this};g.f=g.so.prototype;g.f.clone=function(){return new g.so(this.width,this.height)}; g.f.aspectRatio=function(){return this.width/this.height}; g.f.isEmpty=function(){return!WE(this)}; g.f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.f.scale=function(O,R){this.width*=O;this.height*=typeof R==="number"?R:O;return this};e0.prototype.toString=function(){return this.L}; var Ag={};new e0(Ag,"");var XRH=/^[a-z][a-z\d-]*$/i,TCh="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),M6T="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),k_s=["action","formaction","href"];var W4T={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.f=pI.prototype;g.f.u5=function(O){return xC(this.L,O)}; g.f.getElementsByTagName=function(O,R){return(R||this.L).getElementsByTagName(String(O))}; g.f.Bq=function(O){return g.LI(O,this.L)}; g.f.setProperties=YC;g.f.createElement=function(O){return zY(this.L,O)}; g.f.appendChild=g.Ro;g.f.append=function(O,R){pRx(BE(O),O,arguments,1)}; g.f.canHaveChildren=function(O){if(O.nodeType!=1)return!1;switch(O.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.f.removeNode=g.iu;g.f.getChildren=function(O){return O.children!=void 0?O.children:Array.prototype.filter.call(O.childNodes,function(R){return R.nodeType==1})}; g.f.contains=g.lu;Ku.prototype.now=function(){return 0}; Ku.prototype.S=function(){return 0}; Ku.prototype.B=function(){return 0}; Ku.prototype.L=function(){return 0};g.S(wv,Ku);wv.prototype.now=function(){return yX()&&Io.performance.now?Io.performance.now():Ku.prototype.now.call(this)}; wv.prototype.S=function(){return yX()&&Io.performance.memory?Io.performance.memory.totalJSHeapSize||0:Ku.prototype.S.call(this)}; wv.prototype.B=function(){return yX()&&Io.performance.memory?Io.performance.memory.usedJSHeapSize||0:Ku.prototype.B.call(this)}; wv.prototype.L=function(){return yX()&&Io.performance.memory?Io.performance.memory.jsHeapSizeLimit||0:Ku.prototype.L.call(this)};var jbW=th(function(){var O=!1;try{var R=Object.defineProperty({},"passive",{get:function(){O=!0}}); g.YW.addEventListener("test",null,R)}catch(J){}return O});Qb_.prototype.isVisible=function(){return SO(gd)===1};var OIA=NA(function(O){return typeof O==="number"}),cxL=NA(function(O){return typeof O==="string"}),Rep=NA(function(O){return typeof O==="boolean"}),oY=NA(function(O){return O!=null&&typeof O==="object"&&typeof O.then==="function"}),tU=NA(function(O){return!!O&&(typeof O==="object"||typeof O==="function")});var sTz=function(){if(!g.YW.addEventListener||!Object.defineProperty)return!1;var O=!1,R=Object.defineProperty({},"passive",{get:function(){O=!0}}); try{var J=function(){}; g.YW.addEventListener("test",J,R);g.YW.removeEventListener("test",J,R)}catch(l){}return O}();var ypz=YC_("AnimationEnd"),wp=YC_("TransitionEnd");var hI2=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),gbT=/#|$/,izH=/[?&]($|#)/;var uKs={xUh:"allow-forms",yjh:"allow-modals",IRg:"allow-orientation-lock",DUR:"allow-pointer-lock",rjh:"allow-popups",ZDU:"allow-popups-to-escape-sandbox",dUd:"allow-presentation",JjS:"allow-same-origin",aRX:"allow-scripts",EqQ:"allow-top-navigation",GES:"allow-top-navigation-by-user-activation"},yxp=th(function(){return F2B()});var rxW=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");BQ.prototype.Y8=function(O,R,J){O=O+"//"+R+J;var l=VLL(this)-J.length;if(l<0)return"";this.L.sort(function(I,C){return I-C}); J=null;R="";for(var u=0;u=w.length){l-=w.length;O+=w;R=this.B;break}J=J==null?F:J}}l="";J!=null&&(l=""+R+"trn="+J);return O+l};dv.prototype.setInterval=function(O,R){return Io.setInterval(O,R)}; dv.prototype.clearInterval=function(O){Io.clearInterval(O)}; dv.prototype.setTimeout=function(O,R){return Io.setTimeout(O,R)}; dv.prototype.clearTimeout=function(O){Io.clearTimeout(O)};var ZU=void 0,oi,hes=typeof TextDecoder!=="undefined",$nz,TYs=typeof String.prototype.isWellFormed==="function",Xl_=typeof TextEncoder!=="undefined";var bzx={},i$=null,W2_=Bw||g.d7||typeof g.YW.btoa=="function";var QWL=typeof Uint8Array!=="undefined",BY0=!g.t3&&typeof btoa==="function",Hzs=/[-_.]/g,PeL={"-":"+",_:"/",".":"="},u$={};l$.prototype.isEmpty=function(){return this.L==null}; l$.prototype.sizeBytes=function(){var O=Gc(this);return O?O.length:0}; var jWH;var L2L=void 0;var IK=typeof Symbol==="function"&&typeof Symbol()==="symbol",ukk=wX("jas",void 0,!0),eS=wX(void 0,"1oa"),RD=wX(void 0,Symbol()),F4_=wX(void 0,"0ub"),M0f=wX(void 0,"0actk"),n6=wX("m_m","PLd",!0),Dcf=wX(void 0,"vps");Math.max.apply(Math,g.X(Object.values({GV1:1,EVd:2,aOg:4,DPg:8,qkd:16,qaN:32,meN:64,PVQ:128,JKh:256,PZQ:512,E7u:1024,s1d:2048,cKU:4096,Qtd:8192})));var hQ2={hU1:{value:0,configurable:!0,writable:!0,enumerable:!1}},dnH=Object.defineProperties,C6=IK?ukk:"hU1",Ej,G_C=[];t8(G_C,7);Ej=Object.freeze(G_C);var c2={},Zp={},Ags=Object.freeze({}),Sw={};var Ea=typeof g.YW.BigInt==="function"&&typeof g.YW.BigInt(0)==="bigint";var Fc=NA(function(O){return Ea?O>=K4V&&O<=yVt:O[0]==="-"?Jg_(O,wRI):Jg_(O,Io_)}),wRI=Number.MIN_SAFE_INTEGER.toString(),K4V=Ea?BigInt(Number.MIN_SAFE_INTEGER):void 0,Io_=Number.MAX_SAFE_INTEGER.toString(),yVt=Ea?BigInt(Number.MAX_SAFE_INTEGER):void 0;var j4B=typeof Uint8Array.prototype.slice==="function",aK=0,v2=0,S9z;var xK=typeof BigInt==="function"?BigInt.asIntN:void 0,ZIB=typeof BigInt==="function"?BigInt.asUintN:void 0,L6=Number.isSafeInteger,A8=Number.isFinite,YK=Math.trunc,F8T=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var aRH={};var l6;var ym,vCH;var PLh=Dp(0);g.f=xcz.prototype;g.f.init=function(O,R,J,l){var u=l===void 0?{}:l;l=u.mq===void 0?!1:u.mq;u=u.Gs===void 0?!1:u.Gs;this.mq=l;this.Gs=u;O&&(O=Jc(O,this.Gs),this.S=O.buffer,this.D=O.jc,this.N=R||0,this.B=J!==void 0?this.N+J:this.S.length,this.L=this.N)}; g.f.free=function(){this.clear();wb.length<100&&wb.push(this)}; g.f.clear=function(){this.S=null;this.D=!1;this.L=this.B=this.N=0;this.mq=!1}; g.f.reset=function(){this.L=this.N}; g.f.SZ=function(){var O=this.j;O||(O=this.S,O=this.j=new DataView(O.buffer,O.byteOffset,O.byteLength));return O}; var wb=[];Ii.prototype.free=function(){this.L.clear();this.S=this.N=-1;Cf.length<100&&Cf.push(this)}; Ii.prototype.reset=function(){this.L.reset();this.B=this.L.L;this.S=this.N=-1}; var Cf=[];ff.prototype.toJSON=function(){return KO(this)}; ff.prototype.SQ=function(O){return JSON.stringify(KO(this,O))}; ff.prototype.clone=function(){var O=this,R=O.L1;O=new O.constructor(u6(R,R[C6]|0,r4,!0,!0));oK(O.L1);return O}; ff.prototype.jc=function(){return Vy(this)}; ff.prototype[n6]=c2;ff.prototype.toString=function(){return this.L1.toString()};var cgp,RiT;m$.prototype.length=function(){return this.L.length}; m$.prototype.end=function(){var O=this.L;this.L=[];return O};var qV=MV(),CQb=MV(),rVC=MV(),t6b=MV(),oMk=MV(),ZtR=MV(),V6C=MV(),foV=MV();var yhs=sQ(function(O,R,J,l,u){if(O.S!==2)return!1;tc(O,PS(R,l,J),u);return!0},KIf),wQh=sQ(function(O,R,J,l,u){if(O.S!==2)return!1; tc(O,PS(R,l,J),u);return!0},KIf),UQ=Symbol(),PZ=Symbol(),HZ=Symbol(),Zux=Symbol(),rhL=Symbol(),bf,WZ;var SC6=Y_(function(O,R,J){if(O.S!==1)return!1;cZ(R,J,Kf(O.L));return!0},Ou,V6C),NCt=Y_(function(O,R,J){if(O.S!==1)return!1; O=Kf(O.L);cZ(R,J,O===0?void 0:O);return!0},Ou,V6C),msR=Y_(function(O,R,J,l){if(O.S!==1)return!1; WS(R,J,l,Kf(O.L));return!0},Ou,V6C),EMI=Y_(function(O,R,J){if(O.S!==0)return!1; cZ(R,J,lf(O.L));return!0},Rr,oMk),Ds6=Y_(function(O,R,J){if(O.S!==0)return!1; O=lf(O.L);cZ(R,J,O===0?void 0:O);return!0},Rr,oMk),ao6=Y_(function(O,R,J,l){if(O.S!==0)return!1; WS(R,J,l,lf(O.L));return!0},Rr,oMk),vM4=Y_(function(O,R,J){if(O.S!==0)return!1; cZ(R,J,uf(O.L));return!0},JH,t6b),XR4=Y_(function(O,R,J){if(O.S!==0)return!1; O=uf(O.L);cZ(R,J,O===0?void 0:O);return!0},JH,t6b),TCC=Y_(function(O,R,J,l){if(O.S!==0)return!1; WS(R,J,l,uf(O.L));return!0},JH,t6b),$sb=Y_(function(O,R,J){if(O.S!==1)return!1; cZ(R,J,GL(O.L));return!0},function(O,R,J){FIf(O,J,V0T(R))},ZtR),M66=nf(function(O,R,J){if(O.S!==1&&O.S!==2)return!1; R=MR(R,R[C6]|0,J);if(O.S==2)for(J=uf(O.L)>>>0,J=O.L.L+J;O.L.L>>0);return!0},function(O,R,J){R=B2(R); R!=null&&R!=null&&(TL(O,J,0),ai(O.L,R))},MV()),eIt=Y_(function(O,R,J){if(O.S!==0)return!1; cZ(R,J,uf(O.L));return!0},function(O,R,J){R=p6(R); R!=null&&(R=parseInt(R,10),TL(O,J,0),gix(O.L,R))},MV());auT.prototype.register=function(){a4(this)};g.S(lv,ff);lv.prototype.S=vih([0,NCt,Ds6,-2,XR4]);var soz={c4N:1,E2:2,uBR:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};WIL.prototype.Be=function(O){if(typeof O==="string"&&O.length!=0){var R=this.pG;if(R.S){O=O.split("&");for(var J=O.length-1;J>=0;J--){var l=O[J].split("="),u=decodeURIComponent(l[0]);l.length>1?(l=decodeURIComponent(l[1]),l=/^[0-9]+$/g.exec(l)?parseInt(l,10):l):l=1;(u=R.L[u])&&u.B(l)}}}};var FF=null;var Ir=g.YW.performance,PQC=!!(Ir&&Ir.mark&&Ir.measure&&Ir.clearMarks),yH=th(function(){var O;if(O=PQC){var R=R===void 0?window:R;if(FF===null){FF="";try{O="";try{O=R.top.location.hash}catch(l){O=R.location.hash}if(O){var J=O.match(/\bdeid=([\d,]+)/);FF=J?J[1]:""}}catch(l){}}R=FF;O=!!R.indexOf&&R.indexOf("1337")>=0}return O}); wN.prototype.disable=function(){this.L=!1;this.events!==this.S.google_js_reporting_queue&&(yH()&&g.e6(this.events,Huz),this.events.length=0)}; wN.prototype.start=function(O,R){if(!this.L)return null;var J=pQA()||Pus();O=new Bvx(O,R,J);R="goog_"+O.label+"_"+O.uniqueId+"_start";Ir&&yH()&&Ir.mark(R);return O}; wN.prototype.end=function(O){if(this.L&&typeof O.value==="number"){var R=pQA()||Pus();O.duration=R-O.value;R="goog_"+O.label+"_"+O.uniqueId+"_end";Ir&&yH()&&Ir.mark(R);!this.L||this.events.length>2048||this.events.push(O)}};xAs.prototype.US=function(O,R,J,l,u){u=u||this.l4;try{var F=new BQ;F.L.push(1);F.S[1]=HQ("context",O);R.error&&R.meta&&R.id||(R=new or(Z1(R)));if(R.msg){var G=R.msg.substring(0,512);F.L.push(2);F.S[2]=HQ("msg",G)}var y=R.meta||{};if(this.wp)try{this.wp(y)}catch(Z){}if(l)try{l(y)}catch(Z){}l=[y];F.L.push(3);F.S[3]=l;var w=ob2();if(w.S){var I=w.S.url||"";F.L.push(4);F.S[4]=HQ("top",I)}var C={url:w.L.url||""};if(w.L.url){var r=g.ao(w.L.url);var t=Du(r[1],null,r[3],r[4])}else t="";I=[C,{url:t}];F.L.push(5); F.S[5]=I;AhA(this.L,u,F,J)}catch(Z){try{AhA(this.L,u,{context:"ecmserr",rctx:O,msg:Z1(Z),url:w&&w.L.url},J)}catch(V){}}return this.qw}; g.S(or,eix);var rN,tH,CS=new wN;rN=new function(){var O="https:";Io&&Io.location&&Io.location.protocol==="http:"&&(O="http:");this.S=O;this.L=.01}; tH=new xAs;Io&&Io.document&&(Io.document.readyState=="complete"?jos():CS.L&&fu(Io,"load",function(){jos()}));var Y9H=Date.now(),ar=-1,Eu=-1,K$A,vw=-1,D1=!1;g.f=XE.prototype;g.f.getHeight=function(){return this.bottom-this.top}; g.f.clone=function(){return new XE(this.top,this.right,this.bottom,this.left)}; g.f.contains=function(O){return this&&O?O instanceof XE?O.left>=this.left&&O.right<=this.right&&O.top>=this.top&&O.bottom<=this.bottom:O.x>=this.left&&O.x<=this.right&&O.y>=this.top&&O.y<=this.bottom:!1}; g.f.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.f.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.f.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.f.translate=function(O,R){O instanceof g.qc?(this.left+=O.x,this.right+=O.x,this.top+=O.y,this.bottom+=O.y):(this.left+=O,this.right+=O,typeof R==="number"&&(this.top+=R,this.bottom+=R));return this}; g.f.scale=function(O,R){R=typeof R==="number"?R:O;this.left*=O;this.right*=O;this.top*=R;this.bottom*=R;return this};MQ.prototype.equals=function(O,R){return!!O&&(!(R===void 0?0:R)||this.volume==O.volume)&&this.B==O.B&&$F(this.L,O.L)&&!0};qQ.prototype.u5=function(){return this.J}; qQ.prototype.equals=function(O,R){return this.N.equals(O.N,R===void 0?!1:R)&&this.J==O.J&&$F(this.B,O.B)&&$F(this.j,O.j)&&this.L==O.L&&this.D==O.D&&this.S==O.S&&this.V==O.V};var pRt={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},R_={Dq:"start",K4:"firstquartile",Bk:"midpoint",rE:"thirdquartile",COMPLETE:"complete",ERROR:"error",O2:"metric",PAUSE:"pause",jL:"resume",xG:"skip",aS:"viewable_impression",h9:"mute",dE:"unmute",C4:"fullscreen",Tk:"exitfullscreen",Gk:"bufferstart",EF:"bufferfinish",PZ:"fully_viewable_audible_half_duration_impression",wE:"measurable_impression",vZ:"abandon",Az:"engagedview",cZ:"impression",zk:"creativeview",eL:"loaded", odq:"progress",CLOSE:"close",Ueh:"collapse",EdR:"overlay_resize",GbR:"overlay_unmeasurable_impression",UPq:"overlay_unviewable_impression",mPS:"overlay_viewable_immediate_impression",kbJ:"overlay_viewable_end_of_session_impression",lW:"custom_metric_viewable",rZ:"audio_audible",dZ:"audio_measurable",Zo:"audio_impression"},Su2="start firstquartile midpoint thirdquartile resume loaded".split(" "),NN_=["start","firstquartile","midpoint","thirdquartile"],wZs=["abandon"],mQ={UNKNOWN:-1,Dq:0,K4:1,Bk:2, rE:3,COMPLETE:4,O2:5,PAUSE:6,jL:7,xG:8,aS:9,h9:10,dE:11,C4:12,Tk:13,PZ:14,wE:15,vZ:16,Az:17,cZ:18,zk:19,eL:20,lW:21,Gk:22,EF:23,Zo:27,dZ:28,rZ:29};var hih={iDX:"addEventListener",k_R:"getMaxSize",mMR:"getScreenSize",zZh:"getState",lHQ:"getVersion",eTQ:"removeEventListener",Uxh:"isViewable"};g.f=g.bv.prototype;g.f.clone=function(){return new g.bv(this.left,this.top,this.width,this.height)}; g.f.contains=function(O){return O instanceof g.qc?O.x>=this.left&&O.x<=this.left+this.width&&O.y>=this.top&&O.y<=this.top+this.height:this.left<=O.left&&this.left+this.width>=O.left+O.width&&this.top<=O.top&&this.top+this.height>=O.top+O.height}; g.f.getSize=function(){return new g.so(this.width,this.height)}; g.f.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.f.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.f.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.f.translate=function(O,R){O instanceof g.qc?(this.left+=O.x,this.top+=O.y):(this.left+=O,typeof R==="number"&&(this.top+=R));return this}; g.f.scale=function(O,R){R=typeof R==="number"?R:O;this.left*=O;this.width*=O;this.top*=R;this.height*=R;return this};var O62={};Kzs.prototype.update=function(O){O&&O.document&&(this.J=kF(!1,O,this.isMobileDevice),this.L=kF(!0,O,this.isMobileDevice),w2W(this,O),y8_(this,O))};lF.prototype.cancel=function(){hh().clearTimeout(this.L);this.L=null}; lF.prototype.schedule=function(){var O=this,R=hh(),J=GX().L.L;this.L=R.setTimeout(FE(J,fS(143,function(){O.S++;O.B.sample()})),dAp())};g.f=uF.prototype;g.f.II=function(){return!1}; g.f.initialize=function(){return this.isInitialized=!0}; g.f.p9=function(){return this.L.N1}; g.f.zY=function(){return this.L.SN}; g.f.CD=function(O,R){if(!this.SN||(R===void 0?0:R))this.SN=!0,this.N1=O,this.V=0,this.L!=this||Gi(this)}; g.f.getName=function(){return this.L.Iu}; g.f.tY=function(){return this.L.bx()}; g.f.bx=function(){return{}}; g.f.Ld=function(){return this.L.V}; g.f.Nn=function(){var O=Ji();O.L=kF(!0,this.B,O.isMobileDevice)}; g.f.YX=function(){y8_(Ji(),this.B)}; g.f.Db=function(){return this.N.L}; g.f.sample=function(){}; g.f.isActive=function(){return this.L.j}; g.f.rr=function(O){var R=this.L;this.L=O.Ld()>=this.V?O:this;R!==this.L?(this.j=this.L.j,Gi(this)):this.j!==this.L.j&&(this.j=this.L.j,Gi(this))}; g.f.Ht=function(O){if(O.S===this.L){var R=!this.N.equals(O,this.W);this.N=O;R&&r8x(this)}}; g.f.R7=function(){return this.W}; g.f.dispose=function(){this.iz=!0}; g.f.jN=function(){return this.iz};g.f=KD.prototype;g.f.observe=function(){return!0}; g.f.unobserve=function(){}; g.f.Em=function(O){this.D=O}; g.f.dispose=function(){if(!this.jN()){var O=this.S;g.ft(O.D,this);O.W&&this.R7()&&C$_(O);this.unobserve();this.OQ=!0}}; g.f.jN=function(){return this.OQ}; g.f.tY=function(){return this.S.tY()}; g.f.Ld=function(){return this.S.Ld()}; g.f.p9=function(){return this.S.p9()}; g.f.zY=function(){return this.S.zY()}; g.f.rr=function(){}; g.f.Ht=function(){this.Xy()}; g.f.R7=function(){return this.iz};g.f=y$.prototype;g.f.Ld=function(){return this.L.Ld()}; g.f.p9=function(){return this.L.p9()}; g.f.zY=function(){return this.L.zY()}; g.f.create=function(O,R,J){var l=null;this.L&&(l=this.Or(O,R,J),FO(this.L,l));return l}; g.f.qn=function(){return this.DK()}; g.f.DK=function(){return!1}; g.f.init=function(O){return this.L.initialize()?(FO(this.L,this),this.N=O,!0):!1}; g.f.rr=function(O){O.Ld()==0&&this.N(O.p9(),this)}; g.f.Ht=function(){}; g.f.R7=function(){return!1}; g.f.dispose=function(){this.D=!0}; g.f.jN=function(){return this.D}; g.f.tY=function(){return{}};wd.prototype.add=function(O,R,J){++this.B;O=new oK0(O,R,J);this.L.push(new oK0(O.S,O.L,O.B+this.B/4096));this.S=!0;return this};NXp.prototype.toString=function(){var O="//pagead2.googlesyndication.com//pagead/gen_204",R=CD(this.L);R.length>0&&(O+="?"+R);return O};g.p.prototype.jA=!1;g.p.prototype.jN=function(){return this.jA}; g.p.prototype.dispose=function(){this.jA||(this.jA=!0,this.eN())}; g.p.prototype[Symbol.dispose]=function(){this.dispose()}; g.p.prototype.addOnDisposeCallback=function(O,R){this.jA?R!==void 0?O.call(R):O():(this.cM||(this.cM=[]),R&&(O=O.bind(R)),this.cM.push(O))}; g.p.prototype.eN=function(){if(this.cM)for(;this.cM.length;)this.cM.shift()()};oT.prototype.update=function(O,R,J){O&&(this.L+=R,this.S+=R,this.N+=R,this.B=Math.max(this.B,this.N));if(J===void 0?!O:J)this.N=0};var DRB=[1,.75,.5,.3,0];ZK.prototype.update=function(O,R,J,l,u,F){F=F===void 0?!0:F;R=u?Math.min(O,R):R;for(u=0;u0&&R>=G;G=!(O>0&&O>=G)||J;this.L[u].update(F&&y,l,!F||G)}};E1.prototype.update=function(O,R,J,l){this.J=this.J!=-1?Math.min(this.J,R.x8):R.x8;this.Hq=Math.max(this.Hq,R.x8);this.OQ=this.OQ!=-1?Math.min(this.OQ,R.AK):R.AK;this.N1=Math.max(this.N1,R.AK);this.sQ.update(R.AK,J.AK,R.L,O,l);this.Qh+=O;R.x8===0&&(this.Iu+=O);this.S.update(R.x8,J.x8,R.L,O,l);J=l||J.xp!=R.xp?J.isVisible()&&R.isVisible():J.isVisible();R=!R.isVisible()||R.L;this.Gd.update(J,O,R)}; E1.prototype.hP=function(){return this.Gd.B>=this.KJ};if(gd&&gd.URL){var BCo=gd.URL,Ht6;if(Ht6=!!BCo){var xsk;a:{if(BCo){var Us4=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var G5=Us4.exec(decodeURIComponent(BCo));if(G5){xsk=G5[1]&&G5[1].length>1?G5[1].substring(1):"true";break a}}catch(O){}}xsk=""}Ht6=xsk.length>0}tH.qw=!Ht6};var jbM=new XE(0,0,0,0);var kUs=new XE(0,0,0,0);g.S(Ti,g.p);g.f=Ti.prototype; g.f.eN=function(){if(this.bV.L){if(this.V4.P5){var O=this.bV.L;O.removeEventListener&&O.removeEventListener("mouseover",this.V4.P5,VX());this.V4.P5=null}this.V4.Cq&&(O=this.bV.L,O.removeEventListener&&O.removeEventListener("mouseout",this.V4.Cq,VX()),this.V4.Cq=null)}this.YE&&this.YE.dispose();this.rO&&this.rO.dispose();delete this.uD;delete this.mx;delete this.WU;delete this.bV.Iy;delete this.bV.L;delete this.V4;delete this.YE;delete this.rO;delete this.pG;g.p.prototype.eN.call(this)}; g.f.PT=function(){return this.rO?this.rO.L:this.position}; g.f.Be=function(O){GX().Be(O)}; g.f.R7=function(){return!1}; g.f.nQ=function(){return new E1}; g.f.y0=function(){return this.uD}; g.f.po=function(O){return Arz(this,O,1E4)}; g.f.au=function(O,R,J,l,u,F,G){this.uA||(this.Pz&&(O=this.X1(O,J,u,G),l=l&&this.iS.x8>=(this.xp()?.3:.5),this.W6(F,O,l),this.I4=R,O.x8>0&&-1===this.je&&(this.je=R),this.rj==-1&&this.hP()&&(this.rj=R),this.aA==-2&&(this.aA=vq(this.PT())?O.x8:-1),this.iS=O),this.mx(this))}; g.f.W6=function(O,R,J){this.y0().update(O,R,this.iS,J)}; g.f.Br=function(){return new pt}; g.f.X1=function(O,R,J,l){J=this.Br();J.L=R;R=hh().S;R=SO(gd)===0?-1:R.isVisible()?0:1;J.S=R;J.x8=this.Ka(O);J.xp=this.xp();J.AK=l;return J}; g.f.Ka=function(O){return this.opacity===0&&IW(this.pG,"opac")===1?0:O}; g.f.xp=function(){return!1}; g.f.Nk=function(){return this.vSJ||this.yRg}; g.f.Rr=function(){NQ()}; g.f.yq=function(){NQ()}; g.f.w1=function(){return 0}; g.f.hP=function(){return this.uD.hP()}; g.f.JN=function(){var O=this.Pz;O=(this.hasCompleted||this.jN())&&!O;var R=GX().S!==2||this.r1d;return this.uA||R&&O?2:this.hP()?4:3}; g.f.zc=function(){return 0};g.q3.prototype.next=function(){return g.KB}; g.KB={done:!0,value:void 0};g.q3.prototype.e5=function(){return this};g.S(xRH,pt);var y7=jDW([void 0,1,2,3,4,8,16]),w$=jDW([void 0,4,8,16]),QbC={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Wq("p0",w$),p1:Wq("p1",w$),p2:Wq("p2",w$),p3:Wq("p3",w$),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:bF("mtos1",[0,2,4],!1,w$),mtos2:bF("mtos2",[0,2,4],!1,w$),mtos3:bF("mtos3",[0,2,4],!1,w$),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Wq("a0",w$),a1:Wq("a1",w$),a2:Wq("a2",w$),a3:Wq("a3",w$),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:Wq("c0",w$),c1:Wq("c1",w$),c2:Wq("c2",w$),c3:Wq("c3",w$),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Wq("qmtos",y7),qnc:Wq("qnc",y7),qmv:Wq("qmv",y7),qnv:Wq("qnv",y7), 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:Wq("ss0",w$),ss1:Wq("ss1",w$),ss2:Wq("ss2",w$),ss3:Wq("ss3",w$),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"},L4R=Object.assign({},QbC,{avid:Cu("audio"),avas:"avas",vs:"vs"}),YCC={atos:"atos",avt:bF("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(O,R){return function(J){return J[O]===void 0&&R!==void 0?R:J[O]}}("ss",0), t:"t"};pD.prototype.getValue=function(){return this.S}; pD.prototype.update=function(O,R){O>=32||(this.L&1<=.5;O1(R.volume)&&(this.N=this.N!=-1?Math.min(this.N,R.volume):R.volume,this.j=Math.max(this.j,R.volume));F&&(this.iz+=O,this.W+=u?O:0);this.L.update(R.x8,J.x8,R.L,O,l,u);this.B.update(!0,O);this.D.update(u,O);this.SN.update(J.fullscreen,O);this.fJ.update(u&&!F,O);O=Math.floor(R.mediaTime/1E3);this.xS.update(O,R.isVisible());this.Td.update(O,R.x8>=1);this.AR.update(O, s1(R))}};zDB.prototype.S=function(O){this.B||(this.L(O)?(O=GXT(this.W,this.N,O),this.D|=O,O=O==0):O=!1,this.B=O)};g.S(xl,zDB);xl.prototype.L=function(){return!0}; xl.prototype.j=function(){return!1}; xl.prototype.getId=function(){var O=this,R=z_(R_,function(J){return J==O.N}); return mQ[R].toString()}; xl.prototype.toString=function(){var O="";this.j()&&(O+="c");this.B&&(O+="s");this.D>0&&(O+=":"+this.D);return this.getId()+O};g.S(U1,xl);U1.prototype.S=function(O,R){R=R===void 0?null:R;R!=null&&this.J.push(R);xl.prototype.S.call(this,O)};g.S(jE,npW);jE.prototype.S=function(){return null}; jE.prototype.B=function(){return[]};g.S(Q$,KD);g.f=Q$.prototype;g.f.xk=function(){if(this.element){var O=this.element,R=this.S.L.B;try{try{var J=uQp(O.getBoundingClientRect())}catch(I){J=new XE(0,0,0,0)}var l=J.right-J.left,u=J.bottom-J.top,F=gKx(O,R),G=F.x,y=F.y;var w=new XE(Math.round(y),Math.round(G+l),Math.round(y+u),Math.round(G))}catch(I){w=jbM.clone()}this.B=w;this.L=twL(this,this.B)}}; g.f.f6=function(){this.j=this.S.N.L}; g.f.ID=function(O){var R=IW(this.pG,"od")==1;return qjp(O,this.j,this.element,R)}; g.f.Ri=function(){this.timestamp=NQ()}; g.f.Xy=function(){this.Ri();this.xk();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var O=this.element;var R=new g.so(O.videoWidth,O.videoHeight);O=this.L;var J=TX(O),l=O.getHeight(),u=R.width;R=R.height;u<=0||R<=0||J<=0||l<=0||(u/=R,R=J/l,O=O.clone(),u>R?(J/=u,l=(l-J)/2,l>0&&(l=O.top+l,O.top=Math.round(l),O.bottom=Math.round(l+J))):(l*=u,J=Math.round((J-l)/2),J>0&&(J=O.left+J,O.left=Math.round(J),O.right=Math.round(J+l))));this.L=O}this.f6(); O=this.L;J=this.j;O=O.left<=J.right&&J.left<=O.right&&O.top<=J.bottom&&J.top<=O.bottom?new XE(Math.max(O.top,J.top),Math.min(O.right,J.right),Math.min(O.bottom,J.bottom),Math.max(O.left,J.left)):new XE(0,0,0,0);J=O.top>=O.bottom||O.left>=O.right?new XE(0,0,0,0):O;O=this.S.N;R=u=l=0;if((this.L.bottom-this.L.top)*(this.L.right-this.L.left)>0)if(this.ID(J))J=new XE(0,0,0,0);else{l=Ji().N;R=new XE(0,l.height,l.width,0);var F;l=XO(J,(F=this.D)!=null?F:this.L);u=XO(J,Ji().L);R=XO(J,R)}F=J.top>=J.bottom|| J.left>=J.right?new XE(0,0,0,0):J.translate(-this.L.left,-this.L.top);iF()||(u=l=0);this.W=new qQ(O,this.element,this.L,F,l,u,this.timestamp,R)}; g.f.getName=function(){return this.S.getName()};var ds6=new XE(0,0,0,0);g.S(Yl,Q$);g.f=Yl.prototype;g.f.observe=function(){this.N();return!0}; g.f.Ht=function(){Q$.prototype.Xy.call(this)}; g.f.Ri=function(){}; g.f.xk=function(){}; g.f.Xy=function(){this.N();Q$.prototype.Xy.call(this)}; g.f.rr=function(O){O=O.isActive();O!==this.V&&(O?this.N():(Ji().L=new XE(0,0,0,0),this.L=new XE(0,0,0,0),this.j=new XE(0,0,0,0),this.timestamp=-1));this.V=O};var Ip={},GLx=(Ip.firstquartile=0,Ip.midpoint=1,Ip.thirdquartile=2,Ip.complete=3,Ip);g.S(hi,Ti);g.f=hi.prototype;g.f.R7=function(){return!0}; g.f.gh=function(){return this.rU==2}; g.f.po=function(O){return Arz(this,O,Math.max(1E4,this.B/3))}; g.f.au=function(O,R,J,l,u,F,G){var y=this,w=this.J(this)||{};g.gY(w,u);this.B=w.duration||this.B;this.W=w.isVpaid||this.W;this.Iu=w.isYouTube||this.Iu;hh();this.sQ=!1;u=Ofx(this,R);crp(this)===1&&(F=u);Ti.prototype.au.call(this,O,R,J,l,w,F,G);this.qr&&this.qr.B&&g.e6(this.j,function(I){I.S(y)})}; g.f.W6=function(O,R,J){Ti.prototype.W6.call(this,O,R,J);cq(this).update(O,R,this.iS,J);this.KJ=s1(this.iS)&&s1(R);this.N1==-1&&this.Td&&(this.N1=this.y0().B.L);this.Vw.B=0;O=this.hP();R.isVisible()&&Pq(this.Vw,"vs");O&&Pq(this.Vw,"vw");O1(R.volume)&&Pq(this.Vw,"am");s1(R)?Pq(this.Vw,"a"):Pq(this.Vw,"mut");this.AE&&Pq(this.Vw,"f");R.S!=-1&&(Pq(this.Vw,"bm"),R.S==1&&(Pq(this.Vw,"b"),s1(R)&&Pq(this.Vw,"umutb")));s1(R)&&R.isVisible()&&Pq(this.Vw,"avs");this.KJ&&O&&Pq(this.Vw,"avw");R.x8>0&&Pq(this.Vw, "pv");OB(this,this.y0().B.L,!0)&&Pq(this.Vw,"gdr");N3(this.y0().S,1)>=2E3&&Pq(this.Vw,"pmx");this.sQ&&Pq(this.Vw,"tvoff")}; g.f.nQ=function(){return new Bq}; g.f.y0=function(){return this.uD}; g.f.Br=function(){return new xRH}; g.f.X1=function(O,R,J,l){O=Ti.prototype.X1.call(this,O,R,J,l===void 0?-1:l);O.fullscreen=this.AE;O.paused=this.gh();O.volume=J.volume;O1(O.volume)||(this.Rz++,R=this.iS,O1(R.volume)&&(O.volume=R.volume));J=J.currentTime;O.mediaTime=J!==void 0&&J>=0?J:-1;return O}; g.f.Ka=function(O){return Ji(),this.AE?1:Ti.prototype.Ka.call(this,O)}; g.f.w1=function(){return 1}; g.f.getDuration=function(){return this.B}; g.f.JN=function(){return this.uA?2:Jcz(this)?5:this.hP()?4:3}; g.f.zc=function(){return this.fJ?this.y0().D.B>=2E3?4:3:2}; g.f.Em=function(O){this.rO&&this.rO.Em(O)};var hIQ=g.Fk();fUz.prototype.reset=function(){this.L=[];this.S=[]}; var um=Yi(fUz);g.S(yi,y$);g.f=yi.prototype;g.f.getName=function(){return(this.S?this.S:this.L).getName()}; g.f.tY=function(){return(this.S?this.S:this.L).tY()}; g.f.Ld=function(){return(this.S?this.S:this.L).Ld()}; g.f.init=function(O){var R=!1;(0,g.e6)(this.B,function(J){J.initialize()&&(R=!0)}); R&&(this.N=O,FO(this.L,this));return R}; g.f.dispose=function(){(0,g.e6)(this.B,function(O){O.dispose()}); y$.prototype.dispose.call(this)}; g.f.qn=function(){return RT(this.B,function(O){return O.II()})}; g.f.DK=function(){return RT(this.B,function(O){return O.II()})}; g.f.Or=function(O,R,J){return new Q$(O,this.L,R,J)}; g.f.Ht=function(O){this.S=O.S};var Tb0={threshold:[0,.3,.5,.75,1]};g.S(wJ,Q$);g.f=wJ.prototype;g.f.observe=function(){var O=this;this.Hq||(this.Hq=NQ());if(LIs(298,function(){return $VL(O)}))return!0; this.S.CD("msf");return!1}; g.f.unobserve=function(){if(this.N&&this.element)try{this.N.unobserve(this.element),this.V?(this.V.unobserve(this.element),this.V=null):this.J&&(this.J.disconnect(),this.J=null)}catch(O){}}; g.f.Xy=function(){var O=I_(this);O.length>0&&Ci(this,O);Q$.prototype.Xy.call(this)}; g.f.xk=function(){}; g.f.ID=function(){return!1}; g.f.f6=function(){}; g.f.tY=function(){var O={};return Object.assign(this.S.tY(),(O.niot_obs=this.Hq,O.niot_cbk=this.SN,O))}; g.f.getName=function(){return"nio"};g.S(rJ,y$);rJ.prototype.getName=function(){return"nio"}; rJ.prototype.DK=function(){return!Ji().S&&this.L.L.B.IntersectionObserver!=null}; rJ.prototype.Or=function(O,R,J){return new wJ(O,this.L,R,J)};g.S(tZ,uF);tZ.prototype.Db=function(){return Ji().L}; tZ.prototype.II=function(){var O=qQA();this.V!==O&&(this.L!=this&&O>this.L.V&&(this.L=this,Gi(this)),this.V=O);return O==2};o_.prototype.sample=function(){fi(this,Fx(),!1)}; o_.prototype.N=function(){var O=iF(),R=NQ();O?(D1||(ar=R,g.e6(um.L,function(J){var l=J.y0();l.JR=Hq(l,R,J.rU!=1)})),D1=!0):(this.J=AcB(this,R),D1=!1,K$A=R,g.e6(um.L,function(J){J.Pz&&(J.y0().V=R)})); fi(this,Fx(),!O)}; var Z3=Yi(o_);var PfW=null,xG="",H1=!1;var Hf2=Bbp().Cc,Nm=Bbp().cD;var jiT={rKd:"visible",gMz:"audible",W7N:"time",MU1:"timetype"},QiW={visible:function(O){return/^(100|[0-9]{1,2})$/.test(O)}, audible:function(O){return O=="0"||O=="1"}, timetype:function(O){return O=="mtos"||O=="tos"}, time:function(O){return/^(100|[0-9]{1,2})%$/.test(O)||/^([0-9])+ms$/.test(O)}}; UVs.prototype.setTime=function(O,R,J){R=="ms"?(this.B=O,this.N=-1):(this.B=-1,this.N=O);this.D=J===void 0?"tos":J;return this};g.S(a_,xl);a_.prototype.getId=function(){return this.J}; a_.prototype.j=function(){return!0}; a_.prototype.L=function(O){var R=O.y0(),J=O.getDuration();return RT(this.V,function(l){if(l.L!=void 0)var u=YQA(l,R);else b:{switch(l.D){case "mtos":u=l.S?R.D.B:R.B.L;break b;case "tos":u=l.S?R.D.L:R.B.L;break b}u=0}u==0?l=!1:(l=l.B!=-1?l.B:J!==void 0&&J>0?l.N*J:-1,l=l!=-1&&u>=l);return l})};g.S(v1,LvL);v1.prototype.L=function(O){var R=new QDH;R.L=eE(O,QbC);R.S=eE(O,YCC);return R};g.S(Xx,xl);Xx.prototype.L=function(O){return Jcz(O)};g.S(T9,npW);g.S($G,xl);$G.prototype.L=function(O){return O.y0().hP()};g.S(Mm,U1);Mm.prototype.L=function(O){var R=g.Zo(this.J,IW(GX().pG,"ovms"));return!O.uA&&(O.rU!=0||R)};g.S(qm,T9);qm.prototype.S=function(){return new Mm(this.L)}; qm.prototype.B=function(){return[new $G("viewable_impression",this.L),new Xx(this.L)]};g.S(kG,Yl);kG.prototype.N=function(){var O=g.hs("ima.admob.getViewability"),R=IW(this.pG,"queryid");typeof O==="function"&&R&&O(R)}; kG.prototype.getName=function(){return"gsv"};g.S(sB,y$);sB.prototype.getName=function(){return"gsv"}; sB.prototype.DK=function(){var O=Ji();GX();return O.S&&!1}; sB.prototype.Or=function(O,R,J){return new kG(this.L,R,J)};g.S(bm,Yl);bm.prototype.N=function(){var O=this,R=g.hs("ima.bridge.getNativeViewability"),J=IW(this.pG,"queryid");typeof R==="function"&&J&&R(J,function(l){g.nt(l)&&O.J++;var u=l.opt_nativeViewVisibleBounds||{},F=l.opt_nativeViewHidden;O.L=Fzh(l.opt_nativeViewBounds||{});var G=O.S.N;G.L=F?ds6.clone():Fzh(u);O.timestamp=l.opt_nativeTime||-1;Ji().L=G.L;l=l.opt_nativeVolume;l!==void 0&&(G.volume=l)})}; bm.prototype.getName=function(){return"nis"};g.S(W1,y$);W1.prototype.getName=function(){return"nis"}; W1.prototype.DK=function(){var O=Ji();GX();return O.S&&!1}; W1.prototype.Or=function(O,R,J){return new bm(this.L,R,J)};g.S(AZ,uF);g.f=AZ.prototype;g.f.II=function(){return this.S.e8!=null}; g.f.bx=function(){var O={};this.xS&&(O.mraid=this.xS);this.OQ&&(O.mlc=1);O.mtop=this.S.sFU;this.J&&(O.mse=this.J);this.Qh&&(O.msc=1);O.mcp=this.S.compatibility;return O}; g.f.wA=function(O){var R=g.As.apply(1,arguments);try{return this.S.e8[O].apply(this.S.e8,R)}catch(J){SJ(538,J,.01,function(l){l.method=O})}}; g.f.initialize=function(){var O=this;if(this.isInitialized)return!this.zY();this.isInitialized=!0;if(this.S.compatibility===2)return this.J="ng",this.CD("w"),!1;if(this.S.compatibility===1)return this.J="mm",this.CD("w"),!1;Ji().V=!0;this.B.document.readyState&&this.B.document.readyState=="complete"?n_A(this):aT(this.B,"load",function(){hh().setTimeout(fS(292,function(){return n_A(O)}),100)},292); return!0}; g.f.Nn=function(){var O=Ji(),R=gFf(this,"getMaxSize");O.L=new XE(0,R.width,R.height,0)}; g.f.YX=function(){Ji().N=gFf(this,"getScreenSize")}; g.f.dispose=function(){OS_(this);uF.prototype.dispose.call(this)};var MO0=new function(O,R){this.key=O;this.defaultValue=R===void 0?!1:R;this.valueType="boolean"}("45378663");g.f=P1.prototype;g.f.pU=function(O){$l(O,!1);E_T(O)}; g.f.Bs=function(){}; g.f.rf=function(O,R,J,l){var u=this;O=new hi(Io,O,J?R:-1,7,this.LV(),this.jB());O.Hn=l;pB2(O.pG);wY(O.pG,"queryid",O.Hn);O.Be("");pSH(O,function(){return u.mm.apply(u,g.X(g.As.apply(0,arguments)))},function(){return u.CB.apply(u,g.X(g.As.apply(0,arguments)))}); (l=Yi(G9).L)&&Wvh(O,l);this.B&&(O.Em(this.B),this.B=null);O.bV.Iy&&Yi(kLs);return O}; g.f.rr=function(O){switch(O.Ld()){case 0:if(O=Yi(G9).L)O=O.L,g.ft(O.D,this),O.W&&this.R7()&&C$_(O);B1();break;case 2:Vi()}}; g.f.Ht=function(){}; g.f.R7=function(){return!1}; g.f.CB=function(O,R){O.uA=!0;switch(O.w1()){case 1:Kb_(O,R);break;case 2:this.Il(O)}}; g.f.SQU=function(O){var R=O.J(O);R&&(R=R.volume,O.fJ=O1(R)&&R>0);lUh(O,0);return JZ(O,"start",iF())}; g.f.zo=function(O,R,J){fi(Z3,[O],!iF());return this.Oi(O,R,J)}; g.f.Oi=function(O,R,J){return JZ(O,J,iF())}; g.f.fB=function(O){return z9(O,"firstquartile",1)}; g.f.LXd=function(O){O.Td=!0;return z9(O,"midpoint",2)}; g.f.HJq=function(O){return z9(O,"thirdquartile",3)}; g.f.Pp=function(O){var R=z9(O,"complete",4);zi(O);return R}; g.f.Wp=function(O){O.rU=3;return JZ(O,"error",iF())}; g.f.Dw=function(O,R,J){R=iF();if(O.gh()&&!R){var l=O.y0(),u=NQ();l.V=u}fi(Z3,[O],!R);O.gh()&&(O.rU=1);return JZ(O,J,R)}; g.f.gSQ=function(O,R){R=this.zo(O,R||{},"skip");zi(O);return R}; g.f.RUR=function(O,R){$l(O,!0);return this.zo(O,R||{},"fullscreen")}; g.f.MF=function(O,R){$l(O,!1);return this.zo(O,R||{},"exitfullscreen")}; g.f.fT=function(O,R,J){R=O.y0();var l=NQ();R.JR=Hq(R,l,O.rU!=1);fi(Z3,[O],!iF());O.rU==1&&(O.rU=2);return JZ(O,J,iF())}; g.f.nSd=function(O){fi(Z3,[O],!iF());return O.S()}; g.f.lX=function(O){fi(Z3,[O],!iF());this.qX(O);zi(O);return O.S()}; g.f.mm=function(){}; g.f.Il=function(){}; g.f.qX=function(){}; g.f.Qc=function(){}; g.f.SY=function(){}; g.f.jB=function(){this.L||(this.L=this.SY());return this.L==null?new jE:new qm(this.L)}; g.f.LV=function(){return new v1};g.S(ni,xl);ni.prototype.L=function(O){return O.zc()==4};g.S(c1,U1);c1.prototype.L=function(O){O=O.zc();return O==3||O==4};g.S(Oh,T9);Oh.prototype.S=function(){return new c1(this.L)}; Oh.prototype.B=function(){return[new ni(this.L)]};g.S(Rv,LvL);Rv.prototype.L=function(O){O&&(O.e===28&&(O=Object.assign({},O,{avas:3})),O.vs===4||O.vs===5)&&(O=Object.assign({},O,{vs:3}));var R=new QDH;R.L=eE(O,L4R);R.S=eE(O,YCC);return R};Cv2.prototype.S=function(){return g.hs(this.L)};g.S(JY,P1);g.f=JY.prototype;g.f.Bs=function(O,R){var J=this,l=Yi(G9);if(Ki(l))switch(l.L.getName()){case "nis":var u=ZSz(this,O,R);break;case "gsv":u=oFB(this,O,R);break;case "exc":u=VJ0(this,O)}u||(R.opt_overlayAdElement?u=void 0:R.opt_adElement&&(u=wwH(this,O,R.opt_adElement,R.opt_osdId)));u&&u.w1()==1&&(u.J==g.rv&&(u.J=function(F){return J.Qc(F)}),tJH(this,u,R)); return u}; g.f.Qc=function(O){O.S=0;O.iz=0;if(O.N=="h"||O.N=="n"){GX();O.AR&&(GX(),jy(this)!="h"&&jy(this));var R=g.hs("ima.common.getVideoMetadata");if(typeof R==="function")try{var J=R(O.Hn)}catch(u){O.S|=4}else O.S|=2}else if(O.N=="b")if(R=g.hs("ytads.bulleit.getVideoMetadata"),typeof R==="function")try{J=R(O.Hn)}catch(u){O.S|=4}else O.S|=2;else if(O.N=="ml")if(R=g.hs("ima.common.getVideoMetadata"),typeof R==="function")try{J=R(O.Hn)}catch(u){O.S|=4}else O.S|=2;else O.S|=1;O.S||(J===void 0?O.S|=8:J===null? O.S|=16:g.nt(J)?O.S|=32:J.errorCode!=null&&(O.iz=J.errorCode,O.S|=64));J==null&&(J={});R=J;O.V=0;for(var l in pRt)R[l]==null&&(O.V|=pRt[l]);I1s(R,"currentTime");I1s(R,"duration");O1(J.volume)&&O1()&&(J.volume*=NaN);return J}; g.f.SY=function(){GX();jy(this)!="h"&&jy(this);var O=f1H(this);return O!=null?new Cv2(O):null}; g.f.Il=function(O){!O.L&&O.uA&&hZ(this,O,"overlay_unmeasurable_impression")&&(O.L=!0)}; g.f.qX=function(O){O.gj&&(O.hP()?hZ(this,O,"overlay_viewable_end_of_session_impression"):hZ(this,O,"overlay_unviewable_impression"),O.gj=!1)}; g.f.mm=function(){}; g.f.rf=function(O,R,J,l){if(q9f()){var u=IW(GX().pG,"mm"),F={};(u=(F[KS.Do]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",F[KS.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",F)[u])&&EFz(this,u);this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&SJ(1044,Error())}O=P1.prototype.rf.call(this,O,R,J,l);this.D&&(R=this.j,O.D==null&&(O.D=new B4T),R.L[O.Hn]=O.D,O.D.D=hIQ);return O}; g.f.pU=function(O){O&&O.w1()==1&&this.D&&delete this.j.L[O.Hn];return P1.prototype.pU.call(this,O)}; g.f.jB=function(){this.L||(this.L=this.SY());return this.L==null?new jE:this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Oh(this.L):new qm(this.L)}; g.f.LV=function(){return this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Rv:new v1}; g.f.Em=function(O,R,J,l,u){R=new XE(J,R+l,J+u,R);(O=lm(um,O))?O.Em(R):this.B=R}; var zIs=VH(193,a1T,void 0,yHh);g.dh("Goog_AdSense_Lidar_sendVastEvent",zIs);var nMC=fS(194,function(O,R){R=R===void 0?{}:R;O=mQH(Yi(JY),O,R);return DQL(O)}); g.dh("Goog_AdSense_Lidar_getViewability",nMC);var cVC=VH(195,function(){return DnL()}); g.dh("Goog_AdSense_Lidar_getUrlSignalsArray",cVC);var OzV=fS(196,function(){return JSON.stringify(DnL())}); g.dh("Goog_AdSense_Lidar_getUrlSignalsList",OzV);var TNs=Cx(["//ep2.adtrafficquality.google/sodar/",""]),$Q2=Cx(["//tpc.googlesyndication.com/sodar/",""]);g.S(uG,Error);g.S(K7,g.p);K7.prototype.z7=function(){return this.wpc.f()}; K7.prototype.M3=function(O){this.wpc.c(O)}; K7.prototype.GP=function(O){return this.wpc.m(srW(O))}; K7.prototype.Z8=function(O){return this.wpc.mws(srW(O))}; g.S(Fu,g.p);Fu.prototype.snapshot=function(O){return this.m$.s(Object.assign({},O.ya&&{c:O.ya},O.Y_&&{s:O.Y_},O.Xj!==void 0&&{p:O.Xj}))}; Fu.prototype.O3=function(O){this.m$.e(O)}; Fu.prototype.ib=function(){return this.m$.l()};var pws;g.S(w2,g.p);w2.prototype.share=function(){if(this.jN())throw Error("E:AD");this.N++;return this}; w2.prototype.dispose=function(){--this.N||g.p.prototype.dispose.call(this)}; pws=Symbol.dispose;BNz.prototype.Ah=function(O,R){this.L.Ah("/client_streamz/bg/frs",O,R)}; HSs.prototype.Ah=function(O,R,J,l,u,F){this.L.Ah("/client_streamz/bg/wrl",O,R,J,l,u,F)}; xQ_.prototype.Gh=function(O,R){this.L.nx("/client_streamz/bg/ec",O,R)}; UQ0.prototype.Ah=function(O,R,J){this.L.Ah("/client_streamz/bg/el",O,R,J)}; jrW.prototype.Gh=function(O,R){this.L.nx("/client_streamz/bg/cec",O,R)}; Qrp.prototype.Gh=function(O,R){this.L.nx("/client_streamz/bg/po/csc",O,R)}; Lb_.prototype.Gh=function(O,R){this.L.nx("/client_streamz/bg/po/ctav",O,R)}; Yup.prototype.Gh=function(O,R){this.L.nx("/client_streamz/bg/po/cwsc",O,R)};g.S(dQB,ff);g.S(r2,ff);var f7=[1,2,3];var RQ6=[0,f7,bt4,TCC,k_V];var Jx_=[0,g$,[0,SC6,EMI]];g.S(tY,ff);var V_=[1,2,3];var gb6=[0,V_,ao6,msR,l3,Jx_];g.S(ov,ff);var iz4=[0,g$,RQ6,gb6];var lJM=[0,[1,2,3],l3,[0,JP,-1,qCC],l3,[0,JP,-1,vM4,qCC],l3,[0,JP]];g.S(Zq,ff);Zq.prototype.o7=function(){var O=vS(this,3,h8,3,!0);f6(O);return O[void 0]};Zq.prototype.S=vih([0,JP,lJM,sbC,g$,iz4,$sb,M66]);g.S(zGB,ff);g.f=SF.prototype;g.f.isEnabled=function(){if(!g.YW.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{xC:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.f.set=function(O,R,J){var l=!1;if(typeof J==="object"){var u=J.XHQ;l=J.secure||!1;var F=J.domain||void 0;var G=J.path||void 0;var y=J.xC}if(/[;=\s]/.test(O))throw Error('Invalid cookie name "'+O+'"');if(/[;\r\n]/.test(R))throw Error('Invalid cookie value "'+R+'"');y===void 0&&(y=-1);J=F?";domain="+F:"";G=G?";path="+G:"";l=l?";secure":"";y=y<0?"":y==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+y*1E3)).toUTCString();this.L.cookie=O+"="+R+J+G+y+l+(u!=null?";samesite="+ u:"")}; g.f.get=function(O,R){for(var J=O+"=",l=(this.L.cookie||"").split(";"),u=0,F;u=0;R--)this.remove(O[R])}; var WW=new SF(typeof document=="undefined"?null:document);mV.prototype.compress=function(O){var R,J,l,u;return g.A(function(F){switch(F.S){case 1:return R=new CompressionStream("gzip"),J=(new Response(R.readable)).arrayBuffer(),l=R.writable.getWriter(),g.k(F,l.write((new TextEncoder).encode(O)),2);case 2:return g.k(F,l.close(),3);case 3:return u=Uint8Array,g.k(F,J,4);case 4:return F.return(new u(F.L))}})}; mV.prototype.isSupported=function(O){return O<1024?!1:typeof CompressionStream!=="undefined"};g.S(Eh,ff);Dq.prototype.setInterval=function(O){this.intervalMs=O;this.Jp&&this.enabled?(this.stop(),this.start()):this.Jp&&this.stop()}; Dq.prototype.start=function(){var O=this;this.enabled=!0;this.Jp||(this.Jp=setTimeout(function(){O.tick()},this.intervalMs),this.S=this.L())}; Dq.prototype.stop=function(){this.enabled=!1;this.Jp&&(clearTimeout(this.Jp),this.Jp=void 0)}; Dq.prototype.tick=function(){var O=this;if(this.enabled){var R=Math.max(this.L()-this.S,0);R0?J:void 0));J=NR(J,4,P2(u>0?u:void 0));J=NR(J,5,P2(F>0?F:void 0));u=J.L1;F=u[C6]|0;J=Vy(J,F)?J:new J.constructor(u6(u,F,r4,!0,!0));HS(G,Xu,10,J)}G=this.L.clone();J=Date.now().toString();G=NR(G,4,Qy(J));O=Uj(G,W3,3,O.slice());l&&(G=new av,l=NR(G,13,P2(l)),G=new v3,l=HS(G,av, 2,l),G=new bG,l=HS(G,v3,1,l),l=OQ(l,2,9),HS(O,bG,18,l));R&&zU(O,14,R);return O};g.p7.prototype.S=0;g.p7.prototype.reset=function(){this.L=this.B=this.N;this.S=0}; g.p7.prototype.getValue=function(){return this.B};g.S(gN,ff);var uKV=iv(gN);g.S(DAf,ff);var CB=new auT;g.S(Uh,g.p);g.f=Uh.prototype;g.f.eN=function(){xQ(this);this.S.stop();this.xS.stop();g.p.prototype.eN.call(this)}; g.f.dispatch=function(O){if(O instanceof W3)this.log(O);else try{var R=new W3,J=O.SQ();var l=nO(R,8,J);this.log(l)}catch(u){jF(this,4,1)}}; g.f.log=function(O){jF(this,2,1);if(this.Qh){O=O.clone();var R=this.Gd++;O=zU(O,21,R);this.componentId&&nO(O,26,this.componentId);R=O;var J=fO(R,1);var l=l===void 0?!1:l;var u=typeof J;l=J==null?J:u==="bigint"?String(xK(64,J)):ew(J)?u==="string"?H2(J):l?Ua(J):jw(J):void 0;l==null&&(l=Date.now(),l=Number.isFinite(l)?l.toString():"0",NR(R,1,Qy(l)));l=fO(R,15);l!=null&&(typeof l==="bigint"?Fc(l)?l=Number(l):(l=xK(64,l),l=Fc(l)?Number(l):String(l)):l=ew(l)?typeof l==="number"?jw(l):H2(l):void 0);l!=null|| zU(R,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(l=this.experimentIds.clone(),HS(R,Eh,16,l));jF(this,1,1);R=this.L.length-1E3+1;R>0&&(this.L.splice(0,R),this.N+=R,jF(this,3,R));this.L.push(O);this.VN||this.S.enabled||this.S.start()}}; g.f.flush=function(O,R){var J=this;if(this.L.length===0)O&&O();else if(this.N1&&this.SN)this.B.S=3,m3_(this);else{var l=Date.now();if(this.JR>l&&this.iz0&&(J.iz=Date.now(),J.JR=J.iz+t);var m;t=G_(RD);IK&&t&&((m=Z.L1[t])==null?void 0:m[175237375])!=null&&Y5B(F4_,3);m=CB.L?CB.S(Z,CB.L,175237375,CB.B):CB.S(Z,175237375,null,CB.B);if(m=m===null?void 0:m)m=LO(m,1,-1),m!==-1&&(J.D=new g.p7(m<1?1:m,3E5,.1),J.S.setInterval(J.D.getValue()))}}O&& O();J.j=0},C=function(t,Z){var V=BS(F,W3,3); var m=Number(pEs(F,14));g.B3(J.D);J.S.setInterval(J.D.getValue());t===401&&G&&(J.Iu=G);m&&(J.N+=m);Z===void 0&&(Z=J.isRetryable(t));Z&&(J.L=V.concat(J.L),J.VN||J.S.enabled||J.S.start());jF(J,7,1);R&&R("net-send-failed",t);++J.j},r=function(){J.network&&J.network.send(w,I,C)}; y?y.then(function(t){jF(J,5,u);w.requestHeaders["Content-Encoding"]="gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=t;w.Fe=2;r()},function(){jF(J,6,u); r()}):r()}}}}; g.f.isRetryable=function(O){return 500<=O&&O<600||O===401||O===0};Q_.prototype.send=function(O,R,J){var l=this,u,F,G,y,w,I,C,r,t,Z;return g.A(function(V){switch(V.S){case 1:return F=(u=l.U2?new AbortController:void 0)?setTimeout(function(){u.abort()},O.timeoutMillis):void 0,g.N0(V,2,3),G=Object.assign({},{method:O.requestType, headers:Object.assign({},O.requestHeaders)},O.body&&{body:O.body},O.withCredentials&&{credentials:"include"},{signal:O.timeoutMillis&&u?u.signal:null}),g.k(V,fetch(O.url,G),5);case 5:y=V.L;if(y.status!==200){(w=J)==null||w(y.status);V.pJ(3);break}if((I=R)==null){V.pJ(7);break}return g.k(V,y.text(),8);case 8:I(V.L);case 7:case 3:g.M0(V);clearTimeout(F);g.kW(V,0);break;case 2:C=g.Tz(V);switch((r=C)==null?void 0:r.name){case "AbortError":(t=J)==null||t(408);break;default:(Z=J)==null||Z(400)}V.pJ(3)}})}; Q_.prototype.u1=function(){return 4};g.S(L7,g.p);L7.prototype.dG=function(){this.D=!0;return this}; L7.prototype.build=function(){this.network||(this.network=new Q_);var O=new Uh({logSource:this.logSource,On:this.On?this.On:GiL,sessionIndex:this.sessionIndex,CCU:this.ZV,B2:this.N,VN:!1,dG:this.D,cL:this.cL,network:this.network});g.H(this,O);if(this.S){var R=this.S,J=P3(O.B);nO(J,7,R)}O.J=new mV;this.componentId&&(O.componentId=this.componentId);this.v_&&(O.v_=this.v_);this.pageId&&(O.pageId=this.pageId);this.L&&((J=this.L)?(O.experimentIds||(O.experimentIds=new Eh),R=O.experimentIds,J=J.SQ(),nO(R, 4,J)):O.experimentIds&&NR(O.experimentIds,4));this.B&&(O.N1=O.SN);ZDL(O.B);this.network.Rf&&this.network.Rf(this.logSource);this.network.Alq&&this.network.Alq(O);return O};g.S(YQ,g.p);YQ.prototype.flush=function(O){O=O||[];if(O.length){for(var R=new zGB,J=[],l=0;l-1?(R=O[G],J||(R.oK=!1)):(R=new ME_(R,this.src,F,!!l,u),R.oK=J,O.push(R));return R}; g.f.remove=function(O,R,J,l){O=O.toString();if(!(O in this.listeners))return!1;var u=this.listeners[O];R=iM(u,R,J,l);return R>-1?(RL(u[R]),g.V6(u,R),u.length==0&&(delete this.listeners[O],this.L--),!0):!1}; g.f.removeAll=function(O){O=O&&O.toString();var R=0,J;for(J in this.listeners)if(!O||J==O){for(var l=this.listeners[J],u=0;u-1?O[u]:null}; g.f.hasListener=function(O,R){var J=O!==void 0,l=J?O.toString():"",u=R!==void 0;return g.UC(this.listeners,function(F){for(var G=0;G>>0);g.y6(g.tW,g.p);g.tW.prototype[TdA]=!0;g.f=g.tW.prototype;g.f.addEventListener=function(O,R,J,l){g.uM(this,O,R,J,l)}; g.f.removeEventListener=function(O,R,J,l){eKL(this,O,R,J,l)}; g.f.dispatchEvent=function(O){var R=this.W$;if(R){var J=[];for(var l=1;R;R=R.W$)J.push(R),++l}R=this.z0;l=O.type||O;if(typeof O==="string")O=new g.n7(O,R);else if(O instanceof g.n7)O.target=O.target||R;else{var u=O;O=new g.n7(l,R);g.gY(O,u)}u=!0;var F;if(J)for(F=J.length-1;!O.S&&F>=0;F--){var G=O.currentTarget=J[F];u=oL(G,l,!0,O)&&u}O.S||(G=O.currentTarget=R,u=oL(G,l,!0,O)&&u,O.S||(u=oL(G,l,!1,O)&&u));if(J)for(F=0;!O.S&&F0){this.S--;var O=this.L;this.L=O.next;O.next=null}else O=this.B();return O};var fE;NG.prototype.add=function(O,R){var J=U3x.get();J.set(O,R);this.S?this.S.next=J:this.L=J;this.S=J}; NG.prototype.remove=function(){var O=null;this.L&&(O=this.L,this.L=this.L.next,this.L||(this.S=null),O.next=null);return O}; var U3x=new ZP(function(){return new mt},function(O){return O.reset()}); mt.prototype.set=function(O,R){this.L=O;this.scope=R;this.next=null}; mt.prototype.reset=function(){this.next=this.scope=this.L=null};var Ef,DP=!1,HDp=new NG;jTH.prototype.reset=function(){this.context=this.S=this.B=this.L=null;this.N=!1}; var QTp=new ZP(function(){return new jTH},function(O){O.reset()}); g.XH.prototype.then=function(O,R,J){return RkB(this,VK(typeof O==="function"?O:null),VK(typeof R==="function"?R:null),J)}; g.XH.prototype.$goog_Thenable=!0;g.f=g.XH.prototype;g.f.finally=function(O){var R=this;O=VK(O);return new Promise(function(J,l){hKh(R,function(u){O();J(u)},function(u){O(); l(u)})})}; g.f.cn=function(O,R){return RkB(this,null,VK(O),R)}; g.f.catch=g.XH.prototype.cn;g.f.cancel=function(O){if(this.L==0){var R=new eb(O);g.aL(function(){zKz(this,R)},this)}}; g.f.Guq=function(O){this.L=0;vh(this,2,O)}; g.f.UKz=function(O){this.L=0;vh(this,3,O)}; g.f.xB=function(){for(var O;O=nlf(this);)ciT(this,O,this.L,this.J);this.j=!1}; var l3W=cQ;g.y6(eb,wC);eb.prototype.name="cancel";g.y6(g.Ph,g.tW);g.f=g.Ph.prototype;g.f.enabled=!1;g.f.GR=null;g.f.setInterval=function(O){this.Wc=O;this.GR&&this.enabled?(this.stop(),this.start()):this.GR&&this.stop()}; g.f.XfX=function(){if(this.enabled){var O=g.Fk()-this.zL;O>0&&O0&&(this.getStatus(),this.j=setTimeout(this.wl.bind(this), this.SN)),this.getStatus(),this.W=!0,this.L.send(O),this.W=!1}catch(G){this.getStatus(),SBW(this,G)}}; g.f.wl=function(){typeof d1!="undefined"&&this.L&&(this.N="Timed out after "+this.SN+"ms, aborting",this.S=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.f.abort=function(O){this.L&&this.B&&(this.getStatus(),this.B=!1,this.D=!0,this.L.abort(),this.D=!1,this.S=O||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Yt(this))}; g.f.eN=function(){this.L&&(this.B&&(this.B=!1,this.D=!0,this.L.abort(),this.D=!1),Yt(this,!0));g.LE.gS.eN.call(this)}; g.f.Yg=function(){this.jN()||(this.OQ||this.W||this.D?NJs(this):this.q8u())}; g.f.q8u=function(){NJs(this)}; g.f.isActive=function(){return!!this.L}; g.f.isComplete=function(){return g.hW(this)==4}; g.f.getStatus=function(){try{return g.hW(this)>2?this.L.status:-1}catch(O){return-1}}; g.f.getResponseHeader=function(O){if(this.L&&this.isComplete())return O=this.L.getResponseHeader(O),O===null?void 0:O}; g.f.getLastError=function(){return typeof this.N==="string"?this.N:String(this.N)};RC.prototype.send=function(O,R,J){R=R===void 0?function(){}:R; J=J===void 0?function(){}:J; VyT(O.url,function(l){l=l.target;zA(l)?R(g.nE(l)):J(l.getStatus())},O.requestType,O.body,O.requestHeaders,O.timeoutMillis,O.withCredentials)}; RC.prototype.u1=function(){return 1};gl.prototype.done=function(){this.logger.Cz(this.event,JA()-this.startTime)}; g.S(i4,w2);g.S(u4,i4);g.f=u4.prototype;g.f.qA=function(){}; g.f.d1=function(){}; g.f.Cz=function(){}; g.f.DH=function(){}; g.f.U6=function(){}; g.f.QA=function(O,R,J,l){return l}; g.f.SX=function(){}; g.f.R$=function(){}; g.f.gH=function(){}; g.f.Kw=function(){}; g.S(Fl,i4);g.f=Fl.prototype;g.f.update=function(O){this.logger.dispose();this.logger=O}; g.f.d1=function(O){this.logger.d1(O)}; g.f.Cz=function(O,R){this.logger.Cz(O,R)}; g.f.DH=function(O){this.logger.DH(O)}; g.f.U6=function(){this.logger.U6()}; g.f.QA=function(O,R,J,l){return this.logger.QA(O,R,J,l)}; g.f.SX=function(O){this.logger.SX(O)}; g.f.R$=function(O){this.logger.R$(O)}; g.f.gH=function(O){this.logger.gH(O)}; g.f.Kw=function(O){this.logger.Kw(O)}; g.f.qA=function(O){this.logger.qA(O)}; g.S(GV,g.p);g.S(Kd,i4);g.f=Kd.prototype;g.f.qA=function(O){this.metrics.ooz.Ah(O,this.fD)}; g.f.d1=function(O){this.metrics.eventCount.Gh(O,this.fD)}; g.f.Cz=function(O,R){this.metrics.jx.Ah(R,O,this.fD)}; g.f.DH=function(O){this.metrics.errorCount.Gh(O,this.fD)}; g.f.QA=function(O,R,J,l){function u(y){if(!F.jN()){var w=JA()-G;F.metrics.nqU.Ah(w,O,J,y,R,F.fD)}} var F=this,G=JA();l.then(function(){return void u(0)},function(y){return void u(y instanceof xt?y.code:-1)}); return l}; g.f.SX=function(O){this.metrics.SVg.Gh(O,this.fD)}; g.f.R$=function(O){this.metrics.OR.Gh(O,this.fD)}; g.f.gH=function(O){this.metrics.gqq.Gh(O,this.fD)}; g.S(yO,Kd);yO.prototype.Kw=function(O){var R=this;this.L.dispose();this.S&&this.service.dispose();this.service=this.options.Eo("49",this.options.Lr.concat(O));this.L=new GV(function(){return void R.service.hJ()},this.options.Lj); this.metrics=Dms(this.service);this.B=O}; yO.prototype.U6=function(){vGT(this.L)};g.S(wl,ff);g.S(IC,ff);g.S(Cd,ff);var ekx=iv(Cd),TJz=function(O){return NA(function(R){return R instanceof O&&!Vy(R)})}(Cd); Cd.messageId="bfkj";g.S(y_,ff);g.S(rl,ff);var $mf=iv(rl);g.S(oC,g.p);oC.prototype.snapshot=function(O){if(this.jN())throw Error("Already disposed");this.logger.d1("n");var R=this.logger.share();return this.B.then(function(J){var l=J.fb;return new Promise(function(u){var F=new gl(R,"n");l(function(G){F.done();R.qA(G.length);R.U6();R.dispose();u(G)},[O.ya, O.Y_,O.iW,O.Xj])})})}; oC.prototype.j3=function(O){var R=this;if(this.jN())throw Error("Already disposed");this.logger.d1("n");var J=l4(this.logger,function(){return R.N([O.ya,O.Y_,O.iW,O.Xj])},"n"); this.logger.qA(J.length);this.logger.U6();return J}; oC.prototype.O3=function(O){this.B.then(function(R){var J;(J=R.jez)==null||J(O)})}; oC.prototype.ib=function(){return this.logger.share()};g.S(fd,ff);g.S(Sf,ff);Nb.prototype.U1=function(O){return Hi_(this,O,new u4,0)};g.S(mL,g.p);mL.prototype.snapshot=function(O){var R=this;return g.A(function(J){switch(J.S){case 1:if(R.jN())throw Error("Already disposed");if(R.S||R.J){J.pJ(2);break}return g.k(J,R.D.promise,2);case 2:if(!R.S){J.pJ(4);break}return g.k(J,R.S.snapshot(O),5);case 5:return J.return(J.L);case 4:throw R.J;}})}; mL.prototype.O3=function(O){var R,J;(R=this.S)==null||(J=R.O3)==null||J.call(R,O)}; mL.prototype.handleError=function(O){if(!this.jN()){this.J=O;this.D.resolve();var R,J;(J=(R=this.options).n9Q)==null||J.call(R,O)}}; mL.prototype.ib=function(){return this.logger.share()}; var j_T={fZd:432E5,vU:3E5,Dk:10,Za:1E4,Jf:3E4,kdN:3E4,tzJ:6E4,Q_:1E3,qz:6E4,XS:6E5,v1:.25,YB:2,maxAttempts:10};var K26,O7f=(K26=Math.imul)!=null?K26:function(O,R){return O*R|0},vX=[196, 200,224,18];Xl.prototype.SQ=function(){return String(this.L)+","+this.S.join()}; Xl.prototype.kW=function(O,R){var J=void 0;if(this.S[this.L]!==O){var l=this.S.indexOf(O);l!==-1?(this.S.splice(l,1),l0;)R[J++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(O%62),O=Math.floor(O/62);return R.join("")}};var CGz;g.S($9,g.p);$9.prototype.Z8=function(O,R){var J=this.GP(O);R==null||R(J);return l4(this.logger,function(){return g.RK(J,2)},this.S)}; CGz=Symbol.dispose;g.S(k9,$9);k9.prototype.GP=function(O,R){var J=this;this.logger.d1(this.L);++this.D>=this.j&&this.B.resolve();var l=O();O=l4(this.logger,function(){return J.N(l)},"C"); if(O===void 0)throw new uG(17,"YNJ:Undefined");if(!(O instanceof Uint8Array))throw new uG(18,"ODM:Invalid");R==null||R(O);return O}; g.S(sn,$9);sn.prototype.GP=function(){return this.N}; g.S(b4,$9);b4.prototype.GP=function(){var O=this;return l4(this.logger,function(){return gX(O.N)},"d")}; b4.prototype.Z8=function(){return this.N}; g.S(WX,$9);WX.prototype.GP=function(){if(this.N)return this.N;this.N=rYh(this,function(O){return"_"+IqA(O)}); return rYh(this,function(O){return O})}; g.S(ef,$9);ef.prototype.GP=function(){var O=Math.floor(Date.now()/1E3),R=[Math.random()*255,Math.random()*255],J=R.concat([this.N&255,this.clientState],[O>>24&255,O>>16&255,O>>8&255,O&255]);O=new Uint8Array(2+J.length);O[0]=34;O[1]=J.length;O.set(J,2);J=O.subarray(2);for(var l=R=R.length;l150))try{this.cache=new FVT(O,this.logger)}catch(R){this.reportError(new uG(22,"GBJ:init",R))}}; g.f.reportError=function(O){this.logger.DH(O.code);this.onError(O);return O}; var Z7T=function(O){return NA(function(R){if(!tU(R))return!1;for(var J=g.N(Object.entries(O)),l=J.next();!l.done;l=J.next()){var u=g.N(l.value);l=u.next().value;u=u.next().value;if(!(l in R)){if(u.GNQ===!0)continue;return!1}if(!u(R[l]))return!1}return!0})}({m$:function(O){return NA(function(R){return R instanceof O})}(mL)},"");var LLW=(new Date).getTime();g.S(x9,ff);var yxk=iv(x9);vQs.prototype.getMetadata=function(){return this.metadata};Un.prototype.getMetadata=function(){return this.metadata}; Un.prototype.getStatus=function(){return this.status};jf.prototype.J=function(O,R){R=R===void 0?{}:R;return new vQs(O,this,R)}; jf.prototype.getName=function(){return this.name};var wlI=new jf("/google.internal.waa.v1.Waa/Create",fd,x9,function(O){return O.SQ()},yxk);g.S(QO,ff);var BJx=new jf("/google.internal.waa.v1.Waa/GenerateIT",Sf,QO,function(O){return O.SQ()},iv(QO));var JW0=new Set(["SAPISIDHASH","APISIDHASH"]);g.S(Ld,ff);Ld.prototype.getValue=function(){var O=fO(this,2);if(Array.isArray(O)||O instanceof ff)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return TU(this,2)};g.S(Y9,ff);Y9.prototype.getMessage=function(){return d4(this,2)}; var kmA=iv(Y9);dl.prototype.xa=function(O,R){O=="data"?this.B.push(R):O=="metadata"?this.D.push(R):O=="status"?this.j.push(R):O=="end"?this.N.push(R):O=="error"&&this.S.push(R);return this}; dl.prototype.removeListener=function(O,R){O=="data"?Og(this.B,R):O=="metadata"?Og(this.D,R):O=="status"?Og(this.j,R):O=="end"?Og(this.N,R):O=="error"&&Og(this.S,R);return this}; dl.prototype.cancel=function(){this.L.abort()}; dl.prototype.cancel=dl.prototype.cancel;dl.prototype.removeListener=dl.prototype.removeListener;dl.prototype.on=dl.prototype.xa;g.S(T2h,Error);g.y6(g.R8,oG_);g.R8.prototype.L=function(){var O=new J7(this.N,this.B);this.S&&O.setCredentialsMode(this.S);return O}; g.R8.prototype.setCredentialsMode=function(O){this.S=O}; g.y6(J7,g.tW);g.f=J7.prototype;g.f.open=function(O,R){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.SN=O;this.W=R;this.readyState=1;gE(this)}; g.f.send=function(O){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.L=!0;var R={headers:this.V,method:this.SN,credentials:this.D,cache:void 0};O&&(R.body=O);(this.Hq||g.YW).fetch(new Request(this.W,R)).then(this.T$.bind(this),this.xQ.bind(this))}; g.f.abort=function(){this.response=this.responseText="";this.V=new Headers;this.status=0;this.B&&this.B.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.L&&this.readyState!=4&&(this.L=!1,iD(this));this.readyState=0}; g.f.T$=function(O){if(this.L&&(this.N=O,this.S||(this.status=this.N.status,this.statusText=this.N.statusText,this.S=O.headers,this.readyState=2,gE(this)),this.L&&(this.readyState=3,gE(this),this.L)))if(this.responseType==="arraybuffer")O.arrayBuffer().then(this.V8.bind(this),this.xQ.bind(this));else if(typeof g.YW.ReadableStream!=="undefined"&&"body"in O){this.B=O.body.getReader();if(this.j){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.J=new TextDecoder;svW(this)}else O.text().then(this.Ak.bind(this),this.xQ.bind(this))}; g.f.dV=function(O){if(this.L){if(this.j&&O.value)this.response.push(O.value);else if(!this.j){var R=O.value?O.value:new Uint8Array(0);if(R=this.J.decode(R,{stream:!O.done}))this.response=this.responseText+=R}O.done?iD(this):gE(this);this.readyState==3&&svW(this)}}; g.f.Ak=function(O){this.L&&(this.response=this.responseText=O,iD(this))}; g.f.V8=function(O){this.L&&(this.response=O,iD(this))}; g.f.xQ=function(){this.L&&iD(this)}; g.f.setRequestHeader=function(O,R){this.V.append(O,R)}; g.f.getResponseHeader=function(O){return this.S?this.S.get(O.toLowerCase())||"":""}; g.f.getAllResponseHeaders=function(){if(!this.S)return"";for(var O=[],R=this.S.entries(),J=R.next();!J.done;)J=J.value,O.push(J[0]+": "+J[1]),J=R.next();return O.join("\r\n")}; g.f.setCredentialsMode=function(O){this.D=O}; Object.defineProperty(J7.prototype,"withCredentials",{get:function(){return this.D==="include"}, set:function(O){this.setCredentialsMode(O?"include":"same-origin")}});g.lD.prototype.toString=function(){var O=[],R=this.D;R&&O.push(I8(R,IJ6,!0),":");var J=this.L;if(J||R=="file")O.push("//"),(R=this.V)&&O.push(I8(R,IJ6,!0),"@"),O.push(e7z(g.r7(J))),J=this.B,J!=null&&O.push(":",String(J));if(J=this.S)this.L&&J.charAt(0)!="/"&&O.push("/"),O.push(I8(J,J.charAt(0)=="/"?Ce6:rxM,!0));(J=this.N.toString())&&O.push("?",J);(J=this.j)&&O.push("#",I8(J,tLQ));return O.join("")}; g.lD.prototype.resolve=function(O){var R=this.clone(),J=!!O.D;J?g.uD(R,O.D):J=!!O.V;J?R.V=O.V:J=!!O.L;J?g.Fh(R,O.L):J=O.B!=null;var l=O.S;if(J)g.GR(R,O.B);else if(J=!!O.S){if(l.charAt(0)!="/")if(this.L&&!this.S)l="/"+l;else{var u=R.S.lastIndexOf("/");u!=-1&&(l=R.S.slice(0,u+1)+l)}u=l;if(u==".."||u==".")l="";else if(g.ZJ(u,"./")||g.ZJ(u,"/.")){l=tx(u,"/");u=u.split("/");for(var F=[],G=0;G1||F.length==1&&F[0]!="")&&F.pop(), l&&G==u.length&&F.push("")):(F.push(y),l=!0)}l=F.join("/")}else l=u}J?R.S=l:J=O.N.toString()!=="";J?KP(R,O.N.clone()):J=!!O.j;J&&(R.j=O.j);return R}; g.lD.prototype.clone=function(){return new g.lD(this)}; var IJ6=/[#\/\?@]/g,rxM=/[#\?:]/g,Ce6=/[#\?]/g,WVh=/[#\?@]/g,tLQ=/#/g;g.f=wE.prototype;g.f.add=function(O,R){t7(this);this.B=null;O=o8(this,O);var J=this.L.get(O);J||this.L.set(O,J=[]);J.push(R);this.S=this.S+1;return this}; g.f.remove=function(O){t7(this);O=o8(this,O);return this.L.has(O)?(this.B=null,this.S=this.S-this.L.get(O).length,this.L.delete(O)):!1}; g.f.clear=function(){this.L=this.B=null;this.S=0}; g.f.isEmpty=function(){t7(this);return this.S==0}; g.f.forEach=function(O,R){t7(this);this.L.forEach(function(J,l){J.forEach(function(u){O.call(R,u,l,this)},this)},this)}; g.f.kz=function(){t7(this);for(var O=Array.from(this.L.values()),R=Array.from(this.L.keys()),J=[],l=0;l0?String(O[0]):R}; g.f.toString=function(){if(this.B)return this.B;if(!this.L)return"";for(var O=[],R=Array.from(this.L.keys()),J=0;J>>3;F.B!=1&&F.B!=2&&F.B!=15&&Su(F,G,y,"unexpected tag");F.L=1;F.S=0;F.N=0} function J(w){F.N++;F.N==5&&w&240&&Su(F,G,y,"message length too long");F.S|=(w&127)<<(F.N-1)*7;w&128||(F.L=2,F.V=0,typeof Uint8Array!=="undefined"?F.D=new Uint8Array(F.S):F.D=Array(F.S),F.S==0&&u())} function l(w){F.D[F.V++]=w;F.V==F.S&&u()} function u(){if(F.B<15){var w={};w[F.B]=F.D;F.J.push(w)}F.L=0} for(var F=this,G=O instanceof Array?O:new Uint8Array(O),y=0;y0?O:null};Nu.prototype.isInputValid=function(){return this.L===null}; Nu.prototype.HH=function(){return this.L}; Nu.prototype.aK=function(){return!1}; Nu.prototype.parse=function(O){this.L!==null&&jvL(this,O,"stream already broken");var R=null;try{var J=this.B;J.B||Uqs(J,O,"stream already broken");J.L+=O;var l=Math.floor(J.L.length/4);if(l==0)var u=null;else{try{var F=eQA(J.L.slice(0,l*4))}catch(G){Uqs(J,J.L,G.message)}J.S+=l*4;J.L=J.L.slice(l*4);u=F}R=u===null?null:this.N.parse(u)}catch(G){jvL(this,O,G.message)}this.S+=O.length;return R};var Zzs={INIT:0,Rp:1,Cv:2,vg:3,cV:4,PV:5,STRING:6,Kv:7,RC:8,iB:9,hw:10,p6:11,Nv:12,Yc:13,qv:14,Qf:15,Sk:16,HL:17,FP:18,qI:19,tG:20};g.f=Eg.prototype;g.f.isInputValid=function(){return this.D!=3}; g.f.HH=function(){return this.W}; g.f.done=function(){return this.D===2}; g.f.aK=function(){return!1}; g.f.parse=function(O){function R(){for(;t0;)if(V=O[t++], F.V===4?F.V=0:F.V++,!V)break a;if(V==='"'&&!F.J){F.L=l();break}if(V==="\\"&&!F.J&&(F.J=!0,V=O[t++],!V))break;if(F.J)if(F.J=!1,V==="u"&&(F.V=1),V=O[t++])continue;else break;y.lastIndex=t;V=y.exec(O);if(!V){t=O.length+1;break}t=V.index+1;V=O[V.index];if(!V)break}F.B+=t-m;continue;case w.iB:if(!V)continue;V==="r"?F.L=w.hw:Dj(F,O,t);continue;case w.hw:if(!V)continue;V==="u"?F.L=w.p6:Dj(F,O,t);continue;case w.p6:if(!V)continue;V==="e"?F.L=l():Dj(F,O,t);continue;case w.Nv:if(!V)continue;V==="a"?F.L=w.Yc: Dj(F,O,t);continue;case w.Yc:if(!V)continue;V==="l"?F.L=w.qv:Dj(F,O,t);continue;case w.qv:if(!V)continue;V==="s"?F.L=w.Qf:Dj(F,O,t);continue;case w.Qf:if(!V)continue;V==="e"?F.L=l():Dj(F,O,t);continue;case w.Sk:if(!V)continue;V==="u"?F.L=w.HL:Dj(F,O,t);continue;case w.HL:if(!V)continue;V==="l"?F.L=w.FP:Dj(F,O,t);continue;case w.FP:if(!V)continue;V==="l"?F.L=l():Dj(F,O,t);continue;case w.qI:V==="."?F.L=w.tG:Dj(F,O,t);continue;case w.tG:if("0123456789.eE+-".indexOf(V)!==-1)continue;else t--,F.B--,F.L= l();continue;default:Dj(F,O,t)}}} function l(){var V=G.pop();return V!=null?V:w.Rp} function u(V){if(!(F.S>1)){V||(V=r===-1?F.N+O.substring(C,t):O.substring(r,t));if(F.SN)F.j.push(V);else{var m=F.j,E=m.push;V=JSON.parse(V);E.call(m,V)}r=t}} for(var F=this,G=F.Hq,y=F.OQ,w=Zzs,I=O.length,C=0,r=-1,t=0;t0?(Z=F.j,F.j=[],Z):null}return null};a8.prototype.isInputValid=function(){return this.D===null}; a8.prototype.HH=function(){return this.D}; a8.prototype.aK=function(){return!1}; a8.prototype.parse=function(O){function R(w){F.S=6;F.D="The stream is broken @"+F.L+"/"+G+". Error: "+w+". With input:\n";throw Error(F.D);} function J(){F.B=new Eg({vyU:!0,WF:!0})} function l(w){if(w)for(var I=0;I1)&&R("extra status: "+w);F.j=!0;var I={};I[2]=w[0];F.N.push(I)}} for(var F=this,G=0;G0?(O=F.N,F.N=[],O):null};vJ.prototype.De=function(){return this.L}; vJ.prototype.getStatus=function(){return this.D}; vJ.prototype.SN=function(O){O=O.target;try{if(O==this.L)a:{var R=g.hW(this.L),J=this.L.S,l=this.L.getStatus(),u=g.nE(this.L);O=[];if(g.ch(this.L)instanceof Array){var F=g.ch(this.L);F.length>0&&F[0]instanceof Uint8Array&&(this.W=!0,O=F)}if(!(R<3||R==3&&!u&&O.length==0))if(l=l==200||l==206,R==4&&(J==8?Xh(this,7):J==7?Xh(this,8):l||Xh(this,3)),this.S||(this.S=Qvs(this.L),this.S==null&&Xh(this,5)),this.D>2)qu(this);else{if(O.length>this.B){var G=O.length;J=[];try{if(this.S.aK())for(var y=0;ythis.B){y=u.slice(this.B);this.B=u.length;try{var I=this.S.parse(y);I!=null&&this.N&&this.N(I)}catch(C){Xh(this,5);qu(this);break a}}R==4?(u.length!= 0||this.W?Xh(this,2):Xh(this,4),qu(this)):Xh(this,1)}}}catch(C){Xh(this,6),qu(this)}};g.f=LVp.prototype;g.f.xa=function(O,R){var J=this.S[O];J||(J=[],this.S[O]=J);J.push(R);return this}; g.f.addListener=function(O,R){this.xa(O,R);return this}; g.f.removeListener=function(O,R){var J=this.S[O];J&&g.ft(J,R);(O=this.L[O])&&g.ft(O,R);return this}; g.f.once=function(O,R){var J=this.L[O];J||(J=[],this.L[O]=J);J.push(R);return this}; g.f.C5d=function(O){var R=this.S.data;R&&Yh0(O,R);(R=this.L.data)&&Yh0(O,R);this.L.data=[]}; g.f.Rw1=function(){switch(this.B.getStatus()){case 1:kP(this,"readable");break;case 5:case 6:case 4:case 7:case 3:kP(this,"error");break;case 8:kP(this,"close");break;case 2:kP(this,"end")}};dqx.prototype.serverStreaming=function(O,R,J,l){var u=this,F=O.substring(0,O.length-l.name.length);return h7W(function(G){var y=G.jg,w=G.getMetadata(),I=cY0(u,!1);w=OEh(u,w,I,F+y.getName());var C=RBz(I,y.S,!0);G=y.L(G.jH);I.send(w,"POST",G);return C},this.N).call(this,l.J(R,J))};gtA.prototype.create=function(O,R){return p10(this.L,this.S+"/$rpc/google.internal.waa.v1.Waa/Create",O,R||{},wlI)};var iEs="://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(" "),lPs=/\bocr\b/;var Ftp=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(O){throw O;}},{VVQ:!0, T1q:!0,K5N:d0_,P7Q:hLR,tVU:!1,j4q:!1,AsN:!0,l2h:!1});var WJ=null,rWH=Symbol("SIGNAL"),r$={version:0,zCQ:0,Cp:!1,qU:void 0,No:void 0,C8:void 0,yL:0,J4:void 0,A8:void 0,Da:!1,qa:!1,kind:"unknown",HX:function(){return!1}, F3:function(){}, ra:function(){}, GgU:function(){}};var tP=Symbol("UNSET"),op=Symbol("COMPUTING"),Zv=Symbol("ERRORED");Object.assign({},r$,{value:tP,Cp:!0,error:null,ZG:bD,kind:"computed",HX:function(O){return O.value===tP||O.value===op}, F3:function(O){if(O.value===op)throw Error("Detected cycle in computations.");var R=O.value;O.value=op;var J=GAH(O),l=!1;try{var u=O.j0();A7(null);l=R!==tP&&R!==Zv&&u!==Zv&&O.ZG(R,u)}catch(F){u=Zv,O.error=F}finally{Kt2(O,J)}l?O.value=R:(O.value=u,O.version++)}});var CM2=Object.assign({},r$,{ZG:bD,value:void 0,kind:"signal"});Object.assign({},r$,{value:tP,Cp:!0,error:null,ZG:bD,kind:"linkedSignal",HX:function(O){return O.value===tP||O.value===op}, F3:function(O){if(O.value===op)throw Error("Detected cycle in computations.");var R=O.value;O.value=op;var J=GAH(O);try{var l=O.source();var u=O.j0(l,R===tP||R===Zv?void 0:{source:O.RjN,value:R});O.RjN=l}catch(F){u=Zv,O.error=F}finally{Kt2(O,J)}R!==tP&&u!==Zv&&O.ZG(R,u)?O.value=R:(O.value=u,O.version++)}});Object.assign({},r$,{qa:!0,Da:!1,ra:function(O){O.schedule!==null&&O.schedule(O.Nsd)}, jYg:!1,rsQ:function(){}});g.S(BJ,g.tW);BJ.prototype.dispose=function(){window.removeEventListener("offline",this.B);window.removeEventListener("online",this.B);this.S8.wU(this.D);delete BJ.instance}; BJ.prototype.qK=function(){return this.L}; BJ.prototype.BY=function(){var O=this;this.D=this.S8.lS(function(){var R;return g.A(function(J){if(J.S==1)return O.L?((R=window.navigator)==null?0:R.onLine)?J.pJ(3):g.k(J,pP(O),3):g.k(J,pP(O),3);O.BY();g.ST(J)})},3E4)};xP.prototype.set=function(O,R){R=R===void 0?!0:R;0<=O&&O<52&&Number.isInteger(O)&&this.data[O]!==R&&(this.data[O]=R,this.L=-1)}; xP.prototype.get=function(O){return!!this.data[O]};var ju;g.y6(g.YP,g.p);g.f=g.YP.prototype;g.f.start=function(){this.stop();this.N=!1;var O=fPL(this),R=SfA(this);O&&!R&&this.S.mozRequestAnimationFrame?(this.L=g.uM(this.S,"MozBeforePaint",this.B),this.S.mozRequestAnimationFrame(null),this.N=!0):this.L=O&&R?O.call(this.S,this.B):this.S.setTimeout(UsH(this.B),20)}; g.f.stop=function(){if(this.isActive()){var O=fPL(this),R=SfA(this);O&&!R&&this.S.mozRequestAnimationFrame?yK(this.L):O&&R?R.call(this.S,this.L):this.S.clearTimeout(this.L)}this.L=null}; g.f.isActive=function(){return this.L!=null}; g.f.OE=function(){this.N&&this.L&&yK(this.L);this.L=null;this.j.call(this.D,g.Fk())}; g.f.eN=function(){this.stop();g.YP.gS.eN.call(this)};g.y6(g.zR,g.p);g.f=g.zR.prototype;g.f.rk=0;g.f.eN=function(){g.zR.gS.eN.call(this);this.stop();delete this.L;delete this.S}; g.f.start=function(O){this.stop();this.rk=g.pE(this.B,O!==void 0?O:this.Wc)}; g.f.stop=function(){this.isActive()&&g.YW.clearTimeout(this.rk);this.rk=0}; g.f.isActive=function(){return this.rk!=0}; g.f.vj=function(){this.rk=0;this.L&&this.L.call(this.S)};g.S(g.RP,g.p);g.f=g.RP.prototype;g.f.bM=function(O){this.B=arguments;this.GR||this.S?this.L=!0:J3(this)}; g.f.stop=function(){this.GR&&(g.YW.clearTimeout(this.GR),this.GR=null,this.L=!1,this.B=null)}; g.f.pause=function(){this.S++}; g.f.resume=function(){this.S--;this.S||!this.L||this.GR||(this.L=!1,J3(this))}; g.f.eN=function(){g.p.prototype.eN.call(this);this.stop()};g.gI.prototype[Symbol.iterator]=function(){return this}; g.gI.prototype.next=function(){var O=this.L.next();return{value:O.done?void 0:this.S.call(void 0,O.value),done:O.done}};g.y6(g.IP,g.tW);g.f=g.IP.prototype;g.f.isPlaying=function(){return this.L==1}; g.f.isPaused=function(){return this.L==-1}; g.f.Gj=function(){this.Du("begin")}; g.f.y6=function(){this.Du("end")}; g.f.onFinish=function(){this.Du("finish")}; g.f.onStop=function(){this.Du("stop")}; g.f.Du=function(O){this.dispatchEvent(O)};var VLI=th(function(){var O=g.cE("DIV"),R=g.d7?"-webkit":Bw?"-moz":null,J="transition:opacity 1s linear;";R&&(J+=R+"-transition:opacity 1s linear;");R=qCh({style:J});if(O.nodeType===1&&/^(script|style)$/i.test(O.tagName))throw Error("");O.innerHTML=R4(R);return g.Hw(O.firstChild,"transition")!=""});g.y6(CM,g.IP);g.f=CM.prototype;g.f.play=function(){if(this.isPlaying())return!1;this.Gj();this.Du("play");this.startTime=g.Fk();this.L=1;if(VLI())return g.pS(this.S,this.j),this.B=g.pE(this.J3R,void 0,this),!0;this.Z_(!1);return!1}; g.f.J3R=function(){g.zX(this.S);EtA(this.S,this.J);g.pS(this.S,this.N);this.B=g.pE((0,g.iQ)(this.Z_,this,!1),this.D*1E3)}; g.f.stop=function(){this.isPlaying()&&this.Z_(!0)}; g.f.Z_=function(O){g.pS(this.S,"transition","");g.YW.clearTimeout(this.B);g.pS(this.S,this.N);this.endTime=g.Fk();this.L=0;if(O)this.onStop();else this.onFinish();this.y6()}; g.f.eN=function(){this.stop();CM.gS.eN.call(this)}; g.f.pause=function(){};var aPs={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};rI("Element","attributes")||rI("Node","attributes");rI("Element","innerHTML")||rI("HTMLElement","innerHTML");rI("Node","nodeName");rI("Node","nodeType");rI("Node","parentNode");rI("Node","childNodes");rI("HTMLElement","style")||rI("Element","style");rI("HTMLStyleElement","sheet");var qfH=XhH("getPropertyValue"),kAh=XhH("setProperty");rI("Element","namespaceURI")||rI("Node","namespaceURI");var MbT={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var AWp,P2t,Wth,bEf,eBx;AWp=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]");P2t=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.fJ6=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.oP=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]");Wth=/^http:\/\/.*/;g.S5M=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");bEf=/\s+/;eBx=/[\d\u06f0-\u06f9]/;VF.prototype.e5=function(){return new fM(this.S())}; VF.prototype[Symbol.iterator]=function(){return new SP(this.S())}; VF.prototype.L=function(){return new SP(this.S())}; g.S(fM,g.q3);fM.prototype.next=function(){return this.S.next()}; fM.prototype[Symbol.iterator]=function(){return new SP(this.S)}; fM.prototype.L=function(){return new SP(this.S)}; g.S(SP,VF);SP.prototype.next=function(){return this.B.next()};mA.prototype.clone=function(){return new mA(this.L,this.J,this.B,this.D,this.N,this.j,this.S,this.V)}; mA.prototype.equals=function(O){return this.L==O.L&&this.J==O.J&&this.B==O.B&&this.D==O.D&&this.N==O.N&&this.j==O.j&&this.S==O.S&&this.V==O.V};DH.prototype.clone=function(){return new DH(this.start,this.end)}; DH.prototype.getLength=function(){return this.end-this.start};(function(){if(HWx){var O=/Windows NT ([0-9.]+)/;return(O=O.exec(g.aW()))?O[1]:"0"}return Jy?(O=/1[0|1][_.][0-9_.]+/,(O=O.exec(g.aW()))?O[0].replace(/_/g,"."):"10"):g.O$?(O=/Android\s+([^\);]+)(\)|;)/,(O=O.exec(g.aW()))?O[1]:""):csC||Ots||RII?(O=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(O=O.exec(g.aW()))?O[1].replace(/_/g,"."):""):""})();var phx=function(){if(g.du)return aP(/Firefox\/([0-9.]+)/);if(g.t3||g.dj||g.Xd)return DsA;if(g.Wd){if(Eo()||DR()){var O=aP(/CriOS\/([0-9.]+)/);if(O)return O}return aP(/Chrome\/([0-9.]+)/)}if(g.N$&&!Eo())return aP(/Version\/([0-9.]+)/);if(z3||n_){if(O=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.aW()))return O[1]+"."+O[2]}else if(g.Tj)return(O=aP(/Android\s+([0-9.]+)/))?O:aP(/Version\/([0-9.]+)/);return""}();g.y6(g.X8,g.p);g.f=g.X8.prototype;g.f.subscribe=function(O,R,J){var l=this.S[O];l||(l=this.S[O]=[]);var u=this.j;this.L[u]=O;this.L[u+1]=R;this.L[u+2]=J;this.j=u+3;l.push(u);return u}; g.f.unsubscribe=function(O,R,J){if(O=this.S[O]){var l=this.L;if(O=O.find(function(u){return l[u+1]==R&&l[u+2]==J}))return this.Pf(O)}return!1}; g.f.Pf=function(O){var R=this.L[O];if(R){var J=this.S[R];this.N!=0?(this.B.push(O),this.L[O+1]=function(){}):(J&&g.ft(J,O),delete this.L[O],delete this.L[O+1],delete this.L[O+2])}return!!R}; g.f.publish=function(O,R){var J=this.S[O];if(J){var l=Array(arguments.length-1),u=arguments.length,F;for(F=1;F0&&this.N==0)for(;J=this.B.pop();)this.Pf(J)}}return F!=0}return!1}; g.f.clear=function(O){if(O){var R=this.S[O];R&&(R.forEach(this.Pf,this),delete this.S[O])}else this.L.length=0,this.S={}}; g.f.eN=function(){g.X8.gS.eN.call(this);this.clear();this.B.length=0};g.Tw.prototype.set=function(O,R){R===void 0?this.L.remove(O):this.L.set(O,g.Uf(R))}; g.Tw.prototype.get=function(O){try{var R=this.L.get(O)}catch(J){return}if(R!==null)try{return JSON.parse(R)}catch(J){throw"Storage: Invalid value was encountered";}}; g.Tw.prototype.remove=function(O){this.L.remove(O)};g.y6($6,g.Tw);$6.prototype.set=function(O,R){$6.gS.set.call(this,O,xGA(R))}; $6.prototype.S=function(O){O=$6.gS.get.call(this,O);if(O===void 0||O instanceof Object)return O;throw"Storage: Invalid value was encountered";}; $6.prototype.get=function(O){if(O=this.S(O)){if(O=O.data,O===void 0)throw"Storage: Invalid value was encountered";}else O=void 0;return O};g.y6(Mx,$6);Mx.prototype.set=function(O,R,J){if(R=xGA(R)){if(J){if(J=J.length)return g.KB;var u=J.key(R++);if(O)return g.kl(u);u=J.getItem(u);if(typeof u!=="string")throw"Storage mechanism: Invalid value was encountered";return g.kl(u)}; return l}; g.f.clear=function(){bI(this);this.L.clear()}; g.f.key=function(O){bI(this);return this.L.key(O)};g.y6(W4,sW);g.y6(Lt_,sW);g.y6(A3,k6);A3.prototype.set=function(O,R){this.S.set(this.L+O,R)}; A3.prototype.get=function(O){return this.S.get(this.L+O)}; A3.prototype.remove=function(O){this.S.remove(this.L+O)}; A3.prototype.e5=function(O){var R=this.S[Symbol.iterator](),J=this,l=new g.q3;l.next=function(){var u=R.next();if(u.done)return u;for(u=u.value;u.slice(0,J.L.length)!=J.L;){u=R.next();if(u.done)return u;u=u.value}return g.kl(O?u.slice(J.L.length):J.S.get(u))}; return l};P4.prototype.getValue=function(){return this.S}; P4.prototype.clone=function(){return new P4(this.L,this.S)};g.f=pM.prototype;g.f.kW=function(O,R){var J=this.L;J.push(new P4(O,R));O=J.length-1;R=this.L;for(J=R[O];O>0;){var l=O-1>>1;if(R[l].L>J.L)R[O]=R[l],O=l;else break}R[O]=J}; g.f.remove=function(){var O=this.L,R=O.length,J=O[0];if(!(R<=0)){if(R==1)O.length=0;else{O[0]=O.pop();O=0;R=this.L;for(var l=R.length,u=R[O];O>1;){var F=O*2+1,G=O*2+2;F=Gu.L)break;R[O]=R[F];O=F}R[O]=u}return J.getValue()}}; g.f.j5=function(){for(var O=this.L,R=[],J=O.length,l=0;l>>16&65535|0;for(var F;J!==0;){F=J>2E3?2E3:J;J-=F;do u=u+R[l++]|0,O=O+u|0;while(--F);u%=65521;O%=65521}return u|O<<16|0};for(var tD={},V7,aJC=[],fB=0;fB<256;fB++){V7=fB;for(var vbV=0;vbV<8;vbV++)V7=V7&1?3988292384^V7>>>1:V7>>>1;aJC[fB]=V7}tD=function(O,R,J,l){J=l+J;for(O^=-1;l>>8^aJC[(O^R[l])&255];return O^-1};var lP={};lP={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 nM=[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],Rt=[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],Vfs=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],FLT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],KA=Array(576);UW(KA);var yT=Array(60);UW(yT);var OA=Array(512);UW(OA);var zw=Array(256);UW(zw);var c4=Array(29);UW(c4);var JD=Array(30);UW(JD);var tf0,o9A,Zdh,rAz=!1;var Sk;Sk=[new fA(0,0,0,0,function(O,R){var J=65535;for(J>O.m3-5&&(J=O.m3-5);;){if(O.TJ<=1){ot(O);if(O.TJ===0&&R===0)return 1;if(O.TJ===0)break}O.i5+=O.TJ;O.TJ=0;var l=O.Os+J;if(O.i5===0||O.i5>=l)if(O.TJ=O.i5-l,O.i5=l,wn(O,!1),O.dO.lj===0)return 1;if(O.i5-O.Os>=O.Bn-262&&(wn(O,!1),O.dO.lj===0))return 1}O.kW=0;if(R===4)return wn(O,!0),O.dO.lj===0?3:4;O.i5>O.Os&&wn(O,!1);return 1}), new fA(4,4,8,4,Zy),new fA(4,5,16,8,Zy),new fA(4,6,32,32,Zy),new fA(4,4,16,16,VT),new fA(8,16,32,32,VT),new fA(8,16,128,128,VT),new fA(8,32,128,256,VT),new fA(32,128,258,1024,VT),new fA(32,258,258,4096,VT)];var C4_={};C4_=function(){this.input=null;this.fN=this.Q0=this.gT=0;this.output=null;this.lI=this.lj=this.D5=0;this.msg="";this.state=null;this.im=2;this.uj=0};var fez=Object.prototype.toString; NX.prototype.push=function(O,R){var J=this.dO,l=this.options.chunkSize;if(this.ended)return!1;var u=R===~~R?R:R===!0?4:0;typeof O==="string"?J.input=hBH(O):fez.call(O)==="[object ArrayBuffer]"?J.input=new Uint8Array(O):J.input=O;J.gT=0;J.Q0=J.input.length;do{J.lj===0&&(J.output=new x6.bT(l),J.D5=0,J.lj=l);O=Ie_(J,u);if(O!==1&&O!==0)return this.y6(O),this.ended=!0,!1;if(J.lj===0||J.Q0===0&&(u===4||u===2))if(this.options.to==="string"){var F=x6.Nw(J.output,J.D5);R=F;F=F.length;if(F<65537&&(R.subarray&& DnI||!R.subarray))R=String.fromCharCode.apply(null,x6.Nw(R,F));else{for(var G="",y=0;y0||J.lj===0)&&O!==1);if(u===4)return(J=this.dO)&&J.state?(l=J.state.status,l!==42&&l!==69&&l!==73&&l!==91&&l!==103&&l!==113&&l!==666?O=uP(J,-2):(J.state=null,O=l===113?uP(J,-3):0)):O=-2,this.y6(O),this.ended=!0,O===0;u===2&&(this.y6(0),J.lj=0);return!0}; NX.prototype.y6=function(O){O===0&&(this.result=this.options.to==="string"?this.chunks.join(""):x6.P4(this.chunks));this.chunks=[];this.err=O;this.msg=this.dO.msg};var EA="@@redux/INIT"+ms(),aep="@@redux/REPLACE"+ms();var v9W=typeof Symbol==="function"&&Symbol.observable||"@@observable";var XlC=[0,W46,-3,u3];g.S(Mf0,ff);var Zpx=function(){var O=[0,eIt,AV_,JP,W46,JP,-1,u3,W46,u3,-1,eIt,u3,AV_,g$,XlC,JP,-1,u3];return function(R,J){var l={Gs:!0};J&&Object.assign(l,J);R=Yos(R,void 0,void 0,l);try{var u=new Mf0,F=u.L1;BZ(O)(F,R);var G=u}finally{R.free()}return G}}();var qns=-274329849;var U$T=new g.vi("adInfoDialogEndpoint");var ZNT=new g.vi("adPingingEndpoint");var PzH=new g.vi("crossDeviceProgressCommand");var uJ=new g.vi("actionCompanionAdRenderer");var wz=new g.vi("adActionInterstitialRenderer");var TYV=new g.vi("adDurationRemainingRenderer");var pw=new g.vi("adHoverTextButtonRenderer");var HgB=new g.vi("adInfoDialogRenderer");var m9=new g.vi("adMessageRenderer");var BO=new g.vi("adPreviewRenderer");var GC=new g.vi("adsEngagementPanelRenderer");var wgL=new g.vi("dismissablePanelTextPortraitImageRenderer");var KfL=new g.vi("adsEngagementPanelSectionListViewModel");var $n_=new g.vi("flyoutCtaRenderer");var FC=new g.vi("imageCompanionAdRenderer");var K8=new g.vi("instreamAdPlayerOverlayRenderer");var ixC=new g.vi("instreamSurveyAdBackgroundImageRenderer");var PO=new g.vi("instreamSurveyAdPlayerOverlayRenderer");var fw=new g.vi("instreamSurveyAdRenderer"),e7=new g.vi("instreamSurveyAdSingleSelectQuestionRenderer"),AG=new g.vi("instreamSurveyAdMultiSelectQuestionRenderer"),Ss=new g.vi("instreamSurveyAdAnswerRenderer"),ML_=new g.vi("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var Zt=new g.vi("instreamVideoAdRenderer");var q5o=new g.vi("textOverlayAdContentRenderer"),kMI=new g.vi("enhancedTextOverlayAdContentRenderer"),sW_=new g.vi("imageOverlayAdContentRenderer");var yW=new g.vi("playerOverlayLayoutRenderer");var I1=new g.vi("videoInterstitialButtonedCenteredLayoutRenderer");var ouW=new g.vi("aboveFeedAdLayoutRenderer");var Zkz=new g.vi("belowPlayerAdLayoutRenderer");var tXT=new g.vi("inPlayerAdLayoutRenderer");var $r=new g.vi("playerBytesAdLayoutRenderer");var WO=new g.vi("playerBytesSequenceItemAdLayoutRenderer");var bJ=new g.vi("playerUnderlayAdLayoutRenderer");var VE=new g.vi("adIntroRenderer");var tG=new g.vi("playerBytesSequentialLayoutRenderer");var zyf=new g.vi("slidingTextPlayerOverlayRenderer");var XC=new g.vi("surveyTextInterstitialRenderer");var MY=new g.vi("videoAdTrackingRenderer");var bzt=new g.vi("simpleAdBadgeRenderer");var Ia=new g.vi("skipAdRenderer"),W2C=new g.vi("skipButtonRenderer");var j7=new g.vi("adSlotRenderer");var kr=new g.vi("squeezebackPlayerSidePanelRenderer");var Ax6=new g.vi("timedPieCountdownRenderer");var jn=new g.vi("adAvatarViewModel");var QB=new g.vi("adBadgeViewModel");var Ll=new g.vi("adButtonViewModel");var eQ6=new g.vi("adDetailsLineViewModel");var PeI=new g.vi("adDisclosureBannerViewModel");var pls=new g.vi("adPodIndexViewModel");var BYs=new g.vi("imageBackgroundViewModel");var HzV=new g.vi("adGridCardCollectionViewModel");var xn6=new g.vi("adGridCardTextViewModel");var Unk=new g.vi("adPreviewViewModel");var jW4=new g.vi("playerAdAvatarLockupCardButtonedViewModel");var QWI=new g.vi("skipAdButtonViewModel");var L2I=new g.vi("skipAdViewModel");var Y5R=new g.vi("timedPieCountdownViewModel");var dn4=new g.vi("visitAdvertiserLinkViewModel");var Kw=new g.vi("bannerImageLayoutViewModel");var yE=new g.vi("topBannerImageTextIconButtonedLayoutViewModel");var wO=new g.vi("adsEngagementPanelLayoutViewModel");var sM=new g.vi("displayUnderlayTextGridCardsLayoutViewModel");g.aN=new g.vi("browseEndpoint");var hQQ=new g.vi("confirmDialogEndpoint");var V1T=new g.vi("commandContext");var Kps=new g.vi("rawColdConfigGroup");var GvT=new g.vi("rawHotConfigGroup");g.f9=new g.vi("commandExecutorCommand");g.S(sCp,ff);var iqx={QTQ:0,E5N:1,t8Q:32,M8Q:61,SiQ:67,R8u:103,f7z:86,KHX:42,CHQ:60,Udu:62,WHX:73,cDQ:76,L5X:88,nyQ:90,H8d:99,ADu:98,gyg:100,sTd:102,F5R:41,e8Q:69,wuz:70,O8U:71,XIq:2,vdd:27,ANDROID:3,mUQ:54,ziu:14,sch:91,lRu:55,Vaz:24,AjU:20,TKQ:18,tau:21,CSh:104,MaQ:30,RLJ:29,L9z:28,rDq:101,nMQ:34,WRz:36,KRu:38,IOS:5,pPh:15,IOQ:92,NBQ:40,qsN:25,QUq:17,XPR:19,vVS:64,jUN:66,xxh:26,rhU:22,Z$R:33,dx1:68,Jhd:35,yhR:53,DxX:37,YsU:39,HcJ:7,FHQ:57,eY1:43,Ocd:59,wD1:93,fRS:74,bcX:75,uJd:85,BhQ:65,hYq:80,pDh:8,g5Q:10, YkX:58,Nhg:63,icd:72,oqg:23,B1S:11,i8N:13,aQX:12,SkJ:16,ThR:56,o5Q:31,NYS:77,VWz:84,PHh:87,TUN:89,AKd:94,gdJ:95};g.S(Xo,ff);Xo.prototype.sz=function(){return d4(this,3)}; Xo.prototype.nB=function(){return d4(this,5)}; Xo.prototype.TN=function(O){return nO(this,5,O)};g.S(TH,ff);g.S(bdA,ff);g.S($B,ff);g.f=$B.prototype;g.f.getDeviceId=function(){return d4(this,6)}; g.f.hE=function(O){var R=vS(this,9,p6,3,!0);f6(R,O);return R[O]}; g.f.getPlayerType=function(){return hr(this,36)}; g.f.setHomeGroupInfo=function(O){return HS(this,bdA,81,O)}; g.f.clearLocationPlayabilityToken=function(){return NR(this,89)};g.S(MX,ff);MX.prototype.getValue=function(){return d4(this,Ar(this,u7x,2))}; var u7x=[2,3,4,5,6];g.S(qX,ff);qX.prototype.setTrackingParams=function(O){return NR(this,1,zQH(O,!1))};g.S(kB,ff);g.S(sA,ff);sA.prototype.hE=function(O){var R=vS(this,5,B2,3,!0);f6(R,O);return R[O]};g.S(bP,ff);bP.prototype.getToken=function(){return Qm(this,2)}; bP.prototype.setToken=function(O){return nO(this,2,O)};g.S(Wi,ff);Wi.prototype.setSafetyMode=function(O){return OQ(this,5,O)};g.S(AD,ff);AD.prototype.Mo=function(O){return HS(this,$B,1,O)};var xr=new g.vi("thumbnailLandscapePortraitRenderer");g.zQ4=new g.vi("changeEngagementPanelVisibilityAction");var thL=new g.vi("continuationCommand");g.nbQ=new g.vi("openPopupAction");g.NE=new g.vi("webCommandMetadata");var bws=new g.vi("metadataBadgeRenderer");var r22=new g.vi("signalServiceEndpoint");var PM=new g.vi("innertubeCommand");var RqW=new g.vi("loggingDirectives");var fjp={hZd:"EMBEDDED_PLAYER_MODE_UNKNOWN",uAJ:"EMBEDDED_PLAYER_MODE_DEFAULT",iLz:"EMBEDDED_PLAYER_MODE_PFP",BUd:"EMBEDDED_PLAYER_MODE_PFL"};var F9T=new g.vi("channelThumbnailEndpoint");var uPh=new g.vi("embeddedPlayerErrorMessageRenderer");var JMW=new g.vi("embeddedPlayerOverlayVideoDetailsRenderer"),G8p=new g.vi("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),K9h=new g.vi("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var qML=new g.vi("embedsInfoPanelRenderer");var cxI=new g.vi("feedbackEndpoint");var OI6=new g.vi("callToActionButtonViewModel");var Rek=new g.vi("interactionLoggingCommandMetadata");var tkf={V8X:"WEB_DISPLAY_MODE_UNKNOWN",kmh:"WEB_DISPLAY_MODE_BROWSER",zYR:"WEB_DISPLAY_MODE_MINIMAL_UI",l7d:"WEB_DISPLAY_MODE_STANDALONE",mdQ:"WEB_DISPLAY_MODE_FULLSCREEN"};g.S(ek,ff);ek.prototype.getPlayerType=function(){return hr(this,7)}; ek.prototype.Ed=function(){return d4(this,19)}; ek.prototype.setVideoId=function(O){return nO(this,19,O)};g.S(Pi,ff);g.S(pA,ff);g.S(Bi,ff); var JgC=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516];var gCV=new g.vi("loggingContext");g.S(Hi,ff);g.S(xB,ff);xB.prototype.Ed=function(){return Qm(this,Ar(this,Iy,1))}; xB.prototype.setVideoId=function(O){return b6(this,1,Iy,dX(O))}; xB.prototype.getPlaylistId=function(){return Qm(this,Ar(this,Iy,2))}; var Iy=[1,2];g.S(WLh,ff);var RN=new g.vi("changeKeyedMarkersVisibilityCommand");var iIt=new g.vi("changeMarkersVisibilityCommand");var AGp=new g.vi("loadMarkersCommand");var lRb=new g.vi("suggestedActionDataViewModel");var EAs=new g.vi("timelyActionViewModel");var m1T=new g.vi("timelyActionsOverlayViewModel");var k5B=new g.vi("productListItemRenderer");var uRC=new g.vi("shoppingOverlayRenderer");var gLB=new g.vi("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var F86=new g.vi("adFeedbackEndpoint");var GYo=new g.vi("menuEndpoint");var BWA=new g.vi("phoneDialerEndpoint");var PjT=new g.vi("sendSmsEndpoint");var RaH=new g.vi("copyTextEndpoint");var K8C=new g.vi("shareEndpoint"),ygC=new g.vi("shareEntityEndpoint"),wEI=new g.vi("shareEntityServiceEndpoint"),IRo=new g.vi("webPlayerShareEntityServiceEndpoint");g.PT=new g.vi("urlEndpoint");g.cx=new g.vi("watchEndpoint");var CLs=new g.vi("watchPlaylistEndpoint");g.rg6=new g.vi("offlineOrchestrationActionCommand");var yIh=new g.vi("compositeVideoOverlayRenderer");var t04=new g.vi("miniplayerRenderer");var cGL=new g.vi("paidContentOverlayRenderer");var oCM=new g.vi("playerMutedAutoplayOverlayRenderer"),ZIR=new g.vi("playerMutedAutoplayEndScreenRenderer");var LNs=new g.vi("unserializedPlayerResponse"),V06=new g.vi("unserializedPlayerResponse");var fRM=new g.vi("playlistEditEndpoint");var mg;g.HO=new g.vi("buttonRenderer");mg=new g.vi("toggleButtonRenderer");var GS_=new g.vi("counterfactualRenderer");var So4=new g.vi("resolveUrlCommandMetadata");var N74=new g.vi("modifyChannelNotificationPreferenceEndpoint");var oUA=new g.vi("pingingEndpoint");var mcC=new g.vi("unsubscribeEndpoint");g.v$=new g.vi("subscribeButtonRenderer");var ECQ=new g.vi("subscribeEndpoint");var vk_=new g.vi("buttonViewModel");var yqf=new g.vi("qrCodeRenderer");var u1h={chR:"LIVING_ROOM_APP_MODE_UNSPECIFIED",toq:"LIVING_ROOM_APP_MODE_MAIN",Ksd:"LIVING_ROOM_APP_MODE_KIDS",CeN:"LIVING_ROOM_APP_MODE_MUSIC",PeU:"LIVING_ROOM_APP_MODE_UNPLUGGED",TBz:"LIVING_ROOM_APP_MODE_GAMING"};var TO_=new g.vi("autoplaySwitchButtonRenderer");var vx,fYp,Owh,Mcs;vx=new g.vi("decoratedPlayerBarRenderer");fYp=new g.vi("chapteredPlayerBarRenderer");Owh=new g.vi("multiMarkersPlayerBarRenderer");Mcs=new g.vi("chapterRenderer");g.E7s=new g.vi("markerRenderer");var WXp=new g.vi("decoratedPlayheadRenderer");var kC2=new g.vi("desktopOverlayConfigRenderer");var Ibx=new g.vi("engagementPanelSectionListRenderer");var M7x=new g.vi("gatedActionsOverlayViewModel");var X5p=new g.vi("heatMarkerRenderer");var v7T=new g.vi("heatmapRenderer");var Wop=new g.vi("watchToWatchTransitionRenderer");var i4T=new g.vi("playlistPanelRenderer");var Dco=new g.vi("productUpsellSuggestedActionViewModel");var aR4=new g.vi("suggestedActionTimeRangeTrigger"),vC4=new g.vi("suggestedActionsRenderer"),XE_=new g.vi("suggestedActionRenderer");var Tts=new g.vi("timedMarkerDecorationRenderer");var Ewz=new g.vi("cipher");var Yl_=new g.vi("playerVars");var T7_=new g.vi("playerVars");var EV=g.YW.window,$cQ,M0o,UA=(EV==null?void 0:($cQ=EV.yt)==null?void 0:$cQ.config_)||(EV==null?void 0:(M0o=EV.ytcfg)==null?void 0:M0o.data_)||{};g.dh("yt.config_",UA);var hD=[];var QC0=/^[\w.]*$/,Hd2={q:!0,search_query:!0},Blf=String(OU);var y3=new function(){var O=window.document;this.L=window;this.S=O}; g.dh("yt.ads_.signals_.getAdSignalsString",function(O){return R9(I9(O))});g.Fk();var YnL="XMLHttpRequest"in g.YW?function(){return new XMLHttpRequest}:null;var qoM="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.X(qoM);var n9_={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"},KBL="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.X(qoM)),ljp=!1,J70=DD;g.S(X6,wC);q5.prototype.then=function(O,R,J){return this.L?this.L.then(O,R,J):this.S===1&&O?(O=O.call(J,this.B))&&typeof O.then==="function"?O:sU(O):this.S===2&&R?(O=R.call(J,this.B))&&typeof O.then==="function"?O:kj(O):this}; q5.prototype.getValue=function(){return this.B}; q5.prototype.N$=function(){return this.S==2}; q5.prototype.$goog_Thenable=!0;var bl=!1;var YS=z3||n_;var ZPA=/^([0-9\.]+):([0-9\.]+)$/;g.S(Ca,wC);Ca.prototype.name="BiscottiError";g.S(IU,wC);IU.prototype.name="BiscottiMissingError";var NEh={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},rZ=null;var it2=Cx(["data-"]),Mus={};var kY6=0,t6=g.d7?"webkit":Bw?"moz":g.t3?"ms":g.Xd?"o":"",s4t=g.hs("ytDomDomGetNextId")||function(){return++kY6}; g.dh("ytDomDomGetNextId",s4t);var bPH={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};NN.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; NN.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; NN.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var mp=g.YW.ytEventsEventsListeners||{};g.dh("ytEventsEventsListeners",mp);var eTp=g.YW.ytEventsEventsCounter||{count:0};g.dh("ytEventsEventsCounter",eTp);var HPz=th(function(){var O=!1;try{var R=Object.defineProperty({},"passive",{get:function(){O=!0}}); window.addEventListener("test",null,R)}catch(J){}return O}),PD0=th(function(){var O=!1; try{var R=Object.defineProperty({},"capture",{get:function(){O=!0}}); window.addEventListener("test",null,R)}catch(J){}return O});var Dv;Dv=window;g.Q=Dv.ytcsi&&Dv.ytcsi.now?Dv.ytcsi.now:Dv.performance&&Dv.performance.timing&&Dv.performance.now&&Dv.performance.timing.navigationStart?function(){return Dv.performance.timing.navigationStart+Dv.performance.now()}:function(){return(new Date).getTime()};g.y6(X7,g.p);X7.prototype.W=function(O){O.L===void 0&&WBA(O);var R=O.L;O.S===void 0&&WBA(O);this.L=new g.qc(R,O.S)}; X7.prototype.PT=function(){return this.L||new g.qc}; X7.prototype.SN=function(){if(this.L){var O=(0,g.Q)();if(this.N!=0){var R=this.j,J=this.L,l=R.x-J.x;R=R.y-J.y;l=Math.sqrt(l*l+R*R)/(O-this.N);this.S[this.B]=Math.abs((l-this.D)/this.D)>.5?1:0;for(J=R=0;J<4;J++)R+=this.S[J]||0;R>=3&&this.J();this.D=l}this.N=O;this.j=this.L;this.B=(this.B+1)%4}}; X7.prototype.eN=function(){g.V3(this.V);g.DS(this.Hq)};g.S(Tv,g.p);Tv.prototype.U=function(O,R,J,l,u){J=g.e(g.nA((0,g.iQ)(J,l||this.w5)));J={target:O,name:R,callback:J};var F;u&&HPz()&&(F={passive:!0});O.addEventListener(R,J.callback,F);this.V.push(J);return J}; Tv.prototype.uK=function(O){for(var R=0;R=B.ql)||E.L.version>=z||E.L.objectStoreNames.contains(W)||v.push(W)}w=v;if(w.length===0){m.pJ(5);break}I=Object.keys(J.options.jO); C=y.objectStoreNames();if(J.DJ.options.version+1)throw t.close(),J.B=!1,$xp(J,Z);return m.return(t);case 8:throw R(), r instanceof Error&&!g.S8("ytidb_async_stack_killswitch")&&(r.stack=r.stack+"\n"+G.substring(G.indexOf("\n")+1)),m3(r,J.name,"",(V=J.options.version)!=null?V:-1);}})} function R(){J.L===l&&(J.L=void 0)} var J=this;if(!this.B)throw $xp(this);if(this.L)return this.L;var l,u={blocking:function(F){F.close()}, closed:R,Y0N:R,upgrade:this.options.upgrade};return this.L=l=O()};var Qt=new U4("YtIdbMeta",{jO:{databases:{ql:1}},upgrade:function(O,R){R(1)&&g.M$(O,"databases",{keyPath:"actualName"})}});var zW,hS=new function(){}(new function(){});new g.tA;g.S(OO,U4);OO.prototype.S=function(O,R,J){J=J===void 0?{}:J;return(this.options.shared?PIs:erf)(O,R,Object.assign({},J))}; OO.prototype.delete=function(O){O=O===void 0?{}:O;return(this.options.shared?xxA:p4s)(this.name,O)};var xc_={},jPs=g.RA("ytGcfConfig",{jO:(xc_.coldConfigStore={ql:1},xc_.hotConfigStore={ql:1},xc_),shared:!1,upgrade:function(O,R){R(1)&&(g.AS(g.M$(O,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.AS(g.M$(O,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.S(gH,g.p);gH.prototype.eN=function(){for(var O=g.N(this.S),R=O.next();!R.done;R=O.next()){var J=this.L;R=J.indexOf(R.value);R>=0&&J.splice(R,1)}this.S.length=0;g.p.prototype.eN.call(this)};Kr.prototype.TN=function(O){this.hotHashData=O;g.dh("yt.gcf.config.hotHashData",this.hotHashData||null)};var UcV=typeof TextEncoder!=="undefined"?new TextEncoder:null,st2=UcV?function(O){return UcV.encode(O)}:function(O){O=g.Oa(O); for(var R=new Uint8Array(O.length),J=0;J=R?!1:!0}; g.f.s3=function(){var O=this;if(!A2(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.VD.NN("QUEUED",this.CY).then(function(R){R&&!O.KM(R,O.b9)?O.S8.lS(function(){return g.A(function(J){if(J.S==1)return R.id===void 0?J.pJ(2):g.k(J,O.VD.Ge(R.id,O.CY),2);O.s3();g.ST(J)})}):O.XG.qK()&&O.Uo()})};var pr;var ISW={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468, miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490, shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var Q4C={},nBs=g.RA("ServiceWorkerLogsDatabase",{jO:(Q4C.SWHealthLog={ql:1},Q4C),shared:!0,upgrade:function(O,R){R(1)&&g.AS(g.M$(O,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var x8={},i_z=0;var UO;Qb.prototype.requestComplete=function(O,R){R&&(this.S=!0);O=this.removeParams(O);this.L.get(O)||this.L.set(O,R)}; Qb.prototype.isEndpointCFR=function(O){O=this.removeParams(O);return(O=this.L.get(O))?!1:O===!1&&this.S?!0:null}; Qb.prototype.removeParams=function(O){return O.split("?")[0]}; Qb.prototype.removeParams=Qb.prototype.removeParams;Qb.prototype.isEndpointCFR=Qb.prototype.isEndpointCFR;Qb.prototype.requestComplete=Qb.prototype.requestComplete;Qb.getInstance=Lr;g.S(Y8,g.tW);g.f=Y8.prototype;g.f.qK=function(){return this.L.qK()}; g.f.LN=function(O){this.L.L=O}; g.f.vp=function(){var O=window.navigator.onLine;return O===void 0?!0:O}; g.f.wb=function(){this.S=!0}; g.f.listen=function(O,R){return this.L.listen(O,R)}; g.f.nw=function(O){O=pP(this.L,O);O.then(function(R){g.S8("use_cfr_monitor")&&Lr().requestComplete("generate_204",R)}); return O}; Y8.prototype.sendNetworkCheckRequest=Y8.prototype.nw;Y8.prototype.listen=Y8.prototype.listen;Y8.prototype.enableErrorFlushing=Y8.prototype.wb;Y8.prototype.getWindowStatus=Y8.prototype.vp;Y8.prototype.networkStatusHint=Y8.prototype.LN;Y8.prototype.isNetworkAvailable=Y8.prototype.qK;Y8.getInstance=FSW;g.S(g.dH,g.tW);g.dH.prototype.qK=function(){var O=g.hs("yt.networkStatusManager.instance.isNetworkAvailable");return O?O.bind(this.S)():!0}; g.dH.prototype.LN=function(O){var R=g.hs("yt.networkStatusManager.instance.networkStatusHint").bind(this.S);R&&R(O)}; g.dH.prototype.nw=function(O){var R=this,J;return g.A(function(l){J=g.hs("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(R.S);return g.S8("skip_network_check_if_cfr")&&Lr().isEndpointCFR("generate_204")?l.return(new Promise(function(u){var F;R.LN(((F=window.navigator)==null?void 0:F.onLine)||!0);u(R.qK())})):J?l.return(J(O)):l.return(!0)})};var h2;g.S(z$,eh);z$.prototype.writeThenSend=function(O,R){R||(R={});R=ce(O,R);g.h6()||(this.L=!1);eh.prototype.writeThenSend.call(this,O,R)}; z$.prototype.sendThenWrite=function(O,R,J){R||(R={});R=ce(O,R);g.h6()||(this.L=!1);eh.prototype.sendThenWrite.call(this,O,R,J)}; z$.prototype.sendAndWrite=function(O,R){R||(R={});R=ce(O,R);g.h6()||(this.L=!1);eh.prototype.sendAndWrite.call(this,O,R)}; z$.prototype.awaitInitialization=function(){return this.B.promise};var IDp=g.YW.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.dh("ytNetworklessLoggingInitializationOptions",IDp);g.OZ.prototype.isReady=function(){!this.config_&&GHx()&&(this.config_=g.wH());return!!this.config_};var L8M,gQ,lh;L8M=g.YW.ytPubsubPubsubInstance||new g.X8;gQ=g.YW.ytPubsubPubsubSubscribedKeys||{};lh=g.YW.ytPubsubPubsubTopicToKeys||{};g.ih=g.YW.ytPubsubPubsubIsSynchronous||{};g.X8.prototype.subscribe=g.X8.prototype.subscribe;g.X8.prototype.unsubscribeByKey=g.X8.prototype.Pf;g.X8.prototype.publish=g.X8.prototype.publish;g.X8.prototype.clear=g.X8.prototype.clear;g.dh("ytPubsubPubsubInstance",L8M);g.dh("ytPubsubPubsubTopicToKeys",lh);g.dh("ytPubsubPubsubIsSynchronous",g.ih); g.dh("ytPubsubPubsubSubscribedKeys",gQ);var V8H={};g.S(f$,g.p);f$.prototype.append=function(O){if(!this.S)throw Error("This does not support the append operation");O=O.u5();this.u5().appendChild(O)}; g.S(SA,f$);SA.prototype.u5=function(){return this.L};g.S(Nf,g.p);Nf.prototype.onTouchStart=function(O){this.J=!0;this.S=O.touches.length;this.L.isActive()&&(this.L.stop(),this.D=!0);O=O.touches;this.j=N6_(this,O)||O.length!=1;var R=O.item(0);this.j||!R?this.W=this.V=Infinity:(this.V=R.clientX,this.W=R.clientY);for(R=this.B.length=0;R=0)}if(R||O&&Math.pow(O.clientX-this.V,2)+Math.pow(O.clientY-this.W,2)>25)this.N=!0}; Nf.prototype.onTouchEnd=function(O){var R=O.changedTouches;R&&this.J&&this.S==1&&!this.N&&!this.D&&!this.j&&N6_(this,R)&&(this.SN=O,this.L.start());this.S=O.touches.length;this.S===0&&(this.N=this.J=!1,this.B.length=0);this.D=!1};var mR=Date.now().toString();var XZ={};var sZ=Symbol("injectionDeps");$5.prototype.toString=function(){return"InjectionToken("+this.name+")"}; D5T.prototype.resolve=function(O){return O instanceof Mf?bh(this,O.key,[],!0):bh(this,O,[])};var WV;var eA=window;var HV=g.S8("web_enable_lifecycle_monitoring")&&PV()!==0,qU2=g.S8("web_enable_lifecycle_monitoring");T6f.prototype.cancel=function(){for(var O=g.N(this.L),R=O.next();!R.done;R=O.next())R=R.value,R.jobId===void 0||R.yj||this.scheduler.wU(R.jobId),R.yj=!0;this.S.resolve()};g.f=x5.prototype;g.f.install=function(O){this.plugins.push(O);return this}; g.f.uninstall=function(){var O=this;g.As.apply(0,arguments).forEach(function(R){R=O.plugins.indexOf(R);R>-1&&O.plugins.splice(R,1)})}; g.f.transition=function(O,R){var J=this;HV&&vj_(this.state);var l=this.transitions.find(function(F){return Array.isArray(F.from)?F.from.find(function(G){return G===J.state&&F.to===O}):F.from===J.state&&F.to===O}); if(l){this.S&&($5h(this.S),this.S=void 0);k3h(this,O,R);this.state=O;HV&&p$(this.state);l=l.action.bind(this);var u=this.plugins.filter(function(F){return F[O]}).map(function(F){return F[O]}); l(M8_(this,u),R)}else throw Error("no transition specified from "+this.state+" to "+O);}; g.f.Y_d=function(O){var R=g.As.apply(1,arguments);g.RJ();for(var J=g.N(O),l=J.next(),u={};!l.done;u={h2:void 0},l=J.next())u.h2=l.value,Rrs(function(F){return function(){jA(F.h2.name);L$(function(){return F.h2.callback.apply(F.h2,g.X(R))}); Qn(F.h2.name)}}(u))}; g.f.NSU=function(O){var R=g.As.apply(1,arguments),J,l,u,F;return g.A(function(G){G.S==1&&(g.RJ(),J=g.N(O),l=J.next(),u={});if(G.S!=3){if(l.done)return G.pJ(0);u.vt=l.value;u.Vu=void 0;F=function(y){return function(){jA(y.vt.name);var w=L$(function(){return y.vt.callback.apply(y.vt,g.X(R))}); oY(w)?y.Vu=g.S8("web_lifecycle_error_handling_killswitch")?w.then(function(){Qn(y.vt.name)}):w.then(function(){Qn(y.vt.name)},function(I){XWA(I); Qn(y.vt.name)}):Qn(y.vt.name)}}(u); Rrs(F);return u.Vu?g.k(G,u.Vu,3):G.pJ(3)}u={vt:void 0,Vu:void 0};l=J.next();return G.pJ(2)})}; g.f.sy=function(O){var R=g.As.apply(1,arguments),J=this,l=O.map(function(u){return{jM:function(){jA(u.name);L$(function(){return u.callback.apply(u,g.X(R))}); Qn(u.name)}, priority:UZ(J,u)}}); l.length&&(this.S=new T6f(l))}; g.Fp.Object.defineProperties(x5.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var dQ;g.S(Y5,x5);Y5.prototype.D=function(O,R){var J=this;this.L=g.cf(0,function(){J.currentState==="application_navigating"&&J.transition("none")},5E3); O(R==null?void 0:R.event)}; Y5.prototype.j=function(O,R){this.L&&(g.HJ.wU(this.L),this.L=null);O(R==null?void 0:R.event)};var Sr=[];g.dh("yt.logging.transport.getScrapedGelPayloads",function(){return Sr});h_.prototype.storePayload=function(O,R){O=zT(O);this.store[O]?this.store[O].push(R):(this.S={},this.store[O]=[R]);this.L++;g.S8("more_accurate_gel_parser")&&(R=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(R));return O}; h_.prototype.smartExtractMatchingEntries=function(O){if(!O.keys.length)return[];for(var R=cV(this,O.keys.splice(0,1)[0]),J=[],l=0;l=0){l=!1;break a}}l=!0}l&&(R=BM(R))&&this.Kt(R)}}; g.f.eH=function(O){return O}; g.f.onTouchStart=function(O){this.OQ.onTouchStart(O)}; g.f.onTouchMove=function(O){this.OQ.onTouchMove(O)}; g.f.onTouchEnd=function(O){if(this.OQ)this.OQ.onTouchEnd(O)}; g.f.Kt=function(O){this.layoutId?this.zd.executeCommand(O,this.layoutId):(O=new g.Ys("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.WM(O))}; g.f.createServerVe=function(O,R){this.api.createServerVe(O,this);this.api.setTrackingParams(O,R)}; g.f.logVisibility=function(O,R){this.api.hasVe(O)&&this.api.logVisibility(O,R,this.interactionLoggingClientData)}; g.f.eN=function(){this.clear(null);this.uK(this.sQ);for(var O=g.N(this.iz),R=O.next();!R.done;R=O.next())this.uK(R.value);g.tQ.prototype.eN.call(this)};g.S(bW,oh); bW.prototype.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);this.L=R;if(R.text==null&&R.icon==null)g.Aa(Error("ButtonRenderer did not have text or an icon set."));else{switch(R.style||null){case "STYLE_UNKNOWN":O="ytp-ad-button-link";break;default:O=null}O!=null&&g.F8(this.element,O);R.text!=null&&(O=g.V8(R.text),g.oW(O)||(this.element.setAttribute("aria-label",O),this.B=new g.tQ({Y:"span",G:"ytp-ad-button-text",FQ:O}),g.H(this,this.B),this.B.hR(this.element)));R.accessibilityData&&R.accessibilityData.accessibilityData&& R.accessibilityData.accessibilityData.label&&!g.oW(R.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",R.accessibilityData.accessibilityData.label);R.icon!=null&&(R=sk(R.icon,this.N),R!=null&&(this.S=new g.tQ({Y:"span",G:"ytp-ad-button-icon",K:[R]}),g.H(this,this.S)),this.j?gv(this.element,this.S.element,0):this.S.hR(this.element))}}; bW.prototype.clear=function(){this.hide()}; bW.prototype.onClick=function(O){oh.prototype.onClick.call(this,O);O=g.N(XuA(this));for(var R=O.next();!R.done;R=O.next())R=R.value,this.layoutId?this.zd.executeCommand(R,this.layoutId):g.WM(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.S(WT,g.p);WT.prototype.eN=function(){this.S&&g.DS(this.S);this.L.clear();AQ=null;g.p.prototype.eN.call(this)}; WT.prototype.register=function(O,R){R&&this.L.set(O,R)}; var AQ=null;g.S(pe,oh); pe.prototype.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);O=R.hoverText||null;R=R.button&&g.x(R.button,g.HO)||null;R==null?g.WM(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,void 0,void 0,void 0,void 0,this.B),g.H(this,this.button),this.button.init(GI("button"),R,this.macros),O&&this.button.element.setAttribute("aria-label",g.V8(O)),this.button.hR(this.element),this.W&&!g.uI(this.button.element, "ytp-ad-clickable")&&g.F8(this.button.element,"ytp-ad-clickable"),this.B&&g.F8(this.button.element,"ytp-ad-hover-text-button--clean-player"),O&&(this.S=new g.tQ({Y:"div",G:"ytp-ad-hover-text-container"}),this.j&&(R=new g.tQ({Y:"div",G:"ytp-ad-hover-text-callout"}),R.hR(this.S.element),g.H(this,R)),g.H(this,this.S),this.S.hR(this.element),R=eU(O),gv(this.S.element,R,0)),this.show())}; pe.prototype.hide=function(){this.button&&this.button.hide();this.S&&this.S.hide();oh.prototype.hide.call(this)}; pe.prototype.show=function(){this.button&&this.button.show();oh.prototype.show.call(this)};g.S(HT,oh); HT.prototype.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);J=(O=R.thumbnail)&&BT(O)||"";g.oW(J)?Math.random()<.01&&g.Aa(Error("Found AdImage without valid image URL")):(this.L?g.pS(this.element,"backgroundImage","url("+J+")"):YC(this.element,{src:J}),YC(this.element,{alt:O&&O.accessibility&&O.accessibility.label||""}),R&&R.adRendererCommands&&R.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; HT.prototype.clear=function(){this.hide()};g.S(xH,oh);g.f=xH.prototype;g.f.hide=function(){oh.prototype.hide.call(this);this.B&&this.B.focus()}; g.f.show=function(){this.B=document.activeElement;oh.prototype.show.call(this);this.N.focus()}; g.f.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);this.S=R;R.dialogMessages||R.title!=null?R.confirmLabel==null?g.WM(Error("ConfirmDialogRenderer.confirmLabel was not set.")):R.cancelLabel==null?g.WM(Error("ConfirmDialogRenderer.cancelLabel was not set.")):q4h(this,R):g.WM(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.f.clear=function(){g.MN(this.L);this.hide()}; g.f.gm=function(){this.hide()}; g.f.d7=function(){var O=this.S.cancelEndpoint;O&&(this.layoutId?this.zd.executeCommand(O,this.layoutId):g.WM(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.f.SS=function(){var O=this.S.confirmNavigationEndpoint||this.S.confirmEndpoint;O&&(this.layoutId?this.zd.executeCommand(O,this.layoutId):g.WM(Error("Missing layoutId for confirm dialog.")));this.hide()};g.S(Uk,oh);g.f=Uk.prototype; g.f.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);this.B=R;if(R.defaultText==null&&R.defaultIcon==null)g.WM(Error("ToggleButtonRenderer must have either text or icon set."));else if(R.defaultIcon==null&&R.toggledIcon!=null)g.WM(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(R.style){switch(R.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":O="ytp-ad-toggle-button-default-style";break;default:O=null}O!=null&&g.F8(this.N,O)}O={};R.defaultText? (J=g.V8(R.defaultText),g.oW(J)||(O.buttonText=J,this.api.T().experiments.Vh("a11y_h5_associate_survey_question")||this.L.setAttribute("aria-label",J),this.api.T().experiments.Vh("fix_h5_toggle_button_a11y")&&this.S.setAttribute("aria-label",J))):g.nS(this.N1,!1);R.defaultTooltip&&(O.tooltipText=R.defaultTooltip,this.L.hasAttribute("aria-label")||this.S.setAttribute("aria-label",R.defaultTooltip));R.defaultIcon?(J=sk(R.defaultIcon),this.updateValue("untoggledIconTemplateSpec",J),R.toggledIcon?(this.Hq= !0,J=sk(R.toggledIcon),this.updateValue("toggledIconTemplateSpec",J)):(g.nS(this.W,!0),g.nS(this.j,!1)),g.nS(this.L,!1)):g.nS(this.S,!1);g.nt(O)||this.update(O);R.isToggled&&(g.F8(this.N,"ytp-ad-toggle-button-toggled"),this.toggleButton(R.isToggled));jU(this);this.U(this.element,"change",this.jF);this.show()}}; g.f.onClick=function(O){this.iz.length>0&&(this.toggleButton(!this.isToggled()),this.jF());oh.prototype.onClick.call(this,O)}; g.f.jF=function(){g.wI(this.N,"ytp-ad-toggle-button-toggled",this.isToggled());for(var O=g.N(kWf(this,this.isToggled())),R=O.next();!R.done;R=O.next())R=R.value,this.layoutId?this.zd.executeCommand(R,this.layoutId):g.WM(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);jU(this)}; g.f.clear=function(){this.hide()}; g.f.toggleButton=function(O){g.wI(this.N,"ytp-ad-toggle-button-toggled",O);this.L.checked=O;jU(this)}; g.f.isToggled=function(){return this.L.checked};g.S(Q8,Tv);Q8.prototype.j=function(O){if(Array.isArray(O)){O=g.N(O);for(var R=O.next();!R.done;R=O.next())R=R.value,R instanceof sJp&&this.N(R)}};g.S(Le,oh);g.f=Le.prototype;g.f.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);R.reasons?R.confirmLabel==null?g.WM(Error("AdFeedbackRenderer.confirmLabel was not set.")):(R.cancelLabel==null&&g.Aa(Error("AdFeedbackRenderer.cancelLabel was not set.")),R.title==null&&g.Aa(Error("AdFeedbackRenderer.title was not set.")),evx(this,R)):g.WM(Error("AdFeedbackRenderer.reasons were not set."))}; g.f.clear=function(){aU(this.j);aU(this.W);this.N.length=0;this.hide()}; g.f.hide=function(){this.L&&this.L.hide();this.S&&this.S.hide();oh.prototype.hide.call(this);this.B&&this.B.focus()}; g.f.show=function(){this.L&&this.L.show();this.S&&this.S.show();this.B=document.activeElement;oh.prototype.show.call(this);this.j.focus()}; g.f.tH=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.f.bYd=function(){this.hide()}; YH.prototype.u5=function(){return this.L.element}; YH.prototype.getCommand=function(){return this.S}; YH.prototype.isChecked=function(){return this.B.checked};g.S(hQ,xH);hQ.prototype.gm=function(O){xH.prototype.gm.call(this,O);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; hQ.prototype.d7=function(O){xH.prototype.d7.call(this,O);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; hQ.prototype.SS=function(O){xH.prototype.SS.call(this,O);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.S(zI,oh);g.f=zI.prototype; g.f.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);this.j=R;if(R.dialogMessage==null&&R.title==null)g.WM(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{R.confirmLabel==null&&g.Aa(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(O=R.closeOverlayRenderer&&g.x(R.closeOverlayRenderer,g.HO)||null)this.L=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.H(this,this.L),this.L.init(GI("button"),O,this.macros),this.L.hR(this.element);R.title&&(O=g.V8(R.title),this.updateValue("title",O));if(R.adReasons)for(O=R.adReasons,J=0;J=this.Qh?(this.Hq.hide(),this.JR=!0,this.publish("i")):this.B&&this.B.isTemplated()&&(O=Math.max(0,Math.ceil((this.Qh-O)/1E3)),O!=this.Td&&(Or(this.B,{TIME_REMAINING:String(O)}),this.Td=O)))}};g.S(FM,RH);g.f=FM.prototype; g.f.init=function(O,R,J){RH.prototype.init.call(this,O,R,J);if(R.image&&R.image.thumbnail)if(R.headline)if(R.description)if((O=R.actionButton&&g.x(R.actionButton,g.HO))&&O.navigationEndpoint){var l=this.api.getVideoData(2);if(l!=null)if(R.image&&R.image.thumbnail){var u=R.image.thumbnail.thumbnails;u!=null&&u.length>0&&g.oW(g.Vr(u[0].url))&&(u[0].url=l.profilePicture)}else g.Aa(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.B.init(GI("ad-image"),R.image,J);this.j.init(GI("ad-text"), R.headline,J);this.N.init(GI("ad-text"),R.description,J);this.S.init(GI("button"),O,J);J=LP(this.S.element);Qf(this.S.element,J+" This link opens in new tab");this.Hq=O.navigationEndpoint;this.api.Rx()||this.show();this.api.T().Z("enable_larger_flyout_cta_on_desktop")&&(this.Bq("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Bq("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Bq("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.Bq("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Bq("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Bq("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.S.element.classList.add("ytp-flyout-cta-action-button-large"),this.S.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Bq("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.yc.bind(this));this.N1=R.startMs||0;JT(this)}else g.WM(Error("FlyoutCtaRenderer has no valid action button."));else g.WM(Error("FlyoutCtaRenderer has no description AdText."));else g.WM(Error("FlyoutCtaRenderer has no headline AdText."));else g.Aa(Error("FlyoutCtaRenderer has no image."))}; g.f.onClick=function(O){RH.prototype.onClick.call(this,O);this.api.pauseVideo();!g.lu(this.S.element,O.target)&&this.Hq&&(this.layoutId?this.zd.executeCommand(this.Hq,this.layoutId):g.WM(Error("Missing layoutId for flyout cta.")))}; g.f.VV=function(){if(this.L){var O=this.L.getProgressState();(O&&O.current||this.Qh)&&1E3*O.current>=this.N1&&(gK(this),g.KM(this.element,"ytp-flyout-cta-inactive"),this.S.element.removeAttribute("tabIndex"))}}; g.f.l8=function(){this.clear()}; g.f.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.yc.bind(this))}; g.f.show=function(){this.S&&this.S.show();RH.prototype.show.call(this)}; g.f.hide=function(){this.S&&this.S.hide();RH.prototype.hide.call(this)}; g.f.yc=function(O){O=="hidden"?this.show():this.hide()};g.S(Gk,oh);g.f=Gk.prototype; g.f.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);this.L=R;if(this.L.rectangle)for(O=this.L.likeButton&&g.x(this.L.likeButton,mg),R=this.L.dislikeButton&&g.x(this.L.dislikeButton,mg),this.B.init(GI("toggle-button"),O,J),this.S.init(GI("toggle-button"),R,J),this.U(this.element,"change",this.I5),this.N.show(100),this.show(),J=g.N(this.L&&this.L.impressionCommands||[]),O=J.next();!O.done;O=J.next())O=O.value,this.layoutId?this.zd.executeCommand(O,this.layoutId):g.WM(Error("Missing layoutId for instream user sentiment."))}; g.f.clear=function(){this.hide()}; g.f.hide=function(){this.B.hide();this.S.hide();oh.prototype.hide.call(this)}; g.f.show=function(){this.B.show();this.S.show();oh.prototype.show.call(this)}; g.f.I5=function(){mGB(this.element,"ytp-ad-instream-user-sentiment-selected");this.L.postMessageAction&&this.api.tR("onYtShowToast",this.L.postMessageAction);this.N.hide()}; g.f.onClick=function(O){this.iz.length>0&&this.I5();oh.prototype.onClick.call(this,O)};g.S(K9,g.p);g.f=K9.prototype;g.f.eN=function(){this.reset();g.p.prototype.eN.call(this)}; g.f.reset=function(){g.MN(this.N);this.j=!1;this.L&&this.L.stop();this.D.stop();this.B&&(this.B=!1,this.J.play())}; g.f.start=function(){this.reset();this.N.U(this.S,"mouseover",this.rJ,this);this.N.U(this.S,"mouseout",this.DE,this);this.SN&&(this.N.U(this.S,"focusin",this.rJ,this),this.N.U(this.S,"focusout",this.DE,this));this.L?this.L.start():(this.j=this.B=!0,g.pS(this.S,{opacity:this.W}))}; g.f.rJ=function(){this.B&&(this.B=!1,this.J.play());this.D.stop();this.L&&this.L.stop()}; g.f.DE=function(){this.j?this.D.start():this.L&&this.L.start()}; g.f.Aw=function(){this.B||(this.B=!0,this.V.play(),this.j=!0)};var hvh=[new yS("b.f_",!1,0),new yS("j.s_",!1,2),new yS("r.s_",!1,4),new yS("e.h_",!1,6),new yS("i.s_",!0,8),new yS("s.t_",!1,10),new yS("p.h_",!1,12),new yS("s.i_",!1,14),new yS("f.i_",!1,16),new yS("a.b_",!1,18),new yS("a.o_",!1),new yS("g.o_",!1,22),new yS("p.i_",!1,24),new yS("p.m_",!1),new yS("n.k_",!0,20),new yS("i.f_",!1),new yS("a.s_",!0),new yS("m.c_",!1),new yS("n.h_",!1,26),new yS("o.p_",!1)].reduce(function(O,R){O[R.S]=R;return O},{});g.S(VS,RH);g.f=VS.prototype; g.f.init=function(O,R,J){RH.prototype.init.call(this,O,R,J);this.Hq=R;(this.N1=nSh(this))&&g.Aa(Error("hasAdControlInClickCommands_ is true."));if(!R||g.nt(R))g.WM(Error("SkipButtonRenderer was not specified or empty."));else if(!R.message||g.nt(R.message))g.WM(Error("SkipButtonRenderer.message was not specified or empty."));else{O=this.j?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};R=sk(O);R==null?g.WM(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+O.iconType+".")): (this.B=new g.tQ({Y:"button",q1:[this.j?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],K:[{Y:"span",G:this.j?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",K:[R]}]}),g.H(this,this.B),this.B.hR(this.N.element),this.S=new cT(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,"ytp-ad-skip-button-text"),this.j&&this.S.element.classList.add("ytp-ad-skip-button-text-centered"),this.S.init(GI("ad-text"),this.Hq.message,J),g.H(this,this.S),gv(this.B.element,this.S.element, 0));var l=l===void 0?null:l;J=this.api.T();!(this.iz.length>0)&&J.S&&(vv?0:"ontouchstart"in document.documentElement&&(dsA()||mI()))&&(this.uK(this.sQ),l&&this.uK(l),this.iz=[this.U(this.element,"touchstart",this.onTouchStart,this),this.U(this.element,"touchmove",this.onTouchMove,this),this.U(this.element,"touchend",this.onTouchEnd,this)])}}; g.f.clear=function(){this.Qh.reset();this.hide()}; g.f.hide=function(){this.N.hide();this.S&&this.S.hide();gK(this);RH.prototype.hide.call(this)}; g.f.onClick=function(O){if(this.B!=null){if(O){var R=O||window.event;R.returnValue=!1;R.preventDefault&&R.preventDefault()}var J;if(Y4s(O,{contentCpn:((J=this.api.getVideoData(1))==null?void 0:J.clientPlaybackNonce)||""})===0)this.api.tR("onAbnormalityDetected");else if(RH.prototype.onClick.call(this,O),this.publish("j"),this.api.tR("onAdSkip"),this.JR||!this.N1)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.f.eH=function(O){if(!this.JR)return this.N1&&rK("SkipButton click commands not pruned while ALC exist"),O;var R,J=(R=g.x(O,g.f9))==null?void 0:R.commands;if(!J)return O;O=[];for(R=0;R=this.j&&cSW(this,!0)};g.S(Nt,bW);Nt.prototype.init=function(O,R,J){bW.prototype.init.call(this,O,R,J);O=!1;R.text!=null&&(O=g.V8(R.text),O=!g.oW(O));O?R.navigationEndpoint==null?g.Aa(Error("No visit advertiser clickthrough provided in renderer,")):R.style!=="STYLE_UNKNOWN"?g.Aa(Error("Button style was not a link-style type in renderer,")):this.show():g.Aa(Error("No visit advertiser text was present in the renderer."))};g.S(m6,oh); m6.prototype.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);O=R.text;g.oW(Z$(O))?g.Aa(Error("SimpleAdBadgeRenderer has invalid or empty text")):(O&&O.text&&(R=O.text,this.B&&!this.S&&(R=this.api.T(),R=O.text+" "+(R&&R.S?"\u2022":"\u00b7")),R={text:R,isTemplated:O.isTemplated},O.style&&(R.style=O.style),O.targetId&&(R.targetId=O.targetId),O=new cT(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),O.init(GI("simple-ad-badge"),R,J),O.hR(this.element),g.H(this,O)),this.show())}; m6.prototype.clear=function(){this.hide()};g.S(Er,Ke);g.S(D_,g.y8);g.f=D_.prototype;g.f.Aa=function(){return this.durationMs}; g.f.stop=function(){this.L&&this.Rj.uK(this.L)}; g.f.v3=function(O){this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:O.current};this.publish("h")}; g.f.getProgressState=function(){return this.S}; g.f.uw=function(O){g.Z_(O,2)&&this.publish("g")};g.S(aH,g.y8);g.f=aH.prototype;g.f.Aa=function(){return this.durationMs}; g.f.start=function(){this.L||(this.L=!0,this.Jp.start())}; g.f.stop=function(){this.L&&(this.L=!1,this.Jp.stop())}; g.f.v3=function(){this.Oc+=100;var O=!1;this.Oc>this.durationMs&&(this.Oc=this.durationMs,this.Jp.stop(),O=!0);this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Oc/1E3};this.publish("h");O&&this.publish("g")}; g.f.getProgressState=function(){return this.S};g.S(Tk,RH);g.f=Tk.prototype;g.f.init=function(O,R,J){RH.prototype.init.call(this,O,R,J);var l;if(R==null?0:(l=R.templatedCountdown)==null?0:l.templatedAdText){O=R.templatedCountdown.templatedAdText;if(!O.isTemplated){g.Aa(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.S=new cT(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);this.S.init(GI("ad-text"),O,{});this.S.hR(this.element);g.H(this,this.S)}this.show()}; g.f.clear=function(){this.hide()}; g.f.hide=function(){gK(this);RH.prototype.hide.call(this)}; g.f.l8=function(){this.hide()}; g.f.VV=function(){if(this.L!=null){var O=this.L.getProgressState();if(O!=null&&O.current!=null&&this.S){var R=this.L instanceof D_?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:O.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.L instanceof aH?O.seekableEnd:this.api.getDuration(2,!1);O=O.current;var J,l,u=((J=this.api.getVideoData())==null?0:(l=J.Zv)==null?0:l.call(J))?Math.max(R-O,0):R-O;Or(this.S,{FORMATTED_AD_DURATION_REMAINING:String(g.vI(u)), TIME_REMAINING:String(Math.ceil(u))})}}}; g.f.show=function(){JT(this);RH.prototype.show.call(this)};g.S($0,cT);$0.prototype.onClick=function(O){cT.prototype.onClick.call(this,O);this.api.onAdUxClicked(this.componentType)};g.S(qt,oh);qt.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});if(O=R.content){g.uu(this.element,O);var J,l;R=((J=R.interaction)==null?void 0:(l=J.accessibility)==null?void 0:l.label)||O;this.element.setAttribute("aria-label",R)}else g.WM(Error("AdSimpleAttributedString does not have text content"))}; qt.prototype.clear=function(){this.hide()}; qt.prototype.onClick=function(O){oh.prototype.onClick.call(this,O)};g.S(k0,oh); k0.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});(O=R.label)&&O.content&&!g.oW(O.content)?(this.adBadgeText.init(GI("ad-simple-attributed-string"),new Mt(O)),(R=R.adPodIndex)&&R.content&&!g.oW(R.content)&&(this.L=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),this.L.hR(this.element),g.H(this,this.L),this.L.element.classList.add("ytp-ad-badge__pod-index"),this.L.init(GI("ad-simple-attributed-string"),new Mt(R))),this.element.classList.add(this.S?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.WM(Error("No label is returned in AdBadgeViewModel."))}; k0.prototype.show=function(){this.adBadgeText.show();var O;(O=this.L)==null||O.show();oh.prototype.show.call(this)}; k0.prototype.hide=function(){this.adBadgeText.hide();var O;(O=this.L)==null||O.hide();oh.prototype.hide.call(this)};g.S(sr,oh);sr.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});(O=R.adPodIndex)&&O.content&&!g.oW(O.content)&&(this.L=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),this.L.hR(this.element),g.H(this,this.L),this.L.init(GI("ad-simple-attributed-string"),new Mt(O)),R.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()}; sr.prototype.show=function(){var O;(O=this.L)==null||O.show();oh.prototype.show.call(this)}; sr.prototype.hide=function(){var O;(O=this.L)==null||O.hide();oh.prototype.hide.call(this)};g.S(bz,oh); bz.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});if(R!=null&&R.text){var J;if(((J=R.text)==null?0:J.content)&&!g.oW(R.text.content)){this.L=new g.tQ({Y:"div",G:"ytp-ad-disclosure-banner__text",FQ:R.text.content});g.H(this,this.L);this.L.hR(this.element);var l,u;O=((l=R.interaction)==null?void 0:(u=l.accessibility)==null?void 0:u.label)||R.text.content;this.element.setAttribute("aria-label",O);var F;if((F=R.interaction)==null?0:F.onTap)this.S=new g.tQ({Y:"div",G:"ytp-ad-disclosure-banner__chevron",K:[g.my()]}), g.H(this,this.S),this.S.hR(this.element);this.show()}}else g.WM(Error("No banner text found in AdDisclosureBanner."))}; bz.prototype.clear=function(){this.hide()};WI.prototype.getLength=function(){return this.L-this.S};g.S(eg,g.tQ);eg.prototype.v3=function(){var O=this.S.getProgressState(),R=O.seekableEnd;this.api.getPresentingPlayerType()===2&&(R=this.B?this.B/1E3:O.seekableEnd);O=AT(new WI(O.seekableStart,R),O.current,0);this.progressBar.style.width=O*100+"%"}; eg.prototype.onStateChange=function(){g.Aj(this.api.T())||(this.api.getPresentingPlayerType()===2?this.L===-1&&(this.show(),this.L=this.S.subscribe("h",this.v3,this),this.v3()):this.L!==-1&&(this.hide(),this.S.Pf(this.L),this.L=-1))};g.S(PI,oh); PI.prototype.init=function(O,R,J,l){oh.prototype.init.call(this,O,R,J);if(R.skipOrPreviewRenderer){if(O=g.x(R.skipOrPreviewRenderer,Ia))J=new Sg(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.S,this.W),J.hR(this.Iu),J.init(GI("skip-button"),O,this.macros),g.H(this,J);if(O=g.x(R.skipOrPreviewRenderer,Ia))var u=O.skipOffsetMilliseconds}R.brandInteractionRenderer&&(O=R.brandInteractionRenderer.brandInteractionRenderer,J=new Gk(this.api,this.layoutId,this.interactionLoggingClientData,this.zd), J.hR(this.N1),J.init(GI("instream-user-sentiment"),O,this.macros),g.H(this,J));if(O=g.x(R,$n_))if(O=g.x(O,$n_))J=new FM(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.S,!!R.showWithoutLinkedMediaLayout),g.H(this,J),J.hR(this.j),J.init(GI("flyout-cta"),O,this.macros);l=l&&l.videoAdDurationSeconds;R.adBadgeRenderer&&(J=R.adBadgeRenderer,O=g.x(J,QB),O!=null?(J=new k0(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,!1),g.H(this,J),J.hR(this.L),J.init(GI("ad-badge"), O,this.macros),this.B=J.element):(O=J.simpleAdBadgeRenderer,O==null&&(O={text:{text:"Anuncio",isTemplated:!1}}),J=new m6(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,!0),g.H(this,J),J.hR(this.L),J.init(GI("simple-ad-badge"),O,this.macros)));R.adPodIndex&&(O=g.x(R.adPodIndex,pls),O!=null&&(J=new sr(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,J),J.hR(this.L),J.init(GI("ad-pod-index"),O)));R.adDurationRemaining&&!R.showWithoutLinkedMediaLayout&&(O=R.adDurationRemaining.adDurationRemainingRenderer, O==null&&(O={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),l=new Tk(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.S,l,!1),g.H(this,l),l.hR(this.L),l.init(GI("ad-duration-remaining"),O,this.macros));R.adInfoRenderer&&(l=g.x(R.adInfoRenderer,pw))&&(O=new ne(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.element,void 0,!1),g.H(this,O),this.B!==null?this.L.insertBefore(O.element,this.B.nextSibling):O.hR(this.L), O.init(GI("ad-info-hover-text-button"),l,this.macros));R.visitAdvertiserRenderer&&(l=g.x(R.visitAdvertiserRenderer,g.HO))&&(O=this.api.T(),O=g.$X(O)&&O.Z("embeds_embc3ds_atb")&&O.Z("embeds_embc3ds_atb_no_visinfo"),J=J2_(this)&&this.N&&!O?this.N:this.L)&&(O=new Nt(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,O),O.hR(J),O.init(GI("visit-advertiser"),l,this.macros),Ug(O.element),l=LP(O.element),Qf(O.element,l+" This link opens in new tab"));!(l=this.api.T())||g.bo(l)||g.$X(l)|| l.controlsType!="3"&&!l.disableOrganicUi||(u=new eg(this.api,this.S,u,!1),u.hR(this.Qh),g.H(this,u));R.adDisclosureBannerRenderer&&(R=g.x(R.adDisclosureBannerRenderer,PeI))&&(u=new bz(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),u.hR(this.Hq),u.init(GI("ad-disclosure-banner"),R),g.H(this,u));this.api.T().Z("enable_updated_html5_player_focus_style")&&g.F8(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; PI.prototype.clear=function(){this.hide()};x0.prototype.set=function(O,R,J){J=J!==void 0?Date.now()+J:void 0;this.L.set(O,R,J)}; x0.prototype.get=function(O){return this.L.get(O)}; x0.prototype.remove=function(O){this.L.remove(O)};var irT=null;var Y0=null,dK=null,hT=null,KM_=null;g.dh("yt.www.ads.eventcache.getLastCompanionData",function(){return Y0}); g.dh("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.dh("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return dK}); g.dh("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return hT}); g.dh("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return KM_});var weT=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);zk.prototype.handleResponse=function(O,R){if(!R)throw Error("request needs to be passed into ConsistencyService");var J,l;R=((J=R.p8.context)==null?void 0:(l=J.request)==null?void 0:l.consistencyTokenJars)||[];var u;(O=(u=O.responseContext)==null?void 0:u.consistencyTokenJar)&&this.replace(R,O)}; zk.prototype.replace=function(O,R){O=g.N(O);for(var J=O.next();!J.done;J=O.next())delete this.L[J.value.encryptedTokenJarContents];CdA(this,R)};var nCC=window.location.hostname.split(".").slice(-2).join("."),ME;cI.getInstance=function(){ME=g.hs("yt.clientLocationService.instance");ME||(ME=new cI,g.dh("yt.clientLocationService.instance",ME));return ME}; g.f=cI.prototype; g.f.setLocationOnInnerTubeContext=function(O){O.client||(O.client={});if(this.L)O.client.locationInfo||(O.client.locationInfo={}),O.client.locationInfo.latitudeE7=Math.floor(this.L.coords.latitude*1E7),O.client.locationInfo.longitudeE7=Math.floor(this.L.coords.longitude*1E7),O.client.locationInfo.horizontalAccuracyMeters=Math.round(this.L.coords.accuracy),O.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.B||this.locationPlayabilityToken)O.client.locationPlayabilityToken=this.B|| this.locationPlayabilityToken}; g.f.handleResponse=function(O){var R;O=(R=O.responseContext)==null?void 0:R.locationPlayabilityToken;O!==void 0&&(this.locationPlayabilityToken=O,this.L=void 0,g.YB("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=n9(this))&&this.localStorage.set("yt-location-playability-token",O,15552E3):g.AF("YT_CL",JSON.stringify({loctok:O}),15552E3,nCC,!0))}; g.f.clearLocationPlayabilityToken=function(O){O==="TVHTML5"?(this.localStorage=n9(this))&&this.localStorage.remove("yt-location-playability-token"):g.PW("YT_CL");this.B=void 0;this.S!==-1&&(clearTimeout(this.S),this.S=-1)}; g.f.getCurrentPositionFromGeolocation=function(){var O=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var R=!1,J=1E4;g.YB("INNERTUBE_CLIENT_NAME")==="MWEB"&&(R=!0,J=15E3);return new Promise(function(l,u){navigator.geolocation.getCurrentPosition(function(F){O.L=F;l(F)},function(F){u(F)},{enableHighAccuracy:R, maximumAge:0,timeout:J})})}; g.f.createUnpluggedLocationInfo=function(O){var R={};O=O.coords;if(O==null?0:O.latitude)R.latitudeE7=Math.floor(O.latitude*1E7);if(O==null?0:O.longitude)R.longitudeE7=Math.floor(O.longitude*1E7);if(O==null?0:O.accuracy)R.locationRadiusMeters=Math.round(O.accuracy);return R}; g.f.createLocationInfo=function(O){var R={};O=O.coords;if(O==null?0:O.latitude)R.latitudeE7=Math.floor(O.latitude*1E7);if(O==null?0:O.longitude)R.longitudeE7=Math.floor(O.longitude*1E7);return R};g.f=VhT.prototype;g.f.contains=function(O){return Object.prototype.hasOwnProperty.call(this.L,O)}; g.f.get=function(O){if(this.contains(O))return this.L[O]}; g.f.set=function(O,R){this.L[O]=R}; g.f.kz=function(){return Object.keys(this.L)}; g.f.remove=function(O){delete this.L[O]};Rc.prototype.getModuleId=function(O){return g.e(O.serviceId.getModuleId())}; Rc.prototype.get=function(O){a:{var R=g.e(this.mappings.get(O.toString()));switch(R.type){case "mapping":O=R.value;break a;case "factory":R=R.value();this.mappings.set(O.toString(),{type:"mapping",value:R});O=R;break a;default:O=zM(R)}}return O}; Rc.prototype.registerService=function(O,R){this.mappings.set(O.toString(),{type:"mapping",value:R});return O}; new Rc;var qE={},fZz=(qE.WEB_UNPLUGGED="^unplugged/",qE.WEB_UNPLUGGED_ONBOARDING="^unplugged/",qE.WEB_UNPLUGGED_OPS="^unplugged/",qE.WEB_UNPLUGGED_PUBLIC="^unplugged/",qE.WEB_CREATOR="^creator/",qE.WEB_KIDS="^kids/",qE.WEB_EXPERIMENTS="^experiments/",qE.WEB_MUSIC="^music/",qE.WEB_REMIX="^music/",qE.WEB_MUSIC_EMBEDDED_PLAYER="^music/",qE.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",qE);iX.prototype.D=function(O,R,J){R=R===void 0?{}:R;J=J===void 0?Cr:J;var l={context:g.O8(O.clickTrackingParams,!1,this.N)};var u=this.S(O);if(u){this.L(l,u,R);var F;R=g.gA(this.B());(u=(F=g.x(O.commandMetadata,g.NE))==null?void 0:F.apiUrl)&&(R=u);F=Ijs(p_(R));O=Object.assign({},{command:O},void 0);l={input:F,Fk:BW(F),p8:l,config:O};l.config.y4?l.config.y4.identity=J:l.config.y4={identity:J};return l}J=new g.Ys("Error: Failed to create Request from Command.",O);g.WM(J)}; g.Fp.Object.defineProperties(iX.prototype,{N:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.S(lX,iX);g.S(Z2,lX);Z2.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Fk:BW("/getDatasyncIdsEndpoint","GET"),p8:{}}}; Z2.prototype.B=function(){return[]}; Z2.prototype.S=function(){}; Z2.prototype.L=function(){};var cgk={},c2T=(cgk.GET_DATASYNC_IDS=J9(Z2),cgk);var km={},OuC=(km["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",km["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",km["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",km["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",km["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",km["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",km["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", km["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",km["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",km["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",km["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",km["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",km["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",km["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",km["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", km["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",km["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",km["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",km["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",km["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",km["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",km["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", km["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",km.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",km["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",km["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",km["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",km["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",km["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",km["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", km["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",km["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",km["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",km["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",km["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",km["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",km["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",km["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",km["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",km["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",km.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",km["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",km["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",km["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",km["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",km["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",km["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",km["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",km["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",km["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",km["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",km["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",km["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",km["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",km["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",km["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",km["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",km["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",km["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",km["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",km["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",km["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", km["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",km["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",km["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",km["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",km["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",km["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",km["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",km["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",km["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", km["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",km["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",km["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",km["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",km["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",km["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",km["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",km["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", km),sV={},v8B=(sV.auto_search="LATENCY_ACTION_AUTO_SEARCH",sV.ad_to_ad="LATENCY_ACTION_AD_TO_AD",sV.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",sV.app_startup="LATENCY_ACTION_APP_STARTUP",sV.browse="LATENCY_ACTION_BROWSE",sV.cast_splash="LATENCY_ACTION_CAST_SPLASH",sV.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",sV.channels="LATENCY_ACTION_CHANNELS",sV.chips="LATENCY_ACTION_CHIPS",sV.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",sV.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", sV.editor="LATENCY_ACTION_EDITOR",sV.embed="LATENCY_ACTION_EMBED",sV.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",sV.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",sV.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",sV.explore="LATENCY_ACTION_EXPLORE",sV.favorites="LATENCY_ACTION_FAVORITES",sV.home="LATENCY_ACTION_HOME",sV.inboarding="LATENCY_ACTION_INBOARDING",sV.landing="LATENCY_ACTION_LANDING",sV.library="LATENCY_ACTION_LIBRARY",sV.live= "LATENCY_ACTION_LIVE",sV.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",sV.management="LATENCY_ACTION_MANAGEMENT",sV.mini_app="LATENCY_ACTION_MINI_APP_PLAY",sV.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",sV.onboarding="LATENCY_ACTION_ONBOARDING",sV.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",sV.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",sV.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",sV.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", sV.prebuffer="LATENCY_ACTION_PREBUFFER",sV.prefetch="LATENCY_ACTION_PREFETCH",sV.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",sV.profile_switcher="LATENCY_ACTION_LOGIN",sV.projects="LATENCY_ACTION_PROJECTS",sV.reel_watch="LATENCY_ACTION_REEL_WATCH",sV.results="LATENCY_ACTION_RESULTS",sV.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",sV.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",sV.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",sV.review="LATENCY_ACTION_REVIEW",sV.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",sV.search_ui="LATENCY_ACTION_SEARCH_UI",sV.search_suggest="LATENCY_ACTION_SUGGEST",sV.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",sV.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",sV.seek="LATENCY_ACTION_PLAYER_SEEK",sV.settings="LATENCY_ACTION_SETTINGS",sV.store="LATENCY_ACTION_STORE",sV.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",sV.tenx="LATENCY_ACTION_TENX",sV.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",sV.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", sV.watch="LATENCY_ACTION_WATCH",sV.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",sV["watch,watch7"]="LATENCY_ACTION_WATCH",sV["watch,watch7_html5"]="LATENCY_ACTION_WATCH",sV["watch,watch7ad"]="LATENCY_ACTION_WATCH",sV["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",sV.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",sV.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",sV.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",sV.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",sV.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",sV.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",sV.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",sV.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",sV);Object.assign(v8B,OuC);g.S(vp,rH);var BHp=new t2("aft-recorded",vp);var Ri6=g.YW.ytLoggingGelSequenceIdObj_||{};g.dh("ytLoggingGelSequenceIdObj_",Ri6);var $3=g.YW.ytLoggingLatencyUsageStats_||{};g.dh("ytLoggingLatencyUsageStats_",$3);Xi.prototype.tick=function(O,R,J,l){Mj(this,"tick_"+O+"_"+R)||g.wj("latencyActionTicked",{tickName:O,clientActionNonce:R},{timestamp:J,cttAuthInfo:l})}; Xi.prototype.info=function(O,R,J){var l=Object.keys(O).join("");Mj(this,"info_"+l+"_"+R)||(O=Object.assign({},O),O.clientActionNonce=R,g.wj("latencyActionInfo",O,{cttAuthInfo:J}))}; Xi.prototype.jspbInfo=function(O,R,J){for(var l="",u=0;u=u.length?(R.append(u),O-=u.length):O?(R.append(new Uint8Array(u.buffer,u.byteOffset,O)),J.append(new Uint8Array(u.buffer,u.byteOffset+O,u.length-O)),O=0):J.append(u);return{IJ:R,cP:J}}; g.f.isFocused=function(O){return O>=this.FA&&O=64&&(this.j.set(O.subarray(0,64-this.S),this.S),R=64-this.S,this.S=0,H$p(this,this.j,0));for(;R+64<=J;R+=64)H$p(this,O,R);R=this.start&&(O=2&&J.ssdaiAdsConfig&&rK("Unexpected ad placement renderers length",O.slot,null,{length:l.length});var u;((u=J.adSlots)==null?0:u.some(function(F){var G,y;return((G=g.x(F,j7))==null?void 0:(y=G.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||l.some(function(F){var G,y,w,I; return!!((G=F.renderer)==null?0:(y=G.linearAdSequenceRenderer)==null?0:(w=y.linearAds)==null?0:w.length)||!((I=F.renderer)==null||!I.instreamVideoAdRenderer)})||wT2(O)})}; yv.prototype.IB=function(){hEH(this.L)};wk.prototype.gC=function(){var O=this;dP2(this.S,function(){var R=Gg(O.slot.clientMetadata,"metadata_type_ad_break_request_data");return R.cueProcessedMs?O.L.get().fetch({Ll:R.getAdBreakUrl,eY:new g.uN(R.GN,R.E6),cueProcessedMs:R.cueProcessedMs}):O.L.get().fetch({Ll:R.getAdBreakUrl,eY:new g.uN(R.GN,R.E6)})})}; wk.prototype.IB=function(){hEH(this.S)};I2.prototype.gC=function(){var O=this.slot.clientMetadata,R,J=(R=this.slot.fulfilledLayout)!=null?R:Gg(O,"metadata_type_fulfilled_layout");Tw0(this.callback,this.slot,J)}; I2.prototype.IB=function(){NJ(this.callback,this.slot,new h("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")};rk.prototype.build=function(O,R){return R.fulfilledLayout||CR(R,{gO:["metadata_type_fulfilled_layout"]})?new I2(O,R):this.B(O,R)};g.S(tK,rk); tK.prototype.B=function(O,R){if(CR(R,{gO:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new yv(O,R,this.L,this.S,this.CZ,this.wd,this.yh,this.YS,this.Sr);if(CR(R,{gO:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new wk(O,R,this.L,this.S,this.CZ,this.wd);throw new h("Unsupported slot with type: "+R.slotType+" and client metadata: "+K2(R.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.S(o2,rk);o2.prototype.B=function(O,R){throw new h("Unsupported slot with type: "+R.slotType+" and client metadata: "+K2(R.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.f=I$_.prototype;g.f.Uf=function(){return this.slot}; g.f.UQ=function(){return this.layout}; g.f.init=function(){}; g.f.release=function(){}; g.f.startRendering=function(O){if(O.layoutId!==this.layout.layoutId)this.callback.fY(this.slot,O,new uO("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 R=Gg(O.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.K1(this.slot,O),$FW(this.B, this.slot,R)):rK("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,O)}}; g.f.o2=function(O,R){O.layoutId!==this.layout.layoutId?this.callback.fY(this.slot,O,new uO("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.wz(this.slot,O,R),rQT(this),tUp(this))};g.S(Ni,g.y8);g.f=Ni.prototype;g.f.Uf=function(){return this.S.slot}; g.f.UQ=function(){return this.S.layout}; g.f.init=function(){this.B.get().addListener(this)}; g.f.release=function(){this.B.get().removeListener(this);this.dispose()}; g.f.GA=function(){}; g.f.JU=function(){}; g.f.dP=function(){}; g.f.QC=function(){}; g.f.startRendering=function(O){var R=this;SW(this.S,O,function(){return void R.Y0()})}; g.f.Y0=function(){this.B.get().Y0(this.L)}; g.f.o2=function(O,R){var J=this;SW(this.S,O,function(){var l=J.B.get();f52(l,J.L,3);J.L=[];J.callback.wz(J.slot,O,R)})}; g.f.eN=function(){this.B.jN()||this.B.get().removeListener(this);g.y8.prototype.eN.call(this)}; g.Fp.Object.defineProperties(Ni.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.S.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.S.layout}}});$d.prototype.t1=function(O,R){R=R===void 0?!1:R;var J=(this.B.get(O)||[]).concat();if(R=R&&f$h(O)){var l=this.B.get(R);l&&J.push.apply(J,g.X(l))}kd(this,O,J);this.L.add(O);R&&this.L.add(R)}; $d.prototype.kH=function(O,R){R=R===void 0?!1:R;if(!this.L.has(O)){var J=R&&f$h(O);J&&(R=!this.L.has(J));this.t1(O,R)}};g.S(mIz,Ke);g.S(eW,Ni);g.f=eW.prototype;g.f.ez=function(O,R){a2("ads-engagement-panel-layout",O,AM(this.j.get()),this.yh.get(),this.N,this.D,this.Uf(),this.UQ(),R)}; g.f.startRendering=function(O){Ex(this.lz,this.Uf(),this.UQ(),g.x(this.UQ().renderingContent,wO),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(R,J,l,u,F){return new mIz(R,J,l,u,F)},this.L); Ni.prototype.startRendering.call(this,O)}; g.f.K1=function(O,R){this.D===R.layoutId&&(this.N===null?this.N=this.yh.get().iC():rK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.f.wz=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.eN=function(){f2(this.Wy(),this);Ni.prototype.eN.call(this)};g.S(DIf,Ke);g.S(Pb,Ni);g.f=Pb.prototype;g.f.ez=function(O,R){a2("banner-image",O,AM(this.j.get()),this.yh.get(),this.N,this.D,this.Uf(),this.UQ(),R)}; g.f.startRendering=function(O){Ex(this.lz,this.Uf(),this.UQ(),g.x(this.UQ().renderingContent,Kw),this.callback,"metadata_type_banner_image_layout_view_model",function(R,J,l,u,F){return new DIf(R,J,l,u,F)},this.L); Ni.prototype.startRendering.call(this,O)}; g.f.K1=function(O,R){this.D===R.layoutId&&(this.N===null?this.N=this.yh.get().iC():rK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.f.wz=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.eN=function(){f2(this.Wy(),this);Ni.prototype.eN.call(this)};g.S(pR,Ke);g.S(Bb,Ni);g.f=Bb.prototype;g.f.ez=function(O,R){a2("action-companion",O,AM(this.j.get()),this.yh.get(),this.N,this.D,this.Uf(),this.UQ(),R)}; g.f.startRendering=function(O){Ex(this.lz,this.Uf(),this.UQ(),g.x(this.UQ().renderingContent,uJ),this.callback,"metadata_type_action_companion_ad_renderer",function(R,J,l,u,F){return new pR(R,J,l,u,F)},this.L); Ni.prototype.startRendering.call(this,O)}; g.f.K1=function(O,R){R.layoutId===this.layout.layoutId?this.lz.kH("impression"):this.D===R.layoutId&&(this.N===null?this.N=this.yh.get().iC():rK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.f.wz=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.eN=function(){f2(this.Wy(),this);Ni.prototype.eN.call(this)};g.S(XTW,Ke);g.S(Hb,Ni);g.f=Hb.prototype;g.f.ez=function(O,R){a2("image-companion",O,AM(this.j.get()),this.yh.get(),this.N,this.D,this.Uf(),this.UQ(),R)}; g.f.startRendering=function(O){Ex(this.lz,this.Uf(),this.UQ(),g.x(this.UQ().renderingContent,FC),this.callback,"metadata_type_image_companion_ad_renderer",function(R,J,l,u,F){return new XTW(R,J,l,u,F)},this.L); Ni.prototype.startRendering.call(this,O)}; g.f.K1=function(O,R){R.layoutId===this.layout.layoutId?this.lz.kH("impression"):this.D===R.layoutId&&(this.N===null?this.N=this.yh.get().iC():rK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.f.wz=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.eN=function(){f2(this.Wy(),this);Ni.prototype.eN.call(this)};g.S($IL,Ke);g.S(xd,Ni);g.f=xd.prototype;g.f.ez=function(O,R){a2("shopping-companion",O,AM(this.j.get()),this.yh.get(),this.N,this.D,this.Uf(),this.UQ(),R)}; g.f.startRendering=function(O){Ex(this.lz,this.Uf(),this.UQ(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(R,J,l,u,F){return new $IL(R,J,l,u,F)},this.L); Ni.prototype.startRendering.call(this,O)}; g.f.K1=function(O,R){R.layoutId===this.layout.layoutId?this.lz.kH("impression"):this.D===R.layoutId&&(this.N===null?this.N=this.yh.get().iC():rK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.f.wz=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.eN=function(){f2(this.Wy(),this);Ni.prototype.eN.call(this)};g.S(jW,Ni);g.f=jW.prototype;g.f.startRendering=function(O){Ex(this.lz,this.Uf(),this.UQ(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(R,J,l,u,F){return new pR(R,J,l,u,F)},this.L); Ni.prototype.startRendering.call(this,O)}; g.f.K1=function(){}; g.f.wz=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.eN=function(){f2(this.Wy(),this);Ni.prototype.eN.call(this)}; g.f.ez=function(){};g.f=WyA.prototype;g.f.Uf=function(){return this.slot}; g.f.UQ=function(){return this.layout}; g.f.init=function(){this.YS.get().addListener(this);this.YS.get().Zn.push(this);var O=Gg(this.layout.clientMetadata,"metadata_type_video_length_seconds"),R=Gg(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");vb(this.layout.n1)&&gW(this.Hy.get(),this.layout.layoutId,{p_:R,Ti:O,listener:this})}; g.f.release=function(){this.YS.get().removeListener(this);I5W(this.YS.get(),this);vb(this.layout.n1)&&ij(this.Hy.get(),this.layout.layoutId)}; g.f.startRendering=function(O){this.callback.K1(this.slot,O)}; g.f.o2=function(O,R){AuH(this.wd.get())&&!this.L&&(this.lz.kH("abandon"),this.L=!0);this.callback.wz(this.slot,O,R)}; g.f.Jx=function(O){switch(O.id){case "part2viewed":this.lz.kH("start");this.lz.kH("impression");break;case "videoplaytime25":this.lz.kH("first_quartile");break;case "videoplaytime50":this.lz.kH("midpoint");break;case "videoplaytime75":this.lz.kH("third_quartile");break;case "videoplaytime100":AuH(this.wd.get())?this.L||(this.lz.kH("complete"),this.L=!0):this.lz.kH("complete");AK(this.lz)&&bN(this.lz,Infinity,!0);e$2(this.wd.get())&&Ux(this.S,Infinity,!0);break;case "engagedview":AK(this.lz)||this.lz.kH("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:rK("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.f.onVolumeChange=function(){}; g.f.R1=function(){}; g.f.jQ=function(){}; g.f.GW=function(){}; g.f.onFullscreenToggled=function(){}; g.f.Jl=function(){}; g.f.EV=function(){}; g.f.H$=function(O){e$2(this.wd.get())&&Ux(this.S,O*1E3,!1);AK(this.lz)&&bN(this.lz,O*1E3,!1)}; g.f.kM=function(){}; g.f.eb=function(){this.lz.kH("active_view_measurable")}; g.f.wT=function(){this.lz.kH("active_view_viewable")}; g.f.FT=function(){this.lz.kH("active_view_fully_viewable_audible_half_duration")}; g.f.H_=function(){this.lz.kH("audio_measurable")}; g.f.Sb=function(){this.lz.kH("audio_audible")};g.S(Qv,Ni);g.f=Qv.prototype;g.f.init=function(){Ni.prototype.init.call(this);var O=g.e(Gg(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),R={adsClientData:this.layout.xH};this.L.push(new Er(O,this.layout.layoutId,Gg(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),R,!0))}; g.f.a4=function(){this.N||this.YS.get().resumeVideo(1)}; g.f.startRendering=function(O){Ni.prototype.startRendering.call(this,O);wW(this.YS.get(),"ad-showing");this.callback.K1(this.slot,O);this.D.hY=this}; g.f.o2=function(O,R){Ni.prototype.o2.call(this,O,R);In(this.YS.get(),"ad-showing");hp(this.D,this)}; g.f.ez=function(O){switch(O){case "ad-info-icon-button":(this.N=this.YS.get().gh(1))||this.YS.get().pauseVideo();break;case "visit-advertiser":this.YS.get().pauseVideo()}}; g.f.eN=function(){Ni.prototype.eN.call(this)};g.S(LR,Ke);g.S(Yd,Ni);g.f=Yd.prototype;g.f.startRendering=function(O){Ex(this.lz,this.Uf(),this.UQ(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(R,J,l,u,F){return new LR(R,J,l,u,F)},this.L); Ni.prototype.startRendering.call(this,O)}; g.f.K1=function(){}; g.f.wz=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.eN=function(){f2(this.Wy(),this);Ni.prototype.eN.call(this)}; g.f.ez=function(){};g.S(dk,Ke);g.S(hK,Ni);hK.prototype.init=function(){Ni.prototype.init.call(this);this.L.push(new dk(g.x(this.layout.renderingContent,sM),this.layout.layoutId,{adsClientData:this.layout.xH}))}; hK.prototype.ez=function(){ez(this.N.get(),this.D)&&DF(this.yh.get(),3)}; hK.prototype.startRendering=function(O){Ni.prototype.startRendering.call(this,O);this.callback.K1(this.slot,O)}; hK.prototype.eN=function(){Ni.prototype.eN.call(this)};g.S(zh,Ke);g.S(nR,Ni);nR.prototype.init=function(){Ni.prototype.init.call(this);var O=g.x(this.layout.renderingContent,wz)||Gg(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),R=mC(this.lz);this.L.push(new zh(O,R,this.layout.layoutId,{adsClientData:this.layout.xH},!0,!0))}; nR.prototype.startRendering=function(O){Ni.prototype.startRendering.call(this,O);this.callback.K1(this.slot,O)}; nR.prototype.ez=function(O,R){if(R===this.layout.layoutId)switch(O){case "skip-button":var J;(O=(J=Gg(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&O.Lt(this.Uf(),this.layout)}}; nR.prototype.eN=function(){Ni.prototype.eN.call(this)};Oy.prototype.build=function(O,R,J,l){if(cb(l,{gO:["metadata_type_ad_break_response_data"],k8:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new I$_(O,J,l,this.S,this.B,this.L);throw new uO("Unsupported layout with type: "+l.layoutType+" and client metadata: "+K2(l.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.S(PWf,Ke);g.S(R1,Ni);g.f=R1.prototype;g.f.ez=function(O,R){a2("ads-engagement-panel",O,AM(this.j.get()),this.yh.get(),this.N,this.D,this.Uf(),this.UQ(),R)}; g.f.startRendering=function(O){Ex(this.lz,this.Uf(),this.UQ(),g.x(this.UQ().renderingContent,GC),this.callback,"metadata_type_ads_engagement_panel_renderer",function(R,J,l,u,F){return new PWf(R,J,l,u,F)},this.L); Ni.prototype.startRendering.call(this,O)}; g.f.K1=function(O,R){R.layoutId===this.layout.layoutId?this.lz.kH("impression"):this.D===R.layoutId&&(this.N===null?this.N=this.yh.get().iC():rK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.f.wz=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.eN=function(){f2(this.Wy(),this);Ni.prototype.eN.call(this)};g.S(J4,Ni);g.f=J4.prototype;g.f.ez=function(O,R){a2("top-banner-image-text-icon-buttoned",O,AM(this.j.get()),this.yh.get(),this.N,this.D,this.Uf(),this.UQ(),R)}; g.f.startRendering=function(O){Ex(this.lz,this.Uf(),this.UQ(),g.x(this.UQ().renderingContent,yE),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(R,J,l,u,F){return new LR(R,J,l,u,F)},this.L); Ni.prototype.startRendering.call(this,O)}; g.f.K1=function(O,R){this.D===R.layoutId&&(this.N===null?this.N=this.yh.get().iC():rK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.f.wz=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.eN=function(){f2(this.Wy(),this);Ni.prototype.eN.call(this)};HeT.prototype.build=function(O,R,J,l){if(cb(l,pTp())||g.x(l.renderingContent,GC)!==void 0)return new R1(O,J,l,this.R2,this.yh,this.Wy,this.Hy,this.L);if(cb(l,vHz())||g.x(l.renderingContent,uJ)!==void 0)return new Bb(O,J,l,this.R2,this.yh,this.Wy,this.Hy,this.L);if(cb(l,Tos())||g.x(l.renderingContent,FC)!==void 0)return new Hb(O,J,l,this.R2,this.yh,this.Wy,this.Hy,this.L);if(cb(l,MU0()))return new xd(O,J,l,this.R2,this.yh,this.Wy,this.Hy,this.L);if(cb(l,beh()))return new jW(O,J,l,this.R2,this.yh,this.Wy, this.Hy,this.L);if(cb(l,a$0())||g.x(l.renderingContent,Kw)!==void 0)return new Pb(O,J,l,this.R2,this.yh,this.Wy,this.Hy,this.L);if(cb(l,Box())||g.x(l.renderingContent,yE)!==void 0)return new J4(O,J,l,this.R2,this.yh,this.Wy,this.Hy,this.L);if(cb(l,AQs()))return new Yd(O,J,l,this.R2,this.yh,this.Wy,this.Hy,this.L);if(cb(l,EHp())||g.x(l.renderingContent,wO)!==void 0)return new eW(O,J,l,this.R2,this.yh,this.Wy,this.Hy,this.L);throw new uO("Unsupported layout with type: "+l.layoutType+" and client metadata: "+ K2(l.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};xIB.prototype.build=function(O,R,J,l){if(cb(l,{gO:["metadata_type_linked_player_bytes_layout_id"],k8:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new hK(O,J,l,this.R2,this.yh,this.L);throw new uO("Unsupported layout with type: "+l.layoutType+" and client metadata: "+K2(l.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.f=UIB.prototype;g.f.Uf=function(){return this.slot}; g.f.UQ=function(){return this.layout}; g.f.init=function(){}; g.f.release=function(){}; g.f.startRendering=function(O){O.layoutId!==this.layout.layoutId?this.callback.fY(this.slot,O,new uO("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.K1(this.slot,O),this.lz.kH("impression"),zP(this.GE,O,"normal"))}; g.f.o2=function(O,R){O.layoutId!==this.layout.layoutId?this.callback.fY(this.slot,O,new uO("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.wz(this.slot,O,R)};g.f=Qh_.prototype;g.f.Uf=function(){return this.slot}; g.f.UQ=function(){return this.layout}; g.f.init=function(){}; g.f.release=function(){}; g.f.startRendering=function(O){O.layoutId!==this.layout.layoutId?this.callback.fY(this.slot,O,new uO("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.K1(this.slot,O),this.lz.kH("impression"),zP(this.GE,O,"normal"))}; g.f.o2=function(O,R){O.layoutId!==this.layout.layoutId?this.callback.fY(this.slot,O,new uO("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.wz(this.slot,O,R)};gz.prototype.build=function(O,R,J,l){if(!this.wd.get().X.T().Z("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(cb(l,jhL()))return new UIB(O,J,l,this.yh,this.GE)}else if(cb(l,{gO:[],k8:["LAYOUT_TYPE_FORECASTING"]}))return new Qh_(O,J,l,this.yh,this.GE);throw new uO("Unsupported layout with type: "+l.layoutType+" and client metadata: "+K2(l.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.S(dI2,Ke);g.S(ic,Ni);g.f=ic.prototype;g.f.init=function(){Ni.prototype.init.call(this);var O=g.x(this.layout.renderingContent,yW)||g.e(Gg(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer")),R={adsClientData:this.layout.xH};this.L.push(new dI2(O,Gg(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,R))}; g.f.a4=function(){this.N||this.YS.get().resumeVideo(2)}; g.f.startRendering=function(O){Ni.prototype.startRendering.call(this,O);this.callback.K1(this.slot,O);this.D.hY=this}; g.f.o2=function(O,R){Ni.prototype.o2.call(this,O,R);hp(this.D,this)}; g.f.ez=function(O,R){if(!n2(this.wd.get(),"stop_handling_click_for_non_rendering_overlay_layout")||R===this.layout.layoutId){if(ez(this.j.get(),this.J))switch(O){case "visit-advertiser-link":DF(this.yh.get(),3)}switch(O){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.N||this.YS.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.N=this.YS.get().gh(2))||this.YS.get().pauseVideo();break; case "visit-advertiser-link":this.YS.get().pauseVideo();g.e(hls(this)).Vj();break;case "skip-button":if(O=hls(this),this.layout.renderingContent&&!gU(this.layout.clientMetadata,"metadata_type_dai")||!O.zn){var J;(O=(J=Gg(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&O.Lt(this.Uf(),this.layout)}else rK("Requesting to skip by LegacyPlayerBytes when components enabled"),O.N0(this.Uf(),this.layout)}}}; g.f.eN=function(){Ni.prototype.eN.call(this)};g.S(lc,Ni);g.f=lc.prototype;g.f.init=function(){Ni.prototype.init.call(this);var O=g.x(this.layout.renderingContent,K8)||g.e(Gg(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),R={adsClientData:this.layout.xH},J;(J=!!this.layout.renderingContent)||(J=!uc(this).zn);this.L.push(new Er(O,this.layout.layoutId,Gg(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),R,J))}; g.f.a4=function(){this.N||this.YS.get().resumeVideo(2)}; g.f.startRendering=function(O){Ni.prototype.startRendering.call(this,O);this.callback.K1(this.slot,O);this.D.hY=this}; g.f.o2=function(O,R){Ni.prototype.o2.call(this,O,R);hp(this.D,this)}; g.f.ez=function(O,R){if(!this.wd||!n2(this.wd.get(),"stop_handling_click_for_non_rendering_overlay_layout")||R===this.layout.layoutId){if(ez(this.j.get(),this.J))switch(O){case "visit-advertiser":DF(this.yh.get(),3)}switch(O){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.N||this.YS.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.N=this.YS.get().gh(2))||this.YS.get().pauseVideo();break; case "visit-advertiser":this.YS.get().pauseVideo();g.e(uc(this)).Vj();break;case "skip-button":if(O=uc(this),this.layout.renderingContent&&!gU(this.layout.clientMetadata,"metadata_type_dai")||!O.zn){var J;(O=(J=Gg(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&O.Lt(this.Uf(),this.layout)}else rK("Requesting to skip by LegacyPlayerBytes"),O.N0(this.Uf(),this.layout)}}}; g.f.eN=function(){Ni.prototype.eN.call(this)};g.S(nH2,Ke);g.S(Fs,Ni);g.f=Fs.prototype;g.f.startRendering=function(O){var R=this;SW(this.S,O,function(){R.L.push(new nH2(Gg(R.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),O.layoutId,O.xH));R.Y0();R.callback.K1(R.slot,O);g.d(Jp(R.YS.get(),1),512)&&R.callback.fY(R.Uf(),R.UQ(),new uO("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.f.EV=function(){}; g.f.Jl=function(O){if(O.state.isError()){var R;this.callback.fY(this.Uf(),this.UQ(),new uO("A player error happened during adNotify",{playerErrorCode:(R=O.state.PH)==null?void 0:R.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.f.onFullscreenToggled=function(){}; g.f.jQ=function(){}; g.f.GW=function(){}; g.f.R1=function(){}; g.f.onVolumeChange=function(){}; g.f.Jx=function(){}; g.f.kM=function(){}; g.f.ez=function(){};g.S(O9A,Ke);g.S(Gd,Ni);Gd.prototype.init=function(){Ni.prototype.init.call(this);var O=g.x(this.layout.renderingContent,I1),R=mC(this.lz);this.L.push(new O9A(O,R,this.layout.layoutId,{adsClientData:this.layout.xH}))}; Gd.prototype.startRendering=function(O){Ni.prototype.startRendering.call(this,O);this.callback.K1(this.slot,O)}; Gd.prototype.ez=function(O,R){if(R===this.layout.layoutId)switch(O){case "skip-button":var J;(O=(J=Gg(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&O.Lt(this.Uf(),this.layout)}}; Gd.prototype.eN=function(){Ni.prototype.eN.call(this)};RMz.prototype.build=function(O,R,J,l){if(O=C8(O,J,l,this.R2,this.YS,this.yh,this.S,this.L,this.wd))return O;throw new uO("Unsupported layout with type: "+l.layoutType+" and client metadata: "+K2(l.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.f=o1.prototype;g.f.Uf=function(){return this.slot}; g.f.UQ=function(){return this.layout}; g.f.init=function(){this.YS.get().addListener(this);this.YS.get().Zn.push(this);if(this.layout.renderingContent){var O=this.rd.get();O=mw(O,1).Cg/1E3}else O=Gg(this.layout.clientMetadata,"metadata_type_video_length_seconds");var R=g.x(this.layout.renderingContent,MY),J=R?XB(R.pings):Gg(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");R=R?VUH(R.pings):Gg(this.layout.clientMetadata,"metadata_type_active_view_identifier");vb(this.layout.n1)&&gW(this.Hy.get(),this.layout.layoutId, {p_:J,Ti:O,listener:this,mU:R})}; g.f.release=function(){this.YS.get().removeListener(this);I5W(this.YS.get(),this);vb(this.layout.n1)&&ij(this.Hy.get(),this.layout.layoutId)}; g.f.startRendering=function(O){this.callback.K1(this.slot,O)}; g.f.o2=function(O,R){ZT(this,"abandon");this.callback.wz(this.slot,O,R)}; g.f.Jx=function(O){switch(O.id){case "part2viewed":this.lz.kH("start");this.lz.kH("impression");break;case "videoplaytime25":this.lz.kH("first_quartile");break;case "videoplaytime50":this.lz.kH("midpoint");break;case "videoplaytime75":this.lz.kH("third_quartile");break;case "videoplaytime100":ZT(this,"complete");AK(this.lz)&&bN(this.lz,Infinity,!0);break;case "engagedview":AK(this.lz)||this.lz.kH("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:rK("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.f.onVolumeChange=function(){}; g.f.R1=function(){}; g.f.jQ=function(){}; g.f.GW=function(){}; g.f.onFullscreenToggled=function(){}; g.f.Jl=function(O){this.L||(g.Z_(O,4)&&!g.Z_(O,2)?sx(this.lz,"pause"):oH(O,4)<0&&!(oH(O,2)<0)&&sx(this.lz,"resume"))}; g.f.EV=function(){}; g.f.H$=function(O){AK(this.lz)&&bN(this.lz,O*1E3,!1)}; g.f.kM=function(){ZT(this,"swipe")}; g.f.eb=function(){this.lz.kH("active_view_measurable")}; g.f.wT=function(){this.lz.kH("active_view_viewable")}; g.f.FT=function(){this.lz.kH("active_view_fully_viewable_audible_half_duration")}; g.f.H_=function(){this.lz.kH("audio_measurable")}; g.f.Sb=function(){this.lz.kH("audio_audible")};JT2.prototype.build=function(O,R,J,l){if(J.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.x(l.renderingContent,MY)!==void 0)return new o1(O,J,l,this.YS,this.yh,this.wd,this.Hy,this.rd);R=["metadata_type_ad_placement_config"];for(var u=g.N(Mi()),F=u.next();!F.done;F=u.next())R.push(F.value);if(cb(l,{gO:R,k8:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return J.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new o1(O,J,l,this.YS,this.yh,this.wd,this.Hy,this.rd):new WyA(O,J,l,this.YS,this.yh, this.q9,this.wd,this.Hy);throw new uO("Unsupported layout with type: "+l.layoutType+" and client metadata: "+K2(l.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Ey={contentCpn:"",z4:new Map};I__.prototype.M1=function(O,R){var J={};R=Object.assign({},R,(J.cc=this.LA.Nx(),J));this.LA.X.nJ(O,R)};var fuM,Py; fuM={UUd:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",ScJ:"AUTHENTICATION_MALFORMED",HEh:"AUTHENTICATION_MISSING",wnS:"BAD_REQUEST",Ycg:"CAST_SESSION_DEVICE_MISMATCHED",qcN:"CAST_SESSION_VIDEO_MISMATCHED",Q1Q:"CAST_TOKEN_EXPIRED",Xnu:"CAST_TOKEN_FAILED",vMX:"CAST_TOKEN_MALFORMED",j1R:"CGI_PARAMS_MALFORMED",xed:"CGI_PARAMS_MISSING",Mtg:"DEVICE_FALLBACK",Qaz:"GENERIC_WITH_LINK_AND_CPN",XQz:"ERROR_HDCP",v7N:"LICENSE",xMN:"VIDEO_UNAVAILABLE",dMJ:"FORMAT_UNAVAILABLE",UMQ:"GEO_FAILURE", fHd:"HTML5_AUDIO_RENDERER_ERROR",Rxh:"GENERIC_WITHOUT_LINK",LsQ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",nVd:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",gVQ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Ssq:"HTML5_SPS_UMP_STATUS_REJECTED",hxQ:"INVALID_DRM_MESSAGE",RTQ:"PURCHASE_NOT_FOUND",L7R:"PURCHASE_REFUNDED",wMX:"RENTAL_EXPIRED",pMz:"RETRYABLE_ERROR",xlU:"SERVER_ERROR",GZz:"SIGNATURE_EXPIRED",Acq:"STOPPED_BY_ANOTHER_PLAYBACK",T$d:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",K71:"STREAMING_NOT_ALLOWED", tUQ:"STREAM_LICENSE_NOT_FOUND",fuS:"TOO_MANY_REQUESTS",RYQ:"TOO_MANY_REQUESTS_WITH_LINK",LHd:"TOO_MANY_STREAMS_PER_ENTITLEMENT",n5h:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",yDJ:"VIDEO_FORBIDDEN",I7S:"VIDEO_NOT_FOUND",iEu:"BROWSER_OR_EXTENSION_ERROR"};Py={}; g.eK=(Py.ALREADY_PINNED_ON_A_DEVICE="Este video ya se descarg\u00f3 en la cantidad m\u00e1xima de dispositivos permitidos por el propietario de los derechos de autor. Antes de que puedas reproducir el video en este dispositivo, debes desvincularlo de cualquier otro.",Py.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",Py.GENERIC_WITH_LINK_AND_CPN="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde (ID de reproducci\u00f3n: $CPN). $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", Py.LICENSE="Se produjo un error de licencia con este video.",Py.VIDEO_UNAVAILABLE="Video no disponible",Py.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",Py.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",Py.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",Py.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",Py.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",Py.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="En este momento, tu navegador no reconoce ninguno de los formatos de video disponibles. $BEGIN_LINKHaz clic aqu\u00ed para ver las preguntas frecuentes sobre el video HTML5.$END_LINK",Py.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",Py.HTML5_SPS_UMP_STATUS_REJECTED="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", Py.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",Py.PURCHASE_NOT_FOUND="Este es un video pagado.",Py.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",Py.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",Py.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",Py.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", Py.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",Py.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",Py.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",Py.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",Py.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",Py.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",Py.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",Py.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",Py.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", Py.TOO_MANY_REQUESTS="Accede para mirar el video.",Py.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",Py.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",Py.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",Py.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", Py.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",Py.VIDEO_NOT_FOUND="No se puede encontrar este video.",Py.BROWSER_OR_EXTENSION_ERROR="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",Py);var S9_;var Nvo=g.aW(),mA4=Nvo.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!mA4||mA4.length<2)S9_=void 0;else{var EiR=Nvo.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);S9_=EiR&&EiR.length===6?Number(EiR[5].replace("_",".")):0}var xx=S9_,kx=xx>=0;g.S(g.p8,Tv);g.p8.prototype.U=function(O,R,J,l,u){return Tv.prototype.U.call(this,O,R,J,l,u)};var pB={},Ee=(pB.FAIRPLAY="fairplay",pB.PLAYREADY="playready",pB.WIDEVINE="widevine",pB.CLEARKEY=null,pB.FLASHACCESS=null,pB.UNKNOWN=null,pB.WIDEVINE_CLASSIC=null,pB);Bd.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var By={},ML=(By.WIDTH={name:"width",video:!0,valid:640,s$:99999},By.HEIGHT={name:"height",video:!0,valid:360,s$:99999},By.FRAMERATE={name:"framerate",video:!0,valid:30,s$:9999},By.BITRATE={name:"bitrate",video:!0,valid:3E5,s$:2E9},By.EOTF={name:"eotf",video:!0,valid:"bt709",s$:"catavision"},By.CHANNELS={name:"channels",video:!1,valid:2,s$:99},By.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",s$:"invalidformat"},By.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", s$:"nope"},By.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",s$:"av99.0.05M.08"},By.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",s$:"invalid"},By);var DAo=["h","H"],au6=["9","("],viC=["9h","(h"],XQQ=["8","*"],TvQ=["a","A"],$At=["o","O"],MOs=["m","M"],q9o=["mac3","MAC3"],kfC=["meac3","MEAC3"],Hy={},fXW=(Hy.h=DAo,Hy.H=DAo,Hy["9"]=au6,Hy["("]=au6,Hy["9h"]=viC,Hy["(h"]=viC,Hy["8"]=XQQ,Hy["*"]=XQQ,Hy.a=TvQ,Hy.A=TvQ,Hy.o=$At,Hy.O=$At,Hy.m=MOs,Hy.M=MOs,Hy.mac3=q9o,Hy.MAC3=q9o,Hy.meac3=kfC,Hy.MEAC3=kfC,Hy),so_=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Kj0=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var c={},L8=(c["0"]="f",c["160"]="h",c["133"]="h",c["134"]="h",c["135"]="h",c["136"]="h",c["137"]="h",c["264"]="h",c["266"]="h",c["138"]="h",c["298"]="h",c["299"]="h",c["304"]="h",c["305"]="h",c["214"]="h",c["216"]="h",c["374"]="h",c["375"]="h",c["140"]="a",c["141"]="a",c["327"]="sa",c["258"]="m",c["380"]="mac3",c["328"]="meac3",c["161"]="H",c["142"]="H",c["143"]="H",c["144"]="H",c["222"]="H",c["223"]="H",c["145"]="H",c["224"]="H",c["225"]="H",c["146"]="H",c["226"]="H",c["227"]="H",c["147"]="H",c["384"]= "H",c["376"]="H",c["385"]="H",c["377"]="H",c["149"]="A",c["261"]="M",c["381"]="MAC3",c["329"]="MEAC3",c["598"]="9",c["278"]="9",c["242"]="9",c["243"]="9",c["244"]="9",c["775"]="9",c["776"]="9",c["777"]="9",c["778"]="9",c["779"]="9",c["780"]="9",c["781"]="9",c["782"]="9",c["783"]="9",c["247"]="9",c["248"]="9",c["353"]="9",c["355"]="9",c["356"]="9",c["271"]="9",c["577"]="9",c["313"]="9",c["579"]="9",c["272"]="9",c["302"]="9",c["303"]="9",c["407"]="9",c["408"]="9",c["308"]="9",c["315"]="9",c["330"]= "9h",c["331"]="9h",c["332"]="9h",c["333"]="9h",c["334"]="9h",c["335"]="9h",c["336"]="9h",c["337"]="9h",c["338"]="so",c["600"]="o",c["250"]="o",c["251"]="o",c["774"]="o",c["194"]="*",c["195"]="*",c["220"]="*",c["221"]="*",c["196"]="*",c["197"]="*",c["279"]="(",c["280"]="(",c["317"]="(",c["318"]="(",c["273"]="(",c["274"]="(",c["357"]="(",c["358"]="(",c["275"]="(",c["359"]="(",c["360"]="(",c["276"]="(",c["583"]="(",c["584"]="(",c["314"]="(",c["585"]="(",c["561"]="(",c["277"]="(",c["361"]="(h",c["362"]= "(h",c["363"]="(h",c["364"]="(h",c["365"]="(h",c["366"]="(h",c["591"]="(h",c["592"]="(h",c["367"]="(h",c["586"]="(h",c["587"]="(h",c["368"]="(h",c["588"]="(h",c["562"]="(h",c["409"]="(",c["410"]="(",c["411"]="(",c["412"]="(",c["557"]="(",c["558"]="(",c["394"]="1",c["395"]="1",c["396"]="1",c["397"]="1",c["398"]="1",c["399"]="1",c["720"]="1",c["721"]="1",c["400"]="1",c["401"]="1",c["571"]="1",c["402"]="1",c["694"]="1h",c["695"]="1h",c["696"]="1h",c["697"]="1h",c["698"]="1h",c["699"]="1h",c["700"]="1h", c["701"]="1h",c["702"]="1h",c["703"]="1h",c["386"]="3",c["387"]="w",c["406"]="6",c["787"]="1",c["788"]="1",c["548"]="1e",c["549"]="1e",c["550"]="1e",c["551"]="1e",c["809"]="1e",c["810"]="1e",c["552"]="1e",c["811"]="1e",c["812"]="1e",c["553"]="1e",c["813"]="1e",c["814"]="1e",c["554"]="1e",c["815"]="1e",c["816"]="1e",c["555"]="1e",c["817"]="1e",c["818"]="1e",c["572"]="1e",c["556"]="1e",c["645"]="(",c["646"]="(",c["647"]="(",c["648"]="(",c["649"]="(",c["650"]="(",c["651"]="(",c["652"]="(",c["653"]="(", c["654"]="(",c["655"]="(",c["656"]="(",c["657"]="(",c["658"]="(",c["659"]="(",c["660"]="(",c["661"]="(",c["662"]="(",c["663"]="(",c["664"]="(",c["665"]="(",c["666"]="(",c["667"]="(",c["668"]="(",c["669"]="(",c["670"]="(",c["671"]="(",c["672"]="(",c["673"]="(",c["674"]="(h",c["675"]="(h",c["676"]="(h",c["677"]="(h",c["678"]="(h",c["679"]="(h",c["680"]="(h",c["681"]="(h",c["682"]="(h",c["683"]="(h",c["684"]="(h",c["685"]="(h",c["686"]="(h",c["687"]="(h",c["688"]="A",c["689"]="A",c["690"]="A",c["691"]= "MEAC3",c["773"]="i",c["806"]="I",c["805"]="I",c["829"]="9",c["830"]="9",c["831"]="9",c["832"]="9",c["833"]="9",c["834"]="9",c["835"]="9",c["836"]="9",c["837"]="9",c["838"]="9",c["839"]="9",c["840"]="9",c["841"]="(",c["842"]="(",c["843"]="(",c["844"]="(",c["845"]="(",c["846"]="(",c["847"]="(",c["848"]="(",c["849"]="(",c["850"]="(",c["851"]="(",c["852"]="(",c["865"]="9",c["866"]="9",c["867"]="9",c["868"]="9",c["869"]="9",c["870"]="9",c["871"]="9",c["872"]="9",c["873"]="9",c["874"]="9",c["875"]="9", c["876"]="9",c["877"]="(",c["878"]="(",c["879"]="(",c["880"]="(",c["881"]="(",c["882"]="(",c["883"]="(",c["884"]="(",c["885"]="(",c["886"]="(",c["887"]="(",c["888"]="(",c);var xm={},OXW=(xm.STEREO_LAYOUT_UNKNOWN=0,xm.STEREO_LAYOUT_LEFT_RIGHT=1,xm.STEREO_LAYOUT_TOP_BOTTOM=2,xm);var UV,ox;UV={};g.xw=(UV.auto=0,UV.tiny=144,UV.light=144,UV.small=240,UV.medium=360,UV.large=480,UV.hd720=720,UV.hd1080=1080,UV.hd1440=1440,UV.hd2160=2160,UV.hd2880=2880,UV.highres=4320,UV);ox={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var jV="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Uy.prototype.isHdr=function(){return this.L==="smpte2084"||this.L==="arib-std-b67"};Yw.prototype.WY=function(){return this.containerType===2}; Yw.prototype.isEncrypted=function(){return!!this.hp}; Yw.prototype.NT=function(){return!!this.audio}; Yw.prototype.ke=function(){return!!this.video}; var zd=!1;g.S(V9,g.y8);g.f=V9.prototype;g.f.appendBuffer=function(O,R,J){if(this.M7.bP()!==this.appendWindowStart+this.start||this.M7.kI()!==this.appendWindowEnd+this.start||this.M7.Vd()!==this.timestampOffset+this.start)this.M7.supports(1),this.M7.ol(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.M7.qd(this.timestampOffset+this.start);this.M7.appendBuffer(O,R,J)}; g.f.abort=function(){this.M7.abort()}; g.f.remove=function(O,R){this.M7.remove(O+this.start,R+this.start)}; g.f.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.f.clear=function(){this.M7.clear()}; g.f.ol=function(O,R){this.appendWindowStart=O;this.appendWindowEnd=R}; g.f.xv=function(){return this.timestampOffset+this.start}; g.f.bP=function(){return this.appendWindowStart}; g.f.kI=function(){return this.appendWindowEnd}; g.f.qd=function(O){this.timestampOffset=O}; g.f.Vd=function(){return this.timestampOffset}; g.f.Ap=function(O){O=this.M7.Ap(O===void 0?!1:O);return ZG(O,this.start,this.end)}; g.f.yE=function(){return this.M7.yE()}; g.f.NZ=function(){return this.M7.NZ()}; g.f.DY=function(){return this.M7.DY()}; g.f.H5=function(){return this.M7.H5()}; g.f.lT=function(){this.M7.lT()}; g.f.EC=function(O){return this.M7.EC(O)}; g.f.fp=function(){return this.M7.fp()}; g.f.WK=function(){return this.M7.WK()}; g.f.MV=function(){return this.M7.MV()}; g.f.P6=function(O,R,J){this.M7.P6(O,R,J)}; g.f.c6=function(O,R,J){this.M7.c6(O,R,J)}; g.f.zf=function(O,R){return this.M7.zf(O,R)}; g.f.supports=function(O){return this.M7.supports(O)}; g.f.ov=function(){return this.M7.ov()}; g.f.isView=function(){return!0}; g.f.Rv=function(){return this.M7.Rv()?this.isActive:!1}; g.f.isLocked=function(){return this.Cm&&!this.isActive}; g.f.sf=function(O){O=this.M7.sf(O);O.vw=this.start+"-"+this.end;return O}; g.f.MH=function(){return this.M7.MH()}; g.f.qY=function(){return this.M7.qY()}; g.f.qq=function(){return this.M7.qq()}; g.f.eN=function(){this.M7.dA(this.AN);g.y8.prototype.eN.call(this)};var N9=!1;g.S(Se,g.y8);g.f=Se.prototype;g.f.appendBuffer=function(O,R,J){this.X4=!1;J&&(this.w9=J);if(O.length){var l;((l=this.yd)==null?0:l.appendBuffer)?this.yd.appendBuffer(O):this.yd?this.yd.append(O):this.rI&&this.rI.webkitSourceAppend(this.id,O)}R&&(R.isEncrypted()&&(this.Dz=this.w9),R.type===3&&(this.Mc=R),this.ew.push(R.er()),this.ew.length>4&&this.ew.shift());this.eP&&(this.eP.length>=2||O.length>1048576?delete this.eP:this.eP.push(O))}; g.f.abort=function(){try{this.yd?this.yd.abort():this.rI&&this.rI.webkitSourceAbort(this.id)}catch(R){if(DoW){var O=new g.Ys("Error while abort the source buffer: "+R.name+", "+R.message);g.WM(O)}}this.w9=this.Mc=null}; g.f.remove=function(O,R,J){this.X4=!1;var l;if((l=this.yd)==null?0:l.remove)J&&J({b:y9(this.Ap()),s:O,e:R}),this.yd.remove(O,R)}; g.f.removeAll=function(){this.remove(this.bP(),this.kI())}; g.f.clear=function(){this.DY()||(this.abort(),this.removeAll(),this.Dz=this.w9=this.Mc=null,this.appendWindowStart=this.timestampOffset=0,this.jd=Km([],[]),this.X4=!1,this.eP=fm?[]:void 0,this.Sh=!0)}; g.f.bP=function(){if(N9&&this.ke)return this.appendWindowStart;var O;return((O=this.yd)==null?void 0:O.appendWindowStart)||0}; g.f.kI=function(){var O;return((O=this.yd)==null?void 0:O.appendWindowEnd)||0}; g.f.ol=function(O,R){this.yd&&(N9&&this.ke?(this.appendWindowStart=O,this.yd.appendWindowEnd=R):O>this.bP()?(this.yd.appendWindowEnd=R,this.yd.appendWindowStart=O):(this.yd.appendWindowStart=O,this.yd.appendWindowEnd=R))}; g.f.xv=function(){return this.timestampOffset}; g.f.qd=function(O){N9?this.timestampOffset=O:this.supports(1)&&(this.yd.timestampOffset=O)}; g.f.Vd=function(){return N9?this.timestampOffset:this.supports(1)?this.yd.timestampOffset:0}; g.f.Ap=function(O){if(O===void 0?0:O)return this.X4||this.yE()||(this.jd=this.Ap(!1),this.X4=!0),this.jd;try{return this.yd?this.yd.buffered:this.rI?this.rI.webkitSourceBuffered(this.id):Km([0],[Infinity])}catch(R){return Km([],[])}}; g.f.yE=function(){var O;return((O=this.yd)==null?void 0:O.updating)||!1}; g.f.DY=function(){return this.Sh}; g.f.H5=function(){return!this.Sh&&this.yE()}; g.f.lT=function(){this.Sh=!1}; g.f.EC=function(O){var R=O==null?void 0:O.Pq;O=O==null?void 0:O.containerType;return!R&&!O||R===this.Pq&&O===this.containerType}; g.f.fp=function(){return this.w9}; g.f.WK=function(){return this.Dz}; g.f.zf=function(O,R){return this.containerType!==O||this.Pq!==R}; g.f.P6=function(O,R,J){if(this.containerType!==O||J&&this.zf(O,J))this.supports(4),N8()&&this.yd.changeType(R),J&&(this.Pq=J);this.containerType=O}; g.f.c6=function(O,R,J){this.containerType&&this.zf(O,R)&&N8()&&this.yd.changeType(J);this.containerType=O;this.Pq=R}; g.f.ov=function(){return this.Mc}; g.f.isView=function(){return!1}; g.f.supports=function(O){switch(O){case 1:var R;return((R=this.yd)==null?void 0:R.timestampOffset)!==void 0;case 0:var J;return!((J=this.yd)==null||!J.appendBuffer);case 2:var l;return!((l=this.yd)==null||!l.remove);case 3:var u,F;return!!(((u=this.yd)==null?0:u.addEventListener)&&((F=this.yd)==null?0:F.removeEventListener));case 4:return!(!this.yd||!this.yd.changeType);default:return!1}}; g.f.Rv=function(){return!this.yE()}; g.f.isLocked=function(){return!1}; g.f.sf=function(O){O.to=this.Vd();O.up=this.yE();var R,J=((R=this.yd)==null?void 0:R.appendWindowStart)||0,l;R=((l=this.yd)==null?void 0:l.appendWindowEnd)||Infinity;O.aw=J.toFixed(3)+"-"+R.toFixed(3);return O}; g.f.NZ=function(){var O;return((O=this.yd)==null?void 0:O.writeHead)||0}; g.f.MH=function(){for(var O={},R=0;R=7&&CzB(this,function(){g.tF(function(){MgL(O,O.getCurrentTime(),0)},500)}); return R}; g.f.seekTo=function(O){this.n$()>0&&(kx&&xx<4&&(O=Math.max(.1,O)),this.setCurrentTime(O))}; g.f.z_=function(){if(!this.S&&this.EQ)if(this.EQ.D)try{var O;nm(this,{l:"mer",sr:(O=this.LJ)==null?void 0:O.wR(),rs:OJ(this.EQ)});this.EQ.clear();this.S=this.EQ;this.EQ=void 0}catch(R){O=new g.Ys("Error while clearing Media Source in MediaElement: "+R.name+", "+R.message),g.WM(O),this.stopVideo()}else this.stopVideo()}; g.f.stopVideo=function(){var O=this;if(!this.S){var R;(R=this.EQ)==null||XIB(R);if(NeW){if(!this.B){var J=new Jw;J.then(void 0,function(){}); this.B=J;mos&&this.pause();g.tF(function(){O.B===J&&(uy(O),J.resolve())},200)}}else uy(this)}}; g.f.SV=function(){var O=this.cH();return t1(O)&&this.getDuration()?Cm(O,this.getCurrentTime()):0}; g.f.nz=function(){var O=this.getDuration();return O===Infinity?1:O?this.SV()/O:0}; g.f.sf=function(){try{var O=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:y9(this.H8(),",",3),vbu:y9(this.cH()),vbs:y9(this.xJ()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.n$(),vns:""+this.LQ(),vec:""+this.U0(),vemsg:this.HH(),vvol:""+this.getVolume(),vdom:""+ +this.Fc(),vsrc:""+ +!!this.ea(),vw:""+O.width,vh:""+O.height}}catch(R){return{}}}; g.f.hasError=function(){return this.U0()>0}; g.f.addEventListener=function(O,R){this.N.listen(O,R,!1,this);this.yR(O)}; g.f.removeEventListener=function(O,R){this.N.uK(O,R,!1,this)}; g.f.dispatchEvent=function(O){if(this.B&&O.type==="pause")return!1;if(EcL){var R,J=((R=O.L)==null?void 0:R.timeStamp)||Infinity;R=J>performance.now()?J-Date.now()+performance.now():J;J=this.S||this.EQ;if((J==null?0:J.DY())||R<=((J==null?void 0:J.j)||0)){var l;nm(this,{l:"mede",sr:(l=this.LJ)==null?void 0:l.wR(),et:O.type});return!1}if(this.d8)return nm(this,{l:"medes",et:O.type}),J&&O.type==="seeking"&&(J.j=performance.now(),this.d8=!1),!1}return this.N.dispatchEvent(O)}; g.f.XE=function(){this.j=!1}; g.f.NV=function(){this.j=!0;this.hI(!0)}; g.f.b4=function(){this.j&&!this.RJ()&&this.hI(!0)}; g.f.equals=function(O){return!!O&&O.u5()===this.u5()}; g.f.eN=function(){this.J&&this.removeEventListener("volumechange",this.b4);NeW&&uy(this);g.p.prototype.eN.call(this)}; var NeW=!1,mos=!1,EcL=!1,sHp=!1;g.f=g.GP.prototype;g.f.isPaused=function(){return g.d(this,4)}; g.f.isPlaying=function(){return g.d(this,8)&&!g.d(this,512)&&!g.d(this,64)&&!g.d(this,2)}; g.f.isOrWillBePlaying=function(){return g.d(this,8)&&!g.d(this,2)&&!g.d(this,1024)}; g.f.isCued=function(){return g.d(this,64)&&!g.d(this,8)&&!g.d(this,4)}; g.f.isBuffering=function(){return g.d(this,1)&&!g.d(this,2)}; g.f.isError=function(){return g.d(this,128)}; g.f.isSuspended=function(){return g.d(this,512)}; g.f.Bt=function(){return g.d(this,64)&&g.d(this,4)}; g.f.toString=function(){return"PSt."+this.state.toString(16)}; var js={},Q7=(js.BUFFERING="buffering-mode",js.CUED="cued-mode",js.ENDED="ended-mode",js.PAUSED="paused-mode",js.PLAYING="playing-mode",js.SEEKING="seeking-mode",js.UNSTARTED="unstarted-mode",js);g.S(Vg,g.p);g.f=Vg.prototype;g.f.GZ=function(){return this.B}; g.f.Uf=function(){return this.slot}; g.f.UQ=function(){return this.layout}; g.f.init=function(){var O=Gg(this.layout.clientMetadata,"metadata_type_video_length_seconds"),R=Gg(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");vb(this.layout.n1)&&gW(this.Hy.get(),this.layout.layoutId,{p_:R,Ti:O,listener:this,Lc:this.Fw()});i0z(this.yh.get(),this);O=this.A1;R=this.layout.layoutId;var J={Lc:this.Fw()};O.L.set(R,J);this.Ji()}; g.f.K9=function(){}; g.f.release=function(){vb(this.layout.n1)&&ij(this.Hy.get(),this.layout.layoutId);l5T(this.yh.get(),this);this.A1.L.delete(this.layout.layoutId);this.dT()}; g.f.dX=function(){}; g.f.lL=function(){}; g.f.startRendering=function(O){vd(fX(this));if(S2(this,O)){var R=this.L;Xs(R.params.tj.wd.get(),!0)&&wIf(R,"p_sr",{});N4(this);this.CN(O);this.Fw()||this.KF(!1)}}; g.f.K1=function(O,R){if(R.layoutId===this.layout.layoutId){this.C1="rendering";this.S=this.YS.get().isMuted()||this.YS.get().getVolume()===0;this.kH("impression");this.kH("start");if(this.YS.get().isMuted()){XL(this,"mute");var J;O=((J=ZX(this))==null?void 0:J.muteCommands)||[];L2(this.q9.get(),O,this.layout.layoutId)}if(this.YS.get().isFullscreen()){this.t1("fullscreen");var l;J=((l=ZX(this))==null?void 0:l.fullscreenCommands)||[];L2(this.q9.get(),J,this.layout.layoutId)}this.Fw()||(l=this.iK.get(), l.B&&!l.S&&(l.D=!1,l.S=!0,l.actionType!=="ad_to_video"&&(Y3("pbs",void 0,l.actionType),g.S8("finalize_all_timelines")&&QAT(l.actionType))));this.VY(1);this.v$(R);var u;R=((u=ZX(this))==null?void 0:u.impressionCommands)||[];L2(this.q9.get(),R,this.layout.layoutId)}}; g.f.dH=function(O,R,J){this.J={Hh:3,zi:O==="load_timeout"?402:400,errorMessage:R.message};this.kH("error");var l;O=((l=ZX(this))==null?void 0:l.errorCommands)||[];L2(this.q9.get(),O,this.layout.layoutId);this.Fw()||this.j8.fY(this.slot,this.layout,R,J)}; g.f.zQ=function(){if(this.C1==="rendering"){XL(this,"pause");var O,R=((O=ZX(this))==null?void 0:O.pauseCommands)||[];L2(this.q9.get(),R,this.layout.layoutId);this.VY(2)}}; g.f.lJ=function(){if(this.C1==="rendering"){XL(this,"resume");var O,R=((O=ZX(this))==null?void 0:O.resumeCommands)||[];L2(this.q9.get(),R,this.layout.layoutId)}}; g.f.R0=function(O,R){R=R===void 0?!1:R;if(this.C1==="rendering"){var J={currentTimeSec:O,flush:R};Td(this.L,"p_ip",J);bN(this.lz,O*1E3,R);this.S||bN(this.lz,O*1E3,R===void 0?!1:R);var l=this.Qr();if(l){l/=1E3;if(O>=l*.25||R)this.kH("first_quartile"),Td(this.L,"p_fq",J);if(O>=l*.5||R)this.kH("midpoint"),Td(this.L,"p_sq",J);if(O>=l*.75||R)this.kH("third_quartile"),Td(this.L,"p_tq",J);this.wd.get().X.T().experiments.Vh("enable_progress_command_flush_on_kabuki")?Ux(this.N,O*1E3,R):Ux(this.N,O*1E3,pIW(this)? R:!1)}}}; g.f.Nx=function(){var O;return((O=mw(this.rd.get(),1))==null?void 0:O.clientPlaybackNonce)||""}; g.f.Hg=function(O,R){O.layoutId!==this.layout.layoutId?this.j8.fY(this.slot,O,new uO("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"):R()}; g.f.wz=function(O,R,J){if(R.layoutId===this.layout.layoutId)switch(this.C1="not_rendering",this.layoutExitReason=void 0,this.Fw()||(O=J!=="normal"||this.position+1===this.j)&&this.KF(O),this.Uu(J),this.VY(0),J){case "abandoned":if(Wb(this.lz,"impression")){var l,u=((l=ZX(this))==null?void 0:l.abandonCommands)||[];L2(this.q9.get(),u,this.layout.layoutId)}break;case "normal":l=((u=ZX(this))==null?void 0:u.completeCommands)||[];L2(this.q9.get(),l,this.layout.layoutId);break;case "skipped":var F;l=((F= ZX(this))==null?void 0:F.skipCommands)||[];L2(this.q9.get(),l,this.layout.layoutId)}}; g.f.Xp=function(){return this.layout.layoutId}; g.f.t_=function(){return this.J}; g.f.eb=function(){if(this.C1==="rendering"){this.lz.kH("active_view_measurable");var O,R=((O=ZX(this))==null?void 0:O.activeViewMeasurableCommands)||[];L2(this.q9.get(),R,this.layout.layoutId)}}; g.f.FT=function(){if(this.C1==="rendering"){this.lz.kH("active_view_fully_viewable_audible_half_duration");var O,R=((O=ZX(this))==null?void 0:O.activeViewFullyViewableAudibleHalfDurationCommands)||[];L2(this.q9.get(),R,this.layout.layoutId)}}; g.f.wT=function(){if(this.C1==="rendering"){this.lz.kH("active_view_viewable");var O,R=((O=ZX(this))==null?void 0:O.activeViewViewableCommands)||[];L2(this.q9.get(),R,this.layout.layoutId)}}; g.f.Sb=function(){if(this.C1==="rendering"){this.lz.kH("audio_audible");var O,R=((O=ZX(this))==null?void 0:O.activeViewAudioAudibleCommands)||[];L2(this.q9.get(),R,this.layout.layoutId)}}; g.f.H_=function(){if(this.C1==="rendering"){this.lz.kH("audio_measurable");var O,R=((O=ZX(this))==null?void 0:O.activeViewAudioMeasurableCommands)||[];L2(this.q9.get(),R,this.layout.layoutId)}}; g.f.KF=function(O){this.iK.get().KF(Gg(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,O,this.position,this.j,!1)}; g.f.onFullscreenToggled=function(O){if(this.C1==="rendering")if(O){this.t1("fullscreen");var R,J=((R=ZX(this))==null?void 0:R.fullscreenCommands)||[];L2(this.q9.get(),J,this.layout.layoutId)}else this.t1("end_fullscreen"),R=((J=ZX(this))==null?void 0:J.endFullscreenCommands)||[],L2(this.q9.get(),R,this.layout.layoutId)}; g.f.onVolumeChange=function(){if(this.C1==="rendering")if(this.YS.get().isMuted()){XL(this,"mute");var O,R=((O=ZX(this))==null?void 0:O.muteCommands)||[];L2(this.q9.get(),R,this.layout.layoutId)}else XL(this,"unmute"),O=((R=ZX(this))==null?void 0:R.unmuteCommands)||[],L2(this.q9.get(),O,this.layout.layoutId)}; g.f.jQ=function(){}; g.f.GW=function(){}; g.f.R1=function(){}; g.f.Jx=function(){}; g.f.kM=function(){}; g.f.t1=function(O){this.lz.t1(O,!this.S)}; g.f.kH=function(O){this.lz.kH(O,!this.S)}; g.f.Fw=function(){var O=Gg(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return O===void 0?(rK("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.wd.get().Fw(O)};g.S(kz,Vg);g.f=kz.prototype;g.f.Ji=function(){}; g.f.dT=function(){var O=this.yh.get();O.xE===this&&(O.xE=null);this.Jp.stop()}; g.f.dX=function(){this.Jp.stop();Vg.prototype.zQ.call(this)}; g.f.lL=function(){by(this);Vg.prototype.lJ.call(this)}; g.f.Qr=function(){return Gg(this.UQ().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.f.o2=function(O,R){var J=this;this.Hg(O,function(){J.C1!=="rendering_stop_requested"&&(J.C1="rendering_stop_requested",J.layoutExitReason=R,EJ(J,R),J.Jp.stop())})}; g.f.v3=function(){var O=Date.now(),R=O-this.d4;this.d4=O;this.Oc+=R;this.Oc>=this.Qr()?this.E9():(this.R0(this.Oc/1E3),sJ(this,this.Oc))}; g.f.Uu=function(){}; g.f.EV=function(){}; g.S(WG,kz);g.f=WG.prototype;g.f.Jl=function(O){if(this.C1!=="not_rendering"){O=DX(this,O);var R=this.YS.get().getPresentingPlayerType()===2;this.C1==="rendering_start_requested"?R&&rz(O)&&this.eh():R?g.Z_(O,2)?rK("Receive player ended event during MediaBreak",this.Uf(),this.UQ()):ae(this,O):this.DI()}}; g.f.CN=function(){eMh(this);t$z(this.YS.get());this.yh.get().xE=this;Q0("pbp")||Q0("pbs")||Y3("pbp");Q0("pbp","watch")||Q0("pbs","watch")||Y3("pbp",void 0,"watch");this.eh()}; g.f.v$=function(O){this.iK.get();var R=Gg(O.clientMetadata,"metadata_type_ad_placement_config").kind,J=this.position===0;O=Gg(O.clientMetadata,"metadata_type_linked_in_player_layout_type");O={adBreakType:vG(R),adType:zMW(O)};var l=void 0;J?R!=="AD_PLACEMENT_KIND_START"&&(l="video_to_ad"):l="ad_to_ad";x3("ad_mbs",void 0,l);g.U8(O,l);by(this)}; g.f.DI=function(){this.Dn()}; g.f.E9=function(){H9s(this);this.Dn()}; g.S(Aw,kz);g.f=Aw.prototype;g.f.Jl=function(O){this.C1!=="not_rendering"&&(O=DX(this,O),ae(this,O))}; g.f.CN=function(){rK("Not used in SSAP")}; g.f.v$=function(){by(this)}; g.f.DI=function(){rK("Not used in SSAP")}; g.f.E9=function(){H9s(this);this.j8.HV(this.Uf(),this.UQ(),"normal")}; g.S(e2,Aw);e2.prototype.o2=function(O,R){var J=this;this.Hg(O,function(){NC(J.B,R)&&(J.C1="rendering_stop_requested",J.layoutExitReason=R,EJ(J,R),J.Jp.stop())})}; e2.prototype.startRendering=function(O){vd(fX(this));S2(this,O)&&(N4(this),this.yh.get().xE=this)};g.S(BG,Vg);g.f=BG.prototype;g.f.DI=function(){this.Dn()}; g.f.Jl=function(O){if(this.C1!=="not_rendering"){O=DX(this,O);var R=this.YS.get().getPresentingPlayerType()===2;this.C1==="rendering_start_requested"?R&&rz(O)&&this.eh():!R||g.Z_(O,2)?this.Dn():ae(this,O)}}; g.f.Ji=function(){Gg(this.UQ().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Gg(this.UQ().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.f.dT=function(){Gg(this.UQ().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.CS){var O=this.context.tj,R=this.CS,J=this.UQ().layoutId;if(Xs(O.wd.get(),!0)){var l={};O.M1("mccru",(l.cid=R,l.p_ac=J,l))}this.I2.get().removeCueRange(this.CS)}this.CS=void 0;var u;(u=this.iD)==null||u.dispose();this.vR&&this.vR.dispose()}; g.f.CN=function(O){var R=PG(this.wd.get()),J=pX(this.wd.get());if(R&&J&&!this.Fw()){J=Gg(O.clientMetadata,"metadata_type_preload_player_vars");var l=this.wd.get();l=g.tB(l.X.T().experiments,"html5_preload_wait_time_secs");J&&this.vR&&this.vR.start(l*1E3)}jHs(this,O);eMh(this);R?(J=this.F5.get(),O=Gg(O.clientMetadata,"metadata_type_player_vars"),J.X.loadVideoByPlayerVars(O,!1,2)):TS_(this.F5.get(),Gg(O.clientMetadata,"metadata_type_player_vars"));var u;(u=this.iD)==null||u.start();R||this.F5.get().X.playVideo(2)}; g.f.v$=function(){var O;(O=this.iD)==null||O.stop();this.CS="adcompletioncuerange:"+this.UQ().layoutId;this.I2.get().addCueRange(this.CS,0x7ffffffffffff,0x8000000000000,!1,this,2,2);O=this.context.tj;var R=this.CS,J=this.UQ().layoutId;if(Xs(O.wd.get(),!0)){var l={};O.M1("mccr",(l.cid=R,l.p_ac=J,l))}(this.adCpn=ATB(this))||rK("Media layout confirmed started, but ad CPN not set.");this.zR.get().oy("onAdStart",this.adCpn);this.dF=Date.now()}; g.f.Qr=function(){var O;return(O=mw(this.rd.get(),2))==null?void 0:O.Cg}; g.f.Vj=function(){this.lz.t1("clickthrough")}; g.f.o2=function(O,R){var J=this;this.Hg(O,function(){if(J.C1!=="rendering_stop_requested"){J.C1="rendering_stop_requested";J.layoutExitReason=R;EJ(J,R);var l;(l=J.iD)==null||l.stop();J.vR&&J.vR.stop();QHp(J)}})}; g.f.onCueRangeEnter=function(O){if(O!==this.CS)rK("Received CueRangeEnter signal for unknown layout.",this.Uf(),this.UQ(),{cueRangeId:O});else{var R=this.context.tj,J=this.UQ().layoutId;if(Xs(R.wd.get(),!0)){var l={};R.M1("mccre",(l.cid=O,l.p_ac=J,l))}this.I2.get().removeCueRange(this.CS);this.CS=void 0;n2(this.context.wd.get(),"html5_ssap_flush_at_stop_rendering")&&this.Fw()||(O=Gg(this.UQ().clientMetadata,"metadata_type_video_length_seconds"),this.R0(O,!0),this.kH("complete"))}}; g.f.Uu=function(O){O!=="abandoned"&&this.zR.get().oy("onAdComplete");this.zR.get().oy("onAdEnd",this.adCpn)}; g.f.onCueRangeExit=function(){}; g.f.EV=function(O){this.C1==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&O>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.YS.get().HA(!0),this.R0(O))}; g.f.R0=function(O,R){Vg.prototype.R0.call(this,O,R===void 0?!1:R);R=Date.now()-this.dF;var J=O*1E3,l={contentCpn:this.Nx(),adCpn:ATB(this)};if(O-this.aD>=5){var u=R=2||(this.k9.o2(this.layout,R),O=n2(this.params.context.wd.get(),"html5_ssap_pass_transition_reason")&&R==="abandoned",this.UJ()&&!O&&(n2(this.params.context.wd.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(R)||rK("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:R})),this.Sr.get().finishSegmentByCpn(this.layout.layoutId, mw(this.rd.get(),1).clientPlaybackNonce,$z(R,this.params.context.wd))),this.YS.get().removeListener(this),this.hA()&&mj(this.k9.GZ())&&this.fd.wz(this.slot,this.layout,SV(this.k9.GZ())))}; g.f.VA=function(O,R,J){K6p({cpn:O,LA:this.rd.get(),iL:!0});this.UQ().layoutId!==O||n2(this.params.context.wd.get(),"html5_ssap_pass_transition_reason")&&J===5||(f8(this.k9.GZ())<2&&(O=M4(J,this.params.context.wd),O==="error"?this.fd.fY(this.slot,this.layout,new uO("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:J},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):zP(this.SR,this.layout, O)),n2(this.params.context.wd.get(),"html5_ssap_exit_without_waiting_for_transition")||this.fd.wz(this.slot,this.layout,SV(this.k9.GZ())))};g.S(Qg,g.p);g.f=Qg.prototype;g.f.Uf=function(){return this.slot}; g.f.UQ=function(){return this.layout}; g.f.sB=function(){}; g.f.PW=function(){return this.KW[this.OA]}; g.f.p$=function(){return this.OA}; g.f.dX=function(O,R){var J=this.PW();R.layoutId!==Yz(J,O,R)?rK("pauseLayout for a PlayerBytes layout that is not currently active",O,R):J.dX()}; g.f.lL=function(O,R){var J=this.PW();R.layoutId!==Yz(J,O,R)?rK("resumeLayout for a PlayerBytes layout that is not currently active",O,R):J.lL()}; g.f.N0=function(O,R){var J=this.PW();J9z(this,O,R);g3T(J,O,R)&&this.Eg(J.Uf(),J.UQ(),"skipped")}; g.f.Lt=function(O,R){var J=this.PW();iZ2(this);l2A(J,O,R)&&(O=uiA(this,J,O,R),O!==void 0&&(this.Fw()?rK("Should not happen. Should delete"):GOz(this,J.Uf(),J.UQ(),O)))}; g.f.I3=function(O,R){var J=Object.assign({},LX(this),{layoutId:R.layoutId}),l=J.layoutId,u=J.iL;if(J.Lc){var F={};a1(J.LA,"wrse",(F.ec=l,F.is=u,F.ctp=DT(l),F))}MJ(this.vD,O,R)}; g.f.K1=function(O,R){var J;(J=this.PW())==null||J.K1(O,R)}; g.f.wz=function(O,R,J){R.layoutId===this.UQ().layoutId&&(this.Yp=!1,f2(this.Wy(),this));var l;(l=this.PW())==null||l.wz(O,R,J)}; g.f.EV=function(O){var R;(R=this.PW())==null||R.EV(O)}; g.f.XZ=function(O,R,J){this.p$()===-1&&(this.callback.K1(this.slot,this.layout),this.OA++);var l=this.PW();l?(l.dH(O,R,J),this.Fw()&&this.callback.fY(this.slot,this.layout,R,J)):rK("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.p$()),layoutId:this.UQ().layoutId})}; g.f.onFullscreenToggled=function(O){var R;(R=this.PW())==null||R.onFullscreenToggled(O)}; g.f.jQ=function(O){var R;(R=this.PW())==null||R.jQ(O)}; g.f.R1=function(O){var R;(R=this.PW())==null||R.R1(O)}; g.f.onVolumeChange=function(){var O;(O=this.PW())==null||O.onVolumeChange()}; g.f.tX=function(O,R,J){qJ(this.vD,O,R,J)}; g.f.Ig=function(O){O.startRendering(O.UQ())}; g.f.init=function(){var O=Gg(this.UQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");O&&(O.current=this);if(this.KW.length<1)throw new h("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.KW.length)});if(O=Gg(this.UQ().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))O.current=this;O=g.N(this.KW);for(var R=O.next();!R.done;R=O.next())R=R.value,R.init(),$Ph(this.vD,this.slot,R.UQ()),Mr0(this.vD,this.slot,R.UQ()); if(this.Fw())for(this.rd.get().addListener(this),g0p(RoH(this),this.rd.get()),O=RoH(this),O=g.N(O),R=O.next();!R.done;R=O.next())this.OW(R.value)}; g.f.OW=function(O){var R=Gg(O.clientMetadata,"metadata_type_player_vars");R?(O.layoutType!=="LAYOUT_TYPE_MEDIA"&&rK("Non-video ad contains playerVars",this.slot,O),this.F5.get().addPlayerResponseForAssociation({playerVars:R})):(O=n02(O),this.F5.get().addPlayerResponseForAssociation({bu:O}))}; g.f.release=function(){var O=Gg(this.UQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");O&&(O.current=null);if(O=Gg(this.UQ().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))O.current=null;O=g.N(this.KW);for(var R=O.next();!R.done;R=O.next())R=R.value,qi2(this.vD,this.slot,R.UQ()),R.release();this.Fw()&&(this.rd.get().removeListener(this),i92())}; g.f.Hg=function(O){return O.layoutId!==this.UQ().layoutId?(this.callback.fY(this.Uf(),O,new uO("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.UQ().layoutId+("and LayoutType: "+this.UQ().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.f.kO=function(){this.YS.get().addListener(this);VG(this.Wy(),this)}; g.f.Jl=function(O){if(O.state.isError()){var R,J;this.XZ((R=O.state.PH)==null?void 0:R.errorCode,new uO("There was a player error during this media layout.",{playerErrorCode:(J=O.state.PH)==null?void 0:J.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(R=this.PW())&&R.Jl(O)}; g.f.Fw=function(){var O=Gg(this.Uf().clientMetadata,"metadata_type_eligible_for_ssap");return O===void 0?(rK("Expected SSAP eligibility in PlayerBytes slots",this.Uf(),this.UQ()),!1):this.wd.get().Fw(O)}; g.f.GW=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.Jx=function(){}; g.f.kM=function(){}; g.S(nX,Qg);g.f=nX.prototype;g.f.r_=function(O,R,J){this.Eg(O,R,J)}; g.f.Dd=function(O,R){this.Eg(O,R,"error")}; g.f.Eg=function(O,R,J){var l=this;Fh0(this,O,R,J,function(){dc(l,l.p$()+1)})}; g.f.startRendering=function(O){this.Hg(O)&&(this.kO(),axA(this.iK.get()),bGs(this.wd.get())||t$z(this.YS.get()),this.p$()===-1&&dc(this,this.p$()+1))}; g.f.o2=function(O,R){var J=this;this.Yp=!0;this.p$()===this.KW.length?this.callback.wz(this.slot,this.layout,R):(O=this.PW(),O.o2(O.UQ(),R),this.FR=function(){J.callback.wz(J.slot,J.layout,R)}); oJT(this.YS.get());TS_(this.F5.get(),{});O=Jp(this.YS.get(),1);O.isPaused()&&!g.d(O,2)&&this.YS.get().playVideo();this.YS.get().removeListener(this);this.Yp&&KhW(this)}; g.f.VA=function(){}; g.f.lN=function(){}; g.f.HV=function(){}; g.S(cG,Qg);g.f=cG.prototype;g.f.r_=function(O,R,J){O=Object.assign({},LX(this),{layoutId:R.layoutId,layoutExitReason:J});R=O.layoutId;J=O.layoutExitReason;var l={};a1(O.LA,"prse",(l.xc=R,l.ler=J,l.ctp=DT(R),l))}; g.f.Dd=function(){rK("onSubLayoutError in SSAP")}; g.f.Eg=function(){rK("exitSubLayoutAndPlayNext in SSAP")}; g.f.PW=function(){return this.w2}; g.f.p$=function(){var O=this;return this.KW.findIndex(function(R){var J;return R.UQ().layoutId===((J=O.w2)==null?void 0:J.UQ().layoutId)})}; g.f.Ig=function(O){C9(this.w2===void 0,"replacing another adapter");this.w2=O;O.startRendering(O.UQ())}; g.f.tX=function(O,R,J){qJ(this.vD,O,R,J);var l;C9(R.layoutId===((l=this.w2)==null?void 0:l.UQ().layoutId),"currentAdapter does not match exiting layout",{slot:O?"slot: "+O.slotType:"",subLayout:IH(R)})&&(this.w2=void 0)}; g.f.release=function(){Qg.prototype.release.call(this);C9(this.w2===void 0,"currentAdapter is still active during release");this.w2=void 0}; g.f.UJ=function(){return this.YS.get().getPresentingPlayerType()===2}; g.f.o2=function(O,R){function J(){Ol(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(R)||rK("Composite stopRendering: Unexpected layout exit reason",this.slot,O,{layoutExitReason:R}))} function l(){this.w2&&Ra(this,this.w2,R);if(this.UJ()&&(!Ol(this)||R!=="abandoned")){J.call(this);var F;var G=((F=this.rd.get().X.getVideoData())==null?void 0:F.clientPlaybackNonce)||"";F=mw(this.rd.get(),1).clientPlaybackNonce;this.Sr.get().finishSegmentByCpn(G,F,$z(R,this.wd))}y9x(this,R)} function u(){if(this.w2){var F=this.w2;f8(F.GZ())<2&&F.o2(F.UQ(),R);F=Ol(this)&&R==="abandoned";this.UJ()&&!F&&(J.call(this),this.Sr.get().finishSegmentByCpn(this.w2.UQ().layoutId,mw(this.rd.get(),1).clientPlaybackNonce,$z(R,this.wd)))}} C9(O.layoutId===this.UQ().layoutId,"StopRendering for wrong layout")&&NC(this.jT.S,R)&&(this.hA()?l.call(this):u.call(this))}; g.f.wz=function(O,R,J){Qg.prototype.wz.call(this,O,R,J);R.layoutId===this.UQ().layoutId&&this.YS.get().removeListener(this)}; g.f.Nx=function(){return mw(this.rd.get(),1).clientPlaybackNonce}; g.f.VA=function(O,R,J){K6p(Object.assign({},LX(this),{cpn:O}));if(!Ol(this)||J!==5)if(this.hA()){if(this.w2&&this.w2.UQ().layoutId!==R){var l=this.w2.UQ().layoutId;l!==O&&rK("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:l,exitingCpn:O,enteringCpn:R});O=M4(J,this.wd);Ra(this,this.w2,O)}else this.w2&&rK("onClipExited: active layout is entering again");R===this.Nx()&&I2B(this,J)}else{if(this.w2&&this.w2.UQ().layoutId===O)wpf(this,this.w2,J);else{var u;rK("Exiting cpn does not match active cpn", this.slot,(l=this.w2)==null?void 0:l.UQ(),{exitingCpn:O,transitionReason:J,activeCpn:(u=this.w2)==null?void 0:u.UQ().layoutId})}R===this.Nx()&&(this.w2!==void 0&&(rK("active adapter is not properly exited",this.slot,this.layout,{activeLayout:IH(this.w2.UQ())}),wpf(this,this.w2,J)),I2B(this,J),y9x(this,this.jT.S.L))}}; g.f.hA=function(){return n2(this.wd.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.f.startRendering=function(O){this.Hg(O)&&(O=this.jT,C9(O.L===1,"tickStartRendering: state is not initial"),O.L=2,this.kO())}; g.f.lN=function(O){Gk0(Object.assign({},LX(this),{cpn:O}));var R=this.KW.find(function(J){return J.UQ().layoutId===O}); R?(this.jT.L!==2&&(dkx(this.ij,this.slot.slotId),C9(this.jT.L===2,"Expect started"),this.callback.K1(this.slot,this.layout)),this.Ig(R),MJ(this.vD,this.slot,R.UQ())):CXp(this,O)}; g.f.N0=function(O,R){J9z(this,O,R);var J=this.PW();J?g3T(J,O,R)&&r9H(this,"skipped"):tqx(this,"onSkipRequested")}; g.f.Lt=function(O,R){var J;a:{if(J=this.PW()){if(iZ2(this),l2A(J,O,R)&&(O=uiA(this,J,O,R),O!==void 0)){J={kG:J,pfu:this.KW[O]};break a}}else tqx(this,"SkipWithAdPodSkip");J=void 0}if(O=J)J=O.kG,R=O.pfu,O=J.UQ().layoutId,this.hA()?Ra(this,J,"skipped"):J.o2(J.UQ(),"skipped"),J=R.UQ().layoutId,this.Sr.get().finishSegmentByCpn(O,J,$z("skipped",this.wd))}; g.f.I3=function(){rK("Not used in html5_ssap_fix_layout_exit")}; g.f.Jl=function(O){var R;(R=this.PW())==null||R.Jl(O)}; g.f.XZ=function(){rK("Not used in html5_ssap_fix_layout_exit")}; g.f.HV=function(O,R,J){var l;if(((l=this.PW())==null?void 0:l.UQ().layoutId)!==R.layoutId)return void rK("requestToExitSubLayout: wrong layout");r9H(this,J)};g.S(Jv,g.p);g.f=Jv.prototype;g.f.Uf=function(){return this.k9.Uf()}; g.f.UQ=function(){return this.k9.UQ()}; g.f.init=function(){var O=Gg(this.UQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");O&&(O.current=this);this.Ji()}; g.f.Ji=function(){this.k9.init()}; g.f.release=function(){var O=Gg(this.UQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");O&&(O.current=null);this.dT()}; g.f.dT=function(){this.k9.release()}; g.f.dX=function(){this.k9.dX()}; g.f.lL=function(){this.k9.lL()}; g.f.N0=function(O,R){rK("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Uf(),this.UQ(),{requestingSlot:O,requestingLayout:R})}; g.f.startRendering=function(O){O.layoutId!==this.UQ().layoutId?this.callback.fY(this.Uf(),O,new uO("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.UQ().layoutId+("and LayoutType: "+this.UQ().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.YS.get().addListener(this),VG(this.Wy(),this),axA(this.iK.get()),bGs(this.wd.get())||t$z(this.YS.get()),this.k9.startRendering(O))}; g.f.o2=function(O,R){this.Yp=!0;this.k9.o2(O,R);oJT(this.YS.get());TS_(this.F5.get(),{});O=Jp(this.YS.get(),1);O.isPaused()&&!g.d(O,2)&&this.YS.get().playVideo();this.YS.get().removeListener(this);this.Yp&&this.k9.DI()}; g.f.K1=function(O,R){this.k9.K1(O,R)}; g.f.wz=function(O,R,J){R.layoutId===this.UQ().layoutId&&(this.Yp=!1,f2(this.Wy(),this));this.k9.wz(O,R,J);R.layoutId===this.UQ().layoutId&&hw(this.iK.get())}; g.f.EV=function(O){this.k9.EV(O)}; g.f.Jl=function(O){if(O.state.isError()){var R,J;this.XZ((R=O.state.PH)==null?void 0:R.errorCode,new uO("There was a player error during this media layout.",{playerErrorCode:(J=O.state.PH)==null?void 0:J.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.k9.Jl(O)}; g.f.XZ=function(O,R,J){this.k9.dH(O,R,J)}; g.f.onFullscreenToggled=function(O){this.k9.onFullscreenToggled(O)}; g.f.jQ=function(O){this.k9.jQ(O)}; g.f.R1=function(O){this.k9.R1(O)}; g.f.onVolumeChange=function(){this.k9.onVolumeChange()}; g.f.GW=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.Jx=function(){}; g.f.kM=function(){};g.f=gB.prototype;g.f.Uf=function(){return this.slot}; g.f.UQ=function(){return this.layout}; g.f.init=function(){this.Gy.get().addListener(this);this.YS.get().addListener(this);var O=Gg(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var R=Gg(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.N){var J=mS0(this.Gy.get()).slice(-1)[0];J!==void 0&&(O=J.startSecs*1E3,R=(J.startSecs+J.d2)*1E3)}this.K9(O,R);var l;J=(l=lZ(this.rd.get()))==null?void 0:l.clientPlaybackNonce;l=this.layout.xH.adClientDataEntry;iZ(this.yh.get(),{daiStateTrigger:{filledAdsDurationMs:R-O,contentCpn:J, adClientData:l}});var u=this.Gy.get();u=VqL(u.B,O,R);u!==null&&(iZ(this.yh.get(),{daiStateTrigger:{filledAdsDurationMs:u-O,contentCpn:J,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:l}}),this.Sr.get().zT(u,R))}; g.f.release=function(){this.dT();this.Gy.get().removeListener(this);this.YS.get().removeListener(this)}; g.f.startRendering=function(){this.CN();this.callback.K1(this.slot,this.layout)}; g.f.o2=function(O,R){this.BU(R);if(this.driftRecoveryMs!==null){O=this.driftRecoveryMs.toString();var J=Math.round(f2A(this)-Gg(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),l=Math,u=l.round;var F=this.YS.get().X.YV();uZ(this,{driftRecoveryMs:O,breakDurationMs:J,driftFromHeadMs:u.call(l,F*1E3).toString()});this.driftRecoveryMs=null}this.callback.wz(this.slot,this.layout,R)}; g.f.Je=function(){return!1}; g.f.FY=function(O){var R=Gg(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),J=Gg(this.layout.clientMetadata,"metadata_type_layout_exit_ms");O*=1E3;if(R<=O&&O0&&kT(this.L(),R)}; g.f.Dj=function(O){this.D.delete(O.slotId);for(var R=[],J=g.N(this.Qd.values()),l=J.next();!l.done;l=J.next()){l=l.value;var u=l.trigger;u instanceof R7&&u.triggeringSlotId===O.slotId&&R.push(l)}R.length>0&&kT(this.L(),R)}; g.f.xW=function(O){for(var R=[],J=g.N(this.Qd.values()),l=J.next();!l.done;l=J.next()){l=l.value;var u=l.trigger;u instanceof jR&&u.slotType===O.slotType&&u.L!==O.slotId&&R.push(l)}R.length>0&&kT(this.L(),R)}; g.f.pY=function(O){this.B.add(O.slotId);for(var R=[],J=g.N(this.Qd.values()),l=J.next();!l.done;l=J.next())l=l.value,l.trigger instanceof hv&&O.slotId===l.trigger.triggeringSlotId&&R.push(l);R.length>0&&kT(this.L(),R)}; g.f.Nc=function(O){this.B.delete(O.slotId);this.N.add(O.slotId);for(var R=[],J=g.N(this.Qd.values()),l=J.next();!l.done;l=J.next())if(l=l.value,l.trigger instanceof zJ)O.slotId===l.trigger.triggeringSlotId&&R.push(l);else if(l.trigger instanceof sl){var u=l.trigger;O.slotId===u.slotId&&this.S.has(u.triggeringLayoutId)&&R.push(l)}R.length>0&&kT(this.L(),R)}; g.f.yD=function(O){for(var R=[],J=g.N(this.Qd.values()),l=J.next();!l.done;l=J.next())l=l.value,l.trigger instanceof nq&&O.slotId===l.trigger.triggeringSlotId&&R.push(l);R.length>0&&kT(this.L(),R)}; g.f.I8=function(O){for(var R=[],J=g.N(this.Qd.values()),l=J.next();!l.done;l=J.next())l=l.value,l.trigger instanceof cz&&O.slotId===l.trigger.triggeringSlotId&&R.push(l);R.length>0&&kT(this.L(),R)}; g.f.nW=function(O,R){this.j.add(R.layoutId)}; g.f.O_=function(O,R){this.j.delete(R.layoutId)}; g.f.K1=function(O,R){this.S.add(R.layoutId);for(var J=[],l=g.N(this.Qd.values()),u=l.next();!u.done;u=l.next())if(u=u.value,u.trigger instanceof bZ)R.layoutId===u.trigger.triggeringLayoutId&&J.push(u);else if(u.trigger instanceof Ul){var F=u.trigger;O.slotType===F.slotType&&R.layoutType===F.layoutType&&R.layoutId!==F.L&&J.push(u)}else u.trigger instanceof sl&&(F=u.trigger,R.layoutId===F.triggeringLayoutId&&this.N.has(F.slotId)&&J.push(u));J.length>0&&kT(this.L(),J)}; g.f.wz=function(O,R,J){this.S.delete(R.layoutId);O=[];for(var l=g.N(this.Qd.values()),u=l.next();!u.done;u=l.next())if(u=u.value,u.trigger instanceof Av&&R.layoutId===u.trigger.triggeringLayoutId&&O.push(u),u.trigger instanceof Wz){var F=u.trigger;R.layoutId===F.triggeringLayoutId&&F.L.includes(J)&&O.push(u)}O.length>0&&kT(this.L(),O)}; g.f.dS=function(){}; g.f.Ec=function(){this.N.clear()}; g.f.Ua=function(){};g.S(QI,g.p);QI.prototype.mf=function(O,R,J,l){if(this.Qd.has(R.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(R instanceof qr))throw new h("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in CloseRequestedTriggerAdapter");this.Qd.set(R.triggerId,new iJ(O,R,J,l))}; QI.prototype.KL=function(O){this.Qd.delete(O.triggerId)};g.S(YL,g.p);YL.prototype.mf=function(O,R,J,l){if(this.Qd.has(R.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(R instanceof Mr||R instanceof Lq))throw new h("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Qd.set(R.triggerId,new iJ(O,R,J,l))}; YL.prototype.KL=function(O){this.Qd.delete(O.triggerId)}; YL.prototype.Ec=function(O){for(var R=[],J=R.push,l=J.apply,u=[],F=g.N(this.Qd.values()),G=F.next();!G.done;G=F.next())G=G.value,G.trigger instanceof Mr&&G.trigger.ZL===O&&u.push(G);l.call(J,R,g.X(u));J=R.push;l=J.apply;u=[];F=g.N(this.Qd.values());for(G=F.next();!G.done;G=F.next())G=G.value,G.trigger instanceof Lq&&G.trigger.L!==O&&u.push(G);l.call(J,R,g.X(u));R.length&&kT(this.L(),R)}; YL.prototype.Ua=function(O){for(var R=[],J=R.push,l=J.apply,u=[],F=g.N(this.Qd.values()),G=F.next();!G.done;G=F.next()){G=G.value;var y=G.trigger;y instanceof Lq&&y.L===O&&u.push(G)}l.call(J,R,g.X(u));R.length&&kT(this.L(),R)};g.S(dM,g.p);g.f=dM.prototype;g.f.mf=function(O,R,J,l){if(this.Qd.has(R.triggerId))throw new h("Tried to register duplicate trigger for slot.");var u="adtriggercuerange:"+R.triggerId;if(R instanceof Hz)p_h(this,O,R,J,l,u,R.L.start,R.L.end,R.ZL,R.visible);else if(R instanceof k$)p_h(this,O,R,J,l,u,0x7ffffffffffff,0x8000000000000,R.ZL,R.visible);else throw new h("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in CueRangeTriggerAdapter");}; g.f.KL=function(O){var R=this.Qd.get(O.triggerId);R&&this.I2.get().removeCueRange(R.cueRangeId);this.Qd.delete(O.triggerId)}; g.f.onCueRangeEnter=function(O){var R=Bsx(this,O);if(R&&(R=this.Qd.get(R)))if(g.d(Jp(this.YS.get()),32))this.L.add(R.cueRangeId);else{var J=R==null?void 0:R.qj.trigger;if(J instanceof Hz||J instanceof k$){if(Xs(this.context.wd.get())){var l=R.qj.slot,u=R.qj.layout,F={};this.context.tj.M1("cre",(F.ca=R.qj.category,F.tt=J.triggerType,F.st=l.slotType,F.lt=u==null?void 0:u.layoutType,F.cid=O,F))}kT(this.S(),[R.qj])}}}; g.f.onCueRangeExit=function(O){(O=Bsx(this,O))&&(O=this.Qd.get(O))&&this.L.delete(O.cueRangeId)}; g.f.Jl=function(O){if(oH(O,16)<0){O=g.N(this.L);for(var R=O.next();!R.done;R=O.next())this.onCueRangeEnter(R.value,!0);this.L.clear()}}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.K1=function(){}; g.f.wz=function(){}; g.f.dS=function(){}; g.f.EV=function(){}; g.f.onFullscreenToggled=function(){}; g.f.jQ=function(){}; g.f.GW=function(){}; g.f.R1=function(){}; g.f.onVolumeChange=function(){}; g.f.Jx=function(){}; g.f.kM=function(){};g.S(hM,g.p);g.f=hM.prototype; g.f.mf=function(O,R,J,l){if(this.S.has(R.triggerId)||this.B.has(R.triggerId))throw new h("Tried to re-register the trigger.");O=new iJ(O,R,J,l);if(O.trigger instanceof Bz)this.S.set(O.trigger.triggerId,O);else if(O.trigger instanceof eR)this.B.set(O.trigger.triggerId,O);else throw new h("Incorrect TriggerType: Tried to register trigger of type "+O.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.S.has(O.trigger.triggerId)&&O.slot.slotId===this.L&&kT(this.N(),[O])}; g.f.KL=function(O){this.S.delete(O.triggerId);this.B.delete(O.triggerId)}; g.f.sB=function(O){O=O.slotId;if(this.L!==O){var R=[];this.L!=null&&R.push.apply(R,g.X(HyT(this.B,this.L)));O!=null&&R.push.apply(R,g.X(HyT(this.S,O)));this.L=O;R.length&&kT(this.N(),R)}}; g.f.VA=function(){}; g.f.lN=function(){};g.S(z8,g.p);g.f=z8.prototype;g.f.mf=function(O,R,J,l){if(this.Qd.has(R.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(R instanceof Q1))throw new h("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Qd.set(R.triggerId,new iJ(O,R,J,l))}; g.f.KL=function(O){this.Qd.delete(O.triggerId)}; g.f.K1=function(){}; g.f.wz=function(){}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){};g.S(n4,g.p);g.f=n4.prototype;g.f.dS=function(O,R){for(var J=[],l=g.N(this.Qd.values()),u=l.next();!u.done;u=l.next()){u=u.value;var F=u.trigger;F.opportunityType===O&&(F.associatedSlotId&&F.associatedSlotId!==R||J.push(u))}J.length&&kT(this.L(),J)}; g.f.mf=function(O,R,J,l){if(this.Qd.has(R.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(R instanceof YiA))throw new h("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in OpportunityEventTriggerAdapter");this.Qd.set(R.triggerId,new iJ(O,R,J,l))}; g.f.KL=function(O){this.Qd.delete(O.triggerId)}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.K1=function(){}; g.f.wz=function(){};g.S(c7,g.p);g.f=c7.prototype;g.f.mf=function(O,R,J,l){O=new iJ(O,R,J,l);if(R instanceof Pz||R instanceof x$||R instanceof pq||R instanceof Y$||R instanceof Y8W){if(this.Qd.has(R.triggerId))throw new h("Tried to register duplicate trigger for slot.");this.Qd.set(R.triggerId,O)}else throw new h("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in PrefetchTriggerAdapter");}; g.f.KL=function(O){this.Qd.delete(O.triggerId)}; g.f.E_=function(O){var R=O.slotFulfillmentTriggers.find(function(J){return J instanceof Pz}); R&&OP(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",R.breakDurationMs,new Set([O.slotId]),!0)}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.K1=function(){}; g.f.wz=function(){}; g.f.dS=function(){}; g.f.Je=function(O){var R=this;if(!this.L)return rK("Unexpected cue break before fetch instructions are available"),!1;this.S&&this.S.stop();this.B&&g.nP(this.B);var J=jkp(this,O);if(!J)return!1;(new g.zR(function(){var l=J.trigger,u=J.slot;OP(R,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",l.breakDurationMs,new Set,!0);OP(R,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",l.breakDurationMs,new Set,!1);R.N.add(u.slotId)},10)).start(); return!0}; g.f.FY=function(){}; g.f.Ec=function(O){this.L&&this.L.contentCpn!==O?(rK("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:O,fetchInstructionsCpn:this.L.contentCpn}),RY(this)):Ukh(this)}; g.f.Ua=function(O){this.L&&this.L.contentCpn!==O&&rK("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:O,fetchInstructionsCpn:this.L.contentCpn},!0);RY(this)}; g.f.b3=function(O){var R=this;if(this.L)rK("Unexpected multiple fetch instructions for the current content");else{this.L=O;O=L0s(O);this.S=new g.zR(function(){Ukh(R)},O?O:6E5); this.S.start();this.B=new g.zR(function(){R.L&&(R.S&&(R.S.stop(),R.S.start()),xkx(R,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Qkz(this.L)); O=v7(this.YS.get());for(var J=g.N(mS0(this.Gy.get())),l=J.next();!l.done;l=J.next())l=l.value,GJ(this.yh.get(),"nocache","ct."+Date.now()+";cmt."+O+";d."+l.d2.toFixed(3)+";tw."+(l.startSecs-O)+";cid."+l.identifier+";")}}; g.f.eN=function(){g.p.prototype.eN.call(this);RY(this)};g.S(JU,g.p);g.f=JU.prototype;g.f.mf=function(O,R,J,l){if(this.Qd.has(R.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(R instanceof gO))throw new h("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Qd.set(R.triggerId,new iJ(O,R,J,l));O=this.L.has(R.triggeringLayoutId)?g.e(this.L.get(R.triggeringLayoutId)):new Set;O.add(R);this.L.set(R.triggeringLayoutId,O)}; g.f.KL=function(O){this.Qd.delete(O.triggerId);if(!(O instanceof gO))throw new h("Incorrect TriggerType: Tried to unregister trigger of type "+O.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var R=this.S.get(O.triggerId);R&&(R.dispose(),this.S.delete(O.triggerId));if(R=this.L.get(O.triggeringLayoutId))R.delete(O),R.size===0&&this.L.delete(O.triggeringLayoutId)}; g.f.E_=function(){}; g.f.Dj=function(){}; g.f.xW=function(){}; g.f.pY=function(){}; g.f.Nc=function(){}; g.f.yD=function(){}; g.f.I8=function(){}; g.f.nW=function(){}; g.f.O_=function(){}; g.f.dS=function(){}; g.f.K1=function(O,R){var J=this;if(this.L.has(R.layoutId)){O=g.e(this.L.get(R.layoutId));O=g.N(O);var l=O.next();for(R={};!l.done;R={UP:void 0},l=O.next())R.UP=l.value,l=new g.zR(function(u){return function(){var F=g.e(J.Qd.get(u.UP.triggerId));kT(J.B(),[F])}}(R),R.UP.durationMs),l.start(),this.S.set(R.UP.triggerId,l)}}; g.f.wz=function(){};g.S(gG,g.p);gG.prototype.mf=function(O,R,J,l){if(this.Qd.has(R.triggerId))throw new h("Tried to register duplicate trigger for slot.");if(!(R instanceof TJ))throw new h("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in VideoTransitionTriggerAdapter.");this.Qd.set(R.triggerId,new iJ(O,R,J,l))}; gG.prototype.KL=function(O){this.Qd.delete(O.triggerId)};Fy.prototype.hZ=function(O){return O.kind==="AD_PLACEMENT_KIND_START"};g.S(y5,g.p);g.f=y5.prototype;g.f.logEvent=function(O){this.Ya(O)}; g.f.nL=function(O,R,J){this.Ya(O,void 0,void 0,void 0,R,void 0,void 0,void 0,R.adSlotLoggingData,void 0,void 0,J)}; g.f.MK=function(O,R,J,l){this.Ya(O,void 0,void 0,void 0,R,J?J:void 0,void 0,void 0,R.adSlotLoggingData,J?J.adLayoutLoggingData:void 0,void 0,l)}; g.f.aQ=function(O,R,J,l){n2(this.wd.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+O,"trigger:",J,"slot:",R,"layout:",l);C2(this.L.get())&&this.Ya(O,void 0,void 0,void 0,R,l?l:void 0,void 0,J,R.adSlotLoggingData,l?l.adLayoutLoggingData:void 0)}; g.f.hV=function(O,R,J,l,u){this.Ya(O,R,J,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,u)}; g.f.gY=function(O,R,J,l){this.Ya("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,J,l,void 0,void 0,J.adSlotLoggingData,l?l.adLayoutLoggingData:void 0,{errorType:O,errorMessage:R})}; g.f.Ya=function(O,R,J,l,u,F,G,y,w,I,C,r){var t=this;r=r===void 0?0:r;n2(this.wd.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+O,"slot:",u,"layout:",F,"ping:",G,"Opportunity:",{opportunityType:R,associatedSlotId:J,cY1:l,fVU:y,adSlotLoggingData:w,adLayoutLoggingData:I});try{var Z=function(){if(!t.wd.get().X.T().Z("html5_disable_client_tmp_logs")&&O!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){O||rK("Empty PACF event type",u,F);var V=C2(t.L.get()),m={eventType:O,eventOrder:++t.eventCount},E={}; u&&(E.slotData=Iq(V,u));F&&(E.layoutData=DPf(V,F));G&&(E.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:G.L.serializedAdPingMetadata,pingIndex:G.index});y&&(E.triggerData=wU(y.trigger,y.category));R&&(E.opportunityData=agW(V,R,J,l));V={organicPlaybackContext:{contentCpn:mw(t.rd.get(),1).clientPlaybackNonce}};V.organicPlaybackContext.isLivePlayback=mw(t.rd.get(),1).vy;var a;V.organicPlaybackContext.isMdxPlayback=(a=mw(t.rd.get(),1))==null?void 0:a.isMdxPlayback; var v;if((v=mw(t.rd.get(),1))==null?0:v.daiEnabled)V.organicPlaybackContext.isDaiContent=!0;var b;if(a=(b=mw(t.rd.get(),2))==null?void 0:b.clientPlaybackNonce)V.adVideoPlaybackContext={adVideoCpn:a};V&&(E.externalContext=V);m.adClientData=E;w&&(m.serializedSlotAdServingData=w.serializedSlotAdServingDataEntry);I&&(m.serializedAdServingData=I.serializedAdServingDataEntry);C&&(m.errorInfo=C);g.wj("adsClientStateChange",{adsClientEvent:m})}}; r&&r>0?g.cf(g.RJ(),function(){return Z()},r):Z()}catch(V){n2(this.wd.get(),"html5_log_pacf_logging_errors")&&g.cf(g.RJ(),function(){rK(V instanceof Error?V:String(V),u,F,{pacf_message:"exception during pacf logging"})})}};var WII=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.S(wG,y5);g.f=wG.prototype; g.f.nL=function(O,R,J){y5.prototype.nL.call(this,O,R,J);Xs(this.wd.get())&&(J={},this.context.tj.M1("pacf",(J.et=O,J.st=R.slotType,J.si=R.slotId,J)))}; g.f.MK=function(O,R,J,l){var u=WII.has(O);y5.prototype.MK.call(this,O,R,J,l);Xs(this.wd.get(),u)&&(l={},this.context.tj.M1("pacf",(l.et=O,l.st=R.slotType,l.si=R.slotId,l.lt=J==null?void 0:J.layoutType,l.li=J==null?void 0:J.layoutId,l.p_ac=J==null?void 0:J.layoutId,l)))}; g.f.hV=function(O,R,J,l,u){y5.prototype.hV.call(this,O,R,J,l,u);Xs(this.wd.get())&&(J={},this.context.tj.M1("pacf",(J.et=O,J.ot=R,J.ss=l==null?void 0:l.length,J)))}; g.f.aQ=function(O,R,J,l){y5.prototype.aQ.call(this,O,R,J,l);if(Xs(this.wd.get())){var u={};this.context.tj.M1("pacf",(u.et=O,u.tt=J.trigger.triggerType,u.tc=J.category,u.st=R.slotType,u.si=R.slotId,u.lt=l==null?void 0:l.layoutType,u.li=l==null?void 0:l.layoutId,u.p_ac=l==null?void 0:l.layoutId,u))}}; g.f.gY=function(O,R,J,l){y5.prototype.gY.call(this,O,R,J,l);if(Xs(this.wd.get(),!0)){var u={};this.context.tj.M1("perror",(u.ert=O,u.erm=R,u.st=J.slotType,u.si=J.slotId,u.lt=l==null?void 0:l.layoutType,u.li=l==null?void 0:l.layoutId,u.p_ac=l==null?void 0:l.layoutId,u))}}; g.f.Ya=function(O,R,J,l,u,F,G,y,w,I,C){var r=this.wd.get();g.$T(r.X.T())?(r=this.wd.get(),r=g.tB(r.X.T().experiments,"H5_async_logging_delay_ms")):r=void 0;y5.prototype.Ya.call(this,O,R,J,l,u,F,G,y,w,I,C,r)};IY.prototype.clear=function(){this.L.clear()};g.f=rG.prototype;g.f.resolve=function(O){CK(this,O)}; g.f.reject=function(O){this.J3(O)}; g.f.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.N$()?{state:"fail",error:this.error}:{state:"wait"}}; g.f.N$=function(){return this.currentState==="fail"}; g.f.wait=function(){var O=this;return function J(){return WB(J,function(l){if(l.S==1)return g.E_(l,2),g.k(l,{V_:O},4);if(l.S!=2)return l.return(l.L);g.M0(l);return g.kW(l,0)})}()}; g.f.J3=function(O){this.currentState="fail";this.error=O;Nh(this)}; var CaT=NA(function(O){return tU(O)?O instanceof rG:!1});Object.freeze({e3d:function(O){var R=yBA(O);return mq(Kes(R,function(J){return R[J].N$()}),function(J){return Number.isNaN(J)?R.map(function(l){return l.state().result}):R[J]})}, OHQ:function(O){var R=yBA(O);return mq(Kes(R),function(){return R.map(function(J){return J.state()})})}});var Xy=window.puh||"es-419";qh.prototype.Mo=function(O){this.client=O}; qh.prototype.L=function(){this.clear();this.csn=g.X5()}; qh.prototype.clear=function(){this.B.clear();this.S.clear();this.N.clear();this.csn=null};sP.prototype.Mo=function(O){g.nA(kk().Mo).bind(kk())(O)}; sP.prototype.clear=function(){g.nA(kk().clear).bind(kk())()};g.f=b5.prototype;g.f.Mo=function(O){this.client=O}; g.f.xL=function(O,R){var J=this;R=R===void 0?{}:R;g.nA(function(){var l,u,F,G=((l=g.x(O==null?void 0:O.commandMetadata,g.NE))==null?void 0:l.rootVe)||((u=g.x(O==null?void 0:O.commandMetadata,Rek))==null?void 0:(F=u.screenVisualElement)==null?void 0:F.uiType);if(G){l=g.x(O==null?void 0:O.commandMetadata,So4);if(l==null?0:l.parentTrackingParams){var y=g.Dg(l.parentTrackingParams);if(l.parentCsn)var w=l.parentCsn}else R.clickedVisualElement?y=R.clickedVisualElement:O.clickTrackingParams&&(y=g.Dg(O.clickTrackingParams)); a:{l=g.x(O,g.cx);u=g.x(O,CLs);if(l){if(u=IEL(l,"VIDEO")){l={token:u,videoId:l.videoId};break a}}else if(u&&(l=IEL(u,"PLAYLIST"))){l={token:l,playlistId:u.playlistId};break a}l=void 0}R=Object.assign({},{cttAuthInfo:l,parentCsn:w},R);if(g.S8("expectation_logging")){var I;R.loggingExpectations=((I=g.x(O==null?void 0:O.commandMetadata,Rek))==null?void 0:I.loggingExpectations)||void 0}AU(J,G,y,R)}else g.Aa(new g.Ys("Error: Trying to create a new screen without a rootVeType",O))})()}; g.f.clickCommand=function(O,R,J){O=O.clickTrackingParams;J=J===void 0?0:J;O?(J=g.X5(J===void 0?0:J))?(Rh(this.client,J,g.Dg(O),R),R=!0):R=!1:R=!1;return R}; g.f.stateChanged=function(O,R,J){this.visualElementStateChanged(g.Dg(O),R,J===void 0?0:J)}; g.f.visualElementStateChanged=function(O,R,J){J=J===void 0?0:J;J===0&&this.S.has(J)?this.V.push([O,R]):Vdx(this,O,R,J)};BU.prototype.fetch=function(O,R,J){var l=this,u=NUT(O,R,J);return new Promise(function(F,G){function y(){if(J==null?0:J.WA)try{var I=l.handleResponse(O,u.status,u.response,J);F(I)}catch(C){G(C)}else F(l.handleResponse(O,u.status,u.response,J))} u.onerror=y;u.onload=y;var w;u.send((w=R.body)!=null?w:null)})}; BU.prototype.handleResponse=function(O,R,J,l){J=J.replace(")]}'","");try{var u=JSON.parse(J)}catch(F){g.Aa(new g.Ys("JSON parsing failed after XHR fetch",O,R,J));if((l==null?0:l.WA)&&J)throw new g.lH(1,"JSON parsing failed after XHR fetch");u={}}R!==200&&(g.Aa(new g.Ys("XHR API fetch failed",O,R,J)),u=Object.assign({},u,{errorMetadata:{status:R}}));return u};HU.getInstance=function(){var O=g.hs("ytglobal.storage_");O||(O=new HU,g.dh("ytglobal.storage_",O));return O}; HU.prototype.estimate=function(){var O,R,J;return g.A(function(l){O=navigator;return((R=O.storage)==null?0:R.estimate)?l.return(O.storage.estimate()):((J=O.webkitTemporaryStorage)==null?0:J.queryUsageAndQuota)?l.return(mJz()):l.return()})}; g.dh("ytglobal.storageClass_",HU);GW.prototype.DH=function(O){this.handleError(O)}; GW.prototype.logEvent=function(O,R){switch(O){case "IDB_DATA_CORRUPTED":g.S8("idb_data_corrupted_killswitch")||this.L("idbDataCorrupted",R);break;case "IDB_UNEXPECTEDLY_CLOSED":this.L("idbUnexpectedlyClosed",R);break;case "IS_SUPPORTED_COMPLETED":g.S8("idb_is_supported_completed_killswitch")||this.L("idbIsSupportedCompleted",R);break;case "QUOTA_EXCEEDED":DJ_(this,R);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=.1&&this.L("idbTransactionEnded",R);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":O= Object.assign({},R,{hasWindowUnloaded:this.S}),this.L("idbTransactionAborted",O)}};var LB={},iwH=g.RA("yt-player-local-media",{jO:(LB.index={ql:2},LB.media={ql:2},LB.captions={ql:5},LB),shared:!1,upgrade:function(O,R){R(2)&&(g.M$(O,"index"),g.M$(O,"media"));R(5)&&g.M$(O,"captions");R(6)&&(q$(O,"metadata"),q$(O,"playerdata"))}, version:5});var Ah6={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},Ym;a:{var d$=g.aW();d$=d$.toLowerCase();if(g.ZJ(d$,"android")){var eit=d$.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(eit){var Pub=parseFloat(eit[1]);if(Pub<100){Ym=Pub;break a}}var pQ6=d$.match("("+Object.keys(Ah6).join("|")+")");Ym=pQ6?Ah6[pQ6[0]]:0}else Ym=void 0}var sS=Ym,kX=sS>=0;var cJB=window;var aE_=th(function(){var O,R;return(R=(O=window).matchMedia)==null?void 0:R.call(O,"(prefers-reduced-motion: reduce)").matches});var UP;g.xk=new qe;UP=0;var Jj=kgz()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.dj?!0:!1;var LK={JH:function(O,R){var J=O[0];O[0]=O[R%O[K[22]]];O[R%O[K[22]]]=J}, yV:function(O,R){O[K[16]](0,R)}, JD:function(O){O[K[3]]()}};var R2_={vqJ:"adunit",W9q:"detailpage",wQd:"editpage",bLX:"embedded",lOU:"leanback",stz:"previewpage",M51:"profilepage",J9:"unplugged",C8d:"playlistoverview",VUX:"sponsorshipsoffer",dlq:"shortspage",tWQ:"handlesclaiming",FsQ:"immersivelivepage",ttQ:"creatormusic",exz:"immersivelivepreviewpage",pcd:"admintoolyurt",Zsd:"shortsaudiopivot",zLq:"consumption"};var b2s=2592E3;var hP,Bvt,ml;hP={};g.O7=(hP.STOP_EVENT_PROPAGATION="html5-stop-propagation",hP.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",hP.IV_DRAWER_OPEN="ytp-iv-drawer-open",hP.MAIN_VIDEO="html5-main-video",hP.VIDEO_CONTAINER="html5-video-container",hP.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",hP.HOUSE_BRAND="house-brand",hP);Bvt={};ml=(Bvt.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Bvt.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Bvt);var UJ0={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Yxh={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},diT={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"},KP_={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var Ers={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.wV.prototype.getLanguageInfo=function(){return this.Ef}; g.wV.prototype.getXtags=function(){if(!this.xtags){var O=this.id.split(";");O.length>1&&(this.xtags=O[1])}return this.xtags}; g.wV.prototype.toString=function(){return this.Ef.name}; g.wV.prototype.getLanguageInfo=g.wV.prototype.getLanguageInfo;Ix.prototype.equals=function(O){return this.S===O.S&&this.L===O.L&&this.B===O.B&&this.reason===O.reason&&(!rV||this.Wq===O.Wq)}; Ix.prototype.isLocked=function(){return this.B&&!!this.S&&this.S===this.L}; Ix.prototype.compose=function(O){if(O.B&&tC(O))return UE;if(O.B||tC(this))return O;if(this.B||tC(O))return this;var R=this.S&&O.S?Math.max(this.S,O.S):this.S||O.S,J=this.L&&O.L?Math.min(this.L,O.L):this.L||O.L;R=Math.min(R,J);var l=0;rV&&(l=this.Wq!==0&&O.Wq!==0?Math.min(this.Wq,O.Wq):this.Wq===0?O.Wq:this.Wq);return rV&&R===this.S&&J===this.L&&l===this.Wq||!rV&&R===this.S&&J===this.L?this:rV?new Ix(R,J,!1,J===this.L&&l===this.Wq?this.reason:O.reason,l):new Ix(R,J,!1,J===this.L?this.reason:O.reason)}; Ix.prototype.N=function(O){return!O.video||rV&&this.Wq!==0&&this.Wq=0}; g.f.C_=function(){var O=this.segments[this.segments.length-1];return O?O.endTime:NaN}; g.f.q7=function(){return this.segments[0].startTime}; g.f.vl=function(){return this.segments.length}; g.f.XB=function(){return 0}; g.f.F8=function(O){return(O=this.Hl(O))?O.XQ:-1}; g.f.FZ=function(O){return(O=this.d$(O))?O.sourceURL:""}; g.f.getStartTime=function(O){return(O=this.d$(O))?O.startTime:0}; g.f.Sj=function(O){return this.getStartTime(O)+this.getDuration(O)}; g.f.b1=Rs(1);g.f.isLoaded=function(){return this.segments.length>0}; g.f.d$=function(O){if(this.L&&this.L.XQ===O)return this.L;O=g.$M(this.segments,new P0(O,0,0,0,""),function(R,J){return R.XQ-J.XQ}); return this.L=O>=0?this.segments[O]:null}; g.f.Hl=function(O){if(this.L&&this.L.startTime<=O&&O=0?this.segments[O]:this.segments[Math.max(0,-O-2)]}; g.f.append=function(O){if(O.length)if(O=g.m4(O),this.segments.length){var R=this.segments.length?g.Ib(this.segments).endTime:0,J=O[0].XQ-this.lK();J>1&&afx(this.segments);for(J=J>0?0:-J+1;JO.XQ&&this.index.U$()<=O.XQ+1}; g.f.update=function(O,R,J){this.index.append(O);DCp(this.index,J);O=this.index;O.S=R;O.B="update"}; g.f.Yo=function(){return this.gQ()?!0:Ws.prototype.Yo.call(this)}; g.f.BT=function(O,R){var J=this.index.FZ(O),l=this.index.getStartTime(O),u=this.index.getDuration(O),F;R?u=F=0:F=this.info.Wq>0?this.info.Wq*u:1E3;return new YV([new Bs(3,this,void 0,"liveCreateRequestInfoForSegment",O,l,u,0,F,!R)],J)}; g.f.uX=function(){return this.gQ()?0:this.initRange.length}; g.f.Ln=function(){return!1};R3.prototype.update=function(O){var R=void 0;this.S&&(R=this.S);var J=new R3,l=Array.from(O.getElementsByTagName("S"));if(l.length){var u=+cs(O,"timescale")||1,F=(+l[0].getAttribute("t")||0)/u,G=+cs(O,"startNumber")||0;J.N=F;var y=R?R.startSecs+R.d2:0,w=Date.parse(fGH(cs(O,"yt:segmentIngestTime")))/1E3;J.D=O.parentElement.tagName==="SegmentTemplate";J.D&&(J.J=cs(O,"media"));O=R?G-R.XQ:1;J.j=O>0?0:-O+1;O=g.N(l);for(l=O.next();!l.done;l=O.next()){l=l.value;for(var I=+l.getAttribute("d")/u,C=(+l.getAttribute("yt:sid")|| 0)/u,r=+l.getAttribute("r")||0,t=0;t<=r;t++)if(R&&G<=R.XQ)G++;else{var Z=new Zmp(G,y,I,w+C,F);J.L.push(Z);var V=l;var m=u,E=Z.startSecs;Z=V.getAttribute("yt:cuepointTimeOffset");var a=V.getAttribute("yt:cuepointDuration");if(Z&&a){Z=Number(Z);E=-Z/m+E;m=Number(a)/m;a=V.getAttribute("yt:cuepointContext")||null;var v=V.getAttribute("yt:cuepointIdentifier")||"";V=V.getAttribute("yt:cuepointEvent")||"";V=new dV(E,m,a,v,xAV[V]||"unknown",Z)}else V=null;V&&J.B.push(V);G++;y+=I;F+=I;w+=I+C}}J.L.length&& (J.S=g.Ib(J.L))}this.j=J.j;this.S=J.S||this.S;g.Do(this.L,J.L);g.Do(this.B,J.B);this.D=J.D;this.J=J.J;this.N===-1&&(this.N=J.getStreamTimeOffset())}; R3.prototype.getStreamTimeOffset=function(){return this.N===-1?0:this.N};g.S(gu,g.p3);g.f=gu.prototype;g.f.Jv=function(){return this.vH}; g.f.Cs=function(O,R){O=is(this,O);return O>=0&&(R||!this.segments[O].pending)}; g.f.U$=function(){return this.Qa?this.segments.length?this.Hl(this.q7()).XQ:-1:g.p3.prototype.U$.call(this)}; g.f.q7=function(){if(this.q5)return 0;if(!this.Qa)return g.p3.prototype.q7.call(this);if(!this.segments.length)return 0;var O=Math.max(g.Ib(this.segments).endTime-this.PA,0);return this.g2>0&&g.e(this.Hl(O)).XQ0)return this.It/1E3;if(!this.segments.length)return g.p3.prototype.C_.call(this);var O=this.lK();if(!this.Qa||O<=this.segments[this.segments.length-1].XQ)O=this.segments[this.segments.length-1];else{var R=this.segments[this.segments.length-1];O=new P0(O,Math.max(0,R.startTime-(R.XQ-O)*this.vH),this.vH,0,"sq/"+O,void 0,void 0,!0)}return this.q5?Math.min(this.PA,O.endTime):O.endTime}; g.f.vl=function(){return this.Qa?this.segments.length?this.lK()-this.U$()+1:0:g.p3.prototype.vl.call(this)}; g.f.lK=function(){var O=Math.min(this.hj,Math.max(g.p3.prototype.lK.call(this),this.i7)),R=this.PA*1E3;R=this.It>0&&this.It0&&this.i7>0&&!R&&(R=this.Hl(this.PA))&&(O=Math.min(R.XQ-1,O));return O}; g.f.Rn=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.f.pF=function(O){var R=is(this,O.XQ);if(R>=0)this.segments[R]=O;else if(this.segments.splice(-(R+1),0,O),this.Qq&&O.XQ%(300/this.vH)===0){var J=this.segments[0].XQ,l=Math.floor(this.Qq/this.vH);O=O.XQ-l;R=-(R+1)-l;R>0&&O>J&&(this.segments=this.segments.slice(R))}}; g.f.PK=function(){return this.i7}; g.f.Le=function(O){return Jf?!this.S&&O>=0&&this.lK()<=O:g.p3.prototype.Le.call(this,O)}; g.f.Hl=function(O){if(!this.Qa)return g.p3.prototype.Hl.call(this,O);if(!this.segments.length)return null;var R=this.segments[this.segments.length-1];if(O=R.endTime)R=R.XQ+Math.floor((O-R.endTime)/this.vH+1);else{R=kM(this.segments,function(l){return O=l.endTime?1:0}); if(R>=0)return this.segments[R];var J=-(R+1);R=this.segments[J-1];J=this.segments[J];R=Math.floor((O-R.endTime)/((J.startTime-R.endTime)/(J.XQ-R.XQ-1))+1)+R.XQ}return this.d$(R)}; g.f.d$=function(O){if(!this.Qa)return g.p3.prototype.d$.call(this,O);if(!this.segments.length)return null;var R=is(this,O);if(R>=0)return this.segments[R];var J=-(R+1);R=this.vH;if(J===0)var l=Math.max(0,this.segments[0].startTime-(this.segments[0].XQ-O)*R);else J===this.segments.length?(l=this.segments[this.segments.length-1],l=l.endTime+(O-l.XQ-1)*R):(l=this.segments[J-1],R=this.segments[J],R=(R.startTime-l.endTime)/(R.XQ-l.XQ-1),l=l.endTime+(O-l.XQ-1)*R);return new P0(O,l,R,0,"sq/"+O,void 0,void 0, !0)}; var Jf=!1;g.S(ls,nL);g.f=ls.prototype;g.f.Wl=function(){return!0}; g.f.Yo=function(){return!0}; g.f.us=function(O){return this.In()&&O.B&&!O.D||!O.L.index.Le(O.XQ)}; g.f.gt=function(){}; g.f.oX=function(O,R){return typeof O!=="number"||isFinite(O)?nL.prototype.oX.call(this,O,R===void 0?!1:R):new YV([new Bs(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.KE,void 0,this.KE*this.info.Wq)],"")}; g.f.BT=function(O,R){var J=J===void 0?!1:J;if(this.index.Cs(O))return nL.prototype.BT.call(this,O,R);var l=this.index.getStartTime(O),u=Math.round(this.KE*this.info.Wq),F=this.KE;R&&(F=u=0);return new YV([new Bs(J?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",O,l,F,void 0,u,!R)],O>=0?"sq/"+O:"")};g.S(us,Ws);g.f=us.prototype;g.f.rY=function(){return!1}; g.f.In=function(){return!1}; g.f.Wl=function(){return!1}; g.f.gt=function(){return new YV([new Bs(1,this,void 0,"otfInit")],this.D)}; g.f.YD=function(){return null}; g.f.ZK=function(O){this.us(O);return XLH(this,j3(O),!1)}; g.f.oX=function(O,R){R=R===void 0?!1:R;O=this.index.F8(O);R&&(O=Math.min(this.index.lK(),O+1));return XLH(this,O,!0)}; g.f.ED=function(O){O.info.type===1&&(this.L||(this.L=az(O.L)),O.S&&O.S.uri==="http://youtube.com/streaming/otf/durations/112015"&&T3p(this,O.S))}; g.f.us=function(O){return O.B===0?!0:this.index.lK()>O.XQ&&this.index.U$()<=O.XQ+1}; g.f.uX=function(){return 0}; g.f.Ln=function(){return!1};FS.prototype.SZ=function(){return this.L.SZ()};g.f=g.Cp.prototype;g.f.Cs=function(O){return O<=this.lK()}; g.f.XB=function(O){return this.offsets[O]}; g.f.getStartTime=function(O){return this.startTicks[O]/this.L}; g.f.Sj=function(O){return this.getStartTime(O)+this.getDuration(O)}; g.f.b1=Rs(0);g.f.yI=function(){return NaN}; g.f.getDuration=function(O){O=this.SK(O);return O>=0?O/this.L:-1}; g.f.SK=function(O){return O+1=0}; g.f.C_=function(){return this.S?this.startTicks[this.count]/this.L:NaN}; g.f.q7=function(){return 0}; g.f.vl=function(){return this.count}; g.f.FZ=function(){return""}; g.f.F8=function(O){O=g.$M(this.startTicks.subarray(0,this.count),O*this.L);return O>=0?O:Math.max(0,-O-2)}; g.f.isLoaded=function(){return this.lK()>=0}; g.f.ix=function(O,R){if(O>=this.lK())return 0;var J=0;for(R=this.getStartTime(O)+R;Othis.getStartTime(O);O++)J=Math.max(J,etW(this,O)/this.getDuration(O));return J}; g.f.resize=function(O){O+=2;var R=this.offsets;this.offsets=new Float64Array(O+1);var J=this.startTicks;this.startTicks=new Float64Array(O+1);for(O=0;O0&&O&&(J=J.range.end+1,O=Math.min(O,this.info.contentLength-J),O>0&&l.push(new Bs(4,this,Ps(J,O),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,R)));return new YV(l)}; g.f.ED=function(O){if(O.info.type===1){if(this.L)return;this.L=az(O.L)}else if(O.info.type===2){if(this.D||this.index.lK()>=0)return;if(g.Rg(this.info)){var R=this.index,J=O.SZ();O=O.info.range.start;var l=g.ON(J,0,1936286840);J=A42(l);R.L=J.timescale;var u=J.Sx;R.offsets[0]=J.Uz+O+l.size;R.startTicks[0]=u;R.S=!0;O=J.Z9.length;for(l=0;l0&&O===F[0].FX)for(O=0;O=R+J)break}u.length||(O=new g.Ys("b189619593",""+O,""+R,""+J),g.WM(O));return new YV(u)}; g.f.ZE=function(O){for(var R=this.F6(O.info),J=O.info.range.start+O.info.S,l=[],u=0;u=this.index.XB(J+1);)J++;return this.rC(J,R,O.B).CJ}; g.f.us=function(O){O.rR();return this.Yo()?!0:O.range.end+1this.info.contentLength&&(R=new At(R.start,this.info.contentLength-1)),new YV([new Bs(4,O.L,R,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,O.clipId)]);O.type===4&&(O=this.F6(O),O=O[O.length-1]);var J=0,l=O.range.start+O.S+O.B;O.type===3&&(O.rR(),J=O.XQ,l===O.range.end+1&&(J+=1));return this.rC(J,l,R)}; g.f.ZK=function(){return null}; g.f.oX=function(O,R){R=R===void 0?!1:R;O=this.index.F8(O);R&&(O=Math.min(this.index.lK(),O+1));return this.rC(O,this.index.XB(O),0,void 0)}; g.f.rY=function(){return!0}; g.f.In=function(){return!0}; g.f.Wl=function(){return!1}; g.f.uX=function(){return this.indexRange.length+this.initRange.length}; g.f.Ln=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var nB={},R00=(nB.COLOR_PRIMARIES_BT709="bt709",nB.COLOR_PRIMARIES_BT2020="bt2020",nB.COLOR_PRIMARIES_UNKNOWN=null,nB.COLOR_PRIMARIES_UNSPECIFIED=null,nB),cy={},pLA=(cy.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",cy.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",cy.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",cy.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",cy.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,cy.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,cy);g.o3.prototype.getName=function(){return this.name}; g.o3.prototype.getId=function(){return this.id}; g.o3.prototype.getIsDefault=function(){return this.isDefault}; g.o3.prototype.toString=function(){return this.name}; g.o3.prototype.getName=g.o3.prototype.getName;g.o3.prototype.getId=g.o3.prototype.getId;g.o3.prototype.getIsDefault=g.o3.prototype.getIsDefault;var U8B=/action_display_post/;var jgp,fp,SQ;g.S(NO,g.y8);g.f=NO.prototype;g.f.isLoading=function(){return this.state===1}; g.f.dB=function(){return this.state===3}; g.f.qdu=function(O){var R=O.getElementsByTagName("Representation");if(O.getElementsByTagName("SegmentList").length>0||O.getElementsByTagName("SegmentTemplate").length>0){this.vy=this.S=!0;this.timeline||(this.timeline=new N3s);aGf(this.timeline,O);this.publish("refresh");for(O=0;O=0?C=e3(t):r=r+"?range="+t}w.call(y,new P0(I.XQ,I.startSecs,I.d2,I.L,r,C,I.S))}l=u}J.update(l,this.isLive,this.AR)}vqx(this.timeline);return!0}this.duration=Ve_(cs(O,"mediaPresentationDuration")); a:{for(O=0;O0))return this.N5()-O}}O=this.L;for(var R in O){var J=O[R].index;if(J.isLoaded()&&!uB(O[R].info.mimeType))return J.q7()}return 0}; g.f.getStreamTimeOffset=function(){return this.J}; g.f.yI=function(O){for(var R in this.L){var J=this.L[R].index;if(J.isLoaded()){var l=J.F8(O),u=J.yI(l);if(u)return u+O-J.getStartTime(l)}}return NaN}; var Wm=null,UAk,Af=!((UAk=navigator.mediaCapabilities)==null||!UAk.decodingInfo),FwT={commentary:1,alternate:2,dub:3,main:4};var gT=new Set,eQ=new Map;Bm.prototype.clone=function(O){return new Bm(this.flavor,O,this.S,this.experiments)}; Bm.prototype.sf=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Bm.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 joV={},zG=(joV.playready=["com.youtube.playready","com.microsoft.playready"],joV.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],joV),OF={},sIL=(OF.widevine="DRM_SYSTEM_WIDEVINE",OF.fairplay="DRM_SYSTEM_FAIRPLAY",OF.playready="DRM_SYSTEM_PLAYREADY",OF),Rj={},QoI=(Rj.widevine=1,Rj.fairplay=2,Rj.playready=3,Rj);var OS;g.S(np,g.p); np.prototype.initialize=function(O,R){for(var J=this,l=g.N(Object.keys(O)),u=l.next();!u.done;u=l.next()){u=g.N(O[u.value]);for(var F=u.next();!F.done;F=u.next())if(F=F.value,F.hp)for(var G=g.N(Object.keys(F.hp)),y=G.next();!y.done;y=G.next()){var w=y.value;y=w;w=zG[w];!w&&this.Z("html5_enable_vp9_fairplay")&&y==="fairplay"&&(w=["com.youtube.fairplay.sbdl"]);if(w){w=g.N(w);for(var I=w.next();!I.done;I=w.next())I=I.value,this.B[I]=this.B[I]||new Bm(y,I,F.hp[y],this.bz.experiments),this.L[y]=this.L[y]|| {},this.L[y][F.mimeType]=!0}}}L_()&&(this.B["com.youtube.fairplay"]=new Bm("fairplay","com.youtube.fairplay","",this.bz.experiments),this.Z("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=SJB(R,this.useCobaltWidevine,this.Z("html5_enable_safari_fairplay")&&!0,this.Z("html5_enable_vp9_fairplay")).filter(function(C){return!!J.B[C]})}; np.prototype.Z=function(O){return this.bz.experiments.Vh(O)};var LIb={"":"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"};XGT.prototype.Z=function(O){return this.experiments.Vh(O)};var g$H={RED:"red",b8d:"white"};Tcs.prototype.Vh=function(O){O=this.flags[O];JSON.stringify(O);return O==="true"};var qJW=Promise.resolve(),Wwf=window.queueMicrotask?window.queueMicrotask.bind(window):kPh;io.prototype.canPlayType=function(O,R){O=O.canPlayType?O.canPlayType(R):!1;YS?O=O||Y94[R]:sS===2.2?O=O||dAk[R]:j8()&&(O=O||hiC[R]);return!!O}; io.prototype.isTypeSupported=function(O){return this.W?window.cast.receiver.platform.canDisplayType(O):A4(O)}; var dAk={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},hiC={"application/x-mpegURL":"maybe"},Y94={"application/x-mpegURL":"maybe"};g.S(Fd,g.y8);Fd.prototype.add=function(O,R){if(!this.items[O]&&(R.nU||R.Z0||R.Eu)){var J=this.items,l=R;Object.isFrozen&&!Object.isFrozen(R)&&(l=Object.create(R),Object.freeze(l));J[O]=l;this.publish("vast_info_card_add",O)}}; Fd.prototype.remove=function(O){var R=this.get(O);delete this.items[O];return R}; Fd.prototype.get=function(O){return this.items[O]||null}; Fd.prototype.isEmpty=function(){return g.nt(this.items)};var Kb;yl.prototype.add=function(O){if(this.pos+20>this.data.length){var R=new Uint8Array(this.data.length*2);R.set(this.data);this.data=R}for(;O>31;)this.data[this.pos++]=Kb[(O&31)+32],O>>=5;this.data[this.pos++]=Kb[O|0]}; yl.prototype.SQ=function(){return g.$u(this.data.subarray(0,this.pos))}; yl.prototype.reset=function(){this.pos=0};IZ.prototype.VB=function(O,R){var J=Math.pow(this.alpha,O);this.L=R*(1-J)+J*this.L;this.S+=O}; IZ.prototype.s_=function(){return this.L/(1-Math.pow(this.alpha,this.S))};Cb.prototype.VB=function(O,R){for(var J=0;J<10;J++){var l=this.L[J],u=l+(J===0?O:0),F=1*Math.pow(2,J);if(u<=F)break;l=Math.min(1,(u-F*.5)/l);for(u=0;u<16;u++)F=this.values[J*16+u]*l,this.values[(J+1)*16+u]+=F,this.L[J+1]+=F,this.values[J*16+u]-=F,this.L[J]-=F}l=J=0;u=8192;R>8192&&(J=Math.ceil(Math.log(R/8192)/Math.log(2)),l=8192*Math.pow(2,J-1),u=l*2);J+2>16?this.values[15]+=O:(R=(R-l)/(u-l),this.values[J]+=O*(1-R),this.values[J+1]+=O*R);this.L[0]+=O}; Cb.prototype.s_=function(){var O=O===void 0?this.S:O;var R=R===void 0?.02:R;var J=J===void 0?.98:J;for(var l=this.B,u=0;u<16;u++)l[u]=this.values[u];u=this.L[0];for(var F=1;F<11;F++){var G=this.L[F];if(G===0)break;for(var y=Math.min(1,(O-u)/G),w=0;w<16;w++)l[w]+=this.values[F*16+w]*y;u+=G*y;if(y<1)break}for(F=O=G=0;F<16;F++){y=G+l[F]/u;O+=Math.max(0,Math.min(y,J)-Math.max(G,R))*(F>0?8192*Math.pow(2,F-1):0);if(y>J)break;G=y}return O/(J-R)};rm.prototype.VB=function(O,R){O=Math.min(this.L,Math.max(1,Math.round(O*this.resolution)));O+this.S>=this.L&&(this.B=!0);for(;O--;)this.values[this.S]=R,this.S=(this.S+1)%this.L;this.Cp=!0}; rm.prototype.percentile=function(O){var R=this;if(!this.B&&this.S===0)return 0;this.Cp&&(g.sC(this.D,function(J,l){return R.values[J]-R.values[l]}),this.Cp=!1); return this.values[this.D[Math.round(O*((this.B?this.L:this.S)-1))]]||0}; rm.prototype.s_=function(){return this.j?(this.percentile(this.N-this.j)+this.percentile(this.N)+this.percentile(this.N+this.j))/3:this.percentile(this.N)};g.S(tj,g.p);tj.prototype.Gd=function(){var O;(O=this.Iu)==null||O.start();if(ES(this)&&this.policy.V){var R;(R=this.ys)==null||R.zP()}};YJz.prototype.Z=function(O){return this.experiments.Vh(O)};g.S(h0B,g.p);var JvB="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),GJ0={PSS:"caoe",cjz:"capsv",uHU:"cbrand",BR1:"cbr",hLq:"cbrver",IQg:"cchip",EMU:"ccappver",GWd:"ccrv",ZLd:"cfrmver",O$1:"c",BBJ:"cver",ufU:"ctheme",b$u:"cplayer",bxX:"cmodel",NI:"cnetwork",aYz:"cos",OS_VERSION:"cosver",V5Q:"cplatform",u_J:"crqyear"};g.S(US,g.p);g.f=US.prototype;g.f.Z=function(O){return this.experiments.Vh(O)}; g.f.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.f.getVideoUrl=function(O,R,J,l,u,F,G){R={list:R};J&&(u?R.time_continue=J:R.t=J);J=G?"music.youtube.com":g.Ql(this);u=J==="www.youtube.com";!F&&l&&u?F="https://youtu.be/"+O:g.Aj(this)?(F="https://"+J+"/fire",R.v=O):(F&&u?(F=this.protocol+"://"+J+"/shorts/"+O,l&&(R.feature="share")):(F=this.protocol+"://"+J+"/watch",R.v=O),YS&&(O=AAH())&&(R.ebc=O));return g.s9(F,R)}; g.f.getVideoEmbedCode=function(O,R,J,l){R="https://"+g.Ql(this)+"/embed/"+R;l&&(R=g.s9(R,{list:l}));l=J.width;J=J.height;R=o4(R);O=o4(O!=null?O:"YouTube video player");return'')}; g.f.supportsGaplessAudio=function(){return g.Wd&&!YS&&HW()>=74||g.du&&g.vE(68)?!0:!1}; g.f.supportsGaplessShorts=function(){return!this.Z("html5_enable_short_gapless")||this.JR||g.N$?!1:!0}; g.f.getPlayerType=function(){return this.L.cplayer}; g.f.DA=function(){return this.xe}; var IV_=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],FN2=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],yvH=[19];var JR={},tRz=(JR["140"]={numChannels:2},JR["141"]={numChannels:2},JR["251"]={audioSampleRate:48E3,numChannels:2},JR["774"]={audioSampleRate:48E3,numChannels:2},JR["380"]={numChannels:6},JR["328"]={numChannels:6},JR["773"]={},JR),gt={},CZp=(gt["1"]='video/mp4; codecs="av01.0.08M.08"',gt["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',gt["1e"]='video/mp4; codecs="av01.0.08M.08"',gt["9"]='video/webm; codecs="vp9"',gt["("]='video/webm; codecs="vp9"',gt["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', gt.h='video/mp4; codecs="avc1.64001e"',gt.H='video/mp4; codecs="avc1.64001e"',gt.o='audio/webm; codecs="opus"',gt.a='audio/mp4; codecs="mp4a.40.2"',gt.ah='audio/mp4; codecs="mp4a.40.2"',gt.mac3='audio/mp4; codecs="ac-3"; channels=6',gt.meac3='audio/mp4; codecs="ec-3"; channels=6',gt.i='audio/mp4; codecs="iamf.001.001.Opus"',gt),iK={},rvp=(iK["337"]={width:3840,height:2160,bitrate:3E7,fps:30},iK["336"]={width:2560,height:1440,bitrate:15E6,fps:30},iK["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, iK["702"]={width:7680,height:4320,bitrate:4E7,fps:60},iK["701"]={width:3840,height:2160,bitrate:2E7,fps:60},iK["700"]={width:2560,height:1440,bitrate:1E7,fps:60},iK["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},iK["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},iK["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},iK["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, iK["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},iK["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},iK["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},iK["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},iK["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},iK["315"]={width:3840,height:2160,bitrate:2E7,fps:60},iK["308"]={width:2560, height:1440,bitrate:1E7,fps:60},iK["303"]={width:1920,height:1080,bitrate:5E6,fps:60},iK["302"]={width:1280,height:720,bitrate:25E5,fps:60},iK["299"]={width:1920,height:1080,bitrate:75E5,fps:60},iK["298"]={width:1280,height:720,bitrate:35E5,fps:60},iK["571"]={width:7680,height:4320,bitrate:3E7,fps:60},iK["401"]={width:3840,height:2160,bitrate:15E6,fps:60},iK["400"]={width:2560,height:1440,bitrate:75E5,fps:60},iK["399"]={width:1920,height:1080,bitrate:2E6,fps:60},iK["398"]={width:1280,height:720,bitrate:1E6, fps:60},iK["397"]={width:854,height:480,bitrate:4E5,fps:30},iK["396"]={width:640,height:360,bitrate:25E4,fps:30},iK["787"]={width:1080,height:608,bitrate:2E5,fps:30},iK["788"]={width:1080,height:608,bitrate:4E5,fps:30},iK["572"]={width:7680,height:4320,bitrate:3E7,fps:60},iK["555"]={width:3840,height:2160,bitrate:15E6,fps:60},iK["554"]={width:2560,height:1440,bitrate:75E5,fps:60},iK["553"]={width:1920,height:1080,bitrate:2E6,fps:60},iK["552"]={width:1280,height:720,bitrate:1E6,fps:60},iK["551"]={width:854, height:480,bitrate:4E5,fps:30},iK["550"]={width:640,height:360,bitrate:25E4,fps:30},iK["313"]={width:3840,height:2160,bitrate:8E6,fps:30},iK["271"]={width:2560,height:1440,bitrate:4E6,fps:30},iK["248"]={width:1920,height:1080,bitrate:2E6,fps:30},iK["247"]={width:1280,height:720,bitrate:15E5,fps:30},iK["244"]={width:854,height:480,bitrate:52E4,fps:30},iK["243"]={width:640,height:360,bitrate:28E4,fps:30},iK["137"]={width:1920,height:1080,bitrate:4E6,fps:30},iK["136"]={width:1280,height:720,bitrate:3E6, fps:30},iK["135"]={width:854,height:480,bitrate:1E6,fps:30},iK["385"]={width:1920,height:1080,bitrate:6503313,fps:60},iK["376"]={width:1280,height:720,bitrate:5706960,fps:60},iK["384"]={width:1280,height:720,bitrate:3660979,fps:60},iK["225"]={width:1280,height:720,bitrate:5805E3,fps:30},iK["224"]={width:1280,height:720,bitrate:453E4,fps:30},iK["145"]={width:1280,height:720,bitrate:2682052,fps:30},iK);g.f=Gq.prototype;g.f.getInfo=function(){return this.L}; g.f.dk=function(){return null}; g.f.FD=function(){var O=this.dk();return O?(O=g.il(O.By),Number(O.expire)):NaN}; g.f.We=function(){}; g.f.getHeight=function(){return this.L.video.height};fVL.prototype.build=function(){mrA(this);var O=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],R={};a:if(this.L)var J=this.L;else{J="";for(var l=g.N(this.B),u=l.next();!u.done;u=l.next())if(u=u.value,u.Ef){if(u.Ef.getIsDefault()){J=u.Ef.getId();break a}J||(J=u.Ef.getId())}}l=g.N(this.B);for(u=l.next();!u.done;u=l.next())if(u=u.value,this.j||!u.Ef||u.Ef.getId()===J)R[u.itag]||(R[u.itag]=[]),R[u.itag].push(u);J=g.N(this.S);for(l=J.next();!l.done;l=J.next())if(l=l.value,u=R[l.L]){u=g.N(u);for(var F=u.next();!F.done;F= u.next()){var G=O,y=G.push;F=F.value;var w="#EXT-X-MEDIA:TYPE=AUDIO,",I="YES",C="audio";if(F.Ef){C=F.Ef;var r=C.getId().split(".")[0];r&&(w+='LANGUAGE="'+r+'",');(this.L?this.L===C.getId():C.getIsDefault())||(I="NO");C=C.getName()}r="";l!==null&&(r=l.itag.toString());r=yh(this,F.url,r);w=w+('NAME="'+C+'",DEFAULT='+(I+',AUTOSELECT=YES,GROUP-ID="'))+(NBp(F,l)+'",URI="'+(r+'"'));y.call(G,w)}}J=g.N(this.D);for(l=J.next();!l.done;l=J.next())l=l.value,u=zib,l=(G=l.Ef)?'#EXT-X-MEDIA:URI="'+yh(this,l.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+u+'",LANGUAGE="'+G.getId()+'",NAME="'+G.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,l&&O.push(l);J=this.D.length>0?zib:void 0;l=g.N(this.S);for(u=l.next();!u.done;u=l.next())u=u.value,y=R[u.L],G=void 0,((G=y)==null?void 0:G.length)>0&&(G=u,y=y[0],y="#EXT-X-STREAM-INF:BANDWIDTH="+(G.bitrate+y.bitrate)+',CODECS="'+(G.codecs+","+y.codecs+'",RESOLUTION=')+(G.width+"x"+G.height+',AUDIO="')+(NBp(y,G)+'",')+(J?'SUBTITLES="'+J+'",':"")+"CLOSED-CAPTIONS=NONE",G.fps>1&&(y+= ",FRAME-RATE="+G.fps),G.To&&(y+=",VIDEO-RANGE="+G.To),O.push(y),O.push(yh(this,u.url,"")));return O.join("\n")}; var zib="text";g.S(wy,Gq);wy.prototype.FD=function(){return this.expiration}; wy.prototype.dk=function(){if(!this.By||this.By.jN()){var O=this.S.build();O="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(O);this.By=new mi(O)}return this.By};g.S(IQ,Gq);IQ.prototype.dk=function(){return new mi(this.S.Y8())}; IQ.prototype.We=function(){this.S=AC(this.S)};g.S(Cs,Gq);Cs.prototype.dk=function(){return new mi(this.S)};var lK={},kJ0=(lK.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",lK.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",lK.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",lK);g.f=g.ry.prototype;g.f.getId=function(){return this.id}; g.f.getName=function(){return this.name}; g.f.isServable=function(){return this.L}; g.f.Y8=function(){return this.url}; g.f.getXtags=function(){return this.xtags}; g.f.toString=function(){return this.languageCode+": "+g.tX(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.f.equals=function(O){return O?this.toString()===O.toString():!1}; g.f.Dh=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var PZp={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},pzp={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},BBx=/^(\d*)_((\d*)_?(\d*))$/;var xrx={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Ur_={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var uK={},nit=(uK.ALWAYS=1,uK.BY_REQUEST=3,uK.UNKNOWN=void 0,uK),Fb={},chV=(Fb.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Fb.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Fb.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Fb.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Fb);var DfH; DfH=function(O){for(var R=Object.keys(O),J={},l=0;ll-R?-1:O}; g.f.qS=function(){return this.S.lK()}; g.f.Et=function(){return this.S.U$()}; g.f.dJ=function(O){this.S=O};g.S(xI,Bx);xI.prototype.S=function(O,R){return Bx.prototype.S.call(this,"$N|"+O,R)}; xI.prototype.D=function(O,R,J){return new Hx(O,R,J,this.isLive)};var XOz=[],hX=new Set;g.S(g.jN,g.y8);g.f=g.jN.prototype; g.f.setData=function(O){O=O||{};var R=O.errordetail;R!=null&&(this.errorDetail=R);var J=O.errorcode;J!=null?this.errorCode=J:O.status==="fail"&&(this.errorCode="auth");var l=O.reason;l!=null&&(this.errorReason=l);var u=O.subreason;u!=null&&(this.r$=u);this.Z("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=O.cpn||(this.bz.DA()?"r"+g.DO(15):g.DO(16)));this.fJ=iE(this.bz.fJ,O.livemonitor);SMH(this,O);var F=O.raw_player_response;if(F)this.Hv=F;else{var G=O.player_response; G&&(F=JSON.parse(G))}if(this.Z("html5_enable_ssap_entity_id")){var y=O.cached_load;y&&(this.Tm=iE(this.Tm,y));if(!this.clientPlaybackNonce){var w=O.cpn;w?(this.rT("ssei","shdc"),this.clientPlaybackNonce=w):this.clientPlaybackNonce=this.bz.DA()?"r"+g.DO(15):g.DO(16)}}F&&(this.playerResponse=F);if(this.playerResponse){var I=this.playerResponse.annotations;if(I)for(var C=g.N(I),r=C.next();!r.done;r=C.next()){var t=r.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(this.zD=!0);var Z=t.loadPolicy; Z&&(this.annotationsLoadPolicy=nit[Z]);var V=t.invideoUrl;V&&(this.JR=iN(V));break}}var m=this.playerResponse.attestation;m&&Qa2(this,m);var E=this.playerResponse.cotn;E&&(this.cotn=E);var a=this.playerResponse.heartbeatParams;if(a){SGf(this)&&(this.I$=!0);var v=a.heartbeatToken;v&&(this.drmSessionId=a.drmSessionId||"",this.heartbeatToken=v,this.DB=Number(a.intervalMilliseconds),this.Ww=Number(a.maxRetries),this.Bb=!!a.softFailOnError,this.mE=!!a.useInnertubeHeartbeatsForDrm,this.Pu=!0);this.heartbeatServerData= a.heartbeatServerData;var b;this.MM=!((b=a.heartbeatAttestationConfig)==null||!b.requiresAttestation)}var W=this.playerResponse.messages;W&&h2H(this,W);var B=this.playerResponse.overlay;if(B){var z=B.playerControlsOverlayRenderer;if(z)if(n$L(this,z.controlBgHtml),z.mutedAutoplay){var Y=g.x(z.mutedAutoplay,oCM);if(Y&&Y.endScreen){var gh=g.x(Y.endScreen,ZIR);gh&&gh.text&&(this.Bx=g.V8(gh.text))}}else this.mutedAutoplay=!1}var l2=this.playerResponse.playabilityStatus;if(l2){var O_=l2.backgroundability; O_&&O_.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Kx,n;if((Kx=l2.offlineability)==null?0:(n=Kx.offlineabilityRenderer)==null?0:n.offlineable)this.offlineable=!0;var mH=l2.contextParams;mH&&(this.contextParams=mH);var Xp=l2.pictureInPicture;Xp&&Xp.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);l2.playableInEmbed&&(this.allowEmbed=!0);var xW=l2.ypcClickwrap;if(xW){var ab=xW.playerLegacyDesktopYpcClickwrapRenderer,Kt=xW.ypcRentalActivationRenderer;if(ab)this.vu= ab.durationMessage||"",this.lc=!0;else if(Kt){var $W=Kt.durationMessage;this.vu=$W?g.V8($W):"";this.lc=!0}}var vB=l2.errorScreen;if(vB){if(vB.playerLegacyDesktopYpcTrailerRenderer){var lQ=vB.playerLegacyDesktopYpcTrailerRenderer;this.x4=lQ.trailerVideoId||"";var D=vB.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Gz=D&&D.ypcTrailerRenderer}else if(vB.playerLegacyDesktopYpcOfferRenderer)lQ=vB.playerLegacyDesktopYpcOfferRenderer;else if(vB.ypcTrailerRenderer){Gz=vB.ypcTrailerRenderer;var dC=Gz.fullVideoMessage; this.D2=dC?g.V8(dC):"";var E5,Ms;this.x4=((E5=g.x(Gz,V06))==null?void 0:(Ms=E5.videoDetails)==null?void 0:Ms.videoId)||""}lQ&&(this.l7=lQ.itemTitle||"",lQ.itemUrl&&(this.Ly=lQ.itemUrl),lQ.itemBuyUrl&&(this.y3=lQ.itemBuyUrl),this.c_=lQ.itemThumbnail||"",this.OX=lQ.offerHeadline||"",this.i$=lQ.offerDescription||"",this.HI=lQ.offerId||"",this.wy=lQ.offerButtonText||"",this.VZ=lQ.offerButtonFormattedText||null,this.X9=lQ.overlayDurationMsec||NaN,this.D2=lQ.fullVideoMessage||"",this.Wn=!0);if(Gz){var tV= g.x(Gz,V06);if(tV)this.FB={raw_player_response:tV};else{var PB=g.x(Gz,T7_);this.FB=PB?JF(PB):null}this.Wn=!0}}}var WR=this.playerResponse.playbackTracking;if(WR){var qs=O,T=SN(WR.googleRemarketingUrl);T&&(this.googleRemarketingUrl=T);var M=SN(WR.youtubeRemarketingUrl);M&&(this.youtubeRemarketingUrl=M);var q={},P=SN(WR.ptrackingUrl);if(P){var U=N_(P),Df=U.oid;Df&&(this.hn=Df);var Js=U.pltype;Js&&(this.XV=Js);var VA=U.ptchn;VA&&(this.iO=VA);var i2=U.ptk;i2&&(this.N2=encodeURIComponent(i2));var q0=U.m; q0&&(this.wu=q0)}var zz=SN(WR.qoeUrl);if(zz){for(var EC=g.il(zz),DJ=g.N(Object.keys(EC)),be=DJ.next();!be.done;be=DJ.next()){var db=be.value,Lz=EC[db];EC[db]=Array.isArray(Lz)?Lz.join(","):Lz}this.DF=EC;var hc=EC.cat;hc&&(this.Z("html5_enable_qoe_cat_list")?this.Gm=this.Gm.concat(hc.split(",")):this.hD=hc);var EQ=EC.live;EQ&&(this.g9=EQ);var ID=EC.drm_product;ID&&(this.drmProduct=ID)}var Ww=SN(WR.videostatsPlaybackUrl);if(Ww){var ZR=N_(Ww),AH=ZR.adformat;if(AH){qs.adformat=AH;var Qi=this.T(),Li=Hqp(AH, this.W8,Qi.N,Qi.V);Li&&(this.adFormat=Li)}var M3=ZR.aqi;M3&&(qs.ad_query_id=M3);var lL=ZR.autoplay;lL&&(this.kq=lL=="1",this.LS=lL=="1");var zL=ZR.autonav;zL&&(this.isAutonav=zL=="1");var GM=ZR.delay;GM&&(this.SG=S0(GM));var TR=ZR.ei;TR&&(this.eventId=TR);if(ZR.adcontext||AH)this.kq=!0;var QT=ZR.feature;QT&&(this.Uk=QT);var VL=ZR.list;VL&&(this.playlistId=VL);var DG=ZR.of;DG&&(this.vB=DG);var ag=ZR.osid;ag&&(this.osid=ag);var vL=ZR.referrer;vL&&(this.referrer=vL);var uX=ZR.sdetail;uX&&(this.Xn=uX); var w1=ZR.ssrt;w1&&(this.WD=w1=="1");var Fi=ZR.subscribed;Fi&&(this.subscribed=Fi=="1",this.J.subscribed=Fi);var GO=ZR.uga;GO&&(this.userGenderAge=GO);var X3=ZR.upt;X3&&(this.B8=X3);var T4=ZR.vm;T4&&(this.videoMetadata=T4);q.playback=ZR}var $q=SN(WR.videostatsWatchtimeUrl);if($q){var M8=N_($q),q8=M8.ald;q8&&(this.ZT=q8);q.watchtime=M8}var kq=SN(WR.atrUrl);if(kq){var c$=N_(kq);q.atr=c$}var $P=SN(WR.engageUrl);if($P){var OY=N_($P);q.engage=OY}this.BM=q;if(WR.promotedPlaybackTracking){var xp=WR.promotedPlaybackTracking; xp.startUrls&&(this.q2=xp.startUrls);xp.firstQuartileUrls&&(this.s5=xp.firstQuartileUrls);xp.secondQuartileUrls&&(this.WJ=xp.secondQuartileUrls);xp.thirdQuartileUrls&&(this.ME=xp.thirdQuartileUrls);xp.completeUrls&&(this.cJ=xp.completeUrls);xp.engagedViewUrls&&(xp.engagedViewUrls.length>1&&g.Aa(new g.Ys("There are more than one engaged_view_urls.")),this.WQ=xp.engagedViewUrls[0])}}var KZ=this.playerResponse.playerCueRanges;KZ&&KZ.length>0&&(this.cueRanges=KZ);var bB=this.playerResponse.playerCueRangeSet; bB&&g.zq(this,bB);a:{var y0=this.playerResponse.adPlacements;if(y0)for(var WL=g.N(y0),wA=WL.next();!wA.done;wA=WL.next()){var A1=void 0,ee=void 0,PL=(A1=wA.value.adPlacementRenderer)==null?void 0:(ee=A1.renderer)==null?void 0:ee.videoAdTrackingRenderer;if(PL){var pm=PL;break a}}pm=null}var Ic=pm;WR&&WR.promotedPlaybackTracking&&Ic&&g.Aa(new g.Ys("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var ZZ;if(!(ZZ=Ic))a:{for(var BL=g.N(this.playerResponse.adSlots||[]), CZ=BL.next();!CZ.done;CZ=BL.next()){var rA=g.x(CZ.value,j7);if(rA===void 0||!VXW(rA))break;var HL=void 0,RI=(HL=rA.fulfillmentContent)==null?void 0:HL.fulfilledLayout,xq=g.x(RI,WO);if(xq&&qY(xq)){ZZ=!0;break a}}ZZ=!1}ZZ&&(this.hF=!0);var Uw=this.playerResponse.playerAds;if(Uw)for(var J0=O,je=g.N(Uw),Vb=je.next();!Vb.done;Vb=je.next()){var Q9=Vb.value;if(Q9){var Lm=Q9.playerLegacyDesktopWatchAdsRenderer;if(Lm){var Mu=Lm.playerAdParams;if(Mu){Mu.autoplay=="1"&&(this.LS=this.kq=!0);this.Ju=Mu.encodedAdSafetyReason|| null;Mu.showContentThumbnail!==void 0&&(this.fL=!!Mu.showContentThumbnail);J0.enabled_engage_types=Mu.enabledEngageTypes;break}}}}var E9=this.playerResponse.playerConfig;if(E9){var YG=E9.manifestlessWindowedLiveConfig;if(YG){var Yq=Number(YG.minDvrSequence),t9=Number(YG.maxDvrSequence),fr=Number(YG.minDvrMediaTimeMs),Sh=Number(YG.maxDvrMediaTimeMs),oc=Number(YG.startWalltimeMs);Yq&&(this.g2=Yq);fr&&(this.N1=fr/1E3,this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&FD(this)&&(this.k5=fr/ 1E3));t9&&(this.hj=t9);Sh&&(this.AT=Sh/1E3,this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&FD(this)&&(this.oa=Sh/1E3));oc&&(this.zJ=oc/1E3);(Yq||fr)&&(t9||Sh)&&(this.allowLiveDvr=this.isLivePlayback=this.Hq=!0,this.q5=!1)}var dJ=E9.daiConfig;if(dJ){if(dJ.enableDai){this.WW=!0;var Nd=dJ.enableServerStitchedDai;Nd&&(this.enableServerStitchedDai=Nd);var d3=dJ.enablePreroll;d3&&(this.Fn=d3)}var iR;if(dJ.daiType==="DAI_TYPE_SS_DISABLED"||((iR=dJ.debugInfo)==null?0:iR.isDisabledUnpluggedChannel))this.Lk= !0;dJ.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.RQ=!0)}var CE=E9.audioConfig;if(CE){var LA=CE.loudnessDb;LA!=null&&(this.zW=LA);var PRz=CE.trackAbsoluteLoudnessLkfs;PRz!=null&&(this.Tn=PRz);var pDA=CE.loudnessTargetLkfs;pDA!=null&&(this.loudnessTargetLkfs=pDA);CE.audioMuted&&(this.PQ=!0);CE.muteOnStart&&(this.xO=!0);var S7=CE.loudnessNormalizationConfig;if(S7){S7.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);S7.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var BLB=S7.minimumLoudnessTargetLkfs;BLB!=null&&(this.minimumLoudnessTargetLkfs=BLB);var HoH=S7.maxStatefulTimeThresholdSec;HoH!=null&&(this.maxStatefulTimeThresholdSec=HoH)}CE.playAudioOnly&&(this.Ie=!0)}var vKz=E9.playbackEndConfig;if(vKz){var xBp=vKz.endSeconds,UBz=vKz.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(xBp&&(this.endSeconds=xBp),UBz&&(this.limitedPlaybackDurationInSeconds=UBz))}var TK=E9.fairPlayConfig;if(TK){var jIA=TK.certificate;jIA&&(this.Gd=Gj(jIA));var QIH=Number(TK.keyRotationPeriodMs); QIH>0&&(this.by=QIH);var Lks=Number(TK.keyPrefetchMarginMs);Lks>0&&(this.OL=Lks)}var ux=E9.playbackStartConfig;if(ux){this.iZ=Number(ux.startSeconds);var YYh=ux.liveUtcStartSeconds,dBp=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;YYh&&!dBp&&(this.liveUtcStartSeconds=Number(YYh));var X2h=ux.startPosition;if(X2h){var h8L=X2h.utcTimeMillis;h8L&&!dBp&&(this.liveUtcStartSeconds=Number(h8L)*.001);var z8W=X2h.streamTimeMillis;z8W&&(this.vY=Number(z8W)*.001)}this.progressBarStartPosition=ux.progressBarStartPosition; this.progressBarEndPosition=ux.progressBarEndPosition}else{var TXL=E9.skippableSegmentsConfig;if(TXL){var neH=TXL.introSkipDurationMs;neH&&(this.O$=Number(neH)/1E3);var c0z=TXL.outroSkipDurationMs;c0z&&(this.kC=Number(c0z)/1E3)}}var $UL=E9.skippableIntroConfig;if($UL){var Ojs=Number($UL.startMs),RXh=Number($UL.endMs);isNaN(Ojs)||isNaN(RXh)||(this.Sa=Ojs,this.jR=RXh)}var Jls=E9.streamSelectionConfig;Jls&&(this.TR=Number(Jls.maxBitrate));var gaW=E9.vrConfig;gaW&&(this.oN=gaW.partialSpherical=="1"); var NY=E9.webDrmConfig;if(NY){NY.skipWidevine&&(this.vL=!0);var ijs=NY.widevineServiceCert;ijs&&(this.S5=Gj(ijs));NY.useCobaltWidevine&&(this.useCobaltWidevine=!0);NY.startWithNoQualityConstraint&&(this.Ra=!0)}var dE=E9.mediaCommonConfig;if(dE){var $h=dE.dynamicReadaheadConfig;if($h){this.maxReadAheadMediaTimeMs=$h.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=$h.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=$h.readAheadGrowthRateMs||NaN;var lMT,uU0=dE==null?void 0:(lMT=dE.mediaUstreamerRequestConfig)== null?void 0:lMT.videoPlaybackUstreamerConfig;uU0&&(this.yB=Gj(uU0));var Mwp=dE==null?void 0:dE.sabrContextUpdates;if(Mwp&&Mwp.length>0)for(var FnB=g.N(Mwp),qaT=FnB.next();!qaT.done;qaT=FnB.next()){var rQ=qaT.value;if(rQ.type&&rQ.value){var vjC={type:rQ.type,scope:rQ.scope,value:Gj(rQ.value)||void 0,sendByDefault:rQ.sendByDefault};this.sabrContextUpdates.set(rQ.type,vjC)}}}var GoL=dE.serverPlaybackStartConfig;GoL&&(this.serverPlaybackStartConfig=GoL);dE.useServerDrivenAbr&&(this.CE=!0);var Knx=dE.requestPipeliningConfig; Knx&&(this.requestPipeliningConfig=Knx)}var yls=E9.inlinePlaybackConfig;yls&&(this.YQ=!!yls.showAudioControls);var M6=E9.embeddedPlayerConfig;if(M6){this.embeddedPlayerConfig=M6;var kcp=M6.embeddedPlayerMode;if(kcp){var wFB=this.T();wFB.iz=kcp;wFB.B=kcp==="EMBEDDED_PLAYER_MODE_PFL"}var IMW=M6.permissions;IMW&&(this.allowImaMonetization=!!IMW.allowImaMonetization)}var CYs=E9.ssapConfig;CYs&&(this.Dc=CYs.ssapPrerollEnabled||!1);var q6=E9.webPlayerConfig;q6&&(q6.gatewayExperimentGroup&&(this.gatewayExperimentGroup= q6.gatewayExperimentGroup),q6.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var h7=this.playerResponse.streamingData;if(h7){var sKs=h7.formats;if(sKs){for(var mo=[],rlW=g.N(sKs),b6B=rlW.next();!b6B.done;b6B=rlW.next()){var Wzz=b6B.value;mo.push(Wzz.itag+"/"+Wzz.width+"x"+Wzz.height)}this.Wd=mo.join(",");mo=[];for(var tiH=g.N(sKs),A8T=tiH.next();!A8T.done;A8T=tiH.next()){var EM=A8T.value,Dt={itag:EM.itag,type:EM.mimeType,quality:EM.quality},oax=EM.url;oax&&(Dt.url=oax);var kh=eY(EM),XW6=kh.ju, T6o=kh.pm,$5C=kh.s;kh.Ko&&(Dt.url=XW6,Dt.sp=T6o,Dt.s=$5C);mo.push(g.ki(Dt))}this.yk=mo.join(",")}var eW_=h7.hlsFormats;if(eW_&&!this.Z("safari_live_drm_captions_fix")){var Zjp=E9||null,sp={};if(Zjp){var P$s=Zjp.audioPairingConfig;if(P$s&&P$s.pairs)for(var Viz=g.N(P$s.pairs),p2A=Viz.next();!p2A.done;p2A=Viz.next()){var fMf=p2A.value,BXx=fMf.videoItag;sp[BXx]||(sp[BXx]=[]);sp[BXx].push(fMf.audioItag)}}for(var SH0={},NpA=g.N(eW_),H6x=NpA.next();!H6x.done;H6x=NpA.next()){var mMs=H6x.value;SH0[mMs.itag]= mMs.bitrate}for(var Eax=[],DMh=g.N(eW_),xUA=DMh.next();!xUA.done;xUA=DMh.next()){var uv=xUA.value,MG={itag:uv.itag,type:uv.mimeType,url:uv.url,bitrate:uv.bitrate,width:uv.width,height:uv.height,fps:uv.fps},bn=uv.audioTrack;if(bn){var aMT=bn.displayName;aMT&&(MG.name=aMT,MG.audio_track_id=bn.id,bn.audioIsDefault&&(MG.is_default="1"))}if(uv.drmFamilies){for(var vaW=[],XFx=g.N(uv.drmFamilies),UUz=XFx.next();!UUz.done;UUz=XFx.next())vaW.push(Ee[UUz.value]);MG.drm_families=vaW.join(",")}var WA=sp[uv.itag]; if(WA&&WA.length){MG.audio_itag=WA.join(",");var Tpz=SH0[WA[0]];Tpz&&(MG.bitrate+=Tpz)}var $Mz=B32(uv);$Mz&&(MG.eotf=$Mz);uv.audioChannels&&(MG.audio_channels=uv.audioChannels);Eax.push(g.ki(MG))}this.hlsFormats=Eax.join(",")}var jKf=h7.licenseInfos;if(jKf&&jKf.length>0){for(var Mi0={},qHf=g.N(jKf),QK2=qHf.next();!QK2.done;QK2=qHf.next()){var koh=QK2.value,sEB=koh.drmFamily,bjh=koh.url;sEB&&bjh&&(Mi0[Ee[sEB]]=bjh)}this.hp=Mi0}var Wn_=h7.drmParams;Wn_&&(this.drmParams=Wn_);var AlB=h7.dashManifestUrl; AlB&&(this.Y9=g.s9(AlB,{cpn:this.clientPlaybackNonce}));var eXB=h7.hlsManifestUrl;eXB&&(this.hlsvp=eXB);var PYT=h7.probeUrl;PYT&&(this.probeUrl=iN(g.s9(PYT,{cpn:this.clientPlaybackNonce})));var pFs=h7.serverAbrStreamingUrl;pFs&&(this.Ax=new g.qL(pFs,!0))}var Bpx=this.playerResponse.trackingParams;Bpx&&(this.AR=Bpx);var Oo=this.playerResponse.videoDetails;if(Oo){var qG=O,Lz0=Oo.videoId;Lz0&&(this.videoId=Lz0,qG.video_id||(qG.video_id=Lz0));var Hjs=Oo.channelId;Hjs&&(this.J.uid=Hjs.substring(2));var YaT= Oo.title;YaT&&(this.title=YaT,qG.title||(qG.title=YaT));var dUh=Oo.lengthSeconds;dUh&&(this.lengthSeconds=Number(dUh),qG.length_seconds||(qG.length_seconds=dUh));var xMT=Oo.keywords;xMT&&(this.keywords=atx(xMT));var hWz=Oo.channelId;hWz&&(this.oU=hWz,qG.ucid||(qG.ucid=hWz));var UM_=Oo.viewCount;UM_&&(this.rawViewCount=Number(UM_));var zWf=Oo.author;zWf&&(this.author=zWf,qG.author||(qG.author=zWf));var jEx=Oo.shortDescription;jEx&&(this.shortDescription=jEx);var QE_=Oo.isCrawlable;QE_&&(this.isListed= QE_);var Ln0=Oo.musicVideoType;Ln0&&(this.musicVideoType=Ln0);var nK0=Oo.isLive;nK0!=null&&(this.isLivePlayback=nK0);if(nK0||Oo.isUpcoming)this.isPremiere=!Oo.isLiveContent;var YH0=Oo.thumbnail;YH0&&(this.W=fs(YH0));var dMx=Oo.isExternallyHostedPodcast;dMx&&(this.isExternallyHostedPodcast=dMx);var c8H=Oo.viewerLivestreamJoinPosition;if(c8H==null?0:c8H.utcTimeMillis)this.xi=S0(c8H.utcTimeMillis);var hX_=E9||null,OOx=O;Oo.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Oo.isUpcoming&&(this.isUpcoming= !0);if(Oo.isPostLiveDvr){this.q5=!0;var zXp=Oo.latencyClass;zXp&&(this.latencyClass=chV[zXp]||"UNKNOWN");Oo.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var RDA=!1;this.fJ?(this.allowLiveDvr=lo()?!0:n_&&xx<5?!1:!0,this.isLivePlayback=!0):Oo.isLive?(OOx.livestream="1",this.allowLiveDvr=Oo.isLiveDvrEnabled?lo()?!0:n_&&xx<5?!1:!0:!1,this.partnerId=27,RDA=!0):Oo.isUpcoming&&(RDA=!0);if(Oo.isLive||this.fJ){Oo.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var naA=Oo.latencyClass; naA&&(this.latencyClass=chV[naA]||"UNKNOWN");var clA=Oo.liveChunkReadahead;clA&&(this.liveChunkReadahead=clA);var Fr=hX_&&hX_.livePlayerConfig;if(Fr){Fr.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Fr.hasSubfragmentedWebm&&(this.lP=!0);Fr.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var O1s=Fr.liveExperimentalContentId;O1s&&(this.liveExperimentalContentId=Number(O1s));var RHs=Fr.isLiveHeadPlayable;this.Z("html5_live_head_playable")&&RHs!=null&&(this.isLiveHeadPlayable=RHs)}}RDA&& (this.isLivePlayback=!0,OOx.adformat&&OOx.adformat.split("_")[1]!=="8"||this.OQ.push("heartbeat"),this.Pu=!0)}var J$T=Oo.isPrivate;J$T!==void 0&&(this.isPrivate=iE(this.isPrivate,J$T))}if(l2){var gyf=Oo||null,i1s=!1,Gl=l2.errorScreen;i1s=Gl&&(Gl.playerLegacyDesktopYpcOfferRenderer||Gl.playerLegacyDesktopYpcTrailerRenderer||Gl.ypcTrailerRenderer)?!0:gyf&&gyf.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(l2.status);if(!i1s){this.errorCode=sas(l2.errorCode)||"auth";var AJ=Gl&& Gl.playerErrorMessageRenderer;if(AJ){this.playerErrorMessageRenderer=AJ;var lrW=AJ.reason;lrW&&(this.errorReason=g.V8(lrW));var Jr_=AJ.subreason;Jr_&&(this.r$=g.V8(Jr_),this.uy=Jr_)}else this.errorReason=l2.reason||null;var gp_=l2.status;if(gp_==="LOGIN_REQUIRED")this.errorDetail="1";else if(gp_==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(gp_==="AGE_CHECK_REQUIRED"){var u$h=l2.errorScreen,FOx=u$h&&u$h.playerKavRenderer;this.errorDetail=FOx&&FOx.kavUrl?"4":"3"}else this.errorDetail=l2.isBlockedInRestrictedMode? "5":"0"}}var Gxx=this.playerResponse.interstitialPods;Gxx&&drL(this,Gxx);this.JR&&this.eventId&&(this.JR=ul(this.JR,{ei:this.eventId}));var iOf=this.playerResponse.captions;if(iOf&&iOf.playerCaptionsTracklistRenderer)a:{var kt=iOf.playerCaptionsTracklistRenderer;this.captionTracks=[];if(kt.captionTracks)for(var KOB=g.N(kt.captionTracks),l7h=KOB.next();!l7h.done;l7h=KOB.next()){var sf=l7h.value,y$A=mY_(sf.baseUrl);if(!y$A)break a;var ucs={is_translateable:!!sf.isTranslatable,languageCode:sf.languageCode, languageName:sf.name&&g.V8(sf.name),url:y$A,vss_id:sf.vssId,kind:sf.kind};ucs.name=sf.trackName;ucs.displayName=sf.name&&g.V8(sf.name);this.captionTracks.push(new g.ry(ucs))}this.Op=kt.audioTracks||[];this.dn=kt.defaultAudioTrackIndex||0;this.fh=[];if(kt.translationLanguages)for(var w8s=g.N(kt.translationLanguages),Fv2=w8s.next();!Fv2.done;Fv2=w8s.next()){var Kh=Fv2.value,t_={};t_.languageCode=Kh.languageCode;t_.languageName=g.V8(Kh.languageName);if(Kh.translationSourceTrackIndices){t_.translationSourceTrackIndices= [];for(var Irz=g.N(Kh.translationSourceTrackIndices),GUf=Irz.next();!GUf.done;GUf=Irz.next())t_.translationSourceTrackIndices.push(GUf.value)}if(Kh.excludeAudioTrackIndices){t_.excludeAudioTrackIndices=[];for(var C92=g.N(Kh.excludeAudioTrackIndices),Kv2=C92.next();!Kv2.done;Kv2=C92.next())t_.excludeAudioTrackIndices.push(Kv2.value)}this.fh.push(t_)}this.u6=[];if(kt.defaultTranslationSourceTrackIndices)for(var r$2=g.N(kt.defaultTranslationSourceTrackIndices),yrp=r$2.next();!yrp.done;yrp=r$2.next())this.u6.push(yrp.value); this.AA=!!kt.contribute&&!!kt.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.iZ=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&z2L(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var tIx;this.compositeLiveIngestionOffsetToken= (tIx=this.playerResponse.playbackTracking)==null?void 0:tIx.compositeLiveIngestionOffsetToken;var oyp;this.compositeLiveStatusToken=(oyp=this.playerResponse.playbackTracking)==null?void 0:oyp.compositeLiveStatusToken}Ls(this,O);O.queue_info&&(this.queueInfo=O.queue_info);var Z1A=O.hlsdvr;Z1A!=null&&(this.allowLiveDvr=Number(Z1A)===1?lo()?!0:n_&&xx<5?!1:!0:!1);this.adQueryId=O.ad_query_id||null;this.Ju||(this.Ju=O.encoded_ad_safety_reason||null);this.PQ=iE(this.PQ,O.infringe||O.muted);this.FXS=O.authkey; this.H1=O.authuser;this.mutedAutoplay=iE(this.mutedAutoplay,O&&O.playmuted);this.mutedAutoplayDurationMode=uE(this.mutedAutoplayDurationMode,O&&O.muted_autoplay_duration_mode);this.Fb=iE(this.Fb,O&&O.mutedautoplay);var ev=O.length_seconds;ev&&(this.lengthSeconds=typeof ev==="string"?S0(ev):ev);if(this.isAd()||this.F_||!g.wZ(g.Pv(this.bz)))this.endSeconds=uE(this.endSeconds,this.kC||O.end||O.endSeconds);else{var M8C=g.Pv(this.bz),PA=this.lengthSeconds;switch(M8C){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":PA> 30?this.limitedPlaybackDurationInSeconds=30:PA<30&&PA>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=PA*.2}}this.AR=F7(this.AR,O.itct);this.gD=iE(this.gD,O.is_live_destination);this.isLivePlayback=iE(this.isLivePlayback,O.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.vy();O.isUpcoming&&(this.isUpcoming=iE(this.isUpcoming,O.isUpcoming));this.q5=iE(this.q5,O.post_live_playback); this.Hq&&(this.q5=!1);this.isMdxPlayback=iE(this.isMdxPlayback,O.mdx);var pv=O.mdx_control_mode;pv&&(this.mdxControlMode=typeof pv==="number"?pv:S0(pv));this.isInlinePlaybackNoAd=iE(this.isInlinePlaybackNoAd,O.is_inline_playback_no_ad);this.mM=uE(this.mM,O.reload_count);this.reloadReason=F7(this.reloadReason,O.reload_reason);this.fL=iE(this.fL,O.show_content_thumbnail);this.cycToken=O.cyc||null;var VIA=Vh(O);Object.keys(VIA).length>0&&(this.W=VIA);this.xS=F7(this.xS,O.vvt);this.mdxEnvironment=F7(this.mdxEnvironment, O.mdx_environment);O.source_container_playlist_id&&(this.sourceContainerPlaylistId=O.source_container_playlist_id);O.serialized_mdx_metadata&&(this.serializedMdxMetadata=O.serialized_mdx_metadata);this.IZd=O.osig;this.eventId||(this.eventId=O.eventid);this.osid||(this.osid=O.osid);this.playlistId=F7(this.playlistId,O.list);O.index&&(this.playlistIndex=this.playlistIndex===void 0?uE(0,O.index):uE(this.playlistIndex,O.index));this.ek=O.pyv_view_beacon_url;this.bB=O.pyv_quartile25_beacon_url;this.uB= O.pyv_quartile50_beacon_url;this.BL=O.pyv_quartile75_beacon_url;this.Ob=O.pyv_quartile100_beacon_url;var frs=O.session_data;!this.ND&&frs&&(this.ND=OU(frs,"&").feature);this.isFling=uE(this.isFling?1:0,O.is_fling)===1;this.vnd=uE(this.vnd,O.vnd);this.forceAdsUrl=F7(this.forceAdsUrl,O.force_ads_url);this.FH=F7(this.FH,O.ctrl);this.lV=F7(this.lV,O.ytr);this.Ip=O.ytrcc;this.YK=O.ytrexp;this.fR=O.ytrext;this.d5=F7(this.d5,O.adformat);this.W8=F7(this.W8,O.attrib);this.slotPosition=uE(this.slotPosition, O.slot_pos);this.breakType=O.break_type;this.WD=iE(this.WD,O.ssrt);this.videoId=Ka(O)||this.videoId;this.j=F7(this.j,O.vss_credentials_token);this.SU=F7(this.SU,O.vss_credentials_token_type);this.Ie=iE(this.Ie,O.audio_only);this.Td=iE(this.Td,O.aac_high);this.oE=iE(this.oE,O.prefer_low_quality_audio);this.hO=iE(this.hO,O.uncap_inline_quality);this.Z("html5_enable_qoe_cat_list")?O.qoe_cat&&(this.Gm=this.Gm.concat(O.qoe_cat.split(","))):this.hD=F7(this.hD,O.qoe_cat);this.Hi=iE(this.Hi,O.download_media); var S0_=O.prefer_gapless;this.V=S0_!=null?iE(this.V,S0_):this.V?this.V:this.bz.preferGapless&&this.bz.supportsGaplessShorts();zps(this.playerResponse)&&this.OQ.push("ad");var Nx2=O.adaptive_fmts;Nx2&&(this.adaptiveFormats=Nx2,this.nJ("adpfmts",{},!0));var myL=O.allow_embed;myL&&(this.allowEmbed=Number(myL)===1);var EyW=O.backgroundable;EyW&&(this.backgroundable=Number(EyW)===1);var Dys=O.autonav;Dys&&(this.isAutonav=Number(Dys)===1);var ar2=O.autoplay;ar2&&(this.kq=this.LS=Number(ar2)===1);var vyL= O.iv_load_policy;vyL&&(this.annotationsLoadPolicy=lE(this.annotationsLoadPolicy,vyL,pb));var X8W=O.cc_lang_pref;X8W&&(this.captionsLanguagePreference=F7(X8W,this.captionsLanguagePreference));var Txx=O.cc_load_policy;Txx&&(this.tI=lE(this.tI,Txx,pb));var $yH;this.deviceCaptionsOn=($yH=O.device_captions_on)!=null?$yH:void 0;var MI2;this.Tz=(MI2=O.device_captions_lang_pref)!=null?MI2:"";var q0z;this.zr=(q0z=O.viewer_selected_caption_langs)!=null?q0z:[];if(!this.Z("html5_enable_ssap_entity_id")){var kxp= O.cached_load;kxp&&(this.Tm=iE(this.Tm,kxp))}if(O.dash==="0"||O.dash===0||O.dash===!1)this.l6=!0;var sX_=O.dashmpd;sX_&&(this.Y9=g.s9(sX_,{cpn:this.clientPlaybackNonce}));var b1z=O.delay;b1z&&(this.SG=S0(b1z));var wST=this.kC||O.end;if(this.Py?wST!=null:wST!=void 0)this.clipEnd=uE(this.clipEnd,wST);var WOL=O.fmt_list;WOL&&(this.Wd=WOL);O.heartbeat_preroll&&this.OQ.push("heartbeat");this.CR=-Math.floor(Math.random()*10);this.WV=-Math.floor(Math.random()*40);var A$0=O.is_listed;A$0&&(this.isListed= iE(this.isListed,A$0));var eHp=O.is_private;eHp&&(this.isPrivate=iE(this.isPrivate,eHp));var P9T=O.is_dni;P9T&&(this.Ud=iE(this.Ud,P9T));var p8_=O.dni_color;p8_&&(this.oT=F7(this.oT,p8_));var BxT=O.pipable;BxT&&(this.pipable=iE(this.pipable,BxT));this.jk=(this.vS=this.pipable&&this.bz.dc)&&!this.bz.showMiniplayerButton;var H1s=O.paid_content_overlay_duration_ms;H1s&&(this.paidContentOverlayDurationMs=S0(H1s));var xys=O.paid_content_overlay_text;xys&&(this.paidContentOverlayText=xys);var Uyz=O.url_encoded_fmt_stream_map; Uyz&&(this.yk=Uyz);var jXs=O.hls_formats;jXs&&(this.hlsFormats=jXs);var QXH=O.hlsvp;QXH&&(this.hlsvp=QXH);var BA=O.live_start_walltime;BA&&(this.D1J=typeof BA==="number"?BA:S0(BA));var HA=O.live_manifest_duration;HA&&(this.Bi=typeof HA==="number"?HA:S0(HA));var LOT=O.player_params;LOT&&(this.playerParams=LOT);var Y0T=O.partnerid;Y0T&&(this.partnerId=uE(this.partnerId,Y0T));var dy0=O.probe_url;dy0&&(this.probeUrl=iN(g.s9(dy0,{cpn:this.clientPlaybackNonce})));var I7W=O.pyv_billable_url;I7W&&JQf(I7W)&& (this.WQ=I7W);var C6T=O.pyv_conv_url;C6T&&JQf(C6T)&&(this.wF=C6T);vrH(this,O);this.startSeconds>0?this.Z("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.iZ||this.O$||O.start||O.startSeconds)&&this.nJ("lss",{css:this.startSeconds,pcss:this.iZ,iss:this.O$,ps:O.start||void 0,pss:O.startSeconds||void 0}):this.w5=this.startSeconds=uE(this.startSeconds,this.iZ||this.O$||O.start||O.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var hHH=O.live_utc_start;if(hHH!= null)this.liveUtcStartSeconds=Number(hHH);else{var rrB=this.startSeconds;rrB&&isFinite(rrB)&&rrB>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var zHs=O.utc_start_millis;zHs&&(this.liveUtcStartSeconds=Number(zHs)*.001)}var ny_=O.stream_time_start_millis;ny_&&(this.vY=Number(ny_)*.001);var tSW=this.O$||O.start;(this.Py?tSW==null||Number(O.resume)===1:tSW==void 0||O.resume=="1")||this.isLivePlayback||(this.clipStart=uE(this.clipStart, tSW));var c$x=O.url_encoded_third_party_media;c$x&&(this.Ff=g6(c$x));var opT=O.ypc_offer_button_formatted_text;if(opT){var OFs=JSON.parse(opT);this.VZ=OFs!=null?OFs:null;this.Zr=opT}var Rns=O.ypc_offer_button_text;Rns&&(this.wy=Rns);var Jy0=O.ypc_offer_description;Jy0&&(this.i$=Jy0);var gop=O.ypc_offer_headline;gop&&(this.OX=gop);var iFT=O.ypc_full_video_message;iFT&&(this.D2=iFT);var lhh=O.ypc_offer_id;lhh&&(this.HI=lhh);var uwL=O.ypc_buy_url;uwL&&(this.y3=uwL);var FuL=O.ypc_item_thumbnail;FuL&& (this.c_=FuL);var GaT=O.ypc_item_title;GaT&&(this.l7=GaT);var KuA=O.ypc_item_url;KuA&&(this.Ly=KuA);var yy2=O.ypc_vid;yy2&&(this.x4=yy2);O.ypc_overlay_timeout&&(this.X9=Number(O.ypc_overlay_timeout));var wPf=O.ypc_trailer_player_vars;wPf&&(this.FB=JF(wPf));var IhH=O.ypc_original_itct;IhH&&(this.ODz=IhH);this.oU=F7(this.oU,O.ucid);O.baseUrl&&(this.J.baseUrl=O.baseUrl);O.uid&&(this.J.uid=O.uid);O.oeid&&(this.J.oeid=O.oeid);O.ieid&&(this.J.ieid=O.ieid);O.ppe&&(this.J.ppe=O.ppe);O.engaged&&(this.J.engaged= O.engaged);O.subscribed&&(this.J.subscribed=O.subscribed);this.J.focEnabled=iE(this.J.focEnabled,O.focEnabled);this.J.rmktEnabled=iE(this.J.rmktEnabled,O.rmktEnabled);this.sL=O.storyboard_spec||null;this.iy=O.live_storyboard_spec||null;this.bO=O.iv_endscreen_url||null;this.Pu=iE(this.Pu,O.ypc_license_checker_module);this.Wn=iE(this.Wn,O.ypc_module);this.lc=iE(this.lc,O.ypc_clickwrap_module);this.Wn&&this.OQ.push("ypc");this.lc&&this.OQ.push("ypc_clickwrap");this.jI={video_id:O.video_id,eventid:O.eventid, cbrand:O.cbrand,cbr:O.cbr,cbrver:O.cbrver,c:O.c,cver:O.cver,ctheme:O.ctheme,cplayer:O.cplayer,cmodel:O.cmodel,cnetwork:O.cnetwork,cos:O.cos,cosver:O.cosver,cplatform:O.cplatform,user_age:O.user_age,user_display_image:O.user_display_image,user_display_name:O.user_display_name,user_gender:O.user_gender,csi_page_type:O.csi_page_type,csi_service_name:O.csi_service_name,enablecsi:O.enablecsi,enabled_engage_types:O.enabled_engage_types};NOW(this,O);var Cbx=O.cotn;Cbx&&(this.cotn=Cbx);if(pO0(this))ys(this)&& (this.isLivePlayback&&this.Y9&&(this.nD=!0),this.Gd&&(this.bZ=!0));else if(BOh(this))this.nD=!0;else{var rys,tHp,oo2=((rys=this.playerResponse)==null?void 0:(tHp=rys.streamingData)==null?void 0:tHp.adaptiveFormats)||[];if(oo2.length>0)var a7=PJL(this,oo2);else{var ZFx=this.adaptiveFormats;if(ZFx&&!ys(this)){this.bz.D.B&&(Af=!0);var yD=Z4(ZFx),ZOf=this.hp,VH2=this.lengthSeconds,qUQ=this.isLivePlayback,vO=this.q5,wq=this.bz,k3C=Jw0(yD);if(qUQ||vO){var fhB=wq==null?void 0:wq.experiments,LD=new NO("", fhB,!0);LD.vy=!0;LD.isManifestless=!0;LD.S=!vO;LD.isLive=!vO;LD.q5=vO;for(var SqL=g.N(yD),VSp=SqL.next();!VSp.done;VSp=SqL.next()){var Iu=VSp.value,Nfs=a3(Iu,ZOf),oV=vm(Iu.url,Iu.sp,Iu.s),m92=oV.get("id");m92&&m92.includes("%7E")&&(LD.W=!0);var Eo0=void 0,s9b=(Eo0=fhB)==null?void 0:Eo0.Vh("html5_max_known_end_time_rebase"),b_b=Number(Iu.target_duration_sec)||5,WSb=Number(Iu.max_dvr_duration_sec)||14400,D9_=Number(oV.get("mindsq")||oV.get("min_sq")||"0"),ahW=Number(oV.get("maxdsq")||oV.get("max_sq")|| "0")||Infinity;LD.g2=LD.g2||D9_;LD.hj=LD.hj||ahW;var AFR=!uB(Nfs.mimeType);oV&&VP(LD,new ls(oV,Nfs,{KE:b_b,Qa:AFR,PA:WSb,g2:D9_,hj:ahW,Qq:300,q5:vO,kE:s9b}))}var voA=LD}else{if(k3C==="FORMAT_STREAM_TYPE_OTF"){var xh=VH2;xh=xh===void 0?0:xh;var Ch=new NO("",wq==null?void 0:wq.experiments,!1);Ch.duration=xh||0;for(var XPs=g.N(yD),f72=XPs.next();!f72.done;f72=XPs.next()){var rq=f72.value,SjT=a3(rq,ZOf,Ch.duration),N4p=vm(rq.url,rq.sp,rq.s);if(N4p)if(SjT.streamType==="FORMAT_STREAM_TYPE_OTF")VP(Ch,new us(N4p, SjT,"sq/0"));else{var eNt=e3(rq.init),Pl_=e3(rq.index);VP(Ch,new tf(N4p,SjT,eNt,Pl_))}}Ch.isOtf=!0;var Tfs=Ch}else{var Up=VH2;Up=Up===void 0?0:Up;var jv=new NO("",wq==null?void 0:wq.experiments,!1);jv.duration=Up||0;for(var $9A=g.N(yD),mRh=$9A.next();!mRh.done;mRh=$9A.next()){var tk=mRh.value,pWI=a3(tk,ZOf,jv.duration),B6k=g.e(e3(tk.init)),H_6=g.e(e3(tk.index)),MHB=vm(tk.url,tk.sp,tk.s);MHB&&VP(jv,new tf(MHB,pWI,B6k,H_6))}Tfs=jv}voA=Tfs}var qqB=voA;if(yD.length>0){var kas=yD[0];if(this.T().playerStyle=== "hangouts-meet"&&kas.url){var x5C=g.il(kas.url);this.XW=this.XW||Number(x5C.expire)}}var U5R=this.isLivePlayback&&!this.q5&&!this.Hq&&!this.isPremiere;this.Z("html5_live_head_playable")&&(!wr(this)&&U5R&&this.nJ("missingLiveHeadPlayable",{}),this.bz.SN==="yt"&&(qqB.Gd=!0));a7=qqB}else a7=null;this.nJ("pafmts",{isManifestFilled:!!a7})}if(a7){rr(this,a7);var s5T=!0}else s5T=!1;s5T?this.enableServerStitchedDai=this.enableServerStitchedDai&&IN(this):this.Y9&&(this.bz.SN==="yt"&&this.vy()&&this.Z("drm_manifestless_unplugged")&& this.Z("html5_deprecate_manifestful_fallback")?this.nJ("deprecateMflFallback",{}):this.nD=!0)}var EpL=O.adpings;EpL&&(this.dc=EpL?JF(EpL):null);var bFA=O.feature;bFA&&(this.Uk=bFA);var WuB=O.referrer;WuB&&(this.referrer=WuB);this.clientScreenNonce=F7(this.clientScreenNonce,O.csn);this.Tf=uE(this.Tf,O.root_ve_type);this.Hz=uE(this.Hz,O.kids_age_up_mode);this.Py||O.kids_app_info==void 0||(this.kidsAppInfo=O.kids_app_info);this.Py&&O.kids_app_info!=null&&(this.kidsAppInfo=O.kids_app_info);this.kx=iE(this.kx, O.upg_content_filter_mode);this.unpluggedFilterModeType=uE(this.unpluggedFilterModeType,O.unplugged_filter_mode_type);var AyB=O.unplugged_location_info;AyB&&(this.Re=AyB);var ens=O.unplugged_partner_opt_out;ens&&(this.RI=F7("",ens));this.tO=iE(this.tO,O.disable_watch_next);this.fI=F7(this.fI,O.internal_ip_override);this.nk=!!O.is_yto_interstitial;(this.interstitials.length||this.nk)&&this.OQ.push("yto");var PbT=O.Ea;PbT&&(this.Ea=PbT);if(this.Z("html5_persist_csi_timer"))this.SN=F7(this.SN,O.csi_timer); else{var pPA;this.SN=(pPA=O.csi_timer)!=null?pPA:""}O.watchUrl&&(this.watchUrl=O.watchUrl);var ZO=O.watch_endpoint;this.Z("html5_attach_watch_endpoint_ustreamer_config")&&ZO&&AvA(this,ZO);if(ZO==null?0:ZO.ustreamerConfig)this.Z7=Gj(ZO.ustreamerConfig);var BfW,HFB,x9A=ZO==null?void 0:(BfW=ZO.loggingContext)==null?void 0:(HFB=BfW.qoeLoggingContext)==null?void 0:HFB.serializedContextData;x9A&&(this.HDQ=x9A);g.$X(this.bz)&&this.bz.oa&&(this.embedsRct=F7(this.embedsRct,O.rct),this.embedsRctn=F7(this.embedsRctn, O.rctn));this.sO=this.sO||!!O.pause_at_start;O.default_active_source_video_id&&(this.defaultActiveSourceVideoId=O.default_active_source_video_id)}; g.f.T=function(){return this.bz}; g.f.Z=function(O){return this.bz.Z(O)}; g.f.QD=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.f.hasSupportedAudio51Tracks=function(){var O;return!((O=this.Xw)==null||!O.KJ)}; g.f.getUserAudio51Preference=function(){var O=1;nb(this.bz)&&this.Z("html5_ytv_surround_toggle_default_off")?O=0:g.dm(this.bz)&&this.isLivePlayback&&this.lC()&&(O=0);var R;return(R=g.Wf("yt-player-audio51"))!=null?R:O}; g.f.Wm=function(){this.jN()||(this.L.S||this.L.unsubscribe("refresh",this.Wm,this),this.wG(-1))}; g.f.wG=function(O){if(!this.isLivePlayback||!this.D||this.D.flavor!=="fairplay"){var R=iXH(this.L,this.OU);if(R.length>0){for(var J=g.N(R),l=J.next();!l.done;l=J.next())l=l.value,l.startSecs=Math.max(l.startSecs,this.q7()),this.Z("html5_cuepoint_identifier_logging")&&l.event==="start"&&this.nJ("cuepoint",{pubCue:l.identifier,segNum:O});this.publish("cuepointupdated",R,O);this.OU+=R.length;if(IN(this)&&this.bz.DA())for(R=g.N(R),J=R.next();!J.done;J=R.next())J=J.value,this.nJ("cuepoint",{segNum:O,event:J.event, startSecs:J.startSecs,id:J.identifier.slice(-16)}),J.event==="start"&&(J=J.startSecs,this.nI.start=this.Iu,this.nI.end=J+3)}}}; g.f.J$=function(){this.jN()||(this.loading=!1,this.publish("dataloaded"))}; g.f.lC=function(){return this.V$!==void 0?this.V$:this.V$=!!this.hp||!!this.L&&D0(this.L)}; g.f.tV=function(O){var R=this;if(this.jN())return kj();this.m1=this.KJ=this.B=null;dr(this,"html5_high_res_logging_always")&&(this.bz.xe=!0);return j7A(this,O).then(void 0,function(){return LoH(R,O)}).then(void 0,function(){return YM2(R)}).then(void 0,function(){return h9W(R)})}; g.f.FO=function(O){this.B=O;Q7W(this,this.B.getAvailableAudioTracks());if(this.B){O=g.N(this.B.videoInfos);for(var R=O.next();!R.done;R=O.next()){R=R.value;var J=R.containerType;J!==0&&(this.i6[J]=R.id)}}D4(this);if(this.D&&this.B&&this.B.videoInfos&&!(this.B.videoInfos.length<=0)&&(O=J1(this.B.videoInfos[0]),this.D.flavor==="fairplay"!==O))for(R=g.N(this.Ek),J=R.next();!J.done;J=R.next())if(J=J.value,O===(J.flavor==="fairplay")){this.D=J;break}}; g.f.wK=function(){if(this.cotn)return null;var O=g.XV(this.bz)||this.Z("web_l3_storyboard");if(!this.tK)if(this.playerResponse&&this.playerResponse.storyboards){var R=this.playerResponse.storyboards,J=R.playerStoryboardSpecRenderer;J&&J.spec?this.tK=new Bx(J.spec,this.lengthSeconds,void 0,!1,O):(R=R.playerLiveStoryboardSpecRenderer)&&R.spec&&this.L&&(J=WHH(this.L.L).index)&&(this.tK=new xI(R.spec,this.L.isLive,J,O))}else this.sL?this.tK=new Bx(this.sL,this.lengthSeconds,void 0,!1,O):this.iy&&this.L&& (R=WHH(this.L.L).index)&&(this.tK=new xI(this.iy,this.L.isLive,R,O));return this.tK}; g.f.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var O=this.playerResponse.storyboards;return(O=O.playerStoryboardSpecRenderer||O.playerLiveStoryboardSpecRenderer)&&O.spec||null}return this.sL||this.iy}; g.f.N5=function(){return this.L&&!isNaN(this.L.N5())?this.L.N5():IN(this)?0:this.lengthSeconds}; g.f.q7=function(){return this.L&&!isNaN(this.L.q7())?this.L.q7():0}; g.f.getPlaylistSequenceForTime=function(O){if(this.L&&this.S){var R=this.L.L[this.S.id];if(!R)return null;var J=R.index.F8(O);R=R.index.getStartTime(J);return{sequence:J,elapsed:Math.floor((O-R)*1E3)}}return null}; g.f.Dh=function(){return!this.jN()&&!(!this.videoId&&!this.Ff)}; g.f.bF=function(){var O,R,J;return!!this.adaptiveFormats||!!((O=this.playerResponse)==null?0:(R=O.streamingData)==null?0:(J=R.adaptiveFormats)==null?0:J.length)}; g.f.isLoaded=function(){return Qh(this)&&!this.nD&&!this.bZ}; g.f.h1=function(O){O||(O="hqdefault.jpg");var R=this.W[O];return R||this.bz.Hq||O==="pop1.jpg"||O==="pop2.jpg"||O==="sddefault.jpg"||O==="hq720.jpg"||O==="maxresdefault.jpg"?R:Lb(this.bz,this.videoId,O)}; g.f.vy=function(){return this.isLivePlayback||this.q5||this.Hq||!(!this.liveUtcStartSeconds||!this.Bi)}; g.f.isOtf=function(){return!!this.L&&(this.L.isOtf||!this.q5&&!this.isLivePlayback&&this.L.S)}; g.f.getAvailableAudioTracks=function(){return this.B?this.B.getAvailableAudioTracks().length>0?this.B.getAvailableAudioTracks():this.LL||[]:[]}; g.f.getAudioTrack=function(){var O=this;if(this.N&&!J1(this.N)){var R=g.rC(this.getAvailableAudioTracks(),function(u){return u.id===O.N.id}),J; if(this.Z("html5_sabr_skip_client_audio_init_selection")&&!R&&((J=this.N.Ef)==null?0:J.id)){var l=this.N.Ef.id;R=g.rC(this.getAvailableAudioTracks(),function(u){return u.Ef.id===l}); this.nJ("nat",{id:this.N.id,track:!!R})}return R||this.gK}if(this.LL){if(!this.mH)for(R=g.N(this.LL),J=R.next();!J.done;J=R.next())if(J=J.value,J.Ef.getIsDefault()){this.mH=J;break}return this.mH||this.gK}return this.gK}; g.f.getPlayerResponse=function(){return this.playerResponse}; g.f.getWatchNextResponse=function(){return this.Qh}; g.f.getHeartbeatResponse=function(){return this.Mh}; g.f.DQ=function(){return this.watchUrl?this.watchUrl:this.bz.getVideoUrl(this.videoId)}; g.f.eM=function(){return!!this.L&&(Yw0(this.L)||d8s(this.L)||hts(this.L))}; g.f.getEmbeddedPlayerResponse=function(){return this.ZR}; g.f.MU=function(){return(this.eventLabel||this.bz.N1)==="shortspage"}; g.f.isAd=function(){return this.Su||!!this.adFormat}; g.f.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.f.Zv=function(){var O,R,J;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((O=this.playerResponse)==null?0:(R=O.playerConfig)==null?0:(J=R.daiConfig)==null?0:J.ssaEnabledPlayback)}; g.f.bI=function(){return SGf(this)?this.I$:this.Pu||this.a8}; g.f.Fo=function(){return this.Wn||this.a8}; g.f.zz=function(){return dr(this,"html5_samsung_vp9_live")}; g.f.nJ=function(O,R,J){this.publish("ctmp",O,R,J)}; g.f.rT=function(O,R,J){this.publish("ctmpstr",O,R,J)}; g.f.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.f.getGetAdBreakContext=function(O,R){O=O===void 0?NaN:O;R=R===void 0?NaN:R;var J={isSabr:FD(this)},l,u=(l=this.getHeartbeatResponse())==null?void 0:l.adBreakHeartbeatParams;u&&(J.adBreakHeartbeatParams=u);if(this.Z("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.L&&!isNaN(O)&&!isNaN(R)){R=O-R;for(var F in this.L.L)if(l=this.L.L[F],l.info.ke()||l.info.NT())if(l=l.index,l.isLoaded()){F=l.F8(R);l=l.yI(F)+R-l.getStartTime(F);this.nJ("gabc",{t:O.toFixed(3),mt:R.toFixed(3),sg:F,igt:l.toFixed(3)}); J.livePlaybackPosition={utcTimeMillis:""+(l*1E3).toFixed(0)};break}}return J}; g.f.isEmbedsShortsMode=function(O,R){if(!g.$X(this.bz)||(this.bz.iz||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||R)return!1;var J,l;return!!(((J=this.embeddedPlayerConfig)==null?0:(l=J.embeddedPlayerFlags)==null?0:l.isShortsExperienceEligible)&&O.width<=O.height)}; g.f.eN=function(){g.y8.prototype.eN.call(this);this.dc=null;delete this.jD;delete this.accountLinkingConfig;delete this.L;this.B=this.Mh=this.playerResponse=this.Qh=null;this.yk=this.adaptiveFormats="";delete this.botguardData;this.sQ=this.suggestions=this.l2=null;this.sabrContextUpdates.clear()};var X7H={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},TMs={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},asB={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},m20={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"},D2B={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},ELp={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"},vLH={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.S(Ff,g.p);g.f=Ff.prototype;g.f.handleExternalCall=function(O,R,J){var l=this.state.J[O],u=this.state.V[O],F=l;if(u)if(J&&R2(J,VOC))F=u;else if(!l)throw Error('API call from an untrusted origin: "'+J+'"');this.logApiCall(O,J);if(F){J=!1;l=g.N(R);for(u=l.next();!u.done;u=l.next())if(String(u.value).includes("javascript:")){J=!0;break}J&&g.Aa(Error('Dangerous call to "'+O+'" with ['+R+"]."));return F.apply(this,R)}throw Error('Unknown API method: "'+O+'".');}; g.f.logApiCall=function(O,R,J){var l=this.app.T();l.Gm&&!this.state.W.has(O)&&(this.state.W.add(O),g.wj("webPlayerApiCalled",{callerUrl:l.loaderUrl,methodName:O,origin:R||void 0,playerStyle:l.playerStyle||void 0,embeddedPlayerMode:l.iz,errorCode:J}))}; g.f.publish=function(O){var R=g.As.apply(1,arguments);this.state.B.publish.apply(this.state.B,[O].concat(g.X(R)));if(O==="videodatachange"||O==="resize"||O==="cardstatechange")this.state.S.publish.apply(this.state.S,[O].concat(g.X(R))),this.state.N.publish.apply(this.state.N,[O].concat(g.X(R)))}; g.f.tR=function(O){var R=g.As.apply(1,arguments);this.state.B.publish.apply(this.state.B,[O].concat(g.X(R)));this.state.S.publish.apply(this.state.S,[O].concat(g.X(R)))}; g.f.P3=function(O){var R=g.As.apply(1,arguments);this.state.B.publish.apply(this.state.B,[O].concat(g.X(R)));this.state.S.publish.apply(this.state.S,[O].concat(g.X(R)));this.state.N.publish.apply(this.state.N,[O].concat(g.X(R)))}; g.f.qc=function(O){var R=g.As.apply(1,arguments);this.state.B.publish.apply(this.state.B,[O].concat(g.X(R)));this.state.S.publish.apply(this.state.S,[O].concat(g.X(R)));this.state.N.publish.apply(this.state.N,[O].concat(g.X(R)));this.state.D.publish.apply(this.state.D,[O].concat(g.X(R)))}; g.f.Z=function(O){return this.app.T().Z(O)}; g.f.eN=function(){if(this.state.element){var O=this.state.element,R;for(R in this.state.L)this.state.L.hasOwnProperty(R)&&(O[R]=null);this.state.element=null}g.p.prototype.eN.call(this)};g.S(II,g.X8);II.prototype.publish=function(O){var R=g.As.apply(1,arguments);if(this.D.has(O))return this.D.get(O).push(R),!0;var J=!1;try{for(R=[R],this.D.set(O,R);R.length;)J=g.X8.prototype.publish.call.apply(g.X8.prototype.publish,[this,O].concat(g.X(R.shift())))}finally{this.D.delete(O)}return J};g.S(Co,g.p);Co.prototype.eN=function(){this.D.dispose();this.N.dispose();this.S.dispose();this.B.dispose();this.W=this.L=this.V=this.J=this.j=void 0};var W9B=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.S(t0,Ff);g.f=t0.prototype;g.f.getApiInterface=function(){return Array.from(this.state.j)}; g.f.Wk=function(O,R){this.state.D.subscribe(O,R)}; g.f.S_q=function(O,R){this.state.D.unsubscribe(O,R)}; g.f.getPlayerState=function(O){return XcL(this.app,O)}; g.f.wV=function(){return XcL(this.app)}; g.f.Isd=function(O,R,J){VM(this)&&(pJ(this.app,!0,1),xY(this.app,O,R,J,1))}; g.f.getCurrentTime=function(O,R,J){var l=this.getPlayerState(O);if(this.app.getAppState()===2&&l===5){var u;return((u=this.app.getVideoData())==null?void 0:u.startSeconds)||0}return this.Z("web_player_max_seekable_on_ended")&&l===0?kY(this.app,O):O?this.app.getCurrentTime(O,R,J):this.app.getCurrentTime(O)}; g.f.Mz=function(){return this.app.getCurrentTime(1)}; g.f.gV=function(){var O=this.app.yI(1);return isNaN(O)?this.getCurrentTime(1):O}; g.f.Rs=function(){return this.app.getDuration(1)}; g.f.ub=function(O,R){O=g.TY(Math.floor(O),0,100);isFinite(O)&&Mw(this.app,{volume:O,muted:this.isMuted()},R)}; g.f.Kzu=function(O){this.ub(O,!1)}; g.f.jX=function(O){Mw(this.app,{muted:!0,volume:this.getVolume()},O)}; g.f.uhQ=function(){this.jX(!1)}; g.f.AS=function(O){Z9(this.app)&&!this.Z("embeds_enable_emc3ds_muted_autoplay")||Mw(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},O)}; g.f.EWq=function(){Z9(this.app)&&this.Z("embeds_enable_emc3ds_muted_autoplay")||this.AS(!1)}; g.f.getPlayerMode=function(){var O={};this.app.getVideoData().Ud&&(O.pfp={enableIma:g.zF(this.app.getVideoData())&&this.app.fG().allowImaMonetization,autoplay:P$(this.app.fG()),mutedAutoplay:this.app.fG().mutedAutoplay});return O}; g.f.g6=function(){var O=this.app.getPresentingPlayerType();if(O===2&&!this.app.WW()){var R=vr(this.app.eG());if(!ssb(R)||bx4(R))return}(R=this.app.Xf().ac)?R.playVideo():this.app.playVideo(O)}; g.f.dcJ=function(){pJ(this.app,!0,1);this.g6()}; g.f.pauseVideo=function(O){var R=this.app.getPresentingPlayerType();if(R!==2||this.app.WW()||ssb(vr(this.app.eG()))){var J=this.app.Xf().ac;J?J.pauseVideo():this.app.pauseVideo(R,O)}}; g.f.wfS=function(){var O=this.app,R=!1;O.Ru.d5&&(O.Zg.publish("pageTransition"),R=!0);O.stopVideo(R)}; g.f.clearVideo=function(){}; g.f.getAvailablePlaybackRates=function(){var O=this.app.T();return O.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(O.N?O.ancestorOrigins[0]:window.location.origin)||O.Uk?Yob:O.supportsVarispeedExtendedFeatures?dct:O.Z("web_remix_allow_up_to_3x_playback_rate")&&g.p9(O)?heb:$m:[1]}; g.f.getPlaybackQuality=function(O){return(O=this.app.BW(O))?O.getPlaybackQuality():"unknown"}; g.f.mTu=function(){}; g.f.getAvailableQualityLevels=function(O){return(O=this.app.BW(O))?(O=g.jO(O.Jc(),function(R){return R.quality}),O.length&&(O[0]==="auto"&&O.shift(),O=O.concat(["auto"])),O):[]}; g.f.C5=function(){return this.getAvailableQualityLevels(1)}; g.f.iq=function(){return this.Zb()}; g.f.hk=function(){return 1}; g.f.getVideoLoadedFraction=function(O){return this.app.getVideoLoadedFraction(O)}; g.f.Zb=function(){return this.getVideoLoadedFraction()}; g.f.YN=function(){return 0}; g.f.getSize=function(){var O=this.app.cq().getPlayerSize();return{width:O.width,height:O.height}}; g.f.setSize=function(){this.app.cq().resize()}; g.f.loadVideoById=function(O,R,J,l){if(!O)return!1;O=rL(O,R,J);return this.app.loadVideoByPlayerVars(O,l)}; g.f.m1N=function(O,R,J){O=this.loadVideoById(O,R,J,1);pJ(this.app,O,1)}; g.f.cueVideoById=function(O,R,J,l){O=rL(O,R,J);this.app.cueVideoByPlayerVars(O,l)}; g.f.AB=function(O,R,J){this.cueVideoById(O,R,J,1)}; g.f.loadVideoByUrl=function(O,R,J,l){O=b4x(O,R,J);return this.app.loadVideoByPlayerVars(O,l)}; g.f.VNq=function(O,R,J){O=this.loadVideoByUrl(O,R,J,1);pJ(this.app,O,1)}; g.f.cueVideoByUrl=function(O,R,J,l){O=b4x(O,R,J);this.app.cueVideoByPlayerVars(O,l)}; g.f.tB=function(O,R,J){this.cueVideoByUrl(O,R,J,1)}; g.f.Q8=function(){var O=this.app.T();if(O.Hq)return"";var R=this.app.fG(),J=void 0;R.isLivePlayback||(J=Math.floor(this.app.getCurrentTime(1)));return O.getVideoUrl(R.videoId,this.getPlaylistId()||void 0,J)}; g.f.f5=function(){return this.app.getDebugText()}; g.f.getVideoEmbedCode=function(){var O=this.app.T();if(O.Hq)return"";var R=this.app.fG(),J=O.getVideoEmbedCode;R=R.isPrivate?"":R.title;var l=this.app.fG().videoId;return J.call(O,R,l,this.app.cq().getPlayerSize(),this.getPlaylistId()||void 0)}; g.f.Pk=function(O,R,J){return WmH(this.app,O,R,J)}; g.f.removeCueRange=function(O){return ex2(this.app,O)}; g.f.loadPlaylist=function(O,R,J,l){this.app.loadPlaylist(O,R,J,l)}; g.f.U11=function(O,R,J,l){this.loadPlaylist(O,R,J,l);pJ(this.app,!0,1)}; g.f.cuePlaylist=function(O,R,J,l){this.app.cuePlaylist(O,R,J,l)}; g.f.nextVideo=function(O,R){this.app.nextVideo(O,R)}; g.f.B5X=function(){this.nextVideo();pJ(this.app,!0,1)}; g.f.previousVideo=function(O){this.app.previousVideo(O)}; g.f.A3h=function(){this.previousVideo();pJ(this.app,!0,1)}; g.f.playVideoAt=function(O){this.app.playVideoAt(O)}; g.f.ZYu=function(O){this.playVideoAt(O);pJ(this.app,!0,1)}; g.f.setShuffle=function(O){var R=this.app.getPlaylist();R&&R.setShuffle(O)}; g.f.setLoop=function(O){var R=this.app.getPlaylist();R&&(R.loop=O)}; g.f.bq=function(){var O=this.app.getPlaylist();if(!O)return null;for(var R=[],J=0;J=400)if(O=g.e(this.fG()),this.X.T().Z("client_respect_autoplay_switch_button_renderer"))O=!!O.autoplaySwitchButtonRenderer;else{var R,J,l,u;O=!!((R=O.getWatchNextResponse())==null?0:(J=R.contents)==null?0:(l=J.twoColumnWatchNextResults)==null?0:(u=l.autoplay)==null?0:u.autoplay)!==!1}if(O)this.L||(this.L=!0,this.M9(this.L),this.X.T().Z("web_player_autonav_toggle_always_listen")||uy0(this), R=g.e(this.fG()),this.JW(R.autonavState),this.X.logVisibility(this.element,this.L));else if(this.L=!1,this.M9(this.L),!this.X.T().Z("web_player_autonav_toggle_always_listen"))for(this.X.T().Z("web_player_autonav_toggle_always_listen"),R=g.N(this.S),J=R.next();!J.done;J=R.next())this.uK(J.value)}; g.f.JW=function(O){Gyx(this)?this.isChecked=O!==1:((O=O!==1)||(g.Hf(),O=g.S8("web_autonav_allow_off_by_default")&&!g.xs(0,141)&&g.YB("AUTONAV_OFF_BY_DEFAULT")?!1:!g.xs(0,140)),this.isChecked=O);FqL(this)}; g.f.onClick=function(){this.isChecked=!this.isChecked;this.X.TU(this.isChecked?2:1);FqL(this);if(Gyx(this)){var O=g.e(this.fG()).autoplaySwitchButtonRenderer;this.isChecked&&(O==null?0:O.onEnabledCommand)?this.X.tR("innertubeCommand",O.onEnabledCommand):!this.isChecked&&(O==null?0:O.onDisabledCommand)&&this.X.tR("innertubeCommand",O.onDisabledCommand)}this.X.logClick(this.element)}; g.f.getValue=function(){return this.isChecked}; g.f.fG=function(){return this.X.getVideoData(1)};g.S(Kqh,ze);g.S(iY,g.Lo);iY.prototype.onClick=function(){this.enabled&&(lY(this,!this.checked),this.publish("select",this.checked))}; iY.prototype.getValue=function(){return this.checked}; iY.prototype.setEnabled=function(O){(this.enabled=O)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var wUL=["en-CA","en","es-MX","fr-CA"];g.S(IE,iY);IE.prototype.au=function(O){O?this.L||(this.Fh.jr(this),this.L=!0):this.L&&(this.Fh.GS(this),this.L=!1);this.L&&lY(this,vTB())}; IE.prototype.N=function(){g.KM(this.element,"ytp-menuitem-highlight-transition-enabled")}; IE.prototype.B=function(O){var R=vTB();O!==R&&(R=g.Hf(),jm(190,O),jm(192,!0),R.save(),this.X.tR("cinematicSettingsToggleChange",O))}; IE.prototype.eN=function(){this.L&&this.Fh.GS(this);iY.prototype.eN.call(this)};g.S(Cj,ze);Cj.prototype.updateCinematicSettings=function(O){this.L=O;var R;(R=this.menuItem)==null||R.au(O);this.api.publish("onCinematicSettingsVisibilityChange",O)};g.S(rU2,ze);g.S(rp,ze);rp.prototype.setCreatorEndscreenVisibility=function(O){var R;(R=MK(this.api.eG()))==null||R.M9(O)}; rp.prototype.L=function(O){function R(l){l==="creatorendscreen"&&(l=MK(J.api.eG()))&&l.UTQ(J.hideButton)} var J=this;this.hideButton=O;this.events.U(this.api,"modulecreated",R);R("creatorendscreen")};g.S(tl,iY);tl.prototype.N=function(O){this.B(O?1:0)}; tl.prototype.S=function(){var O=this.hasDrcAudioTrack(),R=this.L()===1&&O;lY(this,R);this.setEnabled(O)}; tl.prototype.eN=function(){this.Fh.GS(this);iY.prototype.eN.call(this)};g.S(oE,ze);oE.prototype.getDrcUserPreference=function(){return this.L}; oE.prototype.setDrcUserPreference=function(O){g.bE("yt-player-drc-pref",O,31536E3);O!==this.L&&(this.L=O,this.updateEnvironmentData(),this.S()&&this.api.Nb())}; oE.prototype.updateEnvironmentData=function(){this.api.T().Ie=this.L===1}; oE.prototype.S=function(){var O,R,J=(O=this.api.getVideoData())==null?void 0:(R=O.B)==null?void 0:R.L;if(!J)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.Z("mta_drc_mutual_exclusion_removal")){var l,u,F=(l=this.api.wr())==null?void 0:(u=l.Ef)==null?void 0:u.id;return RT(J,function(G){var y;return G.audio.L&&((y=G.Ef)==null?void 0:y.id)===F})}return RT(J,function(G){var y; return((y=G.audio)==null?void 0:y.L)===!0})};g.S(ZM,ze);ZM.prototype.onVideoDataChange=function(){var O=this,R=this.api.getVideoData();this.api.XK("embargo",1);var J=R==null?void 0:R.LI.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(J==null?0:J.length)?okW(this,J.filter(function(l){return tCp(O,l)})):(R==null?0:R.cueRanges)&&okW(this,R.cueRanges.filter(function(l){return tCp(O,l)}))}; ZM.prototype.S=function(O){return O.embargo!==void 0}; ZM.prototype.eN=function(){ze.prototype.eN.call(this);this.L={}};g.S(Vo,ze); Vo.prototype.addEmbedsConversionTrackingParams=function(O){var R=this.api.T(),J=R.widgetReferrer,l=R.zJ,u=this.L,F="",G=R.getWebPlayerContextConfig();G&&(F=G.embedsIframeOriginParam||"");J.length>0&&(O.embeds_widget_referrer=J);l.length>0&&(O.embeds_referring_euri=l);R.N&&F.length>0&&(O.embeds_referring_origin=F);G&&G.embedsFeature&&(O.feature=G.embedsFeature);u.length>0&&(R.Z("embeds_web_enable_lite_experiment_control_arm_logging")?u.unshift(28572):g.wZ(g.Pv(R))&&u.unshift(159628),R=u.join(","),R= g.Q3()?R:g.J8(R,4),O.source_ve_path=R);this.L.length=0};g.S(ZKB,ze);g.S(VCW,ze);g.S(fj,g.p);fj.prototype.eN=function(){g.p.prototype.eN.call(this);this.L=null;this.S&&this.S.disconnect()};g.S(SPL,ze);g.S(Si,g.L);Si.prototype.show=function(){g.L.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Si.prototype.stopTimer=function(){this.L&&(this.L.dispose(),this.L=null)}; Si.prototype.onVideoDataChange=function(O){var R,J,l=(R=this.api.getVideoData())==null?void 0:(J=R.getPlayerResponse())==null?void 0:J.playabilityStatus;l&&(R=NG_(l),g.d(this.api.getPlayerStateObject(),128)||O==="dataloaderror"||!R?(this.S=0,this.stopTimer(),this.hide()):(O=(R.remainingTimeSecs||0)*1E3,O>0&&(this.show(),this.updateValue("label",$k(R.label)),Ekx(this,O))))}; Si.prototype.eN=function(){this.stopTimer();g.L.prototype.eN.call(this)};g.S(Dh2,ze);g.S(NM,g.L);NM.prototype.onClick=function(){this.Zg.logClick(this.element);this.Zg.tR("onFullerscreenEduClicked")}; NM.prototype.au=function(){this.Zg.isFullscreen()?this.L?this.fade.hide():this.fade.show():this.hide();this.Zg.logVisibility(this.element,this.Zg.isFullscreen()&&!this.L)};g.S(mn,ze);mn.prototype.updateFullerscreenEduButtonSubtleModeState=function(O){var R;(R=this.L)!=null&&(g.wI(R.element,"ytp-fullerscreen-edu-button-subtle",O),O&&!R.S&&(R.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),D9(R.Zg,R.element,R),R.S=!0))}; mn.prototype.updateFullerscreenEduButtonVisibility=function(O){var R;(R=this.L)!=null&&(R.L=O,R.au())};g.S(aiL,g.L);g.S(TGp,ze);g.S(EH,ze);EH.prototype.getSphericalProperties=function(){var O=g.ke(this.api.eG());return O?O.getSphericalProperties():{}}; EH.prototype.setSphericalProperties=function(O){if(O){var R=g.ke(this.api.eG());R&&R.setSphericalProperties(O,!0)}};g.S(DM,ze);g.f=DM.prototype;g.f.createClientVe=function(O,R,J,l){this.api.createClientVe(O,R,J,l===void 0?!1:l)}; g.f.createServerVe=function(O,R,J){this.api.createServerVe(O,R,J===void 0?!1:J)}; g.f.setTrackingParams=function(O,R){this.api.setTrackingParams(O,R)}; g.f.logClick=function(O,R){this.api.logClick(O,R)}; g.f.logVisibility=function(O,R,J){this.api.logVisibility(O,R,J)}; g.f.hasVe=function(O){return this.api.hasVe(O)}; g.f.destroyVe=function(O){this.api.destroyVe(O)};var MCz=!1;vF.prototype.setPlaybackRate=function(O){this.playbackRate=Math.max(1,O)}; vF.prototype.getPlaybackRate=function(){return this.playbackRate};qM.prototype.jm=function(O){var R=g.g3(O.info.L.info,this.Dg.vy),J=O.info.XQ+this.N,l=O.info.startTime*1E3;if(this.policy.Gd)try{l=this.policy.Gd?g.Kp(O)*1E3:O.info.startTime*1E3}catch(G){Math.random()>.99&&this.logger&&(l=az(O.L).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:O.info.er(),encodedDataView:g.RK(l,4)})),l=O.info.startTime*1E3}var u=O.info.clipId,F=this.policy.Gd?g.k4W(O)*1E3:O.info.duration*1E3;this.policy.Gd&&(l<0||F<0)&&(this.logger&&(this.logger({missingSegInfo:O.info.er(), startTimeMs:l,durationMs:F}),this.policy.FB||(l<0&&(l=O.info.startTime*1E3),F<0&&(F=O.info.duration*1E3))),this.policy.FB&&(l<0&&(l=O.info.startTime*1E3),F<0&&(F=O.info.duration*1E3)));return{formatId:R,XQ:J,startTimeMs:l,clipId:u,gb:F}}; qM.prototype.qd=function(O){this.timestampOffset=O};sH.prototype.seek=function(O,R){O!==this.L&&(this.seekCount=0);this.L=O;var J=this.videoTrack.S,l=this.audioTrack.S,u=this.audioTrack.yd,F=hC2(this,this.videoTrack,O,this.videoTrack.yd,R);R=hC2(this,this.audioTrack,this.policy.CG?O:F,u,R);O=Math.max(O,F,R);this.D=!0;this.Dg.isManifestless&&(jYf(this,this.videoTrack,J),jYf(this,this.audioTrack,l));return O}; sH.prototype.isSeeking=function(){return this.D}; sH.prototype.Fj=function(O){this.B=O}; var dhB=2/24;var cUz=0;g.f=ji.prototype;g.f.Wt=function(){this.W=this.now();je2(this.B3,this.W);this.Of.Wt()}; g.f.rX=function(O,R){var J=this.policy.S?(0,g.Q)():0;Qo(this,O,R);O-this.j<10&&this.S>0||this.MJ(O,R);this.Of.rX(O,R);this.policy.S&&(O=(0,g.Q)()-J,this.w5+=O,this.sQ=Math.max(O,this.sQ))}; g.f.MJ=function(O,R){var J=(O-this.j)/1E3,l=R-this.B;this.Md||(Sj(this.B3,J,l),this.gA(J,l));this.j=O;this.B=R}; g.f.bH=function(){this.iz&&O3L(this);this.Of.bH()}; g.f.IY=function(O){this.iz||(this.iz=this.D-this.d5+O,this.zJ=this.D,this.Py=this.J)}; g.f.Rk=function(O,R){O=O===void 0?this.J:O;R=R===void 0?this.D:R;this.S>0||(this.V=O,this.S=R,this.SN=this.isActive=!0)}; g.f.fU=function(){return this.vH||2}; g.f.BX=function(){}; g.f.zG=function(){var O,R={rn:this.requestNumber,rt:(this.J-this.L).toFixed(),lb:this.D,stall:(1E3*this.N).toFixed(),ht:(this.W-this.L).toFixed(),elt:(this.V-this.L).toFixed(),elb:this.S,d:(O=this.N1)==null?void 0:O.SQ()};this.url&&$hp(R,this.url);this.policy.S&&(R.mph=this.sQ.toFixed(),R.tph=this.w5.toFixed());R.ulb=this.xS;R.ult=this.Hq;return R}; g.f.now=function(){return(0,g.Q)()}; g.f.deactivate=function(){this.isActive&&(this.isActive=!1)};g.S(Ya,ji);g.f=Ya.prototype;g.f.zG=function(){var O=ji.prototype.zG.call(this);O.pb=this.S9;O.pt=(1E3*this.fJ).toFixed();O.se=this.mM;return O}; g.f.R4=function(){var O=this.Of;this.AR||(this.AR=O.R4?O.R4():1);return this.AR}; g.f.q$=function(){return this.Es?this.R4()!==1:!1}; g.f.oA=function(O,R,J){if(!this.AT){this.AT=!0;if(!this.Md){Qo(this,O,R);this.MJ(O,R);var l=this.R4();this.mM=J;if(!this.Md)if(l===2){l=O-this.V0)||dp(this,l,R),this.S>0&&Vl(this.B3,R,this.N));O=(O-this.L)/ 1E3||.01;this.policy.V&&!(this.S>0)||Zl(this.B3,O,this.B,JCp(this),this.xz)}this.deactivate()}}; g.f.tZ=function(O,R,J){J&&(this.AR=2);O<0&&this.vH&&(O=this.vH);R?this.Gd+=O:this.JR+=O}; g.f.fU=function(){return this.JR||this.Gd||ji.prototype.fU.call(this)}; g.f.MJ=function(O,R){var J=(O-this.j)/1E3,l=R-this.B,u=this.R4();this.isActive?u===1&&((l>0||this.policy.D)&&(J>.2||l<1024)?(this.N+=J,l>0&&J>.2&&dp(this,this.GV?J:.05,l),this.Rz=!0):l>0&&(dp(this,J,l),this.Rz=!0)):R&&R>=this.policy.L&&this.Rk(O,R);ji.prototype.MJ.call(this,O,R)}; g.f.JF=function(O){if(!this.Md){Qo(this,O,this.D);var R=(O-this.L)/1E3;this.R4()!==2&&this.S>0&&(this.N+=(O-this.j)/1E3,Vl(this.B3,this.B,this.N));Zl(this.B3,R,this.B,JCp(this),this.xz,!0);O=(O-this.j)/1E3;Sj(this.B3,O,0);this.gA(O,0)}}; g.f.Rk=function(O,R){O=O===void 0?this.J:O;R=R===void 0?this.D:R;if(!(this.S>0)&&(ji.prototype.Rk.call(this,O,R),this.R4()===1)){R=(this.W-this.L)/1E3;var J=(O-this.W)/1E3;this.Es&&hl(this,this.now());this.SG||this.Md||(this.vH&&(J=Math.max(0,J-this.vH)),O=this.B3,O.V.VB(1,R),O.N1.VB(1,J))}}; g.f.v0=function(){this.Es&&hl(this,this.now());return this.Iu}; g.f.Dx=function(){var O;if(O=this.B>this.P$)O=(O=this.B)?O>=this.policy.L:!1;return O}; g.f.Hs=function(){return this.Td}; g.f.Dp=function(O){O=O===void 0?this.now():O;if(this.Es){hl(this,O);if(this.AR?this.q$():this.OQ!==this.Qh){var R=this.Qh;if(O0?J+O:J+Math.max(O,R)}; g.f.Tc=function(){return this.now()-this.V}; g.f.Nq=function(){return(this.B-this.S)*1E3/this.Tc()||0}; g.f.jK=function(){return this.V};zo.prototype.feed=function(O){NF(this.L,O);this.BY()}; zo.prototype.BY=function(){if(this.N){if(!this.L.getLength())return;var O=this.L.split(this.B-this.S),R=O.IJ;O=O.cP;if(!this.Of.IY(this.N,R,this.S,this.B))return;this.S+=R.getLength();this.L=O;this.S===this.B&&(this.N=this.B=this.S=void 0)}for(;;){var J=0;O=g.N(u_x(this.L,J));R=O.next().value;J=O.next().value;J=g.N(u_x(this.L,J));O=J.next().value;J=J.next().value;if(R<0||O<0)break;if(!this.L.uF(J,O)){if(!this.Of.IY||!this.L.uF(J,1))break;J=this.L.split(J).cP;this.Of.IY(R,J,0,O)&&(this.N=R,this.S= J.getLength(),this.B=O,this.L=new SX([]));break}O=this.L.split(J).cP.split(O);J=O.cP;this.Of.Uw(R,O.IJ);this.L=J}}; zo.prototype.dispose=function(){this.L=new SX};g.f=nj.prototype;g.f.WG=function(){return 0}; g.f.PK=function(){return null}; g.f.O9=function(){return null}; g.f.pH=function(){return this.state>=1}; g.f.isComplete=function(){return this.state>=3}; g.f.dB=function(){return this.state===5}; g.f.onStateChange=function(){}; g.f.UZ=function(O){var R=this.state;this.state=O;this.onStateChange(R);this.callback&&this.callback(this,R)}; g.f.rQ=function(O){O&&this.state=this.xhr.HEADERS_RECEIVED}; g.f.getResponseHeader=function(O){try{return this.xhr.getResponseHeader(O)}catch(R){return""}}; g.f.iP=function(){return+this.getResponseHeader("content-length")}; g.f.QY=function(){return this.S}; g.f.Ir=function(){return this.status>=200&&this.status<300&&!!this.S}; g.f.ZO=function(){return this.L.getLength()>0}; g.f.Tt=function(){var O=this.L;this.L=new SX;return O}; g.f.Bw=function(){return this.L}; g.f.abort=function(){this.jN=!0;this.xhr.abort()}; g.f.ji=function(){return!0}; g.f.ZB=function(){return this.J3}; g.f.HH=function(){return""};RX.prototype.Ah=function(O,R){R=R===void 0?1:R;this.jU+=R;this.S+=O;O/=R;for(var J=0;J0)l+="."+O0[u].toFixed(0)+"_"+J.L[u].toFixed(0);else break;J=l}J&&(O[R]=J)}this.L=new Gbs;return O}; g.f.toString=function(){return""};g.f=rCH.prototype;g.f.isActive=function(){return!1}; g.f.Gn=function(){}; g.f.tE=function(){}; g.f.ri=function(){}; g.f.Fp=function(){}; g.f.Qn=function(O,R){R()}; g.f.sG=function(){return{}}; g.f.toString=function(){return""};var K5,O6Q,RWC,J86,gKt,yU,mG,gx,Kmf;K5=new rCH;O6Q=!!+dn("html5_enable_profiler");RWC=!!+dn("html5_onesie_enable_profiler");J86=!!+dn("html5_offline_encryption_enable_profiler");gKt=!!+dn("html5_performance_impact_profiling_timer_ms");yU=O6Q||RWC||J86||gKt?new yCp:K5;g.bU=O6Q?yU:K5;mG=RWC?yU:K5;gx=J86?yU:K5;Kmf=gKt?yU:K5;g.f=Z3s.prototype;g.f.getResponseHeader=function(O){return O==="content-type"?this.L.get("type"):""}; g.f.abort=function(){}; g.f.Fd=function(){return!0}; g.f.iP=function(){return this.range.length}; g.f.QY=function(){return this.loaded}; g.f.Ir=function(){return!!this.loaded}; g.f.ZO=function(){return!!this.S.getLength()}; g.f.Tt=function(){var O=this.S;this.S=new SX;return O}; g.f.Bw=function(){return this.S}; g.f.ji=function(){return!0}; g.f.ZB=function(){return!!this.error}; g.f.HH=function(){return this.error};g.f=f0L.prototype;g.f.start=function(O){var R={credentials:"include",cache:"no-store"};Object.assign(R,this.j);this.N&&(R.signal=this.N.signal);O=new Request(O,R);fetch(O).then(this.V,this.onError).then(void 0,Kg)}; g.f.onDone=function(){this.jN()||this.Of.bH()}; g.f.getResponseHeader=function(O){return this.responseHeaders?this.responseHeaders.get(O):null}; g.f.Fd=function(){return!!this.responseHeaders}; g.f.QY=function(){return this.S}; g.f.iP=function(){return+this.getResponseHeader("content-length")}; g.f.Ir=function(){return this.status>=200&&this.status<300&&!!this.S}; g.f.ZO=function(){return!!this.L.getLength()}; g.f.Tt=function(){this.ZO();var O=this.L;this.L=new SX;return O}; g.f.Bw=function(){this.ZO();return this.L}; g.f.jN=function(){return this.D}; g.f.abort=function(){this.B&&this.B.cancel().catch(function(){}); this.N&&this.N.abort();this.D=!0}; g.f.ji=function(){return!0}; g.f.ZB=function(){return this.J3}; g.f.HH=function(){return this.errorMessage};g.f=S7A.prototype;g.f.onDone=function(){if(!this.jN){this.status=this.xhr.status;try{this.response=this.xhr.response,this.S=this.response.byteLength}catch(O){}this.L=!0;this.Of.bH()}}; g.f.ax=function(){this.xhr.readyState===2&&this.Of.Wt()}; g.f.aF=function(O){this.jN||(this.status=this.xhr.status,this.L||(this.S=O.loaded),this.Of.rX((0,g.Q)(),O.loaded))}; g.f.Fd=function(){return this.xhr.readyState>=2}; g.f.getResponseHeader=function(O){try{return this.xhr.getResponseHeader(O)}catch(R){return g.Aa(Error("Could not read XHR header "+O)),""}}; g.f.iP=function(){return+this.getResponseHeader("content-length")}; g.f.QY=function(){return this.S}; g.f.Ir=function(){return this.status>=200&&this.status<300&&this.L&&!!this.S}; g.f.ZO=function(){return this.L&&!!this.response&&!!this.response.byteLength}; g.f.Tt=function(){this.ZO();var O=this.response;this.response=void 0;return new SX([new Uint8Array(O)])}; g.f.Bw=function(){this.ZO();return new SX([new Uint8Array(this.response)])}; g.f.abort=function(){this.jN=!0;this.xhr.abort()}; g.f.ji=function(){return!1}; g.f.ZB=function(){return!1}; g.f.HH=function(){return""};g.l9.prototype.info=function(){}; g.l9.prototype.debug=function(){}; g.l9.prototype.L=function(O){u9.apply(null,[5,this.tag,O].concat(g.X(g.As.apply(1,arguments))))}; var EOp=new Map,vOW=new Map,DLz=new function(){var O=this;this.L=new Map;this.nG={NcU:function(){return O.L}}};g.S(F$,g.p);F$.prototype.C$=function(){if(!this.A3.length)return[];var O=this.A3;this.A3=[];this.B=g.Ib(O).info;return O}; F$.prototype.F7=function(){return this.A3}; F$.prototype.eN=function(){g.p.prototype.eN.call(this);this.L=null;this.A3.length=0;this.CJ.length=0;this.B=null};g.S(K1,g.p);g.f=K1.prototype; g.f.OAh=function(){if(!this.jN()){var O=(0,g.Q)(),R=!1;if(this.policy.WQ){O=O-(this.timing.S>0?this.timing.V:this.timing.L)-this.timing.fU()*1E3;var J=XT(yJ(this),!1);O>=2E3*J?R=!0:O>=this.policy.X9*J&&(this.L=this.policy.PQ)}else if(this.timing.S>0){if(this.D){this.policy.mM&&(this.L=0);return}var l=this.timing.Hs();this.timing.Dp();var u=this.timing.Hs();u-l>=this.policy.jR*.8?(this.L++,this.logger.debug(function(){return"Mispredicted by "+(u-l).toFixed(0)}),R=this.L>=5):this.L=0}else{var F=O-this.timing.v0(); this.policy.PQ&&F>0&&(this.L+=1);R=XT(yJ(this),!1)*this.policy.Fb;(R=F>R*1E3)&&this.logger.debug(function(){return"Elbow late by "+F.toFixed(3)})}this.L>0&&this.Of.UD(); R?this.rA():this.S.start()}}; g.f.rA=function(){this.N=!0;this.Of.jl();this.lastError="net.timeout";IX(this)}; g.f.canRetry=function(O){var R=yJ(this);O=O?this.policy.W8:this.policy.hD;return R.timedOut0&&(R=R.L.getUint8(0),O.ubyte=R,J===1&&R===0&&(O.b248180278=!0))}this.rS&&(O.rc=this.policy.S5?this.rS:this.rS.toString());this.policy.TR&&this.IW&&(O.tr=this.IW);O.itag=this.info.CJ[0].L.info.itag;O.ml=""+ +this.info.CJ[0].L.Yo();O.sq=""+this.info.CJ[0].XQ;this.O8&&(O.ifi=""+ +W0(this.info.By.S));this.rS!==410&&this.rS!==500&&this.rS!==503||(O.fmt_unav="true");var l;(J=this.errorMessage||((l=this.xhr)==null? void 0:l.HH()))&&(O.msg=J);this.qm&&(O.smb="1");this.info.isDecorated()&&(O.sdai="1");return O}; g.f.gq=function(){return gOs(this.timing)}; g.f.HH=function(){return this.xhr.HH()||""}; g.f.Dx=function(){return this.isComplete()||this.timing.Dx()}; g.f.rX=function(){!this.jN()&&this.xhr&&(this.rS=this.xhr.status,this.policy.dc&&this.uc&&this.xd(!1),this.zb()?this.rQ(2):!this.MN&&this.Dx()&&(this.rQ(),this.MN=!0))}; g.f.Wt=function(){if(!this.jN()&&this.xhr){if(!this.TT&&this.xhr.Fd()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var O=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.TT=((0,g.Q)()-O)/1E3}this.xhr.Fd()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.I$&&!BUh()&&g.bE("yt-player-headers-readable",!0,2592E3);O=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var R=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),J;(J=this.UT)==null||J.stop();this.i7=O||this.i7; this.It=R||this.It}}; g.f.bH=function(){var O=this.xhr;if(!this.jN()&&O){this.rS=O.status;O=this.Vb(O);if(this.policy.TR){var R;(R=this.UT)==null||R.stop()}O===5?IX(this.X5):this.UZ(O);this.X5.S.stop()}}; g.f.Vb=function(O){var R=this;uTs(this);if(C1(this.X5,this.xhr.status,this.Eq?this.timing.SN||this.VX:this.xhr.Ir(),!1,this.J8))return 5;var J="";rx(this.X5,this.xhr)&&(J=kbx(this.X5,this.xhr));if(J)return vs(yJ(this.X5)),this.info.qM(this.O8,J),3;J=O.QY();if(this.Mx){this.xd(!0);uTs(this);if(C1(this.X5,this.xhr.status,this.timing.SN||this.VX,!1,this.J8))return 5;if(!this.tM){if(this.VX)return vs(yJ(this.X5)),3;this.X5.lastError="net.closed";return 5}}else{if(C1(this.X5,this.xhr.status,this.xhr.Ir(), !1,this.J8))return 5;var l=this.info.B;if(l&&l!==J||O.ZB())return this.X5.lastError="net.closed",5;this.xd(!0)}l=FF0(this)?O.getResponseHeader("X-Bandwidth-Est"):0;if(O=FF0(this)?O.getResponseHeader("X-Bandwidth-Est3"):0)this.A7=!0,this.policy.yu&&(l=O);MYL(this.X5,J,l?Number(l):0,this.info.CJ[0].type===5);this.logger.debug(function(){var u=R.timing;return"Succeeded, rtpd="+(u.fJ*1E3+u.L-Date.now()).toFixed(0)}); return 4}; g.f.canRetry=function(){this.jN();var O=this.info.isDecorated();return this.X5.canRetry(O)}; g.f.onStateChange=function(){this.isComplete()&&(this.policy.l7?this.jl():this.timing.deactivate())}; g.f.rA=function(){this.X5.rA()}; g.f.UD=function(){this.callback&&this.callback(this,this.state)}; g.f.fS=function(){return this.X5.fS()}; g.f.dispose=function(){nj.prototype.dispose.call(this);this.X5.dispose();var O;(O=this.UT)==null||O.dispose();this.policy.l7||this.jl()}; g.f.jl=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.f.C$=function(){if(!this.F7().length)return[];this.AU=!0;return this.uc.C$()}; g.f.zb=function(){if(this.state<1)return!1;if(this.uc&&this.uc.A3.length)return!0;var O;return((O=this.xhr)==null?0:O.ZO())?!0:!1}; g.f.F7=function(){this.xd(!1);return this.uc?this.uc.F7():[]}; g.f.xd=function(O){try{if(O||this.xhr.Fd()&&this.xhr.ZO()&&!rx(this.X5,this.xhr)&&!this.Vq)this.uc||(this.uc=new F$(this.policy,this.info.CJ)),this.xhr.ZO()&&(this.Mx?this.Mx.feed(this.xhr.Tt()):Gx(this.uc,this.xhr.Tt(),O&&!this.xhr.ZO()))}catch(R){this.Mx?gVp(this,R):g.Aa(R)}}; g.f.Uw=function(O,R){switch(O){case 21:O=R.split(1).cP;iL2(this,O);break;case 22:this.tM=!0;Gx(this.uc,new SX([]),!0);break;case 43:if(O=pk(new sX(R),1))this.info.qM(this.O8,O),this.VX=!0;break;case 45:R=ye(new sX(R));O=R.Kn;R=R.td;O&&R&&(this.WS=O/R);break;case 44:this.Oo=Bk_(new sX(R));var J,l,u;!this.timing.SN&&((J=this.Oo)==null?void 0:J.action)===4&&((l=this.Oo)==null?0:(u=l.Ey)==null?0:u.Eq)&&(this.Eq=this.Oo.Ey.Eq);break;case 53:this.policy.TR&&(O=eRB(new sX(R)).Js)&&(this.UT||(this.Js=O,this.UT= new g.zR(this.uf,O,this)),this.UT.start());break;case 60:this.wQ=K3(new sX(R));break;case 58:if(O=tW_(new sX(R)))this.wc=O,O.wc===3&&(this.J8=!0)}}; g.f.IY=function(O,R,J,l){J||this.timing.IY(l);if(O!==21)return!1;if(O=this.policy.dc)if(l=R.getLength()+J===l,O*=this.info.CJ[0].L.info.Wq,!l&&R.getLength()0)return!1;if(!this.xhr.Fd())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Mx)var O=!this.info.B;else this.xhr.iP()?O=!1:(O=this.xhr.getResponseHeader("content-type"),O=O==="audio/mp4"||O==="video/mp4"||O==="video/webm");if(!O)return!1;if(isNaN(this.info.pW)){O=this.xhr.getResponseHeader("x-head-seqnum");var R=this.timing.policy.J?1:0;if(!O)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(O)>this.info.CJ[0].XQ+R)return!1}return!0}; g.f.vr=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.f.PK=function(){this.xhr&&(this.i7=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.i7}; g.f.O9=function(){this.xhr&&(this.It=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.It}; g.f.U0=function(){return this.X5.U0()}; g.f.uf=function(){if(!this.jN()&&this.xhr){this.IW="heartbeat";var O=this.X5;O.L+=2;this.UD()}};g.S(E0,ji);g.f=E0.prototype;g.f.MJ=function(O,R){var J=(O-this.j)/1E3,l=R-this.B;this.S>0?l>0&&(this.OQ&&(J>.2||l<1024?(this.N+=J,J>.2&&FJ_(this,.05,l)):FJ_(this,J,l)),this.Qh&&(this.Iu+=l,this.JR+=J)):R>this.policy.L&&this.Rk(O,R);ji.prototype.MJ.call(this,O,R)}; g.f.oA=function(O,R){Qo(this,O,R);this.MJ(O,R);this.OQ&&(R=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.S>0&&Vl(this.B3,this.Iu,this.N),O=(O-this.L)/1E3||.01,this.policy.V&&!(this.S>0)||Zl(this.B3,O,this.B,R,!1))}; g.f.JF=function(O){Qo(this,O,this.D);var R=(O-this.j)/1E3;Sj(this.B3,R,0);this.gA(R,0);!this.OQ&&this.S>0||(R=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.S>0&&(this.N+=(O-this.j)/1E3,Vl(this.B3,this.Iu,this.N)),Zl(this.B3,((O-this.L)/1E3||.01)*this.policy.SN,this.B,R,!1,!0))}; g.f.nt=function(O){O=O.QO||2147483647;(O&2)!==2&&(this.Qh=!1);(O&1)===1&&(this.OQ=!0)}; g.f.TX=function(O){O=O.QO||2147483647;(O&2)===2&&(this.Qh=!1);(O&1)===1&&(this.OQ=!1)}; g.f.jK=function(){return this.V}; g.f.Tc=function(){var O=this.Qh?this.now()-this.j:0;return Math.max(this.JR*1E3+O,1)}; g.f.Nq=function(){return this.Iu*1E3/this.Tc()}; g.f.Rk=function(O,R){O=O===void 0?this.J:O;R=R===void 0?this.D:R;this.S>0||(ji.prototype.Rk.call(this,O,R),R=this.B3,O=(O-this.W)/1E3,R.V.VB(1,(this.W-this.L)/1E3),R.N1.VB(1,O))}; g.f.BX=function(O){this.Gd=O}; g.f.zG=function(){var O=ji.prototype.zG.call(this);O.rbw=this.Nq();O.rbe=+this.Qh;O.gbe=+this.OQ;O.ackt=(this.Gd-this.L).toFixed();return O}; g.f.Dp=function(){}; g.f.Hs=function(){return NaN}; g.f.v0=function(){return this.L+this.snapshot.delay*1E3};Dr.prototype.Uw=function(O,R){R.getLength();switch(O){case 20:O=new sX(R);O={PM:Aq(O,1),videoId:pk(O,2),itag:Aq(O,3),lmt:Aq(O,4),xtags:pk(O,5),bR:Aq(O,6),RT:eX(O,8),Y5:Aq(O,9),kgd:Aq(O,10),startMs:Aq(O,11),durationMs:Aq(O,12),AP:Aq(O,14),timeRange:Bg(O,15,cB0),TW:Aq(O,16),a$:Aq(O,17),clipId:pk(O,1E3)};this.yz(O);break;case 21:this.xf(R,!1);break;case 22:this.Gg(R);break;case 31:O=UX(R,$i2);this.TP(O);break;case 52:O=UX(R,PNT);this.Ew(O);break;default:this.O4(O,R)}}; Dr.prototype.yz=function(){}; Dr.prototype.O4=function(){};g.S(aX,Dr);g.f=aX.prototype; g.f.O4=function(O,R){R.getLength();switch(O){case 35:this.Ui(R);break;case 44:this.MA(R);break;case 43:this.U4(R);break;case 53:this.a9(R);break;case 55:O=new sX(R);Bg(O,1,xiL);Bg(O,2,Q2s);break;case 56:this.Pv();break;case 57:this.pN(R);break;case 42:this.pT(R);break;case 45:this.m5(R);break;case 59:this.Wv(R);break;case 51:this.Rq(R);break;case 49:this.nt(R);break;case 50:this.TX(R);break;case 47:this.oL(R);break;case 58:this.Pt(R);break;case 61:this.Of.nZ.BX((0,g.Q)());break;case 66:this.Dl(R); break;case 46:this.t2(R);break;case 67:this.onSnackbarMessage(R)}}; g.f.Rq=function(O){O=new sX(O);O={jXu:xu(O,1,F_),vnU:xu(O,2,F_)};this.Of.Rq(O)}; g.f.Wv=function(O){var R=new sX(O);O=Hg(R,1);var J=Hg(R,2);R=Hg(R,3);this.Of.Wv(O,J,R)}; g.f.m5=function(O){O=ye(new sX(O));this.Of.m5(O)}; g.f.oL=function(O){O=UX(O,khH);this.Of.oL(O)}; g.f.pT=function(O){O=new sX(O);O={videoId:pk(O,1),formatId:Bg(O,2,F_),endTimeMs:Aq(O,3),s4J:Aq(O,4),mimeType:pk(O,5),p7:Bg(O,6,Eds),indexRange:Bg(O,7,Eds),A_:Bg(O,8,Di2)};this.Of.pT(O)}; g.f.pN=function(O){O=Q2s(new sX(O));this.Of.pN(O)}; g.f.Pv=function(){this.Of.Pv()}; g.f.Ui=function(O){O=MW_(new sX(O));this.Of.Ui(O)}; g.f.a9=function(O){O=eRB(new sX(O));this.Of.a9(O)}; g.f.MA=function(O){O=Bk_(new sX(O));this.Of.MA(O)}; g.f.U4=function(O){O={redirectUrl:pk(new sX(O),1)};this.Of.U4(O)}; g.f.xf=function(O){var R=O.getUint8(0);if(O.getLength()!==1){O=O.split(1).cP;var J=this.S[R]||null;J&&ky(this.Of.oe,R,J,O)}}; g.f.Gg=function(O){O=O.getUint8(0);var R=this.S[O]||null;R&&this.Of.Gg(O,R)}; g.f.Ew=function(O){this.Of.Ew(O)}; g.f.yz=function(O){var R=O.PM,J=O.RT,l=O.bR,u=O.a$,F=O.TW,G=O.Y5,y=O.startMs,w=O.durationMs,I=O.timeRange,C=O.AP,r=O.clipId,t=bi(O);O=so_.has(L8[""+O.itag]);this.S[R]=t;this.Of.tZ(t,O,{PM:R,RT:!!J,bR:l!=null?l:-1,Y5:G!=null?G:-1,startMs:y!=null?y:-1,durationMs:w!=null?w:-1,AP:C,a$:u,TW:F,clipId:r,timeRange:I})}; g.f.nt=function(O){O={QO:Aq(new sX(O),1)};this.Of.nt(O)}; g.f.TX=function(O){O={QO:Aq(new sX(O),1)};this.Of.TX(O)}; g.f.TP=function(O){this.Of.TP(O)}; g.f.Pt=function(O){O=tW_(new sX(O));this.Of.Pt(O)}; g.f.Dl=function(O){O={PO:Bg(new sX(O),1,WCf)};this.Of.Dl(O)}; g.f.onSnackbarMessage=function(O){O=Aq(new sX(O),1);this.Of.onSnackbarMessage(O)}; g.f.t2=function(O){O={reloadPlaybackParams:Bg(new sX(O),1,rKh)};this.Of.t2(O)};g.S(v8,g.p);g.f=v8.prototype;g.f.TK=function(){return Array.from(this.rz.keys())}; g.f.W2=function(O){O=this.rz.get(O);var R=O.A3;O.UX+=R.getLength();O.A3=new SX;return R}; g.f.fA=function(O){return this.rz.get(O).fA}; g.f.Qe=function(O){return this.rz.get(O).Qe}; g.f.tZ=function(O,R,J,l){this.rz.get(O)||IWf(this,O,R);R=this.rz.get(O);if(this.Dg){O=rtT(this,O,J);if(l)for(var u=g.N(O),F=u.next();!F.done;F=u.next()){F=F.value;var G=l;F.Hq=G;F.startTime+=G;F.N+=G;F.j+=G}Ciz(this,J.PM,R,O)}else J.RT?R.h0=J.AP:R.D8.push(J),R.Pe.push(J)}; g.f.eV=function(O){var R;return((R=this.rz.get(O))==null?void 0:R.CJ)||[]}; g.f.rQ=function(){for(var O=g.N(this.rz.values()),R=O.next();!R.done;R=O.next())R=R.value,R.hd&&(R.aF&&R.aF(),R.hd=!1)}; g.f.Gg=function(O,R){this.logger.debug(function(){return"[onMediaEnd] formatId: "+R}); var J=this.rz.get(R);if(X$){if(J&&!J.fA){if(J.dR.get(O))J.dR.get(O).ye=!0;else{var l;((l=this.HY)==null?0:l.Py)&&J.dR.set(O,{data:new SX,cS:0,ye:!0})}J.Qe=!0}}else J&&!J.Qe&&(J.Qe=!0)}; g.f.C$=function(O){if(X$){var R=this.rz.get(O);if(R)for(var J=g.N(R.dR),l=J.next();!l.done;l=J.next()){var u=g.N(l.value);l=u.next().value;u=u.next().value;var F=R.ip.get(l);if(Hs(F[0])){if(!u.ye)continue;var G=F,y=u.data;y.getLength();F=0;var w=[];G=g.N(G);for(var I=G.next();!I.done;I=G.next()){I=I.value;var C=I.B,r=mf(y,F,C);F+=C;w.push(new FS(I,r))}R.My.push.apply(R.My,g.X(w))}else if(u.data.getLength()>0||!F[0].range&&u.ye)y=void 0,F=F[0],w=u.cS,G=u.data,F.range||(y=u.ye),I=G.getLength(),y=new FS(IG_(F, F.S+w,I,y),G),u.cS+=y.info.B,R.My.push(y);R.dR.get(l).data=new SX;u.ye&&R.dR.delete(l)}O=this.rz.get(O);if(!O)return[];R=O.My;O.My=[];J=g.N(R);for(l=J.next();!l.done;l=J.next())O.UX+=l.value.info.B;return R||[]}J=(R=this.rz.get(O))==null?void 0:R.uc;if(!J)return[];this.xd(O,J);return J.C$()}; g.f.zb=function(O){if(X$)return qy(this,O);var R,J,l;return!!((J=(R=this.rz.get(O))==null?void 0:R.uc)==null?0:(l=J.F7())==null?0:l.length)||qy(this,O)}; g.f.xd=function(O,R){for(;qy(this,O);){var J=this.W2(O);var l=O;l=this.rz.get(l).fA&&!My(this,l);Gx(R,J,l&&wss(this,O))}}; g.f.eN=function(){g.p.prototype.eN.call(this);for(var O=g.N(this.rz.keys()),R=O.next();!R.done;R=O.next())Tx(this,R.value);var J;if((J=this.HY)==null?0:J.cQ)for(O=g.N(this.rz.values()),R=O.next();!R.done;R=O.next())R=R.value,R.dR.clear(),R.ip.clear(),R.My.length=0,R.CJ.length=0,R.Pe.length=0,R.D8.length=0;this.rz.clear()}; var X$=!1;g.S(s0,g.p);g.f=s0.prototype;g.f.rX=function(){!this.jN()&&this.xhr&&(this.xd(!1),N6(this.Of,this))}; g.f.Wt=function(){}; g.f.bH=function(){if(!this.jN()&&this.xhr){var O=this.Vb();O===5?IX(this.X5):this.UZ(O);this.X5.S.stop();var R;(R=this.EH)==null||R.stop()}}; g.f.Vb=function(){var O="";rx(this.X5,this.xhr)&&(O=kbx(this.X5,this.xhr));if(O)return this.info.By.qM(this.O8,O),3;this.xd(!0);if(C1(this.X5,this.xhr.status,this.xhr.Ir(),this.info.bL(),this.J8))return 5;if(this.GH)return 3;MYL(this.X5,this.xhr.QY(),0,this.bL());this.policy.zJ&&rdh(this.Of);return 4}; g.f.xd=function(O){var R=this.xhr;if((O||!rx(this.X5,this.xhr))&&R.ZO()){O=R.Tt();var J=O.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+J}); this.Mx.feed(O)}}; g.f.Uw=function(O,R){this.xhr.ji()&&O===21&&fWL(this);this.Uy.Uw(O,R)}; g.f.IY=function(O,R,J,l){J||(this.nZ.IY(l),this.policy.du&&O===21&&fWL(this));if(O!==21)return!1;this.nZ.SN=!0;O=R.getLength();J||(this.O1=R.getUint8(0),R=R.split(1).cP);var u=this.policy.Bd,F=this.Uy.S[this.O1],G=this.Dg.B.get(F);if(u&&G&&(u*=G.info.Wq,O+J!==l&&O0){this.policy.WQ&&this.X5.S.stop();O=this.nZ.Tc();R=this.nZ.Nq();var J=SN2(this,O);if(!(R>J.YR||J.tq>0&&this.info.nK()>J.tq)){this.Zp=(0,g.Q)();var l;(l=this.EH)==null||l.stop();this.policy.zJ&&(l=this.Of,O={aG:Math.round(R*O/1E3),W_:O},l.policy.zJ&&(l.N1=O,l.f8++));this.rA()}}}}; g.f.rA=function(){this.X5.rA()}; g.f.MA=function(O){this.Of.MA(O,this.FW())}; g.f.U4=function(O){this.GH=!0;this.info.By.qM(this.O8,O.redirectUrl)}; g.f.nt=function(O){this.nZ instanceof E0&&this.nZ.nt(O)}; g.f.TX=function(O){this.nZ instanceof E0&&this.nZ.TX(O)}; g.f.pT=function(O){var R=O.formatId,J=bi({itag:R.itag,lmt:R.lmt,xtags:R.xtags}),l,u,F=new At(((l=O.p7)==null?void 0:l.first)||0,((u=O.p7)==null?void 0:u.J0)||0),G,y;l=new At(((G=O.indexRange)==null?void 0:G.first)||0,((y=O.indexRange)==null?void 0:y.J0)||0);if(!this.Dg.B.get(J)){J=O.A_||{};if(this.policy.Wd){var w,I;O=(w=O.mimeType)!=null?w:"";w=(I=R.itag)!=null?I:0;I=L8[""+w];J.mimeType=I!=="9"&&I!=="9h"?O:'video/webm; codecs="'+["vp09",I==="9h"?"02":"00","51",I==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else J.mimeType=O.mimeType;J.itag=R.itag;J.lastModified=""+(R.lmt||0);J.xtags=R.xtags;R=this.Dg;I=vm("");w=DQ(J,null);VP(R,new tf(I,w,F,l))}}; g.f.m5=function(O){this.Of.m5(O)}; g.f.onSnackbarMessage=function(O){if(this.policy.gD)this.Of.onSnackbarMessage(O)}; g.f.TP=function(O){this.MO=O;this.R3=(0,g.Q)();this.Of.TP(O)}; g.f.Wv=function(O,R,J){this.Of.Wv(O,R,J)}; g.f.pN=function(O){O.scope===2&&(this.Te=O);this.Of.pN(O)}; g.f.Pv=function(){this.kK=!0;this.Of.Pv()}; g.f.Rq=function(O){this.policy.vu&&this.Of.Rq(O)}; g.f.oL=function(O){this.Of.oL(O,this.FW())}; g.f.Pt=function(O){O.wc===3&&(this.J8=!0);this.Of.Pt(O)}; g.f.Dl=function(O){this.Of.Dl(O)}; g.f.t2=function(O){this.Of.t2(O)}; g.f.canRetry=function(){this.jN();return this.X5.canRetry(!1)}; g.f.dispose=function(){if(!this.jN()){g.p.prototype.dispose.call(this);this.X5.dispose();var O;(O=this.EH)==null||O.dispose();this.UZ(-1);this.jl()}}; g.f.UZ=function(O){this.state=O;N6(this.Of,this)}; g.f.bL=function(){return this.info.bL()}; g.f.yO=function(){return this.kK}; g.f.Qb=function(){return this.Te}; g.f.tZ=function(O,R,J){J.clipId&&(this.clipId=J.clipId);this.policy.B&&!R&&(this.TV=J.Y5);var l=0;this.policy.F_&&this.Bm&&this.clipId&&(l=KJ(this.Bm,this.clipId)/1E3);this.oe.tZ(O,R,J,l);this.policy.sO&&this.MO&&this.nZ instanceof Ya&&(l=this.MO.VT,this.nZ.tZ(J.durationMs/1E3,R,l>0&&J.Y5+1>=l));this.oe.rz.get(O).wD=!0}; g.f.Gg=function(O,R){this.oe.Gg(O,R)}; g.f.Ew=function(O){this.requestIdentifier=O}; g.f.C$=function(O){return this.oe.C$(O)}; g.f.eV=function(O){return this.oe.eV(O)}; g.f.zb=function(O){return this.oe.zb(O)}; g.f.TK=function(){return this.oe.TK()}; g.f.R4=function(){return 1}; g.f.FW=function(){return this.nZ.requestNumber}; g.f.Yv=function(){return this.requestIdentifier}; g.f.Y8=function(){return this.O8.Y8()}; g.f.mj=function(){this.jl()}; g.f.jl=function(){this.nZ.deactivate();var O;(O=this.xhr)==null||O.abort()}; g.f.isComplete=function(){return this.state>=3}; g.f.Zm=function(){return this.state===3}; g.f.dB=function(){return this.state===5}; g.f.dL=function(){return this.state===4}; g.f.RD=function(){return this.isComplete()}; g.f.pH=function(){return this.state>=1}; g.f.fS=function(){return this.policy.mM?this.X5.fS():0}; g.f.UD=function(){this.policy.mM&&N6(this.Of,this)}; g.f.x6=function(){return d72(this.info)}; g.f.U0=function(){return this.X5.U0()}; g.f.n8=function(){var O=sxh(this.X5);Object.assign(O,z6_(this.info));O.req="sabr";O.rn=this.FW();var R;if((R=this.xhr)==null?0:R.status)O.rc=this.policy.S5?this.xhr.status:this.xhr.status.toString();var J;(R=(J=this.xhr)==null?void 0:J.HH())&&(O.msg=R);this.Zp&&(J=SN2(this,this.Zp-this.nZ.jK()),O.letm=J.d1S,O.mrbps=J.YR,O.mram=J.tq);return O};N9s.prototype.tick=function(O,R){this.ticks[O]=R?window.performance.timing.navigationStart+R:(0,g.Q)()};g.S(W8,g.y8);g.f=W8.prototype; g.f.Cj=function(O,R,J,l){if(this.policy.Bu&&this.policy.B){var u=O.ZZ||null;u?(AtL(this,O.XQ,B8(this,O.startTime,O.XQ),{ZZ:u,XQ:O.XQ,JE:!!R,ke:J},this.B),l&&this.B&&this.B.CH(O.XQ,O.startTime,this.S,(R==null?void 0:R.L)||[],(R==null?void 0:R.S)||[],(R==null?void 0:R.B)||[],J,(R==null?void 0:R.xD)||0,(R==null?void 0:R.N)||void 0)):this.S===1&&eI(this,5,"noad")}else{var F=!1;this.policy.B&&(F=J?this.iz===O.XQ:this.OQ===O.XQ);if(this.B&&l&&!F){l=[];F=[];var G=[],y=void 0,w=0;R&&(l=R.L,F=R.S,G=R.B,y= R.N,w=R.xD,this.nJ("sdai",{sq:O.XQ,ssvicpns:l.join("."),ssvid:F.join(".")}));this.policy.B&&(J?this.iz=O.XQ:this.OQ=O.XQ);this.B.CH(O.XQ,O.startTime,this.S,l,F,G,J,w,y)}this.policy.B?J&&(this.S===1&&eI(this,5,"noad"),O.XQ!==((u=this.L)==null?void 0:u.XQ)&&(s6W(this,O,R,J),isNaN(O.startTime)||bLH(this,O.XQ,B8(this,O.startTime,O.XQ),!!R,this.B))):J&&s6W(this,O,R)}}; g.f.I9=function(O,R,J){var l=this.videoTrack.L.index.lK()<=R;this.L={ZZ:O,XQ:R,JE:J};l&&A$(this,O,R)}; g.f.OC=function(){this.B&&this.B.OC()}; g.f.nJ=function(O,R,J){(O!=="sdai"||this.policy.D2||(J===void 0?0:J))&&this.loader.nJ(O,R)}; g.f.Cx=function(O,R){var J=this.videoTrack.L.index.F8(O);if(J>=0){var l;var u=((l=R.x9.yr(J,2))==null?void 0:l.Kp)||"";if(this.policy.B||u)return R.Yh(O,J),P8(this.loader,O,O,J),this.nJ("sdai",{cmskpad:1,t:O.toFixed(3),sq:J}),!0}this.nJ("sdai",{cmskpad:0,t:O.toFixed(3),sq:J});return!1};g.S(QJ,g.p);QJ.prototype.IT=function(O,R,J){J=J===void 0?{}:J;this.policy.qe=pp(O,J,this.N,R===void 0?!1:R)};zx.prototype.AF=function(O){var R=this;if(this.policy.oI){var J=new Set(O);J.size===this.N1.size&&[].concat(g.X(J)).every(function(l){return R.N1.has(l)})||(this.loader.nJ("lwnmow",{itagDenylist:[].concat(g.X(O)).join(",")}),this.loader.Eh(!!J.size),this.W=-1,this.N1=J,n1(this,this.L),this.Iu=!0)}}; zx.prototype.IT=function(O,R,J){J=J===void 0?{}:J;var l=this.policy.qe;this.D.IT(O,R===void 0?!1:R,J);if(l!==this.policy.qe){n1(this,this.L);c8(this);var u,F;l>this.policy.qe&&((u=this.B)==null?0:n8(u.info))&&((F=this.nextVideo)==null||!n8(F.info))&&(this.SN=!0)}};gf.prototype.qd=function(O){this.timestampOffset=O;this.flush()}; gf.prototype.flush=function(){if(this.L.pos>0){var O={a:this.track.NT(),u:this.L.SQ(),pd:Math.round(this.N),ad:Math.round(this.B)},R=this.S;if(R){var J=R.L.info;O.itag=J.itag;J.L&&(O.xtags=J.L);O.sq=R.XQ;O.st=R.startTime;O.sd=R.duration;this.track.policy.LI&&(O.si=R.er());R.D&&(O.esl=R.S+R.B);R.rR()&&(O.eos=1)}isNaN(this.timestampOffset)||(O.to=this.timestampOffset);var l;if(R=(l=this.track.yd)==null?void 0:l.sf({})){for(var u in R)this.j[u]!==R[u]&&(O["sb_"+u]=R[u]);this.j=R}this.track.nJ("sbu", O);this.L.reset();this.buffered=[];this.D=this.B=this.N=0;this.timestampOffset=this.S=void 0}};lb.prototype.dispose=function(){this.Hq=!0}; lb.prototype.jN=function(){return this.Hq}; g.S(wf,Error);rf.prototype.skip=function(O){this.offset+=O}; rf.prototype.XB=function(){return this.offset};g.f=DO0.prototype;g.f.XD=function(){return this.S}; g.f.BD=function(){return this.S.length?this.S[this.S.length-1]:null}; g.f.rK=function(){this.S=[];fF(this);Zh(this)}; g.f.W2=function(O){this.JR=this.S.shift().info;O.info.equals(this.JR)}; g.f.eV=function(){return g.jO(this.S,function(O){return O.info})}; g.f.NT=function(){return!!this.j.info.audio}; g.f.getDuration=function(){return this.j.index.C_()};g.S(bY,nj);g.f=bY.prototype;g.f.onStateChange=function(){this.jN()&&($y(this.oe,this.formatId),this.L.dispose())}; g.f.n8=function(){var O=ytp(this.oe,this.formatId),R;var J=((R=this.oe.rz.get(this.formatId))==null?void 0:R.bytesReceived)||0;var l;R=((l=this.oe.rz.get(this.formatId))==null?void 0:l.UX)||0;return{expected:O,received:J,bytesShifted:R,sliceLength:My(this.oe,this.formatId),isAnyMediaEndReceived:this.oe.Qe(this.formatId)}}; g.f.gq=function(){return 0}; g.f.Dx=function(){return!0}; g.f.C$=function(){return this.oe.C$(this.formatId)}; g.f.F7=function(){return[]}; g.f.zb=function(){return this.oe.zb(this.formatId)}; g.f.U0=function(){return this.lastError}; g.f.fS=function(){return 0};g.S(Eq,g.p);g.f=Eq.prototype;g.f.NT=function(){return!!this.L.info.audio}; g.f.BD=function(){return this.N.BD()}; g.f.W2=function(O){this.N.W2(O);var R;(R=this.J)!=null&&(R.D.add(O.info.XQ),R.L=P52(R,R.GJ,R.kd,O,R.L),R.B=O,R.j=(0,g.Q)());this.Wq=Math.max(this.Wq,O.info.L.info.Wq||0)}; g.f.getDuration=function(){return this.L.index.C_()}; g.f.rK=function(){Al(this);this.N.rK()}; g.f.bX=function(){return this.N}; g.f.isRequestPending=function(O){return this.B.length?O===this.B[this.B.length-1].info.CJ[0].XQ:!1}; g.f.qd=function(O){var R;(R=this.J)==null||R.qd(O);var J;(J=this.W)==null||J.qd(O)}; g.f.nJ=function(O,R){this.loader.nJ(O,R)}; g.f.qx=function(){return this.loader.qx()}; g.f.dispose=function(){var O;(O=this.W)==null||O.flush();g.p.prototype.dispose.call(this)};g.S(BP,g.p);BP.prototype.B=function(){this.S++>15||(this.L=!this.L,new Vjx(this.loader,this.policy,this.B3,this.By,this.L),this.delay.start())}; g.f=Vjx.prototype;g.f.Wt=function(){}; g.f.rX=function(){}; g.f.bH=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.QY()===this.size)this.loader.nJ("rqs",this.getInfo());else{var O="net.connect";this.xhr.status>200?O="net.badstatus":this.xhr.Fd()&&(O="net.closed");this.onError(O)}}; g.f.onError=function(O){var R=this;this.loader.handleError(O,this.getInfo());aE("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(J){R.loader.nJ("pathprobe",J)},function(J){R.loader.handleError(J.errorCode,J.details)})}; g.f.getInfo=function(){var O=this.timing.zG();O.shost=s7(this.location.Aj);O.pb=this.size;return O};g.S(HP,g.p); HP.prototype.J=function(O,R){if(O.V){this.Dg.isLive?(O=this.Dg.g2&&this.Dg.N?O.L.BT(this.Dg.g2,!1):O.L.oX(Infinity),O.pW=this.pW):O=O.L.BT(0,!1);if(this.SN){var J=this.SN;O.pW===0&&(O.D=J.V)}else O.D=this.W;return O}J=O.S;if(!J.L.Yo())return J.L.rY()?(O=To(this.D,O.L.info.Wq,R.L.info.Wq,0),O=g.e(J.L.YD(J,O))):O=g.e(J.L.ZK(J)),O;var l=J.j-this.loader.getCurrentTime(),u=!J.range||J.B===0&&J.S===0?0:J.range.length-(J.S+J.B),F=J.L;this.hq(O,l)&&u===0&&(this.Dg.isManifestless?F=O.L:(F=J.startTime+GeW, J.B&&(F+=J.duration),pj(O,F),J=O.S,F=J.L));F.rY()?(u=this.B,R=To(this.D,F.info.Wq,R.L.info.Wq,l,u.N.length>0&&u.V===0&&this.loader.uL),l=Ay(O),O=g.e(J.L.YD(J,R)),(R=O.B)&&O.CJ.length>1&&(l||O.By.B||O.CJ[0].L!==J.L?O=g.e(J.L.YD(J,O.CJ[0].B)):(l=O.CJ[O.CJ.length-1],F=l.B/R,!l.D&&F<.4&&(O=g.e(J.L.YD(J,R-l.B)))))):(J.XQ<0&&(R=QN(J),R.pr=""+O.B.length,this.loader.isSeeking()&&(R.sk="1"),R.snss=J.V,this.loader.nJ("nosq",R)),O=g.e(F.ZK(J)));if(this.policy.iz)for(J=g.N(O.CJ),R=J.next();!R.done;R=J.next())R.value.type= 6;return O}; HP.prototype.hq=function(O,R){if(!Ay(O)||!O.L.Yo())return!1;var J=this.B.Iu||Obf(O)||R<=this.policy.gk||this.B.SN;this.logger.debug(function(){return"ready to adapt: "+J+", upgrade pending: "+Obf(O)+", health: "+R}); return J}; HP.prototype.eN=function(){g.p.prototype.eN.call(this)}; var GeW=2/24;g.S(QY,g.p);QY.prototype.VL=function(O,R,J){var l;var u=((l=this.S)==null?void 0:l.reason)==="m"?"m":this.S&&e60(this,this.S)?this.S.reason:"a";this.loader.VL(new jI(O,u,J));Uq(this.loader,R,O,!0)}; QY.prototype.zH=function(O,R){for(var J=g.N(this.iz),l=J.next();!l.done;l=J.next())if(l=l.value,l.id===O)return this.HY.MM||(this.B=[l]),this.D=this.Dg.L[O],f1(this.HY)&&(this.SN=!0),O=new jI(this.D,R?"t":"m"),R&&(this.V=!0),O;this.B=[];return null}; QY.prototype.IT=function(O,R,J){J=J===void 0?{}:J;this.L.IT(O,R===void 0?!1:R,J)};df.prototype.setData=function(O,R,J,l){var u=this;l=l===void 0?{}:l;if(J==null?0:J.SG)this.RR=V3A(this,J,l),O.EL=this.By.EL();if(this.bL())return!0;this.data=O;this.L=L1z(O,R,function(F,G){var y;(y=u.Of)==null||y.M1(F,G)},J==null?void 0:J.S); if(!this.L)return!1;this.S=g.nk(this.L,fF0);return!0}; df.prototype.bL=function(){return this.requestType===1}; df.prototype.nK=function(){var O;return((O=this.Of)==null?void 0:O.nK())||0}; df.prototype.isDecorated=function(){var O;return!((O=this.data)==null||!O.Tb)};hy.prototype.encrypt=function(O){this.fZ.exports.AES128CTRCipher_encrypt(this.cipher,O.byteOffset,O.byteLength);return O}; hy.prototype.jN=function(){return this.cipher===0}; hy.prototype.dispose=function(){this.fZ.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};za.prototype.encrypt=function(O,R){return Zi(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:R},this.key,O).catch(function(J){return Promise.reject(J.name+": "+J.message)}).then(function(J){return new Uint8Array(J)}))}; za.prototype.jN=function(){return this.L}; za.prototype.dispose=function(){this.L=!0}; nF.prototype.encrypt=function(O,R){return Zi(this.S(O,R))}; nF.prototype.S=function(O,R){SZ(this.B,R);return this.B.encrypt(O)}; nF.prototype.jN=function(){return this.L}; nF.prototype.dispose=function(){this.L=!0}; cP.prototype.encrypt=function(O,R){return Zi(this.S(O,R))}; cP.prototype.S=function(O,R){R=this.fZ.dD(R);var J=this.L;J.fZ.exports.AES128CTRCipher_setCounter(J.cipher,R.byteOffset);this.fZ.free(R.byteOffset);R=this.fZ.dD(O);this.L.encrypt(R!=null?R:O);return R?this.fZ.Xg(R):O}; cP.prototype.jN=function(){return this.L.jN()}; cP.prototype.dispose=function(){this.L.dispose()}; mG.tE(za,{encrypt:cj2("oan2")});mG.tE(nF,{encrypt:cj2("oap")});mG.tE(cP,{encrypt:cj2("oalw")});Op.prototype.encrypt=function(O,R){var J=this,l=fK("");O.length<=this.PJ&&this.L&&!this.D&&(l=EP(l,function(){return J.L?J.L.encrypt(O,R):fK("wasm unavailable")})); O.length<=this.Sw&&(this.L&&this.D&&(l=EP(l,function(){return J.L?J.L.encrypt(O,R):fK("wasm unavailable")})),l=EP(l,function(){return JXH(J,O,R)})); return EP(EP(l,function(){return gIW(J,O,R)}),function(){return JXH(J,O,R)})}; Op.prototype.S=function(O,R){if(this.L)return this.L.S(O,R);this.B||(this.B=new nF(this.key));return this.B.S(O,R)}; Op.prototype.jN=function(){return this.j}; Op.prototype.dispose=function(){this.j=!0;var O;(O=this.N)==null||mq(O,g.rd);g.rd(this.L);g.rd(this.B)};RF.prototype.encrypt=function(O){(0,g.Q)();return(new g.au(this.L.L)).encrypt(O,this.iv)}; RF.prototype.decrypt=function(O,R){(0,g.Q)();return(new g.au(this.L.L)).decrypt(O,R)}; RF.prototype.jN=function(){return this.B}; RF.prototype.dispose=function(){this.B=!0;g.rd(this.S)};g.S(JJ,g.p);JJ.prototype.B=function(O,R){if(R){R=R instanceof g.qL?R:g_(this,R);var J;((J=this.L.get(O))==null?void 0:s7(J.location))!==s7(R)&&this.L.set(O,new Crz(R,O))}else this.L.delete(O)}; JJ.prototype.load=function(){var O=this,R,J,l,u,F,G,y,w,I,C;return g.A(function(r){switch(r.S){case 1:R=O.L.get(0);g.N0(r,2);var t;if(t=R&&!O.S)t=s7(R.location),t=O.S===wx(t);if(t){r.pJ(4);break}return g.k(r,wxB(O,O.S?2:0),5);case 5:if(J=r.L)O.B(0,J),W0(J)&&O.B(1,AC(J));case 4:g.as(r,3);break;case 2:l=g.Tz(r);g.Aa(l);if(!O.S){r.pJ(3);break}O.S=!1;return g.k(r,O.load(),7);case 7:return r.return();case 3:if(!O.Ru.experiments.Vh("html5_onesie_probe_ec_hosts")){r.pJ(0);break}g.N0(r,9);u=O;F=u.B;G=3;return g.k(r, wxB(O,1),11);case 11:return F.call(u,G,r.L),y=O,w=y.B,I=4,g.k(r,wxB(O,2),12);case 12:w.call(y,I,r.L);g.as(r,0);break;case 9:C=g.Tz(r),g.Aa(C),g.ST(r)}})}; JJ.prototype.J=function(){var O=this,R,J;return g.A(function(l){g.nP(O.V);R=g.tB(O.Ru.experiments,"html5_onesie_prewarm_max_lact_ms");if(TT()>=R)return l.return();(J=O.L.get(0))&&yXL(O,J);g.ST(l)})}; var GqL={W3q:0,vzz:1,S$Q:2,joR:3,cxU:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};oI2.prototype.decrypt=function(O){var R=this,J,l,u,F,G,y;return g.A(function(w){switch(w.S){case 1:if(rXs(R))return w.return();R.S=!0;R.gR.Vs("omd_s");J=new Uint8Array(16);Es()?l=new g.DL(O):u=new g.au(O);case 2:if(!R.L.length||!R.L[0].isEncrypted){w.pJ(4);break}F=R.L.shift();if(!l){G=u.decrypt(F.buffer.I1(),J);w.pJ(5);break}return g.k(w,l.decrypt(F.buffer.I1(),J),6);case 6:G=w.L;case 5:y=G;tNA(J);var I=R.gR,C=F.videoId,r=F.PM,t=F.formatId,Z=new SX([y]),V;(V=un(I.f1,C))==null||ky(V,r,t,Z);w.pJ(2); break;case 4:R.gR.Vs("omd_c"),FY(R),R.S=!1,R.gR.tF(),g.ST(w)}})}; oI2.prototype.enqueue=function(O,R,J,l,u){this.L.push({videoId:O,PM:R,formatId:J,buffer:l,isEncrypted:u});this.S||FY(this)};var vIz=!!Uint8Array.prototype.copyWithin,GK=[],Zsh=[],SE_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],yp=[],Kv=[],w_=[],VNB=[];Cv.prototype.uE=function(O){return g.acs(new g.fcx(O))}; Cv.prototype.BC=function(O){function R(G){if(!G.done)return F.append(G.value),u.read().then(function(y){return R(y)})} if(!("DecompressionStream"in window))return fK("native decompression unavailable");var J=new DecompressionStream("gzip"),l=J.writable.getWriter();l.write(O).then(function(){return l.close()}); var u=J.readable.getReader(),F=new SX([]);return EP(mq(mq(Zi(u.read()),R),function(){return F.I1()}),function(G){return fK(G.message)})}; Cv.prototype.iE=function(O,R){var J=void 0,l=R.dD(O);l&&(J=l.byteOffset,O=l);l=R.exports.getInflatedSize(O.byteOffset,O.length);if(l===0)return fK("bad compressed input");var u=R.malloc(l);if(R.exports.inflateGzip(O.byteOffset,O.length,u))return R.free(u),fK("inflateGzip failed");J&&R.free(J);return Zi(new Uint8Array(R.exports.memory.buffer,u,l))}; mG.tE(Cv,{uE:function(O){return{profile:"gzjb",jU:Math.ceil(O.byteLength/16)}}, BC:function(O){return{profile:"gznb",jU:Math.ceil(O.byteLength/16)}}, iE:function(O){return{profile:"gzwb",jU:Math.ceil(O.byteLength/16)}}});g.S(kqL,Dr);g.f=kqL.prototype;g.f.tF=function(){this.f1.tF()}; g.f.O4=function(O,R){switch(O){case 10:var J=UX(R,Xbp);O=J.ve1;var l=!1;switch(O){case 0:this.B=!J.s7.XqS;this.iv=J.s7.iv;break;case 2:break;case 23:var u=this.f1;J=J.nHz;u.Vs("omp_r");J.videoId&&(u.Mt=J.videoId);u.Mt!==u.videoData.videoId&&(u.videoData.c3Q=u.Mt,u.nJ("ompp","vid."+u.Mt));u.zI=!0;break;case 24:J=this.f1;J.Vs("omp_c");J.zI=!1;J.VF=!1;var F=(u=J.wS)==null?void 0:u.get(J.Mt);J.notifySubscribers(J.Mt);F!=null&&(F.L=!0);oF(J);break;default:l=!0}this.f1.yY&&this.f1.nJ("ombup","id.10;pt."+ O+";len."+R.getLength()+(l?";ignored.1":""));this.N=O;break;case 11:W5f(this,R);break;case 12:this.xf(R,!0);break;case 37:R=UX(R,Tk_);(R.nu||R.FV)&&R.videoId&&this.f1.oi.set(R.videoId,R);break;case 60:this.XY(R);break;case 47:this.Z("html5_server_playback_start_policy")&&(R=UX(R,khH),this.f1.playbackStartPolicy=R);break;case 35:this.Ui(R);break;case 45:this.m5(R);break;case 66:this.Dl(R);break;default:this.f1.yY&&this.f1.nJ("ombup","id."+O+";len."+R.getLength()+";ignored.1")}}; g.f.TP=function(O){this.f1.TP(O)}; g.f.XY=function(O){O=UX(O,K3);this.f1.XY(O)}; g.f.m5=function(O){O=UX(O,ye);this.f1.m5(O)}; g.f.yz=function(O){var R=O.PM,J=O.RT,l=O.bR,u=O.TW,F=O.Y5,G=O.startMs,y=O.durationMs,w=O.timeRange,I=O.AP,C=bi(O),r=so_.has(L8[""+O.itag]);J&&this.Vs(r?"oais_r":"ovis_r");var t=this.L[C]!==void 0;this.f1.yY&&this.f1.nJ("ombup","id.20;hid."+R+";fid."+C);var Z=O.videoId||"";this.S[R]=C;this.D[R]=Z;t||(this.L[C]={videoId:Z,Co:!1,NT:r,headers:[]});this.L[C].headers.push(O);this.f1.tZ(Z,C,r,{PM:R,RT:!!J,bR:l!=null?l:-1,Y5:F!=null?F:-1,startMs:G!=null?G:-1,durationMs:y!=null?y:-1,AP:I!=null?I:0,TW:u,timeRange:w})}; g.f.xf=function(O,R){var J=O.getUint8(0);this.f1.yY&&this.f1.nJ("ombup","id."+(R?12:21)+";len."+O.getLength()+";hid."+J);if(O.getLength()!==1){O=O.split(1).cP;var l=this.S[J]||null,u=this.D[J]||"";l&&(this.jz(this.L[l].NT?"oafs_r":"ovfs_r"),this.queue.enqueue(u,J,l,O,R))}}; g.f.Gg=function(O){var R=O.getUint8(0);this.f1.yY&&this.f1.nJ("ombup","id.22;len."+O.getLength()+";hid."+R);O=this.S[R]||null;var J=this.D[R]||"";if(O)if(this.Z("html5_use_ump_request_slicer")){var l=this.queue;l.L.push({videoId:J,PM:R,formatId:O,isEncrypted:!1,lY:!0});l.S||FY(l)}else this.f1.Gg(J,R,O)}; g.f.Ew=function(O){this.f1.Ew(O)}; g.f.Pa=function(O,R){var J=this,l,u,F,G,y,w,I,C,r,t;return g.A(function(Z){switch(Z.S){case 1:J.f1.Pa();l=O.I1();if(!R){F=l;Z.pJ(2);break}return g.k(Z,L5H(J.f1,l,J.iv),3);case 3:F=Z.L;case 2:u=F;if(!J.f1.enableCompression){Z.pJ(4);break}y=(G=performance)==null?void 0:G.now();return g.k(Z,Xxx(u),5);case 5:u=Z.L,J.f1.nJ("decompression",{ds:"DecompressionStream"in window,rt:((w=performance)==null?NaN:w.now())-y});case 4:try{I=UX(u,CN2)}catch(V){return C=V instanceof Error?{name:V.name,message:V.message}: {},C.webcrypto=""+ +!!Es(),C.enc=""+ +J.B,r=new MC("onesie.response.parse",C),Z.return(Promise.reject(r))}qE2(I);t=g.$u(I.body);return Z.return(t)}})}; g.f.Ui=function(O){this.Z("html5_consume_onesie_next_request_policy_for_sabr")&&(O=UX(O,MW_),this.f1.Ui(O))}; g.f.Dl=function(O){O={PO:Bg(new sX(O),1,WCf)};this.f1.Dl(O)}; g.f.Vs=function(O){this.f1.Vs(O)}; g.f.jz=function(O){return this.f1.jz(O)}; g.f.Z=function(O){return this.f1.Z(O)};g.S(tJ,g.p);g.f=tJ.prototype;g.f.TK=function(O){var R,J;return((J=(R=this.wS)==null?void 0:R.get(O))==null?void 0:J.TK())||[]}; g.f.zb=function(O,R){var J;return!((J=un(this,R))==null||!J.zb(O))}; g.f.C$=function(O,R){var J;return((J=un(this,R))==null?void 0:J.C$(O))||[]}; g.f.eV=function(O,R){var J;return((J=un(this,R))==null?void 0:J.eV(O))||[]}; g.f.UZ=function(O){this.state=O;this.notifySubscribers()}; g.f.bL=function(){return!1}; g.f.yO=function(){return!1}; g.f.Qb=function(){}; g.f.Vs=function(O){this.LJ.Vs(O)}; g.f.jz=function(O){return this.LJ.jz(O)}; g.f.IY=function(O,R,J,l){J||this.nZ.IY(l);return!1}; g.f.Uw=function(O,R){this.gR.Uw(O,R)}; g.f.u3=function(){this.Vs("orfb");this.md=!0;if(YEA(this)&&this.xhr){var O={rc:this.xhr.status,lb:this.xhr.QY(),rt:(1E3*gOs(this.nZ)).toFixed(),shost:g.vQ(this.KT),trigger:"o1"};this.nJ("pathprobe",$w(O))}}; g.f.Pa=function(){this.Vs("opr_r");this.W0=!0}; g.f.tZ=function(O,R,J,l){if(this.wS){if(!this.wS.has(O)){var u=new v8(this);this.wS.set(O,u);g.H(this,u)}var F;(F=this.wS.get(O))==null||F.tZ(R,J,l);oF(this);J||(this.TV=l.Y5)}else oF(this)}; g.f.TP=function(O){this.cC=O;O.fQ!=null&&this.LJ.ZS(O.fQ)}; g.f.XY=function(O){this.wQ=O}; g.f.Ui=function(O){O.videoId&&this.Ev.set(O.videoId,O)}; g.f.tF=function(){if(this.wS)for(var O=g.N(this.wS.keys()),R=O.next();!R.done;R=O.next()){var J=void 0;(J=this.wS.get(R.value))==null||J.rQ()}}; g.f.m5=function(O){this.U7=O}; g.f.Dl=function(O){if(O==null?0:O.PO)if(O=O.PO.Ma){O=g.N(O);for(var R=O.next();!R.done;R=O.next())R=R.value,R.videoId&&this.VR.set(R.videoId,R)}}; g.f.nJ=function(O,R,J){this.LJ.nJ(O,R,J===void 0?!1:J)}; g.f.Gg=function(O,R,J){var l;(l=un(this,O))==null||l.Gg(R,J)}; g.f.Ew=function(O){this.vX.set(O.videoId,O)}; g.f.fetch=function(){var O=this,R,J,l,u,F,G,y,w,I,C,r,t,Z,V,m,E,a,v,b,W,B;return g.A(function(z){switch(z.S){case 1:O.logger.debug("Onesie fetch started.");O.U5?O.aB.start():O.gf.start();O.Vs("or_i");R=O.Ru.experiments.Vh("html5_onesie_verbose_timing");J={};l=(0,g.Q)();u=function(Y){R&&(J[Y]=(0,g.Q)()-l)}; u("loc_s");if(F=efs(O.videoData,O.Gw)){z.pJ(2);break}u("loc_async");G=g.tB(O.Ru.experiments,"html5_onesie_redirector_timeout_ms");return g.k(z,Prs(O.videoData,O.Gw,G),3);case 3:F=z.L;case 2:if(!F)return O.logger.info("Onesie URL creation failed."),y={url:"0"},w=new MC("onesie.unavailable.hotconfig",y),O.CD(w),z.return(O.Ox);O.RR=s7(F);u("loc_e");I=g.lr(O.Ru,g.pQ(O.videoData));C=!!I.L;if(!C){r=I.getValue();z.pJ(4);break}return g.k(z,I.L,5);case 5:r=z.L;case 4:t=r;O.Z("html5_log_onesie_empty_oauth")&& !t&&O.nJ("no_token",{async:C});u("oauth");Z=Bys(O.playerRequest,O.Ru,O.videoData,t,wx(O.RR));g.N0(z,6);if(!QQs(O,Z)){u("or_s_sync");O.gg=x_s(Z,O.kZ,O.Ru,O.LJ,O.FE.onesieUstreamerConfig,(V=O.videoData.Tv)==null?void 0:V.Z7);z.pJ(8);break}u("or_s_async");return g.k(z,jQz(Z,O.kZ,O.Ru,O.LJ,O.FE.onesieUstreamerConfig,(m=O.videoData.Tv)==null?void 0:m.Z7),9);case 9:O.gg=z.L;case 8:g.as(z,7);break;case 6:return E=g.Tz(z),O.logger.info("Failed to create OnesieRequestProto."),O.CD(E),z.return(O.Ox);case 7:return u("or_e"), R&&O.nJ("oreqvt",J),O.enableCompression=O.gg.Lq.vG,O.Vs("osor"),a=Cos(),v=g.nk(O.gg,dJT),b={method:"POST",body:v,headers:{"Content-Type":"text/plain",Referer:location.origin}},W=O.Z("html5_onesie_media_capabilities"),px0(F,O.videoData,hfs(O),W),O.logger.debug("Starting Onesie network request."),O.yY&&O.nJ("ombrs","1"),B=O.LJ.T().schedule,O.nZ=new Ya(O,{B3:B,vK:O.yY,gA:function(Y,gh){O.LJ.Di(Y,gh)}, xz:!0}),F.set("rn",""+O.nZ.requestNumber),O.KT=F.Y8(),Lj(O.nZ,O.KT),O.Vs("or_p"),O.xhr=i9(new DW(F),a,O.nZ,Jj,b),O.E7.start(),z.return(O.Ox)}})}; g.f.R4=function(){return 2}; g.f.Wt=function(){this.Vs("orh_r")}; g.f.rX=function(){!this.md&&this.xhr.QY()&&this.u3();if(this.C9&&!this.U5){var O;(O=this.nM)==null||O.start()}this.xd()}; g.f.bH=function(O){O=O===void 0?!1:O;this.logger.debug("onXhrDone");this.xd();if(!(this.jN()||this.state>=4)){var R=r_(this),J=this.xhr;R.rc=J.status;O&&(R.ab=!0);if(J.HH()){var l="onesie.net";R.msg=J.HH()}else J.status>=400?l="onesie.net.badstatus":J.Ir()?this.W0||(l="onesie.response.noplayerresponse"):l=J.status===204?"onesie.net.nocontent":"onesie.net.connect";l?this.CD(new MC(l,R)):(this.Vs("or_fs"),this.nZ.oA((0,g.Q)(),J.QY(),0),this.UZ(4),this.yY&&this.nJ("rqs",R));this.yY&&this.nJ("ombre", "ok."+ +!l);this.VF=!1;oF(this);sQL(this.gR);if(!this.U5){this.gf.stop();var u;(u=this.nM)==null||u.stop()}var F;if(O=(F=this.Gw)==null?void 0:Ics(F))for(F=0;F1E3){var O;(O=this.nZ)==null||O.JF((0,g.Q)());O=r_(this);if(this.Ru.DA()&&this.xhr instanceof cF){var R=this.xhr;O.xrs=R.xhr.readyState;O.xpb=R.L.getLength();O.xdc=R.B}this.CD(new MC("net.timeout",O))}}else(0,g.Q)()-this.nZ.L>1E4&&((R=this.nZ)==null||R.JF((0,g.Q)()),this.zA());this.isComplete()||this.aB.start()}}; g.f.zA=function(){this.logger.info("Onesie request timed out");this.VF=!1;if(!oF(this)){var O=r_(this);O.timeout="1";this.CD(new MC("onesie.request",O))}}; g.f.CD=function(O){var R=this;O=kw(O);this.C9?this.LJ.sZ(O):(this.Ox.reject(O),this.C9=!0);sQL(this.gR);this.U5||this.gf.stop();this.Vs("or_fe");var J,l;(J=this.Gw)==null||(l=Ics(J))==null||l.forEach(function(u){R.nJ("pathprobe",u)}); this.UZ(5);this.dispose()}; g.f.isComplete=function(){return this.state>=3}; g.f.dL=function(){return this.state===4}; g.f.RD=function(O){var R,J;return this.isComplete()||!!((R=this.wS)==null?0:(J=R.get(O))==null?0:J.L)}; g.f.Zm=function(){return!1}; g.f.dB=function(){return this.state===5}; g.f.notifySubscribers=function(O){for(var R=0;R102400&&!this.xY&&(this.Vs("or100k"),this.xY=!0);if(O.ZO()){var R=O.Tt(),J=R.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+J}); this.yY&&this.nJ("ombrss","len."+J);this.Mx.feed(R)}if(this.wS)for(var l=g.N(this.wS.keys()),u=l.next();!u.done;u=l.next()){var F=u.value;O=void 0;(O=this.wS.get(F))==null||O.rQ();this.notifySubscribers(F)}}catch(G){this.CD(G)}}; g.f.FW=function(){return this.nZ.requestNumber}; g.f.Yv=function(O){return this.vX.get(O)};g.S(nIT,g.p);g.f=nIT.prototype;g.f.zN=function(O,R){this.Hq=void 0;rdh(this);C1B(this,O,R)}; g.f.bk=function(O){if(this.L.length===0)return!1;var R=this.L[0];return R instanceof tJ?O===this.loader.getCurrentTime()*1E3:!(R instanceof s0&&h62(R.info))&&Math.abs(R.x6()-O)<50}; g.f.Ui=function(O){this.S=O;this.Hq=(0,g.Q)()+(O.backoffTimeMs||0)}; g.f.MA=function(O,R){if(O.action===void 0){var J=this.LJ.Sc();J!==void 0&&this.loader.DU(J)}else if(O.action!==0||!this.JR)switch(O.action===0&&this.policy.l6&&(O.action=2),J={},J.reason=O.Nu,J.action=O.action,J.rn=R,O.action){case 1:this.policy.B&&this.J&&this.J.RN(void 0,void 0,J);break;case 0:this.JR=!0;this.videoData.Zv()&&this.policy.B&&this.J&&this.J.RN(void 0,void 0,J,!1);this.loader.Yw(J);break;case 2:this.policy.ME?(bqT(O.Nu)!=="sabr.config"&&delete J.reason,this.loader.handleError(bqT(O.Nu), J,1)):this.loader.handleError("sabr.config",J,1);break;case 3:this.policy.SG&&((O=this.Dg.V)!=null&&(O.V=!0),this.loader.handleError("sabr.hostfallback",J))}}; g.f.pN=function(O){O&&(this.loader.nJ("sabrctxt",{onsbrctxt:O.type,scp:O.scope,dflt:O.sendByDefault}),O.type&&O.sendByDefault&&this.XA.add(O.type),O.scope!==2&&(O.type&&this.videoData.sabrContextUpdates.set(O.type,O),this.LJ.pN(O)))}; g.f.Pv=function(){}; g.f.m5=function(O){if(O.Kn!==void 0&&O.td){var R=O.Kn/O.td;this.audioTrack.V=!1;this.videoTrack.V=!1;if(this.policy.Hq||this.policy.nD||this.policy.Ek)this.loader.Al.S=!1;this.loader.vM(R,1);if(this.LJ.getCurrentTime()!==R){var J={bK:"sabr_seek",Yu:!0,QQ:!0};O.seekSource&&(J.seekSource=O.seekSource);xa(this.loader,R+.1,J)}}}; g.f.onSnackbarMessage=function(O){this.LJ.publish("onSnackbarMessage",O)}; g.f.TP=function(O){O.VT&&O.aN&&se(this.Dg,O.VT,O.aN);this.policy.AA&&(O.yx&&O.I6&&(this.Dg.k5=O.yx/O.I6),O.eg&&O.wM&&(this.Dg.oa=O.eg/O.wM));this.policy.Tn&&TF(this.videoData)&&!this.videoData.Hq&&O.aN&&this.loader.vM(O.aN,1E3);O.fQ!=null&&this.LJ.ZS(O.fQ);this.policy.XW&&O.Oj&&(O=((0,g.Q)()-O.Oj)/1E3,this.loader.yN.VB(1,O))}; g.f.Pt=function(O){this.loader.Pt(O)}; g.f.nX=function(O){return this.XA.has(O)}; g.f.Wv=function(O,R,J){this.policy.S&&this.loader.nJ("sabrctxtplc",{start:O?O.join("_"):"",stop:R?R.join("_"):"",discard:J?J.join("_"):""});if(O){O=g.N(O);for(var l=O.next();!l.done;l=O.next())this.XA.add(l.value)}if(R)for(R=g.N(R),O=R.next();!O.done;O=R.next())O=O.value,this.XA.has(O)&&this.XA.delete(O);if(J)for(J=g.N(J),R=J.next();!R.done;R=J.next())if(R=R.value,this.videoData.sabrContextUpdates.has(R)&&(this.videoData.sabrContextUpdates.delete(R),R===3&&(this.videoData.du="")),this.policy.W&&this.L.length)for(O= g.N(this.L),l=O.next();!l.done;l=O.next())if(l=l.value,!(l instanceof tJ)){var u=void 0;((u=l.Te)==null?void 0:u.type)===R&&(l.Te=void 0)}}; g.f.Rq=function(){}; g.f.WX=function(O){this.D=O}; g.f.K0=function(O){this.Qh=O}; g.f.oL=function(O,R){tjT(this.policy,O,4,R)}; g.f.Dl=function(O){if(O==null?0:O.PO)if(O=O.PO.Ma){O=g.N(O);for(var R=O.next();!R.done;R=O.next())if(R=R.value,R.formatId){var J=this.Dg.B.get(bi(R.formatId));J&&J.info&&(J.info.debugInfo=R.debugInfo)}}}; g.f.t2=function(O){(O=O==null?void 0:O.reloadPlaybackParams)&&this.LJ.publish("reloadplayer",O)}; g.f.Ed=function(){return this.LJ.Ed()||""}; g.f.nK=function(){var O=ko(this.audioTrack,!0)*1E3,R=ko(this.videoTrack,!0)*1E3;return Math.min(O,R)}; g.f.M1=function(O,R){this.loader.nJ(O,R)}; g.f.Gl=function(O){WE0(this.loader,nVh(this.AR,O))}; g.f.eN=function(){g.p.prototype.eN.call(this);this.S=void 0;C1B(this,!0,"i");this.L=[]};ZQx.prototype.BY=function(O,R){if(this.N)return mZz(this,R);if(R=UH(O)){var J=R.S;J&&J.B&&J.L&&(O=O.B.length?O.B[0]:null)&&O.state>=2&&!O.dB()&&O.info.pW===0&&(this.N=O,this.J=J,this.S=R.info,this.j=this.startTimeSecs=Date.now()/1E3,this.D=this.S.startTime)}return NaN}; ZQx.prototype.clear=function(){this.S=this.J=this.N=null;this.L=this.D=this.j=this.startTimeSecs=NaN;this.B=!1};g.S(g.Da,g.p);g.f=g.Da.prototype;g.f.initialize=function(O,R,J){this.logger.debug(function(){return"Initialized, t="+O}); O=O||0;this.policy.L||(R=Op0(this.L),P12(this.LJ,new jI(R.video,R.reason)),this.LJ.B_(new jI(R.audio,R.reason)));this.Dg.isManifestless&&kjL(this.D);this.J&&f4W(this.J,this.videoTrack.L);R=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var l=!this.Dg.isManifestless;this.policy.Fn&&(l=l||this.Dg.q5);this.policy.N1||(this.currentTime=l?O:R);this.policy.Hq&&this.seek(this.getCurrentTime(),{}).cn(function(){}); if(this.policy.L){var u;((u=this.W)==null?0:zfs(u,this.Ed()||""))&&X$W(this)&&vDf(this,this.videoTrack)&&vDf(this,this.audioTrack)&&(tpz(this.S,this.W),this.policy.D&&a4A(this))}else this.Hq&&(Tr_(this,this.videoTrack),Tr_(this,this.audioTrack),KJ2(this.Hq),delete this.Hq);J?(this.policy.O0?(this.w5=J,aF(this,J)):aF(this,!1),g.nP(this.NW)):(J=this.getCurrentTime()===0,xo(this.D,this.videoTrack,this.videoTrack.L,J),xo(this.D,this.audioTrack,this.audioTrack.L,J),this.policy.L&&RUs(this.S,!0),this.policy.Hq|| this.seek(this.getCurrentTime(),{}).cn(function(){}),this.timing.tick("gv")); (this.Dg.g2||this.Dg.hj||this.Dg.N1||this.Dg.AT||this.Dg.zJ)&&this.LJ.Iq(this.Dg)}; g.f.resume=function(){if(this.isSuspended||this.uL){this.logger.debug("Resumed.");this.YI=this.uL=this.isSuspended=!1;try{this.BY()}catch(O){g.WM(O)}}}; g.f.v8=function(){return!this.policy.m1}; g.f.o0=function(O,R){O=O===void 0?!1:O;R=R===void 0?!1:R;this.logger.debug("detaching media source");kF_(this);this.LJ.wR()&&(this.j=NaN);O?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.xS&&this.nJ("loader",{setsmb:1}),this.policy.iz=!0,this.rK()):(this.policy.O0?aF(this,this.w5):aF(this,!1),R||this.rK())}; g.f.setAudioTrack=function(O,R,J){J=J===void 0?!1:J;if(!this.jN()){var l=!isNaN(R);J&&l&&(this.audioTrack.Hq=Date.now(),this.policy.Re&&(this.Td=!0));if(this.policy.L){var u=this.N.zH(O.id,l);this.logger.debug(function(){return"Logging new audio format: "+u.L.info.id}); this.LJ.B_(u)}else{var F=zZA(this.L,O.id,l);this.logger.debug(function(){return"Logging new audio format: "+F.audio.info.id}); this.LJ.B_(new jI(F.audio,F.reason))}if(l&&(J=this.audioTrack.L.index.F8(R),this.nJ("setAudio",{id:O.id,cmt:R,sq:J}),J>=0)){this.policy.L&&this.zN(!0,"mosaic");cfs(this.audioTrack,J,NaN,NaN);!this.policy.vY&&this.Dg.isLive&&k2(this.Dg,J,!1);return}this.LJ.pc()}}; g.f.setPlaybackRate=function(O){O!==this.V.getPlaybackRate()&&this.V.setPlaybackRate(O)}; g.f.QU=function(O){var R=this.S.D;this.S.WX(O);this.nJ("scfidc",{curr:bi(R),"new":bi(O)});O&&bi(O)!==bi(R)&&(this.zN(!0,"caption change"),this.BY())}; g.f.qE=function(O){this.S.K0(O)}; g.f.VL=function(O){var R=O.L.info.NT();this.logger.debug(function(){return"New "+(R?"audio":"video")+" format from SABR: "+G4(O.L.info)}); R?this.LJ.B_(O):P12(this.LJ,O)}; g.f.Gl=function(O){xV(O.CJ[O.CJ.length-1])&&WE0(this,nVh(this.L,O.CJ[0].L))}; g.f.Va=function(){return this.LJ.Va()}; g.f.S$=function(){return this.LJ.S$()}; g.f.Pt=function(O){this.LJ.T().DA()&&this.nJ("sps",{status:O.wc||""});if(O.wc===1)this.LJ.videoData.gk=0;else if(O.wc===2||O.wc===3){var R=!1;if(O.wc===3){R=this.LJ.f_();var J;this.Py=(J=O.Lz1)!=null?J:Infinity;this.LJ.videoData.gk=R+1;(R=qS_(this))&&this.c8(!0)}this.LJ.zv(!0,R)}}; g.f.j9=function(){return this.LJ.j9()}; g.f.Hc=function(){return this.LJ.Hc()}; g.f.Ae=function(O){this.LJ.Ae(O)}; g.f.Gh1=function(){var O,R=(O=this.LJ.FK())==null?void 0:O.getCurrentTime();R?this.LJ.nJ("rms",{cta:R}):g.nP(this.mM)}; g.f.BY=function(){bQ0(this);if(this.EQ&&h1(this.EQ)&&!this.EQ.yE()&&(!this.policy.N1||isFinite(this.getCurrentTime()))){var O=a5(this.videoTrack);O=this.policy.JJ&&O&&O.rR();this.Dg.isManifestless&&this.Dg.N&&TG(this.Dg)?(this.j=TG(this.Dg),this.EQ.SA(this.j)):bs(this.Dg)&&!O?isNaN(this.j)?(this.j=this.getCurrentTime()+3600,this.EQ.SA(this.j)):this.j<=this.getCurrentTime()+1800&&(this.j=Math.max(this.j+1800,this.getCurrentTime()+3600),this.EQ.SA(this.j)):this.EQ.isView||(O=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.j)||this.j!==O)&&O>0&&(this.EQ.SA(O),this.j=O))}if(!this.jN())if(XS(this.Dg)&&this.Dg.dB()){var R=this.Dg;this.handleError("manifest.net.retryexhausted",R.Td?{rc:R.rS}:{rc:R.rS.toString()},1)}else if(this.policy.L)a:{try{ydz(this.S);this.Dg.isManifestless&&this.policy.D&&BF(this.Al);var J;((J=this.EQ)==null?0:cL(J))&&this.CX();RUs(this.S)}catch(G){g.Aa(G);R=G;if(R.message.includes("changeType")){this.nJ("ssap",{exp:R.name,msg:R.message,s:R.stack});break a}this.handleError("fmt.unplayable", {exp:R.name,msg:R.message,s:R.stack},1)}gep(this);g.nP(this.Gd)}else if(!this.Dg.S||!gXT(this.videoTrack)&&!gXT(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.fJ?J=!1:(this.rK(),this.LJ.seekTo(Infinity,{bK:"checkLoaderTracksSync",vM:!0}),J=!0),!J){bQ0(this);this.Dg.isManifestless&&(ibT(this.videoTrack),ibT(this.audioTrack),BF(this.Al),(J=UH(this.videoTrack))&&J.S&&(J=J.S.B&&!this.policy.BQ,this.nJ(J===this.policy.J.ud?"strm":"strmbug",{strm:J,sfmp4:this.policy.J.ud,dfs:this.policy.BQ}, !0)));if(this.EQ)this.CX();else if(this.policy.N){var l;J=!1;if(this.policy.e1){var u;O=g.N([this.videoTrack,this.audioTrack]);for(u=O.next();!u.done;u=O.next()){var F=u.value;for(u=UH(F);u&&F.BD()!==a5(F);u=UH(F))F.W2(u);J=J||!!u}}else(R=UH(this.videoTrack))&&this.videoTrack.W2(R),(l=UH(this.audioTrack))&&this.audioTrack.W2(l);$o(this.videoTrack)&&$o(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(R||l||J)&&Sv(this)}$ZL(this);xo(this.D,this.videoTrack,this.videoTrack.L, !1);xo(this.D,this.audioTrack,this.audioTrack.L,!1);this.policy.AO||eUT(this,this.videoTrack,this.audioTrack);EXp(this.D,this.videoTrack,this.audioTrack);EXp(this.D,this.audioTrack,this.videoTrack);gep(this);this.J&&(R=this.J,R.N?(l=R.j+R.policy.y3,R.B||(l=Math.min(l,R.startTimeSecs+R.policy.RU)),R=Math.max(0,l*1E3-Date.now())):R=NaN,isNaN(R)||g.nP(this.Y9,R));g.nP(this.Gd)}}; g.f.Yw=function(O){this.LJ.Yw(O)}; g.f.CX=function(){var O=this;if(this.EQ){var R=this.EQ.L,J=this.EQ.S;wD0(this,this.audioTrack);wD0(this,this.videoTrack);var l=Brp(this);if(l){if(this.policy.Ql){if(!R.fp()){var u=UH(this.audioTrack);if(u){if(!Ep(this,this.audioTrack,R,u.info))return;UZs(this,this.audioTrack,R,u)}}if(!J.fp()&&(u=UH(this.videoTrack))){if(!Ep(this,this.videoTrack,J,u.info))return;UZs(this,this.videoTrack,J,u)}}this.VS||(this.VS=(0,g.Q)(),this.logger.debug(function(){return"Appends pause start "+O.VS+" reason "+l}), this.policy.S&&this.nJ("apdps",{r:l}))}else if(this.VS&&(p$T(this,this.VS),this.VS=0),HQ_(this),u=!1,dZf(this,this.videoTrack,J)&&(u=!0,Dah(this.timing),T9_(this.timing)),this.EQ&&!this.EQ.fA()&&(dZf(this,this.audioTrack,R)&&(u=!0,aWh(this.timing),$ah(this.timing)),!this.jN()&&this.EQ))!this.policy.m1&&$o(this.videoTrack)&&$o(this.audioTrack)&&h1(this.EQ)&&!this.EQ.yE()&&(J=!1,J=a5(this.audioTrack).L,J=J===this.Dg.L[J.info.id])&&(this.logger.debug("Setting EOS"),a_A(this.EQ),Qe0(this.schedule)),u&& !this.EQ.isAsync()&&Sv(this)}}; g.f.Ng=function(O){var R,J=O===((R=this.EQ)==null?void 0:R.L)?this.audioTrack:this.videoTrack,l;if((l=UH(J))==null?0:l.isLocked){if(this.LJ.T().DA()){var u;this.nJ("eosl",{ounlock:(u=UH(J))==null?void 0:u.info.er()})}var F;R8s(this,O===((F=this.EQ)==null?void 0:F.L))}var G;if(this.policy.Re&&O===((G=this.EQ)==null?void 0:G.L)&&this.KJ){R=this.KJ-this.getCurrentTime();var y;this.LJ.nJ("asl",{l:R,xtag:(y=a5(this.audioTrack))==null?void 0:y.L.info.L});this.Td=!1;this.KJ=0}O.DY()&&O.Ap().length===0&& (O.lT(),this.EQ&&!this.EQ.DY()&&(this.LJ.T().DA()&&this.LJ.nJ("rms",{ld:"seek"}),this.EQ.j=performance.now(),this.LJ.lm(),this.LJ.T().DA()&&g.nP(this.mM)));var w;(w=J.W)!=null&&ib(w,0);this.policy.d5?MjB(this):this.BY()}; g.f.yTS=function(O){if(this.EQ){var R=a5(O===this.EQ.L?this.audioTrack:this.videoTrack);if(O=O.qq())for(var J=0;J5&&O.SN.shift();R=R.XQ;var l;if((l=this.LJ.getVideoData())==null?0:l.enableServerStitchedDai)l=wvp(this.audioTrack,R),J=wvp(this.videoTrack,R),l!==0&&J!==0&&l!==J&&this.handleError("ssdai.avsync",{sq:R,a:l,v:J},0)}}; g.f.I9=function(O,R,J,l){O.info.video&&this.B.I9(R,J,l)}; g.f.AF=function(O){this.L.AF(O)}; g.f.EU=Rs(20); g.f.B7=function(O){this.YH=O;var R;(R=this.audioTrack.J)!=null&&(R.x9=O);(R=this.videoTrack.J)!=null&&(R.x9=O);R=this.S;if(R.V){for(var J=R.loader,l=J.nJ,u=R.V.version,F="",G=g.N(R.V.z4),y=G.next();!y.done;y=G.next()){y=y.value;F+=".cid."+y.clipId;if(y.gs){var w=y.gs;F+=".vid."+w.Qp+(".pst."+w.WN)+(".ps."+w.MB)+(".lst."+w.ARU)+(".ld."+w.f7)+(".ls."+w.R6)}y.M$&&(F+=".nonv."+y.M$.eX)}l.call(J,"ssap",{addcacheclips:1,v:u,tl:F});J=R.V;O.H9(J.z4,J.version)?R.videoData.du=J.version||"":R.loader.nJ("ssap",{v:J.version, tlnu:1});R.V=void 0}}; g.f.vI=function(){return this.YH}; g.f.RL=function(){return this.videoTrack.V||this.audioTrack.V}; g.f.seek=function(O,R){if(this.jN())return bM();if(this.RL())return bM("seeking to head");if(this.policy.Hq&&!isFinite(O))return Lqs(this.Al),g.$t(Infinity);bQ0(this);this.jV=(0,g.Q)();this.policy.L||$ZL(this,O);this.EQ&&this.EQ.L&&this.EQ.S&&!this.LJ.getVideoData().j7&&(this.EQ.L.isLocked()||this.EQ.S.isLocked())&&this.LJ.pc({reattachOnLockedBuffer:1,vsb:""+this.EQ.S.isLocked(),asb:""+this.EQ.L.isLocked()});var J=this.getCurrentTime(),l=this.Al.seek(O,R);this.policy.N1||(this.currentTime=l);H8(this.B, O,J,this.policy.B8&&!R.Yu);Sv(this);return g.$t(l)}; g.f.bk=function(O){return this.policy.L&&this.S.bk(O)}; g.f.nX=function(O){return this.S.nX(O)}; g.f.zN=function(O,R){this.S.zN(O,R)}; g.f.getCurrentTime=function(){if(this.policy.N1){var O=this.Vd()||0;return this.LJ.getCurrentTime()-O}return this.currentTime}; g.f.Rb=function(){return this.audioTrack.L.info}; g.f.L8=function(){return this.videoTrack.L.info}; g.f.u_=function(){return this.audioTrack.L.info.Pq}; g.f.Bl=function(){return this.videoTrack.L.info.Pq}; g.f.eN=function(){try{this.o0(),Al(this.audioTrack),Al(this.videoTrack),eH(this.audioTrack),eH(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.p.prototype.eN.call(this)}catch(O){g.WM(O)}}; g.f.handleError=function(O,R,J){J=J===void 0?0:J;var l=qC(J);O==="fmt.unplayable"&&this.Dg.isLive&&(this.policy.Ql=!1,qO(this.Dg));R=new MC(O,R,J);g.gC(this);$w(R.details);this.LJ.handleError(R);O!=="html5.invalidstate"&&R.errorCode!=="fmt.unplayable"&&O!=="fmt.unparseable"&&l&&this.dispose()}; g.f.sf=function(){var O=a5(this.audioTrack),R=a5(this.videoTrack);O={lct:this.getCurrentTime().toFixed(3),lsk:this.Al.isSeeking(),lmf:this.L.L.isLocked(),lbw:N7(this.schedule).toFixed(3),lhd:fb(this.schedule).toFixed(3),lst:((this.schedule.J.s_()||0)*1E9).toFixed(3),laa:O?O.er():"",lva:R?R.er():"",lar:this.audioTrack.S?this.audioTrack.S.er():"",lvr:this.videoTrack.S?this.videoTrack.S.er():"",laq:""+M9(this.audioTrack),lvq:""+M9(this.videoTrack)};this.EQ&&!this.EQ.fA()&&this.EQ.L&&this.EQ.S&&(O.lab= y9(this.EQ.L.Ap()),O.lvb=y9(this.EQ.S.Ap()));this.VS&&(O.lapt=((0,g.Q)()-this.VS).toFixed(0),O.lapr=Brp(this));this.N1&&(O.lapmabht=((0,g.Q)()-this.N1).toFixed(0),O.lapmabh=PF(this,this.audioTrack).toFixed(0));this.Qh&&(O.lapmvbht=((0,g.Q)()-this.Qh).toFixed(0),O.lapmvbh=PF(this,this.videoTrack).toFixed(0));this.xS&&(O.lapsdai=((0,g.Q)()-this.xS).toFixed(0));return O}; g.f.rK=function(){try{this.policy.L&&this.S.zN(!1,"pending"),this.audioTrack.rK(),this.videoTrack.rK()}catch(O){g.WM(O)}this.policy.N=""}; g.f.cG=function(){return XU(this.V)}; g.f.nJ=function(O,R,J){this.LJ.nJ(O,R,J===void 0?!1:J)}; g.f.Ed=function(){return this.LJ.Ed()}; g.f.vM=function(O,R){O/=R;isNaN(this.timestampOffset)&&I9W(this,O-Math.min(O,this.policy.b6));return(O-this.timestampOffset)*R}; g.f.Vd=function(){return this.timestampOffset}; g.f.isSeeking=function(){return this.Al.isSeeking()}; g.f.OC=function(){this.B.OC()}; g.f.IT=function(O,R,J){R=R===void 0?!1:R;J=J===void 0?{}:J;this.policy.L?this.N.IT(O,R,J):this.L.IT(O,R,J)}; g.f.Cx=function(O,R){if(this.SN&&this.B.Cx(O,this.SN))return I9W(this,this.timestampOffset-R),Sv(this),this.policy.B&&(qO(this.Dg),eH(this.audioTrack),eH(this.videoTrack),this.rK()),!0;R=this.videoTrack.L.index.F8(O);this.handleError("ad.skipfailed",{dec:!!this.SN,t:O.toFixed(3),sq:R});return!1}; g.f.getManifest=function(){return this.Dg}; g.f.isOffline=function(){return!!this.LJ.getVideoData().cotn}; g.f.Di=function(O,R){this.LJ.Di(O,R)}; g.f.mK=function(O){if(this.policy.L)this.S.zN(!0,"utc"),this.BY();else{var R=this.LJ.getVideoData().yB;if(R){var J=this.D;J.dI=O;J.yB=R;jH(this)}}}; g.f.DU=function(O){this.videoTrack.V=!1;this.audioTrack.V=!1;this.Al.S=!1;this.LJ.DU(O)}; g.f.Fj=function(O){this.Al.Fj(O-this.Vd())}; g.f.xm=function(){this.LJ.xm()}; g.f.c8=function(O){O!==this.policy.a8&&((this.policy.a8=O)||this.BY())}; g.f.nR=function(O,R){var J=this.audioTrack.yd,l=this.videoTrack.yd;J&&l&&(J.remove(O,R),l.remove(O,R))}; g.f.pc=function(O){this.LJ.pc(O)}; g.f.Eh=function(O){this.LJ.Eh(O)}; g.f.f_=function(){return this.LJ.f_()}; g.f.Ga=function(){qO(this.Dg);this.rK()};g.f=g.XY.prototype;g.f.i_=function(O,R,J,l,u,F){return this.x9.i_(O,R,J,l,u,F)}; g.f.pQ=function(O,R,J,l,u,F){return this.x9.pQ(O,R,J,l,u,F)}; g.f.e$=function(O){return this.x9.e$(O)}; g.f.qZ=function(O){this.x9.qZ(O)}; g.f.RN=function(O,R,J,l){return this.x9.RN(O,R,J,l)}; g.f.OC=function(){this.x9.OC()}; g.f.Yh=function(O,R){this.x9.Yh(O,R)}; g.f.UM=function(){this.x9.UM()}; g.f.hv=Rs(62);g.f.qM=function(O,R,J){this.x9.qM(O,R,J)}; g.f.JA=Rs(65);g.f.CH=function(O,R,J,l,u,F,G,y,w){this.x9.CH(O,R,J,l,u,F,G,y,w)}; g.f.wN=function(O){this.x9.wN(O)}; g.f.AZ=function(O){return this.x9.AZ(O)}; g.f.QR=function(O){return this.x9.QR(O)};g.S(Qp,g.y8);g.S(Lv,Qp);Lv.prototype.j=function(O,R){if(O&&R){var J=Number(WQ(O,"cpi"))*1+1;isNaN(J)||J<=0||Jthis.B&&(this.B=J,g.nt(this.L)||(this.L={},this.N.stop(),this.S.stop())),this.L[R]=O,g.nP(this.S))}}; Lv.prototype.D=function(){for(var O=g.N(Object.keys(this.L)),R=O.next();!R.done;R=O.next()){var J=R.value;R=this.publish;for(var l=this.B,u=g.ao(this.L[J]),F=[],G=g.N(u[6].split("&")),y=G.next();!y.done;y=G.next())y=y.value,y.indexOf("cpi=")===0?F.push("cpi="+l.toString()):y.indexOf("ek=")===0?F.push("ek="+g.r7(J)):F.push(y);u[6]="?"+F.join("&");J="skd://"+u.slice(2).join("");u=J.length*2;l=new Uint8Array(u+4);l[0]=u%256;l[1]=(u-l[0])/256;for(u=0;u0)for(var J=g.N(this.L),l=J.next();!l.done;l=J.next())if(R===l.value.info.cryptoPeriodIndex){R=!0;break a}R=!1}if(!R){R=(0,g.Q)();a:{J=O.cryptoPeriodIndex;if(!isNaN(J)){l=g.N(this.B.values());for(var u=l.next();!u.done;u=l.next())if(Math.abs(u.value.cryptoPeriodIndex-J)<=1){J=!0;break a}}J=!1}J?(J=O.L,J=Math.max(0,Math.random()*((isNaN(J)?120:J)-30))*1E3):J=0;this.publish("log_qoe",{wvagt:"delay."+J,cpi:O.cryptoPeriodIndex,reqlen:this.L.length, ignore:this.N});J<=0?oex(this,O):this.N||(this.L.push({time:R+J,info:O}),g.nP(this.S,J))}}; Yh.prototype.eN=function(){this.L=[];Qp.prototype.eN.call(this)};var VU={},NLx=(VU.DRM_TRACK_TYPE_AUDIO="AUDIO",VU.DRM_TRACK_TYPE_SD="SD",VU.DRM_TRACK_TYPE_HD="HD",VU.DRM_TRACK_TYPE_UHD1="UHD1",VU);g.S(f9s,g.p);g.S(Ees,g.y8);g.f=Ees.prototype;g.f.Ei=function(O){var R=this;if(!(this.jN()||O.size<=0)){var J={};O.forEach(function(l,u){var F=Ue(R.S)?u:l;u=new Uint8Array(Ue(R.S)?l:u);Ue(R.S)&&j50(u);l=g.RK(u,4);j50(u);u=g.RK(u,4);R.L[l]?R.L[l].status=F:R.L[u]?R.L[u].status=F:R.L[l]={type:"",status:F};R.Ru.Z("html5_authorized_drm_track_types")?(F=R.L[l].type,l=e8_(F),zK(R,F)&&!J[l]&&(R.eW.push(l),J[l]=!0)):(R.N=[],zK(R,R.L[l].type)&&R.eW.push(e8_(R.L[l].type)))}); Wkx(this,",");d_(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.f.error=function(O,R,J,l){this.jN()||(this.publish("licenseerror",O,R,J,l),O==="drm.provision"&&(O=(Date.now()-this.j)/1E3,this.j=NaN,this.publish("ctmp","provf",{et:O.toFixed(3)})));qC(R)&&this.dispose()}; g.f.shouldRetry=function(O,R){return!O&&this.requestNumber===R.requestNumber}; g.f.eN=function(){this.L={};g.y8.prototype.eN.call(this)}; g.f.sf=function(){var O={ctype:this.V.contentType||"",length:this.V.initData.length,requestedKeyIds:this.OQ,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(O.keyStatuses=this.L);return O}; g.f.getInfo=function(){var O=this.N.join();if(hJ(this)){var R=new Set,J;for(J in this.L)this.L[J].status!=="usable"&&R.add(this.L[J].type);O+="/UKS."+Array.from(R)}return O+="/"+this.cryptoPeriodIndex}; g.f.Y8=function(){return this.url};g.S(nv,g.p);g.f=nv.prototype;g.f.Yl=function(O){if(this.D){var R=O.messageType||"license-request";this.D(new Uint8Array(O.message),R)}}; g.f.Ei=function(){this.J&&this.J(this.L.keyStatuses)}; g.f.onClosed=function(){this.jN()||g.UU("xboxone")&&this.B&&this.B("closedShouldNotRetry")}; g.f.O7=function(O){this.D&&this.D(O.message,"license-request")}; g.f.w_=function(O){if(this.B){if(this.S){var R=this.S.error.code;O=this.S.error.systemCode}else R=O.errorCode,O=O.systemCode;this.B("t.prefixedKeyError;c."+R+";sc."+O,R,O)}}; g.f.FF=function(){this.j&&this.j()}; g.f.update=function(O){var R=this;if(this.L)return this.L.update(O).then(null,Mh(function(J){Luf(R,"t.update",J)})); this.S?this.S.update(O):this.element.addKey?this.element.addKey(this.V.keySystem,O,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.V.keySystem,O,this.initData,this.sessionId);return sU()}; g.f.eN=function(){this.L&&(this.W?this.L.close().catch(g.Aa):this.L.close());this.element=null;g.p.prototype.eN.call(this)};g.S(cA,g.p);g.f=cA.prototype;g.f.setServerCertificate=function(){return this.S.setServerCertificate?this.L.flavor==="widevine"&&this.L.S5?this.S.setServerCertificate(this.L.S5):Lp(this.L)&&this.L.Gd?this.S.setServerCertificate(this.L.Gd):null:null}; g.f.createSession=function(O,R){var J=O.initData;if(this.L.keySystemAccess){R&&R("createsession");var l=this.S.createSession();QP(this.L)?J=hnT(J,this.L.Gd):Lp(this.L)&&(J=tlf(J)||new Uint8Array(0));R&&R("genreq");O=l.generateRequest(O.contentType,J);var u=new nv(null,null,null,l,null,this.J);O.then(function(){R&&R("genreqsuccess")},Mh(function(G){Luf(u,"t.generateRequest",G)})); return u}if(x2(this.L))return noh(this,J);if(jQ(this.L))return znx(this,J);if((l=this.element)==null?0:l.generateKeyRequest)this.element.generateKeyRequest(this.L.keySystem,J);else{var F;(F=this.element)==null||F.webkitGenerateKeyRequest(this.L.keySystem,J)}return this.N=new nv(this.element,this.L,J,null,null,this.J)}; g.f.X0=function(O){var R=cyB(this,O);R&&R.O7(O)}; g.f.QM=function(O){var R=cyB(this,O);R&&R.w_(O)}; g.f.qg=function(O){var R=cyB(this,O);R&&R.FF(O)}; g.f.getMetrics=function(){if(this.S&&this.S.getMetrics)try{var O=this.S.getMetrics()}catch(R){}return O}; g.f.eN=function(){this.B=this.S=null;var O;(O=this.N)==null||O.dispose();O=g.N(Object.values(this.j));for(var R=O.next();!R.done;R=O.next())R.value.dispose();this.j={};g.p.prototype.eN.call(this);delete this.element};g.f=OR.prototype;g.f.get=function(O){O=this.findIndex(O);return O!==-1?this.values[O]:null}; g.f.remove=function(O){O=this.findIndex(O);O!==-1&&(this.keys.splice(O,1),this.values.splice(O,1))}; g.f.removeAll=function(){this.keys=[];this.values=[]}; g.f.set=function(O,R){var J=this.findIndex(O);J!==-1?this.values[J]=R:(this.keys.push(O),this.values.push(R))}; g.f.findIndex=function(O){return g.ob(this.keys,function(R){return g.bQ(O,R)})};g.S(JJf,g.y8);g.f=JJf.prototype;g.f.RhU=function(O){this.pE({onecpt:1});O.initData&&laH(this,new Uint8Array(O.initData),O.initDataType)}; g.f.x7J=function(O){this.pE({onndky:1});laH(this,O.initData,O.contentType)}; g.f.hC=function(O){this.pE({onneedkeyinfo:1});this.Ru.Z("html5_eme_loader_sync")&&(this.J.get(O.initData)||this.J.set(O.initData,O));ivf(this,O)}; g.f.aC=function(O){this.B.push(O);R$(this)}; g.f.createSession=function(O){var R=FDz(this)?fQp(O):g.RK(O.initData);this.S.get(R);this.iz=!0;O=new Ees(this.videoData,this.Ru,O,this.drmSessionId);this.S.set(R,O);O.subscribe("ctmp",this.Vx,this);O.subscribe("keystatuseschange",this.Ei,this);O.subscribe("licenseerror",this.Tj,this);O.subscribe("newlicense",this.g_,this);O.subscribe("newsession",this.Sp,this);O.subscribe("sessionready",this.jp,this);O.subscribe("fairplay_next_need_key_info",this.MC,this);this.Ru.Z("html5_enable_vp9_fairplay")&&O.subscribe("qualitychange", this.RZ,this);O.subscribe("sabrlicenseconstraint",this.zPN,this);XD0(O,this.N)}; g.f.g_=function(O){this.jN()||(this.pE({onnelcswhb:1}),O&&!this.heartbeatParams&&(this.heartbeatParams=O,this.publish("heartbeatparams",O)))}; g.f.Sp=function(){this.jN()||(this.pE({newlcssn:1}),this.B.shift(),this.iz=!1,R$(this))}; g.f.jp=function(){if(x2(this.L)&&(this.pE({onsnrdy:1}),this.Qh--,this.Qh===0)){var O=this.SN,R,J;(R=O.element)==null||(J=R.msSetMediaKeys)==null||J.call(R,O.B)}}; g.f.Ei=function(O){if(!this.jN()){!this.xS&&this.videoData.Z("html5_log_drm_metrics_on_key_statuses")&&(GKx(this),this.xS=!0);this.pE({onksch:1});var R=this.RZ;if(!hJ(O)&&g.dj&&O.S.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var J="large";else{J=[];var l=!0;if(hJ(O))for(var u=g.N(Object.keys(O.L)),F=u.next();!F.done;F=u.next())F=F.value,O.L[F].status==="usable"&&J.push(O.L[F].type),O.L[F].status!=="unknown"&&(l=!1);if(!hJ(O)||l)J=O.N;J=bop(J)}R.call(this,J);this.publish("keystatuseschange", O)}}; g.f.Vx=function(O,R){this.jN()||this.publish("ctmp",O,R)}; g.f.MC=function(O,R){this.jN()||this.publish("fairplay_next_need_key_info",O,R)}; g.f.Tj=function(O,R,J,l){this.jN()||(this.videoData.Z("html5_log_drm_metrics_on_error")&&GKx(this),this.publish("licenseerror",O,R,J,l))}; g.f.Lz=function(){return this.V}; g.f.RZ=function(O){var R=g.C3("auto",O,!1,"l");if(this.videoData.Ra){if(this.V.equals(R))return}else if(zRW(this.V,O))return;this.V=R;this.publish("qualitychange");this.pE({updtlq:O})}; g.f.zPN=function(O){this.videoData.sabrLicenseConstraint=O}; g.f.eN=function(){this.L.keySystemAccess&&this.element&&(this.OQ?this.element.setMediaKeys(null).catch(g.Aa):this.element.setMediaKeys(null));this.element=null;this.B=[];for(var O=g.N(this.S.values()),R=O.next();!R.done;R=O.next())R=R.value,R.unsubscribe("ctmp",this.Vx,this),R.unsubscribe("keystatuseschange",this.Ei,this),R.unsubscribe("licenseerror",this.Tj,this),R.unsubscribe("newlicense",this.g_,this),R.unsubscribe("newsession",this.Sp,this),R.unsubscribe("sessionready",this.jp,this),R.unsubscribe("fairplay_next_need_key_info", this.MC,this),this.Ru.Z("html5_enable_vp9_fairplay")&&R.unsubscribe("qualitychange",this.RZ,this),R.dispose();this.S.clear();this.j.removeAll();this.J.removeAll();this.heartbeatParams=null;g.y8.prototype.eN.call(this)}; g.f.sf=function(){for(var O={systemInfo:this.L.sf(),sessions:[]},R=g.N(this.S.values()),J=R.next();!J.done;J=R.next())O.sessions.push(J.value.sf());return O}; g.f.getInfo=function(){return this.S.size<=0?"no session":""+this.S.values().next().value.getInfo()+(this.D?"/KR":"")}; g.f.pE=function(O,R){R=R===void 0?!1:R;this.jN()||($w(O),(this.Ru.DA()||R)&&this.publish("ctmp","drmlog",O))};g.S(Cn0,g.p);g.f=Cn0.prototype;g.f.jh=function(){return!!this.bN}; g.f.G5=function(){return this.S}; g.f.handleError=function(O){var R=this;fas(this,O);if((O.errorCode!=="html5.invalidstate"&&O.errorCode!=="fmt.unplayable"&&O.errorCode!=="fmt.unparseable"||!Vvx(this,O.errorCode,O.details))&&!EhL(this,O)){if(this.bz.SN!=="yt"&&N_p(this,O)&&this.videoData.XW&&(0,g.Q)()/1E3>this.videoData.XW&&this.bz.SN==="hm"){var J=Object.assign({e:O.errorCode},O.details);J.stalesigexp="1";J.expire=this.videoData.XW;J.init=this.videoData.vx/1E3;J.now=(0,g.Q)()/1E3;J.systelapsed=((0,g.Q)()-this.videoData.vx)/1E3;O= new MC(O.errorCode,J,2);this.LJ.Qk(O.errorCode,2,"SIGNATURE_EXPIRED",$w(O.details))}if(qC(O.severity)){var l;J=(l=this.LJ.loader)==null?void 0:l.L.L;if(this.bz.Z("html5_use_network_error_code_enums"))if(SpA(O)&&J&&J.isLocked())var u="FORMAT_UNAVAILABLE";else if(this.bz.j||O.errorCode!=="auth"||O.details.rc!==429)O.errorCode==="ump.spsrejectfailure"&&(u="HTML5_SPS_UMP_STATUS_REJECTED");else{u="TOO_MANY_REQUESTS";var F="6"}else SpA(O)&&J&&J.isLocked()?u="FORMAT_UNAVAILABLE":this.bz.j||O.errorCode!== "auth"||O.details.rc!=="429"?O.errorCode==="ump.spsrejectfailure"&&(u="HTML5_SPS_UMP_STATUS_REJECTED"):(u="TOO_MANY_REQUESTS",F="6");this.LJ.Qk(O.errorCode,O.severity,u,$w(O.details),F)}else this.LJ.publish("nonfatalerror",O),l=/^pp/.test(this.videoData.clientPlaybackNonce),this.sZ(O.errorCode,O.details),l&&O.errorCode==="manifest.net.connect"&&(O="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Q)(),aE(O,"manifest",function(G){R.j=!0;R.nJ("pathprobe",G)}, function(G){R.sZ(G.errorCode,G.details)}))}}; g.f.nJ=function(O,R){this.LJ.ZA().nJ(O,R)}; g.f.sZ=function(O,R){R=$w(R);this.LJ.ZA().sZ(O,R)};Jm.prototype.CV=function(O,R){return(R===void 0?0:R)?{tL:O?ik(this,O):UE,sR:O?bvA(this,O):UE,MzR:O?kK2(this,O):UE,RiN:O?B_s(this,O.videoData):UE,iY:O?Hvf(this,O.videoData,O):UE,LoX:O?MvH(this,O):UE,S0Q:T_s(this)}:{tL:O?ik(this,O):UE}}; Jm.prototype.Vv=function(O){var R;g.bo(this.Ru)&&(R=window.screen&&window.screen.width?new g.so(window.screen.width,window.screen.height):null);R||(R=this.Ru.uZ?this.Ru.uZ.clone():this.yU.OV());(z3||Jy||O)&&R.scale(g.hj());return R}; Jm.prototype.Z=function(O){return this.Ru.Z(O)};g.S(lk,g.p);lk.prototype.onError=function(O){if(O!=="player.fatalexception"||this.provider.Z("html5_exception_to_health"))O==="sabr.fallback"&&(this.encounteredSabrFallback=!0),O.match(i6k)?this.networkErrorCount++:this.nonNetworkErrorCount++}; lk.prototype.send=function(){if(!(this.B||this.L<0)){jFL(this);var O=g.vA(this.provider)-this.L,R="PLAYER_PLAYBACK_STATE_UNKNOWN",J=this.playerState.PH;this.playerState.isError()?R=J&&J.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.d(this.playerState,2)?R="PLAYER_PLAYBACK_STATE_ENDED":g.d(this.playerState,64)?R="PLAYER_PLAYBACK_STATE_UNSTARTED":g.d(this.playerState,16)||g.d(this.playerState,32)?R="PLAYER_PLAYBACK_STATE_SEEKING":g.d(this.playerState,1)&&g.d(this.playerState, 4)?R="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.d(this.playerState,1)?R="PLAYER_PLAYBACK_STATE_BUFFERING":g.d(this.playerState,4)?R="PLAYER_PLAYBACK_STATE_PAUSED":g.d(this.playerState,8)&&(R="PLAYER_PLAYBACK_STATE_PLAYING");J=LIb[NZ(this.provider.videoData)];a:switch(this.provider.Ru.playerCanaryState){case "canary":var l="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":l="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:l="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var u=QF_(this.provider), F=this.S<0?O:this.S-this.L;O=this.provider.Ru.yk+36E5<(0,g.Q)();R={started:this.S>=0,stateAtSend:R,joinLatencySecs:F,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:l,playerCanaryStage:u,isAd:this.provider.videoData.isAd(),liveMode:J,hasDrm:!!g.fQ(this.provider.videoData),isGapless:this.provider.videoData.V,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:FD(this.provider.videoData)};O||g.wj("html5PlayerHealthEvent",R);this.B=!0;this.dispose()}}; lk.prototype.eN=function(){this.B||this.send();window.removeEventListener("error",this.dQ);window.removeEventListener("unhandledrejection",this.dQ);g.p.prototype.eN.call(this)}; var i6k=/\bnet\b/;g.S(Yp_,g.p);Yp_.prototype.eN=function(){h5A(this);g.p.prototype.eN.call(this)};var z5W=/[?&]cpn=/;g.S(uk,g.p);uk.prototype.flush=function(){var O={};this.S&&(O.pe=this.S);this.L.length>0&&(O.pt=this.L.join("."));this.L=[];return O}; uk.prototype.stop=function(){var O=this,R,J,l;return g.A(function(u){if(u.S==1)return g.N0(u,2),g.k(u,(R=O.N)==null?void 0:R.stop(),4);if(u.S!=2)return(J=u.L)&&O.logTrace(J),g.as(u,0);l=g.Tz(u);O.S=in_(l.message);g.ST(u)})}; uk.prototype.logTrace=function(O){this.encoder.reset();this.encoder.add(1);this.encoder.add(O.resources.length);for(var R=g.N(O.resources),J=R.next();!J.done;J=R.next()){J=J.value.replace("https://www.youtube.com/s/","");this.encoder.add(J.length);for(var l=0;l=0?O:g.vA(this.provider),this.iz?lpM.has(this.QI)&&(this.L.size||(this.QI==="PL"?O>=this.S+30:O<=this.OQ+30||O>=this.S+1200&&O<=this.OQ+86400))&&(g.Kn(this,O,"vps",[this.QI]),this.S=O):["PL","B","S"].indexOf(this.QI)>-1&&(this.L.size||O>=this.S+30)&&(g.Kn(this,O,"vps",[this.QI]),this.S=O),this.L.size)){this.sequenceNumber===7E3&&g.Aa(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){I$(this,O);var R=this.provider.LJ.PG(); R=g.N(R);for(var J=R.next();!J.done;J=R.next())J=J.value,this.nJ(J.key,J.value);R=O;J=this.provider.LJ.UU();var l=J.droppedVideoFrames||0,u=J.totalVideoFrames||0,F=l-this.cR,G=u&&!this.WR;l>J.totalVideoFrames||F>5E3?Zn0(this,"html5.badframedropcount","df."+l+";tf."+J.totalVideoFrames):(F>0||G)&&g.Kn(this,R,"df",[F]);this.cR=l;this.WR=u;this.W>0&&(g.Kn(this,O,"glf",[this.W]),this.W=0);yU.isActive()&&(O=yU.sG(),Object.keys(O).length>0&&this.nJ("profile",O));this.AT&&Cn(this,"lwnmow");this.provider.Ru.DA()&& this.provider.Z("html5_record_now")&&this.nJ("now",{wt:(0,g.Q)()});O={};this.provider.videoData.S&&(O.fmt=this.provider.videoData.S.itag,(R=this.provider.videoData.N)&&R.itag!==O.fmt&&(O.afmt=R.itag));O.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(O.adcpn=this.adCpn);this.I0&&(O.addocid=this.I0);this.contentCpn&&(O.ccpn=this.contentCpn);this.Hq&&(O.cdocid=this.Hq);this.provider.videoData.cotn&&(O.cotn=this.provider.videoData.cotn);O.el=W$(this.provider.videoData);O.content_v=ep(this.provider.videoData); O.ns=this.provider.Ru.SN;O.fexp=M2H(this.provider.Ru.experiments).toString();O.cl=(750807867).toString();(R=this.provider.videoData.adFormat||this.adFormat)&&(O.adformat=R);(R=NZ(this.provider.videoData))&&(O.live=R);this.provider.videoData.lC()&&(O.drm=1,this.provider.videoData.D&&(O.drm_system=QoI[this.provider.videoData.D.flavor]||0),this.provider.videoData.drmProduct&&(O.drm_product=this.provider.videoData.drmProduct));G3()&&this.provider.videoData.j&&(O.ctt=this.provider.videoData.j,O.cttype= this.provider.videoData.SU,this.provider.videoData.mdxEnvironment&&(O.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(O.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.g7&&(O.dai_fallback="1")):this.provider.videoData.Ao?O.dai="cs":this.provider.videoData.Lk&&(O.dai="disabled");O.seq=this.sequenceNumber++;if(this.provider.videoData.DF){if(R=this.provider.videoData.DF,O&&R)for(R.ns==="3pp"&&(O.ns="3pp"),this.E8.has(R.ns)&& Cn(this,"hbps"),R.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=R.shbpslc),this.provider.Ru.experiments.Vh("html5_use_server_qoe_el_value")&&this.sQ.delete("el"),J=g.N(Object.keys(R)),l=J.next();!l.done;l=J.next())l=l.value,this.sQ.has(l)||(O[l]=R[l])}else O.event="streamingstats",O.docid=this.provider.videoData.videoId,O.ei=this.provider.videoData.eventId;this.isEmbargoed&&(O.embargoed="1");Object.assign(O,this.provider.Ru.L);if(R=O.seq)R={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+R,serializedWatchEndpointLoggingContext:this.provider.videoData.HDQ},this.serializedHouseBrandPlayerServiceLoggingContext&&(R.serializedHouseBrandPlayerServiceLoggingContext=gX(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(R.playerResponseCpn=this.provider.videoData.playerResponseCpn),GE.length&&(R.decoderInfo=GE),this.provider.LJ.vI()&&(R.transitionStitchType=4,this.N1&&(R.timestampOffsetMsecs=this.N1)),this.remoteControlMode&& (R.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(R.remoteConnectedDevices=this.remoteConnectedDevices),R=g.nk(R,mif),R=g.RK(R,4),this.L.set("qclc",[R]);O=g.s9("//"+this.provider.Ru.BM+"/api/stats/qoe",O);J=R="";l=g.N(this.L.entries());for(u=l.next();!u.done;u=l.next())F=g.N(u.value),u=F.next().value,F=F.next().value,G=void 0,(G=F)!=null&&G.join&&(u="&"+u+"="+F.join(","),u.length>100?J+=u:R+=u);Ck2(this,O+R,J.replace(/ /g,"%20"))}this.L.clear()}}; g.f.Eh=function(O){this.AT=O}; g.f.cX=function(){if(this.provider.videoData.D){var O=this.provider.videoData.D;Cn(this,"eme-"+(O.keySystemAccess?"final":x2(O)?"ms":QP(O)?"ytfp":jQ(O)?"safarifp":"nonfinal"))}}; g.f.kV=Rs(59);g.f.k7=function(O){this.isEmbargoed=O}; g.f.gI=Rs(36);g.f.Tu=Rs(42);g.f.onPlaybackRateChange=function(O){var R=g.vA(this.provider);O&&O!==this.TR&&(g.Kn(this,R,"rate",[O]),this.TR=O);this.iz||this.reportStats(R)}; g.f.nE=Rs(30);g.f.getPlayerState=function(O){if(g.d(O,128))return"ER";if(g.d(O,2048))return"B";if(g.d(O,512))return"SU";if(g.d(O,16)||g.d(O,32))return"S";if(O.isOrWillBePlaying()&&g.d(O,64))return"B";var R=uQk[oe(O)];g.$T(this.provider.Ru)&&R==="B"&&this.provider.LJ.getVisibilityState()===3&&(R="SU");R==="B"&&g.d(O,4)&&(R="PB");return R}; g.f.eN=function(){g.p.prototype.eN.call(this);g.V3(this.j);g.V3(this.mM)}; g.f.Jm=function(O){this.isOffline=O;g.Kn(this,g.vA(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.f.nJ=function(O,R,J){var l=this.CG.indexOf(O)!==-1;l||this.CG.push(O);if(!J||!l){var u=typeof R!=="string"?$w(R):R;u=f8s(u);if(!J&&!/^t[.]/.test(u)){var F=g.vA(this.provider)*1E3;u="t."+F.toFixed()+";"+u}wT(this,"ctmp",O+":"+u);this.logger.debug(function(){return"ctmp "+O+" "+u}); rmL(this);return F}}; g.f.nh=function(O,R,J){this.D={q_S:Number(this.nJ("glrem",{nst:O.toFixed(),rem:R.toFixed(),ca:+J})),G9:O,nod:R,isAd:J}}; g.f.Wu=function(O,R,J){g.Kn(this,g.vA(this.provider),"ad_playback",[O,R,J])}; g.f.Lh=function(O,R){var J=g.vA(this.provider)*1E3;wT(this,"daism","t."+J.toFixed(0)+";smw."+(O*1E3).toFixed(0)+";smo."+(R*1E3).toFixed(0))}; g.f.resume=function(){var O=this;this.provider.Ru.DA()&&this.nJ("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.j)?toB(this):this.j=g.o9(function(){O.reportStats()},1E4)}; var f5={},uQk=(f5[5]="N",f5[-1]="N",f5[3]="B",f5[0]="EN",f5[2]="PA",f5[1]="PL",f5[-1E3]="ER",f5[1E3]="N",f5),lpM=new Set(["PL","B","S"]),GE=[];Z8.prototype.OD=function(){return this.L}; Z8.prototype.update=function(){if(this.J){var O=this.b0()||0,R=g.vA(this.provider);O>=this.provider.LJ.getDuration()-.1&&(this.previouslyEnded=!0);if(O!==this.L||Dvs(this,O,R)){var J;if(!(J=OR-this.I4+2||Dvs(this,O,R))){J=this.provider.LJ.getVolume();var l=J!==this.W,u=this.provider.LJ.isMuted()?1:0;u!==this.V?(this.V=u,J=!0):(!l||this.N>=0||(this.W=J,this.N=R),J=R-this.N,this.N>=0&&J>2?(this.N=-1,J=!0):J=!1)}J&&(VV(this),this.B=O);this.I4=R;this.L=O}}}; Z8.prototype.b0=function(){var O=this.provider.LJ.b0();return this.provider.Ru.Z("html5_disable_live_dvr_shrink_for_cdm_vss")&&B$(this.provider.videoData)?O+this.provider.LJ.Vd():O};a8W.prototype.send=function(O){var R=this;if(!this.Td){var J=Xns(this),l=g.s9(this.uri,J);this.Ru.Z("vss_through_gel_double")&&TTh(l);this.iz&&!this.Ru.Z("html5_simplify_pings")?s$W(this,l):vEp(this,O).then(function(u){R.iz&&(u=u||{},u.method="POST",u.postParams={atr:R.attestationResponse});RFL(l,u,{token:R.Hq,mI:R.Rz,mdxEnvironment:R.mdxEnvironment},R.Ru,O,R.N1,R.isFinal&&R.xe||R.xS||R.B&&R.yk)}); this.Td=!0}}; a8W.prototype.S=function(O){O===void 0&&(O=NaN);return Number(O.toFixed(3)).toString()}; var Sc={},qRh=(Sc.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Sc.LIVING_ROOM_APP_MODE_MAIN=1,Sc.LIVING_ROOM_APP_MODE_KIDS=2,Sc.LIVING_ROOM_APP_MODE_MUSIC=3,Sc.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Sc.LIVING_ROOM_APP_MODE_GAMING=5,Sc),Nz={},MoL=(Nz.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Nz.EMBEDDED_PLAYER_MODE_DEFAULT=1,Nz.EMBEDDED_PLAYER_MODE_PFP=2,Nz.EMBEDDED_PLAYER_MODE_PFL=3,Nz);g.S(So,g.p);g.f=So.prototype;g.f.aF=function(){this.L.update();xvT(this)&&(Amx(this),eFT(this),this.g$())}; g.f.eN=function(){g.p.prototype.eN.call(this);ER(this);mvA(this.L)}; g.f.sf=function(){return Xns(Nv(this,"playback"))}; g.f.g$=function(){this.provider.videoData.J.eventLabel=W$(this.provider.videoData);this.provider.videoData.J.playerStyle=this.provider.Ru.playerStyle;this.provider.videoData.WQ&&(this.provider.videoData.J.feature="pyv");this.provider.videoData.J.vid=this.provider.videoData.videoId;var O=this.provider.videoData.J;var R=this.provider.videoData;R=R.isAd()||!!R.WQ;O.isAd=R}; g.f.iC=function(O){var R=Nv(this,"engage");R.OQ=O;return $vf(R,dv0(this.provider))};YR_.prototype.isEmpty=function(){return this.endTime===this.startTime};a$.prototype.Z=function(O){return this.Ru.Z(O)}; a$.prototype.getCurrentTime=function(){if(g.dy(this.videoData)){var O=this.LJ.vI();if(O){var R=this.LJ.getCurrentTime(),J;O=(((J=ka(O,R*1E3))==null?void 0:J.Us)||0)/1E3;return R-O}}return this.LJ.getCurrentTime()}; a$.prototype.b0=function(){if(g.dy(this.videoData)){var O=this.LJ.vI();if(O){var R=this.LJ.b0(),J;O=(((J=ka(O,R*1E3))==null?void 0:J.Us)||0)/1E3;return R-O}}return this.LJ.b0()}; var hFA={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.S(g.vn,g.p);g.f=g.vn.prototype;g.f.aF=function(){if(this.provider.videoData.enableServerStitchedDai&&this.KA){var O;(O=this.B.get(this.KA))==null||O.aF()}else this.L&&this.L.aF()}; g.f.k7=function(O){this.qoe&&this.qoe.k7(O)}; g.f.gI=Rs(35);g.f.Tu=Rs(41);g.f.Lh=function(O,R){this.qoe&&this.qoe.Lh(O,R)}; g.f.T4=function(){if(this.provider.videoData.enableServerStitchedDai&&this.KA){var O;(O=this.B.get(this.KA))!=null&&VV(O.L)}else this.L&&VV(this.L.L)}; g.f.sZ=function(O,R){this.qoe&&Zn0(this.qoe,O,R);if(this.S)this.S.onError(O)}; g.f.onPlaybackRateChange=function(O){if(this.qoe)this.qoe.onPlaybackRateChange(O);this.L&&VV(this.L.L)}; g.f.kV=Rs(58);g.f.nJ=function(O,R,J){this.qoe&&this.qoe.nJ(O,R,J)}; g.f.nh=function(O,R,J){this.qoe&&this.qoe.nh(O,R,J)}; g.f.ZS=function(O){var R;(R=this.qoe)==null||R.ZS(O)}; g.f.Iq=function(O){var R;(R=this.qoe)==null||R.Iq(O)}; g.f.Eh=function(O){this.qoe&&this.qoe.Eh(O)}; g.f.Wu=function(O,R,J){this.qoe&&this.qoe.Wu(O,R,J)}; g.f.nE=Rs(29);g.f.QT=function(){if(this.qoe)return this.qoe.QT()}; g.f.sf=function(){if(this.provider.videoData.enableServerStitchedDai&&this.KA){var O,R;return(R=(O=this.B.get(this.KA))==null?void 0:O.sf())!=null?R:{}}return this.L?this.L.sf():{}}; g.f.cT=function(){var O;return(O=this.qoe)==null?void 0:O.cT()}; g.f.u2=function(O,R){var J;(J=this.qoe)==null||J.u2(O,R)}; g.f.iC=function(O){return this.L?this.L.iC(O):function(){}}; g.f.g$=function(){this.L&&this.L.g$()}; g.f.getVideoData=function(){return this.provider.videoData}; g.f.resume=function(){this.qoe&&this.qoe.resume()};g.S($E,g.p); $E.prototype.RP=function(O,R,J){if(this.L.has(O)){var l=this.L.get(O);if(R.videoId&&!zFs(l))this.S.nJ("ssap",{rlc:O}),FTx(this,O);else return}if(!this.L.has(O)){l=new a$(R,this.Ru,this.LJ);var u=Math.round(XX(this.S)*1E3);l=new g.vn(l,u);zFs(l)||this.S.nJ("nqv",{vv:R.videoId});u=this.S.getVideoData();this.L.set(O,l);if(l.qoe){var F=l.qoe,G=u.videoId||"";F.contentCpn=u.clientPlaybackNonce;F.Hq=G}nE_(l);J===2&&(this.Ru.Z("html5_log_ad_playback_docid")?(J=this.S,J.qoe&&(J=J.qoe,l=R.d5||"",u=R.breakType|| 0,R=R.videoId||"",F=this.Ru.SN||"yt",g.Kn(J,g.vA(J.provider),"ad_playback",[O,l,u,R,F]))):this.S.Wu(O,R.d5||"",R.breakType||0))}}; $E.prototype.Ke=function(O,R,J,l,u,F,G,y){if(O!==R){var w=this.ZA(O),I=this.ZA(R),C,r=O===((C=w.getVideoData())==null?void 0:C.clientPlaybackNonce),t;C=R===((t=I.getVideoData())==null?void 0:t.clientPlaybackNonce);var Z;t=r?((Z=w.getVideoData())==null?void 0:Z.videoId)||"":"nvd";var V;Z=C?((V=I.getVideoData())==null?void 0:V.videoId)||"":"nvd";r&&(w=w.qoe)!=null&&(tm(w,4,F?4:u?2:0,R,Z,J),w.reportStats());C&&(TE(I),(R=I.qoe)!=null&&(tm(R,4,F?5:u?3:1,O,t,l),R.reportStats()),R1B(I,new g.tT(G,I.QI)), cmz(I));y&&FTx(this,O)}}; $E.prototype.ZA=function(O){O=O||this.KA;return this.L.get(O)||this.S};g.S(g.Mv,g.p);g.f=g.Mv.prototype; g.f.zy=function(O,R){this.sync();R&&this.L.array.length>=2E3&&this.Mb("captions",1E4);R=this.L;if(O.length>1&&O.length>R.array.length)R.array=R.array.concat(O),R.array.sort(R.L);else for(var J=g.N(O),l=J.next();!l.done;l=J.next())l=l.value,!R.array.length||R.L(l,R.array[R.array.length-1])>0?R.array.push(l):g.AV(R.array,l,R.L);O=g.N(O);for(R=O.next();!R.done;R=O.next())R=R.value,R.namespace==="ad"&&this.N("ssap",{acrsid:R.getId(),acrsst:R.start,acrset:R.end,acrscpt:R.playerType});this.B=NaN;this.sync()}; g.f.VE=function(O){O.length>1E4&&g.Aa(new g.Ys("Over 10k cueRanges removal occurs with a sample: ",O[0]));if(!this.jN()){for(var R=g.N(O),J=R.next();!J.done;J=R.next())(J=J.value)&&J.namespace==="ad"&&this.N("ssap",{rcrid:J.getId(),rcst:J.start,rcet:J.end,rcpt:J.playerType});var l=new Set(O);this.S=this.S.filter(function(u){return!l.has(u)}); rb0(this.L,l);this.sync()}}; g.f.Mb=function(O,R){var J=(isNaN(this.B)?g.d(this.LJ.getPlayerState(),2)?0x8000000000000:this.LJ.getCurrentTime()*1E3:this.B)-R;R=this.Hc().filter(function(l){return l.namespace===O&&l.endthis.L,F=g.d(J,8)&&g.d(J,16),G=this.LJ.IU().isBackground()||J.isSuspended();Bn(this,this.Td,F&&!G,u,"qoe.slowseek",function(){},"timeout"); var y=isFinite(this.L);y=F&&y&&kk_(R,this.L);var w=!l||Math.abs(l-this.L)>10,I=this.Ru.Z("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),C=l===0&&this.S&&[11,10].includes(this.S);Bn(this,this.KJ,y&&w&&!G&&(!I||!C),u,"qoe.slowseek",function(){R.seekTo(O.L)},"set_cmt"); w=y&&Ig(R.cH(),this.L);var r=this.LJ.loader;y=!r||r.v8();var t=function(){R.seekTo(O.L+.001)}; Bn(this,this.Qh,w&&y&&!G,u,"qoe.slowseek",t,"jiggle_cmt");y=function(){return O.LJ.FU()}; Bn(this,this.JR,w&&!G,u,"qoe.slowseek",y,"new_elem");w=tw(J);I=J.isBuffering();var Z=R.cH(),V=w3(Z,l),m=V>=0&&Z.end(V)>l+5,E=w&&I&&m;C=this.LJ.getVideoData();Bn(this,this.Iu,l<.002&&this.L<.002&&F&&g.$T(this.Ru)&&g.Ad(C)&&!G,u,"qoe.slowseek",y,"slow_seek_shorts");Bn(this,this.W,C.MU()&&F&&!G&&!C.iz,u,"qoe.slowseek",y,"slow_seek_gapless_shorts");Bn(this,this.Hq,E&&!G,w&&!I,"qoe.longrebuffer",t,"jiggle_cmt");Bn(this,this.OQ,E&&!G,w&&!I,"qoe.longrebuffer",y,"new_elem_nnr");if(r){var a=r.getCurrentTime(); F=R.H8();F=NK2(F,a);F=!r.isSeeking()&&l===F;Bn(this,this.SG,w&&I&&F&&!G,w&&!I&&!F,"qoe.longrebuffer",function(){R.seekTo(a)},"seek_to_loader")}F={}; t=w3(Z,Math.max(l-3.5,0));E=t>=0&&l>Z.end(t)-1.1;var v=t>=0&&t+1=0&&E&&v<11;F.close2edge=E;F.gapsize=v;F.buflen=Z.length;this.S&&(F.seekSour=this.S);Bn(this,this.iz,w&&I&&!G,w&&!I,"qoe.longrebuffer",function(){},"timeout",F); F=J.isSuspended();F=this.LJ.oo()&&!F;Bn(this,this.J,F,!F,"qoe.start15s",function(){O.LJ.nA("ad")},"ads_preroll_timeout"); F=this.Ru.experiments.Vh("html5_use_playback_rate_in_skip_slow_ad")?this.LJ.getPlaybackRate()*1E3:1E3;V=l-this.N5;Bn(this,this.AR,g.Ad(C)&&r,w&&!I,"qoe.longrebuffer",function(){O.LJ.pc()},"reset_media_source"); Bn(this,this.Gd,g.Ad(C)&&r,w&&!I,"qoe.longrebuffer",y,"reset_media_element");this.N===0&&(this.j=l);r=I&&this.L===0&&l>1&&l===this.j;Bn(this,this.xS,g.Ad(C)&&r,w&&!I,"qoe.slowseek",function(){R.seekTo(0)},"reseek_after_time_jump"); G=J.isOrWillBePlaying()&&!G;m=this.LJ.lZ()-l<6&&!m&&this.LJ.O6();Bn(this,this.V,C.MU()&&G&&I&&m,w&&!I,"qoe.longrebuffer",function(){O.LJ.FU(!1,!0)},"handoff_end_long_buffer_reload"); J=i1(C)&&this.S===104&&G&&(I||g.d(J,8)&&g.d(J,16));Bn(this,this.SN,J,u,"qoe.start15s",y,"gapless_slow_start");this.N=l;this.D.start()}}; pn.prototype.sZ=function(O,R,J){R=this.sf(R);R.wn=J;R.wdup=this.B[O]?"1":"0";this.LJ.sZ(new MC(O,R));this.B[O]=!0}; pn.prototype.sf=function(O){O=Object.assign(this.LJ.sf(!0),O.sf());this.L&&(O.stt=this.L.toFixed(3));this.LJ.getVideoData().isLivePlayback&&(O.ct=this.LJ.getCurrentTime().toFixed(3),O.to=this.LJ.Vd().toFixed(3));delete O.uga;delete O.euri;delete O.referrer;delete O.fexp;delete O.vm;return O}; eo.prototype.reset=function(){this.L=this.S=this.B=this.startTimestamp=0;this.N=!1}; eo.prototype.test=function(O){if(!this.D||this.S)return!1;if(!O)return this.reset(),!1;O=(0,g.Q)();if(!this.startTimestamp)this.startTimestamp=O,this.B=0;else if(this.B>=this.D)return this.S=O,!0;this.B+=1;return!1}; eo.prototype.sf=function(){var O={},R=(0,g.Q)();this.startTimestamp&&(O.wsd=(R-this.startTimestamp).toFixed());this.S&&(O.wtd=(R-this.S).toFixed());this.L&&(O.wssd=(R-this.L).toFixed());return O};g.S(bV0,g.p);g.f=bV0.prototype;g.f.setMediaElement=function(O){(this.mediaElement=O)?(this.mediaElement&&(this.D||this.B||!this.mediaElement.al()||this.seekTo(.01,{bK:"seektimeline_setupMediaElement"})),Hn(this)):UR(this)}; g.f.getCurrentTime=function(){if(xE(this.LJ)){if(!isNaN(this.S))return this.S}else if(!isNaN(this.S)&&isFinite(this.S))return this.S;return this.mediaElement&&dT2(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.B||0}; g.f.Sc=function(){return this.Td}; g.f.b0=function(){return this.getCurrentTime()-this.Vd()}; g.f.xM=function(){return this.L?this.L.xM():Infinity}; g.f.isAtLiveHead=function(O){if(!this.L)return!1;O===void 0&&(O=this.getCurrentTime());return Wn(this.L,O)}; g.f.Q2=function(){return!!this.L&&this.L.Q2()}; g.f.seekTo=function(O,R){var J=R===void 0?{}:R;R=J.gy===void 0?!1:J.gy;var l=J.zs===void 0?0:J.zs;var u=J.Ny===void 0?!1:J.Ny;var F=J.z3===void 0?0:J.z3;var G=J.bK===void 0?"":J.bK;var y=J.seekSource===void 0?void 0:J.seekSource;var w=J.vM===void 0?!1:J.vM;var I=J.Yu===void 0?!1:J.Yu;J=J.QQ===void 0?!1:J.QQ;w&&(O+=this.Vd());FD(this.videoData)&&y===29&&(this.Td=void 0);w=O=this.N5())||!g.XD(this.videoData),C||(m={st:m,mst:this.N5()},this.L&&this.Z("html5_high_res_seek_logging")&&(m.ht=this.L.xM(),m.adft=Xoz(this.L)),this.LJ.nJ("seeknotallowed",m)),m=C));if(!m)return this.N&&(this.N=null,QRL(this)),g.$t(this.getCurrentTime());m=.005;I&&this.Z("html5_sabr_seek_no_shift_tolerance")&&(m=0);if(Math.abs(O-this.S)<=m&&this.OQ)return this.D;G&&(m=O,(this.Ru.DA()||this.Z("html5_log_seek_reasons"))&&this.LJ.nJ("seekreason",{reason:G, tgt:m}));y&&(this.W.S=y);this.OQ&&UR(this);this.D||(this.D=new Jw);O&&!isFinite(O)&&PAL(this,!1);(G=J||w)||(G=O,G=!(this.videoData.isLivePlayback&&this.videoData.B&&!this.videoData.B.L&&!(this.mediaElement&&this.mediaElement.n$()>0&&iy(this.mediaElement)>0)||IN(this.videoData)&&this.q7()===this.N5(!1)?0:isFinite(G)||!IN(this.videoData)));G||(O=QV(this,O,u));O&&!isFinite(O)&&PAL(this,!1);this.B=O;this.JR=F;this.S=O;this.j=0;this.L&&(u=this.L,F=O,TRx(u,F,!1),$Tz(u,F));u=this.LJ;F=O;G={gy:R,seekSource:y}; u.Qs.B=F;J=u.Ym;J.mediaTime=F;J.L=!0;G.gy&&u.Zf(G);G=F>u.videoData.endSeconds&&F>u.videoData.limitedPlaybackDurationInSeconds;u.cA&&G&&isFinite(F)&&Xrs(u);FR.start&&Xrs(this.LJ);return this.D}; g.f.N5=function(O){if(!this.videoData.isLivePlayback)return cNz(this.LJ);var R;return hd(this.videoData)&&((R=this.mediaElement)==null?0:R.isPaused())&&this.videoData.L?(O=this.getCurrentTime(),VzH(this.yI(O)*1E3)+O):this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&FD(this.videoData)&&this.videoData.L?O?this.videoData.L.Hq||0:this.videoData.L.oa||0:IN(this.videoData)&&this.videoData.Hq&&this.videoData.L?this.videoData.L.N5()+this.timestampOffset:this.videoData.B&&this.videoData.B.L?!O&& this.L?this.L.xM():cNz(this.LJ)+this.timestampOffset:this.mediaElement?L_()?VzH(g.e(this.mediaElement.iM()).getTime()):iy(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.f.q7=function(){if(g.dy(this.videoData)){var O=this.LJ;g.dy(O.videoData);var R,J;return(J=(R=O.YH)==null?void 0:R.q7())!=null?J:O.videoData.q7()}if(this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&FD(this.videoData)){var l;return((l=this.videoData.L)==null?void 0:l.k5)||0}R=this.videoData?this.videoData.q7()+this.timestampOffset:this.timestampOffset;return hd(this.videoData)&&this.videoData.L&&(J=Number((O=this.videoData.progressBarStartPosition)==null?void 0:O.utcTimeMillis)/1E3,O= this.getCurrentTime(),O=this.yI(O)-O,!isNaN(J)&&!isNaN(O))?Math.max(R,J-O):R}; g.f.lm=function(){this.D||this.seekTo(this.B,{bK:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.f.RL=function(){return this.OQ&&!isFinite(this.S)}; g.f.eN=function(){po0(this,null);this.W.dispose();g.p.prototype.eN.call(this)}; g.f.sf=function(){var O={};this.loader&&Object.assign(O,this.loader.sf());this.mediaElement&&Object.assign(O,this.mediaElement.sf());return O}; g.f.Vz=function(O){this.timestampOffset=O}; g.f.getStreamTimeOffset=function(){return IN(this.videoData)?0:this.videoData.L?this.videoData.L.getStreamTimeOffset():0}; g.f.Vd=function(){return this.timestampOffset}; g.f.yI=function(O){return this.videoData&&this.videoData.L?this.videoData.L.yI(O-this.timestampOffset):NaN}; g.f.nz=function(){if(!this.mediaElement)return 0;if(TF(this.videoData)){var O=this.mediaElement,R=O.cH();O=(t1(R)&&O.getDuration()?R.end(R.length-1):0)+this.timestampOffset-this.q7();R=this.N5()-this.q7();return Math.max(0,Math.min(1,O/R))}return this.mediaElement.nz()}; g.f.B_=function(O){this.J&&(this.J.L=O)}; g.f.mK=function(O,R){this.LJ.nJ("requestUtcSeek",{time:O});FD(this.videoData)&&(this.Td=O);var J;(J=this.loader)==null||J.mK(O);R&&(this.iz=R)}; g.f.DU=function(O){FD(this.videoData)&&(this.Td=void 0);if(this.iz)this.LJ.nJ("utcSeekingFallback",{source:"streamTime",timeSeconds:this.iz}),this.LJ.seekTo(this.iz,{bK:"utcSeekingFallback_streamTime"}),this.iz=0;else{var R=this.getCurrentTime();isNaN(R)||(O=this.yI(R)-O,R-=O,this.LJ.nJ("utcSeekingFallback",{source:"estimate",timeSeconds:R}),this.LJ.seekTo(R,{bK:"utcSeekingFallback_estimate"}))}}; g.f.xm=function(){this.iz=0}; g.f.Z=function(O){return this.Ru&&this.Ru.Z(O)};g.S(Ln,g.p);Ln.prototype.start=function(){this.S.start()}; Ln.prototype.stop=function(){this.S.stop()}; Ln.prototype.clear=function(){for(var O=g.N(this.L.values()),R=O.next();!R.done;R=O.next())R.value.clear()}; Ln.prototype.sample=function(){for(var O=g.N(this.B),R=O.next();!R.done;R=O.next()){var J=g.N(R.value);R=J.next().value;J=J.next().value;this.L.has(R)||this.L.set(R,new JN2(FzC.has(R)));this.L.get(R).update(J())}this.S.start()}; var FzC=new Set(["networkactivity"]);JN2.prototype.update=function(O){this.S?(this.buffer.add(O-this.L||0),this.L=O):this.buffer.add(O)}; JN2.prototype.clear=function(){this.buffer.clear();this.L=0};hm.prototype.pH=function(){return this.started}; hm.prototype.start=function(){this.started=!0}; hm.prototype.reset=function(){this.finished=this.started=!1};var FG2=!1;g.S(g.Ot,g.y8);g.f=g.Ot.prototype;g.f.eN=function(){this.logger.debug("dispose");g.V3(this.pM);IaW(this.RF);this.visibility.unsubscribe("visibilitystatechange",this.RF);fk_(this);gR(this);g.HJ.wU(this.jb);this.QB();this.l0=null;g.rd(this.videoData);g.rd(this.BP);g.rd(this.hX);g.rd(this.N3);g.ti(this.pyJ);this.cA=null;g.y8.prototype.eN.call(this)}; g.f.Wu=function(O,R,J,l,u){if(this.Ru.Z("html5_log_ad_playback_docid")){var F=this.ZA();if(F.qoe){F=F.qoe;var G=this.Ru.SN||"yt";g.Kn(F,g.vA(F.provider),"ad_playback",[O,R,J,u,G])}}else this.ZA().Wu(O,R,J);this.Z("html5_log_media_perf_info")&&this.nJ("adloudness",{ld:l.toFixed(3),cpn:O})}; g.f.u_=function(){var O;return(O=this.loader)==null?void 0:O.u_()}; g.f.Bl=function(){var O;return(O=this.loader)==null?void 0:O.Bl()}; g.f.L8=function(){var O;return(O=this.loader)==null?void 0:O.L8()}; g.f.Rb=function(){var O;return(O=this.loader)==null?void 0:O.Rb()}; g.f.lC=function(){return this.videoData.lC()}; g.f.wR=function(){return this.Z("html5_not_reset_media_source")&&!this.lC()&&!this.videoData.isLivePlayback&&g.Ad(this.videoData)&&!this.Ru.supportsGaplessShorts()}; g.f.jP=function(){this.videoData.V&&(this.videoData.yl=this.videoData.yl||this.ys.mX().u_(),this.videoData.I7=this.videoData.I7||this.ys.mX().Bl());if(lsx(this.videoData)||!YD(this.videoData)){var O=this.videoData.errorDetail;this.Qk(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),O,O,this.videoData.r$||void 0)}this.Z("html5_generate_content_po_token")&&this.lR();this.Z("html5_enable_d6de4")&&this.E5()}; g.f.vO=function(){return this.pX}; g.f.RP=function(){!this.h$||this.h$.jN();this.h$=new g.vn(new a$(this.videoData,this.Ru,this));this.pX=new $E(this.Ru,this,this.h$)}; g.f.getVideoData=function(){return this.videoData}; g.f.T=function(){return this.Ru}; g.f.CV=function(O){return this.m9.CV(this.l0,O===void 0?!1:O)}; g.f.ZA=function(O){if(O)a:{for(var R=this.pX,J=g.N(R.L.values()),l=J.next();!l.done;l=J.next())if(l=l.value,l.getVideoData().videoId===O){O=l;break a}O=R.S}else O=this.pX.ZA();return O}; g.f.IU=function(){return this.visibility}; g.f.LH=function(){return this.mediaElement&&this.mediaElement.W7()?this.mediaElement.u5():null}; g.f.FK=function(){return this.mediaElement}; g.f.m8=function(){if(this.Z("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.T().j&&this.T().houseBrandUserStatus&&this.nJ("hbut",{status:this.T().houseBrandUserStatus});if(this.videoData.Dh())return!0;this.Qk("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.f.Mr=function(O){(O=O===void 0?!1:O)||g.dy(this.videoData)||TE(this.ZA());this.iA=O;!this.m8()||this.JP.pH()?g.$T(this.Ru)&&this.videoData.isLivePlayback&&this.JP.pH()&&!this.JP.finished&&!this.iA&&this.EW():(this.JP.start(),O=this.ZA(),XX(O),O.qoe&&toB(O.qoe),this.EW())}; g.f.EW=function(){if(this.videoData.isLoaded()){var O=this.BP;g.tB(O.bz.experiments,"html5_player_min_build_cl")>0&&g.tB(O.bz.experiments,"html5_player_min_build_cl")>750807867&&m6_(O,"oldplayer");Exs(this)}else this.videoData.nD||this.videoData.bZ?this.iA&&g.$T(this.Ru)&&this.videoData.isLivePlayback||(this.videoData.nD?xYz(this.videoData):(O=this.ZA(),O.qoe&&(O=O.qoe,Cn(O,"protected"),O.provider.videoData.D?O.cX():O.provider.videoData.subscribe("dataloaded",O.cX,O)),e9x(this.videoData))):!this.videoData.loading&& this.bQ&&S6T(this)}; g.f.OP=function(O){this.x9=O;this.loader&&(l90(this.loader,new g.XY(O)),this.nJ("sdai",{sdsstm:1}))}; g.f.B7=function(O){this.YH=O;this.loader&&this.loader.B7(O)}; g.f.m7=Rs(16);g.f.isFullscreen=function(){return this.visibility.isFullscreen()}; g.f.isBackground=function(){return this.visibility.isBackground()}; g.f.Nb=function(){var O=this;this.logger.debug("Updating for format change");RR(this).then(function(){return cn(O)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.f.Df=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Mr();this.m8()&&!g.d(this.playerState,128)&&(this.aY.pH()||(this.aY.start(),this.videoData.sO?this.H3(wc(this.playerState,4)):this.H3(wc(wc(this.playerState,8),1))),N5s(this))}; g.f.ow=function(){return this.JP.finished}; g.f.sendAbandonmentPing=function(){g.d(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Lw(!0),fk_(this),g.HJ.wU(this.jb))}; g.f.Om=function(O,R){O=O===void 0?!0:O;(R===void 0||R)&&this.mediaElement&&this.mediaElement.pause();this.H3(O?new g.GP(14):new g.GP)}; g.f.ST=function(){this.ZA().T4()}; g.f.Qk=function(O,R,J,l,u,F){this.logger.debug(function(){return"set player error: ec="+O+", detail="+u}); var G,y;g.hV(fuM,J)?G=J:J?y=J:G="GENERIC_WITHOUT_LINK";l=(l||"")+(";a6s."+Iz());if(O==="auth"||O==="drm.auth"||O==="heartbeat.stop")J&&(l+=";r."+J.replaceAll(" ","_")),F&&(l+="sr."+F.replaceAll(" ","_"));R={errorCode:O,errorDetail:u,errorMessage:y||g.eK[G]||"",Z6:G,r$:F||"",rg:l,fk:R,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=O;Jb(this,"dataloaderror");this.H3(yg(this.playerState,128,R));g.HJ.wU(this.jb);gR(this);this.z_()}; g.f.nA=function(O){this.V2=this.V2.filter(function(R){return O!==R}); this.logger.debug(function(){return"set preroll ready for "+O}); g.dy(this.videoData)&&!this.QE()&&this.N9.jz("pl_pr");this.aY.pH()&&N5s(this)}; g.f.QE=function(){var O;(O=!!this.V2.length)||(O=this.LD.L.array[0],O=!!O&&O.start<=-0x8000000000000);return O}; g.f.Q2=function(){return this.Qs.Q2()}; g.f.isPlaying=function(){return this.playerState.isPlaying()}; g.f.Bt=function(){return this.playerState.Bt()&&this.videoData.sO}; g.f.getPlayerState=function(){return this.playerState}; g.f.QU=function(O){var R;(R=this.loader)==null||R.QU(O)}; g.f.qE=function(O){var R;(R=this.loader)==null||R.qE(O)}; g.f.getPlayerType=function(){return this.playerType}; g.f.getPreferredQuality=function(){if(this.l0){var O=this.l0;O=O.videoData.UC.compose(O.videoData.ZF);O=Z0(O)}else O="auto";return O}; g.f.Hu=Rs(22);g.f.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.f.setMediaElement=function(O){this.logger.debug("set media element");if(this.mediaElement&&O.u5()===this.mediaElement.u5()&&(O.isView()||this.mediaElement.isView())){if(O.isView()||!this.mediaElement.isView())this.gi(),this.mediaElement=O,this.mediaElement.LJ=this,prT(this),this.Qs.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.QB();if(!this.playerState.isError()){var R=Ie(this.playerState,512);g.d(R,8)&&!g.d(R,2)&&(R=wc(R,1));O.isView()&&(R=Ie(R,64));this.H3(R)}this.mediaElement= O;this.mediaElement.LJ=this;!g.$T(this.Ru)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);prT(this);this.Qs.setMediaElement(this.mediaElement);this.Z("html5_prewarm_media_source")&&!this.BP.jh()&&TK_(this.mediaElement)}}; g.f.QB=function(O,R,J){O=O===void 0?!1:O;R=R===void 0?!1:R;J=J===void 0?!1:J;this.logger.debug("remove media element");if(this.mediaElement){var l=this.getCurrentTime();l>0&&(this.Qs.B=l);this.Qs.setMediaElement(null);!O&&this.wR()?bT_(this):this.Mi(J);this.loader&&(Sv(this.loader),Fa(this,R));this.Kz.stop();if(this.mediaElement&&(!this.aY.pH()&&!this.oo()||this.playerState.isError()||g.d(this.playerState,2)||this.H3(wc(this.playerState,512)),this.mediaElement)){this.gi();if(O||!this.mediaElement.isView())this.N9.Ik("mesv_s"), this.mediaElement.stopVideo(),G0(this);this.mediaElement=this.mediaElement.LJ=null}}}; g.f.playVideo=function(O,R){O=O===void 0?!1:O;R=R===void 0?!1:R;var J=this,l,u,F,G,y,w;return g.A(function(I){if(I.S==1){J.logger.debug("start play video");var C=window.google_image_requests;C&&C.length>10&&(window.google_image_requests=C.slice(-10));if(g.d(J.playerState,128))return I.return();if(J.BP.G5())return J.publish("signatureexpired"),I.return();J.mediaElement&&TE(J.ZA());J.Df();(g.d(J.playerState,64)||O)&&J.H3(wc(J.playerState,8));return J.aY.finished&&J.mediaElement?J.l0||!J.HB?I.pJ(2): g.k(I,J.HB,3):I.return()}if(I.S!=2&&g.d(J.playerState,128))return I.return();if(!J.videoData.B)return J.videoData.isLivePlayback&&!g.uo(J.Ru.D,!0)?(l="html5.unsupportedlive",u=2):(l=J.videoData.lC()?"fmt.unplayable":"fmt.noneavailable",u=1),g.Aa(Error("selectableFormats")),J.Qk(l,u,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),I.return();if(J.oF()&&J.videoData.B.L)return J.logger.debug("rebuild playbackData for airplay"),I.return(RR(J));if(xE(J))C=J.Qs,wr(C.videoData)?!C.isAtLiveHead(C.getCurrentTime())&& C.Q2()&&C.LJ.seekTo(Infinity,{bK:"seektimeline_peggedToLive",seekSource:34}):g.dy(C.videoData)&&C.getCurrentTime()G;if(!y||!G){F&&y&&(l=Math.max(l,F));var w;F=$6p(R,(w=u.L)==null?void 0:w.videoInfos);w=R.LJ.getPlaybackRate();w>1&&F&&(w=bXx(R.Ru.D,u.L.videoInfos,w),O.L!==0&& w=480;if(R.Z("html5_exponential_memory_for_sticky")){I=R.Ru.vW;C=1;var r=r===void 0?!1:r;z00(I,"sticky-lifetime");I.values["sticky-lifetime"]&&I.gX["sticky-lifetime"]||(I.values["sticky-lifetime"]=0,I.gX["sticky-lifetime"]=0);r&&Dl(I,"sticky-lifetime")>.0625&&(C=I.gX["sticky-lifetime"]*2); I.values["sticky-lifetime"]+=1*Math.pow(2,I.L/C);I.gX["sticky-lifetime"]=C;I.N.start()}if(R.Z("html5_perf_cap_override_sticky")){r=R.B;I=R.Z("html5_perserve_av1_perf_cap");I=I===void 0?!1:I;if(I===void 0?0:I){C=hU();O=g.N(Object.keys(C));for(R=O.next();!R.done;R=O.next())R=R.value,R.indexOf("1")!==0&&delete C[R];g.bE("yt-player-performance-cap",C,2592E3)}else g.A6("yt-player-performance-cap");POx(I);if(I){I=g.N(eQ.keys());for(C=I.next();!C.done;C=I.next())C=C.value,C.startsWith("1")||eQ.delete(C); I=g.N(gT.values());for(C=I.next();!C.done;C=I.next())C=C.value,C.startsWith("1")||gT.delete(C);I=g.N(r.keys());for(C=I.next();!C.done;C=I.next())C=C.value,C.startsWith("1")||r.delete(C)}else eQ.clear(),gT.clear(),r.clear()}}}this.loader&&(r=this.loader,J=J||"",r.policy.L?dx(r.N.L,J):dx(r.L.D,J));this.Y4()}; g.f.getUserPlaybackQualityPreference=function(){return this.videoData.B&&!this.videoData.B.L?Z0(this.videoData.UC):ox[Yk()]}; g.f.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.f.setUserAudio51Preference=function(O,R){this.getUserAudio51Preference()!==O&&(this.nJ("toggle51",{pref:O}),g.bE("yt-player-audio51",O,R?31536E3:2592E3),this.Nb())}; g.f.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.f.setProximaLatencyPreference=function(O){var R=this.getProximaLatencyPreference();this.nJ("proxima",{pref:O});g.bE("yt-player-proxima-pref",O,31536E3);R!==O&&(O=this.Qs,O.KJ=!0,O.LJ.seekTo(Infinity,{bK:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.f.getProximaLatencyPreference=function(){var O;return(O=dG())!=null?O:0}; g.f.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.f.lR=function(){this.videoData.videoId?this.ys.lR(this.videoData):this.nJ("povid",{})}; g.f.E5=function(){this.videoData.videoId?this.ys.E5(this.videoData):this.nJ("piavid",{})}; g.f.Y4=function(){if(!this.jN()&&!g.d(this.playerState,128)&&this.videoData.B){if(this.videoData.B.L)nn(this);else{var O=uA(this),R=this.videoData;a:{var J=this.videoData.m1;if(O.L){for(var l=g.N(J),u=l.next();!u.done;u=l.next()){u=u.value;var F=u.getInfo(),G=g.xw[F.video.quality];if((!O.B||F.video.quality!=="auto")&&G<=O.L){J=u;break a}}J=J[J.length-1]}else J=J[0]}R.KJ=J;T5A(this,O.reason,xKf(this,this.videoData.KJ))}if(this.Z("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Qs.V= !1,this.playVideo()}}; g.f.Sl=function(O,R){if(this.jN()||g.d(this.playerState,128))return!1;var J,l=!((J=this.videoData.B)==null||!J.L);J=l&&R?this.getCurrentTime()-this.Vd():NaN;if(this.Ru.experiments.Vh("html5_record_audio_format_intent")){var u=this.ZA();if(u.qoe){u=u.qoe;var F=[O.Ef.id,isNaN(J)?"m":"t"];g.Kn(u,g.vA(u.provider),"afi",F)}}if(l)return R&&(l=HV2(this.Qs),this.nJ("aswh",{id:O.id,xtags:O.xtags,bh:l.toFixed(3)})),this.loader.setAudioTrack(O,J,R),!0;if(MKA(this)){a:{R=this.mediaElement.audioTracks();for(l= 0;l=0?O:this.getCurrentTime()}; g.f.yI=function(){var O;return((O=this.videoData.L)==null?0:O.yI)?this.videoData.L.yI(this.getCurrentTime()-this.Vd()):this.mediaElement&&(O=this.mediaElement.iM())&&(O=O.getTime(),!isNaN(O))?O/1E3+this.getCurrentTime():NaN}; g.f.getDuration=function(O){return g.dy(this.videoData)&&this.YH?O?V_W(this.YH,O):KV(this.YH):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Vd():this.N5()?this.N5():0}; g.f.Zt=function(){var O=new uaT;if(this.loader){var R=this.Ru.schedule,J=this.Ru.DA();J=J===void 0?!1:J;O.L_=R.OQ;O.DL=R.JR;O.bandwidthEstimate=m1(R);if(J){J=(R.V.s_()*1E3).toFixed();var l=(R.N1.s_()*1E3).toFixed(),u=fb(R).toFixed(2),F=((R.J.s_()||0)*1E9).toFixed(2),G=R.B.s_().toFixed(0),y=R.xS.s_().toFixed(0),w=R.W.percentile(.5).toFixed(2),I=R.W.percentile(.92).toFixed(2),C=R.W.percentile(.96).toFixed(2),r=R.W.percentile(.98).toFixed(2);R.L?R.L.reset():R.L=new yl;R.L.add(R.iz);R.L.add(R.interruptions.length); for(var t=0,Z=R.interruptions.length-1;Z>=0;Z--){var V=R.interruptions[Z];R.L.add(V-t);t=V}t=0;for(Z=R.N.length-1;Z>=0;Z--){V=R.N[Z];var m=V.stamp/36E5;R.L.add(m-t);t=m;R.L.add(V.net/1E3);R.L.add(V.max)}R=R.L.SQ();O.L={ttr:J,ttm:l,d:u,st:F,bw:G,abw:y,v50:w,v92:I,v96:C,v98:r,"int":R}}ioL(this.loader,O)}else this.mediaElement&&(O.Jr=ly(this.mediaElement));O.L_=this.L_;O.DL=this.DL;O.B=this.isAtLiveHead()&&this.isPlaying()?ZTT(this):NaN;return O}; g.f.Di=function(O,R){this.DL+=O;this.L_+=R}; g.f.nz=function(){return this.mediaElement?g.XD(this.videoData)?1:TF(this.videoData)?this.isAtLiveHead()||this.Q2()?1:this.Qs.nz():this.mediaElement.nz():0}; g.f.IN=function(){var O=this.D9,R=dT(O,"bandwidth"),J=dT(O,"bufferhealth"),l=dT(O,"livelatency"),u=dT(O,"networkactivity"),F=YE(O,"bandwidth"),G=YE(O,"bufferhealth"),y=YE(O,"livelatency");O=YE(O,"networkactivity");var w=this.UU(),I=w.droppedVideoFrames;w=w.totalVideoFrames;var C=this.getCurrentTime();if(this.VI){var r="IT/"+(this.VI.L.getInfo()+"/"+Z0(this.Lz()));r+="/"+this.VI.getInfo()}else r="";var t=this.isGapless(),Z=this.uS(),V=this.QT(),m=g.lA(this),E=this.getPlayerState(),a=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var v=0;var b="";if(this.x9){if(this.x9.Yd){b="D,";break a}v=this.x9.fV();b=this.x9.oG().substring(0,4)}else this.YH&&(v=this.YH.fV(),b=this.YH.oG().substring(0,4));v>0?(v="AD"+v+", ",b&&(v+=b+", "),b=v):b=""}return{WL:F,EX:G,currentTime:C,Kk:r,droppedVideoFrames:I,isGapless:t,uS:Z,HR:V,lE:R,VG:J,TL:l,K7:u,PC:y,dM:O,mL:m,playerState:E,o3:a,G3:b,totalVideoFrames:w}}; g.f.sf=function(O){var R={};if(O===void 0?0:O){Object.assign(R,this.ZA().sf());this.mediaElement&&(Object.assign(R,this.mediaElement.sf()),O=this.UU(),R.dvf=O.droppedVideoFrames,R.tvf=O.totalVideoFrames);this.loader&&Object.assign(R,this.loader.sf());this.VI&&(R.drm=JSON.stringify(this.VI.sf()));R.state=this.playerState.state.toString(16);g.d(this.playerState,128)&&(R.debug_error=JSON.stringify(this.playerState.PH));this.QE()&&(R.prerolls=this.V2.join(","));this.videoData.TR&&(R.ismb=this.videoData.TR); this.videoData.latencyClass!=="UNKNOWN"&&(R.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(R.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)R.is_mosaic=1;this.videoData.cotn&&(R.is_offline=1,R.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(R.playerResponseCpn=this.videoData.playerResponseCpn);this.ys.isOrchestrationLeader()&&(R.leader=1);this.videoData.isLivePlayback&& (this.videoData.L&&MO(this.videoData.L)&&(R.segduration=MO(this.videoData.L)),O=this.Qs,R.lat=O.J?NRf(O.J.N):0,R.liveutcstart=this.videoData.liveUtcStartSeconds);R.relative_loudness=this.videoData.zW.toFixed(3);if(O=g.lA(this))R.optimal_format=O.video.qualityLabel;R.user_qual=Yk();R.release_version=K[8];g.dy(this.videoData)&&this.YH&&(R.ssap=Yo(this.YH))}R.debug_videoId=this.videoData.videoId;return R}; g.f.addCueRange=function(O){this.l$([O])}; g.f.removeCueRange=function(O){this.LD.VE([O])}; g.f.A2=function(){this.LD.sync()}; g.f.Mb=function(O,R){return this.LD.Mb(O,R)}; g.f.l$=function(O,R){this.LD.zy(O,R)}; g.f.H7=function(O){this.LD.VE(O)}; g.f.d9=function(O){var R=this.LD;O.length<=0||R.jN()||(O=R.L,O.array.sort(O.L))}; g.f.Hc=function(){return this.LD.Hc()||[]}; g.f.cK=function(){return this.cO}; g.f.oF=function(){return this.visibility.oF()}; g.f.QS=function(){this.mediaElement&&this.mediaElement.QS()}; g.f.B2h=function(){Jb(this)}; g.f.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.f.gi=function(){g.MN(this.V9)}; g.f.pg=function(){this.v3();this.publish("onLoadProgress",this.nz())}; g.f.JL=function(O){var R=O.target.ea();if(this.mediaElement&&this.mediaElement.ea()&&this.mediaElement.ea()===R){hdf(this,O.type);switch(O.type){case "error":var J=FL(this.mediaElement)||"",l=this.mediaElement.HH();if(J==="capability.changed"){this.Z("html5_restart_on_capability_change")?(this.nJ("capchg",{msg:l}),this.FU(!0)):RR(this);return}if(this.mediaElement.hasError()&&(Vvx(this.BP,J,{msg:l})||g.dy(this.videoData)&&this.YH&&(l=this.playerState.PH,this.YH.handleError(J,l==null?void 0:l.fk))))return; if(this.isBackground()&&this.mediaElement.U0()===4){this.z_();iA(this,"unplayable");return}break;case "durationchange":J=this.mediaElement.getDuration();isFinite(J)&&(!this.EQ||J>0)&&J!==1&&this.SA(J);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());t50(this.LD);this.ZA().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":nx0(this);this.publish("onLoadedMetadata");HTB(this);J=this.yI();this.videoData.xi&&(this.videoData.xi= J);break;case "loadstart":HTB(this);break;case "progress":case "suspend":g.tB(this.Ru.experiments,"html5_progress_event_throttle_ms")>0?this.NB.bM():this.pg();break;case "playing":this.N9.Ik("plev");this.Cn&&!xE(this)&&(this.Cn=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{bK:"videoplayer_onPlaying"})));break;case "timeupdate":J=this.mediaElement&&!this.mediaElement.getCurrentTime();l=this.mediaElement&&this.mediaElement.n$()===0;if(J&&(!this.rH|| l))return;this.rH=this.rH||!!this.mediaElement.getCurrentTime();B5H(this);this.v3();if(!this.mediaElement||this.mediaElement.ea()!==R)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.H8().length>0&&this.mediaElement.cH().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;if(this.Z("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.n$()>2||!this.mediaElement.isSeeking()&& Ig(this.mediaElement.cH(),this.mediaElement.getCurrentTime()))){var u=this.mediaElement.sf();u.bh=ly(this.mediaElement).toFixed(3);this.nJ("uwe",u)}if(g.dy(this.videoData)&&this.YH){u=this.YH;var F=this.mediaElement.getCurrentTime();if(!u.Gb.has(u.b5)){var G=0,y=0,w=YA(u.timeline,u.b5);if(w==null?0:w.length)for(w=g.N(w),w=w.next();!w.done;w=w.next()){y=w.value;G=y.u0();y=y.sV();break}if(!(y>0&&y>F*1E3+u.rlS)&&(y=Scx(u,G))){F=!1;G=void 0;y=g.N(y.segments);for(w=y.next();!w.done;w=y.next()){w=w.value; if(F){G=w;break}w.Od()===u.b5&&(F=!0)}y=void 0;G?y=G.Od():F&&(y=(J=u.timeline.L)==null?void 0:J.Od());y?u.finishSegmentByCpn(u.b5,y,2,void 0):u.api.nJ("ssap",{mfnc:1,mfncc:(l=u.timeline.L)==null?void 0:l.Od()})}}}break;case "resize":nx0(this);this.videoData.S&&this.videoData.S.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.C6&&g.d(this.playerState,8)&&!g.d(this.playerState,1024)&&this.getCurrentTime()===0&&g.N$){iA(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.ea()===R){cbB(this.Qs,O,this.YH||void 0);this.publish("videoelementevent",O);R=this.playerState;l=this.Ym;F=this.mediaElement;G=this.Ru.experiments;J=this.videoData.clientPlaybackNonce;w=g.dy(this.videoData)&&this.YH?KV(this.YH):void 0;if(!g.d(R,128)){u=R.state;F=F?F:O.target;y=F.getCurrentTime();if(!g.d(R,64)||O.type!=="ended"&&O.type!=="pause"){w=w||F.getDuration();w=F.isEnded()||y>1&&Math.abs(y-w)<1.1;var I=O.type==="pause"&&F.isEnded();y=O.type=== "ended"||O.type==="waiting"||O.type==="timeupdate"&&!g.d(R,4)&&!qv(l,y);if(I||w&&y)F.LQ()>0&&F.ea()&&(u=14);else switch(O.type){case "error":FL(F)&&(u|=128);break;case "pause":g.d(R,256)?(u^=256)||(u=64):g.d(R,32)||g.d(R,2)||g.d(R,4)||(u=4,g.d(R,1)&&g.d(R,8)&&(u|=1));break;case "playing":G=u;u=(u|8)&-1093;G&4?(u|=1,KX(l,F,!0)):qv(l,F.getCurrentTime())&&(u&=-2);g.d(R,1)&&KX(l,F)&&(u|=1);break;case "seeking":u|=16;g.d(R,8)&&(u|=1);u&=-3;break;case "seeked":u&=-17;KX(l,F,!0);break;case "waiting":g.d(R, 2)||(u|=1);KX(l,F);break;case "timeupdate":G=g.d(R,16);y=g.d(R,4);(g.d(R,8)||G)&&!y&&qv(l,F.getCurrentTime())&&(u=8);KX(l,F)&&(u|=1);break;case "progress":case "suspend":G.Vh("html5_track_underruns_on_progress")&&KX(l,F)}}l=u;u=null;l&128&&(u=O.target,F=FL(u),G=1,F?(F==="capability.changed"&&(G=2),y="GENERIC_WITHOUT_LINK",w=u.sf(),w.mediaElem="1",/AUDIO_RENDERER/.test(u.HH())&&(y="HTML5_AUDIO_RENDERER_ERROR"),u={errorCode:F,errorMessage:g.eK[y]||"",Z6:y,rg:$w(w),fk:G,cpn:R.PH?R.PH.cpn:""}):u=null, u&&(u.cpn=J));R=yg(R,l,u)}!g.d(this.playerState,1)&&g.d(R,1)&&dKz(this,"evt"+O.type);this.H3(R)}}}; g.f.XyN=function(O){O=O.L.availability==="available";O!==this.cO&&(this.cO=O,this.publish("airplayavailabilitychange"))}; g.f.vHd=function(){var O=(0,g.Q)(),R=this.mediaElement.oF();this.nJ("airplay",{ia:R});!R&&!isNaN(this.CQ)&&O-this.CQ<2E3||(this.CQ=O,R!==this.oF()&&(O=this.visibility,O.L!==R&&(O.L=R,O.RF()),this.nJ("airplay",{rbld:R}),this.Nb()),this.publish("airplayactivechange"))}; g.f.nH=function(O){if(this.loader){var R=this.loader,J=R.B,l=R.getCurrentTime(),u=Date.now()-J.W;J.W=NaN;J.nJ("sdai",{adfetchdone:O,d:u});O&&!isNaN(J.J)&&J.S!==3&&P8(J.loader,l,J.J,J.j);J.policy.B?J.D=NaN:J.N=NaN;eI(J,4,J.S===3?"adfps":"adf");Sv(R)}}; g.f.GX=function(){g.V3(this.pM);this.Kz.stop();this.videoData.iz=!0;this.Ru.Ek=!0;this.Ru.SG=0;var O=this.BP;if(O.videoData.S){var R=O.bz.D,J=O.videoData.S.Pq;R.N.has(J)&&(R.N.delete(J),R.S=!0)}O.L.stop();this.vz();g.d(this.playerState,8)&&this.H3(Ie(this.playerState,65));this.iA=!1;cmz(this.ZA());g.nP(this.hX);this.publish("playbackstarted");(O=g.hs("yt.scheduler.instance.clearPriorityThreshold"))?O():gj(0)}; g.f.vz=function(){var O=this.ys.fG(),R={},J={};!Q0("pbs",this.N9.timerName)&&qj.measure&&qj.getEntriesByName&&(qj.getEntriesByName("mark_nr")[0]?LM_("mark_nr"):LM_());O.videoId&&(R.videoId=O.videoId);O.clientPlaybackNonce&&!this.Z("web_player_early_cpn")&&(R.clientPlaybackNonce=O.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(J.isPausedOnLoad=!0);J.itag=O.S?Number(O.S.itag):-1;O.Bc&&(J.preloadType=String(this.oM?2:1));R.liveStreamMode=LIb[NZ(O)];R.playerInfo=J;this.N9.infoGel(R); if(this.loader){O=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(O.B&&(R=window.performance.getEntriesByName(O.B),R.length&&(R=R[0],O.tick("vri",R.fetchStart),O.tick("vdns",R.domainLookupEnd),O.tick("vreq",R.requestStart),O.tick("vrc",R.responseEnd))),O.S&&(R=window.performance.getEntriesByName(O.S),R.length&&(R=R[0],O.tick("ari",R.fetchStart),O.tick("adns",R.domainLookupEnd),O.tick("areq",R.requestStart),O.tick("arc",R.responseEnd))));O=O.ticks;for(var l in O)O.hasOwnProperty(l)&& this.N9.tick(l,O[l])}}; g.f.v3=function(O){var R=this;O=O===void 0?!1:O;if(this.mediaElement&&this.videoData){xTh(this.Qs,this.isPlaying());var J=this.getCurrentTime();!this.loader||g.d(this.playerState,4)&&g.XD(this.videoData)||g.d(this.playerState,32)&&FD(this.videoData)||Kks(this.loader,J);J>5&&(this.Qs.B=J);var l=g.JS();l?g.HJ.wU(this.jb):g.ZD(this.jb);var u=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!u||hd(this.videoData))&&!g.d(this.playerState,128)){var F=function(){if(R.mediaElement&&!g.d(R.playerState, 128)){R.Ru.DA()&&hdf(R,"pfx");var G=R.getCurrentTime();R.Z("html5_buffer_underrun_transition_fix")&&(G-=R.Vd());var y=ly(R.mediaElement),w=g.d(R.playerState,8),I=qv(R.Ym,G),C=b9W(R.Ym,G,(0,g.Q)(),y);w&&I?R.H3(Ie(R.playerState,1)):w&&C?(w=R.getDuration(),I=wr(R.videoData),w&&Math.abs(w-G)<1.1?(R.nJ("setended",{ct:G,bh:y,dur:w,live:I}),R.mediaElement.zZ()?(R.logger.debug("seek to 0 because of looping"),R.seekTo(0,{bK:"videoplayer_loop",seekSource:37})):R.Om()):(R.playerState.isBuffering()||dKz(R,"progress_fix"), R.H3(wc(R.playerState,1)))):(w&&!I&&!C&&G>0&&(w=(Date.now()-R.bN)/1E3,I=R.getDuration(),G>I-1&&R.nJ("misspg",{t:G.toFixed(2),d:I.toFixed(2),r:w.toFixed(2),bh:y.toFixed(2)})),R.playerState.isPaused()&&R.playerState.isBuffering()&&ly(R.mediaElement)>5&&R.H3(Ie(R.playerState,1)));R.v3()}}; this.mediaElement.H8().length===0?this.jb=l?g.HJ.lS(F,100):g.tF(F,100):this.jb=l?g.HJ.lS(F,500):g.tF(F,500)}this.videoData.Iu=J;this.YH&&this.YH.oY();!O&&this.isPlaying()&&UK2(this);pAx(this.m9,this.l0,this.FK(),this.isBackground())&&nn(this);this.publish("progresssync",O);u&&hd(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.f.Is=function(){this.Qk("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.f.QT=function(){return this.ZA().QT()}; g.f.cG=function(){return this.loader?this.loader.cG():m1(this.Ru.schedule,!0)}; g.f.H3=function(O){if(!g.rc(this.playerState,O)){this.logger.debug(function(){return"Setting state "+O.toString()}); var R=new g.tT(O,this.playerState);this.playerState=O;zdT(this);var J=!this.qO.length;this.qO.push(R);var l=this.mediaElement&&this.mediaElement.isSeeking();l=R.oldState.state===8&&!l;g.Z_(R,1)&&l&&g.d(this.playerState,8)&&!g.d(this.playerState,64)&&this.loader&&(Mps(this.loader),this.mediaElement&&ly(this.mediaElement)>=5&&e5s(this.m9,this.l0)&&nn(this));(l=g.tB(this.Ru.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.d(O,1)&&(g.d(O,8)||g.d(O,16))?this.oQ.start(l):this.oQ.stop();(oH(R, 8)<0||g.Z_(R,1024))&&this.Kz.stop();!g.Z_(R,8)||this.videoData.iz||g.d(R.state,1024)||this.Kz.start();g.d(R.state,8)&&oH(R,16)<0&&!g.d(R.state,32)&&!g.d(R.state,2)&&this.playVideo();g.d(R.state,2)&&TF(this.videoData)&&(this.SA(this.getCurrentTime()),this.v3(!0));g.Z_(R,2)&&(this.Lw(!0),this.Ru.DA()&&this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&FD(this.videoData)&&this.videoData.L&&(l={minst:""+this.videoData.L.k5,cminst:""+(this.videoData.L.q7()+this.Vd()),maxst:""+this.videoData.L.oa, hts:""+this.videoData.L.Hq,cmaxst:""+(this.videoData.L.N5()+this.Vd())},this.nJ("sabrSeekableBoundaries",l)));g.Z_(R,128)&&this.z_();this.videoData.L&&this.videoData.isLivePlayback&&!this.RO&&(oH(R,8)<0?IXf(this.videoData.L):g.Z_(R,8)&&this.videoData.L.resume());BR0(this.Qs,R);R1B(this.ZA(),R);if(J&&!this.jN())try{for(var u=g.N(this.qO),F=u.next();!F.done;F=u.next()){var G=F.value;ofH(this.LD,G);this.publish("statechange",G)}}finally{this.qO.length=0}}}; g.f.Gv=function(){this.N9.tick("qoes")}; g.f.lm=function(){this.Qs.lm()}; g.f.Tj=function(O,R,J,l){a:{var u=this.BP;l=l===void 0?"LICENSE":l;J=J.substring(0,256);var F=qC(R);O==="drm.keyerror"&&this.VI&&this.VI.S.keys.length>1&&u.N<96&&(O="drm.sessionlimitexhausted",F=!1);var G=u.bz.experiments.Vh("html5_retry_on_drm_unavailable"),y=u.bz.experiments.Vh("html5_retry_on_drm_key_error"),w=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(G&&O==="drm.unavailable"||y&&O==="drm.keyerror"&&!J.match(w))u.sZ("qoe.restart",{retryOnDrmError:1,e:O,detail:J}),u.LJ.FU(!0);else{if(F)if(u.videoData.S&& u.videoData.S.video.isHdr())D62(u,O);else{if(u.LJ.Qk(O,R,l,J),tvs(u,{detail:J}))break a}else u.sZ(O,{detail:J});O==="drm.sessionlimitexhausted"&&(u.nJ("retrydrm",{sessionLimitExhausted:1}),u.N++,Y6W(u.LJ))}}}; g.f.bGu=function(){var O=this,R=g.tB(this.Ru.experiments,"html5_license_constraint_delay"),J=J6();R&&J?(R=new g.zR(function(){O.Y4();Jb(O)},R),g.H(this,R),R.start()):(this.Y4(),Jb(this))}; g.f.Yf=function(O){this.publish("heartbeatparams",O)}; g.f.Ei=function(O){this.nJ("keystatuses",A0A(O));var R="auto",J=!1;this.videoData.S&&(R=this.videoData.S.video.quality,J=this.videoData.S.video.isHdr());a:{switch(R){case "highres":case "hd2880":R="UHD2";break;case "hd2160":case "hd1440":R="UHD1";break;case "hd1080":case "hd720":R="HD";break;case "large":case "medium":case "small":case "light":case "tiny":R="SD";break;default:R="";break a}J&&(R+="HDR")}R=hJ(O)?zK(O,R):O.N.includes(R);this.videoData.eW=O.eW;if(this.Z("html5_enable_vp9_fairplay")){if(J)if(O.J){var l; if((l=this.VI)==null?0:Lp(l.L))if((J=this.VI)==null)J=0;else{for(var u=l=void 0,F=g.N(J.S.values()),G=F.next();!G.done;G=F.next())G=G.value,l||(l=U9H(G,"SD")),u||(u=U9H(G,"AUDIO"));J.pE({sd:l,audio:u});J=l==="output-restricted"||u==="output-restricted"}else J=!R;if(J){this.nJ("drm",{dshdr:1});D62(this.BP);return}}else{this.videoData.AO||(this.videoData.AO=!0,this.nJ("drm",{dphdr:1}),this.FU(!0));return}var y;if((y=this.VI)==null?0:Lp(y.L))return}else if(y=O.J&&R,J&&!y){D62(this.BP);return}R||zK(O, "AUDIO")&&zK(O,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),O=A0A(O),this.ze?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.Z("html5_report_fatal_drm_restricted_error_killswitch")||this.Qk("drm.keyerror",2,void 0,"info."+O)):(this.ze=!0,this.sZ(new MC("qoe.restart",Object.assign({},{retrydrm:1},O))),nn(this),Y6W(this)))}; g.f.u5J=function(){if(!this.videoData.iz&&this.mediaElement&&!this.isBackground()){var O="0";this.mediaElement.n$()>0&&ly(this.mediaElement)>=5&&this.videoData.B&&this.videoData.B.L&&(this.H3(wc(this.playerState,1)),dKz(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),O="1");zdT(this);var R=this.videoData.B;O={restartmsg:O,mfmt:!gr(this.videoData),mdrm:!(!(R&&R.videoInfos&&R.videoInfos.length&&R.videoInfos[0].hp)||this.VI),mfmtinfo:!this.videoData.S,prerolls:this.QE()?this.V2.join(","): "0"};if(this.VI){R=this.VI;if(R.S.size<=0){var J="ns;";R.W||(J+="nr;");R=J+="ql."+R.B.length}else R=A0A(R.S.values().next().value),R=$w(R);O.drmp=R}var l;Object.assign(O,((l=this.loader)==null?void 0:l.sf())||{});var u;Object.assign(O,((u=this.mediaElement)==null?void 0:u.sf())||{});this.ZA().sZ("qoe.start15s",$w(O));this.publish("loadsofttimeout")}}; g.f.SA=function(O){this.videoData.lengthSeconds!==O&&(this.videoData.lengthSeconds=O,Jb(this))}; g.f.Lw=function(O,R){var J=this;O=O===void 0?!1:O;if(!this.AV)if(Q0("att_s","player_att")||Y3("att_s",void 0,"player_att"),this.Z("use_rta_for_player"))(function(){var u,F,G,y;return g.A(function(w){switch(w.S){case 1:if(!(u=O)){w.pJ(2);break}return g.k(w,g.NQs(),3);case 3:u=!w.L;case 2:if(u)return w.return();g.N0(w,4);F=iVW(J.ZA());if(!F)throw Error();G={};return g.k(w,g.SZ_((G.cpn=J.videoData.clientPlaybackNonce,G.encryptedVideoId=J.videoData.videoId||"",G),3E4),6);case 6:y=w.L;if(J.AV)throw Error(); if(!y.challenge)throw g.Aa(Error("Not sending attestation ping; no attestation challenge string")),Error();J.AV=!0;var I=[y.challenge];y.error?I.push("r1c="+y.error):y.webResponse&&I.push("r1a="+y.webResponse);var C;((C=y.adblockReporting)==null?void 0:C.reportingStatus)!==void 0&&I.push("r6a="+y.adblockReporting.reportingStatus);var r;((r=y.adblockReporting)==null?void 0:r.broadSpectrumDetectionResult)!==void 0&&I.push("r6b="+y.adblockReporting.broadSpectrumDetectionResult);F(I.join("&"));Y3("att_f", void 0,"player_att");g.as(w,0);break;case 4:g.Tz(w),Y3("att_e",void 0,"player_att"),g.ST(w)}})})().then(function(){R==null||R()}); else{var l=new g.MdA(this.videoData);if("c1a"in l.i8&&!g.xk.isInitialized()){Y3("att_wb",void 0,"player_att");this.ih===2&&Math.random()<.01&&g.Aa(Error("Botguard not available after 2 attempts"));if(O)return;if(this.ih<5){g.nP(this.N3);this.ih++;return}}(l=g.qmA(l))?(Y3("att_f",void 0,"player_att"),gfB(this.ZA(),l),this.AV=!0):Y3("att_e",void 0,"player_att")}}; g.f.lZ=function(O){O=O===void 0?!1:O;if(wr(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Q2()||g.XD(this.videoData)))O=this.getCurrentTime();else if(g.dy(this.videoData)&&this.YH){O=this.YH;var R=this.getCurrentTime();O=(O=t_p(O,R*1E3))?(O.sV()-O.u0())/1E3:0}else O=this.N5(O);return O}; g.f.xA=function(){return g.dy(this.videoData)?this.videoData.q7():this.q7()}; g.f.N5=function(O){return this.Qs.N5(O===void 0?!1:O)}; g.f.q7=function(){return this.Qs.q7()}; g.f.Vd=function(){return this.Qs?this.Qs.Vd():0}; g.f.getStreamTimeOffset=function(){return this.Qs?this.Qs.getStreamTimeOffset():0}; g.f.Y7=function(){var O=0;this.Ru.Z("web_player_ss_media_time_offset")&&(O=this.getStreamTimeOffset()===0?this.Vd():this.getStreamTimeOffset());return O}; g.f.setPlaybackRate=function(O){var R;this.playbackRate!==O&&$6p(this.m9,(R=this.videoData.B)==null?void 0:R.videoInfos)&&(this.playbackRate=O,nn(this));this.playbackRate=O;this.mediaElement&&this.mediaElement.setPlaybackRate(O)}; g.f.getPlaybackRate=function(){return this.playbackRate}; g.f.getPlaybackQuality=function(){var O="unknown";if(this.videoData.S&&(O=this.videoData.S.video.quality,O==="auto"&&this.mediaElement)){var R=this.LH();R&&R.videoHeight>0&&(O=Hd(R.videoWidth,R.videoHeight))}return O}; g.f.isHdr=function(){return!!(this.videoData.S&&this.videoData.S.video&&this.videoData.S.video.isHdr())}; g.f.g$=function(){this.ZA().g$()}; g.f.sendVideoStatsEngageEvent=function(O,R){var J=this.ZA();J.L?(J=Nv(J.L,"engage"),J.OQ=O,J.send(R)):R&&R()}; g.f.iC=function(O){return this.ZA().iC(O)}; g.f.isAtLiveHead=function(O,R){R=R===void 0?!1:R;return wr(this.videoData)&&(this.Tl||R)?this.Qs.isAtLiveHead(O):!1}; g.f.YV=function(){var O=this.N5(),R=this.getCurrentTime(),J;(J=!wr(this.videoData))||(J=this.Qs,J=!(J.L&&J.L.B));return J||this.Q2()||isNaN(O)||isNaN(R)?0:Math.max(0,O-R)}; g.f.Cw=function(O){(this.Tl=O)||this.Kz.stop();this.videoData.L&&(O?this.videoData.L.resume():IXf(this.videoData.L));if(this.loader){var R=this.videoData.Z("html5_disable_preload_for_ssdai_with_preroll")&&this.oo()&&this.videoData.isLivePlayback;O&&!R?this.loader.resume():Fa(this,!0)}g.d(this.playerState,2)||O?g.d(this.playerState,512)&&O&&this.H3(Ie(this.playerState,512)):this.H3(wc(this.playerState,512));R=this.ZA();R.qoe&&(R=R.qoe,g.Kn(R,g.vA(R.provider),"stream",[O?"A":"I"]))}; g.f.zj=function(O){O={n:O.name,m:O.message};this.ZA().sZ("player.exception",$w(O))}; g.f.nE=Rs(28);g.f.kV=Rs(57);g.f.k7=function(O){this.ZA().k7(O)}; g.f.ZS=function(O){this.ZA().ZS(O)}; g.f.Eh=function(O){this.ZA().Eh(O)}; g.f.gI=Rs(34);g.f.Tu=Rs(40);g.f.Iq=function(O){this.ZA().Iq(O)}; g.f.Ha=function(){this.nJ("hidden",{},!0)}; g.f.UU=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.f.v8=function(){return this.loader?this.loader.v8():!0}; g.f.setLoop=function(O){this.loop=O;this.mediaElement&&!g.$T(this.Ru)&&this.mediaElement.setLoop(O)}; g.f.zZ=function(){return this.mediaElement&&!g.$T(this.Ru)?this.mediaElement.zZ():this.loop}; g.f.Vz=function(O){this.nJ("timestamp",{o:O.toString()});this.Qs.Vz(O)}; g.f.Vs=function(O){this.N9.tick(O)}; g.f.jz=function(O){return this.N9.jz(O)}; g.f.Ik=function(O){this.N9.Ik(O)}; g.f.nJ=function(O,R,J){J=J===void 0?!1:J;this.ZA().nJ(O,R,J)}; g.f.rT=function(O,R,J){J=J===void 0?!1:J;this.ZA().nJ(O,R,J)}; g.f.sZ=function(O){this.ZA().sZ(O.errorCode,$w(O.details));O=O.errorCode;if(this.videoData.isLivePlayback&&(O==="qoe.longrebuffer"||O==="qoe.slowseek")||O==="qoe.restart"){O=this.loader?UOs(this.loader.videoTrack):{};var R,J;this.nJ("lasoe",Object.assign(this.loader?UOs(this.loader.audioTrack):{},(R=this.EQ)==null?void 0:(J=R.L)==null?void 0:J.MH()));var l,u;this.nJ("lvsoe",Object.assign(O,(l=this.EQ)==null?void 0:(u=l.S)==null?void 0:u.MH()))}}; g.f.nh=function(O,R,J){this.ZA().nh(O,R,J)}; g.f.Si=function(O,R,J,l,u,F,G,y){var w;if((w=this.videoData.L)!=null&&w.isLive){var I=R.playerType===2?R:O,C=O.videoData.videoId,r=R.videoData.videoId;if(C&&r){w=this.ZA();if(w.qoe){var t=w.qoe,Z=O.cpn,V=R.cpn,m=I.videoData.d5,E=t.provider.videoData.clientPlaybackNonce,a=t.provider.videoData.videoId,v=V!==E&&r!==a;E=Z!==E&&C!==a;t.reportStats();t.adCpn&&t.adCpn!==Z||(t.adCpn=E?Z:"",t.I0=E?C:"",t.adFormat=E?m:void 0,tm(t,2,F?4:u?2:0,V,r,l),t.reportStats(),t.adCpn=v?V:"",t.I0=v?r:"",t.adFormat=v?m: void 0,tm(t,2,F?5:u?3:1,Z,C,J),t.reportStats())}J=O.cpn;if(w.B.has(J)){if(u=g.e(w.B.get(J)),D8(u,!0).send(),ER(u),J!==w.provider.videoData.clientPlaybackNonce){j$2(u);var b;(b=w.L)==null||pn2(b);w.B.delete(J)}}else w.KA=w.provider.videoData.clientPlaybackNonce,w.KA&&w.L&&(w.B.set(w.KA,w.L),D8(w.L).send(),ER(w.L));b=R.cpn;I=I.videoData;l-=this.Y7();if(w.B.has(b)){l=g.e(w.B.get(b));var W=l.B&&isNaN(l.D)?mP(l):NaN;l=UvW(l,!1);isNaN(W)||(l.J=W);l.send()}else l=lnx(w,w.provider,I,l),w.B.set(b,l),Q$W(l, new g.tT(wc(new g.GP,8),new g.GP)),Pks(l),(W=w.L)==null||ER(W);w.KA=b;this.Z("html5_unify_csi_server_stitched_transition_logging")?x1T(this.N9,O.cpn,R.cpn,this.videoData.clientPlaybackNonce,R.videoData,G,void 0,y):(w=this.N9,l=this.videoData.clientPlaybackNonce,W=R.videoData,O=(O.cpn===l?"video":"ad")+"_to_"+(R.cpn===l?"video":"ad"),l={},W.j&&(l.cttAuthInfo={token:W.j,videoId:W.videoId}),G&&(l.startTime=G),jq(O,l),g.U8({targetVideoId:W.videoId,targetCpn:R.cpn,isSsdai:!0},O),w.Ru.Z("html5_enable_ssdai_transition_with_only_enter_cuerange")? G||yj(w,y,O):yj(w,y,O))}}else this.logger.L(360717806,"SSTEvent for nonSS")}; g.f.PG=function(){var O=this.ys,R=O.Mu;O.Mu=[];return R}; g.f.Yw=function(O){this.videoData.oJ=!0;this.sZ(new MC("sabr.fallback",O));this.FU(!0)}; g.f.qH=function(O,R){this.videoData.g7=!0;if(R===void 0||R)this.sZ(new MC("qoe.restart",O)),this.FU(!0);this.videoData.Zv()&&this.Z("html5_reload_caption_on_ssdai_fallback")&&this.ys.JC()}; g.f.E3=function(O){this.nJ("sdai",{aftimeout:O});this.sZ(new MC("ad.fetchtimeout",{timeout:O}))}; g.f.GU=function(O,R){this.nJ("timelineerror",O);O=new MC("dai.timelineerror",O);R?this.Qk("dai.timelineerror",1,"RETRYABLE_ERROR",$w(O.details)):this.sZ(O)}; g.f.qx=function(){return XX(this.ZA())}; g.f.getPlayerSize=function(){return this.yU.getPlayerSize()}; g.f.OV=function(){return this.yU.OV()}; g.f.Bf=function(){return this.N9}; g.f.RY=function(){return this.ys.RY()}; g.f.getVolume=function(){return this.ys.getVolume()}; g.f.Ni=function(){return this.ys.Ni()}; g.f.isMuted=function(){return this.ys.isMuted()}; g.f.b_=function(){return this.ys.b_()}; g.f.Hb=function(){this.RO=!0}; g.f.Z=function(O){return this.Ru.Z(O)}; g.f.yF=function(O,R,J,l,u){this.nJ("xvt",{m:O,g:R?1:0,tt:J?1:0,np:l?1:0,c:u})}; g.f.cw=function(){var O;(O=this.loader)==null||O.resume()}; g.f.oo=function(){return g.Zo(this.V2,"ad")}; g.f.Cx=function(){var O=this.getCurrentTime(),R=O-this.Vd();var J=this.mediaElement?r3(this.mediaElement.cH()):0;J=Math.floor(Math.max(J-R,0))+100;var l;return((l=this.loader)==null?0:l.Cx(R,J))?(this.nJ("sdai",{skipad:1,ct:R.toFixed(3),adj:J.toFixed(3)}),FD(this.videoData)&&this.loader.seek(R+J,{seekSource:89,bK:"videoplayer_skipServerStitchedAd"}),Rdz(this.Qs,O),!0):!1}; g.f.DA=function(){return this.Ru.DA()}; g.f.Va=function(){if(this.Z("html5_generate_content_po_token"))return this.videoData.JV||"";this.ys.Mw();return this.Ru.DZ||""}; g.f.S$=function(){if(this.videoData.videoId)return this.videoData.Up}; g.f.Ed=function(){return this.videoData.videoId}; g.f.j9=function(){return this.ys.q0}; g.f.f9=function(){return this.iA}; g.f.O6=function(){return this.ys.O6()}; g.f.mK=function(O,R){this.Qs.mK(O,R)}; g.f.xm=function(){this.Qs.xm()}; g.f.zv=function(O,R){var J=this.Z("html5_generate_content_po_token")?this.videoData:void 0;this.ys.zv(O,R,J)}; g.f.nR=function(O,R){var J;(J=this.loader)==null||J.nR(O,R)}; g.f.kD=function(){var O=this.QV();return!!O&&O.kD()}; g.f.vI=function(){return this.YH}; g.f.u2=function(O,R){this.ZA().u2(O,R)}; g.f.cT=function(){return this.ZA().cT()}; g.f.f_=function(){return this.videoData.gk}; g.f.uS=function(){return this.ys.uS()}; g.f.B5=function(){return this.ys.B5(this)}; g.f.c8=function(O){var R;(R=this.loader)==null||R.c8(O)}; g.f.Ga=function(){var O;(O=this.loader)==null||O.Ga()};g.S(Ocz,ze);g.S(RhL,ze);g.f=RhL.prototype;g.f.seekToChapterWithAnimation=function(O){var R=this;if(g.oI(this.api)&&!(O<0)){var J=this.api.getVideoData(),l=J.E0;if(l&&O=0)return;R=~R;g.Xk(this.items,R,0,O);gv(this.menuItems.element,O.element,R)}O.subscribe("size-change",this.DC,this);this.menuItems.publish("size-change")}; g.f.GS=function(O){O.unsubscribe("size-change",this.DC,this);this.jN()||(g.ft(this.items,O),this.menuItems.element.removeChild(O.element),this.menuItems.publish("size-change"))}; g.f.DC=function(){this.menuItems.publish("size-change")}; g.f.focus=function(){for(var O=0,R=0;R1&&g.vo(this)}; g.f.VU=function(){$Wf(this);this.ou&&(XaH(this),g.hH(this.element,this.size))}; g.f.St=function(){var O=this.L.pop();Ta2(this,O,this.L[this.L.length-1],!0)}; g.f.vE=function(O){if(!O.defaultPrevented)switch(O.keyCode){case 27:this.Xh();O.preventDefault();break;case 37:this.L.length>1&&this.St();O.preventDefault();break;case 39:O.preventDefault()}}; g.f.focus=function(){this.L.length&&this.L[this.L.length-1].focus()}; g.f.eN=function(){g.HD.prototype.eN.call(this);this.j&&this.j.dispose();this.J&&this.J.dispose()};g.S(Xa,g.Dn);Xa.prototype.open=function(O,R){this.initialize(O.items)&&this.EZ(R,!!R)}; Xa.prototype.initialize=function(O){g.Et(this.PY);if(O===void 0||O.length===0)return!1;var R=O.length;O=g.N(O);for(var J=O.next();!J.done;J=O.next())this.jr(J.value,R--);return!0}; Xa.prototype.jr=function(O,R){O.menuNavigationItemRenderer?ku2(this,O.menuNavigationItemRenderer,R):O.menuServiceItemRenderer&&sOL(this,O.menuServiceItemRenderer,R)};g.S(T0,S5);g.f=T0.prototype;g.f.mN=function(O){O.target!==this.dismissButton.element&&O.target!==this.overflowButton.element&&(this.sC(),this.onClickCommand&&this.X.tR("innertubeCommand",this.onClickCommand))}; g.f.Vo=function(){this.enabled=!1;this.W.hide()}; g.f.NJ=function(){return!!this.L&&this.enabled}; g.f.onVideoDataChange=function(O,R){this.TH(R);if(this.L){this.C0();a:if(!this.isCounterfactual){var J,l,u;this.banner.update({title:(J=this.L)==null?void 0:J.title,subtitle:(l=this.L)==null?void 0:l.subtitle,metadata:(u=this.L)==null?void 0:u.metadataText});var F;this.onClickCommand=g.x((F=this.L)==null?void 0:F.onTap,PM);var G;if(O=g.x((G=this.L)==null?void 0:G.onOverflow,PM))this.J=g.x(O,GYo);var y;if((y=this.L)==null?0:y.thumbnailImage){var w,I;G=((w=this.L)==null?void 0:(I=w.thumbnailImage)== null?void 0:I.sources)||[];if(G.length===0)break a;this.thumbnailImage.update({url:G[0].url})}else{var C;if((C=this.L)==null?0:C.thumbnailIconName){var r;this.thumbnailIcon.update({icon:(r=this.L)==null?void 0:r.thumbnailIconName})}}var t;this.shouldShowOverflowButton=!((t=this.L)==null||!t.shouldShowOverflowButton);var Z;this.shouldHideDismissButton=!((Z=this.L)==null||!Z.shouldHideDismissButton)}var V;this.banner.element.setAttribute("aria-label",((V=this.L)==null?void 0:V.a11yLabel)||"");var m; this.Gd=(m=this.L)==null?void 0:m.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;Wds(this)}}; g.f.L1d=function(){this.isVisible=!0;Wds(this)}; g.f.g9R=function(){this.isVisible=!1;Wds(this)}; g.f.bD=function(){S5.prototype.bD.call(this);this.S&&this.X.logVisibility(this.banner.element,this.isVisible)}; g.f.sC=function(){S5.prototype.sC.call(this,!1);this.S&&this.X.logClick(this.banner.element)}; g.f.jJ=function(O){this.j||(this.j=new Xa(this.X),g.H(this,this.j));var R,J;if((R=this.J)==null?0:(J=R.menu)==null?0:J.menuRenderer)this.j.open(this.J.menu.menuRenderer,O.target),O.preventDefault()}; g.f.TH=function(){}; g.f.C0=function(){}; g.f.eN=function(){this.X.XK("suggested_action_view_model");S5.prototype.eN.call(this)};g.S($f,T0); $f.prototype.TH=function(O){var R,J,l;this.productUpsellSuggestedActionViewModel=g.x((R=O.getWatchNextResponse())==null?void 0:(J=R.playerOverlays)==null?void 0:(l=J.playerOverlayRenderer)==null?void 0:l.suggestedActionViewModel,Dco);var u;if((u=this.productUpsellSuggestedActionViewModel)==null?0:u.content){var F;this.L=g.x((F=this.productUpsellSuggestedActionViewModel)==null?void 0:F.content,lRb)}var G,y;if(this.S=!!((G=this.productUpsellSuggestedActionViewModel)==null?0:(y=G.loggingDirectives)==null? 0:y.trackingParams)){var w,I;this.X.setTrackingParams(this.banner.element,((w=this.productUpsellSuggestedActionViewModel)==null?void 0:(I=w.loggingDirectives)==null?void 0:I.trackingParams)||null)}var C;this.isCounterfactual=!((C=this.productUpsellSuggestedActionViewModel)==null||!C.isCounterfactualServing)}; $f.prototype.C0=function(){var O=[],R,J=g.N(((R=this.productUpsellSuggestedActionViewModel)==null?void 0:R.ranges)||[]);for(R=J.next();!R.done;R=J.next()){var l=R.value;l&&(R=Number(l.startTimeMilliseconds),l=Number(l.endTimeMilliseconds),isNaN(R)||isNaN(l)||O.push(new g.uN(R,l,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.X.zy(O)};g.S(AIL,ze);g.S(MT,ze);MT.prototype.onVideoDataChange=function(O,R){var J=this;if(!xD(R)&&(O==="newdata"&&P0x(this),this.S&&this.B&&O==="dataloaded")){var l;mq(ur(this.api.T(),(l=this.api.getVideoData())==null?void 0:g.pQ(l)),function(u){J.B=!1;QO2(J,u)})}}; MT.prototype.Jj=function(){var O=this;if(g.$T(this.api.T())){var R,J=g.lr(this.api.T(),(R=this.api.getVideoData())==null?void 0:g.pQ(R));return mq(Zi(J),function(l){var u=PD();po(u,l);return O.api.Jj(u)})}return Zi(this.api.Jj())};g.S(g.kf,g.Lo);g.f=g.kf.prototype;g.f.open=function(){g.aR(this.Fh,this.S)}; g.f.o8=function(O){Ld2(this);var R=this.options[O];R&&(R.element.setAttribute("aria-checked","true"),this.KG(this.gB(O)),this.B=O)}; g.f.So=function(O){g.Et(this.S);for(var R={},J=!1,l=0;l=0?this.L.playbackRate:1}catch(O){return 1}}; g.f.setPlaybackRate=function(O){this.getPlaybackRate()!==O&&(this.L.playbackRate=O);return O}; g.f.zZ=function(){return this.L.loop}; g.f.setLoop=function(O){this.L.loop=O}; g.f.canPlayType=function(O,R){return this.L.canPlayType(O,R)}; g.f.isPaused=function(){return this.L.paused}; g.f.isSeeking=function(){return this.L.seeking}; g.f.isEnded=function(){return this.L.ended}; g.f.RJ=function(){return this.L.muted}; g.f.hI=function(O){Pd();this.L.muted=O}; g.f.H8=function(){return this.L.played||Km([],[])}; g.f.cH=function(){try{var O=this.L.buffered}catch(R){}return O||Km([],[])}; g.f.xJ=function(){return this.L.seekable||Km([],[])}; g.f.iM=function(){var O=this.L;return O.getStartDate?O.getStartDate():null}; g.f.getCurrentTime=function(){return this.L.currentTime}; g.f.setCurrentTime=function(O){this.L.currentTime=O}; g.f.getDuration=function(){return this.L.duration}; g.f.load=function(){var O=this.L.playbackRate;try{this.L.load()}catch(R){}this.L.playbackRate=O}; g.f.pause=function(){this.L.pause()}; g.f.play=function(){var O=this.L.play();if(!O||!O.then)return null;O.then(void 0,function(){}); return O}; g.f.n$=function(){return this.L.readyState}; g.f.LQ=function(){return this.L.networkState}; g.f.U0=function(){return this.L.error?this.L.error.code:null}; g.f.HH=function(){return this.L.error?this.L.error.message:""}; g.f.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.L instanceof window.HTMLVideoElement&&this.L.getVideoPlaybackQuality)return this.L.getVideoPlaybackQuality();if(this.L){var O=this.L,R=O.webkitDroppedFrameCount;if(O=O.webkitDecodedFrameCount)return{droppedVideoFrames:R||0,totalVideoFrames:O}}return{}}; g.f.oF=function(){return!!this.L.webkitCurrentPlaybackTargetIsWireless}; g.f.QS=function(){return!!this.L.webkitShowPlaybackTargetPicker()}; g.f.togglePictureInPicture=function(){var O=this.L,R=window.document;window.document.pictureInPictureEnabled?this.L!==R.pictureInPictureElement?O.requestPictureInPicture():R.exitPictureInPicture():eV()&&O.webkitSetPresentationMode(O.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.f.PT=function(){var O=this.L;return new g.qc(O.offsetLeft,O.offsetTop)}; g.f.getSize=function(){return g.zX(this.L)}; g.f.setSize=function(O){g.hH(this.L,O)}; g.f.getVolume=function(){return this.L.volume}; g.f.setVolume=function(O){Pd();this.L.volume=O}; g.f.yR=function(O){this.D[O]||(this.L.addEventListener(O,this.listener),this.D[O]=this.listener)}; g.f.setAttribute=function(O,R){this.L.setAttribute(O,R)}; g.f.removeAttribute=function(O){this.L.removeAttribute(O)}; g.f.hasAttribute=function(O){return this.L.hasAttribute(O)}; g.f.uU=Rs(67);g.f.vJ=Rs(69);g.f.jq=Rs(71);g.f.VJ=Rs(73);g.f.Rw=function(){return Sm(this.L)}; g.f.Np=function(O){g.F8(this.L,O)}; g.f.dC=function(O){return g.Hw(this.L,O)}; g.f.Fc=function(){return g.lu(document.body,this.L)}; g.f.audioTracks=function(){var O=this.L;if("audioTracks"in O)return O.audioTracks}; g.f.eN=function(){for(var O=g.N(Object.keys(this.D)),R=O.next();!R.done;R=O.next())R=R.value,this.L.removeEventListener(R,this.D[R]);gc.prototype.eN.call(this)}; g.f.Rg=function(O){this.L.disableRemotePlayback=O};g.S(Qx,g.L);g.S(Yf,g.L);Yf.prototype.show=function(){g.L.prototype.show.call(this);this.au();this.Zg.Z("html5_enable_moving_s4n_window")&&g.$T(this.Zg.T())&&this.V()}; Yf.prototype.hide=function(){g.L.prototype.hide.call(this);this.delay.stop();this.N.stop()}; Yf.prototype.au=function(){var O=(0,g.Q)(),R=lN2(this.Zg);LV(this.L,R.bandwidth_samples);LV(this.J,R.network_activity_samples);LV(this.B,R.live_latency_samples);LV(this.S,R.buffer_health_samples);var J={};R=g.N(Object.entries(R));for(var l=R.next();!l.done;l=R.next()){var u=g.N(l.value);l=u.next().value;u=u.next().value;this.W[l]!==u&&(J[l]=" "+String(u));this.W[l]=u}this.update(J);O=(0,g.Q)()-O>25?5E3:500;this.delay.start(O)}; Yf.prototype.V=function(){this.j?(this.position+=1,this.position>15&&(this.j=!1)):(--this.position,this.position<=0&&(this.j=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.N.start(2E4)};g.S(G2f,ze);g.S(dR,g.p);dR.prototype.L=function(){var O=(0,g.Q)()-this.startTime;O=Othis.N[O])&&(this.L=O,nV(this))}; g.f.onCueRangeExit=function(O){var R=Ng_(this,O);R&&this.L===O&&this.api.tR("innertubeCommand",R);this.clearTimeout();this.L=void 0}; g.f.onTimeout=function(O){this.L!==void 0&&(O==null?void 0:O.cueRangeId)===this.L&&(this.j=!1,(O=Ng_(this,this.L))&&this.api.tR("innertubeCommand",O))}; g.f.mA=function(O){this.S=O}; g.f.kf=function(){nV(this);this.S=void 0}; g.f.setTimeout=function(O){var R=this,J=Number(O==null?void 0:O.maxVisibleDurationMilliseconds);J&&(this.clearTimeout(),this.J=setTimeout(function(){R.onTimeout(O)},J))}; g.f.clearTimeout=function(){this.J&&clearTimeout(this.J);this.J=void 0;this.j=!1}; g.f.eN=function(){this.timelyActions=this.S=this.L=this.videoId=void 0;this.N={};this.VE();this.clearTimeout();ze.prototype.eN.call(this)};g.S(D1x,ze);g.S(O6,iY);O6.prototype.j=function(O){this.N(O?2:1)}; O6.prototype.S=function(){var O=this.X.getPresentingPlayerType();O===2||O===3?(this.L=!1,this.Fh.GS(this)):this.L||(O=this.hasVoiceBoostAudioTrack(),this.setEnabled(O),O=this.B()===2&&O,lY(this,O),this.Fh.jr(this),this.L=!0)}; O6.prototype.eN=function(){this.Fh.GS(this);iY.prototype.eN.call(this)};g.S(RM,ze);RM.prototype.getVoiceBoostUserPreference=function(){return this.L}; RM.prototype.setVoiceBoostUserPreference=function(O){this.api.nJ("vb_set",{pref:O});g.bE("yt-player-voice-boost",O);O!==this.L&&(this.L=O,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Nb())}; RM.prototype.hasVoiceBoostAudioTrack=function(){var O,R,J=(O=this.api.getVideoData())==null?void 0:(R=O.B)==null?void 0:R.L;return J?RT(J,function(l){var u;return((u=l.audio)==null?void 0:u.S)===!0}):!1}; RM.prototype.updateEnvironmentData=function(){this.api.T().iZ=this.L};var Wlx=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.S(iT,ze);iT.prototype.eN=function(){this.J&&(g.V3(this.J),this.J=void 0);ze.prototype.eN.call(this)}; iT.prototype.Mw=function(){(this.S?!this.L:this.B)&&uT(this)}; iT.prototype.UV=function(O,R,J){var l=this;if(XKW(O)){var u=J||"";if(this.L)R=FJ(this,u),Tgs(O,R);else{var F=new g.tA;R.push(F.promise);this.D.promise.then(function(){var G=FJ(l,u);Tgs(O,G);F.resolve()})}}}; iT.prototype.lR=function(O){var R=this;if(this.S||this.B)O.JV=FJ(this,O.videoId),this.L||(this.N=new Jw,this.D.promise.then(function(){R.N9.jz("pot_if");O.JV=FJ(R,O.videoId)}))};g.S(Gs,ze);Gs.prototype.setFullscreenQuickActions=function(O){this.L&&this.api.getRootNode().removeChild(this.L);O?(g.F8(O,"ytp-fullscreen-quick-actions"),g.F8(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.bR(this.api,O,4)):g.KM(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.L=O;eY0(this,this.api.isFullscreen())}; Gs.prototype.setPlayerOverlayVideoDetailsRenderer=function(O){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);O?(g.F8(O,"ytp-fullscreen-metadata"),this.api.Z("delhi_modern_web_player_fullscreen_metadata_bottom")?g.F8(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.F8(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.bR(this.api,O,4)):(g.KM(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.KM(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=O;eY0(this,this.api.isFullscreen())};g.S(PUs,ze);g.S(KT,g.p);KT.prototype.L=function(){for(var O=g.N(g.As.apply(0,arguments)),R=O.next();!R.done;R=O.next())(R=R.value)&&this.features.push(R)}; KT.prototype.eN=function(){for(var O=this.features.length-1;O>=0;O--)this.features[O].dispose();this.features.length=0;g.p.prototype.eN.call(this)};pKh.prototype.reset=function(){this.L=this.S=NaN};g.f=Bgh.prototype;g.f.reset=function(){pZ(this.timerName)}; g.f.tick=function(O,R){x3(O,R,this.timerName)}; g.f.jz=function(O){return LZ(O,void 0,this.timerName)}; g.f.Ik=function(O){q4(O,void 0,this.timerName)}; g.f.infoGel=function(O){g.U8(O,this.timerName)};g.S(jBs,g.y8);g.f=jBs.prototype;g.f.rB=function(O){return this.loop||!!O||this.index+1=0}; g.f.setShuffle=function(O){this.shuffle=O;O=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var R=0;R0)||qK(this,1,!0)}; g.f.kX=function(){this.j=!0;this.L.uK(this.D);this.D=this.L.U(document,"mouseup",this.DJ)}; g.f.DJ=function(){this.j=!1;qK(this,8,!1);this.L.uK(this.D);this.D=this.L.U(this.target,"mousedown",this.kX)}; g.f.zM=function(O){if(O=(O=O.changedTouches)&&O[0])this.OQ=O.identifier,this.L.uK(this.V),this.V=this.L.U(this.target,"touchend",this.rl,void 0,!0),qK(this,1024,!0)}; g.f.rl=function(O){if(O=O.changedTouches)for(var R=0;R1280||F>720)if(u=J.h1("maxresdefault.jpg"))break;if(l>640||F>480)if(u=J.h1("maxresdefault.jpg"))break; if(l>320||F>180)if(u=J.h1("sddefault.jpg")||J.h1("hqdefault.jpg")||J.h1("mqdefault.jpg"))break;if(u=J.h1("default.jpg"))break}g.cv(R)&&(R=new Image,R.addEventListener("load",function(){n8W()}),R.src=u?u:"",this.api.Bf().tick("ftr")); this.N.style.backgroundImage=u?"url("+u+")":""};g.S(g.Wr,g.L);g.Wr.prototype.resize=function(){}; g.Wr.prototype.S=function(O){var R=this;this.B=!1;pCz(this);var J=O.Z6,l=this.api.T();J!=="GENERIC_WITHOUT_LINK"||l.j?J==="TOO_MANY_REQUESTS"?(l=g.e(this.api.getVideoData()),this.KG(Pr(this,"TOO_MANY_REQUESTS_WITH_LINK",l.DQ(),void 0,void 0,void 0,!1))):J!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||l.j?this.api.T().Z("html5_enable_bandaid_error_screen")&&J==="HTML5_SPS_UMP_STATUS_REJECTED"&&!l.j?(l=l.hostLanguage,O="//support.google.com/youtube?p=videoError",l&&(O=g.s9(O,{hl:l})),this.KG(Pr(this,"HTML5_SPS_UMP_STATUS_REJECTED", O))):this.api.T().Z("enable_adb_handling_in_sabr")&&J==="BROWSER_OR_EXTENSION_ERROR"&&!l.j?(l=l.hostLanguage,O="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",l&&(O=g.s9(O,{hl:l})),this.KG(Pr(this,"BROWSER_OR_EXTENSION_ERROR",O))):this.KG(g.AN(O.errorMessage)):this.KG(Pr(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(O=l.hostLanguage,J="//support.google.com/youtube/?p=player_error1",O&&(J=g.s9(J, {hl:O})),this.KG(Pr(this,"GENERIC_WITH_LINK_AND_CPN",J,!0)),l.d5&&!l.N&&P8_(this,function(F){if(g.uY(F,R.api,!YX(R.api.T()))){F={as3:!1,html5:!0,player:!0,cpn:g.e(R.api.getVideoData()).clientPlaybackNonce};var G=R.api;G.P3("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:F});G.isFullscreen()&&G.toggleFullscreen()}})); if(this.B){var u=this.Bq("ytp-error-link");u&&(this.api.createClientVe(u,this,216104),this.api.logVisibility(u,!0),P8_(this,function(){R.api.logClick(u)}))}}; var ej_=/([^<>]+)<\/a>/;g.S(B80,g.L);g.f=B80.prototype;g.f.onClick=function(O){this.innertubeCommand?(this.X.tR("innertubeCommand",this.innertubeCommand),O.preventDefault()):g.uY(O,this.X,!0);this.X.logClick(this.element)}; g.f.onVideoDataChange=function(O,R){xwW(this,R);this.QI&&Uwz(this,this.QI)}; g.f.ZJ=function(O){var R=g.e(this.X.getVideoData());this.videoId!==R.videoId&&xwW(this,R);this.L&&Uwz(this,O.state);this.QI=O.state}; g.f.EZ=function(){this.fade.show();this.X.publish("paidcontentoverlayvisibilitychange",!0);this.X.logVisibility(this.element,!0)}; g.f.Xh=function(){this.fade.hide();this.X.publish("paidcontentoverlayvisibilitychange",!1);this.X.logVisibility(this.element,!1)};g.S(pT,g.L);pT.prototype.hide=function(){this.L.stop();this.message.style.display="none";g.L.prototype.hide.call(this)}; pT.prototype.onStateChange=function(O){this.UZ(O.state)}; pT.prototype.UZ=function(O){if(g.d(O,128)||this.api.f9())var R=!1;else{var J;R=this.api.Z("web_watch_enable_multiview_manager")&&((J=this.api.getVideoData())==null?0:xD(J))?!1:g.d(O,16)||g.d(O,1)?!0:!1}R?this.L.start():this.hide()}; pT.prototype.S=function(){this.message.style.display="block"};g.S(Br,g.HD);Br.prototype.onMutedAutoplayChange=function(O){this.B&&(O?(jlx(this),this.EZ()):(this.L&&this.logClick(),this.Xh()))}; Br.prototype.NU=function(O){this.api.isMutedByMutedAutoplay()&&g.Z_(O,2)&&this.Xh()}; Br.prototype.onClick=function(){this.api.unMute();this.logClick()}; Br.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.S(g.Hr,g.p8);g.f=g.Hr.prototype;g.f.init=function(){var O=this.api,R=O.getPlayerStateObject();this.aJ=O.getPlayerSize();this.H3(R);this.qb();this.tT();this.api.publish("basechromeinitialized",this);this.jj()&&this.api.publish("standardControlsInitialized")}; g.f.onVideoDataChange=function(O,R){var J=this.Ol!==R.videoId;if(J||O==="newdata"){O=this.api;O.isFullscreen()||(this.aJ=O.getPlayerSize());var l;((l=this.api.getVideoData(1))==null?0:g.dy(l))&&this.pS()}J&&(this.Ol=R.videoId,J=this.xo,J.iz=3E3,qK(J,512,!0),this.qb());this.api.Z("web_render_jump_buttons")&&R.showSeekingControls&&(this.HU=572)}; g.f.Jog=function(){this.onVideoDataChange("newdata",g.e(this.api.getVideoData()))}; g.f.xt=function(){var O=this.api.HQ()&&this.api.AD(),R=this.api.MY();return this.c9||O||this.KK||R}; g.f.pS=function(){var O=!this.xt();g.wI(this.api.getRootNode(),"ytp-menu-shown",!O);var R;((R=this.api.getVideoData(1))==null?0:g.dy(R))&&g.wI(this.api.getRootNode(),"ytp-hide-controls",!O)}; g.f.LU=function(O){try{if(!g.lu(this.api.getRootNode(),O))return!1}catch(R){return!1}for(;O&&!HtT(O);)O=O===this.api.getRootNode()?null:O.parentElement||null;return!!O}; g.f.Z5=function(O){var R=this.api.getRootNode();g.wI(R,"ytp-autohide",O);g.wI(R,"ytp-autohide-active",!0);this.TO.start(O?250:100);O&&(this.aR=!1,g.KM(R,"ytp-touch-mode"));this.sW=!O;this.api.SC(!O)}; g.f.nT=function(){var O=this.api.getRootNode();g.wI(O,"ytp-autohide-active",!1)}; g.f.U5q=function(){this.VQ=!0}; g.f.GyJ=function(O){if(this.api.T().Z("player_doubletap_to_seek")||this.api.T().J)this.VQ=!1,this.A5&&this.uK(this.A5),this.Ul===0&&U6(this,O)?(this.tU(),this.Qv.start(),this.A5=this.U(this.api.cq(),"touchmove",this.U5q,void 0,!0)):this.Qv.stop();dwx(this)&&U6(this,O)&&!this.api.T().J&&LZz(this);var R=this.t5.vQ();if(!g.$X(this.api.T())&&aZ&&hjx(this,O))R&&O.preventDefault();else if(this.aR=!0,g.F8(this.api.getRootNode(),"ytp-touch-mode"),this.xo.n_(),this.api.T().Z("player_doubletap_to_seek")||this.api.T().J)if(R= this.api.getPlayerStateObject(),!(!this.api.QD()||g.d(R,2)&&g.Xf(this.api)||g.d(R,64))){R=Date.now()-this.kY;this.Ul+=1;if(R<=350){this.TB=!0;R=this.api.getPlayerSize().width/3;var J=this.api.getRootNode().getBoundingClientRect(),l=O.targetTouches[0].clientX-J.left;J=O.targetTouches[0].clientY-J.top;var u=(this.Ul-1)*10;l>0&&lR*2&&l=650,l=O.width<528;this.xo.resize();g.wI(R,"ytp-fullscreen",this.api.isFullscreen());g.wI(R,"ytp-large-width-mode",J);g.wI(R,"ytp-xsmall-width-mode",l);g.wI(R,"ytp-small-mode",this.LW());g.wI(R,"ytp-tiny-mode",this.l1());g.wI(R,"ytp-big-mode",this.YW());this.IF&&this.IF.resize(O)}; g.f.NU=function(O){this.H3(O.state);this.qb()}; g.f.NE=Rs(5);g.f.ej=function(){var O=!!this.Ol&&!this.api.h3()&&!this.s4,R=this.api.getPresentingPlayerType()===2,J=this.api.T();if(R){if(Ots&&J.Z("enable_visit_advertiser_support_on_ipad_mweb"))return!1;R=vr(this.api.eG());O&&(R&&R.player?O=(O=R.player.getVideoData(2))?O.isListed&&!g.XV(R.player.T()):!1:(rK("showInfoBarDuringAd: this is null"),O=!1));return O}return O&&(J.eU||this.api.isFullscreen()||J.Ax)}; g.f.qb=function(){var O=this.ej();this.WM!==O&&(this.WM=O,g.wI(this.api.getRootNode(),"ytp-hide-info-bar",!O))}; g.f.H3=function(O){var R=O.isCued()||this.api.QE()&&this.api.getPresentingPlayerType()!==3;R!==this.isCued&&(this.isCued=R,this.T3&&this.uK(this.T3),this.T3=this.U(this.api.cq(),"touchstart",this.GyJ,void 0,R));var J=this.xo,l=O.isPlaying()&&!g.d(O,32)||this.api.MR();qK(J,128,!l);J=this.xo;l=this.api.getPresentingPlayerType()===3;qK(J,256,l);J=this.api.getRootNode();g.d(O,2)?l=[Q7.ENDED]:(l=[],g.d(O,8)?l.push(Q7.PLAYING):g.d(O,4)&&l.push(Q7.PAUSED),g.d(O,1)&&!g.d(O,32)&&l.push(Q7.BUFFERING),g.d(O, 32)&&l.push(Q7.SEEKING),g.d(O,64)&&l.push(Q7.UNSTARTED));g.bQ(this.M4,l)||(g.yF(J,this.M4),this.M4=l,g.Gw(J,l));l=this.api.T();var u=g.d(O,2);a:{var F=this.api.T();var G=F.controlsType;switch(G){case "2":case "0":F=!1;break a}F=G==="3"&&!g.d(O,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:bx4(vr(this.api.eG())))||this.api.MY()||g.$X(F)&&this.api.getPresentingPlayerType()===2?!1:!0}g.wI(J,"ytp-hide-controls",!F);g.wI(J,"ytp-native-controls",l.controlsType==="3"&&!R&&!u&&!this.KK);g.d(O, 128)&&!g.$X(l)?(this.IF||(this.IF=new g.Wr(this.api),g.H(this,this.IF),g.bR(this.api,this.IF.element,4)),this.IF.S(O.PH),this.IF.show()):this.IF&&(this.IF.dispose(),this.IF=null)}; g.f.sx=function(){return this.api.HQ()&&this.api.AD()?(this.api.BV(!1,!1),!0):this.api.h3()?(g.Te(this.api,!0),!0):!1}; g.f.onMutedAutoplayChange=function(O){this.KK=O;this.pS()}; g.f.YW=function(){return!1}; g.f.LW=function(){return!this.YW()&&(this.api.getPlayerSize().width=0&&R.left>=0&&R.bottom>R.top&&R.right>R.left?R:null;R=this.size;O=O.clone();R=R.clone();l&&(G=R,u=5,(u&65)==65&&(O.x=l.right)&&(u&=-2),(u&132)==132&&(O.y=l.bottom)&&(u&=-5),O.xl.right&&(G.width=Math.min(l.right-O.x,F+G.width-l.left),G.width=Math.max(G.width,0))),O.x+G.width>l.right&&u&1&&(O.x=Math.max(l.right-G.width,l.left)),O.yl.bottom&&(G.height=Math.min(l.bottom-O.y,F+G.height-l.top),G.height=Math.max(G.height,0))),O.y+G.height>l.bottom&&u&4&&(O.y=Math.max(l.bottom-G.height,l.top)));l=new g.bv(0,0,0,0);l.left=O.x;l.top=O.y;l.width= R.width;l.height=R.height;g.QH(this.element,new g.qc(l.left,l.top));g.MN(this.N);this.N.U(xe(this),"contextmenu",this.WMq);this.N.U(this.X,"fullscreentoggled",this.onFullscreenToggled);this.N.U(this.X,"pageTransition",this.Gp)}; g.f.WMq=function(O){if(!O.defaultPrevented){var R=vf(O);g.lu(this.element,R)||this.Xh();this.X.T().disableNativeContextMenu&&O.preventDefault()}}; g.f.onFullscreenToggled=function(){this.Xh();fm2(this)}; g.f.Gp=function(){this.Xh()};g.S(cr,g.L);cr.prototype.onClick=function(){var O=this,R,J,l,u;return g.A(function(F){if(F.S==1)return R=O.api.T(),J=g.e(O.api.getVideoData()),l=O.api.getPlaylistId(),u=R.getVideoUrl(J.videoId,l,void 0,!0),g.k(F,mgp(O,u),2);F.L&&NWp(O);O.api.logClick(O.element);g.ST(F)})}; cr.prototype.au=function(){this.updateValue("icon",{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar v\u00ednculo");this.visible=STh(this);g.wI(this.element,"ytp-copylink-button-visible", this.visible);this.M9(this.visible);this.tooltip.Rc();this.api.logVisibility(this.element,this.visible&&this.D)}; cr.prototype.JT=function(O){g.L.prototype.JT.call(this,O);this.api.logVisibility(this.element,this.visible&&O)}; cr.prototype.eN=function(){g.L.prototype.eN.call(this);g.KM(this.element,"ytp-copylink-button-visible")};g.S(E4z,g.L);g.f=E4z.prototype;g.f.show=function(){g.L.prototype.show.call(this);g.nP(this.S)}; g.f.hide=function(){this.N.stop();this.B=0;this.Bq("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.KM(this.element,"ytp-chapter-seek");g.KM(this.element,"ytp-time-seeking");g.L.prototype.hide.call(this)}; g.f.SP=function(O,R,J,l){this.B=O===this.J?this.B+l:l;this.J=O;var u=O===-1?this.W:this.V;u&&this.X.logClick(u);this.j?this.S.stop():g.OW(this.S);this.N.start();this.element.setAttribute("data-side",O===-1?"back":"forward");var F=3*this.X.cq().getPlayerSize().height;u=this.X.cq().getPlayerSize();u=u.width/3-3*u.height;this.L.style.width=F+"px";this.L.style.height=F+"px";O===1?(this.L.style.left="",this.L.style.right=u+"px"):O===-1&&(this.L.style.right="",this.L.style.left=u+"px");var G=F*2.5;F=G/ 2;var y=this.Bq("ytp-doubletap-ripple");y.style.width=G+"px";y.style.height=G+"px";O===1?(O=this.X.cq().getPlayerSize().width-R+Math.abs(u),y.style.left="",y.style.right=O-F+"px"):O===-1&&(O=Math.abs(u)+R,y.style.right="",y.style.left=O-F+"px");y.style.top="calc((33% + "+Math.round(J)+"px) - "+F+"px)";if(J=this.Bq("ytp-doubletap-ripple"))J.classList.remove("ytp-doubletap-ripple"),J.classList.add("ytp-doubletap-ripple");Dgs(this,this.j?this.B:l)}; g.f.o4=function(O,R,J){if(J=J===void 0?null:J){var l=O===-1?this.W.visualElement:this.V.visualElement;J={seekData:J};var u=g.X5();u&&g.nA(Ok)(void 0,u,l,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",J,void 0)}this.B=O===this.J?this.B+R:R;this.J=O;l=this.X.cq().getPlayerSize();this.j?this.S.stop():g.OW(this.S);this.N.start();this.element.setAttribute("data-side",O===-1?"back":"forward");g.F8(this.element,"ytp-time-seeking");this.L.style.width="110px";this.L.style.height="110px";J=l.width*.1-15;O=== 1?this.SN?(this.L.style.right=J+"px",this.L.style.left=""):(this.L.style.right="",this.L.style.left=l.width*.8-30+"px"):O===-1&&(this.SN?(this.L.style.right="",this.L.style.left=J+"px"):(this.L.style.right="",this.L.style.left=l.width*.1-15+"px"));this.L.style.top=l.height*.5+15+"px";Dgs(this,this.j?this.B:R)}; g.f.Jt=function(O,R,J){J=J===void 0?null:J;g.OW(this.S);this.N.start();switch(O){case -1:O="back";break;case 1:O="forward";break;default:O=""}this.element.setAttribute("data-side",O);this.L.style.width="0";this.L.style.height="0";g.F8(this.element,"ytp-chapter-seek");this.updateValue("seekText",R);this.updateValue("seekTime","");R=this.Bq("ytp-seek-icon");if(J){a:if(J){switch(J){case "PREMIUM_STANDALONE":J=ESA();break a;case "PREMIUM_STANDALONE_CAIRO":J=D$h();break a}J=void 0}else J=null;this.updateValue("seekIcon", J);R.style.display="inline-block"}else R.style.display="none"};g.S(amh,S5);g.f=amh.prototype;g.f.UE=function(O){this.Qh||(this.Qh=new Xa(this.X),g.H(this,this.Qh));var R,J;if((R=this.Rz)==null?0:(J=R.menu)==null?0:J.menuRenderer)this.Qh.open(this.Rz.menu.menuRenderer,O.target),O.preventDefault()}; g.f.NJ=function(){return!!this.L}; g.f.pw=function(){return!!this.L}; g.f.mN=function(O){O.target===this.overflowButton.element?O.preventDefault():(this.Py&&this.X.tR("innertubeCommand",this.Py),this.sC(!1))}; g.f.Vo=function(){this.sC(!0);var O,R;((O=this.L)==null?0:(R=O.bannerData)==null?0:R.dismissedStatusKey)&&this.d5.push(this.L.bannerData.dismissedStatusKey);this.Zi()}; g.f.a5=function(){this.Zi();JI(this)}; g.f.GSQ=function(O){var R=this,J;if(O.id!==((J=this.L)==null?void 0:J.identifier)){this.Zi();J=g.N(this.iz);for(var l=J.next();!l.done;l=J.next()){var u=l.value,F=void 0,G=void 0;if((l=(F=u)==null?void 0:(G=F.bannerData)==null?void 0:G.itemData)&&u.identifier===O.id){G=F=void 0;var y=((F=u)==null?void 0:(G=F.bannerData)==null?void 0:G.dismissedStatusKey)||"";if(this.d5.includes(y))return;this.L=u;this.banner.element.setAttribute("aria-label",l.accessibilityLabel||"");l.trackingParams&&(this.N=!0, this.X.setTrackingParams(this.badge.element,l.trackingParams));this.W.show();fV(this);this.N1.M9(!l.stayInApp);e__(this);Xj2(this);RO(this);this.Py=g.x(l.onTapCommand,PM);if(u=g.x(l.menuOnTap,PM))this.Rz=g.x(u,GYo);u=void 0;this.banner.update({thumbnail:(u=(l.thumbnailSources||[])[0])==null?void 0:u.url,title:l.productTitle,price:l.priceReplacementText?l.priceReplacementText:l.price,salesOriginalPrice:Mnp(this),priceDropReferencePrice:qTH(this),promotionText:$gs(this),priceA11yText:kp0(this),affiliateDisclaimer:l.affiliateDisclaimer, vendor:sns(this)});y=G=F=u=void 0;((u=l)==null?0:(F=u.hiddenProductOptions)==null?0:F.showDropCountdown)&&((G=l)==null?0:(y=G.hiddenProductOptions)==null?0:y.dropTimestampMs)&&(this.w5=new g.zR(function(){ApA(R)},1E3),this.N1.hide(),this.countdownTimer.show(),ApA(this)); this.X.Z("web_player_enable_featured_product_banner_exclusives_on_desktop")&&v42(this)&&(this.mM=new g.zR(function(){TWW(R)},1E3),TWW(this))}}this.X.getRootNode()&&g.F8(this.X.getRootNode(),"ytp-featured-product-shown")}}; g.f.Zi=function(){this.L&&(this.L=void 0,this.Me(),this.X.getRootNode()&&g.KM(this.X.getRootNode(),"ytp-featured-product-shown"))}; g.f.onVideoDataChange=function(O,R){var J=this;O==="dataloaded"&&JI(this);var l,u,F;O=g.x((l=R.getWatchNextResponse())==null?void 0:(u=l.playerOverlays)==null?void 0:(F=u.playerOverlayRenderer)==null?void 0:F.productsInVideoOverlayRenderer,uRC);this.overflowButton.show();this.dismissButton.hide();var G=O==null?void 0:O.featuredProductsEntityKey;this.trendingOfferEntityKey=O==null?void 0:O.trendingOfferEntityKey;this.iz.length||(Wch(this,G),RO(this));var y;(y=this.Y9)==null||y.call(this);this.Y9=g.Jd.subscribe(function(){Wch(J, G);RO(J)})}; g.f.eN=function(){JI(this);e__(this);Xj2(this);S5.prototype.eN.call(this)};g.S(xgB,g.L);xgB.prototype.onClick=function(){this.X.logClick(this.element,this.S)};g.S(UgW,g.HD);g.f=UgW.prototype;g.f.show=function(){g.HD.prototype.show.call(this);this.X.publish("infopaneldetailvisibilitychange",!0);this.X.logVisibility(this.element,!0);jnh(this,!0)}; g.f.hide=function(){g.HD.prototype.hide.call(this);this.X.publish("infopaneldetailvisibilitychange",!1);this.X.logVisibility(this.element,!1);jnh(this,!1)}; g.f.getId=function(){return this.N}; g.f.g1=function(){return this.itemData.length}; g.f.onVideoDataChange=function(O,R){if(R){var J,l,u,F;this.update({title:((J=R.cQ)==null?void 0:(l=J.title)==null?void 0:l.content)||"",body:((u=R.cQ)==null?void 0:(F=u.bodyText)==null?void 0:F.content)||""});var G;O=((G=R.cQ)==null?void 0:G.trackingParams)||null;this.X.setTrackingParams(this.element,O);G=g.N(this.itemData);for(O=G.next();!O.done;O=G.next())O.value.dispose();this.itemData=[];var y;if((y=R.cQ)==null?0:y.ctaButtons)for(R=g.N(R.cQ.ctaButtons),y=R.next();!y.done;y=R.next())if(y=g.x(y.value, OI6))y=new xgB(this.X,y,this.L),y.Dh&&(this.itemData.push(y),y.hR(this.items))}}; g.f.eN=function(){this.hide();g.HD.prototype.eN.call(this)};g.S(YTT,g.L);g.f=YTT.prototype;g.f.onVideoDataChange=function(O,R){Lcx(this,R);this.QI&&h_2(this,this.QI)}; g.f.lw=function(O){var R=g.e(this.X.getVideoData());this.videoId!==R.videoId&&Lcx(this,R);h_2(this,O.state);this.QI=O.state}; g.f.Pm=function(O){(this.B=O)?this.hide():this.L&&this.show()}; g.f.zp=function(){this.S||this.EZ();this.showControls=!0}; g.f.mY=function(){this.S||this.Xh();this.showControls=!1}; g.f.EZ=function(){var O,R=(O=this.X)==null?void 0:O.getPlayerSize();O=R.width<380;var J;R=R.height<(((J=this.X)==null?0:J.isEmbedsShortsMode())?400:280);var l,u;(((l=this.X)==null?0:l.getPlayerStateObject().isCued())||((u=this.X)==null?0:g.d(u.getPlayerStateObject(),1024)))&&O&&R||!this.L||this.B||(this.fade.show(),this.X.publish("infopanelpreviewvisibilitychange",!0),this.X.logVisibility(this.element,!0))}; g.f.Xh=function(){this.L&&!this.B&&(this.fade.hide(),this.X.publish("infopanelpreviewvisibilitychange",!1),this.X.logVisibility(this.element,!1))}; g.f.VzX=function(){this.S=!1;this.showControls||this.Xh()};var w2M={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(w2M).reduce(function(O,R){O[w2M[R]]=R;return O},{}); var Ipb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Ipb).reduce(function(O,R){O[Ipb[R]]=R;return O},{}); var C$C={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(C$C).reduce(function(O,R){O[C$C[R]]=R;return O},{});var r8t,twI;r8t=[{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"}];twI=[{option:0,text:i0(0)},{option:.25,text:i0(.25)},{option:.5,text:i0(.5)},{option:.75,text:i0(.75)},{option:1,text:i0(1)}]; g.Gu=[{option:"fontFamily",text:"Familia de fuente",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Informal"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:r8t},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:i0(.5)},{option:-1,text:i0(.75)},{option:0,text:i0(1)},{option:1, text:i0(1.5)},{option:2,text:i0(2)},{option:3,text:i0(3)},{option:4,text:i0(4)}]},{option:"background",text:"Color de fondo",options:r8t},{option:"backgroundOpacity",text:"Opacidad de fondo",options:twI},{option:"windowColor",text:"Color de la ventana",options:r8t},{option:"windowOpacity",text:"Opacidad de la ventana",options:twI},{option:"charEdgeStyle",text:"Estilo de borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"En relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de fuente",options:[{option:.25,text:i0(.25)},{option:.5,text:i0(.5)},{option:.75,text:i0(.75)},{option:1,text:i0(1)}]}];var oKs=[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.S(JPL,g.p8);g.f=JPL.prototype; g.f.zl=function(O){O.repeat||(this.B.Av=!1);var R=!1,J=O.keyCode,l=vf(O),u=!O.altKey&&!O.ctrlKey&&!O.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||oKs.includes(J)),F=!1,G=!1,y=this.api.T();O.defaultPrevented?(u=!1,G=!0):y.eR&&!this.api.isMutedByEmbedsMutedAutoplay()&&(u=!1);if(J===9)R=!0;else{if(l)switch(J){case 32:case 13:if(l.tagName==="BUTTON"||l.tagName==="A"||l.tagName==="INPUT")R=!0,u=!1;else if(u){var w=l.getAttribute("role");!w||w!=="option"&&w!=="button"&&w.indexOf("menuitem")!==0|| (R=!0,l.click(),F=!0)}break;case 37:case 39:case 36:case 35:R=l.getAttribute("role")==="slider";break;case 38:case 40:w=l.getAttribute("role"),l=J===38?l.previousSibling:l.nextSibling,w==="slider"?R=!0:u&&(w==="option"?(l&&l.getAttribute("role")==="option"&&l.focus(),F=R=!0):w&&w.indexOf("menuitem")===0&&(l&&l.hasAttribute("role")&&l.getAttribute("role").indexOf("menuitem")===0&&l.focus(),F=R=!0))}if(u&&!F)switch(J){case 38:F=Math.min(this.api.getVolume()+5,100);LT(this.jZ,F,!1);this.api.setVolume(F); G=F=!0;break;case 40:F=Math.max(this.api.getVolume()-5,0);LT(this.jZ,F,!0);this.api.setVolume(F);G=F=!0;break;case 36:this.api.QD()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),G=F=!0);break;case 35:this.api.QD()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),G=F=!0)}}R&&u0(this,!0);(R||G)&&this.xo.n_();(F||u&&this.handleGlobalKeyDown(J,O.shiftKey,O.ctrlKey,O.altKey,O.metaKey,O.key,O.code,O.repeat))&&O.preventDefault();y.V&&(O={keyCode:O.keyCode, altKey:O.altKey,ctrlKey:O.ctrlKey,metaKey:O.metaKey,shiftKey:O.shiftKey,handled:O.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.qc("onKeyPress",O))}; g.f.lx=function(O){var R=O.keyCode;(!this.api.Z("web_player_spacebar_control_bugfix")||this.api.Z("web_player_spacebar_control_bugfix")&&!this.B.Ai)&&this.handleGlobalKeyUp(R,O.shiftKey,O.ctrlKey,O.altKey,O.metaKey,O.key,O.code)&&O.preventDefault()}; g.f.handleGlobalKeyUp=function(O,R,J,l,u,F,G){this.api.publish("keyboardserviceglobalkeyup",{keyCode:O,shiftKey:R,ctrlKey:J,altKey:l,metaKey:u,key:F,code:G});R=!1;if(this.B.Av)return R;(u=g.ke(this.api.eG()))&&(u=u.Q$)&&u.ou&&(u.k6(O),R=!0);switch(O){case 9:u0(this,!0);R=!0;break;case 32:if(this.api.Z("web_speedmaster_spacebar_control")&&(!this.api.Z("web_player_spacebar_control_bugfix")&&!this.B.Ai||this.api.Z("web_player_spacebar_control_bugfix"))&&!this.api.T().eR){var y,w;O=(y=this.progressBar)== null?void 0:(w=y.S)==null?void 0:w.isEnabled;R=this.RX(O)}break;case 39:(Jy?l:J)&&this.api.Z("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),y=(y=this.api.getVideoData())?y.E0:[],w=n4x(y,this.api.getCurrentTime()*1E3),w!==-1&&this.L!=null&&(this.L.Jt(1,y[w].title),this.api.seekTo(y[w].startTime/1E3,void 0,void 0,void 0,52),R=!0))}return R}; g.f.handleGlobalKeyDown=function(O,R,J,l,u,F,G,y){y||(this.B.Av=!1);var w=!1,I=this.api.T();if(I.eR&&!this.api.isMutedByEmbedsMutedAutoplay())return w;var C=g.ke(this.api.eG());if(C&&(C=C.Q$)&&C.ou)switch(O){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:w=C.U9(O)}I.j||w||(w=F||String.fromCharCode(O).toLowerCase(),this.S+=w,"awesome".indexOf(this.S)===0||this.api.Z("web_player_rtr_ctrls")&&"bday".indexOf(this.S)===0?(w=!0,4===this.S.length&&this.S==="bday"&&this.api.Z("web_player_rtr_ctrls")&& (z4_(this.D),this.xo.n_()),7===this.S.length&&this.S==="awesome"&&mGB(this.api.getRootNode(),"ytp-color-party")):(this.S=w,w="awesome".indexOf(this.S)===0||"bday".indexOf(this.S)===0));if(!w&&(!this.api.isMutedByEmbedsMutedAutoplay()||oKs.includes(O))){var r=this.api.getVideoData(),t,Z;C=(t=this.progressBar)==null?void 0:(Z=t.S)==null?void 0:Z.isEnabled;t=r?r.E0:[];Z=Jy?l:J;switch(O){case 80:R&&!I.Qh&&(Qj(this.jZ,aA_(),"Anterior"),this.api.previousVideo(),w=!0);break;case 78:R&&!I.Qh&&(Qj(this.jZ, ah(),"Siguiente"),this.api.nextVideo(),w=!0);break;case 74:this.api.QD()&&(this.api.startSeekCsiAction(),this.L?this.api.Z("enable_key_press_seek_logging")?(w=Fn(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.L.o4(-1,10,w)):this.L.o4(-1,10):Qj(this.jZ,{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),w=!0);break;case 76:this.api.QD()&&(this.api.startSeekCsiAction(),this.L?this.api.Z("enable_key_press_seek_logging")?(w=Fn(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.L.o4(1,10,w)):this.L.o4(1,10):Qj(this.jZ,{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),w=!0);break;case 37:this.api.QD()&&(this.api.startSeekCsiAction(),Z?(Z=cpx(t,this.api.getCurrentTime()*1E3),Z!==-1&&this.L!=null&&(this.L.Jt(-1,t[Z].title),this.api.seekTo(t[Z].startTime/1E3,void 0,void 0,void 0,53),w=!0)):(this.L?this.api.Z("enable_key_press_seek_logging")?(w=Fn(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.L.o4(-1,5,w)):this.L.o4(-1,5):Qj(this.jZ,{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),w=!0));break;case 39:this.api.QD()&&(this.api.startSeekCsiAction(),Z?this.api.Z("web_enable_keyboard_shortcut_for_timely_actions")||(Z=n4x(t,this.api.getCurrentTime()*1E3),Z!==-1&&this.L!=null&&(this.L.Jt(1,t[Z].title),this.api.seekTo(t[Z].startTime/1E3,void 0,void 0,void 0,52),w=!0)):(this.L!=null?this.api.Z("enable_key_press_seek_logging")?(w=Fn(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.L.o4(1,5,w)):this.L.o4(1, 5):Qj(this.jZ,{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),w=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),LT(this.jZ,this.api.getVolume(),!1)):(this.api.mute(),LT(this.jZ,0,!0));w=!0;break;case 32:w=this.api.Z("web_speedmaster_spacebar_control")?!this.api.T().Qh:this.RX(C);break;case 75:w=this.RX(C);break;case 190:R?I.enableSpeedOptions&&iBH(this)&&(w=this.api.getPlaybackRate(),this.api.setPlaybackRate(w+.25,!0),nYs(this.jZ,!1),w=!0):this.api.QD()&&(this.step(1),w=!0);break;case 188:R? I.enableSpeedOptions&&iBH(this)&&(w=this.api.getPlaybackRate(),this.api.setPlaybackRate(w-.25,!0),nYs(this.jZ,!0),w=!0):this.api.QD()&&(this.step(-1),w=!0);break;case 70:yUz(this.api)&&(this.api.toggleFullscreen().catch(function(){}),w=!0); break;case 27:C?(this.progressBar.M2(),w=!0):this.j()&&(w=!0)}if(I.controlsType!=="3")switch(O){case 67:g.E6(this.api.eG())&&(I=this.api.getOption("captions","track"),this.api.toggleSubtitles(),cL0(this.jZ,!I||I&&!I.displayName),w=!0);break;case 79:Kc(this,"textOpacity");break;case 87:Kc(this,"windowOpacity");break;case 187:case 61:Kc(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Kc(this,"fontSizeIncrement",!0,!0)}var V;R||J||l||(O>=48&&O<=57?V=O-48:O>=96&&O<=105&&(V=O-96));V!=null&&this.api.QD()&& (this.api.startSeekCsiAction(),I=this.api.getProgressState(),this.api.seekTo(V/10*(I.seekableEnd-I.seekableStart)+I.seekableStart,void 0,void 0,void 0,81),w=!0);w&&this.xo.n_()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:O,shiftKey:R,ctrlKey:J,altKey:l,metaKey:u,key:F,code:G,repeat:y},this.B);return w}; g.f.step=function(O){this.api.QD();if(this.api.getPlayerStateObject().isPaused()){var R=g.e(this.api.getVideoData()).S;R&&(R=R.video)&&this.api.seekBy(O/(R.fps||30),void 0,void 0,O>0?77:78)}}; g.f.RX=function(O){if(!this.api.T().Qh){var R;var J,l=(R=this.api.getVideoData())==null?void 0:(J=R.getPlayerResponse())==null?void 0:J.playabilityStatus;if(l){var u;R=((u=g.x(l.miniplayer,t04))==null?void 0:u.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else R=!1;R&&this.api.tR("onExpandMiniplayer");O?this.progressBar.mV():(O=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.jZ.w0(O),O?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.f.eN=function(){g.OW(this.N);g.p8.prototype.eN.call(this)};g.S(g.yw,g.L);g.yw.prototype.tP=Rs(11); g.yw.prototype.au=function(){var O=this.X.T(),R=O.B||this.X.Z("web_player_hide_overflow_button_if_empty_menu")&&this.Yq.isEmpty();O=g.$X(O)&&g.MB(this.X)&&g.d(this.X.getPlayerStateObject(),128);var J=this.X.getPlayerSize();this.visible=this.X.LW()&&!O&&J.width>=240&&!g.zF(g.e(this.X.getVideoData()))&&!R&&!this.L&&!this.X.isEmbedsShortsMode();g.wI(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.X.Rc();this.X.logVisibility(this.element,this.visible&&this.D)}; g.yw.prototype.JT=function(O){g.L.prototype.JT.call(this,O);this.X.logVisibility(this.element,this.visible&&O)}; g.yw.prototype.eN=function(){g.L.prototype.eN.call(this);g.KM(this.element,"ytp-overflow-button-visible")};g.S(lv_,g.HD);g.f=lv_.prototype;g.f.VM=function(O){O=vf(O);g.lu(this.element,O)&&(g.lu(this.L,O)||g.lu(this.closeButton,O)||UY(this))}; g.f.Xh=function(){g.HD.prototype.Xh.call(this);this.X.BI(this.element)}; g.f.show=function(){this.ou&&this.X.publish("OVERFLOW_PANEL_OPENED");g.HD.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Fgz(this,!0)}; g.f.hide=function(){g.HD.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Fgz(this,!1)}; g.f.onFullscreenToggled=function(O){!O&&this.vQ()&&UY(this)}; g.f.isEmpty=function(){return this.actionButtons.length===0}; g.f.focus=function(){for(var O=g.N(this.actionButtons),R=O.next();!R.done;R=O.next())if(R=R.value,R.ou){R.focus();break}};g.S(G5p,g.L);G5p.prototype.onClick=function(O){g.uY(O,this.api)&&this.api.playVideoAt(this.index)};g.S(Kg2,g.HD);g.f=Kg2.prototype;g.f.show=function(){g.HD.prototype.show.call(this);this.L.U(this.api,"videodatachange",this.zC);this.L.U(this.api,"onPlaylistUpdate",this.zC);this.zC()}; g.f.hide=function(){g.HD.prototype.hide.call(this);g.MN(this.L);this.updatePlaylist(null)}; g.f.zC=function(){this.updatePlaylist(this.api.getPlaylist());this.api.T().B&&(this.Bq("ytp-playlist-menu-title-name").removeAttribute("href"),this.B&&(this.uK(this.B),this.B=null))}; g.f.CM=function(){var O=this.playlist,R=O.author,J=R?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",l={CURRENT_POSITION:String(O.index+1),PLAYLIST_LENGTH:String(O.getLength())};R&&(l.AUTHOR=R);this.update({title:O.title,subtitle:g.fR(J,l),playlisturl:this.api.getVideoUrl(!0)});R=O.S;if(R===this.N)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[O.index];else{J=g.N(this.playlistData);for(l=J.next();!l.done;l=J.next())l.value.dispose(); J=O.getLength();this.playlistData=[];for(l=0;l=this.S&&!O.B&&!R.isAd()&&!this.api.isEmbedsShortsMode()}else O=!1;this.visible=O;this.M9(this.visible);g.wI(this.element,"ytp-search-button-visible",this.visible);g.wI(this.element,"ytp-show-search-title",!this.api.LW());this.api.logVisibility(this.element,this.visible&&this.D)}; ra.prototype.JT=function(O){g.L.prototype.JT.call(this,O);this.api.logVisibility(this.element,this.visible&&O)};g.S(tI,g.L);tI.prototype.SP=function(O,R,J,l){Vss(this,O,l)}; tI.prototype.o4=function(O,R,J){Vss(this,O,R);J&&(O=O===-1?this.B.visualElement:this.L.visualElement,J={seekData:J},(R=g.X5())&&g.nA(Ok)(void 0,R,O,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",J,void 0))}; tI.prototype.Jt=function(O,R,J){Vss(this,O);R&&SVf(this,R,J)}; tI.prototype.hide=function(){g.L.prototype.hide.call(this);this.S=0;this.J=void 0};g.S(g.oO,g.L);g.f=g.oO.prototype;g.f.Cd=Rs(8); g.f.onClick=function(){var O=this,R=this.api.T(),J=g.e(this.api.getVideoData(this.api.getPresentingPlayerType())),l=this.api.getPlaylistId();R=this.api.Z("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):R.getVideoUrl(J.videoId,l,void 0,!0);if(navigator.share)try{var u=navigator.share({title:J.title,url:R});u instanceof Promise&&u.catch(function(F){mE_(O,F)})}catch(F){F instanceof Error&&mE_(this,F)}else this.L.sx(),UY(this.B,this.element,!1); this.api.logClick(this.element)}; g.f.au=function(){var O=this.api.T(),R=this.api.isEmbedsShortsMode();g.wI(this.element,"ytp-show-share-title",g.$X(O)&&!R);this.L.YW()&&R?(O=(this.api.cq().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.pS(this.element,"right",O+"px")):R&&g.pS(this.element,"right","0px");this.updateValue("icon",{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=N$_(this);g.wI(this.element,"ytp-share-button-visible",this.visible);this.M9(this.visible);this.tooltip.Rc();this.api.logVisibility(this.element,N$_(this)&&this.D)}; g.f.JT=function(O){g.L.prototype.JT.call(this,O);this.api.logVisibility(this.element,this.visible&&O)}; g.f.eN=function(){g.L.prototype.eN.call(this);g.KM(this.element,"ytp-share-button-visible")};g.S(DE2,g.HD);g.f=DE2.prototype;g.f.tQ=function(O){O=vf(O);g.lu(this.j,O)||g.lu(this.closeButton,O)||UY(this)}; g.f.Xh=function(){g.HD.prototype.Xh.call(this);this.tooltip.BI(this.element);this.api.logVisibility(this.L,!1);for(var O=g.N(this.B),R=O.next();!R.done;R=O.next())R=R.value,this.api.hasVe(R.element)&&this.api.logVisibility(R.element,!1)}; g.f.show=function(){var O=this.ou;g.HD.prototype.show.call(this);this.au();O||this.api.tR("onSharePanelOpened")}; g.f.Czq=function(){this.ou&&this.au()}; g.f.au=function(){var O=this;g.F8(this.element,"ytp-share-panel-loading");g.KM(this.element,"ytp-share-panel-fail");var R=g.e(this.api.getVideoData()),J=this.api.getPlaylistId()&&this.N.checked;R.getSharePanelCommand&&h9(g.e(this.api.Jj()),R.getSharePanelCommand,{includeListId:J}).then(function(l){O.jN()||(g.KM(O.element,"ytp-share-panel-loading"),XyT(O,l))}); R=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",R);this.updateValue("linkText",R);this.updateValue("shareLinkWithUrl",g.fR("Compartir v\u00ednculo $URL",{URL:R}));Kj(this.L);this.api.logVisibility(this.L,!0)}; g.f.onFullscreenToggled=function(O){!O&&this.vQ()&&UY(this)}; g.f.focus=function(){this.L.focus()}; g.f.eN=function(){g.HD.prototype.eN.call(this);avB(this)};g.S(Mss,S5);g.f=Mss.prototype;g.f.eN=function(){WgW(this);S5.prototype.eN.call(this)}; g.f.mN=function(O){O.target!==this.dismissButton.element&&(this.sC(!1),this.X.tR("innertubeCommand",this.onClickCommand))}; g.f.Vo=function(){this.AR=!0;this.sC(!0);this.Me()}; g.f.wYq=function(O){this.J=O;this.Me()}; g.f.onVideoDataChange=function(O,R){if(O=!!R.videoId&&this.videoId!==R.videoId)this.videoId=R.videoId,this.AR=!1,this.OQ=!0,this.V=this.Hq=!1,WgW(this),bB2(this,!1),this.S=this.L=!1,Vw(this),qVB(this);if(O||!R.videoId)this.SN=this.N=!1;var J,l;if(R==null?0:(J=R.getPlayerResponse())==null?0:(l=J.videoDetails)==null?0:l.isLiveContent)this.RF(!1);else{var u,F,G;R=g.x((u=R.getWatchNextResponse())==null?void 0:(F=u.playerOverlays)==null?void 0:(G=F.playerOverlayRenderer)==null?void 0:G.productsInVideoOverlayRenderer, uRC);this.J=this.enabled=!1;if(R){if(u=R==null?void 0:R.featuredProductsEntityKey){F=g.Jd.getState().entities;var y;if((y=Jk(F,"featuredProductsEntity",u))==null?0:y.productsData){this.RF(!1);return}}this.enabled=!0;if(!this.N){var w;y=(w=R.badgeInteractionLogging)==null?void 0:w.trackingParams;(this.N=!!y)&&this.X.setTrackingParams(this.badge.element,y||null)}if(!this.SN){var I;if(this.SN=!((I=R.dismissButton)==null||!I.trackingParams)){var C;this.X.setTrackingParams(this.dismissButton.element,((C= R.dismissButton)==null?void 0:C.trackingParams)||null)}}R.isContentForward&&(w=R.productsData,bB2(this,!0),qVB(this),w=spT(this,w),I=[],w.length>0&&I.push(w[0]),w.length>1&&(C=new g.L({Y:"div",G:"ytp-suggested-action-more-products-icon"}),g.H(this,C),I.push(C),I.push.apply(I,g.X(w.slice(1)))),this.j=new g.L({Y:"div",K:I,G:"ytp-suggested-action-content-forward-container"}),g.H(this,this.j),this.xS.element.append(this.j.element));this.text=g.V8(R.text);var r;if(w=(r=R.dismissButton)==null?void 0:r.a11yLabel)this.Gd= g.V8(w);this.onClickCommand=R.onClickCommand;this.timing=R.timing;this.zy()}aIB(this);fV(this);this.Me()}}; g.f.NJ=function(){return!this.J&&this.enabled&&!this.AR&&!this.X.LW()&&!this.SG&&(this.V||this.OQ)}; g.f.kR=function(O){S5.prototype.kR.call(this,O);if(this.L||this.S)this.timing&&ZI(this.timing.preview)&&(this.L=!1,Vw(this),this.S=!1,Vw(this),this.X.XK("shopping_overlay_preview_collapsed"),this.X.XK("shopping_overlay_preview_expanded"),O=fc(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),ZI(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.X.XK("shopping_overlay_expanded"),O.end=this.timing.expanded.endSec*1E3),this.X.zy([O])), this.Hq=!0,fV(this);Vw(this)}; g.f.RF=function(O){(this.V=O)?(Vx(this),fV(this,!1)):(WgW(this),this.Iu.start());this.Me()}; g.f.zy=function(O){var R=this.timing;O=(O===void 0?0:O)+this.X.getCurrentTime();var J=[],l=R.visible,u=R.preview;R=R.expanded;ZI(l)&&(T$z(l,O),J.push(fc(l.startSec,l.endSec,"shopping_overlay_visible")));ZI(u)&&(T$z(u,O),l=u.startSec+1,J.push(fc(u.startSec,l,"shopping_overlay_preview_collapsed")),J.push(fc(l,u.endSec,"shopping_overlay_preview_expanded")));ZI(R)&&(T$z(R,O),J.push(fc(R.startSec,R.endSec,"shopping_overlay_expanded")));this.X.zy(J)}; g.f.Me=function(){S5.prototype.Me.call(this);this.X.getRootNode()&&g.wI(this.X.getRootNode(),"ytp-shopping-pill-shown",this.NJ())};g.S(P3f,g.L); P3f.prototype.au=function(){var O=this.api.T();this.M9(g.$X(O)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.ou);var R=g.e(this.api.getVideoData()),J=!1;this.api.getPresentingPlayerType()===2?J=!!R.videoId&&!!R.isListed&&!!R.author&&!!R.Rz&&!!R.profilePicture:g.$X(O)&&(J=!!R.videoId&&!!R.Rz&&!!R.profilePicture&&!g.zF(R)&&!O.B&&!(O.J&&this.api.getPlayerSize().width<200));var l=R.profilePicture;O=g.$X(O)?R.expandedTitle:R.author;l=l=== void 0?"":l;O=O===void 0?"":O;J?(this.S!==l&&(this.L.style.backgroundImage="url("+l+")",this.S=l),this.updateValue("channelLogoLabel",g.fR("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:O})),g.F8(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.KM(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.L,J&&this.D);this.api.logVisibility(this.channelName,J&&this.D);this.subscribeButton&&(this.subscribeButton.channelId=R.oU);this.updateValue("expandedTitle",R.expandedTitle)};g.S(St,g.HD);St.prototype.show=function(){g.HD.prototype.show.call(this);this.L.start()}; St.prototype.hide=function(){g.HD.prototype.hide.call(this);this.L.stop()}; St.prototype.DO=function(O,R){O==="dataloaded"&&((this.Sa=R.Sa,this.jR=R.jR,isNaN(this.Sa)||isNaN(this.jR))?this.B&&(this.X.XK("intro"),this.X.removeEventListener(g.Gh("intro"),this.J),this.X.removeEventListener(g.KR("intro"),this.j),this.X.removeEventListener("onShowControls",this.N),this.hide(),this.B=!1):(this.X.addEventListener(g.Gh("intro"),this.J),this.X.addEventListener(g.KR("intro"),this.j),this.X.addEventListener("onShowControls",this.N),O=new g.uN(this.Sa,this.jR,{priority:9,namespace:"intro"}), this.X.zy([O]),this.B=!0))};g.S(NW,g.L);NW.prototype.onClick=function(){this.X.QS()}; NW.prototype.au=function(){var O=!0;g.$X(this.X.T())&&(O=O&&this.X.cq().getPlayerSize().width>=480);this.M9(O);this.updateValue("icon",this.X.oF()?{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,C:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: {Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.S(B$2,g.L);B$2.prototype.eN=function(){this.L=null;g.L.prototype.eN.call(this)};g.S(md,g.L);md.prototype.onClick=function(){this.X.tR("innertubeCommand",this.S)}; md.prototype.W=function(O){O!==this.j&&(this.update({title:O,ariaLabel:O}),this.j=O);O?this.show():this.hide()}; md.prototype.V=function(){this.L.disabled=this.S==null;g.wI(this.L,"ytp-chapter-container-disabled",this.L.disabled);this.v3()};g.S(Ez,md);Ez.prototype.onClickCommand=function(O){g.x(O,RN)&&this.v3()}; Ez.prototype.updateVideoData=function(O,R){var J,l,u;O=g.x((J=R.getWatchNextResponse())==null?void 0:(l=J.playerOverlays)==null?void 0:(u=l.playerOverlayRenderer)==null?void 0:u.decoratedPlayerBarRenderer,vx);J=g.x(O==null?void 0:O.playerBarActionButton,g.HO);this.X.Z("web_player_updated_entrypoint")&&(this.J=$k(J==null?void 0:J.text));this.S=J==null?void 0:J.command;md.prototype.V.call(this)}; Ez.prototype.v3=function(){var O=this.X.Z("web_player_updated_entrypoint")?this.J:"",R=this.N.L,J,l=((J=this.X.getLoopRange())==null?void 0:J.type)==="clips";if(R.length>1&&!l){O=this.X.getProgressState().current*1E3;J=l0(R,O);O=R[J].title||"Cap\u00edtulos";if(J!==this.currentIndex||this.B)this.X.tR("innertubeCommand",R[J].onActiveCommand),this.currentIndex=J;this.B=!1}else this.B=!0;md.prototype.W.call(this,O)};g.S(DI,g.tQ);DI.prototype.S=function(){var O;(O=this.element.parentElement)==null||O.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")}; DI.prototype.isExpanded=function(){return this.L};g.S(aO,g.L);aO.prototype.B=function(O){g.d(O.state,32)?xE_(this,this.api.wK()):this.ou&&(g.d(O.state,16)||g.d(O.state,1))||this.fade.hide()}; aO.prototype.aF=function(){var O=this.api.getPlayerStateObject();(g.d(O,32)||g.d(O,16))&&UE_(this)}; aO.prototype.N=function(){this.frameIndex=NaN;UE_(this)}; aO.prototype.hide=function(){this.L&&xE_(this,null);g.L.prototype.hide.call(this)};g.S(jps,g.L);g.f=jps.prototype;g.f.onClick=function(){var O=this;if(this.X.T().sQ||this.X.T().J){this.X.logClick(this.element);try{this.X.toggleFullscreen().catch(function(R){O.kA(R)})}catch(R){this.kA(R)}}else UY(this.message,this.element,!0)}; g.f.kA=function(O){String(O).includes("fullscreen error")?g.Aa(O):g.WM(O);this.NQ()}; g.f.NQ=function(){this.disable();this.message.EZ(this.element,!0)}; g.f.ut=function(){fa()===this.X.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())}; g.f.iQ=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var O=window.screen.width*.9,R=window.screen.height*.9,J=Math.max(window.outerWidth,window.innerWidth),l=Math.max(window.outerHeight,window.innerHeight);if(J>l!==O>R){var u=J;J=l;l=u}O>J&&R>l&&this.NQ()}}; g.f.disable=function(){var O=this;if(!this.message){var R=(oU(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La opci\u00f3n de pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la opci\u00f3n de pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.HD(this.X,{Y:"div",q1:["ytp-popup","ytp-generic-popup"], C:{role:"alert",tabindex:"0"},K:[R[0],{Y:"a",C:{href:"https://support.google.com/youtube/answer/6276924",target:this.X.T().W},FQ:R[2]},R[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",function(J){O.S.sA(O.message,J)}); g.bR(this.X,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.L)();this.L=null}}; g.f.au=function(){var O=yUz(this.X),R=this.X.T().J&&this.X.getPlayerSize().width<250;this.M9(O&&!R);var J;((J=this.X.T())==null?0:J.Z("embeds_use_parent_visibility_in_ve_logging"))?this.X.logVisibility(this.element,this.ou&&this.D):this.X.logVisibility(this.element,this.ou)}; g.f.K$=function(O){if(O){var R={Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"g",G:"ytp-fullscreen-button-corner-2",K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{Y:"g",G:"ytp-fullscreen-button-corner-3",K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{Y:"g",G:"ytp-fullscreen-button-corner-0",K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{Y:"g", G:"ytp-fullscreen-button-corner-1",K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};O=g.aI(this.X,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.X.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(J){g.Aa(J)})}else R={Y:"svg", C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"g",G:"ytp-fullscreen-button-corner-0",K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{Y:"g",G:"ytp-fullscreen-button-corner-1",K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{Y:"g",G:"ytp-fullscreen-button-corner-2",K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{Y:"g",G:"ytp-fullscreen-button-corner-3", K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},O=g.aI(this.X,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"});O=this.message?null:O;this.update({title:O,icon:R});this.S.Ty().Rc()}; g.f.eN=function(){this.message||((0,this.L)(),this.L=null);g.L.prototype.eN.call(this)}; g.f.JT=function(O){g.L.prototype.JT.call(this,O);var R;((R=this.X.T())==null?0:R.Z("embeds_use_parent_visibility_in_ve_logging"))&&this.X.logVisibility(this.element,this.ou&&O)};g.S(va,g.L);va.prototype.onClick=function(){this.X.logClick(this.element);this.X.seekBy(this.L,!0);var O=this.L>0?1:-1,R=Math.abs(this.L),J;(J=this.X.dK().JY)&&J.o4(O,R);this.S.isActive()?this.B=!0:(O=["ytp-jump-spin"],this.L<0&&O.push("backwards"),this.element.classList.add.apply(this.element.classList,g.X(O)),g.nP(this.S))};g.S(Xn,md);Xn.prototype.onClickCommand=function(O){g.x(O,iIt)&&this.v3()}; Xn.prototype.updateVideoData=function(){var O,R;this.S=(O=Lg_(this))==null?void 0:(R=O.onTap)==null?void 0:R.innertubeCommand;md.prototype.V.call(this)}; Xn.prototype.v3=function(){var O="",R=this.N.J,J,l=(J=Lg_(this))==null?void 0:J.headerTitle;J=l?g.V8(l):"";var u;l=((u=this.X.getLoopRange())==null?void 0:u.type)==="clips";R.length>1&&!l&&(O=this.X.getProgressState().current*1E3,u=z_x(R,O),O=u!=null?R[u].title:J,u!=null&&u!==this.currentIndex&&(this.X.tR("innertubeCommand",R[u].onActiveCommand),this.currentIndex=u));md.prototype.W.call(this,O)};g.S(Tu,g.L);Tu.prototype.onClick=function(){this.X.tR("onCollapseMiniplayer");this.X.logClick(this.element)}; Tu.prototype.au=function(){this.visible=!this.X.isFullscreen();this.M9(this.visible);this.X.logVisibility(this.element,this.visible&&this.D)}; Tu.prototype.JT=function(O){g.L.prototype.JT.call(this,O);this.X.logVisibility(this.element,this.visible&&O)};g.S($Z,g.L);g.f=$Z.prototype;g.f.KP=function(O){this.visible=O.width>=300||this.N1;this.M9(this.visible);this.X.logVisibility(this.element,this.visible&&this.D)}; g.f.v9S=function(){this.X.T().Iu?this.X.isMuted()?this.X.unMute():this.X.mute():UY(this.message,this.element,!0);this.X.logClick(this.element)}; g.f.onVolumeChange=function(O){this.setVolume(O.volume,O.muted)}; g.f.setVolume=function(O,R){var J=this,l=R?0:O/100,u=this.X.T();O=l===0?1:O>50?1:0;if(this.j!==O){var F=this.Hq;isNaN(F)?hs_(this,O):wKA(this.iz,function(y){hs_(J,F+(J.j-F)*y)},250); this.j=O}l=l===0?1:0;if(this.N!==l){var G=this.W;isNaN(G)?zsf(this,l):wKA(this.SN,function(y){zsf(J,G+(J.N-G)*y)},250); this.N=l}u.Iu&&(u=g.aI(this.X,"Silenciar","m"),l=g.aI(this.X,"Activar sonido","m"),this.updateValue("title",R?l:u),this.update({"data-title-no-tooltip":R?"Activar sonido":"Silenciar"}),this.tooltip.Rc())}; g.f.JT=function(O){g.L.prototype.JT.call(this,O);this.X.logVisibility(this.element,this.visible&&O)}; var YVH=["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"],dEW=["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.S(g.MW,g.L);g.f=g.MW.prototype;g.f.onStateChange=function(O){this.UZ(O.state);var R;((R=this.X.T())==null?0:R.Z("embeds_use_parent_visibility_in_ve_logging"))&&this.X.logVisibility(this.element,this.ou&&this.D)}; g.f.UZ=function(O){var R=g.XD(g.e(this.X.getVideoData())),J=!1;O.isOrWillBePlaying()?O=R?4:2:g.d(O,2)?(O=3,J=R):O=1;this.element.disabled=J;if(this.L!==O){R=null;switch(O){case 2:R=g.aI(this.X,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:R="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:R=g.aI(this.X,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:R="Detener la reproducci\u00f3n en vivo", this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}O===3?this.update({title:R,icon:nmp(O)}):(this.update({title:R}),(R=nmp(O))&&this.L&&this.L!==3?CUW(this.transition,this.element,R):this.updateValue("icon",R));this.tooltip.Rc();this.L=O}}; g.f.onVideoDataChange=function(){g.wI(this.element,"ytp-play-button-playlist",g.MB(this.X))}; g.f.RX=function(O){this.X.logClick(this.element);if(this.X.getPlayerStateObject().isOrWillBePlaying())this.X.pauseVideo();else{if(this.X.isMinimized()&&this.X.getPlayerStateObject().isCued()){var R={},J;if((J=this.X.getVideoData())==null?0:J.j)R.cttAuthInfo={token:this.X.getVideoData().j,videoId:this.X.getVideoData().videoId};jq("direct_playback",R);this.X.Bf().timerName="direct_playback"}this.X.playVideo()}this.X.isMinimized()&&(O==null?void 0:O.type)==="click"&&this.element.blur()}; g.f.JT=function(O){g.L.prototype.JT.call(this,O);var R;((R=this.X.T())==null?0:R.Z("embeds_use_parent_visibility_in_ve_logging"))&&this.X.logVisibility(this.element,this.ou&&O)};g.S(g.qW,g.L);g.f=g.qW.prototype;g.f.onVideoDataChange=function(){O5x(this);this.N&&(this.uK(this.N),this.N=null);this.videoData=this.X.getVideoData(1);if(this.playlist=this.X.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.N=this.U(this.X,"progresssync",this.C3);this.B=R3z(this);cPz(this);this.ll(this.X.cq().getPlayerSize())}; g.f.ll=function(O){O=O===void 0?this.X.cq().getPlayerSize():O;var R,J=((R=this.X.getLoopRange())==null?void 0:R.type)==="clips";O=(g.MB(this.X)||this.L&&g.WD(this.X)&&!this.X.Z("web_hide_next_button")||JRf(this))&&!J&&(this.L||O.width>=400);this.M9(O);this.X.logVisibility(this.element,O)}; g.f.onClick=function(O){this.X.logClick(this.element);var R=!0;this.J?R=g.uY(O,this.X):O.preventDefault();R&&(this.L&&this.X.getPresentingPlayerType()===5?this.X.publish("ytoprerollinternstitialnext"):this.L?(w5(this.X.Bf()),this.X.publish("playlistnextbuttonclicked",this.element),this.X.nextVideo(!0)):this.B?this.X.seekTo(0):(w5(this.X.Bf()),this.X.publish("playlistprevbuttonclicked",this.element),this.X.previousVideo(!0)))}; g.f.C3=function(){var O=R3z(this);O!==this.B&&(this.B=O,cPz(this))}; g.f.eN=function(){this.S&&(this.S(),this.S=null);O5x(this);g.L.prototype.eN.call(this)};g.S(i5p,g.L);g.f=i5p.prototype;g.f.cE=function(O){this.AG(O.pageX);this.VH(O.pageX+O.deltaX);lYp(this)}; g.f.AG=function(O){this.SN=O-this.Qh}; g.f.VH=function(O){O-=this.Qh;!isNaN(this.SN)&&this.thumbnails.length>0&&(this.W=O-this.SN,this.thumbnails.length>0&&this.W!==0&&(this.B=this.V+this.W,O=yRf(this,this.B),this.B<=this.L/2&&this.B>=KXB(this)?(this.api.seekTo(O,!1,void 0,void 0,25),g.pS(this.OQ,"transform","translateX("+(this.B-this.L/2)+"px)"),g72(this,O)):this.B=this.V))}; g.f.PE=function(){this.Hq&&(this.Hq.Vr=!0);var O=(0,g.Q)()-this.JR<300;if(Math.abs(this.W)<5&&!O){this.JR=(0,g.Q)();O=this.SN+this.W;var R=this.L/2-O;this.AG(O);this.VH(O+R);lYp(this);this.api.logClick(this.j)}lYp(this)}; g.f.sE=function(){kZ(this,this.api.getCurrentTime())}; g.f.play=function(O){this.api.seekTo(yRf(this,this.B),void 0,void 0,void 0,26);this.api.playVideo();O&&this.api.logClick(this.playButton)}; g.f.onExit=function(O){this.api.seekTo(this.Iu,void 0,void 0,void 0,63);this.api.playVideo();O&&this.api.logClick(this.dismissButton)}; g.f.tT=function(O,R){this.Qh=O;this.L=R;kZ(this,this.api.getCurrentTime())}; g.f.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Iu=this.api.getCurrentTime(),g72(this,this.Iu),g.wI(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.xS=this.U(this.element,"wheel",this.cE),this.logVisibility(this.isEnabled))}; g.f.disable=function(){this.isEnabled=!1;this.hide();g.wI(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.xS&&this.uK(this.xS);this.logVisibility(this.isEnabled)}; g.f.reset=function(){this.disable();this.N=[];this.N1=!1}; g.f.logVisibility=function(O){this.api.logVisibility(this.element,O);this.api.logVisibility(this.j,O);this.api.logVisibility(this.dismissButton,O);this.api.logVisibility(this.playButton,O)}; g.f.eN=function(){for(;this.S.length;){var O=void 0;(O=this.S.pop())==null||O.dispose()}g.L.prototype.eN.call(this)}; g.S(ubs,g.L);g.S(FXW,g.L);g.S(w5H,g.L);g.S(sz,g.L);sz.prototype.u5=function(O){return O==="PLAY_PROGRESS"?this.V:O==="LOAD_PROGRESS"?this.J:O==="LIVE_BUFFER"?this.j:this.B};rRs.prototype.update=function(O,R,J,l){J=J===void 0?0:J;this.width=R;this.N=J;this.L=R-J-(l===void 0?0:l);this.position=g.TY(O,J,J+this.L);this.B=this.position-J;this.S=this.B/this.L};g.S(tcs,g.L);g.S(g.AI,g.tQ);g.f=g.AI.prototype; g.f.fC=function(){var O=!1,R=this.api.getVideoData();if(!R)return O;this.api.XK("timedMarkerCueRange");Vcf(this);for(var J=g.N(R.sQ),l=J.next();!l.done;l=J.next()){l=l.value;var u=void 0,F=(u=this.Gd[l])==null?void 0:u.markerType;u=void 0;var G=(u=this.Gd[l])==null?void 0:u.markers;if(!G)break;if(F==="MARKER_TYPE_TIMESTAMPS"){O=g.N(G);for(F=O.next();!F.done;F=O.next()){u=F.value;F=new tcs;G=void 0;F.title=((G=u.title)==null?void 0:G.simpleText)||"";F.timeRangeStartMillis=Number(u.startMillis);F.L= Number(u.durationMillis);var y=G=void 0;F.onActiveCommand=(y=(G=u.onActive)==null?void 0:G.innertubeCommand)!=null?y:void 0;Dzf(this,F)}aY2(this,this.J);O=this.J;F=this.DZ;u=[];G=null;for(y=0;yw&&(G.end=w);w=OBL(w,w+C);u.push(w);G=w;F[w.id]=O[y].onActiveCommand}}this.api.zy(u);this.a8=this.Gd[l];O=!0}else if(F==="MARKER_TYPE_HEATMAP"){l=this.Gd[l];C=I=u=w=y=G=void 0;if(l&& l.markers){F=(u=(C=l.markersMetadata)==null?void 0:(I=C.heatmapMetadata)==null?void 0:I.minHeightDp)!=null?u:0;u=(G=(w=l.markersMetadata)==null?void 0:(y=w.heatmapMetadata)==null?void 0:y.maxHeightDp)!=null?G:60;G=this.L.length;y=null;for(w=0;w=C&&V<=r&&I.push(Z)}u>0&&(this.Hq.style.height= u+"px");C=this.N[w];r=I;Z=F;var m=u,E=w===0;E=E===void 0?!1:E;IYs(C,m);t=r;V=C.S;E=E===void 0?!1:E;var a=1E3/t.length,v=[];v.push({x:0,y:100});for(var b=0;b0&&(y=I[I.length-1])}g.et(this)}u=void 0;F=[];if(l=(u=l.markersDecoration)==null?void 0:u.timedMarkerDecorations)for(l=g.N(l),u=l.next();!u.done;u=l.next())u=u.value,w=y=G=void 0,F.push({visibleTimeRangeStartMillis:(G=u.visibleTimeRangeStartMillis)!=null?G:-1,visibleTimeRangeEndMillis:(y=u.visibleTimeRangeEndMillis)!=null?y:-1,decorationTimeMillis:(w=u.decorationTimeMillis)!= null?w:NaN,label:u.label?g.V8(u.label):""});l=F;this.heatMarkersDecorations=l}}R.Xl=this.J;g.wI(this.element,"ytp-timed-markers-enabled",O);return O}; g.f.tT=function(){g.et(this);Ba(this);aY2(this,this.J);if(this.S){var O=g.YF(this.element).x||0;this.S.tT(O,this.j)}(O=this.api.getVideoData())&&!this.api.Z("themed_progress_bar_refresh_on_resize_killswitch")&&ARL(this,O)}; g.f.onClickCommand=function(O){if(O=g.x(O,RN)){var R=O.key;O.isVisible&&R&&$zW(this,R)}}; g.f.HYz=function(O){this.api.tR("innertubeCommand",this.DZ[O.id])}; g.f.v3=function(){Ba(this);var O=this.api.getCurrentTime();(Othis.clipEnd)&&this.mJ()}; g.f.WE=function(O){if(!O.defaultPrevented){var R=!1;switch(O.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);R=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);R=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);R=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);R=!0;break;case 38:this.api.Z("enable_key_press_seek_logging")&&Lc(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);R=!0;break;case 40:this.api.Z("enable_key_press_seek_logging")&&Lc(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),R=!0}R&&O.preventDefault()}}; g.f.DO=function(O,R){this.updateVideoData(R,O==="newdata")}; g.f.kN=function(){this.DO("newdata",g.e(this.api.getVideoData()))}; g.f.updateVideoData=function(O,R){R=R===void 0?!1:R;var J=!!O&&O.Dh();J&&(hd(O)||b5x(this)?this.lc=!1:this.lc=O.allowLiveDvr,g.wI(this.api.getRootNode(),"ytp-enable-live-buffer",!(O==null||!hd(O))),this.api.Z("enable_custom_playhead_parsing")&&ARL(this,O));h3A(this,this.api.QD());if(R){if(J){R=O.clipEnd;this.clipStart=O.clipStart;this.clipEnd=R;YZ(this);for(Uz(this,this.SN,this.Rz);this.N.length>0;)this.N.pop().dispose();this.heatMarkersDecorations=[];this.w5={};var l;(l=this.S)==null||l.reset(); ca(this);g.wI(this.api.getRootNode(),"ytp-fine-scrubbing-exp",Wa(this))}else this.mJ();this.bS()}if(O){var u;l=((u=this.hT)==null?void 0:u.type)==="clips";if(u=!O.isLivePlayback){u=g.e(this.api.getVideoData());R=g.Xv(u);J=SFf(u);var F;u=R!=null||J!=null&&J.length>0||((F=u.pp)==null?void 0:F.length)>0}if(u&&!l){F=g.e(this.api.getVideoData());l=g.Xv(F);u=!1;if(l==null?0:l.markersMap){u=g.e(this.api.getVideoData());var G;u.Lp=((G=l.visibleOnLoad)==null?void 0:G.key)||u.Lp;G=g.N(l.markersMap);for(l=G.next();!l.done;l= G.next())l=l.value,l.key&&l.value&&(this.w5[l.key]=l.value,l.value.onChapterRepeat&&(u.pHd=l.value.onChapterRepeat));u.Lp!=null&&$zW(this,u.Lp);u=!0}var y;if(((y=F.pp)==null?void 0:y.length)>0){y=g.Jd.getState().entities;G=g.N(F.pp);for(l=G.next();!l.done;l=G.next()){l=l.value;J=void 0;R=(J=Jk(y,"macroMarkersListEntity",l))==null?void 0:J.markersList;var w=J=void 0;if(((J=R)==null?void 0:J.markerType)==="MARKER_TYPE_TIMESTAMPS"||((w=R)==null?void 0:w.markerType)==="MARKER_TYPE_HEATMAP")this.Gd[l]= R}u=this.fC()||u}!u&&(y=SFf(F))&&(mzz(this,y),F.E0=this.L,NtL(this));e3h(this,null);O.uO&&this.N.length===0&&(O=O.uO,y=O.key,O.isVisible&&y&&$zW(this,y))}else o7p(this),Vcf(this)}Ba(this)}; g.f.mD=function(O){this.V&&!g.d(O.state,32)&&this.api.getPresentingPlayerType()!==3&&this.V.cancel();var R;((R=this.S)==null?0:R.isEnabled)&&g.d(O.state,8)&&this.api.pauseVideo();O=this.api.getPresentingPlayerType()===2||!this.api.QD()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.wI(this.yk,"ytp-hide-scrubber-button",O)}; g.f.tW=function(O){var R=!!this.hT!==!!O,J=this.hT;this.hT=O;e3h(this,J);(O==null?void 0:O.type)!=="clips"&&O||(O?(this.updateValue("clipstarticon",VDL()),this.updateValue("clipendicon",VDL()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",ySp()),this.updateValue("clipendicon",K3T()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),R&&(this.updateVideoData(this.api.getVideoData(), !0),g.et(this)),YZ(this));Uz(this,this.SN,this.Rz)}; g.f.uKR=function(O,R,J){var l=g.YF(this.element),u=pc(this).L,F=J?J.getAttribute("data-tooltip"):void 0,G=J?J.getAttribute("data-position"):void 0,y=J?J.getAttribute("data-offset-y"):void 0;y=y?Number(y):0;G&&(O=AT(this.B,Number(J.getAttribute("data-position")),0)*u+g.YF(this.progressBar).x);this.fJ.x=O-l.x;this.fJ.y=R-l.y;O=pc(this);J=Qw(this,O);R=0;var w;if((w=this.api.getVideoData())==null?0:hd(w))(w=this.api.getProgressState().seekableEnd)&&J>w&&(J=w,O.position=AT(this.B,w)*pc(this).L),R=this.B.S; b5x(this)&&(R=this.B.S);w=F||g.vI(this.lc?J-this.B.L:J-R);R=O.position+this.Sa;J-=this.api.Vd();var I;if((I=this.S)==null||!I.isEnabled)if(this.api.wK()){if(this.L.length>1){I=jt(this,this.fJ.x,!0);if(!this.hT)for(l=0;l1)for(l=0;l0)for(I=this.fJ.x,l=g.N(this.J),u=l.next();!u.done;u=l.next())u=u.value,G=Pa(this,u.timeRangeStartMillis/ (this.B.L*1E3),pc(this)),g.wI(u.element,"ytp-timed-marker-hover",G<=I&&G+6>=I);l=this.tooltip.scale;I=this.api.Z("delhi_modern_web_player")?67:45;y=(isNaN(y)?0:y)-I*l;this.api.Z("web_key_moments_markers")?this.a8?(I=z_x(this.J,J*1E3),I=I!=null?this.J[I].title:""):(I=l0(this.L,J*1E3),I=this.L[I].title):(I=l0(this.L,J*1E3),I=this.L[I].title);I||(y+=16*l);this.tooltip.scale===.6&&(g.zj(this.api.T())?(y=this.api.cq().getPlayerSize().height-225,y=I?y+110:y+110+16):y=I?110:126);l=l0(this.L,J*1E3);this.N1= PKW(this,J,l)?l:PKW(this,J,l+1)?l+1:-1;g.wI(this.api.getRootNode(),"ytp-progress-bar-snap",this.N1!==-1&&this.L.length>1);l=!1;u=g.N(this.heatMarkersDecorations);for(G=u.next();!G.done;G=u.next()){G=G.value;var C=J*1E3;C>=G.visibleTimeRangeStartMillis&&C<=G.visibleTimeRangeEndMillis&&(I=G.label,w=g.vI(G.decorationTimeMillis/1E3),l=!0)}this.Xw!==l&&(this.Xw=l,this.api.logVisibility(this.Re,this.Xw));g.wI(this.api.getRootNode(),"ytp-progress-bar-decoration",l);l=160*this.tooltip.scale*2;u=I.length* (this.W?8.55:5.7);u=u<=l?u:l;G=u<160*this.tooltip.scale;l=3;!G&&u/2>O.position&&(l=1);!G&&u/2>this.j-O.position&&(l=2);this.api.T().J&&(y-=10);this.N.length&&this.N[0].Dh&&(y-=14*(this.W?2:1),this.Iu||(this.Iu=!0,this.api.logVisibility(this.Hq,this.Iu)));var r;if(Wa(this)&&(((r=this.S)==null?0:r.isEnabled)||this.Td>0)){var t;y-=((t=this.S)==null?0:t.isEnabled)?hI(this):this.Td}r=void 0;Wa(this)&&!this.api.Z("web_player_hide_fine_scrubbing_edu")&&(r="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa", this.Qh||(this.Qh=!0,this.api.logVisibility(this.vY,this.Qh)));this.tooltip.qk(R,J,w,!!F,y,I,l,r)}else this.tooltip.qk(R,J,w,!!F,y);g.F8(this.api.getRootNode(),"ytp-progress-bar-hover");sjH(this)}; g.f.bZQ=function(){this.bS();g.KM(this.api.getRootNode(),"ytp-progress-bar-hover");this.Iu&&(this.Iu=!1,this.api.logVisibility(this.Hq,this.Iu));this.Qh&&(this.Qh=!1,this.api.logVisibility(this.vY,this.Qh))}; g.f.OZh=function(O,R){var J=g.YF(this.element);this.TR=O-J.x;Wa(this)&&this.S&&(this.S.N1?kZ(this.S,this.api.getCurrentTime()):GBz(this.S),this.S.show(),g.wI(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.S.isEnabled));this.xe&&(this.xe.dispose(),this.xe=null);this.Bc=R;this.jR=this.api.getCurrentTime();this.L.length>1&&this.N1!==-1?this.api.seekTo(this.L[this.N1].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Qw(this,pc(this)),!1,void 0,void 0,7);g.F8(this.element,"ytp-drag");(this.O0= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.f.BOd=function(){if(Wa(this)&&this.S){var O=hI(this);this.Td>=O*.5?(this.S.enable(),kZ(this.S,this.api.getCurrentTime()),dzs(this,O)):ca(this)}if(g.d(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var R;if((R=this.S)==null?0:R.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.L.length>1&&this.N1!==-1)this.api.Z("html5_enable_progress_bar_slide_seek_logging")&&Lc(this,this.jR,this.L[this.N1].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.L[this.N1].startTime/1E3,void 0,void 0,void 0,7);else{O=Qw(this,pc(this));this.api.Z("html5_enable_progress_bar_slide_seek_logging")&&Lc(this,this.jR,O,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(O,void 0,void 0,void 0,7);R=g.N(this.heatMarkersDecorations);for(var J=R.next();!J.done;J=R.next())J=J.value,O*1E3>=J.visibleTimeRangeStartMillis&&O*1E3<=J.visibleTimeRangeEndMillis&& this.api.logClick(this.Re)}g.KM(this.element,"ytp-drag");this.iz&&(this.OQ.src=this.iz);this.O0&&!g.d(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.f.iZz=function(O,R){var J=this,l=pc(this),u=Qw(this,l);this.api.Z("enable_custom_playhead_parsing")&&!this.api.cq().Nd&&(l.position>this.TR+2?this.Py&&(this.OQ.src=this.Py):l.position1);this.M9(O&&this.X.cq().getPlayerSize().width>=400);this.X.logVisibility(this.element,this.ou);var R=1;O&&this.isActive()&&(R=2);if(this.L!==R){this.L=R;switch(R){case 1:this.updateValue("icon",{Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{Y:"path",LG:!0,C:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.F3z())}g.wI(this.element,"ytp-remote-button-active",this.isActive())}}; Ov.prototype.S=function(){if(this.X.getOption("remote","quickCast"))this.X.setOption("remote","quickCast",!0);else{var O=this.Fh,R=this.element;if(O.vQ())O.Xh();else{O.initialize();a:{var J=g.N(O.PY.items);for(var l=J.next();!l.done;l=J.next())if(l=l.value,l.priority===1){J=l;break a}J=null}J&&(J.open(),O.EZ(R));O.EZ(R)}}this.X.logClick(this.element)};g.S(RB,g.L);RB.prototype.L=function(O){var R=this.X.T(),J=400;this.X.Z("web_player_small_hbp_settings_menu")&&R.j?J=300:R.J&&(J=200);O=this.S&&O.width>=J;this.M9(O);this.X.Z("embeds_use_parent_visibility_in_ve_logging")?this.X.logVisibility(this.element,O&&this.D):this.X.logVisibility(this.element,O)}; RB.prototype.B=function(){if(this.Fh.ou)this.Fh.Xh();else{var O=g.E6(this.X.eG());O&&!O.loaded&&(O.fW("tracklist",{includeAsr:!0}).length||O.load());this.X.logClick(this.element);this.Fh.EZ(this.element)}}; RB.prototype.updateBadge=function(){var O=this.X.isHdr(),R=this.X.getPresentingPlayerType(),J=R!==2&&R!==3,l=g.sY(this.X),u=J&&!!g.ke(this.X.eG());R=u&&l.displayMode===1;l=u&&l.displayMode===2;J=(u=R||l)||!J?null:this.X.getPlaybackQuality();g.wI(this.element,"ytp-hdr-quality-badge",O);g.wI(this.element,"ytp-hd-quality-badge",!O&&(J==="hd1080"||J==="hd1440"));g.wI(this.element,"ytp-4k-quality-badge",!O&&J==="hd2160");g.wI(this.element,"ytp-5k-quality-badge",!O&&J==="hd2880");g.wI(this.element,"ytp-8k-quality-badge", !O&&J==="highres");g.wI(this.element,"ytp-3d-badge-grey",!O&&u&&R);g.wI(this.element,"ytp-3d-badge",!O&&u&&l)};g.S(Jz,iY);Jz.prototype.isLoaded=function(){var O=g.$x(this.X.eG());return O!==void 0&&O.loaded}; Jz.prototype.au=function(){g.$x(this.X.eG())!==void 0&&this.X.getPresentingPlayerType()!==3?this.L||(this.Fh.jr(this),this.L=!0):this.L&&(this.Fh.GS(this),this.L=!1);lY(this,this.isLoaded())}; Jz.prototype.onSelect=function(O){this.isLoaded();O?this.X.loadModule("annotations_module"):this.X.unloadModule("annotations_module");this.X.publish("annotationvisibility",O)}; Jz.prototype.eN=function(){this.L&&this.Fh.GS(this);iY.prototype.eN.call(this)};g.S(gg,g.kf);gg.prototype.au=function(){var O=this.X.getAvailableAudioTracks();O.length>1?(this.So(g.jO(O,this.L)),this.tracks=g.PR(O,this.L,this),this.countLabel.KG(O.length?" ("+O.length+")":""),this.publish("size-change"),this.o8(this.L(this.X.getAudioTrack())),this.enable(!0)):this.enable(!1)}; gg.prototype.wI=function(O){g.kf.prototype.wI.call(this,O);this.X.setAudioTrack(this.tracks[O]);this.Fh.St()}; gg.prototype.L=function(O){return O.toString()};g.S(iU,iY); iU.prototype.S=function(){var O=this.X.getPresentingPlayerType();if(O!==2&&O!==3&&g.WD(this.X))this.L||(this.Fh.jr(this),this.L=!0,this.B.push(this.U(this.X,"videodatachange",this.S)),this.B.push(this.U(this.X,"videoplayerreset",this.S)),this.B.push(this.U(this.X,"onPlaylistUpdate",this.S)),this.B.push(this.U(this.X,"autonavchange",this.N)),O=g.e(this.X.getVideoData()),this.N(O.autonavState),this.X.logVisibility(this.element,this.L));else if(this.L){this.Fh.GS(this);this.L=!1;O=g.N(this.B);for(var R= O.next();!R.done;R=O.next())this.uK(R.value)}}; iU.prototype.N=function(O){lY(this,O!==1)}; iU.prototype.onSelect=function(O){this.X.TU(O?2:1);this.L&&(this.X.logVisibility(this.element,this.L),this.X.logClick(this.element))}; iU.prototype.eN=function(){this.L&&this.Fh.GS(this);iY.prototype.eN.call(this)};g.S(n7H,g.Lo);n7H.prototype.onClick=function(O){O.preventDefault();var R,J;(R=g.oI(this.X))==null||(J=R.jo())==null||J.Xh();var l,u;(l=g.oI(this.X))==null||(u=l.RM())==null||u.EZ(O.target)};g.S(cRz,g.kf);g.f=cRz.prototype; g.f.aI=function(){var O=this.X.getPresentingPlayerType();if(O!==2&&O!==3){this.OQ=this.X.Jc();var R=this.X.getAvailableQualityLevels();if(this.L){this.N={};O=g.wL(this.X,"getAvailableQualityData",[]);O=g.N(O);for(var J=O.next();!J.done;J=O.next())J=J.value,this.N[J.qualityLabel]=J;O=Object.keys(this.N);R[R.length-1]==="auto"&&O.push("auto");this.iz=new Set(R)}else if(this.j){J=g.wL(this.X,"getAvailableQualityData",[]);O=[];J=g.N(J);for(var l=J.next();!l.done;l=J.next())l=l.value,this.W[l.quality]= l,l.quality&&O.push(l.quality);R[R.length-1]==="auto"&&O.push("auto")}else O=R;g.d2p(this.X)&&this.X.bF()&&O.unshift("missing-qualities");R=this.X.app.mX();J=R.getVideoData();if(!J.S||!J.S.video||J.S.video.qualityOrdinal<1080||J.DX)R=!1;else{l=/^qsa/.test(J.clientPlaybackNonce);var u="r";J.S.id.indexOf(";")>=0&&(l=/^[a-p]/.test(J.clientPlaybackNonce),u="x");l?(R.nJ("iqss",{trigger:u},!0),R=!0):R=!1}R&&O.unshift("inline-survey");this.So(O);R=g.e(this.X.getVideoData()).cotn?!0:!1;J=this.Hq.qK();J=!g.zj(this.X.T())|| !(R===void 0?0:R)||!(J===void 0||J);R=this.S;J=J===void 0?!1:J;R.P0&&g.wI(R.Bq("ytp-panel-footer"),"ytp-panel-hide-footer",J===void 0?!1:J);if(O.length){this.CP();this.enable(!0);return}}this.enable(!1)}; g.f.CP=function(){if(this.L){var O=this.X.getPreferredQuality();this.iz.has(O)&&(this.J=this.X.getPlaybackQuality(),this.SN=this.X.getPlaybackQualityLabel(),O==="auto"?(this.o8(O),this.KG(this.gB(O))):this.o8(this.SN))}else O=this.X.getPreferredQuality(),this.options[O]&&(this.J=this.X.getPlaybackQuality(),this.o8(O),O==="auto"&&this.KG(this.gB(O)))}; g.f.wI=function(O){if(O!=="missing-qualities"){g.kf.prototype.wI.call(this,O);var R=this.L?this.N[O]:this.W[O];var J=R==null?void 0:R.quality,l=R==null?void 0:R.formatId,u=R==null?void 0:R.paygatedQualityDetails;R=u==null?void 0:u.endpoint;if(u){var F;u=(F=this.options[O])==null?void 0:F.element;this.X.logClick(u)}if(this.L){var G,y;if((G=g.x(R,g.nbQ))==null?0:(y=G.popup)==null?0:y.notificationActionRenderer)this.X.tR("innertubeCommand",R);else if(R){this.X.tR("innertubeCommand",R);return}l?this.X.setPlaybackQuality(J, l):this.X.setPlaybackQuality(J)}else{if(this.j){var w,I;if((w=g.x(R,g.nbQ))==null?0:(I=w.popup)==null?0:I.notificationActionRenderer)this.X.tR("innertubeCommand",R);else if(R){this.X.tR("innertubeCommand",R);return}}this.X.setPlaybackQuality(O)}this.Fh.Xh();this.aI()}}; g.f.open=function(){for(var O=g.N(Object.values(this.options)),R=O.next();!R.done;R=O.next()){R=R.value;var J=void 0;this.X.hasVe((J=R)==null?void 0:J.element)&&(J=void 0,this.X.logVisibility((J=R)==null?void 0:J.element,!0))}g.kf.prototype.open.call(this);this.X.logClick(this.element)}; g.f.GT=function(O,R,J){var l=this;if(O==="missing-qualities")return new g.Lo({Y:"a",q1:["ytp-menuitem"],C:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.X.T().W,tabindex:"0",role:"menuitemradio"},K:[{Y:"div",q1:["ytp-menuitem-label"],FQ:"{{label}}"}]},R,this.gB(O));if(O!=="inline-survey"){var u,F=(u=this.L?this.N[O]:this.W[O])==null?void 0:u.paygatedQualityDetails;u=F==null?void 0:F.veType;F=F==null?void 0:F.trackingParams;R=g.kf.prototype.GT.call(this,O,R,J);F?(this.X.createServerVe(R.element, this,!0),this.X.setTrackingParams(R.element,F)):u&&this.X.createClientVe(R.element,this,u,!0);return R}O=[{Y:"span",FQ:"\u00bfSe ve bien?"}];J=g.N([!0,!1]);F=J.next();for(u={};!F.done;u={sD:void 0},F=J.next())u.sD=F.value,F=new g.L({Y:"span",G:"ytp-menuitem-inline-survey-response",K:[u.sD?ZgL():IAp()],C:{tabindex:"0",role:"button"}}),F.listen("click",function(G){return function(){var y=l.X.app.mX();y.nJ("iqsr",{tu:G.sD});y.getVideoData().DX=!0;l.Fh.Xh();l.aI()}}(u)),O.push(F); return new g.Lo({Y:"div",G:"ytp-menuitem",C:{"aria-disabled":"true"},K:[{Y:"div",q1:["ytp-menuitem-label"],K:O}]},R)}; g.f.gB=function(O,R){R=R===void 0?!1:R;if(O==="missing-qualities")return{Y:"div",FQ:"\u00bfFaltan opciones?"};if(O==="inline-survey")return"";var J=this.j||this.L?[Jof(this,O,R,!1)]:[RAH(this,O)];var l=this.X.getPreferredQuality();R||l!=="auto"||O!=="auto"||(J.push(" "),this.L?J.push(Jof(this,this.SN,R,!0,["ytp-menu-label-secondary"])):this.j?J.push(Jof(this,this.J,R,!0,["ytp-menu-label-secondary"])):J.push(RAH(this,this.J,["ytp-menu-label-secondary"])));return{Y:"div",K:J}};g.S(lU,g.L);lU.prototype.init=function(){this.updateValue("minvalue",this.j);this.updateValue("maxvalue",this.J);this.updateValue("stepvalue",this.V);this.updateValue("slidervalue",this.L);gnB(this,this.L)}; lU.prototype.N=function(){uU(this,Number(this.S.value));this.S.focus()}; lU.prototype.B=function(O){if(!O.defaultPrevented){switch(O.code){case "ArrowDown":O=-this.V;break;case "ArrowUp":O=this.V;break;default:return}uU(this,Math.min(this.J,Math.max(Number((this.L+O).toFixed(2)),this.j)))}};g.S(Fg,lU);Fg.prototype.N=function(){lU.prototype.N.call(this);this.W&&iHs(this)}; Fg.prototype.OQ=function(){this.SN()}; Fg.prototype.Hq=function(){this.X.setPlaybackRate(this.L,!0)}; Fg.prototype.B=function(O){lU.prototype.B.call(this,O);this.SN();iHs(this);O.preventDefault()};g.S(G2,g.L);g.f=G2.prototype;g.f.init=function(){this.AC(this.L);this.updateValue("minvalue",this.S);this.updateValue("maxvalue",this.B)}; g.f.f3=function(O){if(!O.defaultPrevented){switch(O.keyCode){case 37:case 40:var R=-this.V;break;case 39:case 38:R=this.V;break;default:return}this.AC(this.L+R);O.preventDefault()}}; g.f.Mg=function(O){var R=this.L;R+=(O.deltaX||-O.deltaY)<0?-this.W:this.W;this.AC(R);O.preventDefault()}; g.f.oH=function(O){O=(O-g.YF(this.N).x)/this.SN*this.range+this.S;this.AC(O)}; g.f.AC=function(O,R){R=R===void 0?"":R;O=g.TY(O,this.S,this.B);R===""&&(R=O.toString());this.updateValue("valuenow",O);this.updateValue("valuetext",R);this.Hq.style.left=(O-this.S)/this.range*(this.SN-this.N1)+"px";this.L=O}; g.f.focus=function(){this.xS.focus()};g.S(KC,G2);KC.prototype.OQ=function(){this.X.setPlaybackRate(this.L,!0)}; KC.prototype.AC=function(O){G2.prototype.AC.call(this,O,uj2(this,O).toString());this.j&&(lwB(this),this.iz())}; KC.prototype.updateValues=function(){var O=this.X.getPlaybackRate();uj2(this,this.L)!==O&&(this.AC(O),lwB(this))};g.S(FWB,g.tQ);FWB.prototype.focus=function(){this.L.focus()};g.S(GZ2,NT);g.S(KWT,g.kf);g.f=KWT.prototype;g.f.gB=function(O){return O==="1"?"Normal":O.toLocaleString()}; g.f.au=function(){var O,R=(O=this.X.getVideoData())==null?void 0:O.Zv();O=this.X.getPresentingPlayerType(R);this.enable(O!==2&&O!==3);Iw2(this)}; g.f.So=function(O){g.kf.prototype.So.call(this,O);this.J&&this.J.S.focus()}; g.f.QJ=function(O){g.kf.prototype.QJ.call(this,O);O?(this.SN=this.U(this.X,"onPlaybackRateChange",this.onPlaybackRateChange),Iw2(this),yox(this,this.X.getPlaybackRate())):(this.uK(this.SN),this.SN=null)}; g.f.onPlaybackRateChange=function(O){var R=this.X.getPlaybackRate();!this.N&&this.W.includes(R)||wYB(this,R);yox(this,O)}; g.f.GT=function(O,R,J){return O===this.L&&C7L(this.X)?g.kf.prototype.GT.call(this,O,R,J,{Y:"div",G:"ytp-speed-slider-menu-footer",K:[this.J]}):g.kf.prototype.GT.call(this,O,R,J)}; g.f.wI=function(O){g.kf.prototype.wI.call(this,O);O===this.L?this.X.setPlaybackRate(this.j,!0):this.X.setPlaybackRate(Number(O),!0);C7L(this.X)&&O===this.L||this.Fh.St()}; g.f.GC=function(O){var R=O===this.L;this.N=!1;R&&yZ(this.X)&&!C7L(this.X)?(O=new GZ2(this.X),g.aR(this.Fh,O)):g.kf.prototype.GC.call(this,O)};g.S(t9p,g.kf);g.f=t9p.prototype;g.f.o8=function(O){g.kf.prototype.o8.call(this,O)}; g.f.Pj=function(O){return O.option.toString()}; g.f.getOption=function(O){return this.settings[O]}; g.f.gB=function(O){return this.getOption(O).text||""}; g.f.wI=function(O){g.kf.prototype.wI.call(this,O);this.publish("settingChange",this.setting,this.settings[O].option)};g.S(IB,g.mT);IB.prototype.vc=function(O){for(var R=g.N(Object.keys(O)),J=R.next();!J.done;J=R.next()){var l=J.value;if(J=this.ET[l]){var u=O[l].toString();l=!!O[l+"Override"];J.options[u]&&(J.o8(u),J.N.element.setAttribute("aria-checked",String(!l)),J.L.element.setAttribute("aria-checked",String(l)))}}}; IB.prototype.dU=function(O,R){this.publish("settingChange",O,R)};g.S(CC,g.kf);CC.prototype.L=function(O){return O.languageCode}; CC.prototype.gB=function(O){return this.languages[O].languageName||""}; CC.prototype.wI=function(O){this.publish("select",O);this.X.logClick(this.element);g.vo(this.Fh)};g.S(V9s,g.kf);g.f=V9s.prototype;g.f.Ep=function(O){return g.nt(O)?"__off__":O.displayName}; g.f.gB=function(O){return O==="__off__"?"Desactivados":O==="__translate__"?"Traducci\u00f3n autom\u00e1tica":O==="__contribute__"?"Agregar subt\u00edtulos":O==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(O==="__off__"?{}:this.tracks[O]).displayName}; g.f.wI=function(O){if(O==="__translate__")this.L.open();else if(O==="__contribute__"){this.X.pauseVideo();this.X.isFullscreen()&&this.X.toggleFullscreen();var R=g.jC(this.X.T(),g.e(this.X.getVideoData()));g.L9(R)}else if(O==="__correction__"){this.X.pauseVideo();this.X.isFullscreen()&&this.X.toggleFullscreen();var J=fwA(this);rg(this,J);g.kf.prototype.wI.call(this,this.Ep(J));var l,u;J=(R=this.X.getVideoData().getPlayerResponse())==null?void 0:(l=R.captions)==null?void 0:(u=l.playerCaptionsTracklistRenderer)== null?void 0:u.openTranscriptCommand;this.X.tR("innertubeCommand",J);this.Fh.St();this.N&&this.X.logClick(this.N)}else{if(O==="__correction__"){this.X.pauseVideo();this.X.isFullscreen()&&this.X.toggleFullscreen();R=fwA(this);rg(this,R);g.kf.prototype.wI.call(this,this.Ep(R));var F,G;R=(J=this.X.getVideoData().getPlayerResponse())==null?void 0:(F=J.captions)==null?void 0:(G=F.playerCaptionsTracklistRenderer)==null?void 0:G.openTranscriptCommand;this.X.tR("innertubeCommand",R)}else this.X.logClick(this.element), rg(this,O==="__off__"?{}:this.tracks[O]),g.kf.prototype.wI.call(this,O);this.Fh.St()}}; g.f.au=function(){var O=this.X.getOptions();O=O&&O.indexOf("captions")!==-1;var R=this.X.getVideoData(),J=R&&R.AA,l,u=!((l=this.X.getVideoData())==null||!g.LQ(l));l={};if(O||J){var F;if(O){var G=g.e(this.X.getOption("captions","track"));l=Nhf(this.X.getOption("captions","tracklist",{includeAsr:!0}));var y=u?[]:Nhf(this.X.getOption("captions","translationLanguages"));this.tracks=g.PR(l,this.Ep,this);u=g.jO(l,this.Ep);var w,I;fwA(this)&&((F=R.getPlayerResponse())==null?0:(w=F.captions)==null?0:(I=w.playerCaptionsTracklistRenderer)== null?0:I.openTranscriptCommand)&&u.push("__correction__");if(y.length&&!g.nt(G)){if((F=G.translationLanguage)&&F.languageName){var C=F.languageName;F=y.findIndex(function(r){return r.languageName===C}); kzs(y,F)}onh(this.L,y);u.push("__translate__")}F=this.Ep(G)}else this.tracks={},u=[],F="__off__";u.unshift("__off__");this.tracks.__off__={};J&&u.unshift("__contribute__");this.tracks[F]||(this.tracks[F]=G,u.push(F));this.So(u);this.o8(F);G&&G.translationLanguage?this.L.o8(this.L.L(G.translationLanguage)):Ld2(this.L);O&&this.j.vc(g.e(this.X.getSubtitlesUserSettings()));this.countLabel.KG(l&&l.length?" ("+l.length+")":"");this.publish("size-change");this.X.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.f.RS=function(O){var R=g.e(this.X.getOption("captions","track"));R=g.RW(R);R.translationLanguage=this.L.languages[O];rg(this,R)}; g.f.dU=function(O,R){if(O==="reset")this.X.resetSubtitlesUserSettings();else{var J={};J[O]=R;this.X.updateSubtitlesUserSettings(J)}ZHz(this,!0);this.J.start();this.j.vc(g.e(this.X.getSubtitlesUserSettings()))}; g.f.CjS=function(O){O||g.OW(this.J)}; g.f.eN=function(){g.OW(this.J);g.kf.prototype.eN.call(this)}; g.f.open=function(){g.kf.prototype.open.call(this);this.options.__correction__&&!this.N&&(this.N=this.options.__correction__.element,this.X.createClientVe(this.N,this,167341),this.X.logVisibility(this.N,!0))};g.S(S3f,g.Dn);g.f=S3f.prototype; g.f.initialize=function(){if(!this.isInitialized){var O=this.X.T();this.isInitialized=!0;try{this.YU=new cRz(this.X,this)}catch(J){g.Aa(Error("QualityMenuItem creation failed"))}g.H(this,this.YU);var R=new V9s(this.X,this);g.H(this,R);O.B||(R=new Jz(this.X,this),g.H(this,R));O.enableSpeedOptions&&(R=new KWT(this.X,this),g.H(this,R));(g.$X(O)||O.j)&&(O.S||O.JR)&&(R=new n7H(this.X,this),g.H(this,R));O.vY&&!O.Z("web_player_move_autonav_toggle")&&(O=new iU(this.X,this),g.H(this,O));O=new gg(this.X,this); g.H(this,O);this.X.publish("settingsMenuInitialized");z3x(this.settingsButton,this.PY.g1())}}; g.f.jr=function(O){this.initialize();this.PY.jr(O);z3x(this.settingsButton,this.PY.g1())}; g.f.GS=function(O){this.ou&&this.PY.g1()<=1&&this.hide();this.PY.GS(O);z3x(this.settingsButton,this.PY.g1())}; g.f.EZ=function(O){this.initialize();this.PY.g1()>0&&g.Dn.prototype.EZ.call(this,O)}; g.f.Xh=function(){this.e2?this.e2=!1:g.Dn.prototype.Xh.call(this)}; g.f.show=function(){g.Dn.prototype.show.call(this);g.F8(this.X.getRootNode(),"ytp-settings-shown")}; g.f.hide=function(){g.Dn.prototype.hide.call(this);g.KM(this.X.getRootNode(),"ytp-settings-shown")}; g.f.RF=function(O){this.X.logVisibility(this.element,O);this.X.publish("settingsMenuVisibilityChanged",O)};g.S(mDp,g.L);g.f=mDp.prototype;g.f.onClick=function(){if(EnW(this)&&(this.X.toggleSubtitles(),this.X.logClick(this.element),!this.isEnabled())){var O=!1,R=g.xs(g.Hf(),65);g.zj(this.X.T())&&R!=null&&(O=!R);O&&this.X.T().Z("web_player_nitrate_promo_tooltip")&&this.X.publish("showpromotooltip",this.element)}}; g.f.ewJ=function(O){var R,J;(R=g.oI(this.X))==null||(J=R.jo())==null||J.EZ(O)}; g.f.isEnabled=function(){return!!this.X.getOption("captions","track").displayName}; g.f.au=function(){var O=EnW(this),R=300;this.X.T().J&&(R=480);if(this.X.T().j){this.updateValue("title",g.aI(this.X,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var J=O}else{if(O)(J=this.Bq("ytp-subtitles-button-icon"))==null||J.setAttribute("fill-opacity","1"),this.updateValue("title",g.aI(this.X,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{var l;(l=this.Bq("ytp-subtitles-button-icon"))==null||l.setAttribute("fill-opacity", "0.3");this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}J=!0}this.tooltip.Rc();J=J&&this.X.cq().getPlayerSize().width>=R;this.M9(J);this.X.Z("embeds_use_parent_visibility_in_ve_logging")?this.X.logVisibility(this.element,J&&this.D):this.X.logVisibility(this.element,J);O?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.f.JT=function(O){g.L.prototype.JT.call(this,O);this.X.T().Z("embeds_use_parent_visibility_in_ve_logging")&&this.X.logVisibility(this.element,this.ou&&O)};g.S(g.tz,g.L);g.f=g.tz.prototype; g.f.v3=function(){var O=this.api.cq().getPlayerSize().width,R=this.W;this.api.T().J&&(R=400);R=O>=R&&(!oB(this)||!g.d(this.api.getPlayerStateObject(),64));this.M9(R);g.wI(this.element,"ytp-time-display-allow-autohide",R&&O<400);O=this.api.getProgressState();if(R){var J=this.api.getPresentingPlayerType();R=this.api.getCurrentTime(J,!1);this.S&&(R-=O.airingStart);ZN(this)&&(R-=this.hT.startTimeMs/1E3);ZN(this)||oB(this)||!this.B||(R-=this.api.getDuration(J,!1));var l=g.vI(R);this.N!==l&&(this.updateValue("currenttime", l),this.N=l);J=ZN(this)?(this.hT.endTimeMs-this.hT.startTimeMs)/1E3:this.api.getDuration(J,!1);l=g.vI(J);this.j!==l&&(this.updateValue("duration",l),this.j=l,R&&(R=g.fR("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.vI(R,!0),DURATION:g.vI(J,!0)}),this.updateValue("timeDisplayAriaLabel",R)))}DDB(this,O.isAtLiveHead);awH(this,this.api.getLoopRange())}; g.f.onLoopRangeChange=function(O){var R=this.hT!==O;this.hT=O;R&&(this.v3(),vnL(this))}; g.f.iYq=function(){this.api.setLoopRange(null)}; g.f.tGJ=function(){this.B=!this.B;this.v3()}; g.f.onVideoDataChange=function(O,R,J){this.updateVideoData((this.api.T().Z("enable_topsoil_wta_for_halftime")||this.api.T().Z("enable_topsoil_wta_for_halftime_live_infra"))&&J===2?this.api.getVideoData(1):R);this.v3();vnL(this)}; g.f.updateVideoData=function(O){this.WO=O.isLivePlayback&&!O.fJ;this.S=hd(O);this.isPremiere=O.isPremiere;g.wI(this.element,"ytp-live",oB(this))}; g.f.onClick=function(O){O.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.f.eN=function(){this.L&&this.L();g.L.prototype.eN.call(this)};g.S(TPT,g.L);g.f=TPT.prototype;g.f.ut=function(){var O=this.api.YW();this.B!==O&&(this.B=O,XYp(this,this.api.getVolume(),this.api.isMuted()))}; g.f.cj=function(O){this.M9(O.width>=350)}; g.f.SL=function(O){if(!O.defaultPrevented){var R=O.keyCode,J=null;R===37?J=this.volume-5:R===39?J=this.volume+5:R===36?J=0:R===35&&(J=100);J!==null&&(J=g.TY(J,0,100),J===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(J)),O.preventDefault())}}; g.f.Lb=function(O){var R=O.deltaX||-O.deltaY;O.deltaMode?this.api.setVolume(this.volume+(R<0?-10:10)):this.api.setVolume(this.volume+g.TY(R/10,-10,10));O.preventDefault()}; g.f.MZg=function(){VZ(this,this.L,!0,this.S,this.api.ZY());this.W=this.volume;this.api.isMuted()&&this.api.unMute()}; g.f.gE=function(O){var R=this.B?78:52,J=this.B?18:12;O-=g.YF(this.V).x;this.api.setVolume(g.TY((O-J/2)/(R-J),0,1)*100)}; g.f.W$h=function(){VZ(this,this.L,!1,this.S,this.api.ZY());this.volume===0&&(this.api.mute(),this.api.setVolume(this.W))}; g.f.onVolumeChange=function(O){XYp(this,O.volume,O.muted)}; g.f.OG=function(){VZ(this,this.L,this.isDragging,this.S,this.api.ZY())}; g.f.eN=function(){g.L.prototype.eN.call(this);g.KM(this.J,"ytp-volume-slider-active")};g.S(fC,lU);fC.prototype.onVolumeChange=function(O){if(this.W)this.W=!1;else{var R=O.volume;R===0||O.muted?uU(this,0):uU(this,R)}}; fC.prototype.N=function(){lU.prototype.N.call(this);this.SN(this.L)}; fC.prototype.B=function(O){lU.prototype.B.call(this,O);this.SN(this.L)}; fC.prototype.Hq=function(O,R){this.W=!0;O===0||R?this.X.mute():(this.X.isMuted()&&this.X.unMute(),this.X.setVolume(O))};g.S(M9z,g.L);g.S(S1,g.L); S1.prototype.onVideoDataChange=function(){var O=this.api.T();this.tT();this.visible=!!g.e(this.api.getVideoData()).videoId&&!g.zF(g.e(this.api.getVideoData(1)));this.M9(this.visible);this.api.logVisibility(this.element,this.visible&&this.D);if(this.visible){var R=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",R)}O.B&&(this.L&&(this.uK(this.L),this.L=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.F8(this.element,"no-link")); R=this.api.T();O=g.e(this.api.getVideoData());var J="";R.B||(R=g.Ql(R),R.indexOf("www.")===0&&(R=R.substring(4)),J=g.nQ(O)?"Mirar en YouTube Music":R==="youtube.com"?"Mirar en YouTube":g.fR("Mirar en $WEBSITE",{WEBSITE:R}));this.updateValue("title",J)}; S1.prototype.onClick=function(O){this.api.Z("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var R=this.api.T(),J=this.api.getVideoUrl(!g.XM(O),!1,!0,!0);if(g.$X(R)){var l={};g.$X(R)&&g.wL(this.api,"addEmbedsConversionTrackingParams",[l]);J=g.s9(J,l)}g.FU(J,this.api,O);this.api.Z("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; S1.prototype.tT=function(){var O={Y:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},K:[{Y:"path",LG:!0,G:"ytp-svg-fill",C:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, R=28666,J=g.e(this.api.getVideoData());this.api.isEmbedsShortsMode()?O={Y:"svg",C:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},K:[{Y:"path",C:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.nQ(J)&&(O={Y:"svg",C:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},K:[{Y:"path",C:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{Y:"path",C:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{Y:"path",C:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{Y:"path",C:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Y:"path",C:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{Y:"path",C:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{Y:"path",C:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{Y:"path",C:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{Y:"path",C:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{Y:"path",C:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{Y:"path",C:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{Y:"path",C:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},R=216163);g.nQ(J)?g.F8(this.element,"ytp-youtube-music-button"):g.KM(this.element,"ytp-youtube-music-button");O.C=Object.assign({},O.C,{"aria-hidden":"true"});this.updateValue("logoSvg",O);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,R,!0)}; S1.prototype.JT=function(O){g.L.prototype.JT.call(this,O);this.api.logVisibility(this.element,this.visible&&O)};g.S(kZA,g.p8);g.f=kZA.prototype;g.f.aF=function(){if(this.X.Z("web_player_max_seekable_on_ended")||!g.d(this.X.getPlayerStateObject(),2))this.progressBar.v3(),this.Qh.v3()}; g.f.Z5=function(){this.f2();if(this.xo.S)this.aF();else if(this.progressBar.bS(),this.X.Z("delhi_modern_web_player")){var O;(O=this.j)==null||$Df(O,!1)}}; g.f.Hk=function(){this.aF();this.SN.start()}; g.f.f2=function(){var O;if(O=!this.X.T().S){O=this.progressBar;var R=2*g.hj()*O.j;O=O.B.getLength()*1E3/O.api.getPlaybackRate()/R<300}O=O&&this.X.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;R=!O;this.xo.S||(O=R=!1);R?this.iz||(this.iz=this.U(this.X,"progresssync",this.aF)):this.iz&&(this.uK(this.iz),this.iz=null);O?this.SN.isActive()||this.SN.start():this.SN.stop()}; g.f.tT=function(){var O=this.X.YW(),R=this.X.cq().getPlayerSize(),J=this.X.cq().Nd,l=bHs(this),u=WWh(this),F=Math.max(R.width-l*2,100);if(this.Rz!==R.width||this.fJ!==O||this.X.Z("web_player_rtr_ctrls")&&this.uN!==J)this.Rz=R.width,this.fJ=O,this.uN=J,this.N.element.style.width=u+"px",this.N.element.style.left=l+"px",g.LXh(this.progressBar,l,u,O),this.X.Ty().sY=u;J=this.B;F=Math.min(570*(O?1.5:1),F);O=Math.min(413*(O?1.5:1),Math.round((R.height-Aox(this))*.82));J.maxWidth=F;J.maxHeight=O;J.VU();this.f2(); this.X.T().Z("html5_player_dynamic_bottom_gradient")&&pyx(this.sQ,R.height)}; g.f.onVideoDataChange=function(){var O=g.e(this.X.getVideoData());this.AR.style.background=O.Ud?O.oT:"";this.OQ&&QpT(this.OQ,O.showSeekingControls);this.Hq&&QpT(this.Hq,O.showSeekingControls)}; g.f.u5=function(){return this.N.element};g.S(eAB,S5);g.f=eAB.prototype;g.f.mN=function(O){O.target!==this.dismissButton.element&&(this.onClickCommand&&this.X.tR("innertubeCommand",this.onClickCommand),this.Vo())}; g.f.Vo=function(){this.enabled=!1;this.W.hide()}; g.f.onVideoDataChange=function(O,R){O==="dataloaded"&&P7_(this);O=[];var J,l,u,F;if(R=(F=g.x((J=R.getWatchNextResponse())==null?void 0:(l=J.playerOverlays)==null?void 0:(u=l.playerOverlayRenderer)==null?void 0:u.suggestedActionsRenderer,vC4))==null?void 0:F.suggestedActions)for(J=g.N(R),l=J.next();!l.done;l=J.next())(l=g.x(l.value,XE_))&&g.x(l.trigger,aR4)&&O.push(l);if(O.length!==0){J=[];O=g.N(O);for(l=O.next();!l.done;l=O.next())if(l=l.value,u=g.x(l.trigger,aR4))F=(F=l.title)?g.V8(F):"View Chapters", R=u.timeRangeStartMillis,u=u.timeRangeEndMillis,R!=null&&u!=null&&l.tapCommand&&(J.push(new g.uN(R,u,{priority:9,namespace:"suggested_action_button_visible",id:F})),this.suggestedActions[F]=l.tapCommand);this.X.zy(J)}}; g.f.NJ=function(){return this.enabled}; g.f.RF=function(){this.enabled?this.Iu.start():Vx(this);this.Me()}; g.f.eN=function(){P7_(this);S5.prototype.eN.call(this)};var aj={},DN=(aj.CHANNEL_NAME="ytp-title-channel-name",aj.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",aj.LINK="ytp-title-link",aj.SESSIONLINK="yt-uix-sessionlink",aj.SUBTEXT="ytp-title-subtext",aj.TEXT="ytp-title-text",aj.TITLE="ytp-title",aj);g.S(aB,g.L);aB.prototype.onClick=function(O){this.api.logClick(this.element);var R=this.api.T(),J=this.api.getVideoUrl(!g.XM(O),!1,!0);g.$X(R)&&(R={},g.wL(this.api,"addEmbedsConversionTrackingParams",[R]),J=g.s9(J,R));g.FU(J,this.api,O)}; aB.prototype.au=function(){var O=g.e(this.api.getVideoData()),R=this.api.T();this.updateValue("title",O.title);var J={Y:"a",G:DN.CHANNEL_NAME,C:{href:"{{channelLink}}",target:"_blank"},FQ:"{{channelName}}"};this.api.T().B&&(J={Y:"span",G:DN.CHANNEL_NAME,FQ:"{{channelName}}",C:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",J);pYB(this);this.api.getPresentingPlayerType()===2&&(J=g.e(this.api.getVideoData()),J.videoId&&J.isListed&&J.author&&J.Rz&&J.profilePicture?(this.updateValue("channelLink", J.Rz),this.updateValue("channelName",J.author),this.updateValue("channelTitleFocusable","0")):pYB(this));J=R.externalFullscreen||!this.api.isFullscreen()&&R.Ax;g.wI(this.link,DN.FULLERSCREEN_LINK,J);R.Hq||!O.videoId||J||g.zF(O)||R.B?this.L&&(this.updateValue("url",null),this.uK(this.L),this.L=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.L||(this.L=this.U(this.link,"click",this.onClick)));R.B&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.$X(R)?O.expandedTitle: O.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.S(g.Xg,g.L);g.f=g.Xg.prototype;g.f.setEnabled=function(O){if(this.type!=null)if(O)switch(this.type){case 3:case 2:HHz(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.j=O}; g.f.qk=function(O,R,J,l,u,F,G,y){if(!this.OQ||this.env.J){this.type===3&&this.bS();this.type!==1&&(g.lI(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.j&&this.fade.show(),this.S&&this.S.dispose(),(this.S=this.api.wK())&&this.S.subscribe("l",this.o6,this));if(y){var w=g.zX(this.bg).height||141;this.iz.style.bottom=w+2+"px"}else this.iz.style.display="none";this.env.Z("delhi_modern_web_player")?this.update({pillTimeStamp:J,pillTitle:F!=null?F:"",eduText:y!=null?y:""}):(this.update({text:J, title:F!=null?F:"",eduText:y!=null?y:""}),g.wI(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!F));this.api.isInline()&&g.F8(this.bottomText,"ytp-modern-tooltip-text");g.wI(this.element,"ytp-text-detail",!!l);J=-1;this.S&&(J=AX(this.S,243*this.scale),this.env.Z("web_l3_storyboard")&&this.S.levels.length===4&&(J=this.S.levels.length-1),J=V7H(this.S,J,R));UDW(this,J);if(G)switch(R=g.zX(this.element).width,G){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right= R+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=R/2+"px",this.title.style.textAlign="center"}xDB(this,!!l,O,u)}}; g.f.CK=function(){this.type===1&&this.bS()}; g.f.O5=function(O,R){if(this.type)if(this.type===3)this.bS();else return;BPH(this,O,3,R)}; g.f.Rc=function(){this.L&&!this.J&&this.L.hasAttribute("title")&&(this.B=this.L.getAttribute("title")||"",this.L.removeAttribute("title"),this.j&&HHz(this))}; g.f.o6=function(O,R){O<=this.N&&this.N<=R&&(O=this.N,this.N=NaN,UDW(this,O))}; g.f.Gdq=function(){orh(this.S,this.N,243*this.scale)}; g.f.bS=function(){switch(this.type){case 2:var O=this.L;O.removeEventListener("mouseout",this.V);O.addEventListener("mouseover",this.N1);O.removeEventListener("blur",this.V);O.addEventListener("focus",this.N1);jd2(this);break;case 3:jd2(this);break;case 1:this.S&&(this.S.unsubscribe("l",this.o6,this),this.S=null),this.api.removeEventListener("videoready",this.W),this.SN.stop()}this.type=null;this.j&&this.fade.hide()}; g.f.BI=function(){if(this.L)for(var O=0;O=0;R--)if(this.mO[R]===O){this.mO.splice(R,1);break}qK(this.xo,64,this.mO.length>0)}; g.f.xt=function(){this.api.HQ()&&this.api.AD();return!!this.GB||zAW(this)||g.Hr.prototype.xt.call(this)}; g.f.pR=Rs(3);g.f.Cd=Rs(7);g.f.tP=Rs(10); g.f.pS=function(){var O=!this.xt(),R=O&&this.api.HQ()&&!g.d(this.api.getPlayerStateObject(),2)&&!g.zF(g.e(this.api.getVideoData()))&&!this.api.T().B&&!this.api.isEmbedsShortsMode(),J=this.wX&&g.MB(this.api)&&g.d(this.api.getPlayerStateObject(),128);O||J?(this.dw.show(),this.JS.show()):(this.dw.hide(),this.JS.hide(),this.api.BI(this.xq.element));R?this.uC.EZ():this.uC.Xh();this.U_&&sds(this.U_,this.c$||!O);this.api.Z("web_player_hide_overflow_button_if_empty_menu")&&nnf(this);g.Hr.prototype.pS.call(this)}; g.f.XT=function(O,R,J,l,u){O.style.left="";O.style.top="";O.style.bottom="";var F=g.zX(O),G=l||this.U_&&g.lu(this.U_.u5(),R),y=l=null;J!=null&&G||(l=g.zX(R),y=g.dN(R,this.api.getRootNode()),J==null&&(J=y.x+l.width/2));J-=F.width/2;G?(R=this.U_,l=bHs(R),y=WWh(R),G=this.api.cq().getPlayerSize().height,J=g.TY(J,l,l+y-F.width),F=G-Aox(R)-F.height):g.lu(this.xq.element,R)?(R=this.api.cq().getPlayerSize().width,J=g.TY(J,12,R-F.width-12),F=this.YW()?this.UW:this.G6,this.api.T().playerStyle==="gvn"&&(F+= 20),this.wX&&(F-=this.YW()?26:18)):(R=this.api.cq().getPlayerSize(),J=g.TY(J,12,R.width-F.width-12),F=y.y>(R.height-l.height)/2?y.y-F.height-12:y.y+l.height+12);O.style.top=F+(u||0)+"px";O.style.left=J+"px"}; g.f.Z5=function(O){O&&(this.api.BI(this.xq.element),this.U_&&this.api.BI(this.U_.u5()));this.kQ&&(g.wI(this.contextMenu.element,"ytp-autohide",O),g.wI(this.contextMenu.element,"ytp-autohide-active",!0));g.Hr.prototype.Z5.call(this,O)}; g.f.nT=function(){g.Hr.prototype.nT.call(this);this.kQ&&(g.wI(this.contextMenu.element,"ytp-autohide-active",!1),this.kQ&&(this.contextMenu.hide(),this.Yq&&this.Yq.hide()))}; g.f.xV=function(O,R){var J=this.api.cq().getPlayerSize();J=new g.bv(0,0,J.width,J.height);if(O||this.xo.S&&!this.xt()){if(this.api.T().eU||R)O=this.YW()?this.UW:this.G6,J.top+=O,J.height-=O;this.U_&&(J.height-=Aox(this.U_))}return J}; g.f.ut=function(O){var R=this.api.getRootNode();O?R.parentElement?(R.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.T().externalFullscreen||(R.parentElement.insertBefore(this.wC.element,R),R.parentElement.insertBefore(this.Fv.element,R.nextSibling))):g.WM(Error("Player not in DOM.")):(R.setAttribute("aria-label","Reproductor de video de YouTube"),this.wC.detach(),this.Fv.detach());this.tT();this.qb()}; g.f.YW=function(){var O=this.api.T();return this.api.isFullscreen()&&!O.J||!1}; g.f.showControls=function(O){this.c9=!O;this.pS()}; g.f.tT=function(){var O=this.YW();this.tooltip.scale=O?1.5:1;this.contextMenu&&g.wI(this.contextMenu.element,"ytp-big-mode",O);this.pS();this.api.Z("web_player_hide_overflow_button_if_empty_menu")||nnf(this);this.qb();var R=this.api.isEmbedsShortsMode();R&&O?(O=(this.api.cq().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.pS(this.xq.element,"padding-left",O+"px"),g.pS(this.xq.element,"padding-right",O+"px")):R&&(g.pS(this.xq.element,"padding-left",""),g.pS(this.xq.element,"padding-right", ""));g.Hr.prototype.tT.call(this)}; g.f.ej=function(){if(zAW(this)&&!g.MB(this.api))return!1;var O=g.e(this.api.getVideoData());return!g.$X(this.api.T())||this.api.getPresentingPlayerType()===2||!this.ZR||((O=this.ZR||O.ZR)?(O=O.embedPreview)?(O=O.thumbnailPreviewRenderer,O=O.videoDetails&&g.x(O.videoDetails,JMW)||null):O=null:O=null,O&&O.collapsedRenderer&&O.expandedRenderer)?g.Hr.prototype.ej.call(this):!1}; g.f.qb=function(){g.Hr.prototype.qb.call(this);this.api.logVisibility(this.title.element,!!this.WM);this.t$&&this.t$.JT(!!this.WM);this.channelAvatar.JT(!!this.WM);this.overflowButton&&this.overflowButton.JT(this.LW()&&!!this.WM);this.shareButton&&this.shareButton.JT(!this.LW()&&!!this.WM);this.dh&&this.dh.JT(!this.LW()&&!!this.WM);this.searchButton&&this.searchButton.JT(!this.LW()&&!!this.WM);this.copyLinkButton&&this.copyLinkButton.JT(!this.LW()&&!!this.WM);if(!this.WM){this.api.BI(this.xq.element); for(var O=0;O5&&R.nJ("glrs",{cmt:J});R.seekTo(0,{seekSource:58});R.nJ("glrre",{cmt:J})}}; q1.prototype.eN=function(){this.L=null;g.p.prototype.eN.call(this)};g.S(g.kA,gc);g.f=g.kA.prototype;g.f.isView=function(){return!0}; g.f.al=function(){var O=this.mediaElement.getCurrentTime();if(O1;Ig(O.Ap(),l-.01)&&!u&&(WK(this,4),J.isActive=!1,J.Cm=J.Cm||J.isActive,(this.D===1?this.L:this.S).nJ("sbh",{}),R.isActive=!0,R.Cm=R.Cm||R.isActive,this.D!==0&&(this.L.getVideoData().j7=!0));O=this.N.S;if(this.N.L.isActive&&O.isActive&&(WK(this,5),this.D!==0)){O=this.S.L8();J=this.L.L8(); this.L.nJ("sbs",{citag:J==null?void 0:J.itag,nitag:O==null?void 0:O.itag});this.S.nJ("gitags",{pitag:J==null?void 0:J.itag,citag:O==null?void 0:O.itag});var F;(F=this.S)==null||F.ZD()}}}; g.f.Lg=function(){this.O6()&&this.Hf("player-reload-after-handoff")}; g.f.Hf=function(O,R){R=R===void 0?{}:R;if(!this.jN()&&this.status.status!==6){var J=this.status.status>=4&&O!=="player-reload-after-handoff";this.status={status:Infinity,error:O};if(this.L&&this.S){var l=this.S.getVideoData().clientPlaybackNonce;this.L.sZ(new MC("dai.transitionfailure",Object.assign(R,{cpn:l,transitionTimeMs:this.Ro,msg:O})));this.L.FN(J)}this.Ox.reject(O);this.dispose()}}; g.f.O6=function(){return this.status.status>=4&&this.status.status<6}; g.f.eN=function(){wtz(this);this.L.unsubscribe("newelementrequired",this.Lg,this);if(this.B){var O=this.B.S;this.B.L.M7.unsubscribe("updateend",this.Xm,this);O.M7.unsubscribe("updateend",this.Xm,this)}g.p.prototype.eN.call(this)}; g.f.Wj=function(O){g.Z_(O,128)&&this.Hf("player-error-event")};g.S(Az,g.p);Az.prototype.clearQueue=function(O,R){O=O===void 0?!1:O;R=R===void 0?!1:R;this.N&&this.N.reject("Queue cleared");this.app.T().Z("html5_gapless_fallback_on_qoe_restart_v2")||R&&this.S&&this.S.FN(!1);e1(this,O)}; Az.prototype.uS=function(){return!this.L}; Az.prototype.O6=function(){var O;return((O=this.B)==null?void 0:O.O6())||!1}; Az.prototype.eN=function(){e1(this);g.p.prototype.eN.call(this)};g.S(VGp,g.y8);g.f=VGp.prototype;g.f.getVisibilityState=function(O,R,J,l,u,F,G,y){return O?4:KDf()?3:R?2:J?1:l?5:u?7:F?8:G?9:y?10:0}; g.f.K$=function(O){this.fullscreen!==O&&(this.fullscreen=O,this.RF())}; g.f.setMinimized=function(O){this.S!==O&&(this.S=O,this.RF())}; g.f.setInline=function(O){this.inline!==O&&(this.inline=O,this.RF())}; g.f.b2=function(O){this.pictureInPicture!==O&&(this.pictureInPicture=O,this.RF())}; g.f.setSqueezeback=function(O){this.B!==O&&(this.B=O,this.RF())}; g.f.vV=function(O){this.N!==O&&(this.N=O,this.RF())}; g.f.oF=function(){return this.L}; g.f.Ni=function(){return this.fullscreen!==0}; g.f.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.f.qR=function(){return this.fullscreen}; g.f.isMinimized=function(){return this.S}; g.f.isInline=function(){return this.inline}; g.f.isBackground=function(){return KDf()}; g.f.ZQ=function(){return this.pictureInPicture}; g.f.Pl=function(){return!1}; g.f.S6=function(){return this.B}; g.f.jW=function(){return this.N}; g.f.RF=function(){this.publish("visibilitychange");var O=this.getVisibilityState(this.oF(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.ZQ(),this.Pl(),this.S6(),this.jW());O!==this.j&&this.publish("visibilitystatechange");this.j=O}; g.f.eN=function(){IaW(this.D);g.y8.prototype.eN.call(this)};g.S(g.PK,g.p);g.f=g.PK.prototype;g.f.eN=function(){this.videoData=this.playerState=null;g.p.prototype.eN.call(this)}; g.f.addCueRange=function(){}; g.f.l$=function(){}; g.f.vz=function(){}; g.f.kD=function(){return!1}; g.f.m8=function(){return!1}; g.f.Q5=function(){return!1}; g.f.nV=function(){}; g.f.T4=function(){}; g.f.qH=function(){}; g.f.Mb=function(){return[]}; g.f.e9=function(){}; g.f.getAudioTrack=function(){return this.getVideoData().gK}; g.f.wr=function(){return null}; g.f.getAvailableAudioTracks=function(){return[]}; g.f.Jc=function(){return[]}; g.f.K_=function(){return[]}; g.f.Od=function(){return""}; g.f.Hc=function(){return[]}; g.f.u_=function(){}; g.f.b0=function(){return 0}; g.f.Lo=function(){return""}; g.f.getCurrentTime=function(){return 0}; g.f.Bl=function(){}; g.f.L8=function(){}; g.f.sf=function(){return{}}; g.f.getDuration=function(){return 0}; g.f.xM=function(){return 0}; g.f.yI=function(){return 0}; g.f.cK=function(){return!1}; g.f.YV=function(){return 0}; g.f.SV=function(){return 0}; g.f.m7=Rs(15);g.f.qx=function(){return 0}; g.f.zZ=function(){return!1}; g.f.lZ=function(){return 0}; g.f.FK=function(){return null}; g.f.QV=function(){return null}; g.f.q7=function(){return 0}; g.f.xA=function(){return 0}; g.f.FU=function(){return g.A(function(O){g.ST(O)})}; g.f.Hu=Rs(21);g.f.getPlaybackQuality=function(){return"auto"}; g.f.getPlaybackRate=function(){return 1}; g.f.getPlayerState=function(){this.playerState||(this.playerState=new g.GP);return this.playerState}; g.f.getPlayerType=function(){return 0}; g.f.getPlaylistSequenceForTime=function(){return null}; g.f.iC=function(){return function(){}}; g.f.Va=function(){return""}; g.f.getPreferredQuality=function(){return"unknown"}; g.f.cT=function(){}; g.f.getProximaLatencyPreference=function(){return 0}; g.f.OJ=function(){return UE}; g.f.wK=function(){return null}; g.f.getStoryboardFormat=function(){return null}; g.f.getStreamTimeOffset=function(){return 0}; g.f.Y7=function(){return 0}; g.f.Vd=function(){return 0}; g.f.IN=function(){return{WL:[],EX:[],currentTime:0,Kk:"",droppedVideoFrames:0,isGapless:!1,uS:!0,HR:0,lE:0,VG:0,TL:0,K7:0,PC:[],dM:[],mL:null,playerState:this.getPlayerState(),o3:null,G3:"",totalVideoFrames:0}}; g.f.getUserAudio51Preference=function(){return 0}; g.f.getUserPlaybackQualityPreference=function(){return""}; g.f.getVideoData=function(){this.videoData||(this.videoData=new g.jN(this.Ru),g.H(this,this.videoData));return this.videoData}; g.f.Ib=function(){return null}; g.f.LH=function(){return null}; g.f.Ed=function(){}; g.f.getVideoLoadedFraction=function(){return 0}; g.f.nH=function(){}; g.f.handleError=function(){}; g.f.FN=function(){}; g.f.j$=function(){}; g.f.tN=function(){return!1}; g.f.b7=Rs(46);g.f.QE=function(){return!1}; g.f.hasSupportedAudio51Tracks=function(){return!1}; g.f.oo=function(){return!1}; g.f.oF=function(){return!1}; g.f.isAtLiveHead=function(){return!1}; g.f.v8=function(){return!0}; g.f.isGapless=function(){return!1}; g.f.isHdr=function(){return!1}; g.f.Bt=function(){return!1}; g.f.ow=function(){return!1}; g.f.f9=function(){return!1}; g.f.isProximaLatencyEligible=function(){return!1}; g.f.uS=function(){return!0}; g.f.nX=function(){return!1}; g.f.G5=function(){return!1}; g.f.nf=function(){}; g.f.Ha=function(){}; g.f.c8=function(){}; g.f.d9=function(){}; g.f.ZD=function(){}; g.f.zP=function(){}; g.f.GX=function(){}; g.f.A2=function(){}; g.f.zj=function(){}; g.f.kV=Rs(56);g.f.nE=Rs(27);g.f.Ga=function(){}; g.f.yW=function(){}; g.f.pauseVideo=function(){}; g.f.playVideo=function(){return g.A(function(O){return O.return()})}; g.f.Wu=function(){}; g.f.gI=Rs(33);g.f.Tu=Rs(39);g.f.yF=function(){}; g.f.nJ=function(){}; g.f.k7=function(){}; g.f.Lh=function(){}; g.f.nh=function(){}; g.f.sZ=function(){}; g.f.E3=function(){}; g.f.GU=function(){}; g.f.Si=function(){}; g.f.i9=function(){}; g.f.U3=function(){}; g.f.z_=function(){}; g.f.nR=function(){}; g.f.removeCueRange=function(){}; g.f.H7=function(){}; g.f.XK=function(){return[]}; g.f.Mi=function(){}; g.f.QB=function(){}; g.f.gi=function(){}; g.f.xs=function(){}; g.f.cw=function(){}; g.f.mK=function(){}; g.f.seekTo=function(){}; g.f.sendAbandonmentPing=function(){}; g.f.sendVideoStatsEngageEvent=function(){}; g.f.PX=function(){}; g.f.Om=function(){}; g.f.setLoop=function(){}; g.f.Hb=function(){}; g.f.setMediaElement=function(){}; g.f.iR=function(){}; g.f.setPlaybackRate=function(){}; g.f.Qk=function(){}; g.f.u2=function(){}; g.f.nA=function(){}; g.f.setProximaLatencyPreference=function(){}; g.f.qE=function(){}; g.f.QU=function(){}; g.f.B7=function(){}; g.f.jP=function(){}; g.f.OP=function(){}; g.f.setUserAudio51Preference=function(){}; g.f.g0=function(){}; g.f.wR=function(){return!1}; g.f.QS=function(){}; g.f.Cx=function(){return!1}; g.f.Mr=function(){}; g.f.Df=function(){}; g.f.Zf=function(){}; g.f.stopVideo=function(){}; g.f.subscribe=function(){return NaN}; g.f.MP=function(){}; g.f.togglePictureInPicture=function(){}; g.f.u$=function(){return 0}; g.f.unsubscribe=function(){return!1}; g.f.dA=function(){}; g.f.Sl=function(){return!1}; g.f.g$=function(){}; g.f.Y4=function(){}; g.f.Cw=function(){}; g.f.Nb=function(){};g.S(HK,g.p);g.f=HK.prototype;g.f.get=function(O){pC(this);var R=this.data.find(function(J){return J.key===O}); return R?R.value:null}; g.f.set=function(O,R,J){this.remove(O,!0);pC(this);O={key:O,value:R,expire:Infinity};J&&isFinite(J)&&(J*=1E3,O.expire=(0,g.Q)()+J);for(this.data.push(O);this.data.length>this.B;)(J=this.data.shift())&&xA(this,J,!0);BK(this)}; g.f.remove=function(O,R){R=R===void 0?!1:R;var J=this.data.find(function(l){return l.key===O}); J&&(xA(this,J,R),g.S6(this.data,function(l){return l.key===O}),BK(this))}; g.f.removeAll=function(O){if(O=O===void 0?!1:O)for(var R=g.N(this.data),J=R.next();!J.done;J=R.next())xA(this,J.value,O);this.data=[];BK(this)}; g.f.eN=function(){var O=this;g.p.prototype.eN.call(this);this.data.forEach(function(R){xA(O,R,!0)}); this.data=[]};g.S(g.Uv,g.p);g.f=g.Uv.prototype;g.f.eN=function(){for(var O=g.N(Object.values(this.B)),R=O.next();!R.done;R=O.next())R.value.dispose();fBT(this);this.L.dispose();g.p.prototype.eN.call(this)}; g.f.BW=function(O){return O?O===1?this.V:this.S.getVideoData().enableServerStitchedDai&&O===2?this.S.getVideoData().Fn?this.B[2]||this.S:this.S:g.dy(this.S.getVideoData())&&O===2?this.B[2]||this.S:this.B[O]||null:this.S}; g.f.Ij=function(O){var R=O.cpn;O=O.playerType;if(R)a:{O=g.N(Object.values(this.B));for(var J=O.next();!J.done;J=O.next())if(J=J.value,J.Od()===R){R=J;break a}R=this.D[R]||null}else R=O?this.BW(O):this.S;return R}; g.f.g5=function(){return this.V}; g.f.gw=function(O){this.V=O}; g.f.mX=function(){return this.S}; g.f.P2=function(O){this.S=O;j1(this)}; g.f.Lm=Rs(52);g.f.df=Rs(54);g.S(QZ,g.p);g.f=QZ.prototype;g.f.enqueue=function(O,R){if(O.N!==this)return!1;if(this.segments.length===0||(R===void 0?0:R))this.L=O;this.segments.push(O);return!0}; g.f.u0=function(){return this.r5||0}; g.f.sV=function(){return this.N||0}; g.f.removeAll=function(){for(;this.segments.length;){var O=void 0;(O=this.segments.pop())==null||O.dispose()}this.S.clear();this.B=void 0}; g.f.eN=function(){this.removeAll();g.p.prototype.eN.call(this)}; g.S(MGH,g.p);g.f=MGH.prototype;g.f.u0=function(){return this.r5}; g.f.sV=function(){return this.S}; g.f.getVideoData=function(){return this.videoData}; g.f.Od=function(){return this.videoData.clientPlaybackNonce}; g.f.bb=function(O){D4(O);this.videoData=O}; g.f.eN=function(){qDH(this);g.p.prototype.eN.call(this)};g.S(knh,g.BD);g.f=knh.prototype;g.f.Gq=function(){}; g.f.Od=function(){return this.videoData.clientPlaybackNonce}; g.f.getVideoData=function(){var O=this.x9;var R=g.BD.prototype.getCurrentTime.call(this);if(O.Yd)O=void 0;else{var J=void 0;O.b5&&(J=O.B.get(O.b5));if(!J){J=xoH(O,R*1E3);var l,u=(l=J)==null?void 0:l.cpn;O.b5?u&&O.b5!==u&&O.M1({cpcnm:u+"_"+O.b5,cmt:R.toFixed(3)}):O.M1({cpcna:u,cmt:R.toFixed(3)})}var F;O=(F=J)==null?void 0:F.videoData}return O||g.BD.prototype.getVideoData.call(this)}; g.f.getCurrentTime=function(O){if(O)O=this.x9.Tg/1E3||g.BD.prototype.getCurrentTime.call(this);else{var R=this.x9;O=g.BD.prototype.getCurrentTime.call(this);O=(R=HUs(R,O*1E3))?O-R.start/1E3:O}return O}; g.f.getDuration=function(){var O=this.x9,R=g.BD.prototype.getCurrentTime.call(this);return(O=xoH(O,R*1E3))?O.durationMs/1E3:0};g.hz.prototype.yr=function(O,R){if(R===1)return this.L.get(O);if(R===2)return this.B.get(O);if(R===3)return this.S.get(O)}; g.hz.prototype.JA=Rs(64);g.hz.prototype.CH=function(O,R,J,l){J={Kp:l,xD:J};R?this.B.set(O,J):this.L.set(O,J)}; g.hz.prototype.clearAll=function(){this.L.clear();this.B.clear();this.S.clear()}; g.S(g.z2,g.p);g.f=g.z2.prototype;g.f.Jy=function(O,R,J){return new g.uN(O,R,{id:J,namespace:"serverstitchedcuerange",priority:9})}; g.f.xU=function(O){var R=O.Yz?O.Yz*1E3:O.r5,J=this.S.get(O.cpn);J&&this.playback.removeCueRange(J);this.S.delete(O.cpn);this.B.delete(O.cpn);J=this.D.indexOf(O);J>=0&&this.D.splice(J,1);J=[];for(var l=g.N(this.j),u=l.next();!u.done;u=l.next())u=u.value,u.end<=R?this.playback.removeCueRange(u):J.push(u);this.j=J;zSW(this,0,R+O.durationMs)}; g.f.onCueRangeEnter=function(O){this.Iu.push(O);var R=O.getId();this.M1({oncueEnter:1,cpn:R,start:O.start,end:O.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.b0()||0).toFixed(3)});var J=R==="";this.AR.add(O.S);var l=this.B.get(R);if(J){var u;if(this.playback.getVideoData().Zv()&&((u=this.L)==null?0:u.A9)&&this.N){this.vn=0;this.L=void 0;this.Hq&&(this.events.uK(this.Hq),this.Hq=null);this.N="";this.JR=!0;return}}else if(this.M1({enterAdCueRange:1}),this.playback.getVideoData().Zv()&& (l==null?0:l.LX))return;if(this.JR&&!this.L)this.JR=!1,!J&&l&&(J=this.playback.getCurrentTime(),g8(this,{pZ:O,isAd:!0,Yy:!0,J1:J,adCpn:R},{isAd:!1,Yy:!1,J1:J}),this.b5=l.cpn,this.Ks(l.cpn),Rl(this,l),O=O2(this,"midab",l),this.M1(O),this.vn=1),this.V=!1;else if(this.L){if(this.L.Yy)this.M1({a_pair_of_same_transition_occurs_enter:1,acpn:this.L.adCpn,transitionTime:this.L.J1,cpn:R,currentTime:this.playback.getCurrentTime()}),l=this.playback.getCurrentTime(),O={pZ:O,isAd:!J,Yy:!0,J1:l,adCpn:R},R={pZ:this.L.pZ, isAd:this.L.isAd,Yy:!1,J1:l,adCpn:this.L.adCpn},this.L.pZ&&this.AR.delete(this.L.pZ.S),g8(this,O,R);else{if(this.L.pZ===O){this.M1({same_cue_range_pair_enter:1,acpn:this.L.adCpn,transitionTime:this.L.J1,cpn:R,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:O.start,cueRangeEndTime:O.end});this.L=void 0;return}if(this.L.adCpn===R){R&&this.M1({dchtsc:R});this.L=void 0;return}O={pZ:O,isAd:!J,Yy:!0,J1:this.playback.getCurrentTime(),adCpn:R};g8(this,O,this.L)}this.L=void 0;this.V=!1}else this.L= {pZ:O,isAd:!J,Yy:!0,J1:this.playback.getCurrentTime(),adCpn:R}}; g.f.Ks=function(O){var R=this.app.Xf().D[O]||null;R?(O=this.B.has(O),SDH(this.app.Xf(),R,O)):this.M1({no_sscp_for_cpn:O})}; g.f.onCueRangeExit=function(O){var R=O.getId();this.M1({oncueExit:1,cpn:R,start:O.start,end:O.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.b0()||0).toFixed(3)});var J=R==="",l=this.B.get(R);if(this.playback.getVideoData().Zv()&&!J&&l){if(l.LX)return;l.LX=!0;this.W.clear();if(this.Ru.Z("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.kD()){var u=l.r5;this.playback.nR(u/1E3,(u+l.durationMs)/1E3)}else this.playback.nJ("lifa",{remove:0})}if(this.AR.has(O.S))if(this.AR.delete(O.S), this.Iu=this.Iu.filter(function(F){return F!==O}),this.JR&&(this.V=this.JR=!1,this.M1({cref:1})),this.L){if(this.L.Yy){if(this.L.pZ===O){this.M1({same_cue_range_pair_exit:1, acpn:this.L.adCpn,transitionTime:this.L.J1,cpn:R,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:O.start,cueRangeEndTime:O.end});this.L=void 0;return}if(this.L.adCpn===R){R&&this.M1({dchtsc:R});this.L=void 0;return}R={pZ:O,isAd:!J,Yy:!1,J1:this.playback.getCurrentTime(),adCpn:R};g8(this,this.L,R)}else if(this.M1({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.L.adCpn,transitionTime:this.L.J1,upcomingCpn:R,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.L.adCpn===R)return;this.L=void 0;this.V=!1}else this.L={pZ:O,isAd:!J,Yy:!1,J1:this.playback.getCurrentTime(),adCpn:R};else this.M1({ignore_single_exit:1})}; g.f.ao=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,r5:0,playerType:1,LZ:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.f.Ml=function(){if(this.Yd)return!1;var O=void 0;this.b5&&(O=this.B.get(this.b5));return this.playback.getVideoData().Zv()?!!O&&!O.LX:!!O}; g.f.seekTo=function(O,R,J,l){O=O===void 0?0:O;R=R===void 0?{}:R;J=J===void 0?!1:J;l=l===void 0?null:l;if(this.playback.getVideoData().Zv()&&O<=this.Tg/1E3)this.playback.pauseVideo(),this.Tg=0,this.V=!0,this.playback.FU(),this.playback.seekTo(O),this.playback.playVideo();else if(this.V=!0,J)bUT(this,O,R);else{J=this.app.mX();var u=J===this.Gd?this.SG:null;l8(this,!1);this.d5=O;this.AT=R;l!=null&&this.w5.start(l);J&&(this.SG=u||J.getPlayerState(),J.Zf(R),this.Gd=J)}}; g.f.eN=function(){l8(this,!1);Uo0(this);jSB(this);g.p.prototype.eN.call(this)}; g.f.wN=function(O){this.Py=O;this.M1({swebm:O})}; g.f.qM=function(O,R,J){if(J&&R){var l=this.W.get(O);if(l){l.locations||(l.locations=new Map);var u=Number(R.split(";")[0]);J=new g.qL(J);this.M1({hdlredir:1,itag:R,seg:O,hostport:s7(J)});l.locations.set(u,J)}}}; g.f.pQ=function(O,R,J,l,u,F){var G=l===3,y=L_0(this,O,R,l,J,F);if(!y){F4(this,R,G);var w=g.QS2(this,R)?"undec":"ncp";this.M1({gvprp:w,mt:O,seg:R,tt:l,itag:J,ce:F});return null}G||this.W.set(R,y);F=y.Ne;var I;l=((I=this.yr(R-1,l,u))==null?void 0:I.Kp)||"";l===""&&this.M1({eds:1});I=doz(this,y.ssdaiAdsConfig);u=this.playback.getVideoData();var C;G=((C=u.S)==null?void 0:C.containerType)||0;C=u.i6[G];y=y.F9&&R>=y.F9?y.F9:void 0;C={yJ:F?cnW(this,F):[],Eb:I,Kp:l,v6:y,OF:S0(C.split(";")[0]),bW:C.split(";")[1]|| ""};y={Tb:C};this.sQ&&(O={gvprpro:"v",sq:R,mt:O.toFixed(3),itag:J,acpns:((w=C.yJ)==null?void 0:w.join("_"))||"none",abid:F},this.M1(O));return y}; g.f.e$=function(O){a:{if(!this.Yd){var R=YDB(this,O);if(!(this.playback.getVideoData().Zv()&&(R==null?0:R.LX)))break a}R=void 0}var J=R;if(!J)return this.M1({gvprp:"ncp",mt:O}),null;R=J.Ne;var l=doz(this,J.ssdaiAdsConfig);J=J.F9&&J.XO&&O>=J.XO?J.F9:void 0;var u=this.playback.getVideoData(),F,G=((F=u.S)==null?void 0:F.containerType)||0;F=u.i6[G];F={yJ:R?cnW(this,R):[],Eb:l,v6:J,OF:S0(F.split(";")[0]),bW:F.split(";")[1]||""};var y;O={gvprpro:"v",mt:O.toFixed(3),acpns:((y=F.yJ)==null?void 0:y.join("_"))|| "none",abid:R};this.M1(O);return F}; g.f.i_=function(O,R,J,l,u,F){var G=Number(J.split(";")[0]),y=l===3;O=L_0(this,O,R,l,J,F);this.M1({gdu:1,seg:R,itag:G,pb:""+!!O});if(!O)return F4(this,R,y),null;O.locations||(O.locations=new Map);if(!O.locations.has(G)){var w,I;F=(w=O.videoData.getPlayerResponse())==null?void 0:(I=w.streamingData)==null?void 0:I.adaptiveFormats;if(!F)return this.M1({gdu:"noadpfmts",seg:R,itag:G}),F4(this,R,y),null;w=F.find(function(t){return t.itag===G}); if(!w||!w.url){var C=O.videoData.videoId;O=[];var r=g.N(F);for(l=r.next();!l.done;l=r.next())O.push(l.value.itag);this.M1({gdu:"nofmt",seg:R,vid:C,itag:G,fullitag:J,itags:O.join(",")});F4(this,R,y);return null}O.locations.set(G,new g.qL(w.url,!0))}F=O.locations.get(G);if(!F)return this.M1({gdu:"nourl",seg:R,itag:G}),F4(this,R,y),null;F=new DW(F);this.Py&&(F.get("dvc")?this.M1({dvc:F.get("dvc")||""}):F.set("dvc","webm"));(l=(r=this.yr(R-1,l,u))==null?void 0:r.Kp)&&F.set("daistate",l);O.F9&&R>=O.F9&& F.set("skipsq",""+O.F9);(r=this.playback.getVideoData().clientPlaybackNonce)&&F.set("cpn",r);r=[];O.Ne&&(r=cnW(this,O.Ne),r.length>0&&F.set("acpns",r.join(",")));y||this.W.set(R,O);y=null;y=F.get("aids");l=F.Y8();(l==null?void 0:l.length)>2048&&this.M1({urltoolong:1,sq:R,itag:G,len:l.length});this.sQ&&(l&&(F=O.cpn,u=O.Ne,JEz(this,F,u),u&&!this.m1.has(u)&&(F=OYA(this,F,u),w=R40(this,u),this.M1({iofa:F}),this.M1({noawnzd:w-F}),this.M1({acpns:r.join("."),aids:(C=y)==null?void 0:C.replace(/,/g,".")}), this.m1.add(u))),this.M1({gdu:"v",seg:R,itag:J,ast:O.r5.toFixed(3),alen:O.durationMs.toFixed(3),acpn:O.cpn,avid:O.videoData.videoId}));return l}; g.f.Yh=function(O,R,J){J=J===void 0?!1:J;var l=u8(this,O,R);if(l){var u=void 0,F=l.Ne;if(F){this.M1({skipadonsq:R,sts:J,abid:F,acpn:l.cpn,avid:l.videoData.videoId});J=this.J.get(F);if(!J)return;J=g.N(J);for(F=J.next();!F.done;F=J.next())F=F.value,F.F9=R,F.XO=O,F.r5>l.r5&&(u=F)}this.N=l.cpn;hSf(this);O=this.playback.getCurrentTime();JL(this,l,u,O,O,!1,!0)}}; g.f.UM=function(){for(var O=g.N(this.D),R=O.next();!R.done;R=O.next())R=R.value,R.F9=NaN,R.XO=NaN;hSf(this);this.M1({rsac:"resetSkipAd",sac:this.N});this.N=""}; g.f.yr=function(O,R,J){return this.xS.yr(O,R,J)}; g.f.JA=Rs(63); g.f.CH=function(O,R,J,l,u,F,G,y,w){l.length>0&&this.M1({onssinfo:1,sq:O,start:R.toFixed(3),cpns:l.join(","),ds:u.join(","),isVideo:G?1:0});w&&this.xS.CH(O,G,y,w);if(G){if(l.length&&u.length)for(this.N&&this.N===l[0]&&this.M1({skipfail:1,sq:O,acpn:this.N}),O=R+this.Y7(),G=0;G0&&(this.vn=0,this.b5="",this.api.publish("serverstitchedvideochange"));this.playback.qH(J,l);return!0}; g.f.OC=function(){this.M1({rstdaist:1});this.xS.clearAll()}; g.f.KH=function(O){var R;if(O!==((R=this.OQ)==null?void 0:R.identifier))this.M1({ignorenoad:O});else{this.Rz.add(O);this.M1({noadrcv:O});var J;((J=this.OQ)==null?void 0:J.identifier)===O&&cK(this)}}; g.f.fV=function(){return this.vn}; g.f.oG=function(){return this.b5}; g.f.AZ=function(O){if(this.Yd)return this.M1({dai_disabled:O.event}),!1;if(this.playback.getVideoData().Zv()&&(this.Ru.Z("html5_lifa_no_gab_on_predict_start")&&O.event==="predictStart"||O.event==="continue"||O.event==="stop"))return this.M1({cuepoint_skipped:O.event}),!1;var R=vr(this.api.eG());if(R=R?R.AZ(O):!1)this.SN={zx:O.identifier,Gz:O.startSecs};else if(this.SN&&this.SN.zx===O.identifier&&O.startSecs>this.SN.Gz+1){this.M1({cueStChg:O.identifier,oldSt:this.SN.Gz.toFixed(3),newSt:O.startSecs.toFixed(3), abid:this.SN.Er});if(this.SN.Er){var J=O.startSecs-this.SN.Gz,l=this.J.get(this.SN.Er);if(l){l=g.N(l);for(var u=l.next();!u.done;u=l.next())u=u.value,u.r5>=0&&(u.r5+=J*1E3,this.Ru.Z("html5_ssdai_update_timeline_on_start_time_change")&&(u.LZ+=J*1E3),this.M1({newApEt:u.r5,newApPrt:u.LZ,acpn:u.cpn}))}}this.SN.Gz=O.startSecs}return R}; g.f.QR=function(O){return this.Yd?!1:!!YDB(this,O)}; g.f.QX=function(O){var R=this;if(this.Ru.Z("html5_lifa_ignore_multiple_skips")&&this.Hq)return this.M1({unfinished_skip:this.b5}),!1;this.playback.pauseVideo();var J=this.playback.getCurrentTime(),l=this.Ru.Z("html5_lifa_reset_segment_index_on_skip"),u=l?J+this.playback.Y7():J,F=this.B.get(this.b5),G=this.S.get(this.b5);if(F){this.N=this.b5;this.V=!1;F.LX=!0;J=this.playback.getCurrentTime();this.L={pZ:G,isAd:!0,Yy:!1,J1:J,adCpn:this.b5,A9:F,PsU:O};this.playback.Si(F,this.ao(),J,this.playback.getCurrentTime(), !1,!0,O,(0,g.Q)());l&&this.playback.Ga();if(G==null?0:G.start)this.Tg=J*1E3-G.start;this.W.clear();this.playback.FU();O=this.ao();this.b5=O.cpn;this.Ks(O.cpn);this.api.publish("serverstitchedvideochange");this.playback.seekTo(u,{seekSource:89,bK:"lifa_skip"});this.playback.playVideo();this.Hq||(this.Hq=this.events.U(this.api,"progresssync",function(){R.xU(F)})); return!0}this.M1({skipFail:J},!0);return!1}; g.f.M1=function(O,R){((R===void 0?0:R)||this.sQ||this.playback.getVideoData().Zv())&&this.playback.nJ("sdai",O)}; var Pg2=0;g.S(gv_,g.z2);g.f=gv_.prototype;g.f.onCueRangeEnter=function(O){var R=O.getId();this.playback.nJ("sdai",{oncueEnter:1,cpn:R,start:O.start,end:O.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.b0()||0).toFixed(3)});O=this.B.get(R);this.playback.nJ("sdai",{enterAdCueRange:1});R=this.b5||this.ao().cpn;var J;R=(J=this.B.get(R))!=null?J:this.ao();O&&(J={aP:R,IP:O,D6:this.playback.getCurrentTime()},this.Ke(J))}; g.f.onCueRangeExit=function(O){var R=this.playback.getCurrentTime()*1E3;O=O.getId();for(var J=g.N(this.S.values()),l=J.next();!l.done;l=J.next())if(l=l.value,l.getId()!==O&&R>=l.start&&R<=l.end)return;if(R=this.B.get(O))R={aP:R,IP:this.ao(),D6:this.playback.getCurrentTime()},this.Ke(R)}; g.f.Ke=function(O){this.N||this.V||this.oY(this.b5);var R=O.aP,J=O.IP;if(J.cpn===this.b5)this.playback.nJ("sdai",{igtranssame:1,enter:J.cpn,exit:R.cpn});else{var l=this.V,u=!!this.N;this.N="";var F=O.D6,G=R.playerType===2?R.r5/1E3+R.videoData.Iu:this.ao().videoData.Iu;if(R.playerType===2&&J.playerType===2)u?this.playback.nJ("sdai",{igtransskip:1,enter:J.cpn,exit:R.cpn,seek:l,skip:this.N}):JL(this,R,J,G,F,l,u);else{this.b5=J.cpn;this.Ks(J.cpn);O=O.Wzd;if(R.playerType===1&&J.playerType===2){this.Tg= 0;Rl(this,J);var y=O2(this,"c2a",J);this.playback.nJ("sdai",y);this.vn++}else if(R.playerType===2&&J.playerType===1){y=R.videoData.Iu;this.api.publish("serverstitchedvideochange");var w=O2(this,"a2c");this.playback.nJ("sdai",w);this.vn=0;this.Tg=y*1E3;this.E8=G;uqx(this,R.Ne)}this.playback.Si(R,J,G,F,l,u,O)}this.N="";this.V=!1}}; g.f.seekTo=function(O,R,J,l){O=O===void 0?0:O;R=R===void 0?{}:R;J=J===void 0?!1:J;l=l===void 0?null:l;this.oY(this.b5);this.playback.getVideoData().Zv()&&O<=this.E8?(this.playback.pauseVideo(),this.E8=this.Tg=0,iYB(this,O)):g.z2.prototype.seekTo.call(this,O,R,J,l)}; g.f.Yh=function(O,R,J){J=J===void 0?!1:J;var l=u8(this,O,R);if(l){var u=void 0,F=l.Ne;if(F){this.playback.nJ("sdai",{skipadonsq:R,sts:J,abid:F,acpn:l.cpn,avid:l.videoData.videoId});J=this.J.get(F);if(!J)return;J=g.N(J);for(F=J.next();!F.done;F=J.next())F=F.value,F.F9=R,F.XO=O,F.r5>l.r5&&(u=F)}this.oY(this.b5);this.N=l.cpn;hSf(this);O=this.playback.getCurrentTime();JL(this,l,u,O,O,!1,!0);this.N="";this.V=!1}}; g.f.CH=function(O,R,J,l,u,F,G,y,w){l.length>0&&this.playback.nJ("sdai",{onssinfo:1,sq:O,start:R.toFixed(3),cpns:l.join(","),ds:u.join(","),isVideo:G?1:0});w&&this.xS.CH(O,G,y,w);if(G){if(l.length&&u.length)for(this.N&&this.N===l[0]&&this.playback.nJ("sdai",{skipfail:1,sq:O,acpn:this.N}),O=R+this.Y7(),J=0;J=0&&this.D.splice(O,1)}; g.f.oY=function(O){var R=O||this.b5,J=this.B.get(R);if(J){O=J.videoData;var l,u;R=J.Yz||((u=(l=this.S.get(R))==null?void 0:l.start)!=null?u:0)/1E3;l=this.playback.getCurrentTime()-R;O.Iu=l>0?l:0}else this.ao().videoData.Iu=this.playback.getCurrentTime()};g.S(yEW,g.p);g.f=yEW.prototype; g.f.H9=function(O,R){R=R===void 0?"":R;if(this.timeline.B===R)return!0;var J=this.timeline.L,l=J==null?void 0:J.getVideoData();if(!J||!l)return this.api.nJ("ssap",{htsm:J?0:1}),!1;if(this.api.Z("html5_ssap_clear_timeline_before_update")){var u=this.timeline,F;(F=u.L)==null||qDH(F);u.S.clear()}u=J.Od();var G=!1;F=[];var y=new Map;J=[];var w=[],I=0,C=0,r=0,t=[];O=g.N(O);for(var Z=O.next();!Z.done;Z=O.next())a:{var V=void 0,m=void 0,E=Z.value,a=E.clipId;if(a){if(E.gs){r=E.gs.f7||0;Z=E.gs.R6||1;var v= Number(((E.gs.WN||0)/(E.gs.MB||1)*1E3).toFixed(0));r=Z=v+Number((r/Z*1E3).toFixed(0))}else Z=v=r,this.BJ.has(a)||this.Gb.add(a);var b=(m=y.get(a))!=null?m:0,W=this.timeline.B;m=!1;if(W&&this.api.Z("html5_ssap_clear_timeline_before_update")){if(W=this.ue.get(a))W.start=v,W.end=Z,m=!0}else{if(W){var B=a;W=v;var z=Z,Y=b,gh=YA(this.timeline,B);if(gh!=null&&gh.length){Y=y){this.kt.set(O,J);IdW(this,O,R);this.EP.set(O,(0,g.Q)());if(J=this.ue.get(R))for(J=J.getId().split(","),J=g.N(J),G=J.next();!G.done;G=J.next())G=G.value,G!==R&&this.Gb.has(G)&&(this.Gb.delete(G),this.BJ.add(G));this.oY();this.playback.seekTo(F.u0()/1E3);this.eq?(this.api.nJ("ssap",{gpfreload:this.b5}),Krz(this)||(this.eq=!1),this.playback.FU(!1,!1)):l&&this.playback.FU(!1,!1);u&&this.api.playVideo(1); return[O]}}}return[]}; g.f.OD=function(){var O=this.timeline.L;if(!O)return 0;var R=O.sV();O=g.N(O.L.values());for(var J=O.next();!J.done;J=O.next()){J=g.N(J.value);for(var l=J.next();!l.done;l=J.next())l=l.value,l.sV()>R&&(R=l.sV())}return R/1E3}; g.f.q7=function(){var O=this.playback.getCurrentTime()*1E3;var R=ovx(this,O);if(!R){var J=YA(this.timeline,this.b5);if(J){J=g.N(J);for(var l=J.next();!l.done;l=J.next())l=l.value,l.u0()>O&&(R=l)}}return R&&R.type===1?R.u0()/1E3:0}; g.f.getVideoData=function(O){if(O===2&&!this.Ml()){if(this.Ws&&this.PD.has(this.Ws))return this.PD.get(this.Ws);this.api.nJ("ssap",{lpanf:""+this.playback.getVideoData().clientPlaybackNonce});return null}return fdz(this)}; g.f.Ml=function(){var O=YA(this.timeline,this.b5);return(O==null?0:O.length)?O[0].type===2:!1}; g.f.MY=function(){var O=YA(this.timeline,this.b5);return(O==null?0:O.length)?O[0].B:!1}; g.f.seekTo=function(O,R){R=R===void 0?{}:R;var J=ZYs(this,this.playback.getCurrentTime());this.playback.seekTo(O+J/1E3,R)}; g.f.Jy=function(O,R,J){return new g.uN(O,R,{id:J,namespace:"ssap",priority:9})}; g.f.onCueRangeEnter=function(O){if(!this.NO.has(O.getId())){this.api.nJ("ssap",{oce:1,cpn:O.getId(),st:O.start,et:O.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.b0()||0).toFixed(3)});for(var R=O.getId().split(","),J=0;JJ+1)for(l=J+1;l0?R:0}; g.f.eN=function(){this.api.T().DA()&&this.api.nJ("ssap",{di:""+this.b5,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.PD.clear();this.Gb.clear();this.NO.clear();this.kt.clear();this.EP.clear();this.BJ.clear();this.ey=[];Grf(this);this.tC="";g.MN(this.events);g.p.prototype.eN.call(this)};g.S(adf,g.p);g.f=adf.prototype;g.f.onCueRangeEnter=function(O){if(this.L===this.app.mX()){var R=this.D.get(O);R?qcT(this,R.target,R.Ro,O):this.sZ("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:O.toString()})}else if(R=this.S.find(function(u){return u.GK.pZ===O})){var J=R.GK,l=J.target; J=J.Ro;l?qcT(this,l,J,O):M__(this,R.LZ,J,O)}}; g.f.onQueuedVideoLoaded=function(){var O=this.J;CJ(this);if(O){if(!Il(this,O)){var R=this.app.mX();this.sZ("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:R==null?void 0:R.getVideoData().clientPlaybackNonce,ccpn:""+O.playerVars.cpn})}this.app.mX().addCueRange(O.GK.pZ)}}; g.f.seekTo=function(O,R,J,l){O=O===void 0?0:O;R=R===void 0?{}:R;l=l===void 0?null:l;if(J===void 0?0:J)DHx(this,O,R);else{J=this.app.mX()||null;var u=J===this.N?this.j:null;r8(this,!1);this.SN=O;this.W=R;l!=null&&this.V.start(l);J&&(this.j=u||J.getPlayerState(),J.Zf(),this.N=J)}}; g.f.NU=function(O){g.Z_(O,128)&&AE0(this)}; g.f.isManifestless=function(){return IN(this.L.getVideoData())}; g.f.eN=function(){r8(this,!1);Ppf(this);g.p.prototype.eN.call(this)}; g.f.sZ=function(O,R){this.L.sZ(new MC(O,R))}; var vvs=0;var pNx="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.S(tL,g.p);tL.prototype.KU=function(O){if(O)return this.S.get(O)}; tL.prototype.eN=function(){this.L.removeAll();this.S.removeAll();g.p.prototype.eN.call(this)};g.Z66=th(function(){var O=window.AudioContext||window.webkitAudioContext;try{return new O}catch(R){return R.name}});g.S(jmp,g.L);g.f=jmp.prototype;g.f.Np=function(){g.Gw(this.element,g.As.apply(0,arguments))}; g.f.QB=function(){this.oz&&(this.oz.removeEventListener("focus",this.B$),g.iu(this.oz),this.oz=null)}; g.f.h_=function(){this.jN();var O=this.app.T();O.bZ||this.Np("tag-pool-enabled");O.j&&this.Np(g.O7.HOUSE_BRAND);O.playerStyle==="gvn"&&(this.Np("ytp-gvn"),this.element.style.backgroundColor="transparent");O.d5&&(this.Ca=g.uh("yt-dom-content-change",this.resize,this));this.U(window,"orientationchange",this.resize,this);this.U(window,"resize",this.resize,this)}; g.f.SC=function(O){g.bo(this.app.T());this.r8=!O;ol(this)}; g.f.resize=function(){if(this.oz){var O=this.OV();if(!O.isEmpty()){var R=!g.bL(O,this.PR.getSize()),J=h4A(this);R&&(this.PR.width=O.width,this.PR.height=O.height);O=this.app.T();(J||R||this.kU||O.d5)&&this.app.Zg.publish("resize",this.getPlayerSize())}}}; g.f.DO=function(O,R){this.updateVideoData(R)}; g.f.updateVideoData=function(O){if(this.oz){var R=this.app.T();YS&&(this.oz.setAttribute("x-webkit-airplay","allow"),O.title?this.oz.setAttribute("title",O.title):this.oz.removeAttribute("title"));this.oz.setAttribute("controlslist","nodownload");R.Ju&&O.videoId&&(this.oz.poster=O.h1("default.jpg"))}R=g.mE(O,"yt:bgcolor");this.Pg.style.backgroundColor=R?R:"";this.Aq=Gv(g.mE(O,"yt:stretch"));this.TI=Gv(g.mE(O,"yt:crop"),!0);g.wI(this.element,"ytp-dni",O.Ud);this.resize()}; g.f.setGlobalCrop=function(O){this.rP=Gv(O,!0);this.resize()}; g.f.setCenterCrop=function(O){this.FI=O;this.resize()}; g.f.K$=function(){}; g.f.getPlayerSize=function(){var O=this.app.T(),R=this.app.Zg.isFullscreen(),J=O.externalFullscreen&&g.$X(O);if(R&&j8()&&!J)return new g.so(window.outerWidth,window.outerHeight);J=!isNaN(this.HO.width)&&!isNaN(this.HO.height);var l=this.app.T().Z("kevlar_player_enable_squeezeback_fullscreen_sizing");if(R&&!J&&l)return new g.so(this.element.clientWidth,this.element.clientHeight);if(R||O.XW){if(window.matchMedia){O="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.jw&&this.jw.media=== O||(this.jw=window.matchMedia(O));var u=this.jw&&this.jw.matches}if(u)return new g.so(window.innerWidth,window.innerHeight)}else if(J)return this.HO.clone();return new g.so(this.element.clientWidth,this.element.clientHeight)}; g.f.OV=function(){var O=this.app.T().Z("enable_desktop_player_underlay"),R=this.getPlayerSize(),J=g.tB(this.app.T().experiments,"player_underlay_min_player_width");return O&&this.w6&&R.width>J?(O=g.tB(this.app.T().experiments,"player_underlay_video_width_fraction"),new g.so(Math.min(R.height*this.getVideoAspectRatio(),R.width*O),Math.min(R.height,R.width*O/this.getVideoAspectRatio()))):R}; g.f.getVideoAspectRatio=function(){return isNaN(this.Aq)?Lrf(this):this.Aq}; g.f.getVideoContentRect=function(O){var R=this.OV();O=Ycf(this,R,this.getVideoAspectRatio(),O);return new g.bv((R.width-O.width)/2,(R.height-O.height)/2,O.width,O.height)}; g.f.HA=function(O){this.w6=O;this.resize()}; g.f.Rx=function(){return this.Qj}; g.f.onMutedAutoplayChange=function(){ol(this)}; g.f.setInternalSize=function(O){g.bL(this.HO,O)||(this.HO=O,this.resize())}; g.f.eN=function(){this.Ca&&g.FZ(this.Ca);this.QB();g.L.prototype.eN.call(this)};g.f=nvW.prototype;g.f.click=function(O,R){this.elements.has(O);this.L.has(O);var J=g.X5();J&&O.visualElement&&g.FG(J,O.visualElement,R)}; g.f.createClientVe=function(O,R,J,l){var u=this;l=l===void 0?!1:l;this.elements.has(O);this.elements.add(O);J=tmL(J);O.visualElement=J;var F=g.X5(),G=g.vM();F&&G&&(g.S8("combine_ve_grafts")?eC(WU(),J,G):g.nA(g.dw)(void 0,F,G,J));R.addOnDisposeCallback(function(){u.elements.has(O)&&u.destroyVe(O)}); l&&this.S.add(O)}; g.f.createServerVe=function(O,R,J){var l=this;J=J===void 0?!1:J;this.elements.has(O);this.elements.add(O);R.addOnDisposeCallback(function(){l.destroyVe(O)}); J&&this.S.add(O)}; g.f.destroyVe=function(O){this.elements.has(O);this.elements.delete(O);this.B.delete(O);this.L.delete(O);this.S.delete(O)}; g.f.xL=function(O,R){this.clientPlaybackNonce!==R&&(this.clientPlaybackNonce=R,AU(WU(),O),cEh(this))}; g.f.setTrackingParams=function(O,R){this.elements.has(O);R&&(O.visualElement=g.Dg(R))}; g.f.M9=function(O,R,J){this.elements.has(O);R?this.L.add(O):this.L.delete(O);var l=g.X5(),u=O.visualElement;this.S.has(O)?l&&u&&(R?g.lW(l,[u]):g.uW(l,[u])):R&&!this.B.has(O)&&(l&&u&&g.iW(l,u,void 0,J),this.B.add(O))}; g.f.hasVe=function(O){return this.elements.has(O)};g.S(g.Vq,g.p);g.Vq.create=function(O,R,J,l){try{var u=typeof O==="string"?O:"player"+g.gC(O),F=v5[u];if(F){try{F.dispose()}catch(y){g.WM(y)}v5[u]=null}var G=new g.Vq(O,R,J,l);G.addOnDisposeCallback(function(){v5[u]=null;G.CC&&G.CC()}); return v5[u]=G}catch(y){throw g.WM(y),(y&&y instanceof Error?y:Error(String(y))).stack;}}; g.f=g.Vq.prototype;g.f.IU=function(){return this.visibility}; g.f.gw=function(O){var R=this.g5();if(O!==R){O.getVideoData().autonavState=R.getVideoData().autonavState;R.dA(this.B9,this);var J=R.getPlaybackRate();R.dispose();this.N7.gw(O);O.setPlaybackRate(J);O.MP(this.B9,this);uAx(this)}}; g.f.Jj=function(){this.g4||(this.g4=g.GS(PD(),SmL()));return this.g4}; g.f.QB=function(O){if(this.mediaElement){this.KR&&(this.events.uK(this.KR),this.KR=null);g.MN(this.ZU);this.mX().QB(!0,!1,O);this.template.QB();try{this.Z("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.zU()}catch(R){g.Aa(R)}this.mediaElement=null}}; g.f.P2=function(O,R,J){J=J===void 0?!1:J;if(O!==this.mX()){this.logger.debug(function(){return"start set presenting player, type "+O.getPlayerType()+", vid "+O.getVideoData().videoId}); var l=null;J||(J=this.mX(),l=J.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),aM(this.KZ,3),HC(this,"cuerangesremoved",J.Hc()),this.fE&&!O.isGapless()&&J.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),J=O.wR()&&J.wR(),this.N9.Ik("iv_s"),o1A(this,J));O.getPlayerType()===1&&this.gw(O);txA(this,O);this.N7.P2(O);this.mediaElement&&O.setMediaElement(this.mediaElement);O.MP(this.n0,this);O.G5()?UpB(this,"setPresenting",!1):(this.DO("newdata",O,O.getVideoData()), l&&!g.rc(l,O.getPlayerState())&&this.BN(new g.tT(O.getPlayerState(),l)),R=R&&this.Z("html5_player_preload_ad_fix")&&O.getPlayerType()===1,O.ow()&&!R&&this.DO("dataloaded",O,O.getVideoData()),(R=(R=O.getVideoData().S)&&R.video)&&this.Zg.qc("onPlaybackQualityChange",R.quality),HC(this,"cuerangesadded",O.Hc()),R=O.getPlayerState(),g.d(R,2)?reH(this):g.d(R,8)?O.playVideo():O.Bt()&&O.pauseVideo(),R=this.g5(),O.getPlayerType()===2&&(O.getVideoData().q8=R.getVideoData().clientPlaybackNonce),O.getPlayerType()!== 2||this.WW()||(l=O.getVideoData(),R.Wu(l.clientPlaybackNonce,l.d5||"",l.breakType||0,l.zW,l.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.f.LR=function(){if(this.g5()!==this.mX()){var O=this.mX();this.logger.debug(function(){return"release presenting player, type "+O.getPlayerType()+", vid "+O.getVideoData().videoId}); this.P2(this.g5())}}; g.f.Xf=function(){return this.N7}; g.f.Ij=function(O){return this.N7.Ij(O)}; g.f.BW=function(O){return this.N7.BW(O)}; g.f.g5=function(){return this.N7.g5()}; g.f.mX=function(){return this.N7.mX()}; g.f.EA=Rs(50);g.f.IAQ=function(){DC(this)||(this.logger.debug("application playback ready"),this.nS(5))}; g.f.coq=function(){if(!DC(this)){this.logger.debug("playback ready");pch(this);var O=this.mX(),R=O.getPlayerState();O.Bt()?this.pauseVideo():R.isOrWillBePlaying()&&this.playVideo()}}; g.f.canPlayType=function(O){return bc(O)}; g.f.T=function(){return this.Ru}; g.f.getVideoData=function(){return this.mX().getVideoData()}; g.f.EU=Rs(19);g.f.fG=function(){return this.g5().getVideoData()}; g.f.getVideoLoadedFraction=function(O){return(O=this.Ij({playerType:O}))?O.getVideoLoadedFraction():this.N7.L.getVideoLoadedFraction()}; g.f.cq=function(){return this.template}; g.f.eG=function(){return this.KZ}; g.f.Bf=function(){return this.N9}; g.f.Yt=function(O){var R=this.Ij({playerType:1});R&&R.Om(O)}; g.f.RY=function(){var O=this.KZ.RY();this.Zg.publish("videoStatsPingCreated",O);return O}; g.f.getVolume=function(){return Math.round(this.Zg.getVolume())}; g.f.isMuted=function(){return this.Zg.isMuted()}; g.f.b_=function(){if(this.g5()===this.mX()&&this.hT)return this.hT.postId}; g.f.oeJ=function(){var O=this;this.Z("use_rta_for_player")||(g.$T(this.Ru)?g.lr(this.Ru,g.pQ(this.getVideoData())).then(function(R){po(PD(),R);sGs(O.getVideoData(),O.Ru,O.Jj())}):sGs(this.getVideoData(),this.Ru,this.Jj()))}; g.f.lR=function(O){this.Zg.publish("poTokenVideoBindingChange",O)}; g.f.E5=function(O){this.Zg.publish("d6de4videobindingchange",O)}; g.f.Mw=function(){this.fg&&this.fg.Mw()}; g.f.S3=function(O){this.fg=O}; g.f.X7=function(O){if(O===1){this.N9.tick("vr");var R=this.mX();R.vz();HCW(this.N9,R.getVideoData(),P_s(this));vYA(this.KZ)}R=this.Ru;if(JX(R)&&R.V||g.Aj(R)){var J;(((J=this.mX().getVideoData())==null?0:J.enableServerStitchedDai)||!this.WW())&&this.Zg.qc("onAdStateChange",O)}}; g.f.setLoopVideo=function(O){var R=this.mX();R===this.g5()&&R.zZ()!==O&&(R.setLoop(O),this.Zg.tR("onLoopChange",O))}; g.f.getLoopVideo=function(){return this.mX().zZ()}; g.f.setLoopRange=function(O){var R=!1;!!this.hT!==!!O?R=!0:this.hT&&O&&(R=this.hT.startTimeMs!==O.startTimeMs||this.hT.endTimeMs!==O.endTimeMs||this.hT.postId!==O.postId||this.hT.type!==O.type);if(R){R=this.mX();i1(R.getVideoData())&&R.nJ("slr",{et:(O==null?void 0:O.endTimeMs)||-1});R=this.g5();R.XK("applooprange");if(O){var J=new g.uN(O.startTimeMs,O.endTimeMs,{id:"looprange",namespace:"applooprange"});R.addCueRange(J)}else{this.fG().clipConfig=void 0;var l;((J=this.hT)==null?void 0:J.type)!=="repeatChapter"|| isNaN(Number((l=this.hT)==null?void 0:l.loopCount))||(J={loopCount:String(this.hT.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.wj("repeatChapterLoopEvent",J))}this.hT=O;this.Zg.tR("onLoopRangeChange",O||void 0);this.g5()===this.mX()&&(this.fM(),R.T4())}}; g.f.getLoopRange=function(){return this.hT}; g.f.fM=function(){var O="",R=this.g5();this.hT?R!==this.mX()?O="pnea":Dpz(this,R.getCurrentTime())&&(this.hT.loopCount=0,O="ilr"):O="nlr";var J=this.mX();if(i1(J.getVideoData()))if(this.Z("html5_gapless_log_loop_range_info")){var l,u;J.nJ("slrre",{rej:O,ct:R.getCurrentTime(),lst:(l=this.hT)==null?void 0:l.startTimeMs,let:(u=this.hT)==null?void 0:u.endTimeMs})}else J.nJ("slrre",{});O||v1H(this)}; g.f.setPlaybackRate=function(O,R){if(!isNaN(O)){O=yes(this,O);var J=this.g5();J.getPlaybackRate()!==O&&(J.setPlaybackRate(O),R&&!this.Ru.N&&g.bE("yt-player-playback-rate",O),this.Zg.qc("onPlaybackRateChange",O))}}; g.f.getCurrentTime=function(O,R,J){R=R===void 0?!0:R;var l=this.N7.ac;if(l)return l.getCurrentTime();var u=O===2&&this.getVideoData().enableServerStitchedDai,F=g.dy(this.getVideoData());l=null;u||F?l=this.mX():l=this.Ij({playerType:O});return l?F&&this.YH?(R=this.YH,l=l.getCurrentTime(),J?J=Evs(R,J):(J=ZYs(R,l),J=l-J/1E3),J):u&&this.HW?(J=this.N7.j)?J.getCurrentTime(R):l.getCurrentTime():R?(J=E2(this,l),b8(this,J.getCurrentTime(),J)):l.getCurrentTime():this.N7.L.getCurrentTime()}; g.f.SV=function(){var O=this.Ij({playerType:void 0});if(!O)return this.N7.L.SV();O=E2(this,O);return b8(this,O.SV(),O)}; g.f.getDuration=function(O,R){R=R===void 0?!0:R;var J=this.getVideoData(),l=O===2&&J.enableServerStitchedDai,u=g.dy(J),F=null;l||u?F=this.mX():F=this.Ij({playerType:O});if(!F)return this.N7.L.getDuration();if(J.hasProgressBarBoundaries()&&!l&&!u){var G,y=Number((G=J.progressBarStartPosition)==null?void 0:G.utcTimeMillis),w;G=Number((w=J.progressBarEndPosition)==null?void 0:w.utcTimeMillis);if(!isNaN(y)&&!isNaN(G))return(G-y)/1E3}if(this.Z("html5_gapless_duration_use_max_seekable_time")&&i1(J)&&!J.isLivePlayback)return kY(this, O);if(u&&this.YH)return R=V_W(this.YH,this.YH.oG()),O===1&&R===0?F.getDuration():R;if(R)return O=mZ(this,F),b8(this,O.getDuration(),O);if(l&&this.HW){var I;return((I=this.N7.j)==null?void 0:I.getDuration())||0}return F.getDuration()}; g.f.yI=function(O){var R=this.Ij({playerType:O});return R?this.WW(R)?(R=mZ(this,R),R.yI()-R.getCurrentTime()+this.getCurrentTime(O)):R.yI():this.N7.L.yI()}; g.f.hU=function(){return this.As}; g.f.addPlayerResponseForAssociation=function(O){this.YH&&this.YH.addPlayerResponseForAssociation(O)}; g.f.finishSegmentByCpn=function(O,R,J){return this.YH?this.YH.finishSegmentByCpn(O,R,J):[]}; g.f.h_=function(){this.template.h_();var O=this.Zg;O.state.element=this.template.element;var R=O.state.element,J;for(J in O.state.L)O.state.L.hasOwnProperty(J)&&(R[J]=O.state.L[J]);(O=kRH(this.template.element))&&this.events.U(this.template,O,this.onFullscreenChange)}; g.f.getDebugText=function(O){var R=this.g5().sf(O),J=this.mX();if(J!==this.g5()){J=J.sf(O);for(var l=g.N(Object.keys(J)),u=l.next();!u.done;u=l.next())u=u.value,R["ad"+u]=J[u];if(O){J=R;l={};if(u=xC(document,"movie_player"))l.bounds=u.getBoundingClientRect(),l["class"]=u.className;u={};var F=g.LI("video-ads");F?(LmL(F,u),u.html=F.outerHTML):u.missing=1;F={};var G=g.LI("videoAdUiSkipContainer"),y=g.LI("ytp-ad-skip-button-container"),w=g.LI("ytp-skip-ad-button"),I=G||y||w;I?(LmL(I,F),F.ima=G?1:0,F.bulleit= y?1:0,F.component=w?1:0):F.missing=1;l=JSON.stringify({player:l,videoAds:u,skipButton:F});J.ad_skipBtnDbgInfo=l}}O&&this.mediaElement&&(R["0sz"]=""+(+WE(this.mediaElement.getSize())===0),R.op=this.mediaElement.dC("opacity"),J=this.mediaElement.PT().y+this.mediaElement.getSize().height,R.yof=""+(+J<=0),R.dis=this.mediaElement.dC("display"));O&&((O=(0,g.rT)())&&(R.gpu=O),(O=this.Ru.playerStyle)&&(R.ps=O),this.Ru.JR&&(R.webview=1));R.debug_playbackQuality=this.Zg.getPlaybackQuality(1);R.debug_date=(new Date).toString(); R.origin=window.origin;R.timestamp=Date.now();delete R.uga;delete R.q;return JSON.stringify(R,null,2)}; g.f.getFeedbackProductData=function(){var O={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.T().experiments.experimentIds.join(", "),player_release:K[8]},R;if(R=this.getPlayerStateObject().PH)O.player_error_code=R.errorCode,O.player_error_details=JSON.stringify(R.errorDetail);return O}; g.f.getPresentingPlayerType=function(O){if(this.appState===1)return 1;if(DC(this))return 3;var R;if(O&&((R=this.HW)==null?0:R.Ml(this.getCurrentTime())))return 2;var J;return g.dy(this.getVideoData())&&((J=this.YH)==null?0:J.Ml())?2:this.mX().getPlayerType()}; g.f.MY=function(){return g.dy(this.getVideoData())&&this.YH?this.YH.MY():!1}; g.f.getPlayerStateObject=function(O){var R=this.N7.ac;return R?R.getPlayerState():this.Ij({playerType:O}).getPlayerState()}; g.f.getAppState=function(){return this.appState}; g.f.HZQ=function(O){switch(O.type){case "loadedmetadata":this.Pw.start();O=g.N(this.wi);for(var R=O.next();!R.done;R=O.next())R=R.value,Aex(this,R.id,R.WoQ,R.s8d,void 0,!1);this.wi=[];break;case "loadstart":this.N9.Ik("gv");break;case "progress":case "timeupdate":r3(O.target.cH())>=2&&this.N9.Ik("l2s");break;case "playing":g.OE&&this.Pw.start();if(g.$T(this.Ru))O=!1;else{R=g.ke(this.eG());O=this.mediaElement.dC("display")==="none"||WE(this.mediaElement.getSize())===0;var J=ZC(this.template),l=this.mX().getVideoData(), u=g.p9(this.Ru);l=l1(l);R=!J||R||u||l||this.Ru.Td;O=O&&!R}O&&(O=this.mX(),O.Ha(),this.getVideoData().mM||(this.getVideoData().mM=1,this.uo(),O.playVideo()))}}; g.f.K1N=function(O){this.Zg.P3("onLoadProgress",O)}; g.f.g8N=function(){this.Zg.publish("playbackstalledatstart")}; g.f.o9h=function(O,R){this.Zg.publish("sabrCaptionsDataLoaded",O,R)}; g.f.m5h=function(O){this.mX().QU(O)}; g.f.kyN=function(O){this.mX().qE(O)}; g.f.eP1=function(O){O=E2(this,this.mX());O=b8(this,O.getCurrentTime(),O);this.Zg.qc("onVideoProgress",O);this.Ru.S5&&k6_(this,this.visibility.ZQ())&&this.pauseVideo()}; g.f.kRX=function(){this.Zg.qc("onAutoplayBlocked");var O=this.mX().getVideoData();O&&(O.yu=!0);this.Z("embeds_enable_autoplay_and_visibility_signals")&&g.$X(this.Ru)&&(O={autoplayBrowserPolicy:Rx(),autoplayIntended:JC(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.wj("embedsAutoplayStatusChanged",O))}; g.f.W1R=function(){this.Zg.publish("progresssync")}; g.f.PKS=function(){this.Zg.P3("onPlaybackPauseAtStart")}; g.f.rTh=function(O){if(this.getPresentingPlayerType()===1){g.Z_(O,1)&&!g.d(O.state,64)&&this.fG().isLivePlayback&&this.g5().isAtLiveHead()&&this.Zg.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Z_(O,2)){if(this.hT&&this.hT.endTimeMs>=(this.getDuration()-1)*1E3){v1H(this);return}reH(this)}if(g.d(O.state,128)){var R=O.state;this.cancelPlayback(5);R=R.PH;JSON.stringify({errorData:R,debugInfo:this.getDebugText(!0)});this.Zg.qc("onError",QGB(R.errorCode));this.Zg.P3("onDetailedError",{errorCode:R.errorCode, errorDetail:R.errorDetail,message:R.errorMessage,messageKey:R.Z6,cpn:R.cpn});(0,g.Q)()-this.Ru.yk>6048E5&&this.Zg.P3("onReloadRequired")}R={};if(O.state.isPlaying()&&!O.state.isBuffering()&&!Q0("pbresume","ad_to_video")&&Q0("_start","ad_to_video")){var J=this.getVideoData();R.clientPlaybackNonce=J.clientPlaybackNonce;J.videoId&&(R.videoId=J.videoId);g.U8(R,"ad_to_video");x3("pbresume",void 0,"ad_to_video");vYA(this.KZ)}this.Zg.publish("applicationplayerstatechange",O)}}; g.f.BN=function(O){this.N7.ac||this.Zg.publish("presentingplayerstatechange",O)}; g.f.NU=function(O){Nw(this,oe(O.state));g.d(O.state,1024)&&this.Zg.isMutedByMutedAutoplay()&&(Mw(this,{muted:!1,volume:this.zE.volume},!1),qw(this,!1))}; g.f.Z1h=function(O,R){O==="newdata"&&uAx(this);this.Zg.publish("applicationvideodatachange",O,R)}; g.f.U7X=function(O,R){this.Zg.P3("onPlaybackAudioChange",this.Zg.getAudioTrack().Ef.name);this.Zg.publish("internalaudioformatchange",this.Zg.getAudioTrack().Ef.id,R)}; g.f.F$z=function(O){var R=this.mX().getVideoData();O===R&&this.Zg.qc("onPlaybackQualityChange",O.S.video.quality)}; g.f.m2=function(){var O=this.N7.B[2]||null;O&&(O=O.getVideoData(),this.mX().nJ("ssdai",{cleanaply:1,acpn:O==null?void 0:O.clientPlaybackNonce,avid:O.videoId,isDai:this.fG().enableServerStitchedDai?1:0}),delete this.N7.B[2])}; g.f.S81=function(O,R){this.DO(O,this.mX(),R)}; g.f.DO=function(O,R,J){this.logger.debug(function(){return"on video data change "+O+", player type "+R.getPlayerType()+", vid "+J.videoId}); this.Ru.DA()&&R.nJ("vdc",{type:O,vid:J.videoId||"",cpn:J.clientPlaybackNonce||""});R===this.g5()&&(this.Ru.Sa=J.oauthToken);if(R===this.g5()){this.getVideoData().enableServerStitchedDai&&!this.HW?(this.g5().nJ("sdai",{initSstm:1}),this.HW=this.Z("html5_enable_ssdai_transition_with_only_enter_cuerange")?new gv_(this.Zg,this.Ru,this.g5(),this):new g.z2(this.Zg,this.Ru,this.g5(),this)):!this.getVideoData().enableServerStitchedDai&&this.HW&&(this.HW.dispose(),this.HW=null,fBT(this.N7));var l,u;!g.dy(this.getVideoData())|| O!=="newdata"&&O!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((l=this.As.L)==null?void 0:(u=l.getVideoData())==null?void 0:u.clientPlaybackNonce)?!g.dy(this.getVideoData())&&this.YH&&(this.YH.dispose(),this.YH=null):(Tez(this.As),this.m2(),l=dg(this.As,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.As.enqueue(l,!0),LC(this.As,0,this.getDuration(1)*1E3,[l]),$ox(this.As,this.getVideoData().clientPlaybackNonce,[l]),this.YH&&(this.YH.dispose(),this.YH=null),this.YH=new yEW(this.Zg, this.As,this.g5()),this.N7.g5().B7(this.YH))}if(O==="newdata")this.logger.debug("new video data, destroy modules"),aM(this.KZ,2),this.Zg.publish("videoplayerreset",R);else{if(!this.mediaElement)return;O==="dataloaded"&&(this.g5()===this.mX()?(Hv(J.bz,J.jI),SKs(this)):Vxz(this));R.getPlayerType()===1&&(this.Ru.Iu&&Qw0(this),this.getVideoData().isLivePlayback&&!this.Ru.I7&&this.Hf("html5.unsupportedlive",2,"DEVICE_FALLBACK"),J.isLoaded()&&((O4s(J)||this.getVideoData().dc)&&this.Zg.publish("legacyadtrackingpingchange", this.getVideoData()),J.hasProgressBarBoundaries()&&TiW(this)));this.Zg.publish("videodatachange",O,J,R.getPlayerType())}this.Zg.qc("onVideoDataChange",{type:O,playertype:R.getPlayerType()});this.fM();(l=J.Tf)?this.eO.xL(l,J.clientPlaybackNonce):cEh(this.eO)}; g.f.z6=function(){vC(this,null);this.Zg.P3("onPlaylistUpdate")}; g.f.hPh=function(O){delete this.Id[O.getId()];this.g5().removeCueRange(O);a:{O=this.getVideoData();var R,J,l,u,F,G,y,w,I,C,r=((R=O.Qh)==null?void 0:(J=R.contents)==null?void 0:(l=J.singleColumnWatchNextResults)==null?void 0:(u=l.autoplay)==null?void 0:(F=u.autoplay)==null?void 0:F.sets)||((G=O.Qh)==null?void 0:(y=G.contents)==null?void 0:(w=y.twoColumnWatchNextResults)==null?void 0:(I=w.autoplay)==null?void 0:(C=I.autoplay)==null?void 0:C.sets);if(r)for(R=g.N(r),J=R.next();!J.done;J=R.next())if(J= J.value,u=l=void 0,J=J.autoplayVideo||((l=J.autoplayVideoRenderer)==null?void 0:(u=l.autoplayEndpointRenderer)==null?void 0:u.endpoint),l=g.x(J,g.cx),F=u=void 0,J!=null&&((u=l)==null?void 0:u.videoId)===O.videoId&&((F=l)==null?0:F.continuePlayback)){O=J;break a}O=null}(R=g.x(O,g.cx))&&this.Zg.tR("onPlayVideo",{sessionData:{autonav:"1",itct:O==null?void 0:O.clickTrackingParams},videoId:R.videoId,watchEndpoint:R})}; g.f.nS=function(O){var R=this;O!==this.appState&&(this.logger.debug(function(){return"app state change "+R.appState+" -> "+O}),O===2&&this.getPresentingPlayerType()===1&&(Nw(this,-1),Nw(this,5)),this.appState=O,this.Zg.publish("appstatechange",O))}; g.f.Hf=function(O,R,J,l,u){this.g5().Qk(O,R,J,l,u)}; g.f.s6=function(O,R){this.g5().handleError(new MC(O,R))}; g.f.isAtLiveHead=function(O,R){R=R===void 0?!1:R;var J=this.Ij({playerType:O});if(!J)return this.N7.L.isAtLiveHead();O=mZ(this,J);J=E2(this,J);return O!==J?O.isAtLiveHead(b8(this,J.getCurrentTime(),J),!0):O.isAtLiveHead(void 0,R)}; g.f.YV=function(){var O=this.Ij({playerType:void 0});return O?mZ(this,O).YV():this.N7.L.YV()}; g.f.seekTo=function(O,R,J,l,u){R=R!==!1;if(l=this.Ij({playerType:l}))this.appState===2&&TQ(this),this.WW(l)?WC(this)?this.HW.seekTo(O,{seekSource:u},R,J):this.x9.seekTo(O,{seekSource:u},R,J):g.dy(this.getVideoData())&&this.YH?this.YH.seekTo(O,{gy:!R,zs:J,bK:"application",seekSource:u}):l.seekTo(O,{gy:!R,zs:J,bK:"application",seekSource:u})}; g.f.seekBy=function(O,R,J,l){this.seekTo(this.getCurrentTime()+O,R,J,l)}; g.f.fvR=function(){this.Zg.qc("SEEK_COMPLETE")}; g.f.avq=function(){this.Zg.tR("onAbnormalityDetected")}; g.f.n8S=function(O){this.Zg.tR("onSnackbarMessage",O)}; g.f.RPR=function(O){var R=this.mX(),J=R.getVideoData();if(this.appState===1||this.appState===2)J.startSeconds=O;this.appState===2?g.d(R.getPlayerState(),512)||TQ(this):this.Zg.qc("SEEK_TO",O)}; g.f.E9d=function(){this.Zg.publish("airplayactivechange");this.Ru.Z("html5_external_airplay_events")&&this.Zg.P3("onAirPlayActiveChange",this.Zg.oF())}; g.f.GRu=function(){this.Zg.publish("airplayavailabilitychange");this.Ru.Z("html5_external_airplay_events")&&this.Zg.P3("onAirPlayAvailabilityChange",this.Zg.cO())}; g.f.showAirplayPicker=function(){this.mX().QS()}; g.f.m7u=function(){this.Zg.publish("beginseeking")}; g.f.lvQ=function(){this.Zg.publish("endseeking")}; g.f.getStoryboardFormat=function(O){return(O=this.Ij({playerType:O}))?mZ(this,O).getStoryboardFormat():this.N7.L.getStoryboardFormat()}; g.f.wK=function(O){return(O=this.Ij({playerType:O}))?mZ(this,O).getVideoData().wK():this.N7.L.wK()}; g.f.WW=function(O){O=(O||this.mX()).getVideoData();if(WC(this))O=O===this.HW.playback.getVideoData();else a:{var R=this.x9;if(O===R.L.getVideoData()&&R.S.length)O=!0;else{R=g.N(R.S);for(var J=R.next();!J.done;J=R.next())if(O.Ao===J.value.Ao){O=!0;break a}O=!1}}return O}; g.f.bU=function(O,R,J,l,u,F,G,y){this.logger.debug(function(){return"Adding video to timeline id="+O.video_id+"\n lengthMs="+l+" enterTimeMs="+u}); var w="",I=WC(this);this.mX().nJ("appattl",{sstm:this.HW?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:I});w=I?BeH(this.HW,O,R,J,l,u,F,G,y):$Hx(this.x9,O,J,l,u,F);this.logger.debug(function(){return"Video added to timeline id="+O.video_id+" timelinePlaybackId="+w}); return w}; g.f.Kr=function(O,R,J,l,u,F,G,y){if(WC(this)){var w=BeH(this.HW,O,R,J,l,u,F,G,y);this.logger.debug(function(){return"Remaining video added to timeline id="+O.video_id+" timelinePlaybackId="+w})}return""}; g.f.KH=function(O){var R;(R=this.HW)==null||R.KH(O)}; g.f.zT=function(O,R){O=O===void 0?-1:O;R=R===void 0?Infinity:R;WC(this)||Ppf(this.x9,O,R)}; g.f.Gi=function(O,R,J){if(WC(this)){var l=this.HW,u=l.mM.get(O);u?(J===void 0&&(J=u.LZ),u.durationMs=R,u.LZ=J):l.DH("Invalid_timelinePlaybackId_"+O+"_specified")}else{l=this.x9;u=null;for(var F=g.N(l.S),G=F.next();!G.done;G=F.next())if(G=G.value,G.Ao===O){u=G;break}u?(J===void 0&&(J=u.LZ),e4_(l,u,R,J)):yq(l,"InvalidTimelinePlaybackId timelinePlaybackId="+O)}}; g.f.enqueueVideoByPlayerVars=function(O,R,J,l){J=J===void 0?Infinity:J;l=l===void 0?"":l;this.WW();O=new g.jN(this.Ru,O);l&&(O.Ao=l);$p2(this,O,R,J)}; g.f.queueNextVideo=function(O,R,J,l,u){J=J===void 0?NaN:J;O=this.preloadVideoByPlayerVars(O,R===void 0?1:R,J,l===void 0?"":l,u===void 0?"":u);R=this.mX();O&&(this.Z("html5_check_queue_on_data_loaded")?this.T().supportsGaplessShorts()&&R.getVideoData().V&&(J=this.oR,l=this.fE.J,J.N!==O&&(J.S=R,J.N=O,J.B=1,J.L=O.getVideoData(),J.D=l,J.L.isLoaded()?J.j():J.L.subscribe("dataloaded",J.j,J))):(J=gcx(R,O,this.fE.J),J!=null?(R.nJ("sgap",J),R.getVideoData().V&&R.FN(!1)):(O=O.getVideoData(),R=this.oR,R.L!== O&&(R.L=O,R.B=1,O.isLoaded()?R.J():R.L.subscribe("dataloaded",R.J,R)))))}; g.f.Iv=function(O,R,J,l){var u=this;J=J===void 0?0:J;l=l===void 0?0:l;mZ(this,this.mX()).Hb();tGx(this.fE,O,R,J,l).then(function(){u.Zg.P3("onQueuedVideoLoaded")},function(){})}; g.f.uS=function(){return this.fE.uS()}; g.f.B5=function(O){var R=this.fE.L;return R?R.Q5(O):!1}; g.f.clearQueue=function(O,R){O=O===void 0?!1:O;R=R===void 0?!1:R;this.logger.debug("Clearing queue");this.fE.clearQueue(O,R)}; g.f.loadVideoByPlayerVars=function(O,R,J,l,u,F){R=R===void 0?1:R;var G=this.g5();if(R===2&&this.fG().enableServerStitchedDai&&G&&!G.oo())return G.nJ("lvonss",{vid:(O==null?void 0:O.videoId)||"",ptype:R}),!1;var y=!1;G=new g.jN(this.Ru,O);G.reloadPlaybackParams=F;g.cv(this.Ru)&&!G.kq&&w5(this.N9);var w;F=this.N9;var I=(w=G.SN)!=null?w:"";F.timerName=I;this.N9.jz("pl_i");this.Z("web_player_early_cpn")&&G.clientPlaybackNonce&&this.N9.infoGel({clientPlaybackNonce:G.clientPlaybackNonce});$2s(G).supportsVp9Encoding=== !1&&this.mX().nJ("noVp9enc",{});if(this.T().supportsGaplessShorts()){w=ZUh(this.fE,G,R);if(w==null){Nw(this,-1);O=this.fE;O.app.T().Z("html5_gapless_new_slr")?s2(O.app,"gaplessshortslooprange"):O.app.setLoopRange(null);O.app.getVideoData().KI=!0;var C;(C=O.L)==null||C.cw();var r;(r=O.L)==null||r.i9();J={bK:"gapless_to_next_video",seekSource:60};l=g.tB(O.app.T().experiments,"html5_gapless_seek_offset");var t;(t=O.app.mX())==null||t.seekTo(ocT(O)+l,J);if(!O.app.getPlayerStateObject(R).isPlaying()){var Z; (Z=O.app.mX())==null||Z.playVideo(!0)}if(O.app.T().Z("html5_short_gapless_unlisten_after_seek")){var V;(V=O.app.mX())==null||V.gi()}O.j();return!0}t=this.Z("html5_shorts_gapless_preload_fallback");Z=this.fE.L;t&&Z&&!Z.jN()&&(V=Z.getVideoData(),V=this.Ru.Z("html5_autonav_autoplay_in_preload_key")?e4(this,R,V):PC(this,R,V.videoId,V.Ao),this.N7.N.set(V,Z,3600));this.fE.clearQueue(t);this.mX().nJ("sgap",{f:w})}if(u){for(;G.Ea.length&&G.Ea[0].isExpired();)G.Ea.shift();y=G.Ea.length-1;y=y>0&&u.S(G.Ea[y])&& u.S(G.Ea[y-1]);G.Ea.push(u)}J||(O&&QBh(O)?(YX(this.Ru)&&!this.jt&&(O.fetch=0),vC(this,O)):this.playlist&&vC(this,null),O&&(this.jt=iE(!1,O.external_list)));this.Zg.publish("loadvideo");R=this.xu(G,R,l);y&&this.Hf("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+G.Ea.join()).replace(/[;:,]/g,"_"));return R}; g.f.preloadVideoByPlayerVars=function(O,R,J,l,u){R=R===void 0?1:R;J=J===void 0?NaN:J;l=l===void 0?"":l;u=u===void 0?"":u;var F="";if(this.Ru.Z("html5_autonav_autoplay_in_preload_key"))F=qK_(this,R,O,u);else{var G=Ka(O);F=PC(this,R,G,u)}if(this.N7.N.get(F))return this.logger.debug(function(){return"already preloaded "+F}),null; O=new g.jN(this.Ru,O);u&&(O.Ao=u);return MxH(this,O,R,J,l)}; g.f.setMinimized=function(O){this.visibility.setMinimized(O);(O=$wA(this.KZ))&&(this.isMinimized()?O.load():O.unload());this.Zg.publish("minimized")}; g.f.setInline=function(O){this.visibility.setInline(O)}; g.f.setInlinePreview=function(O){this.visibility.setInline(O)}; g.f.b2=function(O){sw0(this,O)||this.visibility.b2(O)}; g.f.setSqueezeback=function(O){this.visibility.setSqueezeback(O)}; g.f.Li=function(){var O,R=(O=this.mediaElement)==null?void 0:O.u5();R&&(this.Ru.X9&&EP(SC(function(){return document.exitFullscreen()}),function(){}),EP(SC(function(){return Sm(R)}),function(){}))}; g.f.VZR=function(){this.mediaElement.u5();this.mediaElement.u5().webkitPresentationMode==="picture-in-picture"?this.b2(!0):this.b2(!1)}; g.f.togglePictureInPicture=function(){this.mX().togglePictureInPicture()}; g.f.xu=function(O,R,J){R=R===void 0?1:R;this.logger.debug(function(){return"start load video, id "+O.videoId+", type "+R}); Q0("_start",this.N9.timerName)||g.nA(Wp)(void 0,this.N9.timerName);var l=!1,u=E1A(this,R,O,!1);u?(l=!0,O.dispose()):(u=fJ(this,R,O,!0,J),(this.Z("html5_onesie")||this.Z("html5_load_before_stop"))&&u.m8()&&u.Mr(),this.Pw.stop(),R===1&&R!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,R),this.P2(u));u===this.g5()&&(this.Ru.Sa=O.oauthToken);if(!u.m8())return!1;if(u===this.g5())return this.nS(1),J=TQ(this),l&&this.Z("html5_player_preload_ad_fix")&&u.getPlayerType()===1&& u.ow()&&this.DO("dataloaded",u,u.getVideoData()),J;u.Df();return!0}; g.f.cueVideoByPlayerVars=function(O,R){var J=this;R=R===void 0?1:R;var l=this.g5();if(this.fG().enableServerStitchedDai&&l&&!l.oo()&&O&&Object.keys(O).length>0)l.nJ("qvonss",{vid:(O==null?void 0:O.videoId)||"",ptype:R});else if(O&&QBh(O))if(this.Zx=!0,vC(this,O),(O=g.IM(this.playlist))&&O.Dh())BC(this,O,R);else this.playlist.onReady(function(){X4(J)}); else{R||(R=this.getPresentingPlayerType());R===1&&this.z6();l=new g.jN(this.Ru,O);var u=g.$X(this.Ru)&&!this.Ru.Hq&&R===1&&!l.isAd()&&!l.d5;this.Zg.publish("cuevideo");u?(this.mX().getVideoData().loading=!0,cz2(l,O?O:{}).then(function(F){BC(J,F,R)}),l.dispose()):BC(this,l,R)}}; g.f.HM=function(O,R,J,l,u,F,G){if(!O&&!J)throw Error("Playback source is invalid");if(q7(this.Ru)||g.XV(this.Ru))return R=R||{},R.lact=TT(),R.vis=this.Zg.getVisibilityState(),this.Zg.tR("onPlayVideo",{videoId:O,watchEndpoint:F,sessionData:R,listId:J}),!1;U10(this.N9);this.N9.reset();O={video_id:O};l&&(O.autoplay="1");l&&(O.autonav="1");F&&(O.player_params=F.playerParams);G&&(O.oauth_token=G);J?(O.list=J,this.loadPlaylist(O)):this.loadVideoByPlayerVars(O,1);return!0}; g.f.cuePlaylist=function(O,R,J,l){this.Zx=!0;bWB(this,O,R,J,l)}; g.f.loadPlaylist=function(O,R,J,l){this.Zx=!1;bWB(this,O,R,J,l)}; g.f.BO=function(){return this.Zg.isMutedByMutedAutoplay()?!1:this.N7.ac?!0:!(!this.playlist||!this.playlist.rB())}; g.f.AY=Rs(13); g.f.nextVideo=function(O,R){var J=g.OI(this.g5().getVideoData());g.WD(this.Zg)&&J?this.HM(J.videoId,R?J.Mj:J.sessionData,J.playlistId,R,void 0,J.K6||void 0):this.jt?this.Zg.P3("onPlaylistNext"):this.getPresentingPlayerType()===3?g.e($e(this.KZ)).nextVideo():!this.playlist||YX(this.Ru)&&!this.Zg.isFullscreen()||(this.playlist.rB(O)&&d1W(this.playlist,LlW(this.playlist)),this.playlist.loaded?(O=R&&this.Ru.Z("html5_player_autonav_logging"),R&&this.Zg.publish("playlistautonextvideo"),this.xu(g.e(g.IM(this.playlist,void 0, R,O)),1)):this.Zx=!1)}; g.f.previousVideo=function(O){this.jt?this.Zg.P3("onPlaylistPrevious"):this.getPresentingPlayerType()===3?g.e($e(this.KZ)).j2():!this.playlist||YX(this.Ru)&&!this.Zg.isFullscreen()||(this.playlist.u7(O)&&d1W(this.playlist,Yvx(this.playlist)),this.playlist.loaded?this.xu(g.e(g.IM(this.playlist)),1):this.Zx=!1)}; g.f.playVideoAt=function(O){this.jt?this.Zg.P3("onPlaylistIndex",O):this.playlist&&(this.playlist.loaded?this.xu(g.e(g.IM(this.playlist,O)),1):this.Zx=!1,d1W(this.playlist,O))}; g.f.getPlaylist=function(){return this.playlist}; g.f.yT=Rs(25);g.f.jzq=function(O){this.Zg.qc("onCueRangeEnter",O.getId())}; g.f.x9h=function(O){this.Zg.qc("onCueRangeExit",O.getId())}; g.f.JC=function(){var O=g.E6(this.eG());O&&O.JC()}; g.f.l$=function(O,R,J){var l=this.Ij({playerType:R});if(l){var u=this.fG();if(g.dy(u)){if(this.YH)if(this.Z("html5_ssap_enable_cpn_triggered_media_end")&&l.getPlayerType()===2&&this.YH.Ml()&&(l=this.g5()),R===1)for(var F=KJ(this.YH,u.clientPlaybackNonce),G=g.N(O),y=G.next();!y.done;y=G.next())y=y.value,y.start+=F,y.end+=F,y.Us=F,y.B=u.clientPlaybackNonce;else if(this.Z("html5_ssap_enable_cpn_triggered_media_end")&&R===2)for(this.getPresentingPlayerType(),u=g.N(O),F=u.next();!F.done;F=u.next())F.value.B= this.YH.oG();u=g.N(O);for(F=u.next();!F.done;F=u.next())G=void 0,F.value.playerType=(G=R)!=null?G:1}l.l$(O,J);R&&this.getPresentingPlayerType()!==R||HC(this,"cuerangesadded",O)}}; g.f.H7=function(O,R){var J=this.Ij({playerType:R});J&&(J.H7(O),R&&this.getPresentingPlayerType()!==R||HC(this,"cuerangesremoved",O))}; g.f.u$=function(O){var R=this.mX(),J=this.getPresentingPlayerType();return this.Z("html5_ssap_enable_cpn_triggered_media_end")?R.u$(J,O):R.u$(J)}; g.f.D9Q=function(){function O(){var l=R.screenLayer||(R.isMinimized()?3:0),u=g.X5(l);if(u&&u!=="UNDEFINED_CSN"){var F=R.Ru.Z("web_player_attach_player_response_ve"),G=R.Ru.Z("web_playback_associated_ve");l={cpn:R.getVideoData().clientPlaybackNonce,csn:u};R.getVideoData().AR&&(F||G)&&(F=g.Dg(R.getVideoData().AR),g.iW(u,F),G&&(l.playbackVe=F.getAsJson()));R.getVideoData().queueInfo&&(l.queueInfo=R.getVideoData().queueInfo);u={};R.Z("web_playback_associated_log_ctt")&&R.getVideoData().j&&(u.cttAuthInfo= {token:R.getVideoData().j,videoId:R.getVideoData().videoId});g.wj("playbackAssociated",l,u)}else g.Aa(new g.Ys("CSN Missing or undefined during playback association"))} var R=this,J=this.mX();this.getPresentingPlayerType();HCW(this.N9,J.getVideoData(),P_s(this));al(this)&&this.Ru.N&&W$(this.fG())==="embedded"&&this.Lf&&Math.random()<.01&&g.wj("autoplayTriggered",{intentional:this.intentionalPlayback});this.Lf=!1;vYA(this.KZ);this.Z("web_player_defer_ad")&&f6p(this);this.Zg.P3("onPlaybackStartExternal");(this.Ru.Z("mweb_client_log_screen_associated"),xX(this.Ru))||O();J={};this.getVideoData().j&&(J.cttAuthInfo={token:this.getVideoData().j,videoId:this.getVideoData().videoId}); J.sampleRate=20;jq("player_att",J);if(this.getVideoData().botguardData||this.Z("fetch_att_independently"))g.zj(this.Ru)||RZ(this.Ru)==="MWEB"?g.cf(g.RJ(),function(){$Y(R)}):$Y(this); this.fM();a6_(this);this.Z("embeds_enable_autoplay_and_visibility_signals")&&g.$X(this.Ru)&&(J={autoplayBrowserPolicy:Rx(),autoplayIntended:JC(this.getVideoData()),autoplayStatus:jqB(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.wj("embedsAutoplayStatusChanged",J))}; g.f.AoJ=function(){this.Zg.publish("internalAbandon");AL(this)}; g.f.onApiChange=function(){var O=this.mX();this.Ru.V?this.Zg.qc("onApiChange",O.getPlayerType()):this.Zg.qc("onApiChange")}; g.f.qZJ=function(){var O=this.mediaElement;O={volume:g.TY(Math.floor(O.getVolume()*100),0,100),muted:O.RJ()};O.muted||qw(this,!1);this.zE=g.RW(O);this.Zg.qc("onVolumeChange",O)}; g.f.mutedAutoplay=function(O){var R=this.getVideoData().videoId;isNaN(this.c5)&&(this.c5=this.getVideoData().startSeconds);if((O==null?0:O.videoId)||R)this.loadVideoByPlayerVars({video_id:(O==null?0:O.videoId)?O==null?void 0:O.videoId:R,playmuted:!0,start:this.c5,muted_autoplay_duration_mode:O==null?void 0:O.durationMode}),this.Zg.P3("onMutedAutoplayStarts")}; g.f.onFullscreenChange=function(){var O=Bih(this);this.K$(O?1:0);xp_(this,!!O)}; g.f.K$=function(O){var R=!!O,J=!!this.qR()!==R;this.visibility.K$(O);this.template.K$(R);this.Z("html5_media_fullscreen")&&!R&&this.mediaElement&&Bih(this)===this.mediaElement.u5()&&this.mediaElement.Rw();this.template.resize();J&&this.N9.tick("fsc");J&&(this.Zg.publish("fullscreentoggled",R),O=this.fG(),R={fullscreen:R,videoId:O.Tr||O.videoId,time:this.getCurrentTime()},this.Zg.getPlaylistId()&&(R.listId=this.Zg.getPlaylistId()),this.Zg.qc("onFullscreenChange",R))}; g.f.Ni=function(){return this.visibility.Ni()}; g.f.isFullscreen=function(){return this.visibility.isFullscreen()}; g.f.qR=function(){return this.visibility.qR()}; g.f.rpJ=function(){var O=this.qR();O!==0&&O!==1||this.K$(Bih(this)?1:0);O=window.screen.width*window.screen.height;var R=window.outerHeight*window.outerWidth;this.Ru.x4?(this.ES=Math.max(this.ES,O,R),O=R/this.ES0&&(w=Math.floor(I/1E3))}w=R?R.d2:w;var C={AD_BLOCK:this.L++,AD_BREAK_LENGTH:w,AUTONAV_STATE:U2(this.player.T()),CA_TYPE:"image",CPN:y.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.YV()*1E3,LACT:TT(),LIVE_INDEX:R?this.B++:1,LIVE_TARGETING_CONTEXT:R&&R.context?R.context:"",MIDROLL_POS:F? Math.round(F.start/1E3):0,MIDROLL_POS_MS:F?Math.round(F.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.cq().OV().height,P_W:this.player.cq().OV().width,YT_REMOTE:u?u.join(","):""},r=w6(y3);Object.keys(r).forEach(function(Z){r[Z]!=null&&(C[Z.toUpperCase()]=r[Z].toString())}); J!==""&&(C.BISCOTTI_ID=J);J={};K_(O)&&(J.sts="20202",(R=this.player.T().forcedExperiments)&&(J.forced_experiments=R));var t=ul(g.sg(O,C),J);return t.split("?").length!==2?bM(Error("Invalid AdBreakInfo URL")):g.lr(this.player.T(),y==null?void 0:y.oauthToken).then(function(Z){if(Z&&G3()){var V=PD();po(V,Z)}Z=g.e(l.player.Jj(V));V=ru0(l,t,C,y.isMdxPlayback,G);return g.zO(Z,V,"/youtubei/v1/player/ad_break").then(function(m){return m})})}; j4.prototype.reset=function(){this.B=this.L=1};g.S(tMp,j4); tMp.prototype.S=function(O,R,J){R=R===void 0?{}:R;var l=R.Ar;var u=R.pZ;var F=R.cueProcessedMs;J=J===void 0?"":J;R=this.L;this.L++;var G=this.player.T().Z("h5_disable_macro_substitution_in_get_ad_break")?O:oRx(this,O,{Ar:l,pZ:u,cueProcessedMs:F},J,R);if(G.split("?").length!==2)return Math.random()<.1&&g.Aa(Error("Invalid AdBreakInfo URL")),bM(Error("Invalid AdBreakInfo URL"));var y=this.player.getVideoData(1).isMdxPlayback,w=J;J=FaL.exec(G);J=J!=null&&J.length>=2?J[1]:"";O=GDz.test(G);var I=KaW.exec(G); I=I!=null&&I.length>=2?I[1]:"";var C=yus.exec(G);C=C!=null&&C.length>=2&&!Number.isNaN(Number(C[1]))?Number(C[1]):1;var r=w9A.exec(G);r=r!=null&&r.length>=2?r[1]:"0";var t=Bv(this.player.T().Ic),Z=g.O8(this.player.getVideoData(1).AR,!0);R$s(this,Z,G,w===""?"":w,this.player.T(),this.player.getVideoData(1));w={splay:!1,lactMilliseconds:String(TT()),playerHeightPixels:Math.trunc(this.player.cq().OV().height),playerWidthPixels:Math.trunc(this.player.cq().OV().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20202,autonavState:U2(this.player.T())};if(y){y={};var V=this.player.T().Bc;iGA(y,V?V.join(","):"")&&(w.mdxContext=y)}if(y=IxW.includes(t)?void 0:g.e8("PREF")){V=y.split(RegExp("[:&]"));for(var m=0,E=V.length;m1&&a[1].toUpperCase()==="TRUE"){Z.user.lockedSafetyMode=!0;break}}w.autoCaptionsDefaultOn=u2B(y)}G=CSA.exec(G);(G=G!=null&&G.length>=2?G[1]:"")&&I&&(Z.user.credentialTransferTokens= [{token:G,scope:"VIDEO"}]);G={contentPlaybackContext:w};w=this.player.getVideoData(1).getGetAdBreakContext();y=this.player.getVideoData(1).clientPlaybackNonce;V=F!==void 0?Math.round(F).toString():void 0;m=(l==null?0:l.context)?l.context:void 0;E=0;F&&u&&!l&&(u=u.end-u.start,u>0&&(E=Math.floor(u/1E3)));l=(l=Math.trunc((l?l.d2:E)*1E3))?String(l):void 0;u=this.player.YV()*1E3;u=Number.isNaN(u)?0:Math.trunc(u);R={adBlock:R,params:J,breakIndex:C,breakPositionMs:r,clientPlaybackNonce:y,topLevelDomain:t, isProxyAdTagRequest:O,context:Z,overridePlaybackContext:G,cueProcessedMs:V,videoId:I?I:void 0,liveTargetingParams:m,breakLengthMs:l,driftFromHeadMs:u?String(u):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:w?w:void 0};return ZGB(this,R)};var fpV={OsR:"replaceUrlMacros",Zxh:"onAboutThisAdPopupClosed",IHR:"executeCommand"};VM2.prototype.o7=function(){return"adPingingEndpoint"}; VM2.prototype.Ss=function(O,R,J){gJf(this.yh.get(),O,R,J)};fxp.prototype.o7=function(){return"changeEngagementPanelVisibilityAction"}; fxp.prototype.Ss=function(O){this.X.tR("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:O})};SLA.prototype.o7=function(){return"loggingUrls"}; SLA.prototype.Ss=function(O,R,J){O=g.N(O);for(var l=O.next();!l.done;l=O.next())l=l.value,gJf(this.yh.get(),l.baseUrl,R,J,l.attributionSrcMode)};g.S(ml0,g.p);g.S(LJ,g.p);g.f=LJ.prototype;g.f.addListener=function(O){this.listeners.push(O)}; g.f.removeListener=function(O){this.listeners=this.listeners.filter(function(R){return R!==O})}; g.f.Ec=function(O,R,J,l,u,F,G,y){if(O==="")rK("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(O!==this.L||J){this.L=O;this.YS.get().Ec(O,R,J,l,u,F,G,y);this.rd.get().Ec(O,R,J,l,u,F,G,y);var w;(w=this.Gy)==null||w.get().Ec(O,R,J,l,u,F,G,y);this.S.Ec(O,R,J,l,u,F,G,y);w=g.N(this.listeners);for(var I=w.next();!I.done;I=w.next())I.value.Ec(O,R,J,l,u,F,G,y)}else rK("Duplicate content video loaded signal")}; g.f.Qz=function(){this.L&&this.Ua(this.L)}; g.f.Ua=function(O){this.L=void 0;for(var R=g.N(this.listeners),J=R.next();!J.done;J=R.next())J.value.Ua(O)};YY.prototype.KF=function(O,R,J,l,u){ERH(this);this.D=!R&&J===0;var F=this.X.getVideoData(1),G=this.X.getVideoData(2);F&&(this.contentCpn=F.clientPlaybackNonce,this.videoId=F.videoId,this.L=F.j);G&&(this.adCpn=G.clientPlaybackNonce,this.adVideoId=G.videoId,this.adFormat=G.adFormat);this.N=O;l<=0?(ERH(this),this.D=!R&&J===0):(this.actionType=this.D?R?"unknown_type":"video_to_ad":R?"ad_to_video":"ad_to_ad",this.videoStreamType=u?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.B=!0,Q0("_start",this.actionType)&&vR_(this)))}; YY.prototype.reset=function(){return new YY(this.X)};g.S(d8,g.p);d8.prototype.addCueRange=function(O,R,J,l,u,F,G){F=F===void 0?3:F;G=G===void 0?1:G;this.L.has(O)?rK("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:O}):(O=new X9T(O,R,J,l,F),this.L.set(O.id,{pZ:O,listener:u,rh:G}),this.X.zy([O],G))}; d8.prototype.removeCueRange=function(O){var R=this.L.get(O);R?(this.X.VE([R.pZ],R.rh),this.L.delete(R.pZ.id)):rK("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:O})}; d8.prototype.onCueRangeEnter=function(O){if(this.L.has(O.id))g.e(this.L.get(O.id)).listener.onCueRangeEnter(O.id)}; d8.prototype.onCueRangeExit=function(O){if(this.L.has(O.id))g.e(this.L.get(O.id)).listener.onCueRangeExit(O.id)}; g.S(X9T,g.uN);hL.prototype.addPlayerResponseForAssociation=function(O){this.X.addPlayerResponseForAssociation(O)};zQ.prototype.X7=function(O){this.X.X7(O)}; zQ.prototype.oy=function(O){var R=g.As.apply(1,arguments);O==="onAdStart"||O==="onAdEnd"?this.X.qc.apply(this.X,[O].concat(g.X(R))):this.X.tR.apply(this.X,[O].concat(g.X(R)))};nJ.prototype.Fw=function(O){return O&&cC(this)};var BSf=null;g.S(p92,g.y8);p92.prototype.Hr=function(O){return this.L.hasOwnProperty(O)?this.L[O].Hr():{}}; g.dh("ytads.bulleit.getVideoMetadata",function(O){return OT().Hr(O)}); g.dh("ytads.bulleit.triggerExternalActivityEvent",function(O,R,J){var l=OT();J=PSW(J);J!==null&&l.publish(J,{queryId:O,viewabilityString:R})});g.f=Rn.prototype;g.f.t1=function(O,R){if(!this.L.has(O))return{};if(R==="seek"){R=!1;R=R===void 0?!1:R;var J=Yi(JY).Bs(O,{});J?zi(J):R&&(O=Yi(JY).rf(null,NQ(),!1,O),O.rU=3,aUL([O]));return{}}R=xlL(R);if(R===null)return{};var l=this.X.LH();if(!l)return{};var u=this.X.getPresentingPlayerType(!0);if((J=this.X.getVideoData(u))==null||!J.isAd())return{};J={opt_adElement:l,opt_fullscreen:this.YS.get().isFullscreen()};return a1T(R,O,J)}; g.f.Em=function(O,R,J,l,u){this.L.has(O)&&(l<=0||u<=0||Yi(JY).Em(O,R,J,l,u))}; g.f.eb=function(O){var R;(R=this.L.get(O.queryId))==null||R.eb()}; g.f.FT=function(O){var R;(R=this.L.get(O.queryId))==null||R.FT()}; g.f.wT=function(O){var R;(R=this.L.get(O.queryId))==null||R.wT()}; g.f.Sb=function(O){var R;(R=this.L.get(O.queryId))==null||R.Sb()}; g.f.H_=function(O){var R;(R=this.L.get(O.queryId))==null||R.H_()};nRx.prototype.send=function(O,R,J,l){try{cu2(this,O,R,J,l===void 0?!1:l)}catch(u){}};g.S(O0s,nRx);Rcs.prototype.send=function(O,R,J,l){var u=!1;try{if(l==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||l==="ATTRIBUTION_SRC_MODE_XHR_OPTION")u=!0,O=lD2(O);l=u;var F=g.ao(O);if(F[1]==="https")var G=O;else F[1]="https",G=Du("https",F[2],F[3],F[4],F[5],F[6],F[7]);var y=uHL(G);F=[];var w;if(w=jCp(G))w=this.wd.get().X.T().experiments.Vh("add_auth_headers_to_remarketing_google_dot_com_ping");if(K_(G)||w)F.push({headerType:"USER_AUTH"}),F.push({headerType:"PLUS_PAGE_ID"}),F.push({headerType:"VISITOR_ID"}),F.push({headerType:"EOM_VISITOR_ID"}), F.push({headerType:"AUTH_USER"}),F.push({headerType:"DATASYNC_ID"});this.L.send({baseUrl:G,scrubReferrer:y,headers:F},R,J,l)}catch(I){}};uj.prototype.iC=function(){return this.X.iC(1)};g.S(F0,g.p);g.f=F0.prototype;g.f.Nx=function(){return this.X.getVideoData(1).clientPlaybackNonce}; g.f.addListener=function(O){this.listeners.push(O)}; g.f.removeListener=function(O){this.listeners=this.listeners.filter(function(R){return R!==O})}; g.f.Ec=function(){this.Sd.clear();this.Jq=null;this.b$.get().clear()}; g.f.Ua=function(){}; g.f.uwU=function(O,R,J,l,u){R.videoId==="nPpU29QrbiU"&&this.X.nJ("ads_ssm_vdc_s",{pt:J,dvt:O});T8(this.wd.get())&&O!=="dataloaded"||y5x(this,R,J);if(cC(this.wd.get())&&O==="newdata"&&u!==void 0){O=this.Nx();var F=R.clientPlaybackNonce,G={};a1(this,"rte",(G.ec=F,G.xc=l==null?void 0:l.clientPlaybackNonce,G.tr=u,G.pt=J,G.ia=F!==O,G.ctp=DT(F),G));R=R.clientPlaybackNonce;l=l==null?void 0:l.clientPlaybackNonce;u=wHs(u);if(u!==1)if(l!==void 0)for(J=g.N(this.listeners),O=J.next();!O.done;O=J.next())O.value.VA(l, R,u);else rK("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:R,transitionReason:String(u)});u=g.N(this.listeners);for(l=u.next();!l.done;l=u.next())l.value.lN(R)}}; g.f.K$h=function(O,R){O!==void 0&&(this.Jq=O,R===void 0?rK("Expected ad video start time on SS video changed"):this.Sd.set(O,R));var J=this.X.getPresentingPlayerType(!0),l=this.X.getVideoData(J),u;O===void 0?u=null:u=this.b$.get().L.get(O)||null;this.X.getVideoData(1).nJ("ads_ssvc",{pt:J,cpn:l==null?void 0:l.clientPlaybackNonce,crtt:this.X.getCurrentTime(1,!1),atlh:this.X.isAtLiveHead(),adstt:R,pid:O,slid:u==null?void 0:u.layoutId});l?y5x(this,l,J):rK("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.X.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:O})}; g.f.tV=function(O,R){var J=O.author,l=O.clientPlaybackNonce,u=O.isListed,F=O.Ao,G=O.title,y=O.FH,w=O.lV,I=O.isMdxPlayback,C=O.SU,r=O.mdxEnvironment,t=O.isAutonav,Z=O.LS,V=O.kq,m=O.Tm,E=O.videoId||"",a=O.profilePicture||"",v=O.oU||"",b=O.MU()||!1,W=O.Zv()||!1;O=O.Ip||void 0;F=this.b$.get().L.get(F)||{layoutId:null,slotId:null};var B=this.X.getVideoData(1),z=B.vy();B=B.getPlayerResponse();R=1E3*this.X.getDuration(R);var Y=1E3*this.X.getDuration(1),gh,l2,O_=(B==null?void 0:(gh=B.playerConfig)==null? void 0:(l2=gh.daiConfig)==null?void 0:l2.enableDai)||!1,Kx,n;gh=(B==null?void 0:(Kx=B.playerConfig)==null?void 0:(n=Kx.daiConfig)==null?void 0:n.enablePreroll)||!1;return Object.assign({},F,{videoId:E,author:J,clientPlaybackNonce:l,Cg:R,KD:Y,daiEnabled:O_,Dr:gh,isListed:u,vy:z,profilePicture:a,title:G,oU:v,FH:y,lV:w,Ip:O,isMdxPlayback:I,SU:C,mdxEnvironment:r,isAutonav:t,LS:Z,kq:V,Tm:m,MU:b,Zv:W})}; g.f.eN=function(){this.listeners.length=0;this.BG=null;g.p.prototype.eN.call(this)};g.S(Gp,g.p);g.f=Gp.prototype;g.f.Ec=function(){var O=this;cC(this.wd.get())||(this.L=oo(function(){O.X.jN()||O.X.nA("ad",1)}))}; g.f.Ua=function(){}; g.f.addListener=function(O){this.listeners.push(O)}; g.f.removeListener=function(O){this.listeners=this.listeners.filter(function(R){return R!==O})}; g.f.H$=function(){}; g.f.playVideo=function(){this.X.playVideo()}; g.f.pauseVideo=function(){this.X.pauseVideo()}; g.f.resumeVideo=function(O){this.gh(O)&&this.X.playVideo()}; g.f.gh=function(O){return this.X.getPlayerState(O)===2}; g.f.getCurrentTimeSec=function(O,R,J){var l=this.rd.get().Jq;if(O===2&&!R&&l!==null)return CtA(this,l);n2(this.wd.get(),"html5_ssap_use_cpn_to_get_time")||(J=void 0);return J!==void 0?this.X.getCurrentTime(O,R,J):this.X.getCurrentTime(O,R)}; g.f.getVolume=function(){return this.X.getVolume()}; g.f.isMuted=function(){return this.X.isMuted()}; g.f.getPresentingPlayerType=function(){return this.X.getPresentingPlayerType(!0)}; g.f.getPlayerState=function(O){return this.X.getPlayerState(O)}; g.f.isFullscreen=function(){return this.X.isFullscreen()}; g.f.isAtLiveHead=function(){return this.X.isAtLiveHead()}; g.f.HA=function(O){this.X.HA(O)}; g.f.pYq=function(){var O=this.X.getPresentingPlayerType(!0),R=this.getCurrentTimeSec(O,!1);if(O===2){O=g.N(this.listeners);for(var J=O.next();!J.done;J=O.next())J.value.EV(R)}else if(O===1)for(O=g.N(this.Zn),J=O.next();!J.done;J=O.next())J.value.H$(R)}; g.f.s2Q=function(O){for(var R=g.N(this.listeners),J=R.next();!J.done;J=R.next())J.value.Jl(O,this.getPresentingPlayerType())}; g.f.onFullscreenToggled=function(O){for(var R=g.N(this.listeners),J=R.next();!J.done;J=R.next())J.value.onFullscreenToggled(O)}; g.f.onVolumeChange=function(){for(var O=g.N(this.listeners),R=O.next();!R.done;R=O.next())R.value.onVolumeChange()}; g.f.jQ=function(){for(var O=this.X.isMinimized(),R=g.N(this.listeners),J=R.next();!J.done;J=R.next())J.value.jQ(O)}; g.f.GW=function(O){for(var R=g.N(this.listeners),J=R.next();!J.done;J=R.next())J.value.GW(O)}; g.f.tT=function(){for(var O=this.X.cq().OV(),R=g.N(this.listeners),J=R.next();!J.done;J=R.next())J.value.R1(O)}; g.f.Jx=function(O){for(var R=g.N(this.listeners),J=R.next();!J.done;J=R.next())J.value.Jx(O)}; g.f.kM=function(){for(var O=g.N(this.listeners),R=O.next();!R.done;R=O.next())R.value.kM()};g.S(Z0_,g.p);g.S(Cl,g.p);Cl.prototype.eN=function(){this.FJ.jN()||this.FJ.get().removeListener(this);g.p.prototype.eN.call(this)};rW.prototype.fetch=function(O){var R=O.eY;return this.L.fetch(O.Ll,{Ar:O.Ar===void 0?void 0:O.Ar,pZ:R,cueProcessedMs:O.cueProcessedMs===void 0?0:O.cueProcessedMs}).then(function(J){return V$A(J,R)})};g.S(tp,g.p);g.f=tp.prototype;g.f.addListener=function(O){this.listeners.push(O)}; g.f.removeListener=function(O){this.listeners=this.listeners.filter(function(R){return R!==O})}; g.f.Y0=function(O){f52(this,O,1)}; g.f.onAdUxClicked=function(O,R){on(this,function(J){J.ez(O,R)})}; g.f.LT=function(O){on(this,function(R){R.JU(O)})}; g.f.R9=function(O){on(this,function(R){R.dP(O)})}; g.f.Qzg=function(O){on(this,function(R){R.QC(O)})};Zm.prototype.reduce=function(O){switch(O.event){case "unknown":return}var R=O.identifier;var J=this.L[R];J?R=J:(J={UA:null,A0:-Infinity},R=this.L[R]=J);J=O.startSecs+O.L/1E3;if(!(J=this.L.startSecs&&J.startSecs<=this.L.startSecs+this.L.d2;if(l){l=void 0;if($L(this.wd.get())&&J.identifier!==((l=this.L)==null?void 0:l.identifier)){var u=l=void 0,F=void 0,G=void 0;GJ(this.yh.get(),"ocud","ccpi."+J.identifier+";ccpe."+J.event+";ccps."+J.startSecs+";\n ccpd."+J.d2+";pcpi."+((l=this.L)==null?void 0: l.identifier)+";pcpe."+((u=this.L)==null?void 0:u.event)+";\n pcps."+((F=this.L)==null?void 0:F.startSecs)+";pcpd."+((G=this.L)==null?void 0:G.d2)+";")}l=void 0;J.identifier!==((l=this.L)==null?void 0:l.identifier)&&rK("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.L=J,EJL(this,J)}}}; g.f.eN=function(){this.S!=null&&(this.S.unsubscribe("cuepointupdated",this.eS,this),this.S=null);this.listeners.length=0;this.N.length=0;g.p.prototype.eN.call(this)};g.f=Sn.prototype;g.f.bU=function(O,R,J,l,u,F,G){return this.X.bU(O,R,J,l,u,F,G)}; g.f.zT=function(O,R){this.X.zT(O,R)}; g.f.Gi=function(O,R,J){this.X.Gi(O,R,J)}; g.f.KH=function(O){this.X.KH(O)}; g.f.Kr=function(O,R,J,l,u,F,G){return this.X.Kr(O,R,J,l,u,F,G)}; g.f.Cx=function(O){return this.X.Cx(O)}; g.f.finishSegmentByCpn=function(O,R,J){J=vJs(J);this.X.finishSegmentByCpn(O,R,J)};g.S(Ng,g.p);g.S(T0T,g.p);g.S($Ss,g.p);g.S(M$B,g.p);g.S(qbs,g.p);g.S(k7h,g.p);g.S(b02,g.p);b02.prototype.B=function(){return this.S};g.S(WUB,Q8); WUB.prototype.N=function(O){var R=O.content;if(R.componentType==="shopping-companion")switch(O.actionType){case 1:case 2:O=this.L.getVideoData(1);this.L.tR("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId,shoppingCompanionCarouselRenderer:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.L,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:this.L.tR("updateKevlarOrC3Companion",{})}else if(R.componentType==="action-companion")switch(O.actionType){case 1:case 2:O=this.L.getVideoData(1); this.L.tR("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId,actionCompanionAdRenderer:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.L,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R.renderer&&(R=this.L.getVideoData(1),this.L.tR("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId})),this.L.tR("updateKevlarOrC3Companion",{})}else if(R.componentType==="image-companion")switch(O.actionType){case 1:case 2:O=this.L.getVideoData(1);this.L.tR("updateKevlarOrC3Companion", {contentVideoId:O&&O.videoId,imageCompanionAdRenderer:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.L,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R=this.L.getVideoData(1),this.L.tR("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId}),this.L.tR("updateKevlarOrC3Companion",{})}else if(R.componentType==="top-banner-image-text-icon-buttoned")switch(O.actionType){case 1:case 2:O=this.L.getVideoData(1);this.L.tR("updateKevlarOrC3Companion", {contentVideoId:O&&O.videoId,topBannerImageTextIconButtonedLayoutViewModel:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.L,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R.renderer&&(R=this.L.getVideoData(1),this.L.tR("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId})),this.L.tR("updateKevlarOrC3Companion",{})}else if(R.componentType==="banner-image")switch(O.actionType){case 1:case 2:O=this.L.getVideoData(1);this.L.tR("updateKevlarOrC3Companion", {contentVideoId:O&&O.videoId,bannerImageLayoutViewModel:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.L,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R=this.L.getVideoData(1),this.L.tR("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId}),this.L.tR("updateKevlarOrC3Companion",{})}else if(R.componentType==="ads-engagement-panel")switch(R=R.renderer,O.actionType){case 1:case 2:this.L.tR("updateEngagementPanelAction",R.addAction);this.L.tR("changeEngagementPanelVisibility", R.expandAction);break;case 3:this.L.tR("changeEngagementPanelVisibility",R.hideAction),this.L.tR("updateEngagementPanelAction",R.removeAction)}else if(R.componentType==="ads-engagement-panel-layout"){var J=R.renderer;switch(O.actionType){case 1:case 2:this.L.tR("updateEngagementPanelAction",{action:BM(J.addAction),layoutId:R.layoutId,onLayoutVisibleCallback:R.L,interactionLoggingClientData:R.interactionLoggingClientData});this.L.tR("changeEngagementPanelVisibility",BM(J.expandAction));break;case 3:this.L.tR("changeEngagementPanelVisibility", BM(J.hideAction)),this.L.tR("updateEngagementPanelAction",{action:BM(J.removeAction)})}}};g.S(A52,RH);g.f=A52.prototype;g.f.init=function(O,R,J){RH.prototype.init.call(this,O,R,J);g.pS(this.B,"stroke-dasharray","0 "+this.S);this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.j.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.N.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.f.clear=function(){this.hide()}; g.f.hide=function(){gK(this);RH.prototype.hide.call(this)}; g.f.show=function(){JT(this);RH.prototype.show.call(this)}; g.f.l8=function(){this.hide()}; g.f.VV=function(){if(this.L){var O=this.L.getProgressState();O!=null&&O.current!=null&&g.pS(this.B,"stroke-dasharray",O.current/O.seekableEnd*this.S+" "+this.S)}};g.S(ecA,oh);g.f=ecA.prototype; g.f.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);if(R.image&&R.image.thumbnail)if(R.headline)if(R.description)if(R.backgroundImage&&R.backgroundImage.thumbnail)if(R.actionButton&&g.x(R.actionButton,g.HO))if(O=R.durationMilliseconds||0,typeof O!=="number"||O<=0)g.WM(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+O));else if(R.navigationEndpoint){var l=this.api.getVideoData(2);if(l!=null){var u=R.image.thumbnail.thumbnails;u!=null&& u.length>0&&g.oW(g.Vr(u[0].url))&&(u[0].url=l.profilePicture,g.oW(g.Vr(l.profilePicture))&&NVf("VideoPlayer",239976093,"Expected non-empty profile picture."));u=R.backgroundImage.thumbnail.thumbnails;u!=null&&u.length>0&&g.oW(g.Vr(u[0].url))&&(u[0].url=l.h1());u=R.headline;u!=null&&g.oW(g.Vr(u.text))&&(u.text=l.author)}this.W.init(GI("ad-image"),R.image,J);this.j.init(GI("ad-text"),R.headline,J);this.B.init(GI("ad-text"),R.description,J);this.JR.init(GI("ad-image"),R.backgroundImage,J);l=["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.j.element.classList.add("ytp-ad-action-interstitial-headline-light");this.B.element.classList.add("ytp-ad-action-interstitial-description-light");l.push("ytp-ad-action-interstitial-action-button-dark");this.api.T().S&&(l.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),l.push("ytp-ad-action-interstitial-action-button-dark"));this.api.T().Z("enable_unified_action_endcap_on_web")&& !this.api.T().S&&(l.push("ytp-ad-action-interstitial-action-button-unified"),this.Td.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.KJ.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.KY.classList.add("ytp-ad-action-interstitial-card-unified"),this.Hq.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.N1.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Qh.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Iu.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,l);g.H(this,this.actionButton);this.actionButton.hR(this.Td); this.actionButton.init(GI("button"),g.x(R.actionButton,g.HO),J);Ug(this.actionButton.element);l=LP(this.actionButton.element);Qf(this.actionButton.element,l+" This link opens in new tab");this.navigationEndpoint=R.navigationEndpoint;this.N.U(this.Qh,"click",this.J_,this);this.N.U(this.Hq,"click",this.J_,this);!this.api.T().Z("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.T().S||this.N.U(this.N1,"click",this.J_,this);this.L=this.h5?new D_(this.api,O):new aH(O);g.H(this,this.L);if(R.skipButton){(O= g.x(R.skipButton,W2C))&&this.L&&(this.skipButton=new VS(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.L,this.hS),g.H(this,this.skipButton),this.skipButton.hR(this.element),this.skipButton.init(GI("skip-button"),O,J));if(J=R.adBadgeRenderer)if(J=g.x(J,bzt))O=new m6(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,!0,!0),O.hR(this.Iu),O.init(GI("simple-ad-badge"),J,this.macros),g.H(this,O);if(J=R.adInfoRenderer)if(J=g.x(J,pw))O=new ne(this.api,this.layoutId,this.interactionLoggingClientData, this.zd,this.element,void 0,!0),O.hR(this.Iu),O.init(GI("ad-info-hover-text-button"),J,this.macros),g.H(this,O)}else R.nonskippableOverlayRenderer&&(O=g.x(R.nonskippableOverlayRenderer,BO))&&this.L&&(this.S=new uz(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.L,!1),g.H(this,this.S),this.S.hR(this.element),this.S.init(GI("ad-preview"),O,J));R.countdownRenderer&&(R=R.countdownRenderer,g.x(R,Ax6)&&this.L&&(J=new A52(this.api,this.layoutId,this.interactionLoggingClientData,this.zd, this.L),g.H(this,J),J.hR(this.element),J.init(GI("timed-pie-countdown"),g.x(R,Ax6),this.macros)));this.show();this.element.focus()}else g.WM(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.WM(Error("AdActionInterstitialRenderer has no button."));else g.WM(Error("AdActionInterstitialRenderer has no background AdImage."));else g.WM(Error("AdActionInterstitialRenderer has no description AdText."));else g.WM(Error("AdActionInterstitialRenderer has no headline AdText."));else g.WM(Error("AdActionInterstitialRenderer has no image."))}; g.f.clear=function(){g.MN(this.N);this.hide()}; g.f.show=function(){PtH(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.S&&this.S.show();oh.prototype.show.call(this)}; g.f.hide=function(){PtH(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.S&&this.S.hide();oh.prototype.hide.call(this)}; g.f.J_=function(){this.navigationEndpoint&&(this.layoutId?this.zd.executeCommand(this.navigationEndpoint,this.layoutId):g.WM(Error("Missing layoutId for ad action interstitial.")))};var USp={iconType:"CLOSE"},an=new g.so(320,63);g.S(xST,oh);g.f=xST.prototype; g.f.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);this.N=R;this.W=g.m4(this.N.onClickCommands||[]);this.Iu=this.N.onErrorCommand||null;if(O=this.N.contentSupportedRenderer)O=this.N.contentSupportedRenderer,R=this.N.adInfoRenderer||null,g.x(O,q5o)?(this.j=g.LI("ytp-ad-overlay-ad-info-button-container",this.B.element),j02(this,R),O=LUh(this,g.x(O,q5o))):g.x(O,kMI)?(this.j=g.LI("ytp-ad-overlay-ad-info-button-container",this.S.element),j02(this,R),O=YbW(this,g.x(O,kMI))):g.x(O,sW_)?(this.j= g.LI("ytp-ad-overlay-ad-info-button-container",this.L.element),j02(this,R),O=dSx(this,g.x(O,sW_))):(g.WM(Error("InvideoOverlayAdRenderer content could not be initialized.")),O=!1);O&&(this.show(),hcz(this,!0))}; g.f.clear=function(){hcz(this,!1);this.Qh.reset();this.Hq=0;this.B.hide();this.logVisibility(this.B.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.f.geQ=function(){this.Td&&(this.layoutId?this.zd.executeCommand(this.Td,this.layoutId):g.WM(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.f.TC=function(){a:{if(this.N&&this.N.closeButton&&this.N.closeButton.buttonRenderer){var O=this.N.closeButton.buttonRenderer;if(O.serviceEndpoint){O=[O.serviceEndpoint];break a}}O=[]}O=g.N(O);for(var R=O.next();!R.done;R=O.next())R=R.value,this.layoutId?this.zd.executeCommand(R,this.layoutId):g.WM(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.f.YfR=function(){this.JR||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.f.ZC=function(){this.JR||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.ZC("invideo-overlay")}; g.f.qfX=function(O){O.target===this.j&&g.LI("ytp-ad-button",this.KJ.element).click()};g.S(zcL,RH);g.f=zcL.prototype;g.f.init=function(O,R,J){RH.prototype.init.call(this,O,R,J);O=R.durationMs;this.B=O==null||O===0?0:O+this.L.getProgressState().current*1E3;if(R.text)var l=R.text.templatedAdText;else R.staticMessage&&(l=R.staticMessage);this.messageText.init(GI("ad-text"),l,J);this.messageText.hR(this.S.element);this.N.show(100);this.show()}; g.f.clear=function(){this.hide()}; g.f.hide=function(){nJs(this,!1);RH.prototype.hide.call(this);this.S.hide();this.messageText.hide();gK(this)}; g.f.show=function(){nJs(this,!0);RH.prototype.show.call(this);JT(this);this.S.show();this.messageText.show()}; g.f.l8=function(){this.hide()}; g.f.VV=function(){if(this.L!=null){var O=this.L.getProgressState();O!=null&&O.current!=null&&(O=1E3*O.current,!this.Hq&&O>=this.B?(this.N.hide(),this.Hq=!0):this.messageText&&this.messageText.isTemplated()&&(O=Math.max(0,Math.ceil((this.B-O)/1E3)),O!==this.j&&(Or(this.messageText,{TIME_REMAINING:String(O)}),this.j=O)))}};g.S(c5B,oh);g.f=c5B.prototype; g.f.init=function(O,R,J){oh.prototype.init.call(this,O,R,{});R.image&&R.image.thumbnail?R.headline?R.description?R.actionButton&&g.x(R.actionButton,g.HO)?(this.B.init(GI("ad-image"),R.image,J),this.S.init(GI("ad-text"),R.headline,J),this.N.init(GI("ad-text"),R.description,J),O=["ytp-ad-underlay-action-button"],this.api.T().Z("use_blue_buttons_for_desktop_player_underlay")&&O.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.zd, O),R.backgroundColor&&g.pS(this.element,"background-color",g.HI(R.backgroundColor)),g.H(this,this.actionButton),this.actionButton.hR(this.j),this.actionButton.init(GI("button"),g.x(R.actionButton,g.HO),J),R=g.tB(this.api.T().experiments,"player_underlay_video_width_fraction"),this.api.T().Z("place_shrunken_video_on_left_of_player")?(J=this.L,g.KM(J,"ytp-ad-underlay-left-container"),g.F8(J,"ytp-ad-underlay-right-container"),g.pS(this.L,"margin-left",Math.round((R+.02)*100)+"%")):(J=this.L,g.KM(J,"ytp-ad-underlay-right-container"), g.F8(J,"ytp-ad-underlay-left-container")),g.pS(this.L,"width",Math.round((1-R-.04)*100)+"%"),this.api.Rx()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.o5.bind(this)),this.api.addEventListener("resize",this.Mn.bind(this))):g.WM(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.WM(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.WM(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.WM(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.f.show=function(){Ox_(!0);this.actionButton&&this.actionButton.show();oh.prototype.show.call(this)}; g.f.hide=function(){Ox_(!1);this.actionButton&&this.actionButton.hide();oh.prototype.hide.call(this)}; g.f.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.o5.bind(this));this.api.removeEventListener("resize",this.Mn.bind(this));this.hide()}; g.f.onClick=function(O){oh.prototype.onClick.call(this,O);this.actionButton&&g.lu(this.actionButton.element,O.target)&&this.api.pauseVideo()}; g.f.o5=function(O){O==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):O==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):O==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))}; g.f.Mn=function(O){O.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):O.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.pS(this.S.element,"font-size",O.width/40+"px")};g.S(vj,oh); vj.prototype.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);R.toggledLoggingParams&&(this.toggledLoggingParams=R.toggledLoggingParams);R.answer&&g.x(R.answer,g.HO)?(O=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),O.hR(this.answer),O.init(GI("ytp-ad-survey-answer-button"),g.x(R.answer,g.HO),J),O.show()):R.answer&&g.x(R.answer,mg)&&(this.L=new Uk(this.api,this.layoutId,this.interactionLoggingClientData,this.zd, ["ytp-ad-survey-answer-toggle-button"]),this.L.hR(this.answer),g.H(this,this.L),this.L.init(GI("survey-answer-button"),g.x(R.answer,mg),J));this.show()}; vj.prototype.Kt=function(O){this.layoutId?dU(this.zd,O,this.layoutId,this.macros):(O=new g.Ys("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.WM(O))}; vj.prototype.onClick=function(O){oh.prototype.onClick.call(this,O);if(this.api.T().Z("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; vj.prototype.clear=function(){this.hide()};g.S(RLt,oh);RLt.prototype.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);R.answer&&g.x(R.answer,mg)&&(this.button=new Uk(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.hR(this.L),this.button.init(GI("survey-none-of-the-above-button"),g.x(R.answer,mg),J));this.show()};g.S(X0,bW);X0.prototype.init=function(O,R,J){bW.prototype.init.call(this,O,R,J);O=!1;R.text&&(R=g.V8(R.text),O=!g.oW(R));O||g.Aa(Error("No submit text was present in the renderer."))}; X0.prototype.onClick=function(O){this.publish("l");bW.prototype.onClick.call(this,O)};g.S(Tp,oh); Tp.prototype.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);if(O=R.skipOrPreviewRenderer)g.x(O,Ia)?(O=g.x(O,Ia),J=new Sg(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.N,!0),J.hR(this.skipOrPreview),J.init(GI("skip-button"),O,this.macros),g.H(this,J),this.L=J):g.x(O,BO)&&(O=g.x(O,BO),J=new uz(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.N,!1),J.hR(this.skipOrPreview),J.init(GI("ad-preview"),O,this.macros),J.Hq.show(100),J.show(),g.H(this,J), this.L=J);this.L==null&&(O=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(R)),g.WM(O));R.submitButton&&(O=R.submitButton,g.x(O,g.HO)&&(O=g.x(O,g.HO),J=new X0(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),J.hR(this.submitButton),J.init(GI("survey-submit"),O,this.macros),g.H(this,J),this.S=J));if(O=R.adBadgeRenderer)O=g.x(O,bzt),J=new m6(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,!0,!0,!0),J.hR(this.B),J.init(GI("simple-ad-badge"), O,this.macros),this.adBadge=J.element,g.H(this,J);if(O=R.adDurationRemaining)O=g.x(O,TYV),J=new Tk(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.N,void 0,!0),J.hR(this.B),J.init(GI("ad-duration-remaining"),O,this.macros),g.H(this,J);(R=R.adInfoRenderer)&&g.x(R,pw)&&(O=new ne(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.element,void 0,!0),g.H(this,O),this.adBadge!==void 0?this.B.insertBefore(O.element,this.adBadge.nextSibling):O.hR(this.B),O.init(GI("ad-info-hover-text-button"), g.x(R,pw),this.macros));this.show()}; Tp.prototype.clear=function(){this.hide()};g.S($4,oh);$4.prototype.init=function(O,R,J){oh.prototype.init.call(this,O,R,J);upM(this)}; $4.prototype.show=function(){this.B=Date.now();oh.prototype.show.call(this)}; $4.prototype.Ys=function(){};g.S(FHC,$4);g.f=FHC.prototype;g.f.init=function(O,R,J){var l=this;$4.prototype.init.call(this,O,R,J);R.questionText&&Js6(this,R.questionText);R.answers&&R.answers.forEach(function(u,F){g.x(u,Ss)&&gWt(l,g.x(u,Ss),J,F)}); this.j=new Set(this.S.map(function(u){return u.L.L})); (O=R.noneOfTheAbove)&&(O=g.x(O,ML_))&&Gzk(this,O,J);R.surveyAdQuestionCommon&&lfM(this,R.surveyAdQuestionCommon);R.submitEndpoints&&(this.submitEndpoints=R.submitEndpoints);this.U(this.element,"change",this.onChange);this.show()}; g.f.Ys=function(){KH4(this,!1);this.N.S.subscribe("l",this.LlS,this)}; g.f.onChange=function(O){O.target===this.noneOfTheAbove.button.L?ysQ(this):this.j.has(O.target)&&(this.noneOfTheAbove.button.toggleButton(!1),KH4(this,!0))}; g.f.LlS=function(){var O=[],R=this.S.reduce(function(u,F,G){var y=F.toggledLoggingParams;F.L&&F.L.isToggled()&&y&&(u.push(y),O.push(G));return u},[]).join("&"),J=this.submitEndpoints.map(function(u){if(!u.loggingUrls)return u; u=g.Jx(u);u.loggingUrls=u.loggingUrls.map(function(F){F.baseUrl&&(F.baseUrl=bu(F.baseUrl,R));return F}); return u}); if(J){J=g.N(J);for(var l=J.next();!l.done;l=J.next())l=l.value,this.layoutId?dU(this.zd,l,this.layoutId,this.macros):g.WM(Error("Missing layoutId for multi_select_question."))}this.api.T().Z("supports_multi_step_on_desktop")&&this.Hq(O)}; g.f.clear=function(){this.api.T().Z("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.S(Mg,$4);Mg.prototype.init=function(O,R,J){var l=this;$4.prototype.init.call(this,O,R,J);R.questionText&&Js6(this,R.questionText);R.answers&&R.answers.forEach(function(u,F){g.x(u,Ss)&&gWt(l,g.x(u,Ss),J,F)}); R.surveyAdQuestionCommon?lfM(this,R.surveyAdQuestionCommon):Kg(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(R)));this.show()}; Mg.prototype.clear=function(){this.api.T().Z("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.S(qg,oh);qg.prototype.init=function(O,R,J){var l=this;oh.prototype.init.call(this,O,R,J);if(this.api.T().Z("supports_multi_step_on_desktop")){var u;this.conditioningRules=(u=R.conditioningRules)!=null?u:[];var F;this.S=(F=R.questions)!=null?F:[];var G;((G=R.questions)==null?0:G.length)&&rsC(this,0)}else(R.questions||[]).forEach(function(y){g.x(y,e7)?If6(l,g.x(y,e7),J):g.x(y,AG)&&C2o(l,g.x(y,AG),J)}); this.show()}; qg.prototype.clear=function(){this.api.T().Z("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; qg.prototype.N=function(O){var R=this;if(this.api.T().Z("supports_multi_step_on_desktop")){var J;if((J=this.conditioningRules)==null?0:J.length){var l;if(O.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(u){return u.questionIndex===R.L})==null)g.WM(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(u){if(u.questionIndex===R.L)switch(u.condition){case "CONDITION_ALL_OF":var F;if((F=u.answerIndices)==null?0:F.every(function(y){return O.includes(y)}))l=u.nextQuestionIndex; break;case "CONDITION_ANY_OF":var G;if((G=u.answerIndices)==null?0:G.some(function(y){return O.includes(y)}))l=u.nextQuestionIndex; break;default:g.WM(Error("Expected specified condition in survey conditioning rules."))}}),l!=null)rsC(this,l); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.WM(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.S(k4,oh); k4.prototype.init=function(O,R,J){var l=this;oh.prototype.init.call(this,O,R,J);O=R.timeoutSeconds||0;if(typeof O!=="number"||O<0)g.WM(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+O));else if(R.timeoutCommands)if(R.text)if(R.ctaButton&&g.x(R.ctaButton,g.HO))if(R.brandImage)if(R.backgroundImage&&g.x(R.backgroundImage,xr)&&g.x(R.backgroundImage,xr).landscape){this.layoutId||g.WM(Error("Missing layoutId for survey interstitial."));tTC(this.interstitial,g.x(R.backgroundImage, xr).landscape);tTC(this.logoImage,R.brandImage);g.uu(this.text,g.V8(R.text));var u=["ytp-ad-survey-interstitial-action-button"];u.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new bW(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,u);g.H(this,this.actionButton);this.actionButton.hR(this.S);this.actionButton.init(GI("button"),g.x(R.ctaButton,g.HO),J);this.actionButton.show();this.L=new D_(this.api,O*1E3);this.L.subscribe("g",function(){l.transition.hide()}); g.H(this,this.L);this.U(this.element,"click",function(F){var G=F.target===l.interstitial;F=l.actionButton.element.contains(F.target);if(G||F)if(l.transition.hide(),G)l.api.onAdUxClicked(l.componentType,l.layoutId)}); this.transition.show(100)}else g.WM(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.WM(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.WM(Error("SurveyTextInterstitialRenderer has no button."));else g.WM(Error("SurveyTextInterstitialRenderer has no text."));else g.WM(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; k4.prototype.clear=function(){this.hide()}; k4.prototype.show=function(){oWM(!0);oh.prototype.show.call(this)}; k4.prototype.hide=function(){oWM(!1);oh.prototype.hide.call(this)};g.S(sT,RH);g.f=sT.prototype; g.f.init=function(O,R){RH.prototype.init.call(this,O,R,{});if(R.durationMilliseconds){if(R.durationMilliseconds<0){g.WM(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+R.durationMilliseconds));return}this.S=R.durationMilliseconds}else this.S=this.L.Aa();var J;if((J=R.previewText)==null||!J.text||g.oW(R.previewText.text))g.WM(Error("No text is returned for AdPreview."));else{this.j=R.previewText;R.previewText.isTemplated||g.uu(this.B,R.previewText.text);var l; if(((l=this.api.getVideoData(1))==null?0:l.fL)&&R.previewImage){var u,F;(O=((F=Tl(((u=R.previewImage)==null?void 0:u.sources)||[],52,!1))==null?void 0:F.url)||"")&&O.length?(this.previewImage=new g.tQ({Y:"img",G:"ytp-preview-ad__image",C:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",O),g.H(this,this.previewImage),this.previewImage.hR(this.element)):g.WM(Error("Failed to get imageUrl in AdPreview."))}else this.B.classList.add("ytp-preview-ad__text--padding--wide")}}; g.f.clear=function(){this.hide()}; g.f.hide=function(){gK(this);RH.prototype.hide.call(this)}; g.f.show=function(){JT(this);RH.prototype.show.call(this)}; g.f.l8=function(){this.hide()}; g.f.VV=function(){if(this.L){var O=this.L.getProgressState();if(O!=null&&O.current)if(O=1E3*O.current,O>=this.S)this.transition.hide();else{var R;if((R=this.j)==null?0:R.isTemplated)if(R=Math.max(0,Math.ceil((this.S-O)/1E3)),R!==this.N){var J,l;(O=(J=this.j)==null?void 0:(l=J.text)==null?void 0:l.replace("{TIME_REMAINING}",String(R)))&&g.uu(this.B,O);this.N=R}}}};g.S(bj,oh); bj.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});var J,l;if((O=((l=Tl(((J=R.image)==null?void 0:J.sources)||[],Zx6(R),!0))==null?void 0:l.url)||"")&&O.length){J=this.Bq("ytp-ad-avatar");J.src=O;var u,F;if(l=(u=R.interaction)==null?void 0:(F=u.accessibility)==null?void 0:F.label)J.alt=l;switch(R.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(R.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.WM(Error("Failed to get imageUrl in AdAvatar."))}; bj.prototype.clear=function(){this.hide()}; bj.prototype.onClick=function(O){oh.prototype.onClick.call(this,O)};g.S(Wj,oh); Wj.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});var J;O=(J=R.label)==null?void 0:J.content;if((J=O!=null&&!g.oW(O))||R.iconImage){J&&(this.buttonText=new g.tQ({Y:"span",G:"ytp-ad-button-vm__text",FQ:O}),g.H(this,this.buttonText),this.buttonText.hR(this.element));var l,u,F=((l=R.interaction)==null?0:(u=l.accessibility)==null?0:u.label)||J?O:"";F&&Qf(this.element,F+" This link opens in new tab");Ug(this.element);if(R.iconImage){l=void 0;if(R.iconImage){a:{u=R.iconImage;if(u.sources)for(u= g.N(u.sources),O=u.next();!O.done;O=u.next())if(O=O.value,F=void 0,(F=O.clientResource)==null?0:F.imageName){u=O;break a}u=void 0}if(u){var G;l={iconType:(G=u.clientResource)==null?void 0:G.imageName}}}G=sk(l,!1,this.S);G!=null&&(this.buttonIcon=new g.tQ({Y:"span",G:"ytp-ad-button-vm__icon",K:[G]}),g.H(this,this.buttonIcon),R.iconLeading?(gv(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):J?(this.buttonIcon.hR(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.hR(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(R.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.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(R.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.Aa(Error("AdButton does not have label or an icon."))}; Wj.prototype.clear=function(){this.hide()}; Wj.prototype.onClick=function(O){oh.prototype.onClick.call(this,O)};g.S(VTb,RH);g.f=VTb.prototype; g.f.init=function(O,R){RH.prototype.init.call(this,O,R,{});this.api.T().Z("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Bq("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),gv(this.Bq("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(O=g.x(R.avatar,jn)){var J=R.headline;if(J){var l=R.description;if(l){var u=g.x(R.button,Ll);u?(this.adAvatar.init(GI("ad-avatar"),O),this.headline.init(GI("ad-simple-attributed-string"),new Mt(J)),this.description.init(GI("ad-simple-attributed-string"),new Mt(l)),J.content&&J.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(GI("ad-button"),u),this.startMilliseconds=R.startMs||0,this.api.Rx()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.IZ.bind(this)),JT(this)):g.WM(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.WM(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.WM(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.WM(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.f.VV=function(){if(this.L){var O=this.L.getProgressState();O&&O.current&&1E3*O.current>=this.startMilliseconds&&(gK(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.f.l8=function(){this.clear()}; g.f.onClick=function(O){this.api.pauseVideo();RH.prototype.onClick.call(this,O)}; g.f.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.IZ.bind(this))}; g.f.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();RH.prototype.show.call(this)}; g.f.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();RH.prototype.hide.call(this)}; g.f.IZ=function(O){O==="hidden"?this.show():this.hide()};g.S(Ap,oh);g.f=Ap.prototype; g.f.init=function(O,R){oh.prototype.init.call(this,O,R,{});if(!R.label||g.oW(R.label))g.WM(Error("No label is returned for SkipAdButton."));else if(g.uu(this.N,R.label),O=sk({iconType:"SKIP_NEXT_NEW"}),O==null)g.WM(Error("Unable to retrieve icon for SkipAdButton"));else if(this.B=new g.tQ({Y:"span",G:"ytp-skip-ad-button__icon",K:[O]}),g.H(this,this.B),this.B.hR(this.element),this.api.T().experiments.Vh("enable_skip_to_next_messaging")&&(R=g.Vr(R.targetId)))this.S=!0,this.element.setAttribute("data-tooltip-target-id",R), this.element.setAttribute("data-tooltip-target-fixed","")}; g.f.onClick=function(O){O&&O.preventDefault();var R,J;Y4s(O,{contentCpn:(J=(R=this.api.getVideoData(1))==null?void 0:R.clientPlaybackNonce)!=null?J:""})===0?this.api.tR("onAbnormalityDetected"):(oh.prototype.onClick.call(this,O),this.api.tR("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.f.clear=function(){this.L.reset();this.hide()}; g.f.hide=function(){oh.prototype.hide.call(this)}; g.f.show=function(){this.L.start();oh.prototype.show.call(this);this.S&&this.api.T().experiments.Vh("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.S(ff6,RH);g.f=ff6.prototype; g.f.init=function(O,R){RH.prototype.init.call(this,O,R,{});O=g.x(R.preskipState,Unk);var J;if((J=this.api.getVideoData())==null?0:J.isDaiEnabled()){if(!O){g.WM(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.S=new sT(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.L);g.H(this,this.S);this.S.hR(this.element);var l;(l=this.S)==null||l.init(GI("preview-ad"),O);(J=this.S)!=null&&(J.transition.show(100),J.show())}(J=g.x(R.skippableState,QWI))?(R.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=R.skipOffsetMilliseconds:(g.Aa(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(GI("skip-button"),J),this.show()):g.WM(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.f.show=function(){JT(this);RH.prototype.show.call(this)}; g.f.hide=function(){!this.isSkippable&&this.S?this.S.hide():this.B&&this.B.hide();gK(this);RH.prototype.hide.call(this)}; g.f.clear=function(){var O;(O=this.S)==null||O.clear();this.B&&this.B.clear();gK(this);RH.prototype.hide.call(this)}; g.f.l8=function(){this.hide()}; g.f.VV=function(){if(1E3*this.L.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var O;(O=this.S)!=null&&O.transition.hide();(O=this.B)!=null&&(O.transition.show(),O.show())}};g.S(en,oh); en.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});if(R.label){var J;((J=R.label)==null?0:J.content)&&!g.oW(R.label.content)&&(this.linkText=new g.tQ({Y:"span",G:"ytp-visit-advertiser-link__text",FQ:R.label.content}),g.H(this,this.linkText),this.linkText.hR(this.element));var l,u;if((l=R.interaction)==null?0:(u=l.accessibility)==null?0:u.label)Qf(this.element,R.interaction.accessibility.label+" This link opens in new tab");else{var F;((F=R.label)==null?0:F.content)&&!g.oW(R.label.content)&&Qf(this.element, R.label.content+" This link opens in new tab")}Ug(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.WM(Error("No label found in VisitAdvertiserLink."))}; en.prototype.onClick=function(O){oh.prototype.onClick.call(this,O);this.api.onAdUxClicked(this.componentType,this.layoutId)}; en.prototype.clear=function(){this.hide()};g.S(Pj,oh); Pj.prototype.init=function(O,R,J,l){oh.prototype.init.call(this,O,R,{});if(R.skipOrPreview){J=R.skipOrPreview;O=g.x(J,L2I);J=g.x(J,Unk);if(O)this.Yh=new ff6(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.S),g.H(this,this.Yh),this.Yh.hR(this.W),this.Yh.init(GI("skip-ad"),O);else{var u;J&&((u=this.api.getVideoData())==null?0:u.isDaiEnabled())&&(this.N=new sT(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.S,1),g.H(this,this.N),this.N.hR(this.W),this.N.init(GI("ad-preview"), J),u=this.N,u.transition.show(100),u.show())}if(u=g.x(R.skipOrPreview,L2I))var F=u.skipOffsetMilliseconds}R.playerAdCard&&(u=g.x(R.playerAdCard,jW4))&&(this.playerAdCard=new VTb(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.S),g.H(this,this.playerAdCard),this.playerAdCard.hR(this.N1),this.playerAdCard.init(GI("ad-avatar-lockup-card"),u));R.adBadgeRenderer&&((u=g.x(R.adBadgeRenderer,QB))?(this.B=new k0(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,!0),g.H(this, this.B),this.B.hR(this.L),this.B.init(GI("ad-badge"),u)):g.WM(Error("AdBadgeViewModel is not found in player overlay layout.")));R.adPodIndex&&(u=g.x(R.adPodIndex,pls))&&(this.adPodIndex=new sr(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,this.adPodIndex),this.adPodIndex.hR(this.L),this.adPodIndex.init(GI("ad-pod-index"),u));R.adInfoRenderer&&((u=g.x(R.adInfoRenderer,pw))?(this.adInfoButton=new ne(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.element, void 0,!0),g.H(this,this.adInfoButton),this.B!==void 0?this.L.insertBefore(this.adInfoButton.element,this.B.element.nextSibling):this.adInfoButton.hR(this.L),this.adInfoButton.init(GI("ad-info-hover-text-button"),u,this.macros)):g.Aa(Error("AdInfoRenderer is not found in player overlay layout.")));var G;u=(G=this.api.getVideoData())==null?void 0:G.isDaiEnabled();R.adDurationRemaining&&u&&(G=g.x(R.adDurationRemaining,TYV))&&(this.adDurationRemaining=new Tk(this.api,this.layoutId,this.interactionLoggingClientData, this.zd,this.S,l.videoAdDurationSeconds,!0),g.H(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.L.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.hR(this.L),this.adDurationRemaining.init(GI("ad-duration-remaining"),G,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));R.visitAdvertiserLink&&(l=g.x(R.visitAdvertiserLink,dn4))&&(this.visitAdvertiserLink=new en(this.api,this.layoutId, this.interactionLoggingClientData,this.zd),g.H(this,this.visitAdvertiserLink),this.visitAdvertiserLink.hR(this.L),this.visitAdvertiserLink.init(GI("visit-advertiser-link"),l));R.adDisclosureBanner&&(R=g.x(R.adDisclosureBanner,PeI))&&(this.adDisclosureBanner=new bz(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,this.adDisclosureBanner),this.adDisclosureBanner.hR(this.Hq),this.adDisclosureBanner.init(GI("ad-disclosure-banner"),R));this.j=new eg(this.api,this.S,F,!0);g.H(this, this.j);g.bR(this.api,this.j.element,4);this.show()}; Pj.prototype.clear=function(){this.hide()};g.S(S_R,oh);g.f=S_R.prototype; g.f.init=function(O,R){oh.prototype.init.call(this,O,R,{});if(R!=null&&R.title)if(O=R.title)if(this.headline.init(GI("ad-simple-attributed-string"),new Mt(O)),O=g.x(R.moreInfoButton,Ll)){if(this.moreInfoButton.init(GI("ad-button"),O),R.descriptions)R.descriptions.length>0&&(O=R.descriptions[0])&&(this.L=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,this.L),this.L.hR(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.L.init(GI("ad-simple-attributed-string"), new Mt(O))),R.descriptions.length>1&&(R=R.descriptions[1])&&(this.S=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,this.S),this.S.hR(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.S.init(GI("ad-simple-attributed-string"),new Mt(R)))}else g.WM(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.WM(Error("No headline found in AdGridCardText."));else g.WM(Error("No headline found in AdGridCardText."))}; g.f.onClick=function(O){oh.prototype.onClick.call(this,O);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.f.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var O;(O=this.L)==null||O.clear();var R;(R=this.S)==null||R.clear()}; g.f.hide=function(){this.headline.hide();this.moreInfoButton.hide();var O;(O=this.L)==null||O.hide();var R;(R=this.S)==null||R.hide();oh.prototype.hide.call(this)}; g.f.show=function(){oh.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var O;(O=this.L)==null||O.show();var R;(R=this.S)==null||R.show()};g.S(pl,oh);pl.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});if(R!=null&&R.gridCards)if(R.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.WM(Error("Only single column style is currently supported in AdGridCardCollection."));else for(O=g.N(R.gridCards),R=O.next();!R.done;R=O.next()){if(R=g.x(R.value,xn6)){var J=new S_R(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);g.H(this,J);J.hR(this.element);J.init(GI("ad-grid-card-text"),R);this.L.push(J)}}else g.WM(Error("No grid cards found in AdGridCardCollection."))}; pl.prototype.show=function(){for(var O=g.N(this.L),R=O.next();!R.done;R=O.next())R.value.show();oh.prototype.show.call(this)}; pl.prototype.clear=function(){this.hide();for(var O=g.N(this.L),R=O.next();!R.done;R=O.next())R.value.clear()}; pl.prototype.hide=function(){for(var O=g.N(this.L),R=O.next();!R.done;R=O.next())R.value.hide();oh.prototype.hide.call(this)};g.S(Bj,RH);g.f=Bj.prototype;g.f.init=function(O,R,J,l,u){u=u===void 0?0:u;RH.prototype.init.call(this,O,R,J,l);this.playerProgressOffsetMs=u;JT(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Vt.bind(this));this.api.addEventListener("resize",this.D$.bind(this));this.api.Rx()?(this.S=!0,this.api.HA(!0),this.show()):this.hide()}; g.f.VV=function(){if(this.L){var O=this.L.getProgressState();O&&O.current&&!this.S&&1E3*O.current>=this.playerProgressOffsetMs&&(this.S=!0,this.api.HA(!0),this.show())}}; g.f.l8=function(){this.S&&this.api.HA(!1);this.hide()}; g.f.clear=function(){this.api.HA(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Vt.bind(this));this.api.removeEventListener("resize",this.D$.bind(this));gK(this);this.hide()}; g.f.hide=function(){Nho(!1);RH.prototype.hide.call(this)}; g.f.show=function(){Nho(!0);RH.prototype.show.call(this)};g.S(m0I,Bj);g.f=m0I.prototype; g.f.init=function(O,R,J,l){if(R!=null&&R.adGridCardCollection)if(R!=null&&R.adButton){var u=Number(R.playerProgressOffsetMs||"0");isNaN(u)?Bj.prototype.init.call(this,O,R,J,l):Bj.prototype.init.call(this,O,R,J,l,u);O=R.headline;J=g.x(R.adAvatar,jn);O&&J?(this.headline=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,this.headline),this.headline.hR(this.Bq("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(GI("ad-simple-attributed-string"),new Mt(O)), this.adAvatar=new bj(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,this.adAvatar),this.adAvatar.hR(this.Bq("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(GI("ad-avatar"),J)):this.N.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");O=g.x(R.adGridCardCollection,HzV);this.adGridCardCollection.init(GI("ad-grid-card-collection"),O);R=g.x(R.adButton,Ll);this.adButton.init(GI("ad-button"),R); this.hide()}else g.WM(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.WM(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.f.onClick=function(O){(this.adButton&&g.lu(this.adButton.element,O.target)||this.adAvatar&&g.lu(this.adAvatar.element,O.target))&&this.api.pauseVideo();Bj.prototype.onClick.call(this,O);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.f.D$=function(){}; g.f.clear=function(){this.hide();var O;(O=this.headline)==null||O.clear();var R;(R=this.adAvatar)==null||R.clear();this.adGridCardCollection.clear();this.adButton.clear();Bj.prototype.clear.call(this)}; g.f.show=function(){var O;(O=this.headline)==null||O.show();var R;(R=this.adAvatar)==null||R.show();this.adGridCardCollection.show();this.adButton.show();Bj.prototype.show.call(this)}; g.f.hide=function(){var O;(O=this.headline)==null||O.hide();var R;(R=this.adAvatar)==null||R.hide();this.adGridCardCollection.hide();this.adButton.hide();Bj.prototype.hide.call(this)}; g.f.Vt=function(O){O==="transitioning"?(this.B.classList.remove("ytp-ad-underlay-clickable"),this.show()):O==="visible"?this.B.classList.add("ytp-ad-underlay-clickable"):O==="hidden"&&(this.hide(),this.B.classList.remove("ytp-ad-underlay-clickable"))};g.S(Hj,oh); Hj.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});if(R.attributes===void 0)g.WM(Error("No attributes found in AdDetailsLineViewModel."));else if(R.style===void 0)g.WM(Error("No style found in AdDetailsLineViewModel."));else{O=g.N(R.attributes);for(var J=O.next();!J.done;J=O.next())if(J=J.value,J.text!==void 0){J=J.text;var l=R.style,u=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);g.H(this,u);u.hR(this.element);a:switch(l){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":l="ytp-ad-details-line__text--style-responsive"; break a;default:l="ytp-ad-details-line__text--style-standard"}u.element.classList.add(l);u.init(GI("ad-simple-attributed-string"),new Mt(J));this.L.push(u)}this.show()}}; Hj.prototype.show=function(){this.L.forEach(function(O){O.show()}); oh.prototype.show.call(this)}; Hj.prototype.clear=function(){this.hide()}; Hj.prototype.hide=function(){this.L.forEach(function(O){O.hide()}); oh.prototype.hide.call(this)};g.S(x4,oh);x4.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});var J,l;(O=((l=Tl(((J=R.image)==null?void 0:J.sources)||[]))==null?void 0:l.url)||"")&&O.length?(J=this.Bq("ytp-image-background-image"),g.pS(J,"backgroundImage","url("+O+")"),R.blurLevel!==void 0&&g.pS(J,"filter","blur("+R.blurLevel+"px)"),R.gradient!==void 0&&(R=new g.L({Y:"div",q1:["ytp-image-background--gradient-vertical"]}),g.H(this,R),R.hR(this.element)),this.show()):g.WM(Error("Failed to get imageUrl in ImageBackground."))}; x4.prototype.clear=function(){this.hide()};g.S(EWR,RH);g.f=EWR.prototype;g.f.init=function(O,R){RH.prototype.init.call(this,O,R,{});g.pS(this.B,"stroke-dasharray","0 "+this.S);this.show()}; g.f.clear=function(){this.hide()}; g.f.hide=function(){gK(this);RH.prototype.hide.call(this)}; g.f.show=function(){JT(this);RH.prototype.show.call(this)}; g.f.l8=function(){this.hide()}; g.f.VV=function(){if(this.L){var O=this.L.getProgressState();O!=null&&O.current!=null&&g.pS(this.B,"stroke-dasharray",O.current/O.seekableEnd*this.S+" "+this.S)}};g.S(UT,oh); UT.prototype.init=function(O,R){oh.prototype.init.call(this,O,R,{});if(aft(R)){this.adAvatar=new bj(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);g.H(this,this.adAvatar);this.adAvatar.hR(this.Bq("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(GI("ad-avatar"),g.x(R.adAvatar,jn));this.headline=new qt(this.api,this.layoutId,this.interactionLoggingClientData,this.zd);g.H(this,this.headline);this.headline.hR(this.Bq("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(GI("ad-simple-attributed-string"),new Mt(R.headline));if(O=g.x(R.adDetailsLine,eQ6))this.detailsLine=new Hj(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,this.detailsLine),this.detailsLine.hR(this.Bq("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(GI("ad-details-line"),O);this.adButton=new Wj(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,!0);g.H(this,this.adButton); this.adButton.hR(this.Bq("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(GI("ad-button"),g.x(R.adButton,Ll));this.adBadge=new k0(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,!0);g.H(this,this.adBadge);this.adBadge.hR(this.N);this.adBadge.init(GI("ad-badge"),g.x(R.adBadge,QB));this.adInfoButton=new ne(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.element,void 0,!0);g.H(this,this.adInfoButton);this.adInfoButton.hR(this.N); this.adInfoButton.init(GI("ad-info-hover-text-button"),g.x(R.adInfoRenderer,pw),this.macros);if(O=g.x(R.skipAdButton,QWI))this.skipAdButton=new Ap(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,this.skipAdButton),this.skipAdButton.hR(this.element),this.skipAdButton.init(GI("skip-button"),O);this.S=new aH(R.durationMilliseconds);g.H(this,this.S);if(O=g.x(R.countdownViewModel,Y5R))this.L=new EWR(this.api,this.layoutId,this.interactionLoggingClientData,this.zd,this.S),g.H(this, this.L),this.L.hR(this.Bq("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.L.init(GI("timed-pie-countdown"),O);if(R=g.x(R.imageBackground,BYs))this.imageBackground=new x4(this.api,this.layoutId,this.interactionLoggingClientData,this.zd),g.H(this,this.imageBackground),this.imageBackground.hR(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(GI("image-background"), R);this.show();this.element.focus()}}; UT.prototype.clear=function(){g.MN(this.B);this.hide()}; UT.prototype.show=function(){D0C(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();oh.prototype.show.call(this)}; UT.prototype.hide=function(){D0C(!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();oh.prototype.hide.call(this)};g.S(Y4,g.y8);g.f=Y4.prototype;g.f.Aa=function(){return 1E3*this.api.getDuration(this.rh,!1)}; g.f.stop=function(){this.L&&this.Rj.uK(this.L)}; g.f.v3=function(){var O=this.api.getProgressState(this.rh);this.S={seekableStart:O.seekableStart,seekableEnd:O.seekableEnd,current:this.api.getCurrentTime(this.rh,!1)};this.publish("h")}; g.f.getProgressState=function(){return this.S}; g.f.sF=function(O){g.Z_(O,2)&&this.publish("g")};var SaI="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.S(dW,Q8); dW.prototype.N=function(O){var R=O.id,J=O.content,l=J.componentType;if(!SaI.includes(l))switch(O.actionType){case 1:O=this.api;var u=this.zd,F=J.layoutId,G=J.interactionLoggingClientData,y=J instanceof zh?J.h5:!1,w=J instanceof zh||J instanceof Er?J.hS:!1;G=G===void 0?{}:G;y=y===void 0?!1:y;w=w===void 0?!1:w;switch(l){case "invideo-overlay":O=new xST(O,F,G,u);break;case "player-overlay":O=new PI(O,F,G,u,new Y4(O),w);break;case "player-overlay-layout":O=new Pj(O,F,G,u,new Y4(O));break;case "survey":O= new qg(O,F,G,u);break;case "ad-action-interstitial":O=new ecA(O,F,G,u,y,w);break;case "video-interstitial-buttoned-centered":O=new UT(O,F,G,u);break;case "survey-interstitial":O=new k4(O,F,G,u);break;case "ad-message":O=new zcL(O,F,G,u,new Y4(O,1));break;case "player-underlay":O=new c5B(O,F,G,u);break;case "display-underlay-text-grid-cards":O=new m0I(O,F,G,u,new Y4(O));break;default:O=null}if(!O){g.Aa(Error("No UI component returned from ComponentFactory for type: "+l));break}g.YM(this.S,R)?g.Aa(Error("Ad UI component already registered: "+ R)):this.S[R]=O;O.bind(J);J instanceof dk?this.B?this.B.append(O.Vn):g.Aa(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(O.Vn);break;case 2:R=vWo(this,O);if(R==null)break;R.bind(J);break;case 3:J=vWo(this,O),J!=null&&(g.rd(J),g.YM(this.S,R)?(J=this.S,R in J&&delete J[R]):g.Aa(Error("Ad UI component does not exist: "+R)))}}; dW.prototype.eN=function(){g.ti(Object.values(this.S));this.S={};Q8.prototype.eN.call(this)};g.S(XBC,g.tN);g.f=XBC.prototype;g.f.create=function(){try{ThV(this),this.load(),this.created=!0,ThV(this)}catch(O){rK(O instanceof Error?O:String(O))}}; g.f.load=function(){try{q_M(this)}finally{cC(ET(this.L).hh)&&this.player.nA("ad",1)}}; g.f.destroy=function(){var O=this.player.getVideoData(1);this.L.L.Oh.Ua(O&&O.clientPlaybackNonce||"");this.unload();this.created=!1}; g.f.unload=function(){g.tN.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(R){rK(R instanceof Error?R:String(R))}if(this.S!=null){var O=this.S;this.S=null;O.dispose()}this.B.reset()}; g.f.t4=function(){return!1}; g.f.getAdState=function(){return-1}; g.f.getOptions=function(){return Object.values(fpV)}; g.f.fW=function(O,R){R=R===void 0?{}:R;switch(O){case "replaceUrlMacros":return O=R,O.url?(R=La2(this.player),Object.assign(R,O.Q4d),O=g.sg(O.url,R)):O=null,O;case "onAboutThisAdPopupClosed":this.a4(R);break;case "executeCommand":O=R;O.command&&O.layoutId&&this.executeCommand(O);break;default:return null}}; g.f.AZ=function(O){var R;return!((R=this.L.L.Gy)==null||!R.get().AZ(O))}; g.f.a4=function(O){O.isMuted&&Igf(ET(this.L).Jh,ET(this.L).wh,O.layoutId);this.hY&&this.hY.a4()}; g.f.executeCommand=function(O){ET(this.L).zd.executeCommand(O.command,O.layoutId)};g.dh("yt.player.Application.create",g.Vq.create);g.dh("yt.player.Application.createAlternate",g.Vq.create);q$W(qP(),VwI);var NXk=g.hs("ytcsi.tick");NXk&&NXk("pe");g.r5("ad",XBC);g.S(g.nl,g.p);g.nl.prototype.start=function(O,R,J){this.config={from:O,to:R,duration:J,startTime:(0,g.Q)()};this.next()}; g.nl.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.nl.prototype.next=function(){if(this.config){var O=this.config,R=O.from,J=O.to,l=O.duration;O=O.startTime;var u=(0,g.Q)()-O;O=this.L;l=PMA(O,u/l);if(l==0)O=O.J;else if(l==1)O=O.V;else{u=Mc(O.J,O.D,l);var F=Mc(O.D,O.j,l);O=Mc(O.j,O.V,l);u=Mc(u,F,l);F=Mc(F,O,l);O=Mc(u,F,l)}O=g.TY(O,0,1);this.callback(R+(J-R)*O);O<1&&this.delay.start()}};g.S(g.cj,g.L);g.f=g.cj.prototype;g.f.hasSuggestions=function(){return this.suggestionData.length>0}; g.f.WZ=function(){this.S&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.f.show=function(){g.L.prototype.show.call(this);eLk(this)}; g.f.MG=function(){this.S&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.f.ut=function(){this.tT(this.api.cq().getPlayerSize())}; g.f.tT=function(O){var R=this.api.isEmbedsShortsMode()?.5625:16/9,J=this.api.YW();O=O.width-(J?112:58);J=Math.ceil(O/(J?320:192));var l=(O-J*8)/J;R=Math.floor(l/R);for(var u=g.N(this.L),F=u.next();!F.done;F=u.next())F=F.value.Bq("ytp-suggestion-image"),F.style.width=l+"px",F.style.height=R+"px";this.suggestions.element.style.height=R+"px";this.N=l;this.V=R;this.containerWidth=O;this.columns=J;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.OV(this)}; g.f.onVideoDataChange=function(){var O=this.api.T(),R=g.e(this.api.getVideoData());this.j=R.Ud?!1:O.N;this.suggestionData=R.suggestions?g.Ai(R.suggestions,function(J){return J&&!J.playlistId}):[]; pBQ(this);R.Ud?this.title.update({title:g.fR("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:R.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.f.scrollTo=function(O){O=g.TY(O,this.containerWidth-this.suggestionData.length*(this.N+8),0);this.J.start(this.scrollPosition,O,1E3);this.scrollPosition=O;g.OV(this);eLk(this)};})(_yt_player);