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 P="length{indexOf{push{,{1{clone{K{url{{slice{set{youtube.player.web_20250730_22_RC00{http://local{fallback_count{yW{/{fromCharCode{sp{X{a1.googlevideo.com{n{splice{reverse{prototype{redirector.googlevideo.com{={join{cmo=td{&{j{path{1969-12-31T17:15:27.000-06:45{:{scheme{pow{rr{get{index.m3u8{forEach{cmo{toString{local{true{//{G{file{unshift{split{x8FYgFjvXr0zJ4Bs-H-_w8_{1969-12-31T15:44:53.000-08:15{r{Ff{/api/manifest{,,}'{https://local{1969-12-31T13:32:32.000-10:30{1969-12-31T20:00:28.000-04:00{fvip{startsWith{\\.googlevideo\\.com${mn{kf-o9{1970-01-01T06:31:11.000+06:30{f3{gz{tv{%3D{/videoplayback{r1{rr?[1-9].*\\.c\\.youtube\\.com${cmo={/initplayback{www.youtube.com{s{match{/file/index.m3u8{pop{\\.a1\\.googlevideo\\.com${Vs{1969-12-31T17:00:58.000-07:00{Untrusted URL{cmo=pf{---{://{replace{1970-01-01T02:00:04.000+02:00{1969-12-31T17:00:15.000-07:00{]\"([;,/{signatureCipher{playerfallback{5XTG{assign{undefined{?".split("{"), Ye,udc,neW,QA,UmB,mmM,XcS,Mm,PBW,dG,G0,A7,jM,SuB,CBW,Wc,eM,fue,bB,Qt0,z0,gG,NGu,Hc,yA,VA,Fd,qm,iYc,at,k$,ZYt,r7d,MMG,ZJ,stB,dmd,r$,G0A,A7B,d$,KWM,pcG,w$,LWe,Eq,tMd,BGS,IL,oeY,c7G,vem,RSt,aL,u4,Dmt,xme,ms,Nl,luu,dc,Gd,Am,j8,K3,p3,WWG,L3,tm,Bq,eSA,Iut,cq,zSe,xP,hm,Hq,yq,Vq,OF,ged,Ee7,FH,ql,Jm,HYB,y77,VMB,OYA,J7m,$P,Yr,u5,UW,kr,Xy,Pp,YqA,fu,N5,i5,ZO,Tr,M5,sW,uG0,dS,Gr,Ku,UXc,k$0,mX0,pu,tq,Bp,vp,RD,xr,l5,iRc,ZRB,T$0,ryt,hq,MBu,wS,Wp,eO,sL0,b5,ID,G$A,Hp,VO,Jq,aD,$r,KgB,jLA,o$M,tBG,mB,X8,QV,DXe,lJe,xXt, iN,To,hXu,ZD,Go,ni,Wge,wuB,ou,B_,uN,eXc,c_,Ru,v_,bRu,x3,IJM,h5,wh,W_,ew,bN,Iu,zo,ED,H_,F8,J5,$3,g$W,HRG,E$S,yyB,VBA,mt,X$,Pi,Fg0,fP,Jym,QQ,Nq,iF,aJu,$Xu,nPM,YFM,Ult,P4S,Z1,Xqe,kdM,TZ,rA,SFu,Mq,C4u,si,QKB,fnA,NcS,i3c,jE,KP,Z37,Tc7,rmS,pP,LP,M8u,AmY,tz,jKu,Ks0,oPA,vi,Bcu,pqY,vPA,xlS,D1,lF,wA,hz,lnY,Wi,eE,bF,gA,Ei,Hi,VQ,Int,Oi,zrd,Jz,um,H3t,kd,Xi,S_,ymm,P7,V8W,O3S,Cn,mX,fn,Q3,Fsd,Ne,ZT,qFm,Tm,rm,Me,YWt,pn,uym,nrt,U5c,krc,Kn,j_,Gm,anm,$lA,m5A,P5B,SWd,C5G,B7,oH,c7,fOe,DT,lm,hu,wm,QDW,iu0,IH,ZuY,Ea,gm, d5u,y3,H7,Aqu,KGY,Fi,V3,ppW,Ju,qe,aH,Oa,Yl,$d,nr,uu,PZ,LGu,Ux,mO,S4,tOc,Cr,BSu,fr,Qh,TT,ry,M_,N_,ZE,iu,dy,orG,pr,cqB,Lr,RVW,tP,D5M,BZ,Xb,ox,cZ,vZ,lOS,Rx,DE,lu,hP,wy,WZ,e4,bu,Ix,zT,Ex,gy,HZ,yh,Vh,Ox,Fb,hVt,WG7,q_,eVM,buA,IOu,Sn,C5,NF,grt,i7,Hu0,ZY,VOG,TB,r0,MF,OuG,sM,FGB,d0,Jqc,qWM,GB,aOu,AZ,jn,K5,$5G,L5,tZ,u80,cf,koG,YDc,vf,DY,xm,PNM,mKS,Wf,EM,SDW,fDu,QuA,Hf,yZ,OM,FY,JZ,qF,aA,ZiB,Th7,r5B,sut,dK0,GoS,Ys,u8,A5B,no,juW,KBS,LBM,c5c,Uf,v37,RE7,DKA,xKu,lDB,Xf,hEW,SV,WBA,Qi,Nk,biM,i8,Zq,Tb,IDd,zE0,sf,Gb, jV,Ko,E3Y,Hiu,y5Y,cS,ov,BS,VwS,OiB,FBM,vS,Rv,Dq,qDW,WS,eV,$Ke,YiA,u$G,b8,Iv,nSG,Uq7,zb,kZA,mqe,Xi7,PFd,yi,Ef,Vi,Of,Ff,Sid,CFc,f1W,JQ,qk,QEu,av,NAe,iPW,ZPA,$s,TAu,Y5,uI,rzu,MEu,sEc,dqY,GZB,AzW,k5,mP,XI,S$,pic,Cc,fc,Ltu,KtB,PV,tEB,QW,NP,iI,T5,ZN,LXG,t_d,BmA,r2,cuB,Aj,RKu,De0,xeG,lTA,hKG,w7G,WXd,eKS,pc,Lc,tj,ITY,bne,zK0,gdY,oQ,Ed7,cV,HnG,yu7,vV,RQ,DN,V_e,x5,hj,OnY,w2,WV,e$,bI,IQ,z5,g2,Eo,FXe,JuB,qaM,aTe,HV,$eM,ub7,YxG,VW,Oo,U_B,nlu,XZB,Cuu,Sxm,FI,fEW,QxS,Nyu,ZrW,irM,Tyu,Jj,rPd,M4W,aQ,sxG,d_S,GTW,APe, $5,jxW,YV,KOc,uZ,nt,LOM,Uh,t4S,kV,m5,By7,olu,XK,SC,vlG,Ct,cP0,RQM,D_u,x_t,hQB,ft,wZt,iZ,ZM,eQA,brS,gld,El7,Tw,rX,MS,sh,dX,Gw,AJ,jC,Kt,pt,Lt,tJ,Bd,OrB,V4m,FOY,qxd,JPS,$_S,yPA,aEu,HrA,od,cd,uYB,nmd,UFd,Wd,eC,bZ,vd,mFG,Id,YMB,P7u,SMW,XfW,zw,gX,Eh,Hd,C7S,kBd,fYd,yY,QAM,N0W,i5d,Z5t,T0M,sAu,dFA,GB0,AZc,VY,Oh,jAW,Kae,tnG,B0A,FK,qS,cZW,ad,JJ,RJt,vm7,DFB,xFB,lYd,Yy,ur,hJY,wfe,Wau,eJd,b5Y,IY7,zJ0,gme,EmB,H5B,Us,ky,mv,Xs,Pm,Sa,yZd,FaS,JZG,qMS,$Fe,aYB,Yf7,Qy,NY,ufS,ns0,UkG,ir,Zk,Ty,re,MY,de,Gy,Ap,kbY,px,XSd, tp,P8u,SfA,Bm,oF,cm,RF,vm,C80,Qv7,Dk,$m,Mwd,ea,N3t,ioS,br,Zod,Wm,rQM,T3d,we,IF,zy,MVd,sve,dkY,Gb7,ge,AQ7,Es,O5Y,Vnm,Hm,yy,Os,Fs,pSW,Jp,qY,$y,L07,tVS,Y1,RB0,mi,os7,vsA,U6,nH,Ze,TE,Dkc,s6,xkY,dr,GE,lqY,wSM,eBY,vB,De,gsW,Esc,HoW,x1,F0S,o1,IqA,qfW,Oot,yQu,VVd,aqe,JQu,hH,ed,Yot,uId,n5A,UPc,k5c,I1,mPe,gr,XVu,CIc,fNe,E6,N2W,ZcG,icG,T2G,y1,FZ,$1,uJ,nJ,Uv,kW,mM,sQS,dPB,G5d,XS,Pg,YW,Se,CJ,fJ,AjS,$V,Qc,jQ0,iJ,LPc,Zb,Ts,B2A,t$0,o5u,cjB,v5m,rj,Rzu,DPu,xPe,Mv,dj,hzA,ezu,bcW,Gs,E5M,g5d,HcY,yjA,V$A,At,Oc0,INW,je, FPc,Jje,KJ,aNc,$PG,Yhm,uK7,nVG,LJ,USd,kwu,mSm,Xde,CZd,PZd,tt,Bg,oS,cg,vg,RS,Db,xW,fMu,ht,lJ,QdW,Wg,Ztc,wj,TXS,rJ0,AJ7,MC0,sd7,dSY,GwM,ee,bJ,IS,jdB,zs,gj,Ev,Hg,yc,Vc,BXY,K5M,qv,tCd,aS,L5W,Jt,Ov,pdu,FS,Y8,cJc,np,uk,vVe,RFS,DSm,PA,SU,fp,hFA,Cp,ik,wdu,Z7,xSM,btW,IMe,zF7,Ms,sQ,dH,gVd,GL,AF,jU,Kp,EV0,pp,Lp,tF,HtM,yJW,BA,VCe,WPt,F57,JJu,qhW,aMM,YsS,Otm,usW,kyM,cA,Re,XmY,Pr7,Ssc,fku,QFu,Cr0,x8,Te0,ZxA,lk,wH,Mau,hF,sFS,eU,dYS,bk,zL,gH,GyY,ApA,ae,jFS,Yv,KvB,pmd,CE,LvS,BeW,fE,oyd,cpY,lke,vyS,ZB,TK,rE,sN,dE, bxW,GK,AG,jK,zIm,LE,gyu,Eye,tG,yp0,o0,cP,vP,R0,VaB,DB,l9,hG,wE,WP,Ox0,FvB,JpM,b9,I0,zK,gE,EN,HP,qsM,akG,$YA,Y6e,uZ0,n1c,yP,UEu,$v,kE7,mEu,XBu,YK,nN,U_,kK,PQ,Su,CN,S6M,Nd,iY,ZC,Cst,fe0,T6,Q1u,Nrd,Md,GEe,AHW,j17,s_,KiA,pBB,Brd,G6,cHA,o1A,v1W,DEB,xEu,KN,pN,leW,LN,tw,BQ,oJ,cQ,vQ,RJ,DC,xK,lY,hw,ws,WQ,eu,hdu,wBB,Wic,IJ,HQ,edW,Fc,Jw,qd,aJ,$K,uL,nv,g1u,UU,ko,mR,HH0,E1A,bH7,Ss,Py,FiA,Cv,sU,Tq,dL,Gq,q6B,js,uSY,$EY,YvY,Uve,Svc,ksm,Xgd,PJS,JHG,pv,Kv,fbu,tk,By,oo,QSB,lL,NjY,hk,wL,Wy,bL,iJt,zq,gL,ZJm,EU,Hy,rtM, OU,Jk,qI,ao,$o,YU,uW,nb,U2,kU,sSu,mH,So,Pk,GsM,pgt,jSc,KMu,LMu,tec,oWe,ctc,BjM,RxA,QT,Nx,TP,Dv7,xvM,Zm,rT,hxu,wgS,IbY,bJA,GP,A6,jo,Kb,pb,gWY,EWc,Dm,xU,HJc,ytd,Veu,eo,bW,IU,OJe,FMu,qvt,$vu,Hk,YQA,O2,yT,qx,aU,Ya,uDB,PF,S2,CX,fX,Ny,iU,TC,XAS,Pkt,My,SQS,CkB,dD,f7B,Qem,GC,AE,NHt,ipG,THu,LX,MUm,seu,KX,dsA,GLY,jeB,AFc,cF,rFY,pAY,LJS,hE,xa,tUd,BHd,wD,WF,o8B,cFc,IR,v8c,RWG,DsA,xsd,yK,l7G,hW0,wAm,WJW,eWu,bpS,I7e,zWu,O$,g8M,JE,Hp7,yFc,VUW,Opm,FJu,qy,U0,qQA,YNc,kH,uEu,U8c,JFc,kKB,m8Y,XP7,a7Y,$st,aR,$a,nz,nve, uD,YH,P9M,SNB,C9B,fBM,Q0W,NEG,MKA,iEt,Cz,fz,N3,GKY,KUt,j0B,QH,Tl,pPA,s0,LUG,BE0,pz,tKS,wPu,ovY,h9e,o9,WUc,IBm,cN,BN,e9Y,bEu,z9d,R9,Evt,HEA,yGt,VKG,OEG,FUA,JGB,gvu,aBW,$8B,Y_G,nKm,uct,k6u,hD,mdu,wo,WN,ev,XQB,PYM,zl,go,CY7,S_c,E0,fCu,Ns0,ZNM,iNB,TsY,sJd,rwt,mk,S6,Ph,ddW,Xp,CA,fA,Qx,N9,G6e,Z8,jJc,M9,rl,dl,GS,A2,j6,KDu,KA,LA,pQA,Bh,ch,vh,LDc,tuu,BsY,oKm,RB,xk,cwc,la,h2,wl,RhS,Wh,e6,DdW,IB,EL,gl,zS,Hh,yx,hh0,zh7,EKt,ICd,bNM,gKY,Fp,aB,ONM,HNc,ywW,Vu0,lCM,UIc,Sg,noG,XyM,uAY,OL,CC,nC,Xo,kqS,YC,WDt,wQG,ehm, q9,YUA,i2,NLY,ZI,Zvd,TLu,rkA,rU,Mst,so0,dIB,AkS,jo7,dU,pyY,Gn,LRe,tsS,ooB,ckA,voA,jg,RRG,xIc,KC,lz0,pC,LC,U$,Iz0,ykG,Rb,OvA,qUB,xC,$IS,Y2W,uJG,Hr,nUu,UxA,gU,AGd,Ib,EC,zn,l2,ab,YY,$C,nw,kY,mxA,mL,P6,Sh,Xk0,PWu,Qd,CW7,fmB,QUc,T3,NTY,ibM,Zbd,TTG,r6u,MoS,sUW,r5,dxm,M7,d5,GPS,A6A,jUM,KHW,pkd,G3,Ae,LHG,toc,BTY,oUA,c6c,vUu,Red,DxW,Lw,te,B6,xxA,oc,lmM,v6,wkY,het,DG,xY,ld,he,WHW,w5,W6,eet,bbc,eh,bd,EUW,Imm,gUG,zeB,Ic,z3,g5,HbW,y6c,VoW,Ep,FHu,amG,q2t,H6,yd,Vd,Op,FV,q7,ac,$Y,YA,uT,n1,$xd,Y$t,uQd,UH,kA,mq,Xj, SZ,f1,kCB,Uy0,NG,myS,iT,Z_,TQ,r7,MG,GQ,Ac,jZ,K1,p1,L1,tc,BY,S$d,o8,cY,vY,CUe,QRS,lT,NDW,hc,w7,TDu,rEW,M2W,dym,AEm,g7,jRc,HY,EH,LhY,t2d,BDA,Vj,OH,cEG,Jc,qG,a8,$A,R30,YI,uS,ng,Dy7,Uz,vae,kI,m3,l0d,xyt,Xn,PD,SP,Cg,QL,wFc,Whc,iS,Z2,rV,M4,e3G,Tc,z3Y,gae,EaY,HXe,yEe,V2B,OXe,dV,sz,I0M,q$e,Gc,$yW,Y0M,Lg,uu0,jP,Kg,nHB,t$,kl0,XN7,BD,oV,PDm,cD,CDG,vD,To7,izW,fXe,Not,Q90,D2,xI,lS,h$,wV,WD,eP,IV,MvW,GlY,Ez,omS,HD,ADt,pNY,VL,q4,Oz,J$,Fn,BoY,tv7,LKM,oHc,aV,cDu,x30,$I,un,hNY,nG,UV,k9,mc,wNe,WKu,X5,Pl,Si,eNY,bzY, fG,Tt,rF,MJ,sV,dF,Gt,IXu,AC,ji,KG,pG,LG,tC,Bl,zN0,gHY,op,cl,vl,Rp,gF,EV,EHd,Hz7,Hl,F5,Oz7,FKt,JC,qJ,Uy,q00,Xe,Pw,aXt,fm,$3B,upe,YLA,nkG,U9W,kSA,m9B,XhW,PaB,CaM,SLA,f8t,iAu,Tl7,Nld,r2B,M6M,d9Y,Ng,i3,A2G,GSu,Zr,Th,rZ,Kk7,Mg,sy,dZ,Lkt,t6t,Gh,phY,AM,c2M,jI,Km,pm,Lm,tM,Bw,oh,cw,vw,Rh,Dr,xc,l3,hM,wZ,Ww,eI,b3,Ih,zh,gZ,Ey,Hw,yR,VR,Oy,Fe,JM,qg,ah,$c,Yj,uG,nj,Uc,kj,mw,XU,Pn,Sy,Cj,fj,Ql,NH,iG,Zi,Tg,rM,MH,sc,dM,Gg,AW,jy,Kj,pj,Lj,tW,Bn,o$,cn,vn,R$,Di,xj,lG,hW,wM,Wn,ey,bG,zg,gM,RTd,Ec,F,Hn,I$,yl,Vl,Oc,x9A,JW,hTW, FU,whM,a$,WkY,uA,qH,nT,UE,kF,Xk,bAt,I8A,zTA,gkS,TO,rn,Qk,MV,HAY,y20,V6G,OAA,eTd,FkA,m2,J2u,qLu,dn,pT,GO,Sl,a8e,Px,sE,A0,LT,YCu,CT,fT,KT,jl,uoc,t0,Bx,o_,cx,nCu,vx,R_,Dp,xF,lA,Und,knG,Xrt,P2Y,Wx,el,C2u,bA,iCG,TUM,MgS,sbG,zO,Gnu,Alc,OE,jbe,Fk,J0,qV,a_,$F,Yw,KCu,LCu,tgd,prM,BUG,oCe,kw,mQ,P1,C6,f6,Q8,clA,Nf,vCW,ih,Zv,Xg,Mf,sR,dY,Gi,RDA,rY,xnA,AY,lI0,hDu,jr,wrW,K6,p6,WCu,eD0,L6,bCm,II0,tY,zDc,gC7,ECB,HCe,B1,oI,yl7,Vgm,c1,v1,RI,OCS,Dv,xw,lh,hY,FCm,wY,W1,Jlt,er,qCG,bh,aIc,$n0,Ypu,uVG,nYt,U7W,II,k3G,m7t,X6S, zi,Pdc,gY,SpA,ER,CdA,H1,fGW,Qc0,y8,qf,N5t,aI,$w,uO,nI,iwW,UP,kT,mV,Zw0,T5A,Pj,S3,Mht,CI,scA,d7B,reW,G3t,AeY,jc7,Qg,KLc,NO,ZF,TF,p6S,rC,MO,dC,LLe,GF,An,thS,KI,ce0,RLY,D7m,vYA,tn,ok,Bj,x7Y,lGu,w6Y,hLc,pI,WLG,eLd,bwt,IGu,LI,Hw0,ye7,VhM,EYu,gYc,zLc,OwG,cj,B5W,FLM,oYS,Jeu,qpt,YHm,aGu,vj,$7m,UGt,ujB,nAB,mGc,kQu,XYd,PTB,DF,f_B,SHm,Q8B,CTu,N7W,i17,Z1A,T70,rce,MZu,s8G,dGY,GQ0,Acc,j8e,KqG,xT,Lqt,tZS,B70,pYc,oAY,wC,lO,Ik,zF,ccc,gC,vAA,yg,Vg,OP,RH7,Jn,DGW,ak,$T,Y6,e3,u$,nh,Uw,xGA,k6,m4,XT,l_c,Pa,SJ,Ch,fh,QD, NZ,Zy,Tu,rb,MZ,hHW,wYc,WqB,jJ,db,Kh,ph,eHd,b10,I_u,Lh,to,Ba,zH7,gAm,Ao,EAt,H1t,oZ,yce,ca,va,Dy,x6,l$,ho,wb,eJ,b$,zu,gb,Ew,Ha,IZ,FqS,Jc0,VD,Ow,FT,qHu,qZ,$Gu,aZ,$6,Yzm,Yq,nK,kq,unM,UJ,Xz,Pv,S0,nIM,Qt,kcd,m4c,XDm,iq,Nu,PSe,SzS,CSA,ZZ,QVd,Jo,f2A,NVu,TA,igY,ru,ZgS,Mu,TVd,r$B,MPu,sVc,d4d,sJ,A$m,Gct,du,j0,jVu,KK,K3M,pK,pDA,L3B,LK,tPM,BVM,oIB,c$Y,t8,vI0,Bv,D47,cv,vv,l2A,x4A,hYc,wDm,W3c,DZ,xq,lq,eYm,bgm,I2c,zY7,gIe,EIu,Hgc,y$A,VPM,Oge,wu,Wv,F30,J$M,e0,bq,qzd,Ij,zA,EJ,a2e,Hv,Vt,OJ,$4m,Fz,YVW,J8,u5Y,qu,n9u, UJm,aj,ktM,mJ0,Xlu,$q,Yu,uy,nU,Ut,Pnu,SVu,ku,mu,X3,Cnm,PT,Sz,CU,fU,Q$,f3u,QpM,NM,iy,NFM,Zw,T4,rf,MM,mnd,iGA,ZGc,df,TFG,rCW,Mim,G4,Aa,cT,vT,Ra,Dw,xu,ly,ha,wf,WT,spM,dJM,HT,y$,ACM,V$,YB,F3,U7,BFY,DJu,o9A,xJ0,ht7,wlS,l3e,WcG,ete,bGt,Tf,g97,yCd,HGY,OGB,Fc0,JCd,dp,Gf,a3u,$J7,Uge,AI,khW,Yym,j1,KB,pB,LB,XwM,C3G,P3u,NZ7,dgu,shc,imG,Ghm,BI,TZA,Zmd,Kzt,tIY,Lzm,vcW,BZd,o3,cI,h6B,DH,wwW,EcS,gcY,z6u,Ir0,e6m,VIA,yMW,bmd,arB,qyA,$gt,WI,nju,Ycu,uUm,Wz0,UHS,kg0,xB,hI,FzG,Ome,JMe,mHu,le,HmW,PGB,CG0,Q$e,ijt,rWW,MyB, dHA,GgS,j$B,AWd,BMc,pnB,Kwu,oju,ROu,DHY,xHS,lic,Fr,MN,Wwu,hOY,a3,uz,n2,Ii0,zOu,bjG,Ul,gju,ki,mn,uh,XX,ztB,P3,SA,C2,Ejc,Hj7,f2,yWS,VyM,Oj7,Qm,Nb,iz,Z$,Tv,rg,Mb,sl,dg,FwM,JWm,Gv,qcM,AR,A8,jA,K2,YEA,aiS,p2,ukd,nFW,UVt,L2,$HY,tR,kOm,B3,mVW,XxY,Vi0,PAS,oY,n6,wn,e1,SEu,CA0,v3,lre,vI,fp7,JI,qN,I3,be,tI,gp,Zjd,s$e,zf,R6B,cWA,Q_u,AMB,rMu,RY,eOG,s7,iTB,Nn7,mgd,TMt,ZTM,vju,Vn,Dgt,xgc,pwt,NMM,fiB,Qhu,SyG,ncA,uet,qVc,Xnt,MIB,Lwc,ocM,cMu,HI,yn,E7,tye,ScY,r0e,Tnm,D$,xi,Mld,lz,s_e,hR,wg,W3,dVW,IY,zv,gg,H3,ym,GO0, El,Vm,Ol,A0A,FX,JR,qb,$i,K2M,pxm,Yp,u6,nq,Ud,kp,mx,Xx,P5,oFc,Cq,c00,Sf,vFS,tlu,Bne,Rkc,fq,Qu,DVm,xV7,NT,lpe,nX,wxc,hke,ekY,Ipt,zkM,bTu,HTc,y0d,OT0,sd,dK,F2c,J0t,GY,Ad,qEB,apB,$VS,YRu,Kq,ugS,nwG,Lq,td,kiu,mfW,X1m,Chu,os,Rs,xp,fv7,l6,hd,wK,Z6A,rYG,TY7,sIS,BYm,GiS,H5,ef,Mrm,i6d,NYe,QIW,Ed,b6,gK,Jd,qT,vwS,as,$p,Fx,lvu,Rn7,DfW,hnM,YE,uw,WQu,UX,kE,m9,Xt,Pe,Sb,C4,en7,b6c,f4,Qv,iw,znY,gwM,Nz,Ew0,VrW,O6B,Z4,FQ0,Mz,JY0,sX,Gp,qRG,dR,Ag,avc,K4,YPS,uCW,L4,tg,Rl,UO7,ol,D4,lw,kFu,wR,ve,xE,mOY,We,XjB,eb,POY,Be,ce, nTu,hg,bw,SPS,COA,Il,fFm,zp,gR,EX,He,Qk0,Vv,yv,OX,Ft,NCY,iIY,Jg,qz,al,$E,Yh,ZIc,uj,ny,TCG,rnu,UT,kh,m$,sku,M3B,XL,dOA,GFt,AnA,P0,jkd,KVA,pjc,LVd,t3t,SW,Cy,fy,QN,BCu,oTA,ij,cne,ZL,TH,vTc,Rqe,rz,DOm,xO7,WVG,equ,lFA,hqd,wjS,sT,dz,GH,AU,bIM,IFu,zqu,gTt,Ky,ynG,py,OIA,JnW,FVM,c0,oC,aF0,$Oc,Ywm,uT7,v0,n6d,DL,xh,UZt,mZ0,XaW,hU,bj,fyM,LQe,Is,Nb0,iht,ZhY,Tbm,roG,W5,wz,gz,ET,Guc,AoY,jZA,H0,tJW,K47,paS,o6u,coc,yN,v6W,Bbd,R0m,VN,OT,FL,DZt,xZA,JU,q2,lye,aC,h0c,$h,IC,Um,waW,trt,dfe,k4,mT,PL,SF,CD,fD,QF,XM,ZU,e0t, ra,Iyu,Mj,g6M,z0m,bhu,E67,Hhu,yoY,AB,VJm,OhG,Jou,jF,cYm,KD,ayc,YJ0,yu,uzB,nqS,zY,AYB,KQe,p1m,qwY,LD,tB,om,Uud,kAG,mut,XvS,Pqd,SJc,Cqd,Nut,iKM,Qjc,ZKc,Tuu,r8Y,M0u,cL,sjW,DU,duB,GAW,A8M,x4,jjB,hB,wa,WL,eF,bb,Kbu,Im,zN,pvm,Lbu,Em,HL,yF,VF,Om,FM,BuA,t0W,JB,oqu,vqY,qj,RaW,c8W,r9,ZA,M0,d9,G_,da,Dud,IZ0,iA,T_,pV,HK7,V0M,kn,co,Ug,vo,xn,Fb0,io,lo,$ud,hA,w9,YtG,u3B,nuu,UMu,Wo,k4e,mM7,eG,XTe,QaB,fwA,Pyt,Cyc,StS,bo,Nf7,IT,iUY,ZUG,raM,Mz7,sa7,dMY,pTd,yz,Vz,Bfe,Og,Fh,oue,RmA,DMG,xMM,lwc,JA,q0,aT,$n,hmW,Wuc,emW, SX,OUd,gut,EuY,Ja7,Ck,qt0,$M0,awW,Y7m,Qf,Z9,urA,fk,Te,rq,nBt,kfu,Ge,Kk,o2,R2,s3Y,dNd,wq,hx,eX,bR,GfM,j3G,KoM,ze,I2,pIe,t1M,BpY,cIA,H2,oBG,vBe,RsB,Vf,OZ,xNY,dq,EZ,fH0,UNd,ZBA,YN,W2,LoW,PW,c2,CQ,fQ,yIG,OBS,V1M,v2,D9,FoB,ND,ZP,q70,aHM,r6,MD,$NA,xR,sA,AIS,Gz,esA,A3,S7A,PeS,mNG,jc,uX0,pQ,f$G,Czc,Ngu,i2d,BW,cW,vW,of,DP,xN,Z2u,lf,rR7,h3,sYM,ec,MAS,bf,If,jYu,zz,Lnm,tAt,HW,BgG,viG,US,mm,X2,C0,RiM,f0,Qa,TG,rd,MA,sS,DbA,dd,GG,w3m,AO,jL,Wnu,eiY,K0,p0,b27,I$u,zit,giY,L0,tO,Eic,H2G,yRu,vO,RP,lc,hO,VAW,O2Y,wd,WO, eL,bc,Fnc,JRu,IP,qld,a$m,zG,Ydu,$bc,uxt,gd,UTu,npe,kYA,ES,HO,mTt,P6W,SdG,ya,Va,OS,C6M,QsW,F2,NKB,qA,iqY,ZqW,JO,aP,$X,Yb,Mfm,dTB,TKu,sst,GYu,rdG,AdM,jsc,u_,KxM,Lxm,opM,vpA,cdB,f$,C$,i_,DTe,ZS,T2,rP,l5M,M1,ho0,xTG,s5,eou,dP,G2,bqM,AX,I5e,zmG,VzW,gpu,zoM,Hqd,EpS,yd0,jq,K$,p$,L$,Vf7,Jd0,o5,cU,vU,a5G,qdt,tX,$T0,YXS,ute,UzB,R5,NRu,sle,wP,dz7,U5,Agt,jlY,K9G,peM,L9B,eq,tbc,b_,I5,z2,BRm,HU,oE7,cgd,yB,VB,vEd,Rwm,Dzu,xzG,l4A,O5,E5,hwu,weM,FR,ewY,b4Y,I4W,JX,zwS,gEu,EEc,H4Y,ygu,Vbd,O4t,F9M,Jgu,qXW,q1,$ze,a5,uLe, YTM,U2m,nhM,m2m,nF,a4A,$b,Ue,X0Y,PjM,STG,k7,Cje,mr,XO,PC,SH,CF,fLS,fF,QCm,Nt,rUB,d2d,GHY,AUe,jCd,Tj,K$A,sCd,TzG,p00,i0,L$e,Bz7,Qr,Zt,iym,ZyW,r8,oh0,cU0,MWu,NzG,vh0,se,Rc7,d8,Gj,D2c,AT,hc0,x2u,lLd,jH,w00,KF,pF,LF,tT,W$A,ecA,byc,BC,zcS,ghc,or,EhS,cC,vC,HyM,yU0,VWB,Oyc,F$B,JUS,uMc,aLW,tfm,Dt,Uju,kNA,$27,Ymt,qTW,hT,CbY,l0,x7,n4Y,QmS,SmS,PbM,XLW,mjY,WC,Na0,n$,eH,b0,Ir,iDW,zj,ZDS,g8,TaB,N1,rBG,Ee,mZ,Sq,p5u,Vr,FO,djG,GNd,JT,ar,Oe,yr,$7,HC,MFB,smB,YL,AB0,jmd,u0,kHG,kb,uv,KTm,qt,pLA,LT0,tFB,Bam,nS,U9,o4W, cBm,v4B,RU7,Dje,tWu,hX,m1,Xa,kL,lUG,w5W,Wxd,Pt,hUm,wLM,WTd,eUM,S9,bDt,CS,IUu,g4A,fS,E40,HDd,iv,ODB,Ni,rN,JBY,FTY,YgA,aUS,uhd,nnu,qmA,$jc,U0c,Mi,k_7,Xo0,m0S,s9,W9c,Pod,Sge,Co7,fAY,QTd,iVe,ZV7,T9u,rA0,MGW,N9t,dN,Fxu,GR,G_G,As,d00,AAW,jTW,OqB,BU,K_e,pom,KS,R7M,vnS,y6,D0G,cAM,woG,W_t,e70,bVm,IAd,z7M,gnc,Ene,HVB,yAu,VGd,OVB,F_M,JAu,Fa,j9,aAu,$00,V6,u_Y,qgu,O9,nRY,UWd,X2G,CR7,PR0,qi,f97,a6,keB,Js,$L,mWA,ut,ikc,Tqc,Zk0,rxe,Nqt,MXW,s2u,dWS,Gee,AxM,KSu,p2A,j2c,tXM,oRY,BqG,DW0,vRu,LSu,cxS,xWm,R$t,l9m,h$W,w2e, bk7,e$B,WSt,nO,I9e,z$W,gR0,ERW,Hkt,VXe,FSe,Jx0,qZY,a9G,$Wu,U8,YAu,u0Y,UDe,kz7,PG,XWA,CO,SAu,Cfu,fPS,Qfu,iQe,N6u,r3c,Mct,sfe,dD0,fO,Gzd,ZQY,T6u,jfu,Kjm,pWS,LjM,tc7,B6d,Y7,oNm,c3d,vNY,DDc,R5A,xDc,h5A,wWA,lPt,YQ,yBA,e5t,bQm,IPe,OQt,ENB,HQu,y3G,FjA,qAY,fU0,NB,gNG,z5e,J37,QB,Vcu,Rr,PU,SZu,nXt,u2c,UAd,kGd,XO0,PcG,A3A,TR,Zo,$Du,SSd,YS0,Ccd,Q6,s6e,zUd,Q27,aP7,VFW,rw,MB,GRt,s8,AsM,j6B,K1M,pte,L10,BN0,oLt,DiB,csG,RM0,xiS,G9,W17,hMm,wt0,Io0,zMe,gLc,A1,ELd,dw,HSt,bSW,loA,jk,ysB,vLW,V97,KO,F1u,OSu,q9u,aoM,$iB, JsA,pO,nQu,u40,mB0,k97,UB0,XGM,PtW,LO,S8m,CtA,Qzu,NwA,fWS,iOu,szW,Twm,r1G,MkS,dBd,G9u,A1u,KFG,jzc,pGu,LFm,t1,tku,Bwt,c1t,oQe,vQt,Ry7,xBd,lWY,wGu,eyA,hy7,bOt,IWu,zyu,DBm,gQu,WFW,oz,EQS,HOG,y1d,Vku,vG,FFm,OOY,J1c,q8t,aWG,u9M,$B7,k17,Rz,YKA,mwG,DW,fd0,XRW,lt,h1,Qnd,xQ,NJ7,ww,TJ0,ZLG,SKt,CgY,rbm,MSS,snt,PgB,dwY,WG,G1W,iLB,Pfe,cG,jnG,Kde,pRY,LdB,tSe,BJY,ozS,cbc,vzB,RZd,DwM,ld0,hZG,wRS,xwe,Wd7,eZY,bLW,Ide,zZA,gzS,ybu,HLu,Ez7,VSd,Iz,O17,OLY,Fdc,z9,JbB,qKu,E8,Yjc,uN0,HG,UQm,kDm,ngd,$wA,yE,gw,adu,F4,VE,mQW, J1,O8,CKM,NOe,Z_t,TOu,MNm,PKe,i_0,sW0,SjM,dQc,GD0,ALt,ug,qB,pHG,LfB,jWW,$Q,BOG,oge,QWS,fRe,tNA,cLm,rLu,KfS,XHu,nL,UK,kz,vgu,md,wHt,xQu,WfW,lRt,DQS,e1t,R1c,z1Y,b_t,X9,ggu,H_M,VNc,O_G,qjd,fL,aRW,Fft,Yz,u7Y,n_A,T1,YZu,PR,ULe,kIY,X4c,mLe,PxW,YrG,Nw,SrW,CxS,fgc,NiW,Q7e,Wjc,Qe,iWW,Tie,ZWW,Mpt,rSd,yLu,dL7,s7G,ig,SS,GIt,Mw,ASB,j7A,K7m,p47,L77,rJ,JLu,diM,az,tp0,sK,BiG,o_d,cSe,v_u,Rvc,DL0,dJ,G1,hvG,w4G,W7M,xLY,lg0,Ab,zve,bWc,Igu,g_d,E_M,jS,HWY,ySd,Vpt,KL,OWY,JSG,qru,age,pL,F7m,LL,tb,$Lt,Ybe,u1G,nfB,Uad,k7G, maM,cR,BR,on,XJ7,vR,PCe,Sbu,CCS,Q4G,fsu,WR,i9B,Z9W,NBd,TBB,eS,rhS,bg,MxW,In,s4Y,daY,j4c,LNt,G7M,KNY,z1,AhA,pJ0,txA,BBY,ofW,ch7,EK,vfY,Ve,HR,RpM,OK,F9,xa7,lsY,qw,an,hpW,Jb,$z,WNM,wJB,uK,n_,Uj,IsG,epc,b9e,kg,zp7,yh7,Efu,gfc,H9t,mf,O9A,asc,$aG,XN,YYG,FNB,uB7,PH,JhG,ka7,SN,C_,mRG,X9M,PHA,SYu,CHd,NQ,NkW,idY,ZdG,iK,QXW,MRY,QU,ZR,TD,fxd,GaM,dRA,GD,AfW,Kl7,Lle,jXt,AL,sj,K_,dO,p9B,jN,tR0,p_,Bku,oGu,cft,L_,tL,vGM,RGM,DRc,xRW,lxA,hGu,w9A,bdA,WlY,Ixe,zGc,HdB,yfY,$R7,WH,n0B,mcG,kWu,Uc7,qYW,axA,VRA,FlB,YnS,eN, bK,Pl0,J3,dbW,SnA,zD,Ej,Clu,fVS,Odu,ult,NWd,iaG,ZaG,HH,aW,r9W,Mjc,swm,$g,dcY,A9W,GW0,jwA,Y_,ux,KIu,tjM,BWA,k_,LIt,o07,c9S,pKG,P4,v0u,RuY,X7,Dcu,xc0,lVu,huu,WIS,wKA,IVu,zuB,eue,E0d,HaB,baW,fW,QX,y9Y,FIu,NL,OaY,VjY,J90,aVS,qn7,$cB,ix,YkW,uwS,nJ7,Uru,kU7,mrA,XXd,SkY,P1B,C1c,fKm,QMM,NxB,i7t,TxY,TI,Zg,ri,rvd,Mmt,Z7M,jMd,K8u,pXG,BxM,tmS,L8e,oJM,cvd,ML,sr,vJt,Rft,Drc,xrY,hft,wXS,GI,W8G,di,jp,lKG,KW,ef7,b7m,IKe,zf7,gJu,pW,EJS,H7A,O7u,LW,F8M,VmY,tS,B4,o7,qkG,aKM,$rS,Jvc,u6W,Y4t,nDA,c4,UU0,kku,Xbd,CXd,mUu, PXu,v4,ffM,NtS,iMB,Tt7,r4e,R7,Dg,Mtu,Qie,Gkm,dUG,siG,x_,lx,jiM,A4B,hS,wi,W4,KAm,ep,pbS,LAc,ttu,Btm,bx,oD0,I7,c4M,zI,vDu,gi,Er,RgM,H4,DU7,yX,VX,lfe,WA0,egu,xUA,bMG,gDB,EDA,HMY,zge,IfM,Vtm,y4e,OMA,q4G,JS,$US,afY,FAu,J4G,Y3t,uFe,qL,a7,nOS,Uom,k8m,mot,XM7,PVu,CVc,fhc,sG7,iZB,ZZG,QGc,G8d,kf,X1,LeM,tDS,C9,BIA,f9,oOB,A_G,Ub,iC,Na,PJ,vOe,RbB,Zs,xoW,hbA,lhG,T7,Sx,n9,Doe,Qb,jGc,c_c,Weu,$_,rB,ebG,bZu,mN,Ket,Ma,sb,IhW,dB,G7,Ah,zbG,gOt,HZd,y_G,EOd,jx,VDS,K9,p9,OZA,FeB,J_e,q3c,$oY,YGe,nMu,uqY,U$M,th,L9,ahe,kJm, X$e,m$W,BJ,o4,PMA,CMB,fjd,cJ,SGu,QqS,N4d,ZsG,vJ,isc,T4e,rNB,MTB,Ds,xf,d$W,sqM,GJm,lC,hh,jqc,ANt,KyG,Ly7,p$M,tTu,WJ,B4M,oMd,bC,cN0,Rl7,vMW,z7,D$G,x$c,ljd,w$0,WyA,elA,hl7,bsY,Ij7,zlG,gMB,EMS,Hsd,yNM,VTt,Os7,HJ,Fyd,JNB,qGM,$$e,Upc,uWG,ajS,Ob,YBm,Vb,nxm,F1,mpA,kXc,Jh,PPu,SBe,CPu,ZOu,YG,cR0,a4,uH,$f,UY,f6d,kG,TvB,rKG,M7Y,dpA,syG,GXM,AKG,jy0,p8u,L6S,t7W,BvY,K6d,l6t,h4A,xpu,w8t,e4u,I6c,z4u,gxY,Cd,blc,W6Y,oxd,fd,yKt,V7W,Hlt,Ex7,JKA,F6d,qB7,a6u,$pB,Y1M,Q4,uPG,R4m,P9,n2u,UCY,kxd,mCm,cKS,vxB,SR,S1S,CES,flA, QOB,Xzd,NR,PEY,i8M,MYS,Zx,sOS,dCt,T_t,rk,GxY,AiG,N_d,jO7,ri0,Kp7,MR,Ta,pzd,tY7,LpA,iH,o2A,sY,$QB,ciM,DCd,R2u,llG,h2W,xCB,Ga,dk,WpB,e2B,b80,IlA,Jic,yiY,VYB,E2M,g2A,Kd,YIu,alB,umY,nte,jR,Ld,tf,Xsm,mhu,kMS,oX,Fpd,Dx,SIc,RX,B9,fQd,Qgm,N10,q1M,hf,W9,iem,O8S,Piu,c9,Zeu,pd,T1c,rVu,MQu,IX,Ci0,sgu,dhc,za,gk,GMY,v9,$C7,AV0,jgd,wk,KYB,xG,psG,lH,WW,LYe,B1e,EY,H9,otY,cVG,vtt,bH,eR,RCM,v2t,DhB,H8G,xh0,lQd,hCB,ws7,y4,V4,beG,gtA,HeM,eCM,$hd,YOB,uvS,nZd,U6t,kVd,m6u,Ppu,XE0,OY,FB,Jf,SOe,CpS,fcY,GA,QNt,qR,NQ7,aX,ift, $G,Y0,Zfu,fI,ul,h0,TQS,$B,wne,rrc,R3,M5m,CK,fK,sNc,c3,d6G,GVm,Yi,E90,Ar0,jNA,KEd,na,LEG,t5m,Un,mI,Xl,BQu,vZS,RP7,PK,D6B,oZd,lcG,crd,x6u,hPA,wES,WEm,ePm,Sj,Ic7,DnS,Sr,oj,zPM,gZG,Rj,bfB,Ti,EZA,HfB,yrd,Ca,yD,OfY,FEc,fa,Q_,Jru,Nc,il,k0,qOm,act,U4B,ZV,TW,$6d,rW,Mc,YuG,sn,udu,dW,GW,neg,UmQ,RYu,A9,k0C,XcX,mmB,jj,Ka,PBg,pa,SuQ,CBg,fu$,Qt$,NGq,iYu,TGG,t9,ZYL,r7G,MM$,stQ,dmG,KWB,G0C,A7Q,jtX,LW$,BGX,oeR,c7$,tMG,BK,veX,RSL,DmL,xm$,luJ,cK,hSJ,vK,Rw,DV,wcL,WW$,bY$,IuL,zS$,geG,HYQ,Eey,y7y,x0,ll,FWu,VMQ,OYC,h9,J7X, quC,wW,WK,auB,ej,$mJ,bl,YqC,Iw,zW,uG$,gW,En,n$X,UXu,HK,y_,k$$,V_,mX$,XuC,qc,aw,PQ$,SqX,CQL,N$q,QLy,$0,iRu,ZRQ,T$$,I3G,fJB,MBq,sL$,G$C,Yud,fY;Ye=function(Y){return function(){return Yud[Y].apply(this,arguments)}}; g.ke=function(Y,u){return Yud[Y]=u}; udc=function(Y){var u=0;return function(){return u=this.length))return this[Y]}; qm=function(Y){return Y?Y:Fd}; iYc=function(Y,u,n){Y instanceof String&&(Y=String(Y));for(var U=Y.length-1;U>=0;U--){var k=Y[U];if(u.call(n,k,U,Y))return{Eu:U,VA:k}}return{Eu:-1,VA:void 0}}; at=function(Y){return Y?Y:function(u,n){return iYc(this,u,n).Eu}}; g.Y$=function(Y,u,n){Y=Y.split(".");n=n||g.$e;for(var U;Y.length&&(U=Y.shift());)Y.length||u===void 0?n[U]&&n[U]!==Object.prototype[U]?n=n[U]:n=n[U]={}:n[U]=u}; k$=function(Y,u){var n=g.nR("CLOSURE_FLAGS");Y=n&&n[Y];return Y!=null?Y:u}; g.nR=function(Y,u){Y=Y.split(".");u=u||g.$e;for(var n=0;n2){var U=Array.prototype.slice.call(arguments,2);return function(){var k=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(k,U);return Y.apply(u,k)}}return function(){return Y.apply(u,arguments)}}; g.fR=function(Y,u,n){g.fR=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?r7d:MMG;return g.fR.apply(null,arguments)}; g.QC=function(Y,u){var n=Array.prototype.slice.call(arguments,1);return function(){var U=n.slice();U.push.apply(U,arguments);return Y.apply(this,U)}}; g.iQ=function(){return Date.now()}; ZJ=function(Y){return Y}; g.T$=function(Y,u){function n(){} n.prototype=u.prototype;Y.PM=u.prototype;Y.prototype=new n;Y.prototype.constructor=Y;Y.Sp=function(U,k,m){for(var X=Array(arguments.length-2),S=2;S=0;--n)n in U&&u.call(void 0,U[n],n,Y)}; g.G$=function(Y,u,n){u=d$(Y,u,n);return u<0?null:typeof Y==="string"?Y.charAt(u):Y[u]}; d$=function(Y,u,n){for(var U=Y.length,k=typeof Y==="string"?Y.split(""):Y,m=0;m=0;U--)if(U in k&&u.call(n,k[U],U,Y))return U;return-1}; g.jB=function(Y,u){return jtm(Y,u)>=0}; KWM=function(Y){if(!Array.isArray(Y))for(var u=Y.length-1;u>=0;u--)delete Y[u];Y.length=0}; g.pR=function(Y,u){u=jtm(Y,u);var n;(n=u>=0)&&g.KR(Y,u);return n}; g.KR=function(Y,u){return Array.prototype.splice.call(Y,u,1).length==1}; g.cu=function(Y,u){u=d$(Y,u);u>=0&&g.KR(Y,u)}; pcG=function(Y,u){var n=0;A7B(Y,function(U,k){u.call(void 0,U,k,Y)&&g.KR(Y,k)&&n++})}; g.vu=function(Y){return Array.prototype.concat.apply([],arguments)}; g.RL=function(Y){var u=Y.length;if(u>0){for(var n=Array(u),U=0;U>>1),C=void 0;n?C=u.call(void 0,Y[S],S,Y):C=u(U,Y[S]);C>0?k=S+1:(m=S,X=!C)}return X?k:-k-1}; g.VC=function(Y,u){Y.sort(u||IL)}; BGS=function(Y,u){var n=IL;g.VC(Y,function(U,k){return n(u(U),u(k))})}; g.Oq=function(Y,u,n){if(!g.mg(Y)||!g.mg(u)||Y.length!=u.length)return!1;var U=Y.length;n=n||oeY;for(var k=0;ku?1:Y0&&(u[k]=U)},Y); return u}; eSA=function(Y){Y=Bq(Y);var u=[];g.$$(Y,function(n,U){U in Object.prototype||typeof n!="undefined"&&u.push([U,":",n].join(""))}); return u}; Iut=function(Y){p3(Y,"od",bYG);p3(Y,"opac",oK).K=!0;p3(Y,"sbeos",oK).K=!0;p3(Y,"prf",oK).K=!0;p3(Y,"mwt",oK).K=!0;p3(Y,"iogeo",oK)}; cq=function(Y,u){return Y.lastIndexOf(u,0)==0}; zSe=function(Y,u){var n=Y.length-u.length;return n>=0&&Y.indexOf(u,n)==n}; g.vq=function(Y){return/^[\s\xa0]*$/.test(Y)}; g.RK=function(Y,u){return Y.indexOf(u)!=-1}; xP=function(Y,u){return g.RK(Y.toLowerCase(),u.toLowerCase())}; g.wc=function(Y,u){var n=0;Y=l4(String(Y)).split(".");u=l4(String(u)).split(".");for(var U=Math.max(Y.length,u.length),k=0;n==0&&ku?1:0}; g.Wq=function(){var Y=g.$e.navigator;return Y&&(Y=Y.userAgent)?Y:""}; Hq=function(Y){if(!e8&&!b4||!EF)return!1;for(var u=0;u0:!1}; OF=function(){return Vq()?!1:yq("Opera")}; ged=function(){return Vq()?!1:yq("Trident")||yq("MSIE")}; Ee7=function(){return Vq()?Hq("Microsoft Edge"):yq("Edg/")}; FH=function(){return yq("Firefox")||yq("FxiOS")}; ql=function(){return yq("Safari")&&!(Jm()||(Vq()?0:yq("Coast"))||OF()||(Vq()?0:yq("Edge"))||Ee7()||(Vq()?Hq("Opera"):yq("OPR"))||FH()||yq("Silk")||yq("Android"))}; Jm=function(){return Vq()?Hq("Chromium"):(yq("Chrome")||yq("CriOS"))&&!(Vq()?0:yq("Edge"))||yq("Silk")}; HYB=function(){return yq("Android")&&!(Jm()||FH()||OF()||yq("Silk"))}; y77=function(Y){var u={};Y.forEach(function(n){u[n[0]]=n[1]}); return function(n){return u[n.find(function(U){return U in u})]||""}}; VMB=function(Y){var u=g.Wq();if(Y==="Internet Explorer"){if(ged())if((Y=/rv: *([\d\.]*)/.exec(u))&&Y[1])u=Y[1];else{Y="";var n=/MSIE +([\d\.]+)/.exec(u);if(n&&n[1])if(u=/Trident\/(\d.\d)/.exec(u),n[1]=="7.0")if(u&&u[1])switch(u[1]){case "4.0":Y="8.0";break;case "5.0":Y="9.0";break;case "6.0":Y="10.0";break;case "7.0":Y="11.0"}else Y="7.0";else Y=n[1];u=Y}else u="";return u}var U=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");n=[];for(var k;k=U.exec(u);)n.push([k[1],k[2],k[3]||void 0]); u=y77(n);switch(Y){case "Opera":if(OF())return u(["Version","Opera"]);if(Vq()?Hq("Opera"):yq("OPR"))return u(["OPR"]);break;case "Microsoft Edge":if(Vq()?0:yq("Edge"))return u(["Edge"]);if(Ee7())return u(["Edg"]);break;case "Chromium":if(Jm())return u(["Chrome","CriOS","HeadlessChrome"])}return Y==="Firefox"&&FH()||Y==="Safari"&&ql()||Y==="Android Browser"&&HYB()||Y==="Silk"&&yq("Silk")?(u=n[2])&&u[1]||"":""}; OYA=function(Y){if(Vq()&&Y!=="Silk"){var u=EF.brands.find(function(n){return n.brand===Y}); if(!u||!u.version)return NaN;u=u.version.split(".")}else{u=VMB(Y);if(u==="")return NaN;u=u.split(".")}return u.length===0?NaN:Number(u[0])}; J7m=function(){var Y=null;if(!FWc)return Y;try{var u=function(n){return n}; Y=FWc.createPolicy("goog#html",{createHTML:u,createScript:u,createScriptURL:u})}catch(n){}return Y}; $P=function(){aK===void 0&&(aK=J7m());return aK}; Yr=function(Y){this.K=Y}; u5=function(Y){var u=$P();Y=u?u.createScriptURL(Y):Y;return new Yr(Y)}; UW=function(Y){if(Y instanceof Yr)return Y.K;throw Error("");}; kr=function(Y){this.K=Y}; g.mG=function(Y){if(Y instanceof kr)return Y.K;throw Error("");}; Xy=function(Y){this.QY=Y}; Pp=function(Y){return new Xy(function(u){return u.substr(0,Y.length+1).toLowerCase()===Y+":"})}; g.SO=function(Y,u){u=u===void 0?quA:u;a:if(u=u===void 0?quA:u,!(Y instanceof kr)){for(var n=0;n4);k++)u[tq(Y[k])]||(n+="\nInner error "+U++ +": ",Y[k].stack&&Y[k].stack.indexOf(Y[k].toString())==0||(n+=typeof Y[k]==="string"?Y[k]:Y[k].message+"\n"),n+=pu(Y[k],u));k")!=-1&&(Y=Y.replace(CQt,">")),Y.indexOf('"')!=-1&&(Y=Y.replace(fJM,""")),Y.indexOf("'")!=-1&&(Y=Y.replace(QL7,"'")),Y.indexOf("\x00")!=-1&&(Y=Y.replace(N$u,"�")));return Y}; g.DO=function(Y){return Y==null?"":String(Y)}; xr=function(Y){for(var u=0,n=0;n>>0;return u}; l5=function(Y){var u=Number(Y);return u==0&&g.vq(Y)?NaN:u}; iRc=function(Y){return String(Y).replace(/\-([a-z])/g,function(u,n){return n.toUpperCase()})}; ZRB=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; T$0=function(Y){return Y.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(u,n,U){return n+U.toUpperCase()})}; ryt=function(Y){var u=1;Y=Y.split(":");for(var n=[];u>0&&Y.length;)n.push(Y.shift()),u--;Y.length&&n.push(Y.join(":"));return n}; hq=function(){return e8||b4?!!EF&&!!EF.platform:!1}; MBu=function(){return hq()?EF.platform==="Android":yq("Android")}; wS=function(){return yq("iPhone")&&!yq("iPod")&&!yq("iPad")}; Wp=function(){return wS()||yq("iPad")||yq("iPod")}; eO=function(){return hq()?EF.platform==="macOS":yq("Macintosh")}; sL0=function(){return hq()?EF.platform==="Windows":yq("Windows")}; b5=function(Y){b5[" "](Y);return Y}; ID=function(Y,u){try{return b5(Y[u]),!0}catch(n){}return!1}; G$A=function(Y,u){var n=dXS;return Object.prototype.hasOwnProperty.call(n,Y)?n[Y]:n[Y]=u(Y)}; g.zr=function(Y){return G$A(Y,function(){return g.wc(Ayc,Y)>=0})}; g.gS=function(Y,u,n){return Math.min(Math.max(Y,u),n)}; g.EW=function(Y,u){Y%=u;return Y*u<0?Y+u:Y}; Hp=function(Y,u,n){return Y+n*(u-Y)}; g.yO=function(Y,u){this.x=Y!==void 0?Y:0;this.y=u!==void 0?u:0}; VO=function(Y,u){return Y==u?!0:Y&&u?Y.x==u.x&&Y.y==u.y:!1}; g.OW=function(Y,u){this.width=Y;this.height=u}; g.Fy=function(Y,u){return Y==u?!0:Y&&u?Y.width==u.width&&Y.height==u.height:!1}; Jq=function(Y){return Y.width*Y.height}; aD=function(Y,u){this.K=Y===q5&&u||""}; $r=function(Y){if(Y instanceof i5)return Y;Y=String(Y).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return ZO(Y)}; KgB=function(Y){return jLA(Y)}; jLA=function(Y){var u=$r("");return ZO(Y.map(function(n){return Tr($r(n))}).join(Tr(u).toString()))}; o$M=function(Y){var u;if(!puA.test("div"))throw Error("");if(Lgu.indexOf("DIV")!==-1)throw Error("");var n="":(Y=KgB(u.map(function(U){return U instanceof i5?U:$r(String(U))})),n+=">"+Y.toString()+""); return ZO(n)}; tBG=function(Y){for(var u="",n=Object.keys(Y),U=0;U2&&hXu(k,X,U,2);return X}; hXu=function(Y,u,n,U){function k(S){S&&u.appendChild(typeof S==="string"?Y.createTextNode(S):S)} for(;U0)k(m);else{a:{if(m&&typeof m.length=="number"){if(g.XG(m)){var X=typeof m.item=="function"||typeof m.item=="string";break a}if(typeof m==="function"){X=typeof m.item=="function";break a}}X=!1}g.Jy(X?g.RL(m):m,k)}}}; g.rh=function(Y){return ZD(document,Y)}; ZD=function(Y,u){u=String(u);Y.contentType==="application/xhtml+xml"&&(u=u.toLowerCase());return Y.createElement(u)}; g.MK=function(Y){return document.createTextNode(String(Y))}; g.sD=function(Y,u){Y.appendChild(u)}; g.dh=function(Y){for(var u;u=Y.firstChild;)Y.removeChild(u)}; Go=function(Y,u,n){Y.insertBefore(u,Y.childNodes[n]||null)}; g.A5=function(Y){return Y&&Y.parentNode?Y.parentNode.removeChild(Y):null}; g.jw=function(Y,u){if(!Y||!u)return!1;if(Y.contains&&u.nodeType==1)return Y==u||Y.contains(u);if(typeof Y.compareDocumentPosition!="undefined")return Y==u||!!(Y.compareDocumentPosition(u)&16);for(;u&&Y!=u;)u=u.parentNode;return u==Y}; ni=function(Y){return Y.nodeType==9?Y:Y.ownerDocument||Y.document}; g.Ki=function(Y,u){if("textContent"in Y)Y.textContent=u;else if(Y.nodeType==3)Y.data=String(u);else if(Y.firstChild&&Y.firstChild.nodeType==3){for(;Y.lastChild!=Y.firstChild;)Y.removeChild(Y.lastChild);Y.firstChild.data=String(u)}else g.dh(Y),Y.appendChild(ni(Y).createTextNode(String(u)))}; Wge=function(Y){return Y.tagName=="A"&&Y.hasAttribute("href")||Y.tagName=="INPUT"||Y.tagName=="TEXTAREA"||Y.tagName=="SELECT"||Y.tagName=="BUTTON"?!Y.disabled&&(!Y.hasAttribute("tabindex")||wuB(Y)):Y.hasAttribute("tabindex")&&wuB(Y)}; wuB=function(Y){Y=Y.tabIndex;return typeof Y==="number"&&Y>=0&&Y<32768}; ou=function(Y,u,n){if(!u&&!n)return null;var U=u?String(u).toUpperCase():null;return B_(Y,function(k){return(!U||k.nodeName==U)&&(!n||typeof k.className==="string"&&g.jB(k.className.split(/\s+/),n))},!0)}; B_=function(Y,u,n){Y&&!n&&(Y=Y.parentNode);for(n=0;Y;){if(u(Y))return Y;Y=Y.parentNode;n++}return null}; uN=function(Y){this.K=Y||g.$e.document||document}; eXc=function(){this.K=this.BK=null}; c_=function(){}; Ru=function(){if(!v_())throw Error();}; v_=function(){return!(!DD||!DD.performance)}; bRu=function(Y){return g.NK?"webkit"+Y:Y.toLowerCase()}; x3=function(Y){return function(){return Y}}; g.lN=function(){}; IJM=function(Y){var u=u||0;return function(){return Y.apply(this,Array.prototype.slice.call(arguments,0,u))}}; h5=function(Y){var u=!1,n;return function(){u||(n=Y(),u=!0);return n}}; wh=function(Y){var u=Y;return function(){if(u){var n=u;u=null;n()}}}; W_=function(Y,u,n){var U=0;return function(k){g.$e.clearTimeout(U);var m=arguments;U=g.$e.setTimeout(function(){Y.apply(n,m)},u)}}; ew=function(Y,u,n,U){this.top=Y;this.right=u;this.bottom=n;this.left=U}; bN=function(Y){return Y.right-Y.left}; Iu=function(Y,u){return Y==u?!0:Y&&u?Y.top==u.top&&Y.right==u.right&&Y.bottom==u.bottom&&Y.left==u.left:!1}; zo=function(Y,u,n){u instanceof g.yO?(Y.left+=u.x,Y.right+=u.x,Y.top+=u.y,Y.bottom+=u.y):(Y.left+=u,Y.right+=u,typeof n==="number"&&(Y.top+=n,Y.bottom+=n));return Y}; g.gh=function(Y,u,n,U){this.left=Y;this.top=u;this.width=n;this.height=U}; ED=function(Y,u){return Y==u?!0:Y&&u?Y.left==u.left&&Y.width==u.width&&Y.top==u.top&&Y.height==u.height:!1}; g.yV=function(Y,u,n){if(typeof u==="string")(u=H_(Y,u))&&(Y.style[u]=n);else for(var U in u){n=Y;var k=u[U],m=H_(n,U);m&&(n.style[m]=k)}}; H_=function(Y,u){var n=zXd[u];if(!n){var U=iRc(u);n=U;Y.style[U]===void 0&&(U=(g.NK?"Webkit":VV?"Moz":null)+T$0(U),Y.style[U]!==void 0&&(n=U));zXd[u]=n}return n}; g.OD=function(Y,u){var n=Y.style[iRc(u)];return typeof n!=="undefined"?n:Y.style[H_(Y,u)]||""}; F8=function(Y,u){var n=ni(Y);return n.defaultView&&n.defaultView.getComputedStyle&&(Y=n.defaultView.getComputedStyle(Y,null))?Y[u]||Y.getPropertyValue(u)||"":""}; J5=function(Y,u){return F8(Y,u)||(Y.currentStyle?Y.currentStyle[u]:null)||Y.style&&Y.style[u]}; g.au=function(Y,u,n){if(u instanceof g.yO){var U=u.x;u=u.y}else U=u,u=n;Y.style.left=g.qK(U,!1);Y.style.top=g.qK(u,!1)}; $3=function(Y){try{return Y.getBoundingClientRect()}catch(u){return{left:0,top:0,right:0,bottom:0}}}; g$W=function(Y){var u=ni(Y),n=J5(Y,"position"),U=n=="fixed"||n=="absolute";for(Y=Y.parentNode;Y&&Y!=u;Y=Y.parentNode)if(Y.nodeType==11&&Y.host&&(Y=Y.host),n=J5(Y,"position"),U=U&&n=="static"&&Y!=u.documentElement&&Y!=u.body,!U&&(Y.scrollWidth>Y.clientWidth||Y.scrollHeight>Y.clientHeight||n=="fixed"||n=="absolute"||n=="relative"))return Y;return null}; g.YS=function(Y){var u=ni(Y),n=new g.yO(0,0);if(Y==(u?ni(u):document).documentElement)return n;Y=$3(Y);u=mB(u);u=lJe(u.K);n.x=Y.left+u.x;n.y=Y.top+u.y;return n}; HRG=function(Y,u){var n=new g.yO(0,0),U=iN(ni(Y));if(!ID(U,"parent"))return n;do{var k=U==u?g.YS(Y):E$S(Y);n.x+=k.x;n.y+=k.y}while(U&&U!=u&&U!=U.parent&&(Y=U.frameElement)&&(U=U.parent));return n}; g.uF=function(Y,u){Y=yyB(Y);u=yyB(u);return new g.yO(Y.x-u.x,Y.y-u.y)}; E$S=function(Y){Y=$3(Y);return new g.yO(Y.left,Y.top)}; yyB=function(Y){if(Y.nodeType==1)return E$S(Y);Y=Y.changedTouches?Y.changedTouches[0]:Y;return new g.yO(Y.clientX,Y.clientY)}; g.nP=function(Y,u,n){if(u instanceof g.OW)n=u.height,u=u.width;else if(n==void 0)throw Error("missing height argument");Y.style.width=g.qK(u,!0);Y.style.height=g.qK(n,!0)}; g.qK=function(Y,u){typeof Y=="number"&&(Y=(u?Math.round(Y):Y)+"px");return Y}; g.Ui=function(Y){var u=VBA;if(J5(Y,"display")!="none")return u(Y);var n=Y.style,U=n.display,k=n.visibility,m=n.position;n.visibility="hidden";n.position="absolute";n.display="inline";Y=u(Y);n.display=U;n.position=m;n.visibility=k;return Y}; VBA=function(Y){var u=Y.offsetWidth,n=Y.offsetHeight,U=g.NK&&!u&&!n;return(u===void 0||U)&&Y.getBoundingClientRect?(Y=$3(Y),new g.OW(Y.right-Y.left,Y.bottom-Y.top)):new g.OW(u,n)}; g.kS=function(Y,u){Y.style.display=u?"":"none"}; mt=function(Y){return Y?Y.passive&&ORM()?Y:Y.capture||!1:!1}; X$=function(Y,u,n,U){return typeof Y.addEventListener==="function"?(Y.addEventListener(u,n,mt(U)),!0):!1}; Pi=function(Y){if(Y.prerendering)return 3;var u;return(u={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[Y.visibilityState||Y.webkitVisibilityState||Y.mozVisibilityState||""])!=null?u:0}; Fg0=function(){}; fP=function(Y){Y.YhF=!0;return Y}; Jym=function(){return(e8||b4)&&EF?EF.mobile:!QQ()&&(yq("iPod")||yq("iPhone")||yq("Android")||yq("IEMobile"))}; QQ=function(){return(e8||b4)&&EF?!EF.mobile&&(yq("iPad")||yq("Android")||yq("Silk")):yq("iPad")||yq("Android")&&!yq("Mobile")||yq("Silk")}; Nq=function(Y){try{return!!Y&&Y.location.href!=null&&ID(Y,"foo")}catch(u){return!1}}; iF=function(Y,u){if(Y)for(var n in Y)Object.prototype.hasOwnProperty.call(Y,n)&&u(Y[n],n,Y)}; aJu=function(){var Y=[];iF(qqc,function(u){Y.push(u)}); return Y}; $Xu=function(Y){var u,n;return(n=(u=/https?:\/\/[^\/]+/.exec(Y))==null?void 0:u[0])!=null?n:""}; nPM=function(){var Y=YFM("IFRAME"),u={};g.Jy(uHS(),function(n){Y.sandbox&&Y.sandbox.supports&&Y.sandbox.supports(n)&&(u[n]=!0)}); return u}; YFM=function(Y,u){u=u===void 0?document:u;return u.createElement(String(Y).toLowerCase())}; Ult=function(Y){for(var u=Y;Y&&Y!=Y.parent;)Y=Y.parent,Nq(Y)&&(u=Y);return u}; P4S=function(Y){Y=Y||Z1();for(var u=new kdM(g.$e.location.href,!1),n=null,U=Y.length-1,k=U;k>=0;--k){var m=Y[k];!n&&mlm.test(m.url)&&(n=m);if(m.url&&!m.K){u=m;break}}k=null;m=Y.length&&Y[U].url;u.depth!==0&&m&&(k=Y[U]);return new Xqe(u,k,n)}; Z1=function(){var Y=g.$e,u=[],n=null;do{var U=Y;try{var k=!!U&&U.location.href!=null&&ID(U,"foo")}catch(X){k=!1}if(k){var m=U.location.href;n=U.document&&U.document.referrer||null}else m=n,n=null;u.push(new kdM(m||""));try{Y=U.parent}catch(X){Y=null}}while(Y&&U!==Y);U=0;for(Y=u.length-1;U<=Y;++U)u[U].depth=Y-U;U=g.$e;if(U.location&&U.location.ancestorOrigins&&U.location.ancestorOrigins.length===u.length-1)for(Y=1;Yu&&(u=n.length);return 3997-u-Y.X.length-1}; si=function(Y,u){this.K=Y;this.depth=u}; QKB=function(){function Y(S,C){return S==null?C:S} var u=Z1(),n=Math.max(u.length-1,0),U=P4S(u);u=U.K;var k=U.j,m=U.X,X=[];m&&X.push(new si([m.url,m.K?2:0],Y(m.depth,1)));k&&k!=m&&X.push(new si([k.url,2],0));u.url&&u!=m&&X.push(new si([u.url,0],Y(u.depth,n)));U=g.dA(X,function(S,C){return X.slice(0,X.length-C)}); !u.url||(m||k)&&u!=m||(k=$Xu(u.url))&&U.push([new si([k,1],Y(u.depth,n))]);U.push([]);return g.dA(U,function(S){return fnA(n,S)})}; fnA=function(Y,u){g.GZ(u,function(k){return k.depth>=0}); var n=Az(u,function(k,m){return Math.max(k,m.depth)},-1),U=c7G(n+2); U[0]=Y;g.Jy(u,function(k){return U[k.depth+1]=k.K}); return U}; NcS=function(){var Y=Y===void 0?QKB():Y;return Y.map(function(u){return Mq(u)})}; i3c=function(Y){var u=!1;u=u===void 0?!1:u;DD.google_image_requests||(DD.google_image_requests=[]);var n=YFM("IMG",DD.document);u&&(n.attributionSrc="");n.src=Y;DD.google_image_requests.push(n)}; jE=function(Y){var u="o_";if(Y.o_&&Y.hasOwnProperty(u))return Y.o_;var n=new Y;Y.o_=n;Y.hasOwnProperty(u);return n}; KP=function(){this.j=new Fg0;this.K=v_()?new Ru:new c_}; Z37=function(){pP();var Y=DD.document;return!!(Y&&Y.body&&Y.body.getBoundingClientRect&&typeof DD.setInterval==="function"&&typeof DD.clearInterval==="function"&&typeof DD.setTimeout==="function"&&typeof DD.clearTimeout==="function")}; Tc7=function(){pP();return NcS()}; rmS=function(){}; pP=function(){var Y=jE(rmS);if(!Y.K){if(!DD)throw Error("Context has not been set and window is undefined.");Y.K=jE(KP)}return Y.K}; LP=function(){throw Error("Invalid UTF8");}; M8u=function(Y,u){u=String.fromCharCode.apply(null,u);return Y==null?u:Y+u}; AmY=function(Y){var u=!1;u=u===void 0?!1:u;if(sK7){if(u&&(dlc?!Y.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(Y)))throw Error("Found an unpaired surrogate");Y=(Gdc||(Gdc=new TextEncoder)).encode(Y)}else{for(var n=0,U=new Uint8Array(3*Y.length),k=0;k>6|192;else{if(m>=55296&&m<=57343){if(m<=56319&&k=56320&&X<=57343){m=(m-55296)*1024+ X-56320+65536;U[n++]=m>>18|240;U[n++]=m>>12&63|128;U[n++]=m>>6&63|128;U[n++]=m&63|128;continue}else k--}if(u)throw Error("Found an unpaired surrogate");m=65533}U[n++]=m>>12|224;U[n++]=m>>6&63|128}U[n++]=m&63|128}}Y=n===U.length?U:U.subarray(0,n)}return Y}; tz=function(Y){g.$e.setTimeout(function(){throw Y;},0)}; jKu=function(Y){return Array.prototype.map.call(Y,function(u){u=u.toString(16);return u.length>1?u:"0"+u}).join("")}; Ks0=function(Y){for(var u=[],n=0;n>6|192:((k&64512)==55296&&U+1>18|240,u[n++]=k>>12&63|128):u[n++]=k>>12|224,u[n++]=k>>6&63|128),u[n++]=k&63|128)}return u}; g.oE=function(Y,u){u===void 0&&(u=0);pqY();u=Lsd[u];for(var n=Array(Math.floor(Y.length/3)),U=u[64]||"",k=0,m=0;k>2];X=u[(X&3)<<4|S>>4];S=u[(S&15)<<2|C>>6];C=u[C&63];n[m++]=""+f+X+S+C}f=0;C=U;switch(Y.length-k){case 2:f=Y[k+1],C=u[(f&15)<<2]||U;case 1:Y=Y[k],n[m]=""+u[Y>>2]+u[(Y&3)<<4|f>>4]+C+U}return n.join("")}; g.ci=function(Y,u,n){if(t8d&&!u)Y=g.$e.btoa(Y);else{for(var U=[],k=0,m=0;m255){var S=Error("go/unicode-to-byte-error");if(n)throw S;U[k++]=X&255;X>>=8}U[k++]=X}Y=g.oE(U,u)}return Y}; oPA=function(Y){var u=[];Bcu(Y,function(n){u.push(n)}); return u}; vi=function(Y){var u=Y.length,n=u*3/4;n%3?n=Math.floor(n):g.RK("=.",Y[u-1])&&(n=g.RK("=.",Y[u-2])?n-2:n-1);var U=new Uint8Array(n),k=0;Bcu(Y,function(m){U[k++]=m}); return k!==n?U.subarray(0,k):U}; Bcu=function(Y,u){function n(C){for(;U>4);X!=64&&(u(m<<4&240|X>>2),S!=64&&u(X<<6&192|S))}}; pqY=function(){if(!RE){RE={};for(var Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),u=["+/=","+/","-_=","-_.","-_"],n=0;n<5;n++){var U=Y.concat(u[n].split(""));Lsd[n]=U;for(var k=0;k=u||(U[Y]=n+1,Y=Error(),k$0(Y,"incident"),tz(Y))}}; bF=function(Y,u,n){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(n===void 0?0:n)&&Symbol.for&&Y?Symbol.for(Y):Y!=null?Symbol(Y):Symbol():u}; gA=function(Y,u){IE||zZ in Y||eru(Y,b3S);Y[zZ]|=u}; Ei=function(Y,u){IE||zZ in Y||eru(Y,b3S);Y[zZ]=u}; Hi=function(){return typeof BigInt==="function"}; VQ=function(Y,u){return u===void 0?Y.K!==yQ&&!!(2&(Y.xV[zZ]|0)):!!(2&u)&&Y.K!==yQ}; Int=function(Y,u){if(Y!=null)if(typeof Y==="string")Y=Y?new D1(Y,xS):lF();else if(Y.constructor!==D1)if(wqB&&Y!=null&&Y instanceof Uint8Array)Y=Y.length?new D1(new Uint8Array(Y),xS):lF();else{if(!u)throw Error();Y=void 0}return Y}; Oi=function(Y,u){if(typeof u!=="number"||u<0||u>=Y.length)throw Error();}; zrd=function(Y,u,n){var U=u&128?0:-1,k=Y.length,m;if(m=!!k)m=Y[k-1],m=m!=null&&typeof m==="object"&&m.constructor===Object;var X=k+(m?-1:0);for(u=u&128?1:0;uu.length)return!1;if(Y.lengthk)return!1;if(U>>0;nn=u;Ua=(Y-u)/4294967296>>>0}; Xi=function(Y){if(Y<0){kd(0-Y);var u=g.A(mX(nn,Ua));Y=u.next().value;u=u.next().value;nn=Y>>>0;Ua=u>>>0}else kd(Y)}; S_=function(Y,u){var n=u*4294967296+(Y>>>0);return Number.isSafeInteger(n)?n:P7(Y,u)}; ymm=function(Y,u){var n=u&2147483648;n&&(Y=~Y+1>>>0,u=~u>>>0,Y==0&&(u=u+1>>>0));Y=S_(Y,u);return typeof Y==="number"?n?-Y:Y:n?"-"+Y:Y}; P7=function(Y,u){u>>>=0;Y>>>=0;if(u<=2097151)var n=""+(4294967296*u+Y);else Hi()?n=""+(BigInt(u)<>>24|u<<8)&16777215,u=u>>16&65535,Y=(Y&16777215)+n*6777216+u*6710656,n+=u*8147497,u*=2,Y>=1E7&&(n+=Y/1E7>>>0,Y%=1E7),n>=1E7&&(u+=n/1E7>>>0,n%=1E7),n=u+V8W(n)+V8W(Y));return n}; V8W=function(Y){Y=String(Y);return"0000000".slice(Y.length)+Y}; O3S=function(){var Y=nn,u=Ua;u&2147483648?Hi()?Y=""+(BigInt(u|0)<>>0)):(u=g.A(mX(Y,u)),Y=u.next().value,u=u.next().value,Y="-"+P7(Y,u)):Y=P7(Y,u);return Y}; Cn=function(Y){if(Y.length<16)Xi(Number(Y));else if(Hi())Y=BigInt(Y),nn=Number(Y&BigInt(4294967295))>>>0,Ua=Number(Y>>BigInt(32)&BigInt(4294967295));else{var u=+(Y[0]==="-");Ua=nn=0;for(var n=Y.length,U=0+u,k=(n-u)%6+u;k<=n;U=k,k+=6)U=Number(Y.slice(U,k)),Ua*=1E6,nn=nn*1E6+U,nn>=4294967296&&(Ua+=Math.trunc(nn/4294967296),Ua>>>=0,nn>>>=0);u&&(u=g.A(mX(nn,Ua)),Y=u.next().value,u=u.next().value,nn=Y,Ua=u)}}; mX=function(Y,u){u=~u;Y?Y=~Y+1:u+=1;return[Y,u]}; fn=function(Y){return Array.prototype.slice.call(Y)}; Q3=function(Y){if(Y!=null&&typeof Y!=="number")throw Error("Value of float/double field must be a number, found "+typeof Y+": "+Y);return Y}; Fsd=function(Y){return Y.displayName||Y.name||"unknown type name"}; Ne=function(Y){if(Y!=null&&typeof Y!=="boolean")throw Error("Expected boolean but got "+ZYt(Y)+": "+Y);return Y}; ZT=function(Y){switch(typeof Y){case "bigint":return!0;case "number":return im(Y);case "string":return JmB.test(Y);default:return!1}}; qFm=function(Y){if(typeof Y!=="number")throw Wi("int32");if(!im(Y))throw Wi("int32");return Y|0}; Tm=function(Y){return Y==null?Y:qFm(Y)}; rm=function(Y){if(Y==null)return Y;if(typeof Y==="string"&&Y)Y=+Y;else if(typeof Y!=="number")return;return im(Y)?Y|0:void 0}; Me=function(Y){if(Y==null)return Y;if(typeof Y==="string"&&Y)Y=+Y;else if(typeof Y!=="number")return;return im(Y)?Y>>>0:void 0}; YWt=function(Y){var u=0;u=u===void 0?0:u;if(!ZT(Y))throw Wi("int64");var n=typeof Y;switch(u){case 512:switch(n){case "string":return Gm(Y);case "bigint":return String(Au(64,Y));default:return j_(Y)}case 1024:switch(n){case "string":return anm(Y);case "bigint":return um(Au(64,Y));default:return $lA(Y)}case 0:switch(n){case "string":return Gm(Y);case "bigint":return um(Au(64,Y));default:return Kn(Y)}default:return N5(u,"Unknown format requested type for int64")}}; pn=function(Y){return Y==null?Y:YWt(Y)}; uym=function(Y){if(Y[0]==="-")return!1;var u=Y.length;return u<20?!0:u===20&&Number(Y.substring(0,6))<184467}; nrt=function(Y){var u=Y.length;return Y[0]==="-"?u<20?!0:u===20&&Number(Y.substring(0,7))>-922337:u<19?!0:u===19&&Number(Y.substring(0,6))<922337}; U5c=function(Y){if(Y<0){Xi(Y);var u=P7(nn,Ua);Y=Number(u);return Ln(Y)?Y:u}u=String(Y);if(uym(u))return u;Xi(Y);return S_(nn,Ua)}; krc=function(Y){if(nrt(Y))return Y;Cn(Y);return O3S()}; Kn=function(Y){ZT(Y);Y=tu(Y);Ln(Y)||(Xi(Y),Y=ymm(nn,Ua));return Y}; j_=function(Y){ZT(Y);Y=tu(Y);if(Ln(Y))Y=String(Y);else{var u=String(Y);nrt(u)?Y=u:(Xi(Y),Y=O3S())}return Y}; Gm=function(Y){ZT(Y);var u=tu(Number(Y));if(Ln(u))return String(u);u=Y.indexOf(".");u!==-1&&(Y=Y.substring(0,u));return krc(Y)}; anm=function(Y){var u=tu(Number(Y));if(Ln(u))return um(u);u=Y.indexOf(".");u!==-1&&(Y=Y.substring(0,u));return Hi()?um(Au(64,BigInt(Y))):um(krc(Y))}; $lA=function(Y){return Ln(Y)?um(Kn(Y)):um(j_(Y))}; m5A=function(Y){if(Y==null)return Y;var u=typeof Y;if(u==="bigint")return String(Au(64,Y));if(ZT(Y)){if(u==="string")return Gm(Y);if(u==="number")return Kn(Y)}}; P5B=function(Y){if(Y==null)return Y;var u=typeof Y;if(u==="bigint")return String(Xpd(64,Y));if(ZT(Y)){if(u==="string")return ZT(Y),u=tu(Number(Y)),Ln(u)&&u>=0?Y=String(u):(u=Y.indexOf("."),u!==-1&&(Y=Y.substring(0,u)),uym(Y)||(Cn(Y),Y=P7(nn,Ua))),Y;if(u==="number")return ZT(Y),Y=tu(Y),Y>=0&&Ln(Y)?Y:U5c(Y)}}; SWd=function(Y){if(Y==null||typeof Y=="string"||Y instanceof D1)return Y}; C5G=function(Y){if(typeof Y!=="string")throw Error();return Y}; B7=function(Y){if(Y!=null&&typeof Y!=="string")throw Error();return Y}; oH=function(Y){return Y==null||typeof Y==="string"?Y:void 0}; c7=function(Y,u){if(!(Y instanceof u))throw Error("Expected instanceof "+Fsd(u)+" but got "+(Y&&Fsd(Y.constructor)));return Y}; fOe=function(Y,u,n){if(Y!=null&&Y[v7]===RH)return Y;if(Array.isArray(Y)){var U=Y[zZ]|0;n=U|n&32|n&2;n!==U&&Ei(Y,n);return new u(Y)}}; DT=function(Y){return Y}; lm=function(Y){var u=ZJ(xd);return u?Y[u]:void 0}; hu=function(){}; wm=function(Y,u){for(var n in Y)!isNaN(n)&&u(Y,+n,Y[n])}; QDW=function(Y){var u=new hu;wm(Y,function(n,U,k){u[U]=fn(k)}); u.ow=Y.ow;return u}; iu0=function(Y,u){u<100||eE(NSS,1)}; IH=function(Y,u,n,U){var k=U!==void 0;U=!!U;var m=ZJ(xd),X;!k&&IE&&m&&(X=Y[m])&&wm(X,iu0);m=[];var S=Y.length;X=4294967295;var C=!1,f=!!(u&64),Q=f?u&128?0:-1:void 0;if(!(u&1)){var N=S&&Y[S-1];N!=null&&typeof N==="object"&&N.constructor===Object?(S--,X=S):N=void 0;if(f&&!(u&128)&&!k){C=!0;var Z;X=((Z=W7)!=null?Z:DT)(X-Q,Q,Y,N,void 0)+Q}}u=void 0;for(Z=0;Z=X){var r=Z-Q,K=void 0;((K=u)!=null?K:u={})[r]=T}else m[Z]=T}if(N)for(var L in N)S=N[L],S!= null&&(S=n(S,U))!=null&&(Z=+L,T=void 0,f&&!Number.isNaN(Z)&&(T=Z+Q)0?void 0:Y===0?sD7||(sD7=[0,void 0]):[-Y,void 0];case "string":return[0,Y];case "object":return Y}}; y3=function(Y,u,n){return Y=H7(Y,u[0],u[1],n?1:2)}; H7=function(Y,u,n,U){U=U===void 0?0:U;if(Y==null){var k=32;n?(Y=[n],k|=128):Y=[];u&&(k=k&-8380417|(u&1023)<<13)}else{if(!Array.isArray(Y))throw Error("narr");k=Y[zZ]|0;if(Gru&&1&k)throw Error("rfarr");2048&k&&!(2&k)&&Aqu();if(k&256)throw Error("farr");if(k&64)return U!==0||k&2048||Ei(Y,k|2048),Y;if(n&&(k|=128,n!==Y[0]))throw Error("mid");a:{n=Y;k|=64;var m=n.length;if(m){var X=m-1,S=n[X];if(S!=null&&typeof S==="object"&&S.constructor===Object){u=k&128?0:-1;X-=u;if(X>=1024)throw Error("pvtlmt");for(var C in S)m= +C,m1024)throw Error("spvt");k=k&-8380417|(C&1023)<<13}}}k|=64;U===0&&(k|=2048);Ei(Y,k);return Y}; Aqu=function(){if(Gru)throw Error("carr");eE(jDe,5)}; KGY=function(Y,u){if(typeof Y!=="object")return Y;if(Array.isArray(Y)){var n=Y[zZ]|0;Y.length===0&&n&1?Y=void 0:n&2||(!u||4096&n||16&n?Y=V3(Y,n,!1,u&&!(n&16)):(gA(Y,34),n&4&&Object.freeze(Y)));return Y}if(Y!=null&&Y[v7]===RH)return u=Y.xV,n=u[zZ]|0,VQ(Y,n)?Y:Oa(Y,u,n)?Fi(Y,u):V3(u,n);if(Y instanceof D1)return Y}; Fi=function(Y,u,n){Y=new Y.constructor(u);n&&(Y.K=yQ);Y.j=yQ;return Y}; V3=function(Y,u,n,U){U!=null||(U=!!(34&u));Y=IH(Y,u,KGY,U);U=32;n&&(U|=2);u=u&8380609|U;Ei(Y,u);return Y}; ppW=function(Y){var u=Y.xV,n=u[zZ]|0;return VQ(Y,n)?Oa(Y,u,n)?Fi(Y,u,!0):new Y.constructor(V3(u,n,!1)):Y}; Ju=function(Y){if(Y.K!==yQ)return!1;var u=Y.xV;u=V3(u,u[zZ]|0);gA(u,2048);Y.xV=u;Y.K=void 0;Y.j=void 0;return!0}; qe=function(Y){if(!Ju(Y)&&VQ(Y,Y.xV[zZ]|0))throw Error();}; aH=function(Y,u){u===void 0&&(u=Y[zZ]|0);u&32&&!(u&4096)&&Ei(Y,u|4096)}; Oa=function(Y,u,n){return n&2?!0:n&32&&!(n&4096)?(Ei(u,n|2),Y.K=yQ,!0):!1}; Yl=function(Y,u,n,U,k){Object.isExtensible(Y);u=$d(Y.xV,u,n,k);if(u!==null||U&&Y.j!==yQ)return u}; $d=function(Y,u,n,U){if(u===-1)return null;var k=u+(n?0:-1),m=Y.length-1;if(!(m<1+(n?0:-1))){if(k>=m){var X=Y[m];if(X!=null&&typeof X==="object"&&X.constructor===Object){n=X[u];var S=!0}else if(k===m)n=X;else return}else n=Y[k];if(U&&n!=null){U=U(n);if(U==null)return U;if(!Object.is(U,n))return S?X[u]=U:Y[k]=U,U}return n}}; nr=function(Y,u,n,U){qe(Y);var k=Y.xV;uu(k,k[zZ]|0,u,n,U);return Y}; uu=function(Y,u,n,U,k){var m=n+(k?0:-1),X=Y.length-1;if(X>=1+(k?0:-1)&&m>=X){var S=Y[X];if(S!=null&&typeof S==="object"&&S.constructor===Object)return S[n]=U,u}if(m<=X)return Y[m]=U,u;if(U!==void 0){var C;X=((C=u)!=null?C:u=Y[zZ]|0)>>13&1023||536870912;n>=X?U!=null&&(m={},Y[X+(k?0:-1)]=(m[n]=U,m)):Y[m]=U}return u}; PZ=function(Y,u,n,U,k){var m=Y.xV,X=m[zZ]|0;U=VQ(Y,X)?1:U;k=!!k||U===3;U===2&&Ju(Y)&&(m=Y.xV,X=m[zZ]|0);Y=Ux(m,u);var S=Y===kl?7:Y[zZ]|0,C=mO(S,X);var f=4&C?!1:!0;if(f){4&C&&(Y=fn(Y),S=0,C=Xb(C,X),X=uu(m,X,u,Y));for(var Q=0,N=0;Q32)for(n|=(X&127)>>4,U=3;U<32&&X&128;U+=7)X=k[m++],n|=(X&127)<>>0,n>>>0);throw Error();}; gy=function(Y,u){Y.K=u;if(u>Y.X)throw Error();}; HZ=function(Y){var u=Y.j,n=Y.K,U=u[n++],k=U&127;if(U&128&&(U=u[n++],k|=(U&127)<<7,U&128&&(U=u[n++],k|=(U&127)<<14,U&128&&(U=u[n++],k|=(U&127)<<21,U&128&&(U=u[n++],k|=U<<28,U&128&&u[n++]&128&&u[n++]&128&&u[n++]&128&&u[n++]&128&&u[n++]&128)))))throw Error();gy(Y,n);return k}; yh=function(Y){var u=Y.j,n=Y.K,U=u[n+0],k=u[n+1],m=u[n+2];u=u[n+3];gy(Y,Y.K+4);return(U<<0|k<<8|m<<16|u<<24)>>>0}; Vh=function(Y){var u=yh(Y);Y=yh(Y);return S_(u,Y)}; Ox=function(Y){var u=yh(Y),n=yh(Y);Y=(n>>31)*2+1;var U=n>>>20&2047;u=4294967296*(n&1048575)+u;return U==2047?u?NaN:Y*Infinity:U==0?Y*4.9E-324*u:Y*Math.pow(2,U-1075)*(u+4503599627370496)}; Fb=function(Y){for(var u=0,n=Y.K,U=n+10,k=Y.j;nY.X)throw Error();Y.K=u;return n}; WG7=function(Y,u){if(u==0)return lF();var n=hVt(Y,u);Y.Ot&&Y.J?n=Y.j.subarray(n,n+u):(Y=Y.j,u=n+u,n=n===u?new Uint8Array(0):wpu?Y.slice(n,u):new Uint8Array(Y.subarray(n,u)));return n.length==0?lF():new D1(n,xS)}; q_=function(Y,u,n,U){if(JP.length){var k=JP.pop();k.init(Y,u,n,U);Y=k}else Y=new zT(Y,u,n,U);this.K=Y;this.G=this.K.K;this.j=this.X=-1;eVM(this,U)}; eVM=function(Y,u){u=u===void 0?{}:u;Y.Z7=u.Z7===void 0?!1:u.Z7}; buA=function(Y,u,n,U){if(ax.length){var k=ax.pop();eVM(k,U);k.K.init(Y,u,n,U);return k}return new q_(Y,u,n,U)}; IOu=function(Y){var u=Y.K;if(u.K==u.X)return!1;Y.G=Y.K.K;var n=HZ(Y.K)>>>0;u=n>>>3;n&=7;if(!(n>=0&&n<=5))throw Error();if(u<1)throw Error();Y.X=u;Y.j=n;return!0}; Sn=function(Y){switch(Y.j){case 0:Y.j!=0?Sn(Y):Fb(Y.K);break;case 1:Y=Y.K;gy(Y,Y.K+8);break;case 2:if(Y.j!=2)Sn(Y);else{var u=HZ(Y.K)>>>0;Y=Y.K;gy(Y,Y.K+u)}break;case 5:Y=Y.K;gy(Y,Y.K+4);break;case 3:u=Y.X;do{if(!IOu(Y))throw Error();if(Y.j==4){if(Y.X!=u)throw Error();break}Sn(Y)}while(1);break;default:throw Error();}}; C5=function(Y,u,n){var U=Y.K.X,k=HZ(Y.K)>>>0;k=Y.K.K+k;var m=k-U;m<=0&&(Y.K.X=k,n(u,Y,void 0,void 0,void 0),m=k-Y.K.K);if(m)throw Error();Y.K.K=k;Y.K.X=U}; NF=function(Y){var u=HZ(Y.K)>>>0;Y=Y.K;var n=hVt(Y,u);Y=Y.j;if(zVm){var U=Y,k;(k=f5)||(k=f5=new TextDecoder("utf-8",{fatal:!0}));u=n+u;U=n===0&&u===U.length?U:U.subarray(n,u);try{var m=k.decode(U)}catch(f){if(QZ===void 0){try{k.decode(new Uint8Array([128]))}catch(Q){}try{k.decode(new Uint8Array([97])),QZ=!0}catch(Q){QZ=!1}}!QZ&&(f5=void 0);throw f;}}else{m=n;u=m+u;n=[];for(var X=null,S,C;m=u?LP():(C=Y[m++],S<194||(C&192)!==128?(m--,LP()):n.push((S&31)<<6|C&63)): S<240?m>=u-1?LP():(C=Y[m++],(C&192)!==128||S===224&&C<160||S===237&&C>=160||((k=Y[m++])&192)!==128?(m--,LP()):n.push((S&15)<<12|(C&63)<<6|k&63)):S<=244?m>=u-2?LP():(C=Y[m++],(C&192)!==128||(S<<28)+(C-144)>>30!==0||((k=Y[m++])&192)!==128||((U=Y[m++])&192)!==128?(m--,LP()):(S=(S&7)<<18|(C&63)<<12|(k&63)<<6|U&63,S-=65536,n.push((S>>10&1023)+55296,(S&1023)+56320))):LP(),n.length>=8192&&(X=M8u(X,n),n.length=0);m=M8u(X,n)}return m}; grt=function(Y){var u=HZ(Y.K)>>>0;return WG7(Y.K,u)}; i7=function(Y,u){this.j=Y>>>0;this.K=u>>>0}; Hu0=function(Y){if(!Y)return Er7||(Er7=new i7(0,0));if(!/^\d+$/.test(Y))return null;Cn(Y);return new i7(nn,Ua)}; ZY=function(Y,u){this.j=Y>>>0;this.K=u>>>0}; VOG=function(Y){if(!Y)return yqu||(yqu=new ZY(0,0));if(!/^-?\d+$/.test(Y))return null;Cn(Y);return new ZY(nn,Ua)}; TB=function(){this.K=[]}; r0=function(Y,u,n){for(;n>0||u>127;)Y.K.push(u&127|128),u=(u>>>7|n<<25)>>>0,n>>>=7;Y.K.push(u)}; MF=function(Y,u){for(;u>127;)Y.K.push(u&127|128),u>>>=7;Y.K.push(u)}; OuG=function(Y,u){if(u>=0)MF(Y,u);else{for(var n=0;n<9;n++)Y.K.push(u&127|128),u>>=7;Y.K.push(1)}}; sM=function(Y,u){Y.K.push(u>>>0&255);Y.K.push(u>>>8&255);Y.K.push(u>>>16&255);Y.K.push(u>>>24&255)}; FGB=function(){this.X=[];this.j=0;this.K=new TB}; d0=function(Y,u){u.length!==0&&(Y.X.push(u),Y.j+=u.length)}; Jqc=function(Y,u){GB(Y,u,2);u=Y.K.end();d0(Y,u);u.push(Y.j);return u}; qWM=function(Y,u){var n=u.pop();for(n=Y.j+Y.K.length()-n;n>127;)u.push(n&127|128),n>>>=7,Y.j++;u.push(n);Y.j++}; GB=function(Y,u,n){MF(Y.K,u*8+n)}; aOu=function(Y,u,n){if(n!=null){switch(typeof n){case "string":Hu0(n)}GB(Y,u,1);switch(typeof n){case "number":Y=Y.K;kd(n);sM(Y,nn);sM(Y,Ua);break;case "bigint":n=BigInt.asUintN(64,n);n=new i7(Number(n&BigInt(4294967295)),Number(n>>BigInt(32)));Y=Y.K;u=n.K;sM(Y,n.j);sM(Y,u);break;default:n=Hu0(n),Y=Y.K,u=n.K,sM(Y,n.j),sM(Y,u)}}}; AZ=function(Y,u,n){GB(Y,u,2);MF(Y.K,n.length);d0(Y,Y.K.end());d0(Y,n)}; jn=function(){function Y(){throw Error();} Object.setPrototypeOf(Y,Y.prototype);return Y}; K5=function(Y,u,n){this.xV=H7(Y,u,n)}; $5G=function(Y,u){if(u==null||u=="")return new Y;u=JSON.parse(u);if(!Array.isArray(u))throw Error("dnarr");gA(u,32);return new Y(u)}; L5=function(Y,u,n){this.BU=Y;this.QA=u;Y=ZJ(p5);this.K=!!Y&&n===Y||!1}; tZ=function(Y,u){var n=n===void 0?p5:n;return new L5(Y,u,n)}; u80=function(Y,u,n,U,k){u=YDc(u,U);u!=null&&(n=Jqc(Y,n),k(u,Y),qWM(Y,n))}; cf=function(Y,u,n,U){var k=U[Y];if(k)return k;k={};k.zn=U;k.uK=d5u(U[0]);var m=U[1],X=1;m&&m.constructor===Object&&(k.extensions=m,m=U[++X],typeof m==="function"&&(k.KH=!0,Bf!=null||(Bf=m),oA!=null||(oA=U[X+1]),m=U[X+=2]));for(var S={};m&&Array.isArray(m)&&m.length&&typeof m[0]==="number"&&m[0]>0;){for(var C=0;C>BigInt(32)));r0(Y.K,n.j,n.K);break;default:n=VOG(u),r0(Y.K,n.j,n.K)}}}; aA=function(Y,u,n){u=rm(u);u!=null&&u!=null&&(GB(Y,n,0),OuG(Y.K,u))}; ZiB=function(Y,u,n){u=u==null||typeof u==="boolean"?u:typeof u==="number"?!!u:void 0;u!=null&&(GB(Y,n,0),Y.K.K.push(u?1:0))}; Th7=function(Y,u,n){u=oH(u);u!=null&&AZ(Y,n,AmY(u))}; r5B=function(Y,u,n,U,k){u=YDc(u,U);u!=null&&(n=Jqc(Y,n),k(u,Y),qWM(Y,n))}; sut=function(){var Y=$m;this.K=Mwd;this.isRepeated=0;this.j=pr;this.defaultValue=void 0;this.X=Y.messageId!=null?F$:void 0}; dK0=function(Y,u){return function(n,U){var k={DO:!0};U&&Object.assign(k,U);n=buA(n,void 0,void 0,k);try{var m=new Y,X=m.xV;xm(u)(X,n);var S=m}finally{n.free()}return S}}; GoS=function(Y){return function(){var u=new FGB;fDu(this.xV,u,cf(g0,Wf,EM,Y));d0(u,u.K.end());for(var n=new Uint8Array(u.j),U=u.X,k=U.length,m=0,X=0;X-1)return u.apply(null,g.Zu(n));try{return Y.K=Y.X.K.now(),u.apply(null,g.Zu(n))}finally{Y.G+=Y.X.K.now()-Y.K,Y.K=-1,Y.j+=1}}}; juW=function(Y,u){this.j=Y;this.X=u;this.K=new A5B(Y)}; KBS=function(){this.K={}}; LBM=function(){var Y=Uf().flags,u=p_G;Y=Y.K[u.key];if(u.valueType==="proto"){try{var n=JSON.parse(Y);if(Array.isArray(n))return n}catch(U){}return u.defaultValue}return typeof Y===typeof u.defaultValue?Y:u.defaultValue}; c5c=function(){this.X=void 0;this.j=this.W=0;this.J=-1;this.ju=new K3;p3(this.ju,"mv",twS).K=!0;p3(this.ju,"omid",oK);p3(this.ju,"epoh",oK).K=!0;p3(this.ju,"epph",oK).K=!0;p3(this.ju,"umt",oK).K=!0;p3(this.ju,"phel",oK).K=!0;p3(this.ju,"phell",oK).K=!0;p3(this.ju,"oseid",Bhd).K=!0;var Y=this.ju;Y.K.sloi||(Y.K.sloi=new Am);Y.K.sloi.K=!0;p3(this.ju,"mm",ks);p3(this.ju,"ovms",o30).K=!0;p3(this.ju,"xdi",oK).K=!0;p3(this.ju,"amp",oK).K=!0;p3(this.ju,"prf",oK).K=!0;p3(this.ju,"gtx",oK).K=!0;p3(this.ju, "mvp_lv",oK).K=!0;p3(this.ju,"ssmol",oK).K=!0;p3(this.ju,"fmd",oK).K=!0;p3(this.ju,"gen204simple",oK);this.K=new juW(pP(),this.ju);this.G=!1;this.flags=new KBS}; Uf=function(){return jE(c5c)}; v37=function(Y,u,n,U){if(Math.random()<(U||Y.K))try{if(n instanceof TZ)var k=n;else k=new TZ,iF(n,function(X,S){var C=k,f=C.G++;X=rA(S,X);C.K.push(f);C.j[f]=X}); var m=k.Ff(Y.j,"pagead2.googlesyndication.com","/pagead/gen_204?id="+u+"&");m&&(pP(),i3c(m))}catch(X){}}; RE7=function(Y,u,n){n=n===void 0?{}:n;this.error=Y;this.meta=n;this.context=u.context;this.msg=u.message||"";this.id=u.id||"jserror"}; DKA=function(){var Y=Y===void 0?g.$e:Y;return(Y=Y.performance)&&Y.now&&Y.timing?Math.floor(Y.now()+Y.timing.navigationStart):g.iQ()}; xKu=function(){var Y=Y===void 0?g.$e:Y;return(Y=Y.performance)&&Y.now?Y.now():null}; lDB=function(Y,u,n){this.label=Y;this.type=u;this.value=n;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; Xf=function(){var Y=window;this.events=[];this.j=Y||g.$e;var u=null;Y&&(Y.google_js_reporting_queue=Y.google_js_reporting_queue||[],this.events=Y.google_js_reporting_queue,u=Y.google_measure_js_timing);this.K=m0()||(u!=null?u:Math.random()<1)}; hEW=function(Y){Y&&PS&&m0()&&(PS.clearMarks("goog_"+Y.label+"_"+Y.uniqueId+"_start"),PS.clearMarks("goog_"+Y.label+"_"+Y.uniqueId+"_end"))}; SV=function(Y,u,n,U,k,m,X){var S="";Y&&(S+=Y+":");n&&(S+="//",u&&(S+=u+"@"),S+=n,U&&(S+=":"+U));k&&(S+=k);m&&(S+="?"+m);X&&(S+="#"+X);return S}; g.Co=function(Y){return Y.match(w_S)}; WBA=function(Y){return Y?decodeURI(Y):Y}; g.fo=function(Y){return WBA(g.Co(Y)[3]||null)}; Qi=function(Y){return WBA(g.Co(Y)[5]||null)}; g.eEm=function(Y){Y=g.Co(Y);return SV(Y[1],Y[2],Y[3],Y[4])}; Nk=function(Y){Y=g.Co(Y);return SV(null,null,null,null,Y[5],Y[6],Y[7])}; biM=function(Y){var u=Y.indexOf("#");return u<0?Y:Y.slice(0,u)}; i8=function(Y,u){if(Y){Y=Y.split("&");for(var n=0;n=0){var m=Y[n].substring(0,U);k=Y[n].substring(U+1)}else m=Y[n];u(m,k?vp(k):"")}}}; Zq=function(Y,u){if(!u)return Y;var n=Y.indexOf("#");n<0&&(n=Y.length);var U=Y.indexOf("?");if(U<0||U>n){U=n;var k=""}else k=Y.substring(U+1,n);Y=[Y.slice(0,U),k,Y.slice(n)];n=Y[1];Y[1]=u?n?n+"&"+u:u:n;return Y[0]+(Y[1]?"?"+Y[1]:"")+Y[2]}; Tb=function(Y,u,n){if(Array.isArray(u))for(var U=0;U=0&&un)k=n;U+=u.length+1;return vp(Y.slice(U,k!==-1?k:0))}; Ko=function(Y,u){for(var n=Y.search(AQ),U=0,k,m=[];(k=Gb(Y,U,u,n))>=0;)m.push(Y.substring(U,k)),U=Math.min(Y.indexOf("&",k)+1||n,n);m.push(Y.slice(U));return m.join("").replace(g3M,"$1")}; E3Y=function(Y,u,n){return sf(Ko(Y,u),u,n)}; Hiu=function(){var Y=po;this.K=Lo;this.CI="jserror";this.eV=!0;this.l1=null;this.j=this.RI;this.C0=Y===void 0?null:Y}; y5Y=function(Y,u,n){var U=tQ;return no(Uf().K.K,function(){try{if(U.C0&&U.C0.K){var k=U.C0.start(Y.toString(),3);var m=u();U.C0.end(k)}else m=u()}catch(S){var X=U.eV;try{hEW(k),X=U.j(Y,new BS(ov(S)),void 0,n)}catch(C){U.RI(217,C)}if(!X)throw S;}return m})()}; cS=function(Y,u,n,U){return no(Uf().K.K,function(){var k=g.It.apply(0,arguments);return y5Y(Y,function(){return u.apply(n,k)},U)})}; ov=function(Y){var u=Y.toString();Y.name&&u.indexOf(Y.name)==-1&&(u+=": "+Y.name);Y.message&&u.indexOf(Y.message)==-1&&(u+=": "+Y.message);if(Y.stack)a:{Y=Y.stack;var n=u;try{Y.indexOf(n)==-1&&(Y=n+"\n"+Y);for(var U;Y!=U;)U=Y,Y=Y.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");u=Y.replace(/\n */g,"\n");break a}catch(k){u=n;break a}u=void 0}return u}; BS=function(Y){RE7.call(this,Error(Y),{message:Y})}; VwS=function(){DD&&typeof DD.google_measure_js_timing!="undefined"&&(DD.google_measure_js_timing||po.disable())}; OiB=function(Y){tQ.l1=function(u){g.Jy(Y,function(n){n(u)})}}; FBM=function(Y,u){return y5Y(Y,u)}; vS=function(Y,u){return cS(Y,u)}; Rv=function(Y,u,n,U){tQ.RI(Y,u,n,U)}; Dq=function(){return Date.now()-J50}; qDW=function(){var Y=Uf().X,u=xs>=0?Dq()-xs:-1,n=l8?Dq()-hQ:-1,U=w3>=0?Dq()-w3:-1;if(Y==947190542)return 100;if(Y==79463069)return 200;Y=[2E3,4E3];var k=[250,500,1E3];Rv(637,Error(),.001);var m=u;n!=-1&&n1500&&U<4E3?500:X}; WS=function(Y,u,n){var U=new ew(0,0,0,0);this.time=Y;this.volume=null;this.X=u;this.K=U;this.j=n}; eV=function(Y,u,n,U,k,m,X,S){this.G=Y;this.S=u;this.X=n;this.W=U;this.K=k;this.J=m;this.j=X;this.Z=S}; $Ke=function(Y){var u=Y!==Y.top,n=Y.top===Ult(Y),U=-1,k=0;if(u&&n&&Y.top.mraid){U=3;var m=Y.top.mraid}else U=(m=Y.mraid)?u?n?2:1:0:-1;m&&(m.IS_GMA_SDK||(k=2),Dmt(aDM,function(X){return typeof m[X]==="function"})||(k=1)); return{Ce:m,compatibility:k,KMc:U}}; YiA=function(){var Y=window.document;return Y&&typeof Y.elementFromPoint==="function"}; u$G=function(Y,u,n){if(Y&&u!==null&&u!=u.top){if(!u.top)return new g.OW(-12245933,-12245933);u=u.top}try{return(n===void 0?0:n)?(new g.OW(u.innerWidth,u.innerHeight)).round():DXe(u||window).round()}catch(U){return new g.OW(-12245933,-12245933)}}; b8=function(Y,u,n){try{if(Y){if(!u.top)return new ew(-12245933,-12245933,-12245933,-12245933);u=u.top}var U=u$G(Y,u,n),k=U.height,m=U.width;if(m===-12245933)return new ew(m,m,m,m);var X=mB(u.document);var S=lJe(X.K);var C=S.x,f=S.y;return new ew(f,C+m,f+k,C)}catch(Q){return new ew(-12245933,-12245933,-12245933,-12245933)}}; Iv=function(Y,u){u=Math.pow(10,u);return Math.floor(Y*u)/u}; nSG=function(Y){return new ew(Y.top,Y.right,Y.bottom,Y.left)}; Uq7=function(Y){var u=Y.top||0,n=Y.left||0;return new ew(u,n+(Y.width||0),u+(Y.height||0),n)}; zb=function(Y){return Y!=null&&Y>=0&&Y<=1}; kZA=function(){var Y=g.Wq();return Y?g3("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(u){return xP(Y,u)})||xP(Y,"OMI/")&&!xP(Y,"XiaoMi/")?!0:xP(Y,"Presto")&&xP(Y,"Linux")&&!xP(Y,"X11")&&!xP(Y,"Android")&&!xP(Y,"Mobi"):!1}; mqe=function(){this.X=!Nq(DD.top);this.isMobileDevice=QQ()||Jym();var Y=Z1();this.domain=Y.length>0&&Y[Y.length-1]!=null&&Y[Y.length-1].url!=null?g.fo(Y[Y.length-1].url)||"":"";this.K=new ew(0,0,0,0);this.G=new g.OW(0,0);this.J=new g.OW(0,0);this.S=new ew(0,0,0,0);this.frameOffset=new g.yO(0,0);this.W=0;this.Z=!1;this.j=!(!DD||!$Ke(DD).Ce);this.update(DD)}; Xi7=function(Y,u){u&&u.screen&&(Y.G=new g.OW(u.screen.width,u.screen.height))}; PFd=function(Y,u){a:{var n=Y.K?new g.OW(bN(Y.K),Y.K.getHeight()):new g.OW(0,0);u=u===void 0?DD:u;u!==null&&u!=u.top&&(u=u.top);var U=0,k=0;try{var m=u.document,X=m.body,S=m.documentElement;if(m.compatMode=="CSS1Compat"&&S.scrollHeight)U=S.scrollHeight!=n.height?S.scrollHeight:S.offsetHeight,k=S.scrollWidth!=n.width?S.scrollWidth:S.offsetWidth;else{var C=S.scrollHeight,f=S.scrollWidth,Q=S.offsetHeight,N=S.offsetWidth;S.clientHeight!=Q&&(C=X.scrollHeight,f=X.scrollWidth,Q=X.offsetHeight,N=X.offsetWidth); C>n.height?C>Q?(U=C,k=f):(U=Q,k=N):C0||Y.Z)return!0;Y=pP().j.isVisible();var u=Pi(HS)===0;return Y||u}; Ef=function(){return jE(mqe)}; Vi=function(Y){this.X=Y;this.j=0;this.K=null}; Of=function(Y,u,n){this.X=Y;this.JJ=n===void 0?"na":n;this.J=[];this.isInitialized=!1;this.G=new WS(-1,!0,this);this.K=this;this.Z=u;this.KG=this.N=!1;this.rg="uk";this.DW=!1;this.W=!0}; Ff=function(Y,u){g.jB(Y.J,u)||(Y.J.push(u),u.kz(Y.K),u.rF(Y.G),u.uJ()&&(Y.N=!0))}; Sid=function(Y){Y=Y.K;Y.PO();Y.vO();var u=Ef();u.S=b8(!1,Y.X,u.isMobileDevice);PFd(Ef(),Y.X);Y.G.K=Y.GF()}; CFc=function(Y){Y.N=Y.J.length?g3(Y.J,function(u){return u.uJ()}):!1}; f1W=function(Y){var u=g.RL(Y.J);g.Jy(u,function(n){n.rF(Y.G)})}; JQ=function(Y){var u=g.RL(Y.J);g.Jy(u,function(n){n.kz(Y.K)}); Y.K!=Y||f1W(Y)}; qk=function(Y,u,n,U){this.element=Y;this.K=new ew(0,0,0,0);this.X=null;this.W=new ew(0,0,0,0);this.j=u;this.ju=n;this.DW=U;this.jG=!1;this.timestamp=-1;this.N=new eV(u.G,this.element,this.K,new ew(0,0,0,0),0,0,Dq(),0);this.J=void 0}; QEu=function(Y,u){return Y.J?new ew(Math.max(u.top+Y.J.top,u.top),Math.min(u.left+Y.J.right,u.right),Math.min(u.top+Y.J.bottom,u.bottom),Math.max(u.left+Y.J.left,u.left)):u.clone()}; av=function(Y){this.J=!1;this.K=Y;this.G=function(){}}; NAe=function(Y,u,n){this.X=n===void 0?0:n;this.j=Y;this.K=u==null?"":u}; iPW=function(Y){switch(Math.trunc(Y.X)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; ZPA=function(Y,u){return Y.Xu.X?!1:Y.ju.j?!1:typeof Y.Ktypeof u.K?!1:Y.K0?U[n]-U[n-1]:U[n]})}; QW=function(){this.j=new mP;this.JJ=this.Fk=0;this.zZ=new k5;this.oV=this.S=-1;this.Pz=1E3;this.Uc=new mP([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.rg=this.jG=-1}; NP=function(Y,u){return pic(Y.j,u===void 0?!0:u)}; iI=function(Y,u,n,U){var k=k===void 0?!1:k;n=cS(U,n);X$(Y,u,n,{capture:k})}; T5=function(Y,u){u=ZN(u);return u===0?0:ZN(Y)/u}; ZN=function(Y){return Math.max(Y.bottom-Y.top,0)*Math.max(Y.right-Y.left,0)}; LXG=function(Y,u){if(!Y||!u)return!1;for(var n=0;Y!==null&&n++<100;){if(Y===u)return!0;try{if(Y=Y.parentElement||Y){var U=ni(Y),k=U&&iN(U),m=k&&k.frameElement;m&&(Y=m)}}catch(X){break}}return!1}; t_d=function(Y,u,n){if(!Y||!u)return!1;u=zo(Y.clone(),-u.left,-u.top);Y=(u.left+u.right)/2;u=(u.top+u.bottom)/2;Nq(window.top)&&window.top&&window.top.document&&(window=window.top);if(!YiA())return!1;Y=window.document.elementFromPoint(Y,u);if(!Y)return!1;u=(u=(u=ni(n))&&u.defaultView&&u.defaultView.frameElement)&&LXG(u,Y);var U=Y===n;Y=!U&&Y&&B_(Y,function(k){return k===n}); return!(u||U||Y)}; BmA=function(Y,u,n,U){return Ef().X?!1:bN(Y)<=0||Y.getHeight()<=0?!0:n&&U?FBM(208,function(){return t_d(Y,u,n)}):!1}; r2=function(Y,u,n){g.e.call(this);this.position=odc.clone();this.Ix=this.z7();this.xY=-2;this.timeCreated=Date.now();this.Ug=-1;this.mV=u;this.dY=null;this.C3=!1;this.WF=null;this.opacity=-1;this.requestSource=n;this.BVG=!1;this.hH=function(){}; this.Wb=function(){}; this.xv=new eXc;this.xv.BK=Y;this.xv.K=Y;this.HK=!1;this.dA={yQ:null,DD:null};this.GQ=!0;this.U8=null;this.T$=this.yB=!1;Uf().W++;this.oM=this.Vw();this.TQ=-1;this.gp=null;this.hasCompleted=this.uu=!1;this.ju=new K3;Iut(this.ju);cuB(this);this.requestSource==1?L3(this.ju,"od",1):L3(this.ju,"od",0)}; cuB=function(Y){Y=Y.xv.BK;var u;if(u=Y&&Y.getAttribute)u=/-[a-z]/.test("googleAvInapp")?!1:vd0&&Y.dataset?"googleAvInapp"in Y.dataset:Y.hasAttribute?Y.hasAttribute("data-"+ZRB()):!!Y.getAttribute("data-"+ZRB());u&&(Ef().j=!0)}; Aj=function(Y,u){u!=Y.T$&&(Y.T$=u,Y=Ef(),u?Y.W++:Y.W>0&&Y.W--)}; RKu=function(Y,u){if(Y.gp){if(u.getName()===Y.gp.getName())return;Y.gp.dispose();Y.gp=null}u=u.create(Y.xv.K,Y.ju,Y.uJ());if(u=u!=null&&u.observe()?u:null)Y.gp=u}; De0=function(Y,u,n){if(!Y.dY||Y.mV==-1||u.j===-1||Y.dY.j===-1)return 0;Y=u.j-Y.dY.j;return Y>n?0:Y}; xeG=function(Y,u,n){if(Y.gp){Y.gp.eL();var U=Y.gp.N,k=U.G,m=k.K;if(U.W!=null){var X=U.X;Y.WF=new g.yO(X.left-m.left,X.top-m.top)}m=Y.Kz()?Math.max(U.K,U.J):U.K;X={};k.volume!==null&&(X.volume=k.volume);k=Y.xG(U);Y.dY=U;Y.QF(m,u,n,!1,X,k,U.Z)}}; lTA=function(Y){if(Y.C3&&Y.U8){var u=tm(Y.ju,"od")==1,n=Ef().K,U=Y.U8,k=Y.gp?Y.gp.getName():"ns",m=Y.WF,X=new g.OW(bN(n),n.getHeight());n=Y.Kz();Y={unG:k,WF:m,n$2:X,Kz:n,AS:Y.oM.AS,IoZ:u};if(u=U.j){u.eL();k=u.N;m=k.G.K;var S=X=null;k.W!=null&&m&&(X=k.X,X=new g.yO(X.left-m.left,X.top-m.top),S=new g.OW(m.right-m.left,m.bottom-m.top));k=n?Math.max(k.K,k.J):k.K;n={unG:u.getName(),WF:X,n$2:S,Kz:n,IoZ:!1,AS:k}}else n=null;n&&AzW(U,Y,n)}}; hKG=function(Y,u,n){u&&(Y.hH=u);n&&(Y.Wb=n)}; g.j$=function(){}; g.Kc=function(Y){return{value:Y,done:!1}}; w7G=function(){this.G=this.K=this.X=this.j=this.J=0}; WXd=function(Y){var u={};var n=g.iQ()-Y.J;u=(u.ptlt=n,u);(n=Y.j)&&(u.pnk=n);(n=Y.X)&&(u.pnc=n);(n=Y.G)&&(u.pnmm=n);(Y=Y.K)&&(u.pns=Y);return u}; eKS=function(){aL.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; pc=function(Y){return zb(Y.volume)&&Y.volume>0}; Lc=function(Y,u,n,U){n=n===void 0?!0:n;U=U===void 0?function(){return!0}:U; return function(k){var m=k[Y];if(Array.isArray(m)&&U(k))return bne(m,u,n)}}; tj=function(Y,u){return function(n){return u(n)?n[Y]:void 0}}; ITY=function(Y){return function(u){for(var n=0;n0?m[k-1]+1:0,U+1).reduce(function(X,S){return X+S},0)})}; zK0=function(){this.j=this.K=""}; gdY=function(){}; oQ=function(Y,u){var n={};if(Y!==void 0)if(u!=null)for(var U in u){var k=u[U];U in Object.prototype||k!=null&&(n[U]=typeof k==="function"?k(Y):Y[k])}else g.sF(n,Y);return uI(Y5(new $s,n))}; Ed7=function(){var Y={};this.j=(Y.vs=[1,0],Y.vw=[0,1],Y.am=[2,2],Y.a=[4,4],Y.f=[8,8],Y.bm=[16,16],Y.b=[32,32],Y.avw=[0,64],Y.avs=[64,0],Y.pv=[256,256],Y.gdr=[0,512],Y.p=[0,1024],Y.r=[0,2048],Y.m=[0,4096],Y.um=[0,8192],Y.ef=[0,16384],Y.s=[0,32768],Y.pmx=[0,16777216],Y.mut=[33554432,33554432],Y.umutb=[67108864,67108864],Y.tvoff=[134217728,134217728],Y);this.K={};for(var u in this.j)this.j[u][1]>0&&(this.K[u]=0);this.X=0}; cV=function(Y,u){var n=Y.j[u],U=n[1];Y.X+=n[0];U>0&&Y.K[u]==0&&(Y.K[u]=1)}; HnG=function(Y){var u=g.C3(Y.j),n=0,U;for(U in Y.K)g.jB(u,U)&&Y.K[U]==1&&(n+=Y.j[U][1],Y.K[U]=2);return n}; yu7=function(Y){var u=0,n;for(n in Y.K){var U=Y.K[n];if(U==1||U==2)u+=Y.j[n][1]}return u}; vV=function(){this.K=this.j=0}; RQ=function(){QW.call(this);this.X=new k5;this.CG=this.N=this.DW=0;this.Z=-1;this.Iu=new k5;this.J=new k5;this.K=new mP;this.W=this.G=-1;this.KG=new k5;this.Pz=2E3;this.MF=new vV;this.dg=new vV;this.TZ=new vV}; DN=function(Y,u,n){var U=Y.CG;l8||n||Y.Z==-1||(U+=u-Y.Z);return U}; V_e=function(){this.X=!1}; x5=function(Y,u){this.X=!1;this.G=Y;this.N=u;this.J=0}; hj=function(Y,u){x5.call(this,Y,u);this.S=[]}; OnY=function(){}; w2=function(){}; WV=function(Y,u,n,U){qk.call(this,Y,u,n,U)}; e$=function(Y,u,n){qk.call(this,null,Y,u,n);this.Z=Y.isActive();this.S=0}; bI=function(Y){return[Y.top,Y.left,Y.bottom,Y.right]}; IQ=function(Y,u,n,U,k,m){m=m===void 0?new w2:m;r2.call(this,u,n,U);this.O2=k;this.iO=0;this.jp={};this.BW=new Ed7;this.ev={};this.vc="";this.TZ=null;this.nT=!1;this.K=[];this.Me=m.j();this.W=m.X();this.G=null;this.X=-1;this.JJ=this.N=void 0;this.oV=this.KG=0;this.rg=-1;this.Pz=this.dg=!1;this.DW=this.Z=this.j=this.Vn=this.Ru=0;new mP;this.MF=this.CG=0;this.zZ=-1;this.L1=0;this.S=g.lN;this.jG=[this.z7()];this.lN=2;this.IG={};this.IG.pause="p";this.IG.resume="r";this.IG.skip="s";this.IG.mute="m";this.IG.unmute= "um";this.IG.exitfullscreen="ef";this.J=null;this.Uc=this.Iu=!1;this.Gw=Math.floor(Date.now()/1E3-1704067200);this.Fk=0}; z5=function(Y){Y.hasCompleted=!0;Y.L1!=0&&(Y.L1=3)}; g2=function(Y){return Y===void 0?Y:Number(Y)?Iv(Y,3):0}; Eo=function(Y,u){return Y.jG[u!=null&&uMath.max(1E4,Y.X/3)?0:u);var n=Y.S(Y)||{};n=n.currentTime!==void 0?n.currentTime:Y.KG;var U=n-Y.KG,k=0;U>=0?(Y.oV+=u,Y.MF+=Math.max(u-U,0),k=Math.min(U,Y.oV)):Y.CG+=Math.abs(U);U!=0&&(Y.oV=0);Y.zZ==-1&&U>0&&(Y.zZ=w3>=0?Dq()-w3:-1);Y.KG=n;return k}; qaM=function(Y,u){g3(Y.W,function(n){return n.G==u.G})||Y.W.push(u)}; aTe=function(Y){var u=S$(Y.rO().K,1);return HV(Y,u)}; HV=function(Y,u,n){return u>=15E3?!0:Y.dg?(n===void 0?0:n)?!0:Y.X>0?u>=Y.X/2:Y.rg>0?u>=Y.rg:!1:!1}; $eM=function(Y){var u=Iv(Y.oM.AS,2),n=Y.BW.X,U=Y.oM,k=Eo(Y),m=g2(k.G),X=g2(k.W),S=g2(U.volume),C=Iv(k.S,2),f=Iv(k.oV,2),Q=Iv(U.AS,2),N=Iv(k.jG,2),Z=Iv(k.rg,2);U=Iv(U.iy,2);var T=Y.Kf().clone().round();Y=Y.gp&&Y.gp.X?(Y.gp?Y.gp.X:null).clone().round():null;k=NP(k,!1);return{Rtk:u,ip:n,Rx:m,aR:X,mZ:S,hM:C,Us:f,AS:Q,j9:N,Nq:Z,iy:U,position:T,rz:Y,GS:k}}; ub7=function(Y,u){YxG(Y.K,u,function(){return{Rtk:0,ip:void 0,Rx:-1,aR:-1,mZ:-1,hM:-1,Us:-1,AS:-1,j9:-1,Nq:-1,iy:-1,position:void 0,rz:void 0,GS:[]}}); Y.K[u]=$eM(Y)}; YxG=function(Y,u,n){for(var U=Y.length;U0?1:0;N.atos= XI(f.K);N.ssb=XI(f.Uc,!1);N.amtos=pic(f.K,!1);N.uac=Y.Ru;N.vpt=f.X.K;Q=="nio"&&(N.nio=1,N.avms="nio");N.gmm="4";N.gdr=HV(Y,f.X.K,!0)?1:0;N.efpf=Y.lN;if(Q=="gsv"||Q=="nis")Q=Y.gp,Q.S>0&&(N.nnut=Q.S);N.tcm=FXe(Y);N.nmt=Y.CG;N.bt=Y.MF;N.pst=Y.zZ;N.vpaid=Y.N;N.dur=Y.X;N.vmtime=Y.KG;N.is=Y.BW.X;Y.K.length>=1&&(N.i0=Y.K[0].ip,N.a0=[Y.K[0].mZ],N.c0=[Y.K[0].AS],N.ss0=[Y.K[0].iy],Q=Y.K[0].position,m=Y.K[0].rz,N.p0=Q?bI(Q):void 0,Q&&m&&!Iu(m,Q)&&(N.cp0=bI(m)));Y.K.length>=2&&(N.i1=Y.K[1].ip,N.a1=Oo(Y.K[1].Rx, Y.K[1].mZ,Y.K[1].aR),N.c1=Oo(Y.K[1].hM,Y.K[1].AS,Y.K[1].Us),N.ss1=Oo(Y.K[1].j9,Y.K[1].iy,Y.K[1].Nq),Q=Y.K[1].position,m=Y.K[1].rz,N.p1=Q?bI(Q):void 0,Q&&m&&!Iu(m,Q)&&(N.cp1=bI(m)),N.mtos1=Y.K[1].GS);Y.K.length>=3&&(N.i2=Y.K[2].ip,N.a2=Oo(Y.K[2].Rx,Y.K[2].mZ,Y.K[2].aR),N.c2=Oo(Y.K[2].hM,Y.K[2].AS,Y.K[2].Us),N.ss2=Oo(Y.K[2].j9,Y.K[2].iy,Y.K[2].Nq),Q=Y.K[2].position,m=Y.K[2].rz,N.p2=Q?bI(Q):void 0,Q&&m&&!Iu(m,Q)&&(N.cp2=bI(m)),N.mtos2=Y.K[2].GS);Y.K.length>=4&&(N.i3=Y.K[3].ip,N.a3=Oo(Y.K[3].Rx,Y.K[3].mZ, Y.K[3].aR),N.c3=Oo(Y.K[3].hM,Y.K[3].AS,Y.K[3].Us),N.ss3=Oo(Y.K[3].j9,Y.K[3].iy,Y.K[3].Nq),Q=Y.K[3].position,m=Y.K[3].rz,N.p3=Q?bI(Q):void 0,Q&&m&&!Iu(m,Q)&&(N.cp3=bI(m)),N.mtos3=Y.K[3].GS);N.cs=yu7(Y.BW);u&&(N.ic=HnG(Y.BW),N.dvpt=f.X.j,N.dvs=fc(f.j,.5),N.dfvs=fc(f.j,1),N.davs=fc(f.K,.5),N.dafvs=fc(f.K,1),n&&(f.X.j=0,Ltu(f.j),Ltu(f.K)),Y.W3()&&(N.dtos=f.DW,N.dav=f.N,N.dtoss=Y.iO+1,n&&(f.DW=0,f.N=0,Y.iO++)),N.dat=f.J.j,N.dft=f.KG.j,n&&(f.J.j=0,f.KG.j=0));N.ps=[S.J.width,S.J.height];N.bs=[bN(S.K),S.K.getHeight()]; N.scs=[S.G.width,S.G.height];N.dom=S.domain;Y.Vn&&(N.vds=Y.Vn);if(Y.W.length>0||Y.Me)u=g.RL(Y.W),Y.Me&&u.push(Y.Me),N.pings=g.dA(u,function(Z){return Z.toString()}); u=g.dA(g.BV(Y.W,function(Z){return Z.W()}),function(Z){return Z.getId()}); LWe(u);N.ces=u;Y.j&&(N.vmer=Y.j);Y.Z&&(N.vmmk=Y.Z);Y.DW&&(N.vmiec=Y.DW);N.avms=Y.gp?Y.gp.getName():"ns";Y.gp&&g.sF(N,Y.gp.I8());U?(N.c=Iv(Y.oM.AS,2),N.ss=Iv(Y.oM.iy,2)):N.tth=Dq()-m_7;N.mc=Iv(f.oV,2);N.nc=Iv(f.S,2);N.mv=g2(f.W);N.nv=g2(f.G);N.lte=Iv(Y.xY,2);U=Eo(Y,k);NP(f);N.qmtos=NP(U);N.qnc=Iv(U.S,2);N.qmv=g2(U.W);N.qnv=g2(U.G);N.qas=U.G>0?1:0;N.qi=Y.vc;N.avms||(N.avms="geo");N.psm=f.MF.K;N.psv=f.MF.getValue();N.psfv=f.dg.getValue();N.psa=f.TZ.getValue();C=eSA(C.ju);C.length&&(N.veid=C);Y.J&&g.sF(N, WXd(Y.J));N.avas=Y.Je();N.vs=Y.rf();N.co=XZB(Y);N.tm=f.Fk;N.tu=f.JJ;return N}; nlu=function(Y,u){if(g.jB(Put,u))return!0;var n=Y.jp[u];return n!==void 0?(Y.jp[u]=!0,!n):!1}; XZB=function(Y){var u=Y.Fk.toString(10).padStart(2,"0");u=""+Y.Gw+u;Y.Fk<99&&Y.Fk++;return u}; Cuu=function(){this.K={};var Y=iN();FI(this,Y,document);var u=Sxm();try{if("1"==u){for(var n=Y.parent;n!=Y.top;n=n.parent)FI(this,n,n.document);FI(this,Y.top,Y.top.document)}}catch(U){}}; Sxm=function(){var Y=document.documentElement;try{if(!Nq(iN().top))return"2";var u=[],n=iN(Y.ownerDocument);for(Y=n;Y!=n.top;Y=Y.parent)if(Y.frameElement)u.push(Y.frameElement);else break;return u&&u.length!=0?"1":"0"}catch(U){return"2"}}; FI=function(Y,u,n){iI(n,"mousedown",function(){return fEW(Y)},301); iI(u,"scroll",function(){return QxS(Y)},302); iI(n,"touchmove",function(){return Nyu(Y)},303); iI(n,"mousemove",function(){return irM(Y)},304); iI(n,"keydown",function(){return ZrW(Y)},305)}; fEW=function(Y){g.$$(Y.K,function(u){u.X>1E5||++u.X})}; QxS=function(Y){g.$$(Y.K,function(u){u.K>1E5||++u.K})}; Nyu=function(Y){g.$$(Y.K,function(u){u.K>1E5||++u.K})}; ZrW=function(Y){g.$$(Y.K,function(u){u.j>1E5||++u.j})}; irM=function(Y){g.$$(Y.K,function(u){u.G>1E5||++u.G})}; Tyu=function(){this.K=[];this.j=[]}; Jj=function(Y,u){return g.G$(Y.K,function(n){return n.vc==u})}; rPd=function(Y,u){return u?g.G$(Y.K,function(n){return n.xv.BK==u}):null}; M4W=function(Y,u){return g.G$(Y.j,function(n){return n.kM()==2&&n.vc==u})}; aQ=function(){var Y=qP;return Y.K.length==0?Y.j:Y.j.length==0?Y.K:g.vu(Y.j,Y.K)}; sxG=function(Y,u){Y=u.kM()==1?Y.K:Y.j;var n=d$(Y,function(U){return U==u}); return n!=-1?(Y.splice(n,1),u.gp&&u.gp.unobserve(),u.dispose(),!0):!1}; d_S=function(Y){var u=qP;if(sxG(u,Y)){switch(Y.kM()){case 0:var n=function(){return null}; case 2:n=function(){return M4W(u,Y.vc)}; break;case 1:n=function(){return Jj(u,Y.vc)}}for(var U=n();U;U=n())sxG(u,U)}}; GTW=function(Y){var u=qP;Y=g.BV(Y,function(n){return!rPd(u,n.xv.BK)}); u.K.push.apply(u.K,g.Zu(Y))}; APe=function(Y){var u=[];g.Jy(Y,function(n){g3(qP.K,function(U){return U.xv.BK===n.xv.BK&&U.vc===n.vc})||(qP.K.push(n),u.push(n))})}; $5=function(){this.K=this.j=null}; jxW=function(Y,u){function n(U,k){u(U,k)} if(Y.j==null)return!1;Y.K=g.G$(Y.j,function(U){return U!=null&&U.md()}); Y.K&&(Y.K.init(n)?Sid(Y.K.K):u(Y.K.K.HQ(),Y.K));return Y.K!=null}; YV=function(Y){Y=KOc(Y);av.call(this,Y.length?Y[Y.length-1]:new Of(DD,0));this.X=Y;this.j=null}; KOc=function(Y){if(!Y.length)return[];Y=(0,g.BV)(Y,function(n){return n!=null&&n.b3()}); for(var u=1;un.time?u:n},Y[0])}; kV=function(Y){Y=Y===void 0?DD:Y;av.call(this,new Of(Y,2))}; m5=function(){var Y=By7();Of.call(this,DD.top,Y,"geo")}; By7=function(){Uf();var Y=Ef();return Y.X||Y.j?0:2}; olu=function(){}; XK=function(){this.done=!1;this.K={gj:0,R3:0,pSq:0,HP:0,L2:-1,X7:0,jw:0,GI:0,GEw:0};this.J=null;this.W=!1;this.X=null;this.S=0;this.j=new Vi(this)}; SC=function(){var Y=Pd;Y.W||(Y.W=!0,cP0(Y,function(){return Y.G.apply(Y,g.Zu(g.It.apply(0,arguments)))}),Y.G())}; vlG=function(){jE(olu);var Y=jE($5);Y.K!=null&&Y.K.K?Sid(Y.K.K):Ef().update(DD)}; Ct=function(Y,u,n){if(!Y.done&&(Y.j.cancel(),u.length!=0)){Y.X=null;try{vlG();var U=Dq();Uf().J=U;if(jE($5).K!=null)for(var k=0;k=0?Dq()-xs:-1,S=Dq();k.K.L2==-1&&(X=S);var C=Ef(),f=Uf(),Q=Bq(f.ju),N=aQ();try{if(N.length>0){var Z=C.K;Z&&(Q.bs=[bN(Z),Z.getHeight()]);var T=C.J;T&&(Q.ps=[T.width,T.height]);DD.screen&&(Q.scs=[DD.screen.width,DD.screen.height])}else Q.url=encodeURIComponent(DD.location.href.substring(0,512)),m.referrer&&(Q.referrer=encodeURIComponent(m.referrer.substring(0,512))); Q.tt=X;Q.pt=xs;Q.bin=f.j;DD.google_osd_load_pub_page_exp!==void 0&&(Q.olpp=DD.google_osd_load_pub_page_exp);Q.deb=[1,k.K.gj,k.K.R3,k.K.HP,k.K.L2,0,k.j.j,k.K.X7,k.K.jw,k.K.GI,k.K.GEw,-1].join(";");Q.tvt=D_u(k,S);C.j&&(Q.inapp=1);if(DD!==null&&DD!=DD.top){N.length>0&&(Q.iframe_loc=encodeURIComponent(DD.location.href.substring(0,512)));var r=C.S;Q.is=[bN(r),r.getHeight()]}}catch(K){Q.error=1}Pd.X=Q}Z=g.rc(Pd.X);T=Uf().K;tm(T.X,"prf")==1?(r=new u8,k=T.K,m=0,k.K>-1&&(m=k.X.K.now()-k.K),r=fr(r,1,Q3(k.G+ m),0),k=T.K,r=fr(r,5,Tm(k.K>-1?k.j+1:k.j),0),r=fr(r,2,pn(T.j.K.X()),"0"),r=fr(r,3,pn(T.j.K.j()),"0"),T=fr(r,4,pn(T.j.K.K()),"0"),r={},T=(r.pf=g.oE(T.X()),r)):T={};g.sF(Z,T);g.sF(u,U,n,Z,Y())}])}; hQB=function(){var Y=lE0||DD;if(!Y)return"";var u=[];if(!Y.location||!Y.location.href)return"";u.push("url="+encodeURIComponent(Y.location.href.substring(0,512)));Y.document&&Y.document.referrer&&u.push("referrer="+encodeURIComponent(Y.document.referrer.substring(0,512)));return u.join("&")}; ft=function(){var Y="youtube.player.web_20250730_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250730_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250730_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250730_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),u;if(((u=Y)==null?void 0:u.length)==2)return Y[1];Y="youtube.player.web_20250730_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var n;return((n=Y)==null?void 0:n.length)==3?"20"+Y[1]+Y[2]:null}; wZt=function(){return"av.default_js".includes("ima_html5_sdk")?{DC:"ima",Ld:null}:"av.default_js".includes("ima_native_sdk")?{DC:"nima",Ld:null}:"av.default_js".includes("admob-native-video-javascript")?{DC:"an",Ld:null}:"youtube.player.web_20250730_22_RC00".includes("cast_js_sdk")?{DC:"cast",Ld:ft()}:"youtube.player.web_20250730_22_RC00".includes("youtube.player.web")?{DC:"yw",Ld:ft()}:"youtube.player.web_20250730_22_RC00".includes("outstream_web_client")?{DC:"out",Ld:ft()}:"youtube.player.web_20250730_22_RC00".includes("drx_rewarded_web")? {DC:"r",Ld:ft()}:"youtube.player.web_20250730_22_RC00".includes("gam_native_web_video")?{DC:"n",Ld:ft()}:"youtube.player.web_20250730_22_RC00".includes("admob_interstitial_video")?{DC:"int",Ld:ft()}:{DC:"j",Ld:null}}; iZ=function(Y,u){var n={sv:"967"};QY!==null&&(n.v=QY);n.cb=WOS;n.nas=qP.K.length;n.msg=Y;u!==void 0&&(Y=eQA(u))&&(n.e=NS[Y]);return n}; ZM=function(Y){return cq(Y,"custom_metric_viewable")}; eQA=function(Y){var u=ZM(Y)?"custom_metric_viewable":Y.toLowerCase();return Nl(yW,function(n){return n==u})}; brS=function(){this.K=void 0;this.j=!1;this.X=0;this.G=-1;this.J="tos"}; gld=function(Y){try{var u=Y.split(",");return u.length>g.C3(IES).length?null:Az(u,function(n,U){U=U.toLowerCase().split("=");if(U.length!=2||zQW[U[0]]===void 0||!zQW[U[0]](U[1]))throw Error("Entry ("+U[0]+", "+U[1]+") is invalid.");n[U[0]]=U[1];return n},{})}catch(n){return null}}; El7=function(Y,u){if(Y.K==void 0)return 0;switch(Y.J){case "mtos":return Y.j?Cc(u.K,Y.K):Cc(u.j,Y.K);case "tos":return Y.j?S$(u.K,Y.K):S$(u.j,Y.K)}return 0}; Tw=function(Y,u,n,U){x5.call(this,u,U);this.S=Y;this.Z=n}; rX=function(){}; MS=function(Y){x5.call(this,"fully_viewable_audible_half_duration_impression",Y)}; sh=function(Y){this.K=Y}; dX=function(Y,u){x5.call(this,Y,u)}; Gw=function(Y){hj.call(this,"measurable_impression",Y)}; AJ=function(){sh.apply(this,arguments)}; jC=function(Y,u,n){e$.call(this,Y,u,n)}; Kt=function(Y){Y=Y===void 0?DD:Y;av.call(this,new Of(Y,2))}; pt=function(Y,u,n){e$.call(this,Y,u,n)}; Lt=function(Y){Y=Y===void 0?DD:Y;av.call(this,new Of(Y,2))}; tJ=function(){Of.call(this,DD,2,"mraid");this.MF=0;this.oV=this.jG=!1;this.S=null;this.j=$Ke(this.X);this.G.K=new ew(0,0,0,0);this.Fk=!1}; Bd=function(Y,u,n){Y.GN("addEventListener",u,n)}; OrB=function(Y){Uf().G=!!Y.GN("isViewable");Bd(Y,"viewableChange",HrA);Y.GN("getState")==="loading"?Bd(Y,"ready",yPA):V4m(Y)}; V4m=function(Y){typeof Y.j.Ce.AFMA_LIDAR==="string"?(Y.jG=!0,FOY(Y)):(Y.j.compatibility=3,Y.S="nc",Y.fail("w"))}; FOY=function(Y){Y.oV=!1;var u=tm(Uf().ju,"rmmt")==1,n=!!Y.GN("isViewable");(u?!n:1)&&pP().setTimeout(vS(524,function(){Y.oV||(JPS(Y),Rv(540,Error()),Y.S="mt",Y.fail("w"))}),500); qxd(Y);Bd(Y,Y.j.Ce.AFMA_LIDAR,aEu)}; qxd=function(Y){var u=tm(Uf().ju,"sneio")==1,n=Y.j.Ce.AFMA_LIDAR_EXP_1!==void 0,U=Y.j.Ce.AFMA_LIDAR_EXP_2!==void 0;(u=u&&U)&&(Y.j.Ce.AFMA_LIDAR_EXP_2=!0);n&&(Y.j.Ce.AFMA_LIDAR_EXP_1=!u)}; JPS=function(Y){Y.GN("removeEventListener",Y.j.Ce.AFMA_LIDAR,aEu);Y.jG=!1}; $_S=function(Y,u){if(Y.GN("getState")==="loading")return new g.OW(-1,-1);u=Y.GN(u);if(!u)return new g.OW(-1,-1);Y=parseInt(u.width,10);u=parseInt(u.height,10);return isNaN(Y)||isNaN(u)?new g.OW(-1,-1):new g.OW(Y,u)}; yPA=function(){try{var Y=jE(tJ);Y.GN("removeEventListener","ready",yPA);V4m(Y)}catch(u){Rv(541,u)}}; aEu=function(Y,u){try{var n=jE(tJ);n.oV=!0;var U=Y?new ew(Y.y,Y.x+Y.width,Y.y+Y.height,Y.x):new ew(0,0,0,0);var k=Dq(),m=yi();var X=new WS(k,m,n);X.K=U;X.volume=u;n.rF(X)}catch(S){Rv(542,S)}}; HrA=function(Y){var u=Uf(),n=jE(tJ);Y&&!u.G&&(u.G=!0,n.Fk=!0,n.S&&n.fail("w",!0))}; od=function(){this.isInitialized=!1;this.K=this.j=null;var Y={};this.S=(Y.start=this.p8,Y.firstquartile=this.ZL,Y.midpoint=this.dk,Y.thirdquartile=this.Th,Y.complete=this.iH,Y.error=this.BJ,Y.pause=this.LJ,Y.resume=this.Ei,Y.skip=this.wk,Y.viewable_impression=this.Bg,Y.mute=this.M7,Y.unmute=this.M7,Y.fullscreen=this.E9,Y.exitfullscreen=this.Q9,Y.fully_viewable_audible_half_duration_impression=this.Bg,Y.measurable_impression=this.Bg,Y.abandon=this.LJ,Y.engagedview=this.Bg,Y.impression=this.Bg,Y.creativeview= this.Bg,Y.progress=this.M7,Y.custom_metric_viewable=this.Bg,Y.bufferstart=this.LJ,Y.bufferfinish=this.Ei,Y.audio_measurable=this.Bg,Y.audio_audible=this.Bg,Y);Y={};this.Z=(Y.overlay_resize=this.cJ,Y.abandon=this.o1,Y.close=this.o1,Y.collapse=this.o1,Y.overlay_unmeasurable_impression=function(u){return VW(u,"overlay_unmeasurable_impression",yi())},Y.overlay_viewable_immediate_impression=function(u){return VW(u,"overlay_viewable_immediate_impression",yi())},Y.overlay_unviewable_impression=function(u){return VW(u, "overlay_unviewable_impression",yi())},Y.overlay_viewable_end_of_session_impression=function(u){return VW(u,"overlay_viewable_end_of_session_impression",yi())},Y); Uf().j=3;YMB(this);this.X=null}; cd=function(Y,u,n,U){Y=Y.yr(null,U,!0,u);Y.G=n;GTW([Y]);return Y}; uYB=function(Y,u,n){RSt(u);var U=Y.K;g.Jy(u,function(k){var m=g.dA(k.criteria,function(X){var S=gld(X);if(S==null)X=null;else if(X=new brS,S.visible!=null&&(X.K=S.visible/100),S.audible!=null&&(X.j=S.audible==1),S.time!=null){var C=S.timetype=="mtos"?"mtos":"tos",f=zSe(S.time,"%")?"%":"ms";S=parseInt(S.time,10);f=="%"&&(S/=100);X.setTime(S,f,C)}return X}); g3(m,function(X){return X==null})||qaM(n,new Tw(k.id,k.event,m,U))})}; nmd=function(){var Y=[],u=Uf();Y.push(jE(m5));tm(u.ju,"mvp_lv")&&Y.push(jE(tJ));u=[new Kt,new Lt];u.push(new YV(Y));u.push(new kV(DD));return u}; UFd=function(Y){if(!Y.isInitialized){Y.isInitialized=!0;try{var u=Dq(),n=Uf(),U=Ef();xs=u;n.X=79463069;Y.j!=="o"&&(lE0=Ult(DD));if(Z37()){Pd.K.R3=0;Pd.K.L2=Dq()-u;var k=nmd(),m=jE($5);m.j=k;jxW(m,function(){vd()})?Pd.done||(RQM(),Ff(m.K.K,Y),SC()):U.X?vd():SC()}else Rd=!0}catch(X){throw qP.reset(),X; }}}; Wd=function(Y){Pd.j.cancel();DM=Y;Pd.done=!0}; eC=function(Y){if(Y.j)return Y.j;var u=jE($5).K;if(u)switch(u.getName()){case "nis":Y.j="n";break;case "gsv":Y.j="m"}Y.j||(Y.j="h");return Y.j}; bZ=function(Y,u,n){if(Y.K==null)return u.Vn|=4,!1;Y=kBd(Y.K,n,u);u.Vn|=Y;return Y==0}; vd=function(){var Y=[new kV(DD)],u=jE($5);u.j=Y;jxW(u,function(){Wd("i")})?Pd.done||(RQM(),SC()):Wd("i")}; mFG=function(Y,u){if(!Y.nT){var n=VW(Y,"start",yi());n=Y.O2.K(n).K;var U={id:"lidarv"};U.r=u;U.sv="967";QY!==null&&(U.v=QY);i8(n,function(k,m){return U[k]=k=="mtos"||k=="tos"?m:encodeURIComponent(m)}); u=hQB();i8(u,function(k,m){return U[k]=encodeURIComponent(m)}); u="//pagead2.googlesyndication.com/pagead/gen_204?"+uI(Y5(new $s,U));dqY(u);Y.nT=!0}}; Id=function(Y,u,n){Ct(Pd,[Y],!yi());ub7(Y,n);n!=4&&YxG(Y.jG,n,Y.z7);return VW(Y,u,yi())}; YMB=function(Y){x_t(function(){var u=XfW();Y.j!=null&&(u.sdk=Y.j);var n=jE($5);n.K!=null&&(u.avms=n.K.getName());return u})}; P7u=function(Y,u,n,U){var k=rPd(qP,n);k!==null&&k.vc!==u&&(Y.oN(k),k=null);k||(u=Y.yr(n,Dq(),!1,u),qP.j.length==0&&(Uf().X=79463069),APe([u]),k=u,k.G=eC(Y),U&&(k.TZ=U));return k}; SMW=function(Y,u){var n=Y[u];n!==void 0&&n>0&&(Y[u]=Math.floor(n*1E3))}; XfW=function(){var Y=Ef(),u={},n={},U={};return Object.assign({},(u.sv="967",u),QY!==null&&(n.v=QY,n),(U["if"]=Y.X?"1":"0",U.nas=String(qP.K.length),U))}; zw=function(Y){x5.call(this,"audio_audible",Y)}; gX=function(Y){hj.call(this,"audio_measurable",Y)}; Eh=function(){sh.apply(this,arguments)}; Hd=function(){}; C7S=function(Y){this.K=Y}; kBd=function(Y,u,n){Y=Y.j();if(typeof Y==="function"){var U={};var k={};U=Object.assign({},QY!==null&&(U.v=QY,U),(k.sv="967",k.cb=WOS,k.e=fYd(u),k));k=VW(n,u,yi());g.sF(U,k);n.ev[u]=k;U=n.kM()==2?sEc(U).join("&"):n.O2.K(U).K;try{return Y(n.vc,U,u),0}catch(m){return 2}}else return 1}; fYd=function(Y){var u=ZM(Y)?"custom_metric_viewable":Y;Y=Nl(yW,function(n){return n==u}); return NS[Y]}; yY=function(){od.call(this);this.W=null;this.J=!1;this.G="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; QAM=function(Y,u,n){n=n.opt_configurable_tracking_events;Y.K!=null&&Array.isArray(n)&&uYB(Y,n,u)}; N0W=function(Y,u,n){var U=Jj(qP,u);U||(U=n.opt_nativeTime||-1,U=cd(Y,u,eC(Y),U),n.opt_osdId&&(U.TZ=n.opt_osdId));return U}; i5d=function(Y,u,n){var U=Jj(qP,u);U||(U=cd(Y,u,"n",n.opt_nativeTime||-1));return U}; Z5t=function(Y,u){var n=Jj(qP,u);n||(n=cd(Y,u,"h",-1));return n}; T0M=function(Y){Uf();switch(eC(Y)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; sAu=function(Y,u,n,U){n=n===void 0?{}:n;var k={};g.sF(k,{opt_adElement:void 0,opt_fullscreen:void 0},n);var m=Y.IR(u,n);n=m?m.O2:Y.WX();if(k.opt_bounds)return n.K(iZ("ol",U));if(U!==void 0)if(eQA(U)!==void 0)if(Rd)Y=iZ("ue",U);else if(UFd(Y),DM=="i")Y=iZ("i",U),Y["if"]=0;else if(u=Y.IR(u,k)){b:{DM=="i"&&(u.HK=!0);m=k.opt_fullscreen;m!==void 0&&Aj(u,!!m);var X;if(m=!Ef().j)(m=xP(g.Wq(),"CrKey")&&!(xP(g.Wq(),"CrKey")&&xP(g.Wq(),"SmartSpeaker"))||xP(g.Wq(),"PlayStation")||xP(g.Wq(),"Roku")||kZA()||xP(g.Wq(), "Xbox"))||(m=g.Wq(),m=xP(m,"AppleTV")||xP(m,"Apple TV")||xP(m,"CFNetwork")||xP(m,"tvOS")),m||(m=g.Wq(),m=xP(m,"sdk_google_atv_x86")||xP(m,"Android TV")),m=!m;m&&(pP(),m=Pi(HS)===0);if(X=m){switch(u.kM()){case 1:mFG(u,"pv");break;case 2:Y.pJ(u)}Wd("pv")}m=U.toLowerCase();if(X=!X)X=tm(Uf().ju,"ssmol")&&m==="loaded"?!1:g.jB(rZd,m);if(X&&u.L1==0){DM!="i"&&(Pd.done=!1);X=k!==void 0?k.opt_nativeTime:void 0;w3=X=typeof X==="number"?X:Dq();u.C3=!0;var S=yi();u.L1=1;u.jp={};u.jp.start=!1;u.jp.firstquartile= !1;u.jp.midpoint=!1;u.jp.thirdquartile=!1;u.jp.complete=!1;u.jp.resume=!1;u.jp.pause=!1;u.jp.skip=!1;u.jp.mute=!1;u.jp.unmute=!1;u.jp.viewable_impression=!1;u.jp.measurable_impression=!1;u.jp.fully_viewable_audible_half_duration_impression=!1;u.jp.fullscreen=!1;u.jp.exitfullscreen=!1;u.iO=0;S||(u.rO().Z=X);Ct(Pd,[u],!S)}(X=u.IG[m])&&cV(u.BW,X);tm(Uf().ju,"fmd")||g.jB(Mnd,m)&&u.Me&&u.Me.j(u,null);switch(u.kM()){case 1:var C=ZM(m)?Y.S.custom_metric_viewable:Y.S[m];break;case 2:C=Y.Z[m]}if(C&&(U=C.call(Y, u,k,U),tm(Uf().ju,"fmd")&&g.jB(Mnd,m)&&u.Me&&u.Me.j(u,null),U!==void 0)){k=iZ(void 0,m);g.sF(k,U);U=k;break b}U=void 0}u.L1==3&&Y.oN(u);Y=U}else Y=iZ("nf",U);else Y=void 0;else Rd?Y=iZ("ue"):m?(Y=iZ(),g.sF(Y,U_B(m,!0,!1,!1))):Y=iZ("nf");return typeof Y==="string"?n.K():n.K(Y)}; dFA=function(Y,u){u&&(Y.G=u)}; GB0=function(Y){var u={};return u.viewability=Y.K,u.googleViewability=Y.j,u}; AZc=function(Y,u,n){n=n===void 0?{}:n;Y=sAu(jE(yY),u,n,Y);return GB0(Y)}; VY=function(Y){var u=g.It.apply(1,arguments).filter(Boolean).join("&");if(!u)return Y;var n=Y.match(/[?&]adurl=/);return n?Y.slice(0,n.index+1)+u+"&"+Y.slice(n.index+1):Y+(Y.indexOf("?")<0?"?":"&")+u}; Oh=function(Y,u){return u?"&"+Y+"="+encodeURIComponent(u):""}; jAW=function(Y){var u=Y.url;Y=Y.OfG;this.j=u;this.G=Y;this.X=(new Date).getTime()-17040672E5;this.K={};for(var n=/[?&]([^&=]+)=([^&]*)/g;Y=n.exec(u);)this.K[Y[1]]=Y[2]}; Kae=function(Y){Y=Y.G;if(!Y)return"";var u=Oh("uap",Y.platform)+Oh("uapv",Y.platformVersion)+Oh("uafv",Y.uaFullVersion)+Oh("uaa",Y.architecture)+Oh("uam",Y.model)+Oh("uab",Y.bitness);Y.fullVersionList&&(u+="&uafvl="+encodeURIComponent(Y.fullVersionList.map(function(n){return encodeURIComponent(n.brand)+";"+encodeURIComponent(n.version)}).join("|"))); Y.wow64!=null&&(u+="&uaw="+Number(Y.wow64));return u.slice(1)}; tnG=function(Y,u,n,U,k){var m=window;var X=X===void 0?!1:X;var S;n?S=(X===void 0?0:X)?"//ep1.adtrafficquality.google/bg/"+RD(n)+".js":"//pagead2.googlesyndication.com/bg/"+RD(n)+".js":S="";X=X===void 0?!1:X;n=m.document;var C={};u&&(C._scs_=u);C._bgu_=S;C._bgp_=U;C._li_="v_h.3.0.0.0";k&&(C._upb_=k);(u=m.GoogleTyFxhY)&&typeof u.push=="function"||(u=m.GoogleTyFxhY=[]);u.push(C);u=mB(n).createElement("SCRIPT");u.type="text/javascript";u.async=!0;Y=(X===void 0?0:X)?g.Y3(pft,RD(Y)+".js"):g.Y3(LaB,RD(Y)+ ".js");g.Aq(u,Y);(m=(m.GoogleTyFxhYEET||{})[u.src])?m():n.getElementsByTagName("head")[0].appendChild(u)}; B0A=function(){try{var Y,u;return!!((Y=window)==null?0:(u=Y.top)==null?0:u.location.href)&&!1}catch(n){return!0}}; FK=function(Y,u,n){n=n===void 0?Error():n;var U=Error.call(this);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.code=Y;u+=":";n instanceof Error?(this.message=u+n.message,this.stack=n.stack||""):(this.message=u+String(n),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; qS=function(){var Y=omS();Y=Y===void 0?"bevasrsg":Y;return new Promise(function(u){var n=window===window.top?window:B0A()?window:window.top,U=n[Y],k;((k=U)==null?0:k.bevasrs)?u(new JJ(U.bevasrs)):(U||(U={},U=(U.nqfbel=[],U),n[Y]=U),U.nqfbel.push(function(m){u(new JJ(m))}))})}; cZW=function(Y){var u={c:Y.yv,e:Y.cX,mc:Y.s5,me:Y.t8};Y.ZQ&&(u.co={c:Y.ZQ.YU,a:Y.ZQ.D$,s:Y.ZQ.Sm});return u}; ad=function(Y){g.e.call(this);this.wpc=Y}; JJ=function(Y){g.e.call(this);var u=this;this.mI=Y;this.X="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.j=void 0;this.Td=this.mI.p;this.G=this.ND.bind(this);this.addOnDisposeCallback(function(){return void vm7(u)})}; RJt=function(Y){var u;return g.l(function(n){if(n.j==1){if(!Y.mI.wpc)throw new FK(30,"NWA");return Y.K?n.return(Y.K):g.D(n,Y.mI.wpc(),2)}u=n.K;Y.K=new ad(u);return n.return(Y.K)})}; vm7=function(Y){Y.j!==void 0&&(Y.X.forEach(function(u){var n;(n=Y.j)==null||n.removeEventListener(u,Y.G)}),Y.j=void 0)}; DFB=function(Y){var u=u===void 0?50:u;var n=[];Lr(Y,$V,6).forEach(function(U){cZ(U,2)<=u&&n.push(cZ(U,1))}); return n}; xFB=function(Y){var u=u===void 0?50:u;var n=[];Lr(Y,$V,6).forEach(function(U){cZ(U,2)>u&&n.push(cZ(U,1))}); return n}; lYd=function(Y){Y.then(function(){},function(){})}; Yy=function(){g.e.apply(this,arguments);this.j=1}; ur=function(Y){return{fieldType:2,fieldName:Y}}; g.nx=function(Y){return{fieldType:3,fieldName:Y}}; hJY=function(Y){this.K=Y;Y.Ci("/client_streamz/bg/frs",g.nx("mk"))}; wfe=function(Y){this.K=Y;Y.Ci("/client_streamz/bg/wrl",g.nx("mn"),ur("ac"),ur("sc"),g.nx("rk"),g.nx("mk"))}; Wau=function(Y){this.K=Y;Y.P2("/client_streamz/bg/ec",g.nx("en"),g.nx("mk"))}; eJd=function(Y){this.K=Y;Y.Ci("/client_streamz/bg/el",g.nx("en"),g.nx("mk"))}; b5Y=function(Y){this.K=Y;Y.P2("/client_streamz/bg/cec",ur("ec"),g.nx("mk"))}; IY7=function(Y){this.K=Y;Y.P2("/client_streamz/bg/po/csc",ur("cs"),g.nx("mk"))}; zJ0=function(Y){this.K=Y;Y.P2("/client_streamz/bg/po/ctav",g.nx("av"),g.nx("mk"))}; gme=function(Y){this.K=Y;Y.P2("/client_streamz/bg/po/cwsc",g.nx("su"),g.nx("mk"))}; EmB=function(Y){this.xV=H7(Y)}; H5B=function(Y,u){return BSu(Y,u,qFm)}; Us=function(Y){this.xV=H7(Y)}; ky=function(Y){this.xV=H7(Y)}; mv=function(Y){this.xV=H7(Y)}; Xs=function(Y){this.xV=H7(Y)}; Pm=function(Y){this.xV=H7(Y)}; Sa=function(Y){this.xV=H7(Y)}; yZd=function(Y){this.xV=H7(Y)}; FaS=function(Y){var u=new Sa;u=wy(u,1,Y.j);var n=Vnm(Y);u=BSu(u,n,C5G);n=[];for(var U=[],k=g.A(Y.K.keys()),m=k.next();!m.done;m=k.next())U.push(m.value.split(","));for(k=0;k>>31)&4294967295;N=k[0];var r=k[1],K=k[2],L=k[3],R=k[4];for(T=0;T<80;T++){if(T<40)if(T<20){var c=L^r&(K^L);var x=1518500249}else c=r^K^L,x=1859775393;else T<60?(c=r&K|L&(r|K),x=2400959708):(c=r^K^L,x=3395469782);c=((N<<5|N>>>27)&4294967295)+c+R+x+Z[T]&4294967295;R=L;L=K;K=(r<<30|r>>>2)&4294967295;r=N;N=c}k[0]=k[0]+N&4294967295;k[1]=k[1]+r&4294967295;k[2]= k[2]+K&4294967295;k[3]=k[3]+L&4294967295;k[4]=k[4]+R&4294967295} function n(N,Z){if(typeof N==="string"){N=unescape(encodeURIComponent(N));for(var T=[],r=0,K=N.length;r=56;T--)m[T]=Z&255,Z>>>=8;u(m);for(T=Z=0;T<5;T++)for(var r=24;r>=0;r-=8)N[Z++]=k[T]>>r&255;return N} for(var k=[],m=[],X=[],S=[128],C=1;C<64;++C)S[C]=0;var f,Q;Y();return{reset:Y,update:n,digest:U,Cm:function(){for(var N=U(),Z="",T=0;T1)));X=X.next)k||(m=X);k&&(n.K==0&&U==1?HoW(n,u):(m?(U=m,U.next==n.G&&(n.G=U),U.next=U.next.next):yQu(n),VVd(n,k,3,u)))}Y.X=null}else o1(Y,3,u)}; x1=function(Y,u){Y.j||Y.K!=2&&Y.K!=3||Oot(Y);Y.G?Y.G.next=u:Y.j=u;Y.G=u}; F0S=function(Y,u,n,U){var k=vB(null,null,null);k.K=new g.cB(function(m,X){k.X=u?function(S){try{var C=u.call(U,S);m(C)}catch(f){X(f)}}:m; k.j=n?function(S){try{var C=n.call(U,S);C===void 0&&S instanceof hH?X(S):m(C)}catch(f){X(f)}}:X}); k.K.X=Y;x1(Y,k);return k.K}; o1=function(Y,u,n){Y.K==0&&(Y===n&&(u=3,n=new TypeError("Promise cannot resolve to itself")),Y.K=1,IqA(n,Y.cbz,Y.wWF,Y)||(Y.S=n,Y.K=u,Y.X=null,Oot(Y),u!=3||n instanceof hH||JQu(Y,n)))}; IqA=function(Y,u,n,U){if(Y instanceof g.cB)return Esc(Y,u,n,U),!0;if(Y)try{var k=!!Y.$goog_Thenable}catch(X){k=!1}else k=!1;if(k)return Y.then(u,n,U),!0;if(g.XG(Y))try{var m=Y.then;if(typeof m==="function")return qfW(Y,m,u,n,U),!0}catch(X){return n.call(U,X),!0}return!1}; qfW=function(Y,u,n,U,k){function m(C){S||(S=!0,U.call(k,C))} function X(C){S||(S=!0,n.call(k,C))} var S=!1;try{u.call(Y,X,m)}catch(C){m(C)}}; Oot=function(Y){Y.W||(Y.W=!0,g.KH(Y.Rf,Y))}; yQu=function(Y){var u=null;Y.j&&(u=Y.j,Y.j=u.next,u.next=null);Y.j||(Y.G=null);return u}; VVd=function(Y,u,n,U){if(n==3&&u.j&&!u.G)for(;Y&&Y.J;Y=Y.X)Y.J=!1;if(u.K)u.K.X=null,aqe(u,n,U);else try{u.G?u.X.call(u.context):aqe(u,n,U)}catch(k){$k0.call(null,k)}Dkc(bod,u)}; aqe=function(Y,u,n){u==2?Y.X.call(Y.context,n):Y.j&&Y.j.call(Y.context,n)}; JQu=function(Y,u){Y.J=!0;g.KH(function(){Y.J&&$k0.call(null,u)})}; hH=function(Y){r$.call(this,Y)}; g.wr=function(Y,u){g.is.call(this);this.Qu=Y||1;this.G5=u||g.$e;this.CN=(0,g.fR)(this.MMg,this);this.qh=g.iQ()}; g.WB=function(Y,u,n){if(typeof Y==="function")n&&(Y=(0,g.fR)(Y,n));else if(Y&&typeof Y.handleEvent=="function")Y=(0,g.fR)(Y.handleEvent,Y);else throw Error("Invalid listener argument");return Number(u)>2147483647?-1:g.$e.setTimeout(Y,u||0)}; ed=function(Y,u){var n=null;return(new g.cB(function(U,k){n=g.WB(function(){U(u)},Y); n==-1&&k(Error("Failed to schedule timer."))})).Qg(function(U){g.$e.clearTimeout(n); throw U;})}; g.bs=function(Y){g.e.call(this);this.S=Y;this.G=0;this.X=100;this.J=!1;this.j=new Map;this.W=new Set;this.flushInterval=3E4;this.K=new g.wr(this.flushInterval);this.K.listen("tick",this.nz,!1,this);g.b(this,this.K)}; Yot=function(Y){Y.K.enabled||Y.K.start();Y.G++;Y.G>=Y.X&&Y.nz()}; uId=function(Y,u){return Y.W.has(u)?void 0:Y.j.get(u)}; n5A=function(Y){for(var u=0;u2?Y.K.statusText:""}catch(n){u=""}Y.G=u+" ["+Y.getStatus()+"]";icG(Y)}}finally{y1(Y)}}}; y1=function(Y,u){if(Y.K){Y.W&&(clearTimeout(Y.W),Y.W=null);var n=Y.K;Y.K=null;u||Y.dispatchEvent("ready");try{n.onreadystatechange=null}catch(U){}}}; FZ=function(Y){var u=Y.getStatus();a:switch(u){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break a;default:n=!1}if(!n){if(u=u===0)Y=g.Co(String(Y.Z))[1]||null,!Y&&g.$e.self&&g.$e.self.location&&(Y=g.$e.self.location.protocol.slice(0,-1)),u=!rjA.test(Y?Y.toLowerCase():"");n=u}return n}; g.O6=function(Y){return Y.K?Y.K.readyState:0}; g.JH=function(Y){try{return Y.K?Y.K.responseText:""}catch(u){return""}}; g.qE=function(Y){try{if(!Y.K)return null;if("response"in Y.K)return Y.K.response;switch(Y.DW){case "":case "text":return Y.K.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in Y.K)return Y.K.mozResponseArrayBuffer}return null}catch(u){return null}}; g.M$c=function(Y){var u={};Y=(Y.K&&g.O6(Y)>=2?Y.K.getAllResponseHeaders()||"":"").split("\r\n");for(var n=0;n0&&C>=u};n=n===void 0?[]:n;return new Pg(U,n)}; iJ=function(Y){function u(r,K,L,R){Promise.resolve().then(function(){C.done();S.P3();S.dispose();X.resolve({Ef:r,xaJ:K,C6G:L,cG2:R})})} function n(r,K,L,R){if(!U.logger.gg()){var c="k";K?c="h":L&&(c="u");c!=="k"?R!==0&&(U.logger.aj(c),U.logger.wl(c,r)):U.j<=0?(U.logger.aj(c),U.logger.wl(c,r),U.j=Math.floor(Math.random()*200)):U.j--}} g.e.call(this);var U=this;this.j=Math.floor(Math.random()*200);this.K=new Qc;if("challenge"in Y&&KPu(Y.challenge)){var k=Rx(Y.challenge,4,void 0,F$);var m=Rx(Y.challenge,5,void 0,F$);Rx(Y.challenge,7,void 0,F$)&&(this.K=pVS(Rx(Y.challenge,7,void 0,F$)))}else k=Y.program,m=Y.globalName;this.addOnDisposeCallback(function(){var r,K,L;return g.l(function(R){if(R.j==1)return g.D(R,U.X,2);r=R.K;K=r.xaJ;(L=K)==null||L();g.KY(R)})}); this.logger=jQ0(Y.LR||{},this.K);g.b(this,this.logger);var X=new g.Nv;this.X=X.promise;this.logger.aj("t");var S=this.logger.share(),C=new uJ(S,"t");if(!g.$e[m])throw this.logger.yd(25),Error("EGOU");if(!g.$e[m].a)throw this.logger.yd(26),Error("ELIU");try{var f=g.$e[m].a;m=[];for(var Q=[],N=DFB(this.K),Z=0;Z>1,u),KJ(Y,Y.length>>1)]}; $PG=function(Y){var u=g.A(aNc(Y,pJ));Y=u.next().value;u=u.next().value;return Y.toString(16)+u.toString(16)}; Yhm=function(Y,u){var n=aNc(u);Y=new Uint32Array(Y.buffer);u=Y[0];var U=g.A(n);n=U.next().value;U=U.next().value;for(var k=1;k>>8|X<<24,X+=m|0,X^=S+38293,m=m<<3|m>>>29,m^=X,C=C>>>8|C<<24,C+=S|0,C^=f+38293,S=S<<3|S>>>29,S^=C;m=[m,X];Y[k]^=m[0];k+1=n?(globalThis.sessionStorage.removeItem(Y),["e"]):["a",new Uint8Array(U.buffer,u+4)]}; LJ=function(Y,u,n){n=n===void 0?[]:n;this.maxItems=Y;this.K=u===void 0?0:u;this.j=n}; USd=function(Y){var u=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!u)return new LJ(Y);var n=u.split(",");if(n.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new LJ(Y);u=n.slice(1);u.length===1&&u[0]===""&&(u=[]);n=Number(n[0]);return isNaN(n)||n<0||n>u.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new LJ(Y)):new LJ(Y,n,u)}; kwu=function(Y,u){this.logger=u;try{var n=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(U){n=!1}n&&(this.index=USd(Y))}; mSm=function(Y,u,n,U,k){var m=Y.index?Uv(Y.logger,function(){return uK7(Y.index,$PG(u),n,U,k)},"W"):"u"; Y.logger.Pl(m)}; Xde=function(Y,u,n){var U=g.A(Y.index?Uv(Y.logger,function(){return nVG($PG(u),n)},"R"):["u"]),k=U.next().value; U=U.next().value;Y.logger.Yj(k);return U}; CZd=function(Y){function u(){n-=U;n-=k;n^=k>>>13;U-=k;U-=n;U^=n<<8;k-=n;k-=U;k^=U>>>13;n-=U;n-=k;n^=k>>>12;U-=k;U-=n;U^=n<<16;k-=n;k-=U;k^=U>>>5;n-=U;n-=k;n^=k>>>3;U-=k;U-=n;U^=n<<10;k-=n;k-=U;k^=U>>>15} Y=PZd(Y);for(var n=2654435769,U=2654435769,k=314159265,m=Y.length,X=m,S=0;X>=12;X-=12,S+=12)n+=tt(Y,S),U+=tt(Y,S+4),k+=tt(Y,S+8),u();k+=m;switch(X){case 11:k+=Y[S+10]<<24;case 10:k+=Y[S+9]<<16;case 9:k+=Y[S+8]<<8;case 8:U+=Y[S+7]<<24;case 7:U+=Y[S+6]<<16;case 6:U+=Y[S+5]<<8;case 5:U+=Y[S+4];case 4:n+=Y[S+3]<<24;case 3:n+=Y[S+2]<<16;case 2:n+=Y[S+1]<<8;case 1:n+=Y[S+0]}u();return ShM.toString(k)}; PZd=function(Y){for(var u=[],n=0;n>7,Y.error.code]);U.set(n,4);return U}; ht=function(Y,u,n){Bg.call(this,Y);this.G=u;this.clientState=n;this.K="S";this.j="q"}; lJ=function(Y){return globalThis.TextEncoder?(new TextEncoder).encode(Y):g.Bi(Y)}; QdW=function(Y,u,n){return Y instanceof dj?ezu(Y,n,u,1):Y.Nd(n)}; Wg=function(Y){g.e.call(this);var u=this;this.X=new g.Nv;this.G=0;this.j=void 0;this.state=2;this.mI=Y.mI;this.U_=Y.U_;this.qt=Object.assign({},NXd,Y.qt||{});this.logger=Y.mI.N8();var n;this.onError=(n=Y.onError)!=null?n:function(){}; this.s3=Y.s3||!1;if(itB(Y)){var U=this.mI;this.J=function(){return E5M(U).catch(function(X){X=u.reportError(new FK(u.K?20:32,"TRG:Disposed",X));u.j=X;var S;(S=u.K)==null||S.dispose();u.K=void 0;u.X.reject(X)})}; HcY(U,function(){return void wj(u)}); U.Z===2&&wj(this)}else this.J=Y.W1J,wj(this);var k=this.logger.share();k.aj("o");var m=new uJ(k,"o");this.X.promise.then(function(){m.done();k.P3();k.dispose()},function(){return void k.dispose()}); this.addOnDisposeCallback(function(){u.K?(u.K.dispose(),u.K=void 0):u.j?u.logger.P3():(u.j=u.reportError(new FK(32,"TNP:Disposed")),u.logger.P3(),u.X.reject(u.j))}); g.b(this,this.logger)}; Ztc=function(Y,u){if(!(u instanceof FK))if(u instanceof I1){var n=Error(u.toString());n.stack=u.stack;u=new FK(11,"EBH:Error",n)}else u=new FK(12,"BSO:Unknown",u);return Y.reportError(u)}; wj=function(Y){var u,n,U,k,m,X,S,C,f,Q,N,Z,T,r,K;return g.l(function(L){switch(L.j){case 1:u=void 0;Y.G++;n=new g.Nv;Y.mI instanceof Gs&&Y.mI.G.push(n.promise);if(!Y.s3){L.qF(2);break}U=new g.Nv;setTimeout(function(){return void U.resolve()}); return g.D(L,U.promise,2);case 2:return k=Y.logger.share(),g.pY(L,4,5),Y.state=5,m={},X=[],g.D(L,je(Y.mI.snapshot({yv:m,wP:X}),Y.qt.RDF,function(){return Promise.reject(new FK(15,"MDA:Timeout"))}),7); case 7:S=L.K;if(Y.gg())throw new FK(Y.K?20:32,"MDA:Disposed");C=X[0];Y.state=6;return g.D(L,je(QdW(Y.U_,k,S),Y.qt.uB,function(){return Promise.reject(new FK(10,"BWB:Timeout"))}),8); case 8:f=L.K;if(Y.gg())throw new FK(Y.K?20:32,"BWB:Disposed");Y.state=7;u=Uv(k,function(){var c=TXS(Y,f,n,C);c.X.promise.then(function(){return void Y.J()}); return c},"i"); case 5:g.lB(L);k.dispose();g.wG(L,6);break;case 4:Q=g.vc(L);(N=u)==null||N.dispose();if(!Y.j){Z=Ztc(Y,Q);n.resolve();var R;if(R=Y.mI instanceof Gs&&Y.G<2)a:if(Q instanceof FK)R=Q.code!==32&&Q.code!==20&&Q.code!==10;else{if(Q instanceof I1)switch(Q.code){case 2:case 13:case 14:case 4:break;default:R=!1;break a}R=!0}if(R)return T=(1+Math.random()*.25)*(Y.K?6E4:1E3),r=setTimeout(function(){return void Y.J()},T),Y.addOnDisposeCallback(function(){return void clearTimeout(r)}),L.return(); Y.j=Z}k.yd(Y.K?13:14);Y.X.reject(Y.j);return L.return();case 6:Y.state=8,Y.G=0,(K=Y.K)==null||K.dispose(),Y.K=u,Y.X.resolve(),g.KY(L)}})}; TXS=function(Y,u,n,U){var k=vZ(u,2)*1E3;if(k<=0)throw new FK(31,"TTM:Invalid");if(Rx(u,4))return new Db(Y.logger,Rx(u,4),k);if(!vZ(u,3))return new RS(Y.logger,wA(Cr(u,1)),k);if(!U)throw new FK(4,"PMD:Undefined");U=U(wA(Cr(u,1)));if(!(U instanceof Function))throw new FK(16,"APF:Failed");Y.W=Math.floor((Date.now()+k)/1E3);Y=new vg(Y.logger,U,vZ(u,3),k);Y.addOnDisposeCallback(function(){return void n.resolve()}); return Y}; rJ0=function(Y,u){u=u instanceof FK?u:new FK(5,"TVD:error",u);return Y.reportError(u)}; AJ7=function(Y,u,n){try{if(Y.gg())throw new FK(21,"BNT:disposed");if(!Y.K&&Y.j)throw Y.j;var U,k;return(k=(U=MC0(Y,u,n))!=null?U:sd7(Y,u,n))!=null?k:dSY(Y,u,n)}catch(m){if(!u.t8)throw rJ0(Y,m);return GwM(Y,n,m)}}; MC0=function(Y,u,n){var U;return(U=Y.K)==null?void 0:cg(U,function(){return ee(Y,u)},n,function(k){var m; if(Y.K instanceof vg&&((m=u.ZQ)==null?0:m.Sm))try{var X;(X=Y.cache)==null||mSm(X,ee(Y,u),k,u.ZQ.YU,Y.W-120)}catch(S){Y.reportError(new FK(24,"ELX:write",S))}})}; sd7=function(Y,u,n){var U;if((U=u.ZQ)!=null&&U.D$)try{var k,m=(k=Y.cache)==null?void 0:Xde(k,ee(Y,u),u.ZQ.YU);return m?n?Uv(Y.logger,function(){return g.oE(m,2)},"a"):m:void 0}catch(X){Y.reportError(new FK(23,"RXO:read",X))}}; dSY=function(Y,u,n){var U={stack:[],error:void 0,hasError:!1};try{if(!u.s5)throw new FK(29,"SDF:notready");return cg(stB(U,new ht(Y.logger,0,Y.state)),function(){return ee(Y,u)},n)}catch(k){U.error=k,U.hasError=!0}finally{dmd(U)}}; GwM=function(Y,u,n){var U={stack:[],error:void 0,hasError:!1};try{var k=rJ0(Y,n);return cg(stB(U,new xW(Y.logger,k)),function(){return[]},u)}catch(m){U.error=m,U.hasError=!0}finally{dmd(U)}}; ee=function(Y,u){return u.cX?u.cX:u.yv?Uv(Y.logger,function(){return u.cX=lJ(u.yv)},"c"):[]}; bJ=function(){var Y=0,u;return function(n){u||(u=new kW);var U=new ht(u,Y,1),k=cg(U,function(){return lJ(n)},!0); U.dispose();Y++;return k}}; IS=function(Y){this.xV=H7(Y)}; jdB=function(Y,u,n){this.k_=Y;this.Y7=u;this.metadata=n}; zs=function(Y,u){u=u===void 0?{}:u;this.FWz=Y;this.metadata=u;this.status=null}; gj=function(Y,u,n,U,k){this.name=Y;this.methodType="unary";this.requestType=u;this.responseType=n;this.K=U;this.j=k}; Ev=function(Y){this.xV=H7(Y)}; Hg=function(Y){this.xV=H7(Y)}; yc=function(Y){this.xV=H7(Y)}; Vc=function(Y,u){this.S=Y.OGa;this.Z=u;this.K=Y.xhr;this.X=[];this.J=[];this.W=[];this.G=[];this.j=[];this.S&&K5M(this)}; BXY=function(Y,u){var n=new pdu;g.us(Y.K,"complete",function(){if(FZ(Y.K)){var U=g.JH(Y.K);if(u&&Y.K.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");U=atob(U)}try{var k=Y.Z(U)}catch(S){Ov(Y,FS(new I1(13,"Error when deserializing response data; error: "+S+(", response: "+U)),n));return}U=UPc(Y.K.getStatus());Jt(Y,qv(Y));U==0?L5W(Y,k):Ov(Y,FS(new I1(U,"Xhr succeeded but the status code is not 200"),n))}else{U=g.JH(Y.K);k=qv(Y);if(U){var m=tCd(Y, U);U=m.code;var X=m.details;m=m.metadata}else U=2,X="Rpc failed due to xhr error. uri: "+String(Y.K.Z)+", error code: "+Y.K.j+", error: "+Y.K.getLastError(),m=k;Jt(Y,k);Ov(Y,FS(new I1(U,X,m),n))}})}; K5M=function(Y){Y.S.lx("data",function(u){if("1"in u){var n=u["1"];try{var U=Y.Z(n)}catch(k){Ov(Y,new I1(13,"Error when deserializing response data; error: "+k+(", response: "+n)))}U&&L5W(Y,U)}if("2"in u)for(u=tCd(Y,u["2"]),n=0;n-1&&Y.splice(u,1)}; L5W=function(Y,u){for(var n=0;n>4&15).toString(16)+(Y&15).toString(16)}; Cp=function(Y,u){this.j=this.K=null;this.X=Y||null;this.G=!!u}; ik=function(Y){Y.K||(Y.K=new Map,Y.j=0,Y.X&&i8(Y.X,function(u,n){Y.add(vp(u),n)}))}; wdu=function(Y,u){ik(Y);u=Z7(Y,u);return Y.K.has(u)}; g.W5u=function(Y,u,n){Y.remove(u);n.length>0&&(Y.X=null,Y.K.set(Z7(Y,u),g.RL(n)),Y.j=Y.j+n.length)}; Z7=function(Y,u){u=String(u);Y.G&&(u=u.toLowerCase());return u}; xSM=function(Y,u){u&&!Y.G&&(ik(Y),Y.X=null,Y.K.forEach(function(n,U){var k=U.toLowerCase();U!=k&&(this.remove(U),g.W5u(this,k,n))},Y)); Y.G=u}; g.eFM=function(Y){var u="";g.$$(Y,function(n,U){u+=U;u+=":";u+=n;u+="\r\n"}); return u}; g.TL=function(Y,u,n){if(g.i4(n))return Y;n=g.eFM(n);if(typeof Y==="string")return sf(Y,g.oD(u),n);g.Qp(Y,u,n);return Y}; g.rH=function(Y){g.e.call(this);this.j=Y;this.K={}}; btW=function(Y,u,n,U,k,m){if(Array.isArray(n))for(var X=0;X=0)return!0;try{var u=new g.UQ(Y)}catch(n){return g.G$(nyu,function(U){return Y.search(U)>0})!=null}return u.W.match(UYd)?!0:g.G$(nyu,function(n){return Y.match(n)!=null})!=null}; g.oe=function(Y,u){return Y.replace(mYu,function(n,U){try{var k=g.Zn(u,U);if(k==null||k.toString()==null)return n;k=k.toString();if(k==""||!g.vq(g.DO(k)))return encodeURIComponent(k).replace(/%2C/g,",")}catch(m){}return n})}; cA=function(Y,u){return Object.is(Y,u)}; Re=function(Y){var u=vA;vA=Y;return u}; XmY=function(Y){if(Y.q0!==void 0){var u=D7;D7=!0;try{for(var n=Y.q0;n!==void 0;n=n.cK){var U=n.xD;U.s1||(Y=void 0,U.s1=!0,XmY(U),(Y=U.oY)==null||Y.call(U,U))}}finally{D7=u}}}; Pr7=function(){var Y;return((Y=vA)==null?void 0:Y.IY)!==!1}; Ssc=function(Y){Y&&(Y.YC=void 0,Y.Be=!0);return Re(Y)}; fku=function(Y,u){Re(u);if(Y){Y.Be=!1;u=Y.YC;var n=u!==void 0?u.xE:Y.producers;if(n!==void 0){if(x8(Y)){do n=Cr0(n);while(n!==void 0)}u!==void 0?u.xE=void 0:Y.producers=void 0}}}; QFu=function(Y,u){var n=Y.tT,U=x8(Y);n!==void 0?(u.cK=n.cK,n.cK=u):(u.cK=void 0,Y.q0=u);u.jx=n;Y.tT=u;if(!U)for(Y=Y.producers;Y!==void 0;Y=Y.xE)QFu(Y.uT,Y)}; Cr0=function(Y){var u=Y.uT,n=Y.xE,U=Y.cK,k=Y.jx;Y.cK=void 0;Y.jx=void 0;U!==void 0?U.jx=k:u.tT=k;if(k!==void 0)k.cK=U;else if(u.q0=U,!x8(u))for(Y=u.producers;Y!==void 0;)Y=Cr0(Y);return n}; x8=function(Y){return Y.KI||Y.q0!==void 0}; Te0=function(Y){function u(){a:{if(D7)throw Error("");if(vA!==null){var U=vA.YC;if(U===void 0||U.uT!==n){var k=void 0,m=vA.Be;if(m&&(k=U!==void 0?U.xE:vA.producers,k!==void 0&&k.uT===n)){vA.YC=k;k.Ja=n.version;break a}var X=n.tT,S;if(!(S=X===void 0||X.xD!==vA)){if(m){b:{S=vA;m=S.YC;if(m!==void 0){S=S.producers;do{if(S===X){m=!0;break b}if(S===m)break;S=S.xE}while(S!==void 0)}m=!1}m=!m}S=m}S&&(m=x8(vA),k={uT:n,xD:vA,xE:k,jx:X,Ja:n.version,cK:void 0},vA.YC=k,U!==void 0?U.xE=k:vA.producers=k,m&&QFu(n, k))}}}return n.value} var n=Object.create(Nee);n.value=Y;u[ixG]=n;return[u,function(U){return ZxA(n,U)}, function(U){if(!Pr7())throw Error();ZxA(n,U(n.value))}]}; ZxA=function(Y,u){if(!Pr7())throw Error();Y.EN(Y.value,u)||(Y.value=u,Y.version++,rpY++,XmY(Y))}; lk=function(Y,u){u=u===void 0?"":u;Y=Te0(Y)[0][ixG];var n;u=(n=u)!=null?n:"[signal]";Y.debugName=u}; wH=function(Y){g.is.call(this);var u=this;this.J=this.j=0;this.JZ=Y!=null?Y:{MX:function(k,m){return setTimeout(k,m)}, aO:function(k){clearTimeout(k)}}; var n,U;this.K=(U=(n=window.navigator)==null?void 0:n.onLine)!=null?U:!0;this.X=function(){return g.l(function(k){return g.D(k,hF(u),0)})}; window.addEventListener("offline",this.X);window.addEventListener("online",this.X);this.J||this.rp()}; Mau=function(){var Y=g.WA;wH.instance||(wH.instance=new wH(Y));return wH.instance}; hF=function(Y,u){return Y.G?Y.G:Y.G=new Promise(function(n){var U,k,m,X;return g.l(function(S){switch(S.j){case 1:return U=window.AbortController?new window.AbortController:void 0,m=(k=U)==null?void 0:k.signal,X=!1,g.pY(S,2,3),U&&(Y.j=Y.JZ.MX(function(){U.abort()},u||2E4)),g.D(S,fetch("/generate_204",{method:"HEAD", signal:m}),5);case 5:X=!0;case 3:g.lB(S);Y.G=void 0;Y.j&&(Y.JZ.aO(Y.j),Y.j=0);X!==Y.K&&(Y.K=X,Y.K?Y.dispatchEvent("networkstatus-online"):Y.dispatchEvent("networkstatus-offline"));n(X);g.wG(S,0);break;case 2:g.vc(S),X=!1,S.qF(3)}})})}; sFS=function(Y){this.xV=H7(Y)}; eU=function(){this.data=[];this.K=-1}; dYS=function(Y){Y.K===-1&&(Y.K=Y.data.reduce(function(u,n,U){return u+(n?Math.pow(2,U):0)},0)); return Y.K}; bk=function(Y){Y.setAttribute("role","link")}; zL=function(Y,u){Array.isArray(u)&&(u=u.join(" "));u===""||u==void 0?(Ie||(u={},Ie=(u.atomic=!1,u.autocomplete="none",u.dropeffect="none",u.haspopup=!1,u.live="off",u.multiline=!1,u.multiselectable=!1,u.orientation="vertical",u.readonly=!1,u.relevant="additions text",u.required=!1,u.sort="none",u.busy=!1,u.disabled=!1,u.hidden=!1,u.invalid="false",u)),u=Ie,"label"in u?Y.setAttribute("aria-label",u.label):Y.removeAttribute("aria-label")):Y.setAttribute("aria-label",u)}; gH=function(Y){Y=Y.getAttribute("aria-label");return Y==null||Y==void 0?"":String(Y)}; g.EQ=function(Y,u,n){g.e.call(this);this.K=null;this.G=!1;this.W=Y;this.J=n;this.j=u||window;this.X=(0,g.fR)(this.vE,this)}; GyY=function(Y){Y=Y.j;return Y.requestAnimationFrame||Y.webkitRequestAnimationFrame||Y.mozRequestAnimationFrame||Y.oRequestAnimationFrame||Y.msRequestAnimationFrame||null}; ApA=function(Y){Y=Y.j;return Y.cancelAnimationFrame||Y.cancelRequestAnimationFrame||Y.webkitCancelRequestAnimationFrame||Y.mozCancelRequestAnimationFrame||Y.oCancelRequestAnimationFrame||Y.msCancelRequestAnimationFrame||null}; g.Vp=function(Y,u,n){g.e.call(this);this.K=Y;this.Qu=u||0;this.j=n;this.X=(0,g.fR)(this.UB,this)}; g.OQ=function(Y,u){Y.isActive()||Y.start(u)}; g.FD=function(Y){Y.stop();Y.UB()}; g.JF=function(Y){Y.isActive()&&g.FD(Y)}; g.qs=function(Y,u,n){g.e.call(this);this.G=n!=null?Y.bind(n):Y;this.Qu=u;this.X=null;this.K=!1;this.j=0;this.C0=null}; ae=function(Y){Y.C0=g.WB(function(){Y.C0=null;Y.K&&!Y.j&&(Y.K=!1,ae(Y))},Y.Qu); var u=Y.X;Y.X=null;Y.G.apply(null,u)}; g.$8=function(Y,u){this.K=Y[g.$e.Symbol.iterator]();this.j=u}; jFS=function(Y){return typeof Y.className=="string"?Y.className:Y.getAttribute&&Y.getAttribute("class")||""}; Yv=function(Y){return Y.classList?Y.classList:jFS(Y).match(/\S+/g)||[]}; g.u9=function(Y,u){typeof Y.className=="string"?Y.className=u:Y.setAttribute&&Y.setAttribute("class",u)}; g.nE=function(Y,u){return Y.classList?Y.classList.contains(u):g.jB(Yv(Y),u)}; g.UN=function(Y,u){if(Y.classList)Y.classList.add(u);else if(!g.nE(Y,u)){var n=jFS(Y);g.u9(Y,n+(n.length>0?" "+u:u))}}; g.kv=function(Y,u){if(Y.classList)Array.prototype.forEach.call(u,function(k){g.UN(Y,k)}); else{var n={};Array.prototype.forEach.call(Yv(Y),function(k){n[k]=!0}); Array.prototype.forEach.call(u,function(k){n[k]=!0}); u="";for(var U in n)u+=u.length>0?" "+U:U;g.u9(Y,u)}}; g.mU=function(Y,u){Y.classList?Y.classList.remove(u):g.nE(Y,u)&&g.u9(Y,Array.prototype.filter.call(Yv(Y),function(n){return n!=u}).join(" "))}; g.XE=function(Y,u){Y.classList?Array.prototype.forEach.call(u,function(n){g.mU(Y,n)}):g.u9(Y,Array.prototype.filter.call(Yv(Y),function(n){return!g.jB(u,n)}).join(" "))}; g.PP=function(Y,u,n){n?g.UN(Y,u):g.mU(Y,u)}; KvB=function(Y,u){var n=!g.nE(Y,u);g.PP(Y,u,n)}; g.SK=function(){g.is.call(this);this.K=0;this.endTime=this.startTime=null}; pmd=function(Y,u){Array.isArray(u)||(u=[u]);u=u.map(function(n){return typeof n==="string"?n:n.property+" "+n.duration+"s "+n.timing+" "+n.delay+"s"}); g.yV(Y,"transition",u.join(","))}; CE=function(Y,u,n,U,k){g.SK.call(this);this.j=Y;this.J=u;this.W=n;this.G=U;this.S=Array.isArray(k)?k:[k]}; LvS=function(Y,u,n,U){return new CE(Y,u,{opacity:n},{opacity:U},{property:"opacity",duration:u,timing:"ease-in",delay:0})}; BeW=function(Y){Y=l4(Y);if(Y=="")return null;var u=String(Y.slice(0,4)).toLowerCase();if(("url("1||Y&&Y.split(")"),null;if(Y.indexOf("(")>0){if(/"|'/.test(Y))return null;u=/([\-\w]+)\(/g;for(var n;n=u.exec(Y);)if(!(n[1].toLowerCase()in tat))return null}return Y}; fE=function(Y,u){Y=g.$e[Y];return Y&&Y.prototype?(u=Object.getOwnPropertyDescriptor(Y.prototype,u))&&u.get||null:null}; oyd=function(Y){var u=g.$e.CSSStyleDeclaration;return u&&u.prototype&&u.prototype[Y]||null}; cpY=function(Y,u,n,U){if(Y)return Y.apply(u,U);if(g.QP&&document.documentMode<10){if(!u[n].call)throw Error("IE Clobbering detected");}else if(typeof u[n]!="function")throw Error("Clobbering detected");return u[n].apply(u,U)}; lke=function(Y){if(!Y)return"";var u=document.createElement("div").style;vyS(Y).forEach(function(n){var U=g.NK&&n in RIS?n:n.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");cq(U,"--")||cq(U,"var")||(n=cpY(DYG,Y,Y.getPropertyValue?"getPropertyValue":"getAttribute",[n])||"",n=BeW(n),n!=null&&cpY(xY0,u,u.setProperty?"setProperty":"setAttribute",[U,n]))}); return u.cssText||""}; vyS=function(Y){g.mg(Y)?Y=g.RL(Y):(Y=g.C3(Y),g.pR(Y,"cssText"));return Y}; g.i9=function(Y){var u,n=u=0,U=!1;Y=Y.split(hIB);for(var k=0;k.4?-1:1;return(u==0?null:u)==-1?"rtl":"ltr"}; g.M8=function(Y){if(Y instanceof ZB||Y instanceof TK||Y instanceof rE)return Y;if(typeof Y.next=="function")return new ZB(function(){return Y}); if(typeof Y[Symbol.iterator]=="function")return new ZB(function(){return Y[Symbol.iterator]()}); if(typeof Y.YO=="function")return new ZB(function(){return Y.YO()}); throw Error("Not an iterator or iterable.");}; ZB=function(Y){this.j=Y}; TK=function(Y){this.j=Y}; rE=function(Y){ZB.call(this,function(){return Y}); this.X=Y}; sN=function(Y,u,n,U,k,m,X,S){this.K=Y;this.S=u;this.X=n;this.J=U;this.G=k;this.W=m;this.j=X;this.Z=S}; dE=function(Y,u){if(u==0)return Y.K;if(u==1)return Y.j;var n=Hp(Y.K,Y.X,u),U=Hp(Y.X,Y.G,u);Y=Hp(Y.G,Y.j,u);n=Hp(n,U,u);U=Hp(U,Y,u);return Hp(n,U,u)}; bxW=function(Y,u){var n=(u-Y.K)/(Y.j-Y.K);if(n<=0)return 0;if(n>=1)return 1;for(var U=0,k=1,m=0,X=0;X<8;X++){m=dE(Y,n);var S=(dE(Y,n+1E-6)-m)/1E-6;if(Math.abs(m-u)<1E-6)return n;if(Math.abs(S)<1E-6)break;else m1E-6&&X<8;X++)m=0}; g.KE=function(Y){g.e.call(this);this.W=1;this.X=[];this.G=0;this.K=[];this.j={};this.S=!!Y}; zIm=function(Y,u,n){g.KH(function(){Y.apply(u,n)})}; g.pE=function(Y){this.K=Y}; LE=function(Y){this.K=Y}; gyu=function(Y){this.data=Y}; Eye=function(Y){return Y===void 0||Y instanceof gyu?Y:new gyu(Y)}; tG=function(Y){this.K=Y}; g.HxG=function(Y){var u=Y.creation;Y=Y.expiration;return!!Y&&Yg.iQ()}; g.BP=function(Y){this.K=Y}; yp0=function(){}; o0=function(){}; cP=function(Y){this.K=Y;this.j=null}; vP=function(Y){if(Y.K==null)throw Error("Storage mechanism: Storage unavailable");Y.isAvailable()||tz(Error("Storage mechanism: Storage unavailable"))}; R0=function(){var Y=null;try{Y=g.$e.localStorage||null}catch(u){}cP.call(this,Y)}; VaB=function(){var Y=null;try{Y=g.$e.sessionStorage||null}catch(u){}cP.call(this,Y)}; DB=function(Y,u){this.j=Y;this.K=u+"::"}; g.xv=function(Y){var u=new R0;return u.isAvailable()?Y?new DB(u,Y):u:null}; l9=function(Y,u){this.K=Y;this.j=u}; hG=function(Y){this.K=[];if(Y)a:{if(Y instanceof hG){var u=Y.Vv();Y=Y.RA();if(this.K.length<=0){for(var n=this.K,U=0;U>>6:(m<65536?S[n++]=224|m>>>12:(S[n++]=240|m>>>18,S[n++]=128|m>>>12&63),S[n++]=128|m>>> 6&63),S[n++]=128|m&63);return S}; b9=function(Y){for(var u=Y.length;--u>=0;)Y[u]=0}; I0=function(Y,u,n,U,k){this.MB=Y;this.jy=u;this.bB=n;this.dn=U;this.Kqg=k;this.ZE=Y&&Y.length}; zK=function(Y,u){this.A$=Y;this.Dv=0;this.WL=u}; gE=function(Y,u){Y.uU[Y.pending++]=u&255;Y.uU[Y.pending++]=u>>>8&255}; EN=function(Y,u,n){Y.D4>16-n?(Y.b4|=u<>16-Y.D4,Y.D4+=n-16):(Y.b4|=u<>>=1,n<<=1;while(--u>0);return n>>>1}; akG=function(Y,u,n){var U=Array(16),k=0,m;for(m=1;m<=15;m++)U[m]=k=k+n[m-1]<<1;for(n=0;n<=u;n++)k=Y[n*2+1],k!==0&&(Y[n*2]=qsM(U[k]++,k))}; $YA=function(Y){var u;for(u=0;u<286;u++)Y.K1[u*2]=0;for(u=0;u<30;u++)Y.Pt[u*2]=0;for(u=0;u<19;u++)Y.CF[u*2]=0;Y.K1[512]=1;Y.d5=Y.LZ=0;Y.q$=Y.matches=0}; Y6e=function(Y){Y.D4>8?gE(Y,Y.b4):Y.D4>0&&(Y.uU[Y.pending++]=Y.b4);Y.b4=0;Y.D4=0}; uZ0=function(Y,u,n){Y6e(Y);gE(Y,n);gE(Y,~n);eK.QM(Y.uU,Y.window,u,n,Y.pending);Y.pending+=n}; n1c=function(Y,u,n,U){var k=u*2,m=n*2;return Y[k]>>7)];HP(Y,X,n);S=q8[X];S!==0&&(k-=a0[X],EN(Y,k,S))}}while(U>1;X>=1;X--)yP(Y,n,X);C=m;do X=Y.Fn[1],Y.Fn[1]=Y.Fn[Y.qe--],yP(Y,n,1),U=Y.Fn[1],Y.Fn[--Y.ZK]=X,Y.Fn[--Y.ZK]=U,n[C*2]=n[X*2]+n[U*2],Y.depth[C]=(Y.depth[X]>=Y.depth[U]?Y.depth[X]:Y.depth[U])+1,n[X*2+1]=n[U*2+1]=C,Y.Fn[1]=C++,yP(Y,n,1);while(Y.qe>= 2);Y.Fn[--Y.ZK]=Y.Fn[1];X=u.A$;C=u.Dv;U=u.WL.MB;k=u.WL.ZE;m=u.WL.jy;var f=u.WL.bB,Q=u.WL.Kqg,N,Z=0;for(N=0;N<=15;N++)Y.Pk[N]=0;X[Y.Fn[Y.ZK]*2+1]=0;for(u=Y.ZK+1;u<573;u++){var T=Y.Fn[u];N=X[X[T*2+1]*2+1]+1;N>Q&&(N=Q,Z++);X[T*2+1]=N;if(!(T>C)){Y.Pk[N]++;var r=0;T>=f&&(r=m[T-f]);var K=X[T*2];Y.d5+=K*(N+r);k&&(Y.LZ+=K*(U[T*2+1]+r))}}if(Z!==0){do{for(N=Q-1;Y.Pk[N]===0;)N--;Y.Pk[N]--;Y.Pk[N+1]+=2;Y.Pk[Q]--;Z-=2}while(Z>0);for(N=Q;N!==0;N--)for(T=Y.Pk[N];T!==0;)U=Y.Fn[--u],U>C||(X[U*2+1]!==N&&(Y.d5+=(N- X[U*2+1])*X[U*2],X[U*2+1]=N),T--)}akG(n,S,Y.Pk)}; kE7=function(Y,u,n){var U,k=-1,m=u[1],X=0,S=7,C=4;m===0&&(S=138,C=3);u[(n+1)*2+1]=65535;for(U=0;U<=n;U++){var f=m;m=u[(U+1)*2+1];++X>>=1)if(u&1&&Y.K1[n*2]!==0)return 0;if(Y.K1[18]!==0||Y.K1[20]!==0||Y.K1[26]!==0)return 1;for(n=32;n<256;n++)if(Y.K1[n*2]!==0)return 1;return 0}; YK=function(Y,u,n){Y.uU[Y.Hp+Y.q$*2]=u>>>8&255;Y.uU[Y.Hp+Y.q$*2+1]=u&255;Y.uU[Y.Er+Y.q$]=n&255;Y.q$++;u===0?Y.K1[n*2]++:(Y.matches++,u--,Y.K1[(VP[n]+256+1)*2]++,Y.Pt[(u<256?JG[u]:JG[256+(u>>>7)])*2]++);return Y.q$===Y.Kx-1}; nN=function(Y,u){Y.msg=uY[u];return u}; U_=function(Y){for(var u=Y.length;--u>=0;)Y[u]=0}; kK=function(Y){var u=Y.state,n=u.pending;n>Y.TR&&(n=Y.TR);n!==0&&(eK.QM(Y.output,u.uU,u.mF,n,Y.W8),Y.W8+=n,u.mF+=n,Y.jD+=n,Y.TR-=n,u.pending-=n,u.pending===0&&(u.mF=0))}; PQ=function(Y,u){var n=Y.fu>=0?Y.fu:-1,U=Y.rX-Y.fu,k=0;if(Y.level>0){Y.VY.CK===2&&(Y.VY.CK=XBu(Y));$v(Y,Y.e4);$v(Y,Y.IN);kE7(Y,Y.K1,Y.e4.Dv);kE7(Y,Y.Pt,Y.IN.Dv);$v(Y,Y.S5);for(k=18;k>=3&&Y.CF[PsS[k]*2+1]===0;k--);Y.d5+=3*(k+1)+5+5+4;var m=Y.d5+3+7>>>3;var X=Y.LZ+3+7>>>3;X<=m&&(m=X)}else m=X=U+5;if(U+4<=m&&n!==-1)EN(Y,u?1:0,3),uZ0(Y,n,U);else if(Y.strategy===4||X===m)EN(Y,2+(u?1:0),3),UEu(Y,mD,Xc);else{EN(Y,4+(u?1:0),3);n=Y.e4.Dv+1;U=Y.IN.Dv+1;k+=1;EN(Y,n-257,5);EN(Y,U-1,5);EN(Y,k-4,4);for(m=0;m>>8&255;Y.uU[Y.pending++]=u&255}; S6M=function(Y,u){var n=Y.Z2,U=Y.rX,k=Y.g3,m=Y.K5,X=Y.rX>Y.oO-262?Y.rX-(Y.oO-262):0,S=Y.window,C=Y.Z1,f=Y.bJ,Q=Y.rX+258,N=S[U+k-1],Z=S[U+k];Y.g3>=Y.DE&&(n>>=2);m>Y.c$&&(m=Y.c$);do{var T=u;if(S[T+k]===Z&&S[T+k-1]===N&&S[T]===S[U]&&S[++T]===S[U+1]){U+=2;for(T++;S[++U]===S[++T]&&S[++U]===S[++T]&&S[++U]===S[++T]&&S[++U]===S[++T]&&S[++U]===S[++T]&&S[++U]===S[++T]&&S[++U]===S[++T]&&S[++U]===S[++T]&&Uk){Y.u0=u;k=T;if(T>=m)break;N=S[U+k-1];Z=S[U+k]}}}while((u=f[u&C])>X&&--n!== 0);return k<=Y.c$?k:Y.c$}; Nd=function(Y){var u=Y.oO,n;do{var U=Y.Tp-Y.c$-Y.rX;if(Y.rX>=u+(u-262)){eK.QM(Y.window,Y.window,u,u,0);Y.u0-=u;Y.rX-=u;Y.fu-=u;var k=n=Y.qq;do{var m=Y.head[--k];Y.head[k]=m>=u?m-u:0}while(--n);k=n=u;do m=Y.bJ[--k],Y.bJ[k]=m>=u?m-u:0;while(--n);U+=u}if(Y.VY.hD===0)break;k=Y.VY;n=Y.window;m=Y.rX+Y.c$;var X=k.hD;X>U&&(X=U);X===0?n=0:(k.hD-=X,eK.QM(n,k.input,k.I5,X,m),k.state.wrap===1?k.qN=fN(k.qN,n,X,m):k.state.wrap===2&&(k.qN=QM(k.qN,n,X,m)),k.I5+=X,k.m5+=X,n=X);Y.c$+=n;if(Y.c$+Y.Ca>=3)for(U=Y.rX-Y.Ca, Y.B4=Y.window[U],Y.B4=(Y.B4<=3&&(Y.B4=(Y.B4<=3)if(n=YK(Y,Y.rX-Y.u0,Y.oe-3),Y.c$-=Y.oe,Y.oe<=Y.oI&&Y.c$>=3){Y.oe--;do Y.rX++,Y.B4=(Y.B4<=3&&(Y.B4=(Y.B4<4096)&&(Y.oe=2));if(Y.g3>=3&&Y.oe<=Y.g3){U=Y.rX+Y.c$-3;n=YK(Y,Y.rX-1-Y.qH,Y.g3-3);Y.c$-=Y.g3-1;Y.g3-=2;do++Y.rX<=U&&(Y.B4=(Y.B4<=3&&Y.rX>0&&(U=Y.rX-1,n=m[U],n===m[++U]&&n===m[++U]&&n===m[++U])){for(k=Y.rX+258;n===m[++U]&&n===m[++U]&&n===m[++U]&&n===m[++U]&&n===m[++U]&&n===m[++U]&&n===m[++U]&&n===m[++U]&&UY.c$&&(Y.oe=Y.c$)}Y.oe>=3?(n=YK(Y,1,Y.oe-3),Y.c$-=Y.oe,Y.rX+=Y.oe,Y.oe=0):(n=YK(Y,0,Y.window[Y.rX]),Y.c$--,Y.rX++);if(n&&(PQ(Y,!1),Y.VY.TR===0))return 1}Y.Ca=0;return u=== 4?(PQ(Y,!0),Y.VY.TR===0?3:4):Y.q$&&(PQ(Y,!1),Y.VY.TR===0)?1:2}; fe0=function(Y,u){for(var n;;){if(Y.c$===0&&(Nd(Y),Y.c$===0)){if(u===0)return 1;break}Y.oe=0;n=YK(Y,0,Y.window[Y.rX]);Y.c$--;Y.rX++;if(n&&(PQ(Y,!1),Y.VY.TR===0))return 1}Y.Ca=0;return u===4?(PQ(Y,!0),Y.VY.TR===0?3:4):Y.q$&&(PQ(Y,!1),Y.VY.TR===0)?1:2}; T6=function(Y,u,n,U,k){this.Xj=Y;this.IWW=u;this.LqV=n;this.xFa=U;this.func=k}; Q1u=function(){this.VY=null;this.status=0;this.uU=null;this.wrap=this.pending=this.mF=this.LY=0;this.b6=null;this.OY=0;this.method=8;this.nR=-1;this.Z1=this.ZM=this.oO=0;this.window=null;this.Tp=0;this.head=this.bJ=null;this.K5=this.DE=this.strategy=this.level=this.oI=this.Z2=this.g3=this.c$=this.u0=this.rX=this.pn=this.qH=this.oe=this.fu=this.GV=this.X_=this.n2=this.qq=this.B4=0;this.K1=new eK.Bk(1146);this.Pt=new eK.Bk(122);this.CF=new eK.Bk(78);U_(this.K1);U_(this.Pt);U_(this.CF);this.S5=this.IN= this.e4=null;this.Pk=new eK.Bk(16);this.Fn=new eK.Bk(573);U_(this.Fn);this.ZK=this.qe=0;this.depth=new eK.Bk(573);U_(this.depth);this.D4=this.b4=this.Ca=this.matches=this.LZ=this.d5=this.Hp=this.q$=this.Kx=this.Er=0}; Nrd=function(Y,u){if(!Y||!Y.state||u>5||u<0)return Y?nN(Y,-2):-2;var n=Y.state;if(!Y.output||!Y.input&&Y.hD!==0||n.status===666&&u!==4)return nN(Y,Y.TR===0?-5:-2);n.VY=Y;var U=n.nR;n.nR=u;if(n.status===42)if(n.wrap===2)Y.qN=0,Su(n,31),Su(n,139),Su(n,8),n.b6?(Su(n,(n.b6.text?1:0)+(n.b6.Lf?2:0)+(n.b6.extra?4:0)+(n.b6.name?8:0)+(n.b6.comment?16:0)),Su(n,n.b6.time&255),Su(n,n.b6.time>>8&255),Su(n,n.b6.time>>16&255),Su(n,n.b6.time>>24&255),Su(n,n.level===9?2:n.strategy>=2||n.level<2?4:0),Su(n,n.b6.os& 255),n.b6.extra&&n.b6.extra.length&&(Su(n,n.b6.extra.length&255),Su(n,n.b6.extra.length>>8&255)),n.b6.Lf&&(Y.qN=QM(Y.qN,n.uU,n.pending,0)),n.OY=0,n.status=69):(Su(n,0),Su(n,0),Su(n,0),Su(n,0),Su(n,0),Su(n,n.level===9?2:n.strategy>=2||n.level<2?4:0),Su(n,3),n.status=113);else{var k=8+(n.ZM-8<<4)<<8;k|=(n.strategy>=2||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6;n.rX!==0&&(k|=32);n.status=113;CN(n,k+(31-k%31));n.rX!==0&&(CN(n,Y.qN>>>16),CN(n,Y.qN&65535));Y.qN=1}if(n.status===69)if(n.b6.extra){for(k= n.pending;n.OY<(n.b6.extra.length&65535)&&(n.pending!==n.LY||(n.b6.Lf&&n.pending>k&&(Y.qN=QM(Y.qN,n.uU,n.pending-k,k)),kK(Y),k=n.pending,n.pending!==n.LY));)Su(n,n.b6.extra[n.OY]&255),n.OY++;n.b6.Lf&&n.pending>k&&(Y.qN=QM(Y.qN,n.uU,n.pending-k,k));n.OY===n.b6.extra.length&&(n.OY=0,n.status=73)}else n.status=73;if(n.status===73)if(n.b6.name){k=n.pending;do{if(n.pending===n.LY&&(n.b6.Lf&&n.pending>k&&(Y.qN=QM(Y.qN,n.uU,n.pending-k,k)),kK(Y),k=n.pending,n.pending===n.LY)){var m=1;break}m=n.OYk&&(Y.qN=QM(Y.qN,n.uU,n.pending-k,k));m===0&&(n.OY=0,n.status=91)}else n.status=91;if(n.status===91)if(n.b6.comment){k=n.pending;do{if(n.pending===n.LY&&(n.b6.Lf&&n.pending>k&&(Y.qN=QM(Y.qN,n.uU,n.pending-k,k)),kK(Y),k=n.pending,n.pending===n.LY)){m=1;break}m=n.OYk&&(Y.qN=QM(Y.qN,n.uU,n.pending-k,k));m===0&&(n.status=103)}else n.status= 103;n.status===103&&(n.b6.Lf?(n.pending+2>n.LY&&kK(Y),n.pending+2<=n.LY&&(Su(n,Y.qN&255),Su(n,Y.qN>>8&255),Y.qN=0,n.status=113)):n.status=113);if(n.pending!==0){if(kK(Y),Y.TR===0)return n.nR=-1,0}else if(Y.hD===0&&(u<<1)-(u>4?9:0)<=(U<<1)-(U>4?9:0)&&u!==4)return nN(Y,-5);if(n.status===666&&Y.hD!==0)return nN(Y,-5);if(Y.hD!==0||n.c$!==0||u!==0&&n.status!==666){U=n.strategy===2?fe0(n,u):n.strategy===3?Cst(n,u):rs[n.level].func(n,u);if(U===3||U===4)n.status=666;if(U===1||U===3)return Y.TR===0&&(n.nR= -1),0;if(U===2&&(u===1?(EN(n,2,3),HP(n,256,mD),n.D4===16?(gE(n,n.b4),n.b4=0,n.D4=0):n.D4>=8&&(n.uU[n.pending++]=n.b4&255,n.b4>>=8,n.D4-=8)):u!==5&&(EN(n,0,3),uZ0(n,0,0),u===3&&(U_(n.head),n.c$===0&&(n.rX=0,n.fu=0,n.Ca=0))),kK(Y),Y.TR===0))return n.nR=-1,0}if(u!==4)return 0;if(n.wrap<=0)return 1;n.wrap===2?(Su(n,Y.qN&255),Su(n,Y.qN>>8&255),Su(n,Y.qN>>16&255),Su(n,Y.qN>>24&255),Su(n,Y.m5&255),Su(n,Y.m5>>8&255),Su(n,Y.m5>>16&255),Su(n,Y.m5>>24&255)):(CN(n,Y.qN>>>16),CN(n,Y.qN&65535));kK(Y);n.wrap>0&& (n.wrap=-n.wrap);return n.pending!==0?0:1}; Md=function(Y){if(!(this instanceof Md))return new Md(Y);Y=this.options=eK.assign({level:-1,method:8,chunkSize:16384,eI:15,h2q:8,strategy:0,to:""},Y||{});Y.raw&&Y.eI>0?Y.eI=-Y.eI:Y.Gh&&Y.eI>0&&Y.eI<16&&(Y.eI+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.VY=new iH7;this.VY.TR=0;var u=this.VY;var n=Y.level,U=Y.method,k=Y.eI,m=Y.h2q,X=Y.strategy;if(u){var S=1;n===-1&&(n=6);k<0?(S=0,k=-k):k>15&&(S=2,k-=16);if(m<1||m>9||U!==8||k<8||k>15||n<0||n>9||X<0||X>4)u=nN(u,-2);else{k===8&&(k=9); var C=new Q1u;u.state=C;C.VY=u;C.wrap=S;C.b6=null;C.ZM=k;C.oO=1<>=7;m<30;m++)for(a0[m]=X<<7,k=0;k<1<=f.oO&&(u===0&&(U_(f.head),f.rX=0,f.fu=0,f.Ca=0),n=new eK.qL(f.oO),eK.QM(n,m,X-f.oO,f.oO,0),m=n,X=f.oO);n=Y.hD;U=Y.I5;k=Y.input;Y.hD=X;Y.I5=0;Y.input=m;for(Nd(f);f.c$>=3;){m=f.rX;X=f.c$-2;do f.B4=(f.B4<-9&&((((0,n[6])(n[19]),n[4])(n[76],(0,n[27])(),n[35]),((0,n[68])(n[62],n[52]),n[2])(n[52],n[13]),n[76])(n[43]),/;;()/)||((((0,n[55])(n[13],n[38]),n[66])(n[72],(0,n[31])(),n[14]),n[26])(n[62],n[14]),n[65])((0,n[55])(n[61],n[54]),n[1],n[35]),n[20]<5&&(0,n[65])((0,n[56])(n[34],n[67]),n[56],n[61],n[42]),n[30]<1&&((((((0,n[3])(n[16],n[34]),n[68])(n[13],n[4]),n[32])(n[37], n[73]),(0,n[41])((0,n[57])(n[69],n[72]),n[31],n[67],n[4]),(0,n[58])(n[39],(0,n[70])(),n[53]),n[73])(n[50],n[27]),n[47])(n[53],n[9]),n[47])(n[27],n[45]),n[74]!=-6&&((0,n[57])((0,n[57])(((0,n[57])((0,n[63])(n[5]),n[29],n[71],n[8]),n[29])(n[24],n[54]),n[59],n[56],n[50]),n[17],n[71],n[52]),/,}/)||(0,n[58])((0,n[20])((0,n[19])(n[13],(0,n[26])(),n[50]),n[19],n[13],(0,n[21])(),n[50]),n[59],(0,n[20])((0,n[59])(n[0],n[24]),n[30],n[51],n[35]),n[25],n[67]),n[25]===-5&&(((((0,n[59])(n[33],n[71]),n[4])(n[22], n[50]),n[19])(n[13],(0,n[7])(),n[71]),(0,n[19])(n[38],(0,n[26])(),n[24]),n[29])(n[67],n[73]),P[42])||(0,n[12])((0,n[58])((0,n[6])(n[67]),n[73],(0,n[60])(n[10],n[16]),n[8],n[34]),n[3],(0,n[6])(n[50],n[36]),n[65],n[43],(0,n[63])(),n[60])}catch(U){(0,n[25])(n[20],n[34]),(0,n[64])((0,n[70])(n[12]),n[65],n[71],(0,n[77])(),n[60]),(0,n[64])((0,n[65])(n[new Date(P[62])/1E3],(0,n[new Date(P[79])/1E3])(),n[34]),n[67],n[13],n[74])}finally{n[68]!=1&&(n[32]===-2&&(((0,n[65])(n[71],(0,n[58])(),n[13]),n[65])(n[71], (0,n[42])(),n[34]),(0,n[25])(n[75],n[60]),1)||(0,n[72])((0,n[67])(n[17],n[21]),n[10],(0,n[1])(n[57],n[33]),n[16],n[6])),n[51]>=new Date(P[49])/1E3&&(n[15]>=10||(((0,n[10])((0,n[24])(n[0]),n[76],n[19],n[43]),n[41])(n[20],n[6]),0))&&((0,n[40])(n[23]),(0,n[53])(n[72],(0,n[76])(),n[new Date(P[31])/1E3]),n[63])(n[6],n[57]),(n[30]===5||((0,n[54])((0,n[new Date(P[86])/1E3])(n[68],n[27]),n[51],n[27],n[4]),0))&&((0,n[40])(n[27]),n[53])(n[72],(0,n[5])(),n[58]),(n[77]>10||((0,n[54])((0,n[53])(n[75],(0,n[76])(), n[58]),n[15],n[0],n[27]),0))&&(0,n[28])(n[58],n[45])^(0,n[15])(n[2],n[27]),n[25]!=5&&(n[70]===-2?(0,n[54])((0,n[new Date(P[56])/1E3])(n[64],n[16]),n[15],n[74],n[64]):((0,n[28])(n[27],n[35]),n[51])(n[7],n[73])),(n[71]>-7||((0,n[18])((0,n[27])(n[65],n[34]),n[57],n[43],n[69]),void 0))&&((0,n[2])(n[14],n[126%(new Date(P[55])/1E3)-243+145]),n[70])(n[65],n[60])}}catch(U){return P[48]+Y}return u[P[26]](P[8])}; g.ju=function(Y){this.name=Y}; xEu=function(Y){this.xV=H7(Y)}; KN=function(Y){this.xV=H7(Y)}; pN=function(Y){this.xV=H7(Y)}; leW=function(Y){this.xV=H7(Y)}; LN=function(Y){this.xV=H7(Y)}; tw=function(Y){this.xV=H7(Y)}; BQ=function(Y){this.xV=H7(Y)}; oJ=function(Y){this.xV=H7(Y)}; cQ=function(Y){this.xV=H7(Y)}; vQ=function(Y){this.xV=H7(Y)}; RJ=function(Y){this.xV=H7(Y)}; DC=function(Y){this.xV=H7(Y)}; xK=function(Y){this.xV=H7(Y)}; lY=function(Y){this.xV=H7(Y)}; hw=function(Y){this.xV=H7(Y)}; ws=function(Y){this.xV=H7(Y,500)}; WQ=function(Y){this.xV=H7(Y)}; eu=function(Y){this.xV=H7(Y)}; hdu=function(Y){this.xV=H7(Y)}; wBB=function(){return g.nR("yt.ads.biscotti.lastId_")||""}; Wic=function(Y){g.Y$("yt.ads.biscotti.lastId_",Y)}; IJ=function(){var Y=arguments,u=bY;Y.length>1?u[Y[0]]=Y[1]:Y.length===1&&Object.assign(u,Y[0])}; g.z6=function(Y,u){return Y in bY?bY[Y]:u}; HQ=function(Y){var u=bY.EXPERIMENT_FLAGS;return u?u[Y]:void 0}; edW=function(Y){yM.forEach(function(u){return u(Y)})}; g.O_=function(Y){return Y&&window.yterr?function(){try{return Y.apply(this,arguments)}catch(u){g.VM(u)}}:Y}; g.VM=function(Y){var u=g.nR("yt.logging.errors.log");u?u(Y,"ERROR",void 0,void 0,void 0,void 0,void 0):(u=g.z6("ERRORS",[]),u.push([Y,"ERROR",void 0,void 0,void 0,void 0,void 0]),IJ("ERRORS",u));edW(Y)}; Fc=function(Y,u,n,U,k){var m=g.nR("yt.logging.errors.log");m?m(Y,"WARNING",u,n,U,void 0,k):(m=g.z6("ERRORS",[]),m.push([Y,"WARNING",u,n,U,void 0,k]),IJ("ERRORS",m))}; Jw=function(Y,u){u=Y.split(u);for(var n={},U=0,k=u.length;U1?Y[1]:Y[0])):{}}; uL=function(Y,u){return g1u(Y,u||{},!0)}; nv=function(Y,u){return g1u(Y,u||{},!1)}; g1u=function(Y,u,n){var U=Y.split("#",2);Y=U[0];U=U.length>1?"#"+U[1]:"";var k=Y.split("?",2);Y=k[0];k=aJ(k[1]||"");for(var m in u)if(n||!g.f3(k,m))k[m]=u[m];return g.Mk(Y,k)+U}; UU=function(Y){if(!u)var u=window.location.href;var n=g.Co(Y)[1]||null,U=g.fo(Y);n&&U?(Y=g.Co(Y),u=g.Co(u),Y=Y[3]==u[3]&&Y[1]==u[1]&&Y[4]==u[4]):Y=U?g.fo(u)===U&&(Number(g.Co(u)[4]||null)||null)===(Number(g.Co(Y)[4]||null)||null):!0;return Y}; ko=function(Y){Y||(Y=document.location.href);Y=g.Co(Y)[1]||null;return Y!==null&&Y==="https"}; mR=function(Y){Y=E1A(Y);return Y===null?!1:Y[0]==="com"&&Y[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; HH0=function(Y){Y=E1A(Y);return Y===null?!1:Y[1]==="google"?!0:Y[2]==="google"?Y[0]==="au"&&Y[1]==="com"?!0:Y[0]==="uk"&&Y[1]==="co"?!0:!1:!1}; E1A=function(Y){Y=g.fo(Y);return Y!==null?Y.split(".").reverse():null}; bH7=function(Y){return Y&&Y.match(yHG)?Y:vp(Y)}; Ss=function(Y){var u=XA;Y=Y===void 0?wBB():Y;var n=Object,U=n.assign,k=Py(u);var m=u.K;try{var X=m.screenX;var S=m.screenY}catch(R){}try{var C=m.outerWidth;var f=m.outerHeight}catch(R){}try{var Q=m.innerWidth;var N=m.innerHeight}catch(R){}try{var Z=m.screenLeft;var T=m.screenTop}catch(R){}try{Q=m.innerWidth,N=m.innerHeight}catch(R){}try{var r=m.screen.availWidth;var K=m.screen.availTop}catch(R){}m=[Z,T,X,S,r,K,C,f,Q,N];X=u$G(!1,u.K.top);S={};var L=L===void 0?g.$e:L;C=new eU;"SVGElement"in L&&"createElementNS"in L.document&&C.set(0);f=nPM();f["allow-top-navigation-by-user-activation"]&&C.set(1);f["allow-popups-to-escape-sandbox"]&&C.set(2);L.crypto&&L.crypto.subtle&&C.set(3);"TextDecoder"in L&&"TextEncoder"in L&&C.set(4);L=dYS(C);u=(S.bc=L,S.bih=X.height,S.biw=X.width,S.brdim=m.join(),S.vis=Pi(u.j),S.wgl=!!DD.WebGLRenderingContext,S);n=U.call(n,k,u);n.ca_type="image";Y&&(n.bid=Y);return n}; Py=function(Y){var u={};u.dt=VdY;u.flash="0";a:{try{var n=Y.K.top.location.href}catch(f){Y=2;break a}Y=n?n===Y.j.location.href?0:1:2}u=(u.frm=Y,u);try{u.u_tz=-(new Date).getTimezoneOffset();try{var U=DD.history.length}catch(f){U=0}u.u_his=U;var k;u.u_h=(k=DD.screen)==null?void 0:k.height;var m;u.u_w=(m=DD.screen)==null?void 0:m.width;var X;u.u_ah=(X=DD.screen)==null?void 0:X.availHeight;var S;u.u_aw=(S=DD.screen)==null?void 0:S.availWidth;var C;u.u_cd=(C=DD.screen)==null?void 0:C.colorDepth}catch(f){}return u}; FiA=function(){if(!OHu)return null;var Y=OHu();return"open"in Y?Y:null}; g.fv=function(Y){switch(Cv(Y)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Cv=function(Y){return Y&&"status"in Y?Y.status:-1}; g.QS=function(Y,u){typeof Y==="function"&&(Y=g.O_(Y));return window.setTimeout(Y,u)}; g.NI=function(Y,u){typeof Y==="function"&&(Y=g.O_(Y));return window.setInterval(Y,u)}; g.iL=function(Y){window.clearTimeout(Y)}; g.Zz=function(Y){window.clearInterval(Y)}; g.rL=function(Y){Y=Tq(Y);return typeof Y==="string"&&Y==="false"?!1:!!Y}; g.MI=function(Y,u){Y=Tq(Y);return Y===void 0&&u!==void 0?u:Number(Y||0)}; sU=function(){return g.z6("EXPERIMENTS_TOKEN","")}; Tq=function(Y){return g.z6("EXPERIMENT_FLAGS",{})[Y]}; dL=function(){for(var Y=[],u=g.z6("EXPERIMENTS_FORCED_FLAGS",{}),n=g.A(Object.keys(u)),U=n.next();!U.done;U=n.next())U=U.value,Y.push({key:U,value:String(u[U])});n=g.z6("EXPERIMENT_FLAGS",{});U=g.A(Object.keys(n));for(var k=U.next();!k.done;k=U.next())k=k.value,k.startsWith("force_")&&u[k]===void 0&&Y.push({key:k,value:String(n[k])});return Y}; Gq=function(Y,u,n,U,k,m,X,S,C){function f(){(Q&&"readyState"in Q?Q.readyState:0)===4&&u&&g.O_(u)(Q)} n=n===void 0?"GET":n;U=U===void 0?"":U;S=S===void 0?!1:S;var Q=FiA();if(!Q)return null;"onloadend"in Q?Q.addEventListener("loadend",f,!1):Q.onreadystatechange=f;g.rL("debug_forward_web_query_parameters")&&(Y=JHG(Y));Q.open(n,Y,!0);m&&(Q.responseType=m);X&&(Q.withCredentials=!0);n=n==="POST"&&(window.FormData===void 0||!(U instanceof FormData));if(k=q6B(Y,k))for(var N in k)Q.setRequestHeader(N,k[N]),"content-type"===N.toLowerCase()&&(n=!1);n&&Q.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); C&&"onprogress"in Q&&(Q.onprogress=function(){C(Q.responseText)}); if(S&&"setAttributionReporting"in XMLHttpRequest.prototype){Y={eventSourceEligible:!0,triggerEligible:!1};try{Q.setAttributionReporting(Y)}catch(Z){Fc(Z)}}Q.send(U);return Q}; q6B=function(Y,u){u=u===void 0?{}:u;var n=UU(Y),U=g.z6("INNERTUBE_CLIENT_NAME"),k=g.rL("web_ajax_ignore_global_headers_if_set"),m;for(m in aed){var X=g.z6(aed[m]),S=m==="X-Goog-AuthUser"||m==="X-Goog-PageId";m!=="X-Goog-Visitor-Id"||X||(X=g.z6("VISITOR_DATA"));var C;if(!(C=!X)){if(!(C=n||(g.fo(Y)?!1:!0))){C=Y;var f;if(f=g.rL("add_auth_headers_to_remarketing_google_dot_com_ping")&&m==="Authorization"&&(U==="TVHTML5"||U==="TVHTML5_UNPLUGGED"||U==="TVHTML5_SIMPLY")&&HH0(C))C=Qi(C)||"",C=C.split("/"), C="/"+(C.length>1?C[1]:""),f=C==="/pagead";C=f?!0:!1}C=!C}C||k&&u[m]!==void 0||U==="TVHTML5_UNPLUGGED"&&S||(u[m]=X)}"X-Goog-EOM-Visitor-Id"in u&&"X-Goog-Visitor-Id"in u&&delete u["X-Goog-Visitor-Id"];if(n||!g.fo(Y))u["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(n||!g.fo(Y)){try{var Q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(N){}Q&&(u["X-YouTube-Time-Zone"]=Q)}document.location.hostname.endsWith("youtubeeducation.com")||!n&&g.fo(Y)||(u["X-YouTube-Ad-Signals"]= qd(Ss()));return u}; js=function(Y,u){u.method="POST";u.postParams||(u.postParams={});return g.Ak(Y,u)}; uSY=function(Y,u){if(window.fetch&&u.format!=="XML"){var n={method:u.method||"GET",credentials:"same-origin"};u.headers&&(n.headers=u.headers);u.priority&&(n.priority=u.priority);Y=$EY(Y,u);var U=YvY(Y,u);U&&(n.body=U);u.withCredentials&&(n.credentials="include");var k=u.context||g.$e,m=!1,X;fetch(Y,n).then(function(S){if(!m){m=!0;X&&g.iL(X);var C=S.ok,f=function(Q){Q=Q||{};C?u.onSuccess&&u.onSuccess.call(k,Q,S):u.onError&&u.onError.call(k,Q,S);u.onFinish&&u.onFinish.call(k,Q,S)}; (u.format||"JSON")==="JSON"&&(C||S.status>=400&&S.status<500)?S.json().then(f,function(){f(null)}):f(null)}}).catch(function(){u.onError&&u.onError.call(k,{},{})}); Y=u.timeout||0;u.onFetchTimeout&&Y>0&&(X=g.QS(function(){m||(m=!0,g.iL(X),u.onFetchTimeout.call(u.context||g.$e))},Y))}else g.Ak(Y,u)}; g.Ak=function(Y,u){var n=u.format||"JSON";Y=$EY(Y,u);var U=YvY(Y,u),k=!1,m=nWe(Y,function(C){if(!k){k=!0;S&&g.iL(S);var f=g.fv(C),Q=null,N=400<=C.status&&C.status<500,Z=500<=C.status&&C.status<600;if(f||N||Z)Q=Uve(Y,n,C,u.convertToSafeHtml);f&&(f=ksm(n,C,Q));Q=Q||{};N=u.context||g.$e;f?u.onSuccess&&u.onSuccess.call(N,C,Q):u.onError&&u.onError.call(N,C,Q);u.onFinish&&u.onFinish.call(N,C,Q)}},u.method,U,u.headers,u.responseType,u.withCredentials,!1,u.onProgress); U=u.timeout||0;if(u.onTimeout&&U>0){var X=u.onTimeout;var S=g.QS(function(){k||(k=!0,m.abort(),g.iL(S),X.call(u.context||g.$e,m))},U)}return m}; $EY=function(Y,u){u.includeDomain&&(Y=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+Y);var n=g.z6("XSRF_FIELD_NAME");if(u=u.urlParams)u[n]&&delete u[n],Y=uL(Y,u);return Y}; YvY=function(Y,u){var n=g.z6("XSRF_FIELD_NAME"),U=g.z6("XSRF_TOKEN"),k=u.postBody||"",m=u.postParams,X=g.z6("XSRF_FIELD_NAME"),S;u.headers&&(S=u.headers["Content-Type"]);u.excludeXsrf||g.fo(Y)&&!u.withCredentials&&g.fo(Y)!==document.location.hostname||u.method!=="POST"||S&&S!=="application/x-www-form-urlencoded"||u.postParams&&u.postParams[X]||(m||(m={}),m[n]=U);(g.rL("ajax_parse_query_data_only_when_filled")&&m&&Object.keys(m).length>0||m)&&typeof k==="string"&&(k=aJ(k),g.sF(k,m),k=u.postBodyFormat&& u.postBodyFormat==="JSON"?JSON.stringify(k):g.r3(k));m=k||m&&!g.i4(m);!mvA&&m&&u.method!=="POST"&&(mvA=!0,g.VM(Error("AJAX request with postData should use POST")));return k}; Uve=function(Y,u,n,U){var k=null;switch(u){case "JSON":try{var m=n.responseText}catch(X){throw U=Error("Error reading responseText"),U.params=Y,Fc(U),X;}Y=n.getResponseHeader("Content-Type")||"";m&&Y.indexOf("json")>=0&&(m.substring(0,5)===")]}'\n"&&(m=m.substring(5)),k=JSON.parse(m));break;case "XML":if(Y=(Y=n.responseXML)?Xgd(Y):null)k={},g.Jy(Y.getElementsByTagName("*"),function(X){k[X.tagName]=PJS(X)})}U&&Svc(k); return k}; Svc=function(Y){if(g.XG(Y))for(var u in Y)u==="html_content"||zSe(u,"_html")?Y[u]=ZO(Y[u]):Svc(Y[u])}; ksm=function(Y,u,n){if(u&&u.status===204)return!0;switch(Y){case "JSON":return!!n;case "XML":return Number(n&&n.return_code)===0;case "RAW":return!0;default:return!!n}}; Xgd=function(Y){return Y?(Y=("responseXML"in Y?Y.responseXML:Y).getElementsByTagName("root"))&&Y.length>0?Y[0]:null:null}; PJS=function(Y){var u="";g.Jy(Y.childNodes,function(n){u+=n.nodeValue}); return u}; JHG=function(Y){var u=window.location.search,n=g.fo(Y);g.rL("debug_handle_relative_url_for_query_forward_killswitch")||!n&&UU(Y)&&(n=document.location.hostname);var U=Qi(Y);U=(n=n&&(n.endsWith("youtube.com")||n.endsWith("youtube-nocookie.com")))&&U&&U.startsWith("/api/");if(!n||U)return Y;var k=aJ(u),m={};g.Jy(CJ7,function(X){k[X]&&(m[X]=k[X])}); return nv(Y,m)}; pv=function(Y,u){var n=g.rc(u),U;return(new g.cB(function(k,m){n.onSuccess=function(X){g.fv(X)?k(new fbu(X)):m(new Kv("Request failed, status="+Cv(X),"net.badstatus",X))}; n.onError=function(X){m(new Kv("Unknown request error","net.unknown",X))}; n.onTimeout=function(X){m(new Kv("Request timed out","net.timeout",X))}; U=g.Ak(Y,n)})).Qg(function(k){if(k instanceof hH){var m; (m=U)==null||m.abort()}return De(k)})}; g.Lv=function(Y,u,n,U,k,m){function X(C,f,Q){return C.Qg(function(N){if(f<=0||Cv(N.xhr)===403)return De(new Kv("Request retried too many times","net.retryexhausted",N.xhr,N));var Z=Math.pow(2,n-f+1)*Q,T=k>0?Math.min(k,Z):Z;return S(Q).then(function(){m&&m(N,f-1);return X(pv(Y,u),f-1,T)})})} function S(C){return new g.cB(function(f){setTimeout(f,C)})} k=k===void 0?-1:k;return X(pv(Y,u),n-1,U)}; Kv=function(Y,u,n){r$.call(this,Y+", errorCode="+u);this.errorCode=u;this.xhr=n;this.name="PromiseAjaxError"}; fbu=function(Y){this.xhr=Y}; tk=function(Y){this.K=Y===void 0?null:Y;this.X=0;this.j=null}; By=function(Y){var u=new tk;Y=Y===void 0?null:Y;u.X=2;u.j=Y===void 0?null:Y;return u}; oo=function(Y){var u=new tk;Y=Y===void 0?null:Y;u.X=1;u.j=Y===void 0?null:Y;return u}; g.Ro=function(Y,u,n,U,k){cy||vy.set(""+Y,u,{j_:n,path:"/",domain:U===void 0?"youtube.com":U,secure:k===void 0?!1:k})}; g.Dz=function(Y,u){if(!cy)return vy.get(""+Y,u)}; g.xo=function(Y,u,n){cy||vy.remove(""+Y,u===void 0?"/":u,n===void 0?"youtube.com":n)}; QSB=function(){if(g.rL("embeds_web_enable_cookie_detection_fix")){if(!g.$e.navigator.cookieEnabled)return!1}else if(!vy.isEnabled())return!1;if(!vy.isEmpty())return!0;g.rL("embeds_web_enable_cookie_detection_fix")?vy.set("TESTCOOKIESENABLED","1",{j_:60,SXc:"none",secure:!0}):vy.set("TESTCOOKIESENABLED","1",{j_:60});if(vy.get("TESTCOOKIESENABLED")!=="1")return!1;vy.remove("TESTCOOKIESENABLED");return!0}; g.z=function(Y,u){if(Y)return Y[u.name]}; lL=function(Y){var u=g.z6("INNERTUBE_HOST_OVERRIDE");u&&(Y=String(u)+String(Nk(Y)));return Y}; NjY=function(Y){var u={};g.rL("json_condensed_response")&&(u.prettyPrint="false");return Y=nv(Y,u)}; hk=function(Y,u){var n=n===void 0?{}:n;Y={method:u===void 0?"POST":u,mode:UU(Y)?"same-origin":"cors",credentials:UU(Y)?"same-origin":"include"};u={};for(var U=g.A(Object.keys(n)),k=U.next();!k.done;k=U.next())k=k.value,n[k]&&(u[k]=n[k]);Object.keys(u).length>0&&(Y.headers=u);return Y}; wL=function(){var Y=/Chrome\/(\d+)/.exec(g.Wq());return Y?parseFloat(Y[1]):NaN}; Wy=function(){var Y=/\sCobalt\/(\S+)\s/.exec(g.Wq());if(!Y)return NaN;var u=[];Y=g.A(Y[1].split("."));for(var n=Y.next();!n.done;n=Y.next())n=parseInt(n.value,10),n>=0&&u.push(n);return parseFloat(u.join("."))}; bL=function(){return g.es("android")&&g.es("chrome")&&!(g.es("trident/")||g.es("edge/"))&&!g.es("cobalt")}; iJt=function(){return g.es("armv7")||g.es("aarch64")||g.es("android")}; g.Io=function(){return g.es("cobalt")}; zq=function(){return g.es("cobalt")&&g.es("appletv")}; gL=function(){return g.es("(ps3; leanback shell)")||g.es("ps3")&&g.Io()}; ZJm=function(){return g.es("(ps4; leanback shell)")||g.es("ps4")&&g.Io()}; g.Tjt=function(){return g.Io()&&(g.es("ps4 vr")||g.es("ps4 pro vr"))}; EU=function(){var Y=/WebKit\/([0-9]+)/.exec(g.Wq());return!!(Y&&parseInt(Y[1],10)>=600)}; Hy=function(){var Y=/WebKit\/([0-9]+)/.exec(g.Wq());return!!(Y&&parseInt(Y[1],10)>=602)}; rtM=function(){return g.es("iemobile")||g.es("windows phone")&&g.es("edge")}; OU=function(){return(yS||VS)&&g.es("applewebkit")&&!g.es("version")&&(!g.es("safari")||g.es("gsa/"))}; Jk=function(){return g.FA&&g.es("version/")}; qI=function(){return g.es("smart-tv")&&g.es("samsung")}; g.es=function(Y){var u=g.Wq();return u?u.toLowerCase().indexOf(Y)>=0:!1}; ao=function(){return ufS()||OU()||Jk()?!0:g.z6("EOM_VISITOR_DATA")?!1:!0}; $o=function(Y,u){return u===void 0||u===null?Y:u==="1"||u===!0||u===1||u==="True"?!0:!1}; YU=function(Y,u,n){for(var U in n)if(n[U]==u)return n[U];return Y}; uW=function(Y,u){return u===void 0||u===null?Y:Number(u)}; nb=function(Y,u){return u===void 0||u===null?Y:u.toString()}; U2=function(Y,u){if(u){if(Y==="fullwidth")return Infinity;if(Y==="fullheight")return 0}return Y&&(u=Y.match(MeM))&&(Y=Number(u[2]),u=Number(u[1]),!isNaN(Y)&&!isNaN(u)&&Y>0)?u/Y:NaN}; kU=function(Y){var u=Y.docid||Y.video_id||Y.videoId||Y.id;if(u)return u;u=Y.raw_player_response;u||(Y=Y.player_response)&&(u=JSON.parse(Y));return u&&u.videoDetails&&u.videoDetails.videoId||null}; sSu=function(Y){return mH(Y,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.XJ=function(Y){return Y==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||Y==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; mH=function(Y,u){u=(u===void 0?0:u)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(u="EMBEDDED_PLAYER_MODE_PFL");var n=Y.raw_embedded_player_response;if(!n&&(Y=Y.embedded_player_response))try{n=JSON.parse(Y)}catch(U){return u}return n?YU(u,n.embeddedPlayerMode,dvm):u}; So=function(Y){r$.call(this,Y.message||Y.description||Y.name);this.isMissing=Y instanceof Pk;this.isTimeout=Y instanceof Kv&&Y.errorCode=="net.timeout";this.isCanceled=Y instanceof hH}; Pk=function(){r$.call(this,"Biscotti ID is missing from server")}; GsM=function(){if(g.rL("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!ao())return Error("User has not consented - not fetching biscotti id.");var Y=g.z6("PLAYER_VARS",{});if(g.Zn(Y,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(sSu(Y))return Error("Biscotti id fetching has been disabled for pfl.")}; pgt=function(){var Y=GsM();if(Y!==void 0)return De(Y);Cb||(Cb=pv("//googleads.g.doubleclick.net/pagead/id",AtS).then(jSc).Qg(function(u){return KMu(2,u)})); return Cb}; jSc=function(Y){Y=Y.xhr.responseText;if(!cq(Y,")]}'"))throw new Pk;Y=JSON.parse(Y.substr(4));if((Y.type||1)>1)throw new Pk;Y=Y.id;Wic(Y);Cb=oo(Y);LMu(18E5,2);return Y}; KMu=function(Y,u){u=new So(u);Wic("");Cb=By(u);Y>0&&LMu(12E4,Y-1);throw u;}; LMu=function(Y,u){g.QS(function(){pv("//googleads.g.doubleclick.net/pagead/id",AtS).then(jSc,function(n){return KMu(u,n)}).Qg(g.lN)},Y)}; tec=function(){try{var Y=g.nR("yt.ads.biscotti.getId_");return Y?Y():pgt()}catch(u){return De(u)}}; oWe=function(Y){Y&&(Y.dataset?Y.dataset[BjM()]="true":UXc(Y))}; ctc=function(Y){return Y?Y.dataset?Y.dataset[BjM()]:Y.getAttribute("data-loaded"):null}; BjM=function(){return vWu.loaded||(vWu.loaded="loaded".replace(/\-([a-z])/g,function(Y,u){return u.toUpperCase()}))}; RxA=function(){var Y=document;if("visibilityState"in Y)return Y.visibilityState;var u=fb+"VisibilityState";if(u in Y)return Y[u]}; QT=function(Y,u){var n;g3(Y,function(U){n=u[U];return!!n}); return n}; Nx=function(Y){if(Y.requestFullscreen)Y=Y.requestFullscreen(void 0);else if(Y.webkitRequestFullscreen)Y=Y.webkitRequestFullscreen();else if(Y.mozRequestFullScreen)Y=Y.mozRequestFullScreen();else if(Y.msRequestFullscreen)Y=Y.msRequestFullscreen();else if(Y.webkitEnterFullscreen)Y=Y.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return Y instanceof Promise?Y:Promise.resolve()}; TP=function(Y){var u;g.iW()?Zm()==Y&&(u=document):u=Y;return u&&(Y=QT(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],u))?(u=Y.call(u),u instanceof Promise?u:Promise.resolve()):Promise.resolve()}; Dv7=function(Y){return g.G$(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(u){return"on"+u.toLowerCase()in Y})}; xvM=function(){var Y=document;return g.G$(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(u){return"on"+u.toLowerCase()in Y})}; g.iW=function(){return!!QT(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Zm=function(Y){Y=Y===void 0?!1:Y;var u=QT(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(Y)for(;u&&u.shadowRoot;)u=u.shadowRoot.fullscreenElement;return u?u:null}; rT=function(Y){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(Y=Y||window.event){this.event=Y;for(var u in Y)u in lbW||(this[u]=Y[u]);this.scale=Y.scale;this.rotation=Y.rotation;var n=Y.target||Y.srcElement;n&&n.nodeType==3&&(n=n.parentNode);this.target=n;var U=Y.relatedTarget; if(U)try{U=U.nodeName?U:null}catch(k){U=null}else this.type=="mouseover"?U=Y.fromElement:this.type=="mouseout"&&(U=Y.toElement);this.relatedTarget=U;this.clientX=Y.clientX!=void 0?Y.clientX:Y.pageX;this.clientY=Y.clientY!=void 0?Y.clientY:Y.pageY;this.keyCode=Y.keyCode?Y.keyCode:Y.which;this.charCode=Y.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=Y.altKey;this.ctrlKey=Y.ctrlKey;this.shiftKey=Y.shiftKey;this.metaKey=Y.metaKey;this.K=Y.pageX;this.j=Y.pageY}}catch(k){}}; hxu=function(Y){if(document.body&&document.documentElement){var u=document.body.scrollTop+document.documentElement.scrollTop;Y.K=Y.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);Y.j=Y.clientY+u}}; wgS=function(Y,u,n,U){U=U===void 0?{}:U;Y.addEventListener&&(u!="mouseenter"||"onmouseenter"in document?u!="mouseleave"||"onmouseenter"in document?u=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(u="MozMousePixelScroll"):u="mouseout":u="mouseover");return Nl(Mx,function(k){var m=typeof k[4]==="boolean"&&k[4]==!!U,X=g.XG(k[4])&&g.XG(U)&&g.Td(k[4],U);return!!k.length&&k[0]==Y&&k[1]==u&&k[2]==n&&(m||X)})}; g.s2=function(Y,u,n,U){U=U===void 0?{}:U;if(!Y||!Y.addEventListener&&!Y.attachEvent)return"";var k=wgS(Y,u,n,U);if(k)return k;k=++WMc.count+"";var m=!(u!="mouseenter"&&u!="mouseleave"||!Y.addEventListener||"onmouseenter"in document);var X=m?function(S){S=new rT(S);if(!B_(S.relatedTarget,function(C){return C==Y},!0))return S.currentTarget=Y,S.type=u,n.call(Y,S)}:function(S){S=new rT(S); S.currentTarget=Y;return n.call(Y,S)}; X=g.O_(X);Y.addEventListener?(u=="mouseenter"&&m?u="mouseover":u=="mouseleave"&&m?u="mouseout":u=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(u="MozMousePixelScroll"),exB()||typeof U==="boolean"?Y.addEventListener(u,X,U):Y.addEventListener(u,X,!!U.capture)):Y.attachEvent("on"+u,X);Mx[k]=[Y,u,n,X,U];return k}; IbY=function(Y){return bJA(Y,function(u){return g.nE(u,"ytp-ad-has-logging-urls")})}; bJA=function(Y,u){var n=document.body||document;return g.s2(n,"click",function(U){var k=B_(U.target,function(m){return m===n||u(m)},!0); k&&k!==n&&!k.disabled&&(U.currentTarget=k,Y.call(k,U))})}; g.dT=function(Y){Y&&(typeof Y=="string"&&(Y=[Y]),g.Jy(Y,function(u){if(u in Mx){var n=Mx[u],U=n[0],k=n[1],m=n[3];n=n[4];U.removeEventListener?exB()||typeof n==="boolean"?U.removeEventListener(k,m,n):U.removeEventListener(k,m,!!n.capture):U.detachEvent&&U.detachEvent("on"+k,m);delete Mx[u]}}))}; GP=function(Y){for(var u in Mx)Mx[u][0]==Y&&g.dT(u)}; A6=function(Y){Y=Y||window.event;var u;Y.composedPath&&typeof Y.composedPath==="function"?u=Y.composedPath():u=Y.path;u&&u.length?Y=u[0]:(Y=Y||window.event,Y=Y.target||Y.srcElement,Y.nodeType==3&&(Y=Y.parentNode));return Y}; jo=function(Y){this.S=Y;this.K=null;this.G=0;this.W=null;this.J=0;this.j=[];for(Y=0;Y<4;Y++)this.j.push(0);this.X=0;this.oV=g.s2(window,"mousemove",(0,g.fR)(this.N,this));this.Z=g.NI((0,g.fR)(this.KG,this),25)}; Kb=function(Y){g.e.call(this);this.S=[];this.Gw=Y||this}; pb=function(Y,u,n,U){for(var k=0;k0?n:0;n=U?Date.now()+U*1E3:0;if((U=U?(0,g.t6)():Bk())&&window.JSON){typeof u!=="string"&&(u=JSON.stringify(u,void 0));try{U.set(Y,u,n)}catch(k){U.remove(Y)}}}; g.ck=function(Y){var u=Bk(),n=(0,g.t6)();if(!u&&!n||!window.JSON)return null;try{var U=u.get(Y)}catch(k){}if(typeof U!=="string")try{U=n.get(Y)}catch(k){}if(typeof U!=="string")return null;try{U=JSON.parse(U,void 0)}catch(k){}return U}; gWY=function(){var Y=(0,g.t6)();if(Y&&(Y=Y.j("yt-player-quality")))return Y.creation}; g.vk=function(Y){try{var u=Bk(),n=(0,g.t6)();u&&u.remove(Y);n&&n.remove(Y)}catch(U){}}; g.RU=function(){return g.ck("yt-remote-session-screen-id")}; EWc=function(Y){var u=this;this.j=void 0;this.K=!1;Y.addEventListener("beforeinstallprompt",function(n){n.preventDefault();u.j=n}); Y.addEventListener("appinstalled",function(){u.K=!0},{once:!0})}; Dm=function(){if(!g.$e.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.$e.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.$e.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.$e.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.$e.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(Y){return"WEB_DISPLAY_MODE_UNKNOWN"}}; xU=function(){this.Eg=!0}; HJc=function(){xU.instance||(xU.instance=new xU);return xU.instance}; ytd=function(Y){switch(Y){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; Veu=function(){this.K=g.z6("ALT_PREF_COOKIE_NAME","PREF");this.j=g.z6("ALT_PREF_COOKIE_DOMAIN","youtube.com");var Y=g.Dz(this.K);Y&&this.parse(Y)}; g.h6=function(){lW||(lW=new Veu);return lW}; g.wT=function(Y,u){return!!((OJe("f"+(Math.floor(u/31)+1))||0)&1<0;)switch(Y=mh.shift(),Y.type){case "ERROR":uU.yd(Y.payload);break;case "EVENT":uU.logEvent(Y.eventType,Y.payload)}}; PF=function(Y){XQ||(uU?uU.yd(Y):(mh.push({type:"ERROR",payload:Y}),mh.length>10&&mh.shift()))}; S2=function(Y,u){XQ||(uU?uU.logEvent(Y,u):(mh.push({type:"EVENT",eventType:Y,payload:u}),mh.length>10&&mh.shift()))}; CX=function(Y){if(Y.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; fX=function(Y){return Y.substr(0,Y.indexOf(":"))||Y}; g.QK=function(Y,u,n,U,k){u=u===void 0?{}:u;n=n===void 0?n8e[Y]:n;U=U===void 0?UsW[Y]:U;k=k===void 0?kLt[Y]:k;g.zP.call(this,n,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:Y},u));this.type=Y;this.message=n;this.level=U;this.K=k;Object.setPrototypeOf(this,g.QK.prototype)}; Ny=function(Y,u){g.QK.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:u,foundObjectStores:Y},n8e.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Ny.prototype)}; iU=function(Y,u){var n=Error.call(this);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.index=Y;this.objectStore=u;Object.setPrototypeOf(this,iU.prototype)}; TC=function(Y,u,n,U){u=fX(u);var k=Y instanceof Error?Y:Error("Unexpected error: "+Y);if(k instanceof g.QK)return k;Y={objectStoreNames:n,dbName:u,dbVersion:U};if(k.name==="QuotaExceededError")return new g.QK("QUOTA_EXCEEDED",Y);if(g.Z0&&k.name==="UnknownError")return new g.QK("QUOTA_MAYBE_EXCEEDED",Y);if(k instanceof iU)return new g.QK("MISSING_INDEX",Object.assign({},Y,{objectStore:k.objectStore,index:k.index}));if(k.name==="InvalidStateError"&&msc.some(function(m){return k.message.includes(m)}))return new g.QK("EXECUTE_TRANSACTION_ON_CLOSED_DB", Y); if(k.name==="AbortError")return new g.QK("UNKNOWN_ABORT",Y,k.message);k.args=[Object.assign({},Y,{name:"IdbError",vF:k.name})];k.level="WARNING";return k}; g.rD=function(Y,u,n){var U=Ya();return new g.QK("IDB_NOT_SUPPORTED",{context:{caller:Y,publicName:u,version:n,hasSucceededOnce:U==null?void 0:U.hasSucceededOnce}})}; XAS=function(Y){if(!Y)throw Error();throw Y;}; Pkt=function(Y){return Y}; My=function(Y){this.K=Y}; g.s$=function(Y){function u(k){if(U.state.status==="PENDING"){U.state={status:"REJECTED",reason:k};k=g.A(U.j);for(var m=k.next();!m.done;m=k.next())m=m.value,m()}} function n(k){if(U.state.status==="PENDING"){U.state={status:"FULFILLED",value:k};k=g.A(U.K);for(var m=k.next();!m.done;m=k.next())m=m.value,m()}} var U=this;this.state={status:"PENDING"};this.K=[];this.j=[];Y=Y.K;try{Y(n,u)}catch(k){u(k)}}; SQS=function(Y,u,n,U,k){try{if(Y.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var m=n(Y.state.value);m instanceof g.s$?dD(Y,u,m,U,k):U(m)}catch(X){k(X)}}; CkB=function(Y,u,n,U,k){try{if(Y.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var m=n(Y.state.reason);m instanceof g.s$?dD(Y,u,m,U,k):U(m)}catch(X){k(X)}}; dD=function(Y,u,n,U,k){u===n?k(new TypeError("Circular promise chain detected.")):n.then(function(m){m instanceof g.s$?dD(Y,u,m,U,k):U(m)},function(m){k(m)})}; f7B=function(Y,u,n){function U(){n(Y.error);m()} function k(){u(Y.result);m()} function m(){try{Y.removeEventListener("success",k),Y.removeEventListener("error",U)}catch(X){}} Y.addEventListener("success",k);Y.addEventListener("error",U)}; Qem=function(Y){return new Promise(function(u,n){f7B(Y,u,n)})}; GC=function(Y){return new g.s$(new My(function(u,n){f7B(Y,u,n)}))}; AE=function(Y,u){return new g.s$(new My(function(n,U){function k(){var m=Y?u(Y):null;m?m.then(function(X){Y=X;k()},U):n()} k()}))}; NHt=function(Y,u){this.request=Y;this.cursor=u}; ipG=function(Y){return GC(Y).then(function(u){return u?new NHt(Y,u):null})}; g.ZpY=function(Y){Y.cursor.continue(void 0);return ipG(Y.request)}; THu=function(Y,u){this.K=Y;this.options=u;this.transactionCount=0;this.X=Math.round((0,g.j2)());this.j=!1}; g.pX=function(Y,u,n){Y=Y.K.createObjectStore(u,n);return new KX(Y)}; LX=function(Y,u){Y.K.objectStoreNames.contains(u)&&Y.K.deleteObjectStore(u)}; g.oR=function(Y,u,n){return g.tE(Y,[u],{mode:"readwrite",A_:!0},function(U){return g.BF(U.objectStore(u),n)})}; g.tE=function(Y,u,n,U){var k,m,X,S,C,f,Q,N,Z,T,r,K;return g.l(function(L){switch(L.j){case 1:var R={mode:"readonly",A_:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof n==="string"?R.mode=n:Object.assign(R,n);k=R;Y.transactionCount++;m=k.A_?3:1;X=0;case 2:if(S){L.qF(4);break}X++;C=Math.round((0,g.j2)());g.pY(L,5);f=Y.K.transaction(u,k.mode);R=new cF(f);R=rFY(R,U);return g.D(L,R,7);case 7:return Q=L.K,N=Math.round((0,g.j2)()),MUm(Y,C,N,X,void 0,u.join(),k),L.return(Q);case 5:Z=g.vc(L);T=Math.round((0,g.j2)()); r=TC(Z,Y.K.name,u.join(),Y.K.version);if((K=r instanceof g.QK&&!r.K)||X>=m)MUm(Y,C,T,X,r,u.join(),k),S=r;L.qF(2);break;case 4:return L.return(Promise.reject(S))}})}; MUm=function(Y,u,n,U,k,m,X){u=n-u;k?(k instanceof g.QK&&(k.type==="QUOTA_EXCEEDED"||k.type==="QUOTA_MAYBE_EXCEEDED")&&S2("QUOTA_EXCEEDED",{dbName:fX(Y.K.name),objectStoreNames:m,transactionCount:Y.transactionCount,transactionMode:X.mode}),k instanceof g.QK&&k.type==="UNKNOWN_ABORT"&&(n-=Y.X,n<0&&n>=2147483648&&(n=0),S2("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:m,transactionDuration:u,transactionCount:Y.transactionCount,dbDuration:n}),Y.j=!0),seu(Y,!1,U,m,u,X.tag),PF(k)):seu(Y,!0,U,m,u, X.tag)}; seu=function(Y,u,n,U,k,m){S2("TRANSACTION_ENDED",{objectStoreNames:U,connectionHasUnknownAbortedTransaction:Y.j,duration:k,isSuccessful:u,tryCount:n,tag:m===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":m})}; KX=function(Y){this.K=Y}; g.vF=function(Y,u,n){Y.K.createIndex(u,n,{unique:!1})}; dsA=function(Y,u){return g.RR(Y,{query:u},function(n){return n.delete().then(function(){return g.D0(n)})}).then(function(){})}; GLY=function(Y,u,n){var U=[];return g.RR(Y,{query:u},function(k){if(!(n!==void 0&&U.length>=n))return U.push(k.getValue()),g.D0(k)}).then(function(){return U})}; jeB=function(Y){return"getAllKeys"in IDBObjectStore.prototype?GC(Y.K.getAllKeys(void 0,void 0)):AFc(Y)}; AFc=function(Y){var u=[];return g.KJB(Y,{query:void 0},function(n){u.push(n.cursor.primaryKey);return g.ZpY(n)}).then(function(){return u})}; g.BF=function(Y,u,n){return GC(Y.K.put(u,n))}; g.RR=function(Y,u,n){Y=Y.K.openCursor(u.query,u.direction);return xa(Y).then(function(U){return AE(U,n)})}; g.KJB=function(Y,u,n){var U=u.query;u=u.direction;Y="openKeyCursor"in IDBObjectStore.prototype?Y.K.openKeyCursor(U,u):Y.K.openCursor(U,u);return ipG(Y).then(function(k){return AE(k,n)})}; cF=function(Y){var u=this;this.K=Y;this.X=new Map;this.j=!1;this.done=new Promise(function(n,U){u.K.addEventListener("complete",function(){n()}); u.K.addEventListener("error",function(k){k.currentTarget===k.target&&U(u.K.error)}); u.K.addEventListener("abort",function(){var k=u.K.error;if(k)U(k);else if(!u.j){k=g.QK;for(var m=u.K.objectStoreNames,X=[],S=0;S=n))return U.push(k.getValue()),g.D0(k)}).then(function(){return U})}; g.lU=function(Y,u,n){Y=Y.K.openCursor(u.query===void 0?null:u.query,u.direction===void 0?"next":u.direction);return xa(Y).then(function(U){return AE(U,n)})}; hE=function(Y,u){this.request=Y;this.cursor=u}; xa=function(Y){return GC(Y).then(function(u){return u?new hE(Y,u):null})}; g.D0=function(Y){Y.cursor.continue(void 0);return xa(Y.request)}; tUd=function(Y,u,n){return new Promise(function(U,k){function m(){Z||(Z=new THu(X.result,{closed:N}));return Z} var X=u!==void 0?self.indexedDB.open(Y,u):self.indexedDB.open(Y);var S=n.blocked,C=n.blocking,f=n.WMz,Q=n.upgrade,N=n.closed,Z;X.addEventListener("upgradeneeded",function(T){try{if(T.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(X.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");T.dataLoss&&T.dataLoss!=="none"&&S2("IDB_DATA_CORRUPTED",{reason:T.dataLossMessage||"unknown reason",dbName:fX(Y)});var r=m(),K=new cF(X.transaction); Q&&Q(r,function(L){return T.oldVersion=L},K); K.done.catch(function(L){k(L)})}catch(L){k(L)}}); X.addEventListener("success",function(){var T=X.result;C&&T.addEventListener("versionchange",function(){C(m())}); T.addEventListener("close",function(){S2("IDB_UNEXPECTEDLY_CLOSED",{dbName:fX(Y),dbVersion:T.version});f&&f()}); U(m())}); X.addEventListener("error",function(){k(X.error)}); S&&X.addEventListener("blocked",function(){S()})})}; BHd=function(Y,u,n){n=n===void 0?{}:n;return tUd(Y,u,n)}; wD=function(Y,u){u=u===void 0?{}:u;var n,U,k,m;return g.l(function(X){if(X.j==1)return g.pY(X,2),n=self.indexedDB.deleteDatabase(Y),U=u,(k=U.blocked)&&n.addEventListener("blocked",function(){k()}),g.D(X,Qem(n),4); if(X.j!=2)return g.Bc(X,0);m=g.vc(X);throw TC(m,Y,"",-1);})}; WF=function(Y,u){this.name=Y;this.options=u;this.X=!0;this.J=this.G=0}; o8B=function(Y,u){return new g.QK("INCOMPATIBLE_DB_VERSION",{dbName:Y.name,oldVersion:Y.options.version,newVersion:u})}; g.e2=function(Y,u){if(!u)throw g.rD("openWithToken",fX(Y.name));return Y.open()}; cFc=function(Y,u){var n;return g.l(function(U){if(U.j==1)return g.D(U,g.e2(bU,u),2);n=U.K;return U.return(g.tE(n,["databases"],{A_:!0,mode:"readwrite"},function(k){var m=k.objectStore("databases");return m.get(Y.actualName).then(function(X){if(X?Y.actualName!==X.actualName||Y.publicName!==X.publicName||Y.userIdentifier!==X.userIdentifier:1)return g.BF(m,Y).then(function(){})})}))})}; IR=function(Y,u){var n;return g.l(function(U){if(U.j==1)return Y?g.D(U,g.e2(bU,u),2):U.return();n=U.K;return U.return(n.delete("databases",Y))})}; v8c=function(Y,u){var n,U;return g.l(function(k){return k.j==1?(n=[],g.D(k,g.e2(bU,u),2)):k.j!=3?(U=k.K,g.D(k,g.tE(U,["databases"],{A_:!0,mode:"readonly"},function(m){n.length=0;return g.RR(m.objectStore("databases"),{},function(X){Y(X.getValue())&&n.push(X.getValue());return g.D0(X)})}),3)):k.return(n)})}; RWG=function(Y,u){return v8c(function(n){return n.publicName===Y&&n.userIdentifier!==void 0},u)}; DsA=function(){var Y,u,n,U;return g.l(function(k){switch(k.j){case 1:Y=Ya();if((u=Y)==null?0:u.hasSucceededOnce)return k.return(!0);if(zC&&EU()&&!Hy()||g.gD)return k.return(!1);try{if(n=self,!(n.indexedDB&&n.IDBIndex&&n.IDBKeyRange&&n.IDBObjectStore))return k.return(!1)}catch(m){return k.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return k.return(!1);g.pY(k,2);U={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.D(k,cFc(U,E$),4);case 4:return g.D(k,IR("yt-idb-test-do-not-use",E$),5);case 5:return k.return(!0);case 2:return g.vc(k),k.return(!1)}})}; xsd=function(){if(HF!==void 0)return HF;XQ=!0;return HF=DsA().then(function(Y){XQ=!1;var u;if((u=$U())!=null&&u.K){var n;u={hasSucceededOnce:((n=Ya())==null?void 0:n.hasSucceededOnce)||Y};var U;(U=$U())==null||U.set("LAST_RESULT_ENTRY_KEY",u,2592E3,!0)}return Y})}; yK=function(){return g.nR("ytglobal.idbToken_")||void 0}; g.VK=function(){var Y=yK();return Y?Promise.resolve(Y):xsd().then(function(u){(u=u?E$:void 0)&&g.Y$("ytglobal.idbToken_",u);return u})}; l7G=function(Y){if(!g.E2())throw Y=new g.QK("AUTH_INVALID",{dbName:Y}),PF(Y),Y;var u=g.gT();return{actualName:Y+":"+u,publicName:Y,userIdentifier:u}}; hW0=function(Y,u,n,U){var k,m,X,S,C,f;return g.l(function(Q){switch(Q.j){case 1:return m=(k=Error().stack)!=null?k:"",g.D(Q,g.VK(),2);case 2:X=Q.K;if(!X)throw S=g.rD("openDbImpl",Y,u),g.rL("ytidb_async_stack_killswitch")||(S.stack=S.stack+"\n"+m.substring(m.indexOf("\n")+1)),PF(S),S;CX(Y);C=n?{actualName:Y,publicName:Y,userIdentifier:void 0}:l7G(Y);g.pY(Q,3);return g.D(Q,cFc(C,X),5);case 5:return g.D(Q,BHd(C.actualName,u,U),6);case 6:return Q.return(Q.K);case 3:return f=g.vc(Q),g.pY(Q,7),g.D(Q,IR(C.actualName, X),9);case 9:g.Bc(Q,8);break;case 7:g.vc(Q);case 8:throw f;}})}; wAm=function(Y,u,n){n=n===void 0?{}:n;return hW0(Y,u,!1,n)}; WJW=function(Y,u,n){n=n===void 0?{}:n;return hW0(Y,u,!0,n)}; eWu=function(Y,u){u=u===void 0?{}:u;var n,U;return g.l(function(k){if(k.j==1)return g.D(k,g.VK(),2);if(k.j!=3){n=k.K;if(!n)return k.return();CX(Y);U=l7G(Y);return g.D(k,wD(U.actualName,u),3)}return g.D(k,IR(U.actualName,n),0)})}; bpS=function(Y,u,n){Y=Y.map(function(U){return g.l(function(k){return k.j==1?g.D(k,wD(U.actualName,u),2):g.D(k,IR(U.actualName,n),0)})}); return Promise.all(Y).then(function(){})}; I7e=function(Y){var u=u===void 0?{}:u;var n,U;return g.l(function(k){if(k.j==1)return g.D(k,g.VK(),2);if(k.j!=3){n=k.K;if(!n)return k.return();CX(Y);return g.D(k,RWG(Y,n),3)}U=k.K;return g.D(k,bpS(U,u,n),0)})}; zWu=function(Y,u){u=u===void 0?{}:u;var n;return g.l(function(U){if(U.j==1)return g.D(U,g.VK(),2);if(U.j!=3){n=U.K;if(!n)return U.return();CX(Y);return g.D(U,wD(Y,u),3)}return g.D(U,IR(Y,n),0)})}; O$=function(Y,u){WF.call(this,Y,u);this.options=u;CX(Y)}; g8M=function(Y,u){var n;return function(){n||(n=new O$(Y,u));return n}}; g.FQ=function(Y,u){return g8M(Y,u)}; JE=function(Y){return g.e2(E80(),Y)}; Hp7=function(Y,u,n,U){var k,m,X;return g.l(function(S){switch(S.j){case 1:return k={config:Y,hashData:u,timestamp:U!==void 0?U:(0,g.j2)()},g.D(S,JE(n),2);case 2:return m=S.K,g.D(S,m.clear("hotConfigStore"),3);case 3:return g.D(S,g.oR(m,"hotConfigStore",k),4);case 4:return X=S.K,S.return(X)}})}; yFc=function(Y,u,n,U,k){var m,X,S;return g.l(function(C){switch(C.j){case 1:return m={config:Y,hashData:u,configData:n,timestamp:k!==void 0?k:(0,g.j2)()},g.D(C,JE(U),2);case 2:return X=C.K,g.D(C,X.clear("coldConfigStore"),3);case 3:return g.D(C,g.oR(X,"coldConfigStore",m),4);case 4:return S=C.K,C.return(S)}})}; VUW=function(Y){var u,n;return g.l(function(U){return U.j==1?g.D(U,JE(Y),2):U.j!=3?(u=U.K,n=void 0,g.D(U,g.tE(u,["coldConfigStore"],{mode:"readwrite",A_:!0},function(k){return g.lU(k.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(m){n=m.getValue()})}),3)):U.return(n)})}; Opm=function(Y){var u,n;return g.l(function(U){return U.j==1?g.D(U,JE(Y),2):U.j!=3?(u=U.K,n=void 0,g.D(U,g.tE(u,["hotConfigStore"],{mode:"readwrite",A_:!0},function(k){return g.lU(k.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(m){n=m.getValue()})}),3)):U.return(n)})}; FJu=function(){return g.l(function(Y){return g.D(Y,I7e("ytGcfConfig"),0)})}; qy=function(){g.e.call(this);this.j=[];this.K=[];var Y=g.nR("yt.gcf.config.hotUpdateCallbacks");Y?(this.j=[].concat(g.Zu(Y)),this.K=Y):(this.K=[],g.Y$("yt.gcf.config.hotUpdateCallbacks",this.K))}; U0=function(){var Y=this;this.J=!1;this.X=this.G=0;this.W=new qy;this.IH={w3F:function(){Y.J=!0}, dOF:function(){return Y.K}, NuV:function(u){aR(Y,u)}, In:function(u){Y.In(u)}, Pfw:function(u){$a(Y,u)}, Cq:function(){return Y.coldHashData}, ey:function(){return Y.hotHashData}, xeg:function(){return Y.j}, v5F:function(){return YH()}, mOG:function(){return uD()}, PJ2:function(){return g.nR("yt.gcf.config.coldHashData")}, sF2:function(){return g.nR("yt.gcf.config.hotHashData")}, y6z:function(){JFc(Y)}, dxF:function(){Y.In(void 0);nz(Y);delete U0.instance}, tLa:function(u){Y.X=u}, zbg:function(){return Y.X}}}; qQA=function(){if(!U0.instance){var Y=new U0;U0.instance=Y}return U0.instance}; YNc=function(Y){var u;g.l(function(n){if(n.j==1)return g.rL("start_client_gcf")||g.rL("delete_gcf_config_db")?g.rL("start_client_gcf")?g.D(n,g.VK(),3):n.qF(2):n.return();n.j!=2&&((u=n.K)&&g.E2()&&!g.rL("delete_gcf_config_db")?(Y.J=!0,JFc(Y)):(a7Y(Y),$st(Y)));return g.rL("delete_gcf_config_db")?g.D(n,FJu(),0):n.qF(0)})}; kH=function(){var Y;return(Y=uD())!=null?Y:g.z6("RAW_HOT_CONFIG_GROUP")}; uEu=function(Y){var u,n,U,k,m,X;return g.l(function(S){switch(S.j){case 1:if(Y.j)return S.return(uD());if(!Y.J)return u=g.rD("getHotConfig IDB not initialized"),Fc(u),S.return(Promise.reject(u));n=yK();U=g.z6("TIME_CREATED_MS");if(!n){k=g.rD("getHotConfig token error");Fc(k);S.qF(2);break}return g.D(S,Opm(n),3);case 3:if((m=S.K)&&m.timestamp>U)return aR(Y,m.config),Y.In(m.hashData),S.return(uD());case 2:$st(Y);if(!(n&&Y.j&&Y.hotHashData)){S.qF(4);break}return g.D(S,Hp7(Y.j,Y.hotHashData,n,U),4);case 4:return Y.j? S.return(uD()):(X=new g.zP("Config not available in ytConfig"),Fc(X),S.return(Promise.reject(X)))}})}; U8c=function(Y){var u,n,U,k,m,X;return g.l(function(S){switch(S.j){case 1:if(Y.K)return S.return(YH());if(!Y.J)return u=g.rD("getColdConfig IDB not initialized"),Fc(u),S.return(Promise.reject(u));n=yK();U=g.z6("TIME_CREATED_MS");if(!n){k=g.rD("getColdConfig");Fc(k);S.qF(2);break}return g.D(S,VUW(n),3);case 3:if((m=S.K)&&m.timestamp>U)return $a(Y,m.config),nve(Y,m.configData),nz(Y,m.hashData),S.return(YH());case 2:a7Y(Y);if(!(n&&Y.K&&Y.coldHashData&&Y.configData)){S.qF(4);break}return g.D(S,yFc(Y.K, Y.coldHashData,Y.configData,n,U),4);case 4:return Y.K?S.return(YH()):(X=new g.zP("Config not available in ytConfig"),Fc(X),S.return(Promise.reject(X)))}})}; JFc=function(Y){if(!Y.j||!Y.K){if(!yK()){var u=g.rD("scheduleGetConfigs");Fc(u)}Y.G||(Y.G=g.WA.MX(function(){return g.l(function(n){switch(n.j){case 1:return g.pY(n,2),g.D(n,uEu(Y),4);case 4:g.Bc(n,3);break;case 2:g.vc(n);case 3:return g.pY(n,5),g.D(n,U8c(Y),7);case 7:g.Bc(n,6);break;case 5:g.vc(n);case 6:Y.G&&(Y.G=0),g.KY(n)}})},100))}}; kKB=function(Y,u,n){var U,k,m;return g.l(function(X){switch(X.j){case 1:if(!g.rL("start_client_gcf")){X.qF(0);break}n&&aR(Y,n);Y.In(u);U=yK();if(!U){X.qF(3);break}if(n){X.qF(4);break}return g.D(X,Opm(U),5);case 5:k=X.K,n=(m=k)==null?void 0:m.config;case 4:return g.D(X,Hp7(n,u,U),3);case 3:if(n)for(var S=n,C=g.A(Y.W.K),f=C.next();!f.done;f=C.next())f=f.value,f(S);g.KY(X)}})}; m8Y=function(Y,u,n){var U,k,m,X;return g.l(function(S){if(S.j==1){if(!g.rL("start_client_gcf"))return S.qF(0);nz(Y,u);return(U=yK())?n?S.qF(4):g.D(S,VUW(U),5):S.qF(0)}S.j!=4&&(k=S.K,n=(m=k)==null?void 0:m.config);if(!n)return S.qF(0);X=n.configData;return g.D(S,yFc(n,u,X,U),0)})}; XP7=function(){var Y=qQA(),u=(0,g.j2)()-Y.X;if(!(Y.X!==0&&u0&&(u.request={internalExperimentFlags:n});SNB(Y,void 0,u);C9B(void 0,u);fBM(void 0,u);Q0W(Y,void 0,u);NEG(void 0,u);g.rL("start_client_gcf")&&iEt(void 0,u);g.z6("DELEGATED_SESSION_ID")&& !g.rL("pageid_as_header_web")&&(u.user={onBehalfOfUser:g.z6("DELEGATED_SESSION_ID")});!g.rL("fill_delegate_context_in_gel_killswitch")&&(Y=g.z6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(u.user=Object.assign({},u.user,{serializedDelegationContext:Y}));Y=g.z6("INNERTUBE_CONTEXT");var U;if(g.rL("enable_persistent_device_token")&&(Y==null?0:(U=Y.client)==null?0:U.rolloutToken)){var k;u.client.rolloutToken=Y==null?void 0:(k=Y.client)==null?void 0:k.rolloutToken}U=Object;k=U.assign;Y=u.client; n={};for(var m=g.A(Object.entries(aJ(g.z6("DEVICE","")))),X=m.next();!X.done;X=m.next()){var S=g.A(X.value);X=S.next().value;S=S.next().value;X==="cbrand"?n.deviceMake=S:X==="cmodel"?n.deviceModel=S:X==="cbr"?n.browserName=S:X==="cbrver"?n.browserVersion=S:X==="cos"?n.osName=S:X==="cosver"?n.osVersion=S:X==="cplatform"&&(n.platform=S)}u.client=k.call(U,Y,n);return u}; SNB=function(Y,u,n){Y=Y.Or;if(Y==="WEB"||Y==="MWEB"||Y===1||Y===2)if(u){n=pr(u,pN,96)||new pN;var U=Dm();U=Object.keys(ZEu).indexOf(U);U=U===-1?null:U;U!==null&&e4(n,3,U);tP(u,pN,96,n)}else n&&(n.client.mainAppWebInfo=(U=n.client.mainAppWebInfo)!=null?U:{},n.client.mainAppWebInfo.webDisplayMode=Dm())}; C9B=function(Y,u){var n=g.nR("yt.embedded_player.embed_url");n&&(Y?(u=pr(Y,cQ,7)||new cQ,wy(u,4,n),tP(Y,cQ,7,u)):u&&(u.thirdParty={embedUrl:n}))}; fBM=function(Y,u){var n;if(g.rL("web_log_memory_total_kbytes")&&((n=g.$e.navigator)==null?0:n.deviceMemory)){var U;n=(U=g.$e.navigator)==null?void 0:U.deviceMemory;Y?nr(Y,95,pn(n*1E6)):u&&(u.client.memoryTotalKbytes=""+n*1E6)}}; Q0W=function(Y,u,n){if(Y.appInstallData)if(u){var U;n=(U=pr(u,KN,62))!=null?U:new KN;wy(n,6,Y.appInstallData);tP(u,KN,62,n)}else n&&(n.client.configInfo=n.client.configInfo||{},n.client.configInfo.appInstallData=Y.appInstallData)}; NEG=function(Y,u){var n=qvt();n&&(Y?e4(Y,61,TEe[n]):u&&(u.client.connectionType=n));g.rL("web_log_effective_connection_type")&&(n=$vu())&&(Y?e4(Y,94,rGe[n]):u&&(u.client.effectiveConnectionType=n))}; MKA=function(Y,u,n){n=n===void 0?{}:n;var U={};g.z6("EOM_VISITOR_DATA")?U={"X-Goog-EOM-Visitor-Id":g.z6("EOM_VISITOR_DATA")}:U={"X-Goog-Visitor-Id":n.visitorData||g.z6("VISITOR_DATA","")};if(u&&u.includes("www.youtube-nocookie.com"))return U;u=n.LN||g.z6("AUTHORIZATION");u||(Y?u="Bearer "+g.nR("gapi.auth.getToken")().access_token:(Y=HJc().t7(Sv),g.rL("pageid_as_header_web")||delete Y["X-Goog-PageId"],U=Object.assign({},U,Y)));u&&(U.Authorization=u);return U}; iEt=function(Y,u){var n=XP7();if(n){var U=n.coldConfigData,k=n.coldHashData;n=n.hotHashData;if(Y){var m;u=(m=pr(Y,KN,62))!=null?m:new KN;U=wy(u,1,U);wy(U,3,k).In(n);tP(Y,KN,62,u)}else u&&(u.client.configInfo=u.client.configInfo||{},U&&(u.client.configInfo.coldConfigData=U),k&&(u.client.configInfo.coldHashData=k),n&&(u.client.configInfo.hotHashData=n))}}; Cz=function(Y,u){this.version=Y;this.args=u}; fz=function(Y,u){this.topic=Y;this.K=u}; N3=function(Y,u){var n=QH();n&&n.publish.call(n,Y.toString(),Y,u)}; GKY=function(Y){var u=s0G,n=QH();if(!n)return 0;var U=n.subscribe(u.toString(),function(k,m){var X=g.nR("ytPubsub2Pubsub2SkipSubKey");X&&X==U||(X=function(){if(iD[U])try{if(m&&u instanceof fz&&u!=k)try{var S=u.K,C=m;if(!C.args||!C.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!S.Qc){var f=new S;S.Qc=f.version}var Q=S.Qc}catch(N){}if(!Q||C.version!=Q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{m=Reflect.construct(S, g.RL(C.args))}catch(N){throw N.message="yt.pubsub2.Data.deserialize(): "+N.message,N;}}catch(N){throw N.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+u.toString()+": "+N.message,N;}Y.call(window,m)}catch(N){g.VM(N)}},d87[u.toString()]?g.J6()?g.WA.MX(X):g.QS(X,0):X())}); iD[U]=!0;ZX[u.toString()]||(ZX[u.toString()]=[]);ZX[u.toString()].push(U);return U}; KUt=function(){var Y=AGd,u=GKY(function(n){Y.apply(void 0,arguments);j0B(u)}); return u}; j0B=function(Y){var u=QH();u&&(typeof Y==="number"&&(Y=[Y]),g.Jy(Y,function(n){u.unsubscribeByKey(n);delete iD[n]}))}; QH=function(){return g.nR("ytPubsub2Pubsub2Instance")}; Tl=function(Y,u,n){n=n===void 0?{sampleRate:.1}:n;Math.random()cGS||X=x8A&&(tD++,g.rL("abandon_compression_after_N_slow_zips")?Lz===g.MI("compression_disable_point")&&tD>lBG&&(jv=!1):jv=!1);h9e(u);U.headers||(U.headers={});U.headers["Content-Encoding"]="gzip";U.postBody=Y;U.postParams=void 0;k(n,U)}; wPu=function(Y){var u=u===void 0?!1:u;var n=n===void 0?!1:n;var U=(0,g.j2)(),k={startTime:U,ticks:{},infos:{}},m=u?g.nR("yt.logging.gzipForFetch",!1):!0;if(jv&&m){if(!Y.body)return Y;try{var X=n?Y.body:typeof Y.body==="string"?Y.body:JSON.stringify(Y.body);m=X;if(!n&&typeof X==="string"){var S=ovY(X);if(S!=null&&(S>cGS||S=x8A)if(tD++,g.rL("abandon_compression_after_N_slow_zips")||g.rL("abandon_compression_after_N_slow_zips_lr")){u=tD/Lz;var f=lBG/g.MI("compression_disable_point");Lz>0&&Lz%g.MI("compression_disable_point")===0&&u>=f&&(jv=!1)}else jv=!1;h9e(k)}}Y.headers=Object.assign({},{"Content-Encoding":"gzip"},Y.headers||{});Y.body=m;return Y}catch(Q){return Fc(Q),Y}}else return Y}; ovY=function(Y){try{return(new Blob(Y.split(""))).size}catch(u){return Fc(u),null}}; h9e=function(Y){g.rL("gel_compression_csi_killswitch")||!g.rL("log_gel_compression_latency")&&!g.rL("log_gel_compression_latency_lr")||Tl("gel_compression",Y,{sampleRate:.1})}; o9=function(Y){var u=this;this.CE=this.K=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){}; this.BQ=function(){}; this.now=Date.now;this.M0=!1;this.IH={snV:function(Q){u.dL=Q}, L8w:function(){u.H7()}, sf:function(){u.Uq()}, S$:function(Q){return g.l(function(N){return g.D(N,u.S$(Q),0)})}, CB:function(Q,N){return u.CB(Q,N)}, Bq:function(){u.Bq()}}; var n;this.pV=(n=Y.pV)!=null?n:100;var U;this.Tl=(U=Y.Tl)!=null?U:1;var k;this.V7=(k=Y.V7)!=null?k:2592E6;var m;this.Oi=(m=Y.Oi)!=null?m:12E4;var X;this.zl=(X=Y.zl)!=null?X:5E3;var S;this.dL=(S=Y.dL)!=null?S:void 0;this.jS=!!Y.jS;var C;this.w0=(C=Y.w0)!=null?C:.1;var f;this.bT=(f=Y.bT)!=null?f:10;Y.handleError&&(this.handleError=Y.handleError);Y.BQ&&(this.BQ=Y.BQ);Y.M0&&(this.M0=Y.M0);Y.CE&&(this.CE=Y.CE);this.vz=Y.vz;this.JZ=Y.JZ;this.l9=Y.l9;this.G6=Y.G6;this.sendFn=Y.sendFn;this.GM=Y.GM;this.HH= Y.HH;BN(this)&&(!this.vz||this.vz("networkless_logging"))&&WUc(this)}; WUc=function(Y){BN(Y)&&!Y.M0&&(Y.K=!0,Y.jS&&Math.random()<=Y.w0&&Y.l9.x4(Y.dL),Y.Bq(),Y.G6.XP()&&Y.H7(),Y.G6.listen(Y.GM,Y.H7.bind(Y)),Y.G6.listen(Y.HH,Y.Uq.bind(Y)))}; IBm=function(Y,u){if(!BN(Y))throw Error("IndexedDB is not supported: updateRequestHandlers");var n=u.options.onError?u.options.onError:function(){}; u.options.onError=function(k,m){var X,S,C,f;return g.l(function(Q){switch(Q.j){case 1:X=e9Y(m);(S=bEu(m))&&Y.vz&&Y.vz("web_enable_error_204")&&Y.handleError(Error("Request failed due to compression"),u.url,m);if(!(Y.vz&&Y.vz("nwl_consider_error_code")&&X||Y.vz&&!Y.vz("nwl_consider_error_code")&&Y.potentialEsfErrorCounter<=Y.bT)){Q.qF(2);break}if(!Y.G6.wS){Q.qF(3);break}return g.D(Q,Y.G6.wS(),3);case 3:if(Y.G6.XP()){Q.qF(2);break}n(k,m);if(!Y.vz||!Y.vz("nwl_consider_error_code")||((C=u)==null?void 0: C.id)===void 0){Q.qF(6);break}return g.D(Q,Y.l9.NC(u.id,Y.dL,!1),6);case 6:return Q.return();case 2:if(Y.vz&&Y.vz("nwl_consider_error_code")&&!X&&Y.potentialEsfErrorCounter>Y.bT)return Q.return();Y.potentialEsfErrorCounter++;if(((f=u)==null?void 0:f.id)===void 0){Q.qF(8);break}return u.sendCount=400&&Y<=599?!1:!0}; bEu=function(Y){var u;Y=Y==null?void 0:(u=Y.error)==null?void 0:u.code;return!(Y!==400&&Y!==415)}; z9d=function(){if(vN)return vN();var Y={};vN=g.FQ("LogsDatabaseV2",{CQ:(Y.LogsRequestsStore={aA:2},Y),shared:!1,upgrade:function(u,n,U){n(2)&&g.pX(u,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});n(3);n(5)&&(U=U.objectStore("LogsRequestsStore"),U.K.indexNames.contains("newRequest")&&U.K.deleteIndex("newRequest"),g.vF(U,"newRequestV2",["status","interface","timestamp"]));n(7)&&LX(u,"sapisid");n(9)&&LX(u,"SWHealthLog")}, version:9});return vN()}; R9=function(Y){return g.e2(z9d(),Y)}; Evt=function(Y,u){var n,U,k,m;return g.l(function(X){if(X.j==1)return n={startTime:(0,g.j2)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.D(X,R9(u),2);if(X.j!=3)return U=X.K,k=Object.assign({},Y,{options:JSON.parse(JSON.stringify(Y.options)),interface:g.z6("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.D(X,g.oR(U,"LogsRequestsStore",k),3);m=X.K;n.ticks.tc=(0,g.j2)();gvu(n);return X.return(m)})}; HEA=function(Y,u){var n,U,k,m,X,S,C,f,Q;return g.l(function(N){if(N.j==1)return n={startTime:(0,g.j2)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.D(N,R9(u),2);if(N.j!=3)return U=N.K,k=g.z6("INNERTUBE_CONTEXT_CLIENT_NAME",0),m=[Y,k,0],X=[Y,k,(0,g.j2)()],S=IDBKeyRange.bound(m,X),C="prev",g.rL("use_fifo_for_networkless")&&(C="next"),f=void 0,Q=Y==="NEW"?"readwrite":"readonly",g.rL("use_readonly_for_get_most_recent_by_status_killswitch")&&(Q="readwrite"),g.D(N,g.tE(U,["LogsRequestsStore"], {mode:Q,A_:!0},function(Z){return g.lU(Z.objectStore("LogsRequestsStore").index("newRequestV2"),{query:S,direction:C},function(T){T.getValue()&&(f=T.getValue(),Y==="NEW"&&(f.status="QUEUED",T.update(f)))})}),3); n.ticks.tc=(0,g.j2)();gvu(n);return N.return(f)})}; yGt=function(Y,u){var n;return g.l(function(U){if(U.j==1)return g.D(U,R9(u),2);n=U.K;return U.return(g.tE(n,["LogsRequestsStore"],{mode:"readwrite",A_:!0},function(k){var m=k.objectStore("LogsRequestsStore");return m.get(Y).then(function(X){if(X)return X.status="QUEUED",g.BF(m,X).then(function(){return X})})}))})}; VKG=function(Y,u,n,U){n=n===void 0?!0:n;var k;return g.l(function(m){if(m.j==1)return g.D(m,R9(u),2);k=m.K;return m.return(g.tE(k,["LogsRequestsStore"],{mode:"readwrite",A_:!0},function(X){var S=X.objectStore("LogsRequestsStore");return S.get(Y).then(function(C){return C?(C.status="NEW",n&&(C.sendCount+=1),U!==void 0&&(C.options.compress=U),g.BF(S,C).then(function(){return C})):g.s$.resolve(void 0)})}))})}; OEG=function(Y,u){var n;return g.l(function(U){if(U.j==1)return g.D(U,R9(u),2);n=U.K;return U.return(n.delete("LogsRequestsStore",Y))})}; FUA=function(Y){var u,n;return g.l(function(U){if(U.j==1)return g.D(U,R9(Y),2);u=U.K;n=(0,g.j2)()-2592E6;return g.D(U,g.tE(u,["LogsRequestsStore"],{mode:"readwrite",A_:!0},function(k){return g.RR(k.objectStore("LogsRequestsStore"),{},function(m){if(m.getValue().timestamp<=n)return m.delete().then(function(){return g.D0(m)})})}),0)})}; JGB=function(){g.l(function(Y){return g.D(Y,I7e("LogsDatabaseV2"),0)})}; gvu=function(Y){g.rL("nwl_csi_killswitch")||Tl("networkless_performance",Y,{sampleRate:1})}; aBW=function(Y){return g.e2(qNc(),Y)}; $8B=function(Y){var u,n;g.l(function(U){if(U.j==1)return g.D(U,aBW(Y),2);u=U.K;n=(0,g.j2)()-2592E6;return g.D(U,g.tE(u,["SWHealthLog"],{mode:"readwrite",A_:!0},function(k){return g.RR(k.objectStore("SWHealthLog"),{},function(m){if(m.getValue().timestamp<=n)return m.delete().then(function(){return g.D0(m)})})}),0)})}; Y_G=function(Y){var u;return g.l(function(n){if(n.j==1)return g.D(n,aBW(Y),2);u=n.K;return g.D(n,u.clear("SWHealthLog"),0)})}; g.DX=function(Y,u,n,U,k,m,X){k=k===void 0?"":k;m=m===void 0?!1:m;X=X===void 0?!1:X;if(Y)if(n&&!g.Io())Fc(new g.zP("Legacy referrer-scrubbed ping detected")),Y&&uct(Y,void 0,{scrubReferrer:!0});else if(k)Gq(Y,u,"POST",k,U);else if(g.z6("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||U||X)Gq(Y,u,"GET","",U,void 0,m,X);else{b:{try{c:{var S=new jAW({url:Y});if(S.K.dsh==="1")var C=null;else{var f=S.K.ae;if(f==="1"){var Q=S.K.adurl;if(Q)try{C={version:3,lL:decodeURIComponent(Q),dj:VY(S.j,"act=1","ri=1",Kae(S))}; break c}catch(T){}}C=f==="2"?{version:4,lL:VY(S.j,"dct=1","suid="+S.X,""),dj:VY(S.j,"act=1","ri=1","suid="+S.X)}:null}}if(C){var N=Qi(Y);var Z=!(!N||!N.endsWith("/aclk")||jV(Y,"ri")!=="1");break b}}catch(T){}Z=!1}Z?nKm(Y)?(u&&u(),n=!0):n=!1:n=!1;n||uct(Y,u)}}; nKm=function(Y,u){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(Y,u===void 0?"":u))return!0}catch(n){}return!1}; uct=function(Y,u,n){n=n===void 0?{}:n;var U=new Image,k=""+Udt++;xH[k]=U;U.onload=U.onerror=function(){u&&xH[k]&&u();delete xH[k]}; n.scrubReferrer&&(U.referrerPolicy="no-referrer");U.src=Y}; k6u=function(Y){var u;return((u=document.featurePolicy)==null?0:u.allowedFeatures().includes("attribution-reporting"))?Y+"&nis=6":Y+"&nis=5"}; hD=function(){lD||(lD=new aU("yt.offline"));return lD}; mdu=function(Y){if(g.rL("offline_error_handling")){var u=hD().get("errors",!0)||{};u[Y.message]={name:Y.name,stack:Y.stack};Y.level&&(u[Y.message].level=Y.level);hD().set("errors",u,2592E3,!0)}}; wo=function(){this.K=new Map;this.j=!1}; WN=function(){if(!wo.instance){var Y=g.nR("yt.networkRequestMonitor.instance")||new wo;g.Y$("yt.networkRequestMonitor.instance",Y);wo.instance=Y}return wo.instance}; ev=function(){g.is.call(this);var Y=this;this.j=!1;this.K=Mau();this.K.listen("networkstatus-online",function(){if(Y.j&&g.rL("offline_error_handling")){var u=hD().get("errors",!0);if(u){for(var n in u)if(u[n]){var U=new g.zP(n,"sent via offline_errors");U.name=u[n].name;U.stack=u[n].stack;U.level=u[n].level;g.VM(U)}hD().set("errors",{},2592E3,!0)}}})}; XQB=function(){if(!ev.instance){var Y=g.nR("yt.networkStatusManager.instance")||new ev;g.Y$("yt.networkStatusManager.instance",Y);ev.instance=Y}return ev.instance}; g.bD=function(Y){Y=Y===void 0?{}:Y;g.is.call(this);var u=this;this.K=this.G=0;this.j=XQB();var n=g.nR("yt.networkStatusManager.instance.listen").bind(this.j);n&&(Y.rateLimit?(this.rateLimit=Y.rateLimit,n("networkstatus-online",function(){PYM(u,"publicytnetworkstatus-online")}),n("networkstatus-offline",function(){PYM(u,"publicytnetworkstatus-offline")})):(n("networkstatus-online",function(){u.dispatchEvent("publicytnetworkstatus-online")}),n("networkstatus-offline",function(){u.dispatchEvent("publicytnetworkstatus-offline")})))}; PYM=function(Y,u){Y.rateLimit?Y.K?(g.WA.aO(Y.G),Y.G=g.WA.MX(function(){Y.X!==u&&(Y.dispatchEvent(u),Y.X=u,Y.K=(0,g.j2)())},Y.rateLimit-((0,g.j2)()-Y.K))):(Y.dispatchEvent(u),Y.X=u,Y.K=(0,g.j2)()):Y.dispatchEvent(u)}; zl=function(){var Y=o9.call;I9||(I9=new g.bD({RJV:!0,Rba:!0}));Y.call(o9,this,{l9:{x4:FUA,Is:OEG,IU:HEA,s$:yGt,NC:VKG,set:Evt},G6:I9,handleError:function(u,n,U){var k,m=U==null?void 0:(k=U.error)==null?void 0:k.code;if(m===400||m===415){var X;u=new g.zP(u.message,n,U==null?void 0:(X=U.error)==null?void 0:X.code);Fc(u,void 0,void 0,void 0,!0)}else g.VM(u)}, BQ:Fc,sendFn:S_c,now:g.j2,Yi:mdu,JZ:g.FJ(),GM:"publicytnetworkstatus-online",HH:"publicytnetworkstatus-offline",jS:!0,w0:.1,bT:g.MI("potential_esf_error_limit",10),vz:g.rL,M0:!(g.E2()&&g.fo(document.location.toString())!=="www.youtube-nocookie.com")});this.X=new g.Nv;g.rL("networkless_immediately_drop_all_requests")&&JGB();zWu("LogsDatabaseV2")}; go=function(){var Y=g.nR("yt.networklessRequestController.instance");Y||(Y=new zl,g.Y$("yt.networklessRequestController.instance",Y),g.rL("networkless_logging")&&g.VK().then(function(u){Y.dL=u;WUc(Y);Y.X.resolve();Y.jS&&Math.random()<=Y.w0&&Y.dL&&$8B(Y.dL);g.rL("networkless_immediately_drop_sw_health_store")&&CY7(Y)})); return Y}; CY7=function(Y){var u;g.l(function(n){if(!Y.dL)throw u=g.rD("clearSWHealthLogsDb"),u;return n.return(Y_G(Y.dL).catch(function(U){Y.handleError(U)}))})}; S_c=function(Y,u,n,U){U=U===void 0?!1:U;u=g.rL("web_fp_via_jspb")?Object.assign({},u):u;g.rL("use_cfr_monitor")&&fCu(Y,u);if(g.rL("use_request_time_ms_header"))u.headers&&UU(Y)&&(u.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.j2)())));else{var k;if((k=u.postParams)==null?0:k.requestTimeMs)u.postParams.requestTimeMs=Math.round((0,g.j2)())}n&&Object.keys(u).length===0?g.DX(Y):u.compress?u.postBody?(typeof u.postBody!=="string"&&(u.postBody=JSON.stringify(u.postBody)),pz(Y,u.postBody, u,g.Ak,U)):pz(Y,JSON.stringify(u.postParams),u,js,U):g.Ak(Y,u)}; E0=function(Y,u){g.rL("use_event_time_ms_header")&&UU(Y)&&(u.headers||(u.headers={}),u.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.j2)())));return u}; fCu=function(Y,u){var n=u.onError?u.onError:function(){}; u.onError=function(k,m){WN().requestComplete(Y,!1);n(k,m)}; var U=u.onSuccess?u.onSuccess:function(){}; u.onSuccess=function(k,m){WN().requestComplete(Y,!0);U(k,m)}}; g.HN=function(Y){this.config_=null;Y?this.config_=Y:P9M()&&(this.config_=g.Xu())}; g.yH=function(Y,u,n,U){function k(f){try{if((f===void 0?0:f)&&U.retry&&!U.networklessOptions.bypassNetworkless)m.method="POST",U.networklessOptions.writeThenSend?go().writeThenSend(C,m):go().sendAndWrite(C,m);else if(U.compress){var Q=!U.networklessOptions.writeThenSend;if(m.postBody){var N=m.postBody;typeof N!=="string"&&(N=JSON.stringify(m.postBody));pz(C,N,m,g.Ak,Q)}else pz(C,JSON.stringify(m.postParams),m,js,Q)}else g.rL("web_all_payloads_via_jspb")?g.Ak(C,m):js(C,m)}catch(Z){if(Z.name==="InvalidAccessError")Fc(Error("An extension is blocking network request.")); else throw Z;}} !g.z6("VISITOR_DATA")&&u!=="visitor_id"&&Math.random()<.01&&Fc(new g.zP("Missing VISITOR_DATA when sending innertube request.",u,n,U));if(!Y.isReady())throw Y=new g.zP("innertube xhrclient not ready",u,n,U),g.VM(Y),Y;var m={headers:U.headers||{},method:"POST",postParams:n,postBody:U.postBody,postBodyFormat:U.postBodyFormat||"JSON",onTimeout:function(){U.onTimeout()}, onFetchTimeout:U.onTimeout,onSuccess:function(f,Q){if(U.onSuccess)U.onSuccess(Q)}, onFetchSuccess:function(f){if(U.onSuccess)U.onSuccess(f)}, onProgress:function(f){if(U.onProgress)U.onProgress(f)}, onError:function(f,Q){if(U.onError)U.onError(Q)}, onFetchError:function(f){if(U.onError)U.onError(f)}, timeout:U.timeout,withCredentials:!0,compress:U.compress};m.headers["Content-Type"]||(m.headers["Content-Type"]="application/json");n="";var X=Y.config_.mu;X&&(n=X);X=Y.config_.sW||!1;var S=MKA(X,n,U);Object.assign(m.headers,S);m.headers.Authorization&&!n&&X&&(m.headers["x-origin"]=window.location.origin);var C=uL(""+n+("/youtubei/"+Y.config_.innertubeApiVersion+"/"+u),{alt:"json"});g.nR("ytNetworklessLoggingInitializationOptions")&&QJu.isNwlInitialized?xsd().then(function(f){k(f)}):k(!1)}; g.q3=function(Y,u,n){var U=g.VH();if(U&&u){var k=U.subscribe(Y,function(){function m(){O0[k]&&u.apply&&typeof u.apply=="function"&&u.apply(n||window,X)} var X=arguments;try{g.Fu[Y]?m():g.QS(m,0)}catch(S){g.VM(S)}},n); O0[k]=!0;JD[Y]||(JD[Y]=[]);JD[Y].push(k);return k}return 0}; Ns0=function(Y){var u=g.q3("LOGGED_IN",function(n){Y.apply(void 0,arguments);g.a9(u)})}; g.a9=function(Y){var u=g.VH();u&&(typeof Y==="number"?Y=[Y]:typeof Y==="string"&&(Y=[parseInt(Y,10)]),g.Jy(Y,function(n){u.unsubscribeByKey(n);delete O0[n]}))}; g.$H=function(Y,u){var n=g.VH();return n?n.publish.apply(n,arguments):!1}; ZNM=function(Y){var u=g.VH();if(u)if(u.clear(Y),Y)iNB(Y);else for(var n in JD)iNB(n)}; g.VH=function(){return g.$e.ytPubsubPubsubInstance}; iNB=function(Y){JD[Y]&&(Y=JD[Y],g.Jy(Y,function(u){O0[u]&&delete O0[u]}),Y.length=0)}; g.kk=function(Y,u,n){TsY(Y,u,n===void 0?null:n)}; TsY=function(Y,u,n){n=n===void 0?null:n;var U=rwt(typeof Y==="string"?Y:Y.toString()),k=document.getElementById(U),m=k&&ctc(k),X=k&&!m;m?u&&u():(u&&(m=g.q3(U,u),u=""+g.SB(u),Mut[u]=m),X||(k=sJd(Y,U,function(){ctc(k)||(oWe(k),g.$H(U),g.QS(function(){ZNM(U)},0))},n)))}; sJd=function(Y,u,n,U){U=U===void 0?null:U;var k=g.rh("SCRIPT");k.id=u;k.onload=function(){n&&setTimeout(n,0)}; k.onreadystatechange=function(){switch(k.readyState){case "loaded":case "complete":k.onload()}}; U&&k.setAttribute("nonce",U);g.Aq(k,typeof Y==="string"?g.Aw(Y):Y);Y=document.getElementsByTagName("head")[0]||document.body;Y.insertBefore(k,Y.firstChild);return k}; rwt=function(Y){var u=document.createElement("a");g.QO(u,Y);Y=u.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+xr(Y)}; mk=function(Y,u){if(Y===u)Y=!0;else if(Array.isArray(Y)&&Array.isArray(u))Y=g.Oq(Y,u,mk);else if(g.XG(Y)&&g.XG(u))a:if(g.C3(Y).length!=g.C3(u).length)Y=!1;else{for(var n in Y)if(!mk(Y[n],u[n])){Y=!1;break a}Y=!0}else Y=!1;return Y}; S6=function(Y){var u=g.It.apply(1,arguments);if(!Xp(Y)||u.some(function(U){return!Xp(U)}))throw Error("Only objects may be merged."); u=g.A(u);for(var n=u.next();!n.done;n=u.next())Ph(Y,n.value)}; Ph=function(Y,u){for(var n in u)if(Xp(u[n])){if(n in Y&&!Xp(Y[n]))throw Error("Cannot merge an object into a non-object.");n in Y||(Y[n]={});Ph(Y[n],u[n])}else if(CA(u[n])){if(n in Y&&!CA(Y[n]))throw Error("Cannot merge an array into a non-array.");n in Y||(Y[n]=[]);ddW(Y[n],u[n])}else Y[n]=u[n];return Y}; ddW=function(Y,u){u=g.A(u);for(var n=u.next();!n.done;n=u.next())n=n.value,Xp(n)?Y.push(Ph({},n)):CA(n)?Y.push(ddW([],n)):Y.push(n);return Y}; Xp=function(Y){return typeof Y==="object"&&!Array.isArray(Y)}; CA=function(Y){return typeof Y==="object"&&Array.isArray(Y)}; fA=function(Y){g.e.call(this);this.j=Y}; Qx=function(Y){fA.call(this,!0);this.K=Y}; N9=function(Y,u){g.e.call(this);var n=this;this.X=[];this.S=!1;this.j=0;this.J=this.W=this.G=!1;this.KG=null;var U=(0,g.fR)(Y,u);this.K=new g.Vp(function(){return U(n.KG)},300); g.b(this,this.K);this.N=this.Z=Infinity}; G6e=function(Y,u){if(!u)return!1;for(var n=0;n-1)throw Error("Deps cycle for: "+u);if(Y.j.has(u))return Y.j.get(u);if(!Y.K.has(u)){if(U)return;throw Error("No provider for: "+u);}U=Y.K.get(u);n.push(u);if(U.CX!==void 0)var k=U.CX;else if(U.NVW)k=U[pA]?pQA(Y,U[pA],n):[],k=U.NVW.apply(U,g.Zu(k));else if(U.SD){k=U.SD;var m=k[pA]?pQA(Y,k[pA],n):[];k=new (Function.prototype.bind.apply(k,[null].concat(g.Zu(m))))}else throw Error("Could not resolve providers for: "+u);n.pop();U.GP2||Y.j.set(u,k); return k}; pQA=function(Y,u,n){return u?u.map(function(U){return U instanceof A2?LA(Y,U.key,n,!0):LA(Y,U,n)}):[]}; Bh=function(){t2||(t2=new KDu);return t2}; ch=function(){var Y,u;return"h5vcc"in oB&&((Y=oB.h5vcc.traceEvent)==null?0:Y.traceBegin)&&((u=oB.h5vcc.traceEvent)==null?0:u.traceEnd)?1:"performance"in oB&&oB.performance.mark&&oB.performance.measure?2:0}; vh=function(Y){var u=ch();switch(u){case 1:oB.h5vcc.traceEvent.traceBegin("YTLR",Y);break;case 2:oB.performance.mark(Y+"-start");break;case 0:break;default:N5(u,"unknown trace type")}}; LDc=function(Y){var u=ch();switch(u){case 1:oB.h5vcc.traceEvent.traceEnd("YTLR",Y);break;case 2:u=Y+"-start";var n=Y+"-end";oB.performance.mark(n);oB.performance.measure(Y,u,n);break;case 0:break;default:N5(u,"unknown trace type")}}; tuu=function(Y){var u,n;(n=(u=window).onerror)==null||n.call(u,Y.message,"",0,0,Y)}; BsY=function(Y){var u=this;var n=n===void 0?0:n;var U=U===void 0?g.FJ():U;this.X=n;this.scheduler=U;this.j=new g.Nv;this.K=Y;for(Y={qG:0};Y.qG=1E3?k():U>=Y?u2||(u2=nC(function(){k();u2=void 0},0)):m-S>=10&&(HNc(u,n.tier),X.G=m)}; bNM=function(Y,u){if(Y.endpoint==="log_event"){g.rL("more_accurate_gel_parser")&&yx().storePayload({isJspb:!1},Y.payload);OL(Y);var n=Fp(Y),U=new Map;U.set(n,[Y.payload]);var k=wQG(Y.payload)||"";u&&($k=new u);return new g.cB(function(m,X){$k&&$k.isReady()?ywW(U,$k,m,X,{bypassNetworkless:!0},!0,q9(k)):m()})}}; gKY=function(Y,u,n){if(u.endpoint==="log_event"){OL(void 0,u);var U=Fp(u,!0),k=new Map;k.set(U,[Ea(u.payload)]);n&&($k=new n);return new g.cB(function(m){$k&&$k.isReady()?Vu0(k,$k,m,{bypassNetworkless:!0},!0,q9(Y)):m()})}}; Fp=function(Y,u){var n="";if(Y.dangerousLogToVisitorSession)n="visitorOnlyApprovedKey";else if(Y.cttAuthInfo){if(u===void 0?0:u){u=Y.cttAuthInfo.token;n=Y.cttAuthInfo;var U=new eu;n.videoId?U.setVideoId(n.videoId):n.playlistId&&TT(U,2,UC,B7(n.playlistId));kC[u]=U}else u=Y.cttAuthInfo,n={},u.videoId?n.videoId=u.videoId:u.playlistId&&(n.playlistId=u.playlistId),mC[Y.cttAuthInfo.token]=n;n=Y.cttAuthInfo.token}return n}; aB=function(Y,u,n){Y=Y===void 0?{}:Y;u=u===void 0?!1:u;new g.cB(function(U,k){var m=YC(u,n),X=m.X;m.X=!1;Xo(m.j);Xo(m.K);m.K=0;$k&&$k.isReady()?n===void 0&&g.rL("enable_web_tiered_gel")?ONM(U,k,Y,u,300,X):ONM(U,k,Y,u,n,X):(HNc(u,n),U())})}; ONM=function(Y,u,n,U,k,m){var X=$k;n=n===void 0?{}:n;U=U===void 0?!1:U;k=k===void 0?200:k;m=m===void 0?!1:m;var S=new Map,C=new Map,f={isJspb:U,cttAuthInfo:void 0,tier:k},Q={isJspb:U,cttAuthInfo:void 0};if(U){u=g.A(Object.keys(J2));for(k=u.next();!k.done;k=u.next())k=k.value,C=g.rL("enable_web_tiered_gel")?yx().smartExtractMatchingEntries({keys:[f,Q],sizeLimit:1E3}):yx().extractMatchingEntries({isJspb:!0,cttAuthInfo:k}),C.length>0&&S.set(k,C),(g.rL("web_fp_via_jspb_and_json")&&n.writeThenSend||!g.rL("web_fp_via_jspb_and_json"))&& delete J2[k];Vu0(S,X,Y,n,!1,m)}else{S=g.A(Object.keys(J2));for(f=S.next();!f.done;f=S.next())f=f.value,Q=g.rL("enable_web_tiered_gel")?yx().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:f,tier:k},{isJspb:!1,cttAuthInfo:f}],sizeLimit:1E3}):yx().extractMatchingEntries({isJspb:!1,cttAuthInfo:f}),Q.length>0&&C.set(f,Q),(g.rL("web_fp_via_jspb_and_json")&&n.writeThenSend||!g.rL("web_fp_via_jspb_and_json"))&&delete J2[f];ywW(C,X,Y,u,n,!1,m)}}; HNc=function(Y,u){function n(){aB({writeThenSend:!0},Y,u)} Y=Y===void 0?!1:Y;u=u===void 0?200:u;var U=YC(Y,u),k=U===FD0||U===Jwm?5E3:q_e;g.rL("web_gel_timeout_cap")&&!U.K&&(k=nC(function(){n()},k),U.K=k); Xo(U.j);k=g.z6("LOGGING_BATCH_TIMEOUT",g.MI("web_gel_debounce_ms",1E4));g.rL("shorten_initial_gel_batch_timeout")&&Pr&&(k=aCA);k=nC(function(){g.MI("gel_min_batch_size")>0?yx().getSequenceCount({cttAuthInfo:void 0,isJspb:Y,tier:u})>=$de&&n():n()},k); U.j=k}; ywW=function(Y,u,n,U,k,m,X){k=k===void 0?{}:k;var S=Math.round((0,g.j2)()),C=Y.size,f=YUA(X);Y=g.A(Y);var Q=Y.next();for(X={};!Q.done;X={OU:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,hk:void 0,kY:void 0},Q=Y.next()){var N=g.A(Q.value);Q=N.next().value;N=N.next().value;X.batchRequest=g.Ml({context:g.PN(u.config_||g.Xu())});if(!g.mg(N)&&!g.rL("throw_err_when_logevent_malformed_killswitch")){U();break}X.batchRequest.events=N;(N=mC[Q])&&uAY(X.batchRequest,Q,N);delete mC[Q];X.dangerousLogToVisitorSession= Q==="visitorOnlyApprovedKey";noG(X.batchRequest,S,X.dangerousLogToVisitorSession);UIc(k);X.hk=function(Z){g.rL("start_client_gcf")&&g.WA.MX(function(){return g.l(function(T){return g.D(T,kqS(Z),0)})}); C--;C||n()}; X.OU=0;X.kY=function(Z){return function(){Z.OU++;if(k.bypassNetworkless&&Z.OU===1)try{g.yH(u,f,Z.batchRequest,Sg({writeThenSend:!0},Z.dangerousLogToVisitorSession,Z.hk,Z.kY,m)),Pr=!1}catch(T){g.VM(T),U()}C--;C||n()}}(X); try{g.yH(u,f,X.batchRequest,Sg(k,X.dangerousLogToVisitorSession,X.hk,X.kY,m)),Pr=!1}catch(Z){g.VM(Z),U()}}}; Vu0=function(Y,u,n,U,k,m){U=U===void 0?{}:U;var X=Math.round((0,g.j2)()),S={value:Y.size},C=new Map([].concat(g.Zu(Y)));C=g.A(C);for(var f=C.next();!f.done;f=C.next()){var Q=g.A(f.value).next().value,N=Y.get(Q);f=new hdu;var Z=u.config_||g.Xu(),T=new DC,r=new LN;wy(r,1,Z.Ho);wy(r,2,Z.F1);e4(r,16,Z.PZ);wy(r,17,Z.innertubeContextClientVersion);if(Z.Wl){var K=Z.Wl,L=new KN;K.coldConfigData&&wy(L,1,K.coldConfigData);K.appInstallData&&wy(L,6,K.appInstallData);K.coldHashData&&wy(L,3,K.coldHashData);K.hotHashData&& L.In(K.hotHashData);tP(r,KN,62,L)}(K=g.$e.devicePixelRatio)&&K!=1&&nr(r,65,Q3(K));K=sU();K!==""&&wy(r,54,K);K=dL();if(K.length>0){L=new oJ;for(var R=0;R65535&&(Y=1);IJ("BATCH_CLIENT_COUNTER",Y);return Y}; uAY=function(Y,u,n){if(n.videoId)var U="VIDEO";else if(n.playlistId)U="PLAYLIST";else return;Y.credentialTransferTokenTargetId=n;Y.context=Y.context||{};Y.context.user=Y.context.user||{};Y.context.user.credentialTransferTokens=[{token:u,scope:U}]}; OL=function(Y,u){var n=g.nR("yt.logging.transport.enableScrapingForTest"),U=Tq("il_payload_scraping");U=(U!==void 0?String(U):"")==="enable_il_payload_scraping";if(!n)if(U)Q9=[],g.Y$("yt.logging.transport.enableScrapingForTest",!0),g.Y$("yt.logging.transport.scrapedPayloadsForTesting",Q9),g.Y$("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Y$("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Y$("yt.logging.transport.scrapeClientEvent",!0);else return;n=g.nR("yt.logging.transport.scrapedPayloadsForTesting");U=g.nR("yt.logging.transport.payloadToScrape");u&&(u=u.payload,(u=g.nR("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(u)())&&n.push(u));u=g.nR("yt.logging.transport.scrapeClientEvent");if(U&&U.length>=1)for(var k=0;k0&&LRe(Y,u,m)}else LRe(Y,u)}; LRe=function(Y,u,n){Y=tsS(Y);u=u?g.r3(u):"";n=n||5;ao()&&g.Ro(Y,u,n)}; tsS=function(Y){for(var u=g.A(BLc),n=u.next();!n.done;n=u.next())Y=Ko(Y,n.value);return"ST-"+xr(Y).toString(36)}; ooB=function(Y){if(Y.name==="JavaException")return!0;Y=Y.stack;return Y.includes("chrome://")||Y.includes("-extension://")||Y.includes("webkit-masked-url://")}; ckA=function(Y){if(!Y.stack)return!0;var u=!Y.stack.includes("\n");return u&&Y.stack.includes("ErrorType: ")||u&&Y.stack.includes("Anonymous function (Unknown script")||Y.stack.toLowerCase()==="not available"||Y.fileName==="user-script"||Y.fileName.startsWith("user-script:")?!0:!1}; voA=function(){this.m_=[];this.V$=[]}; jg=function(){if(!Al){var Y=Al=new voA;Y.V$.length=0;Y.m_.length=0;RRG(Y,DIu)}return Al}; RRG=function(Y,u){u.V$&&Y.V$.push.apply(Y.V$,u.V$);u.m_&&Y.m_.push.apply(Y.m_,u.m_)}; xIc=function(Y){function u(){return Y.charCodeAt(U++)} var n=Y.length,U=0;do{var k=KC(u);if(k===Infinity)break;var m=k>>3;switch(k&7){case 0:k=KC(u);if(m===2)return k;break;case 1:if(m===2)return;U+=8;break;case 2:k=KC(u);if(m===2)return Y.substr(U,k);U+=k;break;case 5:if(m===2)return;U+=4;break;default:return}}while(U500));U++);U=k}else if(typeof Y==="object")for(k in Y){if(Y[k]){var m=k;var X=Y[k],S=u,C=n;m=typeof X!=="string"||m!=="clickTrackingParams"&&m!=="trackingParams"?0:(X=xIc(atob(X.replace(/-/g,"+").replace(/_/g,"/"))))?pC(m+".ve",X,S,C):0;U+=m;U+=pC(k,Y[k],u,n);if(U>500)break}}else n[u]=LC(Y),U+=n[u].length;else n[u]=LC(Y),U+=n[u].length;return U}; pC=function(Y,u,n,U){n+="."+Y;Y=LC(u);U[n]=Y;return n.length+Y.length}; LC=function(Y){try{return(typeof Y==="string"?Y:String(JSON.stringify(Y))).substr(0,500)}catch(u){return"unable to serialize "+typeof Y+" ("+u.message+")"}}; U$=function(Y){g.tl(Y)}; g.Br=function(Y){g.tl(Y,"WARNING")}; g.tl=function(Y,u){var n=n===void 0?{}:n;n.name=g.z6("INNERTUBE_CONTEXT_CLIENT_NAME",1);n.version=g.z6("INNERTUBE_CONTEXT_CLIENT_VERSION");u=u===void 0?"ERROR":u;var U=!1;u=u===void 0?"ERROR":u;U=U===void 0?!1:U;if(Y){Y.hasOwnProperty("level")&&Y.level&&(u=Y.level);if(g.rL("console_log_js_exceptions")){var k=[];k.push("Name: "+Y.name);k.push("Message: "+Y.message);Y.hasOwnProperty("params")&&k.push("Error Params: "+JSON.stringify(Y.params));Y.hasOwnProperty("args")&&k.push("Error args: "+JSON.stringify(Y.args)); k.push("File name: "+Y.fileName);k.push("Stacktrace: "+Y.stack);window.console.log(k.join("\n"),Y)}if(!(hRA>=5)){k=[];for(var m=g.A(wyd),X=m.next();!X.done;X=m.next()){X=X.value;try{X()&&k.push(X())}catch(K){}}k=[].concat(g.Zu(WRB),g.Zu(k));var S=mX0(Y);m=S.message||"Unknown Error";X=S.name||"UnknownError";var C=S.stack||Y.j||"Not available";if(C.startsWith(X+": "+m)){var f=C.split("\n");f.shift();C=f.join("\n")}f=S.lineNumber||"Not available";S=S.fileName||"Not available";var Q=0;if(Y.hasOwnProperty("args")&& Y.args&&Y.args.length)for(var N=0;N=500);N++);else if(Y.hasOwnProperty("params")&&Y.params){var Z=Y.params;if(typeof Y.params==="object")for(N in Z){if(Z[N]){var T="params."+N,r=LC(Z[N]);n[T]=r;Q+=T.length+r.length;if(Q>500)break}}else n.params=LC(Z)}if(k.length)for(N=0;N=500);N++);navigator.vendor&&!n.hasOwnProperty("vendor")&&(n["device.vendor"]=navigator.vendor);n={message:m,name:X,lineNumber:f, fileName:S,stack:C,params:n,sampleWeight:1};N=Number(Y.columnNumber);isNaN(N)||(n.lineNumber=n.lineNumber+":"+N);if(Y.level==="IGNORED")Y=0;else a:{Y=jg();N=g.A(Y.V$);for(k=N.next();!k.done;k=N.next())if(k=k.value,n.message&&n.message.match(k.Ji)){Y=k.weight;break a}Y=g.A(Y.m_);for(N=Y.next();!N.done;N=Y.next())if(N=N.value,N.callback(n)){Y=N.weight;break a}Y=1}n.sampleWeight=Y;Y=g.A(eRc);for(N=Y.next();!N.done;N=Y.next())if(N=N.value,N.xA[n.name])for(m=g.A(N.xA[n.name]),k=m.next();!k.done;k=m.next())if(X= k.value,k=n.message.match(X.CU)){n.params["params.error.original"]=k[0];m=X.groups;X={};for(f=0;f1E3&&g.Br(new g.zP("IL Attach cache exceeded limit"))}S= Ib(n,u);hl.has(S)?zn(n,u):Wr.set(S,!0)}}U=U.filter(function(Q){Q.csn!==u?(Q.csn=u,Q=!0):Q=!1;return Q}); n={csn:u,parentVe:n.getAsJson(),childVes:g.dA(U,function(Q){return Q.getAsJson()})}; u==="UNDEFINED_CSN"?gU("visualElementAttached",m,n):Y?i2("visualElementAttached",n,Y,m):g.ka("visualElementAttached",n,m)}; Y2W=function(Y,u,n,U,k){EC(n,u);U=l2({cttAuthInfo:dU(u)||void 0},u);n={csn:u,ve:n.getAsJson(),eventType:1};k&&(n.clientData=k);u==="UNDEFINED_CSN"?gU("visualElementShown",U,n):Y?i2("visualElementShown",n,Y,U):g.ka("visualElementShown",n,U)}; uJG=function(Y,u,n,U){var k=(U=U===void 0?!1:U)?16:8;U=l2({cttAuthInfo:dU(u)||void 0,endOfSequence:U},u);n={csn:u,ve:n.getAsJson(),eventType:k};u==="UNDEFINED_CSN"?gU("visualElementHidden",U,n):Y?i2("visualElementHidden",n,Y,U):g.ka("visualElementHidden",n,U)}; Hr=function(Y,u,n,U,k){nUu(Y,u,n,void 0,U,k)}; nUu=function(Y,u,n,U,k){EC(n,u);U=U||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var m=l2({cttAuthInfo:dU(u)||void 0},u);n={csn:u,ve:n.getAsJson(),gestureType:U};k&&(n.clientData=k);u==="UNDEFINED_CSN"?gU("visualElementGestured",m,n):Y?i2("visualElementGestured",n,Y,m):g.ka("visualElementGestured",n,m)}; UxA=function(){var Y=Z8(16);for(var u=[],n=0;n0&&n.push(g.rh("BR"));n.push(g.MK(m))}):n.push(g.MK(U))}return n}; mL=function(Y,u,n,U){if(n==="child"){g.dh(u);var k;U===void 0?k=void 0:k=!Array.isArray(U)||U&&typeof U.D==="string"?[U]:U;n=mxA(Y,k);n=g.A(n);for(Y=n.next();!Y.done;Y=n.next())u.appendChild(Y.value)}else n==="style"?g.yV(u,"cssText",U?U:""):U===null||U===void 0?u.removeAttribute(n):(Y=U.toString(),n==="href"&&(Y=g.mG(g.SO(Y))),u.setAttribute(n,Y))}; g.H=function(Y){g.Up.call(this,Y);this.KT=!0;this.J=!1;this.listeners=[]}; g.XV=function(Y){g.H.call(this,Y);this.TZ=new g.ud;g.b(this,this.TZ)}; P6=function(Y,u,n,U,k,m,X){X=X===void 0?null:X;g.XV.call(this,u);this.api=Y;this.macros={};this.componentType=n;this.S=this.Z=null;this.Iu=X;this.layoutId=U;this.interactionLoggingClientData=k;this.cz=m;this.zZ=null;this.fP=new Qx(this.element);g.b(this,this.fP);this.Uc=this.B(this.element,"click",this.onClick);this.DW=[];this.jG=new N9(this.onClick,this);g.b(this,this.jG);this.Ru=!1;this.MF=this.KG=null}; Sh=function(Y,u){Y=Y===void 0?null:Y;u=u===void 0?null:u;if(Y==null)return g.Br(Error("Got null or undefined adText object")),"";var n=g.DO(Y.text);if(!Y.isTemplated)return n;if(u==null)return g.Br(Error("Missing required parameters for a templated message")),n;Y=g.A(Object.entries(u));for(u=Y.next();!u.done;u=Y.next()){var U=g.A(u.value);u=U.next().value;U=U.next().value;n=n.replace("{"+u+"}",U)}return n}; Xk0=function(Y){Y=Y===void 0?null:Y;return Y!=null&&(Y=Y.thumbnail,Y!=null&&Y.thumbnails!=null&&Y.thumbnails.length!=0&&Y.thumbnails[0].url!=null)?g.DO(Y.thumbnails[0].url):""}; PWu=function(Y){Y=Y===void 0?null:Y;return Y!=null&&(Y=Y.thumbnail,Y!=null&&Y.thumbnails!=null&&Y.thumbnails.length!=0&&Y.thumbnails[0].width!=null&&Y.thumbnails[0].height!=null)?new g.OW(Y.thumbnails[0].width||0,Y.thumbnails[0].height||0):new g.OW(0,0)}; g.Cw=function(Y){if(Y.simpleText)return Y.simpleText;if(Y.runs){var u=[];Y=g.A(Y.runs);for(var n=Y.next();!n.done;n=Y.next())n=n.value,n.text&&u.push(n.text);return u.join("")}return""}; g.fw=function(Y){if(Y.simpleText)return Y=document.createTextNode(Y.simpleText),Y;var u=[];if(Y.runs)for(var n=0;n1){for(var u=[Y[0]],n=1;n0&&(this.K=new g.Vp(this.Fe,u,this),g.b(this,this.K));this.J=new g.Vp(this.Fe,n,this);g.b(this,this.J);this.Z=LvS(this.j,k,1,U);g.b(this,this.Z);this.S=LvS(this.j,0,U,1);g.b(this,this.S);this.G=new Kb;g.b(this,this.G)}; n1=function(Y,u,n){this.j=Y;this.isAsync=u;this.K=n}; $xd=function(Y){switch(Y){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:N5(Y,"unknown result type")}}; Y$t=function(Y,u){var n=1;Y.isTrusted===!1&&(n=0);IJ("ISDSTAT",n);UH(n,"i.s_",{triggerContext:"sk",metadata:u});return n}; uQd=function(Y,u){var n=[];u?u.isTrusted===!0?n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):u.isTrusted===!1?n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");UH(0,"a.s_",{metadata:Y,states:n});IJ("ASDSTAT",0)}; UH=function(Y,u,n){u=naA[u];var U,k,m={detected:Y===0,source:""+u.j+((U=n.triggerContext)!=null?U:"")+((k=n.VC)!=null?k:""),detectionStates:n.states,durationMs:n.J5};n.metadata&&(m.contentCpn=n.metadata.contentCpn,m.adCpn=n.metadata.adCpn);g.ka("biscottiBasedDetection",m);u.K!==void 0&&(n=Number(g.z6("CATSTAT",0)),u.K!==void 0?(u=u.K,Y=$xd(Y),Y=n&~(3<0}; f1=function(Y,u,n,U,k,m){Vd.call(this,Y,{D:"div",C:"ytp-ad-skip-button-slot"},"skip-button",u,n,U,k);var X=this;this.oV=null;this.rg=!1;this.CG=m;this.W=this.api.Y().experiments.vz("enable_modern_skip_button_on_web");this.dg=!1;this.G=new g.XV({D:"span",Oc:["ytp-ad-skip-button-container"]});this.W&&this.G.element.classList.add("ytp-ad-skip-button-container-detached");g.b(this,this.G);this.G.yF(this.element);this.j=this.X=null;this.Pz=new g.Je(this.G,500,!1,100,function(){return X.hide()}); g.b(this,this.Pz);this.Fk=new uT(this.G.element,15E3,5E3,.5,.5,this.W);g.b(this,this.Fk);this.hide()}; kCB=function(Y){Y=Y.oV&&Y.oV.adRendererCommands;return(Y&&Y.clickCommand&&g.z(Y.clickCommand,g.Qj)&&g.z(Y.clickCommand,g.Qj).commands||[]).some(function(u){return u.adLifecycleCommand?Uy0(u.adLifecycleCommand):!1})}; Uy0=function(Y){return Y.action==="END_LINEAR_AD"||Y.action==="END_LINEAR_AD_PLACEMENT"}; NG=function(Y,u,n,U,k,m){Vd.call(this,Y,{D:"div",C:"ytp-ad-skip-ad-slot"},"skip-ad",u,n,U,k);this.oV=m;this.G=!1;this.W=0;this.X=this.j=null;this.hide()}; myS=function(Y,u){Y.G||(Y.G=!0,Y.j&&(u?Y.j.oV.hide():Y.j.hide()),u?(Y=Y.X,Y.Pz.show(),Y.show()):Y.X.show())}; iT=function(Y,u,n,U){B6.call(this,Y,u,n,U,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Z_=function(Y,u,n,U,k,m,X){m=m===void 0?!1:m;X=X===void 0?!1:X;P6.call(this,Y,{D:"span",C:"ytp-ad-simple-ad-badge"},"simple-ad-badge",u,n,U);this.X=k;this.K=this.Xk("ytp-ad-simple-ad-badge");(this.j=m)&&this.K.classList.add("ytp-ad-simple-ad-badge--clean-player");X&&this.K.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; TQ=function(Y,u,n,U,k){k=k===void 0?!1:k;YY.call(this,"player-overlay",Y,{},u,U);this.videoAdDurationSeconds=n;this.interactionLoggingClientData=U;this.xF=k}; r7=function(Y,u){g.ud.call(this);this.api=Y;this.durationMs=u;this.K=null;this.P0=new Kb(this);g.b(this,this.P0);this.j=XFY;this.P0.B(this.api,"presentingplayerstatechange",this.PE);this.K=this.P0.B(this.api,"onAdPlaybackProgress",this.ye)}; MG=function(Y){g.ud.call(this);this.K=!1;this.aM=0;this.P0=new Kb(this);g.b(this,this.P0);this.durationMs=Y;this.timer=new g.wr(100);g.b(this,this.timer);this.P0.B(this.timer,"tick",this.ye);this.j={seekableStart:0,seekableEnd:Y/1E3,current:0};this.start()}; g.sH=function(Y,u){var n=Math.abs(Math.floor(Y)),U=Math.floor(n/86400),k=Math.floor(n%86400/3600),m=Math.floor(n%3600/60);n=Math.floor(n%60);if(u){u="";U>0&&(u+=" "+U+" d\u00edas");if(U>0||k>0)u+=" "+k+" horas";u+=" "+m+" minutos";u+=" "+n+" segundos";U=u.trim()}else{u="";U>0&&(u+=U+":",k<10&&(u+="0"));if(U>0||k>0)u+=k+":",m<10&&(u+="0");u+=m+":";n<10&&(u+="0");U=u+n}return Y>=0?U:"-"+U}; g.d7=function(Y){return(!("button"in Y)||typeof Y.button!=="number"||Y.button===0)&&!("shiftKey"in Y&&Y.shiftKey)&&!("altKey"in Y&&Y.altKey)&&!("metaKey"in Y&&Y.metaKey)&&!("ctrlKey"in Y&&Y.ctrlKey)}; GQ=function(Y,u,n,U,k,m,X){Vd.call(this,Y,{D:"span",C:X?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",u,n,U,k);this.videoAdDurationSeconds=m;this.j=null;X&&this.api.Y().j&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),zC&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Ac=function(Y,u,n,U){H6.call(this,Y,u,n,U,"ytp-video-ad-top-bar-title","ad-title")}; jZ=function(Y){this.content=Y.content;if(Y.commandRuns){Y=g.A(Y.commandRuns);for(var u=Y.next();!u.done;u=Y.next())u=u.value,this.loggingDirectives=g.z(u,PU7),u.onTap&&(this.interaction={onTap:u.onTap})}}; K1=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ad-simple-attributed-string"},"ad-simple-attributed-string",u,n,U);this.hide()}; p1=function(Y,u,n,U,k){P6.call(this,Y,{D:"span",C:k?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",u,n,U);this.j=k;this.adBadgeText=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);this.adBadgeText.yF(this.element);g.b(this,this.adBadgeText);k?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),zC&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; L1=function(Y,u,n,U){P6.call(this,Y,{D:"span",C:"ytp-ad-pod-index"},"ad-pod-index",u,n,U);this.api.Y().j&&(this.element.classList.add("ytp-ad-pod-index--mweb"),zC&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; tc=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",u,n,U);this.hide()}; BY=function(Y,u){this.j=Y;this.K=u}; S$d=function(Y,u){return Y.j+u*(Y.K-Y.j)}; o8=function(Y,u,n){return Y.K-Y.j?g.gS((u-Y.j)/(Y.K-Y.j),0,1):n!=null?n:Infinity}; cY=function(Y,u,n,U){U=U===void 0?!1:U;g.XV.call(this,{D:"div",C:"ytp-ad-persistent-progress-bar-container",U:[{D:"div",C:"ytp-ad-persistent-progress-bar"}]});this.api=Y;this.j=u;this.X=n;U&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.b(this,this.j);this.progressBar=this.Xk("ytp-ad-persistent-progress-bar");this.K=-1;this.B(Y,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; vY=function(Y,u,n,U,k,m){P6.call(this,Y,{D:"div",C:"ytp-ad-player-overlay",U:[{D:"div",C:"ytp-ad-player-overlay-flyout-cta"},{D:"div",C:"ytp-ad-player-overlay-instream-info"},{D:"div",C:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",C:"ytp-ad-player-overlay-progress-bar"},{D:"div",C:"ytp-ad-player-overlay-instream-user-sentiment"},{D:"div",C:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",u,n,U);this.N=m;this.W=this.Xk("ytp-ad-player-overlay-flyout-cta");this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.K=this.Xk("ytp-ad-player-overlay-instream-info");this.G=null;CUe(this)&&(Y=To("div"),g.UN(Y,"ytp-ad-player-overlay-top-bar-gradients"),u=this.K,u.parentNode&&u.parentNode.insertBefore(Y,u),(u=this.api.getVideoData(2))&&u.isListed&&u.title&&(n=new Ac(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),n.yF(Y),n.init($C("ad-title"),{text:u.title},this.macros),g.b(this,n)),this.G=Y);this.X=null;this.JJ=this.Xk("ytp-ad-player-overlay-skip-or-preview");this.Fk=this.Xk("ytp-ad-player-overlay-progress-bar"); this.rg=this.Xk("ytp-ad-player-overlay-instream-user-sentiment");this.oV=this.Xk("ytp-ad-player-overlay-ad-disclosure-banner");this.j=k;g.b(this,this.j);this.hide()}; CUe=function(Y){Y=Y.api.Y();return g.R8(Y)&&Y.j}; g.D_=function(Y){Y&=16777215;var u=[(Y&16711680)>>16,(Y&65280)>>8,Y&255];Y=u[0];var n=u[1];u=u[2];Y=Number(Y);n=Number(n);u=Number(u);if(Y!=(Y&255)||n!=(n&255)||u!=(u&255))throw Error('"('+Y+","+n+","+u+'") is not a valid RGB color');n=Y<<16|n<<8|u;return Y<16?"#"+(16777216|n).toString(16).slice(1):"#"+n.toString(16)}; g.xA=function(){}; QRS=function(Y){var u=new Pm;var n=new Xs;n=wy(n,1,"botguard");Y=wy(n,2,Y);this.K=D5M(u,Xs,1,f0S,Y)}; lT=function(Y){this.K=new tG(Y)}; NDW=function(){var Y=!1;try{Y=!!window.sessionStorage.getItem("session_logininfo")}catch(u){Y=!0}return(g.z6("INNERTUBE_CLIENT_NAME")==="WEB"||g.z6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&Y}; hc=function(){var Y=Y===void 0?!0:Y;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");IJ("LOGIN_INFO","");Y&&window.sessionStorage.setItem("from_switch_account","1");Y=!0;Y=Y===void 0?!1:Y;var u,n=iXW;n||(n=document.querySelector("#persist_identity"));if(u=n){var U=u.src?(new URL(u.src)).origin:"*";if(Y){var k;(k=u.contentWindow)==null||k.postMessage({action:"clear"},U)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var m=window.sessionStorage.getItem("session_logininfo");if(m){var X;(X=u.contentWindow)==null||X.postMessage({loginInfo:m},U)}}}}catch(S){}}; w7=function(Y){Y&&(Y.startsWith("https://accounts.google.com/AddSession")?hc():Y.startsWith("https://accounts.google.com/ServiceLogin")?hc():Y.startsWith("https://myaccount.google.com")&&g.Ns(Y).j.endsWith("/youtubeoptions")&&hc());if(g.z6("LOGGED_IN",!0)&&NDW()){var u=g.z6("VALID_SESSION_TEMPDATA_DOMAINS",[]);var n=g.fo(window.location.href);n&&u.push(n);n=g.fo(Y);g.jB(u,n)||!n&&cq(Y,"/")?(u=Nk(Y),(u=biM(u))?(u=tsS(u),u=(u=g.Dz(u)||null)?aJ(u):{}):u=null):u=null;u==null&&(u={});n=u;var U=void 0; NDW()?(U||(U=g.z6("LOGIN_INFO")),U?(n.session_logininfo=U,n=!0):n=!1):n=!1;n&&Gn(Y,u)}}; g.ZXd=function(Y){var u=u===void 0?{}:u;var n=n===void 0?"":n;var U=U===void 0?window:U;Y=g.Mk(Y,u);w7(Y);n=g.SO(Y+n);U=U.location;n=fu(n);n!==void 0&&(U.href=n)}; g.WY=function(Y,u,n){u=u===void 0?{}:u;n=n===void 0?!1:n;var U=g.z6("EVENT_ID");U&&(u.ei||(u.ei=U));u&&Gn(Y,u);n||(w7(Y),g.ZXd(Y))}; g.eZ=function(Y,u,n,U,k){k=k===void 0?!1:k;n&&Gn(Y,n);n=g.SO(Y);var m=g.mG(n);Y!=m&&Fc(Error("Unsafe window.open URL: "+Y));Y=m;u=u||xr(Y).toString(36);try{if(k)return k=Y,k=k6u(k),w7(k),g.rS(window,k,u,"attributionsrc")}catch(X){g.VM(X)}w7(Y);return g.rS(window,n,u,U)}; TDu=function(Y){bT=Y}; rEW=function(Y){I8=Y}; M2W=function(Y){zQ=Y}; dym=function(){sRM=zQ=I8=bT=null}; AEm=function(){var Y=Y===void 0?window.location.href:Y;if(g.rL("kevlar_disable_theme_param"))return null;var u=Qi(Y);if(g.rL("enable_dark_theme_only_on_shorts")&&u!=null&&u.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var n=g.Yo(Y).theme;return GCe.get(n)||null}catch(U){}return null}; g7=function(){this.K={};if(this.j=QSB()){var Y=g.Dz("CONSISTENCY");Y&&jRc(this,{encryptedTokenJarContents:Y})}}; jRc=function(Y,u){if(u.encryptedTokenJarContents&&(Y.K[u.encryptedTokenJarContents]=u,typeof u.expirationSeconds==="string")){var n=Number(u.expirationSeconds);setTimeout(function(){delete Y.K[u.encryptedTokenJarContents]},n*1E3); Y.j&&g.Ro("CONSISTENCY",u.encryptedTokenJarContents,n,void 0,!0)}}; HY=function(){this.j=-1;var Y=g.z6("LOCATION_PLAYABILITY_TOKEN");g.z6("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=EH(this))&&(Y=this.localStorage.get("yt-location-playability-token"));Y&&(this.locationPlayabilityToken=Y,this.K=void 0)}; EH=function(Y){return Y.localStorage===void 0?new aU("yt-client-location"):Y.localStorage}; g.yj=function(Y,u,n){u=u===void 0?!1:u;n=n===void 0?!1:n;var U=g.z6("INNERTUBE_CONTEXT");if(!U)return g.tl(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};U=g.Ml(U);g.rL("web_no_tracking_params_in_shell_killswitch")||delete U.clickTracking;U.client||(U.client={});var k=U.client;k.clientName==="MWEB"&&k.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(k.clientFormFactor=g.z6("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");k.screenWidthPoints=window.innerWidth;k.screenHeightPoints= window.innerHeight;k.screenPixelDensity=Math.round(window.devicePixelRatio||1);k.screenDensityFloat=window.devicePixelRatio||1;k.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var m=m===void 0?!1:m;g.h6();var X="USER_INTERFACE_THEME_LIGHT";g.wT(0,165)?X="USER_INTERFACE_THEME_DARK":g.wT(0,174)?X="USER_INTERFACE_THEME_LIGHT":!g.rL("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (X="USER_INTERFACE_THEME_DARK");m=m?X:AEm()||X;k.userInterfaceTheme=m;if(!u){if(m=qvt())k.connectionType=m;g.rL("web_log_effective_connection_type")&&(m=$vu())&&(U.client.effectiveConnectionType=m)}var S;if(g.rL("web_log_memory_total_kbytes")&&((S=g.$e.navigator)==null?0:S.deviceMemory)){var C;S=(C=g.$e.navigator)==null?void 0:C.deviceMemory;U.client.memoryTotalKbytes=""+S*1E6}g.rL("web_gcf_hashes_innertube")&&(m=XP7())&&(C=m.coldConfigData,S=m.coldHashData,m=m.hotHashData,U.client.configInfo=U.client.configInfo|| {},C&&(U.client.configInfo.coldConfigData=C),S&&(U.client.configInfo.coldHashData=S),m&&(U.client.configInfo.hotHashData=m));C=g.Yo(g.$e.location.href);!g.rL("web_populate_internal_geo_killswitch")&&C.internalcountrycode&&(k.internalGeo=C.internalcountrycode);k.clientName==="MWEB"||k.clientName==="WEB"?(k.mainAppWebInfo||(k.mainAppWebInfo={}),k.mainAppWebInfo.graftUrl=g.$e.location.href,g.rL("kevlar_woffle")&&EWc.instance&&(C=EWc.instance,k.mainAppWebInfo.pwaInstallabilityStatus=!C.K&&C.j?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),k.mainAppWebInfo.webDisplayMode=Dm(),k.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):k.clientName==="TVHTML5"&&(!g.rL("web_lr_app_quality_killswitch")&&(C=g.z6("LIVING_ROOM_APP_QUALITY"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{appQuality:C})),C=g.z6("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{certificationScope:C}));if(!g.rL("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var f=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(W){}f=void 0}f&&(k.timeZone=f)}(f=sU())?k.experimentsToken=f:delete k.experimentsToken;f=dL();g7.instance||(g7.instance=new g7);U.request=Object.assign({},U.request,{internalExperimentFlags:f,consistencyTokenJars:ms(g7.instance.K)});!g.rL("web_prequest_context_killswitch")&&(f=g.z6("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(U.request.externalPrequestContext=f);k=g.h6();f=g.wT(0,58);k=k.get("gsml","");U.user=Object.assign({}, U.user);f&&(U.user.enableSafetyMode=f);k&&(U.user.lockedSafetyMode=!0);g.rL("warm_op_csn_cleanup")?n&&(u=g.sC())&&(U.clientScreenNonce=u):!u&&(u=g.sC())&&(U.clientScreenNonce=u);Y&&(U.clickTracking={clickTrackingParams:Y});if(Y=g.nR("yt.mdx.remote.remoteClient_"))U.remoteClient=Y;HY.getInstance().setLocationOnInnerTubeContext(U);try{var Q=Ss(),N=Q.bid;delete Q.bid;U.adSignalsInfo={params:[],bid:N};for(var Z=g.A(Object.entries(Q)),T=Z.next();!T.done;T=Z.next()){var r=g.A(T.value),K=r.next().value, L=r.next().value;Q=K;N=L;Y=void 0;(Y=U.adSignalsInfo.params)==null||Y.push({key:Q,value:""+N})}var R,c;if(((R=U.client)==null?void 0:R.clientName)==="TVHTML5"||((c=U.client)==null?void 0:c.clientName)==="TVHTML5_UNPLUGGED"){var x=g.z6("INNERTUBE_CONTEXT");x.adSignalsInfo&&(U.adSignalsInfo.advertisingId=x.adSignalsInfo.advertisingId,U.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",U.adSignalsInfo.limitAdTracking=x.adSignalsInfo.limitAdTracking)}}catch(W){g.tl(W)}return U}; LhY=function(Y,u){if(!Y)return!1;var n,U=(n=g.z(Y,Khe))==null?void 0:n.signal;if(U&&u.wv)return!!u.wv[U];var k;if((n=(k=g.z(Y,pF7))==null?void 0:k.request)&&u.D7)return!!u.D7[n];for(var m in Y)if(u.XW[m])return!0;return!1}; t2d=function(Y){var u={"Content-Type":"application/json"};g.z6("EOM_VISITOR_DATA")?u["X-Goog-EOM-Visitor-Id"]=g.z6("EOM_VISITOR_DATA"):g.z6("VISITOR_DATA")&&(u["X-Goog-Visitor-Id"]=g.z6("VISITOR_DATA"));u["X-Youtube-Bootstrap-Logged-In"]=g.z6("LOGGED_IN",!1);g.z6("DEBUG_SETTINGS_METADATA")&&(u["X-Debug-Settings-Metadata"]=g.z6("DEBUG_SETTINGS_METADATA"));Y!=="cors"&&((Y=g.z6("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(u["X-Youtube-Client-Name"]=Y),(Y=g.z6("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(u["X-Youtube-Client-Version"]= Y),(Y=g.z6("CHROME_CONNECTED_HEADER"))&&(u["X-Youtube-Chrome-Connected"]=Y),(Y=g.z6("DOMAIN_ADMIN_STATE"))&&(u["X-Youtube-Domain-Admin-State"]=Y),g.z6("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(Y=g.z6("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(u["X-YouTube-Lava-Device-Context"]=Y));return u}; BDA=function(){this.K={}}; Vj=function(){this.mappings=new BDA}; OH=function(Y){return function(){return new Y}}; cEG=function(Y){var u=u===void 0?"UNKNOWN_INTERFACE":u;if(Y.length===1)return Y[0];var n=oaY[u];if(n){n=new RegExp(n);for(var U=g.A(Y),k=U.next();!k.done;k=U.next())if(k=k.value,n.exec(k))return k}var m=[];Object.entries(oaY).forEach(function(X){var S=g.A(X);X=S.next().value;S=S.next().value;u!==X&&m.push(S)}); n=new RegExp(m.join("|"));Y.sort(function(X,S){return X.length-S.length}); U=g.A(Y);for(k=U.next();!k.done;k=U.next())if(k=k.value,!n.exec(k))return k;return Y[0]}; g.Fj=function(Y){return"/youtubei/v1/"+cEG(Y)}; Jc=function(){}; qG=function(){}; a8=function(){}; $A=function(Y){return g.nR("ytcsi."+(Y||"")+"data_")||vae(Y)}; R30=function(){var Y=$A();Y.info||(Y.info={});return Y.info}; YI=function(Y){Y=$A(Y);Y.metadata||(Y.metadata={});return Y.metadata}; uS=function(Y){Y=$A(Y);Y.tick||(Y.tick={});return Y.tick}; ng=function(Y){Y=$A(Y);if(Y.gel){var u=Y.gel;u.gelInfos||(u.gelInfos={});u.gelTicks||(u.gelTicks={})}else Y.gel={gelTicks:{},gelInfos:{}};return Y.gel}; Dy7=function(Y){Y=ng(Y);Y.gelInfos||(Y.gelInfos={});return Y.gelInfos}; Uz=function(Y){var u=$A(Y).nonce;u||(u=g.TS(16),$A(Y).nonce=u);return u}; vae=function(Y){var u={tick:{},info:{}};g.Y$("ytcsi."+(Y||"")+"data_",u);return u}; kI=function(){var Y=g.nR("ytcsi.debug");Y||(Y=[],g.Y$("ytcsi.debug",Y),g.Y$("ytcsi.reference",{}));return Y}; m3=function(Y){Y=Y||"";var u=xyt();if(u[Y])return u[Y];var n=kI(),U={timerName:Y,info:{},tick:{},span:{},jspbInfo:[]};n.push(U);return u[Y]=U}; l0d=function(Y){Y=Y||"";var u=xyt();u[Y]&&delete u[Y];var n=kI(),U={timerName:Y,info:{},tick:{},span:{},jspbInfo:[]};n.push(U);u[Y]=U}; xyt=function(){var Y=g.nR("ytcsi.reference");if(Y)return Y;kI();return g.nR("ytcsi.reference")}; Xn=function(Y){return h3A[Y]||"LATENCY_ACTION_UNKNOWN"}; PD=function(Y,u){Cz.call(this,1,arguments);this.timer=u}; SP=function(){this.K=0}; Cg=function(){SP.instance||(SP.instance=new SP);return SP.instance}; QL=function(Y,u){fg[u]=fg[u]||{count:0};var n=fg[u];n.count++;n.time=(0,g.j2)();Y.K||(Y.K=g.VT(0,function(){var U=(0,g.j2)(),k;for(k in fg)fg[k]&&U-fg[k].time>6E4&&delete fg[k];Y&&(Y.K=0)},5E3)); return n.count>5?(n.count===6&&Math.random()*1E5<1&&(n=new g.zP("CSI data exceeded logging limit with key",u.split("_")),u.indexOf("plev")>=0||g.Br(n)),!0):!1}; wFc=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; Whc=function(){var Y;if(g.rL("csi_use_performance_navigation_timing")){var u,n,U,k=N4==null?void 0:(Y=N4.getEntriesByType)==null?void 0:(u=Y.call(N4,"navigation"))==null?void 0:(n=u[0])==null?void 0:(U=n.toJSON)==null?void 0:U.call(n);k?(k.requestStart=iS(k.requestStart),k.responseEnd=iS(k.responseEnd),k.redirectStart=iS(k.redirectStart),k.redirectEnd=iS(k.redirectEnd),k.domainLookupEnd=iS(k.domainLookupEnd),k.connectStart=iS(k.connectStart),k.connectEnd=iS(k.connectEnd),k.responseStart=iS(k.responseStart), k.secureConnectionStart=iS(k.secureConnectionStart),k.domainLookupStart=iS(k.domainLookupStart),k.isPerformanceNavigationTiming=!0,Y=k):Y=N4.timing}else Y=g.rL("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(N4.timing)):N4.timing;return Y}; iS=function(Y){return Math.round(Z2()+Y)}; Z2=function(){return(g.rL("csi_use_time_origin")||g.rL("csi_use_time_origin_tvhtml5"))&&N4.timeOrigin?Math.floor(N4.timeOrigin):N4.timing.navigationStart}; rV=function(Y,u){Tc("_start",Y,u)}; M4=function(Y,u){if(!g.rL("web_csi_action_sampling_enabled")||!$A(u).actionDisabled){var n=m3(u||"");S6(n.info,Y);Y.loadType&&(n=Y.loadType,YI(u).loadType=n);S6(Dy7(u),Y);n=Uz(u);u=$A(u).cttAuthInfo;Cg().info(Y,n,u)}}; e3G=function(){var Y,u,n,U;return((U=Bh().resolve(j6(U0))==null?void 0:(Y=kH())==null?void 0:(u=Y.loggingHotConfig)==null?void 0:(n=u.csiConfig)==null?void 0:n.debugTicks)!=null?U:[]).map(function(k){return Object.values(k)[0]})}; Tc=function(Y,u,n){if(!g.rL("web_csi_action_sampling_enabled")||!$A(n).actionDisabled){var U=Uz(n),k;if(k=g.rL("web_csi_debug_sample_enabled")&&U){(Bh().resolve(j6(U0))==null?0:kH())&&!bXY&&(bXY=!0,Tc("gcfl",(0,g.j2)(),n));var m,X,S;k=(Bh().resolve(j6(U0))==null?void 0:(m=kH())==null?void 0:(X=m.loggingHotConfig)==null?void 0:(S=X.csiConfig)==null?void 0:S.debugSampleWeight)||0;if(m=k!==0)b:{m=e3G();if(m.length>0)for(X=0;Xn.duration?U:n},{duration:0}))&&u.startTime>0&&u.responseEnd>0&&(Tc("wffs",iS(u.startTime)),Tc("wffe",iS(u.responseEnd)))}; V2B=function(Y,u,n){N4&&N4.measure&&(Y.startsWith("measure_")||(Y="measure_"+Y),n?N4.measure(Y,u,n):u?N4.measure(Y,u):N4.measure(Y))}; OXe=function(Y){var u=sz("aft",Y);if(u)return u;u=g.z6((Y||"")+"TIMING_AFT_KEYS",["ol"]);for(var n=u.length,U=0;U0&&M4(u);u={isNavigation:!0,actionType:Xn(g.z6("TIMING_ACTION"))};var n=g.z6("PREVIOUS_ACTION");n&&(u.previousAction=Xn(n));if(n=g.z6("CLIENT_PROTOCOL"))u.httpProtocol=n;if(n=g.z6("CLIENT_TRANSPORT"))u.transportProtocol=n;(n=g.sC())&&n!=="UNDEFINED_CSN"&&(u.clientScreenNonce=n);n=gae();if(n===1||n===-1)u.isVisible= !0;n=YI().loadType==="cold";var U=R30();n||(n=U.yt_lt==="cold");if(n){u.loadType="cold";n=R30();U=Whc();var k=Z2(),m=g.z6("CSI_START_TIMESTAMP_MILLIS",0);m>0&&!g.rL("embeds_web_enable_csi_start_override_killswitch")&&(k=m);k&&(Tc("srt",U.responseStart),n.prerender!==1&&rV(k));n=q$e();n>0&&Tc("fpt",n);n=Whc();n.isPerformanceNavigationTiming&&M4({performanceNavigationTiming:!0},void 0);Tc("nreqs",n.requestStart,void 0);Tc("nress",n.responseStart,void 0);Tc("nrese",n.responseEnd,void 0);n.redirectEnd- n.redirectStart>0&&(Tc("nrs",n.redirectStart,void 0),Tc("nre",n.redirectEnd,void 0));n.domainLookupEnd-n.domainLookupStart>0&&(Tc("ndnss",n.domainLookupStart,void 0),Tc("ndnse",n.domainLookupEnd,void 0));n.connectEnd-n.connectStart>0&&(Tc("ntcps",n.connectStart,void 0),Tc("ntcpe",n.connectEnd,void 0));n.secureConnectionStart>=Z2()&&n.connectEnd-n.secureConnectionStart>0&&(Tc("nstcps",n.secureConnectionStart,void 0),Tc("ntcpe",n.connectEnd,void 0));N4&&"getEntriesByType"in N4&&yEe();n=[];if(document.querySelector&& N4&&N4.getEntriesByName)for(var X in A$)A$.hasOwnProperty(X)&&(U=A$[X],HXe(X,U)&&n.push(U));if(n.length>0)for(u.resourceInfo=[],X=g.A(n),n=X.next();!n.done;n=X.next())u.resourceInfo.push({resourceCache:n.value})}M4(u);u=ng();u.preLoggedGelInfos||(u.preLoggedGelInfos=[]);X=u.preLoggedGelInfos;u=Dy7();n=void 0;for(U=0;U-1&&(delete cc["@type"],O=cc);K&&Y.j.has(K)&&Y.j.delete(K);((uQ=u.config)==null?0:uQ.HpJ)&&Kg(u.config.HpJ);if(O||(sq=Y.X)==null||!sq.dzJ(u.input,u.w_)){Du.qF(15);break}return g.D(Du,Y.X.IQW(u.input,u.w_),16);case 16:O=Du.K;case 15:return To7(Y, O,u),((CR=u.config)==null?0:CR.NpF)&&Kg(u.config.NpF),U(),Du.return(O||void 0)}})}; fXe=function(Y,u){a:{Y=Y.pK;var n,U=(n=g.z(u,Khe))==null?void 0:n.signal;if(U&&Y.wv&&(n=Y.wv[U])){var k=n();break a}var m;if((n=(m=g.z(u,pF7))==null?void 0:m.request)&&Y.D7&&(m=Y.D7[n])){k=m();break a}for(k in u)if(Y.XW[k]&&(u=Y.XW[k])){k=u();break a}k=void 0}if(k!==void 0)return Promise.resolve(k)}; Not=function(Y,u,n){var U,k,m,X,S,C,f;return g.l(function(Q){if(Q.j==1){m=((U=u)==null?void 0:(k=U.Ht)==null?void 0:k.identity)||Sv;C=(X=u)==null?void 0:(S=X.Ht)==null?void 0:S.sessionIndex;var N=g.R1(Y.K.t7(m,{sessionIndex:C}));return g.D(Q,N,2)}f=Q.K;return Q.return(Promise.resolve(Object.assign({},t2d(n),f)))})}; Q90=function(Y,u,n){var U,k=(u==null?void 0:(U=u.Ht)==null?void 0:U.identity)||Sv,m;u=u==null?void 0:(m=u.Ht)==null?void 0:m.sessionIndex;Y=Y.K.t7(k,{sessionIndex:u});return Object.assign({},t2d(n),Y)}; D2=function(){}; xI=function(){}; lS=function(Y){this.W=Y}; h$=function(){}; wV=function(){}; WD=function(){}; eP=function(){}; g.bS=function(Y,u){var n=g.It.apply(2,arguments);Y=Y===void 0?0:Y;g.zP.call(this,u,n);this.errorType=Y;Object.setPrototypeOf(this,this.constructor.prototype)}; IV=function(Y,u,n,U){this.K=Y;this.j=u;this.X=n;this.G=U}; MvW=function(Y,u,n){if(Y.K){var U=Qi(Ko(u,"key"))||"/UNKNOWN_PATH";Y.K.start(U)}U=n;g.rL("wug_networking_gzip_request")&&(U=wPu(n));var k;return new ((k=Y.G)!=null?k:window.Request)(u,U)}; g.gV=function(Y,u){if(!zc){var n=Bh();KA(n,{v8:s9t,SD:IV});var U={XW:{feedbackEndpoint:OH(h$),modifyChannelNotificationPreferenceEndpoint:OH(wV),playlistEditEndpoint:OH(WD),shareEntityEndpoint:OH(lS),subscribeEndpoint:OH(D2),unsubscribeEndpoint:OH(xI),webPlayerShareEntityServiceEndpoint:OH(eP)}},k=HY.getInstance(),m={};k&&(m.client_location=k);Y===void 0&&(Y=HJc());u===void 0&&(u=n.resolve(s9t));CDG(U,u,Y,m);KA(n,{v8:d3A,CX:cD.instance});zc=n.resolve(d3A)}return zc}; GlY=function(Y){var u=new fJ;if(Y.interpreterJavascript){var n=Brd(Y.interpreterJavascript);n=dS(n).toString();var U=new Se;wy(U,6,n);tP(u,Se,1,U,F$)}else Y.interpreterUrl&&(n=G6(Y.interpreterUrl),n=UW(n).toString(),U=new CJ,wy(U,4,n),tP(u,CJ,2,U,F$));Y.interpreterHash&&WZ(u,3,Y.interpreterHash,F$);Y.program&&WZ(u,4,Y.program,F$);Y.globalName&&WZ(u,5,Y.globalName,F$);Y.clientExperimentsStateBlob&&WZ(u,7,Y.clientExperimentsStateBlob,F$);return u}; Ez=function(Y){var u={};Y=Y.split("&");Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next())n=n.value.split("="),n.length===2&&(u[n[0]]=n[1]);return u}; omS=function(){if(g.rL("bg_st_hr"))return"havuokmhhs-0";var Y,u=((Y=performance)==null?void 0:Y.timeOrigin)||0;return"havuokmhhs-"+Math.floor(u)}; HD=function(Y){this.K=Y}; ADt=function(){return new Promise(function(Y){var u=window;u.ntpevasrs!==void 0?Y(new HD(u.ntpevasrs)):(u.ntpqfbel===void 0&&(u.ntpqfbel=[]),u.ntpqfbel.push(function(n){Y(new HD(n))}))})}; pNY=function(){if(ao()){var Y=g.z6("PLAYER_VARS",{});if(g.Zn(Y,"privembed",!1)!="1"&&!sSu(Y)){var u=function(){yL=!0;"google_ad_status"in window?IJ("DCLKSTAT",1):IJ("DCLKSTAT",2)}; try{g.kk(j9t,u)}catch(n){}KKY.push(g.WA.MX(function(){if(!(yL||"google_ad_status"in window)){try{if(j9t.toString()&&u){var n=""+g.SB(u),U=Mut[n];U&&g.a9(U)}}catch(k){}yL=!0;IJ("DCLKSTAT",3)}},5E3))}}}; VL=function(){var Y=Number(g.z6("DCLKSTAT",0));return isNaN(Y)?0:Y}; q4=function(Y,u,n){var U=this;this.network=Y;this.options=u;this.j=n;this.K=null;if(u.F8G){var k=new g.Nv;this.K=k.promise;g.$e.ytAtRC&&yT(function(){var m,X;return g.l(function(S){if(S.j==1){if(!g.$e.ytAtRC)return S.return();m=Oz(null);return g.D(S,Fn(U,m),2)}X=S.K;g.$e.ytAtRC&&g.$e.ytAtRC(JSON.stringify(X));g.KY(S)})},2); ADt().then(function(m){var X,S,C,f;return g.l(function(Q){if(Q.j==1)return m.bindInnertubeChallengeFetcher(function(N){return Fn(U,Oz(N))}),g.D(Q,qS(),2); X=Q.K;S=m.getLatestChallengeResponse();C=S.challenge;if(!C)throw Error("BGE_MACIL");f={challenge:C,aq:Ez(C),mI:X,bgChallenge:new fJ};k.resolve(f);m.registerChallengeFetchedCallback(function(N){N=N.challenge;if(!N)throw Error("BGE_MACR");N={challenge:N,aq:Ez(N),mI:X,bgChallenge:new fJ};U.K=Promise.resolve(N)}); g.KY(Q)})})}else u.preload&&LKM(this,new Promise(function(m){g.VT(0,function(){m(J$(U))},0)}))}; Oz=function(Y){var u={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};Y&&(u.interpreterHash=Y);return u}; J$=function(Y,u){u=u===void 0?0:u;var n,U,k,m,X,S,C,f,Q,N,Z,T;return g.l(function(r){switch(r.j){case 1:n=Oz(Ts().K);if(g.rL("att_fet_ks"))return g.pY(r,7),g.D(r,Fn(Y,n),9);g.pY(r,4);return g.D(r,tv7(Y,n),6);case 6:X=r.K;k=X.JSg;m=X.Vbk;U=X;g.Bc(r,3);break;case 4:return g.vc(r),g.Br(Error("Failed to fetch attestation challenge after "+(u+" attempts; not retrying for 24h."))),aV(Y,864E5),r.return({challenge:"",aq:{},mI:void 0,bgChallenge:void 0});case 9:U=r.K;if(!U)throw Error("Fetching Attestation challenge returned falsy"); if(!U.challenge)throw Error("Missing Attestation challenge");k=U.challenge;m=Ez(k);if("c1a"in m&&(!U.bgChallenge||!U.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Bc(r,3);break;case 7:S=g.vc(r);g.Br(S);u++;if(u>=5)return g.Br(Error("Failed to fetch attestation challenge after "+(u+" attempts; not retrying for 24h."))),aV(Y,864E5),r.return({challenge:"",aq:{},mI:void 0,bgChallenge:void 0});C=1E3*Math.pow(2,u-1)+Math.random()*1E3;return r.return(new Promise(function(K){g.VT(0, function(){K(J$(Y,u))},C)})); case 3:f=Number(m.t)||7200;aV(Y,f*1E3);Q=void 0;if(!("c1a"in m&&U.bgChallenge)){r.qF(10);break}N=GlY(U.bgChallenge);g.pY(r,11);return g.D(r,B2A(Ts(),N),13);case 13:g.Bc(r,12);break;case 11:return Z=g.vc(r),g.Br(Z),r.return({challenge:k,aq:m,mI:Q,bgChallenge:N});case 12:return g.pY(r,14),Q=new iJ({challenge:N,LR:{EP:"aGIf"}}),g.D(r,Q.Td,16);case 16:g.Bc(r,10);break;case 14:T=g.vc(r),g.Br(T),Q=void 0;case 10:return r.return({challenge:k,aq:m,mI:Q,bgChallenge:N})}})}; Fn=function(Y,u){var n;return g.l(function(U){n=Y.j;if(!n||n.XP())return U.return(Fn(Y.network,u));oV("att_pna",void 0,"attestation_challenge_fetch");return U.return(new Promise(function(k){n.Ik("publicytnetworkstatus-online",function(){Fn(Y.network,u).then(k)})}))})}; BoY=function(Y){if(!Y)throw Error("Fetching Attestation challenge returned falsy");if(!Y.challenge)throw Error("Missing Attestation challenge");var u=Y.challenge,n=Ez(u);if("c1a"in n&&(!Y.bgChallenge||!Y.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},Y,{JSg:u,Vbk:n})}; tv7=function(Y,u){var n,U,k,m,X;return g.l(function(S){switch(S.j){case 1:n=void 0,U=0,k={};case 2:if(!(U<5)){S.qF(4);break}if(!(U>0)){S.qF(5);break}k.Jl=1E3*Math.pow(2,U-1)+Math.random()*1E3;return g.D(S,new Promise(function(C){return function(f){g.VT(0,function(){f(void 0)},C.Jl)}}(k)),5); case 5:return g.pY(S,7),g.D(S,Fn(Y,u),9);case 9:return m=S.K,S.return(BoY(m));case 7:n=X=g.vc(S),X instanceof Error&&g.Br(X);case 8:U++;k={Jl:void 0};S.qF(2);break;case 4:throw n;}})}; LKM=function(Y,u){Y.K=u}; oHc=function(Y){var u,n,U;return g.l(function(k){if(k.j==1)return g.D(k,Promise.race([Y.K,null]),2);u=k.K;var m=J$(Y);Y.K=m;(n=u)==null||(U=n.mI)==null||U.dispose();g.KY(k)})}; aV=function(Y,u){function n(){var k;return g.l(function(m){k=U-Date.now();return k<1E3?g.D(m,oHc(Y),0):(yT(n,0,Math.min(k,6E4)),m.qF(0))})} var U=Date.now()+u;n()}; cDu=function(Y,u){return new Promise(function(n){g.VT(0,function(){n(u())},Y)})}; g.vH0=function(Y,u){var n;return g.l(function(U){var k=g.nR("yt.aba.att");return(n=k?k:q4.instance!==void 0?q4.instance.X.bind(q4.instance):null)?U.return(n("ENGAGEMENT_TYPE_PLAYBACK",Y,u)):U.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.RN0=function(){var Y;return(Y=(Y=g.nR("yt.aba.att2"))?Y:q4.instance!==void 0?q4.instance.G.bind(q4.instance):null)?Y():Promise.resolve(!1)}; x30=function(Y,u){var n=g.nR("ytDebugData.callbacks");n||(n={},g.Y$("ytDebugData.callbacks",n));if(g.rL("web_dd_iu")||D3u.includes(Y))n[Y]=u}; $I=function(){var Y=lXG;var u=u===void 0?[]:u;var n=n===void 0?[]:n;u=AHW.apply(null,[j17.apply(null,g.Zu(u))].concat(g.Zu(n)));this.store=pBB(Y,void 0,u)}; g.Y9=function(Y,u,n){for(var U=Object.assign({},Y),k=g.A(Object.keys(u)),m=k.next();!m.done;m=k.next()){m=m.value;var X=Y[m],S=u[m];if(S===void 0)delete U[m];else if(X===void 0)U[m]=S;else if(Array.isArray(S)&&Array.isArray(X))U[m]=n?[].concat(g.Zu(X),g.Zu(S)):S;else if(!Array.isArray(S)&&g.XG(S)&&!Array.isArray(X)&&g.XG(X))U[m]=g.Y9(X,S,n);else if(typeof S===typeof X)U[m]=S;else return u=new g.zP("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:m,ggW:X,updateValue:S}),g.tl(u), Y}return U}; un=function(Y){var u=this;Y=Y===void 0?[]:Y;this.K=[];this.X=this.j=0;this.G=void 0;this.totalLength=0;Y.forEach(function(n){u.append(n)})}; hNY=function(Y,u){return Y.K.length===0?!1:(Y=Y.K[Y.K.length-1])&&Y.buffer===u.buffer&&Y.byteOffset+Y.length===u.byteOffset}; nG=function(Y,u){u=g.A(u.K);for(var n=u.next();!n.done;n=u.next())Y.append(n.value)}; UV=function(Y,u,n){return Y.split(u).il.split(n).uo}; k9=function(Y){Y.G=void 0;Y.j=0;Y.X=0}; mc=function(Y,u,n){Y.isFocused(u);return u-Y.X+n<=Y.K[Y.j].length}; wNe=function(Y){if(!Y.G){var u=Y.K[Y.j];Y.G=new DataView(u.buffer,u.byteOffset,u.length)}return Y.G}; WKu=function(Y,u,n){u=u===void 0?0:u;n=n===void 0?-1:n;if(!Y.totalLength||!n)return new DataView(new ArrayBuffer(0));n<0&&(n=Y.totalLength-u);Y.focus(u);if(!mc(Y,u,n)){var U=Y.j,k=Y.X;Y.focus(u+n-1);k=new Uint8Array(Y.X+Y.K[Y.j].length-k);for(var m=0,X=U;X<=Y.j;X++)k.set(Y.K[X],m),m+=Y.K[X].length;Y.K.splice(U,Y.j-U+1,k);k9(Y);Y.focus(u)}U=Y.K[Y.j];return new DataView(U.buffer,U.byteOffset+u-Y.X,n)}; X5=function(Y,u,n){Y=WKu(Y,u===void 0?0:u,n===void 0?-1:n);return new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength)}; Pl=function(Y,u,n){Y=X5(Y,u===void 0?0:u,n===void 0?-1:n);u=new Uint8Array(Y.length);try{u.set(Y)}catch(U){for(n=0;n>10;m=56320|m&1023}Qw[k++]=m}}m=String.fromCharCode.apply(String,Qw); k<1024&&(m=m.substring(0,k));n.push(m)}return n.join("")}; Tt=function(Y,u){var n;if((n=Z3)==null?0:n.encodeInto)return u=Z3.encodeInto(Y,u),u.read>6|192:((k&64512)===55296&&U+1>18|240,u[n++]=k>>12&63|128):u[n++]=k>>12|224,u[n++]=k>>6&63|128),u[n++]=k&63|128)}return n}; rF=function(Y){if(Z3)return Z3.encode(Y);var u=new Uint8Array(Math.ceil(Y.length*1.2)),n=Tt(Y,u);u.lengthn&&(u=u.subarray(0,n));return u}; MJ=function(Y){this.K=Y;this.pos=0;this.j=-1}; sV=function(Y){var u=Si(Y.K,Y.pos);++Y.pos;if(u<128)return u;for(var n=u&127,U=1;u>=128;)u=Si(Y.K,Y.pos),++Y.pos,U*=128,n+=(u&127)*U;return n}; dF=function(Y,u){var n=Y.j;for(Y.j=-1;Y.pos+1<=Y.K.totalLength;){n<0&&(n=sV(Y));var U=n>>3,k=n&7;if(U===u)return!0;if(U>u){Y.j=n;break}n=-1;switch(k){case 0:sV(Y);break;case 1:Y.pos+=8;break;case 2:U=sV(Y);Y.pos+=U;break;case 5:Y.pos+=4}}return!1}; Gt=function(Y,u){if(dF(Y,u))return sV(Y)}; IXu=function(Y,u){if(dF(Y,u))return u=X5(Y.K,Y.pos,8),Y.pos+=8,(new DataView(u.buffer,u.byteOffset,u.byteLength)).getFloat64(0,!0)}; AC=function(Y,u){if(dF(Y,u))return!!sV(Y)}; ji=function(Y,u){if(dF(Y,u)){u=sV(Y);var n=X5(Y.K,Y.pos,u);Y.pos+=u;return n}}; KG=function(Y,u){if(Y=ji(Y,u))return g.NJ(Y)}; pG=function(Y,u,n){if(Y=ji(Y,u))return n(new MJ(new un([Y])))}; LG=function(Y,u){for(var n=[];dF(Y,u);)n.push(sV(Y));return n.length?n:void 0}; tC=function(Y,u,n){for(var U=[],k;k=ji(Y,u);)U.push(n(new MJ(new un([k]))));return U.length?U:void 0}; Bl=function(Y,u){Y=Y instanceof Uint8Array?new un([Y]):Y;return u(new MJ(Y))}; zN0=function(Y,u){Y=new Uint8Array(Y);u&&Y.set(u);return Y}; gHY=function(Y){this.pos=0;this.j=[];this.K=zN0(Y===void 0?4096:Y);this.view=new DataView(this.K.buffer,this.K.byteOffset,this.K.byteLength)}; op=function(Y,u){u=Y.pos+u;if(!(Y.K.length>=u)){for(var n=Y.K.length*2;n268435455){op(Y,4);for(var n=u&1073741823,U=0;U<4;U++)Y.view.setUint8(Y.pos,n&127|128),n>>=7,Y.pos+=1;u=Math.floor(u/268435456)}for(op(Y,4);u>127;)Y.view.setUint8(Y.pos,u&127|128),u>>=7,Y.pos+=1;Y.view.setUint8(Y.pos,u);Y.pos+=1}; vl=function(Y,u,n){n!==void 0&&(cl(Y,u*8),cl(Y,n))}; Rp=function(Y,u,n){n!==void 0&&vl(Y,u,n?1:0)}; gF=function(Y,u,n){n!==void 0&&(cl(Y,u*8+2),u=n.length,cl(Y,u),op(Y,u),Y.K.set(n,Y.pos),Y.pos+=u)}; EV=function(Y,u,n){n!==void 0&&(EHd(Y,u,Math.ceil(Math.log2(n.length*4+2)/7)),op(Y,n.length*1.2),u=Tt(n,Y.K.subarray(Y.pos)),Y.pos+u>Y.K.length&&(op(Y,u),u=Tt(n,Y.K.subarray(Y.pos))),Y.pos+=u,Hz7(Y))}; EHd=function(Y,u,n){n=n===void 0?2:n;cl(Y,u*8+2);Y.j.push(Y.pos);Y.j.push(n);Y.pos+=n}; Hz7=function(Y){for(var u=Y.j.pop(),n=Y.j.pop(),U=Y.pos-n-u;u--;){var k=u?128:0;Y.view.setUint8(n++,U&127|k);U>>=7}}; Hl=function(Y,u,n,U,k){n&&(EHd(Y,u,k===void 0?3:k),U(Y,n),Hz7(Y))}; g.yw=function(Y,u){var n=new gHY(4096);u(n,Y);return new Uint8Array(n.K.buffer,n.K.byteOffset,n.pos)}; g.Vw=function(Y){var u=new MJ(new un([vi(decodeURIComponent(Y))]));Y=KG(u,2);u=Gt(u,4);var n=yDY[u];if(typeof n==="undefined")throw Y=new g.zP("Failed to recognize field number",{name:"EntityKeyHelperError",F_G:u}),g.tl(Y),Y;return{aJ:u,entityType:n,entityId:Y}}; g.OV=function(Y,u){var n=n===void 0?0:n;var U=new gHY;gF(U,2,rF(Y));Y=VvY[u];if(typeof Y==="undefined")throw n=new g.zP("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:u}),g.tl(n),n;vl(U,4,Y);vl(U,5,1);u=new Uint8Array(U.K.buffer,U.K.byteOffset,U.pos);return encodeURIComponent(g.oE(u,n))}; F5=function(Y,u,n,U){if(U===void 0)return U=Object.assign({},Y[u]||{}),n=(delete U[n],U),U={},Object.assign({},Y,(U[u]=n,U));var k={},m={};return Object.assign({},Y,(m[u]=Object.assign({},Y[u],(k[n]=U,k)),m))}; Oz7=function(Y,u,n,U,k){var m=Y[u];if(m==null||!m[n])return Y;U=g.Y9(m[n],U,k==="REPEATED_FIELDS_MERGE_OPTION_APPEND");k={};m={};return Object.assign({},Y,(m[u]=Object.assign({},Y[u],(k[n]=U,k)),m))}; FKt=function(Y,u){Y=Y===void 0?{}:Y;switch(u.type){case "ENTITY_LOADED":return u.payload.reduce(function(U,k){var m,X=(m=k.options)==null?void 0:m.persistenceOption;if(X&&X!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&X!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return U;if(!k.entityKey)return g.tl(Error("Missing entity key")),U;if(k.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!k.payload)return k=new g.zP("REPLACE entity mutation is missing a payload",{entityKey:k.entityKey}),g.tl(k),U;var S=g.UF(k.payload); return F5(U,S,k.entityKey,k.payload[S])}if(k.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{k=k.entityKey;try{var C=g.Vw(k).entityType;S=F5(U,C,k);break a}catch(N){if(N instanceof Error){k=new g.zP("Failed to deserialize entity key",{entityKey:k,originalMessage:N.message});g.tl(k);S=U;break a}throw N;}S=void 0}return S}if(k.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!k.payload)return k=new g.zP("UPDATE entity mutation is missing a payload",{entityKey:k.entityKey}),g.tl(k),U;S=g.UF(k.payload);var f,Q;return Oz7(U, S,k.entityKey,k.payload[S],(f=k.fieldMask)==null?void 0:(Q=f.mergeOptions)==null?void 0:Q.repeatedFieldsMergeOption)}return U},Y); case "REPLACE_ENTITY":var n=u.payload;return F5(Y,n.entityType,n.key,n.tW);case "REPLACE_ENTITIES":return Object.keys(u.payload).reduce(function(U,k){var m=u.payload[k];return Object.keys(m).reduce(function(X,S){return F5(X,k,S,m[S])},U)},Y); case "UPDATE_ENTITY":return n=u.payload,Oz7(Y,n.entityType,n.key,n.tW,n.jng);default:return Y}}; JC=function(Y,u,n){return Y[u]?Y[u][n]||null:null}; qJ=function(Y){return window.Int32Array?new Int32Array(Y):Array(Y)}; Uy=function(Y){g.e.call(this);this.counter=[0,0,0,0];this.j=new Uint8Array(16);this.K=16;if(!JDM){var u,n=new Uint8Array(256),U=new Uint8Array(256);var k=1;for(u=0;u<256;u++)n[k]=u,U[u]=k,k^=k<<1^(k>>7&&283);ap=new Uint8Array(256);$9=qJ(256);Yc=qJ(256);u3=qJ(256);nm=qJ(256);for(var m=0;m<256;m++){k=m?U[255^n[m]]:0;k^=k<<1^k<<2^k<<3^k<<4;k=k&255^k>>>8^99;ap[m]=k;u=k<<1^(k>>7&&283);var X=u^k;$9[m]=u<<24|k<<16|k<<8|X;Yc[m]=X<<24|$9[m]>>>8;u3[m]=k<<24|Yc[m]>>>8;nm[m]=k<<24|u3[m]>>>8}JDM=!0}k=qJ(44);for(n= 0;n<4;n++)k[n]=Y[4*n]<<24|Y[4*n+1]<<16|Y[4*n+2]<<8|Y[4*n+3];for(U=1;n<44;n++)Y=k[n-1],n%4||(Y=(ap[Y>>16&255]^U)<<24|ap[Y>>8&255]<<16|ap[Y&255]<<8|ap[Y>>>24],U=U<<1^(U>>7&&283)),k[n]=k[n-4]^Y;this.key=k}; q00=function(Y){for(var u=Y.key,n=Y.counter[0]^u[0],U=Y.counter[1]^u[1],k=Y.counter[2]^u[2],m=Y.counter[3]^u[3],X=3;X>=0&&!(Y.counter[X]=-~Y.counter[X]);X--);for(var S,C,f=4;f<40;)X=$9[n>>>24]^Yc[U>>16&255]^u3[k>>8&255]^nm[m&255]^u[f++],S=$9[U>>>24]^Yc[k>>16&255]^u3[m>>8&255]^nm[n&255]^u[f++],C=$9[k>>>24]^Yc[m>>16&255]^u3[n>>8&255]^nm[U&255]^u[f++],m=$9[m>>>24]^Yc[n>>16&255]^u3[U>>8&255]^nm[k&255]^u[f++],n=X,U=S,k=C;Y=Y.j;X=u[40];Y[0]=ap[n>>>24]^X>>>24;Y[1]=ap[U>>16&255]^X>>16&255;Y[2]=ap[k>>8&255]^ X>>8&255;Y[3]=ap[m&255]^X&255;X=u[41];Y[4]=ap[U>>>24]^X>>>24;Y[5]=ap[k>>16&255]^X>>16&255;Y[6]=ap[m>>8&255]^X>>8&255;Y[7]=ap[n&255]^X&255;X=u[42];Y[8]=ap[k>>>24]^X>>>24;Y[9]=ap[m>>16&255]^X>>16&255;Y[10]=ap[n>>8&255]^X>>8&255;Y[11]=ap[U&255]^X&255;X=u[43];Y[12]=ap[m>>>24]^X>>>24;Y[13]=ap[n>>16&255]^X>>16&255;Y[14]=ap[U>>8&255]^X>>8&255;Y[15]=ap[k&255]^X&255}; Xe=function(){if(!kc&&!g.gD){if(mz)return mz;var Y;mz=(Y=window.crypto)==null?void 0:Y.subtle;var u,n,U;if(((u=mz)==null?0:u.importKey)&&((n=mz)==null?0:n.sign)&&((U=mz)==null?0:U.encrypt))return mz;mz=void 0}}; g.Cm=function(Y){var u=Xe();u&&(this.K=new Pw(Y,u));this.j=new g.SI(Y)}; Pw=function(Y,u){this.j=Y;this.subtleCrypto=u}; aXt=function(Y,u,n){var U,k;return g.l(function(m){switch(m.j){case 1:if(Y.K){m.qF(2);break}return g.D(m,Y.subtleCrypto.importKey("raw",Y.j,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:Y.K=m.K;case 2:return U={name:"AES-CTR",counter:n,length:128},g.D(m,Y.subtleCrypto.encrypt(U,Y.K,u),4);case 4:return k=m.K,m.return(new Uint8Array(k))}})}; g.SI=function(Y){this.j=Y}; fm=function(Y){this.J=new Uint8Array(64);this.X=new Uint8Array(64);this.G=0;this.W=new Uint8Array(64);this.j=0;this.J.set(Y);this.X.set(Y);for(Y=0;Y<64;Y++)this.J[Y]^=92,this.X[Y]^=54;this.reset()}; $3B=function(Y,u,n){for(var U=Y.S,k=Y.K[0],m=Y.K[1],X=Y.K[2],S=Y.K[3],C=Y.K[4],f=Y.K[5],Q=Y.K[6],N=Y.K[7],Z,T,r,K=0;K<64;)K<16?(U[K]=r=u[n]<<24|u[n+1]<<16|u[n+2]<<8|u[n+3],n+=4):(Z=U[K-2],T=U[K-15],r=U[K-7]+U[K-16]+((Z>>>17|Z<<15)^(Z>>>19|Z<<13)^Z>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),U[K]=r),Z=N+QR[K]+r+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&f^~C&Q),T=((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+(k&m^k&X^m&X),N=Z+T,S+=Z,K++,K<16?(U[K]=r=u[n]<<24|u[n+1]<<16|u[n+2]<<8|u[n+3],n+=4):(Z= U[K-2],T=U[K-15],r=U[K-7]+U[K-16]+((Z>>>17|Z<<15)^(Z>>>19|Z<<13)^Z>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),U[K]=r),Z=Q+QR[K]+r+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&C^~S&f),T=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&k^N&m^k&m),Q=Z+T,X+=Z,K++,K<16?(U[K]=r=u[n]<<24|u[n+1]<<16|u[n+2]<<8|u[n+3],n+=4):(Z=U[K-2],T=U[K-15],r=U[K-7]+U[K-16]+((Z>>>17|Z<<15)^(Z>>>19|Z<<13)^Z>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),U[K]=r),Z=f+QR[K]+r+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&S^ ~X&C),T=((Q>>>2|Q<<30)^(Q>>>13|Q<<19)^(Q>>>22|Q<<10))+(Q&N^Q&k^N&k),f=Z+T,m+=Z,K++,K<16?(U[K]=r=u[n]<<24|u[n+1]<<16|u[n+2]<<8|u[n+3],n+=4):(Z=U[K-2],T=U[K-15],r=U[K-7]+U[K-16]+((Z>>>17|Z<<15)^(Z>>>19|Z<<13)^Z>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),U[K]=r),Z=C+QR[K]+r+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&X^~m&S),T=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&Q^f&N^Q&N),r=N,N=S,S=r,r=Q,Q=X,X=r,r=f,f=m,m=r,C=k+Z,k=Z+T,K++;Y.K[0]=k+Y.K[0]|0;Y.K[1]=m+Y.K[1]|0;Y.K[2]=X+Y.K[2]|0;Y.K[3]= S+Y.K[3]|0;Y.K[4]=C+Y.K[4]|0;Y.K[5]=f+Y.K[5]|0;Y.K[6]=Q+Y.K[6]|0;Y.K[7]=N+Y.K[7]|0}; upe=function(Y){var u=new Uint8Array(32),n=64-Y.j;Y.j>55&&(n+=64);var U=new Uint8Array(n);U[0]=128;for(var k=Y.G*8,m=1;m<9;m++){var X=k%256;U[n-m]=X;k=(k-X)/256}Y.update(U);for(n=0;n<8;n++)u[n*4]=Y.K[n]>>>24,u[n*4+1]=Y.K[n]>>>16&255,u[n*4+2]=Y.K[n]>>>8&255,u[n*4+3]=Y.K[n]&255;YLA(Y);return u}; YLA=function(Y){Y.K=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];Y.S=[];Y.S.length=64;Y.G=0;Y.j=0}; nkG=function(Y){this.K=Y}; U9W=function(Y,u,n){Y=new fm(Y.K);Y.update(u);Y.update(n);u=upe(Y);Y.update(Y.J);Y.update(u);u=upe(Y);Y.reset();return u}; kSA=function(Y){this.j=Y}; m9B=function(Y,u,n,U){var k,m,X;return g.l(function(S){switch(S.j){case 1:if(Y.K){S.qF(2);break}return g.D(S,U.importKey("raw",Y.j,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:Y.K=S.K;case 2:return k=new Uint8Array(u.length+n.length),k.set(u),k.set(n,u.length),m={name:"HMAC",hash:"SHA-256"},g.D(S,U.sign(m,Y.K,k),4);case 4:return X=S.K,S.return(new Uint8Array(X))}})}; XhW=function(Y,u,n){Y.X||(Y.X=new nkG(Y.j));return U9W(Y.X,u,n)}; PaB=function(Y,u,n){var U,k;return g.l(function(m){if(m.j==1){U=Xe();if(!U)return m.return(XhW(Y,u,n));g.pY(m,3);return g.D(m,m9B(Y,u,n,U),5)}if(m.j!=3)return m.return(m.K);k=g.vc(m);g.Br(k);kc=!0;return m.return(XhW(Y,u,n))})}; CaM=function(Y){for(var u="",n=0;n=0||Gb(Y,0,"gad_source",Y.search(AQ))>=0}; M6M=function(){this.K=new Map}; d9Y=function(Y,u){var n=Bh().resolve(sBB);if(r2B(u)){var U=jV(u,"gclid");u={handleEvent:function(S){Y&&!Y.closed&&typeof Y.postMessage==="function"&&S&&S.origin&&S.source===Y&&S.data&&S.data.action==="gcl_setup"&&Y.postMessage(Object.assign({},{action:"gcl_transfer"},U&&{gclid:U},{gadSource:2}),S.origin)}}; for(var k=g.A(n.K),m=k.next();!m.done;m=k.next()){var X=g.A(m.value);m=X.next().value;X=X.next().value;if(m.closed)try{window.removeEventListener("message",X),n.K.delete(m)}catch(S){g.tl(S)}}Y&&n.K.size<15&&(n.K.set(Y,u),window.addEventListener("message",u))}}; Ng=function(Y,u,n){if(!u)return Y.length>=1?Y[Y.length-1]:null;for(var U=g.A(Y),k=U.next();!k.done;k=U.next())if(k=k.value,k.width&&k.height&&(n&&k.width>=u||!n&&k.height>=u))return k;for(u=Y.length-1;u>=0;u--)if(n&&Y[u].width||!n&&Y[u].height)return Y[u];return Y[0]}; i3=function(){this.state=1;this.mI=null;this.uE=void 0}; A2G=function(Y,u,n,U,k,m){var X=X===void 0?"trayride":X;n?(Y.Ve(2),g.kk(g.Aw(n),function(){if(window[X])GSu(Y,U,X,k);else{Y.Ve(3);var S=rwt(n),C=document.getElementById(S);C&&(ZNM(S),C.parentNode.removeChild(C));g.Br(new g.zP("BL:ULB",""+n))}},m)):u?(m=g.rh("SCRIPT"),u instanceof sW?(m.textContent=dS(u),Gr(m)):m.textContent=u,m.nonce=M5(document),document.head.appendChild(m),document.head.removeChild(m),window[X]?GSu(Y,U,X,k):(Y.Ve(4),g.Br(new g.zP("BL:ULBJ")))):g.Br(new g.zP("BL:ULV"))}; GSu=function(Y,u,n,U){Y.Ve(5);var k=!!Y.uE&&jB7.includes(g.fo(Y.uE)||"");try{var m=new iJ({program:u,globalName:n,LR:{disable:!g.rL("att_web_record_metrics")||!g.rL("att_skip_metrics_for_cookieless_domains_ks")&&k,EP:"aGIf"}});m.Td.then(function(){Y.Ve(6);U&&U(u)}); Y.J2(m)}catch(X){Y.Ve(7),X instanceof Error&&g.Br(X)}}; Zr=function(){var Y=g.nR("yt.abuse.playerAttLoader");return Y&&["bgvma","bgvmb","bgvmc"].every(function(u){return u in Y})?Y:null}; Th=function(){i3.apply(this,arguments)}; rZ=function(){}; Kk7=function(Y,u,n){for(var U=!1,k=g.A(Y.sP.entries()),m=k.next();!m.done;m=k.next())m=g.A(m.value).next().value,m.slotType==="SLOT_TYPE_PLAYER_BYTES"&&m.Ec==="core"&&(U=!0);if(U){a:if(!n){Y=g.A(Y.sP.entries());for(n=Y.next();!n.done;n=Y.next())if(U=g.A(n.value),n=U.next().value,U=U.next().value,n.slotType==="SLOT_TYPE_IN_PLAYER"&&n.Ec==="core"){n=U.layoutId;break a}n=void 0}n?u.No(n):Xj("No triggering layout ID available when attempting to mute.")}}; Mg=function(Y,u){this.Lu=Y;this.ib=u}; sy=function(){}; dZ=function(){}; Lkt=function(Y){g.e.call(this);var u=this;this.ZY=Y;this.K=new Map;Gh(this,"commandExecutorCommand",function(n,U,k){phY(u,n.commands,U,k)}); Gh(this,"clickTrackingParams",function(){})}; t6t=function(Y,u){Gh(Y,u.KQ(),function(n,U,k){u.q2(n,U,k)})}; Gh=function(Y,u,n){Y.gg();Y.K.get(u)&&g.tl(Error("Extension name "+u+" already registered"));Y.K.set(u,n)}; phY=function(Y,u,n,U){u=u===void 0?[]:u;Y.gg();var k=[],m=[];u=g.A(u);for(var X=u.next();!X.done;X=u.next())X=X.value,g.z(X,Blu)||g.z(X,oke)?k.push(X):m.push(X);k=g.A(k);for(u=k.next();!u.done;u=k.next())AM(Y,u.value,n,U);m=g.A(m);for(k=m.next();!k.done;k=m.next())AM(Y,k.value,n,U)}; AM=function(Y,u,n,U){Y.gg();u.loggingUrls&&c2M(Y,"loggingUrls",u.loggingUrls,n,U);u=g.A(Object.entries(u));for(var k=u.next();!k.done;k=u.next()){var m=g.A(k.value);k=m.next().value;m=m.next().value;k==="openPopupAction"?Y.ZY.get().Io("innertubeCommand",{openPopupAction:m}):k==="confirmDialogEndpoint"?Y.ZY.get().Io("innertubeCommand",{confirmDialogEndpoint:m}):vku.hasOwnProperty(k)||c2M(Y,k,m,n,U)}}; c2M=function(Y,u,n,U,k){if((Y=Y.K.get(u))&&typeof Y==="function")try{Y(n,U,k)}catch(m){g.tl(m)}else u=new g.zP("Unhandled field",u),g.Br(u)}; jI=function(Y,u,n){this.vM=Y;this.K=u;this.AJ=n;KA(Bh(),{v8:sBB,SD:M6M})}; Km=function(Y){this.value=Y}; pm=function(Y){this.value=Y}; Lm=function(Y){this.value=Y}; tM=function(Y){this.value=Y}; Bw=function(Y){this.value=Y}; oh=function(Y){this.value=Y}; cw=function(Y){this.value=Y}; vw=function(){Km.apply(this,arguments)}; Rh=function(Y){this.value=Y}; Dr=function(Y){this.value=Y}; xc=function(Y){this.value=Y}; l3=function(Y){this.value=Y}; hM=function(Y){this.value=Y}; wZ=function(Y){this.value=Y}; Ww=function(Y){this.value=Y}; eI=function(Y){this.value=Y}; b3=function(Y){this.value=Y}; Ih=function(Y){this.value=Y}; zh=function(){Km.apply(this,arguments)}; gZ=function(Y){this.value=Y}; Ey=function(Y){this.value=Y}; Hw=function(Y){this.value=Y}; yR=function(Y){this.value=Y}; VR=function(Y){this.value=Y}; Oy=function(Y){this.value=Y}; Fe=function(Y){this.value=Y}; JM=function(Y){this.value=Y}; qg=function(Y){this.value=Y}; ah=function(Y){this.value=Y}; $c=function(Y){this.value=Y}; Yj=function(Y){this.value=Y}; uG=function(Y){this.value=Y}; nj=function(Y){this.value=Y}; Uc=function(Y){this.value=Y}; kj=function(Y){this.value=Y}; mw=function(Y){this.value=Y}; XU=function(Y){this.value=Y}; Pn=function(Y){this.value=Y}; Sy=function(Y){this.value=Y}; Cj=function(Y){this.value=Y}; fj=function(Y){this.value=Y}; Ql=function(Y){this.value=Y}; NH=function(Y){this.value=Y}; iG=function(Y){this.value=Y}; Zi=function(Y){this.value=Y}; Tg=function(Y){this.value=Y}; rM=function(Y){this.value=Y}; MH=function(Y){this.value=Y}; sc=function(Y){this.value=Y}; dM=function(Y){this.value=Y}; Gg=function(Y){this.value=Y}; AW=function(Y){this.value=Y}; jy=function(Y){this.value=Y}; Kj=function(Y){this.value=Y}; pj=function(Y){this.value=Y}; Lj=function(Y){this.value=Y}; tW=function(Y){this.value=Y}; Bn=function(Y){this.value=Y}; o$=function(){Km.apply(this,arguments)}; cn=function(Y){this.value=Y}; vn=function(){Km.apply(this,arguments)}; R$=function(){Km.apply(this,arguments)}; Di=function(){Km.apply(this,arguments)}; xj=function(){Km.apply(this,arguments)}; lG=function(){Km.apply(this,arguments)}; hW=function(Y){this.value=Y}; wM=function(Y){this.value=Y}; Wn=function(Y){this.value=Y}; ey=function(Y){this.value=Y}; bG=function(Y){this.value=Y}; zg=function(Y,u,n){if(n&&!n.includes(Y.layoutType))return!1;u=g.A(u);for(n=u.next();!n.done;n=u.next())if(!I$(Y.clientMetadata,n.value))return!1;return!0}; gM=function(){return""}; RTd=function(Y,u){switch(Y){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return u(Y),8}}; Ec=function(Y,u,n,U){U=U===void 0?!1:U;r$.call(this,Y);this.Ku=n;this.Fc=U;this.args=[];u&&this.args.push(u)}; F=function(Y,u,n,U){U=U===void 0?!1:U;r$.call(this,Y);this.Ku=n;this.Fc=U;this.args=[];u&&this.args.push(u)}; Hn=function(Y){var u=new Map;Y.forEach(function(n){u.set(n.K(),n)}); this.K=u}; I$=function(Y,u){return Y.K.has(u)}; yl=function(Y,u){Y=Y.K.get(u);if(Y!==void 0)return Y.get()}; Vl=function(Y){return Array.from(Y.K.keys())}; Oc=function(Y,u,n){if(n&&n!==Y.slotType)return!1;u=g.A(u);for(n=u.next();!n.done;n=u.next())if(!I$(Y.clientMetadata,n.value))return!1;return!0}; x9A=function(Y){var u;return((u=D9u.get(Y))==null?void 0:u.TC)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; JW=function(Y,u){var n={type:u.slotType,controlFlowManagerLayer:l8Y.get(u.Ec)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};u.slotEntryTrigger&&(n.entryTriggerType=u.slotEntryTrigger.triggerType);u.slotPhysicalPosition!==1&&(n.slotPhysicalPosition=u.slotPhysicalPosition);if(Y){n.debugData={slotId:u.slotId};if(Y=u.slotEntryTrigger)n.debugData.slotEntryTriggerData=FU(Y);Y=u.slotFulfillmentTriggers;n.debugData.fulfillmentTriggerData=[];Y=g.A(Y);for(var U=Y.next();!U.done;U=Y.next())n.debugData.fulfillmentTriggerData.push(FU(U.value)); u=u.slotExpirationTriggers;n.debugData.expirationTriggerData=[];u=g.A(u);for(Y=u.next();!Y.done;Y=u.next())n.debugData.expirationTriggerData.push(FU(Y.value))}return n}; hTW=function(Y,u){var n={type:u.layoutType,controlFlowManagerLayer:l8Y.get(u.Ec)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Y&&(n.debugData={layoutId:u.layoutId});return n}; FU=function(Y,u){var n={type:Y.triggerType};u!=null&&(n.category=u);Y.triggeringSlotId!=null&&(n.triggerSourceData||(n.triggerSourceData={}),n.triggerSourceData.associatedSlotId=Y.triggeringSlotId);Y.triggeringLayoutId!=null&&(n.triggerSourceData||(n.triggerSourceData={}),n.triggerSourceData.associatedLayoutId=Y.triggeringLayoutId);return n}; whM=function(Y,u,n,U){u={opportunityType:u};Y&&(U||n)&&(U=g.dA(U||[],function(k){return JW(Y,k)}),u.debugData=Object.assign({},n&&n.length>0?{associatedSlotId:n}:{},U.length>0?{slots:U}:{})); return u}; a$=function(Y,u){return function(n){return WkY(qH(Y),u.slotId,u.slotType,u.slotPhysicalPosition,u.Ec,u.slotEntryTrigger,u.slotFulfillmentTriggers,u.slotExpirationTriggers,n.layoutId,n.layoutType,n.Ec)}}; WkY=function(Y,u,n,U,k,m,X,S,C,f,Q){return{adClientDataEntry:{slotData:JW(Y,{slotId:u,slotType:n,slotPhysicalPosition:U,Ec:k,slotEntryTrigger:m,slotFulfillmentTriggers:X,slotExpirationTriggers:S,clientMetadata:new Hn([])}),layoutData:hTW(Y,{layoutId:C,layoutType:f,Ec:Q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],ou:new Map,clientMetadata:new Hn([]),M1:{}})}}}; uA=function(Y){this.hJ=Y;Y=Math.random();var u=this.hJ.get();u=g.YF(u.L.Y().experiments,"html5_debug_data_log_probability");u=Number.isFinite(u)&&u>=0&&u<=1?u:0;this.K=Y1){g.Br(new g.zP("Exit already started",{current:Y.currentState}));var n=!1}else n=!0;if(!n)return!1;Y.currentState=2;Y.K=u;return!0}; mV=function(Y){if(Y.currentState!==2)return!1;Y.currentState=3;return!0}; Zw0=function(Y,u){var n=new Map;Y=g.A(Y);for(var U=Y.next();!U.done;U=Y.next()){U=U.value;if(U.layoutType==="LAYOUT_TYPE_MEDIA")var k="v";else U.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(k=yl(U.clientMetadata,"metadata_type_linked_in_player_layout_type"),k=k==="LAYOUT_TYPE_ENDCAP"||k==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":k==="LAYOUT_TYPE_SURVEY"?"s":k==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):k="u";n.set(U.layoutId,k);if(k==="u"){var m={};k=u;U=(m.c=U.layoutId,m);k.L.fG("uct",U)}}Y= u.hU();XC={contentCpn:Y,n3:n};U={};n=(U.ct=n.size,U.c=Y,U);u.L.fG("acc",n)}; T5A=function(){XC={contentCpn:"",n3:new Map}}; Pj=function(Y){var u;return(u=XC.n3.get(Y))!=null?u:"u"}; S3=function(Y,u,n){Y.L.fG(u,n);reW(Y)}; Mht=function(Y){var u=Y.layoutId,n=Y.H3;if(Y.gm){var U={};S3(Y.vM,"slso",(U.ec=u,U.is=n,U.ctp=Pj(u),U))}}; CI=function(Y){var u=Y.layoutId,n=Y.H3;if(Y.gm){var U={};S3(Y.vM,"slse",(U.ec=u,U.is=n,U.ctp=Pj(u),U))}}; scA=function(Y){var u=Y.layoutId,n=Y.H3,U=Y.vM;Y.gm&&(Y={},S3(U,"sleo",(Y.xc=u,Y.is=n,Y.ctp=Pj(u),Y)),reW(U))}; d7B=function(Y){var u=Y.cpn,n=Y.vM;Y=Y.H3;var U=n.hU(),k={};S3(n,"ce",(k.ec=u,k.ia=u!==U,k.r=XC.n3.has(u),k.is=Y,k.ctp=Pj(u),k))}; reW=function(Y){if(Y.hU()!==XC.contentCpn){var u={};u=(u.c=XC.contentCpn,u);Y.L.fG("ccm",u)}}; G3t=function(Y){var u=Y.cpn,n=Y.vM;Y=Y.H3;var U=n.hU(),k={};S3(n,"cx",(k.xc=u,k.ia=u!==U,k.r=XC.n3.has(u),k.is=Y,k.ctp=Pj(u),k))}; AeY=function(Y){this.params=Y;this.K=new Set}; jc7=function(Y,u,n){if(!Y.K.has(u)){Y.K.add(u);var U={};Y.params.Bc.bN(u,Object.assign({},n,(U.p_ac=Y.params.adCpn,U.p_isv=Y.params.L$&&Y.params.OX,U)))}}; Qg=function(Y,u,n){if(fI(Y.params.Bc.hJ.get(),!0)){var U=n.flush,k={};jc7(Y,u,(k.cts=n.currentTimeSec,k.f=U,k))}}; KLc=function(Y,u){this.vM=Y;this.hJ=u}; NO=function(Y){var u=[];if(Y){Y=g.A(Object.entries(Y));for(var n=Y.next();!n.done;n=Y.next()){var U=g.A(n.value);n=U.next().value;U=U.next().value;U!==void 0&&(U=typeof U==="boolean"?""+ +U:(""+U).replace(/[:,=]/g,"_"),u.push(n+"."+U))}}return u.join(";")}; g.iO=function(Y,u,n){u=u===void 0?{}:u;this.errorCode=Y;this.details=u;this.severity=n===void 0?0:n}; ZF=function(Y){return Y===1||Y===2}; TF=function(Y,u){u=u===void 0?0:u;if(Y instanceof g.iO)return Y;Y=Y&&Y instanceof Error?Y:Error(""+Y);ZF(u)?g.tl(Y):g.Br(Y);return new g.iO(u===1?"player.fatalexception":"player.exception",{name:""+Y.name,message:""+Y.message},u)}; p6S=function(Y,u){function n(){var U=g.It.apply(0,arguments);Y.removeEventListener("playing",n);u.apply(null,g.Zu(U))} Y.addEventListener("playing",n)}; rC=function(){var Y=g.nR("yt.player.utils.videoElement_");Y||(Y=g.rh("VIDEO"),g.Y$("yt.player.utils.videoElement_",Y));return Y}; MO=function(Y){var u=rC();return!!(u&&u.canPlayType&&u.canPlayType(Y))}; dC=function(Y){if(/opus/.test(Y)&&g.sP&&!jK("38")&&!g.Io())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(Y);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(Y);if(/webm/.test(Y)&&!ZJm())return!1;Y==='audio/mp4; codecs="mp4a.40.2"'&&(Y='video/mp4; codecs="avc1.4d401f"');return!!MO(Y)}; LLe=function(Y){try{var u=dC('video/mp4; codecs="avc1.42001E"')||dC('video/webm; codecs="vp9"');return(dC('audio/mp4; codecs="mp4a.40.2"')||dC('audio/webm; codecs="opus"'))&&(u||!Y)||MO('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(n){return"html5.missingapi"}}; GF=function(){var Y=rC();return!(!Y.webkitSupportsPresentationMode||typeof Y.webkitSetPresentationMode!=="function")}; An=function(){var Y=rC();try{var u=Y.muted;Y.muted=!u;return Y.muted!==u}catch(n){}return!1}; thS=function(){var Y;return((Y=navigator.connection)==null?void 0:Y.type)||""}; g.j3=function(){Kb.apply(this,arguments)}; KI=function(Y,u,n,U,k,m,X,S){this.sampleRate=Y===void 0?0:Y;this.numChannels=u===void 0?0:u;this.spatialAudioType=n===void 0?"SPATIAL_AUDIO_TYPE_NONE":n;this.K=U===void 0?!1:U;this.X=k;this.G=m;this.audioQuality=X===void 0?"AUDIO_QUALITY_UNKNOWN":X;this.j=S===void 0?!1:S}; ce0=function(Y,u){Hl(Y,2,u.EG,pI,3);Hl(Y,3,u.innertubeRequest,B5W,3);gF(Y,4,u.onesieUstreamerConfig);gF(Y,9,u.Ij);Hl(Y,10,u.NV,LI,3);Hl(Y,15,u.reloadPlaybackParams,oYS,3)}; RLY=function(Y,u){Hl(Y,1,u.formatId,tn,3);vl(Y,2,u.startTimeMs);vl(Y,3,u.durationMs);vl(Y,4,u.tV);vl(Y,5,u.sX);Hl(Y,9,u.B_V,vYA,3);Hl(Y,11,u.SGW,Bj,1);Hl(Y,12,u.Dr,Bj,1)}; D7m=function(Y,u){EV(Y,1,u.videoId);vl(Y,2,u.lmt)}; vYA=function(Y,u){if(u.nN)for(var n=0;n>31));vl(Y,16,u.Mk);vl(Y,17,u.detailedNetworkType);vl(Y,18,u.mR);vl(Y,19,u.Pn);vl(Y,21,u.jZF);vl(Y,23,u.pj);vl(Y,28,u.MC);vl(Y,29,u.VMa);vl(Y,34,u.visibility);n=u.playbackRate;if(n!==void 0){var U=new ArrayBuffer(4);(new Float32Array(U))[0]=n;n=(new Uint32Array(U))[0];if(n!==void 0)for(cl(Y,285),op(Y,4),U=0;U<4;)Y.view.setUint8(Y.pos,n&255),n>>=8,Y.pos+=1,U+=1}vl(Y,36,u.E0); Hl(Y,38,u.mediaCapabilities,WLG,3);vl(Y,39,u.Jba);vl(Y,40,u.QT);vl(Y,44,u.playerState);Rp(Y,46,u.Qt);vl(Y,48,u.Qx);vl(Y,50,u.V5);vl(Y,51,u.vN);vl(Y,54,u.qO);if(u.Om)for(n=0;n>31));EV(Y,2,u.message)}; VhM=function(Y,u){vl(Y,1,u.clientState);Hl(Y,2,u.uoz,Hw0,1)}; EYu=function(Y,u){gF(Y,1,u.Qaa);Hl(Y,2,u.BpG,ye7,3);Hl(Y,3,u.coldStartInfo,VhM,3)}; gYc=function(Y,u){vl(Y,1,u.type);gF(Y,2,u.value)}; zLc=function(Y,u){EV(Y,1,u.hl);EV(Y,12,u.deviceMake);EV(Y,13,u.deviceModel);vl(Y,16,u.clientName);EV(Y,17,u.clientVersion);EV(Y,18,u.osName);EV(Y,19,u.osVersion)}; OwG=function(Y,u){EV(Y,1,u.name);EV(Y,2,u.value)}; cj=function(Y,u){EV(Y,1,u.url);if(u.X1)for(var n=0;n55?"60":u>49?"50":u>39?"48":"")));this.qualityLabel=Y;this.K=C||"";this.primaries=f||""}; lO=function(Y,u){var n=Math.max(Y,u);Y=Math.min(Y,u);u=Wj[0];for(var U=0;U=Math.floor(m*16/9)*1.3||Y>=m*1.3)return u;u=k}return"tiny"}; Ik=function(Y,u,n){n=n===void 0?{}:n;this.id=Y;this.mimeType=u;n.NF>0||(n.NF=16E3);Object.assign(this,n);Y=g.A(this.id.split(";"));this.itag=Y.next().value;this.K=Y.next().value;this.containerType=e3(u);this.aV=bO[this.itag]||""}; zF=function(Y){return Y.aV==="9"||Y.aV==="("||Y.aV==="9h"||Y.aV==="(h"}; ccc=function(Y){return Y.aV==="H"||Y.aV==="h"}; gC=function(Y){return Y.aV==="9h"||Y.aV==="(h"}; vAA=function(Y){return!!Y.Ls&&!!Y.Ls.fairplay&&(Y.aV==="("||Y.aV==="(h"||Y.aV==="A"||Y.aV==="MEAC3")||EP&&!!Y.Ls&&Y.aV==="1e"}; yg=function(Y){return Y.aV==="1"||Y.aV==="1h"||EP&&Y.aV==="1e"}; Vg=function(Y){return Y.aV==="mac3"||Y.aV==="meac3"||Y.aV==="m"||Y.aV==="i"}; OP=function(Y){return Y.aV==="MAC3"||Y.aV==="MEAC3"||Y.aV==="M"||Y.aV==="I"}; g.FC=function(Y){return Y.containerType===1}; RH7=function(Y){return Y.aV==="("||Y.aV==="(h"||Y.aV==="H"||EP&&Y.aV==="1e"}; Jn=function(Y){return Y.mimeType==="application/x-mpegURL"}; g.qO=function(Y,u){return{itag:+Y.itag,lmt:u?0:Y.lastModified,xtags:Y.K||""}}; DGW=function(Y){var u=navigator.mediaCapabilities;if(u==null||!u.decodingInfo||Y.aV==="f")return Promise.resolve();var n={type:Y.audio&&Y.video?"file":"media-source"};Y.video&&(n.video={contentType:Y.mimeType,width:Y.video.width||640,height:Y.video.height||360,bitrate:Y.NF*8||1E6,framerate:Y.video.fps||30});Y.audio&&(n.audio={contentType:Y.mimeType,channels:""+(Y.audio.numChannels||2),bitrate:Y.NF*8||128E3,samplerate:Y.audio.sampleRate||44100});return u.decodingInfo(n).then(function(U){Y.j=U})}; ak=function(Y){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(Y)}; $T=function(Y){return/(vp9|vp09|vp8|avc1|av01)/.test(Y)}; Y6=function(Y){return Y.includes("vtt")||Y.includes("text/mp4")}; e3=function(Y){return Y.indexOf("/mp4")>=0?1:Y.indexOf("/webm")>=0?2:Y.indexOf("/x-flv")>=0?3:Y.indexOf("/vtt")>=0?4:0}; u$=function(Y,u,n,U,k,m,X){var S=new KI;u in g.hn||(u="small");u==="light"&&(u="tiny");U&&k?(k=Number(k),U=Number(U)):(k=g.hn[u],U=Math.round(k*16/9));m=new wC(U,k,0,null,void 0,u,m,X);Y=unescape(Y.replace(/"/g,'"'));return new Ik(n,Y,{audio:S,video:m})}; nh=function(Y){var u="id="+Y.id;Y.video&&(u+=", res="+Y.video.qualityLabel);var n,U;return u+", byterate=("+((n=Y.Au)==null?void 0:n.toFixed(0))+", "+((U=Y.NF)==null?void 0:U.toFixed(0))+")"}; Uw=function(Y,u){return{start:function(n){return Y[n]}, end:function(n){return u[n]}, length:Y.length}}; xGA=function(Y,u,n){for(var U=[],k=[],m=0;m=u)return n}catch(U){}return-1}; XT=function(Y,u){return m4(Y,u)>=0}; l_c=function(Y,u){if(!Y)return NaN;u=m4(Y,u);return u>=0?Y.start(u):NaN}; Pa=function(Y,u){if(!Y)return NaN;u=m4(Y,u);return u>=0?Y.end(u):NaN}; SJ=function(Y){return Y&&Y.length?Y.end(Y.length-1):NaN}; Ch=function(Y){return SJ(Y)>0}; fh=function(Y,u){Y=Pa(Y,u);return Y>=0?Y-u:0}; QD=function(Y,u,n){for(var U=[],k=[],m=0;mn||(U.push(Math.max(u,Y.start(m))-u),k.push(Math.min(n,Y.end(m))-u));return Uw(U,k)}; NZ=function(Y,u,n,U){g.ud.call(this);var k=this;this.aH=Y;this.start=u;this.end=n;this.isActive=U;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.M9={error:function(){!k.gg()&&k.isActive&&k.publish("error",k)}, updateend:function(){!k.gg()&&k.isActive&&k.publish("updateend",k)}}; this.aH.BD(this.M9);this.VU=this.isActive}; Zy=function(Y,u,n,U,k,m){g.ud.call(this);var X=this;this.SE=Y;this.OE=u;this.id=n;this.containerType=U;this.aV=k;this.OX=m;this.zB=this.P_=this.z4=null;this.ze=!1;this.appendWindowStart=this.timestampOffset=0;this.vA=Uw([],[]);this.K3=!1;this.v_=[];this.Ny=i$?[]:void 0;this.P0=function(C){return X.publish(C.type,X)}; var S;if((S=this.SE)==null?0:S.addEventListener)this.SE.addEventListener("updateend",this.P0),this.SE.addEventListener("error",this.P0)}; Tu=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; rb=function(Y,u){this.uN=Y;this.K=u===void 0?!1:u;this.j=!1}; MZ=function(Y,u,n){n=n===void 0?!1:n;g.e.call(this);this.mediaElement=Y;this.ZW=u;this.isView=n;this.W=0;this.G=!1;this.J=!0;this.N=0;this.callback=null;this.Z=!1;this.ZW||(this.OE=this.mediaElement.q1());this.events=new g.j3(this);g.b(this,this.events);this.X=new rb(this.ZW?window.URL.createObjectURL(this.ZW):this.OE.webkitMediaSourceURL,!0);Y=this.ZW||this.OE;pb(this.events,Y,["sourceopen","webkitsourceopen"],this.oRG);pb(this.events,Y,["sourceclose","webkitsourceclose"],this.KIW);this.S={updateend:this.sM}}; hHW=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; wYc=function(Y,u){db(Y)?g.KH(function(){u(Y)}):Y.callback=u}; WqB=function(Y,u,n){if(Gu){var U;Ao(Y.mediaElement,{l:"mswssb",sr:(U=Y.mediaElement.IV)==null?void 0:U.mY()},!1);u.BD(Y.S,Y);n.BD(Y.S,Y)}Y.K=u;Y.j=n;g.b(Y,u);g.b(Y,n)}; jJ=function(Y){return!!Y.K||!!Y.j}; db=function(Y){try{return Kh(Y)==="open"}catch(u){return!1}}; Kh=function(Y){if(Y.ZW)return Y.ZW.readyState;switch(Y.OE.webkitSourceState){case Y.OE.SOURCE_OPEN:return"open";case Y.OE.SOURCE_ENDED:return"ended";default:return"closed"}}; ph=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; eHd=function(Y){db(Y)&&(Y.ZW?Y.ZW.endOfStream():Y.OE.webkitSourceEndOfStream(Y.OE.EOS_NO_ERROR))}; b10=function(Y,u,n,U){if(!Y.K||!Y.j)return null;var k=Y.K.isView()?Y.K.aH:Y.K,m=Y.j.isView()?Y.j.aH:Y.j,X=new MZ(Y.mediaElement,Y.ZW,!0);X.X=Y.X;WqB(X,new NZ(k,u,n,U),new NZ(m,u,n,U));db(Y)||Y.K.zD(Y.K.iN());return X}; I_u=function(Y){var u;(u=Y.K)==null||u.Ts();var n;(n=Y.j)==null||n.Ts();Y.J=!1}; Lh=function(){var Y=this;this.wR=this.kE=G0A;this.promise=new g.cB(function(u,n){Y.kE=u;Y.wR=n})}; to=function(){g.e.call(this);this.Lt=!1;this.uN=null;this.S=this.W=!1;this.G=new g.is;this.IV=null;g.b(this,this.G)}; Ba=function(Y){Y=Y.Vq();return Y.length<1?NaN:Y.end(Y.length-1)}; zH7=function(Y){!Y.j&&hHW()&&(Y.X?Y.X.then(function(){return zH7(Y)}):Y.sE()||(Y.j=Y.KY()))}; gAm=function(Y){Y.j&&(Y.j.dispose(),Y.j=void 0)}; Ao=function(Y,u,n){var U;((U=Y.IV)==null?0:U.gX())&&Y.IV.fG("rms",u,n===void 0?!1:n)}; EAt=function(Y,u,n){Y.isPaused()||Y.getCurrentTime()>u||n>10||(Y.play(),g.QS(function(){EAt(Y,Y.getCurrentTime(),n+1)},500))}; H1t=function(Y,u){Y.uN&&Y.uN.equals(u)||(Y.uN&&Y.uN.dispose(),Y.uN=u)}; oZ=function(Y){return fh(Y.eM(),Y.getCurrentTime())}; yce=function(Y,u){if(Y.t4()===0||Y.hasError())return!1;var n=Y.getCurrentTime()>0;return u>=0&&(Y=Y.Vq(),Y.length||!n)?XT(Y,u):n}; ca=function(Y){Y.sE()&&(Y.IV&&Y.IV.M5("rs_s"),zC&&Y.getCurrentTime()>0&&Y.seekTo(0),Y.Jf(),Y.load(),H1t(Y,null));delete Y.X}; va=function(Y){switch(Y.Sh()){case 2:return"progressive.net.retryexhausted";case 3:return Y=Y.UX(),(Y==null?0:Y.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||VZ7&&(Y==null?0:Y.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.RZ=function(Y,u,n){this.Jt=u===void 0?null:u;this.seekSource=n===void 0?null:n;this.state=Y||64}; Dy=function(Y,u,n){n=n===void 0?!1:n;return O17(Y,u.getCurrentTime(),(0,g.j2)(),oZ(u),n)}; x6=function(Y,u,n,U){if(!(u===Y.state&&n===Y.Jt&&U===Y.seekSource||u!==void 0&&(u&128&&!n||u&2&&u&16))){var k;if(k=u)k=u||Y.state,k=!!(k&16||k&32);Y=new g.RZ(u,n,k?U?U:Y.seekSource:null)}return Y}; l$=function(Y,u,n){return x6(Y,Y.state|u,null,n===void 0?null:n)}; ho=function(Y,u){return x6(Y,Y.state&~u,null,null)}; wb=function(Y,u,n,U){return x6(Y,(Y.state|u)&~n,null,U===void 0?null:U)}; g.V=function(Y,u){return!!(Y.state&u)}; g.Wa=function(Y,u){return u.state===Y.state&&u.Jt===Y.Jt}; eJ=function(Y){return Y.isPlaying()&&!g.V(Y,16)&&!g.V(Y,32)}; b$=function(Y){return g.V(Y,128)?-1:g.V(Y,2)?0:g.V(Y,2048)?3:g.V(Y,64)?-1:g.V(Y,1)&&!g.V(Y,32)?3:g.V(Y,8)?1:g.V(Y,4)?2:-1}; zu=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T,r,K,L){g.e.call(this);var R=this;this.tZ=Y;this.slot=u;this.layout=n;this.AJ=U;this.h_=k;this.SG=m;this.LG=X;this.bD=S;this.Fs=C;this.WD=f;this.position=N;this.W=Z;this.hJ=T;this.J6=r;this.i9=K;this.context=L;this.dV=!0;this.J=!1;this.zw="not_rendering";this.j=!1;this.X=new UP;Y=yl(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.pG=new ih(n.ou,this.AJ,Y,n.layoutId);var c;Y=((c=IZ(this))==null?void 0:c.progressCommands)||[];this.G=new HCe(C, Y,n.layoutId,function(){return R.A3()}); this.K=new AeY({adCpn:this.layout.layoutId,Bc:L.Bc,L$:this.J6,OX:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; gb=function(Y){return{layoutId:Y.g$(),H3:Y.J6,vM:Y.SG.get(),gm:Y.D_()}}; Ew=function(Y,u){return u.layoutId!==Y.layout.layoutId?(Y.tZ.Ye(Y.slot,u,new Ec("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+Y.layout.layoutId+("and LayoutType: "+Y.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; Ha=function(Y){Y.zw="rendering_start_requested";Y.WD(-1)}; IZ=function(Y){return yl(Y.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; FqS=function(Y){Xj("Received layout exit signal when not in layout exit flow.",Y.slot,Y.layout)}; Jc0=function(Y){var u;return((u=yD(Y.SG.get(),2))==null?void 0:u.clientPlaybackNonce)||""}; VD=function(Y,u){switch(u){case "normal":Y.B$("complete");break;case "skipped":Y.B$("skip");break;case "abandoned":dY(Y.pG,"impression")&&Y.B$("abandon")}}; Ow=function(Y,u){Y.J||(u=new g.PY(u.state,new g.RZ),Y.J=!0);return u}; FT=function(Y,u){aI(u)?Y.WD(1):g.C1(u,4)&&!g.C1(u,2)&&Y.hj();SZ(u,4)<0&&!(SZ(u,2)<0)&&Y.bz()}; qHu=function(Y){Y.position===0&&(Y.bD.get(),Y=yl(Y.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Y={adBreakType:Jo(Y)},Kg("ad_bl"),g.pg(Y))}; qZ=function(Y,u){Mf(Y.pG,u,!Y.j)}; $Gu=function(Y){var u;return(((u=IZ(Y))==null?void 0:u.progressCommands)||[]).findIndex(function(n){return!!g.z(n==null?void 0:n.command,a_A)})!==-1}; aZ=function(Y,u){var n=yl(Y.clientMetadata,"metadata_type_eligible_for_ssap");return n===void 0?(Xj("Expected SSAP eligibility in PlayerBytes factory",Y),!1):u.D_(n)}; $6=function(Y,u){if(!h0(u.get(),"html5_ssap_pass_transition_reason"))return 3;switch(Y){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Xj("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Xj("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:Y}),3;default:N5(Y,"unknown layoutExitReason")}}; Yzm=function(Y){Xj("getExitReason: unexpected reason",void 0,void 0,{reason:Y})}; Yq=function(Y,u){if(h0(u.get(),"html5_ssap_pass_transition_reason"))switch(Y){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return Yzm(Y),"abandoned";case 3:case 1:return Yzm(Y),"error";default:N5(Y,"unexpected transition reason")}else switch(Y){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Xj("getExitReason: unexpected reason",void 0,void 0,{reason:Y}),"error";default:N5(Y,"unexpected transition reason")}}; g.uq=function(Y,u,n){t$(Y,n)||oV(Y,u,n);t$(Y,"video_to_ad")||oV(Y,u,"video_to_ad");t$(Y,"ad_to_video")||oV(Y,u,"ad_to_video");t$(Y,"ad_to_ad")||oV(Y,u,"ad_to_ad")}; nK=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T,r,K,L,R){zu.call(this,Y,u,n,U,k,m,X,S,f,Q,N,Z,T,r,K,L,R);var c=this;this.ZY=C;this.cg=N;this.VS=!0;this.tY=this.aM=0;this.P5=wh(function(){Mht(gb(c));c.tZ.wX(c.slot,c.layout)}); this.GX=wh(function(){scA(gb(c));c.zw!=="rendering_stop_requested"&&c.cg(c);c.layoutExitReason?c.tZ.n0(c.slot,c.layout,c.layoutExitReason):FqS(c)}); this.timer=new g.wr(200);this.timer.listen("tick",function(){c.ye()}); g.b(this,this.timer)}; kq=function(Y){Y.tY=Date.now();UJ(Y,Y.aM);Y.timer.start()}; unM=function(Y){Y.aM=Y.A3();Y.sj(Y.aM/1E3,!0);UJ(Y,Y.aM)}; UJ=function(Y,u){u={current:u/1E3,duration:Y.A3()/1E3};Y.ZY.get().Io("onAdPlaybackProgress",u)}; Xz=function(Y){nK.call(this,Y.tZ,Y.slot,Y.rV,Y.AJ,Y.h_,Y.SG,Y.LG,Y.bD,Y.ZY,Y.Fs,Y.WD,Y.cg,Y.l5,Y.r4,Y.hJ,Y.J6,Y.i9,Y.context)}; Pv=function(Y){nK.call(this,Y.tZ,Y.slot,Y.rV,Y.AJ,Y.h_,Y.SG,Y.LG,Y.bD,Y.ZY,Y.Fs,Y.WD,Y.cg,Y.l5,Y.r4,Y.hJ,Y.J6,Y.i9,Y.context)}; S0=function(){Pv.apply(this,arguments)}; nIM=function(Y){return aZ(Y.slot,Y.hJ.get())?new S0(Y):new Xz(Y)}; Qt=function(Y){zu.call(this,Y.callback,Y.slot,Y.rV,Y.AJ,Y.h_,Y.SG,Y.LG,Y.bD,Y.Fs,Y.WD,Y.cg,Y.l5,Y.r4,Y.hJ,Y.J6,Y.i9,Y.context);var u=this;this.adCpn="";this.h8=this.bQ=0;this.P5=wh(function(){Mht(gb(u));u.tZ.wX(u.slot,u.layout)}); this.GX=wh(function(){scA(gb(u));u.zw!=="rendering_stop_requested"&&u.cg(u);u.layoutExitReason?u.tZ.n0(u.slot,u.layout,u.layoutExitReason):FqS(u)}); this.Z_=Y.Z_;this.oH=Y.oH;this.K0=Y.K0;this.ZY=Y.ZY;this.gV=Y.gV;this.cg=Y.cg;if(!this.D_()){h0(this.hJ.get(),"html5_disable_media_load_timeout")||(this.ox=new g.Vp(function(){u.Oo("load_timeout",new Ec("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); Y=CK(this.hJ.get());var n=fK(this.hJ.get());Y&&n&&(this.yD=new g.Vp(function(){var U=yl(u.layout.clientMetadata,"metadata_type_preload_player_vars");U&&u.oH.get().L.preloadVideoByPlayerVars(U,2,300)}))}}; kcd=function(Y,u){var n=yl(u.clientMetadata,"metadata_type_ad_video_id"),U=yl(u.clientMetadata,"metadata_type_legacy_info_card_vast_extension");n&&U&&Y.gV.get().L.Y().Fk.add(n,{d0:U});(u=yl(u.clientMetadata,"metadata_type_sodar_extension_data"))&&Und(Y.Z_.get(),u);U4B(Y.LG.get(),!1)}; m4c=function(Y){U4B(Y.LG.get(),!0);var u;((u=Y.shrunkenPlayerBytesConfig)==null?0:u.shouldRequestShrunkenPlayerBytes)&&Y.LG.get().y3(!1)}; XDm=function(Y){return new Nu(Y)}; iq=function(){Qt.apply(this,arguments)}; Nu=function(){iq.apply(this,arguments)}; PSe=function(Y){return nIM(Object.assign({},Y,{tZ:Y.callback,WD:function(){}}))}; SzS=function(Y){return new Qt(Object.assign({},Y,{WD:function(u){Y.ZY.get().Io("onAdIntroStateChange",u)}}))}; CSA=function(Y){function u(n){Y.ZY.get().o9(n)} return aZ(Y.slot,Y.hJ.get())?XDm(Object.assign({},Y,{WD:u})):new Qt(Object.assign({},Y,{WD:u}))}; ZZ=function(Y){for(var u=Y.rV,n=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],U=g.A(Zv()),k=U.next();!k.done;k=U.next())n.push(k.value);if(wY(u,{NR:n,eb:["LAYOUT_TYPE_MEDIA_BREAK"]}))return PSe(Y);u=Y.rV;n=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];U=g.A(Zv());for(k=U.next();!k.done;k=U.next())n.push(k.value);if(wY(u,{NR:n,eb:["LAYOUT_TYPE_MEDIA"]}))return I$(Y.rV.clientMetadata,"metadata_type_ad_intro")?SzS(Y):CSA(Y)}; QVd=function(Y){var u=yl(Y.clientMetadata,"metadata_type_ad_placement_config").kind,n=yl(Y.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:Y.layoutId,adType:f2A(n),adBreakType:Jo(u)}}; Jo=function(Y){switch(Y){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; f2A=function(Y){switch(Y){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; NVu=function(Y){try{return new TA(Y.GY,Y.slot,Y.layout,Y.Dk,Y.u8,Y.SG,Y.xk,Y.oH,Y.P$,Y.LG,Y.rbF,Y)}catch(u){}}; TA=function(Y,u,n,U,k,m,X,S,C,f,Q,N){g.e.call(this);this.GY=Y;this.slot=u;this.layout=n;this.Dk=U;this.u8=k;this.SG=m;this.xk=X;this.oH=S;this.P$=C;this.LG=f;this.params=N;this.dV=!0;Y=ZZ(Q);if(!Y)throw Error("Invalid params for sublayout");this.B0=Y}; igY=function(){this.K=1;this.j=new UP}; ru=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T){g.e.call(this);this.callback=Y;this.SG=u;this.xk=n;this.oH=U;this.LG=k;this.oZ=m;this.bD=X;this.sY=S;this.slot=C;this.layout=f;this.Dk=Q;this.Hc=N;this.P$=Z;this.hJ=T;this.dV=!0;this.yZ=!1;this.Ql=[];this.YP=-1;this.AY=!1;this.cS=new igY}; ZgS=function(Y){var u;return(u=Y.layout.i5)!=null?u:yl(Y.layout.clientMetadata,"metadata_type_sub_layouts")}; Mu=function(Y){return{vM:Y.SG.get(),H3:!1,gm:Y.D_()}}; TVd=function(Y,u,n){if(Y.n1()===Y.Ql.length-1){var U,k;Xj("Unexpected skip requested during the last sublayout",(U=Y.cM())==null?void 0:U.kV(),(k=Y.cM())==null?void 0:k.eG(),{requestingSlot:u,requestingLayout:n})}}; r$B=function(Y,u,n){return n.layoutId!==sJ(Y,u,n)?(Xj("onSkipRequested for a PlayerBytes layout that is not currently active",Y.kV(),Y.eG()),!1):!0}; MPu=function(Y){Y.n1()===Y.Ql.length-1&&Xj("Unexpected skip with target requested during the last sublayout")}; sVc=function(Y,u,n){return n.renderingContent===void 0&&n.layoutId!==sJ(Y,u,n)?(Xj("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",Y.kV(),Y.eG(),{requestingSlot:u,requestingLayout:n}),!1):!0}; d4d=function(Y,u,n,U){var k=yl(u.eG().clientMetadata,"metadata_type_ad_pod_skip_target");if(k&&k>0&&k0)){Xj("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",Y.slot,Y.layout,{indexToPlay:u,layoutId:Y.layout.layoutId});break a}Y.YP=u;u=Y.cM();if(Y.n1()>0&&!Y.D_()){var n=Y.bD.get();n.j=!1;var U={};n.K&&n.videoId&&(U.cttAuthInfo={token:n.K,videoId:n.videoId});Lg("ad_to_ad",U)}n=g.z(u.eG().renderingContent,Fg);if(n==null?0: n.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var k;n=!((k=Y.oZ.get().dNk.get(n.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&k)}else n=!1;n?du(Y,Y.n1()+1):Y.PY(u)}}; j0=function(Y){ru.call(this,Y.GY,Y.SG,Y.xk,Y.oH,Y.LG,Y.oZ,Y.bD,Y.sY,Y.slot,Y.layout,Y.Dk,Y.Hc,Y.P$,Y.hJ)}; jVu=function(Y){(Y=Y.cM())&&Y.lI()}; KK=function(Y){ru.call(this,Y.GY,Y.SG,Y.xk,Y.oH,Y.LG,Y.oZ,Y.bD,Y.sY,Y.slot,Y.layout,Y.Dk,Y.Hc,Y.P$,Y.hJ);this.yI=void 0}; K3M=function(Y,u){Y.L6()&&!mV(Y.cS.j)||Y.callback.n0(Y.slot,Y.layout,u)}; pK=function(Y){return h0(Y.hJ.get(),"html5_ssap_pass_transition_reason")}; pDA=function(Y,u,n){u.GD().currentState<2&&(n=Yq(n,Y.hJ),u.Yk(u.eG(),n));n=u.GD().K;Y.uO(Y.slot,u.eG(),n)}; L3B=function(Y,u){if(Y.cS.j.currentState<2){var n=Yq(u,Y.hJ);n==="error"?Y.callback.Ye(Y.slot,Y.layout,new Ec("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:u},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):A8(Y.Hc,Y.layout,n)}}; LK=function(Y,u,n){u.GD().currentState>=2||(u.Yk(u.eG(),n),mV(u.GD())&&(rn(Y.sY,Y.slot,u.eG(),n),Y.yI=void 0))}; tPM=function(Y,u){Y.cS.K===2&&u!==Y.hU()&&Xj("onClipEntered: unknown cpn",Y.slot,Y.layout,{cpn:u})}; BVM=function(Y,u){var n=Y.cM();if(n){var U=n.eG().layoutId,k=Y.n1()+1;Y.L6()?LK(Y,n,u):n.Yk(n.eG(),u);k>=0&&kk&&X.Lw(Q,k-U);return Q}; wDm=function(Y,u,n){var U=yl(u.clientMetadata,"metadata_type_sodar_extension_data");if(U)try{Und(n,U)}catch(k){Xj("Unexpected error when loading Sodar",Y,u,{error:k})}}; W3c=function(Y,u,n,U,k,m,X){DZ(Y,u,new g.PY(n,new g.RZ),U,k,X,!1,m)}; DZ=function(Y,u,n,U,k,m,X,S){X=X===void 0?!0:X;aI(n)&&$w(k,0,null)&&(!dY(Y,"impression")&&S&&S(),Y.B$("impression"));dY(Y,"impression")&&(g.C1(n,4)&&!g.C1(n,2)&&Y.Zo("pause"),SZ(n,4)<0&&!(SZ(n,2)<0)&&Y.Zo("resume"),g.C1(n,16)&&k>=.5&&Y.Zo("seek"),X&&g.C1(n,2)&&xq(Y,n.state,u,U,k,m))}; xq=function(Y,u,n,U,k,m,X,S,C){dY(Y,"impression")&&(m?(m=k-U,m=m>=-1&&m<=2):m=Math.abs(U-k)<=1,lq(Y,u,m?U:k,n,U,X,S&&m),m&&!C&&Y.B$("complete"))}; lq=function(Y,u,n,U,k,m,X){sR(Y,n*1E3,X);k<=0||n<=0||(u==null?0:g.V(u,16))||(u==null?0:g.V(u,32))||($w(n,k*.25,U)&&(m&&!dY(Y,"first_quartile")&&m("first"),Y.B$("first_quartile")),$w(n,k*.5,U)&&(m&&!dY(Y,"midpoint")&&m("second"),Y.B$("midpoint")),$w(n,k*.75,U)&&(m&&!dY(Y,"third_quartile")&&m("third"),Y.B$("third_quartile")))}; eYm=function(Y,u){dY(Y,"impression")&&Y.Zo(u?"fullscreen":"end_fullscreen")}; bgm=function(Y){dY(Y,"impression")&&Y.Zo("clickthrough")}; I2c=function(Y){Y.Zo("active_view_measurable")}; zY7=function(Y){dY(Y,"impression")&&!dY(Y,"seek")&&Y.Zo("active_view_fully_viewable_audible_half_duration")}; gIe=function(Y){dY(Y,"impression")&&!dY(Y,"seek")&&Y.Zo("active_view_viewable")}; EIu=function(Y){dY(Y,"impression")&&!dY(Y,"seek")&&Y.Zo("audio_audible")}; Hgc=function(Y){dY(Y,"impression")&&!dY(Y,"seek")&&Y.Zo("audio_measurable")}; y$A=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z){this.callback=Y;this.slot=u;this.layout=n;this.xk=U;this.pG=k;this.LG=m;this.Wk=X;this.h_=S;this.Z_=C;this.hJ=f;this.AJ=Q;this.SG=N;this.K0=Z;this.VS=!0;this.Gc=this.zw=null;this.adCpn=void 0;this.K=!1}; VPM=function(Y,u,n){var U;Rj(Y.AJ.get(),"ads_qua","cpn."+yl(Y.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((U=yD(Y.SG.get(),2))==null?void 0:U.clientPlaybackNonce)+";qt."+u+";clr."+n)}; Oge=function(Y,u){var n,U;Rj(Y.AJ.get(),"ads_imp","cpn."+yl(Y.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((n=yD(Y.SG.get(),2))==null?void 0:n.clientPlaybackNonce)+";clr."+u+";skp."+!!g.z((U=yl(Y.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:U.skipOrPreviewRenderer,h8))}; wu=function(Y){return{enterMs:yl(Y.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:yl(Y.clientMetadata,"metadata_type_layout_exit_ms")}}; Wv=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T){Bv.call(this,Y,u,n,U,k,X,S,C,f,N);this.Wk=m;this.Z_=Q;this.h_=Z;this.hJ=T;this.Gc=this.zw=null}; F30=function(Y,u){var n;Rj(Y.AJ.get(),"ads_imp","acpn."+((n=yD(Y.SG.get(),2))==null?void 0:n.clientPlaybackNonce)+";clr."+u)}; J$M=function(Y,u,n){var U;Rj(Y.AJ.get(),"ads_qua","cpn."+yl(Y.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((U=yD(Y.SG.get(),2))==null?void 0:U.clientPlaybackNonce)+";qt."+u+";clr."+n)}; e0=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T,r,K,L,R,c,x,W,E){this.P$=Y;this.Dk=u;this.Hc=n;this.SG=U;this.xk=k;this.LG=m;this.oZ=X;this.AJ=S;this.Wk=C;this.i6=f;this.h_=Q;this.Z_=N;this.oH=Z;this.K0=T;this.bD=r;this.ZY=K;this.Fs=L;this.gV=R;this.hJ=c;this.K=x;this.context=W;this.i9=E}; bq=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T,r,K,L,R,c){this.P$=Y;this.Dk=u;this.Hc=n;this.AJ=U;this.h_=k;this.Z_=m;this.oH=X;this.SG=S;this.LG=C;this.oZ=f;this.K0=Q;this.bD=N;this.ZY=Z;this.Fs=T;this.gV=r;this.hJ=K;this.xk=L;this.context=R;this.i9=c}; qzd=function(Y,u,n,U){YY.call(this,"survey-interstitial",Y,u,n,U)}; Ij=function(Y,u,n,U,k){mQ.call(this,n,Y,u,U);this.AJ=k;Y=yl(u.clientMetadata,"metadata_type_ad_placement_config");this.pG=new ih(u.ou,k,Y,u.layoutId)}; zA=function(Y){return Math.round(Y.width)+"x"+Math.round(Y.height)}; EJ=function(Y,u,n){n=n===void 0?gu:n;n.widthY.width*Y.height*.2)return{kF:3,W6:501,errorMessage:"ad("+zA(n)+") to container("+zA(Y)+") ratio exceeds limit."};if(n.height>Y.height/3-u)return{kF:3,W6:501,errorMessage:"ad("+zA(n)+") covers container("+zA(Y)+") center."}}; a2e=function(Y,u){var n=yl(Y.clientMetadata,"metadata_type_ad_placement_config");return new ih(Y.ou,u,n,Y.layoutId)}; Hv=function(Y){return yl(Y.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; Vt=function(Y,u,n,U){YY.call(this,"invideo-overlay",Y,u,n,U);this.interactionLoggingClientData=U}; OJ=function(Y,u,n,U,k,m,X,S,C,f,Q,N){mQ.call(this,m,Y,u,k);this.AJ=n;this.G=X;this.LG=S;this.Fs=C;this.hJ=f;this.W=Q;this.J=N;this.pG=a2e(u,n)}; $4m=function(){var Y=["metadata_type_invideo_overlay_ad_renderer"];Zv().forEach(function(u){Y.push(u)}); return{NR:Y,eb:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Fz=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z){mQ.call(this,m,Y,u,k);this.AJ=n;this.G=X;this.Z=S;this.LG=C;this.Fs=f;this.hJ=Q;this.W=N;this.J=Z;this.pG=a2e(u,n)}; YVW=function(){for(var Y=["metadata_type_invideo_overlay_ad_renderer"],u=g.A(Zv()),n=u.next();!n.done;n=u.next())Y.push(n.value);return{NR:Y,eb:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; J8=function(Y){this.LG=Y;this.K=!1}; u5Y=function(Y,u,n){YY.call(this,"survey",Y,{},u,n)}; qu=function(Y,u,n,U,k,m,X){mQ.call(this,n,Y,u,U);this.G=k;this.LG=m;this.hJ=X}; n9u=function(Y,u,n,U,k,m,X,S,C,f){this.sb=Y;this.LG=u;this.AJ=n;this.G=U;this.h_=k;this.j=m;this.X=X;this.Fs=S;this.hJ=C;this.K=f}; UJm=function(Y,u,n,U,k,m,X,S,C,f){this.sb=Y;this.LG=u;this.AJ=n;this.G=U;this.h_=k;this.j=m;this.X=X;this.Fs=S;this.hJ=C;this.K=f}; aj=function(Y,u,n,U,k,m,X,S,C,f){gY.call(this,Y,u,n,U,k,m,X,C);this.sK=S;this.SG=f}; ktM=function(){var Y=SpA();Y.NR.push("metadata_type_ad_info_ad_metadata");return Y}; mJ0=function(Y,u,n,U,k,m,X){this.sb=Y;this.LG=u;this.AJ=n;this.j=U;this.sK=k;this.K=m;this.SG=X}; Xlu=function(Y,u,n,U,k,m,X,S){this.sb=Y;this.LG=u;this.AJ=n;this.j=U;this.sK=k;this.K=m;this.hJ=X;this.SG=S}; $q=function(Y,u){this.slotId=u;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=Y(this.triggerType)}; Yu=function(Y,u){this.adPodIndex=Y;this.K=u.length;this.adBreakLengthSeconds=u.reduce(function(U,k){return U+k},0); var n=0;for(Y+=1;Y0}; HT=function(Y){return!!(Y.j6&&Y.slot&&Y.layout)}; y$=function(Y){var u,n=(u=Y.config)==null?void 0:u.adPlacementConfig;Y=Y.renderer;return!(!n||n.kind==null||!Y)}; ACM=function(Y){if(!WT(Y.adLayoutMetadata))return!1;Y=Y.renderingContent;return g.z(Y,Fg)||g.z(Y,JY)||g.z(Y,Gtm)||g.z(Y,V8)||g.z(Y,OR)?!0:!1}; V$=function(Y){return Y.playerVars!==void 0&&Y.pings!==void 0&&Y.externalVideoId!==void 0}; YB=function(Y){if(!WT(Y.adLayoutMetadata))return!1;Y=Y.renderingContent;var u=g.z(Y,Ot);return u?F3(u):(u=g.z(Y,Ja))?V$(u):(u=g.z(Y,qM))?u.playerVars!==void 0:(u=g.z(Y,Fg))?u.durationMilliseconds!==void 0:g.z(Y,aa)||g.z(Y,$u)?!0:!1}; F3=function(Y){Y=(Y.sequentialLayouts||[]).map(function(u){return g.z(u,ue)}); return Y.length>0&&Y.every(YB)}; U7=function(Y){return WT(Y.adLayoutMetadata)?(Y=g.z(Y.renderingContent,nB))&&Y.pings?!0:!1:!1}; BFY=function(Y){if(!WT(Y.adLayoutMetadata))return!1;if(g.z(Y.renderingContent,jp7)||g.z(Y.renderingContent,Kcd))return!0;var u=g.z(Y.renderingContent,kB);return g.z(Y.renderingContent,mo)||g.z(u==null?void 0:u.sidePanel,plm)||g.z(u==null?void 0:u.sidePanel,LcY)||g.z(u==null?void 0:u.sidePanel,tiW)?!0:!1}; DJu=function(Y){var u;(u=!Y)||(u=Y.adSlotMetadata,u=!((u==null?void 0:u.slotId)!==void 0&&(u==null?void 0:u.slotType)!==void 0));if(u||!(o9A(Y)||Y.slotEntryTrigger&&Y.slotFulfillmentTriggers&&Y.slotExpirationTriggers))return!1;var n;Y=(n=Y.fulfillmentContent)==null?void 0:n.fulfilledLayout;return(n=g.z(Y,ue))?YB(n):(n=g.z(Y,Xr))?BFY(n):(n=g.z(Y,cCW))?ACM(n):(n=g.z(Y,v9e))?spM(n):(n=g.z(Y,Rtd))?WT(n.adLayoutMetadata)?g.z(n.renderingContent,ez)?!0:!1:!1:(Y=g.z(Y,PI))?U7(Y):!1}; o9A=function(Y){var u;Y=g.z((u=Y.fulfillmentContent)==null?void 0:u.fulfilledLayout,Xr);var n;return Y&&((n=Y.adLayoutMetadata)==null?void 0:n.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&Y.layoutExitNormalTriggers===void 0}; xJ0=function(Y){var u;return(Y==null?void 0:(u=Y.adSlotMetadata)==null?void 0:u.slotType)==="SLOT_TYPE_IN_PLAYER"}; ht7=function(Y,u){var n;if((n=Y.questions)==null||!n.length||!Y.playbackCommands||(u===void 0||!u)&&Y.questions.length!==1)return!1;Y=g.A(Y.questions);for(u=Y.next();!u.done;u=Y.next()){u=u.value;var U=n=void 0,k=((n=g.z(u,S1))==null?void 0:n.surveyAdQuestionCommon)||((U=g.z(u,CB))==null?void 0:U.surveyAdQuestionCommon);if(!l3e(k))return!1}return!0}; wlS=function(Y){Y=((Y==null?void 0:Y.playerOverlay)||{}).instreamSurveyAdRenderer;var u;if(Y)if(Y.playbackCommands&&Y.questions&&Y.questions.length===1){var n,U=((u=g.z(Y.questions[0],S1))==null?void 0:u.surveyAdQuestionCommon)||((n=g.z(Y.questions[0],CB))==null?void 0:n.surveyAdQuestionCommon);u=l3e(U)}else u=!1;else u=!1;return u}; l3e=function(Y){if(!Y)return!1;Y=g.z(Y.instreamAdPlayerOverlay,fB);var u=g.z(Y==null?void 0:Y.skipOrPreviewRenderer,h8),n=g.z(Y==null?void 0:Y.adInfoRenderer,Qn);return(g.z(Y==null?void 0:Y.skipOrPreviewRenderer,NN)||u)&&n?!0:!1}; WcG=function(Y){return Y.linearAds!=null&&WT(Y.adLayoutMetadata)}; ete=function(Y){return Y.linearAd!=null&&Y.adVideoStart!=null}; bGt=function(Y){if(isNaN(Number(Y.timeoutSeconds))||!Y.text||!Y.ctaButton||!g.z(Y.ctaButton,g.ie)||!Y.brandImage)return!1;var u;return Y.backgroundImage&&g.z(Y.backgroundImage,ZH)&&((u=g.z(Y.backgroundImage,ZH))==null?0:u.landscape)?!0:!1}; Tf=function(Y,u,n,U,k,m,X,S){g.e.call(this);this.hJ=Y;this.K=u;this.j=U;this.SG=k;this.G=m;this.X=X;this.oH=S}; g97=function(Y,u,n){var U,k=((U=n.adSlots)!=null?U:[]).map(function(S){return g.z(S,rp)}); if(n.F0)if(yl(u.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))uh(Y.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},u.slotId); else{if(Y.hJ.get().L.Y().V("h5_check_forecasting_renderer_for_throttled_midroll")){var m=n.O_.filter(function(S){var C;return((C=S.renderer)==null?void 0:C.clientForecastingAdRenderer)!=null}); m.length!==0?I3G(Y.X,m,k,u.slotId,n.ssdaiAdsConfig):uh(Y.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},u.slotId)}else uh(Y.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},u.slotId); ztB(Y.G,u)}else{var X;U={Yx:Math.round(((m=yl(u.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:m.Yx)||0),TV:(X=yl(u.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:X.TV};m=yl(u.clientMetadata,"metadata_type_cue_point");I3G(Y.X,n.O_,k,u.slotId,n.ssdaiAdsConfig,U,m)}}; yCd=function(Y,u,n,U,k,m,X,S){var C=yD(Y.SG.get(),1);if(E90(Y.hJ.get())){var f=MN(Y.j.get(),n,U,k,C.clientPlaybackNonce,C.iE,C.daiEnabled,C,m,X);HGY(Y,f);uh(Y.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return f},u)}else uh(Y.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return MN(Y.j.get(),n,U,k,C.clientPlaybackNonce,C.iE,C.daiEnabled,C,m,X,S)},u)}; HGY=function(Y,u){u=g.A(u);for(var n=u.next();!n.done;n=u.next()){var U=n.value;if(U.slotType==="SLOT_TYPE_PLAYER_BYTES"&&U.fulfilledLayout)if(n=void 0,U.fulfilledLayout.renderingContent)n=yl(U.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(U.fulfilledLayout.i5){U=g.A(U.fulfilledLayout.i5);for(var k=U.next();!k.done&&(k=k.value,!k.renderingContent||!(n=yl(k.clientMetadata,"metadata_type_player_vars")));k=U.next());}}else n=void 0;if(n){Y.oH.get().L.preloadVideoByPlayerVars(n, 2,300);break}}}; OGB=function(Y,u,n,U,k,m,X){u=Vi0(u,m,Number(U.prefetchMilliseconds)||0,X);Y=u instanceof F?u:s7(Y,U,k,u,n);return Y instanceof F?Y:[Y]}; Fc0=function(Y,u,n,U,k){var m=n6(Y.j.get(),"SLOT_TYPE_AD_BREAK_REQUEST");U=[new Kj({getAdBreakUrl:U.getAdBreakUrl,Yx:0,TV:0}),new Wn(!0)];Y=u.pauseDurationMs?u.lactThresholdMs?{slotId:m,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Dw(Y.K,m),slotFulfillmentTriggers:[new SVu(Y.K)],slotExpirationTriggers:[new MM(Y.K,k),new cT(Y.K,m)],Ec:"core",clientMetadata:new Hn(U),adSlotLoggingData:n}:new F("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new F("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return Y instanceof F?Y:[Y]}; JCd=function(Y){var u,n;return((u=Y.renderer)==null?void 0:(n=u.adBreakServiceRenderer)==null?void 0:n.getAdBreakUrl)!==void 0}; dp=function(Y,u,n){if(Y.beforeContentVideoIdStartedTrigger)Y=Y.beforeContentVideoIdStartedTrigger?new uy(gM,u,Y.id):new F("Not able to create BeforeContentVideoIdStartedTrigger");else{if(Y.layoutIdExitedTrigger){var U;u=(U=Y.layoutIdExitedTrigger)!=null&&U.triggeringLayoutId?new PT(gM,Y.layoutIdExitedTrigger.triggeringLayoutId,Y.id):new F("Not able to create LayoutIdExitedTrigger")}else{if(Y.layoutExitedForReasonTrigger){var k,m;((k=Y.layoutExitedForReasonTrigger)==null?0:k.triggeringLayoutId)&&((m= Y.layoutExitedForReasonTrigger)==null?0:m.layoutExitReason)?(u=Cnm(Y.layoutExitedForReasonTrigger.layoutExitReason),Y=u instanceof F?u:new X3(gM,Y.layoutExitedForReasonTrigger.triggeringLayoutId,[u],Y.id)):Y=new F("Not able to create LayoutIdExitedForReasonTrigger")}else{if(Y.onLayoutSelfExitRequestedTrigger){var X;u=(X=Y.onLayoutSelfExitRequestedTrigger)!=null&&X.triggeringLayoutId?new rf(gM,Y.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,Y.id):new F("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(Y.onNewPlaybackAfterContentVideoIdTrigger)Y= Y.onNewPlaybackAfterContentVideoIdTrigger?new MM(gM,u,Y.id):new F("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(Y.skipRequestedTrigger){var S;u=(S=Y.skipRequestedTrigger)!=null&&S.triggeringLayoutId?new G4(gM,Y.skipRequestedTrigger.triggeringLayoutId,Y.id):new F("Not able to create SkipRequestedTrigger")}else if(Y.slotIdEnteredTrigger){var C;u=(C=Y.slotIdEnteredTrigger)!=null&&C.triggeringSlotId?new Aa(gM,Y.slotIdEnteredTrigger.triggeringSlotId,Y.id):new F("Not able to create SlotIdEnteredTrigger")}else if(Y.slotIdExitedTrigger){var f; u=(f=Y.slotIdExitedTrigger)!=null&&f.triggeringSlotId?new cT(gM,Y.slotIdExitedTrigger.triggeringSlotId,Y.id):new F("Not able to create SkipRequestedTrigger")}else if(Y.surveySubmittedTrigger){var Q;u=(Q=Y.surveySubmittedTrigger)!=null&&Q.triggeringLayoutId?new ly(gM,Y.surveySubmittedTrigger.triggeringLayoutId,Y.id):new F("Not able to create SurveySubmittedTrigger")}else{if(Y.mediaResumedTrigger)Y=Y.mediaResumedTrigger&&Y.id?new f3u(Y.id):new F("Not able to create MediaResumedTrigger");else{if(Y.closeRequestedTrigger){var N; u=(N=Y.closeRequestedTrigger)!=null&&N.triggeringLayoutId?new nU(gM,Y.closeRequestedTrigger.triggeringLayoutId,Y.id):new F("Not able to create CloseRequestedTrigger")}else if(Y.slotIdScheduledTrigger){var Z;u=(Z=Y.slotIdScheduledTrigger)!=null&&Z.triggeringSlotId?new Dw(gM,Y.slotIdScheduledTrigger.triggeringSlotId,Y.id):new F("Not able to create SlotIdScheduledTrigger")}else{if(Y.mediaTimeRangeTrigger){var T;U=Number((T=Y.mediaTimeRangeTrigger)==null?void 0:T.offsetStartMilliseconds);var r;X=Number((r= Y.mediaTimeRangeTrigger)==null?void 0:r.offsetEndMilliseconds);isFinite(U)&&isFinite(X)?(r=X,r===-1&&(r=n),n=U>r?new F("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:U,offsetEndMs:r},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",r===n&&U-500<=r):new GK(U,r),Y=n instanceof F?n:new NM(gM,u,n,!1,Y.id)):Y=new F("Not able to create MediaTimeRangeTrigger")}else if(Y.contentVideoIdEndedTrigger)Y=Y.contentVideoIdEndedTrigger?new Ut(gM,u,!1,Y.id):new F("Not able to create ContentVideoIdEndedTrigger"); else{if(Y.layoutIdEnteredTrigger){var K;u=(K=Y.layoutIdEnteredTrigger)!=null&&K.triggeringLayoutId?new mu(gM,Y.layoutIdEnteredTrigger.triggeringLayoutId,Y.id):new F("Not able to create LayoutIdEnteredTrigger")}else if(Y.timeRelativeToLayoutEnterTrigger){var L;u=(L=Y.timeRelativeToLayoutEnterTrigger)!=null&&L.triggeringLayoutId?new ha(gM,Number(Y.timeRelativeToLayoutEnterTrigger.durationMs),Y.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,Y.id):new F("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(Y.onDifferentLayoutIdEnteredTrigger){var R; u=(R=Y.onDifferentLayoutIdEnteredTrigger)!=null&&R.triggeringLayoutId&&Y.onDifferentLayoutIdEnteredTrigger.slotType&&Y.onDifferentLayoutIdEnteredTrigger.layoutType?new Zw(gM,Y.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,Y.onDifferentLayoutIdEnteredTrigger.slotType,Y.onDifferentLayoutIdEnteredTrigger.layoutType,Y.id):new F("Not able to create CloseRequestedTrigger")}else{if(Y.liveStreamBreakStartedTrigger)Y=Y.liveStreamBreakStartedTrigger&&Y.id?new Q$(gM,Y.id):new F("Not able to create LiveStreamBreakStartedTrigger"); else if(Y.liveStreamBreakEndedTrigger)Y=Y.liveStreamBreakEndedTrigger&&Y.id?new Sz(gM,Y.id):new F("Not able to create LiveStreamBreakEndedTrigger");else{if(Y.liveStreamBreakScheduledDurationMatchedTrigger){var c;u=(c=Y.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&c.breakDurationMs?new CU(Number(Y.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,Y.id):new F("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(Y.liveStreamBreakScheduledDurationNotMatchedTrigger){var x; u=(x=Y.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&x.breakDurationMs?new fU(Number(Y.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,Y.id):new F("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(Y.newSlotScheduledWithBreakDurationTrigger){var W;u=(W=Y.newSlotScheduledWithBreakDurationTrigger)!=null&&W.breakDurationMs?new iy(Number(Y.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,Y.id):new F("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else u= Y.prefetchCacheExpiredTrigger?new df(gM,Y.id):new F("Not able to convert an AdsControlflowTrigger.");Y=u}u=Y}Y=u}u=Y}Y=u}u=Y}Y=u}u=Y}Y=u}u=Y}Y=u}return Y}; Gf=function(Y,u){u.K>=2&&(Y.slot_pos=u.adPodIndex);Y.autoplay="1"}; a3u=function(Y,u,n,U,k,m,X,S){return u===null?new F("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:u,ActionCompanionAdRenderer:U}):[qVc(Y,u,X,m,function(C){var f=C.slotId;C=S(C);var Q=U.adLayoutLoggingData,N=new Hn([new pm(U),new wZ(k)]);f=wn(n.j.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",f);var Z={layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ec:"core"};return{layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",ou:new Map, layoutExitNormalTriggers:[new MM(n.K,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"core",clientMetadata:N,M1:C(Z),adLayoutLoggingData:Q}})]}; $J7=function(Y,u,n,U,k,m,X,S){return u===null?new F("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:u,TopBannerImageTextIconButtonedLayoutViewModel:U}):[qVc(Y,u,X,m,function(C){var f=C.slotId;C=S(C);var Q=U.adLayoutLoggingData,N=new Hn([new Lm(U),new wZ(k)]);f=wn(n.j.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",f);var Z={layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ec:"core"};return{layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", ou:new Map,layoutExitNormalTriggers:[new MM(n.K,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"core",clientMetadata:N,M1:C(Z),adLayoutLoggingData:Q}})]}; Uge=function(Y,u,n,U,k,m){if(!m)for(u=g.A(u),m=u.next();!m.done;m=u.next())m=m.value,AI(Y,m.renderer,m.config.adPlacementConfig.kind);Y=Array.from(Y.values()).filter(function(Q){return Yym(Q)}); u=[];m=g.A(Y);for(var X=m.next(),S={};!X.done;S={Bt:void 0},X=m.next()){S.Bt=X.value;X=g.A(S.Bt.Jw);for(var C=X.next(),f={};!C.done;f={tp:void 0},C=X.next())f.tp=C.value,C=function(Q,N){return function(Z){return Q.tp.HX(Z,N.Bt.instreamVideoAdRenderer.elementId,Q.tp.MJ)}}(f,S),f.tp.isContentVideoCompanion?u.push(uet(n,U,k,S.Bt.instreamVideoAdRenderer.elementId,f.tp.associatedCompositePlayerBytesLayoutId,f.tp.adSlotLoggingData,C)):Y.length>1?u.push(ncA(n,U,k,S.Bt.instreamVideoAdRenderer.elementId,f.tp.adSlotLoggingData, function(Q,N){return function(Z){return Q.tp.HX(Z,N.Bt.instreamVideoAdRenderer.elementId,Q.tp.MJ,Q.tp.associatedCompositePlayerBytesLayoutId)}}(f,S))):u.push(ncA(n,U,k,S.Bt.instreamVideoAdRenderer.elementId,f.tp.adSlotLoggingData,C))}return u}; AI=function(Y,u,n){if(u=khW(u)){u=g.A(u);for(var U=u.next();!U.done;U=u.next())if((U=U.value)&&U.externalVideoId){var k=j1(Y,U.externalVideoId);k.instreamVideoAdRenderer||(k.instreamVideoAdRenderer=U,k.B_=n)}else Xj("InstreamVideoAdRenderer without externalVideoId")}}; khW=function(Y){var u=[],n=Y.sandwichedLinearAdRenderer&&Y.sandwichedLinearAdRenderer.linearAd&&g.z(Y.sandwichedLinearAdRenderer.linearAd,Ja);if(n)return u.push(n),u;if(Y.instreamVideoAdRenderer)return u.push(Y.instreamVideoAdRenderer),u;if(Y.linearAdSequenceRenderer&&Y.linearAdSequenceRenderer.linearAds){Y=g.A(Y.linearAdSequenceRenderer.linearAds);for(n=Y.next();!n.done;n=Y.next())n=n.value,g.z(n,Ja)&&u.push(g.z(n,Ja));return u}return null}; Yym=function(Y){if(Y.instreamVideoAdRenderer===void 0)return Xj("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var u=g.A(Y.Jw),n=u.next();!n.done;n=u.next()){n=n.value;if(n.HX===void 0)return!1;if(n.MJ===void 0)return Xj("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(Y.B_===void 0||n.Dd===void 0||Y.B_!==n.Dd&&n.Dd!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(Y.instreamVideoAdRenderer.elementId===void 0)return Xj("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:Y.B_,"matching APSR kind":n.Dd}),!1}return!0}; j1=function(Y,u){Y.has(u)||Y.set(u,{instreamVideoAdRenderer:void 0,B_:void 0,adVideoId:u,Jw:[]});return Y.get(u)}; KB=function(Y,u,n,U,k,m,X,S,C){k?j1(Y,k).Jw.push({lCG:u,Dd:n,isContentVideoCompanion:U,MJ:X,associatedCompositePlayerBytesLayoutId:m,adSlotLoggingData:S,HX:C}):Xj("Companion AdPlacementSupportedRenderer without adVideoId")}; pB=function(Y){var u=0;Y=g.A(Y.questions);for(var n=Y.next();!n.done;n=Y.next())if(n=n.value,n=g.z(n,S1)||g.z(n,CB)){var U=void 0;u+=((U=n.surveyAdQuestionCommon)==null?void 0:U.durationMilliseconds)||0}return u}; LB=function(Y){var u,n,U,k,m=((n=g.z((u=Y.questions)==null?void 0:u[0],S1))==null?void 0:n.surveyAdQuestionCommon)||((k=g.z((U=Y.questions)==null?void 0:U[0],CB))==null?void 0:k.surveyAdQuestionCommon),X;u=[].concat(g.Zu(((X=Y.playbackCommands)==null?void 0:X.instreamAdCompleteCommands)||[]),g.Zu((m==null?void 0:m.timeoutCommands)||[]));var S,C,f,Q,N,Z,T,r,K,L,R,c,x,W,E,J,O,Xd,T0,SM;return{impressionCommands:(S=Y.playbackCommands)==null?void 0:S.impressionCommands,errorCommands:(C=Y.playbackCommands)== null?void 0:C.errorCommands,muteCommands:(f=Y.playbackCommands)==null?void 0:f.muteCommands,unmuteCommands:(Q=Y.playbackCommands)==null?void 0:Q.unmuteCommands,pauseCommands:(N=Y.playbackCommands)==null?void 0:N.pauseCommands,rewindCommands:(Z=Y.playbackCommands)==null?void 0:Z.rewindCommands,resumeCommands:(T=Y.playbackCommands)==null?void 0:T.resumeCommands,skipCommands:(r=Y.playbackCommands)==null?void 0:r.skipCommands,progressCommands:(K=Y.playbackCommands)==null?void 0:K.progressCommands,zOc:(L= Y.playbackCommands)==null?void 0:L.clickthroughCommands,fullscreenCommands:(R=Y.playbackCommands)==null?void 0:R.fullscreenCommands,activeViewViewableCommands:(c=Y.playbackCommands)==null?void 0:c.activeViewViewableCommands,activeViewMeasurableCommands:(x=Y.playbackCommands)==null?void 0:x.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(W=Y.playbackCommands)==null?void 0:W.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(E=Y.playbackCommands)== null?void 0:(J=E.activeViewTracking)==null?void 0:J.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(O=Y.playbackCommands)==null?void 0:(Xd=O.activeViewTracking)==null?void 0:Xd.activeViewAudioMeasurableCommands,endFullscreenCommands:(T0=Y.playbackCommands)==null?void 0:T0.endFullscreenCommands,abandonCommands:(SM=Y.playbackCommands)==null?void 0:SM.abandonCommands,completeCommands:u}}; XwM=function(Y,u,n,U,k,m,X){return function(S,C){return mgd(Y,C.slotId,S,m,function(f,Q){var N=C.layoutId;f=X(f);return tI(u,N,Q,k,f,"LAYOUT_TYPE_SURVEY",[new $c(n),U],n.adLayoutLoggingData)})}}; C3G=function(Y,u,n,U,k,m,X){if(!P3u(Y))return new F("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:Y});var S=Y.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[SyG(m,u,n,U,function(C){var f=C.slotId;C=X(C);f=wn(k.j.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",f);var Q={layoutId:f,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ec:"core"},N=new PT(k.K,U);return{layoutId:f,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",ou:new Map,layoutExitNormalTriggers:[N], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"core",clientMetadata:new Hn([new Yj(S)]),M1:C(Q)}})]}; P3u=function(Y){Y=g.z(Y==null?void 0:Y.additionalPlayerOverlay,frt);if(!Y)return!1;var u=Y.slidingMessages;return Y.title&&u&&u.length!==0?!0:!1}; NZ7=function(Y,u,n,U,k){var m;if((m=Y.playerOverlay)==null||!m.instreamSurveyAdRenderer)return function(){return[]}; if(!wlS(Y))return function(){return new F("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:Y})}; var X=Y.playerOverlay.instreamSurveyAdRenderer,S=pB(X);return S<=0?function(){return new F("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:X})}:function(C,f){var Q=Qhu(C,n,U,function(N){var Z=N.slotId; N=f(N);var T=LB(X);Z=wn(k.j.get(),"LAYOUT_TYPE_SURVEY",Z);var r={layoutId:Z,layoutType:"LAYOUT_TYPE_SURVEY",Ec:"core"},K=new PT(k.K,U),L=new G4(k.K,Z),R=new ly(k.K,Z),c=new ZGc(k.K);return{layoutId:Z,layoutType:"LAYOUT_TYPE_SURVEY",ou:new Map,layoutExitNormalTriggers:[K,c],layoutExitSkipTriggers:[L],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[R],gD:[],Ec:"core",clientMetadata:new Hn([new ah(X),new wZ(u),new tW(S/1E3),new vn(T)]),M1:N(r),adLayoutLoggingData:X.adLayoutLoggingData}}); C=C3G(Y,n,Q.slotId,U,k,C,f);return C instanceof F?C:[Q].concat(g.Zu(C))}}; dgu=function(Y,u,n,U,k,m,X){X=X===void 0?!1:X;var S=[];try{var C=[];if(n.renderer.linearAdSequenceRenderer)var f=function(K){K=imG(K.slotId,n,u,k(K),U,m,X);C=K.OkG;return K.JW}; else if(n.renderer.instreamVideoAdRenderer)f=function(K){var L=K.slotId;K=k(K);var R=X,c=n.config.adPlacementConfig,x=Zmd(c),W=x.Sg,E=x.kD;x=n.renderer.instreamVideoAdRenderer;var J;if(x==null?0:(J=x.playerOverlay)==null?0:J.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var O=BI(x,R);J=Math.min(W+O.videoLengthSeconds*1E3,E);R=new Yu(0,[O.videoLengthSeconds]);E=O.videoLengthSeconds;var Xd=O.playerVars,T0=O.instreamAdPlayerOverlayRenderer,SM=O.playerOverlayLayoutRenderer, CY=O.adVideoId,uB=TZA(n),cc=O.ou;O=O.SL;var J7=x==null?void 0:x.adLayoutLoggingData;x=x==null?void 0:x.sodarExtensionData;L=wn(u.j.get(),"LAYOUT_TYPE_MEDIA",L);var uQ={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",Ec:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",ou:cc,layoutExitNormalTriggers:[new Sz(u.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"core",clientMetadata:new Hn([new gZ(U),new Ql(E),new NH(Xd),new Tg(W),new rM(J),T0&& new Ey(T0),SM&&new Hw(SM),new wZ(c),new zh(CY),new Ww(R),new AW(uB),x&&new Zi(x),new XU({current:null}),new sc({}),new xj(O)].filter(rMu)),M1:K(uQ),adLayoutLoggingData:J7}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var Q=MIB(Y,U,n.adSlotLoggingData,f);S.push(Q);for(var N=g.A(C),Z=N.next();!Z.done;Z=N.next()){var T=Z.value,r=T(Y,k);if(r instanceof F)return r;S.push.apply(S,g.Zu(r))}}catch(K){return new F(K,{errorMessage:K.message,AdPlacementRenderer:n,numberOfSurveyRenderers:shc(n)})}return S}; shc=function(Y){Y=(Y.renderer.linearAdSequenceRenderer||{}).linearAds;return Y!=null&&Y.length?Y.filter(function(u){var n,U;return((n=g.z(u,Ja))==null?void 0:(U=n.playerOverlay)==null?void 0:U.instreamSurveyAdRenderer)!=null}).length:0}; imG=function(Y,u,n,U,k,m,X){var S=u.config.adPlacementConfig,C=Zmd(S),f=C.Sg,Q=C.kD;C=(u.renderer.linearAdSequenceRenderer||{}).linearAds;if(C==null||!C.length)throw new TypeError("Expected linear ads");var N=[],Z={Kw:f,l5:0,Dag:N};C=C.map(function(r){return Ghm(Y,r,Z,n,U,S,k,Q,X)}).map(function(r,K){K=new Yu(K,N); return r(K)}); var T=C.map(function(r){return r.Vt}); return{JW:AMB(n,Y,f,T,S,TZA(u),U,Q,m),OkG:C.map(function(r){return r.LMc})}}; Ghm=function(Y,u,n,U,k,m,X,S,C){var f=BI(g.z(u,Ja),C),Q=n.Kw,N=n.l5,Z=Math.min(Q+f.videoLengthSeconds*1E3,S);n.Kw=Z;n.l5++;n.Dag.push(f.videoLengthSeconds);var T,r,K=(T=g.z(u,Ja))==null?void 0:(r=T.playerOverlay)==null?void 0:r.instreamSurveyAdRenderer;if(f.adVideoId==="nPpU29QrbiU"&&K==null)throw new TypeError("Survey slate media has no survey overlay");return function(L){Gf(f.playerVars,L);var R,c,x=f.videoLengthSeconds,W=f.playerVars,E=f.ou,J=f.SL,O=f.instreamAdPlayerOverlayRenderer,Xd=f.playerOverlayLayoutRenderer, T0=f.adVideoId,SM=(R=g.z(u,Ja))==null?void 0:R.adLayoutLoggingData;R=(c=g.z(u,Ja))==null?void 0:c.sodarExtensionData;c=wn(U.j.get(),"LAYOUT_TYPE_MEDIA",Y);var CY={layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",Ec:"adapter"};L={layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",ou:E,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"adapter",clientMetadata:new Hn([new gZ(X),new Ql(x),new NH(W),new Tg(Q),new rM(Z),new MH(N),new XU({current:null}), O&&new Ey(O),Xd&&new Hw(Xd),new wZ(m),new zh(T0),new Ww(L),R&&new Zi(R),K&&new Di(K),new sc({}),new xj(J)].filter(rMu)),M1:k(CY),adLayoutLoggingData:SM};x=NZ7(g.z(u,Ja),m,X,L.layoutId,U);return{Vt:L,LMc:x}}}; BI=function(Y,u){if(!Y)throw new TypeError("Expected instream video ad renderer");if(!Y.playerVars)throw new TypeError("Expected player vars in url encoded string");var n=aJ(Y.playerVars),U=Number(n.length_seconds);if(isNaN(U))throw new TypeError("Expected valid length seconds in player vars");var k=Number(Y.trimmedMaxNonSkippableAdDurationMs);U=isNaN(k)?U:Math.min(U,k/1E3);k=Y.playerOverlay||{};k=k.instreamAdPlayerOverlayRenderer===void 0?null:k.instreamAdPlayerOverlayRenderer;var m=Y.playerOverlay|| {};m=m.playerOverlayLayoutRenderer===void 0?null:m.playerOverlayLayoutRenderer;var X=n.video_id;X||(X=(X=Y.externalVideoId)?X:void 0);if(!X)throw new TypeError("Expected valid video id in IVAR");if(u&&U===0){var S;u=(S=jhS[X])!=null?S:U}else u=U;return{playerVars:n,videoLengthSeconds:u,instreamAdPlayerOverlayRenderer:k,playerOverlayLayoutRenderer:m,adVideoId:X,ou:Y.pings?Nf(Y.pings):new Map,SL:Q8(Y.pings)}}; TZA=function(Y){Y=Number(Y.driftRecoveryMs);return isNaN(Y)||Y<=0?null:Y}; Zmd=function(Y){var u=Y.adTimeOffset||{};Y=u.offsetEndMilliseconds;u=Number(u.offsetStartMilliseconds);if(isNaN(u))throw new TypeError("Expected valid start offset");Y=Number(Y);if(isNaN(Y))throw new TypeError("Expected valid end offset");return{Sg:u,kD:Y}}; Kzt=function(Y){var u,n=(u=yl(Y.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:u.current;if(!n)return null;u=yl(Y.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var U=Y.layoutId,k=yl(Y.clientMetadata,"metadata_type_content_cpn"),m=yl(Y.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),X=yl(Y.clientMetadata,"metadata_type_player_underlay_renderer"),S=yl(Y.clientMetadata,"metadata_type_ad_placement_config"),C=yl(Y.clientMetadata,"metadata_type_video_length_seconds"); var f=I$(Y.clientMetadata,"metadata_type_layout_enter_ms")&&I$(Y.clientMetadata,"metadata_type_layout_exit_ms")?(yl(Y.clientMetadata,"metadata_type_layout_exit_ms")-yl(Y.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{gM:U,contentCpn:k,Ak:n,VL:u,instreamAdPlayerOverlayRenderer:m,instreamAdPlayerUnderlayRenderer:X,adPlacementConfig:S,videoLengthSeconds:C,Kg:f,inPlayerLayoutId:yl(Y.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:yl(Y.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; tIY=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T,r){U=n6(U,"SLOT_TYPE_PLAYER_BYTES");Y=pwt(k,Y,X,n,U,C,f);if(Y instanceof F)return Y;var K;f=(K=yl(Y.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:K.layoutId;if(!f)return new F("Invalid adNotify layout");u=Lzm(f,k,m,n,S,u,C,Q,N,Z,T,r,X);return u instanceof F?u:[Y].concat(g.Zu(u))}; Lzm=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z){n=BZd(u,n,U,m,X,S,C,f,Q,N,Z);if(n instanceof F)return n;Y=ocM(u,Y,X,k,n);return Y instanceof F?Y:[].concat(g.Zu(Y.WM),[Y.yx])}; vcW=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T){u=BZd(Y,u,n,k,m,S,C,f,Q,N,Z,T);if(u instanceof F)return u;Y=cMu(Y,n,m,X,U,S.W$,u);return Y instanceof F?Y:Y.WM.concat(Y.yx)}; BZd=function(Y,u,n,U,k,m,X,S,C,f,Q,N){var Z=o3(U,n,f);return Z instanceof Ec?new F(Z):f.L.Y().experiments.vz("html5_refactor_in_player_slot_generation")?function(T){var r=new Yu(0,[Z.GK]);T=R6B(u,Z.layoutId,Z.xM,n,cI(Z.playerVars,Z.P8,m,C,r),Z.GK,k,r,X(T),S.get(Z.xM.externalVideoId),N);r=[];if(Z.xM.playerOverlay.instreamAdPlayerOverlayRenderer){var K=Kzt(T);if(!K)return Xj("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,T),{layout:T,WM:[]}; r=[Dgt(Y,K.contentCpn,K.gM,function(R){return vI(u,R.slotId,"core",K,a$(Q,R))},K.inPlayerSlotId)].concat(g.Zu(r)); if(K.instreamAdPlayerUnderlayRenderer&&R3(f)){var L=K.instreamAdPlayerUnderlayRenderer;r=[xgc(Y,K.contentCpn,K.gM,function(R){return lre(u,R.slotId,L,K.adPlacementConfig,K.gM,a$(Q,R))})].concat(g.Zu(r))}}return{layout:T, WM:r}}:function(T){var r=new Yu(0,[Z.GK]); return{layout:R6B(u,Z.layoutId,Z.xM,n,cI(Z.playerVars,Z.P8,m,C,r),Z.GK,k,r,X(T),S.get(Z.xM.externalVideoId),N),WM:[]}}}; o3=function(Y,u,n){if(!Y.playerVars)return new Ec("No playerVars available in InstreamVideoAdRenderer.");var U,k;if(Y.elementId==null||Y.playerVars==null||Y.playerOverlay==null||((U=Y.playerOverlay)==null?void 0:U.instreamAdPlayerOverlayRenderer)==null&&((k=Y.playerOverlay)==null?void 0:k.playerOverlayLayoutRenderer)==null||Y.pings==null||Y.externalVideoId==null)return new Ec("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:Y});U=aJ(Y.playerVars);k=Number(U.length_seconds); isNaN(k)&&(k=0,Xj("Expected valid length seconds in player vars but got NaN"));if(n.D_(u.kind==="AD_PLACEMENT_KIND_START")){if(Y.layoutId===void 0)return new Ec("Expected server generated layout ID in instreamVideoAdRenderer");u=Y.layoutId}else u=Y.elementId;return{layoutId:u,xM:Y,playerVars:U,P8:Y.playerVars,GK:k}}; cI=function(Y,u,n,U,k){Y.iv_load_policy=U;u=aJ(u);if(u.cta_conversion_urls)try{Y.cta_conversion_urls=JSON.parse(u.cta_conversion_urls)}catch(m){Xj(m)}n.Pc&&(Y.ctrl=n.Pc);n.C1&&(Y.ytr=n.C1);n.Xx&&(Y.ytrcc=n.Xx);n.isMdxPlayback&&(Y.mdx="1");Y.vvt&&(Y.vss_credentials_token=Y.vvt,n.eU&&(Y.vss_credentials_token_type=n.eU),n.mdxEnvironment&&(Y.mdx_environment=n.mdxEnvironment));Gf(Y,k);return Y}; h6B=function(Y){var u=new Map;Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next())(n=n.value.renderer.remoteSlotsRenderer)&&n.hostElementId&&u.set(n.hostElementId,n);return u}; DH=function(Y){return Y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; wwW=function(Y){return Y!=null}; EcS=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T,r){for(var K=[],L=g.A(Y),R=L.next();!R.done;R=L.next())if(R=R.value,!o9A(R)&&!xJ0(R)){var c=DH(R)&&!!R.slotEntryTrigger.beforeContentVideoIdStartedTrigger,x=C.D_(c),W=Wz0(R,f,U,n.iE,x);if(W instanceof F)return W;var E=void 0,J={slotId:R.adSlotMetadata.slotId,slotType:R.adSlotMetadata.slotType,slotPhysicalPosition:(E=R.adSlotMetadata.slotPhysicalPosition)!=null?E:1,Ec:"core",slotEntryTrigger:W.slotEntryTrigger,slotFulfillmentTriggers:W.slotFulfillmentTriggers, slotExpirationTriggers:W.slotExpirationTriggers},O=g.z(R.fulfillmentContent.fulfilledLayout,ue);if(O){if(!YB(O))return new F("Invalid PlayerBytesAdLayoutRenderer");E=N&&!(DH(R)&&R.slotEntryTrigger.beforeContentVideoIdStartedTrigger);W=W.slotFulfillmentTriggers.some(function(Xd){return Xd instanceof CU}); x=E?e6m(J,R.adSlotMetadata.triggerEvent,O,n,U,m,f,Y,x,Z,W,T):bmd(J,R.adSlotMetadata.triggerEvent,O,u,n,U,k,m,X,S,C,f,Y,Q,x,R.adSlotMetadata.triggeringSourceLayoutId);if(x instanceof F)return x;W=[];r?W.push(new fj({current:r})):W.push(new fj({current:null}));DH(R)&&W.push(new ey({gF:DH(R)&&!!R.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));E&&W.push(new sc({}));n.W$&&W.push(new R$({}));W.push(new wM(c));R=Object.assign({},J,{clientMetadata:new Hn(W),fulfilledLayout:x.layout,adSlotLoggingData:R.adSlotMetadata.adSlotLoggingData}); K.push.apply(K,g.Zu(x.WM));K.push(R)}else if(c=g.z(R.fulfillmentContent.fulfilledLayout,Xr)){if(!BFY(c))return new F("Invalid PlayerUnderlayAdLayoutRenderer");c=Ir0(c,U,n.iE,m,J,R.adSlotMetadata.triggerEvent,R.adSlotMetadata.triggeringSourceLayoutId);if(c instanceof F)return c;R=Object.assign({},J,{clientMetadata:new Hn([]),fulfilledLayout:c,adSlotLoggingData:R.adSlotMetadata.adSlotLoggingData});K.push(R)}else if(c=g.z(R.fulfillmentContent.fulfilledLayout,v9e)){if(!spM(c))return new F("Invalid AboveFeedAdLayoutRenderer"); c=z6u(c,U,n.iE,m,J,R.adSlotMetadata.triggerEvent,R.adSlotMetadata.triggeringSourceLayoutId);if(c instanceof F)return c;R=Object.assign({},J,{clientMetadata:new Hn([]),fulfilledLayout:c,adSlotLoggingData:R.adSlotMetadata.adSlotLoggingData});K.push(R)}else if(c=g.z(R.fulfillmentContent.fulfilledLayout,Rtd)){if(!WT(c.adLayoutMetadata)||!g.z(c.renderingContent,ez))return new F("Invalid BelowPlayerAdLayoutRenderer");c=z6u(c,U,n.iE,m,J,R.adSlotMetadata.triggerEvent,R.adSlotMetadata.triggeringSourceLayoutId); if(c instanceof F)return c;R=Object.assign({},J,{clientMetadata:new Hn([]),fulfilledLayout:c,adSlotLoggingData:R.adSlotMetadata.adSlotLoggingData});K.push(R)}else if(c=g.z(R.fulfillmentContent.fulfilledLayout,PI)){if(!U7(c))return new F("Invalid PlayerBytesSequenceItemAdLayoutRenderer");c=gcY(c,U,n.iE,m,J,R.adSlotMetadata.triggerEvent);if(c instanceof F)return c;R=Object.assign({},J,{clientMetadata:new Hn([]),fulfilledLayout:c,adSlotLoggingData:R.adSlotMetadata.adSlotLoggingData});K.push(R)}else return new F("Unable to retrieve a client slot ["+ J.slotType+"] from a given AdSlotRenderer")}return K}; gcY=function(Y,u,n,U,k,m){var X={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,Ec:"core"};u=xB(Y,u,n);return u instanceof F?u:(n=g.z(Y.renderingContent,nB))&&n.pings?Object.assign({},X,{renderingContent:Y.renderingContent,ou:Nf(n.pings)},u,{M1:a$(U,k)(X),clientMetadata:new Hn([new wZ(le(m))]),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData}):new F("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; z6u=function(Y,u,n,U,k,m,X){var S={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,Ec:"core"};u=xB(Y,u,n);if(u instanceof F)return u;n=[];n.push(new wZ(le(m)));m==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&X!==void 0&&n.push(new uG(X));return Object.assign({},S,{renderingContent:Y.renderingContent,ou:new Map([["impression",HmW(Y)]])},u,{M1:a$(U,k)(S),clientMetadata:new Hn(n),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData})}; Ir0=function(Y,u,n,U,k,m,X){if(Y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(X=g.z(Y.renderingContent,kB))if(X=g.z(X.sidePanel,LcY)){var S={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,Ec:"core"};u=xB(Y,u,n);Y=u instanceof F?u:Object.assign({},S,{renderingContent:Y.renderingContent,ou:new Map([["impression",X.impressionPings||[]],["resume",X.resumePings||[]]])},u,{M1:a$(U,k)(S),clientMetadata:new Hn([new wZ(le(m))]),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData})}else Y= new F("DismissablePanelTextPortraitImageRenderer is missing");else Y=new F("SqueezebackPlayerSidePanelRenderer is missing");else Y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.z(Y.renderingContent,jp7)?(X={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,Ec:"core"},u=xB(Y,u,n),Y=u instanceof F?u:Object.assign({},X,{renderingContent:Y.renderingContent,ou:new Map},u,{M1:a$(U,k)(X),clientMetadata:new Hn([new wZ(le(m))]),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData})): Y=new F("CounterfactualRenderer is missing"):Y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?Y=new F("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?Y=new F("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.z(Y.renderingContent,mo)?(m={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType, Ec:"core"},u=xB(Y,u,n),Y=u instanceof F?u:X?Object.assign({},m,{renderingContent:Y.renderingContent,ou:new Map},u,{M1:a$(U,k)(m),clientMetadata:new Hn([new uG(X)]),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData}):new F("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):Y=new F("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):Y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.z(Y.renderingContent,Kcd)? (m={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,Ec:"core"},u=xB(Y,u,n),Y=u instanceof F?u:Object.assign({},m,{renderingContent:Y.renderingContent,ou:new Map([])},u,{M1:a$(U,k)(m),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Hn([])})):Y=new F("AdsEngagementPanelSectionListViewModel is missing"):Y=new F("LayoutType ["+Y.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return Y}; e6m=function(Y,u,n,U,k,m,X,S,C,f,Q,N){if((N==null?void 0:N.Yx)===void 0||(N==null?void 0:N.TV)===void 0)return new F("Cached ad break range from cue point is missing");var Z=xB(n,k,U.iE);if(Z instanceof F)return Z;Z={layoutExitMuteTriggers:[],layoutExitNormalTriggers:Z.layoutExitNormalTriggers,layoutExitSkipTriggers:[],gD:[],layoutExitUserInputSubmittedTriggers:[]};if(g.z(n.renderingContent,Ja))return Y=yMW(Y,u,n,Z,k,m,S,C,U.iE,X,N.Yx,N.TV),Y instanceof F?Y:Y.MN===void 0?new F("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:Y.layout,WM:[Y.MN]};var T=g.z(n.renderingContent,Ot);if(T){if(!WT(n.adLayoutMetadata))return new F("Invalid ad layout metadata");if(!F3(T))return new F("Invalid sequential layout");T=T.sequentialLayouts.map(function(r){return r.playerBytesAdLayoutRenderer}); Y=VIA(Y,u,n,Z,T,k,U,m,X,C,S,f,N.Yx,N.TV,Q);return Y instanceof F?Y:{layout:Y.G9,WM:Y.WM}}return new F("Not able to convert a sequential layout")}; VIA=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T,r){var K=Ome(k,Z,T);if(K instanceof F)return K;var L=[],R=[];K=g.A(K);for(var c=K.next();!c.done;c=K.next()){var x=c.value;c=Y;var W=k[x.l5],E=x,J=u;x=m;var O=X,Xd=S,T0=C,SM=f,CY=Q,uB=hI(W);if(uB instanceof F)c=uB;else{var cc={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,Ec:"adapter"};E=FzG(J,W,E,x);E instanceof F?c=E:(c=Object.assign({},cc,wp,{ou:uB,renderingContent:W.renderingContent,clientMetadata:new Hn(E),M1:a$(Xd,c)(cc), adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData}),c=(W=WI(CY,c,x,O.iE,Xd,T0,SM,void 0,!0))?W instanceof F?W:{layout:c,MN:W}:new F("Expecting associatedInPlayerSlot"))}if(c instanceof F)return c;L.push(c.layout);R.push(c.MN)}k={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Ec:"core"};u=[new AW(Number(n.driftRecoveryMs)),new Tg(Z),new rM(T),new wZ(le(u)),new hW(N),new sc({})];r&&u.push(new bG({}));return{G9:Object.assign({},k,U,{i5:L,ou:new Map,clientMetadata:new Hn(u), M1:a$(S,Y)(k)}),WM:R}}; yMW=function(Y,u,n,U,k,m,X,S,C,f,Q,N){if(!YB(n))return new F("Invalid PlayerBytesAdLayoutRenderer");var Z=hI(n);if(Z instanceof F)return Z;var T={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Ec:"core"},r=g.z(n.renderingContent,Ja);if(!r)return new F("Invalid rendering content for DAI media layout");r=BI(r,!1);Q={KW:r,l5:0,Kw:Q,Qf:Math.min(Q+r.videoLengthSeconds*1E3,N),Xt:new Yu(0,[r.videoLengthSeconds])};var K;N=(K=Number(n.driftRecoveryMs))!=null?K:void 0;u=FzG(u, n,Q,k,N);if(u instanceof F)return u;Y=Object.assign({},T,U,{ou:Z,renderingContent:n.renderingContent,clientMetadata:new Hn(u),M1:a$(m,Y)(T),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData});return(k=WI(X,Y,k,C,m,f,S,void 0,!0))?k instanceof F?k:{layout:Y,MN:k}:new F("Expecting associatedInPlayerSlot")}; bmd=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T,r,K){var L=xB(n,m,k.iE);if(L instanceof F)return L;if(g.z(n.renderingContent,Ja)){C=JMe([n],k,C);if(C instanceof F)return C;if(C.length!==1)return new F("Only expected one media layout.");Y=qyA(Y,u,n,L,C[0],void 0,"core",U,m,X,S,f,Z,T,r,k.iE,N,void 0,K);return Y instanceof F?Y:{layout:Y.layout,WM:Y.MN?[Y.MN]:[]}}var R=g.z(n.renderingContent,Ot);if(R){if(!WT(n.adLayoutMetadata))return new F("Invalid ad layout metadata");if(!F3(R))return new F("Invalid sequential layout"); R=R.sequentialLayouts.map(function(c){return c.playerBytesAdLayoutRenderer}); Y=arB(Y,u,n.adLayoutMetadata,L,R,U,m,k,C,X,S,f,Q,N,r,Z,T,K);return Y instanceof F?Y:{layout:Y.G9,WM:Y.WM}}return new F("Not able to convert a sequential layout")}; arB=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T,r,K,L,R){var c=new Ih({current:null}),x=JMe(k,S,C);if(x instanceof F)return x;C=[];for(var W=[],E=void 0,J=0;J0&&(J.push(R),J.push(new b3(E.adPodSkipTarget)));(m=f.get(E.externalVideoId))&&J.push(new Lj(m));m=J}else m=new F("Invalid vod media renderer")}if(m instanceof F)return m;Y=Object.assign({},X,U,{ou:x,renderingContent:n.renderingContent,clientMetadata:new Hn(m),M1:a$(Q,Y)(X),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData});n=g.z(n.renderingContent,Ja);if(!n||!V$(n))return new F("Invalid meida renderer");N=j1(N,n.externalVideoId);N.instreamVideoAdRenderer=n;N.B_="AD_PLACEMENT_KIND_START";return T?(C=WI(Z,Y,C,K,Q,L,r,R,!1),C instanceof F?C:uUm(Y.layoutId,Z)&&C?{layout:Object.assign({},Y,{clientMetadata:new Hn(m.concat(new Oy(C)))})}:{layout:Y,MN:C}): {layout:Y}}; $gt=function(Y,u,n,U,k){if(!YB(u))return new F("Invalid PlayerBytesAdLayoutRenderer");var m=g.z(u.renderingContent,Fg);if(!m||m.durationMilliseconds===void 0)return new F("Invalid endcap renderer");var X={layoutId:u.adLayoutMetadata.layoutId,layoutType:u.adLayoutMetadata.layoutType,Ec:"adapter"};U=[new Bn(m.durationMilliseconds),new vn({impressionCommands:void 0,abandonCommands:m.abandonCommands?[{commandExecutorCommand:m.abandonCommands}]:void 0,completeCommands:m.completionCommands}),new wZ(U), new Uc("LAYOUT_TYPE_ENDCAP")];if(k){U.push(new eI(k.Xt.adPodIndex-1));U.push(new MH(k.Xt.adPodIndex));var S;U.push(new b3((S=k.adPodSkipTarget)!=null?S:-1))}return Object.assign({},X,wp,{renderingContent:u.renderingContent,clientMetadata:new Hn(U),ou:m.skipPings?new Map([["skip",m.skipPings]]):new Map,M1:a$(n,Y)(X),adLayoutLoggingData:u.adLayoutMetadata.adLayoutLoggingData})}; WI=function(Y,u,n,U,k,m,X,S,C){Y=Y.filter(function(N){return N.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&N.adSlotMetadata.triggeringSourceLayoutId===u.layoutId}); if(Y.length!==0){if(Y.length!==1)return new F("Invalid InPlayer slot association for the given PlayerBytes layout");Y=Y[0];X=Wz0(Y,m,n,U,X);if(X instanceof F)return X;var f;m={slotId:Y.adSlotMetadata.slotId,slotType:Y.adSlotMetadata.slotType,slotPhysicalPosition:(f=Y.adSlotMetadata.slotPhysicalPosition)!=null?f:1,Ec:"core",slotEntryTrigger:X.slotEntryTrigger,slotFulfillmentTriggers:X.slotFulfillmentTriggers,slotExpirationTriggers:X.slotExpirationTriggers};f=g.z(Y.fulfillmentContent.fulfilledLayout, cCW);if(!f||!ACM(f))return new F("Invalid InPlayerAdLayoutRenderer");X={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,Ec:"core"};n=xB(f,n,U);if(n instanceof F)return n;U=[];var Q=f.adLayoutMetadata.layoutType;C&&U.push(new sc({}));if(Q==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")U.push.apply(U,g.Zu(nju(Y.adSlotMetadata.triggerEvent,u)));else if(Q==="LAYOUT_TYPE_ENDCAP"||Q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){U.push(new wZ(le(Y.adSlotMetadata.triggerEvent))); if(Q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new F("Cannot parse endcap layout since AdUxReadyApi is not provided");S&&U.push(S)}else return new F("Not able to parse an SDF InPlayer layout");k=Object.assign({},X,n,{renderingContent:f.renderingContent,ou:new Map,M1:a$(k,m)(X),clientMetadata:new Hn(U),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},m,{fulfilledLayout:k,clientMetadata:new Hn([])})}}; nju=function(Y,u){var n=[];n.push(new wZ(le(Y)));n.push(new uG(u.layoutId));(Y=yl(u.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&n.push(new XU(Y));(Y=yl(u.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&n.push(new Ih(Y));(Y=yl(u.clientMetadata,"metadata_type_remote_slots_data"))&&n.push(new Lj(Y));(Y=yl(u.clientMetadata,"metadata_type_ad_next_params"))&&n.push(new oh(Y));(Y=yl(u.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&n.push(new cw(Y));(Y= yl(u.clientMetadata,"metadata_type_ad_pod_info"))&&n.push(new Ww(Y));(u=yl(u.clientMetadata,"metadata_type_ad_video_id"))&&n.push(new zh(u));return n}; Ycu=function(Y,u,n,U,k,m){function X(f){return e1(u,f)} var S=U.qT.inPlayerSlotId,C={layoutId:U.qT.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Ec:"core"};n={slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:new mu(X,Y),slotFulfillmentTriggers:[new Aa(X,S)],slotExpirationTriggers:[new cT(X,S),new MM(X,n)]};Y=Object.assign({},C,{layoutExitNormalTriggers:[new PT(X,Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],ou:new Map,clientMetadata:new Hn([new JM(U.qT), new wZ(U.adPlacementConfig),k]),M1:a$(m,n)(C),adLayoutLoggingData:U.qT.adLayoutLoggingData});return Object.assign({},n,{clientMetadata:new Hn([new jy(Y)])})}; uUm=function(Y,u){u=g.A(u);for(var n=u.next();!n.done;n=u.next())if(n=n.value,n.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var U=g.z(n.fulfillmentContent.fulfilledLayout,Xr);if(U&&(U=g.z(U.renderingContent,kB))&&U.associatedPlayerBytesLayoutId===Y)return n}}; Wz0=function(Y,u,n,U,k){var m=UHS(dp(Y.slotEntryTrigger,n,U),k,Y,u);if(m instanceof F)return m;for(var X=[],S=g.A(Y.slotFulfillmentTriggers),C=S.next();!C.done;C=S.next()){C=dp(C.value,n,U);if(C instanceof F)return C;X.push(C)}X=kg0(X,k,Y,u);u=[];Y=g.A(Y.slotExpirationTriggers);for(k=Y.next();!k.done;k=Y.next()){k=dp(k.value,n,U);if(k instanceof F)return k;u.push(k)}return{slotEntryTrigger:m,slotFulfillmentTriggers:X,slotExpirationTriggers:u}}; UHS=function(Y,u,n,U){return u&&n.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Y instanceof uy?new $q(function(k){return e1(U,k)},n.adSlotMetadata.slotId):Y}; kg0=function(Y,u,n,U){return u&&n.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?Y.map(function(k){return k instanceof Aa?new Dw(function(m){return e1(U,m)},n.adSlotMetadata.slotId):k}):Y}; xB=function(Y,u,n){for(var U=[],k=g.A(Y.layoutExitNormalTriggers||[]),m=k.next();!m.done;m=k.next()){m=dp(m.value,u,n);if(m instanceof F)return m;U.push(m)}k=[];m=g.A(Y.layoutExitSkipTriggers||[]);for(var X=m.next();!X.done;X=m.next()){X=dp(X.value,u,n);if(X instanceof F)return X;k.push(X)}m=[];X=g.A(Y.layoutExitMuteTriggers||[]);for(var S=X.next();!S.done;S=X.next()){S=dp(S.value,u,n);if(S instanceof F)return S;m.push(S)}X=[];Y=g.A(Y.layoutExitUserInputSubmittedTriggers||[]);for(S=Y.next();!S.done;S= Y.next()){S=dp(S.value,u,n);if(S instanceof F)return S;X.push(S)}return{layoutExitNormalTriggers:U,layoutExitSkipTriggers:k,layoutExitMuteTriggers:m,layoutExitUserInputSubmittedTriggers:X,gD:[]}}; hI=function(Y){var u=g.z(Y.renderingContent,Ja);if(u==null?0:u.pings)return Nf(u.pings);Y=g.z(Y.renderingContent,Fg);return(Y==null?0:Y.skipPings)?new Map([["skip",Y.skipPings]]):new Map}; FzG=function(Y,u,n,U,k){u=g.z(u.renderingContent,Ja);if(!u)return new F("Invalid rendering content for DAI media layout");Y=[new gZ(U),new Ql(n.KW.videoLengthSeconds),new NH(n.KW.playerVars),new Tg(n.Kw),new rM(n.Qf),new MH(n.l5),new wZ(le(Y)),new zh(n.KW.adVideoId),new Ww(n.Xt),u.sodarExtensionData&&new Zi(u.sodarExtensionData),new XU({current:null}),new sc({}),new xj(Q8(u.pings))].filter(wwW);k!==void 0&&Y.push(new AW(k));return Y}; Ome=function(Y,u,n){Y=Y.map(function(C){return BI(g.z(C.renderingContent,Ja),!1)}); var U=Y.map(function(C){return C.videoLengthSeconds}),k=U.map(function(C,f){return new Yu(f,U)}),m=u,X=n,S=[]; Y.forEach(function(C,f){X=Math.min(m+C.videoLengthSeconds*1E3,n);Gf(C.playerVars,k[f]);S.push({KW:C,Kw:m,Qf:X,l5:f,Xt:k[f]});m=X}); return S}; JMe=function(Y,u,n){for(var U=[],k=g.A(Y),m=k.next();!m.done;m=k.next())if(m=g.z(m.value.renderingContent,Ja)){if(!V$(m))return new F("Invalid vod media renderer");U.push(mHu(m))}k=U.map(function(N){return N.GK}); m=[];for(var X=0,S=0;S0?SM:-1;else if(cc= g.z(uB,Fg)){uB=rWW(Y,u,n,cc,m,K,S,O,SM);if(uB instanceof F){T=uB;break a}uB=uB(Z);L.push(uB.rV);R=[].concat(g.Zu(uB.NS),g.Zu(R));c=[].concat(g.Zu(uB.Ue),g.Zu(c));uB.MN&&(T0=[uB.MN].concat(g.Zu(T0)))}else if(cc=g.z(uB,aa)){if(T===void 0){T=new F("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:cc});break a}uB=dHA(Y,u,n,m,cc,J,S,T,K,h0(Q,"supports_multi_step_on_desktop"));if(uB instanceof F){T=uB;break a}uB=uB(Z);L.push(uB.rV);uB.MN&&T0.push(uB.MN); R=[].concat(g.Zu(uB.NS),g.Zu(R));c=[].concat(g.Zu(uB.Ue),g.Zu(c));x=[].concat(g.Zu(uB.aG),g.Zu(x));W=[].concat(g.Zu(uB.s7),g.Zu(W));E=[J].concat(g.Zu(E))}else if(uB=g.z(uB,$u)){uB=GgS(Y,u,n,m,uB,J,S,K);if(uB instanceof F){T=uB;break a}uB=uB(Z);L.push(uB.rV);uB.MN&&T0.push(uB.MN);c=[].concat(g.Zu(uB.Ue),g.Zu(c))}else{T=new F("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}T={i5:L,layoutExitSkipTriggers:R,layoutExitUserInputSubmittedTriggers:x,gD:W,layoutExitMuteTriggers:c,vy:E,WM:T0}}}else a:if(K= oju(U,n,Q),K instanceof F)T=K;else{L=0;R=[];c=[];x=[];W=[];E=[];J=[];O=new Pn({current:null});Xd=new Ih({current:null});T0=!1;CY=[];SM=-1;r=g.A(U);for(uB=r.next();!uB.done;uB=r.next())if(uB=uB.value,g.z(uB,qM)){uB=MyB(u,n,g.z(uB,qM),S);if(uB instanceof F){T=uB;break a}uB=uB(Z);R.push(uB.rV);c=[].concat(g.Zu(uB.NS),g.Zu(c));x=[].concat(g.Zu(uB.Ue),g.Zu(x));uB.MN&&(CY=[uB.MN].concat(g.Zu(CY)))}else if(g.z(uB,Ja)){SM=o3(g.z(uB,Ja),n,Q);if(SM instanceof Ec){T=new F(SM);break a}uB=new Yu(L,K);uB=cWA(u, SM.layoutId,SM.xM,n,cI(SM.playerVars,SM.P8,X,f,uB),SM.GK,m,uB,S(Z),Xd,C.get(SM.xM.externalVideoId),void 0,N);L++;R.push(uB.rV);c=[].concat(g.Zu(uB.NS),g.Zu(c));x=[].concat(g.Zu(uB.Ue),g.Zu(x));T0||(J.push(Xd),T0=!0);SM=(SM=SM.xM.adPodSkipTarget)&&SM>0?SM:-1}else if(g.z(uB,Fg)){uB=rWW(Y,u,n,g.z(uB,Fg),m,L,S,Xd,SM);if(uB instanceof F){T=uB;break a}uB=uB(Z);R.push(uB.rV);c=[].concat(g.Zu(uB.NS),g.Zu(c));x=[].concat(g.Zu(uB.Ue),g.Zu(x));uB.MN&&(CY=[uB.MN].concat(g.Zu(CY)))}else if(g.z(uB,aa)){if(T=== void 0){T=new F("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.z(uB,aa)});break a}uB=dHA(Y,u,n,m,g.z(uB,aa),O,S,T,L,h0(Q,"supports_multi_step_on_desktop"));if(uB instanceof F){T=uB;break a}uB=uB(Z);R.push(uB.rV);uB.MN&&CY.push(uB.MN);c=[].concat(g.Zu(uB.NS),g.Zu(c));x=[].concat(g.Zu(uB.Ue),g.Zu(x));W=[].concat(g.Zu(uB.aG),g.Zu(W));E=[].concat(g.Zu(uB.s7),g.Zu(E));J=[O].concat(g.Zu(J))}else if(g.z(uB,$u)){uB=GgS(Y,u,n,m,g.z(uB,$u),O,S,L);if(uB instanceof F){T=uB;break a}uB=uB(Z);R.push(uB.rV);uB.MN&&CY.push(uB.MN);x=[].concat(g.Zu(uB.Ue),g.Zu(x))}else{T=new F("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}T={i5:R,layoutExitSkipTriggers:c,layoutExitUserInputSubmittedTriggers:W,gD:E,layoutExitMuteTriggers:x,vy:J,WM:CY}}T instanceof F?Z=T:(E=Z.slotId,K=T.i5,L=T.layoutExitSkipTriggers,R=T.layoutExitMuteTriggers,c=T.layoutExitUserInputSubmittedTriggers,x=T.vy,Z=S(Z),W=k?k.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",E=k?k.layoutId: wn(u.j.get(),W,E),J={layoutId:E,layoutType:W,Ec:"core"},Z={layout:{layoutId:E,layoutType:W,ou:new Map,layoutExitNormalTriggers:[new rf(u.K,E)],layoutExitSkipTriggers:L,layoutExitMuteTriggers:R,layoutExitUserInputSubmittedTriggers:c,gD:[],Ec:"core",clientMetadata:new Hn([new Sy(K)].concat(g.Zu(x))),M1:Z(J)},WM:T.WM});return Z}}; oju=function(Y,u,n){var U=[];Y=g.A(Y);for(var k=Y.next();!k.done;k=Y.next())if(k=k.value,g.z(k,Ja)){k=o3(g.z(k,Ja),u,n);if(k instanceof Ec)return new F(k);U.push(k.GK)}return U}; ROu=function(Y,u,n,U,k,m,X,S){if(!ht7(n,S===void 0?!1:S))return new F("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:n});var C=pB(n);if(C<=0)return new F("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:n});var f=new Pn({current:null}),Q=XwM(Y,u,n,f,U,m,X);return vju(Y,U,m,C,k,function(N,Z){var T=N.slotId,r=LB(n);N=X(N);var K,L=(K=gp(u,U,n.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?K: wn(u.j.get(),"LAYOUT_TYPE_MEDIA_BREAK",T);T={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ec:"core"};K=Q(L,Z);var R=yl(K.clientMetadata,"metadata_type_fulfilled_layout");R||Xj("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");r=[new wZ(U),new Bn(C),new vn(r),f];R&&r.push(new Uc(R.layoutType));return{R2c:{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ou:new Map,layoutExitNormalTriggers:[new rf(u.K,L)],layoutExitSkipTriggers:[new G4(u.K, Z.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new ly(u.K,Z.layoutId)],gD:[],Ec:"core",clientMetadata:new Hn(r),M1:N(T)},U9:K}})}; DHY=function(Y){if(!ete(Y))return!1;var u=g.z(Y.adVideoStart,O7);return u?g.z(Y.linearAd,Ja)&&HT(u)?!0:(Xj("Invalid Sandwich with notify"),!1):!1}; xHS=function(Y){if(Y.linearAds==null)return!1;Y=g.z(Y.adStart,O7);return Y?HT(Y)?!0:(Xj("Invalid LASR with notify"),!1):!1}; lic=function(Y){if(!WcG(Y))return!1;Y=g.z(Y.adStart,O7);return Y?HT(Y)?!0:(Xj("Invalid LASR with notify"),!1):!1}; Fr=function(Y,u,n,U,k,m,X,S,C,f){this.G=Y;this.j=u;this.K=n;this.hJ=U;this.Ux=k;this.X=m;this.LG=X;this.gw=S;this.BM=C;this.loadPolicy=f===void 0?1:f}; MN=function(Y,u,n,U,k,m,X,S,C,f,Q){var N=[];if(u.length===0&&U.length===0&&n.length===0)return N;u=u.filter(y$);var Z=n.filter(DJu),T=U.filter(y$),r=new Map,K=h6B(u),L=n.some(function(uQ){var sq;return(uQ==null?void 0:(sq=uQ.adSlotMetadata)==null?void 0:sq.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),R=n.some(function(uQ){var sq; return(uQ==null?void 0:(sq=uQ.adSlotMetadata)==null?void 0:sq.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),c=n.some(function(uQ){var sq; return(uQ==null?void 0:(sq=uQ.adSlotMetadata)==null?void 0:sq.slotType)==="SLOT_TYPE_IN_PLAYER"}),x=n.some(function(uQ){var sq,CR; return(uQ==null?void 0:(sq=uQ.adSlotMetadata)==null?void 0:sq.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(uQ==null?void 0:(CR=uQ.adSlotMetadata)==null?void 0:CR.slotType)==="SLOT_TYPE_ABOVE_FEED"}); n=n.some(function(uQ){var sq;return(uQ==null?void 0:(sq=uQ.adSlotMetadata)==null?void 0:sq.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(L||R||c||x||n)f=EcS(Z,u,S,k,K,Y.Ux.get(),Y.loadPolicy,r,Y.hJ.get(),Y.G.get(),c,X,C,f,Q),f instanceof F?Xj(f,void 0,void 0,{contentCpn:k}):N.push.apply(N,g.Zu(f));f=g.A(u);for(Q=f.next();!Q.done;Q=f.next())Q=Q.value,n=hOY(Y,r,Q,k,m,X,L,S,K,C,Z),n instanceof F?Xj(n,void 0,void 0,{renderer:Q.renderer,config:Q.config.adPlacementConfig,kind:Q.config.adPlacementConfig.kind,contentCpn:k,daiEnabled:X}):N.push.apply(N,g.Zu(n));wne(Y.hJ.get())||(m=Wwu(Y,T,k,S,K,r),N.push.apply(N,g.Zu(m)));if(Y.X===null|| X&&!S.rW){var W,E,J;Y=S.W$&&u.length===1&&((W=u[0].config)==null?void 0:(E=W.adPlacementConfig)==null?void 0:E.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((J=u[0].renderer)==null?void 0:J.adBreakServiceRenderer);if(!N.length&&!Y){var O,Xd,T0,SM;Xj("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":u.length,contentCpn:k,"first APR kind":(O=u[0])==null?void 0:(Xd=O.config)==null?void 0:(T0=Xd.adPlacementConfig)==null?void 0:T0.kind,renderer:(SM= u[0])==null?void 0:SM.renderer})}return N}W=U.filter(y$);N.push.apply(N,g.Zu(Uge(r,W,Y.j.get(),Y.X,k,L)));if(!N.length){var CY,uB,cc,J7;Xj("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":u.length,contentCpn:k,daiEnabled:X.toString(),"first APR kind":(CY=u[0])==null?void 0:(uB=CY.config)==null?void 0:(cc=uB.adPlacementConfig)==null?void 0:cc.kind,renderer:(J7=u[0])==null?void 0:J7.renderer})}return N}; Wwu=function(Y,u,n,U,k,m){function X(Z){return a$(Y.Ux.get(),Z)} var S=[];u=g.A(u);for(var C=u.next();!C.done;C=u.next()){C=C.value;var f=C.renderer,Q=f.sandwichedLinearAdRenderer,N=f.linearAdSequenceRenderer;Q&&DHY(Q)?(Xj("Found AdNotify with SandwichedLinearAdRenderer"),N=g.z(Q.adVideoStart,O7),Q=g.z(Q.linearAd,Ja),AI(m,f,C.config.adPlacementConfig.kind),f=void 0,N=Lzm((f=N)==null?void 0:f.layout.layoutId,Y.j.get(),Y.K.get(),C.config.adPlacementConfig,C.adSlotLoggingData,Q,n,U,X,k,Y.loadPolicy,Y.hJ.get(),Y.Ux.get()),N instanceof F?Xj(N):S.push.apply(S,g.Zu(N))): N&&(!N.adLayoutMetadata&&xHS(N)||N.adLayoutMetadata&&lic(N))&&(Xj("Found AdNotify with LinearAdSequenceRenderer"),AI(m,f,C.config.adPlacementConfig.kind),f=void 0,Q=AWd((f=g.z(N.adStart,O7))==null?void 0:f.layout.layoutId,Y.j.get(),Y.K.get(),C.config.adPlacementConfig,C.adSlotLoggingData,N.linearAds,WT(N.adLayoutMetadata)?N.adLayoutMetadata:void 0,n,U,X,k,Y.loadPolicy,Y.hJ.get()),Q instanceof F?Xj(Q):S.push.apply(S,g.Zu(Q)))}return S}; hOY=function(Y,u,n,U,k,m,X,S,C,f,Q){function N(R){return a$(Y.Ux.get(),R)} var Z=n.renderer,T=n.config.adPlacementConfig,r=T.kind,K=n.adSlotLoggingData,L=S.rW&&r==="AD_PLACEMENT_KIND_START";L=m&&!L;if(Z.adsEngagementPanelRenderer!=null)return KB(u,n.elementId,r,Z.adsEngagementPanelRenderer.isContentVideoEngagementPanel,Z.adsEngagementPanelRenderer.adVideoId,Z.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,T,K,function(R,c,x,W){var E=Y.K.get(),J=R.slotId,O=Z.adsEngagementPanelRenderer;R=a$(Y.Ux.get(),R);return JI(E,J,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new tM(O),c,x,O.impressionPings,R,Z.adsEngagementPanelRenderer.adLayoutLoggingData,W)}),[]; if(Z.adsEngagementPanelLayoutViewModel)return KB(u,n.elementId,r,Z.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,Z.adsEngagementPanelLayoutViewModel.adVideoId,Z.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,T,K,function(R,c,x,W){var E=Y.K.get(),J=R.slotId,O=Z.adsEngagementPanelLayoutViewModel;R=a$(Y.Ux.get(),R);return qN(E,J,"LAYOUT_TYPE_PANEL",new Bw(O),c,x,R,Z.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,W)}),[]; if(Z.actionCompanionAdRenderer!=null){if(Z.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return a3u(Y.j.get(),Y.X,Y.K.get(),Z.actionCompanionAdRenderer,T,K,U,N);KB(u,n.elementId,r,Z.actionCompanionAdRenderer.isContentVideoCompanion,Z.actionCompanionAdRenderer.adVideoId,Z.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,T,K,function(R,c,x,W){var E=Y.K.get(),J=R.slotId,O=Z.actionCompanionAdRenderer;R=a$(Y.Ux.get(),R);return JI(E,J,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new pm(O),c,x,O.impressionPings,R,Z.actionCompanionAdRenderer.adLayoutLoggingData,W)})}else if(Z.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(Z.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return $J7(Y.j.get(),Y.X,Y.K.get(),Z.topBannerImageTextIconButtonedLayoutViewModel,T,K,U,N); KB(u,n.elementId,r,Z.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,Z.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,Z.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,T,K,function(R,c,x,W){var E=Y.K.get(),J=R.slotId,O=Z.topBannerImageTextIconButtonedLayoutViewModel;R=a$(Y.Ux.get(),R);return qN(E,J,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new Lm(O),c,x,R,Z.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,W)})}else if(Z.imageCompanionAdRenderer)KB(u, n.elementId,r,Z.imageCompanionAdRenderer.isContentVideoCompanion,Z.imageCompanionAdRenderer.adVideoId,Z.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,T,K,function(R,c,x,W){var E=Y.K.get(),J=R.slotId,O=Z.imageCompanionAdRenderer; R=a$(Y.Ux.get(),R);return JI(E,J,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Rh(O),c,x,O.impressionPings,R,Z.imageCompanionAdRenderer.adLayoutLoggingData,W)}); else if(Z.bannerImageLayoutViewModel)KB(u,n.elementId,r,Z.bannerImageLayoutViewModel.isContentVideoCompanion,Z.bannerImageLayoutViewModel.adVideoId,Z.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,T,K,function(R,c,x,W){var E=Y.K.get(),J=R.slotId,O=Z.bannerImageLayoutViewModel;R=a$(Y.Ux.get(),R);return qN(E,J,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Dr(O),c,x,R,Z.bannerImageLayoutViewModel.adLayoutLoggingData,W)}); else if(Z.shoppingCompanionCarouselRenderer)KB(u,n.elementId,r,Z.shoppingCompanionCarouselRenderer.isContentVideoCompanion,Z.shoppingCompanionCarouselRenderer.adVideoId,Z.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,T,K,function(R,c,x,W){var E=Y.K.get(),J=R.slotId,O=Z.shoppingCompanionCarouselRenderer;R=a$(Y.Ux.get(),R);return JI(E,J,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new xc(O),c,x,O.impressionPings,R,Z.shoppingCompanionCarouselRenderer.adLayoutLoggingData,W)}); else if(Z.adBreakServiceRenderer){if(!JCd(n))return[];if(r==="AD_PLACEMENT_KIND_PAUSE")return Fc0(Y.j.get(),T,K,n.renderer.adBreakServiceRenderer,U);if(r!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&r!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return OGB(Y.j.get(),T,K,n.renderer.adBreakServiceRenderer,U,k,m);S.W$||Xj("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:r,adPlacementConfig:T,daiEnabledForContentVideo:String(m),isServedFromLiveInfra:String(S.W$),clientPlaybackNonce:S.clientPlaybackNonce}); if(r==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!Y.LG)return new F("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!Y.BM)return new F("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");Y.BM.QQ({adPlacementRenderer:n,contentCpn:U,iE:k});k=Y.LG.get().getCurrentTimeSec(1,!1);return eOG(Y.j.get(),n.renderer.adBreakServiceRenderer,T,k,U,K,m)}if(!Y.gw)return new F("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); Y.gw.QQ({adPlacementRenderer:n,contentCpn:U,iE:k})}else{if(Z.clientForecastingAdRenderer)return CG0(Y.j.get(),Y.K.get(),T,K,Z.clientForecastingAdRenderer,U,k,N);if(Z.invideoOverlayAdRenderer)return ijt(Y.j.get(),Y.K.get(),T,K,Z.invideoOverlayAdRenderer,U,k,N);if(Z.instreamAdPlayerOverlayRenderer)return Q$e(Y.j.get(),Y.K.get(),T,K,Z.instreamAdPlayerOverlayRenderer,U,N);if((Z.linearAdSequenceRenderer||Z.instreamVideoAdRenderer)&&L)return dgu(Y.j.get(),Y.K.get(),n,U,N,f,!Y.hJ.get().L.Y().V("html5_override_ad_video_length_killswitch")); if(Z.linearAdSequenceRenderer&&!L){if(X)return[];AI(u,Z,r);if(Z.linearAdSequenceRenderer.adLayoutMetadata){if(!WcG(Z.linearAdSequenceRenderer))return new F("Received invalid LinearAdSequenceRenderer.")}else if(Z.linearAdSequenceRenderer.linearAds==null)return new F("Received invalid LinearAdSequenceRenderer.");if(g.z(Z.linearAdSequenceRenderer.adStart,O7)){Xj("Found AdNotify in LinearAdSequenceRenderer");n=g.z(Z.linearAdSequenceRenderer.adStart,O7);if(!dJM(n))return new F("Invalid AdMessageRenderer."); m=Z.linearAdSequenceRenderer.linearAds;return j$B(Y.G.get(),Y.j.get(),Y.K.get(),Y.Ux.get(),T,K,n,WT(Z.linearAdSequenceRenderer.adLayoutMetadata)?Z.linearAdSequenceRenderer.adLayoutMetadata:void 0,m,U,k,S,N,C,Y.loadPolicy,Y.hJ.get())}return BMc(Y.j.get(),Y.K.get(),T,K,Z.linearAdSequenceRenderer.linearAds,WT(Z.linearAdSequenceRenderer.adLayoutMetadata)?Z.linearAdSequenceRenderer.adLayoutMetadata:void 0,U,k,S,N,C,Y.loadPolicy,Y.hJ.get(),Q)}if(!Z.remoteSlotsRenderer||m){if(Z.instreamVideoAdRenderer&& !L){if(X)return[];AI(u,Z,r);return vcW(Y.j.get(),Y.K.get(),T,K,Z.instreamVideoAdRenderer,U,k,S,N,C,Y.loadPolicy,Y.hJ.get(),Y.Ux.get(),Q)}if(Z.instreamSurveyAdRenderer)return ROu(Y.j.get(),Y.K.get(),Z.instreamSurveyAdRenderer,T,K,U,N,h0(Y.hJ.get(),"supports_multi_step_on_desktop"));if(Z.sandwichedLinearAdRenderer!=null)return ete(Z.sandwichedLinearAdRenderer)?g.z(Z.sandwichedLinearAdRenderer.adVideoStart,O7)?(Xj("Found AdNotify in SandwichedLinearAdRenderer"),n=g.z(Z.sandwichedLinearAdRenderer.adVideoStart, O7),dJM(n)?(m=g.z(Z.sandwichedLinearAdRenderer.linearAd,Ja))?tIY(n,m,T,Y.G.get(),Y.j.get(),Y.K.get(),Y.Ux.get(),K,U,k,S,N,C,Y.loadPolicy,Y.hJ.get()):new F("Missing IVAR from Sandwich"):new F("Invalid AdMessageRenderer.")):BMc(Y.j.get(),Y.K.get(),T,K,[Z.sandwichedLinearAdRenderer.adVideoStart,Z.sandwichedLinearAdRenderer.linearAd],void 0,U,k,S,N,C,Y.loadPolicy,Y.hJ.get()):new F("Received invalid SandwichedLinearAdRenderer.");if(Z.videoAdTrackingRenderer!=null)return PGB(Y.j.get(),Y.K.get(),Z.videoAdTrackingRenderer, T,K,U,k,S.Oe,N)}}return[]}; a3=function(Y,u,n,U,k,m,X,S){g.e.call(this);var C=this;this.j=Y;this.X=u;this.i6=U;this.LG=k;this.hJ=m;this.AJ=X;this.xk=S;this.K=null;n.get().addListener(this);this.addOnDisposeCallback(function(){n.gg()||n.get().removeListener(C)}); U.get().addListener(this);this.addOnDisposeCallback(function(){U.gg()||U.get().removeListener(C)})}; uz=function(Y,u,n){var U=Y.LG.get().getCurrentTimeSec(1,!1);Y.hJ.get().L.Y().gX()&&Rj(Y.AJ.get(),"sdai","onopp.1;evt."+n.event+";start."+n.startSecs.toFixed(3)+";d."+n.Ox.toFixed(3));uh(Y.j.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var k=Y.X.get(),m=u.adPlacementRenderer.renderer.adBreakServiceRenderer,X=u.contentCpn,S=u.adPlacementRenderer.adSlotLoggingData;$B(Y.hJ.get());var C=Y.AJ;var f=k.hJ.get();f=g.YF(f.L.Y().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var Q=k.hJ.get();var N=g.YF(Q.L.Y().experiments,"min_prefetch_offset_sec_for_livestream_optimization");Q=n.startSecs*1E3;Q={Zb:new GK(Q,Q+n.Ox*1E3),ji:!1,cueProcessedMs:U*1E3};var Z=n.startSecs+n.Ox;if(U===0)Q.Wg=new GK(0,Z*1E3);else{N=n.startSecs-N;var T=N-U;Q.Wg=T<=0?new GK(N*1E3,Z*1E3):new GK(Math.floor(U+Math.random()*Math.min(T,f))*1E3,Z*1E3)}m=s7(k,m,X,Q,S,[new Cj(n)]);Yi(k.hJ.get())&&Rj(C.get(),"abrsm","cpi."+n.identifier+";cps."+n.startSecs+";cpd."+n.Ox+";cts."+U+";rbf."+Q.Wg.start);C.get().L.f6(n.startSecs- U,Q.Wg.start/1E3-U);return[m]})}; n2=function(Y){var u,n=(u=yl(Y.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:u.current;if(!n)return null;u=yl(Y.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var U=Y.layoutId,k=yl(Y.clientMetadata,"metadata_type_content_cpn"),m=yl(Y.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),X=yl(Y.clientMetadata,"metadata_type_player_overlay_layout_renderer"),S=yl(Y.clientMetadata,"metadata_type_player_underlay_renderer"),C=yl(Y.clientMetadata, "metadata_type_ad_placement_config"),f=yl(Y.clientMetadata,"metadata_type_video_length_seconds");var Q=I$(Y.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?yl(Y.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):I$(Y.clientMetadata,"metadata_type_layout_enter_ms")&&I$(Y.clientMetadata,"metadata_type_layout_exit_ms")?(yl(Y.clientMetadata,"metadata_type_layout_exit_ms")-yl(Y.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{gM:U,contentCpn:k,Ak:n,VL:u,instreamAdPlayerOverlayRenderer:m, playerOverlayLayoutRenderer:X,instreamAdPlayerUnderlayRenderer:S,adPlacementConfig:C,videoLengthSeconds:f,Kg:Q,inPlayerLayoutId:yl(Y.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:yl(Y.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Ii0=function(Y,u){return bjG(Y,u)}; zOu=function(Y,u){u=bjG(Y,u);if(!u)return null;var n;u.Kg=(n=yl(Y.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:n.adBreakRemainingLengthSeconds;return u}; bjG=function(Y,u){var n,U=(n=yl(Y.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:n.current;if(!U)return null;n=m7t(Y,u);return{M6:k3G(Y,u),adPlacementConfig:yl(Y.clientMetadata,"metadata_type_ad_placement_config"),SN:n,contentCpn:yl(Y.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:yl(Y.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:yl(Y.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:yl(Y.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Kg:void 0,Ak:U,gM:Y.layoutId,videoLengthSeconds:yl(Y.clientMetadata,"metadata_type_video_length_seconds")}}; Ul=function(Y,u,n,U,k,m,X,S,C){g.e.call(this);this.G=Y;this.W=u;this.J=n;this.X=U;this.K=k;this.j=m;this.Ux=X;this.hJ=S;this.SG=C;this.dV=!0}; gju=function(Y,u,n){return xgc(Y.K.get(),u.contentCpn,u.gM,function(U){return lre(Y.j.get(),U.slotId,n,u.adPlacementConfig,u.gM,a$(Y.Ux.get(),U))})}; ki=function(Y,u,n,U,k,m,X,S){g.e.call(this);this.j=Y;this.K=u;this.X=n;this.hJ=U;this.G=k;this.SG=m;this.LG=X;this.bD=S}; mn=function(Y){g.e.call(this);this.K=Y}; uh=function(Y,u,n,U){Y.K().Ma(u,U);n=n();Y=Y.K();Y.J_.v6("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",u,U,n);u=g.A(n);for(n=u.next();!n.done;n=u.next())a:{U=Y;n=n.value;U.J_.pU("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",n);U.J_.pU("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",n);try{var k=U.K;if(g.vq(n.slotId))throw new F("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Sl(k,n))throw new F("Duplicate registration for slot.",{slotId:n.slotId,slotEntryTriggerType:n.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!k.FP.UG.has(n.slotType))throw new F("No fulfillment adapter factory registered for slot of type: "+n.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!k.FP.FA.has(n.slotType))throw new F("No SlotAdapterFactory registered for slot of type: "+n.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");LT(k,"TRIGGER_CATEGORY_SLOT_ENTRY",n.slotEntryTrigger?[n.slotEntryTrigger]:[]);LT(k,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", n.slotFulfillmentTriggers);LT(k,"TRIGGER_CATEGORY_SLOT_EXPIRATION",n.slotExpirationTriggers);var m=U.K,X=n.slotType+"_"+n.slotPhysicalPosition,S=GO(m,X);if(Sl(m,n))throw new F("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");S.set(n.slotId,new qLu(n));m.K.set(X,S)}catch(Xd){Xd instanceof F&&Xd.Ku?(U.J_.z_("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Xd.Ku,n),Xj(Xd,n,void 0,void 0,Xd.Fc)):(U.J_.z_("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", n),Xj(Xd,n));break a}Sl(U.K,n).W=!0;try{var C=U.K,f=Sl(C,n),Q=n.slotEntryTrigger,N=C.FP.Zp.get(Q.triggerType);N&&(N.Vd("TRIGGER_CATEGORY_SLOT_ENTRY",Q,n,null),f.jG.set(Q.triggerId,N));for(var Z=g.A(n.slotFulfillmentTriggers),T=Z.next();!T.done;T=Z.next()){var r=T.value,K=C.FP.Zp.get(r.triggerType);K&&(K.Vd("TRIGGER_CATEGORY_SLOT_FULFILLMENT",r,n,null),f.KG.set(r.triggerId,K))}for(var L=g.A(n.slotExpirationTriggers),R=L.next();!R.done;R=L.next()){var c=R.value,x=C.FP.Zp.get(c.triggerType);x&&(x.Vd("TRIGGER_CATEGORY_SLOT_EXPIRATION", c,n,null),f.N.set(c.triggerId,x))}var W=C.FP.UG.get(n.slotType).get().build(C.X,n);f.S=W;var E=C.FP.FA.get(n.slotType).get().build(C.J,n);E.init();f.j=E}catch(Xd){Xd instanceof F&&Xd.Ku?(U.J_.z_("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Xd.Ku,n),Xj(Xd,n,void 0,void 0,Xd.Fc)):(U.J_.z_("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",n),Xj(Xd,n));m2(U,n,!0);break a}U.J_.pU("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",n);U.K.Vj(n);for(var J=g.A(U.j),O=J.next();!O.done;O= J.next())O.value.Vj(n);Qk(U,n)}}; XX=function(Y,u,n,U,k){g.e.call(this);var m=this;this.j=Y;this.X=u;this.K0=n;this.context=k;this.K=new Map;U.get().addListener(this);this.addOnDisposeCallback(function(){U.gg()||U.get().removeListener(m)})}; ztB=function(Y,u){var n=0x8000000000000,U=0,k=0x8000000000000;var m=g.A(u.slotFulfillmentTriggers);for(var X=m.next();!X.done;X=m.next())if(X=X.value,X instanceof NM){var S=X.K.start;n=Math.min(n,S);U=Math.max(U,X.K.end);X.visible&&(k=Math.min(k,S))}else Xj("Found unexpected fulfillment trigger for throttled slot.",u,null,{fulfillmentTrigger:X});m=n;k=k<0x8000000000000&&n0&&MV(Y.W(),n)}; p2=function(Y,u,n,U,k){for(var m=[],X=g.A(Y.Ob.values()),S=X.next();!S.done;S=X.next()){var C=S=S.value,f=C.trigger;C=C.slot;if(f.triggerType===u){if(f instanceof CU||f instanceof fU||f instanceof iy){if(k&&f.breakDurationMs!==n)continue;if(!k&&f.breakDurationMs===n)continue;if(U.has(C.slotId))continue}m.push(S)}}m.length>0&&MV(Y.W(),m)}; ukd=function(Y,u){u=(u.Ox+1)*1E3;var n=void 0;Y=g.A(Y.Ob.values());for(var U=Y.next();!U.done;U=Y.next()){var k=U.value;U=k.trigger;k=k.slot;U instanceof CU&&U.breakDurationMs<=u&&(!n||U.breakDurationMs>n.trigger.breakDurationMs)&&(n={slot:k,trigger:U})}return n}; nFW=function(Y){Y=Y.adPlacementRenderer.config.adPlacementConfig;if(!Y.prefetchModeConfig||!Y.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;Y=Number(Y.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(Y)||Y<=0?0:Math.floor(Math.random()*Y)}; UVt=function(Y){Y=Y.adPlacementRenderer.config.adPlacementConfig;if(Y.prefetchModeConfig&&Y.prefetchModeConfig.cacheFetchRefreshDurationMs&&(Y=Number(Y.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(Y)||Y<=0)))return Y}; L2=function(Y){Y.K=null;Y.Ob.clear();Y.j&&Y.j.stop();Y.J&&Y.J.stop();var u;(u=Y.X)==null||u.stop();delete Y.X}; $HY=function(Y){var u=[];Y=g.A(Y.Ob.values());for(var n=Y.next();!n.done;n=Y.next())n=n.value.trigger,n instanceof CU&&u.push(n.breakDurationMs);return u}; tR=function(Y){g.e.call(this);this.X=Y;this.dV=!0;this.Ob=new Map;this.K=new Map;this.j=new Map}; kOm=function(Y,u){var n=[];if(u=Y.K.get(u.layoutId)){u=g.A(u);for(var U=u.next();!U.done;U=u.next())(U=Y.j.get(U.value.triggerId))&&n.push(U)}return n}; B3=function(Y){g.e.call(this);this.K=Y;this.Ob=new Map}; mVW=function(Y,u){for(var n=[],U=g.A(Y.Ob.values()),k=U.next();!k.done;k=U.next())k=k.value,k.trigger instanceof $q&&k.trigger.slotId===u&&n.push(k);n.length>=1&&MV(Y.K(),n)}; XxY=function(Y,u){var n={slotId:n6(u,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ec:"surface",clientMetadata:new Hn([])},U=Object,k=U.assign;u=wn(u,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",n.slotId);u={layoutId:u,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",ou:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"surface", clientMetadata:new Hn([]),M1:WkY(!1,n.slotId,n.slotType,n.slotPhysicalPosition,n.Ec,n.slotEntryTrigger,n.slotFulfillmentTriggers,n.slotExpirationTriggers,u,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return k.call(U,{},Y,{j6:!0,slot:n,layout:u})}; Vi0=function(Y,u,n,U){var k=Y.kind;U=U?!1:!Y.hideCueRangeMarker;switch(k){case "AD_PLACEMENT_KIND_START":return U={Zb:new GK(-0x8000000000000,-0x8000000000000),ji:U},n!=null&&(U.Wg=new GK(-0x8000000000000,-0x8000000000000)),U;case "AD_PLACEMENT_KIND_END":return U={Zb:new GK(0x7ffffffffffff,0x8000000000000),ji:U},n!=null&&(U.Wg=new GK(Math.max(0,u-n),0x8000000000000)),U;case "AD_PLACEMENT_KIND_MILLISECONDS":k=Y.adTimeOffset;k.offsetStartMilliseconds||Xj("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); k.offsetEndMilliseconds||Xj("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");Y=Number(k.offsetStartMilliseconds);k=Number(k.offsetEndMilliseconds);k===-1&&(k=u);if(Number.isNaN(Y)||Number.isNaN(k)||Y>k)return new F("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Y,offsetEndMs:k},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",k===u&&Y-500<=k);U={Zb:new GK(Y,k),ji:U};if(n!=null){Y=Math.max(0,Y-n);if(Y===k)return U;U.Wg=new GK(Y,k)}return U; default:return new F("AdPlacementKind not supported in convertToRange.",{kind:k,adPlacementConfig:Y})}}; PAS=function(Y){if(!Y||!Y.adPlacements&&!Y.adSlots)return!1;for(var u=g.A(Y.adPlacements||[]),n=u.next();!n.done;n=u.next())if(n=n.value)if(n=n.adPlacementRenderer,n!=null&&(n.config&&n.config.adPlacementConfig&&n.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;Y=g.A(Y.adSlots||[]);for(u=Y.next();!u.done;u=Y.next()){var U=n=void 0;if(((n=g.z(u.value,rp))==null?void 0:(U=n.adSlotMetadata)==null?void 0:U.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; oY=function(Y){this.hJ=Y;this.j=new Map;this.K=new Map;this.X=new Map}; n6=function(Y,u){if(c3(Y.hJ.get())){var n=Y.j.get(u)||0;n++;Y.j.set(u,n);return u+"_"+n}return g.TS(16)}; wn=function(Y,u,n){if(c3(Y.hJ.get())){var U=Y.K.get(u)||0;U++;Y.K.set(u,U);return n+"_"+u+"_"+U}return g.TS(16)}; e1=function(Y,u){if(c3(Y.hJ.get())){var n=Y.X.get(u)||0;n++;Y.X.set(u,n);return u+"_"+n}return g.TS(16)}; SEu=function(Y){var u=[new uG(Y.gM),new mw(Y.Ak),new wZ(Y.adPlacementConfig),new Ql(Y.videoLengthSeconds),new tW(Y.Kg)];Y.instreamAdPlayerOverlayRenderer&&u.push(new Ey(Y.instreamAdPlayerOverlayRenderer));Y.playerOverlayLayoutRenderer&&u.push(new Hw(Y.playerOverlayLayoutRenderer));Y.VL&&u.push(new Ih(Y.VL));return u}; CA0=function(Y,u,n,U,k,m){Y=n.inPlayerLayoutId?n.inPlayerLayoutId:wn(m,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Y);var X,S,C=n.instreamAdPlayerOverlayRenderer?(X=n.instreamAdPlayerOverlayRenderer)==null?void 0:X.adLayoutLoggingData:(S=n.playerOverlayLayoutRenderer)==null?void 0:S.adLayoutLoggingData;X={layoutId:Y,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ec:u};return{layoutId:Y,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ou:new Map,layoutExitNormalTriggers:[new PT(function(f){return e1(m, f)},n.gM)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:u,clientMetadata:U,M1:k(X),adLayoutLoggingData:C}}; v3=function(Y,u){var n=this;this.j=Y;this.hJ=u;this.K=function(U){return e1(n.j.get(),U)}}; lre=function(Y,u,n,U,k,m){n=new Hn([new yR(n),new wZ(U)]);u=wn(Y.j.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",u);U={layoutId:u,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ec:"core"};return{layoutId:u,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",ou:new Map,layoutExitNormalTriggers:[new PT(function(X){return e1(Y.j.get(),X)},k)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"core",clientMetadata:n,M1:m(U),adLayoutLoggingData:void 0}}; vI=function(Y,u,n,U,k){var m=SEu(U);return CA0(u,n,U,new Hn(m),k,Y.j.get())}; fp7=function(Y,u,n,U,k){var m=SEu(U);m.push(new l3(U.M6));m.push(new hM(U.SN));return CA0(u,n,U,new Hn(m),k,Y.j.get())}; JI=function(Y,u,n,U,k,m,X,S,C,f){u=wn(Y.j.get(),n,u);var Q={layoutId:u,layoutType:n,Ec:"core"},N=new Map;X&&N.set("impression",X);X=[new Zw(Y.K,k,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];f&&X.push(new X3(Y.K,f,["normal"]));return{layoutId:u,layoutType:n,ou:N,layoutExitNormalTriggers:X,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"core",clientMetadata:new Hn([U,new wZ(m),new uG(k)]),M1:S(Q),adLayoutLoggingData:C}}; qN=function(Y,u,n,U,k,m,X,S,C){u=wn(Y.j.get(),n,u);var f={layoutId:u,layoutType:n,Ec:"core"},Q=[new Zw(Y.K,k,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];C&&Q.push(new X3(Y.K,C,["normal"]));return{layoutId:u,layoutType:n,ou:new Map,layoutExitNormalTriggers:Q,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"core",clientMetadata:new Hn([U,new wZ(m),new uG(k)]),M1:X(f),adLayoutLoggingData:S}}; I3=function(Y,u,n){var U=[];U.push(new T4(Y.K,n));u&&U.push(u);return U}; be=function(Y,u,n,U,k,m,X){var S={layoutId:u,layoutType:n,Ec:"core"};return{layoutId:u,layoutType:n,ou:new Map,layoutExitNormalTriggers:X,layoutExitSkipTriggers:[new nU(Y.K,u)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"core",clientMetadata:new Hn([new vw(U),new wZ(k)]),M1:m(S),adLayoutLoggingData:U.adLayoutLoggingData}}; tI=function(Y,u,n,U,k,m,X,S){var C={layoutId:u,layoutType:m,Ec:"core"};return{layoutId:u,layoutType:m,ou:new Map,layoutExitNormalTriggers:[new PT(Y.K,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"core",clientMetadata:new Hn([new wZ(U)].concat(g.Zu(X))),M1:k(C),adLayoutLoggingData:S}}; gp=function(Y,u,n,U){if(Y.hJ.get().D_(u.kind==="AD_PLACEMENT_KIND_START"))if(n===void 0)Xj("Expected SSAP layout ID in renderer",void 0,void 0,{caller:U});else return n}; Zjd=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z){Y=zf(Y,u,n,k,m,X,S,C,N,gp(Y,n,U.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),Z);u=Y.vy;n=new nj(Y.PF);U=Y.layoutExitSkipTriggers;f>0&&(u.push(n),u.push(new b3(f)),U=[]);u.push(new eI(Q));return{rV:{layoutId:Y.layoutId,layoutType:Y.layoutType,ou:Y.ou,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:Y.Ec,clientMetadata:new Hn(u),M1:Y.M1,adLayoutLoggingData:Y.adLayoutLoggingData}, NS:U,Ue:Y.layoutExitMuteTriggers,aG:Y.layoutExitUserInputSubmittedTriggers,s7:Y.gD,MN:Y.MN}}; s$e=function(Y,u,n,U,k,m,X,S,C,f){u=zf(Y,u,n,U,m,new Map,X,function(Q){return S(Q,C)},void 0,gp(Y,n,k.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); Y=new ly(Y.K,u.PF);n=new nj(u.PF);f=new eI(f);return{rV:{layoutId:u.layoutId,layoutType:u.layoutType,ou:u.ou,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:u.Ec,clientMetadata:new Hn([].concat(g.Zu(u.vy),[n,f])),M1:u.M1,adLayoutLoggingData:u.adLayoutLoggingData},NS:u.layoutExitSkipTriggers,Ue:u.layoutExitMuteTriggers,aG:[].concat(g.Zu(u.layoutExitUserInputSubmittedTriggers),[Y]),s7:u.gD,MN:u.MN}}; zf=function(Y,u,n,U,k,m,X,S,C,f,Q){u=f!=null?f:wn(Y.j.get(),"LAYOUT_TYPE_MEDIA_BREAK",u);f={layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ec:"adapter"};S=S(u);var N=yl(S.clientMetadata,"metadata_type_fulfilled_layout");N||Xj("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var Z=N?N.layoutId:"";n=[new wZ(n),new Bn(U),new vn(k)];N&&n.push(new Uc(N.layoutType));Q&&n.push(new MH(Q));return{layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", ou:m,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new G4(Y.K,Z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"adapter",vy:n,M1:X(f),adLayoutLoggingData:C,MN:S,PF:Z}}; R6B=function(Y,u,n,U,k,m,X,S,C,f,Q){Y=Q_u(Y,u,"core",n,U,k,m,X,S,C,f,void 0,Q);return{layoutId:Y.layoutId,layoutType:Y.layoutType,ou:Y.ou,layoutExitNormalTriggers:Y.layoutExitNormalTriggers,layoutExitSkipTriggers:Y.layoutExitSkipTriggers,layoutExitMuteTriggers:Y.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:Y.layoutExitUserInputSubmittedTriggers,gD:Y.gD,Ec:Y.Ec,clientMetadata:new Hn(Y.Tt),M1:Y.M1,adLayoutLoggingData:Y.adLayoutLoggingData}}; cWA=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z){u=Q_u(Y,u,"adapter",n,U,k,m,X,S,C,Q,N,Z);U=u.layoutExitSkipTriggers;k=u.Tt;n.adPodSkipTarget&&n.adPodSkipTarget>0&&(k.push(f),k.push(new b3(n.adPodSkipTarget)),U=[]);k.push(new eI(S.adPodIndex));n.isCritical&&(U=[new X3(Y.K,u.layoutId,["error"])].concat(g.Zu(U)));return{rV:{layoutId:u.layoutId,layoutType:u.layoutType,ou:u.ou,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:u.Ec, clientMetadata:new Hn(k),M1:u.M1,adLayoutLoggingData:u.adLayoutLoggingData},NS:U,Ue:u.layoutExitMuteTriggers,aG:u.layoutExitUserInputSubmittedTriggers,s7:u.gD}}; Q_u=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z){var T={layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA",Ec:n};k=[new wZ(k),new Ww(C),new zh(U.externalVideoId),new gZ(S),new vn({impressionCommands:U.impressionCommands,abandonCommands:U.onAbandonCommands,completeCommands:U.completeCommands,progressCommands:U.adVideoProgressCommands}),new NH(m),new XU({current:null}),new Ql(X)];(m=U.playerOverlay.instreamAdPlayerOverlayRenderer)&&k.push(new Ey(m));(X=U.playerOverlay.playerOverlayLayoutRenderer)&&k.push(new Hw(X)); N&&k.push(new iG(N));(N=U.playerUnderlay)&&k.push(new yR(N));S=n6(Y.j.get(),"SLOT_TYPE_IN_PLAYER");N=(N=m?m.elementId:X==null?void 0:X.layoutId)?N:wn(Y.j.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",S);k.push(new nj(N));k.push(new kj(S));k.push(new MH(C.adPodIndex));U.adNextParams&&k.push(new oh(U.adNextParams));U.shrunkenPlayerBytesConfig&&k.push(new Fe(U.shrunkenPlayerBytesConfig));U.clickthroughEndpoint&&k.push(new cw(U.clickthroughEndpoint));U.legacyInfoCardVastExtension&&k.push(new o$(U.legacyInfoCardVastExtension)); U.sodarExtensionData&&k.push(new Zi(U.sodarExtensionData));Q&&k.push(new Lj(Q));k.push(new xj(Q8(U.pings)));C=Nf(U.pings);if(Z){a:{Z=g.A(Z);for(Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,Q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(m=g.z(Q.fulfillmentContent.fulfilledLayout,Xr))&&(m=g.z(m.renderingContent,kB))&&m.associatedPlayerBytesLayoutId===u){Z=Q;break a}Z=void 0}Z&&k.push(new VR(Z))}return{layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA",ou:C,layoutExitNormalTriggers:[new rf(Y.K,u)],layoutExitSkipTriggers:U.skipOffsetMilliseconds? [new G4(Y.K,N)]:[],layoutExitMuteTriggers:[new G4(Y.K,N)],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:n,Tt:k,M1:f(T),adLayoutLoggingData:U.adLayoutLoggingData}}; AMB=function(Y,u,n,U,k,m,X,S,C){U.every(function(Q){return zg(Q,[],["LAYOUT_TYPE_MEDIA"])})||Xj("Unexpect subLayout type for DAI composite layout"); u=wn(Y.j.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",u);var f={layoutId:u,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ec:"core"};return{layoutId:u,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ou:new Map,layoutExitNormalTriggers:[new Sz(Y.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gD:[],Ec:"core",clientMetadata:new Hn([new Tg(n),new rM(S),new Sy(U),new wZ(k),new AW(m),new sc({}),new hW(C)]),M1:X(f)}}; rMu=function(Y){return Y!=null}; RY=function(Y,u,n){var U=this;this.j=Y;this.X=u;this.hJ=n;this.K=function(k){return e1(U.j.get(),k)}}; eOG=function(Y,u,n,U,k,m,X){if(!n.prefetchModeConfig)return new F("AdPlacementConfig for Live Prefetch is missing prefetch_config");n=n.prefetchModeConfig;U*=1E3;var S=[];if(!n.breakLengthMs)return new F("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var C=g.A(n.breakLengthMs),f=C.next();!f.done;f=C.next())if(f=f.value,Number(f)>0){var Q=U+Number(n.startTimeOffsetMs),N=Q+Number(n.cacheFetchSmearingDurationMs);f={Zb:new GK(N,N+Number(f)),ji:!1,Wg:new GK(Math.floor(Q+Math.random()* Number(n.cacheFetchSmearingDurationMs)),N),cueProcessedMs:U?U:Q};Q=[];Q.push(new bG({}));N=[];N.push(new df(Y.K));N.push(new Pnu(Y.K));X&&Q.push(new sc({}));S.push(s7(Y,u,k,f,m,Q,N))}return S}; s7=function(Y,u,n,U,k,m,X){m=m===void 0?[]:m;var S=n6(Y.j.get(),"SLOT_TYPE_AD_BREAK_REQUEST");X||(X=[],U.Wg&&U.Wg.start!==U.Zb.start&&X.push(new NM(Y.K,n,new GK(U.Wg.start,U.Zb.start),!1)),X.push(new NM(Y.K,n,new GK(U.Zb.start,U.Zb.end),U.ji)));U={getAdBreakUrl:u.getAdBreakUrl,Yx:U.Zb.start,TV:U.Zb.end,cueProcessedMs:U.cueProcessedMs};u=new Ra(Y.K,S);m=[new Kj(U)].concat(g.Zu(m));return{slotId:S,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:u,slotFulfillmentTriggers:X, slotExpirationTriggers:[new MM(Y.K,n),new cT(Y.K,S),new vT(Y.K,S)],Ec:"core",clientMetadata:new Hn(m),adSlotLoggingData:k}}; iTB=function(Y,u,n){var U=[];n=g.A(n);for(var k=n.next();!k.done;k=n.next())U.push(Nn7(Y,u,k.value));return U}; Nn7=function(Y,u,n){return n.triggeringSlotId!=null&&n.triggeringSlotId===Y?n.clone(u):n}; mgd=function(Y,u,n,U,k){return ZTM(Y,u,n,U,k)}; TMt=function(Y,u,n,U){var k=n6(Y.j.get(),"SLOT_TYPE_IN_PLAYER");return ZTM(Y,k,u,n,U)}; ZTM=function(Y,u,n,U,k){var m=new mu(Y.K,n),X=[new Aa(Y.K,u)];Y=[new cT(Y.K,u),new MM(Y.K,U)];return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:X,slotExpirationTriggers:Y,Ec:"core",clientMetadata:new Hn([new jy(k({slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:m,slotFulfillmentTriggers:X,slotExpirationTriggers:Y},n))]),adSlotLoggingData:void 0}}; vju=function(Y,u,n,U,k,m){var X=n6(Y.j.get(),"SLOT_TYPE_PLAYER_BYTES"),S=n6(Y.j.get(),"SLOT_TYPE_IN_PLAYER"),C=wn(Y.j.get(),"LAYOUT_TYPE_SURVEY",S);U=D$(Y,u,n,U);var f=[new Aa(Y.K,X)];n=[new cT(Y.K,X),new MM(Y.K,n),new nU(Y.K,C)];if(U instanceof F)return U;S=m({slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:U,slotFulfillmentTriggers:f,slotExpirationTriggers:n},{slotId:S,layoutId:C});m=S.R2c;S=S.U9;return[{slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:HI(Y,u,X,U),slotFulfillmentTriggers:yn(Y,u,X,f),slotExpirationTriggers:n,Ec:"core",clientMetadata:new Hn([new jy(m),new wM(Vn(u)),new ey({gF:Y.gF(u)})]),adSlotLoggingData:k},S]}; Vn=function(Y){return Y.kind==="AD_PLACEMENT_KIND_START"}; Dgt=function(Y,u,n,U,k){k=k?k:n6(Y.j.get(),"SLOT_TYPE_IN_PLAYER");n=new mu(Y.K,n);var m=[new Aa(Y.K,k)];Y=[new MM(Y.K,u),new cT(Y.K,k)];return{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:m,slotExpirationTriggers:Y,Ec:"core",clientMetadata:new Hn([new jy(U({slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:n,slotFulfillmentTriggers:m,slotExpirationTriggers:Y}))])}}; xgc=function(Y,u,n,U){var k=n6(Y.j.get(),"SLOT_TYPE_PLAYER_UNDERLAY");n=new mu(Y.K,n);var m=[new Aa(Y.K,k)];Y=[new MM(Y.K,u),new cT(Y.K,k)];return{slotId:k,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:m,slotExpirationTriggers:Y,Ec:"core",clientMetadata:new Hn([new jy(U({slotId:k,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:n,slotFulfillmentTriggers:m,slotExpirationTriggers:Y}))])}}; pwt=function(Y,u,n,U,k,m,X){var S=n6(Y.j.get(),"SLOT_TYPE_IN_PLAYER"),C=wn(Y.j.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",S);U=Tnm(Y,U,m,X,C);if(U instanceof F)return U;X=[new Aa(Y.K,S)];k=[new MM(Y.K,m),new Aa(Y.K,k),new xu(Y.K,k)];n=a$(n,{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:U,slotFulfillmentTriggers:X,slotExpirationTriggers:k});Y=Y.X.get();m={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ec:"core"};u={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", ou:new Map,layoutExitNormalTriggers:[new TFG(Y.K,C,u.durationMs)],layoutExitSkipTriggers:[new Mim(Y.K,C,u.durationMs)],gD:[new rCW(Y.K,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ec:"core",clientMetadata:new Hn([new cn(u)]),M1:n(m)};return{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:U,slotFulfillmentTriggers:X,slotExpirationTriggers:k,clientMetadata:new Hn([new jy(u)])}}; NMM=function(Y,u,n,U,k,m){u=D$(Y,u,n,U);if(u instanceof F)return u;var X=u instanceof NM?new NFM(Y.K,n,u.K):null;U=n6(Y.j.get(),"SLOT_TYPE_IN_PLAYER");var S=[new Aa(Y.K,U)];Y=[new MM(Y.K,n),new cT(Y.K,U)];m=m({slotId:U,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:u,slotFulfillmentTriggers:S,slotExpirationTriggers:Y},X);return m instanceof Ec?new F(m):{slotId:U,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:u,slotFulfillmentTriggers:S,slotExpirationTriggers:Y, Ec:"core",clientMetadata:new Hn([new jy(m)]),adSlotLoggingData:k}}; fiB=function(Y,u,n,U){var k=n6(Y.j.get(),"SLOT_TYPE_IN_PLAYER"),m=new uy(Y.K,u),X=[new Dw(Y.K,k)];Y=[new MM(Y.K,u),new cT(Y.K,k)];return{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:X,slotExpirationTriggers:Y,Ec:"core",clientMetadata:new Hn([new jy(U({slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:m,slotFulfillmentTriggers:X,slotExpirationTriggers:Y}))]),adSlotLoggingData:n}}; Qhu=function(Y,u,n,U){var k=n6(Y.j.get(),"SLOT_TYPE_IN_PLAYER");n=new mu(Y.K,n);var m=[new Aa(Y.K,k)],X=[new cT(Y.K,k),new MM(Y.K,u)];m={slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:n,slotFulfillmentTriggers:m,slotExpirationTriggers:X};return{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:[new Aa(Y.K,k)],slotExpirationTriggers:[new MM(Y.K,u),new cT(Y.K,k)],Ec:"core",clientMetadata:new Hn([new jy(U(m))])}}; SyG=function(Y,u,n,U,k){var m=n6(Y.j.get(),"SLOT_TYPE_IN_PLAYER");n=new ku(Y.K,U,n);U=[new Aa(Y.K,m)];Y=[new MM(Y.K,u)];return{slotId:m,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:U,slotExpirationTriggers:Y,Ec:"core",clientMetadata:new Hn([new jy(k({slotId:m,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:n,slotFulfillmentTriggers:U,slotExpirationTriggers:Y}))])}}; ncA=function(Y,u,n,U,k,m){var X=n6(Y.j.get(),u);return xi(Y,X,u,new mu(Y.K,U),[new MM(Y.K,n),new cT(Y.K,X),new X3(Y.K,U,["error"])],k,m)}; uet=function(Y,u,n,U,k,m,X){var S=n6(Y.j.get(),u);return xi(Y,S,u,new X3(Y.K,k,["normal"]),[new MM(Y.K,n),new cT(Y.K,S),new X3(Y.K,U,["error"])],m,X)}; qVc=function(Y,u,n,U,k){var m=n6(Y.j.get(),u);return xi(Y,m,u,new uy(Y.K,n),[new MM(Y.K,n),new cT(Y.K,m)],U,k)}; Xnt=function(Y,u,n,U,k){n=n?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var m=n6(Y.j.get(),n);u=new uy(Y.K,u);var X=[new Aa(Y.K,m)];Y=[new cT(Y.K,m)];return{slotId:m,slotType:n,slotPhysicalPosition:1,slotEntryTrigger:u,slotFulfillmentTriggers:X,slotExpirationTriggers:Y,Ec:"core",clientMetadata:new Hn([new jy(k({slotId:m,slotType:n,slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:u,slotFulfillmentTriggers:X,slotExpirationTriggers:Y}))]),adSlotLoggingData:U}}; MIB=function(Y,u,n,U){var k=n6(Y.j.get(),"SLOT_TYPE_PLAYER_BYTES"),m=new Q$(Y.K),X=[new Dw(Y.K,k)];Y=[new MM(Y.K,u)];return{slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:X,slotExpirationTriggers:Y,Ec:"core",clientMetadata:new Hn([new jy(U({slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:m,slotFulfillmentTriggers:X,slotExpirationTriggers:Y})),new sc({})]),adSlotLoggingData:n}}; Lwc=function(Y,u){return wne(Y.hJ.get())?new X3(Y.K,u,["normal","error","skipped"]):new X3(Y.K,u,["normal"])}; ocM=function(Y,u,n,U,k){u=Lwc(Y,u);Y=E7(Y,u,n);k=k({slotId:Y.slotId,slotType:Y.slotType,slotPhysicalPosition:Y.slotPhysicalPosition,slotEntryTrigger:Y.slotEntryTrigger,slotFulfillmentTriggers:Y.slotFulfillmentTriggers,slotExpirationTriggers:Y.slotExpirationTriggers,Ec:Y.Ec});return k instanceof F?k:{yx:Object.assign({},Y,{clientMetadata:new Hn([new jy(k.layout)]),adSlotLoggingData:U}),WM:k.WM}}; cMu=function(Y,u,n,U,k,m,X){n=tye(Y,u,n,U);if(n instanceof F)return n;X=X({slotId:n.slotId,slotType:n.slotType,slotPhysicalPosition:n.slotPhysicalPosition,slotEntryTrigger:n.slotEntryTrigger,slotFulfillmentTriggers:n.slotFulfillmentTriggers,slotExpirationTriggers:n.slotExpirationTriggers,Ec:n.Ec});if(X instanceof F)return X;U=[new wM(Vn(u)),new jy(X.layout),new ey({gF:Y.gF(u)})];m&&U.push(new R$({}));return{yx:{slotId:n.slotId,slotType:n.slotType,slotPhysicalPosition:n.slotPhysicalPosition,slotEntryTrigger:HI(Y, u,n.slotId,n.slotEntryTrigger),slotFulfillmentTriggers:yn(Y,u,n.slotId,n.slotFulfillmentTriggers),slotExpirationTriggers:n.slotExpirationTriggers,Ec:n.Ec,clientMetadata:new Hn(U),adSlotLoggingData:k},WM:X.WM}}; HI=function(Y,u,n,U){return Y.hJ.get().D_(Vn(u))?new $q(Y.K,n):U}; yn=function(Y,u,n,U){return Y.hJ.get().D_(Vn(u))?[new Dw(Y.K,n)]:U}; E7=function(Y,u,n){var U=n6(Y.j.get(),"SLOT_TYPE_PLAYER_BYTES"),k=[new Aa(Y.K,U)];Y=[new cT(Y.K,U),new MM(Y.K,n)];return{slotId:U,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:u,slotFulfillmentTriggers:k,slotExpirationTriggers:Y,Ec:"core"}}; tye=function(Y,u,n,U){u=D$(Y,u,n,U);return u instanceof F?u:E7(Y,u,n)}; ScY=function(Y,u,n,U,k,m){var X=n6(Y.j.get(),"SLOT_TYPE_FORECASTING");u=D$(Y,u,n,U);if(u instanceof F)return u;U=[new Aa(Y.K,X)];Y=[new cT(Y.K,X),new MM(Y.K,n)];return{slotId:X,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:u,slotFulfillmentTriggers:U,slotExpirationTriggers:Y,Ec:"core",clientMetadata:new Hn([new jy(m({slotId:X,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:u,slotFulfillmentTriggers:U,slotExpirationTriggers:Y}))]),adSlotLoggingData:k}}; r0e=function(Y,u,n,U,k){var m=!u.hideCueRangeMarker;switch(u.kind){case "AD_PLACEMENT_KIND_START":return new uy(Y.K,n);case "AD_PLACEMENT_KIND_MILLISECONDS":return Y=Vi0(u,U),Y instanceof F?Y:k(Y.Zb,m);case "AD_PLACEMENT_KIND_END":return new Ut(Y.K,n,m);default:return new F("Cannot construct entry trigger",{kind:u.kind})}}; Tnm=function(Y,u,n,U,k){return r0e(Y,u,n,U,function(m,X){return new QpM(Y.K,n,m,X,k)})}; D$=function(Y,u,n,U){return r0e(Y,u,n,U,function(k,m){return new NM(Y.K,n,k,m)})}; xi=function(Y,u,n,U,k,m,X){Y=[new Dw(Y.K,u)];return{slotId:u,slotType:n,slotPhysicalPosition:1,slotEntryTrigger:U,slotFulfillmentTriggers:Y,slotExpirationTriggers:k,Ec:"core",clientMetadata:new Hn([new jy(X({slotId:u,slotType:n,slotPhysicalPosition:1,Ec:"core",slotEntryTrigger:U,slotFulfillmentTriggers:Y,slotExpirationTriggers:k}))]),adSlotLoggingData:m}}; Mld=function(){}; lz=function(Y,u){g.e.call(this);this.hJ=Y;this.K=u;this.eventCount=0;this.j=Bh().resolve(j6(Mld))}; s_e=function(Y,u,n){if(u){var U=u.adLayoutLoggingData;g.VT(g.FJ(),function(){if(Y.j!=null){var k=Date.now().toString();U&&g.ka("adsSeenClientLogging",{adsSeenClientLogging:{serializedAdServingDataEntry:U.serializedAdServingDataEntry},eventTimeMs:k})}},n!=null?n:0)}}; hR=function(Y,u,n,U){lz.call(this,Y,u);this.hJ=Y;this.SG=n;this.context=U}; wg=function(){this.K=new Map}; W3=function(Y){this.K="pending";this.j=[];this.X=[];try{Y(this.G.bind(this),this.reject.bind(this))}catch(u){this.reject(u)}}; dVW=function(){var Y,u;return{Ae:new W3(function(n,U){Y=n;u=U}), resolve:Y,reject:u}}; IY=function(Y){return eA(Y)?Y:bz(Y)?new W3(function(u,n){Y.then(u,n)}):new W3(function(u){u(Y)})}; zv=function(Y){return new W3(function(u,n){n(Y)})}; gg=function(Y){try{return IY(Y())}catch(u){return zv(u)}}; H3=function(Y,u,n){var U=dVW(),k=U.Ae,m=U.resolve,X=U.reject;Y.j.push(function(S){if(u)try{var C=u(S);m(C)}catch(f){X(f)}else m(S)}); Y.X.push(function(S){if(n)try{var C=n(S);m(C)}catch(f){X(f)}else X(S)}); El(Y);return k}; ym=function(Y,u){return H3(Y,void 0,u)}; GO0=function(Y,u){H3(Y,function(n){return H3(IY(u()),function(){return n})},function(n){return H3(IY(u()),function(){return zv(n)})})}; El=function(Y){if(Y.K==="fulfilled"){var u=Y.j;Y.j=[];Y.X=[];u=g.A(u);for(var n=u.next();!n.done;n=u.next())n=n.value,n(Y.result)}else if(Y.K==="rejected")for(u=Y.X,Y.j=[],Y.X=[],u=g.A(u),n=u.next();!n.done;n=u.next())n=n.value,n(Y.error)}; Vm=function(Y,u){return A0A(u.call(Y))}; Ol=function(Y){return function n(){return bB(n,function(U){if(U.j==1)return g.LY(U,2),g.D(U,{Ae:IY(Y)},4);if(U.j!=2)return U.return(U.K);g.lB(U);return g.wG(U,0)})}()}; A0A=function(Y){return gg(function(){return FX(Y,Y.next())})}; FX=function(Y,u){return u.done?IY(u.value):ym(H3(u.value.Ae,function(n){return FX(Y,Y.next(n))}),function(n){return FX(Y,Y.throw(n))})}; JR=function(Y,u){if(Y.length===0)return IY(NaN);var n=dVW(),U=n.Ae,k=n.resolve,m=Y.length;Y=g.A(Y.entries());var X=Y.next();for(n={};!X.done;n={qQ:void 0},X=Y.next()){var S=g.A(X.value);X=S.next().value;S=S.next().value;n.qQ=X;GO0(S,function(C){return function(){U.K==="pending"&&(j_M(u)&&u(C.qQ)&&U.K==="pending"?k(C.qQ):(--m,m===0&&k(NaN)))}}(n))}return U}; qb=function(Y){return Y.map(function(u){return IY(u)})}; $i=function(Y){var u=Y.hours||0;var n=Y.minutes||0,U=Y.seconds||0;u=U+n*60+u*3600+(Y.days||0)*86400+(Y.weeks||0)*604800+(Y.months||0)*2629800+(Y.years||0)*31557600;u<=0?u={hours:0,minutes:0,seconds:0}:(Y=u,u=Math.floor(Y/3600),Y%=3600,n=Math.floor(Y/60),U=Math.floor(Y%60),u={hours:u,minutes:n,seconds:U});var k=u.hours===void 0?0:u.hours;n=u.minutes===void 0?0:u.minutes;Y=u.seconds===void 0?0:u.seconds;U=k>0;u=[];if(U){k=(new Intl.NumberFormat("en-u-nu-latn")).format(k);var m=["fr"],X="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); k="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(aY)?k.replace(",","\u00a0"):m.includes(aY)?k.replace(",","\u202f"):X.includes(aY)?k.replace(",","."):k;u.push(k)}U=U===void 0?!1:U;n=(["af","be","lt"].includes(aY)||U)&&n<10?K2M().format(n):(new Intl.NumberFormat("en-u-nu-latn")).format(n);u.push(n);n=K2M().format(Y);u.push(n);n=":";"da fi id si sr sr-Latn".split(" ").includes(aY)&&(n=".");return u.join(n)}; K2M=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; pxm=function(Y,u){var n,U;Y=((n=Y.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(U=n.videoAuthorizationToken)==null?void 0:U.credentialTransferTokens)||[];for(n=0;nu;Y=n}else Y=!1;return Y}; g.TY=function(Y,u){return Y.uE+"timedtext_video?ref=player&v="+u.videoId}; g.gFu=function(Y){var u=this;this.videoData=Y;Y={};this.K=(Y.c1a=function(){var n=[];if(g.i6.isInitialized()){var U="";u.videoData&&u.videoData.Y5&&(U=u.videoData.Y5+("&r1b="+u.videoData.clientPlaybackNonce));var k={};U=(k.atr_challenge=U,k);oV("bg_v",void 0,"player_att");(U=zkM(U))?(oV("bg_s",void 0,"player_att"),n.push("r1a="+U)):(oV("bg_e",void 0,"player_att"),n.push("r1c=2"))}else oV("bg_e",void 0,"player_att"),window.trayride||window.botguard?n.push("r1c=1"):n.push("r1c=4");n.push("r1d="+g.i6.getState()); return n.join("&")},Y.c6a=function(n){return"r6a="+(Number(n.c)^VL())},Y.c6b=function(n){return"r6b="+(Number(n.c)^Number(g.z6("CATSTAT",0)))},Y); this.videoData&&this.videoData.Y5?this.aq=aJ(this.videoData.Y5):this.aq={}}; g.EF0=function(Y){if(Y.videoData&&Y.videoData.Y5){for(var u=[Y.videoData.Y5],n=g.A(Object.keys(Y.K)),U=n.next();!U.done;U=n.next())U=U.value,Y.aq[U]&&Y.K[U]&&(U=Y.K[U](Y.aq))&&u.push(U);return u.join("&")}return null}; g.rK=function(Y,u){Ipt(Y,{neq:g.YF(u.experiments,"bg_vm_reinit_threshold"),cspNonce:u.cspNonce,uE:u.uE||""})}; HTc=function(){var Y=XMLHttpRequest.prototype.fetch;return!!Y&&Y.length===3}; y0d=function(Y){Y=Y[P[47]](P[8]);MT[P[64]](Y,64);MT[P[68]](Y,3);MT[P[14]](Y,49);MT[P[64]](Y,9);MT[P[14]](Y,44);MT[P[68]](Y,2);return Y[P[26]](P[8])}; OT0=function(Y){VlM=2592E3*(Y||1)}; sd=function(Y){Y=Y===void 0?VlM:Y;if(Y>0&&!(gWY()>(0,g.j2)()-Y*1E3))return 0;Y=g.ck("yt-player-quality");if(typeof Y==="string"){if(Y=g.hn[Y],Y>0)return Y}else if(Y instanceof Object)return Y.quality;return 0}; dK=function(){var Y=g.ck("yt-player-proxima-pref");return Y==null?null:Y}; F2c=function(){var Y=g.ck("yt-player-quality");if(Y instanceof Object&&Y.quality&&Y.previousQuality){if(Y.quality>Y.previousQuality)return 1;if(Y.quality0&&u[0]?Y.getAutoplayPolicy(u[0]):Y.getAutoplayPolicy("mediaelement");if(Ufc[n])return Ufc[n]}}catch(U){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; td=function(Y){return Y.bU||Y.zE||Y.mutedAutoplay}; kiu=function(Y,u){return td(Y)?u!==1&&u!==2&&u!==0?"AUTOPLAY_STATUS_UNAVAILABLE":Y.RP?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; mfW=function(Y,u,n){var U=u.Y();Y.thirdParty||(Y.thirdParty={});U.ancestorOrigins&&(Y.thirdParty.embeddedPlayerContext=Object.assign({},Y.thirdParty.embeddedPlayerContext,{ancestorOrigins:U.ancestorOrigins}));U.V("embeds_enable_autoplay_and_visibility_signals")&&(U.vv!=null&&(Y.thirdParty.embeddedPlayerContext=Object.assign({},Y.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(U.vv)})),U.Pv&&(Y.thirdParty.embeddedPlayerContext=Object.assign({},Y.thirdParty.embeddedPlayerContext,{visibilityFractionSource:U.Pv})), Y.thirdParty.embeddedPlayerContext=Object.assign({},Y.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Lq(),autoplayIntended:td(u),autoplayStatus:kiu(u,n)}))}; X1m=function(Y){var u=[];Y=g.A(Y.split(","));for(var n=Y.next();!n.done;n=Y.next()){var U=n.value;U&&((n=U.startsWith("!"))&&(U=U.substring(1)),U=U.split("-"),U.length<3||u.push({yf:U[0],platform:U[1],deviceVersion:U[2],wf:n}))}return u}; Chu=function(Y){return X1m(Y).map(function(u){return{deviceInterface:PhA[SRY[u.yf]]||0,deviceVersion:u.deviceVersion||"",isSleeping:u.wf}})}; g.B5=function(Y,u){this.id=Y;this.dX=u;this.captionTracks=[];this.X=this.G=null;this.xtags="";this.J=!1;this.K=null;this.j="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";Y=this.dX.id.split(".");Y.length>1&&(this.J=Y[1]==="2")}; os=function(Y,u,n,U,k){this.j=Y;this.K=u;this.X=n;this.reason=U;this.NF=k===void 0?0:k}; g.c5=function(Y,u,n,U){return new os(g.hn[Y]||0,g.hn[u]||0,n,U)}; Rs=function(Y){if(v5&&Y.NF)return!1;var u=g.hn.auto;return Y.j===u&&Y.K===u}; xp=function(Y){return D5[Y.K||Y.j]||"auto"}; fv7=function(Y,u){u=g.hn[u];return Y.j<=u&&(!Y.K||Y.K>=u)}; l6=function(Y){return"["+Y.j+"-"+Y.K+", override: "+(Y.X+", reason: "+Y.reason+"]")}; hd=function(Y,u,n){this.videoInfos=Y;this.K=u;this.audioTracks=[];if(this.K){Y=new Set;n==null||n({ainfolen:this.K.length});u=g.A(this.K);for(var U=u.next();!U.done;U=u.next())if(U=U.value,!U.dX||Y.has(U.dX.id)){var k=void 0,m=void 0,X=void 0;(X=n)==null||X({atkerr:!!U.dX,itag:U.itag,xtag:U.K,lang:((k=U.dX)==null?void 0:k.name)||"",langid:((m=U.dX)==null?void 0:m.id)||""})}else k=new g.B5(U.id,U.dX),Y.add(U.dX.id),this.audioTracks.push(k);n==null||n({atklen:this.audioTracks.length})}}; wK=function(){g.e.apply(this,arguments);this.K=null}; Z6A=function(Y,u,n,U,k,m,X){if(Y.K)return Y.K;var S={},C=new Set,f={};if(W5(U)){for(var Q in U.K)U.K.hasOwnProperty(Q)&&(Y=U.K[Q],f[Y.info.aV]=[Y.info]);return f}Q=QIW(u,U,S);m&&k({aftsrt:ef(Q)});for(var N={},Z=g.A(Object.keys(Q)),T=Z.next();!T.done;T=Z.next()){T=T.value;for(var r=g.A(Q[T]),K=r.next();!K.done;K=r.next()){K=K.value;var L=K.itag,R=void 0,c=T+"_"+(((R=K.video)==null?void 0:R.fps)||0);N.hasOwnProperty(c)?N[c]===!0?f[T].push(K):S[L]=N[c]:(R=b6(u,K,n,U.isLive,C),R!==!0?(X.add(T),S[L]=R, R==="disablevp9hfr"&&(N[c]="disablevp9hfr")):(f[T]=f[T]||[],f[T].push(K),N[c]=!0))}}m&&k({bfflt:ef(f)});for(var x in f)f.hasOwnProperty(x)&&(U=x,f[U]&&f[U][0].OX()&&(f[U]=f[U],f[U]=NYe(u,f[U],S),f[U]=i6d(f[U],S)));m&&Object.keys(S).length>0&&k({rjr:NO(S)});u=g.A(C.values());for(U=u.next();!U.done;U=u.next())(U=n.G.get(U.value))&&--U.pD;m&&k({aftflt:ef(f)});Y.K=g.YP(f,function(W){return!!W.length}); return Y.K}; rYG=function(Y,u,n,U,k,m,X,S){S=S===void 0?!1:S;if(u.UD&&X&&X.length>1&&!(u.nU>0||u.Z)){for(var C=u.j||!!k,f=C&&u.eE?m:void 0,Q=QIW(u,U),N=[],Z=[],T={},r=0;r0&&Z&&k&&(Q=[X,n],x=k.concat(Z).filter(function(W){return W})); if(x.length&&!u.Q_){gK(x,Q);if(C){C=[];u=g.A(x);for(U=u.next();!U.done;U=u.next())C.push(U.value.itag);m({hbdfmt:C.join(".")})}return oo(new hd(x,Y,f))}x=trt(u);x=g.G$(x,S);if(!x){if(N[X])return m=N[X],gK(m),oo(new hd(m,Y,f));C&&m({novideo:1});return By()}u.lD&&(x==="1"||x==="1h")&&N[n]&&(X=Ed(N[x]),Q=Ed(N[n]),Q>X?x=n:Q===X&&BYm(N[n])&&(x=n));x==="9"&&N.h&&Ed(N.h)>Ed(N["9"])&&(x="h");u.nT&&U.isLive&&x==="("&&N.H&&Ed(N["("])<1440&&(x="H");C&&m({vfmly:H5(x)});u=N[x];if(!u.length)return C&&m({novfmly:H5(x)}), By();gK(u);return oo(new hd(u,Y,f))}; sIS=function(Y,u){var n=!(!Y.m&&!Y.M),U=!(!Y.mac3&&!Y.MAC3),k=!(!Y.meac3&&!Y.MEAC3);Y=!(!Y.i&&!Y.I);u.Cs=Y;return n||U||k||Y}; BYm=function(Y){Y=g.A(Y);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u.itag&&owA.has(u.itag))return!0;return!1}; GiS=function(Y){Y=g.A(Y);for(var u=Y.next();!u.done;u=Y.next())if(u.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; H5=function(Y){switch(Y){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return Y}}; ef=function(Y){var u=[],n;for(n in Y)if(Y.hasOwnProperty(n)){var U=n;u.push(H5(U));U=g.A(Y[U]);for(var k=U.next();!k.done;k=U.next())u.push(k.value.itag)}return u.join(".")}; Mrm=function(Y,u,n,U,k,m){var X={},S={};g.$$(u,function(C,f){C=C.filter(function(Q){var N=Q.itag;if(!Q.Ls)return S[N]="noenc",!1;if(m.CT&&Q.aV==="(h"&&m.Ru)return S[N]="lichdr",!1;if(!Y.J&&Q.aV==="1e")return S[N]="noav1enc",!1;if(Q.aV==="("||Q.aV==="(h"){if(Y.X&&n&&n.flavor==="widevine"){var Z=Q.mimeType+"; experimental=allowed";(Z=!!Q.Ls[n.flavor]&&!!n.K[Z])||(S[N]=Q.Ls[n.flavor]?"unspt":"noflv");return Z}if(!yu(Y,Vu.CRYPTOBLOCKFORMAT)&&!Y.rg||Y.jG)return S[N]=Y.jG?"disvp":"vpsub",!1}return n&&Q.Ls[n.flavor]&& n.K[Q.mimeType]?!0:(S[N]=n?Q.Ls[n.flavor]?"unspt":"noflv":"nosys",!1)}); C.length&&(X[f]=C)}); U&&Object.entries(S).length&&k({rjr:NO(S)});return X}; i6d=function(Y,u){var n=Az(Y,function(U,k){return k.video.fps>32?Math.min(U,k.video.width):U},Infinity); n32||U.video.widthY.W)return"max"+Y.W;if(Y.Pz&&u.aV==="h"&&u.video&&u.video.qualityOrdinal>1080)return"blkhigh264";if(u.aV==="(h"&&!n.S)return"enchdr";if((U===void 0?0:U)&&OP(u)&&!Y.Fk)return"blk51live";if((u.aV==="MAC3"||u.aV==="mac3")&&!Y.G)return"blkac3";if((u.aV==="MEAC3"||u.aV==="meac3")&&!Y.J)return"blkeac3";if(u.aV==="M"||u.aV==="m")return"blkaac51"; if((u.aV==="so"||u.aV==="sa")&&!Y.KG)return"blkamb";if(!Y.CT&&vAA(u)&&(!n.J||u.aV!=="1e"))return"cbc";if(!n.J&&vAA(u)&&u.aV==="1e")return"cbcav1";if((u.aV==="i"||u.aV==="I")&&!Y.Qm)return"blkiamf";var m;if(Y.lN&&((m=u.audio)==null?void 0:m.j)===!0)return"blkvbcabr";var X,S;if(Y.TZ&&(u.aV==="1"||u.aV==="1h"||n.J&&u.aV==="1e")&&((X=u.video)==null?0:X.qualityOrdinal)&&((S=u.video)==null?void 0:S.qualityOrdinal)>Y.TZ)return"av1cap";U=n.G.get(u.aV);if(!Y.Gw&&U&&U.pD>0)return k.add(u.aV),"byerr";var C; if((C=u.video)==null?0:C.fps>32){if(!n.DW&&!yu(n,Vu.FRAMERATE))return"capHfr";if(Y.dg&&u.video.qualityOrdinal>=4320)return"blk8khfr";if(zF(u)&&Y.tS&&u.Ls&&u.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(Y.NF&&u.NF>Y.NF)return"ratecap";if(Y.jG>0&&u.OX()&&u.video.height>Y.jG)return"mvhcap";Y=cYm(n,u);return Y!==!0?Y:!0}; gK=function(Y,u){u=u===void 0?[]:u;g.VC(Y,function(n,U){var k=U.NF-n.NF;if(!n.OX()||!U.OX())return k;var m=U.video.height*U.video.width-n.video.height*n.video.width;!m&&u&&u.length>0&&(n=u.indexOf(n.aV)+1,U=u.indexOf(U.aV)+1,m=n===0||U===0?U||-1:n-U);m||(m=k);return m})}; g.Od=function(Y,u){this[P[29]]=Y;this[P[44]]=u===void 0?!1:u;this[P[18]]=this[P[30]]=this[P[33]]=P[8];this[P[6]]={};this[P[7]]=P[8]}; Jd=function(Y){Fx(Y);return Y[P[18]]}; qT=function(Y){return Y[P[29]]?Y[P[29]][P[58]](P[41]):Y[P[33]]===P[41]}; vwS=function(Y){Fx(Y);return g.n3(Y[P[6]],function(u){return u!==null})}; as=function(Y){Fx(Y);var u=decodeURIComponent(Y[P[36]](P[60])||P[8])[P[47]](P[3]);return Y[P[30]]===P[67]&&u[P[0]]>1&&!!u[1]}; $p=function(Y,u){u=u===void 0?!1:u;Fx(Y);if(Y[P[30]]!==P[67]){var n=Y[P[5]]();n[P[10]](P[89],P[4]);return n}var U=Y[P[51]]();n=new g.UQ(U);var k=Y[P[36]](P[57]),m=decodeURIComponent(Y[P[36]](P[60])||P[8])[P[47]](P[3]);if(k&&m&&m[P[0]]>1&&m[1])return U=n.K,Y=U[P[84]](/^[^.]*/,P[8]),g.mJ(n,(U[P[1]](P[35])===0?P[35]:P[50])+k+P[82]+m[1]+Y),n=new g.Od(n[P[40]]()),n[P[10]](P[13],P[4]),n;if(u)return n=Y[P[5]](),n[P[10]](P[13],P[4]),n;k=n.K[P[74]](P[77]);n.K[P[74]](P[59])?(g.mJ(n,P[24]),U=n[P[40]]()):n.K[P[74]](P[69])? (g.mJ(n,P[72]),U=n[P[40]]()):(n=sbG(U),bA(n)&&(U=n));n=new g.Od(U);n[P[10]](P[81],P[4]);k&&n[P[10]](P[27],P[19]);return n}; Fx=function(Y){if(Y[P[29]]){if(!(bA(Y[P[29]])||Y[P[29]][P[58]](P[41])||Y[P[29]][P[58]](P[54])||Y[P[29]][P[58]](P[12])))throw new g.zP(P[80],Y[P[29]]);var u=g.Ns(Y[P[29]]);Y[P[33]]=u.J;Y[P[18]]=u.K+(u.X!=null?P[32]+u.X:P[8]);var n=u.j;if(n[P[58]](P[67]))Y[P[30]]=P[67],n=n[P[9]](14);else if(n[P[58]](P[71]))Y[P[30]]=P[71],n=n[P[9]](13);else if(n[P[58]](P[52])){var U=n[P[1]](P[15],12),k=n[P[1]](P[15],U+1);U>0&&k>0?(Y[P[30]]=n[P[9]](0,k),n=n[P[9]](k+1)):(Y[P[30]]=n,n=P[8])}else Y[P[30]]=n,n=P[8];U=Y[P[6]]; Y[P[6]]=Rn7(n);Object[P[91]](Y[P[6]],DfW(u.G.toString()));Object[P[91]](Y[P[6]],U);Y[P[6]][P[45]]===P[37]&&(delete Y[P[6]][P[45]],Y[P[30]]+=P[75]);Y[P[29]]=P[8];Y[P[7]]=P[8];Y[P[44]]&&(Fx(Y),u=Y[P[6]][P[20]]||null)&&(u=xfW[0](u),Y[P[10]](P[20],u))}}; lvu=function(Y){Fx(Y);var u=Y[P[33]]+(Y[P[33]]?P[83]:P[43])+Y[P[18]]+Y[P[30]];if(vwS(Y)){var n=[];g.$$(Y[P[6]],function(U,k){U!==null&&n[P[2]](k+P[25]+U)}); u+=P[93]+n[P[26]](P[28])}return u}; Rn7=function(Y){Y=Y[P[47]](P[15]);var u=0;Y[0]||u++;for(var n={};u0?hnM(u,U[P[9]](0,k),U[P[9]](k+1)):U&&(u[U]=P[8])}return u}; hnM=function(Y,u,n){if(u===P[39]){var U;(U=n[P[1]](P[25]))>=0?(u=P[70]+n[P[9]](0,U),n=n[P[9]](U+1)):(U=n[P[1]](P[66]))>=0&&(u=P[70]+n[P[9]](0,U),n=n[P[9]](U+3))}Y[u]=n}; YE=function(Y){var u=g.z(Y,w1W)||Y[P[88]];Y={Vs:!1,f3:P[8],tv:P[8],s:P[8]};if(!u)return Y;u=aJ(u);Y[P[78]]=!0;Y[P[63]]=u[P[7]];Y[P[65]]=u[P[17]];Y[P[73]]=u[P[73]];return Y}; uw=function(Y,u,n,U,k,m,X,S,C){this.Wz=Y;this.startTime=u;this.duration=n;this.ingestionTime=U;this.sourceURL=k;this.hS=C;this.endTime=u+n;this.K=X||0;this.range=m||null;this.pending=S||!1;this.hS=C||null}; g.n4=function(){this.segments=[];this.K=null;this.j=!0;this.X=""}; WQu=function(Y,u){if(u>Y.iD())Y.segments=[];else{var n=d$(Y.segments,function(U){return U.Wz>=u},Y); n>0&&Y.segments.splice(0,n)}}; UX=function(Y,u,n,U,k){k=k===void 0?!1:k;this.data=Y;this.offset=u;this.size=n;this.type=U;this.K=(this.j=k)?0:8;this.dataOffset=this.offset+this.K}; kE=function(Y){var u=Y.data.getUint8(Y.offset+Y.K);Y.K+=1;return u}; m9=function(Y){var u=Y.data.getUint16(Y.offset+Y.K);Y.K+=2;return u}; Xt=function(Y){var u=Y.data.getInt32(Y.offset+Y.K);Y.K+=4;return u}; Pe=function(Y){var u=Y.data.getUint32(Y.offset+Y.K);Y.K+=4;return u}; Sb=function(Y){var u=Y.data;var n=Y.offset+Y.K;u=u.getUint32(n)*4294967296+u.getUint32(n+4);Y.K+=8;return u}; C4=function(Y,u){u=u===void 0?NaN:u;if(isNaN(u))var n=Y.size;else for(n=Y.K;n1?Math.ceil(k*u):Math.floor(k*u))}Y.skip(1);n=kE(Y)<<16|m9(Y);if(n&256){U=n&1;k=n&4;var m=n&512,X=n&1024,S=n&2048;n=Pe(Y);U&&Y.skip(4);k&&Y.skip(4);U=(m?4:0)+(X?4:0)+(S?4:0);for(k=0;k1?Math.ceil(X*u):Math.floor(X*u)),Y.skip(U)}}}; Mz=function(Y){Y=new DataView(Y.buffer,Y.byteOffset,Y.byteLength);return(Y=g.Tp(Y,0,1836476516))?g.rR(Y):NaN}; JY0=function(Y){var u=g.Tp(Y,0,1937011556);if(!u)return null;u=sX(Y,u.dataOffset+8,1635148593)||sX(Y,u.dataOffset+8,1635135537);if(!u)return null;var n=sX(Y,u.dataOffset+78,1936995172),U=sX(Y,u.dataOffset+78,1937126244);if(!U)return null;u=null;if(n)switch(n.skip(4),kE(n)){default:u=0;break;case 1:u=2;break;case 2:u=1;break;case 3:u=255}var k=n=null,m=null;if(U=sX(Y,U.dataOffset,1886547818)){var X=sX(Y,U.dataOffset,1886546020),S=sX(Y,U.dataOffset,2037673328);if(!S&&(S=sX(Y,U.dataOffset,1836279920), !S))return null;X&&(X.skip(4),n=Xt(X)/65536,m=Xt(X)/65536,k=Xt(X)/65536);Y=en7(S);Y=new DataView(Y.buffer,Y.byteOffset+8,Y.byteLength-8);return new O6B(u,n,m,k,Y)}return null}; sX=function(Y,u,n){for(;dR(Y,u);){var U=Gp(Y,u);if(U.type===n)return U;u+=U.size}return null}; g.Tp=function(Y,u,n){for(;dR(Y,u);){var U=Gp(Y,u);if(U.type===n)return U;u=Ag(U.type)?u+8:u+U.size}return null}; g.jb=function(Y){if(Y.data.getUint8(Y.dataOffset)){var u=Y.data;Y=Y.dataOffset+4;u=u.getUint32(Y)*4294967296+u.getUint32(Y+4)}else u=Y.data.getUint32(Y.dataOffset+4);return u}; Gp=function(Y,u){var n=Y.getUint32(u),U=Y.getUint32(u+4);return new UX(Y,u,n,U)}; g.rR=function(Y){var u=Y.data.getUint8(Y.dataOffset)?20:12;return Y.data.getUint32(Y.dataOffset+u)}; qRG=function(Y){Y=new UX(Y.data,Y.offset,Y.size,Y.type,Y.j);var u=kE(Y);Y.skip(7);var n=Pe(Y);if(u===0){u=Pe(Y);var U=Pe(Y)}else u=Sb(Y),U=Sb(Y);Y.skip(2);for(var k=m9(Y),m=[],X=[],S=0;S122)return!1}return!0}; Ag=function(Y){return Y===1701082227||Y===1836019558||Y===1836019574||Y===1835297121||Y===1835626086||Y===1937007212||Y===1953653094||Y===1953653099||Y===1836475768}; avc=function(Y){Y.skip(4);return{C8Z:C4(Y,0),value:C4(Y,0),timescale:Pe(Y),ZLg:Pe(Y),eventDuration:Pe(Y),id:Pe(Y),zj:C4(Y),offset:Y.offset}}; g.$f7=function(Y){var u=sX(Y,0,1701671783);if(!u)return null;var n=avc(u),U=n.C8Z;n=Z4(n.zj);if(Y=sX(Y,u.offset+u.size,1701671783))if(Y=avc(Y),Y=Z4(Y.zj),n&&Y){u=g.A(Object.keys(Y));for(var k=u.next();!k.done;k=u.next())k=k.value,n[k]=Y[k]}return n?new iw(n,U):null}; K4=function(Y,u){for(var n=sX(Y,0,u);n;){var U=n;U.type=1936419184;U.data.setUint32(U.offset+4,1936419184);n=sX(Y,n.offset+n.size,u)}}; g.p4=function(Y,u){for(var n=0,U=[];dR(Y,n);){var k=Gp(Y,n);k.type===u&&U.push(k);n=Ag(k.type)?n+8:n+k.size}return U}; YPS=function(Y,u){var n=g.Tp(Y,0,1937011556),U=g.Tp(Y,0,1953654136);if(!n||!U||Y.getUint32(n.offset+12)>=2)return null;var k=new DataView(u.buffer,u.byteOffset,u.length),m=g.Tp(k,0,1937011556);if(!m)return null;u=k.getUint32(m.dataOffset+8);U=k.getUint32(m.dataOffset+12);if(U!==1701733217&&U!==1701733238)return null;U=new b6c(Y.byteLength+u);f4(U,Y,0,n.offset+12);U.data.setInt32(U.offset,2);U.offset+=4;f4(U,Y,n.offset+16,n.size-16);f4(U,k,k.byteOffset+m.dataOffset+8,u);f4(U,Y,n.offset+n.size,Y.byteLength- (n.offset+n.size));n=g.A([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(k=n.next();!k.done;k=n.next())k=g.Tp(Y,0,k.value),U.data.setUint32(k.offset,k.size+u);Y=g.Tp(U.data,0,1953654136);U.data.setUint32(Y.offset+16,2);return U.data}; uCW=function(Y){var u=g.Tp(Y,0,1937011556);if(!u)return null;var n=Y.getUint32(u.dataOffset+12);if(n!==1701733217&&n!==1701733238)return null;u=sX(Y,u.offset+24+(n===1701733217?28:78),1936289382);if(!u)return null;n=sX(Y,u.offset+8,1935894637);if(!n||Y.getUint32(n.offset+12)!==1667392371)return null;u=sX(Y,u.offset+8,1935894633);if(!u)return null;u=sX(Y,u.offset+8,1952804451);if(!u)return null;n=new Uint8Array(16);for(var U=0;U<16;U++)n[U]=Y.getInt8(u.offset+16+U);return n}; L4=function(Y,u){this.K=Y;this.pos=0;this.start=u||0}; tg=function(Y){return Y.pos>=Y.K.byteLength}; Rl=function(Y,u,n){var U=new L4(n);if(!Be(U,Y))return!1;U=ol(U);if(!ce(U,u))return!1;for(Y=0;u;)u>>>=8,Y++;u=U.start+U.pos;var k=ve(U,!0);U=Y+(U.start+U.pos-u)+k;U=U>9?nTu(U-9,8):nTu(U-2,1);Y=u-Y;n.setUint8(Y++,236);for(u=0;un;k++)n=n*256+wR(Y),U*=128;return u?n-U:n}; xE=function(Y){var u=ve(Y,!0);Y.pos+=u}; mOY=function(Y){if(!ce(Y,440786851,!0))return null;var u=Y.pos;ve(Y,!1);var n=ve(Y,!0)+Y.pos-u;Y.pos=u+n;if(!ce(Y,408125543,!1))return null;ve(Y,!0);if(!ce(Y,357149030,!0))return null;var U=Y.pos;ve(Y,!1);var k=ve(Y,!0)+Y.pos-U;Y.pos=U+k;if(!ce(Y,374648427,!0))return null;var m=Y.pos;ve(Y,!1);var X=ve(Y,!0)+Y.pos-m,S=new Uint8Array(n+12+k+X),C=new DataView(S.buffer);S.set(new Uint8Array(Y.K.buffer,Y.K.byteOffset+u,n));C.setUint32(n,408125543);C.setUint32(n+4,33554431);C.setUint32(n+8,4294967295); S.set(new Uint8Array(Y.K.buffer,Y.K.byteOffset+U,k),n+12);S.set(new Uint8Array(Y.K.buffer,Y.K.byteOffset+m,X),n+12+k);return S}; We=function(Y){var u=Y.pos;Y.pos=0;var n=1E6;Be(Y,[408125543,357149030,2807729])&&(n=D4(Y));Y.pos=u;return n}; XjB=function(Y,u){var n=Y.pos;Y.pos=0;if(Y.K.getUint8(Y.pos)!==160&&!eb(Y)||!ce(Y,160))return Y.pos=n,NaN;ve(Y,!0);var U=Y.pos;if(!ce(Y,161))return Y.pos=n,NaN;ve(Y,!0);wR(Y);var k=wR(Y)<<8|wR(Y);Y.pos=U;if(!ce(Y,155))return Y.pos=n,NaN;U=D4(Y);Y.pos=n;return(k+U)*u/1E9}; eb=function(Y){if(!POY(Y)||!ce(Y,524531317))return!1;ve(Y,!0);return!0}; POY=function(Y){if(Y.AZ()){if(!ce(Y,408125543))return!1;ve(Y,!0)}return!0}; Be=function(Y,u){for(var n=0;n0){var U=DfW(u.substring(n+1));g.$$(U,function(k,m){this.set(m,k)},Y); u=u.substring(0,n)}u=Rn7(u);g.$$(u,function(k,m){this.set(m,k)},Y)}; COA=function(Y){var u=Y.Sp.Ff(),n=[];g.$$(Y.K,function(k,m){n.push(m+"="+k)}); if(!n.length)return u;var U=n.join("&");Y=vwS(Y.Sp)?"&":"?";return u+Y+U}; Il=function(Y,u){var n=new g.Od(u);(u=n.get("req_id"))&&Y.set("req_id",u);g.$$(Y.K,function(U,k){n["set"](k,null)}); return n}; fFm=function(){this.G=this.X=this.K=this.timedOut=this.started=this.J=this.j=0}; zp=function(Y){Y.J=(0,g.j2)();Y.started=0;Y.timedOut=0;Y.K=0}; gR=function(Y,u){var n=Y.started+Y.K*4;u&&(n+=Y.X);n=Math.max(0,n-3);return Math.pow(1.6,n)}; EX=function(Y,u){Y[u]||(Y[u]=new fFm);return Y[u]}; He=function(Y){this.N=this.S=this.J=this.X=0;this.Z=this.W=!1;this.K=Y;this.j=Y.clone()}; Qk0=function(Y,u,n){if(qT(Y.K))return!1;var U=EX(n,Jd(Y.K));if(U.timedOut<1&&U.K<1)return!1;U=U.timedOut+U.K;Y=yv(Y,u);n=EX(n,Jd(Y));return n.timedOut+n.K+01?u=u.RR:(n=EX(n,OX(Y,Y.eQ(u,n),u)),u=Math.max(Y.J,n.timedOut)+u.hT*(Y.X-Y.J)+.25*Y.S,u=u>3?1E3*Math.pow(1.6,u-3):0);return u===0?!0:Y.N+u<(0,g.j2)()}; NCY=function(Y,u,n){Y.K.set(u,n);Y.j.set(u,n);Y.G&&Y.G.set(u,n)}; iIY=function(Y,u,n,U,k){++Y.X;u&&++Y.J;Jd(n.Sp).startsWith("redirector.")&&(Y.K=Y.j.clone(),delete Y.G,U.nE&&delete k[Jd(Y.K)])}; Jg=function(Y){return Y?(Y.itag||"")+";"+(Y.lmt||0)+";"+(Y.xtags||""):""}; qz=function(Y,u,n,U){this.initRange=n;this.indexRange=U;this.K=null;this.X=!1;this.W=0;this.G=this.VT=this.j=null;this.info=u;this.uN=new He(Y)}; al=function(Y,u){this.start=Y;this.end=u;this.length=u-Y+1}; $E=function(Y){Y=Y.split("-");var u=Number(Y[0]),n=Number(Y[1]);if(!isNaN(u)&&!isNaN(n)&&Y.length===2&&(Y=new al(u,n),!isNaN(Y.start)&&!isNaN(Y.end)&&!isNaN(Y.length)&&Y.length>0))return Y}; Yh=function(Y,u){return new al(Y,Y+u-1)}; ZIc=function(Y){return Y.end==null?{start:String(Y.start)}:{start:String(Y.start),end:String(Y.end)}}; uj=function(Y){if(!Y)return new al(0,0);var u=Number(Y.start);Y=Number(Y.end);if(!isNaN(u)&&!isNaN(Y)&&(u=new al(u,Y),u.length>0))return u}; ny=function(Y,u,n,U,k,m,X,S,C,f,Q,N){U=U===void 0?"":U;this.type=Y;this.K=u;this.range=n;this.source=U;this.i4=Q;this.clipId=N===void 0?"":N;this.N=[];this.S="";this.Wz=-1;this.KG=0;this.S=U;this.Wz=k>=0?k:-1;this.startTime=m||0;this.duration=X||0;this.j=S||0;this.X=C>=0?C:this.range?this.range.length:NaN;this.G=this.range?this.j+this.X===this.range.length:f===void 0?!!this.X:f;this.range?(this.J=this.startTime+this.duration*this.j/this.range.length,this.Z=this.duration*this.X/this.range.length,this.W= this.J+this.Z):TCG(this)}; TCG=function(Y){Y.J=Y.startTime;Y.Z=Y.duration;Y.W=Y.J+Y.Z}; rnu=function(Y,u,n){var U=!(!u||u.K!==Y.K||u.type!==Y.type||u.Wz!==Y.Wz);return n?U&&!!u&&(Y.range&&u.range?u.range.end===Y.range.end:u.range===Y.range)&&u.j+u.X===Y.j+Y.X:U}; UT=function(Y){return Y.type===1||Y.type===2}; kh=function(Y){return Y.type===3||Y.type===6}; m$=function(Y,u){return Y.K===u.K?Y.range&&u.range?Y.range.start+Y.j+Y.X===u.range.start+u.j:Y.Wz===u.Wz?Y.j+Y.X===u.j:Y.Wz+1===u.Wz&&u.j===0&&Y.G:!1}; sku=function(Y,u){return Y.Wz!==u.Wz&&u.Wz!==Y.Wz+1||Y.type!==u.type?!1:m$(Y,u)?!0:Math.abs(Y.J-u.J)<=1E-6&&Y.Wz===u.Wz?!1:M3B(Y,u)}; M3B=function(Y,u){return m$(Y,u)||Math.abs(Y.W-u.J)<=1E-6||Y.Wz+1===u.Wz&&u.j===0&&Y.G?!0:!1}; XL=function(Y){return Y.Wz+(Y.G?1:0)}; dOA=function(Y){Y.length===1||g.GZ(Y,function(n){return!!n.range}); for(var u=1;u=u.range.start+u.j&&Y.range.start+Y.j+Y.X<=u.range.start+u.j+u.X:Y.Wz===u.Wz&&Y.j>=u.j&&(Y.j+Y.X<=u.j+u.X||u.G)}; t3t=function(Y,u){return Y.K!==u.K?!1:Y.type===4&&u.type===3&&Y.K.qa()?(Y=Y.K.UH(Y),g3(Y,function(n){return t3t(n,u)})):Y.Wz===u.Wz&&!!u.X&&u.j+u.X>Y.j&&u.j+u.X<=Y.j+Y.X}; SW=function(Y,u){var n=u.Wz;Y.S="updateWithSegmentInfo";Y.Wz=n;if(Y.startTime!==u.startTime||Y.duration!==u.duration)Y.startTime=u.startTime+0,Y.duration=u.duration,TCG(Y)}; Cy=function(Y,u){var n=this;this.mq=Y;this.G=this.K=null;this.J=this.Ka=NaN;this.eQ=this.requestId=null;this.IH={yiG:function(){return n.range}}; this.uN=Y[0].K.uN;this.j=u||"";this.mq[0].range&&this.mq[0].X>0&&(GFt(Y)?(this.range=dOA(Y),this.X=this.range.length):(this.range=this.mq[this.mq.length-1].range,this.X=AnA(Y)))}; fy=function(Y){return!UT(Y.mq[Y.mq.length-1])}; QN=function(Y){return Y.mq[Y.mq.length-1].type===4}; g.N2=function(Y,u,n){n=Y.eQ===null?Y.uN.eQ(u,n,Y.mq[0].type):Y.eQ;if(Y.K){u=n?$p(Y.K,u.vD):Y.K;var U=new bw(u);U.get("alr")||U.set("alr","yes");Y.j&&SPS(U,Y.j)}else/http[s]?:\/\//.test(Y.j)?U=new bw(new g.Od(Y.j)):(U=Vv(Y.uN,n,u),Y.j&&SPS(U,Y.j));(u=Y.range)?U.set("range",u.toString()):Y.mq[0].K.A1()&&Y.mq.length===1&&Y.mq[0].j&&U.set("range",Y.mq[0].j+"-");Y.requestId&&U.set("req_id",Y.requestId);isNaN(Y.Ka)||U.set("headm",Y.Ka.toString());isNaN(Y.J)||U.set("mffa",Y.J+"ms");Y.urlParams&&g.$$(Y.urlParams, function(k,m){U.set(m,k)}); return U}; BCu=function(Y){if(Y.range)return Y.X;Y=Y.mq[0];return Math.round(Y.Z*Y.K.info.NF)}; oTA=function(Y,u){return Math.max(0,Y.mq[0].J-u)}; ij=function(Y,u,n,U,k,m){m=m===void 0?0:m;qz.call(this,Y,u,U,void 0);this.J=n;this.k8=m;this.index=k||new g.n4}; cne=function(Y,u,n,U,k){this.Wz=Y;this.startSecs=u;this.Ox=n;this.K=U||NaN;this.j=k||NaN}; ZL=function(Y,u,n){for(;Y;Y=Y.parentNode)if(Y.attributes&&(!n||Y.nodeName===n)){var U=Y.getAttribute(u);if(U)return U}return""}; TH=function(Y,u){for(;Y;Y=Y.parentNode){var n=Y.getElementsByTagName(u);if(n.length>0)return n[0]}return null}; vTc=function(Y){if(!Y)return 0;var u=Y.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return u?(Number(u[2])|0)*3600+(Number(u[4])|0)*60+(Number(u[6])|0):Number(Y)|0}; Rqe=function(Y){return Y.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?Y+"Z":Y}; rz=function(){this.K=[];this.j=null;this.W=0;this.X=[];this.J=!1;this.S="";this.G=-1}; DOm=function(Y){var u=Y.X;Y.X=[];return u}; xO7=function(){this.G=[];this.K=null;this.j={};this.X={}}; WVG=function(Y,u){var n=[];u=Array.from(u.getElementsByTagName("SegmentTimeline"));u=g.A(u);for(var U=u.next();!U.done;U=u.next()){U=U.value;var k=U.parentNode.parentNode,m=null;k.nodeName==="Period"?m=lFA(Y):k.nodeName==="AdaptationSet"?(k=k.getAttribute("id")||k.getAttribute("mimetype")||"",m=hqd(Y,k)):k.nodeName==="Representation"&&(k=k.getAttribute("id")||"",m=wjS(Y,k));if(m==null)return;m.update(U);g.DJ(n,DOm(m))}g.DJ(Y.G,n);BGS(Y.G,function(X){return X.startSecs*1E3+X.K})}; equ=function(Y){Y.K&&(Y.K.K=[]);g.$$(Y.j,function(u){u.K=[]}); g.$$(Y.X,function(u){u.K=[]})}; lFA=function(Y){Y.K||(Y.K=new rz);return Y.K}; hqd=function(Y,u){Y.j[u]||(Y.j[u]=new rz);return Y.j[u]}; wjS=function(Y,u){Y.X[u]||(Y.X[u]=new rz);return Y.X[u]}; sT=function(Y){var u=Y===void 0?{}:Y;Y=u.k8===void 0?0:u.k8;var n=u.UK===void 0?!1:u.UK;var U=u.tI===void 0?0:u.tI;var k=u.qA===void 0?0:u.qA;var m=u.fF===void 0?Infinity:u.fF;var X=u.rd===void 0?0:u.rd;var S=u.H4===void 0?!1:u.H4;u=u.FU===void 0?!1:u.FU;g.n4.call(this);this.b5=this.EA=-1;this.D0=Y;this.tI=U;this.UK=n;this.qA=k;this.fF=m;this.rd=X;((this.H4=S)||isFinite(m)&&this.fF>0)&&n&&M2&&(this.j=!1,this.X="postLive");this.FU=u}; dz=function(Y,u){return Eq(Y.segments,function(n){return u-n.Wz})}; GH=function(Y,u,n){n=n===void 0?{}:n;ij.call(this,Y,u,"",void 0,void 0,n.k8||0);this.index=new sT(n)}; AU=function(Y,u,n){qz.call(this,Y,u);this.J=n;Y=this.index=new g.n4;Y.j=!1;Y.X="d"}; bIM=function(Y,u,n){var U=Y.index.Px(u),k=Y.index.getStartTime(u),m=Y.index.getDuration(u);n?m=n=0:n=Y.info.NF*m;return new Cy([new ny(3,Y,void 0,"otfCreateRequestInfoForSegment",u,k,m,0,n)],U)}; IFu=function(Y,u){if(!Y.index.isLoaded()){var n=[],U=u.G;u=u.J.split(",").filter(function(Q){return Q.length>0}); for(var k=0,m=0,X=0,S=/^(\d+)/,C=/r=(\d+)/,f=0;f0&&(k.K=Math.min(k.K+X,10),k.j=m);k.K>0?(k.K--,k=!0):k=!1;if(k)typeof U==="function"&&(U=U()),console.log("plyr."+u,U);else{var S;U=((S=V3A.get(u))!=null?S:0)+1;V3A.set(u,U);U%100===1&&console.warn("plyr","plyr."+u+" is chatty, dropping logs.")}}}; ynG=function(){this.K=10;this.j=Date.now()}; py=function(Y,u){this.info=Y;this.j=u;this.K=null;this.G=this.X=-1;this.timestampOffset=0;this.isLocked=this.W=!1;this.J=this.info.K.o4()&&!this.info.j}; g.Ly=function(Y){return WKu(Y.j)}; OIA=function(Y,u){u=Math.min(u,Y.info.X);var n=Y.j.split(u),U=n.il;n=new py(new ny(Y.info.type,Y.info.K,Y.info.range,Y.info.S,Y.info.Wz,Y.info.startTime,Y.info.duration,Y.info.j,u,!1,Y.info.i4,Y.info.clipId),n.uo);n.G=Y.G;n.X=Y.X;u=new py(new ny(Y.info.type,Y.info.K,Y.info.range,Y.info.S,Y.info.Wz,Y.info.startTime,Y.info.duration,Y.info.j+u,Y.info.X-u,Y.info.G,Y.info.i4,Y.info.clipId),U);u.G=Y.G;u.X=Y.X;return[n,u]}; g.tU=function(Y,u,n,U){n=n===void 0?!1:n;U=U===void 0?0:U;if(Y.isLocked||u.isLocked||!m$(Y.info,u.info)||Y.info.G)return null;if(U){if(Y.j.totalLength+u.j.totalLength>U)return null}else if(n&&(n=Y.j,U=u.j,n=!(U.K.length?hNY(n,U.K[0]):1)),n)return null;n=new ny(Y.info.type,Y.info.K,Y.info.range,Y.info.S,Y.info.Wz,Y.info.startTime,Y.info.duration,Y.info.j,Y.info.X,Y.info.G,Y.info.i4,Y.info.clipId);U=u.info;n.X+=U.X;n.range&&(n.Z+=U.Z);n.W=U.W;n.G=U.G;U=new un;nG(U,Y.j);nG(U,u.j);n=new py(n,U);n.K!= null&&u.K!=null&&(new g.jW("dash")).K(414627957,"merged slice emsg overridden; prev: "+n.K.yb()+" next: "+u.K.yb());n.K=u.K||Y.K;n.X=Y.X!==-1?Y.X:u.X;n.G=Y.G!==-1?Y.G:u.G;return n}; g.B0=function(Y){g.FC(Y.info.K.info)||Y.info.K.info.Kp();if(Y.X!==-1)return Y.X;if(Y.K&&gwM(Y.K))return Y.X=gwM(Y.K),Y.X;if(g.FC(Y.info.K.info)){var u=g.Ly(Y);for(var n=Y.info.K.K,U=NaN,k=NaN,m=0;dR(u,m);){var X=Gp(u,m);X.type===1936286840?k=X.data.getUint32(X.dataOffset+8):X.type===1836476516?k=g.rR(X):X.type===1952867444&&isNaN(U)&&(U=g.jb(X));m=Ag(X.type)?m+8:m+X.size}!k&&n&&(k=Mz(n));u=U/k}else u=new L4(g.Ly(Y)),n=Y.J?u:new L4(new DataView(Y.info.K.K.buffer)),U=We(n),n=u.pos,u.pos=0,eb(u)?ce(u, 231)?(U=D4(u)*U/1E9,u.pos=n,u=U):(u.pos=n,u=NaN):(u.pos=n,u=NaN);Y.X=u||Y.info.J;return Y.X}; JnW=function(Y,u){Y.timestampOffset>0&&(u-=Y.timestampOffset);var n=g.B0(Y)+u;FVM(Y,n);Y.timestampOffset=u}; FVM=function(Y,u){g.FC(Y.info.K.info)||Y.info.K.info.Kp();Y.X=u;if(g.FC(Y.info.K.info)){var n=g.Ly(Y);Y=Y.info.K.K;for(var U=NaN,k=NaN,m=0;dR(n,m);){var X=Gp(n,m);isNaN(U)&&(X.type===1936286840?U=X.data.getUint32(X.dataOffset+8):X.type===1836476516&&(U=g.rR(X)));if(X.type===1952867444){!U&&Y&&(U=Mz(Y));var S=g.jb(X);isNaN(k)&&(k=Math.round(u*U)-S);var C=X;S+=k;if(C.data.getUint8(C.dataOffset)){var f=C.data;C=C.dataOffset+4;f.setUint32(C,Math.floor(S/4294967296));f.setUint32(C+4,S&4294967295)}else C.data.setUint32(C.dataOffset+ 4,S)}m=Ag(X.type)?m+8:m+X.size}return!0}n=new L4(g.Ly(Y));Y=Y.J?n:new L4(new DataView(Y.info.K.K.buffer));U=We(Y);Y=n.pos;n.pos=0;if(eb(n)&&ce(n,231))if(k=ve(n,!0),u=Math.floor(u*1E9/U),Math.ceil(Math.log(u)/Math.log(2)/8)>k)u=!1;else{for(U=k-1;U>=0;U--)n.K.setUint8(n.pos+U,u&255),u>>>=8;n.pos=Y;u=!0}else u=!1;return u}; c0=function(Y,u){u=u===void 0?!1:u;var n=oC(Y);Y=u?0:Y.info.Z;return n||Y}; oC=function(Y){g.FC(Y.info.K.info)||Y.info.K.info.Kp();if(Y.K&&Y.info.type===6)return Y.K.k8;if(g.FC(Y.info.K.info)){var u=g.Ly(Y);var n=0;u=g.p4(u,1936286840);u=g.A(u);for(var U=u.next();!U.done;U=u.next())U=qRG(U.value),n+=U.Uv[0]/U.timescale;n=n||NaN;if(!(n>=0))a:{n=g.Ly(Y);u=Y.info.K.K;for(var k=U=0,m=0;dR(n,U);){var X=Gp(n,U);if(X.type===1836476516)k=g.rR(X);else if(X.type===1836019558){!k&&u&&(k=Mz(u));if(!k){n=NaN;break a}var S=sX(X.data,X.dataOffset,1953653094),C=S;S=k;var f=sX(C.data,C.dataOffset, 1952868452);C=sX(C.data,C.dataOffset,1953658222);var Q=Xt(f);Xt(f);Q&2&&Xt(f);f=Q&8?Xt(f):0;var N=Xt(C),Z=N&1;Q=N&4;var T=N&256,r=N&512,K=N&1024;N&=2048;var L=Pe(C);Z&&Xt(C);Q&&Xt(C);for(var R=Z=0;R2048?"":u.indexOf("https://")===0?u:""}; hU=function(Y,u,n){u.match(Swd);return Y(u,n).then(function(U){var k=g.P$t(U.xhr);return k?hU(Y,k,n):U.xhr})}; bj=function(Y,u,n){Y=Y===void 0?"":Y;u=u===void 0?null:u;n=n===void 0?!1:n;g.ud.call(this);var U=this;this.sourceUrl=Y;this.isLivePlayback=n;this.CG=this.duration=0;this.isPremiere=this.H4=this.G=this.isLiveHeadPlayable=this.isLive=this.j=!1;this.fF=this.qA=0;this.isOtf=this.W$=!1;this.Fk=(0,g.j2)();this.KG=Infinity;this.K={};this.X=new Map;this.state=this.Ab=0;this.timeline=null;this.isManifestless=!1;this.jG=[];this.W=null;this.rg=0;this.J="";this.MF=NaN;this.DW=this.Gw=this.timestampOffset=this.S= 0;this.z3=this.hG=NaN;this.CT=0;this.JJ=this.N=!1;this.zZ=[];this.TZ={};this.oV=NaN;this.IH={idG:function(S){wz(U,S)}}; var k;this.dg=(k=u)==null?void 0:k.vz("html5_use_network_error_code_enums");C$u=!!u&&u.vz("html5_modern_vp9_mime_type");var m;W0=!((m=u)==null||!m.vz("html5_enable_flush_during_seek"))&&g.Io();var X;eW=!((X=u)==null||!X.vz("html5_enable_reset_audio_decoder"))&&g.Io()}; fyM=function(Y){return g.n3(Y.K,function(u){return!!u.info.video&&u.info.video.qualityOrdinal>=2160})}; LQe=function(Y){return g.n3(Y.K,function(u){return!!u.info.video&&u.info.video.isHdr()})}; Is=function(Y){return g.n3(Y.K,function(u){return!!u.info.Ls})}; g.QZd=function(Y){return g.n3(Y.K,function(u){return Y6(u.info.mimeType)})}; Nb0=function(Y){return g.n3(Y.K,function(u){return u.info.video?u.info.video.projectionType==="EQUIRECTANGULAR":!1})}; iht=function(Y){return g.n3(Y.K,function(u){return u.info.video?u.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; ZhY=function(Y){return g.n3(Y.K,function(u){return u.info.video?u.info.video.projectionType==="MESH":!1})}; Tbm=function(Y){return g.n3(Y.K,function(u){return u.info.video?u.info.video.stereoLayout===1:!1})}; roG=function(Y){return Dmt(Y.K,function(u){return u.info.video?u.Fz():!0})}; W5=function(Y){return g.n3(Y.K,function(u){return qT(u.uN.K)})}; wz=function(Y,u){Y.K[u.info.id]=u;Y.X.set(Jg(g.qO(u.info,Y.W$)),u)}; gz=function(Y,u,n){n=n===void 0?0:n;var U=Y.mimeType||"",k=Y.itag;var m=Y.xtags;k=k?k.toString():"";m&&(k+=";"+m);m=k;if($T(U)){var X=Y.width||640;k=Y.height||360;var S=Y.fps,C=Y.qualityLabel,f=Y.qualityOrdinal,Q=Y.colorInfo,N=Y.projectionType,Z;Y.stereoLayout&&(Z=MJm[Y.stereoLayout]);var T=mZ0(Y)||void 0;if(Q==null?0:Q.primaries)var r=sZB[Q.primaries]||void 0;X=new wC(X,k,S,N,Z,void 0,C,f&&dZu[f],T,r);U=IC(U,X,bO[Y.itag||""]);W0&&(U+="; enableflushduringseek=true");eW&&(U+="; enableresetaudiodecoder=true")}var K; if(ak(U)){var L=Y.audioSampleRate;Z=Y.audioTrack;L=new KI(L?+L:void 0,Y.audioChannels,Y.spatialAudioType,Y.isDrc,Y.loudnessDb,Y.trackAbsoluteLoudnessLkfs,Y.audioQuality||"AUDIO_QUALITY_UNKNOWN",Y.isVb);Z&&(r=Z.displayName,k=Z.id,Z=Z.audioIsDefault,r&&(K=new g.lj(r,k||"",!!Z)))}var R;Y.captionTrack&&(C=Y.captionTrack,Z=C.displayName,r=C.vssId,k=C.languageCode,S=C.kind,C=C.id,Z&&r&&k&&(R=new UZt(Z,r,k,S,Y.xtags,C)));Z=Number(Y.bitrate)/8;r=Number(Y.contentLength);k=Number(Y.lastModified);C=Y.drmFamilies; S=Y.type;n=n&&r?r/n:0;Y=Number(Y.approxDurationMs);if(u&&C){var c={};C=g.A(C);for(f=C.next();!f.done;f=C.next())(f=zH[f.value])&&(c[f]=u[f])}return new Ik(m,U,{audio:L,video:X,dX:K,Ls:c,NF:Z,Au:n,contentLength:r,lastModified:k,captionTrack:R,streamType:S,approxDurationMs:Y})}; ET=function(Y,u,n){n=n===void 0?0:n;var U=Y.type;var k=Y.itag;var m=Y.xtags;m&&(k=Y.itag+";"+m);if($T(U)){var X=(Y.size||"640x360").split("x");X=new wC(+X[0],+X[1],+Y.fps,Y.projection_type,+Y.stereo_layout,void 0,Y.quality_label,+Y.quality_ordinal,Y.eotf,Y.primaries);U=IC(U,X,bO[Y.itag]);W0&&(U+="; enableflushduringseek=true");eW&&(U+="; enableresetaudiodecoder=true")}var S;if(ak(U)){var C=new KI(+Y.audio_sample_rate||void 0,+Y.audio_channels||0,Y.spatial_audio_type,!!Y.drc);Y.name&&(S=new g.lj(Y.name, Y.audio_track_id,Y.isDefault==="1"))}var f;Y.caption_display_name&&Y.caption_vss_id&&Y.caption_language_code&&(f=new UZt(Y.caption_display_name,Y.caption_vss_id,Y.caption_language_code,Y.caption_kind,Y.xtags,Y.caption_id));m=Number(Y.bitrate)/8;var Q=Number(Y.clen),N=Number(Y.lmt);n=n&&Q?Q/n:0;if(u&&Y.drm_families){var Z={};for(var T=g.A(Y.drm_families.split(",")),r=T.next();!r.done;r=T.next())r=r.value,Z[r]=u[r]}return new Ik(k,U,{audio:C,video:X,dX:S,Ls:Z,NF:m,Au:n,contentLength:Q,lastModified:N, captionTrack:f,streamType:Y.stream_type,approxDurationMs:Number(Y.approx_duration_ms)})}; Guc=function(Y){return g3(Y,function(u){return"FORMAT_STREAM_TYPE_OTF"===u.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; AoY=function(Y){return g3(Y,function(u){return"FORMAT_STREAM_TYPE_OTF"===u.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; jZA=function(Y,u){return Y.timeline?w$(Y.timeline.G,u):Y.jG.length?w$(Y.jG,u):[]}; H0=function(Y,u,n){u=u===void 0?"":u;n=n===void 0?"":n;Y=new g.Od(Y,!0);Y.set("alr","yes");n&&(n=y0d(decodeURIComponent(n)),Y[P[10]](u,encodeURIComponent(n)));return Y}; tJW=function(Y,u){var n=ZL(u,"id");n=n.replace(":",";");var U=ZL(u,"mimeType"),k=ZL(u,"codecs");U=k?U+'; codecs="'+k+'"':U;k=Number(ZL(u,"bandwidth"))/8;var m=Number(TH(u,"BaseURL").getAttribute(Y.J+":contentLength")),X=Y.duration&&m?m/Y.duration:0;if($T(U)){var S=Number(ZL(u,"width"));var C=Number(ZL(u,"height")),f=Number(ZL(u,"frameRate")),Q=K47(ZL(u,Y.J+":projectionType"));a:switch(ZL(u,Y.J+":stereoLayout")){case "layout_left_right":var N=1;break a;case "layout_top_bottom":N=2;break a;default:N= 0}S=new wC(S,C,f,Q,N)}if(ak(U)){var Z=Number(ZL(u,"audioSamplingRate"));var T=Number(ZL(u.getElementsByTagName("AudioChannelConfiguration")[0],"value"));C=paS(ZL(u,Y.J+":spatialAudioType"));Z=new KI(Z,T,C);a:{T=ZL(u,"lang")||"und";if(C=TH(u,"Role"))if(Q=ZL(C,"value")||"",g.f3(L4c,Q)){C=T+"."+L4c[Q];f=Q==="main";Y=ZL(u,Y.J+":langName")||T+" - "+Q;T=new g.lj(Y,C,f);break a}T=void 0}}if(u=TH(u,"ContentProtection"))if(u.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var r={};for(u= u.firstChild;u!=null;u=u.nextSibling)u instanceof Element&&/SystemURL/.test(u.nodeName)&&(Y=u.getAttribute("type"),C=u.textContent,Y&&C&&(r[Y]=C.trim()))}else r=void 0;return new Ik(n,U,{audio:Z,video:S,dX:T,Ls:r,NF:k,Au:X,contentLength:m})}; K47=function(Y){switch(Y){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; paS=function(Y){switch(Y){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; o6u=function(Y,u){u=u===void 0?"":u;Y.state=1;Y.Fk=(0,g.j2)();return XaW(u||Y.sourceUrl).then(function(n){if(!Y.gg()){Y.Ab=n.status;n=n.responseText;var U=new DOMParser;n=Bp(U,cHA(n),"text/xml").getElementsByTagName("MPD")[0];Y.KG=vTc(ZL(n,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(n.attributes){U=g.A(n.attributes);for(var k=U.next();!k.done;k=U.next())if(k=k.value,k.value==="http://youtube.com/yt/2012/10/10"){U=k.name.split(":")[1];break b}}U=""}Y.J=U;Y.isLive=Y.KG=Y.KG}; v6W=function(Y){Y.W&&Y.W.stop()}; Bbd=function(Y){var u=Y.KG;isFinite(u)&&(yN(Y)?Y.refresh():(u=Math.max(0,Y.Fk+u-(0,g.j2)()),Y.W||(Y.W=new g.Vp(Y.refresh,u,Y),g.b(Y,Y.W)),Y.W.start(u)))}; R0m=function(Y){Y=Y.K;for(var u in Y){var n=Y[u].index;if(n.isLoaded())return n.iD()+1}return 0}; VN=function(Y){return Y.Gw?Y.Gw-(Y.S||Y.timestampOffset):0}; OT=function(Y){return Y.DW?Y.DW-(Y.S||Y.timestampOffset):0}; FL=function(Y){if(!isNaN(Y.MF))return Y.MF;var u=Y.K,n;for(n in u){var U=u[n].index;if(U.isLoaded()&&!Y6(u[n].info.mimeType)){u=0;for(n=U.qW();n<=U.iD();n++)u+=U.getDuration(n);u/=U.Mi();u=Math.round(u/.5)*.5;U.Mi()>10&&(Y.MF=u);return u}if(Y.isLive&&(U=u[n],U.k8))return U.k8}return NaN}; DZt=function(Y,u){Y=luu(Y.K,function(U){return U.index.isLoaded()}); if(!Y)return NaN;Y=Y.index;var n=Y.x$(u);return Y.getStartTime(n)===u?u:n=0&&k.segments.splice(m,1)}}}; lye=function(Y){for(var u in Y.K)Y6(Y.K[u].info.mimeType)||WQu(Y.K[u].index,Infinity)}; aC=function(Y,u,n){for(var U in Y.K){var k=Y.K[U].index,m=u,X=n;k.UK&&(m&&(k.EA=Math.max(k.EA,m)),X&&(k.b5=Math.max(k.b5||0,X)))}n&&(Y.oV=n/1E3)}; h0c=function(Y){Y.DW=0;Y.Gw=0;Y.CT=0}; $h=function(Y){return Y.JJ&&Y.isManifestless?Y.isLiveHeadPlayable:Y.isLive}; IC=function(Y,u,n){Y4===null&&(Y4=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(C$u&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Y4||n!=="9"&&n!=="("?Y4||n!=="9h"&&n!=="(h"||(Y='video/webm; codecs="vp9.2"'):Y='video/webm; codecs="vp9"',Y;if(!Y4&&!ub||Y!=='video/webm; codecs="vp9"'&&Y!=='video/webm; codecs="vp9.2"')return Y; n="00";var U="08",k="01",m="01",X="01";Y==='video/webm; codecs="vp9.2"'&&(n="02",U="10",u.primaries==="bt2020"&&(X=k="09"),u.K==="smpte2084"&&(m="16"),u.K==="arib-std-b67"&&(m="18"));return'video/webm; codecs="'+["vp09",n,"51",U,"01",k,m,X,"00"].join(".")+'"'}; Um=function(Y,u,n){Y=""+Y+(u>49?"p60":u>32?"p48":"");u=GY()[Y];if(u!=null&&u>0)return u;u=nD.get(Y);if(u!=null&&u>0)return u;n=n==null?void 0:n.get(Y);return n!=null&&n>0?n:8192}; waW=function(Y){this.GZ=Y;this.MR=this.Q_=this.MF=this.J=this.G=this.zZ=this.CG=this.KG=!1;this.S=this.W=0;this.Pz=!1;this.oV=!0;this.dg=!1;this.nU=0;this.FC=this.DW=!1;this.lD=!0;this.JJ=this.Fk=!1;this.K={};this.Gw=this.lN=this.uD=this.disableAv1=this.Ru=this.Cs=this.Iu=this.nT=this.j=this.Z=!1;this.jG=0;this.Uc=!1;this.sx=this.GZ.V("html5_disable_aac_preference");this.Ub=Infinity;this.rg=0;this.eE=this.GZ.gX();this.CT=this.GZ.experiments.vz("html5_enable_vp9_fairplay");this.b8=this.GZ.V("html5_force_av1_for_testing"); this.TZ=g.YF(this.GZ.experiments,"html5_av1_ordinal_cap");this.tS=this.GZ.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.UD=this.GZ.V("html5_account_onesie_format_selection_during_format_filter");this.NF=g.YF(this.GZ.experiments,"html5_max_byterate");this.Qm=this.GZ.V("html5_enable_iamf_audio");this.yY=this.GZ.experiments.vz("html5_allow_capability_merge");this.Qe=this.GZ.V("html5_enable_encrypted_av1");this.jG=g.YF(this.GZ.experiments,"html5_hard_cap_max_vertical_resolution");this.Uc= this.GZ.V("html5_enable_new_audio_settings_menu")}; trt=function(Y){if(Y.CG)return["f"];if(g.es("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var u=["9h","9","h","8"];Y.Qe&&u.push("1e");u=u.concat(["(h","(","H","*"]);Y.DW&&(u.unshift("1"),u.unshift("1h"));Y.Q_&&u.unshift("h");Y.N&&(u=(W4M[Y.N]||[Y.N]).concat(u));return u}; dfe=function(Y){var u=["o","a","A"];Y.rg===1&&(Y.G&&(u=["mac3","MAC3"].concat(u)),Y.J&&(u=["meac3","MEAC3"].concat(u)),Y.Qm&&(u=["i","I"].concat(u)));Y.KG&&(u=["so","sa"].concat(u));!Y.MR||Y.MF||Y.X||Y.sx||u.unshift("a");Y.X&&(u=(W4M[Y.X]||[Y.X]).concat(u));return u}; k4=function(Y,u,n,U){u=u===void 0?{}:u;if(U===void 0?0:U)return u.disabled=1,0;if(yu(Y.J,Vu.AV1_CODECS)&&yu(Y.J,Vu.HEIGHT)&&yu(Y.J,Vu.BITRATE))return u.isCapabilityUsable=1,8192;try{var k=YRu();if(k&&!Y.V("disable_av1_setting"))return u.localPref=k}catch(S){}U=1080;k=navigator.hardwareConcurrency;k<=2&&(U=480);u.coreCount=k;if(k=g.YF(Y.experiments,"html5_default_av1_threshold"))U=u["default"]=k;!Y.V("html5_disable_av1_arm_check")&&iJt()&&(u.isArm=1,U=240);if(Y=Y.J.oV)u.mcap=Y,U=Math.max(U,Y);if(n){var m, X;if(Y=(m=n.videoInfos.find(function(S){return yg(S)}))==null?void 0:(X=m.j)==null?void 0:X.powerEfficient)U=8192,u.isEfficient=1; n=n.videoInfos[0].video;m=Math.min(Um("1",n.fps),Um("1",30));u.perfCap=m;U=Math.min(U,m);n.isHdr()&&!Y&&(u.hdr=1,U*=.75)}else n=Um("1",30),u.perfCap30=n,U=Math.min(U,n),n=Um("1",60),u.perfCap60=n,U=Math.min(U,n);return u.av1Threshold=U}; mT=function(Y,u,n,U){this.flavor=Y;this.keySystem=u;this.j=n;this.experiments=U;this.K={};this.CG=this.keySystemAccess=null;this.K_=this.f_=-1;this.ma=null;this.X=!!U&&U.vz("edge_nonprefixed_eme");U&&U.vz("html5_enable_vp9_fairplay")}; PL=function(Y){return Y.X?!1:!Y.keySystemAccess&&!!XM()&&Y.keySystem==="com.microsoft.playready"}; SF=function(Y){return Y.keySystem==="com.microsoft.playready"}; CD=function(Y){return!Y.keySystemAccess&&!!XM()&&Y.keySystem==="com.apple.fps.1_0"}; fD=function(Y){return Y.keySystem==="com.youtube.fairplay"}; QF=function(Y){return Y.keySystem==="com.youtube.fairplay.sbdl"}; g.Nj=function(Y){return Y.flavor==="fairplay"}; XM=function(){var Y=window,u=Y.MSMediaKeys;EU()&&!u&&(u=Y.WebKitMediaKeys);return u&&u.isTypeSupported?u:null}; ZU=function(Y){return navigator.requestMediaKeySystemAccess?g.sP&&!g.Io()?jK("45"):g.gD||g.QP?Y.vz("edge_nonprefixed_eme"):g.ib?jK("47"):g.Z0&&Y.vz("html5_enable_safari_fairplay")?!1:!0:!1}; e0t=function(Y,u,n,U){var k=zq(),m=(n=k||n&&EU())?["com.youtube.fairplay"]:["com.widevine.alpha"];u&&m.unshift("com.youtube.widevine.l3");k&&U&&m.unshift("com.youtube.fairplay.sbdl");return n?m:Y?[].concat(g.Zu(m),g.Zu(TN.playready)):[].concat(g.Zu(TN.playready),g.Zu(m))}; ra=function(Y,u,n,U,k){U=U===void 0?!1:U;g.e.call(this);this.GZ=u;this.useCobaltWidevine=U;this.fG=k;this.j=[];this.X={};this.K={};this.callback=null;this.J=!1;this.G=[];this.initialize(Y,!n)}; Iyu=function(Y,u){Y.callback=u;Y.G=[];ZU(Y.GZ.experiments)?Mj(Y):bhu(Y)}; Mj=function(Y){if(!Y.gg())if(Y.j.length===0)Y.callback(Y.G);else{var u=Y.j[0],n=Y.X[u],U=z0m(Y,n);if(sm&&sm.keySystem===u&&sm.LWw===JSON.stringify(U))Y.fG("remksa",{re:!0}),g6M(Y,n,sm.keySystemAccess);else{var k,m;Y.fG("remksa",{re:!1,ok:(m=(k=sm)==null?void 0:k.keySystem)!=null?m:""});sm=void 0;navigator.requestMediaKeySystemAccess(u,U).then(u6(function(X){g6M(Y,n,X,U)}),u6(function(){Y.J=!Y.J&&Y.X[Y.j[0]].flavor==="widevine"; Y.J||Y.j.shift();Mj(Y)}))}}}; g6M=function(Y,u,n,U){if(!Y.gg()){U&&(sm={keySystem:u.keySystem,keySystemAccess:n,LWw:JSON.stringify(U)});u.keySystemAccess=n;if(SF(u)){n=rC();U=g.A(Object.keys(Y.K[u.flavor]));for(var k=U.next();!k.done;k=U.next())k=k.value,u.K[k]=!!n.canPlayType(k)}else{n=u.keySystemAccess.getConfiguration();if(n.audioCapabilities)for(U=g.A(n.audioCapabilities),k=U.next();!k.done;k=U.next())u.K[k.value.contentType]=!0;if(n.videoCapabilities)for(n=g.A(n.videoCapabilities),U=n.next();!U.done;U=n.next())u.K[U.value.contentType]= !0}Y.G.push(u);Y.useCobaltWidevine||Y.V("html5_enable_vp9_fairplay")&&QF(u)?(Y.j.shift(),Mj(Y)):Y.callback(Y.G)}}; z0m=function(Y,u){var n={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(Y.V("html5_enable_vp9_fairplay")&&fD(u))return n.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),n.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[n];SF(u)&&(n.initDataTypes=["keyids","cenc"]);for(var U=g.A(Object.keys(Y.K[u.flavor])),k=U.next();!k.done;k=U.next()){k=k.value;var m=k.indexOf("audio/")===0,X=m?n.audioCapabilities:n.videoCapabilities;u.flavor!== "widevine"||Y.J?X.push({contentType:k}):m?X.push({contentType:k,robustness:"SW_SECURE_CRYPTO"}):(g.sP&&g.es("windows nt")&&!Y.V("html5_drm_enable_moho")||X.push({contentType:k,robustness:"HW_SECURE_ALL"}),m=k,Y.GZ.J.X&&k.includes("vp09")&&(m=k+"; experimental=allowed"),X.push({contentType:m,robustness:"SW_SECURE_DECODE"}),da(Y.GZ)==="MWEB"&&(Jk()||bL())&&(Y.fG("swcrypto",{}),X.push({contentType:k,robustness:"SW_SECURE_CRYPTO"})))}return[n]}; bhu=function(Y){if(XM()&&(g.Z0||yS))Y.G.push(new mT("fairplay","com.apple.fps.1_0","",Y.GZ.experiments));else{var u=E67(),n=g.G$(Y.j,function(U){var k=Y.X[U],m=!1,X=!1,S;for(S in Y.K[k.flavor])u(S,U)&&(k.K[S]=!0,m=m||S.indexOf("audio/")===0,X=X||S.indexOf("video/")===0);return m&&X}); n&&Y.G.push(Y.X[n]);Y.j=[]}Y.callback(Y.G)}; E67=function(){var Y=XM();if(Y){var u=Y.isTypeSupported;return function(U,k){return u(k,U)}}var n=rC(); return n&&(n.addKey||n.webkitAddKey)?function(U,k){return!!n.canPlayType(U,k)}:function(){return!1}}; Hhu=function(Y){this.experiments=Y;this.K=2048;this.G=0;this.KG=(this.S=this.V("html5_streaming_resilience"))?.5:.25;var u=u===void 0?0:u;this.X=g.YF(this.experiments,"html5_media_time_weight_prop")||u;this.N=(this.J=this.experiments.vz("html5_consider_end_stall"))&&GN;this.j=this.experiments.vz("html5_measure_max_progress_handling");this.Z=this.V("html5_treat_requests_pre_elbow_as_metadata");this.W=this.V("html5_media_time_weight")||!!this.X;this.V("html5_sabr_live_audio_early_return_fix")&&GN&& (this.K=65536)}; yoY=function(Y,u){this.K=void 0;this.experimentIds=Y?Y.split(","):[];this.flags=Jw(u||"","&");Y={};u=g.A(this.experimentIds);for(var n=u.next();!n.done;n=u.next())Y[n.value]=!0;this.experiments=Y}; g.YF=function(Y,u){Y=Y.flags[u];JSON.stringify(Y);return Number(Y)||0}; AB=function(Y,u){return(Y=Y.flags[u])?Y.toString():""}; VJm=function(Y){if(Y=Y.flags.html5_web_po_experiment_ids)if(Y=Y.replace(/\[ *(.*?) *\]/,"$1"))return Y.split(",").map(Number);return[]}; OhG=function(Y){if(Y.K)return Y.K;if(Y.experimentIds.length<=1)return Y.K=Y.experimentIds,Y.K;var u=[].concat(g.Zu(Y.experimentIds)).map(function(U){return Number(U)}); u.sort();for(var n=u.length-1;n>0;--n)u[n]-=u[n-1];Y.K=u.map(function(U){return U.toString()}); Y.K.unshift("v1");return Y.K}; Jou=function(Y){return F40.then(Y)}; jF=function(Y,u,n){this.experiments=Y;this.DW=u;this.rg=n===void 0?!1:n;this.N=!!g.nR("cast.receiver.platform.canDisplayType");this.Z={};this.KG=!1;this.G=new Map;this.S=!0;this.j=this.X=!1;this.K=new Map;this.oV=0;this.jG=this.experiments.vz("html5_disable_vp9_encrypted");this.J=this.experiments.vz("html5_enable_encrypted_av1");Y=g.nR("cast.receiver.platform.getValue");this.W=!this.N&&Y&&Y("max-video-resolution-vpx")||null;qwY(this);this.X=!!(zq()&&Wy()>=21)}; cYm=function(Y,u,n){n=n===void 0?1:n;var U=u.itag;if(U==="0")return!0;var k=u.mimeType;if(u.aV==="1e"&&!Y.J)return"dav1enc";if(yg(u)&&Y.KG)return"dav1";if(u.video&&(u.video.isHdr()||u.video.primaries==="bt2020")&&!(yu(Y,Vu.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(U==="338"&&!(g.sP?jK(53):g.ib&&jK(64)))return"dopus";var m=n;m=m===void 0?1: m;n={};u.video&&(u.video.width&&(n[Vu.WIDTH.name]=u.video.width),u.video.height&&(n[Vu.HEIGHT.name]=u.video.height),u.video.fps&&(n[Vu.FRAMERATE.name]=u.video.fps*m),u.video.K&&(n[Vu.EOTF.name]=u.video.K),u.NF&&(n[Vu.BITRATE.name]=u.NF*8*m),u.aV==="("&&(n[Vu.CRYPTOBLOCKFORMAT.name]="subsample"),u.video.projectionType==="EQUIRECTANGULAR"||u.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||u.video.projectionType==="MESH")&&(n[Vu.DECODETOTEXTURE.name]="true");u.audio&&u.audio.numChannels&& (n[Vu.CHANNELS.name]=u.audio.numChannels);Y.X&&zF(u)&&(n[Vu.EXPERIMENTAL.name]="allowed");m=g.A(Object.keys(Vu));for(var X=m.next();!X.done;X=m.next()){X=Vu[X.value];var S;if(S=n[X.name])if(S=!(X===Vu.EOTF&&u.mimeType.indexOf("vp09.02")>0)){S=X;var C=u;S=!(Y.experiments.vz("html5_ignore_h264_framerate_cap")&&S===Vu.FRAMERATE&&ccc(C))}if(S)if(yu(Y,X))if(Y.W){if(Y.W[X.name] 1080&&u.Ls&&(k+="; hdcp=2.2");return U==="227"?"hqcenc":U!=="585"&&U!=="588"&&U!=="583"&&U!=="586"&&U!=="584"&&U!=="587"&&U!=="591"&&U!=="592"||Y.experiments.vz("html5_enable_new_hvc_enc")?zq()&&Wy()>=21&&g.es("appletv5")&&(U==="410"||U==="845")?!0:Y.isTypeSupported(k)?!0:"tpus":"newhvc"}; KD=function(){var Y=bL()&&!jK(29),u=g.es("google tv")&&g.es("chrome")&&!jK(30);return Y||u?!1:hHW()}; ayc=function(Y,u,n){var U=480;u=g.A(u);for(var k=u.next();!k.done;k=u.next()){k=k.value;var m=k.video.qualityOrdinal;m<=1080&&m>U&&cYm(Y,k,n)===!0&&(U=m)}return U}; g.pD=function(Y,u){u=u===void 0?!1:u;return KD()&&Y.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!u&&Y.canPlayType(rC(),"application/x-mpegURL")?!0:!1}; YJ0=function(Y){$ZS(function(){for(var u=g.A(Object.keys(Vu)),n=u.next();!n.done;n=u.next())yu(Y,Vu[n.value])})}; yu=function(Y,u){u.name in Y.Z||(Y.Z[u.name]=uzB(Y,u));return Y.Z[u.name]}; uzB=function(Y,u){if(Y.W)return!!Y.W[u.name];if(u===Vu.BITRATE&&Y.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!Y.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(u===Vu.AV1_CODECS)return Y.isTypeSupported("video/mp4; codecs="+u.valid)&&!Y.isTypeSupported("video/mp4; codecs="+u.jU);if(u.video){var n='video/webm; codecs="vp9"';Y.isTypeSupported(n)||(n='video/mp4; codecs="avc1.4d401e"')}else n='audio/webm; codecs="opus"', Y.isTypeSupported(n)||(n='audio/mp4; codecs="mp4a.40.2"');return Y.isTypeSupported(n+"; "+u.name+"="+u.valid)&&!Y.isTypeSupported(n+"; "+u.name+"="+u.jU)}; nqS=function(Y,u){var n=0;Y.G.has(u)&&(n=Y.G.get(u).Xl);Y.G.set(u,{Xl:n+1,pD:Math.pow(2,n+1)});Y.j=!0}; zY=function(Y){for(var u=[],n=g.A(Y.K.keys()),U=n.next();!U.done;U=n.next()){U=U.value;var k=Y.K.get(U);u.push(U+"_"+k.maxWidth+"_"+k.maxHeight)}return u.join(".")}; AYB=function(Y,u){for(var n=new Map,U=g.A(Y.K.keys()),k=U.next();!k.done;k=U.next()){k=k.value;var m=k.split("_")[0];u.has(m)||n.set(k,Y.K.get(k))}Y.K=n}; KQe=function(Y,u,n){var U,k=((U=n.video)==null?void 0:U.fps)||0;U=u+"_"+k;var m=!!n.audio,X={itag:n.itag,aV:u,HW:m};if(m)X.numChannels=n.audio.numChannels;else{var S=n.video;X.maxWidth=S==null?void 0:S.width;X.maxHeight=S==null?void 0:S.height;X.maxFramerate=k;yu(Y,Vu.BITRATE)&&(X.maxBitrateBps=n.NF*8);X.ZG=S==null?void 0:S.isHdr()}S=Y.K.get(U);S?m||(n=Math.max(S.maxWidth||0,S.maxHeight||0)>Math.max(X.maxWidth||0,X.maxHeight||0)?S:X,u={itag:n.itag,aV:u,HW:m,maxWidth:Math.max(S.maxWidth||0,X.maxWidth|| 0),maxHeight:Math.max(S.maxHeight||0,X.maxHeight||0),maxFramerate:k,ZG:n.ZG},yu(Y,Vu.BITRATE)&&(u.maxBitrateBps=n.maxBitrateBps),Y.K.set(U,u)):Y.K.set(U,X)}; p1m=function(Y,u,n){var U,k=((U=n.video)==null?void 0:U.fps)||0;U=u+"_"+k;var m=!!n.audio,X=Y.K.get(U);a:{var S=Y.K.get(U),C=!!n.audio;if(S){if(C){var f=!1;break a}var Q;if(!C&&((f=n.video)==null?0:f.height)&&S.maxHeight&&S.maxHeight>=((Q=n.video)==null?void 0:Q.height)){f=!1;break a}}f=!0}f&&(f=n.itag,u=X?X:{itag:f,aV:u,HW:m},m?u.numChannels=n.audio.numChannels:(m=n.video,u.maxWidth=m==null?void 0:m.width,u.maxHeight=m==null?void 0:m.height,u.maxFramerate=k,yu(Y,Vu.BITRATE)&&(u.maxBitrateBps=n.NF* 8),u.ZG=m==null?void 0:m.isHdr()),Y.K.set(U,u))}; qwY=function(Y){var u;(u=navigator.mediaCapabilities)!=null&&u.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(n){n.smooth&&n.powerEfficient&&(Y.oV=2160)})}; LD=function(){g.ud.call(this);this.items={}}; tB=function(Y,u){this.K=Y;this.cipher=this.K.exports.AES128CTRCipher_create(u.byteOffset)}; om=function(){this.j=this.C_=0;this.K=Array.from({length:BL.length}).fill(0)}; Uud=function(){}; kAG=function(){this.startTimeMs=(0,g.j2)();this.K=!1}; mut=function(){this.K=new Uud}; XvS=function(Y,u,n,U){U=U===void 0?1:U;n>=0&&(u in Y.K||(Y.K[u]=new om),Y.K[u].JU(n,U))}; Pqd=function(Y,u,n,U,k){var m=(0,g.j2)(),X=k?k(u):void 0,S;k=(S=X==null?void 0:X.C_)!=null?S:1;if(k!==0){var C;S=(C=X==null?void 0:X.profile)!=null?C:n;XvS(Y,S,m-U,k)}return u}; SJc=function(Y,u,n,U,k){if(u&&typeof u==="object"){var m=function(X){return Pqd(Y,X,n,U,k)}; if(bz(u))return u.then(m);if(eA(u))return H3(u,m)}return Pqd(Y,u,n,U,k)}; Cqd=function(){}; Nut=function(Y,u){return Vm(fZ0,function(){var n=this;return function k(){var m,X,S;return bB(k,function(C){switch(C.j){case 1:g.LY(C,2);if(!n.G)throw"wasm.ps.ns";m=Y;X=z0;return jM(C,Ol(Qjc(n,u)),4);case 4:S=X(C.K);if(!S)throw"wasm.ps.um";try{return C.return(new WebAssembly.Instance(S,m))}catch(f){}return jM(C,Ol(WebAssembly.instantiate(S,m)),5);case 5:return C.return(C.K);case 2:g.lB(C),g.wG(C,0)}})}()})}; iKM=function(Y,u){Y.K||(Y.K=H3(gg(function(){return fetch(u)}),function(n){return n.arrayBuffer()}),ym(Y.K,function(n){Y.K=void 0; throw"wasm.ps.f: "+n;}))}; Qjc=function(Y,u){if(Y.j)return Y.j;Y.j=ZKc(Y,u);ym(Y.j,function(n){Y.j=void 0;throw"wasm.ps.c: "+n;}); return Y.j}; ZKc=function(Y,u){return Vm(Y,function(){var n=this;return function k(){var m,X,S,C,f,Q,N,Z,T,r,K,L,R,c;return bB(k,function(x){switch(x.j){case 1:g.LY(x,2);m=[];X=window.ywc;if(!X){x.qF(4);break}S=X[u];if(!S){x.qF(4);break}if(S.mod)return x.return(S.mod);if(!S.modP){x.qF(6);break}g.pY(x,7);C=z0;return jM(x,Ol(S.modP),9);case 9:return x.return(C(x.K));case 7:g.vc(x),m.unshift("pcm");case 6:if(S.bin){n.K=IY(S.bin);x.qF(4);break}if(!S.binP){x.qF(4);break}g.pY(x,12);f=W3;Q=IY;N=z0;return jM(x,Ol(S.binP), 14);case 14:n.K=Q.call(f,N(x.K));g.Bc(x,4);break;case 12:g.vc(x),n.K=void 0,m.unshift("pfb");case 4:if(!n.K){x.qF(15);break}g.pY(x,16);Z=z0;return jM(x,Ol(n.K),18);case 18:T=Z(x.K);if(n.X)try{return x.return(new WebAssembly.Module(T))}catch(W){n.X=!1,m.unshift("f0cs")}r=z0;return jM(x,Ol(WebAssembly.compile(T)),19);case 19:return x.return(r(x.K));case 16:g.vc(x),n.K=void 0,m.unshift("f0ca");case 15:return g.pY(x,20),iKM(n,u),K=z0,jM(x,Ol(n.K),22);case 22:L=K(x.K);if(n.X)try{return x.return(new WebAssembly.Module(L))}catch(W){n.X= !1,m.unshift("f1cs")}R=z0;return jM(x,Ol(WebAssembly.compile(L)),23);case 23:return x.return(R(x.K));case 20:c=g.vc(x),n.K=void 0,n.G=!1,m.unshift("f1ca: "+c);case 21:throw"["+m.map(function(W){return'"'+W+'"'}).join(", ")+"]"; case 2:g.lB(x),g.wG(x,0)}})}()})}; Tuu=function(){}; r8Y=function(){var Y=this;this.proc_exit=function(){}; this.fd_write=function(u,n,U){if(!Y.exports)return 1;u=new Uint32Array(Y.exports.memory.buffer,n,U*2);n=[];for(var k=0;k0)u=Y.byterate,this.KG=!0;else{var U; n=(((U=navigator.connection)==null?void 0:U.downlink)||0)*64*1024;n>0&&(u=n,this.KG=!0)}this.X.Vu(this.policy.W,u);Y.delay>0&&this.Z.Vu(1,Math.min(Y.delay,2));Y.stall>0&&this.S.Vu(1,Y.stall);Y.init>0&&(this.Fk=Math.min(Y.init,this.Fk));Y.interruptions&&(this.G=this.G.concat(Y.interruptions),this.G.length>16&&this.G.pop());this.oV=(0,g.j2)();this.policy.S>0&&(this.JJ=new g.Vp(this.zZ,this.policy.S,this),g.b(this,this.JJ),this.JJ.start())}; zN=function(Y,u,n,U){Y.X.Vu(U===void 0?u:U,n/u);Y.W=(0,g.j2)()}; pvm=function(Y){Y.J||(Y.J=(0,g.j2)());Y.policy.N&&(Y.W=(0,g.j2)())}; Lbu=function(Y,u){if(Y.J){var n=u-Y.J;if(n<6E4){if(n>1E3){var U=Y.interruptions;U.push(Math.ceil(n));U.sort(function(k,m){return m-k}); U.length>16&&U.pop()}Y.DW+=n}}Y.J=u}; Em=function(Y,u,n,U,k,m){m=m===void 0?!1:m;Y.MF.Vu(u,n/u);Y.W=(0,g.j2)();k||Y.N.Vu(1,u-U);m||(Y.J=0);Y.oV>-1&&(0,g.j2)()-Y.oV>3E4&&t0W(Y)}; HL=function(Y,u,n){u=Math.max(u,Y.j.K);Y.S.Vu(1,n/u)}; yF=function(Y){Y=Y.Z.E6()+Y.rg.E6()||0;Y=isNaN(Y)?.5:Y;return Y=Math.min(Y,5)}; VF=function(Y,u,n){isNaN(n)||(Y.jG+=n);isNaN(u)||(Y.CG+=u)}; Om=function(Y){Y=Y.X.E6();return Y>0?Y:1}; FM=function(Y,u,n){u=u===void 0?!1:u;n=n===void 0?1048576:n;var U=Om(Y);U=1/((Y.S.E6()||0)*Y.policy.KG+1/U);var k=Y.MF.E6();k=k>0?k:1;var m=Math.max(U,k);Y.policy.J>0&&k=4E3}; oqu=function(Y){this.experiments=Y;this.K=17;this.X=13E4;this.W=.5;this.G=this.j=!1;this.oV=this.V("html5_use_histogram_for_bandwidth");this.J=g.YF(this.experiments,"html5_auxiliary_estimate_weight");this.KG=g.YF(this.experiments,"html5_stall_factor")||1;this.S=g.YF(this.experiments,"html5_check_for_idle_network_interval_ms");this.Z=this.experiments.vz("html5_trigger_loader_when_idle_network");this.N=this.experiments.vz("html5_sabr_fetch_on_idle_network_preloaded_players")}; vqY=function(Y,u){Y=Y===void 0?{}:Y;u=u===void 0?{}:u;g.e.call(this);var n=this;this.values=Y;this.jn=u;this.j={};this.X=this.K=0;this.G=new g.Vp(function(){c8W(n)},1E4); g.b(this,this.G)}; qj=function(Y,u){RaW(Y,u);return Y.values[u]&&Y.jn[u]?Y.values[u]/Math.pow(2,Y.K/Y.jn[u]):0}; RaW=function(Y,u){Y.values[u]||(u=J0t(),Y.values=u.values||{},Y.jn=u.halfLives||{},Y.j=u.values?Object.assign({},u.values):{})}; c8W=function(Y){var u=J0t();if(u.values){u=u.values;for(var n={},U=g.A(Object.keys(Y.values)),k=U.next();!k.done;k=U.next())k=k.value,u[k]&&Y.j[k]&&(Y.values[k]+=u[k]-Y.j[k]),n[k]=qj(Y,k);Y.j=n}u=Y.jn;n={};n.values=Y.j;n.halfLives=u;g.oU("yt-player-memory",n,2592E3)}; r9=function(Y,u,n,U,k){g.e.call(this);this.webPlayerContextConfig=u;this.NI=U;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.KF=this.Ru=this.Cs=this.Y$=this.userDisplayName=this.userDisplayImage=this.WC="";this.K={};this.Gw={};this.controlsType="0";this.Ub=NaN;this.Pz=!1;this.Jr=(0,g.j2)();this.nT=0;this.xO=this.Rj=!1;this.dO=!0;this.preferGapless=this.ma=this.MA=this.X=this.gL=!1;this.FY=[];this.VI=!1;this.mG=0;Y=Y?g.rc(Y):{};u&&u.csiPageType&&(this.csiPageType=u.csiPageType);u&&u.csiServiceName&& (this.csiServiceName=u.csiServiceName);u&&u.preferGapless&&(this.preferGapless=u.preferGapless);this.experiments=new yoY(u?u.serializedExperimentIds:Y.fexp,u?u.serializedExperimentFlags:Y.fflags);this.forcedExperiments=u?u.serializedForcedExperimentIds:nb("",Y.forced_experiments)||void 0;this.cspNonce=(u==null?0:u.cspNonce)?u.cspNonce:nb("",Y.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var m=document.location.toString()}catch(Xd){m=""}this.tS=m;this.ancestorOrigins=(U=window.location.ancestorOrigins)? Array.from(U):[];this.G=$o(!1,u?u.isEmbed:Y.is_embed);if(u&&u.device){if(U=u.device,U.androidOsExperience&&(this.K.caoe=""+U.androidOsExperience),U.androidPlayServicesVersion&&(this.K.capsv=""+U.androidPlayServicesVersion),U.brand&&(this.K.cbrand=U.brand),U.browser&&(this.K.cbr=U.browser),U.browserVersion&&(this.K.cbrver=U.browserVersion),U.cobaltReleaseVehicle&&(this.K.ccrv=""+U.cobaltReleaseVehicle),this.K.c=U.interfaceName||"WEB",this.K.cver=U.interfaceVersion||"html5",U.interfaceTheme&&(this.K.ctheme= U.interfaceTheme),this.K.cplayer=U.interfacePlayerType||"UNIPLAYER",U.model&&(this.K.cmodel=U.model),U.network&&(this.K.cnetwork=U.network),U.os&&(this.K.cos=U.os),U.osVersion&&(this.K.cosver=U.osVersion),U.platform&&(this.K.cplatform=U.platform),m=AB(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),m==="all"||m==="once")U.chipset&&(this.Gw.cchip=U.chipset),U.cobaltAppVersion&&(this.Gw.ccappver=U.cobaltAppVersion),U.firmwareVersion&&(this.Gw.cfrmver=U.firmwareVersion),U.deviceYear&&(this.Gw.crqyear= U.deviceYear)}else this.K.c=Y.c||"web",this.K.cver=Y.cver||"html5",this.K.cplayer="UNIPLAYER";this.loaderUrl=u?this.G||Dud(this)&&u.loaderUrl?u.loaderUrl||"":this.tS:this.G||Dud(this)&&Y.loaderUrl?nb("",Y.loaderUrl):this.tS;this.G&&g.Y$("yt.embedded_player.embed_url",this.loaderUrl);this.Z=el(this.loaderUrl,xum);U=this.loaderUrl;var X=X===void 0?!1:X;this.sA=Wx(el(U,lZ7),U,X,"Trusted Ad Domain URL");this.Qm=$o(!1,Y.privembed);this.protocol=this.tS.indexOf("http:")===0?"http":"https";this.uE=C2u((u? u.customBaseYoutubeUrl:Y.BASE_YT_URL)||"")||C2u(this.tS)||this.protocol+"://www.youtube.com/";X=u?u.eventLabel:Y.el;U="detailpage";X==="adunit"?U=this.G?"embedded":"detailpage":X==="embedded"||this.Z?U=YU(U,X,hau):X&&(U="embedded");this.rg=U;jJc();X=null;U=u?u.playerStyle:Y.ps;m=g.jB(wvd,U);!U||m&&!this.Z||(X=U);this.playerStyle=X;this.W=g.jB(wvd,this.playerStyle);this.houseBrandUserStatus=u==null?void 0:u.houseBrandUserStatus;this.oV=this.W&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.Pg=!this.oV;this.JJ=$o(!1,Y.disableplaybackui);this.disablePaidContentOverlay=$o(!1,u==null?void 0:u.disablePaidContentOverlay);this.disableSeek=$o(!1,u==null?void 0:u.disableSeek);this.enableSpeedOptions=(u==null?void 0:u.enableSpeedOptions)||(rC().defaultPlaybackRate?am||g.FA||$4?g.ib&&jK("20")||g.sP&&jK("4")||g.Yn&&jK("11")||Hy():!(g.Yn&&!g.es("chrome")||am||g.es("android")||g.es("silk")):!1);this.b2=$o(!1,Y.enable_faster_speeds);var S;this.supportsVarispeedExtendedFeatures=(S=u==null?void 0: u.supportsVarispeedExtendedFeatures)!=null?S:!1;this.j=$o(this.playerStyle==="blazer",Y.is_html5_mobile_device||u&&u.isMobileDevice);this.CG=OU()||Jk();this.vg=this.V("mweb_allow_background_playback")?!1:this.j&&!this.W;this.MF=An();this.iJ=g.uo;var C;this.Iq=!!(u==null?0:(C=u.embedsHostFlags)==null?0:C.optOutApiDeprecation);var f;u?u.hideInfo!==void 0&&(f=!u.hideInfo):f=Y.showinfo;this.zG=g.nV(this)&&!this.Iq||$o(!Ug(this)&&!kn(this)&&!this.W,f);this.w9=u?!!u.mobileIphoneSupportsInlinePlayback:$o(!1, Y.playsinline);S=this.j&&m_&&Xh!=null&&Xh>0&&Xh<=2.3;C=u?u.useNativeControls:Y.use_native_controls;this.S=g.nV(this)&&this.j;f=this.j&&!this.S;C=g.Po(this)||!S&&$o(f,C)?"3":"1";this.disableOrganicUi=!(u==null||!u.disableOrganicUi);f=u?u.controlsType:Y.controls;this.controlsType=this.disableOrganicUi||f==="0"||f===0?"0":C;this.wO=this.j;this.color=YU("red",u?u.progressBarColor:Y.color,WbS);this.MO=this.controlsType==="3";this.CT=!this.G;this.TG=(C=!this.CT&&!kn(this)&&!this.oV&&!this.W&&!Ug(this))&& !this.MO&&this.controlsType==="1";this.Qe=g.SG(this)&&C&&this.controlsType==="0"&&!this.TG&&!(u==null?0:u.embedsEnableEmc3ds);this.e3=this.Fo=S;this.MR=(this.controlsType==="3"||this.j||$o(!1,Y.use_media_volume))&&!this.S;this.Yl=yS&&!g.zr(601)?!1:!0;this.eT=this.G||!1;this.eE=kn(this)?"":(this.loaderUrl||Y.post_message_origin||"").substring(0,128);this.widgetReferrer=nb("",u?u.widgetReferrer:Y.widget_referrer);var Q;u?u.disableCastApi&&(Q=!1):Q=Y.enablecastapi;Q=!this.Z||$o(!0,Q);S=!0;u&&u.disableMdxCast&& (S=!1);this.SQ=this.V("enable_cast_for_web_unplugged")&&g.CV(this)&&S||g.R8(this)&&S||Q&&S&&this.controlsType==="1"&&!this.j&&(kn(this)||g.SG(this)||g.fV(this));this.Z8=!!window.document.pictureInPictureEnabled||GF();Q=u?!!u.supportsAutoplayOverride:$o(!1,Y.autoplayoverride);this.bU=!(this.j&&!g.nV(this))&&!g.es("nintendo wiiu")||Q;this.s6=(u?!!u.enableMutedAutoplay:$o(!1,Y.mutedautoplay))&&!1;Q=(kn(this)||Ug(this))&&this.playerStyle==="blazer";this.l4=u?!!u.disableFullscreen:!$o(!0,Y.fs);S=g.XJ(g.Qz(this))&& g.nV(this);this.Iu=!this.l4&&(Q||g.iW())&&!S;this.LL=this.V("html5_picture_in_picture_logging_onresize");var N;this.OG=(N=g.YF(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?N:.33;this.T_=this.V("html5_picture_in_picture_blocking_onresize");this.d9=this.V("html5_picture_in_picture_blocking_ontimeupdate");this.DQ=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.cD=this.V("html5_picture_in_picture_blocking_standard_api");N=bL()&&jK(58)&&!Jk();Q=zC||typeof MediaSource=== "undefined";this.T3=this.V("uniplayer_block_pip")&&(N||Q)||this.T_||this.d9||this.cD;N=g.nV(this)&&!this.Iq;var Z;u?u.disableRelatedVideos!==void 0&&(Z=!u.disableRelatedVideos):Z=Y.rel;this.lD=N||$o(!this.W,Z);this.Q3=$o(!1,u?u.enableContentOwnerRelatedVideos:Y.co_rel);this.N=Jk()&&Xh>0&&Xh<=4.4?"_top":"_blank";this.mW=g.fV(this);this.Ee=$o(this.playerStyle==="blazer",u?u.enableCsiLogging:Y.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":case "play-ads":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.KG=Z;this.jG=nb("",u?u.authorizedUserIndex:Y.authuser);this.lN=g.nV(this)&&(this.Qm||!QSB()||this.CG);var T;u?u.disableWatchLater!==void 0&&(T=!u.disableWatchLater): T=Y.showwatchlater;this.kQ=((Z=!this.lN)||!!this.jG&&Z)&&$o(!this.oV,this.Z?T:void 0);this.sx=u?u.isMobileDevice||!!u.disableKeyboardControls:$o(!1,Y.disablekb);this.loop=$o(!1,Y.loop);this.pageId=nb("",u?u.initialDelegatedSessionId:Y.pageid);this.k5=$o(!0,Y.canplaylive);T=g.YF(this.experiments,"html5_default_audio_quality_setting_lr");var r;this.vk=(r=eaM[eaM[T]])!=null?r:0;this.Uc=$o(!1,Y.livemonitor);this.disableSharing=$o(this.W,u?u.disableSharing:Y.ss);(r=u&&this.V("fill_video_container_size_override_from_wpcc")? u.videoContainerOverride:Y.video_container_override)?(T=r.split("x"),T.length!==2?r=null:(r=Number(T[0]),T=Number(T[1]),r=isNaN(r)||isNaN(T)||r*T<=0?null:new g.OW(r,T))):r=null;this.vD=r;this.mute=u?!!u.startMuted:$o(!1,Y.mute);this.storeUserVolume=!this.mute&&$o(this.controlsType!=="0",u?u.storeUserVolume:Y.store_user_volume);r=u?u.annotationsLoadPolicy:Y.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:YU(void 0,r,N0);this.captionsLanguagePreference=u?u.captionsLanguagePreference|| "":nb("",Y.cc_lang_pref);r=YU(2,u?u.captionsLanguageLoadPolicy:Y.cc_load_policy,N0);this.controlsType==="3"&&r===2&&(r=3);this.z3=r;this.UD=u?u.hl||"en_US":nb("en_US",Y.hl);this.region=u?u.contentRegion||"US":nb("US",Y.cr);this.hostLanguage=u?u.hostLanguage||"en":nb("en",Y.host_language);this.hG=!this.Qm&&Math.random()=480;this.schedule=new Im(N,new Hhu(this.experiments),k);g.b(this,this.schedule);var K;this.enableSafetyMode=(K=u==null?void 0:u.initialEnableSafetyMode)!=null?K:$o(!1,Y.enable_safety_mode);k=this.JJ?!1:kn(this)&&this.playerStyle!== "blazer";var L;u?u.disableAutonav!=null&&(L=!u.disableAutonav):L=Y.allow_autonav;this.yY=$o(k,!this.oV&&L);this.sendVisitorIdHeader=u?!!u.sendVisitorIdHeader:$o(!1,Y.send_visitor_id_header);var R;this.playerStyle==="docs"&&(u?R=u.disableNativeContextMenu:R=Y.disable_native_context_menu);this.disableNativeContextMenu=$o(!1,R);this.OA=iA(this)&&this.V("enable_skip_intro_button");this.embedConfig=nb("",u?u.serializedEmbedConfig:Y.embed_config);this.DW=mH(Y,g.nV(this));this.X=this.DW==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(u==null||!u.embedsErrorLinks);this.Bv=$o(!1,Y.full_window);var c;this.TZ=!((c=this.webPlayerContextConfig)==null?0:c.chromeless);var x;this.livingRoomAppMode=YU("LIVING_ROOM_APP_MODE_UNSPECIFIED",Y.living_room_app_mode||(u==null?void 0:(x=u.device)==null?void 0:x.livingRoomAppMode),za7);var W;L=uW(NaN,u==null?void 0:(W=u.device)==null?void 0:W.deviceYear);isNaN(L)||(this.deviceYear=L);this.transparentBackground=u?!!u.transparentBackground:$o(!1,Y.transparent_background);this.showMiniplayerButton= u?!!u.showMiniplayerButton:$o(!1,Y.show_miniplayer_button);var E;g.nV(this)&&!(u==null?0:(E=u.embedsHostFlags)==null?0:E.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=u?!!u.externalFullscreen:$o(!1,Y.external_fullscreen);this.showMiniplayerUiWhenMinimized=u?!!u.showMiniplayerUiWhenMinimized:$o(!1,Y.use_miniplayer_ui);var J;this.dO=(J=Y.show_loop_video_toggle)!=null?J:!0;this.j3=Math.random()<1E-4;if(Y.onesie_hot_config||(u==null?0:u.onesieHotConfig))this.uD=new jjB(Y.onesie_hot_config, u==null?void 0:u.onesieHotConfig),g.b(this,this.uD);this.isTectonic=u?!!u.isTectonic:!!Y.isTectonic;this.playerCanaryState=n;this.playerCanaryStage=u==null?void 0:u.canaryStage;this.b8=new vqY;g.b(this,this.b8);this.datasyncId=(u==null?void 0:u.datasyncId)||g.z6("DATASYNC_ID");this.ET=g.z6("LOGGED_IN",!1);this.xa=(u==null?void 0:u.allowWoffleManagement)||!1;this.d7=Infinity;this.w7=NaN;this.livingRoomPoTokenId=u==null?void 0:u.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.MA=!0: this.MA=Math.random()*100=0&&Y0&&Y.j3&&(U.sort(),g.Br(new g.zP("Player client parameters changed after startup",U)));Y.userAge=uW(Y.userAge,u.user_age);Y.WC=nb(Y.WC,u.user_display_email);Y.userDisplayImage=nb(Y.userDisplayImage,u.user_display_image);g.I_(Y.userDisplayImage)||(Y.userDisplayImage= "");Y.userDisplayName=nb(Y.userDisplayName,u.user_display_name);Y.Y$=nb(Y.Y$,u.user_gender);Y.csiPageType=nb(Y.csiPageType,u.csi_page_type);Y.csiServiceName=nb(Y.csiServiceName,u.csi_service_name);Y.Ee=$o(Y.Ee,u.enablecsi);Y.pageId=nb(Y.pageId,u.pageid);if(n=u.enabled_engage_types)Y.enabledEngageTypes=new Set(n.split(","));u.living_room_session_po_token&&(Y.SW=u.living_room_session_po_token.toString())}; M0=function(Y,u){return!Y.W&&bL()&&jK(55)&&Y.controlsType==="3"&&!u}; g.sg=function(Y){Y=io(Y.uE);return Y==="www.youtube-nocookie.com"?"www.youtube.com":Y}; d9=function(Y,u,n){return Y.protocol+"://i1.ytimg.com/vi/"+u+"/"+(n||"hqdefault.jpg")}; G_=function(Y){return kn(Y)&&!g.CV(Y)}; g.Po=function(Y){return Y.V("html5_local_playsinline")?yS&&!g.zr(602)&&!("playsInline"in rC()):yS&&!Y.w9||g.es("nintendo wiiu")?!0:!1}; da=function(Y){return Y.K.c}; g.Zp=function(Y){return/^TVHTML5/.test(da(Y))}; g.AA=function(Y){return da(Y)==="TVHTML5"}; Dud=function(Y){return da(Y)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; IZ0=function(Y){return Y.K.cmodel==="CHROMECAST ULTRA/STEAK"||Y.K.cmodel==="CHROMECAST/STEAK"}; g.jG=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; iA=function(Y){return/web/i.test(da(Y))}; g.KV=function(Y){return da(Y).toUpperCase()==="WEB"}; T_=function(Y){return da(Y)==="WEB_KIDS"}; g.CV=function(Y){return da(Y)==="WEB_UNPLUGGED"}; pV=function(Y){return da(Y)==="TVHTML5_UNPLUGGED"}; g.NV=function(Y){return g.CV(Y)||da(Y)==="TV_UNPLUGGED_CAST"||pV(Y)}; g.R8=function(Y){return da(Y)==="WEB_REMIX"}; g.LV=function(Y){return da(Y)==="WEB_MUSIC_INTEGRATIONS"}; g.tA=function(Y){return da(Y)==="WEB_EMBEDDED_PLAYER"}; g.oT=function(Y){return(Y.deviceIsAudioOnly||!g.sP||zC||Y.controlsType==="3"?!1:g.FA?Y.G&&g.zr(51):!0)||(Y.deviceIsAudioOnly||!g.ib||zC||Y.controlsType==="3"?!1:g.FA?Y.G&&g.zr(48):g.zr(38))||(Y.deviceIsAudioOnly||!g.Yn||zC||Y.controlsType==="3"?!1:g.FA?Y.G&&g.zr(37):g.zr(27))||!Y.deviceIsAudioOnly&&g.Bo&&!rtM()&&g.zr(11)||!Y.deviceIsAudioOnly&&g.Z0&&g.zr("604.4")}; HK7=function(Y){if(g.SG(Y)&&m_)return!1;if(g.ib){if(!g.zr(47)||!g.zr(52)&&g.zr(51))return!1}else if(g.Z0)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; V0M=function(Y,u){return Y.enabledEngageTypes.has(u.toString())||y8u.includes(u)}; kn=function(Y){return Y.rg==="detailpage"}; g.SG=function(Y){return Y.rg==="embedded"}; co=function(Y){return Y.rg==="leanback"}; Ug=function(Y){return Y.rg==="adunit"||Y.playerStyle==="gvn"}; g.fV=function(Y){return Y.rg==="profilepage"}; g.nV=function(Y){return Y.G&&g.SG(Y)&&!Ug(Y)&&!Y.W}; vo=function(Y){if(!Y.userDisplayImage)return"";var u=Y.userDisplayImage.split("/");if(u.length===5)return Y=u[u.length-1].split("="),Y[1]="s20-c",u[u.length-1]=Y.join("="),u.join("/");if(u.length===8)return u.splice(7,0,"s20-c"),u.join("/");if(u.length===9)return u[7]+="-s20-c",u.join("/");g.Br(new g.zP("Profile image not a FIFE URL.",Y.userDisplayImage));return Y.userDisplayImage}; g.RT=function(Y){var u=g.sg(Y);OKY.includes(u)&&(u="www.youtube.com");return Y.protocol+"://"+u}; g.DA=function(Y,u){u=u===void 0?"":u;if(Y.NI){var n=new Lh,U,k=Y.NI();k.signedOut?U="":k.token?U=k.token:k.pendingResult.then(function(m){k.signedOut?n.resolve(""):n.resolve(m.token)},function(m){g.Br(new g.zP("b189348328_oauth_callback_failed",{error:m})); n.resolve(u)}); return U!==void 0?oo(U):new tk(n)}return oo(u)}; xn=function(Y,u){u=u===void 0?"":u;return Y.ET?IY(!0):ym(H3(IY(g.DA(Y,u)),function(n){return IY(!!n)}),function(){return IY(!1)})}; Fb0=function(Y,u){u==null||H3(u,function(n){Y.vC=n;var U,k;(U=Y.uD)!=null&&(k=U.K)!=null&&(k.K=new DU(n,k.j,k.X),g.b(k,k.K))})}; io=function(Y){var u=g.fo(Y);return(Y=Number(g.Co(Y)[4]||null)||null)?u+":"+Y:u}; lo=function(Y,u){u=u===void 0?!1:u;var n=bO[Y],U=J8A[n],k=qJe[Y];if(!k||!U)return null;u=new wC(u?k.height:k.width,u?k.width:k.height,k.fps);U=IC(U,u,n);return new Ik(Y,U,{video:u,NF:k.bitrate/8})}; $ud=function(Y){var u=J8A[bO[Y]],n=aZB[Y];return n&&u?new Ik(Y,u,{audio:new KI(n.audioSampleRate,n.numChannels)}):null}; hA=function(Y){this.K=Y}; w9=function(Y,u,n,U){if(n)return By();n={};var k=rC();u=g.A(u);for(var m=u.next();!m.done;m=u.next())if(m=m.value,Y.canPlayType(k,m.getInfo().mimeType)||U){var X=m.K.video.quality;if(!n[X]||n[X].getInfo().Kp())n[X]=m}Y=[];n.auto&&Y.push(n.auto);U=g.A(Wj);for(k=U.next();!k.done;k=U.next())(k=n[k.value])&&Y.push(k);return Y.length?oo(Y):By()}; YtG=function(Y){this.itag=Y.itag;this.url=Y.url;this.codecs=Y.codecs;this.width=Y.width;this.height=Y.height;this.fps=Y.fps;this.bitrate=Y.bitrate;var u;this.j=((u=Y.audioItag)==null?void 0:u.split(","))||[];this.S7=Y.S7;this.Ls=Y.Ls||"";this.dX=Y.dX;this.audioChannels=Y.audioChannels;this.K=""}; u3B=function(Y,u,n,U){u=u===void 0?!1:u;n=n===void 0?!0:n;U=U===void 0?{}:U;var k={};Y=g.A(Y);for(var m=Y.next();!m.done;m=Y.next()){m=m.value;if(u&&MediaSource&&MediaSource.isTypeSupported){var X=m.type;m.audio_channels&&(X=X+"; channels="+m.audio_channels);if(!MediaSource.isTypeSupported(X)){U[m.itag]="tpus";continue}}if(n||!m.drm_families||m.eotf!=="smpte2084"&&m.eotf!=="arib-std-b67"){X=void 0;var S={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},C=m.type.match(/codecs="([^"]*)"/); C=C?C[1]:"";m.audio_track_id&&(X=new g.lj(m.name,m.audio_track_id,!!m.is_default));var f=m.eotf;m=new YtG({itag:m.itag,url:m.url,codecs:C,width:Number(m.width),height:Number(m.height),fps:Number(m.fps),bitrate:Number(m.bitrate),audioItag:m.audio_itag,S7:f?S[f]:void 0,Ls:m.drm_families,dX:X,audioChannels:Number(m.audio_channels)});k[m.itag]=k[m.itag]||[];k[m.itag].push(m)}else U[m.itag]="enchdr"}return k}; nuu=function(Y,u,n,U,k){this.X=Y;this.j=u;this.J=n;this.cpn=U;this.W=k;this.G=0;this.K=""}; UMu=function(Y,u){Y.X.some(function(n){var U;return((U=n.dX)==null?void 0:U.getId())===u}); Y.K=u}; Wo=function(Y,u,n){Y.cpn&&(u=g.Mk(u,{cpn:Y.cpn}));n&&(u=g.Mk(u,{paired:n}));return u}; k4e=function(Y,u){Y=Y.itag.toString();u!==null&&(Y+=u.itag.toString());return Y}; mM7=function(Y){for(var u=[],n=[],U=g.A(Y.j),k=U.next();!k.done;k=U.next())k=k.value,k.bitrate<=Y.G?u.push(k):n.push(k);u.sort(function(m,X){return X.bitrate-m.bitrate}); n.sort(function(m,X){return m.bitrate-X.bitrate}); Y.j=u.concat(n)}; eG=function(Y,u,n){this.K=Y;this.j=u;this.expiration=n;this.uN=null}; XTe=function(Y,u){if(!(zC||EU()||zq()))return null;Y=u3B(u,Y.V("html5_filter_fmp4_in_hls"));if(!Y)return null;u=[];for(var n={},U=g.A(Object.keys(Y)),k=U.next();!k.done;k=U.next()){k=g.A(Y[k.value]);for(var m=k.next();!m.done;m=k.next()){var X=m.value;X.dX&&(m=X.dX.getId(),n[m]||(X=new g.B5(m,X.dX),n[m]=X,u.push(X)))}}return u.length>0?u:null}; QaB=function(Y,u,n,U,k,m,X){if(!(zC||EU()||zq()))return By();var S={},C=Pyt(n),f=u3B(n,Y.V("html5_filter_fmp4_in_hls"),Y.J.S,S);if(!f)return X({noplst:1}),By();StS(f);n={};var Q=(n.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",n),N;n=[];var Z=[],T=[],r=null,K="";U=U&&U.match(/hls_timedtext_playlist/)?new YtG({itag:"0",url:U,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,dX:new g.lj("English","en",!1)}):null;for(var L=g.A(Object.keys(f)),R=L.next();!R.done;R=L.next())if(R=R.value,!Y.V("html5_disable_drm_hfr_1080")|| R!=="383"&&R!=="373"){R=g.A(f[R]);for(var c=R.next();!c.done;c=R.next())if(c=c.value,c.width){for(var x=g.A(c.j),W=x.next();!W.done;W=x.next())if(W=W.value,f[W]){c.K=W;break}c.K||(c.K=Cyc(f,c));if(x=f[c.K])if(n.push(c),c.Ls==="fairplay"&&(N=Q),W="",c.S7==="PQ"?W="smpte2084":c.S7==="HLG"&&(W="arib-std-b67"),W&&(K=W),T.push(fwA(x,[c],U,m,c.itag,c.width,c.height,c.fps,C,void 0,void 0,N,W)),!r||c.width*c.height*c.fps>r.width*r.height*r.fps)r=c}else Z.push(c)}else S[R]="disdrmhfr";T.reduce(function(E, J){return J.getInfo().isEncrypted()&&E},!0)&&(N=Q); k=Math.max(k,0);Q=r||{};f=Q.fps===void 0?0:Q.fps;r=Q.width===void 0?0:Q.width;Q=Q.height===void 0?0:Q.height;L=Y.V("html5_native_audio_track_switching");T.push(fwA(Z,n,U,m,"93",r,Q,f,C,"auto",k,N,K,L));Object.entries(S).length&&X(S);return w9(Y.J,T,M0(Y,u),!1)}; fwA=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T){for(var r=0,K="",L=g.A(Y),R=L.next();!R.done;R=L.next())R=R.value,K||(K=R.itag),R.audioChannels&&R.audioChannels>r&&(r=R.audioChannels,K=R.itag);k=new Ik(k,"application/x-mpegURL",{audio:new KI(0,r),video:new wC(m,X,S,null,void 0,f,void 0,void 0,Z),Ls:N,uW:K});Y=new nuu(Y,u,n?[n]:[],U,!!T);Y.G=Q?Q:1369843;return new eG(k,Y,C)}; Pyt=function(Y){Y=g.A(Y);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u.url&&(u=u.url.split("expire/"),!(u.length<=1)))return+u[1].split("/")[0];return NaN}; Cyc=function(Y,u){for(var n=g.A(Object.keys(Y)),U=n.next();!U.done;U=n.next()){U=U.value;var k=Y[U][0];if(!k.width&&k.Ls===u.Ls&&!k.audioChannels)return U}return""}; StS=function(Y){for(var u=new Set,n=g.A(Object.values(Y)),U=n.next();!U.done;U=n.next())U=U.value,U.length&&(U=U[0],U.height&&U.codecs.startsWith("vp09")&&u.add(U.height));n=[];if(u.size){U=g.A(Object.keys(Y));for(var k=U.next();!k.done;k=U.next())if(k=k.value,Y[k].length){var m=Y[k][0];m.height&&u.has(m.height)&&!m.codecs.startsWith("vp09")&&n.push(k)}}u=g.A(n);for(n=u.next();!n.done;n=u.next())delete Y[n.value]}; bo=function(Y,u){this.K=Y;this.j=u}; Nf7=function(Y,u,n,U){var k=[];n=g.A(n);for(var m=n.next();!m.done;m=n.next()){var X=m.value;if(X.url){m=new g.Od(X.url,!0);if(X.s){var S=m,C=X.sp,f=y0d(decodeURIComponent(X.s));S[P[10]](C,encodeURIComponent(f))}S=g.A(Object.keys(U));for(C=S.next();!C.done;C=S.next())C=C.value,m.set(C,U[C]);X=u$(X.type,X.quality,X.itag,X.width,X.height);k.push(new bo(X,m))}}return w9(Y.J,k,M0(Y,u),!1)}; IT=function(Y,u){this.K=Y;this.j=u}; iUY=function(Y,u,n){var U=[];n=g.A(n);for(var k=n.next();!k.done;k=n.next())if((k=k.value)&&k.url){var m=u$(k.type,"medium","0");U.push(new IT(m,k.url))}return w9(Y.J,U,M0(Y,u),!1)}; ZUG=function(Y,u){var n=[],U=u$(u.type,"auto",u.itag);n.push(new IT(U,u.url));return w9(Y.J,n,!1,!0)}; raM=function(Y){return Y&&Tft[Y]?Tft[Y]:null}; Mz7=function(Y){switch(Y){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return Y;default:return"sabr.config"}}; sa7=function(Y){if(Y=Y.commonConfig)this.url=Y.url,this.urlQueryOverride=Y.urlQueryOverride,Y.ustreamerConfig&&(this.Ij=x4(Y.ustreamerConfig)||void 0)}; dMY=function(Y,u){var n;if(u=u==null?void 0:(n=u.watchEndpointSupportedOnesieConfig)==null?void 0:n.html5PlaybackOnesieConfig)Y.Y9=new sa7(u)}; g.z_=function(Y){Y=Y===void 0?{}:Y;this.languageCode=Y.languageCode||"";this.languageName=Y.languageName||null;this.kind=Y.kind||"";this.name=Y.name===void 0?null:Y.name;this.displayName=Y.displayName||null;this.id=Y.id||null;this.K=Y.is_servable||!1;this.isTranslateable=Y.is_translateable||!1;this.url=Y.url||null;this.vssId=Y.vss_id||"";this.isDefault=Y.is_default||!1;this.translationLanguage=Y.translationLanguage||null;this.xtags=Y.xtags||"";this.captionId=Y.captionId||""}; g.Eg=function(Y){var u={languageCode:Y.languageCode,languageName:Y.languageName,displayName:g.g9(Y),kind:Y.kind,name:Y.name,id:Y.id,is_servable:Y.K,is_default:Y.isDefault,is_translateable:Y.isTranslateable,vss_id:Y.vssId};Y.xtags&&(u.xtags=Y.xtags);Y.captionId&&(u.captionId=Y.captionId);Y.translationLanguage&&(u.translationLanguage=Y.translationLanguage);return u}; g.Ho=function(Y){return Y.translationLanguage?Y.translationLanguage.languageCode:Y.languageCode}; g.G4W=function(Y){var u=Y.vssId;Y.translationLanguage&&u&&(u="t"+u+"."+g.Ho(Y));return u}; g.g9=function(Y){var u=[];if(Y.displayName)u.push(Y.displayName);else{var n=Y.languageName||"";u.push(n);Y.kind==="asr"&&n.indexOf("(")===-1&&u.push(" (Subt\u00edtulos autom\u00e1ticos)");Y.name&&u.push(" - "+Y.name)}Y.translationLanguage&&u.push(" >> "+Y.translationLanguage.languageName);return u.join("")}; pTd=function(Y,u,n,U){Y||(Y=u&&Aae.hasOwnProperty(u)&&jau.hasOwnProperty(u)?jau[u]+"_"+Aae[u]:void 0);u=Y;if(!u)return null;Y=u.match(KuA);if(!Y||Y.length!==5)return null;if(Y=u.match(KuA)){var k=Number(Y[3]),m=[7,8,10,5,6];Y=!(Number(Y[1])===1&&k===8)&&m.indexOf(k)>=0}else Y=!1;return n||U||Y?u:null}; yz=function(Y,u){for(var n={},U=g.A(Object.keys(Luu)),k=U.next();!k.done;k=U.next()){k=k.value;var m=u?u+k:k;m=Y[m+"_webp"]||Y[m];g.I_(m)&&(n[Luu[k]]=m)}return n}; Vz=function(Y){var u={};if(!Y||!Y.thumbnails)return u;Y=Y.thumbnails.filter(function(S){return!!S.url}); Y.sort(function(S,C){return S.width-C.width||S.height-C.height}); for(var n=g.A(Object.keys(tzY)),U=n.next();!U.done;U=n.next()){var k=Number(U.value);U=tzY[k];for(var m=g.A(Y),X=m.next();!X.done;X=m.next())if(X=X.value,X.width>=k){k=Bfe(X.url);g.I_(k)&&(u[U]=k);break}}(Y=Y.pop())&&Y.width>=1280&&(Y=Bfe(Y.url),g.I_(Y)&&(u["maxresdefault.jpg"]=Y));return u}; Bfe=function(Y){return Y.startsWith("//")?"https:"+Y:Y}; Og=function(Y){return Y&&Y.baseUrl||""}; Fh=function(Y){Y=g.Yo(Y);for(var u=g.A(Object.keys(Y)),n=u.next();!n.done;n=u.next()){n=n.value;var U=Y[n];Y[n]=Array.isArray(U)?U[0]:U}return Y}; oue=function(Y,u){Y.botguardData=u.playerAttestationRenderer.botguardData;u=u.playerAttestationRenderer.challenge;u!=null&&(Y.Y5=u)}; RmA=function(Y,u){u=g.A(u);for(var n=u.next();!n.done;n=u.next()){n=n.value;var U=n.interstitials.map(function(X){var S=g.z(X,caY);if(S)return{is_yto_interstitial:!0,raw_player_response:S};if(X=g.z(X,vuS))return Object.assign({is_yto_interstitial:!0},aJ(X))}); U=g.A(U);for(var k=U.next();!k.done;k=U.next())switch(k=k.value,n.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":Y.interstitials=Y.interstitials.concat({time:0,playerVars:k,ZT:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":Y.interstitials=Y.interstitials.concat({time:0x7ffffffffffff,playerVars:k,ZT:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var m=Number(n.podConfig.timeToInsertAtMillis);Y.interstitials=Y.interstitials.concat({time:m,playerVars:k, ZT:m===0?5:7})}}}; DMG=function(Y,u){if(u=u.find(function(n){return!(!n||!n.tooltipRenderer)}))Y.tooltipRenderer=u.tooltipRenderer}; xMM=function(Y,u){u.subscribeCommand&&(Y.subscribeCommand=u.subscribeCommand);u.unsubscribeCommand&&(Y.unsubscribeCommand=u.unsubscribeCommand);u.addToWatchLaterCommand&&(Y.addToWatchLaterCommand=u.addToWatchLaterCommand);u.removeFromWatchLaterCommand&&(Y.removeFromWatchLaterCommand=u.removeFromWatchLaterCommand);u.getSharePanelCommand&&(Y.getSharePanelCommand=u.getSharePanelCommand)}; lwc=function(Y,u){u!=null?(Y.Hg=u,Y.sD=!0):(Y.Hg="",Y.sD=!1)}; JA=function(Y,u){this.type=Y||"";this.id=u||""}; q0=function(Y){return new JA(Y.substring(0,2),Y.substring(2))}; aT=function(Y,u){this.GZ=Y;this.author="";this.Zt=null;this.playlistLength=0;this.K=this.sessionData=null;this.Z={};this.title="";if(u){this.author=u.author||u.playlist_author||"";this.title=u.playlist_title||"";if(Y=u.session_data)this.sessionData=Jw(Y,"&");var n;this.K=((n=u.thumbnail_ids)==null?void 0:n.split(",")[0])||null;this.Z=yz(u,"playlist_");this.videoId=u.video_id||void 0;if(n=u.list)switch(u.listType){case "user_uploads":this.playlistId=(new JA("UU","PLAYER_"+n)).toString();break;default:if(Y= u.playlist_length)this.playlistLength=Number(Y)||0;this.playlistId=q0(n).toString();if(u=u.video)this.videoId=(u[0]||null).video_id||void 0}else u.playlist&&(this.playlistLength=u.playlist.toString().split(",").length)}}; $n=function(Y,u){this.GZ=Y;this.BS=this.author="";this.Zt=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.QZ=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(u){this.ariaLabel=u.aria_label||void 0;this.author=u.author||"";this.BS=u.BS||"";if(Y=u.endscreen_autoplay_session_data)this.Zt=Jw(Y,"&");this.h3=u.h3;this.isLivePlayback=u.live_playback==="1";this.isUpcoming=!!u.isUpcoming;if(Y=u.length_seconds)this.lengthSeconds=typeof Y==="string"?Number(Y):Y;this.lengthText= u.lengthText||"";this.QZ=u.QZ||"";this.publishedTimeText=u.publishedTimeText||void 0;if(Y=u.session_data)this.sessionData=Jw(Y,"&");this.shortViewCount=u.short_view_count_text||void 0;this.Z=yz(u);this.title=u.title||"";this.videoId=u.docid||u.video_id||u.videoId||u.id||void 0;this.watchUrl=u.watchUrl||void 0}}; hmW=function(Y){var u,n,U=(u=Y.getWatchNextResponse())==null?void 0:(n=u.contents)==null?void 0:n.twoColumnWatchNextResults,k,m,X,S,C;Y=(k=Y.getWatchNextResponse())==null?void 0:(m=k.playerOverlays)==null?void 0:(X=m.playerOverlayRenderer)==null?void 0:(S=X.endScreen)==null?void 0:(C=S.watchNextEndScreenRenderer)==null?void 0:C.results;if(!Y){var f,Q;Y=U==null?void 0:(f=U.endScreen)==null?void 0:(Q=f.endScreen)==null?void 0:Q.results}return Y}; g.uR=function(Y){var u,n,U;Y=g.z((u=Y.getWatchNextResponse())==null?void 0:(n=u.playerOverlays)==null?void 0:(U=n.playerOverlayRenderer)==null?void 0:U.decoratedPlayerBarRenderer,YR);return g.z(Y==null?void 0:Y.playerBar,wTB)}; Wuc=function(Y){this.K=Y.playback_progress_0s_url;this.X=Y.playback_progress_2s_url;this.j=Y.playback_progress_10s_url}; emW=function(){if(nk===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(u){}a:{try{var Y=!!self.localStorage}catch(u){Y=!1}if(Y&&(Y=g.xv(g.gT()+"::yt-player"))){nk=new lT(Y);break a}nk=void 0}}return nk}; g.UZ=function(){var Y=emW();if(!Y)return{};try{var u=Y.get("yt-player-lv");return JSON.parse(u||"{}")}catch(n){return{}}}; g.bUM=function(Y){var u=emW();u&&(Y=JSON.stringify(Y),u.set("yt-player-lv",Y))}; g.kR=function(Y){return g.UZ()[Y]||0}; g.mS=function(Y,u){var n=g.UZ();u!==n[Y]&&(u!==0?n[Y]=u:delete n[Y],g.bUM(n))}; g.X_=function(Y){return g.l(function(u){return u.return(g.e2(IwB(),Y))})}; SX=function(Y,u,n,U,k,m,X,S){var C,f,Q,N,Z,T;return g.l(function(r){switch(r.j){case 1:return C=g.kR(Y),C===4?r.return(4):g.D(r,g.VK(),2);case 2:f=r.K;if(!f)throw g.rD("wiac");if(!S||X===void 0){r.qF(3);break}return g.D(r,zmG(S,X),4);case 4:X=r.K;case 3:return Q=n.lastModified||"0",g.D(r,g.X_(f),5);case 5:return N=r.K,g.pY(r,6),P2++,g.D(r,g.tE(N,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",A_:!0},function(K){if(m!==void 0&&X!==void 0){var L=""+Y+"|"+u.id+"|"+Q+"|"+String(m).padStart(10, "0");L=g.BF(K.objectStore("media"),X,L)}else L=g.s$.resolve(void 0);var R=gut(Y,u.OX()),c=gut(Y,!u.OX()),x={fmts:EuY(U),format:n||{}};R=g.BF(K.objectStore("index"),x,R);var W=U.downloadedEndTime===-1;x=W?K.objectStore("index").get(c):g.s$.resolve(void 0);var E={fmts:"music",format:{}};K=W&&k&&!u.OX()?g.BF(K.objectStore("index"),E,c):g.s$.resolve(void 0);return g.s$.all([K,x,L,R]).then(function(J){J=g.A(J);J.next();J=J.next().value;P2--;var O=g.kR(Y);if(O!==4&&W&&k||J!==void 0&&g.HU7(J.fmts))O=1,g.mS(Y, O);return O})}),8); case 8:return r.return(r.K);case 6:Z=g.vc(r);P2--;T=g.kR(Y);if(T===4)return r.return(T);g.mS(Y,4);throw Z;}})}; g.yaA=function(Y){var u,n;return g.l(function(U){if(U.j==1)return g.D(U,g.VK(),2);if(U.j!=3){u=U.K;if(!u)throw g.rD("ri");return g.D(U,g.X_(u),3)}n=U.K;return U.return(g.tE(n,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(k){var m=IDBKeyRange.bound(Y+"|",Y+"~");return k.objectStore("index").getAll(m).then(function(X){return X.map(function(S){return S?S.format:{}})})}))})}; OUd=function(Y,u,n,U,k){var m,X,S;return g.l(function(C){if(C.j==1)return g.D(C,g.VK(),2);if(C.j!=3){m=C.K;if(!m)throw g.rD("rc");return g.D(C,g.X_(m),3)}X=C.K;S=g.tE(X,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(f){var Q=""+Y+"|"+u+"|"+n+"|"+String(U).padStart(10,"0");return f.objectStore("media").get(Q)}); return k?C.return(S.then(function(f){if(f===void 0)throw Error("No data from indexDb");return VzW(k,f)}).catch(function(f){throw new g.zP("Error while reading chunk: "+f.name+", "+f.message); })):C.return(S)})}; g.HU7=function(Y){return Y?Y==="music"?!0:Y.includes("dlt=-1")||!Y.includes("dlt="):!1}; gut=function(Y,u){return""+Y+"|"+(u?"v":"a")}; EuY=function(Y){var u={};return qd((u.dlt=Y.downloadedEndTime.toString(),u.mket=Y.maxKnownEndTime.toString(),u.avbr=Y.averageByteRate.toString(),u))}; Ja7=function(Y){var u={},n={};Y=g.A(Y);for(var U=Y.next();!U.done;U=Y.next()){var k=U.value,m=k.split("|");k.match(g.FuS)?(U=Number(m.pop()),isNaN(U)?n[k]="?":(m=m.join("|"),(k=u[m])?(m=k[k.length-1],U===m.end+1?m.end=U:k.push({start:U,end:U})):u[m]=[{start:U,end:U}])):n[k]="?"}Y=g.A(Object.keys(u));for(U=Y.next();!U.done;U=Y.next())U=U.value,n[U]=u[U].map(function(X){return X.start+"-"+X.end}).join(","); return n}; Ck=function(Y){g.ud.call(this);this.K=null;this.X=new wE;this.K=null;this.W=new Set;this.crossOrigin=Y||""}; qt0=function(Y,u,n){for(n=fk(Y,n);n>=0;){var U=Y.levels[n];if(U.isLoaded(Qf(U,u))&&(U=g.NW(U,u)))return U;n--}return g.NW(Y.levels[0],u)}; $M0=function(Y,u,n){n=fk(Y,n);for(var U,k;n>=0;n--)if(U=Y.levels[n],k=Qf(U,u),!U.isLoaded(k)){U=Y;var m=n,X=m+"-"+k;U.W.has(X)||(U.W.add(X),U.X.enqueue(m,{F6:m,aS:k}))}awW(Y)}; awW=function(Y){if(!Y.K&&!Y.X.isEmpty()){var u=Y.X.remove();Y.K=Y7m(Y,u)}}; Y7m=function(Y,u){var n=document.createElement("img");Y.crossOrigin&&(n.crossOrigin=Y.crossOrigin);n.src=Y.levels[u.F6].Ff(u.aS);n.onload=function(){var U=u.F6,k=u.aS;Y.K!==null&&(Y.K.onload=null,Y.K=null);U=Y.levels[U];U.loaded.add(k);awW(Y);var m=U.columns*U.rows;k*=m;U=Math.min(k+m-1,U.Bx()-1);k=[k,U];Y.publish("l",k[0],k[1])}; return n}; g.iR=function(Y,u,n,U){this.level=Y;this.G=u;this.loaded=new Set;this.level=Y;this.G=u;Y=n.split("#");this.width=Math.floor(Number(Y[0]));this.height=Math.floor(Number(Y[1]));this.frameCount=Math.floor(Number(Y[2]));this.columns=Math.floor(Number(Y[3]));this.rows=Math.floor(Number(Y[4]));this.K=Math.floor(Number(Y[5]));this.X=Y[6];this.signature=Y[7];this.videoLength=U}; Qf=function(Y,u){return Math.floor(u/(Y.columns*Y.rows))}; g.NW=function(Y,u){u>=Y.b1()&&Y.gy();var n=Qf(Y,u),U=Y.columns*Y.rows,k=u%U;u=k%Y.columns;k=Math.floor(k/Y.columns);var m=Y.gy()+1-U*n;if(m1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; urA=function(Y,u,n){return(Y=Y.levels[u])?Y.tL(n):-1}; fk=function(Y,u){var n=Y.G.get(u);if(n)return n;n=Y.levels.length;for(var U=0;U=u)return Y.G.set(u,U),U;Y.G.set(u,n-1);return n-1}; Te=function(Y,u,n,U){n=n.split("#");n=[n[1],n[2],0,n[3],n[4],-1,n[0],""].join("#");g.iR.call(this,Y,u,n,0);this.j=null;this.J=U?2:0}; rq=function(Y,u,n,U){Z9.call(this,Y,0,void 0,u,!(U===void 0||!U));for(Y=0;Y=0?CY.countDownSecsForFullscreen*1E3:-1);Y.V("web_autonav_color_transition")&&CY.watchToWatchTransitionRenderer&&(Y.watchToWatchTransitionRenderer=g.z(CY.watchToWatchTransitionRenderer, rIu))}var j4=hmW(Y);if(j4){var CP,Pf,MP,so=j4==null?void 0:(CP=j4[0])==null?void 0:(Pf=CP.endScreenVideoRenderer)==null?void 0:(MP=Pf.navigationEndpoint)==null?void 0:MP.clickTrackingParams,xV=g.Lk(Y);so&&xV&&(xV.sessionData={itct:so})}Y.MF.currentVideoThumbnail&&(Y.Z=Vz(Y.MF.currentVideoThumbnail));var en,b7,IA,XZ,lZ,d3=(en=Y.MF)==null?void 0:(b7=en.contents)==null?void 0:(IA=b7.twoColumnWatchNextResults)==null?void 0:(XZ=IA.results)==null?void 0:(lZ=XZ.results)==null?void 0:lZ.contents;if(d3&&d3[1]){var hJ, PB,zB,t5,Kr=(hJ=d3[1].videoSecondaryInfoRenderer)==null?void 0:(PB=hJ.owner)==null?void 0:(zB=PB.videoOwnerRenderer)==null?void 0:(t5=zB.thumbnail)==null?void 0:t5.thumbnails;Kr&&Kr.length&&(Y.profilePicture=Kr[Kr.length-1].url)}var gs=kU(u),Sd,d2=(Sd=Y.getWatchNextResponse())==null?void 0:Sd.onResponseReceivedEndpoints;if(d2)for(var CH=g.A(d2),wX=CH.next();!wX.done;wX=CH.next()){var G5=wX.value;g.z(G5,tx)&&(Y.tj=g.z(G5,tx));var mK=g.z(G5,M10),Hj=void 0;if((Hj=mK)==null?0:Hj.entityKeys)Y.G0=mK.entityKeys|| [],mK.visibleOnLoadKeys&&(Y.visibleOnLoadKeys=mK.visibleOnLoadKeys)}if(Y.V("web_key_moments_markers")){var Tz=g.B2.getState().entities,Q1=g.OV("visibility_override","markersVisibilityOverrideEntity");var E_=JC(Tz,"markersVisibilityOverrideEntity",Q1);Y.dg=(E_==null?void 0:E_.videoId)===(Y.videoId||gs)&&(E_==null?0:E_.visibilityOverrideMarkersKey)?E_.visibilityOverrideMarkersKey:Y.visibleOnLoadKeys;Y.visibleOnLoadKeys=[].concat(g.Zu(Y.dg))}}}; Kk=function(Y){var u;return((u=Y.autoplaySwitchButtonRenderer)==null?void 0:u.enabled)!==void 0}; o2=function(Y){return!!(Y.X&&Y.X.videoInfos&&Y.X.videoInfos.length)}; g.lR=function(Y){var u=Y.S;Y.V("html5_gapless_unlimit_format_selection")&&c2(Y)&&(u=!1);var n=!!Y.K&&Y.K.W$,U=Y.GZ,k=Y.JY(),m=v2(Y),X=Y.zZ,S=u,C=Y.isOtf();u=Y.FC();var f=Y.Uc,Q=Y.getUserAudio51Preference(),N=R2(Y),Z=D9(Y),T=new waW(U);if(U.gX()||U.V("html5_logging_format_selection"))T.j=!0;T.CG=m;T.zZ=X&&U.Z;T.rg=Q;g.es("windows nt 5.1")&&!g.ib&&(T.Q_=!0);if(m=k)m=g.oT(U)?HK7(U):!1;m&&(T.KG=!0);S&&(T.Q_=!0,T.MR=!0);C&&!U.V("html5_otf_prefer_vp9")&&(T.Q_=!0);U.playerStyle==="picasaweb"&&(C&&(T.Q_= !1),T.oV=!1);f&&(T.Q_=!0);yu(U.J,Vu.CHANNELS)&&(U.V("html5_enable_ac3")&&(T.G=!0),U.V("html5_enable_eac3")&&(T.J=!0),U.V("html5_enable_ac3_gapless")&&(T.MF=!0));U.V("html5_block_8k_hfr")&&(T.dg=!0);T.W=g.YF(U.experiments,"html5_max_selectable_quality_ordinal");T.S=g.YF(U.experiments,"html5_min_selectable_quality_ordinal");$4&&(T.Ub=480);if(n||k)T.oV=!1;T.Pz=!1;T.disableAv1=N;n=k4(U,T.K,void 0,T.disableAv1);n>0&&n<2160&&(Tu()||U.V("html5_format_hybridization"))&&(T.K.supportsChangeType=+Tu(),T.nU= n);n>=2160&&(T.DW=!0);YRu()&&!U.V("disable_av1_setting")&&(T.K.serveVp9OverAv1IfHigherRes=0,T.lD=!1);T.FC=u;T.JJ=g.gD||qI()&&!u?!1:!0;T.Z=U.V("html5_format_hybridization");T.nT=U.V("html5_disable_encrypted_vp9_live_non_2k_4k");T.Gw=Z;xR(Y)&&(T.uD=Y.V("html5_prefer_language_over_codec"));zq()&&Y.playerResponse&&Y.playerResponse.playerConfig&&Y.playerResponse.playerConfig.webPlayerConfig&&Y.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(T.G=!0,T.J=!0);Y.S&&Y.isAd()&&(Y.Fo&& (T.N=Y.Fo),Y.OG&&(T.X=Y.OG));T.Fk=Y.isLivePlayback&&Y.jh()&&Y.GZ.V("html5_drm_live_audio_51");T.Ru=Y.g1;T.lN=!xR(Y);return Y.sx=T}; R2=function(Y){return Y.GZ.V("html5_disable_av1")||Y.V("html5_gapless_shorts_disable_av1")&&c2(Y)?!0:!1}; s3Y=function(Y){Kg("drm_pb_s",void 0,Y.KG);Y.CG||Y.K&&Is(Y.K);var u={};Y.K&&(u=Z6A(Y.ao,g.lR(Y),Y.GZ.J,Y.K,function(n){return Y.publish("ctmp","fmtflt",n)},!0,new Set)); u=new ra(u,Y.GZ,Y.I3,Y.useCobaltWidevine?zq()?hx(Y):!1:!1,function(n,U){Y.fG(n,U)}); g.b(Y,u);Y.pY=!1;Y.loading=!0;Iyu(u,function(n){Kg("drm_pb_f",void 0,Y.KG);for(var U=g.A(n),k=U.next();!k.done;k=U.next())switch(k=k.value,k.flavor){case "fairplay":k.CG=Y.CG;k.f_=Y.f_;k.K_=Y.K_;break;case "widevine":k.ma=Y.ma}Y.vD=n;if(Y.vD.length>0&&(Y.J=Y.vD[0],Y.GZ.gX())){n={};U=g.A(Object.entries(Y.J.K));for(k=U.next();!k.done;k=U.next()){var m=g.A(k.value);k=m.next().value;m=m.next().value;var X="unk";(k=k.match(/(.*)codecs="(.*)"/))&&(X=k[2]);n[X]=m}Y.fG("drmProbe",n)}Y.VD()})}; dNd=function(Y,u){if(u.length===0||wq(Y))return null;Y.GZ.J.X&&(ub=!0);var n=Y.Ls;var U=Y.lengthSeconds,k=Y.isLivePlayback,m=Y.H4,X=Y.GZ,S=AoY(u);if(k||m){X=X.experiments;U=new bj("",X,!0);U.j=!m;U.W$=!0;U.isManifestless=!0;U.isLive=!m;U.H4=m;u=g.A(u);for(k=u.next();!k.done;k=u.next()){var C=k.value;k=gz(C,n);S=YE(C);S=H0(S.f3||C.url||"",S.tv,S.s);var f=S.get("id");f&&f.includes("%7E")&&(U.N=!0);var Q=void 0;f=(Q=X)==null?void 0:Q.vz("html5_max_known_end_time_rebase");Q=Number(C.targetDurationSec|| 5);C=Number(C.maxDvrDurationSec||14400);var N=Number(S.get("mindsq")||S.get("min_sq")||"0"),Z=Number(S.get("maxdsq")||S.get("max_sq")||"0")||Infinity;U.qA=U.qA||N;U.fF=U.fF||Z;var T=!Y6(k.mimeType);S&&wz(U,new GH(S,k,{k8:Q,UK:T,tI:C,qA:N,fF:Z,rd:300,H4:m,FU:f}))}n=U}else if(S==="FORMAT_STREAM_TYPE_OTF"){U=U===void 0?0:U;m=new bj("",X.experiments,!1);m.duration=U||0;X=g.A(u);for(U=X.next();!U.done;U=X.next())U=U.value,u=gz(U,n,m.duration),k=YE(U),(k=H0(k.f3||U.url||"",k.tv,k.s))&&(u.streamType==="FORMAT_STREAM_TYPE_OTF"? wz(m,new AU(k,u,"sq/0")):wz(m,new xh(k,u,uj(U.initRange),uj(U.indexRange))));m.isOtf=!0;n=m}else{U=U===void 0?0:U;m=new bj("",X.experiments,!1);m.duration=U||0;X=g.A(u);for(U=X.next();!U.done;U=X.next())S=U.value,U=gz(S,n,m.duration),u=uj(S.initRange),k=uj(S.indexRange),f=YE(S),(S=H0(f.f3||S.url||"",f.tv,f.s))&&wz(m,new xh(S,U,u,k));n=m}m=Y.isLivePlayback&&!Y.H4&&!Y.jG&&!Y.isPremiere;Y.V("html5_live_head_playable")&&(!W2(Y)&&m&&Y.fG("missingLiveHeadPlayable",{}),Y.GZ.KG==="yt"&&(n.JJ=!0));return n}; wq=function(Y){return zq()?!hx(Y):EU()?!(!Y.CG||!Y.V("html5_enable_safari_fairplay")&&KD()):!1}; hx=function(Y){return Y.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.jX=function(Y,u){u=g.A(u);for(var n=u.next();!n.done;n=u.next())if(n=n.value,n.cueRangeSetIdentifier){var U=void 0;Y.ZZ.set(n.cueRangeSetIdentifier,(U=n.playerCueRanges)!=null?U:[])}}; eX=function(Y){return!(!Y.K||!Y.K.isManifestless)}; bR=function(Y){return Y.Qm?Y.isLowLatencyLiveStream&&Y.K!=null&&FL(Y.K)>=5:Y.isLowLatencyLiveStream&&Y.K!=void 0&&FL(Y.K)>=5}; GfM=function(Y){return zq()&&hx(Y)?!1:wq(Y)&&(g.NV(Y.GZ)?!Y.isLivePlayback:Y.hlsvp)||!KD()||Y.WG?!0:!1}; j3G=function(Y){Y.loading=!0;Y.WC=!1;if(AIS(Y))g.yaA(Y.videoId).then(function(U){var k;if((k=Y.playerResponse)!=null&&k.streamingData){k=[];U=g.A(U);for(var m=U.next();!m.done;m=U.next())m=Object.assign({},m.value),m.signatureCipher="",k.push(m);k.length<2&&Y.fG("offmlf",{len:k.length});k=dNd(Y,k);v2(Y)&&xZA(k,!1);I2(Y,k);Y.fG("dlr",{})}else Y.fG("offsdm",{cotn:Y.zA?Y.zA.cotn:"0",cpn:Y.clientPlaybackNonce})}).then(function(){Y.VD()}); else{bA(Y.eE)||g.Br(new g.zP("DASH MPD Origin invalid: ",Y.eE));var u=Y.eE,n=g.YF(Y.GZ.experiments,"dash_manifest_version")||4;u=g.Mk(u,{mpd_version:n});Y.isLowLatencyLiveStream&&Y.latencyClass!=="NORMAL"||(u=g.Mk(u,{pacing:0}));coc(u,Y.GZ.experiments,Y.isLivePlayback).then(function(U){Y.gg()||(I2(Y,U,!0),Kg("mrc",void 0,Y.KG),Y.VD())},function(U){Y.gg()||(Y.loading=!1,Y.publish("dataloaderror",new g.iO("manifest.net.retryexhausted",{backend:"manifest", rc:U.status},1)))}); Kg("mrs",void 0,Y.KG)}}; KoM=function(Y){var u;return!((u=Y.GZ.getWebPlayerContextConfig())==null||!u.enableProximaLowLatency)}; ze=function(Y){if(!Y.isProximaLatencyEligible)return 0;var u=dK();return KoM(Y)?2:u===1?1:Y.V("html5_enable_proxima")?2:0}; I2=function(Y,u,n){n=n===void 0?!1:n;Y.EO=void 0;Y.K=u;g.b(Y,u);u.qA=Y.qA;u.fF=Y.fF;u.DW=Y.DW;u.Gw=Y.Gw;u.CT=Y.CT;Y.Vg&&(u.Z=new He(Y.Vg));(Y.JY()||g.gq(Y))&&Y.N.push("webgl");Y.K.isLive||(Y.isLivePlayback=!1);var U=u.sourceUrl.split("/");if(Y.Qm?U.indexOf("manifest_duration")!==-1:U.indexOf("manifest_duration")!=-1)Y.jj=Number(U[U.indexOf("manifest_duration")+1]);if(u.j||u.isManifestless)u.subscribe("clienttemp",Y.fG,Y),n?u.subscribe("refresh",Y.rJ,Y):u.subscribe("cuepointsadded",Y.cn,Y);Is(u)?Y.pY= !0:sm=void 0;Y.jG&&(u.G=Y.jG,u.isLive=!0,Y.isLivePlayback=!0);u.isPremiere=Y.isPremiere;u.isLiveHeadPlayable=Y.isLiveHeadPlayable}; pIe=function(Y,u){var n=u||GfM(Y)||Y.isExternallyHostedPodcast;if(!Y.K||n)return Y.fG("skipDash",{dm:!!Y.K,air:u,dd:Y.WG,mss:KD(),"3pp":Y.isExternallyHostedPodcast}),By();v2(Y)&&xZA(Y.K,Y.isLivePlayback);return oo().then(function(){return rYG(Y.ao,g.lR(Y),Y.GZ.J,Y.K,Y.J,function(U){return Y.publish("ctmp","fmtflt",U)},Y.TA,xR(Y)&&Y.V("html5_enable_server_format_filter")).then(function(U){Y.YA(U); Y.ao.K=null;/^av/.test(Y.clientPlaybackNonce)&&Y.sx&&Y.fG("av1",Y.sx.K)})})}; t1M=function(Y,u){if(u&&Y.hlsvp)return By();if(Y.hlsFormats){u=EZ(Y.hlsFormats);var n;if(((n=Y.sx)==null?0:n.j)&&u){n=[];for(var U=g.A(u),k=U.next();!k.done;k=U.next())n.push(k.value.itag);Y.fG("hlsfmt",{itags:n.join(".")})}Y.w7=XTe(Y.GZ,u);Y.w7&&LoW(Y,Y.w7);n=Y.clientPlaybackNonce;var m,X,S,C;return QaB(Y.GZ,Y.isAd(),u,(C=(m=Y.playerResponse)==null?void 0:(X=m.captions)==null?void 0:(S=X.playerCaptionsRenderer)==null?void 0:S.baseUrl)!=null?C:null,Y.Ub,n,function(f){return Y.publish("ctmp","hlsflt", f)}).then(function(f){for(var Q=0,N=[],Z=g.A(f),T=Z.next();!T.done;T=Z.next()){T=T.value; var r=void 0;N.push((r=T.getInfo())==null?void 0:r.itag);var K=r=void 0;((r=T.getInfo())==null?void 0:(K=r.audio)==null?void 0:K.numChannels)>Q&&(Q=T.getInfo().audio.numChannels)}Q>2&&Y.fG("hlschl",{mn:Q});var L;((L=Y.sx)==null?0:L.j)&&Y.fG("hlsfmtaf",{itags:N.join(".")});var R;if(Y.V("html5_enable_vp9_fairplay")&&((R=Y.J)==null?0:QF(R)))for(Y.fG("drm",{sbdlfbk:1}),Q=g.A(Y.vD),N=Q.next();!N.done;N=Q.next())if(N=N.value,fD(N)){Y.J=N;break}H2(Y,f)})}return By()}; BpY=function(Y){if(Y.isExternallyHostedPodcast&&Y.Jr){var u=EZ(Y.Jr);if(!u[0])return By();Y.LTZ=u[0];return ZUG(Y.GZ,u[0]).then(function(n){H2(Y,n)})}return Y.Pv&&Y.Pb?iUY(Y.GZ,Y.isAd(),Y.Pv).then(function(n){H2(Y,n)}):By()}; cIA=function(Y){if(Y.isExternallyHostedPodcast)return By();var u=EZ(Y.Jr,Y.kP);if(Y.hlsvp){var n=nBt(Y.hlsvp,Y.clientPlaybackNonce,Y.Ub);u.push(n)}return Nf7(Y.GZ,Y.isAd(),u,oBG(Y)).then(function(U){H2(Y,U)})}; H2=function(Y,u){Y.MR=u;Y.YA(new hd(g.dA(Y.MR,function(n){return n.getInfo()})))}; oBG=function(Y){var u={cpn:Y.clientPlaybackNonce,c:Y.GZ.K.c,cver:Y.GZ.K.cver};Y.qU&&(u.ptk=Y.qU,u.oid=Y.sQ,u.ptchn=Y.Tu,u.pltype=Y.tN,Y.Ir&&(u.m=Y.Ir));return u}; g.yf=function(Y){return wq(Y)&&Y.CG?(Y={},Y.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",Y):Y.j&&Y.j.Ls||null}; vBe=function(Y){var u=Vf(Y);return u&&u.text?g.Cw(u.text):Y.paidContentOverlayText}; RsB=function(Y){var u=Vf(Y);return u&&u.durationMs?l5(u.durationMs):Y.paidContentOverlayDurationMs}; Vf=function(Y){var u,n,U;return Y.playerResponse&&Y.playerResponse.paidContentOverlay&&Y.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.z((u=Y.MF)==null?void 0:(n=u.playerOverlays)==null?void 0:(U=n.playerOverlayRenderer)==null?void 0:U.playerDisclosure,DNu)||null}; OZ=function(Y){var u="";if(Y.Pp)return Y.Pp;Y.isLivePlayback&&(u=Y.allowLiveDvr?"dvr":Y.isPremiere?"lp":Y.jG?"window":"live");Y.H4&&(u="post");return u}; g.F_=function(Y,u){return typeof Y.keywords[u]!=="string"?null:Y.keywords[u]}; xNY=function(Y){return!!Y.MU||!!Y.R9||!!Y.rA||!!Y.Dn||Y.zz}; g.Jx=function(Y){return!!(Y.eE||Y.Jr||Y.Pv||Y.hlsvp||Y.Xg())}; dq=function(Y){if(Y.V("html5_onesie")&&Y.errorCode)return!1;var u=g.jB(Y.N,"ypc");Y.ypcPreview&&(u=!1);return Y.QY()&&!Y.loading&&(g.Jx(Y)||g.jB(Y.N,"heartbeat")||u)}; EZ=function(Y,u){Y=$K(Y);var n={};if(u){u=g.A(u.split(","));for(var U=u.next();!U.done;U=u.next())(U=U.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(n[U[1]]={width:U[2],height:U[3]})}u=g.A(Y);for(U=u.next();!U.done;U=u.next()){U=U.value;var k=n[U.itag];k&&(U.width=k.width,U.height=k.height)}return Y}; fH0=function(Y,u){Y.showShareButton=!!u;var n,U,k=((n=g.z(u,g.ie))==null?void 0:n.navigationEndpoint)||((U=g.z(u,g.ie))==null?void 0:U.command);k&&(Y.OA=!!g.z(k,lHd))}; UNd=function(Y,u){var n=u.raw_embedded_player_response;if(!n){var U=u.embedded_player_response;U&&(n=JSON.parse(U))}n&&(Y.yu=n);if(Y.yu){Y.embeddedPlayerConfig=Y.yu.embeddedPlayerConfig||null;if(n=Y.yu.videoFlags)n.playableInEmbed&&(Y.allowEmbed=!0),n.isPrivate&&(Y.isPrivate=!0),n.userDisplayName&&(u.user_display_name=n.userDisplayName),n.userDisplayImage&&(u.user_display_image=n.userDisplayImage);if(n=Y.yu.embedPreview){n=n.thumbnailPreviewRenderer;lwc(Y,n.controlBgHtml);if(U=n.defaultThumbnail)Y.Z= Vz(U);Y.V("embeds_web_enable_search_button")&&n.searchButton&&(U=g.z(n.searchButton,g.ie))&&(Y.Drz=g.z(U.navigationEndpoint,g.qW));(U=g.z(n==null?void 0:n.videoDetails,hsu))&&ZBA(Y,u,U);U=g.z(n==null?void 0:n.videoDetails,wIu);Y.kQ=!!n.addToWatchLaterButton;fH0(Y,n.shareButton);if(U==null?0:U.musicVideoType)Y.musicVideoType=U.musicVideoType;var k,m,X,S,C;if(U=g.z((k=Y.getEmbeddedPlayerResponse())==null?void 0:(m=k.embedPreview)==null?void 0:(X=m.thumbnailPreviewRenderer)==null?void 0:(S=X.playButton)== null?void 0:(C=S.buttonRenderer)==null?void 0:C.navigationEndpoint,g.pk))dMY(Y,U),Y.videoId=U.videoId||Y.videoId;n.videoDurationSeconds&&(Y.lengthSeconds=l5(n.videoDurationSeconds));n.webPlayerActionsPorting&&xMM(Y,n.webPlayerActionsPorting);if(k=g.z(n==null?void 0:n.playlist,Wod)){Y.T_=!0;m=[];X=Number(k.currentIndex);if(k.contents)for(S=0,C=k.contents.length;S0:Y.SW?!1:Y.GZ.bU||Y.GZ.s6||!g.nV(Y.GZ)?!0:!1:(Y.SW?0:Y.bU)&&g.nV(Y.GZ)?!0:!1;Y.V("html5_log_detailpage_autoplay")&&PW(Y)==="detailpage"&&Y.fG("autoplay_info",{autoplay:Y.zE,autonav:Y.isAutonav,wasDompaused:Y.SW,result:u});return u}; g.Qs=function(Y){return Y.oauthToken||Y.GZ.KF}; OBS=function(Y){if(Y.V("html5_stateful_audio_normalization")){var u=1,n=g.YF(Y.GZ.experiments,"html5_default_ad_gain");n&&Y.isAd()&&(u=n);var U,k;n=(k=(U=Y.G)==null?void 0:U.audio.G)!=null?k:Y.Bl;if(n==null||isNaN(n))Y=V1M(Y);else{U=(0,g.j2)();Y.zG=2;k=U-Y.GZ.w7<=Y.maxStatefulTimeThresholdSec*1E3;Y.applyStatefulNormalization&&k?Y.zG=4:k||(Y.GZ.d7=Infinity,Y.GZ.w7=NaN);k=(Y.zG===4?g.gS(Y.GZ.d7,Y.minimumLoudnessTargetLkfs,Y.loudnessTargetLkfs):Y.loudnessTargetLkfs)-n;if(Y.zG!==4){var m,X,S,C,f=((m= Y.playerResponse)==null?void 0:(X=m.playerConfig)==null?void 0:(S=X.audioConfig)==null?void 0:(C=S.loudnessNormalizationConfig)==null?void 0:C.statelessLoudnessAdjustmentGain)||0;k+=f}k=Math.min(k,0);Y.preserveStatefulLoudnessTarget&&(Y.GZ.d7=n+k,Y.GZ.w7=U);Y=Math.min(1,Math.pow(10,k/20))||u}}else Y=V1M(Y);return Y}; V1M=function(Y){var u=1,n=g.YF(Y.GZ.experiments,"html5_default_ad_gain");n&&Y.isAd()&&(u=n);if(Y.pX){var U,k;n=((U=Y.G)==null?void 0:U.audio.X)!=null?(k=Y.G)==null?void 0:k.audio.X:Y.MA}else{var m;n=((m=Y.G)==null?void 0:m.audio.X)||Y.MA}isNaN(n)||(Y.zG=1);return Math.min(1,Math.pow(10,-n/20))||u}; v2=function(Y){var u=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],n=da(Y.GZ)==="TVHTML5_SIMPLY"&&Y.GZ.K.ctheme==="MUSIC";!Y.VI&&(g.R8(Y.GZ)||g.LV(Y.GZ)||n)&&(u.includes(Y.musicVideoType)||Y.isExternallyHostedPodcast)&&(Y.VI=!0);if(u=g.Io())u=/Starboard\/([0-9]+)/.exec(g.Wq()),u=(u?parseInt(u[1],10):NaN)<10;n=Y.GZ;n=(da(n)==="TVHTML5_CAST"||da(n)==="TVHTML5"&&(n.K.cver.startsWith("6.20130725")||n.K.cver.startsWith("6.20130726")))&&Y.GZ.K.ctheme==="MUSIC";var U;if(U=!Y.VI)n||(n= Y.GZ,n=da(n)==="TVHTML5"&&n.K.cver.startsWith("7")),U=n;U&&!u&&(u=Y.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",n=(Y.V("cast_prefer_audio_only_for_atv_and_uploads")||Y.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&Y.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",u||n||Y.isExternallyHostedPodcast)&&(Y.VI=!0);return Y.GZ.deviceIsAudioOnly||Y.VI&&Y.GZ.Z}; D9=function(Y){var u,n,U;return((u=Y.playerResponse)==null?void 0:(n=u.playerConfig)==null?void 0:(U=n.compositeVideoConfig)==null?void 0:U.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; FoB=function(Y){var u,n,U,k=(u=Y.playerResponse)==null?void 0:(n=u.playerConfig)==null?void 0:(U=n.compositeVideoConfig)==null?void 0:U.sourceConfigs,m,X,S;Y=(m=Y.playerResponse)==null?void 0:(X=m.playerConfig)==null?void 0:(S=X.compositeVideoConfig)==null?void 0:S.defaultActiveSourceVideoId;if(!k||!Y)return"";k=g.A(k);for(m=k.next();!m.done;m=k.next())if(m=m.value,m.videoId===Y&&m.audioTracks)for(m=g.A(m.audioTracks),X=m.next();!X.done;X=m.next())if(X=X.value,X.isDefaultForSource)return X.id||""; return""}; g.JI0=function(Y){return Y.W$()&&xR(Y)||D9(Y)}; ND=function(Y){var u,n,U;return!!((u=Y.playerResponse)==null?0:(n=u.playerConfig)==null?0:(U=n.mediaCommonConfig)==null?0:U.splitScreenEligible)}; ZP=function(Y){var u;return!((u=Y.playerResponse)==null||!u.compositePlayabilityStatus)}; q70=function(Y){return isNaN(Y)?0:Math.max((Date.now()-Y)/1E3-30,0)}; aHM=function(Y){return Y.mW&&!Y.d1}; r6=function(Y){return!(!Y.UO||!Y.GZ.Z)&&Y.Xg()}; MD=function(Y){return Y.xo&&Y.enableServerStitchedDai}; $NA=function(Y){return Y.SQ&&!Y.Vg}; xR=function(Y){var u=Y.V("html5_enable_sabr_on_drive")&&Y.GZ.KG==="gd";if(Y.ZH)return Y.SQ&&Y.fG("fds",{fds:!0},!0),!1;if(Y.GZ.KG!=="yt"&&!u)return Y.SQ&&Y.fG("dsvn",{ns:Y.GZ.KG},!0),!1;if(Y.cotn||!Y.K||Y.K.isOtf&&!Y.V("html5_enable_sabr_otf_in_client")||Y.X&&!Y.X.K||Y.wN&&!Y.V("html5_enable_sabr_csdai"))return!1;if(Y.V("html5_use_sabr_requests_for_debugging"))return!0;Y.SQ&&Y.fG("esfw",{usbc:Y.SQ,hsu:!!Y.Vg},!0);if(Y.SQ&&Y.Vg)return!0;if(Y.V("html5_remove_client_sabr_determination"))return!1;var n= !Y.K.W$&&!Y.jh();u=n&&GN&&Y.V("html5_enable_sabr_vod_streaming_xhr");n=n&&!GN&&Y.V("html5_enable_sabr_vod_non_streaming_xhr");var U=sA(Y),k=Y.V("html5_enable_sabr_drm_vod_streaming_xhr")&&GN&&Y.jh()&&!Y.K.W$&&(Y.drmProduct==="1"?!1:!0);(u=u||n||U||k)&&!Y.Vg&&Y.fG("sabr",{loc:"m"},!0);return u&&!!Y.Vg}; sA=function(Y){var u;if(!(u=GN&&Y.W$()&&Y.jh()&&(Y.drmProduct==="1"?!1:!0)&&Y.V("html5_sabr_live_drm_streaming_xhr"))){u=Y.W$()&&!Y.jh()&&GN;var n=Y.W$()&&Y.latencyClass!=="ULTRALOW"&&!Y.isLowLatencyLiveStream&&Y.V("html5_sabr_live_normal_latency_streaming_xhr"),U=Y.isLowLatencyLiveStream&&Y.V("html5_sabr_live_low_latency_streaming_xhr"),k=Y.latencyClass==="ULTRALOW"&&Y.V("html5_sabr_live_ultra_low_latency_streaming_xhr");u=u&&(n||U||k)}n=u;u=Y.enableServerStitchedDai&&n&&Y.V("html5_enable_sabr_ssdai_streaming_xhr"); n=!Y.enableServerStitchedDai&&n;U=Y.W$()&&!GN&&Y.V("html5_enable_sabr_live_non_streaming_xhr");Y=GN&&(Y.u6()||ND(Y)&&Y.V("html5_enable_sabr_for_lifa_eligible_streams"));return u||n||U||Y}; AIS=function(Y){var u;if(u=!!Y.cotn)u=Y.videoId,u=!!u&&g.kR(u)===1;return u&&!Y.UO}; g.d6=function(Y){if(!Y.K||!Y.j||!Y.G)return!1;var u=Y.K.K,n=!!u[Y.j.id]&&qT(u[Y.j.id].uN.K);u=!!u[Y.G.id]&&qT(u[Y.G.id].uN.K);return(Y.j.itag==="0"||n)&&u}; Gz=function(Y){return Y.ue?["OK","LIVE_STREAM_OFFLINE"].includes(Y.ue.status):!0}; esA=function(Y){return(Y=Y.cD)&&Y.showError?Y.showError:!1}; A3=function(Y,u){return Y.V(u)?!0:(Y.fflags||"").includes(u+"=true")}; S7A=function(Y,u){u.inlineMetricEnabled&&(Y.inlineMetricEnabled=!0);u.playback_progress_0s_url&&(Y.Dn=new Wuc(u));if(u=u.video_masthead_ad_quartile_urls)Y.R9=u.quartile_0_url,Y.Ch=u.quartile_25_url,Y.lc=u.quartile_50_url,Y.ZB=u.quartile_75_url,Y.S2=u.quartile_100_url,Y.rA=u.quartile_0_urls,Y.SX=u.quartile_25_urls,Y.Cw=u.quartile_50_urls,Y.lC=u.quartile_75_urls,Y.D5=u.quartile_100_urls}; PeS=function(Y){var u={};Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next()){n=n.value;var U=n.split("=");U.length===2?u[U[0]]=U[1]:u[n]=!0}return u}; mNG=function(Y){if(Y){if(MgS(Y))return Y;Y=sbG(Y);if(MgS(Y,!0))return Y}return""}; g.Ylu=function(Y){return Y.captionsLanguagePreference||Y.GZ.captionsLanguagePreference||g.F_(Y,"yt:cc_default_lang")||Y.GZ.UD}; jc=function(Y){return!(!Y.isLivePlayback||!Y.hasProgressBarBoundaries())}; g.Lk=function(Y){var u;return Y.e3||((u=Y.suggestions)==null?void 0:u[0])||null}; g.KQ=function(Y){var u,n;return!!((u=Y.embeddedPlayerConfig)==null?0:(n=u.embeddedPlayerFlags)==null?0:n.enableMusicUx)}; uX0=function(Y){return Y.S||Y.V("web_player_media_session_infinity")&&Y.isLivePlayback}; pQ=function(Y){return Y.GZ.G&&Y.isPrivate}; g.t3=function(Y){var u=Y.Y(),n=g.LQ(u),U=u.eE;(u.V("embeds_web_enable_iframe_api_send_full_embed_url")||u.V("embeds_web_enable_rcat_validation_in_havs")||u.V("embeds_enable_autoplay_and_visibility_signals"))&&g.SG(u)&&(U&&(n.thirdParty=Object.assign({},n.thirdParty,{embedUrl:U})),mfW(n,Y));if(U=Y.Fk)n.clickTracking={clickTrackingParams:U};else if(g.SG(Y.Y())&&g.z6("EVENT_ID"))n.clickTracking={clickTrackingParams:g.z6("EVENT_ID")};else if(u.V("html5_log_missing_itct")){var k;U=new g.zP("Missing ITCT in InnerTubeContext", {isAd:Y.isAd(),P2G:(k=u.getWebPlayerContextConfig())==null?void 0:k.contextId});g.tl(U)}k=n.client||{};U="EMBED";var m=PW(Y);m==="leanback"?U="WATCH":u.V("gvi_channel_client_screen")&&m==="profilepage"?U="CHANNEL":Y.Uc?U="LIVE_MONITOR":m==="detailpage"?U="WATCH_FULL_SCREEN":m==="adunit"?U="ADUNIT":m==="sponsorshipsoffer"&&(U="UNKNOWN");k.clientScreen=U;if(u=Y.kidsAppInfo)k.kidsAppInfo=JSON.parse(u);(U=Y.w1)&&!u&&(k.kidsAppInfo={contentSettings:{ageUpMode:niY[U]}});if(u=Y.HG)k.unpluggedAppInfo={enableFilterMode:!0}; (U=Y.unpluggedFilterModeType)&&!u&&(k.unpluggedAppInfo={filterModeType:UbW[U]});if(u=Y.UD)k.unpluggedLocationInfo=u;n.client=k;k=n.request||{};Y.xa&&(k.isPrefetch=!0);if(u=Y.mdxEnvironment)k.mdxEnvironment=u;if(u=Y.mdxControlMode)k.mdxControlMode=kvS[u];n.request=k;k=n.user||{};if(u=Y.rg)k.credentialTransferTokens=[{token:u,scope:"VIDEO"}];if(u=Y.uD)k.delegatePurchases={oauthToken:u},k.kidsParent={oauthToken:u};n.user=k;if(k=Y.contextParams)n.activePlayers=[{playerContextParams:k}];if(Y=Y.clientScreenNonce)n.clientScreenNonce= Y;return n}; g.LQ=function(Y){var u=g.yj(),n=u.client||{};if(Y.forcedExperiments){var U=Y.forcedExperiments.split(","),k=[];U=g.A(U);for(var m=U.next();!m.done;m=U.next())k.push(Number(m.value));n.experimentIds=k}if(k=Y.homeGroupInfo)n.homeGroupInfo=JSON.parse(k);if(k=Y.getPlayerType())n.playerType=k;if(k=Y.K.ctheme)n.theme=k;if(k=Y.livingRoomAppMode)n.tvAppInfo=Object.assign({},n.tvAppInfo,{livingRoomAppMode:k});k=Y.deviceYear;Y.V("html5_propagate_device_year")&&k&&(n.tvAppInfo=Object.assign({},n.tvAppInfo,{deviceYear:k})); if(k=Y.livingRoomPoTokenId)n.tvAppInfo=Object.assign({},n.tvAppInfo,{livingRoomPoTokenId:k});u.client=n;n=u.user||{};Y.enableSafetyMode&&(n=Object.assign({},n,{enableSafetyMode:!0}));Y.pageId&&(n=Object.assign({},n,{onBehalfOfUser:Y.pageId}));u.user=n;n=Y.eE;Y.V("embeds_web_enable_iframe_api_send_full_embed_url")||Y.V("embeds_web_enable_rcat_validation_in_havs")||Y.V("embeds_enable_autoplay_and_visibility_signals")||!n||(u.thirdParty={embedUrl:n});return u}; f$G=function(Y,u,n){var U=Y.videoId,k=g.t3(Y),m=Y.Y(),X={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(dl()),referer:document.location.toString(),signatureTimestamp:20300};g.h6();Y.isAutonav&&(X.autonav=!0);g.wT(0,141)&&(X.autonavState=g.wT(0,140)?"STATE_OFF":"STATE_ON");X.autoCaptionsDefaultOn=g.wT(0,66);yIG(Y)&&(X.autoplay=!0);m.Z&&Y.cycToken&&(X.cycToken=Y.cycToken);m.enablePrivacyFilter&&(X.enablePrivacyFilter=!0);Y.isFling&&(X.fling=!0);var S=Y.forceAdsUrl;if(S){var C={},f=[];S= S.split(",");S=g.A(S);for(var Q=S.next();!Q.done;Q=S.next()){Q=Q.value;var N=Q.split("|");N.length!==3||Q.includes("=")||(N[0]="breaktype="+N[0],N[1]="offset="+N[1],N[2]="url="+N[2]);Q={adtype:"video_ad"};N=g.A(N);for(var Z=N.next();!Z.done;Z=N.next()){var T=g.A(Z.value.split("="));Z=T.next().value;T=mmM(T);Q[Z]=T.join("=")}N=Q.url;Z=Q.presetad;T=Q.viralresponseurl;var r=Number(Q.campaignid);if(Q.adtype==="in_display_ad")N&&(C.url=N),Z&&(C.presetAd=Z),T&&(C.viralAdResponseUrl=T),r&&(C.viralCampaignId= String(r));else if(Q.adtype==="video_ad"){var K={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(Q.offset)||0)}};if(Q=mbS[Q.breaktype])K.breakType=Q;N&&(K.url=N);Z&&(K.presetAd=Z);T&&(K.viralAdResponseUrl=T);r&&(K.viralCampaignId=String(r));f.push(K)}}X.forceAdParameters={videoAds:f,inDisplayAd:C}}Y.isInlinePlaybackNoAd&&(X.isInlinePlaybackNoAd=!0);Y.isLivingRoomDeeplink&&(X.isLivingRoomDeeplink=!0);C=Y.I_c;if(C!=null){C={startWalltime:String(C)};if(f=Y.jj)C.manifestDuration=String(f||14400); X.liveContext=C}if(Y.mutedAutoplay){X.mutedAutoplay=!0;C=m.getWebPlayerContextConfig();var L,R;(C==null?0:(L=C.embedsHostFlags)==null?0:L.allowMutedAutoplayDurationMode)&&(C==null?0:(R=C.embedsHostFlags)==null?0:R.allowMutedAutoplayDurationMode.includes(X3W[Y.mutedAutoplayDurationMode]))&&(X.mutedAutoplayDurationMode=X3W[Y.mutedAutoplayDurationMode])}if(Y.SW?0:Y.bU)X.splay=!0;L=Y.vnd;L===5&&(X.vnd=L);L={};if(R=Y.isMdxPlayback)L.triggeredByMdx=R;if(R=Y.Xx)L.skippableAdsSupported=R.split(",").includes("ska"); if(f=Y.C1){R=Y.Qn;C=[];f=g.A(X1m(f));for(S=f.next();!S.done;S=f.next()){S=S.value;Q=S.platform;S={applicationState:S.wf?"INACTIVE":"ACTIVE",clientFormFactor:PzW[Q]||"UNKNOWN_FORM_FACTOR",clientName:SRY[S.yf]||"UNKNOWN_INTERFACE",clientVersion:S.deviceVersion||"",platform:SlS[Q]||"UNKNOWN_PLATFORM"};Q={};if(R){N=void 0;try{N=JSON.parse(R)}catch(x){g.Br(x)}N&&(Q={params:[{key:"ms",value:N.ms}]},N.advertising_id&&(Q.advertisingId=N.advertising_id),N.limit_ad_tracking!==void 0&&N.limit_ad_tracking!== null&&(Q.limitAdTracking=N.limit_ad_tracking),S.osName=N.os_name,S.userAgent=N.user_agent,S.windowHeightPoints=N.window_height_points,S.windowWidthPoints=N.window_width_points)}C.push({adSignalsInfo:Q,remoteClient:S})}L.remoteContexts=C}R=Y.sourceContainerPlaylistId;C=Y.serializedMdxMetadata;if(R||C)f={},R&&(f.mdxPlaybackContainerInfo={sourceContainerPlaylistId:R}),C&&(f.serializedMdxMetadata=C),L.mdxPlaybackSourceContext=f;X.mdxContext=L;L=u.width;L>0&&(X.playerWidthPixels=Math.round(L));if(u=u.height)X.playerHeightPixels= Math.round(u);n!==0&&(X.vis=n);if(n=m.widgetReferrer)X.widgetReferrer=n.substring(0,128);g.nV(m)&&X&&(X.ancestorOrigins=m.ancestorOrigins);Y.defaultActiveSourceVideoId&&(X.compositeVideoContext={defaultActiveSourceVideoId:Y.defaultActiveSourceVideoId});if(m=m.getWebPlayerContextConfig())X.encryptedHostFlags=m.encryptedHostFlags;U={videoId:U,context:k,playbackContext:{contentPlaybackContext:X}};if(Y.Rj){var c;U.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(c=Y.Rj)==null?void 0:c.reloadPlaybackParams}}Y.contentCheckOk&& (U.contentCheckOk=!0);if(c=Y.clientPlaybackNonce)U.cpn=c;if(c=Y.playerParams)U.params=c;if(c=Y.playlistId)U.playlistId=c;Y.racyCheckOk&&(U.racyCheckOk=!0);c=Y.Y();k=c.embedConfig;Y.N5&&c.V("embeds_enable_per_video_embed_config")?U.serializedThirdPartyEmbedConfig=Y.N5:k&&(U.serializedThirdPartyEmbedConfig=k);U.captionParams={};k=g.wT(g.h6(),65);Y.deviceCaptionsOn!=null?U.captionParams.deviceCaptionsOn=Y.deviceCaptionsOn:g.KV(c)&&(U.captionParams.deviceCaptionsOn=k!=null?!k:!1);Y.c5&&(U.captionParams.deviceCaptionsLangPref= Y.c5);Y.Az.length?U.captionParams.viewerSelectedCaptionLangs=Y.Az:g.KV(c)&&(k=g.jf(),k==null?0:k.length)&&(U.captionParams.viewerSelectedCaptionLangs=k);k=Y.fetchType==="onesie"&&Y.V("html5_onesie_attach_po_token");X=Y.fetchType!=="onesie"&&Y.V("html5_non_onesie_attach_po_token");if(k||X)k=Y.Y(),k.SW&&(U.serviceIntegrityDimensions={},U.serviceIntegrityDimensions.poToken=k.SW);c.V("fetch_att_independently")&&(U.attestationRequest={omitBotguardData:!0});U.playbackContext||(U.playbackContext={});U.playbackContext.devicePlaybackCapabilities= Czc(Y);U.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&Y.fG("noVp9",{});return U}; Czc=function(Y){var u=!(Y==null?0:Y.FC())&&(Y==null?void 0:Y.W$())&&qI(),n;if(!(n=Y==null)){n=g.lR(Y);Y=Y.Y().J;var U=lo("243");n=!(U&&b6(n,U,Y,!0)===!0)}return{supportsVp9Encoding:!(n||u),supportXhr:GN}}; Ngu=function(Y,u){var n,U,k;return g.l(function(m){if(m.j==1)return n={context:g.LQ(Y.Y()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:Y.videoId,cpn:Y.clientPlaybackNonce}}]},U=g.Fj(QYS),g.D(m,g.RV(u,n,U),2);k=m.K;return m.return(k)})}; i2d=function(Y,u,n){var U=g.YF(u.experiments,"bg_vm_reinit_threshold");(!Z5||(0,g.j2)()-Z5>U)&&Ngu(Y,n).then(function(k){k&&(k=k.botguardData)&&g.rK(k,u)},function(k){Y.gg()||(k=TF(k),Y.fG("attf",k.details))})}; BW=function(Y,u){g.e.call(this);this.app=Y;this.state=u}; cW=function(Y,u,n){Y.state.K.hasOwnProperty(u)||of(Y,u,n);Y.state.S[u]=function(){return n.apply(Y,g.It.apply(0,arguments))}; Y.state.W.add(u)}; vW=function(Y,u,n){Y.state.K.hasOwnProperty(u)||of(Y,u,n);Y.app.Y().Z&&(Y.state.Z[u]=function(){return n.apply(Y,g.It.apply(0,arguments))},Y.state.W.add(u))}; of=function(Y,u,n){Y.state.K[u]=function(){return n.apply(Y,g.It.apply(0,arguments))}}; g.Rf=function(Y,u,n){return Y.state.K[u].apply(Y.state.K,g.Zu(n))}; DP=function(){g.KE.call(this);this.J=new Map}; xN=function(){g.e.apply(this,arguments);this.element=null;this.W=new Set;this.S={};this.Z={};this.K={};this.N=new Set;this.X=new DP;this.j=new DP;this.G=new DP;this.J=new DP}; Z2u=function(Y,u,n){typeof Y==="string"&&(Y={mediaContentUrl:Y,startSeconds:u,suggestedQuality:n});a:{if((u=Y.mediaContentUrl)&&(u=/\/([ve]|embed)\/([^#?]+)/.exec(u))&&u[2]){u=u[2];break a}u=null}Y.videoId=u;return lf(Y)}; lf=function(Y,u,n){if(typeof Y==="string")return{videoId:Y,startSeconds:u,suggestedQuality:n};u={};n=g.A(Tg7);for(var U=n.next();!U.done;U=n.next())U=U.value,Y[U]&&(u[U]=Y[U]);if(Y=Y.embedConfig||Y.embed_config)if(typeof Y==="string")u.embed_config=Y;else if(g.XG(Y))try{var k=JSON.stringify(Y);u.embed_config=k}catch(m){console.error("Invalid embedConfig JSON",m)}return u}; rR7=function(Y,u,n,U){if(g.XG(Y)&&!Array.isArray(Y)){u="playlist list listType index startSeconds suggestedQuality".split(" ");n={};for(U=0;U32&&U.push("hfr");u.isHdr()&&U.push("hdr");u.primaries==="bt2020"&&U.push("wcg");n.video_quality_features=U}}if(Y=Y.getPlaylistId())n.list=Y;return n}; bf=function(){h3.apply(this,arguments)}; If=function(Y,u){var n={};if(Y.app.Y().oV){Y=g.A(GvM);for(var U=Y.next();!U.done;U=Y.next())U=U.value,u.hasOwnProperty(U)&&(n[U]=u[U]);if(u=n.qoe_cat)Y="",typeof u==="string"&&u.length>0&&(Y=u.split(",").filter(function(k){return ARS.includes(k)}).join(",")),n.qoe_cat=Y; jYu(n)}else for(Y=g.A(KnY),U=Y.next();!U.done;U=Y.next())U=U.value,u.hasOwnProperty(U)&&(n[U]=u[U]);return n}; jYu=function(Y){var u=Y.raw_player_response;if(!u){var n=Y.player_response;n&&(u=JSON.parse(n))}delete Y.player_response;delete Y.raw_player_response;if(u){Y.raw_player_response={streamingData:u.streamingData,playerConfig:u.playerConfig};var U;if((U=u.playbackTracking)==null?0:U.qoeUrl)Y.raw_player_response=Object.assign({},Y.raw_player_response,{playbackTracking:{qoeUrl:u.playbackTracking.qoeUrl}});u.videoDetails&&(u.videoDetails.videoId||u.videoDetails.lengthSeconds)&&(n={},u.videoDetails.videoId&& (n.videoId=u.videoDetails.videoId),u.videoDetails.lengthSeconds&&(n.lengthSeconds=u.videoDetails.lengthSeconds),Y.raw_player_response=Object.assign({},Y.raw_player_response,{videoDetails:n}))}}; zz=function(Y,u,n){var U=Y.app.Ia(n);if(!U)return 0;Y=U-Y.app.getCurrentTime(n);return u-Y}; Lnm=function(Y){var u=u===void 0?5:u;return Y?p3S[Y]||u:u}; g.g6=function(){bf.apply(this,arguments)}; tAt=function(Y){of(Y,"getInternalApiInterface",Y.getInternalApiInterface);of(Y,"addEventListener",Y.Br);of(Y,"removeEventListener",Y.jea);of(Y,"cueVideoByPlayerVars",Y.F7);of(Y,"loadVideoByPlayerVars",Y.E$);of(Y,"preloadVideoByPlayerVars",Y.vRc);of(Y,"getAdState",Y.getAdState);of(Y,"sendAbandonmentPing",Y.sendAbandonmentPing);of(Y,"setLoopRange",Y.setLoopRange);of(Y,"getLoopRange",Y.getLoopRange);of(Y,"setAutonavState",Y.setAutonavState);of(Y,"seekTo",Y.k4w);of(Y,"seekBy",Y.l_z);of(Y,"seekToLiveHead", Y.seekToLiveHead);of(Y,"requestSeekToWallTimeSeconds",Y.requestSeekToWallTimeSeconds);of(Y,"seekToStreamTime",Y.seekToStreamTime);of(Y,"prefetchKeyPlay",Y.prefetchKeyPlay);of(Y,"startSeekCsiAction",Y.startSeekCsiAction);of(Y,"getStreamTimeOffset",Y.getStreamTimeOffset);of(Y,"getVideoData",Y.It);of(Y,"setInlinePreview",Y.setInlinePreview);of(Y,"getAppState",Y.getAppState);of(Y,"updateLastActiveTime",Y.updateLastActiveTime);of(Y,"setBlackout",Y.setBlackout);of(Y,"setUserEngagement",Y.setUserEngagement); of(Y,"updateSubtitlesUserSettings",Y.updateSubtitlesUserSettings);of(Y,"getPresentingPlayerType",Y.hm);of(Y,"canPlayType",Y.canPlayType);of(Y,"updatePlaylist",Y.updatePlaylist);of(Y,"updateVideoData",Y.updateVideoData);of(Y,"updateEnvironmentData",Y.updateEnvironmentData);of(Y,"sendVideoStatsEngageEvent",Y.eRz);of(Y,"productsInVideoVisibilityUpdated",Y.productsInVideoVisibilityUpdated);of(Y,"setSafetyMode",Y.setSafetyMode);of(Y,"isAtLiveHead",function(u){return Y.isAtLiveHead(void 0,u)}); of(Y,"getVideoAspectRatio",Y.getVideoAspectRatio);of(Y,"getPreferredQuality",Y.getPreferredQuality);of(Y,"getPlaybackQualityLabel",Y.getPlaybackQualityLabel);of(Y,"setPlaybackQualityRange",Y.veF);of(Y,"onAdUxClicked",Y.onAdUxClicked);of(Y,"getFeedbackProductData",Y.getFeedbackProductData);of(Y,"getStoryboardFrame",Y.getStoryboardFrame);of(Y,"getStoryboardFrameIndex",Y.getStoryboardFrameIndex);of(Y,"getStoryboardLevel",Y.getStoryboardLevel);of(Y,"getNumberOfStoryboardLevels",Y.getNumberOfStoryboardLevels); of(Y,"getCaptionWindowContainerId",Y.getCaptionWindowContainerId);of(Y,"getAvailableQualityLabels",Y.getAvailableQualityLabels);of(Y,"addCueRange",Y.addCueRange);of(Y,"addUtcCueRange",Y.addUtcCueRange);of(Y,"showAirplayPicker",Y.showAirplayPicker);of(Y,"dispatchReduxAction",Y.dispatchReduxAction);of(Y,"getPlayerResponse",Y.TJ);of(Y,"getWatchNextResponse",Y.hF);of(Y,"getHeartbeatResponse",Y.Zz);of(Y,"getCurrentTime",Y.lB);of(Y,"getDuration",Y.YD);of(Y,"getPlayerState",Y.getPlayerState);of(Y,"getPlayerStateObject", Y.YH);of(Y,"getVideoLoadedFraction",Y.getVideoLoadedFraction);of(Y,"getProgressState",Y.getProgressState);of(Y,"getVolume",Y.getVolume);of(Y,"setVolume",Y.a7);of(Y,"isMuted",Y.isMuted);of(Y,"mute",Y.qD);of(Y,"unMute",Y.Fd);of(Y,"loadModule",Y.loadModule);of(Y,"unloadModule",Y.unloadModule);of(Y,"getOption",Y.oU);of(Y,"getOptions",Y.getOptions);of(Y,"setOption",Y.setOption);of(Y,"loadVideoById",Y.J8);of(Y,"loadVideoByUrl",Y.Vy);of(Y,"playVideo",Y.He);of(Y,"loadPlaylist",Y.loadPlaylist);of(Y,"nextVideo", Y.nextVideo);of(Y,"previousVideo",Y.previousVideo);of(Y,"playVideoAt",Y.playVideoAt);of(Y,"getDebugText",Y.getDebugText);of(Y,"getWebPlayerContextConfig",Y.getWebPlayerContextConfig);of(Y,"notifyShortsAdSwipeEvent",Y.notifyShortsAdSwipeEvent);of(Y,"getVideoContentRect",Y.getVideoContentRect);of(Y,"setSqueezeback",Y.setSqueezeback);of(Y,"toggleSubtitlesOn",Y.toggleSubtitlesOn);of(Y,"isSubtitlesOn",Y.isSubtitlesOn);of(Y,"reportPlaybackIssue",Y.reportPlaybackIssue);of(Y,"setAutonav",Y.setAutonav);of(Y, "isNotServable",Y.isNotServable);of(Y,"channelSubscribed",Y.channelSubscribed);of(Y,"channelUnsubscribed",Y.channelUnsubscribed);of(Y,"togglePictureInPicture",Y.togglePictureInPicture);of(Y,"supportsGaplessAudio",Y.supportsGaplessAudio);of(Y,"supportsGaplessShorts",Y.supportsGaplessShorts);of(Y,"enqueueVideoByPlayerVars",function(u){return void Y.enqueueVideoByPlayerVars(u)}); of(Y,"clearQueue",Y.clearQueue);of(Y,"getAudioTrack",Y.AP);of(Y,"setAudioTrack",Y.dAk);of(Y,"getAvailableAudioTracks",Y.JP);of(Y,"getMaxPlaybackQuality",Y.getMaxPlaybackQuality);of(Y,"getUserPlaybackQualityPreference",Y.getUserPlaybackQualityPreference);of(Y,"getSubtitlesUserSettings",Y.getSubtitlesUserSettings);of(Y,"resetSubtitlesUserSettings",Y.resetSubtitlesUserSettings);of(Y,"setMinimized",Y.setMinimized);of(Y,"setOverlayVisibility",Y.setOverlayVisibility);of(Y,"confirmYpcRental",Y.confirmYpcRental); of(Y,"queueNextVideo",Y.queueNextVideo);of(Y,"handleExternalCall",Y.handleExternalCall);of(Y,"logApiCall",Y.logApiCall);of(Y,"isExternalMethodAvailable",Y.isExternalMethodAvailable);of(Y,"setScreenLayer",Y.setScreenLayer);of(Y,"getCurrentPlaylistSequence",Y.getCurrentPlaylistSequence);of(Y,"getPlaylistSequenceForTime",Y.getPlaylistSequenceForTime);of(Y,"shouldSendVisibilityState",Y.shouldSendVisibilityState);of(Y,"syncVolume",Y.syncVolume);of(Y,"highlightSettingsMenuItem",Y.highlightSettingsMenuItem); of(Y,"openSettingsMenuItem",Y.openSettingsMenuItem);of(Y,"getEmbeddedPlayerResponse",Y.getEmbeddedPlayerResponse);of(Y,"getVisibilityState",Y.getVisibilityState);of(Y,"isMutedByMutedAutoplay",Y.isMutedByMutedAutoplay);of(Y,"isMutedByEmbedsMutedAutoplay",Y.isMutedByEmbedsMutedAutoplay);of(Y,"setGlobalCrop",Y.setGlobalCrop);of(Y,"setInternalSize",Y.setInternalSize);of(Y,"setFauxFullscreen",Y.setFauxFullscreen);of(Y,"setAppFullscreen",Y.setAppFullscreen)}; HW=function(Y,u,n){Y=g.EA(Y.kR(),u);return n?(n.addOnDisposeCallback(Y),null):Y}; g.ys=function(Y,u,n){return Y.app.Y().sx?u:g.UR("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:u,SHORTCUT:n})}; BgG=function(Y){Y.kR().element.setAttribute("aria-live","polite")}; g.Vs=function(Y,u){g.g6.call(this,Y,u);tAt(this);vW(this,"addEventListener",this.ZJ);vW(this,"removeEventListener",this.G4q);vW(this,"cueVideoByPlayerVars",this.Hm);vW(this,"loadVideoByPlayerVars",this.p$);vW(this,"preloadVideoByPlayerVars",this.P6q);vW(this,"loadVideoById",this.J8);vW(this,"loadVideoByUrl",this.Vy);vW(this,"playVideo",this.He);vW(this,"loadPlaylist",this.loadPlaylist);vW(this,"nextVideo",this.nextVideo);vW(this,"previousVideo",this.previousVideo);vW(this,"playVideoAt",this.playVideoAt); vW(this,"getVideoData",this.q9);vW(this,"seekBy",this.ipg);vW(this,"seekTo",this.QeF);vW(this,"showControls",this.showControls);vW(this,"hideControls",this.hideControls);vW(this,"cancelPlayback",this.cancelPlayback);vW(this,"getProgressState",this.getProgressState);vW(this,"isInline",this.isInline);vW(this,"setInline",this.setInline);vW(this,"setLoopVideo",this.setLoopVideo);vW(this,"getLoopVideo",this.getLoopVideo);vW(this,"getVideoContentRect",this.getVideoContentRect);vW(this,"getVideoStats",this.Rt); vW(this,"getCurrentTime",this.kH);vW(this,"getDuration",this.YD);vW(this,"getPlayerState",this.Pa);vW(this,"getVideoLoadedFraction",this.K8);vW(this,"mute",this.qD);vW(this,"unMute",this.Fd);vW(this,"setVolume",this.a7);vW(this,"loadModule",this.loadModule);vW(this,"unloadModule",this.unloadModule);vW(this,"getOption",this.oU);vW(this,"getOptions",this.getOptions);vW(this,"setOption",this.setOption);vW(this,"addCueRange",this.addCueRange);vW(this,"getDebugText",this.getDebugText);vW(this,"getStoryboardFormat", this.getStoryboardFormat);vW(this,"toggleFullscreen",this.toggleFullscreen);vW(this,"isFullscreen",this.isFullscreen);vW(this,"getPlayerSize",this.getPlayerSize);vW(this,"toggleSubtitles",this.toggleSubtitles);vW(this,"setCenterCrop",this.setCenterCrop);vW(this,"setFauxFullscreen",this.setFauxFullscreen);vW(this,"setSizeStyle",this.setSizeStyle);vW(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);vW(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);sYM(this)}; g.OA=function(Y){Y=Y.ym();var u=Y.P4.get("endscreen");return u&&u.SU()?!0:Y.vu()}; g.F0=function(Y,u){Y.getPresentingPlayerType()===3?Y.publish("mdxautoplaycancel"):Y.Yw("onAutonavCancelled",u)}; g.qD=function(Y){var u=J3(Y.ym());return Y.app.jQ&&!Y.isFullscreen()||Y.getPresentingPlayerType()===3&&u&&u.ul()&&u.ZC()||!!Y.getPlaylist()}; g.af=function(Y,u){g.Rf(Y,"addEmbedsConversionTrackingParams",[u])}; g.YX=function(Y){return(Y=g.$N(Y.ym()))?Y.aN():{}}; g.oiB=function(Y){Y=(Y=Y.getVideoData())&&Y.j;return!!Y&&!(!Y.audio||!Y.video)&&Y.mimeType!=="application/x-mpegURL"}; g.uc=function(Y,u,n){Y=Y.tJ().element;var U=Eq(Y.children,function(k){k=Number(k.getAttribute("data-layer"));return n-k||1}); U<0&&(U=-(U+1));Go(Y,u,U);u.setAttribute("data-layer",String(n))}; g.n0=function(Y){var u=Y.Y();if(!u.yY)return!1;var n=Y.getVideoData();if(!n||Y.getPresentingPlayerType()===3)return!1;var U=(!n.isLiveDefaultBroadcast||u.V("allow_poltergust_autoplay"))&&!jc(n);U=n.isLivePlayback&&(!u.V("allow_live_autoplay")||!U);var k=n.isLivePlayback&&u.V("allow_live_autoplay_on_mweb");Y=Y.getPlaylist();Y=!!Y&&Y.ul();var m=n.MF&&n.MF.playerOverlays||null;m=!!(m&&m.playerOverlayRenderer&&m.playerOverlayRenderer.autoplay);m=n.sD&&m;return!n.ypcPreview&&(!U||k)&&!g.jB(n.N,"ypc")&& !Y&&(!g.nV(u)||m)}; viG=function(Y,u){Y=cR0(Y.app.Dy().J);Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next()){n=n.value;var U=n.getAvailableAudioTracks(),k=null;U=g.A(U);for(var m=U.next();!m.done;m=U.next())if(m=m.value,m.getLanguageInfo().getId()===u){k=m;break}k&&n.Uj(k,!0)}}; US=function(){xU.apply(this,arguments);this.requestHeaders={}}; mm=function(){kX||(kX=new US);return kX}; X2=function(Y,u){u?Y.requestHeaders.Authorization="Bearer "+u:delete Y.requestHeaders.Authorization}; g.PO=function(Y){g.e.call(this);var u=this;this.IV=Y;this.IH={TL:function(){return u.IV}}}; g.SL=function(Y,u,n,U){U=U===void 0?!1:U;g.XV.call(this,u);var k=this;this.L=Y;this.jG=U;this.Z=new g.j3(this);this.fade=new g.Je(this,n,!0,void 0,void 0,function(){k.E4()}); g.b(this,this.Z);g.b(this,this.fade)}; C0=function(Y){var u=Y.L.getRootNode();return Y.L.V("web_watch_pip")||Y.L.V("web_shorts_pip")?ni(u):document}; RiM=function(Y){Y.j&&(document.activeElement&&g.jw(Y.element,document.activeElement)&&Y.j.focus(),Y.j.setAttribute("aria-expanded","false"),Y.j=void 0);g.Lb(Y.Z);Y.N=void 0}; f0=function(Y,u,n){Y.qI()?Y.H$():Y.Su(u,n)}; Qa=function(Y,u,n,U){U=new g.H({D:"div",Oc:["ytp-linked-account-popup-button"],RV:U,T:{role:"button",tabindex:"0"}});u=new g.H({D:"div",C:"ytp-linked-account-popup",T:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{D:"div",C:"ytp-linked-account-popup-title",RV:u},{D:"div",C:"ytp-linked-account-popup-description",RV:n},{D:"div",C:"ytp-linked-account-popup-buttons",U:[U]}]});g.SL.call(this,Y,{D:"div",C:"ytp-linked-account-popup-container",U:[u]},100);var k=this;this.dialog=u;g.b(this,this.dialog); U.listen("click",function(){k.H$()}); g.b(this,U);g.uc(this.L,this.element,4);this.hide()}; g.ic=function(Y,u,n,U){g.XV.call(this,Y);this.priority=u;n&&g.NA(this,n);U&&this.dD(U)}; g.Za=function(Y,u,n,U){Y=Y===void 0?{}:Y;u=u===void 0?[]:u;n=n===void 0?!1:n;U=U===void 0?!1:U;u.push("ytp-menuitem");var k=Y;"role"in k||(k.role="menuitem");n||(k=Y,"tabindex"in k||(k.tabindex="0"));Y={D:n?"a":"div",Oc:u,T:Y,U:[{D:"div",C:"ytp-menuitem-icon",RV:"{{icon}}"},{D:"div",C:"ytp-menuitem-label",RV:"{{label}}"},{D:"div",C:"ytp-menuitem-content",RV:"{{content}}"}]};U&&Y.U.push({D:"div",C:"ytp-menuitem-secondary-icon",RV:"{{secondaryIcon}}"});return Y}; g.NA=function(Y,u){Y.updateValue("label",u)}; TG=function(Y){g.ic.call(this,g.Za({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var u=this;this.L=Y;this.j=this.K=!1;this.jE=Y.jc();Y.createServerVe(this.element,this,!0);this.B(this.L,"settingsMenuVisibilityChanged",function(n){u.ZF(n)}); this.B(this.L,"videodatachange",this.G);this.listen("click",this.onClick);this.G()}; rd=function(Y){return Y?g.Cw(Y):""}; MA=function(Y){g.e.call(this);this.api=Y}; sS=function(Y){MA.call(this,Y);var u=this;of(Y,"setAccountLinkState",function(n){u.setAccountLinkState(n)}); of(Y,"updateAccountLinkingConfig",function(n){u.updateAccountLinkingConfig(n)}); Y.addEventListener("videodatachange",function(n,U){u.onVideoDataChange(U)}); Y.addEventListener("settingsMenuInitialized",function(){u.menuItem=new TG(u.api);g.b(u,u.menuItem)})}; DbA=function(Y){this.api=Y;this.K={}}; dd=function(Y,u,n,U){u in Y.K||(n=new g.EE(n,U,{id:u,priority:2,namespace:"appad"}),Y.api.l6([n],1),Y.K[u]=n)}; GG=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(this);g.b(this,this.events);this.K=new DbA(this.api);this.events.B(this.api,"legacyadtrackingpingreset",function(){u.K.K={}}); this.events.B(this.api,"legacyadtrackingpingchange",function(n){var U=u.K;dd(U,"part2viewed",1,0x8000000000000);dd(U,"engagedview",Math.max(1,n.Ru*1E3),0x8000000000000);if(!n.isLivePlayback){var k=n.lengthSeconds*1E3;c2(n)&&U.api.V("html5_shorts_gapless_ads_duration_fix")&&(k=U.api.getProgressState().seekableEnd*1E3-n.UI);dd(U,"videoplaytime25",k*.25,k);dd(U,"videoplaytime50",k*.5,k);dd(U,"videoplaytime75",k*.75,k);dd(U,"videoplaytime100",k,0x8000000000000);dd(U,"conversionview",k,0x8000000000000); dd(U,"videoplaybackstart",1,k);dd(U,"videoplayback2s",2E3,k);dd(U,"videoplayback10s",1E4,k)}}); this.events.B(this.api,g.yk("appad"),this.j);this.events.B(this.api,g.Vk("appad"),this.j)}; w3m=function(Y,u,n){if(!(n in u))return!1;u=u[n];Array.isArray(u)||(u=[u]);u=g.A(u);for(n=u.next();!n.done;n=u.next()){n=n.value;var U={CPN:Y.api.getVideoData().clientPlaybackNonce};n=g.oe(n,U);U=void 0;U=U===void 0?!1:U;(U=Wx(el(n,xbA),n,U,"Active View 3rd Party Integration URL"))||(U=void 0,U=U===void 0?!1:U,U=Wx(el(n,l$M),n,U,"Google/YouTube Brand Lift URL"));U||(U=void 0,U=U===void 0?!1:U,U=Wx(el(n,hiG),n,U,"Nielsen OCR URL"));g.DX(n,void 0,U)}return!0}; AO=function(Y,u){Wnu(Y,u).then(function(n){g.DX(u,void 0,void 0,n)})}; jL=function(Y,u){u.forEach(function(n){AO(Y,n)})}; Wnu=function(Y,u){return g.Zp(Y.api.Y())&&mR(u)&&ko(u)?g.DA(Y.api.Y(),g.Qs(Y.api.getVideoData())).then(function(n){var U;n&&(U={Authorization:"Bearer "+n});return U},void 0):oo()}; eiY=function(Y){MA.call(this,Y);this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"videoready",function(u){if(Y.getPresentingPlayerType()===1){var n,U,k={playerDebugData:{pmlSignal:!!((n=u.getPlayerResponse())==null?0:(U=n.adPlacements)==null?0:U.some(function(m){var X;return m==null?void 0:(X=m.adPlacementRenderer)==null?void 0:X.renderer})), contentCpn:u.clientPlaybackNonce}};g.ka("adsClientStateChange",k)}})}; K0=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);of(this.api,"getUserAudioQualitySetting",function(){return u.getUserAudioQualitySetting()}); of(this.api,"setUserAudioQualitySetting",function(n){u.setUserAudioQualitySetting(n)}); of(this.api,"hasHqaAudioTrack",function(){return u.hasHqaAudioTrack()}); this.vk=nwG();this.updateEnvironmentData()}; p0=function(Y){g.H.call(this,{D:"button",Oc:["ytp-button","ytp-autonav-toggle"],T:{title:Y.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},U:[{D:"div",C:"ytp-autonav-toggle-button-container",U:[{D:"div",C:"ytp-autonav-toggle-button",T:{"aria-checked":"true"}}]}]});this.L=Y;this.j=[];this.K=!1;this.isChecked=!0;Y.createClientVe(this.element,this, 113681);this.B(Y,"presentingplayerstatechange",this.u3);this.listen("click",this.onClick);this.L.Y().V("web_player_autonav_toggle_always_listen")&&b27(this);HW(Y,this.element,this);this.u3()}; b27=function(Y){Y.j.push(Y.B(Y.L,"videodatachange",Y.u3));Y.j.push(Y.B(Y.L,"videoplayerreset",Y.u3));Y.j.push(Y.B(Y.L,"onPlaylistUpdate",Y.u3));Y.j.push(Y.B(Y.L,"autonavchange",Y.Gq))}; I$u=function(Y){Y.isChecked=Y.isChecked;Y.Xk("ytp-autonav-toggle-button").setAttribute("aria-checked",String(Y.isChecked));var u=Y.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";Y.L.Y().V("player_tooltip_data_title_killswitch")?Y.update({title:u,label:u}):Y.update({"data-tooltip-title":u,label:u});Y.L.aZ()}; zit=function(Y){return Y.L.Y().V("web_player_autonav_use_server_provided_state")&&Kk(Y.xR())}; giY=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"standardControlsInitialized",function(){var n=new p0(Y);g.b(u,n);Y.By(n,"RIGHT_CONTROLS_LEFT")})}; L0=function(Y,u){g.ic.call(this,g.Za({role:"menuitemcheckbox","aria-checked":"false"}),u,Y,{D:"div",C:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; tO=function(Y,u){Y.checked=u;Y.element.setAttribute("aria-checked",String(Y.checked))}; Eic=function(Y){var u=!Y.Y().l4&&Y.getPresentingPlayerType()!==3;return Y.isFullscreen()||u}; g.BO=function(Y,u,n,U){var k=Y.currentTarget;if((n===void 0||!n)&&g.d7(Y))return Y.preventDefault(),!0;u.pauseVideo();Y=k.getAttribute("href");g.WY(Y,U,!0);return!1}; g.oP=function(Y,u,n){if(G_(u.Y())&&u.getPresentingPlayerType()!==2){if(g.d7(n))return u.isFullscreen()&&!u.Y().externalFullscreen&&u.toggleFullscreen(),n.preventDefault(),!0}else{var U=g.d7(n);U&&u.pauseVideo();g.WY(Y,void 0,!0);U&&(g.eZ(Y),n.preventDefault())}return!1}; H2G=function(Y){Y=cO.includes("es-419")?Y.V("delhi_modern_web_player_icons")?T3():{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,T:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:Y.V("delhi_modern_web_player_icons")?DxW():{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,T:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};Y.C="ytp-subtitles-button-icon"; return Y}; yRu=function(Y){return cO.includes("es-419")?Y?T3():{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:Y?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},U:[{D:"path",T:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; vO=function(){return{D:"div",C:"ytp-spinner-container",U:[{D:"div",C:"ytp-spinner-rotator",U:[{D:"div",C:"ytp-spinner-left",U:[{D:"div",C:"ytp-spinner-circle"}]},{D:"div",C:"ytp-spinner-right",U:[{D:"div",C:"ytp-spinner-circle"}]}]}]}}; RP=function(Y){if(document.createRange){var u=document.createRange();u&&(u.selectNodeContents(Y),Y=window.getSelection())&&(Y.removeAllRanges(),Y.addRange(u))}}; lc=function(Y){var u=Y.V("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";L0.call(this,u,g.Da.uv);var n=this;this.L=Y;this.K=!1;this.j=new g.Vp(function(){g.mU(n.element,"ytp-menuitem-highlighted")},0); this.jE=Y.jc();Y=Y.V("delhi_modern_web_player_icons")?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(Y);this.subscribe("select",this.X,this);this.listen(xX,this.G);g.b(this,this.j)}; hO=function(Y){MA.call(this,Y);var u=this;this.K=!1;Y.addEventListener("settingsMenuInitialized",function(){VAW(u)}); Y.addEventListener("highlightSettingsMenu",function(n){VAW(u);var U=u.menuItem;n==="menu_item_cinematic_lighting"&&(g.UN(U.element,"ytp-menuitem-highlighted"),g.UN(U.element,"ytp-menuitem-highlight-transition-enabled"),U.j.start())}); of(Y,"updateCinematicSettings",function(n){u.updateCinematicSettings(n)})}; VAW=function(Y){Y.menuItem||(Y.menuItem=new lc(Y.api),g.b(Y,Y.menuItem),Y.menuItem.QF(Y.K))}; O2Y=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"applicationvideodatachange",function(n,U){U=U.clipConfig;n==="dataloaded"&&U&&U.startTimeMs!=null&&U.endTimeMs!=null&&u.api.setLoopRange({startTimeMs:Math.floor(Number(U.startTimeMs)),endTimeMs:Math.floor(Number(U.endTimeMs)),postId:U.postId,type:"clips"})})}; wd=function(Y){MA.call(this,Y);this.events=new g.j3(Y);g.b(this,this.events);of(Y,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));of(Y,"setCreatorEndscreenHideButton",this.K.bind(this))}; WO=function(Y,u,n,U){L0.call(this,"Volumen estable",g.Da.jN);g.UN(this.element,"ytp-drc-menu-item");this.jE=Y.jc();this.X=u;this.K=n;this.hasDrcAudioTrack=U;Y.addEventListener("videodatachange",this.j.bind(this));Y.V("mta_drc_mutual_exclusion_removal")&&this.B(Y,"onPlaybackAudioChange",this.j);u=this.K()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());Y=Y.V("delhi_modern_web_player_icons")?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]};this.setIcon(Y);this.subscribe("select",this.G,this);tO(this,u);this.jE.rD(this)}; eL=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);Y.V("html5_show_drc_toggle")&&Y.addEventListener("settingsMenuInitialized",function(){u.menuItem||(u.menuItem=new WO(u.api,u.setDrcUserPreference.bind(u),u.getDrcUserPreference.bind(u),u.j.bind(u)),g.b(u,u.menuItem))}); of(this.api,"setDrcUserPreference",function(U){u.setDrcUserPreference(U)}); of(this.api,"getDrcUserPreference",function(){return u.getDrcUserPreference()}); of(this.api,"hasDrcAudioTrack",function(){return u.j()}); var n;this.K=(n=g.ck("yt-player-drc-pref"))!=null?n:1;this.updateEnvironmentData()}; bc=function(Y){MA.call(this,Y);var u=this;this.K={};this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"videodatachange",function(){u.onVideoDataChange()}); this.events.B(Y,g.yk("embargo"),function(n){u.api.J4(!0);var U,k=(U=u.K[n.id])!=null?U:[];U=g.A(k);for(k=U.next();!k.done;k=U.next()){var m=k.value;u.api.hideControls();u.api.Re("auth",2,"This video isn't available in your current playback area",NO({embargoed:1,id:n.id,idx:n.j,start:n.start}));k=void 0;(m=(k=m.embargo)==null?void 0:k.onTrigger)&&u.api.Yw("innertubeCommand",m)}})}; Fnc=function(Y,u){var n;return(n=u.onEnter)==null?void 0:n.some(Y.j)}; JRu=function(Y,u){u=g.A(u);for(var n=u.next();!n.done;n=u.next()){n=n.value;var U=void 0,k=Number((U=n.playbackPosition)==null?void 0:U.utcTimeMillis)/1E3,m=void 0;U=k+Number((m=n.duration)==null?void 0:m.seconds);m="embargo_"+k;Y.api.addUtcCueRange(m,k,U,"embargo",!1);n.onEnter&&(Y.K[m]=n.onEnter.filter(Y.j))}}; IP=function(Y){MA.call(this,Y);var u=this;this.K=[];this.events=new g.j3(Y);g.b(this,this.events);of(Y,"addEmbedsConversionTrackingParams",function(n){u.addEmbedsConversionTrackingParams(n)}); this.events.B(Y,"veClickLogged",function(n){u.api.hasVe(n)&&(n=n.visualElement.getAsJspb(),n=cZ(n,2),u.K.push(n))})}; qld=function(Y){MA.call(this,Y);of(Y,"isEmbedsShortsMode",function(){return Y.isEmbedsShortsMode()})}; a$m=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"initialvideodatacreated",function(n){P5(Xx(),16623);u.K=g.sC();var U=Y.Y().bU&&!n.SW;if(fQ(n)&&U){P5(Xx(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(n.getWatchNextResponse()){var k,m=(k=n.getWatchNextResponse())==null?void 0:k.trackingParams;m&&Cq(m)}if(n.getPlayerResponse()){var X;(n=(X=n.getPlayerResponse())==null?void 0:X.trackingParams)&&Cq(n)}}else P5(Xx(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),n.getEmbeddedPlayerResponse()&&(X=(m=n.getEmbeddedPlayerResponse())==null?void 0:m.trackingParams)&&Cq(X)}); this.events.B(Y,"loadvideo",function(){P5(Xx(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:u.K})}); this.events.B(Y,"cuevideo",function(){P5(Xx(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:u.K})}); this.events.B(Y,"largeplaybuttonclicked",function(n){P5(Xx(),27240,n.visualElement)}); this.events.B(Y,"playlistnextbuttonclicked",function(n){P5(Xx(),27240,n.visualElement)}); this.events.B(Y,"playlistprevbuttonclicked",function(n){P5(Xx(),27240,n.visualElement)}); this.events.B(Y,"playlistautonextvideo",function(){P5(Xx(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; zG=function(Y,u){g.e.call(this);var n=this;this.K=null;this.X=u;u=[];for(var U=0;U<=100;U++)u.push(U/100);u={threshold:u,trackVisibility:!0,delay:1E3};(this.j=window.IntersectionObserver?new IntersectionObserver(function(k){k=k[k.length-1];var m=null;typeof k.isVisible==="undefined"?document.visibilityState==="visible"&&k.isIntersecting&&k.intersectionRatio>0?m=k.intersectionRatio:document.visibilityState==="hidden"?m=0:m=null:m=k.isVisible?k.intersectionRatio:0;m!=null&&(m=Math.max(m,0),m=Math.min(m, 1));n.K=m;typeof n.X==="function"&&n.X(n.K)},u):null)&&this.j.observe(Y)}; Ydu=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"applicationInitialized",function(){$bc(u)})}; $bc=function(Y){var u=Y.api.getRootNode(),n,U=Y.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((n=u.parentElement)==null?void 0:n.parentElement)||u:u;Y.K=new zG(U,function(k){k!=null&&(Y.api.Y().vv=k,Y.api.Y().Pv="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.b(Y,Y.K);Y.events.B(Y.api,"videoStatsPingCreated",function(k){var m=Y.K;m=m.K==null?null:Math.round(m.K*100)/100;k.inview=m!=null?m:void 0;m=Y.api.getPlayerSize();if(m.height>0&&m.width>0){m=[Math.round(m.width),Math.round(m.height)];var X=g.jG();X>1&&m.push(X);m=m.join(":")}else m=void 0;k.size=m})}; uxt=function(Y){var u;return((u=((Y==null?void 0:Y.messageRenderers)||[]).find(function(n){return!!n.timeCounterRenderer}))==null?void 0:u.timeCounterRenderer)||null}; gd=function(Y){g.H.call(this,{D:"div",Oc:["ytp-player-content","ytp-iv-player-content"],U:[{D:"div",C:"ytp-free-preview-countdown-timer",U:[{D:"span",RV:"{{label}}"},{D:"span",C:"ytp-free-preview-countdown-timer-separator",RV:"\u2022"},{D:"span",RV:"{{duration}}"}]}]});this.api=Y;this.K=null;this.X=this.j=0;this.B(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; UTu=function(Y,u){Y.K||(Y.j=u,Y.X=(0,g.j2)(),Y.K=new g.EQ(function(){npe(Y)},null),npe(Y))}; npe=function(Y){var u=Math,n=u.round,U=Math.min((0,g.j2)()-Y.X,Y.j);u=n.call(u,(Y.j-U)/1E3);Y.updateValue("duration",$i({seconds:u}));u<=0&&Y.K?Y.stopTimer():Y.K&&Y.K.start()}; kYA=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"basechromeinitialized",function(){u.K=new gd(Y);g.b(u,u.K);g.uc(Y,u.K.element,4);u.K.hide()})}; ES=function(Y){g.H.call(this,{D:"button",Oc:["ytp-fullerscreen-edu-button","ytp-button"],U:[{D:"div",Oc:["ytp-fullerscreen-edu-text"],RV:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{D:"div",Oc:["ytp-fullerscreen-edu-chevron"],U:[{D:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",T:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],T:{"data-priority":"2"}});this.Bz=Y;this.fade=new g.Je(this,250,void 0,100);this.j=this.K= !1;Y.createClientVe(this.element,this,61214);g.b(this,this.fade);this.B(Y,"fullscreentoggled",this.QF);this.B(Y,"presentingplayerstatechange",this.QF);this.listen("click",this.onClick);this.QF()}; HO=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);of(this.api,"updateFullerscreenEduButtonSubtleModeState",function(U){u.updateFullerscreenEduButtonSubtleModeState(U)}); of(this.api,"updateFullerscreenEduButtonVisibility",function(U){u.updateFullerscreenEduButtonVisibility(U)}); var n=Y.Y();Y.V("external_fullscreen_with_edu")&&n.externalFullscreen&&G_(n)&&n.controlsType==="1"&&this.events.B(Y,"standardControlsInitialized",function(){u.K=new ES(Y);g.b(u,u.K);Y.By(u.K)})}; mTt=function(Y){g.H.call(this,{D:"div",C:"ytp-gated-actions-overlay",U:[{D:"div",C:"ytp-gated-actions-overlay-background",U:[{D:"div",C:"ytp-gated-actions-overlay-background-overlay"}]},{D:"button",Oc:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],T:{"aria-label":"Cerrar"},U:[g.ZG()]},{D:"div",C:"ytp-gated-actions-overlay-bar",U:[{D:"div",C:"ytp-gated-actions-overlay-text-container",U:[{D:"div",C:"ytp-gated-actions-overlay-title",RV:"{{title}}"},{D:"div",C:"ytp-gated-actions-overlay-subtitle", RV:"{{subtitle}}"}]},{D:"div",C:"ytp-gated-actions-overlay-button-container"}]}]});var u=this;this.api=Y;this.background=this.Xk("ytp-gated-actions-overlay-background");this.j=this.Xk("ytp-gated-actions-overlay-button-container");this.K=[];this.B(this.Xk("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){u.api.Yw("onCloseMiniplayer")}); this.hide()}; P6W=function(Y,u){var n=0;n=0;for(var U={};n k&&(k=S.width,m="url("+S.url+")")}n.background.style.backgroundImage=m;P6W(n,U.actionButtons||[]);n.show()}else n.hide()}); g.uc(this.api,this.K.element,4)}; ya=function(Y){MA.call(this,Y);var u=this;vW(this.api,"getSphericalProperties",function(){return u.getSphericalProperties()}); vW(this.api,"setSphericalProperties",function(){u.setSphericalProperties.apply(u,g.Zu(g.It.apply(0,arguments)))}); cW(this.api,"getSphericalProperties",function(){return u.api.getPresentingPlayerType()===2?{}:u.getSphericalProperties()}); cW(this.api,"setSphericalProperties",function(){var n=g.It.apply(0,arguments);u.api.getPresentingPlayerType()!==2&&u.setSphericalProperties.apply(u,g.Zu(n))})}; Va=function(Y){MA.call(this,Y);of(Y,"createClientVe",this.createClientVe.bind(this));of(Y,"createServerVe",this.createServerVe.bind(this));of(Y,"destroyVe",this.destroyVe.bind(this));of(Y,"hasVe",this.hasVe.bind(this));of(Y,"logClick",this.logClick.bind(this));of(Y,"logVisibility",this.logVisibility.bind(this));of(Y,"setTrackingParams",this.setTrackingParams.bind(this))}; OS=function(Y,u,n,U){function k(X){var S=!(X.status!==204&&X.status!==200&&!X.response),C;X={succ:""+ +S,rc:X.status,lb:((C=X.response)==null?void 0:C.byteLength)||0,rt:((0,g.j2)()-m).toFixed(),shost:g.fo(Y),trigger:u};C6M(X,Y);n&&n(X);U&&!S&&U(new g.iO("pathprobe.net",X))} var m=(0,g.j2)();g.Ak(Y,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:k,onTimeout:k})}; C6M=function(Y,u){var n;((n=window.performance)==null?0:n.getEntriesByName)&&(u=performance.getEntriesByName(u))&&u.length&&(u=u[0],Y.pedns=(u.domainLookupEnd-u.startTime).toFixed(),Y.pecon=(u.connectEnd-u.domainLookupEnd).toFixed(),Y.perqs=(u.requestStart-u.connectEnd).toFixed(),f5B&&(Y.perqsa=u.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; QsW=function(Y){f5B=Y}; F2=function(Y,u){this.hR=Y;this.policy=u;this.playbackRate=1}; NKB=function(Y,u){var n=Math.min(2.5,yF(Y.hR));Y=JO(Y);return u-n*Y}; qA=function(Y,u,n,U,k){k=k===void 0?!1:k;if(Y.policy.OG)return Math.ceil(Y.policy.OG*u);Y.policy.cD&&(U=Math.abs(U));U/=Y.playbackRate;var m=1/FM(Y.hR);n=Math.max(.9*(U-3),yF(Y.hR)+Y.hR.j.K*m)/m*.8/(u+n);n=Math.min(n,U);Y.policy.ZN>0&&k&&(n=Math.max(n,Y.policy.ZN));return iqY(Y,n,u)}; iqY=function(Y,u,n){return Math.ceil(Math.max(Math.max(Y.policy.z3,Y.policy.MU*n),Math.min(Math.min(Y.policy.JJ,31*n),Math.ceil(u*n))))||Y.policy.z3}; ZqW=function(Y,u,n){n=qA(Y,u.K.info.NF,n.K.info.NF,0);var U=yF(Y.hR)+n/FM(Y.hR);return Math.max(U,U+Y.policy.v7-n/u.K.info.NF)}; JO=function(Y){return FM(Y.hR,!Y.policy.ET,Y.policy.Dn)}; aP=function(Y){return JO(Y)/Y.playbackRate}; $X=function(Y,u,n){var U=Y.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],k=Y.policy.playbackStartPolicy.startMinReadaheadPolicy||[];Y=Infinity;u=g.A(u&&U.length>0?U:k);for(U=u.next();!U.done;U=u.next())U=U.value,k=U.minReadaheadMs||0,n<(U.minBandwidthBytesPerSec||0)||Y>k&&(Y=k);return Y0&&(this.j=n.N5)}; Mfm=function(Y,u,n,U,k){if(!U.info.G){if(n.length===0)n.push(U);else{var m;(Y=(m=n.pop())==null?void 0:g.tU(m,U))?n.push(Y):n.push(U)}return k}var X;(n=(X=n.pop())==null?void 0:g.tU(X,U))||(n=U);if(n.info.j)return Y.logger&&Y.logger({incompleteSegment:n.info.RH()}),k;U=Y.hx(n);k=U.Wz;U={clipId:U.clipId,formatId:U.formatId,startTimeMs:U.startTimeMs,durationMs:U.Zh,tV:k,sX:k};k=TKu(u,U.startTimeMs);if(m=n=k>=0?u[k]:null){m=U;var S=k;X=n.startTimeMs+n.durationMs;var C=m.startTimeMs+m.durationMs;if(m.startTimeMs- X>Y.j)m=!1;else if(rdG(Y,n.formatId,m.formatId))n.durationMs=Math.max(X,C)-n.startTimeMs,n.sX=Math.max(n.sX,m.sX),m=!0;else if(Math.abs(n.startTimeMs-m.startTimeMs)<=Y.j)if(n.durationMs>m.durationMs+Y.j){var f=n.formatId,Q=n.tV;S=n.sX;n.formatId=m.formatId;n.durationMs=m.durationMs;n.tV=m.tV;n.sX=m.sX;m.formatId=f;m.startTimeMs=C;m.durationMs=X-C;m.tV=Q;m.sX=S;m=!1}else n.formatId=m.formatId,m=!0;else X>m.startTimeMs&&(X>C&&(u.splice(S+1,0,{formatId:n.formatId,startTimeMs:C,durationMs:X-C,tV:m.sX+ 1,sX:n.sX}),Y.logger&&Y.logger({splitOldStart:(f=n.startTimeMs)==null?void 0:f.toFixed(3),splitOldEnd:X==null?void 0:X.toFixed(3),splitNewStart:(Q=m.startTimeMs)==null?void 0:Q.toFixed(3),splitNewEnd:C==null?void 0:C.toFixed(3)})),n.durationMs=m.startTimeMs-n.startTimeMs,n.sX=m.tV-1),m=!1}m?U=n:(k+=1,u.splice(k,0,U));f=0;for(Q=k+1;Q=C+n.j?n=!0:S+n.j=0?Y:-Y-2}; sst=function(Y,u){if(Y.SE){var n=Y.SE.v4();if(n.length!==0){if(Y.X&&u){var U=Y.X,k=U.info.J;!XT(n,k)&&U.info.Z>0&&(0,g.j2)()-Y.W<5E3&&(Y.logger&&Y.logger({dend:U.info.RH()}),n=xGA(n,k,k+.01))}Y.policy.Iq&&Y.logger&&Y.logger({cbri:""+Y.K});U=[];for(var m=k=0;k=X){var Q=Object.assign({},Y.N1[m]),N=Y.VF.X.get(Jg(Y.N1[m].formatId)),Z=Math.max(C,X);X=N.index.x$(Z+Y.j/ 1E3);C=N.index.getStartTime(X);var T=X+ +(Math.abs(C-Z)>Y.j/1E3);Z=T+Y.G;T=N.index.getStartTime(T)*1E3;m!==Y.K||u?(Q.tV=Z,Q.startTimeMs=T):(Y.logger&&Y.logger({pEvict:"1",og:Q.startTimeMs,adj:C*1E3}),Q.tV=X+Y.G,Q.startTimeMs=C*1E3);X=void 0;C=((X=Y.X)==null?void 0:X.info.duration)||11;m===Y.K&&SY.j/1E3);X=C+Y.G;N=N.index.FB(C)*1E3;Q.sX=X;Q.durationMs=N-Q.startTimeMs;Q.tV<=Q.sX&&U.push(Q)}f=0&&mZ(Y.audioTrack,Y.targetTime)>=0&&m?((Y.videoTrack.J||Y.audioTrack.J)&&Y.loader.fG("iterativeSeeking",{status:"done",count:Y.seekCount}),Y.videoTrack.J=!1,Y.audioTrack.J=!1):U&&g.KH(function(){if(Y.K||!Y.policy.Ru)C$(Y);else{var X=u.startTime,S=u.duration;if(!Y.policy.J){var C=n?Y.videoTrack.J:Y.audioTrack.J,f=Y.videoTrack.W!==-1&&Y.audioTrack.W!==-1,Q=Y.targetTime>=X&&Y.targetTime432E3&&h0c(Y.VF);Y.j&&(k=Y.j,Y.j=0);g.KH(function(){Y.policy.J||f$(Y,k,102)}); Y.loader.fG("initManifestlessSync",{st:k,ost:k+Y.loader.iN(),a:Y.audioTrack.W,v:Y.videoTrack.W});Y.X&&(Y.X.resolve(k+.1),Y.X=null);Y.policy.J&&f$(Y,k,102)}}}; i_=function(Y,u){var n=this;this.Xs=Y;this.requestNumber=++RoW;this.K=this.now();this.Z=this.N=NaN;this.S=this.K;this.X=this.CT=this.J=0;this.W=this.K;this.Pz=this.oV=this.MF=this.Ub=this.eE=this.DW=this.j=this.G=0;this.KG=this.isActive=!1;this.Gw=this.Uc=0;this.IH={sXc:function(){return n.ID}}; this.hR=u.hR;this.snapshot=BuA(this.hR);this.policy=this.hR.j;this.Ft=!!u.Ft;this.hq=u.hq;this.H2=u.H2||0;this.D0=u.D0||0;u.XI&&(this.rg=new hB);var U;this.ID=(U=u.ID)!=null?U:!1;this.Ft||pvm(this.hR)}; DTe=function(Y){Y.MF=Math.max(Y.MF,Y.J-Y.eE);Y.oV=Math.max(Y.oV,Y.S-Y.Ub);Y.DW=0}; ZS=function(Y,u,n){Lbu(Y.hR,u);Y.rg&&(Y.rg.add(Math.ceil(u)-Math.ceil(Y.S)),Y.rg.add(Math.max(0,Math.ceil(n/1024)-Math.ceil(Y.J/1024))));var U=u-Y.S,k=n-Y.J;Y.CT=k;Y.Pz=Math.max(Y.Pz,k/(U+.01)*1E3);Y.S=u;Y.J=n;Y.DW&&n>Y.DW&&DTe(Y)}; T2=function(Y,u){Y.url=u;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; rP=function(Y,u){i_.call(this,Y,u);this.Ru=this.lN=!1;this.Fk=this.jG=Infinity;this.JJ=NaN;this.nT=!1;this.dg=NaN;this.Qm=this.CG=this.zZ=0;this.bI=u.bI||1;this.qC=u.qC||this.bI;this.FS=u.FS;this.Wz=u.Wz;this.Ka=u.Ka;xTG(this);this.zM(this.K);this.Iu=(this.dg-this.K)/1E3}; l5M=function(Y){var u=Y.CG||Y.zZ;return u?Y.snapshot.delay+Math.min(Y.D0,(Y.Z-Y.N)/1E3)+u:Y.Iu}; M1=function(Y,u,n){if(!Y.Ft){u=Math.max(u,.01);var U=Y.H2?Math.max(u,n/Y.H2):u,k=Y.hR.j.X;k&&(U=u,Y.H2&&(U=Math.max(u,n/Y.H2*k)));zN(Y.hR,u,n,U)}}; ho0=function(Y){return(Y.W-Y.K)/1E3}; xTG=function(Y){Y.JJ=Y.K+Y.snapshot.delay*1E3;Y.nT=!1}; s5=function(Y,u){if(Y.FS&&Y.Wz!==void 0&&Y.Ka!==void 0){var n=Math,U=n.min,k=Y.jG;var m=Y.FS;var X=Y.K;if(w5W(m,Y.Wz))m=u;else{var S=0;m.x8&&(S=.2);m=X+(m.D0+S)*1E3}Y.jG=U.call(n,k,m);n=Math;U=n.min;k=Y.Fk;m=Y.FS;X=Y.K;S=Wxd(m,Y.Wz,Y.Ka);S!==2&&(u=S?u:X+m.D0*1E3,m.x8&&(u+=m.D0*1E3));Y.Fk=U.call(n,k,u);Y.jG<=Y.K?xTG(Y):(Y.JJ=Y.jG,Y.nT=!0)}}; eou=function(Y,u){if(u+1<=Y.totalLength){var n=Si(Y,u);n=n<128?1:n<192?2:n<224?3:n<240?4:5}else n=0;if(n<1||!(u+n<=Y.totalLength))return[-1,u];if(n===1)Y=Si(Y,u++);else if(n===2)n=Si(Y,u++),Y=Si(Y,u++),Y=(n&63)+64*Y;else if(n===3){n=Si(Y,u++);var U=Si(Y,u++);Y=Si(Y,u++);Y=(n&31)+32*(U+256*Y)}else if(n===4){n=Si(Y,u++);U=Si(Y,u++);var k=Si(Y,u++);Y=Si(Y,u++);Y=(n&15)+16*(U+256*(k+256*Y))}else n=u+1,Y.focus(n),mc(Y,n,4)?Y=wNe(Y).getUint32(n-Y.X,!0):(U=Si(Y,n+2)+256*Si(Y,n+3),Y=Si(Y,n)+256*(Si(Y,n+1)+ 256*U)),u+=5;return[Y,u]}; dP=function(Y){this.Xs=Y;this.K=new un}; G2=function(Y,u){this.info=Y;this.callback=u;this.state=1;this.QD=this.R1=!1;this.fk=null}; bqM=function(Y){return g.GZ(Y.info.mq,function(u){return u.type===3})}; AX=function(Y,u,n,U){var k=this;U=U===void 0?{}:U;this.policy=u;this.Xs=n;this.status=0;this.K=new un;this.j=0;this.gg=this.G=this.X=!1;this.xhr=new XMLHttpRequest;this.xhr.open(U.method||"GET",Y);if(U.headers)for(Y=U.headers,u=g.A(Object.keys(Y)),n=u.next();!n.done;n=u.next())n=n.value,this.xhr.setRequestHeader(n,Y[n]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return k.SH()}; this.xhr.onload=function(){return k.onDone()}; this.xhr.onerror=function(){return k.onError()}; this.xhr.fetch(function(m){k.K.append(m);k.j+=m.length;m=(0,g.j2)();k.Xs.Eh(m,k.j)},function(){},U.body||null)}; I5e=function(Y,u){this.j=(new TextEncoder).encode(Y);this.K=(new TextEncoder).encode(u)}; zmG=function(Y,u){var n;return g.l(function(U){if(!u)return U.return(u);n=new g.Cm(Y.j);return U.return(n.encrypt(u,Y.K))})}; VzW=function(Y,u){var n;return g.l(function(U){if(U.j==1){if(!u)return U.return(u);n=new g.Cm(Y.j);return g.D(U,n.decrypt(u,Y.K),2)}return U.return(U.K)})}; gpu=function(Y,u){var n=this;this.K=Y;this.Xs=u;this.loaded=this.status=0;this.error="";Y=$E(this.K.get("range")||"");if(!Y)throw Error("bad range");this.range=Y;this.j=new un;zoM(this).then(function(){n.Xs.Bs()},function(U){n.error=""+U||"unknown_err"; n.Xs.Bs()})}; zoM=function(Y){var u,n,U,k,m,X,S,C,f,Q,N,Z,T,r,K;return g.l(function(L){if(L.j==1){Y.status=200;u=Y.K.get("docid");n=vp(Y.K.get("fmtid")||"");U=Y.K.get("lmt")||"0";k=+(Y.K.get("csz")||0);if(!u||!n||!k)throw Error("Invalid local URL");Y.K.get("ck")&&Y.K.get("civ")&&(m=new I5e(Y.K.get("ck"),Y.K.get("civ")));X=Y.range;S=Math.floor(X.start/k);C=Math.floor(X.end/k);f=S}if(L.j!=5)return f<=C?g.D(L,OUd(u,n,U,f,m),5):L.qF(0);Q=L.K;if(Q===void 0)throw Error("invariant: data is undefined");N=f*k;Z=(f+1)*k; T=Math.max(0,X.start-N);r=Math.min(X.end+1,Z)-(T+N);K=new Uint8Array(Q.buffer,T,r);Y.j.append(K);Y.loaded+=r;Y.loaded=400?(Y.lastError="net.badstatus",!0):(k===void 0?0:k)?(Y.lastError="ump.spsrejectfailure",!0):n||U!==void 0&&U?!1:(Y.lastError=u===204?"net.nocontent":"net.connect",!0)}; vU=function(Y,u){if(Y.policy.WG)return!1;var n=u.getResponseHeader("content-type"),U=u.UN();Y=!U||U<=Y.policy.cL;return(!u.Aq()||!n||n.indexOf("text/plain")!==-1)&&Y}; a5G=function(Y,u){var n="";u=u.KB();u.totalLength<=Y.policy.cL&&(n=qdt(Y,X5(u)));return n}; qdt=function(Y,u){var n=fG(u);return bA(n)?(Y.logger.debug(function(){return"Redirecting to "+n}),n):""}; tX=function(Y){return EX(Y.X,Jd(Y.Xf.Sp))}; $T0=function(Y){var u=Y.timing.Tm();u.shost=Jd(Y.Xf.Sp);return u}; YXS=function(Y,u){return(Y==null?void 0:Y.maxWidth)>(u==null?void 0:u.maxWidth)||(Y==null?void 0:Y.maxHeight)>(u==null?void 0:u.maxHeight)}; ute=function(Y,u){for(var n=g.A(u.keys()),U=n.next();!U.done;U=n.next())if(U=u.get(U.value),U.length!==0){g.VC(U,function(S,C){return C.maxFramerate-S.maxFramerate}); for(var k=[U[0]],m=0,X=1;XY.K||n.push(U)}return n}; R5=function(Y,u,n){var U=kpm[Y]||[];n.V("html5_shorts_onesie_mismatched_fix")&&(U=mz0[Y]||[]);u.push.apply(u,g.Zu(U));n.V("html5_early_media_for_drm")&&u.push.apply(u,g.Zu(XeA[Y]||[]))}; NRu=function(Y,u){var n=g.lR(Y),U=Y.Y(),k=U.J;U=U.V("html5_shorts_onesie_mismatched_fix");var m=Y.Oe();if(U){if(!k.j){if(m&&DS)return DS;if(xb)return xb}}else if(xb&&!k.j)return xb;var X=[],S=[],C={},f=l_.concat(PwB);U&&(f=l_.concat(SXu));Y.V("html5_early_media_for_drm")&&(f=f.concat(CwM),Y.V("allow_vp9_1080p_mq_enc")&&f.push(f4e));var Q=[].concat(g.Zu(Qlu));Y.V("html5_iamf_audio_onesie_fmt")&&Q.push(["773"]);f=g.A(f);for(var N=f.next();!N.done;N=f.next()){var Z=!1;N=g.A(N.value);for(var T=N.next();!T.done;T= N.next()){T=T.value;var r=lo(T,m&&U);if(r&&r.video&&!(yg(r)&&!n.DW&&r.video.qualityOrdinal>n.nU)){var K=g.YF(Y.Y().experiments,"html5_drm_byterate_soft_cap");K>0&&RH7(r)&&r.NF>K||(Z?(X.push(T),R5(T,X,Y)):(r=b6(n,r,k),r===!0?(Z=!0,X.push(T),R5(T,X,Y)):C[T]=r))}}}Q=g.A(Q);for(f=Q.next();!f.done;f=Q.next())for(f=g.A(f.value),Z=f.next();!Z.done;Z=f.next())if(Z=Z.value,(N=$ud(Z))&&N.audio&&(Y.V("html5_onesie_51_audio")||!Vg(N)&&!OP(N)))if(N=b6(n,N,k),N===!0){S.push(Z);R5(Z,S,Y);break}else C[Z]=N;if(!Y.V("html5_enable_audio_quality_setting"))for(Y= g.A(["141","774"]),Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,S.includes(Q)&&(g.pR(S,Q),C[Q]="blkhqa");n.j&&u("orfmts",C);if(U)return k.j&&(k.j=!1,DS=xb=void 0),m?DS={video:X,audio:S}:xb={video:X,audio:S};xb={video:X,audio:S};k.j=!1;return xb}; g.TRY=function(Y,u,n){var U=n.J,k=[],m=[],X=n.V("html5_shorts_onesie_mismatched_fix");Y=Y.Oe();var S=l_.concat(PwB);X&&(S=l_.concat(SXu));n.V("html5_early_media_for_drm")&&(S=S.concat(CwM),n.V("allow_vp9_1080p_mq_enc")&&S.push(f4e));var C=[].concat(g.Zu(Qlu));n.V("html5_iamf_audio_onesie_fmt")&&C.push(["773"]);S=g.A(S);for(var f=S.next();!f.done;f=S.next()){f=g.A(f.value);for(var Q=f.next();!Q.done;Q=f.next()){Q=Q.value;var N=lo(Q,Y&&X);if(N&&N.video){var Z=g.YF(n.experiments,"html5_drm_byterate_soft_cap"); if(!(Z>0&&RH7(N)&&N.NF>Z)&&b6(u,N,U)===!0){k.push({videoCodec:i4M[bO[Q]],maxWidth:N.video.width,maxHeight:N.video.height,maxFramerate:N.video.fps});break}}}}X=g.A(C);for(Y=X.next();!Y.done;Y=X.next())for(Y=g.A(Y.value),C=Y.next();!C.done;C=Y.next())if(C=C.value,(S=$ud(C))&&S.audio&&(n.V("html5_onesie_51_audio")||!Vg(S)&&!OP(S))&&b6(u,S,U)===!0){m.push({audioCodec:Z4B[bO[C]],numChannels:S.audio.numChannels});break}return{videoFormatCapabilities:k,audioFormatCapabilities:m}}; sle=function(Y){var u,n={},U=Y.IV,k=Y.GZ,m=U.getVideoData(),X=sd(0),S=U.getVisibilityState(),C;if((C=Y.Ex)==null?0:C.FY)n.vk=k.vk;X&&(n.Mk=X,n.lastManualDirection=F2c(),X=gWY()||0,X>0&&(X=(k.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.j2)())-X,k.V("html5_use_date_now_for_local_storage")?X>0&&(n.timeSinceLastManualFormatSelectionMs=X):n.timeSinceLastManualFormatSelectionMs=X));X=k.V("html5_use_streamer_bandwidth_for_low_latency_live")&&m.isLowLatencyLiveStream;if(k.schedule.KG&&!X){var f; X=k.V("html5_disable_bandwidth_cofactors_for_sabr_live")?!((f=Y.Ex)==null||!f.ET):!1;n.pj=FM(k.schedule,!X)}X=g.hn.medium;C=Math.floor(X*16/9);(f=m.Oe())||(m.K&&m.X&&m.X.videoInfos.length!==0?(f=m.X.videoInfos[0],f=!!f.video&&f.video.width0?{authorizedFormats:Y.authorizedFormats}:{authorizedFormats:u};Y.sabrLicenseConstraint&&(n.HR.sabrLicenseConstraint=Y.sabrLicenseConstraint);if(k.V("html5_onesie_media_capabilities")||k.V("html5_enable_server_format_filter"))n.QT= 3;k.V("html5_onesie_audio_only_playback")&&v2(m)&&(n.QT=1);var R;((R=Y.Ex)==null?0:R.yY)&&Y.GU&&(n.QT=n.QT===void 0?7:n.QT|4);R=m.sx?m.sx:g.lR(m);k.V("html5_onesie_media_capabilities")&&(n.mediaCapabilities=g.TRY(m,R,k));var c;if((c=Y.Ex)==null?0:hX(c)){N=k.J;c=[];u=[];Z=new Map;T=Array.from(N.K.values());T=g.A(T);for(r=T.next();!r.done;r=T.next())K=r.value,K.HW?u.push({audioCodec:Z4B[K.aV],numChannels:K.numChannels,spatialCapabilityBitmask:rgM[K.aV]}):(L=i4M[K.aV],r={videoCodec:L,maxWidth:K.maxWidth|| 0,maxHeight:K.maxHeight||0,maxFramerate:K.maxFramerate||0,is10BitSupported:K.ZG||!1},K.maxBitrateBps&&(r.maxBitrateBps=K.maxBitrateBps,S=lo(K.itag),f=void 0,((f=S)==null?0:f.video)&&b6(R,S,N)===!0&&(S=S.NF*8,S>r.maxBitrateBps&&(r.maxBitrateBps=S))),K=L+"_"+K.ZG,L=Z.get(K)||[],L.push(r),Z.set(K,L));c=ute(c,Z);N={};k.V("html5_ssff_denylist_opus_low")&&(N={itagDenylist:[249,350]});n.mediaCapabilities={videoFormatCapabilities:c,audioFormatCapabilities:u,hdrModeBitmask:3,perPlaybackAttributes:N}}var x; if((x=Y.Ex)==null?0:x.K){n.Q_=R.Q_;var W;n.nU=(W=Y.Ex)==null?void 0:W.nU}k.VI&&(n.Qt=k.VI);n.MC=Y.xK;n.XE=Y.XE;n.GO=Y.GO;n.Qx=Y.Qx;Y.wY&&(n.VMa=(0,g.j2)()-Y.wY);Y.isPrefetch&&k.V("html5_report_prefetch_requests")&&(n.isPrefetch=!0);GN||(n.GZa=!0);x=yF(k.schedule)*1E3;x>0&&(n.hW=x);var E;((E=Y.Ex)==null?0:E.rA)&&Y.NG&&Y.NG0?J:k.schedule.interruptions[0]||0;var O;if((O=Y.Ex)==null?0:O.lN)n.le=Y.le;k.dg&&(n.audioTrackId=k.dg);ZP(m)&&!n.audioTrackId&&(k.V("html5_fill_default_mosaic_audio_track_id")||(Y=FoB(m),n.audioTrackId=Y),m==null||m.fG("misstrkchg",{"default":n.audioTrackId}));if(m=thS())n.detailedNetworkType=MbM[m]||MbM.other;k.V("html5_enable_voice_boost")&&(n.htJ=k.mG);return n}; wP=function(Y,u,n,U,k,m,X){var S={};u&&(S.eH=u);if(!Y)return S;S.playbackCookie=n==null?void 0:n.playbackCookie;k&&(S.Ko=k);S.gE=[];S.BN=[];if(X==null?0:X.size)for(u=g.A(X.values()),n=u.next();!n.done;n=u.next())S.BN.push(n.value);if(Y.sabrContextUpdates.size>0)for(u=g.A(Y.sabrContextUpdates.values()),n=u.next();!n.done;n=u.next())dz7(S,n.value,U);xR(Y)&&m&&dz7(S,m,U);Y.dE&&(S.I0G=Y.dE);U=Y.Y().K;S.clientInfo={clientName:Gp0[U.c.toUpperCase()]||0};U.cbrand&&(S.clientInfo.deviceMake=U.cbrand);U.cmodel&& (S.clientInfo.deviceModel=U.cmodel);U.cver&&(S.clientInfo.clientVersion=U.cver);U.cos&&(S.clientInfo.osName=U.cos);U.cosver&&(S.clientInfo.osVersion=U.cosver);U=Y.Y();U.V("html5_sabr_enable_server_xtag_selection")&&U.UD&&(S.clientInfo.hl=U.UD);Y.Ij&&(S.Ij=Y.Ij);return S}; dz7=function(Y,u,n){var U=u.type||0;(n==null?0:n.has(U))?Y.BN.push(u):Y.gE.push(U)}; U5=function(Y,u,n,U,k,m){var X=m===void 0?{}:m;var S=X.tQ===void 0?[]:X.tQ;var C=X.IC===void 0?!1:X.IC;var f=X.Ju===void 0?0:X.Ju;var Q=X.poToken===void 0?"":X.poToken;var N=X.DX===void 0?void 0:X.DX;var Z=X.bZ===void 0?"":X.bZ;var T=X.HC===void 0?0:X.HC;var r=X.qX===void 0?new Uint8Array(0):X.qX;var K=X.bq===void 0?!1:X.bq;m=X.UA===void 0?0:X.UA;X=X.eH===void 0?void 0:X.eH;G2.call(this,u,k);var L=this;this.policy=Y;this.logger=new g.jW("dash/request");this.Py=this.Ab=0;this.Ui=!1;this.b5=this.EA= null;this.kG=!1;this.qX=this.HC=null;this.OL=this.y4=!1;this.k6=null;this.UA=this.PS=0;this.VZ=!1;this.IH={Ve:function(c){L.Ve(c)}, FOG:function(){return L.fk}, K8c:function(c){L.fk=c}, IfG:function(c){L.Ab=c}, x2c:function(c){L.DY.lastError=c}, YJ:function(){return L.xhr}}; this.timing=new rP(this,n);this.IC=C;this.HC=T;this.qX=r;this.Xf=g.N2(this.info,this.policy,U);this.Xf.set("rn",this.by().toString());this.Xf.set("rbuf",(f*1E3).toFixed().toString());this.IC&&this.Xf.set("smb","1");this.policy.pY&&Q&&this.Xf.set("pot",Q);Z&&this.Xf.set("bbs",Z);this.policy.useUmp&&!qT(this.Xf.Sp)&&(this.B2=new dP(this),this.Xf.set("ump","1"),this.Xf.set("srfvp","1"));if(Y=this.policy.Cb?this.policy.jk&&!isNaN(this.info.Ka)&&this.info.Ka>this.policy.ZZ?!1:!0:!1)u=null,this.policy.AQ&& this.policy.Im?u=[1]:K&&(u=[]),u!=null&&(this.policy.oP&&u.push(2),this.Xf.set("defsel",u.join(",")));this.DY=new L$(this,this.policy,this.Xf,this.info.uN,this.timing,this.logger,U,N);this.tQ=S||null;this.QD=Agt(this);Vf7(this.DY);U=void 0;if(this.policy.QK||this.B2||this.policy.MF)U={method:"POST"},S=(0,g.WU)([120,0]),N={},this.policy.BG&&X&&(X=wP(void 0,X),N.NV=X),this.policy.Ph&&this.qX&&(N.videoPlaybackUstreamerConfig=this.qX),this.policy.MF&&(X=this.info.G)&&Object.assign(N,X),Object.keys(N).length> 0?U.body=g.yw(N,g.Rk):U.body=S;if(this.HC&&this.qX){this.Xf.set("iwts","1");U={method:"POST"};X={Qx:this.HC*1E3};var R;S=(R=this.info.G)==null?void 0:R.g9;R=g.yw({EG:X,g9:S||void 0,videoPlaybackUstreamerConfig:this.qX},g.Rk);U.body=R}try{this.xhr=jq(this.Xf,this.policy.S,this.timing,Y,U),this.DY.j.start(),m&&(this.wF=new g.Vp(this.d6,m,this),this.wF.start(m+(this.timing.hR.Z.E6()||0)*1E3)),this.policy.jj&&T2(this.timing,this.Ff()),this.logger.debug(function(){return"Sent, itag="+L.Xf.get("itag")+ " seg="+L.info.mq[0].Wz+" range="+L.Xf.get("range")+" time="+Math.round(L.info.mq[0].J)+"-"+Math.round(g.MX(L.info.mq).W)+" rtp="+(L.timing.vx()-Date.now()).toFixed(0)}),g.KH(function(){})}catch(c){jlY(this,c,!0)}}; Agt=function(Y){if(!(QN(Y.info)&&Y.info.ID()&&Y.policy.Jr&&Y.tQ)||Y.info.uN.X>=2||sd()>0||!$VS())return!1;var u=Y.Xf.get("aitags");if(!u)return!1;u=vp(u).split(",");for(var n=[],U=g.A(Y.tQ),k=U.next();!k.done;k=U.next())k=k.value,g.jB(u,k)&&n.push(k);if(!n.length)return!1;Y.Xf.set("altitags",g.oD(n.join(",")));return!0}; jlY=function(Y,u,n){n=n===void 0?!1:n;g.tl(u);Y.DY.lastError="player.exception";Y.errorMessage=u.name+"_"+u.message;n?g.KH(function(){o5(Y.DY)}):o5(Y.DY)}; K9G=function(Y,u){Y.timing.KG=!0;Y.xhr.Aq()&&Y.timing.oo();if(Y.policy.Qe){var n;(n=Y.wF)==null||n.stop()}p$(Y.fk,u,!1)}; peM=function(Y,u){Y.info=u;if(Y.fk){var n=Y.fk;u=u.mq;(u.length!==n.mq.length||u.length0){u=g.A(u.mq);for(var n=u.next();!n.done;n=u.next()){var U=void 0;Y+=((U=n.value.range)==null?void 0:U.length)||0}return Y}if(u.qj.length>0)for(n=g.A(u.qj),U=n.next();!U.done;U=n.next())Y+=U.value.xg||0;return Y+u.TF}; yB=function(Y,u){if(gP){var n=0;Y=Y.JR.get(u);if(Y==null||!Y.F$)return 0;Y=g.A(Y.F$.values());for(u=Y.next();!u.done;u=Y.next())n+=u.value.data.totalLength;return n}return((n=Y.JR.get(u))==null?void 0:n.QI.totalLength)||0}; VB=function(Y,u){Y=Y.JR.get(u);if(gP){if(Y==null||!Y.TW)return!1;u=Y.F$.size>0;return Y.mD.length>0||u}return!(Y==null||!Y.TW)&&!(Y==null||!Y.QI.totalLength)}; vEd=function(Y,u){var n=Y.JR.get(u),U=cgd(Y,u),k=!U&&!!n.bytesReceived;if(gP){var m;if((m=Y.VF)==null?0:m.W$){Y=g.A(n.F$.values());for(u=Y.next();!u.done;u=Y.next())if(!u.value.Wh)return!1;return k}}else if(m=Y.Ln(u),k&&Y.K&&m!==void 0)return m;return(k||n.bytesReceived===U)&&n.wy+yB(Y,u)===n.bytesReceived}; Rwm=function(Y,u,n){Y.JR.set(u,{QI:new un,wy:0,bytesReceived:0,TF:0,CJ:!1,cW:!1,Ln:!1,HW:n,Xm:[],mq:[],qj:[],TW:!1,F$:new Map,s8:new Map,mD:[]});Y.logger.debug(function(){return"[initStream] formatId: "+u})}; Dzu=function(Y,u,n,U){n.mq.push.apply(n.mq,g.Zu(U));if(gP){n.s8.has(u)||n.s8.set(u,[]);var k;(k=n.s8.get(u)).push.apply(k,g.Zu(U))}else if(n.fk)for(Y=g.A(U),u=Y.next();!u.done;u=Y.next())n.fk.mq.push(u.value);else{n.fk=new K$(Y.Ex,[].concat(g.Zu(n.mq)));var m;((m=Y.Ex)==null?0:m.Yv)&&g.b(Y,n.fk)}}; xzG=function(Y,u,n){var U,k=(U=Y.VF)==null?void 0:U.X.get(u);if(!k)return[];if(n.AZ){var m;return((m=k.fn(0,n.clipId))==null?void 0:m.mq)||[]}if(k.GG()){var X=n.startMs,S=n.durationMs;U=1E3;var C;if(((C=Y.Ex)==null?0:C.K)&&n.timeRange){var f;X=(f=n.timeRange.startTicks)!=null?f:-1;var Q;S=(Q=n.timeRange.Ss)!=null?Q:-1;var N;U=(N=n.timeRange.timescale)!=null?N:-1}if(n.KZ<0||n.Ap<0||S<0||X<0||n.xg<0||U<0)return HU(Y,u),[];Y=Yh(n.KZ,n.xg);u=n.HF||0;return[new ny(3,k,Y,"makeSliceInfosMediaBytes",n.Ap- 1,X/U,S/U,u,Y.length-u,void 0,n.i4,n.clipId)]}if(n.Ap<0)return HU(Y,u),[];var Z;return((Z=Y.VF)==null?0:Z.W$)?(u=k.k8,C=u*k.info.NF,f=n.HF,((S=Y.Ex)==null?0:S.Xb)&&n.timeRange&&!f&&(X=n.timeRange.startTicks/n.timeRange.timescale),[new ny(3,k,void 0,"makeSliceInfosMediaBytes",n.Ap,X,u,f,C,!0,n.i4,n.clipId)]):[]}; l4A=function(Y,u,n){Y.VF=u;Y.Ex=n;u=g.A(Y.JR);for(n=u.next();!n.done;n=u.next()){var U=g.A(n.value);n=U.next().value;U=U.next().value;for(var k=g.A(U.Xm),m=k.next();!m.done;m=k.next()){m=m.value;var X=xzG(Y,n,m);Dzu(Y,m.d_,U,X)}}}; O5=function(Y,u,n,U){Y.logger.debug(function(){return"[addStreamData] formatId: "+n+",headerId: "+u+" bytes: "+U.totalLength}); (Y=Y.JR.get(n))&&!Y.cW&&(gP?(Y.F$.has(u)||Y.F$.set(u,{data:new un,ih:0,Wh:!1}),nG(Y.F$.get(u).data,U)):nG(Y.QI,U),Y.bytesReceived+=U.totalLength,Y.CJ=!0)}; E5=function(Y,u){Y.logger.debug(function(){return"[closeStream] formatId: "+u}); var n=Y.JR.get(u);if(n&&!n.cW){n.cW=!0;if(n.onProgress)n.onProgress();hwu(Y)&&Y.G.f5()}}; hwu=function(Y){Y=g.A(Y.JR.values());for(var u=Y.next();!u.done;u=Y.next())if(!u.value.cW)return!1;return!0}; weM=function(Y){gP=Y}; FR=function(Y,u,n,U,k,m,X){g.e.call(this);this.policy=Y;this.info=u;this.VF=n;this.Xs=k;this.logger=new g.jW("sabr");this.B2=new dP(this);this.P1=new I5(this);this.T4=new z2(this);this.state=1;this.v1=!1;this.Y3=0;this.clipId="";this.VN=-1;this.SA=0;this.Se=-1;this.VZ=this.uQ=!1;this.L5=0;this.J$=!1;this.policy.Zx?this.tR=new eq(this,m):this.tR=new rP(this,m);this.Xf=this.policy.lN?u.dS:W9c(u,this.policy,U);this.Xf.set("rn",""+this.by());this.Xf.set("alr","yes");l4A(this.T4,n,Y);this.DY=new L$(this, this.policy,this.Xf,u.uN,this.tR,this.logger,U,X,this.policy.enableServerDrivenRequestCancellation);Vf7(this.DY);var S;if((S=this.policy)==null?0:S.Yv)g.b(this,this.T4),g.b(this,this.DY);Y=u.j;u={method:"POST",body:Y};Y&&(this.SA=Y.length);try{this.xhr=jq(this.Xf,this.policy.S,this.tR,GN,u),this.policy.jj&&T2(this.tR,this.Ff()),this.DY.j.start()}catch(C){g.Br(C)}}; ewY=function(Y){Y.policy.lR&&Y.Ze&&!Y.J$?Y.J$=!0:Y.tR.oo()}; b4Y=function(Y,u){var n=-1,U=-1,k=-1,m;if((m=Y.TM)==null?0:m.items)for(Y=g.A(Y.TM.items),m=Y.next();!m.done;m=Y.next())m=m.value,u=S,C=Y.VF.isManifestless,X){var f;if(((f=Y.K)==null?void 0:f.hS.event)==="predictStart"&&Y.K.WzY.W&&(Y.W=NaN,Y.S=NaN);Y.K&&Y.K.Wz===u?nhM(Y,u,n,Y.K,k):Y.j===1&&$b(Y,5,"noad")}; U2m=function(Y,u,n,U,k){U.yb?$b(Y,4,"cue"):(Y.W=u,Y.S=n,Y.fG("sdai",{joinad:Y.j,sg:Y.W,st:Y.S.toFixed(3)}),Y.N=Date.now(),$b(Y,2,Y.j===3?"staftpred":"join"),k.nt(U.hS))}; nhM=function(Y,u,n,U,k){if(k&&U){var m=U.hS,X=k.ix(m);m.event==="predictStart"&&(Y.oV=u);Y.fG("sdai",{onqevt:m.event,sq:u,mt:n,gab:X,cst:m.startSecs,cueid:Y.policy.F2&&(X||m.event==="start")?m.identifier:void 0},!0);if(X)m.event!=="predictStart"?(m.event==="start"&&Y.oV===u-1&&Y.fG("sdai",{gabonstart:u}),U2m(Y,u,n,U,k)):Y.policy.mW?$b(Y,3,"predict"):(u+=Math.max(Math.ceil(-m.K/5E3),1),m=Math.floor(n-m.K/1E3),Y.policy.j?Y.J=m:Y.G=u,Y.fG("sdai",{onpred:n,estsq:u,estmt:m.toFixed(3)}),Y7(Y.loader,m,m, u),Y.N=Date.now(),$b(Y,3,"predict"),k.nt(U.hS));else if(Y.j===1){var S;((S=Y.X)==null?0:S.ES(n))?(Y7(Y.loader,n,n,u),$b(Y,4,"sk2head")):$b(Y,5,"nogab")}else m.event==="predictStart"?Y.policy.j&&Y.J>0?(n=Math.floor(n-m.K/1E3),Y.J!==n&&Y.fG("sdai",{updateSt:n,old:Y.J}),Y.J=n):Y.G>0&&(n=u+Math.max(Math.ceil(-m.K/5E3),1),Y.G!==n&&(Y.fG("sdai",{updateSt:n,old:Y.G}),Y.G=n)):Y.policy.mW&&Y.j===3&&U2m(Y,u,n,U,k)}else Y.fG("sdai",{nulldec:1,sq:u,mt:n.toFixed(3),evt:(U==null?void 0:(m=U.hS)==null?void 0:m.event)|| "none"})}; m2m=function(Y,u,n){if(Y.policy.vg&&Y.policy.j)return!(Y.j===1||Y.j===2||!Y.policy.mW&&Y.j===3&&n>=Y.G);if(Y.j===1||Y.j===2)return!1;if(Y.j!==0&&u===Y.audioTrack){if(Y.policy.j)return kHG(Y.videoTrack,n)||kHG(Y.videoTrack,n+1);Y=u0(Y.videoTrack);if(n>(Y?Y.Wz:-1))return!1}return!0}; nF=function(Y,u,n){return(n<0||n===Y.W)&&!isNaN(Y.S)?Y.S:u}; a4A=function(Y,u){if(Y.K){var n=Y.K.hS.Ox-(u.startTime+Y.Z-Y.K.hS.startSecs);n<=0||(n=new Qv(Y.K.hS.startSecs-(isNaN(Y.Z)?0:Y.Z),n,Y.K.hS.context,Y.K.hS.identifier,"stop",Y.K.hS.K+u.duration*1E3),Y.fG("cuepointdiscontinuity",{segNum:u.Wz}),a5(Y,n,u.Wz))}}; $b=function(Y,u,n){Y.j!==u&&(Y.fG("sdai",{setsst:u,old:Y.j,r:n}),Y.j=u)}; Ue=function(Y,u,n,U){(U===void 0?0:U)?$b(Y,1,"seek"):u>0&&Math.abs(u-n)>=5&&Y.j===4&&$b(Y,5,"sk2t")}; X0Y=function(Y){this.fG=Y;this.K="";this.j=new Map}; PjM=function(Y,u,n,U){if(Y.j.has(u.identifier)){var k=Y.j.get(u.identifier);U=k7(k.event||"unknown");k7(u.event)>U&&(k.startTimeSecs=u.startSecs,k.Ox=u.Ox,k.event=u.event,U===k7("predictStart")&&(k.v5=Date.now()))}else k={event:u.event,startTimeSecs:u.startSecs,Ox:u.Ox,BA:[]},U&&(U=U.ix(u),k.v5=Date.now(),U?k.y5=5:(k.y5=2,k.r0="")),Y.j.set(u.identifier,k);Y.X&&n>-1&&n1E4?(Y.y5=1,!1):!0}; k7=function(Y){switch(Y){case "predictStart":return 1;case "start":return 2;case "continue":return 3;case "stop":return 4;default:return 0}}; Cje=function(Y){switch(Y){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; mr=function(Y,u,n){this.audio=Y;this.video=u;this.reason=n}; XO=function(Y,u,n){this.K=Y;this.reason=u;this.token=n;this.videoId=void 0}; PC=function(Y,u,n){g.e.call(this);this.policy=Y;this.G=u;this.fG=n;this.X=new Map;this.J=0;this.W=!1;this.K="";this.j=!1}; SH=function(Y,u,n){if(n===void 0?0:n)Y.W=!0;++Y.J;n=6E4*Math.pow(2,Y.J);n=(0,g.j2)()+n;Y.X.set(u.info.id,n)}; CF=function(Y){for(var u=g.A(Y.X.entries()),n=u.next();!n.done;n=u.next()){var U=g.A(n.value);n=U.next().value;U=U.next().value;U<(0,g.j2)()&&Y.X.delete(n)}return Y.X}; fLS=function(Y){return Y.W&&CF(Y).size>0}; fF=function(Y,u){Y.K!==u&&(Y.K=u,Y.j=!0)}; QCm=function(Y,u){var n;u&&(n=g.G$(Y.G.K,function(k){return k.id===u})); if(!n&&(n=g.G$(Y.G.K,function(k){var m;return!((m=k.dX)==null||!m.isDefault)}),u)){var U; Y.fG("iaf",{id:u,sid:(U=n)==null?void 0:U.id})}return n}; Nt=function(Y,u,n,U,k,m){var X=this;m=m===void 0?[]:m;this.loader=Y;this.jG=u;this.policy=n;this.VF=U;this.W=k;this.Pz=m;this.logger=new g.jW("dash/abr");this.K=MW;this.X=this.S=null;this.N=-1;this.Fk=!1;this.nextVideo=this.j=null;this.G=[];this.CG=new Set;this.MF={};this.dg=new WL(1);this.Z=0;this.zZ=this.oV=this.KG=!1;this.DW=0;this.TZ=!1;this.rg=new Set;this.JJ=!1;this.IH={tK:function(){Qr(X)}}; this.J=new PC(this.policy,k,function(S,C){X.loader.fG(S,C)})}; rUB=function(Y,u,n){i0(Y,u);u=QCm(Y.J,n);n||u||(u=NzG(Y));u=u||Y.W.K[0];Y.j=Y.VF.K[u.id];Qr(Y);Y.S=Y.j;iym(Y);ZyW(Y);Y.X=Y.nextVideo;Y.S=Y.j;return TzG(Y)}; d2d=function(Y,u){if(MWu(Y,u))return null;if(u.reason==="m"&&u.isLocked())return Y.logger.debug(function(){return"User sets constraint to: "+l6(u)}),i0(Y,u),Y.Z=Y.G.length-1,Qr(Y),Zt(Y),Y.oV=Y.oV||Y.X!==Y.nextVideo,Y.X=Y.nextVideo,new mr(Y.j,Y.X,u.reason); u.reason==="r"&&(Y.N=-1);i0(Y,u);Zt(Y);if(u.reason==="r"&&Y.nextVideo===Y.X)return new mr(Y.j,Y.nextVideo,u.reason);sCd(Y);return null}; GHY=function(Y,u,n){Y.j=Y.VF.K[u];Y.S=Y.j;return new mr(Y.S,Y.X,n?"t":"m")}; AUe=function(Y,u){if(u.info.video){if(Y.X!==u)return Y.X=u,TzG(Y)}else Y.zZ=Y.S!==u,Y.S=u;return null}; jCd=function(Y,u){if(u.K.info.video&&u.G){var n=(u.j+u.X)/u.duration,U=u.K.info.NF;n&&U&&(Y.dg.Vu(1,n/U),Y.policy.X&&n/U>1.5&&Y.loader.fG("overshoot",{sq:u.Wz,br:n,max:U}))}}; Tj=function(Y,u,n){SH(Y.J,u,n===void 0?!1:n);Y.N=-1;i0(Y,Y.K)}; K$A=function(Y,u){return new mr(Y.S,Y.X,u||Y.K.reason)}; sCd=function(Y){if(Y.X&&Y.nextVideo&&r8(Y,Y.X.info)Y.policy.nU,S=k<=Y.policy.nU?yg(U):zF(U);if(!m||X||S)n[k]=U}return n}; i0=function(Y,u){Y.K=u;var n=Y.W.videoInfos;if(!Y.K.isLocked()){var U=(0,g.j2)();n=g.BV(n,function(S){if(S.NF>this.policy.NF)return!1;var C=this.VF.K[S.id];return CF(this.J).get(S.id)>U?!1:C.uN.X>4||C.W>4?(this.logger.debug(function(){return"Remove "+nh(S)+"; 4 load failures"}),!1):this.rg.has(+S.itag)?!1:!0},Y); fLS(Y.J)&&(n=g.BV(n,function(S){return S.video.width<=854&&S.video.height<=480}))}n.length||(n=Y.W.videoInfos); var k=n;Y.policy.Fo&&(k=L$e(Y,k,u));k=g.BV(k,u.G,u);if(Y.K.isLocked()&&Y.J.K){var m=g.G$(n,function(S){return S.id===Y.J.K}); m?k=[m]:fF(Y.J,"")}Y.policy.Fo||(k=L$e(Y,k,u));k.length||(k=[n[0]]);k.sort(function(S,C){return r8(Y,S)-r8(Y,C)}); u={};for(n=1;nu.wi.video.width?(g.KR(k,n),n--):r8(Y,u.FR)*Y.policy.Z>r8(Y,u.wi)&&(g.KR(k,n-1),n--);var X=k[k.length-1];Y.TZ=!!Y.X&&!!Y.X.info&&Y.X.info.aV!==X.aV;Y.logger.debug(function(){return"Constraint: "+l6(Y.K)+", "+k.length+" fmts selectable, max selectable fmt: "+nh(X)}); Y.G=k;Y.CG.clear();u=!1;for(n=0;n=1080&&(u=!0);tWu(Y.policy,X,Y.VF.W$)}; L$e=function(Y,u,n){var U=n.reason==="m"||n.reason==="s";Y.policy.cG&&Mt&&g.Z0&&(!U||n.K<1080)&&(u=u.filter(function(f){return f.video&&(!f.j||f.j.powerEfficient)})); if(u.length>0)if(Tu()){var k=p00(Y,u);u=u.filter(function(f){return!!f&&!!f.video&&f.aV===k[f.video.qualityOrdinal].aV})}else{var m,X,S=(m=u[0])==null?void 0:(X=m.video)==null?void 0:X.qualityOrdinal; if(S){n=u.filter(function(f){return!!f&&!!f.video&&f.video.qualityOrdinal===S}); var C=p00(Y,n)[S].aV;u=u.filter(function(f){return!!f&&!!f.video&&f.aV===C})}}return u}; Bz7=function(Y,u){for(var n=0;n+1U}; Qr=function(Y){if(!Y.j||!Y.policy.G&&!Y.j.info.dX){var u=Y.W.K;Y.j&&(u=u.filter(function(U){return U.audio.K===Y.j.info.audio.K}),u.length||(u=Y.W.K)); Y.j=Y.VF.K[u[0].id];if(u.length>1&&!Y.policy.zZ){if(!Y.policy.FY){var n=g.G$(u,function(U){return U.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); n&&(Y.j=Y.VF.K[n.id])}n=!1;if(n=Y.policy.UD?!0:Y.K.isLocked()?Y.K.K<240:Bz7(Y,Y.j))Y.j=Y.VF.K[g.MX(u).id]}}}; Zt=function(Y){if(!Y.nextVideo||!Y.policy.G)if(Y.K.isLocked())Y.nextVideo=Y.K.K<=360?Y.VF.K[Y.G[0].id]:Y.VF.K[g.MX(Y.G).id],Y.logger.debug(function(){return"Select max fmt: "+nh(Y.nextVideo.info)}); else{for(var u=Math.min(Y.Z,Y.G.length-1),n=aP(Y.jG),U=r8(Y,Y.j.info),k=n/Y.policy.oV-U;u>0&&!(r8(Y,Y.G[u])<=k);u--);for(var m=n/Y.policy.Z-U;u=m);u++);Y.nextVideo=Y.VF.K[Y.G[u].id];Y.Z!==u&&Y.logger.info(function(){return"Adapt to: "+nh(Y.nextVideo.info)+", bandwidth: "+n.toFixed(0)+", bandwidth to downgrade: "+k.toFixed(0)+", bandwidth to upgrade: "+m.toFixed(0)+", constraint: "+l6(Y.K)}); Y.Z=u}}; iym=function(Y){var u=Y.policy.oV,n=aP(Y.jG),U=n/u-r8(Y,Y.j.info);u=g.Ay(Y.G,function(k){return r8(this,k)m?k=0:U[X]>Y.buffered[X]&&(X===m-1?k=2:X===m-2&&U[X+1]>Y.buffered[X+1]&&(k=3))}Y.K.add(u<<3|(n&&4)|k);u=Math.ceil(Y.track.jl()*1E3);Y.K.add(u-Y.J);Y.J=u;if(k===1)for(Y.K.add(m),X=u=0;X=2&&Y.K.add(U[m- 1]-Y.buffered[m-1]);n&&Y.K.add(n);Y.buffered=U}; Gj=function(Y,u,n){var U=this;this.policy=Y;this.K=u;this.DW=n;this.G=this.j=0;this.z4=null;this.KG=new Set;this.N=[];this.indexRange=this.initRange=null;this.Z=new Lh;this.oV=this.jG=!1;this.IH={u_G:function(){return U.X}, E5G:function(){return U.chunkSize}, l8G:function(){return U.S}, CJJ:function(){return U.W}}; (u=D2c(this))?(this.chunkSize=u.csz,this.X=Math.floor(u.clen/u.csz),this.S=u.ck,this.W=u.civ):(this.chunkSize=Y.CM,this.X=0,this.S=g.TS(16),this.W=g.TS(16));this.J=new Uint8Array(this.chunkSize);this.S&&this.W&&(this.crypto=new I5e(this.S,this.W))}; D2c=function(Y){if(Y.policy.WC&&Y.policy.l3)for(var u=g.A(Y.policy.WC),n=u.next(),U={};!n.done;U={bO:void 0,gI:void 0},n=u.next())if(n=g.Yo(n.value),U.bO=+n.clen,U.gI=+n.csz,U.bO>0&&U.gI>0&&Y.policy.G===n.docid&&Y.K.info.id===n.fmtid&&Y.K.info.lastModified===+n.lmt)return Y={},Y.clen=U.bO,Y.csz=U.gI,Y.ck=n.ck,Y.civ=n.civ,Y}; AT=function(Y){return!!Y.z4&&Y.z4.LU()}; hc0=function(Y,u){if(!AT(Y)&&!Y.gg()){if(!(Y.jG||(Y.jG=!0,Y.X>0))){var n=jH(Y);n=SX(Y.policy.G,Y.K.info,KF(Y),n,Y.policy.Pz);pF(Y,n)}if(u.info.type===1){if(Y.z4){LF(Y,Error("Woffle: Expect INIT slices to always start us off"));return}Y.initRange=Yh(0,u.j.totalLength)}else if(u.info.type===2)Y.z4&&Y.z4.type===1||LF(Y,Error("Woffle: Index before init")),Y.indexRange=Yh(Y.initRange.end+1,u.j.totalLength);else if(u.info.type===3){if(!Y.z4){LF(Y,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(Y.z4.type===3&&!m$(Y.z4,u.info)&&(Y.N=[],u.info.Wz!==XL(Y.z4)||u.info.j!==0))return;if(u.info.G){n=g.A(Y.N);for(var U=n.next();!U.done;U=n.next())x2u(Y,U.value);Y.N=[]}else{Y.N.push(u);Y.z4=u.info;return}}else{LF(Y,Error("Woffle: Unexpected slice type"));return}Y.z4=u.info;x2u(Y,u);lLd(Y)}}; x2u=function(Y,u){var n=0,U=X5(u.j);if(Y.G=U.length)return;if(n<0)throw Error("Missing data");Y.G=Y.X;Y.j=0}for(k={};n0){var X=U.getUint32(n+28);m+=X*16+4}var S=U.getUint32(n+m-4);try{var C=ILm(u.subarray(n+m,n+m+S));if(C!==null){var f=C;break a}}catch(Q){}}n+=k}f=null;break a}catch(Q){f=null;break a}f=void 0}if(f!=null)for(u=Me(Yl(f,7,void 0,xl)),u==null||Y.Kp||(Y.cryptoPeriodIndex=u),u=Me(Yl(f,10,void 0,xl)),u!=null&&u>0&& !Y.Kp&&(Y.K=u),f=PZ(f,2,tOc,void 0===vrW?2:4),f=g.A(f),U=f.next();!U.done;U=f.next())u=Y.X,n=u.push,U=wA(U.value),U=g.oE(U,4),n.call(u,U)}; ghc=function(Y){return isNaN(Y.cryptoPeriodIndex)?g.oE(Y.initData):""+Y.cryptoPeriodIndex}; or=function(Y,u,n){var U=n===void 0?{}:n;n=U.videoDuration===void 0?0:U.videoDuration;var k=U.xf===void 0?void 0:U.xf;U=U.yS===void 0?!1:U.yS;this.videoId=Y;this.status=u;this.videoDuration=n;this.xf=k;this.yS=U}; EhS=function(Y,u,n,U,k){this.videoId=Y;this.fl=u;this.j=n;this.bytesDownloaded=U;this.K=k}; cC=function(Y){this.K=Y;this.offset=0}; vC=function(Y){if(Y.offset>=Y.K.totalLength)throw Error();return Si(Y.K,Y.offset++)}; HyM=function(Y,u){u=u===void 0?!1:u;var n=vC(Y);if(n===1){u=-1;for(n=0;n<7;n++){var U=vC(Y);u===-1&&U!==255&&(u=0);u>-1&&(u=u*256+U)}return u}U=128;for(var k=0;k<6&&U>n;k++)n=n*256+vC(Y),U*=128;return u?n:n-U}; yU0=function(Y){try{var u=HyM(Y,!0),n=HyM(Y,!1);return{id:u,size:n}}catch(U){return{id:-1,size:-1}}}; VWB=function(Y){for(var u=new cC(Y),n=-1,U=0,k=0;!U||!k;){var m=yU0(u),X=m.id;m=m.size;if(X<0)return;if(X===176){if(m!==2)return;U=u.fY()}else if(X===186){if(m!==2)return;k=u.fY()}X===374648427?n=u.fY()+m:X!==408125543&&X!==174&&X!==224&&u.skip(m)}u=Pl(Y,0,n);n=new DataView(u.buffer);n.setUint16(U,3840);n.setUint16(k,2160);U=new un([u]);nG(U,Y);return U}; Oyc=function(Y,u,n){var U=this;this.loader=Y;this.policy=u;this.J=n;this.logger=new g.jW("dash");this.j=[];this.K=null;this.jG=-1;this.N=0;this.rg=NaN;this.KG=0;this.X=NaN;this.Z=this.Fk=0;this.TZ=-1;this.MF=this.G=this.W=this.DW=null;this.dg=this.zZ=NaN;this.S=this.oV=this.CG=this.Pz=null;this.Uc=!1;this.JJ=this.timestampOffset=0;this.IH={RU:function(){return U.j}}; if(this.policy.G){var k=this.J,m=this.policy.G;this.policy.Pz&&Y.fG("atv",{ap:this.policy.Pz});this.S=new Gj(this.policy,k,function(X,S,C){Rr(Y,new or(U.policy.G,2,{xf:new EhS(m,X,k.info,S,C)}))}); this.S.Z.promise.then(function(X){U.S=null;X===1?Rr(Y,new or(U.policy.G,X)):U.loader.fG("offlineerr",{status:X.toString()})},function(X){var S=(X.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); X instanceof tT&&!X.K?(U.logger.info(function(){return"Assertion failed: "+S}),U.loader.fG("offlinenwerr",{em:S}),Dt(U),Rr(Y,new or(U.policy.G,4))):(U.logger.info(function(){return"Failed to write to disk: "+S}),U.loader.fG("dldbwerr",{em:S}),Dt(U),Rr(Y,new or(U.policy.G,4,{yS:!0})))})}}; F$B=function(Y){return Y.j.length?Y.j[0]:null}; JUS=function(Y,u){return Y.j.some(function(n){return n.info.Wz===u})}; uMc=function(Y,u,n,U){U=U===void 0?0:U;if(Y.G){var k=Y.G.j+Y.G.X;if(n.info.j>0)if(n.info.Wz===Y.G.Wz&&n.info.j=0&&Y.G.Wz>=0&&!m$(Y.G,n.info))throw new g.zP("improper_continuation",Y.G.RH(),n.info.RH());sku(Y.G,n.info)||x7(Y,"d")}else if(n.info.j>0)throw new g.zP("continuation_of_null",n.info.RH());Y.G=n.info;Y.J=n.info.K;if(n.info.j===0){if(Y.K)if(!Y.loader.isOffline()||Y.policy.dO)Y.loader.fG("slice_not_fully_processed", {buffered:Y.K.info.RH(),push:n.info.RH()});else throw new g.zP("slice_not_fully_processed",Y.K.info.RH(),n.info.RH());l0(Y);Y.Fk=U}else{if(Y.Fk&&U&&Y.Fk!==U)throw Y=new g.zP("lmt_mismatch",n.info.Wz,Y.Fk,U),Y.level="WARNING",Y;!n.info.K.GG()&&Y.W&&(U=n.info,k=Y.W.VN,U.S="updateWithEmsg",U.Wz=k)}if(Y.K){U=g.tU(Y.K,n);if(!U)throw new g.zP("failed_to_merge",Y.K.info.RH(),n.info.RH());Y.K=U}else Y.K=n;a:{n=g.FC(Y.K.info.K.info);if(Y.K.info.type!==3){if(!Y.K.info.G)break a;Y.K.info.type===6?qTW(Y,u,Y.K): aLW(Y,Y.K);Y.K=null}for(;Y.K;){U=Y.K.j.totalLength;if(Y.jG<=0&&Y.N===0){var m=Y.K.j,X=-1;k=-1;if(n){for(var S=0;S+80))break;if(N!==408125543)if(N===524531317)S=!0,Q>=0&&(k=m.fY()+Q,C=!0);else{if(S&&(N===160||N===163)&&(X<0&&(X=f),C))break;N===163&&(X=Math.max(0,X),k=m.fY()+Q);if(N===160){X<0&&(k=X=m.fY()+ Q);break}m.skip(Q)}}X<0&&(k=-1)}if(X<0)break;Y.jG=X;Y.N=k-X}if(Y.jG>U)break;Y.jG?(U=$27(Y,Y.jG),U.J&&Ymt(Y,U),qTW(Y,u,U),hT(Y,U),Y.jG=0):Y.N&&(U=$27(Y,Y.N<0?Infinity:Y.N),Y.N-=U.j.totalLength,hT(Y,U))}}Y.K&&Y.K.info.G&&(hT(Y,Y.K),Y.K=null)}; aLW=function(Y,u){!u.info.K.GG()&&u.info.j===0&&(g.FC(u.info.K.info)||u.info.K.info.Kp())&&Ywm(u);if(u.info.type===1)try{Ymt(Y,u),n4Y(Y,u)}catch(k){g.tl(k);var n=P0(u.info);n.hms="1";Y.loader.handleError("fmt.unparseable",n||{},1)}n=u.info.K;n.UJ(u);Y.S&&hc0(Y.S,u);if(n.qa()&&Y.policy.K)a:{Y=Y.loader.VF;u=u.info.clipId;n=g.qO(n.info,Y.W$);if(u){var U=Jg({itag:n.itag,lmt:Y.W$?0:n.lmt||0,xtags:n.xtags});if(Y.TZ[U])break a;Y.TZ[U]=u}Y.zZ.push(n)}}; tfm=function(Y,u,n){if(Y.j.length!==0&&(n||Y.j.some(function(m){return m.info.J=WC(X)+S):u=Y.getDuration()>=X.getDuration(),u=!u;u&&mjY(n)&&(u=Y.DW,w8?(S=aF0(n),X=1/S,S=WC(Y,S),u=WC(u)+X-S):u=u.getDuration()- Y.getDuration(),u=1+u/n.info.duration,FQ0(g.Ly(n),u))}else{X=!1;Y.W||(Ywm(n),n.K&&(Y.W=n.K,X=!0,k=n.info,m=n.K.VN,k.S="updateWithEmsg",k.Wz=m,k=n.K,k.LU&&(m=Y.J.index,m.j=!k.LU,m.X="emsg"),k=n.info.K.info,m=g.Ly(n),g.FC(k)?K4(m,1701671783):k.Kp()&&Rl([408125543],307544935,m)));a:if((k=c0(n,Y.policy.eE))&&$Oc(n))S=XLW(Y,n),Y.Z+=S,k-=S,Y.KG+=k,Y.X=Y.policy.T3?Y.X+k:NaN;else{if(Y.policy.Ac){if(m=C=Y.loader.xT(g.B0(n),1),Y.X>=0&&n.info.type!==6){if(Y.policy.T3&&isNaN(Y.zZ)){g.Br(new g.zP("Missing duration while processing previous chunk", n.info.RH()));Y.loader.isOffline()&&!Y.policy.dO||PbM(Y,n,m);x7(Y,"m");break a}U=C-Y.X;var f=U-Y.Z,Q=n.info.Wz,N=Y.MF?Y.MF.Wz:-1,Z=Y.dg,T=Y.zZ,r=Y.policy.EO&&U>Y.policy.EO,K=Math.abs(f)>10,L=Math.abs(Y.X-m)<1E-7;if(Math.abs(f)>1E-4){Y.JJ+=1;var R=(S=Y.W)==null?void 0:Ew0(S);S={audio:""+ +Y.HW(),sq:Q.toFixed(),sliceStart:C,lastSq:N.toFixed(),lastSliceStart:Z,lastSliceDuration:T,totalDrift:(U*1E3).toFixed(),segDrift:(f*1E3).toFixed(),skipRewrite:""+ +(r||K)};if(R==null?0:R.length)S.adCpn=R[0];Y.loader.handleError("qoe.avsync", S);Y.TZ=Q}r||K||L||(m=Y.X);S=XLW(Y,n,C);k-=S;Y.Z=U+S}}else m=isNaN(Y.X)?n.info.startTime:Y.X;PbM(Y,n,m)&&(Y.KG+=k,Y.X=m+k,Y.policy.e3&&Y.JJ>=Y.policy.e3&&(Y.JJ=0,Y.loader.EY({resetForRewrites:"count"})))}Y.MF=n.info;Y.zZ=oC(n);n.X>=0&&(Y.dg=n.X);if(X&&Y.W){X=SmS(Y,!0);SW(n.info,X);Y.K&&SW(Y.K.info,X);u=g.A(u);for(S=u.next();!S.done;S=u.next())S=S.value,k=void 0,Y.policy.J&&S.Wz!==((k=Y.W)==null?void 0:k.VN)||SW(S,X);(n.info.G||Y.K&&Y.K.info.G)&&n.info.type!==6||(Y.oV=X,Y.policy.j?(u=CbY(Y.W),Y.loader.BF(Y.J, X,u)):(u=Y.loader,u.VF.isManifestless&&fU0(u,X,null,!!Y.J.info.video)),Y.policy.s6||QmS(Y))}}n4Y(Y,n);Y.timestampOffset&&JnW(n,Y.timestampOffset)}; hT=function(Y,u){if(u.info.G){Y.Pz=u.info;if(Y.W){var n=Y.W,U=SmS(Y,!1);n=CbY(n);Y.loader.BF(Y.J,U,n);Y.oV||Y.policy.s6||QmS(Y);Y.oV=null}l0(Y)}Y.S&&hc0(Y.S,u);if(U=Y.RF())if(U=g.tU(U,u,Y.policy.z1,Y.policy.kQ)){Y.j.pop();Y.j.push(U);return}Y.j.push(u)}; CbY=function(Y){if(Y.yb()){var u=Y.data["Stitched-Video-Id"]?Y.data["Stitched-Video-Id"].split(",").slice(0,-1):[],n=Ew0(Y),U=[];if(Y.data["Stitched-Video-Duration-Us"])for(var k=g.A(Y.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=k.next();!m.done;m=k.next())U.push((Number(m.value)||0)/1E6);k=[];if(Y.data["Stitched-Video-Start-Frame-Index"]){m=g.A(Y.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var X=m.next();!X.done;X=m.next())k.push(Number(X.value)||0)}k=[]; if(Y.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.A(Y.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),X=m.next();!X.done;X=m.next())k.push((Number(X.value)||0)/1E6);Y=new byc(u,n,U,k,g.H6Y(Y),g.yYu(Y))}else Y=null;return Y}; l0=function(Y){Y.K=null;Y.jG=-1;Y.N=0;Y.W=null;Y.rg=NaN;Y.KG=0;Y.oV=null}; x7=function(Y,u){u={rst4disc:u,cd:Y.Z.toFixed(3),sq:Y.MF?Y.MF.Wz:-1};Y.X=NaN;Y.Z=0;Y.TZ=-1;Y.MF=null;Y.dg=NaN;Y.zZ=NaN;Y.CG=null;Y.loader.fG("mdstm",u)}; n4Y=function(Y,u){if(Y.isDrm()){if(u.info.K.info.Kp()){var n=new L4(g.Ly(u));if(Be(n,[408125543,374648427,174,28032,25152,20533,18402])){var U=ve(n,!0);n=U!==16?null:hg(n,U)}else n=null;U="webm"}else u.info.N=W$A(g.Ly(u)),n=ecA(u.info.N),U="cenc";n&&n.length&&(n=new BC(n,U),Y.policy.HG&&g.FC(u.info.K.info)&&(U=uCW(g.Ly(u)))&&(n.j=U),n.Kp=u.info.K.info.Kp(),u.K&&u.K.cryptoPeriodIndex&&(n.cryptoPeriodIndex=u.K.cryptoPeriodIndex),u.K&&u.K.j&&(n.K=u.K.j),Y.loader.XJ(n))}}; QmS=function(Y){var u=Y.W,n=znY(u);n&&(n.startSecs+=Y.rg,Y.loader.sU(Y.J,n,u.VN,u.yb()))}; SmS=function(Y,u){var n,U=Y.W;if(n=znY(U))n.startSecs+=Y.rg;return new uw(U.VN,Y.rg,u?U.k8:Y.KG,U.ingestionTime,"sq/"+U.VN,void 0,void 0,u,n)}; PbM=function(Y,u,n){if(!FVM(u,n))return u=P0(u.info),u.smst="1",Y.loader.handleError("fmt.unparseable",u||{},1),!1;isNaN(Y.rg)&&(Y.rg=n);return!0}; XLW=function(Y,u,n){var U=0;if(u.info.K.info.Kp()&&!$Oc(u))return 0;if(Y.DW&&!Y.HW()){var k=0;n&&g.FC(u.info.K.info)?k=n-Y.X:u.info.K.info.Kp()&&(k=Y.Z);var m=u.info.Wz;n=c0(u,Y.policy.eE);var X=Y.DW;var S=X.TZ;X=X.Z;var C=Math.abs(X-k)>.02;if((m===S||m>S&&m>Y.TZ)&&C){U=Math.max(.95,Math.min(1.05,(n-(X-k))/n));if(g.FC(u.info.K.info))FQ0(g.Ly(u),U);else if(u.info.K.info.Kp()&&(m=k-X,!g.FC(u.info.K.info)&&(u.info.K.info.Kp(),U=new L4(g.Ly(u)),S=u.J?U:new L4(new DataView(u.info.K.K.buffer)),c0(u,!0)))){var f= m*1E3,Q=We(S);S=U.pos;U.pos=0;if(U.K.getUint8(U.pos)===160||eb(U))if(ce(U,160))if(ve(U,!0),ce(U,155)){if(m=U.pos,C=ve(U,!0),U.pos=m,f=f*1E9/Q,Q=D4(U),f=Q+Math.max(-Q*.7,Math.min(Q,f)),f=Math.sign(f)*Math.floor(Math.abs(f)),!(Math.ceil(Math.log(f)/Math.log(2)/8)>C)){U.pos=m+1;for(m=C-1;m>=0;m--)U.K.setUint8(U.pos+m,f&255),f>>>=8;U.pos=S}}else U.pos=S;else U.pos=S;else U.pos=S}U=c0(u,Y.policy.eE);U=n-U}U&&u.info.K.info.Kp()&&Y.loader.fG("webmDurationAdjustment",{durationAdjustment:U,videoDrift:k+U, audioDrift:X})}return U}; mjY=function(Y){return Y.info.K.GG()&&Y.info.Wz===Y.info.K.index.iD()}; WC=function(Y,u){u=(u=u===void 0?0:u)?Math.round(Y.timestampOffset*u)/u:Y.timestampOffset;Y.J.G&&u&&(u+=Y.J.G.K);return u+Y.getDuration()}; Na0=function(Y,u){u<0||(Y.j.forEach(function(n){JnW(n,u)}),Y.timestampOffset=u)}; n$=function(Y,u,n,U,k){G2.call(this,n,k);var m=this;this.policy=Y;this.formatId=u;this.T4=U;this.lastError=null;this.onProgress=function(){m.gg()||(m.T4.JR.has(m.formatId)?(m.isComplete()||m.K.start(),VB(m.T4,m.formatId)&&m.Ag(2),m.T4.cW(m.formatId)&&(vEd(m.T4,m.formatId)?m.Ve(4):(m.lastError="net.closed",m.Ve(5)))):(m.lastError="player.exception",m.Ve(5)))}; this.K=new g.Vp(function(){m.isComplete()||(m.lastError="net.timeout",m.Ve(5))},1E3); this.K.start();BRm(this.T4,this.formatId,this.onProgress);g.KH(this.onProgress)}; eH=function(Y,u,n,U){g.e.call(this);var k=this;this.loader=Y;this.policy=u;this.K=n;this.timing=U;this.logger=new g.jW("dash");this.X=[];this.DW=[];this.j=this.SE=null;this.CG=!1;this.Fk=this.JJ=0;this.W=-1;this.jG=!1;this.rg=-1;this.MF=null;this.oV=NaN;this.KG=[];this.IH={Mo:function(){return k.G}, GVF:function(){return k.X}, QFc:function(){return k.Z}}; this.G=new Oyc(Y,u,n);this.policy.K&&(this.Z=new Yb(this.G,this.loader.getManifest(),this.policy,function(m){k.policy.k5&&k.fG("buftl",m)})); this.policy.Qm&&(this.N=new se(this));this.NF=n.info.NF;this.S=this.policy.KG?!1:n.Uu();this.isManifestless=n.Uu();this.J=this.S;g.b(this,this.MF)}; b0=function(Y,u,n){n=n===void 0?!1:n;u&&w8&&Na0(Y.G,u.cB());if(!n){var U;(U=Y.Z)==null||jsc(U)}Y.SE=u;(u=Y.Z)!=null&&(u.SE=Y.SE)}; Ir=function(Y){var u=Y.SE&&Y.SE.Ep();if(Y.policy.T_){if((Y=Y.Z)==null)Y=void 0;else{var n;Y=(n=Y.X)==null?void 0:n.info}return Y||null}return u}; iDW=function(Y){for(var u={},n=0;n4&&Y.DW.shift()}; ZDS=function(Y,u){if(u.FT()){var n=u.Cu();n=g.A(n);for(var U=n.next();!U.done;U=n.next())U=U.value,Y.policy.X&&u instanceof n$&&Y.fG("omblss",{s:U.info.RH()}),g8(Y,u.info.mq,U,u.e8())}}; g8=function(Y,u,n,U){U=U===void 0?0:U;isNaN(Y.oV)||(Y.fG("aswm",{sq:u[0].Wz,id:u[0].K.info.itag,xtag:u[0].K.info.K,ep:Date.now()-Y.oV}),Y.oV=NaN);switch(n.info.type){case 1:case 2:TaB(Y,n);break;case 4:var k=n.info.K,m=k.j2(n),X;((X=Y.j)==null?0:X.type===4)&&LVd(n.info,Y.j)&&(Y.j=k.UH(Y.j).pop());n=g.A(m);for(k=n.next();!k.done;k=n.next())g8(Y,u,k.value,U);break;case 3:n.info.K.info.video?(k=Y.timing,k.rg||(k.rg=(0,g.j2)(),g.uq("fvb_r",k.rg,k.K))):(k=Y.timing,k.W||(k.W=(0,g.j2)(),g.uq("fab_r",k.W, k.K)));uMc(Y.G,u,n,U);Y.policy.K&&rBG(Y);break;case 6:uMc(Y.G,u,n,U),Y.j=n.info}}; TaB=function(Y,u){if(u.info.type===1)if(u.info.K.info.video){var n=Y.timing;n.Fk||(n.Fk=(0,g.j2)(),g.uq("vis_r",n.Fk,n.K))}else n=Y.timing,n.Z||(n.Z=(0,g.j2)(),g.uq("ais_r",n.Z,n.K));aLW(Y.G,u);Y=Y.loader;Y.videoTrack.K.qa()&&Y.audioTrack.K.qa()&&Y.policy.K&&!Y.VF.W$&&(u=Y.audioTrack.getDuration(),n=Y.videoTrack.getDuration(),Math.abs(u-n)>1&&Y.fG("trBug",{af:""+g.qO(Y.audioTrack.K.info,!1),vf:""+g.qO(Y.videoTrack.K.info,!1),a:""+u,v:""+n}))}; N1=function(Y){return F$B(Y.G)}; rBG=function(Y){Y.X.length?Y.j=g.MX(g.MX(Y.X).info.mq):Y.G.j.length?Y.j=Y.G.RF().info:Y.j=Ir(Y)}; Ee=function(Y,u){var n={N1:[],AU:[]},U;if((Y=Y.Z)==null)Y=void 0;else{AdM(Y,Y.N1,"og");sst(Y,u);AdM(Y,Y.N1,"trim");var k=GYu(Y);u=k.N1;k=k.yO;for(var m=[],X=0;X0){var Z=m4(N,C);Z>=0&&(Q=(N.end(Z)-C+.1)*1E3)}m.push({formatId:g.qO(S.info.K.info,Y.VF.W$), i4:S.info.i4,sequenceNumber:S.info.Wz+Y.G,Wx:f,O5:S.info.X,l7:Q})}Y={N1:u,AU:m}}return(U=Y)!=null?U:n}; mZ=function(Y,u,n){n=n===void 0?!1:n;if(Y.SE){var U=Y.SE.v4(),k=Pa(U,u),m=NaN,X=Ir(Y);X&&(m=Pa(U,X.K.index.getStartTime(X.Wz)));if(k===m&&Y.j&&Y.j.X&&MFB(HC(Y),0))return u}Y=smB(Y,u,n);return Y>=0?Y:NaN}; Sq=function(Y,u,n){Y.K.qa();var U=smB(Y,u);if(U>=0)return U;var k;(k=Y.Z)==null||dTB(k,u,n);U=Math;k=U.min;var m=Y.G;if(m.S)if(m=m.S,m.z4&&m.z4.type===3)m=m.z4.startTime;else if(m.X>0){var X=m.K.index;X=g.g$(X.offsets.subarray(0,X.count),m.X*m.chunkSize);m=m.K.index.getStartTime(X>=0?X:Math.max(0,-X-2))}else m=0;else m=Infinity;u=k.call(U,u,m);Y.j=Y.policy.KG?null:Y.K.h6(u).mq[0];yr(Y)&&(Y.policy.YE&&(n==null?void 0:n.seekSource)===60||Y.SE&&Y.SE.abort(),Y.policy.GH&&(n=Y.Z)!=null&&(n.X=void 0)); Y.Fk=0;return Y.j?Y.j.startTime:u}; p5u=function(Y){Y.S=!0;Y.J=!0;Y.W=-1;Sq(Y,Infinity)}; Vr=function(Y){for(var u=0,n=g.A(Y.X),U=n.next();!U.done;U=n.next())u+=BCu(U.value.info);return u+=Uju(Y.G)}; FO=function(Y,u){u=u===void 0?!1:u;var n=Y.loader.getCurrentTime(),U=Y.G.RF(),k=(U==null?void 0:U.info.W)||0;if((U==null?0:U.info.K.Uu())&&!U.info.G)if(Y.policy.d7)k=U.info.J;else if(Y.policy.DQ){var m=U.info;k=m.range?m.W:Math.min(m.startTime+Math.min(m.duration*m.j/m.K.info.NF,m.duration)+(m.range?m.Z:Math.min(m.duration,m.duration*m.X/m.K.info.NF)),m.startTime+m.duration)}if(!Y.SE)return Y.policy.K&&u&&!isNaN(n)&&U?k-n:0;if((m=Ir(Y))&&Oe(m))return m.W;var X=Y.SE.v4(!0);if(u&&U)return m=0,Y.policy.K&& (m=fh(X,k+.02)),m+k-n;u=fh(X,n);Y.policy.LM&&m&&(U=m4(X,n),X=m4(X,m.J-.02),U===X&&(n=m.W-n,Y.policy.X&&n>u+.02&&Y.fG("abh",{bh:u,bhtls:n}),u=Math.max(u,n)));return u}; djG=function(Y){var u=Ir(Y);return u?u.W-Y.loader.getCurrentTime():0}; GNd=function(Y,u){if(Y.X.length){if(Y.X[0].info.mq[0].startTime<=u)return;kb(Y)}for(var n=Y.G,U=n.j.length-1;U>=0;U--)n.j[U].info.startTime>u&&n.j.pop();rBG(Y);Y.j&&u=0;X--){var S=k.j[X];S.info.Wz>=u&&(k.j.pop(),k.X-=c0(S,k.policy.eE),m=S.info)}m&&(k.G=k.j.length>0?k.j[k.j.length-1].info:k.CG,k.j.length!==0||k.G||x7(k,"r"));k.loader.fG("mdstm",{rollbk:1,itag:m?m.K.info.itag:"",popped:m?m.Wz:-1,sq:u,lastslc:k.G?k.G.Wz:-1,lastfraget:k.X.toFixed(3)});if(Y.policy.K)return Y.j=null,!0;U>n?Sq(Y,U):Y.j=Y.K.J9(u-1,!1).mq[0]}catch(C){return u=TF(C),u.details.reason="rollbkerr", Y.loader.handleError(u.errorCode,u.details,u.severity),!1}return!0}; ar=function(Y,u){var n;for(n=0;n0?n||u.Wz>=Y.rg:n}; $7=function(Y){var u;return yr(Y)||Oe((u=Y.G.RF())==null?void 0:u.info)}; HC=function(Y){var u=[],n=Ir(Y);n&&u.push(n);u=g.vu(u,Y.G.Cd());n=g.A(Y.X);for(var U=n.next();!U.done;U=n.next()){U=U.value;for(var k=g.A(U.info.mq),m=k.next(),X={};!m.done;X={gB:void 0},m=k.next())X.gB=m.value,U.R1&&(u=g.BV(u,function(S){return function(C){return!LVd(C,S.gB)}}(X))),(kh(X.gB)||X.gB.type===4)&&u.push(X.gB)}Y.j&&!rnu(Y.j,g.MX(u),Y.j.K.GG())&&u.push(Y.j); return u}; MFB=function(Y,u){if(!Y.length)return!1;for(u+=1;u=u){u=m;break a}}u=k}return u<0?NaN:MFB(Y,n?u:0)?Y[u].startTime:NaN}; YL=function(Y){return!(!Y.j||Y.j.K===Y.K)}; AB0=function(Y){return YL(Y)&&Y.K.qa()&&Y.j.K.info.NFu&&Y.W1080&&!Y.Ir&&(Y.Fk=36700160,Y.Uc=5242880,Y.JJ=Math.max(4194304,Y.JJ),Y.Ir=!0);u.video.qualityOrdinal>2160&&!Y.K_&&(Y.Fk=104857600,Y.NF=13107200,Y.K_=!0);g.YF(Y.GZ.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?u.isEncrypted()&&g.Io()&&g.es("samsung")&&(g.es("kant")||g.es("muse"))&&(Y.NF=g.YF(Y.GZ.experiments,"html5_samsung_kant_limit_max_bitrate")):u.isEncrypted()&&g.Io()&&g.es("kant")&&(Y.NF=1310720);Y.jT!==0&&u.isEncrypted()&& (Y.NF=Y.jT);Y.OA!==0&&u.isEncrypted()&&n&&(Y.NF=Y.OA);u.NF&&(Y.Dn=Math.max(Y.z3,Math.min(Y.JJ,5*u.NF)))}; hX=function(Y){return Y.K&&Y.j3}; m1=function(Y){return Y.K&&Y.Vg&&Y.playbackStartPolicy}; Xa=function(Y,u,n,U){Y.Vg&&(Y.playbackStartPolicy=u,Y.Uw=n,Y.VP=U)}; kL=function(Y,u,n){n=n===void 0?0:n;return g.YF(Y.GZ.experiments,u)||n}; lUG=function(Y){var u=Y===void 0?{}:Y;Y=u.Im;var n=u.x8;var U=u.D0;var k=u.iD;u=u.I2;this.Im=Y;this.x8=n;this.D0=U;this.iD=k;this.I2=u}; w5W=function(Y,u){if(u<0)return!0;var n=Y.iD();return u0)return 2;if(u<0)return 1;n=Y.iD();return u(0,g.j2)()?0:1}; S9=function(Y,u,n,U,k,m,X,S,C,f,Q,N,Z,T){T=T===void 0?null:T;g.e.call(this);var r=this;this.loader=Y;this.policy=u;this.videoTrack=n;this.audioTrack=U;this.G=k;this.K=m;this.timing=X;this.J=S;this.schedule=C;this.VF=f;this.X=Q;this.KG=N;this.bq=Z;this.qX=T;this.oV=!1;this.bZ="";this.FS=null;this.Ka=NaN;this.jG=!1;this.j=null;this.HC=this.N=NaN;this.UA=this.W=0;this.logger=new g.jW("dash");this.IH={lY:function(K,L){return r.lY(K,L)}}; this.policy.UO>0&&(this.bZ=g.TS(this.policy.UO));this.policy.xa&&(this.Z=new Pt(this.loader,this.policy,this.schedule),g.b(this,this.Z))}; bDt=function(Y,u,n){var U=u.j?u.j.K.uN:u.K.uN;var k=Y.G,m;(m=!Y.policy.IP)||(m=Jd(U.K)===Jd(U.j));m?U=!1:(k=EX(k,Jd(U.j)),m=6E4*Math.pow(k.G,1.6),(0,g.j2)()=k.G?(k.fG("sdai",{haltrq:m+1,est:k.G}),U=!1):U=k.j!==2;if(!U||!Ft(u.j?u.j.K.uN:u.K.uN,Y.policy,Y.G,Y.loader.bA())||Y.loader.isSuspended&&(!JB(Y.schedule)||Y.loader.RN))return!1;if(Y.policy.G&&P2>=5)return g.OQ(Y.loader.Gk),!1;if(Y.VF.isManifestless){if(u.X.length>0&&u.j&&u.j.Wz===-1||u.X.length>=Y.policy.Z8||!Y.policy.Az&&u.X.length>0&&!Y.policy.S.x8)return!1;if(u.S)return!Y.VF.isLive|| !isNaN(Y.Ka)}if(tFB(u))return Y.logger.debug("Pending request with server-selectable format found"),!1;if(!u.j){if(!u.K.qa())return!1;Sq(u,Y.loader.getCurrentTime())}if(N1(u)&&(u.RF()!==N1(u)||Y.loader.isSuspended))return!1;k=(U=Y.policy.Yr)&&!u.X.length&&FO(u,!0)=Y.policy.d2)return!1;U=u.j;if(!U)return!0;U.type===4&&U.K.qa()&&(u.j=g.MX(U.K.UH(U)),U= u.j);if(!U.LU()&&!U.K.Mx(U))return!1;m=Y.VF.H4||Y.VF.G;if(Y.VF.isManifestless&&m){m=u.K.index.iD();var X=n.K.index.iD();m=Math.min(m,X);if(u.K.index.oE()>0&&m>0&&U.Wz>=m)return u.rg=m,n.rg=m,!1}if(U.K.info.audio&&U.type===4||U.LU())return!1;m=!u.J&&!n.J;if(k=!k)k=U.W,k=!!(n.j&&!Oe(n.j)&&n.j.WIUu(Y,u)?(IUu(Y,u),!1):(Y=u.SE)&&Y.isLocked()?!1:!0}; IUu=function(Y,u){var n=Y.K;n=n.K?n.K.hS:null;if(Y.policy.DW&&n)return n.startSecs+n.Ox+15;u=PU(Y.loader,u);Y.policy.nT>0&&(n=((0,g.j2)()-Y.loader.Yp)/1E3,u=Math.min(u,Y.policy.nT+Y.policy.KF*n));u=Y.loader.getCurrentTime()+u;return Y.policy.f_&&(n=zUd(Y.loader)+Y.policy.f_,n=0||u.uN.T7("defrag")==="1"||u.uN.T7("otf")==="1"){u=null;break a}k=Yh(0,4096)}k=new Cy([new ny(5,U.K,k,"createProbeRequestInfo"+U.S,U.Wz)],u.j);k.eQ=n;k.K=u.K;u=k}u&&fS(Y,u)}}; fS=function(Y,u){Y.loader.L9(u);var n=BCu(u),U=Y.loader.YK();n={hR:Y.schedule,bI:n,qC:NKB(Y.J,n),ID:UT(u.mq[0]),Ft:qT(u.uN.K),XI:Y.policy.X,hq:function(X,S){Y.loader.uZ(X,S)}}; if(Y.schedule.j.W){var k,m;n.H2=(((k=Y.videoTrack.K)==null?void 0:k.info.NF)||0)+(((m=Y.audioTrack.K)==null?void 0:m.info.NF)||0)}Y.FS&&(n.Wz=u.mq[0].Wz,n.Ka=u.Ka,n.FS=Y.FS);U={Ju:oTA(u,Y.loader.getCurrentTime()),tQ:Y.policy.Jr&&QN(u)&&u.mq[0].K.info.video?cU0(Y.X):void 0,IC:Y.policy.DW,poToken:Y.loader.y_(),DX:Y.loader.J3(),bZ:Y.bZ,HC:isNaN(Y.HC)?null:Y.HC,qX:Y.qX,bq:Y.bq,UA:Y.UA,eH:U};return new U5(Y.policy,u,n,Y.G,function(X,S){try{a:{var C=X.info.mq[0].K,f=C.info.video?Y.videoTrack:Y.audioTrack; if(!(X.state>=2)||X.isComplete()||X.RX()||!(!Y.loader.ZW||Y.loader.isSuspended||FO(f)>3)){var Q=WTd(X,Y.policy,Y.G);Q===1&&(Y.jG=!0);g4A(Y,X,Q);if(X.isComplete()||X.gg()&&S<3){if(Y.policy.X){var N=X.timing.Tm();N.rst=X.state;N.strm=X.xhr.Aq();N.cncl=X.xhr&&X.DY.G?1:0;Y.loader.fG("rqs",N)}X.Ui&&Y.loader.fG("sbwe3",{},!0)}if(!Y.gg()&&X.state>=2){Jgu(Y.timing,X,C);var Z=Y.loader;Y.HC&&X.k6&&Z&&(Y.HC=NaN,Y.loader.Mc(X.k6),Y.loader.Rl(),Y.loader.fG("cabrUtcSeek",{mediaTimeSeconds:X.k6}));X.I6&&Y.HC&&X.I6&& !X.I6.action&&(Y.loader.Qb(Y.HC),Y.HC=NaN,Y.loader.fG("cabrUtcSeekFallback",{targetUtcTimeSeconds:Y.HC}));X.O1&&Y.loader.t6(X.O1);Y.policy.Qe&&(Y.UA=X.UA);if(X.state===3){ar(f,X);QN(X.info)&&Ni(Y,f,C,!0);if(Y.j){var T=X.info.Ou();T&&Y.j.G3(X.info.mq[0].Wz,C.info.id,T)}Y.loader.rp()}else if(X.isComplete()&&X.info.mq[0].type===5){if(X.state!==4)X.DT()&&Y.loader.handleError(X.Sh(),X.Mz());else{var r=(X.info.mq[0].K.info.video?Y.videoTrack:Y.audioTrack).X[0]||null;r&&r instanceof U5&&r.RX()&&r.SI()}X.dispose()}else{X.DT()|| E40(Y,X);var K;((K=X.b0)==null?0:K.itagDenylist)&&Y.loader.lW(X.b0.itagDenylist);if(X.state===4)iv(Y,X),Y.K&&uLe(Y.K,X.info,Y.j);else if(Y.policy.Cb&&X.FT()&&!X.isComplete()&&!iv(Y,X)&&!X.DT())break a;X.DT()&&(HDd(Y,X),isNaN(Y.HC)||(Y.loader.Qb(Y.HC),Y.HC=NaN));Y.policy.Ub&&!X.isComplete()?yBA(Y.loader):Y.loader.rp();var L=eUM(X,Y.policy,Y.G);g4A(Y,X,L)}}}}}catch(R){S=Y.oV?1:0,Y.oV=!0,X=ZF(S),S=TF(R,S),Y.loader.handleError(S.errorCode,S.details,S.severity),X||Y.loader.lE()}},U)}; E40=function(Y,u){if(u.QD&&u.state>=2&&u.state!==3){var n=u.xhr.getResponseHeader("X-Response-Itag");if(n){Y.logger.debug(function(){return"Applying streamer-selected format "+n}); var U=oh0(Y.X,n),k=u.info.X;k&&(k-=U.JE(),U.X=!0,u.info.mq[0].K.X=!1,peM(u,U.fn(k)),Zo(Y.loader,Y.videoTrack,U),Bam(Y.videoTrack,U),Y.loader.jt(U.info.video.quality),(k=u.e8())&&U.info.lastModified&&U.info.lastModified!==+k&&ar(Y.videoTrack,u))}else u.QD=!1}}; HDd=function(Y,u){var n=u.info.mq[0].K,U=u.Sh();if(qT(n.uN.K)){var k=g.ci(u.UX(),3);Y.loader.fG("dldbrerr",{em:k||"none"})}k=u.info.mq[0].Wz;var m=nF(Y.K,u.info.mq[0].J,k);U==="net.badstatus"&&(Y.W+=1);if(u.canRetry()&&VFW(Y.loader)){if(!(u.info.uN.X>=Y.policy.Kr&&Y.j&&u.info.isDecorated()&&U==="net.badstatus"&&Y.j.fA(m,k))){k=(n.info.video&&n.uN.X>1||u.Ab===410||u.Ab===500||u.Ab===503)&&!(CF(Y.X.J).size>0)&&!qT(n.uN.K);m=u.Mz();var X=n.info.video?Y.videoTrack:Y.audioTrack;k&&(m.stun="1");Y.loader.handleError(U, m);Y.gg()||(k&&(Y.logger.debug(function(){return"Stunning format "+n.info.id}),Tj(Y.X,n)),ar(X,u),Y.loader.rp())}}else X=1,Y.j&&u.info.isDecorated()&&U==="net.badstatus"&&Y.j.fA(m,k)&&(X=0),Y.VF.isLive&&u.Sh()==="net.badstatus"&&Y.W<=Y.policy.Hk*2?(lye(Y.VF),Y.VF.H4||Y.VF.isPremiere?QB(Y.loader,0,{L0:"badStatusWorkaround"}):Y.VF.G?QB(Y.loader,Y.VF.DW,{L0:"badStatusWorkaround", xT:!0}):TR(Y.loader)):Y.loader.handleError(U,u.Mz(),X)}; iv=function(Y,u){if(Y.policy.useUmp&&u.gg())return!1;try{var n=u.info.mq[0].K,U=n.info.video?Y.videoTrack:Y.audioTrack;if(Y.VF.isManifestless&&U){Y.W=0;U.S&&(u.gg(),u.isComplete()||u.FT(),U.S=!1);u.ud()&&Y.loader.h7.Vu(1,u.ud());var k=u.oE(),m=u.s4();aC(Y.VF,k,m)}if(u.info.ID()&&!fy(u.info))for(var X=g.A(u.Cu()),S=X.next();!S.done;S=X.next())TaB(U,S.value);for(Y.loader.getCurrentTime();U.X.length&&U.X[0].state===4;){var C=U.X.shift();ZDS(U,C);U.JJ=C.z8()}U.X.length&&ZDS(U,U.X[0]);var f=!!N1(U);f&& u instanceof n$&&(n.info.HW()?gEu(Y.timing):zwS(Y.timing));return f}catch(Q){u=u.Mz();u.origin="hrhs";a:{Y=Y.loader;n=Q;if(n instanceof Error){u.msg||(u.msg=""+n.message);u.name||(u.name=""+n.name);if(n instanceof g.zP&&n.args)for(U=g.A(Object.entries(n.args)),k=U.next();!k.done;k=U.next())m=g.A(k.value),k=m.next().value,m=m.next().value,u["arg"+k]=""+m;g.Br(n);if(n.level==="WARNING"){Y.IV.EY(u);break a}}Y.handleError("fmt.unplayable",u,1)}return!1}}; ODB=function(Y){var u=Y.videoTrack.K.index;Y.FS=new lUG({Im:Y.policy.Im,x8:Y.policy.S.x8,D0:u.yG(),iD:function(){return u.iD()}, I2:function(){return u.I2()}})}; Ni=function(Y,u,n,U){if(!(n.qa()||n.o4()||n.X||!Ft(n.uN,Y.policy,Y.G,Y.loader.bA())||n.info.aV==="f"||Y.policy.K)){if(U){U=Y.J;var k=n.info;U=iqY(U,k.video?U.policy.uw:U.policy.zG,k.NF)}else U=0;U=n.fn(U);Y=fS(Y,U);fy(U)&&zj(u,Y);n.X=!0}}; rN=function(Y,u,n,U,k,m,X,S){g.e.call(this);var C=this;this.loader=Y;this.Ex=u;this.videoTrack=n;this.audioTrack=U;this.VF=k;this.N=m;this.isAudioOnly=X;this.Z=S;this.j=MW;this.jG=!1;this.logger=new g.jW("sabr");this.S=this.oV=this.KG=!1;this.videoInfos=this.W=this.N.videoInfos;this.X=this.DW=this.N.K;this.K=new PC(u,m,function(f,Q){C.loader.fG(f,Q)}); this.isAudioOnly&&FTY(this,this.VF.K["0"])}; JBY=function(Y,u){var n=[];u=g.A(u);for(var U=u.next();!U.done;U=u.next())n.push(g.qO(U.value,Y.VF.W$));return n}; FTY=function(Y,u,n){u!==Y.G&&(Y.G&&(Y.jG=!0),Y.G=u,Y.Cg(u,Y.videoTrack,n))}; YgA=function(Y,u){Y.logger.debug("setConstraint: "+l6(u));hX(Y.Ex)&&(Y.oV=u.reason==="m"||u.reason==="l"?!0:!1);u.reason==="m"?u.isLocked()&&qmA(Y,u.K):aUS(Y,u)?$jc(Y,u.j,u.K):Y.videoInfos=Y.W;Y.j=u}; aUS=function(Y,u){return Y.Ex.QP&&u.reason==="b"||Y.Ex.fW&&u.reason==="l"||Y.Ex.KE?!1:Y.Ex.wE?!0:u.reason==="l"||u.reason==="b"||u.reason==="o"}; uhd=function(Y,u){return u.isLocked()&&Y.K.j||Y.j===void 0?!1:u.equals(Y.j)}; nnu=function(Y,u){var n,U=(n=Y.G)==null?void 0:n.info.video.qualityOrdinal;return Y.jG?!0:Y.G?u!==U?!0:!Y.K.j||Y.Ex.Bv&&Y.K.K===Y.G.info.itag?!1:!0:!1}; qmA=function(Y,u){var n=Y.K.K;if(n){Y.videoInfos=Y.W;var U=g.G$(Y.videoInfos,function(k){return k.id===n}); U&&U.video.qualityOrdinal===u?Y.videoInfos=[U]:(U=Y.videoInfos.map(function(k){return k.id}),Y.loader.fG("sabrpf",{pfid:""+n, vfids:""+U.join(".")}),$jc(Y,u,u),fF(Y.K,""))}else $jc(Y,u,u)}; $jc=function(Y,u,n){Y.videoInfos=Y.W;Y.videoInfos=g.BV(Y.videoInfos,function(U){return U.video.qualityOrdinal>=u&&U.video.qualityOrdinal<=n})}; U0c=function(Y,u,n){if(Y.Z){var U=g.BV(Y.X,function(k){return k.id===Y.Z}); return Mi(U,n).includes(u)}U=g.BV(Y.X,function(k){var m;return!((m=k.dX)==null||!m.isDefault)}); return U.length>0?Mi(U,n).includes(u):Mi(Y.X,n).includes(u)}; Mi=function(Y,u){return Y.map(function(n){return Jg(g.qO(n,u))})}; k_7=function(Y){var u;if((u=Y.j)==null?0:u.isLocked())return Y.videoInfos;var n=CF(Y.K);u=g.BV(Y.videoInfos,function(U){return U.NF>Y.Ex.NF?!1:!n.has(U.id)}); fLS(Y.K)&&(u=g.BV(u,function(U){return U.video.width<=854&&U.video.height<=480})); return u}; Xo0=function(Y,u,n){var U=Y.VF,k=Y.IV.getVideoData(),m=Y.Bu,X=sle({GZ:k.Y(),IV:Y.IV,xK:Y.xK,Ex:Y.Ex,wY:Y.wY,NG:Y.NG,V5:Y.V5,vN:Y.vN,qO:Y.qO,isPrefetch:Y.isPrefetch,Yy:Y.Yy,sabrLicenseConstraint:k.sabrLicenseConstraint,Qx:Y.Qx,le:Y.le,XE:Y.XE,GO:Y.GO,GU:!!m,authorizedFormats:k.authorizedFormats}),S=wP(k,Y.eH,Y.nextRequestPolicy,Y.uY,Y.Ko,Y.Pe,Y.qE);n&&u&&(n=S.BN?S.BN.map(function(N){return N.type}):[],u("sabr",{stmctxt:n.join("_"), unsntctxt:S.gE?S.gE.join("_"):""}));u=Y.kf;n=Y.Qr;if(n===void 0&&u===void 0){var C;n=m0S(U.W$,(C=Y.Yt)==null?void 0:C.video);var f;u=m0S(U.W$,(f=Y.Yt)==null?void 0:f.audio)}if(k.qX)var Q=k.qX;k={EG:X,AU:Y.AU,kf:u,Qr:n,Bu:m,videoPlaybackUstreamerConfig:Q,NV:S};Y.g9&&(k.g9=Y.g9);k.N1=Y.N1;k.PQ=U.zZ;return k}; m0S=function(Y,u){return u?[g.qO(u.info,Y)]:[]}; s9=function(Y,u,n){var U=this;this.requestType=Y;this.uN=u;this.Xs=n;this.j=null;this.IH={meG:function(){var k;return(k=U.data)==null?void 0:k.isPrefetch}, Ko:function(){var k;return(k=U.data)==null?void 0:k.Ko}}}; W9c=function(Y,u,n){u=Vv(Y.uN,Pod(Y,u,n),u);Y.Oh()&&u.set("probe","1");return u}; Pod=function(Y,u,n){Y.eQ===void 0&&(Y.eQ=Y.uN.eQ(u,n));return Y.eQ}; Sge=function(Y){var u,n;return((u=Y.K)==null?void 0:(n=u.EG)==null?void 0:n.MC)||0}; Co7=function(Y){var u,n;return!!((u=Y.K)==null?0:(n=u.EG)==null?0:n.Qx)}; fAY=function(Y){var u={},n=[],U=[];if(!Y.data)return u;for(var k=0;k0;C--)n.push(S)}n.length!==X?u.error=!0:(m=n.slice(-m),n.length=k,R7M(u,n,m));break;case 1:R7M(u,zR,L_m);break;case 0:D0G(u, u.K&7);n=y6(u,16);k=y6(u,16);(n^k)!==65535&&(u.error=!0);u.output.set(u.data.subarray(u.j,u.j+n),u.X);u.j+=n;u.X+=n;break;default:u.error=!0}Y.X>Y.output.length&&(Y.output=new Uint8Array(Y.X*2),Y.X=0,Y.j=0,Y.G=!1,Y.K=0,Y.register=0)}Y.output.length!==Y.X&&(Y.output=Y.output.subarray(0,Y.X));return Y.error?new Uint8Array(0):Y.output}; R7M=function(Y,u,n){u=cAM(u);n=cAM(n);for(var U=Y.data,k=Y.output,m=Y.X,X=Y.register,S=Y.K,C=Y.j;;){if(S<15){if(C>U.length){Y.error=!0;break}X|=(U[C+1]<<8)+U[C]<>=7;f<0;)f=u[(X&1)-f],X>>=1;else X>>=f&15;S-=f&15;f>>=4;if(f<256)k[m++]=f;else if(Y.register=X,Y.K=S,Y.j=C,f>256){X=E9[f];X+=y6(Y,gN[f]);C=vnS(Y,n);S=Ht[C];S+=y6(Y,tGY[C]);if(lAY&&Xn.length&&(Y.error=!0);Y.register|=(n[U+1]<<8)+n[U]<=0)return D0G(Y,n&15),n>>4;for(D0G(Y,7);n<0;)n=u[y6(Y,1)-n];return n>>4}; y6=function(Y,u){for(;Y.K=Y.data.length)return Y.error=!0,0;Y.register|=Y.data[Y.j++]<>=u;Y.K-=u;return n}; D0G=function(Y,u){Y.K-=u;Y.register>>=u}; cAM=function(Y){for(var u=[],n=g.A(Y),U=n.next();!U.done;U=n.next())U=U.value,u[U]||(u[U]=0),u[U]++;var k=u[0]=0;n=[];var m=0;U=0;for(var X=1;X7&&(m+=u[X]);for(k=1;k>C&1;S=m<<4|X;if(X<=7)for(C=1<<7-X;C--;)U[C<>=7;X--;){U[C]||(U[C]=-u,u+=2);var f=k&1;k>>=1;C=f-U[C]}U[C]=S}}return U}; woG=function(Y){var u,n,U,k,m,X,S,C,f;return g.l(function(Q){switch(Q.j){case 1:if(!h7e)throw Error("DecompressionStream is not supported");u=vL.a9();n=new DecompressionStream("gzip");U=n.writable.getWriter();U.write(Y);U.close();k=n.readable.getReader();m=new un([]);case 2:return g.D(Q,k.read(),5);case 5:X=Q.K;S=X.value;if(C=X.done){Q.qF(4);break}m.append(S);Q.qF(2);break;case 4:return f=X5(m),vL.X3("gznb",u,Math.ceil(f.byteLength/16)),Q.return(f)}})}; W_t=function(Y){b_.call(this,"onesie");this.H0=Y;this.K={};this.G=!0;this.X=null;this.queue=new pom(this);this.J={}}; e70=function(Y){var u=Y.queue;u.K.length&&u.K[0].isEncrypted&&!u.j&&(u.K.length=0);u=g.A(Object.keys(Y.K));for(var n=u.next();!n.done;n=u.next()){n=n.value;var U=Y.K[n];if(!U.SZ){var k=Y.queue;k.K.push({videoId:U.videoId,formatId:n,isEncrypted:!1});k.j||KS(k)}}}; bVm=function(Y,u){var n=u.totalLength,U=!1;switch(Y.X){case 0:Y.x3(u,Y.G).then(function(k){var m=Y.H0;m.ED("oprr");m.playerResponse=k;m.b$||(m.Jv=!1);V6(m)},function(k){Y.H0.fail(k)}); break;case 2:Y.ED("ormk");u=X5(u);Y.queue.decrypt(u);break;default:U=!0}Y.H0.hp&&Y.H0.fG("ombup","id.11;pt."+Y.X+";len."+n+(U?";ignored.1":""));Y.X=null}; IAd=function(Y,u){var n,U,k,m,X;return g.l(function(S){switch(S.j){case 1:Y.H0.ED("oprgz_s");if(!h7e){S.qF(2);break}g.pY(S,3);return g.D(S,woG(u),5);case 5:return n=S.K,Y.H0.ED("oprgz_n"),S.return(n);case 3:U=g.vc(S),Y.H0.fG("gzerr",{impl:"native",err:""+U});case 2:if(k=Y.H0.Y().vC)try{var C=vL.a9(),f=k.wA(u),Q=k,N=f!=null?f:u,Z=N.byteOffset,T=N.byteLength,r=Q.exports.getInflatedSize(Z,T);if(r===0)throw Error("wasm_gz: bad input");var K=Q.malloc(r),L=Q.exports.inflateGzip(Z,T,K);if(L)throw Q.free(K), Error("wasm_gz: fail"+L);var R=new Uint8Array(Q.exports.memory.buffer,K,r);f&&k.free(f.byteOffset);var c=k.Lx(R);vL.X3("gzwb",C,Math.ceil(c.byteLength/16));m=c;Y.H0.ED("oprgz_w");return S.return(m)}catch(x){Y.H0.fG("gzerr",{impl:"wasm",err:""+x})}C=vL.a9();f=g.x0t(new g.B90(u));vL.X3("gzjb",C,Math.ceil(f.byteLength/16));X=f;Y.H0.ED("oprgz_p");return S.return(X)}})}; z7M=function(Y){return new Promise(function(u){setTimeout(u,Y)})}; gnc=function(Y,u){var n=Y.Y();n=Y.xa&&n.V("html5_onesie_preload_use_content_owner");var U=Y.Y9,k=AB(u.xw.experiments,"debug_bandaid_hostname");if(k)u=GR(u,k);else if((n===void 0?0:n)&&(U==null?0:U.url)&&!u.j){var m=Jd(new g.Od(U.url));u=GR(u,m)}else u=(m=u.K.get(0))==null?void 0:m.location.clone();if(u&&Y.videoId){m=x4(Y.videoId);Y=[];if(m)for(m=g.A(m),n=m.next();!n.done;n=m.next())Y.push(n.value.toString(16).padStart(2,"0"));u.set("id",Y.join(""));return u}}; Ene=function(Y,u,n){n=n===void 0?0:n;var U,k;return g.l(function(m){if(m.j==1)return U=[],U.push(u.load()),n>0&&U.push(z7M(n)),g.D(m,Promise.race(U),2);k=gnc(Y,u);return m.return(k)})}; HVB=function(Y,u,n,U){U=U===void 0?!1:U;Y.set("cpn",u.clientPlaybackNonce);Y.set("opr","1");var k=u.Y();Y.set("por","1");Xe()||Y.set("onem","1");u.startSeconds>0&&Y.set("osts",""+u.startSeconds);U||(k.V("html5_onesie_disable_partial_segments")&&Y.set("oses","1"),u=k.V("html5_gapless_onesie_no_media_bytes")&&c2(u)&&u.xa,n&&!u?(u=n.audio,Y.set("pvi",n.video.join(",")),k.V("html5_onesie_disable_audio_bytes")||Y.set("pai",u.join(",")),GN||Y.set("osh","1")):(Y.set("oad","0"),Y.set("ovd","0"),Y.set("oaad", "0"),Y.set("oavd","0")))}; yAu=function(Y,u,n,U,k){k=k===void 0?!1:k;var m="https://youtubei.googleapis.com/youtubei/"+u.ZN.innertubeApiVersion+"/player",X=[{name:"Content-Type",value:"application/json"}];U&&X.push({name:"Authorization",value:"Bearer "+U});X.push({name:"User-Agent",value:g.Wq()});g.z6("EOM_VISITOR_DATA")?X.push({name:"X-Goog-EOM-Visitor-Id",value:g.z6("EOM_VISITOR_DATA")}):(n=n.visitorData||g.z6("VISITOR_DATA"))&&X.push({name:"X-Goog-Visitor-Id",value:n});(n=g.z6("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&X.push({name:"X-YouTube-Lava-Device-Context", value:n});(u=AB(u.experiments,"debug_sherlog_username"))&&X.push({name:"X-Youtube-Sherlog-Username",value:u});Y=rF(JSON.stringify(Y));return{url:m,X1:X,postBody:Y,xAJ:k,pC:k}}; VGd=function(Y,u,n,U,k,m,X){var S=Y.wI,C=Y.Jx;Y=Y.zDz;var f=S!==void 0&&C!==void 0,Q=U.getVideoData(),N,Z=u.K.encryptedClientKey;u=f?u.iv:void 0;f=FM(n.schedule,!0);k=k||!!Xe()&&f>1572864;return{innertubeRequest:{pW2:Y,Pm:S,Jx:C,encryptedClientKey:Z,iv:u,EeJ:!0,pm:!0,Mf:"DecompressionStream"in window||!k,xrG:n.experiments.vz("html5_use_jsonformatter_to_parse_player_response")},EG:sle({GZ:n,IV:U,xK:Q.startSeconds*1E3}),onesieUstreamerConfig:m,Ij:X,NV:wP(Q),reloadPlaybackParams:(N=Q.Rj)==null?void 0: N.reloadPlaybackParams}}; OVB=function(Y,u,n,U,k,m){var X=g.yw(Y,cj),S;if(!Y.pC)if(S=ZV7(u,X)){var C=S.zt;S=S.signature}else S=C=u.encrypt(X),(0,g.j2)(),S=U9W(new nkG(u.K.X),S,u.iv);return VGd(C&&S?{wI:C,Jx:S}:{zDz:X},u,n,U,!!Y.pC,k,m)}; F_M=function(Y,u,n,U,k,m){var X,S,C;return g.l(function(f){if(f.j==1)return X=g.yw(Y,cj),g.D(f,iVe(u,X),2);if(f.j!=3)return S=f.K,g.D(f,T9u(u,S),3);C=f.K;return f.return(VGd({wI:S,Jx:C},u,n,U,!!Y.pC,k,m))})}; JAu=function(Y,u,n,U,k,m){var X=g.yw(Y,cj);if(X=ZV7(u,X))return VGd({wI:X.zt,Jx:X.signature},u,n,U,!!Y.pC,k,m)}; Fa=function(Y,u){g.e.call(this);var n=this;this.IV=Y;this.playerRequest=u;this.logger=new g.jW("onesie");this.xhr=null;this.state=1;this.Fy=new Lh;this.iV=!1;this.playerResponse="";this.B2=new dP(this);this.Dp=new W_t(this);this.xq="";this.Jd=this.UW=!1;this.Xz="";this.enableCompression=this.b$=this.mC=!1;this.oC=[];this.VN=-1;this.B1=0;this.xw=this.IV.Y();this.videoData=this.IV.getVideoData();this.hp=this.xw.gX();this.N4=this.xw.uD;this.wh=new QTd(this.N4.K);this.Ow=this.xw.V("html5_onesie_check_timeout"); this.KK=new g.Vp(this.N6,500,this);this.zO=new g.Vp(this.K2,1E4,this);this.zS=new g.Vp(function(){if(!n.isComplete()){var U=O9(n);n.fail(new g.iO("net.timeout",U))}},1E3); this.Ti=new g.Vp(this.owF,2E3,this);this.eq=this.IV.J3();this.Jv=this.V("html5_onesie_wait_for_media_availability");g.b(this.videoData,this);g.b(this,this.KK);g.b(this,this.zO);g.b(this,this.Ti);Y=KD();GN&&Y&&(this.IZ=new Map);this.cP=new Map;this.x0=new Map;this.CD=new Map;this.oh=new Map}; j9=function(Y,u){var n;return(n=Y.IZ)==null?void 0:n.get(u)}; aAu=function(Y,u,n){var U;return g.l(function(k){if(k.j==1)return Y.ED("oprd_s"),qgu(Y)?g.D(k,rA0(Y.wh,u,n),3):(U=Y.wh.decrypt(u,n),k.qF(2));k.j!=2&&(U=k.K);Y.ED("oprd_c");return k.return(U)})}; $00=function(Y){return Y.V("html5_onesie_host_probing")||Y.hp?GN:!1}; V6=function(Y){if(!Y.playerResponse)return!1;if(Y.mC)return!0;var u=Y.videoData.V("html5_onesie_audio_only_playback")&&v2(Y.videoData);if(Y.IZ&&Y.Jv){if(!Y.IZ.has(Y.xq))return!1;var n=Y.IZ.get(Y.xq),U;if(U=n){U=!1;for(var k=g.A(n.JR.keys()),m=k.next();!m.done;m=k.next())if(m=n.JR.get(m.value))for(var X=g.A(m.qj),S=X.next();!S.done;S=X.next())S.value.xg>0&&(m.HW?U=!0:u=!0);U=!(u&&U)}if(U)return!1}Y.ED("ofr");Y.Fy.resolve(Y.playerResponse);if(!Y.Ow){var C;(C=Y.zS)==null||C.start();Y.zO.start()}return Y.mC= !0}; u_Y=function(Y){if(Y.IZ&&!Y.V("html5_onesie_media_capabilities")){Y.ED("ogsf_s");var u=NRu(Y.IV.getVideoData(),function(U,k){Y.fG(U,k)}),n=YZu(Y.IV); u.video=UzB(n,u.video);Y.ED("ogsf_c");if(u.video.length)return u;Y.fG("ombspf","l."+n.j+";u."+n.K+";o."+n.X+";r."+n.reason)}}; qgu=function(Y,u){return Y.V("html5_onesie_sync_request_encryption")||(u==null?0:u.pC)||g.tA(Y.xw)&&Y.V("html5_embed_onesie_use_sync_encryption")?!1:!!Xe()}; O9=function(Y){if(!Y.tR)return{};var u=Y.tR.Tm(),n;u.d=(n=Y.tR.rg)==null?void 0:n.TE();u.shost=Y.dS;u.ty="o";return u}; nRY=function(Y,u){var n,U;(U=(Y=(n=Y.IZ)==null?void 0:n.get(u))==null)||(u=Y.X?!1:Y.X=!0,U=!u);return!U}; UWd=function(Y,u,n,U,k,m,X,S,C,f,Q,N){g.e.call(this);var Z=this;this.IV=Y;this.loader=u;this.policy=n;this.audioTrack=U;this.videoTrack=k;this.VF=m;this.hR=X;this.Pz=S;this.X=C;this.timing=f;this.N=Q;this.MF=N;this.K=[];this.J={};this.zZ=this.dg=!1;this.G=this.CG=this.KG=this.TZ=this.qO=0;this.Z=null;this.jG={N1:[],AU:[]};this.DW={N1:[],AU:[]};this.S=null;this.W=[];this.IH={OQV:function(){return Z.K}, wkG:function(){return Z.J}, pgV:function(){Z.K.length=0}, I6z:function(){return Z.videoData.Pz}, a8w:function(){return Z.KG}, UxF:function(T){Z.KG=T}, oIa:function(T){Z.G=T}, R0:function(T){Z.S=T}, yh:function(T){Z.W=T}}; this.videoData=this.IV.getVideoData();this.policy.xa&&(this.Fk=new Pt(this.loader,this.policy,this.hR),g.b(this,this.Fk))}; X2G=function(Y,u){u=u===void 0?!1:u;if(keB(Y)){Y.policy.W&&Y.loader.fG("sabrcrq",{create:1});var n=new s9(0,Y.VF.Z,Y);Y.policy.SW>0&&Y.G++;u=mWA(Y,n,u);Y.K.push(u);var U;(U=Y.Fk)==null||hUm(U,Y.VF.Z)}}; CR7=function(Y,u){var n=PR0(Y);if(Y.policy.bU){var U=Y.jG;var k=Y.DW}else U=Js(Y,Y.audioTrack),k=Js(Y,Y.videoTrack);var m=[].concat(g.Zu(U.N1),g.Zu(k.N1));qi(Y)&&m.push.apply(m,g.Zu(Y.W));var X=[].concat(g.Zu(U.AU),g.Zu(k.AU)),S=Y.loader.YK();if(Y.policy.sA&&!Y.videoData.isLivePlayback){var C=Y.videoData.lengthSeconds*1E3;n>=C&&Y.loader.fG("invalidSabrCmt",{cmt:n,vd:C})}var f,Q;C=Y.IV;var N=Y.VF,Z=Y.j,T=Y.videoData.Pz,r=Y.policy,K=Y.loader.Yp,L=zUd(Y.loader)*1E3,R=(f=Y.rg)==null?void 0:f.V5;f=(Q= Y.rg)==null?void 0:Q.vN;var c;Q=Number((c=Y.X.G)==null?void 0:c.info.itag)||0;var x;c=Number((x=Y.X.J)==null?void 0:x.info.itag)||0;u={IV:C,VF:N,N1:m,AU:X,xK:n,nextRequestPolicy:Z,uY:T,Ex:r,wY:K,NG:L,V5:R,vN:f,qO:Y.qO,isPrefetch:u||Y.loader.isSuspended,VB:Q,Aa:c,eH:S,qE:Y.IV.rH()};n=Y.loader.y_();m=x4(n);n&&(u.Ko=m);if(n=Y.IV.R2())u.Qx=n*1E3;var W;n=Y.X;m=n.KG;if(((W=n.Ex)==null?0:hX(W))&&!m)for(W=g.A(n.X),X=W.next();!X.done;X=W.next())if(X.value.dX){m=!0;break}W=hX(n.Ex)&&!m?[]:JBY(n,n.X);u.kf=W; W=Y.X;hX(W.Ex)&&!W.oV?W=[]:(n=k_7(W),n.length===0&&(n=W.W),W=JBY(W,n));u.Qr=W;u.Bu=qi(Y)?[Y.S]:void 0;Y.policy.RP&&(u.XE=SZu(Y.loader,Y.audioTrack),u.GO=SZu(Y.loader,Y.videoTrack));if(Y.policy.j){W=Y.loader.getCurrentTime();U=a6(Y,U.N1,W);k=a6(Y,k.N1,W);k=Math.min(U,k);qi(Y)&&(U=a6(Y,Y.W,W),Y.IV.gX()&&U0&&Y.K[0].m2()&&(u.Pe=Y.K[0].Qw());return u}; PR0=function(Y){var u,n=Y.policy.J&&((u=Y.loader)==null?void 0:u.c_());u=Y.loader.getCurrentTime()||0;u=f97(Y,u);var U=Y.loader.iN()||0;u+=U;U=YN(Y.videoData)||g.$R(Y.videoData);var k=0;n?(U&&(k=Number.MAX_SAFE_INTEGER),Y.videoData.jG&&(k=Math.ceil(Y.videoData.DW*1E3))):k=Math.ceil(u*1E3);return Math.min(Number.MAX_SAFE_INTEGER,k)}; qi=function(Y){return Y.policy.yY&&!!Y.S}; f97=function(Y,u){if(Y.loader.isSeeking())return u;var n=Y.IV.wD();if(!n)return u;n=n.eM();if(n.length===0||XT(n,u))return u;if(!nS(Y.videoTrack,u)&&!nS(Y.audioTrack,u))return Y.loader.fG("sundrn",{b:0,lt:u}),u;for(var U=u,k=Infinity,m=0;mu)){var X=u-n.end(m);X=20)?(Y.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),u):U}; a6=function(Y,u,n){Y=Y.loader.iN()||0;return $L(u,(n+Y)*1E3)/1E3+n}; keB=function(Y){if(Y.policy.SW>0){var u=Math.floor((0,g.j2)()/1E4);if(u===Y.CG){if(Y.G>=Y.policy.SW){if(Y.G===Y.policy.SW){var n={reason:"toomanyrequests"};n.limit=Y.G;Y.loader.handleError("player.exception",n);Y.G+=1}return!1}}else Y.CG=u,Y.G=0}if(Y.loader.isSuspended&&Y.loader.RN)return!1;if(Y.oV&&(0,g.j2)()0&&(!Y.policy.N||Y.K.length!==1||!Y.K[0].m2()))return!1;var U;if((U=Y.VF.Z)==null||!Ft(U,Y.policy,Y.J,Y.loader.bA())||$7(Y.audioTrack)&&$7(Y.videoTrack))return!1; if(Y.policy.j)if(Y.policy.Gw){var k;if((k=Y.MF)==null?0:STG(k))return!1}else{u=!1;if(Y.N.j===2)u=!0;else if(Y.N.j===3){PR0(Y);Y.loader.iN();var m=Ee(Y.audioTrack,Y.loader.isSeeking()).N1;U=Ee(Y.videoTrack,Y.loader.isSeeking()).N1;k=Y.loader.getCurrentTime()||0;m=a6(Y,m,k);U=a6(Y,U,k);U=Math.min(m,U);k=Y.N;U>=k.J?(k.fG("sdai",{haltrq:U,est:k.J}),U=!0):U=!1;U&&(u=!0)}u&&Y.policy.W&&Y.loader.fG("sabrcrq",{waitad:1});if(u)return!1}Y.policy.bU&&(Y.jG=Js(Y,Y.audioTrack),Y.DW=Js(Y,Y.videoTrack));if(!Y.j)return Y.policy.W&& Y.loader.fG("sabrcrq",{nopolicy:1}),!0;if(Y.IV.R2())return Y.policy.W&&Y.loader.fG("sabrcrq",{utc:1}),!0;if(Y.X.S)return Y.policy.W&&Y.loader.fG("sabrcrq",{audio:1}),!0;if(!Y.j.targetAudioReadaheadMs||!Y.j.targetVideoReadaheadMs)return Y.policy.W&&Y.loader.fG("sabrcrq",{noreadahead:1}),!0;if(Y.policy.J&&Y.loader.c_())return Y.policy.W&&Y.loader.fG("sabrcrq",{seekToHead:1}),!0;u=Math.min(PU(Y.loader,Y.audioTrack)*1E3,Y.j.targetAudioReadaheadMs);U=Math.min(PU(Y.loader,Y.videoTrack)*1E3,Y.j.targetVideoReadaheadMs); var X=Math.min(u,U);k=FO(Y.audioTrack,!0)*1E3;m=FO(Y.videoTrack,!0)*1E3;var S=Y.IV.getCurrentTime()*1E3;if(Y.policy.bU){var C=$L(Y.jG.N1,S);var f=$L(Y.DW.N1,S)}else C=k,f=m;var Q=Cu||U>=0&&k.tV>U+1)break;n=Math.max(n,k.startTimeMs+k.durationMs);U=Math.max(U,k.sX)}return Math.max(0,n-u)}; mWA=function(Y,u,n){var U={hR:Y.hR,hq:function(C,f){Y.IV.uZ(C,f)}, ID:Y.policy.b2,XI:Y.policy.X};Y.hR.j.W&&(U.H2=(Y.videoTrack.K.info.NF||0)+(Y.audioTrack.K.info.NF||0));Y.policy.vv&&(U.D0=Y.audioTrack.K.index.yG(),U.ID=!1);var k=Pod(u,Y.policy,Y.J)?2:1;k!==Y.KG&&(Y.KG=k,Nqt(Y));n=CR7(Y,n);if(Y.policy.N&&Y.policy.X&&n.uY){for(var m=k="",X=g.A(n.uY),S=X.next();!S.done;S=X.next())S=S.value,Y.videoData.sabrContextUpdates.has(S)||Y.policy.N&&n.Pe&&n.Pe.type===S?k+="_"+S:m+="_"+S;Y.loader.fG("sabrbldrqs",{ctxts:k,misctxts:m})}!u.setData(n,Y.policy,Y.J)&&Y.policy.N&&Y.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);U=new FR(Y.policy,u,Y.VF,Y.J,Y,U,Y.loader.J3());JX(Y.timing);Y.policy.W&&Y.loader.fG("sabrcrq",{rn:U.by(),probe:u.Oh()});return U}; ut=function(Y,u){if(u.gg()||Y.gg())Y.policy.Rj||(Y.policy.J?YQ(Y.loader):Y.loader.rp());else{if(Y.policy.X&&u.isComplete()&&u instanceof FR){var n=Y.loader,U=n.fG,k,m,X=Object.assign(u.tR.Tm(),{rst:u.state,strm:u.xhr.Aq(),d:(k=u.tR.rg)==null?void 0:k.TE(),cncl:u.xhr&&u.DY.G?1:0,rqb:u.SA,cwt:u.L5,swt:(m=u.Ze)==null?void 0:m.eD});k=Object.assign(fAY(u.info),X);U.call(n,"rqs",k)}if(u.isComplete()&&u.Oh()&&u instanceof FR)Y.policy.uD?u.RS()?(u.dispose(),Y.K.length===0?Y.loader.rp():(Y=Y.K[0],Y instanceof FR&&Y.RX()&&Y.SI())):u.DT()&&Y.loader.handleError(u.Sh(),u.Mz()):(u.dispose(),Y.loader.rp());else{if(u.oS())u instanceof FR&&Jgu(Y.timing,u),Nqt(Y),ikc(Y);else if(u.DT())n=Y.IV.R2(),u instanceof FR&&Co7(u.info)&&n&&Y.loader.Qb(n),u instanceof Fa?Y.K.pop():(n=1,u.canRetry()&&VFW(Y.loader)&&(Zk0(Y,u),n=0),Y.loader.handleError(u.Sh(),u.Mz(),n));else{if(Y.loader.isSuspended&&!u.isComplete())return;ikc(Y)}u.gg()||u instanceof Fa||(u.isComplete()?n=eUM(u,Y.policy,Y.J):(n=WTd(u,Y.policy,Y.J),n===1&&(Y.dg= !0)),n!==0&&(U=new s9(1,u.info.uN),U.eQ=n===2,mWA(Y,U)));Y.policy.Ub&&!u.isComplete()?yBA(Y.loader):Y.loader.rp()}}}; ikc=function(Y){for(;Y.K.length&&Y.K[0].Qs(Y.l8());){var u=Y.K.shift();Tqc(Y,u)}Y.K.length&&Tqc(Y,Y.K[0])}; Tqc=function(Y,u){u instanceof FR&&(Y.JJ=u);var n=new Set(u.xI(Y.l8()));n=g.A(n);for(var U=n.next();!U.done;U=n.next()){var k=U.value;if(!(U=!(u instanceof Fa))){U=Y.X;var m=U.VF.W$,X=Mi(U.videoInfos,m);m=U0c(U,k,m);var S=X.includes(k);!U.Ex.SX||m||S||U.loader.fG("sabrcpf",{fid:""+k,vfids:""+X.join("."),said:U.Z||""});U=m||X.includes(k)}if(U&&(U=u.Cd(k,Y.l8()),X=Y.policy.yY&&Y6(U[0].K.info.mimeType),u.FT(k,Y.l8())))for(k=u.Cu(k,Y.l8()),k=g.A(k),m=k.next();!m.done;m=k.next())if(m=m.value,Y.policy.X&& u instanceof Fa&&Y.loader.fG("omblss",{s:m.info.RH()}),X)S=Y.timing,S.KG||(S.KG=(0,g.j2)(),g.uq("fcb_r",S.KG,S.K)),S=Y,S.videoData.W$()&&S.S&&Jg(S.S)===Jg(g.qO(m.info.K.info,S.VF.W$))&&S.IV.publish("sabrCaptionsDataLoaded",m,S.yh.bind(S));else{S=m.info.K.info.HW();var C=m.info.K;if(S){var f=void 0;var Q=Y.X,N=(f=u.kJ(Y.l8()))==null?void 0:f.token;Q.S&&C!==Q.J?f=!0:(Q.S=!1,C!==Q.J&&(Q.J=C,Q.Cg(C,Q.audioTrack,N)),f=!1);if(f)continue}else f=void 0,FTY(Y.X,C,(f=u.kJ(Y.l8()))==null?void 0:f.token);f=S? Y.audioTrack:Y.videoTrack;u instanceof Fa&&(f.S=!1,u instanceof Fa&&(S?gEu(Y.timing):zwS(Y.timing)));try{g8(f,U,m)}catch(Z){m=TF(Z),Y.loader.handleError(m.errorCode,m.details,m.severity),f.lE(),Y.aX(!1,"pushSlice"),YQ(Y.loader)}}}}; Zk0=function(Y,u){Y.policy.N?Y.K.splice(Y.K.indexOf(u)).forEach(function(n){n.dispose()}):(Y.K.pop(),u==null||u.dispose())}; rxe=function(Y,u,n){for(var U=[],k=0;k0)for(var u=g.A(Y.videoData.sabrContextUpdates.keys()),n=u.next();!n.done;n=u.next()){n=n.value;var U=void 0;((U=Y.videoData.sabrContextUpdates.get(n))==null?0:U.sendByDefault)&&Y.videoData.Pz.add(n)}if(Y.policy.N&&Y.K.length)for(u=g.A(Y.K),n=u.next();!n.done;n=u.next())(n=n.value.Qw())&&n.type&&n.sendByDefault&&Y.videoData.Pz.add(n.type)}; MXW=function(Y){Y.policy.MR&&(Y.rg=void 0,Y.qO=0)}; s2u=function(Y,u){if(u.DT()||u.gg()){var n=Y.loader,U=n.fG,k=u.state;Y=Y.l8();var m,X;if((u=(m=u.IZ)==null?void 0:m.get(Y))==null)u=void 0;else{m=0;Y=u.xI();for(var S=0;S=u.mediaTime&&g.V(Y.IV.getPlayerState(),8)?(u.resolve([u.mediaTime,u.id]),Y.K.delete(u.id)):(u.delay.dispose(),u.delay=new g.Vp(function(){j2c(Y,u)},(u.mediaTime-n)*1E3/Y.IV.getPlaybackRate()),u.delay.start())}; tXM=function(Y,u,n,U){var k=this;this.X=Y;this.cpn=u;this.IV=n;this.K=U;this.j=new Map;this.J=new Map;this.S=this.Z=NaN;this.W=!1;this.T6="";this.isSeeking=!1;this.N=0;this.G=new Gee(n);this.Xn=n.Xn;this.IV.subscribe("SEEK_TO",function(){k.e_()}); this.IV.subscribe("SEEK_COMPLETE",function(){LSu(k)})}; oRY=function(Y,u){if(!Y.isSeeking&&Y.N!==u&&!isNaN(Y.Z)){Y.N=u;var n=Y.W?Y.S:Y.X.x$(u);(n!==Y.S||Y.W)&&BqG(Y,n,u)}}; BqG=function(Y,u,n){var U=Y.j.get(u),k=Y.X.getStartTime(u),m=Y.X.getDuration(u);Y.W=!1;Y.S=u;var X=k,S;((S=U==null?void 0:U.K)!=null?S:[Y.cpn]).forEach(function(C,f){var Q;f=(Q=U==null?void 0:U.j[f])!=null?Q:m;n>=X&&nk?DW0(Y,m,Y.j.get(m)):m===k&&DW0(Y,m,Y.j.get(m),U-Y.X.getStartTime(m))})}; cxS=function(Y,u,n,U){u!==Y.T6&&(Y.IV.fG("ssevt",{tag:Y.K===0?"sstd-cr":Y.K===1?"sstd-tm":Y.K===2?"sstd-poll":Y.K===3?"sstd-poll100":"sstd-unknown",ad:Y.cpn!==u,cpn:u,st:n.toFixed(3),late:Math.round(Y.isSeeking?0:(U-n)*1E3)}),Y.T6=u)}; xWm=function(Y){var u=g.A(Y.split("."));Y=u.next().value;u=u.next().value;return[Number(Y),u]}; R$t=function(Y,u,n,U){n=u+"."+n;Y.J.has(u)?Y.J.get(u).push(n):Y.J.set(u,[n]);Y.K===1&&KSu(Y.G,U,n).then(function(k){var m=g.A(k);k=m.next().value;m=m.next().value;m=g.A(xWm(m));m.next();m=m.next().value;cxS(Y,m,k,AxM(Y.G))}); Y.K===0&&(Y.Xn.M8("transitiondetector",n),u=(U+Y.IV.iN())*1E3,Y.Xn.l6([new g.EE(u,u+5E3,{id:n,namespace:"transitiondetector",priority:9})]))}; l9m=function(Y,u,n,U,k){this.loader=Y;this.policy=u;this.schedule=n;this.Py=U;this.N=k;this.KG=NaN;this.j=this.S=this.G=null;this.K=this.J=this.W=this.startTimeSecs=NaN;this.X=!1;this.Z=NaN}; h$W=function(Y,u,n,U,k,m){return u.SQ&&u.sx&&n===3?new l9m(Y,u,U,k,m):null}; w2e=function(Y,u){if(Y.policy.Bl){var n=u.info.NF,U=FM(Y.schedule);u=u.index.yG();n=Math.max(1,U/n);Y.Z=Math.round(Math.max(((n-1)*u+Y.policy.lD)/n,u-Y.policy.xO)*1E3)}}; bk7=function(Y,u){var n=Date.now()/1E3,U=n-Y.startTimeSecs,k=n-Y.W,m=k>=Y.policy.jC,X=!1;if(m){var S=0;!isNaN(u)&&u>Y.J&&(S=u-Y.J,Y.J=u);S/k=Y.policy.xO&&!Y.X;if(!m&&!n&&WSt(Y,u))return NaN;n&&(Y.X=!0);a:{U=X;n=(0,g.j2)()/1E3-(Y.Py.E6()||0)-Y.S.K-Y.policy.lD;m=Y.j.startTime;n=m+n;if(U){if(isNaN(u)){nO(Y,NaN,"n",u);m=NaN;break a}U=u-Y.policy.NI;U0&&(S.headers=C);m&&(S.onFinish=m);return Object.keys(S).length>1? S:null}; Jx0=function(Y,u,n,U,k,m,X,S){ko()&&n.token&&(Y=uL(Y,{ctt:n.token,cttype:n.nX,mdx_environment:n.mdxEnvironment}));U.V("net_pings_low_priority")&&(u||(u={}),u.priority="low");m||S&&U.V("nwl_skip_retry")?(u==null?u={}:VXe(Y,U.V("html5_assert_cpn_with_regex")),X?go().sendAndWrite(Y,u):go().sendThenWrite(Y,u,S)):u?(VXe(Y,U.V("html5_assert_cpn_with_regex")),uSY(Y,u)):g.DX(Y,k)}; qZY=function(Y){for(var u=[],n=0;n0&&n>0&&!Y.j&&Y.X<1E7)try{Y.G=Y.J({sampleInterval:u,maxBufferSize:n});var U;(U=Y.G)==null||U.addEventListener("samplebufferfull",function(){return g.l(function(k){if(k.j==1)return g.D(k,Y.stop(),2);YAu(Y);g.KY(k)})})}catch(k){Y.j=$Wu(k.message)}}; u0Y=function(Y,u){var n,U;return!!((n=window.h5vcc)==null?0:(U=n.settings)==null?0:U.set(Y,u))}; UDe=function(){var Y,u,n,U=(Y=window.h5vcc)==null?void 0:(u=Y.settings)==null?void 0:(n=u.getPersistentSettingAsString)==null?void 0:n.call(u,"cpu_usage_tracker_intervals");if(U!=null){var k;Y=(k=JSON.parse(U))!=null?k:[];k=Y.filter(function(f){return f.type==="total"}).map(function(f){return f.seconds}); u=g.A(nNe);for(n=u.next();!n.done;n=u.next())n=n.value,k.indexOf(n)===-1&&Y.push({type:"total",seconds:n});var m,X;(m=window.h5vcc)==null||(X=m.settings)==null||X.set("cpu_usage_tracker_intervals_enabled",1);var S,C;(S=window.h5vcc)==null||(C=S.settings)==null||C.set("cpu_usage_tracker_intervals",JSON.stringify(Y))}}; kz7=function(){var Y=window.H5vccPlatformService,u="";if(Y&&Y.has("dev.cobalt.coat.clientloginfo")&&(Y=Y.open("dev.cobalt.coat.clientloginfo",function(){}))){var n=Y.send(new ArrayBuffer(0)); n&&(u=String.fromCharCode.apply(String,g.Zu(new Uint8Array(n))));Y.close()}return u}; g.X4=function(Y){g.e.call(this);var u=this;this.provider=Y;this.logger=new g.jW("qoe");this.K=new Map;this.sequenceNumber=1;this.oV=NaN;this.Zk="N";this.Z=this.zk=this.pR=this.KG=this.j=0;this.Qm=this.Fk=this.W=this.CG="";this.Ub=this.JJ=NaN;this.eE=0;this.MR=-1;this.uD=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Ru=this.isEmbargoed=this.rg=this.isOffline=this.isBuffering=!1;this.Qe=[];this.N=null;this.Iu=this.G=this.Uc=this.S=!1;this.X=-1;this.TZ=!1;this.lD=new g.Vp(this.MM,750,this);this.Cr= this.adCpn=this.DW=this.contentCpn="";this.adFormat=void 0;this.Cs=0;this.Pz=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.yY=new Set(["gd","pw","gp","gm"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.nT=!1;this.CT=NaN;this.MF=0;this.Gw=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.lN=!1;this.UD=new Set;this.IH={Gd:function(U){u.Gd(U)}, oxk:function(){return u.J}, hU:function(){return u.contentCpn}, cIF:function(){return u.DW}, reportStats:function(){u.reportStats()}, Zbk:function(){return u.K.get("cat")||[]}, T7:function(U){return u.K.get(U)||[]}, Cx2:function(){return u.K}, B5q:function(){return 0}, M3a:function(){return{adCpn:u.adCpn,Cr:u.Cr,adFormat:u.adFormat}}}; this.jG=this.provider.xw.V("html5_qoe_relaxed_reporting");var n=g.YF(this.provider.xw.experiments,"html5_qoe_proto_mock_length");n&&!kQ.length&&(kQ=qZY(n));g.b(this,this.lD);try{navigator.getBattery().then(function(U){u.N=U})}catch(U){}g.mF(this,0,"vps",["N"]); Y.xw.gX()&&(this.MF=(0,g.j2)(),this.CT=g.NI(function(){var U=(0,g.j2)(),k=U-u.MF;k>500&&u.fG("vmlock",{diff:k.toFixed()});u.MF=U},250)); this.provider.videoData.Pc&&(this.remoteControlMode=mDd[this.provider.videoData.Pc]||0);this.provider.videoData.C1&&(n=Chu(this.provider.videoData.C1),n==null?0:n.length)&&(this.remoteConnectedDevices=n);Y.xw.gX()&&(this.dg=new gR0,g.b(this,this.dg));n=g.YF(Y.xw.experiments,"html5_js_self_profiler_sample_interval_ms");Y=g.YF(Y.xw.experiments,"html5_js_self_profiler_max_samples");n>0&&Y>0&&(this.zZ=new U8(n,Y),g.b(this,this.zZ))}; PG=function(Y,u,n){var U=Y.K.get(u);U?U.push(n):Y.K.set(u,[n])}; g.mF=function(Y,u,n,U){PG(Y,n,u.toFixed(3)+":"+U.join(":"))}; XWA=function(Y,u){var n=Y.adCpn||Y.provider.videoData.clientPlaybackNonce,U=Y.provider.getCurrentTime(n);g.mF(Y,u,"cmt",[U.toFixed(3)]);n=U=Y.provider.GE(n);if((!Y.J||Y.provider.xw.V("html5_shorts_gapless_no_gllat")&&c2(Y.provider.videoData)?0:n*1E3>Y.J.IT+100)&&Y.J){var k=Y.J;n=k.isAd;U=U*1E3-k.IT;Y.R4=u*1E3-k.Jrc-U-k.bp2;k=(0,g.j2)()-U;u=Y.R4;U=Y.provider.videoData;var m=U.isAd();if(n||m){m=(n?"ad":"video")+"_to_"+(m?"ad":"video");var X={};U.W&&(X.cttAuthInfo={token:U.W,videoId:U.videoId});X.startTime= k-u;Lg(m,X);g.pg({targetVideoId:U.videoId,targetCpn:U.clientPlaybackNonce},m);Kg("pbs",k,m)}else k=Y.provider.IV.PC(),k.W!==U.clientPlaybackNonce?(k.J=U.clientPlaybackNonce,k.j=u):U.Oe()||g.Br(new g.zP("CSI timing logged before gllat",{cpn:U.clientPlaybackNonce}));Y.fG("gllat",{l:Y.R4.toFixed(),prev_ad:+n});delete Y.J}}; CO=function(Y,u){u=u===void 0?NaN:u;u=u>=0?u:g.Sk(Y.provider);var n=Y.provider.IV.rK(),U=n.uf-(Y.JJ||0);U>0&&g.mF(Y,u,"bwm",[U,(n.Jq-(Y.Ub||0)).toFixed(3)]);isNaN(Y.JJ)&&n.uf&&Y.isOffline&&Y.Gd(!1);Y.JJ=n.uf;Y.Ub=n.Jq;isNaN(n.bandwidthEstimate)||g.mF(Y,u,"bwe",[n.bandwidthEstimate.toFixed(0)]);Y.provider.xw.gX()&&Object.keys(n.K).length!==0&&Y.fG("bwinfo",n.K);if(Y.provider.xw.gX()||Y.provider.xw.V("html5_log_meminfo"))U=I9e(),Object.values(U).some(function(m){return m!==void 0})&&Y.fG("meminfo", U); if(Y.provider.xw.gX()){var k;(U=(k=Y.dg)==null?void 0:ERW(k))&&Object.values(U).some(function(m){return m!=null})&&Y.fG("cpuinfo",U)}Y.zZ&&Y.fG("jsprof",Y.zZ.flush()); Y.N&&g.mF(Y,u,"bat",[Y.N.level,Y.N.charging?"1":"0"]);k=Y.provider.IV.getVisibilityState();Y.MR!==k&&(g.mF(Y,u,"vis",[k]),Y.MR=k);XWA(Y,u);(k=Pfe(Y.provider))&&k!==Y.eE&&(g.mF(Y,u,"conn",[k]),Y.eE=k);SAu(Y,u,n)}; SAu=function(Y,u,n){if(!isNaN(n.Ju)){var U=n.Ju;n.j96E3&&(new g.Vp(Y.reportStats,0,Y)).start()}}; Qfu=function(Y){Y.provider.videoData.xa&&fO(Y,"prefetch");Y.provider.videoData.lN&&Y.fG("reload",{r:Y.provider.videoData.reloadReason,ct:Y.provider.videoData.lN});Y.provider.videoData.Uc&&fO(Y,"monitor");Y.provider.videoData.isLivePlayback&&fO(Y,"live");GN&&fO(Y,"streaming");Y.provider.videoData.Pc&&Y.fG("ctrl",{mode:Y.provider.videoData.Pc},!0);if(Y.provider.videoData.C1){var u=Y.provider.videoData.C1.replace(/,/g,"_");Y.fG("ytp",{type:u},!0)}Y.provider.videoData.sI&&(u=Y.provider.videoData.sI.replace(/,/g, "."),Y.fG("ytrexp",{ids:u},!0));u=Y.provider.videoData;var n=Y.provider.xw.V("enable_white_noise")||Y.provider.xw.V("enable_webgl_noop"),U=g.gq(u)||g.uf(u)||g.nQ(u)||g.UA(u);(n||U)&&(n=(0,g.QE)())&&Y.K.set("gpu",[n]);r6(Y.provider.videoData)&&g.mF(Y,g.Sk(Y.provider),"dt",["1"]);u.cotn&&!r6(u)&&Y.Gd(!0);Y.provider.xw.gX()&&(u=(0,g.j2)()-Y.provider.xw.Jr,Y.fG("playerage",{secs:Math.pow(1.6,Math.round(Math.log(u/1E3)/Math.log(1.6))).toFixed()}));Y.G=!0;Y.oV=g.NI(function(){Y.reportStats()},1E4)}; iQe=function(Y,u,n){var U=g.Sk(Y.provider);N6u(Y,U,u,0,n);CO(Y,U);fPS(Y)}; N6u=function(Y,u,n,U,k){var m=Y.provider.xw.K.cbrver;Y.provider.xw.K.cbr==="Chrome"&&/^96[.]/.test(m)&&n==="net.badstatus"&&/rc\.500/.test(k)&&ZQY(Y,3);Y.provider.xw.V("html5_use_ump")&&/b248180278/.test(k)&&ZQY(Y,4);m=Y.provider.getCurrentTime(Y.adCpn||Y.provider.videoData.clientPlaybackNonce);U=U===1?"fatal":"";n=[n,U,m.toFixed(3)];U&&(k+=";a6s."+VL());k&&n.push(T6u(k));g.mF(Y,u,"error",n);Y.G=!0}; r3c=function(Y,u){var n=g.Sk(Y.provider);if(!Y.provider.xw.experiments.vz("html5_refactor_sabr_video_format_selection_logging")||u.K.id!==Y.CG){var U=[u.K.id,u.j,Y.CG,u.reason];u.token&&U.push(u.token);g.mF(Y,n,"vfs",U);Y.CG=u.K.id;U=Y.provider.IV.getPlayerSize();if(U.width>0&&U.height>0){U=[Math.round(U.width),Math.round(U.height)];var k=g.jG();k>1&&U.push(k);g.mF(Y,n,"view",U)}Y.Uc||(Y.provider.xw.gX()&&fO(Y,"rqs2"),Y.provider.videoData.K&&W5(Y.provider.videoData.K)&&Y.K.set("preload",["1"]));Y.Uc= !0;Y.G=!0}u.reason==="m"&&++Y.Cs===100&&ZQY(Y,2);g.mF(Y,n,"vps",[Y.Zk]);Y.jG||Y.reportStats(n)}; Mct=function(Y){Y.X>=0||(Y.provider.xw.gL||Y.provider.IV.getVisibilityState()!==3?Y.X=g.Sk(Y.provider):Y.TZ=!0)}; sfe=function(Y,u,n){var U=g.Sk(Y.provider);g.mF(Y,U,"vfi",[u==="A"?"":""+(n!=null?n:0),u])}; dD0=function(Y,u,n){if(Y.provider.xw.experiments.vz("html5_refactor_sabr_audio_format_selection_logging")){u=n.K;var U=[u.audio&&u.video?u.uW?u.uW:"":u.id];u.dX&&u.dX.id&&U.push(u.dX.id);u=U.join(";");u!==Y.W&&(U=[u,Y.W,n.reason],n.token&&U.push(n.token),g.mF(Y,g.Sk(Y.provider),"afs",U),Y.W=u)}else n.K.id!==Y.W&&(U=[n.K.id,Y.W,n.reason],n.token&&U.push(n.token),g.mF(Y,u,"afs",U),Y.W=n.K.id)}; fO=function(Y,u){PG(Y,"cat",u)}; Gzd=function(Y,u,n,U,k){var m=g.Sk(Y.provider);u!==1&&u!==3&&u!==5||g.mF(Y,m,"vps",[Y.Zk]);PG(Y,"xvt","t."+m.toFixed(3)+";m."+k.toFixed(3)+";g.2;tt."+u+";np.0;c."+n+";d."+U)}; ZQY=function(Y,u){Y.Iu||(PG(Y,"fcnz",""+u),Y.Iu=!0)}; T6u=function(Y){/[^a-zA-Z0-9;.!_-]/.test(Y)&&(Y=Y.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return Y}; g.ZW=function(Y,u,n,U,k,m,X,S,C,f){S=S===void 0?!1:S;g.e.call(this);var Q=this;this.IV=Y;this.schedule=u;this.policy=n;this.VF=U;this.jG=C;this.UD=f;this.ZW=null;this.CG=this.zZ=this.JJ=this.oV=0;this.YM=this.RN=this.isSuspended=!1;this.Pz="";this.yY={};this.Gw=NaN;this.nT=0;this.Z=null;this.CT=this.Fk=!1;this.Yp=0;this.Uc=!1;this.MF=this.Iu=0;this.Ub=null;this.jl=function(){return Q.IV.jl()}; this.timing=new I4W(this.UD);this.N=new F2(this.schedule,this.policy);this.eE=new g.Vp(this.rp,0,this);this.Qm=new g.Vp(this.rp,this.policy.Ub,this);this.Gk=new g.Vp(this.rp,1E3,this);this.Qe=new g.Vp(this.rp,void 0,this);this.dg=new g.Vp(function(){Q.isSuspended||Q.rp()},1E4,this); this.MR=new g.Vp(this.p4J,250,this);this.W=this.currentTime=NaN;this.h7=new WL(5);this.rg=this.timestampOffset=NaN;this.logger=new g.jW("dash");this.lD=Infinity;this.IH={getAudioTrack:function(){return Q.audioTrack}, iQw:function(){return Q.videoTrack}, getManifest:function(){return Q.VF}, Aig:function(){return Q.j}, rp:function(){Q.rp()}, c8:function(){Q.oV=0;Q.c8()}, Qnk:function(Z){return NB(Q,Q.videoTrack,Q.ZW.j,Z)}}; Y=C&&C.xI();C&&(l4A(C,this.VF,this.policy),this.rg=Date.now());this.K=new Nt(this,this.N,n,this.VF,k,Y);n=rUB(this.K,m,X&&X.id);this.audioTrack=new eH(this,this.policy,n.audio,this.timing);this.videoTrack=new eH(this,this.policy,n.video,this.timing);this.videoTrack.G.DW=this.audioTrack.Mo();this.TZ={updateend:this.aK,error:this.CaG};g.b(this,this.eE);g.b(this,this.Qm);g.b(this,this.Gk);g.b(this,this.Qe);g.b(this,this.dg);n=this.policy.R9&&this.policy.Im?!ccc(this.videoTrack.K.info):!1;this.uD=vh0({x8:this.policy.S.x8|| n,Im:this.policy.Im&&!n,Cb:this.policy.Cb});this.S=h$W(this,this.policy,this.uD,this.schedule,this.h7,function(Z,T){return A3A(Q,Z,T)}); this.X=new q1(this,this.VF,this.policy,this.videoTrack,this.audioTrack,S);this.policy.dg&&this.policy.j&&(this.DW=new X0Y(function(Z,T){Q.fG(Z,T)})); this.Z0=new u_(this,this.VF,this.videoTrack,this.audioTrack,this.policy);S=this.policy.Ph?this.IV.getVideoData().qX:null;this.J=new S9(this,this.policy,this.videoTrack,this.audioTrack,this.yY,this.X,this.timing,this.N,this.schedule,this.VF,this.K,this.S,n,S);g.b(this,this.J);this.G=new rN(this,this.policy,this.videoTrack,this.audioTrack,this.VF,k,v2(this.IV.getVideoData()),X==null?void 0:X.id);g.b(this,this.G);YgA(this.G,m);this.j=new UWd(this.IV,this,this.policy,this.audioTrack,this.videoTrack,this.VF, this.schedule,this.K,this.G,this.timing,this.X,this.DW);g.b(this,this.j);this.KG=this.IV.W0.eY.U_;this.policy.J||jfu(this);if(this.policy.MA){var N;this.Ru=new tXM(this.videoTrack.K.index,(N=this.IV.getVideoData().clientPlaybackNonce)!=null?N:"",this.IV,this.policy.Iu);this.policy.Iu===3&&(this.lN=new g.Vp(this.aW,200,this),this.lN.start(),g.b(this,this.lN))}this.logger.debug("Created")}; jfu=function(Y){var u,n;if((u=Y.KG)==null?0:(n=u.b0)==null?0:n.itagDenylist){var U;Y.lW((U=Y.KG)==null?void 0:U.b0.itagDenylist)}var k;if((k=Y.KG)==null?0:k.playbackStartPolicy){var m,X;Xa(Y.policy,(m=Y.KG)==null?void 0:m.playbackStartPolicy,3,(X=Y.KG)==null?void 0:X.by())}if(Y.policy.mG){u=Y.l8();var S;(n=u?(S=Y.KG)==null?void 0:S.x0.get(u):void 0)&&Y.j.Kb(n)}if(!Y.VF.N){var C;S=(C=Y.KG)==null?void 0:C.A8;(S==null?0:S.Mg)&&(S==null?0:S.Qq)&&Y.VF.W$&&aC(Y.VF,S.Mg,S.Qq)}var f;((f=Y.KG)==null?0:f.oh)&& (C=Y.KG.oh.get(Y.l8()||""))&&Y.VF&&C.formatId&&(Y=Y.VF.X.get(Jg(C.formatId)))&&(Y.info.debugInfo=C.debugInfo)}; Kjm=function(Y,u){var n=Jg(g.qO(u.K.info,Y.VF.W$)),U,k=((U=Y.jG)==null?void 0:U.Cd(n))||[];if(k.length===0)return Y.fG("ombmsi",{}),!1;k=new Cy(k);if(U=!Y.policy.KG||isFinite(Y.getCurrentTime())||Y.IV.R2()){a:{U=Y.getCurrentTime();k=g.A(k.mq);for(var m=k.next();!m.done;m=k.next())if(m=m.value,m.type===3&&U>=m.J&&U<=m.W){U=!0;break a}U=!1}U=!U}if(U)return Y.fG("ostmf",{ct:Y.getCurrentTime(),a:u.K.info.HW()}),!1;(Y=Y.jG)!=null&&(Y.JR.get(n).TW=!0);return!0}; pWS=function(Y){if(!Y.VF.W$)return!0;var u=Y.IV.getVideoData();if(Y.IV.Ws())return Y.fG("ombpa",{}),!1;var n,U;if(!!((n=Y.KG)==null?0:(U=n.A8)==null?0:U.zvw)!==Y.VF.H4)return Y.fG("ombplmm",{}),!1;n=u.nT||u.liveUtcStartSeconds||u.Qe;if(Y.VF.H4&&n)return Y.fG("ombplst",{}),!1;if(Y.VF.N)return Y.fG("ombab",{}),!1;n=Date.now();return $h(Y.VF)&&!isNaN(Y.rg)&&n-Y.rg>Y.policy.tO*1E3?(Y.fG("ombttl",{}),!1):Y.VF.qA&&Y.VF.G||!Y.policy.DR&&Y.VF.isPremiere||ze(u)!==0&&!Y.policy.K||u.V("html5_disable_onesie_media_for_mosaic")&& ZP(u)||u.u6()&&!u.V("html5_enable_onesie_media_for_lifa")&&u.isDaiEnabled()&&u.enableServerStitchedDai||u.V("html5_disable_onesie_media_for_lifa_eligible")&&ND(u)?!1:!0}; LjM=function(Y,u){var n=u.K,U=Y.VF.W$;if(pWS(Y))if(Y.jG&&Y.jG.JR.has(Jg(g.qO(n.info,U)))){if(U=Jg(g.qO(n.info,U)),Kjm(Y,u)){var k=new Cy(Y.jG.Cd(U)),m=function(X){try{if(X.DT())Y.handleError(X.Sh(),X.Mz()),ar(u,X),QN(X.info)&&Ni(Y.J,u,n,!0),Y.rp();else if(iv(Y.J,X)){var S;(S=Y.X)==null||uLe(S,X.info,Y.Z);Y.rp()}}catch(C){X=TF(C),Y.handleError(X.errorCode,X.details,X.severity),Y.lE()}}; n.X=!0;fy(k)&&(zj(u,new n$(Y.policy,U,k,Y.jG,m)),JX(Y.timing))}}else Y.fG("ombfmt",{})}; tc7=function(Y,u){u=u||Y.videoTrack&&Y.videoTrack.j&&Y.videoTrack.j.startTime||Y.getCurrentTime();var n=Zo,U=Y.videoTrack,k=Y.K;u=k.nextVideo&&k.nextVideo.index.x$(u)||0;k.DW!==u&&(k.MF={},k.DW=u,i0(k,k.K));u=!k.K.isLocked()&&k.N>-1&&(0,g.j2)()-k.Nu.K&&u.reason==="b";U||k||n?(Y.IV.EY({reattachOnConstraint:U?"u":k?"drm":"perf",lo:u.j,up:u.K}),Y.policy.Bv||(Y.G.K.j=!1)):(Y.policy.Bv&&(Y.G.K.j=!1),YQ(Y))}}else if(!MWu(Y.K,u)&&Y.videoTrack){Y.logger.debug(function(){return"Setting constraint: r="+u.reason+" u="+u.K}); n=Y.K.K;lPt(Y,d2d(Y.K,u));tc7(Y);U=u.isLocked()&&u.reason==="m"&&Y.K.oV;k=Y.policy.vC&&u.reason==="l"&&YL(Y.videoTrack);n=n.K>u.K&&u.reason==="b";var m=Y.K.TZ&&!Tu();U||k||n||m?Y.IV.EY({reattachOnConstraint:U?"u":k?"drm":m?"codec":"perf"}):YQ(Y)}}; wWA=function(Y,u,n){if((!Y.ZW||db(Y.ZW)&&!Y.policy.PD)&&!Y.Z0.isSeeking()&&(Y.policy.K||YL(u)&&u.K.qa()&&Y.K.KG)){var U=Y.getCurrentTime()+ZqW(Y.N,u,n);Y.logger.debug(function(){return"Clearing back to "+U.toFixed(3)}); GNd(u,U)}}; lPt=function(Y,u){u&&(Y.logger.debug(function(){return"Logging new format: "+nh(u.video.info)}),Wjc(Y.IV,new XO(u.video,u.reason))); if(Y.K.zZ){var n=K$A(Y.K,"a");Y.IV.jr(new XO(n.audio,n.reason))}}; YQ=function(Y){g.OQ(Y.eE)}; yBA=function(Y){Y.policy.Ub&&Y.policy.Cb&&Math.min(djG(Y.videoTrack),djG(Y.audioTrack))*1E3>Y.policy.On?g.OQ(Y.Qm):Y.rp()}; e5t=function(Y,u){var n=(0,g.j2)()-u,U=FO(Y.audioTrack,!0)*1E3,k=FO(Y.videoTrack,!0)*1E3;Y.logger.debug(function(){return"Appends paused for "+n}); if(Y.policy.X&&(Y.fG("apdpe",{dur:n.toFixed(),abuf:U.toFixed(),vbuf:k.toFixed()}),m1(Y.policy))){var m=aP(Y.N);Y.fG("sdps",{ct:u,ah:U.toFixed(),vh:k.toFixed(),mr:$X(Y.N,Y.YM,m),bw:m.toFixed(),js:Y.isSeeking(),re:+Y.YM,ps:(Y.policy.Uw||"").toString(),rn:(Y.policy.VP||"").toString()})}}; bQm=function(Y){if(tFB(Y.videoTrack))return Y.logger.debug("Pausing appends for server-selectable format"),"ssf";if(Y.policy.CG&&U9(Y.videoTrack)&&U9(Y.audioTrack))return"updateEnd";if($7(Y.audioTrack)||$7(Y.videoTrack)&&Y.videoTrack.K.info.aV!=="f")return"";if(Y.Z0.isSeeking()){var u=Y.N;var n=Y.videoTrack;var U=Y.audioTrack;if(u.policy.K){var k=u.policy.Ee;m1(u.policy)&&(k=$X(u,!1,aP(u)));u=k;n=FO(U,!0)>=u&&FO(n,!0)>=u}else n.X.length||U.X.length?(k=n.K.info.NF+U.K.info.NF,k=10*(1-aP(u)/k),u=Math.max(k, u.policy.Ee),n=FO(U,!0)>=u&&FO(n,!0)>=u):n=!0;if(!n)return"abr";n=Y.videoTrack;if(n.X.length>0&&n.G.j.length===1&&F$B(n.G).info.Z360);U=m1(Y.policy)&&Y.policy.hG;if(!Y.YM||!U&&n)return"";n=Y.policy.w7;m1(Y.policy)&&(n=$X(Y.N,Y.YM,aP(Y.N)));n=jmd(Y.videoTrack,Y.getCurrentTime(),n)||jmd(Y.audioTrack,Y.getCurrentTime(), n);return m1(Y.policy)?n?"mbnm":"":(Y.videoTrack.X.length>0||Y.audioTrack.X.length>0||CS(Y.J,Y.videoTrack,Y.audioTrack)||CS(Y.J,Y.audioTrack,Y.videoTrack))&&n?"nord":""}; IPe=function(Y){if(Y.S){var u=Y.S.rp(Y.audioTrack,SJ(Y.ZW.j.v4()));u&&Y.IV.seekTo(u,{Dl:!0,L0:"pollSubsegmentReadahead",xT:!0})}}; OQt=function(Y,u,n){if(Y.policy.CG&&U9(u))return!1;if(n.gZ())return!0;if(!n.ek())return!1;var U=N1(u);if(!U||U.info.type===6)return!1;var k;if(Y.policy.Xc||((k=Y.X)==null?0:m2m(k,u,U.info.Wz)))Y.CG=0;else return Y.Z0.isSeeking()&&YQ(Y),Y.CG=Y.CG||(0,g.j2)(),!1;if(!NB(Y,u,n,U.info))return!1;if(Y.VF.j&&U.info.j===0){if(k=z5e(u,n,U)){var m=Ir(u);Y.fG("initchg",{it:U.info.K.info.id,sr:!!m&&m.K===U.info.K,ty:U.info.type,seg:U.info.Wz})}m=g.FC(U.info.K.info);Y.policy.tS&&m&&!k&&uT7(U)}m=Y.S&&!!Y.S.G&&u.K.info.audio; k=Y.VF.isManifestless||U.J;if(!(Y.VF.j&&U.info.j!==0||k&&!m)&&gNG(Y,u,n,U))return!0;if(m)return!1;m=PU(Y,u);m=Y.getCurrentTime()+m;if(U.info.J>m)return Y.policy.K&&ENB(Y,u),Y.policy.qU&&tfm(u.G,m,!1),!1;HQu(Y,u);var X;Y.policy.gL&&n===((X=Y.ZW)==null?void 0:X.K)&&Y.Uc&&(n.oR()===0?(Y.Uc=!1,Y.policy.gL=!1):Y.Iu=n.oR());if(!y3G(Y,n,U,u))return!1;Y.policy.CG&&U.info.LU()?(Y.IV.Y().gX()&&Y.fG("eosl",{ls:U.info.RH()}),U.isLocked=!0):(u.nL(U),jCd(Y.K,U.info),Y.logger.debug(function(){return"Appended "+ U.info.RH()+", buffered: "+k6(n.v4())})); k&&Vcu(Y,U.info.K.VT);return!0}; ENB=function(Y,u){u===Y.videoTrack?Y.zZ=Y.zZ||(0,g.j2)():Y.JJ=Y.JJ||(0,g.j2)()}; HQu=function(Y,u){u===Y.videoTrack?Y.zZ=0:Y.JJ=0}; y3G=function(Y,u,n,U){var k=Y.policy.Qm?(0,g.j2)():0,m=n.J&&n.info.K.K||void 0,X=n.j;n.J&&(X=FjA(Y,n,X)||X);var S=X5(X);X=Y.policy.Qm?(0,g.j2)():0;u=J37(Y,u,S,n.info,m);(U=U.N)!=null&&(m=n.info,k=X-k,X=(0,g.j2)()-X,!U.j||sku(U.j,m)&&U.j.Wz===m.Wz||U.flush(),U.G+=k,U.X+=X,k=1,!U.j&&m.j&&(k=2),d8(U,k,u),X=Math.ceil(m.j/1024),k===2&&U.K.add(X),U.K.add(Math.ceil((m.j+m.X)/1024)-X),U.j=m);Y.MF=0;if(u===0)return Y.Fk&&(Y.logger.debug("Retry succeed, back to normal append logic."),Y.Fk=!1,Y.CT=!1),Y.nT= 0,!0;if(u===2||u===5)return qAY(Y,"checked",u,n.info),!1;if(u===1){if(!Y.Fk)return Y.logger.debug("QuotaExceeded, retrying."),Y.Fk=!0,!1;if(!Y.CT)return Y.CT=!0,Y.IV.seekTo(Y.getCurrentTime(),{L0:"quotaExceeded",xT:!0}),!1;n.info.OX()?(k=Y.policy,k.Fk=Math.floor(k.Fk*.8),k.jG=Math.floor(k.jG*.8)):(k=Y.policy,k.Uc=Math.floor(k.Uc*.8),k.jG=Math.floor(k.jG*.8));Y.policy.K?SH(Y.G.K,n.info.K,!1):Tj(Y.K,n.info.K)}Y.IV.EY({reattachOnAppend:u});return!1}; FjA=function(Y,u,n){var U;if(U=Y.policy.a5&&Y.ZW&&!Y.ZW.Z&&!Y.IV.G7())u=u.info.K.info,U=u.Kp()&&zF(u)&&u.video&&u.video.width<3840&&u.video.width>u.video.height;if(U&&(Y.ZW.Z=!0,dC('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return n=VWB(n),Y.policy.X&&Y.fG("sp4k",{s:!!n}),n}; qAY=function(Y,u,n,U){var k="fmt.unplayable",m=1;n===5||n===3?(k="fmt.unparseable",Y.policy.K?!U.K.info.video||CF(Y.G.K).size>0||SH(Y.G.K,U.K,!1):!U.K.info.video||CF(Y.K.J).size>0||Tj(Y.K,U.K)):n===2&&(Y.nT<15?(Y.nT++,k="html5.invalidstate",m=0):k="fmt.unplayable");U=P0(U);var X;U.mrs=(X=Y.ZW)==null?void 0:Kh(X);U.origin=u;U.reason=n;U.trg="appenderr";Y.handleError(k,U,m)}; fU0=function(Y,u,n,U,k){var m=Y.VF;var X=Y.policy.K,S=!1,C=-1,f;for(f in m.K){var Q=Y6(m.K[f].info.mimeType)||m.K[f].info.OX();if(U===Q)if(Q=m.K[f].index,Q.Fh(u.Wz)){S=Q;var N=u,Z=S.hZ(N.Wz);Z&&Z.startTime!==N.startTime?(S.segments=[],S.P6(N),S=!0):S=!1;S?C=u.Wz:!u.pending&&X&&(N=Q.getDuration(u.Wz),N!==u.duration&&(m.publish("clienttemp","mfldurUpdate",{itag:m.K[f].info.itag,seg:u.Wz,od:N,nd:u.duration},!1),Q.P6(u),S=!0))}else Q.P6(u),S=!0}C>=0&&(X={},m.publish("clienttemp","resetMflIndex",(X[U? "v":"a"]=C,X),!1));m=S;vpA(Y.Z0,u,U,m);if(Y.policy.dg&&Y.policy.j&&(C=u.hS||null)){var T;X=(T=Y.j)==null?void 0:dWS(T).requestNumber;var r;(r=Y.DW)==null||PjM(r,C,X)}Y.X.BF(u,n,U,k);u.Wz===Y.VF.qA&&m&&OT(Y.VF)&&u.startTime>OT(Y.VF)&&(Y.VF.DW=u.startTime+(isNaN(Y.timestampOffset)?0:Y.timestampOffset),Y.Z0.isSeeking()&&Y.Z0.targetTime5)return Y.MF= 0,Y.IV.EY({initSegStuck:1,as:U.info.RH()}),!0}else Y.MF=0,Y.Ub=U;Y.policy.Ez&&(n.abort(),(X=u.N)!=null&&(d8(X,4),X.flush()));k=J37(Y,n,m,C,k);var f;(f=u.N)==null||Rc7(f,k,C);if(k!==0)return aP7(Y,k,U),!0;U.info.OX()?ygu(Y.timing):Vbd(Y.timing);Y.logger.debug(function(){return"Appended init for "+U.info.K.info.id}); Vcu(Y,U.info.K.VT);return n.yN()}; z5e=function(Y,u,n){if(u.xZ()==null){Y=Ir(Y);if(!(u=!Y||Y.K!==n.info.K)){a:if(Y=Y.N,n=n.info.N,Y.length!==n.length)n=!1;else{for(u=0;u1)return 6;X.MF=new g.Vp(function(){var S=N1(X);Y.gg()||S==null||!S.isLocked?Y.IV.Y().gX()&&Y.fG("eosl",{delayA:S==null?void 0:S.info.RH()}):$Du(X)?(Y.IV.Y().gX()&&Y.fG("eosl",{dunlock:S==null?void 0:S.info.RH()}),YS0(Y,X===Y.audioTrack)):(Y.fG("nue",{ls:S.info.RH()}),S.info.KG+=1,Y.ZW&&Y.c8())},1E4,Y); Y.IV.Y().gX()&&Y.fG("eosl",{delayS:U.RH()});X.MF.start()}Y.policy.Gs&&(U==null?void 0:U.K)instanceof ij&&U.LU()&&Y.fG("poseos",{itag:U.K.info.itag,seg:U.Wz,lseg:U.K.index.iD(),es:U.K.index.X});u.appendBuffer(n,U,k)}catch(S){if(S instanceof DOMException){if(S.code===11)return 2;if(S.code===12)return 5;if(S.code===22||S.message.indexOf("Not enough storage")===0)return u=Object.assign({name:"QuotaExceededError",buffered:k6(u.v4()).replace(/,/g,"_"),vheap:Vr(Y.videoTrack),aheap:Vr(Y.audioTrack),message:g.ci(S.message, 3),track:Y.ZW?u===Y.ZW.j?"v":"a":"u"},I9e()),Y.handleError("player.exception",u),1;g.tl(S)}return 4}return Y.ZW.cW()?3:0}; QB=function(Y,u,n){oNm(Y,n.L0||"unknown");Y.IV.seekTo(u,n)}; Vcu=function(Y,u){u&&Y.IV.XJ(new BC(u.key,u.type))}; Rr=function(Y,u){Y.IV.k9(u)}; PU=function(Y,u){if(Y.policy.KG&&Y.Fk&&!Y.YM)return Y.policy.iR;if(Y.Fk&&!Y.YM)return 3;if(Y.isSuspended)return 1;var n;if((n=Y.ZW)==null?0:n.ZW&&n.ZW.streaming===!1)return 4;n=(u.K.info.audio?Y.policy.Uc:Y.policy.Fk)/(u.NF*Y.policy.TG);if(Y.policy.tq>0&&Y.ZW&&db(Y.ZW)&&(u=u.K.info.video?Y.ZW.j:Y.ZW.K)&&!u.yN()){u=u.v4();var U=m4(u,Y.getCurrentTime());U>=0&&(u=Y.getCurrentTime()-u.start(U),n+=Math.max(0,Math.min(u-Y.policy.tq,Y.policy.pZ)))}Y.policy.jG>0&&(n=Math.min(n,Y.policy.jG));return n}; SZu=function(Y,u){return(PU(Y,u)+Y.policy.M_)*u.NF}; nXt=function(Y){Y.Pz&&!Y.isSuspended&&JB(Y.schedule)&&(u2c(Y,Y.Pz),Y.Pz="")}; u2c=function(Y,u){OS(u,"cms",function(n){Y.policy.X&&Y.fG("pathprobe",n)},function(n){Y.IV.handleError(n)})}; UAd=function(Y,u){if(Y.ZW&&Y.ZW.G&&!Y.ZW.cW()&&(u.Ju=FO(Y.videoTrack),u.j=FO(Y.audioTrack),Y.policy.X)){var n=Vr(Y.videoTrack),U=Vr(Y.audioTrack),k=k6(Y.ZW.j.v4(),"_",5),m=k6(Y.ZW.K.v4(),"_",5);Object.assign(u.K,{lvq:n,laq:U,lvb:k,lab:m})}u.bandwidthEstimate=JO(Y.N);var X;(X=Y.audioTrack.N)==null||X.flush();var S;(S=Y.videoTrack.N)==null||S.flush();Y.logger.debug(function(){return NO(u.K)})}; kGd=function(Y,u){Y.Z=u;Y.X&&(Y.X.X=u);Y.Z.Vh(Y.videoTrack.K.info.Kp());Y.J.j=Y.Z;Y.policy.j&&(Y.j.Z=Y.Z)}; XO0=function(Y,u){if(Y.ZW&&Y.ZW.j){if(Y.policy.pM){var n=cBm(Y.audioTrack);if(n&&n.HW()){var U=Y.IV;if(U.g0&&(U.g0.K=n,n=U.Vm,n.qoe)){n=n.qoe;U=U.g0;var k=g.Sk(n.provider);dD0(n,k,U)}}}Y.policy.Pp&&(n=cBm(Y.videoTrack))&&n.OX()&&(U=Y.IV,U.Cz&&(U.Cz.K=n,n=U.Vm,n.qoe&&r3c(n.qoe,U.Cz)));u-=isNaN(Y.timestampOffset)?0:Y.timestampOffset;Y.getCurrentTime()!==u&&Y.resume();Y.Z0.isSeeking()&&Y.ZW&&!Y.ZW.cW()&&(U=Y.getCurrentTime()<=u&&u=u&&A3A(Y,U.startTime,!1)}); return n&&n.startTimeY.getCurrentTime())return n.start/1E3;return Infinity}; Q27=function(Y){if(Y.IV.getVideoData().isLivePlayback)return!1;var u=Y.IV.wD();if(!u)return!1;u=u.getDuration();if(Y.ZW&&Y.ZW.K&&Y.ZW.j){var n=Y.getCurrentTime(),U=Y.ZW.K.v4();Y=Y.ZW.j.v4();U=U?Pa(U,n):n;n=Y?Pa(Y,n):n;n=Math.min(U,n);u=isNaN(n)?!1:n>=u-.01}else u=!1;return u}; aP7=function(Y,u,n){Y.policy.w1&&c2(Y.IV.getVideoData())?(Y.IV.C2()||qAY(Y,"sepInit",u,n.info),diM(Y.IV,"sie")):qAY(Y,"sepInit",u,n.info)}; VFW=function(Y){return Y.IV.bA()0){var U=n.K.shift();AsM(n,U.info)}n.K.length>0&&(U=n.K[0].time-(0,g.j2)(),n.j.start(Math.max(0,U)))}},0); g.b(this,this.j);u.subscribe("widevine_set_need_key_info",this.G,this)}; AsM=function(Y,u){a:{var n=u.cryptoPeriodIndex;if(isNaN(n)&&Y.X.size>0)n=!0;else{for(var U=g.A(Y.X.values()),k=U.next();!k.done;k=U.next())if(k.value.cryptoPeriodIndex===n){n=!0;break a}n=!1}}Y.publish("log_qoe",{wvagt:"reqnews",canskip:n});n||Y.publish("rotated_need_key_info_ready",u)}; j6B=function(){var Y={};var u=Y.url;var n=Y.interval;Y=Y.retries;this.url=u;this.interval=n;this.retries=Y}; K1M=function(Y,u){this.statusCode=Y;this.message=u;this.j=this.heartbeatParams=this.errorMessage=null;this.K={};this.nextFairplayKeyId=null}; pte=function(Y,u,n){n=n===void 0?"":n;g.e.call(this);this.message=Y;this.requestNumber=u;this.timer=n;this.onError=this.onSuccess=null;this.K=new g.lr(5E3,2E4,.2)}; L10=function(Y,u,n){Y.onSuccess=u;Y.onError=n}; BN0=function(Y,u,n,U){var k={timeout:3E4,onSuccess:function(m){if(!Y.gg()){Kg("drm_net_r",void 0,Y.timer);var X=m.status==="LICENSE_STATUS_OK"?0:9999,S=null;if(m.license)try{S=vi(m.license)}catch(r){g.tl(r)}if(X!==0||S){S=new K1M(X,S);X!==0&&m.reason&&(S.errorMessage=m.reason);if(m.authorizedFormats){X={};for(var C=[],f={},Q=g.A(m.authorizedFormats),N=Q.next();!N.done;N=Q.next())if(N=N.value,N.trackType&&N.keyId){var Z=t9d[N.trackType];if(Z){Z==="HD"&&m.isHd720&&(Z="HD720");N.isHdr&&(Z+="HDR");X[Z]|| (C.push(Z),X[Z]=!0);var T=null;try{T=vi(N.keyId)}catch(r){g.tl(r)}T&&(f[g.oE(T,4)]=Z)}}S.j=C;S.K=f}m.nextFairplayKeyId&&(S.nextFairplayKeyId=m.nextFairplayKeyId);m.sabrLicenseConstraint&&(S.sabrLicenseConstraint=vi(m.sabrLicenseConstraint));m=S}else m=null;if(m)Y.onSuccess(m,Y.requestNumber);else Y.onError(Y,"drm.net","t.p;p.i")}}, onError:function(m){if(!Y.gg())if(m&&m.error)m=m.error,Y.onError(Y,"drm.net.badstatus","t.r;p.i;c."+m.code+";s."+m.status,m.code);else Y.onError(Y,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){Y.onError(Y,"drm.net","rt.req."+Y.requestNumber)}}; U&&(k.LN="Bearer "+U);g.yH(n,"player/get_drm_license",u,k)}; oLt=function(Y,u,n,U){g.ud.call(this);this.videoData=Y;this.xw=u;this.Z=n;this.sessionId=U;this.J={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.KG=this.oV=!1;this.X=null;this.jG=[];this.G=[];this.authorizedFormats=[];this.S=!1;this.K={};this.status="";this.W=NaN;this.j=Y.J;this.cryptoPeriodIndex=n.cryptoPeriodIndex;Y={};Object.assign(Y,this.xw.K);Y.cpn=this.videoData.clientPlaybackNonce;this.videoData.rg&&(Y.vvt=this.videoData.rg,this.videoData.mdxEnvironment&&(Y.mdx_environment= this.videoData.mdxEnvironment));this.xw.jG&&(Y.authuser=this.xw.jG);this.xw.pageId&&(Y.pageid=this.xw.pageId);isNaN(this.cryptoPeriodIndex)||(Y.cpi=this.cryptoPeriodIndex.toString());var k=(k=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Wq()))?k[1]:"";k==="ATV"&&(Y.cdt=k);this.J=Y;this.J.session_id=U;this.N=!0;this.j.flavor==="widevine"&&(this.J.hdr="1");this.j.flavor==="playready"&&(u=Number(AB(u.experiments,"playready_first_play_expiration")),!isNaN(u)&&u>=0&&(this.J.mfpe=""+u),this.N=!1);u="";g.Nj(this.j)? QF(this.j)?(U=n.j)&&(u="https://www.youtube.com/api/drm/fps?ek="+jKu(U)):(u=n.initData.subarray(4),u=new Uint16Array(u.buffer,u.byteOffset,u.byteLength/2),u=String.fromCharCode.apply(null,u).replace("skd://","https://")):u=this.j.j;this.baseUrl=u;this.fairplayKeyId=jV(this.baseUrl,"ek")||"";if(u=jV(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(u);this.jG=n.Kp?[g.oE(n.initData,4)]:n.X;dw(this,{sessioninit:n.cryptoPeriodIndex});this.status="in"}; DiB=function(Y,u){dw(Y,{createkeysession:1});Y.status="gr";Kg("drm_gk_s",void 0,Y.videoData.KG);Y.url=csG(Y);try{Y.X=u.createSession(Y.Z,function(n){dw(Y,{m:n})})}catch(n){u="t.g"; n instanceof DOMException&&(u+=";c."+n.code);Y.publish("licenseerror","drm.unavailable",1,u,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}Y.X&&(vLW(Y.X,function(n,U){RM0(Y,n,U)},function(n,U,k){if(!Y.gg()){U=void 0; var m=1;g.Nj(Y.j)&&g.CV(Y.xw)&&Y.xw.V("html5_enable_safari_fairplay")&&k===1212433232&&(U="ERROR_HDCP",m=Y.xw.V("html5_safari_fairplay_ignore_hdcp")?0:m);Y.error("drm.keyerror",m,n,U)}},function(){Y.gg()||(dw(Y,{onkyadd:1}),Y.KG||(Y.publish("sessionready"),Y.KG=!0))},function(n){Y.x5(n)}),g.b(Y,Y.X))}; csG=function(Y){var u=Y.baseUrl;TUM(u)||Y.error("drm.net",2,"t.x");if(!jV(u,"fexp")){var n=["23898307","23914062","23916106","23883098"].filter(function(k){return Y.xw.experiments.experiments[k]}); n.length>0&&(Y.J.fexp=n.join())}n=g.A(Object.keys(Y.J));for(var U=n.next();!U.done;U=n.next())U=U.value,u=E3Y(u,U,Y.J[U]);return u}; RM0=function(Y,u,n){if(!Y.gg())if(u){dw(Y,{onkmtyp:n});Y.status="km";switch(n){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":xiS(Y,u);return;default:Y.publish("ctmp","message_type",{t:n,l:u.byteLength})}Y.oV||(Kg("drm_gk_f",void 0,Y.videoData.KG),Y.oV=!0,Y.publish("newsession",Y));if(SF(Y.j)&&(u=loA(u),!u))return;u=new pte(u,++Y.requestNumber,Y.videoData.KG);L10(u,function(U){hMm(Y,U)},function(U,k,m){if(!Y.gg()){var X=0; U.K.j>=3&&(X=1,k="drm.net.retryexhausted");dw(Y,{onlcsrqerr:k,info:m});Y.error(k,X,m);Y.shouldRetry(ZF(X),U)&&wt0(Y,U)}}); g.b(Y,u);W17(Y,u)}else Y.error("drm.unavailable",1,"km.empty")}; xiS=function(Y,u){dw(Y,{sdpvrq:1});Y.W=Date.now();if(Y.j.flavor!=="widevine")Y.error("drm.provision",1,"e.flavor;f."+Y.j.flavor+";l."+u.byteLength);else{var n={cpn:Y.videoData.clientPlaybackNonce};Object.assign(n,Y.xw.K);n=g.Mk("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",n);u={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, u)}),responseType:"arraybuffer"};g.Lv(n,u,3,500).then(u6(function(U){U=U.xhr;if(!Y.gg()){U=new Uint8Array(U.response);var k=String.fromCharCode.apply(null,U);try{var m=JSON.parse(k)}catch(X){}m&&m.signedResponse?(Y.publish("ctmp","drminfo",{provisioning:1}),m=(Date.now()-Y.W)/1E3,Y.W=NaN,Y.publish("ctmp","provs",{et:m.toFixed(3)}),Y.X&&Y.X.update(U)):(m=m&&m.error&&m.error.message,U="e.parse",m&&(U+=";m."+m),Y.error("drm.provision",1,U))}}),u6(function(U){Y.gg()||Y.error("drm.provision",1,"e."+U.errorCode+ ";c."+(U.xhr&&U.xhr.status))}))}}; G9=function(Y){var u;if(u=Y.N&&Y.X!=null)Y=Y.X,u=!(!Y.K||!Y.K.keyStatuses);return u}; W17=function(Y,u){Y.status="km";Kg("drm_net_s",void 0,Y.videoData.KG);var n=new g.HN(Y.xw.ZN),U={context:g.PN(n.config_||g.Xu())};U.drmSystem=eMG[Y.j.flavor];U.videoId=Y.videoData.videoId;U.cpn=Y.videoData.clientPlaybackNonce;U.sessionId=Y.sessionId;U.licenseRequest=g.oE(u.message);U.drmParams=Y.videoData.drmParams;isNaN(Y.cryptoPeriodIndex)||(U.isKeyRotated=!0,U.cryptoPeriodIndex=Y.cryptoPeriodIndex);var k,m,X=!!((k=Y.videoData.j)==null?0:(m=k.video)==null?0:m.isHdr());U.drmVideoFeature=X?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(U.context&&U.context.client){if(k=Y.xw.K)U.context.client.deviceMake=k.cbrand,U.context.client.deviceModel=k.cmodel,U.context.client.browserName=k.cbr,U.context.client.browserVersion=k.cbrver,U.context.client.osName=k.cos,U.context.client.osVersion=k.cosver;U.context.user=U.context.user||{};U.context.request=U.context.request||{};Y.videoData.rg&&(U.context.user.credentialTransferTokens=[{token:Y.videoData.rg,scope:"VIDEO"}]);U.context.request.mdxEnvironment=Y.videoData.mdxEnvironment|| U.context.request.mdxEnvironment;Y.videoData.uD&&(U.context.user.kidsParent={oauthToken:Y.videoData.uD});g.Nj(Y.j)&&(U.fairplayKeyId=g.oE(Ks0(Y.fairplayKeyId)));g.DA(Y.xw,g.Qs(Y.videoData)).then(function(S){BN0(u,U,n,S);Y.status="rs"})}else Y.error("drm.net",2,"t.r;ic.0")}; hMm=function(Y,u){if(!Y.gg())if(dw(Y,{onlcsrsp:1}),Y.status="rr",u.statusCode!==0)Y.error("drm.auth",1,"t.f;c."+u.statusCode,u.errorMessage||void 0);else{Kg("drm_kr_s",void 0,Y.videoData.KG);if(u.heartbeatParams&&u.heartbeatParams.url&&Y.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var n=Y.j.j.match(/(.*)youtube.com/g);n&&(u.heartbeatParams.url=n[0]+u.heartbeatParams.url)}u.heartbeatParams&&Y.publish("newlicense",u.heartbeatParams);u.j&&(Y.G=u.j,Y.videoData.l3||Y.publish("newlicense", new j6B),Y.videoData.l3=!0,Y.S=g3(Y.G,function(U){return U.includes("HDR")})); u.K&&(Y.xw.V("html5_enable_vp9_fairplay")&&QF(Y.j)?(n=g.oE(Ks0(Y.fairplayKeyId),4),Y.K[n]={type:u.K[n],status:"unknown"}):Y.K=u4(u.K,function(U){return{type:U,status:"unknown"}})); fD(Y.j)&&(u.message=bzY(g.oE(u.message)));Y.X&&(dw(Y,{updtks:1}),Y.status="ku",Y.X.update(u.message).then(function(){Kg("drm_kr_f",void 0,Y.videoData.KG);G9(Y)||(dw(Y,{ksApiUnsup:1}),Y.publish("keystatuseschange",Y))},function(U){U="msuf.req."+Y.requestNumber+";msg."+g.ci(U.message,3); Y.error("drm.keyerror",1,U)})); g.Nj(Y.j)&&Y.publish("fairplay_next_need_key_info",Y.baseUrl,u.nextFairplayKeyId);Y.xw.V("html5_enable_vp9_fairplay")&&QF(Y.j)&&Y.publish("qualitychange",bSW(Y.G));u.sabrLicenseConstraint&&Y.publish("sabrlicenseconstraint",u.sabrLicenseConstraint)}}; wt0=function(Y,u){var n=u.K.getValue();n=new g.Vp(function(){W17(Y,u)},n); g.b(Y,n);n.start();g.hp(u.K);dw(Y,{rtyrq:1})}; Io0=function(Y,u){for(var n=[],U=g.A(Object.keys(Y.K)),k=U.next();!k.done;k=U.next())k=k.value,n.push(k+"_"+Y.K[k].type+"_"+Y.K[k].status);return n.join(u)}; zMe=function(Y){var u={};u[Y.status]=G9(Y)?Io0(Y,"."):Y.G.join(".");return u}; gLc=function(Y,u,n){var U={};U.isHdr=u.includes("HDR");switch(u.replace("HDR","").replace("720","")){case "AUDIO":U.trackType=1;break;case "SD":U.trackType=2;break;case "HD":U.trackType=3;break;case "UHD1":U.trackType=4;break;case "UHD2":U.trackType=5;break;default:U.trackType=0}!U.trackType||n[u]||G9(Y)&&!A1(Y,u)||(Y.authorizedFormats.push(U),n[u]=!0)}; A1=function(Y,u){for(var n in Y.K)if(Y.K[n].status==="usable"&&Y.K[n].type===u)return!0;return!1}; ELd=function(Y,u){for(var n in Y.K)if(Y.K[n].type===u)return Y.K[n].status}; dw=function(Y,u){var n=n===void 0?!1:n;NO(u);(n||Y.xw.gX())&&Y.publish("ctmp","drmlog",u)}; HSt=function(Y){var u=Y[0];Y[0]=Y[3];Y[3]=u;u=Y[1];Y[1]=Y[2];Y[2]=u;u=Y[4];Y[4]=Y[5];Y[5]=u;u=Y[6];Y[6]=Y[7];Y[7]=u}; bSW=function(Y){return g.jB(Y,"UHD2")||g.jB(Y,"UHD2HDR")?"highres":g.jB(Y,"UHD1")||g.jB(Y,"UHD1HDR")?"hd2160":g.jB(Y,"HD")||g.jB(Y,"HDHDR")?"hd1080":g.jB(Y,"HD720")||g.jB(Y,"HD720HDR")?"hd720":"large"}; loA=function(Y){for(var u="",n=0;n'.charCodeAt(U);Y=Y.X.createSession("video/mp4",u,n);return new jk(null,null,null,null,Y)}; $iB=function(Y,u){var n=Y.W[u.sessionId];!n&&Y.G&&(n=Y.G,Y.G=null,n.sessionId=u.sessionId,Y.W[u.sessionId]=n);return n}; JsA=function(Y,u){var n=Y.subarray(4);n=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);n=String.fromCharCode.apply(null,n).match(/ek=([0-9a-f]+)/)[1];for(var U="",k=0;k19.2999?(Y=n.f_,n=n.K_,n>=Y&&(n=Y* .75),u=(Y-n)*.5,n=new MB(u,Y,Y-u-n,this)):n=null;break a;case "widevine":n=new s8(u,this,Y);break a;default:n=null}if(this.J=n)g.b(this,this.J),this.J.subscribe("rotated_need_key_info_ready",this.Xe,this),this.J.subscribe("log_qoe",this.RO,this);ZU(this.xw.experiments);this.RO({cks:this.K.getInfo()})}; u40=function(Y){var u=F1u(Y.G);u?u.then(u6(function(){UB0(Y)}),u6(function(n){if(!Y.gg()){g.tl(n); var U="t.a";n instanceof DOMException&&(U+=";n."+n.name+";m."+n.message);Y.publish("licenseerror","drm.unavailable",1,U,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(Y.RO({mdkrdy:1}),Y.N=!0); Y.KG&&(u=F1u(Y.KG))}; mB0=function(Y,u,n){Y.JJ=!0;n=new BC(u,n);Y.xw.V("html5_eme_loader_sync")&&(Y.W.get(u)||Y.W.set(u,n));k97(Y,n)}; k97=function(Y,u){if(!Y.gg()){Y.RO({onInitData:1});if(Y.xw.V("html5_eme_loader_sync")&&Y.videoData.X&&Y.videoData.X.K){var n=Y.S.get(u.initData);u=Y.W.get(u.initData);if(!n||!u)return;u=n;n=u.initData;Y.W.remove(n);Y.S.remove(n)}Y.RO({initd:u.initData.length,ct:u.contentType});if(Y.K.flavor==="widevine")if(Y.rg&&!Y.videoData.isLivePlayback)LO(Y);else{if(!(Y.xw.V("vp9_drm_live")&&Y.videoData.isLivePlayback&&u.Kp)){Y.rg=!0;n=u.cryptoPeriodIndex;var U=u.K;zcS(u);u.Kp||(U&&u.K!==U?Y.publish("ctmp","cpsmm", {emsg:U,pssh:u.K}):n&&u.cryptoPeriodIndex!==n&&Y.publish("ctmp","cpimm",{emsg:n,pssh:u.cryptoPeriodIndex}));Y.publish("widevine_set_need_key_info",u)}}else Y.Xe(u)}}; UB0=function(Y){if(!Y.gg())if(Y.xw.V("html5_drm_set_server_cert")||QF(Y.K)){var u=Y.G.setServerCertificate();u?u.then(u6(function(n){Y.xw.gX()&&Y.publish("ctmp","ssc",{success:n})}),u6(function(n){Y.publish("ctmp","ssce",{n:n.name, m:n.message})})).then(u6(function(){XGM(Y)})):XGM(Y)}else XGM(Y)}; XGM=function(Y){Y.gg()||(Y.N=!0,Y.RO({onmdkrdy:1}),LO(Y))}; PtW=function(Y){return Y.K.flavor==="widevine"&&Y.videoData.V("html5_drm_cpi_license_key")}; LO=function(Y){if(Y.JJ&&Y.N&&!Y.DW){for(;Y.X.length;){var u=Y.X[0],n=PtW(Y)?ghc(u):g.oE(u.initData);if(QF(Y.K)&&!u.j)Y.X.shift();else{if(Y.j.get(n))if(Y.K.flavor!=="fairplay"||QF(Y.K)){Y.X.shift();continue}else Y.j.delete(n);zcS(u);break}}Y.X.length&&Y.createSession(Y.X[0])}}; S8m=function(Y){var u,n;g.l(function(U){if(U.j==1){var k;if(k=g.Io()){var m;k=!((m=Y.G.j)==null||!m.getMetrics)}return k?g.D(U,Y.G.getMetrics(),2):U.return()}u=U.K;if(!u)return U.return();$S(u)||(u=g.NJ(u));n=/^[A-Za-z0-9_-]+={0,3}$/;n.test(u)||(u=g.ci(u,void 0,!0));Y.publish("ctmp","drm",{metrics:u});g.KY(U)})}; CtA=function(){var Y=RxA();return!(!Y||Y==="visible")}; Qzu=function(Y){var u=fWS();u&&document.addEventListener(u,Y,!1)}; NwA=function(Y){var u=fWS();u&&document.removeEventListener(u,Y,!1)}; fWS=function(){if(document.visibilityState)var Y="visibilitychange";else{if(!document[fb+"VisibilityState"])return"";Y=fb+"visibilitychange"}return Y}; iOu=function(Y){g.e.call(this);var u=this;this.IV=Y;this.sy=0;this.W=this.j=this.J=!1;this.G=0;this.GZ=this.IV.Y();this.videoData=this.IV.getVideoData();this.X=g.YF(this.GZ.experiments,"html5_delayed_retry_count");this.K=new g.Vp(function(){u.IV.mT()},g.YF(this.GZ.experiments,"html5_delayed_retry_delay_ms")); g.b(this,this.K)}; szW=function(Y,u,n){var U=Y.videoData.j,k=Y.videoData.G,m=Y.GZ.V("html5_disable_codec_fallback_for_drm")&&Y.videoData.jh();c2(Y.IV.getVideoData())&&Y.GZ.V("html5_gapless_fallback_on_qoe_restart")&&diM(Y.IV,"pe");if((u==="progressive.net.retryexhausted"||u==="fmt.unplayable"||u==="fmt.decode")&&!Y.IV.Tf.J&&U&&U.itag==="22")return Y.IV.Tf.J=!0,Y.Ra("qoe.restart",{reason:"fmt.unplayable.22"}),Y.IV.JI(),!0;var X=!1;if(Y.videoData.isExternallyHostedPodcast){if(X=Y.videoData.LTZ)n.mimeType=X.type,Y.fG("3pp", {url:X.url});n.ns="3pp";Y.IV.Re(u,1,"VIDEO_UNAVAILABLE",NO((new g.iO(u,n,1)).details));return!0}var S=Y.sy+3E4<(0,g.j2)()||Y.K.isActive();if(Y.GZ.V("html5_empty_src")&&Y.videoData.isAd()&&u==="fmt.unplayable"&&/Empty src/.test(""+n.msg))return n.origin="emptysrc",Y.Ra("auth",n),!0;S||ZOu(Y.IV.XY())||(n.nonfg="paused",S=!0,Y.IV.pauseVideo());(u==="fmt.decode"||u==="fmt.unplayable")&&(k==null?0:Vg(k)||OP(k))&&(nqS(Y.GZ.J,k.aV),n.acfallexp=k.aV,X=S=!0);!S&&Y.X>0&&(Y.K.start(),S=!0,n.delayed="1",--Y.X); k=Y.IV.loader;S||!((U==null?0:yg(U))||(U==null?0:zF(U)))||m||(nqS(Y.GZ.J,U.aV),X=S=!0,n.cfallexp=U.aV);if(!S)return Twm(Y,n);m=!1;Y.J?Y.sy=(0,g.j2)():m=Y.J=!0;S=Y.videoData;if(S.TZ){S=S.TZ.vP();var C=Date.now()/1E3+1800;S=S6048E5&&jzc(Y,"signature");return!1}; jzc=function(Y,u){try{u={detail:"pr."+u},g.AA(Y.GZ)&&Y.GZ.V("html5_reload_by_kabuki_app")?Y.IV.Re("qoe.restart",1,void 0,NO(u),"7"):(Y.Ra("qoe.restart",u),window.location.reload())}catch(n){}}; pGu=function(Y,u){var n=Y.GZ.J;n.S=!1;n.j=!0;Y.Ra("qoe.restart",{e:u===void 0?"fmt.noneavailable":u,detail:"hdr"});Y.IV.mT(!0)}; LFm=function(Y,u,n,U,k,m){this.videoData=Y;this.K=u;this.reason=n;this.j=U;this.token=k;this.videoId=m}; t1=function(Y,u,n){this.xw=Y;this.rE=u;this.IV=n;this.Z=this.W=this.K=this.G=this.S=this.j=0;this.J=!1;this.N=g.YF(this.xw.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.X=new Map}; tku=function(Y,u,n){!Y.xw.V("html5_tv_ignore_capable_constraint")&&g.Zp(Y.xw)&&(n=n.compose(Y.H_(u)));return n}; Bwt=function(Y){if(Y.IV.XY().isInline())return MW;var u;Y.V("html5_exponential_memory_for_sticky")?u=qj(Y.xw.b8,"sticky-lifetime")<.5?"auto":D5[sd()]:u=D5[sd()];return g.c5("auto",u,!1,"s")}; c1t=function(Y,u){var n,U=oQe(Y,(n=u.K)==null?void 0:n.videoInfos);n=Y.IV.getPlaybackRate();return n>1&&U?(Y=ayc(Y.xw.J,u.K.videoInfos,n),new os(0,Y,!0,"o")):new os(0,0,!1,"o")}; oQe=function(Y,u){return u&&g.Zp(Y.xw)?u.some(function(n){return n.video.fps>32}):!1}; vQt=function(Y,u){if(Y.V("html5_disable_ustreamer_constraint_for_sabr")&&xR(u.videoData))return MW;var n=Y.IV.kK();Y.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&n&&n.B9>0&&Rs(u.videoData.Ph)&&(Y=n.B9,u.videoData.Ph=new os(0,Y,!1,"u"));return u.videoData.Ph}; Ry7=function(Y,u){var n;a:if((n=u.K)&&n.videoInfos.length){for(var U=g.A(n.videoInfos),k=U.next();!k.done;k=U.next()){k=k.value;var m=void 0;if((m=k.j)==null?0:m.smooth){n=k.video.qualityOrdinal;break a}}n=n.videoInfos[0].video.qualityOrdinal}else n=0;iJt()&&!g.Zp(Y.xw)&&zF(u.K.videoInfos[0])&&(n=Math.min(n,g.hn.large));U=g.YF(Y.xw.experiments,"html5_chipset_soft_cap");U>0&&(n=Math.min(n,U));if(U=g.YF(Y.xw.experiments,"html5_max_vertical_resolution")){k=4320;for(m=0;mU&&(k=Math.min(k,X.video.qualityOrdinal))}if(k<4320){for(X=m=0;X32){k=!0;break a}}k=!1}k&&(n=Math.min(n,U));(U=g.YF(Y.xw.experiments,"html5_live_quality_cap"))&&u.videoData.isLivePlayback&&(n=Math.min(n,U));n=DBm(Y,u,n);Y=g.YF(Y.xw.experiments,"html5_byterate_soft_cap");return new os(0,n===4320?0:n,!1,"d",Y)}; lWY=function(Y){var u,n,U,k;return g.l(function(m){switch(m.j){case 1:return Y.K.K&&typeof((u=navigator.mediaCapabilities)==null?void 0:u.decodingInfo)==="function"?g.D(m,Promise.resolve(),2):m.return(Promise.resolve());case 2:n=g.A(Y.K.videoInfos),U=n.next();case 3:if(U.done){m.qF(0);break}k=U.value;return g.D(m,DGW(k),4);case 4:U=n.next(),m.qF(3)}})}; wGu=function(Y,u){if(!u.videoData.j||Y.V("html5_disable_performance_downgrade"))return!1;Date.now()-Y.S>6E4&&(Y.j=0);Y.j++;Y.S=Date.now();if(Y.j!==4)return!1;hy7(Y,u.videoData.j);return!0}; eyA=function(Y,u,n,U){if(!u||!n||!u.videoData.j)return!1;var k=g.YF(Y.xw.experiments,"html5_df_downgrade_thresh"),m=Y.V("html5_log_media_perf_info");if(!((0,g.j2)()-Y.G<5E3?0:m||k>0))return!1;var X=((0,g.j2)()-Y.G)/1E3;Y.G=(0,g.j2)();n=n.getVideoPlaybackQuality();if(!n)return!1;var S=n.droppedVideoFrames-Y.W,C=n.totalVideoFrames-Y.Z;Y.W=n.droppedVideoFrames;Y.Z=n.totalVideoFrames;var f=n.displayCompositedVideoFrames===0?0:n.displayCompositedVideoFrames||-1;m&&Y.xw.gX()&&Y.IV.fG("ddf",{dr:n.droppedVideoFrames, de:n.totalVideoFrames,comp:f});if(U)return Y.K=0,!1;if((C-S)/X>Y.N||!k||g.Zp(Y.xw))return!1;Y.K=(C>60?S/C:0)>k?Y.K+1:0;if(Y.K!==3)return!1;hy7(Y,u.videoData.j);Y.IV.fG("dfd",Object.assign({dr:n.droppedVideoFrames,de:n.totalVideoFrames},WFW()));return!0}; hy7=function(Y,u){var n=u.aV,U=u.video.fps,k=u.video.qualityOrdinal-1,m=Y.X;u=""+n+(U>49?"p60":U>32?"p48":"");n=Um(n,U,m);k>0&&(n=Math.min(n,k));if(!BG.has(u)&&Ad().includes(u)){var X=n;n=GY();+n[u]>0&&(X=Math.min(+n[u],X));n[u]!==X&&(n[u]=X,g.oU("yt-player-performance-cap",n,2592E3))}else if(BG.has(u)||m==null){a:{X=X===void 0?!0:X;U=Ad().slice();if(X){if(U.includes(u))break a;U.push(u)}else{if(!U.includes(u))break a;U.splice(U.indexOf(u),1)}g.oU("yt-player-performance-cap-active-set",U,2592E3)}nD.set(u, n)}else BG.add(u),m==null||m.set(u,n);Y.IV.NW()}; bOt=function(Y,u){if(!u.K.K)return Y.J?new os(0,360,!1,"b"):MW;for(var n=!1,U=!1,k=g.A(u.K.videoInfos),m=k.next();!m.done;m=k.next())yg(m.value)?n=!0:U=!0;n=n&&U;U=0;k=g.YF(Y.xw.experiments,"html5_performance_cap_floor");k=Y.xw.j?240:k;u=g.A(u.K.videoInfos);for(m=u.next();!m.done;m=u.next()){var X=m.value;if(!n||!yg(X))if(m=Um(X.aV,X.video.fps,Y.X),X=X.video.qualityOrdinal,Math.max(m,k)>=X){U=X;break}}return new os(0,U,!1,"b")}; IWu=function(Y,u){var n=Y.IV.XY();return n.isInline()&&!u.On?new os(0,480,!1,"v"):xR(u)?MW:n.isBackground()&&dl()/1E3>60&&!g.Zp(Y.xw)?new os(0,360,!1,"v"):MW}; zyu=function(Y,u,n){if(Y.xw.experiments.vz("html5_disable_client_autonav_cap_for_onesie")&&u.fetchType==="onesie"||g.Zp(Y.xw)&&(sd(-1)>=1080||u.osid))return MW;var U=g.YF(Y.xw.experiments,"html5_autonav_quality_cap"),k=g.YF(Y.xw.experiments,"html5_autonav_cap_idle_secs");return U&&u.isAutonav&&dl()/1E3>k?(n&&(U=DBm(Y,n,U)),new os(0,U,!1,"e")):MW}; DBm=function(Y,u,n){if(Y.V("html5_optimality_defaults_chooses_next_higher")&&n)for(Y=u.K.videoInfos,u=1;u=0||(Y.provider.IV.getVisibilityState()===3?Y.J=!0:(Y.K=g.Sk(Y.provider),Y.delay.start()))}; HOG=function(Y){if(!(Y.j<0)){var u=g.Sk(Y.provider),n=u-Y.G;Y.G=u;Y.playerState.state===8?Y.playTimeSecs+=n:Y.playerState.isBuffering()&&!g.V(Y.playerState,16)&&(Y.rebufferTimeSecs+=n)}}; y1d=function(Y){var u;switch((u=Y.xw.playerCanaryStage)==null?void 0:u.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"}}; Vku=function(Y){this.provider=Y;this.S=!1;this.K=0;this.G=-1;this.mV=NaN;this.X=0;this.segments=[];this.W=this.J=0;this.previouslyEnded=!1;this.N=this.provider.IV.getVolume();this.Z=this.provider.IV.isMuted()?1:0;this.j=cG(this.provider)}; vG=function(Y){Y.j.startTime=Y.X;Y.j.endTime=Y.K;var u=!1;Y.segments.length&&g.MX(Y.segments).isEmpty()?(Y.segments[Y.segments.length-1].previouslyEnded&&(Y.j.previouslyEnded=!0),Y.segments[Y.segments.length-1]=Y.j,u=!0):Y.segments.length&&Y.j.isEmpty()||(Y.segments.push(Y.j),u=!0);u?Y.j.endTime===0&&(Y.previouslyEnded=!1):Y.j.previouslyEnded&&(Y.previouslyEnded=!0);Y.J+=Y.K-Y.X;Y.j=cG(Y.provider);Y.j.previouslyEnded=Y.previouslyEnded;Y.previouslyEnded=!1;Y.X=Y.K}; FFm=function(Y){OOY(Y);Y.W=g.NI(function(){Y.update()},100); Y.mV=g.Sk(Y.provider);Y.j=cG(Y.provider)}; OOY=function(Y){g.Zz(Y.W);Y.W=NaN}; J1c=function(Y,u,n){n-=Y.mV;return u===Y.K&&n>.5}; q8t=function(Y,u,n,U){this.xw=u;this.Qm=n;this.segments=[];this.experimentIds=[];this.TZ=this.CT=this.isFinal=this.delayThresholdMet=this.Gw=this.MR=this.autoplay=this.autonav=!1;this.eE="yt";this.W=[];this.S=this.N=null;this.sendVisitorIdHeader=this.dg=!1;this.Z=this.pageId="";this.J=n==="watchtime";this.X=n==="playback";this.DW=n==="atr";this.kQ=n==="engage";this.sendVisitorIdHeader=!1;this.uri=this.DW?"/api/stats/"+n:"//"+u.PD+"/api/stats/"+n;U&&(this.CT=U.fs,U.rtn&&(this.S=U.rtn),this.J?(this.playerState= U.state,U.rti>0&&(this.N=U.rti)):(this.Jr=U.mos,this.bU=U.volume,U.at&&(this.adType=U.at)),U.autonav&&(this.autonav=U.autonav),U.inview!=null&&(this.uD=U.inview),U.size&&(this.Ub=U.size),U.playerwidth&&(this.b8=U.playerwidth),U.playerheight&&(this.tS=U.playerheight));this.yY=g.rc(u.K);this.Z=AB(u.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Z==="all"||this.Z==="once")this.lN=g.rc(u.Gw);this.MA=u.eE;this.experimentIds=OhG(u.experiments);this.zZ=u.UD;this.eE=u.KG;this.region=u.region; this.userAge=u.userAge;this.Uc=u.Y$;this.Qe=dl();this.sendVisitorIdHeader=u.sendVisitorIdHeader;this.rg=u.V("vss_pings_using_networkless")||u.V("kevlar_woffle");this.VI=u.V("vss_final_ping_send_and_write");this.MF=u.V("vss_use_send_and_write");this.pageId=u.pageId;this.SW=u.V("vss_playback_use_send_and_write");u.livingRoomAppMode&&(this.livingRoomAppMode=u.livingRoomAppMode);this.gL=u.G&&u.V("embeds_append_synth_ch_headers");g.nV(u)&&(this.JJ=u.DW);g.XJ(g.Qz(u))&&this.W.push(1);this.accessToken=g.Qs(Y); Y.TG[this.Qm]?this.G=Y.TG[this.Qm]:Y.TG.playback&&(this.G=Y.TG.playback);this.adFormat=Y.adFormat;this.adQueryId=Y.adQueryId;this.autoplay=yIG(Y);this.X&&(this.MR=Y.rM&&PW(Y)==="adunit"?!0:!1);this.autonav=Y.isAutonav||this.autonav;this.contentVideoId=CQ(Y);this.clientPlaybackNonce=Y.clientPlaybackNonce;this.Gw=Y.sD;Y.W&&(this.oV=Y.W,this.nT=Y.eU);Y.mdxEnvironment&&(this.mdxEnvironment=Y.mdxEnvironment);this.K=Y.yY;this.Ru=Y.Ru;Y.j&&(this.UD=Y.j.itag,Y.G&&Y.G.itag!==this.UD&&(this.Iu=Y.G.itag));Y.K&& W5(Y.K)&&(this.offlineDownloadUserChoice="1");this.eventLabel=PW(Y);this.TZ=Y.SW?!1:Y.bU;this.Cs=Y.Xb;if(u=OZ(Y))this.mW=u;this.sx=Y.Gs;this.partnerId=Y.partnerId;this.eventId=Y.eventId;this.playlistId=Y.dU||Y.playlistId;this.s_=Y.s_;this.Pc=Y.Pc;this.C1=Y.C1;this.jT=Y.jT;this.subscribed=Y.subscribed;this.videoId=Y.videoId;this.videoMetadata=Y.videoMetadata;this.visitorData=Y.visitorData;this.osid=Y.osid;this.AQ=Y.AQ;this.referrer=Y.referrer;this.mG=Y.Pj||Y.mG;this.Pz=Y.Ez;this.lR=Y.lR;this.userGenderAge= Y.userGenderAge;this.iJ=Y.iJ;this.embedsRct=Y.embedsRct;this.embedsRctn=Y.embedsRctn;g.nV(this.xw)&&Y.mutedAutoplay&&(Y.mutedAutoplayDurationMode===2&&Y.limitedPlaybackDurationInSeconds===0&&Y.endSeconds===0?this.W.push(7):this.W.push(2));Y.isEmbedsShortsMode(new g.OW(this.b8,this.tS),!!this.playlistId)&&this.W.push(3);g.KQ(Y)&&this.W.push(4);this.CG=Y.Nt;Y.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=Y.compositeLiveIngestionOffsetToken)}; aWG=function(Y,u){var n=Y.sendVisitorIdHeader?Y.visitorData:void 0;return g.DA(Y.xw,Y.accessToken).then(function(U){return FSe(Y.uri,Y.xw,Y.pageId,n,U,u,Y.gL)})}; u9M=function(Y,u){return function(){Y.xw.V("html5_simplify_pings")?(Y.K=Y.Fk,Y.lD=u(),Y.Qe=0,Y.send()):aWG(Y).then(function(n){var U=$B7(Y);U.cmt=U.len;U.lact="0";var k=u().toFixed(3);U.rt=Number(k).toString();U=g.Mk(Y.uri,U);Y.xw.V("vss_through_gel_double")&&YKA(U);Y.rg?(n==null&&(n={}),Y.MF?go().sendAndWrite(U,n):go().sendThenWrite(U,n)):n?g.Ak(U,n):g.DX(U)})}}; $B7=function(Y){var u={ns:Y.eE,el:Y.eventLabel,cpn:Y.clientPlaybackNonce,ver:2,cmt:Y.j(Y.K),fmt:Y.UD,fs:Y.CT?"1":"0",rt:Y.j(Y.lD),adformat:Y.adFormat,content_v:Y.contentVideoId,euri:Y.MA,lact:Y.Qe,live:Y.mW,cl:(789136103).toString(),mos:Y.Jr,state:Y.playerState,volume:Y.bU};Y.subscribed&&(u.subscribed="1");Object.assign(u,Y.yY);Y.Z==="all"?Object.assign(u,Y.lN):Y.Z==="once"&&Y.X&&Object.assign(u,Y.lN);Y.autoplay&&(u.autoplay="1");Y.MR&&(u.sautoplay="1");Y.Gw&&(u.dni="1");!Y.J&&Y.JJ&&(u.epm=nz0[Y.JJ]); Y.isFinal&&(u["final"]="1");Y.TZ&&(u.splay="1");Y.Ru&&(u.delay=Y.Ru);Y.zZ&&(u.hl=Y.zZ);Y.region&&(u.cr=Y.region);Y.userGenderAge&&(u.uga=Y.userGenderAge);Y.userAge!==void 0&&Y.Uc&&(u.uga=Y.Uc+Y.userAge);Y.Fk!==void 0&&(u.len=Y.j(Y.Fk));!Y.J&&Y.experimentIds.length>0&&(u.fexp=Y.experimentIds.toString());Y.S!==null&&(u.rtn=Y.j(Y.S));Y.mG&&(u.feature=Y.mG);Y.Pc&&(u.ctrl=Y.Pc);Y.C1&&(u.ytr=Y.C1);Y.Iu&&(u.afmt=Y.Iu);Y.offlineDownloadUserChoice&&(u.ODUC=Y.offlineDownloadUserChoice);Y.KG&&(u.lio=Y.j(Y.KG)); Y.J?(u.idpj=Y.Cs,u.ldpj=Y.sx,Y.delayThresholdMet&&(u.dtm="1"),Y.N!=null&&(u.rti=Y.j(Y.N)),Y.iJ&&(u.ald=Y.iJ),Y.compositeLiveIngestionOffsetToken&&(u.clio=Y.compositeLiveIngestionOffsetToken)):Y.adType!==void 0&&(u.at=Y.adType);Y.Ub&&(Y.X||Y.J)&&(u.size=Y.Ub);Y.X&&Y.W.length&&(u.pbstyle=Y.W.join(","));Y.uD!=null&&(Y.X||Y.J)&&(u.inview=Y.j(Y.uD));Y.J&&(u.volume=Rz(Y,g.dA(Y.segments,function(U){return U.volume})),u.st=Rz(Y,g.dA(Y.segments,function(U){return U.startTime})),u.et=Rz(Y,g.dA(Y.segments,function(U){return U.endTime})), g3(Y.segments,function(U){return U.playbackRate!==1})&&(u.rate=Rz(Y,g.dA(Y.segments,function(U){return U.playbackRate}))),g3(Y.segments,function(U){return U.K!=="-"})&&(u.als=g.dA(Y.segments,function(U){return U.K}).join(",")),g3(Y.segments,function(U){return U.previouslyEnded})&&(u.pe=g.dA(Y.segments,function(U){return""+ +U.previouslyEnded}).join(","))); u.muted=Rz(Y,g.dA(Y.segments,function(U){return U.muted?1:0})); g3(Y.segments,function(U){return U.visibilityState!==0})&&(u.vis=Rz(Y,g.dA(Y.segments,function(U){return U.visibilityState}))); g3(Y.segments,function(U){return U.connectionType!==0})&&(u.conn=Rz(Y,g.dA(Y.segments,function(U){return U.connectionType}))); g3(Y.segments,function(U){return U.j!==0})&&(u.blo=Rz(Y,g.dA(Y.segments,function(U){return U.j}))); g3(Y.segments,function(U){return!!U.X})&&(u.blo=g.dA(Y.segments,function(U){return U.X}).join(",")); g3(Y.segments,function(U){return!!U.compositeLiveStatusToken})&&(u.cbs=g.dA(Y.segments,function(U){return U.compositeLiveStatusToken}).join(",")); g3(Y.segments,function(U){return U.G!=="-"})&&(u.cc=g.dA(Y.segments,function(U){return U.G}).join(",")); g3(Y.segments,function(U){return U.clipId!=="-"})&&(u.clipid=g.dA(Y.segments,function(U){return U.clipId}).join(",")); if(g3(Y.segments,function(U){return!!U.audioId})){var n="au"; Y.X&&(n="au_d");u[n]=g.dA(Y.segments,function(U){return U.audioId}).join(",")}ko()&&Y.oV&&(u.ctt=Y.oV,u.cttype=Y.nT,u.mdx_environment=Y.mdxEnvironment); Y.kQ&&(u.etype=Y.jG!==void 0?Y.jG:0);Y.Pz&&(u.uoo=Y.Pz);Y.livingRoomAppMode&&Y.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(u.clram=Uw0[Y.livingRoomAppMode]||Y.livingRoomAppMode);Y.G?k17(Y,u):(u.docid=Y.videoId,u.referrer=Y.referrer,u.ei=Y.eventId,u.of=Y.AQ,u.osid=Y.osid,u.vm=Y.videoMetadata,Y.adQueryId&&(u.aqi=Y.adQueryId),Y.autonav&&(u.autonav="1"),Y.playlistId&&(u.list=Y.playlistId),Y.jT&&(u.ssrt="1"),Y.lR&&(u.upt=Y.lR));Y.X&&(Y.embedsRct&&(u.rct=Y.embedsRct),Y.embedsRctn&&(u.rctn= Y.embedsRctn),Y.compositeLiveIngestionOffsetToken&&(u.clio=Y.compositeLiveIngestionOffsetToken));Y.CG&&(u.host_cpn=Y.CG);return u}; k17=function(Y,u){if(u&&Y.G){var n=new Set(["q","feature","mos"]),U=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),k=new Set(["aqi","autonav","list","ssrt","upt"]);Y.G.ns==="3pp"&&(u.ns="3pp");for(var m=g.A(Object.keys(Y.G)),X=m.next();!X.done;X=m.next())X=X.value,U.has(X)||n.has(X)||k.has(X)&&!Y.G[X]||(u[X]=Y.G[X])}}; Rz=function(Y,u){return g.dA(u,Y.j).join(",")}; YKA=function(Y){Y.indexOf("watchtime")!==-1&&g.ka("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:Y}})}; mwG=function(Y,u){Y.attestationResponse&&aWG(Y).then(function(n){n=n||{};n.method="POST";n.postParams={atr:Y.attestationResponse};Y.rg?Y.MF?go().sendAndWrite(u,n):go().sendThenWrite(u,n):g.Ak(u,n)})}; DW=function(Y){g.e.call(this);this.provider=Y;this.W="paused";this.J=NaN;this.S=[10,10,10,40];this.N=this.Z=0;this.oV=this.DW=this.jG=this.KG=this.X=!1;this.j=this.G=NaN;this.logger=new g.jW("vss");this.K=new Vku(Y)}; fd0=function(Y){if(!Y.X){Y.provider.videoData.Co===16623&&g.Br(Error("Playback for EmbedPage"));var u=xQ(Y,"playback");Y.S=XRW(Y);FFm(Y.K);u.S=lt(Y);Y.j>0&&(u.K-=Y.j);u.send();if(Y.provider.videoData.qU){u=Y.provider.xw;var n=Y.provider.videoData,U={html5:"1",video_id:n.videoId,cpn:n.clientPlaybackNonce,ei:n.eventId,ptk:n.qU,oid:n.sQ,ptchn:n.Tu,pltype:n.tN,content_v:CQ(n)};n.Ir&&Object.assign(U,{m:n.Ir});u=g.Mk(u.uE+"ptracking",U);PgB(Y,u)}Y.provider.videoData.Ru||(SKt(Y),CgY(Y));Y.X=!0;Y=Y.K;Y.K= Y.GE();Y.mV=g.Sk(Y.provider);!(Y.X===0&&Y.K<5)&&Y.K-Y.X>2&&(Y.X=Y.K);Y.S=!0}}; XRW=function(Y){var u=Y.provider.videoData.Xb,n=Y.provider.videoData.Gs,U=[10+u,10,10,40+n-u,40],k,m=(k=Y.provider.videoData.getPlayerResponse())==null?void 0:k.playbackTracking,X=m==null?void 0:m.videostatsScheduledFlushWalltimeSeconds;k=m==null?void 0:m.videostatsDefaultFlushIntervalSeconds;if(!(X&&X.length>0&&k))return Y.logger.info("Missing valid scheduled pings config "+X+" "+k),U;u=[X[0]+u].concat(g.Zu(X.slice(1).map(function(S,C){return S-X[C]})),[k+n-u, k]);return u.some(function(S){return S<0})?(Y.logger.K(347111855,"Neg vss scheduled pings "+X+" "+k),U):u}; lt=function(Y,u){u=u===void 0?NaN:u;var n=g.Sk(Y.provider);u=isNaN(u)?n:u;u=Math.ceil(u);var U=Y.S[Y.Z];Y.Z+11E3;!(m.length>1)&&m[0].isEmpty()||S||(X.S=lt(Y,k));X.send();Y.N++}},(k-n)*1E3); return Y.G=k}; h1=function(Y){g.iL(Y.J);Y.J=NaN}; Qnd=function(Y){Y.K.update();Y=Y.K;Y.segments.length&&Y.K===Y.X||vG(Y);var u=Y.segments;Y.segments=[];return u}; xQ=function(Y,u){var n=iLB(Y.provider);Object.assign(n,{state:Y.W});u=new q8t(Y.provider.videoData,Y.provider.xw,u,n);u.K=Y.provider.IV.GE();n=Y.provider.videoData.clientPlaybackNonce;u.K=Y.provider.IV.yw(n);Y.provider.videoData.isLivePlayback||(u.Fk=Y.provider.IV.getDuration(n));Y.provider.videoData.K&&(n=Y.provider.videoData.K.Ia(u.K))&&(u.KG=n-u.K,Y.provider.xw.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&D9(Y.provider.videoData)&&(u.K+=Y.provider.IV.iN(),u.KG-=Y.provider.IV.iN()));u.lD=g.Sk(Y.provider); u.segments=[cG(Y.provider)];return u}; NJ7=function(Y,u){var n=xQ(Y,"watchtime");ZLG(Y)&&(n.delayThresholdMet=!0,Y.jG=!0);if(Y.j>0){for(var U=g.A(u),k=U.next();!k.done;k=U.next())k=k.value,k.startTime-=Y.j,k.endTime-=Y.j;n.K-=Y.j}else n.K=Y.K.K;n.segments=u;return n}; ww=function(Y,u){var n=TJ0(Y,!isNaN(Y.G));u&&(Y.G=NaN);return n}; TJ0=function(Y,u){var n=NJ7(Y,Qnd(Y));!isNaN(Y.G)&&u&&(n.N=Y.G);return n}; ZLG=function(Y){var u;if(u=Y.provider.videoData.isLoaded()&&Y.provider.videoData.Ru&&Y.X&&!Y.jG)u=Y.K,u=u.J+u.GE()-u.X>=Y.provider.videoData.Ru;return!!u}; SKt=function(Y){Y.provider.videoData.youtubeRemarketingUrl&&!Y.DW&&(PgB(Y,Y.provider.videoData.youtubeRemarketingUrl),Y.DW=!0)}; CgY=function(Y){Y.provider.videoData.googleRemarketingUrl&&!Y.oV&&(PgB(Y,Y.provider.videoData.googleRemarketingUrl),Y.oV=!0)}; rbm=function(Y){if(!Y.gg()&&Y.X){Y.W="paused";var u=ww(Y);u.isFinal=!0;u.send();Y.dispose()}}; MSS=function(Y,u){if(!Y.gg())if(g.V(u.state,2)||g.V(u.state,512)){if(Y.W="paused",g.C1(u,2)||g.C1(u,512))g.C1(u,2)&&(Y.K.previouslyEnded=!0),Y.X&&(h1(Y),ww(Y).send(),Y.G=NaN)}else if(g.V(u.state,8)){Y.W="playing";var n=Y.X&&isNaN(Y.J)?lt(Y):NaN;if(!isNaN(n)&&(SZ(u,64)<0||SZ(u,512)<0)){var U=TJ0(Y,!1);U.S=n;U.send()}g.C1(u,16)&&u.state.seekSource===58&&(Y.K.previouslyEnded=!0)}else Y.W="paused"}; snt=function(Y,u,n){if(!Y.KG){n||(n=xQ(Y,"atr"));n.attestationResponse=u;try{n.send()}catch(U){if(U.message!=="Unknown Error")throw U;}Y.KG=!0}}; PgB=function(Y,u){var n=Y.provider.xw;g.DA(Y.provider.xw,g.Qs(Y.provider.videoData)).then(function(U){var k=Y.provider.xw.pageId,m=Y.provider.xw.sendVisitorIdHeader?Y.provider.videoData.visitorData:void 0,X=Y.provider.xw.V("vss_pings_using_networkless")||Y.provider.xw.V("kevlar_woffle"),S=Y.provider.xw.V("allow_skip_networkless");U=FSe(u,n,k,m,U);Jx0(u,U,{token:Y.provider.videoData.W,nX:Y.provider.videoData.eU,mdxEnvironment:Y.provider.videoData.mdxEnvironment},n,void 0,X&&!S,!1,!0)})}; dwY=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.j=0;this.compositeLiveStatusToken=this.X=void 0;this.volume=this.connectionType=0;this.muted=!1;this.K=this.clipId="-";this.previouslyEnded=!1}; WG=function(Y,u,n){this.videoData=Y;this.xw=u;this.IV=n;this.K=void 0}; g.Sk=function(Y){return G1W(Y)()}; G1W=function(Y){if(!Y.K){var u=g.QC(function(U){var k=(0,g.j2)();U&&k<=631152E6&&(Y.IV.fG("ytnerror",{issue:28799967,value:""+k}),k=(new Date).getTime()+2);return k},Y.xw.V("html5_validate_yt_now")),n=u(); Y.K=function(){return Math.round(u()-n)/1E3}; Y.IV.oz()}return Y.K}; iLB=function(Y){var u=Y.IV.nQ()||{};u.fs=Y.IV.zK();u.volume=Y.IV.getVolume();u.muted=Y.IV.isMuted()?1:0;u.mos=u.muted;u.clipid=Y.IV.DK();var n;u.playerheight=((n=Y.IV.getPlayerSize())==null?void 0:n.height)||0;var U;u.playerwidth=((U=Y.IV.getPlayerSize())==null?void 0:U.width)||0;Y=Y.videoData;n={};Y.j&&(n.fmt=Y.j.itag,Y.G&&(Y.Qm?Y.G.itag!==Y.j.itag:Y.G.itag!=Y.j.itag)&&(n.afmt=Y.G.itag));n.ei=Y.eventId;n.list=Y.playlistId;n.cpn=Y.clientPlaybackNonce;Y.videoId&&(n.v=Y.videoId);Y.ET&&(n.infringe=1); (Y.SW?0:Y.bU)&&(n.splay=1);(U=OZ(Y))&&(n.live=U);Y.rM&&(n.sautoplay=1);Y.zE&&(n.autoplay=1);Y.s_&&(n.sdetail=Y.s_);Y.partnerId&&(n.partnerid=Y.partnerId);Y.osid&&(n.osid=Y.osid);Y.F2&&(n.cc=g.G4W(Y.F2));return Object.assign(u,n)}; Pfe=function(Y){var u=thS();if(u)return AbW[u]||AbW.other;if(g.Zp(Y.xw)){Y=navigator.userAgent;if(/[Ww]ireless[)]/.test(Y))return 3;if(/[Ww]ired[)]/.test(Y))return 30}return 0}; cG=function(Y){var u=new dwY,n;u.G=((n=iLB(Y).cc)==null?void 0:n.toString())||"-";u.playbackRate=Y.IV.getPlaybackRate();n=Y.IV.getVisibilityState();n!==0&&(u.visibilityState=n);Y.xw.Pz&&(u.j=1);u.X=Y.videoData.DQ;u.compositeLiveStatusToken=Y.videoData.compositeLiveStatusToken;n=Y.IV.getAudioTrack();n.dX&&n.dX.id&&n.dX.id!=="und"&&(u.audioId=n.dX.id);u.connectionType=Pfe(Y);u.volume=Y.IV.getVolume();u.muted=Y.IV.isMuted();u.clipId=Y.IV.DK()||"-";u.K=Y.videoData.Uw||"-";return u}; g.ek=function(Y,u){g.e.call(this);var n=this;this.provider=Y;this.X=new Map;this.Zk=new g.RZ;this.IH={riZ:function(){return n.qoe}, kVk:function(){return n.K}, t3V:function(){return n.j}}; this.provider.videoData.QY()&&!this.provider.videoData.Pv&&(this.K=new DW(this.provider),this.K.j=0,g.b(this,this.K),this.qoe=new g.X4(this.provider,u),g.b(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.T6=this.provider.videoData.clientPlaybackNonce)&&this.X.set(this.T6,this.K));if(Y.xw.playerCanaryState==="canary"||Y.xw.playerCanaryState==="holdback")this.j=new oz(this.provider),g.b(this,this.j)}; jnG=function(Y){Y.j&&EQS(Y.j);Y.qoe&&Mct(Y.qoe)}; Kde=function(Y){if(Y.qoe){Y=Y.qoe;for(var u=Y.provider.videoData,n=Y.provider.xw,U=g.A(n.FY),k=U.next();!k.done;k=U.next())fO(Y,k.value);if(Y.provider.V("html5_enable_qoe_cat_list"))for(U=g.A(u.PD),k=U.next();!k.done;k=U.next())fO(Y,k.value);else u.FY&&fO(Y,Y.provider.videoData.FY);u.W$()&&(U=u.K,eX(u)&&fO(Y,"manifestless"),U&&FL(U)&&fO(Y,"live-segment-"+FL(U).toFixed(1)));xR(u)?fO(Y,"sabr"):Y.Vx(ze(u));if(ND(u)||u.u6())u.u6()&&fO(Y,"ssa"),fO(Y,"lifa");D9(u)&&fO(Y,"cdm");u.gatewayExperimentGroup&& (U=u.gatewayExperimentGroup,U==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?U="spkadtrt":U==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(U="spkadctrl"),fO(Y,U));n.KG!=="yt"&&Y.K.set("len",[u.lengthSeconds.toFixed(2)]);u.cotn&&!r6(u)&&Y.Gd(!0);n.gX()&&(u=kz7())&&Y.fG("cblt",{m:u});if(n.V("html5_log_screen_diagonal")){n=Y.fG;var m;u=((m=window.H5vccScreen)==null?0:m.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;n.call(Y,"cbltdiag",{v:u})}}}; pRY=function(Y,u){Y.K&&(Y=Y.K,u===58?Y.K.update():Y.X&&(h1(Y),ww(Y).send(),Y.G=NaN))}; LdB=function(Y,u){if(g.C1(u,1024)||g.C1(u,512)||g.C1(u,4)){if(Y.j){var n=Y.j;n.j>=0||(n.K=-1,n.delay.stop())}Y.qoe&&(n=Y.qoe,n.S||(n.X=-1))}if(Y.provider.videoData.enableServerStitchedDai&&Y.T6){var U;(U=Y.X.get(Y.T6))==null||MSS(U,u)}else Y.K&&MSS(Y.K,u);if(Y.qoe){U=Y.qoe;n=u.state;var k=g.Sk(U.provider),m=U.getPlayerState(n),X=n.seekSource||void 0;if(m!==U.Zk){U.jG||k= 10&&U.playTimeSecs<=180&&(U.K.set("qoealert",["1"]),U.Ru=!0)),m!=="B"||U.Zk!=="PL"&&U.Zk!=="PB"||(U.isBuffering=!0),U.j=k);U.Zk==="PL"&&(m==="B"||m==="S")||U.provider.xw.gX()?CO(U,k):(U.nT||m!=="PL"||(U.nT=!0,SAu(U,k,U.provider.IV.rK())),XWA(U,k));m==="PL"&&g.OQ(U.lD);var S=[m];m==="S"&&X&&S.push("ss."+X);g.mF(U,k,"vps",S);U.Zk=m;U.KG=k;U.j=k;U.G=!0}m=n.Jt;g.V(n,128)&&m&&(m.yK=m.yK||"",N6u(U,k,m.errorCode,m.yz,m.yK));(g.V(n,2)||g.V(n,128))&&U.reportStats(k);n.isPlaying()&&!U.S&&(U.X>=0&&U.K.set("user_intent", [U.X.toString()]),U.S=!0);fPS(U)}Y.j&&(Y=Y.j,HOG(Y),Y.playerState=u.state,Y.j>=0&&g.C1(u,16)&&Y.seekCount++,u.state.isError()&&Y.send())}; tSe=function(Y){Y.j&&Y.j.send();if(Y.qoe){var u=Y.qoe;if(u.G){u.Zk==="PL"&&(u.Zk="N");var n=g.Sk(u.provider);g.mF(u,n,"vps",[u.Zk]);u.S||(u.X>=0&&u.K.set("user_intent",[u.X.toString()]),u.S=!0);u.provider.xw.gX()&&u.fG("finalized",{});u.rg=!0;u.reportStats(n)}}if(Y.provider.videoData.enableServerStitchedDai)for(u=g.A(Y.X.values()),n=u.next();!n.done;n=u.next())rbm(n.value);else Y.K&&rbm(Y.K);Y.dispose()}; BJY=function(Y,u,n){switch(u){case "M":var U;(U=Y.qoe)==null||sfe(U,u,n);break;case "A":var k;(k=Y.qoe)==null||sfe(k,u)}}; ozS=function(Y,u){Y.K&&snt(Y.K,u)}; cbc=function(Y){if(!Y.K)return null;var u=xQ(Y.K,"atr");return function(n){Y.K&&snt(Y.K,n,u)}}; vzB=function(Y,u,n,U){n.adFormat=n.gL;var k=u.IV;u=new DW(new WG(n,u.xw,{getDuration:function(){return n.lengthSeconds}, getCurrentTime:function(){return k.getCurrentTime()}, GE:function(){return k.GE()}, yw:function(){return k.yw()}, rK:function(){return k.rK()}, getPlayerSize:function(){return k.getPlayerSize()}, getAudioTrack:function(){return n.getAudioTrack()}, getPlaybackRate:function(){return k.getPlaybackRate()}, FL:function(){return k.FL()}, getVisibilityState:function(){return k.getVisibilityState()}, PC:function(){return k.PC()}, nQ:function(){return k.nQ()}, getVolume:function(){return k.getVolume()}, isMuted:function(){return k.isMuted()}, zK:function(){return k.zK()}, DK:function(){return k.DK()}, getProximaLatencyPreference:function(){return k.getProximaLatencyPreference()}, oz:function(){k.oz()}, fG:function(m,X){k.fG(m,X)}, XB:function(){return k.XB()}, iN:function(){return k.iN()}})); u.j=U;g.b(Y,u);return u}; RZd=function(){this.Ju=0;this.X=this.Jq=this.uf=this.j=NaN;this.K={};this.bandwidthEstimate=NaN}; DwM=function(){this.K=g.Hx;this.array=[]}; ld0=function(Y,u,n){var U=[];for(u=xwe(Y,u);un)break}return U}; hZG=function(Y,u){var n=[];Y=g.A(Y.array);for(var U=Y.next();!U.done&&!(U=U.value,U.contains(u)&&n.push(U),U.start>u);U=Y.next());return n}; wRS=function(Y){return Y.array.slice(xwe(Y,0x7ffffffffffff),Y.array.length)}; xwe=function(Y,u){Y=Eq(Y.array,function(n){return u-n.start||1}); return Y<0?-(Y+1):Y}; Wd7=function(Y,u){var n=NaN;Y=g.A(Y.array);for(var U=Y.next();!U.done;U=Y.next())if(U=U.value,U.contains(u)&&(isNaN(n)||U.endu&&(isNaN(n)||U.startY.mediaTime+Y.J&&u1)Y.G=!0;if((k===void 0?0:k)||isNaN(Y.j))Y.j=u;if(Y.K)u!==Y.mediaTime&&(Y.K=!1);else if(u>0&&Y.mediaTime===u){k=1500;if(Y.xw.V("html5_buffer_underrun_transition_fix")){k=g.YF(Y.xw.experiments,"html5_min_playback_advance_for_steady_state_secs");var m=g.YF(Y.xw.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");k=k>0&&m>0&&Math.abs(u-Y.j)(U||!Y.G?k:400)}Y.mediaTime=u;Y.X=n;return!1}; OLY=function(Y,u){this.videoData=Y;this.K=u}; Fdc=function(Y,u,n){return u.Vp(n).then(function(){return oo(new OLY(u,u.X))},function(U){U instanceof Error&&g.Br(U); var k=MO('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),m=dC('audio/mp4; codecs="mp4a.40.2"'),X=k||m,S=u.isLivePlayback&&!g.pD(Y.J,!0);U="fmt.noneavailable";S?U="html5.unsupportedlive":X||(U="html5.missingapi");X=S||!X?2:1;k={buildRej:"1",a:u.Xg(),d:!!u.eE,drm:u.jh(),f18:u.Jr.indexOf("itag=18")>=0,c18:k};u.K&&(u.jh()?(k.f142=!!u.K.K["142"],k.f149=!!u.K.K["149"],k.f279=!!u.K.K["279"]):(k.f133=!!u.K.K["133"],k.f140=!!u.K.K["140"],k.f242=!!u.K.K["242"]),k.cAAC=m,k.cAVC=dC('video/mp4; codecs="avc1.42001E"'), k.cVP9=dC('video/webm; codecs="vp9"'));u.J&&(k.drmsys=u.J.keySystem,m=0,u.J.K&&(m=Object.keys(u.J.K).length),k.drmst=m);return new g.iO(U,k,X)})}; z9=function(Y){this.data=window.Float32Array?new Float32Array(Y):Array(Y);this.j=this.K=Y-1}; JbB=function(Y){return Y.data[Y.K]||0}; qKu=function(Y){this.J=Y;this.X=this.j=0;this.G=new z9(50)}; E8=function(Y,u,n){g.ud.call(this);this.videoData=Y;this.experiments=u;this.J=n;this.j=[];this.eC=0;this.X=!0;this.G=!1;this.W=0;n=new adu;Y.latencyClass==="ULTRALOW"&&(n.W=!1);Y.Uc?n.X=3:g.$R(Y)&&(n.X=2);Y.latencyClass==="NORMAL"&&(n.J=!0);n.KG=xR(Y)&&u.vz("html5_refactor_decouple_liveness");g.YF(u,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.YF(u,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||Y.latencyClass!=="LOW"&&Y.latencyClass!=="ULTRALOW"||(n.J=!0);var U= g.YF(u,"html5_liveness_drift_proxima_override");if(ze(Y)!==0&&U){n.K=U;var k;((k=Y.K)==null?0:fyM(k))&&n.K--}xR(Y)&&u.vz("html5_sabr_parse_live_metadata_playback_boundaries")&&(n.oV=!0);if(g.es("trident/")||g.es("edge/"))k=g.YF(u,"html5_platform_minimum_readahead_seconds")||3,n.G=Math.max(n.G,k);g.YF(u,"html5_minimum_readahead_seconds")&&(n.G=g.YF(u,"html5_minimum_readahead_seconds"));g.YF(u,"html5_maximum_readahead_seconds")&&(n.N=g.YF(u,"html5_maximum_readahead_seconds"));u.vz("html5_force_adaptive_readahead")&& (n.W=!0);if(k=g.YF(u,"html5_liveness_drift_chunk_override"))n.K=k;bR(Y)&&(n.K=(n.K+1)/5,Y.latencyClass==="LOW"&&(n.K*=2));!xR(Y)||Y.latencyClass!=="ULTRALOW"&&Y.latencyClass!=="LOW"||(n.Z=g.YF(u,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,n.S=g.YF(u,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=n;this.S=this.policy.X!==1;this.K=gw(this,$wA(this,isNaN(Y.liveChunkReadahead)?3:Y.liveChunkReadahead,Y))}; Yjc=function(Y,u){if(u)return u=Y.videoData,u=$wA(Y,isNaN(u.liveChunkReadahead)?3:u.liveChunkReadahead,u),gw(Y,u);if(Y.j.length){if(Math.min.apply(null,Y.j)>1)return gw(Y,Y.K-1);if(Y.policy.W)return gw(Y,Y.K+1)}return Y.K}; uN0=function(Y,u){if(!Y.j.length)return!1;var n=Y.K;Y.K=Yjc(Y,u===void 0?!1:u);if(u=n!==Y.K)Y.j=[],Y.eC=0;return u}; HG=function(Y,u){return u>=Y.qY()-ngd(Y)}; UQm=function(Y,u,n){u=HG(Y,u);n||u?u&&(Y.X=!0):Y.X=!1;Y.S=Y.policy.X===2||Y.policy.X===3&&Y.X}; kDm=function(Y,u){u=HG(Y,u);Y.G!==u&&Y.publish("livestatusshift",u);Y.G=u}; ngd=function(Y){var u=Y.policy.K;Y.G||(u=Math.max(u-1,0));return u*yE(Y)}; $wA=function(Y,u,n){n.Uc&&u--;bR(n)&&(u=1);if(ze(n)!==0&&(Y=g.YF(Y.experiments,"html5_live_chunk_readahead_proxima_override"))){u=Y;var U;((U=n.K)==null?0:fyM(U))&&u++}return u}; yE=function(Y){return Y.videoData.K?FL(Y.videoData.K)||5:5}; gw=function(Y,u){u=Math.max(Math.max(1,Math.ceil(Y.policy.G/yE(Y))),u);return Math.min(Math.min(8,Math.floor(Y.policy.N/yE(Y))),u)}; adu=function(){this.G=0;this.N=Infinity;this.W=!0;this.j=this.K=2;this.X=1;this.J=!1;this.S=10;this.oV=!1;this.Z=1;this.KG=!1}; F4=function(Y){g.e.call(this);this.IV=Y;this.K=0;this.j=null;this.W=this.G=0;this.X={};this.xw=this.IV.Y();this.J=new g.Vp(this.rp,1E3,this);this.TZ=VE(this,"html5_seek_timeout_delay_ms");this.jG=VE(this,"html5_long_rebuffer_threshold_ms");this.dg=VE(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.MF=VE(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.JJ=VE(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Gw=VE(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.KG=VE(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.oV=new O8(2E4);this.Fk=VE(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.zZ=VE(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.CG=VE(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.rg=VE(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.Z=VE(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.N=VE(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.Pz=VE(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.Uc=VE(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.S=VE(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.Iu=new O8(g.YF(this.xw.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.xw.V("html5_report_slow_ads_as_error"));this.Ru=new O8(g.YF(this.xw.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.xw.V("html5_skip_slow_buffering_ad"));this.nT=VE(this,"html5_slow_start_timeout_delay_ms");this.DW=VE(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.b(this,this.J)}; VE=function(Y,u,n){n=n===void 0?null:n;var U=U===void 0?0:U;return new O8(g.YF(Y.xw.experiments,u)||U,n?Y.xw.V(n):!1)}; mQW=function(Y,u){Y.K=u}; J1=function(Y,u,n,U,k,m,X,S){u?u.test(n)?(Y.Ra(k,u,X),u.W||m()):(!u.j||u.G?n=!1:(n=(0,g.j2)(),U?u.K||(u.K=n):u.K=0,m=!U&&n-u.j>3E4,n=u.K&&n-u.K>1E3||m?u.G=!0:!1),n&&(S=Object.assign({},Y.Tw(u),S),S.wn=X,S.we=k,S.wsuc=U,Y.IV.fG("workaroundReport",S),U&&(u.reset(),Y.X[k]=!1))):Y.IV.Re("auth",2,"BROWSER_OR_EXTENSION_ERROR",NO({source:"watchdog",name:X}))}; O8=function(Y,u){this.W=u===void 0?!1:u;this.K=this.j=this.X=this.startTimestamp=0;this.G=!1;this.J=Math.ceil(Y/1E3)}; CKM=function(Y){g.e.call(this);var u=this;this.IV=Y;this.Z=this.K=this.loader=this.mediaElement=this.playbackData=null;this.X=0;this.J=this.jG=this.G=null;this.rg=!1;this.nT=0;this.oV=!1;this.timestampOffset=0;this.N=!0;this.zZ=0;this.dg=this.lN=!1;this.S=0;this.Uc=!1;this.DW=0;this.xw=this.IV.Y();this.videoData=this.IV.getVideoData();this.policy=new XHu;this.KG=new F4(this.IV);this.Iu=this.CG=this.JJ=this.W=this.j=NaN;this.Fk=new g.Vp(function(){PKe(u,!1)},2E3); this.Gw=new g.Vp(function(){qB(u)}); this.TZ=new g.Vp(function(){SjM(u,{})}); this.Ru=NaN;this.MF=new g.Vp(function(){var n=u.xw.b8;n.K+=1E4/36E5;n.K-n.X>1/6&&(c8W(n),n.X=n.K);u.MF.start()},1E4); g.b(this,this.KG);g.b(this,this.Fk);g.b(this,this.TZ);g.b(this,this.Gw);g.b(this,this.MF)}; NOe=function(Y,u){Y.playbackData=u;Y.videoData.isLivePlayback&&(Y.Z=new qKu(function(){a:{if(Y.playbackData&&Y.playbackData.K.K){if(eX(Y.videoData)&&Y.loader){var U=Y.loader.h7.E6()||0;break a}if(Y.videoData.K){U=Y.videoData.K.rg;break a}}U=0}return U}),Y.K=new E8(Y.videoData,Y.xw.experiments,function(){return Y.v0(!0)})); if(az(Y.IV)){var n;(n=Y.videoData.Rj)!=null&&n.Bb||(u=fRe(Y),u.Jh?(xR(Y.videoData)&&Y.mO(u.Jh,u.startSeconds),Y.X=u.startSeconds):u.startSeconds>0&&Y.seekTo(u.startSeconds,{L0:"seektimeline_startPlayback",seekSource:15}));Y.N=!1}else QWS(Y)||(Y.X=Y.X||Y.videoData.startSeconds||0,Y.videoData.isLivePlayback||(u=Y.IV.videoData.v0(),Y.X>u&&(Y.V("html5_sabr_log_invalid_sabr_current_time")&&Y.IV.fG("invalidSabrCmtStart",{rt:Y.X,mst:u}),Y.V("html5_sabr_vod_invalid_start_time_fallback")&&(Y.X=0))))}; Z_t=function(Y,u){(Y.loader=u)?i_0(Y,!0):$Q(Y)}; TOu=function(Y,u){g.OQ(Y.KG.J);Y.V("html5_exponential_memory_for_sticky")&&(u.state.isPlaying()?g.OQ(Y.MF):Y.MF.stop());if(Y.mediaElement)if(u.oldState.state===8&&eJ(u.state)&&u.state.isBuffering()){u=Y.mediaElement.getCurrentTime();var n=Y.mediaElement.eM();var U=Y.V("manifestless_post_live_ufph")||Y.V("manifestless_post_live")?m4(n,Math.max(u-3.5,0)):m4(n,u-3.5);U>=0&&u>n.end(U)-1.1&&U+10?(Yz(Y.IV,Y.getCurrentTime()+Y.videoData.limitedPlaybackDurationInSeconds),Y.dg=!0):Y.videoData.isLivePlayback&&Y.videoData.endSeconds>0&&(Yz(Y.IV,Y.getCurrentTime()+Y.videoData.endSeconds),Y.dg=!0))}; MNm=function(Y,u){var n=Y.getCurrentTime(),U=Y.isAtLiveHead(n);if(Y.Z&&U){var k=Y.Z;if(k.K&&!(n>=k.j&&n50&&k.j.shift())),k=Y.K,UQm(k,n,u===void 0?!0:u),kDm(k,n),u&&PKe(Y,!0));U!==Y.lN&&(u=Y.getCurrentTime()-Y.Iu<=500,n=Y.nT>=1E3,u||n||(u=Y.IV.Vm,u.qoe&&(u=u.qoe,n=g.Sk(u.provider), g.mF(u,n,"lh",[U?"1":"0"])),Y.lN=U,Y.nT++,Y.Iu=Y.getCurrentTime()))}; PKe=function(Y,u){if(Y.K){var n=Y.K;var U=Y.getCurrentTime(),k=n.qY();var m=n.policy.j;n.G||(m=Math.max(m-1,0));m*=yE(n);U>=k-m||!n.TK()?n=Un+1&&u0&&Ba(Y.mediaElement)>0&&(Y.j=ug(Y,Y.j,!1)),u=Y.V("html5_pseudogapless_shorts_seek_to_next_start")&&(u==null?void 0:u.seekSource)===60,!Y.mediaElement||!pHG(Y,u))Y.Gw.start(750);else if(!isNaN(Y.j)&&isFinite(Y.j)&&(u=Y.CG-(Y.j-Y.timestampOffset),!(u===0||Math.abs(u)<.005)))if(u=Y.mediaElement.getCurrentTime()-Y.j,Math.abs(u)<=Y.zZ||Math.abs(u)<.005)LfB(Y);else{if(Y.videoData.Jz)Y.videoData.Jz= !1;else if(!W2(Y.videoData)&&Y.j>=Y.v0()-.1){Y.j=Y.v0();Y.G.resolve(Y.v0());Y.xw.gX()&&Y.IV.fG("setEndedInSeek",{tgt:""+Y.j,maxst:""+Y.v0()});Y.IV.q5();return}try{var n=Y.j-Y.timestampOffset;Y.mediaElement.seekTo(n);Y.KG.K=n;Y.CG=n;Y.X=Y.j;Y.oV=!1}catch(U){}}}; pHG=function(Y,u){u=u===void 0?!1:u;if(!Y.mediaElement||Y.mediaElement.t4()===0||Y.mediaElement.hasError())return!1;var n=Y.mediaElement.getCurrentTime()>0;return Y.videoData.X&&Y.videoData.X.K||Y.videoData.isLivePlayback||!Y.videoData.jh()?Y.j>=0&&!u&&(u=Y.mediaElement.Vq(),u.length||!n)?XT(u,Y.j-Y.timestampOffset):n:n}; LfB=function(Y){Y.G&&(Y.G.resolve(Y.mediaElement.getCurrentTime()),Y.KG.j=null)}; jWW=function(Y,u){Y.J&&(Y.J.resolve(u),Y.IV.Rz(),Y.xw.gX()||KfS(Y))&&(u=Y.Tw(),u["native"]=""+ +Y.oV,u.otgt=""+(Y.j+Y.timestampOffset),Y.IV.fG("seekEnd",u));$Q(Y)}; $Q=function(Y){Y.j=NaN;Y.W=NaN;Y.CG=NaN;Y.G=null;Y.jG=null;Y.J=null;Y.rg=!1;Y.oV=!1;Y.zZ=0;Y.Fk.stop();Y.TZ.stop()}; BOG=function(Y,u){var n=Y.mediaElement,U=u.type;switch(U){case "seeking":var k=n.getCurrentTime()+Y.timestampOffset;if(!Y.G||Y.oV&&k!==Y.j){Y.G=new Lh;Y.G.then(function(X){jWW(Y,X)},function(){$Q(Y)}); if(Y.videoData.isAd()){var m;uQd({adCpn:Y.videoData.clientPlaybackNonce,contentCpn:(m=Y.videoData.Nt)!=null?m:""},u.K)}Y.CG=k;mQW(Y.KG,n.getCurrentTime());Y.seekTo(k,{seekSource:104,L0:"seektimeline_mediaElementEvent"});Y.oV=!0}break;case "seeked":LfB(Y);break;case "loadedmetadata":az(Y.IV)||tNA(Y);qB(Y);break;case "progress":qB(Y);break;case "pause":Y.S=Y.getCurrentTime()}Y.S&&((U==="play"||U==="playing"||U==="timeupdate"||U==="progress")&&Y.getCurrentTime()-Y.S>10&&(Y.V("html5_sky_skip_pause_jump")? Y.IV.fG("skipPauseJump",{evt:U,cmt:Y.getCurrentTime(),lpt:Y.S}):Y.seekTo(Y.S,{L0:"pauseJump"})),U!=="pause"&&U!=="play"&&U!=="playing"&&U!=="progress"&&(Y.S=0))}; oge=function(Y){return(YN(Y.videoData)||!!Y.videoData.liveUtcStartSeconds)&&(!!Y.videoData.liveUtcStartSeconds||QWS(Y))&&!!Y.videoData.K}; QWS=function(Y){return!!Y.videoData.startSeconds&&isFinite(Y.videoData.startSeconds)&&Y.videoData.startSeconds>1E9}; fRe=function(Y){var u=0,n=NaN,U="";if(!Y.N)return{startSeconds:u,Jh:n,source:U};Y.videoData.jG?u=Y.videoData.DW:W2(Y.videoData)&&(u=Infinity);if(g.$R(Y.videoData))return{startSeconds:u,Jh:n,source:U};Y.videoData.startSeconds?(U="ss",u=Y.videoData.startSeconds):Y.videoData.Qe&&(U="stss",u=Y.videoData.Qe);Y.videoData.liveUtcStartSeconds&&(n=Y.videoData.liveUtcStartSeconds);if(isFinite(u)&&(u>Y.v0()||uY.v0()||n 0?(U.onesie="0",Y.handleError(new g.iO("html5.missingapi",U)),!1):!0}; WfW=function(Y){var u=mm();X2(u,Y);return g.gV(u,DVm())}; lRt=function(Y,u){var n,U,k,m,X,S,C,f,Q,N,Z,T,r,K,L,R,c,x,W,E,J,O,Xd,T0,SM,CY;return g.l(function(uB){if(uB.j==1)return u.fetchType="onesie",n=f$G(u,Y.getPlayerSize(),Y.getVisibilityState()),U=new Fa(Y,n),g.D(uB,U.fetch(),2);k=uB.K;m={player_response:k};u.loading=!1;X=Y.W0.eY;if(U.IZ){S=g.A(U.IZ.entries());for(C=S.next();!C.done;C=S.next())f=C.value,Q=g.A(f),N=Q.next().value,Z=Q.next().value,T=N,r=Z,X.K.set(T,r,180),T===u.videoId&&(K=r.xI(),u.TA=K);X.U_=U}L=g.A(U.cP.entries());for(R=L.next();!R.done;R= L.next())c=R.value,x=g.A(c),W=x.next().value,E=x.next().value,J=W,O=E,X.j.set(J,O,180);g.Ax(u,m,!0);if(u.loading||dq(u))return uB.return(Promise.resolve());X.K.removeAll();X.j.removeAll();u.TA=[];Xd={};T0="onesie.response";SM=0;u.errorCode?(T0="auth",Xd.ec=u.errorCode,Xd.ed=u.errorDetail,Xd.es=u.RD||"",SM=2):(Xd.successButUnplayable="1",Xd.disposed=""+ +u.gg(),Xd.afmts=""+ +/adaptiveFormats/.test(k),Xd.cpn=u.clientPlaybackNonce);CY=new g.iO(T0,Xd,SM);return uB.return(Promise.reject(CY))})}; DQS=function(Y,u){var n,U,k,m,X,S,C,f,Q,N,Z;return g.l(function(T){switch(T.j){case 1:n=u.isAd(),U=!n,k=n?1:3,m=0;case 2:if(!(m0)){T.qF(5);break}return g.D(T,ed(5E3),6);case 6:X=new g.zP("Retrying OnePlatform request",{attempt:m}),g.Br(X);case 5:return g.pY(T,7),g.D(T,e1t(Y,u),9);case 9:return T.return();case 7:S=g.vc(T);C=TF(S);f=C.errorCode;Q=Y.Y();N=Q.V("html5_use_network_error_code_enums")?401:"401";U&&f==="manifest.net.badstatus"&&C.details.rc===N&&(U=!1,m===k-1&&(k+= 1));if(m===k-1)return Z=b_t(n,C.details),Z.details.backend="op",Z.details.originec=f,T.return(Promise.reject(Z));if(f==="auth"||f==="manifest.net.retryexhausted")return T.return(Promise.reject(C));Y.handleError(C);if(ZF(C.severity)){T.qF(4);break}case 3:m++;T.qF(2);break;case 4:return T.return(Promise.reject(b_t(n,{backend:"op"})))}})}; e1t=function(Y,u){function n(T0){T0.readyState===2&&Y.ED("ps_c")} var U,k,m,X,S,C,f,Q,N,Z,T,r,K,L,R,c,x,W,E,J,O,Xd;return g.l(function(T0){switch(T0.j){case 1:u.fetchType="gp";U=Y.Y();k=g.DA(U,g.Qs(u));if(!k.K){m=k.getValue();T0.qF(2);break}return g.D(T0,k.K,3);case 3:m=T0.K;case 2:return X=m,S=WfW(X),C=f$G(u,Y.getPlayerSize(),Y.getVisibilityState()),f=g.Fj(IRu),Q=g.Qs(u),N=(0,g.j2)(),Z=!1,T="empty",r=0,Y.ED("psns"),K={SH:n},g.D(T0,g.RV(S,C,f,void 0,K),4);case 4:L=T0.K;Y.ED("psnr");if(u.gg())return T0.return();L?"error"in L&&L.error?(Z=!0,T="esf:"+L.error.message, r=L.error.code):L.errorMetadata&&(Z=!0,T="its",r=L.errorMetadata.status):Z=!0;if(Z)return R=0,c=((0,g.j2)()-N).toFixed(),x={},x=U.V("html5_use_network_error_code_enums")?{backend:"op",rc:r,rt:c,reason:T,has_kpt:u.uD?"1":"0",has_mdx_env:u.mdxEnvironment?"1":"0",has_omit_key_flag:g.z6("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:U.pageId?"1":"0",has_token:Q?"1":"0",has_vvt:u.rg?"1":"0",is_mdx:u.isMdxPlayback?"1":"0",mdx_ctrl:u.Pc||"",token_eq:Q===g.Qs(u)?"1":"0"}:{backend:"op", rc:""+r,rt:c,reason:T,has_kpt:u.uD?"1":"0",has_mdx_env:u.mdxEnvironment?"1":"0",has_omit_key_flag:g.z6("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:U.pageId?"1":"0",has_token:Q?"1":"0",has_vvt:u.rg?"1":"0",is_mdx:u.isMdxPlayback?"1":"0",mdx_ctrl:u.Pc||"",token_eq:Q===g.Qs(u)?"1":"0"},W="manifest.net.connect",r===429?(W="auth",R=2):r>200&&(W="manifest.net.badstatus",r===400&&(R=2)),T0.return(Promise.reject(new g.iO(W,x,R)));u.loading=!1;g.Ax(u,{raw_player_response:L},!0); E=L;g.SG(u.Y())&&E&&E.trackingParams&&Cq(E.trackingParams);if(u.errorCode)return J={ec:u.errorCode,ed:u.errorDetail,es:u.RD||""},T0.return(Promise.reject(new g.iO("auth",J,2)));if(!u.loading&&!dq(u))return O=u.isAd()?"auth":"manifest.net.retryexhausted",Xd=u.isAd()?2:1,T0.return(Promise.reject(new g.iO(O,{successButUnplayable:"1",hasMedia:g.Jx(u)?"1":"0"},Xd)));g.KY(T0)}})}; R1c=function(Y,u,n){function U(r){r=TF(r);if(ZF(r.severity))return Promise.reject(r);Y.handleError(r);return!1} function k(){return!0} var m,X,S,C,f,Q,N,Z,T;return g.l(function(r){switch(r.j){case 1:var K=Y.Y();Y.getPlayerSize();Y.getVisibilityState();Y.isFullscreen();if(u.partnerId===38&&K.playerStyle==="books")K=u.videoId.indexOf(":"),K=g.Mk("//play.google.com/books/volumes/"+u.videoId.slice(0,K)+"/content/media",{aid:u.videoId.slice(K+1),sig:u.ArZ});else if(u.partnerId===30&&K.playerStyle==="docs")K=g.Mk("https://docs.google.com/get_video_info",{docid:u.videoId,authuser:u.Dz,authkey:u.kRq,eurl:K.eE});else if(u.partnerId===33&& K.playerStyle==="google-live")K=g.Mk("//google-liveplayer.appspot.com/get_video_info",{key:u.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+K.KG);m=K;S=(X=u.isAd())?1:3;C=0;case 2:if(!(C0)){r.qF(5);break}return g.D(r,ed(5E3),6);case 6:Q={playerretry:C,playerretrysrc:n},X||(Q.recover="embedded"),f=nv(m,Q);case 5:return g.D(r,z1Y(u,f).then(k,U),7);case 7:if(N=r.K)return r.return();C++;r.qF(2);break;case 4:Z=X?"auth":"manifest.net.retryexhausted";T= X?2:1;if(!X&&Math.random()<1E-4)try{g.Br(new g.zP("b/152131571",btoa(m)))}catch(L){}return r.return(Promise.reject(new g.iO(Z,{backend:"gvi"},T)))}})}; z1Y=function(Y,u){function n(L){return U(L.xhr)} function U(L){if(!Y.gg()){L=L?L.status:-1;var R=0,c=((0,g.j2)()-Q).toFixed();c=k.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:L,rt:c}:{backend:"gvi",rc:""+L,rt:c};var x="manifest.net.connect";L===429?(x="auth",R=2):L>200&&(x="manifest.net.badstatus",L===400&&(R=2));return Promise.reject(new g.iO(x,c,R))}} var k,m,X,S,C,f,Q,N,Z,T,r,K;return g.l(function(L){if(L.j==1){Y.fetchType="gvi";k=Y.Y();var R={};Y.Qn&&(R.ytrext=Y.Qn);(S=g.i4(R)?void 0:R)?(m={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:S},X=nv(u,{action_display_post:1})):(m={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},X=u);C={};k.sendVisitorIdHeader&&Y.visitorData&&(C["X-Goog-Visitor-Id"]=Y.visitorData);(f=AB(k.experiments,"debug_sherlog_username"))&&(C["X-Youtube-Sherlog-Username"]=f);Object.keys(C).length> 0&&(m.headers=C);Q=(0,g.j2)();return g.D(L,hU(pv,X,m).then(void 0,n),2)}N=L.K;if(!N||!N.responseText)return L.return(U(N));Y.loading=!1;Z=aJ(N.responseText);g.Ax(Y,Z,!0);if(Y.errorCode)return T={ec:Y.errorCode,ed:Y.errorDetail,es:Y.RD||""},L.return(Promise.reject(new g.iO("auth",T,2)));if(!Y.loading&&!dq(Y))return r=Y.isAd()?"auth":"manifest.net.retryexhausted",K=Y.isAd()?2:1,L.return(Promise.reject(new g.iO(r,{successButUnplayable:"1"},K)));g.KY(L)})}; b_t=function(Y,u){return new g.iO(Y?"auth":"manifest.net.retryexhausted",u,Y?2:1)}; X9=function(Y,u,n){n=n===void 0?!1:n;var U,k,m,X;g.l(function(S){if(S.j==1){U=Y.Y();if(n&&(!g.tA(U)||PW(u)!=="embedded")||u.Sz||PW(u)!=="adunit"&&(g.Zp(U)||T_(U)||g.R8(U)||g.LV(U)||g.CV(U)||da(U)==="WEB_CREATOR"))return S.return();k=g.DA(U,g.Qs(u));return k.K?g.D(S,k.K,3):(m=k.getValue(),S.qF(2))}S.j!=2&&(m=S.K);X=m;return S.return(ggu(Y,u,X))})}; ggu=function(Y,u,n){var U,k,m,X,S;return g.l(function(C){if(C.j==1){g.pY(C,2);U=WfW(n);var f=u.Y();g.h6();var Q={context:g.t3(u),videoId:u.videoId,racyCheckOk:u.racyCheckOk,contentCheckOk:u.contentCheckOk,autonavState:"STATE_NONE"};PW(u)==="adunit"&&(Q.isAdPlayback=!0);f.embedConfig&&(Q.serializedThirdPartyEmbedConfig=f.embedConfig);f.Q3&&(Q.showContentOwnerOnly=!0);u.Np&&(Q.showShortsOnly=!0);g.wT(0,141)&&(Q.autonavState=g.wT(0,140)?"STATE_OFF":"STATE_ON");if(g.KV(f)){var N=g.wT(0,65);N=N!=null? !N:!1;var Z=!!g.ck("yt-player-sticky-caption");Q.captionsRequested=N&&Z}var T;if(f=(T=f.getWebPlayerContextConfig())==null?void 0:T.encryptedHostFlags)Q.playbackContext={encryptedHostFlags:f};k=Q;m=g.Fj(Eg0);Y.ED("wn_s");return g.D(C,g.RV(U,k,m),4)}if(C.j!=2)return X=C.K,Y.ED("wn_r"),!X||"error"in X&&X.error||(S=X,g.SG(u.Y())&&S.trackingParams&&Cq(S.trackingParams),g.Ax(u,{raw_watch_next_response:X},!1)),g.Bc(C,0);g.vc(C);g.KY(C)})}; H_M=function(Y){Y.ED("vir");Y.ED("ps_s");oV("vir",void 0,"video_to_ad");var u=wHt(Y);u.then(function(){Y.ED("virc");oV("virc",void 0,"video_to_ad");Y.ED("ps_r");oV("ps_r",void 0,"video_to_ad")},function(){Y.ED("virc"); oV("virc",void 0,"video_to_ad")}); return u}; g.CL=function(Y,u,n,U,k,m,X,S,C,f){C=C===void 0?new g.sZ(Y):C;f=f===void 0?!0:f;g.ud.call(this);var Q=this;this.xw=Y;this.playerType=u;this.DF=n;this.rE=U;this.getVisibilityState=m;this.visibility=X;this.W0=S;this.videoData=C;this.Pr=f;this.logger=new g.jW("VideoPlayer");this.YR=null;this.Zv=new pO;this.aF=null;this.Jm=!0;this.ZW=this.loader=null;this.hI=[];this.pQ=new md;this.fp=this.Yb=null;this.zV=new md;this.o7=null;this.BZ=this.A6=!1;this.fB=NaN;this.I$=!1;this.playerState=new g.RZ;this.nB=[]; this.AL=new g.j3;this.Rq=new iOu(this);this.mediaElement=null;this.EZ=new g.Vp(this.D1G,15E3,this);this.jV=this.yX=!1;this.HN=NaN;this.AT=!1;this.eO=0;this.gY=!1;this.Es=NaN;this.m0=new nL(new Map([["bufferhealth",function(){return rLu(Q.OD)}], ["bandwidth",function(){return Q.GL()}], ["networkactivity",function(){return Q.xw.schedule.jG}], ["livelatency",function(){return Q.isAtLiveHead()&&Q.isPlaying()?yLu(Q):NaN}], ["rawlivelatency",function(){return yLu(Q)}]])); this.sy=0;this.loop=!1;this.playbackRate=1;this.bX=0;this.OD=new CKM(this);this.Al=!1;this.R7=[];this.wZ=this.KD=0;this.KP=this.V4=!1;this.Jq=this.uf=0;this.Aw=new g.Vp(this.qM,0,this);this.gN=!1;this.FD=null;this.Fq2=[this.AL,this.Aw,this.EZ,this.m0];this.Cz=this.g0=null;this.ke=function(){var N=Q.Vm;N.provider.xw.gL||N.provider.IV.getVisibilityState()===3||(N.provider.xw.gL=!0);N.Yo();if(N.j){var Z=N.j;Z.J&&Z.K<0&&Z.provider.IV.getVisibilityState()!==3&&EQS(Z)}N.qoe&&(N=N.qoe,N.TZ&&N.X<0&&N.provider.xw.gL&& Mct(N),N.G&&CO(N));Q.loader&&PR(Q);Q.xw.vg&&!Q.videoData.backgroundable&&Q.mediaElement&&!Q.R_()&&(Q.isBackground()&&Q.mediaElement.T5()?(Q.fG("bgmobile",{suspend:1}),Q.Sc(!0,!0)):Q.isBackground()||SS(Q)&&Q.fG("bgmobile",{resume:1}))}; this.IH={x5:function(N){Q.x5(N)}, aQq:function(N){Q.YR=N}, RCG:function(){return Q.Vm}, KY:function(){return Q.ZW}, ibG:function(){return Q.Eq}, kmF:function(){return Q.di}, F1c:function(){}, Y:function(){return Q.xw}, wD:function(){return Q.mediaElement}, HLc:function(N){Q.zi(N)}, Jiz:function(){return Q.rE}}; this.logger.debug(function(){return"creating, type "+u}); this.N_=new VSd(this.xw);this.Tf=new t1(this.xw,this.rE,this);this.Xn=new g.bt(this,function(N,Z){N!==g.yk("endcr")||g.V(Q.playerState,32)||Q.q5();k(N,Z,Q.playerType);if(N===g.yk("transitiondetector")&&(N=Q.loader)!=null&&(N=N.Ru)!=null){var T=g.A(xWm(Z.id));T.next();T=T.next().value;cxS(N,T,Z.start/1E3-N.IV.iN(),AxM(N.G))}}); g.b(this,this.Xn);g.b(this,this.OD);VNc(this,C);this.videoData.subscribe("dataupdated",this.ySk,this);this.videoData.subscribe("dataloaded",this.ov,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.fG,this);this.videoData.subscribe("ctmpstr",this.Zr,this);!this.Vm||this.Vm.gg();this.Vm=new g.ek(new WG(this.videoData,this.xw,this));Qzu(this.ke);this.visibility.subscribe("visibilitystatechange",this.ke);this.Eq=new g.Vp(this.cq,g.YF(this.xw.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.di=new g.Vp(this.cq,g.YF(this.xw.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.C5=new g.qs(this.Foa,350,this);g.b(this,this.C5)}; VNc=function(Y,u){if(Y.playerType===2||Y.xw.sA)u.Pb=!0;var n=pTd(u.gL,u.WN,Y.xw.G,Y.xw.Z);n&&(u.adFormat=n);Y.playerType===2&&(u.zE=!0);if(Y.isFullscreen()||Y.xw.G)n=g.ck("yt-player-autonavstate"),u.autonavState=n||(Y.xw.G?2:Y.videoData.autonavState);u.endSeconds&&u.endSeconds>u.startSeconds&&Yz(Y,u.endSeconds)}; O_G=function(Y){var u=Y.videoData;H_M(Y).then(void 0,function(n){Y.videoData!==u||u.gg()||(n=TF(n),n.errorCode==="auth"&&Y.videoData.errorDetail?Y.Re(n.errorCode,2,unescape(Y.videoData.errorReason),NO(n.details),Y.videoData.errorDetail,Y.videoData.RD||void 0):Y.handleError(n))})}; qjd=function(Y){if(!g.V(Y.playerState,128))if(Y.videoData.isLoaded(),Y.logger.debug("finished loading playback data"),Y.hI=g.RL(Y.videoData.N),g.Jx(Y.videoData)){Y.DF.tick("bpd_s");fL(Y).then(function(){Y.DF.tick("bpd_c");if(!Y.gg()){Y.A6&&(Y.t_(l$(l$(Y.playerState,512),1)),SS(Y));var U=Y.videoData;U.endSeconds&&U.endSeconds>U.startSeconds&&Yz(Y,U.endSeconds);Y.pQ.finished=!0;Qe(Y,"dataloaded");Y.zV.M2()&&Fft(Y);gQu(Y.Tf,Y.fp)}}); Y.V("html5_log_media_perf_info")&&Y.fG("loudness",{v:Y.videoData.MA.toFixed(3)},!0);var u,n=(u=Y.mediaElement)==null?void 0:u.q1();if(n&&"disablePictureInPicture"in n&&Y.xw.cD)try{n.disablePictureInPicture=Y.xw.T3&&!Y.videoData.backgroundable}catch(U){g.Br(U)}JLu(Y)}else Qe(Y,"dataloaded")}; fL=function(Y){Nw(Y);Y.fp=null;var u=Fdc(Y.xw,Y.videoData,Y.R_());Y.Yb=u;Y.Yb.then(function(n){aRW(Y,n)},function(n){Y.gg()||(n=TF(n),Y.visibility.isBackground()?(ig(Y,"vp_none_avail"),Y.Yb=null,Y.pQ.reset()):(Y.pQ.finished=!0,Y.Re(n.errorCode,n.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",NO(n.details))))}); return u}; aRW=function(Y,u){if(!Y.gg()&&!u.videoData.gg()){Y.logger.debug("finished building playback data");Y.fp=u;NOe(Y.OD,Y.fp);if(Y.videoData.isLivePlayback){var n=$QB(Y.W0.eY,Y.videoData.videoId)||Y.loader&&!isNaN(Y.loader.rg);n=Y.V("html5_onesie_live")&&n;az(Y)||Y.videoData.nT>0&&!eX(Y.videoData)||n||Y.seekTo(Y.v0(),{L0:"videoplayer_playbackData",seekSource:18})}if(Y.videoData.X.K){if($NA(Y.videoData)){Y.Re("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",NO({missabrurl:1}));return}Y.loader?g.Br(Error("Duplicated Loader")): (n=g.YF(Y.xw.experiments,"html5_onesie_defer_content_loader_ms"))&&Y.Ws()&&$QB(Y.W0.eY,Y.videoData.foJ)?g.QS(function(){Y.gg()||Y.loader||YrG(Y)},n):YrG(Y)}else!Y.videoData.X.K&&r6(Y.videoData)&&Y.k9(new or(Y.videoData.videoId||"",4)); Y.V3();lWY(u).then(function(){var U={};Y.NW(U);Y.xw.gX()&&Y.V("html5_log_media_perf_info")&&Y.fG("av1Info",U);PR(Y)})}}; Fft=function(Y){Y.gg();Y.logger.debug("try finish readying playback");if(Y.zV.finished)Y.logger.debug("already finished readying");else if(Y.pQ.finished)if(g.V(Y.playerState,128))Y.logger.debug("cannot finish readying because of error");else if(Y.hI.length)Y.logger.debug(function(){return"cannot finish readying because of pending preroll: "+Y.hI}); else if(Y.Xn.started||bLW(Y.Xn),Y.r3())Y.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{Y.loader&&(Y.BZ=qXW(Y.loader.timing));Y.zV.finished||(Y.zV.finished=!0);var u=Y.V("html5_onesie_live")&&Y.loader&&!isNaN(Y.loader.rg);!Y.videoData.isLivePlayback||Y.videoData.nT>0&&!eX(Y.videoData)||u||az(Y)||(Y.logger.debug("seek to head for live"),Y.seekTo(Infinity,{L0:"videoplayer_readying",seekSource:18}),Y.isBackground()&&(Y.jV=!0));Kde(Y.Vm);Y.logger.debug("finished readying playback"); Y.publish("playbackready");t$("pl_c",Y.DF.timerName)||(Y.DF.tick("pl_c"),oV("pl_c",void 0,"video_to_ad"));t$("pbr",Y.DF.timerName)||(Y.DF.tick("pbr"),oV("pbr",void 0,"video_to_ad"))}else Y.logger.debug("playback data not loaded")}; Yz=function(Y,u){Y.aF&&u7Y(Y);Y.aF=new g.EE(u*1E3,0x7ffffffffffff);Y.aF.namespace="endcr";Y.addCueRange(Y.aF)}; u7Y=function(Y){Y.removeCueRange(Y.aF);Y.aF=null}; n_A=function(Y,u,n,U,k){var m=Y.Vm,X=Y.videoData;X.j=n;var S=g.Zd(Y);n=new LFm(X,n,u,S?S.itag:"",U);Y.xw.experiments.vz("html5_refactor_sabr_video_format_selection_logging")?(n.videoId=k,Y.Cz=n):m.qoe&&r3c(m.qoe,n);k=Y.Tf;k.j=0;k.K=0;Y.publish("internalvideoformatchange",X,u==="m")}; g.Zd=function(Y){var u=T1(Y);return Rs(u)||!Y.fp?null:g.G$(Y.fp.K.videoInfos,function(n){return u.G(n)})}; T1=function(Y){if(Y.fp){var u=Y.Tf;var n=Y.fp;Y=Y.Kn();var U=Bwt(u);if(Rs(U)){if(U=u.H_(n).compose(Ry7(u,n)).compose(xBd(u,n)).compose(IWu(u,n.videoData)).compose(zyu(u,n.videoData,n)).compose(bOt(u,n)).compose(c1t(u,n)),Rs(Y)||u.V("html5_apply_pbr_cap_for_drm"))U=U.compose(vQt(u,n))}else u.V("html5_perf_cap_override_sticky")&&(U=U.compose(bOt(u,n))),u.V("html5_ustreamer_cap_override_sticky")&&(U=U.compose(vQt(u,n)));U=U.compose(c1t(u,n));u=n.videoData.iR.compose(U).compose(n.videoData.jk).compose(Y)}else u= MW;return u}; YZu=function(Y){var u=Y.Tf;Y=Y.videoData;var n=IWu(u,Y);u.V("html5_disable_client_autonav_cap_for_onesie")||n.compose(zyu(u,Y));return n}; PR=function(Y){if(Y.videoData.X&&Y.videoData.X.K){var u=T1(Y);Y.loader&&h5A(Y.loader,u)}}; ULe=function(Y){var u;return!!(Y.V("html5_native_audio_track_switching")&&g.Z0&&((u=Y.videoData.j)==null?0:Jn(u)))}; kIY=function(Y){if(!ULe(Y))return!1;var u;Y=(u=Y.mediaElement)==null?void 0:u.audioTracks();return!!(Y&&Y.length>1)}; X4c=function(Y){var u=mLe(Y);if(u)return Y.videoData.getAvailableAudioTracks().find(function(n){return n.dX.getName()===u})}; mLe=function(Y){var u;if(Y=(u=Y.mediaElement)==null?void 0:u.audioTracks())for(u=0;u0&&(u.WC=n.LL));u.vC=n.Y$;u.nU=k4(U,{},n.X||void 0,R2(n));u.Pz=v2(n)&&(g.R8(U)||g.LV(U));xR(n)&&(u.J=!0,u.DQ=U.V("html5_estimate_live_partial_slice_duration"),u.sx=!0,U.V("html5_sabr_report_partial_segment_estimated_duration")&&(u.ue=!0),u.K=!0,u.Pg=U.V("html5_sabr_enable_live_clock_offset"),u.hG= U.V("html5_disable_client_resume_policy_for_sabr"),u.oG=U.V("html5_trigger_loader_when_idle_network"),u.xo=U.V("html5_sabr_parse_live_metadata_playback_boundaries"),u.mG=U.V("html5_consume_onesie_next_request_policy_for_sabr"),u.rA=U.V("html5_sabr_report_next_ad_break_time"),u.k5=U.V("html5_log_high_res_buffer_timeline")&&U.gX(),u.qU=U.V("html5_remove_stuck_slices_beyond_max_buffer_limits"),u.T_=U.V("html5_gapless_sabr_btl_last_slice")&&c2(n),u.GH=U.V("html5_reset_last_appended_slice_on_seek")&&c2(n), eX(n)?(u.G0=!0,u.b2=U.V("html5_disable_variability_tracker_for_live"),u.TZ=!0,U.V("html5_simplified_backup_timeout_sabr_live")&&(u.ma=!0,u.VI=u.iJ)):u.uD=U.V("html5_probe_request_on_sabr_request_progress"),u.Rr=U.V("html5_serve_start_seconds_seek_for_post_live_sabr"),u.b8=U.V("html5_flush_index_on_updated_timestamp_offset"),u.N=xR(n),u.d7=U.V("html5_ignore_partial_segment_from_live_readahead"),U.V("html5_include_partial_segment_for_jumbo_ll")&&bR(n)&&(u.d7=!1),u.Gs=U.V("html5_use_non_active_broadcast_for_post_live"), u.rg=U.V("html5_use_centralized_player_time"),u.CT=U.V("html5_log_centralized_player_time"),u.bb=U.V("html5_consume_onesie_sabr_seek"),u.KG=U.V("html5_enable_sabr_seek_loader_refactor"),u.iR=g.YF(U.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),u.Xb=U.V("html5_update_segment_start_time_from_media_header"),n.enableServerStitchedDai&&(u.j=!0,u.WN=U.V("html5_reset_server_stitch_state_for_non_sabr_seek"),u.Xc=U.V("html5_remove_ssdai_append_pause")&&!n.u6(),u.MA=U.V("html5_ssdai_log_ssevt_in_loader")|| U.V("html5_ssdai_log_ssevt_in_loader_200ms")||U.V("html5_ssdai_log_ssevt_in_loader_timers")||U.V("html5_ssdai_log_ssevt_in_loader_cuerange"),U.V("html5_ssdai_log_ssevt_in_loader_timers")?u.Iu=1:U.V("html5_ssdai_log_ssevt_in_loader_200ms")?u.Iu=3:U.V("html5_ssdai_log_ssevt_in_loader_cuerange")&&(u.Iu=0)),u.MO=U.gX()||n.u6());u.yY=g.JI0(n);yu(U.J,Vu.BITRATE)&&(u.NF=NaN);if(S=g.YF(U.experiments,"html5_request_size_max_kb"))u.JJ=S*1024;U.J.X?u.l4="; "+Vu.EXPERIMENTAL.name+"=allowed":U.V("html5_enable_cobalt_tunnel_mode")&& g.Io()&&(S=Vu.TUNNELMODE,u.l4="; "+S.name+"="+S.valid);n=n.serverPlaybackStartConfig;(n==null?0:n.enable)&&(n==null?0:n.playbackStartPolicy)&&(u.Vg=!0,Xa(u,n.playbackStartPolicy,2));n=PxW(Y);Y.Zv.removeAll();a:{S=Y.W0.eY;if(U=Y.videoData.videoId)if(k=S.K.get(U)){S.K.remove(U);S=k;break a}S=void 0}Y.loader=new g.ZW(Y,Y.xw.schedule,u,Y.videoData.K,Y.videoData.X,T1(Y),n,Y.videoData.enableServerStitchedDai,S,Y.videoData.KG);u=Y.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&Y.videoData.isLivePlayback&& Y.Ws()?!0:Y.A6&&g.Zp(Y.xw)&&Y.videoData.isLivePlayback;Y.loader.initialize(Y.getCurrentTime(),T1(Y),u);Y.videoData.probeUrl&&(Y.loader.Pz=Y.videoData.probeUrl);if(Y.hI.length||Y.A6)Y.videoData.cotn||rJ(Y,!1);Z_t(Y.OD,Y.loader);Y.FD&&(kGd(Y.loader,new g.T9(Y.FD)),Y.fG("sdai",{sdl:1}));g.d6(Y.videoData)&&(Y=Y.loader,Y.policy.Hk=Y.policy.m$)}; Nw=function(Y){Y.loader&&(Y.loader.dispose(),Y.loader=null,Z_t(Y.OD,null));Y.mY()?SrW(Y):Y.Xy()}; SrW=function(Y){if(Y.ZW)if(Y.logger.debug("release media source"),Y.KA(),Y.ZW.J)try{Y.xw.gX()&&Y.fG("rms",{l:"vprms",sr:Y.mY(),rs:Kh(Y.ZW)});Y.ZW.clear();var u;(u=Y.mediaElement)!=null&&(u.j=Y.ZW);Y.ZW=null}catch(n){u=new g.zP("Error while clearing Media Source in VideoPlayer: "+n.name+", "+n.message),u=TF(u),Y.handleError(u),Y.Xy()}else Y.Xy()}; CxS=function(Y,u){u=u===void 0?!1:u;if(Y.ZW)return Y.ZW.X;Y.logger.debug("update media source");a:{u=u===void 0?!1:u;try{g.Io()&&Y.videoData.JY()&&gAm(Y.mediaElement);var n=Y.mediaElement.KY(Y.g_(),Y.Da())}catch(k){if(szW(Y.Rq,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",k);Y.Re("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}Y.R6(n,!1,!1,u)}var U;return((U=Y.KY())==null?void 0:U.X)||null}; fgc=function(Y,u){u=u===void 0?!1:u;if(Y.loader){Y.videoData.enableServerStitchedDai&&s6e(Y.loader);var n=Y.getCurrentTime()-Y.iN();Y.loader.seek(n,{Vb:u}).Qg(function(){})}else YrG(Y)}; NiW=function(Y,u,n,U){n=n===void 0?!1:n;U=U===void 0?!1:U;if(Y.ZW&&(!u||Y.ZW===u)){Y.logger.debug("media source opened");var k=Y.getDuration();!k&&eX(Y.videoData)&&(k=25200);if(Y.ZW.isView){var m=k;Y.logger.debug(function(){return"Set media source duration to "+m+", video duration "+k}); m>Y.ZW.getDuration()&&Q7e(Y,m)}else Q7e(Y,k);DDc(Y.loader,Y.ZW,n,U);Y.publish("mediasourceattached")}}; Q7e=function(Y,u){if(Y.ZW){Y.ZW.Jp(u);var n;(n=Y.loader)!=null&&n.policy.rg&&(n.W=u)}}; Wjc=function(Y,u){n_A(Y,u.reason,u.K.info,u.token,u.videoId)}; Qe=function(Y,u){Y.publish("internalvideodatachange",u===void 0?"dataupdated":u,Y.videoData)}; iWW=function(Y){for(var u=g.A("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),n=u.next();!n.done;n=u.next())Y.AL.B(Y.mediaElement,n.value,Y.zi,Y);Y.xw.pY&&Y.mediaElement.m6()&&(Y.AL.B(Y.mediaElement,"webkitplaybacktargetavailabilitychanged",Y.MGq,Y),Y.AL.B(Y.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",Y.JJW,Y))}; Tie=function(Y){g.Zz(Y.fB);ZWW(Y)||(Y.fB=g.NI(function(){return ZWW(Y)},100))}; ZWW=function(Y){var u=Y.mediaElement;u&&Y.yX&&!Y.videoData.oV&&!t$("vfp",Y.DF.timerName)&&u.t4()>=2&&!u.isEnded()&&Ch(u.eM())&&Y.DF.tick("vfp");return(u=Y.mediaElement)&&!Y.videoData.oV&&u.getDuration()>0&&(u.isPaused()&&u.t4()>=2&&Ch(u.eM())&&(t$("pbp",Y.DF.timerName)||Y.DF.tick("pbp"),!Y.videoData.dO||Y.I$||u.isSeeking()||(Y.I$=!0,Y.publish("onPlaybackPauseAtStart"))),u=u.getCurrentTime(),Iz(Y.N_,u))?(Y.Hw(),!0):!1}; Mpt=function(Y){Y.Vm.onProgress();if(W2(Y.videoData)&&Date.now()>Y.bX+6283){if(!(!Y.isAtLiveHead()||Y.videoData.K&&yN(Y.videoData.K))){var u=Y.Vm;if(u.qoe){u=u.qoe;var n=u.provider.IV.rK(),U=g.Sk(u.provider);SAu(u,U,n);n=n.X;isNaN(n)||g.mF(u,U,"e2el",[n.toFixed(3)])}}Y.V("html5_alc_live_log_rawlat")?(u=Y.videoData,u=g.NV(u.Y())?!0:g.AA(u.Y())?u.drmProduct==="6":!1):u=g.NV(Y.xw);U=Y.V("html5_always_log_rawlat");(u||U)&&Y.fG("rawlat",{l:kz(Y.m0,"rawlivelatency").toFixed(3)});Y.bX=Date.now()}Y.videoData.j&& Jn(Y.videoData.j)&&(u=Y.X4())&&u.videoHeight!==Y.wZ&&(Y.wZ=u.videoHeight,n_A(Y,"a",rSd(Y,Y.videoData.TZ)))}; rSd=function(Y,u){if(u.K.video.quality==="auto"&&Jn(u.getInfo())&&Y.videoData.MR)for(var n=g.A(Y.videoData.MR),U=n.next();!U.done;U=n.next())if(U=U.value,U.getHeight()===Y.wZ&&U.K.video.quality!=="auto")return U.getInfo();return u.getInfo()}; yLu=function(Y){if(!W2(Y.videoData))return NaN;var u=0;Y.loader&&Y.videoData.K&&(u=eX(Y.videoData)?Y.loader.h7.E6()||0:Y.videoData.K.rg);return(0,g.j2)()/1E3-Y.Ia()-u}; dL7=function(Y){Y.mediaElement&&Y.mediaElement.R_()&&(Y.Es=(0,g.j2)());Y.xw.iJ?g.QS(function(){s7G(Y)},0):s7G(Y)}; s7G=function(Y){var u;if((u=Y.ZW)==null||!u.XT()){if(Y.mediaElement)try{Y.o7=Y.mediaElement.playVideo()}catch(U){ig(Y,"err."+U)}if(Y.o7){var n=Y.o7;n.then(void 0,function(U){Y.logger.debug(function(){return"playMediaElement failed: "+U}); if(!g.V(Y.playerState,4)&&!g.V(Y.playerState,256)&&Y.o7===n)if(U&&U.name==="AbortError"&&U.message&&U.message.includes("load"))Y.logger.debug(function(){return"ignore play media element failure: "+U.message}); else{var k="promise";U&&U.name&&(k+=";m."+U.name);ig(Y,k);Y.Al=!0;Y.videoData.SW=!0}})}}}; ig=function(Y,u){g.V(Y.playerState,128)||(Y.t_(wb(Y.playerState,1028,9)),Y.fG("dompaused",{r:u}),Y.publish("onAutoplayBlocked"))}; SS=function(Y,u){u=u===void 0?!1:u;if(!Y.mediaElement||!Y.videoData.X)return!1;var n=u;n=n===void 0?!1:n;var U=null;var k;if((k=Y.videoData.X)==null?0:k.K){U=CxS(Y,n);var m;(m=Y.loader)==null||m.resume()}else Nw(Y),Y.videoData.TZ&&(U=Y.videoData.TZ.q_());k=Y.mediaElement.T5();n=!1;k&&k.equals(U)||(GIt(Y,U),n=!0);g.V(Y.playerState,2)||(U=Y.OD,u=u===void 0?!1:u,U.J||!(U.X>0)||U.mediaElement&&U.mediaElement.getCurrentTime()>0||(u={L0:"seektimeline_resumeTime",Vb:u},U.videoData.oV||(u.seekSource=15), U.seekTo(U.X,u)));a:{u=n;if(xR(Y.videoData)){if(!Y.videoData.jh())break a}else if(!g.yf(Y.videoData))break a;if(Y.mediaElement)if((U=Y.videoData.J)&&Y.mediaElement.m6()){k=Y.mediaElement.q1();if(Y.YR)if(k!==Y.YR.element)Mw(Y);else if(u&&U.flavor==="fairplay"&&!zq())Mw(Y);else break a;if(Y.V("html5_report_error_for_unsupported_tvos_widevine")&&zq()&&U.flavor==="widevine")Y.Re("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{Y.YR=new nQu(k,Y.videoData,Y.xw);Y.YR.subscribe("licenseerror", Y.iW,Y);Y.YR.subscribe("qualitychange",Y.r_F,Y);Y.YR.subscribe("heartbeatparams",Y.wb,Y);Y.YR.subscribe("keystatuseschange",Y.x5,Y);Y.YR.subscribe("ctmp",Y.fG,Y);u=g.A(Y.Zv.keys);for(U=u.next();!U.done;U=u.next())U=Y.Zv.get(U.value),Y.YR.XJ(U);Y.V("html5_eme_loader_sync")||Y.Zv.removeAll()}}else Y.Re("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return n}; GIt=function(Y,u){Y.DF.tick("vta");oV("vta",void 0,"video_to_ad");Y.getCurrentTime()>0&&sW0(Y.OD,Y.getCurrentTime());Y.mediaElement.activate(u);Y.ZW&&qx(4);!Y.videoData.oV&&Y.playerState.isOrWillBePlaying()&&Y.EZ.start();if(ULe(Y)){var n;if(u=(n=Y.mediaElement)==null?void 0:n.audioTracks())u.onchange=function(){Y.publish("internalaudioformatchange",Y.videoData,!0)}}}; Mw=function(Y){Y.YR&&(Y.YR.dispose(),Y.YR=null)}; ASB=function(Y){var u=u===void 0?!1:u;Y.logger.debug("reattachVideoSource");Y.mediaElement&&(Y.ZW?(Mw(Y),Y.Xy(),CxS(Y,u)):(Y.videoData.TZ&&Y.videoData.TZ.qc(),Y.mediaElement.stopVideo()),Y.playVideo())}; j7A=function(Y,u){Y.xw.V("html5_log_rebuffer_reason")&&(u={r:u,lact:dl()},Y.mediaElement&&(u.bh=oZ(Y.mediaElement)),Y.fG("bufreason",u))}; K7m=function(Y,u){if(Y.xw.gX()&&Y.mediaElement){var n=Y.mediaElement.Tw();n.omt=(Y.mediaElement.getCurrentTime()+Y.iN()).toFixed(3);n.ps=Y.playerState.state.toString(16);n.rt=(g.Sk(Y.Vm.provider)*1E3).toFixed();n.e=u;Y.R7[Y.KD++%5]=n}try{if(u==="timeupdate"||u==="progress")return}catch(U){}Y.logger.debug(function(){return"video element event "+u})}; p47=function(Y){if(Y.xw.gX()){Y.R7.sort(function(U,k){return+U.rt-+k.rt}); for(var u=g.A(Y.R7),n=u.next();!n.done;n=u.next())n=n.value,Y.fG("vpe",Object.assign({t:n.rt},n));Y.R7=[];Y.KD=0}}; L77=function(Y){if(g.es("cobalt")&&g.es("nintendo switch")){var u=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;Y.fG("nxdock",{d:u})}}; rJ=function(Y,u){var n;(n=Y.loader)==null||B6d(n,u)}; JLu=function(Y){A3(Y.videoData,"html5_set_debugging_opt_in")&&(Y=g.h6(),g.wT(0,183)||(eo(183,!0),Y.save()))}; diM=function(Y,u){Y.W0.IM()||(Y.fG("sgap",{f:u}),Y.W0.clearQueue(!1,u==="pe"))}; az=function(Y){return Y.V("html5_disable_video_player_initiated_seeks")&&xR(Y.videoData)}; tp0=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);of(this.api,"isLifaAdPlaying",function(){return u.api.isLifaAdPlaying()}); this.events.B(Y,"serverstitchedvideochange",function(){var n;(n=u.api.getVideoData())!=null&&n.u6()&&(u.api.isLifaAdPlaying()?(u.playbackRate=u.api.getPlaybackRate(),u.api.setPlaybackRate(1)):u.api.setPlaybackRate(u.playbackRate))}); this.playbackRate=1}; sK=function(Y){L0.call(this,"En bucle",g.Da.pO);this.L=Y;var u=Y.V("delhi_modern_web_player_icons")?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:oUA();this.setIcon(u);this.subscribe("select",this.j,this);Y.createClientVe(this.element,this,28661);this.B(Y,"settingsMenuVisibilityChanged",this.K);this.listen("click",this.logClick);this.B(Y,"onLoopChange",this.onLoopChange);tO(this,Y.getLoopVideo());Y.jc().rD(this)}; BiG=function(Y){MA.call(this,Y);var u=this;Y.addEventListener("settingsMenuInitialized",function(){u.menuItem||(u.menuItem=new sK(u.api),g.b(u,u.menuItem))}); Y.addEventListener("videodatachange",function(n,U){n=u.api.getPresentingPlayerType()===2;var k;(k=u.menuItem)==null||k.v$(!U.isLivePlayback&&!n)})}; o_d=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);of(this.api,"seekToChapterWithAnimation",function(n){u.seekToChapterWithAnimation(n)}); of(this.api,"seekToTimeWithAnimation",function(n,U){u.seekToTimeWithAnimation(n,U)}); of(this.api,"renderChapterSeekingAnimation",function(n,U,k){u.api.renderChapterSeekingAnimation(n,U,k)}); of(this.api,"setMacroMarkers",function(n){u.setMacroMarkers(Y,n)}); of(this.api,"changeMarkerVisibility",function(n,U,k){u.changeMarkerVisibility(n,U,k)}); of(this.api,"isSameMarkerTypeVisible",function(n){return u.isSameMarkerTypeVisible(n)})}; cSe=function(Y,u,n){var U=Y.api.getCurrentTime()*1E30&&k>0&&(n.width+=k,g.yV(u.element,"width",n.width+"px")));Y.size=n}}; g.lg=function(Y,u){var n=Y.K[Y.K.length-1];n!==u&&(Y.K.push(u),CCS(Y,n,u))}; g.wJ=function(Y){if(!(Y.K.length<=1)){var u=Y.K.pop(),n=Y.K[0];Y.K=[n];CCS(Y,u,n,!0)}}; CCS=function(Y,u,n,U){fsu(Y);u&&(u.unsubscribe("size-change",Y.JO,Y),u.unsubscribe("back",Y.Ya,Y));n.subscribe("size-change",Y.JO,Y);n.subscribe("back",Y.Ya,Y);if(Y.KT){g.UN(n.element,U?"ytp-panel-animate-back":"ytp-panel-animate-forward");n.yF(Y.element);n.focus();Y.element.scrollLeft=0;Y.element.scrollTop=0;var k=Y.size;Sbu(Y);g.nP(Y.element,k);Y.W=new g.Vp(function(){Q4G(Y,u,n,U)},20,Y); Y.W.start()}else n.yF(Y.element),u&&u.detach()}; Q4G=function(Y,u,n,U){Y.W.dispose();Y.W=null;g.UN(Y.element,"ytp-popup-animating");U?(g.UN(u.element,"ytp-panel-animate-forward"),g.mU(n.element,"ytp-panel-animate-back")):(g.UN(u.element,"ytp-panel-animate-back"),g.mU(n.element,"ytp-panel-animate-forward"));g.nP(Y.element,Y.size);Y.S=new g.Vp(function(){g.mU(Y.element,"ytp-popup-animating");u.detach();g.XE(u.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);Y.S.dispose();Y.S=null},250,Y); Y.S.start()}; fsu=function(Y){Y.W&&g.FD(Y.W);Y.S&&g.FD(Y.S)}; WR=function(Y){g.xz.call(this,Y,"ytp-shopping-product-menu");this.NN=new g.Rn(this.L);g.b(this,this.NN);this.hide();g.lg(this,this.NN);g.uc(this.L,this.element,4)}; i9B=function(Y,u,n){var U,k=u==null?void 0:(U=u.text)==null?void 0:U.simpleText;k&&(n=NBd(Y,n,k,u==null?void 0:u.icon,u==null?void 0:u.secondaryIcon),u.navigationEndpoint&&n.listen("click",function(){Y.L.Yw("innertubeCommand",u.navigationEndpoint);Y.hide()},Y))}; Z9W=function(Y,u,n){var U,k=u==null?void 0:(U=u.text)==null?void 0:U.simpleText;k&&NBd(Y,n,k,u==null?void 0:u.icon).listen("click",function(){var m;(u==null?void 0:(m=u.icon)==null?void 0:m.iconType)==="HIDE"?Y.L.publish("featuredproductdismissed"):u.serviceEndpoint&&Y.L.Yw("innertubeCommand",u.serviceEndpoint);Y.hide()},Y)}; NBd=function(Y,u,n,U,k){u=new g.ic(g.Za({},[],!1,!!k),u,n);k&&u.updateValue("secondaryIcon",TBB(k));u.setIcon(TBB(U));g.b(Y,u);Y.NN.rD(u,!0);return u}; TBB=function(Y){if(!Y)return null;switch(Y.iconType){case "ACCOUNT_CIRCLE":return{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return TTG();case "HIDE":return{D:"svg",T:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"g",U:[{D:"path",T:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return d5()}}; eS=function(Y){cR.call(this,Y,!1,!0);this.isCounterfactual=this.j=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Z=!0;this.overflowButton=new g.H({D:"button",Oc:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.b(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.H({D:"img",C:"ytp-suggested-action-badge-img",T:{src:"{{url}}"}}); this.thumbnailImage.hide();g.b(this,this.thumbnailImage);this.thumbnailIcon=new g.H({D:"div",C:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.b(this,this.thumbnailIcon);this.banner=new g.H({D:"a",C:"ytp-suggested-action-container",U:[this.thumbnailImage,this.thumbnailIcon,{D:"div",C:"ytp-suggested-action-details",U:[{D:"text",C:"ytp-suggested-action-title",RV:"{{title}}"},{D:"text",C:"ytp-suggested-action-subtitle",RV:"{{subtitle}}"},{D:"text",C:"ytp-suggested-action-metadata-text", RV:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.b(this,this.banner);this.banner.yF(this.X.element);this.B(this.L,"videodatachange",this.onVideoDataChange);this.B(this.L,g.yk("suggested_action_view_model"),this.fFF);this.B(this.L,g.Vk("suggested_action_view_model"),this.nVg);this.B(this.overflowButton.element,"click",this.fO);this.B(Y,"featuredproductdismissed",this.vK);this.L.createServerVe(this.banner.element,this.banner,!0)}; rhS=function(Y){Y.isInitialized&&(Y.enabled=Y.isVisible,Y.oV=Y.isVisible,on(Y),Y.Zy(),Y.thumbnailImage.v$(Y.isVisible),Y.shouldHideDismissButton||Y.dismissButton.v$(Y.isVisible),Y.shouldShowOverflowButton&&Y.overflowButton.v$(Y.isVisible))}; bg=function(){eS.apply(this,arguments)}; MxW=function(Y){MA.call(this,Y);this.K=new bg(this.api);g.b(this,this.K);g.uc(this.api,this.K.element,4)}; In=function(Y){MA.call(this,Y);var u=this;this.K=!0;var n=new g.j3(Y);g.b(this,n);n.B(Y,"internalaudioformatchange",function(U,k){s4Y(u,U,k)}); n.B(Y,"videoplayerreset",function(){daY(u)}); n.B(Y,"videodatachange",function(U,k){u.onVideoDataChange(U,k)})}; s4Y=function(Y,u,n){if(n){var U="";G7M(Y,u)&&(U=u,Y.api.Y().dg=u);if(U&&AhA(Y,U)){viG(Y.api,U);var k;H3(xn(Y.api.Y(),(k=Y.api.getVideoData())==null?void 0:g.Qs(k)),function(m){j4c(Y,U,m)})}}}; daY=function(Y){var u;if((u=Kq())==null?0:u.size){var n;H3(xn(Y.api.Y(),(n=Y.api.getVideoData())==null?void 0:g.Qs(n)),function(U){(U=KNY(U))&&AhA(Y,U)&&(Y.api.Y().dg=U)})}}; j4c=function(Y,u,n){KNY(n)!==u&&(pJ0([{settingItemId:z1(n),settingOptionValue:{stringValue:u}}]),H3(Y.LF(),function(U){Tl7(U,z1(n),{stringValue:u})}))}; LNt=function(Y,u){ym(H3(H3(Y.LF(),function(n){return iAu(n,[z1(u)])}),function(n){if(n){n=g.A(n); for(var U=n.next();!U.done;U=n.next()){var k=U.value;U=k.key;k=k.value;U&&k&&(pJ0([{settingItemId:U,settingOptionValue:k}]),daY(Y))}}}),function(){Y.K=!0})}; G7M=function(Y,u){Y=Y.api.getAvailableAudioTracks();Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next())if(n=n.value,n.getLanguageInfo().getId()===u)return n;return null}; KNY=function(Y){Y=z1(Y);var u=Kq();Y=u?u.get(Y):void 0;return Y&&Y.stringValue?Y.stringValue:""}; z1=function(Y){var u=(484).toString();Y&&(u=(483).toString());return u}; AhA=function(Y,u){var n;return u.split(".")[0]!==""&&((n=Y.api.getVideoData())==null?void 0:!ZP(n))}; pJ0=function(Y){var u=Kq();u||(u=new Map);Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next())n=n.value,u.set(n.settingItemId,n.settingOptionValue);u=JSON.stringify(Object.fromEntries(u));g.oU("yt-player-user-settings",u,2592E3)}; g.gJ=function(Y,u,n,U,k,m,X){g.ic.call(this,g.Za({"aria-haspopup":"true"}),u,Y);this.jE=U;this.N=!1;this.X=null;this.options={};this.j=new g.Rn(n,void 0,Y,k,m,X);g.b(this,this.j);this.listen("keydown",this.Rc);this.listen("click",this.open)}; txA=function(Y){if(Y.X){var u=Y.options[Y.X];u.element.getAttribute("aria-checked");u.element.setAttribute("aria-checked","false");Y.X=null}}; BBY=function(Y,u){g.gJ.call(this,"Temporizador de apagado",g.Da.SLEEP_TIMER,Y,u);this.L=Y;this.Z={};this.W=this.WQ("Off");this.S=this.K="";Y.V("web_settings_menu_icons")&&(u=Y.V("delhi_modern_web_player_icons")?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{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.setIcon(u)); this.G=new g.H({D:"div",Oc:["ytp-menuitem-label-wrapper"],U:[{D:"div",RV:"Fin del video"},{D:"div",Oc:["ytp-menuitem-sublabel"],RV:"{{content}}"}]});g.b(this,this.G);this.listen("click",this.onClick);this.B(Y,"videodatachange",this.onVideoDataChange);this.B(Y,"presentingplayerstatechange",this.QF);this.B(Y,"settingsMenuVisibilityChanged",this.nO);Y.createClientVe(this.element,this,218889);this.QF();this.L.Yw("onSleepTimerFeatureAvailable")}; ofW=function(Y){var u="Off 10 15 20 30 45 60".split(" "),n;((n=Y.L.getVideoData())==null?0:n.isLivePlayback)||u.push("End of video");n=Y.L.getPlaylist();var U;n&&((U=n.listId)==null?void 0:U.type)!=="RD"&&u.push("End of playlist");Y.UT(g.dA(u,Y.WQ));Y.Z=g.qX(u,Y.WQ,Y);u=Y.WQ("End of video");Y.options[u]&&g.NA(Y.options[u],Y.G)}; ch7=function(Y,u){var n=Y.Z[u],U=n==="End of video"||n==="End of playlist";n==="Off"&&(Y.K="");Y.L.getPlayerState()!==0&&Y.L.getPlayerState()!==5||!U?(Y.W=u,g.gJ.prototype.mM.call(Y,u),Y.ww(u),Y.L.Yw("onSleepTimerSettingsChanged",n)):Y.L.Yw("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; EK=function(Y){MA.call(this,Y);var u=this;Y.addEventListener("settingsMenuInitialized",function(){u.menuItem||(u.menuItem=new BBY(u.api,u.api.jc()),g.b(u,u.menuItem))}); Y.addEventListener("openSettingsMenuItem",function(n){if(n==="menu_item_sleep_timer"){if(!u.menuItem){var U;(U=u.api.jc())==null||U.Su()}u.menuItem.open()}}); of(Y,"resetSleepTimerMenuSettings",function(){u.resetSleepTimerMenuSettings()}); of(Y,"setSleepTimerTimeLeft",function(n){u.setSleepTimerTimeLeft(n)}); of(Y,"setVideoTimeLeft",function(n){u.setVideoTimeLeft(n)})}; vfY=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"onSnackbarMessage",function(n){switch(n){case 1:n=u.api.getPlayerStateObject(),n.isBuffering()&&(u.api.V("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.V(n,8)&&g.V(n,16))&&u.api.Yw("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.ye=function(Y,u,n,U,k){u=u===void 0?!1:u;U=U===void 0?!1:U;k=k===void 0?!1:k;g.ud.call(this);this.N=k;this.S=!1;this.G=new Kb(this);this.J=this.W=null;this.X=this.j=!1;g.b(this,this.G);this.target=Y;this.K=u;this.Z=n||Y;this.S=U;u&&(g.NK&&this.target.setAttribute("draggable","true"),k||(this.target.style.touchAction="none"));HR(this)}; Ve=function(Y){g.Lb(Y.G,!Y.K)}; HR=function(Y){Y.J=null;Y.W=null;Y.B(OK("over"),Y.t1);Y.B("touchstart",Y.XR);Y.K&&Y.B(OK("down"),Y.ukk)}; RpM=function(Y,u){for(var n=0;nQ.start&&n>=5;K+=R}k=K.substr(0,4)+" "+K.substr(4,4)+" "+K.substr(8,4)+" "+(K.substr(12,4)+" "+K.substr(16,4))}else k="";X={video_id_and_cpn:String(u.videoId)+" / "+k,codecs:"",dims_and_frames:"",bandwidth_kbps:X.toFixed(0)+" Kbps",buffer_health_seconds:C.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:f?"":"display:none",drm:f,debug_info:n,extra_debug_info:"",bandwidth_style:Z,network_activity_style:Z,network_activity_bytes:S.toFixed(0)+" KB",shader_info:N,shader_info_style:N?"":"display:none",playback_categories:""};S=U.clientWidth+"x"+U.clientHeight+(Q>1?"*"+Q.toFixed(2):"");C="-";m.totalVideoFrames&&(C=(m.droppedVideoFrames||0)+" dropped of "+m.totalVideoFrames);X.dims_and_frames=S+" / "+C;Y=Y.getVolume();S=OBS(u);var x;if((x=u.G)==null?0:x.audio.j)x= "VB";else{var W;x=((W=u.G)==null?0:W.audio.K)?"DRC":Math.round(Y*S)+"%"}W=Math.round(Y)+"% / "+x;x=u.MA.toFixed(1);isFinite(Number(x))&&(W+=" (content loudness "+x+"dB)");X.volume=W;X.resolution=U.videoWidth+"x"+U.videoHeight;if(U=u.j){if(W=U.video)x=W.fps,x>1&&(X.resolution+="@"+x),(x=m.mj)&&x.video&&(X.resolution+=" / "+x.video.width+"x"+x.video.height,x.video.fps>1&&(X.resolution+="@"+x.video.fps)),X.codecs=wJB(U),!u.G||U.audio&&U.video?U.uW&&(X.codecs+=" / "+U.uW+"A"):X.codecs+=" / "+wJB(u.G), W.K||W.primaries?(x=W.K||"unknown",x==="smpte2084"?x+=" (PQ)":x==="arib-std-b67"&&(x+=" (HLG)"),X.color=x+" / "+(W.primaries||"unknown"),X.color_style=""):X.color_style="display:none";if(U.debugInfo)for(X.fmt_debug_info="",U=g.A(U.debugInfo),W=U.next();!W.done;W=U.next())W=W.value,X.fmt_debug_info+=W.label+":"+W.text+" ";X.fmt_debug_info_style=X.fmt_debug_info&&X.fmt_debug_info.length>0?"":"display:none"}U=u.isLivePlayback;W=u.H4;X.live_mode_style=U||W?"":"display:none";X.live_latency_style=U?"": "display:none";if(W)X.live_mode="Post-Live"+(eX(u)?" Manifestless":"");else if(U){W=m.yy;X.live_latency_secs=W.toFixed(2)+"s";U=eX(u)?"Manifestless, ":"";u.jG&&(U+="Windowed, ");x="Uncertain";if(W>=0&&W<120)if(u.latencyClass&&u.latencyClass!=="UNKNOWN")switch(u.latencyClass){case "NORMAL":x="Optimized for Normal Latency";break;case "LOW":x="Optimized for Low Latency";break;case "ULTRALOW":x="Optimized for Ultra Low Latency";break;default:x="Unknown Latency Setting"}else x=u.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";U+=x;(W=m.R$)&&(U+=", seq "+W.sequence);X.live_mode=U}!m.isGapless||c2(u)&&m.IM||(X.playback_categories+="Gapless ");X.playback_categories_style=X.playback_categories?"":"display:none";X.bandwidth_samples=m.VE;X.network_activity_samples=m.U5;X.live_latency_samples=m.WR;X.buffer_health_samples=m.eC;m=g.d6(u);if(u.cotn||m)X.cotn_and_local_media=(u.cotn?u.cotn:"null")+" / "+m;X.cotn_and_local_media_style=X.cotn_and_local_media?"":"display:none"; A3(u,"web_player_release_debug")?(X.release_name=P[11],X.release_style=""):X.release_style="display:none";X.debug_info&&T.length>0&&X.debug_info.length+T.length<=60?X.debug_info+=" "+T:X.extra_debug_info=T;X.extra_debug_info_style=X.extra_debug_info&&X.extra_debug_info.length>0?"":"display:none";return X}; wJB=function(Y){var u=/codecs="([^"]*)"/.exec(Y.mimeType);return u&&u[1]?u[1]+" ("+Y.itag+")":Y.itag}; uK=function(Y,u,n,U,k){g.H.call(this,{D:"div",C:"ytp-horizonchart"});this.S=u;this.sampleCount=n;this.G=U;this.W=k;this.index=0;this.heightPx=-1;this.X=this.j=null;this.K=Math.round(Y/n);this.element.style.width=this.K*this.sampleCount+"px";this.element.style.height=this.S+"em"}; n_=function(Y,u){if(Y.heightPx===-1){var n=null;try{n=g.rh("CANVAS"),Y.j=n.getContext("2d")}catch(S){}if(Y.j){var U=Y.K*Y.sampleCount;Y.X=n;Y.X.width=U;Y.X.style.width=U+"px";Y.element.appendChild(Y.X)}else for(Y.sampleCount=Math.floor(Y.sampleCount/4),Y.K*=4,n=0;n1?2:1,Y.X.height=Y.heightPx*n,Y.X.style.height= Y.heightPx+"px",Y.j.scale(1,n)));u=g.A(u);for(U=u.next();!U.done;U=u.next()){n=Y;var k=Y.index,m=U.value;for(U=0;U+20&&g.dh(u.j.element);U.classList.add("ytp-timely-actions-overlay");u.j.element.appendChild(U)}); g.b(this,this.j);this.V("web_player_overlay_positioned_layout")?this.events.B(Y,"basechromeinitialized",function(){u.api.JV(u.j.element,4,!0);u.j.element.setAttribute("data-overlay-order","10")}):g.uc(this.api,this.j.element,4)}; $aG=function(Y){Y.timelyActions&&(Y.G=Y.timelyActions.reduce(function(u,n){if(n.cueRangeId===void 0)return u;u[n.cueRangeId]=0;return u},{}))}; XN=function(Y,u){if(Y.timelyActions){Y=g.A(Y.timelyActions);for(var n=Y.next();!n.done;n=Y.next())if(n=n.value,n.cueRangeId===u)return n}}; YYG=function(Y,u){if((Y=XN(Y,u))&&Y.onCueRangeExit)return Rb(Y.onCueRangeExit)}; FNB=function(Y,u){return Y.X===void 0?!1:u.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(u.seekLengthMilliseconds)===5E3?Y.X===72:u.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(u.seekLengthMilliseconds)===1E4?Y.X===74:u.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(u.seekLengthMilliseconds)===5E3?Y.X===71:u.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(u.seekLengthMilliseconds)===1E4?Y.X===73:!1}; uB7=function(Y,u){var n=Number(u==null?void 0:u.maxVisibleDurationMilliseconds);n&&(PH(Y),Y.oV=setTimeout(function(){if(Y.K!==void 0&&(u==null?void 0:u.cueRangeId)===Y.K){Y.N=!1;var U=YYG(Y,Y.K);U&&Y.api.Yw("innertubeCommand",U)}},n))}; PH=function(Y){Y.oV&&clearTimeout(Y.oV);Y.oV=void 0;Y.N=!1}; JhG=function(Y){if(Y=Y.getWatchNextResponse()){var u,n;Y=(u=Y.playerOverlays)==null?void 0:(n=u.playerOverlayRenderer)==null?void 0:n.timelyActionsOverlayViewModel;u=g.z(Y,nGW);if(u!=null&&u.timelyActions)return u==null?void 0:u.timelyActions.map(function(U){return g.z(U,URc)}).filter(function(U){return!!U})}}; ka7=function(Y){MA.call(this,Y);var u=this;cW(this.api,"getPlaybackRate",function(){return u.api.getPlaybackRate()}); cW(this.api,"setPlaybackRate",function(n){typeof n==="number"&&u.api.setPlaybackRate(n)})}; SN=function(Y,u,n,U){L0.call(this,"VOICE_BOOST",g.Da.Of);this.K=!1;this.L=Y;this.jE=Y.jc();this.G=u;this.X=n;this.hasVoiceBoostAudioTrack=U;this.B(Y,"videodatachange",this.j);this.setIcon(KHW());this.subscribe("select",this.W,this);this.j()}; C_=function(Y){MA.call(this,Y);var u=this;this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"settingsMenuInitialized",function(){mRG(u)}); of(this.api,"getVoiceBoostUserPreference",function(){return u.getVoiceBoostUserPreference()}); of(this.api,"setVoiceBoostUserPreference",function(U){u.setVoiceBoostUserPreference(U)}); of(this.api,"hasVoiceBoostAudioTrack",function(){return u.hasVoiceBoostAudioTrack()}); var n;this.K=(n=ugS())!=null?n:0;this.updateEnvironmentData()}; mRG=function(Y){Y.menuItem||(Y.menuItem=new SN(Y.api,function(u){Y.setVoiceBoostUserPreference(u)},function(){return Y.getVoiceBoostUserPreference()},function(){return Y.hasVoiceBoostAudioTrack()}),g.b(Y,Y.menuItem))}; X9M=function(Y){Y=Y.Ff();if(!Y)return!1;Y=g.Yo(Y).exp||"";return Y.includes("xpv")||Y.includes("xpe")}; PHA=function(Y){Y=g.A(g.f_(Y,!0));for(var u=Y.next();!u.done;u=Y.next())if(X9M(u.value))return!0;return!1}; SYu=function(Y,u){Y=g.A(g.f_(Y,!0));for(var n=Y.next();!n.done;n=Y.next())if(n=n.value,X9M(n)){var U={potc:"1",pot:u};n.url&&(n.url=uL(n.url,U))}}; CHd=function(Y){return g.l(function(u){if(u.j==1)return g.pY(u,2),g.D(u,Y,4);if(u.j!=2)return g.Bc(u,0);g.vc(u);g.KY(u)})}; NQ=function(Y){MA.call(this,Y);var u=this;this.useLivingRoomPoToken=!1;this.J=new g.Nv;this.K=!1;this.DF=null;this.Z=!1;this.G=null;this.W=!1;var n=Y.Y().getWebPlayerContextConfig();this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"spsumpreject",function(U,k,m){u.W=k;U&&u.Z&&!u.G&&(u.V("html5_generate_content_po_token")&&m?u.Nl(m):u.V("html5_generate_session_po_token")&&fxd(u));u.G||u.api.fG("stp",{s:+u.Z,b:+u.W})}); this.events.B(Y,"poTokenVideoBindingChange",function(U){u.Nl(U)}); this.useLivingRoomPoToken=!(n==null||!n.useLivingRoomPoToken);Y.addEventListener("csiinitialized",function(){u.DF=Y.PC();var U=(u.V("html5_generate_session_po_token")||u.V("html5_generate_content_po_token"))&&!u.useLivingRoomPoToken;try{if(u.V("html5_use_shared_owl_instance"))QXW(u);else if(U){u.DF.vW("pot_isc");var k=g.YF(u.api.Y().experiments,"html5_webpo_kaios_defer_timeout_ms");k?(u.X=bJ(),g.QS(function(){QU(u)},k)):u.V("html5_webpo_idle_priority_job")?(u.X=bJ(),g.VT(g.FJ(),function(){QU(u)})): QU(u)}}catch(m){m instanceof Error&&g.Br(m)}}); Y.addEventListener("trackListLoaded",this.Wc.bind(this));Y.A2(this)}; NkW=function(Y){var u=AB(Y.experiments,"html5_web_po_request_key");return u?u:g.Zp(Y)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; idY=function(Y){var u=new usW,n={},U=(n["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",n);return new dj(u,Y,function(){return U})}; ZdG=function(Y){return new Gs(Y)}; iK=function(Y,u){Y.V("html5_webpo_bge_ctmp")&&Y.api.fG(u,{hwpo:!!Y.j,hwpor:Y.K})}; QXW=function(Y){var u,n;g.l(function(U){if(U.j==1)return iK(Y,"swpo_i"),Y.X=bJ(),ZR(Y),g.D(U,qS(),2);if(U.j!=3)return u=U.K,iK(Y,"swpo_co"),g.D(U,RJt(u),3);n=U.K;Y.V("html5_web_po_token_disable_caching")||n.FW(150);Y.j=n;iK(Y,"swpo_cc");CHd(n.Ih()).then(function(){Y.K=!0;Y.J.resolve();iK(Y,"swpo_re")}); g.QS(function(){QU(Y);iK(Y,"swpo_si")},0); g.KY(U)})}; MRY=function(Y){var u=Y.api.Y(),n=idY(NkW(u)),U=n.Nd.bind(n);n.Nd=function(S){var C;return g.l(function(f){if(f.j==1)return g.D(f,U(S),2);C=f.K;Y.api.fG("itr",{});return f.return(C)})}; try{var k=ZdG({U_:n,qt:{maxAttempts:5},LR:{EP:"CLEn",disable:u.experiments.vz("html5_web_po_disable_remote_logging")||Tku.includes(g.fo(u.uE)||""),hP:VJm(u.experiments),Oz:u.experiments.vz("wpo_gel_strz")?function(S){var C=rfB.get(S);C||(C=new QRS(S),C=new g.bs(C),rfB.set(S,C));return C}:void 0, Xzk:Y.V("wpo_dis_lfdms")?0:1E3},R_2:g.Br});var m=new Wg({mI:k,U_:n,onError:g.Br});CHd(m.Ih()).then(function(){Y.K=!0;Y.J.resolve()}); Y.V("html5_web_po_token_disable_caching")||m.FW(150);g.b(Y,k);g.b(Y,m);Y.j=m}catch(S){g.Br(S);var X;(X=k)==null||X.dispose()}}; QU=function(Y){var u=Y.api.Y();Y.DF.vW("pot_ist");Y.j||MRY(Y);Y.V("html5_bandaid_attach_content_po_token")||(Y.V("html5_generate_session_po_token")&&(ZR(Y),fxd(Y)),u=g.YF(u.experiments,"html5_session_po_token_interval_time_ms")||0,u>0&&(Y.S=g.NI(function(){ZR(Y)},u)),Y.Z=!0)}; ZR=function(Y){var u,n,U,k;g.l(function(m){if(!Y.V("html5_generate_session_po_token")||Y.useLivingRoomPoToken)return m.return();u=Y.api.Y();n=g.z6("EOM_VISITOR_DATA")||g.z6("VISITOR_DATA");U=u.ET?u.datasyncId:n;k=AB(u.experiments,"html5_mock_content_binding_for_session_token")||u.livingRoomPoTokenId||U;u.SW=TD(Y,k);g.KY(m)})}; TD=function(Y,u){if(!Y.j){if(Y.X)try{return Y.X(u)}catch(m){g.Br(m)}return""}try{Y.DF.vW(Y.K?"pot_cms":"pot_csms");var n={s5:!0,t8:!0,yv:u};Y.V("html5_web_po_token_disable_caching")||(n.ZQ={YU:u,D$:!0,Sm:!0});var U=Y.j.rh(n);Y.DF.vW(Y.K?"pot_cmf":"pot_csmf");if(Y.K){var k;(k=Y.G)==null||k.resolve();Y.G=null;Y.W&&(Y.W=!1,Y.api.app.wg().zH(!1))}return U}catch(m){return g.Br(m),""}}; fxd=function(Y){Y.j&&(Y.G=new Lh,Y.J.promise.then(function(){Y.DF.vW("pot_if");ZR(Y)}))}; g.rO=function(Y,u,n){g.PP(Y.element,"ytp-suggestion-set",!!u.videoId);var U=u.playlistId;n=u.I_(n?n:"mqdefault.jpg");var k=null,m=null;u instanceof $n&&(u.lengthText?(k=u.lengthText||null,m=u.QZ||null):u.lengthSeconds&&(k=g.sH(u.lengthSeconds),m=g.sH(u.lengthSeconds,!0)));var X=!!U;U=X&&q0(U).type==="RD";var S=u instanceof $n?u.isLivePlayback:null,C=u instanceof $n?u.isUpcoming:null,f=u.author,Q=u.shortViewCount,N=u.publishedTimeText,Z=[],T=[];f&&Z.push(f);Q&&(Z.push(Q),T.push(Q));N&&T.push(N);n= {title:u.title,author:f,author_and_views:Z.join(" \u2022 "),aria_label:u.ariaLabel||g.UR("Ver $TITLE",{TITLE:u.title}),duration:k,timestamp:m,url:u.yg(),is_live:S,is_upcoming:C,is_list:X,is_mix:U,background:n?"background-image: url("+n+")":"",views_and_publish_time:T.join(" \u2022 "),autoplayAlternativeHeader:u.BS};u instanceof aT&&(n.playlist_length=u.playlistLength);Y.update(n)}; g.MQ=function(Y){var u=Y.Y(),n=g.sP||g.Yn?{style:"will-change: opacity"}:void 0,U=u.G,k=["ytp-modern-videowall-still"];u.j&&k.push("ytp-videowall-show-text");g.H.call(this,{D:"a",Oc:k,T:{href:"{{url}}",target:U?u.N:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},U:[{D:"div",C:"ytp-modern-videowall-still-image",T:{style:"{{background}}"},U:[{D:"span",C:"ytp-modern-videowall-still-info-duration",RV:"{{duration}}"}]},{D:"span",C:"ytp-modern-videowall-still-info", T:{"aria-hidden":"true"},U:[{D:"span",C:"ytp-modern-videowall-still-info-bg",U:[{D:"span",C:"ytp-modern-videowall-still-info-content",T:n,U:[{D:"span",C:"ytp-modern-videowall-still-info-title",RV:"{{title}}"},{D:"span",C:"ytp-modern-videowall-still-info-author",RV:"{{author_and_views}}"},{D:"span",C:"ytp-modern-videowall-still-info-live",RV:"En vivo"}]}]}]},{D:"span",Oc:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],T:{"aria-hidden":"true"},U:[{D:"span",C:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{D:"span",C:"ytp-modern-videowall-still-listlabel-length",U:[" (",{D:"span",RV:"{{playlist_length}}"},")"]}]},{D:"span",Oc:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],T:{"aria-hidden":"true"},U:[{D:"span",C:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{D:"span",C:"ytp-modern-videowall-still-listlabel-length",RV:" (50+)"}]}]});this.suggestion=null;this.j=U;this.api=Y;this.K=new g.j3(this);g.b(this,this.K);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.K.B(Y,"videodatachange",this.onVideoDataChange);Y.createServerVe(this.element,this);this.onVideoDataChange()}; g.sXu=function(Y,u){if(Y.suggestion!==u){Y.suggestion=u;var n=Y.api.Y();g.rO(Y,u,"hqdefault.jpg");if(g.nV(n)&&!Y.api.V("web_player_log_click_before_generating_ve_conversion_params")){n=u.yg();var U={};g.Rf(Y.api,"addEmbedsConversionTrackingParams",[U]);n=g.Mk(n,U);Y.updateValue("url",n)}(u=(u=u.sessionData)&&u.itct)&&Y.api.setTrackingParams(Y.element,u)}}; GaM=function(Y,u){g.H.call(this,{D:"div",Oc:["ytp-fullscreen-grid"],U:[{D:"div",C:"ytp-fullscreen-grid-hover-overlay",T:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},U:[{D:"div",C:"ytp-fullscreen-grid-hover-overlay-chevron",U:[{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"g",T:{filter:"url(#filter0_d_3104_799356)"},U:[{D:"path",T:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{D:"defs",U:[{D:"filter",T:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},U:[{D:"feFlood",T:{"flood-opacity":"0",result:"BackgroundImageFix"}},{D:"feColorMatrix",T:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{D:"feOffset"},{D:"feGaussianBlur",T:{stdDeviation:"0.5"}},{D:"feComposite",T:{in2:"hardAlpha",operator:"out"}},{D:"feColorMatrix",T:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {D:"feBlend",T:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{D:"feBlend",T:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{D:"div",C:"ytp-fullscreen-grid-main-content",U:[{D:"div",C:"ytp-fullscreen-grid-header",U:[{D:"div",C:"ytp-fullscreen-grid-header-buttons",U:[{D:"button",Oc:["ytp-grid-replay-button","ytp-button"],T:{title:"Volver a reproducir","aria-keyshortcuts":"r","aria-label":"Volver a reproducir","data-title-no-tooltip":"Volver a reproducir"}, U:[c6c()]},{D:"button",C:"ytp-fullscreen-grid-header-button",T:{"aria-label":"{{ariaLabel}}"}}]},{D:"button",Oc:["ytp-grid-menu-close","ytp-button"],T:{"aria-label":"Cerrar"},U:[g.ZG()]}]},{D:"div",C:"ytp-fullscreen-grid-stills-container"}]}]});var n=this;this.player=Y;this.stills=[];this.videoData=null;this.currentState=0;this.S=this.Xk("ytp-fullscreen-grid-main-content");this.W=this.Xk("ytp-fullscreen-grid-header");Y=this.Xk("ytp-fullscreen-grid-header-buttons");this.X=this.Xk("ytp-grid-menu-close"); this.j=this.Xk("ytp-grid-replay-button");this.K=this.Xk("ytp-fullscreen-grid-header-button");this.N=this.Xk("ytp-fullscreen-grid-stills-container");this.G=new g.j3(this);g.b(this,this.G);this.Z=u;if(this.W&&this.S&&Y&&this.N&&this.K&&this.X){if(u=this.Xk("ytp-fullscreen-grid-hover-overlay"))this.B(u,"click",this.iI),HW(this.player,u,this);this.j&&(this.B(this.j,"click",function(U){n.MH(U)}),HW(this.player,this.j,this)); this.K&&this.B(this.K,"click",this.iI);this.X&&this.B(this.X,"click",this.iI);if(u=this.player.getVideoData(1))this.videoData=u,dRA(this);this.player.createClientVe(this.W,this,223051);this.G.B(this.player,"videodatachange",this.onVideoDataChange);this.G.B(this.player,"presentingplayerstatechange",this.nF)}}; dRA=function(Y){var u=Y.player.getPlayerStateObject();g.PP(Y.player.getRootNode(),"ytp-grid-ended-state",g.V(u,2))}; GD=function(Y){MA.call(this,Y);var u=this;this.S=this.K=this.j=0;this.W=null;this.G=0;this.isEnded=!1;this.Z=null;var n=new g.j3(Y);g.b(this,n);this.oV=this.api.V("web_player_imax_theater_mode");this.X=this.api.V("web_player_enable_fullscreen_grid_components");n.B(Y,"fullscreentoggled",function(){sj(u)}); n.B(Y,"autohideupdate",function(U){U&&u.j===2&&dO(u,1)}); n.B(Y,"videodatachange",function(){if(u.X){var U=u.api.getVideoData(1);u.videoData!==U&&u.j===2&&dO(u,1);u.videoData=U}},this); n.B(Y,"sizestylechange",function(){u.X&&sj(u)}); of(this.api,"setFullscreenQuickActions",function(U){u.setFullscreenQuickActions(U)}); of(this.api,"setPlayerOverlayVideoDetailsRenderer",function(U){u.setPlayerOverlayVideoDetailsRenderer(U)}); this.X&&AfW(this,n,Y)}; AfW=function(Y,u,n){u.B(n,"keyboardserviceglobalkeydown",function(U,k){Y.X&&U.keyCode===86&&!U.repeat&&Y.j!==0&&(k&&(k.bF=!0),jXt(Y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); u.B(Y.api.getRootNode(),"wheel",function(U){if(!Y.Z){var k;if(Y.X&&(k=Y.J)!=null&&k.element&&Y.j!==0&&AL(Y))if(g.UN(Y.api.getRootNode(),"ytp-grid-scrolling"),Y.G===0&&(Y.G=window.innerHeight),Y.j===1)Y.G!==0&&(Y.K+=U.deltaY/Y.G,Y.K=Math.min(Math.max(Y.K,0),.85),jN(Y),Kl7(Y,Math.abs(Y.K)>=.85));else if(Y.j===2){k=U.deltaY<0;var m,X=((m=Y.J)==null?void 0:m.element.scrollTop)===0;k&&X?Y.G!==0&&(Y.K+=U.deltaY/Y.G,jN(Y),Kl7(Y,Math.abs(Y.K)>=.85)):Y.K!==0&&(Y.K=0,jN(Y))}}},{passive:!0}); u.B(n,"standardControlsInitialized",function(){if(!Y.J){Y.J=new GaM(Y.api,Y.KG.bind(Y));g.b(Y,Y.J);var U=Y.api.getRootNode().querySelector(".ytp-chrome-bottom");U&&U.parentNode&&U.parentNode.insertBefore(Y.J.element,U.nextSibling)}}); u.B(n,"presentingplayerstatechange",function(){K_(Y)}); u.B(n,"autonavvisibility",function(){K_(Y)}); Y.api.XY().subscribe("visibilitystatechange",function(){K_(Y)}); p9B(Y,Y.j)}; Kl7=function(Y,u){Y.W&&clearTimeout(Y.W);u?Lle(Y):Y.W=window.setTimeout(function(){Lle(Y)},150)}; Lle=function(Y){Y.W&&(clearTimeout(Y.W),Y.W=null);Y.G=0;Y.X&&Y.j!==0&&(Math.abs(Y.K)>=.15&&jXt(Y,"INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),Y.K=0,jN(Y),g.mU(Y.api.getRootNode(),"ytp-grid-scrolling"))}; jXt=function(Y,u){Y.X&&(u==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(Y.Z&&clearTimeout(Y.Z),Y.Z=window.setTimeout(function(){Y.Z=null},1E3)),Y.j===1?dO(Y,2):dO(Y,1))}; AL=function(Y){return Y.api.isFullscreen()||Y.oV&&Y.api.OP()}; sj=function(Y){var u=AL(Y);g.PP(Y.api.getRootNode(),"ytp-full-bleed-player",u);Y.N&&g.kS(Y.N,u);Y.playerOverlayVideoDetailsRenderer&&g.kS(Y.playerOverlayVideoDetailsRenderer,u);Y.X&&K_(Y)}; K_=function(Y){if(Y.X){var u;if(Y.api.getPresentingPlayerType()===2||Y.api.G4()||((u=g.w6(Y.api))==null?0:u.WW())||Y.api.isMinimized())dO(Y,0);else{if(u=g.V(Y.api.getPlayerStateObject(),2))dO(Y,2);else if(Y.isEnded&&!u){var n=AL(Y)?1:0;Y.isEnded=u;dO(Y,n)}else AL(Y)?Y.j!==2&&dO(Y,1):dO(Y,0);Y.isEnded=u}}}; dO=function(Y,u){Y.j=u;var n;(n=Y.J)==null||n.Ve(u);Y.K=0;jN(Y);p9B(Y,u)}; p9B=function(Y,u){Y=Y.api.getRootNode();g.PP(Y,"ytp-fullscreen-grid-peaking",u===1);g.PP(Y,"ytp-fullscreen-grid-active",u===2)}; jN=function(Y){requestAnimationFrame(function(){var u=Y.K-Y.S,n=u;Y.K!==0&&(n=Math.max(-.01,Math.min(u,.01)));Y.S+=n;Y.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+Y.S.toString());Y.S!==Y.K&&jN(Y)})}; tR0=function(Y){MA.call(this,Y);var u=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.j3(Y);g.b(this,this.events);this.events.B(Y,"heartbeatRequest",function(n){if(u.freePreviewUsageDetails.length||u.freePreviewWatchedDuration!==null)n.heartbeatRequestParams||(n.heartbeatRequestParams={}),n.heartbeatRequestParams.unpluggedParams||(n.heartbeatRequestParams.unpluggedParams={}),u.freePreviewUsageDetails.length>0?n.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= u.freePreviewUsageDetails:n.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+u.freePreviewWatchedDuration}}); of(Y,"setFreePreviewWatchedDuration",function(n){u.freePreviewWatchedDuration=n}); of(Y,"setFreePreviewUsageDetails",function(n){u.freePreviewUsageDetails=n})}; p_=function(Y){g.e.call(this);this.features=[];var u=this.K,n=new Va(Y),U=new sS(Y),k=new jS(Y),m=new NQ(Y);var X=g.NV(Y.Y())?void 0:new bc(Y);var S=new Ab(Y),C=new IsG(Y),f=new ka7(Y),Q=new ya(Y);var N=g.NV(Y.Y())?new tR0(Y):void 0;var Z;var T=(Z=Y.Y().getWebPlayerContextConfig())!=null&&Z.cinematicSettingsAvailable?new hO(Y):void 0;Z=new HO(Y);var r=Y.V("enable_courses_player_overlay_purchase")?new SdG(Y):void 0;var K=g.KV(Y.Y())?new kYA(Y):void 0;var L=new IP(Y);var R=Y.Y().G?new a$m(Y):void 0; var c=g.nV(Y.Y())?new qld(Y):void 0;var x=Y.V("web_player_move_autonav_toggle")&&Y.Y().yY?new giY(Y):void 0;var W=g.KV(Y.Y())?new o_d(Y):void 0;var E=Y.V("web_enable_speedmaster")&&g.KV(Y.Y())?new qw(Y):void 0;var J=Y.Y().Bv?void 0:new O9A(Y);var O=Y.V("report_pml_debug_signal")?new eiY(Y):void 0;var Xd=new g_d(Y),T0=new tb(Y);var SM=g.R8(Y.Y())?new maM(Y):void 0;var CY=navigator.mediaSession&&window.MediaMetadata&&Y.Y().jT?new dJ(Y):void 0;var uB=Y.V("html5_enable_drc")&&!Y.Y().W?new eL(Y):void 0; var cc=new GG(Y);var J7=g.KV(Y.Y())?new MxW(Y):void 0;var uQ=Y.V("html5_enable_d6de4")?new KL(Y):void 0;var sq=g.KV(Y.Y())&&Y.V("web_sleep_timer")?new EK(Y):void 0;var CR=g.nV(Y.Y())?new Ydu(Y):void 0;var Du=new In(Y),XH=new O2Y(Y),Wu=new tp0(Y);var Hu=Y.V("enable_sabr_snackbar_message")?new vfY(Y):void 0;var Pq=Y.V("web_enable_timely_actions")?new asc(Y):void 0;var v=new wd(Y);var IK=g.KV(Y.Y())?new GD(Y):void 0;var x$=Y.V("html5_enable_voice_boost")?new C_(Y):void 0;var Uu=Y.V("web_player_loop_settings_menu")&& Y.Y().dO?new BiG(Y):void 0;var ty=Y.V("html5_masthead_default_playback_rate")&&!g.NV(Y.Y())?new DL0(Y):void 0;var p=Y.V("web_player_playable_sequences_refactor")?new Ybe(Y):void 0;var nY=Y.V("html5_enable_audio_quality_setting")&&Y.V("html5_enable_audio_quality_setting_feature")?new K0(Y):void 0;Y=Y.V("html5_ypc_clickwrap_module_refactor")?new E_M(Y):void 0;u.call(this,n,U,k,m,X,S,C,f,Q,N,T,Z,r,K,L,R,c,x,W,E,J,O,Xd,T0,SM,void 0,CY,uB,cc,void 0,J7,uQ,sq,CR,void 0,Du,XH,Wu,void 0,Hu,Pq,v,IK,x$,void 0, Uu,void 0,ty,p,nY,Y)}; Bku=function(){this.j=this.K=NaN}; oGu=function(Y,u){this.xw=Y;this.timerName="";this.X=!1;this.j=NaN;this.G=new Bku;this.K=u||null;this.X=!1}; cft=function(Y,u,n){var U=g.SG(u.GZ)&&!u.GZ.W;if(u.GZ.Ee&&(kn(u.GZ)||u.GZ.rg==="shortspage"||co(u.GZ)||U)&&!Y.X){Y.X=!0;Y.W=u.clientPlaybackNonce;g.z6("TIMING_ACTION")||IJ("TIMING_ACTION",Y.xw.csiPageType);Y.xw.csiServiceName&&IJ("CSI_SERVICE_NAME",Y.xw.csiServiceName);if(Y.K){U=Y.K.PC();for(var k=g.A(Object.keys(U)),m=k.next();!m.done;m=k.next())m=m.value,Kg(m,U[m],Y.timerName);U=g.O_(EaY)(Y.K.Ut);g.pg(U,Y.timerName);U=Y.K;U.K={};U.Ut={}}g.pg({playerInfo:{visibilityState:g.O_(gae)()},playerType:"LATENCY_PLAYER_HTML5"}, Y.timerName);Y.J!==u.clientPlaybackNonce||Number.isNaN(Y.j)||(t$("_start",Y.timerName)?n=g.O_(sz)("_start",Y.timerName)+Y.j:g.Br(new g.zP("attempted to log gapless pbs before CSI timeline started",{cpn:u.clientPlaybackNonce})));n&&!t$("pbs",Y.timerName)&&L_(Y,n)}}; L_=function(Y,u,n){Kg("pbs",u!=null?u:(0,g.j2)(),n!=null?n:Y.timerName)}; tL=function(Y){Y0M();$yW();Y.timerName=""}; vGM=function(Y){if(Y.K){var u=Y.K;u.K={};u.Ut={}}Y.X=!1;Y.J=void 0;Y.j=NaN}; RGM=function(Y,u){g.ud.call(this);this.GZ=Y;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.K=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.j=0;if(Y=u.session_data)this.sessionData=Jw(Y,"&");this.index=Math.max(0,Number(u.index)||0);this.loop=!!u.loop;this.startSeconds=Number(u.startSeconds)||0;this.title=u.playlist_title||"";this.description=u.playlist_description||"";this.author= u.author||u.playlist_author||"";u.video_id&&(this.items[this.index]=u);if(Y=u.api)typeof Y==="string"&&Y.length===16?u.list="PL"+Y:u.playlist=Y;if(Y=u.list)switch(u.listType){case "user_uploads":this.listId=new JA("UU","PLAYER_"+Y);break;default:var n=u.playlist_length;n&&(this.length=Number(n)||0);this.listId=q0(Y);if(Y=u.video)this.items=Y.slice(0),this.loaded=!0}else if(u.playlist){Y=u.playlist.toString().split(",");this.index>0&&(this.items=[]);Y=g.A(Y);for(n=Y.next();!n.done;n=Y.next())(n=n.value)&& this.items.push({video_id:n});this.length=this.items.length;if(Y=u.video)this.items=Y.slice(0),this.loaded=!0}this.setShuffle(!!u.shuffle);if(Y=u.suggestedQuality)this.quality=Y;this.Z=yz(u,"playlist_");this.X=(u=u.thumbnail_ids)?u.split(","):[]}; DRc=function(Y){return!!(Y.playlist||Y.list||Y.api)}; xRW=function(Y){var u=Y.index+1;return u>=Y.length?0:u}; lxA=function(Y){var u=Y.index-1;return u<0?Y.length-1:u}; g.BH=function(Y,u,n,U){u=u!==void 0?u:Y.index;u=Y.items&&u in Y.items?Y.items[Y.order[u]]:null;var k=null;u&&(n&&(u.autoplay="1"),U&&(u.autonav="1"),k=new g.sZ(Y.GZ,u),g.b(Y,k),k.T_=!0,k.startSeconds=Y.startSeconds||k.clipStart||0,Y.listId&&(k.playlistId=Y.listId.toString()));return k}; hGu=function(Y,u){Y.index=g.gS(u,0,Y.length-1);Y.startSeconds=0}; w9A=function(Y,u){if(u.video&&u.video.length){Y.title=u.title||"";Y.description=u.description;Y.views=u.views;Y.likes=u.likes;Y.dislikes=u.dislikes;Y.author=u.author||"";var n=u.loop;n&&(Y.loop=n);n=g.BH(Y);Y.items=[];for(var U=g.A(u.video),k=U.next();!k.done;k=U.next())if(k=k.value)k.video_id=k.encrypted_id,Y.items.push(k);Y.length=Y.items.length;(u=u.index)?Y.index=u:Y.findIndex(n);Y.setShuffle(!1);Y.loaded=!0;Y.j++;Y.K&&Y.K()}}; bdA=function(Y,u){var n,U,k,m,X,S,C;return g.l(function(f){if(f.j==1){n=g.gV();var Q=Y.Y(),N={context:g.t3(Y),playbackContext:{contentPlaybackContext:{ancestorOrigins:Q.ancestorOrigins}}},Z=Q.getWebPlayerContextConfig();if(Z==null?0:Z.encryptedHostFlags)N.playbackContext.contentPlaybackContext.encryptedHostFlags=Z.encryptedHostFlags;if(Z==null?0:Z.hideInfo)N.playerParams={showinfo:!1};Z=Q.embedConfig;var T=Y.N5;var r=u.docid||u.video_id||u.videoId||u.id;if(!r){r=u.raw_embedded_player_response;if(!r){var K= u.embedded_player_response;K&&(r=JSON.parse(K))}if(r){var L,R,c,x,W,E;r=((E=g.z((L=r)==null?void 0:(R=L.embedPreview)==null?void 0:(c=R.thumbnailPreviewRenderer)==null?void 0:(x=c.playButton)==null?void 0:(W=x.buttonRenderer)==null?void 0:W.navigationEndpoint,g.pk))==null?void 0:E.videoId)||null}else r=null}L=(L=r)?L:void 0;R=Y.playlistId?Y.playlistId:u.list;c=u.listType;if(R){var J;c==="user_uploads"?J={username:R}:J={playlistId:R};WlY(Z,T,L,u,J,Q.experiments);N.playlistRequest=J}else u.playlist? (J={templistVideoIds:u.playlist.toString().split(",")},WlY(Z,T,L,u,J,Q.experiments),N.playlistRequest=J):L&&(J={videoId:L},T&&Q.V("embeds_enable_per_video_embed_config")?J.serializedThirdPartyEmbedConfig=T:Z&&(J.serializedThirdPartyEmbedConfig=Z),N.singleVideoRequest=J);U=N;k=g.Fj(eGB);g.pY(f,2);return g.D(f,g.RV(n,U,k),4)}if(f.j!=2)return m=f.K,X=Y.Y(),u.raw_embedded_player_response=m,X.DW=mH(u,g.nV(X)),X.X=X.DW==="EMBEDDED_PLAYER_MODE_PFL",m&&(S=m,S.trackingParams&&Cq(S.trackingParams)),f.return(new g.sZ(X, u));C=g.vc(f);C instanceof Error||(C=Error("b259802748"));g.tl(C);return f.return(Y)})}; WlY=function(Y,u,n,U,k,m){U.index&&(k.playlistIndex=String(Number(U.index)+1));k.videoId=n?n:"";u&&m.vz("embeds_enable_per_video_embed_config")?k.serializedThirdPartyEmbedConfig=u:Y&&(k.serializedThirdPartyEmbedConfig=Y)}; g.cH=function(Y,u){oW.get(Y);oW.set(Y,u)}; g.vH=function(Y){g.ud.call(this);this.loaded=!1;this.player=Y}; Ixe=function(){this.j=[];this.K=[]}; g.f_=function(Y,u){return u?Y.K.concat(Y.j):Y.K}; g.RW=function(Y,u){switch(u.kind){case "asr":zGc(u,Y.j);break;default:zGc(u,Y.K)}}; zGc=function(Y,u){g.G$(u,function(n){return Y.equals(n)})||u.push(Y)}; g.DR=function(Y){g.e.call(this);this.Bz=Y;this.j=new Ixe;this.X=null;this.J=[];this.Z=[]}; g.xg=function(Y,u,n){g.DR.call(this,Y);this.videoData=u;this.audioTrack=n;this.K=null;this.G=!1;this.J=u.cL;this.Z=u.sz;this.G=g.Sc(u)}; g.gGG=function(Y,u){var n;return Y.Y().V("safari_live_drm_captions_fix")&&((n=Y.getVideoData())==null?0:n.jh())?!1:g.NV(Y.Y())&&!u.isManifestless}; g.lK=function(Y,u){return Y6(Y.info.mimeType)?u?Y.info.itag===u:!0:!1}; g.EGt=function(Y,u){if(Y.K!=null&&g.gGG(u,Y.K)&&Y.K.K.rawcc!=null)return!0;if(!Y.W$())return!1;u=!!Y.K&&Y.K.isManifestless&&Object.values(Y.K.K).some(function(n){return g.lK(n,"386")}); Y=!!Y.K&&!Y.K.isManifestless&&g.QZd(Y.K);return u||Y}; g.hL=function(Y,u,n,U,k,m){g.DR.call(this,Y);this.videoId=n;this.p9=k;this.eventId=m;this.W={};this.K=null;Y=U||g.Yo(u).hl||"";Y=Y.split("_").join("-");this.G=uL(u,{hl:Y})}; HdB=function(Y,u){g.e.call(this);var n=this;this.L=Y;this.G=u;this.Ut={};this.K={};this.j=null;this.X=new Set;this.J=new g.j3(this);this.IH={WO2:function(){return n.G}}; this.W=this.L.V("web_player_defer_modules");this.P4=new Map;g.b(this,this.J);this.J.B(Y,"videodatachange",this.onVideoDataChange)}; yfY=function(Y,u){Y.j=u}; g.wO=function(Y){return Y.P4.get("captions")}; $R7=function(Y,u){switch(u){case "ad":return VRA(Y);case "annotations_module":return Y.L.isEmbedsShortsMode()?Y=!1:(u=Y.L,Y=u.Y(),u=u.getVideoData(),Y=Y.X||u.zp||Y.controlsType==="3"?!1:Y.Fk.isEmpty()&&Y.playerStyle!=="annotation-editor"&&Y.playerStyle!=="live-dashboard"?!!u.JJ||!!g.mj(u)||!!g.X0(u):!0),Y;case "asmjs":return Odu(Y);case "creatorendscreen":return FlB(Y);case "embed":return g.nV(Y.L.Y());case "endscreen":return g.Jf0(Y);case "heartbeat":return Y.lG();case "kids":return T_(Y.L.Y()); case "remote":return Y.L.Y().SQ;case "miniplayer":return Y.L.Y().showMiniplayerUiWhenMinimized;case "offline":return Y.L.Y().xa;case "captions":return qYW(Y);case "unplugged":return g.CV(Y.L.Y());case "ux":return Y.L.Y().TZ;case "webgl":return axA(Y);case "ypc":return Y.vu();case "ypc_clickwrap":return aHM(Y.L.getVideoData());case "yto":return Y.L.V("web_player_playable_sequences_refactor")?!1:!!Y.L.getVideoData().N.includes("yto");default:return g.tl(Error("Module descriptor "+u+" does not match")), !1}}; WH=function(Y,u,n,U,k){var m;n=n===void 0?!1:n;U=U===void 0?!1:U;var X=Y.P4.get(u);if(!X||U)if(k||(k=function(){WH(Y,u,n,U)}),m||(m=function(){Y.L.rL(u)}),X=X||YnS(Y,u,$R7(Y,u),k,m))Y.P4.set(u,X),X.create(),Y.L.publish("modulecreated",u),n&&Y.L.Ar("onApiChange")}; n0B=function(Y){var u=u===void 0?!1:u;var n,U,k,m,X;return g.l(function(S){if(S.j==1)return(n=Y.P4.get("asmjs"))&&!u?S.return(n):(U=oW.get("asmjs"))!=null?(k=U,S.qF(2)):g.D(S,new Promise(function(C,f){ult(Y,"asmjs",function(){var Q=oW.get("asmjs");Q?C(Q):f("cannot load module asmjs")},f)}),3); S.j!=2&&(k=S.K);m=k;if(!m)return S.return(Promise.reject("cannot load module asmjs"));X=new m(Y.L);Y.P4.set("asmjs",X);X.create();return S.return(X)})}; mcG=function(Y){Uc7(Y)&&Y.OS();kWu(Y)&&(WH(Y,"captions",!0),WH(Y,"endscreen"),Y.aP(),WH(Y,"creatorendscreen",!0))}; kWu=function(Y){var u=Y.L.getVideoData(),n=Y.W&&!u.isInlinePlaybackNoAd;Y.L.V("html5_defer_modules_on_ads_only")&&!u.isAd()&&(n=!1);return n}; Uc7=function(Y){Y=Y.L.getVideoData();var u;if(u=Y.V("web_player_defer_ad")){if(g.jB(Y.N,"ad")||xNY(Y)||Y.enableServerStitchedDai)Y=!1;else{u=Y.playerResponse;Y=Y.startSeconds;var n=u==null?void 0:u.adPlacements;if(u=n){u=Number.MAX_VALUE;n=g.A(n);for(var U=n.next();!U.done;U=n.next())if(U=U.value.adPlacementRenderer){var k=void 0,m=(k=U.config)==null?void 0:k.adPlacementConfig;k=void 0;if(((k=m)==null?void 0:k.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var X=k=void 0;m=Number((k=m)==null?void 0:(X= k.adTimeOffset)==null?void 0:X.offsetStartMilliseconds)||0;X=k=void 0;U=Number(((k=U.renderer)==null?void 0:(X=k.adBreakServiceRenderer)==null?void 0:X.prefetchMilliseconds)||0);U=m-U;U=11;Y=Y.api.Y().S&&yU;return!(!u&&!Y)}; k_=function(Y,u){return!Y.api.isInline()&&!tjM(Y,A6(u))&&g.d7(u)}; LIt=function(Y){Y.jM.AI();if(Y.rC&&Y.LK)Y.LK=!1;else if(!Y.api.Y().JJ&&!Y.U1()){var u=Y.api.getPlayerStateObject();g.V(u,2)&&g.OA(Y.api)||Y.Pu(u);!Y.api.Y().Iu||u.isCued()||g.V(u,1024)?Y.qx():Y.Gb.isActive()?(Y.bY(),Y.Gb.stop()):Y.Gb.start()}}; o07=function(Y,u){var n;if((n=Y.api.getVideoData())==null?0:n.mutedAutoplay){var U,k;if((U=u.target)==null?0:(k=U.className)==null?0:k.includes("ytp-info-panel"))return!1}return g.d7(u)&&Y.api.isMutedByMutedAutoplay()?(Y.api.unMute(),Y.api.getPresentingPlayerType()===2&&Y.api.playVideo(),u=Y.api.getPlayerStateObject(),!g.V(u,4)||g.V(u,8)||g.V(u,2)||Y.qx(),!0):!1}; c9S=function(Y,u,n){Y.api.isFullscreen()?n<1-u&&Y.api.toggleFullscreen():n>1+u&&Y.api.toggleFullscreen()}; pKG=function(Y){var u=bL()&&wL()>=67&&!Y.api.Y().S;Y=Y.api.Y().disableOrganicUi;return!g.es("tizen")&&!$4&&!u&&!Y}; g.m7=function(Y){g.H.call(this,{D:"div",U:[{D:"div",C:"ytp-bezel-text-wrapper",U:[{D:"div",C:"ytp-bezel-text",RV:"{{title}}"}]},{D:"div",C:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},U:[{D:"div",C:"ytp-bezel-icon",RV:"{{icon}}"}]}]});this.L=Y;this.j=new g.Vp(this.show,10,this);Y=this.L.V("delhi_modern_web_player")?1E3:500;this.K=new g.Vp(this.hide,Y,this);g.b(this,this.j);g.b(this,this.K);this.hide()}; P4=function(Y,u,n){if(u<=0){n=Lw();u="silenciado";var U=0}else n=n?{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},U=Math.floor(u),u=U+"volumen";X7(Y,n,u,U+"%")}; v0u=function(Y,u){u=u?{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:Zbd();var n=Y.L.getPlaybackRate(),U=g.UR("La velocidad es de $RATE",{RATE:String(n)});X7(Y,u,U,n+"x")}; RuY=function(Y,u){u=u?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";X7(Y,H2G(Y.L),u)}; X7=function(Y,u,n,U){U=U===void 0?"":U;Y.updateValue("label",n===void 0?"":n);Y.updateValue("icon",u);g.JF(Y.K);Y.j.start();Y.updateValue("title",U);g.PP(Y.element,"ytp-bezel-text-hide",!U)}; Dcu=function(Y,u){g.H.call(this,{D:"button",Oc:["ytp-button","ytp-cards-button"],T:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.nV(Y.Y()))},U:[{D:"span",C:"ytp-cards-button-icon-default",U:[{D:"div",C:"ytp-cards-button-icon",U:[Y.Y().V("player_new_info_card_format")?MoS():{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {D:"div",C:"ytp-cards-button-title",RV:"Informaci\u00f3n"}]},{D:"span",C:"ytp-cards-button-icon-shopping",U:[{D:"div",C:"ytp-cards-button-icon",U:[{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",C:"ytp-svg-shadow",T:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{D:"path",C:"ytp-svg-fill",T:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{D:"path",C:"ytp-svg-shadow-fill",T:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{D:"div", C:"ytp-cards-button-title",RV:"Shopping"}]}]});this.L=Y;this.j=u;this.K=null;this.fade=new g.Je(this,250,!0,100);g.b(this,this.fade);g.PP(this.j,"ytp-show-cards-title",g.nV(Y.Y()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.po(!0)}; xc0=function(Y,u){g.H.call(this,{D:"div",C:"ytp-cards-teaser",U:[{D:"div",C:"ytp-cards-teaser-box"},{D:"div",C:"ytp-cards-teaser-text",U:Y.Y().V("player_new_info_card_format")?[{D:"button",C:"ytp-cards-teaser-info-icon",T:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},U:[MoS()]},{D:"img",C:"ytp-cards-teaser-channel-avatar",T:{alt:"","aria-hidden":"true"}},{D:"span",C:"ytp-cards-teaser-label",RV:"{{text}}"},{D:"button",C:"ytp-cards-teaser-close-button",T:{"aria-label":"Cerrar"},U:[g.ZG()]}]: [{D:"span",C:"ytp-cards-teaser-label",RV:"{{text}}"}]}]});var n=this;this.L=Y;this.Qj=u;this.fade=new g.Je(this,250,!1,250);this.K=null;this.S=new g.Vp(this.MEc,300,this);this.W=new g.Vp(this.gVk,2E3,this);this.G=[];this.j=null;this.Z=new g.Vp(function(){n.element.style.margin="0"},250); this.onClickCommand=this.X=null;g.b(this,this.fade);g.b(this,this.S);g.b(this,this.W);g.b(this,this.Z);Y.Y().V("player_new_info_card_format")?(g.UN(Y.getRootNode(),"ytp-cards-teaser-dismissible"),this.B(this.Xk("ytp-cards-teaser-close-button"),"click",this.us),this.B(this.Xk("ytp-cards-teaser-info-icon"),"click",this.IL),this.B(this.Xk("ytp-cards-teaser-label"),"click",this.IL)):this.listen("click",this.IL);this.B(u.element,"mouseover",this.FH);this.B(u.element,"mouseout",this.OI);this.B(Y,"cardsteasershow", this.nRG);this.B(Y,"cardsteaserhide",this.H$);this.B(Y,"cardstatechange",this.gP);this.B(Y,"presentingplayerstatechange",this.gP);this.B(Y,"appresize",this.Gy);this.B(Y,"onShowControls",this.Gy);this.B(Y,"onHideControls",this.Km);this.listen("mouseenter",this.DP)}; lVu=function(Y){g.H.call(this,{D:"button",Oc:[Sp.BUTTON,Sp.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{D:"div",C:Sp.TITLE_NOTIFICATIONS_ON,T:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},U:[g.sp()]},{D:"div",C:Sp.TITLE_NOTIFICATIONS_OFF,T:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},U:[{D:"svg",T:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},U:[{D:"path",T:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=Y;this.K=!1;Y.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir notificaciones sobre todos los videos nuevos")}; huu=function(Y,u){Y.K=u;Y.element.classList.toggle(Sp.NOTIFICATIONS_ENABLED,Y.K);var n=Y.api.getVideoData();n?(u=u?n.tO:n.m$)?(Y=Y.api.LF())?vD(Y,u):g.tl(Error("No innertube service available when updating notification preferences.")):g.tl(Error("No update preferences command available.")):g.tl(Error("No video data when updating notification preferences."))}; WIS=function(Y,u,n){var U=U===void 0?800:U;var k=k===void 0?600:k;var m=document.location.protocol;Y=zE0(m+"//"+Y+"/signin?context=popup","feature",u,"next",m+"//"+location.hostname+"/post_login");wKA(Y,n,U,k)}; wKA=function(Y,u,n,U){n=n===void 0?800:n;U=U===void 0?600:U;if(Y=g.rS(window,Y,"loginPopup","width="+n+",height="+U+",resizable=yes,scrollbars=yes"))Ns0(function(){u()}),Y.moveTo((screen.width-n)/2,(screen.height-U)/2)}; g.CW=function(Y,u,n,U,k,m,X,S,C,f,Q,N){Y=Y.charAt(0)+Y.substring(1).toLowerCase();n=n.charAt(0)+n.substring(1).toLowerCase();if(u==="0"||u==="-1")u=null;if(U==="0"||U==="-1")U=null;var Z=Q.Y(),T=Z.userDisplayName&&g.SG(Z);g.H.call(this,{D:"div",Oc:["ytp-button","ytp-sb"],U:[{D:"div",C:"ytp-sb-subscribe",T:T?{title:Q.Y().V("player_tooltip_data_title_killswitch")?g.UR("Suscribirse como $USER_NAME",{USER_NAME:Z.userDisplayName}):"","data-tooltip-title":g.UR("Suscribirse como $USER_NAME",{USER_NAME:Z.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":vo(Z),"data-tooltip-opaque":String(g.nV(Z)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},U:[{D:"div",C:"ytp-sb-text",U:[{D:"div",C:"ytp-sb-icon"},Y]},u?{D:"div",C:"ytp-sb-count",RV:u}:""]},{D:"div",C:"ytp-sb-unsubscribe",T:T?{title:Q.V("player_tooltip_data_title_killswitch")?g.UR("Suscrito como $USER_NAME",{USER_NAME:Z.userDisplayName}):"","data-tooltip-title":g.UR("Suscrito como $USER_NAME",{USER_NAME:Z.userDisplayName}), "aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":vo(Z),"data-tooltip-opaque":String(g.nV(Z)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},U:[{D:"div",C:"ytp-sb-text",U:[{D:"div",C:"ytp-sb-icon"},n]},U?{D:"div",C:"ytp-sb-count",RV:U}:""]}],T:{"aria-live":"polite"}});var r=this;this.channelId=X;this.L=Q;this.X=N;var K=this.Xk("ytp-sb-subscribe"),L=this.Xk("ytp-sb-unsubscribe");m&&g.UN(this.element,"ytp-sb-classic");if(k){S?this.K():this.j(); var R=function(){if(Z.jG){var x=r.channelId;if(C||f){var W={c:x};var E;g.i6.isInitialized()&&(E=zkM(W));W=E||"";if(E=Q.getVideoData())if(E=E.subscribeCommand){var J=Q.LF();J?(vD(J,E,{botguardResponse:W,feature:C}),Q.Yw("SUBSCRIBE",x)):g.tl(Error("No innertube service available when updating subscriptions."))}else g.tl(Error("No subscribe command in videoData."));else g.tl(Error("No video data available when updating subscription."))}L.focus();L.removeAttribute("aria-hidden");K.setAttribute("aria-hidden", "true")}else WIS(g.sg(r.L.Y()),"sb_button",r.G)},c=function(){var x=r.channelId; if(C||f){var W=Q.getVideoData();vD(Q.LF(),W.unsubscribeCommand,{feature:C});Q.Yw("UNSUBSCRIBE",x)}K.focus();K.removeAttribute("aria-hidden");L.setAttribute("aria-hidden","true")}; this.B(K,"click",R);this.B(L,"click",c);this.B(K,"keypress",function(x){x.keyCode===13&&R(x)}); this.B(L,"keypress",function(x){x.keyCode===13&&c(x)}); this.B(Q,"SUBSCRIBE",this.K);this.B(Q,"UNSUBSCRIBE",this.j);this.X&&T&&(BgG(Q),HW(Q,K,this),HW(Q,L,this))}else g.UN(K,"ytp-sb-disabled"),g.UN(L,"ytp-sb-disabled")}; IVu=function(Y){g.H.call(this,{D:"div",C:"ytp-title-channel",U:[{D:"div",C:"ytp-title-beacon"},{D:"a",C:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:Y.Y().N,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{D:"div",C:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{D:"div",C:"ytp-title-expanded-heading",U:[{D:"div",C:"ytp-title-expanded-title",U:[{D:"a",RV:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:Y.Y().N,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{D:"div",C:"ytp-title-expanded-subtitle",RV:"{{expandedSubtitle}}",T:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var u=this;this.api=Y;this.channel=this.Xk("ytp-title-channel");this.j=this.Xk("ytp-title-channel-logo");this.channelName=this.Xk("ytp-title-expanded-title");this.W=this.Xk("ytp-title-expanded-overlay");this.X=this.K=this.subscribeButton=null;this.G=!1;Y.createClientVe(this.j,this,36925);Y.createClientVe(this.channelName,this, 37220);g.nV(this.api.Y())&&eue(this);this.B(Y,"videodatachange",this.QF);this.B(Y,"videoplayerreset",this.QF);this.B(this.channelName,"click",function(n){u.api.logClick(u.channelName);g.rS(window,baW(u));n.preventDefault()}); this.B(this.j,"click",this.pzk);this.QF()}; zuB=function(Y){if(!Y.api.Y().lN){var u=Y.api.getVideoData(),n=new g.CW("Suscribirse",null,"Suscrito/a",null,!0,!1,u.QN,u.subscribed,"channel_avatar",null,Y.api,!0);Y.api.createServerVe(n.element,Y);var U;Y.api.setTrackingParams(n.element,((U=u.subscribeButtonRenderer)==null?void 0:U.trackingParams)||null);Y.B(n.element,"click",function(){Y.api.logClick(n.element)}); Y.subscribeButton=n;g.b(Y,Y.subscribeButton);Y.subscribeButton.yF(Y.W);Y.subscribeButton.hide();var k=new lVu(Y.api);Y.K=k;g.b(Y,k);k.yF(Y.W);k.hide();Y.B(Y.api,"SUBSCRIBE",function(){u.vv&&(k.show(),Y.api.logVisibility(k.element,!0))}); Y.B(Y.api,"UNSUBSCRIBE",function(){u.vv&&(k.hide(),Y.api.logVisibility(k.element,!1),huu(k,!1))})}}; eue=function(Y){var u=Y.api.Y();zuB(Y);Y.updateValue("flyoutUnfocusable","true");Y.updateValue("channelTitleFocusable","-1");Y.updateValue("shouldHideExpandedTitleForA11y","true");Y.updateValue("shouldHideExpandedSubtitleForA11y","true");u.j||u.CG||(Y.B(Y.channel,"mouseenter",Y.sS),Y.B(Y.channel,"mouseleave",Y.je),Y.B(Y.channel,"focusin",Y.sS),Y.B(Y.channel,"focusout",function(n){Y.channel.contains(n.relatedTarget)||Y.je()})); Y.X=new g.Vp(function(){Y.isExpanded()&&(Y.api.logVisibility(Y.channelName,!1),Y.subscribeButton&&(Y.subscribeButton.hide(),Y.api.logVisibility(Y.subscribeButton.element,!1)),Y.K&&(Y.K.hide(),Y.api.logVisibility(Y.K.element,!1)),Y.channel.classList.remove("ytp-title-expanded"),Y.channel.classList.add("ytp-title-show-collapsed"))},500); g.b(Y,Y.X);Y.B(Y.channel,g0d,function(){E0d(Y)}); Y.B(Y.api,"onHideControls",Y.U2);Y.B(Y.api,"appresize",Y.U2);Y.B(Y.api,"fullscreentoggled",Y.U2)}; E0d=function(Y){Y.channel.classList.remove("ytp-title-show-collapsed");Y.channel.classList.remove("ytp-title-show-expanded")}; HaB=function(Y){var u=Y.api.getPlayerSize();return g.nV(Y.api.Y())&&u.width>=524}; baW=function(Y){var u=Y.api.Y(),n=Y.api.getVideoData(),U=g.RT(u)+n.Iu;g.KQ(n)&&(U="https://music.youtube.com"+n.Iu);if(!g.nV(u))return U;u={};g.Rf(Y.api,"addEmbedsConversionTrackingParams",[u]);return g.Mk(U,u)}; fW=function(Y){var u=g.Za({"aria-haspopup":"true"});g.ic.call(this,u,Y);this.listen("keydown",this.K)}; QX=function(Y,u){Y.element.setAttribute("aria-haspopup",String(u))}; y9Y=function(Y,u){g.H.call(this,{D:"div",C:"ytp-user-info-panel",T:{"aria-label":"Informaci\u00f3n del usuario"},U:Y.Y().jG&&!Y.V("embeds_web_always_enable_signed_out_state")?[{D:"div",C:"ytp-user-info-panel-icon",RV:"{{icon}}"},{D:"div",C:"ytp-user-info-panel-content",U:[{D:"div",C:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},RV:"{{watchingAsUsername}}"},{D:"div",C:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},RV:"{{watchingAsEmail}}"}]}]: [{D:"div",C:"ytp-user-info-panel-icon",RV:"{{icon}}"},{D:"div",C:"ytp-user-info-panel-content",U:[{D:"div",U:[{D:"text",T:{tabIndex:"{{userInfoFocusable}}"},RV:"Saliste de la cuenta"}]},{D:"div",C:"ytp-user-info-panel-login",U:[{D:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},RV:Y.Y().lN?"":"Acceder a YouTube"}]}]}]});this.Bz=Y;this.K=u;Y.Y().jG||Y.Y().lN||this.B(this.Xk("ytp-user-info-panel-login"),"click",this.LO);this.closeButton=new g.H({D:"button",Oc:["ytp-collapse","ytp-button"],T:{title:"Cerrar"}, U:[g.pw()]});this.closeButton.yF(this.element);g.b(this,this.closeButton);this.B(window,"blur",this.hide);this.B(document,"click",this.yH);this.QF()}; FIu=function(Y,u,n){g.Rn.call(this,Y);this.jE=u;this.W4=n;this.getVideoUrl=new fW(6);this.Le=new fW(5);this.Xh=new fW(4);this.Tw=new fW(3);this.Hu=new g.ic(g.Za({href:"{{href}}",target:this.L.Y().N},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.ic(g.Za(),1,"Estad\u00edsticas");this.NL=new g.XV({D:"div",Oc:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},RV:"{{text}}"});this.RY=new vR(this.L,this.NL);this.H6=this.OF=null;g.nV(this.L.Y())&& (this.closeButton=new g.H({D:"button",Oc:["ytp-collapse","ytp-button"],T:{title:"Cerrar"},U:[g.pw()]}),g.b(this,this.closeButton),this.closeButton.yF(this.element),this.closeButton.listen("click",this.oJ,this));g.nV(this.L.Y())&&(this.ll=new g.ic(g.Za(),8,"Cuenta"),g.b(this,this.ll),this.rD(this.ll,!0),this.ll.listen("click",this.URz,this),Y.createClientVe(this.ll.element,this.ll,137682));this.L.Y().dO&&(this.OC=new L0("En bucle",7),g.b(this,this.OC),this.rD(this.OC,!0),this.OC.listen("click",this.L9a, this),Y.createClientVe(this.OC.element,this.OC,28661));g.b(this,this.getVideoUrl);this.rD(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.X$w,this);Y.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.b(this,this.Le);this.rD(this.Le,!0);this.Le.listen("click",this.GwG,this);Y.createClientVe(this.Le.element,this.Le,28660);g.b(this,this.Xh);this.rD(this.Xh,!0);this.Xh.listen("click",this.juq,this);Y.createClientVe(this.Xh.element,this.Xh,28658);g.b(this,this.Tw);this.rD(this.Tw, !0);this.Tw.listen("click",this.bTc,this);g.b(this,this.Hu);this.rD(this.Hu,!0);this.Hu.listen("click",this.i0Z,this);g.b(this,this.showVideoInfo);this.rD(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.NDq,this);g.b(this,this.NL);this.NL.listen("click",this.Paa,this);g.b(this,this.RY);u=document.queryCommandSupported&&document.queryCommandSupported("copy");OYA("Chromium")>=43&&(u=!0);OYA("Firefox")<=40&&(u=!1);u&&(this.OF=new g.H({D:"textarea",C:"ytp-html5-clipboard",T:{readonly:"", tabindex:"-1"}}),g.b(this,this.OF),this.OF.yF(this.element));var U;(U=this.ll)==null||U.setIcon(jUM());var k;(k=this.OC)==null||k.setIcon(oUA());this.Tw.setIcon({D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.Hu.setIcon(TTG());this.showVideoInfo.setIcon(r6u());this.B(Y,"onLoopChange",this.onLoopChange);this.B(Y,"videodatachange",this.onVideoDataChange);VjY(this);OaY(this,this.L.getVideoData())}; NL=function(Y,u){var n=!1;if(Y.OF){var U=Y.OF.element;U.value=u;U.select();try{n=document.execCommand("copy")}catch(k){}}n?Y.jE.H$():(Y.NL.dD(u,"text"),g.lg(Y.jE,Y.RY),RP(Y.NL.element),Y.OF&&(Y.OF=null,VjY(Y)));return n}; OaY=function(Y,u){var n=Y.L.Y(),U=Y.L.getPresentingPlayerType()===2,k=!U||u.isListed;k=!n.oV&&!!u.videoId&&k;n.playerStyle!=="play"?n="https://support.google.com/youtube/?p=report_playback":(n={contact_type:"playbackissue",html5:1,ei:u.eventId,v:u.videoId,p:"movies_playback"},u.j&&(n.fmt=u.j.itag),u.clientPlaybackNonce&&(n.cpn=u.clientPlaybackNonce),u.partnerId&&(n.partnerid=u.partnerId),n=g.Mk("//support.google.com/googleplay/",n));Y.Xh.v$(k&&u.allowEmbed);Y.getVideoUrl.v$(k);Y.Le.v$(k&&!u.isLivePlayback); Y.Hu.dD(n,"href");var m;(m=Y.OC)==null||m.v$(!u.isLivePlayback&&!U);var X;(X=Y.ll)==null||X.v$(!U)}; VjY=function(Y){var u=!!Y.OF;g.NA(Y.Tw,u?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");QX(Y.Tw,!u);g.NA(Y.Xh,u?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");QX(Y.Xh,!u);g.NA(Y.getVideoUrl,u?"Copiar URL del video":"Obtener la URL del video");QX(Y.getVideoUrl,!u);g.NA(Y.Le,u?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");QX(Y.Le,!u);Y.Xh.setIcon(u?NTY():null);Y.getVideoUrl.setIcon(u? r5():null);Y.Le.setIcon(u?r5():null)}; J90=function(Y){return g.nV(Y.L.Y())?Y.ll:Y.OC}; aVS=function(Y,u){g.xz.call(this,Y);this.W4=u;this.G=new g.j3(this);this.KG=new g.Vp(this.qxk,1E3,this);this.oV=this.X=null;g.b(this,this.G);g.b(this,this.KG);u=this.L.Y();Y.createClientVe(this.element,this,28656);g.UN(this.element,"ytp-contextmenu");this.L.Y().experiments.vz("delhi_modern_web_player")&&g.KV(u)&&g.UN(this.element,"ytp-delhi-modern-contextmenu");qn7(this);this.hide()}; qn7=function(Y){g.Lb(Y.G);var u=Y.L.Y();u.playerStyle==="gvn"||u.j||u.CG||(u=Y.L.tJ(),Y.G.B(u,"contextmenu",Y.YcW),Y.G.B(u,"touchstart",Y.onTouchStart,null,!0),Y.G.B(u,"touchmove",Y.wJ,null,!0),Y.G.B(u,"touchend",Y.wJ,null,!0))}; $cB=function(Y){Y.L.isFullscreen()?g.uc(Y.L,Y.element,10):Y.yF(C0(Y).body)}; ix=function(Y,u,n){n=n===void 0?240:n;g.H.call(this,{D:"button",Oc:["ytp-button","ytp-copylink-button"],T:{title:Y.V("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.nV(Y.Y()))},U:[{D:"div",C:"ytp-copylink-icon",RV:"{{icon}}"},{D:"div",C:"ytp-copylink-title",RV:"Copiar v\u00ednculo",T:{"aria-hidden":"true"}}]});this.api=Y;this.K=u;this.j=n;this.visible=!1;this.tooltip=this.K.kR();u=Y.Y();this.tooltip.element.setAttribute("aria-live", "polite");g.PP(this.element,"ytp-show-copylink-title",g.nV(u));Y.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.B(Y,"videodatachange",this.QF);this.B(Y,"videoplayerreset",this.QF);this.B(Y,"appresize",this.QF);this.QF();this.addOnDisposeCallback(g.EA(this.tooltip,this.element))}; YkW=function(Y){var u=Y.api.Y(),n=Y.api.getVideoData(),U=Y.api.tJ().getPlayerSize().width;u=u.X;return!!n.videoId&&U>=Y.j&&n.OA&&!n.sD&&!Y.api.isEmbedsShortsMode()&&!u}; uwS=function(Y){Y.updateValue("icon",Qd());if(Y.api.Y().j)Y.tooltip.mf(Y.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{Y.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");Y.updateValue("tooltip-title","Se copi\u00f3 el v\u00ednculo en el portapapeles");Y.tooltip.aZ();Y.tooltip.mf(Y.element);var u=Y.listen("mouseleave",function(){Y.qR(u);Y.QF();Y.tooltip.tU()})}}; nJ7=function(Y,u){return g.l(function(n){if(n.j==1)return g.pY(n,2),g.D(n,navigator.clipboard.writeText(u),4);if(n.j!=2)return n.return(!0);g.vc(n);var U=n.return,k=!1,m=g.rh("TEXTAREA");m.value=u;m.setAttribute("readonly","");var X=Y.api.getRootNode();X.appendChild(m);if(zC){var S=window.getSelection();S.removeAllRanges();var C=document.createRange();C.selectNodeContents(m);S.addRange(C);m.setSelectionRange(0,u.length)}else m.select();try{k=document.execCommand("copy")}catch(f){}X.removeChild(m); return U.call(n,k)})}; Uru=function(Y){g.H.call(this,{D:"div",C:"ytp-doubletap-ui-legacy",U:[{D:"div",C:"ytp-doubletap-fast-forward-ve"},{D:"div",C:"ytp-doubletap-rewind-ve"},{D:"div",C:"ytp-doubletap-static-circle",U:[{D:"div",C:"ytp-doubletap-ripple"}]},{D:"div",C:"ytp-doubletap-overlay-a11y"},{D:"div",C:"ytp-doubletap-seek-info-container",U:[{D:"div",C:"ytp-doubletap-arrows-container",U:[{D:"span",C:"ytp-doubletap-base-arrow"},{D:"span",C:"ytp-doubletap-base-arrow"},{D:"span",C:"ytp-doubletap-base-arrow"}]},{D:"div", C:"ytp-doubletap-tooltip",U:[{D:"div",C:"ytp-seek-icon-text-container",U:[{D:"div",C:"ytp-seek-icon",RV:"{{seekIcon}}"},{D:"div",C:"ytp-chapter-seek-text-legacy",RV:"{{seekText}}"}]},{D:"div",C:"ytp-doubletap-tooltip-label",RV:"{{seekTime}}"}]}]}]});this.L=Y;this.G=new g.Vp(this.show,10,this);this.j=new g.Vp(this.hide,700,this);this.S=this.X=0;this.KG=this.W=!1;this.K=this.Xk("ytp-doubletap-static-circle");g.b(this,this.G);g.b(this,this.j);this.hide();this.Z=this.Xk("ytp-doubletap-fast-forward-ve"); this.N=this.Xk("ytp-doubletap-rewind-ve");this.L.createClientVe(this.Z,this,28240);this.L.createClientVe(this.N,this,28239);this.L.logVisibility(this.Z,!0);this.L.logVisibility(this.N,!0);this.W=Y.V("web_show_cumulative_seek_time");this.KG=Y.V("web_center_static_circles")}; kU7=function(Y,u){u=g.UR("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:u.toString()});Y.updateValue("seekTime",u)}; mrA=function(Y){cR.call(this,Y,!1,!0);this.DW=[];this.CT=[];this.element.setAttribute("data-overlay-order","9");this.Z=!0;this.badge.element.classList.add("ytp-featured-product");this.rg=new g.H({D:"div",C:"ytp-featured-product-open-in-new"});g.b(this,this.rg);this.countdownTimer=new g.H({D:"text",C:"ytp-featured-product-countdown",RV:"{{content}}"});this.countdownTimer.hide();g.b(this,this.countdownTimer);this.j=new g.H({D:"div",C:"ytp-featured-product-trending",U:[{D:"div",C:"ytp-featured-product-trending-icon"}, {D:"text",C:"ytp-featured-product-trending-text",RV:"{{trendingOffer}}"}]});this.j.hide();g.b(this,this.j);this.overflowButton=new g.H({D:"button",Oc:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.b(this,this.overflowButton);this.S=new g.H({D:"text",C:"ytp-featured-product-exclusive-countdown",RV:"{{content}}",T:{id:"exclusiveCountdown","aria-hidden":"true"}});this.S.hide();g.b(this,this.S);this.W=new g.H({D:"div",C:"ytp-featured-product-exclusive-container", T:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},U:[{D:"div",C:"ytp-featured-product-exclusive-badge-container",U:[{D:"div",C:"ytp-featured-product-exclusive-badge",U:[{D:"text",C:"ytp-featured-product-exclusive-badge-text",RV:"{{exclusive}}",T:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.S]});this.W.hide();g.b(this,this.W);this.banner=new g.H({D:"a",C:"ytp-featured-product-container",U:[{D:"div",C:"ytp-featured-product-thumbnail",U:[{D:"img",T:{src:"{{thumbnail}}"}},this.rg]},{D:"div", C:"ytp-featured-product-details",U:[{D:"text",C:"ytp-featured-product-title",RV:"{{title}}"},this.L.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",C:"ytp-featured-product-price-container",T:{"aria-label":"{{priceA11yText}}"},U:[{D:"text",C:"ytp-featured-product-price-when-promotion-text-enabled",RV:"{{price}}",T:{"aria-hidden":"true"}},{D:"text",C:"ytp-featured-product-promotion-text",RV:"{{promotionText}}",T:{"aria-hidden":"true"}}]}:{D:"div",T:{"aria-label":"{{priceA11yText}}"}, U:[{D:"text",C:"ytp-featured-product-price",RV:"{{price}}",T:{"aria-hidden":"true"}},{D:"text",C:"ytp-featured-product-sales-original-price",RV:"{{salesOriginalPrice}}",T:{"aria-hidden":"true"}},{D:"text",C:"ytp-featured-product-price-drop-reference-price",RV:"{{priceDropReferencePrice}}",T:{"aria-hidden":"true"}}]},this.L.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",C:"ytp-featured-product-when-promotion-text-enabled",U:[{D:"text",C:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", RV:"{{affiliateDisclaimer}}"},this.j,{D:"text",C:"ytp-featured-product-vendor-when-promotion-text-enabled",RV:"{{vendor}}"}]}:{D:"div",U:[{D:"text",C:"ytp-featured-product-affiliate-disclaimer",RV:"{{affiliateDisclaimer}}"},this.L.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.W:null,this.j,{D:"text",C:"ytp-featured-product-vendor",RV:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.b(this,this.banner);this.banner.yF(this.X.element);this.B(this.L,g.yk("featured_product"), this.pMa);this.B(this.L,g.Vk("featured_product"),this.Lo);this.B(this.L,"videodatachange",this.onVideoDataChange);this.B(this.overflowButton.element,"click",this.FM);this.B(Y,"featuredproductdismissed",this.vK)}; XXd=function(Y){var u,n;Y=(u=Y.K)==null?void 0:(n=u.bannerData)==null?void 0:n.itemData;var U,k,m;return(Y==null||!Y.affiliateDisclaimer)&&(Y==null?0:(U=Y.exclusivesData)==null?0:U.exclusiveOfferLabelText)&&(Y==null?0:(k=Y.exclusivesData)==null?0:k.expirationTimestampMs)&&(Y==null?0:(m=Y.exclusivesData)==null?0:m.exclusiveOfferCountdownText)?!0:!1}; SkY=function(Y){var u,n,U,k,m=(u=Y.K)==null?void 0:(n=u.bannerData)==null?void 0:(U=n.itemData)==null?void 0:(k=U.exclusivesData)==null?void 0:k.expirationTimestampMs;u=(Number(m)-Date.now())/1E3;if(u>0){if(u<604800){var X,S,C,f;n=(X=Y.K)==null?void 0:(S=X.bannerData)==null?void 0:(C=S.itemData)==null?void 0:(f=C.exclusivesData)==null?void 0:f.exclusiveOfferCountdownText;if(n!==void 0)for(X=Date.now(),S=g.A(n),C=S.next();!C.done;C=S.next())if(C=C.value,C!==void 0&&C.text!==void 0&&(f=Number(C.textDisplayStartTimestampMs), !isNaN(f)&&X>=f)){C.insertCountdown?(u=C.text.replace(/\$0/,String($i({seconds:u}))),Y.S.dD(u)):Y.S.dD(C.text);Y.S.show();break}}var Q,N,Z,T;Y.W.update({exclusive:(Q=Y.K)==null?void 0:(N=Q.bannerData)==null?void 0:(Z=N.itemData)==null?void 0:(T=Z.exclusivesData)==null?void 0:T.exclusiveOfferLabelText});Y.W.show();Zg(Y);var r;(r=Y.Qm)==null||r.start()}else P1B(Y)}; P1B=function(Y){var u;(u=Y.Qm)==null||u.stop();Y.S.hide();Y.W.hide();TI(Y)}; C1c=function(Y){var u,n,U=(u=Y.K)==null?void 0:(n=u.bannerData)==null?void 0:n.itemData;return Y.L.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(U==null||!U.priceReplacementText)&&(U==null?0:U.promotionText)?U==null?void 0:U.promotionText.content:null}; fKm=function(Y){var u,n,U=(u=Y.K)==null?void 0:(n=u.bannerData)==null?void 0:n.itemData,k,m;if(!(U!=null&&U.priceReplacementText||Y.L.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(U==null?0:(k=U.dealsData)==null?0:(m=k.sales)==null?0:m.originalPrice)){var X,S;return U==null?void 0:(X=U.dealsData)==null?void 0:(S=X.sales)==null?void 0:S.originalPrice}return null}; QMM=function(Y){var u,n,U=(u=Y.K)==null?void 0:(n=u.bannerData)==null?void 0:n.itemData,k,m,X,S;if(!((U==null?0:U.priceReplacementText)||Y.L.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(U==null?0:(k=U.dealsData)==null?0:(m=k.sales)==null?0:m.originalPrice))&&(U==null?0:(X=U.dealsData)==null?0:(S=X.priceDrop)==null?0:S.referencePrice)){var C,f;return U==null?void 0:(C=U.dealsData)==null?void 0:(f=C.priceDrop)==null?void 0:f.referencePrice}return null}; NxB=function(Y){var u,n,U=(u=Y.K)==null?void 0:(n=u.bannerData)==null?void 0:n.itemData;if(U==null?0:U.priceReplacementText)return U==null?void 0:U.priceReplacementText;if((U==null?0:U.promotionText)&&Y.L.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var k;return(U==null?void 0:U.price)+" "+(U==null?void 0:(k=U.promotionText)==null?void 0:k.content)}var m,X;if(U==null?0:(m=U.dealsData)==null?0:(X=m.sales)==null?0:X.originalPrice){var S,C;return U==null?void 0:(S=U.dealsData)== null?void 0:(C=S.sales)==null?void 0:C.salesPriceAccessibilityLabel}var f,Q;if(U==null?0:(f=U.dealsData)==null?0:(Q=f.priceDrop)==null?0:Q.referencePrice){var N,Z;return(U==null?void 0:U.price)+" "+(U==null?void 0:(N=U.dealsData)==null?void 0:(Z=N.priceDrop)==null?void 0:Z.referencePrice)}return U==null?void 0:U.price}; i7t=function(Y){if(Y.L.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var u,n,U;return Y.j.KT?null:(u=Y.K)==null?void 0:(n=u.bannerData)==null?void 0:(U=n.itemData)==null?void 0:U.vendorName}var k,m,X,S,C,f;return Y.j.KT||Y.W.KT||((k=Y.K)==null?0:(m=k.bannerData)==null?0:(X=m.itemData)==null?0:X.affiliateDisclaimer)?null:(S=Y.K)==null?void 0:(C=S.bannerData)==null?void 0:(f=C.itemData)==null?void 0:f.vendorName}; TxY=function(Y,u){ri(Y);if(u){var n=g.B2.getState().entities;n=JC(n,"featuredProductsEntity",u);if(n!=null&&n.productsData){u=[];n=g.A(n.productsData);for(var U=n.next();!U.done;U=n.next()){U=U.value;var k=void 0;if((k=U)!=null&&k.identifier&&U.featuredSegments){Y.DW.push(U);var m=void 0;k=g.A((m=U)==null?void 0:m.featuredSegments);for(m=k.next();!m.done;m=k.next()){var X=m.value;m=Z7M(X.startTimeSec);m!==void 0&&(X=Z7M(X.endTimeSec),u.push(new g.EE(m*1E3,X===void 0?0x7ffffffffffff:X*1E3,{id:U.identifier, namespace:"featured_product"})))}}}Y.L.l6(u)}}}; TI=function(Y){if(Y.trendingOfferEntityKey){var u=g.B2.getState().entities;if(u=JC(u,"trendingOfferEntity",Y.trendingOfferEntityKey)){var n,U,k;u.encodedSkuId!==((n=Y.K)==null?void 0:(U=n.bannerData)==null?void 0:(k=U.itemData)==null?void 0:k.encodedOfferSkuId)?Zg(Y):(Y.j.update({trendingOffer:u.shortLabel+" \u2022 "+u.countLabel}),Y.j.show(),Y.banner.update({vendor:i7t(Y)}))}else Zg(Y)}else Zg(Y)}; Zg=function(Y){Y.j.hide();Y.banner.update({vendor:i7t(Y)})}; ri=function(Y){Y.DW=[];Y.Lo();Y.L.JS("featured_product")}; rvd=function(Y){var u,n,U,k,m=(u=Y.K)==null?void 0:(n=u.bannerData)==null?void 0:(U=n.itemData)==null?void 0:(k=U.hiddenProductOptions)==null?void 0:k.dropTimestampMs;u=(Number(m)-Date.now())/1E3;Y.countdownTimer.dD($i({seconds:u}));if(u>0){var X;(X=Y.Gw)==null||X.start()}}; Mmt=function(Y){var u;(u=Y.Gw)==null||u.stop();Y.countdownTimer.hide()}; Z7M=function(Y){if(Y!==void 0&&Y.trim()!==""&&(Y=Math.trunc(Number(Y.trim())),!(isNaN(Y)||Y<0)))return Y}; jMd=function(Y,u,n){g.H.call(this,{D:"div",Oc:["ytp-info-panel-action-item"],U:[{D:"div",C:"ytp-info-panel-action-item-disclaimer",RV:"{{disclaimer}}"},{D:"a",Oc:["ytp-info-panel-action-item-button","ytp-button"],T:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},U:[{D:"div",C:"ytp-info-panel-action-item-icon",RV:"{{icon}}"},{D:"div",C:"ytp-info-panel-action-item-label",RV:"{{label}}"}]}]});this.L=Y;this.K=n;this.disclaimer=this.Xk("ytp-info-panel-action-item-disclaimer");this.button= this.Xk("ytp-info-panel-action-item-button");this.QY=!1;this.L.createServerVe(this.element,this,!0);this.listen("click",this.onClick);Y="";n=g.z(u==null?void 0:u.onTap,cr);var U=g.z(n,g.Rc);this.QY=!1;U?(Y=U.url||"",Y.startsWith("//")&&(Y="https:"+Y),this.QY=!0,g.QO(this.button,g.SO(Y))):(U=g.z(n,sMe))&&!this.K?((Y=U.phoneNumbers)&&Y.length>0?(Y="sms:"+Y[0],U.messageText&&(Y+="?&body="+encodeURI(U.messageText))):Y="",this.QY=!0,g.QO(this.button,g.SO(Y,[drS]))):(n=g.z(n,GUu))&&!this.K&&(Y=n.phoneNumber? "tel:"+n.phoneNumber:"",this.QY=!0,g.QO(this.button,g.SO(Y,[AvA])));var k;if(n=(k=u.disclaimerText)==null?void 0:k.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var m;this.update({label:(m=u.bodyText)==null?void 0:m.content,icon:d5(),disclaimer:n})}else{this.disclaimer.style.display="none";var X;this.update({label:(X=u.bodyText)==null?void 0:X.content,icon:d5()})}this.L.setTrackingParams(this.element,u.trackingParams||null);this.QY&&(this.j={externalLinkData:{url:Y}})}; K8u=function(Y,u){var n=nw();g.SL.call(this,Y,{D:"div",C:"ytp-info-panel-detail-skrim",U:[{D:"div",C:"ytp-info-panel-detail",T:{role:"dialog",id:n},U:[{D:"div",C:"ytp-info-panel-detail-header",U:[{D:"div",C:"ytp-info-panel-detail-title",RV:"{{title}}"},{D:"button",Oc:["ytp-info-panel-detail-close","ytp-button"],T:{"aria-label":"Cerrar"},U:[g.ZG()]}]},{D:"div",C:"ytp-info-panel-detail-body",RV:"{{body}}"},{D:"div",C:"ytp-info-panel-detail-items"}]}]},250);this.K=u;this.items=this.Xk("ytp-info-panel-detail-items"); this.X=new g.j3(this);this.itemData=[];this.G=n;this.B(this.Xk("ytp-info-panel-detail-close"),"click",this.H$);this.B(this.Xk("ytp-info-panel-detail-skrim"),"click",this.H$);this.B(this.Xk("ytp-info-panel-detail"),"click",function(U){U.stopPropagation()}); g.b(this,this.X);this.L.createServerVe(this.element,this,!0);this.B(Y,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",Y.getVideoData());this.hide()}; pXG=function(Y,u){Y=g.A(Y.itemData);for(var n=Y.next();!n.done;n=Y.next())n=n.value,n.L.logVisibility(n.element,u)}; BxM=function(Y,u){g.H.call(this,{D:"div",C:"ytp-info-panel-preview",T:{"aria-live":"assertive","aria-atomic":"true","aria-owns":u.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.nV(Y.Y()))},U:[{D:"div",C:"ytp-info-panel-preview-text",RV:"{{text}}"},{D:"div",C:"ytp-info-panel-preview-chevron",RV:"{{chevron}}"}]});var n=this;this.L=Y;this.Zk=this.K=this.videoId=null;this.X=this.showControls=this.j=!1;this.B(this.element,"click",function(){Y.logClick(n.element);Y.U1();f0(u)}); this.fade=new g.Je(this,250,!1,100);g.b(this,this.fade);this.L.createServerVe(this.element,this,!0);this.B(Y,"videodatachange",this.onVideoDataChange);this.B(Y,"presentingplayerstatechange",this.An);this.B(this.L,"paidcontentoverlayvisibilitychange",this.uP);this.B(this.L,"infopaneldetailvisibilitychange",this.uP);var U=Y.getVideoData()||{};L8e(U)&&tmS(this,U);this.B(Y,"onShowControls",this.WI);this.B(Y,"onHideControls",this.HI)}; tmS=function(Y,u){if(!u.mW||!Y.L.r3()){var n=u.QP||1E4,U=L8e(u);Y.K?u.videoId&&u.videoId!==Y.videoId&&(g.JF(Y.K),Y.videoId=u.videoId,U?(oJM(Y,n,u),Y.Su()):(Y.H$(),Y.K.dispose(),Y.K=null)):U&&(u.videoId&&(Y.videoId=u.videoId),oJM(Y,n,u),Y.Su())}}; L8e=function(Y){var u,n,U,k;return!!((u=Y.tS)==null?0:(n=u.title)==null?0:n.content)||!!((U=Y.tS)==null?0:(k=U.bodyText)==null?0:k.content)}; oJM=function(Y,u,n){Y.K&&Y.K.dispose();Y.K=new g.Vp(Y.mAq,u,Y);g.b(Y,Y.K);var U;u=((U=n.tS)==null?void 0:U.trackingParams)||null;Y.L.setTrackingParams(Y.element,u);var k;var m,X;if(n==null?0:(m=n.tS)==null?0:(X=m.title)==null?0:X.content){var S;U=(k=n.tS)==null?void 0:(S=k.title)==null?void 0:S.content;var C,f;if((C=n.tS)==null?0:(f=C.bodyText)==null?0:f.content)U+=" \u2022 ";k=U}else k="";var Q,N;n=((Q=n.tS)==null?void 0:(N=Q.bodyText)==null?void 0:N.content)||"";Y.update({text:k+n,chevron:g.id()})}; cvd=function(Y,u){Y.K&&(g.V(u,8)?(Y.j=!0,Y.Su(),Y.K.start()):(g.V(u,2)||g.V(u,64))&&Y.videoId&&(Y.videoId=null))}; ML=function(Y){var u=null;try{u=Y.toLocaleString("es-419",{style:"percent"})}catch(n){u=Y.toLocaleString(void 0,{style:"percent"})}return u}; sr=function(Y,u){var n=0;Y=g.A(Y);for(var U=Y.next();!(U.done||U.value.startTime>u);U=Y.next())n++;return n===0?n:n-1}; vJt=function(Y,u){for(var n=0,U=g.A(Y),k=U.next();!k.done;k=U.next()){k=k.value;if(u=k.timeRangeStartMillis&&u2147483647?"0":String(Y)}; GI=function(Y,u,n){var U=Y.api.getCurrentTime(),k=wXS(Y,U);Y=wXS(Y,U+u);return{startMediaTimeMs:k,endMediaTimeMs:Y,seekSource:n}}; W8G=function(Y){var u,n=(u=Y.api.getVideoData())==null?void 0:u.u6();return Y.api.getPresentingPlayerType(n)!==2}; di=function(Y,u){Y.X.QS=u;g.PP(Y.api.getRootNode(),"ytp-probably-keyboard-focus",u);g.PP(Y.contextMenu.element,"ytp-probably-keyboard-focus",u)}; jp=function(Y,u,n,U){var k=g.wO(Y.api.ym());if(k&&k.loaded){var m=Y.api.getSubtitlesUserSettings();k=void 0;for(var X=0;X0?u[0]:null;var n=g.fi("ytp-chrome-bottom"),U=g.fi("ytp-ad-module");Y.G=!(n==null||!n.contains(u));Y.Z=!(U==null||!U.contains(u));Y.N=!(u==null||!u.hasAttribute("data-tooltip-target-fixed"));return u}; O7u=function(Y,u,n){if(!Y.W){if(u){Y.tooltipRenderer=u;u=Y.tooltipRenderer.text;var U=!1,k;(u==null?0:(k=u.runs)==null?0:k.length)&&u.runs[0].text&&(Y.update({title:u.runs[0].text.toString()}),U=!0);g.kS(Y.title,U);u=Y.tooltipRenderer.detailsText;k=!1;var m;if((u==null?0:(m=u.runs)==null?0:m.length)&&u.runs[0].text){U=u.runs[0].text.toString();m=U.indexOf("$TARGET_ICON");if(m>-1)if(Y.tooltipRenderer.targetId){u=[];U=U.split("$TARGET_ICON");var X=new g.Up({D:"span",C:"ytp-promotooltip-details-icon", U:[yvW[Y.tooltipRenderer.targetId]]});g.b(Y,X);for(var S=[],C=g.A(U),f=C.next();!f.done;f=C.next())f=new g.Up({D:"span",C:"ytp-promotooltip-details-component",RV:f.value}),g.b(Y,f),S.push(f);U.length===2?(u.push(S[0].element),u.push(X.element),u.push(S[1].element)):U.length===1&&(m===0?(u.push(X.element),u.push(S[0].element)):(u.push(S[0].element),u.push(X.element)));m=u.length?u:null}else m=null;else m=U;if(m){if(typeof m!=="string")for(g.dh(Y.details),k=g.A(m),m=k.next();!m.done;m=k.next())Y.details.appendChild(m.value); else Y.update({details:m});k=!0}}g.kS(Y.details,k);k=Y.tooltipRenderer.acceptButton;m=!1;var Q,N,Z;((Q=g.z(k,g.ie))==null?0:(N=Q.text)==null?0:(Z=N.runs)==null?0:Z.length)&&g.z(k,g.ie).text.runs[0].text&&(Y.update({acceptButtonText:g.z(k,g.ie).text.runs[0].text.toString()}),m=!0);g.kS(Y.acceptButton,m);Q=Y.tooltipRenderer.dismissButton;N=!1;var T,r,K;((T=g.z(Q,g.ie))==null?0:(r=T.text)==null?0:(K=r.runs)==null?0:K.length)&&g.z(Q,g.ie).text.runs[0].text&&(Y.update({dismissButtonText:g.z(Q,g.ie).text.runs[0].text.toString()}), N=!0);g.kS(Y.dismissButton,N)}n&&(Y.X=n);Y.K=H7A(Y);Y.S=!1;Y.L.Y().V("web_player_hide_nitrate_promo_tooltip")||Y.v$(!0);VmY(Y);Y.KT&&!Y.KG&&(Y.KG=!0,Y.IH.Zu(0));Y.j&&Y.L.logVisibility(Y.element,Y.KT)}}; LW=function(Y){Y.v$(!1);Y.j&&Y.L.logVisibility(Y.element,Y.KT)}; F8M=function(Y){var u,n,U,k=((u=g.z(Y.acceptButton,g.ie))==null?void 0:(n=u.text)==null?void 0:(U=n.runs)==null?void 0:U.length)&&!!g.z(Y.acceptButton,g.ie).text.runs[0].text,m,X,S;u=((m=g.z(Y.dismissButton,g.ie))==null?void 0:(X=m.text)==null?void 0:(S=X.runs)==null?void 0:S.length)&&!!g.z(Y.dismissButton,g.ie).text.runs[0].text;return k||u}; VmY=function(Y){var u;if(!(u=!Y.K)){u=Y.K;var n=window.getComputedStyle(u);u=n.display==="none"||n.visibility==="hidden"||u.getAttribute("aria-hidden")==="true"}if(u||Y.L.isMinimized())Y.v$(!1);else if(u=g.Ui(Y.K),u.width&&u.height){Y.L.Oj(Y.element,Y.K);var U=Y.L.tJ().getPlayerSize().height;n=g.Ui(Y.Xk("ytp-promotooltip-container")).height;Y.G?Y.element.style.top=U-n-u.height-12+"px":Y.N||(U=Y.L.G_().height-n-u.height-12,Y.element.style.top=U+"px");U=Y.Xk("ytp-promotooltip-pointer");var k=g.uF(Y.K, Y.L.getRootNode()),m=Number(Y.element.style.left.replace(/[^\d\.]/g,""));Y=Y.L.isFullscreen()?18:12;U.style.left=k.x-m+u.width/2-Y+"px";U.style.top=n+"px"}else Y.v$(!1)}; tS=function(Y){g.H.call(this,{D:"button",Oc:["ytp-replay-button","ytp-button"],T:{title:Y.V("player_tooltip_data_title_killswitch")?"Volver a reproducir":"","data-tooltip-title":"Volver a reproducir"},U:[g.jh()]});this.L=Y;this.B(Y,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Ve(Y.getPlayerStateObject());HW(this.L,this.element,this)}; B4=function(Y,u){u=u===void 0?240:u;g.H.call(this,{D:"button",Oc:["ytp-button","ytp-search-button"],T:{title:Y.V("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.nV(Y.Y()))},U:[{D:"div",C:"ytp-search-icon",RV:"{{icon}}"},{D:"div",C:"ytp-search-title",RV:"Buscar"}]});this.api=Y;this.j=u;this.visible=!1;this.updateValue("icon",{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",C:"ytp-svg-fill",T:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); Y.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.K();this.B(Y,"appresize",this.K);this.B(Y,"videodatachange",this.K);HW(Y,this.element,this)}; o7=function(Y){g.H.call(this,{D:"div",C:"ytp-seek-overlay",U:[{D:"div",Oc:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],U:[{D:"div",Oc:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],U:[{D:"svg",T:{viewBox:"0 0 22 32",width:"22",height:"24"},U:[{D:"path",T:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{D:"div",C:"ytp-seek-overlay-duration",RV:"{{durationBack}}"}]},{D:"div",Oc:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],U:[{D:"div",C:"ytp-seek-overlay-duration",RV:"{{durationForward}}"},{D:"div",Oc:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],U:[{D:"svg",T:{viewBox:"0 0 22 32",width:"22",height:"24"},U:[{D:"path",T:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{D:"div",C:"ytp-seek-overlay-message",U:[{D:"div",C:"ytp-seek-overlay-message-icon",RV:"{{icon}}"},{D:"div",C:"ytp-seek-overlay-message-text", RV:"{{text}}"}]}]});var u=this;this.L=Y;this.S=0;this.K="hidden";this.Z=this.Xk("ytp-seek-overlay-animation-back");this.N=this.Xk("ytp-seek-overlay-animation-forward");this.KG=this.Xk("ytp-seek-overlay-message");this.W=new g.Vp(function(){Jvc(u)},g.YF(this.L.Y().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.b(this,this.W);this.L.createClientVe(this.N,this,28240);this.L.createClientVe(this.Z,this,28239);this.L.logVisibility(this.N,!0);this.L.logVisibility(this.Z,!0);this.hide()}; qkG=function(Y,u){Y.X=Y.G.animate([{offset:0,opacity:u,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});Y.X.addEventListener("finish",function(){Y.X=void 0;Y.W.start();Y.K="lingering"})}; aKM=function(Y,u,n,U){n=n===void 0?!1:n;U=U===void 0?!1:U;var k=[];k.push({offset:0,transform:"translateX("+(Y.j===-1?20:-20)+"px)",opacity:n?"0":"1"});n&&k.push({offset:.5,opacity:"1"});k.push({offset:1,transform:"translateX(0)"});n=u.animate(k,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});u=u.querySelector("path");k=[];k.push({offset:0,d:Y.j===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'});U&&k.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); Y={offset:1,d:Y.j===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};U&&(Y.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");k.push(Y);u.animate(k,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return n}; $rS=function(Y){var u=Y.G.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);u.classList.add("ytp-seek-overlay-arrow-additional");u.classList.remove("ytp-seek-overlay-arrow-persistent");Y.G.appendChild(u);aKM(Y,u,!0,!0).addEventListener("finish",function(){u.remove()})}; Jvc=function(Y,u,n){n=n===void 0?!0:n;Y.X=Y.G.animate([{offset:0,opacity:u===void 0?1:u},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});n&&(Y.X.addEventListener("finish",function(){Y.X=void 0;Y4t(Y);Y.hide()}),Y.K="fading-out")}; u6W=function(Y){var u=Number(getComputedStyle(Y.G).opacity),n;(n=Y.X)==null||n.cancel();Y.X=void 0;return u}; Y4t=function(Y){Y.S=0;Y.K="hidden";Y.j=void 0;Y.G=void 0;Y.W.stop();Y.X=void 0}; nDA=function(Y,u,n){Y.updateValue("text",u);if(n){a:{switch(n){case "PREMIUM_STANDALONE":u=LHG();break a;case "PREMIUM_STANDALONE_CAIRO":u=toc();break a}u=void 0}Y.updateValue("icon",u)}u=g.A(Y.KG.getAnimations());for(n=u.next();!n.done;n=u.next())n.value.cancel();Y.KG.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){Y.updateValue("text","");Y.updateValue("icon","")})}; c4=function(Y,u,n,U){U=U===void 0?240:U;g.H.call(this,{D:"button",Oc:["ytp-button","ytp-share-button"],T:{title:Y.V("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":n.element.id,"data-tooltip-opaque":String(g.nV(Y.Y()))},U:[{D:"div",C:"ytp-share-icon",RV:"{{icon}}"},{D:"div",C:"ytp-share-title",RV:"Compartir"}]});this.api=Y;this.K=u;this.j=n;this.X=U;this.visible=!1;this.tooltip=this.K.kR();Y.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.B(Y,"videodatachange",this.QF);this.B(Y,"videoplayerreset",this.QF);this.B(Y,"appresize",this.QF);this.B(Y,"presentingplayerstatechange",this.QF);this.QF();this.addOnDisposeCallback(g.EA(this.tooltip,this.element))}; UU0=function(Y){var u=Y.api.Y(),n=Y.api.getVideoData(),U=g.nV(u)&&g.qD(Y.api)&&g.V(Y.api.getPlayerStateObject(),128);u=u.X||u.disableSharing&&Y.api.getPresentingPlayerType()!==2||!n.showShareButton||n.OA||U||n.sD||!1;U=Y.api.tJ().getPlayerSize().width;return!!n.videoId&&U>=Y.X&&!u}; kku=function(Y,u){u.name!=="InvalidStateError"&&u.name!=="AbortError"&&(u.name==="NotAllowedError"?(Y.K.U1(),f0(Y.j,Y.element,!1)):g.tl(u))}; Xbd=function(Y,u){var n=nw(),U=Y.Y();n={D:"div",C:"ytp-share-panel",T:{id:nw(),role:"dialog","aria-labelledby":n},U:[{D:"div",C:"ytp-share-panel-inner-content",U:[{D:"div",C:"ytp-share-panel-title",T:{id:n},RV:"Compartir"},{D:"a",Oc:["ytp-share-panel-link","ytp-no-contextmenu"],T:{href:"{{link}}",target:U.N,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},RV:"{{linkText}}"},{D:"label",C:"ytp-share-panel-include-playlist",U:[{D:"input",C:"ytp-share-panel-include-playlist-checkbox", T:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{D:"div",C:"ytp-share-panel-loading-spinner",U:[vO()]},{D:"div",C:"ytp-share-panel-service-buttons",RV:"{{buttons}}"},{D:"div",C:"ytp-share-panel-error",RV:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{D:"button",Oc:["ytp-share-panel-close","ytp-button"],T:{title:"Cerrar"},U:[g.ZG()]}]};g.SL.call(this,Y,n,250);var k=this;this.moreButton=null;this.api=Y;this.tooltip=u.kR();this.X=[];this.W= this.Xk("ytp-share-panel-inner-content");this.closeButton=this.Xk("ytp-share-panel-close");this.B(this.closeButton,"click",this.H$);this.addOnDisposeCallback(g.EA(this.tooltip,this.closeButton));this.G=this.Xk("ytp-share-panel-include-playlist-checkbox");this.B(this.G,"click",this.QF);this.K=this.Xk("ytp-share-panel-link");this.addOnDisposeCallback(g.EA(this.tooltip,this.K));this.api.createClientVe(this.K,this,164503);this.B(this.K,"click",function(m){m.preventDefault();k.api.logClick(k.K);var X= k.api.getVideoUrl(!0,!0,!1,!1);X=mUu(k,X);g.oP(X,k.api,m)&&k.api.Yw("SHARE_CLICKED")}); this.listen("click",this.SJ);this.B(Y,"videoplayerreset",this.hide);this.B(Y,"fullscreentoggled",this.onFullscreenToggled);this.B(Y,"onLoopRangeChange",this.mU);this.hide()}; CXd=function(Y,u){PXu(Y);for(var n=u.links||u.shareTargets,U=0,k={},m=0;m0&&!J&&!W?(x.length===2&&(x=["noreferrer"]),g.rS(T,K,Z,x[0]),T=FvB()):(L=c.join(","),Wp()&&T.navigator&&T.navigator.standalone&&Z&&Z!="_self"?(L=g.rh("A"),g.QO(L,K),L.target=Z,R&&(L.rel="noreferrer"),((r=r.attributionsrc)||r==="")&&L.setAttribute("attributionsrc",r),r=document.createEvent("MouseEvent"), r.initMouseEvent("click",!0,!0,T,1),L.dispatchEvent(r),T=FvB()):R?(T=g.rS(T,"",Z,L),r=g.mG(K),T&&(T.opener=null,r===""&&(r="javascript:''"),r='',r=ZO(r),(K=T.document)&&K.write&&(K.write(Tr(r)),K.close()))):((T=g.rS(T,K,Z,L))&&r.noopener&&(T.opener=null),T&&r.noreferrer&&(T.opener=null)));T&&(T.opener||(T.opener=window),T.focus());N.preventDefault()}}}(k)); k.M$.addOnDisposeCallback(g.EA(Y.tooltip,k.M$.element));S==="Facebook"?Y.api.createClientVe(k.M$.element,k.M$,164504):S==="Twitter"&&Y.api.createClientVe(k.M$.element,k.M$,164505);Y.B(k.M$.element,"click",function(Q){return function(){Y.api.logClick(Q.M$.element)}}(k)); Y.api.logVisibility(k.M$.element,!0);Y.X.push(k.M$);U++}}var C=u.more||u.moreLink,f=new g.H({D:"a",Oc:["ytp-share-panel-service-button","ytp-button"],U:[{D:"span",C:"ytp-share-panel-service-button-more",U:[{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{D:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],T:{href:C,target:"_blank",title:"M\u00e1s"}});f.listen("click",function(Q){var N=C;Y.api.logClick(Y.moreButton.element);N=mUu(Y,N);g.oP(N,Y.api,Q)&&Y.api.Yw("SHARE_CLICKED")}); f.addOnDisposeCallback(g.EA(Y.tooltip,f.element));Y.api.createClientVe(f.element,f,164506);Y.B(f.element,"click",function(){Y.api.logClick(f.element)}); Y.api.logVisibility(f.element,!0);Y.X.push(f);Y.moreButton=f;Y.updateValue("buttons",Y.X)}; mUu=function(Y,u){var n={};g.nV(Y.api.Y())&&(g.Rf(Y.api,"addEmbedsConversionTrackingParams",[n]),u=g.Mk(u,n));return u}; PXu=function(Y){for(var u=g.A(Y.X),n=u.next();!n.done;n=u.next())n=n.value,n.detach(),g.nc(n);Y.X=[]}; v4=function(Y){return Y===void 0||Y.startSec===void 0||Y.endSec===void 0?!1:!0}; ffM=function(Y,u){Y.startSec+=u;Y.endSec+=u}; NtS=function(Y){cR.call(this,Y);this.j=this.K=this.isContentForward=this.S=!1;this.element.setAttribute("data-overlay-order","8");Qie(this);this.B(this.L,"changeProductsInVideoVisibility",this.GcV);this.B(this.L,"videodatachange",this.onVideoDataChange)}; iMB=function(Y){Y.W&&Y.MF.element.removeChild(Y.W.element);Y.W=void 0}; Tt7=function(Y,u){return u.map(function(n){var U,k;if((n=(U=g.z(n,ZMA))==null?void 0:(k=U.thumbnail)==null?void 0:k.thumbnails)&&n.length!==0)return n[0].url}).filter(function(n){return n!==void 0}).map(function(n){n=new g.H({D:"img", C:"ytp-suggested-action-product-thumbnail",T:{alt:"",src:n}});g.b(Y,n);return n})}; r4e=function(Y,u){Y.isContentForward=u;g.PP(Y.badge.element,"ytp-suggested-action-badge-content-forward",u)}; R7=function(Y){var u=Y.isContentForward&&!Y.IB();g.PP(Y.badge.element,"ytp-suggested-action-badge-preview-collapsed",u&&Y.K);g.PP(Y.badge.element,"ytp-suggested-action-badge-preview-expanded",u&&Y.j)}; Dg=function(Y,u,n){return new g.EE(Y*1E3,u*1E3,{priority:9,namespace:n})}; Mtu=function(Y){Y.L.JS("shopping_overlay_visible");Y.L.JS("shopping_overlay_preview_collapsed");Y.L.JS("shopping_overlay_preview_expanded");Y.L.JS("shopping_overlay_expanded")}; Qie=function(Y){Y.B(Y.L,g.yk("shopping_overlay_visible"),function(){Y.ke(!0)}); Y.B(Y.L,g.Vk("shopping_overlay_visible"),function(){Y.ke(!1)}); Y.B(Y.L,g.yk("shopping_overlay_expanded"),function(){Y.oV=!0;on(Y)}); Y.B(Y.L,g.Vk("shopping_overlay_expanded"),function(){Y.oV=!1;on(Y)}); Y.B(Y.L,g.yk("shopping_overlay_preview_collapsed"),function(){Y.K=!0;R7(Y)}); Y.B(Y.L,g.Vk("shopping_overlay_preview_collapsed"),function(){Y.K=!1;R7(Y)}); Y.B(Y.L,g.yk("shopping_overlay_preview_expanded"),function(){Y.j=!0;R7(Y)}); Y.B(Y.L,g.Vk("shopping_overlay_preview_expanded"),function(){Y.j=!1;R7(Y)})}; Gkm=function(Y){g.H.call(this,{D:"div",C:"ytp-shorts-title-channel",U:[{D:"a",C:"ytp-shorts-title-channel-logo",T:{href:"{{channelLink}}",target:Y.Y().N,"aria-label":"{{channelLogoLabel}}"}},{D:"div",C:"ytp-shorts-title-expanded-heading",U:[{D:"div",C:"ytp-shorts-title-expanded-title",U:[{D:"a",RV:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:Y.Y().N,tabIndex:"0"}}]}]}]});var u=this;this.api=Y;this.K=this.Xk("ytp-shorts-title-channel-logo");this.channelName=this.Xk("ytp-shorts-title-expanded-title"); this.subscribeButton=null;Y.createClientVe(this.K,this,36925);this.B(this.K,"click",function(n){u.api.logClick(u.K);g.rS(window,siG(u));n.preventDefault()}); Y.createClientVe(this.channelName,this,37220);this.B(this.channelName,"click",function(n){u.api.logClick(u.channelName);g.rS(window,siG(u));n.preventDefault()}); dUG(this);this.B(Y,"videodatachange",this.QF);this.B(Y,"videoplayerreset",this.QF);this.QF()}; dUG=function(Y){if(!Y.api.Y().lN){var u=Y.api.getVideoData(),n=new g.CW("Suscribirse",null,"Suscrito/a",null,!0,!1,u.QN,u.subscribed,"channel_avatar",null,Y.api,!0);Y.api.createServerVe(n.element,Y);var U;Y.api.setTrackingParams(n.element,((U=u.subscribeButtonRenderer)==null?void 0:U.trackingParams)||null);Y.B(n.element,"click",function(){Y.api.logClick(n.element)}); Y.subscribeButton=n;g.b(Y,Y.subscribeButton);Y.subscribeButton.yF(Y.element)}}; siG=function(Y){var u=Y.api.Y(),n=Y.api.getVideoData();n=g.RT(u)+n.Iu;if(!g.nV(u))return n;u={};g.Rf(Y.api,"addEmbedsConversionTrackingParams",[u]);return g.Mk(n,u)}; x_=function(Y){g.SL.call(this,Y,{D:"button",Oc:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{D:"div",C:"ytp-skip-intro-button-text",RV:"Omitir introducci\u00f3n"}]},100);var u=this;this.X=!1;this.K=new g.Vp(function(){u.hide()},5E3); this.b8=this.vC=NaN;g.b(this,this.K);this.S=function(){u.show()}; this.W=function(){u.hide()}; this.G=function(){var n=u.L.getCurrentTime();n>u.vC/1E3&&n0?{D:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",Oc:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {D:"text",Oc:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"7.05",y:"15.05"}}]}:{D:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},U:[{D:"path",Oc:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {D:"text",Oc:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"6.5",y:"15"}}]}]});var n=this;this.L=Y;this.K=u;this.j=new g.Vp(function(){n.X?(n.X=!1,n.j.start()):n.element.classList.remove("ytp-jump-spin","backwards")},250); this.X=!1;(u=u>0)?this.L.createClientVe(this.element,this,36843):this.L.createClientVe(this.element,this,36844);var U=g.UR(u?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.K).toString()});this.L.V("player_tooltip_data_title_killswitch")?this.update({title:U,"data-title-no-tooltip":U,"aria-keyshortcuts":u?"\u2192":"\u2190"}):this.update({"tooltip-title":U,"data-title-no-tooltip":U,"aria-keyshortcuts":u?"\u2192":"\u2190"});this.G=this.element.querySelector(".ytp-jump-button-text"); this.G.textContent=Math.abs(this.K).toString();this.listen("click",this.onClick,this);HW(Y,this.element,this)}; oD0=function(Y,u){u?Y.element.classList.add("ytp-jump-button-enabled"):Y.element.classList.remove("ytp-jump-button-enabled");Y.L.logVisibility(Y.element,u);Y.L.aZ()}; I7=function(Y,u){hS.call(this,Y,u,"timedMarkerCueRange","Ver momentos clave");this.B(Y,g.Vk("timedMarkerCueRange"),this.ye);this.B(Y,"updatemarkervisibility",this.updateVideoData)}; c4M=function(Y){var u,n=(u=Y.L.getVideoData())==null?void 0:u.dg;if(n)for(Y=Y.G.zZ,n=g.A(n),u=n.next();!u.done;u=n.next())if(u=Y[u.value]){var U=void 0,k=void 0,m=void 0;if(((U=u.onTap)==null?void 0:(k=U.innertubeCommand)==null?void 0:(m=k.changeEngagementPanelVisibilityAction)==null?void 0:m.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return u}}; zI=function(Y){var u=Y.V("web_enable_pip_on_miniplayer");g.H.call(this,{D:"button",Oc:["ytp-miniplayer-button","ytp-button"],T:{title:Y.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:["{{icon}}"]});this.L=Y;this.visible=!1;this.listen("click",this.onClick);this.B(Y,"fullscreentoggled",this.QF);this.L.V("player_tooltip_data_title_killswitch")? this.update({title:g.ys(Y,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:vDu(this,u)}):this.update({"tooltip-title":g.ys(Y,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:vDu(this,u)});HW(Y,this.element,this);Y.createClientVe(this.element,this,62946);this.QF()}; vDu=function(Y,u){return Y.L.V("delhi_modern_web_player_icons")?{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:u?{D:"svg",T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},U:[{D:"g",T:{transform:"translate(96, -96) scale(0.8)"},U:[{D:"path",au:!0,T:{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"}}]}]}:pkd()}; gi=function(Y,u,n,U,k,m){m=m===void 0?!1:m;var X={D:"div",Oc:["ytp-input-slider-section"],U:[{D:"input",C:"ytp-input-slider",T:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};k&&X.U.unshift(k);m&&X.Oc.push("ytp-vertical-slider");g.H.call(this,X);this.G=Y;this.W=u;this.Z=n;this.initialValue=U;this.header=k;this.j=this.Xk("ytp-input-slider");this.K=U?U:Y;this.init();this.B(this.j,"input",this.X);this.B(this.j,"keydown", this.S)}; Er=function(Y,u){Y.K=u;Y.updateValue("slidervalue",Y.K);Y.j.valueAsNumber=Y.K;RgM(Y,u)}; RgM=function(Y,u){Y.j.style.setProperty("--yt-slider-shape-gradient-percent",(u-Y.G)/(Y.W-Y.G)*100+"%")}; H4=function(Y){var u=Y.isMuted()?0:Y.getVolume();gi.call(this,0,100,1,u,void 0,!0);this.L=Y;this.KG=W_(this.jG,10,this);this.N=!1;this.B(Y,"onVolumeChange",this.onVolumeChange);this.B(this.element,"wheel",this.oV)}; DU7=function(Y,u){g.H.call(this,{D:"div",T:{tabindex:"0",title:Y.V("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},Oc:["ytp-volume-popover"]});var n=this;this.isVisible=!1;this.tooltip=u.kR();this.j=new H4(Y);g.b(this,this.j);this.j.yF(this.element);this.K=new g.Vp(function(){yX(n,!1)},300); this.listen("mouseenter",function(){n.K.stop()}); this.listen("mouseleave",function(){n.K.start()}); this.listen("focus",function(){n.K.stop()}); this.B(this.j.j,"focus",function(){n.K.stop()}); this.listen("focusout",function(){n.K.start();n.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.EA(u.kR(),this.element));g.b(this,this.K)}; yX=function(Y,u){Y.element.classList.toggle("ytp-volume-popover-hovering",u);Y.isVisible=u;(Y=Y.element.closest(".ytp-chrome-bottom"))&&Y.classList.toggle("ytp-volume-popover-showing",u)}; VX=function(Y,u,n){n=n===void 0?!1:n;var U=Y.Y().MF?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:Y.V("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};U=Y.V("delhi_modern_web_player")?{D:"div",C:"ytp-mute-button",U:[{D:"button",T:U,Oc:["ytp-volume-icon", "ytp-button"],RV:"{{icon}}"}]}:{D:"button",Oc:["ytp-mute-button","ytp-button"],T:U,U:[{D:"div",C:"ytp-volume-icon",RV:"{{icon}}"}]};g.H.call(this,U);this.L=Y;this.Fk=n;this.j=null;this.S=this.jG=this.N=this.Z=NaN;this.rg=this.KG=null;this.W=[];this.G=[];this.visible=!1;this.X=this.K=this.oV=null;Y.V("delhi_modern_web_player")&&this.update({"data-priority":4});n=this.L.Y();this.updateValue("icon",Lw());this.tooltip=u.kR();this.updateValue("dataTooltipOffsetY",0);this.X=g.fi("ytp-volume-icon",this.element); U=this.L.V("delhi_modern_web_player_icons")?{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",Oc:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{D:"path",C:"ytp-svg-volume-animation-small-ripple",T:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{D:"path",C:"ytp-svg-volume-animation-big-ripple",T:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"defs",U:[{D:"clipPath",T:{id:"ytp-svg-volume-animation-mask"},U:[{D:"path",T:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",T:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",C:"ytp-svg-volume-animation-mover",T:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",T:{id:"ytp-svg-volume-animation-slash-mask"},U:[{D:"path",C:"ytp-svg-volume-animation-mover", T:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",au:!0,Oc:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{D:"path",au:!0,Oc:["ytp-svg-fill","ytp-svg-volume-animation-hider"],T:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.j=new g.Up(U);g.b(this,this.j);this.KG=this.j.Xk("ytp-svg-volume-animation-speaker");this.rg=this.KG.getAttribute("d");this.W=g.Sw("ytp-svg-volume-animation-mover",this.j.element);this.L.V("delhi_modern_web_player_icons");this.G=g.Sw("ytp-svg-volume-animation-hider",this.j.element);this.L.V("delhi_modern_web_player_icons");this.MF=new kg;g.b(this,this.MF);this.DW=new kg;g.b(this,this.DW);this.B(Y,"appresize",this.Wj);this.B(Y,"onVolumeChange",this.onVolumeChange);Y.V("delhi_modern_web_player")? this.listen("click",this.LIV):this.listen("click",this.UU);n.MF?(Y.V("delhi_modern_web_player")&&!Y.V("delhi_modern_web_player_horizontal_volume_controls")&&(this.K=new DU7(Y,u),this.K.yF(this.element),g.b(this,this.K),this.B(this.X,"mouseover",this.Hj),this.B(this.X,"focus",this.Hj),this.B(this.X,"mouseout",this.eZ),this.B(this.X,"blur",this.eZ)),n=Y.V("delhi_modern_web_player")?this.X:this.element,this.addOnDisposeCallback(g.EA(u.kR(),n))):xUA(this);this.message=null;Y.createClientVe(this.element, this,28662);this.Wj(Y.tJ().getPlayerSize());this.setVolume(Y.getVolume(),Y.isMuted())}; lfe=function(Y,u){if(Y.L.Y().MF){var n=g.ys(Y.L,"Silenciar","m"),U=g.ys(Y.L,"Activar sonido","m");n=u?U:n;Y.L.Y().V("player_tooltip_data_title_killswitch")?Y.updateValue("title",n):Y.update({"tooltip-title":n,"aria-label":n});Y.update({"data-title-no-tooltip":u?"Activar sonido":"Silenciar"});Y.tooltip.aZ()}}; WA0=function(Y,u){Y.Z=u;var n=Y.rg;Y.L.V("delhi_modern_web_player_icons")?Y.j.Xk("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(u+") translate(-22,-12)")):u&&(n+=H9t(hgW,wbW,u));Y.KG.setAttribute("d",n)}; egu=function(Y,u){var n;u===1?n=Y.L.V("delhi_modern_web_player_icons")?{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:Lw():n=Y.j;Y.jG=u;if(Y.L.V("delhi_modern_web_player_icons"))Y.j.Xk("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-u+") translate(-18,-12)")),Y.j.Xk("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(Y.Z-u+") translate(-22, -12)"));else{for(var U=20*u,k=0;k=3&&Y.L.getPresentingPlayerType()!==2}; HMY=function(Y){var u=J3(Y.L.ym());return u?Y.K?u.ul():u.ZC():!1}; zge=function(Y){var u={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},n=Y.playlist!=null&&Y.playlist.ul();n=g.qD(Y.L)&&(!Y.K||n);var U=Y.K&&g.n0(Y.L),k=HMY(Y),m=Y.K&&Y.L.getPresentingPlayerType()===5,X=g.ys(Y.L,"Siguiente","SHIFT+n"),S=g.ys(Y.L,"Anterior","SHIFT+p");if(m)u.title="Iniciar video",u["tooltip-title"]="Iniciar video";else if(Y.X)u.title="Volver a reproducir",u["tooltip-title"]="Volver a reproducir";else if(n){var C= null;Y.playlist&&(C=g.BH(Y.playlist,Y.K?xRW(Y.playlist):lxA(Y.playlist)));if(C){if(C.videoId){var f=Y.playlist.listId;u.url=Y.L.Y().getVideoUrl(C.videoId,f?f.toString():void 0)}u.text=C.title;u.duration=C.lengthText?C.lengthText:C.lengthSeconds?g.sH(C.lengthSeconds):null;u.preview=C.I_("mqdefault.jpg")}Y.K?(u.title=X,u["tooltip-title"]=X,u["data-title-no-tooltip"]="Siguiente",u["aria-keyshortcuts"]="SHIFT+n"):(u.title=S,u["tooltip-title"]=S,u["data-title-no-tooltip"]="Anterior",u["aria-keyshortcuts"]= "SHIFT+p")}else if(U){if(S=(C=Y.videoData)==null?void 0:g.Lk(C))u.url=S.yg(),u.text=S.title,u.duration=S.lengthText?S.lengthText:S.lengthSeconds?g.sH(S.lengthSeconds):null,u.preview=S.I_("mqdefault.jpg");u.title=X;u["tooltip-title"]=X;u["data-title-no-tooltip"]="Siguiente";u["aria-keyshortcuts"]="SHIFT+n"}u.disabled=!U&&!n&&!k&&!m;Y.update(u);Y.S=!!u.url;U||n||Y.X||k||m?Y.j||(Y.j=g.EA(Y.tooltip,Y.element),Y.W=Y.listen("click",Y.onClick,Y)):Y.j&&(Y.j(),Y.j=null,Y.qR(Y.W),Y.W=null);Y.tooltip.aZ();g.PP(Y.element, "ytp-playlist-ui",Y.K&&(n||Y.L.V("web_hide_next_button")))}; IfM=function(Y,u){return Y?u?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:M7():u?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:BTY()}; Vtm=function(Y,u){g.H.call(this,{D:"div",C:"ytp-fine-scrubbing",U:[{D:"div",C:"ytp-fine-scrubbing-draggable",U:[{D:"div",C:"ytp-fine-scrubbing-thumbnails",T:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic en el panel o despl\u00e1zate por \u00e9l para usar la b\u00fasqueda precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{D:"div",T:{"aria-hidden":"true"},C:"ytp-fine-scrubbing-cursor"},{D:"div", C:"ytp-fine-scrubbing-seek-time",T:{"aria-hidden":"true"},RV:"{{seekTime}}"},{D:"div",C:"ytp-fine-scrubbing-play",U:[Y.V("delhi_modern_web_player_icons")?Ae():G3()],T:{title:"Reproducir desde este momento",role:"button"}},{D:"div",C:"ytp-fine-scrubbing-dismiss",U:[g.ZG()],T:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var n=this;this.api=Y;this.W=this.Xk("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Xk("ytp-fine-scrubbing-dismiss");this.jG=this.Xk("ytp-fine-scrubbing-draggable"); this.playButton=this.Xk("ytp-fine-scrubbing-play");this.thumbnails=[];this.j=[];this.Fk=this.K=0;this.MF=void 0;this.KG=NaN;this.JJ=this.N=this.X=this.Z=0;this.G=[];this.interval=this.frameCount=0;this.S=160;this.scale=1;this.CG=0;this.isEnabled=this.rg=!1;y4e(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.EA(u,this.dismissButton));this.addOnDisposeCallback(g.EA(u,this.playButton));this.DW=new g.ye(this.jG,!0);this.DW.subscribe("dragstart",this.DA,this);this.DW.subscribe("dragmove",this.ri, this);this.DW.subscribe("dragend",this.kS,this);this.B(Y,"SEEK_COMPLETE",this.QH);Y.V("web_fix_fine_scrubbing_false_play")&&this.B(Y,"rootnodemousedown",function(U){n.oV=U}); this.W.addEventListener("keydown",function(){}); g.b(this,this.DW);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; y4e=function(Y,u){var n=g.sH(u),U=g.UR("Saltar a: $PROGRESS",{PROGRESS:g.sH(u,!0)});Y.update({ariamin:0,ariamax:Math.floor(Y.api.getDuration()),arianow:Math.floor(u),arianowtext:U,seekTime:n})}; OMA=function(Y){Y.KG=NaN;Y.N=0;Y.Z=Y.X}; q4G=function(Y){var u=Y.api.a_();if(u){var n=90*Y.scale,U=fk(u,160*Y.scale);if(u=u.levels[U]){Y.S=u.width;if(!Y.G.length){U=[];for(var k=Qf(u,u.gy()),m=u.columns*u.rows,X=u.frameCount,S=0;S<=k;S++)for(var C=XY.G.length;)U= void 0,(U=Y.thumbnails.pop())==null||U.dispose();for(;Y.thumbnails.lengthn.length;)U=void 0,(U=Y.j.pop())==null||U.dispose(); for(;Y.j.length-n?-u/n*Y.interval*.5:-(u+n/2)/n*Y.interval}; afY=function(Y){return-((Y.W.offsetWidth||(Y.frameCount-1)*Y.S*Y.scale)-Y.K/2)}; FAu=function(){g.H.call(this,{D:"div",C:"ytp-fine-scrubbing-thumbnail"})}; J4G=function(){g.H.call(this,{D:"div",C:"ytp-fine-scrubbing-chapter-title",U:[{D:"div",C:"ytp-fine-scrubbing-chapter-title-content",RV:"{{chapterTitle}}"}]})}; Y3t=function(Y){g.H.call(this,{D:"div",C:"ytp-heat-map-chapter",U:[{D:"svg",C:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{D:"defs",U:[{D:"clipPath",T:{id:"{{id}}"},U:[{D:"path",C:"ytp-heat-map-path",T:{d:"",fill:"white"}}]},{D:"linearGradient",T:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},U:[{D:"stop",T:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{D:"stop",T:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{D:"rect",C:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",C:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",C:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{D:"path",C:"ytp-modern-heat-map",T:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=Y;this.Z=this.Xk("ytp-heat-map-svg");this.W=this.Xk("ytp-heat-map-path");this.G=this.Xk("ytp-heat-map-graph");this.S=this.Xk("ytp-heat-map-play");this.K=this.Xk("ytp-heat-map-hover");this.X=this.Xk("ytp-modern-heat-map");this.QY=!1;this.j=60;Y=""+g.SB(this);this.update({id:Y});Y="url(#"+Y+")";this.G.setAttribute("clip-path",Y);this.S.setAttribute("clip-path",Y);this.K.setAttribute("clip-path",Y)}; uFe=function(Y,u){u>0&&(Y.j=u,Y.Z.style.height=Y.j+"px")}; qL=function(){g.H.call(this,{D:"div",C:"ytp-chapter-hover-container",U:[{D:"div",C:"ytp-progress-bar-padding"},{D:"div",C:"ytp-progress-list",U:[{D:"div",Oc:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",C:"ytp-progress-linear-live-buffer"},{D:"div",C:"ytp-load-progress"},{D:"div",C:"ytp-hover-progress"},{D:"div",C:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.j=this.Xk("ytp-progress-list");this.W=this.Xk("ytp-progress-linear-live-buffer"); this.G=this.Xk("ytp-ad-progress-list");this.S=this.Xk("ytp-load-progress");this.Z=this.Xk("ytp-play-progress");this.X=this.Xk("ytp-hover-progress");this.K=this.Xk("ytp-chapter-hover-container")}; a7=function(Y,u){g.yV(Y.K,"width",u)}; nOS=function(Y,u){g.yV(Y.K,"margin-right",u+"px")}; Uom=function(){this.j=this.position=this.X=this.K=this.G=this.width=NaN}; k8m=function(){g.H.call(this,{D:"div",C:"ytp-timed-marker"});this.K=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Yf=function(Y,u){g.XV.call(this,{D:"div",C:"ytp-progress-bar-container",T:{"aria-disabled":"true"},U:[{D:"div",Oc:["ytp-heat-map-container"],U:[{D:"div",C:"ytp-heat-map-edu"}]},{D:"div",Oc:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},U:[{D:"div",C:"ytp-chapters-container"},{D:"div",C:"ytp-timed-markers-container"}, {D:"div",C:"ytp-clip-start-exclude"},{D:"div",C:"ytp-clip-end-exclude"},{D:"div",C:"ytp-scrubber-container",U:[{D:"div",Oc:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{D:"div",C:"ytp-scrubber-pull-indicator"},{D:"img",Oc:["ytp-decorated-scrubber-button"]}]}]}]},{D:"div",Oc:["ytp-fine-scrubbing-container"],U:[{D:"div",C:"ytp-fine-scrubbing-edu"}]},{D:"div",C:"ytp-bound-time-left",RV:"{{boundTimeLeft}}"},{D:"div",C:"ytp-bound-time-right",RV:"{{boundTimeRight}}"},{D:"div",C:"ytp-clip-start", T:{title:"{{clipstarttitle}}"},RV:"{{clipstarticon}}"},{D:"div",C:"ytp-clip-end",T:{title:"{{clipendtitle}}"},RV:"{{clipendicon}}"}]});this.api=Y;this.bU=!1;this.MA=this.KF=this.dg=this.W=this.xa=0;this.kQ=null;this.gL=!1;this.CG={};this.eE={};this.clipEnd=Infinity;this.CT=this.Xk("ytp-clip-end");this.Qe=new g.ye(this.CT,!0);this.lD=this.Xk("ytp-clip-end-exclude");this.UD=this.Xk("ytp-clip-start-exclude");this.clipStart=0;this.Qm=this.Xk("ytp-clip-start");this.yY=new g.ye(this.Qm,!0);this.KG=this.Ru= 0;this.progressBar=this.Xk("ytp-progress-bar");this.Gw={};this.zZ={};this.Pz=this.Xk("ytp-chapters-container");this.vC=this.Xk("ytp-timed-markers-container");this.K=[];this.S=[];this.SW={};this.s6=null;this.rg=-1;this.nT=this.MF=0;this.tS=this.Z=null;this.Jr=this.Xk("ytp-scrubber-button");this.jG=this.Xk("ytp-decorated-scrubber-button");this.FY=this.Xk("ytp-scrubber-container");this.Iu=new g.yO;this.MR=0;this.WC=new Uom;this.X=new BY(0,0);this.LT=null;this.N=this.mW=!1;this.Y$=null;this.oV=this.Xk("ytp-heat-map-container"); this.sx=this.Xk("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.Uc=this.Xk("ytp-fine-scrubbing-container");this.Cs=this.Xk("ytp-fine-scrubbing-edu");this.j=void 0;this.Fk=this.b8=this.JJ=!1;this.tooltip=u.kR();this.addOnDisposeCallback(g.EA(this.tooltip,this.CT));g.b(this,this.Qe);this.Qe.subscribe("hoverstart",this.XN,this);this.Qe.subscribe("hoverend",this.bP,this);this.B(this.CT,"click",this.gS);this.addOnDisposeCallback(g.EA(this.tooltip,this.Qm));g.b(this,this.yY);this.yY.subscribe("hoverstart", this.XN,this);this.yY.subscribe("hoverend",this.bP,this);this.B(this.Qm,"click",this.gS);mot(this);this.B(Y,"resize",this.pT);this.B(Y,"presentingplayerstatechange",this.AF);this.B(Y,"videodatachange",this.qS);this.B(Y,"videoplayerreset",this.WJ);this.B(Y,"cuerangesadded",this.sZa);this.B(Y,"cuerangesremoved",this.qXq);this.B(Y,"onLoopRangeChange",this.Ao);this.B(Y,"innertubeCommand",this.onClickCommand);this.B(Y,"onRetroModeChanged",this.QHk);this.B(Y,g.yk("timedMarkerCueRange"),this.jaW);this.B(Y, "updatemarkervisibility",this.Jj);this.B(Y,"serverstitchedvideochange",this.tMk);this.updateVideoData(Y.getVideoData(),!0);this.Ao(Y.getLoopRange());$_(this)&&!this.j&&(this.j=new Vtm(this.api,this.tooltip),Y=g.YS(this.element).x||0,this.j.pT(Y,this.W),this.j.yF(this.Uc),g.b(this,this.j),this.B(this.j.dismissButton,"click",this.NU),this.B(this.j.playButton,"click",this.xJ),this.B(this.j.element,"dblclick",this.xJ));this.api.createClientVe(this.oV,this,139609,!0);this.api.createClientVe(this.sx,this, 140127,!0);this.api.createClientVe(this.Cs,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; mot=function(Y){if(Y.K.length===0){var u=new qL;Y.K.push(u);g.b(Y,u);u.yF(Y.Pz,0)}for(;Y.K.length>1;)Y.K.pop().dispose();a7(Y.K[0],"100%");Y.K[0].startTime=0;Y.K[0].title=""}; XM7=function(Y){var u=u===void 0?NaN:u;var n=new Y3t(Y.api);Y.G.push(n);g.b(Y,n);n.yF(Y.oV);u>=0&&(n.element.style.width=u+"px")}; PVu=function(Y){for(;Y.S.length;)Y.S.pop().dispose()}; CVc=function(Y){var u,n,U,k,m;return(m=g.z((k=g.z((u=Y.getWatchNextResponse())==null?void 0:(n=u.playerOverlays)==null?void 0:(U=n.playerOverlayRenderer)==null?void 0:U.decoratedPlayerBarRenderer,YR))==null?void 0:k.playerBar,S3u))==null?void 0:m.chapters}; fhc=function(Y){for(var u=Y.K,n=[],U=0;U=X&&K<=Q&&m.push(Z)}C>0&&(Y.oV.style.height=C+"px");X=Y.G[U];Q=m;Z=k;r=C;K=U===0;K=K===void 0?!1:K;uFe(X,r);N=Q;T=X.j;K=K===void 0?!1:K;var L=1E3/N.length,R=[];R.push({x:0,y:100});for(var c=0;c0&&(n=m[m.length-1])}g.uC(Y);S=[];u=g.A(u.heatMarkersDecorations||[]);for(k=u.next();!k.done;k=u.next())if(k=g.z(k.value,MDA))C=k.label,U=n=f=void 0,S.push({visibleTimeRangeStartMillis:(f=k.visibleTimeRangeStartMillis)!=null?f:-1,visibleTimeRangeEndMillis:(n=k.visibleTimeRangeEndMillis)!=null?n:-1,decorationTimeMillis:(U=k.decorationTimeMillis)!=null?U:NaN,label:C?g.Cw(C):""});Y.heatMarkersDecorations=S}}; iZB=function(Y,u){Y.S.push(u);g.b(Y,u);u.yF(Y.vC,Y.vC.children.length)}; ZZG=function(Y,u){u=g.A(u);for(var n=u.next();!n.done;n=u.next()){n=n.value;var U=n9(Y,n.timeRangeStartMillis/(Y.X.K*1E3),Ub(Y)),k=Y.api.V("delhi_modern_web_player")?.667:.6;g.yV(n.element,"transform","translateX("+U+"px) scaleX("+k+")")}}; QGc=function(Y,u){var n=0,U=!1;u=g.A(u);for(var k=u.next();!k.done;k=u.next()){k=k.value;if(g.z(k,do0)){k=g.z(k,do0);var m={startTime:NaN,title:null,onActiveCommand:void 0},X=k.title;m.title=X?g.Cw(X):"";X=k.timeRangeStartMillis;X!=null&&(m.startTime=X);m.onActiveCommand=k.onActiveCommand;k=m;n===0&&k.startTime!==0&&(Y.K[n].startTime=0,Y.K[n].title="",Y.K[n].onActiveCommand=k.onActiveCommand,n++,U=!0);Y.K.length<=n&&(m=new qL,Y.K.push(m),g.b(Y,m),m.yF(Y.Pz,Y.Pz.children.length));Y.K[n].startTime= k.startTime;Y.K[n].title=k.title?k.title:"";Y.K[n].onActiveCommand=k.onActiveCommand;Y.K[n].index=U?n-1:n}n++}for(;n=0;U--)if(Y.K[U].width>0){nOS(Y.K[U],0);var k=Math.floor(Y.K[U].width);Y.K[U].width=k;a7(Y.K[U],k+"px");break}Y.K[n].width=0;a7(Y.K[n],"0")}else n===Y.K.length-1?(U=Math.floor(Y.K[n].width+u),Y.K[n].width=U,a7(Y.K[n],U+"px")):(u=Y.K[n].width+u,U=Math.round(u),u-=U,Y.K[n].width=U,a7(Y.K[n],U+"px"));n=0;if(Y.G.length===Y.K.length)for(u=0;u< Y.G.length;u++)U=Y.K[u].width,Y.G[u].element.style.width=U+"px",Y.G[u].element.style.left=n+"px",n+=U+mN(Y);Y.api.V("delhi_modern_web_player")&&(Y.K.length===1?Y.K[0].j.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(Y.K[0].j.classList.remove("ytp-progress-bar-end"),Y.K[0].j.classList.add("ytp-progress-bar-start"),Y.K[Y.K.length-1].j.classList.add("ytp-progress-bar-end")))}; G8d=function(Y,u){var n=0,U=!1,k=Y.K.length,m=Y.X.K*1E3;m===0&&(m=Y.api.getProgressState().seekableEnd*1E3);if(m>0&&Y.W>0){for(var X=Y.W-mN(Y)*Y.MF,S=Y.nT===0?3:X*Y.nT,C=g.A(Y.K),f=C.next();!f.done;f=C.next())f.value.width=0;for(;n1);f=(m===0?0:C/m*X)+Y.K[n].width;if(f>S)Y.K[n].width=f;else{Y.K[n].width=0;var Q=Y,N=n,Z=Q.K[N-1];Z!==void 0&&Z.width>0? Z.width+=f:NY.nT&&(Y.nT=C/m),U=!0)}n++}}return U}; kf=function(Y){if(Y.W){var u=Y.api.getProgressState(),n=Y.api.getVideoData();if(!(n&&n.enableServerStitchedDai&&n.xo)||isFinite(u.current)){var U;if(((U=Y.api.getVideoData())==null?0:jc(U))&&u.airingStart&&u.airingEnd)var k=X1(Y,u.airingStart,u.airingEnd);else if(Y.api.getPresentingPlayerType()===2){var m,X,S;k=(n=(k=Y.api.getVideoData())==null?void 0:(m=k.getPlayerResponse())==null?void 0:(X=m.playerConfig)==null?void 0:(S=X.webPlayerConfig)==null?void 0:S.skippableAdProgressBarDuration)?X1(Y,u.seekableStart, n/1E3):X1(Y,u.seekableStart,u.seekableEnd)}else k=X1(Y,u.seekableStart,u.seekableEnd);m=o8(k,u.loaded,0);u=o8(k,u.current,0);X=Y.X.j!==k.j||Y.X.K!==k.K;Y.X=k;PJ(Y,u,m);X&&A_G(Y);jGc(Y)}}}; X1=function(Y,u,n){return Ket(Y)?new BY(Math.max(u,Y.LT.startTimeMs/1E3),Math.min(n,Y.LT.endTimeMs/1E3)):new BY(u,n)}; LeM=function(Y,u){var n,U,k;u=g.z((n=u.getWatchNextResponse())==null?void 0:(U=n.playerOverlays)==null?void 0:(k=U.playerOverlayRenderer)==null?void 0:k.decoratedPlayerBarRenderer,YR);if(u==null?0:u.progressColor)for(n=0;n1){n=Sx(Y,u.X,!0);for(var U=0,k=0;k0&&(U+=Y.K[k].width,U+=mN(Y));n=(Y.K[n].startTime+(u.X-U)/Y.K[n].width*((n===Y.K.length-1?Y.X.K*1E3:Y.K[n+1].startTime)-Y.K[n].startTime))/1E3||0}return n}; BIA=function(Y,u){if(u<0)return"0";Y=Math.floor(Math.min(u,Y.api.getDuration())*1E3);return Y>2147483647?"0":String(Y)}; f9=function(Y,u,n,U,k){u=BIA(Y,u);n=BIA(Y,n);Y=Y.progressBar.visualElement;U={seekData:{startMediaTimeMs:u,endMediaTimeMs:n,seekSource:U}};(u=g.sC())&&ab(u,Y,k,U)}; oOB=function(Y,u,n){if(n>=Y.K.length)return!1;var U=Y.W-mN(Y)*Y.MF;return Math.abs(u-Y.K[n].startTime/1E3)/Y.X.K*U<4}; A_G=function(Y){Y.Jr.style.removeProperty("height");for(var u=g.A(Object.keys(Y.CG)),n=u.next();!n.done;n=u.next())c_c(Y,n.value);Qb(Y);PJ(Y,Y.KG,Y.Ru)}; Ub=function(Y){var u=Y.Iu.x;u=g.gS(u,0,Y.W);Y.WC.update(u,Y.W);return Y.WC}; iC=function(Y){return(Y.N?135:90)-Na(Y)}; Na=function(Y){var u=48,n=Y.api.Y();Y.api.V("delhi_modern_web_player")?u=Y.api.getPlayerSize().width<=528?64:Y.N?96:72:Y.N?u=54:g.nV(n)&&!n.j&&(u=40);return u}; PJ=function(Y,u,n){Y.KG=u;Y.Ru=n;var U=Ub(Y),k=Y.X.K,m=S$d(Y.X,Y.KG),X=g.UR("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.sH(m,!0),DURATION:g.sH(k,!0)}),S=sr(Y.K,m*1E3);S=Y.K[S].title;Y.update({ariamin:Math.floor(Y.X.j),ariamax:Math.floor(k),arianow:Math.floor(m),arianowtext:S?S+" "+X:X});k=Y.clipStart;m=Y.clipEnd;Y.LT&&Y.api.getPresentingPlayerType()!==2&&(k=Y.LT.startTimeMs/1E3,m=Y.LT.endTimeMs/1E3);k=o8(Y.X,k,0);S=o8(Y.X,m,1);X=Y.api.getVideoData();m=g.gS(u,k,S);n=(X==null?0:g.d6(X))?1:g.gS(n, k,S);u=n9(Y,u,U);g.yV(Y.FY,"transform","translateX("+u+"px)");Y.api.V("delhi_modern_web_player")&&Y.api.V("delhi_modern_web_player_cutout")&&vOe(Y,u);Zs(Y,U,k,m,"PLAY_PROGRESS");(X==null?0:jc(X))?(u=Y.api.getProgressState().seekableEnd)&&Zs(Y,U,m,o8(Y.X,u),"LIVE_BUFFER"):Zs(Y,U,k,n,"LOAD_PROGRESS");if(Y.api.V("web_player_heat_map_played_bar")){var C;(C=Y.G[0])!=null&&C.S.setAttribute("width",(m*100).toFixed(2)+"%")}}; vOe=function(Y,u){Y.api.getPresentingPlayerType()!==1?Y.Pz.style.removeProperty("clip-path"):(u||(u=n9(Y,Y.KG,Ub(Y))),Y.Pz.style.clipPath='path("'+(Y.gL?RbB(Y,8,u,Y.N?50:36,0,6):RbB(Y,4,u,Y.N?34:24,2,3))+'")')}; RbB=function(Y,u,n,U,k,m){var X=n-U/2;n+=U/2;u+=k;return"M 0 "+k+" L 0 "+(u+" L ")+(X+" "+u+" C ")+(X+m+" "+u+" "+(X+m)+" "+k+" "+X+" "+k+" L 0 ")+(k+" M ")+(n+" "+k+" L ")+(Y.W+" "+k+" L ")+(Y.W+" "+u+" L ")+(n+" "+u+" C ")+(n-m+" "+u+" "+(n-m)+" "+k+" "+n+" "+k)}; Zs=function(Y,u,n,U,k){var m=Y.K.length,X=u.K-Y.MF*mN(Y),S=n*X;n=Sx(Y,S);var C=U*X;X=Sx(Y,C);k==="HOVER_PROGRESS"&&(X=Sx(Y,u.K*U,!0),C=u.K*U-Doe(Y,u.K*U)*mN(Y));U=Math.max(S-xoW(Y,n),0);for(S=n;S=Y.K.length)return Y.W;for(var n=0,U=0;U0||Y.lD.clientWidth>0?(m=u.clientWidth/n,Y=-1*Y.UD.clientWidth/n):(m/=n,Y=-1*Y.K[k].element.offsetLeft/n),g.yV(u,"background-size",m+"px"),g.yV(u,"background-position-x",Y+"px"))}; T7=function(Y,u,n,U,k){k||Y.api.Y().j?u.style.width=n+"px":g.yV(u,"transform","scalex("+(U?n/U:0)+")")}; Sx=function(Y,u,n){var U=0;(n===void 0?0:n)&&(u-=Doe(Y,u)*mN(Y));n=g.A(Y.K);for(var k=n.next();!k.done;k=n.next()){k=k.value;if(u>k.width)u-=k.width;else break;U++}return U===Y.K.length?U-1:U}; n9=function(Y,u,n){var U=u*Y.X.K*1E3;for(var k=-1,m=g.A(Y.K),X=m.next();!X.done;X=m.next())X=X.value,U>X.startTime&&X.width>0&&k++;U=k<0?0:k;k=n.K-mN(Y)*Y.MF;return u*k+mN(Y)*U+n.G}; Doe=function(Y,u){for(var n=Y.K.length,U=0,k=g.A(Y.K),m=k.next();!m.done;m=k.next())if(m=m.value,m.width!==0)if(u>m.width)u-=m.width,u-=mN(Y),U++;else break;return U===n?n-1:U}; g.wMW=function(Y,u,n,U){var k=Y.W!==n,m=Y.N!==U;Y.xa=u;Y.W=n;Y.N=U;$_(Y)&&(u=Y.j)!=null&&(u.scale=U?1.5:1);A_G(Y);Y.K.length===1&&(Y.K[0].width=n||0);k&&g.uC(Y);Y.j&&m&&$_(Y)&&(Y.j.isEnabled&&(n=Y.N?135:90,U=n-Na(Y),Y.Uc.style.height=n+"px",g.yV(Y.oV,"transform","translateY("+-U+"px)"),g.yV(Y.progressBar,"transform","translateY("+-U+"px)")),q4G(Y.j))}; Qb=function(Y){var u=!!Y.LT&&Y.api.getPresentingPlayerType()!==2,n=Y.clipStart,U=Y.clipEnd,k=!0,m=!0;u&&Y.LT?(n=Y.LT.startTimeMs/1E3,U=Y.LT.endTimeMs/1E3):(k=n>Y.X.j,m=Y.X.K>0&&UY.KG);g.PP(Y.Jr,"ytp-scrubber-button-hover",n===U&&Y.K.length>1);if(Y.api.V("web_player_heat_map_played_bar")){var m;(m=Y.G[0])!=null&&m.K.setAttribute("width",(u.j*100).toFixed(2)+"%")}}}; c_c=function(Y,u){var n=Y.CG[u];u=Y.eE[u];var U=Ub(Y),k=o8(Y.X,n.start/1E3,0),m=Alc(n,Y.N)/U.width;var X=o8(Y.X,n.end/1E3,1);m!==Number.POSITIVE_INFINITY&&(k=g.gS(k,0,X-m));X=Math.min(X,k+m);n.color&&(u.style.background=n.color);n=k;u.style.left=Math.max(n*U.K+U.G,0)+"px";T7(Y,u,g.gS((X-n)*U.K+U.G,0,U.width),U.width,!0)}; Weu=function(Y,u){var n=u.getId();Y.CG[n]===u&&(g.A5(Y.eE[n]),delete Y.CG[n],delete Y.eE[n])}; $_=function(Y){var u=g.KV(Y.api.Y())&&(Y.api.V("web_shorts_pip")||Y.api.V("web_watch_pip")),n;return!((n=Y.api.getVideoData())==null?0:n.isLivePlayback)&&!Y.api.isMinimized()&&!Y.api.isInline()&&(!Y.api.Z4()||!u)}; rB=function(Y){Y.j&&(Y.j.disable(),Y.dg=0,Y.oV.style.removeProperty("transform"),Y.progressBar.style.removeProperty("transform"),Y.Uc.style.removeProperty("height"),Y.element.parentElement&&Y.element.parentElement.style.removeProperty("height"))}; ebG=function(Y,u){var n=u/iC(Y)*Na(Y);g.yV(Y.progressBar,"transform","translateY("+-u+"px)");g.yV(Y.oV,"transform","translateY("+-u+"px)");g.yV(Y.Uc,"transform","translateY("+n+"px)");Y.Uc.style.height=u+n+"px";Y.element.parentElement&&(Y.element.parentElement.style.height=Na(Y)-n+"px")}; bZu=function(Y,u){u?Y.Z||(Y.element.removeAttribute("aria-disabled"),Y.Z=new g.ye(Y.progressBar,!0),Y.api.V("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&Y.Z.subscribe("hoverstart",Y.uDa,Y),Y.Z.subscribe("hovermove",Y.DRz,Y),Y.Z.subscribe("hoverend",Y.rRJ,Y),Y.Z.subscribe("dragstart",Y.qDq,Y),Y.Z.subscribe("dragmove",Y.Loq,Y),Y.Z.subscribe("dragend",Y.yRW,Y),Y.api&&Y.api.V("delhi_modern_web_player")&&Y.api.V("delhi_modern_web_player_cutout")&&(Y.tS=new g.ye(Y.progressBar, !0),Y.tS.subscribe("hoverstart",function(){Y.gL=!0;vOe(Y)},Y),Y.tS.subscribe("hoverend",function(){Y.gL=!1; vOe(Y)},Y)),Y.Y$=Y.listen("keydown",Y.ZP)):Y.Z&&(Y.element.setAttribute("aria-disabled","true"),Y.qR(Y.Y$),Y.Z.cancel(),Y.Z.dispose(),Y.Z=null)}; mN=function(Y){return Y.api.V("delhi_modern_web_player")?4:Y.N?3:2}; Ket=function(Y){var u;return!((u=Y.LT)==null||!u.postId)&&Y.api.getPresentingPlayerType()!==2}; Ma=function(Y,u){g.H.call(this,{D:"button",Oc:["ytp-remote-button","ytp-button"],T:{title:Y.V("player_tooltip_data_title_killswitch")?"Reproducir en el televisor":"","data-tooltip-title":"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},RV:"{{icon}}"});this.L=Y;this.jE=u;this.K=null;this.B(Y,"onMdxReceiversChange",this.QF);this.B(Y,"presentingplayerstatechange",this.QF);this.B(Y,"appresize",this.QF);Y.createClientVe(this.element,this,139118);this.QF();this.listen("click",this.j, this);HW(Y,this.element,this)}; sb=function(Y,u){g.H.call(this,{D:"button",Oc:["ytp-button","ytp-settings-button"],T:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":nw(),title:Y.V("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},U:[Y.V("delhi_modern_web_player_icons")?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.Kw()]});this.L=Y;this.jE=u;this.j=!0;this.listen("click",this.X);this.B(Y,"onPlaybackQualityChange",this.updateBadge);this.B(Y,"videodatachange",this.updateBadge);this.B(Y,"webglsettingschanged",this.updateBadge);this.B(Y,"appresize",this.K);HW(Y,this.element,this);this.L.createClientVe(this.element,this,28663);this.updateBadge();this.K(Y.tJ().getPlayerSize())}; IhW=function(Y,u){Y.j=!!u;Y.K(Y.L.tJ().getPlayerSize())}; dB=function(Y,u){L0.call(this,"Anotaciones",g.Da.xd);this.L=Y;this.jE=u;this.K=!1;Y.V("web_settings_menu_icons")&&(u=Y.V("delhi_modern_web_player_icons")?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(u));this.B(Y,"videodatachange",this.QF);this.B(Y,"onApiChange",this.QF);this.subscribe("select",this.onSelect,this);this.QF()}; G7=function(Y,u){g.gJ.call(this,"Pista de audio",g.Da.AUDIO,Y,u);this.L=Y;this.tracks={};g.UN(this.element,"ytp-audio-menu-item");this.countLabel=new g.H({D:"div",U:[{D:"span",RV:"Pista de audio"},{D:"span",C:"ytp-menuitem-label-count",RV:"{{content}}"}]});Y.V("web_settings_menu_icons")&&(u=Y.V("delhi_modern_web_player_icons")?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:KHW(),this.setIcon(u));g.b(this,this.countLabel);g.NA(this,this.countLabel);this.B(Y,"videodatachange",this.QF);this.B(Y,"onPlaybackAudioChange",this.QF);this.QF()}; Ah=function(Y,u){L0.call(this,"Reproducci\u00f3n autom\u00e1tica",g.Da.hA);this.L=Y;this.jE=u;this.K=!1;this.X=[];this.B(Y,"presentingplayerstatechange",this.j);this.subscribe("select",this.onSelect,this);Y.createClientVe(this.element,this,113682);this.j()}; zbG=function(Y,u){g.ic.call(this,g.Za({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.L=Y;this.jE=u;this.B(this.element,"click",this.onClick);this.jE.rD(this)}; gOt=function(Y,u){var n;g.KV(Y.Y())&&(n={D:"div",C:"ytp-panel-footer-content",U:[{D:"span",RV:"Ajusta la calidad de descarga en la "},{D:"a",C:"ytp-panel-footer-content-link",RV:"Configuraci\u00f3n",T:{href:"/account_downloads"}}]});g.gJ.call(this,"Calidad",g.Da.oW,Y,u,void 0,void 0,n);this.L=Y;this.jG={};this.Z={};this.G={};this.DW=new Set;this.K=this.W=!1;this.S="unknown";this.KG="";this.oV=new g.bD;g.b(this,this.oV);this.W=this.L.V("web_player_use_new_api_for_quality_pullback");this.K=this.L.V("web_player_enable_premium_hbr_playback_cap"); Y.V("web_settings_menu_icons")&&(u=Y.V("delhi_modern_web_player_icons")?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(u));g.UN(this.j.element,"ytp-quality-menu");this.B(Y,"videodatachange",this.Dx);this.B(Y,"videoplayerreset",this.Dx);this.B(Y,"onPlaybackQualityChange",this.g8);this.Dx();Y.createClientVe(this.element,this,137721)}; HZd=function(Y,u,n){var U=Y.jG[u],k=g.hn[u];return EOd(Y,U?U.qualityLabel:k?k+"p":"Autom\u00e1tica",u,n)}; y_G=function(Y,u,n,U,k){var m=(u=Y.K?Y.G[u]:Y.Z[u])&&u.quality,X=u&&u.qualityLabel;X=X?X:"Autom\u00e1tica";U&&(X="("+X);Y=EOd(Y,X,m||"",k);U&&Y.U.push(")");(U=(U=u&&u.paygatedQualityDetails)&&U.paygatedIndicatorText)&&n&&Y.U.push({D:"div",C:"ytp-premium-label",RV:U});return Y}; EOd=function(Y,u,n,U){u={D:"span",Oc:U,U:[u]};var k;U="ytp-swatch-color";if(Y.W||Y.K)U="ytp-swatch-color-white";n==="highres"?k="8K":n==="hd2880"?k="5K":n==="hd2160"?k="4K":n.indexOf("hd")===0&&n!=="hd720"&&(k="HD");k&&(u.U.push(" "),u.U.push({D:"sup",C:U,RV:k}));return u}; jx=function(Y){gi.call(this,Y.getAvailablePlaybackRates()[0],Y.getAvailablePlaybackRates()[Y.getAvailablePlaybackRates().length-1],.05,Y.getPlaybackRate(),{D:"div",C:"ytp-speedslider-indicator-container",U:[{D:"div",C:"ytp-speedslider-badge"},{D:"p",C:"ytp-speedslider-text"}]});this.L=Y;this.KG=W_(this.jG,50,this);g.UN(this.j,"ytp-speedslider");this.N=this.Xk("ytp-speedslider-text");this.oV=this.Xk("ytp-speedslider-badge");VDS(this);this.B(this.j,"change",this.DW)}; VDS=function(Y){Y.N.textContent=Y.K.toFixed(2)+"x";var u=Y.K>2&&Y.L.V("enable_web_premium_varispeed");Y.oV.classList.toggle("ytp-speedslider-premium-badge",u);Y.oV.setAttribute("aria-label",u?"Premium":"")}; K9=function(Y,u,n,U,k,m,X){g.H.call(this,{D:"div",C:"ytp-slider-section",T:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{D:"div",C:"ytp-slider",U:[{D:"div",C:"ytp-slider-handle"}]}]});this.Z=Y;this.N=u;this.j=n;this.X=U;this.KG=k;this.rg=m;this.range=this.X-this.j;this.MF=this.Xk("ytp-slider-section");this.G=this.Xk("ytp-slider");this.oV=this.Xk("ytp-slider-handle");this.S=new g.ye(this.G, !0);this.K=X?X:n;g.b(this,this.S);this.S.subscribe("dragmove",this.Ed,this);this.B(this.element,"keydown",this.cI);this.B(this.element,"wheel",this.eJ);this.init()}; p9=function(Y){K9.call(this,.05,.05,Y.getAvailablePlaybackRates()[0],Y.getAvailablePlaybackRates()[Y.getAvailablePlaybackRates().length-1],150,20,Y.getPlaybackRate());this.L=Y;this.W=g.rh("P");this.DW=W_(this.jG,50,this);g.UN(this.G,"ytp-speedslider");g.UN(this.W,"ytp-speedslider-text");Y=this.W;var u=this.G;u.parentNode&&u.parentNode.insertBefore(Y,u.nextSibling);OZA(this);this.B(this.L,"onPlaybackRateChange",this.updateValues)}; OZA=function(Y){Y.W.textContent=FeB(Y,Y.K)+"x"}; FeB=function(Y,u){Y=Number(g.gS(u,Y.j,Y.X).toFixed(2));u=Math.floor((Y+.001)*100%5+2E-15);var n=Y;u!==0&&(n=Y-u*.01);return Number(n.toFixed(2))}; J_e=function(Y){g.XV.call(this,{D:"div",C:"ytp-speedslider-component"});Y.V("web_settings_use_input_slider")?this.K=new jx(Y):this.K=new p9(Y);g.b(this,this.K);this.element.appendChild(this.K.element)}; q3c=function(Y){var u=new J_e(Y);vR.call(this,Y,u,"Personalizada");g.b(this,u)}; $oY=function(Y,u){var n=new q3c(Y);g.gJ.call(this,"Velocidad de reproducci\u00f3n",g.Da.h5,Y,u,L9(Y)?void 0:"Personalizada",L9(Y)?void 0:function(){g.lg(u,n)}); var U=this;this.G=!1;g.b(this,n);this.Z=new jx(Y);g.b(this,this.Z);if(Y.V("web_settings_menu_icons")){var k=Y.V("delhi_modern_web_player_icons")?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{D:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(k)}this.L=Y;this.G=!1;this.oV=null;L9(Y)?(this.K=g.UR("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.L.getPlaybackRate().toString()}),this.S=this.L.getPlaybackRate()):this.S=this.K=null;ahe(Y)?this.W=th(4):this.W=null;this.KG=this.L.getAvailablePlaybackRates();this.B(Y,"presentingplayerstatechange",this.QF);var m;((m=this.L.getVideoData())==null?0:m.u6())&&this.B(Y,"serverstitchedvideochange",this.QF);this.B(this.Z.j,"change",function(){U.G=!0;U.QF()}); this.QF()}; YGe=function(Y,u){var n=th(u);Y.K&&(Y.G||u===Y.S)?(Y.ww(Y.K),Y.dD(u.toString())):Y.ww(n)}; nMu=function(Y){var u=Y.KG.map(th);Y.W&&u.push(Y.W);Y.UT(u);Y.K=null;Y.S=null;u=Y.L.getPlaybackRate();L9(Y.L)&&uqY(Y,u);!Y.KG.includes(u)||Y.G?Y.ww(Y.K):Y.ww(th(u))}; uqY=function(Y,u){Y.S=u;Y.K=g.UR("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:u.toString()});u=Y.KG.map(th);u.unshift(Y.K);Y.W&&u.push(Y.W);Y.UT(u)}; U$M=function(Y,u,n,U){n=new g.ic({D:"div",Oc:["ytp-menuitem"],T:{tabindex:"0",role:"menuitemradio","aria-checked":U?"true":"false"},U:[{D:"div",Oc:["ytp-menuitem-label"],U:[{D:"div",Oc:["ytp-menuitem-container-with-badge"],U:[{D:"div",RV:"{{label}}"},{D:"div",Oc:["ytp-menuitem-premium-badge"]}]}]}]},n,Y.zg(u));n.listen("click",function(){Y.aC(u)}); return n}; th=function(Y){return Y.toString()}; L9=function(Y){return Y.V("web_settings_menu_surface_custom_playback")}; ahe=function(Y){return Y.V("enable_web_premium_varispeed_upsell")&&Y.getAvailablePlaybackRates()[Y.getAvailablePlaybackRates().length-1]<=2}; kJm=function(Y){return Y.V("web_settings_menu_surface_custom_playback")&&Y.V("web_settings_use_input_slider")}; X$e=function(Y,u,n,U){var k=new g.Rn(u,void 0,"Anulaci\u00f3n de video");g.gJ.call(this,U.text||"",Y,u,n,"Anulaci\u00f3n de video",function(){g.lg(n,k)}); var m=this;g.UN(this.element,"ytp-subtitles-options-menu-item");this.setting=U.option.toString();Y=U.options;this.settings=g.qX(Y,this.Mp,this);this.W=k;g.b(this,this.W);u=new g.ic({D:"div",C:"ytp-menuitemtitle",RV:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.b(this,u);this.W.rD(u,!0);this.G=new g.ic({D:"div",C:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},U:[{D:"div",C:"ytp-menuitem-label",RV:"S\u00ed"}]},-1);g.b(this,this.G);this.W.rD(this.G, !0);this.B(this.G.element,"click",function(){m$W(m,!0)}); this.K=new g.ic({D:"div",C:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},U:[{D:"div",C:"ytp-menuitem-label",RV:"No"}]},-2);g.b(this,this.K);this.W.rD(this.K,!0);this.B(this.K.element,"click",function(){m$W(m,!1)}); this.UT(g.dA(Y,this.Mp))}; m$W=function(Y,u){Y.publish("settingChange",Y.setting+"Override",!u);Y.jE.Ya()}; BJ=function(Y,u){g.Rn.call(this,Y,void 0,"Opciones");var n=this;this.EF={};for(var U=0;U=0);if(!(u<0||u===Y.G)){Y.G=u;u=243*Y.scale;var n=141*Y.scale,U=qt0(Y.j,Y.G,u);KAm(Y.bg,U,u,n,!0);Y.oV.start()}}; ljd=function(Y){var u=Y.K;Y.type===3&&Y.jG.stop();Y.api.removeEventListener("appresize",Y.KG);Y.Z||(Y.env.V("player_tooltip_data_title_killswitch")?u.setAttribute("title",Y.X):u.setAttribute("data-tooltip-title",Y.X));Y.X="";Y.K=null;Y.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});Y.wrapper.style.width=""}; w$0=function(Y){g.H.call(this,{D:"button",Oc:["ytp-watch-later-button","ytp-button"],T:{title:Y.V("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.nV(Y.Y()))},U:[{D:"div",C:"ytp-watch-later-icon",RV:"{{icon}}"},{D:"div",C:"ytp-watch-later-title",RV:"Ver m\u00e1s tarde"}]});this.L=Y;this.icon=null;this.visible=this.isRequestPending=this.K=!1;BgG(Y);Y.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.B(Y,"videoplayerreset",this.onReset);this.B(Y,"appresize",this.a6);this.B(Y,"videodatachange",this.a6);this.B(Y,"presentingplayerstatechange",this.a6);this.a6();Y=this.L.Y();var u=g.ck("yt-player-watch-later-pending");Y.G&&u?(apB(),hl7(this)):this.QF(2);g.PP(this.element,"ytp-show-watch-later-title",g.nV(Y));HW(this.L,this.element,this)}; WyA=function(Y){var u=Y.L.getPlayerSize(),n=Y.L.Y(),U=Y.L.getVideoData(),k=g.nV(n)&&g.qD(Y.L)&&g.V(Y.L.getPlayerStateObject(),128),m=n.X;return n.kQ&&u.width>=240&&!U.isAd()&&U.kQ&&!k&&!U.sD&&!Y.L.isEmbedsShortsMode()&&!m}; elA=function(Y,u){WIS(g.sg(Y.L.Y()),"wl_button",function(){apB({videoId:u});window.location.reload()})}; hl7=function(Y){if(!Y.isRequestPending){Y.isRequestPending=!0;Y.QF(3);var u=Y.L.getVideoData();u=Y.K?u.removeFromWatchLaterCommand:u.addToWatchLaterCommand;var n=Y.L.LF(),U=Y.K?function(){Y.K=!1;Y.isRequestPending=!1;Y.QF(2);Y.L.Y().Z&&Y.L.Yw("WATCH_LATER_VIDEO_REMOVED")}:function(){Y.K=!0; Y.isRequestPending=!1;Y.QF(1);Y.L.Y().j&&Y.L.mf(Y.element);Y.L.Y().Z&&Y.L.Yw("WATCH_LATER_VIDEO_ADDED")}; vD(n,u).then(U,function(){Y.isRequestPending=!1;Y.QF(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");Y.L.Y().Z&&Y.L.Yw("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; bsY=function(Y,u){if(u!==Y.icon){switch(u){case 3:var n=vO();break;case 1:n=Qd();break;case 2:n={D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:n={D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path", au:!0,T:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}Y.updateValue("icon",n);Y.icon=u}}; Ij7=function(){g.nW.apply(this,arguments);this.Mq=(this.y$=g.nV(this.api.Y()))&&(this.api.Y().j||Jk()||OU());this.fK=48;this.Rv=69;this.L3=this.yu=null;this.zP=[];this.qv=this.Gf=this.uq=this.Yg=this.W4=null;this.uC=[];this.contextMenu=this.Ck=this.overflowButton=this.hV=this.Qj=this.searchButton=this.copyLinkButton=this.shareButton=this.Kd=this.yj=this.title=this.channelAvatar=this.LC=this.tooltip=null;this.cA=!1;this.I9=this.kZ=this.YW=this.vp=null;this.gRZ=this.j1=this.yR=!1}; zlG=function(Y){var u=Y.api.Y(),n=g.V(Y.api.getPlayerStateObject(),128);return u.G&&n&&!Y.api.isFullscreen()}; gMB=function(Y){if(Y.WW()&&!Y.api.isEmbedsShortsMode()&&Y.hV){var u=Y.api.V("web_player_hide_overflow_button_if_empty_menu");!Y.Kd||u&&!WyA(Y.Kd)||b7m(Y.hV,Y.Kd);!Y.shareButton||u&&!UU0(Y.shareButton)||b7m(Y.hV,Y.shareButton);!Y.copyLinkButton||u&&!YkW(Y.copyLinkButton)||b7m(Y.hV,Y.copyLinkButton)}else{u=Y.api.Y().getWebPlayerContextConfig();if(Y.hV){for(var n=Y.hV,U=g.A(n.actionButtons),k=U.next();!k.done;k=U.next())k.value.detach();n.actionButtons=[]}Y.searchButton&&!g.jw(Y.yj.element,Y.searchButton.element)&& Y.searchButton.yF(Y.yj.element);!Y.Kd||(u==null?0:u.hideTopWatchNextButton)||g.jw(Y.yj.element,Y.Kd.element)||Y.Kd.yF(Y.yj.element);!Y.shareButton||(u==null?0:u.hideTopShareButton)||g.jw(Y.yj.element,Y.shareButton.element)||Y.shareButton.yF(Y.yj.element);Y.copyLinkButton&&!g.jw(Y.yj.element,Y.copyLinkButton.element)&&Y.copyLinkButton.yF(Y.yj.element)}}; EMS=function(Y,u,n){u=n?u.lastElementChild:u.firstElementChild;for(var U=null;u;){if(F8(u,"display")!=="none"&&u.getAttribute("aria-hidden")!=="true"){var k=void 0;u.tabIndex>=0?k=u:k=EMS(Y,u,n);k&&(U?n?k.tabIndex>U.tabIndex&&(U=k):k.tabIndexU/1E3+1)return{msg:"in-the-past"};if(m.isLivePlayback&&!isFinite(U))return{msg:"live-infinite"};(U=u.wD())&&U.isView()&&(U=U.mediaElement);if(U&&U.h1().length>12&&g.yf(k))return{msg:"played-ranges"};if(!k.X)return null;if(!X)return{msg:"no-pvd-formats"};if(!k.X.K||!X.K)return{msg:"non-dash"};U=X.videoInfos[0];var S=k.X.videoInfos[0];Y.KG&&c2(m)&&(U=u.g_(), S=n.g_());if(!U||!S)return{msg:"no-video-info"};if(Y.W&&(yg(U)||yg(S)))return{msg:"av1"};u=Y.G&&m.Oe()&&Tu();if(S.containerType!==U.containerType)if(u)m.fG("sgap",{ierr:"container"});else return{msg:"container"};if(Y.J&&!u&&(S.aV!==U.aV||S.aV===""||U.aV===""))return{msg:"codec"};if(Y.S&&S.video&&U.video&&Math.abs(S.video.width/S.video.height-U.video.width/U.video.height)>.01)return{msg:"ratio"};if(g.yf(m)&&g.yf(k))return{msg:"content-protection"};X=X.K[0];k=k.X.K[0];n=X.audio;var C=k.audio;if(n.sampleRate!== C.sampleRate&&!g.sP)if(u)m.fG("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:X.itag,cr:n.sampleRate,ni:k.itag,nr:C.sampleRate};return(n.numChannels||2)!==(C.numChannels||2)?{msg:"channel-count"}:Y.Z&&m.Oe()&&U.video.fps!==S.video.fps?{msg:"fps"}:null}; Os7=function(Y,u,n){var U=Y.getVideoData(),k=u.getVideoData();if(!U.Y().supportsGaplessShorts())return{nq:"env"};if((!n.N||U.zE&&!U.isAd()||k.zE&&!k.isAd())&&(!n.j||U.zE&&!U.isAd()||k.zE)&&(!n.X||k.zE&&!k.isAd()||U.zE)&&(U.zE||k.zE))return{nq:"autoplay"};if(U.endSeconds>0)return{nq:"endcr"};if(!U.S)return{nq:"client"};if(!Y.IM())return{nq:"no-empty"};Y=VTt(n,Y,u,Infinity);return Y!=null?{nq:Y.msg}:null}; HJ=function(Y){g.e.call(this);this.app=Y;this.J=this.G=this.j=this.K=null;this.X=1;this.events=new g.j3(this);this.events.B(this.app.Bz,g.Vk("gaplessshortslooprange"),this.Z);g.b(this,this.events)}; Fyd=function(){this.K=this.S=this.X=this.j=this.N=this.W=this.KG=this.Z=this.J=this.G=!1}; JNB=function(Y){var u=new Fyd;u.G=Y.V("h5_gapless_support_types_diff");u.Z=Y.V("h5_gapless_error_on_fps_diff");u.KG=Y.V("html5_gapless_use_format_info_fix");u.W=Y.V("html5_gapless_disable_on_av1")&&!Y.V("html5_gapless_enable_on_av1");u.J=Y.V("html5_gapless_check_codec_diff_strictly");u.N=Y.V("html5_gapless_on_ad_autoplay");u.S=Y.V("html5_gapless_disable_diff_aspect_radio");u.j=Y.V("html5_gapless_ad_autoplay_on_ad_to_video_only");u.K=Y.V("html5_pseudogapless_shorts_seek_to_next_start");u.X=Y.V("html5_gapless_ad_autoplay_on_video_to_ad_only"); return u}; g.yb=function(Y,u,n,U){U=U===void 0?!1:U;to.call(this);this.mediaElement=Y;this.start=u;this.end=n;this.K=U}; qGM=function(Y,u,n,U,k,m){m=m===void 0?0:m;g.e.call(this);var X=this;this.policy=Y;this.K=u;this.j=n;this.W0=k;this.J=m;this.G=this.X=null;this.currentVideoDuration=this.W=-1;this.S=!1;this.Fy=new Lh;this.QO=U-u.iN()*1E3;this.Fy.then(void 0,function(){}); this.timeout=new g.Vp(function(){X.YQ("timeout")},1E4); g.b(this,this.timeout);this.Z=isFinite(U)||this.W0.Y().experiments.vz("html5_pseudogapless_shorts")&&c2(u.getVideoData());this.status={status:0,error:null}}; $$e=function(Y){var u,n,U,k,m,X,S,C,f;return g.l(function(Q){if(Q.j==1){if(Y.gg())return Q.return(Promise.reject(Error(Y.status.error||"disposed")));Y.timeout.start();return g.D(Q,Y.Fy,2)}u=Y.K.wD();if(u.isEnded())return Y.YQ("ended_in_finishTransition"),Q.return(Promise.reject(Error(Y.status.error||"")));if(!Y.G||!db(Y.G))return Y.YQ("next_mse_closed"),Q.return(Promise.reject(Error(Y.status.error||"")));if(Y.j.KY()!==Y.G)return Y.YQ("next_mse_mismatch"),Q.return(Promise.reject(Error(Y.status.error|| "")));n=Vb(Y);U=n.rr;k=n.qf;m=n.Nh;Y.K.bE(!1,!0);X=ajS(u,U,m,!Y.j.getVideoData().isAd());Y.j.setMediaElement(X);(S=Y.K.o8())&&Y.j.yc(S.pR,S.zk);Y.Z&&(Y.policy.K||Y.j.seekTo(Y.j.getCurrentTime()+.001,{Dl:!0,hN:3,L0:"gapless_pseudo"}),X.play(),oo());C=u.Tw();C.cpn=Y.K.getVideoData().clientPlaybackNonce;C.st=""+U;C.et=""+m;Y.j.fG("gapless",C);Y.K.fG("gaplessTo",{cpn:Y.j.getVideoData().clientPlaybackNonce});f=Y.K.getPlayerType()===Y.j.getPlayerType();Y.K.XF(k,!0,!1,f,Y.j.getVideoData().clientPlaybackNonce); Y.j.XF(Y.j.getCurrentTime(),!0,!0,f,Y.K.getVideoData().clientPlaybackNonce);Y.j.cF();g.KH(function(){!Y.j.getVideoData().oV&&Y.j.getPlayerState().isOrWillBePlaying()&&Y.j.Hw()}); Ob(Y,6);Y.dispose();return Q.return(Promise.resolve())})}; Upc=function(Y){if(Y.j.getVideoData().X){var u=Y.W0.Y().V("html5_gapless_suspend_next_loader")&&Y.J===1;Y.j.R6(Y.G,u,YBm(Y));Ob(Y,3);uWG(Y);var n=nxm(Y);u=n.SV;n=n.jm;u.subscribe("updateend",Y.DU,Y);n.subscribe("updateend",Y.DU,Y);Y.DU(u);Y.DU(n)}}; uWG=function(Y){Y.K.unsubscribe("internalvideodatachange",Y.N$,Y);Y.j.unsubscribe("internalvideodatachange",Y.N$,Y);Y.W0.Y().V("html5_gapless_use_format_info_fix")&&(Y.K.unsubscribe("internalvideoformatchange",Y.N$,Y),Y.j.unsubscribe("internalvideoformatchange",Y.N$,Y));Y.K.unsubscribe("mediasourceattached",Y.N$,Y);Y.j.unsubscribe("statechange",Y.Iy,Y)}; ajS=function(Y,u,n,U){Y=Y.isView()?Y.mediaElement:Y;return new g.yb(Y,u,n,U)}; Ob=function(Y,u){u<=Y.status.status||(Y.status={status:u,error:null},u===5&&Y.Fy.resolve())}; YBm=function(Y){return Y.W0.Y().V("html5_gapless_no_clear_buffer_timeline")&&Y.J===1&&xR(Y.K.getVideoData())}; Vb=function(Y){var u=Y.K.wD();u=u.isView()?u.start:0;var n=Y.K.getVideoData().isLivePlayback?Infinity:Y.K.u4(!0);n=Math.min(Y.QO/1E3,n)+u;var U=Y.Z?100:0;Y=n-Y.j.GE()+U;return{u7:u,rr:Y,qf:n,Nh:Infinity}}; nxm=function(Y){return{SV:Y.X.K.aH,jm:Y.X.j.aH}}; F1=function(Y){g.e.call(this);var u=this;this.app=Y;this.W=this.j=this.K=null;this.Z=!1;this.X=this.G=null;this.J=JNB(this.app.Y());this.S=function(){g.KH(function(){kXc(u)})}}; mpA=function(Y,u,n,U,k){U=U===void 0?0:U;k=k===void 0?0:k;Y.IM()||Jh(Y);Y.G=new Lh;Y.K=u;var m=n,X=k===0;X=X===void 0?!0:X;var S=Y.app.wg(),C=S.getVideoData().isLivePlayback?Infinity:S.u4(!0)*1E3;m>C&&(m=C-200,Y.Z=!0);X&&S.getCurrentTime()>=m/1E3?Y.S():(Y.j=S,X&&(X=m,m=Y.j,Y.app.Bz.addEventListener(g.yk("vqueued"),Y.S),X=isFinite(X)||X/1E3>m.getDuration()?X:0x8000000000000,Y.W=new g.EE(X,0x8000000000000,{namespace:"vqueued"}),m.addCueRange(Y.W)));X=U/=1E3;m=u.getVideoData().K;U&&m&&Y.j&&(S=U,C=0, u.getVideoData().isLivePlayback&&(X=Math.min(n/1E3,Y.j.u4(!0)),C=Math.max(0,X-Y.j.getCurrentTime()),S=Math.min(U,u.u4()+C)),X=DZt(m,S)||U,X!==U&&Y.K.fG("qvaln",{st:U,at:X,rm:C,ct:S}));u=X;U=Y.K;U.getVideoData().xa=!0;U.getVideoData().S=!0;U.Xo(!0);m={};Y.j&&(m=Y.j.jl(),X=Y.j.getVideoData().clientPlaybackNonce,m={crt:(m*1E3).toFixed(),cpn:X});U.fG("queued",m);u!==0&&U.seekTo(u+.01,{Dl:!0,hN:3,L0:"videoqueuer_queued"});Y.X=new qGM(Y.J,Y.app.wg(),Y.K,n,Y.app,k);n=Y.X;n.status.status!==Infinity&&(Ob(n, 1),n.K.subscribe("internalvideodatachange",n.N$,n),n.j.subscribe("internalvideodatachange",n.N$,n),n.W0.Y().V("html5_gapless_use_format_info_fix")&&(n.K.subscribe("internalvideoformatchange",n.N$,n),n.j.subscribe("internalvideoformatchange",n.N$,n)),n.K.subscribe("mediasourceattached",n.N$,n),n.j.subscribe("statechange",n.Iy,n),n.K.subscribe("newelementrequired",n.Oa,n),n.N$());return Y.G}; kXc=function(Y){var u,n,U,k,m,X,S;g.l(function(C){switch(C.j){case 1:if(Y.gg()||!Y.G||!Y.K)return C.return();Y.Z&&Y.app.wg().q5(!0,!1);u=null;if(!Y.X){C.qF(2);break}g.pY(C,3);return g.D(C,$$e(Y.X),5);case 5:g.Bc(C,2);break;case 3:u=n=g.vc(C);case 2:if(!Y.K)return C.return();X8e.Q6("vqsp",function(){Y.app.fL(Y.K)}); if(!Y.K)return C.return();U=Y.K.wD();Y.app.Y().V("html5_gapless_seek_on_negative_time")&&U&&U.getCurrentTime()<-.01&&Y.K.seekTo(0);X8e.Q6("vqpv",function(){Y.app.playVideo()}); u&&(Y.K?(k=u?u.message:"forced",(m=Y.j)==null||m.fG("gapfulfbk",{r:k}),Y.K.XO(k)):(X=Y.j)==null||X.fG("gapsp",{}));S=Y.G;Jh(Y);S&&S.resolve();return C.return(Promise.resolve())}})}; Jh=function(Y,u){u=u===void 0?!1:u;if(Y.j){if(Y.W){var n=Y.j;Y.app.Bz.removeEventListener(g.yk("vqueued"),Y.S);n.removeCueRange(Y.W)}Y.j=null;Y.W=null}Y.X&&(Y.X.status.status!==6&&(n=Y.X,n.status.status!==Infinity&&n.J!==1&&n.YQ("Canceled")),Y.X=null);Y.G=null;Y.K&&!u&&Y.K!==Y.app.fT()&&Y.K!==Y.app.wg()&&Y.K.dispose();Y.K&&u&&Y.K.Xy();Y.K=null;Y.Z=!1}; PPu=function(Y){var u;return((u=Y.X)==null?void 0:u.currentVideoDuration)||-1}; SBe=function(Y,u,n){if(Y.IM())return"qie";if(Y.K==null||Y.K.gg()||Y.K.getVideoData()==null)return"qpd";if(u.videoId!==Y.K.l8())return"vinm";if(PPu(Y)<=0)return"ivd";if(n!==1)return"upt";if((n=Y.X)==null)Y=void 0;else if(n.getStatus().status!==5)Y="niss";else if(VTt(n.policy,n.K,n.j,n.QO)!=null)Y="pge";else{u=nxm(n);Y=u.SV;var U=u.jm;u=g.YF(n.W0.Y().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var k=n.W+u;n.W0.Y().experiments.vz("html5_pseudogapless_shorts")&&(k=Vb(n).rr+u);n=XT(U.v4(), k);Y=XT(Y.v4(),k);Y=!(u>0)||n&&Y?null:"neb"}return Y!=null?Y:null}; CPu=function(){g.ud.call(this);var Y=this;this.fullscreen=0;this.G=this.X=this.pictureInPicture=this.K=this.j=this.inline=!1;this.J=function(){Y.ke()}; Qzu(this.J);this.W=this.getVisibilityState(this.R_(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Z4(),this.t3(),this.fR(),this.OP())}; ZOu=function(Y){return!(Y.isMinimized()||Y.isInline()||Y.isBackground()||Y.Z4()||Y.t3()||Y.fR()||Y.OP())}; g.qa=function(Y){g.e.call(this);this.xw=Y;this.videoData=this.playerState=null}; YG=function(Y,u){g.e.call(this);var n=this;this.data=[];this.X=Y||NaN;this.j=u||null;this.K=new g.Vp(function(){a4(n);$f(n)}); g.b(this,this.K)}; cR0=function(Y){a4(Y);return Y.data.map(function(u){return u.value})}; a4=function(Y){var u=(0,g.j2)();Y.data.forEach(function(n){n.expire0));Y.gX()&& UDe();Error.stackTraceLimit=50;var k=g.YF(u,"html5_idle_rate_limit_ms");k&&Object.defineProperty(window,"requestIdleCallback",{value:function(m){return window.setTimeout(m,k)}}); YJ0(Y.J);weM(n("html5_use_ump_request_slicer"));QsW(n("html5_record_now"));n("html5_disable_streaming_xhr")&&(GN=!1);n("html5_byterate_constraints")&&(v5=!0);n("html5_use_non_active_broadcast_for_post_live")&&(M2=!0);n("html5_enable_encrypted_av1")&&(EP=!0);OT0(g.YF(Y.experiments,"html5_sticky_duration_mos"))}; rKG=function(Y,u){return Y.slice(u.length).replace(/_[a-z]/g,function(n){return n.toUpperCase().replace("_","")}).replace("Dot",".")}; M7Y=function(Y){var u={},n=Object.keys(Y.experiments.flags);n=g.A(n);for(var U=n.next();!U.done;U=n.next())if(U=U.value,U.startsWith("cobalt_h5vcc"))if(U.startsWith("cobalt_h5vcc_string")){var k=rKG(U,"cobalt_h5vcc_string");U=AB(Y.experiments,U);k&&U&&(u[k]=u0Y(k,U))}else U.startsWith("cobalt_h5vcc")&&(k=rKG(U,"cobalt_h5vcc"),U=g.YF(Y.experiments,U),k&&U&&(u[k]=u0Y(k,U)));return u}; dpA=function(Y,u,n,U){U=U===void 0?0:U;g.PO.call(this,n.TL());var k=this;this.FD=Y;this.videoData=u;this.duration=U;this.K=this.startTimeSecs=0;this.j=new syG(function(m,X){return void k.fG(m,X)})}; syG=function(Y){this.fG=Y;this.K={}}; GXM=function(Y,u,n){Y.K[u]||(Y.fG("huli-sdai-err",n),Y.K[u]=!0)}; AKG=function(Y){this.end=this.start=Y}; g.ml=function(){this.K=new Map;this.X=new Map;this.j=new Map}; jy0=function(Y){var u=this;this.xw=Y;this.K=[];this.X=new Map;this.G=new Map;this.j=new Map;this.IH={wW:function(){return u.X}, S12:function(){return u.G}}; this.J=this.xw.V("html5_huli_ssdai_deprecate_playback_timeline_id")}; p8u=function(Y,u){g.FG(Y.K,u,function(n,U){return n.f0===U.f0?n.durationMs-U.durationMs:n.f0-U.f0}); Y.X.set(u.cpn,u);u.Gc&&!Y.J&&Y.G.set(u.Gc,u);u.Tg&&K6d(Y,u.Tg,u)}; L6S=function(Y,u){for(var n=[],U=g.A(Y.K),k=U.next();!k.done;k=U.next())k=k.value,u(k)||n.push(k);if(Y.xw.V("html5_sstm_fixes"))for(U=g.A(Y.K),k=U.next();!k.done;k=U.next())k=k.value,u(k)&&(Y.X.delete(k.cpn),k.Gc&&Y.G.delete(k.Gc));Y.K=n}; t7W=function(Y,u){u=g.g$(Y.K,{Ks:u},function(n,U){return n.Ks-U.Ks}); return u>=0?Y.K[u]:null}; BvY=function(Y,u){var n=Y.K.indexOf(u);n>=0&&Y.K.splice(n,1);Y.X.delete(u.cpn);u.Gc&&Y.G.delete(u.Gc)}; K6d=function(Y,u,n){var U=Y.j.get(u);U?(U.push(n),g.VC(U,function(k,m){return k.f0-m.f0})):Y.j.set(u,[n])}; g.XB=function(Y,u,n,U){g.e.call(this);var k=this;this.api=Y;this.xw=u;this.playback=n;this.app=U;this.oV=new g.ml;this.j=new Map;this.rg=new Map;this.DW=null;this.Iu=NaN;this.dg=this.Uc=null;this.Pz=new g.Vp(function(){oxd(k,k.Iu,k.Uc||void 0)}); this.events=new g.j3(this);this.CG=15E3;this.S=new g.Vp(function(){k.Z=!0;k.playback.Fi(k.CG);cKS(k);if(k.playback.getVideoData().u6()){var m;k.bN({togab:(m=k.W)==null?void 0:m.identifier})}k.GP(!1)},this.CG); this.Z=!1;this.J=new Map;this.Fk=[];this.W=null;this.Ub=new Set;this.N=[];this.zZ=[];this.CT=[];this.Gw=[];this.MF=new Set;this.N2=0;this.KG=!1;this.lN=new Set;this.eE=new Set;this.Qm=new Set;this.TZ=new Set;this.nT=this.z0=0;this.xl=this.Ru=!1;this.EX=this.G="";this.jG=null;this.logger=new g.jW("dai");this.IH={g5k:function(){return k.j}, wW:function(){return k.K.IH.wW()}, ShG:function(){return k.G}, jF2:function(m){k.onCueRangeEnter(k.j.get(m))}, DOF:function(m){k.onCueRangeExit(k.j.get(m))}, vgc:function(m,X){k.j.set(m,X)}, mxF:function(m){k.EX=m}, IX:function(){return k.IX()}, V3F:function(m){return k.K.j.get(m)}, VnF:function(){return k.jG}, JIZ:function(){return k.K.K}}; this.playback.getPlayerType();this.K=new jy0(this.xw);this.playback.tf(this);this.JJ=this.xw.gX();g.b(this,this.Pz);g.b(this,this.events);g.b(this,this.S);this.events.B(this.api,g.yk("serverstitchedcuerange"),this.onCueRangeEnter);this.events.B(this.api,g.Vk("serverstitchedcuerange"),this.onCueRangeExit);kG(this.app.Dy(),this.playback,!1)}; l6t=function(Y,u,n,U,k,m,X,S){var C=vxB(Y,m,m+k);Y.Z&&Y.bN({adaftto:1});n||Y.bN({missadcon:1,enter:m,len:k,aid:S});Y.X&&!Y.X.q4&&(Y.X.q4=S);Y.xl&&Y.bN({adfbk:1,enter:m,len:k,aid:S});var f=Y.playback;m>X&&P9(Y,{reason:"enterTime_greater_than_return",f0:m,Ks:X});var Q=f.zc()*1E3;mf&&P9(Y,{reason:"parent_return_greater_than_content_duration",Ks:X,MLZ:f});(f=t7W(Y.K,m))&&f.Ks>m&&R4m(Y,u.video_id||"", m,X,f);if(C&&f)for(Q=0;Q=0)for(var k=u*1E3,m=U;m<=U+1&&m=X.f0-n*1E3&&k<=X.Ks+n*1E3)return{UC:X,YI:u}}return{UC:void 0,YI:u}}; blc=function(Y,u){var n="";(u=W6Y(Y,u))&&(n=u.getId());return n?Y.K.AR({cpn:n}):void 0}; W6Y=function(Y,u){if(Y.EX){var n=Y.j.get(Y.EX);if(n&&n.start-200<=u&&n.end+200>=u)return n}Y=g.A(Y.j.values());for(n=Y.next();!n.done;n=Y.next())if(n=n.value,n.start<=u&&n.end>=u)return n}; oxd=function(Y,u,n){var U=Y.dg||Y.app.wg().getPlayerState();fd(Y,!0);Y.playback.seekTo(u,n);Y=Y.app.wg();u=Y.getPlayerState();U.isOrWillBePlaying()&&!u.isOrWillBePlaying()?Y.playVideo():U.isPaused()&&!u.isPaused()&&Y.pauseVideo()}; fd=function(Y,u){Y.Iu=NaN;Y.Uc=null;Y.Pz.stop();Y.DW&&u&&Y.DW.G$();Y.dg=null;Y.DW=null}; yKt=function(Y){var u=u===void 0?-1:u;var n=n===void 0?Infinity:n;Ex7(Y,u,n);for(var U=g.A(Y.j.values()),k=U.next();!k.done;k=U.next())k=k.value,k.start>=u&&k.end<=n&&(Y.playback.removeCueRange(k),Y.j.delete(k.getId()),Y.bN({rmAdCR:1}));U=Cd(Y,u/1E3);u=U.UC;U=U.YI;u&&(U=U*1E3-u.f0,Hlt(Y,u,U,u.f0+U),U=Y.j.get(u.cpn))&&(U.start=u.f0,U.end=u.f0+u.durationMs);if(u=Cd(Y,n/1E3).UC){var m;U="playback_timelinePlaybackId_"+u.Gc+"_video_id_"+((m=u.videoData)==null?void 0:m.videoId)+"_durationMs_"+u.durationMs+ "_enterTimeMs_"+u.f0+"_parentReturnTimeMs_"+u.Ks;Y.yd("Invalid_clearEndTimeMs_"+n+"_that_falls_during_"+U+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; V7W=function(Y){Y.oV.clearAll();Y.j.clear();Y.K.clear();Y.J.clear();Y.Fk=[];Y.W=null;Y.Ub.clear();Y.xw.experiments.vz("html5_ssdai_log_missing_ad_config_reason")&&Y.MF.clear();Y.N=[];Y.zZ=[];Y.CT=[];Y.Gw=[];Y.lN.clear();Y.eE.clear();Y.Qm.clear();Y.TZ.clear();Y.Z=!1;Y.N2=0;Y.KG=!1;Y.z0=0;Y.nT=0;Y.Ru=!1;Y.xl=!1;Y.G="";f6d(Y.app.Dy());kG(Y.app.Dy(),Y.playback,!1);Y.rg.clear();Y.S.isActive()&&SR(Y)}; Hlt=function(Y,u,n,U){u.durationMs=n;u.Ks=U;(U=Y.rg.get(u.cpn))?U.Jp(n/1E3):Y.bN({nop_d:u.cpn})}; Ex7=function(Y,u,n){L6S(Y.K,function(U){return U.f0>=u&&U.Ks<=n})}; JKA=function(Y,u,n,U,k,m){if(!Y.xl)if(g.OlS(Y,n))Y.bN({gdu:"undec",seg:n,itag:k});else if(u=F6d(Y,u,n,U,m),!(Y.playback.getVideoData().u6()&&(u==null?0:u.fH)))return u}; F6d=function(Y,u,n,U,k){var m=Y.J.get(n);if(!m){if(m=qB7(Y,u))return m;u=Y.Sq(n-1,U!=null?U:2);if(k)return Y.bN({misscue:k,sq:n,type:U,prevsstate:u==null?void 0:u.SC,prevrecord:Y.J.has(n-1)}),Y.J.get(n-1);if((u==null?void 0:u.SC)===2)return Y.bN({adnf:1,sq:n,type:U,prevrecord:Y.J.has(n-1)}),Y.J.get(n-1)}return m}; qB7=function(Y,u){u+=Y.l2();if(Y.playback.getVideoData().u6())a:{var n=1;n=n===void 0?0:n;var U=u*1E3;Y=g.A(Y.K.K);for(var k=Y.next();!k.done;k=Y.next()){k=k.value;var m=k.lw?k.lw*1E3:k.f0;if(U>=k.f0-n*1E3&&U<=m+k.durationMs+n*1E3){U={UC:k,YI:u};break a}}U={UC:void 0,YI:u}}else U=Cd(Y,u),((n=U)==null?0:n.UC)||(U=Cd(Y,u,1));var X;return(X=U)==null?void 0:X.UC}; a6u=function(Y,u){u=u===void 0?"":u;var n=x4(u)||void 0;if(!u||!n){var U;Y.bN({adcfg:(U=u)==null?void 0:U.length,dcfg:n==null?void 0:n.length})}return n}; $pB=function(Y){for(var u=g.A(Y.j.values()),n=u.next();!n.done;n=u.next())Y.playback.removeCueRange(n.value);Y.j.clear();Y.oV.clearAll()}; Y1M=function(Y,u,n,U,k,m,X){if(u&&n){Y.EX=n.cpn;Y.uA(n.cpn,n.startTimeSecs||k);w8t(Y,n);var S=h4A(Y,"a2a",n);Y.bN(S);Y.z0++;Y.playback.rB(u,n,U||0,k||0,!!m,!!X)}else Y.bN({misspbkonadtrans:1,enter:(n==null?void 0:n.cpn)||"",exit:(u==null?void 0:u.cpn)||"",seek:m,skip:X})}; Q4=function(Y,u,n){if(n===void 0||!n){n=g.A(Y.Fk);for(var U=n.next();!U.done;U=n.next()){U=U.value;if(u>=U.start&&u<=U.end)return;if(u===U.end+1){U.end+=1;return}}Y.Fk.push(new AKG(u))}}; g.OlS=function(Y,u){Y=g.A(Y.Fk);for(var n=Y.next();!n.done;n=Y.next())if(n=n.value,u>=n.start&&u<=n.end)return!0;return!1}; uPG=function(Y,u,n){var U;if(U=Y.playback.getVideoData().u6())U=(U=Y.K.AR({cpn:u}))&&U.Tg?(Y=Y.K.j.get(U==null?void 0:U.Tg))&&Y.slice(-1)[0].cpn===u:!1;return U&&n===2?1E3:0}; R4m=function(Y,u,n,U,k){var m;u={reason:"overlapping_playbacks",L1Z:u,f0:n,Ks:U,uyF:k.Gc,rIW:((m=k.videoData)==null?void 0:m.videoId)||"",XkZ:k.durationMs,GmF:k.f0,q1G:k.Ks};P9(Y,u)}; P9=function(Y,u,n){Y.playback.Hq(u,n)}; n2u=function(Y,u){var n=[];Y=Y.K.j.get(u);if(!Y)return[];Y=g.A(Y);for(u=Y.next();!u.done;u=Y.next())u=u.value,u.cpn&&n.push(u.cpn);return n}; UCY=function(Y,u,n){var U=0;Y=Y.K.j.get(n);if(!Y)return-1;Y=g.A(Y);for(n=Y.next();!n.done;n=Y.next()){if(n.value.cpn===u)return U;U++}return-1}; kxd=function(Y,u){var n=0;Y=Y.K.j.get(u);if(!Y)return 0;Y=g.A(Y);for(u=Y.next();!u.done;u=Y.next())u=u.value,u.durationMs!==0&&u.Ks!==u.f0&&n++;return n}; mCm=function(Y,u,n){var U=!1;if(n=Y.K.j.get(n)){n=g.A(n);for(var k=n.next();!k.done;k=n.next())k=k.value,k.durationMs!==0&&k.Ks!==k.f0&&(k=k.cpn,u===k&&(U=!0),U&&!Y.eE.has(k)&&(Y.bN({decoratedAd:k}),Y.eE.add(k)))}}; cKS=function(Y){Y.JJ&&Y.bN({adf:"0_"+((new Date).getTime()/1E3-Y.nT)+"_isTimeout_"+Y.Z})}; vxB=function(Y,u,n){if(Y.N.length)for(var U=g.A(Y.N),k=U.next(),m={};!k.done;m={xz:void 0},k=U.next()){m.xz=k.value;k=m.xz.startSecs*1E3;var X=m.xz.Ox*1E3+k;if(u>k&&uk&&n0?Y:0}else Y.IX().videoData.yY=Y.playback.getCurrentTime()}; PEY=function(Y){Y.TZ.add(Y.G);Y.G="";Y.KG=!1}; i8M=function(Y,u,n,U){g.e.call(this);var k=this;this.api=Y;this.xw=u;this.K=n;this.app=U;this.J=new Map;this.j=[];this.X=this.S=null;this.KG=NaN;this.W=this.G=this.N=null;this.Z=new g.Vp(function(){N_d(k,k.KG,k.N||void 0)}); this.oV=[];this.jG=new g.Vp(function(){var m=k.oV.pop();if(m){var X=m.Gc,S=m.playerVars;m=m.playerType;S&&(S.prefer_gapless=!0,k.api.preloadVideoByPlayerVars(S,m,NaN,"",X),k.oV.length&&g.OQ(k.jG,4500))}}); this.events=new g.j3(this);this.IH={ebg:function(){return k.j}}; this.K.getPlayerType();g.b(this,this.Z);g.b(this,this.jG);g.b(this,this.events);this.events.B(this.api,g.yk("childplayback"),this.onCueRangeEnter);this.events.B(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.B(this.api,"presentingplayerstatechange",this.nF)}; MYS=function(Y,u,n,U,k,m){var X=u.cpn,S=u.docid||u.video_id||u.videoId||u.id,C=Y.K;m=m===void 0?k+U:m;if(k>m)return iH(Y,"enterAfterReturn enterTimeMs="+k+" is greater than parentReturnTimeMs="+m.toFixed(3),X,S),"";var f=C.zc()*1E3;if(kf)return C="returnAfterDuration parentReturnTimeMs="+m.toFixed(3)+" is greater than parentDurationMs="+f+". And timestampOffset in seconds is "+ C.iN(),iH(Y,C,X,S),"";f=null;for(var Q=g.A(Y.j),N=Q.next();!N.done;N=Q.next()){N=N.value;if(k>=N.f0&&kN.f0)return iH(Y,"overlappingReturn",X,S),"";if(m===N.f0)return iH(Y,"outOfOrder",X,S),"";k===N.Ks&&(f=N)}X="cs_childplayback_"+Z8u++;S={Mr:Zx(U,!0),QO:Infinity,target:null};var Z={Gc:X,playerVars:u,playerType:n,durationMs:U,f0:k,Ks:m,m1:S};Y.j=Y.j.concat(Z).sort(function(K,L){return K.f0-L.f0}); f?T_t(Y,f,{Mr:Zx(f.durationMs,!0),QO:f.m1.QO,target:Z}):(u={Mr:Zx(k,!1),QO:k,target:Z},Y.J.set(u.Mr,u),C.addCueRange(u.Mr));u=!0;if(Y.K===Y.app.wg()&&(C=C.getCurrentTime()*1E3,C>=Z.f0&&Cu)break;if(m>u)return{UC:U,YI:u-k};n=m-U.Ks/1E3}return{UC:null,YI:u-n}}; N_d=function(Y,u,n){n=n===void 0?{}:n;var U=Y.W||Y.app.wg().getPlayerState();MR(Y,!0);u=isFinite(u)?u:Y.K.qY();var k=AiG(Y,u);u=k.YI;var m=(k=k.UC)&&!Ta(Y,k)||!k&&Y.K!==Y.app.wg(),X=u*1E3;X=Y.X&&Y.X.start<=X&&X<=Y.X.end;!m&&X||rk(Y);k?ri0(Y,k,u,n,U):jO7(Y,u,n,U)}; jO7=function(Y,u,n,U){var k=Y.K;k!==Y.app.wg()&&Y.app.jI();k.seekTo(u,Object.assign({},{L0:"application_timelinemanager"},n));Kp7(Y,U)}; ri0=function(Y,u,n,U,k){var m=Ta(Y,u);if(!m){u.playerVars.prefer_gapless=!0;var X=new g.sZ(Y.xw,u.playerVars);X.Gc=u.Gc;Y.api.kI(X,u.playerType)}X=Y.app.wg();m||X.addCueRange(u.m1.Mr);X.seekTo(n,Object.assign({},{L0:"application_timelinemanager"},U));Kp7(Y,k)}; Kp7=function(Y,u){Y=Y.app.wg();var n=Y.getPlayerState();u.isOrWillBePlaying()&&!n.isOrWillBePlaying()?Y.playVideo():u.isPaused()&&!n.isPaused()&&Y.pauseVideo()}; MR=function(Y,u){Y.KG=NaN;Y.N=null;Y.Z.stop();Y.G&&u&&Y.G.G$();Y.W=null;Y.G=null}; Ta=function(Y,u){Y=Y.app.wg();return!!Y&&Y.getVideoData().Gc===u.Gc}; pzd=function(Y){var u=Y.j.find(function(k){return Ta(Y,k)}); if(u){var n=Y.app.wg();rk(Y);var U=new g.RZ(8);u=GxY(Y,u)/1E3;jO7(Y,u,{},U);n.fG("forceParentTransition",{childPlayback:1});Y.K.fG("forceParentTransition",{parentPlayback:1})}}; tY7=function(Y,u,n){u=u===void 0?-1:u;n=n===void 0?Infinity:n;for(var U=u,k=n,m=g.A(Y.J),X=m.next();!X.done;X=m.next()){var S=g.A(X.value);X=S.next().value;S=S.next().value;S.QO>=U&&S.target&&S.target.Ks<=k&&(Y.K.removeCueRange(X),Y.J.delete(X))}U=u;k=n;m=[];X=g.A(Y.j);for(S=X.next();!S.done;S=X.next())if(S=S.value,S.f0>=U&&S.Ks<=k){var C=Y;C.S===S&&rk(C);Ta(C,S)&&C.app.jI()}else m.push(S);Y.j=m;U=AiG(Y,u/1E3);u=U.UC;U=U.YI;u&&(U*=1E3,LpA(Y,u,U,u.Ks===u.f0+u.durationMs?u.f0+U:u.Ks));(u=AiG(Y,n/1E3).UC)&& iH(Y,"Invalid clearEndTimeMs="+n+" that falls during playback={timelinePlaybackId="+(u.Gc+" video_id="+u.playerVars.video_id+" durationMs="+u.durationMs+" enterTimeMs="+u.f0+" parentReturnTimeMs="+u.Ks+"}.Child playbacks can only have duration updated not their start."))}; LpA=function(Y,u,n,U){u.durationMs=n;u.Ks=U;U={Mr:Zx(n,!0),QO:n,target:null};T_t(Y,u,U);Ta(Y,u)&&Y.app.wg().getCurrentTime()*1E3>n&&(u=GxY(Y,u)/1E3,n=Y.app.wg().getPlayerState(),jO7(Y,u,{},n))}; iH=function(Y,u,n,U){Y.K.fG("timelineerror",{e:u,cpn:n?n:void 0,videoId:U?U:void 0})}; o2A=function(Y){Y&&Y!=="web"&&B_t.includes(Y)}; sY=function(){g.e.call(this);this.K=new YG(5,null);g.b(this,this.K);this.j=new YG(15,null);g.b(this,this.j)}; $QB=function(Y,u){return u?!!Y.K.get(u):!1}; ciM=function(Y,u){Y.dataset.version=u}; DCd=function(Y){g.H.call(this,{D:"div",Oc:["html5-video-player"],T:{tabindex:Y.Y().disableOrganicUi?"":"-1",id:Y.webPlayerContextConfig.rootElementId},U:[{D:"div",C:g.pq.VIDEO_CONTAINER,T:{"data-layer":"0"}}]});var u=this;this.app=Y;this.E_=this.Xk(g.pq.VIDEO_CONTAINER);this.wd=new g.gh(0,0,0,0);this.m9=null;this.Go=new g.gh(0,0,0,0);this.vB=this.q3=this.GT=NaN;this.DH=this.hf=this.Jk=this.Em=!1;this.rI=NaN;this.ZV=!1;this.bK=null;this.e1=function(){u.element.focus({preventScroll:!0})}; this.wr=function(){u.app.Bz.publish("playerUnderlayVisibilityChange","visible");u.m9.classList.remove(g.pq.VIDEO_CONTAINER_TRANSITIONING);u.m9.removeEventListener(xX,u.wr);u.m9.removeEventListener("transitioncancel",u.wr)}; this.xL=this.wm=!1;var n=this.element.addEventListener,U=this.element.removeEventListener;this.addEventListener=function(m,X,S){n.apply(u.element,[m,X,S])}; this.removeEventListener=function(m,X,S){U.apply(u.element,[m,X,S])}; var k=Y.Y();k.transparentBackground&&this.CL("ytp-transparent");k.controlsType==="0"&&this.CL("ytp-hide-controls");g.UN(this.element,"ytp-exp-bottom-control-flexbox");g.UN(this.element,"ytp-modern-caption");k.V("enable_new_paid_product_placement")&&!g.tA(k)&&g.UN(this.element,"ytp-exp-ppp-update");g.UN(this.element,"ytp-livebadge-color");if(k.V("delhi_modern_web_player"))switch(g.UN(this.element,"ytp-delhi-modern"),k.V("delhi_modern_web_player_icons")&&g.UN(this.element,"ytp-delhi-modern-icons"), k.V("delhi_modern_web_player_horizontal_volume_controls")&&g.UN(this.element,"ytp-delhi-horizontal-volume-controls"),AB(k.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.UN(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.UN(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.UN(this.element,"ytp-delhi-modern-with-exclusion")}ciM(this.element,v2t(Y));this.Xw=!1;this.TX=new g.OW(NaN,NaN);R2u(this);this.B(Y.Bz,"onMutedAutoplayChange", this.onMutedAutoplayChange);Y=g.YF(k.experiments,"html5_android_mweb_resize_delay");Y>0&&(this.rU=new g.Vp(function(){return void u.resize()},Y),g.b(this,this.rU))}; R2u=function(Y){function u(X){Y.m9&&dk(Y);Ga(Y)!==Y.ZV&&Y.resize();Y.app.Y().V("web_enable_smart_zoom")&&Y.VR&&(X.state.isPaused()?Y.VR.pause():g.C1(X,8)&&Y.VR.playState==="paused"&&Y.VR.play())} function n(X,S){Y.qS(X,S)} function U(X){X.getVideoData()&&Y.updateVideoData(X.getVideoData())} function k(){Y.Go=new g.gh(0,0,0,0);Y.wd=new g.gh(0,0,0,0)} var m=Y.app.Bz;m.addEventListener("initializingmode",k);m.addEventListener("videoplayerreset",U);m.addEventListener("videodatachange",n);m.addEventListener("presentingplayerstatechange",u);Y.addOnDisposeCallback(function(){m.removeEventListener("initializingmode",k);m.removeEventListener("videoplayerreset",U);m.removeEventListener("videodatachange",n);m.removeEventListener("presentingplayerstatechange",u)})}; llG=function(Y){var u=Y.app.wg();if(u=u?u.getVideoData():null){if(g.uf(u)||g.nQ(u)||g.UA(u))return 16/9;if(o2(u)&&u.X.K)return Y=u.X.videoInfos[0].video,xCB(Y.width,Y.height)}return(Y=Y.m9)?xCB(Y.videoWidth,Y.videoHeight):16/9}; h2W=function(Y,u,n,U){var k=n,m=xCB(u.width,u.height);Y.Em?k=nm?{width:u.width,height:u.width/k,aspectRatio:k}:kk?Y.width=Y.height*n:nC;if(Ga(Y)){var f=llG(Y);var Q=isNaN(f)||g.gD||Mt&&g.Z0||C;zC&&!g.zr(601)?f=k.aspectRatio:Q=Q||m.controlsType==="3";Q?C?(Q=m.V("place_shrunken_video_on_left_of_player")?16:Y.getPlayerSize().width-u.width-16,f=Math.max((Y.getPlayerSize().height-u.height)/2,0),Q=new g.gh(Q,f,u.width, u.height),Y.m9.style.setProperty("border-radius","12px")):Q=new g.gh(0,0,u.width,u.height):(n=k.aspectRatio/f,Q=new g.gh((u.width-k.width/n)/2,(u.height-k.height)/2,k.width/n,k.height),n===1&&g.Z0&&(f=Q.width-u.height*f,f>0&&(Q.width+=f,Q.height+=f)));g.PP(Y.element,"ytp-fit-cover-video",Math.max(Q.width-k.width,Q.height-k.height)<1);if(S||Y.Xw)Y.m9.style.display="";Y.ZV=!0}else{Q=-u.height;zC?Q*=window.devicePixelRatio:g.Bo&&(Q-=window.screen.height);Q=new g.gh(0,Q,u.width,u.height);if(S||Y.Xw)Y.m9.style.display= "none";Y.ZV=!1}ED(Y.Go,Q)||(Y.Go=Q,g.CV(m)?(Y.m9.style.setProperty("width",Q.width+"px","important"),Y.m9.style.setProperty("height",Q.height+"px","important")):g.nP(Y.m9,Q.getSize()),U=new g.yO(Q.left,Q.top),g.au(Y.m9,Math.round(U.x),Math.round(U.y)),U=!0);u=new g.gh((u.width-k.width)/2,(u.height-k.height)/2,k.width,k.height);ED(Y.wd,u)||(Y.wd=u,U=!0);g.yV(Y.m9,"transform",n===1?"":"scaleX("+n+")");X&&C!==Y.hf&&(C&&(Y.m9.addEventListener(xX,Y.wr),Y.m9.addEventListener("transitioncancel",Y.wr),Y.m9.classList.add(g.pq.VIDEO_CONTAINER_TRANSITIONING)), Y.hf=C,Y.app.Bz.publish("playerUnderlayVisibilityChange",Y.hf?"transitioning":"hidden"));return U}; e2B=function(Y){Y.wm=!Y.wm;Y.xL=!0;Y.element.classList.toggle("ytp-retro-player",Y.wm);Y.resize();Y.xL=!1;Y.app.Bz.Yw("onRetroModeChanged",Y.wm)}; b80=function(){this.csn=g.sC();this.clientPlaybackNonce=null;this.elements=new Set;this.X=new Set;this.K=new Set;this.j=new Set}; IlA=function(Y){if(Y.csn!==g.sC())if(Y.csn==="UNDEFINED_CSN")Y.csn=g.sC();else{var u=g.sC(),n=g.Mn();if(u&&n){Y.csn=u;for(var U=g.A(Y.elements),k=U.next();!k.done;k=U.next())(k=k.value.visualElement)&&k.isClientVe()&&u&&n&&(g.rL("combine_ve_grafts")?Sf(Xx(),k,n):g.O_(g.b2)(void 0,u,n,k))}if(u)for(Y=g.A(Y.K),n=Y.next();!n.done;n=Y.next())(n=n.value.visualElement)&&n.isClientVe()&&g.OC(u,n)}}; g.Af=function(Y,u,n,U){g.e.call(this);var k=this;this.logger=new g.jW("App");this.H8=this.jQ=!1;this.rS={};this.xr=[];this.vZ=!1;this.Wo=null;this.intentionalPlayback=!1;this.J1=!0;this.iG=!1;this.aE=this.Gj=this.TB=null;this.Sd=!0;this.mediaElement=this.LT=null;this.Ly=NaN;this.TO=!1;this.Sb=this.CZ=this.zR=this.screenLayer=this.playlist=null;this.uG=[];this.Ky=0;this.IH={Dy:function(){return k.XD}, Mnk:function(){return k.zR}}; this.logger.debug("constructor begin");if(!n)throw Error("b/179532961");this.Hl=(u==null?void 0:u.args)||{};this.webPlayerContextConfig=n;uDB();u=this.Hl;this.xw=new r9(u,n,n.canaryState,U,this);g.b(this,this.xw);TvB(this.xw);n=M7Y(this.xw);this.xw.gX()&&this.E2("h5vcc",n);this.xw.experiments.vz("jspb_serialize_with_worker")&&hh0();this.xw.experiments.vz("gzip_gel_with_worker")&&BE0();this.xw.j&&!z2S&&(window.addEventListener(am?"touchstart":"click",yNM,{capture:!0,passive:!0}),z2S=!0);this.V("html5_onesie")&& (this.DX=new dN(this.xw),g.b(this,this.DX));this.qB=$o(kn(this.xw)&&!0,u.enablesizebutton);this.Bo=$o(!1,u.player_wide);this.visibility=new CPu;g.b(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.G1($o(!1,u.player_wide));this.jQ=$o(!1,u.external_list);this.events=new g.j3(this);g.b(this,this.events);this.V("start_client_gcf")&&(KA(Bh(),{v8:U0,CX:qQA()}),this.nm=Bh().resolve(U0),YNc(this.nm));this.UNk=new DP;g.b(this,this.UNk);this.r5=new b80;n=new xN;this.Bz=new g.Vs(this,n); g.b(this,this.Bz);this.template=new DCd(this);g.b(this,this.template);this.appState=1;this.gt=g2A(this);g.b(this,n);n={};this.ZA=(n.internalvideodatachange=this.M3,n.playbackready=this.lWG,n.playbackstarted=this.iGF,n.statechange=this.kZF,n);this.GJ=new p_(this.Bz);this.wp=E2M(this);n=this.xw.W;!1!==n&&this.E2("badps",{hbp:n,hostname:window.location.hostname,ps:this.xw.playerStyle});this.DF=new oGu(this.xw,this.wp);this.Bz.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||Odu(this.wp))&& H8G(this);n=10;g.Zp(this.xw)&&(n=3);pV(this.xw)&&(n=g.YF(this.xw.experiments,"tvhtml5_unplugged_preload_cache_size"));this.XD=new g.nd(this.Bz,n);n=yiY(this);this.XD.pB(n);VYB(this);n={};this.X9=(n.airplayactivechange=this.e_c,n.airplayavailabilitychange=this.EVZ,n.beginseeking=this.w$Z,n.sabrCaptionsDataLoaded=this.IYJ,n.endseeking=this.z_G,n.internalAbandon=this.Ybw,n.internalaudioformatchange=this.d1w,n.internalvideodatachange=this.hTq,n.internalvideoformatchange=this.jHJ,n.liveviewshift=this.vVw, n.playbackstalledatstart=this.nkg,n.progresssync=this.NXk,n.onAbnormalityDetected=this.ZTG,n.onSnackbarMessage=this.RTk,n.onLoadProgress=this.PNG,n.SEEK_COMPLETE=this.KoG,n.SEEK_TO=this.okw,n.onVideoProgress=this.X0G,n.onLoadedMetadata=this.m1G,n.onAutoplayBlocked=this.c_z,n.onPlaybackPauseAtStart=this.tEa,n.playbackready=this.aFZ,n.statechange=this.VV,n.newelementrequired=this.Js,n.heartbeatparams=this.TX2,n.videoelementevent=this.b0a,n.drmoutputrestricted=this.p$G,n.signatureexpired=this.fYk,n.nonfatalerror= this.suV,n.reloadplayer=this.xRq,n);this.Zf=new g.j3(this);g.b(this,this.Zf);this.eY=new sY;g.b(this,this.eY);this.tC=this.Hx=-1;this.iT=new g.Vp(this.template.resize,16,this.template);g.b(this,this.iT);this.FD=new i8M(this.Bz,this.xw,this.fT(),this);this.KU=new F1(this);g.b(this,this.KU);this.lq=new HJ(this);g.b(this,this.lq);o2A(this.xw.K.c);this.events.B(this.Bz,g.yk("appapi"),this.VGk);this.events.B(this.Bz,g.Vk("appapi"),this.ScG);this.events.B(this.Bz,g.yk("appprogressboundary"),this.O0J);this.events.B(this.Bz, g.Vk("applooprange"),this.ER);this.events.B(this.Bz,"presentingplayerstatechange",this.nF);this.events.B(this.Bz,"resize",this.kck);this.template.yF(X8(document,Y));this.events.B(this.Bz,"offlineslatestatechange",this.CNa);this.events.B(this.Bz,"sabrCaptionsTrackChanged",this.TDW);this.events.B(this.Bz,"sabrCaptionsBufferedRangesUpdated",this.zTF);this.wp.L.Y().xa&&WH(this.wp,"offline");this.xw.TZ&&g.cH("ux",g.gB);Y=g.YF(this.xw.experiments,"html5_defer_fetch_att_ms");this.yE=new g.Vp(this.f_a,Y, this);g.b(this,this.yE);this.xR().QY()&&(g.RU()&&this.xR().N.push("remote"),O8S(this));this.DF.tick("fs");Fpd(this);this.xw.TZ&&WH(this.wp,"ux",!0);g.nV(this.wp.L.Y())&&WH(this.wp,"embed");this.V("web_player_sentinel_is_uniplayer")||g.Br(new g.zP("Player experiment flags missing","web_player_sentinel_is_uniplayer"));Y=this.V("web_player_sentinel_yt_experiments_sync");n=g.rL("web_player_sentinel_yt_experiments_sync");Y!==n&&g.Br(new g.zP("b/195699950",{yt:Y,player:n}));this.O3=Jic(this);if(Y=g.YF(this.xw.experiments, "html5_block_pip_safari_delay"))this.hE=new g.Vp(this.Bn,Y,this),g.b(this,this.hE);cy=this.xw.Qm;this.Bz.publish("applicationInitialized");this.logger.debug("constructor end")}; Jic=function(Y){function u(n){n.stack&&n.stack.indexOf("player")!==-1&&Y.wg().VX(n)} ob.subscribe("handleError",u);yM.push(u);return function(){ob.unsubscribe("handleError",u);var n=yM.indexOf(u);n!==-1&&yM.splice(n,1)}}; yiY=function(Y){var u=new g.sZ(Y.xw,Y.Hl);Y.Bz.publish("initialvideodatacreated",u);return jR(Y,1,u,!1)}; VYB=function(Y){var u=Y.fT();u.setPlaybackRate(Y.xw.G?1:q1M(Y,Number(g.ck("yt-player-playback-rate"))||1));u.BD(Y.ZA,Y);u.q7()}; E2M=function(Y){var u="",n=v2t(Y);n.indexOf("//")===0&&(n=Y.xw.protocol+":"+n);var U=n.lastIndexOf("/base.js");U!==-1&&(u=n.substring(0,U+1));if(n=Error().stack)if(n=n.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))n=n[1],n.includes(u)||g.Br(Error("Player module URL mismatch: "+(n+" vs "+u+".")));u=new HdB(Y.Bz,u);n={};yfY(u,(n.destroyed=function(){Y.onApiChange()},n)); return u}; g2A=function(Y){if(Y.xw.storeUserVolume){Y=g.ck("yt-player-volume")||{};var u=Y.volume;Y={volume:isNaN(u)?100:g.gS(Math.floor(u),0,100),muted:!!Y.muted}}else Y={volume:100,muted:Y.xw.mute};return Y}; Kd=function(Y){Y.mediaElement=Y.xw.deviceIsAudioOnly?new g.Yg(g.rh("AUDIO")):Eb.pop()||new g.Yg(g.rh("VIDEO"));g.b(Y,Y.mediaElement);Y.wg().setMediaElement(Y.mediaElement);try{Y.xw.MR?(Y.CZ&&Y.events.qR(Y.CZ),Y.CZ=Y.events.B(Y.mediaElement,"volumechange",Y.A_g)):(Y.mediaElement.nZ(Y.gt.muted),Y.mediaElement.setVolume(Y.gt.volume/100))}catch(k){Y.YQ("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(k&&typeof k==="object"&&"message"in k&&typeof k.message==="string"&&k.message.replace(/[;:,]/g, "_")));return}g.Lb(Y.Zf);alB(Y);var u=Y.template,n=Y.mediaElement.q1();u.m9=n;u.DH=!1;u.m9.parentNode||Go(u.E_,u.m9,0);u.Go=new g.gh(0,0,0,0);WpB(u);dk(u);n=u.m9;g.UN(n,"video-stream");g.UN(n,g.pq.MAIN_VIDEO);var U=u.app.Y();U.l4&&n.setAttribute("data-no-fullscreen","true");U.V("html5_local_playsinline")?"playsInline"in rC()&&(n.playsInline=!0):U.w9&&(n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline",""));U.Fo&&u.m9&&u.B(n,"click",n.play,n);try{Y.mediaElement.activate()}catch(k){Y.YQ("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(k&&typeof k==="object"&&"message"in k&&typeof k.message==="string"&&k.message.replace(/[;:,]/g,"_")))}}; YIu=function(Y){if(!$C7(Y)){var u=Y.fT().wD();u&&(u=u.wz(),u instanceof Promise&&u.catch(function(){})); pd(Y,b$(Y.getPlayerStateObject()))}}; alB=function(Y){var u=Y.mediaElement;GF()?Y.Zf.B(u,"webkitpresentationmodechanged",Y.vkc):window.document.pictureInPictureEnabled&&(Y.Zf.B(u,"enterpictureinpicture",function(){Y.D1(!0)}),Y.Zf.B(u,"leavepictureinpicture",function(){Y.D1(!1)})); yS&&(Y.Zf.B(u,"webkitbeginfullscreen",function(){Y.Sl(3)}),Y.Zf.B(u,"webkitendfullscreen",function(){Y.Sl(0)}))}; umY=function(Y,u){var n=u.getPlayerType(),U=Y.XD.X[n]||null;u!==Y.fT()&&u!==U&&(U==null||U.dispose(),Y.XD.X[n]=u)}; nte=function(Y,u){u=u===void 0?!0:u;Y.logger.debug("start clear presenting player");var n;if(n=Y.Sb){n=Y.Sb;var U=Y.mediaElement;n=!!U&&U===n.mediaElement}n&&(Y.bE(),Kd(Y));n=Y.wg();n.bE(!u);n.lr(Y.X9,Y);n.getPlayerType()!==1&&n.dispose();u=Y.XD;u.j=u.K;UY(u);Y.logger.debug("finish clear presenting player")}; g.UhA=function(Y,u,n,U){var k=Y.DF;u===2&&(k=new oGu(Y.xw));return new g.CL(Y.xw,u,k,Y.template,function(m,X,S){Y.Bz.publish(m,X,S)},function(){return Y.Bz.getVisibilityState()},Y.visibility,Y,n,U)}; jR=function(Y,u,n,U,k){Y=g.UhA(Y,u,n,k);Y=new g.PO(Y);U&&Y.q7();return Y}; Ld=function(Y,u){return Y.xQ(u)?Y.fT():u}; tf=function(Y,u){var n=Y.wg();return u===Y.fT()&&Y.xQ(u)&&Y.xQ(n)?n:u}; Xsm=function(Y){Y.logger.debug("start application playback");if(Y.fT().getPlayerState().isError())Y.logger.debug("start application playback done, player in error state");else{var u=B9(Y);Y.xR().isLoaded();u&&Y.D8(6);kMS(Y);Uc7(Y.wp)||mhu(Y)}}; mhu=function(Y){if(!B9(Y)){var u=bK(Y.wp);u&&!u.created&&VRA(Y.wp)&&(Y.logger.debug("reload ad module"),u.create())}}; kMS=function(Y){Y.logger.debug("start presenter playback");var u=Y.getVideoData(),n=Y.wp;Uc7(n)||n.OS();!Rm&&n.L.V("html5_allow_asmjs")&&Clu(n);WH(n,"embed");WH(n,"kids");WH(n,"remote");WH(n,"miniplayer");WH(n,"offline");WH(n,"unplugged");WH(n,"ypc",!1,!0);n.L.V("html5_ypc_clickwrap_module_refactor")||WH(n,"ypc_clickwrap",!1,!0);WH(n,"yto",!1,!0);WH(n,"webgl",!1,!0);kWu(n)||(WH(n,"captions",!0),WH(n,"endscreen"),n.aP(),WH(n,"creatorendscreen",!0));n.nI();n.L.publish("modulesCreated");Y.Bz.publish("videoready", u)}; oX=function(Y){Y=Y.xR();Y.QY();return fQ(Y)}; Fpd=function(Y){Y.logger.debug("start prepare initial playback");Y.lO();var u=Y.Hl;Kd(Y);Y.events.B(window,"resize",Y.BDF);var n=Y.xR();Y.Bz.Ar("onVolumeChange",Y.gt);if(u&&DRc(u)){var U=G_(Y.xw);U&&!Y.jQ&&(u.fetch=0);var k=g.nV(Y.xw);k&&!Y.jQ&&(u.fetch=0);c9(Y,u);g.nV(Y.xw)&&Y.DF.tick("ep_pr_s");if(!U||Y.jQ)if(k&&!Y.jQ)Piu(Y);else if(!n.QY())Y.playlist.onReady(function(){v9(Y)})}Y.fL(Y.fT(),!1,!0); g.V(Y.fT().getPlayerState(),128)||(u=LLe(!Y.xw.deviceIsAudioOnly),u==="fmt.noneavailable"?Y.YQ("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):u==="html5.missingapi"?Y.YQ(u,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):n&&n.QY()&&oX(Y)&&(Y.xw.bU||Y.xw.s6)?RX(Y):n.T1?Y.Bz.mutedAutoplay({durationMode:n.mutedAutoplayDurationMode}):g.ck("yt-player-playback-on-reload")?(g.ka("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!Y.xw.jG}),g.oU("yt-player-playback-on-reload",!1), RX(Y)):co(Y.xw)||SIc(Y),g.KV(Y.xw)||da(Y.xw)==="MWEB"?(g.VT(g.FJ(),function(){Dx(Y)}),g.VT(g.FJ(),function(){pNY()})):(Dx(Y),pNY()),Y.logger.debug("finish prepare initial playback"))}; Dx=function(Y){if(!Y.V("use_rta_for_player"))if(Y.V("fetch_att_independently"))g.OQ(Y.yE);else{var u=Y.getVideoData().botguardData;u&&g.rK(u,Y.xw,Y.getVideoData().Y5||"")}}; SIc=function(Y){Y.logger.debug("start initialize to CUED mode");Y.Bz.publish("initializingmode");Y.D8(2);WH(Y.wp,"remote");WH(Y.wp,"miniplayer");Y.logger.debug("initialized to CUED mode")}; RX=function(Y){Y.logger.debug("start initialize application playback");var u=Y.fT();if(g.V(u.getPlayerState(),128))return!1;u=u.getVideoData();oX(Y)&&Y.xw.s6&&(Eb.length&&Y.H8?(xG(Y,{muted:!1,volume:Y.gt.volume},!1),lH(Y,!1)):Eb.length||Y.gt.muted||(xG(Y,{muted:!0,volume:Y.gt.volume},!1),lH(Y,!0)));oX(Y)&&g.nV(Y.xw)&&u.mutedAutoplay&&(xG(Y,{muted:!0,volume:Y.gt.volume},!1),lH(Y,!0));u.fE&&xG(Y,{muted:!0,volume:Y.gt.volume},!1);Ci0(Y,1,u,!1);var n=Y.fT();Y.Bz.publish("initializingmode");Y.fL(n);Y.D8(3); var U;if(!(U=!Y.xw.Yl)){if(U=Y.Sb){U=Y.Sb;var k=Y.mediaElement;U=!!k&&k===U.mediaElement}U=U&&Y.vZ}U&&(Y.bE(),Kd(Y),n.setMediaElement(Y.mediaElement));n.DZ();if(g.V(n.getPlayerState(),128))return!1;u.dO||pd(Y,3);return Y.vZ=!0}; B9=function(Y){Y=J3(Y.wp);return!!Y&&Y.loaded}; fQd=function(Y,u){if(!Y.LT)return!1;var n=Y.LT.startTimeMs*.001-1,U=Y.LT.endTimeMs*.001;Y.LT.type==="repeatChapter"&&U--;return Math.abs(u-n)<=1E-6||Math.abs(u-U)<=1E-6||u>=n&&u<=U}; Qgm=function(Y){var u=Y.wg();c2(u.getVideoData())&&!u.Fg()&&(u=hf(Y)*1E3-Y.getVideoData().UI,Y.V("html5_gapless_new_slr")?(Y=Y.lq,wk(Y.app,"gaplessshortslooprange"),u=new g.EE(0,u,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(Y=Y.app.wg())&&Y.addCueRange(u)):Y.setLoopRange({startTimeMs:0,endTimeMs:u,type:"shortsLoop"}))}; N10=function(Y){var u=Y.fT();if(!(g.V(u.getPlayerState(),64)&&Y.xR().isLivePlayback&&Y.LT.startTimeMs<5E3)){if(Y.LT.type==="repeatChapter"){var n,U=(n=dbW(Y.ym()))==null?void 0:n.X$(),k;n=(k=Y.getVideoData())==null?void 0:k.s6;U instanceof g.nW&&n&&(k=n[sr(n,Y.LT.startTimeMs)],U.renderChapterSeekingAnimation(0,k.title));isNaN(Number(Y.LT.loopCount))?Y.LT.loopCount=0:Y.LT.loopCount++;Y.LT.loopCount===1&&Y.Bz.Yw("innertubeCommand",Y.getVideoData().G6w)}U={L0:"application_loopRangeStart"};if(Y.LT.type=== "clips"||Y.LT.type==="shortsLoop")U.seekSource=58;u.seekTo(Y.LT.startTimeMs*.001,U)}}; q1M=function(Y,u){var n=Y.Bz.getAvailablePlaybackRates();u=Number(u.toFixed(2));Y=n[0];n=n[n.length-1];u<=Y?u=Y:u>=n?u=n:(Y=Math.floor(u*100+.001)%5,u=Y===0?u:Math.floor((u-Y*.01)*100+.001)/100);return u}; hf=function(Y,u){u=Y.AR({playerType:u});if(!u)return Y.XD.K.u4();u=Ld(Y,u);return W9(Y,u.u4(),u)}; W9=function(Y,u,n){if(Y.xQ(n)&&(n=n.getVideoData(),!eR(Y))){Y=Y.FD;for(var U=g.A(Y.j),k=U.next();!k.done;k=U.next())if(k=k.value,n.Gc===k.Gc){u+=k.f0/1E3;break}U=u;Y=g.A(Y.j);for(k=Y.next();!k.done;k=Y.next()){k=k.value;if(n.Gc===k.Gc)break;var m=k.f0/1E3;if(m1&&(k=!1);Y.TO&&k===u||(U=U.lock(k?"portrait":"landscape"),U!=null&&U.catch(function(){}),Y.TO=!0)}else Y.TO&&(Y.TO=!1,U.unlock())}; EY=function(Y,u,n){Y.Bz.publish(u,n);var U=g.Zp(Y.xw)||g.CV(Y.xw)||g.R8(Y.xw);if(n&&U){switch(u){case "cuerangemarkersupdated":var k="onCueRangeMarkersUpdated";break;case "cuerangesadded":k="onCueRangesAdded";break;case "cuerangesremoved":k="onCueRangesRemoved"}k&&Y.Bz.Yw(k,n.map(function(m){return{getId:function(){return this.id}, end:m.end,id:m.getId(),namespace:m.namespace==="ad"?"ad":"",start:m.start,style:m.style,visible:m.visible,markerPositionMs:m.markerPositionMs}}))}}; H9=function(Y,u,n,U,k,m){n=n===void 0?!0:n;var X=Y.AR({playerType:k});if(!X||(X.getPlayerType()!==2||Y.xQ(X))&&!g.$R(X.getVideoData())){var S=Y.XD.RM;S?S.seekTo(u,{AO:!n,DM:U,L0:"application",seekSource:m}):(X&&X===Y.fT()&&Y.LT&&!fQd(Y,u)&&Y.setLoopRange(null),Y.seekTo(u,n,U,k,m))}}; otY=function(Y,u,n,U){n&&(Y.bE(),Kd(Y));n=Y.wg();n.Wq(u);var k=Y.getVideoData(),m={};m.video_id=k.videoId;m.adformat=k.adFormat;k.isLivePlayback||(m.start=n.getCurrentTime(),m.resume="1");k.isLivePlayback&&eX(k)&&g.NV(Y.xw)&&(m.live_utc_start=n.Ia(),m.resume="1");k.rg&&(m.vvt=k.rg);k.W&&(m.vss_credentials_token=k.W,m.vss_credentials_token_type=k.eU);k.oauthToken&&(m.oauth_token=k.oauthToken);m.autoplay=1;m.reload_count=k.lN+1;m.reload_reason=u;k.Ez&&(m.unplugged_partner_opt_out=k.Ez);k.Bv&&(m.ypc_is_premiere_trailer= k.Bv);k.playerParams&&(m.player_params=k.playerParams);Y.loadVideoByPlayerVars(m,void 0,!0,void 0,void 0,U);u==="signature"&&Y.zR&&mhu(Y)}; cVG=function(Y,u){Y.xR().autonavState=u;g.oU("yt-player-autonavstate",u);Y.Bz.publish("autonavchange",u)}; vtt=function(Y){var u=Y.getVideoData().ET,n=Y.xw.Pz,U=Y.isInline()&&!Y.getVideoData().RR,k=Y.mediaElement;u||n||U?k.kX():(k.dI(),xG(Y,Y.gt))}; bH=function(Y){var u=bK(Y.ym());u&&u.created&&(Y.logger.debug("reset ad module"),u.destroy())}; eR=function(Y){return Y.getVideoData().enableServerStitchedDai&&!!Y.zR}; RCM=function(Y,u){u.bounds=Y.getBoundingClientRect();for(var n=g.A(["display","opacity","visibility","zIndex"]),U=n.next();!U.done;U=n.next())U=U.value,u[U]=F8(Y,U);u.hidden=!!Y.hidden}; v2t=function(Y){var u=Y.webPlayerContextConfig.trustedJsUrl;return u?G6(u).toString():Y.webPlayerContextConfig.jsUrl}; DhB=function(Y,u){var n=Y.AR({playerType:1});if(n){if(n.getVideoData().clientPlaybackNonce===u)return n;if((Y=Y.KU.K)&&Y.getVideoData().clientPlaybackNonce===u)return Y}return null}; H8G=function(Y){function u(U){return H3(fVS(Y.wp),function(k){return k.f$(U)})} Y.DF.tick("wasm_s");var n=sjW(Y.webPlayerContextConfig.wasmModuleUrl,Odu(Y.wp)?u:void 0,Y.E2.bind(Y));n==null||H3(n,function(U){Y.DF.tick(U.K?"wasm_fa":"wasm_fw")},function(){Y.DF.tick("wasm_ferr")}); Fb0(Y.xw,n)}; xh0=function(Y){return Y.name==="TypeError"&&Y.stack.includes("/s/player/")&&wL()<=105}; lQd=function(Y){return Y.isTimeout?"NO_BID":"ERR_BID"}; hCB=function(){var Y=null;tec().then(function(u){return Y=u},function(u){return Y=lQd(u)}); return Y}; ws7=function(){var Y=ed(1E3,"NO_BID");return g.ls(gsW([tec(),Y]).Qg(lQd),function(){Y.cancel()})}; y4=function(Y){return Y.yY?g.wT(g.h6(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; V4=function(Y){this.player=Y;this.X=this.K=1}; beG=function(Y,u,n,U,k,m){u.client||(u.client={});Y.player.Y().V("h5_remove_url_for_get_ad_break")||(u.client.originalUrl=n);var X=UU(n),S=g.fo(n)?!1:!0;(X||S)&&typeof Intl!=="undefined"&&(u.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);S=g.fo(n)?!1:!0;if(X||S||U!==""){var C={};n=qd(Ss(U)).split("&");var f=new Map;n.forEach(function(Q){Q=Q.split("=");Q.length>1&&f.set(Q[0].toString(),decodeURIComponent(Q[1].toString()))}); f.has("bid")&&(C.bid=f.get("bid"));C.params=[];WYd.forEach(function(Q){f.has(Q)&&(Q={key:Q,value:f.get(Q)},C.params.push(Q))}); eCM(Y,C);u.adSignalsInfo=C}u.client.unpluggedAppInfo||(u.client.unpluggedAppInfo={});u.client.unpluggedAppInfo.enableFilterMode=!1;n=k.K.cosver;n!=null&&n!=="cosver"&&(u.client.osVersion=n);n=k.K.cplatform;n!=null&&n!=="cplatform"&&n!==""&&(u.client.platform=n);n=k.K.cmodel;n!=null&&n!=="cmodel"&&(u.client.deviceModel=n);n=k.K.cplayer;n!=null&&n!=="cplayer"&&(u.client.playerType=n);n=k.K.cbrand;n!=null&&n!=="cbrand"&&(u.client.deviceMake=n);u.user||(u.user={});u.user.lockedSafetyMode=!1;(k.V("embeds_web_enable_iframe_api_send_full_embed_url")|| k.V("embeds_enable_autoplay_and_visibility_signals"))&&g.SG(k)&&mfW(u,m,Y.player.getPlayerState(1))}; gtA=function(Y,u){var n=!1;if(u==="")return n;u.split(",").forEach(function(U){var k={},m={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},X="ACTIVE";U[0]==="!"&&(U=U.substring(1),X="INACTIVE");U=U.split("-");U.length<3||(U[0]in IQu&&(m.clientName=IQu[U[0]]),U[1]in zCu&&(m.platform=zCu[U[1]]),m.applicationState=X,m.clientVersion=U.length>2?U[2]:"",k.remoteClient=m,Y.remoteContexts?Y.remoteContexts.push(k):Y.remoteContexts=[k],n=!0)}); return n}; HeM=function(Y){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in EtA))return!1;Y=Y.split(RegExp("[:&]"));var u=EtA.FLAG_AUTO_CAPTIONS_DEFAULT_ON,n="f"+(1+Math.floor(u/31)).toString();u=1<=2?X[1]:"";var S=VQc.test(u),C=Oem.exec(u);C=C!=null&&C.length>=2?C[1]:"";var f=FYt.exec(u);f=f!=null&&f.length>=2&&!Number.isNaN(Number(f[1]))?Number(f[1]):1;var Q=JVu.exec(u);Q=Q!=null&&Q.length>=2?Q[1]:"0";var N=io(Y.player.Y().uE),Z=Y.player.getVideoData(1),T=g.yj(Z.Fk,!0),r="BISCOTTI_ID"in n?n.BISCOTTI_ID:"";beG(Y,T,u,r.toString(),Y.player.Y(), Z);Z={splay:!1,lactMilliseconds:n.LACT.toString(),playerHeightPixels:Math.trunc(n.P_H),playerWidthPixels:Math.trunc(n.P_W),vis:Math.trunc(n.VIS),signatureTimestamp:20300,autonavState:y4(Y.player.Y())};U&&(U={},gtA(U,n.YT_REMOTE)&&(Z.mdxContext=U));if(U=qIu.includes(N)?void 0:g.Dz("PREF")){for(var K=U.split(RegExp("[:&]")),L=0,R=K.length;L1&&c[1].toUpperCase()==="TRUE"){T.user.lockedSafetyMode=!0;break}}Z.autoCaptionsDefaultOn= HeM(U)}u=aQW.exec(u);(u=u!=null&&u.length>=2?u[1]:"")&&C&&(T.user.credentialTransferTokens=[{token:u,scope:"VIDEO"}]);u={contentPlaybackContext:Z};X={adBlock:Math.trunc(n.AD_BLOCK),params:X,breakIndex:f,breakPositionMs:Q,clientPlaybackNonce:n.CPN,topLevelDomain:N,isProxyAdTagRequest:S,context:T,adSignalsInfoString:qd(Ss(r.toString())),overridePlaybackContext:u};k!==void 0&&(X.cueProcessedMs=Math.round(k).toString());C&&(X.videoId=C);n.LIVE_TARGETING_CONTEXT&&(X.liveTargetingParams=n.LIVE_TARGETING_CONTEXT); n.AD_BREAK_LENGTH&&(X.breakLengthMs=Math.trunc(n.AD_BREAK_LENGTH*1E3).toString());m&&(X.driftFromHeadMs=m.toString());X.currentMediaTimeMs=Math.round(Y.player.getCurrentTime(1)*1E3);(Y=Y.player.getGetAdBreakContext())&&(X.getAdBreakContext=Y);return X}; YOB=function(){V4.apply(this,arguments)}; uvS=function(Y,u,n,U,k){var m=n.p_;var X=n.Mr;var S=Y.player.Y().Vg,C=0;n.cueProcessedMs&&X&&!m&&(n=X.end-X.start,n>0&&(C=Math.floor(n/1E3)));var f={AD_BLOCK:k,AD_BREAK_LENGTH:m?m.Ox:C,AUTONAV_STATE:y4(Y.player.Y()),CA_TYPE:"image",CPN:Y.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:Y.player.bl()*1E3,LACT:dl(),LIVE_INDEX:m?Y.X++:1,LIVE_TARGETING_CONTEXT:m&&m.context?m.context:"",MIDROLL_POS:X?Math.round(X.start/1E3):0,MIDROLL_POS_MS:X?Math.round(X.start):0,VIS:Y.player.getVisibilityState(), P_H:Y.player.tJ().UE().height,P_W:Y.player.tJ().UE().width,YT_REMOTE:S?S.join(","):""},Q=Py(XA);Object.keys(Q).forEach(function(N){Q[N]!=null&&(f[N.toUpperCase()]=Q[N].toString())}); U!==""&&(f.BISCOTTI_ID=U);U={};mR(u)&&(U.sts="20300",(Y=Y.player.Y().forcedExperiments)&&(U.forced_experiments=Y));return nv(g.oe(u,f),U)}; nZd=function(Y,u){var n=Y.player.Y(),U,k=(U=Y.player.getVideoData(1))==null?void 0:U.oauthToken;return g.DA(n,k).then(function(m){if(m&&ko()){var X=mm();X2(X,m)}return g.RV(Y.player.LF(X),u,"/youtubei/v1/player/ad_break").then(function(S){return S})})}; U6t=function(Y){this.AJ=Y}; kVd=function(Y){this.L=Y}; m6u=function(Y){this.AJ=Y}; Ppu=function(Y){g.e.call(this);this.K=Y;this.SB=XE0(this)}; XE0=function(Y){var u=new Lkt(Y.K.ZY);g.b(Y,u);Y=[new U6t(Y.K.AJ),new kVd(Y.K.L),new m6u(Y.K.AJ),new Mg(Y.K.Lu,Y.K.ib),new dZ,new jI(Y.K.vM,Y.K.nu,Y.K.AJ),new sy,new rZ];Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next())t6t(u,n.value);Y=g.A(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(n=Y.next();!n.done;n=Y.next())Gh(u,n.value,function(){}); return u}; OY=function(Y){var u=Y.SG,n=Y.hJ;Y=Y.Ux;var U=new Ejc,k={Bc:new KLc(u.get(),n),hJ:n};return{J_:new hR(n,Y,u,k),context:k,i9:U}}; FB=function(Y,u,n,U,k){g.e.call(this);this.j=u;this.LG=n;this.SG=U;this.i6=k;this.listeners=[];var m=new Kb(this);g.b(this,m);m.B(Y,"internalAbandon",this.qbV);this.addOnDisposeCallback(function(){g.Lb(m)})}; Jf=function(Y){this.L=Y;this.adVideoId=this.K=this.videoId=this.adCpn=this.contentCpn=null;this.J=!0;this.j=this.X=!1;this.adFormat=null;this.G="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; SOe=function(Y){Y.contentCpn=null;Y.adCpn=null;Y.videoId=null;Y.adVideoId=null;Y.adFormat=null;Y.G="AD_PLACEMENT_KIND_UNKNOWN";Y.actionType="unknown_type";Y.X=!1;Y.j=!1}; CpS=function(Y,u){Y=g.A(u);for(u=Y.next();!u.done;u=Y.next())if((u=u.value.renderer)&&(u.instreamVideoAdRenderer||u.linearAdSequenceRenderer||u.sandwichedLinearAdRenderer||u.instreamSurveyAdRenderer)){Kg("ad_i");g.pg({isMonetized:!0});break}}; fcY=function(Y){var u;(u=Y.L.getVideoData(1))!=null&&u.oV&&(Y.j=!1,u={},Y.K&&Y.videoId&&(u.cttAuthInfo={token:Y.K,videoId:Y.videoId}),Lg("video_to_ad",u))}; GA=function(Y){Y.j=!1;var u={};Y.K&&Y.videoId&&(u.cttAuthInfo={token:Y.K,videoId:Y.videoId});Lg("ad_to_video",u);QNt(Y)}; QNt=function(Y){if(Y.X)if(Y.G==="AD_PLACEMENT_KIND_START"&&Y.actionType==="video_to_ad")Gc("video_to_ad");else{var u={adBreakType:Jo(Y.G),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:Y.videoStreamType};Y.actionType==="ad_to_video"?(Y.contentCpn&&(u.targetCpn=Y.contentCpn),Y.videoId&&(u.targetVideoId=Y.videoId)):(Y.adCpn&&(u.targetCpn=Y.adCpn),Y.adVideoId&&(u.targetVideoId=Y.adVideoId));Y.adFormat&&(u.adType=Y.adFormat);Y.contentCpn&& (u.clientPlaybackNonce=Y.contentCpn);Y.videoId&&(u.videoId=Y.videoId);Y.adCpn&&(u.adClientPlaybackNonce=Y.adCpn);Y.adVideoId&&(u.adVideoId=Y.adVideoId);g.pg(u,Y.actionType);Y.L.Y().experiments.vz("html5_ads_csi_qoes")&&(u=Y.L.jl(Y.actionType==="ad_to_video"?1:2),u=(0,g.j2)()-1E3*u,BD("qoes",u,Y.actionType))}}; qR=function(Y){g.e.call(this);this.L=Y;this.K=new Map;this.j=new Kb(this);g.b(this,this.j);this.j.B(this.L,g.yk("ad"),this.onCueRangeEnter,this);this.j.B(this.L,g.Vk("ad"),this.onCueRangeExit,this)}; NQ7=function(Y,u,n,U,k,m,X){g.EE.call(this,u,n,{id:Y,namespace:"ad",priority:k,visible:U,associatedClipId:m,markerPositionMs:X})}; aX=function(Y){this.L=Y}; ift=function(Y,u){Y.L.cueVideoByPlayerVars(u,2)}; $G=function(Y){this.L=Y}; Y0=function(Y){this.L=Y;g.YF(this.L.Y().experiments,"tv_pacf_logging_sample_rate")}; Zfu=function(Y){return h0(Y,"html5_ssap_play_cached_preroll")}; fI=function(Y,u){u=u===void 0?!1:u;return Y.L.Y().V("html5_ssap_force_ads_ctmp")?!0:(u||Y.L.Y().gX())&&Y.L.Y().V("html5_ssap_pacf_qoe_ctmp")}; ul=function(Y){var u;return(u=Y.L.getVideoData(1)==null?void 0:!1)!=null?u:!1}; h0=function(Y,u){return Y.L.Y().V(u)}; TQS=function(Y){return Y.L.Y().V("substitute_ad_cpn_macro_in_ssdai")}; $B=function(Y){var u,n,U;return((u=Y.L.getVideoData(1).getPlayerResponse())==null?void 0:(n=u.playerConfig)==null?void 0:(U=n.daiConfig)==null?void 0:U.enableServerStitchedDai)||!1}; wne=function(Y){return Y.L.Y().V("html5_enable_vod_slar_with_notify_pacf")}; rrc=function(Y){return Y.L.Y().V("html5_recognize_predict_start_cue_point")}; R3=function(Y){return Y.L.Y().experiments.vz("enable_desktop_player_underlay")}; M5m=function(Y){return Y.L.Y().experiments.vz("html5_load_empty_player_in_media_break_sub_lra")}; CK=function(Y){return Y.L.Y().experiments.vz("html5_load_ads_instead_of_cue")}; fK=function(Y){return Y.L.Y().experiments.vz("html5_preload_ads")}; sNc=function(Y){return Y.L.Y().experiments.vz("should_ignore_cuepoints_during_lifa_preroll")}; c3=function(Y){return Y.L.Y().experiments.vz("enable_ads_control_flow_deterministic_id_generation")}; d6G=function(Y){return Y.L.Y().experiments.vz("enable_desktop_discovery_video_abandon_pings")||g.AA(Y.L.Y())}; GVm=function(Y){return Y.L.Y().experiments.vz("enable_progres_commands_lr_feeds")}; Yi=function(Y){return Y.L.Y().experiments.vz("html5_cuepoint_identifier_logging")}; E90=function(Y){Y=Y.L.getVideoData(1);return!!Y&&Y.V("html5_preload_first_vod_video_ad")&&!Y.isDaiEnabled()&&!Y.isLivePlayback}; Ar0=function(Y){return Y.L.Y().experiments.vz("html5_ssdai_enable_media_end_cue_range")}; jNA=function(Y){switch(Y){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; KEd=function(){g.ud.call(this);var Y=this;this.K={};this.addOnDisposeCallback(function(){for(var u=g.A(Object.keys(Y.K)),n=u.next();!n.done;n=u.next())delete Y.K[n.value]})}; na=function(){if(pEt===null){pEt=new KEd;jE(yY).j="b";var Y=jE(yY),u=eC(Y)=="h"||eC(Y)=="b",n=!(Uf(),!1);u&&n&&(Y.J=!0,Y.W=new Cuu)}return pEt}; LEG=function(Y,u,n){Y.K[u]=n}; t5m=function(Y){switch(Y){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; Un=function(Y,u,n){this.LG=Y;this.L=u;this.hJ=n;this.j=new Set;this.K=new Map;na().subscribe("adactiveviewmeasurable",this.R5,this);na().subscribe("adfullyviewableaudiblehalfdurationimpression",this.fC,this);na().subscribe("adviewableimpression",this.nC,this);na().subscribe("adaudioaudible",this.KC,this);na().subscribe("adaudiomeasurable",this.o5,this)}; mI=function(Y,u,n){var U=n.SL,k=n.g4,m=n.listener,X=n.Wr;n=n.gm===void 0?!1:n.gm;if(Y.K.has(u))Xj("Unexpected registration of layout in LidarApi");else{if(X){if(Y.j.has(X))return;Y.j.add(X)}Y.K.set(u,m);L3(Uf().ju,"fmd",1);dFA(jE(yY),U);var S=n?u:void 0;LEG(na(),u,{HB:function(){if(!k)return{};var C=Y.L.getPresentingPlayerType(!0),f;return(f=Y.L.getVideoData(C))!=null&&f.isAd()?{currentTime:Y.LG.get().getCurrentTimeSec(C,!1,S),duration:k,isPlaying:k0(Y.LG.get(),C).isPlaying(),isVpaid:!1,isYouTube:!0, volume:Y.LG.get().isMuted()?0:Y.LG.get().getVolume()/100}:{}}})}}; Xl=function(Y,u){Y.K.has(u)?(Y.K.delete(u),delete na().K[u]):Xj("Unexpected unregistration of layout in LidarApi")}; BQu=function(Y,u){if(Y.L.isLifaAdPlaying()){var n=Y.L.G_(!0,!0);Y.BL(u,n.width*.5*1.1,n.height*.25*1.1,n.width*.5*.9,n.height*.5*.9)}}; vZS=function(Y,u,n){var U={};oZd(Y,U,u,n);crd(U);U.LACT=PK(function(){return dl().toString()}); U.VIS=PK(function(){return Y.getVisibilityState().toString()}); U.SDKV="h.3.0";U.VOL=PK(function(){return Y.isMuted()?"0":Math.round(Y.getVolume()).toString()}); U.VED="";return U}; RP7=function(Y,u){var n={};if(u||!Y||!Y.kind)return n;if(Y.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||Y.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!Y.adTimeOffset||!Y.adTimeOffset.offsetStartMilliseconds)return g.tl(Error("malformed AdPlacementConfig")),n;n.MIDROLL_POS=PK(x3(Math.round(l5(Y.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else n.MIDROLL_POS=PK(x3("0"));return n}; PK=function(Y){return{toString:function(){return Y()}}}; D6B=function(Y,u,n){function U(S,C){(C=n[C])&&(m[S]=C)} function k(S,C){(C=n[C])&&(m[S]=X(C))} if(!n||g.i4(n))return Y;var m=Object.assign({},Y),X=u?encodeURIComponent:function(S){return S}; k("DV_VIEWABILITY","doubleVerifyViewability");k("IAS_VIEWABILITY","integralAdsViewability");k("MOAT_INIT","moatInit");k("MOAT_VIEWABILITY","moatViewability");U("GOOGLE_VIEWABILITY","googleViewability");U("VIEWABILITY","viewability");return m}; oZd=function(Y,u,n,U){u.CPN=PK(function(){var k;(k=Y.getVideoData(1))?k=k.clientPlaybackNonce:(g.Br(Error("Video data is null.")),k=null);return k}); u.AD_MT=PK(function(){if(U!=null)var k=U;else{var m=n;Y.Y().V("html5_ssap_use_cpn_to_get_time")||(m=void 0);if(Y.Y().V("enable_h5_shorts_ad_fill_ad_mt_macro")||Y.Y().V("enable_desktop_discovery_pings_ad_mt_macro")||g.AA(Y.Y())){var X=Y.getPresentingPlayerType(!0),S;k=((S=Y.getVideoData(X))==null?0:S.isAd())?x6u(Y,X,m):0}else k=x6u(Y,2,m)}return lcG(k)}); u.MT=PK(function(){return lcG(Y.getCurrentTime(1,!1))}); u.P_H=PK(function(){return Y.tJ().UE().height.toString()}); u.P_W=PK(function(){return Y.tJ().UE().width.toString()}); u.PV_H=PK(function(){return Y.tJ().getVideoContentRect().height.toString()}); u.PV_W=PK(function(){return Y.tJ().getVideoContentRect().width.toString()})}; lcG=function(Y){return Math.round(Math.max(0,Y*1E3)).toString()}; crd=function(Y){Y.CONN=PK(x3("0"));Y.WT=PK(function(){return Date.now().toString()})}; x6u=function(Y,u,n){return n!==void 0?Y.getCurrentTime(u,!1,n):Y.getCurrentTime(u,!1)}; hPA=function(){}; wES=function(Y,u,n,U,k){var m,X,S,C,f,Q,N,Z,T,r,K,L,R;g.l(function(c){switch(c.j){case 1:m=!!u.scrubReferrer;X=g.oe(u.baseUrl,D6B(n,m,U));S={};if(!u.headers){c.qF(2);break}C=Y.G();if(!C.K){f=C.getValue();c.qF(3);break}return g.D(c,C.K,4);case 4:f=c.K;case 3:Q=f;N=g.A(u.headers);for(Z=N.next();!Z.done;Z=N.next())switch(T=Z.value,T.headerType){case "VISITOR_ID":g.z6("VISITOR_DATA")&&(S["X-Goog-Visitor-Id"]=g.z6("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.z6("EOM_VISITOR_DATA")&&(S["X-Goog-EOM-Visitor-Id"]= g.z6("EOM_VISITOR_DATA"));break;case "USER_AUTH":Q&&(S.Authorization="Bearer "+Q);break;case "PLUS_PAGE_ID":(r=Y.J())&&(S["X-Goog-PageId"]=r);break;case "AUTH_USER":K=Y.K();!Q&&K&&(S["X-Goog-AuthUser"]=K);break;case "DATASYNC_ID":if(L=void 0,(L=Y.X())==null?0:L.vz("enable_datasync_id_header_in_web_vss_pings"))R=Y.j(),UU(X)&&g.z6("LOGGED_IN")&&R&&(S["X-YouTube-DataSync-Id"]=R)}"X-Goog-EOM-Visitor-Id"in S&&"X-Goog-Visitor-Id"in S&&delete S["X-Goog-Visitor-Id"];case 2:g.DX(X,void 0,m,Object.keys(S).length!== 0?S:void 0,"",!0,k),g.KY(c)}})}; WEm=function(Y,u,n,U,k){this.G=Y;this.J=u;this.K=n;this.j=U;this.X=k}; ePm=function(Y,u){this.K=Y;this.hJ=u}; Sj=function(Y,u,n,U,k,m,X){var S=S===void 0?new WEm(function(){var C=Y.Y(),f=Y.getVideoData(1);return g.DA(C,f?g.Qs(f):"")},function(){return Y.Y().pageId},function(){return Y.Y().jG},function(){var C; return(C=Y.Y().datasyncId)!=null?C:""},function(){return Y.Y().experiments}):S; this.L=Y;this.j=u;this.h_=n;this.SG=U;this.J_=k;this.hJ=m;this.i9=X;this.G=S;this.hL=null;this.K=new Map;this.X=new ePm(S,this.hJ)}; Ic7=function(Y,u,n,U,k){var m=C2(Y.j.get(),n);m?(n=Ti(Y,bfB(m),m,void 0,void 0,U),u.hasOwnProperty("baseUrl")?Y.G.send(u,n):Y.X.send(u,n,{},k)):Xj("Trying to ping from an unknown layout",void 0,void 0,{layoutId:n})}; DnS=function(Y,u,n,U,k,m){U=U===void 0?[]:U;var X=C2(Y.j.get(),u);if(X){var S=Y.h_.get().Zo(u,n),C=Ti(Y,bfB(X),X,k,m);U.forEach(function(f,Q){f.baseUrl&&(Y.X.send(f.baseUrl,C,S,f.attributionSrcMode),f.serializedAdPingMetadata&&Y.J_.g5("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,X,new iGA(f,Q),void 0,void 0,X.adLayoutLoggingData))})}else Xj("Trying to track from an unknown layout.",void 0,void 0,{layoutId:u, trackingType:n})}; Sr=function(Y,u){Y.L.sendVideoStatsEngageEvent(u,void 0,2)}; oj=function(Y,u){g.ka("adsClientStateChange",u)}; zPM=function(Y,u){Y.K.has(u.g$())?Xj("Trying to register an existing AdErrorInfoSupplier."):Y.K.set(u.g$(),u)}; gZG=function(Y,u){Y.K.delete(u.g$())||Xj("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Rj=function(Y,u,n){typeof n==="string"?Y.L.getVideoData(1).Zr(u,n):Y.L.getVideoData(1).fG(u,n)}; bfB=function(Y){var u=yl(Y.clientMetadata,"metadata_type_ad_placement_config");Y=yl(Y.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:u,cR:Y}}; Ti=function(Y,u,n,U,k,m){var X=n?EZA(Y):{},S=n?HfB(Y,n.layoutId):{},C=yrd(Y),f,Q=k!=null?k:(f=yD(Y.SG.get(),2))==null?void 0:f.clientPlaybackNonce;k=void 0;if(n){var N;if((N=Y.i9.K.get(n.layoutId))==null?0:N.gm)k=n.layoutId}N={};Y=Object.assign({},vZS(Y.L,k,U),RP7(u.adPlacementConfig,(n==null?void 0:n.renderingContent)!==void 0),S,X,C,(N.FINAL=PK(function(){return"1"}),N.AD_CPN=PK(function(){return Q||""}),N)); (n==null?void 0:n.renderingContent)!==void 0||(Y.SLOT_POS=PK(function(){return(u.cR||0).toString()})); n={};m=Object.assign({},Y,m);Y=g.A(Object.values(V5d));for(U=Y.next();!U.done;U=Y.next())U=U.value,X=m[U],X!=null&&X.toString()!=null&&(n[U]=X.toString());return n}; EZA=function(Y){var u={},n,U=(n=Y.hL)==null?void 0:n.aM/1E3;U!=null&&(u.SURVEY_ELAPSED_MS=PK(function(){return Math.round(U*1E3).toString()})); u.SURVEY_LOCAL_TIME_EPOCH_S=PK(function(){return Math.round(Date.now()/1E3).toString()}); return u}; HfB=function(Y,u){Y=Y.K.get(u);if(!Y)return{};Y=Y.bd();if(!Y)return{};u={};return u.YT_ERROR_CODE=Y.kF.toString(),u.ERRORCODE=Y.W6.toString(),u.ERROR_MSG=Y.errorMessage,u}; yrd=function(Y){var u={},n=Y.L.getVideoData(1);u.ASR=PK(function(){var U;return(U=n==null?void 0:n.Q3)!=null?U:null}); u.EI=PK(function(){var U;return(U=n==null?void 0:n.eventId)!=null?U:null}); return u}; Ca=function(Y,u,n){g.e.call(this);this.L=Y;this.Wk=u;this.hJ=n;this.listeners=[];this.Ur=null;this.SO=new Map;u=new g.j3(this);g.b(this,u);u.B(Y,"videodatachange",this.DNW);u.B(Y,"serverstitchedvideochange",this.sHk);this.T0=yD(this)}; yD=function(Y,u){var n=Y.L.getVideoData(u);return n?Y.Vp(n,u||Y.L.getPresentingPlayerType(!0)):null}; OfY=function(Y,u,n){var U=Y.Vp(u,n);Y.T0=U;Y.listeners.forEach(function(k){k.QX(U)})}; FEc=function(Y){switch(Y){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; fa=function(Y,u,n){g.e.call(this);this.L=Y;this.SG=u;this.hJ=n;this.listeners=[];this.Dt=[];this.K=function(){Xj("Called 'doUnlockPreroll' before it's initialized.")}; u=new Kb(this);n=new g.j3(this);g.b(this,n);g.b(this,u);u.B(Y,"progresssync",this.H0J);u.B(Y,"presentingplayerstatechange",this.U1F);u.B(Y,"fullscreentoggled",this.onFullscreenToggled);u.B(Y,"onVolumeChange",this.onVolumeChange);u.B(Y,"minimized",this.qr);u.B(Y,"overlayvisibilitychange",this.AD);u.B(Y,"shortsadswipe",this.MY);u.B(Y,"resize",this.pT);n.B(Y,g.yk("appad"),this.Hd)}; Q_=function(Y){ul(Y.hJ.get())||Y.K()}; Jru=function(Y,u){Y.Dt=Y.Dt.filter(function(n){return n!==u})}; Nc=function(Y,u,n){return Y.getCurrentTimeSec(u,n)}; il=function(Y,u){var n;u=(n=Y.SG.get().SO.get(u))!=null?n:null;if(u===null)return Xj("Expected ad video start time on playback timeline"),0;Y=Y.L.getCurrentTime(2,!0);return Y0){var m=u.end.toString();k.forEach(function(X){(X=X.config&&X.config.adPlacementConfig)&&X.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&X.adTimeOffset&&X.adTimeOffset.offsetEndMilliseconds==="-1"&&X.adTimeOffset.offsetEndMilliseconds!==m&&(X.adTimeOffset.offsetEndMilliseconds=m)}); U.map(function(X){return g.z(X,rp)}).forEach(function(X){var S; (X=X==null?void 0:(S=X.slotEntryTrigger)==null?void 0:S.mediaTimeRangeTrigger)&&X.offsetEndMilliseconds==="-1"&&(X.offsetEndMilliseconds=m)})}return{O_:k, adSlots:U,F0:!1,ssdaiAdsConfig:Y.ssdaiAdsConfig}}; sn=function(Y){g.e.call(this);this.L=Y;this.listeners=[];this.K=new Kb(this);g.b(this,this.K);this.K.B(this.L,"aduxclicked",this.onAdUxClicked);this.K.B(this.L,"aduxmouseover",this.gb);this.K.B(this.L,"aduxmouseout",this.WH);this.K.B(this.L,"muteadaccepted",this.gwG)}; udu=function(Y,u,n){u=g.dA(u,function(U){return new bbc(U,n,U.id)}); Y.L.Yw("onAdUxUpdate",u)}; dW=function(Y,u){Y=g.A(Y.listeners);for(var n=Y.next();!n.done;n=Y.next())u(n.value)}; GW=function(Y,u){this.j=Y;this.X=u===void 0?!1:u;this.K={}}; neg=function(Y,u){var n=Y.startSecs+Y.Ox;n=n<=0?null:n;if(n===null)return null;switch(Y.event){case "start":case "continue":case "stop":break;case "predictStart":if(u)break;return null;default:return null}u=Math.max(Y.startSecs,0);return{Dh:new GK(u,n),bu:new Qv(u,n-u,Y.context,Y.identifier,Y.event,Y.K)}}; UmQ=function(){this.K=[]}; RYu=function(Y,u,n){var U=g.g$(Y.K,u);if(U>=0)return u;u=-U-1;return u>=Y.K.length||Y.K[u]>n?null:Y.K[u]}; A9=function(Y,u,n){g.e.call(this);this.L=Y;this.hJ=u;this.AJ=n;this.listeners=[];this.G=!1;this.W7=[];this.K=null;this.J=new GW(this,rrc(u.get()));this.X=new UmQ;this.j=null}; k0C=function(Y,u){Y.W7.push(u);for(var n=!1,U=g.A(Y.listeners),k=U.next();!k.done;k=U.next())n=k.value.N3(u)||n;Y.G=n;Yi(Y.hJ.get())&&Rj(Y.AJ.get(),"onci","cpi."+u.identifier+";cpe."+u.event+";cps."+u.startSecs+";cbi."+n)}; XcX=function(Y,u){oj(Y.AJ.get(),{cuepointTrigger:{event:mmB(u.event),cuepointId:u.identifier,totalCueDurationMs:u.Ox*1E3,playheadTimeMs:u.K,cueStartTimeMs:u.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:Y.L.getVideoData(1).clientPlaybackNonce}})}; mmB=function(Y){switch(Y){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return N5(Y,"Unexpected cuepoint event")}}; jj=function(Y){this.L=Y}; Ka=function(Y){this.L=Y}; PBg=function(Y){switch(Y){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:N5(Y,"unknown transitionReason")}}; pa=function(){g.e.apply(this,arguments);this.dNk=new Map}; SuQ=function(Y){this.L=Y}; CBg=function(Y,u,n,U,k){g.e.call(this);var m=this,X=o_(function(){return new oY(m.hJ)}); g.b(this,X);var S=o_(function(){return new v3(X,m.hJ)}); g.b(this,S);var C=o_(function(){return new P3}); g.b(this,C);var f=o_(function(){return new mn(Y)}); g.b(this,f);var Q=o_(function(){return new RY(X,S,m.hJ)}); g.b(this,Q);var N=o_(function(){return new wg}); g.b(this,N);this.sb=o_(function(){return new sn(u)}); g.b(this,this.sb);this.Fs=o_(function(){return new vx(k)}); g.b(this,this.Fs);this.bD=o_(function(){return new Jf(u)}); g.b(this,this.bD);this.K0=o_(function(){return new qR(u)}); g.b(this,this.K0);this.oH=o_(function(){return new aX(u)}); g.b(this,this.oH);this.ZY=o_(function(){return new $G(u)}); g.b(this,this.ZY);this.hJ=o_(function(){return new Y0(u)}); g.b(this,this.hJ);var Z=o_(function(){return new Mc(U)}); g.b(this,Z);var T=o_(function(){return new uA(m.hJ)}); g.b(this,T);this.gV=o_(function(){return new jj(u)}); g.b(this,this.gV);this.Sf=o_(function(){return new xF}); g.b(this,this.Sf);this.SG=o_(function(){return new Ca(u,N,m.hJ)}); g.b(this,this.SG);var r=OY({SG:this.SG,hJ:this.hJ,Ux:T}),K=r.context,L=r.i9;this.J_=r.J_;this.i6=o_(function(){return new A9(u,m.hJ,m.AJ)}); g.b(this,this.i6);this.xk=o_(function(){return new Ka(u)}); g.b(this,this.xk);this.LG=o_(function(){return new fa(u,m.SG,m.hJ)}); g.b(this,this.LG);this.oZ=o_(function(){return new pa}); g.b(this,this.oZ);r=o_(function(){return new Fr(X,Q,S,m.hJ,T,"SLOT_TYPE_ABOVE_FEED",m.LG,m.gw,m.BM)}); g.b(this,r);this.Z_=o_(function(){return new lA(m.hJ)}); this.h_=o_(function(){return new Un(m.LG,u,m.hJ)}); g.b(this,this.h_);this.AJ=o_(function(){return new Sj(u,C,m.h_,m.SG,m.J_,m.hJ,L)}); g.b(this,this.AJ);this.g7=new Ul(n2,La,function(c,x,W,E){return vI(S.get(),c,x,W,E)},f,Q,S,T,this.hJ,this.SG); g.b(this,this.g7);this.jb=new ki(f,r,n,this.hJ,Y,this.SG,this.LG,this.bD);g.b(this,this.jb);var R=new FB(u,this.jb,this.LG,this.SG,this.i6);this.Lk=o_(function(){return R}); this.hc=R;this.gw=new a3(f,Q,this.Lk,this.i6,this.LG,this.hJ,this.AJ,this.xk);g.b(this,this.gw);this.lU=new XX(f,Q,this.K0,this.Lk,K);g.b(this,this.lU);this.GR=new Tf(this.hJ,f,Q,r,this.SG,this.lU,n,this.oH);g.b(this,this.GR);this.Pd=o_(function(){return new $F(Z,S,T,m.hJ,m.AJ,m.LG,m.xk)}); g.b(this,this.Pd);this.jW=o_(function(){return new Yw}); g.b(this,this.jW);this.tb=new Z$(Y,this.sb,this.hJ);g.b(this,this.tb);this.Eb=new Tv(Y);g.b(this,this.Eb);this.ej=new rg(Y);g.b(this,this.ej);this.At=new sl(Y,this.Lk,K);g.b(this,this.At);this.eW=new dg(Y,this.K0,this.LG,this.SG,K);g.b(this,this.eW);this.eP=new Gv(Y,this.SG);g.b(this,this.eP);this.BM=new K2(Y,this.i6,this.LG,this.AJ,this.Lk,this.gw);g.b(this,this.BM);this.u8=new AR(Y);g.b(this,this.u8);this.Dk=new B3(Y);g.b(this,this.Dk);this.Wv=new jA(Y);g.b(this,this.Wv);this.PN=new tR(Y);g.b(this, this.PN);this.Dk=new B3(Y);g.b(this,this.Dk);this.Ie=o_(function(){return new f2}); g.b(this,this.Ie);this.MI=o_(function(){return new Qm(m.LG)}); g.b(this,this.MI);this.fN=o_(function(){return new $n0(m.sb,m.AJ,Y,C,m.h_)}); g.b(this,this.fN);this.Y8=o_(function(){return new W1(m.GR,f,X)}); g.b(this,this.Y8);this.f1=o_(function(){return new II(m.hJ,m.AJ,m.u8,m.h_)}); g.b(this,this.f1);this.A4=o_(function(){return new e0(Y,m.Dk,m.u8,m.SG,m.xk,m.LG,m.oZ,m.AJ,N,m.i6,m.h_,m.Z_,m.oH,m.K0,m.bD,m.ZY,m.Fs,m.gV,m.hJ,C,K,L)}); g.b(this,this.A4);this.We=o_(function(){return new iwW(m.LG,m.AJ,m.Fs,m.hJ,m.h_,m.SG)}); g.b(this,this.We);this.F4=o_(function(){return new n9u(m.sb,m.LG,m.AJ,C,m.h_,m.ej,m.PN,m.Fs,m.hJ,n)}); g.b(this,this.F4);this.Fr=o_(function(){return new Ypu(m.sb,m.AJ,C)}); g.b(this,this.Fr);this.gi=new rW(Y,this.Sf,X);g.b(this,this.gi);this.FP={B8:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.GR],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gw],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.g7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.jb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lU]]),UG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pd],["SLOT_TYPE_ABOVE_FEED",this.jW],["SLOT_TYPE_FORECASTING",this.jW], ["SLOT_TYPE_IN_PLAYER",this.jW],["SLOT_TYPE_PLAYER_BYTES",this.jW],["SLOT_TYPE_PLAYER_UNDERLAY",this.jW],["SLOT_TYPE_PLAYBACK_TRACKING",this.jW],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.jW]]),Zp:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.tb],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.tb],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Eb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Eb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Eb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Eb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Eb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Eb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Eb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Eb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Eb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ej],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.At],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.eW],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.eW],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.eW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eW],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.eW],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.eW],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.eW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.eP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.eP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.u8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.At],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Wv],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.PN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Dk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.BM],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.BM],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.BM],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.BM],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.BM]]),FA:new Map([["SLOT_TYPE_ABOVE_FEED",this.Ie], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Ie],["SLOT_TYPE_FORECASTING",this.Ie],["SLOT_TYPE_IN_PLAYER",this.Ie],["SLOT_TYPE_PLAYER_BYTES",this.MI],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ie],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ie],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Ie]]),lA:new Map([["SLOT_TYPE_ABOVE_FEED",this.fN],["SLOT_TYPE_AD_BREAK_REQUEST",this.Y8],["SLOT_TYPE_FORECASTING",this.f1],["SLOT_TYPE_PLAYER_BYTES",this.A4],["SLOT_TYPE_PLAYBACK_TRACKING",this.We],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.We],["SLOT_TYPE_IN_PLAYER",this.F4],["SLOT_TYPE_PLAYER_UNDERLAY",this.Fr]])};this.listeners=[C.get()];this.jH={GR:this.GR,nu:this.hJ.get(),cz:this.Fs.get(),EH:this.LG.get(),jb:this.jb,rl:X.get(),Ng:this.Sf.get(),ib:this.tb,Lu:C.get(),vM:this.SG.get()}}; fu$=function(Y,u,n,U,k){g.e.call(this);var m=this,X=o_(function(){return new oY(m.hJ)}); g.b(this,X);var S=o_(function(){return new v3(X,m.hJ)}); g.b(this,S);var C=o_(function(){return new P3}); g.b(this,C);var f=o_(function(){return new mn(Y)}); g.b(this,f);var Q=o_(function(){return new RY(X,S,m.hJ)}); g.b(this,Q);var N=o_(function(){return new wg}); g.b(this,N);this.sb=o_(function(){return new sn(u)}); g.b(this,this.sb);this.Fs=o_(function(){return new vx(k)}); g.b(this,this.Fs);this.bD=o_(function(){return new Jf(u)}); g.b(this,this.bD);this.K0=o_(function(){return new qR(u)}); g.b(this,this.K0);this.oH=o_(function(){return new aX(u)}); g.b(this,this.oH);this.ZY=o_(function(){return new $G(u)}); g.b(this,this.ZY);this.hJ=o_(function(){return new Y0(u)}); g.b(this,this.hJ);var Z=o_(function(){return new Mc(U)}); g.b(this,Z);var T=o_(function(){return new uA(m.hJ)}); g.b(this,T);var r=o_(function(){return new Fr(X,Q,S,m.hJ,T,null,null,m.gw,m.BM)}); g.b(this,r);this.gV=o_(function(){return new jj(u)}); g.b(this,this.gV);this.Sf=o_(function(){return new xF}); g.b(this,this.Sf);this.SG=o_(function(){return new Ca(u,N,m.hJ)}); g.b(this,this.SG);var K=OY({SG:this.SG,hJ:this.hJ,Ux:T}),L=K.context,R=K.i9;this.J_=K.J_;this.i6=o_(function(){return new A9(u,m.hJ,m.AJ)}); this.LG=o_(function(){return new fa(u,m.SG,m.hJ)}); g.b(this,this.LG);this.oZ=o_(function(){return new pa}); g.b(this,this.oZ);this.h_=o_(function(){return new Un(m.LG,u,m.hJ)}); g.b(this,this.h_);this.AJ=o_(function(){return new Sj(u,C,m.h_,m.SG,m.J_,m.hJ,R)}); g.b(this,this.AJ);this.Z_=o_(function(){return new lA(m.hJ)}); g.b(this,this.Z_);this.g7=new Ul(n2,La,function(x,W,E,J){return vI(S.get(),x,W,E,J)},f,Q,S,T,this.hJ,this.SG); g.b(this,this.g7);this.jb=new ki(f,r,n,this.hJ,Y,this.SG,this.LG,this.bD);g.b(this,this.jb);var c=new FB(u,this.jb,this.LG,this.SG,this.i6);this.Lk=o_(function(){return c}); this.hc=c;this.gw=new a3(f,Q,this.Lk,this.i6,this.LG,this.hJ,this.AJ);g.b(this,this.gw);this.lU=new XX(f,Q,this.K0,this.Lk,L);g.b(this,this.lU);this.GR=new Tf(this.hJ,f,Q,r,this.SG,this.lU,n,this.oH);g.b(this,this.GR);this.Pd=o_(function(){return new $F(Z,S,T,m.hJ,m.AJ,m.LG)}); g.b(this,this.Pd);this.jW=o_(function(){return new Yw}); g.b(this,this.jW);this.tb=new Z$(Y,this.sb,this.hJ);g.b(this,this.tb);this.Eb=new Tv(Y);g.b(this,this.Eb);this.ej=new rg(Y);g.b(this,this.ej);this.At=new sl(Y,this.Lk,L);g.b(this,this.At);this.eW=new dg(Y,this.K0,this.LG,this.SG,L);g.b(this,this.eW);this.u8=new AR(Y);g.b(this,this.u8);this.Wv=new jA(Y);g.b(this,this.Wv);this.PN=new tR(Y);g.b(this,this.PN);this.xk=o_(function(){return new Ka(u)}); g.b(this,this.xk);this.Dk=new B3(Y);g.b(this,this.Dk);this.BM=new K2(Y,this.i6,this.LG,this.AJ,this.Lk,this.gw);g.b(this,this.BM);this.Ie=o_(function(){return new f2}); g.b(this,this.Ie);this.MI=o_(function(){return new Qm(m.LG)}); g.b(this,this.MI);this.Y8=o_(function(){return new W1(m.GR,f,X)}); g.b(this,this.Y8);this.f1=o_(function(){return new II(m.hJ,m.AJ,m.u8,m.h_)}); g.b(this,this.f1);this.F4=o_(function(){return new UJm(m.sb,m.LG,m.AJ,C,m.h_,m.ej,m.PN,m.Fs,m.hJ,n)}); g.b(this,this.F4);this.A4=o_(function(){return new bq(Y,m.Dk,m.u8,m.AJ,m.h_,m.Z_,m.oH,m.SG,m.LG,m.oZ,m.K0,m.bD,m.ZY,m.Fs,m.gV,m.hJ,m.xk,L,R)}); g.b(this,this.A4);this.gi=new rW(Y,this.Sf,X);g.b(this,this.gi);this.FP={B8:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.GR],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gw],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.g7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.jb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lU]]),UG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pd],["SLOT_TYPE_FORECASTING",this.jW],["SLOT_TYPE_IN_PLAYER",this.jW], ["SLOT_TYPE_PLAYER_BYTES",this.jW]]),Zp:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.tb],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Eb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Eb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Eb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Eb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Eb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Eb], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Eb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ej],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.At],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eW],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.eW],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.eW],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.u8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.At],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Wv],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.PN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Dk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.BM],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.BM],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.BM],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.BM],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.BM]]),FA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ie],["SLOT_TYPE_FORECASTING",this.Ie],["SLOT_TYPE_IN_PLAYER",this.Ie],["SLOT_TYPE_PLAYER_BYTES",this.MI]]), lA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Y8],["SLOT_TYPE_FORECASTING",this.f1],["SLOT_TYPE_IN_PLAYER",this.F4],["SLOT_TYPE_PLAYER_BYTES",this.A4]])};this.listeners=[C.get()];this.jH={GR:this.GR,nu:this.hJ.get(),cz:this.Fs.get(),EH:this.LG.get(),jb:this.jb,rl:X.get(),Ng:this.Sf.get(),ib:this.tb,Lu:C.get(),vM:this.SG.get()}}; Qt$=function(Y,u,n,U,k){g.e.call(this);var m=this,X=o_(function(){return new oY(m.hJ)}); g.b(this,X);var S=o_(function(){return new v3(X,m.hJ)}); g.b(this,S);var C=o_(function(){return new P3}); g.b(this,C);var f=o_(function(){return new mn(Y)}); g.b(this,f);var Q=o_(function(){return new RY(X,S,m.hJ)}); g.b(this,Q);var N=o_(function(){return new wg}); g.b(this,N);this.sb=o_(function(){return new sn(u)}); g.b(this,this.sb);this.Fs=o_(function(){return new vx(k)}); g.b(this,this.Fs);this.bD=o_(function(){return new Jf(u)}); g.b(this,this.bD);this.K0=o_(function(){return new qR(u)}); g.b(this,this.K0);this.oH=o_(function(){return new aX(u)}); g.b(this,this.oH);this.ZY=o_(function(){return new $G(u)}); g.b(this,this.ZY);this.hJ=o_(function(){return new Y0(u)}); g.b(this,this.hJ);var Z=o_(function(){return new Mc(U)}); g.b(this,Z);var T=o_(function(){return new uA(m.hJ)}); g.b(this,T);var r=o_(function(){return new Fr(X,Q,S,m.hJ,T,null,null,null,null)}); g.b(this,r);this.gV=o_(function(){return new jj(u)}); g.b(this,this.gV);this.SG=o_(function(){return new Ca(u,N,m.hJ)}); g.b(this,this.SG);var K=OY({SG:this.SG,hJ:this.hJ,Ux:T}),L=K.context,R=K.i9;this.J_=K.J_;this.LG=o_(function(){return new fa(u,m.SG,m.hJ)}); g.b(this,this.LG);this.oZ=o_(function(){return new pa}); g.b(this,this.oZ);this.h_=o_(function(){return new Un(m.LG,u,m.hJ)}); g.b(this,this.h_);this.AJ=o_(function(){return new Sj(u,C,m.h_,m.SG,m.J_,m.hJ,R)}); g.b(this,this.AJ);this.Z_=o_(function(){return new lA(m.hJ)}); g.b(this,this.Z_);this.g7=new Ul(n2,La,function(x,W,E,J){return vI(S.get(),x,W,E,J)},f,Q,S,T,this.hJ,this.SG); g.b(this,this.g7);this.jb=new ki(f,r,n,this.hJ,Y,this.SG,this.LG,this.bD);g.b(this,this.jb);var c=new FB(u,this.jb,this.LG,this.SG);this.Lk=o_(function(){return c}); this.hc=c;this.lU=new XX(f,Q,this.K0,this.Lk,L);g.b(this,this.lU);this.GR=new Tf(this.hJ,f,Q,r,this.SG,this.lU,n,this.oH);g.b(this,this.GR);this.Pd=o_(function(){return new $F(Z,S,T,m.hJ,m.AJ,m.LG)}); g.b(this,this.Pd);this.jW=o_(function(){return new Yw}); g.b(this,this.jW);this.tb=new Z$(Y,this.sb,this.hJ);g.b(this,this.tb);this.Eb=new Tv(Y);g.b(this,this.Eb);this.At=new sl(Y,this.Lk,L);g.b(this,this.At);this.eW=new dg(Y,this.K0,this.LG,this.SG,L);g.b(this,this.eW);this.u8=new AR(Y);g.b(this,this.u8);this.Wv=new jA(Y);g.b(this,this.Wv);this.xk=o_(function(){return new Ka(u)}); g.b(this,this.xk);this.Dk=new B3(Y);g.b(this,this.Dk);this.Ie=o_(function(){return new f2}); g.b(this,this.Ie);this.MI=o_(function(){return new Qm(m.LG)}); g.b(this,this.MI);this.Y8=o_(function(){return new W1(m.GR,f,X)}); g.b(this,this.Y8);this.f1=o_(function(){return new II(m.hJ,m.AJ,m.u8,m.h_)}); g.b(this,this.f1);this.Ua=o_(function(){return new N5t(m.sb,m.LG,m.AJ,C,n,m.hJ)}); g.b(this,this.Ua);this.A4=o_(function(){return new bq(Y,m.Dk,m.u8,m.AJ,m.h_,m.Z_,m.oH,m.SG,m.LG,m.oZ,m.K0,m.bD,m.ZY,m.Fs,m.gV,m.hJ,m.xk,L,R)}); g.b(this,this.A4);this.FP={B8:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.GR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.g7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.jb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lU]]),UG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pd],["SLOT_TYPE_FORECASTING",this.jW],["SLOT_TYPE_IN_PLAYER",this.jW],["SLOT_TYPE_PLAYER_BYTES",this.jW]]),Zp:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.tb],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Eb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Eb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Eb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Eb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Eb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Eb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Eb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.At],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eW],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.eW],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.u8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.At],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Wv],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Dk]]),FA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ie],["SLOT_TYPE_ABOVE_FEED",this.Ie],["SLOT_TYPE_FORECASTING",this.Ie],["SLOT_TYPE_IN_PLAYER",this.Ie],["SLOT_TYPE_PLAYER_BYTES",this.MI]]),lA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Y8],["SLOT_TYPE_FORECASTING",this.f1],["SLOT_TYPE_IN_PLAYER", this.Ua],["SLOT_TYPE_PLAYER_BYTES",this.A4]])};this.listeners=[C.get()];this.jH={GR:this.GR,nu:this.hJ.get(),cz:this.Fs.get(),EH:this.LG.get(),jb:this.jb,rl:X.get(),Ng:null,ib:this.tb,Lu:C.get(),vM:this.SG.get()}}; NGq=function(Y,u,n,U,k){g.e.call(this);var m=this,X=o_(function(){return new oY(m.hJ)}); g.b(this,X);var S=o_(function(){return new v3(X,m.hJ)}); g.b(this,S);var C=o_(function(){return new P3}); g.b(this,C);var f=o_(function(){return new mn(Y)}); g.b(this,f);var Q=o_(function(){return new RY(X,S,m.hJ)}); g.b(this,Q);var N=o_(function(){return new wg}); g.b(this,N);this.sK=o_(function(){return new SuQ(u)}); g.b(this,this.sK);this.sb=o_(function(){return new sn(u)}); g.b(this,this.sb);this.Fs=o_(function(){return new vx(k)}); g.b(this,this.Fs);this.bD=o_(function(){return new Jf(u)}); g.b(this,this.bD);this.K0=o_(function(){return new qR(u)}); g.b(this,this.K0);this.oH=o_(function(){return new aX(u)}); g.b(this,this.oH);this.ZY=o_(function(){return new $G(u)}); g.b(this,this.ZY);this.hJ=o_(function(){return new Y0(u)}); g.b(this,this.hJ);var Z=o_(function(){return new Mc(U)}); g.b(this,Z);var T=o_(function(){return new uA(m.hJ)}); g.b(this,T);var r=o_(function(){return new Fr(X,Q,S,m.hJ,T,null,null,null,null)}); g.b(this,r);this.gV=o_(function(){return new jj(u)}); g.b(this,this.gV);this.SG=o_(function(){return new Ca(u,N,m.hJ)}); g.b(this,this.SG);var K=OY({SG:this.SG,hJ:this.hJ,Ux:T}),L=K.context,R=K.i9;this.J_=K.J_;this.LG=o_(function(){return new fa(u,m.SG,m.hJ)}); g.b(this,this.LG);this.oZ=o_(function(){return new pa}); g.b(this,this.oZ);this.h_=o_(function(){return new Un(m.LG,u,m.hJ)}); g.b(this,this.h_);this.AJ=o_(function(){return new Sj(u,C,m.h_,m.SG,m.J_,m.hJ,R)}); g.b(this,this.AJ);this.Z_=o_(function(){return new lA(m.hJ)}); g.b(this,this.Z_);this.g7=new Ul(Ii0,La,function(x,W,E,J){return fp7(S.get(),x,W,E,J)},f,Q,S,T,this.hJ,this.SG); g.b(this,this.g7);this.jb=new ki(f,r,n,this.hJ,Y,this.SG,this.LG,this.bD);g.b(this,this.jb);var c=new FB(u,this.jb,this.LG,this.SG);this.Lk=o_(function(){return c}); this.hc=c;this.lU=new XX(f,Q,this.K0,this.Lk,L);g.b(this,this.lU);this.GR=new Tf(this.hJ,f,Q,r,this.SG,this.lU,n,this.oH);g.b(this,this.GR);this.Pd=o_(function(){return new $F(Z,S,T,m.hJ,m.AJ,m.LG)}); g.b(this,this.Pd);this.jW=o_(function(){return new Yw}); g.b(this,this.jW);this.tb=new Z$(Y,this.sb,this.hJ);g.b(this,this.tb);this.Eb=new Tv(Y);g.b(this,this.Eb);this.At=new sl(Y,this.Lk,L);g.b(this,this.At);this.eW=new dg(Y,this.K0,this.LG,this.SG,L);g.b(this,this.eW);this.u8=new AR(Y);g.b(this,this.u8);this.Wv=new jA(Y);g.b(this,this.Wv);this.xk=o_(function(){return new Ka(u)}); g.b(this,this.xk);this.Dk=new B3(Y);g.b(this,this.Dk);this.Ie=o_(function(){return new f2}); g.b(this,this.Ie);this.MI=o_(function(){return new Qm(m.LG)}); g.b(this,this.MI);this.Y8=o_(function(){return new W1(m.GR,f,X)}); g.b(this,this.Y8);this.f1=o_(function(){return new II(m.hJ,m.AJ,m.u8,m.h_)}); g.b(this,this.f1);this.A4=o_(function(){return new bq(Y,m.Dk,m.u8,m.AJ,m.h_,m.Z_,m.oH,m.SG,m.LG,m.oZ,m.K0,m.bD,m.ZY,m.Fs,m.gV,m.hJ,m.xk,L,R)}); g.b(this,this.A4);this.p7=o_(function(){return new mJ0(m.sb,m.LG,m.AJ,C,m.sK,n,m.SG)}); g.b(this,this.p7);this.FP={B8:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.GR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.g7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.jb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lU]]),UG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pd],["SLOT_TYPE_FORECASTING",this.jW],["SLOT_TYPE_IN_PLAYER",this.jW],["SLOT_TYPE_PLAYER_BYTES",this.jW]]),Zp:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.tb],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Eb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Eb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Eb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Eb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Eb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Eb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Eb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.At],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.eW],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.eW],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.u8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.At],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Wv],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Dk]]),FA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ie],["SLOT_TYPE_FORECASTING",this.Ie],["SLOT_TYPE_IN_PLAYER",this.Ie],["SLOT_TYPE_PLAYER_BYTES",this.MI]]),lA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Y8],["SLOT_TYPE_FORECASTING",this.f1],["SLOT_TYPE_IN_PLAYER",this.p7],["SLOT_TYPE_PLAYER_BYTES", this.A4]])};this.listeners=[C.get()];this.jH={GR:this.GR,nu:this.hJ.get(),cz:this.Fs.get(),EH:this.LG.get(),jb:this.jb,rl:X.get(),Ng:null,ib:this.tb,Lu:C.get(),vM:this.SG.get()}}; iYu=function(Y,u,n,U,k){g.e.call(this);var m=this,X=o_(function(){return new oY(m.hJ)}); g.b(this,X);var S=o_(function(){return new v3(X,m.hJ)}); g.b(this,S);var C=o_(function(){return new P3}); g.b(this,C);var f=o_(function(){return new mn(Y)}); g.b(this,f);var Q=o_(function(){return new RY(X,S,m.hJ)}); g.b(this,Q);var N=o_(function(){return new wg}); g.b(this,N);this.sK=o_(function(){return new SuQ(u)}); g.b(this,this.sK);this.sb=o_(function(){return new sn(u)}); g.b(this,this.sb);this.Fs=o_(function(){return new vx(k)}); g.b(this,this.Fs);this.bD=o_(function(){return new Jf(u)}); g.b(this,this.bD);this.K0=o_(function(){return new qR(u)}); g.b(this,this.K0);this.oH=o_(function(){return new aX(u)}); g.b(this,this.oH);this.ZY=o_(function(){return new $G(u)}); g.b(this,this.ZY);this.hJ=o_(function(){return new Y0(u)}); g.b(this,this.hJ);var Z=o_(function(){return new Mc(U)}); g.b(this,Z);var T=o_(function(){return new uA(m.hJ)}); g.b(this,T);this.gV=o_(function(){return new jj(u)}); g.b(this,this.gV);this.SG=o_(function(){return new Ca(u,N,m.hJ)}); g.b(this,this.SG);var r=OY({SG:this.SG,hJ:this.hJ,Ux:T}),K=r.context,L=r.i9;this.J_=r.J_;this.i6=o_(function(){return new A9(u,m.hJ,m.AJ)}); g.b(this,this.i6);this.xk=o_(function(){return new Ka(u)}); g.b(this,this.xk);this.LG=o_(function(){return new fa(u,m.SG,m.hJ)}); g.b(this,this.LG);this.oZ=o_(function(){return new pa}); g.b(this,this.oZ);r=o_(function(){return new Fr(X,Q,S,m.hJ,T,null,m.LG,m.gw,m.BM,3)}); g.b(this,r);this.Z_=o_(function(){return new lA(m.hJ)}); this.h_=o_(function(){return new Un(m.LG,u,m.hJ)}); g.b(this,this.h_);this.AJ=o_(function(){return new Sj(u,C,m.h_,m.SG,m.J_,m.hJ,L)}); g.b(this,this.AJ);this.jb=new ki(f,r,n,this.hJ,Y,this.SG,this.LG,this.bD);g.b(this,this.jb);var R=new FB(u,this.jb,this.LG,this.SG,this.i6);this.Lk=o_(function(){return R}); this.hc=R;this.g7=new Ul(zOu,La,function(c,x,W,E){return fp7(S.get(),c,x,W,E)},f,Q,S,T,this.hJ,this.SG); g.b(this,this.g7);this.gw=new a3(f,Q,this.Lk,this.i6,this.LG,this.hJ,this.AJ,this.xk);g.b(this,this.gw);this.lU=new XX(f,Q,this.K0,this.Lk,K);g.b(this,this.lU);this.GR=new Tf(this.hJ,f,Q,r,this.SG,this.lU,n,this.oH);g.b(this,this.GR);this.Pd=o_(function(){return new $F(Z,S,T,m.hJ,m.AJ,m.LG,m.xk)}); g.b(this,this.Pd);this.jW=o_(function(){return new Yw}); g.b(this,this.jW);this.tb=new Z$(Y,this.sb,this.hJ);g.b(this,this.tb);this.Eb=new Tv(Y);g.b(this,this.Eb);this.At=new sl(Y,this.Lk,K);g.b(this,this.At);this.eW=new dg(Y,this.K0,this.LG,this.SG,K);g.b(this,this.eW);this.eP=new Gv(Y,this.SG);g.b(this,this.eP);this.BM=new K2(Y,this.i6,this.LG,this.AJ,this.Lk,this.gw);g.b(this,this.BM);this.u8=new AR(Y);g.b(this,this.u8);this.Wv=new jA(Y);g.b(this,this.Wv);this.Dk=new B3(Y);g.b(this,this.Dk);this.Ie=o_(function(){return new f2}); g.b(this,this.Ie);this.MI=o_(function(){return new Qm(m.LG)}); g.b(this,this.MI);this.Y8=o_(function(){return new W1(m.GR,f,X)}); g.b(this,this.Y8);this.f1=o_(function(){return new II(m.hJ,m.AJ,m.u8,m.h_)}); g.b(this,this.f1);this.A4=o_(function(){return new e0(Y,m.Dk,m.u8,m.SG,m.xk,m.LG,m.oZ,m.AJ,N,m.i6,m.h_,m.Z_,m.oH,m.K0,m.bD,m.ZY,m.Fs,m.gV,m.hJ,C,K,L)}); g.b(this,this.A4);this.F4=o_(function(){return new Xlu(m.sb,m.LG,m.AJ,C,m.sK,n,m.hJ,m.SG)}); g.b(this,this.F4);this.FP={B8:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.GR],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gw],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.g7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.jb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lU]]),UG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pd],["SLOT_TYPE_FORECASTING",this.jW],["SLOT_TYPE_IN_PLAYER",this.jW],["SLOT_TYPE_PLAYER_BYTES",this.jW]]),Zp:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.tb],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Eb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Eb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Eb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Eb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Eb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Eb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Eb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.At],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.eW],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.eW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.eP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.eP],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.u8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.At],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Wv],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Dk],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.BM],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.BM],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.BM],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.BM],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.BM]]),FA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ie],["SLOT_TYPE_FORECASTING",this.Ie],["SLOT_TYPE_IN_PLAYER",this.Ie],["SLOT_TYPE_PLAYER_BYTES",this.MI]]),lA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Y8],["SLOT_TYPE_FORECASTING",this.f1],["SLOT_TYPE_PLAYER_BYTES",this.A4],["SLOT_TYPE_IN_PLAYER",this.F4]])};this.listeners=[C.get()]; this.jH={GR:this.GR,nu:this.hJ.get(),cz:this.Fs.get(),EH:this.LG.get(),jb:this.jb,rl:X.get(),Ng:null,ib:this.tb,Lu:C.get(),vM:this.SG.get()}}; TGG=function(Y,u,n,U){function k(){return m.j} g.e.call(this);var m=this;Y.Y().experiments.vz("html5_dispose_of_manager_before_dependency")?(this.K=ZYL(k,Y,u,n,U),this.j=(new cx(this.K)).X(),g.b(this,this.j),g.b(this,this.K)):(this.K=ZYL(k,Y,u,n,U),g.b(this,this.K),this.j=(new cx(this.K)).X(),g.b(this,this.j))}; t9=function(Y){return Y.K.jH}; ZYL=function(Y,u,n,U,k){try{var m=u.Y();if(g.KV(m))var X=new CBg(Y,u,n,U,k);else if(g.tA(m))X=new fu$(Y,u,n,U,k);else if(T_(m))X=new Qt$(Y,u,n,U,k);else if(g.R8(m))X=new NGq(Y,u,n,U,k);else if(g.CV(m))X=new iYu(Y,u,n,U,k);else throw new TypeError("Unknown web interface");return X}catch(S){return X=u.Y(),Xj("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:X.K.cplatform,interface:X.K.c,T5F:X.K.cver,zCc:X.K.ctheme,p32:X.K.cplayer,kYF:X.playerStyle}),new $6d(Y,u,n,U,k)}}; r7G=function(Y){eh.call(this,Y)}; MM$=function(Y,u,n,U,k){Vd.call(this,Y,{D:"div",C:"ytp-ad-timed-pie-countdown-container",U:[{D:"svg",C:"ytp-ad-timed-pie-countdown",T:{viewBox:"0 0 20 20"},U:[{D:"circle",C:"ytp-ad-timed-pie-countdown-background",T:{r:"10",cx:"10",cy:"10"}},{D:"circle",C:"ytp-ad-timed-pie-countdown-inner",T:{r:"5",cx:"10",cy:"10"}},{D:"circle",C:"ytp-ad-timed-pie-countdown-outer",T:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",u,n,U,k);this.G=this.Xk("ytp-ad-timed-pie-countdown-container");this.X=this.Xk("ytp-ad-timed-pie-countdown-inner"); this.W=this.Xk("ytp-ad-timed-pie-countdown-outer");this.j=Math.ceil(2*Math.PI*5);this.hide()}; stQ=function(Y,u,n,U,k,m){P6.call(this,Y,{D:"div",C:"ytp-ad-action-interstitial",T:{tabindex:"0"},U:[{D:"div",C:"ytp-ad-action-interstitial-background-container"},{D:"div",C:"ytp-ad-action-interstitial-slot",U:[{D:"div",C:"ytp-ad-action-interstitial-instream-info"},{D:"div",C:"ytp-ad-action-interstitial-card",U:[{D:"div",C:"ytp-ad-action-interstitial-image-container"},{D:"div",C:"ytp-ad-action-interstitial-headline-container"},{D:"div",C:"ytp-ad-action-interstitial-description-container"},{D:"div", C:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",u,n,U);this.BY=k;this.xF=m;this.navigationEndpoint=this.K=this.skipButton=this.j=this.actionButton=null;this.JJ=this.Xk("ytp-ad-action-interstitial-instream-info");this.Fk=this.Xk("ytp-ad-action-interstitial-image-container");this.N=new ld(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,"ytp-ad-action-interstitial-image");g.b(this,this.N);this.N.yF(this.Fk);this.rg=this.Xk("ytp-ad-action-interstitial-headline-container"); this.W=new H6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,"ytp-ad-action-interstitial-headline");g.b(this,this.W);this.W.yF(this.rg);this.oV=this.Xk("ytp-ad-action-interstitial-description-container");this.X=new H6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,"ytp-ad-action-interstitial-description");g.b(this,this.X);this.X.yF(this.oV);this.Pz=this.Xk("ytp-ad-action-interstitial-background-container");this.CG=new ld(this.api,this.layoutId,this.interactionLoggingClientData, this.cz,"ytp-ad-action-interstitial-background",!0);g.b(this,this.CG);this.CG.yF(this.Pz);this.dg=this.Xk("ytp-ad-action-interstitial-action-button-container");this.slot=this.Xk("ytp-ad-action-interstitial-slot");this.Cp=this.Xk("ytp-ad-action-interstitial-card");this.G=new Kb;g.b(this,this.G);this.hide()}; dmG=function(Y){var u=g.fi("html5-video-player");u&&g.PP(u,"ytp-ad-display-override",Y)}; KWB=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ytp-ad-overlay-slot",U:[{D:"div",C:"ytp-ad-overlay-container"}]},"invideo-overlay",u,n,U);this.N=[];this.Pz=this.rg=this.G=this.dg=this.JJ=null;this.CG=!1;this.W=null;this.oV=0;Y=this.Xk("ytp-ad-overlay-container");this.Fk=new uT(Y,45E3,6E3,.3,.4);g.b(this,this.Fk);this.X=G0C(this);g.b(this,this.X);this.X.yF(Y);this.j=A7Q(this);g.b(this,this.j);this.j.yF(Y);this.K=jtX(this);g.b(this,this.K);this.K.yF(Y);this.hide()}; G0C=function(Y){var u=new g.XV({D:"div",C:"ytp-ad-text-overlay",U:[{D:"div",C:"ytp-ad-overlay-ad-info-button-container"},{D:"div",C:"ytp-ad-overlay-close-container",U:[{D:"button",C:"ytp-ad-overlay-close-button",U:[te(pc$)]}]},{D:"div",C:"ytp-ad-overlay-title",RV:"{{title}}"},{D:"div",C:"ytp-ad-overlay-desc",RV:"{{description}}"},{D:"div",Oc:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],RV:"{{displayUrl}}"}]});Y.B(u.Xk("ytp-ad-overlay-title"),"click",function(n){BK(Y,u.element,n)}); Y.B(u.Xk("ytp-ad-overlay-link"),"click",function(n){BK(Y,u.element,n)}); Y.B(u.Xk("ytp-ad-overlay-close-container"),"click",Y.ZO);u.hide();return u}; A7Q=function(Y){var u=new g.XV({D:"div",Oc:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{D:"div",C:"ytp-ad-overlay-ad-info-button-container"},{D:"div",C:"ytp-ad-overlay-close-container",U:[{D:"button",C:"ytp-ad-overlay-close-button",U:[te(pc$)]}]},{D:"div",C:"ytp-ad-overlay-text-image",U:[{D:"img",T:{src:"{{imageUrl}}"}}]},{D:"div",C:"ytp-ad-overlay-title",RV:"{{title}}"},{D:"div",C:"ytp-ad-overlay-desc",RV:"{{description}}"},{D:"div",Oc:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], RV:"{{displayUrl}}"}]});Y.B(u.Xk("ytp-ad-overlay-title"),"click",function(n){BK(Y,u.element,n)}); Y.B(u.Xk("ytp-ad-overlay-link"),"click",function(n){BK(Y,u.element,n)}); Y.B(u.Xk("ytp-ad-overlay-close-container"),"click",Y.ZO);Y.B(u.Xk("ytp-ad-overlay-text-image"),"click",Y.hvg);u.hide();return u}; jtX=function(Y){var u=new g.XV({D:"div",C:"ytp-ad-image-overlay",U:[{D:"div",C:"ytp-ad-overlay-ad-info-button-container"},{D:"div",C:"ytp-ad-overlay-close-container",U:[{D:"button",C:"ytp-ad-overlay-close-button",U:[te(pc$)]}]},{D:"div",C:"ytp-ad-overlay-image",U:[{D:"img",T:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});Y.B(u.Xk("ytp-ad-overlay-image"),"click",function(n){BK(Y,u.element,n)}); Y.B(u.Xk("ytp-ad-overlay-close-container"),"click",Y.ZO);u.hide();return u}; LW$=function(Y,u){if(u){var n=g.z(u,Qn)||null;n==null?g.tl(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(u=g.fi("video-ads ytp-ad-module")||null,u==null?g.tl(Error("Could not locate the root ads container element to attach the ad info dialog.")):(Y.rg=new g.XV({D:"div",C:"ytp-ad-overlay-ad-info-dialog-container"}),g.b(Y,Y.rg),Y.rg.yF(u),u=new Ep(Y.api,Y.layoutId,Y.interactionLoggingClientData,Y.cz,Y.rg.element,!1),g.b(Y,u),u.init($C("ad-info-hover-text-button"),n,Y.macros), Y.W?(u.yF(Y.W,0),u.subscribe("f",Y.Wqa,Y),u.subscribe("e",Y.aI,Y),Y.B(Y.W,"click",Y.AJJ),Y.B(g.fi("ytp-ad-button",u.element),"click",function(){var U;if(g.z((U=g.z(n.button,g.ie))==null?void 0:U.serviceEndpoint,J6G))Y.CG=Y.api.getPlayerState(1)===2,Y.api.pauseVideo();else Y.api.onAdUxClicked("ad-info-hover-text-button",Y.layoutId)}),Y.Pz=u):g.tl(Error("Ad info button container within overlay ad was not present."))))}else g.Br(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; BGX=function(Y,u){if(tMG(Y,ow)||Y.api.isMinimized())return!1;var n=Sh(u.title),U=Sh(u.description);if(g.vq(n)||g.vq(U))return!1;Y.createServerVe(Y.X.element,u.trackingParams||null);Y.X.updateValue("title",Sh(u.title));Y.X.updateValue("description",Sh(u.description));Y.X.updateValue("displayUrl",Sh(u.displayUrl));u.navigationEndpoint&&g.DJ(Y.N,u.navigationEndpoint);Y.X.show();Y.Fk.start();Y.logVisibility(Y.X.element,!0);Y.B(Y.X.element,"mouseover",function(){Y.oV++}); return!0}; oeR=function(Y,u){if(tMG(Y,ow)||Y.api.isMinimized())return!1;var n=Sh(u.title),U=Sh(u.description);if(g.vq(n)||g.vq(U))return!1;Y.createServerVe(Y.j.element,u.trackingParams||null);Y.j.updateValue("title",Sh(u.title));Y.j.updateValue("description",Sh(u.description));Y.j.updateValue("displayUrl",Sh(u.displayUrl));Y.j.updateValue("imageUrl",Xk0(u.image));u.navigationEndpoint&&g.DJ(Y.N,u.navigationEndpoint);Y.dg=u.imageNavigationEndpoint||null;Y.j.show();Y.Fk.start();Y.logVisibility(Y.j.element,!0); Y.B(Y.j.element,"mouseover",function(){Y.oV++}); return!0}; c7$=function(Y,u){if(Y.api.isMinimized())return!1;var n=PWu(u.image),U=n;n.width0?(u=new cY(Y.api,Y.K), u.yF(Y.playerOverlay),g.b(Y,u)):(Y=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(u)),g.tl(Y))}}else g.tl(Error("addCommonComponents() needs to be called before starting countdown."))}; IuL=function(Y){function u(n){return{toString:function(){return n()}}} Y.macros.SURVEY_LOCAL_TIME_EPOCH_S=u(function(){var n=new Date;return(Math.round(n.valueOf()/1E3)+-1*n.getTimezoneOffset()*60).toString()}); Y.macros.SURVEY_ELAPSED_MS=u(function(){return(Date.now()-Y.X).toString()})}; zS$=function(Y,u,n,U,k){DV.call(this,Y,u,n,U,"survey-question-multi-select");this.oV=k;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}; geG=function(Y,u,n){Y.noneOfTheAbove=new hSJ(Y.api,Y.layoutId,Y.interactionLoggingClientData,Y.cz);Y.noneOfTheAbove.yF(Y.answers);Y.noneOfTheAbove.init($C("survey-none-of-the-above"),u,n)}; HYQ=function(Y){Y.j.forEach(function(u){u.K.toggleButton(!1)}); Eey(Y,!0)}; Eey=function(Y,u){var n=Y.G;Y=y7y(Y);u=u===void 0?!1:u;n.K&&(Y?n.K.hide():n.K.show(),u&&n.K instanceof NG&&!n.K.G&&myS(n.K,!1));n.j&&(Y?n.j.show():n.j.hide())}; y7y=function(Y){return Y.j.some(function(u){return u.K.isToggled()})||Y.noneOfTheAbove.button.isToggled()}; x0=function(Y,u,n,U,k){DV.call(this,Y,u,n,U,"survey-question-single-select",function(X){m.api.Y().V("supports_multi_step_on_desktop")&&k([X])}); var m=this;this.hide()}; ll=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ytp-ad-survey",U:[{D:"div",C:"ytp-ad-survey-questions"}]},"survey",u,n,U);this.questions=[];this.j=[];this.conditioningRules=[];this.K=0;this.W=this.Xk("ytp-ad-survey-questions");this.api.Y().V("fix_survey_color_contrast_on_destop")&&this.Xk("ytp-ad-survey").classList.add("color-contrast-fix");this.api.Y().V("web_enable_speedmaster")&&this.Xk("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; FWu=function(Y,u){var n=Y.j[u],U;(U=Y.X)==null||U.dispose();g.z(n,CB)?VMQ(Y,g.z(n,CB),Y.macros):g.z(n,S1)&&OYC(Y,g.z(n,S1),Y.macros);Y.K=u}; VMQ=function(Y,u,n){var U=new x0(Y.api,Y.layoutId,Y.interactionLoggingClientData,Y.cz,Y.G.bind(Y));U.yF(Y.W);U.init($C("survey-question-single-select"),u,n);Y.api.Y().V("supports_multi_step_on_desktop")?Y.X=U:Y.questions.push(U);g.b(Y,U)}; OYC=function(Y,u,n){var U=new zS$(Y.api,Y.layoutId,Y.interactionLoggingClientData,Y.cz,Y.G.bind(Y));U.yF(Y.W);U.init($C("survey-question-multi-select"),u,n);Y.api.Y().V("supports_multi_step_on_desktop")?Y.X=U:Y.questions.push(U);g.b(Y,U)}; h9=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ytp-ad-survey-interstitial",U:[{D:"div",C:"ytp-ad-survey-interstitial-contents",U:[{D:"div",C:"ytp-ad-survey-interstitial-logo",U:[{D:"div",C:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",C:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",u,n,U);this.K=this.actionButton=null;this.interstitial=this.Xk("ytp-ad-survey-interstitial");this.j=this.Xk("ytp-ad-survey-interstitial-contents");this.text=this.Xk("ytp-ad-survey-interstitial-text"); this.logoImage=this.Xk("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Je(this,500,!1,300);g.b(this,this.transition)}; J7X=function(Y,u){u=u&&xY(u)||"";if(g.vq(u))g.Br(Error("Found ThumbnailDetails without valid image URL"));else{var n=Y.style;Y=Y.style.cssText;var U=document.implementation.createHTMLDocument("").createElement("DIV");U.style.cssText=Y;Y=lke(U.style);n.cssText=[Y,'background-image:url("'+u+'");'].join("")}}; quC=function(Y){var u=g.fi("html5-video-player");u&&g.PP(u,"ytp-ad-display-override",Y)}; wW=function(Y,u,n,U,k,m){m=m===void 0?0:m;Vd.call(this,Y,{D:"div",C:"ytp-preview-ad",U:[{D:"div",C:"ytp-preview-ad__text"}]},"preview-ad",u,n,U,k);var X=this;this.oV=m;this.j=0;this.G=-1;this.X=this.Xk("ytp-preview-ad__text");switch(this.oV){case 1:this.X.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Je(this,400,!1,100,function(){X.hide()}); g.b(this,this.transition);this.hide()}; WK=function(Y,u,n,U){P6.call(this,Y,{D:"img",C:"ytp-ad-avatar"},"ad-avatar",u,n,U);this.hide()}; auB=function(Y){switch(Y.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; ej=function(Y,u,n,U,k,m){k=k===void 0?!1:k;m=m===void 0?!1:m;P6.call(this,Y,{D:"button",C:"ytp-ad-button-vm"},"ad-button",u,n,U);this.buttonText=this.buttonIcon=null;this.hide();this.K=k;this.j=m}; $mJ=function(Y,u,n,U,k){Vd.call(this,Y,{D:"div",Oc:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],U:[{D:"div",C:"ytp-ad-avatar-lockup-card__avatar_and_text_container",U:[{D:"div",C:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",u,n,U,k);this.startMilliseconds=0;this.adAvatar=new WK(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);g.b(this,this.adAvatar);Go(this.element,this.adAvatar.element,0);this.headline=new K1(this.api,this.layoutId, this.interactionLoggingClientData,this.cz);g.b(this,this.headline);this.headline.yF(this.Xk("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);g.b(this,this.description);this.description.yF(this.Xk("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new ej(this.api, this.layoutId,this.interactionLoggingClientData,this.cz);g.b(this,this.adButton);this.adButton.yF(this.element);this.hide()}; bl=function(Y,u,n,U){P6.call(this,Y,{D:"button",C:"ytp-skip-ad-button",U:[{D:"div",C:"ytp-skip-ad-button__text"}]},"skip-button",u,n,U);var k=this;this.j=!1;this.G=this.Xk("ytp-skip-ad-button__text");this.transition=new g.Je(this,500,!1,100,function(){k.hide()}); g.b(this,this.transition);this.K=new uT(this.element,15E3,5E3,.5,.5,!0);g.b(this,this.K);this.hide()}; YqC=function(Y,u,n,U,k){Vd.call(this,Y,{D:"div",C:"ytp-skip-ad"},"skip-ad",u,n,U,k);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.X=new bl(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);g.b(this,this.X);this.X.yF(this.element);this.hide()}; Iw=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ytp-visit-advertiser-link"},"visit-advertiser-link",u,n,U);this.hide()}; zW=function(Y,u,n,U,k){P6.call(this,Y,{D:"div",C:"ytp-ad-player-overlay-layout",U:[{D:"div",C:"ytp-ad-player-overlay-layout__player-card-container"},{D:"div",C:"ytp-ad-player-overlay-layout__ad-info-container"},{D:"div",C:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{D:"div",C:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",u,n,U);this.j=k;this.rg=this.Xk("ytp-ad-player-overlay-layout__player-card-container");this.K=this.Xk("ytp-ad-player-overlay-layout__ad-info-container"); this.N=this.Xk("ytp-ad-player-overlay-layout__skip-or-preview-container");this.oV=this.Xk("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; uG$=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ytp-ad-grid-card-text",U:[{D:"div",C:"ytp-ad-grid-card-text__metadata",U:[{D:"div",C:"ytp-ad-grid-card-text__metadata__headline"},{D:"div",C:"ytp-ad-grid-card-text__metadata__description",U:[{D:"div",C:"ytp-ad-grid-card-text__metadata__description__line"},{D:"div",C:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{D:"div",C:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",u,n,U);this.headline=new K1(this.api,this.layoutId,this.interactionLoggingClientData, this.cz);g.b(this,this.headline);this.headline.yF(this.Xk("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new ej(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,!0);g.b(this,this.moreInfoButton);this.moreInfoButton.yF(this.Xk("ytp-ad-grid-card-text__button"))}; gW=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",u,n,U);this.K=[]}; En=function(Y,u,n,U,k,m,X){Vd.call(this,Y,m,X,u,n,U,k);this.playerProgressOffsetMs=0;this.j=!1}; n$X=function(Y){var u=g.fi("html5-video-player");u&&g.PP(u,"ytp-ad-display-override",Y)}; UXu=function(Y,u,n,U,k){En.call(this,Y,u,n,U,k,{D:"div",C:"ytp-display-underlay-text-grid-cards",U:[{D:"div",C:"ytp-display-underlay-text-grid-cards__content_container",U:[{D:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header",U:[{D:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{D:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{D:"div",C:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {D:"div",C:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new gW(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);g.b(this,this.adGridCardCollection);this.adGridCardCollection.yF(this.Xk("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new ej(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);g.b(this,this.adButton);this.adButton.yF(this.Xk("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.X=this.Xk("ytp-display-underlay-text-grid-cards__content_container");this.G=this.Xk("ytp-display-underlay-text-grid-cards__content_container__header")}; HK=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ytp-ad-details-line"},"ad-details-line",u,n,U);this.K=[];this.hide()}; y_=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ytp-image-background",U:[{D:"img",C:"ytp-image-background-image"}]},"image-background",u,n,U);this.hide()}; k$$=function(Y,u,n,U,k){Vd.call(this,Y,{D:"svg",C:"ytp-timed-pie-countdown",T:{viewBox:"0 0 20 20"},U:[{D:"circle",C:"ytp-timed-pie-countdown__background",T:{r:"10",cx:"10",cy:"10"}},{D:"circle",C:"ytp-timed-pie-countdown__inner",T:{r:"5",cx:"10",cy:"10"}},{D:"circle",C:"ytp-timed-pie-countdown__outer",T:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",u,n,U,k);this.X=this.Xk("ytp-timed-pie-countdown__inner");this.j=Math.ceil(2*Math.PI*5);this.hide()}; V_=function(Y,u,n,U){P6.call(this,Y,{D:"div",C:"ytp-video-interstitial-buttoned-centered-layout",T:{tabindex:"0"},U:[{D:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content",U:[{D:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{D:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",U:[{D:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{D:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {D:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{D:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{D:"div",C:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",u,n,U);this.j=null;this.G=this.Xk("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.X=new Kb;g.b(this,this.X);this.hide()}; mX$=function(Y){var u=g.fi("html5-video-player");u&&g.PP(u,"ytp-ad-display-override",Y)}; XuC=function(Y){if(!Y.adAvatar||!g.z(Y.adAvatar,On))return g.tl(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!Y.headline)return g.tl(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!Y.adBadge||!g.z(Y.adBadge,Fl))return g.tl(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!Y.adButton||!g.z(Y.adButton,J9))return g.tl(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!Y.adInfoRenderer|| !g.z(Y.adInfoRenderer,Qn))return g.tl(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;Y=Y.durationMilliseconds||0;return typeof Y!=="number"||Y<=0?(g.tl(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+Y)),!1):!0}; qc=function(Y,u){u=u===void 0?2:u;g.ud.call(this);this.api=Y;this.K=null;this.P0=new Kb(this);g.b(this,this.P0);this.j=XFY;this.P0.B(this.api,"presentingplayerstatechange",this.Cc);this.K=this.P0.B(this.api,"progresssync",this.ye);this.ZT=u;this.ZT===1&&this.ye()}; aw=function(Y,u,n){eh.call(this,Y);this.api=Y;this.cz=u;this.components={};Y=new g.H({D:"div",Oc:["video-ads","ytp-ad-module"]});g.b(this,Y);$4&&g.UN(Y.element,"ytp-ads-tiny-mode");this.G=new Qx(Y.element);g.b(this,this.G);g.uc(this.api,Y.element,4);R3(n)&&(n=new g.H({D:"div",Oc:["ytp-ad-underlay"]}),g.b(this,n),this.j=new Qx(n.element),g.b(this,this.j),g.uc(this.api,n.element,0));g.b(this,lmM())}; PQ$=function(Y,u){Y=g.Zn(Y.components,u.id,null);Y==null&&g.Br(Error("Component not found for element id: "+u.id));return Y||null}; SqX=function(Y){g.vH.call(this,Y);var u=this;this.j=null;this.created=!1;this.X=Y.Y().V("h5_use_refactored_get_ad_break")?new YOB(this.player):new V4(this.player);this.G=function(){if(u.j!=null)return u.j;var U=new Ppu({ib:t9(u.K).ib,vM:t9(u.K).vM,L:u.player,nu:t9(u.K).nu,AJ:u.K.K.AJ,Lu:t9(u.K).Lu,ZY:u.K.K.ZY});u.j=U.SB;return u.j}; this.K=new TGG(this.player,this,this.X,this.G);g.b(this,this.K);var n=Y.Y();!iA(n)||g.CV(n)||T_(n)||(g.b(this,new aw(Y,t9(this.K).cz,t9(this.K).nu)),g.b(this,new r7G(Y)))}; CQL=function(Y){Y.created!==Y.loaded&&Xj("Created and loaded are out of sync")}; N$q=function(Y){g.vH.prototype.load.call(Y);var u=t9(Y.K).nu;try{Y.player.getRootNode().classList.add("ad-created")}catch(C){Xj(C instanceof Error?C:String(C))}var n=Y.player.getVideoData(1),U=n&&n.videoId||"",k=n&&n.getPlayerResponse()||{},m=(k&&k.adPlacements||[]).map(function(C){return C.adPlacementRenderer}),X=((k==null?void 0:k.adSlots)||[]).map(function(C){return g.z(C,rp)}); k=k.playerConfig&&k.playerConfig.daiConfig&&k.playerConfig.daiConfig.enableDai||!1;n&&n.W$();m=fJB(m,X,u,t9(Y.K).rl);X=n&&n.clientPlaybackNonce||"";n=n&&n.Sj||!1;if(fI(u,!0)&&n){var S;u={};(S=Y.player.getVideoData())==null||S.fG("p_cpb",(u.cc=X,u))}S=1E3*Y.player.getDuration(1);QLy(Y);Y.K.K.hc.Wd(X,S,n,m.Uo,m.j5,m.Uo,k,U)}; QLy=function(Y){var u,n;if(n=(u=Y.player.getVideoData(1))==null||!u.Sj)u=Y.player.Y(),n=iA(u)&&!g.NV(u)&&u.playerStyle==="desktop-polymer";n&&(Y=Y.player.getInternalApi(),Y.addEventListener("updateKevlarOrC3Companion",TDu),Y.addEventListener("updateEngagementPanelAction",rEW),Y.addEventListener("changeEngagementPanelVisibility",M2W),window.addEventListener("yt-navigate-start",dym))}; $0=function(Y,u){u===Y.V0&&(Y.V0=void 0)}; iRu=function(Y){var u=t9(Y.K).jb,n=u.G().Za("SLOT_TYPE_PLAYER_BYTES",1);u=yD(u.SG.get(),1).clientPlaybackNonce;var U=!1;n=g.A(n);for(var k=n.next();!k.done;k=n.next()){k=k.value;var m=k.slotType==="SLOT_TYPE_PLAYER_BYTES"&&k.slotEntryTrigger instanceof uy?k.slotEntryTrigger.C6:void 0;m&&m===u&&(U&&Xj("More than 1 preroll playerBytes slot detected",k),U=!0)}U||Q_(t9(Y.K).EH)}; ZRQ=function(Y){if(ul(t9(Y.K).nu))return!0;var u="";Y=g.A(t9(Y.K).Lu.sP.keys());for(var n=Y.next();!n.done;n=Y.next()){n=n.value;if(n.slotType==="SLOT_TYPE_PLAYER_BYTES"&&n.Ec==="core")return!0;u+=n.slotType+" "}Math.random()<.01&&Xj("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:u});return!1}; T$$=function(Y){Y=g.A(t9(Y.K).Lu.sP.values());for(var u=Y.next();!u.done;u=Y.next())if(u.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; I3G=function(Y,u,n,U,k,m,X){n=n===void 0?[]:n;U=U===void 0?"":U;k=k===void 0?"":k;var S=t9(Y.K).nu,C=Y.player.getVideoData(1);C&&C.getPlayerResponse();C&&C.W$();n=fJB(u,n,S,t9(Y.K).rl);yCd(t9(Y.K).GR,U,n.Uo,n.j5,u,k,m,X)}; fJB=function(Y,u,n,U){u={Uo:[],j5:u};Y=g.A(Y);for(var k=Y.next();!k.done;k=Y.next())if((k=k.value)&&k.renderer!=null){var m=k.renderer;if(!n.L.Y().V("html5_enable_vod_lasr_with_notify_pacf")){var X=void 0,S=void 0,C=void 0,f=void 0,Q=U;g.z((f=m.sandwichedLinearAdRenderer)==null?void 0:f.adVideoStart,O7)?(X=g.z((C=m.sandwichedLinearAdRenderer)==null?void 0:C.adVideoStart,O7),X=XxY(X,Q),g.DI(m.sandwichedLinearAdRenderer.adVideoStart,O7,X)):g.z((S=m.linearAdSequenceRenderer)==null?void 0:S.adStart,O7)&& (C=g.z((X=m.linearAdSequenceRenderer)==null?void 0:X.adStart,O7),X=XxY(C,Q),g.DI(m.linearAdSequenceRenderer.adStart,O7,X))}u.Uo.push(k)}return u}; g.YJ=function(Y){if(typeof DOMParser!="undefined")return Bp(new DOMParser,cHA(Y),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.u1=function(Y){g.e.call(this);this.callback=Y;this.K=new sN(0,0,.4,0,.2,1,1,1);this.delay=new g.EQ(this.next,window,this);g.b(this,this.delay)}; g.ryL=function(Y){var u=Y.Y();return u.lD&&!u.X&&g.nV(u)?Y.isEmbedsShortsMode()?(Y=Y.G_(),Math.min(Y.width,Y.height)>=315):!Y.WW():!1}; g.n7=function(Y){g.H.call(this,{D:"div",C:"ytp-more-videos-view",T:{tabIndex:"-1"}});var u=this;this.api=Y;this.j=!0;this.X=new g.j3(this);this.K=[];this.suggestionData=[];this.columns=this.containerWidth=this.Z=this.G=this.scrollPosition=0;this.title=new g.H({D:"h2",C:"ytp-related-title",RV:"{{title}}"});this.previous=new g.H({D:"button",Oc:["ytp-button","ytp-previous"],T:{"aria-label":"Mostrar videos sugeridos anteriores"},U:[g.N7()]});this.S=new g.u1(function(n){u.suggestions.element.scrollLeft= -n}); this.next=new g.H({D:"button",Oc:["ytp-button","ytp-next"],T:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},U:[g.id()]});g.b(this,this.X);this.W=Y.Y().G;g.b(this,this.title);this.title.yF(this.element);this.suggestions=new g.H({D:"div",C:"ytp-suggestions"});g.b(this,this.suggestions);this.suggestions.yF(this.element);g.b(this,this.previous);this.previous.yF(this.element);this.previous.listen("click",this.BV,this);g.b(this,this.S);MBq(this);g.b(this,this.next);this.next.yF(this.element);this.next.listen("click", this.kd,this);this.X.B(this.api,"appresize",this.pT);this.X.B(this.api,"fullscreentoggled",this.bS);this.X.B(this.api,"videodatachange",this.onVideoDataChange);this.pT(this.api.tJ().getPlayerSize());this.onVideoDataChange()}; MBq=function(Y){for(var u={cQ:0};u.cQ<16;u={cQ:u.cQ},++u.cQ){var n=new g.H({D:"a",C:"ytp-suggestion-link",T:{href:"{{link}}",target:Y.api.Y().N,"aria-label":"{{aria_label}}"},U:[{D:"div",C:"ytp-suggestion-image"},{D:"div",C:"ytp-suggestion-overlay",T:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},U:[{D:"div",C:"ytp-suggestion-title",RV:"{{title}}"},{D:"div",C:"ytp-suggestion-author",RV:"{{author_and_views}}"},{D:"div",T:{"data-is-live":"{{is_live}}"},C:"ytp-suggestion-duration", RV:"{{duration}}"}]}]});g.b(Y,n);var U=n.Xk("ytp-suggestion-link");g.yV(U,"transitionDelay",u.cQ/20+"s");Y.X.B(U,"click",function(k){return function(m){var X=k.cQ;if(Y.j){var S=Y.suggestionData[X],C=S.sessionData;Y.W&&Y.api.V("web_player_log_click_before_generating_ve_conversion_params")?(Y.api.logClick(Y.K[X].element),X=S.yg(),S={},g.af(Y.api,S),X=g.Mk(X,S),g.oP(X,Y.api,m)):g.BO(m,Y.api,Y.W,C||void 0)&&Y.api.EK(S.videoId,C,S.playlistId)}else m.preventDefault(),document.activeElement.blur()}}(u)); n.yF(Y.suggestions.element);Y.K.push(n);Y.api.createServerVe(n.element,n)}}; sL$=function(Y){if(Y.api.Y().V("web_player_log_click_before_generating_ve_conversion_params"))for(var u=Math.floor(-Y.scrollPosition/(Y.G+8)),n=Math.min(u+Y.columns,Y.suggestionData.length)-1;u<=n;u++)Y.api.logVisibility(Y.K[u].element,!0)}; g.Uk=function(Y){var u=Y.api.b9()?32:16;u=Y.Z/2+u;Y.next.element.style.bottom=u+"px";Y.previous.element.style.bottom=u+"px";u=Y.scrollPosition;var n=Y.containerWidth-Y.suggestionData.length*(Y.G+8);g.PP(Y.element,"ytp-scroll-min",u>=0);g.PP(Y.element,"ytp-scroll-max",u<=n)}; G$C=function(Y){for(var u=Y.suggestionData.length,n=0;n>>0)+"_",k=0;return u}); QA("Symbol.iterator",function(Y){if(Y)return Y;Y=Symbol("Symbol.iterator");for(var u="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n0&&n>0;)if(U[--n]!=u[--k])return!1;return k<=0}}); QA("Array.prototype.find",function(Y){return Y?Y:function(u,n){return NGu(this,u,n).VA}}); QA("Array.prototype.entries",function(Y){return Y?Y:function(){return Hc(this,function(u,n){return[u,n]})}}); QA("Array.prototype.keys",function(Y){return Y?Y:function(){return Hc(this,function(u){return u})}}); QA("String.prototype.startsWith",function(Y){return Y?Y:function(u,n){var U=gG(this,u,"startsWith");u+="";var k=U.length,m=u.length;n=Math.max(0,Math.min(n|0,U.length));for(var X=0;X=m}}); QA("Number.isFinite",function(Y){return Y?Y:function(u){return typeof u!=="number"?!1:!isNaN(u)&&u!==Infinity&&u!==-Infinity}}); QA("String.prototype.repeat",function(Y){return Y?Y:function(u){var n=gG(this,null,"repeat");if(u<0||u>1342177279)throw new RangeError("Invalid count value");u|=0;for(var U="";u;)if(u&1&&(U+=n),u>>>=1)n+=n;return U}}); QA("Object.entries",function(Y){return Y?Y:function(u){var n=[],U;for(U in u)Mm(u,U)&&n.push([U,u[U]]);return n}}); QA("Array.from",function(Y){return Y?Y:function(u,n,U){n=n!=null?n:function(S){return S}; var k=[],m=typeof Symbol!="undefined"&&Symbol.iterator&&u[Symbol.iterator];if(typeof m=="function"){u=m.call(u);for(var X=0;!(m=u.next()).done;)k.push(n.call(U,m.value,X++))}else for(m=u.length,X=0;X>>0;if(u===0)return 32;var n=0;(u&4294901760)===0&&(u<<=16,n+=16);(u&4278190080)===0&&(u<<=8,n+=8);(u&4026531840)===0&&(u<<=4,n+=4);(u&3221225472)===0&&(u<<=2,n+=2);(u&2147483648)===0&&n++;return n}}); QA("Number.isNaN",function(Y){return Y?Y:function(u){return typeof u==="number"&&isNaN(u)}}); QA("Array.prototype.values",function(Y){return Y?Y:function(){return Hc(this,function(u,n){return n})}}); QA("Array.prototype.fill",function(Y){return Y?Y:function(u,n,U){var k=this.length||0;n<0&&(n=Math.max(0,k+n));if(U==null||U>k)U=k;U=Number(U);U<0&&(U=Math.max(0,k+U));for(n=Number(n||0);n0&&n?n.repeat(Math.ceil(u/n.length)).substring(0,u):"")+U}}); QA("Array.prototype.findIndex",function(Y){return Y?Y:function(u,n){return NGu(this,u,n).Eu}}); QA("Promise.prototype.finally",function(Y){return Y?Y:function(u){return this.then(function(n){return Promise.resolve(u()).then(function(){return n})},function(n){return Promise.resolve(u()).then(function(){throw n; })})}}); QA("Math.imul",function(Y){return Y?Y:function(u,n){u=Number(u);n=Number(n);var U=u&65535,k=n&65535;return U*k+((u>>>16&65535)*k+U*(n>>>16&65535)<<16>>>0)|0}}); QA("Math.sign",function(Y){return Y?Y:function(u){u=Number(u);return u===0||isNaN(u)?u:u>0?1:-1}}); QA("WeakSet",function(Y){function u(n){this.K=new WeakMap;if(n){n=g.A(n);for(var U;!(U=n.next()).done;)this.add(U.value)}} if(function(){if(!Y||!Object.seal)return!1;try{var n=Object.seal({}),U=Object.seal({}),k=new Y([n]);if(!k.has(n)||k.has(U))return!1;k.delete(n);k.add(U);return!k.has(n)&&k.has(U)}catch(m){return!1}}())return Y; u.prototype.add=function(n){this.K.set(n,!0);return this}; u.prototype.has=function(n){return this.K.has(n)}; u.prototype.delete=function(n){return this.K.delete(n)}; return u}); QA("AggregateError",function(Y){function u(n,U){U=Error(U);"stack"in U&&(this.stack=U.stack);this.errors=n;this.message=U.message} if(Y)return Y;g.d(u,Error);u.prototype.name="AggregateError";return u}); QA("Array.prototype.copyWithin",function(Y){function u(n){n=Number(n);return n===Infinity||n===-Infinity?n:n|0} return Y?Y:function(n,U,k){var m=this.length;n=u(n);U=u(U);k=k===void 0?m:u(k);n=n<0?Math.max(m+n,0):Math.min(n,m);U=U<0?Math.max(m+U,0):Math.min(U,m);k=k<0?Math.max(m+k,0):Math.min(k,m);if(nU;)--k in this?this[--n]=this[k]:delete this[--n];return this}}); QA("Int8Array.prototype.copyWithin",VA);QA("Uint8Array.prototype.copyWithin",VA);QA("Uint8ClampedArray.prototype.copyWithin",VA);QA("Int16Array.prototype.copyWithin",VA);QA("Uint16Array.prototype.copyWithin",VA);QA("Int32Array.prototype.copyWithin",VA);QA("Uint32Array.prototype.copyWithin",VA);QA("Float32Array.prototype.copyWithin",VA);QA("Float64Array.prototype.copyWithin",VA);QA("Array.prototype.at",function(Y){return Y?Y:Fd}); QA("Int8Array.prototype.at",qm);QA("Uint8Array.prototype.at",qm);QA("Uint8ClampedArray.prototype.at",qm);QA("Int16Array.prototype.at",qm);QA("Uint16Array.prototype.at",qm);QA("Int32Array.prototype.at",qm);QA("Uint32Array.prototype.at",qm);QA("Float32Array.prototype.at",qm);QA("Float64Array.prototype.at",qm);QA("String.prototype.at",function(Y){return Y?Y:Fd}); QA("Array.prototype.findLastIndex",function(Y){return Y?Y:function(u,n){return iYc(this,u,n).Eu}}); QA("Int8Array.prototype.findLastIndex",at);QA("Uint8Array.prototype.findLastIndex",at);QA("Uint8ClampedArray.prototype.findLastIndex",at);QA("Int16Array.prototype.findLastIndex",at);QA("Uint16Array.prototype.findLastIndex",at);QA("Int32Array.prototype.findLastIndex",at);QA("Uint32Array.prototype.findLastIndex",at);QA("Float32Array.prototype.findLastIndex",at);QA("Float64Array.prototype.findLastIndex",at);QA("Number.parseInt",function(Y){return Y||parseInt});var V1,Pu,TGd;V1=V1||{};g.$e=this||self;Pu="closure_uid_"+(Math.random()*1E9>>>0);TGd=0;g.T$(r$,Error);r$.prototype.name="CustomError";var v$d;var jtm,Az,g3;jtm=Array.prototype.indexOf?function(Y,u){return Array.prototype.indexOf.call(Y,u,void 0)}:function(Y,u){if(typeof Y==="string")return typeof u!=="string"||u.length!=1?-1:Y.indexOf(u,0); for(var n=0;n=0;n--)if(n in Y&&Y[n]===u)return n;return-1}; g.Jy=Array.prototype.forEach?function(Y,u,n){Array.prototype.forEach.call(Y,u,n)}:function(Y,u,n){for(var U=Y.length,k=typeof Y==="string"?Y.split(""):Y,m=0;m=.3:this.AS>=.5};var oK={UXz:0,dY2:1},twS={NONE:0,McV:1,v8z:2};var wct="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");dc.prototype.getValue=function(){return this.j}; g.d(Gd,dc);Gd.prototype.X=function(Y){this.j===null&&g.Qq(this.G,Y)&&(this.j=Y)}; g.d(Am,dc);Am.prototype.X=function(Y){this.j===null&&typeof Y==="number"&&(this.j=Y)}; g.d(j8,dc);j8.prototype.X=function(Y){this.j===null&&typeof Y==="string"&&(this.j=Y)};K3.prototype.disable=function(){this.j=!1}; K3.prototype.enable=function(){this.j=!0}; K3.prototype.isEnabled=function(){return this.j}; K3.prototype.reset=function(){this.K={};this.j=!0;this.X={}};var HS=document,DD=window;var o$B=k$(1,!0),e8=k$(610401301,!1);k$(899588437,!1);var cyu=k$(772657768,!1),v$G=k$(513659523,!1),RX$=k$(568333945,o$B),S4t=k$(1331761403,!1);k$(651175828,!1);k$(722764542,!1);k$(748402145,!1);k$(748402146,!1);var Gru=k$(748402147,o$B);k$(333098724,!1);k$(2147483644,!1);k$(2147483645,!1);k$(2147483646,o$B);k$(2147483647,!0);var b4=!!g.nR("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var l4=String.prototype.trim?function(Y){return Y.trim()}:function(Y){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(Y)[1]},PQG=/&/g,SqS=//g,fJM=/"/g,QL7=/'/g,N$u=/\x00/g,XuA=/[\x00&<>"']/;var EF,DX$=g.$e.navigator;EF=DX$?DX$.userAgentData||null:null;var FWc=globalThis.trustedTypes,aK;Yr.prototype.toString=function(){return this.K+""};kr.prototype.toString=function(){return this.K}; var auM=new kr("about:invalid#zClosurez");var AvA=Pp("tel"),drS=Pp("sms"),quA=[Pp("data"),Pp("http"),Pp("https"),Pp("mailto"),Pp("ftp"),new Xy(function(Y){return/^[^:]*([/?#]|$)/.test(Y)})],$mu=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;i5.prototype.toString=function(){return this.K+""};sW.prototype.toString=function(){return this.K+""};Ku.prototype.toString=function(){return this.K};var Lu={};g.xXL=String.prototype.repeat?function(Y,u){return Y.repeat(u)}:function(Y,u){return Array(u+1).join(Y)};b5[" "]=function(){};var VV,Mt,tQ7,lJ$,hXq,wuQ,am,$4,Wg$;g.Yn=OF();g.QP=ged();g.gD=yq("Edge");g.Bo=g.gD||g.QP;VV=yq("Gecko")&&!(xP(g.Wq(),"WebKit")&&!yq("Edge"))&&!(yq("Trident")||yq("MSIE"))&&!yq("Edge");g.NK=xP(g.Wq(),"WebKit")&&!yq("Edge");Mt=eO();tQ7=sL0();g.FA=MBu();lJ$=wS();hXq=yq("iPad");wuQ=yq("iPod");am=Wp();$4=xP(g.Wq(),"KaiOS"); a:{var eXu="",bRq=function(){var Y=g.Wq();if(VV)return/rv:([^\);]+)(\)|;)/.exec(Y);if(g.gD)return/Edge\/([\d\.]+)/.exec(Y);if(g.QP)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Y);if(g.NK)return/WebKit\/(\S+)/.exec(Y);if(g.Yn)return/(?:Version)[ \/]?(\S+)/.exec(Y)}(); bRq&&(eXu=bRq?bRq[1]:"");if(g.QP){var kJ,IJB=g.$e.document;kJ=IJB?IJB.documentMode:void 0;if(kJ!=null&&kJ>parseFloat(eXu)){Wg$=String(kJ);break a}}Wg$=eXu}var Ayc=Wg$,dXS={};var yS,VS;g.ib=FH();yS=wS()||yq("iPod");VS=yq("iPad");g.uo=HYB();g.sP=Jm();g.Z0=ql()&&!Wp();var vd0=!g.QP&&!ql();g.M=g.yO.prototype;g.M.clone=function(){return new g.yO(this.x,this.y)}; g.M.equals=function(Y){return Y instanceof g.yO&&VO(this,Y)}; g.M.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.M.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.M.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.M.scale=function(Y,u){this.x*=Y;this.y*=typeof u==="number"?u:Y;return this};g.M=g.OW.prototype;g.M.clone=function(){return new g.OW(this.width,this.height)}; g.M.aspectRatio=function(){return this.width/this.height}; g.M.isEmpty=function(){return!Jq(this)}; g.M.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.M.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.M.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.M.scale=function(Y,u){this.width*=Y;this.height*=typeof u==="number"?u:Y;return this};aD.prototype.toString=function(){return this.K}; var q5={};new aD(q5,"");var puA=/^[a-z][a-z\d-]*$/i,Lgu="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),B$B="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),cyc=["action","formaction","href"];var RXG={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.M=uN.prototype;g.M.q1=function(Y){return X8(this.K,Y)}; g.M.getElementsByTagName=function(Y,u){return(u||this.K).getElementsByTagName(String(Y))}; g.M.Xk=function(Y){return g.fi(Y,this.K)}; g.M.setProperties=QV;g.M.createElement=function(Y){return ZD(this.K,Y)}; g.M.appendChild=g.sD;g.M.append=function(Y,u){hXu(ni(Y),Y,arguments,1)}; g.M.canHaveChildren=function(Y){if(Y.nodeType!=1)return!1;switch(Y.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.M.removeNode=g.A5;g.M.getChildren=function(Y){return Y.children!=void 0?Y.children:Array.prototype.filter.call(Y.childNodes,function(u){return u.nodeType==1})}; g.M.contains=g.jw;c_.prototype.now=function(){return 0}; c_.prototype.j=function(){return 0}; c_.prototype.X=function(){return 0}; c_.prototype.K=function(){return 0};g.d(Ru,c_);Ru.prototype.now=function(){return v_()&&DD.performance.now?DD.performance.now():c_.prototype.now.call(this)}; Ru.prototype.j=function(){return v_()&&DD.performance.memory?DD.performance.memory.totalJSHeapSize||0:c_.prototype.j.call(this)}; Ru.prototype.X=function(){return v_()&&DD.performance.memory?DD.performance.memory.usedJSHeapSize||0:c_.prototype.X.call(this)}; Ru.prototype.K=function(){return v_()&&DD.performance.memory?DD.performance.memory.jsHeapSizeLimit||0:c_.prototype.K.call(this)};var B3B=function(){if(!g.$e.addEventListener||!Object.defineProperty)return!1;var Y=!1,u=Object.defineProperty({},"passive",{get:function(){Y=!0}}); try{var n=function(){}; g.$e.addEventListener("test",n,u);g.$e.removeEventListener("test",n,u)}catch(U){}return Y}();var g0d=bRu("AnimationEnd"),xX=bRu("TransitionEnd");g.M=ew.prototype;g.M.getHeight=function(){return this.bottom-this.top}; g.M.clone=function(){return new ew(this.top,this.right,this.bottom,this.left)}; g.M.contains=function(Y){return this&&Y?Y instanceof ew?Y.left>=this.left&&Y.right<=this.right&&Y.top>=this.top&&Y.bottom<=this.bottom:Y.x>=this.left&&Y.x<=this.right&&Y.y>=this.top&&Y.y<=this.bottom:!1}; g.M.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.M.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.M.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.M.scale=function(Y,u){u=typeof u==="number"?u:Y;this.left*=Y;this.right*=Y;this.top*=u;this.bottom*=u;return this};g.M=g.gh.prototype;g.M.clone=function(){return new g.gh(this.left,this.top,this.width,this.height)}; g.M.contains=function(Y){return Y instanceof g.yO?Y.x>=this.left&&Y.x<=this.left+this.width&&Y.y>=this.top&&Y.y<=this.top+this.height:this.left<=Y.left&&this.left+this.width>=Y.left+Y.width&&this.top<=Y.top&&this.top+this.height>=Y.top+Y.height}; g.M.getSize=function(){return new g.OW(this.width,this.height)}; g.M.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.M.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.M.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.M.scale=function(Y,u){u=typeof u==="number"?u:Y;this.left*=Y;this.width*=Y;this.top*=u;this.height*=u;return this};var zXd={};var ORM=h5(function(){var Y=!1;try{var u=Object.defineProperty({},"passive",{get:function(){Y=!0}}); g.$e.addEventListener("test",null,u)}catch(n){}return Y});Fg0.prototype.isVisible=function(){return Pi(HS)===1};var gPB=fP(function(Y){return typeof Y==="number"}),$S=fP(function(Y){return typeof Y==="string"}),EPt=fP(function(Y){return typeof Y==="boolean"}),bz=fP(function(Y){return Y!=null&&typeof Y==="object"&&typeof Y.then==="function"}),j_M=fP(function(Y){return typeof Y==="function"}),zXG=fP(function(Y){return!!Y&&(typeof Y==="object"||typeof Y==="function")});var qqc={BwV:"allow-forms",Q_W:"allow-modals",Zag:"allow-orientation-lock",etw:"allow-pointer-lock",E$2:"allow-popups",dr2:"allow-popups-to-escape-sandbox",ctz:"allow-presentation",wCJ:"allow-same-origin",pCZ:"allow-scripts",zta:"allow-top-navigation",TwF:"allow-top-navigation-by-user-activation"},uHS=h5(function(){return aJu()});var mlm=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");TZ.prototype.Ff=function(Y,u,n){Y=Y+"//"+u+n;var U=C4u(this)-n.length;if(U<0)return"";this.K.sort(function(f,Q){return f-Q}); n=null;u="";for(var k=0;k=C.length){U-=C.length;Y+=C;u=this.X;break}n=n==null?m:n}}U="";n!=null&&(U=""+u+"trn="+n);return Y+U};KP.prototype.setInterval=function(Y,u){return DD.setInterval(Y,u)}; KP.prototype.clearInterval=function(Y){DD.clearInterval(Y)}; KP.prototype.setTimeout=function(Y,u){return DD.setTimeout(Y,u)}; KP.prototype.clearTimeout=function(Y){DD.clearTimeout(Y)};var QZ=void 0,f5,zVm=typeof TextDecoder!=="undefined",Gdc,dlc=typeof String.prototype.isWellFormed==="function",sK7=typeof TextEncoder!=="undefined";var Lsd={},RE=null,t8d=VV||g.NK||typeof g.$e.btoa=="function";var wqB=typeof Uint8Array!=="undefined",Rr7=!g.QP&&typeof btoa==="function",DlM=/[-_.]/g,cm0={"-":"+",_:"/",".":"="},xS={};D1.prototype.isEmpty=function(){return this.K==null}; D1.prototype.sizeBytes=function(){var Y=hz(this);return Y?Y.length:0}; var hre;var WsW=void 0;var IE=typeof Symbol==="function"&&typeof Symbol()==="symbol",g$g=bF("jas",void 0,!0),sx=bF(void 0,"1oa"),xd=bF(void 0,Symbol()),E$X=bF(void 0,"0ub"),NSS=bF(void 0,"0ubs"),Nhu=bF(void 0,"0ubsb"),jDe=bF(void 0,"0actk"),v7=bF("m_m","XSk",!0),TSu=bF(void 0,"vps"),HR$=bF();Math.max.apply(Math,g.Zu(Object.values({vvJ:1,YTG:2,T7Z:4,cUZ:8,ieF:16,iuZ:32,sMw:64,fNw:128,zYJ:256,RAq:512,YeJ:1024,Rh2:2048,k_J:4096})));var b3S={Rp:{value:0,configurable:!0,writable:!0,enumerable:!1}},eru=Object.defineProperties,zZ=IE?g$g:"Rp",kl,yyQ=[];Ei(yyQ,7);kl=Object.freeze(yyQ);var RH={},yQ={},vrW=Object.freeze({}),F$={};var Yd=typeof g.$e.BigInt==="function"&&typeof g.$e.BigInt(0)==="bigint";var zm=fP(function(Y){return Yd?Y>=VBC&&Y<=ORB:Y[0]==="-"?H3t(Y,Fg$):H3t(Y,JyX)}),Fg$=Number.MIN_SAFE_INTEGER.toString(),VBC=Yd?BigInt(Number.MIN_SAFE_INTEGER):void 0,JyX=Number.MAX_SAFE_INTEGER.toString(),ORB=Yd?BigInt(Number.MAX_SAFE_INTEGER):void 0;var wpu=typeof Uint8Array.prototype.slice==="function",nn=0,Ua=0,iiB;var Au=typeof BigInt==="function"?BigInt.asIntN:void 0,Xpd=typeof BigInt==="function"?BigInt.asUintN:void 0,Ln=Number.isSafeInteger,im=Number.isFinite,tu=Math.trunc,JmB=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var rqc={};var qqu={WWg:!0};var W7;var MOm,sD7;var x5G=um(0),xl={};zT.prototype.init=function(Y,u,n,U){var k=U===void 0?{}:U;U=k.Ot===void 0?!1:k.Ot;k=k.DO===void 0?!1:k.DO;this.Ot=U;this.DO=k;Y&&(Y=Ix(Y,this.DO),this.j=Y.buffer,this.J=Y.K,this.G=u||0,this.X=n!==void 0?this.G+n:this.j.length,this.K=this.G)}; zT.prototype.free=function(){this.clear();JP.length<100&&JP.push(this)}; zT.prototype.clear=function(){this.j=null;this.J=!1;this.K=this.X=this.G=0;this.Ot=!1}; zT.prototype.reset=function(){this.K=this.G}; var JP=[];q_.prototype.free=function(){this.K.clear();this.j=this.X=-1;ax.length<100&&ax.push(this)}; q_.prototype.reset=function(){this.K.reset();this.G=this.K.K;this.j=this.X=-1}; var ax=[];var Er7,yqu;TB.prototype.length=function(){return this.K.length}; TB.prototype.end=function(){var Y=this.K;this.K=[];return Y};var p5=jn(),aJq=jn(),$XJ=jn(),YFB=jn(),uHX=jn(),nPB=jn(),UlL=jn(),kdB=jn(),mlX=jn(),Xq$=jn(),P4X=jn();K5.prototype.toJSON=function(){return Ea(this)}; K5.prototype.TE=function(Y){return JSON.stringify(Ea(this,Y))}; K5.prototype.clone=function(){var Y=this.xV,u=Y[zZ]|0;return Oa(this,Y,u)?Fi(this,Y,!0):new this.constructor(V3(Y,u,!1))}; K5.prototype[v7]=RH;K5.prototype.toString=function(){return this.xV.toString()};var n3e=tZ(function(Y,u,n,U,k){if(Y.j!==2)return!1;C5(Y,dy(u,U,n),k);return!0},u80),UKB=tZ(function(Y,u,n,U,k){if(Y.j!==2)return!1; C5(Y,dy(u,U,n),k);return!0},u80),g0=Symbol(),RA=Symbol(),l7=Symbol(),CNB=Symbol(),X_W=Symbol(),Bf,oA;var SFJ=yZ(function(Y,u,n){if(Y.j!==1)return!1;FY(u,n,Ox(Y.K));return!0},JZ,mlX),C4q=yZ(function(Y,u,n){if(Y.j!==1)return!1; Y=Ox(Y.K);FY(u,n,Y===0?void 0:Y);return!0},JZ,mlX),fnC=yZ(function(Y,u,n,U){if(Y.j!==1)return!1; ry(u,n,U,Ox(Y.K));return!0},JZ,mlX),QKQ=yZ(function(Y,u,n){if(Y.j!==0)return!1; FY(u,n,Ex(Y.K));return!0},qF,UlL),NcX=yZ(function(Y,u,n){if(Y.j!==0)return!1; Y=Ex(Y.K);FY(u,n,Y===0?void 0:Y);return!0},qF,UlL),i3u=yZ(function(Y,u,n,U){if(Y.j!==0)return!1; ry(u,n,U,Ex(Y.K));return!0},qF,UlL),Z3y=yZ(function(Y,u,n){if(Y.j!==0)return!1; FY(u,n,HZ(Y.K));return!0},aA,YFB),Tcy=yZ(function(Y,u,n){if(Y.j!==0)return!1; Y=HZ(Y.K);FY(u,n,Y===0?void 0:Y);return!0},aA,YFB),rmX=yZ(function(Y,u,n,U){if(Y.j!==0)return!1; ry(u,n,U,HZ(Y.K));return!0},aA,YFB),M8q=yZ(function(Y,u,n){if(Y.j!==1)return!1; FY(u,n,Vh(Y.K));return!0},function(Y,u,n){aOu(Y,n,P5B(u))},kdB),sKy=OM(function(Y,u,n){if(Y.j!==1&&Y.j!==2)return!1; u=Qh(u,u[zZ]|0,n);if(Y.j==2)for(n=HZ(Y.K)>>>0,n=Y.K.K+n;Y.K.K>>0);return!0},function(Y,u,n){u=Me(u); u!=null&&u!=null&&(GB(Y,n,0),MF(Y.K,u))},uHX),f7=yZ(function(Y,u,n){if(Y.j!==0)return!1; FY(u,n,HZ(Y.K));return!0},function(Y,u,n){u=rm(u); u!=null&&(u=parseInt(u,10),GB(Y,n,0),OuG(Y.K,u))},P4X);sut.prototype.register=function(){b5(this)};g.d(u8,K5);u8.prototype.X=GoS([0,C4q,NcX,-2,Tcy]);var Bhd={nlW:1,Lj:2,gOV:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};c5c.prototype.St=function(Y){if(typeof Y==="string"&&Y.length!=0){var u=this.ju;if(u.j){Y=Y.split("&");for(var n=Y.length-1;n>=0;n--){var U=Y[n].split("="),k=decodeURIComponent(U[0]);U.length>1?(U=decodeURIComponent(U[1]),U=/^[0-9]+$/g.exec(U)?parseInt(U,10):U):U=1;(k=u.K[k])&&k.X(U)}}}};var Q7=null;var PS=g.$e.performance,t8G=!!(PS&&PS.mark&&PS.measure&&PS.clearMarks),m0=h5(function(){var Y;if(Y=t8G){var u=u===void 0?window:u;if(Q7===null){Q7="";try{Y="";try{Y=u.top.location.hash}catch(U){Y=u.location.hash}if(Y){var n=Y.match(/\bdeid=([\d,]+)/);Q7=n?n[1]:""}}catch(U){}}u=Q7;Y=!!u.indexOf&&u.indexOf("1337")>=0}return Y}); Xf.prototype.disable=function(){this.K=!1;this.events!==this.j.google_js_reporting_queue&&(m0()&&g.Jy(this.events,hEW),this.events.length=0)}; Xf.prototype.start=function(Y,u){if(!this.K)return null;var n=xKu()||DKA();Y=new lDB(Y,u,n);u="goog_"+Y.label+"_"+Y.uniqueId+"_start";PS&&m0()&&PS.mark(u);return Y}; Xf.prototype.end=function(Y){if(this.K&&typeof Y.value==="number"){var u=xKu()||DKA();Y.duration=u-Y.value;u="goog_"+Y.label+"_"+Y.uniqueId+"_end";PS&&m0()&&PS.mark(u);!this.K||this.events.length>2048||this.events.push(Y)}};var w_S=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),AQ=/#|$/,g3M=/[?&]($|#)/;Hiu.prototype.RI=function(Y,u,n,U,k){k=k||this.CI;try{var m=new TZ;m.K.push(1);m.j[1]=rA("context",Y);u.error&&u.meta&&u.id||(u=new BS(ov(u)));if(u.msg){var X=u.msg.substring(0,512);m.K.push(2);m.j[2]=rA("msg",X)}var S=u.meta||{};if(this.l1)try{this.l1(S)}catch(T){}if(U)try{U(S)}catch(T){}U=[S];m.K.push(3);m.j[3]=U;var C=P4S();if(C.j){var f=C.j.url||"";m.K.push(4);m.j[4]=rA("top",f)}var Q={url:C.K.url||""};if(C.K.url){var N=g.Co(C.K.url);var Z=SV(N[1],null,N[3],N[4])}else Z="";f=[Q,{url:Z}];m.K.push(5); m.j[5]=f;v37(this.K,k,m,n)}catch(T){try{v37(this.K,k,{context:"ecmserr",rctx:Y,msg:ov(T),url:C&&C.K.url},n)}catch(r){}}return this.eV}; g.d(BS,RE7);var Lo,tQ,po=new Xf;Lo=new function(){var Y="https:";DD&&DD.location&&DD.location.protocol==="http:"&&(Y="http:");this.j=Y;this.K=.01}; tQ=new Hiu;DD&&DD.document&&(DD.document.readyState=="complete"?VwS():po.K&&X$(DD,"load",function(){VwS()}));var J50=Date.now(),hQ=-1,xs=-1,m_7,w3=-1,l8=!1;WS.prototype.equals=function(Y,u){return!!Y&&(!(u===void 0?0:u)||this.volume==Y.volume)&&this.X==Y.X&&Iu(this.K,Y.K)&&!0};eV.prototype.q1=function(){return this.S}; eV.prototype.equals=function(Y,u){return this.G.equals(Y.G,u===void 0?!1:u)&&this.S==Y.S&&Iu(this.X,Y.X)&&Iu(this.W,Y.W)&&this.K==Y.K&&this.J==Y.J&&this.j==Y.j&&this.Z==Y.Z};var BcJ={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},yW={Xq:"start",FX:"firstquartile",YS:"midpoint",Gn:"thirdquartile",COMPLETE:"complete",ERROR:"error",Tr:"metric",PAUSE:"pause",RW:"resume",nj:"skip",yC:"viewable_impression",ac:"mute",rj:"unmute",HV:"fullscreen",OV:"exitfullscreen",Gx:"bufferstart",XX:"bufferfinish",WV:"fully_viewable_audible_half_duration_impression",zr:"measurable_impression",U3:"abandon",Lc:"engagedview",AA:"impression",rq:"creativeview",LOADED:"loaded", XDF:"progress",CLOSE:"close",PEG:"collapse",vOw:"overlay_resize",PlZ:"overlay_unmeasurable_impression",mSF:"overlay_unviewable_impression",tlW:"overlay_viewable_immediate_impression",sqG:"overlay_viewable_end_of_session_impression",Dg:"custom_metric_viewable",Kc:"audio_audible",Rb:"audio_measurable",ob:"audio_impression"},rZd="start firstquartile midpoint thirdquartile resume loaded".split(" "),Mnd=["start","firstquartile","midpoint","thirdquartile"],Put=["abandon"],NS={UNKNOWN:-1,Xq:0,FX:1,YS:2, Gn:3,COMPLETE:4,Tr:5,PAUSE:6,RW:7,nj:8,yC:9,ac:10,rj:11,HV:12,OV:13,WV:14,zr:15,U3:16,Lc:17,AA:18,rq:19,LOADED:20,Dg:21,Gx:22,XX:23,ob:27,Rb:28,Kc:29};var aDM={g$q:"addEventListener",mYc:"getMaxSize",sO2:"getScreenSize",tQJ:"getState",ayz:"getVersion",FGa:"removeEventListener",PyV:"isViewable"};mqe.prototype.update=function(Y){Y&&Y.document&&(this.S=b8(!1,Y,this.isMobileDevice),this.K=b8(!0,Y,this.isMobileDevice),PFd(this,Y),Xi7(this,Y))};Vi.prototype.cancel=function(){pP().clearTimeout(this.K);this.K=null}; Vi.prototype.schedule=function(){var Y=this,u=pP(),n=Uf().K.K;this.K=u.setTimeout(no(n,vS(143,function(){Y.j++;Y.X.sample()})),qDW())};g.M=Of.prototype;g.M.b3=function(){return!1}; g.M.initialize=function(){return this.isInitialized=!0}; g.M.HQ=function(){return this.K.rg}; g.M.Ax=function(){return this.K.KG}; g.M.fail=function(Y,u){if(!this.KG||(u===void 0?0:u))this.KG=!0,this.rg=Y,this.Z=0,this.K!=this||JQ(this)}; g.M.getName=function(){return this.K.JJ}; g.M.I8=function(){return this.K.t$()}; g.M.t$=function(){return{}}; g.M.bx=function(){return this.K.Z}; g.M.vO=function(){var Y=Ef();Y.K=b8(!0,this.X,Y.isMobileDevice)}; g.M.PO=function(){Xi7(Ef(),this.X)}; g.M.GF=function(){return this.G.K}; g.M.sample=function(){}; g.M.isActive=function(){return this.K.W}; g.M.kz=function(Y){var u=this.K;this.K=Y.bx()>=this.Z?Y:this;u!==this.K?(this.W=this.K.W,JQ(this)):this.W!==this.K.W&&(this.W=this.K.W,JQ(this))}; g.M.rF=function(Y){if(Y.j===this.K){var u=!this.G.equals(Y,this.N);this.G=Y;u&&f1W(this)}}; g.M.uJ=function(){return this.N}; g.M.dispose=function(){this.DW=!0}; g.M.gg=function(){return this.DW};g.M=qk.prototype;g.M.observe=function(){return!0}; g.M.unobserve=function(){}; g.M.BL=function(Y){this.J=Y}; g.M.dispose=function(){if(!this.gg()){var Y=this.j;g.pR(Y.J,this);Y.N&&this.uJ()&&CFc(Y);this.unobserve();this.jG=!0}}; g.M.gg=function(){return this.jG}; g.M.I8=function(){return this.j.I8()}; g.M.bx=function(){return this.j.bx()}; g.M.HQ=function(){return this.j.HQ()}; g.M.Ax=function(){return this.j.Ax()}; g.M.kz=function(){}; g.M.rF=function(){this.eL()}; g.M.uJ=function(){return this.DW};g.M=av.prototype;g.M.bx=function(){return this.K.bx()}; g.M.HQ=function(){return this.K.HQ()}; g.M.Ax=function(){return this.K.Ax()}; g.M.create=function(Y,u,n){var U=null;this.K&&(U=this.w4(Y,u,n),Ff(this.K,U));return U}; g.M.md=function(){return this.jz()}; g.M.jz=function(){return!1}; g.M.init=function(Y){return this.K.initialize()?(Ff(this.K,this),this.G=Y,!0):!1}; g.M.kz=function(Y){Y.bx()==0&&this.G(Y.HQ(),this)}; g.M.rF=function(){}; g.M.uJ=function(){return!1}; g.M.dispose=function(){this.J=!0}; g.M.gg=function(){return this.J}; g.M.I8=function(){return{}};$s.prototype.add=function(Y,u,n){++this.X;Y=new NAe(Y,u,n);this.K.push(new NAe(Y.j,Y.K,Y.X+this.X/4096));this.j=!0;return this};MEu.prototype.toString=function(){var Y="//pagead2.googlesyndication.com//pagead/gen_204",u=uI(this.K);u.length>0&&(Y+="?"+u);return Y};g.e.prototype.Hk=!1;g.e.prototype.gg=function(){return this.Hk}; g.e.prototype.dispose=function(){this.Hk||(this.Hk=!0,this.nG())}; g.e.prototype[Symbol.dispose]=function(){this.dispose()}; g.e.prototype.addOnDisposeCallback=function(Y,u){this.Hk?u!==void 0?Y.call(u):Y():(this.bb||(this.bb=[]),u&&(Y=Y.bind(u)),this.bb.push(Y))}; g.e.prototype.nG=function(){if(this.bb)for(;this.bb.length;)this.bb.shift()()};var oPC=[0,QKQ,dlu,-1];k5.prototype.update=function(Y,u,n){Y&&(this.K+=u,this.j+=u,this.G+=u,this.X=Math.max(this.X,this.G));if(n===void 0?!Y:n)this.G=0};var jEY=[1,.75,.5,.3,0];mP.prototype.update=function(Y,u,n,U,k,m){m=m===void 0?!0:m;u=k?Math.min(Y,u):u;for(k=0;k0&&u>=X;X=!(Y>0&&Y>=X)||n;this.K[k].update(m&&S,U,!m||X)}};QW.prototype.update=function(Y,u,n,U){this.S=this.S!=-1?Math.min(this.S,u.AS):u.AS;this.oV=Math.max(this.oV,u.AS);this.jG=this.jG!=-1?Math.min(this.jG,u.iy):u.iy;this.rg=Math.max(this.rg,u.iy);this.Uc.update(u.iy,n.iy,u.K,Y,U);this.Fk+=Y;u.AS===0&&(this.JJ+=Y);this.j.update(u.AS,n.AS,u.K,Y,U);n=U||n.Hh!=u.Hh?n.isVisible()&&u.isVisible():n.isVisible();u=!u.isVisible()||u.K;this.zZ.update(n,Y,u)}; QW.prototype.W3=function(){return this.zZ.X>=this.Pz};if(HS&&HS.URL){var cm$=HS.URL,vPC;if(vPC=!!cm$){var Rry;a:{if(cm$){var DlB=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Nr=DlB.exec(decodeURIComponent(cm$));if(Nr){Rry=Nr[1]&&Nr[1].length>1?Nr[1].substring(1):"true";break a}}catch(Y){}}Rry=""}vPC=Rry.length>0}tQ.eV=!vPC};var xlX=new ew(0,0,0,0);var odc=new ew(0,0,0,0);g.d(r2,g.e);g.M=r2.prototype; g.M.nG=function(){if(this.xv.K){if(this.dA.yQ){var Y=this.xv.K;typeof Y.removeEventListener==="function"&&Y.removeEventListener("mouseover",this.dA.yQ,mt());this.dA.yQ=null}this.dA.DD&&(Y=this.xv.K,typeof Y.removeEventListener==="function"&&Y.removeEventListener("mouseout",this.dA.DD,mt()),this.dA.DD=null)}this.U8&&this.U8.dispose();this.gp&&this.gp.dispose();delete this.Ix;delete this.hH;delete this.Wb;delete this.xv.BK;delete this.xv.K;delete this.dA;delete this.U8;delete this.gp;delete this.ju; g.e.prototype.nG.call(this)}; g.M.Kf=function(){return this.gp?this.gp.K:this.position}; g.M.St=function(Y){Uf().St(Y)}; g.M.uJ=function(){return!1}; g.M.z7=function(){return new QW}; g.M.rO=function(){return this.Ix}; g.M.xG=function(Y){return De0(this,Y,1E4)}; g.M.QF=function(Y,u,n,U,k,m,X){this.HK||(this.C3&&(Y=this.Ty(Y,n,k,X),U=U&&this.oM.AS>=(this.Hh()?.3:.5),this.W9(m,Y,U),this.mV=u,Y.AS>0&&-1===this.TQ&&(this.TQ=u),this.Ug==-1&&this.W3()&&(this.Ug=u),this.xY==-2&&(this.xY=ZN(this.Kf())?Y.AS:-1),this.oM=Y),this.hH(this))}; g.M.W9=function(Y,u,n){this.rO().update(Y,u,this.oM,n)}; g.M.Vw=function(){return new aL}; g.M.Ty=function(Y,u,n,U){n=this.Vw();n.K=u;u=pP().j;u=Pi(HS)===0?-1:u.isVisible()?0:1;n.j=u;n.AS=this.qd(Y);n.Hh=this.Hh();n.iy=U;return n}; g.M.qd=function(Y){return this.opacity===0&&tm(this.ju,"opac")===1?0:Y}; g.M.Hh=function(){return!1}; g.M.Kz=function(){return this.uu||this.yB}; g.M.t1=function(){Dq()}; g.M.FV=function(){Dq()}; g.M.kM=function(){return 0}; g.M.W3=function(){return this.Ix.W3()}; g.M.rf=function(){var Y=this.C3;Y=(this.hasCompleted||this.gg())&&!Y;var u=Uf().j!==2||this.BVG;return this.HK||u&&Y?2:this.W3()?4:3}; g.M.Je=function(){return 0};g.j$.prototype.next=function(){return g.i1}; g.i1={done:!0,value:void 0};g.j$.prototype.YO=function(){return this};g.d(eKS,aL);var ZK=ITY([void 0,1,2,3,4,8,16]),TU=ITY([void 0,4,8,16]),lnR={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:tj("p0",TU),p1:tj("p1",TU),p2:tj("p2",TU),p3:tj("p3",TU),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Lc("mtos1",[0,2,4],!1,TU),mtos2:Lc("mtos2",[0,2,4],!1,TU),mtos3:Lc("mtos3",[0,2,4],!1,TU),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:tj("a0",TU),a1:tj("a1",TU),a2:tj("a2",TU),a3:tj("a3",TU),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:tj("c0",TU),c1:tj("c1",TU),c2:tj("c2",TU),c3:tj("c3",TU),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:tj("qmtos",ZK),qnc:tj("qnc",ZK),qmv:tj("qmv",ZK),qnv:tj("qnv",ZK), 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:tj("ss0",TU),ss1:tj("ss1",TU),ss2:tj("ss2",TU),ss3:tj("ss3",TU),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"},hr$=Object.assign({},lnR,{avid:x3("audio"),avas:"avas",vs:"vs"}),wqQ={atos:"atos",avt:Lc("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(Y,u){return function(n){return n[Y]===void 0&&u!==void 0?u:n[Y]}}("ss",0), t:"t"};vV.prototype.getValue=function(){return this.j}; vV.prototype.update=function(Y,u){Y>=32||(this.K&1<=.5;zb(u.volume)&&(this.G=this.G!=-1?Math.min(this.G,u.volume):u.volume,this.W=Math.max(this.W,u.volume));m&&(this.DW+=Y,this.N+=k?Y:0);this.K.update(u.AS,n.AS,u.K,Y,U,k);this.X.update(!0,Y);this.J.update(k,Y);this.KG.update(n.fullscreen,Y);this.Iu.update(k&&!m,Y);Y=Math.floor(u.mediaTime/1E3);this.MF.update(Y,u.isVisible());this.dg.update(Y,u.AS>=1);this.TZ.update(Y, pc(u))}};V_e.prototype.j=function(Y){this.X||(this.K(Y)?(Y=kBd(this.N,this.G,Y),this.J|=Y,Y=Y==0):Y=!1,this.X=Y)};g.d(x5,V_e);x5.prototype.K=function(){return!0}; x5.prototype.W=function(){return!1}; x5.prototype.getId=function(){var Y=this,u=Nl(yW,function(n){return n==Y.G}); return NS[u].toString()}; x5.prototype.toString=function(){var Y="";this.W()&&(Y+="c");this.X&&(Y+="s");this.J>0&&(Y+=":"+this.J);return this.getId()+Y};g.d(hj,x5);hj.prototype.j=function(Y,u){u=u===void 0?null:u;u!=null&&this.S.push(u);x5.prototype.j.call(this,Y)};g.d(w2,OnY);w2.prototype.j=function(){return null}; w2.prototype.X=function(){return[]};g.d(WV,qk);g.M=WV.prototype;g.M.PA=function(){if(this.element){var Y=this.element,u=this.j.K.X;try{try{var n=nSG(Y.getBoundingClientRect())}catch(f){n=new ew(0,0,0,0)}var U=n.right-n.left,k=n.bottom-n.top,m=HRG(Y,u),X=m.x,S=m.y;var C=new ew(Math.round(S),Math.round(X+U),Math.round(S+k),Math.round(X))}catch(f){C=xlX.clone()}this.X=C;this.K=QEu(this,this.X)}}; g.M.lQ=function(){this.W=this.j.G.K}; g.M.x7=function(Y){var u=tm(this.ju,"od")==1;return BmA(Y,this.W,this.element,u)}; g.M.iQ=function(){this.timestamp=Dq()}; g.M.eL=function(){this.iQ();this.PA();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var Y=this.element;var u=new g.OW(Y.videoWidth,Y.videoHeight);Y=this.K;var n=bN(Y),U=Y.getHeight(),k=u.width;u=u.height;k<=0||u<=0||n<=0||U<=0||(k/=u,u=n/U,Y=Y.clone(),k>u?(n/=k,U=(U-n)/2,U>0&&(U=Y.top+U,Y.top=Math.round(U),Y.bottom=Math.round(U+n))):(U*=k,n=Math.round((n-U)/2),n>0&&(n=Y.left+n,Y.left=Math.round(n),Y.right=Math.round(n+U))));this.K=Y}this.lQ(); Y=this.K;n=this.W;Y=Y.left<=n.right&&n.left<=Y.right&&Y.top<=n.bottom&&n.top<=Y.bottom?new ew(Math.max(Y.top,n.top),Math.min(Y.right,n.right),Math.min(Y.bottom,n.bottom),Math.max(Y.left,n.left)):new ew(0,0,0,0);n=Y.top>=Y.bottom||Y.left>=Y.right?new ew(0,0,0,0):Y;Y=this.j.G;u=k=U=0;if((this.K.bottom-this.K.top)*(this.K.right-this.K.left)>0)if(this.x7(n))n=new ew(0,0,0,0);else{U=Ef().G;u=new ew(0,U.height,U.width,0);var m;U=T5(n,(m=this.J)!=null?m:this.K);k=T5(n,Ef().K);u=T5(n,u)}m=n.top>=n.bottom|| n.left>=n.right?new ew(0,0,0,0):zo(n,-this.K.left,-this.K.top);yi()||(k=U=0);this.N=new eV(Y,this.element,this.K,m,U,k,this.timestamp,u)}; g.M.getName=function(){return this.j.getName()};var Wsg=new ew(0,0,0,0);g.d(e$,WV);g.M=e$.prototype;g.M.observe=function(){this.G();return!0}; g.M.rF=function(){WV.prototype.eL.call(this)}; g.M.iQ=function(){}; g.M.PA=function(){}; g.M.eL=function(){this.G();WV.prototype.eL.call(this)}; g.M.kz=function(Y){Y=Y.isActive();Y!==this.Z&&(Y?this.G():(Ef().K=new ew(0,0,0,0),this.K=new ew(0,0,0,0),this.W=new ew(0,0,0,0),this.timestamp=-1));this.Z=Y};var rx={},kT0=(rx.firstquartile=0,rx.midpoint=1,rx.thirdquartile=2,rx.complete=3,rx);g.d(IQ,r2);g.M=IQ.prototype;g.M.uJ=function(){return!0}; g.M.MW=function(){return this.L1==2}; g.M.xG=function(Y){return De0(this,Y,Math.max(1E4,this.X/3))}; g.M.QF=function(Y,u,n,U,k,m,X){var S=this,C=this.S(this)||{};g.sF(C,k);this.X=C.duration||this.X;this.N=C.isVpaid||this.N;this.JJ=C.isYouTube||this.JJ;pP();this.Uc=!1;k=JuB(this,u);FXe(this)===1&&(m=k);r2.prototype.QF.call(this,Y,u,n,U,C,m,X);this.Me&&this.Me.X&&g.Jy(this.W,function(f){f.j(S)})}; g.M.W9=function(Y,u,n){r2.prototype.W9.call(this,Y,u,n);Eo(this).update(Y,u,this.oM,n);this.Pz=pc(this.oM)&&pc(u);this.rg==-1&&this.dg&&(this.rg=this.rO().X.K);this.BW.X=0;Y=this.W3();u.isVisible()&&cV(this.BW,"vs");Y&&cV(this.BW,"vw");zb(u.volume)&&cV(this.BW,"am");pc(u)?cV(this.BW,"a"):cV(this.BW,"mut");this.T$&&cV(this.BW,"f");u.j!=-1&&(cV(this.BW,"bm"),u.j==1&&(cV(this.BW,"b"),pc(u)&&cV(this.BW,"umutb")));pc(u)&&u.isVisible()&&cV(this.BW,"avs");this.Pz&&Y&&cV(this.BW,"avw");u.AS>0&&cV(this.BW, "pv");HV(this,this.rO().X.K,!0)&&cV(this.BW,"gdr");Cc(this.rO().j,1)>=2E3&&cV(this.BW,"pmx");this.Uc&&cV(this.BW,"tvoff")}; g.M.z7=function(){return new RQ}; g.M.rO=function(){return this.Ix}; g.M.Vw=function(){return new eKS}; g.M.Ty=function(Y,u,n,U){Y=r2.prototype.Ty.call(this,Y,u,n,U===void 0?-1:U);Y.fullscreen=this.T$;Y.paused=this.MW();Y.volume=n.volume;zb(Y.volume)||(this.Ru++,u=this.oM,zb(u.volume)&&(Y.volume=u.volume));n=n.currentTime;Y.mediaTime=n!==void 0&&n>=0?n:-1;return Y}; g.M.qd=function(Y){return Ef(),this.T$?1:r2.prototype.qd.call(this,Y)}; g.M.kM=function(){return 1}; g.M.getDuration=function(){return this.X}; g.M.rf=function(){return this.HK?2:aTe(this)?5:this.W3()?4:3}; g.M.Je=function(){return this.Iu?this.rO().J.X>=2E3?4:3:2}; g.M.BL=function(Y){this.gp&&this.gp.BL(Y)};var erJ=g.iQ();Tyu.prototype.reset=function(){this.K=[];this.j=[]}; var qP=jE(Tyu);g.d(YV,av);g.M=YV.prototype;g.M.getName=function(){return(this.j?this.j:this.K).getName()}; g.M.I8=function(){return(this.j?this.j:this.K).I8()}; g.M.bx=function(){return(this.j?this.j:this.K).bx()}; g.M.init=function(Y){var u=!1;(0,g.Jy)(this.X,function(n){n.initialize()&&(u=!0)}); u&&(this.G=Y,Ff(this.K,this));return u}; g.M.dispose=function(){(0,g.Jy)(this.X,function(Y){Y.dispose()}); av.prototype.dispose.call(this)}; g.M.md=function(){return g3(this.X,function(Y){return Y.b3()})}; g.M.jz=function(){return g3(this.X,function(Y){return Y.b3()})}; g.M.w4=function(Y,u,n){return new WV(Y,this.K,u,n)}; g.M.rF=function(Y){this.j=Y.j};var pZu={threshold:[0,.3,.5,.75,1]};g.d(uZ,WV);g.M=uZ.prototype;g.M.observe=function(){var Y=this;this.oV||(this.oV=Dq());if(FBM(298,function(){return LOM(Y)}))return!0; this.j.fail("msf");return!1}; g.M.unobserve=function(){if(this.G&&this.element)try{this.G.unobserve(this.element),this.Z?(this.Z.unobserve(this.element),this.Z=null):this.S&&(this.S.disconnect(),this.S=null)}catch(Y){}}; g.M.eL=function(){var Y=nt(this);Y.length>0&&Uh(this,Y);WV.prototype.eL.call(this)}; g.M.PA=function(){}; g.M.x7=function(){return!1}; g.M.lQ=function(){}; g.M.I8=function(){var Y={};return Object.assign(this.j.I8(),(Y.niot_obs=this.oV,Y.niot_cbk=this.KG,Y))}; g.M.getName=function(){return"nio"};g.d(kV,av);kV.prototype.getName=function(){return"nio"}; kV.prototype.jz=function(){return!Ef().j&&this.K.K.X.IntersectionObserver!=null}; kV.prototype.w4=function(Y,u,n){return new uZ(Y,this.K,u,n)};g.d(m5,Of);m5.prototype.GF=function(){return Ef().K}; m5.prototype.b3=function(){var Y=By7();this.Z!==Y&&(this.K!=this&&Y>this.K.Z&&(this.K=this,JQ(this)),this.Z=Y);return Y==2};XK.prototype.sample=function(){Ct(this,aQ(),!1)}; XK.prototype.G=function(){var Y=yi(),u=Dq();Y?(l8||(hQ=u,g.Jy(qP.K,function(n){var U=n.rO();U.CG=DN(U,u,n.L1!=1)})),l8=!0):(this.S=D_u(this,u),l8=!1,m_7=u,g.Jy(qP.K,function(n){n.C3&&(n.rO().Z=u)})); Ct(this,aQ(),!Y)}; var Pd=jE(XK);var lE0=null,DM="",Rd=!1;var WOS=wZt().DC,QY=wZt().Ld;var IES={cDc:"visible",qPF:"audible",beg:"time",jDw:"timetype"},zQW={visible:function(Y){return/^(100|[0-9]{1,2})$/.test(Y)}, audible:function(Y){return Y=="0"||Y=="1"}, timetype:function(Y){return Y=="mtos"||Y=="tos"}, time:function(Y){return/^(100|[0-9]{1,2})%$/.test(Y)||/^([0-9])+ms$/.test(Y)}}; brS.prototype.setTime=function(Y,u,n){u=="ms"?(this.X=Y,this.G=-1):(this.X=-1,this.G=Y);this.J=n===void 0?"tos":n;return this};g.d(Tw,x5);Tw.prototype.getId=function(){return this.S}; Tw.prototype.W=function(){return!0}; Tw.prototype.K=function(Y){var u=Y.rO(),n=Y.getDuration();return g3(this.Z,function(U){if(U.K!=void 0)var k=El7(U,u);else b:{switch(U.J){case "mtos":k=U.j?u.J.X:u.X.K;break b;case "tos":k=U.j?u.J.K:u.X.K;break b}k=0}k==0?U=!1:(U=U.X!=-1?U.X:n!==void 0&&n>0?U.G*n:-1,U=U!=-1&&k>=U);return U})};g.d(rX,gdY);rX.prototype.K=function(Y){var u=new zK0;u.K=oQ(Y,lnR);u.j=oQ(Y,wqQ);return u};g.d(MS,x5);MS.prototype.K=function(Y){return aTe(Y)};g.d(sh,OnY);g.d(dX,x5);dX.prototype.K=function(Y){return Y.rO().W3()};g.d(Gw,hj);Gw.prototype.K=function(Y){var u=g.jB(this.S,tm(Uf().ju,"ovms"));return!Y.HK&&(Y.L1!=0||u)};g.d(AJ,sh);AJ.prototype.j=function(){return new Gw(this.K)}; AJ.prototype.X=function(){return[new dX("viewable_impression",this.K),new MS(this.K)]};g.d(jC,e$);jC.prototype.G=function(){var Y=g.nR("ima.admob.getViewability"),u=tm(this.ju,"queryid");typeof Y==="function"&&u&&Y(u)}; jC.prototype.getName=function(){return"gsv"};g.d(Kt,av);Kt.prototype.getName=function(){return"gsv"}; Kt.prototype.jz=function(){var Y=Ef();Uf();return Y.j&&!1}; Kt.prototype.w4=function(Y,u,n){return new jC(this.K,u,n)};g.d(pt,e$);pt.prototype.G=function(){var Y=this,u=g.nR("ima.bridge.getNativeViewability"),n=tm(this.ju,"queryid");typeof u==="function"&&n&&u(n,function(U){g.i4(U)&&Y.S++;var k=U.opt_nativeViewVisibleBounds||{},m=U.opt_nativeViewHidden;Y.K=Uq7(U.opt_nativeViewBounds||{});var X=Y.j.G;X.K=m?Wsg.clone():Uq7(k);Y.timestamp=U.opt_nativeTime||-1;Ef().K=X.K;U=U.opt_nativeVolume;U!==void 0&&(X.volume=U)})}; pt.prototype.getName=function(){return"nis"};g.d(Lt,av);Lt.prototype.getName=function(){return"nis"}; Lt.prototype.jz=function(){var Y=Ef();Uf();return Y.j&&!1}; Lt.prototype.w4=function(Y,u,n){return new pt(this.K,u,n)};g.d(tJ,Of);g.M=tJ.prototype;g.M.b3=function(){return this.j.Ce!=null}; g.M.t$=function(){var Y={};this.MF&&(Y.mraid=this.MF);this.jG&&(Y.mlc=1);Y.mtop=this.j.KMc;this.S&&(Y.mse=this.S);this.Fk&&(Y.msc=1);Y.mcp=this.j.compatibility;return Y}; g.M.GN=function(Y){var u=g.It.apply(1,arguments);try{return this.j.Ce[Y].apply(this.j.Ce,u)}catch(n){Rv(538,n,.01,function(U){U.method=Y})}}; g.M.initialize=function(){var Y=this;if(this.isInitialized)return!this.Ax();this.isInitialized=!0;if(this.j.compatibility===2)return this.S="ng",this.fail("w"),!1;if(this.j.compatibility===1)return this.S="mm",this.fail("w"),!1;Ef().Z=!0;this.X.document.readyState&&this.X.document.readyState=="complete"?OrB(this):iI(this.X,"load",function(){pP().setTimeout(vS(292,function(){return OrB(Y)}),100)},292); return!0}; g.M.vO=function(){var Y=Ef(),u=$_S(this,"getMaxSize");Y.K=new ew(0,u.width,u.height,0)}; g.M.PO=function(){Ef().G=$_S(this,"getScreenSize")}; g.M.dispose=function(){JPS(this);Of.prototype.dispose.call(this)};var p_G=new function(Y,u){this.key=Y;this.defaultValue=u===void 0?!1:u;this.valueType="boolean"}("45378663");g.M=od.prototype;g.M.oN=function(Y){Aj(Y,!1);d_S(Y)}; g.M.IR=function(){}; g.M.yr=function(Y,u,n,U){var k=this;Y=new IQ(DD,Y,n?u:-1,7,this.WX(),this.h$());Y.vc=U;WWG(Y.ju);L3(Y.ju,"queryid",Y.vc);Y.St("");hKG(Y,function(){return k.HZ.apply(k,g.Zu(g.It.apply(0,arguments)))},function(){return k.lH.apply(k,g.Zu(g.It.apply(0,arguments)))}); (U=jE($5).K)&&RKu(Y,U);this.X&&(Y.BL(this.X),this.X=null);Y.xv.BK&&jE(olu);return Y}; g.M.kz=function(Y){switch(Y.bx()){case 0:if(Y=jE($5).K)Y=Y.K,g.pR(Y.J,this),Y.N&&this.uJ()&&CFc(Y);vd();break;case 2:SC()}}; g.M.rF=function(){}; g.M.uJ=function(){return!1}; g.M.lH=function(Y,u){Y.HK=!0;switch(Y.kM()){case 1:mFG(Y,u);break;case 2:this.pJ(Y)}}; g.M.p8=function(Y){var u=Y.S(Y);u&&(u=u.volume,Y.Iu=zb(u)&&u>0);ub7(Y,0);return VW(Y,"start",yi())}; g.M.M7=function(Y,u,n){Ct(Pd,[Y],!yi());return this.Bg(Y,u,n)}; g.M.Bg=function(Y,u,n){return VW(Y,n,yi())}; g.M.ZL=function(Y){return Id(Y,"firstquartile",1)}; g.M.dk=function(Y){Y.dg=!0;return Id(Y,"midpoint",2)}; g.M.Th=function(Y){return Id(Y,"thirdquartile",3)}; g.M.iH=function(Y){var u=Id(Y,"complete",4);z5(Y);return u}; g.M.BJ=function(Y){Y.L1=3;return VW(Y,"error",yi())}; g.M.Ei=function(Y,u,n){u=yi();if(Y.MW()&&!u){var U=Y.rO(),k=Dq();U.Z=k}Ct(Pd,[Y],!u);Y.MW()&&(Y.L1=1);return VW(Y,n,u)}; g.M.wk=function(Y,u){u=this.M7(Y,u||{},"skip");z5(Y);return u}; g.M.E9=function(Y,u){Aj(Y,!0);return this.M7(Y,u||{},"fullscreen")}; g.M.Q9=function(Y,u){Aj(Y,!1);return this.M7(Y,u||{},"exitfullscreen")}; g.M.LJ=function(Y,u,n){u=Y.rO();var U=Dq();u.CG=DN(u,U,Y.L1!=1);Ct(Pd,[Y],!yi());Y.L1==1&&(Y.L1=2);return VW(Y,n,yi())}; g.M.cJ=function(Y){Ct(Pd,[Y],!yi());return Y.j()}; g.M.o1=function(Y){Ct(Pd,[Y],!yi());this.JK(Y);z5(Y);return Y.j()}; g.M.HZ=function(){}; g.M.pJ=function(){}; g.M.JK=function(){}; g.M.sB=function(){}; g.M.AC=function(){}; g.M.h$=function(){this.K||(this.K=this.AC());return this.K==null?new w2:new AJ(this.K)}; g.M.WX=function(){return new rX};g.d(zw,x5);zw.prototype.K=function(Y){return Y.Je()==4};g.d(gX,hj);gX.prototype.K=function(Y){Y=Y.Je();return Y==3||Y==4};g.d(Eh,sh);Eh.prototype.j=function(){return new gX(this.K)}; Eh.prototype.X=function(){return[new zw(this.K)]};g.d(Hd,gdY);Hd.prototype.K=function(Y){Y&&(Y.e===28&&(Y=Object.assign({},Y,{avas:3})),Y.vs===4||Y.vs===5)&&(Y=Object.assign({},Y,{vs:3}));var u=new zK0;u.K=oQ(Y,hr$);u.j=oQ(Y,wqQ);return u};C7S.prototype.j=function(){return g.nR(this.K)};g.d(yY,od);g.M=yY.prototype;g.M.IR=function(Y,u){var n=this,U=jE($5);if(U.K!=null)switch(U.K.getName()){case "nis":var k=i5d(this,Y,u);break;case "gsv":k=N0W(this,Y,u);break;case "exc":k=Z5t(this,Y)}k||(u.opt_overlayAdElement?k=void 0:u.opt_adElement&&(k=P7u(this,Y,u.opt_adElement,u.opt_osdId)));k&&k.kM()==1&&(k.S==g.lN&&(k.S=function(m){return n.sB(m)}),QAM(this,k,u)); return k}; g.M.sB=function(Y){Y.j=0;Y.DW=0;if(Y.G=="h"||Y.G=="n"){Uf();Y.TZ&&(Uf(),eC(this)!="h"&&eC(this));var u=g.nR("ima.common.getVideoMetadata");if(typeof u==="function")try{var n=u(Y.vc)}catch(k){Y.j|=4}else Y.j|=2}else if(Y.G=="b")if(u=g.nR("ytads.bulleit.getVideoMetadata"),typeof u==="function")try{n=u(Y.vc)}catch(k){Y.j|=4}else Y.j|=2;else if(Y.G=="ml")if(u=g.nR("ima.common.getVideoMetadata"),typeof u==="function")try{n=u(Y.vc)}catch(k){Y.j|=4}else Y.j|=2;else Y.j|=1;Y.j||(n===void 0?Y.j|=8:n===null? Y.j|=16:g.i4(n)?Y.j|=32:n.errorCode!=null&&(Y.DW=n.errorCode,Y.j|=64));n==null&&(n={});u=n;Y.Z=0;for(var U in BcJ)u[U]==null&&(Y.Z|=BcJ[U]);SMW(u,"currentTime");SMW(u,"duration");zb(n.volume)&&zb()&&(n.volume*=NaN);return n}; g.M.AC=function(){Uf();eC(this)!="h"&&eC(this);var Y=T0M(this);return Y!=null?new C7S(Y):null}; g.M.pJ=function(Y){!Y.K&&Y.HK&&bZ(this,Y,"overlay_unmeasurable_impression")&&(Y.K=!0)}; g.M.JK=function(Y){Y.GQ&&(Y.W3()?bZ(this,Y,"overlay_viewable_end_of_session_impression"):bZ(this,Y,"overlay_unviewable_impression"),Y.GQ=!1)}; g.M.HZ=function(){}; g.M.yr=function(Y,u,n,U){if(LBM()){var k=tm(Uf().ju,"mm"),m={};(k=(m[ks.Ib]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",m[ks.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",m)[k])&&dFA(this,k);this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Rv(1044,Error())}Y=od.prototype.yr.call(this,Y,u,n,U);this.J&&(u=this.W,Y.J==null&&(Y.J=new w7G),u.K[Y.vc]=Y.J,Y.J.J=erJ);return Y}; g.M.oN=function(Y){Y&&Y.kM()==1&&this.J&&delete this.W.K[Y.vc];return od.prototype.oN.call(this,Y)}; g.M.h$=function(){this.K||(this.K=this.AC());return this.K==null?new w2:this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Eh(this.K):new AJ(this.K)}; g.M.WX=function(){return this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Hd:new rX}; g.M.BL=function(Y,u,n,U,k){u=new ew(n,u+U,n+k,u);(Y=Jj(qP,Y))?Y.BL(u):this.X=u}; var b3X=cS(193,AZc,void 0,XfW);g.Y$("Goog_AdSense_Lidar_sendVastEvent",b3X);var InL=vS(194,function(Y,u){u=u===void 0?{}:u;Y=sAu(jE(yY),Y,u);return GB0(Y)}); g.Y$("Goog_AdSense_Lidar_getViewability",InL);var zrG=cS(195,function(){return Tc7()}); g.Y$("Goog_AdSense_Lidar_getUrlSignalsArray",zrG);var gPQ=vS(196,function(){return JSON.stringify(Tc7())}); g.Y$("Goog_AdSense_Lidar_getUrlSignalsList",gPQ);var pft=g.rG(["//ep2.adtrafficquality.google/sodar/",""]),LaB=g.rG(["//tpc.googlesyndication.com/sodar/",""]);g.d(FK,Error);g.d(ad,g.e);ad.prototype.Ih=function(){return this.wpc.f()}; ad.prototype.FW=function(Y){this.wpc.c(Y)}; ad.prototype.dF=function(Y){return this.wpc.m(cZW(Y))}; ad.prototype.rh=function(Y){return this.wpc.mws(cZW(Y))}; g.d(JJ,g.e);JJ.prototype.snapshot=function(Y){return this.mI.s(Object.assign({},Y.yv&&{c:Y.yv},Y.ZI&&{s:Y.ZI},Y.cY!==void 0&&{p:Y.cY}))}; JJ.prototype.ND=function(Y){this.mI.e(Y)}; JJ.prototype.N8=function(){return this.mI.l()};g.d(Yy,g.e);Yy.prototype.share=function(){if(this.gg())throw Error("E:AD");this.j++;return this}; Yy.prototype.dispose=function(){--this.j||g.e.prototype.dispose.call(this)};hJY.prototype.JU=function(Y,u){this.K.JU("/client_streamz/bg/frs",Y,u)}; wfe.prototype.JU=function(Y,u,n,U,k,m){this.K.JU("/client_streamz/bg/wrl",Y,u,n,U,k,m)}; Wau.prototype.i8=function(Y,u){this.K.pu("/client_streamz/bg/ec",Y,u)}; eJd.prototype.JU=function(Y,u,n){this.K.JU("/client_streamz/bg/el",Y,u,n)}; b5Y.prototype.i8=function(Y,u){this.K.pu("/client_streamz/bg/cec",Y,u)}; IY7.prototype.i8=function(Y,u){this.K.pu("/client_streamz/bg/po/csc",Y,u)}; zJ0.prototype.i8=function(Y,u){this.K.pu("/client_streamz/bg/po/ctav",Y,u)}; gme.prototype.i8=function(Y,u){this.K.pu("/client_streamz/bg/po/cwsc",Y,u)};g.d(EmB,K5);g.d(Us,K5);var fx=[1,2,3];var EPL=[0,fx,Ks$,rmX,AmR];var H3L=[0,Xw,[0,SFJ,QKQ]];g.d(ky,K5);var Cx=[1,2,3];var ymX=[0,Cx,i3u,fnC,Sm,H3L];g.d(mv,K5);var V8g=[0,Xw,EPL,ymX];var O3X=[0,m8];g.d(Xs,K5);var FsG=[0,m8,-1,Gdu];var JmQ=[0,m8,-1,Z3y,Gdu];g.d(Pm,K5);var f0S=[1,2,3];var qFX=[0,f0S,Sm,FsG,Sm,JmQ,Sm,O3X];g.d(Sa,K5);Sa.prototype.KQ=function(){var Y=PZ(this,3,oH,3,!0);Oi(Y);return Y[void 0]};Sa.prototype.X=GoS([0,m8,qFX,jKJ,Xw,V8g,M8q,sKy]);g.d(yZd,K5);g.M=Qy.prototype;g.M.isEnabled=function(){if(!g.$e.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{j_:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.M.set=function(Y,u,n){var U=!1;if(typeof n==="object"){var k=n.SXc;U=n.secure||!1;var m=n.domain||void 0;var X=n.path||void 0;var S=n.j_}if(/[;=\s]/.test(Y))throw Error('Invalid cookie name "'+Y+'"');if(/[;\r\n]/.test(u))throw Error('Invalid cookie value "'+u+'"');S===void 0&&(S=-1);n=m?";domain="+m:"";X=X?";path="+X:"";U=U?";secure":"";S=S<0?"":S==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+S*1E3)).toUTCString();this.K.cookie=Y+"="+u+n+X+S+U+(k!=null?";samesite="+ k:"")}; g.M.get=function(Y,u){for(var n=Y+"=",U=(this.K.cookie||"").split(";"),k=0,m;k=0;u--)this.remove(Y[u])}; var vy=new Qy(typeof document=="undefined"?null:document);ir.prototype.compress=function(Y){var u,n,U,k;return g.l(function(m){switch(m.j){case 1:return u=new CompressionStream("gzip"),n=(new Response(u.readable)).arrayBuffer(),U=u.writable.getWriter(),g.D(m,U.write((new TextEncoder).encode(Y)),2);case 2:return g.D(m,U.close(),3);case 3:return k=Uint8Array,g.D(m,n,4);case 4:return m.return(new k(m.K))}})}; ir.prototype.isSupported=function(Y){return Y<1024?!1:typeof CompressionStream!=="undefined"};g.d(Zk,K5);Ty.prototype.setInterval=function(Y){this.intervalMs=Y;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; Ty.prototype.start=function(){var Y=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){Y.tick()},this.intervalMs),this.j=this.K())}; Ty.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; Ty.prototype.tick=function(){var Y=this;if(this.enabled){var u=Math.max(this.K()-this.j,0);u0?n:void 0));n=nr(n,4,Tm(k>0?k:void 0));n=nr(n,5,Tm(m>0?m:void 0));k=n.xV;m=k[zZ]|0;n=VQ(n,m)?n:Oa(n,k,m)?Fi(n,k):new n.constructor(V3(k,m,!0));tP(X,de,10,n)}X=this.K.clone();n=Date.now().toString();X=nr(X,4,pn(n));Y=BZ(X,oF,3,Y.slice());U&&(X=new re,U=nr(X,13,Tm(U)),X=new MY, U=tP(X,re,2,U),X=new Bm,U=tP(X,MY,1,U),U=e4(U,2,9),tP(Y,Bm,18,U));u&&hP(Y,14,u);return Y};g.lr.prototype.j=0;g.lr.prototype.reset=function(){this.K=this.X=this.G;this.j=0}; g.lr.prototype.getValue=function(){return this.X};g.d($m,K5);var anX=Ys($m);g.d(Mwd,K5);var Mr;Mr=new sut;g.d(ea,g.e);g.M=ea.prototype;g.M.nG=function(){Wm(this);this.j.stop();this.MF.stop();g.e.prototype.nG.call(this)}; g.M.dispatch=function(Y){if(Y instanceof oF)this.log(Y);else try{var u=new oF,n=Y.TE();var U=wy(u,8,n);this.log(U)}catch(k){br(this,4,1)}}; g.M.log=function(Y){br(this,2,1);if(this.Fk){Y=Y.clone();var u=this.zZ++;Y=hP(Y,21,u);this.componentId&&wy(Y,26,this.componentId);u=Y;var n=Yl(u,1);var U=U===void 0?!1:U;var k=typeof n;U=n==null?n:k==="bigint"?String(Au(64,n)):ZT(n)?k==="string"?Gm(n):U?j_(n):Kn(n):void 0;U==null&&(U=Date.now(),U=Number.isFinite(U)?U.toString():"0",nr(u,1,pn(U)));U=Yl(u,15);U!=null&&(typeof U==="bigint"?zm(U)?U=Number(U):(U=Au(64,U),U=zm(U)?Number(U):String(U)):U=ZT(U)?typeof U==="number"?Kn(U):Gm(U):void 0);U!=null|| hP(u,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(U=this.experimentIds.clone(),tP(u,Zk,16,U));br(this,1,1);u=this.K.length-1E3+1;u>0&&(this.K.splice(0,u),this.G+=u,br(this,3,u));this.K.push(Y);this.A7||this.j.enabled||this.j.start()}}; g.M.flush=function(Y,u){var n=this;if(this.K.length===0)Y&&Y();else if(this.rg&&this.KG)this.X.j=3,rQM(this);else{var U=Date.now();if(this.CG>U&&this.DW0&&(n.DW=Date.now(),n.CG=n.DW+Z);Z=ZJ(xd);var K;IE&&Z&&((K=T.xV[Z])==null?void 0:K[175237375])!=null&&eE(E$X,3);a:{var L=L===void 0?!1:L;if(ZJ(HR$)&&ZJ(xd)&&void 0===HR$){K=T.xV;Z=K[xd];if(!Z)break a;if(Z=Z.ow)try{Z(K,175237375,qqu);break a}catch(R){tz(R)}}L&&(L=T.xV, (K=ZJ(xd))&&K in L&&(L=L[K])&&delete L[175237375])}L=Mr.K?Mr.j(T,Mr.K,175237375,Mr.X):Mr.j(T,175237375,null,Mr.X);if(L=L===null?void 0:L)L=cZ(L,1,-1),L!==-1&&(n.J=new g.lr(L<1?1:L,3E5,.1),n.j.setInterval(n.J.getValue()))}}Y&&Y();n.W=0},Q=function(Z,T){var r=Lr(m,oF,3); var K=Number(lOS(m,14));g.hp(n.J);n.j.setInterval(n.J.getValue());Z===401&&X&&(n.JJ=X);K&&(n.G+=K);T===void 0&&(T=n.isRetryable(Z));T&&(n.K=r.concat(n.K),n.A7||n.j.enabled||n.j.start());br(n,7,1);u&&u("net-send-failed",Z);++n.W},N=function(){n.network&&n.network.send(C,f,Q)}; S?S.then(function(Z){br(n,5,k);C.requestHeaders["Content-Encoding"]="gzip";C.requestHeaders["Content-Type"]="application/binary";C.body=Z;C.Tn=2;N()},function(){br(n,6,k); N()}):N()}}}}; g.M.isRetryable=function(Y){return 500<=Y&&Y<600||Y===401||Y===0};IF.prototype.send=function(Y,u,n){var U=this,k,m,X,S,C,f,Q,N,Z,T;return g.l(function(r){switch(r.j){case 1:return m=(k=U.Fq?new AbortController:void 0)?setTimeout(function(){k.abort()},Y.timeoutMillis):void 0,g.pY(r,2,3),X=Object.assign({},{method:Y.requestType, headers:Object.assign({},Y.requestHeaders)},Y.body&&{body:Y.body},Y.withCredentials&&{credentials:"include"},{signal:Y.timeoutMillis&&k?k.signal:null}),g.D(r,fetch(Y.url,X),5);case 5:S=r.K;if(S.status!==200){(C=n)==null||C(S.status);r.qF(3);break}if((f=u)==null){r.qF(7);break}return g.D(r,S.text(),8);case 8:f(r.K);case 7:case 3:g.lB(r);clearTimeout(m);g.wG(r,0);break;case 2:Q=g.vc(r);switch((N=Q)==null?void 0:N.name){case "AbortError":(Z=n)==null||Z(408);break;default:(T=n)==null||T(400)}r.qF(3)}})}; IF.prototype.xj=function(){return 4};g.d(zy,g.e);zy.prototype.QR=function(){this.J=!0;return this}; zy.prototype.build=function(){this.network||(this.network=new IF);var Y=new ea({logSource:this.logSource,r$:this.r$?this.r$:UkG,sessionIndex:this.sessionIndex,Uak:this.TY,F_:this.G,A7:!1,QR:this.J,Mn:this.Mn,network:this.network});g.b(this,Y);if(this.j){var u=this.j,n=Dk(Y.X);wy(n,7,u)}Y.S=new ir;this.componentId&&(Y.componentId=this.componentId);this.FJ&&(Y.FJ=this.FJ);this.pageId&&(Y.pageId=this.pageId);this.K&&((n=this.K)?(Y.experimentIds||(Y.experimentIds=new Zk),u=Y.experimentIds,n=n.TE(),wy(u, 4,n)):Y.experimentIds&&nr(Y.experimentIds,4));this.X&&(Y.rg=Y.KG);Qv7(Y.X);this.network.dB&&this.network.dB(this.logSource);this.network.seW&&this.network.seW(Y);return Y};g.d(ge,g.e);ge.prototype.flush=function(Y){Y=Y||[];if(Y.length){for(var u=new yZd,n=[],U=0;U-1?(u=Y[X],n||(u.Qp=!1)):(u=new pSW(u,this.src,m,!!U,k),u.Qp=n,Y.push(u));return u}; g.M.remove=function(Y,u,n,U){Y=Y.toString();if(!(Y in this.listeners))return!1;var k=this.listeners[Y];u=$y(k,u,n,U);return u>-1?(Jp(k[u]),g.KR(k,u),k.length==0&&(delete this.listeners[Y],this.K--),!0):!1}; g.M.removeAll=function(Y){Y=Y&&Y.toString();var u=0,n;for(n in this.listeners)if(!Y||n==Y){for(var U=this.listeners[n],k=0;k-1?Y[k]:null}; g.M.hasListener=function(Y,u){var n=Y!==void 0,U=n?Y.toString():"",k=u!==void 0;return g.n3(this.listeners,function(m){for(var X=0;X>>0);g.T$(g.is,g.e);g.is.prototype[jvS]=!0;g.M=g.is.prototype;g.M.addEventListener=function(Y,u,n,U){g.us(this,Y,u,n,U)}; g.M.removeEventListener=function(Y,u,n,U){RB0(this,Y,u,n,U)}; g.M.dispatchEvent=function(Y){var u=this.rR;if(u){var n=[];for(var U=1;u;u=u.rR)n.push(u),++U}u=this.A5;U=Y.type||Y;if(typeof Y==="string")Y=new g.Vy(Y,u);else if(Y instanceof g.Vy)Y.target=Y.target||u;else{var k=Y;Y=new g.Vy(U,u);g.sF(Y,k)}k=!0;var m;if(n)for(m=n.length-1;!Y.j&&m>=0;m--){var X=Y.currentTarget=n[m];k=Ze(X,U,!0,Y)&&k}Y.j||(X=Y.currentTarget=u,k=Ze(X,U,!0,Y)&&k,Y.j||(k=Ze(X,U,!1,Y)&&k));if(n)for(m=0;!Y.j&&m0){this.j--;var Y=this.K;this.K=Y.next;Y.next=null}else Y=this.X();return Y};var ME;dr.prototype.add=function(Y,u){var n=W0u.get();n.set(Y,u);this.j?this.j.next=n:this.K=n;this.j=n}; dr.prototype.remove=function(){var Y=null;this.K&&(Y=this.K,this.K=this.K.next,this.K||(this.j=null),Y.next=null);return Y}; var W0u=new TE(function(){return new GE},function(Y){return Y.reset()}); GE.prototype.set=function(Y,u){this.K=Y;this.scope=u;this.next=null}; GE.prototype.reset=function(){this.next=this.scope=this.K=null};var AH,jd=!1,hBW=new dr;eBY.prototype.reset=function(){this.context=this.j=this.X=this.K=null;this.G=!1}; var bod=new TE(function(){return new eBY},function(Y){Y.reset()}); g.cB.prototype.then=function(Y,u,n){return F0S(this,rr(typeof Y==="function"?Y:null),rr(typeof u==="function"?u:null),n)}; g.cB.prototype.$goog_Thenable=!0;g.M=g.cB.prototype;g.M.finally=function(Y){var u=this;Y=rr(Y);return new Promise(function(n,U){Esc(u,function(k){Y();n(k)},function(k){Y(); U(k)})})}; g.M.Qg=function(Y,u){return F0S(this,null,rr(Y),u)}; g.M.catch=g.cB.prototype.Qg;g.M.cancel=function(Y){if(this.K==0){var u=new hH(Y);g.KH(function(){HoW(this,u)},this)}}; g.M.cbz=function(Y){this.K=0;o1(this,2,Y)}; g.M.wWF=function(Y){this.K=0;o1(this,3,Y)}; g.M.Rf=function(){for(var Y;Y=yQu(this);)VVd(this,Y,this.K,this.S);this.W=!1}; var $k0=tz;g.T$(hH,r$);hH.prototype.name="cancel";g.T$(g.wr,g.is);g.M=g.wr.prototype;g.M.enabled=!1;g.M.C0=null;g.M.setInterval=function(Y){this.Qu=Y;this.C0&&this.enabled?(this.stop(),this.start()):this.C0&&this.stop()}; g.M.MMg=function(){if(this.enabled){var Y=g.iQ()-this.qh;Y>0&&Y0&&(this.getStatus(),this.W=setTimeout(this.YB.bind(this), this.KG)),this.getStatus(),this.N=!0,this.K.send(Y),this.N=!1}catch(X){this.getStatus(),ZcG(this,X)}}; g.M.YB=function(){typeof V1!="undefined"&&this.K&&(this.G="Timed out after "+this.KG+"ms, aborting",this.j=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.M.abort=function(Y){this.K&&this.X&&(this.getStatus(),this.X=!1,this.J=!0,this.K.abort(),this.J=!1,this.j=Y||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),y1(this))}; g.M.nG=function(){this.K&&(this.X&&(this.X=!1,this.J=!0,this.K.abort(),this.J=!1),y1(this,!0));g.HB.PM.nG.call(this)}; g.M.lP=function(){this.gg()||(this.jG||this.N||this.J?T2G(this):this.gk2())}; g.M.gk2=function(){T2G(this)}; g.M.isActive=function(){return!!this.K}; g.M.isComplete=function(){return g.O6(this)==4}; g.M.getStatus=function(){try{return g.O6(this)>2?this.K.status:-1}catch(Y){return-1}}; g.M.getResponseHeader=function(Y){if(this.K&&this.isComplete())return Y=this.K.getResponseHeader(Y),Y===null?void 0:Y}; g.M.getLastError=function(){return typeof this.G==="string"?this.G:String(this.G)};$1.prototype.send=function(Y,u,n){u=u===void 0?function(){}:u; n=n===void 0?function(){}:n; N2W(Y.url,function(U){U=U.target;FZ(U)?u(g.JH(U)):n(U.getStatus())},Y.requestType,Y.body,Y.requestHeaders,Y.timeoutMillis,Y.withCredentials)}; $1.prototype.xj=function(){return 1};uJ.prototype.done=function(){this.logger.wl(this.event,YW()-this.startTime)}; g.d(nJ,Yy);g.d(kW,nJ);g.M=kW.prototype;g.M.Rk=function(){}; g.M.aj=function(){}; g.M.wl=function(){}; g.M.yd=function(){}; g.M.P3=function(){}; g.M.nx=function(Y,u,n,U){return U}; g.M.mB=function(){}; g.M.Yj=function(){}; g.M.Pl=function(){}; g.d(mM,nJ);g.M=mM.prototype;g.M.update=function(Y){this.logger.dispose();this.logger=Y}; g.M.aj=function(Y){this.logger.aj(Y)}; g.M.wl=function(Y,u){this.logger.wl(Y,u)}; g.M.yd=function(Y){this.logger.yd(Y)}; g.M.P3=function(){this.logger.P3()}; g.M.nx=function(Y,u,n,U){return this.logger.nx(Y,u,n,U)}; g.M.mB=function(Y){this.logger.mB(Y)}; g.M.Yj=function(Y){this.logger.Yj(Y)}; g.M.Pl=function(Y){this.logger.Pl(Y)}; g.M.Rk=function(Y){this.logger.Rk(Y)}; g.d(dPB,g.e);g.d(XS,nJ);g.M=XS.prototype;g.M.Rk=function(Y){this.metrics.f02.JU(Y,this.EP)}; g.M.aj=function(Y){this.metrics.eventCount.i8(Y,this.EP)}; g.M.wl=function(Y,u){this.metrics.fq.JU(u,Y,this.EP)}; g.M.yd=function(Y){this.metrics.errorCount.i8(Y,this.EP)}; g.M.nx=function(Y,u,n,U){function k(S){if(!m.gg()){var C=YW()-X;m.metrics.baq.JU(C,Y,n,S,u,m.EP)}} var m=this,X=YW();U.then(function(){return void k(0)},function(S){return void k(S instanceof I1?S.code:-1)}); return U}; g.M.mB=function(Y){this.metrics.XCq.i8(Y,this.EP)}; g.M.Yj=function(Y){this.metrics.vr.i8(Y,this.EP)}; g.M.Pl=function(Y){this.metrics.j_G.i8(Y,this.EP)}; g.d(Pg,XS);Pg.prototype.P3=function(){G5d(this.K)};g.d(Se,K5);g.d(CJ,K5);g.d(fJ,K5);var lNB=Ys(fJ),KPu=function(Y){return fP(function(u){return u instanceof Y&&!VQ(u)})}(fJ); fJ.messageId="bfkj";g.d(AjS,K5);g.d($V,K5);g.d(Qc,K5);var pVS=Ys(Qc);g.d(iJ,g.e);iJ.prototype.snapshot=function(Y){if(this.gg())throw Error("Already disposed");this.logger.aj("n");var u=this.logger.share();return this.X.then(function(n){var U=n.Ef;return new Promise(function(k){var m=new uJ(u,"n");U(function(X){m.done();u.Rk(X.length);u.P3();u.dispose();k(X)},[Y.yv, Y.ZI,Y.wP,Y.cY])})})}; iJ.prototype.Dw=function(Y){var u=this;if(this.gg())throw Error("Already disposed");this.logger.aj("n");var n=Uv(this.logger,function(){return u.G([Y.yv,Y.ZI,Y.wP,Y.cY])},"n"); this.logger.Rk(n.length);this.logger.P3();return n}; iJ.prototype.ND=function(Y){this.X.then(function(u){var n;(n=u.C6G)==null||n(Y)})}; iJ.prototype.N8=function(){return this.logger.share()};g.d(rj,K5);g.d(Mv,K5);dj.prototype.Nd=function(Y){return ezu(this,Y,new kW,0)};g.d(Gs,g.e);Gs.prototype.snapshot=function(Y){var u=this;return g.l(function(n){switch(n.j){case 1:if(u.gg())throw Error("Already disposed");if(u.j||u.S){n.qF(2);break}return g.D(n,u.J.promise,2);case 2:if(!u.j){n.qF(4);break}return g.D(n,u.j.snapshot(Y),5);case 5:return n.return(n.K);case 4:throw u.S;}})}; Gs.prototype.ND=function(Y){var u,n;(u=this.j)==null||(n=u.ND)==null||n.call(u,Y)}; Gs.prototype.handleError=function(Y){if(!this.gg()){this.S=Y;this.J.resolve();var u,n;(n=(u=this.options).R_2)==null||n.call(u,Y)}}; Gs.prototype.N8=function(){return this.logger.share()}; var zz7={RRg:432E5,zQ:3E5,tB:10,bL:1E4,qK:3E4,Z9:3E4,UAk:6E4,xH:1E3,NE:6E4,If:6E5,Kq:.25,U0:2,maxAttempts:10};var uyX,qoe=(uyX=Math.imul)!=null?uyX:function(Y,u){return Y*u|0},pJ=[196, 200,224,18];LJ.prototype.TE=function(){return String(this.K)+","+this.j.join()}; LJ.prototype.Ca=function(Y,u){var n=void 0;if(this.j[this.K]!==Y){var U=this.j.indexOf(Y);U!==-1?(this.j.splice(U,1),U0;)u[n++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Y%62),Y=Math.floor(Y/62);return u.join("")}};g.d(Bg,g.e);Bg.prototype.rh=function(Y,u){var n=this.dF(Y);u==null||u(n);return Uv(this.logger,function(){return g.oE(n,2)},this.j)}; g.d(vg,Bg);vg.prototype.dF=function(Y,u){var n=this;this.logger.aj(this.K);++this.J>=this.W&&this.X.resolve();var U=Y();Y=Uv(this.logger,function(){return n.G(U)},"C"); if(Y===void 0)throw new FK(17,"YNJ:Undefined");if(!(Y instanceof Uint8Array))throw new FK(18,"ODM:Invalid");u==null||u(Y);return Y}; g.d(RS,Bg);RS.prototype.dF=function(){return this.G}; g.d(Db,Bg);Db.prototype.dF=function(){var Y=this;return Uv(this.logger,function(){return vi(Y.G)},"d")}; Db.prototype.rh=function(){return this.G}; g.d(xW,Bg);xW.prototype.dF=function(){if(this.G)return this.G;this.G=fMu(this,function(Y){return"_"+CZd(Y)}); return fMu(this,function(Y){return Y})}; g.d(ht,Bg);ht.prototype.dF=function(){var Y=Math.floor(Date.now()/1E3),u=[Math.random()*255,Math.random()*255],n=u.concat([this.G&255,this.clientState],[Y>>24&255,Y>>16&255,Y>>8&255,Y&255]);Y=new Uint8Array(2+n.length);Y[0]=34;Y[1]=n.length;Y.set(n,2);n=Y.subarray(2);for(var U=u=u.length;U150))try{this.cache=new kwu(Y,this.logger)}catch(u){this.reportError(new FK(22,"GBJ:init",u))}}; g.M.reportError=function(Y){this.logger.yd(Y.code);this.onError(Y);return Y}; var itB=function(Y){return fP(function(u){if(!zXG(u))return!1;for(var n=g.A(Object.entries(Y)),U=n.next();!U.done;U=n.next()){var k=g.A(U.value);U=k.next().value;k=k.next().value;if(!(U in u)){if(k.Pxq===!0)continue;return!1}if(!k(u[U]))return!1}return!0})}({mI:function(Y){return fP(function(u){return u instanceof Y})}(Gs)},"");var VdY=(new Date).getTime();g.d(IS,K5);var nrL=Ys(IS);jdB.prototype.getMetadata=function(){return this.metadata};zs.prototype.getMetadata=function(){return this.metadata}; zs.prototype.getStatus=function(){return this.status};gj.prototype.S=function(Y,u){u=u===void 0?{}:u;return new jdB(Y,this,u)}; gj.prototype.getName=function(){return this.name};var U5u=new gj("/google.internal.waa.v1.Waa/Create",rj,IS,function(Y){return Y.TE()},nrL);g.d(Ev,K5);var wVc=new gj("/google.internal.waa.v1.Waa/GenerateIT",Mv,Ev,function(Y){return Y.TE()},Ys(Ev));var $St=new Set(["SAPISIDHASH","APISIDHASH"]);g.d(Hg,K5);Hg.prototype.getValue=function(){var Y=Yl(this,2);if(Array.isArray(Y)||Y instanceof K5)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Cr(this,2)};g.d(yc,K5);yc.prototype.getMessage=function(){return Rx(this,2)}; var oVe=Ys(yc);Vc.prototype.lx=function(Y,u){Y=="data"?this.X.push(u):Y=="metadata"?this.J.push(u):Y=="status"?this.W.push(u):Y=="end"?this.G.push(u):Y=="error"&&this.j.push(u);return this}; Vc.prototype.removeListener=function(Y,u){Y=="data"?aS(this.X,u):Y=="metadata"?aS(this.J,u):Y=="status"?aS(this.W,u):Y=="end"?aS(this.G,u):Y=="error"&&aS(this.j,u);return this}; Vc.prototype.cancel=function(){this.K.abort()}; Vc.prototype.cancel=Vc.prototype.cancel;Vc.prototype.removeListener=Vc.prototype.removeListener;Vc.prototype.on=Vc.prototype.lx;g.d(pdu,Error);g.T$(g.$W,fNe);g.$W.prototype.K=function(){var Y=new Y8(this.G,this.X);this.j&&Y.setCredentialsMode(this.j);return Y}; g.$W.prototype.setCredentialsMode=function(Y){this.j=Y}; g.T$(Y8,g.is);g.M=Y8.prototype;g.M.open=function(Y,u){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.oV=Y;this.KG=u;this.readyState=1;uk(this)}; g.M.send=function(Y){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.Z.signal.aborted)throw this.abort(),Error("Request was aborted.");this.K=!0;var u={headers:this.N,method:this.oV,credentials:this.J,cache:void 0,signal:this.Z.signal};Y&&(u.body=Y);(this.jG||g.$e).fetch(new Request(this.KG,u)).then(this.So.bind(this),this.Gz.bind(this))}; g.M.abort=function(){this.response=this.responseText="";this.N=new Headers;this.status=0;this.Z.abort();this.X&&this.X.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.K&&this.readyState!=4&&(this.K=!1,np(this));this.readyState=0}; g.M.So=function(Y){if(this.K&&(this.G=Y,this.j||(this.status=this.G.status,this.statusText=this.G.statusText,this.j=Y.headers,this.readyState=2,uk(this)),this.K&&(this.readyState=3,uk(this),this.K)))if(this.responseType==="arraybuffer")Y.arrayBuffer().then(this.JF.bind(this),this.Gz.bind(this));else if(typeof g.$e.ReadableStream!=="undefined"&&"body"in Y){this.X=Y.body.getReader();if(this.W){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.S=new TextDecoder;cJc(this)}else Y.text().then(this.V9.bind(this),this.Gz.bind(this))}; g.M.y9=function(Y){if(this.K){if(this.W&&Y.value)this.response.push(Y.value);else if(!this.W){var u=Y.value?Y.value:new Uint8Array(0);if(u=this.S.decode(u,{stream:!Y.done}))this.response=this.responseText+=u}Y.done?np(this):uk(this);this.readyState==3&&cJc(this)}}; g.M.V9=function(Y){this.K&&(this.response=this.responseText=Y,np(this))}; g.M.JF=function(Y){this.K&&(this.response=Y,np(this))}; g.M.Gz=function(){this.K&&np(this)}; g.M.setRequestHeader=function(Y,u){this.N.append(Y,u)}; g.M.getResponseHeader=function(Y){return this.j?this.j.get(Y.toLowerCase())||"":""}; g.M.getAllResponseHeaders=function(){if(!this.j)return"";for(var Y=[],u=this.j.entries(),n=u.next();!n.done;)n=n.value,Y.push(n[0]+": "+n[1]),n=u.next();return Y.join("\r\n")}; g.M.setCredentialsMode=function(Y){this.J=Y}; Object.defineProperty(Y8.prototype,"withCredentials",{get:function(){return this.J==="include"}, set:function(Y){this.setCredentialsMode(Y?"include":"same-origin")}});g.UQ.prototype.toString=function(){var Y=[],u=this.J;u&&Y.push(fp(u,kru,!0),":");var n=this.K;if(n||u=="file")Y.push("//"),(u=this.Z)&&Y.push(fp(u,kru,!0),"@"),Y.push(g.oD(n).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.X,n!=null&&Y.push(":",String(n));if(n=this.j)this.K&&n.charAt(0)!="/"&&Y.push("/"),Y.push(fp(n,n.charAt(0)=="/"?m5C:XpG,!0));(n=this.G.toString())&&Y.push("?",n);(n=this.W)&&Y.push("#",fp(n,P5Q));return Y.join("")}; g.UQ.prototype.resolve=function(Y){var u=this.clone(),n=!!Y.J;n?g.k8(u,Y.J):n=!!Y.Z;n?u.Z=Y.Z:n=!!Y.K;n?g.mJ(u,Y.K):n=Y.X!=null;var U=Y.j;if(n)g.XD(u,Y.X);else if(n=!!Y.j){if(U.charAt(0)!="/")if(this.K&&!this.j)U="/"+U;else{var k=u.j.lastIndexOf("/");k!=-1&&(U=u.j.slice(0,k+1)+U)}k=U;if(k==".."||k==".")U="";else if(g.RK(k,"./")||g.RK(k,"/.")){U=cq(k,"/");k=k.split("/");for(var m=[],X=0;X1||m.length==1&&m[0]!="")&&m.pop(), U&&X==k.length&&m.push("")):(m.push(S),U=!0)}U=m.join("/")}else U=k}n?u.j=U:n=Y.G.toString()!=="";n?PA(u,Y.G.clone()):n=!!Y.W;n&&(u.W=Y.W);return u}; g.UQ.prototype.clone=function(){return new g.UQ(this)}; var kru=/[#\/\?@]/g,XpG=/[#\?:]/g,m5C=/[#\?]/g,lMM=/[#\?@]/g,P5Q=/#/g;g.M=Cp.prototype;g.M.add=function(Y,u){ik(this);this.X=null;Y=Z7(this,Y);var n=this.K.get(Y);n||this.K.set(Y,n=[]);n.push(u);this.j=this.j+1;return this}; g.M.remove=function(Y){ik(this);Y=Z7(this,Y);return this.K.has(Y)?(this.X=null,this.j=this.j-this.K.get(Y).length,this.K.delete(Y)):!1}; g.M.clear=function(){this.K=this.X=null;this.j=0}; g.M.isEmpty=function(){ik(this);return this.j==0}; g.M.forEach=function(Y,u){ik(this);this.K.forEach(function(n,U){n.forEach(function(k){Y.call(u,k,U,this)},this)},this)}; g.M.Vv=function(){ik(this);for(var Y=Array.from(this.K.values()),u=Array.from(this.K.keys()),n=[],U=0;U0?String(Y[0]):u}; g.M.toString=function(){if(this.X)return this.X;if(!this.K)return"";for(var Y=[],u=Array.from(this.K.keys()),n=0;n>>3;m.X!=1&&m.X!=2&&m.X!=15&&sQ(m,X,S,"unexpected tag");m.K=1;m.j=0;m.G=0} function n(C){m.G++;m.G==5&&C&240&&sQ(m,X,S,"message length too long");m.j|=(C&127)<<(m.G-1)*7;C&128||(m.K=2,m.Z=0,typeof Uint8Array!=="undefined"?m.J=new Uint8Array(m.j):m.J=Array(m.j),m.j==0&&k())} function U(C){m.J[m.Z++]=C;m.Z==m.j&&k()} function k(){if(m.X<15){var C={};C[m.X]=m.J;m.S.push(C)}m.K=0} for(var m=this,X=Y instanceof Array?Y:new Uint8Array(Y),S=0;S0?Y:null};dH.prototype.isInputValid=function(){return this.K===null}; dH.prototype.UX=function(){return this.K}; dH.prototype.Ge=function(){return!1}; dH.prototype.parse=function(Y){this.K!==null&&gVd(this,Y,"stream already broken");var u=null;try{var n=this.X;n.X||zF7(n,Y,"stream already broken");n.K+=Y;var U=Math.floor(n.K.length/4);if(U==0)var k=null;else{try{var m=oPA(n.K.slice(0,U*4))}catch(X){zF7(n,n.K,X.message)}n.j+=U*4;n.K=n.K.slice(U*4);k=m}u=k===null?null:this.G.parse(k)}catch(X){gVd(this,Y,X.message)}this.j+=Y.length;return u};var C5$={INIT:0,ez:1,Oq:2,Jy:3,B7:4,i_:5,STRING:6,yL:7,VJ:8,zq:9,Tq:10,Yc:11,Y2:12,v9:13,P9:14,mL:15,kc:16,Bj:17,QJ:18,xt:19,Li:20};g.M=AF.prototype;g.M.isInputValid=function(){return this.J!=3}; g.M.UX=function(){return this.N}; g.M.done=function(){return this.J===2}; g.M.Ge=function(){return!1}; g.M.parse=function(Y){function u(){for(;Z0;)if(r=Y[Z++], m.Z===4?m.Z=0:m.Z++,!r)break a;if(r==='"'&&!m.S){m.K=U();break}if(r==="\\"&&!m.S&&(m.S=!0,r=Y[Z++],!r))break;if(m.S)if(m.S=!1,r==="u"&&(m.Z=1),r=Y[Z++])continue;else break;S.lastIndex=Z;r=S.exec(Y);if(!r){Z=Y.length+1;break}Z=r.index+1;r=Y[r.index];if(!r)break}m.X+=Z-K;continue;case C.zq:if(!r)continue;r==="r"?m.K=C.Tq:jU(m,Y,Z);continue;case C.Tq:if(!r)continue;r==="u"?m.K=C.Yc:jU(m,Y,Z);continue;case C.Yc:if(!r)continue;r==="e"?m.K=U():jU(m,Y,Z);continue;case C.Y2:if(!r)continue;r==="a"?m.K=C.v9: jU(m,Y,Z);continue;case C.v9:if(!r)continue;r==="l"?m.K=C.P9:jU(m,Y,Z);continue;case C.P9:if(!r)continue;r==="s"?m.K=C.mL:jU(m,Y,Z);continue;case C.mL:if(!r)continue;r==="e"?m.K=U():jU(m,Y,Z);continue;case C.kc:if(!r)continue;r==="u"?m.K=C.Bj:jU(m,Y,Z);continue;case C.Bj:if(!r)continue;r==="l"?m.K=C.QJ:jU(m,Y,Z);continue;case C.QJ:if(!r)continue;r==="l"?m.K=U():jU(m,Y,Z);continue;case C.xt:r==="."?m.K=C.Li:jU(m,Y,Z);continue;case C.Li:if("0123456789.eE+-".indexOf(r)!==-1)continue;else Z--,m.X--,m.K= U();continue;default:jU(m,Y,Z)}}} function U(){var r=X.pop();return r!=null?r:C.ez} function k(r){m.j>1||(r||(r=N===-1?m.G+Y.substring(Q,Z):Y.substring(N,Z)),m.KG?m.W.push(r):m.W.push(JSON.parse(r)),N=Z)} for(var m=this,X=m.oV,S=m.jG,C=C5$,f=Y.length,Q=0,N=-1,Z=0;Z0?(T=m.W,m.W=[],T):null}return null};Kp.prototype.isInputValid=function(){return this.J===null}; Kp.prototype.UX=function(){return this.J}; Kp.prototype.Ge=function(){return!1}; Kp.prototype.parse=function(Y){function u(C){m.j=6;m.J="The stream is broken @"+m.K+"/"+X+". Error: "+C+". With input:\n";throw Error(m.J);} function n(){m.X=new AF({Qjz:!0,Sw:!0})} function U(C){if(C)for(var f=0;f1)&&u("extra status: "+C);m.W=!0;var f={};f[2]=C[0];m.G.push(f)}} for(var m=this,X=0;X0?(Y=m.G,m.G=[],Y):null};pp.prototype.YJ=function(){return this.K}; pp.prototype.getStatus=function(){return this.J}; pp.prototype.KG=function(Y){Y=Y.target;try{if(Y==this.K)a:{var u=g.O6(this.K),n=this.K.j,U=this.K.getStatus(),k=g.JH(this.K);Y=[];if(g.qE(this.K)instanceof Array){var m=g.qE(this.K);m.length>0&&m[0]instanceof Uint8Array&&(this.N=!0,Y=m)}if(!(u<3||u==3&&!k&&Y.length==0))if(U=U==200||U==206,u==4&&(n==8?Lp(this,7):n==7?Lp(this,8):U||Lp(this,3)),this.j||(this.j=EV0(this.K),this.j==null&&Lp(this,5)),this.J>2)tF(this);else{if(Y.length>this.X){var X=Y.length;n=[];try{if(this.j.Ge())for(var S=0;Sthis.X){S=k.slice(this.X);this.X=k.length;try{var f=this.j.parse(S);f!=null&&this.G&&this.G(f)}catch(Q){Lp(this,5);tF(this);break a}}u==4?(k.length!= 0||this.N?Lp(this,2):Lp(this,4),tF(this)):Lp(this,1)}}}catch(Q){Lp(this,6),tF(this)}};g.M=HtM.prototype;g.M.lx=function(Y,u){var n=this.j[Y];n||(n=[],this.j[Y]=n);n.push(u);return this}; g.M.addListener=function(Y,u){this.lx(Y,u);return this}; g.M.removeListener=function(Y,u){var n=this.j[Y];n&&g.pR(n,u);(Y=this.K[Y])&&g.pR(Y,u);return this}; g.M.once=function(Y,u){var n=this.K[Y];n||(n=[],this.K[Y]=n);n.push(u);return this}; g.M.sVz=function(Y){var u=this.j.data;u&&yJW(Y,u);(u=this.K.data)&&yJW(Y,u);this.K.data=[]}; g.M.fkc=function(){switch(this.X.getStatus()){case 1:BA(this,"readable");break;case 5:case 6:case 4:case 7:case 3:BA(this,"error");break;case 8:BA(this,"close");break;case 2:BA(this,"end")}};VCe.prototype.serverStreaming=function(Y,u,n,U){var k=this,m=Y.substring(0,Y.length-U.name.length);return YsS(function(X){var S=X.Y7,C=X.getMetadata(),f=JJu(k,!1);C=qhW(k,C,f,m+S.getName());var Q=aMM(f,S.j,!0);X=S.K(X.k_);f.send(C,"POST",X);return Q},this.BT).call(this,U.S(u,n))};usW.prototype.create=function(Y,u,n){var U=this.K,k=this.j+"/$rpc/google.internal.waa.v1.Waa/Create";u=u||{};n=n===void 0?{}:n;return WPt(U,k,Y,u,U5u,n)};var nyu="://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(" "),UYd=/\bocr\b/;var mYu=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(Y){throw Y;}},{Uza:!0, xOJ:!0,I8F:!1,K_w:v$G,o5c:RX$,f8V:!1,Zdg:!1,N_k:!0,n5F:cyu,aCF:!1,Hbq:!1,N5V:!1});var vA=null,D7=!1,rpY=1,ixG=Symbol("SIGNAL"),sk={version:0,a6c:0,s1:!1,producers:void 0,YC:void 0,q0:void 0,tT:void 0,Be:!1,IY:!1,KI:!1,kind:"unknown",ut:function(){return!1}, Dc:function(){}, oY:function(){}, vMq:function(){}};var dx=Symbol("UNSET"),GU=Symbol("COMPUTING"),Av=Symbol("ERRORED");Object.assign({},sk,{value:dx,s1:!0,error:null,EN:cA,kind:"computed",ut:function(Y){return Y.value===dx||Y.value===GU}, Dc:function(Y){if(Y.value===GU)throw Error("");var u=Y.value;Y.value=GU;var n=Ssc(Y),U=!1;try{var k=Y.RJ();Re(null);U=u!==dx&&u!==Av&&k!==Av&&Y.EN(u,k)}catch(m){k=Av,Y.error=m}finally{fku(Y,n)}U?Y.value=u:(Y.value=k,Y.version++)}});var Nee=Object.assign({},sk,{EN:cA,value:void 0,kind:"signal"});Object.assign({},sk,{value:dx,s1:!0,error:null,EN:cA,kind:"linkedSignal",ut:function(Y){return Y.value===dx||Y.value===GU}, Dc:function(Y){if(Y.value===GU)throw Error("");var u=Y.value;Y.value=GU;var n=Ssc(Y);try{var U=Y.source();var k=Y.RJ(U,u===dx||u===Av?void 0:{source:Y.nQc,value:u});Y.nQc=U}catch(m){k=Av,Y.error=m}finally{fku(Y,n)}u!==dx&&k!==Av&&Y.EN(u,k)?Y.value=u:(Y.value=k,Y.version++)}});Object.assign({},sk,{KI:!0,IY:!1,oY:function(Y){Y.schedule!==null&&Y.schedule(Y.EgZ)}, ZQG:!1,wg2:function(){}});g.d(wH,g.is);wH.prototype.dispose=function(){window.removeEventListener("offline",this.X);window.removeEventListener("online",this.X);this.JZ.aO(this.J);delete wH.instance}; wH.prototype.XP=function(){return this.K}; wH.prototype.rp=function(){var Y=this;this.J=this.JZ.MX(function(){var u;return g.l(function(n){if(n.j==1)return Y.K?((u=window.navigator)==null?0:u.onLine)?n.qF(3):g.D(n,hF(Y),3):g.D(n,hF(Y),3);Y.rp();g.KY(n)})},3E4)};g.d(sFS,K5);var fO$=dK0(sFS,[0,f7,oPC,Z3y,f7,-2,Z3y,QKQ]);eU.prototype.set=function(Y,u){u=u===void 0?!0:u;0<=Y&&Y<52&&Number.isInteger(Y)&&this.data[Y]!==u&&(this.data[Y]=u,this.K=-1)}; eU.prototype.get=function(Y){return!!this.data[Y]};var Ie;g.T$(g.EQ,g.e);g.M=g.EQ.prototype;g.M.start=function(){this.stop();this.G=!1;var Y=GyY(this),u=ApA(this);Y&&!u&&this.j.mozRequestAnimationFrame?(this.K=g.us(this.j,"MozBeforePaint",this.X),this.j.mozRequestAnimationFrame(null),this.G=!0):this.K=Y&&u?Y.call(this.j,this.X):this.j.setTimeout(IJM(this.X),20)}; g.M.stop=function(){if(this.isActive()){var Y=GyY(this),u=ApA(this);Y&&!u&&this.j.mozRequestAnimationFrame?mi(this.K):Y&&u?u.call(this.j,this.K):this.j.clearTimeout(this.K)}this.K=null}; g.M.isActive=function(){return this.K!=null}; g.M.vE=function(){this.G&&this.K&&mi(this.K);this.K=null;this.W.call(this.J,g.iQ())}; g.M.nG=function(){this.stop();g.EQ.PM.nG.call(this)};g.T$(g.Vp,g.e);g.M=g.Vp.prototype;g.M.X2=0;g.M.nG=function(){g.Vp.PM.nG.call(this);this.stop();delete this.K;delete this.j}; g.M.start=function(Y){this.stop();this.X2=g.WB(this.X,Y!==void 0?Y:this.Qu)}; g.M.stop=function(){this.isActive()&&g.$e.clearTimeout(this.X2);this.X2=0}; g.M.isActive=function(){return this.X2!=0}; g.M.UB=function(){this.X2=0;this.K&&this.K.call(this.j)};g.d(g.qs,g.e);g.M=g.qs.prototype;g.M.pw=function(Y){this.X=arguments;this.C0||this.j?this.K=!0:ae(this)}; g.M.stop=function(){this.C0&&(g.$e.clearTimeout(this.C0),this.C0=null,this.K=!1,this.X=null)}; g.M.pause=function(){this.j++}; g.M.resume=function(){this.j--;this.j||!this.K||this.C0||(this.K=!1,ae(this))}; g.M.nG=function(){g.e.prototype.nG.call(this);this.stop()};g.$8.prototype[Symbol.iterator]=function(){return this}; g.$8.prototype.next=function(){var Y=this.K.next();return{value:Y.done?void 0:this.j.call(void 0,Y.value),done:Y.done}};g.T$(g.SK,g.is);g.M=g.SK.prototype;g.M.isPlaying=function(){return this.K==1}; g.M.isPaused=function(){return this.K==-1}; g.M.AM=function(){this.oD("begin")}; g.M.B3=function(){this.oD("end")}; g.M.onFinish=function(){this.oD("finish")}; g.M.onStop=function(){this.oD("stop")}; g.M.oD=function(Y){this.dispatchEvent(Y)};var QDg=h5(function(){var Y=g.rh("DIV"),u=g.NK?"-webkit":VV?"-moz":null,n="transition:opacity 1s linear;";u&&(n+=u+"-transition:opacity 1s linear;");u=o$M({style:n});if(Y.nodeType===1&&/^(script|style)$/i.test(Y.tagName))throw Error("");Y.innerHTML=Tr(u);return g.OD(Y.firstChild,"transition")!=""});g.T$(CE,g.SK);g.M=CE.prototype;g.M.play=function(){if(this.isPlaying())return!1;this.AM();this.oD("play");this.startTime=g.iQ();this.K=1;if(QDg())return g.yV(this.j,this.W),this.X=g.WB(this.ERq,void 0,this),!0;this.Ki(!1);return!1}; g.M.ERq=function(){g.Ui(this.j);pmd(this.j,this.S);g.yV(this.j,this.G);this.X=g.WB((0,g.fR)(this.Ki,this,!1),this.J*1E3)}; g.M.stop=function(){this.isPlaying()&&this.Ki(!0)}; g.M.Ki=function(Y){g.yV(this.j,"transition","");g.$e.clearTimeout(this.X);g.yV(this.j,this.G);this.endTime=g.iQ();this.K=0;if(Y)this.onStop();else this.onFinish();this.B3()}; g.M.nG=function(){this.stop();CE.PM.nG.call(this)}; g.M.pause=function(){};var tat={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};fE("Element","attributes")||fE("Node","attributes");fE("Element","innerHTML")||fE("HTMLElement","innerHTML");fE("Node","nodeName");fE("Node","nodeType");fE("Node","parentNode");fE("Node","childNodes");fE("HTMLElement","style")||fE("Element","style");fE("HTMLStyleElement","sheet");var DYG=oyd("getPropertyValue"),xY0=oyd("setProperty");fE("Element","namespaceURI")||fE("Node","namespaceURI");var RIS={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var WvG,dXX,wmG,hIB,eIY;WvG=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]");dXX=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.NSX=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.N8=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]");wmG=/^http:\/\/.*/;g.iu$=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");hIB=/\s+/;eIY=/[\d\u06f0-\u06f9]/;ZB.prototype.YO=function(){return new TK(this.j())}; ZB.prototype[Symbol.iterator]=function(){return new rE(this.j())}; ZB.prototype.K=function(){return new rE(this.j())}; g.d(TK,g.j$);TK.prototype.next=function(){return this.j.next()}; TK.prototype[Symbol.iterator]=function(){return new rE(this.j)}; TK.prototype.K=function(){return new rE(this.j)}; g.d(rE,ZB);rE.prototype.next=function(){return this.X.next()};sN.prototype.clone=function(){return new sN(this.K,this.S,this.X,this.J,this.G,this.W,this.j,this.Z)}; sN.prototype.equals=function(Y){return this.K==Y.K&&this.S==Y.S&&this.X==Y.X&&this.J==Y.J&&this.G==Y.G&&this.W==Y.W&&this.j==Y.j&&this.Z==Y.Z};GK.prototype.clone=function(){return new GK(this.start,this.end)};(function(){if(tQ7){var Y=/Windows NT ([0-9.]+)/;return(Y=Y.exec(g.Wq()))?Y[1]:"0"}return Mt?(Y=/1[0|1][_.][0-9_.]+/,(Y=Y.exec(g.Wq()))?Y[0].replace(/_/g,"."):"10"):g.FA?(Y=/Android\s+([^\);]+)(\)|;)/,(Y=Y.exec(g.Wq()))?Y[1]:""):lJ$||hXq||wuQ?(Y=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(Y=Y.exec(g.Wq()))?Y[1].replace(/_/g,"."):""):""})();var Ike=function(){if(g.ib)return AG(/Firefox\/([0-9.]+)/);if(g.QP||g.gD||g.Yn)return Ayc;if(g.sP){if(Wp()||eO()){var Y=AG(/CriOS\/([0-9.]+)/);if(Y)return Y}return AG(/Chrome\/([0-9.]+)/)}if(g.Z0&&!Wp())return AG(/Version\/([0-9.]+)/);if(yS||VS){if(Y=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Wq()))return Y[1]+"."+Y[2]}else if(g.uo)return(Y=AG(/Android\s+([0-9.]+)/))?Y:AG(/Version\/([0-9.]+)/);return""}();g.T$(g.KE,g.e);g.M=g.KE.prototype;g.M.subscribe=function(Y,u,n){var U=this.j[Y];U||(U=this.j[Y]=[]);var k=this.W;this.K[k]=Y;this.K[k+1]=u;this.K[k+2]=n;this.W=k+3;U.push(k);return k}; g.M.unsubscribe=function(Y,u,n){if(Y=this.j[Y]){var U=this.K;if(Y=Y.find(function(k){return U[k+1]==u&&U[k+2]==n}))return this.eh(Y)}return!1}; g.M.eh=function(Y){var u=this.K[Y];if(u){var n=this.j[u];this.G!=0?(this.X.push(Y),this.K[Y+1]=function(){}):(n&&g.pR(n,Y),delete this.K[Y],delete this.K[Y+1],delete this.K[Y+2])}return!!u}; g.M.publish=function(Y,u){var n=this.j[Y];if(n){var U=Array(arguments.length-1),k=arguments.length,m;for(m=1;m0&&this.G==0)for(;n=this.X.pop();)this.eh(n)}}return m!=0}return!1}; g.M.clear=function(Y){if(Y){var u=this.j[Y];u&&(u.forEach(this.eh,this),delete this.j[Y])}else this.K.length=0,this.j={}}; g.M.nG=function(){g.KE.PM.nG.call(this);this.clear();this.X.length=0};g.pE.prototype.set=function(Y,u){u===void 0?this.K.remove(Y):this.K.set(Y,g.zE(u))}; g.pE.prototype.get=function(Y){try{var u=this.K.get(Y)}catch(n){return}if(u!==null)try{return JSON.parse(u)}catch(n){throw"Storage: Invalid value was encountered";}}; g.pE.prototype.remove=function(Y){this.K.remove(Y)};g.T$(LE,g.pE);LE.prototype.set=function(Y,u){LE.PM.set.call(this,Y,Eye(u))}; LE.prototype.j=function(Y){Y=LE.PM.get.call(this,Y);if(Y===void 0||Y instanceof Object)return Y;throw"Storage: Invalid value was encountered";}; LE.prototype.get=function(Y){if(Y=this.j(Y)){if(Y=Y.data,Y===void 0)throw"Storage: Invalid value was encountered";}else Y=void 0;return Y};g.T$(tG,LE);tG.prototype.set=function(Y,u,n){if(u=Eye(u)){if(n){if(n=n.length)return g.i1;var k=n.key(u++);if(Y)return g.Kc(k);k=n.getItem(k);if(typeof k!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Kc(k)}; return U}; g.M.clear=function(){vP(this);this.K.clear()}; g.M.key=function(Y){vP(this);return this.K.key(Y)};g.T$(R0,cP);g.T$(VaB,cP);g.T$(DB,o0);DB.prototype.set=function(Y,u){this.j.set(this.K+Y,u)}; DB.prototype.get=function(Y){return this.j.get(this.K+Y)}; DB.prototype.remove=function(Y){this.j.remove(this.K+Y)}; DB.prototype.YO=function(Y){var u=this.j[Symbol.iterator](),n=this,U=new g.j$;U.next=function(){var k=u.next();if(k.done)return k;for(k=k.value;k.slice(0,n.K.length)!=n.K;){k=u.next();if(k.done)return k;k=k.value}return g.Kc(Y?k.slice(n.K.length):n.j.get(k))}; return U};l9.prototype.getValue=function(){return this.j}; l9.prototype.clone=function(){return new l9(this.K,this.j)};g.M=hG.prototype;g.M.Ca=function(Y,u){var n=this.K;n.push(new l9(Y,u));Y=n.length-1;u=this.K;for(n=u[Y];Y>0;){var U=Y-1>>1;if(u[U].K>n.K)u[Y]=u[U],Y=U;else break}u[Y]=n}; g.M.remove=function(){var Y=this.K,u=Y.length,n=Y[0];if(!(u<=0)){if(u==1)Y.length=0;else{Y[0]=Y.pop();Y=0;u=this.K;for(var U=u.length,k=u[Y];Y>1;){var m=Y*2+1,X=Y*2+2;m=Xk.K)break;u[Y]=u[m];Y=m}u[Y]=k}return n.getValue()}}; g.M.RA=function(){for(var Y=this.K,u=[],n=Y.length,U=0;U>>16&65535|0;for(var m;n!==0;){m=n>2E3?2E3:n;n-=m;do k=k+u[U++]|0,Y=Y+k|0;while(--m);k%=65521;Y%=65521}return k|Y<<16|0};for(var QM={},jm,sDy=[],K7=0;K7<256;K7++){jm=K7;for(var d5q=0;d5q<8;d5q++)jm=jm&1?3988292384^jm>>>1:jm>>>1;sDy[K7]=jm}QM=function(Y,u,n,U){n=U+n;for(Y^=-1;U>>8^sDy[(Y^u[U])&255];return Y^-1};var uY={};uY={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 ON=[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],q8=[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],s1G=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],PsS=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],mD=Array(576);b9(mD);var Xc=Array(60);b9(Xc);var JG=Array(512);b9(JG);var VP=Array(256);b9(VP);var FE=Array(29);b9(FE);var a0=Array(30);b9(a0);var Tru,rH7,MdA,ZH0=!1;var rs;rs=[new T6(0,0,0,0,function(Y,u){var n=65535;for(n>Y.LY-5&&(n=Y.LY-5);;){if(Y.c$<=1){Nd(Y);if(Y.c$===0&&u===0)return 1;if(Y.c$===0)break}Y.rX+=Y.c$;Y.c$=0;var U=Y.fu+n;if(Y.rX===0||Y.rX>=U)if(Y.c$=Y.rX-U,Y.rX=U,PQ(Y,!1),Y.VY.TR===0)return 1;if(Y.rX-Y.fu>=Y.oO-262&&(PQ(Y,!1),Y.VY.TR===0))return 1}Y.Ca=0;if(u===4)return PQ(Y,!0),Y.VY.TR===0?3:4;Y.rX>Y.fu&&PQ(Y,!1);return 1}), new T6(4,4,8,4,iY),new T6(4,5,16,8,iY),new T6(4,6,32,32,iY),new T6(4,4,16,16,ZC),new T6(8,16,32,32,ZC),new T6(8,16,128,128,ZC),new T6(8,32,128,256,ZC),new T6(32,128,258,1024,ZC),new T6(32,258,258,4096,ZC)];var iH7={};iH7=function(){this.input=null;this.m5=this.hD=this.I5=0;this.output=null;this.jD=this.TR=this.W8=0;this.msg="";this.state=null;this.CK=2;this.qN=0};var dEe=Object.prototype.toString; Md.prototype.push=function(Y,u){var n=this.VY,U=this.options.chunkSize;if(this.ended)return!1;var k=u===~~u?u:u===!0?4:0;typeof Y==="string"?n.input=JpM(Y):dEe.call(Y)==="[object ArrayBuffer]"?n.input=new Uint8Array(Y):n.input=Y;n.I5=0;n.hD=n.input.length;do{n.TR===0&&(n.output=new eK.qL(U),n.W8=0,n.TR=U);Y=Nrd(n,k);if(Y!==1&&Y!==0)return this.B3(Y),this.ended=!0,!1;if(n.TR===0||n.hD===0&&(k===4||k===2))if(this.options.to==="string"){var m=eK.Qh(n.output,n.W8);u=m;m=m.length;if(m<65537&&(u.subarray&& MOX||!u.subarray))u=String.fromCharCode.apply(null,eK.Qh(u,m));else{for(var X="",S=0;S0||n.TR===0)&&Y!==1);if(k===4)return(n=this.VY)&&n.state?(U=n.state.status,U!==42&&U!==69&&U!==73&&U!==91&&U!==103&&U!==113&&U!==666?Y=nN(n,-2):(n.state=null,Y=U===113?nN(n,-3):0)):Y=-2,this.B3(Y),this.ended=!0,Y===0;k===2&&(this.B3(0),n.TR=0);return!0}; Md.prototype.B3=function(Y){Y===0&&(this.result=this.options.to==="string"?this.chunks.join(""):eK.Z3(this.chunks));this.chunks=[];this.err=Y;this.msg=this.VY.msg};var ds="@@redux/INIT"+s_(),LiM="@@redux/REPLACE"+s_();var tdA=typeof Symbol==="function"&&Symbol.observable||"@@observable";var GrJ=[0,pqR,-3,C7];g.d(v1W,K5);var ILm=dK0(v1W,[0,f7,LsG,m8,pqR,m8,-1,C7,pqR,C7,-1,f7,C7,LsG,Xw,GrJ,m8,-1,C7]);var Rd0=548418180;var J6G=new g.ju("adInfoDialogEndpoint");var oke=new g.ju("adPingingEndpoint");var a_A=new g.ju("crossDeviceProgressCommand");var ez=new g.ju("actionCompanionAdRenderer");var Fg=new g.ju("adActionInterstitialRenderer");var AqJ=new g.ju("adDurationRemainingRenderer");var Qn=new g.ju("adHoverTextButtonRenderer");var Obu=new g.ju("adInfoDialogRenderer");var O7=new g.ju("adMessageRenderer");var NN=new g.ju("adPreviewRenderer");var Ia=new g.ju("adsEngagementPanelRenderer");var LcY=new g.ju("dismissablePanelTextPortraitImageRenderer");var Kcd=new g.ju("adsEngagementPanelSectionListViewModel");var jD$=new g.ju("flyoutCtaRenderer");var by=new g.ju("imageCompanionAdRenderer");var V8=new g.ju("instreamAdPlayerOverlayRenderer");var eSC=new g.ju("instreamSurveyAdBackgroundImageRenderer");var fB=new g.ju("instreamSurveyAdPlayerOverlayRenderer");var aa=new g.ju("instreamSurveyAdRenderer"),CB=new g.ju("instreamSurveyAdSingleSelectQuestionRenderer"),S1=new g.ju("instreamSurveyAdMultiSelectQuestionRenderer"),p7=new g.ju("instreamSurveyAdAnswerRenderer"),KGR=new g.ju("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var Ja=new g.ju("instreamVideoAdRenderer");var ppg=new g.ju("textOverlayAdContentRenderer"),LGJ=new g.ju("enhancedTextOverlayAdContentRenderer"),tOu=new g.ju("imageOverlayAdContentRenderer");var OR=new g.ju("playerOverlayLayoutRenderer");var JY=new g.ju("videoInterstitialButtonedCenteredLayoutRenderer");var v9e=new g.ju("aboveFeedAdLayoutRenderer");var Rtd=new g.ju("belowPlayerAdLayoutRenderer");var cCW=new g.ju("inPlayerAdLayoutRenderer");var ue=new g.ju("playerBytesAdLayoutRenderer");var PI=new g.ju("playerBytesSequenceItemAdLayoutRenderer");var Xr=new g.ju("playerUnderlayAdLayoutRenderer");var qM=new g.ju("adIntroRenderer");var Ot=new g.ju("playerBytesSequentialLayoutRenderer");var frt=new g.ju("slidingTextPlayerOverlayRenderer");var $u=new g.ju("surveyTextInterstitialRenderer");var nB=new g.ju("videoAdTrackingRenderer");var Gtm=new g.ju("videoInterstitialCenteredLayoutViewModel");var BSJ=new g.ju("simpleAdBadgeRenderer");var h8=new g.ju("skipAdRenderer"),or$=new g.ju("skipButtonRenderer");var rp=new g.ju("adSlotRenderer");var kB=new g.ju("squeezebackPlayerSidePanelRenderer");var cqQ=new g.ju("timedPieCountdownRenderer");var On=new g.ju("adAvatarViewModel");var Fl=new g.ju("adBadgeViewModel");var J9=new g.ju("adButtonViewModel");var vrg=new g.ju("adDetailsLineViewModel");var RVg=new g.ju("adDisclosureBannerViewModel");var D5B=new g.ju("adPodIndexViewModel");var x5$=new g.ju("imageBackgroundViewModel");var lOX=new g.ju("adGridCardCollectionViewModel");var hVL=new g.ju("adGridCardTextViewModel");var wpJ=new g.ju("adPreviewViewModel");var WGy=new g.ju("playerAdAvatarLockupCardButtonedViewModel");var eVB=new g.ju("skipAdButtonViewModel");var buC=new g.ju("skipAdViewModel");var IOq=new g.ju("timedPieCountdownViewModel");var zVX=new g.ju("visitAdvertiserLinkViewModel");var z4=new g.ju("bannerImageLayoutViewModel");var gf=new g.ju("topBannerImageTextIconButtonedLayoutViewModel");var Et=new g.ju("adsEngagementPanelLayoutViewModel");var mo=new g.ju("displayUnderlayTextGridCardsLayoutViewModel");g.qW=new g.ju("browseEndpoint");var grL=new g.ju("confirmDialogEndpoint");var qbt=new g.ju("commandContext");var SUt=new g.ju("rawColdConfigGroup");var PLG=new g.ju("rawHotConfigGroup");g.Qj=new g.ju("commandExecutorCommand");g.d(xEu,K5);var bKc={kDF:0,vTz:1,oMk:32,jja:61,yGV:67,qAG:103,GKG:86,KVF:42,fCc:60,mWF:62,bdF:73,nMc:76,utw:88,rGw:90,LVk:99,xzg:98,DzW:100,hOG:102,OdW:41,FVG:69,Hda:70,WVg:71,B3a:2,Qq2:27,ANDROID:3,P9G:54,mrF:14,f4w:91,s_w:55,th2:24,aoG:20,Urc:18,xXV:21,I4q:104,naF:30,jMk:29,Xc2:28,wsJ:101,GfG:34,RuG:36,NwF:38,IOS:5,VcW:15,EvV:92,STg:40,lNa:25,i1J:17,k3g:19,B7Z:64,Qm2:66,Z1F:26,c4G:22,wvk:33,pvF:68,zhJ:35,ehF:53,dIa:37,Cyz:39,Ltc:7,OeF:57,Ftk:43,Wtg:59,HeG:93,bFF:74,AZz:75,gTV:85,MfF:65,VfJ:80,SYc:8,DWZ:10, lbq:58,CbG:63,JZg:72,huc:23,MTa:11,JGa:13,TtJ:12,yZk:16,ICk:56,Xgk:31,ClW:77,UYk:84,ROW:87,xIz:89,NOw:94,DSF:95};g.d(KN,K5);KN.prototype.Cq=function(){return Rx(this,3)}; KN.prototype.ey=function(){return Rx(this,5)}; KN.prototype.In=function(Y){return wy(this,5,Y)};g.d(pN,K5);g.d(leW,K5);g.d(LN,K5);g.M=LN.prototype;g.M.getDeviceId=function(){return Rx(this,6)}; g.M.F3=function(Y){var u=PZ(this,9,rm,3,!0);Oi(u,Y);return u[Y]}; g.M.getPlayerType=function(){return DE(this,36)}; g.M.setHomeGroupInfo=function(Y){return tP(this,leW,81,Y)}; g.M.clearLocationPlayabilityToken=function(){return nr(this,89)};g.d(tw,K5);tw.prototype.getValue=function(){return Rx(this,M_(this,mI0,2))}; var mI0=[2,3,4,5,6];g.d(BQ,K5);BQ.prototype.setTrackingParams=function(Y){return nr(this,1,Int(Y,!1))};g.d(oJ,K5);g.d(cQ,K5);cQ.prototype.F3=function(Y){var u=PZ(this,5,Me,3,!0);Oi(u,Y);return u[Y]};g.d(vQ,K5);vQ.prototype.getToken=function(){return lu(this,2)}; vQ.prototype.setToken=function(Y){return wy(this,2,Y)};g.d(RJ,K5);RJ.prototype.setSafetyMode=function(Y){return e4(this,5,Y)};g.d(DC,K5);DC.prototype.E8=function(Y){return tP(this,LN,1,Y)};var ZH=new g.ju("thumbnailLandscapePortraitRenderer");g.Ery=new g.ju("changeEngagementPanelVisibilityAction");var pF7=new g.ju("continuationCommand");g.Hu$=new g.ju("openPopupAction");g.L7=new g.ju("webCommandMetadata");var Tp0=new g.ju("metadataBadgeRenderer");var Khe=new g.ju("signalServiceEndpoint");var cr=new g.ju("innertubeCommand");var PU7=new g.ju("loggingDirectives");var dvm={JDG:"EMBEDDED_PLAYER_MODE_UNKNOWN",ADV:"EMBEDDED_PLAYER_MODE_DEFAULT",MQc:"EMBEDDED_PLAYER_MODE_PFP",g8G:"EMBEDDED_PLAYER_MODE_PFL"};var IH7=new g.ju("channelThumbnailEndpoint");var bBB=new g.ju("embeddedPlayerErrorMessageRenderer");var hsu=new g.ju("embeddedPlayerOverlayVideoDetailsRenderer"),zsu=new g.ju("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),gBG=new g.ju("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var NpA=new g.ju("embedsInfoPanelRenderer");var yqJ=new g.ju("feedbackEndpoint");var VO$=new g.ju("callToActionButtonViewModel");var Ou$=new g.ju("interactionLoggingCommandMetadata");var ZEu={NmG:"WEB_DISPLAY_MODE_UNKNOWN",sDJ:"WEB_DISPLAY_MODE_BROWSER",abq:"WEB_DISPLAY_MODE_MINIMAL_UI",UWk:"WEB_DISPLAY_MODE_STANDALONE",tfF:"WEB_DISPLAY_MODE_FULLSCREEN"};g.d(xK,K5);xK.prototype.getPlayerType=function(){return DE(this,7)}; xK.prototype.l8=function(){return Rx(this,19)}; xK.prototype.setVideoId=function(Y){return wy(this,19,Y)};g.d(lY,K5);g.d(hw,K5);g.d(ws,K5); var FGQ=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var Jqu=new g.ju("loggingContext");g.d(WQ,K5);g.d(eu,K5);eu.prototype.l8=function(){return lu(this,M_(this,UC,1))}; eu.prototype.setVideoId=function(Y){return TT(this,1,UC,B7(Y))}; eu.prototype.getPlaylistId=function(){return lu(this,M_(this,UC,2))}; var UC=[1,2];g.d(hdu,K5);var tx=new g.ju("changeKeyedMarkersVisibilityCommand");var qWB=new g.ju("changeMarkersVisibilityCommand");var M10=new g.ju("loadMarkersCommand");var aOJ=new g.ju("suggestedActionDataViewModel");var URc=new g.ju("timelyActionViewModel");var nGW=new g.ju("timelyActionsOverlayViewModel");var ZMA=new g.ju("productListItemRenderer");var $5$=new g.ju("shoppingOverlayRenderer");var wIu=new g.ju("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var YDu=new g.ju("adFeedbackEndpoint");var u8$=new g.ju("menuEndpoint");var GUu=new g.ju("phoneDialerEndpoint");var sMe=new g.ju("sendSmsEndpoint");var lHd=new g.ju("copyTextEndpoint");var n3$=new g.ju("shareEndpoint"),UKQ=new g.ju("shareEntityEndpoint"),ko$=new g.ju("shareEntityServiceEndpoint"),mKX=new g.ju("webPlayerShareEntityServiceEndpoint");g.Rc=new g.ju("urlEndpoint");g.pk=new g.ju("watchEndpoint");var X_g=new g.ju("watchPlaylistEndpoint");g.PNB=new g.ju("offlineOrchestrationActionCommand");var evY=new g.ju("compositeVideoOverlayRenderer");var SDg=new g.ju("miniplayerRenderer");var DNu=new g.ju("paidContentOverlayRenderer");var CNQ=new g.ju("playerMutedAutoplayOverlayRenderer"),fDq=new g.ju("playerMutedAutoplayEndScreenRenderer");var caY=new g.ju("unserializedPlayerResponse"),QuC=new g.ju("unserializedPlayerResponse");var NhJ=new g.ju("playlistEditEndpoint");var tv;g.ie=new g.ju("buttonRenderer");tv=new g.ju("toggleButtonRenderer");var jp7=new g.ju("counterfactualRenderer");var iiQ=new g.ju("resolveUrlCommandMetadata");var ZiQ=new g.ju("modifyChannelNotificationPreferenceEndpoint");var Blu=new g.ju("pingingEndpoint");var Thy=new g.ju("unsubscribeEndpoint");g.a2=new g.ju("subscribeButtonRenderer");var r5Q=new g.ju("subscribeEndpoint");var X5d=new g.ju("buttonViewModel");var plm=new g.ju("qrCodeRenderer");var za7={nO2:"LIVING_ROOM_APP_MODE_UNSPECIFIED",oOa:"LIVING_ROOM_APP_MODE_MAIN",KNG:"LIVING_ROOM_APP_MODE_KIDS",fTG:"LIVING_ROOM_APP_MODE_MUSIC",RKc:"LIVING_ROOM_APP_MODE_UNPLUGGED",ITG:"LIVING_ROOM_APP_MODE_GAMING"};var CeM=new g.ju("autoplaySwitchButtonRenderer");var YR,S3u,wTB,do0;YR=new g.ju("decoratedPlayerBarRenderer");S3u=new g.ju("chapteredPlayerBarRenderer");wTB=new g.ju("multiMarkersPlayerBarRenderer");do0=new g.ju("chapterRenderer");g.NIA=new g.ju("markerRenderer");var pMB=new g.ju("decoratedPlayheadRenderer");var iBW=new g.ju("desktopOverlayConfigRenderer");var tiW=new g.ju("engagementPanelSectionListRenderer");var Q3u=new g.ju("gatedActionsOverlayViewModel");var r_A=new g.ju("heatMarkerRenderer");var TId=new g.ju("heatmapRenderer");var rIu=new g.ju("watchToWatchTransitionRenderer");var Wod=new g.ju("playlistPanelRenderer");var MwG=new g.ju("productUpsellSuggestedActionViewModel");var suL=new g.ju("suggestedActionTimeRangeTrigger"),dK$=new g.ju("suggestedActionsRenderer"),GoX=new g.ju("suggestedActionRenderer");var MDA=new g.ju("timedMarkerDecorationRenderer");var w1W=new g.ju("cipher");var vuS=new g.ju("playerVars");var A5Q=new g.ju("playerVars");var BX=g.$e.window,jug,KBX,bY=(BX==null?void 0:(jug=BX.yt)==null?void 0:jug.config_)||(BX==null?void 0:(KBX=BX.ytcfg)==null?void 0:KBX.data_)||{};g.Y$("yt.config_",bY);var yM=[];var yHG=/^[\w.]*$/,zdM={q:!0,search_query:!0},Ieu=String(Jw);var XA=new function(){var Y=window.document;this.K=window;this.j=Y}; g.Y$("yt.ads_.signals_.getAdSignalsString",function(Y){return qd(Ss(Y))});g.iQ();var OHu="XMLHttpRequest"in g.$e?function(){return new XMLHttpRequest}:null;var p_$="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.Zu(p_$);var aed={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"},CJ7="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.Zu(p_$)),mvA=!1,nWe=Gq;g.d(Kv,r$);tk.prototype.then=function(Y,u,n){return this.K?this.K.then(Y,u,n):this.X===1&&Y?(Y=Y.call(n,this.j))&&typeof Y.then==="function"?Y:oo(Y):this.X===2&&u?(Y=u.call(n,this.j))&&typeof Y.then==="function"?Y:By(Y):this}; tk.prototype.getValue=function(){return this.j}; tk.prototype.$goog_Thenable=!0;var cy=!1;var zC=yS||VS;var MeM=/^([0-9\.]+):([0-9\.]+)$/;g.d(So,r$);So.prototype.name="BiscottiError";g.d(Pk,r$);Pk.prototype.name="BiscottiMissingError";var AtS={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Cb=null;var n$S=g.rG(["data-"]),vWu={};var LBB=0,fb=g.NK?"webkit":VV?"moz":g.QP?"ms":g.Yn?"o":"",twX=g.nR("ytDomDomGetNextId")||function(){return++LBB}; g.Y$("ytDomDomGetNextId",twX);var lbW={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};rT.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; rT.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; rT.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Mx=g.$e.ytEventsEventsListeners||{};g.Y$("ytEventsEventsListeners",Mx);var WMc=g.$e.ytEventsEventsCounter||{count:0};g.Y$("ytEventsEventsCounter",WMc);var zxW=h5(function(){var Y=!1;try{var u=Object.defineProperty({},"passive",{get:function(){Y=!0}}); window.addEventListener("test",null,u)}catch(n){}return Y}),exB=h5(function(){var Y=!1; try{var u=Object.defineProperty({},"capture",{get:function(){Y=!0}}); window.addEventListener("test",null,u)}catch(n){}return Y});var oM;oM=window;g.j2=oM.ytcsi&&oM.ytcsi.now?oM.ytcsi.now:oM.performance&&oM.performance.timing&&oM.performance.now&&oM.performance.timing.navigationStart?function(){return oM.performance.timing.navigationStart+oM.performance.now()}:function(){return(new Date).getTime()};g.T$(jo,g.e);jo.prototype.N=function(Y){Y.K===void 0&&hxu(Y);var u=Y.K;Y.j===void 0&&hxu(Y);this.K=new g.yO(u,Y.j)}; jo.prototype.Kf=function(){return this.K||new g.yO}; jo.prototype.KG=function(){if(this.K){var Y=(0,g.j2)();if(this.G!=0){var u=this.W,n=this.K,U=u.x-n.x;u=u.y-n.y;U=Math.sqrt(U*U+u*u)/(Y-this.G);this.j[this.X]=Math.abs((U-this.J)/this.J)>.5?1:0;for(n=u=0;n<4;n++)u+=this.j[n]||0;u>=3&&this.S();this.J=U}this.G=Y;this.W=this.K;this.X=(this.X+1)%4}}; jo.prototype.nG=function(){g.Zz(this.Z);g.dT(this.oV)};g.d(Kb,g.e);Kb.prototype.B=function(Y,u,n,U,k){n=g.O_((0,g.fR)(n,U||this.Gw));n={target:Y,name:u,callback:n};var m;k&&zxW()&&(m={passive:!0});Y.addEventListener(u,n.callback,m);this.S.push(n);return n}; Kb.prototype.qR=function(Y){for(var u=0;u=E.aA)||L.K.version>=J||L.K.objectStoreNames.contains(W)||c.push(W)}C=c;if(C.length===0){K.qF(5);break}f=Object.keys(n.options.CQ); Q=S.objectStoreNames();if(n.Jn.options.version+1)throw Z.close(),n.X=!1,o8B(n,T);return K.return(Z);case 8:throw u(), N instanceof Error&&!g.rL("ytidb_async_stack_killswitch")&&(N.stack=N.stack+"\n"+X.substring(X.indexOf("\n")+1)),TC(N,n.name,"",(r=n.options.version)!=null?r:-1);}})} function u(){n.K===U&&(n.K=void 0)} var n=this;if(!this.X)throw o8B(this);if(this.K)return this.K;var U,k={blocking:function(m){m.close()}, closed:u,WMz:u,upgrade:this.options.upgrade};return this.K=U=Y()};var bU=new WF("YtIdbMeta",{CQ:{databases:{aA:1}},upgrade:function(Y,u){u(1)&&g.pX(Y,"databases",{keyPath:"actualName"})}});var HF,E$=new function(){}(new function(){});new g.Nv;g.d(O$,WF);O$.prototype.j=function(Y,u,n){n=n===void 0?{}:n;return(this.options.shared?WJW:wAm)(Y,u,Object.assign({},n))}; O$.prototype.delete=function(Y){Y=Y===void 0?{}:Y;return(this.options.shared?zWu:eWu)(this.name,Y)};var hEg={},E80=g.FQ("ytGcfConfig",{CQ:(hEg.coldConfigStore={aA:1},hEg.hotConfigStore={aA:1},hEg),shared:!1,upgrade:function(Y,u){u(1)&&(g.vF(g.pX(Y,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.vF(g.pX(Y,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.d(qy,g.e);qy.prototype.nG=function(){for(var Y=g.A(this.j),u=Y.next();!u.done;u=Y.next()){var n=this.K;u=n.indexOf(u.value);u>=0&&n.splice(u,1)}this.j.length=0;g.e.prototype.nG.call(this)};U0.prototype.In=function(Y){this.hotHashData=Y;g.Y$("yt.gcf.config.hotHashData",this.hotHashData||null)};var w_X=typeof TextEncoder!=="undefined"?new TextEncoder:null,D8e=w_X?function(Y){return w_X.encode(Y)}:function(Y){Y=g.Bi(Y); for(var u=new Uint8Array(Y.length),n=0;n=u?!1:!0}; g.M.Bq=function(){var Y=this;if(!BN(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.l9.IU("QUEUED",this.dL).then(function(u){u&&!Y.CB(u,Y.Oi)?Y.JZ.MX(function(){return g.l(function(n){if(n.j==1)return u.id===void 0?n.qF(2):g.D(n,Y.l9.NC(u.id,Y.dL),2);Y.Bq();g.KY(n)})}):Y.G6.XP()&&Y.H7()})};var vN;var QoS={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,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464, startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489, keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var eEX={},qNc=g.FQ("ServiceWorkerLogsDatabase",{CQ:(eEX.SWHealthLog={aA:1},eEX),shared:!0,upgrade:function(Y,u){u(1)&&g.vF(g.pX(Y,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var xH={},Udt=0;var lD;wo.prototype.requestComplete=function(Y,u){u&&(this.j=!0);Y=this.removeParams(Y);this.K.get(Y)||this.K.set(Y,u)}; wo.prototype.isEndpointCFR=function(Y){Y=this.removeParams(Y);return(Y=this.K.get(Y))?!1:Y===!1&&this.j?!0:null}; wo.prototype.removeParams=function(Y){return Y.split("?")[0]}; wo.prototype.removeParams=wo.prototype.removeParams;wo.prototype.isEndpointCFR=wo.prototype.isEndpointCFR;wo.prototype.requestComplete=wo.prototype.requestComplete;wo.getInstance=WN;g.d(ev,g.is);g.M=ev.prototype;g.M.XP=function(){return this.K.XP()}; g.M.UZ=function(Y){this.K.K=Y}; g.M.bH=function(){var Y=window.navigator.onLine;return Y===void 0?!0:Y}; g.M.zI=function(){this.j=!0}; g.M.listen=function(Y,u){return this.K.listen(Y,u)}; g.M.wS=function(Y){Y=hF(this.K,Y);Y.then(function(u){g.rL("use_cfr_monitor")&&WN().requestComplete("generate_204",u)}); return Y}; ev.prototype.sendNetworkCheckRequest=ev.prototype.wS;ev.prototype.listen=ev.prototype.listen;ev.prototype.enableErrorFlushing=ev.prototype.zI;ev.prototype.getWindowStatus=ev.prototype.bH;ev.prototype.networkStatusHint=ev.prototype.UZ;ev.prototype.isNetworkAvailable=ev.prototype.XP;ev.getInstance=XQB;g.d(g.bD,g.is);g.bD.prototype.XP=function(){var Y=g.nR("yt.networkStatusManager.instance.isNetworkAvailable");return Y?Y.bind(this.j)():!0}; g.bD.prototype.UZ=function(Y){var u=g.nR("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);u&&u(Y)}; g.bD.prototype.wS=function(Y){var u=this,n;return g.l(function(U){n=g.nR("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(u.j);return g.rL("skip_network_check_if_cfr")&&WN().isEndpointCFR("generate_204")?U.return(new Promise(function(k){var m;u.UZ(((m=window.navigator)==null?void 0:m.onLine)||!0);k(u.XP())})):n?U.return(n(Y)):U.return(!0)})};var I9;g.d(zl,o9);zl.prototype.writeThenSend=function(Y,u){u||(u={});u=E0(Y,u);g.E2()||(this.K=!1);o9.prototype.writeThenSend.call(this,Y,u)}; zl.prototype.sendThenWrite=function(Y,u,n){u||(u={});u=E0(Y,u);g.E2()||(this.K=!1);o9.prototype.sendThenWrite.call(this,Y,u,n)}; zl.prototype.sendAndWrite=function(Y,u){u||(u={});u=E0(Y,u);g.E2()||(this.K=!1);o9.prototype.sendAndWrite.call(this,Y,u)}; zl.prototype.awaitInitialization=function(){return this.X.promise};var QJu=g.$e.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Y$("ytNetworklessLoggingInitializationOptions",QJu);g.HN.prototype.isReady=function(){!this.config_&&P9M()&&(this.config_=g.Xu());return!!this.config_};var biB,O0,JD;biB=g.$e.ytPubsubPubsubInstance||new g.KE;O0=g.$e.ytPubsubPubsubSubscribedKeys||{};JD=g.$e.ytPubsubPubsubTopicToKeys||{};g.Fu=g.$e.ytPubsubPubsubIsSynchronous||{};g.KE.prototype.subscribe=g.KE.prototype.subscribe;g.KE.prototype.unsubscribeByKey=g.KE.prototype.eh;g.KE.prototype.publish=g.KE.prototype.publish;g.KE.prototype.clear=g.KE.prototype.clear;g.Y$("ytPubsubPubsubInstance",biB);g.Y$("ytPubsubPubsubTopicToKeys",JD);g.Y$("ytPubsubPubsubIsSynchronous",g.Fu); g.Y$("ytPubsubPubsubSubscribedKeys",O0);var Mut={};g.d(fA,g.e);fA.prototype.append=function(Y){if(!this.j)throw Error("This does not support the append operation");Y=Y.q1();this.q1().appendChild(Y)}; g.d(Qx,fA);Qx.prototype.q1=function(){return this.K};g.d(N9,g.e);N9.prototype.onTouchStart=function(Y){this.S=!0;this.j=Y.touches.length;this.K.isActive()&&(this.K.stop(),this.J=!0);Y=Y.touches;this.W=G6e(this,Y)||Y.length!=1;var u=Y.item(0);this.W||!u?this.N=this.Z=Infinity:(this.Z=u.clientX,this.N=u.clientY);for(u=this.X.length=0;u=0)}if(u||Y&&Math.pow(Y.clientX-this.Z,2)+Math.pow(Y.clientY-this.N,2)>25)this.G=!0}; N9.prototype.onTouchEnd=function(Y){var u=Y.changedTouches;u&&this.S&&this.j==1&&!this.G&&!this.J&&!this.W&&G6e(this,u)&&(this.KG=Y,this.K.start());this.j=Y.touches.length;this.j===0&&(this.G=this.S=!1,this.X.length=0);this.J=!1};var ia=Date.now().toString();var sL={};var pA=Symbol("injectionDeps");GS.prototype.toString=function(){return"InjectionToken("+this.name+")"}; KDu.prototype.resolve=function(Y){return Y instanceof A2?LA(this,Y.key,[],!0):LA(this,Y,[])};var t2;var oB=window;var D8=g.rL("web_enable_lifecycle_monitoring")&&ch()!==0,vK0=g.rL("web_enable_lifecycle_monitoring");BsY.prototype.cancel=function(){for(var Y=g.A(this.K),u=Y.next();!u.done;u=Y.next())u=u.value,u.jobId===void 0||u.q8||this.scheduler.aO(u.jobId),u.q8=!0;this.j.resolve()};g.M=xk.prototype;g.M.install=function(Y){this.plugins.push(Y);return this}; g.M.uninstall=function(){var Y=this;g.It.apply(0,arguments).forEach(function(u){u=Y.plugins.indexOf(u);u>-1&&Y.plugins.splice(u,1)})}; g.M.transition=function(Y,u){var n=this;D8&&LDc(this.state);var U=this.transitions.find(function(m){return Array.isArray(m.from)?m.from.find(function(X){return X===n.state&&m.to===Y}):m.from===n.state&&m.to===Y}); if(U){this.j&&(oKm(this.j),this.j=void 0);RhS(this,Y,u);this.state=Y;D8&&vh(this.state);U=U.action.bind(this);var k=this.plugins.filter(function(m){return m[Y]}).map(function(m){return m[Y]}); U(cwc(this,k),u)}else throw Error("no transition specified from "+this.state+" to "+Y);}; g.M.MWc=function(Y){var u=g.It.apply(1,arguments);g.FJ();for(var n=g.A(Y),U=n.next(),k={};!U.done;k={xb:void 0},U=n.next())k.xb=U.value,YQA(function(m){return function(){h2(m.xb.name);Wh(function(){return m.xb.callback.apply(m.xb,g.Zu(u))}); wl(m.xb.name)}}(k))}; g.M.gek=function(Y){var u=g.It.apply(1,arguments),n,U,k,m;return g.l(function(X){X.j==1&&(g.FJ(),n=g.A(Y),U=n.next(),k={});if(X.j!=3){if(U.done)return X.qF(0);k.iA=U.value;k.W5=void 0;m=function(S){return function(){h2(S.iA.name);var C=Wh(function(){return S.iA.callback.apply(S.iA,g.Zu(u))}); bz(C)?S.W5=g.rL("web_lifecycle_error_handling_killswitch")?C.then(function(){wl(S.iA.name)}):C.then(function(){wl(S.iA.name)},function(f){tuu(f); wl(S.iA.name)}):wl(S.iA.name)}}(k); YQA(m);return k.W5?g.D(X,k.W5,3):X.qF(3)}k={iA:void 0,W5:void 0};U=n.next();return X.qF(2)})}; g.M.fV=function(Y){var u=g.It.apply(1,arguments),n=this,U=Y.map(function(k){return{eK:function(){h2(k.name);Wh(function(){return k.callback.apply(k,g.Zu(u))}); wl(k.name)}, priority:la(n,k)}}); U.length&&(this.j=new BsY(U))}; g.mW.Object.defineProperties(xk.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ba;g.d(e6,xk);e6.prototype.J=function(Y,u){var n=this;this.K=g.VT(0,function(){n.currentState==="application_navigating"&&n.transition("none")},5E3); Y(u==null?void 0:u.event)}; e6.prototype.W=function(Y,u){this.K&&(g.WA.aO(this.K),this.K=null);Y(u==null?void 0:u.event)};var Q9=[];g.Y$("yt.logging.transport.getScrapedGelPayloads",function(){return Q9});IB.prototype.storePayload=function(Y,u){Y=zS(Y);this.store[Y]?this.store[Y].push(u):(this.j={},this.store[Y]=[u]);this.K++;g.rL("more_accurate_gel_parser")&&(u=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(u));return Y}; IB.prototype.smartExtractMatchingEntries=function(Y){if(!Y.keys.length)return[];for(var u=EL(this,Y.keys.splice(0,1)[0]),n=[],U=0;U=0){U=!1;break a}}U=!0}U&&(u=Rb(u))&&this.lZ(u)}}; g.M.y7=function(Y){return Y}; g.M.onTouchStart=function(Y){this.jG.onTouchStart(Y)}; g.M.onTouchMove=function(Y){this.jG.onTouchMove(Y)}; g.M.onTouchEnd=function(Y){if(this.jG)this.jG.onTouchEnd(Y)}; g.M.lZ=function(Y){this.layoutId?this.cz.executeCommand(Y,this.layoutId):(Y=new g.zP("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.tl(Y))}; g.M.createServerVe=function(Y,u){this.api.createServerVe(Y,this);this.api.setTrackingParams(Y,u)}; g.M.logVisibility=function(Y,u){this.api.hasVe(Y)&&this.api.logVisibility(Y,u,this.interactionLoggingClientData)}; g.M.nG=function(){this.clear(null);this.qR(this.Uc);for(var Y=g.A(this.DW),u=Y.next();!u.done;u=Y.next())this.qR(u.value);g.XV.prototype.nG.call(this)};g.d(B6,P6); B6.prototype.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);this.K=u;if(u.text==null&&u.icon==null)g.Br(Error("ButtonRenderer did not have text or an icon set."));else{switch(u.style||null){case "STYLE_UNKNOWN":Y="ytp-ad-button-link";break;default:Y=null}Y!=null&&g.UN(this.element,Y);u.text!=null&&(Y=g.Cw(u.text),g.vq(Y)||(this.element.setAttribute("aria-label",Y),this.X=new g.XV({D:"span",C:"ytp-ad-button-text",RV:Y}),g.b(this,this.X),this.X.yF(this.element)));u.accessibilityData&&u.accessibilityData.accessibilityData&& u.accessibilityData.accessibilityData.label&&!g.vq(u.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",u.accessibilityData.accessibilityData.label);u.icon!=null&&(u=te(u.icon,this.G),u!=null&&(this.j=new g.XV({D:"span",C:"ytp-ad-button-icon",U:[u]}),g.b(this,this.j)),this.W?Go(this.element,this.j.element,0):this.j.yF(this.element))}}; B6.prototype.clear=function(){this.hide()}; B6.prototype.onClick=function(Y){P6.prototype.onClick.call(this,Y);Y=g.A(xxA(this));for(var u=Y.next();!u.done;u=Y.next())u=u.value,this.layoutId?this.cz.executeCommand(u,this.layoutId):g.tl(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.d(oc,g.e);oc.prototype.nG=function(){this.j&&g.dT(this.j);this.K.clear();c6=null;g.e.prototype.nG.call(this)}; oc.prototype.register=function(Y,u){u&&this.K.set(Y,u)}; var c6=null;g.d(DG,P6); DG.prototype.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);Y=u.hoverText||null;u=u.button&&g.z(u.button,g.ie)||null;u==null?g.tl(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new B6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,void 0,void 0,void 0,void 0,this.X),g.b(this,this.button),this.button.init($C("button"),u,this.macros),Y&&this.button.element.setAttribute("aria-label",g.Cw(Y)),this.button.yF(this.element),this.N&&!g.nE(this.button.element, "ytp-ad-clickable")&&g.UN(this.button.element,"ytp-ad-clickable"),this.X&&g.UN(this.button.element,"ytp-ad-hover-text-button--clean-player"),Y&&(this.j=new g.XV({D:"div",C:"ytp-ad-hover-text-container"}),this.W&&(u=new g.XV({D:"div",C:"ytp-ad-hover-text-callout"}),u.yF(this.j.element),g.b(this,u)),g.b(this,this.j),this.j.yF(this.element),u=v6(Y),Go(this.j.element,u,0)),this.show())}; DG.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();P6.prototype.hide.call(this)}; DG.prototype.show=function(){this.button&&this.button.show();P6.prototype.show.call(this)};g.d(ld,P6); ld.prototype.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);n=(Y=u.thumbnail)&&xY(Y)||"";g.vq(n)?Math.random()<.01&&g.Br(Error("Found AdImage without valid image URL")):(this.K?g.yV(this.element,"backgroundImage","url("+n+")"):QV(this.element,{src:n}),QV(this.element,{alt:Y&&Y.accessibility&&Y.accessibility.label||""}),u&&u.adRendererCommands&&u.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; ld.prototype.clear=function(){this.hide()};g.d(he,P6);g.M=he.prototype;g.M.hide=function(){P6.prototype.hide.call(this);this.X&&this.X.focus()}; g.M.show=function(){this.X=document.activeElement;P6.prototype.show.call(this);this.G.focus()}; g.M.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);this.j=u;u.dialogMessages||u.title!=null?u.confirmLabel==null?g.tl(Error("ConfirmDialogRenderer.confirmLabel was not set.")):u.cancelLabel==null?g.tl(Error("ConfirmDialogRenderer.cancelLabel was not set.")):WHW(this,u):g.tl(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.M.clear=function(){g.Lb(this.K);this.hide()}; g.M.VQ=function(){this.hide()}; g.M.oi=function(){var Y=this.j.cancelEndpoint;Y&&(this.layoutId?this.cz.executeCommand(Y,this.layoutId):g.tl(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.M.S1=function(){var Y=this.j.confirmNavigationEndpoint||this.j.confirmEndpoint;Y&&(this.layoutId?this.cz.executeCommand(Y,this.layoutId):g.tl(Error("Missing layoutId for confirm dialog.")));this.hide()};g.d(w5,P6);g.M=w5.prototype; g.M.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);this.X=u;if(u.defaultText==null&&u.defaultIcon==null)g.tl(Error("ToggleButtonRenderer must have either text or icon set."));else if(u.defaultIcon==null&&u.toggledIcon!=null)g.tl(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(u.style){switch(u.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":Y="ytp-ad-toggle-button-default-style";break;default:Y=null}Y!=null&&g.UN(this.G,Y)}Y={};u.defaultText? (n=g.Cw(u.defaultText),g.vq(n)||(Y.buttonText=n,this.api.Y().experiments.vz("a11y_h5_associate_survey_question")||this.K.setAttribute("aria-label",n),this.api.Y().experiments.vz("fix_h5_toggle_button_a11y")&&this.j.setAttribute("aria-label",n))):g.kS(this.rg,!1);u.defaultTooltip&&(Y.tooltipText=u.defaultTooltip,this.K.hasAttribute("aria-label")||this.j.setAttribute("aria-label",u.defaultTooltip));u.defaultIcon?(n=te(u.defaultIcon),this.updateValue("untoggledIconTemplateSpec",n),u.toggledIcon?(this.oV= !0,n=te(u.toggledIcon),this.updateValue("toggledIconTemplateSpec",n)):(g.kS(this.N,!0),g.kS(this.W,!1)),g.kS(this.K,!1)):g.kS(this.j,!1);g.i4(Y)||this.update(Y);u.isToggled&&(g.UN(this.G,"ytp-ad-toggle-button-toggled"),this.toggleButton(u.isToggled));W6(this);this.B(this.element,"change",this.NZ);this.show()}}; g.M.onClick=function(Y){this.DW.length>0&&(this.toggleButton(!this.isToggled()),this.NZ());P6.prototype.onClick.call(this,Y)}; g.M.NZ=function(){g.PP(this.G,"ytp-ad-toggle-button-toggled",this.isToggled());for(var Y=g.A(eet(this,this.isToggled())),u=Y.next();!u.done;u=Y.next())u=u.value,this.layoutId?this.cz.executeCommand(u,this.layoutId):g.tl(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);W6(this)}; g.M.clear=function(){this.hide()}; g.M.toggleButton=function(Y){g.PP(this.G,"ytp-ad-toggle-button-toggled",Y);this.K.checked=Y;W6(this)}; g.M.isToggled=function(){return this.K.checked};g.d(eh,Kb);eh.prototype.J=function(Y){if(Array.isArray(Y)){Y=g.A(Y);for(var u=Y.next();!u.done;u=Y.next())u=u.value,u instanceof bbc&&this.X(u)}};g.d(bd,P6);g.M=bd.prototype;g.M.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);u.reasons?u.confirmLabel==null?g.tl(Error("AdFeedbackRenderer.confirmLabel was not set.")):(u.cancelLabel==null&&g.Br(Error("AdFeedbackRenderer.cancelLabel was not set.")),u.title==null&&g.Br(Error("AdFeedbackRenderer.title was not set.")),EUW(this,u)):g.tl(Error("AdFeedbackRenderer.reasons were not set."))}; g.M.clear=function(){GP(this.W);GP(this.N);this.G.length=0;this.hide()}; g.M.hide=function(){this.K&&this.K.hide();this.j&&this.j.hide();P6.prototype.hide.call(this);this.X&&this.X.focus()}; g.M.show=function(){this.K&&this.K.show();this.j&&this.j.show();this.X=document.activeElement;P6.prototype.show.call(this);this.W.focus()}; g.M.Gi=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.M.rSk=function(){this.hide()}; Ic.prototype.q1=function(){return this.K.element}; Ic.prototype.getCommand=function(){return this.j}; Ic.prototype.isChecked=function(){return this.X.checked};g.d(z3,he);z3.prototype.VQ=function(Y){he.prototype.VQ.call(this,Y);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; z3.prototype.oi=function(Y){he.prototype.oi.call(this,Y);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; z3.prototype.S1=function(Y){he.prototype.S1.call(this,Y);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.d(g5,P6);g.M=g5.prototype; g.M.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);this.W=u;if(u.dialogMessage==null&&u.title==null)g.tl(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{u.confirmLabel==null&&g.Br(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(Y=u.closeOverlayRenderer&&g.z(u.closeOverlayRenderer,g.ie)||null)this.K=new B6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.b(this,this.K),this.K.init($C("button"),Y,this.macros),this.K.yF(this.element);u.title&&(Y=g.Cw(u.title),this.updateValue("title",Y));if(u.adReasons)for(Y=u.adReasons,n=0;n=this.Fk?(this.oV.hide(),this.CG=!0,this.publish("i")):this.X&&this.X.isTemplated()&&(Y=Math.max(0,Math.ceil((this.Fk-Y)/1E3)),Y!=this.dg&&(yd(this.X,{TIME_REMAINING:String(Y)}),this.dg=Y)))}};g.d($Y,Vd);g.M=$Y.prototype; g.M.init=function(Y,u,n){Vd.prototype.init.call(this,Y,u,n);if(u.image&&u.image.thumbnail)if(u.headline)if(u.description)if((Y=u.actionButton&&g.z(u.actionButton,g.ie))&&Y.navigationEndpoint){var U=this.api.getVideoData(2);if(U!=null)if(u.image&&u.image.thumbnail){var k=u.image.thumbnail.thumbnails;k!=null&&k.length>0&&g.vq(g.DO(k[0].url))&&(k[0].url=U.profilePicture)}else g.Br(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.X.init($C("ad-image"),u.image,n);this.W.init($C("ad-text"), u.headline,n);this.G.init($C("ad-text"),u.description,n);this.j.init($C("button"),Y,n);n=gH(this.j.element);zL(this.j.element,n+" This link opens in new tab");this.oV=Y.navigationEndpoint;this.api.I4()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.Kh.bind(this));this.rg=u.startMs||0;Op(this)}else g.tl(Error("FlyoutCtaRenderer has no valid action button."));else g.tl(Error("FlyoutCtaRenderer has no description AdText."));else g.tl(Error("FlyoutCtaRenderer has no headline AdText.")); else g.Br(Error("FlyoutCtaRenderer has no image."))}; g.M.onClick=function(Y){Vd.prototype.onClick.call(this,Y);this.api.pauseVideo();!g.jw(this.j.element,Y.target)&&this.oV&&(this.layoutId?this.cz.executeCommand(this.oV,this.layoutId):g.tl(Error("Missing layoutId for flyout cta.")))}; g.M.MS=function(){if(this.K){var Y=this.K.getProgressState();(Y&&Y.current||this.Fk)&&1E3*Y.current>=this.rg&&(FV(this),g.mU(this.element,"ytp-flyout-cta-inactive"),this.j.element.removeAttribute("tabIndex"))}}; g.M.HD=function(){this.clear()}; g.M.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Kh.bind(this))}; g.M.show=function(){this.j&&this.j.show();Vd.prototype.show.call(this)}; g.M.hide=function(){this.j&&this.j.hide();Vd.prototype.hide.call(this)}; g.M.Kh=function(Y){Y=="hidden"?this.show():this.hide()};g.d(YA,P6);g.M=YA.prototype; g.M.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);this.K=u;if(this.K.rectangle)for(Y=this.K.likeButton&&g.z(this.K.likeButton,tv),u=this.K.dislikeButton&&g.z(this.K.dislikeButton,tv),this.X.init($C("toggle-button"),Y,n),this.j.init($C("toggle-button"),u,n),this.B(this.element,"change",this.fh),this.G.show(100),this.show(),n=g.A(this.K&&this.K.impressionCommands||[]),Y=n.next();!Y.done;Y=n.next())Y=Y.value,this.layoutId?this.cz.executeCommand(Y,this.layoutId):g.tl(Error("Missing layoutId for instream user sentiment."))}; g.M.clear=function(){this.hide()}; g.M.hide=function(){this.X.hide();this.j.hide();P6.prototype.hide.call(this)}; g.M.show=function(){this.X.show();this.j.show();P6.prototype.show.call(this)}; g.M.fh=function(){KvB(this.element,"ytp-ad-instream-user-sentiment-selected");this.K.postMessageAction&&this.api.Yw("onYtShowToast",this.K.postMessageAction);this.G.hide()}; g.M.onClick=function(Y){this.DW.length>0&&this.fh();P6.prototype.onClick.call(this,Y)};g.d(uT,g.e);g.M=uT.prototype;g.M.nG=function(){this.reset();g.e.prototype.nG.call(this)}; g.M.reset=function(){g.Lb(this.G);this.W=!1;this.K&&this.K.stop();this.J.stop();this.X&&(this.X=!1,this.S.play())}; g.M.start=function(){this.reset();this.G.B(this.j,"mouseover",this.nh,this);this.G.B(this.j,"mouseout",this.Rg,this);this.KG&&(this.G.B(this.j,"focusin",this.nh,this),this.G.B(this.j,"focusout",this.Rg,this));this.K?this.K.start():(this.W=this.X=!0,g.yV(this.j,{opacity:this.N}))}; g.M.nh=function(){this.X&&(this.X=!1,this.S.play());this.J.stop();this.K&&this.K.stop()}; g.M.Rg=function(){this.W?this.J.start():this.K&&this.K.start()}; g.M.Fe=function(){this.X||(this.X=!0,this.Z.play(),this.W=!0)};var naA=[new n1("b.f_",!1,0),new n1("j.s_",!1,2),new n1("r.s_",!1,4),new n1("e.h_",!1,6),new n1("i.s_",!0,8),new n1("s.t_",!1,10),new n1("p.h_",!1,12),new n1("s.i_",!1,14),new n1("f.i_",!1,16),new n1("a.b_",!1,18),new n1("a.o_",!1),new n1("g.o_",!1,22),new n1("p.i_",!1,24),new n1("p.m_",!1),new n1("n.k_",!0,20),new n1("i.f_",!1),new n1("a.s_",!0),new n1("m.c_",!1),new n1("n.h_",!1,26),new n1("o.p_",!1),new n1("m.p_",!0,28),new n1("o.a_",!1),new n1("d.p_",!1),new n1("e.i_",!1)].reduce(function(Y,u){Y[u.j]= u;return Y},{});g.d(f1,Vd);g.M=f1.prototype; g.M.init=function(Y,u,n){Vd.prototype.init.call(this,Y,u,n);this.oV=u;(this.rg=kCB(this))&&g.Br(Error("hasAdControlInClickCommands_ is true."));if(!u||g.i4(u))g.tl(Error("SkipButtonRenderer was not specified or empty."));else if(!u.message||g.i4(u.message))g.tl(Error("SkipButtonRenderer.message was not specified or empty."));else if(Y=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},u=te(Y),u==null?g.tl(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+Y.iconType+".")): (this.api.Y().V("disable_touch_events_on_skip_button")&&(u.T=Object.assign({},u.T,{"aria-hidden":"true",W_V:"false"})),this.X=new g.XV({D:"button",Oc:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],U:[{D:"span",C:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",U:[u]}]}),g.b(this,this.X),this.X.yF(this.G.element),this.j=new H6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,"ytp-ad-skip-button-text"),this.W&&this.j.element.classList.add("ytp-ad-skip-button-text-centered"), this.j.init($C("ad-text"),this.oV.message,n),g.b(this,this.j),Go(this.X.element,this.j.element,0)),!this.api.Y().V("disable_touch_events_on_skip_button")){var U=U===void 0?null:U;n=this.api.Y();!(this.DW.length>0)&&n.j&&($4?0:"ontouchstart"in document.documentElement&&(Jym()||QQ()))&&(this.qR(this.Uc),U&&this.qR(U),this.DW=[this.B(this.element,"touchstart",this.onTouchStart,this),this.B(this.element,"touchmove",this.onTouchMove,this),this.B(this.element,"touchend",this.onTouchEnd,this)])}}; g.M.clear=function(){this.Fk.reset();this.hide()}; g.M.hide=function(){this.G.hide();this.j&&this.j.hide();FV(this);Vd.prototype.hide.call(this)}; g.M.onClick=function(Y){if(this.X!=null){if(Y){var u=Y||window.event;u.returnValue=!1;u.preventDefault&&u.preventDefault()}var n;if(Y$t(Y,{contentCpn:((n=this.api.getVideoData(1))==null?void 0:n.clientPlaybackNonce)||""})===0)this.api.Yw("onAbnormalityDetected");else if(Vd.prototype.onClick.call(this,Y),this.publish("j"),this.api.Yw("onAdSkip"),this.CG||!this.rg)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.M.y7=function(Y){if(!this.CG)return this.rg&&Xj("SkipButton click commands not pruned while ALC exist"),Y;var u,n=(u=g.z(Y,g.Qj))==null?void 0:u.commands;if(!n)return Y;Y=[];for(u=0;u=this.W&&myS(this,!0)};g.d(iT,B6);iT.prototype.init=function(Y,u,n){B6.prototype.init.call(this,Y,u,n);Y=!1;u.text!=null&&(Y=g.Cw(u.text),Y=!g.vq(Y));Y?u.navigationEndpoint==null?g.Br(Error("No visit advertiser clickthrough provided in renderer,")):u.style!=="STYLE_UNKNOWN"?g.Br(Error("Button style was not a link-style type in renderer,")):this.show():g.Br(Error("No visit advertiser text was present in the renderer."))};g.d(Z_,P6); Z_.prototype.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);Y=u.text;g.vq(Sh(Y))?g.Br(Error("SimpleAdBadgeRenderer has invalid or empty text")):(Y&&Y.text&&(u=Y.text,this.X&&!this.j&&(u=this.api.Y(),u=Y.text+" "+(u&&u.j?"\u2022":"\u00b7")),u={text:u,isTemplated:Y.isTemplated},Y.style&&(u.style=Y.style),Y.targetId&&(u.targetId=Y.targetId),Y=new H6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),Y.init($C("simple-ad-badge"),u,n),Y.yF(this.element),g.b(this,Y)),this.show())}; Z_.prototype.clear=function(){this.hide()};g.d(TQ,YY);g.d(r7,g.ud);g.M=r7.prototype;g.M.SS=function(){return this.durationMs}; g.M.stop=function(){this.K&&this.P0.qR(this.K)}; g.M.ye=function(Y){this.j={seekableStart:0,seekableEnd:this.durationMs/1E3,current:Y.current};this.publish("h")}; g.M.getProgressState=function(){return this.j}; g.M.PE=function(Y){g.C1(Y,2)&&this.publish("g")};g.d(MG,g.ud);g.M=MG.prototype;g.M.SS=function(){return this.durationMs}; g.M.start=function(){this.K||(this.K=!0,this.timer.start())}; g.M.stop=function(){this.K&&(this.K=!1,this.timer.stop())}; g.M.ye=function(){this.aM+=100;var Y=!1;this.aM>this.durationMs&&(this.aM=this.durationMs,this.timer.stop(),Y=!0);this.j={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.aM/1E3};this.publish("h");Y&&this.publish("g")}; g.M.getProgressState=function(){return this.j};g.d(GQ,Vd);g.M=GQ.prototype;g.M.init=function(Y,u,n){Vd.prototype.init.call(this,Y,u,n);var U;if(u==null?0:(U=u.templatedCountdown)==null?0:U.templatedAdText){Y=u.templatedCountdown.templatedAdText;if(!Y.isTemplated){g.Br(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.j=new H6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);this.j.init($C("ad-text"),Y,{});this.j.yF(this.element);g.b(this,this.j)}this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){FV(this);Vd.prototype.hide.call(this)}; g.M.HD=function(){this.hide()}; g.M.MS=function(){if(this.K!=null){var Y=this.K.getProgressState();if(Y!=null&&Y.current!=null&&this.j){var u=this.K instanceof r7?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:Y.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.K instanceof MG?Y.seekableEnd:this.api.getDuration(2,!1);Y=Y.current;var n,U,k=((n=this.api.getVideoData())==null?0:(U=n.u6)==null?0:U.call(n))?Math.max(u-Y,0):u-Y;yd(this.j,{FORMATTED_AD_DURATION_REMAINING:String(g.sH(k)), TIME_REMAINING:String(Math.ceil(k))})}}}; g.M.show=function(){Op(this);Vd.prototype.show.call(this)};g.d(Ac,H6);Ac.prototype.onClick=function(Y){H6.prototype.onClick.call(this,Y);this.api.onAdUxClicked(this.componentType)};g.d(K1,P6);K1.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});if(Y=u.content){g.Ki(this.element,Y);var n,U;u=((n=u.interaction)==null?void 0:(U=n.accessibility)==null?void 0:U.label)||Y;this.element.setAttribute("aria-label",u)}else g.tl(Error("AdSimpleAttributedString does not have text content"))}; K1.prototype.clear=function(){this.hide()}; K1.prototype.onClick=function(Y){P6.prototype.onClick.call(this,Y)};g.d(p1,P6); p1.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});(Y=u.label)&&Y.content&&!g.vq(Y.content)?(this.adBadgeText.init($C("ad-simple-attributed-string"),new jZ(Y)),(u=u.adPodIndex)&&u.content&&!g.vq(u.content)&&(this.K=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),this.K.yF(this.element),g.b(this,this.K),this.K.element.classList.add("ytp-ad-badge__pod-index"),this.K.init($C("ad-simple-attributed-string"),new jZ(u))),this.element.classList.add(this.j?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.tl(Error("No label is returned in AdBadgeViewModel."))}; p1.prototype.show=function(){this.adBadgeText.show();var Y;(Y=this.K)==null||Y.show();P6.prototype.show.call(this)}; p1.prototype.hide=function(){this.adBadgeText.hide();var Y;(Y=this.K)==null||Y.hide();P6.prototype.hide.call(this)};g.d(L1,P6);L1.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});(Y=u.adPodIndex)&&Y.content&&!g.vq(Y.content)&&(this.K=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),this.K.yF(this.element),g.b(this,this.K),this.K.init($C("ad-simple-attributed-string"),new jZ(Y)),u.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()}; L1.prototype.show=function(){var Y;(Y=this.K)==null||Y.show();P6.prototype.show.call(this)}; L1.prototype.hide=function(){var Y;(Y=this.K)==null||Y.hide();P6.prototype.hide.call(this)};g.d(tc,P6); tc.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});if(u!=null&&u.text){var n;if(((n=u.text)==null?0:n.content)&&!g.vq(u.text.content)){this.K=new g.XV({D:"div",C:"ytp-ad-disclosure-banner__text",RV:u.text.content});g.b(this,this.K);this.K.yF(this.element);var U,k;Y=((U=u.interaction)==null?void 0:(k=U.accessibility)==null?void 0:k.label)||u.text.content;this.element.setAttribute("aria-label",Y);var m;if((m=u.interaction)==null?0:m.onTap)this.j=new g.XV({D:"div",C:"ytp-ad-disclosure-banner__chevron",U:[g.id()]}), g.b(this,this.j),this.j.yF(this.element),this.api.Y().V("enable_ad_disclosure_banner_a11y_fix")&&(bk(this.element),this.element.setAttribute("tabindex","0"));this.show()}}else g.tl(Error("No banner text found in AdDisclosureBanner."))}; tc.prototype.clear=function(){this.hide()};g.d(cY,g.XV);cY.prototype.ye=function(){var Y=this.j.getProgressState(),u=Y.seekableEnd;this.api.getPresentingPlayerType()===2&&(u=this.X?this.X/1E3:Y.seekableEnd);this.progressBar.style.width=o8(new BY(Y.seekableStart,u),Y.current,0)*100+"%"}; cY.prototype.onStateChange=function(){g.CV(this.api.Y())||(this.api.getPresentingPlayerType()===2?this.K===-1&&(this.show(),this.K=this.j.subscribe("h",this.ye,this),this.ye()):this.K!==-1&&(this.hide(),this.j.eh(this.K),this.K=-1))};g.d(vY,P6); vY.prototype.init=function(Y,u,n,U){P6.prototype.init.call(this,Y,u,n);if(u.skipOrPreviewRenderer){if(Y=g.z(u.skipOrPreviewRenderer,h8))n=new NG(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.j,this.N),n.yF(this.JJ),n.init($C("skip-button"),Y,this.macros),g.b(this,n);if(Y=g.z(u.skipOrPreviewRenderer,h8))var k=Y.skipOffsetMilliseconds}u.brandInteractionRenderer&&(Y=u.brandInteractionRenderer.brandInteractionRenderer,n=new YA(this.api,this.layoutId,this.interactionLoggingClientData,this.cz), n.yF(this.rg),n.init($C("instream-user-sentiment"),Y,this.macros),g.b(this,n));if(Y=g.z(u,jD$))if(Y=g.z(Y,jD$))n=new $Y(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.j,!!u.showWithoutLinkedMediaLayout),g.b(this,n),n.yF(this.W),n.init($C("flyout-cta"),Y,this.macros);U=U&&U.videoAdDurationSeconds;u.adBadgeRenderer&&(n=u.adBadgeRenderer,Y=g.z(n,Fl),Y!=null?(n=new p1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,!1),g.b(this,n),n.yF(this.K),n.init($C("ad-badge"), Y,this.macros),this.X=n.element):(Y=n.simpleAdBadgeRenderer,Y==null&&(Y={text:{text:"Anuncio",isTemplated:!1}}),n=new Z_(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,!0),g.b(this,n),n.yF(this.K),n.init($C("simple-ad-badge"),Y,this.macros)));u.adPodIndex&&(Y=g.z(u.adPodIndex,D5B),Y!=null&&(n=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,n),n.yF(this.K),n.init($C("ad-pod-index"),Y)));u.adDurationRemaining&&!u.showWithoutLinkedMediaLayout&&(Y=u.adDurationRemaining.adDurationRemainingRenderer, Y==null&&(Y={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),U=new GQ(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.j,U,!1),g.b(this,U),U.yF(this.K),U.init($C("ad-duration-remaining"),Y,this.macros));u.adInfoRenderer&&(U=g.z(u.adInfoRenderer,Qn))&&(Y=new Ep(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.element,void 0,!1),g.b(this,Y),this.X!==null?this.K.insertBefore(Y.element,this.X.nextSibling):Y.yF(this.K), Y.init($C("ad-info-hover-text-button"),U,this.macros));u.visitAdvertiserRenderer&&(Y=g.z(u.visitAdvertiserRenderer,g.ie))&&(n=CUe(this)&&this.G?this.G:this.K)&&(U=new iT(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,U),U.yF(n),U.init($C("visit-advertiser"),Y,this.macros),bk(U.element),Y=gH(U.element),zL(U.element,Y+" This link opens in new tab"));!(U=this.api.Y())||g.Po(U)||g.nV(U)||U.controlsType!="3"&&!U.disableOrganicUi||(k=new cY(this.api,this.j,k,!1),k.yF(this.Fk), g.b(this,k));u.adDisclosureBannerRenderer&&(u=g.z(u.adDisclosureBannerRenderer,RVg))&&(k=new tc(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),k.yF(this.oV),k.init($C("ad-disclosure-banner"),u),g.b(this,k));this.api.Y().V("enable_updated_html5_player_focus_style")&&g.UN(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; vY.prototype.clear=function(){this.hide()};g.xA.prototype.flush=function(Y,u){Y=Y===void 0?[]:Y;u=u===void 0?!1:u;if(g.rL("enable_client_streamz_web")){Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next())n=FaS(n.value),this.K&&tP(n,Pm,2,this.K),n={serializedIncrementBatch:g.oE(n.X())},g.ka("streamzIncremented",n,{sendIsolatedPayload:u})}}; g.d(QRS,g.xA);var rfB=new Map;lT.prototype.set=function(Y,u,n){n=n!==void 0?Date.now()+n:void 0;this.K.set(Y,u,n)}; lT.prototype.get=function(Y){return this.K.get(Y)}; lT.prototype.remove=function(Y){this.K.remove(Y)};var iXW=null;var bT=null,I8=null,zQ=null,sRM=null;g.Y$("yt.www.ads.eventcache.getLastCompanionData",function(){return bT}); g.Y$("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Y$("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return I8}); g.Y$("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return zQ}); g.Y$("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return sRM});var GCe=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);g7.prototype.handleResponse=function(Y,u){if(!u)throw Error("request needs to be passed into ConsistencyService");var n,U;u=((n=u.w_.context)==null?void 0:(U=n.request)==null?void 0:U.consistencyTokenJars)||[];var k;(Y=(k=Y.responseContext)==null?void 0:k.consistencyTokenJar)&&this.replace(u,Y)}; g7.prototype.replace=function(Y,u){Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next())delete this.K[n.value.encryptedTokenJarContents];jRc(this,u)};var y5R=window.location.hostname.split(".").slice(-2).join("."),l1;HY.getInstance=function(){l1=g.nR("yt.clientLocationService.instance");l1||(l1=new HY,g.Y$("yt.clientLocationService.instance",l1));return l1}; g.M=HY.prototype; g.M.setLocationOnInnerTubeContext=function(Y){Y.client||(Y.client={});if(this.K)Y.client.locationInfo||(Y.client.locationInfo={}),Y.client.locationInfo.latitudeE7=Math.floor(this.K.coords.latitude*1E7),Y.client.locationInfo.longitudeE7=Math.floor(this.K.coords.longitude*1E7),Y.client.locationInfo.horizontalAccuracyMeters=Math.round(this.K.coords.accuracy),Y.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.X||this.locationPlayabilityToken)Y.client.locationPlayabilityToken=this.X|| this.locationPlayabilityToken}; g.M.handleResponse=function(Y){var u;Y=(u=Y.responseContext)==null?void 0:u.locationPlayabilityToken;Y!==void 0&&(this.locationPlayabilityToken=Y,this.K=void 0,g.z6("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=EH(this))&&this.localStorage.set("yt-location-playability-token",Y,15552E3):g.Ro("YT_CL",JSON.stringify({loctok:Y}),15552E3,y5R,!0))}; g.M.clearLocationPlayabilityToken=function(Y){Y==="TVHTML5"?(this.localStorage=EH(this))&&this.localStorage.remove("yt-location-playability-token"):g.xo("YT_CL");this.X=void 0;this.j!==-1&&(clearTimeout(this.j),this.j=-1)}; g.M.getCurrentPositionFromGeolocation=function(){var Y=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var u=!1,n=1E4;g.z6("INNERTUBE_CLIENT_NAME")==="MWEB"&&(u=!0,n=15E3);return new Promise(function(U,k){navigator.geolocation.getCurrentPosition(function(m){Y.K=m;U(m)},function(m){k(m)},{enableHighAccuracy:u, maximumAge:0,timeout:n})})}; g.M.createUnpluggedLocationInfo=function(Y){var u={};Y=Y.coords;if(Y==null?0:Y.latitude)u.latitudeE7=Math.floor(Y.latitude*1E7);if(Y==null?0:Y.longitude)u.longitudeE7=Math.floor(Y.longitude*1E7);if(Y==null?0:Y.accuracy)u.locationRadiusMeters=Math.round(Y.accuracy);return u}; g.M.createLocationInfo=function(Y){var u={};Y=Y.coords;if(Y==null?0:Y.latitude)u.latitudeE7=Math.floor(Y.latitude*1E7);if(Y==null?0:Y.longitude)u.longitudeE7=Math.floor(Y.longitude*1E7);return u};g.M=BDA.prototype;g.M.contains=function(Y){return Object.prototype.hasOwnProperty.call(this.K,Y)}; g.M.get=function(Y){if(this.contains(Y))return this.K[Y]}; g.M.set=function(Y,u){this.K[Y]=u}; g.M.Vv=function(){return Object.keys(this.K)}; g.M.remove=function(Y){delete this.K[Y]};Vj.prototype.getModuleId=function(Y){return Y.serviceId.getModuleId()}; Vj.prototype.get=function(Y){a:{var u=this.mappings.get(Y.toString());switch(u.type){case "mapping":Y=u.value;break a;case "factory":u=u.value();this.mappings.set(Y.toString(),{type:"mapping",value:u});Y=u;break a;default:Y=N5(u)}}return Y}; Vj.prototype.registerService=function(Y,u){this.mappings.set(Y.toString(),{type:"mapping",value:u});return Y}; new Vj;var hv={},oaY=(hv.WEB_UNPLUGGED="^unplugged/",hv.WEB_UNPLUGGED_ONBOARDING="^unplugged/",hv.WEB_UNPLUGGED_OPS="^unplugged/",hv.WEB_UNPLUGGED_PUBLIC="^unplugged/",hv.WEB_CREATOR="^creator/",hv.WEB_KIDS="^kids/",hv.WEB_EXPERIMENTS="^experiments/",hv.WEB_MUSIC="^music/",hv.WEB_REMIX="^music/",hv.WEB_MUSIC_EMBEDDED_PLAYER="^music/",hv.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",hv);Jc.prototype.J=function(Y,u,n){u=u===void 0?{}:u;n=n===void 0?Sv:n;var U={context:g.yj(Y.clickTrackingParams,!1,this.G)};var k=this.j(Y);if(k){this.K(U,k,u);var m;u=g.Fj(this.X());(k=(m=g.z(Y.commandMetadata,g.L7))==null?void 0:m.apiUrl)&&(u=k);m=NjY(lL(u));Y=Object.assign({},{command:Y},void 0);U={input:m,XA:hk(m),w_:U,config:Y};U.config.Ht?U.config.Ht.identity=n:U.config.Ht={identity:n};return U}n=new g.zP("Error: Failed to create Request from Command.",Y);g.tl(n)}; g.mW.Object.defineProperties(Jc.prototype,{G:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.d(qG,Jc);g.d(a8,qG);a8.prototype.J=function(){return{input:"/getDatasyncIdsEndpoint",XA:hk("/getDatasyncIdsEndpoint","GET"),w_:{}}}; a8.prototype.X=function(){return[]}; a8.prototype.j=function(){}; a8.prototype.K=function(){};var VwX={},S0u=(VwX.GET_DATASYNC_IDS=OH(a8),VwX);var wx={},OiQ=(wx["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",wx["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",wx["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",wx["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",wx["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",wx["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",wx["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", wx["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",wx["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",wx["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",wx["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",wx["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",wx["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",wx["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",wx["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", wx["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",wx["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",wx["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",wx["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",wx["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",wx["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",wx["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", wx["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",wx.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",wx["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",wx["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",wx["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",wx["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",wx["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",wx["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", wx["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",wx["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",wx["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",wx["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",wx["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",wx["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",wx["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",wx["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",wx["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",wx["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",wx.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",wx["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",wx["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",wx["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",wx["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",wx["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",wx["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",wx["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",wx["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",wx["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",wx["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",wx["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",wx["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",wx["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",wx["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",wx["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",wx["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",wx["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",wx["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",wx["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",wx["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",wx["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", wx["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",wx["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",wx["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",wx["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",wx["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",wx["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",wx["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",wx["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",wx["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", wx["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",wx["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",wx["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",wx["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",wx["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",wx["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",wx["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",wx["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", wx),WX={},h3A=(WX.auto_search="LATENCY_ACTION_AUTO_SEARCH",WX.ad_to_ad="LATENCY_ACTION_AD_TO_AD",WX.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",WX.app_startup="LATENCY_ACTION_APP_STARTUP",WX.browse="LATENCY_ACTION_BROWSE",WX.cast_splash="LATENCY_ACTION_CAST_SPLASH",WX.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",WX.channels="LATENCY_ACTION_CHANNELS",WX.chips="LATENCY_ACTION_CHIPS",WX.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",WX.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", WX.editor="LATENCY_ACTION_EDITOR",WX.embed="LATENCY_ACTION_EMBED",WX.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",WX.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",WX.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",WX.explore="LATENCY_ACTION_EXPLORE",WX.favorites="LATENCY_ACTION_FAVORITES",WX.home="LATENCY_ACTION_HOME",WX.inboarding="LATENCY_ACTION_INBOARDING",WX.landing="LATENCY_ACTION_LANDING",WX.learning="LATENCY_ACTION_LEARNING", WX.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",WX.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",WX.library="LATENCY_ACTION_LIBRARY",WX.live="LATENCY_ACTION_LIVE",WX.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",WX.management="LATENCY_ACTION_MANAGEMENT",WX.mini_app="LATENCY_ACTION_MINI_APP_PLAY",WX.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",WX.onboarding="LATENCY_ACTION_ONBOARDING",WX.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", WX.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",WX.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",WX.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",WX.prebuffer="LATENCY_ACTION_PREBUFFER",WX.prefetch="LATENCY_ACTION_PREFETCH",WX.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",WX.profile_switcher="LATENCY_ACTION_LOGIN",WX.projects="LATENCY_ACTION_PROJECTS",WX.reel_watch="LATENCY_ACTION_REEL_WATCH",WX.results="LATENCY_ACTION_RESULTS",WX.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", WX.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",WX.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",WX.review="LATENCY_ACTION_REVIEW",WX.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",WX.search_ui="LATENCY_ACTION_SEARCH_UI",WX.search_suggest="LATENCY_ACTION_SUGGEST",WX.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",WX.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",WX.seek="LATENCY_ACTION_PLAYER_SEEK",WX.settings="LATENCY_ACTION_SETTINGS",WX.store="LATENCY_ACTION_STORE", WX.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",WX.tenx="LATENCY_ACTION_TENX",WX.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",WX.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",WX.watch="LATENCY_ACTION_WATCH",WX.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",WX["watch,watch7"]="LATENCY_ACTION_WATCH",WX["watch,watch7_html5"]="LATENCY_ACTION_WATCH",WX["watch,watch7ad"]="LATENCY_ACTION_WATCH",WX["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",WX.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", WX.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",WX.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",WX.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",WX.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",WX.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",WX.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",WX.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",WX);Object.assign(h3A,OiQ);g.d(PD,Cz);var JE0=new fz("aft-recorded",PD);var FBB=g.$e.ytLoggingGelSequenceIdObj_||{};g.Y$("ytLoggingGelSequenceIdObj_",FBB);var fg=g.$e.ytLoggingLatencyUsageStats_||{};g.Y$("ytLoggingLatencyUsageStats_",fg);SP.prototype.tick=function(Y,u,n,U){QL(this,"tick_"+Y+"_"+u)||g.ka("latencyActionTicked",{tickName:Y,clientActionNonce:u},{timestamp:n,cttAuthInfo:U})}; SP.prototype.info=function(Y,u,n){var U=Object.keys(Y).join("");QL(this,"info_"+U+"_"+u)||(Y=Object.assign({},Y),Y.clientActionNonce=u,g.ka("latencyActionInfo",Y,{cttAuthInfo:n}))}; SP.prototype.jspbInfo=function(Y,u,n){for(var U="",k=0;k=k.length?(u.append(k),Y-=k.length):Y?(u.append(new Uint8Array(k.buffer,k.byteOffset,Y)),n.append(new Uint8Array(k.buffer,k.byteOffset+Y,k.length-Y)),Y=0):n.append(k);return{uo:u,il:n}}; un.prototype.isFocused=function(Y){return Y>=this.X&&Y=64&&(this.W.set(Y.subarray(0,64-this.j),this.j),u=64-this.j,this.j=0,$3B(this,this.W,0));for(;u+64<=n;u+=64)$3B(this,Y,u);u=this.start&&(Y=2&&n.ssdaiAdsConfig&&Xj("Unexpected ad placement renderers length",Y.slot,null,{length:U.length});var k;((k=n.adSlots)==null?0:k.some(function(m){var X,S;return((X=g.z(m,rp))==null?void 0:(S=X.adSlotMetadata)==null?void 0:S.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||U.some(function(m){var X,S,C,f; return!!((X=m.renderer)==null?0:(S=X.linearAdSequenceRenderer)==null?0:(C=S.linearAds)==null?0:C.length)||!((f=m.renderer)==null||!f.instreamVideoAdRenderer)})||jbe(Y)})}; OE.prototype.ai=function(){P2Y(this.K)};Fk.prototype.zX=function(){var Y=this;Xrt(this.j,function(){var u=yl(Y.slot.clientMetadata,"metadata_type_ad_break_request_data");return u.cueProcessedMs?Y.K.get().fetch({Vi:u.getAdBreakUrl,JC:new g.EE(u.Yx,u.TV),cueProcessedMs:u.cueProcessedMs}):Y.K.get().fetch({Vi:u.getAdBreakUrl,JC:new g.EE(u.Yx,u.TV)})})}; Fk.prototype.ai=function(){P2Y(this.j)};J0.prototype.zX=function(){var Y=this.slot.clientMetadata,u,n=(u=this.slot.fulfilledLayout)!=null?u:yl(Y,"metadata_type_fulfilled_layout");bAt(this.callback,this.slot,n)}; J0.prototype.ai=function(){Xk(this.callback,this.slot,new F("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")};a_.prototype.build=function(Y,u){return u.fulfilledLayout||qV(u,{NR:["metadata_type_fulfilled_layout"]})?new J0(Y,u):this.X(Y,u)};g.d($F,a_); $F.prototype.X=function(Y,u){if(qV(u,{NR:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new OE(Y,u,this.K,this.j,this.Ux,this.hJ,this.AJ,this.LG,this.xk);if(qV(u,{NR:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Fk(Y,u,this.K,this.j,this.Ux,this.hJ);throw new F("Unsupported slot with type: "+u.slotType+" and client metadata: "+Vl(u.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.d(Yw,a_);Yw.prototype.X=function(Y,u){throw new F("Unsupported slot with type: "+u.slotType+" and client metadata: "+Vl(u.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.M=KCu.prototype;g.M.kV=function(){return this.slot}; g.M.eG=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(Y){if(Y.layoutId!==this.layout.layoutId)this.callback.Ye(this.slot,Y,new Ec("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 u=yl(Y.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.wX(this.slot,Y),g97(this.X, this.slot,u)):Xj("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,Y)}}; g.M.Yk=function(Y,u){Y.layoutId!==this.layout.layoutId?this.callback.Ye(this.slot,Y,new Ec("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.n0(this.slot,Y,u),LCu(this),tgd(this))};g.d(mQ,g.ud);g.M=mQ.prototype;g.M.kV=function(){return this.j.slot}; g.M.eG=function(){return this.j.layout}; g.M.init=function(){this.X.get().addListener(this)}; g.M.release=function(){this.X.get().removeListener(this);this.dispose()}; g.M.No=function(){}; g.M.tE=function(){}; g.M.sJ=function(){}; g.M.hd=function(){}; g.M.startRendering=function(Y){var u=this;kw(this.j,Y,function(){return void u.oB()})}; g.M.oB=function(){this.X.get().oB(this.K)}; g.M.Yk=function(Y,u){var n=this;kw(this.j,Y,function(){var U=n.X.get();udu(U,n.K,3);n.K=[];n.callback.n0(n.slot,Y,u)})}; g.M.nG=function(){this.X.gg()||this.X.get().removeListener(this);g.ud.prototype.nG.call(this)}; g.mW.Object.defineProperties(mQ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.j.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.j.layout}}});ih.prototype.Zo=function(Y,u){u=u===void 0?!1:u;var n=(this.X.get(Y)||[]).concat();if(u=u&&vCW(Y)){var U=this.X.get(u);U&&n.push.apply(n,g.Zu(U))}rY(this,Y,n);this.K.add(Y);u&&this.K.add(u)}; ih.prototype.B$=function(Y,u){u=u===void 0?!1:u;if(!this.K.has(Y)){var n=u&&vCW(Y);n&&(u=!this.K.has(n));this.Zo(Y,u)}};g.d(xnA,YY);g.d(AY,mQ);g.M=AY.prototype;g.M.NA=function(Y,u){C6("ads-engagement-panel-layout",Y,this.W.get().sP,this.AJ.get(),this.G,this.J,this.kV(),this.eG(),u)}; g.M.startRendering=function(Y){P1(this.pG,this.kV(),this.eG(),g.z(this.eG().renderingContent,Et),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(u,n,U,k,m){return new xnA(u,n,U,k,m)},this.K); mQ.prototype.startRendering.call(this,Y)}; g.M.wX=function(Y,u){this.J===u.layoutId&&(this.G===null?this.G=this.AJ.get().Na():Xj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.n0=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.nG=function(){kF(this.P$(),this);mQ.prototype.nG.call(this)};g.d(hDu,YY);g.d(jr,mQ);g.M=jr.prototype;g.M.NA=function(Y,u){C6("banner-image",Y,this.W.get().sP,this.AJ.get(),this.G,this.J,this.kV(),this.eG(),u)}; g.M.startRendering=function(Y){P1(this.pG,this.kV(),this.eG(),g.z(this.eG().renderingContent,z4),this.callback,"metadata_type_banner_image_layout_view_model",function(u,n,U,k,m){return new hDu(u,n,U,k,m)},this.K); mQ.prototype.startRendering.call(this,Y)}; g.M.wX=function(Y,u){this.J===u.layoutId&&(this.G===null?this.G=this.AJ.get().Na():Xj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.n0=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.nG=function(){kF(this.P$(),this);mQ.prototype.nG.call(this)};g.d(K6,YY);g.d(p6,mQ);g.M=p6.prototype;g.M.NA=function(Y,u){C6("action-companion",Y,this.W.get().sP,this.AJ.get(),this.G,this.J,this.kV(),this.eG(),u)}; g.M.startRendering=function(Y){P1(this.pG,this.kV(),this.eG(),g.z(this.eG().renderingContent,ez),this.callback,"metadata_type_action_companion_ad_renderer",function(u,n,U,k,m){return new K6(u,n,U,k,m)},this.K); mQ.prototype.startRendering.call(this,Y)}; g.M.wX=function(Y,u){u.layoutId===this.layout.layoutId?this.pG.B$("impression"):this.J===u.layoutId&&(this.G===null?this.G=this.AJ.get().Na():Xj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.n0=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.nG=function(){kF(this.P$(),this);mQ.prototype.nG.call(this)};g.d(eD0,YY);g.d(L6,mQ);g.M=L6.prototype;g.M.NA=function(Y,u){C6("image-companion",Y,this.W.get().sP,this.AJ.get(),this.G,this.J,this.kV(),this.eG(),u)}; g.M.startRendering=function(Y){P1(this.pG,this.kV(),this.eG(),g.z(this.eG().renderingContent,by),this.callback,"metadata_type_image_companion_ad_renderer",function(u,n,U,k,m){return new eD0(u,n,U,k,m)},this.K); mQ.prototype.startRendering.call(this,Y)}; g.M.wX=function(Y,u){u.layoutId===this.layout.layoutId?this.pG.B$("impression"):this.J===u.layoutId&&(this.G===null?this.G=this.AJ.get().Na():Xj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.n0=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.nG=function(){kF(this.P$(),this);mQ.prototype.nG.call(this)};g.d(II0,YY);g.d(tY,mQ);g.M=tY.prototype;g.M.NA=function(Y,u){C6("shopping-companion",Y,this.W.get().sP,this.AJ.get(),this.G,this.J,this.kV(),this.eG(),u)}; g.M.startRendering=function(Y){P1(this.pG,this.kV(),this.eG(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(u,n,U,k,m){return new II0(u,n,U,k,m)},this.K); mQ.prototype.startRendering.call(this,Y)}; g.M.wX=function(Y,u){u.layoutId===this.layout.layoutId?this.pG.B$("impression"):this.J===u.layoutId&&(this.G===null?this.G=this.AJ.get().Na():Xj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.n0=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.nG=function(){kF(this.P$(),this);mQ.prototype.nG.call(this)};g.d(oI,mQ);g.M=oI.prototype;g.M.startRendering=function(Y){P1(this.pG,this.kV(),this.eG(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(u,n,U,k,m){return new K6(u,n,U,k,m)},this.K); mQ.prototype.startRendering.call(this,Y)}; g.M.wX=function(){}; g.M.n0=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.nG=function(){kF(this.P$(),this);mQ.prototype.nG.call(this)}; g.M.NA=function(){};g.M=Vgm.prototype;g.M.kV=function(){return this.slot}; g.M.eG=function(){return this.layout}; g.M.init=function(){this.LG.get().addListener(this);this.LG.get().Dt.push(this);var Y=yl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),u=yl(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");f6(this.layout.ou)&&mI(this.h_.get(),this.layout.layoutId,{SL:u,g4:Y,listener:this})}; g.M.release=function(){this.LG.get().removeListener(this);Jru(this.LG.get(),this);f6(this.layout.ou)&&Xl(this.h_.get(),this.layout.layoutId)}; g.M.startRendering=function(Y){this.callback.wX(this.slot,Y)}; g.M.Yk=function(Y,u){d6G(this.hJ.get())&&!this.K&&(this.pG.B$("abandon"),this.K=!0);this.callback.n0(this.slot,Y,u)}; g.M.Hd=function(Y){switch(Y.id){case "part2viewed":this.pG.B$("start");this.pG.B$("impression");break;case "videoplaytime25":this.pG.B$("first_quartile");break;case "videoplaytime50":this.pG.B$("midpoint");break;case "videoplaytime75":this.pG.B$("third_quartile");break;case "videoplaytime100":d6G(this.hJ.get())?this.K||(this.pG.B$("complete"),this.K=!0):this.pG.B$("complete");Gi(this.pG)&&sR(this.pG,Infinity,!0);GVm(this.hJ.get())&&B1(this.j,Infinity,!0);break;case "engagedview":Gi(this.pG)||this.pG.B$("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Xj("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.M.onVolumeChange=function(){}; g.M.pF=function(){}; g.M.qr=function(){}; g.M.AD=function(){}; g.M.onFullscreenToggled=function(){}; g.M.Jb=function(){}; g.M.Fu=function(){}; g.M.Cy=function(Y){GVm(this.hJ.get())&&B1(this.j,Y*1E3,!1);Gi(this.pG)&&sR(this.pG,Y*1E3,!1)}; g.M.MY=function(){}; g.M.R5=function(){this.pG.B$("active_view_measurable")}; g.M.nC=function(){this.pG.B$("active_view_viewable")}; g.M.fC=function(){this.pG.B$("active_view_fully_viewable_audible_half_duration")}; g.M.o5=function(){this.pG.B$("audio_measurable")}; g.M.KC=function(){this.pG.B$("audio_audible")};g.d(c1,mQ);g.M=c1.prototype;g.M.init=function(){mQ.prototype.init.call(this);var Y=yl(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),u={adsClientData:this.layout.M1};this.K.push(new TQ(Y,this.layout.layoutId,yl(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),u,!0))}; g.M.Nz=function(){this.G||this.LG.get().resumeVideo(1)}; g.M.startRendering=function(Y){mQ.prototype.startRendering.call(this,Y);ZV(this.LG.get(),"ad-showing");this.callback.wX(this.slot,Y);this.J.V0=this}; g.M.Yk=function(Y,u){mQ.prototype.Yk.call(this,Y,u);TW(this.LG.get(),"ad-showing");$0(this.J,this)}; g.M.NA=function(Y){switch(Y){case "ad-info-icon-button":(this.G=this.LG.get().MW(1))||this.LG.get().pauseVideo();break;case "visit-advertiser":this.LG.get().pauseVideo()}}; g.M.nG=function(){mQ.prototype.nG.call(this)};g.d(v1,YY);g.d(RI,mQ);g.M=RI.prototype;g.M.startRendering=function(Y){P1(this.pG,this.kV(),this.eG(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(u,n,U,k,m){return new v1(u,n,U,k,m)},this.K); mQ.prototype.startRendering.call(this,Y)}; g.M.wX=function(){}; g.M.n0=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.nG=function(){kF(this.P$(),this);mQ.prototype.nG.call(this)}; g.M.NA=function(){};g.d(Dv,YY);g.d(xw,mQ);xw.prototype.init=function(){mQ.prototype.init.call(this);this.K.push(new Dv(g.z(this.layout.renderingContent,mo),this.layout.layoutId,{adsClientData:this.layout.M1}))}; xw.prototype.NA=function(){SA(this.G.get(),this.J)&&Sr(this.AJ.get(),3)}; xw.prototype.startRendering=function(Y){mQ.prototype.startRendering.call(this,Y);this.callback.wX(this.slot,Y)}; xw.prototype.nG=function(){mQ.prototype.nG.call(this)};g.d(lh,YY);g.d(hY,mQ);hY.prototype.init=function(){mQ.prototype.init.call(this);var Y=g.z(this.layout.renderingContent,Fg)||yl(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),u=Xg(this.pG);this.K.push(new lh(Y,u,this.layout.layoutId,{adsClientData:this.layout.M1},!0,!0))}; hY.prototype.startRendering=function(Y){mQ.prototype.startRendering.call(this,Y);this.callback.wX(this.slot,Y)}; hY.prototype.NA=function(Y,u){if(u===this.layout.layoutId)switch(Y){case "skip-button":var n;(Y=(n=yl(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&Y.dh(this.kV(),this.layout)}}; hY.prototype.nG=function(){mQ.prototype.nG.call(this)};W1.prototype.build=function(Y,u,n,U){if(wY(U,{NR:["metadata_type_ad_break_response_data"],eb:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new KCu(Y,n,U,this.j,this.X,this.K);throw new Ec("Unsupported layout with type: "+U.layoutType+" and client metadata: "+Vl(U.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.d(Jlt,YY);g.d(er,mQ);g.M=er.prototype;g.M.NA=function(Y,u){C6("ads-engagement-panel",Y,this.W.get().sP,this.AJ.get(),this.G,this.J,this.kV(),this.eG(),u)}; g.M.startRendering=function(Y){P1(this.pG,this.kV(),this.eG(),g.z(this.eG().renderingContent,Ia),this.callback,"metadata_type_ads_engagement_panel_renderer",function(u,n,U,k,m){return new Jlt(u,n,U,k,m)},this.K); mQ.prototype.startRendering.call(this,Y)}; g.M.wX=function(Y,u){u.layoutId===this.layout.layoutId?this.pG.B$("impression"):this.J===u.layoutId&&(this.G===null?this.G=this.AJ.get().Na():Xj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.n0=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.nG=function(){kF(this.P$(),this);mQ.prototype.nG.call(this)};g.d(bh,mQ);g.M=bh.prototype;g.M.NA=function(Y,u){C6("top-banner-image-text-icon-buttoned",Y,this.W.get().sP,this.AJ.get(),this.G,this.J,this.kV(),this.eG(),u)}; g.M.startRendering=function(Y){P1(this.pG,this.kV(),this.eG(),g.z(this.eG().renderingContent,gf),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(u,n,U,k,m){return new v1(u,n,U,k,m)},this.K); mQ.prototype.startRendering.call(this,Y)}; g.M.wX=function(Y,u){this.J===u.layoutId&&(this.G===null?this.G=this.AJ.get().Na():Xj("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.n0=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.nG=function(){kF(this.P$(),this);mQ.prototype.nG.call(this)};$n0.prototype.build=function(Y,u,n,U){if(wY(U,qCG())||g.z(U.renderingContent,Ia)!==void 0)return new er(Y,n,U,this.sb,this.AJ,this.P$,this.h_,this.K);if(wY(U,WCu())||g.z(U.renderingContent,ez)!==void 0)return new p6(Y,n,U,this.sb,this.AJ,this.P$,this.h_,this.K);if(wY(U,bCm())||g.z(U.renderingContent,by)!==void 0)return new L6(Y,n,U,this.sb,this.AJ,this.P$,this.h_,this.K);if(wY(U,zDc()))return new tY(Y,n,U,this.sb,this.AJ,this.P$,this.h_,this.K);if(wY(U,yl7()))return new oI(Y,n,U,this.sb,this.AJ,this.P$, this.h_,this.K);if(wY(U,wrW())||g.z(U.renderingContent,z4)!==void 0)return new jr(Y,n,U,this.sb,this.AJ,this.P$,this.h_,this.K);if(wY(U,aIc())||g.z(U.renderingContent,gf)!==void 0)return new bh(Y,n,U,this.sb,this.AJ,this.P$,this.h_,this.K);if(wY(U,OCS()))return new RI(Y,n,U,this.sb,this.AJ,this.P$,this.h_,this.K);if(wY(U,lI0())||g.z(U.renderingContent,Et)!==void 0)return new AY(Y,n,U,this.sb,this.AJ,this.P$,this.h_,this.K);throw new Ec("Unsupported layout with type: "+U.layoutType+" and client metadata: "+ Vl(U.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};Ypu.prototype.build=function(Y,u,n,U){if(wY(U,{NR:["metadata_type_linked_player_bytes_layout_id"],eb:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new xw(Y,n,U,this.sb,this.AJ,this.K);throw new Ec("Unsupported layout with type: "+U.layoutType+" and client metadata: "+Vl(U.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.M=uVG.prototype;g.M.kV=function(){return this.slot}; g.M.eG=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(Y){Y.layoutId!==this.layout.layoutId?this.callback.Ye(this.slot,Y,new Ec("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.wX(this.slot,Y),this.pG.B$("impression"),A8(this.Hc,Y,"normal"))}; g.M.Yk=function(Y,u){Y.layoutId!==this.layout.layoutId?this.callback.Ye(this.slot,Y,new Ec("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.n0(this.slot,Y,u)};g.M=U7W.prototype;g.M.kV=function(){return this.slot}; g.M.eG=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(Y){Y.layoutId!==this.layout.layoutId?this.callback.Ye(this.slot,Y,new Ec("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.wX(this.slot,Y),this.pG.B$("impression"),A8(this.Hc,Y,"normal"))}; g.M.Yk=function(Y,u){Y.layoutId!==this.layout.layoutId?this.callback.Ye(this.slot,Y,new Ec("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.n0(this.slot,Y,u)};II.prototype.build=function(Y,u,n,U){if(!this.hJ.get().L.Y().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(wY(U,nYt()))return new uVG(Y,n,U,this.AJ,this.Hc)}else if(wY(U,{NR:[],eb:["LAYOUT_TYPE_FORECASTING"]}))return new U7W(Y,n,U,this.AJ,this.Hc);throw new Ec("Unsupported layout with type: "+U.layoutType+" and client metadata: "+Vl(U.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.d(X6S,YY);g.d(zi,mQ);g.M=zi.prototype;g.M.init=function(){mQ.prototype.init.call(this);var Y=g.z(this.layout.renderingContent,OR)||yl(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),u={adsClientData:this.layout.M1};this.K.push(new X6S(Y,yl(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,u))}; g.M.Nz=function(){this.G||this.LG.get().resumeVideo(2)}; g.M.startRendering=function(Y){mQ.prototype.startRendering.call(this,Y);this.callback.wX(this.slot,Y);this.J.V0=this}; g.M.Yk=function(Y,u){mQ.prototype.Yk.call(this,Y,u);$0(this.J,this)}; g.M.NA=function(Y,u){if(!h0(this.hJ.get(),"stop_handling_click_for_non_rendering_overlay_layout")||u===this.layout.layoutId){if(SA(this.W.get(),this.S))switch(Y){case "visit-advertiser-link":Sr(this.AJ.get(),3)}switch(Y){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.G||this.LG.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.G=this.LG.get().MW(2))||this.LG.get().pauseVideo();break; case "visit-advertiser-link":this.LG.get().pauseVideo();Pdc(this).VK();break;case "skip-button":if(Y=Pdc(this),this.layout.renderingContent&&!I$(this.layout.clientMetadata,"metadata_type_dai")||!Y||!Y.VS){var n;(Y=(n=yl(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&Y.dh(this.kV(),this.layout)}else Xj("Requesting to skip by LegacyPlayerBytes when components enabled"),Y.ql(this.kV(),this.layout)}}}; g.M.nG=function(){mQ.prototype.nG.call(this)};g.d(gY,mQ);g.M=gY.prototype;g.M.init=function(){mQ.prototype.init.call(this);var Y=g.z(this.layout.renderingContent,V8)||yl(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),u={adsClientData:this.layout.M1},n;(n=!!this.layout.renderingContent)||(n=ER(this),n=!(n&&n.VS));this.K.push(new TQ(Y,this.layout.layoutId,yl(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),u,n))}; g.M.Nz=function(){this.G||this.LG.get().resumeVideo(2)}; g.M.startRendering=function(Y){mQ.prototype.startRendering.call(this,Y);this.callback.wX(this.slot,Y);this.J.V0=this}; g.M.Yk=function(Y,u){mQ.prototype.Yk.call(this,Y,u);$0(this.J,this)}; g.M.NA=function(Y,u){if(!this.hJ||!h0(this.hJ.get(),"stop_handling_click_for_non_rendering_overlay_layout")||u===this.layout.layoutId){if(SA(this.W.get(),this.S))switch(Y){case "visit-advertiser":Sr(this.AJ.get(),3)}switch(Y){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.G||this.LG.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.G=this.LG.get().MW(2))||this.LG.get().pauseVideo();break; case "visit-advertiser":this.LG.get().pauseVideo();ER(this).VK();break;case "skip-button":if(Y=ER(this),this.layout.renderingContent&&!I$(this.layout.clientMetadata,"metadata_type_dai")||!Y||!Y.VS){var n;(Y=(n=yl(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&Y.dh(this.kV(),this.layout)}else Xj("Requesting to skip by LegacyPlayerBytes"),Y.ql(this.kV(),this.layout)}}}; g.M.nG=function(){mQ.prototype.nG.call(this)};g.d(CdA,YY);g.d(H1,mQ);g.M=H1.prototype;g.M.startRendering=function(Y){var u=this;kw(this.j,Y,function(){u.K.push(new CdA(yl(u.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),Y.layoutId,Y.M1));u.oB();u.callback.wX(u.slot,Y);g.V(k0(u.LG.get(),1),512)&&u.callback.Ye(u.kV(),u.eG(),new Ec("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.M.Fu=function(){}; g.M.Jb=function(Y){if(Y.state.isError()){var u;this.callback.Ye(this.kV(),this.eG(),new Ec("A player error happened during adNotify",{playerErrorCode:(u=Y.state.Jt)==null?void 0:u.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.M.onFullscreenToggled=function(){}; g.M.qr=function(){}; g.M.AD=function(){}; g.M.pF=function(){}; g.M.onVolumeChange=function(){}; g.M.Hd=function(){}; g.M.MY=function(){}; g.M.NA=function(){};g.d(Qc0,YY);g.d(y8,mQ);y8.prototype.init=function(){mQ.prototype.init.call(this);var Y=g.z(this.layout.renderingContent,JY),u=Xg(this.pG);this.K.push(new Qc0(Y,u,this.layout.layoutId,{adsClientData:this.layout.M1}))}; y8.prototype.startRendering=function(Y){mQ.prototype.startRendering.call(this,Y);this.callback.wX(this.slot,Y)}; y8.prototype.NA=function(Y,u){if(u===this.layout.layoutId)switch(Y){case "skip-button":var n;(Y=(n=yl(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&Y.dh(this.kV(),this.layout)}}; y8.prototype.nG=function(){mQ.prototype.nG.call(this)};N5t.prototype.build=function(Y,u,n,U){if(Y=qf(Y,n,U,this.sb,this.LG,this.AJ,this.j,this.K,this.hJ))return Y;throw new Ec("Unsupported layout with type: "+U.layoutType+" and client metadata: "+Vl(U.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.M=uO.prototype;g.M.kV=function(){return this.slot}; g.M.eG=function(){return this.layout}; g.M.init=function(){this.LG.get().addListener(this);this.LG.get().Dt.push(this);if(this.layout.renderingContent){var Y=this.SG.get();Y=yD(Y,1).x_/1E3}else Y=yl(this.layout.clientMetadata,"metadata_type_video_length_seconds");var u=g.z(this.layout.renderingContent,nB),n=u?Q8(u.pings):yl(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");u=u?clA(u.pings):yl(this.layout.clientMetadata,"metadata_type_active_view_identifier");f6(this.layout.ou)&&mI(this.h_.get(),this.layout.layoutId, {SL:n,g4:Y,listener:this,Wr:u})}; g.M.release=function(){this.LG.get().removeListener(this);Jru(this.LG.get(),this);f6(this.layout.ou)&&Xl(this.h_.get(),this.layout.layoutId)}; g.M.startRendering=function(Y){this.callback.wX(this.slot,Y)}; g.M.Yk=function(Y,u){nI(this,"abandon");this.callback.n0(this.slot,Y,u)}; g.M.Hd=function(Y){switch(Y.id){case "part2viewed":this.pG.B$("start");this.pG.B$("impression");break;case "videoplaytime25":this.pG.B$("first_quartile");break;case "videoplaytime50":this.pG.B$("midpoint");break;case "videoplaytime75":this.pG.B$("third_quartile");break;case "videoplaytime100":nI(this,"complete");Gi(this.pG)&&sR(this.pG,Infinity,!0);break;case "engagedview":Gi(this.pG)||this.pG.B$("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Xj("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.M.onVolumeChange=function(){}; g.M.pF=function(){}; g.M.qr=function(){}; g.M.AD=function(){}; g.M.onFullscreenToggled=function(){}; g.M.Jb=function(Y){this.K||(g.C1(Y,4)&&!g.C1(Y,2)?Mf(this.pG,"pause"):SZ(Y,4)<0&&!(SZ(Y,2)<0)&&Mf(this.pG,"resume"))}; g.M.Fu=function(){}; g.M.Cy=function(Y){Gi(this.pG)&&sR(this.pG,Y*1E3,!1)}; g.M.MY=function(){nI(this,"swipe")}; g.M.R5=function(){this.pG.B$("active_view_measurable")}; g.M.nC=function(){this.pG.B$("active_view_viewable")}; g.M.fC=function(){this.pG.B$("active_view_fully_viewable_audible_half_duration")}; g.M.o5=function(){this.pG.B$("audio_measurable")}; g.M.KC=function(){this.pG.B$("audio_audible")};iwW.prototype.build=function(Y,u,n,U){if(n.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.z(U.renderingContent,nB)!==void 0)return new uO(Y,n,U,this.LG,this.AJ,this.hJ,this.h_,this.SG);u=["metadata_type_ad_placement_config"];for(var k=g.A(Zv()),m=k.next();!m.done;m=k.next())u.push(m.value);if(wY(U,{NR:u,eb:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return n.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new uO(Y,n,U,this.LG,this.AJ,this.hJ,this.h_,this.SG):new Vgm(Y,n,U,this.LG,this.AJ, this.Fs,this.hJ,this.h_);throw new Ec("Unsupported layout with type: "+U.layoutType+" and client metadata: "+Vl(U.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var XC={contentCpn:"",n3:new Map};KLc.prototype.bN=function(Y,u){var n={};u=Object.assign({},u,(n.cc=this.vM.hU(),n));this.vM.L.fG(Y,u)};var TAJ,gx; TAJ={YEF:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",yVG:"AUTHENTICATION_MALFORMED",LYw:"AUTHENTICATION_MISSING",HFz:"BAD_REQUEST",CE2:"CAST_SESSION_DEVICE_MISMATCHED",l4F:"CAST_SESSION_VIDEO_MISMATCHED",iFG:"CAST_TOKEN_EXPIRED",kfc:"CAST_TOKEN_FAILED",BtF:"CAST_TOKEN_MALFORMED",QMG:"CGI_PARAMS_MALFORMED",ZFG:"CGI_PARAMS_MISSING",hYz:"DEVICE_FALLBACK",iUG:"GENERIC_WITH_LINK_AND_CPN",kgZ:"ERROR_HDCP",BOg:"LICENSE",ZUg:"VIDEO_UNAVAILABLE",pdc:"FORMAT_UNAVAILABLE",P42:"GEO_FAILURE", Xv2:"HTML5_AUDIO_RENDERER_ERROR",G3V:"GENERIC_WITHOUT_LINK",qTq:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",uYa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",r4w:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",DIW:"HTML5_SPS_UMP_STATUS_REJECTED",J4g:"INVALID_DRM_MESSAGE",qKc:"PURCHASE_NOT_FOUND",uTJ:"PURCHASE_REFUNDED",HYa:"RENTAL_EXPIRED",SKV:"RETRYABLE_ERROR",eiG:"SERVER_ERROR",P5a:"SIGNATURE_EXPIRED",xWF:"STOPPED_BY_ANOTHER_PLAYBACK",IbG:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Kta:"STREAMING_NOT_ALLOWED", oTF:"STREAM_LICENSE_NOT_FOUND",GDZ:"TOO_MANY_REQUESTS",qYq:"TOO_MANY_REQUESTS_WITH_LINK",uhk:"TOO_MANY_STREAMS_PER_ENTITLEMENT",rZk:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",ETF:"VIDEO_FORBIDDEN",dW2:"VIDEO_NOT_FOUND",JVc:"BROWSER_OR_EXTENSION_ERROR"};gx={}; g.qQ=(gx.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.",gx.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",gx.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", gx.LICENSE="Se produjo un error de licencia con este video.",gx.VIDEO_UNAVAILABLE="Video no disponible",gx.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",gx.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",gx.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",gx.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",gx.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",gx.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",gx.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",gx.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", gx.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",gx.PURCHASE_NOT_FOUND="Este es un video pagado.",gx.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",gx.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",gx.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",gx.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", gx.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",gx.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",gx.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",gx.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",gx.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",gx.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",gx.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",gx.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",gx.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", gx.TOO_MANY_REQUESTS="Accede para mirar el video.",gx.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",gx.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",gx.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",gx.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", gx.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",gx.VIDEO_NOT_FOUND="No se puede encontrar este video.",gx.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",gx);var rzq;var MEq=g.Wq(),sEu=MEq.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!sEu||sEu.length<2)rzq=void 0;else{var dqR=MEq.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);rzq=dqR&&dqR.length===6?Number(dqR[5].replace("_",".")):0}var Ur=rzq,yU=Ur>=0;g.d(g.j3,Kb);g.j3.prototype.B=function(Y,u,n,U,k){return Kb.prototype.B.call(this,Y,u,n,U,k)};var Ek={},zH=(Ek.FAIRPLAY="fairplay",Ek.PLAYREADY="playready",Ek.WIDEVINE="widevine",Ek.CLEARKEY=null,Ek.FLASHACCESS=null,Ek.UNKNOWN=null,Ek.WIDEVINE_CLASSIC=null,Ek);KI.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var HX={},Vu=(HX.WIDTH={name:"width",video:!0,valid:640,jU:99999},HX.HEIGHT={name:"height",video:!0,valid:360,jU:99999},HX.FRAMERATE={name:"framerate",video:!0,valid:30,jU:9999},HX.BITRATE={name:"bitrate",video:!0,valid:3E5,jU:2E9},HX.EOTF={name:"eotf",video:!0,valid:"bt709",jU:"catavision"},HX.CHANNELS={name:"channels",video:!1,valid:2,jU:99},HX.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",jU:"invalidformat"},HX.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", jU:"nope"},HX.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",jU:"av99.0.05M.08"},HX.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",jU:"invalid"},HX.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",jU:"false"},HX);var GZQ=["h","H"],Azg=["9","("],jER=["9h","(h"],KtQ=["8","*"],piu=["a","A"],Ltq=["o","O"],tEQ=["m","M"],BAB=["mac3","MAC3"],oSG=["meac3","MEAC3"],y7={},W4M=(y7.h=GZQ,y7.H=GZQ,y7["9"]=Azg,y7["("]=Azg,y7["9h"]=jER,y7["(h"]=jER,y7["8"]=KtQ,y7["*"]=KtQ,y7.a=piu,y7.A=piu,y7.o=Ltq,y7.O=Ltq,y7.m=tEQ,y7.M=tEQ,y7.mac3=BAB,y7.MAC3=BAB,y7.meac3=oSG,y7.MEAC3=oSG,y7),czQ=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),jIA=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var q={},bO=(q["0"]="f",q["160"]="h",q["133"]="h",q["134"]="h",q["135"]="h",q["136"]="h",q["137"]="h",q["264"]="h",q["266"]="h",q["138"]="h",q["298"]="h",q["299"]="h",q["304"]="h",q["305"]="h",q["214"]="h",q["216"]="h",q["374"]="h",q["375"]="h",q["140"]="a",q["141"]="a",q["327"]="sa",q["258"]="m",q["380"]="mac3",q["328"]="meac3",q["161"]="H",q["142"]="H",q["143"]="H",q["144"]="H",q["222"]="H",q["223"]="H",q["145"]="H",q["224"]="H",q["225"]="H",q["146"]="H",q["226"]="H",q["227"]="H",q["147"]="H",q["384"]= "H",q["376"]="H",q["385"]="H",q["377"]="H",q["149"]="A",q["261"]="M",q["381"]="MAC3",q["329"]="MEAC3",q["598"]="9",q["278"]="9",q["242"]="9",q["243"]="9",q["244"]="9",q["775"]="9",q["776"]="9",q["777"]="9",q["778"]="9",q["779"]="9",q["780"]="9",q["781"]="9",q["782"]="9",q["783"]="9",q["247"]="9",q["248"]="9",q["353"]="9",q["355"]="9",q["356"]="9",q["271"]="9",q["577"]="9",q["313"]="9",q["579"]="9",q["272"]="9",q["302"]="9",q["303"]="9",q["407"]="9",q["408"]="9",q["308"]="9",q["315"]="9",q["330"]= "9h",q["331"]="9h",q["332"]="9h",q["333"]="9h",q["334"]="9h",q["335"]="9h",q["336"]="9h",q["337"]="9h",q["338"]="so",q["600"]="o",q["250"]="o",q["251"]="o",q["774"]="o",q["194"]="*",q["195"]="*",q["220"]="*",q["221"]="*",q["196"]="*",q["197"]="*",q["279"]="(",q["280"]="(",q["317"]="(",q["318"]="(",q["273"]="(",q["274"]="(",q["357"]="(",q["358"]="(",q["275"]="(",q["359"]="(",q["360"]="(",q["276"]="(",q["583"]="(",q["584"]="(",q["314"]="(",q["585"]="(",q["561"]="(",q["277"]="(",q["361"]="(h",q["362"]= "(h",q["363"]="(h",q["364"]="(h",q["365"]="(h",q["366"]="(h",q["591"]="(h",q["592"]="(h",q["367"]="(h",q["586"]="(h",q["587"]="(h",q["368"]="(h",q["588"]="(h",q["562"]="(h",q["409"]="(",q["410"]="(",q["411"]="(",q["412"]="(",q["557"]="(",q["558"]="(",q["394"]="1",q["395"]="1",q["396"]="1",q["397"]="1",q["398"]="1",q["399"]="1",q["720"]="1",q["721"]="1",q["400"]="1",q["401"]="1",q["571"]="1",q["402"]="1",q["694"]="1h",q["695"]="1h",q["696"]="1h",q["697"]="1h",q["698"]="1h",q["699"]="1h",q["700"]="1h", q["701"]="1h",q["702"]="1h",q["703"]="1h",q["386"]="3",q["387"]="w",q["406"]="6",q["787"]="1",q["788"]="1",q["548"]="1e",q["549"]="1e",q["550"]="1e",q["551"]="1e",q["809"]="1e",q["810"]="1e",q["552"]="1e",q["811"]="1e",q["812"]="1e",q["553"]="1e",q["813"]="1e",q["814"]="1e",q["554"]="1e",q["815"]="1e",q["816"]="1e",q["555"]="1e",q["817"]="1e",q["818"]="1e",q["572"]="1e",q["556"]="1e",q["645"]="(",q["646"]="(",q["647"]="(",q["648"]="(",q["649"]="(",q["650"]="(",q["651"]="(",q["652"]="(",q["653"]="(", q["654"]="(",q["655"]="(",q["656"]="(",q["657"]="(",q["658"]="(",q["659"]="(",q["660"]="(",q["661"]="(",q["662"]="(",q["663"]="(",q["664"]="(",q["665"]="(",q["666"]="(",q["667"]="(",q["668"]="(",q["669"]="(",q["670"]="(",q["671"]="(",q["672"]="(",q["673"]="(",q["674"]="(h",q["675"]="(h",q["676"]="(h",q["677"]="(h",q["678"]="(h",q["679"]="(h",q["680"]="(h",q["681"]="(h",q["682"]="(h",q["683"]="(h",q["684"]="(h",q["685"]="(h",q["686"]="(h",q["687"]="(h",q["688"]="A",q["689"]="A",q["690"]="A",q["691"]= "MEAC3",q["773"]="i",q["806"]="I",q["805"]="I",q["829"]="9",q["830"]="9",q["831"]="9",q["832"]="9",q["833"]="9",q["834"]="9",q["835"]="9",q["836"]="9",q["892"]="9",q["893"]="9",q["837"]="9",q["838"]="9",q["839"]="9",q["840"]="9",q["841"]="(",q["842"]="(",q["843"]="(",q["844"]="(",q["845"]="(",q["846"]="(",q["847"]="(",q["848"]="(",q["894"]="(",q["895"]="(",q["849"]="(",q["850"]="(",q["851"]="(",q["852"]="(",q["865"]="9",q["866"]="9",q["867"]="9",q["868"]="9",q["869"]="9",q["870"]="9",q["871"]="9", q["872"]="9",q["896"]="9",q["897"]="9",q["873"]="9",q["874"]="9",q["875"]="9",q["876"]="9",q["877"]="(",q["878"]="(",q["879"]="(",q["880"]="(",q["881"]="(",q["882"]="(",q["883"]="(",q["884"]="(",q["898"]="(",q["899"]="(",q["885"]="(",q["886"]="(",q["887"]="(",q["888"]="(",q);var V7={},MJm=(V7.STEREO_LAYOUT_UNKNOWN=0,V7.STEREO_LAYOUT_LEFT_RIGHT=1,V7.STEREO_LAYOUT_TOP_BOTTOM=2,V7);var eaM={DXw:0,uuZ:1,rVc:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var Ok,D5,Fw,dZu;Ok={};g.hn=(Ok.auto=0,Ok.tiny=144,Ok.light=144,Ok.small=240,Ok.medium=360,Ok.large=480,Ok.hd720=720,Ok.hd1080=1080,Ok.hd1440=1440,Ok.hd2160=2160,Ok.hd2880=2880,Ok.highres=4320,Ok);D5={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Fw={}; dZu=(Fw.QUALITY_ORDINAL_UNKNOWN=0,Fw.QUALITY_ORDINAL_144P_SAVER=124,Fw.QUALITY_ORDINAL_144P=144,Fw.QUALITY_ORDINAL_240P_SAVER=220,Fw.QUALITY_ORDINAL_240P=240,Fw.QUALITY_ORDINAL_360P_SAVER=340,Fw.QUALITY_ORDINAL_360P=360,Fw.QUALITY_ORDINAL_480P=480,Fw.QUALITY_ORDINAL_608P_SAVER=588,Fw.QUALITY_ORDINAL_608P=608,Fw.QUALITY_ORDINAL_720P=720,Fw.QUALITY_ORDINAL_720P_ENHANCED=740,Fw.QUALITY_ORDINAL_1080P=1080,Fw.QUALITY_ORDINAL_1080P_ENHANCED=1100,Fw.QUALITY_ORDINAL_1440P=1440,Fw.QUALITY_ORDINAL_2160P=2160, Fw.QUALITY_ORDINAL_HIGHRES=9999,Fw);var Wj="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");wC.prototype.isHdr=function(){return this.K==="smpte2084"||this.K==="arib-std-b67"};Ik.prototype.Kp=function(){return this.containerType===2}; Ik.prototype.isEncrypted=function(){return!!this.Ls}; Ik.prototype.HW=function(){return!!this.audio}; Ik.prototype.OX=function(){return!!this.video}; var EP=!1;g.d(NZ,g.ud);g.M=NZ.prototype;g.M.appendBuffer=function(Y,u,n){if(this.aH.sN()!==this.appendWindowStart+this.start||this.aH.gG()!==this.appendWindowEnd+this.start||this.aH.iN()!==this.timestampOffset+this.start)this.aH.supports(1),this.aH.DI(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.aH.zD(this.timestampOffset+this.start);this.aH.appendBuffer(Y,u,n)}; g.M.abort=function(){this.aH.abort()}; g.M.remove=function(Y,u){this.aH.remove(Y+this.start,u+this.start)}; g.M.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.M.clear=function(){this.aH.clear()}; g.M.DI=function(Y,u){this.appendWindowStart=Y;this.appendWindowEnd=u}; g.M.cB=function(){return this.timestampOffset+this.start}; g.M.sN=function(){return this.appendWindowStart}; g.M.gG=function(){return this.appendWindowEnd}; g.M.zD=function(Y){this.timestampOffset=Y}; g.M.iN=function(){return this.timestampOffset}; g.M.v4=function(Y){Y=this.aH.v4(Y===void 0?!1:Y);return QD(Y,this.start,this.end)}; g.M.yN=function(){return this.aH.yN()}; g.M.oR=function(){return this.aH.oR()}; g.M.XT=function(){return this.aH.XT()}; g.M.gZ=function(){return this.aH.gZ()}; g.M.Ts=function(){this.aH.Ts()}; g.M.SP=function(Y){return this.aH.SP(Y)}; g.M.xZ=function(){return this.aH.xZ()}; g.M.Zq=function(){return this.aH.Zq()}; g.M.OQ=function(Y,u,n){this.aH.OQ(Y,u,n)}; g.M.Fp=function(Y,u,n){this.aH.Fp(Y,u,n)}; g.M.MV=function(Y,u){return this.aH.MV(Y,u)}; g.M.supports=function(Y){return this.aH.supports(Y)}; g.M.Ep=function(){return this.aH.Ep()}; g.M.isView=function(){return!0}; g.M.ek=function(){return this.aH.ek()?this.isActive:!1}; g.M.isLocked=function(){return this.VU&&!this.isActive}; g.M.Tw=function(Y){Y=this.aH.Tw(Y);Y.vw=this.start+"-"+this.end;return Y}; g.M.eS=function(){return this.aH.eS()}; g.M.f4=function(){return this.aH.f4()}; g.M.BB=function(){return this.aH.BB()}; g.M.nG=function(){this.aH.lr(this.M9);g.ud.prototype.nG.call(this)};var w8=!1;g.d(Zy,g.ud);g.M=Zy.prototype;g.M.appendBuffer=function(Y,u,n){this.K3=!1;n&&(this.P_=n);if(Y.length){var U;((U=this.SE)==null?0:U.appendBuffer)?this.SE.appendBuffer(Y):this.SE?this.SE.append(Y):this.OE&&this.OE.webkitSourceAppend(this.id,Y)}u&&(u.isEncrypted()&&(this.zB=this.P_),u.type===3&&(this.z4=u),this.v_.push(u.RH()),this.v_.length>4&&this.v_.shift());this.Ny&&(this.Ny.length>=2||Y.length>1048576?delete this.Ny:this.Ny.push(Y))}; g.M.abort=function(){try{this.SE?this.SE.abort():this.OE&&this.OE.webkitSourceAbort(this.id)}catch(u){if(Zl7){var Y=new g.zP("Error while abort the source buffer: "+u.name+", "+u.message);g.tl(Y)}}this.P_=this.z4=null}; g.M.remove=function(Y,u,n){this.K3=!1;var U;if((U=this.SE)==null?0:U.remove)n&&n({b:k6(this.v4()),s:Y,e:u}),this.SE.remove(Y,u)}; g.M.removeAll=function(){this.remove(this.sN(),this.gG())}; g.M.clear=function(){this.XT()||(this.abort(),this.removeAll(),this.zB=this.P_=this.z4=null,this.appendWindowStart=this.timestampOffset=0,this.vA=Uw([],[]),this.K3=!1,this.Ny=i$?[]:void 0,this.ze=!0)}; g.M.sN=function(){if(w8&&this.OX)return this.appendWindowStart;var Y;return((Y=this.SE)==null?void 0:Y.appendWindowStart)||0}; g.M.gG=function(){var Y;return((Y=this.SE)==null?void 0:Y.appendWindowEnd)||0}; g.M.DI=function(Y,u){this.SE&&(w8&&this.OX?(this.appendWindowStart=Y,this.SE.appendWindowEnd=u):Y>this.sN()?(this.SE.appendWindowEnd=u,this.SE.appendWindowStart=Y):(this.SE.appendWindowStart=Y,this.SE.appendWindowEnd=u))}; g.M.cB=function(){return this.timestampOffset}; g.M.zD=function(Y){w8?this.timestampOffset=Y:this.supports(1)&&(this.SE.timestampOffset=Y)}; g.M.iN=function(){return w8?this.timestampOffset:this.supports(1)?this.SE.timestampOffset:0}; g.M.v4=function(Y){if(Y===void 0?0:Y)return this.K3||this.yN()||(this.vA=this.v4(!1),this.K3=!0),this.vA;try{return this.SE?this.SE.buffered:this.OE?this.OE.webkitSourceBuffered(this.id):Uw([0],[Infinity])}catch(u){return Uw([],[])}}; g.M.yN=function(){var Y;return((Y=this.SE)==null?void 0:Y.updating)||!1}; g.M.XT=function(){return this.ze}; g.M.gZ=function(){return!this.ze&&this.yN()}; g.M.Ts=function(){this.ze=!1}; g.M.SP=function(Y){var u=Y==null?void 0:Y.aV;Y=Y==null?void 0:Y.containerType;return!u&&!Y||u===this.aV&&Y===this.containerType}; g.M.xZ=function(){return this.P_}; g.M.Zq=function(){return this.zB}; g.M.MV=function(Y,u){return this.containerType!==Y||this.aV!==u}; g.M.OQ=function(Y,u,n){if(this.containerType!==Y||n&&this.MV(Y,n))this.supports(4),Tu()&&this.SE.changeType(u),n&&(this.aV=n);this.containerType=Y}; g.M.Fp=function(Y,u,n){this.containerType&&this.MV(Y,u)&&Tu()&&this.SE.changeType(n);this.containerType=Y;this.aV=u}; g.M.Ep=function(){return this.z4}; g.M.isView=function(){return!1}; g.M.supports=function(Y){switch(Y){case 1:var u;return((u=this.SE)==null?void 0:u.timestampOffset)!==void 0;case 0:var n;return!((n=this.SE)==null||!n.appendBuffer);case 2:var U;return!((U=this.SE)==null||!U.remove);case 3:var k,m;return!!(((k=this.SE)==null?0:k.addEventListener)&&((m=this.SE)==null?0:m.removeEventListener));case 4:return!(!this.SE||!this.SE.changeType);default:return!1}}; g.M.ek=function(){return!this.yN()}; g.M.isLocked=function(){return!1}; g.M.Tw=function(Y){Y.to=this.iN();Y.up=this.yN();var u,n=((u=this.SE)==null?void 0:u.appendWindowStart)||0,U;u=((U=this.SE)==null?void 0:U.appendWindowEnd)||Infinity;Y.aw=n.toFixed(3)+"-"+u.toFixed(3);return Y}; g.M.oR=function(){var Y;return((Y=this.SE)==null?void 0:Y.writeHead)||0}; g.M.eS=function(){for(var Y={},u=0;u=7&&(!u||((U=this.IV)==null?0:U.V("mweb_ios_allow_playback_workaround_when_ready")))&&p6S(this,function(){g.QS(function(){EAt(Y,Y.getCurrentTime(),0)},500)})}return u}; g.M.seekTo=function(Y){this.t4()>0&&(yU&&Ur<4&&(Y=Math.max(.1,Y)),this.setCurrentTime(Y))}; g.M.Sc=function(){if(!this.j&&this.ZW)if(this.ZW.J)try{var Y;Ao(this,{l:"mer",sr:(Y=this.IV)==null?void 0:Y.mY(),rs:Kh(this.ZW)});this.ZW.clear();this.j=this.ZW;this.ZW=void 0}catch(u){Y=new g.zP("Error while clearing Media Source in MediaElement: "+u.name+", "+u.message),g.tl(Y),this.stopVideo()}else this.stopVideo()}; g.M.stopVideo=function(){var Y=this;if(!this.j){var u;(u=this.ZW)==null||I_u(u);if(QyM){if(!this.X){var n=new Lh;n.then(void 0,function(){}); this.X=n;Nvu&&this.pause();g.QS(function(){Y.X===n&&(ca(Y),n.resolve())},200)}}else ca(this)}}; g.M.h4=function(){var Y=this.eM();return Ch(Y)&&this.getDuration()?Pa(Y,this.getCurrentTime()):0}; g.M.o2=function(){var Y=this.getDuration();return Y===Infinity?1:Y?this.h4()/Y:0}; g.M.Tw=function(){try{var Y=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:k6(this.h1(),",",3),vbu:k6(this.eM()),vbs:k6(this.Vq()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.t4(),vns:""+this.pW(),vec:""+this.Sh(),vemsg:this.UX(),vvol:""+this.getVolume(),vdom:""+ +this.MQ(),vsrc:""+ +!!this.sE(),vw:""+Y.width,vh:""+Y.height}}catch(u){return{}}}; g.M.hasError=function(){return this.Sh()>0}; g.M.addEventListener=function(Y,u){this.G.listen(Y,u,!1,this);this.z9(Y)}; g.M.removeEventListener=function(Y,u){this.G.qR(Y,u,!1,this)}; g.M.dispatchEvent=function(Y){if(this.X&&Y.type==="pause")return!1;if(il7){var u,n=((u=Y.K)==null?void 0:u.timeStamp)||Infinity;u=n>performance.now()?n-Date.now()+performance.now():n;n=this.j||this.ZW;if((n==null?0:n.XT())||u<=((n==null?void 0:n.W)||0)){var U;Ao(this,{l:"mede",sr:(U=this.IV)==null?void 0:U.mY(),et:Y.type});return!1}if(this.Lt)return Ao(this,{l:"medes",et:Y.type}),n&&Y.type==="seeking"&&(n.W=performance.now(),this.Lt=!1),!1}return this.G.dispatchEvent(Y)}; g.M.dI=function(){this.W=!1}; g.M.kX=function(){this.W=!0;this.nZ(!0)}; g.M.pN=function(){this.W&&!this.wG()&&this.nZ(!0)}; g.M.equals=function(Y){return!!Y&&Y.q1()===this.q1()}; g.M.nG=function(){this.S&&this.removeEventListener("volumechange",this.pN);QyM&&ca(this);g.e.prototype.nG.call(this)}; var QyM=!1,Nvu=!1,il7=!1,VZ7=!1;g.M=g.RZ.prototype;g.M.isPaused=function(){return g.V(this,4)}; g.M.isPlaying=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)}; g.M.isOrWillBePlaying=function(){return g.V(this,8)&&!g.V(this,2)&&!g.V(this,1024)}; g.M.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)}; g.M.isBuffering=function(){return g.V(this,1)&&!g.V(this,2)}; g.M.isError=function(){return g.V(this,128)}; g.M.isSuspended=function(){return g.V(this,512)}; g.M.WK=function(){return g.V(this,64)&&g.V(this,4)}; g.M.toString=function(){return"PSt."+this.state.toString(16)}; var Jv={},qr=(Jv.BUFFERING="buffering-mode",Jv.CUED="cued-mode",Jv.ENDED="ended-mode",Jv.PAUSED="paused-mode",Jv.PLAYING="playing-mode",Jv.SEEKING="seeking-mode",Jv.UNSTARTED="unstarted-mode",Jv);g.d(zu,g.e);g.M=zu.prototype;g.M.GD=function(){return this.X}; g.M.kV=function(){return this.slot}; g.M.eG=function(){return this.layout}; g.M.init=function(){var Y=yl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),u=yl(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");f6(this.layout.ou)&&mI(this.h_.get(),this.layout.layoutId,{SL:u,g4:Y,listener:this,gm:this.D_()});zPM(this.AJ.get(),this);Y=this.i9;u=this.layout.layoutId;var n={gm:this.D_()};Y.K.set(u,n);this.Os()}; g.M.vQ=function(){}; g.M.release=function(){f6(this.layout.ou)&&Xl(this.h_.get(),this.layout.layoutId);gZG(this.AJ.get(),this);this.i9.K.delete(this.layout.layoutId);this.Sr()}; g.M.w5=function(){}; g.M.Uh=function(){}; g.M.startRendering=function(Y){CI(gb(this));if(Ew(this,Y)){var u=this.K;fI(u.params.Bc.hJ.get(),!0)&&jc7(u,"p_sr",{});Ha(this);this.zC(Y);this.D_()||this.JT(!1)}}; g.M.wX=function(Y,u){if(u.layoutId===this.layout.layoutId){this.zw="rendering";this.j=this.LG.get().isMuted()||this.LG.get().getVolume()===0;this.B$("impression");this.B$("start");if(this.LG.get().isMuted()){qZ(this,"mute");var n;Y=((n=IZ(this))==null?void 0:n.muteCommands)||[];R_(this.Fs.get(),Y,this.layout.layoutId)}if(this.LG.get().isFullscreen()){this.Zo("fullscreen");var U;n=((U=IZ(this))==null?void 0:U.fullscreenCommands)||[];R_(this.Fs.get(),n,this.layout.layoutId)}this.D_()||(U=this.bD.get(), U.X&&!U.j&&(U.J=!1,U.j=!0,U.actionType!=="ad_to_video"&&(oV("pbs",void 0,U.actionType),g.rL("finalize_all_timelines")&&uu0(U.actionType))));this.WD(1);this.TT(u);var k;u=((k=IZ(this))==null?void 0:k.impressionCommands)||[];R_(this.Fs.get(),u,this.layout.layoutId)}}; g.M.Oo=function(Y,u,n){this.S={kF:3,W6:Y==="load_timeout"?402:400,errorMessage:u.message};this.B$("error");var U;Y=((U=IZ(this))==null?void 0:U.errorCommands)||[];R_(this.Fs.get(),Y,this.layout.layoutId);this.D_()||this.tZ.Ye(this.slot,this.layout,u,n)}; g.M.hj=function(){if(this.zw==="rendering"){qZ(this,"pause");var Y,u=((Y=IZ(this))==null?void 0:Y.pauseCommands)||[];R_(this.Fs.get(),u,this.layout.layoutId);this.WD(2)}}; g.M.bz=function(){if(this.zw==="rendering"){qZ(this,"resume");var Y,u=((Y=IZ(this))==null?void 0:Y.resumeCommands)||[];R_(this.Fs.get(),u,this.layout.layoutId)}}; g.M.sj=function(Y,u){u=u===void 0?!1:u;if(this.zw==="rendering"){var n={currentTimeSec:Y,flush:u};Qg(this.K,"p_ip",n);sR(this.pG,Y*1E3,u);this.j||sR(this.pG,Y*1E3,u===void 0?!1:u);var U=this.A3();if(U){U/=1E3;if(Y>=U*.25||u)this.B$("first_quartile"),Qg(this.K,"p_fq",n);if(Y>=U*.5||u)this.B$("midpoint"),Qg(this.K,"p_sq",n);if(Y>=U*.75||u)this.B$("third_quartile"),Qg(this.K,"p_tq",n);this.hJ.get().L.Y().experiments.vz("enable_progress_command_flush_on_kabuki")?B1(this.G,Y*1E3,u):B1(this.G,Y*1E3,$Gu(this)? u:!1)}}}; g.M.hU=function(){var Y;return((Y=yD(this.SG.get(),1))==null?void 0:Y.clientPlaybackNonce)||""}; g.M.xs=function(Y,u){Y.layoutId!==this.layout.layoutId?this.tZ.Ye(this.slot,Y,new Ec("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"):u()}; g.M.n0=function(Y,u,n){if(u.layoutId===this.layout.layoutId)switch(this.zw="not_rendering",this.layoutExitReason=void 0,this.D_()||(Y=n!=="normal"||this.position+1===this.W)&&this.JT(Y),this.n7(n),this.WD(0),n){case "abandoned":if(dY(this.pG,"impression")){var U,k=((U=IZ(this))==null?void 0:U.abandonCommands)||[];R_(this.Fs.get(),k,this.layout.layoutId)}break;case "normal":U=((k=IZ(this))==null?void 0:k.completeCommands)||[];R_(this.Fs.get(),U,this.layout.layoutId);break;case "skipped":var m;U=((m= IZ(this))==null?void 0:m.skipCommands)||[];R_(this.Fs.get(),U,this.layout.layoutId)}}; g.M.g$=function(){return this.layout.layoutId}; g.M.bd=function(){return this.S}; g.M.R5=function(){if(this.zw==="rendering"){this.pG.B$("active_view_measurable");var Y,u=((Y=IZ(this))==null?void 0:Y.activeViewMeasurableCommands)||[];R_(this.Fs.get(),u,this.layout.layoutId)}}; g.M.fC=function(){if(this.zw==="rendering"){this.pG.B$("active_view_fully_viewable_audible_half_duration");var Y,u=((Y=IZ(this))==null?void 0:Y.activeViewFullyViewableAudibleHalfDurationCommands)||[];R_(this.Fs.get(),u,this.layout.layoutId)}}; g.M.nC=function(){if(this.zw==="rendering"){this.pG.B$("active_view_viewable");var Y,u=((Y=IZ(this))==null?void 0:Y.activeViewViewableCommands)||[];R_(this.Fs.get(),u,this.layout.layoutId)}}; g.M.KC=function(){if(this.zw==="rendering"){this.pG.B$("audio_audible");var Y,u=((Y=IZ(this))==null?void 0:Y.activeViewAudioAudibleCommands)||[];R_(this.Fs.get(),u,this.layout.layoutId)}}; g.M.o5=function(){if(this.zw==="rendering"){this.pG.B$("audio_measurable");var Y,u=((Y=IZ(this))==null?void 0:Y.activeViewAudioMeasurableCommands)||[];R_(this.Fs.get(),u,this.layout.layoutId)}}; g.M.JT=function(Y){this.bD.get().JT(yl(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Y,this.position,this.W,!1)}; g.M.onFullscreenToggled=function(Y){if(this.zw==="rendering")if(Y){this.Zo("fullscreen");var u,n=((u=IZ(this))==null?void 0:u.fullscreenCommands)||[];R_(this.Fs.get(),n,this.layout.layoutId)}else this.Zo("end_fullscreen"),u=((n=IZ(this))==null?void 0:n.endFullscreenCommands)||[],R_(this.Fs.get(),u,this.layout.layoutId)}; g.M.onVolumeChange=function(){if(this.zw==="rendering")if(this.LG.get().isMuted()){qZ(this,"mute");var Y,u=((Y=IZ(this))==null?void 0:Y.muteCommands)||[];R_(this.Fs.get(),u,this.layout.layoutId)}else qZ(this,"unmute"),Y=((u=IZ(this))==null?void 0:u.unmuteCommands)||[],R_(this.Fs.get(),Y,this.layout.layoutId)}; g.M.qr=function(){}; g.M.AD=function(){}; g.M.pF=function(){}; g.M.Hd=function(){}; g.M.MY=function(){}; g.M.Zo=function(Y){this.pG.Zo(Y,!this.j)}; g.M.B$=function(Y){this.pG.B$(Y,!this.j)}; g.M.D_=function(){var Y=yl(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return Y===void 0?(Xj("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.hJ.get().D_(Y)};g.d(nK,zu);g.M=nK.prototype;g.M.Os=function(){}; g.M.Sr=function(){var Y=this.AJ.get();Y.hL===this&&(Y.hL=null);this.timer.stop()}; g.M.w5=function(){this.timer.stop();zu.prototype.hj.call(this)}; g.M.Uh=function(){kq(this);zu.prototype.bz.call(this)}; g.M.A3=function(){return yl(this.eG().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.M.Yk=function(Y,u){var n=this;this.xs(Y,function(){n.zw!=="rendering_stop_requested"&&(n.zw="rendering_stop_requested",n.layoutExitReason=u,VD(n,u),n.timer.stop())})}; g.M.ye=function(){var Y=Date.now(),u=Y-this.tY;this.tY=Y;this.aM+=u;this.aM>=this.A3()?this.ys():(this.sj(this.aM/1E3),UJ(this,this.aM))}; g.M.n7=function(){}; g.M.Fu=function(){}; g.d(Xz,nK);g.M=Xz.prototype;g.M.Jb=function(Y){if(this.zw!=="not_rendering"){Y=Ow(this,Y);var u=this.LG.get().getPresentingPlayerType()===2;this.zw==="rendering_start_requested"?u&&aI(Y)&&this.P5():u?g.C1(Y,2)?Xj("Receive player ended event during MediaBreak",this.kV(),this.eG()):FT(this,Y):this.lI()}}; g.M.zC=function(){qHu(this);act(this.LG.get());this.AJ.get().hL=this;t$("pbp")||t$("pbs")||oV("pbp");t$("pbp","watch")||t$("pbs","watch")||oV("pbp",void 0,"watch");this.P5()}; g.M.TT=function(Y){this.bD.get();var u=yl(Y.clientMetadata,"metadata_type_ad_placement_config").kind,n=this.position===0;Y=yl(Y.clientMetadata,"metadata_type_linked_in_player_layout_type");Y={adBreakType:Jo(u),adType:f2A(Y)};var U=void 0;n?u!=="AD_PLACEMENT_KIND_START"&&(U="video_to_ad"):U="ad_to_ad";Kg("ad_mbs",void 0,U);g.pg(Y,U);kq(this)}; g.M.lI=function(){this.GX()}; g.M.ys=function(){unM(this);this.GX()}; g.d(Pv,nK);g.M=Pv.prototype;g.M.Jb=function(Y){this.zw!=="not_rendering"&&(Y=Ow(this,Y),FT(this,Y))}; g.M.zC=function(){Xj("Not used in SSAP")}; g.M.TT=function(){kq(this)}; g.M.lI=function(){Xj("Not used in SSAP")}; g.M.ys=function(){unM(this);this.tZ.a4(this.kV(),this.eG(),"normal")}; g.d(S0,Pv);S0.prototype.Yk=function(Y,u){var n=this;this.xs(Y,function(){kT(n.X,u)&&(n.zw="rendering_stop_requested",n.layoutExitReason=u,VD(n,u),n.timer.stop())})}; S0.prototype.startRendering=function(Y){CI(gb(this));Ew(this,Y)&&(Ha(this),this.AJ.get().hL=this)};g.d(Qt,zu);g.M=Qt.prototype;g.M.lI=function(){this.GX()}; g.M.Jb=function(Y){if(this.zw!=="not_rendering"){Y=Ow(this,Y);var u=this.LG.get().getPresentingPlayerType()===2;this.zw==="rendering_start_requested"?u&&aI(Y)&&this.P5():!u||g.C1(Y,2)?this.GX():FT(this,Y)}}; g.M.Os=function(){yl(this.eG().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=yl(this.eG().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.M.Sr=function(){yl(this.eG().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.U6){var Y=this.context.Bc,u=this.U6,n=this.eG().layoutId;if(fI(Y.hJ.get(),!0)){var U={};Y.bN("mccru",(U.cid=u,U.p_ac=n,U))}this.K0.get().removeCueRange(this.U6)}this.U6=void 0;var k;(k=this.ox)==null||k.dispose();this.yD&&this.yD.dispose()}; g.M.zC=function(Y){var u=CK(this.hJ.get()),n=fK(this.hJ.get());if(u&&n&&!this.D_()){n=yl(Y.clientMetadata,"metadata_type_preload_player_vars");var U=this.hJ.get();U=g.YF(U.L.Y().experiments,"html5_preload_wait_time_secs");n&&this.yD&&this.yD.start(U*1E3)}kcd(this,Y);qHu(this);u?(n=this.oH.get(),Y=yl(Y.clientMetadata,"metadata_type_player_vars"),n.L.loadVideoByPlayerVars(Y,!1,2)):ift(this.oH.get(),yl(Y.clientMetadata,"metadata_type_player_vars"));var k;(k=this.ox)==null||k.start();u||this.oH.get().L.playVideo(2)}; g.M.TT=function(){var Y;(Y=this.ox)==null||Y.stop();this.NQ();(this.adCpn=Jc0(this))||Xj("Media layout confirmed started, but ad CPN not set.");this.ZY.get().Io("onAdStart",this.adCpn);this.bQ=Date.now()}; g.M.A3=function(){var Y;return(Y=yD(this.SG.get(),2))==null?void 0:Y.x_}; g.M.VK=function(){this.pG.Zo("clickthrough")}; g.M.Yk=function(Y,u){var n=this;this.xs(Y,function(){if(n.zw!=="rendering_stop_requested"){n.zw="rendering_stop_requested";n.layoutExitReason=u;VD(n,u);var U;(U=n.ox)==null||U.stop();n.yD&&n.yD.stop();m4c(n)}})}; g.M.onCueRangeEnter=function(Y){if(Y!==this.U6)Xj("Received CueRangeEnter signal for unknown layout.",this.kV(),this.eG(),{cueRangeId:Y});else{var u=this.context.Bc,n=this.eG().layoutId;if(fI(u.hJ.get(),!0)){var U={};u.bN("mccre",(U.cid=Y,U.p_ac=n,U))}this.K0.get().removeCueRange(this.U6);this.U6=void 0;h0(this.context.hJ.get(),"html5_ssap_flush_at_stop_rendering")&&this.D_()||(Y=yl(this.eG().clientMetadata,"metadata_type_video_length_seconds"),this.sj(Y,!0),this.B$("complete"))}}; g.M.n7=function(Y){Y!=="abandoned"&&this.ZY.get().Io("onAdComplete");this.ZY.get().Io("onAdEnd",this.adCpn)}; g.M.NQ=function(){this.U6="adcompletioncuerange:"+this.eG().layoutId;this.K0.get().addCueRange(this.U6,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var Y=this.context.Bc,u=this.U6,n=this.eG().layoutId;if(fI(Y.hJ.get(),!0)){var U={};Y.bN("mccr",(U.cid=u,U.p_ac=n,U))}}; g.M.onCueRangeExit=function(){}; g.M.Fu=function(Y){this.zw==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&Y>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.LG.get().y3(!0),this.sj(Y))}; g.M.sj=function(Y,u){zu.prototype.sj.call(this,Y,u===void 0?!1:u);u=Date.now()-this.bQ;var n=Y*1E3,U={contentCpn:this.hU(),adCpn:Jc0(this)};if(Y-this.h8>=5){var k=u=2||(this.B0.Yk(this.layout,u),Y=h0(this.params.context.hJ.get(),"html5_ssap_pass_transition_reason")&&u==="abandoned",this.Ad()&&!Y&&(h0(this.params.context.hJ.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(u)||Xj("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:u})),this.xk.get().finishSegmentByCpn(this.layout.layoutId, yD(this.SG.get(),1).clientPlaybackNonce,$6(u,this.params.context.hJ))),this.LG.get().removeListener(this),this.L6()&&mV(this.B0.GD())&&this.GY.n0(this.slot,this.layout,this.B0.GD().K))}; g.M.VW=function(Y,u,n){G3t({cpn:Y,vM:this.SG.get(),H3:!0});this.eG().layoutId!==Y||h0(this.params.context.hJ.get(),"html5_ssap_pass_transition_reason")&&n===5||(this.B0.GD().currentState<2&&(Y=Yq(n,this.params.context.hJ),Y==="error"?this.GY.Ye(this.slot,this.layout,new Ec("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:n},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):A8(this.u8, this.layout,Y)),h0(this.params.context.hJ.get(),"html5_ssap_exit_without_waiting_for_transition")||this.GY.n0(this.slot,this.layout,this.B0.GD().K))};g.d(ru,g.e);g.M=ru.prototype;g.M.kV=function(){return this.slot}; g.M.eG=function(){return this.layout}; g.M.QX=function(){}; g.M.cM=function(){return this.Ql[this.YP]}; g.M.n1=function(){return this.YP}; g.M.w5=function(Y,u){var n=this.cM();u.layoutId!==sJ(n,Y,u)?Xj("pauseLayout for a PlayerBytes layout that is not currently active",Y,u):n.w5()}; g.M.Uh=function(Y,u){var n=this.cM();u.layoutId!==sJ(n,Y,u)?Xj("resumeLayout for a PlayerBytes layout that is not currently active",Y,u):n.Uh()}; g.M.ql=function(Y,u){var n=this.cM();TVd(this,Y,u);r$B(n,Y,u)&&this.Op(n.kV(),n.eG(),"skipped")}; g.M.dh=function(Y,u){var n=this.cM();MPu(this);sVc(n,Y,u)&&(Y=d4d(this,n,Y,u),Y!==void 0&&(this.D_()?Xj("Should not happen. Should delete"):A$m(this,n.kV(),n.eG(),Y)))}; g.M.Ea=function(Y,u){var n=Object.assign({},Mu(this),{layoutId:u.layoutId}),U=n.layoutId,k=n.H3;if(n.gm){var m={};S3(n.vM,"wrse",(m.ec=U,m.is=k,m.ctp=Pj(U),m))}TO(this.sY,Y,u)}; g.M.wX=function(Y,u){var n;(n=this.cM())==null||n.wX(Y,u)}; g.M.n0=function(Y,u,n){u.layoutId===this.eG().layoutId&&(this.yZ=!1,kF(this.P$(),this));var U;(U=this.cM())==null||U.n0(Y,u,n)}; g.M.Fu=function(Y){var u;(u=this.cM())==null||u.Fu(Y)}; g.M.j4=function(Y,u,n){this.n1()===-1&&(this.callback.wX(this.slot,this.layout),this.YP++);var U=this.cM();U?(U.Oo(Y,u,n),this.D_()&&this.callback.Ye(this.slot,this.layout,u,n)):Xj("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.n1()),layoutId:this.eG().layoutId})}; g.M.onFullscreenToggled=function(Y){var u;(u=this.cM())==null||u.onFullscreenToggled(Y)}; g.M.qr=function(Y){var u;(u=this.cM())==null||u.qr(Y)}; g.M.pF=function(Y){var u;(u=this.cM())==null||u.pF(Y)}; g.M.onVolumeChange=function(){var Y;(Y=this.cM())==null||Y.onVolumeChange()}; g.M.uO=function(Y,u,n){rn(this.sY,Y,u,n)}; g.M.PY=function(Y){Y.startRendering(Y.eG())}; g.M.init=function(){var Y=yl(this.eG().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Y&&(Y.current=this);if(this.Ql.length<1)throw new F("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Ql.length)});if(Y=yl(this.eG().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Y.current=this;Y=g.A(this.Ql);for(var u=Y.next();!u.done;u=Y.next())u=u.value,u.init(),I8A(this.sY,this.slot,u.eG()),zTA(this.sY,this.slot,u.eG()); if(this.D_())for(this.SG.get().addListener(this),Zw0(ZgS(this),this.SG.get()),Y=ZgS(this),Y=g.A(Y),u=Y.next();!u.done;u=Y.next())this.kU(u.value)}; g.M.kU=function(Y){var u=yl(Y.clientMetadata,"metadata_type_player_vars");u?(Y.layoutType!=="LAYOUT_TYPE_MEDIA"&&Xj("Non-video ad contains playerVars",this.slot,Y),this.oH.get().addPlayerResponseForAssociation({playerVars:u})):(Y=QVd(Y),this.oH.get().addPlayerResponseForAssociation({jg:Y}))}; g.M.release=function(){var Y=yl(this.eG().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Y&&(Y.current=null);if(Y=yl(this.eG().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Y.current=null;Y=g.A(this.Ql);for(var u=Y.next();!u.done;u=Y.next())u=u.value,gkS(this.sY,this.slot,u.eG()),u.release();this.D_()&&(this.SG.get().removeListener(this),T5A())}; g.M.xs=function(Y){return Y.layoutId!==this.eG().layoutId?(this.callback.Ye(this.kV(),Y,new Ec("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.eG().layoutId+("and LayoutType: "+this.eG().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.M.yp=function(){this.LG.get().addListener(this);UE(this.P$(),this)}; g.M.Jb=function(Y){if(Y.state.isError()){var u,n;this.j4((u=Y.state.Jt)==null?void 0:u.errorCode,new Ec("There was a player error during this media layout.",{playerErrorCode:(n=Y.state.Jt)==null?void 0:n.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(u=this.cM())&&u.Jb(Y)}; g.M.D_=function(){var Y=yl(this.kV().clientMetadata,"metadata_type_eligible_for_ssap");return Y===void 0?(Xj("Expected SSAP eligibility in PlayerBytes slots",this.kV(),this.eG()),!1):this.hJ.get().D_(Y)}; g.M.AD=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.Hd=function(){}; g.M.MY=function(){}; g.d(j0,ru);g.M=j0.prototype;g.M.cf=function(Y,u,n){this.Op(Y,u,n)}; g.M.dJ=function(Y,u){this.Op(Y,u,"error")}; g.M.Op=function(Y,u,n){var U=this;Gct(this,Y,u,n,function(){du(U,U.n1()+1)})}; g.M.startRendering=function(Y){this.xs(Y)&&(this.yp(),fcY(this.bD.get()),M5m(this.hJ.get())||act(this.LG.get()),this.n1()===-1&&du(this,this.n1()+1))}; g.M.Yk=function(Y,u){var n=this;this.yZ=!0;this.n1()===this.Ql.length?this.callback.n0(this.slot,this.layout,u):(Y=this.cM(),Y.Yk(Y.eG(),u),this.cZ=function(){n.callback.n0(n.slot,n.layout,u)}); this.LG.get().L.jI();ift(this.oH.get(),{});Y=k0(this.LG.get(),1);Y.isPaused()&&!g.V(Y,2)&&this.LG.get().playVideo();this.LG.get().removeListener(this);this.yZ&&jVu(this)}; g.M.VW=function(){}; g.M.JQ=function(){}; g.M.a4=function(){}; g.d(KK,ru);g.M=KK.prototype;g.M.cf=function(Y,u,n){Y=Object.assign({},Mu(this),{layoutId:u.layoutId,layoutExitReason:n});u=Y.layoutId;n=Y.layoutExitReason;var U={};S3(Y.vM,"prse",(U.xc=u,U.ler=n,U.ctp=Pj(u),U))}; g.M.dJ=function(){Xj("onSubLayoutError in SSAP")}; g.M.Op=function(){Xj("exitSubLayoutAndPlayNext in SSAP")}; g.M.cM=function(){return this.yI}; g.M.n1=function(){var Y=this;return this.Ql.findIndex(function(u){var n;return u.eG().layoutId===((n=Y.yI)==null?void 0:n.eG().layoutId)})}; g.M.PY=function(Y){mq(this.yI===void 0,"replacing another adapter");this.yI=Y;Y.startRendering(Y.eG())}; g.M.uO=function(Y,u,n){rn(this.sY,Y,u,n);var U;mq(u.layoutId===((U=this.yI)==null?void 0:U.eG().layoutId),"currentAdapter does not match exiting layout",{slot:Y?"slot: "+Y.slotType:"",subLayout:kA(u)})&&(this.yI=void 0)}; g.M.release=function(){ru.prototype.release.call(this);mq(this.yI===void 0,"currentAdapter is still active during release");this.yI=void 0}; g.M.Ad=function(){return this.LG.get().getPresentingPlayerType()===2}; g.M.Yk=function(Y,u){function n(){pK(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(u)||Xj("Composite stopRendering: Unexpected layout exit reason",this.slot,Y,{layoutExitReason:u}))} function U(){this.yI&&LK(this,this.yI,u);if(this.Ad()&&(!pK(this)||u!=="abandoned")){n.call(this);var m;var X=((m=this.SG.get().L.getVideoData())==null?void 0:m.clientPlaybackNonce)||"";m=yD(this.SG.get(),1).clientPlaybackNonce;this.xk.get().finishSegmentByCpn(X,m,$6(u,this.hJ))}K3M(this,u)} function k(){if(this.yI){var m=this.yI;m.GD().currentState<2&&m.Yk(m.eG(),u);m=pK(this)&&u==="abandoned";this.Ad()&&!m&&(n.call(this),this.xk.get().finishSegmentByCpn(this.yI.eG().layoutId,yD(this.SG.get(),1).clientPlaybackNonce,$6(u,this.hJ)))}} mq(Y.layoutId===this.eG().layoutId,"StopRendering for wrong layout")&&kT(this.cS.j,u)&&(this.L6()?U.call(this):k.call(this))}; g.M.n0=function(Y,u,n){ru.prototype.n0.call(this,Y,u,n);u.layoutId===this.eG().layoutId&&this.LG.get().removeListener(this)}; g.M.hU=function(){return yD(this.SG.get(),1).clientPlaybackNonce}; g.M.VW=function(Y,u,n){G3t(Object.assign({},Mu(this),{cpn:Y}));if(!pK(this)||n!==5)if(this.L6()){if(this.yI&&this.yI.eG().layoutId!==u){var U=this.yI.eG().layoutId;U!==Y&&Xj("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:U,exitingCpn:Y,enteringCpn:u});Y=Yq(n,this.hJ);LK(this,this.yI,Y)}else this.yI&&Xj("onClipExited: active layout is entering again");u===this.hU()&&L3B(this,n)}else{if(this.yI&&this.yI.eG().layoutId===Y)pDA(this,this.yI,n);else{var k;Xj("Exiting cpn does not match active cpn", this.slot,(U=this.yI)==null?void 0:U.eG(),{exitingCpn:Y,transitionReason:n,activeCpn:(k=this.yI)==null?void 0:k.eG().layoutId})}u===this.hU()&&(this.yI!==void 0&&(Xj("active adapter is not properly exited",this.slot,this.layout,{activeLayout:kA(this.yI.eG())}),pDA(this,this.yI,n)),L3B(this,n),K3M(this,this.cS.j.K))}}; g.M.L6=function(){return h0(this.hJ.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.M.startRendering=function(Y){this.xs(Y)&&(Y=this.cS,mq(Y.K===1,"tickStartRendering: state is not initial"),Y.K=2,this.yp())}; g.M.JQ=function(Y){d7B(Object.assign({},Mu(this),{cpn:Y}));var u=this.Ql.find(function(n){return n.eG().layoutId===Y}); u?(this.cS.K!==2&&(mVW(this.Dk,this.slot.slotId),mq(this.cS.K===2,"Expect started"),this.callback.wX(this.slot,this.layout)),this.PY(u),TO(this.sY,this.slot,u.eG())):tPM(this,Y)}; g.M.ql=function(Y,u){TVd(this,Y,u);var n=this.cM();n?r$B(n,Y,u)&&BVM(this,"skipped"):oIB(this,"onSkipRequested")}; g.M.dh=function(Y,u){var n;a:{if(n=this.cM()){if(MPu(this),sVc(n,Y,u)&&(Y=d4d(this,n,Y,u),Y!==void 0)){n={Hr:n,FMc:this.Ql[Y]};break a}}else oIB(this,"SkipWithAdPodSkip");n=void 0}if(Y=n)n=Y.Hr,u=Y.FMc,Y=n.eG().layoutId,this.L6()?LK(this,n,"skipped"):n.Yk(n.eG(),"skipped"),n=u.eG().layoutId,this.xk.get().finishSegmentByCpn(Y,n,$6("skipped",this.hJ))}; g.M.Ea=function(){Xj("Not used in html5_ssap_fix_layout_exit")}; g.M.Jb=function(Y){var u;(u=this.cM())==null||u.Jb(Y)}; g.M.j4=function(){Xj("Not used in html5_ssap_fix_layout_exit")}; g.M.a4=function(Y,u,n){var U;if(((U=this.cM())==null?void 0:U.eG().layoutId)!==u.layoutId)return void Xj("requestToExitSubLayout: wrong layout");BVM(this,n)};g.d(t8,g.e);g.M=t8.prototype;g.M.kV=function(){return this.B0.kV()}; g.M.eG=function(){return this.B0.eG()}; g.M.init=function(){var Y=yl(this.eG().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Y&&(Y.current=this);this.Os()}; g.M.Os=function(){this.B0.init()}; g.M.release=function(){var Y=yl(this.eG().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Y&&(Y.current=null);this.Sr()}; g.M.Sr=function(){this.B0.release()}; g.M.w5=function(){this.B0.w5()}; g.M.Uh=function(){this.B0.Uh()}; g.M.ql=function(Y,u){Xj("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.kV(),this.eG(),{requestingSlot:Y,requestingLayout:u})}; g.M.startRendering=function(Y){Y.layoutId!==this.eG().layoutId?this.callback.Ye(this.kV(),Y,new Ec("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.eG().layoutId+("and LayoutType: "+this.eG().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.LG.get().addListener(this),UE(this.P$(),this),fcY(this.bD.get()),M5m(this.hJ.get())||act(this.LG.get()),this.B0.startRendering(Y))}; g.M.Yk=function(Y,u){this.yZ=!0;this.B0.Yk(Y,u);this.LG.get().L.jI();ift(this.oH.get(),{});Y=k0(this.LG.get(),1);Y.isPaused()&&!g.V(Y,2)&&this.LG.get().playVideo();this.LG.get().removeListener(this);this.yZ&&this.B0.lI()}; g.M.wX=function(Y,u){this.B0.wX(Y,u)}; g.M.n0=function(Y,u,n){u.layoutId===this.eG().layoutId&&(this.yZ=!1,kF(this.P$(),this));this.B0.n0(Y,u,n);u.layoutId===this.eG().layoutId&&GA(this.bD.get())}; g.M.Fu=function(Y){this.B0.Fu(Y)}; g.M.Jb=function(Y){if(Y.state.isError()){var u,n;this.j4((u=Y.state.Jt)==null?void 0:u.errorCode,new Ec("There was a player error during this media layout.",{playerErrorCode:(n=Y.state.Jt)==null?void 0:n.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.B0.Jb(Y)}; g.M.j4=function(Y,u,n){this.B0.Oo(Y,u,n)}; g.M.onFullscreenToggled=function(Y){this.B0.onFullscreenToggled(Y)}; g.M.qr=function(Y){this.B0.qr(Y)}; g.M.pF=function(Y){this.B0.pF(Y)}; g.M.onVolumeChange=function(){this.B0.onVolumeChange()}; g.M.AD=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.Hd=function(){}; g.M.MY=function(){};g.M=Bv.prototype;g.M.kV=function(){return this.slot}; g.M.eG=function(){return this.layout}; g.M.init=function(){this.i6.get().addListener(this);this.LG.get().addListener(this);var Y=yl(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var u=yl(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.G){var n=this.i6.get().W7.slice(-1)[0];n!==void 0&&(Y=n.startSecs*1E3,u=(n.startSecs+n.Ox)*1E3)}this.vQ(Y,u);var U;n=(U=this.SG.get().T0)==null?void 0:U.clientPlaybackNonce;U=this.layout.M1.adClientDataEntry;oj(this.AJ.get(),{daiStateTrigger:{filledAdsDurationMs:u-Y,contentCpn:n, adClientData:U}});var k=this.i6.get();k=RYu(k.X,Y,u);k!==null&&(oj(this.AJ.get(),{daiStateTrigger:{filledAdsDurationMs:k-Y,contentCpn:n,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:U}}),this.xk.get().zs(k,u))}; g.M.release=function(){this.Sr();this.i6.get().removeListener(this);this.LG.get().removeListener(this)}; g.M.startRendering=function(){this.zC();this.callback.wX(this.slot,this.layout)}; g.M.Yk=function(Y,u){this.Vf(u);this.driftRecoveryMs!==null&&(cv(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(D47(this)-yl(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.LG.get().L.bl()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.n0(this.slot,this.layout,u)}; g.M.N3=function(){return!1}; g.M.l$=function(Y){var u=yl(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),n=yl(this.layout.clientMetadata,"metadata_type_layout_exit_ms");Y*=1E3;if(u<=Y&&Y0&&MV(this.K(),u)}; g.M.La=function(Y){this.J.delete(Y.slotId);for(var u=[],n=g.A(this.Ob.values()),U=n.next();!U.done;U=n.next()){U=U.value;var k=U.trigger;k instanceof xu&&k.triggeringSlotId===Y.slotId&&u.push(U)}u.length>0&&MV(this.K(),u)}; g.M.u9=function(Y){for(var u=[],n=g.A(this.Ob.values()),U=n.next();!U.done;U=n.next()){U=U.value;var k=U.trigger;k instanceof T4&&k.slotType===Y.slotType&&k.K!==Y.slotId&&u.push(U)}u.length>0&&MV(this.K(),u)}; g.M.Fa=function(Y){this.X.add(Y.slotId);for(var u=[],n=g.A(this.Ob.values()),U=n.next();!U.done;U=n.next())U=U.value,U.trigger instanceof Aa&&Y.slotId===U.trigger.triggeringSlotId&&u.push(U);u.length>0&&MV(this.K(),u)}; g.M.HM=function(Y){this.X.delete(Y.slotId);this.G.add(Y.slotId);for(var u=[],n=g.A(this.Ob.values()),U=n.next();!U.done;U=n.next())if(U=U.value,U.trigger instanceof cT)Y.slotId===U.trigger.triggeringSlotId&&u.push(U);else if(U.trigger instanceof ku){var k=U.trigger;Y.slotId===k.slotId&&this.j.has(k.triggeringLayoutId)&&u.push(U)}u.length>0&&MV(this.K(),u)}; g.M.Do=function(Y){for(var u=[],n=g.A(this.Ob.values()),U=n.next();!U.done;U=n.next())U=U.value,U.trigger instanceof vT&&Y.slotId===U.trigger.triggeringSlotId&&u.push(U);u.length>0&&MV(this.K(),u)}; g.M.yl=function(Y){for(var u=[],n=g.A(this.Ob.values()),U=n.next();!U.done;U=n.next())U=U.value,U.trigger instanceof Ra&&Y.slotId===U.trigger.triggeringSlotId&&u.push(U);u.length>0&&MV(this.K(),u)}; g.M.pk=function(Y,u){this.W.add(u.layoutId)}; g.M.Kk=function(Y,u){this.W.delete(u.layoutId)}; g.M.wX=function(Y,u){this.j.add(u.layoutId);for(var n=[],U=g.A(this.Ob.values()),k=U.next();!k.done;k=U.next())if(k=k.value,k.trigger instanceof mu)u.layoutId===k.trigger.triggeringLayoutId&&n.push(k);else if(k.trigger instanceof Zw){var m=k.trigger;Y.slotType===m.slotType&&u.layoutType===m.layoutType&&u.layoutId!==m.K&&n.push(k)}else k.trigger instanceof ku&&(m=k.trigger,u.layoutId===m.triggeringLayoutId&&this.G.has(m.slotId)&&n.push(k));n.length>0&&MV(this.K(),n)}; g.M.n0=function(Y,u,n){this.j.delete(u.layoutId);Y=[];for(var U=g.A(this.Ob.values()),k=U.next();!k.done;k=U.next())if(k=k.value,k.trigger instanceof PT&&u.layoutId===k.trigger.triggeringLayoutId&&Y.push(k),k.trigger instanceof X3){var m=k.trigger;u.layoutId===m.triggeringLayoutId&&m.K.includes(n)&&Y.push(k)}Y.length>0&&MV(this.K(),Y)}; g.M.Ma=function(){}; g.M.Wd=function(){this.G.clear()}; g.M.r9=function(){};g.d(rg,g.e);rg.prototype.Vd=function(Y,u,n,U){if(this.Ob.has(u.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(u instanceof nU))throw new F("Incorrect TriggerType: Tried to register trigger of type "+u.triggerType+" in CloseRequestedTriggerAdapter");this.Ob.set(u.triggerId,new wf(Y,u,n,U))}; rg.prototype.Qd=function(Y){this.Ob.delete(Y.triggerId)};g.d(sl,g.e);sl.prototype.Vd=function(Y,u,n,U){if(this.Ob.has(u.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(u instanceof uy||u instanceof MM))throw new F("Incorrect TriggerType: Tried to register trigger of type "+u.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ob.set(u.triggerId,new wf(Y,u,n,U))}; sl.prototype.Qd=function(Y){this.Ob.delete(Y.triggerId)}; sl.prototype.Wd=function(Y){for(var u=[],n=u.push,U=n.apply,k=[],m=g.A(this.Ob.values()),X=m.next();!X.done;X=m.next())X=X.value,X.trigger instanceof uy&&X.trigger.C6===Y&&k.push(X);U.call(n,u,g.Zu(k));n=u.push;U=n.apply;k=[];m=g.A(this.Ob.values());for(X=m.next();!X.done;X=m.next())X=X.value,X.trigger instanceof MM&&X.trigger.K!==Y&&k.push(X);U.call(n,u,g.Zu(k));u.length&&MV(this.K(),u)}; sl.prototype.r9=function(Y){for(var u=[],n=u.push,U=n.apply,k=[],m=g.A(this.Ob.values()),X=m.next();!X.done;X=m.next()){X=X.value;var S=X.trigger;S instanceof MM&&S.K===Y&&k.push(X)}U.call(n,u,g.Zu(k));u.length&&MV(this.K(),u)};g.d(dg,g.e);g.M=dg.prototype;g.M.Vd=function(Y,u,n,U){if(this.Ob.has(u.triggerId))throw new F("Tried to register duplicate trigger for slot.");var k="adtriggercuerange:"+u.triggerId;if(u instanceof NM)FwM(this,Y,u,n,U,k,u.K.start,u.K.end,u.C6,u.visible);else if(u instanceof Ut)FwM(this,Y,u,n,U,k,0x7ffffffffffff,0x8000000000000,u.C6,u.visible);else throw new F("Incorrect TriggerType: Tried to register trigger of type "+u.triggerType+" in CueRangeTriggerAdapter");}; g.M.Qd=function(Y){var u=this.Ob.get(Y.triggerId);u&&this.K0.get().removeCueRange(u.cueRangeId);this.Ob.delete(Y.triggerId)}; g.M.onCueRangeEnter=function(Y){var u=JWm(this,Y);if(u&&(u=this.Ob.get(u)))if(g.V(k0(this.LG.get()),32))this.K.add(u.cueRangeId);else{var n=u==null?void 0:u.xW.trigger;if(n instanceof NM||n instanceof Ut){if(fI(this.context.hJ.get())){var U=u.xW.slot,k=u.xW.layout,m={};this.context.Bc.bN("cre",(m.ca=u.xW.category,m.tt=n.triggerType,m.st=U.slotType,m.lt=k==null?void 0:k.layoutType,m.cid=Y,m))}MV(this.j(),[u.xW])}}}; g.M.onCueRangeExit=function(Y){(Y=JWm(this,Y))&&(Y=this.Ob.get(Y))&&this.K.delete(Y.cueRangeId)}; g.M.Jb=function(Y){if(SZ(Y,16)<0){Y=g.A(this.K);for(var u=Y.next();!u.done;u=Y.next())this.onCueRangeEnter(u.value,!0);this.K.clear()}}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.wX=function(){}; g.M.n0=function(){}; g.M.Ma=function(){}; g.M.Fu=function(){}; g.M.onFullscreenToggled=function(){}; g.M.qr=function(){}; g.M.AD=function(){}; g.M.pF=function(){}; g.M.onVolumeChange=function(){}; g.M.Hd=function(){}; g.M.MY=function(){};g.d(Gv,g.e);g.M=Gv.prototype; g.M.Vd=function(Y,u,n,U){if(this.j.has(u.triggerId)||this.X.has(u.triggerId))throw new F("Tried to re-register the trigger.");Y=new wf(Y,u,n,U);if(Y.trigger instanceof Q$)this.j.set(Y.trigger.triggerId,Y);else if(Y.trigger instanceof Sz)this.X.set(Y.trigger.triggerId,Y);else throw new F("Incorrect TriggerType: Tried to register trigger of type "+Y.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.j.has(Y.trigger.triggerId)&&Y.slot.slotId===this.K&&MV(this.G(),[Y])}; g.M.Qd=function(Y){this.j.delete(Y.triggerId);this.X.delete(Y.triggerId)}; g.M.QX=function(Y){Y=Y.slotId;if(this.K!==Y){var u=[];this.K!=null&&u.push.apply(u,g.Zu(qcM(this.X,this.K)));Y!=null&&u.push.apply(u,g.Zu(qcM(this.j,Y)));this.K=Y;u.length&&MV(this.G(),u)}}; g.M.VW=function(){}; g.M.JQ=function(){};g.d(AR,g.e);g.M=AR.prototype;g.M.Vd=function(Y,u,n,U){if(this.Ob.has(u.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(u instanceof rf))throw new F("Incorrect TriggerType: Tried to register trigger of type "+u.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ob.set(u.triggerId,new wf(Y,u,n,U))}; g.M.Qd=function(Y){this.Ob.delete(Y.triggerId)}; g.M.wX=function(){}; g.M.n0=function(){}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){};g.d(jA,g.e);g.M=jA.prototype;g.M.Ma=function(Y,u){for(var n=[],U=g.A(this.Ob.values()),k=U.next();!k.done;k=U.next()){k=k.value;var m=k.trigger;m.opportunityType===Y&&(m.associatedSlotId&&m.associatedSlotId!==u||n.push(k))}n.length&&MV(this.K(),n)}; g.M.Vd=function(Y,u,n,U){if(this.Ob.has(u.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(u instanceof mnd))throw new F("Incorrect TriggerType: Tried to register trigger of type "+u.triggerType+" in OpportunityEventTriggerAdapter");this.Ob.set(u.triggerId,new wf(Y,u,n,U))}; g.M.Qd=function(Y){this.Ob.delete(Y.triggerId)}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.wX=function(){}; g.M.n0=function(){};g.d(K2,g.e);g.M=K2.prototype;g.M.Vd=function(Y,u,n,U){Y=new wf(Y,u,n,U);if(u instanceof CU||u instanceof iy||u instanceof fU||u instanceof df||u instanceof Pnu){if(this.Ob.has(u.triggerId))throw new F("Tried to register duplicate trigger for slot.");this.Ob.set(u.triggerId,Y)}else throw new F("Incorrect TriggerType: Tried to register trigger of type "+u.triggerType+" in PrefetchTriggerAdapter");}; g.M.Qd=function(Y){this.Ob.delete(Y.triggerId)}; g.M.Vj=function(Y){var u=Y.slotFulfillmentTriggers.find(function(n){return n instanceof CU}); u&&(p2(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",u.breakDurationMs,new Set([Y.slotId]),!0),Rj(this.AJ.get(),"ads_css","sid."+Y.slotId+";bd."+u.breakDurationMs))}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.wX=function(){}; g.M.n0=function(){}; g.M.Ma=function(){}; g.M.N3=function(Y){var u=this;if(!this.K)return Xj("Unexpected cue break before fetch instructions are available"),!1;this.j&&this.j.stop();this.J&&g.OQ(this.J);var n=ukd(this,Y);if(!n){var U=$HY(this),k=this.S!==void 0&&Date.now()<=this.S+1E4;Rj(this.AJ.get(),"ads_ncfs","cid."+Y.identifier+";cd."+Y.Ox.toFixed(3)+";ccs."+k+";cfa."+this.G+";bdc."+U.length+";"+U.slice(0,6).map(function(m){return";bd."+m}).join("")); return k?(uz(this.gw,this.K,Y),!0):!1}(U=yl(n.slot.clientMetadata,"metadata_type_triggering_cue_point"))?U.current=Y:Xj("Expected triggering cue point ref to be available",n.slot);(new g.Vp(function(){var m=n.trigger,X=n.slot;p2(u,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",m.breakDurationMs,new Set,!0);p2(u,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",m.breakDurationMs,new Set,!1);for(var S=0,C=g.A(u.Ob.values()),f=C.next();!f.done;f=C.next()){f=f.value;var Q=f.trigger; f.slot.slotId===X.slotId&&(u.Ob.delete(Q.triggerId),S++)}Rj(u.AJ.get(),"ads_csf","sid."+X.slotId+";bd."+m.breakDurationMs+";dt."+S)},10)).start(); return!0}; g.M.l$=function(){}; g.M.Wd=function(Y){var u=this;this.G=!1;this.S=Date.now();if(this.K&&this.K.contentCpn!==Y)Xj("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:Y,fetchInstructionsCpn:this.K.contentCpn}),L2(this);else{this.X=new g.Vp(function(){if(u.G)delete u.X;else{var U=u.LG.get().getGetAdBreakContext(),k;if(Number(U==null?void 0:(k=U.livePlaybackPosition)==null?void 0:k.utcTimeMillis)>0)delete u.X,YEA(u);else{var m;(m=u.X)==null||m.start()}}},200); var n;(n=this.X)==null||n.start()}}; g.M.r9=function(Y){this.K&&this.K.contentCpn!==Y&&Xj("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:Y,fetchInstructionsCpn:this.K.contentCpn},!0);L2(this)}; g.M.QQ=function(Y){var u=this;if(this.K)Xj("Unexpected multiple fetch instructions for the current content");else{this.K=Y;Y=UVt(Y);this.j=new g.Vp(function(){YEA(u)},Y?Y:6E5); this.j.start();this.J=new g.Vp(function(){u.K&&(u.j&&(u.j.stop(),u.j.start()),aiS(u,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},nFW(this.K)); Y=this.LG.get().getCurrentTimeSec(1,!1);for(var n=g.A(this.i6.get().W7),U=n.next();!U.done;U=n.next())U=U.value,Rj(this.AJ.get(),"nocache","ct."+Date.now()+";cmt."+Y+";d."+U.Ox.toFixed(3)+";tw."+(U.startSecs-Y)+";cid."+U.identifier+";")}}; g.M.nG=function(){g.e.prototype.nG.call(this);L2(this)};g.d(tR,g.e);g.M=tR.prototype;g.M.Vd=function(Y,u,n,U){if(this.Ob.has(u.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(u instanceof ha))throw new F("Incorrect TriggerType: Tried to register trigger of type "+u.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ob.set(u.triggerId,new wf(Y,u,n,U));Y=this.K.has(u.triggeringLayoutId)?this.K.get(u.triggeringLayoutId):new Set;Y.add(u);this.K.set(u.triggeringLayoutId,Y)}; g.M.Qd=function(Y){this.Ob.delete(Y.triggerId);if(!(Y instanceof ha))throw new F("Incorrect TriggerType: Tried to unregister trigger of type "+Y.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var u=this.j.get(Y.triggerId);u&&(u.dispose(),this.j.delete(Y.triggerId));if(u=this.K.get(Y.triggeringLayoutId))u.delete(Y),u.size===0&&this.K.delete(Y.triggeringLayoutId)}; g.M.Vj=function(){}; g.M.La=function(){}; g.M.u9=function(){}; g.M.Fa=function(){}; g.M.HM=function(){}; g.M.Do=function(){}; g.M.yl=function(){}; g.M.pk=function(){}; g.M.Kk=function(){}; g.M.Ma=function(){}; g.M.wX=function(Y,u){var n=this;if(this.K.has(u.layoutId)){Y=this.K.get(u.layoutId);Y=g.A(Y);var U=Y.next();for(u={};!U.done;u={yA:void 0},U=Y.next())u.yA=U.value,U=new g.Vp(function(k){return function(){var m=n.Ob.get(k.yA.triggerId);MV(n.X(),[m])}}(u),u.yA.durationMs),U.start(),this.j.set(u.yA.triggerId,U)}}; g.M.n0=function(){};g.d(B3,g.e);B3.prototype.Vd=function(Y,u,n,U){if(this.Ob.has(u.triggerId))throw new F("Tried to register duplicate trigger for slot.");if(!(u instanceof $q))throw new F("Incorrect TriggerType: Tried to register trigger of type "+u.triggerType+" in VideoTransitionTriggerAdapter.");this.Ob.set(u.triggerId,new wf(Y,u,n,U))}; B3.prototype.Qd=function(Y){this.Ob.delete(Y.triggerId)};RY.prototype.gF=function(Y){return Y.kind==="AD_PLACEMENT_KIND_START"};g.d(lz,g.e);g.M=lz.prototype;g.M.logEvent=function(Y){this.g5(Y)}; g.M.pU=function(Y,u,n){this.g5(Y,void 0,void 0,void 0,u,void 0,void 0,void 0,u.adSlotLoggingData,void 0,void 0,n)}; g.M.cC=function(Y,u,n,U){this.g5(Y,void 0,void 0,void 0,u,n?n:void 0,void 0,void 0,u.adSlotLoggingData,n?n.adLayoutLoggingData:void 0,void 0,U);u=Bh().resolve(j6(U0))==null?void 0:kH();Y=u==null?void 0:u.adsSeenHotConfig;u=u==null?void 0:u.adsHotConfig;(Y==null?0:Y.logOnAdsSeen)&&(u==null?0:u.webEnablePremiumAdsSeenLogging)&&s_e(this,n?n:void 0,U)}; g.M.hw=function(Y,u,n,U){h0(this.hJ.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Y,"trigger:",n,"slot:",u,"layout:",U);qH(this.K.get())&&this.g5(Y,void 0,void 0,void 0,u,U?U:void 0,void 0,n,u.adSlotLoggingData,U?U.adLayoutLoggingData:void 0)}; g.M.v6=function(Y,u,n,U,k){this.g5(Y,u,n,U,void 0,void 0,void 0,void 0,void 0,void 0,void 0,k)}; g.M.z_=function(Y,u,n,U){this.g5("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,n,U,void 0,void 0,n.adSlotLoggingData,U?U.adLayoutLoggingData:void 0,{errorType:Y,errorMessage:u})}; g.M.g5=function(Y,u,n,U,k,m,X,S,C,f,Q,N){var Z=this;N=N===void 0?0:N;h0(this.hJ.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Y,"slot:",k,"layout:",m,"ping:",X,"Opportunity:",{opportunityType:u,associatedSlotId:n,qFF:U,D2z:S,adSlotLoggingData:C,adLayoutLoggingData:f});try{var T=function(){if(!Z.hJ.get().L.Y().V("html5_disable_client_tmp_logs")&&Y!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Y||Xj("Empty PACF event type",k,m);var r=qH(Z.K.get()),K={eventType:Y,eventOrder:++Z.eventCount},L={}; k&&(L.slotData=JW(r,k));m&&(L.layoutData=hTW(r,m));X&&(L.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:X.K.serializedAdPingMetadata,pingIndex:X.index});S&&(L.triggerData=FU(S.trigger,S.category));u&&(L.opportunityData=whM(r,u,n,U));r={organicPlaybackContext:{contentCpn:yD(Z.SG.get(),1).clientPlaybackNonce}};r.organicPlaybackContext.isLivePlayback=yD(Z.SG.get(),1).W$;var R;r.organicPlaybackContext.isMdxPlayback=(R=yD(Z.SG.get(),1))==null?void 0:R.isMdxPlayback; var c;if((c=yD(Z.SG.get(),1))==null?0:c.daiEnabled)r.organicPlaybackContext.isDaiContent=!0;var x;if(R=(x=yD(Z.SG.get(),2))==null?void 0:x.clientPlaybackNonce)r.adVideoPlaybackContext={adVideoCpn:R};r&&(L.externalContext=r);K.adClientData=L;C&&(K.serializedSlotAdServingData=C.serializedSlotAdServingDataEntry);f&&(K.serializedAdServingData=f.serializedAdServingDataEntry);Q&&(K.errorInfo=Q);g.ka("adsClientStateChange",{adsClientEvent:K})}}; N&&N>0?g.VT(g.FJ(),function(){return T()},N):T()}catch(r){h0(this.hJ.get(),"html5_log_pacf_logging_errors")&&g.VT(g.FJ(),function(){Xj(r instanceof Error?r:String(r),k,m,{pacf_message:"exception during pacf logging"})})}};var RAg=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.d(hR,lz);g.M=hR.prototype; g.M.pU=function(Y,u,n){lz.prototype.pU.call(this,Y,u,n);fI(this.hJ.get())&&(n={},this.context.Bc.bN("pacf",(n.et=Y,n.st=u.slotType,n.si=u.slotId,n)))}; g.M.cC=function(Y,u,n,U){var k=RAg.has(Y);lz.prototype.cC.call(this,Y,u,n,U);fI(this.hJ.get(),k)&&(U={},this.context.Bc.bN("pacf",(U.et=Y,U.st=u.slotType,U.si=u.slotId,U.lt=n==null?void 0:n.layoutType,U.li=n==null?void 0:n.layoutId,U.p_ac=n==null?void 0:n.layoutId,U)))}; g.M.v6=function(Y,u,n,U,k){lz.prototype.v6.call(this,Y,u,n,U,k);fI(this.hJ.get())&&(n={},this.context.Bc.bN("pacf",(n.et=Y,n.ot=u,n.ss=U==null?void 0:U.length,n)))}; g.M.hw=function(Y,u,n,U){lz.prototype.hw.call(this,Y,u,n,U);if(fI(this.hJ.get())){var k={};this.context.Bc.bN("pacf",(k.et=Y,k.tt=n.trigger.triggerType,k.tc=n.category,k.st=u.slotType,k.si=u.slotId,k.lt=U==null?void 0:U.layoutType,k.li=U==null?void 0:U.layoutId,k.p_ac=U==null?void 0:U.layoutId,k))}}; g.M.z_=function(Y,u,n,U){lz.prototype.z_.call(this,Y,u,n,U);if(fI(this.hJ.get(),!0)){var k={};this.context.Bc.bN("perror",(k.ert=Y,k.erm=u,k.st=n.slotType,k.si=n.slotId,k.lt=U==null?void 0:U.layoutType,k.li=U==null?void 0:U.layoutId,k.p_ac=U==null?void 0:U.layoutId,k))}}; g.M.g5=function(Y,u,n,U,k,m,X,S,C,f,Q){var N=this.hJ.get();g.Zp(N.L.Y())?(N=this.hJ.get(),N=g.YF(N.L.Y().experiments,"H5_async_logging_delay_ms")):N=void 0;lz.prototype.g5.call(this,Y,u,n,U,k,m,X,S,C,f,Q,N)};wg.prototype.clear=function(){this.K.clear()};W3.prototype.state=function(){return this.K==="fulfilled"?{state:"fulfilled",value:this.result}:this.K==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; W3.prototype.G=function(Y){bz(Y)||eA(Y)?H3(IY(Y),this.G.bind(this),this.reject.bind(this)):(this.K="fulfilled",this.result=Y,El(this))}; W3.prototype.reject=function(Y){this.K="rejected";this.error=Y;El(this)}; var eA=fP(function(Y){return zXG(Y)?Y instanceof W3:!1});Object.freeze({gIw:function(Y){var u=qb(Y);return H3(JR(u,function(n){return u[n].K==="rejected"}),function(n){return Number.isNaN(n)?u.map(function(U){return U.state().value}):u[n]})}, MY2:function(Y){var u=qb(Y);return H3(JR(u),function(){return u.map(function(n){return n.state()})})}, J6g:function(Y){var u=qb(Y);return H3(JR(u,function(n){return u[n].K==="fulfilled"}),function(n){return Number.isNaN(n)?zv(new AggregateError(u.map(function(U){return U.state().reason}))):u[n].state().value})}, VYa:function(Y){var u=qb(Y);return H3(JR(u,function(){return!0}),function(n){return u[n]})}});var aY=window.SAW||"es-419";nq.prototype.E8=function(Y){this.client=Y}; nq.prototype.K=function(){this.clear();this.csn=g.sC()}; nq.prototype.clear=function(){this.X.clear();this.j.clear();this.G.clear();this.csn=null};kp.prototype.E8=function(Y){g.O_(Ud().E8).bind(Ud())(Y)}; kp.prototype.clear=function(){g.O_(Ud().clear).bind(Ud())()};g.M=mx.prototype;g.M.E8=function(Y){this.client=Y}; g.M.b7=function(Y,u){var n=this;u=u===void 0?{}:u;g.O_(function(){var U,k,m,X=((U=g.z(Y==null?void 0:Y.commandMetadata,g.L7))==null?void 0:U.rootVe)||((k=g.z(Y==null?void 0:Y.commandMetadata,Ou$))==null?void 0:(m=k.screenVisualElement)==null?void 0:m.uiType);if(X){U=g.z(Y==null?void 0:Y.commandMetadata,iiQ);if(U==null?0:U.parentTrackingParams){var S=g.Tn(U.parentTrackingParams);if(U.parentCsn)var C=U.parentCsn}else u.clickedVisualElement?S=u.clickedVisualElement:Y.clickTrackingParams&&(S=g.Tn(Y.clickTrackingParams)); a:{U=g.z(Y,g.pk);k=g.z(Y,X_g);if(U){if(k=pxm(U,"VIDEO")){U={token:k,videoId:U.videoId};break a}}else if(k&&(U=pxm(k,"PLAYLIST"))){U={token:U,playlistId:k.playlistId};break a}U=void 0}u=Object.assign({},{cttAuthInfo:U,parentCsn:C},u);if(g.rL("expectation_logging")){var f;u.loggingExpectations=((f=g.z(Y==null?void 0:Y.commandMetadata,Ou$))==null?void 0:f.loggingExpectations)||void 0}P5(n,X,S,u)}else g.Br(new g.zP("Error: Trying to create a new screen without a rootVeType",Y))})()}; g.M.clickCommand=function(Y,u,n){Y=Y.clickTrackingParams;n=n===void 0?0:n;Y?(n=g.sC(n===void 0?0:n))?(Hr(this.client,n,g.Tn(Y),u),u=!0):u=!1:u=!1;return u}; g.M.stateChanged=function(Y,u,n){this.visualElementStateChanged(g.Tn(Y),u,n===void 0?0:n)}; g.M.visualElementStateChanged=function(Y,u,n){n=n===void 0?0:n;n===0&&this.j.has(n)?this.Z.push([Y,u]):vFS(this,Y,u,n)};Qu.prototype.fetch=function(Y,u,n){var U=this,k=xV7(Y,u,n);return new Promise(function(m,X){function S(){if(n==null?0:n.NO)try{var f=U.handleResponse(Y,k.status,k.response,n);m(f)}catch(Q){X(Q)}else m(U.handleResponse(Y,k.status,k.response,n))} k.onerror=S;k.onload=S;var C;k.send((C=u.body)!=null?C:null)})}; Qu.prototype.handleResponse=function(Y,u,n,U){n=n.replace(")]}'","");try{var k=JSON.parse(n)}catch(m){g.Br(new g.zP("JSON parsing failed after XHR fetch",Y,u,n));if((U==null?0:U.NO)&&n)throw new g.bS(1,"JSON parsing failed after XHR fetch");k={}}u!==200&&(g.Br(new g.zP("XHR API fetch failed",Y,u,n)),k=Object.assign({},k,{errorMetadata:{status:u}}));return k};NT.getInstance=function(){var Y=g.nR("ytglobal.storage_");Y||(Y=new NT,g.Y$("ytglobal.storage_",Y));return Y}; NT.prototype.estimate=function(){var Y,u,n;return g.l(function(U){Y=navigator;return((u=Y.storage)==null?0:u.estimate)?U.return(Y.storage.estimate()):((n=Y.webkitTemporaryStorage)==null?0:n.queryUsageAndQuota)?U.return(lpe()):U.return()})}; g.Y$("ytglobal.storageClass_",NT);nX.prototype.yd=function(Y){this.handleError(Y)}; nX.prototype.logEvent=function(Y,u){switch(Y){case "IDB_DATA_CORRUPTED":g.rL("idb_data_corrupted_killswitch")||this.K("idbDataCorrupted",u);break;case "IDB_UNEXPECTEDLY_CLOSED":this.K("idbUnexpectedlyClosed",u);break;case "IS_SUPPORTED_COMPLETED":g.rL("idb_is_supported_completed_killswitch")||this.K("idbIsSupportedCompleted",u);break;case "QUOTA_EXCEEDED":wxc(this,u);break;case "TRANSACTION_ENDED":this.X&&Math.random()<=.1&&this.K("idbTransactionEnded",u);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":Y= Object.assign({},u,{hasWindowUnloaded:this.j}),this.K("idbTransactionAborted",Y)}};var aM={},IwB=g.FQ("yt-player-local-media",{CQ:(aM.index={aA:2},aM.media={aA:2},aM.captions={aA:5},aM),shared:!1,upgrade:function(Y,u){u(2)&&(g.pX(Y,"index"),g.pX(Y,"media"));u(5)&&g.pX(Y,"captions");u(6)&&(LX(Y,"metadata"),LX(Y,"playerdata"))}, version:5});var DqL={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},$J;a:{var YD=g.Wq();YD=YD.toLowerCase();if(g.RK(YD,"android")){var xqy=YD.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(xqy){var l1$=parseFloat(xqy[1]);if(l1$<100){$J=l1$;break a}}var hAX=YD.match("("+Object.keys(DqL).join("|")+")");$J=hAX?DqL[hAX[0]]:0}else $J=void 0}var Xh=$J,m_=Xh>=0;var OkM=window;var W2u=h5(function(){var Y,u;return(u=(Y=window).matchMedia)==null?void 0:u.call(Y,"(prefers-reduced-motion: reduce)").matches});var Z5;g.i6=new Th;Z5=0;var GN=HTc()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.gD?!0:!1;var MT={gz:function(Y){Y[P[22]]()}, r1:function(Y,u){Y[P[21]](0,u)}, yW:function(Y,u){var n=Y[0];Y[0]=Y[u%Y[P[0]]];Y[u%Y[P[0]]]=n}};var hau={iag:"adunit",n8w:"detailpage",Fmq:"editpage",Wmq:"embedded",UIz:"leanback",hig:"previewpage",jAq:"profilepage",DJ:"unplugged",fpJ:"playlistoverview",N9V:"sponsorshipsoffer",ziV:"shortspage",Kaw:"handlesclaiming",Laa:"immersivelivepage",KmW:"creatormusic",O1J:"immersivelivepreviewpage",MhV:"admintoolyurt",pDF:"shortsaudiopivot",tpZ:"consumption"};var VlM=2592E3;var uX,wi$,wB;uX={};g.pq=(uX.STOP_EVENT_PROPAGATION="html5-stop-propagation",uX.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",uX.IV_DRAWER_OPEN="ytp-iv-drawer-open",uX.MAIN_VIDEO="html5-main-video",uX.VIDEO_CONTAINER="html5-video-container",uX.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",uX.HOUSE_BRAND="house-brand",uX);wi$={};wB=(wi$.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",wi$.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",wi$);var Ufc={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var PhA={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},SRY={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"},mDd={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var XIc={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.B5.prototype.getLanguageInfo=function(){return this.dX}; g.B5.prototype.getXtags=function(){if(!this.xtags){var Y=this.id.split(";");Y.length>1&&(this.xtags=Y[1])}return this.xtags}; g.B5.prototype.toString=function(){return this.dX.name}; g.B5.prototype.getLanguageInfo=g.B5.prototype.getLanguageInfo;os.prototype.equals=function(Y){return this.j===Y.j&&this.K===Y.K&&this.X===Y.X&&this.reason===Y.reason&&(!v5||this.NF===Y.NF)}; os.prototype.isLocked=function(){return this.X&&!!this.j&&this.j===this.K}; os.prototype.compose=function(Y){if(Y.X&&Rs(Y))return MW;if(Y.X||Rs(this))return Y;if(this.X||Rs(Y))return this;var u=this.j&&Y.j?Math.max(this.j,Y.j):this.j||Y.j,n=this.K&&Y.K?Math.min(this.K,Y.K):this.K||Y.K;u=Math.min(u,n);var U=0;v5&&(U=this.NF!==0&&Y.NF!==0?Math.min(this.NF,Y.NF):this.NF===0?Y.NF:this.NF);return v5&&u===this.j&&n===this.K&&U===this.NF||!v5&&u===this.j&&n===this.K?this:v5?new os(u,n,!1,n===this.K&&U===this.NF?this.reason:Y.reason,U):new os(u,n,!1,n===this.K?this.reason:Y.reason)}; os.prototype.G=function(Y){return!Y.video||v5&&this.NF!==0&&this.NF=0}; g.M.oX=function(){var Y=this.segments[this.segments.length-1];return Y?Y.endTime:NaN}; g.M.zc=function(){return this.segments[0].startTime}; g.M.Mi=function(){return this.segments.length}; g.M.fY=function(){return 0}; g.M.x$=function(Y){return(Y=this.jq(Y))?Y.Wz:-1}; g.M.Px=function(Y){return(Y=this.hZ(Y))?Y.sourceURL:""}; g.M.getStartTime=function(Y){return(Y=this.hZ(Y))?Y.startTime:0}; g.M.FB=function(Y){return this.getStartTime(Y)+this.getDuration(Y)}; g.M.NT=Ye(1);g.M.isLoaded=function(){return this.segments.length>0}; g.M.hZ=function(Y){if(this.K&&this.K.Wz===Y)return this.K;Y=g.g$(this.segments,new uw(Y,0,0,0,""),function(u,n){return u.Wz-n.Wz}); return this.K=Y>=0?this.segments[Y]:null}; g.M.jq=function(Y){if(this.K&&this.K.startTime<=Y&&Y=0?this.segments[Y]:this.segments[Math.max(0,-Y-2)]}; g.M.append=function(Y){if(Y.length)if(Y=g.RL(Y),this.segments.length){var u=this.segments.length?g.MX(this.segments).endTime:0,n=Y[0].Wz-this.iD();n>1&&KWM(this.segments);for(n=n>0?0:-n+1;nY.Wz&&this.index.qW()<=Y.Wz+1}; g.M.update=function(Y,u,n){this.index.append(Y);WQu(this.index,n);Y=this.index;Y.j=u;Y.X="update"}; g.M.qa=function(){return this.o4()?!0:qz.prototype.qa.call(this)}; g.M.J9=function(Y,u){var n=this.index.Px(Y),U=this.index.getStartTime(Y),k=this.index.getDuration(Y),m;u?k=m=0:m=this.info.NF>0?this.info.NF*k:1E3;return new Cy([new ny(3,this,void 0,"liveCreateRequestInfoForSegment",Y,U,k,0,m,!u)],n)}; g.M.JE=function(){return this.o4()?0:this.initRange.length}; g.M.Fz=function(){return!1};rz.prototype.update=function(Y){var u=void 0;this.j&&(u=this.j);var n=new rz,U=Array.from(Y.getElementsByTagName("S"));if(U.length){var k=+ZL(Y,"timescale")||1,m=(+U[0].getAttribute("t")||0)/k,X=+ZL(Y,"startNumber")||0;n.G=m;var S=u?u.startSecs+u.Ox:0,C=Date.parse(Rqe(ZL(Y,"yt:segmentIngestTime")))/1E3;n.J=Y.parentElement.tagName==="SegmentTemplate";n.J&&(n.S=ZL(Y,"media"));Y=u?X-u.Wz:1;n.W=Y>0?0:-Y+1;Y=g.A(U);for(U=Y.next();!U.done;U=Y.next()){U=U.value;for(var f=+U.getAttribute("d")/k,Q=(+U.getAttribute("yt:sid")|| 0)/k,N=+U.getAttribute("r")||0,Z=0;Z<=N;Z++)if(u&&X<=u.Wz)X++;else{var T=new cne(X,S,f,C+Q,m);n.K.push(T);var r=U;var K=k,L=T.startSecs;T=r.getAttribute("yt:cuepointTimeOffset");var R=r.getAttribute("yt:cuepointDuration");if(T&&R){T=Number(T);L=-T/K+L;K=Number(R)/K;R=r.getAttribute("yt:cuepointContext")||null;var c=r.getAttribute("yt:cuepointIdentifier")||"";r=r.getAttribute("yt:cuepointEvent")||"";r=new Qv(L,K,R,c,eAu[r]||"unknown",T)}else r=null;r&&n.X.push(r);X++;S+=f;m+=f;C+=f+Q}}n.K.length&& (n.j=g.MX(n.K))}this.W=n.W;this.j=n.j||this.j;g.DJ(this.K,n.K);g.DJ(this.X,n.X);this.J=n.J;this.S=n.S;this.G===-1&&(this.G=n.getStreamTimeOffset())}; rz.prototype.getStreamTimeOffset=function(){return this.G===-1?0:this.G};g.d(sT,g.n4);g.M=sT.prototype;g.M.yG=function(){return this.D0}; g.M.Fh=function(Y,u){Y=dz(this,Y);return Y>=0&&(u||!this.segments[Y].pending)}; g.M.qW=function(){return this.UK?this.segments.length?this.jq(this.zc()).Wz:-1:g.n4.prototype.qW.call(this)}; g.M.zc=function(){if(this.H4)return 0;if(!this.UK)return g.n4.prototype.zc.call(this);if(!this.segments.length)return 0;var Y=Math.max(g.MX(this.segments).endTime-this.tI,0);return this.qA>0&&this.jq(Y).Wz0)return this.b5/1E3;if(!this.segments.length)return g.n4.prototype.oX.call(this);var Y=this.iD();if(!this.UK||Y<=this.segments[this.segments.length-1].Wz)Y=this.segments[this.segments.length-1];else{var u=this.segments[this.segments.length-1];Y=new uw(Y,Math.max(0,u.startTime-(u.Wz-Y)*this.D0),this.D0,0,"sq/"+Y,void 0,void 0,!0)}return this.H4?Math.min(this.tI,Y.endTime):Y.endTime}; g.M.Mi=function(){return this.UK?this.segments.length?this.iD()-this.qW()+1:0:g.n4.prototype.Mi.call(this)}; g.M.iD=function(){var Y=Math.min(this.fF,Math.max(g.n4.prototype.iD.call(this),this.EA)),u=this.tI*1E3;u=this.b5>0&&this.b50&&this.EA>0&&!u&&(u=this.jq(this.tI))&&(Y=Math.min(u.Wz-1,Y));return Y}; g.M.I2=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.M.P6=function(Y){var u=dz(this,Y.Wz);if(u>=0)this.segments[u]=Y;else if(this.segments.splice(-(u+1),0,Y),this.rd&&Y.Wz%(300/this.D0)===0){var n=this.segments[0].Wz,U=Math.floor(this.rd/this.D0);Y=Y.Wz-U;u=-(u+1)-U;u>0&&Y>n&&(this.segments=this.segments.slice(u))}}; g.M.oE=function(){return this.EA}; g.M.wK=function(Y){return M2?!this.j&&Y>=0&&this.iD()<=Y:g.n4.prototype.wK.call(this,Y)}; g.M.jq=function(Y){if(!this.UK)return g.n4.prototype.jq.call(this,Y);if(!this.segments.length)return null;var u=this.segments[this.segments.length-1];if(Y=u.endTime)u=u.Wz+Math.floor((Y-u.endTime)/this.D0+1);else{u=Eq(this.segments,function(U){return Y=U.endTime?1:0}); if(u>=0)return this.segments[u];var n=-(u+1);u=this.segments[n-1];n=this.segments[n];u=Math.floor((Y-u.endTime)/((n.startTime-u.endTime)/(n.Wz-u.Wz-1))+1)+u.Wz}return this.hZ(u)}; g.M.hZ=function(Y){if(!this.UK)return g.n4.prototype.hZ.call(this,Y);if(!this.segments.length)return null;var u=dz(this,Y);if(u>=0)return this.segments[u];var n=-(u+1);u=this.D0;if(n===0)var U=Math.max(0,this.segments[0].startTime-(this.segments[0].Wz-Y)*u);else n===this.segments.length?(U=this.segments[this.segments.length-1],U=U.endTime+(Y-U.Wz-1)*u):(U=this.segments[n-1],u=this.segments[n],u=(u.startTime-U.endTime)/(u.Wz-U.Wz-1),U=U.endTime+(Y-U.Wz-1)*u);return new uw(Y,U,u,0,"sq/"+Y,void 0,void 0, !0)}; var M2=!1;g.d(GH,ij);g.M=GH.prototype;g.M.Uu=function(){return!0}; g.M.qa=function(){return!0}; g.M.Mx=function(Y){return this.A1()&&Y.X&&!Y.G||!Y.K.index.wK(Y.Wz)}; g.M.fn=function(){}; g.M.h6=function(Y,u){return typeof Y!=="number"||isFinite(Y)?ij.prototype.h6.call(this,Y,u===void 0?!1:u):new Cy([new ny(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.k8,void 0,this.k8*this.info.NF)],"")}; g.M.J9=function(Y,u){var n=n===void 0?!1:n;if(this.index.Fh(Y))return ij.prototype.J9.call(this,Y,u);var U=this.index.getStartTime(Y),k=Math.round(this.k8*this.info.NF),m=this.k8;u&&(m=k=0);return new Cy([new ny(n?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",Y,U,m,void 0,k,!u)],Y>=0?"sq/"+Y:"")};g.d(AU,qz);g.M=AU.prototype;g.M.GG=function(){return!1}; g.M.A1=function(){return!1}; g.M.Uu=function(){return!1}; g.M.fn=function(){return new Cy([new ny(1,this,void 0,"otfInit")],this.J)}; g.M.Ay=function(){return null}; g.M.GW=function(Y){this.Mx(Y);return bIM(this,XL(Y),!1)}; g.M.h6=function(Y,u){u=u===void 0?!1:u;Y=this.index.x$(Y);u&&(Y=Math.min(this.index.iD(),Y+1));return bIM(this,Y,!0)}; g.M.UJ=function(Y){Y.info.type===1&&(this.K||(this.K=Pl(Y.j)),Y.K&&Y.K.uri==="http://youtube.com/streaming/otf/durations/112015"&&IFu(this,Y.K))}; g.M.Mx=function(Y){return Y.X===0?!0:this.index.iD()>Y.Wz&&this.index.qW()<=Y.Wz+1}; g.M.JE=function(){return 0}; g.M.Fz=function(){return!1};g.jW.prototype.info=function(){}; g.jW.prototype.debug=function(){}; g.jW.prototype.K=function(Y){Ky.apply(null,[5,this.tag,Y].concat(g.Zu(g.It.apply(1,arguments))))}; var ETA=new Map,V3A=new Map,HIW=new function(){var Y=this;this.K=new Map;this.IH={BMz:function(){return Y.K}}};g.M=g.RC.prototype;g.M.Fh=function(Y){return Y<=this.iD()}; g.M.fY=function(Y){return this.offsets[Y]}; g.M.getStartTime=function(Y){return this.startTicks[Y]/this.K}; g.M.FB=function(Y){return this.getStartTime(Y)+this.getDuration(Y)}; g.M.NT=Ye(0);g.M.Ia=function(){return NaN}; g.M.getDuration=function(Y){Y=this.T8(Y);return Y>=0?Y/this.K:-1}; g.M.T8=function(Y){return Y+1=0}; g.M.oX=function(){return this.j?this.startTicks[this.count]/this.K:NaN}; g.M.zc=function(){return 0}; g.M.Mi=function(){return this.count}; g.M.Px=function(){return""}; g.M.x$=function(Y){Y=g.g$(this.startTicks.subarray(0,this.count),Y*this.K);return Y>=0?Y:Math.max(0,-Y-2)}; g.M.isLoaded=function(){return this.iD()>=0}; g.M.U4=function(Y,u){if(Y>=this.iD())return 0;var n=0;for(u=this.getStartTime(Y)+u;Ythis.getStartTime(Y);Y++)n=Math.max(n,n6d(this,Y)/this.getDuration(Y));return n}; g.M.resize=function(Y){Y+=2;var u=this.offsets;this.offsets=new Float64Array(Y+1);var n=this.startTicks;this.startTicks=new Float64Array(Y+1);for(Y=0;Y0&&Y&&(n=n.range.end+1,Y=Math.min(Y,this.info.contentLength-n),Y>0&&U.push(new ny(4,this,Yh(n,Y),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,u)));return new Cy(U)}; g.M.UJ=function(Y){if(Y.info.type===1){if(this.K)return;this.K=Pl(Y.j)}else if(Y.info.type===2){if(this.J||this.index.iD()>=0)return;if(g.FC(this.info)){var u=this.index,n=g.Ly(Y);Y=Y.info.range.start;var U=g.Tp(n,0,1936286840);n=qRG(U);u.K=n.timescale;var k=n.ew;u.offsets[0]=n.Lq+Y+U.size;u.startTicks[0]=k;u.j=!0;Y=n.Uv.length;for(U=0;U0&&Y===m[0].Y6)for(Y=0;Y=u+n)break}k.length||(Y=new g.zP("b189619593",""+Y,""+u,""+n),g.tl(Y));return new Cy(k)}; g.M.j2=function(Y){for(var u=this.UH(Y.info),n=Y.info.range.start+Y.info.j,U=[],k=0;k=this.index.fY(n+1);)n++;return this.qg(n,u,Y.X).mq}; g.M.Mx=function(Y){Y.LU();return this.qa()?!0:Y.range.end+1this.info.contentLength&&(u=new al(u.start,this.info.contentLength-1)),new Cy([new ny(4,Y.K,u,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Y.clipId)]);Y.type===4&&(Y=this.UH(Y),Y=Y[Y.length-1]);var n=0,U=Y.range.start+Y.j+Y.X;Y.type===3&&(Y.LU(),n=Y.Wz,U===Y.range.end+1&&(n+=1));return this.qg(n,U,u)}; g.M.GW=function(){return null}; g.M.h6=function(Y,u){u=u===void 0?!1:u;Y=this.index.x$(Y);u&&(Y=Math.min(this.index.iD(),Y+1));return this.qg(Y,this.index.fY(Y),0,void 0)}; g.M.GG=function(){return!0}; g.M.A1=function(){return!0}; g.M.Uu=function(){return!1}; g.M.JE=function(){return this.indexRange.length+this.initRange.length}; g.M.Fz=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var U4={},sZB=(U4.COLOR_PRIMARIES_BT709="bt709",U4.COLOR_PRIMARIES_BT2020="bt2020",U4.COLOR_PRIMARIES_UNKNOWN=null,U4.COLOR_PRIMARIES_UNSPECIFIED=null,U4),kD={},kuB=(kD.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",kD.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",kD.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",kD.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",kD.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,kD.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,kD);g.lj.prototype.getName=function(){return this.name}; g.lj.prototype.getId=function(){return this.id}; g.lj.prototype.getIsDefault=function(){return this.isDefault}; g.lj.prototype.toString=function(){return this.name}; g.lj.prototype.getName=g.lj.prototype.getName;g.lj.prototype.getId=g.lj.prototype.getId;g.lj.prototype.getIsDefault=g.lj.prototype.getIsDefault;var Swd=/action_display_post/;var C$u,W0,eW;g.d(bj,g.ud);g.M=bj.prototype;g.M.isLoading=function(){return this.state===1}; g.M.DT=function(){return this.state===3}; g.M.MbG=function(Y){var u=Y.getElementsByTagName("Representation");if(Y.getElementsByTagName("SegmentList").length>0||Y.getElementsByTagName("SegmentTemplate").length>0){this.W$=this.j=!0;this.timeline||(this.timeline=new xO7);WVG(this.timeline,Y);this.publish("refresh");for(Y=0;Y=0?Q=$E(Z):N=N+"?range="+Z}C.call(S,new uw(f.Wz,f.startSecs,f.Ox,f.K,N,Q,f.j))}U=k}n.update(U,this.isLive,this.CG)}equ(this.timeline);return!0}this.duration=vTc(ZL(Y,"mediaPresentationDuration")); a:{for(Y=0;Y0))return this.v0()-Y}}Y=this.K;for(var u in Y){var n=Y[u].index;if(n.isLoaded()&&!Y6(Y[u].info.mimeType))return n.zc()}return 0}; g.M.getStreamTimeOffset=function(){return this.S}; g.M.Ia=function(Y){for(var u in this.K){var n=this.K[u].index;if(n.isLoaded()){var U=n.x$(Y),k=n.Ia(U);if(k)return k+Y-n.getStartTime(U)}}return NaN}; var Y4=null,bPg,ub=!((bPg=navigator.mediaCapabilities)==null||!bPg.decodingInfo),L4c={commentary:1,alternate:2,dub:3,main:4};var BG=new Set,nD=new Map;mT.prototype.clone=function(Y){return new mT(this.flavor,Y,this.j,this.experiments)}; mT.prototype.Tw=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; mT.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 I1y={},TN=(I1y.playready=["com.youtube.playready","com.microsoft.playready"],I1y.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],I1y),mA={},eMG=(mA.widevine="DRM_SYSTEM_WIDEVINE",mA.fairplay="DRM_SYSTEM_FAIRPLAY",mA.playready="DRM_SYSTEM_PLAYREADY",mA),X6={},zA$=(X6.widevine=1,X6.fairplay=2,X6.playready=3,X6);var sm;g.d(ra,g.e); ra.prototype.initialize=function(Y,u){for(var n=this,U=g.A(Object.keys(Y)),k=U.next();!k.done;k=U.next()){k=g.A(Y[k.value]);for(var m=k.next();!m.done;m=k.next())if(m=m.value,m.Ls)for(var X=g.A(Object.keys(m.Ls)),S=X.next();!S.done;S=X.next()){var C=S.value;S=C;C=TN[C];!C&&this.V("html5_enable_vp9_fairplay")&&S==="fairplay"&&(C=["com.youtube.fairplay.sbdl"]);if(C){C=g.A(C);for(var f=C.next();!f.done;f=C.next())f=f.value,this.X[f]=this.X[f]||new mT(S,f,m.Ls[S],this.GZ.experiments),this.K[S]=this.K[S]|| {},this.K[S][m.mimeType]=!0}}}zq()&&(this.X["com.youtube.fairplay"]=new mT("fairplay","com.youtube.fairplay","",this.GZ.experiments),this.V("html5_enable_vp9_fairplay")||(this.K.fairplay=this.K.fairplay||{},this.K.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.K.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.j=e0t(u,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay")&&!0,this.V("html5_enable_vp9_fairplay")).filter(function(Q){return!!n.X[Q]})}; ra.prototype.V=function(Y){return this.GZ.experiments.vz(Y)};var gSq={"":"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"};Hhu.prototype.V=function(Y){return this.experiments.vz(Y)};var WbS={RED:"red",AGk:"white"};yoY.prototype.vz=function(Y){Y=this.flags[Y];JSON.stringify(Y);return Y==="true"};var F40=Promise.resolve(),$ZS=window.queueMicrotask?window.queueMicrotask.bind(window):Jou;jF.prototype.canPlayType=function(Y,u){Y=Y.canPlayType?Y.canPlayType(u):!1;zC?Y=Y||ESC[u]:Xh===2.2?Y=Y||HP$[u]:bL()&&(Y=Y||yz$[u]);return!!Y}; jF.prototype.isTypeSupported=function(Y){return this.N?window.cast.receiver.platform.canDisplayType(Y):dC(Y)}; var HP$={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},yz$={"application/x-mpegURL":"maybe"},ESC={"application/x-mpegURL":"maybe"};g.d(LD,g.ud);LD.prototype.add=function(Y,u){if(!this.items[Y]&&(u.d0||u.xX||u.f7)){var n=this.items,U=u;Object.isFrozen&&!Object.isFrozen(u)&&(U=Object.create(u),Object.freeze(U));n[Y]=U;this.publish("vast_info_card_add",Y)}}; LD.prototype.remove=function(Y){var u=this.get(Y);delete this.items[Y];return u}; LD.prototype.get=function(Y){return this.items[Y]||null}; LD.prototype.isEmpty=function(){return g.i4(this.items)};tB.prototype.encrypt=function(Y){this.K.exports.AES128CTRCipher_encrypt(this.cipher,Y.byteOffset,Y.byteLength);return Y}; tB.prototype.gg=function(){return this.cipher===0}; tB.prototype.dispose=function(){this.K.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};om.prototype.JU=function(Y,u){u=u===void 0?1:u;this.C_+=u;this.j+=Y;Y/=u;for(var n=0;n0)U+="."+BL[k].toFixed(0)+"_"+n.K[k].toFixed(0);else break;n=U}n&&(Y[u]=n)}this.K=new Uud;return Y}; g.M.toString=function(){return""};g.M=Cqd.prototype;g.M.isActive=function(){return!1}; g.M.aU=function(){}; g.M.a9=function(){}; g.M.X3=function(){}; g.M.Q6=function(Y,u){u()}; g.M.eg=function(){return{}}; g.M.toString=function(){return""};var VE$=new Cqd,OP$=!!+HQ("html5_enable_profiler"),FtG=!!+HQ("html5_onesie_enable_profiler"),Pb=OP$||FtG?new mut:VE$,X8e=OP$?Pb:VE$,vL=FtG?Pb:VE$;Tuu.prototype.emscripten_notify_memory_growth=function(){};g.M=cL.prototype;g.M.malloc=function(Y){return this.exports.malloc(Y)}; g.M.free=function(Y){this.exports.free(Y)}; g.M.realloc=function(Y,u){return this.exports.realloc(Y,u)}; g.M.wA=function(Y){if(Y.buffer!==this.exports.memory.buffer){var u=this.malloc(Y.byteLength);u=new Uint8Array(this.exports.memory.buffer,u,Y.byteLength);u.set(Y);return u}}; g.M.Lx=function(Y){if(Y.buffer===this.exports.memory.buffer){var u=Y.slice();this.free(Y.byteOffset);return u}}; var fZ0=new function(){this.X=this.G="WebAssembly"in window},Rm="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); vL.aU(cL,{wA:function(Y){return{profile:"copyj2w",C_:Y===void 0?0:Math.ceil(Y.byteLength/16)}}, Lx:function(Y){return{profile:"copyw2j",C_:Y===void 0?0:Math.ceil(Y.byteLength/16)}}});DU.prototype.encrypt=function(Y,u){try{return this.K.Lx(duB(this,Y,u))}catch(n){g.Br(Error("ocwce: wasm encrypt failed: "+n))}}; DU.prototype.gg=function(){return this.X}; DU.prototype.dispose=function(){this.gg()||(g.nc(this.j),this.K.free(this.G.byteOffset),this.X=!0)};g.d(GAW,g.e);g.d(jjB,g.e);var lb;hB.prototype.add=function(Y){if(this.pos+20>this.data.length){var u=new Uint8Array(this.data.length*2);u.set(this.data);this.data=u}for(;Y>31;)this.data[this.pos++]=lb[(Y&31)+32],Y>>=5;this.data[this.pos++]=lb[Y|0]}; hB.prototype.TE=function(){return g.NJ(this.data.subarray(0,this.pos))}; hB.prototype.reset=function(){this.pos=0};WL.prototype.Vu=function(Y,u){var n=Math.pow(this.alpha,Y);this.K=u*(1-n)+n*this.K;this.j+=Y}; WL.prototype.E6=function(){return this.K/(1-Math.pow(this.alpha,this.j))};eF.prototype.Vu=function(Y,u){for(var n=0;n<10;n++){var U=this.K[n],k=U+(n===0?Y:0),m=1*Math.pow(2,n);if(k<=m)break;U=Math.min(1,(k-m*.5)/U);for(k=0;k<16;k++)m=this.values[n*16+k]*U,this.values[(n+1)*16+k]+=m,this.K[n+1]+=m,this.values[n*16+k]-=m,this.K[n]-=m}U=n=0;k=8192;u>8192&&(n=Math.ceil(Math.log(u/8192)/Math.log(2)),U=8192*Math.pow(2,n-1),k=U*2);n+2>16?this.values[15]+=Y:(u=(u-U)/(k-U),this.values[n]+=Y*(1-u),this.values[n+1]+=Y*u);this.K[0]+=Y}; eF.prototype.E6=function(){var Y=Y===void 0?this.j:Y;var u=u===void 0?.02:u;var n=n===void 0?.98:n;for(var U=this.X,k=0;k<16;k++)U[k]=this.values[k];k=this.K[0];for(var m=1;m<11;m++){var X=this.K[m];if(X===0)break;for(var S=Math.min(1,(Y-k)/X),C=0;C<16;C++)U[C]+=this.values[m*16+C]*S;k+=X*S;if(S<1)break}for(m=Y=X=0;m<16;m++){S=X+U[m]/k;Y+=Math.max(0,Math.min(S,n)-Math.max(X,u))*(m>0?8192*Math.pow(2,m-1):0);if(S>n)break;X=S}return Y/(n-u)};bb.prototype.Vu=function(Y,u){Y=Math.min(this.K,Math.max(1,Math.round(Y*this.resolution)));Y+this.j>=this.K&&(this.X=!0);for(;Y--;)this.values[this.j]=u,this.j=(this.j+1)%this.K;this.s1=!0}; bb.prototype.percentile=function(Y){var u=this;if(!this.X&&this.j===0)return 0;this.s1&&(g.VC(this.J,function(n,U){return u.values[n]-u.values[U]}),this.s1=!1); return this.values[this.J[Math.round(Y*((this.X?this.K:this.j)-1))]]||0}; bb.prototype.E6=function(){return this.W?(this.percentile(this.G-this.W)+this.percentile(this.G)+this.percentile(this.G+this.W))/3:this.percentile(this.G)};g.d(Im,g.e);Im.prototype.zZ=function(){var Y;(Y=this.JJ)==null||Y.start();if(JB(this)&&this.policy.Z){var u;(u=this.W0)==null||u.TP()}};oqu.prototype.V=function(Y){return this.experiments.vz(Y)};g.d(vqY,g.e);var wvd="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Eqd={KYa:"caoe",oaG:"capsv",gaw:"cbrand",MpV:"cbr",VpV:"cbrver",EaG:"cchip",YP2:"ccappver",vaw:"ccrv",wdW:"cfrmver",H1V:"c",gvc:"cver",A4a:"ctheme",Wac:"cplayer",AUw:"cmodel",Ud:"cnetwork",YCc:"cos",OS_VERSION:"cosver",N3V:"cplatform",glk:"crqyear"};g.d(r9,g.e);g.M=r9.prototype;g.M.V=function(Y){return this.experiments.vz(Y)}; g.M.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.M.getVideoUrl=function(Y,u,n,U,k,m,X){u={list:u};n&&(k?u.time_continue=n:u.t=n);n=X?"music.youtube.com":g.sg(this);k=n==="www.youtube.com";!m&&U&&k?m="https://youtu.be/"+Y:g.CV(this)?(m="https://"+n+"/fire",u.v=Y):(m&&k?(m=this.protocol+"://"+n+"/shorts/"+Y,U&&(u.feature="share")):(m=this.protocol+"://"+n+"/watch",u.v=Y),zC&&(Y=wBB())&&(u.ebc=Y));return g.Mk(m,u)}; g.M.getVideoEmbedCode=function(Y,u,n,U){u="https://"+g.sg(this)+"/embed/"+u;U&&(u=g.Mk(u,{list:U}));U=n.width;n=n.height;u=RD(u);Y=RD(Y!=null?Y:"YouTube video player");return'')}; g.M.supportsGaplessAudio=function(){return g.sP&&!zC&&wL()>=74||g.ib&&g.zr(68)?!0:!1}; g.M.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.CG||g.Z0?!1:!0}; g.M.getPlayerType=function(){return this.K.cplayer}; g.M.gX=function(){return this.MA}; var OKY=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],gqc=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],y8u=[19];var St={},aZB=(St["140"]={numChannels:2},St["141"]={numChannels:2},St["251"]={audioSampleRate:48E3,numChannels:2},St["774"]={audioSampleRate:48E3,numChannels:2},St["380"]={numChannels:6},St["328"]={numChannels:6},St["773"]={},St),CM={},J8A=(CM["1"]='video/mp4; codecs="av01.0.08M.08"',CM["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',CM["1e"]='video/mp4; codecs="av01.0.08M.08"',CM["9"]='video/webm; codecs="vp9"',CM["("]='video/webm; codecs="vp9"',CM["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', CM.h='video/mp4; codecs="avc1.64001e"',CM.H='video/mp4; codecs="avc1.64001e"',CM.o='audio/webm; codecs="opus"',CM.a='audio/mp4; codecs="mp4a.40.2"',CM.ah='audio/mp4; codecs="mp4a.40.2"',CM.mac3='audio/mp4; codecs="ac-3"; channels=6',CM.meac3='audio/mp4; codecs="ec-3"; channels=6',CM.i='audio/mp4; codecs="iamf.001.001.Opus"',CM),fM={},qJe=(fM["337"]={width:3840,height:2160,bitrate:3E7,fps:30},fM["336"]={width:2560,height:1440,bitrate:15E6,fps:30},fM["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, fM["702"]={width:7680,height:4320,bitrate:4E7,fps:60},fM["701"]={width:3840,height:2160,bitrate:2E7,fps:60},fM["700"]={width:2560,height:1440,bitrate:1E7,fps:60},fM["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},fM["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},fM["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},fM["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, fM["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},fM["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},fM["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},fM["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},fM["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},fM["315"]={width:3840,height:2160,bitrate:2E7,fps:60},fM["308"]={width:2560, height:1440,bitrate:1E7,fps:60},fM["303"]={width:1920,height:1080,bitrate:5E6,fps:60},fM["302"]={width:1280,height:720,bitrate:25E5,fps:60},fM["299"]={width:1920,height:1080,bitrate:75E5,fps:60},fM["298"]={width:1280,height:720,bitrate:35E5,fps:60},fM["571"]={width:7680,height:4320,bitrate:3E7,fps:60},fM["401"]={width:3840,height:2160,bitrate:15E6,fps:60},fM["400"]={width:2560,height:1440,bitrate:75E5,fps:60},fM["399"]={width:1920,height:1080,bitrate:2E6,fps:60},fM["398"]={width:1280,height:720,bitrate:1E6, fps:60},fM["397"]={width:854,height:480,bitrate:4E5,fps:30},fM["396"]={width:640,height:360,bitrate:25E4,fps:30},fM["787"]={width:1080,height:608,bitrate:2E5,fps:30},fM["788"]={width:1080,height:608,bitrate:4E5,fps:30},fM["572"]={width:7680,height:4320,bitrate:3E7,fps:60},fM["555"]={width:3840,height:2160,bitrate:15E6,fps:60},fM["554"]={width:2560,height:1440,bitrate:75E5,fps:60},fM["553"]={width:1920,height:1080,bitrate:2E6,fps:60},fM["552"]={width:1280,height:720,bitrate:1E6,fps:60},fM["551"]={width:854, height:480,bitrate:4E5,fps:30},fM["550"]={width:640,height:360,bitrate:25E4,fps:30},fM["313"]={width:3840,height:2160,bitrate:8E6,fps:30},fM["271"]={width:2560,height:1440,bitrate:4E6,fps:30},fM["248"]={width:1920,height:1080,bitrate:2E6,fps:30},fM["247"]={width:1280,height:720,bitrate:15E5,fps:30},fM["244"]={width:854,height:480,bitrate:52E4,fps:30},fM["243"]={width:640,height:360,bitrate:28E4,fps:30},fM["137"]={width:1920,height:1080,bitrate:4E6,fps:30},fM["136"]={width:1280,height:720,bitrate:3E6, fps:30},fM["135"]={width:854,height:480,bitrate:1E6,fps:30},fM["385"]={width:1920,height:1080,bitrate:6503313,fps:60},fM["376"]={width:1280,height:720,bitrate:5706960,fps:60},fM["384"]={width:1280,height:720,bitrate:3660979,fps:60},fM["225"]={width:1280,height:720,bitrate:5805E3,fps:30},fM["224"]={width:1280,height:720,bitrate:453E4,fps:30},fM["145"]={width:1280,height:720,bitrate:2682052,fps:30},fM);g.M=hA.prototype;g.M.getInfo=function(){return this.K}; g.M.q_=function(){return null}; g.M.vP=function(){var Y=this.q_();return Y?(Y=g.Yo(Y.uN),Number(Y.expire)):NaN}; g.M.qc=function(){}; g.M.getHeight=function(){return this.K.video.height};nuu.prototype.build=function(){mM7(this);var Y=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],u={};a:if(this.K)var n=this.K;else{n="";for(var U=g.A(this.X),k=U.next();!k.done;k=U.next())if(k=k.value,k.dX){if(k.dX.getIsDefault()){n=k.dX.getId();break a}n||(n=k.dX.getId())}}U=g.A(this.X);for(k=U.next();!k.done;k=U.next())if(k=k.value,this.W||!k.dX||k.dX.getId()===n)u[k.itag]||(u[k.itag]=[]),u[k.itag].push(k);n=g.A(this.j);for(U=n.next();!U.done;U=n.next())if(U=U.value,k=u[U.K]){k=g.A(k);for(var m=k.next();!m.done;m= k.next()){var X=Y,S=X.push;m=m.value;var C="#EXT-X-MEDIA:TYPE=AUDIO,",f="YES",Q="audio";if(m.dX){Q=m.dX;var N=Q.getId().split(".")[0];N&&(C+='LANGUAGE="'+N+'",');(this.K?this.K===Q.getId():Q.getIsDefault())||(f="NO");Q=Q.getName()}N="";U!==null&&(N=U.itag.toString());N=Wo(this,m.url,N);C=C+('NAME="'+Q+'",DEFAULT='+(f+',AUTOSELECT=YES,GROUP-ID="'))+(k4e(m,U)+'",URI="'+(N+'"'));S.call(X,C)}}n=g.A(this.J);for(U=n.next();!U.done;U=n.next())U=U.value,k=JzL,U=(X=U.dX)?'#EXT-X-MEDIA:URI="'+Wo(this,U.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+k+'",LANGUAGE="'+X.getId()+'",NAME="'+X.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,U&&Y.push(U);n=this.J.length>0?JzL:void 0;U=g.A(this.j);for(k=U.next();!k.done;k=U.next())k=k.value,S=u[k.K],X=void 0,((X=S)==null?void 0:X.length)>0&&(X=k,S=S[0],S="#EXT-X-STREAM-INF:BANDWIDTH="+(X.bitrate+S.bitrate)+',CODECS="'+(X.codecs+","+S.codecs+'",RESOLUTION=')+(X.width+"x"+X.height+',AUDIO="')+(k4e(S,X)+'",')+(n?'SUBTITLES="'+n+'",':"")+"CLOSED-CAPTIONS=NONE",X.fps>1&&(S+= ",FRAME-RATE="+X.fps),X.S7&&(S+=",VIDEO-RANGE="+X.S7),Y.push(S),Y.push(Wo(this,k.url,"")));return Y.join("\n")}; var JzL="text";g.d(eG,hA);eG.prototype.vP=function(){return this.expiration}; eG.prototype.q_=function(){if(!this.uN||this.uN.gg()){var Y=this.j.build();Y="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(Y);this.uN=new rb(Y)}return this.uN};g.d(bo,hA);bo.prototype.q_=function(){return new rb(this.j.Ff())}; bo.prototype.qc=function(){this.j=$p(this.j)};g.d(IT,hA);IT.prototype.q_=function(){return new rb(this.j)};var Q2={},Tft=(Q2.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Q2.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Q2.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Q2.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Q2);g.M=g.z_.prototype;g.M.getId=function(){return this.id}; g.M.getName=function(){return this.name}; g.M.isServable=function(){return this.K}; g.M.Ff=function(){return this.url}; g.M.getXtags=function(){return this.xtags}; g.M.toString=function(){return this.languageCode+": "+g.g9(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.M.equals=function(Y){return Y?this.toString()===Y.toString():!1}; g.M.QY=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Aae={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},jau={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},KuA=/^(\d*)_((\d*)_?(\d*))$/;var Luu={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},tzY={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var NU={},qiQ=(NU.ALWAYS=1,NU.BY_REQUEST=3,NU.UNKNOWN=void 0,NU),iX={},a1B=(iX.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",iX.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",iX.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",iX.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",iX);var lXG; lXG=function(Y){for(var u=Object.keys(Y),n={},U=0;UU-u?-1:Y}; g.M.gy=function(){return this.j.iD()}; g.M.b1=function(){return this.j.qW()}; g.M.XH=function(Y){this.j=Y};g.d(rq,Z9);rq.prototype.j=function(Y,u){return Z9.prototype.j.call(this,"$N|"+Y,u)}; rq.prototype.J=function(Y,u,n){return new Te(Y,u,n,this.isLive)};g.d(g.sZ,g.ud);g.M=g.sZ.prototype; g.M.setData=function(Y){Y=Y||{};var u=Y.errordetail;u!=null&&(this.errorDetail=u);var n=Y.errorcode;n!=null?this.errorCode=n:Y.status==="fail"&&(this.errorCode="auth");var U=Y.reason;U!=null&&(this.errorReason=U);var k=Y.subreason;k!=null&&(this.RD=k);this.clientPlaybackNonce||(this.clientPlaybackNonce=Y.cpn||(this.GZ.gX()?"r"+g.TS(15):g.TS(16)));this.Uc=$o(this.GZ.Uc,Y.livemonitor);UNd(this,Y);var m=Y.raw_player_response;if(m)this.zA=m;else{var X=Y.player_response;X&&(m=JSON.parse(X))}m&&(this.playerResponse= m);if(this.playerResponse){var S=this.playerResponse.annotations;if(S)for(var C=g.A(S),f=C.next();!f.done;f=C.next()){var Q=f.value.playerAnnotationsUrlsRenderer;if(Q){Q.adsOnly&&(this.Z8=!0);var N=Q.loadPolicy;N&&(this.annotationsLoadPolicy=qiQ[N]);var Z=Q.invideoUrl;Z&&(this.JJ=zO(Z));break}}var T=this.playerResponse.attestation;T&&oue(this,T);var r=this.playerResponse.cotn;r&&(this.cotn=r);var K=this.playerResponse.heartbeatParams;if(K){this.fg=!0;var L=K.heartbeatToken;L&&(this.drmSessionId=K.drmSessionId|| "",this.heartbeatToken=L,this.n_=Number(K.intervalMilliseconds),this.DR=Number(K.maxRetries),this.De=!!K.softFailOnError,this.UR=!!K.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=K.heartbeatServerData;var R;this.wO=!((R=K.heartbeatAttestationConfig)==null||!R.requiresAttestation)}var c=this.playerResponse.messages;c&&DMG(this,c);var x=this.playerResponse.overlay;if(x){var W=x.playerControlsOverlayRenderer;if(W)if(lwc(this,W.controlBgHtml),W.mutedAutoplay){var E=g.z(W.mutedAutoplay,CNQ);if(E&& E.endScreen){var J=g.z(E.endScreen,fDq);J&&J.text&&(this.wc=g.Cw(J.text))}}else this.mutedAutoplay=!1}var O=this.playerResponse.playabilityStatus;if(O){var Xd=O.backgroundability;Xd&&Xd.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var T0,SM;if((T0=O.offlineability)==null?0:(SM=T0.offlineabilityRenderer)==null?0:SM.offlineable)this.offlineable=!0;var CY=O.contextParams;CY&&(this.contextParams=CY);var uB=O.pictureInPicture;uB&&uB.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);O.playableInEmbed&&(this.allowEmbed=!0);var cc=O.ypcClickwrap;if(cc){var J7=cc.playerLegacyDesktopYpcClickwrapRenderer,uQ=cc.ypcRentalActivationRenderer;if(J7)this.NI=J7.durationMessage||"",this.mW=!0;else if(uQ){var sq=uQ.durationMessage;this.NI=sq?g.Cw(sq):"";this.mW=!0}}var CR=O.errorScreen;if(CR){if(CR.playerLegacyDesktopYpcTrailerRenderer){var Du=CR.playerLegacyDesktopYpcTrailerRenderer;this.MO=Du.trailerVideoId||"";var XH=CR.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Wu=XH&&XH.ypcTrailerRenderer}else if(CR.playerLegacyDesktopYpcOfferRenderer)Du= CR.playerLegacyDesktopYpcOfferRenderer;else if(CR.ypcTrailerRenderer){Wu=CR.ypcTrailerRenderer;var Hu=Wu.fullVideoMessage;this.vg=Hu?g.Cw(Hu):"";var Pq,v;this.MO=((Pq=g.z(Wu,QuC))==null?void 0:(v=Pq.videoDetails)==null?void 0:v.videoId)||""}Du&&(this.Pg=Du.itemTitle||"",Du.itemUrl&&(this.Kr=Du.itemUrl),Du.itemBuyUrl&&(this.YE=Du.itemBuyUrl),this.a5=Du.itemThumbnail||"",this.jC=Du.offerHeadline||"",this.sA=Du.offerDescription||"",this.xO=Du.offerId||"",this.oG=Du.offerButtonText||"",this.M_=Du.offerButtonFormattedText|| null,this.j3=Du.overlayDurationMsec||NaN,this.vg=Du.fullVideoMessage||"",this.l4=!0);if(Wu){var IK=g.z(Wu,QuC);if(IK)this.Iq={raw_player_response:IK};else{var x$=g.z(Wu,A5Q);this.Iq=x$?aJ(x$):null}this.l4=!0}}}var Uu=this.playerResponse.playbackTracking;if(Uu){var ty=Y,p=Og(Uu.googleRemarketingUrl);p&&(this.googleRemarketingUrl=p);var nY=Og(Uu.youtubeRemarketingUrl);nY&&(this.youtubeRemarketingUrl=nY);var Dn={},Cu=Og(Uu.ptrackingUrl);if(Cu){var z$=Fh(Cu),Ou=z$.oid;Ou&&(this.sQ=Ou);var Uq=z$.pltype; Uq&&(this.tN=Uq);var nu=z$.ptchn;nu&&(this.Tu=nu);var zd=z$.ptk;zd&&(this.qU=encodeURIComponent(zd));var t=z$.m;t&&(this.Ir=t)}var G=Og(Uu.qoeUrl);if(G){for(var B=g.Yo(G),h=g.A(Object.keys(B)),I=h.next();!I.done;I=h.next()){var Nm=I.value,y=B[Nm];B[Nm]=Array.isArray(y)?y.join(","):y}this.hT=B;var a=B.cat;a&&(this.V("html5_enable_qoe_cat_list")?this.PD=this.PD.concat(a.split(",")):this.FY=a);var w=B.live;w&&(this.Pp=w);var h7=B.drm_product;h7&&(this.drmProduct=h7)}var Eu=Og(Uu.videostatsPlaybackUrl); if(Eu){var Pc=Fh(Eu),NX=Pc.adformat;if(NX){ty.adformat=NX;var xe=this.Y(),t7=pTd(NX,this.WN,xe.G,xe.Z);t7&&(this.adFormat=t7)}var UD=Pc.aqi;UD&&(ty.ad_query_id=UD);var LR=Pc.autoplay;LR&&(this.zE=LR=="1",this.rM=LR=="1");var eB=Pc.autonav;eB&&(this.isAutonav=eB=="1");var ot=Pc.delay;ot&&(this.Ru=l5(ot));var pi=Pc.ei;pi&&(this.eventId=pi);var Rt=x4(Pc.adcontext);if(Rt)try{var lQ=fO$(Rt);lQ&&(this.Ym=lQ)}catch(kQq){g.Br(Error("Malformed adContext"))}if(Rt||NX)this.zE=!0;var Bu=Pc.feature;Bu&&(this.mG= Bu);var S8=Pc.list;S8&&(this.playlistId=S8);var oL=Pc.of;oL&&(this.AQ=oL);var $l=Pc.osid;$l&&(this.osid=$l);var kP=Pc.referrer;kP&&(this.referrer=kP);var yC=Pc.sdetail;yC&&(this.s_=yC);var hy=Pc.ssrt;hy&&(this.jT=hy=="1");var cp=Pc.subscribed;cp&&(this.subscribed=cp=="1");var qq=Pc.uga;qq&&(this.userGenderAge=qq);var sa=Pc.upt;sa&&(this.lR=sa);var e_=Pc.vm;e_&&(this.videoMetadata=e_);Dn.playback=Pc}var Ym=Og(Uu.videostatsWatchtimeUrl);if(Ym){var u7=Fh(Ym),SE=u7.ald;SE&&(this.iJ=SE);Dn.watchtime=u7}var Li= Og(Uu.atrUrl);if(Li){var hZ=Fh(Li);Dn.atr=hZ}var aE=Og(Uu.engageUrl);if(aE){var w0=Fh(aE);Dn.engage=w0}this.TG=Dn;if(Uu.promotedPlaybackTracking){var k3=Uu.promotedPlaybackTracking;k3.startUrls&&(this.rA=k3.startUrls);k3.firstQuartileUrls&&(this.SX=k3.firstQuartileUrls);k3.secondQuartileUrls&&(this.Cw=k3.secondQuartileUrls);k3.thirdQuartileUrls&&(this.lC=k3.thirdQuartileUrls);k3.completeUrls&&(this.D5=k3.completeUrls);k3.engagedViewUrls&&(k3.engagedViewUrls.length>1&&g.Br(new g.zP("There are more than one engaged_view_urls.")), this.MU=k3.engagedViewUrls[0])}}var dm=this.playerResponse.playerCueRanges;dm&&dm.length>0&&(this.cueRanges=dm);var bm=this.playerResponse.playerCueRangeSet;bm&&g.jX(this,bm);a:{var GT=this.playerResponse.adPlacements;if(GT)for(var n5=g.A(GT),AP=n5.next();!AP.done;AP=n5.next()){var UM=void 0,km=void 0,ma=(UM=AP.value.adPlacementRenderer)==null?void 0:(km=UM.renderer)==null?void 0:km.videoAdTrackingRenderer;if(ma){var XY=ma;break a}}XY=null}var j4=XY;Uu&&Uu.promotedPlaybackTracking&&j4&&g.Br(new g.zP("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var CP;if(!(CP=j4))a:{for(var Pf=g.A(this.playerResponse.adSlots||[]),MP=Pf.next();!MP.done;MP=Pf.next()){var so=g.z(MP.value,rp);if(so===void 0||!DJu(so))break;var xV=void 0,en=(xV=so.fulfillmentContent)==null?void 0:xV.fulfilledLayout,b7=g.z(en,PI);if(b7&&U7(b7)){CP=!0;break a}}CP=!1}CP&&(this.zz=!0);var IA=this.playerResponse.playerAds;if(IA)for(var XZ=Y,lZ=g.A(IA),d3=lZ.next();!d3.done;d3=lZ.next()){var hJ=d3.value;if(hJ){var PB=hJ.playerLegacyDesktopWatchAdsRenderer;if(PB){var zB=PB.playerAdParams; if(zB){zB.autoplay=="1"&&(this.rM=this.zE=!0);this.Q3=zB.encodedAdSafetyReason||null;zB.showContentThumbnail!==void 0&&(this.T3=!!zB.showContentThumbnail);XZ.enabled_engage_types=zB.enabledEngageTypes;break}}}}var t5=this.playerResponse.playerConfig;if(t5){var Kr=t5.manifestlessWindowedLiveConfig;if(Kr){var gs=Number(Kr.minDvrSequence),Sd=Number(Kr.maxDvrSequence),d2=Number(Kr.minDvrMediaTimeMs),CH=Number(Kr.maxDvrMediaTimeMs),wX=Number(Kr.startWalltimeMs);gs&&(this.qA=gs);d2&&(this.DW=d2/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&& xR(this)&&(this.hG=d2/1E3));Sd&&(this.fF=Sd);CH&&(this.Gw=CH/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&xR(this)&&(this.z3=CH/1E3));wX&&(this.CT=wX/1E3);(gs||d2)&&(Sd||CH)&&(this.allowLiveDvr=this.isLivePlayback=this.jG=!0,this.H4=!1)}var G5=t5.daiConfig;if(G5){if(G5.enableDai){this.xQ=!0;var mK=G5.enableServerStitchedDai;mK&&(this.enableServerStitchedDai=mK);var Hj=G5.enablePreroll;Hj&&(this.xo=Hj)}var Tz;if(G5.daiType==="DAI_TYPE_SS_DISABLED"||((Tz=G5.debugInfo)==null?0:Tz.isDisabledUnpluggedChannel))this.En= !0;G5.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.wN=!0);G5.allowUstreamerRequestAdconfig&&(this.pZ=!0)}var Q1=t5.audioConfig;if(Q1){var E_=Q1.loudnessDb;E_!=null&&(this.MA=E_);var fa7=Q1.trackAbsoluteLoudnessLkfs;fa7!=null&&(this.Bl=fa7);var QPW=Q1.loudnessTargetLkfs;QPW!=null&&(this.loudnessTargetLkfs=QPW);Q1.audioMuted&&(this.ET=!0);Q1.muteOnStart&&(this.fE=!0);var jz=Q1.loudnessNormalizationConfig;if(jz){jz.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);jz.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var NdW=jz.minimumLoudnessTargetLkfs;NdW!=null&&(this.minimumLoudnessTargetLkfs=NdW);var i00=jz.maxStatefulTimeThresholdSec;i00!=null&&(this.maxStatefulTimeThresholdSec=i00)}Q1.playAudioOnly&&(this.VI=!0)}var BAM=t5.playbackEndConfig;if(BAM){var Z0u=BAM.endSeconds,TdA=BAM.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Z0u&&(this.endSeconds=Z0u),TdA&&(this.limitedPlaybackDurationInSeconds=TdA))}var pS=t5.fairPlayConfig;if(pS){var rOd=pS.certificate;rOd&& (this.CG=x4(rOd));var ML0=Number(pS.keyRotationPeriodMs);ML0>0&&(this.f_=ML0);var sPe=Number(pS.keyPrefetchMarginMs);sPe>0&&(this.K_=sPe)}var D3=t5.playbackStartConfig;if(D3){this.Yl=Number(D3.startSeconds);var dAd=D3.liveUtcStartSeconds,GGB=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;dAd&&!GGB&&(this.liveUtcStartSeconds=Number(dAd));var oSd=D3.startPosition;if(oSd){var AOS=oSd.utcTimeMillis;AOS&&!GGB&&(this.liveUtcStartSeconds=Number(AOS)*.001);var jPt=oSd.streamTimeMillis;jPt&&(this.Qe= Number(jPt)*.001)}this.progressBarStartPosition=D3.progressBarStartPosition;this.progressBarEndPosition=D3.progressBarEndPosition}else{var czB=t5.skippableSegmentsConfig;if(czB){var Kmu=czB.introSkipDurationMs;Kmu&&(this.w9=Number(Kmu)/1E3);var pOm=czB.outroSkipDurationMs;pOm&&(this.Uy=Number(pOm)/1E3)}}var vSY=t5.skippableIntroConfig;if(vSY){var LmS=Number(vSY.startMs),tLB=Number(vSY.endMs);isNaN(LmS)||isNaN(tLB)||(this.vC=LmS,this.b8=tLB)}var BdY=t5.streamSelectionConfig;BdY&&(this.Ub=Number(BdY.maxBitrate)); var oXd=t5.vrConfig;oXd&&(this.Ni=oXd.partialSpherical=="1");var KU=t5.webDrmConfig;if(KU){KU.skipWidevine&&(this.I3=!0);var cOu=KU.widevineServiceCert;cOu&&(this.ma=x4(cOu));KU.useCobaltWidevine&&(this.useCobaltWidevine=!0);KU.startWithNoQualityConstraint&&(this.Y$=!0)}var HA=t5.mediaCommonConfig;if(HA){var LS=HA.dynamicReadaheadConfig;if(LS){this.maxReadAheadMediaTimeMs=LS.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=LS.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=LS.readAheadGrowthRateMs|| NaN;var vXA,R8t=HA==null?void 0:(vXA=HA.mediaUstreamerRequestConfig)==null?void 0:vXA.videoPlaybackUstreamerConfig;R8t&&(this.qX=x4(R8t));var RAW=HA==null?void 0:HA.sabrContextUpdates;if(RAW&&RAW.length>0)for(var DAu=g.A(RAW),Dqt=DAu.next();!Dqt.done;Dqt=DAu.next()){var Yk=Dqt.value;if(Yk.type&&Yk.value){var pyR={type:Yk.type,scope:Yk.scope,value:x4(Yk.value)||void 0,sendByDefault:Yk.sendByDefault};this.sabrContextUpdates.set(Yk.type,pyR)}}}var xA7=HA.serverPlaybackStartConfig;xA7&&(this.serverPlaybackStartConfig= xA7);HA.useServerDrivenAbr&&(this.SQ=!0);var laW=HA.requestPipeliningConfig;laW&&(this.requestPipeliningConfig=laW)}var h8S=t5.inlinePlaybackConfig;h8S&&(this.RR=!!h8S.showAudioControls);var ts=t5.embeddedPlayerConfig;if(ts){this.embeddedPlayerConfig=ts;var xq7=ts.embeddedPlayerMode;if(xq7){var wOc=this.Y();wOc.DW=xq7;wOc.X=xq7==="EMBEDDED_PLAYER_MODE_PFL"}var WmW=ts.permissions;WmW&&(this.allowImaMonetization=!!WmW.allowImaMonetization)}var Bt=t5.webPlayerConfig;Bt&&(Bt.gatewayExperimentGroup&&(this.gatewayExperimentGroup= Bt.gatewayExperimentGroup),Bt.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var yp=this.playerResponse.streamingData;if(yp){var l1e=yp.formats;if(l1e){for(var pU=[],e8u=g.A(l1e),hAm=e8u.next();!hAm.done;hAm=e8u.next()){var wie=hAm.value;pU.push(wie.itag+"/"+wie.width+"x"+wie.height)}this.kP=pU.join(",");pU=[];for(var b0B=g.A(l1e),WtG=b0B.next();!WtG.done;WtG=b0B.next()){var LU=WtG.value,ta={itag:LU.itag,type:LU.mimeType,quality:LU.quality},Iae=LU.url;Iae&&(ta.url=Iae);var o6=YE(LU),LR$=o6.f3, tsX=o6.tv,BLu=o6.s;o6.Vs&&(ta.url=LR$,ta.sp=tsX,ta.s=BLu);pU.push(g.r3(ta))}this.Jr=pU.join(",")}var eAc=yp.hlsFormats;if(eAc){var z8e=t5||null,ct={};if(z8e){var bPW=z8e.audioPairingConfig;if(bPW&&bPW.pairs)for(var gXM=g.A(bPW.pairs),I17=gXM.next();!I17.done;I17=gXM.next()){var EXd=I17.value,zAe=EXd.videoItag;ct[zAe]||(ct[zAe]=[]);ct[zAe].push(EXd.audioItag)}}for(var H07={},yOc=g.A(eAc),gSu=yOc.next();!gSu.done;gSu=yOc.next()){var VLS=gSu.value;H07[VLS.itag]=VLS.bitrate}for(var O07=[],FmW=g.A(eAc), ESA=FmW.next();!ESA.done;ESA=FmW.next()){var VZ=ESA.value,pH={itag:VZ.itag,type:VZ.mimeType,url:VZ.url,bitrate:VZ.bitrate,width:VZ.width,height:VZ.height,fps:VZ.fps},vt=VZ.audioTrack;if(vt){var JOu=vt.displayName;JOu&&(pH.name=JOu,pH.audio_track_id=vt.id,vt.audioIsDefault&&(pH.is_default="1"))}if(VZ.drmFamilies){for(var qSu=[],aaB=g.A(VZ.drmFamilies),HP0=aaB.next();!HP0.done;HP0=aaB.next())qSu.push(zH[HP0.value]);pH.drm_families=qSu.join(",")}var R6=ct[VZ.itag];if(R6&&R6.length){pH.audio_itag=R6.join(","); var $AY=H07[R6[0]];$AY&&(pH.bitrate+=$AY)}var Y5c=mZ0(VZ);Y5c&&(pH.eotf=Y5c);VZ.audioChannels&&(pH.audio_channels=VZ.audioChannels);O07.push(g.r3(pH))}this.hlsFormats=O07.join(",")}var yz0=yp.licenseInfos;if(yz0&&yz0.length>0){for(var uRG={},nbB=g.A(yz0),VEe=nbB.next();!VEe.done;VEe=nbB.next()){var U1m=VEe.value,k2u=U1m.drmFamily,m1M=U1m.url;k2u&&m1M&&(uRG[zH[k2u]]=m1M)}this.Ls=uRG}var XUW=yp.drmParams;XUW&&(this.drmParams=XUW);var P_7=yp.dashManifestUrl;P_7&&(this.eE=g.Mk(P_7,{cpn:this.clientPlaybackNonce})); var S5e=yp.hlsManifestUrl;S5e&&(this.hlsvp=S5e);var C_u=yp.probeUrl;C_u&&(this.probeUrl=zO(g.Mk(C_u,{cpn:this.clientPlaybackNonce})));var fSu=yp.serverAbrStreamingUrl;fSu&&(this.Vg=new g.Od(fSu,!0))}var Q5G=this.playerResponse.trackingParams;Q5G&&(this.Fk=Q5G);var jO=this.playerResponse.videoDetails;if(jO){var LH=Y,OPe=jO.videoId;OPe&&(this.videoId=OPe,LH.video_id||(LH.video_id=OPe));var Ftd=jO.title;Ftd&&(this.title=Ftd,LH.title||(LH.title=Ftd));var Jzt=jO.lengthSeconds;Jzt&&(this.lengthSeconds= Number(Jzt),LH.length_seconds||(LH.length_seconds=Jzt));var NPe=jO.keywords;NPe&&(this.keywords=PeS(NPe));var qiB=jO.channelId;qiB&&(this.QN=qiB,LH.ucid||(LH.ucid=qiB));var i$W=jO.viewCount;i$W&&(this.rawViewCount=Number(i$W));var a1M=jO.author;a1M&&(this.author=a1M,LH.author||(LH.author=a1M));var Z$7=jO.shortDescription;Z$7&&(this.shortDescription=Z$7);var TPM=jO.isCrawlable;TPM&&(this.isListed=TPM);var rXt=jO.musicVideoType;rXt&&(this.musicVideoType=rXt);var $qM=jO.isLive;$qM!=null&&(this.isLivePlayback= $qM);if($qM||jO.isUpcoming)this.isPremiere=!jO.isLiveContent;var MqS=jO.thumbnail;MqS&&(this.Z=Vz(MqS));var s5M=jO.isExternallyHostedPodcast;s5M&&(this.isExternallyHostedPodcast=s5M);var YaM=jO.viewerLivestreamJoinPosition;if(YaM==null?0:YaM.utcTimeMillis)this.Ac=l5(YaM.utcTimeMillis);var d1e=t5||null,uiA=Y;jO.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);jO.isUpcoming&&(this.isUpcoming=!0);if(jO.isPostLiveDvr){this.H4=!0;var G2u=jO.latencyClass;G2u&&(this.latencyClass=a1B[G2u]||"UNKNOWN"); jO.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var ndS=!1;this.Uc?(this.allowLiveDvr=KD()?!0:VS&&Ur<5?!1:!0,this.isLivePlayback=!0):jO.isLive?(uiA.livestream="1",this.allowLiveDvr=jO.isLiveDvrEnabled?KD()?!0:VS&&Ur<5?!1:!0:!1,this.partnerId=27,ndS=!0):jO.isUpcoming&&(ndS=!0);if(jO.isLive||this.Uc){jO.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var AXB=jO.latencyClass;AXB&&(this.latencyClass=a1B[AXB]||"UNKNOWN");var j5m=jO.liveChunkReadahead;j5m&&(this.liveChunkReadahead= j5m);var x9=d1e&&d1e.livePlayerConfig;if(x9){x9.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);x9.hasSubfragmentedWebm&&(this.gK=!0);x9.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var KZu=x9.liveExperimentalContentId;KZu&&(this.liveExperimentalContentId=Number(KZu));var pUA=x9.isLiveHeadPlayable;this.V("html5_live_head_playable")&&pUA!=null&&(this.isLiveHeadPlayable=pUA)}}ndS&&(this.isLivePlayback=!0,uiA.adformat&&uiA.adformat.split("_")[1]!=="8"||this.N.push("heartbeat"))}var LZ0= jO.isPrivate;LZ0!==void 0&&(this.isPrivate=$o(this.isPrivate,LZ0))}if(O){var tqY=jO||null,BPW=!1,ln=O.errorScreen;BPW=ln&&(ln.playerLegacyDesktopYpcOfferRenderer||ln.playerLegacyDesktopYpcTrailerRenderer||ln.ypcTrailerRenderer)?!0:tqY&&tqY.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(O.status);if(!BPW){this.errorCode=raM(O.errorCode)||"auth";var Do=ln&&ln.playerErrorMessageRenderer;if(Do){this.playerErrorMessageRenderer=Do;var obB=Do.reason;obB&&(this.errorReason=g.Cw(obB)); var UeA=Do.subreason;UeA&&(this.RD=g.Cw(UeA),this.Rr=UeA)}else this.errorReason=O.reason||null;var kmA=O.status;if(kmA==="LOGIN_REQUIRED")this.errorDetail="1";else if(kmA==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(kmA==="AGE_CHECK_REQUIRED"){var cXt=O.errorScreen,vb7=cXt&&cXt.playerKavRenderer;this.errorDetail=vb7&&vb7.kavUrl?"4":"3"}else this.errorDetail=O.isBlockedInRestrictedMode?"5":"0"}}var RjM=this.playerResponse.interstitialPods;RjM&&RmA(this,RjM);this.JJ&&this.eventId&&(this.JJ= nv(this.JJ,{ei:this.eventId}));var meM=this.playerResponse.captions;if(meM&&meM.playerCaptionsTracklistRenderer)a:{var tH=meM.playerCaptionsTracklistRenderer;this.captionTracks=[];if(tH.captionTracks)for(var D1Y=g.A(tH.captionTracks),X7W=D1Y.next();!X7W.done;X7W=D1Y.next()){var BB=X7W.value,x1M=mNG(BB.baseUrl);if(!x1M)break a;var PmM={is_translateable:!!BB.isTranslatable,languageCode:BB.languageCode,languageName:BB.name&&g.Cw(BB.name),url:x1M,vss_id:BB.vssId,kind:BB.kind};PmM.name=BB.trackName;PmM.displayName= BB.name&&g.Cw(BB.name);this.captionTracks.push(new g.z_(PmM))}this.P7=tH.audioTracks||[];this.XC=tH.defaultAudioTrackIndex||0;this.cL=[];if(tH.translationLanguages)for(var lS7=g.A(tH.translationLanguages),SaS=lS7.next();!SaS.done;SaS=lS7.next()){var hC=SaS.value,ua={};ua.languageCode=hC.languageCode;ua.languageName=g.Cw(hC.languageName);if(hC.translationSourceTrackIndices){ua.translationSourceTrackIndices=[];for(var hjY=g.A(hC.translationSourceTrackIndices),Cmm=hjY.next();!Cmm.done;Cmm=hjY.next())ua.translationSourceTrackIndices.push(Cmm.value)}if(hC.excludeAudioTrackIndices){ua.excludeAudioTrackIndices= [];for(var wUS=g.A(hC.excludeAudioTrackIndices),fTY=wUS.next();!fTY.done;fTY=wUS.next())ua.excludeAudioTrackIndices.push(fTY.value)}this.cL.push(ua)}this.sz=[];if(tH.defaultTranslationSourceTrackIndices)for(var WZS=g.A(tH.defaultTranslationSourceTrackIndices),QHd=WZS.next();!QHd.done;QHd=WZS.next())this.sz.push(QHd.value);this.d2=!!tH.contribute&&!!tH.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Yl=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&xMM(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var eju;this.compositeLiveIngestionOffsetToken=(eju=this.playerResponse.playbackTracking)==null?void 0:eju.compositeLiveIngestionOffsetToken;var b$t;this.compositeLiveStatusToken=(b$t=this.playerResponse.playbackTracking)==null?void 0: b$t.compositeLiveStatusToken;this.V("html5_fill_default_mosaic_audio_track_id")&&ZP(this)&&(this.GZ.dg=FoB(this));if(this.V("html5_enable_player_response_driven_playback_rate_clamping")){var ISe,zju,gbM=(ISe=this.playerResponse.playerConfig)==null?void 0:(zju=ISe.granularVariableSpeedConfig)==null?void 0:zju.minimumPlaybackRate,Ebe,H$d,yXS=(Ebe=this.playerResponse.playerConfig)==null?void 0:(H$d=Ebe.granularVariableSpeedConfig)==null?void 0:H$d.maximumPlaybackRate;gbM&&yXS&&(this.c9=gbM/100,this.dc= yXS/100)}}Ge(this,Y);Y.queue_info&&(this.queueInfo=Y.queue_info);var VqS=Y.hlsdvr;VqS!=null&&(this.allowLiveDvr=Number(VqS)===1?KD()?!0:VS&&Ur<5?!1:!0:!1);this.adQueryId=Y.ad_query_id||null;this.Q3||(this.Q3=Y.encoded_ad_safety_reason||null);this.ET=$o(this.ET,Y.infringe||Y.muted);this.kRq=Y.authkey;this.Dz=Y.authuser;this.mutedAutoplay=$o(this.mutedAutoplay,Y&&Y.playmuted);this.mutedAutoplayDurationMode=uW(this.mutedAutoplayDurationMode,Y&&Y.muted_autoplay_duration_mode);this.T1=$o(this.T1,Y&&Y.mutedautoplay); var xL=Y.length_seconds;xL&&(this.lengthSeconds=typeof xL==="string"?l5(xL):xL);if(this.isAd()||this.T_||!g.XJ(g.Qz(this.GZ)))this.endSeconds=uW(this.endSeconds,this.Uy||Y.end||Y.endSeconds);else{var ooQ=g.Qz(this.GZ),lv=this.lengthSeconds;switch(ooQ){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":lv>30?this.limitedPlaybackDurationInSeconds=30:lv<30&&lv>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds= lv*.2}}this.Fk=nb(this.Fk,Y.itct);this.cG=$o(this.cG,Y.is_live_destination);this.isLivePlayback=$o(this.isLivePlayback,Y.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.W$();Y.isUpcoming&&(this.isUpcoming=$o(this.isUpcoming,Y.isUpcoming));this.H4=$o(this.H4,Y.post_live_playback);this.jG&&(this.H4=!1);this.isMdxPlayback=$o(this.isMdxPlayback,Y.mdx);var hs=Y.mdx_control_mode;hs&&(this.mdxControlMode=typeof hs==="number"?hs:l5(hs));this.isInlinePlaybackNoAd=$o(this.isInlinePlaybackNoAd, Y.is_inline_playback_no_ad);this.lN=uW(this.lN,Y.reload_count);this.reloadReason=nb(this.reloadReason,Y.reload_reason);this.T3=$o(this.T3,Y.show_content_thumbnail);this.cycToken=Y.cyc||null;var O$m=yz(Y);Object.keys(O$m).length>0&&(this.Z=O$m);this.rg=nb(this.rg,Y.vvt);this.mdxEnvironment=nb(this.mdxEnvironment,Y.mdx_environment);Y.source_container_playlist_id&&(this.sourceContainerPlaylistId=Y.source_container_playlist_id);Y.serialized_mdx_metadata&&(this.serializedMdxMetadata=Y.serialized_mdx_metadata); this.ArZ=Y.osig;this.eventId||(this.eventId=Y.eventid);this.osid||(this.osid=Y.osid);this.playlistId=nb(this.playlistId,Y.list);Y.index&&(this.playlistIndex=this.playlistIndex===void 0?uW(0,Y.index):uW(this.playlistIndex,Y.index));this.e2=Y.pyv_view_beacon_url;this.w8=Y.pyv_quartile25_beacon_url;this.ph=Y.pyv_quartile50_beacon_url;this.vj=Y.pyv_quartile75_beacon_url;this.cj=Y.pyv_quartile100_beacon_url;var FZu=Y.session_data;!this.Pj&&FZu&&(this.Pj=Jw(FZu,"&").feature);this.isFling=uW(this.isFling? 1:0,Y.is_fling)===1;this.vnd=uW(this.vnd,Y.vnd);this.forceAdsUrl=nb(this.forceAdsUrl,Y.force_ads_url);this.Pc=nb(this.Pc,Y.ctrl);this.C1=nb(this.C1,Y.ytr);this.Xx=Y.ytrcc;this.sI=Y.ytrexp;this.Qn=Y.ytrext;this.gL=nb(this.gL,Y.adformat);this.WN=nb(this.WN,Y.attrib);this.slotPosition=uW(this.slotPosition,Y.slot_pos);this.breakType=Y.break_type;this.jT=$o(this.jT,Y.ssrt);this.videoId=kU(Y)||this.videoId;this.W=nb(this.W,Y.vss_credentials_token);this.eU=nb(this.eU,Y.vss_credentials_token_type);this.VI= $o(this.VI,Y.audio_only);this.zZ=$o(this.zZ,Y.aac_high);this.uw=$o(this.uw,Y.prefer_low_quality_audio);this.On=$o(this.On,Y.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?Y.qoe_cat&&(this.PD=this.PD.concat(Y.qoe_cat.split(","))):this.FY=nb(this.FY,Y.qoe_cat);this.UO=$o(this.UO,Y.download_media);var JXW=Y.prefer_gapless;this.S=JXW!=null?$o(this.S,JXW):this.S?this.S:this.GZ.preferGapless&&this.GZ.supportsGaplessShorts();PAS(this.playerResponse)&&this.N.push("ad");var q5u=Y.adaptive_fmts; q5u&&(this.adaptiveFormats=q5u,this.fG("adpfmts",{},!0));var aSS=Y.allow_embed;aSS&&(this.allowEmbed=Number(aSS)===1);var $1t=Y.backgroundable;$1t&&(this.backgroundable=Number($1t)===1);var Ye7=Y.autonav;Ye7&&(this.isAutonav=Number(Ye7)===1);var uOe=Y.autoplay;uOe&&(this.zE=this.rM=Number(uOe)===1);var n7W=Y.iv_load_policy;n7W&&(this.annotationsLoadPolicy=YU(this.annotationsLoadPolicy,n7W,N0));var UtS=Y.cc_lang_pref;UtS&&(this.captionsLanguagePreference=nb(UtS,this.captionsLanguagePreference));var kjS= Y.cc_load_policy;kjS&&(this.l_=YU(this.l_,kjS,N0));var mtB;this.deviceCaptionsOn=(mtB=Y.device_captions_on)!=null?mtB:void 0;var XCW;this.c5=(XCW=Y.device_captions_lang_pref)!=null?XCW:"";var P0Y;this.Az=(P0Y=Y.viewer_selected_caption_langs)!=null?P0Y:[];var Seu=Y.cached_load;Seu&&(this.Sj=$o(this.Sj,Seu));if(Y.dash==="0"||Y.dash===0||Y.dash===!1)this.WG=!0;var C0B=Y.dashmpd;C0B&&(this.eE=g.Mk(C0B,{cpn:this.clientPlaybackNonce}));var ftc=Y.delay;ftc&&(this.Ru=l5(ftc));var NmY=this.Uy||Y.end;if(this.Qm? NmY!=null:NmY!=void 0)this.clipEnd=uW(this.clipEnd,NmY);var Qrd=Y.fmt_list;Qrd&&(this.kP=Qrd);Y.heartbeat_preroll&&this.N.push("heartbeat");this.Xb=-Math.floor(Math.random()*10);this.Gs=-Math.floor(Math.random()*40);var N8c=Y.is_listed;N8c&&(this.isListed=$o(this.isListed,N8c));var iFM=Y.is_private;iFM&&(this.isPrivate=$o(this.isPrivate,iFM));var ZFY=Y.is_dni;ZFY&&(this.sD=$o(this.sD,ZFY));var T8d=Y.dni_color;T8d&&(this.Hg=nb(this.Hg,T8d));var rTA=Y.pipable;rTA&&(this.pipable=$o(this.pipable,rTA)); this.Gt=(this.KE=this.pipable&&this.GZ.Z8)&&!this.GZ.showMiniplayerButton;var MHc=Y.paid_content_overlay_duration_ms;MHc&&(this.paidContentOverlayDurationMs=l5(MHc));var sre=Y.paid_content_overlay_text;sre&&(this.paidContentOverlayText=sre);var dtu=Y.url_encoded_fmt_stream_map;dtu&&(this.Jr=dtu);var Gju=Y.hls_formats;Gju&&(this.hlsFormats=Gju);var ATc=Y.hlsvp;ATc&&(this.hlsvp=ATc);var wN=Y.live_start_walltime;wN&&(this.I_c=typeof wN==="number"?wN:l5(wN));var Wt=Y.live_manifest_duration;Wt&&(this.jj= typeof Wt==="number"?Wt:l5(Wt));var jre=Y.player_params;jre&&(this.playerParams=jre);var Kr0=Y.partnerid;Kr0&&(this.partnerId=uW(this.partnerId,Kr0));var pC0=Y.probe_url;pC0&&(this.probeUrl=zO(g.Mk(pC0,{cpn:this.clientPlaybackNonce})));var inu=Y.pyv_billable_url;inu&&iCG(inu)&&(this.MU=inu);var Znm=Y.pyv_conv_url;Znm&&iCG(Znm)&&(this.d8=Znm);S7A(this,Y);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Yl||this.w9||Y.start||Y.startSeconds)&&this.fG("lss", {css:this.startSeconds,pcss:this.Yl,iss:this.w9,ps:Y.start||void 0,pss:Y.startSeconds||void 0}):this.nT=this.startSeconds=uW(this.startSeconds,this.Yl||this.w9||Y.start||Y.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Lru=Y.live_utc_start;if(Lru!=null)this.liveUtcStartSeconds=Number(Lru);else{var TmG=this.startSeconds;TmG&&isFinite(TmG)&&TmG>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var tHd=Y.utc_start_millis; tHd&&(this.liveUtcStartSeconds=Number(tHd)*.001)}var B8m=Y.stream_time_start_millis;B8m&&(this.Qe=Number(B8m)*.001);var rum=this.w9||Y.start;(this.Qm?rum==null||Number(Y.resume)===1:rum==void 0||Y.resume=="1")||this.isLivePlayback||(this.clipStart=uW(this.clipStart,rum));var o7d=Y.url_encoded_third_party_media;o7d&&(this.Pv=$K(o7d));var M_u=Y.ypc_offer_button_formatted_text;if(M_u){var cTe=JSON.parse(M_u);this.M_=cTe!=null?cTe:null;this.gW=M_u}var v7M=Y.ypc_offer_button_text;v7M&&(this.oG=v7M);var R_S= Y.ypc_offer_description;R_S&&(this.sA=R_S);var Dtt=Y.ypc_offer_headline;Dtt&&(this.jC=Dtt);var xtS=Y.ypc_full_video_message;xtS&&(this.vg=xtS);var lt0=Y.ypc_offer_id;lt0&&(this.xO=lt0);var h_B=Y.ypc_buy_url;h_B&&(this.YE=h_B);var wC7=Y.ypc_item_thumbnail;wC7&&(this.a5=wC7);var Wrd=Y.ypc_item_title;Wrd&&(this.Pg=Wrd);var e_u=Y.ypc_item_url;e_u&&(this.Kr=e_u);var bFA=Y.ypc_vid;bFA&&(this.MO=bFA);Y.ypc_overlay_timeout&&(this.j3=Number(Y.ypc_overlay_timeout));var Itm=Y.ypc_trailer_player_vars;Itm&&(this.Iq= aJ(Itm));var z_Y=Y.ypc_original_itct;z_Y&&(this.bv=z_Y);this.QN=nb(this.QN,Y.ucid);this.GH=Y.storyboard_spec||null;this.Xc=Y.live_storyboard_spec||null;this.mz=Y.iv_endscreen_url||null;this.l4=$o(this.l4,Y.ypc_module);this.mW=$o(this.mW,Y.ypc_clickwrap_module);this.l4&&this.N.push("ypc");this.mW&&this.N.push("ypc_clickwrap");this.UQ={video_id:Y.video_id,eventid:Y.eventid,cbrand:Y.cbrand,cbr:Y.cbr,cbrver:Y.cbrver,c:Y.c,cver:Y.cver,ctheme:Y.ctheme,cplayer:Y.cplayer,cmodel:Y.cmodel,cnetwork:Y.cnetwork, cos:Y.cos,cosver:Y.cosver,cplatform:Y.cplatform,user_age:Y.user_age,user_display_image:Y.user_display_image,user_display_name:Y.user_display_name,user_gender:Y.user_gender,csi_page_type:Y.csi_page_type,csi_service_name:Y.csi_service_name,enablecsi:Y.enablecsi,enabled_engage_types:Y.enabled_engage_types};kfu(this,Y);var g7B=Y.cotn;g7B&&(this.cotn=g7B);if(GfM(this))wq(this)&&(this.isLivePlayback&&this.eE&&(this.WC=!0),this.CG&&(this.pY=!0));else if(AIS(this))this.WC=!0;else{var E7t,HFc,yTe=((E7t=this.playerResponse)== null?void 0:(HFc=E7t.streamingData)==null?void 0:HFc.adaptiveFormats)||[];if(yTe.length>0)var BT=dNd(this,yTe);else{this.V("html5_log_pafmtstr_ctmp")&&this.fG("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var VHB=this.adaptiveFormats;if(VHB&&!wq(this)){this.GZ.J.X&&(ub=!0);var wF=EZ(VHB),sHd=this.Ls,OFt=this.lengthSeconds,ckC=this.isLivePlayback,oa=this.H4,Wl=this.GZ,voC=Guc(wF);if(ckC||oa){var FrS=Wl==null?void 0:Wl.experiments,lI=new bj("",FrS,!0);lI.W$=!0;lI.isManifestless=!0;lI.j=!oa;lI.isLive= !oa;lI.H4=oa;for(var JTB=g.A(wF),deB=JTB.next();!deB.done;deB=JTB.next()){var ei=deB.value,qem=ET(ei,sHd),nA=H0(ei.url,ei.sp,ei.s),atY=nA.get("id");atY&&atY.includes("%7E")&&(lI.N=!0);var $tS=void 0,RR$=($tS=FrS)==null?void 0:$tS.vz("html5_max_known_end_time_rebase"),DIJ=Number(ei.target_duration_sec)||5,xIu=Number(ei.max_dvr_duration_sec)||14400,Y9W=Number(nA.get("mindsq")||nA.get("min_sq")||"0"),uaM=Number(nA.get("maxdsq")||nA.get("max_sq")||"0")||Infinity;lI.qA=lI.qA||Y9W;lI.fF=lI.fF||uaM;var lz$= !Y6(qem.mimeType);nA&&wz(lI,new GH(nA,qem,{k8:DIJ,UK:lz$,tI:xIu,qA:Y9W,fF:uaM,rd:300,H4:oa,FU:RR$}))}var nL7=lI}else{if(voC==="FORMAT_STREAM_TYPE_OTF"){var e9=OFt;e9=e9===void 0?0:e9;var bn=new bj("",Wl==null?void 0:Wl.experiments,!1);bn.duration=e9||0;for(var Uiu=g.A(wF),GmA=Uiu.next();!GmA.done;GmA=Uiu.next()){var Ip=GmA.value,AuW=ET(Ip,sHd,bn.duration),jH7=H0(Ip.url,Ip.sp,Ip.s);if(jH7)if(AuW.streamType==="FORMAT_STREAM_TYPE_OTF")wz(bn,new AU(jH7,AuW,"sq/0"));else{var hRC=$E(Ip.init),wyG=$E(Ip.index); wz(bn,new xh(jH7,AuW,hRC,wyG))}}bn.isOtf=!0;var kRW=bn}else{var bv=OFt;bv=bv===void 0?0:bv;var I6=new bj("",Wl==null?void 0:Wl.experiments,!1);I6.duration=bv||0;for(var miu=g.A(wF),KXc=miu.next();!KXc.done;KXc=miu.next()){var zt=KXc.value,WRQ=ET(zt,sHd,I6.duration),eRu=$E(zt.init),bvC=$E(zt.index),XtM=H0(zt.url,zt.sp,zt.s);XtM&&wz(I6,new xh(XtM,WRQ,eRu,bvC))}kRW=I6}nL7=kRW}var PvS=nL7;if(wF.length>0){var S90=wF[0];if(this.Y().playerStyle==="hangouts-meet"&&S90.url){var Iz$=g.Yo(S90.url);this.eT=this.eT|| Number(Iz$.expire)}}var zR$=this.isLivePlayback&&!this.H4&&!this.jG&&!this.isPremiere;this.V("html5_live_head_playable")&&(!W2(this)&&zR$&&this.fG("missingLiveHeadPlayable",{}),this.GZ.KG==="yt"&&(PvS.JJ=!0));BT=PvS}else BT=null;this.fG("pafmts",{isManifestFilled:!!BT})}if(BT){I2(this,BT);var CvB=!0}else CvB=!1;CvB?this.enableServerStitchedDai=this.enableServerStitchedDai&&eX(this):this.eE&&(this.GZ.KG==="yt"&&this.W$()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")? this.fG("deprecateMflFallback",{}):this.WC=!0)}var p7e=Y.adpings;p7e&&(this.k5=p7e?aJ(p7e):null);var fo7=Y.feature;fo7&&(this.mG=fo7);var Q6W=Y.referrer;Q6W&&(this.referrer=Q6W);this.clientScreenNonce=nb(this.clientScreenNonce,Y.csn);this.Co=uW(this.Co,Y.root_ve_type);this.w1=uW(this.w1,Y.kids_age_up_mode);this.Qm||Y.kids_app_info==void 0||(this.kidsAppInfo=Y.kids_app_info);this.Qm&&Y.kids_app_info!=null&&(this.kidsAppInfo=Y.kids_app_info);this.HG=$o(this.HG,Y.upg_content_filter_mode);this.unpluggedFilterModeType= uW(this.unpluggedFilterModeType,Y.unplugged_filter_mode_type);var NNu=Y.unplugged_location_info;NNu&&(this.UD=NNu);var iS7=Y.unplugged_partner_opt_out;iS7&&(this.Ez=nb("",iS7));this.Sz=$o(this.Sz,Y.disable_watch_next);this.Zx=nb(this.Zx,Y.internal_ip_override);this.d1=!!Y.is_yto_interstitial;(this.interstitials.length||this.d1)&&this.N.push("yto");var ZS0=Y.u5;ZS0&&(this.u5=ZS0);this.KG=nb(this.KG,Y.csi_timer);Y.watchUrl&&(this.watchUrl=Y.watchUrl);var UL=Y.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&& UL&&dMY(this,UL);if(UL==null?0:UL.ustreamerConfig)this.Ij=x4(UL.ustreamerConfig);var TNt,rsu,M90=UL==null?void 0:(TNt=UL.loggingContext)==null?void 0:(rsu=TNt.qoeLoggingContext)==null?void 0:rsu.serializedContextData;M90&&(this.ytk=M90);g.nV(this.GZ)&&this.GZ.ma&&(this.embedsRct=nb(this.embedsRct,Y.rct),this.embedsRctn=nb(this.embedsRctn,Y.rctn));Y.embed_config&&(this.N5=Y.embed_config);this.dO=this.dO||!!Y.pause_at_start;Y.default_active_source_video_id&&(this.defaultActiveSourceVideoId=Y.default_active_source_video_id)}; g.M.Y=function(){return this.GZ}; g.M.V=function(Y){return this.GZ.V(Y)}; g.M.wV=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.M.hasSupportedAudio51Tracks=function(){var Y;return!((Y=this.sx)==null||!Y.Iu)}; g.M.getUserAudio51Preference=function(){var Y=1;pV(this.GZ)&&this.V("html5_ytv_surround_toggle_default_off")?Y=0:g.AA(this.GZ)&&this.isLivePlayback&&this.jh()&&(Y=0);var u;return(u=g.ck("yt-player-audio51"))!=null?u:Y}; g.M.rJ=function(){this.gg()||(this.K.j||this.K.unsubscribe("refresh",this.rJ,this),this.cn(-1))}; g.M.cn=function(Y){if(!this.isLivePlayback||!this.J||this.J.flavor!=="fairplay"){var u=jZA(this.K,this.pM);if(u.length>0){for(var n=g.A(u),U=n.next();!U.done;U=n.next())U=U.value,U.startSecs=Math.max(U.startSecs,this.zc()),this.V("html5_cuepoint_identifier_logging")&&U.event==="start"&&this.fG("cuepoint",{pubCue:U.identifier,segNum:Y});this.publish("cuepointupdated",u,Y);this.pM+=u.length;if(eX(this)&&this.GZ.gX())for(u=g.A(u),n=u.next();!n.done;n=u.next())n=n.value,this.fG("cuepoint",{segNum:Y,event:n.event, startSecs:n.startSecs,id:n.identifier.slice(-16)}),n.event==="start"&&(n=n.startSecs,this.wE.start=this.yY,this.wE.end=n+3)}}}; g.M.VD=function(){this.gg()||(this.loading=!1,this.publish("dataloaded"))}; g.M.jh=function(){return this.EO!==void 0?this.EO:this.EO=!!this.Ls||!!this.K&&Is(this.K)}; g.M.Vp=function(Y){var u=this;if(this.gg())return By();this.MR=this.TZ=this.X=null;A3(this,"html5_high_res_logging_always")&&(this.GZ.MA=!0);return pIe(this,Y).then(void 0,function(){return t1M(u,Y)}).then(void 0,function(){return BpY(u)}).then(void 0,function(){return cIA(u)})}; g.M.YA=function(Y){this.X=Y;LoW(this,this.X.getAvailableAudioTracks());if(this.X){Y=g.A(this.X.videoInfos);for(var u=Y.next();!u.done;u=Y.next()){u=u.value;var n=u.containerType;n!==0&&(this.w2[n]=u.id)}}Y=this.getAvailableAudioTracks();Y=Y.concat(this.d7);for(u=0;u0?this.X.getAvailableAudioTracks():this.w7||[]:[]}; g.M.getAudioTrack=function(){var Y=this;if(this.G&&!Jn(this.G)){var u=g.G$(this.getAvailableAudioTracks(),function(k){return k.id===Y.G.id}),n; if(!u&&((n=this.G.dX)==null?0:n.id)){var U=this.G.dX.id;u=g.G$(this.getAvailableAudioTracks(),function(k){return k.dX.id===U}); this.fG("nat",{id:this.G.id,track:!!u})}return u||this.d7}if(this.w7){if(!this.b2)for(u=g.A(this.w7),n=u.next();!n.done;n=u.next())if(n=n.value,n.dX.getIsDefault()){this.b2=n;break}return this.b2||this.d7}return this.d7}; g.M.getPlayerResponse=function(){return this.playerResponse}; g.M.getWatchNextResponse=function(){return this.MF}; g.M.getHeartbeatResponse=function(){return this.BG}; g.M.yg=function(){return this.watchUrl?this.watchUrl:this.GZ.getVideoUrl(this.videoId)}; g.M.JY=function(){return!!this.K&&(Nb0(this.K)||iht(this.K)||ZhY(this.K))}; g.M.getEmbeddedPlayerResponse=function(){return this.yu}; g.M.Oe=function(){return(this.eventLabel||this.GZ.rg)==="shortspage"}; g.M.isAd=function(){return!!this.adFormat}; g.M.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.M.u6=function(){var Y,u,n;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((Y=this.playerResponse)==null?0:(u=Y.playerConfig)==null?0:(n=u.daiConfig)==null?0:n.ssaEnabledPlayback)}; g.M.lG=function(){return this.fg}; g.M.vu=function(){return this.l4||this.Bv}; g.M.FC=function(){return A3(this,"html5_samsung_vp9_live")}; g.M.fG=function(Y,u,n){this.publish("ctmp",Y,u,n)}; g.M.Zr=function(Y,u,n){this.publish("ctmpstr",Y,u,n)}; g.M.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.M.getGetAdBreakContext=function(Y,u){Y=Y===void 0?NaN:Y;u=u===void 0?NaN:u;var n={isSabr:xR(this)},U,k=(U=this.getHeartbeatResponse())==null?void 0:U.adBreakHeartbeatParams;k&&(n.adBreakHeartbeatParams=k);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.K&&!isNaN(Y)&&!isNaN(u)){u=Y-u;for(var m in this.K.K)if(U=this.K.K[m],U.info.OX()||U.info.HW())if(U=U.index,U.isLoaded()){m=U.x$(u);U=U.Ia(m)+u-U.getStartTime(m);this.fG("gabc",{t:Y.toFixed(3),mt:u.toFixed(3),sg:m,igt:U.toFixed(3)}); n.livePlaybackPosition={utcTimeMillis:""+(U*1E3).toFixed(0)};break}}return n}; g.M.isEmbedsShortsMode=function(Y,u){if(!g.nV(this.GZ)||(this.GZ.DW||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||u)return!1;var n,U;return!!(((n=this.embeddedPlayerConfig)==null?0:(U=n.embeddedPlayerFlags)==null?0:U.isShortsExperienceEligible)&&Y.width<=Y.height)}; g.M.nG=function(){g.ud.prototype.nG.call(this);this.k5=null;delete this.O$;delete this.accountLinkingConfig;delete this.K;this.X=this.BG=this.playerResponse=this.MF=null;this.Jr=this.adaptiveFormats="";delete this.botguardData;this.dg=this.suggestions=this.e3=null;this.sabrContextUpdates.clear()};var PzW={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},SlS={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},mbS={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},niY={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"},kvS={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},UbW={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"},X3W={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.d(BW,g.e);g.M=BW.prototype;g.M.handleExternalCall=function(Y,u,n){var U=this.state.S[Y],k=this.state.Z[Y],m=U;if(k)if(n&&el(n,ZPC))m=k;else if(!U)throw Error('API call from an untrusted origin: "'+n+'"');this.logApiCall(Y,n);if(m){n=!1;U=g.A(u);for(k=U.next();!k.done;k=U.next())if(String(k.value).includes("javascript:")){n=!0;break}n&&g.Br(Error('Dangerous call to "'+Y+'" with ['+u+"]."));return m.apply(this,u)}throw Error('Unknown API method: "'+Y+'".');}; g.M.logApiCall=function(Y,u,n){var U=this.app.Y();U.hG&&!this.state.N.has(Y)&&(this.state.N.add(Y),g.ka("webPlayerApiCalled",{callerUrl:U.loaderUrl,methodName:Y,origin:u||void 0,playerStyle:U.playerStyle||void 0,embeddedPlayerMode:U.DW,errorCode:n}))}; g.M.publish=function(Y){var u=g.It.apply(1,arguments);this.state.X.publish.apply(this.state.X,[Y].concat(g.Zu(u)));if(Y==="videodatachange"||Y==="resize"||Y==="cardstatechange")this.state.j.publish.apply(this.state.j,[Y].concat(g.Zu(u))),this.state.G.publish.apply(this.state.G,[Y].concat(g.Zu(u)))}; g.M.Yw=function(Y){var u=g.It.apply(1,arguments);this.state.X.publish.apply(this.state.X,[Y].concat(g.Zu(u)));this.state.j.publish.apply(this.state.j,[Y].concat(g.Zu(u)))}; g.M.oa=function(Y){var u=g.It.apply(1,arguments);this.state.X.publish.apply(this.state.X,[Y].concat(g.Zu(u)));this.state.j.publish.apply(this.state.j,[Y].concat(g.Zu(u)));this.state.G.publish.apply(this.state.G,[Y].concat(g.Zu(u)))}; g.M.Ar=function(Y){var u=g.It.apply(1,arguments);this.state.X.publish.apply(this.state.X,[Y].concat(g.Zu(u)));this.state.j.publish.apply(this.state.j,[Y].concat(g.Zu(u)));this.state.G.publish.apply(this.state.G,[Y].concat(g.Zu(u)));this.state.J.publish.apply(this.state.J,[Y].concat(g.Zu(u)))}; g.M.V=function(Y){return this.app.Y().V(Y)}; g.M.nG=function(){if(this.state.element){var Y=this.state.element,u;for(u in this.state.K)this.state.K.hasOwnProperty(u)&&(Y[u]=null);this.state.element=null}g.e.prototype.nG.call(this)};g.d(DP,g.KE);DP.prototype.publish=function(Y){var u=g.It.apply(1,arguments);if(this.J.has(Y))return this.J.get(Y).push(u),!0;var n=!1;try{for(u=[u],this.J.set(Y,u);u.length;)n=g.KE.prototype.publish.call.apply(g.KE.prototype.publish,[this,Y].concat(g.Zu(u.shift())))}finally{this.J.delete(Y)}return n};g.d(xN,g.e);xN.prototype.nG=function(){this.J.dispose();this.G.dispose();this.j.dispose();this.X.dispose();this.N=this.K=this.Z=this.S=this.W=void 0};var Tg7=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.d(h3,BW);g.M=h3.prototype;g.M.getApiInterface=function(){return Array.from(this.state.W)}; g.M.QC=function(Y,u){this.state.J.subscribe(Y,u)}; g.M.XMJ=function(Y,u){this.state.J.unsubscribe(Y,u)}; g.M.getPlayerState=function(Y){return iem(this.app,Y)}; g.M.va=function(){return iem(this.app)}; g.M.BLz=function(Y,u,n){ec(this)&&(za(this.app,!0,1),H9(this.app,Y,u,n,1))}; g.M.getCurrentTime=function(Y,u,n){var U=this.getPlayerState(Y);if(this.app.getAppState()===2&&U===5){var k;return((k=this.app.getVideoData())==null?void 0:k.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&U===0?hf(this.app,Y):Y?this.app.getCurrentTime(Y,u,n):this.app.getCurrentTime(Y)}; g.M.iB=function(){return this.app.getCurrentTime(1)}; g.M.El=function(){var Y=this.app.Ia(1);return isNaN(Y)?this.getCurrentTime(1):Y}; g.M.Q1=function(){return this.app.getDuration(1)}; g.M.a7=function(Y,u){Y=g.gS(Math.floor(Y),0,100);isFinite(Y)&&xG(this.app,{volume:Y,muted:this.isMuted()},u)}; g.M.a_F=function(Y){this.a7(Y,!1)}; g.M.qD=function(Y){xG(this.app,{muted:!0,volume:this.getVolume()},Y)}; g.M.DFa=function(){this.qD(!1)}; g.M.Fd=function(Y){WW(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||xG(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},Y)}; g.M.daG=function(){WW(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.Fd(!1)}; g.M.getPlayerMode=function(){var Y={};this.app.getVideoData().sD&&(Y.pfp={enableIma:this.app.xR().allowImaMonetization,autoplay:fQ(this.app.xR()),mutedAutoplay:this.app.xR().mutedAutoplay});return Y}; g.M.He=function(){var Y=this.app.getPresentingPlayerType();if(Y===2&&!this.app.xQ()){var u=bK(this.app.ym());if(!(ZRQ(u)||g.nV(this.app.Y())&&g.V(this.app.wg().getPlayerState(),1024))||T$$(u))return}(u=this.app.Dy().RM)?u.playVideo():this.app.playVideo(Y)}; g.M.evG=function(){za(this.app,!0,1);this.He()}; g.M.pauseVideo=function(Y){var u=this.app.getPresentingPlayerType();if(u!==2||this.app.xQ()||ZRQ(bK(this.app.ym()))){var n=this.app.Dy().RM;n?n.pauseVideo():this.app.pauseVideo(u,Y)}}; g.M.q6a=function(){var Y=this.app,u=!1;Y.xw.CT&&(Y.Bz.publish("pageTransition"),u=!0);Y.stopVideo(u)}; g.M.clearVideo=function(){}; g.M.getAvailablePlaybackRates=function(){var Y=this.app.Y();if(Y.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(Y.G?Y.ancestorOrigins[0]:window.location.origin)||Y.b2)return IDG;if(Y.V("html5_enable_player_response_driven_playback_rate_clamping")){Y=this.app.getVideoData();var u=Y.c9,n=Y.dc;return E3R.filter(function(U){return U>=u&&U<=n})}return Y.supportsVarispeedExtendedFeatures?zE$:Y.V("web_remix_allow_up_to_3x_playback_rate")&& g.R8(Y)?g3B:xJ}return[1]}; g.M.getPlaybackQuality=function(Y){return(Y=this.app.Lp(Y))?Y.getPlaybackQuality():"unknown"}; g.M.YX2=function(){}; g.M.getAvailableQualityLevels=function(Y){return(Y=this.app.Lp(Y))?(Y=g.dA(Y.jf(),function(u){return u.quality}),Y.length&&(Y[0]==="auto"&&Y.shift(),Y=Y.concat(["auto"])),Y):[]}; g.M.V1=function(){return this.getAvailableQualityLevels(1)}; g.M.NK=function(){return this.uV()}; g.M.xm=function(){return 1}; g.M.getVideoLoadedFraction=function(Y){return this.app.getVideoLoadedFraction(Y)}; g.M.uV=function(){return this.getVideoLoadedFraction()}; g.M.f8=function(){return 0}; g.M.getSize=function(){var Y=this.app.tJ().getPlayerSize();return{width:Y.width,height:Y.height}}; g.M.setSize=function(){this.app.tJ().resize()}; g.M.loadVideoById=function(Y,u,n,U){if(!Y)return!1;Y=lf(Y,u,n);return this.app.loadVideoByPlayerVars(Y,U)}; g.M.e6=function(Y,u,n){Y=this.loadVideoById(Y,u,n,1);za(this.app,Y,1)}; g.M.cueVideoById=function(Y,u,n,U){Y=lf(Y,u,n);this.app.cueVideoByPlayerVars(Y,U)}; g.M.O0=function(Y,u,n){this.cueVideoById(Y,u,n,1)}; g.M.loadVideoByUrl=function(Y,u,n,U){Y=Z2u(Y,u,n);return this.app.loadVideoByPlayerVars(Y,U)}; g.M.zU=function(Y,u,n){Y=this.loadVideoByUrl(Y,u,n,1);za(this.app,Y,1)}; g.M.cueVideoByUrl=function(Y,u,n,U){Y=Z2u(Y,u,n);this.app.cueVideoByPlayerVars(Y,U)}; g.M.Wm=function(Y,u,n){this.cueVideoByUrl(Y,u,n,1)}; g.M.n8=function(){var Y=this.app.Y();if(Y.oV)return"";var u=this.app.xR(),n=void 0;u.isLivePlayback||(n=Math.floor(this.app.getCurrentTime(1)));return Y.getVideoUrl(u.videoId,this.getPlaylistId()||void 0,n)}; g.M.Ba=function(){return this.app.getDebugText()}; g.M.getVideoEmbedCode=function(){var Y=this.app.Y();if(Y.oV)return"";var u=this.app.xR();return Y.getVideoEmbedCode(u.isPrivate?"":u.title,this.app.xR().videoId,this.app.tJ().getPlayerSize(),this.getPlaylistId()||void 0)}; g.M.kt=function(Y,u,n){return AV0(this.app,Y,u,n)}; g.M.removeCueRange=function(Y){return this.app.M8(Y)}; g.M.loadPlaylist=function(Y,u,n,U){this.app.loadPlaylist(Y,u,n,U)}; g.M.QB=function(Y,u,n,U){this.loadPlaylist(Y,u,n,U);za(this.app,!0,1)}; g.M.cuePlaylist=function(Y,u,n,U){this.app.cuePlaylist(Y,u,n,U)}; g.M.nextVideo=function(Y,u){this.app.nextVideo(Y,u)}; g.M.yJq=function(){this.nextVideo();za(this.app,!0,1)}; g.M.previousVideo=function(Y){this.app.previousVideo(Y)}; g.M.saJ=function(){this.previousVideo();za(this.app,!0,1)}; g.M.playVideoAt=function(Y){this.app.playVideoAt(Y)}; g.M.Zsg=function(Y){this.playVideoAt(Y);za(this.app,!0,1)}; g.M.setShuffle=function(Y){var u=this.app.getPlaylist();u&&u.setShuffle(Y)}; g.M.setLoop=function(Y){var u=this.app.getPlaylist();u&&(u.loop=Y)}; g.M.mX=function(){var Y=this.app.getPlaylist();if(!Y)return null;for(var u=[],n=0;n=400)if(Y=this.xR(),this.L.Y().V("client_respect_autoplay_switch_button_renderer"))Y=!!Y.autoplaySwitchButtonRenderer;else{var u,n,U,k;Y=!!((u=Y.getWatchNextResponse())==null?0:(n=u.contents)==null?0:(U=n.twoColumnWatchNextResults)==null?0:(k=U.autoplay)==null?0:k.autoplay)!==!1}if(Y)this.K||(this.K=!0,this.v$(this.K),this.L.Y().V("web_player_autonav_toggle_always_listen")||b27(this), u=this.xR(),this.Gq(u.autonavState),this.L.logVisibility(this.element,this.K));else if(this.K=!1,this.v$(this.K),!this.L.Y().V("web_player_autonav_toggle_always_listen"))for(this.L.Y().V("web_player_autonav_toggle_always_listen"),u=g.A(this.j),n=u.next();!n.done;n=u.next())this.qR(n.value)}; g.M.Gq=function(Y){zit(this)?this.isChecked=Y!==1:((Y=Y!==1)||(g.h6(),Y=g.rL("web_autonav_allow_off_by_default")&&!g.wT(0,141)&&g.z6("AUTONAV_OFF_BY_DEFAULT")?!1:!g.wT(0,140)),this.isChecked=Y);I$u(this)}; g.M.onClick=function(){this.isChecked=!this.isChecked;this.L.Sx(this.isChecked?2:1);I$u(this);if(zit(this)){var Y=this.xR().autoplaySwitchButtonRenderer;this.isChecked&&(Y==null?0:Y.onEnabledCommand)?this.L.Yw("innertubeCommand",Y.onEnabledCommand):!this.isChecked&&(Y==null?0:Y.onDisabledCommand)&&this.L.Yw("innertubeCommand",Y.onDisabledCommand)}this.L.logClick(this.element)}; g.M.getValue=function(){return this.isChecked}; g.M.xR=function(){return this.L.getVideoData(1)};g.d(giY,MA);g.d(L0,g.ic);L0.prototype.onClick=function(){this.enabled&&(tO(this,!this.checked),this.publish("select",this.checked))}; L0.prototype.getValue=function(){return this.checked}; L0.prototype.setEnabled=function(Y){(this.enabled=Y)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var cO=["en-CA","en","es-MX","fr-CA"];g.d(lc,L0);lc.prototype.QF=function(Y){Y?this.K||(this.jE.rD(this),this.K=!0):this.K&&(this.jE.SM(this),this.K=!1);this.K&&tO(this,ekY())}; lc.prototype.G=function(){g.mU(this.element,"ytp-menuitem-highlight-transition-enabled")}; lc.prototype.X=function(Y){var u=ekY();Y!==u&&(u=g.h6(),eo(190,Y),eo(192,!0),u.save(),this.L.Yw("cinematicSettingsToggleChange",Y))}; lc.prototype.nG=function(){this.K&&this.jE.SM(this);L0.prototype.nG.call(this)};g.d(hO,MA);hO.prototype.updateCinematicSettings=function(Y){this.K=Y;var u;(u=this.menuItem)==null||u.QF(Y);this.api.publish("onCinematicSettingsVisibilityChange",Y)};g.d(O2Y,MA);g.d(wd,MA);wd.prototype.setCreatorEndscreenVisibility=function(Y){var u;(u=Ej(this.api.ym()))==null||u.v$(Y)}; wd.prototype.K=function(Y){function u(U){U==="creatorendscreen"&&(U=Ej(n.api.ym()))&&U.zRw(n.hideButton)} var n=this;this.hideButton=Y;this.events.B(this.api,"modulecreated",u);u("creatorendscreen")};g.d(WO,L0);WO.prototype.G=function(Y){this.X(Y?1:0)}; WO.prototype.j=function(){var Y=this.hasDrcAudioTrack(),u=this.K()===1&&Y;tO(this,u);this.setEnabled(Y)}; WO.prototype.nG=function(){this.jE.SM(this);L0.prototype.nG.call(this)};g.d(eL,MA);eL.prototype.getDrcUserPreference=function(){return this.K}; eL.prototype.setDrcUserPreference=function(Y){g.oU("yt-player-drc-pref",Y,31536E3);Y!==this.K&&(this.K=Y,this.updateEnvironmentData(),this.j()&&this.api.JI())}; eL.prototype.updateEnvironmentData=function(){this.api.Y().VI=this.K===1}; eL.prototype.j=function(){var Y,u,n=(Y=this.api.getVideoData())==null?void 0:(u=Y.X)==null?void 0:u.K;if(!n)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var U,k,m=(U=this.api.uI())==null?void 0:(k=U.dX)==null?void 0:k.id;return g3(n,function(X){var S;return X.audio.K&&((S=X.dX)==null?void 0:S.id)===m})}return g3(n,function(X){var S; return((S=X.audio)==null?void 0:S.K)===!0})};g.d(bc,MA);bc.prototype.onVideoDataChange=function(){var Y=this,u=this.api.getVideoData();this.api.JS("embargo",1);var n=u==null?void 0:u.ZZ.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(n==null?0:n.length)?JRu(this,n.filter(function(U){return Fnc(Y,U)})):(u==null?0:u.cueRanges)&&JRu(this,u.cueRanges.filter(function(U){return Fnc(Y,U)}))}; bc.prototype.j=function(Y){return Y.embargo!==void 0}; bc.prototype.nG=function(){MA.prototype.nG.call(this);this.K={}};g.d(IP,MA); IP.prototype.addEmbedsConversionTrackingParams=function(Y){var u=this.api.Y(),n=u.widgetReferrer,U=u.eE,k=this.K,m="",X=u.getWebPlayerContextConfig();X&&(m=X.embedsIframeOriginParam||"");n.length>0&&(Y.embeds_widget_referrer=n);U.length>0&&(Y.embeds_referring_euri=U);u.G&&m.length>0&&(Y.embeds_referring_origin=m);X&&X.embedsFeature&&(Y.feature=X.embedsFeature);k.length>0&&(u.V("embeds_web_enable_lite_experiment_control_arm_logging")?k.unshift(28572):g.XJ(g.Qz(u))&&k.unshift(159628),u=k.join(","),u= g.Io()?u:g.ci(u,4),Y.source_ve_path=u);this.K.length=0};g.d(qld,MA);g.d(a$m,MA);g.d(zG,g.e);zG.prototype.nG=function(){g.e.prototype.nG.call(this);this.K=null;this.j&&this.j.disconnect()};g.d(Ydu,MA);g.d(gd,g.H);gd.prototype.show=function(){g.H.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; gd.prototype.stopTimer=function(){this.K&&(this.K.dispose(),this.K=null)}; gd.prototype.onVideoDataChange=function(Y){var u,n,U=(u=this.api.getVideoData())==null?void 0:(n=u.getPlayerResponse())==null?void 0:n.playabilityStatus;U&&(u=uxt(U),g.V(this.api.getPlayerStateObject(),128)||Y==="dataloaderror"||!u?(this.j=0,this.stopTimer(),this.hide()):(Y=(u.remainingTimeSecs||0)*1E3,Y>0&&(this.show(),this.updateValue("label",Yp(u.label)),UTu(this,Y))))}; gd.prototype.nG=function(){this.stopTimer();g.H.prototype.nG.call(this)};g.d(kYA,MA);g.d(ES,g.H);ES.prototype.onClick=function(){this.Bz.logClick(this.element);this.Bz.Yw("onFullerscreenEduClicked")}; ES.prototype.QF=function(){this.Bz.isFullscreen()?this.K?this.fade.hide():this.fade.show():this.hide();this.Bz.logVisibility(this.element,this.Bz.isFullscreen()&&!this.K)};g.d(HO,MA);HO.prototype.updateFullerscreenEduButtonSubtleModeState=function(Y){var u;(u=this.K)!=null&&(g.PP(u.element,"ytp-fullerscreen-edu-button-subtle",Y),Y&&!u.j&&(u.Bz.V("player_tooltip_data_title_killswitch")?u.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"):u.element.setAttribute("data-tooltip-title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),HW(u.Bz,u.element,u),u.j=!0))}; HO.prototype.updateFullerscreenEduButtonVisibility=function(Y){var u;(u=this.K)!=null&&(u.K=Y,u.QF())};g.d(mTt,g.H);g.d(SdG,MA);g.d(ya,MA);ya.prototype.getSphericalProperties=function(){var Y=g.$N(this.api.ym());return Y?Y.getSphericalProperties():{}}; ya.prototype.setSphericalProperties=function(Y){if(Y){var u=g.$N(this.api.ym());u&&u.setSphericalProperties(Y,!0)}};g.d(Va,MA);g.M=Va.prototype;g.M.createClientVe=function(Y,u,n,U){this.api.createClientVe(Y,u,n,U===void 0?!1:U)}; g.M.createServerVe=function(Y,u,n){this.api.createServerVe(Y,u,n===void 0?!1:n)}; g.M.setTrackingParams=function(Y,u){this.api.setTrackingParams(Y,u)}; g.M.logClick=function(Y,u){this.api.logClick(Y,u)}; g.M.logVisibility=function(Y,u,n){this.api.logVisibility(Y,u,n)}; g.M.hasVe=function(Y){return this.api.hasVe(Y)}; g.M.destroyVe=function(Y){this.api.destroyVe(Y)};var f5B=!1;F2.prototype.setPlaybackRate=function(Y){this.playbackRate=Math.max(1,Y)}; F2.prototype.getPlaybackRate=function(){return this.playbackRate};Yb.prototype.hx=function(Y){var u=g.qO(Y.info.K.info,this.VF.W$),n=Y.info.Wz+this.G,U=Y.info.startTime*1E3;if(this.policy.TZ)try{U=this.policy.TZ?g.B0(Y)*1E3:Y.info.startTime*1E3}catch(X){Math.random()>.99&&this.logger&&(U=Pl(Y.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:Y.info.RH(),encodedDataView:g.oE(U,4)})),U=Y.info.startTime*1E3}var k=Y.info.clipId,m=this.policy.TZ?g.qPm(Y)*1E3:Y.info.duration*1E3;this.policy.TZ&&(U<0||m<0)&&(this.logger&&(this.logger({missingSegInfo:Y.info.RH(), startTimeMs:U,durationMs:m}),this.policy.w9||(U<0&&(U=Y.info.startTime*1E3),m<0&&(m=Y.info.duration*1E3))),this.policy.w9&&(U<0&&(U=Y.info.startTime*1E3),m<0&&(m=Y.info.duration*1E3)));return{formatId:u,Wz:n,startTimeMs:U,clipId:k,Zh:m}}; Yb.prototype.zD=function(Y){this.timestampOffset=Y};u_.prototype.seek=function(Y,u){Y!==this.targetTime&&(this.seekCount=0);this.targetTime=Y;var n=this.videoTrack.j,U=this.audioTrack.j,k=this.audioTrack.SE,m=opM(this,this.videoTrack,Y,this.videoTrack.SE,u);u=opM(this,this.audioTrack,this.policy.sx?Y:m,k,u);Y=Math.max(Y,m,u);this.G=!0;this.VF.isManifestless&&(KxM(this,this.videoTrack,n),KxM(this,this.audioTrack,U));return Y}; u_.prototype.isSeeking=function(){return this.G}; u_.prototype.Mc=function(Y){this.j=Y}; var BKt=2/24;var RoW=0;g.M=i_.prototype;g.M.UF=function(){this.N=this.now();Lbu(this.hR,this.N);this.Xs.UF()}; g.M.Eh=function(Y,u){var n=this.policy.j?(0,g.j2)():0;ZS(this,Y,u);Y-this.W<10&&this.j>0||this.sO(Y,u);this.Xs.Eh(Y,u);this.policy.j&&(Y=(0,g.j2)()-n,this.Gw+=Y,this.Uc=Math.max(Y,this.Uc))}; g.M.sO=function(Y,u){var n=(Y-this.W)/1E3,U=u-this.X;this.Ft||(VF(this.hR,n,U),this.hq(n,U));this.W=Y;this.X=u}; g.M.Bs=function(){this.DW&&DTe(this);this.Xs.Bs()}; g.M.Q$=function(Y){this.DW||(this.DW=this.J-this.CT+Y,this.eE=this.J,this.Ub=this.S)}; g.M.oo=function(Y,u){Y=Y===void 0?this.S:Y;u=u===void 0?this.J:u;this.j>0||(this.Z=Y,this.j=u,this.KG=this.isActive=!0)}; g.M.dG=function(){return this.D0||2}; g.M.H1=function(){}; g.M.Tm=function(){var Y,u={rn:this.requestNumber,rt:(this.S-this.K).toFixed(),lb:this.J,stall:(1E3*this.G).toFixed(),ht:(this.N-this.K).toFixed(),elt:(this.Z-this.K).toFixed(),elb:this.j,d:(Y=this.rg)==null?void 0:Y.TE()};this.url&&C6M(u,this.url);this.policy.j&&(u.mph=this.Uc.toFixed(),u.tph=this.Gw.toFixed());u.ulb=this.MF;u.ult=this.oV;return u}; g.M.now=function(){return(0,g.j2)()}; g.M.deactivate=function(){this.isActive&&(this.isActive=!1)};g.d(rP,i_);g.M=rP.prototype;g.M.Tm=function(){var Y=i_.prototype.Tm.call(this);Y.pb=this.bI;Y.pt=(1E3*this.Iu).toFixed();Y.se=this.Qm;return Y}; g.M.AG=function(){var Y=this.Xs;this.TZ||(this.TZ=Y.AG?Y.AG():1);return this.TZ}; g.M.kp=function(){return this.FS?this.AG()!==1:!1}; g.M.F5=function(Y,u,n){if(!this.lN){this.lN=!0;if(!this.Ft){ZS(this,Y,u);this.sO(Y,u);var U=this.AG();this.Qm=n;if(!this.Ft)if(U===2){U=Y-this.Z0)||M1(this,U,u),this.j>0&&HL(this.hR,u,this.G));Y=(Y-this.K)/ 1E3||.01;this.policy.Z&&!(this.j>0)||Em(this.hR,Y,this.X,l5M(this),this.ID)}this.deactivate()}}; g.M.sF=function(Y,u,n){n&&(this.TZ=2);Y<0&&this.D0&&(Y=this.D0);u?this.zZ+=Y:this.CG+=Y}; g.M.dG=function(){return this.CG||this.zZ||i_.prototype.dG.call(this)}; g.M.sO=function(Y,u){var n=(Y-this.W)/1E3,U=u-this.X,k=this.AG();this.isActive?k===1&&((U>0||this.policy.J)&&(n>.2||U<1024)?(this.G+=n,U>0&&n>.2&&M1(this,this.H2?n:.05,U),this.Ru=!0):U>0&&(M1(this,n,U),this.Ru=!0)):u&&u>=this.policy.K&&this.oo(Y,u);i_.prototype.sO.call(this,Y,u)}; g.M.FZ=function(Y){if(!this.Ft){ZS(this,Y,this.J);var u=(Y-this.K)/1E3;this.AG()!==2&&this.j>0&&(this.G+=(Y-this.W)/1E3,HL(this.hR,this.X,this.G));Em(this.hR,u,this.X,l5M(this),this.ID,!0);Y=(Y-this.W)/1E3;VF(this.hR,Y,0);this.hq(Y,0)}}; g.M.oo=function(Y,u){Y=Y===void 0?this.S:Y;u=u===void 0?this.J:u;if(!(this.j>0)&&(i_.prototype.oo.call(this,Y,u),this.AG()===1)){u=(this.N-this.K)/1E3;var n=(Y-this.N)/1E3;this.FS&&s5(this,this.now());this.nT||this.Ft||(this.D0&&(n=Math.max(0,n-this.D0)),Y=this.hR,Y.Z.Vu(1,u),Y.rg.Vu(1,n))}}; g.M.n9=function(){this.FS&&s5(this,this.now());return this.JJ}; g.M.MG=function(){var Y;if(Y=this.X>this.qC)Y=(Y=this.X)?Y>=this.policy.K:!1;return Y}; g.M.vx=function(){return this.dg}; g.M.zM=function(Y){Y=Y===void 0?this.now():Y;if(this.FS){s5(this,Y);if(this.TZ?this.kp():this.jG!==this.Fk){var u=this.Fk;if(Y0?n+Y:n+Math.max(Y,u)}; g.M.lk=function(){return this.now()-this.Z}; g.M.Cl=function(){return(this.X-this.j)*1E3/this.lk()||0}; g.M.bV=function(){return this.Z};dP.prototype.feed=function(Y){nG(this.K,Y);this.rp()}; dP.prototype.rp=function(){if(this.G){if(!this.K.totalLength)return;var Y=this.K.split(this.X-this.j),u=Y.uo;Y=Y.il;if(!this.Xs.Q$(this.G,u,this.j,this.X))return;this.j+=u.totalLength;this.K=Y;this.j===this.X&&(this.G=this.X=this.j=void 0)}for(;;){var n=0;Y=g.A(eou(this.K,n));u=Y.next().value;n=Y.next().value;n=g.A(eou(this.K,n));Y=n.next().value;n=n.next().value;if(u<0||Y<0)break;if(!(n+Y<=this.K.totalLength)){if(!(this.Xs.Q$&&n+1<=this.K.totalLength))break;n=this.K.split(n).il;this.Xs.Q$(u,n,0, Y)&&(this.G=u,this.j=n.totalLength,this.X=Y,this.K=new un([]));break}Y=this.K.split(n).il.split(Y);n=Y.il;this.Xs.kC(u,Y.uo);this.K=n}}; dP.prototype.dispose=function(){this.K=new un};g.M=G2.prototype;g.M.ud=function(){return 0}; g.M.oE=function(){return null}; g.M.s4=function(){return null}; g.M.M2=function(){return this.state>=1}; g.M.isComplete=function(){return this.state>=3}; g.M.DT=function(){return this.state===5}; g.M.onStateChange=function(){}; g.M.Ve=function(Y){var u=this.state;this.state=Y;this.onStateChange(u);this.callback&&this.callback(this,u)}; g.M.Ag=function(Y){Y&&this.state=this.xhr.HEADERS_RECEIVED}; g.M.getResponseHeader=function(Y){try{return this.xhr.getResponseHeader(Y)}catch(u){return""}}; g.M.UN=function(){return+this.getResponseHeader("content-length")}; g.M.oA=function(){return this.j}; g.M.Ml=function(){return this.status>=200&&this.status<300&&!!this.j}; g.M.D6=function(){return this.K.totalLength>0}; g.M.cN=function(){var Y=this.K;this.K=new un;return Y}; g.M.KB=function(){return this.K}; g.M.abort=function(){this.gg=!0;this.xhr.abort()}; g.M.Aq=function(){return!0}; g.M.LB=function(){return this.X}; g.M.UX=function(){return""};g.M=gpu.prototype;g.M.getResponseHeader=function(Y){return Y==="content-type"?this.K.get("type"):""}; g.M.abort=function(){}; g.M.Df=function(){return!0}; g.M.UN=function(){return this.range.length}; g.M.oA=function(){return this.loaded}; g.M.Ml=function(){return!!this.loaded}; g.M.D6=function(){return!!this.j.totalLength}; g.M.cN=function(){var Y=this.j;this.j=new un;return Y}; g.M.KB=function(){return this.j}; g.M.Aq=function(){return!0}; g.M.LB=function(){return!!this.error}; g.M.UX=function(){return this.error};g.M=Hqd.prototype;g.M.start=function(Y){var u={credentials:"include",cache:"no-store"};Object.assign(u,this.S);this.G&&(u.signal=this.G.signal);Y=new Request(Y,u);fetch(Y).then(this.N,this.onError).then(void 0,U$)}; g.M.onDone=function(){this.gg()||this.Xs.Bs()}; g.M.getResponseHeader=function(Y){return this.responseHeaders?this.responseHeaders.get(Y):null}; g.M.Df=function(){return!!this.responseHeaders}; g.M.oA=function(){return this.j}; g.M.UN=function(){return+this.getResponseHeader("content-length")}; g.M.Ml=function(){return this.status>=200&&this.status<300&&!!this.j}; g.M.D6=function(){return!!this.K.totalLength}; g.M.cN=function(){var Y=this.K;this.K=new un;return Y}; g.M.KB=function(){return this.K}; g.M.gg=function(){return this.J}; g.M.abort=function(){this.X&&this.X.cancel().catch(function(){}); this.G&&this.G.abort();this.J=!0}; g.M.Aq=function(){return!0}; g.M.LB=function(){return this.W}; g.M.UX=function(){return this.errorMessage};g.M=yd0.prototype;g.M.onDone=function(){if(!this.gg){this.status=this.xhr.status;try{this.response=this.xhr.response,this.j=this.response.byteLength}catch(Y){}this.K=!0;this.Xs.Bs()}}; g.M.SH=function(){this.xhr.readyState===2&&this.Xs.UF()}; g.M.onProgress=function(Y){this.gg||(this.status=this.xhr.status,this.K||(this.j=Y.loaded),this.Xs.Eh((0,g.j2)(),Y.loaded))}; g.M.Df=function(){return this.xhr.readyState>=2}; g.M.getResponseHeader=function(Y){try{return this.xhr.getResponseHeader(Y)}catch(u){return g.Br(Error("Could not read XHR header "+Y)),""}}; g.M.UN=function(){return+this.getResponseHeader("content-length")}; g.M.oA=function(){return this.j}; g.M.Ml=function(){return this.status>=200&&this.status<300&&this.K&&!!this.j}; g.M.D6=function(){return this.K&&!!this.response&&!!this.response.byteLength}; g.M.cN=function(){var Y=this.response;this.response=void 0;return new un([new Uint8Array(Y)])}; g.M.KB=function(){return new un([new Uint8Array(this.response)])}; g.M.abort=function(){this.gg=!0;this.xhr.abort()}; g.M.Aq=function(){return!1}; g.M.LB=function(){return!1}; g.M.UX=function(){return""};g.d(K$,g.e);K$.prototype.Cu=function(){if(!this.QI.length)return[];var Y=this.QI;this.QI=[];this.X=g.MX(Y).info;return Y}; K$.prototype.Pw=function(){return this.QI}; K$.prototype.nG=function(){g.e.prototype.nG.call(this);this.K=null;this.QI.length=0;this.mq.length=0;this.X=null};g.d(L$,g.e);g.M=L$.prototype; g.M.DAW=function(){if(!this.gg()){var Y=(0,g.j2)(),u=!1;if(this.policy.ma){Y=Y-(this.timing.j>0?this.timing.Z:this.timing.K)-this.timing.dG()*1E3;var n=gR(tX(this),!1);Y>=2E3*n?u=!0:Y>=this.policy.iJ*n&&(this.K=this.policy.wO)}else if(this.timing.j>0){if(this.J){this.policy.uD&&(this.K=0);return}var U=this.timing.vx();this.timing.zM();var k=this.timing.vx();k-U>=this.policy.VI*.8?(this.K++,this.logger.debug(function(){return"Mispredicted by "+(k-U).toFixed(0)}),u=this.K>=5):this.K=0}else{var m=Y- this.timing.n9(); this.policy.wO&&m>0&&(this.K+=1);u=gR(tX(this),!1)*this.policy.Qn;(u=m>u*1E3)&&this.logger.debug(function(){return"Elbow late by "+m.toFixed(3)})}this.K>0&&this.Xs.xp(); u?this.SI():this.j.start()}}; g.M.SI=function(){this.G=!0;this.Xs.VM();this.lastError="net.timeout";o5(this)}; g.M.canRetry=function(Y){var u=tX(this);Y=Y?this.policy.Kr:this.policy.Hk;return u.timedOut0&&(u=Si(u.K,0),Y.ubyte=u,n===1&&u===0&&(Y.b248180278=!0))}this.Ab&&(Y.rc=this.policy.d9?this.Ab:this.Ab.toString());this.policy.Qe&&this.mP&&(Y.tr=this.mP);Y.itag=this.info.mq[0].K.info.itag;Y.ml=""+ +this.info.mq[0].K.qa();Y.sq=""+this.info.mq[0].Wz;this.Xf&&(Y.ifi=""+ +as(this.info.uN.j));this.Ab!==410&&this.Ab!==500&&this.Ab!==503||(Y.fmt_unav="true");var U;(n=this.errorMessage||((U=this.xhr)==null?void 0: U.UX()))&&(Y.msg=n);this.IC&&(Y.smb="1");this.info.isDecorated()&&(Y.sdai="1");return Y}; g.M.z8=function(){return ho0(this.timing)}; g.M.UX=function(){return this.xhr.UX()||""}; g.M.MG=function(){return this.isComplete()||this.timing.MG()}; g.M.Eh=function(){!this.gg()&&this.xhr&&(this.Ab=this.xhr.status,this.policy.w2&&this.fk&&this.nY(!1),this.FT()?this.Ag(2):!this.kG&&this.MG()&&(this.Ag(),this.kG=!0))}; g.M.UF=function(){if(!this.gg()&&this.xhr){if(!this.Py&&this.xhr.Df()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var Y=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Py=((0,g.j2)()-Y)/1E3}this.xhr.Df()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.rY&&!$VS()&&g.oU("yt-player-headers-readable",!0,2592E3);Y=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var u=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),n;(n=this.wF)==null||n.stop();this.EA=Y||this.EA; this.b5=u||this.b5}}; g.M.Bs=function(){var Y=this.xhr;if(!this.gg()&&Y){this.Ab=Y.status;Y=this.f2(Y);if(this.policy.Qe){var u;(u=this.wF)==null||u.stop()}Y===5?o5(this.DY):this.Ve(Y);this.DY.j.stop()}}; g.M.f2=function(Y){var u=this;L9B(this);if(cU(this.DY,this.xhr.status,this.PS?this.timing.KG||this.OL:this.xhr.Ml(),!1,this.VZ))return 5;var n="";vU(this.DY,this.xhr)&&(n=a5G(this.DY,this.xhr));if(n)return zp(tX(this.DY)),this.info.G3(this.Xf,n),3;n=Y.oA();if(this.B2){this.nY(!0);L9B(this);if(cU(this.DY,this.xhr.status,this.timing.KG||this.OL,!1,this.VZ))return 5;if(!this.y4){if(this.OL)return zp(tX(this.DY)),3;this.DY.lastError="net.closed";return 5}}else{if(cU(this.DY,this.xhr.status,this.xhr.Ml(), !1,this.VZ))return 5;var U=this.info.X;if(U&&U!==n||Y.LB())return this.DY.lastError="net.closed",5;this.nY(!0)}U=bqM(this)?Y.getResponseHeader("X-Bandwidth-Est"):0;if(Y=bqM(this)?Y.getResponseHeader("X-Bandwidth-Est3"):0)this.Ui=!0,this.policy.x6&&(U=Y);Jd0(this.DY,n,U?Number(U):0,this.info.mq[0].type===5);this.logger.debug(function(){var k=u.timing;return"Succeeded, rtpd="+(k.Iu*1E3+k.K-Date.now()).toFixed(0)}); return 4}; g.M.canRetry=function(){this.gg();var Y=this.info.isDecorated();return this.DY.canRetry(Y)}; g.M.onStateChange=function(){this.isComplete()&&(this.policy.LL?this.VM():this.timing.deactivate())}; g.M.SI=function(){this.DY.SI()}; g.M.xp=function(){this.callback&&this.callback(this,this.state)}; g.M.RX=function(){return this.DY.RX()}; g.M.dispose=function(){G2.prototype.dispose.call(this);this.DY.dispose();var Y;(Y=this.wF)==null||Y.dispose();this.policy.LL||this.VM()}; g.M.VM=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.M.Cu=function(){if(!this.Pw().length)return[];this.R1=!0;return this.fk.Cu()}; g.M.FT=function(){if(this.state<1)return!1;if(this.fk&&this.fk.QI.length)return!0;var Y;return((Y=this.xhr)==null?0:Y.D6())?!0:!1}; g.M.Pw=function(){this.nY(!1);return this.fk?this.fk.Pw():[]}; g.M.nY=function(Y){try{if(Y||this.xhr.Df()&&this.xhr.D6()&&!vU(this.DY,this.xhr)&&!this.QD)this.fk||(this.fk=new K$(this.policy,this.info.mq)),this.xhr.D6()&&(this.B2?this.B2.feed(this.xhr.cN()):p$(this.fk,this.xhr.cN(),Y&&!this.xhr.D6()))}catch(u){this.B2?jlY(this,u):g.Br(u)}}; g.M.kC=function(Y,u){switch(Y){case 21:Y=u.split(1).il;K9G(this,Y);break;case 22:this.y4=!0;p$(this.fk,new un([]),!0);break;case 43:if(Y=KG(new MJ(u),1))this.info.G3(this.Xf,Y),this.OL=!0;break;case 45:u=xT(new MJ(u));Y=u.h2;u=u.bG;Y&&u&&(this.k6=Y/u);break;case 44:this.I6=KqG(new MJ(u));var n,U,k;!this.timing.KG&&((n=this.I6)==null?void 0:n.action)===4&&((U=this.I6)==null?0:(k=U.Y_)==null?0:k.PS)&&(this.PS=this.I6.Y_.PS);break;case 53:this.policy.Qe&&(Y=GQ0(new MJ(u)).UA)&&(this.wF||(this.UA=Y,this.wF= new g.Vp(this.d6,Y,this)),this.wF.start());break;case 60:this.b0=DF(new MJ(u));break;case 58:if(Y=qpt(new MJ(u)))this.O1=Y,Y.O1===3&&(this.VZ=!0)}}; g.M.Q$=function(Y,u,n,U){n||this.timing.Q$(U);if(Y!==21)return!1;if(Y=this.policy.w2)if(Y*=this.info.mq[0].K.info.NF,u.totalLength+n!==U&&u.totalLength0)return!1;if(!this.xhr.Df())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.B2)var Y=!this.info.X;else this.xhr.UN()?Y=!1:(Y=this.xhr.getResponseHeader("content-type"),Y=Y==="audio/mp4"||Y==="video/mp4"||Y==="video/webm");if(!Y)return!1;if(isNaN(this.info.Ka)){Y=this.xhr.getResponseHeader("x-head-seqnum");var u=this.timing.policy.S?1:0;if(!Y)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(Y)>this.info.mq[0].Wz+u)return!1}return!0}; g.M.e8=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.M.oE=function(){this.xhr&&(this.EA=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.EA}; g.M.s4=function(){this.xhr&&(this.b5=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.b5}; g.M.Sh=function(){return this.DY.Sh()}; g.M.d6=function(){if(!this.gg()&&this.xhr){this.mP="heartbeat";var Y=this.DY;Y.K+=2;this.xp()}};g.d(eq,i_);g.M=eq.prototype;g.M.sO=function(Y,u){var n=(Y-this.W)/1E3,U=u-this.X;this.j>0?U>0&&(this.jG&&(n>.2||U<1024?(this.G+=n,n>.2&&tbc(this,.05,U)):tbc(this,n,U)),this.Fk&&(this.JJ+=U,this.CG+=n)):u>this.policy.K&&this.oo(Y,u);i_.prototype.sO.call(this,Y,u)}; g.M.F5=function(Y,u){ZS(this,Y,u);this.sO(Y,u);this.jG&&(u=this.X*this.snapshot.stall+this.X/this.snapshot.byterate,this.j>0&&HL(this.hR,this.JJ,this.G),Y=(Y-this.K)/1E3||.01,this.policy.Z&&!(this.j>0)||Em(this.hR,Y,this.X,u,!1))}; g.M.FZ=function(Y){ZS(this,Y,this.J);var u=(Y-this.W)/1E3;VF(this.hR,u,0);this.hq(u,0);!this.jG&&this.j>0||(u=this.X*this.snapshot.stall+this.X/this.snapshot.byterate,this.j>0&&(this.G+=(Y-this.W)/1E3,HL(this.hR,this.JJ,this.G)),Em(this.hR,(Y-this.K)/1E3||.01,this.X,u,!1,!0))}; g.M.cw=function(Y){Y=Y.zy||2147483647;(Y&2)!==2&&(this.Fk=!1);(Y&1)===1&&(this.jG=!0)}; g.M.S_=function(Y){Y=Y.zy||2147483647;(Y&2)===2&&(this.Fk=!1);(Y&1)===1&&(this.jG=!1)}; g.M.bV=function(){return this.Z}; g.M.lk=function(){var Y=this.Fk?this.now()-this.W:0;return Math.max(this.CG*1E3+Y,1)}; g.M.Cl=function(){return this.JJ*1E3/this.lk()}; g.M.oo=function(Y,u){Y=Y===void 0?this.S:Y;u=u===void 0?this.J:u;this.j>0||(i_.prototype.oo.call(this,Y,u),u=this.hR,Y=(Y-this.N)/1E3,u.Z.Vu(1,(this.N-this.K)/1E3),u.rg.Vu(1,Y))}; g.M.H1=function(Y){this.zZ=Y}; g.M.Tm=function(){var Y=i_.prototype.Tm.call(this);Y.rbw=this.Cl();Y.rbe=+this.Fk;Y.gbe=+this.jG;Y.ackt=(this.zZ-this.K).toFixed();return Y}; g.M.zM=function(){}; g.M.vx=function(){return NaN}; g.M.n9=function(){return this.K+this.snapshot.delay*1E3};b_.prototype.kC=function(Y,u){switch(Y){case 20:Y=new MJ(u);Y={d_:Gt(Y,1),videoId:KG(Y,2),itag:Gt(Y,3),lmt:Gt(Y,4),xtags:KG(Y,5),KZ:Gt(Y,6),AZ:AC(Y,8),Ap:Gt(Y,9),sjq:Gt(Y,10),startMs:Gt(Y,11),durationMs:Gt(Y,12),xg:Gt(Y,14),timeRange:pG(Y,15,x7Y),i4:Gt(Y,16),HF:Gt(Y,17),clipId:KG(Y,1E3)};this.mE(Y);break;case 21:this.vH(u,!1);break;case 22:this.IF(u);break;case 31:Y=Bl(u,N7W);this.PK(Y);break;case 52:Y=Bl(u,Acc);this.CR(Y);break;default:this.BH(Y,u)}}; b_.prototype.mE=function(){}; b_.prototype.BH=function(){};g.d(I5,b_);g.M=I5.prototype; g.M.BH=function(Y,u){switch(Y){case 35:this.Kb(u);break;case 44:this.QW(u);break;case 43:this.fJ(u);break;case 53:this.Iz(u);break;case 55:Y=new MJ(u);pG(Y,1,Lqt);pG(Y,2,oAY);break;case 56:this.iK();break;case 57:this.GC(u);break;case 42:this.EU(u);break;case 45:this.oF(u);break;case 59:this.Bw(u);break;case 51:this.Ek(u);break;case 49:this.cw(u);break;case 50:this.S_(u);break;case 47:this.Zj(u);break;case 58:this.t6(u);break;case 61:this.Xs.tR.H1((0,g.j2)());break;case 66:this.Z6(u);break;case 46:this.Cx(u); break;case 67:this.onSnackbarMessage(u);break;case 69:this.kx(u)}}; g.M.Ek=function(Y){Y=new MJ(Y);Y={TuW:tC(Y,1,ok),zJZ:tC(Y,2,ok)};this.Xs.Ek(Y)}; g.M.Bw=function(Y){var u=new MJ(Y);Y=LG(u,1);var n=LG(u,2);u=LG(u,3);this.Xs.Bw(Y,n,u)}; g.M.oF=function(Y){Y=xT(new MJ(Y));this.Xs.oF(Y)}; g.M.Zj=function(Y){Y=Bl(Y,T70);this.Xs.Zj(Y)}; g.M.EU=function(Y){Y=new MJ(Y);Y={videoId:KG(Y,1),formatId:pG(Y,2,ok),endTimeMs:Gt(Y,3),bbz:Gt(Y,4),mimeType:KG(Y,5),YG:pG(Y,6,XYd),indexRange:pG(Y,7,XYd),fl:pG(Y,8,PTB)};this.Xs.EU(Y)}; g.M.GC=function(Y){Y=oAY(new MJ(Y));this.Xs.GC(Y)}; g.M.iK=function(){this.Xs.iK()}; g.M.Kb=function(Y){Y=i17(new MJ(Y));this.Xs.Kb(Y)}; g.M.Iz=function(Y){Y=GQ0(new MJ(Y));this.Xs.Iz(Y)}; g.M.QW=function(Y){Y=KqG(new MJ(Y));this.Xs.QW(Y)}; g.M.fJ=function(Y){Y={redirectUrl:KG(new MJ(Y),1)};this.Xs.fJ(Y)}; g.M.vH=function(Y){var u=Si(Y,0);if(Y.totalLength!==1){Y=Y.split(1).il;var n=this.j[u]||null;n&&O5(this.Xs.T4,u,n,Y)}}; g.M.IF=function(Y){Y=Si(Y,0);var u=this.j[Y]||null;u&&this.Xs.IF(Y,u)}; g.M.CR=function(Y){this.Xs.CR(Y)}; g.M.mE=function(Y){var u=Y.d_,n=Y.AZ,U=Y.KZ,k=Y.HF,m=Y.i4,X=Y.Ap,S=Y.startMs,C=Y.durationMs,f=Y.timeRange,Q=Y.xg,N=Y.clipId,Z=Jg(Y);Y=czQ.has(bO[""+Y.itag]);this.j[u]=Z;this.Xs.sF(Z,Y,{d_:u,AZ:!!n,KZ:U!=null?U:-1,Ap:X!=null?X:-1,startMs:S!=null?S:-1,durationMs:C!=null?C:-1,xg:Q,HF:k,i4:m,clipId:N,timeRange:f})}; g.M.cw=function(Y){Y={zy:Gt(new MJ(Y),1)};this.Xs.cw(Y)}; g.M.S_=function(Y){Y={zy:Gt(new MJ(Y),1)};this.Xs.S_(Y)}; g.M.PK=function(Y){this.Xs.PK(Y)}; g.M.t6=function(Y){Y=qpt(new MJ(Y));this.Xs.t6(Y)}; g.M.Z6=function(Y){Y={QG:pG(new MJ(Y),1,s8G)};this.Xs.Z6(Y)}; g.M.onSnackbarMessage=function(Y){Y=Gt(new MJ(Y),1);this.Xs.onSnackbarMessage(Y)}; g.M.kx=function(Y){Y={G8:tC(new MJ(Y),1,mGc)};this.Xs.kx(Y)}; g.M.Cx=function(Y){Y=new MJ(Y);Y={reloadPlaybackParams:pG(Y,1,Jeu),Bb:AC(Y,2)};this.Xs.Cx(Y)};g.d(z2,g.e);g.M=z2.prototype;g.M.xI=function(){return Array.from(this.JR.keys())}; g.M.nL=function(Y){Y=this.JR.get(Y);var u=Y.QI;Y.wy+=u.totalLength;Y.QI=new un;return u}; g.M.cW=function(Y){return this.JR.get(Y).cW}; g.M.Ln=function(Y){return this.JR.get(Y).Ln}; g.M.sF=function(Y,u,n){this.JR.get(Y)||Rwm(this,Y,u);u=this.JR.get(Y);this.VF?(Y=xzG(this,Y,n),Dzu(this,n.d_,u,Y)):(n.AZ?u.TF=n.xg:u.qj.push(n),u.Xm.push(n))}; g.M.Cd=function(Y){var u;return((u=this.JR.get(Y))==null?void 0:u.mq)||[]}; g.M.Ag=function(){for(var Y=g.A(this.JR.values()),u=Y.next();!u.done;u=Y.next())if(u=u.value,u.CJ){if(u.onProgress)u.onProgress();u.CJ=!1}}; g.M.IF=function(Y,u){this.logger.debug(function(){return"[onMediaEnd] formatId: "+u}); var n=this.JR.get(u);gP?n&&!n.cW&&(n.F$.get(Y)?n.F$.get(Y).Wh=!0:n.F$.set(Y,{data:new un,ih:0,Wh:!0}),n.Ln=!0):n&&!n.Ln&&(n.Ln=!0)}; g.M.Cu=function(Y){if(gP){var u=this.JR.get(Y);if(u)for(var n=g.A(u.F$),U=n.next();!U.done;U=n.next()){var k=g.A(U.value);U=k.next().value;k=k.next().value;var m=u.s8.get(U);if(UT(m[0])){if(!k.Wh)continue;var X=k.data,S=0,C=[];m=g.A(m);for(var f=m.next();!f.done;f=m.next()){f=f.value;var Q=f.X,N=UV(X,S,Q);S+=Q;C.push(new py(f,N))}u.mD.push.apply(u.mD,g.Zu(C))}else if(k.data.totalLength>0||!m[0].range&&k.Wh)X=void 0,S=m[0],C=k.ih,m=k.data,S.range||(X=k.Wh),X=new py(pjc(S,S.j+C,m.totalLength,X),m), k.ih+=X.info.X,u.mD.push(X);u.F$.get(U).data=new un;k.Wh&&u.F$.delete(U)}Y=this.JR.get(Y);if(!Y)return[];u=Y.mD;Y.mD=[];n=g.A(u);for(U=n.next();!U.done;U=n.next())Y.wy+=U.value.info.X;return u||[]}n=(u=this.JR.get(Y))==null?void 0:u.fk;if(!n)return[];this.nY(Y,n);return n.Cu()}; g.M.FT=function(Y){if(gP)return VB(this,Y);var u,n,U;return!!((n=(u=this.JR.get(Y))==null?void 0:u.fk)==null?0:(U=n.Pw())==null?0:U.length)||VB(this,Y)}; g.M.nY=function(Y,u){for(;VB(this,Y);){var n=this.nL(Y);var U=Y;U=this.JR.get(U).cW&&!yB(this,U);p$(u,n,U&&vEd(this,Y))}}; g.M.nG=function(){g.e.prototype.nG.call(this);for(var Y=g.A(this.JR.keys()),u=Y.next();!u.done;u=Y.next())E5(this,u.value);var n;if((n=this.Ex)==null?0:n.Yv)for(Y=g.A(this.JR.values()),u=Y.next();!u.done;u=Y.next())u=u.value,u.F$.clear(),u.s8.clear(),u.mD.length=0,u.mq.length=0,u.Xm.length=0,u.qj.length=0;this.JR.clear()}; var gP=!1;g.d(FR,g.e);g.M=FR.prototype;g.M.Eh=function(){!this.gg()&&this.xhr&&(this.nY(!1),ut(this.Xs,this))}; g.M.UF=function(){}; g.M.Bs=function(){if(!this.gg()&&this.xhr){var Y=this.f2();Y===5?o5(this.DY):this.Ve(Y);this.DY.j.stop();var u;(u=this.Wu)==null||u.stop()}}; g.M.f2=function(){var Y="";vU(this.DY,this.xhr)&&(Y=a5G(this.DY,this.xhr));if(Y)return this.info.uN.G3(this.Xf,Y),3;this.nY(!0);if(cU(this.DY,this.xhr.status,this.xhr.Ml(),this.info.Oh(),this.VZ))return 5;if(this.v1)return 3;Jd0(this.DY,this.xhr.oA(),0,this.Oh());this.policy.MR&&MXW(this.Xs);return 4}; g.M.nY=function(Y){var u=this.xhr;if((Y||!vU(this.DY,this.xhr))&&u.D6()){Y=u.cN();var n=Y.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+n}); this.B2.feed(Y)}}; g.M.kC=function(Y,u){this.xhr.Aq()&&Y===21&&ewY(this);this.P1.kC(Y,u)}; g.M.Q$=function(Y,u,n,U){n||(this.tR.Q$(U),this.policy.lR&&Y===21&&ewY(this));if(Y!==21)return!1;this.tR.KG=!0;Y=u.totalLength;n||(this.Se=Si(u,0),u=u.split(1).il);var k=this.policy.dE,m=this.P1.j[this.Se],X=this.VF.X.get(m);if(k&&X&&(k*=X.info.NF,Y+n!==U&&Y0){this.policy.ma&&this.DY.j.stop();Y=this.tR.lk();u=this.tR.Cl();var n=b4Y(this,Y);if(!(u>n.bW||n.rb>0&&this.info.Ll()>n.rb)){this.Y3=(0,g.j2)();var U;(U=this.Wu)==null||U.stop();this.policy.MR&&(U=this.Xs,Y={V5:Math.round(u*Y/1E3),vN:Y},U.policy.MR&&(U.rg=Y,U.qO++));this.SI()}}}}; g.M.SI=function(){this.DY.SI()}; g.M.QW=function(Y){this.Xs.QW(Y,this.by())}; g.M.fJ=function(Y){this.v1=!0;this.info.uN.G3(this.Xf,Y.redirectUrl)}; g.M.cw=function(Y){this.tR instanceof eq&&this.tR.cw(Y)}; g.M.S_=function(Y){this.tR instanceof eq&&this.tR.S_(Y)}; g.M.EU=function(Y){var u=Y.formatId,n=Jg({itag:u.itag,lmt:u.lmt,xtags:u.xtags}),U,k,m=new al(((U=Y.YG)==null?void 0:U.first)||0,((k=Y.YG)==null?void 0:k.nH)||0),X,S;U=new al(((X=Y.indexRange)==null?void 0:X.first)||0,((S=Y.indexRange)==null?void 0:S.nH)||0);this.VF.X.get(n)||(n=Y.fl||{},n.mimeType=Y.mimeType,n.itag=u.itag,n.lastModified=""+(u.lmt||0),n.xtags=u.xtags,Y=this.VF,u=H0(""),n=gz(n,null),wz(Y,new xh(u,n,m,U)))}; g.M.oF=function(Y){this.Xs.oF(Y,this.by())}; g.M.onSnackbarMessage=function(Y){if(this.policy.En)this.Xs.onSnackbarMessage(Y)}; g.M.kx=function(Y){this.policy.Gw&&this.Xs.kx(Y,this.by())}; g.M.PK=function(Y){this.Ze=Y;this.L5=(0,g.j2)();this.Xs.PK(Y)}; g.M.Bw=function(Y,u,n){this.Xs.Bw(Y,u,n)}; g.M.GC=function(Y){Y.scope===2&&(this.nP=Y);this.Xs.GC(Y)}; g.M.iK=function(){this.uQ=!0;this.Xs.iK()}; g.M.Ek=function(Y){this.policy.j3&&this.Xs.Ek(Y)}; g.M.Zj=function(Y){this.Xs.Zj(Y,this.by())}; g.M.t6=function(Y){Y.O1===3&&(this.VZ=!0);this.Xs.t6(Y)}; g.M.Z6=function(Y){this.Xs.Z6(Y)}; g.M.Cx=function(Y){this.Xs.Cx(Y)}; g.M.canRetry=function(){this.gg();return this.DY.canRetry(!1)}; g.M.dispose=function(){if(!this.gg()){g.e.prototype.dispose.call(this);this.DY.dispose();var Y;(Y=this.Wu)==null||Y.dispose();this.Ve(-1);this.VM()}}; g.M.Ve=function(Y){this.state=Y;ut(this.Xs,this)}; g.M.Oh=function(){return this.info.Oh()}; g.M.m2=function(){return this.uQ}; g.M.Qw=function(){return this.nP}; g.M.sF=function(Y,u,n){n.clipId&&(this.clipId=n.clipId);this.policy.j&&!u&&(this.VN=n.Ap);this.T4.sF(Y,u,n);if(this.policy.vv&&this.Ze&&this.tR instanceof rP){var U=this.Ze.Mg;this.tR.sF(n.durationMs/1E3,u,U>0&&n.Ap+1>=U)}this.T4.JR.get(Y).TW=!0}; g.M.IF=function(Y,u){this.T4.IF(Y,u)}; g.M.CR=function(Y){this.requestIdentifier=Y}; g.M.Cu=function(Y){return this.T4.Cu(Y)}; g.M.Cd=function(Y){return this.T4.Cd(Y)}; g.M.FT=function(Y){return this.T4.FT(Y)}; g.M.xI=function(){return this.T4.xI()}; g.M.AG=function(){return 1}; g.M.by=function(){return this.tR.requestNumber}; g.M.kJ=function(){return this.requestIdentifier}; g.M.Ff=function(){return this.Xf.Ff()}; g.M.f5=function(){this.VM()}; g.M.VM=function(){this.tR.deactivate();var Y;(Y=this.xhr)==null||Y.abort()}; g.M.isComplete=function(){return this.state>=3}; g.M.oS=function(){return this.state===3}; g.M.DT=function(){return this.state===5}; g.M.RS=function(){return this.state===4}; g.M.Qs=function(){return this.isComplete()}; g.M.M2=function(){return this.state>=1}; g.M.RX=function(){return this.policy.uD?this.DY.RX():0}; g.M.xp=function(){this.policy.uD&&ut(this.Xs,this)}; g.M.jZ=function(){return Sge(this.info)}; g.M.Sh=function(){return this.DY.Sh()}; g.M.Mz=function(){var Y=$T0(this.DY);Object.assign(Y,fAY(this.info));Y.req="sabr";Y.rn=this.by();var u;if((u=this.xhr)==null?0:u.status)Y.rc=this.policy.d9?this.xhr.status:this.xhr.status.toString();var n;(u=(n=this.xhr)==null?void 0:n.UX())&&(Y.msg=u);this.Y3&&(n=b4Y(this,this.Y3-this.tR.bV()),Y.letm=n.Wi,Y.mrbps=n.bW,Y.mram=n.rb);return Y};I4W.prototype.tick=function(Y,u){this.ticks[Y]=u?window.performance.timing.navigationStart+u:(0,g.j2)()};g.d(q1,g.ud);g.M=q1.prototype; g.M.BF=function(Y,u,n,U){if(this.policy.vg&&this.policy.j){var k=Y.hS||null;k?(nhM(this,Y.Wz,nF(this,Y.startTime,Y.Wz),{hS:k,Wz:Y.Wz,yb:!!u,OX:n},this.X),U&&this.X&&this.X.l0(Y.Wz,Y.startTime,this.j,(u==null?void 0:u.K)||[],(u==null?void 0:u.j)||[],(u==null?void 0:u.G)||[],n,(u==null?void 0:u.SC)||0,(u==null?void 0:u.X)||void 0)):this.j===1&&$b(this,5,"noad")}else{var m=!1;this.policy.j&&(m=n?this.DW===Y.Wz:this.jG===Y.Wz);if(this.X&&U&&!m){U=[];m=[];var X=[],S=void 0,C=0;u&&(U=u.K,m=u.j,X=u.G,S= u.X,C=u.SC,this.fG("sdai",{sq:Y.Wz,ssvicpns:U.join("."),ssvid:m.join(".")}));this.policy.j&&(n?this.DW=Y.Wz:this.jG=Y.Wz);this.X.l0(Y.Wz,Y.startTime,this.j,U,m,X,n,C,S)}this.policy.j?n&&(this.j===1&&$b(this,5,"noad"),Y.Wz!==((k=this.K)==null?void 0:k.Wz)&&($ze(this,Y,u,n),isNaN(Y.startTime)||YTM(this,Y.Wz,nF(this,Y.startTime,Y.Wz),!!u,this.X))):n&&$ze(this,Y,u)}}; g.M.sU=function(Y,u,n){var U=this.videoTrack.K.index.iD()<=u;this.K={hS:Y,Wz:u,yb:n};U&&a5(this,Y,u)}; g.M.jP=function(){this.X&&this.X.jP()}; g.M.fG=function(Y,u,n){(Y!=="sdai"||this.policy.MO||(n===void 0?0:n))&&this.loader.fG(Y,u)}; g.M.CY=function(Y,u){var n=this.videoTrack.K.index.x$(Y);if(n>=0){var U;var k=((U=u.FD.Sq(n,2))==null?void 0:U.vt)||"";if(this.policy.j||k)return u.h9(Y,n),Y7(this.loader,Y,Y,n),this.fG("sdai",{cmskpad:1,t:Y.toFixed(3),sq:n}),!0}this.fG("sdai",{cmskpad:0,t:Y.toFixed(3),sq:n});return!1};g.M=X0Y.prototype;g.M.Rn=function(Y,u,n){Y=Y||this.K;this.j.has(Y)||(this.fG("sldai",{setadconfig:"noentry",cid:Y}),this.j.set(Y,{event:"unknown",startTimeSecs:0,Ox:0,BA:[],v5:Date.now()}));var U=this.j.get(Y);U?(U.y5=6,U.BA.push(n),U.r0=u):this.fG("sldai",{setadconfig:"notfound",cid:Y})}; g.M.kx=function(Y,u,n,U){var k;if(!((((k=Y.G8)==null?void 0:k.length)||0)<=0)&&(Y=Y.G8[0],Y.hS)){var m;k=-(((m=Y.hS)==null?void 0:m.fD)||0);Y.timeRange&&(k+=(Y.timeRange.startTicks||0)/(Y.timeRange.timescale||1)-u);var X,S,C,f,Q;u=new Qv(k,((X=Y.hS)==null?void 0:X.CUw)||0,((S=Y.hS)==null?void 0:S.ME)||"",((C=Y.hS)==null?void 0:C.identifier)||"",Cje(((f=Y.hS)==null?void 0:f.event)||0),(((Q=Y.hS)==null?void 0:Q.fD)||0)*1E3);PjM(this,u,n,U)}}; g.M.h9=function(Y,u){this.WU(Y);var n=this.j.get(this.K);n?(this.fG("ssskipad",{cid:this.K,sn:u,mt:Y.toFixed(3)}),n.pP=u):this.fG("ssskipadfail",{cid:this.K,sn:u,mt:Y.toFixed(3)})}; g.M.Vr=function(){for(var Y=g.A(this.j.values()),u=Y.next();!u.done;u=Y.next())u.value.pP=NaN}; g.M.WU=function(Y,u){u&&(this.X=u);if(this.K&&(u=this.j.get(this.K))&&u.startTimeSecs<=Y&&Y<=u.startTimeSecs+u.Ox)return;this.K="";u=g.A(this.j.entries());for(var n=u.next();!n.done;n=u.next()){var U=g.A(n.value);n=U.next().value;U=U.next().value;var k=void 0,m=void 0,X=void 0;if(((k=U)==null?void 0:k.startTimeSecs)<=Y&&Y<=((m=U)==null?void 0:m.startTimeSecs)+((X=U)==null?void 0:X.Ox)){this.K=n;break}}};g.d(PC,g.e);PC.prototype.NW=function(Y,u,n){n=n===void 0?{}:n;this.policy.nU=k4(Y,n,this.G,u===void 0?!1:u)};Nt.prototype.lW=function(Y){var u=this;if(this.policy.kP){var n=new Set(Y);n.size===this.rg.size&&[].concat(g.Zu(n)).every(function(U){return u.rg.has(U)})||(this.loader.fG("lwnmow",{itagDenylist:[].concat(g.Zu(Y)).join(",")}),this.loader.lS(!!n.size),this.N=-1,this.rg=n,i0(this,this.K),this.JJ=!0)}}; Nt.prototype.NW=function(Y,u,n){n=n===void 0?{}:n;var U=this.policy.nU;this.J.NW(Y,u===void 0?!1:u,n);if(U!==this.policy.nU){i0(this,this.K);Zt(this);var k,m;U>this.policy.nU&&((k=this.X)==null?0:yg(k.info))&&((m=this.nextVideo)==null||!yg(m.info))&&(this.KG=!0)}};se.prototype.zD=function(Y){this.timestampOffset=Y;this.flush()}; se.prototype.flush=function(){if(this.K.pos>0){var Y={a:this.track.HW(),u:this.K.TE(),pd:Math.round(this.G),ad:Math.round(this.X)},u=this.j;if(u){var n=u.K.info;Y.itag=n.itag;n.K&&(Y.xtags=n.K);Y.sq=u.Wz;Y.st=u.startTime;Y.sd=u.duration;this.track.policy.Cw&&(Y.si=u.RH());u.G&&(Y.esl=u.j+u.X);u.LU()&&(Y.eos=1)}isNaN(this.timestampOffset)||(Y.to=this.timestampOffset);var U;if(u=(U=this.track.SE)==null?void 0:U.Tw({})){for(var k in u)this.W[k]!==u[k]&&(Y["sb_"+k]=u[k]);this.W=u}this.track.fG("sbu", Y);this.K.reset();this.buffered=[];this.J=this.X=this.G=0;this.timestampOffset=this.j=void 0}};Gj.prototype.dispose=function(){this.oV=!0}; Gj.prototype.gg=function(){return this.oV}; g.d(tT,Error);cC.prototype.skip=function(Y){this.offset+=Y}; cC.prototype.fY=function(){return this.offset};g.M=Oyc.prototype;g.M.RU=function(){return this.j}; g.M.RF=function(){return this.j.length?this.j[this.j.length-1]:null}; g.M.lE=function(){this.j=[];l0(this);Dt(this)}; g.M.nL=function(Y){this.CG=this.j.shift().info;Y.info.equals(this.CG)}; g.M.Cd=function(){return g.dA(this.j,function(Y){return Y.info})}; g.M.HW=function(){return!!this.J.info.audio}; g.M.isDrm=function(){return!!this.J.info.Ls}; g.M.getDuration=function(){return this.J.index.oX()};g.d(n$,G2);g.M=n$.prototype;g.M.onStateChange=function(){this.gg()&&(HU(this.T4,this.formatId),this.K.dispose())}; g.M.Mz=function(){var Y=cgd(this.T4,this.formatId),u;var n=((u=this.T4.JR.get(this.formatId))==null?void 0:u.bytesReceived)||0;var U;u=((U=this.T4.JR.get(this.formatId))==null?void 0:U.wy)||0;return{expected:Y,received:n,bytesShifted:u,sliceLength:yB(this.T4,this.formatId),isAnyMediaEndReceived:this.T4.Ln(this.formatId)}}; g.M.z8=function(){return 0}; g.M.MG=function(){return!0}; g.M.Cu=function(){return this.T4.Cu(this.formatId)}; g.M.Pw=function(){return[]}; g.M.FT=function(){return this.T4.FT(this.formatId)}; g.M.Sh=function(){return this.lastError}; g.M.RX=function(){return 0};g.d(eH,g.e);g.M=eH.prototype;g.M.HW=function(){return!!this.K.info.audio}; g.M.RF=function(){return this.G.RF()}; g.M.nL=function(Y){this.G.nL(Y);var u;(u=this.Z)!=null&&(u.J.add(Y.info.Wz),u.K=Mfm(u,u.N1,u.yO,Y,u.K),u.X=Y,u.W=(0,g.j2)());this.NF=Math.max(this.NF,Y.info.K.info.NF||0)}; g.M.getDuration=function(){return this.K.index.oX()}; g.M.lE=function(){kb(this);this.G.lE()}; g.M.Mo=function(){return this.G}; g.M.isRequestPending=function(Y){return this.X.length?Y===this.X[this.X.length-1].info.mq[0].Wz:!1}; g.M.zD=function(Y){var u;(u=this.Z)==null||u.zD(Y);var n;(n=this.N)==null||n.zD(Y)}; g.M.fG=function(Y,u){this.loader.fG(Y,u)}; g.M.jl=function(){return this.loader.jl()}; g.M.dispose=function(){var Y;(Y=this.N)==null||Y.flush();g.e.prototype.dispose.call(this)};g.d(Pt,g.e);Pt.prototype.X=function(){this.j++>15||(this.K=!this.K,new wLM(this.loader,this.policy,this.hR,this.uN,this.K),this.delay.start())}; g.M=wLM.prototype;g.M.UF=function(){}; g.M.Eh=function(){}; g.M.Bs=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.oA()===this.size)this.loader.fG("rqs",this.getInfo());else{var Y="net.connect";this.xhr.status>200?Y="net.badstatus":this.xhr.Df()&&(Y="net.closed");this.onError(Y)}}; g.M.onError=function(Y){var u=this;this.loader.handleError(Y,this.getInfo());OS("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(n){u.loader.fG("pathprobe",n)},function(n){u.loader.handleError(n.errorCode,n.details)})}; g.M.getInfo=function(){var Y=this.timing.Tm();Y.shost=Jd(this.location.Sp);Y.pb=this.size;return Y};g.d(S9,g.e); S9.prototype.S=function(Y,u){if(Y.S){this.VF.isLive?(Y=this.VF.qA&&this.VF.G?Y.K.J9(this.VF.qA,!1):Y.K.h6(Infinity),Y.Ka=this.Ka):Y=Y.K.J9(0,!1);if(this.KG){var n=this.KG;Y.Ka===0&&(Y.J=n.Z)}else Y.J=this.N;return Y}n=Y.j;if(!n.K.qa())return n.K.GG()?(Y=qA(this.J,Y.K.info.NF,u.K.info.NF,0),Y=n.K.Ay(n,Y)):Y=n.K.GW(n),Y;var U=n.W-this.loader.getCurrentTime(),k=!n.range||n.X===0&&n.j===0?0:n.range.length-(n.j+n.X),m=n.K;this.lY(Y,U)&&k===0&&(this.VF.isManifestless?m=Y.K:(m=n.startTime+mAW,n.X&&(m+=n.duration), Sq(Y,m),n=Y.j,m=n.K));m.GG()?(k=this.X,u=qA(this.J,m.info.NF,u.K.info.NF,U,k.G.length>0&&k.Z===0&&this.loader.YM),U=YL(Y),Y=n.K.Ay(n,u),(u=Y.X)&&Y.mq.length>1&&(U||Y.uN.X||Y.mq[0].K!==n.K?Y=n.K.Ay(n,Y.mq[0].X):(U=Y.mq[Y.mq.length-1],m=U.X/u,!U.G&&m<.4&&(Y=n.K.Ay(n,u-U.X))))):(n.Wz<0&&(u=P0(n),u.pr=""+Y.X.length,this.loader.isSeeking()&&(u.sk="1"),u.snss=n.S,this.loader.fG("nosq",u)),Y=m.GW(n));if(this.policy.DW)for(n=g.A(Y.mq),u=n.next();!u.done;u=n.next())u.value.type=6;return Y}; S9.prototype.lY=function(Y,u){if(!YL(Y)||!Y.K.qa())return!1;var n=this.X.JJ||AB0(Y)||u<=this.policy.lC||this.X.KG;this.logger.debug(function(){return"ready to adapt: "+n+", upgrade pending: "+AB0(Y)+", health: "+u}); return n}; S9.prototype.nG=function(){g.e.prototype.nG.call(this)}; var mAW=2/24;g.d(rN,g.e);rN.prototype.Cg=function(Y,u,n){var U;var k=((U=this.j)==null?void 0:U.reason)==="m"?"m":this.j&&aUS(this,this.j)?this.j.reason:"a";this.loader.Cg(new XO(Y,k,n));Zo(this.loader,u,Y,!0)}; rN.prototype.tK=function(Y,u){for(var n=g.A(this.DW),U=n.next();!U.done;U=n.next())if(U.value.id===Y)return this.J=this.VF.K[Y],hX(this.Ex)&&(this.KG=!0),Y=new XO(this.J,u?"t":"m"),u&&(this.S=!0),Y;this.X=[];return null}; rN.prototype.NW=function(Y,u,n){n=n===void 0?{}:n;this.K.NW(Y,u===void 0?!1:u,n)};s9.prototype.setData=function(Y,u,n){var U=this;n=n===void 0?{}:n;if(u==null?0:u.lN)this.dS=W9c(this,u,n),Y.le=this.uN.le();if(this.Oh())return!0;this.data=Y;this.K=Xo0(Y,function(k,m){var X;(X=U.Xs)==null||X.bN(k,m)},u==null?void 0:u.X); if(!this.K)return!1;this.j=g.yw(this.K,YHm);return!0}; s9.prototype.Oh=function(){return this.requestType===1}; s9.prototype.Ll=function(){var Y;return((Y=this.Xs)==null?void 0:Y.Ll())||0}; s9.prototype.isDecorated=function(){var Y;return!((Y=this.data)==null||!Y.g9)};QTd.prototype.encrypt=function(Y){(0,g.j2)();return this.K.K?MGW(this,Y,this.iv):(new g.SI(this.K.j)).encrypt(Y,this.iv)}; QTd.prototype.decrypt=function(Y,u){(0,g.j2)();return this.K.K?MGW(this,Y,u):(new g.SI(this.K.j)).decrypt(Y,u)};g.d(dN,g.e);dN.prototype.X=function(Y,u){if(u){u=u instanceof g.Od?u:GR(this,u);var n;((n=this.K.get(Y))==null?void 0:Jd(n.location))!==Jd(u)&&this.K.set(Y,new K_e(u,Y))}else this.K.delete(Y)}; dN.prototype.load=function(){var Y=this,u,n,U,k,m,X,S,C,f,Q;return g.l(function(N){switch(N.j){case 1:u=Y.K.get(0);g.pY(N,2);var Z;if(Z=u&&!Y.j)Z=Jd(u.location),Z=Y.j===BU(Z);if(Z){N.qF(4);break}return g.D(N,AAW(Y,Y.j?2:0),5);case 5:if(n=N.K)Y.X(0,n),as(n)&&Y.X(1,$p(n));case 4:g.Bc(N,3);break;case 2:U=g.vc(N);g.Br(U);if(!Y.j){N.qF(3);break}Y.j=!1;return g.D(N,Y.load(),7);case 7:return N.return();case 3:if(!Y.xw.experiments.vz("html5_onesie_probe_ec_hosts")){N.qF(0);break}g.pY(N,9);k=Y;m=k.X;X=3;return g.D(N, AAW(Y,1),11);case 11:return m.call(k,X,N.K),S=Y,C=S.X,f=4,g.D(N,AAW(Y,2),12);case 12:C.call(S,f,N.K);g.Bc(N,0);break;case 9:Q=g.vc(N),g.Br(Q),g.KY(N)}})}; dN.prototype.S=function(){var Y=this,u,n;return g.l(function(U){g.OQ(Y.Z);u=g.YF(Y.xw.experiments,"html5_onesie_prewarm_max_lact_ms");if(dl()>=u)return U.return();(n=Y.K.get(0))&&G_G(Y,n);g.KY(U)})}; var sT0={bYg:0,QAG:1,ypZ:2,ZYV:3,RYc:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};pom.prototype.decrypt=function(Y){var u=this,n,U,k,m,X,S;return g.l(function(C){switch(C.j){case 1:if(u.K.length&&!u.K[0].isEncrypted)return C.return();u.j=!0;u.Dp.ED("omd_s");n=new Uint8Array(16);Xe()?U=new g.Cm(Y):k=new g.SI(Y);case 2:if(!u.K.length||!u.K[0].isEncrypted){C.qF(4);break}m=u.K.shift();if(!U){X=k.decrypt(X5(m.buffer),n);C.qF(5);break}return g.D(C,U.decrypt(X5(m.buffer),n),6);case 6:X=C.K;case 5:S=X;for(var f=0;f=4)){var u=O9(this),n=this.xhr;u.rc=n.status;Y&&(u.ab=!0);if(n.UX()){var U="onesie.net";u.msg=n.UX()}else n.status>=400?U="onesie.net.badstatus":n.Ml()?this.iV||(U="onesie.response.noplayerresponse"):U=n.status===204?"onesie.net.nocontent":"onesie.net.connect";U?this.fail(new g.iO(U,u)):(this.ED("or_fs"),this.tR.F5((0,g.j2)(),n.oA(),0),this.Ve(4),this.hp&&this.fG("rqs",u));this.hp&&this.fG("ombre", "ok."+ +!U);this.Jv=!1;V6(this);e70(this.Dp);if(!this.Ow){this.zO.stop();var k;(k=this.zS)==null||k.stop()}var m;if(Y=(m=this.eq)==null?void 0:jTW(m))for(m=0;m1E3){var Y;(Y=this.tR)==null||Y.FZ((0,g.j2)());Y=O9(this);if(this.xw.gX()&&this.xhr instanceof AX){var u=this.xhr;Y.xrs=u.xhr.readyState;Y.xpb=u.K.totalLength;Y.xdc=u.G}this.fail(new g.iO("net.timeout",Y))}}else(0,g.j2)()-this.tR.K>1E4&&((u=this.tR)==null||u.FZ((0,g.j2)()),this.K2());this.isComplete()||this.KK.start()}}; g.M.K2=function(){this.logger.info("Onesie request timed out");this.Jv=!1;if(!V6(this)){var Y=O9(this);Y.timeout="1";this.fail(new g.iO("onesie.request",Y))}}; g.M.fail=function(Y){var u=this;Y=TF(Y);this.mC?this.IV.Ra(Y):(this.Fy.reject(Y),this.mC=!0);e70(this.Dp);this.Ow||this.zO.stop();this.ED("or_fe");var n,U;(n=this.eq)==null||(U=jTW(n))==null||U.forEach(function(k){u.fG("pathprobe",k)}); this.Ve(5);this.dispose()}; g.M.isComplete=function(){return this.state>=3}; g.M.RS=function(){return this.state===4}; g.M.Qs=function(Y){var u,n;return this.isComplete()||!!((u=this.IZ)==null?0:(n=u.get(Y))==null?0:n.K)}; g.M.oS=function(){return!1}; g.M.DT=function(){return this.state===5}; g.M.notifySubscribers=function(Y){for(var u=0;u102400&&!this.UW&&(this.ED("or100k"),this.UW=!0);if(Y.D6()){var u=Y.cN(),n=u.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+n}); this.hp&&this.fG("ombrss","len."+n);this.B2.feed(u)}if(this.IZ)for(var U=g.A(this.IZ.keys()),k=U.next();!k.done;k=U.next()){var m=k.value;Y=void 0;(Y=this.IZ.get(m))==null||Y.Ag();this.notifySubscribers(m)}}catch(X){this.fail(X)}}; g.M.by=function(){return this.tR.requestNumber}; g.M.kJ=function(Y){return this.CD.get(Y)};g.d(UWd,g.e);g.M=UWd.prototype;g.M.aX=function(Y,u){this.oV=void 0;MXW(this);rxe(this,Y,u)}; g.M.SK=function(Y){if(this.K.length===0)return!1;var u=this.K[0];return u instanceof Fa?Y===this.loader.getCurrentTime()*1E3:!(u instanceof FR&&Co7(u.info))&&Math.abs(u.jZ()-Y)<50}; g.M.Kb=function(Y){this.j=Y;this.oV=(0,g.j2)()+(Y.backoffTimeMs||0)}; g.M.QW=function(Y,u){if(Y.action===void 0){var n=this.IV.R2();n!==void 0&&this.loader.Qb(n)}else if(Y.action!==0||!this.zZ)if(Y.action===0&&this.policy.Jz&&(Y.action=2),Y.hv==="sabr.malformed_config"&&this.policy.Pv>0&&this.TZ++0&&(Y.action=2),n={},n.reason=Y.hv,n.action=Y.action,n.rn=u,Y.action){case 1:this.policy.j&&this.Z&&this.Z.fA(void 0, void 0,n);break;case 0:this.zZ=!0;this.videoData.u6()&&this.policy.j&&this.Z&&this.Z.fA(void 0,void 0,n,!1);this.loader.BX(n);break;case 2:Mz7(Y.hv)!=="sabr.config"&&delete n.reason;this.loader.handleError(Mz7(Y.hv),n,1);break;case 3:this.policy.lN&&((Y=this.VF.Z)!=null&&(Y.Z=!0),this.loader.handleError("sabr.hostfallback",n))}}; g.M.GC=function(Y){Y&&(this.loader.fG("sabrctxt",{onsbrctxt:Y.type,scp:Y.scope,dflt:Y.sendByDefault}),Y.type&&Y.sendByDefault&&this.videoData.Pz.add(Y.type),Y.scope!==2&&(Y.type&&this.videoData.sabrContextUpdates.set(Y.type,Y),this.IV.GC(Y)))}; g.M.iK=function(){}; g.M.oF=function(Y,u){if(Y.h2!==void 0&&Y.bG){var n=Y.h2/Y.bG;this.audioTrack.S=!1;this.videoTrack.S=!1;if(this.policy.KG||this.policy.bb||this.policy.Rj)this.loader.Z0.K=!1;var U=this.loader.xT(n,1);this.policy.dg&&this.policy.j&&this.loader.WU(U,u);this.IV.getCurrentTime()!==n&&(u={L0:"sabr_seek",Vb:!0,Ev:!0},Y.seekSource&&(u.seekSource=Y.seekSource),QB(this.loader,n+.1,u))}}; g.M.onSnackbarMessage=function(Y){this.IV.publish("onSnackbarMessage",Y)}; g.M.kx=function(Y,u){this.policy.Gw&&this.N&&this.loader.kx(Y,u)}; g.M.PK=function(Y){Y.Mg&&Y.Qq&&aC(this.VF,Y.Mg,Y.Qq);this.policy.xo&&(Y.PR&&Y.mK&&(this.VF.hG=Y.PR/Y.mK),Y.BR&&Y.Qy&&(this.VF.z3=Y.BR/Y.Qy));YN(this.videoData)&&!this.videoData.jG&&Y.Qq&&this.loader.xT(Y.Qq,1E3);Y.Tz!=null&&this.IV.Vx(Y.Tz);this.policy.Pg&&Y.eD&&(Y=((0,g.j2)()-Y.eD)/1E3,this.loader.h7.Vu(1,Y))}; g.M.t6=function(Y){this.loader.t6(Y)}; g.M.KR=function(Y){return this.videoData.Pz.has(Y)}; g.M.Bw=function(Y,u,n){this.policy.X&&this.loader.fG("sabrctxtplc",{start:Y?Y.join("_"):"",stop:u?u.join("_"):"",discard:n?n.join("_"):""});if(Y){Y=g.A(Y);for(var U=Y.next();!U.done;U=Y.next())this.videoData.Pz.add(U.value)}if(u)for(u=g.A(u),Y=u.next();!Y.done;Y=u.next())Y=Y.value,this.videoData.Pz.has(Y)&&this.videoData.Pz.delete(Y);if(n)for(n=g.A(n),u=n.next();!u.done;u=n.next())if(u=u.value,this.videoData.sabrContextUpdates.has(u)&&(this.videoData.sabrContextUpdates.delete(u),u===3&&(this.videoData.dE= "")),this.policy.N&&this.K.length)for(Y=g.A(this.K),U=Y.next();!U.done;U=Y.next())if(U=U.value,!(U instanceof Fa)){var k=void 0;((k=U.nP)==null?void 0:k.type)===u&&(U.nP=void 0)}}; g.M.Ek=function(){}; g.M.R0=function(Y){this.S=Y}; g.M.yh=function(Y){this.W=Y}; g.M.Zj=function(Y,u){Xa(this.policy,Y,4,u)}; g.M.Z6=function(Y){if(Y==null?0:Y.QG)if(Y=Y.QG.dW){Y=g.A(Y);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u.formatId){var n=this.VF.X.get(Jg(u.formatId));n&&n.info&&(n.info.debugInfo=u.debugInfo)}}}; g.M.Cx=function(Y){this.IV.publish("reloadplayer",Y)}; g.M.l8=function(){return this.IV.l8()||""}; g.M.Ll=function(){var Y=FO(this.audioTrack,!0)*1E3,u=FO(this.videoTrack,!0)*1E3;return Math.min(Y,u)}; g.M.bN=function(Y,u){this.loader.fG(Y,u)}; g.M.L9=function(Y){lPt(this.loader,AUe(this.Pz,Y))}; g.M.nG=function(){g.e.prototype.nG.call(this);this.j=void 0;rxe(this,!0,"i");this.K=[]};tXM.prototype.e_=function(){this.isSeeking=!0;this.K===1&&p2A(this.G);this.K===0&&this.Xn.JS("transitiondetector");this.W=!1};l9m.prototype.rp=function(Y,u){if(this.G)return bk7(this,u);if(u=N1(Y)){var n=u.K;n&&n.X&&n.K&&(Y=Y.X.length?Y.X[0]:null)&&Y.state>=2&&!Y.DT()&&Y.info.Ka===0&&(this.G=Y,this.S=n,this.j=u.info,this.W=this.startTimeSecs=Date.now()/1E3,this.J=this.j.startTime)}return NaN}; l9m.prototype.clear=function(){this.j=this.S=this.G=null;this.K=this.J=this.W=this.startTimeSecs=NaN;this.X=!1};g.d(gR0,g.e);gR0.prototype.nG=function(){Hkt(this);g.e.prototype.nG.call(this)};var yxd=/[?&]cpn=/;g.d(U8,g.e);U8.prototype.flush=function(){var Y={};this.j&&(Y.pe=this.j);this.K.length>0&&(Y.pt=this.K.join("."));this.K=[];return Y}; U8.prototype.stop=function(){var Y=this,u,n,U;return g.l(function(k){if(k.j==1)return g.pY(k,2),g.D(k,(u=Y.G)==null?void 0:u.stop(),4);if(k.j!=2)return(n=k.K)&&Y.logTrace(n),g.Bc(k,0);U=g.vc(k);Y.j=$Wu(U.message);g.KY(k)})}; U8.prototype.logTrace=function(Y){this.encoder.reset();this.encoder.add(1);this.encoder.add(Y.resources.length);for(var u=g.A(Y.resources),n=u.next();!n.done;n=u.next()){n=n.value.replace("https://www.youtube.com/s/","");this.encoder.add(n.length);for(var U=0;U=0?Y:g.Sk(this.provider),this.jG?$qB.has(this.Zk)&&(this.K.size||(this.Zk==="PL"?Y>=this.j+30:Y<=this.KG+30||Y>=this.j+1200&&Y<=this.KG+86400))&&(g.mF(this,Y,"vps",[this.Zk]),this.j=Y):["PL","B","S"].indexOf(this.Zk)>-1&&(this.K.size||Y>=this.j+30)&&(g.mF(this,Y,"vps",[this.Zk]),this.j=Y),this.K.size)){this.sequenceNumber===7E3&&g.Br(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){CO(this,Y);var u=this.provider.IV.XB(); u=g.A(u);for(var n=u.next();!n.done;n=u.next())n=n.value,this.fG(n.key,n.value);u=Y;n=this.provider.IV.FL();var U=n.droppedVideoFrames||0,k=n.totalVideoFrames||0,m=U-this.pR,X=k&&!this.zk;U>n.totalVideoFrames||m>5E3?iQe(this,"html5.badframedropcount","df."+U+";tf."+n.totalVideoFrames):(m>0||X)&&g.mF(this,u,"df",[m]);this.pR=U;this.zk=k;this.Z>0&&(g.mF(this,Y,"glf",[this.Z]),this.Z=0);Pb.isActive()&&(Y=Pb.eg(),Object.keys(Y).length>0&&this.fG("profile",Y));this.Gw&&fO(this,"lwnmow");this.provider.xw.gX()&& this.provider.V("html5_record_now")&&this.fG("now",{wt:(0,g.j2)()});Y={};this.provider.videoData.j&&(Y.fmt=this.provider.videoData.j.itag,(u=this.provider.videoData.G)&&u.itag!==Y.fmt&&(Y.afmt=u.itag));Y.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(Y.adcpn=this.adCpn);this.Cr&&(Y.addocid=this.Cr);this.contentCpn&&(Y.ccpn=this.contentCpn);this.DW&&(Y.cdocid=this.DW);this.provider.videoData.cotn&&(Y.cotn=this.provider.videoData.cotn);Y.el=PW(this.provider.videoData);Y.content_v=CQ(this.provider.videoData); Y.ns=this.provider.xw.KG;Y.fexp=OhG(this.provider.xw.experiments).toString();Y.cl=(789136103).toString();(u=this.provider.videoData.adFormat||this.adFormat)&&(Y.adformat=u);(u=OZ(this.provider.videoData))&&(Y.live=u);this.provider.videoData.jh()&&(Y.drm=1,this.provider.videoData.J&&(Y.drm_system=zA$[this.provider.videoData.J.flavor]||0),this.provider.videoData.drmProduct&&(Y.drm_product=this.provider.videoData.drmProduct));ko()&&this.provider.videoData.W&&(Y.ctt=this.provider.videoData.W,Y.cttype= this.provider.videoData.eU,this.provider.videoData.mdxEnvironment&&(Y.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(Y.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Ds&&(Y.dai_fallback="1")):this.provider.videoData.Gc?Y.dai="cs":this.provider.videoData.En&&(Y.dai="disabled");Y.seq=this.sequenceNumber++;if(this.provider.videoData.hT){if(u=this.provider.videoData.hT,Y&&u)for(u.ns==="3pp"&&(Y.ns="3pp"),this.yY.has(u.ns)&& fO(this,"hbps"),u.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=u.shbpslc),this.provider.xw.experiments.vz("html5_use_server_qoe_el_value")&&this.Pz.delete("el"),n=g.A(Object.keys(u)),U=n.next();!U.done;U=n.next())U=U.value,this.Pz.has(U)||(Y[U]=u[U])}else Y.event="streamingstats",Y.docid=this.provider.videoData.videoId,Y.ei=this.provider.videoData.eventId;this.isEmbargoed&&(Y.embargoed="1");Object.assign(Y,this.provider.xw.K);if(u=Y.seq)u={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+u,serializedWatchEndpointLoggingContext:this.provider.videoData.ytk},this.serializedHouseBrandPlayerServiceLoggingContext&&(u.serializedHouseBrandPlayerServiceLoggingContext=vi(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(u.playerResponseCpn=this.provider.videoData.playerResponseCpn),kQ.length&&(u.decoderInfo=kQ),this.remoteControlMode&&(u.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(u.remoteConnectedDevices= this.remoteConnectedDevices),u=g.yw(u,UGt),u=g.oE(u,4),this.K.set("qclc",[u]);Y=g.Mk("//"+this.provider.xw.PD+"/api/stats/qoe",Y);n=u="";U=g.A(this.K.entries());for(k=U.next();!k.done;k=U.next())m=g.A(k.value),k=m.next().value,m=m.next().value,X=void 0,(X=m)!=null&&X.join&&(k="&"+k+"="+m.join(","),k.length>100?n+=k:u+=k);Cfu(this,Y+u,n.replace(/ /g,"%20"))}this.K.clear()}}; g.M.lS=function(Y){this.Gw=Y}; g.M.o0=function(){if(this.provider.videoData.J){var Y=this.provider.videoData.J;fO(this,"eme-"+(Y.keySystemAccess?"final":PL(Y)?"ms":fD(Y)?"ytfp":CD(Y)?"safarifp":"nonfinal"))}}; g.M.W2=Ye(53);g.M.J4=function(Y){this.isEmbargoed=Y}; g.M.k$=Ye(30);g.M.BC=Ye(36);g.M.onPlaybackRateChange=function(Y){var u=g.Sk(this.provider);Y&&Y!==this.uD&&(g.mF(this,u,"rate",[Y]),this.uD=Y);this.jG||this.reportStats(u)}; g.M.zf=Ye(24);g.M.getPlayerState=function(Y){if(g.V(Y,128))return"ER";if(g.V(Y,2048))return"B";if(g.V(Y,512))return"SU";if(g.V(Y,16)||g.V(Y,32))return"S";if(Y.isOrWillBePlaying()&&g.V(Y,64))return"B";var u=YaB[b$(Y)];g.Zp(this.provider.xw)&&u==="B"&&this.provider.IV.getVisibilityState()===3&&(u="SU");u==="B"&&g.V(Y,4)&&(u="PB");return u}; g.M.Du=function(Y){var u=g.Sk(this.provider);g.mF(this,u,"vfi",[Y===0?"":""+Y,Y===0?"A":"M"])}; g.M.nG=function(){g.e.prototype.nG.call(this);g.Zz(this.oV);g.Zz(this.CT)}; g.M.Gd=function(Y){this.isOffline=Y;g.mF(this,g.Sk(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.M.fG=function(Y,u,n){var U=this.Qe.indexOf(Y)!==-1;U||this.Qe.push(Y);if(!n||!U){var k=typeof u!=="string"?NO(u):u;k=T6u(k);if(!n&&!/^t[.]/.test(k)){var m=g.Sk(this.provider)*1E3;k="t."+m.toFixed()+";"+k}PG(this,"ctmp",Y+":"+k);this.logger.debug(function(){return"ctmp "+Y+" "+k}); fPS(this);return m}}; g.M.Ro=function(Y,u,n){this.J={Jrc:Number(this.fG("glrem",{nst:Y.toFixed(),rem:u.toFixed(),ca:+n})),IT:Y,bp2:u,isAd:n}}; g.M.v3=function(Y,u,n){g.mF(this,g.Sk(this.provider),"ad_playback",[Y,u,n])}; g.M.f6=function(Y,u){var n=g.Sk(this.provider)*1E3;PG(this,"daism","t."+n.toFixed(0)+";smw."+(Y*1E3).toFixed(0)+";smo."+(u*1E3).toFixed(0))}; g.M.resume=function(){var Y=this;isNaN(this.oV)?Qfu(this):this.oV=g.NI(function(){Y.reportStats()},1E4)}; var jt={},YaB=(jt[5]="N",jt[-1]="N",jt[3]="B",jt[0]="EN",jt[2]="PA",jt[1]="PL",jt[-1E3]="ER",jt[1E3]="N",jt),$qB=new Set(["PL","B","S"]),kQ=[];g.d(g.ZW,g.e);g.M=g.ZW.prototype;g.M.initialize=function(Y,u,n){this.logger.debug(function(){return"Initialized, t="+Y}); Y=Y||0;this.policy.K||(u=K$A(this.K),Wjc(this.IV,new XO(u.video,u.reason)),this.IV.jr(new XO(u.audio,u.reason)));this.policy.K&&Q6(this);this.VF.isManifestless&&ODB(this.J);this.S&&w2e(this.S,this.videoTrack.K);u=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var U=!this.VF.isManifestless;this.policy.Rr&&(U=U||this.VF.H4);if(!this.policy.rg||this.policy.CT)this.currentTime=U?Y:u;this.policy.KG&&this.seek(this.getCurrentTime(),{}).Qg(function(){}); if(this.policy.K){var k;((k=this.KG)==null?0:nRY(k,this.l8()||""))&&pWS(this)&&Kjm(this,this.videoTrack)&&Kjm(this,this.audioTrack)&&(s2u(this.j,this.KG),this.policy.J&&jfu(this))}else this.jG&&(LjM(this,this.videoTrack),LjM(this,this.audioTrack),oE7(this.jG),delete this.jG);n?(B6d(this,!1),g.OQ(this.Gk)):(n=this.getCurrentTime()===0,Ni(this.J,this.videoTrack,this.videoTrack.K,n),Ni(this.J,this.audioTrack,this.audioTrack.K,n),this.policy.K&&X2G(this.j,!0),this.policy.KG||this.seek(this.getCurrentTime(), {}).Qg(function(){}),this.timing.tick("gv")); (this.VF.qA||this.VF.fF||this.VF.DW||this.VF.Gw||this.VF.CT)&&this.IV.qV(this.VF)}; g.M.resume=function(){if(this.isSuspended||this.YM){this.logger.debug("Resumed.");this.RN=this.YM=this.isSuspended=!1;try{this.rp()}catch(Y){g.tl(Y)}}}; g.M.Fg=function(){return!this.policy.Cs}; g.M.KA=function(Y,u){Y=Y===void 0?!1:Y;u=u===void 0?!1:u;this.logger.debug("detaching media source");R5A(this);this.IV.mY()&&(this.W=NaN);Y?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.MF&&this.fG("loader",{setsmb:1}),this.policy.DW=!0,this.lE()):(B6d(this,!1),u||this.lE())}; g.M.setAudioTrack=function(Y,u,n){n=n===void 0?!1:n;if(!this.gg()){var U=!isNaN(u);n&&U&&(this.audioTrack.oV=Date.now(),this.policy.gL&&(this.Uc=!0));if(this.policy.K){var k=this.G.tK(Y.id,U);this.logger.debug(function(){return"Logging new audio format: "+k.K.info.id}); this.IV.jr(k)}else{var m=GHY(this.K,Y.id,U);this.logger.debug(function(){return"Logging new audio format: "+m.audio.info.id}); this.IV.jr(new XO(m.audio,m.reason))}U?(this.Gw=Date.now(),n=this.audioTrack.K.index.x$(u),this.fG("setAudio",{id:Y.id,cmt:u,sq:n}),n>=0&&(Y=this.policy.d1?n+1:n,this.policy.K&&this.aX(!0,"mosaic"),JT(this.audioTrack,Y,NaN,NaN),!this.policy.b8&&this.VF.isLive&&q2(this.VF,Y,!1))):this.IV.EY()}}; g.M.setPlaybackRate=function(Y){Y!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(Y)}; g.M.j7=function(Y){var u=this.j.S;this.j.R0(Y);this.fG("scfidc",{curr:Jg(u),"new":Jg(Y)});Y&&Jg(Y)!==Jg(u)&&(this.aX(!0,"caption change"),this.rp())}; g.M.b_=function(Y){this.j.yh(Y)}; g.M.Cg=function(Y){var u=Y.K.info.HW();this.logger.debug(function(){return"New "+(u?"audio":"video")+" format from SABR: "+nh(Y.K.info)}); u?this.IV.jr(Y):Wjc(this.IV,Y)}; g.M.L9=function(Y){kh(Y.mq[Y.mq.length-1])&&lPt(this,AUe(this.K,Y.mq[0].K))}; g.M.y_=function(){return this.IV.y_()}; g.M.YK=function(){return this.IV.YK()}; g.M.t6=function(Y){this.IV.Y().gX()&&this.fG("sps",{status:Y.O1||""});if(Y.O1===1)this.IV.videoData.e7=0;else if(Y.O1===2||Y.O1===3){var u=!1;if(Y.O1===3){u=this.IV.bA();var n;this.lD=(n=Y.hRF)!=null?n:Infinity;this.IV.videoData.e7=u+1;(u=VFW(this))&&this.zH(!0)}this.IV.nJ(!0,u)}}; g.M.J3=function(){return this.IV.J3()}; g.M.Vl=function(){return this.IV.Vl()}; g.M.jt=function(Y){this.IV.jt(Y)}; g.M.p4J=function(){var Y,u=(Y=this.IV.wD())==null?void 0:Y.getCurrentTime();u?this.IV.fG("rms",{cta:u}):g.OQ(this.MR)}; g.M.rp=function(){xDc(this);if(this.ZW&&db(this.ZW)&&!this.ZW.yN()&&(!this.policy.rg||isFinite(this.getCurrentTime()))){var Y=Ir(this.videoTrack);Y=this.policy.Uy&&Y&&Y.LU();this.VF.isManifestless&&this.VF.G&&VN(this.VF)?(this.W=VN(this.VF),this.ZW.Jp(this.W)):$h(this.VF)&&!Y?isNaN(this.W)?(this.W=this.getCurrentTime()+3600,this.ZW.Jp(this.W)):this.W<=this.getCurrentTime()+1800&&(this.W=Math.max(this.W+1800,this.getCurrentTime()+3600),this.ZW.Jp(this.W)):this.ZW.isView||(Y=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.W)||this.W!==Y)&&Y>0&&(this.ZW.Jp(Y),this.W=Y))}if(!this.gg())if(yN(this.VF)&&this.VF.DT()){var u=this.VF;this.handleError("manifest.net.retryexhausted",u.dg?{rc:u.Ab}:{rc:u.Ab.toString()},1)}else if(this.policy.K)a:{try{ikc(this.j);this.VF.isManifestless&&this.policy.J&&C$(this.Z0);var n;((n=this.ZW)==null?0:jJ(n))&&this.c8();X2G(this.j)}catch(X){g.Br(X);u=X;if(u.message.includes("changeType")){this.fG("ctype",{exp:u.name,msg:u.message,s:u.stack});break a}this.handleError("fmt.unplayable", {exp:u.name,msg:u.message,s:u.stack,trg:"sabrslicerqt"},1)}nXt(this);g.OQ(this.dg)}else if(!this.VF.j||!pLA(this.videoTrack)&&!pLA(this.audioTrack)||(this.videoTrack.J||this.audioTrack.J)&&this.policy.Ru?n=!1:(this.lE(),this.IV.seekTo(Infinity,{L0:"checkLoaderTracksSync",xT:!0}),n=!0),!n){xDc(this);this.VF.isManifestless&&(LT0(this.videoTrack),LT0(this.audioTrack),C$(this.Z0),(n=N1(this.videoTrack))&&n.K&&(n=n.K.X&&!this.policy.Im,this.fG(n===this.policy.S.x8?"strm":"strmbug",{strm:n,sfmp4:this.policy.S.x8, dfs:this.policy.Im},!0)));if(this.ZW)this.c8();else if(this.policy.G){var U;n=!1;if(this.policy.sz){var k;Y=g.A([this.videoTrack,this.audioTrack]);for(k=Y.next();!k.done;k=Y.next()){var m=k.value;for(k=N1(m);k&&m.RF()!==Ir(m);k=N1(m))m.nL(k);n=n||!!k}}else(u=N1(this.videoTrack))&&this.videoTrack.nL(u),(U=N1(this.audioTrack))&&this.audioTrack.nL(U);yr(this.videoTrack)&&yr(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(u||U||n)&&YQ(this)}tc7(this);Ni(this.J,this.videoTrack, this.videoTrack.K,!1);Ni(this.J,this.audioTrack,this.audioTrack.K,!1);this.policy.Sz||wWA(this,this.videoTrack,this.audioTrack);bDt(this.J,this.videoTrack,this.audioTrack);bDt(this.J,this.audioTrack,this.videoTrack);nXt(this);this.S&&(u=this.S,u.G?(U=u.W+u.policy.jC,u.X||(U=Math.min(U,u.startTimeSecs+u.policy.xO)),u=Math.max(0,U*1E3-Date.now())):u=NaN,isNaN(u)||g.OQ(this.Qe,u));g.OQ(this.dg)}}; g.M.BX=function(Y){this.IV.BX(Y)}; g.M.c8=function(){var Y=this;if(this.ZW){var u=this.ZW.K,n=this.ZW.j;SSd(this,this.audioTrack);SSd(this,this.videoTrack);var U=bQm(this);if(U){if(this.policy.Cb){if(!u.xZ()){var k=N1(this.audioTrack);if(k){if(!NB(this,this.audioTrack,u,k.info))return;gNG(this,this.audioTrack,u,k)}}if(!n.xZ()&&(k=N1(this.videoTrack))){if(!NB(this,this.videoTrack,n,k.info))return;gNG(this,this.videoTrack,n,k)}}this.oV||(this.oV=(0,g.j2)(),this.logger.debug(function(){return"Appends pause start "+Y.oV+" reason "+U}), this.policy.X&&this.fG("apdps",{r:U}))}else if(this.oV&&(e5t(this,this.oV),this.oV=0),IPe(this),k=!1,OQt(this,this.videoTrack,n)&&(k=!0,EEc(this.timing),O4t(this.timing)),this.ZW&&!this.ZW.cW()&&(OQt(this,this.audioTrack,u)&&(k=!0,H4Y(this.timing),F9M(this.timing)),!this.gg()&&this.ZW))!this.policy.Cs&&yr(this.videoTrack)&&yr(this.audioTrack)&&db(this.ZW)&&!this.ZW.yN()&&(n=!1,n=Ir(this.audioTrack).K,n=n===this.VF.K[n.info.id])&&(this.logger.debug("Setting EOS"),eHd(this.ZW),t0W(this.schedule),this.n6("e")), k&&!this.ZW.isAsync()&&YQ(this)}}; g.M.n6=function(Y){if(this.policy.fE&&this.VF.isManifestless){var u=this.videoTrack.K;if(u){var n=u.index.iD(),U=-1,k=-1;u.index instanceof sT&&(U=u.index.oE(),k=u.index.oX());this.IV.n6(Y,n,U,k)}}}; g.M.aK=function(Y){var u,n=Y===((u=this.ZW)==null?void 0:u.K)?this.audioTrack:this.videoTrack,U;if((U=N1(n))==null?0:U.isLocked){if(this.IV.Y().gX()){var k;this.fG("eosl",{ounlock:(k=N1(n))==null?void 0:k.info.RH()})}var m;YS0(this,Y===((m=this.ZW)==null?void 0:m.K))}var X;if(this.policy.gL&&Y===((X=this.ZW)==null?void 0:X.K)&&this.Iu){u=this.Iu-this.getCurrentTime();var S;this.IV.fG("asl",{l:u,xtag:(S=Ir(this.audioTrack))==null?void 0:S.K.info.K});this.Uc=!1;this.Iu=0}Y.XT()&&Y.v4().length===0&& (Y.Ts(),this.ZW&&!this.ZW.XT()&&(this.IV.Y().gX()&&this.IV.fG("rms",{ld:"seek"}),this.ZW.W=performance.now(),this.IV.Kl(),this.IV.Y().gX()&&g.OQ(this.MR)));var C;(C=n.N)!=null&&d8(C,0);this.policy.Ub?yBA(this):this.rp()}; g.M.CaG=function(Y){if(this.ZW){var u=Ir(Y===this.ZW.K?this.audioTrack:this.videoTrack);if(Y=Y.BB())for(var n=0;n5&&S.KG.shift();u=u.Wz;var C;if((C=this.IV.getVideoData())==null?0:C.enableServerStitchedDai)C=v4B(this.audioTrack,u),n=v4B(this.videoTrack,u),C!==0&&n!==0&&C!==n&&this.handleError("ssdai.avsync",{sq:u,a:C,v:n},0)}}; g.M.sU=function(Y,u,n,U){Y.info.video&&this.X.sU(u,n,U)}; g.M.lW=function(Y){this.K.lW(Y)}; g.M.L4=Ye(12);g.M.aW=function(){if(g.V(this.IV.getPlayerState(),8)){var Y,u,n=(u=(Y=this.IV.wD())==null?void 0:Y.getCurrentTime())!=null?u:this.IV.getCurrentTime(),U;(U=this.Ru)==null||oRY(U,n)}var k;(k=this.lN)==null||g.OQ(k)}; g.M.c_=function(){return this.videoTrack.S||this.audioTrack.S}; g.M.seek=function(Y,u){if(this.gg())return De();if(this.c_())return De("seeking to head");if(this.policy.KG&&!isFinite(Y))return Lxm(this.Z0),g.R1(Infinity);xDc(this);Q6(this);this.policy.K||tc7(this,Y);this.ZW&&this.ZW.K&&this.ZW.j&&!this.IV.getVideoData().oP&&(this.ZW.K.isLocked()||this.ZW.j.isLocked())&&this.IV.EY({reattachOnLockedBuffer:1,vsb:""+this.ZW.j.isLocked(),asb:""+this.ZW.K.isLocked()});var n=this.getCurrentTime(),U=this.Z0.seek(Y,u);if(!this.policy.rg||this.policy.CT)this.currentTime= U;Ue(this.X,Y,n,this.policy.WN&&!u.Vb);YQ(this);return g.R1(U)}; g.M.SK=function(Y){return this.policy.K&&this.j.SK(Y)}; g.M.KR=function(Y){return this.j.KR(Y)}; g.M.aX=function(Y,u){this.j.aX(Y,u)}; g.M.getCurrentTime=function(){if(this.policy.rg){var Y=this.iN()||0;return this.IV.getCurrentTime(!0)-Y}return this.currentTime}; g.M.Da=function(){return this.audioTrack.K.info}; g.M.g_=function(){return this.videoTrack.K.info}; g.M.yq=function(){return this.audioTrack.K.info.aV}; g.M.LA=function(){return this.videoTrack.K.info.aV}; g.M.nG=function(){try{this.KA(),kb(this.audioTrack),kb(this.videoTrack),uv(this.audioTrack),uv(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.e.prototype.nG.call(this)}catch(Y){g.tl(Y)}}; g.M.handleError=function(Y,u,n){n=n===void 0?0:n;var U=ZF(n);Y==="fmt.unplayable"&&this.VF.isLive&&(this.policy.Cb=!1,JU(this.VF));u=new g.iO(Y,u,n);g.SB(this);NO(u.details);this.IV.handleError(u);Y!=="html5.invalidstate"&&u.errorCode!=="fmt.unplayable"&&Y!=="fmt.unparseable"&&U&&this.dispose()}; g.M.Tw=function(){var Y=Ir(this.audioTrack),u=Ir(this.videoTrack);Y={lct:this.getCurrentTime().toFixed(3),lsk:this.Z0.isSeeking(),lmf:this.K.K.isLocked(),lbw:Om(this.schedule).toFixed(3),lhd:yF(this.schedule).toFixed(3),lst:((this.schedule.S.E6()||0)*1E9).toFixed(3),laa:Y?Y.RH():"",lva:u?u.RH():"",lar:this.audioTrack.j?this.audioTrack.j.RH():"",lvr:this.videoTrack.j?this.videoTrack.j.RH():"",laq:""+Vr(this.audioTrack),lvq:""+Vr(this.videoTrack)};this.ZW&&!this.ZW.cW()&&this.ZW.K&&this.ZW.j&&(Y.lab= k6(this.ZW.K.v4()),Y.lvb=k6(this.ZW.j.v4()));this.oV&&(Y.lapt=((0,g.j2)()-this.oV).toFixed(0),Y.lapr=bQm(this));this.JJ&&(Y.lapmabht=((0,g.j2)()-this.JJ).toFixed(0),Y.lapmabh=PU(this,this.audioTrack).toFixed(0));this.zZ&&(Y.lapmvbht=((0,g.j2)()-this.zZ).toFixed(0),Y.lapmvbh=PU(this,this.videoTrack).toFixed(0));this.CG&&(Y.lapsdai=((0,g.j2)()-this.CG).toFixed(0));return Y}; g.M.lE=function(){try{this.policy.K&&this.j.aX(!1,"pending"),this.audioTrack.lE(),this.videoTrack.lE()}catch(Y){g.tl(Y)}this.policy.G=""}; g.M.GL=function(){return JO(this.N)}; g.M.fG=function(Y,u,n){this.IV.fG(Y,u,n===void 0?!1:n)}; g.M.l8=function(){return this.IV.l8()}; g.M.xT=function(Y,u){Y/=u;isNaN(this.timestampOffset)&&Ccd(this,Y-Math.min(Y,this.policy.e7));return(Y-this.timestampOffset)*u}; g.M.iN=function(){return this.timestampOffset}; g.M.isSeeking=function(){return this.Z0.isSeeking()}; g.M.jP=function(){this.X.jP()}; g.M.NW=function(Y,u,n){u=u===void 0?!1:u;n=n===void 0?{}:n;this.policy.K?this.G.NW(Y,u,n):this.K.NW(Y,u,n)}; g.M.CY=function(Y,u){if(this.Z&&this.X.CY(Y,this.Z)){if(this.policy.dg&&this.policy.j){var n=this.videoTrack.K.index.x$(Y),U;(U=this.DW)==null||U.h9(Y,n)}Ccd(this,this.timestampOffset-u);YQ(this);this.policy.j&&(JU(this.VF),uv(this.audioTrack),uv(this.videoTrack),this.lE());return!0}u=this.videoTrack.K.index.x$(Y);this.handleError("ad.skipfailed",{dec:!!this.Z,t:Y.toFixed(3),sq:u});return!1}; g.M.getManifest=function(){return this.VF}; g.M.isOffline=function(){return!!this.IV.getVideoData().cotn}; g.M.uZ=function(Y,u){this.IV.uZ(Y,u)}; g.M.mO=function(Y){if(this.policy.K)this.j.aX(!0,"utc"),this.rp();else{var u=this.IV.getVideoData().qX;if(u){var n=this.J;n.HC=Y;n.qX=u;TR(this)}}}; g.M.Qb=function(Y){this.videoTrack.S=!1;this.audioTrack.S=!1;this.Z0.K=!1;this.IV.Qb(Y)}; g.M.Mc=function(Y){this.Z0.Mc(Y-this.iN())}; g.M.Rl=function(){this.IV.Rl()}; g.M.zH=function(Y){Y!==this.policy.Y$&&((this.policy.Y$=Y)||this.rp())}; g.M.EY=function(Y){this.IV.EY(Y)}; g.M.lS=function(Y){this.IV.lS(Y)}; g.M.Rn=function(Y,u,n){var U;(U=this.DW)==null||U.Rn(Y,u,n)}; g.M.WU=function(Y,u){var n;(n=this.DW)==null||n.WU(Y,u)}; g.M.bA=function(){return this.IV.bA()}; g.M.kx=function(Y,u){if(this.policy.Gw){var n;(n=this.DW)==null||n.kx(Y,this.timestampOffset,u,this.Z||void 0)}};g.M=g.T9.prototype;g.M.Ou=function(Y,u,n,U,k,m){return this.FD.Ou(Y,u,n,U,k,m)}; g.M.Kt=function(Y,u,n,U,k,m){return this.FD.Kt(Y,u,n,U,k,m)}; g.M.EJ=function(Y){return this.FD.EJ(Y)}; g.M.nt=function(Y){this.FD.nt(Y)}; g.M.fA=function(Y,u,n,U){return this.FD.fA(Y,u,n,U)}; g.M.jP=function(){this.FD.jP()}; g.M.h9=function(Y,u){this.FD.h9(Y,u)}; g.M.Vr=function(){this.FD.Vr()}; g.M.N0=Ye(56);g.M.G3=function(Y,u,n){this.FD.G3(Y,u,n)}; g.M.ir=Ye(59);g.M.l0=function(Y,u,n,U,k,m,X,S,C){this.FD.l0(Y,u,n,U,k,m,X,S,C)}; g.M.Vh=function(Y){this.FD.Vh(Y)}; g.M.ix=function(Y){return this.FD.ix(Y)}; g.M.wH=function(Y){return this.FD.wH(Y)}; g.M.ES=function(Y){return this.FD.ES(Y)};g.d(rw,g.ud);g.d(MB,rw);MB.prototype.W=function(Y,u){if(Y&&u){var n=Number(jV(Y,"cpi"))*1+1;isNaN(n)||n<=0||nthis.X&&(this.X=n,g.i4(this.K)||(this.K={},this.G.stop(),this.j.stop())),this.K[u]=Y,g.OQ(this.j))}}; MB.prototype.J=function(){for(var Y=g.A(Object.keys(this.K)),u=Y.next();!u.done;u=Y.next()){var n=u.value;u=this.publish;for(var U=this.X,k=g.Co(this.K[n]),m=[],X=g.A(k[6].split("&")),S=X.next();!S.done;S=X.next())S=S.value,S.indexOf("cpi=")===0?m.push("cpi="+U.toString()):S.indexOf("ek=")===0?m.push("ek="+g.oD(n)):m.push(S);k[6]="?"+m.join("&");n="skd://"+k.slice(2).join("");k=n.length*2;U=new Uint8Array(k+4);U[0]=k%256;U[1]=(k-U[0])/256;for(k=0;k0)for(var n=g.A(this.K),U=n.next();!U.done;U=n.next())if(u===U.value.info.cryptoPeriodIndex){u=!0;break a}u=!1}if(!u){u=(0,g.j2)();a:{n=Y.cryptoPeriodIndex;if(!isNaN(n)){U=g.A(this.X.values());for(var k=U.next();!k.done;k=U.next())if(Math.abs(k.value.cryptoPeriodIndex-n)<=1){n=!0;break a}}n=!1}n?(n=Y.K,n=Math.max(0,Math.random()*((isNaN(n)?120:n)-30))*1E3):n=0;this.publish("log_qoe",{wvagt:"delay."+n,cpi:Y.cryptoPeriodIndex,reqlen:this.K.length}); n<=0?AsM(this,Y):(this.K.push({time:u+n,info:Y}),g.OQ(this.j,n))}}; s8.prototype.nG=function(){this.K=[];rw.prototype.nG.call(this)};var KM={},t9d=(KM.DRM_TRACK_TYPE_AUDIO="AUDIO",KM.DRM_TRACK_TYPE_SD="SD",KM.DRM_TRACK_TYPE_HD="HD",KM.DRM_TRACK_TYPE_UHD1="UHD1",KM);g.d(pte,g.e);g.d(oLt,g.ud);g.M=oLt.prototype;g.M.x5=function(Y){var u=this;if(!(this.gg()||Y.size<=0)){var n={};Y.forEach(function(U,k){var m=SF(u.j)?k:U;k=new Uint8Array(SF(u.j)?U:k);SF(u.j)&&HSt(k);U=g.oE(k,4);HSt(k);k=g.oE(k,4);u.K[U]?u.K[U].status=m:u.K[k]?u.K[k].status=m:u.K[U]={type:"",status:m};gLc(u,u.K[U].type,n)}); Io0(this,",");dw(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.M.error=function(Y,u,n,U){this.gg()||(this.publish("licenseerror",Y,u,n,U),Y==="drm.provision"&&(Y=(Date.now()-this.W)/1E3,this.W=NaN,this.publish("ctmp","provf",{et:Y.toFixed(3)})));ZF(u)&&this.dispose()}; g.M.shouldRetry=function(Y,u){return!Y&&this.requestNumber===u.requestNumber}; g.M.nG=function(){this.K={};g.ud.prototype.nG.call(this)}; g.M.Tw=function(){var Y={ctype:this.Z.contentType||"",length:this.Z.initData.length,requestedKeyIds:this.jG,cryptoPeriodIndex:this.cryptoPeriodIndex};this.X&&(Y.keyStatuses=this.K);return Y}; g.M.getInfo=function(){var Y=this.G.join();if(G9(this)){var u=new Set,n;for(n in this.K)this.K[n].status!=="usable"&&u.add(this.K[n].type);Y+="/UKS."+Array.from(u)}return Y+="/"+this.cryptoPeriodIndex}; g.M.Ff=function(){return this.url};g.d(jk,g.e);g.M=jk.prototype;g.M.UM=function(Y){if(this.J){var u=Y.messageType||"license-request";this.J(new Uint8Array(Y.message),u)}}; g.M.x5=function(){this.S&&this.S(this.K.keyStatuses)}; g.M.onClosed=function(){this.gg()||g.es("xboxone")&&this.X&&this.X("closedShouldNotRetry")}; g.M.Mw=function(Y){this.J&&this.J(Y.message,"license-request")}; g.M.gJ=function(Y){if(this.X){if(this.j){var u=this.j.error.code;Y=this.j.error.systemCode}else u=Y.errorCode,Y=Y.systemCode;this.X("t.prefixedKeyError;c."+u+";sc."+Y,u,Y)}}; g.M.As=function(){this.W&&this.W()}; g.M.update=function(Y){var u=this;if(this.K)return this.K.update(Y).then(null,u6(function(n){V97(u,"t.update",n)})); this.j?this.j.update(Y):this.element.addKey?this.element.addKey(this.Z.keySystem,Y,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,Y,this.initData,this.sessionId);return oo()}; g.M.nG=function(){this.K&&(this.N?this.K.close().catch(g.Br):this.K.close());this.element=null;g.e.prototype.nG.call(this)};g.d(KO,g.e);g.M=KO.prototype;g.M.setServerCertificate=function(){return this.j.setServerCertificate?this.K.flavor==="widevine"&&this.K.ma?this.j.setServerCertificate(this.K.ma):QF(this.K)&&this.K.CG?this.j.setServerCertificate(this.K.CG):null:null}; g.M.createSession=function(Y,u){var n=Y.initData;if(this.K.keySystemAccess){u&&u("createsession");var U=this.j.createSession();fD(this.K)?n=JsA(n,this.K.CG):QF(this.K)&&(n=GRt(n)||new Uint8Array(0));u&&u("genreq");Y=U.generateRequest(Y.contentType,n);var k=new jk(null,null,null,U,null,this.S);Y.then(function(){u&&u("genreqsuccess")},u6(function(X){V97(k,"t.generateRequest",X)})); return k}if(PL(this.K))return aoM(this,n);if(CD(this.K))return q9u(this,n);if((U=this.element)==null?0:U.generateKeyRequest)this.element.generateKeyRequest(this.K.keySystem,n);else{var m;(m=this.element)==null||m.webkitGenerateKeyRequest(this.K.keySystem,n)}return this.G=new jk(this.element,this.K,n,null,null,this.S)}; g.M.Ic=function(Y){var u=$iB(this,Y);u&&u.Mw(Y)}; g.M.xS=function(Y){var u=$iB(this,Y);u&&u.gJ(Y)}; g.M.Nu=function(Y){var u=$iB(this,Y);u&&u.As(Y)}; g.M.getMetrics=function(){var Y=null;if(this.j&&this.j.getMetrics)try{Y=this.j.getMetrics()}catch(u){}return Y}; g.M.nG=function(){this.X=this.j=null;var Y;(Y=this.G)==null||Y.dispose();Y=g.A(Object.values(this.W));for(var u=Y.next();!u.done;u=Y.next())u.value.dispose();this.W={};g.e.prototype.nG.call(this);delete this.element};g.M=pO.prototype;g.M.get=function(Y){Y=this.findIndex(Y);return Y!==-1?this.values[Y]:null}; g.M.remove=function(Y){Y=this.findIndex(Y);Y!==-1&&(this.keys.splice(Y,1),this.values.splice(Y,1))}; g.M.removeAll=function(){this.keys=[];this.values=[]}; g.M.set=function(Y,u){var n=this.findIndex(Y);n!==-1?this.values[n]=u:(this.keys.push(Y),this.values.push(u))}; g.M.findIndex=function(Y){return g.Ay(this.keys,function(u){return g.Oq(Y,u)})};g.d(nQu,g.ud);g.M=nQu.prototype;g.M.oVw=function(Y){this.RO({onecpt:1});Y.initData&&mB0(this,new Uint8Array(Y.initData),Y.initDataType)}; g.M.VEw=function(Y){this.RO({onndky:1});mB0(this,Y.initData,Y.contentType)}; g.M.XJ=function(Y){this.RO({onneedkeyinfo:1});this.xw.V("html5_eme_loader_sync")&&(this.S.get(Y.initData)||this.S.set(Y.initData,Y));k97(this,Y)}; g.M.Xe=function(Y){this.X.push(Y);LO(this)}; g.M.createSession=function(Y){var u=PtW(this)?ghc(Y):g.oE(Y.initData);this.j.get(u);this.DW=!0;Y=new oLt(this.videoData,this.xw,Y,this.drmSessionId);this.j.set(u,Y);Y.subscribe("ctmp",this.hs,this);Y.subscribe("keystatuseschange",this.x5,this);Y.subscribe("licenseerror",this.iW,this);Y.subscribe("newlicense",this.FN,this);Y.subscribe("newsession",this.Hf,this);Y.subscribe("sessionready",this.Zi,this);Y.subscribe("fairplay_next_need_key_info",this.Di,this);this.xw.V("html5_enable_vp9_fairplay")&&Y.subscribe("qualitychange", this.JN,this);Y.subscribe("sabrlicenseconstraint",this.YDz,this);DiB(Y,this.G)}; g.M.FN=function(Y){this.gg()||(this.RO({onnelcswhb:1}),Y&&!this.heartbeatParams&&(this.heartbeatParams=Y,this.publish("heartbeatparams",Y)))}; g.M.Hf=function(){this.gg()||(this.RO({newlcssn:1}),this.X.shift(),this.DW=!1,LO(this))}; g.M.Zi=function(){if(PL(this.K)&&(this.RO({onsnrdy:1}),this.Fk--,this.Fk===0)){var Y=this.KG,u,n;(u=Y.element)==null||(n=u.msSetMediaKeys)==null||n.call(u,Y.X)}}; g.M.x5=function(Y){if(!this.gg()){this.MF||(this.MF=!0,this.xw.gX()&&S8m(this));this.RO({onksch:1});var u=this.JN;if(!G9(Y)&&g.gD&&Y.j.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var n="large";else{n=[];var U=!0;if(G9(Y))for(var k=g.A(Object.keys(Y.K)),m=k.next();!m.done;m=k.next())m=m.value,Y.K[m].status==="usable"&&n.push(Y.K[m].type),Y.K[m].status!=="unknown"&&(U=!1);if(!G9(Y)||U)n=Y.G;n=bSW(n)}u.call(this,n);if(!G9(Y))for(u={},n=g.A(Y.G),U=n.next();!U.done;U=n.next())gLc(Y, U.value,u);this.videoData.authorizedFormats=Y.authorizedFormats;this.publish("keystatuseschange",Y)}}; g.M.hs=function(Y,u){this.gg()||this.publish("ctmp",Y,u)}; g.M.Di=function(Y,u){this.gg()||this.publish("fairplay_next_need_key_info",Y,u)}; g.M.iW=function(Y,u,n,U){this.gg()||(this.videoData.V("html5_log_drm_metrics_on_error")&&S8m(this),this.publish("licenseerror",Y,u,n,U))}; g.M.Kn=function(){return this.Z}; g.M.JN=function(Y){var u=g.c5("auto",Y,!1,"l");if(this.videoData.Y$){if(this.Z.equals(u))return}else if(fv7(this.Z,Y))return;this.Z=u;this.publish("qualitychange");this.RO({updtlq:Y})}; g.M.YDz=function(Y){this.videoData.sabrLicenseConstraint=Y}; g.M.nG=function(){this.K.keySystemAccess&&this.element&&(this.jG?this.element.setMediaKeys(null).catch(g.Br):this.element.setMediaKeys(null));this.element=null;this.X=[];for(var Y=g.A(this.j.values()),u=Y.next();!u.done;u=Y.next())u=u.value,u.unsubscribe("ctmp",this.hs,this),u.unsubscribe("keystatuseschange",this.x5,this),u.unsubscribe("licenseerror",this.iW,this),u.unsubscribe("newlicense",this.FN,this),u.unsubscribe("newsession",this.Hf,this),u.unsubscribe("sessionready",this.Zi,this),u.unsubscribe("fairplay_next_need_key_info", this.Di,this),this.xw.V("html5_enable_vp9_fairplay")&&u.unsubscribe("qualitychange",this.JN,this),u.dispose();this.j.clear();this.W.removeAll();this.S.removeAll();this.heartbeatParams=null;g.ud.prototype.nG.call(this)}; g.M.Tw=function(){for(var Y={systemInfo:this.K.Tw(),sessions:[]},u=g.A(this.j.values()),n=u.next();!n.done;n=u.next())Y.sessions.push(n.value.Tw());return Y}; g.M.getInfo=function(){return this.j.size<=0?"no session":""+this.j.values().next().value.getInfo()+(this.J?"/KR":"")}; g.M.RO=function(Y,u){u=u===void 0?!1:u;this.gg()||(NO(Y),(this.xw.gX()||u)&&this.publish("ctmp","drmlog",Y))};g.d(iOu,g.e);g.M=iOu.prototype;g.M.G7=function(){return!!this.sy}; g.M.Cn=function(){return this.j}; g.M.handleError=function(Y){var u=this;dBd(this,Y);if((Y.errorCode!=="html5.invalidstate"&&Y.errorCode!=="fmt.unplayable"&&Y.errorCode!=="fmt.unparseable"||!szW(this,Y.errorCode,Y.details))&&!KFG(this,Y)){if(this.GZ.KG!=="yt"&&A1u(this,Y)&&this.videoData.eT&&(0,g.j2)()/1E3>this.videoData.eT&&this.GZ.KG==="hm"){var n=Object.assign({e:Y.errorCode},Y.details);n.stalesigexp="1";n.expire=this.videoData.eT;n.init=this.videoData.aL/1E3;n.now=(0,g.j2)()/1E3;n.systelapsed=((0,g.j2)()-this.videoData.aL)/1E3; Y=new g.iO(Y.errorCode,n,2);this.IV.Re(Y.errorCode,2,"SIGNATURE_EXPIRED",NO(Y.details))}if(ZF(Y.severity)){var U;n=(U=this.IV.loader)==null?void 0:U.K.K;if(this.GZ.V("html5_use_network_error_code_enums"))if(G9u(Y)&&n&&n.isLocked())var k="FORMAT_UNAVAILABLE";else if(this.GZ.W||Y.errorCode!=="auth"||Y.details.rc!==429)Y.errorCode==="ump.spsrejectfailure"&&(k="HTML5_SPS_UMP_STATUS_REJECTED");else{k="TOO_MANY_REQUESTS";var m="6"}else G9u(Y)&&n&&n.isLocked()?k="FORMAT_UNAVAILABLE":this.GZ.W||Y.errorCode!== "auth"||Y.details.rc!=="429"?Y.errorCode==="ump.spsrejectfailure"&&(k="HTML5_SPS_UMP_STATUS_REJECTED"):(k="TOO_MANY_REQUESTS",m="6");this.IV.Re(Y.errorCode,Y.severity,k,NO(Y.details),m)}else this.IV.publish("nonfatalerror",Y),U=/^pp/.test(this.videoData.clientPlaybackNonce),this.Ra(Y.errorCode,Y.details),U&&Y.errorCode==="manifest.net.connect"&&(Y="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.j2)(),OS(Y,"manifest",function(X){u.W=!0;u.fG("pathprobe",X)}, function(X){u.Ra(X.errorCode,X.details)}))}}; g.M.fG=function(Y,u){this.IV.Vm.fG(Y,u)}; g.M.Ra=function(Y,u){u=NO(u);this.IV.Vm.Ra(Y,u)};t1.prototype.j8=function(Y){var u=Bwt(this);if(!Y)return{Nw:MW,ya:MW,rN:MW,E3:MW,Va:MW,LV:MW,JB:u};var n=MW;if(Rs(u)||this.V("html5_perf_cap_override_sticky"))n=bOt(this,Y);return{Nw:n,ya:xBd(this,Y),rN:Ry7(this,Y),E3:IWu(this,Y.videoData),Va:zyu(this,Y.videoData,Y),LV:c1t(this,Y),JB:u}}; t1.prototype.H_=function(Y){if(g.Zp(this.xw)&&yu(this.xw.J,Vu.HEIGHT))var u=Y.K.videoInfos[0].video.qualityOrdinal;else{var n=this.Vz(!!Y.K.K);v2(Y.videoData)||r6(Y.videoData);Y=Y.K.videoInfos;if(Y.length){var U=g.YF(this.xw.experiments,"html5_override_oversend_fraction")||.85,k=Y[0].video;k.projectionType!=="MESH"&&k.projectionType!=="EQUIRECTANGULAR"&&k.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||m_||(U=.45);k=g.YF(this.xw.experiments,"html5_viewport_undersend_maximum");for(var m=0;m< Y.length;m++){u=Y[m];var X=u.video;if(n===null||X.width*U=0,stateAtSend:u,joinLatencySecs:m,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:U,playerCanaryStage:k,isAd:this.provider.videoData.isAd(),liveMode:n,hasDrm:!!g.yf(this.provider.videoData),isGapless:this.provider.videoData.S,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:xR(this.provider.videoData)};Y||g.ka("html5PlayerHealthEvent",u);this.X=!0;this.dispose()}}; oz.prototype.nG=function(){this.X||this.send();window.removeEventListener("error",this.Jg);window.removeEventListener("unhandledrejection",this.Jg);g.e.prototype.nG.call(this)}; var uiC=/\bnet\b/;Vku.prototype.update=function(){if(this.S){var Y=this.GE()||0,u=g.Sk(this.provider);Y>=this.provider.IV.getDuration()-.1&&(this.previouslyEnded=!0);if(Y!==this.K||J1c(this,Y,u)){var n;if(!(n=Yu-this.mV+2||J1c(this,Y,u))){n=this.provider.IV.getVolume();var U=n!==this.N,k=this.provider.IV.isMuted()?1:0;k!==this.Z?(this.Z=k,n=!0):(!U||this.G>=0||(this.N=n,this.G=u),n=u-this.G,this.G>=0&&n>2?(this.G=-1,n=!0):n=!1)}n&&(vG(this),this.X=Y);this.mV=u;this.K=Y}}}; Vku.prototype.GE=function(){var Y=this.provider.IV.GE();return this.provider.xw.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&D9(this.provider.videoData)?Y+this.provider.IV.iN():Y};q8t.prototype.send=function(Y){var u=this;if(!this.dg){var n=$B7(this),U=g.Mk(this.uri,n);this.xw.V("vss_through_gel_double")&&YKA(U);this.DW&&!this.xw.V("html5_simplify_pings")?mwG(this,U):aWG(this,Y).then(function(k){u.DW&&(k=k||{},k.method="POST",k.postParams={atr:u.attestationResponse});Jx0(U,k,{token:u.oV,nX:u.nT,mdxEnvironment:u.mdxEnvironment},u.xw,Y,u.rg,u.isFinal&&u.VI||u.MF||u.X&&u.SW)}); this.dg=!0}}; q8t.prototype.j=function(Y){Y===void 0&&(Y=NaN);return Number(Y.toFixed(3)).toString()}; var pM={},Uw0=(pM.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,pM.LIVING_ROOM_APP_MODE_MAIN=1,pM.LIVING_ROOM_APP_MODE_KIDS=2,pM.LIVING_ROOM_APP_MODE_MUSIC=3,pM.LIVING_ROOM_APP_MODE_UNPLUGGED=4,pM.LIVING_ROOM_APP_MODE_GAMING=5,pM),LM={},nz0=(LM.EMBEDDED_PLAYER_MODE_UNKNOWN=0,LM.EMBEDDED_PLAYER_MODE_DEFAULT=1,LM.EMBEDDED_PLAYER_MODE_PFP=2,LM.EMBEDDED_PLAYER_MODE_PFL=3,LM);g.d(DW,g.e);DW.prototype.onProgress=function(){this.K.update();ZLG(this)&&(SKt(this),CgY(this))}; DW.prototype.nG=function(){g.e.prototype.nG.call(this);h1(this);OOY(this.K)}; DW.prototype.Tw=function(){return $B7(xQ(this,"playback"))}; DW.prototype.Na=function(Y){var u=xQ(this,"engage");u.jG=Y;return u9M(u,G1W(this.provider))};dwY.prototype.isEmpty=function(){return this.endTime===this.startTime};WG.prototype.V=function(Y){return this.xw.V(Y)}; WG.prototype.getCurrentTime=function(){return this.IV.getCurrentTime()}; WG.prototype.GE=function(){return this.IV.GE()}; var AbW={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.d(g.ek,g.e);g.M=g.ek.prototype;g.M.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.T6){var Y;(Y=this.X.get(this.T6))==null||Y.onProgress()}else if(this.K)this.K.onProgress()}; g.M.J4=function(Y){this.qoe&&this.qoe.J4(Y)}; g.M.k$=Ye(29);g.M.BC=Ye(35);g.M.f6=function(Y,u){this.qoe&&this.qoe.f6(Y,u)}; g.M.Yo=function(){if(this.provider.videoData.enableServerStitchedDai&&this.T6){var Y;(Y=this.X.get(this.T6))!=null&&vG(Y.K)}else this.K&&vG(this.K.K)}; g.M.Ra=function(Y,u){this.qoe&&iQe(this.qoe,Y,u);if(this.j)this.j.onError(Y)}; g.M.Du=function(Y){var u;(u=this.qoe)==null||u.Du(Y)}; g.M.onPlaybackRateChange=function(Y){if(this.qoe)this.qoe.onPlaybackRateChange(Y);this.K&&vG(this.K.K)}; g.M.W2=Ye(52);g.M.fG=function(Y,u,n){this.qoe&&this.qoe.fG(Y,u,n)}; g.M.Ro=function(Y,u,n){this.qoe&&this.qoe.Ro(Y,u,n)}; g.M.Vx=function(Y){var u;(u=this.qoe)==null||u.Vx(Y)}; g.M.qV=function(Y){var u;(u=this.qoe)==null||u.qV(Y)}; g.M.n6=function(Y,u,n,U){var k;(k=this.qoe)==null||k.n6(Y,u,n,U)}; g.M.lS=function(Y){this.qoe&&this.qoe.lS(Y)}; g.M.v3=function(Y,u,n){this.qoe&&this.qoe.v3(Y,u,n)}; g.M.zf=Ye(23);g.M.RE=function(){if(this.qoe)return this.qoe.RE()}; g.M.Tw=function(){if(this.provider.videoData.enableServerStitchedDai&&this.T6){var Y,u;return(u=(Y=this.X.get(this.T6))==null?void 0:Y.Tw())!=null?u:{}}return this.K?this.K.Tw():{}}; g.M.o8=function(){var Y;return(Y=this.qoe)==null?void 0:Y.o8()}; g.M.yc=function(Y,u){var n;(n=this.qoe)==null||n.yc(Y,u)}; g.M.Na=function(Y){return this.K?this.K.Na(Y):function(){}}; g.M.getVideoData=function(){return this.provider.videoData}; g.M.resume=function(){this.qoe&&this.qoe.resume()};g.d(g.bt,g.e);g.M=g.bt.prototype;g.M.l6=function(Y,u){this.sync();u&&this.K.array.length>=2E3&&this.mJ("captions",1E4);u=this.K;if(Y.length>1&&Y.length>u.array.length)u.array=u.array.concat(Y),u.array.sort(u.K);else{Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next())n=n.value,!u.array.length||u.K(n,u.array[u.array.length-1])>0?u.array.push(n):g.FG(u.array,n,u.K)}this.X=NaN;this.sync()}; g.M.ly=function(Y){Y.length>1E4&&g.Br(new g.zP("Over 10k cueRanges removal occurs with a sample: ",Y[0]));if(!this.gg()){var u=new Set(Y);this.j=this.j.filter(function(n){return!u.has(n)}); eZY(this.K,u);this.sync()}}; g.M.M8=function(Y,u){if(!this.gg()){var n=this.Vl().find(function(U){return U.id===u&&U.namespace===Y}); n&&this.ly([n])}}; g.M.mJ=function(Y,u){var n=(isNaN(this.X)?Ez7(this):this.X)-u;u=this.Vl().filter(function(U){return U.namespace===Y&&U.endthis.K,m=g.V(n,8)&&g.V(n,16),X=this.IV.XY().isBackground()||n.isSuspended();J1(this,this.TZ,m&&!X,k,"qoe.slowseek",function(){},"timeout"); var S=isFinite(this.K);S=m&&S&&yce(u,this.K);var C=!U||Math.abs(U-this.K)>10,f=this.xw.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),Q=U===0&&this.j&&[11,10].includes(this.j);J1(this,this.dg,S&&C&&!X&&(!f||!Q),k,"qoe.slowseek",function(){u.seekTo(Y.K)},"set_cmt"); C=S&&XT(u.eM(),this.K);var N=this.IV.loader;S=!N||N.Fg();var Z=function(){u.seekTo(Y.K+.001)}; J1(this,this.MF,C&&S&&!X,k,"qoe.slowseek",Z,"jiggle_cmt");S=function(){return Y.IV.mT()}; J1(this,this.JJ,C&&!X,k,"qoe.slowseek",S,"new_elem");var T=eJ(n);Q=n.isBuffering();var r=u.eM(),K=m4(r,U),L=K>=0&&r.end(K)>U+5;C=T&&Q&&L;f=this.IV.getVideoData();J1(this,this.Fk,U<.002&&this.K<.002&&m&&g.Zp(this.xw)&&g.Sc(f)&&!X,k,"qoe.slowseek",S,"slow_seek_shorts");J1(this,this.N,f.Oe()&&m&&!X&&!f.oV,k,"qoe.slowseek",S,"slow_seek_gapless_shorts");J1(this,this.KG,C&&!X,T&&!Q,"qoe.longrebuffer",Z,"jiggle_cmt");J1(this,this.oV,C&&!X,T&&!Q,"qoe.longrebuffer",S,"new_elem_nnr");if(N){var R=N.getCurrentTime(); m=u.h1();m=l_c(m,R);m=!N.isSeeking()&&U===m;J1(this,this.Gw,T&&Q&&m&&!X,T&&!Q&&!m,"qoe.longrebuffer",function(){u.seekTo(R)},"seek_to_loader")}m={}; Z=m4(r,Math.max(U-3.5,0));var c=Z>=0&&U>r.end(Z)-1.1,x=Z>=0&&Z+1=0&&c&&x<11;m.close2edge=c;m.gapsize=x;m.buflen=r.length;this.j&&(m.seekSour=this.j);J1(this,this.jG,T&&Q&&!X,T&&!Q,"qoe.longrebuffer",function(){},"timeout",m); m=n.isSuspended();m=this.IV.Ws()&&!m;J1(this,this.S,m,!m,"qoe.start15s",function(){Y.IV.rL("ad")},"ads_preroll_timeout"); m=this.xw.experiments.vz("html5_use_playback_rate_in_skip_slow_ad")?this.IV.getPlaybackRate()*1E3:1E3;K=U-this.G5;J1(this,this.zZ,g.Sc(f)&&N,T&&!Q,"qoe.longrebuffer",function(){Y.IV.EY()},"reset_media_source"); J1(this,this.CG,g.Sc(f)&&N,T&&!Q,"qoe.longrebuffer",S,"reset_media_element");this.G===0&&(this.W=U);N=Q&&this.K===0&&U>1&&U===this.W;J1(this,this.rg,g.Sc(f)&&N,T&&!Q,"qoe.slowseek",function(){u.seekTo(0)},"reseek_after_time_jump"); X=n.isOrWillBePlaying()&&!X;L=this.IV.u4()-U<6&&!L&&this.IV.LQ();J1(this,this.Z,f.Oe()&&X&&Q&&L,T&&!Q,"qoe.longrebuffer",function(){Y.IV.mT(!1,!0)},"handoff_end_long_buffer_reload"); X=this.j===104||this.IV.gN;n=c2(f)&&f.isAd()&&!f.oV&&X&&(Q||g.V(n,8)&&g.V(n,16));J1(this,this.Pz,n,k,"qoe.start15s",S,"gapless_ad_slow_start");n=c2(f)&&!f.oV&&X&&C;J1(this,this.Uc,n,k,"qoe.longrebuffer",S,"gapless_slow_start");this.G=U;this.J.start()}}; F4.prototype.Ra=function(Y,u,n){u=this.Tw(u);u.wn=n;u.wdup=this.X[Y]?"1":"0";this.IV.Ra(new g.iO(Y,u));this.X[Y]=!0}; F4.prototype.Tw=function(Y){Y=Object.assign(this.IV.Tw(!0),Y.Tw());this.K&&(Y.stt=this.K.toFixed(3));this.IV.getVideoData().isLivePlayback&&(Y.ct=this.IV.getCurrentTime().toFixed(3),Y.to=this.IV.iN().toFixed(3));delete Y.uga;delete Y.euri;delete Y.referrer;delete Y.fexp;delete Y.vm;return Y}; O8.prototype.reset=function(){this.K=this.j=this.X=this.startTimestamp=0;this.G=!1}; O8.prototype.test=function(Y){if(!this.J||this.j)return!1;if(!Y)return this.reset(),!1;Y=(0,g.j2)();if(!this.startTimestamp)this.startTimestamp=Y,this.X=0;else if(this.X>=this.J)return this.j=Y,!0;this.X+=1;return!1}; O8.prototype.Tw=function(){var Y={},u=(0,g.j2)();this.startTimestamp&&(Y.wsd=(u-this.startTimestamp).toFixed());this.j&&(Y.wtd=(u-this.j).toFixed());this.K&&(Y.wssd=(u-this.K).toFixed());return Y};g.d(CKM,g.e);g.M=CKM.prototype;g.M.setMediaElement=function(Y){(this.mediaElement=Y)?(this.mediaElement&&(this.J||this.X||!this.mediaElement.s2()||this.seekTo(.01,{L0:"seektimeline_setupMediaElement"})),qB(this)):$Q(this)}; g.M.getCurrentTime=function(Y){Y=Y===void 0?!1:Y;if(az(this.IV)){if(this.V("html5_use_centralized_player_time")&&!Y&&!isNaN(this.W))return this.W;if(!isNaN(this.j))return this.j}else{if(this.V("html5_use_centralized_player_time")&&!Y&&!isNaN(this.W)&&isFinite(this.W))return this.W;if(!isNaN(this.j)&&isFinite(this.j))return this.j}return this.mediaElement&&pHG(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.X||0}; g.M.R2=function(){return this.Pz}; g.M.GE=function(){return this.getCurrentTime()-this.iN()}; g.M.qY=function(){return this.K?this.K.qY():Infinity}; g.M.isAtLiveHead=function(Y){if(!this.K)return!1;Y===void 0&&(Y=this.getCurrentTime());return HG(this.K,Y)}; g.M.TK=function(){return!!this.K&&this.K.TK()}; g.M.seekTo=function(Y,u){var n=u===void 0?{}:u;u=n.AO===void 0?!1:n.AO;var U=n.DM===void 0?0:n.DM;var k=n.Dl===void 0?!1:n.Dl;var m=n.hN===void 0?0:n.hN;var X=n.L0===void 0?"":n.L0;var S=n.seekSource===void 0?void 0:n.seekSource;var C=n.xT===void 0?!1:n.xT;var f=n.Vb===void 0?!1:n.Vb;n=n.Ev===void 0?!1:n.Ev;C&&(Y+=this.iN());xR(this.videoData)&&S===29&&(this.Pz=void 0);C=Y=this.v0())||!g.$R(this.videoData),K||(L={st:L,mst:this.v0()},this.K&&this.V("html5_high_res_seek_logging")&&(L.ht=this.K.qY(),L.adft=ngd(this.K)),this.IV.fG("seeknotallowed",L)),L=K));if(!L)return this.G&&(this.G=null,ALt(this)),g.R1(this.getCurrentTime());L=.005;f&&this.V("html5_sabr_seek_no_shift_tolerance")&&(L=0);if(Math.abs(Y-this.j)<=L&&this.rg)return this.J;X&&(L=Y,(this.xw.gX()||this.V("html5_log_seek_reasons"))&& this.IV.fG("seekreason",{reason:X,tgt:L}));S&&(this.KG.j=S);this.rg&&$Q(this);this.J||(this.J=new Lh);Y&&!isFinite(Y)&&i_0(this,!1);(X=n||C)||(X=Y,X=!(this.videoData.isLivePlayback&&this.videoData.X&&!this.videoData.X.K&&!(this.mediaElement&&this.mediaElement.t4()>0&&Ba(this.mediaElement)>0)||eX(this.videoData)&&this.zc()===this.v0(!1)?0:isFinite(X)||!eX(this.videoData)));X||(Y=ug(this,Y,k));Y&&!isFinite(Y)&&i_0(this,!1);this.V("html5_use_centralized_player_time")?this.W=Y:this.j=this.X=Y;this.zZ= m;this.S=0;this.K&&(k=this.K,m=Y,UQm(k,m,!1),kDm(k,m));k=this.IV;m=Y;X={AO:u,seekSource:S};k.OD.X=m;n=k.N_;n.mediaTime=m;n.K=!0;X.AO&&k.yn(X);X=m>k.videoData.endSeconds&&m>k.videoData.limitedPlaybackDurationInSeconds;k.aF&&X&&isFinite(m)&&u7Y(k);mu.start&&u7Y(this.IV);return this.J}; g.M.v0=function(Y){if(!this.videoData.isLivePlayback)return this.IV.videoData.v0();var u;return jc(this.videoData)&&((u=this.mediaElement)==null?0:u.isPaused())&&this.videoData.K?(Y=this.getCurrentTime(),q70(this.Ia(Y)*1E3)+Y):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&xR(this.videoData)&&this.videoData.K?Y?this.videoData.K.oV||0:this.videoData.K.z3||0:eX(this.videoData)&&this.videoData.jG&&this.videoData.K?this.videoData.K.v0()+this.timestampOffset:this.videoData.X&&this.videoData.X.K? !Y&&this.K?this.K.qY():this.IV.videoData.v0()+this.timestampOffset:this.mediaElement?zq()?q70(this.mediaElement.Yh().getTime()):Ba(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.M.zc=function(){if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&xR(this.videoData)){var Y;return((Y=this.videoData.K)==null?void 0:Y.hG)||0}Y=this.videoData?this.videoData.zc()+this.timestampOffset:this.timestampOffset;if(jc(this.videoData)&&this.videoData.K){var u,n=Number((u=this.videoData.progressBarStartPosition)==null?void 0:u.utcTimeMillis)/1E3;u=this.getCurrentTime();u=this.Ia(u)-u;if(!isNaN(n)&&!isNaN(u))return Math.max(Y,n-u)}return Y}; g.M.Kl=function(){this.J||this.seekTo(this.X,{L0:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.M.c_=function(){return this.rg&&!isFinite(this.j)}; g.M.nG=function(){Z_t(this,null);this.KG.dispose();g.e.prototype.nG.call(this)}; g.M.Tw=function(){var Y={};this.loader&&Object.assign(Y,this.loader.Tw());this.mediaElement&&Object.assign(Y,this.mediaElement.Tw());return Y}; g.M.bM=function(Y){this.timestampOffset=Y}; g.M.getStreamTimeOffset=function(){return eX(this.videoData)?0:this.videoData.K?this.videoData.K.getStreamTimeOffset():0}; g.M.iN=function(){return this.timestampOffset}; g.M.Ia=function(Y){return this.videoData&&this.videoData.K?this.videoData.K.Ia(Y-this.timestampOffset):NaN}; g.M.o2=function(){if(!this.mediaElement)return 0;if(YN(this.videoData)){var Y=this.mediaElement,u=Y.eM();Y=(Ch(u)&&Y.getDuration()?u.end(u.length-1):0)+this.timestampOffset-this.zc();u=this.v0()-this.zc();return Math.max(0,Math.min(1,Y/u))}return this.mediaElement.o2()}; g.M.jr=function(Y){this.Z&&(this.Z.K=Y)}; g.M.mO=function(Y,u){this.IV.fG("requestUtcSeek",{time:Y});xR(this.videoData)&&(this.Pz=Y);var n;(n=this.loader)==null||n.mO(Y);u&&(this.DW=u)}; g.M.Qb=function(Y){xR(this.videoData)&&(this.Pz=void 0);if(this.DW)this.IV.fG("utcSeekingFallback",{source:"streamTime",timeSeconds:this.DW}),this.IV.seekTo(this.DW,{L0:"utcSeekingFallback_streamTime"}),this.DW=0;else{var u=this.getCurrentTime();isNaN(u)||(Y=this.Ia(u)-Y,u-=Y,this.IV.fG("utcSeekingFallback",{source:"estimate",timeSeconds:u}),this.IV.seekTo(u,{L0:"utcSeekingFallback_estimate"}))}}; g.M.Rl=function(){this.DW=0}; g.M.V=function(Y){return this.xw&&this.xw.V(Y)};g.d(nL,g.e);nL.prototype.start=function(){this.j.start()}; nL.prototype.stop=function(){this.j.stop()}; nL.prototype.clear=function(){for(var Y=g.A(this.K.values()),u=Y.next();!u.done;u=Y.next())u.value.clear()}; nL.prototype.sample=function(){for(var Y=g.A(this.X),u=Y.next();!u.done;u=Y.next()){var n=g.A(u.value);u=n.next().value;n=n.next().value;this.K.has(u)||this.K.set(u,new vgu(ndX.has(u)));this.K.get(u).update(n())}this.j.start()}; var ndX=new Set(["networkactivity"]);vgu.prototype.update=function(Y){this.j?(this.buffer.add(Y-this.K||0),this.K=Y):this.buffer.add(Y)}; vgu.prototype.clear=function(){this.buffer.clear();this.K=0};md.prototype.M2=function(){return this.started}; md.prototype.start=function(){this.started=!0}; md.prototype.reset=function(){this.finished=this.started=!1};var h1B=!1;g.d(g.CL,g.ud);g.M=g.CL.prototype;g.M.nG=function(){this.logger.debug("dispose");g.Zz(this.fB);NwA(this.ke);this.visibility.unsubscribe("visibilitystatechange",this.ke);tSe(this.Vm);g.nc(this.Vm);Nw(this);g.WA.aO(this.HN);this.bE();this.fp=null;g.nc(this.videoData);g.nc(this.Rq);g.nc(this.Eq);g.nc(this.di);g.Uo(this.Fq2);this.aF=null;g.ud.prototype.nG.call(this)}; g.M.v3=function(Y,u,n,U,k){if(this.xw.V("html5_log_ad_playback_docid")){var m=this.Vm;if(m.qoe){m=m.qoe;var X=this.xw.KG||"yt";g.mF(m,g.Sk(m.provider),"ad_playback",[Y,u,n,k,X])}}else this.Vm.v3(Y,u,n);this.V("html5_log_media_perf_info")&&this.fG("adloudness",{ld:U.toFixed(3),cpn:Y})}; g.M.yq=function(){var Y;return(Y=this.loader)==null?void 0:Y.yq()}; g.M.LA=function(){var Y;return(Y=this.loader)==null?void 0:Y.LA()}; g.M.g_=function(){var Y;return(Y=this.loader)==null?void 0:Y.g_()}; g.M.Da=function(){var Y;return(Y=this.loader)==null?void 0:Y.Da()}; g.M.jh=function(){return this.videoData.jh()}; g.M.mY=function(){return this.V("html5_not_reset_media_source")&&!this.jh()&&!this.videoData.isLivePlayback&&g.Sc(this.videoData)&&!this.xw.supportsGaplessShorts()}; g.M.q7=function(){this.videoData.S&&(this.videoData.OG=this.videoData.OG||this.W0.wg().yq(),this.videoData.Fo=this.videoData.Fo||this.W0.wg().LA());if(esA(this.videoData)||!Gz(this.videoData)){var Y=this.videoData.errorDetail;this.Re(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),Y,Y,this.videoData.RD||void 0)}this.V("html5_generate_content_po_token")&&this.Nl();this.V("html5_enable_d6de4")&&this.yU()}; g.M.getVideoData=function(){return this.videoData}; g.M.Y=function(){return this.xw}; g.M.j8=function(){return this.Tf.j8(this.fp)}; g.M.XY=function(){return this.visibility}; g.M.X4=function(){return this.mediaElement&&this.mediaElement.m6()?this.mediaElement.q1():null}; g.M.wD=function(){return this.mediaElement}; g.M.Zn=function(){if(this.videoData.errorCode)return!1;this.Y().W&&this.Y().houseBrandUserStatus&&this.fG("hbut",{status:this.Y().houseBrandUserStatus},!0);if(this.videoData.QY())return!0;this.Re("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.M.Xo=function(Y){(Y=Y===void 0?!1:Y)||jnG(this.Vm);this.A6=Y;!this.Zn()||this.pQ.M2()?g.Zp(this.xw)&&this.videoData.isLivePlayback&&this.pQ.M2()&&!this.pQ.finished&&!this.A6&&this.ov():(this.pQ.start(),Y=this.Vm,g.Sk(Y.provider),Y.qoe&&Qfu(Y.qoe),this.ov())}; g.M.ov=function(){if(this.videoData.isLoaded()){var Y=this.Rq;g.YF(Y.GZ.experiments,"html5_player_min_build_cl")>0&&g.YF(Y.GZ.experiments,"html5_player_min_build_cl")>789136103&&jzc(Y,"oldplayer");qjd(this)}else this.videoData.WC||this.videoData.pY?this.A6&&g.Zp(this.xw)&&this.videoData.isLivePlayback||(this.videoData.WC?j3G(this.videoData):(Y=this.Vm,Y.qoe&&(Y=Y.qoe,fO(Y,"protected"),Y.provider.videoData.J?Y.o0():Y.provider.videoData.subscribe("dataloaded",Y.o0,Y)),s3Y(this.videoData))):!this.videoData.loading&& this.Pr&&O_G(this)}; g.M.tf=function(Y){this.FD=Y;this.loader&&(kGd(this.loader,new g.T9(Y)),this.fG("sdai",{sdsstm:1}))}; g.M.Rn=function(Y,u,n){var U;(U=this.loader)==null||U.Rn(Y,u,n)}; g.M.ub=Ye(8);g.M.isFullscreen=function(){return this.visibility.isFullscreen()}; g.M.isBackground=function(){return this.visibility.isBackground()}; g.M.JI=function(){var Y=this;this.logger.debug("Updating for format change");fL(this).then(function(){return SS(Y)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.M.DZ=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Xo();this.Zn()&&!g.V(this.playerState,128)&&(this.zV.M2()||(this.zV.start(),this.videoData.dO?this.t_(l$(this.playerState,4)):this.t_(l$(l$(this.playerState,8),1))),Fft(this))}; g.M.dK=function(){return this.pQ.finished}; g.M.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.cq(!0),tSe(this.Vm),g.nc(this.Vm),g.WA.aO(this.HN))}; g.M.q5=function(Y,u,n){Y=Y===void 0?!0:Y;(u===void 0||u)&&this.mediaElement&&this.mediaElement.pause();Y&&n&&this.loader&&eX(this.videoData)&&this.loader.n6(n);this.t_(Y?new g.RZ(14):new g.RZ)}; g.M.y0=function(){this.Vm.Yo()}; g.M.Re=function(Y,u,n,U,k,m){this.logger.debug(function(){return"set player error: ec="+Y+", detail="+k}); var X,S;g.Qq(TAJ,n)?X=n:n?S=n:X="GENERIC_WITHOUT_LINK";U=(U||"")+(";a6s."+VL());if(Y==="auth"||Y==="drm.auth"||Y==="heartbeat.stop")n&&(U+=";r."+n.replaceAll(" ","_")),m&&(U+="sr."+m.replaceAll(" ","_"));u={errorCode:Y,errorDetail:k,errorMessage:S||g.qQ[X]||"",vX:X,RD:m||"",yK:U,yz:u,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=Y;Qe(this,"dataloaderror");this.t_(x6(this.playerState,128,u));g.WA.aO(this.HN);Nw(this);this.Sc()}; g.M.rL=function(Y){this.hI=this.hI.filter(function(u){return Y!==u}); this.logger.debug(function(){return"set preroll ready for "+Y}); this.zV.M2()&&Fft(this)}; g.M.r3=function(){var Y;(Y=!!this.hI.length)||(Y=this.Xn.K.array[0],Y=!!Y&&Y.start<=-0x8000000000000);return Y}; g.M.TK=function(){return this.OD.TK()}; g.M.isPlaying=function(){return this.playerState.isPlaying()}; g.M.WK=function(){return this.playerState.WK()&&this.videoData.dO}; g.M.getPlayerState=function(){return this.playerState}; g.M.j7=function(Y){var u;(u=this.loader)==null||u.j7(Y)}; g.M.b_=function(Y){var u;(u=this.loader)==null||u.b_(Y)}; g.M.getPlayerType=function(){return this.playerType}; g.M.getPreferredQuality=function(){if(this.fp){var Y=this.fp;Y=Y.videoData.iR.compose(Y.videoData.jk);Y=xp(Y)}else Y="auto";return Y}; g.M.ST=Ye(16);g.M.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.M.setMediaElement=function(Y){this.logger.debug("set media element");if(this.mediaElement&&Y.q1()===this.mediaElement.q1()&&(Y.isView()||this.mediaElement.isView())){if(Y.isView()||!this.mediaElement.isView())this.mx(),this.mediaElement=Y,this.mediaElement.IV=this,iWW(this),this.OD.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.bE();if(!this.playerState.isError()){var u=ho(this.playerState,512);g.V(u,8)&&!g.V(u,2)&&(u=l$(u,1));Y.isView()&&(u=ho(u,64));this.t_(u)}this.mediaElement= Y;this.mediaElement.IV=this;!g.Zp(this.xw)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);iWW(this);this.OD.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.Rq.G7()&&zH7(this.mediaElement)}}; g.M.bE=function(Y,u,n){Y=Y===void 0?!1:Y;u=u===void 0?!1:u;n=n===void 0?!1:n;this.logger.debug("remove media element");if(this.mediaElement){var U=this.getCurrentTime();U>0&&(this.OD.X=U);this.OD.setMediaElement(null);!Y&&this.mY()?SrW(this):this.Xy(n);this.loader&&(YQ(this.loader),rJ(this,u));this.EZ.stop();if(this.mediaElement&&(!this.zV.M2()&&!this.Ws()||this.playerState.isError()||g.V(this.playerState,2)||this.t_(l$(this.playerState,512)),this.mediaElement)){this.mx();if(Y||!this.mediaElement.isView())this.DF.M5("mesv_s"), this.mediaElement.stopVideo(),Mw(this);this.mediaElement=this.mediaElement.IV=null}}}; g.M.playVideo=function(Y,u){Y=Y===void 0?!1:Y;u=u===void 0?!1:u;var n=this,U,k,m,X,S,C;return g.l(function(f){if(f.j==1){n.logger.debug("start play video");var Q=window.google_image_requests;Q&&Q.length>10&&(window.google_image_requests=Q.slice(-10));if(g.V(n.playerState,128))return f.return();if(n.Rq.Cn())return n.publish("signatureexpired"),f.return();n.mediaElement&&jnG(n.Vm);n.DZ();(g.V(n.playerState,64)||Y)&&n.t_(l$(n.playerState,8));return n.zV.finished&&n.mediaElement?n.fp||!n.Yb?f.qF(2):g.D(f, n.Yb,3):f.return()}if(f.j!=2&&g.V(n.playerState,128))return f.return();if(!n.videoData.X)return n.videoData.isLivePlayback&&!g.pD(n.xw.J,!0)?(U="html5.unsupportedlive",k=2):(U=n.videoData.jh()?"fmt.unplayable":"fmt.noneavailable",k=1),g.Br(Error("selectableFormats")),n.Re(U,k,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),f.return();if(n.R_()&&n.videoData.X.K)return n.logger.debug("rebuild playbackData for airplay"),f.return(fL(n));if(az(n))Q=n.OD,W2(Q.videoData)&&!Q.isAtLiveHead(Q.getCurrentTime())&& Q.TK()&&Q.IV.seekTo(Infinity,{L0:"seektimeline_peggedToLive",seekSource:34});else if(W2(n.videoData)&&(m=n.getCurrentTime()X;if(!S||!X){k&&S&&(m=Math.max(m,k));var C;k=oQe(u,(C=U.K)==null?void 0:C.videoInfos);C=u.IV.getPlaybackRate();C>1&&k&&(C=ayc(u.xw.J,U.K.videoInfos,C),Y.K!==0&&C=480;if(u.V("html5_exponential_memory_for_sticky")){f=u.xw.b8;Q=1;var N=N===void 0?!1:N;RaW(f,"sticky-lifetime");f.values["sticky-lifetime"]&&f.jn["sticky-lifetime"]||(f.values["sticky-lifetime"]=0,f.jn["sticky-lifetime"]=0);N&&qj(f,"sticky-lifetime")>.0625&&(Q=f.jn["sticky-lifetime"]*2);f.values["sticky-lifetime"]+=1*Math.pow(2, f.K/Q);f.jn["sticky-lifetime"]=Q;f.G.start()}if(u.V("html5_perf_cap_override_sticky")){N=u.X;u=u.V("html5_perserve_av1_perf_cap");u=u===void 0?!1:u;if(u===void 0?0:u){f=GY();Q=g.A(Object.keys(f));for(Y=Q.next();!Y.done;Y=Q.next())Y=Y.value,Y.indexOf("1")!==0&&delete f[Y];g.oU("yt-player-performance-cap",f,2592E3)}else g.vk("yt-player-performance-cap");qEB(u);if(u){u=g.A(nD.keys());for(f=u.next();!f.done;f=u.next())f=f.value,f.startsWith("1")||nD.delete(f);u=g.A(BG.values());for(f=u.next();!f.done;f= u.next())f=f.value,f.startsWith("1")||BG.delete(f);u=g.A(N.keys());for(f=u.next();!f.done;f=u.next())f=f.value,f.startsWith("1")||N.delete(f)}else nD.clear(),BG.clear(),N.clear()}}}}this.loader&&(u=this.loader,n=n||"",u.policy.K?fF(u.G.K,n):fF(u.K.J,n));this.V3()}; g.M.getUserPlaybackQualityPreference=function(){return this.videoData.X&&!this.videoData.X.K?xp(this.videoData.iR):D5[sd()]}; g.M.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.M.setUserAudio51Preference=function(Y,u){this.getUserAudio51Preference()!==Y&&(this.fG("toggle51",{pref:Y}),g.oU("yt-player-audio51",Y,u?31536E3:2592E3),this.JI())}; g.M.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.M.setProximaLatencyPreference=function(Y){var u=this.getProximaLatencyPreference();this.fG("proxima",{pref:Y});g.oU("yt-player-proxima-pref",Y,31536E3);u!==Y&&(Y=this.OD,Y.Uc=!0,Y.IV.seekTo(Infinity,{L0:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.M.getProximaLatencyPreference=function(){var Y;return(Y=dK())!=null?Y:0}; g.M.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.M.Nl=function(){this.videoData.videoId?this.W0.Nl(this.videoData):this.fG("povid",{})}; g.M.yU=function(){this.videoData.videoId?this.W0.yU(this.videoData):this.fG("piavid",{})}; g.M.V3=function(){if(!this.gg()&&!g.V(this.playerState,128)&&this.videoData.X){if(this.videoData.X.K)PR(this);else{var Y=T1(this),u=this.videoData;a:{var n=this.videoData.MR;if(Y.K){for(var U=g.A(n),k=U.next();!k.done;k=U.next()){k=k.value;var m=k.getInfo(),X=g.hn[m.video.quality];if((!Y.X||m.video.quality!=="auto")&&X<=Y.K){n=k;break a}}n=n[n.length-1]}else n=n[0]}u.TZ=n;n_A(this,Y.reason,rSd(this,this.videoData.TZ))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.OD.N= !1,this.playVideo()}}; g.M.Uj=function(Y,u){if(this.gg()||g.V(this.playerState,128))return!1;var n,U=!((n=this.videoData.X)==null||!n.K);n=U&&u?this.getCurrentTime()-this.iN():NaN;if(this.xw.experiments.vz("html5_record_audio_format_intent")){var k=this.Vm;if(k.qoe){k=k.qoe;var m=[Y.dX.id,isNaN(n)?"m":"t"];g.mF(k,g.Sk(k.provider),"afi",m)}}if(U)return u&&(U=rLu(this.OD),this.fG("aswh",{id:Y.id,xtags:Y.xtags,bh:U.toFixed(3)})),this.loader.setAudioTrack(Y,n,u),!0;if(kIY(this)){a:{u=this.mediaElement.audioTracks();for(U=0;U< u.length;++U)if(n=u[U],n.label===Y.dX.getName()){if(n.enabled){u=!1;break a}u=n.enabled=!0;break a}u=void 0}u&&this.fG("hlsaudio",{id:Y.id})}else{a:if(u=this.videoData,u.G&&!Jn(u.G)||Y===u.b2||!u.MR||u.MR.length<=0)u=!1;else{U=g.A(u.MR);for(n=U.next();!n.done;n=U.next()){n=n.value;if(!(n instanceof eG)){u=!1;break a}k=Y.dX.getId();n.j&&(UMu(n.j,k),n.uN=null)}u.b2=Y;u=!0}u&&SS(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.fG("hlsaudio",{id:Y.id}))}return!0}; g.M.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.M.getAudioTrack=function(){if(kIY(this)){var Y=X4c(this);if(Y)return Y}return this.videoData.getAudioTrack()}; g.M.uI=function(){return this.videoData.G}; g.M.TP=function(){if(this.videoData.V("html5_trigger_loader_when_idle_network")&&!this.videoData.W$()&&xR(this.videoData)){var Y;(Y=this.loader)!=null&&Y.rp()}}; g.M.Lg=function(){if(c2(this.videoData)&&this.videoData.V("html5_gapless_append_early")){var Y;(Y=this.loader)!=null&&Y.rp()}}; g.M.onPlayerRequestSent=function(Y){this.W0.onPlayerRequestSent(Y)}; g.M.KA=function(Y){Y=Y===void 0?!1:Y;if(this.loader){var u=this.loader,n=u.KA;var U=this.videoData;U=U.V("html5_ssdai_use_post_for_media")&&U.enableServerStitchedDai?!1:eX(U)&&U.xQ&&!U.isAd();n.call(u,U,Y)}}; g.M.Xy=function(Y){Y=Y===void 0?!1:Y;this.ZW&&(this.logger.debug("remove media source"),I_u(this.ZW),this.KA(Y),this.ZW.dispose(),this.ZW=null)}; g.M.KY=function(){return this.ZW}; g.M.R6=function(Y,u,n,U){function k(X){try{NiW(m,X,u,n)}catch(S){g.Br(S),m.handleError(new g.iO("fmt.unplayable",{msi:"1",ename:S&&typeof S==="object"&&"name"in S?String(S.name):void 0,trg:"setmediasrc"},1))}} var m=this;u=u===void 0?!1:u;n=n===void 0?!1:n;fgc(this,U===void 0?!1:U);this.ZW=Y;this.mY()&&Kh(this.ZW)==="open"?k(this.ZW):wYc(this.ZW,k)}; g.M.XJ=function(Y){this.logger.debug("onNeedKeyInfo");this.Zv.set(Y.initData,Y);this.YR&&(this.YR.XJ(Y),this.V("html5_eme_loader_sync")||this.Zv.remove(Y.initData))}; g.M.jt=function(Y){this.videoData.Ph=g.c5("auto",Y,!1,"u");PR(this)}; g.M.jr=function(Y){var u=Y.reason,n=Y.K.info,U=Y.token,k=Y.videoId,m=this.Vm,X=this.videoData;if(n!==X.G){var S=!X.G;X.G=n;u!=="m"&&u!=="t"&&(u=S?"i":"a");var C=u==="m"||u==="t";this.xw.experiments.vz("html5_refactor_sabr_audio_format_selection_logging")?this.g0=new LFm(X,n,u,"",U,k):(u=new LFm(X,n,u,"",U),m.qoe&&(m=m.qoe,n=g.Sk(m.provider),dD0(m,n,u)));this.publish("internalaudioformatchange",X,!S&&C)}this.OD.jr(Y.K.index)}; g.M.k9=function(Y){this.publish("localmediachange",Y)}; g.M.NW=function(Y){Y=Y===void 0?{}:Y;var u;(u=this.loader)==null||u.NW(this.xw,R2(this.videoData),Y)}; g.M.Cn=function(){return this.Rq.Cn()}; g.M.Wq=function(Y){this.Ra(new g.iO("staleconfig",{reason:Y}))}; g.M.handleError=function(Y){this.Rq.handleError(Y)}; g.M.G7=function(){return this.Rq.G7()}; g.M.Qb=function(Y){this.OD.Qb(Y)}; g.M.mT=function(Y,u){Y=Y===void 0?!1:Y;u=u===void 0?!1:u;var n=this,U,k,m;return g.l(function(X){if(X.j==1){n.loader&&n.loader.jP();n.loader&&n.loader.gg()&&Nw(n);if(n.V("html5_enable_vp9_fairplay")&&n.jh()&&(U=n.videoData.K)!=null)for(var S in U.K)U.K.hasOwnProperty(S)&&(U.K[S].K=null,U.K[S].X=!1);n.t_(l$(n.playerState,2048));n.publish("newelementrequired");return Y?g.D(X,fL(n),2):X.qF(2)}n.videoData.W$()&&((k=n.loader)==null?0:k.rg)&&!az(n)&&((m=n.isAtLiveHead())&&W2(n.videoData)?n.seekTo(Infinity, {L0:"videoPlayer_getNewElement"}):n.videoData.H4&&n.loader&&(S=n.loader,S.VF.W$&&(S.VF.H4||S.VF.G||S.VF.isPremiere?(S.seek(0,{L0:"loader_resetSqless"}),S.videoTrack.S=!0,S.audioTrack.S=!0,S.videoTrack.J=!0,S.audioTrack.J=!0):$h(S.VF)&&TR(S))));u&&n.seekTo(0,{seekSource:105});g.V(n.playerState,8)&&n.playVideo();g.KY(X)})}; g.M.bR=function(Y){this.fG("hgte",{ne:+Y});this.videoData.S=!1;Y&&this.mT();this.loader&&vNY(this.loader)}; g.M.XO=function(Y){this.fG("newelem",{r:Y});this.mT()}; g.M.pauseVideo=function(Y){Y=Y===void 0?!1:Y;if((g.V(this.playerState,64)||g.V(this.playerState,2))&&!Y)if(g.V(this.playerState,8))this.t_(wb(this.playerState,4,8));else if(this.WK())SS(this);else return;g.V(this.playerState,128)||(Y?this.t_(l$(this.playerState,256)):this.t_(wb(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.$R(this.videoData)&&this.loader&&rJ(this,!1)}; g.M.stopVideo=function(){this.pauseVideo();this.loader&&(rJ(this,!1),this.loader.lE())}; g.M.Sc=function(Y,u){Y=Y===void 0?!1:Y;u=u===void 0?!1:u;if(this.mY()&&u){var n;(n=this.mediaElement)==null||n.Sc()}else{var U;(U=this.mediaElement)==null||U.stopVideo()}Mw(this);Nw(this);g.V(this.playerState,128)||(Y?this.t_(ho(ho(l$(this.playerState,4),8),16)):this.t_(x6(this.playerState)));this.videoData.videoId&&this.xw.Fk.remove(this.videoData.videoId)}; g.M.seekTo=function(Y,u){u=u===void 0?{}:u;this.logger.debug(function(){return"SeekTo "+Y+", "+JSON.stringify(u)}); g.V(this.playerState,2)&&SS(this);u.hJG&&this.t_(l$(this.playerState,2048));u.seekSource!==58&&u.seekSource!==60||!this.V("html5_update_vss_during_gapless_seeking")||pRY(this.Vm,u.seekSource);this.OD.seekTo(Y,u);this.Xn.sync()}; g.M.yn=function(Y){this.DF.G.j=(0,g.j2)();g.V(this.playerState,32)||(this.t_(l$(this.playerState,32,Y==null?void 0:Y.seekSource)),g.V(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.ye()}; g.M.G$=function(Y){Y=Y==null?void 0:Y.seekSource;g.V(this.playerState,32)?(this.t_(wb(this.playerState,16,32,Y)),this.publish("endseeking")):g.V(this.playerState,2)||this.t_(l$(this.playerState,16,Y));Y=this.DF.G;var u=this.videoData,n=this.playerState.isPaused();if(u.clientPlaybackNonce&&!isNaN(Y.K)){if(Math.random()<.01){n=n?"pbp":"pbs";var U={startTime:Y.K};u.W&&(U.cttAuthInfo={token:u.W,videoId:u.videoId});Lg("seek",U);g.pg({clientPlaybackNonce:u.clientPlaybackNonce},"seek");isNaN(Y.j)||Kg("pl_ss", Y.j,"seek");Kg(n,(0,g.j2)(),"seek")}Y.reset()}}; g.M.e_=function(Y){this.G$(Y)}; g.M.Rz=function(){this.publish("SEEK_COMPLETE")}; g.M.GC=function(Y){var u=this.W0,n=this.videoData.clientPlaybackNonce,U=this.playerType;if(Y.scope===4){var k=Y.type;if(k){var m=u.fT(),X=m.getVideoData().clientPlaybackNonce;U===1&&(X=n);if(U=DhB(u,X)){if(n=U.getVideoData())Y.writePolicy===2&&n.sabrContextUpdates.has(k)||(Y.sendByDefault&&n.Pz.add(k),n.sabrContextUpdates.set(k,Y)),u.V("html5_enable_t1_enf_on_sabr")&&(Y=k===5,k=PAS(n.playerResponse),Y?(Y=k?1:0,UH(Y,"m.p_",{}),IJ("MBSTAT",Y)):Y=1,Y===0&&u.Bz.Yw("onAbnormalityDetected"))}else m.fG("scuset", {ncpf:"1",ccpn:X,crcpn:n})}else g.Br(Error("b/380308491: contextUpdateType is undefined"))}}; g.M.rH=function(){if(this.playerType===2)return this.W0.rH("")}; g.M.getCurrentTime=function(Y){return this.OD.getCurrentTime(Y===void 0?!1:Y)}; g.M.R2=function(){return this.OD.R2()}; g.M.GE=function(){return this.OD.GE()}; g.M.yw=function(){return this.GE()}; g.M.qY=function(){return this.OD.qY()}; g.M.getPlaylistSequenceForTime=function(Y){return this.videoData.getPlaylistSequenceForTime(Y-this.iN())}; g.M.h4=function(){var Y=NaN;this.mediaElement&&(Y=this.mediaElement.h4());return Y>=0?Y:this.getCurrentTime()}; g.M.Ia=function(){var Y;return((Y=this.videoData.K)==null?0:Y.Ia)?this.videoData.K.Ia(this.getCurrentTime()-this.iN()):this.mediaElement&&(Y=this.mediaElement.Yh())&&(Y=Y.getTime(),!isNaN(Y))?Y/1E3+this.getCurrentTime():NaN}; g.M.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.iN():this.v0()?this.v0():0}; g.M.rK=function(){var Y=new RZd;if(this.loader){var u=this.xw.schedule,n=this.xw.gX();n=n===void 0?!1:n;Y.uf=u.jG;Y.Jq=u.CG;Y.bandwidthEstimate=FM(u);if(n){n=(u.Z.E6()*1E3).toFixed();var U=(u.rg.E6()*1E3).toFixed(),k=yF(u).toFixed(2),m=((u.S.E6()||0)*1E9).toFixed(2),X=u.X.E6().toFixed(0),S=u.MF.E6().toFixed(0),C=u.N.percentile(.5).toFixed(2),f=u.N.percentile(.92).toFixed(2),Q=u.N.percentile(.96).toFixed(2),N=u.N.percentile(.98).toFixed(2);u.K?u.K.reset():u.K=new hB;u.K.add(u.DW);u.K.add(u.interruptions.length); for(var Z=0,T=u.interruptions.length-1;T>=0;T--){var r=u.interruptions[T];u.K.add(r-Z);Z=r}Z=0;for(T=u.G.length-1;T>=0;T--){r=u.G[T];var K=r.stamp/36E5;u.K.add(K-Z);Z=K;u.K.add(r.net/1E3);u.K.add(r.max)}u=u.K.TE();Y.K={ttr:n,ttm:U,d:k,st:m,bw:X,abw:S,v50:C,v92:f,v96:Q,v98:N,"int":u}}UAd(this.loader,Y)}else this.mediaElement&&(Y.Ju=oZ(this.mediaElement));Y.uf=this.uf;Y.Jq=this.Jq;Y.X=this.isAtLiveHead()&&this.isPlaying()?yLu(this):NaN;return Y}; g.M.uZ=function(Y,u){this.Jq+=Y;this.uf+=u}; g.M.o2=function(){return this.mediaElement?g.$R(this.videoData)?1:YN(this.videoData)?this.isAtLiveHead()||this.TK()?1:this.OD.o2():this.mediaElement.o2():0}; g.M.CA=function(){var Y=this.m0,u=kz(Y,"bandwidth"),n=kz(Y,"bufferhealth"),U=kz(Y,"livelatency"),k=kz(Y,"networkactivity"),m=UK(Y,"bandwidth"),X=UK(Y,"bufferhealth"),S=UK(Y,"livelatency");Y=UK(Y,"networkactivity");var C=this.FL(),f=C.droppedVideoFrames;C=C.totalVideoFrames;var Q=this.getCurrentTime();if(this.YR){var N="IT/"+(this.YR.K.getInfo()+"/"+xp(this.Kn()));N+="/"+this.YR.getInfo()}else N="";var Z=this.isGapless(),T=this.IM(),r=this.RE(),K=g.Zd(this),L=this.getPlayerState(),R=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var c=0;var x="";if(this.FD){if(this.FD.xl){x="D,";break a}c=this.FD.z0;x=this.FD.EX.substring(0,4)}c>0?(c="AD"+c+", ",x&&(c+=x+", "),x=c):x=""}return{VE:m,eC:X,currentTime:Q,VT:N,droppedVideoFrames:f,isGapless:Z,IM:T,R4:r,uX:u,r6:n,yy:U,LH:k,WR:S,U5:Y,mj:K,playerState:L,R$:R,PT:x,totalVideoFrames:C}}; g.M.Tw=function(Y){var u={};if(Y===void 0?0:Y){Object.assign(u,this.Vm.Tw());this.mediaElement&&(Object.assign(u,this.mediaElement.Tw()),Y=this.FL(),u.dvf=Y.droppedVideoFrames,u.tvf=Y.totalVideoFrames);this.loader&&Object.assign(u,this.loader.Tw());this.YR&&(u.drm=JSON.stringify(this.YR.Tw()));u.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(u.debug_error=JSON.stringify(this.playerState.Jt));this.r3()&&(u.prerolls=this.hI.join(","));this.videoData.Ub&&(u.ismb=this.videoData.Ub); this.videoData.latencyClass!=="UNKNOWN"&&(u.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(u.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)u.is_mosaic=1;this.videoData.cotn&&(u.is_offline=1,u.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(u.playerResponseCpn=this.videoData.playerResponseCpn);this.W0.isOrchestrationLeader()&&(u.leader=1);this.videoData.isLivePlayback&& (this.videoData.K&&FL(this.videoData.K)&&(u.segduration=FL(this.videoData.K)),Y=this.OD,u.lat=Y.Z?JbB(Y.Z.G):0,u.liveutcstart=this.videoData.liveUtcStartSeconds);u.relative_loudness=this.videoData.MA.toFixed(3);if(Y=g.Zd(this))u.optimal_format=Y.video.qualityLabel;u.user_qual=sd();u.release_version=P[11]}u.debug_videoId=this.videoData.videoId;return u}; g.M.addCueRange=function(Y){this.lf([Y])}; g.M.removeCueRange=function(Y){this.Xn.ly([Y])}; g.M.JM=function(){var Y=this.Xn;if(Y.IV.Y().V("html5_sort_cueranges_on_update")&&!(Y.Vl().length<=0||Y.gg())){var u=Y.K;u.array.sort(u.K)}Y.sync()}; g.M.mJ=function(Y,u){return this.Xn.mJ(Y,u)}; g.M.lf=function(Y,u){this.Xn.l6(Y,u)}; g.M.CC=function(Y){this.Xn.ly(Y)}; g.M.Vl=function(){return this.Xn.Vl()||[]}; g.M.Qz=function(){return this.gY}; g.M.R_=function(){return this.visibility.R_()}; g.M.TD=function(){this.mediaElement&&this.mediaElement.TD()}; g.M.ySk=function(){Qe(this)}; g.M.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.M.mx=function(){g.Lb(this.AL)}; g.M.Foa=function(){this.ye();this.publish("onLoadProgress",this.o2())}; g.M.zi=function(Y){var u=Y.target.sE();if(this.mediaElement&&this.mediaElement.sE()&&this.mediaElement.sE()===u){K7m(this,Y.type);switch(Y.type){case "error":var n=va(this.mediaElement)||"",U=this.mediaElement.UX();if(n==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.fG("capchg",{msg:U}),this.mT(!0)):fL(this);return}if(this.mediaElement.hasError()&&szW(this.Rq,n,{msg:U,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.Sh()===4){this.Sc();ig(this,"unplayable"); return}break;case "durationchange":n=this.mediaElement.getDuration();isFinite(n)&&(!this.ZW||n>0)&&n!==1&&this.Jp(n);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());bLW(this.Xn);this.Vm.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":L77(this);this.publish("onLoadedMetadata");Tie(this);n=this.Ia();this.videoData.Ac&&(this.videoData.Ac=n);break;case "loadstart":Tie(this);break;case "progress":case "suspend":this.C5.pw(); break;case "playing":this.DF.M5("plev");this.jV&&!az(this)&&(this.jV=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{L0:"videoplayer_onPlaying"})));break;case "timeupdate":n=this.mediaElement&&!this.mediaElement.getCurrentTime();U=this.mediaElement&&this.mediaElement.t4()===0;if(n&&(!this.yX||U))return;this.yX=this.yX||!!this.mediaElement.getCurrentTime();ZWW(this);this.ye();if(!this.mediaElement||this.mediaElement.sE()!==u)return;this.publish("onVideoProgress", this.getCurrentTime());break;case "waiting":if(this.mediaElement.h1().length>0&&this.mediaElement.eM().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.t4()>2||!this.mediaElement.isSeeking()&&XT(this.mediaElement.eM(),this.mediaElement.getCurrentTime()))&&(n=this.mediaElement.Tw(),n.bh=oZ(this.mediaElement).toFixed(3),this.fG("uwe",n));break;case "resize":L77(this); this.videoData.j&&this.videoData.j.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Al&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&this.getCurrentTime()===0&&g.Z0){ig(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.sE()===u){BOG(this.OD,Y);this.publish("videoelementevent",Y);u=this.playerState;U=this.N_;var k=this.mediaElement;n=this.videoData.clientPlaybackNonce;if(!g.V(u,128)){var m=u.state; k=k?k:Y.target;var X=k.getCurrentTime();if(!g.V(u,64)||Y.type!=="ended"&&Y.type!=="pause"){var S=k.getDuration();S=k.isEnded()||X>1&&Math.abs(X-S)<1.1;var C=Y.type==="pause"&&k.isEnded();X=Y.type==="ended"||Y.type==="waiting"||Y.type==="timeupdate"&&!g.V(u,4)&&!Iz(U,X);if(C||S&&X)k.pW()>0&&k.sE()&&(m=14);else switch(Y.type){case "error":va(k)&&(m|=128);break;case "pause":g.V(u,256)?(m^=256)||(m=64):g.V(u,32)||g.V(u,2)||g.V(u,4)||(m=4,g.V(u,1)&&g.V(u,8)&&(m|=1));break;case "playing":X=m;m=(m|8)&-1093; X&4?(m|=1,Dy(U,k,!0)):Iz(U,k.getCurrentTime())&&(m&=-2);g.V(u,1)&&Dy(U,k)&&(m|=1);break;case "seeking":m|=16;g.V(u,8)&&(m|=1);m&=-3;break;case "seeked":m&=-17;Dy(U,k,!0);break;case "waiting":g.V(u,2)||(m|=1);Dy(U,k);break;case "timeupdate":X=g.V(u,16),S=g.V(u,4),(g.V(u,8)||X)&&!S&&Iz(U,k.getCurrentTime())&&(m=8),Dy(U,k)&&(m|=1)}}U=m;m=null;U&128&&(m=Y.target,k=va(m),X=1,k?(k==="capability.changed"&&(X=2),S="GENERIC_WITHOUT_LINK",C=m.Tw(),C.mediaElem="1",C.trg="melem",/AUDIO_RENDERER/.test(m.UX())&& (S="HTML5_AUDIO_RENDERER_ERROR"),m={errorCode:k,errorMessage:g.qQ[S]||"",vX:S,yK:NO(C),yz:X,cpn:u.Jt?u.Jt.cpn:""}):m=null,m&&(m.cpn=n));u=x6(u,U,m)}!g.V(this.playerState,1)&&g.V(u,1)&&j7A(this,"evt"+Y.type);this.t_(u)}}}; g.M.MGq=function(Y){Y=Y.K.availability==="available";Y!==this.gY&&(this.gY=Y,this.publish("airplayavailabilitychange"))}; g.M.JJW=function(){var Y=(0,g.j2)(),u=this.mediaElement.R_();this.fG("airplay",{ia:u});!u&&!isNaN(this.Es)&&Y-this.Es<2E3||(this.Es=Y,u!==this.R_()&&(Y=this.visibility,Y.K!==u&&(Y.K=u,Y.ke()),this.fG("airplay",{rbld:u}),this.JI()),this.publish("airplayactivechange"))}; g.M.GP=function(Y){if(this.loader){var u=this.loader,n=u.X,U=u.getCurrentTime(),k=Date.now()-n.N;n.N=NaN;n.fG("sdai",{adfetchdone:Y,d:k});Y&&!isNaN(n.S)&&n.j!==3&&Y7(n.loader,U,n.S,n.W);n.policy.j?n.J=NaN:n.G=NaN;$b(n,4,n.j===3?"adfps":"adf");YQ(u)}}; g.M.Hw=function(){g.Zz(this.fB);this.EZ.stop();this.videoData.oV=!0;this.xw.Rj=!0;this.xw.nT=0;var Y=this.Rq;if(Y.videoData.j){var u=Y.GZ.J,n=Y.videoData.j.aV;u.G.has(n)&&(u.G.delete(n),u.j=!0)}Y.K.stop();this.ol();g.V(this.playerState,8)&&this.t_(ho(this.playerState,65));this.A6=!1;Y=this.Vm;Y.K&&fd0(Y.K);Y.j&&(Y=Y.j,u=g.Sk(Y.provider),Y.K<0&&(Y.K=u,Y.delay.start()),Y.j=u,Y.G=u);g.OQ(this.Eq);this.publish("playbackstarted");(Y=g.nR("yt.scheduler.instance.clearPriorityThreshold"))?Y():qx(0)}; g.M.ol=function(){var Y=this.W0.xR(),u={},n={};!t$("pbs",this.DF.timerName)&&N4.measure&&N4.getEntriesByName&&(N4.getEntriesByName("mark_nr")[0]?nHB("mark_nr"):nHB());Y.videoId&&(u.videoId=Y.videoId);Y.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(u.clientPlaybackNonce=Y.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(n.isPausedOnLoad=!0);n.itag=Y.j?Number(Y.j.itag):-1;Y.xa&&(n.preloadType=String(this.BZ?2:1));u.liveStreamMode=gSq[OZ(Y)];u.playerInfo=n;this.DF.infoGel(u); if(this.loader){Y=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(Y.X&&(u=window.performance.getEntriesByName(Y.X),u.length&&(u=u[0],Y.tick("vri",u.fetchStart),Y.tick("vdns",u.domainLookupEnd),Y.tick("vreq",u.requestStart),Y.tick("vrc",u.responseEnd))),Y.j&&(u=window.performance.getEntriesByName(Y.j),u.length&&(u=u[0],Y.tick("ari",u.fetchStart),Y.tick("adns",u.domainLookupEnd),Y.tick("areq",u.requestStart),Y.tick("arc",u.responseEnd))));Y=Y.ticks;for(var U in Y)Y.hasOwnProperty(U)&& this.DF.tick(U,Y[U])}}; g.M.ye=function(Y){var u=this;Y=Y===void 0?!1:Y;if(this.mediaElement&&this.videoData){MNm(this.OD,this.isPlaying());var n=this.getCurrentTime();if(this.loader&&(g.V(this.playerState,4)&&g.$R(this.videoData)||g.V(this.playerState,32)&&xR(this.videoData)||XO0(this.loader,n),this.V("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var U;this.fG("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(U=this.loader)==null?void 0:U.currentTime},!0)}n> 5&&(this.OD.X=n);(U=g.J6())?g.WA.aO(this.HN):g.iL(this.HN);var k=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!k||jc(this.videoData))&&!g.V(this.playerState,128)){var m=function(){if(u.mediaElement&&!g.V(u.playerState,128)){u.xw.gX()&&K7m(u,"pfx");var X=u.getCurrentTime();u.V("html5_buffer_underrun_transition_fix")&&(X-=u.iN());var S=oZ(u.mediaElement),C=g.V(u.playerState,8),f=Iz(u.N_,X),Q=O17(u.N_,X,(0,g.j2)(),S);C&&f?u.t_(ho(u.playerState,1)):C&&Q?(C=u.getDuration(),f=W2(u.videoData), C&&Math.abs(C-X)<1.1?(u.fG("setended",{ct:X,bh:S,dur:C,live:f}),u.mediaElement.Db()?(u.logger.debug("seek to 0 because of looping"),u.seekTo(0,{L0:"videoplayer_loop",seekSource:37})):u.q5()):(u.playerState.isBuffering()||j7A(u,"progress_fix"),u.t_(l$(u.playerState,1)))):(C&&!f&&!Q&&X>0&&(C=(Date.now()-u.sy)/1E3,f=u.getDuration(),X>f-1&&u.fG("misspg",{t:X.toFixed(2),d:f.toFixed(2),r:C.toFixed(2),bh:S.toFixed(2)})),u.playerState.isPaused()&&u.playerState.isBuffering()&&oZ(u.mediaElement)>5&&u.t_(ho(u.playerState, 1)));u.ye()}}; this.mediaElement.h1().length===0?this.HN=U?g.WA.MX(m,100):g.QS(m,100):this.HN=U?g.WA.MX(m,500):g.QS(m,500)}this.videoData.yY=n;!Y&&this.isPlaying()&&Mpt(this);eyA(this.Tf,this.fp,this.wD(),this.isBackground())&&PR(this);this.publish("progresssync",Y);k&&jc(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.M.qM=function(){this.Re("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.M.RE=function(){return this.Vm.RE()}; g.M.GL=function(){return this.loader?this.loader.GL():FM(this.xw.schedule,!0)}; g.M.t_=function(Y){if(!g.Wa(this.playerState,Y)){this.logger.debug(function(){return"Setting state "+Y.toString()}); var u=new g.PY(Y,this.playerState);this.playerState=Y;p47(this);var n=!this.nB.length;this.nB.push(u);var U=this.mediaElement&&this.mediaElement.isSeeking();g.C1(u,1)&&this.loader&&oNm(this.loader);U=u.oldState.state===8&&!U;g.C1(u,1)&&U&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.loader&&(c3d(this.loader),this.mediaElement&&oZ(this.mediaElement)>=5&&wGu(this.Tf,this.fp)&&PR(this));(U=g.YF(this.xw.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.V(Y,1)&&(g.V(Y,8)||g.V(Y, 16))?this.Aw.start(U):this.Aw.stop();(SZ(u,8)<0||g.C1(u,1024))&&this.EZ.stop();!g.C1(u,8)||this.videoData.oV||g.V(u.state,1024)||this.EZ.start();g.V(u.state,8)&&SZ(u,16)<0&&!g.V(u.state,32)&&!g.V(u.state,2)&&this.playVideo();g.V(u.state,2)&&YN(this.videoData)&&(this.Jp(this.getCurrentTime()),this.ye(!0));g.C1(u,2)&&(this.cq(!0),this.xw.gX()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&xR(this.videoData)&&this.videoData.K&&(U={minst:""+this.videoData.K.hG,cminst:""+(this.videoData.K.zc()+ this.iN()),maxst:""+this.videoData.K.z3,hts:""+this.videoData.K.oV,cmaxst:""+(this.videoData.K.v0()+this.iN())},this.fG("sabrSeekableBoundaries",U)));g.C1(u,128)&&this.Sc();this.videoData.K&&this.videoData.isLivePlayback&&!this.V4&&(SZ(u,8)<0?v6W(this.videoData.K):g.C1(u,8)&&this.videoData.K.resume());TOu(this.OD,u);LdB(this.Vm,u);if(n&&!this.gg())try{for(var k=g.A(this.nB),m=k.next();!m.done;m=k.next()){var X=m.value;Ide(this.Xn,X);this.publish("statechange",X)}}finally{this.nB.length=0}}}; g.M.oz=function(){this.DF.tick("qoes")}; g.M.Kl=function(){this.OD.Kl()}; g.M.iW=function(Y,u,n,U){a:{var k=this.Rq;U=U===void 0?"LICENSE":U;n=n.substring(0,256);var m=ZF(u);Y==="drm.keyerror"&&this.YR&&this.YR.j.keys.length>1&&k.G<96&&(Y="drm.sessionlimitexhausted",m=!1);var X=k.GZ.experiments.vz("html5_retry_on_drm_unavailable"),S=k.GZ.experiments.vz("html5_retry_on_drm_key_error"),C=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(X&&Y==="drm.unavailable"||S&&Y==="drm.keyerror"&&!n.match(C))k.Ra("qoe.restart",{retryOnDrmError:1,e:Y,detail:n}),k.IV.mT(!0);else{if(m)if(k.videoData.j&& k.videoData.j.video.isHdr())pGu(k,Y);else{if(k.IV.Re(Y,u,U,n),Twm(k,{detail:n}))break a}else k.Ra(Y,{detail:n});Y==="drm.sessionlimitexhausted"&&(k.fG("retrydrm",{sessionLimitExhausted:1}),k.G++,ASB(k.IV))}}}; g.M.r_F=function(){var Y=this,u=g.YF(this.xw.experiments,"html5_license_constraint_delay"),n=qI();u&&n?(u=new g.Vp(function(){Y.V3();Qe(Y)},u),g.b(this,u),u.start()):(this.V3(),Qe(this))}; g.M.wb=function(Y){this.publish("heartbeatparams",Y)}; g.M.x5=function(Y){this.fG("keystatuses",zMe(Y));var u="auto",n=!1;this.videoData.j&&(u=this.videoData.j.video.quality,n=this.videoData.j.video.isHdr());a:{switch(u){case "highres":case "hd2880":u="UHD2";break;case "hd2160":case "hd1440":u="UHD1";break;case "hd1080":case "hd720":u="HD";break;case "large":case "medium":case "small":case "light":case "tiny":u="SD";break;default:u="";break a}n&&(u+="HDR")}u=G9(Y)?A1(Y,u):Y.G.includes(u);if(this.V("html5_enable_vp9_fairplay")){if(n)if(Y.S){var U;if((U= this.YR)==null?0:QF(U.K))if((n=this.YR)==null)n=0;else{for(var k=U=void 0,m=g.A(n.j.values()),X=m.next();!X.done;X=m.next())X=X.value,U||(U=ELd(X,"SD")),k||(k=ELd(X,"AUDIO"));n.RO({sd:U,audio:k});n=U==="output-restricted"||k==="output-restricted"}else n=!u;if(n){this.fG("drm",{dshdr:1});pGu(this.Rq);return}}else{this.videoData.g1||(this.videoData.g1=!0,this.fG("drm",{dphdr:1}),this.mT(!0));return}var S;if((S=this.YR)==null?0:QF(S.K))return}else if(S=Y.S&&u,n&&!S){pGu(this.Rq);return}u||A1(Y,"AUDIO")&& A1(Y,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),Y=zMe(Y),this.KP?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.Re("drm.keyerror",2,void 0,"info."+Y)):(this.KP=!0,this.Ra(new g.iO("qoe.restart",Object.assign({},{retrydrm:1},Y))),PR(this),ASB(this)))}; g.M.D1G=function(){if(!this.videoData.oV&&this.mediaElement&&!this.isBackground()){var Y="0";this.mediaElement.t4()>0&&oZ(this.mediaElement)>=5&&this.videoData.X&&this.videoData.X.K&&(this.t_(l$(this.playerState,1)),j7A(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),Y="1");p47(this);var u=this.videoData.X;Y={restartmsg:Y,mfmt:!o2(this.videoData),mdrm:!(!(u&&u.videoInfos&&u.videoInfos.length&&u.videoInfos[0].Ls)||this.YR),mfmtinfo:!this.videoData.j,prerolls:this.r3()?this.hI.join(","): "0"};if(this.YR){u=this.YR;if(u.j.size<=0){var n="ns;";u.N||(n+="nr;");u=n+="ql."+u.X.length}else u=zMe(u.j.values().next().value),u=NO(u);Y.drmp=u}var U;Object.assign(Y,((U=this.loader)==null?void 0:U.Tw())||{});var k;Object.assign(Y,((k=this.mediaElement)==null?void 0:k.Tw())||{});this.Vm.Ra("qoe.start15s",NO(Y));this.publish("loadsofttimeout")}}; g.M.Jp=function(Y){this.videoData.lengthSeconds!==Y&&(this.videoData.lengthSeconds=Y,Qe(this))}; g.M.cq=function(Y,u){var n=this;Y=Y===void 0?!1:Y;if(!this.AT)if(t$("att_s","player_att")||oV("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var k,m,X,S;return g.l(function(C){switch(C.j){case 1:if(!(k=Y)){C.qF(2);break}return g.D(C,g.RN0(),3);case 3:k=!C.K;case 2:if(k)return C.return();g.pY(C,4);m=cbc(n.Vm);if(!m)throw Error();X={};return g.D(C,g.vH0((X.cpn=n.videoData.clientPlaybackNonce,X.encryptedVideoId=n.videoData.videoId||"",X),3E4),6);case 6:S=C.K;if(n.AT)throw Error(); if(!S.challenge)throw g.Br(Error("Not sending attestation ping; no attestation challenge string")),Error();n.AT=!0;var f=[S.challenge];S.error?f.push("r1c="+S.error):S.webResponse&&f.push("r1a="+S.webResponse);var Q;((Q=S.adblockReporting)==null?void 0:Q.reportingStatus)!==void 0&&f.push("r6a="+S.adblockReporting.reportingStatus);var N;((N=S.adblockReporting)==null?void 0:N.broadSpectrumDetectionResult)!==void 0&&f.push("r6b="+S.adblockReporting.broadSpectrumDetectionResult);m(f.join("&"));oV("att_f", void 0,"player_att");g.Bc(C,0);break;case 4:g.vc(C),oV("att_e",void 0,"player_att"),g.KY(C)}})})().then(function(){u==null||u()}); else{var U=new g.gFu(this.videoData);if("c1a"in U.aq&&!g.i6.isInitialized()){oV("att_wb",void 0,"player_att");this.eO===2&&Math.random()<.01&&g.Br(Error("Botguard not available after 2 attempts"));if(Y)return;if(this.eO<5){g.OQ(this.di);this.eO++;return}}(U=g.EF0(U))?(oV("att_f",void 0,"player_att"),ozS(this.Vm,U),this.AT=!0):oV("att_e",void 0,"player_att")}}; g.M.u4=function(Y){Y=Y===void 0?!1:Y;return W2(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.TK()||g.$R(this.videoData))?this.getCurrentTime():this.v0(Y)}; g.M.fQ=function(){return this.zc()}; g.M.v0=function(Y){return this.OD.v0(Y===void 0?!1:Y)}; g.M.zc=function(){return this.OD.zc()}; g.M.iN=function(){return this.OD?this.OD.iN():0}; g.M.getStreamTimeOffset=function(){return this.OD?this.OD.getStreamTimeOffset():0}; g.M.l2=function(){var Y=0;this.xw.V("web_player_ss_media_time_offset")&&(Y=this.getStreamTimeOffset()===0?this.iN():this.getStreamTimeOffset());return Y}; g.M.setPlaybackRate=function(Y){var u;this.playbackRate!==Y&&oQe(this.Tf,(u=this.videoData.X)==null?void 0:u.videoInfos)&&(this.playbackRate=Y,PR(this));this.playbackRate=Y;this.mediaElement&&this.mediaElement.setPlaybackRate(Y)}; g.M.getPlaybackRate=function(){return this.playbackRate}; g.M.getPlaybackQuality=function(){var Y="unknown";if(this.videoData.j&&(Y=this.videoData.j.video.quality,Y==="auto"&&this.mediaElement)){var u=this.X4();u&&u.videoHeight>0&&(Y=lO(u.videoWidth,u.videoHeight))}return Y}; g.M.isHdr=function(){return!!(this.videoData.j&&this.videoData.j.video&&this.videoData.j.video.isHdr())}; g.M.sendVideoStatsEngageEvent=function(Y,u){var n=this.Vm;n.K?(n=xQ(n.K,"engage"),n.jG=Y,n.send(u)):u&&u()}; g.M.Na=function(Y){return this.Vm.Na(Y)}; g.M.isAtLiveHead=function(Y,u){u=u===void 0?!1:u;return W2(this.videoData)&&(this.Jm||u)?this.OD.isAtLiveHead(Y):!1}; g.M.bl=function(){var Y=this.v0(),u=this.getCurrentTime(),n;(n=!W2(this.videoData))||(n=this.OD,n=!(n.K&&n.K.X));return n||this.TK()||isNaN(Y)||isNaN(u)?0:Math.max(0,Y-u)}; g.M.gC=function(Y){(this.Jm=Y)||this.EZ.stop();this.videoData.K&&(Y?this.videoData.K.resume():v6W(this.videoData.K));if(this.loader){var u=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.Ws()&&this.videoData.isLivePlayback;Y&&!u?this.loader.resume():rJ(this,!0)}g.V(this.playerState,2)||Y?g.V(this.playerState,512)&&Y&&this.t_(ho(this.playerState,512)):this.t_(l$(this.playerState,512));u=this.Vm;u.qoe&&(u=u.qoe,g.mF(u,g.Sk(u.provider),"stream",[Y?"A":"I"]))}; g.M.VX=function(Y){this.Vm.Ra("player.exception",NO({n:Y.name,m:Y.message}))}; g.M.zf=Ye(22);g.M.W2=Ye(51);g.M.J4=function(Y){this.Vm.J4(Y)}; g.M.Vx=function(Y){this.Vm.Vx(Y)}; g.M.lS=function(Y){this.Vm.lS(Y)}; g.M.k$=Ye(28);g.M.BC=Ye(34);g.M.qV=function(Y){this.Vm.qV(Y)}; g.M.n6=function(Y,u,n,U){this.Vm.n6(Y,u,n,U)}; g.M.td=function(){this.fG("hidden",{},!0)}; g.M.FL=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.M.Fg=function(){return this.loader?this.loader.Fg():!0}; g.M.setLoop=function(Y){this.loop=Y;this.mediaElement&&!g.Zp(this.xw)&&this.mediaElement.setLoop(Y)}; g.M.Db=function(){return this.mediaElement&&!g.Zp(this.xw)?this.mediaElement.Db():this.loop}; g.M.bM=function(Y){this.fG("timestamp",{o:Y.toString()});this.OD.bM(Y)}; g.M.ED=function(Y){this.DF.tick(Y)}; g.M.vW=function(Y){return this.DF.vW(Y)}; g.M.M5=function(Y){this.DF.M5(Y)}; g.M.fG=function(Y,u,n){this.Vm.fG(Y,u,n===void 0?!1:n)}; g.M.Zr=function(Y,u,n){this.Vm.fG(Y,u,n===void 0?!1:n)}; g.M.Ra=function(Y){this.Vm.Ra(Y.errorCode,NO(Y.details));Y=Y.errorCode;if(this.videoData.isLivePlayback&&(Y==="qoe.longrebuffer"||Y==="qoe.slowseek")||Y==="qoe.restart"){Y=this.loader?iDW(this.loader.videoTrack):{};var u,n;this.fG("lasoe",Object.assign(this.loader?iDW(this.loader.audioTrack):{},(u=this.ZW)==null?void 0:(n=u.K)==null?void 0:n.eS()));var U,k;this.fG("lvsoe",Object.assign(Y,(U=this.ZW)==null?void 0:(k=U.j)==null?void 0:k.eS()))}if(this.V("html5_log_centralized_player_time")){var m;this.fG("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(m=this.loader)==null?void 0:m.currentTime})}}; g.M.Ro=function(Y,u,n){this.Vm.Ro(Y,u,n)}; g.M.rB=function(Y,u,n,U,k,m,X,S){var C;if((C=this.videoData.K)!=null&&C.isLive){var f=u.playerType===2?u:Y,Q=Y.videoData.videoId,N=u.videoData.videoId;if(Q&&N){C=this.Vm;if(C.qoe){var Z=C.qoe,T=Y.cpn,r=u.cpn,K=f.videoData.gL,L=Z.provider.videoData.clientPlaybackNonce,R=Z.provider.videoData.videoId,c=r!==L&&N!==R;L=T!==L&&Q!==R;Z.reportStats();Z.adCpn&&Z.adCpn!==T||(Z.adCpn=L?T:"",Z.Cr=L?Q:"",Z.adFormat=L?K:void 0,Gzd(Z,m?4:k?2:0,r,N,U),Z.reportStats(),Z.adCpn=c?r:"",Z.Cr=c?N:"",Z.adFormat=c?K:void 0, Gzd(Z,m?5:k?3:1,T,Q,n),Z.reportStats())}n=Y.cpn;if(C.X.has(n)){if(k=C.X.get(n),ww(k,!0).send(),h1(k),n!==C.provider.videoData.clientPlaybackNonce){rbm(k);var x;(x=C.K)==null||Qnd(x);C.X.delete(n)}}else C.T6=C.provider.videoData.clientPlaybackNonce,C.T6&&C.K&&(C.X.set(C.T6,C.K),ww(C.K).send(),h1(C.K));x=u.cpn;f=f.videoData;U-=this.l2();if(C.X.has(x)){U=C.X.get(x);var W=U.X&&isNaN(U.J)?lt(U):NaN;U=TJ0(U,!1);isNaN(W)||(U.S=W);U.send()}else U=vzB(C,C.provider,f,U),C.X.set(x,U),MSS(U,new g.PY(l$(new g.RZ, 8),new g.RZ)),fd0(U),(W=C.K)==null||h1(W);C.T6=x;if(this.V("html5_unify_csi_server_stitched_transition_logging")){if(C=this.DF,W=u.cpn,U=this.videoData.clientPlaybackNonce,u=u.videoData,Y=(Y.cpn===U?"video":"ad")+"_to_"+(W===U?"video":"ad"),Y!=="video_to_ad"){U=Y==="ad_to_video"?void 0:u;f=U==null?void 0:U.jg;x={};if(u==null?0:u.W)x.cttAuthInfo={token:u.W,videoId:u.videoId};X&&(x.startTime=X);Lg(Y,x);var E,J,O;X={targetVideoId:(E=u==null?void 0:u.videoId)!=null?E:"empty_video",targetCpn:W,adVideoId:(J= U==null?void 0:U.videoId)!=null?J:"empty_video",adClientPlaybackNonce:(O=f==null?void 0:f.cpn)!=null?O:U==null?void 0:U.clientPlaybackNonce};f&&(X.adBreakType=f.adBreakType,X.adType=f.adType);g.pg(X,Y);L_(C,S,Y)}}else E=this.DF,O=this.videoData.clientPlaybackNonce,J=u.videoData,O=(Y.cpn===O?"video":"ad")+"_to_"+(u.cpn===O?"video":"ad"),Y={},J.W&&(Y.cttAuthInfo={token:J.W,videoId:J.videoId}),X&&(Y.startTime=X),Lg(O,Y),g.pg({targetVideoId:J.videoId,targetCpn:u.cpn,isSsdai:!0},O),X||L_(E,S,O)}}else this.logger.K(360717806, "SSTEvent for nonSS")}; g.M.XB=function(){var Y=this.W0,u=Y.uG;Y.uG=[];return u}; g.M.BX=function(Y){this.videoData.ZH=!0;this.Ra(new g.iO("sabr.fallback",Y));this.mT(!0)}; g.M.nW=function(Y,u){this.videoData.Ds=!0;if(u===void 0||u)this.Ra(new g.iO("qoe.restart",Y)),this.mT(!0)}; g.M.Fi=function(Y){this.fG("sdai",{aftimeout:Y});this.Ra(new g.iO("ad.fetchtimeout",{timeout:Y}))}; g.M.Hq=function(Y,u){this.fG("timelineerror",Y);Y=new g.iO("dai.timelineerror",Y);u?this.Re("dai.timelineerror",1,"RETRYABLE_ERROR",NO(Y.details)):this.Ra(Y)}; g.M.jl=function(){return g.Sk(this.Vm.provider)}; g.M.getPlayerSize=function(){return this.rE.getPlayerSize()}; g.M.UE=function(){return this.rE.UE()}; g.M.PC=function(){return this.DF}; g.M.nQ=function(){return this.W0.nQ()}; g.M.getVolume=function(){return this.W0.getVolume()}; g.M.zK=function(){return this.W0.zK()}; g.M.isMuted=function(){return this.W0.isMuted()}; g.M.DK=function(){return this.W0.DK()}; g.M.To=function(){this.V4=!0}; g.M.V=function(Y){return this.xw.V(Y)}; g.M.XF=function(Y,u,n,U,k){this.fG("xvt",{m:Y,g:u?1:0,tt:n?1:0,np:U?1:0,c:k})}; g.M.kA=function(){var Y;(Y=this.loader)==null||Y.resume()}; g.M.Ws=function(){return g.jB(this.hI,"ad")}; g.M.CY=function(){var Y=this.getCurrentTime(),u=Y-this.iN();var n=this.mediaElement?SJ(this.mediaElement.eM()):0;n=Math.floor(Math.max(n-u,0))+100;var U;return((U=this.loader)==null?0:U.CY(u,n))?(this.fG("sdai",{skipad:1,ct:u.toFixed(3),adj:n.toFixed(3)}),xR(this.videoData)&&this.loader.seek(u+n,{seekSource:89,L0:"videoplayer_skipServerStitchedAd"}),cLm(this.OD,Y),!0):!1}; g.M.gX=function(){return this.xw.gX()}; g.M.y_=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.M4||"";this.W0.AN();return this.xw.SW||""}; g.M.YK=function(){if(this.videoData.videoId)return this.videoData.LM}; g.M.l8=function(){return this.videoData.videoId}; g.M.J3=function(){return this.W0.DX}; g.M.xC=function(){return this.A6}; g.M.LQ=function(){return this.W0.LQ()}; g.M.mO=function(Y,u,n){this.t_(l$(this.playerState,16,n));this.OD.mO(Y,u)}; g.M.prefetchKeyPlay=function(){}; g.M.Rl=function(){this.OD.Rl()}; g.M.nJ=function(Y,u){var n=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.W0.nJ(Y,u,n)}; g.M.yc=function(Y,u){this.Vm.yc(Y,u)}; g.M.o8=function(){return this.Vm.o8()}; g.M.bA=function(){return this.videoData.e7}; g.M.IM=function(){return this.W0.IM()}; g.M.C2=function(){return this.W0.C2(this)}; g.M.cF=function(){this.gN=!0}; g.M.zH=function(Y){var u;(u=this.loader)==null||u.zH(Y)};g.d(tp0,MA);g.d(sK,L0);sK.prototype.K=function(Y){Y&&tO(this,this.L.getLoopVideo());this.L.logVisibility(this.element,Y)}; sK.prototype.logClick=function(){this.L.logClick(this.element)}; sK.prototype.onLoopChange=function(Y){tO(this,Y)}; sK.prototype.j=function(Y){this.L.setLoopVideo(Y)};g.d(BiG,MA);g.d(o_d,MA);g.M=o_d.prototype;g.M.seekToChapterWithAnimation=function(Y){var u=this;if(g.w6(this.api)&&!(Y<0)){var n=this.api.getVideoData(),U=n.s6;if(U&&Y=0)return;u=~u;g.bQ(this.items,u,0,Y);Go(this.menuItems.element,Y.element,u)}Y.subscribe("size-change",this.tH,this);this.menuItems.publish("size-change")}; g.M.SM=function(Y){Y.unsubscribe("size-change",this.tH,this);this.gg()||(g.pR(this.items,Y),this.menuItems.element.removeChild(Y.element),this.menuItems.publish("size-change"))}; g.M.tH=function(){this.menuItems.publish("size-change")}; g.M.focus=function(){for(var Y=0,u=0;u1&&g.wJ(this)}; g.M.JO=function(){fsu(this);this.KT&&(Sbu(this),g.nP(this.element,this.size))}; g.M.Ya=function(){var Y=this.K.pop();CCS(this,Y,this.K[this.K.length-1],!0)}; g.M.KO=function(Y){if(!Y.defaultPrevented)switch(Y.keyCode){case 27:this.H$();Y.preventDefault();break;case 37:this.K.length>1&&this.Ya();Y.preventDefault();break;case 39:Y.preventDefault()}}; g.M.focus=function(){this.K.length&&this.K[this.K.length-1].focus()}; g.M.nG=function(){g.SL.prototype.nG.call(this);this.W&&this.W.dispose();this.S&&this.S.dispose()};g.d(WR,g.xz);WR.prototype.open=function(Y,u){this.initialize(Y.items)&&this.Su(u,!!u)}; WR.prototype.initialize=function(Y){g.Dd(this.NN);if(Y===void 0||Y.length===0)return!1;var u=Y.length;Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next())this.rD(n.value,u--);return!0}; WR.prototype.rD=function(Y,u){Y.menuNavigationItemRenderer?i9B(this,Y.menuNavigationItemRenderer,u):Y.menuServiceItemRenderer&&Z9W(this,Y.menuServiceItemRenderer,u)};g.d(eS,cR);g.M=eS.prototype;g.M.gh=function(Y){Y.target!==this.dismissButton.element&&Y.target!==this.overflowButton.element&&(this.YZ(),this.onClickCommand&&this.L.Yw("innertubeCommand",this.onClickCommand))}; g.M.vK=function(){this.enabled=!1;this.N.hide()}; g.M.OO=function(){return!!this.K&&this.enabled}; g.M.onVideoDataChange=function(Y,u){this.xn(u);if(this.K){this.KV();a:if(!this.isCounterfactual){var n,U,k;this.banner.update({title:(n=this.K)==null?void 0:n.title,subtitle:(U=this.K)==null?void 0:U.subtitle,metadata:(k=this.K)==null?void 0:k.metadataText});var m;this.onClickCommand=g.z((m=this.K)==null?void 0:m.onTap,cr);var X;if(Y=g.z((X=this.K)==null?void 0:X.onOverflow,cr))this.S=g.z(Y,u8$);var S;if((S=this.K)==null?0:S.thumbnailImage){var C,f;X=((C=this.K)==null?void 0:(f=C.thumbnailImage)== null?void 0:f.sources)||[];if(X.length===0)break a;this.thumbnailImage.update({url:X[0].url})}else{var Q;if((Q=this.K)==null?0:Q.thumbnailIconName){var N;this.thumbnailIcon.update({icon:(N=this.K)==null?void 0:N.thumbnailIconName})}}var Z;this.shouldShowOverflowButton=!((Z=this.K)==null||!Z.shouldShowOverflowButton);var T;this.shouldHideDismissButton=!((T=this.K)==null||!T.shouldHideDismissButton)}var r;this.banner.element.setAttribute("aria-label",((r=this.K)==null?void 0:r.a11yLabel)||"");var K; this.zZ=(K=this.K)==null?void 0:K.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;rhS(this)}}; g.M.fFF=function(){this.isVisible=!0;rhS(this)}; g.M.nVg=function(){this.isVisible=!1;rhS(this)}; g.M.x9=function(){cR.prototype.x9.call(this);this.j&&this.L.logVisibility(this.banner.element,this.isVisible)}; g.M.YZ=function(){cR.prototype.YZ.call(this,!1);this.j&&this.L.logClick(this.banner.element)}; g.M.fO=function(Y){this.W||(this.W=new WR(this.L),g.b(this,this.W));var u,n;if((u=this.S)==null?0:(n=u.menu)==null?0:n.menuRenderer)this.W.open(this.S.menu.menuRenderer,Y.target),Y.preventDefault()}; g.M.xn=function(){}; g.M.KV=function(){}; g.M.nG=function(){this.L.JS("suggested_action_view_model");cR.prototype.nG.call(this)};g.d(bg,eS); bg.prototype.xn=function(Y){var u,n,U;this.productUpsellSuggestedActionViewModel=g.z((u=Y.getWatchNextResponse())==null?void 0:(n=u.playerOverlays)==null?void 0:(U=n.playerOverlayRenderer)==null?void 0:U.suggestedActionViewModel,MwG);var k;if((k=this.productUpsellSuggestedActionViewModel)==null?0:k.content){var m;this.K=g.z((m=this.productUpsellSuggestedActionViewModel)==null?void 0:m.content,aOJ)}var X,S;if(this.j=!!((X=this.productUpsellSuggestedActionViewModel)==null?0:(S=X.loggingDirectives)==null? 0:S.trackingParams)){var C,f;this.L.setTrackingParams(this.banner.element,((C=this.productUpsellSuggestedActionViewModel)==null?void 0:(f=C.loggingDirectives)==null?void 0:f.trackingParams)||null)}var Q;this.isCounterfactual=!((Q=this.productUpsellSuggestedActionViewModel)==null||!Q.isCounterfactualServing)}; bg.prototype.KV=function(){var Y=[],u,n=g.A(((u=this.productUpsellSuggestedActionViewModel)==null?void 0:u.ranges)||[]);for(u=n.next();!u.done;u=n.next()){var U=u.value;U&&(u=Number(U.startTimeMilliseconds),U=Number(U.endTimeMilliseconds),isNaN(u)||isNaN(U)||Y.push(new g.EE(u,U,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.L.l6(Y)};g.d(MxW,MA);g.d(In,MA);In.prototype.onVideoDataChange=function(Y,u){var n=this;if(!ZP(u)&&(Y==="newdata"&&daY(this),this.K&&Y==="dataloaded")){this.K=!1;var U;ym(H3(xn(this.api.Y(),(U=this.api.getVideoData())==null?void 0:g.Qs(U)),function(k){LNt(n,k)}),function(){n.K=!0})}}; In.prototype.LF=function(){var Y=this;if(g.Zp(this.api.Y())){var u,n=g.DA(this.api.Y(),(u=this.api.getVideoData())==null?void 0:g.Qs(u));return H3(IY(n),function(U){var k=mm();X2(k,U);return Y.api.LF(k)})}return IY(this.api.LF())};g.d(g.gJ,g.ic);g.M=g.gJ.prototype;g.M.open=function(){g.lg(this.jE,this.j)}; g.M.ww=function(Y){txA(this);var u=this.options[Y];u&&(u.element.setAttribute("aria-checked","true"),this.dD(this.zg(Y)),this.X=Y)}; g.M.UT=function(Y){g.Dd(this.j);for(var u={},n=!1,U=0;U=0?this.K.playbackRate:1}catch(Y){return 1}}; g.M.setPlaybackRate=function(Y){this.getPlaybackRate()!==Y&&(this.K.playbackRate=Y);return Y}; g.M.Db=function(){return this.K.loop}; g.M.setLoop=function(Y){this.K.loop=Y}; g.M.canPlayType=function(Y,u){return this.K.canPlayType(Y,u)}; g.M.isPaused=function(){return this.K.paused}; g.M.isSeeking=function(){return this.K.seeking}; g.M.isEnded=function(){return this.K.ended}; g.M.wG=function(){return this.K.muted}; g.M.nZ=function(Y){An();this.K.muted=Y}; g.M.h1=function(){return this.K.played||Uw([],[])}; g.M.eM=function(){try{var Y=this.K.buffered}catch(u){}return Y||Uw([],[])}; g.M.Vq=function(){return this.K.seekable||Uw([],[])}; g.M.Yh=function(){var Y=this.K;return Y.getStartDate?Y.getStartDate():null}; g.M.getCurrentTime=function(){return this.K.currentTime}; g.M.setCurrentTime=function(Y){this.K.currentTime=Y}; g.M.getDuration=function(){return this.K.duration}; g.M.load=function(){var Y=this.K.playbackRate;try{this.K.load()}catch(u){}this.K.playbackRate=Y}; g.M.pause=function(){this.K.pause()}; g.M.play=function(){var Y=this.K.play();if(!Y||!Y.then)return null;Y.then(void 0,function(){}); return Y}; g.M.t4=function(){return this.K.readyState}; g.M.pW=function(){return this.K.networkState}; g.M.Sh=function(){return this.K.error?this.K.error.code:null}; g.M.UX=function(){return this.K.error?this.K.error.message:""}; g.M.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.K instanceof window.HTMLVideoElement&&this.K.getVideoPlaybackQuality)return this.K.getVideoPlaybackQuality();if(this.K){var Y=this.K,u=Y.webkitDroppedFrameCount;if(Y=Y.webkitDecodedFrameCount)return{droppedVideoFrames:u||0,totalVideoFrames:Y}}return{}}; g.M.R_=function(){return!!this.K.webkitCurrentPlaybackTargetIsWireless}; g.M.TD=function(){return!!this.K.webkitShowPlaybackTargetPicker()}; g.M.togglePictureInPicture=function(){var Y=this.K,u=window.document;window.document.pictureInPictureEnabled?this.K!==u.pictureInPictureElement?Y.requestPictureInPicture():u.exitPictureInPicture():GF()&&Y.webkitSetPresentationMode(Y.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.M.Kf=function(){var Y=this.K;return new g.yO(Y.offsetLeft,Y.offsetTop)}; g.M.getSize=function(){return g.Ui(this.K)}; g.M.setSize=function(Y){g.nP(this.K,Y)}; g.M.getVolume=function(){return this.K.volume}; g.M.setVolume=function(Y){An();this.K.volume=Y}; g.M.z9=function(Y){this.J[Y]||(this.K.addEventListener(Y,this.listener),this.J[Y]=this.listener)}; g.M.setAttribute=function(Y,u){this.K.setAttribute(Y,u)}; g.M.removeAttribute=function(Y){this.K.removeAttribute(Y)}; g.M.hasAttribute=function(Y){return this.K.hasAttribute(Y)}; g.M.PG=Ye(61);g.M.RC=Ye(63);g.M.nw=Ye(65);g.M.Ys=Ye(67);g.M.wz=function(){return TP(this.K)}; g.M.CL=function(Y){g.UN(this.K,Y)}; g.M.DG=function(Y){return g.OD(this.K,Y)}; g.M.MQ=function(){return g.jw(document.body,this.K)}; g.M.audioTracks=function(){var Y=this.K;if("audioTracks"in Y)return Y.audioTracks}; g.M.nG=function(){for(var Y=g.A(Object.keys(this.J)),u=Y.next();!u.done;u=Y.next())u=u.value,this.K.removeEventListener(u,this.J[u]);to.prototype.nG.call(this)}; g.M.Ov=function(Y){this.K.disableRemotePlayback=Y};g.d(uK,g.H);g.d(Uj,g.H);Uj.prototype.show=function(){g.H.prototype.show.call(this);this.QF();this.Bz.V("html5_enable_moving_s4n_window")&&g.Zp(this.Bz.Y())&&this.Z()}; Uj.prototype.hide=function(){g.H.prototype.hide.call(this);this.delay.stop();this.G.stop()}; Uj.prototype.QF=function(){var Y=(0,g.j2)(),u=WNM(this.Bz);n_(this.K,u.bandwidth_samples);n_(this.S,u.network_activity_samples);n_(this.X,u.live_latency_samples);n_(this.j,u.buffer_health_samples);var n={};u=g.A(Object.entries(u));for(var U=u.next();!U.done;U=u.next()){var k=g.A(U.value);U=k.next().value;k=k.next().value;this.N[U]!==k&&(n[U]=" "+String(k));this.N[U]=k}this.update(n);Y=(0,g.j2)()-Y>25?5E3:500;this.delay.start(Y)}; Uj.prototype.Z=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.G.start(2E4)};g.d(IsG,MA);g.d(kg,g.e);kg.prototype.K=function(){var Y=(0,g.j2)()-this.startTime;Y=Ythis.G[Y])&&(this.K=Y,this.TH())}; g.M.onCueRangeExit=function(Y){var u=YYG(this,Y);u&&this.K===Y&&this.api.Yw("innertubeCommand",u);PH(this);this.K=void 0}; g.M.e_=function(Y){this.X=Y}; g.M.Rz=function(){this.TH();this.X=void 0}; g.M.TH=function(){if(this.K!==void 0){var Y=(Y=XN(this,this.K))&&Y.onCueRangeEnter?Rb(Y.onCueRangeEnter):void 0;var u=XN(this,this.K);a:if(u&&u.additionalTrigger){var n=g.A(u.additionalTrigger);for(var U=n.next();!U.done;U=n.next())if(U=U.value,U.type){var k=void 0,m=void 0;if((k=this.DW[U.type])==null?0:k((m=U.args)!=null?m:{})){n=!0;break a}}n=!1}else n=!0;Y&&n&&(this.api.Yw("innertubeCommand",Y),uB7(this,u),this.G[this.K]!==void 0&&this.G[this.K]++,this.N=!0)}}; g.M.nG=function(){this.timelyActions=this.X=this.K=this.videoId=void 0;this.G={};this.ly();PH(this);MA.prototype.nG.call(this)};g.d(ka7,MA);g.d(SN,L0);SN.prototype.W=function(Y){this.G(Y?2:1)}; SN.prototype.j=function(){var Y=this.L.getPresentingPlayerType();Y===2||Y===3?(this.K=!1,this.jE.SM(this)):this.K||(Y=this.hasVoiceBoostAudioTrack(),this.setEnabled(Y),Y=this.X()===2&&Y,tO(this,Y),this.jE.rD(this),this.K=!0)}; SN.prototype.nG=function(){this.jE.SM(this);L0.prototype.nG.call(this)};g.d(C_,MA);C_.prototype.getVoiceBoostUserPreference=function(){return this.K}; C_.prototype.setVoiceBoostUserPreference=function(Y){this.api.fG("vb_set",{pref:Y});g.oU("yt-player-voice-boost",Y);Y!==this.K&&(this.K=Y,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.JI())}; C_.prototype.hasVoiceBoostAudioTrack=function(){var Y,u,n=(Y=this.api.getVideoData())==null?void 0:(u=Y.X)==null?void 0:u.K;return n?g3(n,function(U){var k;return((k=U.audio)==null?void 0:k.j)===!0}):!1}; C_.prototype.updateEnvironmentData=function(){this.api.Y().mG=this.K};var Tku=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.d(NQ,MA);NQ.prototype.nG=function(){this.S&&(g.Zz(this.S),this.S=void 0);MA.prototype.nG.call(this)}; NQ.prototype.AN=function(){(this.j?!this.K:this.X)&&ZR(this)}; NQ.prototype.Wc=function(Y,u,n){var U=this;if(PHA(Y)){var k=n||"";if(this.K)u=TD(this,k),SYu(Y,u);else{var m=new g.Nv;u.push(m.promise);this.J.promise.then(function(){var X=TD(U,k);SYu(Y,X);m.resolve()})}}}; NQ.prototype.Nl=function(Y){var u=this;if(this.j||this.X)Y.M4=TD(this,Y.videoId),this.K||(this.G=new Lh,this.J.promise.then(function(){u.DF.vW("pot_if");Y.M4=TD(u,Y.videoId)}))};g.d(g.MQ,g.H);g.MQ.prototype.select=function(){this.api.EK(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.h3||void 0)&&this.api.logClick(this.element)}; g.MQ.prototype.onClick=function(Y){if(g.nV(this.api.Y())&&this.api.V("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var u=this.suggestion.yg(),n={};g.af(this.api,n);u=g.Mk(u,n);g.oP(u,this.api,Y)}else g.BO(Y,this.api,this.j,this.suggestion.sessionData||void 0)&&this.select()}; g.MQ.prototype.onKeyPress=function(Y){switch(Y.keyCode){case 13:case 32:Y.defaultPrevented||(this.select(),Y.preventDefault())}}; g.MQ.prototype.onVideoDataChange=function(){var Y=this.api.getVideoData(),u=this.api.Y();this.j=Y.sD?!1:u.G};g.d(GaM,g.H);g.M=GaM.prototype;g.M.nG=function(){this.hide();g.Lb(this.G);g.Uo(this.stills);this.stills.length=0;this.j&&this.j.removeEventListener("click",this.MH);this.X&&this.X.removeEventListener("click",this.iI);this.K&&this.K.removeEventListener("click",this.iI);g.H.prototype.nG.call(this)}; g.M.iI=function(Y){this.Z&&this.Z(Y)}; g.M.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var Y,u,n,U,k;var m=(((Y=this.videoData)==null?0:(u=Y.suggestions)==null?0:u.length)?(n=this.videoData)==null?void 0:n.suggestions:((U=this.videoData)==null?0:g.Lk(U))?[(k=this.videoData)==null?void 0:g.Lk(k)]:[]).slice(0,18);if((Y=this.N)&&this.S&&this.W)if(g.dh(Y),m.length)for(this.stills.length>m.length&&g.Uo(this.stills.splice(m.length)),this.stills.length=m.length,u=0;u=0;Y--)this.features[Y].dispose();this.features.length=0;g.e.prototype.nG.call(this)};Bku.prototype.reset=function(){this.K=this.j=NaN};g.M=oGu.prototype;g.M.reset=function(){Gc(this.timerName)}; g.M.tick=function(Y,u){Kg(Y,u,this.timerName)}; g.M.vW=function(Y){return BD(Y,void 0,this.timerName)}; g.M.M5=function(Y){g.uq(Y,void 0,this.timerName)}; g.M.infoGel=function(Y){g.pg(Y,this.timerName)};g.d(RGM,g.ud);g.M=RGM.prototype;g.M.ul=function(Y){return this.loop||!!Y||this.index+1=0}; g.M.setShuffle=function(Y){this.shuffle=Y;Y=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var u=0;u0)||HH(this,1,!0)}; g.M.yJ=function(){this.W=!0;this.K.qR(this.J);this.J=this.K.B(document,"mouseup",this.XM)}; g.M.XM=function(){this.W=!1;HH(this,8,!1);this.K.qR(this.J);this.J=this.K.B(this.target,"mousedown",this.yJ)}; g.M.Lh=function(Y){if(Y=(Y=Y.changedTouches)&&Y[0])this.DW=Y.identifier,this.K.qR(this.Z),this.Z=this.K.B(this.target,"touchend",this.Gr,void 0,!0),HH(this,1024,!0)}; g.M.Gr=function(Y){if(Y=Y.changedTouches)for(var u=0;u1280||k>720)if(u=U.I_("maxresdefault.jpg"))break;if(m>640||k>480)if(u=U.I_("maxresdefault.jpg"))break;if(m>320||k>180)if(u=U.I_("sddefault.jpg")||U.I_("hqdefault.jpg")||U.I_("mqdefault.jpg"))break;if(u=U.I_("default.jpg"))break}g.tA(Y)&&(Y=new Image,Y.addEventListener("load", function(){PDm()}),Y.src=u?u:"",this.api.PC().tick("ftr")); this.G.style.backgroundImage=u?"url("+u+")":""};g.d(g.FN,g.H);g.FN.prototype.resize=function(){}; g.FN.prototype.j=function(Y){var u=this;this.X=!1;Mjc(this);var n=Y.vX,U=this.api.Y();n!=="GENERIC_WITHOUT_LINK"||U.W?n==="TOO_MANY_REQUESTS"?(U=this.api.getVideoData(),this.dD(aW(this,"TOO_MANY_REQUESTS_WITH_LINK",U.yg(),void 0,void 0,void 0,!1))):n!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||U.W?this.api.Y().V("html5_enable_bandaid_error_screen")&&n==="HTML5_SPS_UMP_STATUS_REJECTED"&&!U.W?(U=U.hostLanguage,Y="//support.google.com/youtube?p=videoError",U&&(Y=g.Mk(Y,{hl:U})),this.dD(aW(this,"HTML5_SPS_UMP_STATUS_REJECTED", Y))):this.api.Y().V("enable_adb_handling_in_sabr")&&n==="BROWSER_OR_EXTENSION_ERROR"&&!U.W?(U=U.hostLanguage,Y="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",U&&(Y=g.Mk(Y,{hl:U})),this.dD(aW(this,"BROWSER_OR_EXTENSION_ERROR",Y))):this.dD(g.JL(Y.errorMessage)):this.dD(aW(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(Y=U.hostLanguage,n="//support.google.com/youtube/?p=player_error1",Y&&(n=g.Mk(n, {hl:Y})),this.dD(aW(this,"GENERIC_WITH_LINK_AND_CPN",n,!0)),U.CT&&!U.G&&r9W(this,function(m){if(g.BO(m,u.api,!G_(u.api.Y()))){m={as3:!1,html5:!0,player:!0,cpn:u.api.getVideoData().clientPlaybackNonce};var X=u.api;X.oa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:m});X.isFullscreen()&&X.toggleFullscreen()}})); if(this.X){var k=this.Xk("ytp-error-link");k&&(this.api.createClientVe(k,this,216104),this.api.logVisibility(k,!0),r9W(this,function(){u.api.logClick(k)}))}}; var TWe=/([^<>]+)<\/a>/;g.d(swm,g.H);swm.prototype.JV=function(Y,u,n){n=n===void 0?!1:n;switch(u){case 1:$g(this,Y,this.X,n);break;case 2:$g(this,Y,this.G,n);break;case 3:$g(this,Y,this.K,n);break;case 4:$g(this,Y,this.j,n)}};g.d(dcY,g.H);g.M=dcY.prototype;g.M.onClick=function(Y){this.innertubeCommand?(this.L.Yw("innertubeCommand",this.innertubeCommand),Y.preventDefault()):g.BO(Y,this.L,!0);this.L.logClick(this.element)}; g.M.onVideoDataChange=function(Y,u){A9W(this,u);this.Zk&&jwA(this,this.Zk)}; g.M.qs=function(Y){var u=this.L.getVideoData();this.videoId!==u.videoId&&A9W(this,u);this.K&&jwA(this,Y.state);this.Zk=Y.state}; g.M.Su=function(){this.fade.show();this.L.publish("paidcontentoverlayvisibilitychange",!0);this.L.logVisibility(this.element,!0)}; g.M.H$=function(){this.fade.hide();this.L.publish("paidcontentoverlayvisibilitychange",!1);this.L.logVisibility(this.element,!1)};g.d(Y_,g.H);Y_.prototype.hide=function(){this.K.stop();this.message.style.display="none";g.H.prototype.hide.call(this)}; Y_.prototype.onStateChange=function(Y){this.Ve(Y.state)}; Y_.prototype.Ve=function(Y){if(g.V(Y,128)||this.api.xC())var u=!1;else{var n;u=this.api.V("web_watch_enable_multiview_manager")&&((n=this.api.getVideoData())==null?0:ZP(n))?!1:g.V(Y,16)||g.V(Y,1)?!0:!1}u?this.K.start():this.hide()}; Y_.prototype.j=function(){this.message.style.display="block"};g.d(ux,g.SL);ux.prototype.onMutedAutoplayChange=function(Y){this.X&&(Y?(KIu(this),this.Su()):(this.K&&this.logClick(),this.H$()))}; ux.prototype.nF=function(Y){this.api.isMutedByMutedAutoplay()&&g.C1(Y,2)&&this.H$()}; ux.prototype.onClick=function(){this.api.unMute();this.logClick()}; ux.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.d(g.nW,g.j3);g.M=g.nW.prototype;g.M.init=function(){var Y=this.api,u=Y.getPlayerStateObject();this.FO=Y.getPlayerSize();this.t_(u);this.S3();this.pT();this.api.publish("basechromeinitialized",this);this.dH()&&this.api.publish("standardControlsInitialized")}; g.M.onVideoDataChange=function(Y,u){var n=this.mp!==u.videoId;if(n||Y==="newdata")Y=this.api,Y.isFullscreen()||(this.FO=Y.getPlayerSize());n&&(this.mp=u.videoId,n=this.jM,n.rg=3E3,HH(n,512,!0),this.S3());this.api.V("web_render_jump_buttons")&&u.showSeekingControls&&(this.un=572)}; g.M.QuF=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.M.u_=function(){var Y=this.api.tD()&&this.api.qz(),u=this.api.S4();return this.yR||Y||this.hY||u}; g.M.kq=function(){var Y=!this.u_();g.PP(this.api.getRootNode(),"ytp-menu-shown",!Y)}; g.M.Et=function(Y){try{if(!g.jw(this.api.getRootNode(),Y))return!1}catch(u){return!1}for(;Y&&!Wge(Y);)Y=Y===this.api.getRootNode()?null:Y.parentElement||null;return!!Y}; g.M.My=function(Y){var u=this.api.getRootNode();g.PP(u,"ytp-autohide",Y);g.PP(u,"ytp-autohide-active",!0);this.Hn.start(Y?250:100);Y&&(this.rC=!1,g.mU(u,"ytp-touch-mode"));this.LK=!Y;this.api.zo(!Y);this.api.V("delhi_modern_web_player")&&this.api.publish("autohideupdate",Y)}; g.M.JH=function(){var Y=this.api.getRootNode();g.PP(Y,"ytp-autohide-active",!1)}; g.M.p0Z=function(){this.Xp=!0}; g.M.w0Z=function(Y){if(this.api.Y().V("player_doubletap_to_seek")||this.api.Y().S)this.Xp=!1,this.Gu&&this.qR(this.Gu),this.Ww===0&&k_(this,Y)?(this.bY(),this.bk.start(),this.Gu=this.B(this.api.tJ(),"touchmove",this.p0Z,void 0,!0)):this.bk.stop();BWA(this)&&k_(this,Y)&&!this.api.Y().S&&LIt(this);var u=this.LX.qI();if(!g.nV(this.api.Y())&&am&&o07(this,Y))u&&Y.preventDefault();else if(this.rC=!0,g.UN(this.api.getRootNode(),"ytp-touch-mode"),this.jM.AI(),this.api.Y().V("player_doubletap_to_seek")||this.api.Y().S)if(u= this.api.getPlayerStateObject(),!(!this.api.wV()||g.V(u,2)&&g.OA(this.api)||g.V(u,64))){u=Date.now()-this.X6;this.Ww+=1;if(u<=350){this.J7=!0;u=this.api.getPlayerSize().width/3;var n=this.api.getRootNode().getBoundingClientRect(),U=Y.targetTouches[0].clientX-n.left;n=Y.targetTouches[0].clientY-n.top;var k=(this.Ww-1)*10;U>0&&Uu*2&&U=650,U=Y.width<528;this.jM.resize();if(this.api.V("web_player_use_screen_width_for_big_mode")){var k,m=Y.width>=((k=g.YF(this.api.Y().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?k:2E3);g.PP(u,"ytp-big-mode",m)}g.PP(u,"ytp-fullscreen",this.api.isFullscreen());g.PP(u,"ytp-large-width-mode",n);this.api.V("delhi_modern_web_player")?g.PP(u,"ytp-xsmall-width-mode",U):g.PP(u,"ytp-small-mode",this.WW()); g.PP(u,"ytp-tiny-mode",this.Ct());g.PP(u,"ytp-big-mode",this.b9());this.O6&&this.O6.resize(Y)}; g.M.nF=function(Y){this.t_(Y.state);this.S3()}; g.M.hO=Ye(3);g.M.AE=function(){var Y=!!this.mp&&!this.api.G4()&&!this.uM,u=this.api.getPresentingPlayerType()===2,n=this.api.Y();if(u)return n=bK(this.api.ym()),Y&&(n&&n.player?Y=(Y=n.player.getVideoData(2))?Y.isListed&&!g.NV(n.player.Y()):!1:(Xj("showInfoBarDuringAd: this is null"),Y=!1)),Y;u=n.V("web_player_imax_theater_mode")&&this.api.OP();return Y&&(n.zG||u||this.api.isFullscreen()||n.Bv)}; g.M.S3=function(){var Y=this.AE();this.Hs!==Y&&(this.Hs=Y,g.PP(this.api.getRootNode(),"ytp-hide-info-bar",!Y))}; g.M.t_=function(Y){var u=Y.isCued()||this.api.r3()&&this.api.getPresentingPlayerType()!==3;u!==this.isCued&&(this.isCued=u,this.qP&&this.qR(this.qP),this.qP=this.B(this.api.tJ(),"touchstart",this.w0Z,void 0,u));var n=this.jM,U=Y.isPlaying()&&!g.V(Y,32)||this.api.Ey();HH(n,128,!U);n=this.jM;U=this.api.getPresentingPlayerType()===3;HH(n,256,U);n=this.api.getRootNode();g.V(Y,2)?U=[qr.ENDED]:(U=[],g.V(Y,8)?U.push(qr.PLAYING):g.V(Y,4)&&U.push(qr.PAUSED),g.V(Y,1)&&!g.V(Y,32)&&U.push(qr.BUFFERING),g.V(Y, 32)&&U.push(qr.SEEKING),g.V(Y,64)&&U.push(qr.UNSTARTED));g.Oq(this.WA,U)||(g.XE(n,this.WA),this.WA=U,g.kv(n,U));U=this.api.Y();var k=g.V(Y,2);a:{var m=this.api.Y();var X=m.controlsType;switch(X){case "2":case "0":m=!1;break a}m=X==="3"&&!g.V(Y,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:T$$(bK(this.api.ym())))||this.api.S4()||g.nV(m)&&this.api.getPresentingPlayerType()===2?!1:!0}g.PP(n,"ytp-hide-controls",!m);g.PP(n,"ytp-native-controls",U.controlsType==="3"&&!u&&!k&&!this.hY);g.V(Y, 128)&&!g.nV(U)?(this.O6||(this.O6=new g.FN(this.api),g.b(this,this.O6),g.uc(this.api,this.O6.element,4)),this.O6.j(Y.Jt),this.O6.show()):this.O6&&(this.O6.dispose(),this.O6=null)}; g.M.U1=function(){return this.api.tD()&&this.api.qz()?(this.api.fZ(!1,!1),!0):this.api.G4()?(g.F0(this.api,!0),!0):!1}; g.M.onMutedAutoplayChange=function(Y){this.hY=Y;this.kq()}; g.M.b9=function(){return!1}; g.M.WW=function(){return!this.b9()&&(this.api.getPlayerSize().width=0&&u.left>=0&&u.bottom>u.top&&u.right>u.left?u:null;u=this.size;Y=Y.clone();u=u.clone();U&&(X=u,k=5,(k&65)==65&&(Y.x=U.right)&&(k&=-2),(k&132)==132&&(Y.y=U.bottom)&&(k&=-5),Y.xU.right&&(X.width=Math.min(U.right-Y.x,m+X.width-U.left),X.width=Math.max(X.width,0))),Y.x+X.width>U.right&&k&1&&(Y.x=Math.max(U.right-X.width,U.left)),Y.yU.bottom&&(X.height=Math.min(U.bottom-Y.y,m+X.height-U.top),X.height=Math.max(X.height,0))),Y.y+X.height>U.bottom&&k&4&&(Y.y=Math.max(U.bottom-X.height,U.top)));U=new g.gh(0,0,0,0);U.left=Y.x;U.top=Y.y;U.width= u.width;U.height=u.height;g.au(this.element,new g.yO(U.left,U.top));g.Lb(this.G);this.G.B(C0(this),"contextmenu",this.Ngc);this.G.B(this.L,"fullscreentoggled",this.onFullscreenToggled);this.G.B(this.L,"pageTransition",this.Od)}; g.M.Ngc=function(Y){if(!Y.defaultPrevented){var u=A6(Y);g.jw(this.element,u)||this.H$();this.L.Y().disableNativeContextMenu&&Y.preventDefault()}}; g.M.onFullscreenToggled=function(){this.H$();$cB(this)}; g.M.Od=function(){this.H$()};g.d(ix,g.H);ix.prototype.onClick=function(){var Y=this,u,n,U,k;return g.l(function(m){if(m.j==1)return u=Y.api.Y(),n=Y.api.getVideoData(),U=Y.api.getPlaylistId(),k=u.getVideoUrl(n.videoId,U,void 0,!0),g.D(m,nJ7(Y,k),2);m.K&&uwS(Y);Y.api.logClick(Y.element);g.KY(m)})}; ix.prototype.QF=function(){this.updateValue("icon",{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar v\u00ednculo");this.updateValue("tooltip-title","Copiar v\u00ednculo");this.visible= YkW(this);g.PP(this.element,"ytp-copylink-button-visible",this.visible);this.v$(this.visible);this.tooltip.aZ();this.api.logVisibility(this.element,this.visible&&this.J)}; ix.prototype.ZF=function(Y){g.H.prototype.ZF.call(this,Y);this.api.logVisibility(this.element,this.visible&&Y)}; ix.prototype.nG=function(){g.H.prototype.nG.call(this);g.mU(this.element,"ytp-copylink-button-visible")};g.d(Uru,g.H);g.M=Uru.prototype;g.M.show=function(){g.H.prototype.show.call(this);g.OQ(this.j)}; g.M.hide=function(){this.G.stop();this.X=0;this.Xk("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.mU(this.element,"ytp-chapter-seek");g.mU(this.element,"ytp-time-seeking");g.H.prototype.hide.call(this)}; g.M.sH=function(Y,u,n,U){this.X=Y===this.S?this.X+U:U;this.S=Y;var k=Y===-1?this.N:this.Z;k&&this.L.logClick(k);this.W?this.j.stop():g.JF(this.j);this.G.start();this.element.setAttribute("data-side",Y===-1?"back":"forward");var m=3*this.L.tJ().getPlayerSize().height;k=this.L.tJ().getPlayerSize();k=k.width/3-3*k.height;this.K.style.width=m+"px";this.K.style.height=m+"px";Y===1?(this.K.style.left="",this.K.style.right=k+"px"):Y===-1&&(this.K.style.right="",this.K.style.left=k+"px");var X=m*2.5;m=X/ 2;var S=this.Xk("ytp-doubletap-ripple");S.style.width=X+"px";S.style.height=X+"px";Y===1?(Y=this.L.tJ().getPlayerSize().width-u+Math.abs(k),S.style.left="",S.style.right=Y-m+"px"):Y===-1&&(Y=Math.abs(k)+u,S.style.right="",S.style.left=Y-m+"px");S.style.top="calc((33% + "+Math.round(n)+"px) - "+m+"px)";if(n=this.Xk("ytp-doubletap-ripple"))n.classList.remove("ytp-doubletap-ripple"),n.classList.add("ytp-doubletap-ripple");kU7(this,this.W?this.X:U)}; g.M.Gm=function(Y,u,n){if(n=n===void 0?null:n){var U=Y===-1?this.N.visualElement:this.Z.visualElement;n={seekData:n};var k=g.sC();k&&ab(k,U,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",n)}this.X=Y===this.S?this.X+u:u;this.S=Y;U=this.L.tJ().getPlayerSize();this.W?this.j.stop():g.JF(this.j);this.G.start();this.element.setAttribute("data-side",Y===-1?"back":"forward");g.UN(this.element,"ytp-time-seeking");this.K.style.width="110px";this.K.style.height="110px";n=U.width*.1-15;Y===1?this.KG?(this.K.style.right= n+"px",this.K.style.left=""):(this.K.style.right="",this.K.style.left=U.width*.8-30+"px"):Y===-1&&(this.KG?(this.K.style.right="",this.K.style.left=n+"px"):(this.K.style.right="",this.K.style.left=U.width*.1-15+"px"));this.K.style.top=U.height*.5+15+"px";kU7(this,this.W?this.X:u)}; g.M.FF=function(Y,u,n){n=n===void 0?null:n;g.JF(this.j);this.G.start();switch(Y){case -1:Y="back";break;case 1:Y="forward";break;default:Y=""}this.element.setAttribute("data-side",Y);this.K.style.width="0";this.K.style.height="0";g.UN(this.element,"ytp-chapter-seek");this.updateValue("seekText",u);this.updateValue("seekTime","");u=this.Xk("ytp-seek-icon");if(n){a:if(n){switch(n){case "PREMIUM_STANDALONE":n=LHG();break a;case "PREMIUM_STANDALONE_CAIRO":n=toc();break a}n=void 0}else n=null;this.updateValue("seekIcon", n);u.style.display="inline-block"}else u.style.display="none"};g.d(mrA,cR);g.M=mrA.prototype;g.M.FM=function(Y){this.Fk||(this.Fk=new WR(this.L),g.b(this,this.Fk));var u,n;if((u=this.Ru)==null?0:(n=u.menu)==null?0:n.menuRenderer)this.Fk.open(this.Ru.menu.menuRenderer,Y.target),Y.preventDefault()}; g.M.OO=function(){return!!this.K}; g.M.IB=function(){return!!this.K}; g.M.gh=function(Y){Y.target===this.overflowButton.element?Y.preventDefault():(this.Ub&&this.L.Yw("innertubeCommand",this.Ub),this.YZ(!1))}; g.M.vK=function(){this.YZ(!0);var Y,u;((Y=this.K)==null?0:(u=Y.bannerData)==null?0:u.dismissedStatusKey)&&this.CT.push(this.K.bannerData.dismissedStatusKey);this.Lo()}; g.M.qp=function(){this.Lo();ri(this)}; g.M.pMa=function(Y){var u=this,n;if(Y.id!==((n=this.K)==null?void 0:n.identifier)){this.Lo();n=g.A(this.DW);for(var U=n.next();!U.done;U=n.next()){var k=U.value,m=void 0,X=void 0;if((U=(m=k)==null?void 0:(X=m.bannerData)==null?void 0:X.itemData)&&k.identifier===Y.id){X=m=void 0;var S=((m=k)==null?void 0:(X=m.bannerData)==null?void 0:X.dismissedStatusKey)||"";if(this.CT.includes(S))return;this.K=k;this.banner.element.setAttribute("aria-label",U.accessibilityLabel||"");U.trackingParams&&(this.G=!0, this.L.setTrackingParams(this.badge.element,U.trackingParams));this.show();this.N.show();on(this);this.rg.v$(!U.stayInApp);Mmt(this);P1B(this);TI(this);this.Ub=g.z(U.onTapCommand,cr);if(k=g.z(U.menuOnTap,cr))this.Ru=g.z(k,u8$);k=void 0;this.banner.update({thumbnail:(k=(U.thumbnailSources||[])[0])==null?void 0:k.url,title:U.productTitle,price:U.priceReplacementText?U.priceReplacementText:U.price,salesOriginalPrice:fKm(this),priceDropReferencePrice:QMM(this),promotionText:C1c(this),priceA11yText:NxB(this), affiliateDisclaimer:U.affiliateDisclaimer,vendor:i7t(this)});S=X=m=k=void 0;((k=U)==null?0:(m=k.hiddenProductOptions)==null?0:m.showDropCountdown)&&((X=U)==null?0:(S=X.hiddenProductOptions)==null?0:S.dropTimestampMs)&&(this.Gw=new g.Vp(function(){rvd(u)},1E3),this.rg.hide(),this.countdownTimer.show(),rvd(this)); this.L.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&XXd(this)&&(this.Qm=new g.Vp(function(){SkY(u)},1E3),SkY(this))}}this.L.getRootNode()&&g.UN(this.L.getRootNode(),"ytp-featured-product-shown")}}; g.M.Lo=function(){this.K&&(this.K=void 0,this.Zy(),this.L.getRootNode()&&g.mU(this.L.getRootNode(),"ytp-featured-product-shown"))}; g.M.onVideoDataChange=function(Y,u){var n=this;Y==="dataloaded"&&ri(this);var U,k,m;Y=g.z((U=u.getWatchNextResponse())==null?void 0:(k=U.playerOverlays)==null?void 0:(m=k.playerOverlayRenderer)==null?void 0:m.productsInVideoOverlayRenderer,$5$);this.overflowButton.show();this.dismissButton.hide();var X=Y==null?void 0:Y.featuredProductsEntityKey;this.trendingOfferEntityKey=Y==null?void 0:Y.trendingOfferEntityKey;this.DW.length||(TxY(this,X),TI(this));var S;(S=this.uD)==null||S.call(this);this.uD=g.B2.subscribe(function(){TxY(n, X);TI(n)})}; g.M.nG=function(){ri(this);Mmt(this);P1B(this);cR.prototype.nG.call(this)};g.d(jMd,g.H);jMd.prototype.onClick=function(){this.L.logClick(this.element,this.j)};g.d(K8u,g.SL);g.M=K8u.prototype;g.M.show=function(){g.SL.prototype.show.call(this);this.L.publish("infopaneldetailvisibilitychange",!0);this.L.logVisibility(this.element,!0);pXG(this,!0)}; g.M.hide=function(){g.SL.prototype.hide.call(this);this.L.publish("infopaneldetailvisibilitychange",!1);this.L.logVisibility(this.element,!1);pXG(this,!1)}; g.M.getId=function(){return this.G}; g.M.JG=function(){return this.itemData.length}; g.M.onVideoDataChange=function(Y,u){if(u){var n,U,k,m;this.update({title:((n=u.Ee)==null?void 0:(U=n.title)==null?void 0:U.content)||"",body:((k=u.Ee)==null?void 0:(m=k.bodyText)==null?void 0:m.content)||""});var X;Y=((X=u.Ee)==null?void 0:X.trackingParams)||null;this.L.setTrackingParams(this.element,Y);X=g.A(this.itemData);for(Y=X.next();!Y.done;Y=X.next())Y.value.dispose();this.itemData=[];var S;if((S=u.Ee)==null?0:S.ctaButtons)for(u=g.A(u.Ee.ctaButtons),S=u.next();!S.done;S=u.next())if(S=g.z(S.value, VO$))S=new jMd(this.L,S,this.K),S.QY&&(this.itemData.push(S),S.yF(this.items))}}; g.M.nG=function(){this.hide();g.SL.prototype.nG.call(this)};g.d(BxM,g.H);g.M=BxM.prototype;g.M.onVideoDataChange=function(Y,u){tmS(this,u);this.Zk&&cvd(this,this.Zk)}; g.M.An=function(Y){var u=this.L.getVideoData();this.videoId!==u.videoId&&tmS(this,u);cvd(this,Y.state);this.Zk=Y.state}; g.M.uP=function(Y){(this.X=Y)?this.hide():this.K&&this.show()}; g.M.WI=function(){this.j||this.Su();this.showControls=!0}; g.M.HI=function(){this.j||this.H$();this.showControls=!1}; g.M.Su=function(){var Y,u=(Y=this.L)==null?void 0:Y.getPlayerSize();Y=u.width<380;var n;u=u.height<(((n=this.L)==null?0:n.isEmbedsShortsMode())?400:280);var U,k;(((U=this.L)==null?0:U.getPlayerStateObject().isCued())||((k=this.L)==null?0:g.V(k.getPlayerStateObject(),1024)))&&Y&&u||!this.K||this.X||(this.fade.show(),this.L.publish("infopanelpreviewvisibilitychange",!0),this.L.logVisibility(this.element,!0))}; g.M.H$=function(){this.K&&!this.X&&(this.fade.hide(),this.L.publish("infopanelpreviewvisibilitychange",!1),this.L.logVisibility(this.element,!1))}; g.M.mAq=function(){this.j=!1;this.showControls||this.H$()};var X7g={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(X7g).reduce(function(Y,u){Y[X7g[u]]=u;return Y},{}); var PmB={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(PmB).reduce(function(Y,u){Y[PmB[u]]=u;return Y},{}); var SaX={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(SaX).reduce(function(Y,u){Y[SaX[u]]=u;return Y},{});var CmX,fTR;CmX=[{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"}];fTR=[{option:0,text:ML(0)},{option:.25,text:ML(.25)},{option:.5,text:ML(.5)},{option:.75,text:ML(.75)},{option:1,text:ML(1)}]; g.AS=[{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:CmX},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:ML(.5)},{option:-1,text:ML(.75)},{option:0,text:ML(1)},{option:1, text:ML(1.5)},{option:2,text:ML(2)},{option:3,text:ML(3)},{option:4,text:ML(4)}]},{option:"background",text:"Color de fondo",options:CmX},{option:"backgroundOpacity",text:"Opacidad de fondo",options:fTR},{option:"windowColor",text:"Color de la ventana",options:CmX},{option:"windowOpacity",text:"Opacidad de la ventana",options:fTR},{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:ML(.25)},{option:.5,text:ML(.5)},{option:.75,text:ML(.75)},{option:1,text:ML(1)}]}];var QHG=[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.d(hft,g.j3);g.M=hft.prototype; g.M.WZ=function(Y){Y.repeat||(this.X.VG=!1);var u=!1,n=Y.keyCode,U=A6(Y),k=!Y.altKey&&!Y.ctrlKey&&!Y.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||QHG.includes(n)),m=!1,X=!1,S=this.api.Y();Y.defaultPrevented?(k=!1,X=!0):S.sx&&!this.api.isMutedByEmbedsMutedAutoplay()&&(k=!1);if(n===9)u=!0;else{if(U)switch(n){case 32:case 13:if(U.tagName==="BUTTON"||U.tagName==="A"||U.tagName==="INPUT")u=!0,k=!1;else if(k){var C=U.getAttribute("role");!C||C!=="option"&&C!=="button"&&C.indexOf("menuitem")!==0|| (u=!0,U.click(),m=!0)}break;case 37:case 39:case 36:case 35:u=U.getAttribute("role")==="slider";break;case 38:case 40:C=U.getAttribute("role"),U=n===38?U.previousSibling:U.nextSibling,C==="slider"?u=!0:k&&(C==="option"?(U&&U.getAttribute("role")==="option"&&U.focus(),m=u=!0):C&&C.indexOf("menuitem")===0&&(U&&U.hasAttribute("role")&&U.getAttribute("role").indexOf("menuitem")===0&&U.focus(),m=u=!0))}if(k&&!m)switch(n){case 38:m=Math.min(this.api.getVolume()+5,100);P4(this.W4,m,!1);this.api.setVolume(m); X=m=!0;break;case 40:m=Math.max(this.api.getVolume()-5,0);P4(this.W4,m,!0);this.api.setVolume(m);X=m=!0;break;case 36:this.api.wV()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),X=m=!0);break;case 35:this.api.wV()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),X=m=!0)}}u&&di(this,!0);(u||X)&&this.jM.AI();(m||k&&this.handleGlobalKeyDown(n,Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,Y.key,Y.code,Y.repeat))&&Y.preventDefault();S.Z&&(Y={keyCode:Y.keyCode, altKey:Y.altKey,ctrlKey:Y.ctrlKey,metaKey:Y.metaKey,shiftKey:Y.shiftKey,handled:Y.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Ar("onKeyPress",Y))}; g.M.Am=function(Y){var u=Y.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.X.QS)&&this.handleGlobalKeyUp(u,Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,Y.key,Y.code)&&Y.preventDefault()}; g.M.handleGlobalKeyUp=function(Y,u,n,U,k,m,X){this.api.publish("keyboardserviceglobalkeyup",{keyCode:Y,shiftKey:u,ctrlKey:n,altKey:U,metaKey:k,key:m,code:X});u=!1;if(this.X.VG)return u;(m=g.$N(this.api.ym()))&&(m=m.jL)&&m.KT&&(m.F8(Y),u=!0);switch(Y){case 9:di(this,!0);u=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.X.QS||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.Y().sx){var S,C;Y=(S=this.progressBar)== null?void 0:(C=S.j)==null?void 0:C.isEnabled;u=this.qx(Y)}break;case 39:(Mt?U:n)&&!k&&this.api.wV()&&this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),S=(S=this.api.getVideoData())?S.s6:[],C=Rft(S,this.api.getCurrentTime()*1E3),C!==-1&&this.K!=null&&(this.K.FF(1,S[C].title),this.api.seekTo(S[C].startTime/1E3,void 0,void 0,void 0,52),u=!0))}return u}; g.M.handleGlobalKeyDown=function(Y,u,n,U,k,m,X,S){S||(this.X.VG=!1);var C=!1,f=this.api.Y();if(f.sx&&!this.api.isMutedByEmbedsMutedAutoplay())return C;var Q=g.$N(this.api.ym());if(Q&&(Q=Q.jL)&&Q.KT)switch(Y){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:C=Q.OW(Y)}f.W||C||(C=m||String.fromCharCode(Y).toLowerCase(),this.j+=C,"awesome".indexOf(this.j)===0||this.api.V("web_player_rtr_ctrls")&&"bday".indexOf(this.j)===0?(C=!0,4===this.j.length&&this.j==="bday"&&this.api.V("web_player_rtr_ctrls")&& (e2B(this.J),this.jM.AI()),7===this.j.length&&this.j==="awesome"&&KvB(this.api.getRootNode(),"ytp-color-party")):(this.j=C,C="awesome".indexOf(this.j)===0||"bday".indexOf(this.j)===0));if(!C&&(!this.api.isMutedByEmbedsMutedAutoplay()||QHG.includes(Y))){var N=this.api.getVideoData(),Z,T;Q=(Z=this.progressBar)==null?void 0:(T=Z.j)==null?void 0:T.isEnabled;Z=N?N.s6:[];T=Mt?U:n;switch(Y){case 80:u&&!f.JJ&&(X7(this.W4,BTY(),"Anterior"),this.api.previousVideo(),C=!0);break;case 78:u&&!f.JJ&&(X7(this.W4, M7(),"Siguiente"),this.api.nextVideo(),C=!0);break;case 74:this.api.wV()&&(this.api.startSeekCsiAction(),this.K?this.api.V("enable_key_press_seek_logging")?(C=GI(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.K.Gm(-1,10,C)):this.K.Gm(-1,10):X7(this.W4,{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),C=!0);break;case 76:this.api.wV()&&(this.api.startSeekCsiAction(),this.K?this.api.V("enable_key_press_seek_logging")?(C=GI(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.K.Gm(1,10,C)):this.K.Gm(1,10):X7(this.W4,{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),C=!0);break;case 37:this.api.wV()&&(this.api.startSeekCsiAction(),T?(T=Drc(Z,this.api.getCurrentTime()*1E3),T!==-1&&this.K!=null&&(this.K.FF(-1,Z[T].title),this.api.seekTo(Z[T].startTime/1E3,void 0,void 0,void 0,53),C=!0)):(this.K?this.api.V("enable_key_press_seek_logging")?(C=GI(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.K.Gm(-1,5,C)):this.K.Gm(-1,5):X7(this.W4,{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),C=!0));break;case 39:this.api.wV()&&(this.api.startSeekCsiAction(),T?this.api.V("web_enable_keyboard_shortcut_for_timely_actions")||(T=Rft(Z,this.api.getCurrentTime()*1E3),T!==-1&&this.K!=null&&(this.K.FF(1,Z[T].title),this.api.seekTo(Z[T].startTime/1E3,void 0,void 0,void 0,52),C=!0)):(this.K!=null?this.api.V("enable_key_press_seek_logging")?(C=GI(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.K.Gm(1,5,C)):this.K.Gm(1, 5):X7(this.W4,{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),C=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),P4(this.W4,this.api.getVolume(),!1)):(this.api.mute(),P4(this.W4,0,!0));C=!0;break;case 32:C=this.api.V("web_speedmaster_spacebar_control")?!this.api.Y().JJ:this.qx(Q);break;case 75:C=this.qx(Q);break;case 190:u?f.enableSpeedOptions&&W8G(this)&&(C=this.api.getPlaybackRate(),this.api.setPlaybackRate(C+.25,!0),v0u(this.W4,!1),C=!0):this.api.wV()&&(this.step(1),C=!0);break;case 188:u? f.enableSpeedOptions&&W8G(this)&&(C=this.api.getPlaybackRate(),this.api.setPlaybackRate(C-.25,!0),v0u(this.W4,!0),C=!0):this.api.wV()&&(this.step(-1),C=!0);break;case 70:Eic(this.api)&&(this.api.toggleFullscreen().catch(function(){}),C=!0); break;case 27:Q?(this.progressBar.NU(),C=!0):this.W()&&(C=!0)}if(f.controlsType!=="3")switch(Y){case 67:g.wO(this.api.ym())&&(f=this.api.getOption("captions","track"),this.api.toggleSubtitles(),RuY(this.W4,!f||f&&!f.displayName),C=!0);break;case 79:jp(this,"textOpacity");break;case 87:jp(this,"windowOpacity");break;case 187:case 61:jp(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:jp(this,"fontSizeIncrement",!0,!0)}var r;u||n||U||(Y>=48&&Y<=57?r=Y-48:Y>=96&&Y<=105&&(r=Y-96));r!=null&&this.api.wV()&& !this.api.V("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),f=this.api.getProgressState(),this.api.seekTo(r/10*(f.seekableEnd-f.seekableStart)+f.seekableStart,void 0,void 0,void 0,81),C=!0);C&&this.jM.AI()}this.X.bF=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:Y,shiftKey:u,ctrlKey:n,altKey:U,metaKey:k,key:m,code:X,repeat:S},this.X);this.X.bF&&(C=!0,this.jM.AI());return C}; g.M.step=function(Y){this.api.wV();if(this.api.getPlayerStateObject().isPaused()){var u=this.api.getVideoData().j;u&&(u=u.video)&&this.api.seekBy(Y/(u.fps||30),void 0,void 0,Y>0?77:78)}}; g.M.qx=function(Y){if(!this.api.Y().JJ){var u;var n,U=(u=this.api.getVideoData())==null?void 0:(n=u.getPlayerResponse())==null?void 0:n.playabilityStatus;if(U){var k;u=((k=g.z(U.miniplayer,SDg))==null?void 0:k.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else u=!1;u&&this.api.Yw("onExpandMiniplayer");Y?this.progressBar.xJ():(Y=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.W4.Pu(Y),Y?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.M.nG=function(){g.JF(this.G);g.j3.prototype.nG.call(this)};g.d(KW,g.H);KW.prototype.QF=function(){var Y=this.L.Y(),u=Y.X||this.L.V("web_player_hide_overflow_button_if_empty_menu")&&this.hV.isEmpty();Y=g.nV(Y)&&g.qD(this.L)&&g.V(this.L.getPlayerStateObject(),128);var n=this.L.getPlayerSize();this.visible=this.L.WW()&&!Y&&n.width>=240&&!this.L.getVideoData().sD&&!u&&!this.L.isEmbedsShortsMode();g.PP(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.L.aZ();this.L.logVisibility(this.element,this.visible&&this.J)}; KW.prototype.ZF=function(Y){g.H.prototype.ZF.call(this,Y);this.L.logVisibility(this.element,this.visible&&Y)}; KW.prototype.nG=function(){g.H.prototype.nG.call(this);g.mU(this.element,"ytp-overflow-button-visible")};g.d(ef7,g.SL);g.M=ef7.prototype;g.M.gs=function(Y){Y=A6(Y);g.jw(this.element,Y)&&(g.jw(this.K,Y)||g.jw(this.closeButton,Y)||f0(this))}; g.M.H$=function(){g.SL.prototype.H$.call(this);this.L.tU(this.element)}; g.M.show=function(){this.KT&&this.L.publish("OVERFLOW_PANEL_OPENED");g.SL.prototype.show.call(this);this.element.setAttribute("aria-modal","true");IKe(this,!0)}; g.M.hide=function(){g.SL.prototype.hide.call(this);this.element.removeAttribute("aria-modal");IKe(this,!1)}; g.M.onFullscreenToggled=function(Y){!Y&&this.qI()&&f0(this)}; g.M.isEmpty=function(){return this.actionButtons.length===0}; g.M.focus=function(){for(var Y=g.A(this.actionButtons),u=Y.next();!u.done;u=Y.next())if(u=u.value,u.KT){u.focus();break}};g.d(zf7,g.H);zf7.prototype.onClick=function(Y){g.BO(Y,this.api)&&this.api.playVideoAt(this.index)};g.d(gJu,g.SL);g.M=gJu.prototype;g.M.show=function(){g.SL.prototype.show.call(this);this.K.B(this.api,"videodatachange",this.qJ);this.K.B(this.api,"onPlaylistUpdate",this.qJ);this.qJ()}; g.M.hide=function(){g.SL.prototype.hide.call(this);g.Lb(this.K);this.updatePlaylist(null)}; g.M.qJ=function(){this.updatePlaylist(this.api.getPlaylist());this.api.Y().X&&(this.Xk("ytp-playlist-menu-title-name").removeAttribute("href"),this.X&&(this.qR(this.X),this.X=null))}; g.M.lT=function(){var Y=this.playlist,u=Y.author,n=u?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",U={CURRENT_POSITION:String(Y.index+1),PLAYLIST_LENGTH:String(Y.length)};u&&(U.AUTHOR=u);this.update({title:Y.title,subtitle:g.UR(n,U),playlisturl:this.api.getVideoUrl(!0)});u=Y.j;if(u===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[Y.index];else{n=g.A(this.playlistData);for(U=n.next();!U.done;U=n.next())U.value.dispose(); n=Y.length;this.playlistData=[];for(U=0;U=this.j&&!Y.X&&!u.isAd()&&!this.api.isEmbedsShortsMode()}else Y=!1;this.visible=Y;this.v$(this.visible);g.PP(this.element,"ytp-search-button-visible",this.visible);g.PP(this.element,"ytp-show-search-title",!this.api.WW());this.api.logVisibility(this.element,this.visible&&this.J)}; B4.prototype.ZF=function(Y){g.H.prototype.ZF.call(this,Y);this.api.logVisibility(this.element,this.visible&&Y)};g.d(o7,g.H); o7.prototype.trigger=function(Y,u,n,U){this.show();if(this.j&&Y!==this.j){var k=1;this.X&&(k=u6W(this));Jvc(this,k,!1);Y4t(this)}this.j=Y;this.G=this.j===-1?this.Z:this.N;Y="";u?(this.S+=u,Y=(this.j===-1?"\u2212":"+")+" "+this.S):this.S=0;this.updateValue(this.j===-1?"durationBack":"durationForward",Y);if(this.K==="hidden"||this.K==="fading-out")u=0,this.K==="fading-out"&&(u=u6W(this),$rS(this)),qkG(this,u),this.K!=="fading-out"&&aKM(this,this.G.querySelector(".ytp-seek-overlay-arrow-persistent")),this.K= "fading-in";else if(this.K==="fading-in"||this.K==="lingering")u=this.G.querySelector(".ytp-seek-overlay-duration"),Y=g.YF(this.L.Y().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,u.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+Y+")"},{offset:1,transform:"scale(1)"}],{duration:184}),$rS(this),this.K==="lingering"&&(this.W.stop(),this.W.start());n&&nDA(this,n,U)}; o7.prototype.sH=function(Y,u,n,U){this.trigger(Y,U)}; o7.prototype.Gm=function(Y,u,n){this.trigger(Y,u);n&&(Y=Y===-1?this.N.visualElement:this.Z.visualElement,n={seekData:n},(u=g.sC())&&ab(u,Y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",n))}; o7.prototype.FF=function(Y,u,n){this.trigger(Y,void 0,u,n)};g.d(c4,g.H);c4.prototype.onClick=function(){var Y=this,u=this.api.Y(),n=this.api.getVideoData(this.api.getPresentingPlayerType()),U=this.api.getPlaylistId();u=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):u.getVideoUrl(n.videoId,U,void 0,!0);if(navigator.share)try{var k=navigator.share({title:n.title,url:u});k instanceof Promise&&k.catch(function(m){kku(Y,m)})}catch(m){m instanceof Error&&kku(this,m)}else this.K.U1(),f0(this.j,this.element,!1); this.api.logClick(this.element)}; c4.prototype.QF=function(){var Y=this.api.Y(),u=this.api.isEmbedsShortsMode();g.PP(this.element,"ytp-show-share-title",g.nV(Y)&&!u);this.K.b9()&&u?(Y=(this.api.tJ().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.yV(this.element,"right",Y+"px")):u&&g.yV(this.element,"right","0px");this.updateValue("icon",{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=UU0(this);g.PP(this.element,"ytp-share-button-visible",this.visible);this.v$(this.visible);this.tooltip.aZ();this.api.logVisibility(this.element,UU0(this)&&this.J)}; c4.prototype.ZF=function(Y){g.H.prototype.ZF.call(this,Y);this.api.logVisibility(this.element,this.visible&&Y)}; c4.prototype.nG=function(){g.H.prototype.nG.call(this);g.mU(this.element,"ytp-share-button-visible")};g.d(Xbd,g.SL);g.M=Xbd.prototype;g.M.SJ=function(Y){Y=A6(Y);g.jw(this.W,Y)||g.jw(this.closeButton,Y)||f0(this)}; g.M.H$=function(){g.SL.prototype.H$.call(this);this.tooltip.tU(this.element);this.api.logVisibility(this.K,!1);for(var Y=g.A(this.X),u=Y.next();!u.done;u=Y.next())u=u.value,this.api.hasVe(u.element)&&this.api.logVisibility(u.element,!1)}; g.M.show=function(){var Y=this.KT;g.SL.prototype.show.call(this);this.QF();Y||this.api.Yw("onSharePanelOpened")}; g.M.mU=function(){this.KT&&this.QF()}; g.M.QF=function(){var Y=this;g.UN(this.element,"ytp-share-panel-loading");g.mU(this.element,"ytp-share-panel-fail");var u=this.api.getVideoData(),n=this.api.getPlaylistId()&&this.G.checked;u.getSharePanelCommand&&vD(this.api.LF(),u.getSharePanelCommand,{includeListId:n}).then(function(U){Y.gg()||(g.mU(Y.element,"ytp-share-panel-loading"),CXd(Y,U))}); u=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",u);this.updateValue("linkText",u);this.updateValue("shareLinkWithUrl",g.UR("Compartir v\u00ednculo $URL",{URL:u}));RP(this.K);this.api.logVisibility(this.K,!0)}; g.M.onFullscreenToggled=function(Y){!Y&&this.qI()&&f0(this)}; g.M.focus=function(){this.K.focus()}; g.M.nG=function(){g.SL.prototype.nG.call(this);PXu(this)};g.d(NtS,cR);g.M=NtS.prototype;g.M.nG=function(){Mtu(this);cR.prototype.nG.call(this)}; g.M.gh=function(Y){Y.target!==this.dismissButton.element&&(this.YZ(!1),this.L.Yw("innertubeCommand",this.onClickCommand))}; g.M.vK=function(){this.TZ=!0;this.YZ(!0);this.Zy()}; g.M.GcV=function(Y){this.S=Y;this.Zy()}; g.M.onVideoDataChange=function(Y,u){if(Y=!!u.videoId&&this.videoId!==u.videoId)this.videoId=u.videoId,this.TZ=!1,this.jG=!0,this.Z=this.oV=!1,Mtu(this),r4e(this,!1),this.j=this.K=!1,R7(this),iMB(this);if(Y||!u.videoId)this.KG=this.G=!1;var n,U;if(u==null?0:(n=u.getPlayerResponse())==null?0:(U=n.videoDetails)==null?0:U.isLiveContent)this.ke(!1);else{var k,m,X;u=g.z((k=u.getWatchNextResponse())==null?void 0:(m=k.playerOverlays)==null?void 0:(X=m.playerOverlayRenderer)==null?void 0:X.productsInVideoOverlayRenderer, $5$);this.S=this.enabled=!1;if(u){if(k=u==null?void 0:u.featuredProductsEntityKey){m=g.B2.getState().entities;var S;if((S=JC(m,"featuredProductsEntity",k))==null?0:S.productsData){this.ke(!1);return}}if(!u.text||!u.onClickCommand||!u.timing){this.ke(!1);return}this.enabled=!0;if(!this.G){var C;S=(C=u.badgeInteractionLogging)==null?void 0:C.trackingParams;(this.G=!!S)&&this.L.setTrackingParams(this.badge.element,S||null)}if(!this.KG){var f;if(this.KG=!((f=u.dismissButton)==null||!f.trackingParams)){var Q; this.L.setTrackingParams(this.dismissButton.element,((Q=u.dismissButton)==null?void 0:Q.trackingParams)||null)}}u.isContentForward&&(C=u.productsData,r4e(this,!0),iMB(this),C=Tt7(this,C),f=[],C.length>0&&f.push(C[0]),C.length>1&&(Q=new g.H({D:"div",C:"ytp-suggested-action-more-products-icon"}),g.b(this,Q),f.push(Q),f.push.apply(f,g.Zu(C.slice(1)))),this.W=new g.H({D:"div",U:f,C:"ytp-suggested-action-content-forward-container"}),g.b(this,this.W),this.MF.element.append(this.W.element));this.text=g.Cw(u.text); var N;if(C=(N=u.dismissButton)==null?void 0:N.a11yLabel)this.zZ=g.Cw(C);this.onClickCommand=u.onClickCommand;this.timing=u.timing;this.l6()}XJ7(this);on(this);this.Zy()}}; g.M.OO=function(){return!this.S&&this.enabled&&!this.TZ&&!this.L.WW()&&!this.nT&&(this.Z||this.jG)}; g.M.MD=function(Y){cR.prototype.MD.call(this,Y);if(this.K||this.j)this.timing&&v4(this.timing.preview)&&(this.K=!1,R7(this),this.j=!1,R7(this),this.L.JS("shopping_overlay_preview_collapsed"),this.L.JS("shopping_overlay_preview_expanded"),Y=Dg(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),v4(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.L.JS("shopping_overlay_expanded"),Y.end=this.timing.expanded.endSec*1E3),this.L.l6([Y])), this.oV=!0,on(this);R7(this)}; g.M.ke=function(Y){(this.Z=Y)?(BR(this),on(this,!1)):(Mtu(this),this.JJ.start());this.Zy()}; g.M.l6=function(Y){var u=this.timing;Y=(Y===void 0?0:Y)+this.L.getCurrentTime();var n=[],U=u.visible,k=u.preview;u=u.expanded;v4(U)&&(ffM(U,Y),n.push(Dg(U.startSec,U.endSec,"shopping_overlay_visible")));v4(k)&&(ffM(k,Y),U=k.startSec+1,n.push(Dg(k.startSec,U,"shopping_overlay_preview_collapsed")),n.push(Dg(U,k.endSec,"shopping_overlay_preview_expanded")));v4(u)&&(ffM(u,Y),n.push(Dg(u.startSec,u.endSec,"shopping_overlay_expanded")));this.L.l6(n)}; g.M.Zy=function(){cR.prototype.Zy.call(this);this.L.getRootNode()&&g.PP(this.L.getRootNode(),"ytp-shopping-pill-shown",this.OO())};g.d(Gkm,g.H); Gkm.prototype.QF=function(){var Y=this.api.Y();this.v$(g.nV(Y)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.KT);var u=this.api.getVideoData(),n=!1;this.api.getPresentingPlayerType()===2?n=!!u.videoId&&!!u.isListed&&!!u.author&&!!u.Iu&&!!u.profilePicture:g.nV(Y)&&(n=!!u.videoId&&!!u.Iu&&!!u.profilePicture&&!u.sD&&!Y.X&&!(Y.S&&this.api.getPlayerSize().width<200));var U=u.profilePicture;Y=g.nV(Y)?u.expandedTitle:u.author;U=U===void 0? "":U;Y=Y===void 0?"":Y;n?(this.j!==U&&(this.K.style.backgroundImage="url("+U+")",this.j=U),this.updateValue("channelLogoLabel",g.UR("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:Y})),g.UN(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.mU(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.K,n&&this.J);this.api.logVisibility(this.channelName,n&&this.J);this.subscribeButton&&(this.subscribeButton.channelId=u.QN);this.updateValue("expandedTitle",u.expandedTitle)};g.d(x_,g.SL);x_.prototype.show=function(){g.SL.prototype.show.call(this);this.K.start()}; x_.prototype.hide=function(){g.SL.prototype.hide.call(this);this.K.stop()}; x_.prototype.qS=function(Y,u){Y==="dataloaded"&&((this.vC=u.vC,this.b8=u.b8,isNaN(this.vC)||isNaN(this.b8))?this.X&&(this.L.JS("intro"),this.L.removeEventListener(g.yk("intro"),this.S),this.L.removeEventListener(g.Vk("intro"),this.W),this.L.removeEventListener("onShowControls",this.G),this.hide(),this.X=!1):(this.L.addEventListener(g.yk("intro"),this.S),this.L.addEventListener(g.Vk("intro"),this.W),this.L.addEventListener("onShowControls",this.G),Y=new g.EE(this.vC,this.b8,{priority:9,namespace:"intro"}), this.L.l6([Y]),this.X=!0))};g.d(lx,g.H);lx.prototype.onClick=function(){this.L.TD()}; lx.prototype.QF=function(){var Y=!0;g.nV(this.L.Y())&&(Y=Y&&this.L.tJ().getPlayerSize().width>=480);this.v$(Y);Y=this.updateValue;var u=this.L.V("delhi_modern_web_player_icons"),n=u?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,T:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};u=u?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]};Y.call(this,"icon",this.L.R_()?n:u)};g.d(jiM,g.H);jiM.prototype.nG=function(){this.K=null;g.H.prototype.nG.call(this)};g.d(hS,g.H);hS.prototype.onClick=function(){this.L.Yw("innertubeCommand",this.j)}; hS.prototype.N=function(){if(this.L.V("delhi_modern_web_player")){var Y=this.L.getPlayerSize();Y.width&&(this.element.style.maxWidth=Y.width*.25+"px")}}; hS.prototype.oV=function(Y){Y!==this.S&&(this.update({chapterTitle:Y,ariaLabel:Y}),this.S=Y);Y?this.show():this.hide()}; hS.prototype.KG=function(){this.K.disabled=this.j==null;g.PP(this.K,"ytp-chapter-container-disabled",this.K.disabled);this.ye()};g.d(wi,hS);wi.prototype.onClickCommand=function(Y){g.z(Y,tx)&&this.ye()}; wi.prototype.updateVideoData=function(Y,u){var n,U,k;Y=g.z((n=u.getWatchNextResponse())==null?void 0:(U=n.playerOverlays)==null?void 0:(k=U.playerOverlayRenderer)==null?void 0:k.decoratedPlayerBarRenderer,YR);n=g.z(Y==null?void 0:Y.playerBarActionButton,g.ie);if(this.L.V("web_player_updated_entrypoint")){this.Z=Yp(n==null?void 0:n.text);var m;U=(m=n==null?void 0:n.tooltip)!=null?m:"Ver cap\u00edtulo";this.W.setAttribute("title",U)}this.j=n==null?void 0:n.command;hS.prototype.KG.call(this)}; wi.prototype.ye=function(){var Y=this.Z,u=this.G.K,n,U=((n=this.L.getLoopRange())==null?void 0:n.type)==="clips";if(u.length>1&&!U){Y=this.L.getProgressState().current*1E3;n=sr(u,Y);Y=u[n].title||"Cap\u00edtulos";if(n!==this.currentIndex||this.X)this.L.Yw("innertubeCommand",u[n].onActiveCommand),this.currentIndex=n;this.X=!1}else this.X=!0;hS.prototype.oV.call(this,Y)};g.d(W4,g.XV);W4.prototype.j=function(){var Y;(Y=this.element.parentElement)==null||Y.classList.contains("ytp-right-controls-left");(this.K=!this.K)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; W4.prototype.isExpanded=function(){return this.K};g.d(ep,g.H);ep.prototype.X=function(Y){g.V(Y.state,32)?pbS(this,this.api.a_()):this.KT&&(g.V(Y.state,16)||g.V(Y.state,1))||this.fade.hide()}; ep.prototype.onProgress=function(){var Y=this.api.getPlayerStateObject();(g.V(Y,32)||g.V(Y,16))&&LAc(this)}; ep.prototype.G=function(){this.frameIndex=NaN;LAc(this)}; ep.prototype.hide=function(){this.K&&pbS(this,null);g.H.prototype.hide.call(this)};g.d(ttu,g.H);g.M=ttu.prototype;g.M.onClick=function(){var Y=this;if(this.L.Y().Iu||this.L.Y().S){this.L.logClick(this.element);try{this.L.toggleFullscreen().catch(function(u){Y.W_(u)})}catch(u){this.W_(u)}}else f0(this.message,this.element,!0)}; g.M.W_=function(Y){String(Y).includes("fullscreen error")?g.Br(Y):g.tl(Y);this.cH()}; g.M.cH=function(){this.disable();this.message.Su(this.element,!0)}; g.M.bS=function(){Zm()===this.L.getRootNode()?this.X.start():(this.X.stop(),this.message&&this.message.hide())}; g.M.Uf=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var Y=window.screen.width*.9,u=window.screen.height*.9,n=Math.max(window.outerWidth,window.innerWidth),U=Math.max(window.outerHeight,window.innerHeight);if(n>U!==Y>u){var k=n;n=U;U=k}Y>n&&u>U&&this.cH()}}; g.M.disable=function(){var Y=this;if(!this.message){var u=(QT(["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.SL(this.L,{D:"div",Oc:["ytp-popup","ytp-generic-popup"], T:{role:"alert",tabindex:"0"},U:[u[0],{D:"a",T:{href:"https://support.google.com/youtube/answer/6276924",target:this.L.Y().N},RV:u[2]},u[4]]},100,!0);this.message.hide();g.b(this,this.message);this.message.subscribe("show",function(n){Y.j.Bp(Y.message,n)}); g.uc(this.L,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.K)();this.K=null}}; g.M.QF=function(){var Y=Eic(this.L),u=this.L.Y().S&&this.L.getPlayerSize().width<250;this.v$(Y&&!u);var n;((n=this.L.Y())==null?0:n.V("embeds_use_parent_visibility_in_ve_logging"))?this.L.logVisibility(this.element,this.KT&&this.J):this.L.logVisibility(this.element,this.KT)}; g.M.Sl=function(Y){if(Y){var u=g.ys(this.L,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.L.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(n){g.Br(n)})}else u=g.ys(this.L,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); Y=Btm(this,Y);u=this.message?null:u;this.L.Y().V("player_tooltip_data_title_killswitch")?this.update({title:u,icon:Y}):this.update({"tooltip-title":u,"aria-label":u,icon:Y});this.j.kR().aZ()}; g.M.nG=function(){this.message||((0,this.K)(),this.K=null);g.H.prototype.nG.call(this)}; g.M.ZF=function(Y){g.H.prototype.ZF.call(this,Y);var u;((u=this.L.Y())==null?0:u.V("embeds_use_parent_visibility_in_ve_logging"))&&this.L.logVisibility(this.element,this.KT&&Y)};g.d(bx,g.H);bx.prototype.onClick=function(){this.L.logClick(this.element);this.L.seekBy(this.K,!0);var Y=this.K>0?1:-1,u=Math.abs(this.K),n=this.L.X$().Yg;n&&n.Gm(Y,u);this.j.isActive()?this.X=!0:(Y=["ytp-jump-spin"],this.K<0&&Y.push("backwards"),this.element.classList.add.apply(this.element.classList,g.Zu(Y)),g.OQ(this.j))};g.d(I7,hS);I7.prototype.onClickCommand=function(Y){g.z(Y,qWB)&&this.ye()}; I7.prototype.updateVideoData=function(){var Y,u;this.j=(Y=c4M(this))==null?void 0:(u=Y.onTap)==null?void 0:u.innertubeCommand;hS.prototype.KG.call(this)}; I7.prototype.ye=function(){var Y="",u=this.G.S,n,U=(n=c4M(this))==null?void 0:n.headerTitle;n=U?g.Cw(U):"";var k;U=((k=this.L.getLoopRange())==null?void 0:k.type)==="clips";u.length>1&&!U&&(Y=this.L.getProgressState().current*1E3,k=vJt(u,Y),Y=k!=null?u[k].title:n,k!=null&&k!==this.currentIndex&&(this.L.Yw("innertubeCommand",u[k].onActiveCommand),this.currentIndex=k));hS.prototype.oV.call(this,Y)};g.d(zI,g.H);zI.prototype.onClick=function(){this.L.Yw("onCollapseMiniplayer");this.L.logClick(this.element)}; zI.prototype.QF=function(){this.visible=!this.L.isFullscreen();this.v$(this.visible);this.L.logVisibility(this.element,this.visible&&this.J)}; zI.prototype.ZF=function(Y){g.H.prototype.ZF.call(this,Y);this.L.logVisibility(this.element,this.visible&&Y)};g.d(gi,g.H);gi.prototype.init=function(){this.updateValue("minvalue",this.G);this.updateValue("maxvalue",this.W);this.updateValue("stepvalue",this.Z);this.updateValue("slidervalue",this.K);RgM(this,this.K)}; gi.prototype.X=function(){Er(this,Number(this.j.value));this.j.focus()}; gi.prototype.S=function(Y){if(!Y.defaultPrevented){switch(Y.code){case "ArrowDown":Y=-this.Z;break;case "ArrowUp":Y=this.Z;break;default:return}Er(this,Math.min(this.W,Math.max(Number((this.K+Y).toFixed(2)),this.G)))}};g.d(H4,gi);H4.prototype.onVolumeChange=function(Y){if(this.N)this.N=!1;else{var u=Y.volume;u===0||Y.muted?Er(this,0):Er(this,u)}}; H4.prototype.X=function(){gi.prototype.X.call(this);this.KG(this.K)}; H4.prototype.oV=function(Y){var u=-Y.deltaY;u=Y.deltaMode===WheelEvent.DOM_DELTA_LINE||Y.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.gS(this.K+u,0,100):g.gS(this.K+g.gS(u/10,-10,10),0,100);u===0?Er(this,0):Er(this,u);this.KG(u);Y.preventDefault();Y.stopPropagation()}; H4.prototype.jG=function(Y,u){this.N=!0;Y===0||u?this.L.mute():(this.L.isMuted()&&this.L.unMute(),this.L.setVolume(Y))};g.d(DU7,g.H);g.d(VX,g.H);g.M=VX.prototype;g.M.Hj=function(){if(!this.L.r7()){this.updateValue("dataTooltipOffsetY",-120);var Y;(Y=this.K)!=null&&yX(Y,!0);var u;(u=this.K)!=null&&u.K.stop()}}; g.M.eZ=function(){var Y;(Y=this.K)!=null&&Y.K.start()}; g.M.Wj=function(Y){this.visible=Y.width>=300||this.Fk;this.v$(this.visible);this.L.logVisibility(this.element,this.visible&&this.J)}; g.M.UU=function(){this.L.Y().MF?this.L.isMuted()?this.L.unMute():this.L.mute():f0(this.message,this.element,!0);this.L.logClick(this.element)}; g.M.LIV=function(Y){if(this.L.Y().MF&&this.K)if(Y.target===this.X){var u;if(!this.L.r7()||((u=this.K)==null?0:u.isVisible))this.UU();else{var n;(n=this.K)!=null&&yX(n,!0)}}else{var U;(U=this.K)!=null&&yX(U,!0)}else this.UU()}; g.M.onVolumeChange=function(Y){this.setVolume(Y.volume,Y.muted)}; g.M.setVolume=function(Y,u){var n=this,U=u?0:Y/100;Y=U===0?1:Y>50?1:0;if(this.N!==Y){var k=this.Z;isNaN(k)?WA0(this,Y):Efu(this.MF,function(X){WA0(n,k+(n.N-k)*X)},250); this.N=Y}U=U===0?1:0;if(this.S!==U){var m=this.jG;isNaN(m)?egu(this,U):Efu(this.DW,function(X){egu(n,m+(n.S-m)*X)},250); this.S=U}lfe(this,u)}; g.M.ZF=function(Y){g.H.prototype.ZF.call(this,Y);this.L.logVisibility(this.element,this.visible&&Y)}; var hgW=["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"],wbW=["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.d(g.Or,g.H);g.M=g.Or.prototype;g.M.onStateChange=function(Y){this.Ve(Y.state);var u;((u=this.L.Y())==null?0:u.V("embeds_use_parent_visibility_in_ve_logging"))&&this.L.logVisibility(this.element,this.KT&&this.J)}; g.M.Ve=function(Y){var u=g.$R(this.L.getVideoData()),n=!1;Y.isOrWillBePlaying()?Y=u?4:2:g.V(Y,2)?(Y=3,n=u):Y=1;this.element.disabled=n;if(this.K!==Y){u=null;switch(Y){case 2:u=g.ys(this.L,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:u="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:u=g.ys(this.L,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:u="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}Y=== 3?this.L.Y().V("player_tooltip_data_title_killswitch")?this.update({title:u,icon:bMG(this,Y)}):this.update({"tooltip-title":u,icon:bMG(this,Y)}):(this.L.V("player_tooltip_data_title_killswitch")?this.update({title:u}):this.update({"tooltip-title":u}),(u=bMG(this,Y))&&this.K&&this.K!==3?yh7(this.transition,this.element,u):this.updateValue("icon",u));this.tooltip.aZ();this.K=Y}}; g.M.onVideoDataChange=function(){g.PP(this.element,"ytp-play-button-playlist",g.qD(this.L))}; g.M.qx=function(Y){this.L.logClick(this.element);if(this.L.getPlayerStateObject().isOrWillBePlaying())this.L.pauseVideo();else{if(this.L.isMinimized()&&this.L.getPlayerStateObject().isCued()){var u={},n;if((n=this.L.getVideoData())==null?0:n.W)u.cttAuthInfo={token:this.L.getVideoData().W,videoId:this.L.getVideoData().videoId};Lg("direct_playback",u);this.L.PC().timerName="direct_playback"}this.L.playVideo()}this.L.isMinimized()&&(Y==null?void 0:Y.type)==="click"&&this.element.blur()}; g.M.ZF=function(Y){g.H.prototype.ZF.call(this,Y);var u;((u=this.L.Y())==null?0:u.V("embeds_use_parent_visibility_in_ve_logging"))&&this.L.logVisibility(this.element,this.KT&&Y)};g.d(g.F7,g.H);g.M=g.F7.prototype;g.M.onVideoDataChange=function(){gDB(this);this.G&&(this.qR(this.G),this.G=null);this.videoData=this.L.getVideoData(1);if(this.playlist=this.L.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.G=this.B(this.L,"progresssync",this.CO);this.X=EDA(this);zge(this);this.u1(this.L.tJ().getPlayerSize())}; g.M.u1=function(Y){Y=Y===void 0?this.L.tJ().getPlayerSize():Y;var u,n=((u=this.L.getLoopRange())==null?void 0:u.type)==="clips";Y=(g.qD(this.L)||this.K&&g.n0(this.L)&&!this.L.V("web_hide_next_button")||HMY(this))&&!n&&(this.K||Y.width>=400);this.v$(Y);this.L.logVisibility(this.element,Y)}; g.M.onClick=function(Y){this.L.logClick(this.element);var u=!0;this.S?u=g.BO(Y,this.L):Y.preventDefault();u&&(this.K&&this.L.getPresentingPlayerType()===5?this.L.publish("ytoprerollinternstitialnext"):this.K?(tL(this.L.PC()),this.L.publish("playlistnextbuttonclicked",this.element),this.L.nextVideo(!0)):this.X?this.L.seekTo(0):(tL(this.L.PC()),this.L.publish("playlistprevbuttonclicked",this.element),this.L.previousVideo(!0)))}; g.M.CO=function(){var Y=EDA(this);Y!==this.X&&(this.X=Y,zge(this))}; g.M.nG=function(){this.j&&(this.j(),this.j=null);gDB(this);g.H.prototype.nG.call(this)};g.d(Vtm,g.H);g.M=Vtm.prototype;g.M.BI=function(Y){this.DA(Y.pageX);this.ri(Y.pageX+Y.deltaX);OMA(this)}; g.M.DA=function(Y){this.KG=Y-this.Fk}; g.M.ri=function(Y){Y-=this.Fk;!isNaN(this.KG)&&this.thumbnails.length>0&&(this.N=Y-this.KG,this.thumbnails.length>0&&this.N!==0&&(this.X=this.Z+this.N,Y=$US(this,this.X),this.X<=this.K/2&&this.X>=afY(this)?(this.api.seekTo(Y,!1,void 0,void 0,25),g.yV(this.jG,"transform","translateX("+(this.X-this.K/2)+"px)"),y4e(this,Y)):this.X=this.Z))}; g.M.kS=function(){this.oV&&(this.oV.z$=!0);var Y=(0,g.j2)()-this.CG<300;if(Math.abs(this.N)<5&&!Y){this.CG=(0,g.j2)();Y=this.KG+this.N;var u=this.K/2-Y;this.DA(Y);this.ri(Y+u);OMA(this);this.api.logClick(this.W)}OMA(this)}; g.M.QH=function(){JS(this,this.api.getCurrentTime())}; g.M.play=function(Y){this.api.seekTo($US(this,this.X),void 0,void 0,void 0,26);this.api.playVideo();Y&&this.api.logClick(this.playButton)}; g.M.onExit=function(Y){this.api.seekTo(this.JJ,void 0,void 0,void 0,63);this.api.playVideo();Y&&this.api.logClick(this.dismissButton)}; g.M.pT=function(Y,u){this.Fk=Y;this.K=u;JS(this,this.api.getCurrentTime())}; g.M.enable=function(){this.isEnabled||(this.isEnabled=!0,this.JJ=this.api.getCurrentTime(),y4e(this,this.JJ),g.PP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.MF=this.B(this.element,"wheel",this.BI),this.logVisibility(this.isEnabled))}; g.M.disable=function(){this.isEnabled=!1;this.hide();g.PP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.MF&&this.qR(this.MF);this.logVisibility(this.isEnabled)}; g.M.reset=function(){this.disable();this.G=[];this.rg=!1}; g.M.logVisibility=function(Y){this.api.logVisibility(this.element,Y);this.api.logVisibility(this.W,Y);this.api.logVisibility(this.dismissButton,Y);this.api.logVisibility(this.playButton,Y)}; g.M.nG=function(){for(;this.j.length;){var Y=void 0;(Y=this.j.pop())==null||Y.dispose()}g.H.prototype.nG.call(this)}; g.d(FAu,g.H);g.d(J4G,g.H);g.d(Y3t,g.H);g.d(qL,g.H);qL.prototype.q1=function(Y){return Y==="PLAY_PROGRESS"?this.Z:Y==="LOAD_PROGRESS"?this.S:Y==="LIVE_BUFFER"?this.W:this.X};Uom.prototype.update=function(Y,u,n,U){n=n===void 0?0:n;this.width=u;this.G=n;this.K=u-n-(U===void 0?0:U);this.position=g.gS(Y,n,n+this.K);this.X=this.position-n;this.j=this.X/this.K};g.d(k8m,g.H);g.d(g.Yf,g.XV);g.M=g.Yf.prototype; g.M.Jj=function(){var Y=!1,u=this.api.getVideoData();if(!u)return Y;this.api.JS("timedMarkerCueRange");PVu(this);for(var n=g.A(u.dg),U=n.next();!U.done;U=n.next()){U=U.value;var k=void 0,m=(k=this.zZ[U])==null?void 0:k.markerType,X=void 0;k=(X=this.zZ[U])==null?void 0:X.markers;if(!k)break;if(m==="MARKER_TYPE_TIMESTAMPS"){Y=g.A(k);for(m=Y.next();!m.done;m=Y.next()){X=m.value;m=new k8m;var S=void 0;m.title=((S=X.title)==null?void 0:S.simpleText)||"";m.timeRangeStartMillis=Number(X.startMillis);m.K= Number(X.durationMillis);var C=S=void 0;m.onActiveCommand=(C=(S=X.onActive)==null?void 0:S.innertubeCommand)!=null?C:void 0;iZB(this,m)}ZZG(this,this.S);Y=this.S;m=this.SW;X=[];S=null;for(C=0;Cf&&(S.end=f);f=xrY(f,f+N);X.push(f);S=f;m[f.id]=Y[C].onActiveCommand}}this.api.l6(X);a:{Y=g.A(k);for(k=Y.next();!k.done;k=Y.next())if(k.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){Y= !1;break a}Y=!0}Y&&(this.s6=this.zZ[U]);Y=!0}else if(m==="MARKER_TYPE_HEATMAP"){U=this.zZ[U];Q=f=m=C=S=X=void 0;if(U&&U.markers){k=(m=(Q=U.markersMetadata)==null?void 0:(f=Q.heatmapMetadata)==null?void 0:f.minHeightDp)!=null?m:0;m=(X=(C=U.markersMetadata)==null?void 0:(S=C.heatmapMetadata)==null?void 0:S.maxHeightDp)!=null?X:60;X=this.K.length;S=null;for(C=0;C=Q&&r<=N&&f.push(T)}m>0&&(this.oV.style.height=m+"px");Q=this.G[C];N=f;T=k;var K=m,L=C===0;L=L===void 0?!1:L;uFe(Q,K);Z=N;r=Q.j;L=L===void 0?!1:L;var R=1E3/Z.length,c=[];c.push({x:0,y:100});for(var x=0;x0&&(S=f[f.length-1])}g.uC(this)}m=void 0;k=[];if(U=(m=U.markersDecoration)==null?void 0:m.timedMarkerDecorations)for(U=g.A(U),m=U.next();!m.done;m=U.next())m=m.value,C=S=X=void 0,k.push({visibleTimeRangeStartMillis:(X=m.visibleTimeRangeStartMillis)!= null?X:-1,visibleTimeRangeEndMillis:(S=m.visibleTimeRangeEndMillis)!=null?S:-1,decorationTimeMillis:(C=m.decorationTimeMillis)!=null?C:NaN,label:m.label?g.Cw(m.label):""});U=k;this.heatMarkersDecorations=U}}u.IP=this.S;g.PP(this.element,"ytp-timed-markers-enabled",Y);return Y}; g.M.pT=function(){g.uC(this);kf(this);ZZG(this,this.S);if(this.j){var Y=g.YS(this.element).x||0;this.j.pT(Y,this.W)}}; g.M.QHk=function(){var Y=this.api.getVideoData();Y&&LeM(this,Y)}; g.M.onClickCommand=function(Y){if(Y=g.z(Y,tx)){var u=Y.key;Y.isVisible&&u&&sG7(this,u)}}; g.M.jaW=function(Y){this.api.Yw("innertubeCommand",this.SW[Y.id])}; g.M.ye=function(){kf(this);var Y=this.api.getCurrentTime();(Ythis.clipEnd)&&this.gS()}; g.M.ZP=function(Y){if(!Y.defaultPrevented){var u=!1;switch(Y.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);u=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);u=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);u=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);u=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&f9(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);u=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&f9(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),u=!0}u&&Y.preventDefault()}}; g.M.qS=function(Y,u){this.updateVideoData(u,Y==="newdata")}; g.M.WJ=function(){this.qS("newdata",this.api.getVideoData())}; g.M.updateVideoData=function(Y,u){u=u===void 0?!1:u;var n=!!Y&&Y.QY();n&&(jc(Y)||Ket(this)?this.mW=!1:this.mW=Y.allowLiveDvr,g.PP(this.api.getRootNode(),"ytp-enable-live-buffer",!(Y==null||!jc(Y))),LeM(this,Y));bZu(this,this.api.wV());if(u){if(n){u=Y.clipEnd;this.clipStart=Y.clipStart;this.clipEnd=u;Qb(this);for(PJ(this,this.KG,this.Ru);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.Gw={};var U;(U=this.j)==null||U.reset();rB(this);g.PP(this.api.getRootNode(),"ytp-fine-scrubbing-exp", $_(this))}else this.gS();this.Nr()}if(Y){var k;U=((k=this.LT)==null?void 0:k.type)==="clips";if(k=!Y.isLivePlayback){k=this.api.getVideoData();u=g.uR(k);n=CVc(k);var m;k=u!=null||n!=null&&n.length>0||((m=k.G0)==null?void 0:m.length)>0}if(k&&!U){m=this.api.getVideoData();U=g.uR(m);k=!1;if(U==null?0:U.markersMap){k=this.api.getVideoData();var X;k.tq=((X=U.visibleOnLoad)==null?void 0:X.key)||k.tq;X=g.A(U.markersMap);for(U=X.next();!U.done;U=X.next())U=U.value,U.key&&U.value&&(this.Gw[U.key]=U.value, U.value.onChapterRepeat&&(k.G6w=U.value.onChapterRepeat));k.tq!=null&&sG7(this,k.tq);k=!0}var S;if(((S=m.G0)==null?void 0:S.length)>0){S=g.B2.getState().entities;X=g.A(m.G0);for(U=X.next();!U.done;U=X.next()){U=U.value;n=void 0;u=(n=JC(S,"macroMarkersListEntity",U))==null?void 0:n.markersList;var C=n=void 0;if(((n=u)==null?void 0:n.markerType)==="MARKER_TYPE_TIMESTAMPS"||((C=u)==null?void 0:C.markerType)==="MARKER_TYPE_HEATMAP")this.zZ[U]=u}k=this.Jj()||k}!k&&(S=CVc(m))&&(QGc(this,S),m.s6=this.K, fhc(this));tDS(this,null);Y.tj&&this.G.length===0&&(Y=Y.tj,S=Y.key,Y.isVisible&&S&&sG7(this,S))}else mot(this),PVu(this)}kf(this)}; g.M.AF=function(Y){this.Z&&!g.V(Y.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Z.cancel();var u;((u=this.j)==null?0:u.isEnabled)&&g.V(Y.state,8)&&this.api.pauseVideo();Y=this.api.getPresentingPlayerType()===2||!this.api.wV()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.PP(this.Jr,"ytp-hide-scrubber-button",Y)}; g.M.Ao=function(Y){var u=!!this.LT!==!!Y,n=this.LT;this.LT=Y;tDS(this,n);(Y==null?void 0:Y.type)!=="clips"&&Y||(Y?(this.updateValue("clipstarticon",dxm()),this.updateValue("clipendicon",dxm()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",QUc()),this.updateValue("clipendicon",fmB()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),u&&(this.updateVideoData(this.api.getVideoData(), !0),g.uC(this)),Qb(this));PJ(this,this.KG,this.Ru)}; g.M.uDa=function(){this.api.publish("progressBarHoverStart")}; g.M.DRz=function(Y,u,n){var U=g.YS(this.element),k=Ub(this).K,m=n?n.getAttribute("data-tooltip"):void 0,X=n?n.getAttribute("data-position"):void 0,S=n?n.getAttribute("data-offset-y"):void 0;S=S?Number(S):0;X&&(Y=o8(this.X,Number(n.getAttribute("data-position")),0)*k+g.YS(this.progressBar).x);this.Iu.x=Y-U.x;this.Iu.y=u-U.y;Y=Ub(this);n=C9(this,Y);u=0;var C;if((C=this.api.getVideoData())==null?0:jc(C))(C=this.api.getProgressState().seekableEnd)&&n>C&&(n=C,Y.position=o8(this.X,C)*Ub(this).K),u=this.X.j; Ket(this)&&(u=this.X.j);C=m||g.sH(this.mW?n-this.X.K:n-u);u=Y.position+this.xa;n-=this.api.iN();var f;if((f=this.j)==null||!f.isEnabled)if(this.api.a_()){if(this.K.length>1){f=Sx(this,this.Iu.x,!0);if(!this.LT)for(U=0;U1)for(U=0;U0)for(f=this.Iu.x,U=g.A(this.S),k=U.next();!k.done;k=U.next())k=k.value,X=n9(this,k.timeRangeStartMillis/ (this.X.K*1E3),Ub(this)),g.PP(k.element,"ytp-timed-marker-hover",X<=f&&X+6>=f);U=this.tooltip.scale;f=this.api.V("delhi_modern_web_player")?67:45;S=(isNaN(S)?0:S)-f*U;this.api.V("web_key_moments_markers")?this.s6?(f=vJt(this.S,n*1E3),f=f!=null?this.S[f].title:""):(f=sr(this.K,n*1E3),f=this.K[f].title):(f=sr(this.K,n*1E3),f=this.K[f].title);f||(S+=16*U);this.tooltip.scale===.6&&(g.KV(this.api.Y())?(S=this.api.tJ().getPlayerSize().height-225,U=this.api.V("delhi_modern_web_player")?70:110,S=f?S+U:S+ U+16):S=f?110:126);U=sr(this.K,n*1E3);this.rg=oOB(this,n,U)?U:oOB(this,n,U+1)?U+1:-1;g.PP(this.api.getRootNode(),"ytp-progress-bar-snap",this.rg!==-1&&this.K.length>1);U=!1;k=g.A(this.heatMarkersDecorations);for(X=k.next();!X.done;X=k.next()){X=X.value;var Q=n*1E3;Q>=X.visibleTimeRangeStartMillis&&Q<=X.visibleTimeRangeEndMillis&&(f=X.label,C=g.sH(X.decorationTimeMillis/1E3),this.api.V("web_heat_marker_use_current_time")&&(C=g.sH(C9(this,Y))),U=!0)}this.b8!==U&&(this.b8=U,this.api.logVisibility(this.sx, this.b8));g.PP(this.api.getRootNode(),"ytp-progress-bar-decoration",U);U=160*this.tooltip.scale*2;k=f.length*(this.N?8.55:5.7);k=k<=U?k:U;X=k<160*this.tooltip.scale;U=3;!X&&k/2>Y.position&&(U=1);!X&&k/2>this.W-Y.position&&(U=2);this.api.Y().S&&(S-=10);this.G.length&&this.G[0].QY&&(S-=14*(this.N?2:1),this.JJ||(this.JJ=!0,this.api.logVisibility(this.oV,this.JJ)));var N;if($_(this)&&(((N=this.j)==null?0:N.isEnabled)||this.dg>0)){var Z;S-=((Z=this.j)==null?0:Z.isEnabled)?iC(this):this.dg}N=void 0;$_(this)&& !this.api.V("web_player_hide_fine_scrubbing_edu")&&(N="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa",this.Fk||(this.Fk=!0,this.api.logVisibility(this.Cs,this.Fk)));this.tooltip.fz(u,n,C,!!m,S,f,U,N)}else this.tooltip.fz(u,n,C,!!m,S);g.UN(this.api.getRootNode(),"ytp-progress-bar-hover");jGc(this)}; g.M.rRJ=function(){this.Nr();g.mU(this.api.getRootNode(),"ytp-progress-bar-hover");this.JJ&&(this.JJ=!1,this.api.logVisibility(this.oV,this.JJ));this.Fk&&(this.Fk=!1,this.api.logVisibility(this.Cs,this.Fk));this.api.V("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.M.qDq=function(Y,u){var n=g.YS(this.element);this.MR=Y-n.x;$_(this)&&this.j&&(this.j.rg?JS(this.j,this.api.getCurrentTime()):q4G(this.j),this.j.show(),g.PP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.j.isEnabled));this.kQ&&(this.kQ.dispose(),this.kQ=null);this.KF=u;this.MA=this.api.getCurrentTime();this.K.length>1&&this.rg!==-1?this.api.seekTo(this.K[this.rg].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(C9(this,Ub(this)),!1,void 0,void 0,7);g.UN(this.element,"ytp-drag");(this.bU= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.M.yRW=function(){if($_(this)&&this.j){var Y=iC(this);this.dg>=Y*.5?(this.j.enable(),JS(this.j,this.api.getCurrentTime()),ebG(this,Y)):rB(this)}if(g.V(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var u;if((u=this.j)==null?0:u.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.K.length>1&&this.rg!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&f9(this,this.MA,this.K[this.rg].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.K[this.rg].startTime/1E3,void 0,void 0,void 0,7);else{Y=C9(this,Ub(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&f9(this,this.MA,Y,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(Y,void 0,void 0,void 0,7);u=g.A(this.heatMarkersDecorations);for(var n=u.next();!n.done;n=u.next())n=n.value,Y*1E3>=n.visibleTimeRangeStartMillis&&Y*1E3<=n.visibleTimeRangeEndMillis&& this.api.logClick(this.sx)}g.mU(this.element,"ytp-drag");this.DW&&(this.jG.src=this.DW);this.bU&&!g.V(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.M.Loq=function(Y,u){var n=this,U=Ub(this),k=C9(this,U);this.api.tJ().wm||(U.position>this.MR+2?this.Ub&&(this.jG.src=this.Ub):U.position1);this.v$(Y&&this.L.tJ().getPlayerSize().width>=400);this.L.logVisibility(this.element,this.KT);var u=1;Y&&this.isActive()&&(u=2);if(this.K!==u){this.K=u;Y=this.L.V("delhi_modern_web_player_icons");switch(u){case 1:this.updateValue("icon",Y?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{D:"path",au:!0,T:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});break;case 2:this.updateValue("icon", Y?{D:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{D:"path",T:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.S20())}g.PP(this.element,"ytp-remote-button-active",this.isActive())}}; Ma.prototype.j=function(){if(this.L.getOption("remote","quickCast"))this.L.setOption("remote","quickCast",!0);else{var Y=this.jE,u=this.element;if(Y.qI())Y.H$();else{Y.initialize();a:{var n=g.A(Y.NN.items);for(var U=n.next();!U.done;U=n.next())if(U=U.value,U.priority===1){n=U;break a}n=null}n&&(n.open(),Y.Su(u));Y.Su(u)}}this.L.logClick(this.element)};g.d(sb,g.H);sb.prototype.K=function(Y){var u=this.L.Y(),n=400;this.L.V("web_player_small_hbp_settings_menu")&&u.W?n=300:u.S&&(n=200);Y=this.j&&Y.width>=n;this.v$(Y);this.L.V("embeds_use_parent_visibility_in_ve_logging")?this.L.logVisibility(this.element,Y&&this.J):this.L.logVisibility(this.element,Y)}; sb.prototype.X=function(){if(this.jE.KT)this.jE.H$();else{var Y=g.wO(this.L.ym());Y&&!Y.loaded&&(Y.z6("tracklist",{includeAsr:!0}).length||Y.load());this.L.logClick(this.element);this.jE.Su(this.element)}}; sb.prototype.updateBadge=function(){var Y=this.L.isHdr(),u=this.L.getPresentingPlayerType(),n=u!==2&&u!==3,U=g.YX(this.L),k=n&&!!g.$N(this.L.ym());u=k&&U.displayMode===1;U=k&&U.displayMode===2;n=(k=u||U)||!n?null:this.L.getPlaybackQuality();g.PP(this.element,"ytp-hdr-quality-badge",Y);g.PP(this.element,"ytp-hd-quality-badge",!Y&&(n==="hd1080"||n==="hd1440"));g.PP(this.element,"ytp-4k-quality-badge",!Y&&n==="hd2160");g.PP(this.element,"ytp-5k-quality-badge",!Y&&n==="hd2880");g.PP(this.element,"ytp-8k-quality-badge", !Y&&n==="highres");g.PP(this.element,"ytp-3d-badge-grey",!Y&&k&&u);g.PP(this.element,"ytp-3d-badge",!Y&&k&&U)};g.d(dB,L0);dB.prototype.isLoaded=function(){var Y=g.gO(this.L.ym());return Y!==void 0&&Y.loaded}; dB.prototype.QF=function(){g.gO(this.L.ym())!==void 0&&this.L.getPresentingPlayerType()!==3?this.K||(this.jE.rD(this),this.K=!0):this.K&&(this.jE.SM(this),this.K=!1);tO(this,this.isLoaded())}; dB.prototype.onSelect=function(Y){this.isLoaded();Y?this.L.loadModule("annotations_module"):this.L.unloadModule("annotations_module");this.L.publish("annotationvisibility",Y)}; dB.prototype.nG=function(){this.K&&this.jE.SM(this);L0.prototype.nG.call(this)};g.d(G7,g.gJ);G7.prototype.QF=function(){var Y=this.L.getAvailableAudioTracks();Y.length>1?(this.UT(g.dA(Y,this.K)),this.tracks=g.qX(Y,this.K,this),this.countLabel.dD(Y.length?" ("+Y.length+")":""),this.publish("size-change"),this.ww(this.K(this.L.getAudioTrack())),this.enable(!0)):this.enable(!1)}; G7.prototype.mM=function(Y){g.gJ.prototype.mM.call(this,Y);this.L.setAudioTrack(this.tracks[Y]);this.jE.Ya()}; G7.prototype.K=function(Y){return Y.toString()};g.d(Ah,L0); Ah.prototype.j=function(){var Y=this.L.getPresentingPlayerType();if(Y!==2&&Y!==3&&g.n0(this.L))this.K||(this.jE.rD(this),this.K=!0,this.X.push(this.B(this.L,"videodatachange",this.j)),this.X.push(this.B(this.L,"videoplayerreset",this.j)),this.X.push(this.B(this.L,"onPlaylistUpdate",this.j)),this.X.push(this.B(this.L,"autonavchange",this.G)),Y=this.L.getVideoData(),this.G(Y.autonavState),this.L.logVisibility(this.element,this.K));else if(this.K){this.jE.SM(this);this.K=!1;Y=g.A(this.X);for(var u=Y.next();!u.done;u= Y.next())this.qR(u.value)}}; Ah.prototype.G=function(Y){tO(this,Y!==1)}; Ah.prototype.onSelect=function(Y){this.L.Sx(Y?2:1);this.K&&(this.L.logVisibility(this.element,this.K),this.L.logClick(this.element))}; Ah.prototype.nG=function(){this.K&&this.jE.SM(this);L0.prototype.nG.call(this)};g.d(zbG,g.ic);zbG.prototype.onClick=function(Y){Y.preventDefault();var u,n;(u=g.w6(this.L))==null||(n=u.jc())==null||n.H$();var U,k;(U=g.w6(this.L))==null||(k=U.pI())==null||k.Su(Y.target)};g.d(gOt,g.gJ);g.M=gOt.prototype; g.M.Dx=function(){var Y=this.L.getPresentingPlayerType();if(Y!==2&&Y!==3){this.jG=this.L.jf();var u=this.L.getAvailableQualityLevels();if(this.K){this.G={};Y=g.Rf(this.L,"getAvailableQualityData",[]);Y=g.A(Y);for(var n=Y.next();!n.done;n=Y.next())n=n.value,this.G[n.qualityLabel]=n;Y=Object.keys(this.G);u[u.length-1]==="auto"&&Y.push("auto");this.DW=new Set(u)}else if(this.W){n=g.Rf(this.L,"getAvailableQualityData",[]);Y=[];n=g.A(n);for(var U=n.next();!U.done;U=n.next())U=U.value,this.Z[U.quality]= U,U.quality&&Y.push(U.quality);u[u.length-1]==="auto"&&Y.push("auto")}else Y=u;g.oiB(this.L)&&this.L.Xg()&&Y.unshift("missing-qualities");u=this.L.app.wg();n=u.getVideoData();if(!n.j||!n.j.video||n.j.video.qualityOrdinal<1080||n.QK)u=!1;else{U=/^qsa/.test(n.clientPlaybackNonce);var k="r";n.j.id.indexOf(";")>=0&&(U=/^[a-p]/.test(n.clientPlaybackNonce),k="x");U?(u.fG("iqss",{trigger:k},!0),u=!0):u=!1}u&&Y.unshift("inline-survey");this.UT(Y);u=this.L.getVideoData().cotn?!0:!1;n=this.oV.XP();n=!g.KV(this.L.Y())|| !(u===void 0?0:u)||!(n===void 0||n);u=this.j;n=n===void 0?!1:n;u.C9&&g.PP(u.Xk("ytp-panel-footer"),"ytp-panel-hide-footer",n===void 0?!1:n);if(Y.length){this.g8();this.enable(!0);return}}this.enable(!1)}; g.M.g8=function(){if(this.K){var Y=this.L.getPreferredQuality();this.DW.has(Y)&&(this.S=this.L.getPlaybackQuality(),this.KG=this.L.getPlaybackQualityLabel(),Y==="auto"?(this.ww(Y),this.dD(this.zg(Y))):this.ww(this.KG))}else Y=this.L.getPreferredQuality(),this.options[Y]&&(this.S=this.L.getPlaybackQuality(),this.ww(Y),Y==="auto"&&this.dD(this.zg(Y)))}; g.M.mM=function(Y){if(Y!=="missing-qualities"){g.gJ.prototype.mM.call(this,Y);var u=this.K?this.G[Y]:this.Z[Y];var n=u==null?void 0:u.quality,U=u==null?void 0:u.formatId,k=u==null?void 0:u.paygatedQualityDetails;u=k==null?void 0:k.endpoint;if(k){var m;k=(m=this.options[Y])==null?void 0:m.element;this.L.logClick(k)}if(this.K){var X,S;if((X=g.z(u,g.Hu$))==null?0:(S=X.popup)==null?0:S.notificationActionRenderer)this.L.Yw("innertubeCommand",u);else if(u){this.L.Yw("innertubeCommand",u);return}U?this.L.setPlaybackQuality(n, U):this.L.setPlaybackQuality(n)}else{if(this.W){var C,f;if((C=g.z(u,g.Hu$))==null?0:(f=C.popup)==null?0:f.notificationActionRenderer)this.L.Yw("innertubeCommand",u);else if(u){this.L.Yw("innertubeCommand",u);return}}this.L.setPlaybackQuality(Y)}this.jE.H$();this.Dx()}}; g.M.open=function(){for(var Y=g.A(Object.values(this.options)),u=Y.next();!u.done;u=Y.next()){u=u.value;var n=void 0;this.L.hasVe((n=u)==null?void 0:n.element)&&(n=void 0,this.L.logVisibility((n=u)==null?void 0:n.element,!0))}g.gJ.prototype.open.call(this);this.L.logClick(this.element)}; g.M.E7=function(Y,u,n){var U=this;if(Y==="missing-qualities")return new g.ic({D:"a",Oc:["ytp-menuitem"],T:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.L.Y().N,tabindex:"0",role:"menuitemradio"},U:[{D:"div",Oc:["ytp-menuitem-label"],RV:"{{label}}"}]},u,this.zg(Y));if(Y!=="inline-survey"){var k,m=(k=this.K?this.G[Y]:this.Z[Y])==null?void 0:k.paygatedQualityDetails;k=m==null?void 0:m.veType;m=m==null?void 0:m.trackingParams;u=g.gJ.prototype.E7.call(this,Y,u,n);m?(this.L.createServerVe(u.element, this,!0),this.L.setTrackingParams(u.element,m)):k&&this.L.createClientVe(u.element,this,k,!0);return u}Y=[{D:"span",RV:"\u00bfSe ve bien?"}];n=g.A([!0,!1]);m=n.next();for(k={};!m.done;k={GB:void 0},m=n.next())k.GB=m.value,m=new g.H({D:"span",C:"ytp-menuitem-inline-survey-response",U:[k.GB?sUW():ibM()],T:{tabindex:"0",role:"button"}}),m.listen("click",function(X){return function(){var S=U.L.app.wg();S.fG("iqsr",{tu:X.GB});S.getVideoData().QK=!0;U.jE.H$();U.Dx()}}(k)),Y.push(m); return new g.ic({D:"div",C:"ytp-menuitem",T:{"aria-disabled":"true"},U:[{D:"div",Oc:["ytp-menuitem-label"],U:Y}]},u)}; g.M.zg=function(Y,u){u=u===void 0?!1:u;if(Y==="missing-qualities")return{D:"div",RV:"\u00bfFaltan opciones?"};if(Y==="inline-survey")return"";var n=this.W||this.K?[y_G(this,Y,u,!1)]:[HZd(this,Y)];var U=this.L.getPreferredQuality();u||U!=="auto"||Y!=="auto"||(n.push(" "),this.K?n.push(y_G(this,this.KG,u,!0,["ytp-menu-label-secondary"])):this.W?n.push(y_G(this,this.S,u,!0,["ytp-menu-label-secondary"])):n.push(HZd(this,this.S,["ytp-menu-label-secondary"])));return{D:"div",U:n}};g.d(jx,gi);jx.prototype.X=function(){gi.prototype.X.call(this);this.N&&VDS(this)}; jx.prototype.DW=function(){this.KG()}; jx.prototype.jG=function(){this.L.setPlaybackRate(this.K,!0)}; jx.prototype.S=function(Y){gi.prototype.S.call(this,Y);this.KG();VDS(this);Y.preventDefault()};g.d(K9,g.H);g.M=K9.prototype;g.M.init=function(){this.Ej(this.K);this.updateValue("minvalue",this.j);this.updateValue("maxvalue",this.X)}; g.M.cI=function(Y){if(!Y.defaultPrevented){switch(Y.keyCode){case 37:case 40:var u=-this.Z;break;case 39:case 38:u=this.Z;break;default:return}this.Ej(this.K+u);Y.preventDefault()}}; g.M.eJ=function(Y){var u=this.K;u+=(Y.deltaX||-Y.deltaY)<0?-this.N:this.N;this.Ej(u);Y.preventDefault()}; g.M.Ed=function(Y){Y=(Y-g.YS(this.G).x)/this.KG*this.range+this.j;this.Ej(Y)}; g.M.Ej=function(Y,u){u=u===void 0?"":u;Y=g.gS(Y,this.j,this.X);u===""&&(u=Y.toString());this.updateValue("valuenow",Y);this.updateValue("valuetext",u);this.oV.style.left=(Y-this.j)/this.range*(this.KG-this.rg)+"px";this.K=Y}; g.M.focus=function(){this.MF.focus()};g.d(p9,K9);p9.prototype.jG=function(){this.L.setPlaybackRate(this.K,!0)}; p9.prototype.Ej=function(Y){K9.prototype.Ej.call(this,Y,FeB(this,Y).toString());this.W&&(OZA(this),this.DW())}; p9.prototype.updateValues=function(){var Y=this.L.getPlaybackRate();FeB(this,this.K)!==Y&&(this.Ej(Y),OZA(this))};g.d(J_e,g.XV);J_e.prototype.focus=function(){this.K.focus()};g.d(q3c,vR);g.d($oY,g.gJ);g.M=$oY.prototype;g.M.zg=function(Y){return Y==="1"?"Normal":Y.toLocaleString()}; g.M.QF=function(){var Y,u=(Y=this.L.getVideoData())==null?void 0:Y.u6();Y=this.L.getPresentingPlayerType(u);this.enable(Y!==2&&Y!==3);nMu(this)}; g.M.UT=function(Y){g.gJ.prototype.UT.call(this,Y);this.Z&&this.Z.j.focus()}; g.M.ML=function(Y){g.gJ.prototype.ML.call(this,Y);Y?(this.oV=this.B(this.L,"onPlaybackRateChange",this.onPlaybackRateChange),nMu(this),YGe(this,this.L.getPlaybackRate())):(this.qR(this.oV),this.oV=null)}; g.M.onPlaybackRateChange=function(Y){var u=this.L.getPlaybackRate();!this.G&&this.KG.includes(u)||uqY(this,u);YGe(this,Y)}; g.M.E7=function(Y,u,n){return Y===this.K&&kJm(this.L)?g.gJ.prototype.E7.call(this,Y,u,n,{D:"div",C:"ytp-speed-slider-menu-footer",U:[this.Z]}):Y===this.W&&ahe(this.L)?U$M(this,Y,u,n):g.gJ.prototype.E7.call(this,Y,u,n)}; g.M.mM=function(Y){g.gJ.prototype.mM.call(this,Y);Y===this.K?this.L.setPlaybackRate(this.S,!0):this.L.setPlaybackRate(Number(Y),!0);kJm(this.L)&&Y===this.K||this.jE.Ya()}; g.M.aC=function(Y){var u=Y===this.K;this.G=!1;u&&L9(this.L)&&!kJm(this.L)?(Y=new q3c(this.L),g.lg(this.jE,Y)):g.gJ.prototype.aC.call(this,Y)};g.d(X$e,g.gJ);g.M=X$e.prototype;g.M.ww=function(Y){g.gJ.prototype.ww.call(this,Y)}; g.M.Mp=function(Y){return Y.option.toString()}; g.M.getOption=function(Y){return this.settings[Y]}; g.M.zg=function(Y){return this.getOption(Y).text||""}; g.M.mM=function(Y){g.gJ.prototype.mM.call(this,Y);this.publish("settingChange",this.setting,this.settings[Y].option)};g.d(BJ,g.Rn);BJ.prototype.Xu=function(Y){for(var u=g.A(Object.keys(Y)),n=u.next();!n.done;n=u.next()){var U=n.value;if(n=this.EF[U]){var k=Y[U].toString();U=!!Y[U+"Override"];n.options[k]&&(n.ww(k),n.G.element.setAttribute("aria-checked",String(!U)),n.K.element.setAttribute("aria-checked",String(U)))}}}; BJ.prototype.Hv=function(Y,u){this.publish("settingChange",Y,u)};g.d(o4,g.gJ);o4.prototype.K=function(Y){return Y.languageCode}; o4.prototype.zg=function(Y){return this.languages[Y].languageName||""}; o4.prototype.mM=function(Y){this.publish("select",Y);this.L.logClick(this.element);g.wJ(this.jE)};g.d(CMB,g.gJ);g.M=CMB.prototype;g.M.yP=function(Y){return g.i4(Y)?"__off__":Y.displayName}; g.M.zg=function(Y){return Y==="__off__"?"Desactivados":Y==="__translate__"?"Traducci\u00f3n autom\u00e1tica":Y==="__contribute__"?"Agregar subt\u00edtulos":Y==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(Y==="__off__"?{}:this.tracks[Y]).displayName}; g.M.mM=function(Y){if(Y==="__translate__")this.K.open();else if(Y==="__contribute__"){this.L.pauseVideo();this.L.isFullscreen()&&this.L.toggleFullscreen();var u=g.TY(this.L.Y(),this.L.getVideoData());g.eZ(u)}else if(Y==="__correction__"){this.L.pauseVideo();this.L.isFullscreen()&&this.L.toggleFullscreen();var n=fjd(this);cJ(this,n);g.gJ.prototype.mM.call(this,this.yP(n));var U,k;n=(u=this.L.getVideoData().getPlayerResponse())==null?void 0:(U=u.captions)==null?void 0:(k=U.playerCaptionsTracklistRenderer)== null?void 0:k.openTranscriptCommand;this.L.Yw("innertubeCommand",n);this.jE.Ya();this.G&&this.L.logClick(this.G)}else{if(Y==="__correction__"){this.L.pauseVideo();this.L.isFullscreen()&&this.L.toggleFullscreen();u=fjd(this);cJ(this,u);g.gJ.prototype.mM.call(this,this.yP(u));var m,X;u=(n=this.L.getVideoData().getPlayerResponse())==null?void 0:(m=n.captions)==null?void 0:(X=m.playerCaptionsTracklistRenderer)==null?void 0:X.openTranscriptCommand;this.L.Yw("innertubeCommand",u)}else this.L.logClick(this.element), cJ(this,Y==="__off__"?{}:this.tracks[Y]),g.gJ.prototype.mM.call(this,Y);this.jE.Ya()}}; g.M.QF=function(){var Y=this.L.getOptions();Y=Y&&Y.indexOf("captions")!==-1;var u=this.L.getVideoData(),n=u&&u.d2,U,k=!((U=this.L.getVideoData())==null||!g.d6(U));U={};if(Y||n){var m;if(Y){var X=this.L.getOption("captions","track");U=this.L.getOption("captions","tracklist",{includeAsr:!0});var S=k?[]:this.L.getOption("captions","translationLanguages");this.tracks=g.qX(U,this.yP,this);k=g.dA(U,this.yP);var C,f;fjd(this)&&((m=u.getPlayerResponse())==null?0:(C=m.captions)==null?0:(f=C.playerCaptionsTracklistRenderer)== null?0:f.openTranscriptCommand)&&k.push("__correction__");if(S.length&&!g.i4(X)){if((m=X.translationLanguage)&&m.languageName){var Q=m.languageName;m=S.findIndex(function(N){return N.languageName===Q}); vem(S,m)}PMA(this.K,S);k.push("__translate__")}m=this.yP(X)}else this.tracks={},k=[],m="__off__";k.unshift("__off__");this.tracks.__off__={};n&&k.unshift("__contribute__");this.tracks[m]||(this.tracks[m]=X,k.push(m));this.UT(k);this.ww(m);X&&X.translationLanguage?this.K.ww(this.K.K(X.translationLanguage)):txA(this.K);Y&&this.W.Xu(this.L.getSubtitlesUserSettings());this.countLabel.dD(U&&U.length?" ("+U.length+")":"");this.publish("size-change");this.L.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.M.ws=function(Y){var u=this.L.getOption("captions","track");u=g.rc(u);u.translationLanguage=this.K.languages[Y];cJ(this,u)}; g.M.Hv=function(Y,u){if(Y==="reset")this.L.resetSubtitlesUserSettings();else{var n={};n[Y]=u;this.L.updateSubtitlesUserSettings(n)}SGu(this,!0);this.S.start();this.W.Xu(this.L.getSubtitlesUserSettings())}; g.M.aYa=function(Y){Y||g.JF(this.S)}; g.M.nG=function(){g.JF(this.S);g.gJ.prototype.nG.call(this)}; g.M.open=function(){g.gJ.prototype.open.call(this);this.options.__correction__&&!this.G&&(this.G=this.options.__correction__.element,this.L.createClientVe(this.G,this,167341),this.L.logVisibility(this.G,!0))};g.d(QqS,g.xz);g.M=QqS.prototype; g.M.initialize=function(){if(!this.isInitialized){var Y=this.L.Y();this.isInitialized=!0;try{this.iM=new gOt(this.L,this)}catch(n){g.Br(Error("QualityMenuItem creation failed"))}g.b(this,this.iM);var u=new CMB(this.L,this);g.b(this,u);Y.X||(u=new dB(this.L,this),g.b(this,u));Y.enableSpeedOptions&&(u=new $oY(this.L,this),g.b(this,u));(g.nV(Y)||Y.W)&&(Y.j||Y.CG)&&(u=new zbG(this.L,this),g.b(this,u));Y.yY&&!Y.V("web_player_move_autonav_toggle")&&(Y=new Ah(this.L,this),g.b(this,Y));Y=new G7(this.L,this); g.b(this,Y);this.L.publish("settingsMenuInitialized");IhW(this.settingsButton,this.NN.JG())}}; g.M.rD=function(Y){this.initialize();this.NN.rD(Y);IhW(this.settingsButton,this.NN.JG())}; g.M.SM=function(Y){this.KT&&this.NN.JG()<=1&&this.hide();this.NN.SM(Y);IhW(this.settingsButton,this.NN.JG())}; g.M.Su=function(Y){this.initialize();this.NN.JG()>0&&g.xz.prototype.Su.call(this,Y)}; g.M.H$=function(){this.tM?this.tM=!1:g.xz.prototype.H$.call(this)}; g.M.show=function(){g.xz.prototype.show.call(this);g.UN(this.L.getRootNode(),"ytp-settings-shown")}; g.M.hide=function(){g.xz.prototype.hide.call(this);g.mU(this.L.getRootNode(),"ytp-settings-shown")}; g.M.ke=function(Y){this.L.logVisibility(this.element,Y);this.L.publish("settingsMenuVisibilityChanged",Y)};g.d(ZsG,g.H);g.M=ZsG.prototype;g.M.onClick=function(){if(vJ(this)&&(this.L.toggleSubtitles(),this.L.logClick(this.element),!this.isEnabled())){var Y=!1,u=g.wT(g.h6(),65);g.KV(this.L.Y())&&u!=null&&(Y=!u);Y&&this.L.Y().V("web_player_nitrate_promo_tooltip")&&this.L.publish("showpromotooltip",this.element)}}; g.M.GRV=function(Y){var u,n;(u=g.w6(this.L))==null||(n=u.jc())==null||n.Su(Y)}; g.M.isEnabled=function(){var Y=this.L.getOption("captions","track");return!(!Y||!Y.displayName)}; g.M.QF=function(){var Y=vJ(this),u=300;this.L.Y().S&&(u=480);this.L.V("delhi_modern_web_player_icons")&&this.updateValue("icon",isc(this));if(this.L.Y().W){this.updateValue("title",g.ys(this.L,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.ys(this.L,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var n=Y}else{if(Y)(n=this.Xk("ytp-subtitles-button-icon"))==null||n.setAttribute("fill-opacity","1"),this.L.Y().V("player_tooltip_data_title_killswitch")?this.updateValue("title", g.ys(this.L,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.ys(this.L,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.L.V("delhi_modern_web_player_icons")){var U;(U=this.Xk("ytp-subtitles-button-icon"))==null||U.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var k;(k=this.Xk("ytp-subtitles-button-icon"))==null||k.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"tooltip-title":"Subt\u00edtulos no disponibles"}); this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}n=!0}this.tooltip.aZ();n=n&&this.L.tJ().getPlayerSize().width>=u;this.v$(n);this.L.V("embeds_use_parent_visibility_in_ve_logging")?this.L.logVisibility(this.element,n&&this.J):this.L.logVisibility(this.element,n);Y?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.M.ZF=function(Y){g.H.prototype.ZF.call(this,Y);this.L.Y().V("embeds_use_parent_visibility_in_ve_logging")&&this.L.logVisibility(this.element,this.KT&&Y)};g.d(g.R4,g.H);g.M=g.R4.prototype;g.M.canShowCountdown=function(){return!xf(this)&&!Ds(this)}; g.M.ye=function(){var Y=this.api.tJ().getPlayerSize().width,u=this.N;this.api.Y().S&&(u=400);u=Y>=u&&(!Ds(this)||!g.V(this.api.getPlayerStateObject(),64));this.v$(u);g.PP(this.element,"ytp-time-display-allow-autohide",u&&Y<400);Y=this.api.getProgressState();if(u){var n=this.api.getPresentingPlayerType();u=this.api.getCurrentTime(n,!1);this.j&&(u-=Y.airingStart);xf(this)&&(u-=this.LT.startTimeMs/1E3);this.canShowCountdown()&&this.X&&(u-=this.api.getDuration(n,!1));var U=g.sH(u);this.G!==U&&(this.updateValue("currenttime", U),this.G=U);n=xf(this)?(this.LT.endTimeMs-this.LT.startTimeMs)/1E3:this.api.getDuration(n,!1);U=g.sH(n);this.W!==U&&(this.updateValue("duration",U),this.W=U,u&&(u=g.UR("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.sH(u,!0),DURATION:g.sH(n,!0)}),this.updateValue("timeDisplayAriaLabel",u)))}T4e(this,Y.isAtLiveHead);rNB(this,this.api.getLoopRange())}; g.M.onLoopRangeChange=function(Y){var u=this.LT!==Y;this.LT=Y;u&&(this.ye(),MTB(this))}; g.M.OsJ=function(){this.api.setLoopRange(null)}; g.M.mFg=function(){this.X=!this.X;this.ye()}; g.M.onVideoDataChange=function(Y,u,n){this.updateVideoData((this.api.Y().V("enable_topsoil_wta_for_halftime")||this.api.Y().V("enable_topsoil_wta_for_halftime_live_infra"))&&n===2?this.api.getVideoData(1):u);this.ye();MTB(this)}; g.M.updateVideoData=function(Y){this.e$=Y.isLivePlayback&&!Y.Uc;this.j=jc(Y);this.isPremiere=Y.isPremiere;g.PP(this.element,"ytp-live",Ds(this));this.api.V("delhi_modern_web_player")&&this.Xk("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.M.onClick=function(Y){Y.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.M.nG=function(){this.K&&this.K();g.H.prototype.nG.call(this)};g.d(d$W,g.H);g.M=d$W.prototype;g.M.bS=function(){var Y=this.api.b9();this.X!==Y&&(this.X=Y,sqM(this,this.api.getVolume(),this.api.isMuted()))}; g.M.NP=function(Y){this.v$(Y.width>=350)}; g.M.JA=function(Y){if(!Y.defaultPrevented){var u=Y.keyCode,n=null;u===37?n=this.volume-5:u===39?n=this.volume+5:u===36?n=0:u===35&&(n=100);n!==null&&(n=g.gS(n,0,100),n===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(n)),Y.preventDefault())}}; g.M.gq=function(Y){var u=Y.deltaX||-Y.deltaY;Y.deltaMode?this.api.setVolume(this.volume+(u<0?-10:10)):this.api.setVolume(this.volume+g.gS(u/10,-10,10));Y.preventDefault()}; g.M.Ikw=function(){lC(this,this.K,!0,this.j,this.api.r7());this.N=this.volume;this.api.isMuted()&&this.api.unMute()}; g.M.Mb=function(Y){var u=this.X?78:52,n=this.X?18:12;Y-=g.YS(this.Z).x;this.api.setVolume(g.gS((Y-n/2)/(u-n),0,1)*100)}; g.M.xNG=function(){lC(this,this.K,!1,this.j,this.api.r7());this.volume===0&&(this.api.mute(),this.api.setVolume(this.N))}; g.M.onVolumeChange=function(Y){sqM(this,Y.volume,Y.muted)}; g.M.wU=function(){lC(this,this.K,this.isDragging,this.j,this.api.r7())}; g.M.nG=function(){g.H.prototype.nG.call(this);g.mU(this.S,"ytp-volume-slider-active")};g.d(hh,g.H); hh.prototype.onVideoDataChange=function(){var Y=this.api.Y();this.pT();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).sD;this.v$(this.visible);this.api.logVisibility(this.element,this.visible&&this.J);if(this.visible){var u=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",u)}Y.X&&(this.K&&(this.qR(this.K),this.K=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.UN(this.element,"no-link")); u=this.api.Y();Y=this.api.getVideoData();var n="";u.X||(u=g.sg(u),u.indexOf("www.")===0&&(u=u.substring(4)),n=g.KQ(Y)?"Mirar en YouTube Music":u==="youtube.com"?"Mirar en YouTube":g.UR("Mirar en $WEBSITE",{WEBSITE:u}));this.api.V("player_tooltip_data_title_killswitch")?this.updateValue("title",n):this.updateValue("tooltip-title",n)}; hh.prototype.onClick=function(Y){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var u=this.api.Y(),n=this.api.getVideoUrl(!g.d7(Y),!1,!0,!0);if(g.nV(u)){var U={};g.nV(u)&&g.Rf(this.api,"addEmbedsConversionTrackingParams",[U]);n=g.Mk(n,U)}g.oP(n,this.api,Y);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; hh.prototype.pT=function(){var Y={D:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{D:"path",au:!0,C:"ytp-svg-fill",T:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, u=28666,n=this.api.getVideoData();this.api.isEmbedsShortsMode()?Y={D:"svg",T:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},U:[{D:"path",T:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.KQ(n)&&(Y={D:"svg",T:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},U:[{D:"path",T:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{D:"path",T:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{D:"path",T:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{D:"path",T:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{D:"path",T:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{D:"path",T:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{D:"path",T:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{D:"path",T:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{D:"path",T:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{D:"path",T:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{D:"path",T:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{D:"path",T:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},u=216163);g.KQ(n)?g.UN(this.element,"ytp-youtube-music-button"):g.mU(this.element,"ytp-youtube-music-button");Y.T=Object.assign({},Y.T,{"aria-hidden":"true"});this.updateValue("logoSvg",Y);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,u,!0)}; hh.prototype.ZF=function(Y){g.H.prototype.ZF.call(this,Y);this.api.logVisibility(this.element,this.visible&&Y)};g.d(jqc,g.j3);g.M=jqc.prototype;g.M.onProgress=function(){if(this.L.V("web_player_max_seekable_on_ended")||!g.V(this.L.getPlayerStateObject(),2))this.progressBar.ye(),this.MF.ye()}; g.M.My=function(){this.MP();if(this.jM.j)this.onProgress();else this.progressBar.Nr()}; g.M.Vk=function(){this.onProgress();this.N.start()}; g.M.MP=function(){var Y;if(Y=!this.L.Y().j){Y=this.progressBar;var u=2*g.jG()*Y.W,n=Y.X;Y=(n.K-n.j)*1E3/Y.api.getPlaybackRate()/u<300}Y=Y&&this.L.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;u=!Y;this.jM.j||(Y=u=!1);u?this.jG||(this.jG=this.B(this.L,"progresssync",this.onProgress)):this.jG&&(this.qR(this.jG),this.jG=null);Y?this.N.isActive()||this.N.start():this.N.stop()}; g.M.pT=function(){var Y=this.L.b9(),u=this.L.tJ().getPlayerSize(),n=this.L.tJ().wm,U=p$M(this),k=Ly7(this),m=Math.max(u.width-U*2,100);if(this.Ru!==u.width||this.Iu!==Y||this.L.V("web_player_rtr_ctrls")&&this.aE!==n)this.Ru=u.width,this.Iu=Y,this.aE=n,this.j.element.style.width=k+"px",this.j.element.style.left=U+"px",g.wMW(this.progressBar,U,k,Y),this.L.kR().xN=k;n=this.G;m=Math.min(570*(Y?1.5:1),m);Y=Math.min(413*(Y?1.5:1),Math.round((u.height-tTu(this))*.82));n.maxWidth=m;n.maxHeight=Y;n.JO();this.MP(); this.nT&&A4B(this.Uc,u.height)}; g.M.onVideoDataChange=function(){var Y=this.L.getVideoData();this.zZ.style.background=Y.sD?Y.Hg:"";this.oV&&oD0(this.oV,Y.showSeekingControls);this.KG&&oD0(this.KG,Y.showSeekingControls)}; g.M.q1=function(){return this.j.element};g.d(B4M,cR);g.M=B4M.prototype;g.M.gh=function(Y){Y.target!==this.dismissButton.element&&(this.onClickCommand&&this.L.Yw("innertubeCommand",this.onClickCommand),this.vK())}; g.M.vK=function(){this.enabled=!1;this.N.hide()}; g.M.onVideoDataChange=function(Y,u){Y==="dataloaded"&&oMd(this);Y=[];var n,U,k,m;if(u=(m=g.z((n=u.getWatchNextResponse())==null?void 0:(U=n.playerOverlays)==null?void 0:(k=U.playerOverlayRenderer)==null?void 0:k.suggestedActionsRenderer,dK$))==null?void 0:m.suggestedActions)for(n=g.A(u),U=n.next();!U.done;U=n.next())(U=g.z(U.value,GoX))&&g.z(U.trigger,suL)&&Y.push(U);if(Y.length!==0){n=[];Y=g.A(Y);for(U=Y.next();!U.done;U=Y.next())if(U=U.value,k=g.z(U.trigger,suL))m=(m=U.title)?g.Cw(m):"View Chapters", u=k.timeRangeStartMillis,k=k.timeRangeEndMillis,u!=null&&k!=null&&U.tapCommand&&(n.push(new g.EE(u,k,{priority:9,namespace:"suggested_action_button_visible",id:m})),this.suggestedActions[m]=U.tapCommand);this.L.l6(n)}}; g.M.OO=function(){return this.enabled}; g.M.ke=function(){this.enabled?this.JJ.start():BR(this);this.Zy()}; g.M.nG=function(){oMd(this);cR.prototype.nG.call(this)};var cb={},ex=(cb.CHANNEL_NAME="ytp-title-channel-name",cb.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",cb.LINK="ytp-title-link",cb.SESSIONLINK="yt-uix-sessionlink",cb.SUBTEXT="ytp-title-subtext",cb.TEXT="ytp-title-text",cb.TITLE="ytp-title",cb);g.d(bC,g.H);bC.prototype.onClick=function(Y){this.api.logClick(this.element);var u=this.api.Y(),n=this.api.getVideoUrl(!g.d7(Y),!1,!0);g.nV(u)&&(u={},g.Rf(this.api,"addEmbedsConversionTrackingParams",[u]),n=g.Mk(n,u));g.oP(n,this.api,Y)}; bC.prototype.QF=function(){var Y=this.api.getVideoData(),u=this.api.Y();this.updateValue("title",Y.title);var n={D:"a",C:ex.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},RV:"{{channelName}}"};this.api.Y().X&&(n={D:"span",C:ex.CHANNEL_NAME,RV:"{{channelName}}",T:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",n);cN0(this);this.api.getPresentingPlayerType()===2&&(n=this.api.getVideoData(),n.videoId&&n.isListed&&n.author&&n.Iu&&n.profilePicture?(this.updateValue("channelLink", n.Iu),this.updateValue("channelName",n.author),this.updateValue("channelTitleFocusable","0")):cN0(this));n=u.externalFullscreen||!this.api.isFullscreen()&&u.Bv;g.PP(this.link,ex.FULLERSCREEN_LINK,n);u.oV||!Y.videoId||n||Y.sD||u.X?this.K&&(this.updateValue("url",null),this.qR(this.K),this.K=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.K||(this.K=this.B(this.link,"click",this.onClick)));u.X&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.nV(u)?Y.expandedTitle: Y.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.d(g.I4,g.H);g.M=g.I4.prototype;g.M.setEnabled=function(Y){if(this.type!=null)if(Y)switch(this.type){case 3:case 2:z7(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.S=Y}; g.M.fz=function(Y,u,n,U,k,m,X,S){if(!this.DW||this.env.S){this.type===3&&this.Nr();this.type!==1&&(g.u9(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.S&&this.fade.show(),this.j&&this.j.dispose(),(this.j=this.api.a_())&&this.j.subscribe("l",this.yV,this));if(S){var C=g.Ui(this.bg).height||141;this.rg.style.bottom=C+2+"px"}else this.rg.style.display="none";this.env.V("delhi_modern_web_player")?(this.update({pillTimeStamp:n,pillTitle:m!=null?m:"",eduText:S!=null?S:""}),g.UN(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:n,title:m!=null?m:"",eduText:S!=null?S:""}),g.PP(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!m));this.api.isInline()&&g.UN(this.bottomText,"ytp-modern-tooltip-text");g.PP(this.element,"ytp-text-detail",!!U);n=-1;this.j&&(n=fk(this.j,243*this.scale),this.env.V("web_l3_storyboard")&&this.j.levels.length===4&&(n=this.j.levels.length-1),n=urA(this.j,n,u));x$c(this,n);if(X)switch(u=g.Ui(this.element).width,X){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=u+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=u/2+"px",this.title.style.textAlign="center"}D$G(this,!!U,Y,k)}}; g.M.jK=function(){this.type===1&&this.Nr()}; g.M.mf=function(Y,u){if(this.type)if(this.type===3)this.Nr();else return;vMW(this,Y,3,u)}; g.M.aZ=function(){this.K&&!this.Z&&(this.env.V("player_tooltip_data_title_killswitch")?this.K.hasAttribute("title")&&(this.X=this.K.getAttribute("title")||"",this.K.removeAttribute("title"),this.S&&z7(this)):this.K.hasAttribute("data-tooltip-title")&&(this.X=this.K.getAttribute("data-tooltip-title")||"",this.K.removeAttribute("data-tooltip-title"),this.S&&z7(this)))}; g.M.yV=function(Y,u){Y<=this.G&&this.G<=u&&(Y=this.G,this.G=NaN,x$c(this,Y))}; g.M.Bi=function(){$M0(this.j,this.G,243*this.scale)}; g.M.Nr=function(){switch(this.type){case 2:var Y=this.K;Y.removeEventListener("mouseout",this.N);Y.addEventListener("mouseover",this.W);Y.removeEventListener("blur",this.N);Y.addEventListener("focus",this.W);ljd(this);break;case 3:ljd(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.yV,this),this.j=null),this.api.removeEventListener("videoready",this.KG),this.oV.stop()}this.type=null;this.S&&this.fade.hide()}; g.M.tU=function(){if(this.K)for(var Y=0;Y=0;u--)if(this.zP[u]===Y){this.zP.splice(u,1);break}HH(this.jM,64,this.zP.length>0)}; g.M.u_=function(){this.api.tD()&&this.api.qz();return!!this.L3||zlG(this)||g.nW.prototype.u_.call(this)}; g.M.kq=function(){var Y=!this.u_(),u=Y&&this.api.tD()&&!g.V(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().sD&&!this.api.Y().X&&!this.api.isEmbedsShortsMode(),n=this.y$&&g.qD(this.api)&&g.V(this.api.getPlayerStateObject(),128);Y||n?(this.qv.show(),this.uq.show()):(this.qv.hide(),this.uq.hide(),this.api.tU(this.Gf.element));u?this.Qj.Su():this.Qj.H$();this.Ck&&KyG(this.Ck,this.gRZ||!Y);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&gMB(this);g.nW.prototype.kq.call(this)}; g.M.Oj=function(Y,u,n,U,k){Y.style.left="";Y.style.top="";Y.style.bottom="";var m=g.Ui(Y),X=U||this.Ck&&g.jw(this.Ck.q1(),u),S=U=null;n!=null&&X||(U=g.Ui(u),S=g.uF(u,this.api.getRootNode()),n==null&&(n=S.x+U.width/2));n-=m.width/2;X?(u=this.Ck,U=p$M(u),S=Ly7(u),X=this.api.tJ().getPlayerSize().height,n=g.gS(n,U,U+S-m.width),m=X-tTu(u)-m.height):g.jw(this.Gf.element,u)?(u=this.api.tJ().getPlayerSize().width,n=g.gS(n,12,u-m.width-12),m=this.b9()?this.Rv:this.fK,this.api.Y().playerStyle==="gvn"&&(m+= 20),this.y$&&(m-=this.b9()?26:18)):(u=this.api.tJ().getPlayerSize(),n=g.gS(n,12,u.width-m.width-12),m=S.y>(u.height-U.height)/2?S.y-m.height-12:S.y+U.height+12);Y.style.top=m+(k||0)+"px";Y.style.left=n+"px"}; g.M.My=function(Y){Y&&(this.api.tU(this.Gf.element),this.Ck&&this.api.tU(this.Ck.q1()));this.Mq&&(g.PP(this.contextMenu.element,"ytp-autohide",Y),g.PP(this.contextMenu.element,"ytp-autohide-active",!0));g.nW.prototype.My.call(this,Y)}; g.M.JH=function(){g.nW.prototype.JH.call(this);this.Mq&&(g.PP(this.contextMenu.element,"ytp-autohide-active",!1),this.Mq&&(this.contextMenu.hide(),this.hV&&this.hV.hide()))}; g.M.G_=function(Y,u){var n=this.api.tJ().getPlayerSize();n=new g.gh(0,0,n.width,n.height);if(Y||this.jM.j&&!this.u_()){if(this.api.Y().zG||u)Y=this.b9()?this.Rv:this.fK,n.top+=Y,n.height-=Y;this.Ck&&(n.height-=tTu(this.Ck))}return n}; g.M.bS=function(Y){var u=this.api.getRootNode();Y?u.parentElement?(u.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.Y().externalFullscreen||(u.parentElement.insertBefore(this.vp.element,u),u.parentElement.insertBefore(this.YW.element,u.nextSibling))):g.tl(Error("Player not in DOM.")):(u.setAttribute("aria-label","Reproductor de video de YouTube"),this.vp.detach(),this.YW.detach());this.pT();this.S3()}; g.M.b9=function(){if(this.api.V("web_player_use_screen_width_for_big_mode")){var Y;return this.api.tJ().getPlayerSize().width>=((Y=g.YF(this.api.Y().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?Y:2E3)}Y=this.api.Y();return this.api.isFullscreen()&&!Y.S||!1}; g.M.showControls=function(Y){this.yR=!Y;this.kq()}; g.M.pT=function(){var Y=this.b9();this.tooltip.scale=Y?1.5:1;this.contextMenu&&g.PP(this.contextMenu.element,"ytp-big-mode",Y);this.kq();this.api.V("web_player_hide_overflow_button_if_empty_menu")||gMB(this);this.S3();var u=this.api.isEmbedsShortsMode();u&&Y?(Y=(this.api.tJ().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.yV(this.Gf.element,"padding-left",Y+"px"),g.yV(this.Gf.element,"padding-right",Y+"px")):u&&(g.yV(this.Gf.element,"padding-left",""),g.yV(this.Gf.element,"padding-right", ""));g.nW.prototype.pT.call(this)}; g.M.AE=function(){if(zlG(this)&&!g.qD(this.api))return!1;var Y=this.api.getVideoData();return!g.nV(this.api.Y())||this.api.getPresentingPlayerType()===2||!this.yu||((Y=this.yu||Y.yu)?(Y=Y.embedPreview)?(Y=Y.thumbnailPreviewRenderer,Y=Y.videoDetails&&g.z(Y.videoDetails,hsu)||null):Y=null:Y=null,Y&&Y.collapsedRenderer&&Y.expandedRenderer)?g.nW.prototype.AE.call(this):!1}; g.M.S3=function(){g.nW.prototype.S3.call(this);this.api.logVisibility(this.title.element,!!this.Hs);this.LC&&this.LC.ZF(!!this.Hs);this.channelAvatar.ZF(!!this.Hs);this.overflowButton&&this.overflowButton.ZF(this.WW()&&!!this.Hs);this.shareButton&&this.shareButton.ZF(!this.WW()&&!!this.Hs);this.Kd&&this.Kd.ZF(!this.WW()&&!!this.Hs);this.searchButton&&this.searchButton.ZF(!this.WW()&&!!this.Hs);this.copyLinkButton&&this.copyLinkButton.ZF(!this.WW()&&!!this.Hs);if(!this.Hs){this.api.tU(this.Gf.element); for(var Y=0;Y5&&u.fG("glrs",{cmt:n});u.seekTo(0,{seekSource:58});u.fG("glrre",{cmt:n})}}; HJ.prototype.nG=function(){this.K=null;g.e.prototype.nG.call(this)};g.d(g.yb,to);g.M=g.yb.prototype;g.M.isView=function(){return!0}; g.M.s2=function(){var Y=this.mediaElement.getCurrentTime();if(Y1;XT(Y.v4(),U-.01)&&!k&&(Ob(this,4),n.isActive=!1,n.VU=n.VU||n.isActive,(this.J===1?this.K:this.j).fG("sbh",{}),u.isActive=!0,u.VU=u.VU||u.isActive,this.J!==0&&(this.K.getVideoData().oP=!0));Y=this.G.j;if(this.G.K.isActive&&Y.isActive&&(Ob(this,5),this.J!==0)){Y=this.j.g_();n=this.K.g_(); this.K.fG("sbs",{citag:n==null?void 0:n.itag,nitag:Y==null?void 0:Y.itag});this.j.fG("gitags",{pitag:n==null?void 0:n.itag,citag:Y==null?void 0:Y.itag});var m;(m=this.j)==null||m.Lg()}}}; g.M.Oa=function(){this.LQ()&&this.YQ("player-reload-after-handoff")}; g.M.YQ=function(Y,u){u=u===void 0?{}:u;if(!this.gg()&&this.status.status!==6){var n=this.status.status>=4&&Y!=="player-reload-after-handoff";this.status={status:Infinity,error:Y};if(this.K&&this.j){var U=this.j.getVideoData().clientPlaybackNonce;this.K.Ra(new g.iO("dai.transitionfailure",Object.assign(u,{cpn:U,transitionTimeMs:this.QO,msg:Y})));this.K.bR(n)}this.Fy.reject(Y);this.dispose()}}; g.M.LQ=function(){return this.status.status>=4&&this.status.status<6}; g.M.nG=function(){uWG(this);this.K.unsubscribe("newelementrequired",this.Oa,this);if(this.X){var Y=this.X.j;this.X.K.aH.unsubscribe("updateend",this.DU,this);Y.aH.unsubscribe("updateend",this.DU,this)}g.e.prototype.nG.call(this)}; g.M.Iy=function(Y){g.C1(Y,128)&&this.YQ("player-error-event")};g.d(F1,g.e);F1.prototype.clearQueue=function(Y,u){Y=Y===void 0?!1:Y;u=u===void 0?!1:u;this.G&&this.G.reject("Queue cleared");this.app.Y().V("html5_gapless_fallback_on_qoe_restart_v2")||u&&this.j&&this.j.bR(!1);Jh(this,Y)}; F1.prototype.IM=function(){return!this.K}; F1.prototype.LQ=function(){var Y;return((Y=this.X)==null?void 0:Y.LQ())||!1}; F1.prototype.nG=function(){Jh(this);g.e.prototype.nG.call(this)};g.d(CPu,g.ud);g.M=CPu.prototype;g.M.getVisibilityState=function(Y,u,n,U,k,m,X,S){return Y?4:CtA()?3:u?2:n?1:U?5:k?7:m?8:X?9:S?10:0}; g.M.Sl=function(Y){this.fullscreen!==Y&&(this.fullscreen=Y,this.ke())}; g.M.setMinimized=function(Y){this.j!==Y&&(this.j=Y,this.ke())}; g.M.setInline=function(Y){this.inline!==Y&&(this.inline=Y,this.ke())}; g.M.D1=function(Y){this.pictureInPicture!==Y&&(this.pictureInPicture=Y,this.ke())}; g.M.setSqueezeback=function(Y){this.X!==Y&&(this.X=Y,this.ke())}; g.M.G1=function(Y){this.G!==Y&&(this.G=Y,this.ke())}; g.M.R_=function(){return this.K}; g.M.zK=function(){return this.fullscreen!==0}; g.M.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.M.K4=function(){return this.fullscreen}; g.M.isMinimized=function(){return this.j}; g.M.isInline=function(){return this.inline}; g.M.isBackground=function(){return CtA()}; g.M.Z4=function(){return this.pictureInPicture}; g.M.t3=function(){return!1}; g.M.fR=function(){return this.X}; g.M.OP=function(){return this.G}; g.M.ke=function(){this.publish("visibilitychange");var Y=this.getVisibilityState(this.R_(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Z4(),this.t3(),this.fR(),this.OP());Y!==this.W&&this.publish("visibilitystatechange");this.W=Y}; g.M.nG=function(){NwA(this.J);g.ud.prototype.nG.call(this)};g.d(g.qa,g.e);g.M=g.qa.prototype;g.M.nG=function(){this.videoData=this.playerState=null;g.e.prototype.nG.call(this)}; g.M.addCueRange=function(){}; g.M.lf=function(){}; g.M.ol=function(){}; g.M.Zn=function(){return!1}; g.M.fI=function(){return!1}; g.M.Yo=function(){}; g.M.nW=function(){}; g.M.mJ=function(){return[]}; g.M.G$=function(){}; g.M.getAudioTrack=function(){return this.getVideoData().d7}; g.M.uI=function(){return null}; g.M.getAvailableAudioTracks=function(){return[]}; g.M.jf=function(){return[]}; g.M.xx=function(){return[]}; g.M.Gg=function(){return""}; g.M.Vl=function(){return[]}; g.M.yq=function(){}; g.M.GE=function(){return 0}; g.M.getCurrentTime=function(){return 0}; g.M.LA=function(){}; g.M.g_=function(){}; g.M.Tw=function(){return{}}; g.M.getDuration=function(){return 0}; g.M.qY=function(){return 0}; g.M.Ia=function(){return 0}; g.M.Qz=function(){return!1}; g.M.bl=function(){return 0}; g.M.h4=function(){return 0}; g.M.ub=Ye(7);g.M.jl=function(){return 0}; g.M.Db=function(){return!1}; g.M.u4=function(){return 0}; g.M.wD=function(){return null}; g.M.KY=function(){return null}; g.M.zc=function(){return 0}; g.M.fQ=function(){return 0}; g.M.mT=function(){return g.l(function(Y){g.KY(Y)})}; g.M.ST=Ye(15);g.M.getPlaybackQuality=function(){return"auto"}; g.M.getPlaybackRate=function(){return 1}; g.M.getPlayerState=function(){this.playerState||(this.playerState=new g.RZ);return this.playerState}; g.M.getPlayerType=function(){return 0}; g.M.getPlaylistSequenceForTime=function(){return null}; g.M.Na=function(){return function(){}}; g.M.y_=function(){return""}; g.M.getPreferredQuality=function(){return"unknown"}; g.M.o8=function(){}; g.M.getProximaLatencyPreference=function(){return 0}; g.M.Up=function(){return MW}; g.M.a_=function(){return null}; g.M.getStoryboardFormat=function(){return null}; g.M.getStreamTimeOffset=function(){return 0}; g.M.l2=function(){return 0}; g.M.iN=function(){return 0}; g.M.CA=function(){return{VE:[],eC:[],currentTime:0,VT:"",droppedVideoFrames:0,isGapless:!1,IM:!0,R4:0,uX:0,r6:0,yy:0,LH:0,WR:[],U5:[],mj:null,playerState:this.getPlayerState(),R$:null,PT:"",totalVideoFrames:0}}; g.M.getUserAudio51Preference=function(){return 0}; g.M.getUserPlaybackQualityPreference=function(){return""}; g.M.getVideoData=function(){this.videoData||(this.videoData=new g.sZ(this.xw),g.b(this,this.videoData));return this.videoData}; g.M.TL=function(){return null}; g.M.X4=function(){return null}; g.M.l8=function(){}; g.M.getVideoLoadedFraction=function(){return 0}; g.M.GP=function(){}; g.M.handleError=function(){}; g.M.bR=function(){}; g.M.XO=function(){}; g.M.Qv=Ye(40);g.M.r3=function(){return!1}; g.M.hasSupportedAudio51Tracks=function(){return!1}; g.M.Ws=function(){return!1}; g.M.R_=function(){return!1}; g.M.isAtLiveHead=function(){return!1}; g.M.Fg=function(){return!0}; g.M.isGapless=function(){return!1}; g.M.isHdr=function(){return!1}; g.M.WK=function(){return!1}; g.M.dK=function(){return!1}; g.M.xC=function(){return!1}; g.M.isProximaLatencyEligible=function(){return!1}; g.M.IM=function(){return!0}; g.M.KR=function(){return!1}; g.M.Cn=function(){return!1}; g.M.td=function(){}; g.M.zH=function(){}; g.M.Lg=function(){}; g.M.TP=function(){}; g.M.Hw=function(){}; g.M.JM=function(){}; g.M.VX=function(){}; g.M.W2=Ye(50);g.M.zf=Ye(21);g.M.cF=function(){}; g.M.pauseVideo=function(){}; g.M.prefetchKeyPlay=function(){}; g.M.playVideo=function(){return g.l(function(Y){return Y.return()})}; g.M.v3=function(){}; g.M.k$=Ye(27);g.M.BC=Ye(33);g.M.XF=function(){}; g.M.fG=function(){}; g.M.J4=function(){}; g.M.f6=function(){}; g.M.Ro=function(){}; g.M.Ra=function(){}; g.M.Fi=function(){}; g.M.Hq=function(){}; g.M.rB=function(){}; g.M.W1=function(){}; g.M.Wq=function(){}; g.M.Sc=function(){}; g.M.removeCueRange=function(){}; g.M.CC=function(){}; g.M.JS=function(){return[]}; g.M.Xy=function(){}; g.M.bE=function(){}; g.M.mx=function(){}; g.M.Q7=function(){}; g.M.kA=function(){}; g.M.mO=function(){}; g.M.seekTo=function(){}; g.M.sendAbandonmentPing=function(){}; g.M.sendVideoStatsEngageEvent=function(){}; g.M.q5=function(){}; g.M.setLoop=function(){}; g.M.To=function(){}; g.M.setMediaElement=function(){}; g.M.R6=function(){}; g.M.setPlaybackRate=function(){}; g.M.Re=function(){}; g.M.yc=function(){}; g.M.rL=function(){}; g.M.setProximaLatencyPreference=function(){}; g.M.b_=function(){}; g.M.j7=function(){}; g.M.Rn=function(){}; g.M.q7=function(){}; g.M.tf=function(){}; g.M.setUserAudio51Preference=function(){}; g.M.zd=function(){}; g.M.mY=function(){return!1}; g.M.TD=function(){}; g.M.CY=function(){return!1}; g.M.Xo=function(){}; g.M.DZ=function(){}; g.M.yn=function(){}; g.M.stopVideo=function(){}; g.M.subscribe=function(){return NaN}; g.M.BD=function(){}; g.M.togglePictureInPicture=function(){}; g.M.Vc=function(){return 0}; g.M.unsubscribe=function(){return!1}; g.M.lr=function(){}; g.M.Uj=function(){return!1}; g.M.V3=function(){}; g.M.gC=function(){}; g.M.JI=function(){};g.d(YG,g.e);g.M=YG.prototype;g.M.get=function(Y){a4(this);var u=this.data.find(function(n){return n.key===Y}); return u?u.value:null}; g.M.set=function(Y,u,n){this.remove(Y,!0);a4(this);Y={key:Y,value:u,expire:Infinity};n&&isFinite(n)&&(n*=1E3,Y.expire=(0,g.j2)()+n);for(this.data.push(Y);this.data.length>this.X;)(n=this.data.shift())&&uH(this,n,!0);$f(this)}; g.M.remove=function(Y,u){u=u===void 0?!1:u;var n=this.data.find(function(U){return U.key===Y}); n&&(uH(this,n,u),g.cu(this.data,function(U){return U.key===Y}),$f(this))}; g.M.removeAll=function(Y){if(Y=Y===void 0?!1:Y)for(var u=g.A(this.data),n=u.next();!n.done;n=u.next())uH(this,n.value,Y);this.data=[];$f(this)}; g.M.nG=function(){var Y=this;g.e.prototype.nG.call(this);this.data.forEach(function(u){uH(Y,u,!0)}); this.data=[]};g.d(g.nd,g.e);g.M=g.nd.prototype;g.M.nG=function(){for(var Y=g.A(Object.values(this.X)),u=Y.next();!u.done;u=Y.next())u.value.dispose();f6d(this);this.K.dispose();g.e.prototype.nG.call(this)}; g.M.Lp=function(Y){return Y?Y===1?this.Z:this.j.getVideoData().enableServerStitchedDai&&Y===2?this.j.getVideoData().xo?this.X[2]||this.j:this.j:this.X[Y]||null:this.j}; g.M.AR=function(Y){var u=Y.cpn;Y=Y.playerType;if(u)a:{Y=g.A(Object.values(this.X));for(var n=Y.next();!n.done;n=Y.next())if(n=n.value,n.Gg()===u){u=n;break a}u=this.W[u]||null}else u=Y?this.Lp(Y):this.j;return u}; g.M.fT=function(){return this.Z}; g.M.pB=function(Y){this.Z=Y}; g.M.wg=function(){return this.j}; g.M.fL=function(Y){this.j=Y;UY(this)}; g.M.wB=Ye(46);g.M.O8=Ye(48);g.d(dpA,g.PO);g.M=dpA.prototype;g.M.WP=function(){}; g.M.Gg=function(){return this.videoData.clientPlaybackNonce}; g.M.getVideoData=function(){if(g.PO.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){var Y=gxY(this.FD,g.PO.prototype.getCurrentTime.call(this))||g.PO.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==Y.clientPlaybackNonce&&GXM(this.j,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:Y.clientPlaybackNonce});return this.videoData}return gxY(this.FD,g.PO.prototype.getCurrentTime.call(this))||g.PO.prototype.getVideoData.call(this)}; g.M.getCurrentTime=function(Y){var u=g.PO.prototype.getCurrentTime.call(this);if(g.PO.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){this.K===0?Y||(u-=this.startTimeSecs):Y&&(u=this.K);var n=Y?this.FD.N2||g.PO.prototype.getCurrentTime.call(this):e4u(this.FD,g.PO.prototype.getCurrentTime.call(this));u!==n&&GXM(this.j,"time"+(Y!=null?Y:!1),{time:u,ref:n,ct:Y!=null?Y:!1})}else u=Y?this.FD.N2||u:e4u(this.FD,u);return u}; g.M.getDuration=function(){if(g.PO.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")){var Y=I6c(this.FD,g.PO.prototype.getCurrentTime.call(this));this.duration!==Y&&GXM(this.j,"duration",{dur:this.duration,ref:Y});return this.duration}return I6c(this.FD,g.PO.prototype.getCurrentTime.call(this))}; g.M.Jp=function(Y){this.duration=Y};g.ml.prototype.Sq=function(Y,u){if(u===1)return this.K.get(Y);if(u===2)return this.X.get(Y);if(u===3)return this.j.get(Y)}; g.ml.prototype.ir=Ye(58);g.ml.prototype.l0=function(Y,u,n,U){n={vt:U,SC:n};u?this.X.set(Y,n):this.K.set(Y,n)}; g.ml.prototype.clearAll=function(){this.K.clear();this.X.clear();this.j.clear()}; jy0.prototype.clear=function(){this.K=[];this.X.clear();this.G.clear();this.j.clear()}; jy0.prototype.AR=function(Y){var u=Y.cpn;Y=Y.Gc;if(u&&(u=this.X.get(u))||Y&&(u=(this.J?this.X:this.G).get(Y)))return u}; g.d(g.XB,g.e);g.M=g.XB.prototype;g.M.onCueRangeEnter=function(Y){var u=Y.getId();this.bN({oncueEnter:1,cpn:u,start:Y.start,end:Y.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.GE()||0).toFixed(3)});var n=this.K.AR({cpn:u});this.bN({enterAdCueRange:1});var U=this.EX||this.IX().cpn,k;U=(k=this.K.AR({cpn:U}))!=null?k:this.IX();n&&(k=this.playback.getCurrentTime(),n.startTimeSecs=Y.start/1E3,n={m3:U,T9:n,YX:k},CES(this,u,Y.start/1E3,k),S1S(this,n))}; g.M.uA=function(Y,u){if(Y===this.playback.Gg())kG(this.app.Dy(),this.playback,!1);else{var n=this.rg.get(Y);n?(n.K=0,n.startTimeSecs=u,kG(this.app.Dy(),n,!0)):this.bN({nop_s:Y})}}; g.M.onCueRangeExit=function(Y){for(var u=this.playback.getCurrentTime()*1E3,n=Y.getId(),U=g.A(this.j.values()),k=U.next();!k.done;k=U.next())if(k=k.value,k.getId()!==n&&u>=k.start&&u<=k.end)return;if(n=this.K.AR({cpn:n}))u=this.playback.getCurrentTime(),U=this.IX(),U.startTimeSecs=Y.end/1E3,n={m3:n,T9:U,YX:u},CES(this,this.playback.Gg(),Y.end/1E3,u),S1S(this,n)}; g.M.IX=function(){return{cpn:this.playback.Gg(),durationMs:0,f0:0,playerType:1,Ks:0,videoData:this.playback.getVideoData(),errorCount:0,Tg:""}}; g.M.seekTo=function(Y,u,n,U){Y=Y===void 0?0:Y;u=u===void 0?{}:u;n=n===void 0?!1:n;U=U===void 0?null:U;NR(this,this.EX);if(this.playback.getVideoData().u6()&&Y<=this.N2)this.playback.pauseVideo(),this.N2=0,flA(this,Y);else if(this.KG=!0,n)oxd(this,Y,u);else{n=this.app.wg();var k=n===this.DW?this.dg:null;fd(this,!1);this.Iu=Y;this.Uc=u;U!=null&&this.Pz.start(U);n&&(this.dg=k||n.getPlayerState(),n.yn(u),this.DW=n)}}; g.M.nG=function(){fd(this,!1);yKt(this);V7W(this);g.e.prototype.nG.call(this)}; g.M.Vh=function(Y){this.Ru=Y;this.bN({swebm:Y})}; g.M.G3=function(Y,u,n){if(n&&u){var U=this.J.get(Y);if(U){U.locations||(U.locations=new Map);var k=Number(u.split(";")[0]);n=new g.Od(n);this.bN({hdlredir:1,itag:u,seg:Y,hostport:Jd(n)});U.locations.set(k,n)}}}; g.M.Kt=function(Y,u,n,U,k,m){var X=U===3,S=JKA(this,Y,u,U,n,m);if(!S){Q4(this,u,X);var C=g.OlS(this,u)?"undec":"ncp";this.bN({gvprp:C,mt:Y,seg:u,tt:U,itag:n,ce:m});return null}X||this.J.set(u,S);m=S.Tg;var f;U=((f=this.Sq(u-1,U,k))==null?void 0:f.vt)||"";U===""&&this.bN({eds:1});f=a6u(this,S.ssdaiAdsConfig);k=this.playback.getVideoData();var Q;X=((Q=k.j)==null?void 0:Q.containerType)||0;Q=k.w2[X];S=S.bf&&u>=S.bf?S.bf:void 0;Q={L_:m?n2u(this,m):[],adsConfig:f,vt:U,RB:S,lF:l5(Q.split(";")[0]),iF:Q.split(";")[1]|| ""};S={g9:Q};this.JJ&&(Y={gvprpro:"v",sq:u,mt:Y.toFixed(3),itag:n,acpns:((C=Q.L_)==null?void 0:C.join("_"))||"none",abid:m},this.bN(Y));return S}; g.M.EJ=function(Y){a:{if(!this.xl){var u=qB7(this,Y);if(!(this.playback.getVideoData().u6()&&(u==null?0:u.fH)))break a}u=void 0}var n=u;if(!n)return this.bN({gvprp:"ncp",mt:Y}),null;u=n.Tg;var U=a6u(this,n.ssdaiAdsConfig);n=n.bf&&n.T2&&Y>=n.T2?n.bf:void 0;var k=this.playback.getVideoData(),m,X=((m=k.j)==null?void 0:m.containerType)||0;m=k.w2[X];m={L_:u?n2u(this,u):[],adsConfig:U,RB:n,lF:l5(m.split(";")[0]),iF:m.split(";")[1]||""};var S;Y={gvprpro:"v",mt:Y.toFixed(3),acpns:((S=m.L_)==null?void 0:S.join("_"))|| "none",abid:u};this.bN(Y);return m}; g.M.Ou=function(Y,u,n,U,k,m){var X=Number(n.split(";")[0]),S=U===3;Y=JKA(this,Y,u,U,n,m);this.bN({gdu:1,seg:u,itag:X,pb:""+!!Y});if(!Y)return Q4(this,u,S),null;Y.locations||(Y.locations=new Map);if(!Y.locations.has(X)){var C,f;m=(C=Y.videoData.getPlayerResponse())==null?void 0:(f=C.streamingData)==null?void 0:f.adaptiveFormats;if(!m)return this.bN({gdu:"noadpfmts",seg:u,itag:X}),Q4(this,u,S),null;C=m.find(function(Z){return Z.itag===X}); if(!C||!C.url){var Q=Y.videoData.videoId;Y=[];var N=g.A(m);for(U=N.next();!U.done;U=N.next())Y.push(U.value.itag);this.bN({gdu:"nofmt",seg:u,vid:Q,itag:X,fullitag:n,itags:Y.join(",")});Q4(this,u,S);return null}Y.locations.set(X,new g.Od(C.url,!0))}m=Y.locations.get(X);if(!m)return this.bN({gdu:"nourl",seg:u,itag:X}),Q4(this,u,S),null;m=new bw(m);this.Ru&&(m.get("dvc")?this.bN({dvc:m.get("dvc")||""}):m.set("dvc","webm"));(U=(N=this.Sq(u-1,U,k))==null?void 0:N.vt)&&m.set("daistate",U);Y.bf&&u>=Y.bf&& m.set("skipsq",""+Y.bf);(N=this.playback.getVideoData().clientPlaybackNonce)&&m.set("cpn",N);N=[];Y.Tg&&(N=n2u(this,Y.Tg),N.length>0&&m.set("acpns",N.join(",")));S||this.J.set(u,Y);S=null;S=m.get("aids");U=m.Ff();(U==null?void 0:U.length)>2048&&this.bN({urltoolong:1,sq:u,itag:X,len:U.length});this.JJ&&(U&&(m=Y.cpn,k=Y.Tg,mCm(this,m,k),k&&!this.Qm.has(k)&&(m=UCY(this,m,k),C=kxd(this,k),this.bN({iofa:m}),this.bN({noawnzd:C-m}),this.bN({acpns:N.join("."),aids:(Q=S)==null?void 0:Q.replace(/,/g,".")}), this.Qm.add(k))),this.bN({gdu:"v",seg:u,itag:n,ast:Y.f0.toFixed(3),alen:Y.durationMs.toFixed(3),acpn:Y.cpn,avid:Y.videoData.videoId}));return U}; g.M.h9=function(Y,u,n){n=n===void 0?!1:n;var U=F6d(this,Y,u);if(U){var k=void 0,m=U.Tg;if(m){this.bN({skipadonsq:u,sts:n,abid:m,acpn:U.cpn,avid:U.videoData.videoId});n=this.K.j.get(m);if(!n)return;n=g.A(n);for(m=n.next();!m.done;m=n.next())m=m.value,m.bf=u,m.T2=Y,m.f0>U.f0&&(k=m)}NR(this,this.EX);this.G=U.cpn;$pB(this);Y=this.playback.getCurrentTime();Y1M(this,U,k,Y,Y,!1,!0);PEY(this)}}; g.M.Vr=function(){for(var Y=g.A(this.K.K),u=Y.next();!u.done;u=Y.next())u=u.value,u.bf=NaN,u.T2=NaN;$pB(this);this.bN({rsac:"resetSkipAd",sac:this.G});this.TZ.delete(this.G);this.G=""}; g.M.Sq=function(Y,u,n){return this.oV.Sq(Y,u,n)}; g.M.ir=Ye(57); g.M.l0=function(Y,u,n,U,k,m,X,S,C){U.length>0&&this.bN({onssinfo:1,sq:Y,start:u.toFixed(3),cpns:U.join(","),ds:k.join(","),isVideo:X?1:0});C&&this.oV.l0(Y,X,S,C);if(X){if(U.length&&k.length)for(this.TZ.has(U[0])&&this.bN({skipfail:1,sq:Y,acpn:U[0]}),Y=u+this.l2(),n=0;n0&&(this.z0=0,this.EX="",this.xw.V("html5_huli_ssdai_use_playback_state")&&this.uA(this.playback.Gg(),0),this.api.publish("serverstitchedvideochange"));this.playback.nW(n,U);return!0}; g.M.jP=function(){this.bN({rstdaist:1});this.oV.clearAll()}; g.M.m8=function(Y){var u;if(Y!==((u=this.W)==null?void 0:u.identifier))this.bN({ignorenoad:Y});else{this.Ub.add(Y);this.bN({noadrcv:Y});var n;((n=this.W)==null?void 0:n.identifier)===Y&&SR(this)}}; g.M.ix=function(Y){if(this.xl)return this.bN({dai_disabled:Y.event}),!1;if(this.playback.getVideoData().u6()&&(Y.event==="continue"||Y.event==="stop"))return!1;var u=bK(this.api.ym());if(u=u?u.ix(Y):!1)this.X={Md:Y.identifier,uh:Y.startSecs};else if(this.X&&this.X.Md===Y.identifier&&Y.startSecs>this.X.uh+1){this.bN({cueStChg:Y.identifier,oldSt:this.X.uh.toFixed(3),newSt:Y.startSecs.toFixed(3),abid:this.X.q4});if(this.X.q4){var n=Y.startSecs-this.X.uh,U=this.K.j.get(this.X.q4);if(U){U=g.A(U);for(var k= U.next();!k.done;k=U.next())k=k.value,k.f0>=0&&(k.f0+=n*1E3,this.xw.V("html5_ssdai_update_timeline_on_start_time_change")&&(k.Ks+=n*1E3),this.bN({newApEt:k.f0,newApPrt:k.Ks,acpn:k.cpn}))}}this.X.uh=Y.startSecs}this.xw.V("html5_ssdai_log_missing_ad_config_reason")&&(u?this.MF.add(Y.identifier):this.MF.has(Y.identifier)&&this.MF.delete(Y.identifier));return u}; g.M.wH=function(Y){var u="";Y?Y.event==="unknown"?u="unknown":this.MF.has(Y.identifier)?this.X&&this.X.Md===Y.identifier?this.X.Md===Y.identifier?u="pending":g3(this.zZ,function(n){return n.identifier===Y.identifier})||(u="noAdsAdded"):u="wrongAdBreakInfo":u="unscheduled":u="noCuepoint"; return u}; g.M.ES=function(Y){return this.xl?!1:!!qB7(this,Y)}; g.M.z2=function(Y){var u=this;if(this.xw.V("html5_lifa_ignore_multiple_skips")&&this.jG)return this.bN({ufs_ad:this.G,ufs_cur:this.EX,ufs_cont:this.IX().cpn}),!1;NR(this,this.EX);this.playback.pauseVideo();var n=this.playback.getCurrentTime(),U=this.K.AR({cpn:this.EX});if(!U)return this.bN({skipFail:n}),!1;this.G=this.EX;this.KG=!1;Xzd(this,U.Tg);QOB(this,U,this.IX(),Y);flA(this,n,{seekSource:89,L0:"lifa_skip"});this.jG||(this.jG=this.events.B(this.api,"progresssync",function(){L_(u.api.PC(),(0,g.j2)(), "ad_to_video");u.jG&&(u.events.qR(u.jG),u.jG=null)})); return!0}; g.M.bN=function(Y,u){((u===void 0?0:u)||this.JJ||this.playback.getVideoData().u6())&&this.playback.fG("sdai",Y)}; var Dp0=0;g.d(i8M,g.e);g.M=i8M.prototype;g.M.onCueRangeEnter=function(Y){if(this.K===this.app.wg()){var u=this.J.get(Y);u?dCt(this,u.target,u.QO,Y):this.Ra("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:Y.toString()})}else if(u=this.j.find(function(k){return k.m1.Mr===Y})){var n=u.m1,U=n.target; n=n.QO;U?dCt(this,U,n,Y):sOS(this,u.Ks,n,Y)}}; g.M.onQueuedVideoLoaded=function(){var Y=this.S;rk(this);if(Y){if(!Ta(this,Y)){var u=this.app.wg();this.Ra("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:u==null?void 0:u.getVideoData().clientPlaybackNonce,ccpn:""+Y.playerVars.cpn})}this.app.wg().addCueRange(Y.m1.Mr)}}; g.M.seekTo=function(Y,u,n,U){Y=Y===void 0?0:Y;u=u===void 0?{}:u;U=U===void 0?null:U;if(n===void 0?0:n)N_d(this,Y,u);else{n=this.app.wg()||null;var k=n===this.G?this.W:null;MR(this,!1);this.KG=Y;this.N=u;U!=null&&this.Z.start(U);n&&(this.W=k||n.getPlayerState(),n.yn(),this.G=n)}}; g.M.nF=function(Y){g.C1(Y,128)&&pzd(this)}; g.M.isManifestless=function(){return eX(this.K.getVideoData())}; g.M.nG=function(){MR(this,!1);tY7(this);g.e.prototype.nG.call(this)}; g.M.Ra=function(Y,u){this.K.Ra(new g.iO(Y,u))}; var Z8u=0;var B_t="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.d(sY,g.e);sY.prototype.kK=function(Y){if(Y)return this.j.get(Y)}; sY.prototype.nG=function(){this.K.removeAll();this.j.removeAll();g.e.prototype.nG.call(this)};g.NmR=h5(function(){var Y=window.AudioContext||window.webkitAudioContext;try{return new Y}catch(u){return u.name}});g.d(DCd,g.H);g.M=DCd.prototype;g.M.CL=function(){g.kv(this.element,g.It.apply(0,arguments))}; g.M.bE=function(){this.m9&&(this.m9.removeEventListener("focus",this.e1),g.A5(this.m9),this.m9=null)}; g.M.lO=function(){this.gg();var Y=this.app.Y();Y.Yl||this.CL("tag-pool-enabled");Y.W&&this.CL(g.pq.HOUSE_BRAND);Y.playerStyle==="gvn"&&(this.CL("ytp-gvn"),this.element.style.backgroundColor="transparent");Y.CT&&(this.rI=g.q3("yt-dom-content-change",this.resize,this));this.B(window,"orientationchange",this.resize,this);this.B(window,"resize",this.resize,this)}; g.M.zo=function(Y){g.Po(this.app.Y());this.DH=!Y;dk(this)}; g.M.resize=function(){if(this.m9){var Y=this.UE();if(!Y.isEmpty()){var u=g.YF(this.app.Y().experiments,"html5_android_mweb_resize_delay")>0,n=this.app.Bz.isFullscreen();if(u&&n&&bL()){var U;(U=this.rU)==null||U.start()}u=!g.Fy(Y,this.wd.getSize());n=WpB(this);u&&(this.wd.width=Y.width,this.wd.height=Y.height);Y=this.app.Y();(n||u||this.xL||Y.CT)&&this.app.Bz.publish("resize",this.getPlayerSize())}}}; g.M.qS=function(Y,u){this.updateVideoData(u)}; g.M.updateVideoData=function(Y){if(this.m9){var u=this.app.Y();zC&&(this.m9.setAttribute("x-webkit-airplay","allow"),Y.title?this.m9.setAttribute("title",Y.title):this.m9.removeAttribute("title"));this.m9.setAttribute("controlslist","nodownload");u.e3&&Y.videoId&&(this.m9.poster=Y.I_("default.jpg"))}u=g.F_(Y,"yt:bgcolor");this.E_.style.backgroundColor=u?u:"";this.GT=U2(g.F_(Y,"yt:stretch"));this.q3=U2(g.F_(Y,"yt:crop"),!0);g.PP(this.element,"ytp-dni",Y.sD);this.app.Y().V("delhi_modern_web_player")&& (Y=this.app.Bz.isHdr()?"none":"initial",this.element.style.setProperty("--yt-frosted-glass-backdrop-filter-override",Y));this.resize()}; g.M.setGlobalCrop=function(Y){this.vB=U2(Y,!0);this.resize()}; g.M.setCenterCrop=function(Y){this.Em=Y;this.resize()}; g.M.Sl=function(){}; g.M.getPlayerSize=function(){var Y=this.app.Y(),u=this.app.Bz.isFullscreen(),n=Y.externalFullscreen&&g.nV(Y);if(u&&bL()&&!n)return new g.OW(window.outerWidth,window.outerHeight);n=!isNaN(this.TX.width)&&!isNaN(this.TX.height);var U=this.app.Y().V("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.Y().V("web_watch_enable_fs_squeezeback_panels");if(u&&!n&&U)return new g.OW(this.element.clientWidth,this.element.clientHeight);if(u||Y.eT){if(window.matchMedia){Y="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.bK&&this.bK.media===Y||(this.bK=window.matchMedia(Y));var k=this.bK&&this.bK.matches}if(k)return new g.OW(window.innerWidth,window.innerHeight)}else if(n)return this.TX.clone();return new g.OW(this.element.clientWidth,this.element.clientHeight)}; g.M.UE=function(){var Y=this.app.Y().V("enable_desktop_player_underlay"),u=this.getPlayerSize(),n=g.YF(this.app.Y().experiments,"player_underlay_min_player_width");return Y&&this.Jk&&u.width>n?(Y=g.YF(this.app.Y().experiments,"player_underlay_video_width_fraction"),new g.OW(Math.min(u.height*this.getVideoAspectRatio(),u.width*Y),Math.min(u.height,u.width*Y/this.getVideoAspectRatio()))):u}; g.M.getVideoAspectRatio=function(){return isNaN(this.GT)?llG(this):this.GT}; g.M.getVideoContentRect=function(Y){var u=this.UE();Y=h2W(this,u,this.getVideoAspectRatio(),Y);return new g.gh((u.width-Y.width)/2,(u.height-Y.height)/2,Y.width,Y.height)}; g.M.y3=function(Y){this.Jk=Y;this.resize()}; g.M.I4=function(){return this.hf}; g.M.onMutedAutoplayChange=function(){dk(this)}; g.M.setInternalSize=function(Y){g.Fy(this.TX,Y)||(this.TX=Y,this.resize())}; g.M.nG=function(){this.rI&&g.a9(this.rI);this.bE();g.H.prototype.nG.call(this)};g.M=b80.prototype;g.M.click=function(Y,u){this.elements.has(Y);this.K.has(Y);var n=g.sC();n&&Y.visualElement&&g.qn(n,Y.visualElement,u)}; g.M.createClientVe=function(Y,u,n,U){var k=this;U=U===void 0?!1:U;this.elements.has(Y);this.elements.add(Y);n=Zvd(n);Y.visualElement=n;var m=g.sC(),X=g.Mn();m&&X&&(g.rL("combine_ve_grafts")?Sf(Xx(),n,X):g.O_(g.b2)(void 0,m,X,n));u.addOnDisposeCallback(function(){k.elements.has(Y)&&k.destroyVe(Y)}); U&&this.j.add(Y)}; g.M.createServerVe=function(Y,u,n){var U=this;n=n===void 0?!1:n;this.elements.has(Y);this.elements.add(Y);u.addOnDisposeCallback(function(){U.destroyVe(Y)}); n&&this.j.add(Y)}; g.M.destroyVe=function(Y){this.elements.has(Y);this.elements.delete(Y);this.X.delete(Y);this.K.delete(Y);this.j.delete(Y)}; g.M.b7=function(Y,u){this.clientPlaybackNonce!==u&&(this.clientPlaybackNonce=u,P5(Xx(),Y),IlA(this))}; g.M.setTrackingParams=function(Y,u){this.elements.has(Y);u&&(Y.visualElement=g.Tn(u))}; g.M.v$=function(Y,u,n){this.elements.has(Y);u?this.K.add(Y):this.K.delete(Y);var U=g.sC(),k=Y.visualElement;this.j.has(Y)?U&&k&&(u?g.Fo(U,[k]):g.Jl(U,[k])):u&&!this.X.has(Y)&&(U&&k&&g.OC(U,k,void 0,n),this.X.add(Y))}; g.M.hasVe=function(Y){return this.elements.has(Y)};g.d(g.Af,g.e);g.Af.create=function(Y,u,n,U){try{var k=typeof Y==="string"?Y:"player"+g.SB(Y),m=vb[k];if(m){try{m.dispose()}catch(S){g.tl(S)}vb[k]=null}var X=new g.Af(Y,u,n,U);X.addOnDisposeCallback(function(){vb[k]=null;X.O3&&X.O3()}); return vb[k]=X}catch(S){throw g.tl(S),(S&&S instanceof Error?S:Error(String(S))).stack;}}; g.M=g.Af.prototype;g.M.XY=function(){return this.visibility}; g.M.pB=function(Y){var u=this.fT();if(Y!==u){Y.getVideoData().autonavState=u.getVideoData().autonavState;u.lr(this.ZA,this);var n=u.getPlaybackRate();u.dispose();this.XD.pB(Y);Y.setPlaybackRate(n);Y.BD(this.ZA,this);O8S(this)}}; g.M.LF=function(){this.Wo||(this.Wo=g.gV(mm(),DVm()));return this.Wo}; g.M.bE=function(Y){if(this.mediaElement){this.CZ&&(this.events.qR(this.CZ),this.CZ=null);g.Lb(this.Zf);this.wg().bE(!0,!1,Y);this.template.bE();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Jf()}catch(u){g.Br(u)}this.mediaElement=null}}; g.M.fL=function(Y,u,n){n=n===void 0?!1:n;if(Y!==this.wg()){this.logger.debug(function(){return"start set presenting player, type "+Y.getPlayerType()+", vid "+Y.getVideoData().videoId}); var U=null;n||(n=this.wg(),U=n.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),eN(this.wp,3),EY(this,"cuerangesremoved",n.Vl()),this.KU&&!Y.isGapless()&&n.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),n=Y.mY()&&n.mY(),this.DF.M5("iv_s"),nte(this,n));Y.getPlayerType()===1&&this.pB(Y);umY(this,Y);this.XD.fL(Y);this.mediaElement&&Y.setMediaElement(this.mediaElement);Y.BD(this.X9,this);Y.Cn()?otY(this,"setPresenting",!1):(this.qS("newdata",Y,Y.getVideoData()), U&&!g.Wa(U,Y.getPlayerState())&&this.VV(new g.PY(Y.getPlayerState(),U)),u=u&&Y.getPlayerType()===1,Y.dK()&&!u&&this.qS("dataloaded",Y,Y.getVideoData()),(u=(u=Y.getVideoData().j)&&u.video)&&this.Bz.Ar("onPlaybackQualityChange",u.quality),EY(this,"cuerangesadded",Y.Vl()),u=Y.getPlayerState(),g.V(u,2)?YIu(this):g.V(u,8)?Y.playVideo():Y.WK()&&Y.pauseVideo(),u=this.fT(),Y.getPlayerType()===2&&(Y.getVideoData().Nt=u.getVideoData().clientPlaybackNonce),Y.getPlayerType()!==2||this.xQ()||(U=Y.getVideoData(), u.v3(U.clientPlaybackNonce,U.gL||"",U.breakType||0,U.MA,U.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.M.jI=function(){if(this.fT()!==this.wg()){var Y=this.wg();this.logger.debug(function(){return"release presenting player, type "+Y.getPlayerType()+", vid "+Y.getVideoData().videoId}); this.fL(this.fT())}}; g.M.Dy=function(){return this.XD}; g.M.AR=function(Y){return this.XD.AR(Y)}; g.M.Lp=function(Y){return this.XD.Lp(Y)}; g.M.fT=function(){return this.XD.fT()}; g.M.wg=function(){return this.XD.wg()}; g.M.yT=Ye(44);g.M.lWG=function(){B9(this)||(this.logger.debug("application playback ready"),this.D8(5))}; g.M.aFZ=function(){if(!B9(this)){this.logger.debug("playback ready");psG(this);var Y=this.wg(),u=Y.getPlayerState();Y.WK()?this.pauseVideo():u.isOrWillBePlaying()&&this.playVideo()}}; g.M.canPlayType=function(Y){return MO(Y)}; g.M.Y=function(){return this.xw}; g.M.getVideoData=function(){return this.wg().getVideoData()}; g.M.L4=Ye(11);g.M.xR=function(){return this.fT().getVideoData()}; g.M.getVideoLoadedFraction=function(Y){return(Y=this.AR({playerType:Y}))?Y.getVideoLoadedFraction():this.XD.K.getVideoLoadedFraction()}; g.M.tJ=function(){return this.template}; g.M.ym=function(){return this.wp}; g.M.PC=function(){return this.DF}; g.M.ZX=function(Y,u,n){(u=this.AR({playerType:u===void 0?1:u}))&&u.q5(Y,void 0,n)}; g.M.nQ=function(){var Y=this.wp.nQ();this.Bz.publish("videoStatsPingCreated",Y);return Y}; g.M.getVolume=function(){return Math.round(this.Bz.getVolume())}; g.M.isMuted=function(){return this.Bz.isMuted()}; g.M.DK=function(){if(this.fT()===this.wg()&&this.LT)return this.LT.postId}; g.M.f_a=function(){var Y=this;this.V("use_rta_for_player")||(g.Zp(this.xw)?g.DA(this.xw,g.Qs(this.getVideoData())).then(function(u){X2(mm(),u);i2d(Y.getVideoData(),Y.xw,Y.LF())}):i2d(this.getVideoData(),this.xw,this.LF()))}; g.M.Nl=function(Y){this.Bz.publish("poTokenVideoBindingChange",Y)}; g.M.yU=function(Y){this.Bz.publish("d6de4videobindingchange",Y)}; g.M.AN=function(){this.nD&&this.nD.AN()}; g.M.A2=function(Y){this.nD=Y}; g.M.o9=function(Y){if(Y===1){this.DF.tick("vr");var u=this.wg();u.ol();cft(this.DF,u.getVideoData(),KYB(this));mcG(this.wp)}u=this.xw;if(co(u)&&u.Z||g.CV(u)){var n;(((n=this.wg().getVideoData())==null?0:n.enableServerStitchedDai)||!this.xQ())&&this.Bz.Ar("onAdStateChange",Y)}}; g.M.setLoopVideo=function(Y){var u=this.wg();u===this.fT()&&u.Db()!==Y&&(u.setLoop(Y),this.Bz.Yw("onLoopChange",Y))}; g.M.getLoopVideo=function(){return this.wg().Db()}; g.M.setLoopRange=function(Y){var u=!1;!!this.LT!==!!Y?u=!0:this.LT&&Y&&(u=this.LT.startTimeMs!==Y.startTimeMs||this.LT.endTimeMs!==Y.endTimeMs||this.LT.postId!==Y.postId||this.LT.type!==Y.type);if(u){u=this.wg();c2(u.getVideoData())&&u.fG("slr",{et:(Y==null?void 0:Y.endTimeMs)||-1});u=this.fT();u.JS("applooprange");if(Y){var n=new g.EE(Y.startTimeMs,Y.endTimeMs,{id:"looprange",namespace:"applooprange"});u.addCueRange(n)}else{this.xR().clipConfig=void 0;var U;((n=this.LT)==null?void 0:n.type)!=="repeatChapter"|| isNaN(Number((U=this.LT)==null?void 0:U.loopCount))||(n={loopCount:String(this.LT.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.ka("repeatChapterLoopEvent",n))}this.LT=Y;this.Bz.Yw("onLoopRangeChange",Y||void 0);this.fT()===this.wg()&&(this.ER(),u.Yo())}}; g.M.getLoopRange=function(){return this.LT}; g.M.ER=function(){var Y="",u=this.fT();this.LT?u!==this.wg()?Y="pnea":fQd(this,u.getCurrentTime())&&(this.LT.loopCount=0,Y="ilr"):Y="nlr";var n=this.wg();if(c2(n.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var U,k;n.fG("slrre",{rej:Y,ct:u.getCurrentTime(),lst:(U=this.LT)==null?void 0:U.startTimeMs,let:(k=this.LT)==null?void 0:k.endTimeMs})}else n.fG("slrre",{});Y||N10(this)}; g.M.setPlaybackRate=function(Y,u){if(!isNaN(Y)){Y=q1M(this,Y);var n=this.fT();n.getPlaybackRate()!==Y&&(n.setPlaybackRate(Y),u&&!this.xw.G&&g.oU("yt-player-playback-rate",Y),this.Bz.Ar("onPlaybackRateChange",Y))}}; g.M.getCurrentTime=function(Y,u){u=u===void 0?!0:u;var n=this.XD.RM;if(n)return n.getCurrentTime();var U=Y===2&&this.getVideoData().enableServerStitchedDai;n=null;U?n=this.wg():n=this.AR({playerType:Y});return n?U&&this.zR?(Y=this.XD.S)?Y.getCurrentTime(u):n.getCurrentTime():u?(u=tf(this,n),W9(this,u.getCurrentTime(),u)):n.getCurrentTime():this.XD.K.getCurrentTime()}; g.M.h4=function(){var Y=this.AR({playerType:void 0});if(!Y)return this.XD.K.h4();Y=tf(this,Y);return W9(this,Y.h4(),Y)}; g.M.getDuration=function(Y,u){u=u===void 0?!0:u;var n=this.XD.RM;if(n)return n.getDuration();n=this.getVideoData();var U=Y===2&&n.enableServerStitchedDai,k=null;U?k=this.wg():k=this.AR({playerType:Y});if(!k)return this.XD.K.getDuration();if(n.hasProgressBarBoundaries()&&!U){var m,X=Number((m=n.progressBarStartPosition)==null?void 0:m.utcTimeMillis),S;m=Number((S=n.progressBarEndPosition)==null?void 0:S.utcTimeMillis);if(!isNaN(X)&&!isNaN(m))return(m-X)/1E3}if(c2(n)&&!n.isLivePlayback)return hf(this, Y);if(u)return Y=Ld(this,k),W9(this,Y.getDuration(),Y);if(U&&this.zR){if(this.V("html5_huli_ssdai_use_playback_state"))return Y=this.XD,Y=Y.G===Y.S?Y.G:null,(Y==null?void 0:Y.getDuration())||0;var C;return((C=this.XD.S)==null?void 0:C.getDuration())||0}return k.getDuration()}; g.M.Ia=function(Y){var u=this.AR({playerType:Y});return u?this.xQ(u)?(u=Ld(this,u),u.Ia()-u.getCurrentTime()+this.getCurrentTime(Y)):u.Ia():this.XD.K.Ia()}; g.M.finishSegmentByCpn=function(){return[]}; g.M.lO=function(){this.template.lO();var Y=this.Bz;Y.state.element=this.template.element;var u=Y.state.element,n;for(n in Y.state.K)Y.state.K.hasOwnProperty(n)&&(u[n]=Y.state.K[n]);(Y=Dv7(this.template.element))&&this.events.B(this.template,Y,this.onFullscreenChange)}; g.M.getDebugText=function(Y){var u=this.fT().Tw(Y),n=this.wg();if(n!==this.fT()){n=n.Tw(Y);for(var U=g.A(Object.keys(n)),k=U.next();!k.done;k=U.next())k=k.value,u["ad"+k]=n[k];if(Y){n=u;U={};if(k=X8(document,"movie_player"))U.bounds=k.getBoundingClientRect(),U["class"]=k.className;k={};var m=g.fi("video-ads");m?(RCM(m,k),k.html=m.outerHTML):k.missing=1;m={};var X=g.fi("videoAdUiSkipContainer"),S=g.fi("ytp-ad-skip-button-container"),C=g.fi("ytp-skip-ad-button"),f=X||S||C;f?(RCM(f,m),m.ima=X?1:0,m.bulleit= S?1:0,m.component=C?1:0):m.missing=1;U=JSON.stringify({player:U,videoAds:k,skipButton:m});n.ad_skipBtnDbgInfo=U}}Y&&this.mediaElement&&(u["0sz"]=""+(+Jq(this.mediaElement.getSize())===0),u.op=this.mediaElement.DG("opacity"),n=this.mediaElement.Kf().y+this.mediaElement.getSize().height,u.yof=""+(+n<=0),u.dis=this.mediaElement.DG("display"));Y&&((Y=(0,g.QE)())&&(u.gpu=Y),(Y=this.xw.playerStyle)&&(u.ps=Y),this.xw.CG&&(u.webview=1),(Y=this.webPlayerContextConfig.jsUrl)&&(u.js=Y));u.debug_playbackQuality= this.Bz.getPlaybackQuality(1);u.debug_date=(new Date).toString();u.origin=window.origin;u.timestamp=Date.now();delete u.uga;delete u.q;return JSON.stringify(u,null,2)}; g.M.getFeedbackProductData=function(){var Y={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.Y().experiments.experimentIds.join(", "),player_release:P[11]},u=this.getPlayerStateObject().Jt;u&&(Y.player_error_code=u.errorCode,Y.player_error_details=JSON.stringify(u.errorDetail));return Y}; g.M.getPresentingPlayerType=function(Y){if(this.appState===1)return 1;if(B9(this))return 3;var u;return Y&&((u=this.zR)==null?0:z4u(u,this.getCurrentTime()))?2:this.wg().getPlayerType()}; g.M.S4=function(){return!1}; g.M.getPlayerStateObject=function(Y){var u=this.XD.RM;return u?u.getPlayerState():this.AR({playerType:Y}).getPlayerState()}; g.M.getAppState=function(){return this.appState}; g.M.b0a=function(Y){switch(Y.type){case "loadedmetadata":this.iT.start();Y=g.A(this.xr);for(var u=Y.next();!u.done;u=Y.next())u=u.value,jgd(this,u.id,u.o$G,u.KTF,void 0,!1);this.xr=[];break;case "loadstart":this.DF.M5("gv");break;case "progress":case "timeupdate":SJ(Y.target.eM())>=2&&this.DF.M5("l2s");break;case "playing":g.Bo&&this.iT.start();if(g.Zp(this.xw))Y=!1;else{u=g.$N(this.ym());Y=this.mediaElement.DG("display")==="none"||Jq(this.mediaElement.getSize())===0;var n=Ga(this.template),U=this.wg().getVideoData(), k=g.R8(this.xw);U=v2(U);u=!n||u||k||U||this.xw.Pz;Y=Y&&!u}Y&&(Y=this.wg(),Y.td(),this.getVideoData().lN||(this.getVideoData().lN=1,this.Js(),Y.playVideo()))}}; g.M.PNG=function(Y){this.Bz.oa("onLoadProgress",Y)}; g.M.nkg=function(){this.Bz.publish("playbackstalledatstart")}; g.M.IYJ=function(Y,u){this.Bz.publish("sabrCaptionsDataLoaded",Y,u)}; g.M.TDW=function(Y){this.wg().j7(Y)}; g.M.zTF=function(Y){this.wg().b_(Y)}; g.M.X0G=function(Y){Y=tf(this,this.wg());Y=W9(this,Y.getCurrentTime(),Y);this.Bz.Ar("onVideoProgress",Y);this.xw.d9&&sgu(this,this.visibility.Z4())&&this.pauseVideo()}; g.M.c_z=function(){this.Bz.Ar("onAutoplayBlocked");var Y=this.wg().getVideoData();Y&&(Y.RP=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.nV(this.xw)&&(Y={autoplayBrowserPolicy:Lq(),autoplayIntended:td(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.ka("embedsAutoplayStatusChanged",Y))}; g.M.NXk=function(){this.Bz.publish("progresssync")}; g.M.tEa=function(){this.Bz.oa("onPlaybackPauseAtStart")}; g.M.kZF=function(Y){if(this.getPresentingPlayerType()===1){g.C1(Y,1)&&!g.V(Y.state,64)&&this.xR().isLivePlayback&&this.fT().isAtLiveHead()&&this.Bz.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.C1(Y,2)){if(this.LT&&this.LT.endTimeMs>=(this.getDuration()-1)*1E3){N10(this);return}YIu(this)}if(g.V(Y.state,128)){var u=Y.state;this.cancelPlayback(5);u=u.Jt;JSON.stringify({errorData:u,debugInfo:this.getDebugText(!0)});this.Bz.Ar("onError",Lnm(u.errorCode));this.Bz.oa("onDetailedError",{errorCode:u.errorCode, errorDetail:u.errorDetail,message:u.errorMessage,messageKey:u.vX,cpn:u.cpn});(0,g.j2)()-this.xw.Jr>6048E5&&this.Bz.oa("onReloadRequired")}u={};if(Y.state.isPlaying()&&!Y.state.isBuffering()&&!t$("pbresume","ad_to_video")&&t$("_start","ad_to_video")){var n=this.getVideoData();u.clientPlaybackNonce=n.clientPlaybackNonce;n.videoId&&(u.videoId=n.videoId);g.pg(u,"ad_to_video");Kg("pbresume",void 0,"ad_to_video");mcG(this.wp)}this.Bz.publish("applicationplayerstatechange",Y)}}; g.M.VV=function(Y){this.XD.RM||this.Bz.publish("presentingplayerstatechange",Y)}; g.M.nF=function(Y){pd(this,b$(Y.state));g.V(Y.state,1024)&&this.Bz.isMutedByMutedAutoplay()&&(xG(this,{muted:!1,volume:this.gt.volume},!1),lH(this,!1))}; g.M.onPlayerRequestSent=function(Y){this.Bz.Yw("onPlayerRequestSent",Y)}; g.M.M3=function(Y,u){Y==="newdata"&&O8S(this);this.Bz.publish("applicationvideodatachange",Y,u)}; g.M.d1w=function(Y,u){this.V("html5_afmt_change_update_volume")&&psG(this);this.Bz.oa("onPlaybackAudioChange",this.Bz.getAudioTrack().dX.name);this.Bz.publish("internalaudioformatchange",this.Bz.getAudioTrack().dX.id,u)}; g.M.jHJ=function(Y){var u=this.wg().getVideoData();Y===u&&this.Bz.Ar("onPlaybackQualityChange",Y.j.video.quality)}; g.M.pE=function(){var Y=this.XD.X[2]||null;Y&&(Y=Y.getVideoData(),this.wg().fG("ssdai",{cleanaply:1,acpn:Y==null?void 0:Y.clientPlaybackNonce,avid:Y.videoId,isDai:this.xR().enableServerStitchedDai?1:0}),delete this.XD.X[2])}; g.M.hTq=function(Y,u){this.qS(Y,this.wg(),u)}; g.M.qS=function(Y,u,n){this.logger.debug(function(){return"on video data change "+Y+", player type "+u.getPlayerType()+", vid "+n.videoId}); this.xw.gX()&&u.fG("vdc",{type:Y,vid:n.videoId||"",cpn:n.clientPlaybackNonce||""});u===this.fT()&&(this.xw.KF=n.oauthToken);u===this.fT()&&(this.getVideoData().enableServerStitchedDai&&!this.zR?(this.fT().fG("sdai",{initSstm:1}),this.zR=new g.XB(this.Bz,this.xw,this.fT(),this)):!this.getVideoData().enableServerStitchedDai&&this.zR&&(this.zR.dispose(),this.zR=null));if(Y==="newdata")this.logger.debug("new video data, destroy modules"),eN(this.wp,2),this.Bz.publish("videoplayerreset",u);else{if(!this.mediaElement)return; Y==="dataloaded"&&(this.fT()===this.wg()?(ZA(n.GZ,n.UQ),Xsm(this)):kMS(this));u.getPlayerType()===1&&(this.xw.MF&&vtt(this),this.getVideoData().isLivePlayback&&!this.xw.k5&&this.YQ("html5.unsupportedlive",2,"DEVICE_FALLBACK"),n.isLoaded()&&((xNY(n)||this.getVideoData().k5)&&this.Bz.publish("legacyadtrackingpingchange",this.getVideoData()),n.hasProgressBarBoundaries()&&Zeu(this)));this.Bz.publish("videodatachange",Y,n,u.getPlayerType())}this.Bz.Ar("onVideoDataChange",{type:Y,playertype:u.getPlayerType()}); this.ER();var U=n.Co;U?this.r5.b7(U,n.clientPlaybackNonce):IlA(this.r5)}; g.M.hC=function(){c9(this,null);this.Bz.oa("onPlaylistUpdate")}; g.M.O0J=function(Y){delete this.rS[Y.getId()];this.fT().removeCueRange(Y);a:{Y=this.getVideoData();var u,n,U,k,m,X,S,C,f,Q,N=((u=Y.MF)==null?void 0:(n=u.contents)==null?void 0:(U=n.singleColumnWatchNextResults)==null?void 0:(k=U.autoplay)==null?void 0:(m=k.autoplay)==null?void 0:m.sets)||((X=Y.MF)==null?void 0:(S=X.contents)==null?void 0:(C=S.twoColumnWatchNextResults)==null?void 0:(f=C.autoplay)==null?void 0:(Q=f.autoplay)==null?void 0:Q.sets);if(N)for(u=g.A(N),n=u.next();!n.done;n=u.next())if(n= n.value,k=U=void 0,n=n.autoplayVideo||((U=n.autoplayVideoRenderer)==null?void 0:(k=U.autoplayEndpointRenderer)==null?void 0:k.endpoint),U=g.z(n,g.pk),m=k=void 0,n!=null&&((k=U)==null?void 0:k.videoId)===Y.videoId&&((m=U)==null?0:m.continuePlayback)){Y=n;break a}Y=null}(u=g.z(Y,g.pk))&&this.Bz.Yw("onPlayVideo",{sessionData:{autonav:"1",itct:Y==null?void 0:Y.clickTrackingParams},videoId:u.videoId,watchEndpoint:u})}; g.M.D8=function(Y){var u=this;Y!==this.appState&&(this.logger.debug(function(){return"app state change "+u.appState+" -> "+Y}),Y===2&&this.getPresentingPlayerType()===1&&(pd(this,-1),pd(this,5)),this.appState=Y,this.Bz.publish("appstatechange",Y))}; g.M.YQ=function(Y,u,n,U,k){this.fT().Re(Y,u,n,U,k)}; g.M.Lb=Ye(13);g.M.isAtLiveHead=function(Y,u){u=u===void 0?!1:u;var n=this.AR({playerType:Y});if(!n)return this.XD.K.isAtLiveHead();Y=Ld(this,n);n=tf(this,n);return Y!==n?Y.isAtLiveHead(W9(this,n.getCurrentTime(),n),!0):Y.isAtLiveHead(void 0,u)}; g.M.bl=function(){var Y=this.AR({playerType:void 0});return Y?Ld(this,Y).bl():this.XD.K.bl()}; g.M.seekTo=function(Y,u,n,U,k){u=u!==!1;if(U=this.AR({playerType:U}))this.appState===2&&RX(this),this.xQ(U)?eR(this)?this.zR.seekTo(Y,{seekSource:k},u,n):this.FD.seekTo(Y,{seekSource:k},u,n):U.seekTo(Y,{AO:!u,DM:n,L0:"application",seekSource:k})}; g.M.seekBy=function(Y,u,n,U){this.seekTo(this.getCurrentTime()+Y,u,n,U)}; g.M.KoG=function(){this.Bz.Ar("SEEK_COMPLETE")}; g.M.ZTG=function(){this.Bz.Yw("onAbnormalityDetected")}; g.M.RTk=function(Y){this.Bz.Yw("onSnackbarMessage",Y)}; g.M.okw=function(Y){var u=this.wg(),n=u.getVideoData();if(this.appState===1||this.appState===2)n.startSeconds=Y;this.appState===2?g.V(u.getPlayerState(),512)||RX(this):this.Bz.Ar("SEEK_TO",Y)}; g.M.e_c=function(){this.Bz.publish("airplayactivechange")}; g.M.EVZ=function(){this.Bz.publish("airplayavailabilitychange")}; g.M.showAirplayPicker=function(){this.wg().TD()}; g.M.w$Z=function(){this.Bz.publish("beginseeking")}; g.M.z_G=function(){this.Bz.publish("endseeking")}; g.M.getStoryboardFormat=function(Y){return(Y=this.AR({playerType:Y}))?Ld(this,Y).getStoryboardFormat():this.XD.K.getStoryboardFormat()}; g.M.a_=function(Y){return(Y=this.AR({playerType:Y}))?Ld(this,Y).getVideoData().a_():this.XD.K.a_()}; g.M.xQ=function(Y){Y=(Y||this.wg()).getVideoData();if(eR(this))Y=Y===this.zR.playback.getVideoData();else a:{var u=this.FD;if(Y===u.K.getVideoData()&&u.j.length)Y=!0;else{u=g.A(u.j);for(var n=u.next();!n.done;n=u.next())if(Y.Gc===n.value.Gc){Y=!0;break a}Y=!1}}return Y}; g.M.vG=function(Y,u,n,U,k,m,X,S){this.logger.debug(function(){return"Adding video to timeline id="+Y.video_id+"\n lengthMs="+U+" enterTimeMs="+k}); var C="",f=eR(this);this.wg().fG("appattl",{sstm:this.zR?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:f});f?(n=l6t(this.zR,Y,u,n,U,k,m,X),C=(n==null?void 0:n.Gc)||"",(this.V("html5_ssdai_new_decoration_logic")||this.fT().getVideoData().pZ)&&this.fT().Rn(S||"",u,(n==null?void 0:n.clientPlaybackNonce)||"")):C=MYS(this.FD,Y,n,U,k,m);this.logger.debug(function(){return"Video added to timeline id="+Y.video_id+" timelinePlaybackId="+C}); return C}; g.M.C4=function(Y,u,n,U,k,m,X){if(eR(this)){var S,C=(S=this.zR)==null?void 0:l6t(S,Y,u,n,U,k,m,X);this.logger.debug(function(){return"Remaining video added to timeline id="+Y.video_id+" timelinePlaybackId="+((C==null?void 0:C.Gc)||"")})}}; g.M.m8=function(Y){this.V("html5_ssdai_new_decoration_logic")&&this.fT().Rn(Y,"","");var u;(u=this.zR)==null||u.m8(Y)}; g.M.zs=function(Y,u){Y=Y===void 0?-1:Y;u=u===void 0?Infinity:u;eR(this)||tY7(this.FD,Y,u)}; g.M.Lw=function(Y,u,n){if(eR(this)){var U=this.zR,k=U.K.AR({Gc:Y});k?(n===void 0&&(n=k.Ks),Hlt(U,k,u,n)):U.yd("Invalid_timelinePlaybackId_"+Y+"_specified")}else{U=this.FD;k=null;for(var m=g.A(U.j),X=m.next();!X.done;X=m.next())if(X=X.value,X.Gc===Y){k=X;break}k?(n===void 0&&(n=k.Ks),LpA(U,k,u,n)):iH(U,"InvalidTimelinePlaybackId timelinePlaybackId="+Y)}}; g.M.enqueueVideoByPlayerVars=function(Y,u,n,U){n=n===void 0?Infinity:n;U=U===void 0?"":U;this.xQ();Y=new g.sZ(this.xw,Y);U&&(Y.Gc=U);T1c(this,Y,u,n)}; g.M.queueNextVideo=function(Y,u,n,U,k){n=n===void 0?NaN:n;Y=this.preloadVideoByPlayerVars(Y,u===void 0?1:u,n,U===void 0?"":U,k===void 0?"":k);u=this.wg();Y&&(this.V("html5_check_queue_on_data_loaded")?this.Y().supportsGaplessShorts()&&u.getVideoData().S&&(n=this.lq,U=this.KU.J,n.G!==Y&&(n.j=u,n.G=Y,n.X=1,n.K=Y.getVideoData(),n.J=U,n.K.isLoaded()?n.W():n.K.subscribe("dataloaded",n.W,n))):(n=Os7(u,Y,this.KU.J),n!=null?(u.fG("sgap",n),u.getVideoData().S&&u.bR(!1)):(Y=Y.getVideoData(),u=this.lq,u.K!== Y&&(u.K=Y,u.X=1,Y.isLoaded()?u.S():u.K.subscribe("dataloaded",u.S,u)))))}; g.M.rG=function(Y,u,n,U){var k=this;n=n===void 0?0:n;U=U===void 0?0:U;Ld(this,this.wg()).To();mpA(this.KU,Y,u,n,U).then(function(){k.Bz.oa("onQueuedVideoLoaded")},function(){})}; g.M.IM=function(){return this.KU.IM()}; g.M.C2=function(Y){var u=this.KU.K;return u?u.fI(Y):!1}; g.M.clearQueue=function(Y,u){Y=Y===void 0?!1:Y;u=u===void 0?!1:u;this.logger.debug("Clearing queue");this.KU.clearQueue(Y,u)}; g.M.loadVideoByPlayerVars=function(Y,u,n,U,k,m){u=u===void 0?1:u;var X=this.fT();if(u===2&&this.xR().enableServerStitchedDai&&X&&!X.Ws())return X.fG("lvonss",{vid:(Y==null?void 0:Y.videoId)||"",ptype:u}),!1;var S=!1;X=new g.sZ(this.xw,Y);X.Rj=m;g.tA(this.xw)&&!X.zE&&tL(this.DF);var C;m=this.DF;var f=(C=X.KG)!=null?C:"";m.timerName=f;this.DF.vW("pl_i");this.V("web_player_early_cpn")&&X.clientPlaybackNonce&&this.DF.infoGel({clientPlaybackNonce:X.clientPlaybackNonce});Czc(X).supportsVp9Encoding===!1&& this.wg().fG("noVp9enc",{});if(this.Y().supportsGaplessShorts()){C=SBe(this.KU,X,u);if(C==null){pd(this,-1);var Q;((Q=this.KU.K)==null?0:Q.getVideoData().isAd())||bH(this);Y=this.KU;Y.app.Y().V("html5_gapless_new_slr")?wk(Y.app,"gaplessshortslooprange"):Y.app.setLoopRange(null);Y.app.getVideoData().Jz=!0;var N;(N=Y.K)==null||N.kA();var Z;(Z=Y.K)==null||Z.W1();n={L0:"gapless_to_next_video",seekSource:60,Ev:Y.J.K};U=g.YF(Y.app.Y().experiments,"html5_gapless_seek_offset");k=PPu(Y);if(Y.J.K){var T;X= ((T=Y.X)==null?void 0:Vb(T))||{};T=X.u7;X=X.rr;X!=null&&T!=null&&(k=X-T+.001)}var r;(r=Y.app.wg())==null||r.seekTo(k+U,n);if(!Y.app.getPlayerStateObject(u).isPlaying()){var K;(K=Y.app.wg())==null||K.playVideo(!0)}var L;(L=Y.app.wg())==null||L.mx();Y.S();return!0}r=this.V("html5_shorts_gapless_preload_fallback");K=this.KU.K;r&&K&&!K.gg()&&(L=K.getVideoData(),this.XD.J.set(IX(u,L),K,3600));this.KU.clearQueue(r);this.wg().fG("sgap",{f:C})}if(k){for(;X.u5.length&&X.u5[0].isExpired();)X.u5.shift();r=X.u5.length- 1;S=r>0&&k.j(X.u5[r])&&k.j(X.u5[r-1]);X.u5.push(k)}n||(Y&&DRc(Y)?(G_(this.xw)&&!this.jQ&&(Y.fetch=0),c9(this,Y)):this.playlist&&c9(this,null),Y&&(this.jQ=$o(!1,Y.external_list)));this.Bz.publish("loadvideo");r=this.kI(X,u,U);S&&this.YQ("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+X.u5.join()).replace(/[;:,]/g,"_"));return r}; g.M.preloadVideoByPlayerVars=function(Y,u,n,U,k){u=u===void 0?1:u;n=n===void 0?NaN:n;U=U===void 0?"":U;k=k===void 0?"":k;var m=MQu(u,Y,k),X=this.XD.J.get(m)||null;if(X)return this.logger.debug(function(){return"already preloaded "+m}),this.V("html5_return_playback_if_already_preloaded")?X:null; Y=new g.sZ(this.xw,Y);k&&(Y.Gc=k);return rVu(this,Y,u,n,U)}; g.M.setMinimized=function(Y){this.visibility.setMinimized(Y);(Y=SnA(this.wp))&&(this.isMinimized()?Y.load():Y.unload());this.Bz.publish("minimized")}; g.M.setInline=function(Y){this.visibility.setInline(Y)}; g.M.setInlinePreview=function(Y){this.visibility.setInline(Y)}; g.M.D1=function(Y){dhc(this,Y)||this.visibility.D1(Y)}; g.M.setSqueezeback=function(Y){this.visibility.setSqueezeback(Y)}; g.M.Bn=function(){var Y,u=(Y=this.mediaElement)==null?void 0:Y.q1();u&&(this.xw.DQ&&ym(gg(function(){return document.exitFullscreen()}),function(){}),ym(gg(function(){return TP(u)}),function(){}))}; g.M.vkc=function(){this.mediaElement.q1();this.mediaElement.q1().webkitPresentationMode==="picture-in-picture"?this.D1(!0):this.D1(!1)}; g.M.togglePictureInPicture=function(){this.wg().togglePictureInPicture()}; g.M.kI=function(Y,u,n){u=u===void 0?1:u;this.logger.debug(function(){return"start load video, id "+Y.videoId+", type "+u}); t$("_start",this.DF.timerName)||g.O_(rV)(void 0,this.DF.timerName);var U=!1,k=Ci0(this,u,Y,!1);k?(U=!0,Y.dispose()):(k=jR(this,u,Y,!0,n),(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&k.Zn()&&k.Xo(),this.iT.stop(),u===1&&u!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,u),this.fL(k));k===this.fT()&&(this.xw.KF=Y.oauthToken);if(!k.Zn())return!1;if(k===this.fT())return this.D8(1),n=RX(this),U&&this.V("html5_player_preload_ad_fix")&&k.getPlayerType()===1&& k.dK()&&this.qS("dataloaded",k,k.getVideoData()),n;k.DZ();return!0}; g.M.cueVideoByPlayerVars=function(Y,u){var n=this;u=u===void 0?1:u;var U=this.fT();if(this.xR().enableServerStitchedDai&&U&&!U.Ws()&&Y&&Object.keys(Y).length>0)U.fG("qvonss",{vid:(Y==null?void 0:Y.videoId)||"",ptype:u});else if(Y&&DRc(Y))if(this.J1=!0,c9(this,Y),(Y=g.BH(this.playlist))&&Y.QY())gk(this,Y,u);else this.playlist.onReady(function(){v9(n)}); else{u||(u=this.getPresentingPlayerType());u===1&&this.hC();U=new g.sZ(this.xw,Y);var k=g.nV(this.xw)&&!this.xw.oV&&u===1&&!U.isAd()&&!U.gL;this.Bz.publish("cuevideo");k?(this.wg().getVideoData().loading=!0,bdA(U,Y?Y:{}).then(function(m){gk(n,m,u)}),U.dispose()):gk(this,U,u)}}; g.M.EK=function(Y,u,n,U,k,m,X){if(!Y&&!n)throw Error("Playback source is invalid");if(kn(this.xw)||g.NV(this.xw))return u=u||{},u.lact=dl(),u.vis=this.Bz.getVisibilityState(),this.Bz.Yw("onPlayVideo",{videoId:Y,watchEndpoint:m,sessionData:u,listId:n}),!1;vGM(this.DF);this.DF.reset();Y={video_id:Y};U&&(Y.autoplay="1");U&&(Y.autonav="1");m&&(Y.player_params=m.playerParams);X&&(Y.oauth_token=X);n?(Y.list=n,this.loadPlaylist(Y)):this.loadVideoByPlayerVars(Y,1);return!0}; g.M.cuePlaylist=function(Y,u,n,U){this.J1=!0;GMY(this,Y,u,n,U)}; g.M.loadPlaylist=function(Y,u,n,U){this.J1=!1;GMY(this,Y,u,n,U)}; g.M.al=function(){return this.Bz.isMutedByMutedAutoplay()?!1:this.XD.RM?!0:!(!this.playlist||!this.playlist.ul())}; g.M.Nx=Ye(5); g.M.nextVideo=function(Y,u){var n=g.Lk(this.fT().getVideoData());g.n0(this.Bz)&&n?this.EK(n.videoId,u?n.Zt:n.sessionData,n.playlistId,u,void 0,n.Wn||void 0):this.jQ?this.Bz.oa("onPlaylistNext"):this.getPresentingPlayerType()===3?J3(this.wp).nextVideo():!this.playlist||G_(this.xw)&&!this.Bz.isFullscreen()||(this.playlist.ul(Y)&&hGu(this.playlist,xRW(this.playlist)),this.playlist.loaded?(Y=u&&this.xw.V("html5_player_autonav_logging"),u&&this.Bz.publish("playlistautonextvideo"),this.kI(g.BH(this.playlist,void 0, u,Y),1)):this.J1=!1)}; g.M.previousVideo=function(Y){this.jQ?this.Bz.oa("onPlaylistPrevious"):this.getPresentingPlayerType()===3?J3(this.wp).Xi():!this.playlist||G_(this.xw)&&!this.Bz.isFullscreen()||(this.playlist.ZC(Y)&&hGu(this.playlist,lxA(this.playlist)),this.playlist.loaded?this.kI(g.BH(this.playlist),1):this.J1=!1)}; g.M.playVideoAt=function(Y){this.jQ?this.Bz.oa("onPlaylistIndex",Y):this.playlist&&(this.playlist.loaded?this.kI(g.BH(this.playlist,Y),1):this.J1=!1,hGu(this.playlist,Y))}; g.M.getPlaylist=function(){return this.playlist}; g.M.j$=Ye(19);g.M.M8=function(Y){this.xr=g.BV(this.xr,function(m){return m.id!==Y}); for(var u=this.fT(),n=u.Vl(),U=0;U0&&(C=Math.floor(f/1E3))}C=u?u.Ox:C;var Q={AD_BLOCK:this.K++,AD_BREAK_LENGTH:C,AUTONAV_STATE:y4(this.player.Y()),CA_TYPE:"image",CPN:S.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.bl()*1E3,LACT:dl(),LIVE_INDEX:u?this.X++:1,LIVE_TARGETING_CONTEXT:u&&u.context?u.context:"",MIDROLL_POS:m? Math.round(m.start/1E3):0,MIDROLL_POS_MS:m?Math.round(m.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.tJ().UE().height,P_W:this.player.tJ().UE().width,YT_REMOTE:k?k.join(","):""},N=Py(XA);Object.keys(N).forEach(function(T){N[T]!=null&&(Q[T.toUpperCase()]=N[T].toString())}); n!==""&&(Q.BISCOTTI_ID=n);n={};mR(Y)&&(n.sts="20300",(u=this.player.Y().forcedExperiments)&&(n.forced_experiments=u));var Z=nv(g.oe(Y,Q),n);return Z.split("?").length!==2?De(Error("Invalid AdBreakInfo URL")):g.DA(this.player.Y(),S==null?void 0:S.oauthToken).then(function(T){if(T&&ko()){var r=mm();X2(r,T)}T=U.player.LF(r);r=$hd(U,Z,Q,S.isMdxPlayback,X);return g.RV(T,r,"/youtubei/v1/player/ad_break").then(function(K){return K})})}; V4.prototype.reset=function(){this.X=this.K=1};g.d(YOB,V4); YOB.prototype.j=function(Y,u,n){u=u===void 0?{}:u;var U=u.p_;var k=u.Mr;var m=u.cueProcessedMs;n=n===void 0?"":n;u=this.K;this.K++;var X=this.player.Y().V("h5_disable_macro_substitution_in_get_ad_break")?Y:uvS(this,Y,{p_:U,Mr:k,cueProcessedMs:m},n,u);if(X.split("?").length!==2)return Math.random()<.1&&g.Br(Error("Invalid AdBreakInfo URL")),De(Error("Invalid AdBreakInfo URL"));var S=this.player.getVideoData(1).isMdxPlayback,C=n;n=yVY.exec(X);n=n!=null&&n.length>=2?n[1]:"";Y=VQc.test(X);var f=Oem.exec(X); f=f!=null&&f.length>=2?f[1]:"";var Q=FYt.exec(X);Q=Q!=null&&Q.length>=2&&!Number.isNaN(Number(Q[1]))?Number(Q[1]):1;var N=JVu.exec(X);N=N!=null&&N.length>=2?N[1]:"0";var Z=io(this.player.Y().uE),T=g.yj(this.player.getVideoData(1).Fk,!0);beG(this,T,X,C===""?"":C,this.player.Y(),this.player.getVideoData(1));C={splay:!1,lactMilliseconds:String(dl()),playerHeightPixels:Math.trunc(this.player.tJ().UE().height),playerWidthPixels:Math.trunc(this.player.tJ().UE().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20300,autonavState:y4(this.player.Y())};if(S){S={};var r=this.player.Y().Vg;gtA(S,r?r.join(","):"")&&(C.mdxContext=S)}if(S=qIu.includes(Z)?void 0:g.Dz("PREF")){r=S.split(RegExp("[:&]"));for(var K=0,L=r.length;K1&&R[1].toUpperCase()==="TRUE"){T.user.lockedSafetyMode=!0;break}}C.autoCaptionsDefaultOn=HeM(S)}X=aQW.exec(X);(X=X!=null&&X.length>=2?X[1]:"")&&f&&(T.user.credentialTransferTokens= [{token:X,scope:"VIDEO"}]);X={contentPlaybackContext:C};C=this.player.getVideoData(1).getGetAdBreakContext();S=this.player.getVideoData(1).clientPlaybackNonce;r=m!==void 0?Math.round(m).toString():void 0;K=(U==null?0:U.context)?U.context:void 0;L=0;m&&k&&!U&&(k=k.end-k.start,k>0&&(L=Math.floor(k/1E3)));U=(U=Math.trunc((U?U.Ox:L)*1E3))?String(U):void 0;k=this.player.bl()*1E3;k=Number.isNaN(k)?0:Math.trunc(k);u={adBlock:u,params:n,breakIndex:Q,breakPositionMs:N,clientPlaybackNonce:S,topLevelDomain:Z, isProxyAdTagRequest:Y,context:T,overridePlaybackContext:X,cueProcessedMs:r,videoId:f?f:void 0,liveTargetingParams:K,breakLengthMs:U,driftFromHeadMs:k?String(k):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:C?C:void 0};return nZd(this,u)};var ZnX={WGJ:"replaceUrlMacros",p2F:"onAboutThisAdPopupClosed",E8Z:"executeCommand"};U6t.prototype.KQ=function(){return"adPingingEndpoint"}; U6t.prototype.q2=function(Y,u,n){Ic7(this.AJ.get(),Y,u,n)};kVd.prototype.KQ=function(){return"changeEngagementPanelVisibilityAction"}; kVd.prototype.q2=function(Y){this.L.Yw("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:Y})};m6u.prototype.KQ=function(){return"loggingUrls"}; m6u.prototype.q2=function(Y,u,n){Y=g.A(Y);for(var U=Y.next();!U.done;U=Y.next())U=U.value,Ic7(this.AJ.get(),U.baseUrl,u,n,U.attributionSrcMode)};g.d(Ppu,g.e);g.d(FB,g.e);g.M=FB.prototype;g.M.addListener=function(Y){this.listeners.push(Y)}; g.M.removeListener=function(Y){this.listeners=this.listeners.filter(function(u){return u!==Y})}; g.M.Wd=function(Y,u,n,U,k,m,X,S){if(Y==="")Xj("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(Y!==this.K||n){this.K=Y;this.LG.get().Wd(Y,u,n,U,k,m,X,S);this.SG.get().Wd(Y,u,n,U,k,m,X,S);var C;(C=this.i6)==null||C.get().Wd(Y,u,n,U,k,m,X,S);this.j.Wd(Y,u,n,U,k,m,X,S);C=g.A(this.listeners);for(var f=C.next();!f.done;f=C.next())f.value.Wd(Y,u,n,U,k,m,X,S)}else Xj("Duplicate content video loaded signal")}; g.M.qbV=function(){this.K&&this.r9(this.K)}; g.M.r9=function(Y){this.K=void 0;for(var u=g.A(this.listeners),n=u.next();!n.done;n=u.next())n.value.r9(Y)};Jf.prototype.JT=function(Y,u,n,U,k){SOe(this);this.J=!u&&n===0;var m=this.L.getVideoData(1),X=this.L.getVideoData(2);m&&(this.contentCpn=m.clientPlaybackNonce,this.videoId=m.videoId,this.K=m.W);X&&(this.adCpn=X.clientPlaybackNonce,this.adVideoId=X.videoId,this.adFormat=X.adFormat);this.G=Y;U<=0?(SOe(this),this.J=!u&&n===0):(this.actionType=this.J?u?"unknown_type":"video_to_ad":u?"ad_to_video":"ad_to_ad",this.videoStreamType=k?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.X=!0,t$("_start",this.actionType)&&QNt(this)))}; Jf.prototype.reset=function(){return new Jf(this.L)};g.d(qR,g.e);qR.prototype.addCueRange=function(Y,u,n,U,k,m,X,S,C){m=m===void 0?3:m;X=X===void 0?1:X;this.K.has(Y)?Xj("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:Y}):(Y=new NQ7(Y,u,n,U,m,S,C),this.K.set(Y.id,{Mr:Y,listener:k,ZT:X}),this.L.l6([Y],X))}; qR.prototype.removeCueRange=function(Y){var u=this.K.get(Y);u?(this.L.ly([u.Mr],u.ZT),this.K.delete(u.Mr.id)):Xj("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:Y})}; qR.prototype.onCueRangeEnter=function(Y){if(this.K.has(Y.id))this.K.get(Y.id).listener.onCueRangeEnter(Y.id)}; qR.prototype.onCueRangeExit=function(Y){if(this.K.has(Y.id))this.K.get(Y.id).listener.onCueRangeExit(Y.id)}; g.d(NQ7,g.EE);aX.prototype.addPlayerResponseForAssociation=function(Y){this.L.addPlayerResponseForAssociation(Y)};$G.prototype.o9=function(Y){this.L.o9(Y)}; $G.prototype.Io=function(Y){var u=g.It.apply(1,arguments);Y==="onAdStart"||Y==="onAdEnd"?this.L.Ar.apply(this.L,[Y].concat(g.Zu(u))):this.L.Yw.apply(this.L,[Y].concat(g.Zu(u)))};Y0.prototype.D_=function(Y){return Y&&ul(this)};var pEt=null;g.d(KEd,g.ud);KEd.prototype.HB=function(Y){return this.K.hasOwnProperty(Y)?this.K[Y].HB():{}}; g.Y$("ytads.bulleit.getVideoMetadata",function(Y){return na().HB(Y)}); g.Y$("ytads.bulleit.triggerExternalActivityEvent",function(Y,u,n){var U=na();n=jNA(n);n!==null&&U.publish(n,{queryId:Y,viewabilityString:u})});g.M=Un.prototype;g.M.Zo=function(Y,u){if(!this.K.has(Y))return{};if(u==="seek"){u=!1;u=u===void 0?!1:u;var n=jE(yY).IR(Y,{});n?z5(n):u&&(Y=jE(yY).yr(null,Dq(),!1,Y),Y.L1=3,APe([Y]));return{}}u=t5m(u);if(u===null)return{};var U=this.L.X4();if(!U)return{};var k=this.L.getPresentingPlayerType(!0);if((n=this.L.getVideoData(k))==null||!n.isAd())return{};n={opt_adElement:U,opt_fullscreen:this.LG.get().isFullscreen()};return AZc(u,Y,n)}; g.M.BL=function(Y,u,n,U,k){this.K.has(Y)&&(U<=0||k<=0||jE(yY).BL(Y,u,n,U,k))}; g.M.R5=function(Y){var u;(u=this.K.get(Y.queryId))==null||u.R5()}; g.M.fC=function(Y){var u;(u=this.K.get(Y.queryId))==null||u.fC()}; g.M.nC=function(Y){var u;(u=this.K.get(Y.queryId))==null||u.nC()}; g.M.KC=function(Y){var u;(u=this.K.get(Y.queryId))==null||u.KC()}; g.M.o5=function(Y){var u;(u=this.K.get(Y.queryId))==null||u.o5()};hPA.prototype.send=function(Y,u,n,U){try{wES(this,Y,u,n,U===void 0?!1:U)}catch(k){}};g.d(WEm,hPA);ePm.prototype.send=function(Y,u,n,U){var k=!1;try{if(U==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||U==="ATTRIBUTION_SRC_MODE_XHR_OPTION")k=!0,Y=k6u(Y);U=k;var m=g.Co(Y);if(m[1]==="https")var X=Y;else m[1]="https",X=SV("https",m[2],m[3],m[4],m[5],m[6],m[7]);var S=kyM(X);m=[];var C=HH0(X)&&this.hJ.get().L.Y().experiments.vz("add_auth_headers_to_remarketing_google_dot_com_ping");if(mR(X)||C)m.push({headerType:"USER_AUTH"}),m.push({headerType:"PLUS_PAGE_ID"}),m.push({headerType:"VISITOR_ID"}),m.push({headerType:"EOM_VISITOR_ID"}), m.push({headerType:"AUTH_USER"}),m.push({headerType:"DATASYNC_ID"});this.K.send({baseUrl:X,scrubReferrer:S,headers:m},u,n,U)}catch(f){}};Sj.prototype.Na=function(){return this.L.Na(1)};g.d(Ca,g.e);g.M=Ca.prototype;g.M.hU=function(){return this.L.getVideoData(1).clientPlaybackNonce}; g.M.addListener=function(Y){this.listeners.push(Y)}; g.M.removeListener=function(Y){this.listeners=this.listeners.filter(function(u){return u!==Y})}; g.M.Wd=function(){this.SO.clear();this.Ur=null;this.Wk.get().clear()}; g.M.r9=function(){}; g.M.DNW=function(Y,u,n,U,k){u.videoId==="nPpU29QrbiU"&&this.L.fG("ads_ssm_vdc_s",{pt:n,dvt:Y});$B(this.hJ.get())&&Y!=="dataloaded"||OfY(this,u,n);if(ul(this.hJ.get())&&Y==="newdata"&&k!==void 0){Y=this.hU();var m=u.clientPlaybackNonce,X={};S3(this,"rte",(X.ec=m,X.xc=U==null?void 0:U.clientPlaybackNonce,X.tr=k,X.pt=n,X.ia=m!==Y,X.ctp=Pj(m),X));u=u.clientPlaybackNonce;U=U==null?void 0:U.clientPlaybackNonce;k=FEc(k);if(k!==1)if(U!==void 0)for(n=g.A(this.listeners),Y=n.next();!Y.done;Y=n.next())Y.value.VW(U, u,k);else Xj("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:u,transitionReason:String(k)});k=g.A(this.listeners);for(U=k.next();!U.done;U=k.next())U.value.JQ(u)}}; g.M.sHk=function(Y,u){Y!==void 0&&(this.Ur=Y,u===void 0?Xj("Expected ad video start time on SS video changed"):this.SO.set(Y,u));var n=this.L.getPresentingPlayerType(!0),U=this.L.getVideoData(n),k;Y===void 0?k=null:k=this.Wk.get().K.get(Y)||null;this.L.getVideoData(1).fG("ads_ssvc",{pt:n,cpn:U==null?void 0:U.clientPlaybackNonce,crtt:this.L.getCurrentTime(1,!1),atlh:this.L.isAtLiveHead(),adstt:u,pid:Y,slid:k==null?void 0:k.layoutId});U?OfY(this,U,n):Xj("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.L.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:Y})}; g.M.Vp=function(Y,u){var n=Y.author,U=Y.clientPlaybackNonce,k=Y.isListed,m=Y.Gc,X=Y.title,S=Y.Pc,C=Y.C1,f=Y.isMdxPlayback,Q=Y.eU,N=Y.mdxEnvironment,Z=Y.isAutonav,T=Y.rM,r=Y.zE,K=Y.Sj,L=Y.videoId||"",R=Y.profilePicture||"",c=Y.QN||"",x=Y.Oe()||!1,W=Y.u6()||!1;Y=Y.Xx||void 0;m=this.Wk.get().K.get(m)||{layoutId:null,slotId:null};var E=this.L.getVideoData(1),J=E.W$();E=E.getPlayerResponse();u=1E3*this.L.getDuration(u);var O=1E3*this.L.getDuration(1),Xd,T0,SM=(E==null?void 0:(Xd=E.playerConfig)==null? void 0:(T0=Xd.daiConfig)==null?void 0:T0.enableDai)||!1,CY,uB;Xd=(E==null?void 0:(CY=E.playerConfig)==null?void 0:(uB=CY.daiConfig)==null?void 0:uB.enablePreroll)||!1;return Object.assign({},m,{videoId:L,author:n,clientPlaybackNonce:U,x_:u,iE:O,daiEnabled:SM,rW:Xd,isListed:k,W$:J,profilePicture:R,title:X,QN:c,Pc:S,C1:C,Xx:Y,isMdxPlayback:f,eU:Q,mdxEnvironment:N,isAutonav:Z,rM:T,zE:r,Sj:K,Oe:x,u6:W})}; g.M.nG=function(){this.listeners.length=0;this.T0=null;g.e.prototype.nG.call(this)};g.d(fa,g.e);g.M=fa.prototype;g.M.Wd=function(){var Y=this;ul(this.hJ.get())||(this.K=wh(function(){Y.L.gg()||Y.L.rL("ad",1)}))}; g.M.r9=function(){}; g.M.addListener=function(Y){this.listeners.push(Y)}; g.M.removeListener=function(Y){this.listeners=this.listeners.filter(function(u){return u!==Y})}; g.M.Cy=function(){}; g.M.playVideo=function(){this.L.playVideo()}; g.M.pauseVideo=function(){this.L.pauseVideo()}; g.M.resumeVideo=function(Y){this.MW(Y)&&this.L.playVideo()}; g.M.MW=function(Y){return this.L.getPlayerState(Y)===2}; g.M.getCurrentTimeSec=function(Y,u,n){var U=this.SG.get().Ur;if(Y===2&&!u&&U!==null)return il(this,U);h0(this.hJ.get(),"html5_ssap_use_cpn_to_get_time")||(n=void 0);return n!==void 0?this.L.getCurrentTime(Y,u,n):this.L.getCurrentTime(Y,u)}; g.M.getVolume=function(){return this.L.getVolume()}; g.M.isMuted=function(){return this.L.isMuted()}; g.M.getPresentingPlayerType=function(){return this.L.getPresentingPlayerType(!0)}; g.M.getPlayerState=function(Y){return this.L.getPlayerState(Y)}; g.M.getGetAdBreakContext=function(){return this.L.getGetAdBreakContext()}; g.M.isFullscreen=function(){return this.L.isFullscreen()}; g.M.isAtLiveHead=function(){return this.L.isAtLiveHead()}; g.M.y3=function(Y){this.L.y3(Y)}; g.M.H0J=function(){var Y=this.L.getPresentingPlayerType(!0),u=this.getCurrentTimeSec(Y,!1);if(Y===2){Y=g.A(this.listeners);for(var n=Y.next();!n.done;n=Y.next())n.value.Fu(u)}else if(Y===1)for(Y=g.A(this.Dt),n=Y.next();!n.done;n=Y.next())n.value.Cy(u)}; g.M.U1F=function(Y){for(var u=g.A(this.listeners),n=u.next();!n.done;n=u.next())n.value.Jb(Y,this.getPresentingPlayerType())}; g.M.onFullscreenToggled=function(Y){for(var u=g.A(this.listeners),n=u.next();!n.done;n=u.next())n.value.onFullscreenToggled(Y)}; g.M.onVolumeChange=function(){for(var Y=g.A(this.listeners),u=Y.next();!u.done;u=Y.next())u.value.onVolumeChange()}; g.M.qr=function(){for(var Y=this.L.isMinimized(),u=g.A(this.listeners),n=u.next();!n.done;n=u.next())n.value.qr(Y)}; g.M.AD=function(Y){for(var u=g.A(this.listeners),n=u.next();!n.done;n=u.next())n.value.AD(Y)}; g.M.pT=function(){for(var Y=this.L.tJ().UE(),u=g.A(this.listeners),n=u.next();!n.done;n=u.next())n.value.pF(Y)}; g.M.Hd=function(Y){for(var u=g.A(this.listeners),n=u.next();!n.done;n=u.next())n.value.Hd(Y)}; g.M.MY=function(){for(var Y=g.A(this.listeners),u=Y.next();!u.done;u=Y.next())u.value.MY()};g.d($6d,g.e);g.d(rW,g.e);rW.prototype.nG=function(){this.Sf.gg()||this.Sf.get().removeListener(this);g.e.prototype.nG.call(this)};Mc.prototype.fetch=function(Y){var u=Y.JC;return this.K.fetch(Y.Vi,{p_:Y.p_===void 0?void 0:Y.p_,Mr:u,cueProcessedMs:Y.cueProcessedMs===void 0?0:Y.cueProcessedMs}).then(function(n){return YuG(n,u)})};g.d(sn,g.e);g.M=sn.prototype;g.M.addListener=function(Y){this.listeners.push(Y)}; g.M.removeListener=function(Y){this.listeners=this.listeners.filter(function(u){return u!==Y})}; g.M.oB=function(Y){udu(this,Y,1)}; g.M.onAdUxClicked=function(Y,u){dW(this,function(n){n.NA(Y,u)})}; g.M.gb=function(Y){dW(this,function(u){u.tE(Y)})}; g.M.WH=function(Y){dW(this,function(u){u.sJ(Y)})}; g.M.gwG=function(Y){dW(this,function(u){u.hd(Y)})};GW.prototype.reduce=function(Y){switch(Y.event){case "unknown":return}var u=Y.identifier;var n=this.K[u];n?u=n:(n={Fx:null,D2:-Infinity},u=this.K[u]=n);n=Y.startSecs+Y.K/1E3;if(!(n=this.K.startSecs&&n.startSecs<=this.K.startSecs+this.K.Ox)){var U=void 0;if(Yi(this.hJ.get())&&n.identifier!==((U=this.K)==null?void 0:U.identifier)){var k=U=void 0,m=void 0,X=void 0;Rj(this.AJ.get(),"ocud","ccpi."+n.identifier+";ccpe."+n.event+";ccps."+n.startSecs+";\n ccpd."+n.Ox+";pcpi."+((U=this.K)==null?void 0:U.identifier)+ ";pcpe."+((k=this.K)==null?void 0:k.event)+";\n pcps."+((m=this.K)==null?void 0:m.startSecs)+";pcpd."+((X=this.K)==null?void 0:X.Ox)+";")}U=void 0;n.identifier!==((U=this.K)==null?void 0:U.identifier)&&Xj("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.K=n,k0C(this,n)}}; g.M.nG=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.i$,this),this.j=null);this.listeners.length=0;this.W7.length=0;g.e.prototype.nG.call(this)};g.M=Ka.prototype;g.M.vG=function(Y,u,n,U,k,m,X,S){return this.L.vG(Y,u,n,U,k,m,X,S)}; g.M.zs=function(Y,u){this.L.zs(Y,u)}; g.M.Lw=function(Y,u,n){this.L.Lw(Y,u,n)}; g.M.m8=function(Y){this.L.m8(Y)}; g.M.C4=function(Y,u,n,U,k,m,X,S){this.L.C4(Y,u,n,U,k,m,X,S)}; g.M.CY=function(Y){return this.L.CY(Y)}; g.M.finishSegmentByCpn=function(Y,u,n){n=PBg(n);this.L.finishSegmentByCpn(Y,u,n)};g.d(pa,g.e);g.d(CBg,g.e);g.d(fu$,g.e);g.d(Qt$,g.e);g.d(NGq,g.e);g.d(iYu,g.e);g.d(TGG,g.e);TGG.prototype.X=function(){return this.j};g.d(r7G,eh); r7G.prototype.X=function(Y){var u=Y.content;if(u.componentType==="shopping-companion")switch(Y.actionType){case 1:case 2:Y=this.K.getVideoData(1);this.K.Yw("updateKevlarOrC3Companion",{contentVideoId:Y&&Y.videoId,shoppingCompanionCarouselRenderer:u.renderer,layoutId:u.layoutId,macros:u.macros,onLayoutVisibleCallback:u.K,interactionLoggingClientData:u.interactionLoggingClientData});break;case 3:this.K.Yw("updateKevlarOrC3Companion",{})}else if(u.componentType==="action-companion")switch(Y.actionType){case 1:case 2:Y=this.K.getVideoData(1); this.K.Yw("updateKevlarOrC3Companion",{contentVideoId:Y&&Y.videoId,actionCompanionAdRenderer:u.renderer,layoutId:u.layoutId,macros:u.macros,onLayoutVisibleCallback:u.K,interactionLoggingClientData:u.interactionLoggingClientData});break;case 3:u.renderer&&(u=this.K.getVideoData(1),this.K.Yw("updateKevlarOrC3Companion",{contentVideoId:u&&u.videoId})),this.K.Yw("updateKevlarOrC3Companion",{})}else if(u.componentType==="image-companion")switch(Y.actionType){case 1:case 2:Y=this.K.getVideoData(1);this.K.Yw("updateKevlarOrC3Companion", {contentVideoId:Y&&Y.videoId,imageCompanionAdRenderer:u.renderer,layoutId:u.layoutId,macros:u.macros,onLayoutVisibleCallback:u.K,interactionLoggingClientData:u.interactionLoggingClientData});break;case 3:u=this.K.getVideoData(1),this.K.Yw("updateKevlarOrC3Companion",{contentVideoId:u&&u.videoId}),this.K.Yw("updateKevlarOrC3Companion",{})}else if(u.componentType==="top-banner-image-text-icon-buttoned")switch(Y.actionType){case 1:case 2:Y=this.K.getVideoData(1);this.K.Yw("updateKevlarOrC3Companion", {contentVideoId:Y&&Y.videoId,topBannerImageTextIconButtonedLayoutViewModel:u.renderer,layoutId:u.layoutId,macros:u.macros,onLayoutVisibleCallback:u.K,interactionLoggingClientData:u.interactionLoggingClientData});break;case 3:u.renderer&&(u=this.K.getVideoData(1),this.K.Yw("updateKevlarOrC3Companion",{contentVideoId:u&&u.videoId})),this.K.Yw("updateKevlarOrC3Companion",{})}else if(u.componentType==="banner-image")switch(Y.actionType){case 1:case 2:Y=this.K.getVideoData(1);this.K.Yw("updateKevlarOrC3Companion", {contentVideoId:Y&&Y.videoId,bannerImageLayoutViewModel:u.renderer,layoutId:u.layoutId,macros:u.macros,onLayoutVisibleCallback:u.K,interactionLoggingClientData:u.interactionLoggingClientData});break;case 3:u=this.K.getVideoData(1),this.K.Yw("updateKevlarOrC3Companion",{contentVideoId:u&&u.videoId}),this.K.Yw("updateKevlarOrC3Companion",{})}else if(u.componentType==="ads-engagement-panel")switch(u=u.renderer,Y.actionType){case 1:case 2:this.K.Yw("updateEngagementPanelAction",u.addAction);this.K.Yw("changeEngagementPanelVisibility", u.expandAction);break;case 3:this.K.Yw("changeEngagementPanelVisibility",u.hideAction),this.K.Yw("updateEngagementPanelAction",u.removeAction)}else if(u.componentType==="ads-engagement-panel-layout"){var n=u.renderer;switch(Y.actionType){case 1:case 2:this.K.Yw("updateEngagementPanelAction",{action:Rb(n.addAction),layoutId:u.layoutId,onLayoutVisibleCallback:u.K,interactionLoggingClientData:u.interactionLoggingClientData});this.K.Yw("changeEngagementPanelVisibility",Rb(n.expandAction));break;case 3:this.K.Yw("changeEngagementPanelVisibility", Rb(n.hideAction)),this.K.Yw("updateEngagementPanelAction",{action:Rb(n.removeAction)})}}};g.d(MM$,Vd);g.M=MM$.prototype;g.M.init=function(Y,u,n){Vd.prototype.init.call(this,Y,u,n);g.yV(this.X,"stroke-dasharray","0 "+this.j);this.X.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.G.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){FV(this);Vd.prototype.hide.call(this)}; g.M.show=function(){Op(this);Vd.prototype.show.call(this)}; g.M.HD=function(){this.hide()}; g.M.MS=function(){if(this.K){var Y=this.K.getProgressState();Y!=null&&Y.current!=null&&g.yV(this.X,"stroke-dasharray",Y.current/Y.seekableEnd*this.j+" "+this.j)}};g.d(stQ,P6);g.M=stQ.prototype; g.M.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);if(u.image&&u.image.thumbnail)if(u.headline)if(u.description)if(u.backgroundImage&&u.backgroundImage.thumbnail)if(u.actionButton&&g.z(u.actionButton,g.ie))if(Y=u.durationMilliseconds||0,typeof Y!=="number"||Y<=0)g.tl(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+Y));else if(u.navigationEndpoint){var U=this.api.getVideoData(2);if(U!=null){var k=u.image.thumbnail.thumbnails;k!=null&& k.length>0&&g.vq(g.DO(k[0].url))&&(k[0].url=U.profilePicture,g.vq(g.DO(U.profilePicture))&&zqu("VideoPlayer",239976093,"Expected non-empty profile picture."));k=u.backgroundImage.thumbnail.thumbnails;k!=null&&k.length>0&&g.vq(g.DO(k[0].url))&&(k[0].url=U.I_());k=u.headline;k!=null&&g.vq(g.DO(k.text))&&(k.text=U.author)}this.N.init($C("ad-image"),u.image,n);this.W.init($C("ad-text"),u.headline,n);this.X.init($C("ad-text"),u.description,n);this.CG.init($C("ad-image"),u.backgroundImage,n);U=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.W.element.classList.add("ytp-ad-action-interstitial-headline-light");this.X.element.classList.add("ytp-ad-action-interstitial-description-light");U.push("ytp-ad-action-interstitial-action-button-dark");this.api.Y().j&&(U.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),U.push("ytp-ad-action-interstitial-action-button-dark"));this.api.Y().V("enable_unified_action_endcap_on_web")&& !this.api.Y().j&&(U.push("ytp-ad-action-interstitial-action-button-unified"),this.dg.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Pz.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Cp.classList.add("ytp-ad-action-interstitial-card-unified"),this.oV.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.rg.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Fk.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.JJ.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new B6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,U);g.b(this,this.actionButton);this.actionButton.yF(this.dg); this.actionButton.init($C("button"),g.z(u.actionButton,g.ie),n);bk(this.actionButton.element);U=gH(this.actionButton.element);zL(this.actionButton.element,U+" This link opens in new tab");this.navigationEndpoint=u.navigationEndpoint;this.G.B(this.Fk,"click",this.PX,this);this.G.B(this.oV,"click",this.PX,this);!this.api.Y().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.Y().j||this.G.B(this.rg,"click",this.PX,this);this.K=this.BY?new r7(this.api,Y):new MG(Y);g.b(this,this.K);if(u.skipButton){(Y= g.z(u.skipButton,or$))&&this.K&&(this.skipButton=new f1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.K,this.xF),g.b(this,this.skipButton),this.skipButton.yF(this.element),this.skipButton.init($C("skip-button"),Y,n));if(n=u.adBadgeRenderer)if(n=g.z(n,BSJ))Y=new Z_(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,!0,!0),Y.yF(this.JJ),Y.init($C("simple-ad-badge"),n,this.macros),g.b(this,Y);if(n=u.adInfoRenderer)if(n=g.z(n,Qn))Y=new Ep(this.api,this.layoutId,this.interactionLoggingClientData, this.cz,this.element,void 0,!0),Y.yF(this.JJ),Y.init($C("ad-info-hover-text-button"),n,this.macros),g.b(this,Y)}else u.nonskippableOverlayRenderer&&(Y=g.z(u.nonskippableOverlayRenderer,NN))&&this.K&&(this.j=new ac(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.K,!1),g.b(this,this.j),this.j.yF(this.element),this.j.init($C("ad-preview"),Y,n));u.countdownRenderer&&(u=u.countdownRenderer,g.z(u,cqQ)&&this.K&&(n=new MM$(this.api,this.layoutId,this.interactionLoggingClientData,this.cz, this.K),g.b(this,n),n.yF(this.element),n.init($C("timed-pie-countdown"),g.z(u,cqQ),this.macros)));this.show();this.element.focus()}else g.tl(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.tl(Error("AdActionInterstitialRenderer has no button."));else g.tl(Error("AdActionInterstitialRenderer has no background AdImage."));else g.tl(Error("AdActionInterstitialRenderer has no description AdText."));else g.tl(Error("AdActionInterstitialRenderer has no headline AdText."));else g.tl(Error("AdActionInterstitialRenderer has no image."))}; g.M.clear=function(){g.Lb(this.G);this.hide()}; g.M.show=function(){dmG(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.j&&this.j.show();P6.prototype.show.call(this)}; g.M.hide=function(){dmG(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.j&&this.j.hide();P6.prototype.hide.call(this)}; g.M.PX=function(){this.navigationEndpoint&&(this.layoutId?this.cz.executeCommand(this.navigationEndpoint,this.layoutId):g.tl(Error("Missing layoutId for ad action interstitial.")))};var pc$={iconType:"CLOSE"},ow=new g.OW(320,63);g.d(KWB,P6);g.M=KWB.prototype; g.M.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);this.G=u;this.N=g.RL(this.G.onClickCommands||[]);this.JJ=this.G.onErrorCommand||null;if(Y=this.G.contentSupportedRenderer)Y=this.G.contentSupportedRenderer,u=this.G.adInfoRenderer||null,g.z(Y,ppg)?(this.W=g.fi("ytp-ad-overlay-ad-info-button-container",this.X.element),LW$(this,u),Y=BGX(this,g.z(Y,ppg))):g.z(Y,LGJ)?(this.W=g.fi("ytp-ad-overlay-ad-info-button-container",this.j.element),LW$(this,u),Y=oeR(this,g.z(Y,LGJ))):g.z(Y,tOu)?(this.W= g.fi("ytp-ad-overlay-ad-info-button-container",this.K.element),LW$(this,u),Y=c7$(this,g.z(Y,tOu))):(g.tl(Error("InvideoOverlayAdRenderer content could not be initialized.")),Y=!1);Y&&(this.show(),veX(this,!0))}; g.M.clear=function(){veX(this,!1);this.Fk.reset();this.oV=0;this.X.hide();this.logVisibility(this.X.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.hide();this.dispose()}; g.M.hvg=function(){this.dg&&(this.layoutId?this.cz.executeCommand(this.dg,this.layoutId):g.tl(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.M.ZO=function(){a:{if(this.G&&this.G.closeButton&&this.G.closeButton.buttonRenderer){var Y=this.G.closeButton.buttonRenderer;if(Y.serviceEndpoint){Y=[Y.serviceEndpoint];break a}}Y=[]}Y=g.A(Y);for(var u=Y.next();!u.done;u=Y.next())u=u.value,this.layoutId?this.cz.executeCommand(u,this.layoutId):g.tl(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.M.Wqa=function(){this.CG||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.M.aI=function(){this.CG||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.aI("invideo-overlay")}; g.M.AJJ=function(Y){Y.target===this.W&&g.fi("ytp-ad-button",this.Pz.element).click()};g.d(RSL,Vd);g.M=RSL.prototype;g.M.init=function(Y,u,n){Vd.prototype.init.call(this,Y,u,n);Y=u.durationMs;this.X=Y==null||Y===0?0:Y+this.K.getProgressState().current*1E3;if(u.text)var U=u.text.templatedAdText;else u.staticMessage&&(U=u.staticMessage);this.messageText.init($C("ad-text"),U,n);this.messageText.yF(this.j.element);this.G.show(100);this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){DmL(this,!1);Vd.prototype.hide.call(this);this.j.hide();this.messageText.hide();FV(this)}; g.M.show=function(){DmL(this,!0);Vd.prototype.show.call(this);Op(this);this.j.show();this.messageText.show()}; g.M.HD=function(){this.hide()}; g.M.MS=function(){if(this.K!=null){var Y=this.K.getProgressState();Y!=null&&Y.current!=null&&(Y=1E3*Y.current,!this.oV&&Y>=this.X?(this.G.hide(),this.oV=!0):this.messageText&&this.messageText.isTemplated()&&(Y=Math.max(0,Math.ceil((this.X-Y)/1E3)),Y!==this.W&&(yd(this.messageText,{TIME_REMAINING:String(Y)}),this.W=Y)))}};g.d(xm$,P6);g.M=xm$.prototype; g.M.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,{});u.image&&u.image.thumbnail?u.headline?u.description?u.actionButton&&g.z(u.actionButton,g.ie)?(this.X.init($C("ad-image"),u.image,n),this.j.init($C("ad-text"),u.headline,n),this.G.init($C("ad-text"),u.description,n),this.actionButton=new B6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,["ytp-ad-underlay-action-button"]),u.backgroundColor&&g.yV(this.element,"background-color",g.D_(u.backgroundColor)),g.b(this,this.actionButton), this.actionButton.yF(this.W),this.actionButton.init($C("button"),g.z(u.actionButton,g.ie),n),Y=g.YF(this.api.Y().experiments,"player_underlay_video_width_fraction"),this.api.Y().V("place_shrunken_video_on_left_of_player")?(u=this.K,g.mU(u,"ytp-ad-underlay-left-container"),g.UN(u,"ytp-ad-underlay-right-container"),g.yV(this.K,"margin-left",Math.round((Y+.02)*100)+"%")):(u=this.K,g.mU(u,"ytp-ad-underlay-right-container"),g.UN(u,"ytp-ad-underlay-left-container")),g.yV(this.K,"width",Math.round((1-Y- .04)*100)+"%"),this.api.I4()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.oy.bind(this)),this.api.addEventListener("resize",this.KS.bind(this))):g.tl(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.tl(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.tl(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.tl(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.M.show=function(){luJ(!0);this.actionButton&&this.actionButton.show();P6.prototype.show.call(this)}; g.M.hide=function(){luJ(!1);this.actionButton&&this.actionButton.hide();P6.prototype.hide.call(this)}; g.M.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.oy.bind(this));this.api.removeEventListener("resize",this.KS.bind(this));this.hide()}; g.M.onClick=function(Y){P6.prototype.onClick.call(this,Y);this.actionButton&&g.jw(this.actionButton.element,Y.target)&&this.api.pauseVideo()}; g.M.oy=function(Y){Y==="transitioning"?(this.K.classList.remove("ytp-ad-underlay-clickable"),this.show()):Y==="visible"?this.K.classList.add("ytp-ad-underlay-clickable"):Y==="hidden"&&(this.hide(),this.K.classList.remove("ytp-ad-underlay-clickable"))}; g.M.KS=function(Y){Y.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):Y.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.yV(this.j.element,"font-size",Y.width/40+"px")};g.d(cK,P6); cK.prototype.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);u.toggledLoggingParams&&(this.toggledLoggingParams=u.toggledLoggingParams);u.answer&&g.z(u.answer,g.ie)?(Y=new B6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),Y.yF(this.answer),Y.init($C("ytp-ad-survey-answer-button"),g.z(u.answer,g.ie),n),Y.show()):u.answer&&g.z(u.answer,tv)&&(this.K=new w5(this.api,this.layoutId,this.interactionLoggingClientData,this.cz, ["ytp-ad-survey-answer-toggle-button"]),this.K.yF(this.answer),g.b(this,this.K),this.K.init($C("survey-answer-button"),g.z(u.answer,tv),n));this.show()}; cK.prototype.lZ=function(Y){this.layoutId?Dp(this.cz,Y,this.layoutId,this.macros):(Y=new g.zP("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.tl(Y))}; cK.prototype.onClick=function(Y){P6.prototype.onClick.call(this,Y);if(this.api.Y().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; cK.prototype.clear=function(){this.hide()};g.d(hSJ,P6);hSJ.prototype.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);u.answer&&g.z(u.answer,tv)&&(this.button=new w5(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.yF(this.K),this.button.init($C("survey-none-of-the-above-button"),g.z(u.answer,tv),n));this.show()};g.d(vK,B6);vK.prototype.init=function(Y,u,n){B6.prototype.init.call(this,Y,u,n);Y=!1;u.text&&(u=g.Cw(u.text),Y=!g.vq(u));Y||g.Br(Error("No submit text was present in the renderer."))}; vK.prototype.onClick=function(Y){this.publish("l");B6.prototype.onClick.call(this,Y)};g.d(Rw,P6); Rw.prototype.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);if(Y=u.skipOrPreviewRenderer)g.z(Y,h8)?(Y=g.z(Y,h8),n=new NG(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.G,!0),n.yF(this.skipOrPreview),n.init($C("skip-button"),Y,this.macros),g.b(this,n),this.K=n):g.z(Y,NN)&&(Y=g.z(Y,NN),n=new ac(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.G,!1),n.yF(this.skipOrPreview),n.init($C("ad-preview"),Y,this.macros),n.oV.show(100),n.show(),g.b(this,n), this.K=n);this.K==null&&(Y=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(u)),g.tl(Y));u.submitButton&&(Y=u.submitButton,g.z(Y,g.ie)&&(Y=g.z(Y,g.ie),n=new vK(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),n.yF(this.submitButton),n.init($C("survey-submit"),Y,this.macros),g.b(this,n),this.j=n));if(Y=u.adBadgeRenderer)Y=g.z(Y,BSJ),n=new Z_(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,!0,!0,!0),n.yF(this.X),n.init($C("simple-ad-badge"), Y,this.macros),this.adBadge=n.element,g.b(this,n);if(Y=u.adDurationRemaining)Y=g.z(Y,AqJ),n=new GQ(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.G,void 0,!0),n.yF(this.X),n.init($C("ad-duration-remaining"),Y,this.macros),g.b(this,n);(u=u.adInfoRenderer)&&g.z(u,Qn)&&(Y=new Ep(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.element,void 0,!0),g.b(this,Y),this.adBadge!==void 0?this.X.insertBefore(Y.element,this.adBadge.nextSibling):Y.yF(this.X),Y.init($C("ad-info-hover-text-button"), g.z(u,Qn),this.macros));this.show()}; Rw.prototype.clear=function(){this.hide()};g.d(DV,P6);DV.prototype.init=function(Y,u,n){P6.prototype.init.call(this,Y,u,n);IuL(this)}; DV.prototype.show=function(){this.X=Date.now();P6.prototype.show.call(this)}; DV.prototype.AK=function(){};g.d(zS$,DV);g.M=zS$.prototype;g.M.init=function(Y,u,n){var U=this;DV.prototype.init.call(this,Y,u,n);u.questionText&&wcL(this,u.questionText);u.answers&&u.answers.forEach(function(k,m){g.z(k,p7)&&WW$(U,g.z(k,p7),n,m)}); this.W=new Set(this.j.map(function(k){return k.K.K})); (Y=u.noneOfTheAbove)&&(Y=g.z(Y,KGR))&&geG(this,Y,n);u.surveyAdQuestionCommon&&bY$(this,u.surveyAdQuestionCommon);u.submitEndpoints&&(this.submitEndpoints=u.submitEndpoints);this.B(this.element,"change",this.onChange);this.show()}; g.M.AK=function(){Eey(this,!1);this.G.j.subscribe("l",this.Rvz,this)}; g.M.onChange=function(Y){Y.target===this.noneOfTheAbove.button.K?HYQ(this):this.W.has(Y.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Eey(this,!0))}; g.M.Rvz=function(){var Y=[],u=this.j.reduce(function(k,m,X){var S=m.toggledLoggingParams;m.K&&m.K.isToggled()&&S&&(k.push(S),Y.push(X));return k},[]).join("&"),n=this.submitEndpoints.map(function(k){if(!k.loggingUrls)return k; k=g.Ml(k);k.loggingUrls=k.loggingUrls.map(function(m){m.baseUrl&&(m.baseUrl=sf(m.baseUrl,u));return m}); return k}); if(n){n=g.A(n);for(var U=n.next();!U.done;U=n.next())U=U.value,this.layoutId?Dp(this.cz,U,this.layoutId,this.macros):g.tl(Error("Missing layoutId for multi_select_question."))}this.api.Y().V("supports_multi_step_on_desktop")&&this.oV(Y)}; g.M.clear=function(){this.api.Y().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.d(x0,DV);x0.prototype.init=function(Y,u,n){var U=this;DV.prototype.init.call(this,Y,u,n);u.questionText&&wcL(this,u.questionText);u.answers&&u.answers.forEach(function(k,m){g.z(k,p7)&&WW$(U,g.z(k,p7),n,m)}); u.surveyAdQuestionCommon?bY$(this,u.surveyAdQuestionCommon):U$(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(u)));this.show()}; x0.prototype.clear=function(){this.api.Y().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.d(ll,P6);ll.prototype.init=function(Y,u,n){var U=this;P6.prototype.init.call(this,Y,u,n);if(this.api.Y().V("supports_multi_step_on_desktop")){var k;this.conditioningRules=(k=u.conditioningRules)!=null?k:[];var m;this.j=(m=u.questions)!=null?m:[];var X;((X=u.questions)==null?0:X.length)&&FWu(this,0)}else(u.questions||[]).forEach(function(S){g.z(S,CB)?VMQ(U,g.z(S,CB),n):g.z(S,S1)&&OYC(U,g.z(S,S1),n)}); this.show()}; ll.prototype.clear=function(){this.api.Y().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; ll.prototype.G=function(Y){var u=this;if(this.api.Y().V("supports_multi_step_on_desktop")){var n;if((n=this.conditioningRules)==null?0:n.length){var U;if(Y.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(k){return k.questionIndex===u.K})==null)g.tl(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(k){if(k.questionIndex===u.K)switch(k.condition){case "CONDITION_ALL_OF":var m;if((m=k.answerIndices)==null?0:m.every(function(S){return Y.includes(S)}))U=k.nextQuestionIndex; break;case "CONDITION_ANY_OF":var X;if((X=k.answerIndices)==null?0:X.some(function(S){return Y.includes(S)}))U=k.nextQuestionIndex; break;default:g.tl(Error("Expected specified condition in survey conditioning rules."))}}),U!=null)FWu(this,U); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.tl(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.d(h9,P6); h9.prototype.init=function(Y,u,n){var U=this;P6.prototype.init.call(this,Y,u,n);Y=u.timeoutSeconds||0;if(typeof Y!=="number"||Y<0)g.tl(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+Y));else if(u.timeoutCommands)if(u.text)if(u.ctaButton&&g.z(u.ctaButton,g.ie))if(u.brandImage)if(u.backgroundImage&&g.z(u.backgroundImage,ZH)&&g.z(u.backgroundImage,ZH).landscape){this.layoutId||g.tl(Error("Missing layoutId for survey interstitial."));J7X(this.interstitial,g.z(u.backgroundImage, ZH).landscape);J7X(this.logoImage,u.brandImage);g.Ki(this.text,g.Cw(u.text));var k=["ytp-ad-survey-interstitial-action-button"];k.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new B6(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,k);g.b(this,this.actionButton);this.actionButton.yF(this.j);this.actionButton.init($C("button"),g.z(u.ctaButton,g.ie),n);this.actionButton.show();this.K=new r7(this.api,Y*1E3);this.K.subscribe("g",function(){U.transition.hide()}); g.b(this,this.K);this.B(this.element,"click",function(m){var X=m.target===U.interstitial;m=U.actionButton.element.contains(m.target);if(X||m)if(U.transition.hide(),X)U.api.onAdUxClicked(U.componentType,U.layoutId)}); this.transition.show(100)}else g.tl(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.tl(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.tl(Error("SurveyTextInterstitialRenderer has no button."));else g.tl(Error("SurveyTextInterstitialRenderer has no text."));else g.tl(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; h9.prototype.clear=function(){this.hide()}; h9.prototype.show=function(){quC(!0);P6.prototype.show.call(this)}; h9.prototype.hide=function(){quC(!1);P6.prototype.hide.call(this)};g.d(wW,Vd);g.M=wW.prototype; g.M.init=function(Y,u){Vd.prototype.init.call(this,Y,u,{});if(u.durationMilliseconds){if(u.durationMilliseconds<0){g.tl(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+u.durationMilliseconds));return}this.j=u.durationMilliseconds}else this.j=this.K.SS();var n;if((n=u.previewText)==null||!n.text||g.vq(u.previewText.text))g.tl(Error("No text is returned for AdPreview."));else{this.W=u.previewText;u.previewText.isTemplated||g.Ki(this.X,u.previewText.text);var U; if(((U=this.api.getVideoData(1))==null?0:U.T3)&&u.previewImage){var k,m;(Y=((m=Ng(((k=u.previewImage)==null?void 0:k.sources)||[],52,!1))==null?void 0:m.url)||"")&&Y.length?(this.previewImage=new g.XV({D:"img",C:"ytp-preview-ad__image",T:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",Y),g.b(this,this.previewImage),this.previewImage.yF(this.element)):g.tl(Error("Failed to get imageUrl in AdPreview."))}else this.X.classList.add("ytp-preview-ad__text--padding--wide")}}; g.M.clear=function(){this.hide()}; g.M.hide=function(){FV(this);Vd.prototype.hide.call(this)}; g.M.show=function(){Op(this);Vd.prototype.show.call(this)}; g.M.HD=function(){this.hide()}; g.M.MS=function(){if(this.K){var Y=this.K.getProgressState();if(Y!=null&&Y.current)if(Y=1E3*Y.current,Y>=this.j)this.transition.hide();else{var u;if((u=this.W)==null?0:u.isTemplated)if(u=Math.max(0,Math.ceil((this.j-Y)/1E3)),u!==this.G){var n,U;(Y=(n=this.W)==null?void 0:(U=n.text)==null?void 0:U.replace("{TIME_REMAINING}",String(u)))&&g.Ki(this.X,Y);this.G=u}}}};g.d(WK,P6); WK.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});var n,U;if((Y=((U=Ng(((n=u.image)==null?void 0:n.sources)||[],auB(u),!0))==null?void 0:U.url)||"")&&Y.length){n=this.Xk("ytp-ad-avatar");n.src=Y;var k,m;if(U=(k=u.interaction)==null?void 0:(m=k.accessibility)==null?void 0:m.label)n.alt=U;switch(u.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(u.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.tl(Error("Failed to get imageUrl in AdAvatar."))}; WK.prototype.clear=function(){this.hide()}; WK.prototype.onClick=function(Y){P6.prototype.onClick.call(this,Y)};g.d(ej,P6); ej.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});var n;Y=(n=u.label)==null?void 0:n.content;if((n=Y!=null&&!g.vq(Y))||u.iconImage){n&&(this.buttonText=new g.XV({D:"span",C:"ytp-ad-button-vm__text",RV:Y}),g.b(this,this.buttonText),this.buttonText.yF(this.element));var U,k,m=((U=u.interaction)==null?0:(k=U.accessibility)==null?0:k.label)||n?Y:"";m&&zL(this.element,m+" This link opens in new tab");bk(this.element);if(u.iconImage){U=void 0;if(u.iconImage){a:{k=u.iconImage;if(k.sources)for(k= g.A(k.sources),Y=k.next();!Y.done;Y=k.next())if(Y=Y.value,m=void 0,(m=Y.clientResource)==null?0:m.imageName){k=Y;break a}k=void 0}if(k){var X;U={iconType:(X=k.clientResource)==null?void 0:X.imageName}}}X=te(U,!1,this.j);X!=null&&(this.buttonIcon=new g.XV({D:"span",C:"ytp-ad-button-vm__icon",U:[X]}),g.b(this,this.buttonIcon),u.iconLeading?(Go(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):n?(this.buttonIcon.yF(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.yF(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(u.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.api.V("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.K?"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(u.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.Br(Error("AdButton does not have label or an icon."))}; ej.prototype.clear=function(){this.hide()}; ej.prototype.onClick=function(Y){P6.prototype.onClick.call(this,Y)};g.d($mJ,Vd);g.M=$mJ.prototype; g.M.init=function(Y,u){Vd.prototype.init.call(this,Y,u,{});if(Y=g.z(u.avatar,On)){var n=u.headline;if(n){var U=u.description;if(U){var k=g.z(u.button,J9);k?(this.adAvatar.init($C("ad-avatar"),Y),this.headline.init($C("ad-simple-attributed-string"),new jZ(n)),this.description.init($C("ad-simple-attributed-string"),new jZ(U)),n.content&&n.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init($C("ad-button"),k), this.startMilliseconds=u.startMs||0,this.api.I4()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.fS.bind(this)),Op(this)):g.tl(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.tl(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.tl(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.tl(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.M.MS=function(){if(this.K){var Y=this.K.getProgressState();Y&&Y.current&&1E3*Y.current>=this.startMilliseconds&&(FV(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.M.HD=function(){this.clear()}; g.M.onClick=function(Y){this.api.pauseVideo();Vd.prototype.onClick.call(this,Y)}; g.M.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.fS.bind(this))}; g.M.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Vd.prototype.show.call(this)}; g.M.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Vd.prototype.hide.call(this)}; g.M.fS=function(Y){Y==="hidden"?this.show():this.hide()};g.d(bl,P6);g.M=bl.prototype; g.M.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});if(!u.label||g.vq(u.label))g.tl(Error("No label is returned for SkipAdButton."));else if(g.Ki(this.G,u.label),Y=te({iconType:"SKIP_NEXT_NEW"}),Y==null)g.tl(Error("Unable to retrieve icon for SkipAdButton"));else if(this.X=new g.XV({D:"span",C:"ytp-skip-ad-button__icon",U:[Y]}),g.b(this,this.X),this.X.yF(this.element),this.api.Y().experiments.vz("enable_skip_to_next_messaging")&&(u=g.DO(u.targetId)))this.j=!0,this.element.setAttribute("data-tooltip-target-id",u), this.element.setAttribute("data-tooltip-target-fixed","")}; g.M.onClick=function(Y){Y&&Y.preventDefault();var u,n;Y$t(Y,{contentCpn:(n=(u=this.api.getVideoData(1))==null?void 0:u.clientPlaybackNonce)!=null?n:""})===0?this.api.Yw("onAbnormalityDetected"):(P6.prototype.onClick.call(this,Y),this.api.Yw("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.M.clear=function(){this.K.reset();this.hide()}; g.M.hide=function(){P6.prototype.hide.call(this)}; g.M.show=function(){this.K.start();P6.prototype.show.call(this);this.j&&this.api.Y().experiments.vz("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.d(YqC,Vd);g.M=YqC.prototype; g.M.init=function(Y,u){Vd.prototype.init.call(this,Y,u,{});Y=g.z(u.preskipState,wpJ);var n;if((n=this.api.getVideoData())==null?0:n.isDaiEnabled()){if(!Y){g.tl(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.j=new wW(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.K);g.b(this,this.j);this.j.yF(this.element);var U;(U=this.j)==null||U.init($C("preview-ad"),Y);(n=this.j)!=null&&(n.transition.show(100),n.show())}(n=g.z(u.skippableState,eVB))?(u.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=u.skipOffsetMilliseconds:(g.Br(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.X.init($C("skip-button"),n),this.show()):g.tl(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.M.show=function(){Op(this);Vd.prototype.show.call(this)}; g.M.hide=function(){!this.isSkippable&&this.j?this.j.hide():this.X&&this.X.hide();FV(this);Vd.prototype.hide.call(this)}; g.M.clear=function(){var Y;(Y=this.j)==null||Y.clear();this.X&&this.X.clear();FV(this);Vd.prototype.hide.call(this)}; g.M.HD=function(){this.hide()}; g.M.MS=function(){if(1E3*this.K.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var Y;(Y=this.j)!=null&&Y.transition.hide();(Y=this.X)!=null&&(Y.transition.show(),Y.show())}};g.d(Iw,P6); Iw.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});if(u.label){var n;((n=u.label)==null?0:n.content)&&!g.vq(u.label.content)&&(this.linkText=new g.XV({D:"span",C:"ytp-visit-advertiser-link__text",RV:u.label.content}),g.b(this,this.linkText),this.linkText.yF(this.element));var U,k;if((U=u.interaction)==null?0:(k=U.accessibility)==null?0:k.label)zL(this.element,u.interaction.accessibility.label+" This link opens in new tab");else{var m;((m=u.label)==null?0:m.content)&&!g.vq(u.label.content)&&zL(this.element, u.label.content+" This link opens in new tab")}bk(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.tl(Error("No label found in VisitAdvertiserLink."))}; Iw.prototype.onClick=function(Y){P6.prototype.onClick.call(this,Y);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Iw.prototype.clear=function(){this.hide()};g.d(zW,P6); zW.prototype.init=function(Y,u,n,U){P6.prototype.init.call(this,Y,u,{});if(u.skipOrPreview){n=u.skipOrPreview;Y=g.z(n,buC);n=g.z(n,wpJ);if(Y)this.h9=new YqC(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.j),g.b(this,this.h9),this.h9.yF(this.N),this.h9.init($C("skip-ad"),Y);else{var k;n&&((k=this.api.getVideoData())==null?0:k.isDaiEnabled())&&(this.G=new wW(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.j,1),g.b(this,this.G),this.G.yF(this.N),this.G.init($C("ad-preview"), n),k=this.G,k.transition.show(100),k.show())}if(k=g.z(u.skipOrPreview,buC))var m=k.skipOffsetMilliseconds}u.playerAdCard&&(k=g.z(u.playerAdCard,WGy))&&(this.playerAdCard=new $mJ(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.j),g.b(this,this.playerAdCard),this.playerAdCard.yF(this.rg),this.playerAdCard.init($C("ad-avatar-lockup-card"),k));u.adBadgeRenderer&&((k=g.z(u.adBadgeRenderer,Fl))?(this.X=new p1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,!0),g.b(this, this.X),this.X.yF(this.K),this.X.init($C("ad-badge"),k)):g.tl(Error("AdBadgeViewModel is not found in player overlay layout.")));u.adPodIndex&&(k=g.z(u.adPodIndex,D5B))&&(this.adPodIndex=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,this.adPodIndex),this.adPodIndex.yF(this.K),this.adPodIndex.init($C("ad-pod-index"),k));u.adInfoRenderer&&((k=g.z(u.adInfoRenderer,Qn))?(this.adInfoButton=new Ep(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.element, void 0,!0),g.b(this,this.adInfoButton),this.X!==void 0?this.K.insertBefore(this.adInfoButton.element,this.X.element.nextSibling):this.adInfoButton.yF(this.K),this.adInfoButton.init($C("ad-info-hover-text-button"),k,this.macros)):g.Br(Error("AdInfoRenderer is not found in player overlay layout.")));var X;k=(X=this.api.getVideoData())==null?void 0:X.isDaiEnabled();u.adDurationRemaining&&k&&(X=g.z(u.adDurationRemaining,AqJ))&&(this.adDurationRemaining=new GQ(this.api,this.layoutId,this.interactionLoggingClientData, this.cz,this.j,U.videoAdDurationSeconds,!0),g.b(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.K.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.yF(this.K),this.adDurationRemaining.init($C("ad-duration-remaining"),X,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));u.visitAdvertiserLink&&(U=g.z(u.visitAdvertiserLink,zVX))&&(this.visitAdvertiserLink=new Iw(this.api,this.layoutId, this.interactionLoggingClientData,this.cz),g.b(this,this.visitAdvertiserLink),this.visitAdvertiserLink.yF(this.K),this.visitAdvertiserLink.init($C("visit-advertiser-link"),U));u.adDisclosureBanner&&(u=g.z(u.adDisclosureBanner,RVg))&&(this.adDisclosureBanner=new tc(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,this.adDisclosureBanner),this.adDisclosureBanner.yF(this.oV),this.adDisclosureBanner.init($C("ad-disclosure-banner"),u));this.W=new cY(this.api,this.j,m,!0);g.b(this, this.W);g.uc(this.api,this.W.element,4);this.show()}; zW.prototype.clear=function(){this.hide()};g.d(uG$,P6);g.M=uG$.prototype; g.M.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});if(u!=null&&u.title)if(Y=u.title)if(this.headline.init($C("ad-simple-attributed-string"),new jZ(Y)),Y=g.z(u.moreInfoButton,J9)){if(this.moreInfoButton.init($C("ad-button"),Y),u.descriptions)u.descriptions.length>0&&(Y=u.descriptions[0])&&(this.K=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,this.K),this.K.yF(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.K.init($C("ad-simple-attributed-string"), new jZ(Y))),u.descriptions.length>1&&(u=u.descriptions[1])&&(this.j=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,this.j),this.j.yF(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.j.init($C("ad-simple-attributed-string"),new jZ(u)))}else g.tl(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.tl(Error("No headline found in AdGridCardText."));else g.tl(Error("No headline found in AdGridCardText."))}; g.M.onClick=function(Y){P6.prototype.onClick.call(this,Y);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.M.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var Y;(Y=this.K)==null||Y.clear();var u;(u=this.j)==null||u.clear()}; g.M.hide=function(){this.headline.hide();this.moreInfoButton.hide();var Y;(Y=this.K)==null||Y.hide();var u;(u=this.j)==null||u.hide();P6.prototype.hide.call(this)}; g.M.show=function(){P6.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var Y;(Y=this.K)==null||Y.show();var u;(u=this.j)==null||u.show()};g.d(gW,P6);gW.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});if(u!=null&&u.gridCards)if(u.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.tl(Error("Only single column style is currently supported in AdGridCardCollection."));else for(Y=g.A(u.gridCards),u=Y.next();!u.done;u=Y.next()){if(u=g.z(u.value,hVL)){var n=new uG$(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);g.b(this,n);n.yF(this.element);n.init($C("ad-grid-card-text"),u);this.K.push(n)}}else g.tl(Error("No grid cards found in AdGridCardCollection."))}; gW.prototype.show=function(){for(var Y=g.A(this.K),u=Y.next();!u.done;u=Y.next())u.value.show();P6.prototype.show.call(this)}; gW.prototype.clear=function(){this.hide();for(var Y=g.A(this.K),u=Y.next();!u.done;u=Y.next())u.value.clear()}; gW.prototype.hide=function(){for(var Y=g.A(this.K),u=Y.next();!u.done;u=Y.next())u.value.hide();P6.prototype.hide.call(this)};g.d(En,Vd);g.M=En.prototype;g.M.init=function(Y,u,n,U,k){k=k===void 0?0:k;Vd.prototype.init.call(this,Y,u,n,U);this.playerProgressOffsetMs=k;Op(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.gf.bind(this));this.api.addEventListener("resize",this.Ry.bind(this));this.api.I4()?(this.j=!0,this.api.y3(!0),this.show()):this.hide()}; g.M.MS=function(){if(this.K){var Y=this.K.getProgressState();Y&&Y.current&&!this.j&&1E3*Y.current>=this.playerProgressOffsetMs&&(this.j=!0,this.api.y3(!0),this.show())}}; g.M.HD=function(){this.j&&this.api.y3(!1);this.hide()}; g.M.clear=function(){this.api.y3(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.gf.bind(this));this.api.removeEventListener("resize",this.Ry.bind(this));FV(this);this.hide()}; g.M.hide=function(){n$X(!1);Vd.prototype.hide.call(this)}; g.M.show=function(){n$X(!0);Vd.prototype.show.call(this)};g.d(UXu,En);g.M=UXu.prototype; g.M.init=function(Y,u,n,U){if(u!=null&&u.adGridCardCollection)if(u!=null&&u.adButton){var k=Number(u.playerProgressOffsetMs||"0");isNaN(k)?En.prototype.init.call(this,Y,u,n,U):En.prototype.init.call(this,Y,u,n,U,k);Y=u.headline;n=g.z(u.adAvatar,On);Y&&n?(this.headline=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,this.headline),this.headline.yF(this.Xk("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init($C("ad-simple-attributed-string"),new jZ(Y)), this.adAvatar=new WK(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,this.adAvatar),this.adAvatar.yF(this.Xk("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init($C("ad-avatar"),n)):this.G.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");Y=g.z(u.adGridCardCollection,lOX);this.adGridCardCollection.init($C("ad-grid-card-collection"),Y);u=g.z(u.adButton,J9);this.adButton.init($C("ad-button"),u); this.hide()}else g.tl(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.tl(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.M.onClick=function(Y){(this.adButton&&g.jw(this.adButton.element,Y.target)||this.adAvatar&&g.jw(this.adAvatar.element,Y.target))&&this.api.pauseVideo();En.prototype.onClick.call(this,Y);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.M.Ry=function(){}; g.M.clear=function(){this.hide();var Y;(Y=this.headline)==null||Y.clear();var u;(u=this.adAvatar)==null||u.clear();this.adGridCardCollection.clear();this.adButton.clear();En.prototype.clear.call(this)}; g.M.show=function(){var Y;(Y=this.headline)==null||Y.show();var u;(u=this.adAvatar)==null||u.show();this.adGridCardCollection.show();this.adButton.show();En.prototype.show.call(this)}; g.M.hide=function(){var Y;(Y=this.headline)==null||Y.hide();var u;(u=this.adAvatar)==null||u.hide();this.adGridCardCollection.hide();this.adButton.hide();En.prototype.hide.call(this)}; g.M.gf=function(Y){Y==="transitioning"?(this.X.classList.remove("ytp-ad-underlay-clickable"),this.show()):Y==="visible"?this.X.classList.add("ytp-ad-underlay-clickable"):Y==="hidden"&&(this.hide(),this.X.classList.remove("ytp-ad-underlay-clickable"))};g.d(HK,P6); HK.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});if(u.attributes===void 0)g.tl(Error("No attributes found in AdDetailsLineViewModel."));else if(u.style===void 0)g.tl(Error("No style found in AdDetailsLineViewModel."));else{Y=g.A(u.attributes);for(var n=Y.next();!n.done;n=Y.next())if(n=n.value,n.text!==void 0){n=n.text;var U=u.style,k=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);g.b(this,k);k.yF(this.element);a:switch(U){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":U="ytp-ad-details-line__text--style-responsive"; break a;default:U="ytp-ad-details-line__text--style-standard"}k.element.classList.add(U);k.init($C("ad-simple-attributed-string"),new jZ(n));this.K.push(k)}this.show()}}; HK.prototype.show=function(){this.K.forEach(function(Y){Y.show()}); P6.prototype.show.call(this)}; HK.prototype.clear=function(){this.hide()}; HK.prototype.hide=function(){this.K.forEach(function(Y){Y.hide()}); P6.prototype.hide.call(this)};g.d(y_,P6);y_.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});var n,U;(Y=((U=Ng(((n=u.image)==null?void 0:n.sources)||[]))==null?void 0:U.url)||"")&&Y.length?(n=this.Xk("ytp-image-background-image"),g.yV(n,"backgroundImage","url("+Y+")"),u.blurLevel!==void 0&&g.yV(n,"filter","blur("+u.blurLevel+"px)"),u.gradient!==void 0&&(u=new g.H({D:"div",Oc:["ytp-image-background--gradient-vertical"]}),g.b(this,u),u.yF(this.element)),this.show()):g.tl(Error("Failed to get imageUrl in ImageBackground."))}; y_.prototype.clear=function(){this.hide()};g.d(k$$,Vd);g.M=k$$.prototype;g.M.init=function(Y,u){Vd.prototype.init.call(this,Y,u,{});g.yV(this.X,"stroke-dasharray","0 "+this.j);this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){FV(this);Vd.prototype.hide.call(this)}; g.M.show=function(){Op(this);Vd.prototype.show.call(this)}; g.M.HD=function(){this.hide()}; g.M.MS=function(){if(this.K){var Y=this.K.getProgressState();Y!=null&&Y.current!=null&&g.yV(this.X,"stroke-dasharray",Y.current/Y.seekableEnd*this.j+" "+this.j)}};g.d(V_,P6); V_.prototype.init=function(Y,u){P6.prototype.init.call(this,Y,u,{});if(XuC(u)){this.adAvatar=new WK(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);g.b(this,this.adAvatar);this.adAvatar.yF(this.Xk("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init($C("ad-avatar"),g.z(u.adAvatar,On));this.headline=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz);g.b(this,this.headline);this.headline.yF(this.Xk("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($C("ad-simple-attributed-string"),new jZ(u.headline));if(Y=g.z(u.adDetailsLine,vrg))this.detailsLine=new HK(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,this.detailsLine),this.detailsLine.yF(this.Xk("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init($C("ad-details-line"),Y);this.adButton=new ej(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,!0);g.b(this,this.adButton); this.adButton.yF(this.Xk("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init($C("ad-button"),g.z(u.adButton,J9));this.adBadge=new p1(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,!0);g.b(this,this.adBadge);this.adBadge.yF(this.G);this.adBadge.init($C("ad-badge"),g.z(u.adBadge,Fl));this.adInfoButton=new Ep(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.element,void 0,!0);g.b(this,this.adInfoButton);this.adInfoButton.yF(this.G); this.adInfoButton.init($C("ad-info-hover-text-button"),g.z(u.adInfoRenderer,Qn),this.macros);if(Y=g.z(u.skipAdButton,eVB))this.skipAdButton=new bl(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,this.skipAdButton),this.skipAdButton.yF(this.element),this.skipAdButton.init($C("skip-button"),Y);this.j=new MG(u.durationMilliseconds);g.b(this,this.j);if(Y=g.z(u.countdownViewModel,IOq))this.K=new k$$(this.api,this.layoutId,this.interactionLoggingClientData,this.cz,this.j),g.b(this, this.K),this.K.yF(this.Xk("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.K.init($C("timed-pie-countdown"),Y);if(u=g.z(u.imageBackground,x5$))this.imageBackground=new y_(this.api,this.layoutId,this.interactionLoggingClientData,this.cz),g.b(this,this.imageBackground),this.imageBackground.yF(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init($C("image-background"), u);this.show();this.element.focus()}}; V_.prototype.clear=function(){g.Lb(this.X);this.hide()}; V_.prototype.show=function(){mX$(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();P6.prototype.show.call(this)}; V_.prototype.hide=function(){mX$(!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.K&&this.K.hide();this.imageBackground&&this.imageBackground.hide();P6.prototype.hide.call(this)};g.d(qc,g.ud);g.M=qc.prototype;g.M.SS=function(){return 1E3*this.api.getDuration(this.ZT,!1)}; g.M.stop=function(){this.K&&this.P0.qR(this.K)}; g.M.ye=function(){var Y=this.api.getProgressState(this.ZT);this.j={seekableStart:Y.seekableStart,seekableEnd:Y.seekableEnd,current:this.api.getCurrentTime(this.ZT,!1)};this.publish("h")}; g.M.getProgressState=function(){return this.j}; g.M.Cc=function(Y){g.C1(Y,2)&&this.publish("g")};var Tm$="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.d(aw,eh); aw.prototype.X=function(Y){var u=Y.id,n=Y.content,U=n.componentType;if(!Tm$.includes(U))switch(Y.actionType){case 1:Y=this.api;var k=this.cz,m=n.layoutId,X=n.interactionLoggingClientData,S=n instanceof lh?n.BY:!1,C=n instanceof lh||n instanceof TQ?n.xF:!1;X=X===void 0?{}:X;S=S===void 0?!1:S;C=C===void 0?!1:C;switch(U){case "invideo-overlay":Y=new KWB(Y,m,X,k);break;case "player-overlay":Y=new vY(Y,m,X,k,new qc(Y),C);break;case "player-overlay-layout":Y=new zW(Y,m,X,k,new qc(Y));break;case "survey":Y= new ll(Y,m,X,k);break;case "ad-action-interstitial":Y=new stQ(Y,m,X,k,S,C);break;case "video-interstitial-buttoned-centered":Y=new V_(Y,m,X,k);break;case "survey-interstitial":Y=new h9(Y,m,X,k);break;case "ad-message":Y=new RSL(Y,m,X,k,new qc(Y,1));break;case "player-underlay":Y=new xm$(Y,m,X,k);break;case "display-underlay-text-grid-cards":Y=new UXu(Y,m,X,k,new qc(Y));break;default:Y=null}if(!Y){g.Br(Error("No UI component returned from ComponentFactory for type: "+U));break}g.f3(this.components, u)?g.Br(Error("Ad UI component already registered: "+u)):this.components[u]=Y;Y.bind(n);n instanceof Dv?this.j?this.j.append(Y.fP):g.Br(Error("Underlay view was not created but UnderlayRenderer was created")):this.G.append(Y.fP);break;case 2:u=PQ$(this,Y);if(u==null)break;u.bind(n);break;case 3:n=PQ$(this,Y),n!=null&&(g.nc(n),g.f3(this.components,u)?(n=this.components,u in n&&delete n[u]):g.Br(Error("Ad UI component does not exist: "+u)))}}; aw.prototype.nG=function(){g.Uo(Object.values(this.components));this.components={};eh.prototype.nG.call(this)};g.d(SqX,g.vH);g.M=SqX.prototype;g.M.create=function(){try{CQL(this),this.load(),this.created=!0,CQL(this)}catch(Y){Xj(Y instanceof Error?Y:String(Y))}}; g.M.load=function(){try{N$q(this)}finally{ul(t9(this.K).nu)&&this.player.rL("ad",1)}}; g.M.destroy=function(){var Y=this.player.getVideoData(1);this.K.K.hc.r9(Y&&Y.clientPlaybackNonce||"");this.unload();this.created=!1}; g.M.unload=function(){g.vH.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(u){Xj(u instanceof Error?u:String(u))}if(this.j!=null){var Y=this.j;this.j=null;Y.dispose()}this.X.reset()}; g.M.VO=function(){return!1}; g.M.getAdState=function(){return-1}; g.M.getOptions=function(){return Object.values(ZnX)}; g.M.z6=function(Y,u){u=u===void 0?{}:u;switch(Y){case "replaceUrlMacros":return Y=u,Y.url?(u=vZS(this.player),Object.assign(u,Y.kKa),Y=g.oe(Y.url,u)):Y=null,Y;case "onAboutThisAdPopupClosed":this.Nz(u);break;case "executeCommand":Y=u;Y.command&&Y.layoutId&&this.executeCommand(Y);break;default:return null}}; g.M.ix=function(Y){var u;return!((u=this.K.K.i6)==null||!u.get().ix(Y))}; g.M.Nz=function(Y){Y.isMuted&&Kk7(t9(this.K).Lu,t9(this.K).ib,Y.layoutId);this.V0&&this.V0.Nz()}; g.M.executeCommand=function(Y){t9(this.K).cz.executeCommand(Y.command,Y.layoutId)};g.Y$("yt.player.Application.create",g.Af.create);g.Y$("yt.player.Application.createAlternate",g.Af.create);RRG(jg(),inq);var ruX=g.nR("ytcsi.tick");ruX&&ruX("pe");g.cH("ad",SqX);g.d(g.u1,g.e);g.u1.prototype.start=function(Y,u,n){this.config={from:Y,to:u,duration:n,startTime:(0,g.j2)()};this.next()}; g.u1.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.u1.prototype.next=function(){if(this.config){var Y=this.config,u=Y.from,n=Y.to,U=Y.duration;Y=Y.startTime;var k=(0,g.j2)()-Y;Y=this.K;U=bxW(Y,k/U);if(U==0)Y=Y.S;else if(U==1)Y=Y.Z;else{k=Hp(Y.S,Y.J,U);var m=Hp(Y.J,Y.W,U);Y=Hp(Y.W,Y.Z,U);k=Hp(k,m,U);m=Hp(m,Y,U);Y=Hp(k,m,U)}Y=g.gS(Y,0,1);this.callback(u+(n-u)*Y);Y<1&&this.delay.start()}};g.d(g.n7,g.H);g.M=g.n7.prototype;g.M.hasSuggestions=function(){return this.suggestionData.length>0}; g.M.kd=function(){this.j&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.M.show=function(){g.H.prototype.show.call(this);sL$(this)}; g.M.BV=function(){this.j&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.M.bS=function(){this.pT(this.api.tJ().getPlayerSize())}; g.M.pT=function(Y){var u=this.api.isEmbedsShortsMode()?.5625:16/9,n=this.api.b9();Y=Y.width-(n?112:58);n=Math.ceil(Y/(n?320:192));var U=(Y-n*8)/n;u=Math.floor(U/u);for(var k=g.A(this.K),m=k.next();!m.done;m=k.next())m=m.value.Xk("ytp-suggestion-image"),m.style.width=U+"px",m.style.height=u+"px";this.suggestions.element.style.height=u+"px";this.G=U;this.Z=u;this.containerWidth=Y;this.columns=n;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Uk(this)}; g.M.onVideoDataChange=function(){var Y=this.api.Y(),u=this.api.getVideoData();this.W=u.sD?!1:Y.G;this.suggestionData=u.suggestions?g.BV(u.suggestions,function(n){return n&&!n.playlistId}):[]; G$C(this);u.sD?this.title.update({title:g.UR("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:u.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.M.scrollTo=function(Y){Y=g.gS(Y,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.S.start(this.scrollPosition,Y,1E3);this.scrollPosition=Y;g.Uk(this);sL$(this)};})(_yt_player);